From b46645a5479911cb1ea9c38672f9576d4ec2f0ce Mon Sep 17 00:00:00 2001 From: autosubmit Date: Thu, 6 Jul 2023 13:06:39 +0800 Subject: [PATCH] Auto Submit --- color.less | 22 +- index.html | 2 +- ...nHomework__Detail__index.98d0dfc5.async.js | 172 ++++++++-------- ...urseGroup__Detail__index.e5a54098.async.js | 4 +- ...CourseGroup__List__index.8be1c900.async.js | 12 +- ...ateChecking__CheckDetail.adedf200.async.js | 10 +- ..._Exercise__Detail__index.6b6b5d92.async.js | 158 +++++++------- ...se__ImitateAnswer__index.00a3bccc.async.js | 96 ++++----- ...Lists__ExportList__index.e682cc10.async.js | 2 +- ...pHomework__Detail__index.e9db8877.async.js | 154 +++++++------- ...oms__Lists__Polls__index.1c277404.async.js | 4 +- ...odeReview__Detail__index.2b59be16.async.js | 10 +- ...Homeworks__Detail__index.c8fb9f6a.async.js | 150 +++++++------- ...tatistics__StudentDetail.2b92f3f0.async.js | 2 +- ...StudentStatistics__index.e53ef587.async.js | 2 +- ...ics__StudentVideo__index.8a4fe866.async.js | 2 +- ...ssrooms__Lists__Students.a4bd600c.async.js | 8 +- ...tatistics__Detail__index.1edc1b8d.async.js | 2 +- ...cs__StudentDetail__index.f8fc36f1.async.js | 2 +- ...Video__Statistics__index.7a71a870.async.js | 2 +- p__Competitions__Detail.eb6e2d2d.async.js | 192 +++++++++--------- ...ed__Assembly__TeamDateil.7090a6f5.async.js | 2 +- ...eering__Evaluate__Detail.86437899.async.js | 16 +- ...ering__Lists__CourseList.30e8a825.async.js | 4 +- ...ing__Lists__CourseMatrix.b34e4ca3.async.js | 4 +- ...ring__Lists__StudentList.0e0260a5.async.js | 10 +- ...ring__Lists__TeacherList.47c109a5.async.js | 14 +- ...ts__TrainingProgram__Add.bc7ae86d.async.js | 12 +- ...s__TrainingProgram__Edit.f9d36f81.async.js | 12 +- p__Engineering__Norm__List.300e3f0c.async.js | 4 +- p__Innovation__MyDataSet.a80b0be6.async.js | 10 +- p__Innovation__PublicMirror.71215435.async.js | 4 +- p__Innovation__Tasks.a679adf5.async.js | 30 +-- ...y__Random__Detail__index.21075ed8.async.js | 6 +- p__Paperlibrary__index.c884e5f3.async.js | 4 +- ..._Detail__ForkList__index.71825519.async.js | 2 +- ...l__OtherResources__index.62fc5694.async.js | 4 +- ...__Detail__Shixuns__index.12da80be.async.js | 4 +- ...etail__TeachGroup__index.18763d81.async.js | 6 +- ...es__Lists__Member__index.300c43a9.async.js | 4 +- umi.f82e3d89.js => umi.74e4cd79.js | 2 +- 41 files changed, 581 insertions(+), 581 deletions(-) rename p__Classrooms__Lists__CommonHomework__Detail__index.5ec52c7b.async.js => p__Classrooms__Lists__CommonHomework__Detail__index.98d0dfc5.async.js (76%) rename p__Classrooms__Lists__Exercise__Detail__index.9789edfb.async.js => p__Classrooms__Lists__Exercise__Detail__index.6b6b5d92.async.js (83%) rename p__Classrooms__Lists__GroupHomework__Detail__index.fd03fcd7.async.js => p__Classrooms__Lists__GroupHomework__Detail__index.e9db8877.async.js (79%) rename p__Classrooms__Lists__ShixunHomeworks__Detail__index.624f43a3.async.js => p__Classrooms__Lists__ShixunHomeworks__Detail__index.c8fb9f6a.async.js (82%) rename umi.f82e3d89.js => umi.74e4cd79.js (99%) diff --git a/color.less b/color.less index fa3b2de046..31000d0ed4 100644 --- a/color.less +++ b/color.less @@ -727,42 +727,42 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {color: @success-color;} .ant-form-item-has-warning .ant-form-item-explain, .ant-form-item-has-warning .ant-form-item-split {color: @warning-color;} .ant-form-item-has-warning .ant-input, .ant-form-item-has-warning .ant-input-affix-wrapper, .ant-form-item-has-warning .ant-input:hover, .ant-form-item-has-warning .ant-input-affix-wrapper:hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(200, 133, 21, 0.2);} +.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(209, 91, 133, 0.2);} .ant-form-item-has-warning .ant-input:not(.ant-form-item-has-warning .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper:not(.ant-form-item-has-warning .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(200, 133, 21, 0.2);} +.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(209, 91, 133, 0.2);} .ant-form-item-has-warning .ant-input-prefix {color: @warning-color;} .ant-form-item-has-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;} .ant-form-item-has-warning .has-feedback {color: @warning-color;} .ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {color: @warning-color;} .ant-form-item-has-warning .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @warning-color !important;} -.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(200, 133, 21, 0.2);} +.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(209, 91, 133, 0.2);} .ant-form-item-has-warning .ant-input-number, .ant-form-item-has-warning .ant-picker {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(200, 133, 21, 0.2);} +.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(209, 91, 133, 0.2);} .ant-form-item-has-warning .ant-input-number:not([disabled]):hover, .ant-form-item-has-warning .ant-picker:not([disabled]):hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(200, 133, 21, 0.2);} +.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(209, 91, 133, 0.2);} .ant-form-item-has-error .ant-form-item-explain, .ant-form-item-has-error .ant-form-item-split {color: @error-color;} .ant-form-item-has-error .ant-input, .ant-form-item-has-error .ant-input-affix-wrapper, .ant-form-item-has-error .ant-input:hover, .ant-form-item-has-error .ant-input-affix-wrapper:hover {border-color: @error-color;} -.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(55, 106, 179, 0.2);} +.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(149, 90, 6, 0.2);} .ant-form-item-has-error .ant-input:not(.ant-form-item-has-error .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper:not(.ant-form-item-has-error .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(55, 106, 179, 0.2);} +.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(149, 90, 6, 0.2);} .ant-form-item-has-error .ant-input-prefix {color: @error-color;} .ant-form-item-has-error .ant-input-group-addon {color: @error-color;border-color: @error-color;} .ant-form-item-has-error .has-feedback {color: @error-color;} .ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {color: @error-color;} .ant-form-item-has-error .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @error-color !important;} -.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(55, 106, 179, 0.2);} +.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(149, 90, 6, 0.2);} .ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {border: 0;} .ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {border-color: @error-color;} .ant-form-item-has-error .ant-input-number, .ant-form-item-has-error .ant-picker {border-color: @error-color;} -.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(55, 106, 179, 0.2);} +.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(149, 90, 6, 0.2);} .ant-form-item-has-error .ant-input-number:not([disabled]):hover, .ant-form-item-has-error .ant-picker:not([disabled]):hover {border-color: @error-color;} .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {border-color: @error-color;} -.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(55, 106, 179, 0.2);} -.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(55, 106, 179, 0.2);} +.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(149, 90, 6, 0.2);} +.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(149, 90, 6, 0.2);} .ant-form-item-has-error .ant-transfer-list {border-color: @error-color;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {border-color: @border-color-base;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} diff --git a/index.html b/index.html index 903d7fcfa4..0d5cd0c479 100644 --- a/index.html +++ b/index.html @@ -127,6 +127,6 @@ - + diff --git a/p__Classrooms__Lists__CommonHomework__Detail__index.5ec52c7b.async.js b/p__Classrooms__Lists__CommonHomework__Detail__index.98d0dfc5.async.js similarity index 76% rename from p__Classrooms__Lists__CommonHomework__Detail__index.5ec52c7b.async.js rename to p__Classrooms__Lists__CommonHomework__Detail__index.98d0dfc5.async.js index e1f77fc11e..4ff2268f81 100644 --- a/p__Classrooms__Lists__CommonHomework__Detail__index.5ec52c7b.async.js +++ b/p__Classrooms__Lists__CommonHomework__Detail__index.98d0dfc5.async.js @@ -1,9 +1,9 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[48,3,5,6,7,8,10],{"+NIl":function(nn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";re.defineMode("stex",function(G,I){"use strict";function z(v,h){v.cmdState.push(h)}function O(v){return v.cmdState.length>0?v.cmdState[v.cmdState.length-1]:null}function w(v){var h=v.cmdState.pop();h&&h.closeBracket()}function W(v){for(var h=v.cmdState,c=h.length-1;c>=0;c--){var n=h[c];if(n.name=="DEFAULT")continue;return n}return{styleIdentifier:function(){return null}}}function y(v,h,c){return function(){this.name=v,this.bracketNo=0,this.style=h,this.styles=c,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var L={};L.importmodule=y("importmodule","tag",["string","builtin"]),L.documentclass=y("documentclass","tag",["","atom"]),L.usepackage=y("usepackage","tag",["atom"]),L.begin=y("begin","tag",["atom"]),L.end=y("end","tag",["atom"]),L.label=y("label","tag",["atom"]),L.ref=y("ref","tag",["atom"]),L.eqref=y("eqref","tag",["atom"]),L.cite=y("cite","tag",["atom"]),L.bibitem=y("bibitem","tag",["atom"]),L.Bibitem=y("Bibitem","tag",["atom"]),L.RBibitem=y("RBibitem","tag",["atom"]),L.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function R(v,h){v.f=h}function d(v,h){var c;if(v.match(/^\\[a-zA-Z@]+/)){var n=v.current().slice(1);return c=L.hasOwnProperty(n)?L[n]:L.DEFAULT,c=new c,z(h,c),R(h,_),c.style}if(v.match(/^\\[$&%#{}_]/))return"tag";if(v.match(/^\\[,;!\/\\]/))return"tag";if(v.match("\\["))return R(h,function(o,l){return p(o,l,"\\]")}),"keyword";if(v.match("\\("))return R(h,function(o,l){return p(o,l,"\\)")}),"keyword";if(v.match("$$"))return R(h,function(o,l){return p(o,l,"$$")}),"keyword";if(v.match("$"))return R(h,function(o,l){return p(o,l,"$")}),"keyword";var r=v.next();if(r=="%")return v.skipToEnd(),"comment";if(r=="}"||r=="]"){if(c=O(h),c)c.closeBracket(r),R(h,_);else return"error";return"bracket"}else return r=="{"||r=="["?(c=L.DEFAULT,c=new c,z(h,c),"bracket"):/\d/.test(r)?(v.eatWhile(/[\w.%]/),"atom"):(v.eatWhile(/[\w\-_]/),c=W(h),c.name=="begin"&&(c.argument=v.current()),c.styleIdentifier())}function p(v,h,c){if(v.eatSpace())return null;if(c&&v.match(c))return R(h,d),"keyword";if(v.match(/^\\[a-zA-Z@]+/))return"tag";if(v.match(/^[a-zA-Z]+/))return"variable-2";if(v.match(/^\\[$&%#{}_]/))return"tag";if(v.match(/^\\[,;!\/]/))return"tag";if(v.match(/^[\^_&]/))return"tag";if(v.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(v.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var n=v.next();return n=="{"||n=="}"||n=="["||n=="]"||n=="("||n==")"?"bracket":n=="%"?(v.skipToEnd(),"comment"):"error"}function _(v,h){var c=v.peek(),n;return c=="{"||c=="["?(n=O(h),n.openBracket(c),v.eat(c),R(h,d),"bracket"):/[ \t\r]/.test(c)?(v.eat(c),null):(R(h,d),w(h),d(v,h))}return{startState:function(){var v=I.inMathMode?function(h,c){return p(h,c)}:d;return{cmdState:[],f:v}},copyState:function(v){return{cmdState:v.cmdState.slice(),f:v.f}},token:function(v,h){return h.f(v,h)},blankLine:function(v){v.f=d,v.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},"+ua5":function(nn,Ce,M){},"/cxE":function(nn,Ce,M){"use strict";M.d(Ce,"e",function(){return I}),M.d(Ce,"f",function(){return z}),M.d(Ce,"g",function(){return O}),M.d(Ce,"d",function(){return W}),M.d(Ce,"a",function(){return y}),M.d(Ce,"b",function(){return L}),M.d(Ce,"c",function(){return R});var re=function(){function d(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(function(){throw p.stack?new Error(p.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[48,3,5,6,7,8,10],{"+NIl":function(tn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";re.defineMode("stex",function(G,I){"use strict";function z(v,h){v.cmdState.push(h)}function O(v){return v.cmdState.length>0?v.cmdState[v.cmdState.length-1]:null}function w(v){var h=v.cmdState.pop();h&&h.closeBracket()}function W(v){for(var h=v.cmdState,c=h.length-1;c>=0;c--){var n=h[c];if(n.name=="DEFAULT")continue;return n}return{styleIdentifier:function(){return null}}}function y(v,h,c){return function(){this.name=v,this.bracketNo=0,this.style=h,this.styles=c,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var L={};L.importmodule=y("importmodule","tag",["string","builtin"]),L.documentclass=y("documentclass","tag",["","atom"]),L.usepackage=y("usepackage","tag",["atom"]),L.begin=y("begin","tag",["atom"]),L.end=y("end","tag",["atom"]),L.label=y("label","tag",["atom"]),L.ref=y("ref","tag",["atom"]),L.eqref=y("eqref","tag",["atom"]),L.cite=y("cite","tag",["atom"]),L.bibitem=y("bibitem","tag",["atom"]),L.Bibitem=y("Bibitem","tag",["atom"]),L.RBibitem=y("RBibitem","tag",["atom"]),L.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function R(v,h){v.f=h}function d(v,h){var c;if(v.match(/^\\[a-zA-Z@]+/)){var n=v.current().slice(1);return c=L.hasOwnProperty(n)?L[n]:L.DEFAULT,c=new c,z(h,c),R(h,_),c.style}if(v.match(/^\\[$&%#{}_]/))return"tag";if(v.match(/^\\[,;!\/\\]/))return"tag";if(v.match("\\["))return R(h,function(o,l){return p(o,l,"\\]")}),"keyword";if(v.match("\\("))return R(h,function(o,l){return p(o,l,"\\)")}),"keyword";if(v.match("$$"))return R(h,function(o,l){return p(o,l,"$$")}),"keyword";if(v.match("$"))return R(h,function(o,l){return p(o,l,"$")}),"keyword";var r=v.next();if(r=="%")return v.skipToEnd(),"comment";if(r=="}"||r=="]"){if(c=O(h),c)c.closeBracket(r),R(h,_);else return"error";return"bracket"}else return r=="{"||r=="["?(c=L.DEFAULT,c=new c,z(h,c),"bracket"):/\d/.test(r)?(v.eatWhile(/[\w.%]/),"atom"):(v.eatWhile(/[\w\-_]/),c=W(h),c.name=="begin"&&(c.argument=v.current()),c.styleIdentifier())}function p(v,h,c){if(v.eatSpace())return null;if(c&&v.match(c))return R(h,d),"keyword";if(v.match(/^\\[a-zA-Z@]+/))return"tag";if(v.match(/^[a-zA-Z]+/))return"variable-2";if(v.match(/^\\[$&%#{}_]/))return"tag";if(v.match(/^\\[,;!\/]/))return"tag";if(v.match(/^[\^_&]/))return"tag";if(v.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(v.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var n=v.next();return n=="{"||n=="}"||n=="["||n=="]"||n=="("||n==")"?"bracket":n=="%"?(v.skipToEnd(),"comment"):"error"}function _(v,h){var c=v.peek(),n;return c=="{"||c=="["?(n=O(h),n.openBracket(c),v.eat(c),R(h,d),"bracket"):/[ \t\r]/.test(c)?(v.eat(c),null):(R(h,d),w(h),d(v,h))}return{startState:function(){var v=I.inMathMode?function(h,c){return p(h,c)}:d;return{cmdState:[],f:v}},copyState:function(v){return{cmdState:v.cmdState.slice(),f:v.f}},token:function(v,h){return h.f(v,h)},blankLine:function(v){v.f=d,v.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},"+ua5":function(tn,Ce,M){},"/cxE":function(tn,Ce,M){"use strict";M.d(Ce,"e",function(){return I}),M.d(Ce,"f",function(){return z}),M.d(Ce,"g",function(){return O}),M.d(Ce,"d",function(){return W}),M.d(Ce,"a",function(){return y}),M.d(Ce,"b",function(){return L}),M.d(Ce,"c",function(){return R});var re=function(){function d(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(function(){throw p.stack?new Error(p.message+` -`+p.stack):p},0)}}return d.prototype.emit=function(p){this.listeners.forEach(function(_){_(p)})},d.prototype.onUnexpectedError=function(p){this.unexpectedErrorHandler(p),this.emit(p)},d.prototype.onUnexpectedExternalError=function(p){this.unexpectedErrorHandler(p)},d}(),G=new re;function I(d){W(d)||G.onUnexpectedError(d);return}function z(d){W(d)||G.onUnexpectedExternalError(d);return}function O(d){if(d instanceof Error){var p=d.name,_=d.message,v=d.stacktrace||d.stack;return{$isError:!0,name:p,message:_,stack:v}}return d}var w="Canceled";function W(d){return d instanceof Error&&d.name===w&&d.message===w}function y(){var d=new Error(w);return d.name=d.message,d}function L(d){return d?new Error("Illegal argument: "+d):new Error("Illegal argument")}function R(d){return d?new Error("Illegal state: "+d):new Error("Illegal state")}},"/iVV":function(nn,Ce,M){nn.exports={flex_box_center:"flex_box_center___2FARP",flex_space_between:"flex_space_between___oDbHE",flex_box_vertical_center:"flex_box_vertical_center___30YaW",flex_box_center_end:"flex_box_center_end___2jDbg",flex_box_column:"flex_box_column___34FVf",top:"top___3fhcI",desc:"desc___1KGAw",liked:"liked___peMDs",likedActive:"likedActive___3FVHj",reply:"reply___-RXGA",replyList:"replyList___3zoOQ",comment:"comment___lxBqi",headpic:"headpic___2JDco"}},"19Vz":function(nn,Ce,M){(function(re){re(M("VrN/"))})(function(re){re.defineOption("placeholder","",function(y,L,R){var d=R&&R!=re.Init;if(L&&!d)y.on("blur",O),y.on("change",w),y.on("swapDoc",w),re.on(y.getInputField(),"compositionupdate",y.state.placeholderCompose=function(){z(y)}),w(y);else if(!L&&d){y.off("blur",O),y.off("change",w),y.off("swapDoc",w),re.off(y.getInputField(),"compositionupdate",y.state.placeholderCompose),G(y);var p=y.getWrapperElement();p.className=p.className.replace(" CodeMirror-empty","")}L&&!y.hasFocus()&&O(y)});function G(y){y.state.placeholder&&(y.state.placeholder.parentNode.removeChild(y.state.placeholder),y.state.placeholder=null)}function I(y){G(y);var L=y.state.placeholder=document.createElement("pre");L.style.cssText="height: 0; overflow: visible",L.style.direction=y.getOption("direction"),L.className="CodeMirror-placeholder CodeMirror-line-like";var R=y.getOption("placeholder");typeof R=="string"&&(R=document.createTextNode(R)),L.appendChild(R),y.display.lineSpace.insertBefore(L,y.display.lineSpace.firstChild)}function z(y){setTimeout(function(){var L=!1,R=y.getInputField();R.nodeName=="TEXTAREA"?L=!R.value:y.lineCount()==1&&(L=!/[^\u200b]/.test(R.querySelector(".CodeMirror-line").textContent)),L?I(y):G(y)},20)}function O(y){W(y)&&I(y)}function w(y){var L=y.getWrapperElement(),R=W(y);L.className=L.className.replace(" CodeMirror-empty","")+(R?" CodeMirror-empty":""),R?I(y):G(y)}function W(y){return y.lineCount()===1&&y.getLine(0)===""}})},"1eCo":function(nn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";var G={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},I={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(z,O){var w=z.indentUnit,W={},y=O.htmlMode?G:I;for(var L in y)W[L]=y[L];for(var L in O)W[L]=O[L];var R,d;function p(u,D){function S(j){return D.tokenize=j,j(u,D)}var A=u.next();if(A=="<")return u.eat("!")?u.eat("[")?u.match("CDATA[")?S(h("atom","]]>")):null:u.match("--")?S(h("comment","-->")):u.match("DOCTYPE",!0,!0)?(u.eatWhile(/[\w\._\-]/),S(c(1))):null:u.eat("?")?(u.eatWhile(/[\w\._\-]/),D.tokenize=h("meta","?>"),"meta"):(R=u.eat("/")?"closeTag":"openTag",D.tokenize=_,"tag bracket");if(A=="&"){var N;return u.eat("#")?u.eat("x")?N=u.eatWhile(/[a-fA-F\d]/)&&u.eat(";"):N=u.eatWhile(/[\d]/)&&u.eat(";"):N=u.eatWhile(/[\w\.\-:]/)&&u.eat(";"),N?"atom":"error"}else return u.eatWhile(/[^&<]/),null}p.isInText=!0;function _(u,D){var S=u.next();if(S==">"||S=="/"&&u.eat(">"))return D.tokenize=p,R=S==">"?"endTag":"selfcloseTag","tag bracket";if(S=="=")return R="equals",null;if(S=="<"){D.tokenize=p,D.state=l,D.tagName=D.tagStart=null;var A=D.tokenize(u,D);return A?A+" tag error":"tag error"}else return/[\'\"]/.test(S)?(D.tokenize=v(S),D.stringStartCol=u.column(),D.tokenize(u,D)):(u.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function v(u){var D=function(S,A){for(;!S.eol();)if(S.next()==u){A.tokenize=_;break}return"string"};return D.isInAttribute=!0,D}function h(u,D){return function(S,A){for(;!S.eol();){if(S.match(D)){A.tokenize=p;break}S.next()}return u}}function c(u){return function(D,S){for(var A;(A=D.next())!=null;){if(A=="<")return S.tokenize=c(u+1),S.tokenize(D,S);if(A==">")if(u==1){S.tokenize=p;break}else return S.tokenize=c(u-1),S.tokenize(D,S)}return"meta"}}function n(u,D,S){this.prev=u.context,this.tagName=D,this.indent=u.indented,this.startOfLine=S,(W.doNotIndent.hasOwnProperty(D)||u.context&&u.context.noIndent)&&(this.noIndent=!0)}function r(u){u.context&&(u.context=u.context.prev)}function o(u,D){for(var S;;){if(!u.context)return;if(S=u.context.tagName,!W.contextGrabbers.hasOwnProperty(S)||!W.contextGrabbers[S].hasOwnProperty(D))return;r(u)}}function l(u,D,S){return u=="openTag"?(S.tagStart=D.column(),x):u=="closeTag"?E:l}function x(u,D,S){return u=="word"?(S.tagName=D.current(),d="tag",T):W.allowMissingTagName&&u=="endTag"?(d="tag bracket",T(u,D,S)):(d="error",x)}function E(u,D,S){if(u=="word"){var A=D.current();return S.context&&S.context.tagName!=A&&W.implicitlyClosed.hasOwnProperty(S.context.tagName)&&r(S),S.context&&S.context.tagName==A||W.matchClosing===!1?(d="tag",b):(d="tag error",P)}else return W.allowMissingTagName&&u=="endTag"?(d="tag bracket",b(u,D,S)):(d="error",P)}function b(u,D,S){return u!="endTag"?(d="error",b):(r(S),l)}function P(u,D,S){return d="error",b(u,D,S)}function T(u,D,S){if(u=="word")return d="attribute",m;if(u=="endTag"||u=="selfcloseTag"){var A=S.tagName,N=S.tagStart;return S.tagName=S.tagStart=null,u=="selfcloseTag"||W.autoSelfClosers.hasOwnProperty(A)?o(S,A):(o(S,A),S.context=new n(S,A,N==S.indented)),l}return d="error",T}function m(u,D,S){return u=="equals"?g:(W.allowMissing||(d="error"),T(u,D,S))}function g(u,D,S){return u=="string"?s:u=="word"&&W.allowUnquoted?(d="string",T):(d="error",T(u,D,S))}function s(u,D,S){return u=="string"?s:T(u,D,S)}return{startState:function(u){var D={tokenize:p,state:l,indented:u||0,tagName:null,tagStart:null,context:null};return u!=null&&(D.baseIndent=u),D},token:function(u,D){if(!D.tagName&&u.sol()&&(D.indented=u.indentation()),u.eatSpace())return null;R=null;var S=D.tokenize(u,D);return(S||R)&&S!="comment"&&(d=null,D.state=D.state(R||S,u,D),d&&(S=d=="error"?S+" error":d)),S},indent:function(u,D,S){var A=u.context;if(u.tokenize.isInAttribute)return u.tagStart==u.indented?u.stringStartCol+1:u.indented+w;if(A&&A.noIndent)return re.Pass;if(u.tokenize!=_&&u.tokenize!=p)return S?S.match(/^(\s*)/)[0].length:0;if(u.tagName)return W.multilineTagIndentPastTag!==!1?u.tagStart+u.tagName.length+2:u.tagStart+w*(W.multilineTagIndentFactor||1);if(W.alignCDATA&&/$/,blockCommentStart:"",configuration:W.htmlMode?"html":"xml",helperType:W.htmlMode?"html":"xml",skipAttribute:function(u){u.state==g&&(u.state=T)},xmlCurrentTag:function(u){return u.tagName?{name:u.tagName,close:u.type=="closeTag"}:null},xmlCurrentContext:function(u){for(var D=[],S=u.context;S;S=S.prev)S.tagName&&D.push(S.tagName);return D.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(nn,Ce,M){"use strict";M.d(Ce,"d",function(){return Lt}),M.d(Ce,"b",function(){return rt}),M.d(Ce,"c",function(){return jt}),M.d(Ce,"a",function(){return pn});var re=M("VTBJ"),G=M("1OyB"),I=M("vuIU"),z=M("JX7q"),O=M("Ji7U"),w=M("LK+K"),W=M("q1tI"),y=M("I8Z2"),L=M("BGR+"),R=M("wx14"),d=M("rePB"),p=M("4IlW"),_=M("2GS6"),v=M("Gytx"),h=M.n(v),c=M("TSYQ"),n=M.n(c),r=M("U8pU"),o=M("ODXe"),l=/iPhone/i,x=/iPod/i,E=/iPad/i,b=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,T=/\bAndroid(?:.+)SD4930UR\b/i,m=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,g=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,D=/BB10/i,S=/Opera Mini/i,A=/\b(CriOS|Chrome)(?:.+)Mobile/i,N=/Mobile(?:.+)Firefox\b/i;function j(Jt,wt){return Jt.test(wt)}function K(Jt){var wt=Jt||(typeof navigator!="undefined"?navigator.userAgent:""),St=wt.split("[FBAN");if(typeof St[1]!="undefined"){var lt=St,ge=Object(o.a)(lt,1);wt=ge[0]}if(St=wt.split("Twitter"),typeof St[1]!="undefined"){var Le=St,yt=Object(o.a)(Le,1);wt=yt[0]}var ft={apple:{phone:j(l,wt)&&!j(g,wt),ipod:j(x,wt),tablet:!j(l,wt)&&j(E,wt)&&!j(g,wt),device:(j(l,wt)||j(x,wt)||j(E,wt))&&!j(g,wt)},amazon:{phone:j(T,wt),tablet:!j(T,wt)&&j(m,wt),device:j(T,wt)||j(m,wt)},android:{phone:!j(g,wt)&&j(T,wt)||!j(g,wt)&&j(b,wt),tablet:!j(g,wt)&&!j(T,wt)&&!j(b,wt)&&(j(m,wt)||j(P,wt)),device:!j(g,wt)&&(j(T,wt)||j(m,wt)||j(b,wt)||j(P,wt))||j(/\bokhttp\b/i,wt)},windows:{phone:j(g,wt),tablet:j(s,wt),device:j(g,wt)||j(s,wt)},other:{blackberry:j(u,wt),blackberry10:j(D,wt),opera:j(S,wt),firefox:j(N,wt),chrome:j(A,wt),device:j(u,wt)||j(D,wt)||j(S,wt)||j(N,wt)||j(A,wt)},any:null,phone:null,tablet:null};return ft.any=ft.apple.device||ft.android.device||ft.windows.device||ft.other.device,ft.phone=ft.apple.phone||ft.android.phone||ft.windows.phone,ft.tablet=ft.apple.tablet||ft.android.tablet||ft.windows.tablet,ft}var H=Object(re.a)(Object(re.a)({},K()),{},{isMobile:K}),U=H;function B(){}function q(Jt,wt,St){var lt=wt||"";return Jt.key||"".concat(lt,"item_").concat(St)}function ee(Jt){return"".concat(Jt,"-menu-")}function he(Jt,wt){var St=-1;W.Children.forEach(Jt,function(lt){St+=1,lt&<.type&<.type.isMenuItemGroup?W.Children.forEach(lt.props.children,function(ge){St+=1,wt(ge,St)}):wt(lt,St)})}function be(Jt,wt,St){if(!Jt||St.find)return;W.Children.forEach(Jt,function(lt){if(lt){var ge=lt.type;if(!ge||!(ge.isSubMenu||ge.isMenuItem||ge.isMenuItemGroup))return;wt.indexOf(lt.key)!==-1?St.find=!0:lt.props.children&&be(lt.props.children,wt,St)}})}var Ye=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Pe=function(wt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=wt&&typeof wt.getBoundingClientRect=="function"&&wt.getBoundingClientRect().width;if(lt){if(St){var ge=getComputedStyle(wt),Le=ge.marginLeft,yt=ge.marginRight;lt+=+Le.replace("px","")+ +yt.replace("px","")}lt=+lt.toFixed(6)}return lt||0},je=function(wt,St,lt){wt&&Object(r.a)(wt.style)==="object"&&(wt.style[St]=lt)},Qe=function(){return U.any},Ze=M("KQm4"),Ae=M("Ff2n"),me=M("i8i4"),ie=M("bdgK"),Oe=M("uciX"),ve=M("8XRh"),Ge={adjustX:1,adjustY:1},pe={topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ge,offset:[4,0]}},J={topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ge,offset:[4,0]}},V=pe,X=0,ue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ee=function(wt,St,lt){var ge=ee(St),Le=wt.getState();wt.setState({defaultActiveFirst:Object(re.a)(Object(re.a)({},Le.defaultActiveFirst),{},Object(d.a)({},ge,lt))})},We=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(lt){var ge;Object(G.a)(this,St),ge=wt.call(this,lt),ge.onDestroy=function(at){ge.props.onDestroy(at)},ge.onKeyDown=function(at){var xt=at.keyCode,Rt=ge.menuInstance,cn=ge.props,xn=cn.isOpen,ar=cn.store;if(xt===p.a.ENTER)return ge.onTitleClick(at),Ee(ar,ge.props.eventKey,!0),!0;if(xt===p.a.RIGHT)return xn?Rt.onKeyDown(at):(ge.triggerOpenChange(!0),Ee(ar,ge.props.eventKey,!0)),!0;if(xt===p.a.LEFT){var fr;if(xn)fr=Rt.onKeyDown(at);else return;return fr||(ge.triggerOpenChange(!1),fr=!0),fr}return xn&&(xt===p.a.UP||xt===p.a.DOWN)?Rt.onKeyDown(at):void 0},ge.onOpenChange=function(at){ge.props.onOpenChange(at)},ge.onPopupVisibleChange=function(at){ge.triggerOpenChange(at,at?"mouseenter":"mouseleave")},ge.onMouseEnter=function(at){var xt=ge.props,Rt=xt.eventKey,cn=xt.onMouseEnter,xn=xt.store;Ee(xn,ge.props.eventKey,!1),cn({key:Rt,domEvent:at})},ge.onMouseLeave=function(at){var xt=ge.props,Rt=xt.parentMenu,cn=xt.eventKey,xn=xt.onMouseLeave;Rt.subMenuInstance=Object(z.a)(ge),xn({key:cn,domEvent:at})},ge.onTitleMouseEnter=function(at){var xt=ge.props,Rt=xt.eventKey,cn=xt.onItemHover,xn=xt.onTitleMouseEnter;cn({key:Rt,hover:!0}),xn({key:Rt,domEvent:at})},ge.onTitleMouseLeave=function(at){var xt=ge.props,Rt=xt.parentMenu,cn=xt.eventKey,xn=xt.onItemHover,ar=xt.onTitleMouseLeave;Rt.subMenuInstance=Object(z.a)(ge),xn({key:cn,hover:!1}),ar({key:cn,domEvent:at})},ge.onTitleClick=function(at){var xt=Object(z.a)(ge),Rt=xt.props;if(Rt.onTitleClick({key:Rt.eventKey,domEvent:at}),Rt.triggerSubMenuAction==="hover")return;ge.triggerOpenChange(!Rt.isOpen,"click"),Ee(Rt.store,ge.props.eventKey,!1)},ge.onSubMenuClick=function(at){typeof ge.props.onClick=="function"&&ge.props.onClick(ge.addKeyPath(at))},ge.onSelect=function(at){ge.props.onSelect(at)},ge.onDeselect=function(at){ge.props.onDeselect(at)},ge.getPrefixCls=function(){return"".concat(ge.props.rootPrefixCls,"-submenu")},ge.getActiveClassName=function(){return"".concat(ge.getPrefixCls(),"-active")},ge.getDisabledClassName=function(){return"".concat(ge.getPrefixCls(),"-disabled")},ge.getSelectedClassName=function(){return"".concat(ge.getPrefixCls(),"-selected")},ge.getOpenClassName=function(){return"".concat(ge.props.rootPrefixCls,"-submenu-open")},ge.saveMenuInstance=function(at){ge.menuInstance=at},ge.addKeyPath=function(at){return Object(re.a)(Object(re.a)({},at),{},{keyPath:(at.keyPath||[]).concat(ge.props.eventKey)})},ge.triggerOpenChange=function(at,xt){var Rt=ge.props.eventKey,cn=function(){ge.onOpenChange({key:Rt,item:Object(z.a)(ge),trigger:xt,open:at})};xt==="mouseenter"?ge.mouseenterTimeout=setTimeout(function(){cn()},0):cn()},ge.isChildrenSelected=function(){var at={find:!1};return be(ge.props.children,ge.props.selectedKeys,at),at.find},ge.isOpen=function(){return ge.props.openKeys.indexOf(ge.props.eventKey)!==-1},ge.adjustWidth=function(){if(!ge.subMenuTitle||!ge.menuInstance)return;var at=me.findDOMNode(ge.menuInstance);if(at.offsetWidth>=ge.subMenuTitle.offsetWidth)return;at.style.minWidth="".concat(ge.subMenuTitle.offsetWidth,"px")},ge.saveSubMenuTitle=function(at){ge.subMenuTitle=at},ge.getBaseProps=function(){var at=Object(z.a)(ge),xt=at.props;return{mode:xt.mode==="horizontal"?"vertical":xt.mode,visible:ge.props.isOpen,level:xt.level+1,inlineIndent:xt.inlineIndent,focusable:!1,onClick:ge.onSubMenuClick,onSelect:ge.onSelect,onDeselect:ge.onDeselect,onDestroy:ge.onDestroy,selectedKeys:xt.selectedKeys,eventKey:"".concat(xt.eventKey,"-menu-"),openKeys:xt.openKeys,motion:xt.motion,onOpenChange:ge.onOpenChange,subMenuOpenDelay:xt.subMenuOpenDelay,parentMenu:Object(z.a)(ge),subMenuCloseDelay:xt.subMenuCloseDelay,forceSubMenuRender:xt.forceSubMenuRender,triggerSubMenuAction:xt.triggerSubMenuAction,builtinPlacements:xt.builtinPlacements,defaultActiveFirst:xt.store.getState().defaultActiveFirst[ee(xt.eventKey)],multiple:xt.multiple,prefixCls:xt.rootPrefixCls,id:ge.internalMenuId,manualRef:ge.saveMenuInstance,itemIcon:xt.itemIcon,expandIcon:xt.expandIcon,direction:xt.direction}},ge.getMotion=function(at,xt){var Rt=Object(z.a)(ge),cn=Rt.haveRendered,xn=ge.props,ar=xn.motion,fr=xn.rootPrefixCls,tr=Object(re.a)(Object(re.a)({},ar),{},{leavedClassName:"".concat(fr,"-hidden"),removeOnLeave:!1,motionAppear:cn||!xt||at!=="inline"});return tr};var Le=lt.store,yt=lt.eventKey,ft=Le.getState(),en=ft.defaultActiveFirst;ge.isRootMenu=!1;var Xt=!1;return en&&(Xt=en[yt]),Ee(Le,yt,Xt),ge}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this,Le=this.props,yt=Le.mode,ft=Le.parentMenu,en=Le.manualRef;if(en&&en(this),yt!=="horizontal"||!ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ge.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ge=this.props,Le=ge.onDestroy,yt=ge.eventKey;Le&&Le(yt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ge){var Le=this,yt=this.getBaseProps(),ft=this.getMotion(yt.mode,yt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||yt.visible||yt.forceSubMenuRender,!this.haveOpened)return W.createElement("div",null);var en=yt.direction;return W.createElement(ve.default,Object.assign({visible:yt.visible},ft),function(Xt){var at=Xt.className,xt=Xt.style,Rt=n()("".concat(yt.prefixCls,"-sub"),at,Object(d.a)({},"".concat(yt.prefixCls,"-rtl"),en==="rtl"));return W.createElement(Ne,Object.assign({},yt,{id:Le.internalMenuId,className:Rt,style:xt}),ge)})}},{key:"render",value:function(){var ge,Le=Object(re.a)({},this.props),yt=Le.isOpen,ft=this.getPrefixCls(),en=Le.mode==="inline",Xt=n()(ft,"".concat(ft,"-").concat(Le.mode),(ge={},Object(d.a)(ge,Le.className,!!Le.className),Object(d.a)(ge,this.getOpenClassName(),yt),Object(d.a)(ge,this.getActiveClassName(),Le.active||yt&&!en),Object(d.a)(ge,this.getDisabledClassName(),Le.disabled),Object(d.a)(ge,this.getSelectedClassName(),this.isChildrenSelected()),ge));this.internalMenuId||(Le.eventKey?this.internalMenuId="".concat(Le.eventKey,"$Menu"):(X+=1,this.internalMenuId="$__$".concat(X,"$Menu")));var at={},xt={},Rt={};Le.disabled||(at={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},xt={onClick:this.onTitleClick},Rt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var cn={},xn=Le.direction;en&&(xn==="rtl"?cn.paddingRight=Le.inlineIndent*Le.level:cn.paddingLeft=Le.inlineIndent*Le.level);var ar={};this.props.isOpen&&(ar={"aria-owns":this.internalMenuId});var fr=null;Le.mode!=="horizontal"&&(fr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(fr=W.createElement(this.props.expandIcon,Object(re.a)({},this.props))));var tr=W.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:cn,className:"".concat(ft,"-title"),role:"button"},Rt,xt,{"aria-expanded":yt},ar,{"aria-haspopup":"true",title:typeof Le.title=="string"?Le.title:void 0}),Le.title,fr||W.createElement("i",{className:"".concat(ft,"-arrow")})),Sn=this.renderChildren(Le.children),Vr=Le.parentMenu.isRootMenu?Le.parentMenu.props.getPopupContainer:function(Er){return Er.parentNode},oa=ue[Le.mode],Br=Le.popupOffset?{offset:Le.popupOffset}:{},cr=Le.mode==="inline"?"":Le.popupClassName;cr+=xn==="rtl"?" ".concat(ft,"-rtl"):"";var Kr=Le.disabled,na=Le.triggerSubMenuAction,da=Le.subMenuOpenDelay,Wt=Le.forceSubMenuRender,Tn=Le.subMenuCloseDelay,lr=Le.builtinPlacements;Ye.forEach(function(Er){return delete Le[Er]}),delete Le.onClick;var Pr=xn==="rtl"?Object.assign({},J,lr):Object.assign({},pe,lr);return delete Le.direction,W.createElement("li",Object.assign({},Le,at,{className:Xt,role:"menuitem"}),en&&tr,en&&Sn,!en&&W.createElement(Oe.a,{prefixCls:ft,popupClassName:n()("".concat(ft,"-popup"),cr),getPopupContainer:Vr,builtinPlacements:Pr,popupPlacement:oa,popupVisible:yt,popupAlign:Br,popup:Sn,action:Kr?[]:[na],mouseEnterDelay:da,mouseLeaveDelay:Tn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Wt},tr))}}]),St}(W.Component);We.defaultProps={onMouseEnter:B,onMouseLeave:B,onTitleMouseEnter:B,onTitleMouseLeave:B,onTitleClick:B,manualRef:B,mode:"vertical",title:""};var Ke=Object(y.b)(function(Jt,wt){var St=Jt.openKeys,lt=Jt.activeKey,ge=Jt.selectedKeys,Le=wt.eventKey,yt=wt.subMenuKey;return{isOpen:St.indexOf(Le)>-1,active:lt[yt]===Le,selectedKeys:ge}})(We);Ke.isSubMenu=!0;var Lt=Ke,Kt="menuitem-overflowed",Bt=.5,kt=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(){var lt;return Object(G.a)(this,St),lt=wt.apply(this,arguments),lt.resizeObserver=null,lt.mutationObserver=null,lt.originalTotalWidth=0,lt.overflowedItems=[],lt.menuItemSizes=[],lt.cancelFrameId=null,lt.state={lastVisibleIndex:void 0},lt.getMenuItemNodes=function(){var ge=lt.props.prefixCls,Le=me.findDOMNode(Object(z.a)(lt));return Le?[].slice.call(Le.children).filter(function(yt){return yt.className.split(" ").indexOf("".concat(ge,"-overflowed-submenu"))<0}):[]},lt.getOverflowedSubMenuItem=function(ge,Le,yt){var ft=lt.props,en=ft.overflowedIndicator,Xt=ft.level,at=ft.mode,xt=ft.prefixCls,Rt=ft.theme;if(Xt!==1||at!=="horizontal")return null;var cn=lt.props.children[0],xn=cn.props,ar=xn.children,fr=xn.title,tr=xn.style,Sn=Object(Ae.a)(xn,["children","title","style"]),Vr=Object(re.a)({},tr),oa="".concat(ge,"-overflowed-indicator"),Br="".concat(ge,"-overflowed-indicator");Le.length===0&&yt!==!0?Vr=Object(re.a)(Object(re.a)({},Vr),{},{display:"none"}):yt&&(Vr=Object(re.a)(Object(re.a)({},Vr),{},{visibility:"hidden",position:"absolute"}),oa="".concat(oa,"-placeholder"),Br="".concat(Br,"-placeholder"));var cr=Rt?"".concat(xt,"-").concat(Rt):"",Kr={};return Ye.forEach(function(na){Sn[na]!==void 0&&(Kr[na]=Sn[na])}),W.createElement(Lt,Object.assign({title:en,className:"".concat(xt,"-overflowed-submenu"),popupClassName:cr},Kr,{key:oa,eventKey:Br,disabled:!1,style:Vr}),Le)},lt.setChildrenWidthAndResize=function(){if(lt.props.mode!=="horizontal")return;var ge=me.findDOMNode(Object(z.a)(lt));if(!ge)return;var Le=ge.children;if(!Le||Le.length===0)return;var yt=ge.children[Le.length-1];je(yt,"display","inline-block");var ft=lt.getMenuItemNodes(),en=ft.filter(function(Xt){return Xt.className.split(" ").indexOf(Kt)>=0});en.forEach(function(Xt){je(Xt,"display","inline-block")}),lt.menuItemSizes=ft.map(function(Xt){return Pe(Xt,!0)}),en.forEach(function(Xt){je(Xt,"display","none")}),lt.overflowedIndicatorWidth=Pe(ge.children[ge.children.length-1],!0),lt.originalTotalWidth=lt.menuItemSizes.reduce(function(Xt,at){return Xt+at},0),lt.handleResize(),je(yt,"display","none")},lt.handleResize=function(){if(lt.props.mode!=="horizontal")return;var ge=me.findDOMNode(Object(z.a)(lt));if(!ge)return;var Le=Pe(ge);lt.overflowedItems=[];var yt=0,ft;lt.originalTotalWidth>Le+Bt&&(ft=-1,lt.menuItemSizes.forEach(function(en){yt+=en,yt+lt.overflowedIndicatorWidth<=Le&&(ft+=1)})),lt.setState({lastVisibleIndex:ft})},lt}return Object(I.a)(St,[{key:"componentDidMount",value:function(){var ge=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Le=me.findDOMNode(this);if(!Le)return;this.resizeObserver=new ie.default(function(yt){yt.forEach(function(){var ft=ge.cancelFrameId;cancelAnimationFrame(ft),ge.cancelFrameId=requestAnimationFrame(ge.setChildrenWidthAndResize)})}),[].slice.call(Le.children).concat(Le).forEach(function(yt){ge.resizeObserver.observe(yt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ge.resizeObserver.disconnect(),[].slice.call(Le.children).concat(Le).forEach(function(yt){ge.resizeObserver.observe(yt)}),ge.setChildrenWidthAndResize()}),this.mutationObserver.observe(Le,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ge){var Le=this,yt=this.state.lastVisibleIndex;return(ge||[]).reduce(function(ft,en,Xt){var at=en;if(Le.props.mode==="horizontal"){var xt=Le.getOverflowedSubMenuItem(en.props.eventKey,[]);yt!==void 0&&Le.props.className.indexOf("".concat(Le.props.prefixCls,"-root"))!==-1&&(Xt>yt&&(at=W.cloneElement(en,{style:{display:"none"},eventKey:"".concat(en.props.eventKey,"-hidden"),className:"".concat(Kt)})),Xt===yt+1&&(Le.overflowedItems=ge.slice(yt+1).map(function(cn){return W.cloneElement(cn,{key:cn.props.eventKey,mode:"vertical-left"})}),xt=Le.getOverflowedSubMenuItem(en.props.eventKey,Le.overflowedItems)));var Rt=[].concat(Object(Ze.a)(ft),[xt,at]);return Xt===ge.length-1&&Rt.push(Le.getOverflowedSubMenuItem(en.props.eventKey,[],!0)),Rt}return[].concat(Object(Ze.a)(ft),[at])},[])}},{key:"render",value:function(){var ge=this.props,Le=ge.visible,yt=ge.prefixCls,ft=ge.overflowedIndicator,en=ge.mode,Xt=ge.level,at=ge.tag,xt=ge.children,Rt=ge.theme,cn=Object(Ae.a)(ge,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),xn=at;return W.createElement(xn,Object.assign({},cn),this.renderChildren(xt))}}]),St}(W.Component);kt.defaultProps={tag:"div",className:""};var Qt=kt;function hn(Jt){return Jt.length?Jt.every(function(wt){return!!wt.props.disabled}):!0}function qe(Jt,wt,St){var lt=Jt.getState();Jt.setState({activeKey:Object(re.a)(Object(re.a)({},lt.activeKey),{},Object(d.a)({},wt,St))})}function Ue(Jt){return Jt.eventKey||"0-menu-"}function vt(Jt,wt){var St=wt,lt=Jt.children,ge=Jt.eventKey;if(St){var Le;if(he(lt,function(yt,ft){yt&&yt.props&&!yt.props.disabled&&St===q(yt,ge,ft)&&(Le=!0)}),Le)return St}return St=null,Jt.defaultActiveFirst&&he(lt,function(yt,ft){!St&&yt&&!yt.props.disabled&&(St=q(yt,ge,ft))}),St}function Mt(Jt){if(Jt){var wt=this.instanceArray.indexOf(Jt);wt!==-1?this.instanceArray[wt]=Jt:this.instanceArray.push(Jt)}}var st=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(lt){var ge;return Object(G.a)(this,St),ge=wt.call(this,lt),ge.onKeyDown=function(Le,yt){var ft=Le.keyCode,en;if(ge.getFlatInstanceArray().forEach(function(at){at&&at.props.active&&at.onKeyDown&&(en=at.onKeyDown(Le))}),en)return 1;var Xt=null;return(ft===p.a.UP||ft===p.a.DOWN)&&(Xt=ge.step(ft===p.a.UP?-1:1)),Xt?(Le.preventDefault(),qe(ge.props.store,Ue(ge.props),Xt.props.eventKey),typeof yt=="function"&&yt(Xt),1):void 0},ge.onItemHover=function(Le){var yt=Le.key,ft=Le.hover;qe(ge.props.store,Ue(ge.props),ft?yt:null)},ge.onDeselect=function(Le){ge.props.onDeselect(Le)},ge.onSelect=function(Le){ge.props.onSelect(Le)},ge.onClick=function(Le){ge.props.onClick(Le)},ge.onOpenChange=function(Le){ge.props.onOpenChange(Le)},ge.onDestroy=function(Le){ge.props.onDestroy(Le)},ge.getFlatInstanceArray=function(){return ge.instanceArray},ge.step=function(Le){var yt=ge.getFlatInstanceArray(),ft=ge.props.store.getState().activeKey[Ue(ge.props)],en=yt.length;if(!en)return null;Le<0&&(yt=yt.concat().reverse());var Xt=-1;if(yt.every(function(cn,xn){return cn&&cn.props.eventKey===ft?(Xt=xn,!1):!0}),!ge.props.defaultActiveFirst&&Xt!==-1&&hn(yt.slice(Xt,en-1)))return;var at=(Xt+1)%en,xt=at;do{var Rt=yt[xt];if(!Rt||Rt.props.disabled)xt=(xt+1)%en;else return Rt}while(xt!==at);return null},ge.renderCommonMenuItem=function(Le,yt,ft){var en=ge.props.store.getState(),Xt=Object(z.a)(ge),at=Xt.props,xt=q(Le,at.eventKey,yt),Rt=Le.props;if(!Rt||typeof Le.type=="string")return Le;var cn=xt===en.activeKey,xn=Object(re.a)(Object(re.a)({mode:Rt.mode||at.mode,level:at.level,inlineIndent:at.inlineIndent,renderMenuItem:ge.renderMenuItem,rootPrefixCls:at.prefixCls,index:yt,parentMenu:at.parentMenu,manualRef:Rt.disabled?void 0:Object(_.a)(Le.ref,Mt.bind(Object(z.a)(ge))),eventKey:xt,active:!Rt.disabled&&cn,multiple:at.multiple,onClick:function(fr){(Rt.onClick||B)(fr),ge.onClick(fr)},onItemHover:ge.onItemHover,motion:at.motion,subMenuOpenDelay:at.subMenuOpenDelay,subMenuCloseDelay:at.subMenuCloseDelay,forceSubMenuRender:at.forceSubMenuRender,onOpenChange:ge.onOpenChange,onDeselect:ge.onDeselect,onSelect:ge.onSelect,builtinPlacements:at.builtinPlacements,itemIcon:Rt.itemIcon||ge.props.itemIcon,expandIcon:Rt.expandIcon||ge.props.expandIcon},ft),{},{direction:at.direction});return(at.mode==="inline"||Qe())&&(xn.triggerSubMenuAction="click"),W.cloneElement(Le,xn)},ge.renderMenuItem=function(Le,yt,ft){if(!Le)return null;var en=ge.props.store.getState(),Xt={openKeys:en.openKeys,selectedKeys:en.selectedKeys,triggerSubMenuAction:ge.props.triggerSubMenuAction,subMenuKey:ft};return ge.renderCommonMenuItem(Le,yt,Xt)},lt.store.setState({activeKey:Object(re.a)(Object(re.a)({},lt.store.getState().activeKey),{},Object(d.a)({},lt.eventKey,vt(lt,lt.activeKey)))}),ge.instanceArray=[],ge}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ge){return this.props.visible||ge.visible||this.props.className!==ge.className||!h()(this.props.style,ge.style)}},{key:"componentDidUpdate",value:function(ge){var Le=this.props,yt="activeKey"in Le?Le.activeKey:Le.store.getState().activeKey[Ue(Le)],ft=vt(Le,yt);if(ft!==yt)qe(Le.store,Ue(Le),ft);else if("activeKey"in ge){var en=vt(ge,ge.activeKey);ft!==en&&qe(Le.store,Ue(Le),ft)}}},{key:"render",value:function(){var ge=this,Le=Object(R.a)({},this.props);this.instanceArray=[];var yt=n()(Le.prefixCls,Le.className,"".concat(Le.prefixCls,"-").concat(Le.mode)),ft={className:yt,role:Le.role||"menu"};Le.id&&(ft.id=Le.id),Le.focusable&&(ft.tabIndex=0,ft.onKeyDown=this.onKeyDown);var en=Le.prefixCls,Xt=Le.eventKey,at=Le.visible,xt=Le.level,Rt=Le.mode,cn=Le.overflowedIndicator,xn=Le.theme;return Ye.forEach(function(ar){return delete Le[ar]}),delete Le.onClick,W.createElement(Qt,Object.assign({},Le,{prefixCls:en,mode:Rt,tag:"ul",level:xt,theme:xn,visible:at,overflowedIndicator:cn},ft),W.Children.map(Le.children,function(ar,fr){return ge.renderMenuItem(ar,fr,Xt||"0-menu-")}))}}]),St}(W.Component);st.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:B};var Ct=Object(y.b)()(st),Ne=Ct,Se=M("Kwbf");function Te(Jt,wt,St){var lt=Jt.prefixCls,ge=Jt.motion,Le=Jt.defaultMotions,yt=Le===void 0?{}:Le,ft=Jt.openAnimation,en=Jt.openTransitionName,Xt=wt.switchingModeFromInline;if(ge)return ge;if(Object(r.a)(ft)==="object"&&ft)Object(Se.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ft=="string")return{motionName:"".concat(lt,"-open-").concat(ft)};if(en)return{motionName:en};var at=yt[St];return at||(Xt?null:yt.other)}var le=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(lt){var ge;Object(G.a)(this,St),ge=wt.call(this,lt),ge.inlineOpenKeys=[],ge.onSelect=function(ft){var en=Object(z.a)(ge),Xt=en.props;if(Xt.selectable){var at=ge.store.getState(),xt=at.selectedKeys,Rt=ft.key;Xt.multiple?xt=xt.concat([Rt]):xt=[Rt],"selectedKeys"in Xt||ge.store.setState({selectedKeys:xt}),Xt.onSelect(Object(re.a)(Object(re.a)({},ft),{},{selectedKeys:xt}))}},ge.onClick=function(ft){var en=ge.getRealMenuMode(),Xt=Object(z.a)(ge),at=Xt.store,xt=Xt.props.onOpenChange;en!=="inline"&&!("openKeys"in ge.props)&&(at.setState({openKeys:[]}),xt([])),ge.props.onClick(ft)},ge.onKeyDown=function(ft,en){ge.innerMenu.getWrappedInstance().onKeyDown(ft,en)},ge.onOpenChange=function(ft){var en=Object(z.a)(ge),Xt=en.props,at=ge.store.getState().openKeys.concat(),xt=!1,Rt=function(xn){var ar=!1;if(xn.open)ar=at.indexOf(xn.key)===-1,ar&&at.push(xn.key);else{var fr=at.indexOf(xn.key);ar=fr!==-1,ar&&at.splice(fr,1)}xt=xt||ar};Array.isArray(ft)?ft.forEach(Rt):Rt(ft),xt&&("openKeys"in ge.props||ge.store.setState({openKeys:at}),Xt.onOpenChange(at))},ge.onDeselect=function(ft){var en=Object(z.a)(ge),Xt=en.props;if(Xt.selectable){var at=ge.store.getState().selectedKeys.concat(),xt=ft.key,Rt=at.indexOf(xt);Rt!==-1&&at.splice(Rt,1),"selectedKeys"in Xt||ge.store.setState({selectedKeys:at}),Xt.onDeselect(Object(re.a)(Object(re.a)({},ft),{},{selectedKeys:at}))}},ge.onMouseEnter=function(ft){ge.restoreModeVerticalFromInline();var en=ge.props.onMouseEnter;en&&en(ft)},ge.onTransitionEnd=function(ft){var en=ft.propertyName==="width"&&ft.target===ft.currentTarget,Xt=ft.target.className,at=Object.prototype.toString.call(Xt)==="[object SVGAnimatedString]"?Xt.animVal:Xt,xt=ft.propertyName==="font-size"&&at.indexOf("anticon")>=0;(en||xt)&&ge.restoreModeVerticalFromInline()},ge.setInnerMenu=function(ft){ge.innerMenu=ft},ge.isRootMenu=!0;var Le=lt.defaultSelectedKeys,yt=lt.defaultOpenKeys;return"selectedKeys"in lt&&(Le=lt.selectedKeys||[]),"openKeys"in lt&&(yt=lt.openKeys||[]),ge.store=Object(y.c)({selectedKeys:Le,openKeys:yt,activeKey:{"0-menu-":vt(lt,lt.activeKey)}}),ge.state={switchingModeFromInline:!1},ge}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ge){this.updateOpentKeysWhenSwitchMode(ge),this.updateMiniStore();var Le=this.props,yt=Le.siderCollapsed,ft=Le.inlineCollapsed,en=Le.onOpenChange;(!ge.inlineCollapsed&&ft||!ge.siderCollapsed&&yt)&&en([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ge){var Le=this.props,yt=this.store,ft=this.inlineOpenKeys,en=yt.getState(),Xt={};ge.mode==="inline"&&Le.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Le||((Le.inlineCollapsed&&!ge.inlineCollapsed||Le.siderCollapsed&&!ge.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=en.openKeys.concat(),Xt.openKeys=[]),(!Le.inlineCollapsed&&ge.inlineCollapsed||!Le.siderCollapsed&&ge.siderCollapsed)&&(Xt.openKeys=ft,this.inlineOpenKeys=[])),Object.keys(Xt).length&&yt.setState(Xt)}},{key:"updateMenuDisplay",value:function(){var ge=this.props.collapsedWidth,Le=this.store,yt=this.prevOpenKeys,ft=this.getInlineCollapsed()&&(ge===0||ge==="0"||ge==="0px");ft?(this.prevOpenKeys=Le.getState().openKeys.concat(),this.store.setState({openKeys:[]})):yt&&(this.store.setState({openKeys:yt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ge=this.props.mode,Le=this.state.switchingModeFromInline,yt=this.getInlineCollapsed();return Le&&yt?"inline":yt?"vertical":ge}},{key:"getInlineCollapsed",value:function(){var ge=this.props,Le=ge.inlineCollapsed,yt=ge.siderCollapsed;return yt!==void 0?yt:Le}},{key:"restoreModeVerticalFromInline",value:function(){var ge=this.state.switchingModeFromInline;ge&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ge=Object(re.a)({},Object(L.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Le=this.getRealMenuMode();return ge.className+=" ".concat(ge.prefixCls,"-root"),ge.direction==="rtl"&&(ge.className+=" ".concat(ge.prefixCls,"-rtl")),ge=Object(re.a)(Object(re.a)({},ge),{},{mode:Le,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Te(this.props,this.state,Le)}),delete ge.openAnimation,delete ge.openTransitionName,W.createElement(y.a,{store:this.store},W.createElement(Ne,Object.assign({},ge,{ref:this.setInnerMenu}),this.props.children))}}]),St}(W.Component);le.defaultProps={selectable:!0,onClick:B,onSelect:B,onOpenChange:B,onDeselect:B,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:W.createElement("span",null,"\xB7\xB7\xB7")};var fe=le,_e=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(){var lt;return Object(G.a)(this,St),lt=wt.apply(this,arguments),lt.onKeyDown=function(ge){var Le=ge.keyCode;return Le===p.a.ENTER?(lt.onClick(ge),!0):void 0},lt.onMouseLeave=function(ge){var Le=lt.props,yt=Le.eventKey,ft=Le.onItemHover,en=Le.onMouseLeave;ft({key:yt,hover:!1}),en({key:yt,domEvent:ge})},lt.onMouseEnter=function(ge){var Le=lt.props,yt=Le.eventKey,ft=Le.onItemHover,en=Le.onMouseEnter;ft({key:yt,hover:!0}),en({key:yt,domEvent:ge})},lt.onClick=function(ge){var Le=lt.props,yt=Le.eventKey,ft=Le.multiple,en=Le.onClick,Xt=Le.onSelect,at=Le.onDeselect,xt=Le.isSelected,Rt={key:yt,keyPath:[yt],item:Object(z.a)(lt),domEvent:ge};en(Rt),ft?xt?at(Rt):Xt(Rt):xt||Xt(Rt)},lt.saveNode=function(ge){lt.node=ge},lt}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ge=this.props;ge.onDestroy&&ge.onDestroy(ge.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ge,Le=Object(re.a)({},this.props),yt=n()(this.getPrefixCls(),Le.className,(ge={},Object(d.a)(ge,this.getActiveClassName(),!Le.disabled&&Le.active),Object(d.a)(ge,this.getSelectedClassName(),Le.isSelected),Object(d.a)(ge,this.getDisabledClassName(),Le.disabled),ge)),ft=Object(re.a)(Object(re.a)({},Le.attribute),{},{title:typeof Le.title=="string"?Le.title:void 0,className:yt,role:Le.role||"menuitem","aria-disabled":Le.disabled});Le.role==="option"?ft=Object(re.a)(Object(re.a)({},ft),{},{role:"option","aria-selected":Le.isSelected}):(Le.role===null||Le.role==="none")&&(ft.role="none");var en={onClick:Le.disabled?null:this.onClick,onMouseLeave:Le.disabled?null:this.onMouseLeave,onMouseEnter:Le.disabled?null:this.onMouseEnter},Xt=Object(re.a)({},Le.style);Le.mode==="inline"&&(Le.direction==="rtl"?Xt.paddingRight=Le.inlineIndent*Le.level:Xt.paddingLeft=Le.inlineIndent*Le.level),Ye.forEach(function(xt){return delete Le[xt]}),delete Le.direction;var at=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(at=W.createElement(this.props.itemIcon,this.props)),W.createElement("li",Object.assign({},Object(L.default)(Le,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ft,en,{style:Xt,ref:this.saveNode}),Le.children,at)}}]),St}(W.Component);_e.isMenuItem=!0,_e.defaultProps={onSelect:B,onMouseEnter:B,onMouseLeave:B,manualRef:B};var Me=Object(y.b)(function(Jt,wt){var St=Jt.activeKey,lt=Jt.selectedKeys,ge=wt.eventKey,Le=wt.subMenuKey;return{active:St[Le]===ge,isSelected:lt.indexOf(ge)!==-1}})(_e),rt=Me,Je=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(){var lt;return Object(G.a)(this,St),lt=wt.apply(this,arguments),lt.renderInnerMenuItem=function(ge){var Le=lt.props,yt=Le.renderMenuItem,ft=Le.index;return yt(ge,ft,lt.props.subMenuKey)},lt}return Object(I.a)(St,[{key:"render",value:function(){var ge=Object(R.a)({},this.props),Le=ge.className,yt=Le===void 0?"":Le,ft=ge.rootPrefixCls,en="".concat(ft,"-item-group-title"),Xt="".concat(ft,"-item-group-list"),at=ge.title,xt=ge.children;return Ye.forEach(function(Rt){return delete ge[Rt]}),delete ge.onClick,delete ge.direction,W.createElement("li",Object.assign({},ge,{className:"".concat(yt," ").concat(ft,"-item-group")}),W.createElement("div",{className:en,title:typeof at=="string"?at:void 0},at),W.createElement("ul",{className:Xt},W.Children.map(xt,this.renderInnerMenuItem)))}}]),St}(W.Component);Je.isMenuItemGroup=!0,Je.defaultProps={disabled:!0};var jt=Je,rn=function(wt){var St=wt.className,lt=wt.rootPrefixCls,ge=wt.style;return W.createElement("li",{className:"".concat(St," ").concat(lt,"-item-divider"),style:ge})};rn.defaultProps={disabled:!0,className:"",style:{}};var pn=rn,on=Ce.e=fe},"24hK":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return I});var re=M("JYp7"),G=function(){function z(O){this.element=O,this.next=z.Undefined,this.prev=z.Undefined}return z.Undefined=new z(void 0),z}(),I=function(){function z(){this._first=G.Undefined,this._last=G.Undefined,this._size=0}return Object.defineProperty(z.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),z.prototype.isEmpty=function(){return this._first===G.Undefined},z.prototype.clear=function(){this._first=G.Undefined,this._last=G.Undefined,this._size=0},z.prototype.unshift=function(O){return this._insert(O,!1)},z.prototype.push=function(O){return this._insert(O,!0)},z.prototype._insert=function(O,w){var W=this,y=new G(O);if(this._first===G.Undefined)this._first=y,this._last=y;else if(w){var L=this._last;this._last=y,y.prev=L,L.next=y}else{var R=this._first;this._first=y,y.next=R,R.prev=y}this._size+=1;var d=!1;return function(){d||(d=!0,W._remove(y))}},z.prototype.shift=function(){if(this._first===G.Undefined)return;var O=this._first.element;return this._remove(this._first),O},z.prototype.pop=function(){if(this._last===G.Undefined)return;var O=this._last.element;return this._remove(this._last),O},z.prototype._remove=function(O){if(O.prev!==G.Undefined&&O.next!==G.Undefined){var w=O.prev;w.next=O.next,O.next.prev=w}else O.prev===G.Undefined&&O.next===G.Undefined?(this._first=G.Undefined,this._last=G.Undefined):O.next===G.Undefined?(this._last=this._last.prev,this._last.next=G.Undefined):O.prev===G.Undefined&&(this._first=this._first.next,this._first.prev=G.Undefined);this._size-=1},z.prototype.iterator=function(){var O,w=this._first;return{next:function(){return w===G.Undefined?re.c:(O?O.value=w.element:O={done:!1,value:w.element},w=w.next,O)}}},z.prototype.toArray=function(){for(var O=[],w=this._first;w!==G.Undefined;w=w.next)O.push(w.element);return O},z}()},"28ck":function(nn,Ce,M){nn.exports={flex_box_center:"flex_box_center___2EzbZ",flex_space_between:"flex_space_between___2jjzS",flex_box_vertical_center:"flex_box_vertical_center___35dLT",flex_box_center_end:"flex_box_center_end___2fyJ3",flex_box_column:"flex_box_column___3lKUC",title:"title___3cIut",export:"export___3pzhF",bg:"bg___2HApn",tabs:"tabs___pZ5ue",workListTabWrap:"workListTabWrap___3EyRO",workListTabButton:"workListTabButton___1vYHr"}},"3IPh":function(nn,Ce,M){nn.exports={wrap:"wrap___cA_8q",MdEditor:"MdEditor___8fwED",workListButtonWrap:"workListButtonWrap___19mp3",anticon:"anticon___3Lzu8",workListClass:"workListClass___1J6Go",left:"left___21zr0",visible:"visible___38N4N",status:"status___1j6mP",tips:"tips___2L_mR"}},"49sm":function(nn,Ce){var M={}.toString;nn.exports=Array.isArray||function(re){return M.call(re)=="[object Array]"}},"4HvA":function(nn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("sRBo"),z=M("kaz8"),O=M("7Kak"),w=M("9yH6"),W=M("14J3"),y=M("BMrR"),L=M("jCWc"),R=M("kPKH"),d=M("iQDF"),p=M("+eQT"),_=M("miYZ"),v=M("tsqr"),h=M("jrin"),c=M("oBTY"),n=M("9og8"),r=M("k1fw"),o=M("y8nQ"),l=M("Vl3Y"),x=M("tJVT"),E=M("PpiC"),b=M("WmNS"),P=M.n(b),T=M("q1tI"),m=M.n(T),g=M("wd/R"),s=M.n(g),u=M("ErOA"),D=M("xKgJ"),S=M("1vsH"),A=M("Ty5D"),N=M("9kvl"),j=M("4wi7"),K=M("oUNq");function H(q,ee){for(var he=[],be=q;be0)){Xt.next=7;break}return v.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Xt.abrupt("return");case 7:return yt={homework_ids:Object(c.a)(he.actionTabs.selectArrs),group_ids:fe.map(function(at){return at.id}),end_time:s()(Le.end_time).format("YYYY-MM-DD HH:mm"),publish_time:s()(Le.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!fe.length},Xt.next=10,Object(u.a)("/api/courses/".concat(Pe.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(r.a)({},yt)});case 10:ft=Xt.sent,ft.status===0&&(Object(S.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),v.b.success("\u53D1\u5E03\u6210\u529F"),be({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Ye.onCallback&&Ye.onCallback(),on(),localStorage.getItem("Noviceguide")==="0"||be({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:m.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return Xt.stop()}},ge)}));return function(){return lt.apply(this,arguments)}}(),wt=function(){Oe(1),J([]),_e([])},St=ue>ie*Lt;return m.a.createElement(G.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:he.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Jt,onCancel:function(){wt(),on(),be({type:"classroomList/setActionTabs",payload:{}})}},m.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",m.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),pe&&m.a.createElement(l.a,{form:Ze},m.a.createElement("div",{style:{paddingLeft:0}},m.a.createElement(y.a,{className:"mt30",align:"middle"},m.a.createElement(R.a,null,m.a.createElement(l.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},m.a.createElement(p.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(ge){return ge.parentNode},disabledDate:function(ge){return ge&&ge<=s()().subtract(0,"days")},disabledTime:U,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:s()(Object(S.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),m.a.createElement(R.a,{className:"ml20"},m.a.createElement(l.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},m.a.createElement(p.a,{style:{width:170},getPopupContainer:function(ge){return ge.parentNode},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:s()(Object(S.d)(),"HH:mm")},disabledDate:function(ge){return ge&&ge0&&m.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},m.a.createElement("span",{style:{flex:1}},m.a.createElement(z.a,{checked:fe.length===pe.length,onChange:function(ge){fe.length===pe.length?_e([]):_e(pe.filter(function(Le){return!Le.is_published}))}},"\u5168\u9009")," "),m.a.createElement("span",{style:{width:16}}),m.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",fe.length||0,"\u4E2A\u5206\u73ED")),(he.actionTabs.type===1||!Je)&&pe.length>0&&m.a.createElement(j.a,{data:pe,selectedRowKeys:fe,setSelectedRowKeys:_e})))};Ce.a=Object(N.a)(function(q){var ee=q.classroomList,he=q.user;return{classroomList:ee,user:he}})(B)},"4wi7":function(nn,Ce,M){"use strict";var re=M("14J3"),G=M("BMrR"),I=M("sRBo"),z=M("kaz8"),O=M("5NDa"),w=M("5rEg"),W=M("9og8"),y=M("tJVT"),L=M("WmNS"),R=M.n(L),d=M("q1tI"),p=M.n(d),_=M("oOBs"),v=M.n(_),h=M("xOL1"),c=M.n(h),n=M("BdwD"),r=function(l){var x=l.data,E=l.value,b=E===void 0?[]:E,P=l.handleChangePage,T=l.setSelectedRowKeys,m=l.selectedRowKeys,g=l.onChange,s=g===void 0?function(){}:g,u=Object(d.useState)([]),D=Object(y.a)(u,2),S=D[0],A=D[1],N=Object(d.useState)([]),j=Object(y.a)(N,2),K=j[0],H=j[1],U=Object(d.useState)([]),B=Object(y.a)(U,2),q=B[0],ee=B[1],he=Object(d.useState)(1),be=Object(y.a)(he,2),Ye=be[0],Pe=be[1],je=Object(d.useState)(),Qe=Object(y.a)(je,2),Ze=Qe[0],Ae=Qe[1];return Object(d.useEffect)(function(){A(x),H([]),ee([])},[x]),Object(d.useEffect)(function(){T&&(H(m),ee(m))},[m]),p.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},p.a.createElement("div",{className:v.a.leftdiv},p.a.createElement(w.a.Search,{size:"large",onChange:function(){var me=Object(W.a)(R.a.mark(function ie(Oe){return R.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:A(x.filter(function(pe){var J;return pe==null||((J=pe.name)===null||J===void 0)?void 0:J.includes(Oe.target.value)}));case 1:case"end":return Ge.stop()}},ie)}));return function(ie){return me.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),S.length===0&&p.a.createElement(n.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),p.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},p.a.createElement(z.a.Group,{value:K.map(function(me){return"".concat(me.id)}),onChange:function(ie){T(S.filter(function(Oe){return ie.includes("".concat(Oe.id))}))},style:{marginTop:"10px"}},S.map(function(me,ie){return p.a.createElement(G.a,{key:me.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},p.a.createElement(z.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:me.is_published,value:"".concat(me.id)},p.a.createElement("div",{className:v.a.listClass},p.a.createElement("span",{className:v.a.spantitle,style:{width:me.is_published?"108px":"170px"}},me.name),me.is_published&&p.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),p.a.createElement("div",{className:v.a.rightdiv},p.a.createElement(w.a.Search,{onChange:function(ie){ee(K.filter(function(Oe){return Oe.name.includes(ie.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),q.length===0&&p.a.createElement(n.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),q.length>0&&p.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},p.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},q.map(function(me,ie){return p.a.createElement(G.a,{justify:"space-between",style:{marginTop:"10px"},key:me.id},p.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},me.name),p.a.createElement("img",{src:c.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){T(K.filter(function(ve){return"".concat(ve.id)!="".concat(me.id)}))}}))})))))};Ce.a=r},"500L":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return E});var re=M("+L6B"),G=M("2/Rp"),I=M("2qtc"),z=M("kLXV"),O=M("9og8"),w=M("k1fw"),W=M("miYZ"),y=M("tsqr"),L=M("oBTY"),R=M("tJVT"),d=M("DZo9"),p=M("8z0m"),_=M("WmNS"),v=M.n(_),h=M("q1tI"),c=M.n(h),n=M("m3rI"),r=M("wzkS"),o=M("y5JW"),l=M("LtfV"),x=p.a.Dragger;function E(b){var P=[];return b&&b.length>0&&(P=b.map(function(T){return{uid:T.id,id:T.id,name:T.title+o.c+T.filesize,url:T.url,filesize:T.filesize,status:"done",response:{id:T.id}}})),P}Ce.b=function(b){var P=b.value,T=b.onChange,m=b.action,g=b.className,s=b.maxSize,u=s===void 0?150:s,D=b.title,S=D===void 0?"\u4E0A\u4F20\u9644\u4EF6":D,A=b.showRemoveModal,N=A===void 0?!1:A,j=b.accept,K=j===void 0?"":j,H=b.additionalText,U=b.isDragger,B=b.number,q=B===void 0?1e3:B,ee=b.aloneClear,he=ee===void 0?!1:ee,be=b.restrict,Ye=be===void 0?!0:be,Pe=Object(h.useState)(!1),je=Object(R.a)(Pe,2),Qe=je[0],Ze=je[1],Ae=Object(h.useState)(P||[]),me=Object(R.a)(Ae,2),ie=me[0],Oe=me[1];Object(h.useEffect)(function(){P&&(Oe(Object(L.a)(P)),q===(P==null?void 0:P.length)&&Ze(!0))},[P]);var ve=function(){setTimeout(function(){ie.pop(),Oe(Object(L.a)(ie))},500)},Ge={multiple:!0,disabled:Qe,accept:K,withCredentials:!0,fileList:ie,beforeUpload:function(V,X){var ue=V.size/1024/1024;return ie.concat(X).length>q?(ie.pop(),Oe(Object(L.a)(ie)),y.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(q,"\u4E2A\u6587\u4EF6")),he?Promise.reject():(ve(),!1)):ue=q?Ze(!0):Ze(!1),Oe(Object(L.a)(X)),X=X.map(function(ue){var Ee;if(ue!=null&&(Ee=ue.response)!==null&&Ee!==void 0&&Ee.id){var We;ue.url="/api/attachments/".concat(ue==null||((We=ue.response)===null||We===void 0)?void 0:We.id)}return ue.name.indexOf(o.c)===-1&&(ue.name="".concat(ue.name).concat(o.c).concat(Object(o.a)(ue.size))),Object(w.a)({},ue)}),console.log("info:",V),T(X)},onRemove:function(){var J=Object(O.a)(v.a.mark(function X(ue){var Ee;return v.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Ee=function(){var Lt=Object(O.a)(v.a.mark(function Kt(){var Bt,kt;return v.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(Bt=ue.response?ue.response.id:ue.id,!Bt){hn.next=8;break}return hn.next=4,Object(r.d)(ue.response?ue.response.id:ue.uid);case 4:return kt=hn.sent,hn.abrupt("return",kt);case 8:return hn.abrupt("return",!0);case 9:case"end":return hn.stop()}},Kt)}));return function(){return Lt.apply(this,arguments)}}(),!N){Ke.next=5;break}return Ke.abrupt("return",new Promise(function(Lt,Kt){z.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var Bt=Object(O.a)(v.a.mark(function Qt(){var hn;return v.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Ee();case 2:hn=Ue.sent,y.b.success("\u5220\u9664\u6210\u529F"),Lt(!0);case 5:case"end":return Ue.stop()}},Qt)}));function kt(){return Bt.apply(this,arguments)}return kt}(),onCancel:function(){return Lt(!1)}})}));case 5:return Ke.next=7,Ee();case 7:return Ke.abrupt("return",Ke.sent);case 8:case"end":return Ke.stop()}},X)}));function V(X){return J.apply(this,arguments)}return V}()};function pe(J){J.preventDefault(),J.stopPropagation()}return c.a.createElement("div",{className:"multi-upload ".concat(g||"")},U&&c.a.createElement(x,Ge,c.a.createElement("p",{className:"ant-upload-drag-icon"},c.a.createElement(l.a,null)),c.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",c.a.createElement("br",null),c.a.createElement("span",{style:{display:Ye?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",u,"MB) ")),H),!U&&c.a.createElement(p.a,Ge,c.a.createElement(G.a,{disabled:Qe},S),c.a.createElement("span",{onClick:pe,style:{marginLeft:10,color:"#FA6400",display:Ye?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",u,"MB) ")))}},"55Ip":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return o}),M.d(Ce,"b",function(){return T});var re=M("Ty5D"),G=M("dI71"),I=M("q1tI"),z=M.n(I),O=M("YS25"),w=M("17x9"),W=M.n(w),y=M("wx14"),L=M("zLVn"),R=M("9R94"),d=function(g){Object(G.a)(s,g);function s(){for(var D,S=arguments.length,A=new Array(S),N=0;N=0||S.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;g.setState({goInputText:""}),j(g.getValidValue())},g.go=function(S){var A=g.state.goInputText;if(A==="")return;(S.keyCode===v.ENTER||S.type==="click")&&(g.setState({goInputText:""}),g.props.quickGo(g.getValidValue()))},g}return Object(O.a)(m,[{key:"getValidValue",value:function(){var s=this.state,u=s.goInputText,D=s.current;return!u||isNaN(u)?D:Number(u)}},{key:"getPageSizeOptions",value:function(){var s=this.props,u=s.pageSize,D=s.pageSizeOptions;return D.some(function(S){return S.toString()===u.toString()})?D:D.concat([u.toString()]).sort(function(S,A){var N=isNaN(Number(S))?0:Number(S),j=isNaN(Number(A))?0:Number(A);return N-j})}},{key:"render",value:function(){var s=this,u=this.props,D=u.pageSize,S=u.locale,A=u.rootPrefixCls,N=u.changeSize,j=u.quickGo,K=u.goButton,H=u.selectComponentClass,U=u.buildOptionText,B=u.selectPrefixCls,q=u.disabled,ee=this.state.goInputText,he="".concat(A,"-options"),be=H,Ye=null,Pe=null,je=null;if(!N&&!j)return null;var Qe=this.getPageSizeOptions();if(N&&be){var Ze=Qe.map(function(Ae,me){return L.a.createElement(be.Option,{key:me,value:Ae.toString()},(U||s.buildOptionText)(Ae))});Ye=L.a.createElement(be,{disabled:q,prefixCls:B,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||Qe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},Ze)}return j&&(K&&(je=typeof K=="boolean"?L.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(he,"-quick-jumper-button")},S.jump_to_confirm):L.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),Pe=L.a.createElement("div",{className:"".concat(he,"-quick-jumper")},S.jump_to,L.a.createElement("input",{disabled:q,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),S.page,je)),L.a.createElement("li",{className:"".concat(he)},Ye,Pe)}}]),m}(L.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=h,n=M("N2Kk");function r(){}function o(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function l(P,T,m){return m}function x(P,T,m){var g=typeof P=="undefined"?T.pageSize:P;return Math.floor((m.total-1)/g)+1}var E=function(P){Object(w.a)(m,P);var T=Object(W.a)(m);function m(g){var s;Object(z.a)(this,m),s=T.call(this,g),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(x(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(N,j){var K=s.props.prefixCls,H=N||L.a.createElement("button",{type:"button","aria-label":j,className:"".concat(K,"-item-link")});return typeof N=="function"&&(H=L.a.createElement(N,Object(I.a)({},s.props))),H},s.savePaginationNode=function(N){s.paginationNode=N},s.isValid=function(N){return o(N)&&N!==s.state.current},s.shouldDisplayQuickJumper=function(){var N=s.props,j=N.showQuickJumper,K=N.pageSize,H=N.total;return H<=K?!1:j},s.handleKeyDown=function(N){(N.keyCode===v.ARROW_UP||N.keyCode===v.ARROW_DOWN)&&N.preventDefault()},s.handleKeyUp=function(N){var j=s.getValidValue(N),K=s.state.currentInputValue;j!==K&&s.setState({currentInputValue:j}),N.keyCode===v.ENTER?s.handleChange(j):N.keyCode===v.ARROW_UP?s.handleChange(j-1):N.keyCode===v.ARROW_DOWN&&s.handleChange(j+1)},s.changePageSize=function(N){var j=s.state.current,K=x(N,s.state,s.props);j=j>K?K:j,K===0&&(j=s.state.current),typeof N=="number"&&("pageSize"in s.props||s.setState({pageSize:N}),"current"in s.props||s.setState({current:j,currentInputValue:j})),s.props.onShowSizeChange(j,N),"onChange"in s.props&&s.props.onChange&&s.props.onChange(j,N)},s.handleChange=function(N){var j=s.props.disabled,K=N;if(s.isValid(K)&&!j){var H=x(void 0,s.state,s.props);K>H?K=H:K<1&&(K=1),"current"in s.props||s.setState({current:K,currentInputValue:K});var U=s.state.pageSize;return s.props.onChange(K,U),K}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?K-2:0),U=2;U=D?A=D:A=Number(u),A}},{key:"getShowSizeChanger",value:function(){var s=this.props,u=s.showSizeChanger,D=s.total,S=s.totalBoundaryShowSizeChanger;return typeof u!="undefined"?u:D>S}},{key:"renderPrev",value:function(s){var u=this.props,D=u.prevIcon,S=u.itemRender,A=S(s,"prev",this.getItemIcon(D,"prev page")),N=!this.hasPrev();return Object(y.isValidElement)(A)?Object(y.cloneElement)(A,{disabled:N}):A}},{key:"renderNext",value:function(s){var u=this.props,D=u.nextIcon,S=u.itemRender,A=S(s,"next",this.getItemIcon(D,"next page")),N=!this.hasNext();return Object(y.isValidElement)(A)?Object(y.cloneElement)(A,{disabled:N}):A}},{key:"render",value:function(){var s=this,u=this.props,D=u.prefixCls,S=u.className,A=u.style,N=u.disabled,j=u.hideOnSinglePage,K=u.total,H=u.locale,U=u.showQuickJumper,B=u.showLessItems,q=u.showTitle,ee=u.showTotal,he=u.simple,be=u.itemRender,Ye=u.showPrevNextJumpers,Pe=u.jumpPrevIcon,je=u.jumpNextIcon,Qe=u.selectComponentClass,Ze=u.selectPrefixCls,Ae=u.pageSizeOptions,me=this.state,ie=me.current,Oe=me.pageSize,ve=me.currentInputValue;if(j===!0&&K<=Oe)return null;var Ge=x(void 0,this.state,this.props),pe=[],J=null,V=null,X=null,ue=null,Ee=null,We=U&&U.goButton,Ke=B?1:2,Lt=ie-1>0?ie-1:0,Kt=ie+1=Ke*2&&ie!==1+2&&(pe[0]=Object(y.cloneElement)(pe[0],{className:"".concat(D,"-item-after-jump-prev")}),pe.unshift(J)),Ge-ie>=Ke*2&&ie!==Ge-2&&(pe[pe.length-1]=Object(y.cloneElement)(pe[pe.length-1],{className:"".concat(D,"-item-before-jump-next")}),pe.push(V)),vt!==1&&pe.unshift(X),Mt!==Ge&&pe.push(ue)}var Ne=null;ee&&(Ne=L.a.createElement("li",{className:"".concat(D,"-total-text")},ee(K,[K===0?0:(ie-1)*Oe+1,ie*Oe>K?K:ie*Oe])));var Se=!this.hasPrev()||!Ge,Te=!this.hasNext()||!Ge;return L.a.createElement("ul",Object(re.a)({className:d()(D,S,Object(G.a)({},"".concat(D,"-disabled"),N)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},Bt),Ne,L.a.createElement("li",{title:q?H.prev_page:null,onClick:this.prev,tabIndex:Se?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(D,"-prev"),Object(G.a)({},"".concat(D,"-disabled"),Se)),"aria-disabled":Se},this.renderPrev(Lt)),pe,L.a.createElement("li",{title:q?H.next_page:null,onClick:this.next,tabIndex:Te?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(D,"-next"),Object(G.a)({},"".concat(D,"-disabled"),Te)),"aria-disabled":Te},this.renderNext(Kt)),L.a.createElement(c,{disabled:N,locale:H,rootPrefixCls:D,selectComponentClass:Qe,selectPrefixCls:Ze,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Oe,pageSizeOptions:Ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:We}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var D={};if("current"in s&&(D.current=s.current,s.current!==u.current&&(D.currentInputValue=D.current)),"pageSize"in s&&s.pageSize!==u.pageSize){var S=u.current,A=x(s.pageSize,u,s);S=S>A?A:S,"current"in s||(D.current=S,D.currentInputValue=S),D.pageSize=s.pageSize}return D}}]),m}(L.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:n.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var b=E},"6RRn":function(nn,Ce,M){"use strict";var re=M("wCXF"),G=M("n6Qo");M.d(Ce,"b",function(){return G.a});var I=M("IBYe"),z=M("6eGT"),O=M("hW8S");M.d(Ce,"a",function(){return O.a}),Ce.c=re.b},"6eGT":function(nn,Ce,M){"use strict";function re(G){return null}Ce.a=re},"746U":function(nn,Ce,M){"use strict";M.d(Ce,"d",function(){return G}),M.d(Ce,"j",function(){return I}),M.d(Ce,"i",function(){return z}),M.d(Ce,"h",function(){return O}),M.d(Ce,"e",function(){return w}),M.d(Ce,"k",function(){return W}),M.d(Ce,"l",function(){return y}),M.d(Ce,"a",function(){return L}),M.d(Ce,"f",function(){return d}),M.d(Ce,"g",function(){return p}),M.d(Ce,"m",function(){return _}),M.d(Ce,"c",function(){return c}),M.d(Ce,"b",function(){return n}),M.d(Ce,"n",function(){return r}),M.d(Ce,"o",function(){return o});var re={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function G(l){return Array.isArray?Array.isArray(l):!!(l&&typeof l.length===re.number&&l.constructor===Array)}function I(l){return typeof l===re.string||l instanceof String}function z(l){return typeof l===re.object&&l!==null&&!Array.isArray(l)&&!(l instanceof RegExp)&&!(l instanceof Date)}function O(l){return(typeof l===re.number||l instanceof Number)&&!isNaN(l)}function w(l){return l===!0||l===!1}function W(l){return typeof l===re.undefined}function y(l){return W(l)||l===null}function L(l,x){if(!l)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var R=Object.prototype.hasOwnProperty;function d(l){if(!z(l))return!1;for(var x in l)if(R.call(l,x))return!1;return!0}function p(l){return typeof l===re.function}function _(l,x){for(var E=Math.min(l.length,x.length),b=0;b1&&arguments[1]!==void 0?arguments[1]:0,h=(W[_[v+0]]+W[_[v+1]]+W[_[v+2]]+W[_[v+3]]+"-"+W[_[v+4]]+W[_[v+5]]+"-"+W[_[v+6]]+W[_[v+7]]+"-"+W[_[v+8]]+W[_[v+9]]+"-"+W[_[v+10]]+W[_[v+11]]+W[_[v+12]]+W[_[v+13]]+W[_[v+14]]+W[_[v+15]]).toLowerCase();if(!w(h))throw TypeError("Stringified UUID is invalid");return h}var R=L;function d(_,v,h){_=_||{};var c=_.random||(_.rng||I)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,v){h=h||0;for(var n=0;n<16;++n)v[h+n]=c[n];return v}return R(c)}var p=Ce.a=d},"7ahc":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return x});var re=M("k1fw"),G=M("0Owb"),I=M("+L6B"),z=M("2/Rp"),O=M("y8nQ"),w=M("Vl3Y"),W=M("tJVT"),y=M("OaEy"),L=M("2fM7"),R=M("q1tI"),d=M.n(R),p=M("VrN/"),_=M.n(p),v=M("p77/"),h=M.n(v),c=M("c5Ni"),n=M.n(c),r=L.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},l={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ce.b=function(E){var b=E.callback,P=E.onCancel,T=Object(R.useState)("python"),m=Object(W.a)(T,2),g=m[0],s=m[1];function u(S){s(l[S][1])}function D(S){b(S)}return d.a.createElement(w.a,Object(G.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},d.a.createElement(L.a,{onChange:u},Object.keys(l).map(function(S){return d.a.createElement(r,{key:S,value:S},l[S][0])}))),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},d.a.createElement(x,{mode:g})),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(z.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function x(E){var b=E.value,P=E.onChange,T=E.mode,m=E.options,g=m===void 0?{}:m,s=Object(R.useRef)(),u=Object(R.useState)(),D=Object(W.a)(u,2),S=D[0],A=D[1];return Object(R.useEffect)(function(){if(S){function N(j){var K=j.getValue();P&&P(K)}return S.on("change",N),function(){S.off("change",N)}}},[S,P]),Object(R.useEffect)(function(){S&&S.setOption("mode",T)},[S,T]),Object(R.useEffect)(function(){S&&((b!==S.getValue()||b==="")&&setTimeout(function(){S.setValue(b||" ")},300))},[S,b]),Object(R.useEffect)(function(){if(s.current&&!S){var N=_.a.fromTextArea(s.current,Object(re.a)({mode:T,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},g));A(N)}},[s.current,S]),d.a.createElement("div",{className:"my-codemirror-container"},d.a.createElement("textarea",{ref:s}))}},"7ixt":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return I});var re={adjustX:1,adjustY:1},G=[0,0],I={left:{points:["cr","cl"],overflow:re,offset:[-4,0],targetOffset:G},right:{points:["cl","cr"],overflow:re,offset:[4,0],targetOffset:G},top:{points:["bc","tc"],overflow:re,offset:[0,-4],targetOffset:G},bottom:{points:["tc","bc"],overflow:re,offset:[0,4],targetOffset:G},topLeft:{points:["bl","tl"],overflow:re,offset:[0,-4],targetOffset:G},leftTop:{points:["tr","tl"],overflow:re,offset:[-4,0],targetOffset:G},topRight:{points:["br","tr"],overflow:re,offset:[0,-4],targetOffset:G},rightTop:{points:["tl","tr"],overflow:re,offset:[4,0],targetOffset:G},bottomRight:{points:["tr","br"],overflow:re,offset:[0,4],targetOffset:G},rightBottom:{points:["bl","br"],overflow:re,offset:[4,0],targetOffset:G},bottomLeft:{points:["tl","bl"],overflow:re,offset:[0,4],targetOffset:G},leftBottom:{points:["br","bl"],overflow:re,offset:[-4,0],targetOffset:G}},z=I},"815F":function(nn,Ce,M){"use strict";M.d(Ce,"e",function(){return W}),M.d(Ce,"c",function(){return L}),M.d(Ce,"d",function(){return R}),M.d(Ce,"a",function(){return p}),M.d(Ce,"f",function(){return _}),M.d(Ce,"b",function(){return v});var re=M("KQm4"),G=M("VTBJ"),I=M("Ff2n"),z=M("Zm9Q"),O=M("Kwbf"),w=M("OZM5");function W(h,c){return h!=null?h:c}function y(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(l){var x=l.key,E=l.children;Object(O.a)(x!=null,"Tree node must have a certain key: [".concat(o).concat(x,"]"));var b=String(x);Object(O.a)(!c.has(b)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(b)),c.set(b,!0),n(E,"".concat(o).concat(b," > "))})}n(h)}function L(h){function c(n){var r=Object(z.a)(n);return r.map(function(o){if(!Object(w.i)(o))return Object(O.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var l=o.key,x=o.props,E=x.children,b=Object(I.a)(x,["children"]),P=Object(G.a)({key:l},b),T=c(E);return T.length&&(P.children=T),P}).filter(function(o){return o})}return c(h)}function R(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=new Set(c===!0?[]:c),r=[];function o(l){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(E,b){var P=Object(w.h)(x?x.pos:"0",b),T=W(E.key,P),m=Object(G.a)(Object(G.a)({},E),{},{parent:x,pos:P,children:null,data:E,isStart:[].concat(Object(re.a)(x?x.isStart:[]),[b===0]),isEnd:[].concat(Object(re.a)(x?x.isEnd:[]),[b===l.length-1])});return r.push(m),c===!0||n.has(T)?m.children=o(E.children||[],m):m.children=[],m})}return o(h),r}function d(h,c,n){var r;n?typeof n=="string"?r=function(x){return x[n]}:typeof n=="function"&&(r=function(x){return n(x)}):r=function(x,E){return W(x.key,E)};function o(l,x,E){var b=l?l.children:h,P=l?Object(w.h)(E.pos,x):"0";if(l){var T=r(l,P),m={node:l,index:x,pos:P,key:T,parentPos:E.node?E.pos:null,level:E.level+1};c(m)}b&&b.forEach(function(g,s){o(g,s,{node:l,pos:P,level:E?E.level+1:-1})})}o(null)}function p(h){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.initWrapper,r=c.processEntity,o=c.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,x={},E={},b={posEntities:x,keyEntities:E};return n&&(b=n(b)||b),d(h,function(P){var T=P.node,m=P.index,g=P.pos,s=P.key,u=P.parentPos,D=P.level,S={node:T,index:m,key:s,pos:g,level:D},A=W(s,g);x[g]=S,E[A]=S,S.parent=x[u],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),r&&r(S,b)},l),o&&o(b),b}function _(h,c){var n=c.expandedKeys,r=c.selectedKeys,o=c.loadedKeys,l=c.loadingKeys,x=c.checkedKeys,E=c.halfCheckedKeys,b=c.dragOverNodeKey,P=c.dropPosition,T=c.keyEntities,m=T[h],g={eventKey:h,expanded:n.indexOf(h)!==-1,selected:r.indexOf(h)!==-1,loaded:o.indexOf(h)!==-1,loading:l.indexOf(h)!==-1,checked:x.indexOf(h)!==-1,halfChecked:E.indexOf(h)!==-1,pos:String(m?m.pos:""),dragOver:b===h&&P===0,dragOverGapTop:b===h&&P===-1,dragOverGapBottom:b===h&&P===1};return g}function v(h){var c=h.data,n=h.expanded,r=h.selected,o=h.checked,l=h.loaded,x=h.loading,E=h.halfChecked,b=h.dragOver,P=h.dragOverGapTop,T=h.dragOverGapBottom,m=h.pos,g=h.active,s=Object(G.a)(Object(G.a)({},c),{},{expanded:n,selected:r,checked:o,loaded:l,loading:x,halfChecked:E,dragOver:b,dragOverGapTop:P,dragOverGapBottom:T,pos:m,active:g});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(O.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),h}}),s}},"8EBN":function(nn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";re.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var G=0;G-1&&z.substring(W+1,z.length);if(y)return re.findModeByExtension(y)},re.findModeByName=function(z){z=z.toLowerCase();for(var O=0;O0?_.a.createElement("span",null,"(\u5DF2\u62C6\u5206",je,"\u4E2Azip\u5305)"):"")}),Ye===(he==null?void 0:he.length)-1?U(be,je>0?je+1:0):Pe>900*1024*1024?(je++,Pe=0,H(je,function(){Ye++,Qe()})):(Ye++,Qe());case 3:case"end":return Bt.stop()}},Lt)})),2600)});case 1:case"end":return pe.stop()}},Oe)})),Ze.apply(this,arguments)},Qe=function(){return Ze.apply(this,arguments)},he=ee||E,A(!0),Ye=0,Pe=0,je=0,be=W.a.info({width:460,title:_.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u9644\u4EF6,",_.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:_.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",_.a.createElement("span",{className:"c-blue"},Ye+1),"/",he==null?void 0:he.length),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}}),Qe();case 9:case"end":return me.stop()}},q)}));return function(ee){return B.apply(this,arguments)}}(),K=function(q,ee,he,be){var Ye=ee,Pe=new window.XMLHttpRequest;return Pe.withCredentials=!0,Pe.addEventListener("load",function(je){he(je,Pe)},!1),Pe.addEventListener("error",function(je){be&&be(je)},!1),Pe.responseType="blob",Pe.open("GET",Ye),Pe.send(null),Pe},H=function(q,ee){N.current.generateAsync({type:"blob"}).then(function(he){var be=document.createElement("a");be.href=window.URL.createObjectURL(he),be.download=b+"-".concat(q)+".zip",document.body.appendChild(be);var Ye=document.createEvent("MouseEvents");Ye.initEvent("click",!1,!1),be.dispatchEvent(Ye),document.body.removeChild(be),N.current=new h.a,ee()})},U=function(q,ee){N.current.generateAsync({type:"blob"}).then(function(he){var be=document.createElement("a");be.href=window.URL.createObjectURL(he),ee>0?be.download=b+"-".concat(ee)+".zip":be.download=b+".zip",document.body.appendChild(be);var Ye=document.createEvent("MouseEvents");Ye.initEvent("click",!1,!1),be.dispatchEvent(Ye),document.body.removeChild(be),q.destroy(),A(!1),s(),N.current=new h.a})};return m?_.a.createElement(_.a.Fragment,null):_.a.createElement(G.a,Object(I.a)({},T,{onClick:function(){return j()},loading:S}),"\u4E0B\u8F7D")};Ce.a=Object(p.forwardRef)(n)},"8HAY":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return w}),M.d(Ce,"b",function(){return W});var re=M("pmY6"),G=M("MI8n"),I=function(){var y=function(L,R){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var _ in p)p.hasOwnProperty(_)&&(d[_]=p[_])},y(L,R)};return function(L,R){y(L,R);function d(){this.constructor=L}L.prototype=R===null?Object.create(R):(d.prototype=R.prototype,new d)}}(),z=function(y,L,R,d){function p(_){return _ instanceof R?_:new R(function(v){v(_)})}return new(R||(R=Promise))(function(_,v){function h(r){try{n(d.next(r))}catch(o){v(o)}}function c(r){try{n(d.throw(r))}catch(o){v(o)}}function n(r){r.done?_(r.value):p(r.value).then(h,c)}n((d=d.apply(y,L||[])).next())})},O=function(y,L){var R={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},d,p,_,v;return v={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function h(n){return function(r){return c([n,r])}}function c(n){if(d)throw new TypeError("Generator is already executing.");for(;R;)try{if(d=1,p&&(_=n[0]&2?p.return:n[0]?p.throw||((_=p.return)&&_.call(p),0):p.next)&&!(_=_.call(p,n[1])).done)return _;(p=0,_)&&(n=[n[0]&2,_.value]);switch(n[0]){case 0:case 1:_=n;break;case 4:return R.label++,{value:n[1],done:!1};case 5:R.label++,p=n[1],n=[0];continue;case 7:n=R.ops.pop(),R.trys.pop();continue;default:if(!(_=R.trys,_=_.length>0&&_[_.length-1])&&(n[0]===6||n[0]===2)){R=0;continue}if(n[0]===3&&(!_||n[1]>_[0]&&n[1]<_[3])){R.label=n[1];break}if(n[0]===6&&R.label<_[1]){R.label=_[1],_=n;break}if(_&&R.label<_[2]){R.label=_[2],R.ops.push(n);break}_[2]&&R.ops.pop(),R.trys.pop();continue}n=L.call(y,R)}catch(r){n=[6,r],p=0}finally{d=_=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}},w=function(y){I(L,y);function L(R,d,p,_,v){d===void 0&&(d=""),p===void 0&&(p=""),_===void 0&&(_=!0);var h=y.call(this)||this;return h._onDidChange=h._register(new G.a),h.onDidChange=h._onDidChange.event,h._enabled=!0,h._checked=!1,h._id=R,h._label=d,h._cssClass=p,h._enabled=_,h._actionCallback=v,h}return Object.defineProperty(L.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"label",{get:function(){return this._label},set:function(R){this._setLabel(R)},enumerable:!0,configurable:!0}),L.prototype._setLabel=function(R){this._label!==R&&(this._label=R,this._onDidChange.fire({label:R}))},Object.defineProperty(L.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(R){this._setTooltip(R)},enumerable:!0,configurable:!0}),L.prototype._setTooltip=function(R){this._tooltip!==R&&(this._tooltip=R,this._onDidChange.fire({tooltip:R}))},Object.defineProperty(L.prototype,"class",{get:function(){return this._cssClass},set:function(R){this._setClass(R)},enumerable:!0,configurable:!0}),L.prototype._setClass=function(R){this._cssClass!==R&&(this._cssClass=R,this._onDidChange.fire({class:R}))},Object.defineProperty(L.prototype,"enabled",{get:function(){return this._enabled},set:function(R){this._setEnabled(R)},enumerable:!0,configurable:!0}),L.prototype._setEnabled=function(R){this._enabled!==R&&(this._enabled=R,this._onDidChange.fire({enabled:R}))},Object.defineProperty(L.prototype,"checked",{get:function(){return this._checked},set:function(R){this._setChecked(R)},enumerable:!0,configurable:!0}),L.prototype._setChecked=function(R){this._checked!==R&&(this._checked=R,this._onDidChange.fire({checked:R}))},L.prototype.run=function(R,d){return this._actionCallback?this._actionCallback(R):Promise.resolve(!0)},L}(re.a),W=function(y){I(L,y);function L(){var R=y!==null&&y.apply(this,arguments)||this;return R._onDidBeforeRun=R._register(new G.a),R.onDidBeforeRun=R._onDidBeforeRun.event,R._onDidRun=R._register(new G.a),R.onDidRun=R._onDidRun.event,R}return L.prototype.run=function(R,d){return z(this,void 0,void 0,function(){var p,_;return O(this,function(v){switch(v.label){case 0:if(!R.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:R}),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this.runAction(R,d)];case 2:return p=v.sent(),this._onDidRun.fire({action:R,result:p}),[3,4];case 3:return _=v.sent(),this._onDidRun.fire({action:R,error:_}),[3,4];case 4:return[2]}})})},L.prototype.runAction=function(R,d){var p=d?R.run(d):R.run();return Promise.resolve(p)},L}(re.a)},"8hTe":function(nn,Ce,M){nn.exports={button:"button___1wy9m"}},"9Bee":function(nn,Ce,M){"use strict";var re=M("DYRE"),G=M("zeV3"),I=M("+L6B"),z=M("2/Rp"),O=M("k1fw"),w=M("9og8"),W=M("tJVT"),y=M("WmNS"),L=M.n(y),R=M("q1tI"),d=M.n(R),p=M("vg9a"),_=M("DlQD"),v=M.n(_),h=M("rUJ1");function c(Q,C){var k=Q.match(/^(\s+)(?:```)/);if(k===null)return C;var $=k[1];return C.split(` +`+p.stack):p},0)}}return d.prototype.emit=function(p){this.listeners.forEach(function(_){_(p)})},d.prototype.onUnexpectedError=function(p){this.unexpectedErrorHandler(p),this.emit(p)},d.prototype.onUnexpectedExternalError=function(p){this.unexpectedErrorHandler(p)},d}(),G=new re;function I(d){W(d)||G.onUnexpectedError(d);return}function z(d){W(d)||G.onUnexpectedExternalError(d);return}function O(d){if(d instanceof Error){var p=d.name,_=d.message,v=d.stacktrace||d.stack;return{$isError:!0,name:p,message:_,stack:v}}return d}var w="Canceled";function W(d){return d instanceof Error&&d.name===w&&d.message===w}function y(){var d=new Error(w);return d.name=d.message,d}function L(d){return d?new Error("Illegal argument: "+d):new Error("Illegal argument")}function R(d){return d?new Error("Illegal state: "+d):new Error("Illegal state")}},"/iVV":function(tn,Ce,M){tn.exports={flex_box_center:"flex_box_center___2FARP",flex_space_between:"flex_space_between___oDbHE",flex_box_vertical_center:"flex_box_vertical_center___30YaW",flex_box_center_end:"flex_box_center_end___2jDbg",flex_box_column:"flex_box_column___34FVf",top:"top___3fhcI",desc:"desc___1KGAw",liked:"liked___peMDs",likedActive:"likedActive___3FVHj",reply:"reply___-RXGA",replyList:"replyList___3zoOQ",comment:"comment___lxBqi",headpic:"headpic___2JDco"}},"19Vz":function(tn,Ce,M){(function(re){re(M("VrN/"))})(function(re){re.defineOption("placeholder","",function(y,L,R){var d=R&&R!=re.Init;if(L&&!d)y.on("blur",O),y.on("change",w),y.on("swapDoc",w),re.on(y.getInputField(),"compositionupdate",y.state.placeholderCompose=function(){z(y)}),w(y);else if(!L&&d){y.off("blur",O),y.off("change",w),y.off("swapDoc",w),re.off(y.getInputField(),"compositionupdate",y.state.placeholderCompose),G(y);var p=y.getWrapperElement();p.className=p.className.replace(" CodeMirror-empty","")}L&&!y.hasFocus()&&O(y)});function G(y){y.state.placeholder&&(y.state.placeholder.parentNode.removeChild(y.state.placeholder),y.state.placeholder=null)}function I(y){G(y);var L=y.state.placeholder=document.createElement("pre");L.style.cssText="height: 0; overflow: visible",L.style.direction=y.getOption("direction"),L.className="CodeMirror-placeholder CodeMirror-line-like";var R=y.getOption("placeholder");typeof R=="string"&&(R=document.createTextNode(R)),L.appendChild(R),y.display.lineSpace.insertBefore(L,y.display.lineSpace.firstChild)}function z(y){setTimeout(function(){var L=!1,R=y.getInputField();R.nodeName=="TEXTAREA"?L=!R.value:y.lineCount()==1&&(L=!/[^\u200b]/.test(R.querySelector(".CodeMirror-line").textContent)),L?I(y):G(y)},20)}function O(y){W(y)&&I(y)}function w(y){var L=y.getWrapperElement(),R=W(y);L.className=L.className.replace(" CodeMirror-empty","")+(R?" CodeMirror-empty":""),R?I(y):G(y)}function W(y){return y.lineCount()===1&&y.getLine(0)===""}})},"1eCo":function(tn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";var G={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},I={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(z,O){var w=z.indentUnit,W={},y=O.htmlMode?G:I;for(var L in y)W[L]=y[L];for(var L in O)W[L]=O[L];var R,d;function p(u,D){function S(j){return D.tokenize=j,j(u,D)}var A=u.next();if(A=="<")return u.eat("!")?u.eat("[")?u.match("CDATA[")?S(h("atom","]]>")):null:u.match("--")?S(h("comment","-->")):u.match("DOCTYPE",!0,!0)?(u.eatWhile(/[\w\._\-]/),S(c(1))):null:u.eat("?")?(u.eatWhile(/[\w\._\-]/),D.tokenize=h("meta","?>"),"meta"):(R=u.eat("/")?"closeTag":"openTag",D.tokenize=_,"tag bracket");if(A=="&"){var N;return u.eat("#")?u.eat("x")?N=u.eatWhile(/[a-fA-F\d]/)&&u.eat(";"):N=u.eatWhile(/[\d]/)&&u.eat(";"):N=u.eatWhile(/[\w\.\-:]/)&&u.eat(";"),N?"atom":"error"}else return u.eatWhile(/[^&<]/),null}p.isInText=!0;function _(u,D){var S=u.next();if(S==">"||S=="/"&&u.eat(">"))return D.tokenize=p,R=S==">"?"endTag":"selfcloseTag","tag bracket";if(S=="=")return R="equals",null;if(S=="<"){D.tokenize=p,D.state=l,D.tagName=D.tagStart=null;var A=D.tokenize(u,D);return A?A+" tag error":"tag error"}else return/[\'\"]/.test(S)?(D.tokenize=v(S),D.stringStartCol=u.column(),D.tokenize(u,D)):(u.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function v(u){var D=function(S,A){for(;!S.eol();)if(S.next()==u){A.tokenize=_;break}return"string"};return D.isInAttribute=!0,D}function h(u,D){return function(S,A){for(;!S.eol();){if(S.match(D)){A.tokenize=p;break}S.next()}return u}}function c(u){return function(D,S){for(var A;(A=D.next())!=null;){if(A=="<")return S.tokenize=c(u+1),S.tokenize(D,S);if(A==">")if(u==1){S.tokenize=p;break}else return S.tokenize=c(u-1),S.tokenize(D,S)}return"meta"}}function n(u,D,S){this.prev=u.context,this.tagName=D,this.indent=u.indented,this.startOfLine=S,(W.doNotIndent.hasOwnProperty(D)||u.context&&u.context.noIndent)&&(this.noIndent=!0)}function r(u){u.context&&(u.context=u.context.prev)}function o(u,D){for(var S;;){if(!u.context)return;if(S=u.context.tagName,!W.contextGrabbers.hasOwnProperty(S)||!W.contextGrabbers[S].hasOwnProperty(D))return;r(u)}}function l(u,D,S){return u=="openTag"?(S.tagStart=D.column(),x):u=="closeTag"?E:l}function x(u,D,S){return u=="word"?(S.tagName=D.current(),d="tag",T):W.allowMissingTagName&&u=="endTag"?(d="tag bracket",T(u,D,S)):(d="error",x)}function E(u,D,S){if(u=="word"){var A=D.current();return S.context&&S.context.tagName!=A&&W.implicitlyClosed.hasOwnProperty(S.context.tagName)&&r(S),S.context&&S.context.tagName==A||W.matchClosing===!1?(d="tag",b):(d="tag error",P)}else return W.allowMissingTagName&&u=="endTag"?(d="tag bracket",b(u,D,S)):(d="error",P)}function b(u,D,S){return u!="endTag"?(d="error",b):(r(S),l)}function P(u,D,S){return d="error",b(u,D,S)}function T(u,D,S){if(u=="word")return d="attribute",m;if(u=="endTag"||u=="selfcloseTag"){var A=S.tagName,N=S.tagStart;return S.tagName=S.tagStart=null,u=="selfcloseTag"||W.autoSelfClosers.hasOwnProperty(A)?o(S,A):(o(S,A),S.context=new n(S,A,N==S.indented)),l}return d="error",T}function m(u,D,S){return u=="equals"?g:(W.allowMissing||(d="error"),T(u,D,S))}function g(u,D,S){return u=="string"?s:u=="word"&&W.allowUnquoted?(d="string",T):(d="error",T(u,D,S))}function s(u,D,S){return u=="string"?s:T(u,D,S)}return{startState:function(u){var D={tokenize:p,state:l,indented:u||0,tagName:null,tagStart:null,context:null};return u!=null&&(D.baseIndent=u),D},token:function(u,D){if(!D.tagName&&u.sol()&&(D.indented=u.indentation()),u.eatSpace())return null;R=null;var S=D.tokenize(u,D);return(S||R)&&S!="comment"&&(d=null,D.state=D.state(R||S,u,D),d&&(S=d=="error"?S+" error":d)),S},indent:function(u,D,S){var A=u.context;if(u.tokenize.isInAttribute)return u.tagStart==u.indented?u.stringStartCol+1:u.indented+w;if(A&&A.noIndent)return re.Pass;if(u.tokenize!=_&&u.tokenize!=p)return S?S.match(/^(\s*)/)[0].length:0;if(u.tagName)return W.multilineTagIndentPastTag!==!1?u.tagStart+u.tagName.length+2:u.tagStart+w*(W.multilineTagIndentFactor||1);if(W.alignCDATA&&/$/,blockCommentStart:"",configuration:W.htmlMode?"html":"xml",helperType:W.htmlMode?"html":"xml",skipAttribute:function(u){u.state==g&&(u.state=T)},xmlCurrentTag:function(u){return u.tagName?{name:u.tagName,close:u.type=="closeTag"}:null},xmlCurrentContext:function(u){for(var D=[],S=u.context;S;S=S.prev)S.tagName&&D.push(S.tagName);return D.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(tn,Ce,M){"use strict";M.d(Ce,"d",function(){return Pt}),M.d(Ce,"b",function(){return at}),M.d(Ce,"c",function(){return jt}),M.d(Ce,"a",function(){return pn});var re=M("VTBJ"),G=M("1OyB"),I=M("vuIU"),z=M("JX7q"),O=M("Ji7U"),w=M("LK+K"),W=M("q1tI"),y=M("I8Z2"),L=M("BGR+"),R=M("wx14"),d=M("rePB"),p=M("4IlW"),_=M("2GS6"),v=M("Gytx"),h=M.n(v),c=M("TSYQ"),n=M.n(c),r=M("U8pU"),o=M("ODXe"),l=/iPhone/i,x=/iPod/i,E=/iPad/i,b=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,T=/\bAndroid(?:.+)SD4930UR\b/i,m=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,g=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,D=/BB10/i,S=/Opera Mini/i,A=/\b(CriOS|Chrome)(?:.+)Mobile/i,N=/Mobile(?:.+)Firefox\b/i;function j(Jt,wt){return Jt.test(wt)}function K(Jt){var wt=Jt||(typeof navigator!="undefined"?navigator.userAgent:""),St=wt.split("[FBAN");if(typeof St[1]!="undefined"){var lt=St,ge=Object(o.a)(lt,1);wt=ge[0]}if(St=wt.split("Twitter"),typeof St[1]!="undefined"){var Le=St,yt=Object(o.a)(Le,1);wt=yt[0]}var ft={apple:{phone:j(l,wt)&&!j(g,wt),ipod:j(x,wt),tablet:!j(l,wt)&&j(E,wt)&&!j(g,wt),device:(j(l,wt)||j(x,wt)||j(E,wt))&&!j(g,wt)},amazon:{phone:j(T,wt),tablet:!j(T,wt)&&j(m,wt),device:j(T,wt)||j(m,wt)},android:{phone:!j(g,wt)&&j(T,wt)||!j(g,wt)&&j(b,wt),tablet:!j(g,wt)&&!j(T,wt)&&!j(b,wt)&&(j(m,wt)||j(P,wt)),device:!j(g,wt)&&(j(T,wt)||j(m,wt)||j(b,wt)||j(P,wt))||j(/\bokhttp\b/i,wt)},windows:{phone:j(g,wt),tablet:j(s,wt),device:j(g,wt)||j(s,wt)},other:{blackberry:j(u,wt),blackberry10:j(D,wt),opera:j(S,wt),firefox:j(N,wt),chrome:j(A,wt),device:j(u,wt)||j(D,wt)||j(S,wt)||j(N,wt)||j(A,wt)},any:null,phone:null,tablet:null};return ft.any=ft.apple.device||ft.android.device||ft.windows.device||ft.other.device,ft.phone=ft.apple.phone||ft.android.phone||ft.windows.phone,ft.tablet=ft.apple.tablet||ft.android.tablet||ft.windows.tablet,ft}var H=Object(re.a)(Object(re.a)({},K()),{},{isMobile:K}),U=H;function B(){}function q(Jt,wt,St){var lt=wt||"";return Jt.key||"".concat(lt,"item_").concat(St)}function ee(Jt){return"".concat(Jt,"-menu-")}function he(Jt,wt){var St=-1;W.Children.forEach(Jt,function(lt){St+=1,lt&<.type&<.type.isMenuItemGroup?W.Children.forEach(lt.props.children,function(ge){St+=1,wt(ge,St)}):wt(lt,St)})}function ye(Jt,wt,St){if(!Jt||St.find)return;W.Children.forEach(Jt,function(lt){if(lt){var ge=lt.type;if(!ge||!(ge.isSubMenu||ge.isMenuItem||ge.isMenuItemGroup))return;wt.indexOf(lt.key)!==-1?St.find=!0:lt.props.children&&ye(lt.props.children,wt,St)}})}var Ye=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Pe=function(wt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=wt&&typeof wt.getBoundingClientRect=="function"&&wt.getBoundingClientRect().width;if(lt){if(St){var ge=getComputedStyle(wt),Le=ge.marginLeft,yt=ge.marginRight;lt+=+Le.replace("px","")+ +yt.replace("px","")}lt=+lt.toFixed(6)}return lt||0},je=function(wt,St,lt){wt&&Object(r.a)(wt.style)==="object"&&(wt.style[St]=lt)},Ze=function(){return U.any},Qe=M("KQm4"),Ae=M("Ff2n"),me=M("i8i4"),ie=M("bdgK"),Oe=M("uciX"),ve=M("8XRh"),Ge={adjustX:1,adjustY:1},pe={topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ge,offset:[4,0]}},J={topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ge,offset:[4,0]}},V=pe,X=0,ue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ee=function(wt,St,lt){var ge=ee(St),Le=wt.getState();wt.setState({defaultActiveFirst:Object(re.a)(Object(re.a)({},Le.defaultActiveFirst),{},Object(d.a)({},ge,lt))})},We=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(lt){var ge;Object(G.a)(this,St),ge=wt.call(this,lt),ge.onDestroy=function(it){ge.props.onDestroy(it)},ge.onKeyDown=function(it){var xt=it.keyCode,Rt=ge.menuInstance,un=ge.props,_n=un.isOpen,ar=un.store;if(xt===p.a.ENTER)return ge.onTitleClick(it),Ee(ar,ge.props.eventKey,!0),!0;if(xt===p.a.RIGHT)return _n?Rt.onKeyDown(it):(ge.triggerOpenChange(!0),Ee(ar,ge.props.eventKey,!0)),!0;if(xt===p.a.LEFT){var dr;if(_n)dr=Rt.onKeyDown(it);else return;return dr||(ge.triggerOpenChange(!1),dr=!0),dr}return _n&&(xt===p.a.UP||xt===p.a.DOWN)?Rt.onKeyDown(it):void 0},ge.onOpenChange=function(it){ge.props.onOpenChange(it)},ge.onPopupVisibleChange=function(it){ge.triggerOpenChange(it,it?"mouseenter":"mouseleave")},ge.onMouseEnter=function(it){var xt=ge.props,Rt=xt.eventKey,un=xt.onMouseEnter,_n=xt.store;Ee(_n,ge.props.eventKey,!1),un({key:Rt,domEvent:it})},ge.onMouseLeave=function(it){var xt=ge.props,Rt=xt.parentMenu,un=xt.eventKey,_n=xt.onMouseLeave;Rt.subMenuInstance=Object(z.a)(ge),_n({key:un,domEvent:it})},ge.onTitleMouseEnter=function(it){var xt=ge.props,Rt=xt.eventKey,un=xt.onItemHover,_n=xt.onTitleMouseEnter;un({key:Rt,hover:!0}),_n({key:Rt,domEvent:it})},ge.onTitleMouseLeave=function(it){var xt=ge.props,Rt=xt.parentMenu,un=xt.eventKey,_n=xt.onItemHover,ar=xt.onTitleMouseLeave;Rt.subMenuInstance=Object(z.a)(ge),_n({key:un,hover:!1}),ar({key:un,domEvent:it})},ge.onTitleClick=function(it){var xt=Object(z.a)(ge),Rt=xt.props;if(Rt.onTitleClick({key:Rt.eventKey,domEvent:it}),Rt.triggerSubMenuAction==="hover")return;ge.triggerOpenChange(!Rt.isOpen,"click"),Ee(Rt.store,ge.props.eventKey,!1)},ge.onSubMenuClick=function(it){typeof ge.props.onClick=="function"&&ge.props.onClick(ge.addKeyPath(it))},ge.onSelect=function(it){ge.props.onSelect(it)},ge.onDeselect=function(it){ge.props.onDeselect(it)},ge.getPrefixCls=function(){return"".concat(ge.props.rootPrefixCls,"-submenu")},ge.getActiveClassName=function(){return"".concat(ge.getPrefixCls(),"-active")},ge.getDisabledClassName=function(){return"".concat(ge.getPrefixCls(),"-disabled")},ge.getSelectedClassName=function(){return"".concat(ge.getPrefixCls(),"-selected")},ge.getOpenClassName=function(){return"".concat(ge.props.rootPrefixCls,"-submenu-open")},ge.saveMenuInstance=function(it){ge.menuInstance=it},ge.addKeyPath=function(it){return Object(re.a)(Object(re.a)({},it),{},{keyPath:(it.keyPath||[]).concat(ge.props.eventKey)})},ge.triggerOpenChange=function(it,xt){var Rt=ge.props.eventKey,un=function(){ge.onOpenChange({key:Rt,item:Object(z.a)(ge),trigger:xt,open:it})};xt==="mouseenter"?ge.mouseenterTimeout=setTimeout(function(){un()},0):un()},ge.isChildrenSelected=function(){var it={find:!1};return ye(ge.props.children,ge.props.selectedKeys,it),it.find},ge.isOpen=function(){return ge.props.openKeys.indexOf(ge.props.eventKey)!==-1},ge.adjustWidth=function(){if(!ge.subMenuTitle||!ge.menuInstance)return;var it=me.findDOMNode(ge.menuInstance);if(it.offsetWidth>=ge.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(ge.subMenuTitle.offsetWidth,"px")},ge.saveSubMenuTitle=function(it){ge.subMenuTitle=it},ge.getBaseProps=function(){var it=Object(z.a)(ge),xt=it.props;return{mode:xt.mode==="horizontal"?"vertical":xt.mode,visible:ge.props.isOpen,level:xt.level+1,inlineIndent:xt.inlineIndent,focusable:!1,onClick:ge.onSubMenuClick,onSelect:ge.onSelect,onDeselect:ge.onDeselect,onDestroy:ge.onDestroy,selectedKeys:xt.selectedKeys,eventKey:"".concat(xt.eventKey,"-menu-"),openKeys:xt.openKeys,motion:xt.motion,onOpenChange:ge.onOpenChange,subMenuOpenDelay:xt.subMenuOpenDelay,parentMenu:Object(z.a)(ge),subMenuCloseDelay:xt.subMenuCloseDelay,forceSubMenuRender:xt.forceSubMenuRender,triggerSubMenuAction:xt.triggerSubMenuAction,builtinPlacements:xt.builtinPlacements,defaultActiveFirst:xt.store.getState().defaultActiveFirst[ee(xt.eventKey)],multiple:xt.multiple,prefixCls:xt.rootPrefixCls,id:ge.internalMenuId,manualRef:ge.saveMenuInstance,itemIcon:xt.itemIcon,expandIcon:xt.expandIcon,direction:xt.direction}},ge.getMotion=function(it,xt){var Rt=Object(z.a)(ge),un=Rt.haveRendered,_n=ge.props,ar=_n.motion,dr=_n.rootPrefixCls,er=Object(re.a)(Object(re.a)({},ar),{},{leavedClassName:"".concat(dr,"-hidden"),removeOnLeave:!1,motionAppear:un||!xt||it!=="inline"});return er};var Le=lt.store,yt=lt.eventKey,ft=Le.getState(),qt=ft.defaultActiveFirst;ge.isRootMenu=!1;var Xt=!1;return qt&&(Xt=qt[yt]),Ee(Le,yt,Xt),ge}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this,Le=this.props,yt=Le.mode,ft=Le.parentMenu,qt=Le.manualRef;if(qt&&qt(this),yt!=="horizontal"||!ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ge.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ge=this.props,Le=ge.onDestroy,yt=ge.eventKey;Le&&Le(yt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ge){var Le=this,yt=this.getBaseProps(),ft=this.getMotion(yt.mode,yt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||yt.visible||yt.forceSubMenuRender,!this.haveOpened)return W.createElement("div",null);var qt=yt.direction;return W.createElement(ve.default,Object.assign({visible:yt.visible},ft),function(Xt){var it=Xt.className,xt=Xt.style,Rt=n()("".concat(yt.prefixCls,"-sub"),it,Object(d.a)({},"".concat(yt.prefixCls,"-rtl"),qt==="rtl"));return W.createElement(Ne,Object.assign({},yt,{id:Le.internalMenuId,className:Rt,style:xt}),ge)})}},{key:"render",value:function(){var ge,Le=Object(re.a)({},this.props),yt=Le.isOpen,ft=this.getPrefixCls(),qt=Le.mode==="inline",Xt=n()(ft,"".concat(ft,"-").concat(Le.mode),(ge={},Object(d.a)(ge,Le.className,!!Le.className),Object(d.a)(ge,this.getOpenClassName(),yt),Object(d.a)(ge,this.getActiveClassName(),Le.active||yt&&!qt),Object(d.a)(ge,this.getDisabledClassName(),Le.disabled),Object(d.a)(ge,this.getSelectedClassName(),this.isChildrenSelected()),ge));this.internalMenuId||(Le.eventKey?this.internalMenuId="".concat(Le.eventKey,"$Menu"):(X+=1,this.internalMenuId="$__$".concat(X,"$Menu")));var it={},xt={},Rt={};Le.disabled||(it={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},xt={onClick:this.onTitleClick},Rt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var un={},_n=Le.direction;qt&&(_n==="rtl"?un.paddingRight=Le.inlineIndent*Le.level:un.paddingLeft=Le.inlineIndent*Le.level);var ar={};this.props.isOpen&&(ar={"aria-owns":this.internalMenuId});var dr=null;Le.mode!=="horizontal"&&(dr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(dr=W.createElement(this.props.expandIcon,Object(re.a)({},this.props))));var er=W.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:un,className:"".concat(ft,"-title"),role:"button"},Rt,xt,{"aria-expanded":yt},ar,{"aria-haspopup":"true",title:typeof Le.title=="string"?Le.title:void 0}),Le.title,dr||W.createElement("i",{className:"".concat(ft,"-arrow")})),wn=this.renderChildren(Le.children),Vr=Le.parentMenu.isRootMenu?Le.parentMenu.props.getPopupContainer:function(Er){return Er.parentNode},ca=ue[Le.mode],Ur=Le.popupOffset?{offset:Le.popupOffset}:{},ur=Le.mode==="inline"?"":Le.popupClassName;ur+=_n==="rtl"?" ".concat(ft,"-rtl"):"";var Kr=Le.disabled,oa=Le.triggerSubMenuAction,ma=Le.subMenuOpenDelay,Wt=Le.forceSubMenuRender,Sn=Le.subMenuCloseDelay,lr=Le.builtinPlacements;Ye.forEach(function(Er){return delete Le[Er]}),delete Le.onClick;var Rr=_n==="rtl"?Object.assign({},J,lr):Object.assign({},pe,lr);return delete Le.direction,W.createElement("li",Object.assign({},Le,it,{className:Xt,role:"menuitem"}),qt&&er,qt&&wn,!qt&&W.createElement(Oe.a,{prefixCls:ft,popupClassName:n()("".concat(ft,"-popup"),ur),getPopupContainer:Vr,builtinPlacements:Rr,popupPlacement:ca,popupVisible:yt,popupAlign:Ur,popup:wn,action:Kr?[]:[oa],mouseEnterDelay:ma,mouseLeaveDelay:Sn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Wt},er))}}]),St}(W.Component);We.defaultProps={onMouseEnter:B,onMouseLeave:B,onTitleMouseEnter:B,onTitleMouseLeave:B,onTitleClick:B,manualRef:B,mode:"vertical",title:""};var Ke=Object(y.b)(function(Jt,wt){var St=Jt.openKeys,lt=Jt.activeKey,ge=Jt.selectedKeys,Le=wt.eventKey,yt=wt.subMenuKey;return{isOpen:St.indexOf(Le)>-1,active:lt[yt]===Le,selectedKeys:ge}})(We);Ke.isSubMenu=!0;var Pt=Ke,Kt="menuitem-overflowed",Bt=.5,kt=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(){var lt;return Object(G.a)(this,St),lt=wt.apply(this,arguments),lt.resizeObserver=null,lt.mutationObserver=null,lt.originalTotalWidth=0,lt.overflowedItems=[],lt.menuItemSizes=[],lt.cancelFrameId=null,lt.state={lastVisibleIndex:void 0},lt.getMenuItemNodes=function(){var ge=lt.props.prefixCls,Le=me.findDOMNode(Object(z.a)(lt));return Le?[].slice.call(Le.children).filter(function(yt){return yt.className.split(" ").indexOf("".concat(ge,"-overflowed-submenu"))<0}):[]},lt.getOverflowedSubMenuItem=function(ge,Le,yt){var ft=lt.props,qt=ft.overflowedIndicator,Xt=ft.level,it=ft.mode,xt=ft.prefixCls,Rt=ft.theme;if(Xt!==1||it!=="horizontal")return null;var un=lt.props.children[0],_n=un.props,ar=_n.children,dr=_n.title,er=_n.style,wn=Object(Ae.a)(_n,["children","title","style"]),Vr=Object(re.a)({},er),ca="".concat(ge,"-overflowed-indicator"),Ur="".concat(ge,"-overflowed-indicator");Le.length===0&&yt!==!0?Vr=Object(re.a)(Object(re.a)({},Vr),{},{display:"none"}):yt&&(Vr=Object(re.a)(Object(re.a)({},Vr),{},{visibility:"hidden",position:"absolute"}),ca="".concat(ca,"-placeholder"),Ur="".concat(Ur,"-placeholder"));var ur=Rt?"".concat(xt,"-").concat(Rt):"",Kr={};return Ye.forEach(function(oa){wn[oa]!==void 0&&(Kr[oa]=wn[oa])}),W.createElement(Pt,Object.assign({title:qt,className:"".concat(xt,"-overflowed-submenu"),popupClassName:ur},Kr,{key:ca,eventKey:Ur,disabled:!1,style:Vr}),Le)},lt.setChildrenWidthAndResize=function(){if(lt.props.mode!=="horizontal")return;var ge=me.findDOMNode(Object(z.a)(lt));if(!ge)return;var Le=ge.children;if(!Le||Le.length===0)return;var yt=ge.children[Le.length-1];je(yt,"display","inline-block");var ft=lt.getMenuItemNodes(),qt=ft.filter(function(Xt){return Xt.className.split(" ").indexOf(Kt)>=0});qt.forEach(function(Xt){je(Xt,"display","inline-block")}),lt.menuItemSizes=ft.map(function(Xt){return Pe(Xt,!0)}),qt.forEach(function(Xt){je(Xt,"display","none")}),lt.overflowedIndicatorWidth=Pe(ge.children[ge.children.length-1],!0),lt.originalTotalWidth=lt.menuItemSizes.reduce(function(Xt,it){return Xt+it},0),lt.handleResize(),je(yt,"display","none")},lt.handleResize=function(){if(lt.props.mode!=="horizontal")return;var ge=me.findDOMNode(Object(z.a)(lt));if(!ge)return;var Le=Pe(ge);lt.overflowedItems=[];var yt=0,ft;lt.originalTotalWidth>Le+Bt&&(ft=-1,lt.menuItemSizes.forEach(function(qt){yt+=qt,yt+lt.overflowedIndicatorWidth<=Le&&(ft+=1)})),lt.setState({lastVisibleIndex:ft})},lt}return Object(I.a)(St,[{key:"componentDidMount",value:function(){var ge=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Le=me.findDOMNode(this);if(!Le)return;this.resizeObserver=new ie.default(function(yt){yt.forEach(function(){var ft=ge.cancelFrameId;cancelAnimationFrame(ft),ge.cancelFrameId=requestAnimationFrame(ge.setChildrenWidthAndResize)})}),[].slice.call(Le.children).concat(Le).forEach(function(yt){ge.resizeObserver.observe(yt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ge.resizeObserver.disconnect(),[].slice.call(Le.children).concat(Le).forEach(function(yt){ge.resizeObserver.observe(yt)}),ge.setChildrenWidthAndResize()}),this.mutationObserver.observe(Le,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ge){var Le=this,yt=this.state.lastVisibleIndex;return(ge||[]).reduce(function(ft,qt,Xt){var it=qt;if(Le.props.mode==="horizontal"){var xt=Le.getOverflowedSubMenuItem(qt.props.eventKey,[]);yt!==void 0&&Le.props.className.indexOf("".concat(Le.props.prefixCls,"-root"))!==-1&&(Xt>yt&&(it=W.cloneElement(qt,{style:{display:"none"},eventKey:"".concat(qt.props.eventKey,"-hidden"),className:"".concat(Kt)})),Xt===yt+1&&(Le.overflowedItems=ge.slice(yt+1).map(function(un){return W.cloneElement(un,{key:un.props.eventKey,mode:"vertical-left"})}),xt=Le.getOverflowedSubMenuItem(qt.props.eventKey,Le.overflowedItems)));var Rt=[].concat(Object(Qe.a)(ft),[xt,it]);return Xt===ge.length-1&&Rt.push(Le.getOverflowedSubMenuItem(qt.props.eventKey,[],!0)),Rt}return[].concat(Object(Qe.a)(ft),[it])},[])}},{key:"render",value:function(){var ge=this.props,Le=ge.visible,yt=ge.prefixCls,ft=ge.overflowedIndicator,qt=ge.mode,Xt=ge.level,it=ge.tag,xt=ge.children,Rt=ge.theme,un=Object(Ae.a)(ge,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),_n=it;return W.createElement(_n,Object.assign({},un),this.renderChildren(xt))}}]),St}(W.Component);kt.defaultProps={tag:"div",className:""};var Qt=kt;function fn(Jt){return Jt.length?Jt.every(function(wt){return!!wt.props.disabled}):!0}function qe(Jt,wt,St){var lt=Jt.getState();Jt.setState({activeKey:Object(re.a)(Object(re.a)({},lt.activeKey),{},Object(d.a)({},wt,St))})}function Ue(Jt){return Jt.eventKey||"0-menu-"}function vt(Jt,wt){var St=wt,lt=Jt.children,ge=Jt.eventKey;if(St){var Le;if(he(lt,function(yt,ft){yt&&yt.props&&!yt.props.disabled&&St===q(yt,ge,ft)&&(Le=!0)}),Le)return St}return St=null,Jt.defaultActiveFirst&&he(lt,function(yt,ft){!St&&yt&&!yt.props.disabled&&(St=q(yt,ge,ft))}),St}function Mt(Jt){if(Jt){var wt=this.instanceArray.indexOf(Jt);wt!==-1?this.instanceArray[wt]=Jt:this.instanceArray.push(Jt)}}var st=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(lt){var ge;return Object(G.a)(this,St),ge=wt.call(this,lt),ge.onKeyDown=function(Le,yt){var ft=Le.keyCode,qt;if(ge.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(qt=it.onKeyDown(Le))}),qt)return 1;var Xt=null;return(ft===p.a.UP||ft===p.a.DOWN)&&(Xt=ge.step(ft===p.a.UP?-1:1)),Xt?(Le.preventDefault(),qe(ge.props.store,Ue(ge.props),Xt.props.eventKey),typeof yt=="function"&&yt(Xt),1):void 0},ge.onItemHover=function(Le){var yt=Le.key,ft=Le.hover;qe(ge.props.store,Ue(ge.props),ft?yt:null)},ge.onDeselect=function(Le){ge.props.onDeselect(Le)},ge.onSelect=function(Le){ge.props.onSelect(Le)},ge.onClick=function(Le){ge.props.onClick(Le)},ge.onOpenChange=function(Le){ge.props.onOpenChange(Le)},ge.onDestroy=function(Le){ge.props.onDestroy(Le)},ge.getFlatInstanceArray=function(){return ge.instanceArray},ge.step=function(Le){var yt=ge.getFlatInstanceArray(),ft=ge.props.store.getState().activeKey[Ue(ge.props)],qt=yt.length;if(!qt)return null;Le<0&&(yt=yt.concat().reverse());var Xt=-1;if(yt.every(function(un,_n){return un&&un.props.eventKey===ft?(Xt=_n,!1):!0}),!ge.props.defaultActiveFirst&&Xt!==-1&&fn(yt.slice(Xt,qt-1)))return;var it=(Xt+1)%qt,xt=it;do{var Rt=yt[xt];if(!Rt||Rt.props.disabled)xt=(xt+1)%qt;else return Rt}while(xt!==it);return null},ge.renderCommonMenuItem=function(Le,yt,ft){var qt=ge.props.store.getState(),Xt=Object(z.a)(ge),it=Xt.props,xt=q(Le,it.eventKey,yt),Rt=Le.props;if(!Rt||typeof Le.type=="string")return Le;var un=xt===qt.activeKey,_n=Object(re.a)(Object(re.a)({mode:Rt.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:ge.renderMenuItem,rootPrefixCls:it.prefixCls,index:yt,parentMenu:it.parentMenu,manualRef:Rt.disabled?void 0:Object(_.a)(Le.ref,Mt.bind(Object(z.a)(ge))),eventKey:xt,active:!Rt.disabled&&un,multiple:it.multiple,onClick:function(dr){(Rt.onClick||B)(dr),ge.onClick(dr)},onItemHover:ge.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:ge.onOpenChange,onDeselect:ge.onDeselect,onSelect:ge.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:Rt.itemIcon||ge.props.itemIcon,expandIcon:Rt.expandIcon||ge.props.expandIcon},ft),{},{direction:it.direction});return(it.mode==="inline"||Ze())&&(_n.triggerSubMenuAction="click"),W.cloneElement(Le,_n)},ge.renderMenuItem=function(Le,yt,ft){if(!Le)return null;var qt=ge.props.store.getState(),Xt={openKeys:qt.openKeys,selectedKeys:qt.selectedKeys,triggerSubMenuAction:ge.props.triggerSubMenuAction,subMenuKey:ft};return ge.renderCommonMenuItem(Le,yt,Xt)},lt.store.setState({activeKey:Object(re.a)(Object(re.a)({},lt.store.getState().activeKey),{},Object(d.a)({},lt.eventKey,vt(lt,lt.activeKey)))}),ge.instanceArray=[],ge}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ge){return this.props.visible||ge.visible||this.props.className!==ge.className||!h()(this.props.style,ge.style)}},{key:"componentDidUpdate",value:function(ge){var Le=this.props,yt="activeKey"in Le?Le.activeKey:Le.store.getState().activeKey[Ue(Le)],ft=vt(Le,yt);if(ft!==yt)qe(Le.store,Ue(Le),ft);else if("activeKey"in ge){var qt=vt(ge,ge.activeKey);ft!==qt&&qe(Le.store,Ue(Le),ft)}}},{key:"render",value:function(){var ge=this,Le=Object(R.a)({},this.props);this.instanceArray=[];var yt=n()(Le.prefixCls,Le.className,"".concat(Le.prefixCls,"-").concat(Le.mode)),ft={className:yt,role:Le.role||"menu"};Le.id&&(ft.id=Le.id),Le.focusable&&(ft.tabIndex=0,ft.onKeyDown=this.onKeyDown);var qt=Le.prefixCls,Xt=Le.eventKey,it=Le.visible,xt=Le.level,Rt=Le.mode,un=Le.overflowedIndicator,_n=Le.theme;return Ye.forEach(function(ar){return delete Le[ar]}),delete Le.onClick,W.createElement(Qt,Object.assign({},Le,{prefixCls:qt,mode:Rt,tag:"ul",level:xt,theme:_n,visible:it,overflowedIndicator:un},ft),W.Children.map(Le.children,function(ar,dr){return ge.renderMenuItem(ar,dr,Xt||"0-menu-")}))}}]),St}(W.Component);st.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:B};var Ct=Object(y.b)()(st),Ne=Ct,Se=M("Kwbf");function Te(Jt,wt,St){var lt=Jt.prefixCls,ge=Jt.motion,Le=Jt.defaultMotions,yt=Le===void 0?{}:Le,ft=Jt.openAnimation,qt=Jt.openTransitionName,Xt=wt.switchingModeFromInline;if(ge)return ge;if(Object(r.a)(ft)==="object"&&ft)Object(Se.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ft=="string")return{motionName:"".concat(lt,"-open-").concat(ft)};if(qt)return{motionName:qt};var it=yt[St];return it||(Xt?null:yt.other)}var le=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(lt){var ge;Object(G.a)(this,St),ge=wt.call(this,lt),ge.inlineOpenKeys=[],ge.onSelect=function(ft){var qt=Object(z.a)(ge),Xt=qt.props;if(Xt.selectable){var it=ge.store.getState(),xt=it.selectedKeys,Rt=ft.key;Xt.multiple?xt=xt.concat([Rt]):xt=[Rt],"selectedKeys"in Xt||ge.store.setState({selectedKeys:xt}),Xt.onSelect(Object(re.a)(Object(re.a)({},ft),{},{selectedKeys:xt}))}},ge.onClick=function(ft){var qt=ge.getRealMenuMode(),Xt=Object(z.a)(ge),it=Xt.store,xt=Xt.props.onOpenChange;qt!=="inline"&&!("openKeys"in ge.props)&&(it.setState({openKeys:[]}),xt([])),ge.props.onClick(ft)},ge.onKeyDown=function(ft,qt){ge.innerMenu.getWrappedInstance().onKeyDown(ft,qt)},ge.onOpenChange=function(ft){var qt=Object(z.a)(ge),Xt=qt.props,it=ge.store.getState().openKeys.concat(),xt=!1,Rt=function(_n){var ar=!1;if(_n.open)ar=it.indexOf(_n.key)===-1,ar&&it.push(_n.key);else{var dr=it.indexOf(_n.key);ar=dr!==-1,ar&&it.splice(dr,1)}xt=xt||ar};Array.isArray(ft)?ft.forEach(Rt):Rt(ft),xt&&("openKeys"in ge.props||ge.store.setState({openKeys:it}),Xt.onOpenChange(it))},ge.onDeselect=function(ft){var qt=Object(z.a)(ge),Xt=qt.props;if(Xt.selectable){var it=ge.store.getState().selectedKeys.concat(),xt=ft.key,Rt=it.indexOf(xt);Rt!==-1&&it.splice(Rt,1),"selectedKeys"in Xt||ge.store.setState({selectedKeys:it}),Xt.onDeselect(Object(re.a)(Object(re.a)({},ft),{},{selectedKeys:it}))}},ge.onMouseEnter=function(ft){ge.restoreModeVerticalFromInline();var qt=ge.props.onMouseEnter;qt&&qt(ft)},ge.onTransitionEnd=function(ft){var qt=ft.propertyName==="width"&&ft.target===ft.currentTarget,Xt=ft.target.className,it=Object.prototype.toString.call(Xt)==="[object SVGAnimatedString]"?Xt.animVal:Xt,xt=ft.propertyName==="font-size"&&it.indexOf("anticon")>=0;(qt||xt)&&ge.restoreModeVerticalFromInline()},ge.setInnerMenu=function(ft){ge.innerMenu=ft},ge.isRootMenu=!0;var Le=lt.defaultSelectedKeys,yt=lt.defaultOpenKeys;return"selectedKeys"in lt&&(Le=lt.selectedKeys||[]),"openKeys"in lt&&(yt=lt.openKeys||[]),ge.store=Object(y.c)({selectedKeys:Le,openKeys:yt,activeKey:{"0-menu-":vt(lt,lt.activeKey)}}),ge.state={switchingModeFromInline:!1},ge}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ge){this.updateOpentKeysWhenSwitchMode(ge),this.updateMiniStore();var Le=this.props,yt=Le.siderCollapsed,ft=Le.inlineCollapsed,qt=Le.onOpenChange;(!ge.inlineCollapsed&&ft||!ge.siderCollapsed&&yt)&&qt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ge){var Le=this.props,yt=this.store,ft=this.inlineOpenKeys,qt=yt.getState(),Xt={};ge.mode==="inline"&&Le.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Le||((Le.inlineCollapsed&&!ge.inlineCollapsed||Le.siderCollapsed&&!ge.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=qt.openKeys.concat(),Xt.openKeys=[]),(!Le.inlineCollapsed&&ge.inlineCollapsed||!Le.siderCollapsed&&ge.siderCollapsed)&&(Xt.openKeys=ft,this.inlineOpenKeys=[])),Object.keys(Xt).length&&yt.setState(Xt)}},{key:"updateMenuDisplay",value:function(){var ge=this.props.collapsedWidth,Le=this.store,yt=this.prevOpenKeys,ft=this.getInlineCollapsed()&&(ge===0||ge==="0"||ge==="0px");ft?(this.prevOpenKeys=Le.getState().openKeys.concat(),this.store.setState({openKeys:[]})):yt&&(this.store.setState({openKeys:yt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ge=this.props.mode,Le=this.state.switchingModeFromInline,yt=this.getInlineCollapsed();return Le&&yt?"inline":yt?"vertical":ge}},{key:"getInlineCollapsed",value:function(){var ge=this.props,Le=ge.inlineCollapsed,yt=ge.siderCollapsed;return yt!==void 0?yt:Le}},{key:"restoreModeVerticalFromInline",value:function(){var ge=this.state.switchingModeFromInline;ge&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ge=Object(re.a)({},Object(L.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Le=this.getRealMenuMode();return ge.className+=" ".concat(ge.prefixCls,"-root"),ge.direction==="rtl"&&(ge.className+=" ".concat(ge.prefixCls,"-rtl")),ge=Object(re.a)(Object(re.a)({},ge),{},{mode:Le,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Te(this.props,this.state,Le)}),delete ge.openAnimation,delete ge.openTransitionName,W.createElement(y.a,{store:this.store},W.createElement(Ne,Object.assign({},ge,{ref:this.setInnerMenu}),this.props.children))}}]),St}(W.Component);le.defaultProps={selectable:!0,onClick:B,onSelect:B,onOpenChange:B,onDeselect:B,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:W.createElement("span",null,"\xB7\xB7\xB7")};var fe=le,_e=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(){var lt;return Object(G.a)(this,St),lt=wt.apply(this,arguments),lt.onKeyDown=function(ge){var Le=ge.keyCode;return Le===p.a.ENTER?(lt.onClick(ge),!0):void 0},lt.onMouseLeave=function(ge){var Le=lt.props,yt=Le.eventKey,ft=Le.onItemHover,qt=Le.onMouseLeave;ft({key:yt,hover:!1}),qt({key:yt,domEvent:ge})},lt.onMouseEnter=function(ge){var Le=lt.props,yt=Le.eventKey,ft=Le.onItemHover,qt=Le.onMouseEnter;ft({key:yt,hover:!0}),qt({key:yt,domEvent:ge})},lt.onClick=function(ge){var Le=lt.props,yt=Le.eventKey,ft=Le.multiple,qt=Le.onClick,Xt=Le.onSelect,it=Le.onDeselect,xt=Le.isSelected,Rt={key:yt,keyPath:[yt],item:Object(z.a)(lt),domEvent:ge};qt(Rt),ft?xt?it(Rt):Xt(Rt):xt||Xt(Rt)},lt.saveNode=function(ge){lt.node=ge},lt}return Object(I.a)(St,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ge=this.props;ge.onDestroy&&ge.onDestroy(ge.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ge,Le=Object(re.a)({},this.props),yt=n()(this.getPrefixCls(),Le.className,(ge={},Object(d.a)(ge,this.getActiveClassName(),!Le.disabled&&Le.active),Object(d.a)(ge,this.getSelectedClassName(),Le.isSelected),Object(d.a)(ge,this.getDisabledClassName(),Le.disabled),ge)),ft=Object(re.a)(Object(re.a)({},Le.attribute),{},{title:typeof Le.title=="string"?Le.title:void 0,className:yt,role:Le.role||"menuitem","aria-disabled":Le.disabled});Le.role==="option"?ft=Object(re.a)(Object(re.a)({},ft),{},{role:"option","aria-selected":Le.isSelected}):(Le.role===null||Le.role==="none")&&(ft.role="none");var qt={onClick:Le.disabled?null:this.onClick,onMouseLeave:Le.disabled?null:this.onMouseLeave,onMouseEnter:Le.disabled?null:this.onMouseEnter},Xt=Object(re.a)({},Le.style);Le.mode==="inline"&&(Le.direction==="rtl"?Xt.paddingRight=Le.inlineIndent*Le.level:Xt.paddingLeft=Le.inlineIndent*Le.level),Ye.forEach(function(xt){return delete Le[xt]}),delete Le.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=W.createElement(this.props.itemIcon,this.props)),W.createElement("li",Object.assign({},Object(L.default)(Le,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ft,qt,{style:Xt,ref:this.saveNode}),Le.children,it)}}]),St}(W.Component);_e.isMenuItem=!0,_e.defaultProps={onSelect:B,onMouseEnter:B,onMouseLeave:B,manualRef:B};var Me=Object(y.b)(function(Jt,wt){var St=Jt.activeKey,lt=Jt.selectedKeys,ge=wt.eventKey,Le=wt.subMenuKey;return{active:St[Le]===ge,isSelected:lt.indexOf(ge)!==-1}})(_e),at=Me,Je=function(Jt){Object(O.a)(St,Jt);var wt=Object(w.a)(St);function St(){var lt;return Object(G.a)(this,St),lt=wt.apply(this,arguments),lt.renderInnerMenuItem=function(ge){var Le=lt.props,yt=Le.renderMenuItem,ft=Le.index;return yt(ge,ft,lt.props.subMenuKey)},lt}return Object(I.a)(St,[{key:"render",value:function(){var ge=Object(R.a)({},this.props),Le=ge.className,yt=Le===void 0?"":Le,ft=ge.rootPrefixCls,qt="".concat(ft,"-item-group-title"),Xt="".concat(ft,"-item-group-list"),it=ge.title,xt=ge.children;return Ye.forEach(function(Rt){return delete ge[Rt]}),delete ge.onClick,delete ge.direction,W.createElement("li",Object.assign({},ge,{className:"".concat(yt," ").concat(ft,"-item-group")}),W.createElement("div",{className:qt,title:typeof it=="string"?it:void 0},it),W.createElement("ul",{className:Xt},W.Children.map(xt,this.renderInnerMenuItem)))}}]),St}(W.Component);Je.isMenuItemGroup=!0,Je.defaultProps={disabled:!0};var jt=Je,nn=function(wt){var St=wt.className,lt=wt.rootPrefixCls,ge=wt.style;return W.createElement("li",{className:"".concat(St," ").concat(lt,"-item-divider"),style:ge})};nn.defaultProps={disabled:!0,className:"",style:{}};var pn=nn,an=Ce.e=fe},"24hK":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return I});var re=M("JYp7"),G=function(){function z(O){this.element=O,this.next=z.Undefined,this.prev=z.Undefined}return z.Undefined=new z(void 0),z}(),I=function(){function z(){this._first=G.Undefined,this._last=G.Undefined,this._size=0}return Object.defineProperty(z.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),z.prototype.isEmpty=function(){return this._first===G.Undefined},z.prototype.clear=function(){this._first=G.Undefined,this._last=G.Undefined,this._size=0},z.prototype.unshift=function(O){return this._insert(O,!1)},z.prototype.push=function(O){return this._insert(O,!0)},z.prototype._insert=function(O,w){var W=this,y=new G(O);if(this._first===G.Undefined)this._first=y,this._last=y;else if(w){var L=this._last;this._last=y,y.prev=L,L.next=y}else{var R=this._first;this._first=y,y.next=R,R.prev=y}this._size+=1;var d=!1;return function(){d||(d=!0,W._remove(y))}},z.prototype.shift=function(){if(this._first===G.Undefined)return;var O=this._first.element;return this._remove(this._first),O},z.prototype.pop=function(){if(this._last===G.Undefined)return;var O=this._last.element;return this._remove(this._last),O},z.prototype._remove=function(O){if(O.prev!==G.Undefined&&O.next!==G.Undefined){var w=O.prev;w.next=O.next,O.next.prev=w}else O.prev===G.Undefined&&O.next===G.Undefined?(this._first=G.Undefined,this._last=G.Undefined):O.next===G.Undefined?(this._last=this._last.prev,this._last.next=G.Undefined):O.prev===G.Undefined&&(this._first=this._first.next,this._first.prev=G.Undefined);this._size-=1},z.prototype.iterator=function(){var O,w=this._first;return{next:function(){return w===G.Undefined?re.c:(O?O.value=w.element:O={done:!1,value:w.element},w=w.next,O)}}},z.prototype.toArray=function(){for(var O=[],w=this._first;w!==G.Undefined;w=w.next)O.push(w.element);return O},z}()},"28ck":function(tn,Ce,M){tn.exports={flex_box_center:"flex_box_center___2EzbZ",flex_space_between:"flex_space_between___2jjzS",flex_box_vertical_center:"flex_box_vertical_center___35dLT",flex_box_center_end:"flex_box_center_end___2fyJ3",flex_box_column:"flex_box_column___3lKUC",title:"title___3cIut",export:"export___3pzhF",bg:"bg___2HApn",tabs:"tabs___pZ5ue",workListTabWrap:"workListTabWrap___3EyRO",workListTabButton:"workListTabButton___1vYHr"}},"3IPh":function(tn,Ce,M){tn.exports={wrap:"wrap___cA_8q",MdEditor:"MdEditor___8fwED",workListButtonWrap:"workListButtonWrap___19mp3",anticon:"anticon___3Lzu8",workListClass:"workListClass___1J6Go",left:"left___21zr0",visible:"visible___38N4N",status:"status___1j6mP",tips:"tips___2L_mR"}},"49sm":function(tn,Ce){var M={}.toString;tn.exports=Array.isArray||function(re){return M.call(re)=="[object Array]"}},"4HvA":function(tn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("sRBo"),z=M("kaz8"),O=M("7Kak"),w=M("9yH6"),W=M("14J3"),y=M("BMrR"),L=M("jCWc"),R=M("kPKH"),d=M("iQDF"),p=M("+eQT"),_=M("miYZ"),v=M("tsqr"),h=M("jrin"),c=M("oBTY"),n=M("9og8"),r=M("k1fw"),o=M("y8nQ"),l=M("Vl3Y"),x=M("tJVT"),E=M("PpiC"),b=M("WmNS"),P=M.n(b),T=M("q1tI"),m=M.n(T),g=M("wd/R"),s=M.n(g),u=M("ErOA"),D=M("xKgJ"),S=M("1vsH"),A=M("Ty5D"),N=M("9kvl"),j=M("4wi7"),K=M("oUNq");function H(q,ee){for(var he=[],ye=q;ye0)){Xt.next=7;break}return v.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Xt.abrupt("return");case 7:return yt={homework_ids:Object(c.a)(he.actionTabs.selectArrs),group_ids:fe.map(function(it){return it.id}),end_time:s()(Le.end_time).format("YYYY-MM-DD HH:mm"),publish_time:s()(Le.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!fe.length},Xt.next=10,Object(u.a)("/api/courses/".concat(Pe.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(r.a)({},yt)});case 10:ft=Xt.sent,ft.status===0&&(Object(S.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),v.b.success("\u53D1\u5E03\u6210\u529F"),ye({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Ye.onCallback&&Ye.onCallback(),an(),localStorage.getItem("Noviceguide")==="0"||ye({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:m.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return Xt.stop()}},ge)}));return function(){return lt.apply(this,arguments)}}(),wt=function(){Oe(1),J([]),_e([])},St=ue>ie*Pt;return m.a.createElement(G.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:he.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Jt,onCancel:function(){wt(),an(),ye({type:"classroomList/setActionTabs",payload:{}})}},m.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",m.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),pe&&m.a.createElement(l.a,{form:Qe},m.a.createElement("div",{style:{paddingLeft:0}},m.a.createElement(y.a,{className:"mt30",align:"middle"},m.a.createElement(R.a,null,m.a.createElement(l.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},m.a.createElement(p.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(ge){return ge.parentNode},disabledDate:function(ge){return ge&&ge<=s()().subtract(0,"days")},disabledTime:U,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:s()(Object(S.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),m.a.createElement(R.a,{className:"ml20"},m.a.createElement(l.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},m.a.createElement(p.a,{style:{width:170},getPopupContainer:function(ge){return ge.parentNode},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:s()(Object(S.d)(),"HH:mm")},disabledDate:function(ge){return ge&&ge0&&m.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},m.a.createElement("span",{style:{flex:1}},m.a.createElement(z.a,{checked:fe.length===pe.length,onChange:function(ge){fe.length===pe.length?_e([]):_e(pe.filter(function(Le){return!Le.is_published}))}},"\u5168\u9009")," "),m.a.createElement("span",{style:{width:16}}),m.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",fe.length||0,"\u4E2A\u5206\u73ED")),(he.actionTabs.type===1||!Je)&&pe.length>0&&m.a.createElement(j.a,{data:pe,selectedRowKeys:fe,setSelectedRowKeys:_e})))};Ce.a=Object(N.a)(function(q){var ee=q.classroomList,he=q.user;return{classroomList:ee,user:he}})(B)},"4wi7":function(tn,Ce,M){"use strict";var re=M("14J3"),G=M("BMrR"),I=M("sRBo"),z=M("kaz8"),O=M("5NDa"),w=M("5rEg"),W=M("9og8"),y=M("tJVT"),L=M("WmNS"),R=M.n(L),d=M("q1tI"),p=M.n(d),_=M("oOBs"),v=M.n(_),h=M("xOL1"),c=M.n(h),n=M("BdwD"),r=function(l){var x=l.data,E=l.value,b=E===void 0?[]:E,P=l.handleChangePage,T=l.setSelectedRowKeys,m=l.selectedRowKeys,g=l.onChange,s=g===void 0?function(){}:g,u=Object(d.useState)([]),D=Object(y.a)(u,2),S=D[0],A=D[1],N=Object(d.useState)([]),j=Object(y.a)(N,2),K=j[0],H=j[1],U=Object(d.useState)([]),B=Object(y.a)(U,2),q=B[0],ee=B[1],he=Object(d.useState)(1),ye=Object(y.a)(he,2),Ye=ye[0],Pe=ye[1],je=Object(d.useState)(),Ze=Object(y.a)(je,2),Qe=Ze[0],Ae=Ze[1];return Object(d.useEffect)(function(){A(x),H([]),ee([])},[x]),Object(d.useEffect)(function(){T&&(H(m),ee(m))},[m]),p.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},p.a.createElement("div",{className:v.a.leftdiv},p.a.createElement(w.a.Search,{size:"large",onChange:function(){var me=Object(W.a)(R.a.mark(function ie(Oe){return R.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:A(x.filter(function(pe){var J;return pe==null||((J=pe.name)===null||J===void 0)?void 0:J.includes(Oe.target.value)}));case 1:case"end":return Ge.stop()}},ie)}));return function(ie){return me.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),S.length===0&&p.a.createElement(n.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),p.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},p.a.createElement(z.a.Group,{value:K.map(function(me){return"".concat(me.id)}),onChange:function(ie){T(S.filter(function(Oe){return ie.includes("".concat(Oe.id))}))},style:{marginTop:"10px"}},S.map(function(me,ie){return p.a.createElement(G.a,{key:me.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},p.a.createElement(z.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:me.is_published,value:"".concat(me.id)},p.a.createElement("div",{className:v.a.listClass},p.a.createElement("span",{className:v.a.spantitle,style:{width:me.is_published?"108px":"170px"}},me.name),me.is_published&&p.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),p.a.createElement("div",{className:v.a.rightdiv},p.a.createElement(w.a.Search,{onChange:function(ie){ee(K.filter(function(Oe){return Oe.name.includes(ie.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),q.length===0&&p.a.createElement(n.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),q.length>0&&p.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},p.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},q.map(function(me,ie){return p.a.createElement(G.a,{justify:"space-between",style:{marginTop:"10px"},key:me.id},p.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},me.name),p.a.createElement("img",{src:c.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){T(K.filter(function(ve){return"".concat(ve.id)!="".concat(me.id)}))}}))})))))};Ce.a=r},"500L":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return E});var re=M("+L6B"),G=M("2/Rp"),I=M("2qtc"),z=M("kLXV"),O=M("9og8"),w=M("k1fw"),W=M("miYZ"),y=M("tsqr"),L=M("oBTY"),R=M("tJVT"),d=M("DZo9"),p=M("8z0m"),_=M("WmNS"),v=M.n(_),h=M("q1tI"),c=M.n(h),n=M("m3rI"),r=M("wzkS"),o=M("y5JW"),l=M("LtfV"),x=p.a.Dragger;function E(b){var P=[];return b&&b.length>0&&(P=b.map(function(T){return{uid:T.id,id:T.id,name:T.title+o.c+T.filesize,url:T.url,filesize:T.filesize,status:"done",response:{id:T.id}}})),P}Ce.b=function(b){var P=b.value,T=b.onChange,m=b.action,g=b.className,s=b.maxSize,u=s===void 0?150:s,D=b.title,S=D===void 0?"\u4E0A\u4F20\u9644\u4EF6":D,A=b.showRemoveModal,N=A===void 0?!1:A,j=b.accept,K=j===void 0?"":j,H=b.additionalText,U=b.isDragger,B=b.number,q=B===void 0?1e3:B,ee=b.aloneClear,he=ee===void 0?!1:ee,ye=b.restrict,Ye=ye===void 0?!0:ye,Pe=Object(h.useState)(!1),je=Object(R.a)(Pe,2),Ze=je[0],Qe=je[1],Ae=Object(h.useState)(P||[]),me=Object(R.a)(Ae,2),ie=me[0],Oe=me[1];Object(h.useEffect)(function(){P&&(Oe(Object(L.a)(P)),q===(P==null?void 0:P.length)&&Qe(!0))},[P]);var ve=function(){setTimeout(function(){ie.pop(),Oe(Object(L.a)(ie))},500)},Ge={multiple:!0,disabled:Ze,accept:K,withCredentials:!0,fileList:ie,beforeUpload:function(V,X){var ue=V.size/1024/1024;return ie.concat(X).length>q?(ie.pop(),Oe(Object(L.a)(ie)),y.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(q,"\u4E2A\u6587\u4EF6")),he?Promise.reject():(ve(),!1)):ue=q?Qe(!0):Qe(!1),Oe(Object(L.a)(X)),X=X.map(function(ue){var Ee;if(ue!=null&&(Ee=ue.response)!==null&&Ee!==void 0&&Ee.id){var We;ue.url="/api/attachments/".concat(ue==null||((We=ue.response)===null||We===void 0)?void 0:We.id)}return ue.name.indexOf(o.c)===-1&&(ue.name="".concat(ue.name).concat(o.c).concat(Object(o.a)(ue.size))),Object(w.a)({},ue)}),console.log("info:",V),T(X)},onRemove:function(){var J=Object(O.a)(v.a.mark(function X(ue){var Ee;return v.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Ee=function(){var Pt=Object(O.a)(v.a.mark(function Kt(){var Bt,kt;return v.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(Bt=ue.response?ue.response.id:ue.id,!Bt){fn.next=8;break}return fn.next=4,Object(r.d)(ue.response?ue.response.id:ue.uid);case 4:return kt=fn.sent,fn.abrupt("return",kt);case 8:return fn.abrupt("return",!0);case 9:case"end":return fn.stop()}},Kt)}));return function(){return Pt.apply(this,arguments)}}(),!N){Ke.next=5;break}return Ke.abrupt("return",new Promise(function(Pt,Kt){z.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var Bt=Object(O.a)(v.a.mark(function Qt(){var fn;return v.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Ee();case 2:fn=Ue.sent,y.b.success("\u5220\u9664\u6210\u529F"),Pt(!0);case 5:case"end":return Ue.stop()}},Qt)}));function kt(){return Bt.apply(this,arguments)}return kt}(),onCancel:function(){return Pt(!1)}})}));case 5:return Ke.next=7,Ee();case 7:return Ke.abrupt("return",Ke.sent);case 8:case"end":return Ke.stop()}},X)}));function V(X){return J.apply(this,arguments)}return V}()};function pe(J){J.preventDefault(),J.stopPropagation()}return c.a.createElement("div",{className:"multi-upload ".concat(g||"")},U&&c.a.createElement(x,Ge,c.a.createElement("p",{className:"ant-upload-drag-icon"},c.a.createElement(l.a,null)),c.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",c.a.createElement("br",null),c.a.createElement("span",{style:{display:Ye?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",u,"MB) ")),H),!U&&c.a.createElement(p.a,Ge,c.a.createElement(G.a,{disabled:Ze},S),c.a.createElement("span",{onClick:pe,style:{marginLeft:10,color:"#FA6400",display:Ye?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",u,"MB) ")))}},"55Ip":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return o}),M.d(Ce,"b",function(){return T});var re=M("Ty5D"),G=M("dI71"),I=M("q1tI"),z=M.n(I),O=M("YS25"),w=M("17x9"),W=M.n(w),y=M("wx14"),L=M("zLVn"),R=M("9R94"),d=function(g){Object(G.a)(s,g);function s(){for(var D,S=arguments.length,A=new Array(S),N=0;N=0||S.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;g.setState({goInputText:""}),j(g.getValidValue())},g.go=function(S){var A=g.state.goInputText;if(A==="")return;(S.keyCode===v.ENTER||S.type==="click")&&(g.setState({goInputText:""}),g.props.quickGo(g.getValidValue()))},g}return Object(O.a)(m,[{key:"getValidValue",value:function(){var s=this.state,u=s.goInputText,D=s.current;return!u||isNaN(u)?D:Number(u)}},{key:"getPageSizeOptions",value:function(){var s=this.props,u=s.pageSize,D=s.pageSizeOptions;return D.some(function(S){return S.toString()===u.toString()})?D:D.concat([u.toString()]).sort(function(S,A){var N=isNaN(Number(S))?0:Number(S),j=isNaN(Number(A))?0:Number(A);return N-j})}},{key:"render",value:function(){var s=this,u=this.props,D=u.pageSize,S=u.locale,A=u.rootPrefixCls,N=u.changeSize,j=u.quickGo,K=u.goButton,H=u.selectComponentClass,U=u.buildOptionText,B=u.selectPrefixCls,q=u.disabled,ee=this.state.goInputText,he="".concat(A,"-options"),ye=H,Ye=null,Pe=null,je=null;if(!N&&!j)return null;var Ze=this.getPageSizeOptions();if(N&&ye){var Qe=Ze.map(function(Ae,me){return L.a.createElement(ye.Option,{key:me,value:Ae.toString()},(U||s.buildOptionText)(Ae))});Ye=L.a.createElement(ye,{disabled:q,prefixCls:B,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||Ze[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},Qe)}return j&&(K&&(je=typeof K=="boolean"?L.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(he,"-quick-jumper-button")},S.jump_to_confirm):L.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),Pe=L.a.createElement("div",{className:"".concat(he,"-quick-jumper")},S.jump_to,L.a.createElement("input",{disabled:q,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),S.page,je)),L.a.createElement("li",{className:"".concat(he)},Ye,Pe)}}]),m}(L.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=h,n=M("N2Kk");function r(){}function o(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function l(P,T,m){return m}function x(P,T,m){var g=typeof P=="undefined"?T.pageSize:P;return Math.floor((m.total-1)/g)+1}var E=function(P){Object(w.a)(m,P);var T=Object(W.a)(m);function m(g){var s;Object(z.a)(this,m),s=T.call(this,g),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(x(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(N,j){var K=s.props.prefixCls,H=N||L.a.createElement("button",{type:"button","aria-label":j,className:"".concat(K,"-item-link")});return typeof N=="function"&&(H=L.a.createElement(N,Object(I.a)({},s.props))),H},s.savePaginationNode=function(N){s.paginationNode=N},s.isValid=function(N){return o(N)&&N!==s.state.current},s.shouldDisplayQuickJumper=function(){var N=s.props,j=N.showQuickJumper,K=N.pageSize,H=N.total;return H<=K?!1:j},s.handleKeyDown=function(N){(N.keyCode===v.ARROW_UP||N.keyCode===v.ARROW_DOWN)&&N.preventDefault()},s.handleKeyUp=function(N){var j=s.getValidValue(N),K=s.state.currentInputValue;j!==K&&s.setState({currentInputValue:j}),N.keyCode===v.ENTER?s.handleChange(j):N.keyCode===v.ARROW_UP?s.handleChange(j-1):N.keyCode===v.ARROW_DOWN&&s.handleChange(j+1)},s.changePageSize=function(N){var j=s.state.current,K=x(N,s.state,s.props);j=j>K?K:j,K===0&&(j=s.state.current),typeof N=="number"&&("pageSize"in s.props||s.setState({pageSize:N}),"current"in s.props||s.setState({current:j,currentInputValue:j})),s.props.onShowSizeChange(j,N),"onChange"in s.props&&s.props.onChange&&s.props.onChange(j,N)},s.handleChange=function(N){var j=s.props.disabled,K=N;if(s.isValid(K)&&!j){var H=x(void 0,s.state,s.props);K>H?K=H:K<1&&(K=1),"current"in s.props||s.setState({current:K,currentInputValue:K});var U=s.state.pageSize;return s.props.onChange(K,U),K}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?K-2:0),U=2;U=D?A=D:A=Number(u),A}},{key:"getShowSizeChanger",value:function(){var s=this.props,u=s.showSizeChanger,D=s.total,S=s.totalBoundaryShowSizeChanger;return typeof u!="undefined"?u:D>S}},{key:"renderPrev",value:function(s){var u=this.props,D=u.prevIcon,S=u.itemRender,A=S(s,"prev",this.getItemIcon(D,"prev page")),N=!this.hasPrev();return Object(y.isValidElement)(A)?Object(y.cloneElement)(A,{disabled:N}):A}},{key:"renderNext",value:function(s){var u=this.props,D=u.nextIcon,S=u.itemRender,A=S(s,"next",this.getItemIcon(D,"next page")),N=!this.hasNext();return Object(y.isValidElement)(A)?Object(y.cloneElement)(A,{disabled:N}):A}},{key:"render",value:function(){var s=this,u=this.props,D=u.prefixCls,S=u.className,A=u.style,N=u.disabled,j=u.hideOnSinglePage,K=u.total,H=u.locale,U=u.showQuickJumper,B=u.showLessItems,q=u.showTitle,ee=u.showTotal,he=u.simple,ye=u.itemRender,Ye=u.showPrevNextJumpers,Pe=u.jumpPrevIcon,je=u.jumpNextIcon,Ze=u.selectComponentClass,Qe=u.selectPrefixCls,Ae=u.pageSizeOptions,me=this.state,ie=me.current,Oe=me.pageSize,ve=me.currentInputValue;if(j===!0&&K<=Oe)return null;var Ge=x(void 0,this.state,this.props),pe=[],J=null,V=null,X=null,ue=null,Ee=null,We=U&&U.goButton,Ke=B?1:2,Pt=ie-1>0?ie-1:0,Kt=ie+1=Ke*2&&ie!==1+2&&(pe[0]=Object(y.cloneElement)(pe[0],{className:"".concat(D,"-item-after-jump-prev")}),pe.unshift(J)),Ge-ie>=Ke*2&&ie!==Ge-2&&(pe[pe.length-1]=Object(y.cloneElement)(pe[pe.length-1],{className:"".concat(D,"-item-before-jump-next")}),pe.push(V)),vt!==1&&pe.unshift(X),Mt!==Ge&&pe.push(ue)}var Ne=null;ee&&(Ne=L.a.createElement("li",{className:"".concat(D,"-total-text")},ee(K,[K===0?0:(ie-1)*Oe+1,ie*Oe>K?K:ie*Oe])));var Se=!this.hasPrev()||!Ge,Te=!this.hasNext()||!Ge;return L.a.createElement("ul",Object(re.a)({className:d()(D,S,Object(G.a)({},"".concat(D,"-disabled"),N)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},Bt),Ne,L.a.createElement("li",{title:q?H.prev_page:null,onClick:this.prev,tabIndex:Se?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(D,"-prev"),Object(G.a)({},"".concat(D,"-disabled"),Se)),"aria-disabled":Se},this.renderPrev(Pt)),pe,L.a.createElement("li",{title:q?H.next_page:null,onClick:this.next,tabIndex:Te?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(D,"-next"),Object(G.a)({},"".concat(D,"-disabled"),Te)),"aria-disabled":Te},this.renderNext(Kt)),L.a.createElement(c,{disabled:N,locale:H,rootPrefixCls:D,selectComponentClass:Ze,selectPrefixCls:Qe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Oe,pageSizeOptions:Ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:We}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var D={};if("current"in s&&(D.current=s.current,s.current!==u.current&&(D.currentInputValue=D.current)),"pageSize"in s&&s.pageSize!==u.pageSize){var S=u.current,A=x(s.pageSize,u,s);S=S>A?A:S,"current"in s||(D.current=S,D.currentInputValue=S),D.pageSize=s.pageSize}return D}}]),m}(L.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:n.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var b=E},"6RRn":function(tn,Ce,M){"use strict";var re=M("wCXF"),G=M("n6Qo");M.d(Ce,"b",function(){return G.a});var I=M("IBYe"),z=M("6eGT"),O=M("hW8S");M.d(Ce,"a",function(){return O.a}),Ce.c=re.b},"6eGT":function(tn,Ce,M){"use strict";function re(G){return null}Ce.a=re},"746U":function(tn,Ce,M){"use strict";M.d(Ce,"d",function(){return G}),M.d(Ce,"j",function(){return I}),M.d(Ce,"i",function(){return z}),M.d(Ce,"h",function(){return O}),M.d(Ce,"e",function(){return w}),M.d(Ce,"k",function(){return W}),M.d(Ce,"l",function(){return y}),M.d(Ce,"a",function(){return L}),M.d(Ce,"f",function(){return d}),M.d(Ce,"g",function(){return p}),M.d(Ce,"m",function(){return _}),M.d(Ce,"c",function(){return c}),M.d(Ce,"b",function(){return n}),M.d(Ce,"n",function(){return r}),M.d(Ce,"o",function(){return o});var re={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function G(l){return Array.isArray?Array.isArray(l):!!(l&&typeof l.length===re.number&&l.constructor===Array)}function I(l){return typeof l===re.string||l instanceof String}function z(l){return typeof l===re.object&&l!==null&&!Array.isArray(l)&&!(l instanceof RegExp)&&!(l instanceof Date)}function O(l){return(typeof l===re.number||l instanceof Number)&&!isNaN(l)}function w(l){return l===!0||l===!1}function W(l){return typeof l===re.undefined}function y(l){return W(l)||l===null}function L(l,x){if(!l)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var R=Object.prototype.hasOwnProperty;function d(l){if(!z(l))return!1;for(var x in l)if(R.call(l,x))return!1;return!0}function p(l){return typeof l===re.function}function _(l,x){for(var E=Math.min(l.length,x.length),b=0;b1&&arguments[1]!==void 0?arguments[1]:0,h=(W[_[v+0]]+W[_[v+1]]+W[_[v+2]]+W[_[v+3]]+"-"+W[_[v+4]]+W[_[v+5]]+"-"+W[_[v+6]]+W[_[v+7]]+"-"+W[_[v+8]]+W[_[v+9]]+"-"+W[_[v+10]]+W[_[v+11]]+W[_[v+12]]+W[_[v+13]]+W[_[v+14]]+W[_[v+15]]).toLowerCase();if(!w(h))throw TypeError("Stringified UUID is invalid");return h}var R=L;function d(_,v,h){_=_||{};var c=_.random||(_.rng||I)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,v){h=h||0;for(var n=0;n<16;++n)v[h+n]=c[n];return v}return R(c)}var p=Ce.a=d},"7ahc":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return x});var re=M("k1fw"),G=M("0Owb"),I=M("+L6B"),z=M("2/Rp"),O=M("y8nQ"),w=M("Vl3Y"),W=M("tJVT"),y=M("OaEy"),L=M("2fM7"),R=M("q1tI"),d=M.n(R),p=M("VrN/"),_=M.n(p),v=M("p77/"),h=M.n(v),c=M("c5Ni"),n=M.n(c),r=L.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},l={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ce.b=function(E){var b=E.callback,P=E.onCancel,T=Object(R.useState)("python"),m=Object(W.a)(T,2),g=m[0],s=m[1];function u(S){s(l[S][1])}function D(S){b(S)}return d.a.createElement(w.a,Object(G.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},d.a.createElement(L.a,{onChange:u},Object.keys(l).map(function(S){return d.a.createElement(r,{key:S,value:S},l[S][0])}))),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},d.a.createElement(x,{mode:g})),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(z.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function x(E){var b=E.value,P=E.onChange,T=E.mode,m=E.options,g=m===void 0?{}:m,s=Object(R.useRef)(),u=Object(R.useState)(),D=Object(W.a)(u,2),S=D[0],A=D[1];return Object(R.useEffect)(function(){if(S){function N(j){var K=j.getValue();P&&P(K)}return S.on("change",N),function(){S.off("change",N)}}},[S,P]),Object(R.useEffect)(function(){S&&S.setOption("mode",T)},[S,T]),Object(R.useEffect)(function(){S&&((b!==S.getValue()||b==="")&&setTimeout(function(){S.setValue(b||" ")},300))},[S,b]),Object(R.useEffect)(function(){if(s.current&&!S){var N=_.a.fromTextArea(s.current,Object(re.a)({mode:T,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},g));A(N)}},[s.current,S]),d.a.createElement("div",{className:"my-codemirror-container"},d.a.createElement("textarea",{ref:s}))}},"7ixt":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return I});var re={adjustX:1,adjustY:1},G=[0,0],I={left:{points:["cr","cl"],overflow:re,offset:[-4,0],targetOffset:G},right:{points:["cl","cr"],overflow:re,offset:[4,0],targetOffset:G},top:{points:["bc","tc"],overflow:re,offset:[0,-4],targetOffset:G},bottom:{points:["tc","bc"],overflow:re,offset:[0,4],targetOffset:G},topLeft:{points:["bl","tl"],overflow:re,offset:[0,-4],targetOffset:G},leftTop:{points:["tr","tl"],overflow:re,offset:[-4,0],targetOffset:G},topRight:{points:["br","tr"],overflow:re,offset:[0,-4],targetOffset:G},rightTop:{points:["tl","tr"],overflow:re,offset:[4,0],targetOffset:G},bottomRight:{points:["tr","br"],overflow:re,offset:[0,4],targetOffset:G},rightBottom:{points:["bl","br"],overflow:re,offset:[4,0],targetOffset:G},bottomLeft:{points:["tl","bl"],overflow:re,offset:[0,4],targetOffset:G},leftBottom:{points:["br","bl"],overflow:re,offset:[-4,0],targetOffset:G}},z=I},"815F":function(tn,Ce,M){"use strict";M.d(Ce,"e",function(){return W}),M.d(Ce,"c",function(){return L}),M.d(Ce,"d",function(){return R}),M.d(Ce,"a",function(){return p}),M.d(Ce,"f",function(){return _}),M.d(Ce,"b",function(){return v});var re=M("KQm4"),G=M("VTBJ"),I=M("Ff2n"),z=M("Zm9Q"),O=M("Kwbf"),w=M("OZM5");function W(h,c){return h!=null?h:c}function y(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(l){var x=l.key,E=l.children;Object(O.a)(x!=null,"Tree node must have a certain key: [".concat(o).concat(x,"]"));var b=String(x);Object(O.a)(!c.has(b)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(b)),c.set(b,!0),n(E,"".concat(o).concat(b," > "))})}n(h)}function L(h){function c(n){var r=Object(z.a)(n);return r.map(function(o){if(!Object(w.i)(o))return Object(O.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var l=o.key,x=o.props,E=x.children,b=Object(I.a)(x,["children"]),P=Object(G.a)({key:l},b),T=c(E);return T.length&&(P.children=T),P}).filter(function(o){return o})}return c(h)}function R(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=new Set(c===!0?[]:c),r=[];function o(l){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(E,b){var P=Object(w.h)(x?x.pos:"0",b),T=W(E.key,P),m=Object(G.a)(Object(G.a)({},E),{},{parent:x,pos:P,children:null,data:E,isStart:[].concat(Object(re.a)(x?x.isStart:[]),[b===0]),isEnd:[].concat(Object(re.a)(x?x.isEnd:[]),[b===l.length-1])});return r.push(m),c===!0||n.has(T)?m.children=o(E.children||[],m):m.children=[],m})}return o(h),r}function d(h,c,n){var r;n?typeof n=="string"?r=function(x){return x[n]}:typeof n=="function"&&(r=function(x){return n(x)}):r=function(x,E){return W(x.key,E)};function o(l,x,E){var b=l?l.children:h,P=l?Object(w.h)(E.pos,x):"0";if(l){var T=r(l,P),m={node:l,index:x,pos:P,key:T,parentPos:E.node?E.pos:null,level:E.level+1};c(m)}b&&b.forEach(function(g,s){o(g,s,{node:l,pos:P,level:E?E.level+1:-1})})}o(null)}function p(h){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.initWrapper,r=c.processEntity,o=c.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,x={},E={},b={posEntities:x,keyEntities:E};return n&&(b=n(b)||b),d(h,function(P){var T=P.node,m=P.index,g=P.pos,s=P.key,u=P.parentPos,D=P.level,S={node:T,index:m,key:s,pos:g,level:D},A=W(s,g);x[g]=S,E[A]=S,S.parent=x[u],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),r&&r(S,b)},l),o&&o(b),b}function _(h,c){var n=c.expandedKeys,r=c.selectedKeys,o=c.loadedKeys,l=c.loadingKeys,x=c.checkedKeys,E=c.halfCheckedKeys,b=c.dragOverNodeKey,P=c.dropPosition,T=c.keyEntities,m=T[h],g={eventKey:h,expanded:n.indexOf(h)!==-1,selected:r.indexOf(h)!==-1,loaded:o.indexOf(h)!==-1,loading:l.indexOf(h)!==-1,checked:x.indexOf(h)!==-1,halfChecked:E.indexOf(h)!==-1,pos:String(m?m.pos:""),dragOver:b===h&&P===0,dragOverGapTop:b===h&&P===-1,dragOverGapBottom:b===h&&P===1};return g}function v(h){var c=h.data,n=h.expanded,r=h.selected,o=h.checked,l=h.loaded,x=h.loading,E=h.halfChecked,b=h.dragOver,P=h.dragOverGapTop,T=h.dragOverGapBottom,m=h.pos,g=h.active,s=Object(G.a)(Object(G.a)({},c),{},{expanded:n,selected:r,checked:o,loaded:l,loading:x,halfChecked:E,dragOver:b,dragOverGapTop:P,dragOverGapBottom:T,pos:m,active:g});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(O.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),h}}),s}},"8EBN":function(tn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";re.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var G=0;G-1&&z.substring(W+1,z.length);if(y)return re.findModeByExtension(y)},re.findModeByName=function(z){z=z.toLowerCase();for(var O=0;O0?_.a.createElement("span",null,"(\u5DF2\u62C6\u5206",je,"\u4E2Azip\u5305)"):"")}),Ye===(he==null?void 0:he.length)-1?U(ye,je>0?je+1:0):Pe>900*1024*1024?(je++,Pe=0,H(je,function(){Ye++,Ze()})):(Ye++,Ze());case 3:case"end":return Bt.stop()}},Pt)})),2600)});case 1:case"end":return pe.stop()}},Oe)})),Qe.apply(this,arguments)},Ze=function(){return Qe.apply(this,arguments)},he=ee||E,A(!0),Ye=0,Pe=0,je=0,ye=W.a.info({width:460,title:_.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u9644\u4EF6,",_.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:_.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",_.a.createElement("span",{className:"c-blue"},Ye+1),"/",he==null?void 0:he.length),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}}),Ze();case 9:case"end":return me.stop()}},q)}));return function(ee){return B.apply(this,arguments)}}(),K=function(q,ee,he,ye){var Ye=ee,Pe=new window.XMLHttpRequest;return Pe.withCredentials=!0,Pe.addEventListener("load",function(je){he(je,Pe)},!1),Pe.addEventListener("error",function(je){ye&&ye(je)},!1),Pe.responseType="blob",Pe.open("GET",Ye),Pe.send(null),Pe},H=function(q,ee){N.current.generateAsync({type:"blob"}).then(function(he){var ye=document.createElement("a");ye.href=window.URL.createObjectURL(he),ye.download=b+"-".concat(q)+".zip",document.body.appendChild(ye);var Ye=document.createEvent("MouseEvents");Ye.initEvent("click",!1,!1),ye.dispatchEvent(Ye),document.body.removeChild(ye),N.current=new h.a,ee()})},U=function(q,ee){N.current.generateAsync({type:"blob"}).then(function(he){var ye=document.createElement("a");ye.href=window.URL.createObjectURL(he),ee>0?ye.download=b+"-".concat(ee)+".zip":ye.download=b+".zip",document.body.appendChild(ye);var Ye=document.createEvent("MouseEvents");Ye.initEvent("click",!1,!1),ye.dispatchEvent(Ye),document.body.removeChild(ye),q.destroy(),A(!1),s(),N.current=new h.a})};return m?_.a.createElement(_.a.Fragment,null):_.a.createElement(G.a,Object(I.a)({},T,{onClick:function(){return j()},loading:S}),"\u4E0B\u8F7D")};Ce.a=Object(p.forwardRef)(n)},"8HAY":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return w}),M.d(Ce,"b",function(){return W});var re=M("pmY6"),G=M("MI8n"),I=function(){var y=function(L,R){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var _ in p)p.hasOwnProperty(_)&&(d[_]=p[_])},y(L,R)};return function(L,R){y(L,R);function d(){this.constructor=L}L.prototype=R===null?Object.create(R):(d.prototype=R.prototype,new d)}}(),z=function(y,L,R,d){function p(_){return _ instanceof R?_:new R(function(v){v(_)})}return new(R||(R=Promise))(function(_,v){function h(r){try{n(d.next(r))}catch(o){v(o)}}function c(r){try{n(d.throw(r))}catch(o){v(o)}}function n(r){r.done?_(r.value):p(r.value).then(h,c)}n((d=d.apply(y,L||[])).next())})},O=function(y,L){var R={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},d,p,_,v;return v={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function h(n){return function(r){return c([n,r])}}function c(n){if(d)throw new TypeError("Generator is already executing.");for(;R;)try{if(d=1,p&&(_=n[0]&2?p.return:n[0]?p.throw||((_=p.return)&&_.call(p),0):p.next)&&!(_=_.call(p,n[1])).done)return _;(p=0,_)&&(n=[n[0]&2,_.value]);switch(n[0]){case 0:case 1:_=n;break;case 4:return R.label++,{value:n[1],done:!1};case 5:R.label++,p=n[1],n=[0];continue;case 7:n=R.ops.pop(),R.trys.pop();continue;default:if(!(_=R.trys,_=_.length>0&&_[_.length-1])&&(n[0]===6||n[0]===2)){R=0;continue}if(n[0]===3&&(!_||n[1]>_[0]&&n[1]<_[3])){R.label=n[1];break}if(n[0]===6&&R.label<_[1]){R.label=_[1],_=n;break}if(_&&R.label<_[2]){R.label=_[2],R.ops.push(n);break}_[2]&&R.ops.pop(),R.trys.pop();continue}n=L.call(y,R)}catch(r){n=[6,r],p=0}finally{d=_=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}},w=function(y){I(L,y);function L(R,d,p,_,v){d===void 0&&(d=""),p===void 0&&(p=""),_===void 0&&(_=!0);var h=y.call(this)||this;return h._onDidChange=h._register(new G.a),h.onDidChange=h._onDidChange.event,h._enabled=!0,h._checked=!1,h._id=R,h._label=d,h._cssClass=p,h._enabled=_,h._actionCallback=v,h}return Object.defineProperty(L.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"label",{get:function(){return this._label},set:function(R){this._setLabel(R)},enumerable:!0,configurable:!0}),L.prototype._setLabel=function(R){this._label!==R&&(this._label=R,this._onDidChange.fire({label:R}))},Object.defineProperty(L.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(R){this._setTooltip(R)},enumerable:!0,configurable:!0}),L.prototype._setTooltip=function(R){this._tooltip!==R&&(this._tooltip=R,this._onDidChange.fire({tooltip:R}))},Object.defineProperty(L.prototype,"class",{get:function(){return this._cssClass},set:function(R){this._setClass(R)},enumerable:!0,configurable:!0}),L.prototype._setClass=function(R){this._cssClass!==R&&(this._cssClass=R,this._onDidChange.fire({class:R}))},Object.defineProperty(L.prototype,"enabled",{get:function(){return this._enabled},set:function(R){this._setEnabled(R)},enumerable:!0,configurable:!0}),L.prototype._setEnabled=function(R){this._enabled!==R&&(this._enabled=R,this._onDidChange.fire({enabled:R}))},Object.defineProperty(L.prototype,"checked",{get:function(){return this._checked},set:function(R){this._setChecked(R)},enumerable:!0,configurable:!0}),L.prototype._setChecked=function(R){this._checked!==R&&(this._checked=R,this._onDidChange.fire({checked:R}))},L.prototype.run=function(R,d){return this._actionCallback?this._actionCallback(R):Promise.resolve(!0)},L}(re.a),W=function(y){I(L,y);function L(){var R=y!==null&&y.apply(this,arguments)||this;return R._onDidBeforeRun=R._register(new G.a),R.onDidBeforeRun=R._onDidBeforeRun.event,R._onDidRun=R._register(new G.a),R.onDidRun=R._onDidRun.event,R}return L.prototype.run=function(R,d){return z(this,void 0,void 0,function(){var p,_;return O(this,function(v){switch(v.label){case 0:if(!R.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:R}),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this.runAction(R,d)];case 2:return p=v.sent(),this._onDidRun.fire({action:R,result:p}),[3,4];case 3:return _=v.sent(),this._onDidRun.fire({action:R,error:_}),[3,4];case 4:return[2]}})})},L.prototype.runAction=function(R,d){var p=d?R.run(d):R.run();return Promise.resolve(p)},L}(re.a)},"8hTe":function(tn,Ce,M){tn.exports={button:"button___1wy9m"}},"9Bee":function(tn,Ce,M){"use strict";var re=M("DYRE"),G=M("zeV3"),I=M("+L6B"),z=M("2/Rp"),O=M("k1fw"),w=M("9og8"),W=M("tJVT"),y=M("WmNS"),L=M.n(y),R=M("q1tI"),d=M.n(R),p=M("vg9a"),_=M("DlQD"),v=M.n(_),h=M("rUJ1");function c(Q,C){var k=Q.match(/^(\s+)(?:```)/);if(k===null)return C;var $=k[1];return C.split(` `).map(function(ne){var Y=ne.match(/^\s+/);if(Y===null)return ne;var we=Object(W.a)(Y,1),mt=we[0];return mt.length>=$.length?ne.slice($.length):ne}).join(` `)}var n=[],r=["
    "],o=new v.a.Renderer,l=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function x(){n.length=0,r=["
      "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function b(Q,C,k,$){if(C>=Q.length||Q[C].level<=k)return C;var ne=Q[C];$.push("
    • "+ne.text+""),C++;var Y=[];return C=b(Q,C,ne.level,Y),Y.length>0&&($.push("
        "),Y.forEach(function(we){$.push(we)}),$.push("
      ")),$.push("
    • "),C=b(Q,C,k,$),C}function P(){return b(n,0,0,r),r.push("
    "),r.join("")}var T={heading:function(C){var k=l.exec(C);if(k)return{type:"heading",raw:k[0],depth:k[1].length,text:k[2]}},fences:function(C){var k=this.rules.block.fences.exec(C);if(k){var $=k[0],ne=c($,k[3]||""),Y=k[2]?k[2].trim():k[2];if(["latex","katex","math"].indexOf(Y)>=0){var we=s(),mt=ne;ne=we,u[we]={type:"block",expression:mt}}return{type:"code",raw:$,lang:Y,text:ne}}}},m=/(?:\${2})([^\n`]+?)(?:\${2})/gi,g=0,s=function(){return"__special_katext_id_".concat(g++,"__")},u={};function D(){return u}function S(){g=0,u={}}function A(Q){return Q=Q.replace(m,function(C,k){var $=s();return u[$]={type:"inline",expression:k},$}),Q}var N=o.listitem;o.listitem=function(Q){return N(A(Q))};var j=o.paragraph;o.paragraph=function(Q){return j(A(Q))};var K=o.tablecell;o.tablecell=function(Q,C){return K(A(Q),C)},o.code=function(Q,C,k){var $=(C||"").match(/\S*/)[0];return $?["latex","katex","math"].indexOf($)>=0?"

    ".concat(Q,"

    "):'
    ').concat(k?Q:Object(h.escape)(Q,!0),`
    -`):'
    '+(k?Q:Object(h.escape)(Q,!0))+"
    "},o.heading=function(Q,C,k){var $=this.options.headerPrefix+k.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return n.push({anchor:$,level:C,text:Q}),"'+Q+""},v.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),v.a.use({tokenizer:T,renderer:o});var H=v.a,U=M("SJMd"),B=M("ulZh"),q=M.n(B),ee=M("m3rI"),he=M("Oy/b"),be=M("p5ED"),Ye=M("ErOA");/*! ***************************************************************************** +`):'
    '+(k?Q:Object(h.escape)(Q,!0))+"
    "},o.heading=function(Q,C,k){var $=this.options.headerPrefix+k.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return n.push({anchor:$,level:C,text:Q}),"'+Q+""},v.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),v.a.use({tokenizer:T,renderer:o});var H=v.a,U=M("SJMd"),B=M("ulZh"),q=M.n(B),ee=M("m3rI"),he=M("Oy/b"),ye=M("p5ED"),Ye=M("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -16,7 +16,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Pe=function(Q,C){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,$){k.__proto__=$}||function(k,$){for(var ne in $)Object.prototype.hasOwnProperty.call($,ne)&&(k[ne]=$[ne])})(Q,C)};function je(Q,C){function k(){this.constructor=Q}Pe(Q,C),Q.prototype=C===null?Object.create(C):(k.prototype=C.prototype,new k)}function Qe(Q,C,k,$){return new(k||(k=Promise))(function(ne,Y){function we(un){try{It($.next(un))}catch(Ot){Y(Ot)}}function mt(un){try{It($.throw(un))}catch(Ot){Y(Ot)}}function It(un){var Ot;un.done?ne(un.value):(Ot=un.value,Ot instanceof k?Ot:new k(function(bn){bn(Ot)})).then(we,mt)}It(($=$.apply(Q,C||[])).next())})}function Ze(Q,C){var k,$,ne,Y,we={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return Y={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function mt(It){return function(un){return function(Ot){if(k)throw new TypeError("Generator is already executing.");for(;we;)try{if(k=1,$&&(ne=2&Ot[0]?$.return:Ot[0]?$.throw||((ne=$.return)&&ne.call($),0):$.next)&&!(ne=ne.call($,Ot[1])).done)return ne;switch($=0,ne&&(Ot=[2&Ot[0],ne.value]),Ot[0]){case 0:case 1:ne=Ot;break;case 4:return we.label++,{value:Ot[1],done:!1};case 5:we.label++,$=Ot[1],Ot=[0];continue;case 7:Ot=we.ops.pop(),we.trys.pop();continue;default:if(!(ne=we.trys,(ne=ne.length>0&&ne[ne.length-1])||Ot[0]!==6&&Ot[0]!==2)){we=0;continue}if(Ot[0]===3&&(!ne||Ot[1]>ne[0]&&Ot[1]0&&ne[ne.length-1])||Ot[0]!==6&&Ot[0]!==2)){we=0;continue}if(Ot[0]===3&&(!ne||Ot[1]>ne[0]&&Ot[1]')||this;return we.colors=[],we.addTransparent=!1,we.colorBoxes=[],we.colors=$,we.currentColor=ne,we.setCurrentColor=we.setCurrentColor.bind(we),we.getColorBox=we.getColorBox.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.whiteSpace="nowrap",this.colors.forEach(function(ne){var Y=k.getColorBox(ne);$.appendChild(Y),k.colorBoxes.push(Y)}),$},C.prototype.getColorBox=function(k){var $=this,ne=this.uiStyleSettings.toolbarHeight/4,Y=this.uiStyleSettings.toolbarHeight-ne,we=document.createElement("div");we.style.display="inline-block",we.style.boxSizing="content-box",we.style.width=Y-2+"px",we.style.height=Y-2+"px",we.style.padding="1px",we.style.marginRight="2px",we.style.marginBottom="2px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderRadius=(Y+2)/2+"px",we.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){$.setCurrentColor(k,we)});var mt=document.createElement("div");return mt.style.display="inline-block",mt.style.width=Y-2+"px",mt.style.height=Y-2+"px",mt.style.backgroundColor=k,mt.style.borderRadius=Y/2+"px",k==="transparent"&&(mt.style.fill=this.uiStyleSettings.toolboxAccentColor,mt.innerHTML=` - `),we.appendChild(mt),we},C.prototype.setCurrentColor=function(k,$){var ne=this;this.currentColor=k,this.colorBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},C}(ue),We=function(){function Q(C,k,$){this._state="new",this._isSelected=!1,this._container=C,this._overlayContainer=k,this.globalSettings=$,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Q.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Q.prototype.ownsTarget=function(C){return!1},Object.defineProperty(Q.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Q.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Q.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Q.prototype.pointerDown=function(C,k){},Q.prototype.dblClick=function(C,k){},Q.prototype.manipulate=function(C){},Q.prototype.pointerUp=function(C){this.stateChanged()},Q.prototype.dispose=function(){},Q.prototype.addMarkerVisualToContainer=function(C){this.container.childNodes.length>0?this.container.insertBefore(C,this.container.childNodes[0]):this.container.appendChild(C)},Q.prototype.getState=function(){return{typeName:Q.typeName,state:this.state,notes:this.notes}},Q.prototype.restoreState=function(C){this._state=C.state,this.notes=C.notes},Q.prototype.scale=function(C,k){},Q.prototype.colorChanged=function(C){this.onColorChanged&&this.onColorChanged(C),this.stateChanged()},Q.prototype.fillColorChanged=function(C){this.onFillColorChanged&&this.onFillColorChanged(C),this.stateChanged()},Q.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var C=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),C.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(C)&&this.onStateChanged(this)}},Q.typeName="MarkerBase",Q}(),Ke=function(){function Q(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Q.prototype.findGripByVisual=function(C){return this.topLeft.ownsTarget(C)?this.topLeft:this.topCenter.ownsTarget(C)?this.topCenter:this.topRight.ownsTarget(C)?this.topRight:this.centerLeft.ownsTarget(C)?this.centerLeft:this.centerRight.ownsTarget(C)?this.centerRight:this.bottomLeft.ownsTarget(C)?this.bottomLeft:this.bottomCenter.ownsTarget(C)?this.bottomCenter:this.bottomRight.ownsTarget(C)?this.bottomRight:void 0},Q}(),Lt=function(){function Q(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Q.prototype.ownsTarget=function(C){return C===this.visual||C===this.visual.childNodes[0]||C===this.visual.childNodes[1]},Q}(),Kt=function(){function Q(){}return Q.toITransformMatrix=function(C){return{a:C.a,b:C.b,c:C.c,d:C.d,e:C.e,f:C.f}},Q.toSVGMatrix=function(C,k){return C.a=k.a,C.b=k.b,C.c=k.c,C.d=k.d,C.e=k.e,C.f=k.f,C},Q}(),Bt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.left=0,Y.top=0,Y.width=0,Y.height=0,Y.defaultSize={x:50,y:20},Y.offsetX=0,Y.offsetY=0,Y.rotationAngle=0,Y.CB_DISTANCE=10,Y._suppressMarkerCreateEvent=!1,Y.container.transform.baseVal.appendItem(me.createTransform()),Y.setupControlBox(),Y}return je(C,Q),Object.defineProperty(C.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var $=me.createTransform();this._visual.transform.baseVal.appendItem($)},enumerable:!1,configurable:!0}),C.prototype.ownsTarget=function(k){return!!Q.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ne=this.unrotatePoint(k);if(this.manipulationStartX=ne.x,this.manipulationStartY=ne.y,this.offsetX=ne.x-this.left,this.offsetY=ne.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual($),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($)){this.activeGrip=this.rotatorGrip;var Y=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Y.x-this.width/2,this.top=Y.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var we=this.container.transform.baseVal.getItem(0);we.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(we,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},C.prototype.pointerUp=function(k){var $=this.state;Q.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",$==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},C.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},C.prototype.manipulate=function(k){var $=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+($.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+($.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize($):this.state==="rotate"&&this.rotate(k)},C.prototype.resize=function(k){var $=this.manipulationStartLeft,ne=this.manipulationStartWidth,Y=this.manipulationStartTop,we=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:$=this.manipulationStartLeft+k.x-this.manipulationStartX,ne=this.manipulationStartWidth+this.manipulationStartLeft-$;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ne=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Y=this.manipulationStartTop+k.y-this.manipulationStartY,we=this.manipulationStartHeight+this.manipulationStartTop-Y;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:we=this.manipulationStartHeight+k.y-this.manipulationStartY}ne>=0?(this.left=$,this.width=ne):(this.left=$+ne,this.width=-ne),we>=0?(this.top=Y,this.height=we):(this.top=Y+we,this.height=-we),this.setSize()},C.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},C.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var $=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*$,this.applyRotation()}},C.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},C.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var $=this.container.getCTM(),ne=me.createPoint(k.x,k.y);return{x:(ne=ne.matrixTransform($)).x,y:ne.y}},C.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var $=this.container.getCTM();$=$.inverse();var ne=me.createPoint(k.x,k.y);return{x:(ne=ne.matrixTransform($)).x,y:ne.y}},C.prototype.select=function(){Q.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},C.prototype.deselect=function(){Q.prototype.deselect.call(this),this.controlBox.style.display="none"},C.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var k=me.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ke,this.addControlGrips(),this.controlBox.style.display="none"},C.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},C.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},C.prototype.createGrip=function(){var k=new Lt;return k.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(k.visual),k},C.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,$=-k/2,ne=$,Y=(this.width+this.CB_DISTANCE)/2-k/2,we=(this.height+this.CB_DISTANCE)/2-k/2,mt=this.height+this.CB_DISTANCE-k/2,It=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,$,ne),this.positionGrip(this.controlGrips.topCenter.visual,Y,ne),this.positionGrip(this.controlGrips.topRight.visual,It,ne),this.positionGrip(this.controlGrips.centerLeft.visual,$,we),this.positionGrip(this.controlGrips.centerRight.visual,It,we),this.positionGrip(this.controlGrips.bottomLeft.visual,$,mt),this.positionGrip(this.controlGrips.bottomCenter.visual,Y,mt),this.positionGrip(this.controlGrips.bottomRight.visual,It,mt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Y,ne-3*this.CB_DISTANCE)},C.prototype.positionGrip=function(k,$,ne){var Y=k.transform.baseVal.getItem(0);Y.setTranslate($,ne),k.transform.baseVal.replaceItem(Y,0)},C.prototype.hideControlBox=function(){this.controlBox.style.display="none"},C.prototype.showControlBox=function(){this.controlBox.style.display=""},C.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Kt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Kt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Q.prototype.getState.call(this))},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.left=$.left,this.top=$.top,this.width=$.width,this.height=$.height,this.rotationAngle=$.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,$.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,$.containerTransformMatrix))},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$);var ne=this.rotatePoint({x:this.left,y:this.top}),Y=this.unrotatePoint({x:ne.x*k,y:ne.y*$});this.left=Y.x,this.top=Y.y,this.width=this.width*k,this.height=this.height*$,this.adjustControlBox()},C}(We),kt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.fillColor="transparent",Y.strokeColor="transparent",Y.strokeWidth=0,Y.strokeDasharray="",Y.opacity=1,Y.setStrokeColor=Y.setStrokeColor.bind(Y),Y.setFillColor=Y.setFillColor.bind(Y),Y.setStrokeWidth=Y.setStrokeWidth.bind(Y),Y.setStrokeDasharray=Y.setStrokeDasharray.bind(Y),Y.createVisual=Y.createVisual.bind(Y),Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual)},C.prototype.createVisual=function(){this.visual=me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},C.prototype.manipulate=function(k){Q.prototype.manipulate.call(this,k)},C.prototype.resize=function(k){Q.prototype.resize.call(this,k),this.setSize()},C.prototype.setSize=function(){Q.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},C.prototype.pointerUp=function(k){Q.prototype.pointerUp.call(this,k),this.setSize()},C.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},C.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},C.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},C.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},C.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Q.prototype.getState.call(this))},C.prototype.restoreState=function(k){var $=k;this.fillColor=$.fillColor,this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.opacity=$.opacity,this.createVisual(),Q.prototype.restoreState.call(this,k),this.setSize()},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.setSize()},C.title="Rectangle marker",C}(Bt),Qt=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.widths=[],we.widthBoxes=[],we.widths=$,we.currentWidth=ne,we.setCurrentWidth=we.setCurrentWidth.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.widths.forEach(function(ne){var Y=document.createElement("div");Y.style.display="flex",Y.style.flexGrow="2",Y.style.alignItems="center",Y.style.justifyContent="space-between",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.borderColor=ne===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentWidth(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.innerText=ne.toString(),we.style.marginRight="5px",Y.appendChild(we);var mt=document.createElement("div");mt.style.minHeight="20px",mt.style.flexGrow="2",mt.style.display="flex",mt.style.alignItems="center";var It=document.createElement("hr");It.style.minWidth="20px",It.style.border="0px",It.style.borderTop=ne+"px solid "+k.uiStyleSettings.toolboxColor,It.style.flexGrow="2",mt.appendChild(It),Y.appendChild(mt),k.widthBoxes.push(Y)}),$},C.prototype.setCurrentWidth=function(k,$){var ne=this;this.currentWidth=k,this.widthBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},C}(ue),hn=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.styles=[],we.styleBoxes=[],we.styles=$,we.currentStyle=ne,we.setCurrentStyle=we.setCurrentStyle.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.styles.forEach(function(ne){var Y=document.createElement("div");Y.style.display="flex",Y.style.alignItems="center",Y.style.justifyContent="space-between",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.overflow="hidden",Y.style.maxWidth=100/k.styles.length-5+"%",Y.style.borderColor=ne===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentStyle(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.overflow="hidden";var mt=` + `),we.appendChild(mt),we},C.prototype.setCurrentColor=function(k,$){var ne=this;this.currentColor=k,this.colorBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},C}(ue),We=function(){function Q(C,k,$){this._state="new",this._isSelected=!1,this._container=C,this._overlayContainer=k,this.globalSettings=$,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Q.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Q.prototype.ownsTarget=function(C){return!1},Object.defineProperty(Q.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Q.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Q.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Q.prototype.pointerDown=function(C,k){},Q.prototype.dblClick=function(C,k){},Q.prototype.manipulate=function(C){},Q.prototype.pointerUp=function(C){this.stateChanged()},Q.prototype.dispose=function(){},Q.prototype.addMarkerVisualToContainer=function(C){this.container.childNodes.length>0?this.container.insertBefore(C,this.container.childNodes[0]):this.container.appendChild(C)},Q.prototype.getState=function(){return{typeName:Q.typeName,state:this.state,notes:this.notes}},Q.prototype.restoreState=function(C){this._state=C.state,this.notes=C.notes},Q.prototype.scale=function(C,k){},Q.prototype.colorChanged=function(C){this.onColorChanged&&this.onColorChanged(C),this.stateChanged()},Q.prototype.fillColorChanged=function(C){this.onFillColorChanged&&this.onFillColorChanged(C),this.stateChanged()},Q.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var C=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),C.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(C)&&this.onStateChanged(this)}},Q.typeName="MarkerBase",Q}(),Ke=function(){function Q(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Q.prototype.findGripByVisual=function(C){return this.topLeft.ownsTarget(C)?this.topLeft:this.topCenter.ownsTarget(C)?this.topCenter:this.topRight.ownsTarget(C)?this.topRight:this.centerLeft.ownsTarget(C)?this.centerLeft:this.centerRight.ownsTarget(C)?this.centerRight:this.bottomLeft.ownsTarget(C)?this.bottomLeft:this.bottomCenter.ownsTarget(C)?this.bottomCenter:this.bottomRight.ownsTarget(C)?this.bottomRight:void 0},Q}(),Pt=function(){function Q(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Q.prototype.ownsTarget=function(C){return C===this.visual||C===this.visual.childNodes[0]||C===this.visual.childNodes[1]},Q}(),Kt=function(){function Q(){}return Q.toITransformMatrix=function(C){return{a:C.a,b:C.b,c:C.c,d:C.d,e:C.e,f:C.f}},Q.toSVGMatrix=function(C,k){return C.a=k.a,C.b=k.b,C.c=k.c,C.d=k.d,C.e=k.e,C.f=k.f,C},Q}(),Bt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.left=0,Y.top=0,Y.width=0,Y.height=0,Y.defaultSize={x:50,y:20},Y.offsetX=0,Y.offsetY=0,Y.rotationAngle=0,Y.CB_DISTANCE=10,Y._suppressMarkerCreateEvent=!1,Y.container.transform.baseVal.appendItem(me.createTransform()),Y.setupControlBox(),Y}return je(C,Q),Object.defineProperty(C.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var $=me.createTransform();this._visual.transform.baseVal.appendItem($)},enumerable:!1,configurable:!0}),C.prototype.ownsTarget=function(k){return!!Q.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ne=this.unrotatePoint(k);if(this.manipulationStartX=ne.x,this.manipulationStartY=ne.y,this.offsetX=ne.x-this.left,this.offsetY=ne.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual($),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($)){this.activeGrip=this.rotatorGrip;var Y=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Y.x-this.width/2,this.top=Y.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var we=this.container.transform.baseVal.getItem(0);we.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(we,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},C.prototype.pointerUp=function(k){var $=this.state;Q.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",$==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},C.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},C.prototype.manipulate=function(k){var $=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+($.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+($.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize($):this.state==="rotate"&&this.rotate(k)},C.prototype.resize=function(k){var $=this.manipulationStartLeft,ne=this.manipulationStartWidth,Y=this.manipulationStartTop,we=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:$=this.manipulationStartLeft+k.x-this.manipulationStartX,ne=this.manipulationStartWidth+this.manipulationStartLeft-$;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ne=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Y=this.manipulationStartTop+k.y-this.manipulationStartY,we=this.manipulationStartHeight+this.manipulationStartTop-Y;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:we=this.manipulationStartHeight+k.y-this.manipulationStartY}ne>=0?(this.left=$,this.width=ne):(this.left=$+ne,this.width=-ne),we>=0?(this.top=Y,this.height=we):(this.top=Y+we,this.height=-we),this.setSize()},C.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},C.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var $=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*$,this.applyRotation()}},C.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},C.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var $=this.container.getCTM(),ne=me.createPoint(k.x,k.y);return{x:(ne=ne.matrixTransform($)).x,y:ne.y}},C.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var $=this.container.getCTM();$=$.inverse();var ne=me.createPoint(k.x,k.y);return{x:(ne=ne.matrixTransform($)).x,y:ne.y}},C.prototype.select=function(){Q.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},C.prototype.deselect=function(){Q.prototype.deselect.call(this),this.controlBox.style.display="none"},C.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var k=me.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ke,this.addControlGrips(),this.controlBox.style.display="none"},C.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},C.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},C.prototype.createGrip=function(){var k=new Pt;return k.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(k.visual),k},C.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,$=-k/2,ne=$,Y=(this.width+this.CB_DISTANCE)/2-k/2,we=(this.height+this.CB_DISTANCE)/2-k/2,mt=this.height+this.CB_DISTANCE-k/2,It=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,$,ne),this.positionGrip(this.controlGrips.topCenter.visual,Y,ne),this.positionGrip(this.controlGrips.topRight.visual,It,ne),this.positionGrip(this.controlGrips.centerLeft.visual,$,we),this.positionGrip(this.controlGrips.centerRight.visual,It,we),this.positionGrip(this.controlGrips.bottomLeft.visual,$,mt),this.positionGrip(this.controlGrips.bottomCenter.visual,Y,mt),this.positionGrip(this.controlGrips.bottomRight.visual,It,mt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Y,ne-3*this.CB_DISTANCE)},C.prototype.positionGrip=function(k,$,ne){var Y=k.transform.baseVal.getItem(0);Y.setTranslate($,ne),k.transform.baseVal.replaceItem(Y,0)},C.prototype.hideControlBox=function(){this.controlBox.style.display="none"},C.prototype.showControlBox=function(){this.controlBox.style.display=""},C.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Kt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Kt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Q.prototype.getState.call(this))},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.left=$.left,this.top=$.top,this.width=$.width,this.height=$.height,this.rotationAngle=$.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,$.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,$.containerTransformMatrix))},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$);var ne=this.rotatePoint({x:this.left,y:this.top}),Y=this.unrotatePoint({x:ne.x*k,y:ne.y*$});this.left=Y.x,this.top=Y.y,this.width=this.width*k,this.height=this.height*$,this.adjustControlBox()},C}(We),kt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.fillColor="transparent",Y.strokeColor="transparent",Y.strokeWidth=0,Y.strokeDasharray="",Y.opacity=1,Y.setStrokeColor=Y.setStrokeColor.bind(Y),Y.setFillColor=Y.setFillColor.bind(Y),Y.setStrokeWidth=Y.setStrokeWidth.bind(Y),Y.setStrokeDasharray=Y.setStrokeDasharray.bind(Y),Y.createVisual=Y.createVisual.bind(Y),Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual)},C.prototype.createVisual=function(){this.visual=me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},C.prototype.manipulate=function(k){Q.prototype.manipulate.call(this,k)},C.prototype.resize=function(k){Q.prototype.resize.call(this,k),this.setSize()},C.prototype.setSize=function(){Q.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},C.prototype.pointerUp=function(k){Q.prototype.pointerUp.call(this,k),this.setSize()},C.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},C.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},C.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},C.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},C.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Q.prototype.getState.call(this))},C.prototype.restoreState=function(k){var $=k;this.fillColor=$.fillColor,this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.opacity=$.opacity,this.createVisual(),Q.prototype.restoreState.call(this,k),this.setSize()},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.setSize()},C.title="Rectangle marker",C}(Bt),Qt=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.widths=[],we.widthBoxes=[],we.widths=$,we.currentWidth=ne,we.setCurrentWidth=we.setCurrentWidth.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.widths.forEach(function(ne){var Y=document.createElement("div");Y.style.display="flex",Y.style.flexGrow="2",Y.style.alignItems="center",Y.style.justifyContent="space-between",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.borderColor=ne===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentWidth(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.innerText=ne.toString(),we.style.marginRight="5px",Y.appendChild(we);var mt=document.createElement("div");mt.style.minHeight="20px",mt.style.flexGrow="2",mt.style.display="flex",mt.style.alignItems="center";var It=document.createElement("hr");It.style.minWidth="20px",It.style.border="0px",It.style.borderTop=ne+"px solid "+k.uiStyleSettings.toolboxColor,It.style.flexGrow="2",mt.appendChild(It),Y.appendChild(mt),k.widthBoxes.push(Y)}),$},C.prototype.setCurrentWidth=function(k,$){var ne=this;this.currentWidth=k,this.widthBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},C}(ue),fn=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.styles=[],we.styleBoxes=[],we.styles=$,we.currentStyle=ne,we.setCurrentStyle=we.setCurrentStyle.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.styles.forEach(function(ne){var Y=document.createElement("div");Y.style.display="flex",Y.style.alignItems="center",Y.style.justifyContent="space-between",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.overflow="hidden",Y.style.maxWidth=100/k.styles.length-5+"%",Y.style.borderColor=ne===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentStyle(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.overflow="hidden";var mt=` - `;we.innerHTML=mt,Y.appendChild(we),k.styleBoxes.push(Y)}),$},C.prototype.setCurrentStyle=function(k,$){var ne=this;this.currentStyle=k,this.styleBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},C}(ue),qe=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokeColor=ne.defaultColor,Y.strokeWidth=ne.defaultStrokeWidth,Y.strokeDasharray=ne.defaultStrokeDasharray,Y.strokePanel=new Ee("Line color",ne.defaultColorSet,ne.defaultColor),Y.strokePanel.onColorChanged=Y.setStrokeColor,Y.strokeWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.strokeWidthPanel.onWidthChanged=Y.setStrokeWidth,Y.strokeStylePanel=new hn("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Y.strokeStylePanel.onStyleChanged=Y.setStrokeDasharray,Y}return je(C,Q),Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="FrameMarker",C.title="Frame marker",C.icon='',C}(kt),Ue=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},vt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.x1=0,Y.y1=0,Y.x2=0,Y.y2=0,Y.defaultLength=50,Y.manipulationStartX=0,Y.manipulationStartY=0,Y.manipulationStartX1=0,Y.manipulationStartY1=0,Y.manipulationStartX2=0,Y.manipulationStartY2=0,Y.setupControlBox(),Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!!Q.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget($)?this.activeGrip=this.grip1:this.grip2.ownsTarget($)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},C.prototype.pointerUp=function(k){var $=this.state;Q.prototype.pointerUp.call(this,k),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(k),this._state="select",$==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},C.prototype.adjustVisual=function(){},C.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},C.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},C.prototype.select=function(){Q.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},C.prototype.deselect=function(){Q.prototype.deselect.call(this),this.controlBox.style.display="none"},C.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},C.prototype.adjustControlBox=function(){this.positionGrips()},C.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},C.prototype.createGrip=function(){var k=new Lt;return k.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(k.visual),k},C.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},C.prototype.positionGrip=function(k,$,ne){var Y=k.transform.baseVal.getItem(0);Y.setTranslate($,ne),k.transform.baseVal.replaceItem(Y,0)},C.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Q.prototype.getState.call(this))},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.x1=$.x1,this.y1=$.y1,this.x2=$.x2,this.y2=$.y2},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.x1=this.x1*k,this.y1=this.y1*$,this.x2=this.x2*k,this.y2=this.y2*$,this.adjustVisual(),this.adjustControlBox()},C}(We),Mt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokeColor="transparent",Y.strokeWidth=0,Y.strokeDasharray="",Y.setStrokeColor=Y.setStrokeColor.bind(Y),Y.setStrokeWidth=Y.setStrokeWidth.bind(Y),Y.setStrokeDasharray=Y.setStrokeDasharray.bind(Y),Y.strokeColor=ne.defaultColor,Y.strokeWidth=ne.defaultStrokeWidth,Y.strokeDasharray=ne.defaultStrokeDasharray,Y.strokePanel=new Ee("Line color",ne.defaultColorSet,ne.defaultColor),Y.strokePanel.onColorChanged=Y.setStrokeColor,Y.strokeWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.strokeWidthPanel.onWidthChanged=Y.setStrokeWidth,Y.strokeStylePanel=new hn("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Y.strokeStylePanel.onStyleChanged=Y.setStrokeDasharray,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},C.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},C.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},C.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},C.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.createVisual(),this.adjustVisual()},C.typeName="LineMarker",C.title="Line marker",C.icon='',C}(vt),st=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.fonts=[],we.fontBoxes=[],we.fonts=$,we.currentFont=ne,we.setCurrentFont=we.setCurrentFont.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.flexGrow="2",this.fonts.forEach(function(ne){var Y=document.createElement("div");Y.style.display="inline-block",Y.style.alignItems="center",Y.style.justifyContent="space-between",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.overflow="hidden",Y.style.maxWidth=100/k.fonts.length-5+"%",Y.style.borderColor=ne===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentFont(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.style.display="flex",we.style.minHeight="20px",we.style.flexGrow="2",we.style.fontFamily=ne,we.style.overflow="hidden";var mt=document.createElement("div");mt.style.whiteSpace="nowrap",mt.style.overflow="hidden",mt.style.textOverflow="ellipsis",mt.innerHTML="The quick brown fox jumps over the lazy dog",we.appendChild(mt),Y.appendChild(we),k.fontBoxes.push(Y)}),$},C.prototype.setCurrentFont=function(k,$){var ne=this;this.currentFont=k,this.fontBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},C}(ue),Ct=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.color="transparent",Y.padding=5,Y.DEFAULT_TEXT="your text here",Y.text=Y.DEFAULT_TEXT,Y.isMoved=!1,Y.color=ne.defaultColor,Y.fontFamily=ne.defaultFontFamily,Y.defaultSize={x:100,y:30},Y.setColor=Y.setColor.bind(Y),Y.setFont=Y.setFont.bind(Y),Y.renderText=Y.renderText.bind(Y),Y.sizeText=Y.sizeText.bind(Y),Y.textEditDivClicked=Y.textEditDivClicked.bind(Y),Y.showTextEditor=Y.showTextEditor.bind(Y),Y.setSize=Y.setSize.bind(Y),Y.positionTextEditor=Y.positionTextEditor.bind(Y),Y.colorPanel=new Ee("Color",ne.defaultColorSet,ne.defaultColor),Y.colorPanel.onColorChanged=Y.setColor,Y.fontFamilyPanel=new st("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Y.fontFamilyPanel.onFontChanged=Y.setFont,Y}return je(C,Q),C.prototype.ownsTarget=function(k){if(Q.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var $=!1;return this.textElement.childNodes.forEach(function(ne){ne===k&&($=!0)}),$},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},C.prototype.renderText=function(){var k=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function($){k.textElement.appendChild(me.createTSpan($.trim()===""?" ":$.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},C.prototype.getTextScale=function(){var k=this.textElement.getBBox(),$=1;if(k.width>0&&k.height>0){var ne=(1*this.width-this.width*this.padding*2/100)/k.width,Y=(1*this.height-this.height*this.padding*2/100)/k.height;$=Math.min(ne,Y)}return $},C.prototype.getTextPosition=function(k){var $=this.textElement.getBBox(),ne=0,Y=0;return $.width>0&&$.height>0&&(ne=(this.width-$.width*k)/2,Y=this.height/2-$.height*k/2),{x:ne,y:Y}},C.prototype.sizeText=function(){var k=this.textElement.getBBox(),$=this.getTextScale(),ne=this.getTextPosition($);ne.y-=k.y*$,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ne.x+"px, "+ne.y+"px) scale("+$+", "+$+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ne.x,ne.y),this.textElement.transform.baseVal.getItem(1).setScale($,$))},C.prototype.manipulate=function(k){Q.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},C.prototype.resize=function(k){Q.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},C.prototype.setSize=function(){Q.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},C.prototype.pointerUp=function(k){var $=this.state;$==="creating"&&(this._suppressMarkerCreateEvent=!0),Q.prototype.pointerUp.call(this,k),this.setSize(),($==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},C.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function($){$.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var $=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&$>.9;)$-=.1,k.textEditor.style.fontSize=Math.max($,.9)+"em"}),this.textEditor.addEventListener("keyup",function($){$.cancelBubble=!0}),this.textEditor.addEventListener("paste",function($){if($.clipboardData){var ne=$.clipboardData.getData("text"),Y=window.getSelection();if(!Y.rangeCount)return!1;Y.deleteFromDocument(),Y.getRangeAt(0).insertNode(document.createTextNode(ne)),$.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},C.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),$=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ne=this.textElement.getBBox(),Y={x:ne.width*k,y:ne.height*k};$.x-=Y.x/2,$.y-=Y.y/2,this.textEditor.style.top=$.y+"px",this.textEditor.style.left=$.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-$.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},C.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},C.prototype.select=function(){Q.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},C.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Q.prototype.deselect.call(this)},C.prototype.dblClick=function(k,$){Q.prototype.dblClick.call(this,k,$),this.showTextEditor()},C.prototype.setColor=function(k){this.textElement&&me.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},C.prototype.setFont=function(k){this.textElement&&me.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},C.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},C.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){var $=k;this.color=$.color,this.fontFamily=$.fontFamily,this.padding=$.padding,this.text=$.text,this.createVisual(),Q.prototype.restoreState.call(this,k),this.setSize()},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.setSize(),this.sizeText(),this.positionTextEditor()},C.typeName="TextMarker",C.title="Text marker",C.icon='',C}(Bt),Ne=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.color="transparent",Y.lineWidth=3,Y.drawing=!1,Y.pixelRatio=1,Y.color=ne.defaultColor,Y.lineWidth=ne.defaultStrokeWidth,Y.pixelRatio=ne.freehandPixelRatio,Y.setColor=Y.setColor.bind(Y),Y.addCanvas=Y.addCanvas.bind(Y),Y.finishCreation=Y.finishCreation.bind(Y),Y.setLineWidth=Y.setLineWidth.bind(Y),Y.colorPanel=new Ee("Color",ne.defaultColorSet,ne.defaultColor),Y.colorPanel.onColorChanged=Y.setColor,Y.lineWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.lineWidthPanel.onWidthChanged=Y.setLineWidth,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var k=me.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(k.x,k.y),this.drawing=!0):Q.prototype.pointerDown.call(this,k,$)},C.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):Q.prototype.manipulate.call(this,k)},C.prototype.resize=function(k){Q.prototype.resize.call(this,k),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},C.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Q.prototype.pointerUp.call(this,k)},C.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},C.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Q.prototype.select.call(this)},C.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Q.prototype.deselect.call(this)},C.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),$=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ne=$[0],Y=$[1],we=$[2],mt=$[3],It=!1,un=0;un0&&(It=!0,unmt&&(mt=un),Ot>we&&(we=Ot));if(It){this.left=ne/this.pixelRatio,this.top=Y/this.pixelRatio,this.width=(we-ne)/this.pixelRatio,this.height=(mt-Y)/this.pixelRatio;var bn=document.createElement("canvas");bn.width=we-ne,bn.height=mt-Y,bn.getContext("2d").putImageData(this.canvasContext.getImageData(ne,Y,we-ne,mt-Y),0,0),this.drawingImgUrl=bn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},C.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},C.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},C.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){this.createVisual(),Q.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.setDrawingImage()},C.typeName="FreehandMarker",C.title="Freehand marker",C.icon='',C}(Bt),Se=function(Q){function C(k,$,ne){var Y=Q.call(this,k,ne||'')||this;return Y.typeBoxes=[],Y.currentType=$,Y.setCurrentType=Y.setCurrentType.bind(Y),Y}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");$.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2";for(var ne=function(mt){var It="both";switch(mt){case 0:It="both";break;case 1:It="start";break;case 2:It="end";break;case 3:It="none"}var un=document.createElement("div");if(un.style.display="flex",un.style.flexGrow="2",un.style.alignItems="center",un.style.justifyContent="space-between",un.style.padding="5px",un.style.borderWidth="2px",un.style.borderStyle="solid",un.style.borderColor=It===Y.currentType?Y.uiStyleSettings.toolboxAccentColor:"transparent",un.addEventListener("click",function(){k.setCurrentType(It,un)}),$.appendChild(un),It==="both"||It==="start"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.innerHTML=` + `;we.innerHTML=mt,Y.appendChild(we),k.styleBoxes.push(Y)}),$},C.prototype.setCurrentStyle=function(k,$){var ne=this;this.currentStyle=k,this.styleBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},C}(ue),qe=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokeColor=ne.defaultColor,Y.strokeWidth=ne.defaultStrokeWidth,Y.strokeDasharray=ne.defaultStrokeDasharray,Y.strokePanel=new Ee("Line color",ne.defaultColorSet,ne.defaultColor),Y.strokePanel.onColorChanged=Y.setStrokeColor,Y.strokeWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.strokeWidthPanel.onWidthChanged=Y.setStrokeWidth,Y.strokeStylePanel=new fn("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Y.strokeStylePanel.onStyleChanged=Y.setStrokeDasharray,Y}return je(C,Q),Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="FrameMarker",C.title="Frame marker",C.icon='',C}(kt),Ue=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},vt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.x1=0,Y.y1=0,Y.x2=0,Y.y2=0,Y.defaultLength=50,Y.manipulationStartX=0,Y.manipulationStartY=0,Y.manipulationStartX1=0,Y.manipulationStartY1=0,Y.manipulationStartX2=0,Y.manipulationStartY2=0,Y.setupControlBox(),Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!!Q.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget($)?this.activeGrip=this.grip1:this.grip2.ownsTarget($)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},C.prototype.pointerUp=function(k){var $=this.state;Q.prototype.pointerUp.call(this,k),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(k),this._state="select",$==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},C.prototype.adjustVisual=function(){},C.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},C.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},C.prototype.select=function(){Q.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},C.prototype.deselect=function(){Q.prototype.deselect.call(this),this.controlBox.style.display="none"},C.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},C.prototype.adjustControlBox=function(){this.positionGrips()},C.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},C.prototype.createGrip=function(){var k=new Pt;return k.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(k.visual),k},C.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},C.prototype.positionGrip=function(k,$,ne){var Y=k.transform.baseVal.getItem(0);Y.setTranslate($,ne),k.transform.baseVal.replaceItem(Y,0)},C.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Q.prototype.getState.call(this))},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.x1=$.x1,this.y1=$.y1,this.x2=$.x2,this.y2=$.y2},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.x1=this.x1*k,this.y1=this.y1*$,this.x2=this.x2*k,this.y2=this.y2*$,this.adjustVisual(),this.adjustControlBox()},C}(We),Mt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokeColor="transparent",Y.strokeWidth=0,Y.strokeDasharray="",Y.setStrokeColor=Y.setStrokeColor.bind(Y),Y.setStrokeWidth=Y.setStrokeWidth.bind(Y),Y.setStrokeDasharray=Y.setStrokeDasharray.bind(Y),Y.strokeColor=ne.defaultColor,Y.strokeWidth=ne.defaultStrokeWidth,Y.strokeDasharray=ne.defaultStrokeDasharray,Y.strokePanel=new Ee("Line color",ne.defaultColorSet,ne.defaultColor),Y.strokePanel.onColorChanged=Y.setStrokeColor,Y.strokeWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.strokeWidthPanel.onWidthChanged=Y.setStrokeWidth,Y.strokeStylePanel=new fn("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Y.strokeStylePanel.onStyleChanged=Y.setStrokeDasharray,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},C.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},C.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},C.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},C.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.createVisual(),this.adjustVisual()},C.typeName="LineMarker",C.title="Line marker",C.icon='',C}(vt),st=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.fonts=[],we.fontBoxes=[],we.fonts=$,we.currentFont=ne,we.setCurrentFont=we.setCurrentFont.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.flexGrow="2",this.fonts.forEach(function(ne){var Y=document.createElement("div");Y.style.display="inline-block",Y.style.alignItems="center",Y.style.justifyContent="space-between",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.overflow="hidden",Y.style.maxWidth=100/k.fonts.length-5+"%",Y.style.borderColor=ne===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentFont(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.style.display="flex",we.style.minHeight="20px",we.style.flexGrow="2",we.style.fontFamily=ne,we.style.overflow="hidden";var mt=document.createElement("div");mt.style.whiteSpace="nowrap",mt.style.overflow="hidden",mt.style.textOverflow="ellipsis",mt.innerHTML="The quick brown fox jumps over the lazy dog",we.appendChild(mt),Y.appendChild(we),k.fontBoxes.push(Y)}),$},C.prototype.setCurrentFont=function(k,$){var ne=this;this.currentFont=k,this.fontBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},C}(ue),Ct=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.color="transparent",Y.padding=5,Y.DEFAULT_TEXT="your text here",Y.text=Y.DEFAULT_TEXT,Y.isMoved=!1,Y.color=ne.defaultColor,Y.fontFamily=ne.defaultFontFamily,Y.defaultSize={x:100,y:30},Y.setColor=Y.setColor.bind(Y),Y.setFont=Y.setFont.bind(Y),Y.renderText=Y.renderText.bind(Y),Y.sizeText=Y.sizeText.bind(Y),Y.textEditDivClicked=Y.textEditDivClicked.bind(Y),Y.showTextEditor=Y.showTextEditor.bind(Y),Y.setSize=Y.setSize.bind(Y),Y.positionTextEditor=Y.positionTextEditor.bind(Y),Y.colorPanel=new Ee("Color",ne.defaultColorSet,ne.defaultColor),Y.colorPanel.onColorChanged=Y.setColor,Y.fontFamilyPanel=new st("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Y.fontFamilyPanel.onFontChanged=Y.setFont,Y}return je(C,Q),C.prototype.ownsTarget=function(k){if(Q.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var $=!1;return this.textElement.childNodes.forEach(function(ne){ne===k&&($=!0)}),$},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},C.prototype.renderText=function(){var k=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function($){k.textElement.appendChild(me.createTSpan($.trim()===""?" ":$.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},C.prototype.getTextScale=function(){var k=this.textElement.getBBox(),$=1;if(k.width>0&&k.height>0){var ne=(1*this.width-this.width*this.padding*2/100)/k.width,Y=(1*this.height-this.height*this.padding*2/100)/k.height;$=Math.min(ne,Y)}return $},C.prototype.getTextPosition=function(k){var $=this.textElement.getBBox(),ne=0,Y=0;return $.width>0&&$.height>0&&(ne=(this.width-$.width*k)/2,Y=this.height/2-$.height*k/2),{x:ne,y:Y}},C.prototype.sizeText=function(){var k=this.textElement.getBBox(),$=this.getTextScale(),ne=this.getTextPosition($);ne.y-=k.y*$,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ne.x+"px, "+ne.y+"px) scale("+$+", "+$+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ne.x,ne.y),this.textElement.transform.baseVal.getItem(1).setScale($,$))},C.prototype.manipulate=function(k){Q.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},C.prototype.resize=function(k){Q.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},C.prototype.setSize=function(){Q.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},C.prototype.pointerUp=function(k){var $=this.state;$==="creating"&&(this._suppressMarkerCreateEvent=!0),Q.prototype.pointerUp.call(this,k),this.setSize(),($==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},C.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function($){$.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var $=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&$>.9;)$-=.1,k.textEditor.style.fontSize=Math.max($,.9)+"em"}),this.textEditor.addEventListener("keyup",function($){$.cancelBubble=!0}),this.textEditor.addEventListener("paste",function($){if($.clipboardData){var ne=$.clipboardData.getData("text"),Y=window.getSelection();if(!Y.rangeCount)return!1;Y.deleteFromDocument(),Y.getRangeAt(0).insertNode(document.createTextNode(ne)),$.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},C.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),$=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ne=this.textElement.getBBox(),Y={x:ne.width*k,y:ne.height*k};$.x-=Y.x/2,$.y-=Y.y/2,this.textEditor.style.top=$.y+"px",this.textEditor.style.left=$.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-$.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},C.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},C.prototype.select=function(){Q.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},C.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Q.prototype.deselect.call(this)},C.prototype.dblClick=function(k,$){Q.prototype.dblClick.call(this,k,$),this.showTextEditor()},C.prototype.setColor=function(k){this.textElement&&me.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},C.prototype.setFont=function(k){this.textElement&&me.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},C.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},C.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){var $=k;this.color=$.color,this.fontFamily=$.fontFamily,this.padding=$.padding,this.text=$.text,this.createVisual(),Q.prototype.restoreState.call(this,k),this.setSize()},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.setSize(),this.sizeText(),this.positionTextEditor()},C.typeName="TextMarker",C.title="Text marker",C.icon='',C}(Bt),Ne=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.color="transparent",Y.lineWidth=3,Y.drawing=!1,Y.pixelRatio=1,Y.color=ne.defaultColor,Y.lineWidth=ne.defaultStrokeWidth,Y.pixelRatio=ne.freehandPixelRatio,Y.setColor=Y.setColor.bind(Y),Y.addCanvas=Y.addCanvas.bind(Y),Y.finishCreation=Y.finishCreation.bind(Y),Y.setLineWidth=Y.setLineWidth.bind(Y),Y.colorPanel=new Ee("Color",ne.defaultColorSet,ne.defaultColor),Y.colorPanel.onColorChanged=Y.setColor,Y.lineWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.lineWidthPanel.onWidthChanged=Y.setLineWidth,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var k=me.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(k.x,k.y),this.drawing=!0):Q.prototype.pointerDown.call(this,k,$)},C.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):Q.prototype.manipulate.call(this,k)},C.prototype.resize=function(k){Q.prototype.resize.call(this,k),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},C.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Q.prototype.pointerUp.call(this,k)},C.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},C.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Q.prototype.select.call(this)},C.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Q.prototype.deselect.call(this)},C.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),$=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ne=$[0],Y=$[1],we=$[2],mt=$[3],It=!1,ln=0;ln0&&(It=!0,lnmt&&(mt=ln),Ot>we&&(we=Ot));if(It){this.left=ne/this.pixelRatio,this.top=Y/this.pixelRatio,this.width=(we-ne)/this.pixelRatio,this.height=(mt-Y)/this.pixelRatio;var yn=document.createElement("canvas");yn.width=we-ne,yn.height=mt-Y,yn.getContext("2d").putImageData(this.canvasContext.getImageData(ne,Y,we-ne,mt-Y),0,0),this.drawingImgUrl=yn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},C.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},C.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},C.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){this.createVisual(),Q.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},C.prototype.scale=function(k,$){Q.prototype.scale.call(this,k,$),this.setDrawingImage()},C.typeName="FreehandMarker",C.title="Freehand marker",C.icon='',C}(Bt),Se=function(Q){function C(k,$,ne){var Y=Q.call(this,k,ne||'')||this;return Y.typeBoxes=[],Y.currentType=$,Y.setCurrentType=Y.setCurrentType.bind(Y),Y}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");$.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2";for(var ne=function(mt){var It="both";switch(mt){case 0:It="both";break;case 1:It="start";break;case 2:It="end";break;case 3:It="none"}var ln=document.createElement("div");if(ln.style.display="flex",ln.style.flexGrow="2",ln.style.alignItems="center",ln.style.justifyContent="space-between",ln.style.padding="5px",ln.style.borderWidth="2px",ln.style.borderStyle="solid",ln.style.borderColor=It===Y.currentType?Y.uiStyleSettings.toolboxAccentColor:"transparent",ln.addEventListener("click",function(){k.setCurrentType(It,ln)}),$.appendChild(ln),It==="both"||It==="start"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.innerHTML=` - `,Ot.style.marginLeft="5px",un.appendChild(Ot)}var bn=document.createElement("div");bn.style.display="flex",bn.style.alignItems="center",bn.style.minHeight="20px",bn.style.flexGrow="2";var En=document.createElement("hr");if(En.style.minWidth="20px",En.style.border="0px",En.style.borderTop="3px solid "+(Y.uiStyleSettings!==void 0?Y.uiStyleSettings.toolboxColor:"#eeeeee"),En.style.flexGrow="2",bn.appendChild(En),un.appendChild(bn),It==="both"||It==="end"){var On=document.createElement("div");On.style.display="flex",On.style.alignItems="center",On.style.minHeight="20px",On.innerHTML=` + `,Ot.style.marginLeft="5px",ln.appendChild(Ot)}var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.style.flexGrow="2";var bn=document.createElement("hr");if(bn.style.minWidth="20px",bn.style.border="0px",bn.style.borderTop="3px solid "+(Y.uiStyleSettings!==void 0?Y.uiStyleSettings.toolboxColor:"#eeeeee"),bn.style.flexGrow="2",yn.appendChild(bn),ln.appendChild(yn),It==="both"||It==="end"){var Tn=document.createElement("div");Tn.style.display="flex",Tn.style.alignItems="center",Tn.style.minHeight="20px",Tn.innerHTML=` - `,On.style.marginRight="5px",un.appendChild(On)}Y.typeBoxes.push(un)},Y=this,we=0;we<4;we++)ne(we);return $},C.prototype.setCurrentType=function(k,$){var ne=this;this.currentType=k,this.typeBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},C}(ue),Te=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.arrowType="end",Y.arrowBaseHeight=10,Y.arrowBaseWidth=10,Y.getArrowPoints=Y.getArrowPoints.bind(Y),Y.setArrowType=Y.setArrowType.bind(Y),Y.arrowTypePanel=new Se("Arrow type","end"),Y.arrowTypePanel.onArrowTypeChanged=Y.setArrowType,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},C.prototype.getArrowPoints=function(k,$){var ne=this.arrowBaseWidth+2*this.strokeWidth,Y=this.arrowBaseHeight+2*this.strokeWidth;return k-ne/2+","+($+Y/2)+" "+k+","+($-Y/2)+" "+(k+ne/2)+","+($+Y/2)},C.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="creating"&&this.createTips()},C.prototype.adjustVisual=function(){if(Q.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.arrow1.transform.baseVal.getItem(0);$.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem($,0);var ne=this.arrow2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ne,0)}},C.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.arrowType=$.arrowType,this.createTips(),this.adjustVisual()},C.typeName="ArrowMarker",C.title="Arrow marker",C.icon='',C}(Mt),le=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.fillColor=ne.defaultFillColor,Y.strokeWidth=0,Y.fillPanel=new Ee("Color",ne.defaultColorSet,ne.defaultFillColor),Y.fillPanel.onColorChanged=Y.setFillColor,Y}return je(C,Q),Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="CoverMarker",C.title="Cover marker",C.icon='',C}(kt),fe=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.opacities=[],we.opacityBoxes=[],we.opacities=$,we.currentOpacity=ne,we.setCurrentOpacity=we.setCurrentOpacity.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",$.style.justifyContent="space-between",this.opacities.forEach(function(ne){var Y=document.createElement("div");Y.style.display="flex",Y.style.alignItems="center",Y.style.justifyContent="center",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.borderColor=ne===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentOpacity(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.innerText=100*ne+"%",Y.appendChild(we),k.opacityBoxes.push(Y)}),$},C.prototype.setCurrentOpacity=function(k,$){var ne=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},C}(ue),_e=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.setOpacity=Y.setOpacity.bind(Y),Y.fillColor=ne.defaultHighlightColor,Y.strokeWidth=0,Y.opacity=ne.defaultHighlightOpacity,Y.fillPanel=new Ee("Color",ne.defaultColorSet,Y.fillColor),Y.fillPanel.onColorChanged=Y.setFillColor,Y.opacityPanel=new fe("Opacity",ne.defaultOpacitySteps,Y.opacity),Y.opacityPanel.onOpacityChanged=Y.setOpacity,Y}return je(C,Q),C.prototype.setOpacity=function(k){this.opacity=k,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="HighlightMarker",C.title="Highlight marker",C.icon='',C}(le),Me='',rt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.bgColor="transparent",Y.tipPosition={x:0,y:0},Y.tipBase1Position={x:0,y:0},Y.tipBase2Position={x:0,y:0},Y.tipMoving=!1,Y.color=ne.defaultStrokeColor,Y.bgColor=ne.defaultFillColor,Y.fontFamily=ne.defaultFontFamily,Y.defaultSize={x:100,y:30},Y.setBgColor=Y.setBgColor.bind(Y),Y.getTipPoints=Y.getTipPoints.bind(Y),Y.positionTip=Y.positionTip.bind(Y),Y.setTipPoints=Y.setTipPoints.bind(Y),Y.colorPanel=new Ee("Text color",ne.defaultColorSet,Y.color,''),Y.colorPanel.onColorChanged=Y.setColor,Y.bgColorPanel=new Ee("Fill color",ne.defaultColorSet,Y.bgColor,Me),Y.bgColorPanel.onColorChanged=Y.setBgColor,Y.fontFamilyPanel=new st("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Y.fontFamilyPanel.onFontChanged=Y.setFont,Y.tipGrip=new Lt,Y.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),Y.controlBox.appendChild(Y.tipGrip.visual),Y}return je(C,Q),C.prototype.ownsTarget=function(k){return Q.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},C.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},C.prototype.pointerDown=function(k,$){this.state==="new"&&Q.prototype.pointerDown.call(this,k,$),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget($)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Q.prototype.pointerDown.call(this,k,$)},C.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Q.prototype.pointerUp.call(this,k);else{var $=this.state==="creating";Q.prototype.pointerUp.call(this,k),this.setTipPoints($),this.positionTip()}},C.prototype.manipulate=function(k){if(this.tipMoving){var $=this.unrotatePoint(k);this.tipPosition={x:$.x-this.manipulationStartLeft,y:$.y-this.manipulationStartTop},this.positionTip()}else Q.prototype.manipulate.call(this,k)},C.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",k]]),me.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},C.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},C.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var $=Math.min(this.height/2,15),ne=this.height/5;k&&(this.tipPosition={x:$+ne/2,y:this.height+20});var Y=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Y.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.tip1.transform.baseVal.getItem(0);$.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem($,0);var ne=this.tip2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ne,0)}},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},C.typeName="MeasurementMarker",C.title="Measurement marker",C.icon='',C}(Mt),rn=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokePanel.colors=ne.defaultColorSet,Y.fillColor="transparent",Y}return je(C,Q),Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="EllipseFrameMarker",C.title="Ellipse frame marker",C.icon='',C}(Je),pn=function(){function Q(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Q.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Q.prototype.addUndoStep=function(C){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(C)||(this.undoStack.push(C),JSON.stringify(this.lastRedoStep)!==JSON.stringify(C)&&this.redoStack.splice(0,this.redoStack.length))},Q.prototype.replaceLastUndoStep=function(C){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=C)},Q.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Q.prototype.undo=function(){if(this.undoStack.length>1){var C=this.undoStack.pop();return C!==void 0&&this.redoStack.push(C),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Q.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Q}(),on=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokeColor="transparent",Y.strokeWidth=0,Y.strokeDasharray="",Y.curveX=0,Y.curveY=0,Y.manipulationStartCurveX=0,Y.manipulationStartCurveY=0,Y.setStrokeColor=Y.setStrokeColor.bind(Y),Y.setStrokeWidth=Y.setStrokeWidth.bind(Y),Y.setStrokeDasharray=Y.setStrokeDasharray.bind(Y),Y.positionGrips=Y.positionGrips.bind(Y),Y.addControlGrips=Y.addControlGrips.bind(Y),Y.adjustVisual=Y.adjustVisual.bind(Y),Y.setupControlBox=Y.setupControlBox.bind(Y),Y.resize=Y.resize.bind(Y),Y.strokeColor=ne.defaultColor,Y.strokeWidth=ne.defaultStrokeWidth,Y.strokeDasharray=ne.defaultStrokeDasharray,Y.strokePanel=new Ee("Line color",ne.defaultColorSet,ne.defaultColor),Y.strokePanel.onColorChanged=Y.setStrokeColor,Y.strokeWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.strokeWidthPanel.onWidthChanged=Y.setStrokeWidth,Y.strokeStylePanel=new hn("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Y.strokeStylePanel.onStyleChanged=Y.setStrokeDasharray,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},C.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget($)&&(this.activeGrip=this.curveGrip,this._state="resize")},C.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},C.prototype.setupControlBox=function(){Q.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},C.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Q.prototype.addControlGrips.call(this)},C.prototype.positionGrips=function(){Q.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},C.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),Q.prototype.manipulate.call(this,k)},C.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),Q.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},C.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},C.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},C.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},C.prototype.scale=function(k,$){this.curveX=this.curveX*k,this.curveY=this.curveY*$,Q.prototype.scale.call(this,k,$)},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.curveX=$.curveX,this.curveY=$.curveY,this.createVisual(),this.adjustVisual()},C.typeName="CurveMarker",C.title="Curve marker",C.icon='',C}(vt),Jt=function(){function Q(C,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=C,this.cancelable=k}return Object.defineProperty(Q.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Q.prototype.preventDefault=function(){this._defaultPrevented=!0},Q}(),wt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,!1)||this;return Y.dataUrl=$,Y.state=ne,Y}return je(C,Q),C}(Jt),St=function(Q){function C(k,$,ne){ne===void 0&&(ne=!1);var Y=Q.call(this,k,ne)||this;return Y.marker=$,Y}return je(C,Q),C}(Jt),lt=function(){function Q(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Q.prototype.addEventListener=function(C,k){this[C].push(k)},Q.prototype.removeEventListener=function(C,k){var $=this[C].indexOf(k);$>-1&&this[C].splice($,1)},Q}(),ge=function(){function Q(C){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ue,this._isOpen=!1,this.undoRedoManager=new pn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Q.instanceCounter++,this.styles=new Ge(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=C,this.targetRoot=document.body,this.width=C.clientWidth,this.height=C.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Q.prototype,"ALL_MARKER_TYPES",{get:function(){return[qe,Ne,Te,Ct,rn,Je,_e,rt,jt,le,Mt,on]},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[qe,Ne,Te,Ct,Je,_e,rt]},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"BASIC_MARKER_TYPES",{get:function(){return[qe,Ne,Te,Ct,_e]},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(C){var k=this;this._availableMarkerTypes.splice(0),C.forEach(function($){if(typeof $=="string"){var ne=k.ALL_MARKER_TYPES.find(function(Y){return Y.typeName===$});ne!==void 0&&k._availableMarkerTypes.push(ne)}else k._availableMarkerTypes.push($)})},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(C){this._zoomLevel=C,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Q.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ie.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Q.prototype.show=function(){var C=this;this.styles.styleSheetRoot===void 0&&ve.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ve.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new Jt(C))})},Q.prototype.render=function(){return Qe(this,void 0,void 0,function(){var C;return Ze(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(C=new Oe).naturalSize=this.renderAtNaturalSize,C.imageType=this.renderImageType,C.imageQuality=this.renderImageQuality,C.markersOnly=this.renderMarkersOnly,C.width=this.renderWidth,C.height=this.renderHeight,[4,C.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,C.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},Q.prototype.close=function(C){var k=this;if(C===void 0&&(C=!1),this.isOpen){var $=!1;C||this.eventListeners.beforeclose.forEach(function(ne){var Y=new Jt(k,!0);ne(Y),Y.defaultPrevented&&($=!0)}),$||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ne){return ne(new Jt(k))}),this.detachEvents(),this._isOpen=!1)}},Q.prototype.addMarkersToToolbar=function(){for(var C,k=[],$=0;$this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*C:this.editorCanvas.clientWidth,$=k',C.title="Powered by marker.js",C.style.display="grid",C.style.alignItems="center",C.style.justifyItems="center",C.style.padding="3px",C.style.width="20px",C.style.height="20px",this.logoUI.appendChild(C),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Q.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Q.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Q.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Q.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var C=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=C+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new V(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(C),1),C.dispose()},Q.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Q.prototype.toolbarButtonClicked=function(C,k){if(C==="marker"&&k!==void 0)this.createNewMarker(k);else if(C==="action")switch(k){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Q.prototype.deleteSelectedMarker=function(){var C=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ne){var Y=new St(C,C._currentMarker,!0);ne(Y),Y.defaultPrevented&&(k=!0)}),!k){var $=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ne){return ne(new St(C,$))})}}},Q.prototype.clear=function(){var C=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(we){var mt=new St(C,void 0,!0);we(mt),mt.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var $=function(we){var mt=ne.markers[we];ne.setCurrentMarker(ne.markers[we]),ne._currentMarker.dispose(),ne.markerImage.removeChild(ne._currentMarker.container),ne.markers.splice(ne.markers.indexOf(ne._currentMarker),1),ne.eventListeners.markerdelete.forEach(function(It){return It(new St(C,mt))})},ne=this,Y=this.markers.length-1;Y>=0;Y--)$(Y);this.addUndoStep()}},Object.defineProperty(Q.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Q.prototype.showNotesEditor=function(){var C;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(C=this._currentMarker.notes)!==null&&C!==void 0?C:"",this.overlayContainer.appendChild(this.notesArea))},Q.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Q.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Q.prototype.addUndoStep=function(){var C=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),$=this.undoRedoManager.getLastUndoStep();if(!$||$.width===k.width&&$.height===k.height){var ne=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ne1&&this.panTo({x:C.clientX,y:C.clientY}))},Q.prototype.onPointerUp=function(C){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(C.clientX,C.clientY)),this.isDragging=!1,this.addUndoStep()},Q.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Q.prototype.onKeyUp=function(C){this._currentMarker===void 0||this.notesArea!==void 0||C.key!=="Delete"&&C.key!=="Backspace"||this.deleteSelectedMarker()},Q.prototype.clientToLocalCoordinates=function(C,k){var $=this.markerImage.getBoundingClientRect();return{x:(C-$.left)/this.zoomLevel,y:(k-$.top)/this.zoomLevel}},Q.prototype.onWindowResize=function(){this.positionUI()},Q.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var C=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=C+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Q.prototype.addLicenseKey=function(C){ie.addKey(C)},Q.prototype.addEventListener=function(C,k){this.eventListeners.addEventListener(C,k)},Q.prototype.removeEventListener=function(C,k){this.eventListeners.removeEventListener(C,k)},Q.prototype.renderState=function(C){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(C),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Q.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Q.prototype.focus=function(){var C=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new Jt(C))}))},Q.prototype.blur=function(){var C=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new Jt(C))}))},Q.instanceCounter=0,Q}();/* ********************************** + `,Tn.style.marginRight="5px",ln.appendChild(Tn)}Y.typeBoxes.push(ln)},Y=this,we=0;we<4;we++)ne(we);return $},C.prototype.setCurrentType=function(k,$){var ne=this;this.currentType=k,this.typeBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},C}(ue),Te=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.arrowType="end",Y.arrowBaseHeight=10,Y.arrowBaseWidth=10,Y.getArrowPoints=Y.getArrowPoints.bind(Y),Y.setArrowType=Y.setArrowType.bind(Y),Y.arrowTypePanel=new Se("Arrow type","end"),Y.arrowTypePanel.onArrowTypeChanged=Y.setArrowType,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},C.prototype.getArrowPoints=function(k,$){var ne=this.arrowBaseWidth+2*this.strokeWidth,Y=this.arrowBaseHeight+2*this.strokeWidth;return k-ne/2+","+($+Y/2)+" "+k+","+($-Y/2)+" "+(k+ne/2)+","+($+Y/2)},C.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.state==="creating"&&this.createTips()},C.prototype.adjustVisual=function(){if(Q.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.arrow1.transform.baseVal.getItem(0);$.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem($,0);var ne=this.arrow2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ne,0)}},C.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.arrowType=$.arrowType,this.createTips(),this.adjustVisual()},C.typeName="ArrowMarker",C.title="Arrow marker",C.icon='',C}(Mt),le=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.fillColor=ne.defaultFillColor,Y.strokeWidth=0,Y.fillPanel=new Ee("Color",ne.defaultColorSet,ne.defaultFillColor),Y.fillPanel.onColorChanged=Y.setFillColor,Y}return je(C,Q),Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="CoverMarker",C.title="Cover marker",C.icon='',C}(kt),fe=function(Q){function C(k,$,ne,Y){var we=Q.call(this,k,Y||'')||this;return we.opacities=[],we.opacityBoxes=[],we.opacities=$,we.currentOpacity=ne,we.setCurrentOpacity=we.setCurrentOpacity.bind(we),we}return je(C,Q),C.prototype.getUi=function(){var k=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",$.style.justifyContent="space-between",this.opacities.forEach(function(ne){var Y=document.createElement("div");Y.style.display="flex",Y.style.alignItems="center",Y.style.justifyContent="center",Y.style.padding="5px",Y.style.borderWidth="2px",Y.style.borderStyle="solid",Y.style.borderColor=ne===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",Y.addEventListener("click",function(){k.setCurrentOpacity(ne,Y)}),$.appendChild(Y);var we=document.createElement("div");we.innerText=100*ne+"%",Y.appendChild(we),k.opacityBoxes.push(Y)}),$},C.prototype.setCurrentOpacity=function(k,$){var ne=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(Y){Y.style.borderColor=Y===$?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},C}(ue),_e=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.setOpacity=Y.setOpacity.bind(Y),Y.fillColor=ne.defaultHighlightColor,Y.strokeWidth=0,Y.opacity=ne.defaultHighlightOpacity,Y.fillPanel=new Ee("Color",ne.defaultColorSet,Y.fillColor),Y.fillPanel.onColorChanged=Y.setFillColor,Y.opacityPanel=new fe("Opacity",ne.defaultOpacitySteps,Y.opacity),Y.opacityPanel.onOpacityChanged=Y.setOpacity,Y}return je(C,Q),C.prototype.setOpacity=function(k){this.opacity=k,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="HighlightMarker",C.title="Highlight marker",C.icon='',C}(le),Me='',at=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.bgColor="transparent",Y.tipPosition={x:0,y:0},Y.tipBase1Position={x:0,y:0},Y.tipBase2Position={x:0,y:0},Y.tipMoving=!1,Y.color=ne.defaultStrokeColor,Y.bgColor=ne.defaultFillColor,Y.fontFamily=ne.defaultFontFamily,Y.defaultSize={x:100,y:30},Y.setBgColor=Y.setBgColor.bind(Y),Y.getTipPoints=Y.getTipPoints.bind(Y),Y.positionTip=Y.positionTip.bind(Y),Y.setTipPoints=Y.setTipPoints.bind(Y),Y.colorPanel=new Ee("Text color",ne.defaultColorSet,Y.color,''),Y.colorPanel.onColorChanged=Y.setColor,Y.bgColorPanel=new Ee("Fill color",ne.defaultColorSet,Y.bgColor,Me),Y.bgColorPanel.onColorChanged=Y.setBgColor,Y.fontFamilyPanel=new st("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Y.fontFamilyPanel.onFontChanged=Y.setFont,Y.tipGrip=new Pt,Y.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),Y.controlBox.appendChild(Y.tipGrip.visual),Y}return je(C,Q),C.prototype.ownsTarget=function(k){return Q.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},C.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},C.prototype.pointerDown=function(k,$){this.state==="new"&&Q.prototype.pointerDown.call(this,k,$),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget($)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Q.prototype.pointerDown.call(this,k,$)},C.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Q.prototype.pointerUp.call(this,k);else{var $=this.state==="creating";Q.prototype.pointerUp.call(this,k),this.setTipPoints($),this.positionTip()}},C.prototype.manipulate=function(k){if(this.tipMoving){var $=this.unrotatePoint(k);this.tipPosition={x:$.x-this.manipulationStartLeft,y:$.y-this.manipulationStartTop},this.positionTip()}else Q.prototype.manipulate.call(this,k)},C.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",k]]),me.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},C.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},C.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var $=Math.min(this.height/2,15),ne=this.height/5;k&&(this.tipPosition={x:$+ne/2,y:this.height+20});var Y=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Y.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.tip1.transform.baseVal.getItem(0);$.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem($,0);var ne=this.tip2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ne,0)}},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},C.typeName="MeasurementMarker",C.title="Measurement marker",C.icon='',C}(Mt),nn=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokePanel.colors=ne.defaultColorSet,Y.fillColor="transparent",Y}return je(C,Q),Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Q.prototype.getState.call(this);return k.typeName=C.typeName,k},C.typeName="EllipseFrameMarker",C.title="Ellipse frame marker",C.icon='',C}(Je),pn=function(){function Q(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Q.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Q.prototype.addUndoStep=function(C){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(C)||(this.undoStack.push(C),JSON.stringify(this.lastRedoStep)!==JSON.stringify(C)&&this.redoStack.splice(0,this.redoStack.length))},Q.prototype.replaceLastUndoStep=function(C){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=C)},Q.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Q.prototype.undo=function(){if(this.undoStack.length>1){var C=this.undoStack.pop();return C!==void 0&&this.redoStack.push(C),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Q.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Q}(),an=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$,ne)||this;return Y.strokeColor="transparent",Y.strokeWidth=0,Y.strokeDasharray="",Y.curveX=0,Y.curveY=0,Y.manipulationStartCurveX=0,Y.manipulationStartCurveY=0,Y.setStrokeColor=Y.setStrokeColor.bind(Y),Y.setStrokeWidth=Y.setStrokeWidth.bind(Y),Y.setStrokeDasharray=Y.setStrokeDasharray.bind(Y),Y.positionGrips=Y.positionGrips.bind(Y),Y.addControlGrips=Y.addControlGrips.bind(Y),Y.adjustVisual=Y.adjustVisual.bind(Y),Y.setupControlBox=Y.setupControlBox.bind(Y),Y.resize=Y.resize.bind(Y),Y.strokeColor=ne.defaultColor,Y.strokeWidth=ne.defaultStrokeWidth,Y.strokeDasharray=ne.defaultStrokeDasharray,Y.strokePanel=new Ee("Line color",ne.defaultColorSet,ne.defaultColor),Y.strokePanel.onColorChanged=Y.setStrokeColor,Y.strokeWidthPanel=new Qt("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Y.strokeWidthPanel.onWidthChanged=Y.setStrokeWidth,Y.strokeStylePanel=new fn("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Y.strokeStylePanel.onStyleChanged=Y.setStrokeDasharray,Y}return je(C,Q),C.prototype.ownsTarget=function(k){return!(!Q.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},C.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},C.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},C.prototype.pointerDown=function(k,$){Q.prototype.pointerDown.call(this,k,$),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget($)&&(this.activeGrip=this.curveGrip,this._state="resize")},C.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},C.prototype.setupControlBox=function(){Q.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},C.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Q.prototype.addControlGrips.call(this)},C.prototype.positionGrips=function(){Q.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},C.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),Q.prototype.manipulate.call(this,k)},C.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),Q.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},C.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},C.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},C.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},C.prototype.scale=function(k,$){this.curveX=this.curveX*k,this.curveY=this.curveY*$,Q.prototype.scale.call(this,k,$)},Object.defineProperty(C.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),C.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Q.prototype.getState.call(this));return k.typeName=C.typeName,k},C.prototype.restoreState=function(k){Q.prototype.restoreState.call(this,k);var $=k;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.curveX=$.curveX,this.curveY=$.curveY,this.createVisual(),this.adjustVisual()},C.typeName="CurveMarker",C.title="Curve marker",C.icon='',C}(vt),Jt=function(){function Q(C,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=C,this.cancelable=k}return Object.defineProperty(Q.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Q.prototype.preventDefault=function(){this._defaultPrevented=!0},Q}(),wt=function(Q){function C(k,$,ne){var Y=Q.call(this,k,!1)||this;return Y.dataUrl=$,Y.state=ne,Y}return je(C,Q),C}(Jt),St=function(Q){function C(k,$,ne){ne===void 0&&(ne=!1);var Y=Q.call(this,k,ne)||this;return Y.marker=$,Y}return je(C,Q),C}(Jt),lt=function(){function Q(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Q.prototype.addEventListener=function(C,k){this[C].push(k)},Q.prototype.removeEventListener=function(C,k){var $=this[C].indexOf(k);$>-1&&this[C].splice($,1)},Q}(),ge=function(){function Q(C){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ue,this._isOpen=!1,this.undoRedoManager=new pn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Q.instanceCounter++,this.styles=new Ge(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=C,this.targetRoot=document.body,this.width=C.clientWidth,this.height=C.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Q.prototype,"ALL_MARKER_TYPES",{get:function(){return[qe,Ne,Te,Ct,nn,Je,_e,at,jt,le,Mt,an]},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[qe,Ne,Te,Ct,Je,_e,at]},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"BASIC_MARKER_TYPES",{get:function(){return[qe,Ne,Te,Ct,_e]},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(C){var k=this;this._availableMarkerTypes.splice(0),C.forEach(function($){if(typeof $=="string"){var ne=k.ALL_MARKER_TYPES.find(function(Y){return Y.typeName===$});ne!==void 0&&k._availableMarkerTypes.push(ne)}else k._availableMarkerTypes.push($)})},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(C){this._zoomLevel=C,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Q.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ie.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Q.prototype.show=function(){var C=this;this.styles.styleSheetRoot===void 0&&ve.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ve.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new Jt(C))})},Q.prototype.render=function(){return Ze(this,void 0,void 0,function(){var C;return Qe(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(C=new Oe).naturalSize=this.renderAtNaturalSize,C.imageType=this.renderImageType,C.imageQuality=this.renderImageQuality,C.markersOnly=this.renderMarkersOnly,C.width=this.renderWidth,C.height=this.renderHeight,[4,C.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,C.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},Q.prototype.close=function(C){var k=this;if(C===void 0&&(C=!1),this.isOpen){var $=!1;C||this.eventListeners.beforeclose.forEach(function(ne){var Y=new Jt(k,!0);ne(Y),Y.defaultPrevented&&($=!0)}),$||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ne){return ne(new Jt(k))}),this.detachEvents(),this._isOpen=!1)}},Q.prototype.addMarkersToToolbar=function(){for(var C,k=[],$=0;$this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*C:this.editorCanvas.clientWidth,$=k',C.title="Powered by marker.js",C.style.display="grid",C.style.alignItems="center",C.style.justifyItems="center",C.style.padding="3px",C.style.width="20px",C.style.height="20px",this.logoUI.appendChild(C),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Q.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Q.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Q.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Q.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var C=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=C+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new V(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(C),1),C.dispose()},Q.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Q.prototype.toolbarButtonClicked=function(C,k){if(C==="marker"&&k!==void 0)this.createNewMarker(k);else if(C==="action")switch(k){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Q.prototype.deleteSelectedMarker=function(){var C=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ne){var Y=new St(C,C._currentMarker,!0);ne(Y),Y.defaultPrevented&&(k=!0)}),!k){var $=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ne){return ne(new St(C,$))})}}},Q.prototype.clear=function(){var C=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(we){var mt=new St(C,void 0,!0);we(mt),mt.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var $=function(we){var mt=ne.markers[we];ne.setCurrentMarker(ne.markers[we]),ne._currentMarker.dispose(),ne.markerImage.removeChild(ne._currentMarker.container),ne.markers.splice(ne.markers.indexOf(ne._currentMarker),1),ne.eventListeners.markerdelete.forEach(function(It){return It(new St(C,mt))})},ne=this,Y=this.markers.length-1;Y>=0;Y--)$(Y);this.addUndoStep()}},Object.defineProperty(Q.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Q.prototype.showNotesEditor=function(){var C;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(C=this._currentMarker.notes)!==null&&C!==void 0?C:"",this.overlayContainer.appendChild(this.notesArea))},Q.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Q.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Q.prototype.addUndoStep=function(){var C=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),$=this.undoRedoManager.getLastUndoStep();if(!$||$.width===k.width&&$.height===k.height){var ne=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ne1&&this.panTo({x:C.clientX,y:C.clientY}))},Q.prototype.onPointerUp=function(C){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(C.clientX,C.clientY)),this.isDragging=!1,this.addUndoStep()},Q.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Q.prototype.onKeyUp=function(C){this._currentMarker===void 0||this.notesArea!==void 0||C.key!=="Delete"&&C.key!=="Backspace"||this.deleteSelectedMarker()},Q.prototype.clientToLocalCoordinates=function(C,k){var $=this.markerImage.getBoundingClientRect();return{x:(C-$.left)/this.zoomLevel,y:(k-$.top)/this.zoomLevel}},Q.prototype.onWindowResize=function(){this.positionUI()},Q.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var C=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=C+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Q.prototype.addLicenseKey=function(C){ie.addKey(C)},Q.prototype.addEventListener=function(C,k){this.eventListeners.addEventListener(C,k)},Q.prototype.removeEventListener=function(C,k){this.eventListeners.removeEventListener(C,k)},Q.prototype.renderState=function(C){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(C),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Q.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Q.prototype.focus=function(){var C=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new Jt(C))}))},Q.prototype.blur=function(){var C=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new Jt(C))}))},Q.instanceCounter=0,Q}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -148,7 +148,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Le=function(Q,C){return(Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,$){k.__proto__=$}||function(k,$){for(var ne in $)Object.prototype.hasOwnProperty.call($,ne)&&(k[ne]=$[ne])})(Q,C)};function yt(Q,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function k(){this.constructor=Q}Le(Q,C),Q.prototype=C===null?Object.create(C):(k.prototype=C.prototype,new k)}function ft(Q,C,k,$){return new(k||(k=Promise))(function(ne,Y){function we(un){try{It($.next(un))}catch(Ot){Y(Ot)}}function mt(un){try{It($.throw(un))}catch(Ot){Y(Ot)}}function It(un){var Ot;un.done?ne(un.value):(Ot=un.value,Ot instanceof k?Ot:new k(function(bn){bn(Ot)})).then(we,mt)}It(($=$.apply(Q,C||[])).next())})}function en(Q,C){var k,$,ne,Y,we={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return Y={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function mt(It){return function(un){return function(Ot){if(k)throw new TypeError("Generator is already executing.");for(;we;)try{if(k=1,$&&(ne=2&Ot[0]?$.return:Ot[0]?$.throw||((ne=$.return)&&ne.call($),0):$.next)&&!(ne=ne.call($,Ot[1])).done)return ne;switch($=0,ne&&(Ot=[2&Ot[0],ne.value]),Ot[0]){case 0:case 1:ne=Ot;break;case 4:return we.label++,{value:Ot[1],done:!1};case 5:we.label++,$=Ot[1],Ot=[0];continue;case 7:Ot=we.ops.pop(),we.trys.pop();continue;default:if(!(ne=we.trys,(ne=ne.length>0&&ne[ne.length-1])||Ot[0]!==6&&Ot[0]!==2)){we=0;continue}if(Ot[0]===3&&(!ne||Ot[1]>ne[0]&&Ot[1]0&&ne[ne.length-1])||Ot[0]!==6&&Ot[0]!==2)){we=0;continue}if(Ot[0]===3&&(!ne||Ot[1]>ne[0]&&Ot[1]0&&k>0){var $=new Vr(C,k),ne=$.ratio>=1?20:$.getHorizontalLength(20),Y=$.ratio<1?20:$.getVerticalLength(20),we=document.createElementNS("http://www.w3.org/2000/svg","svg");we.setAttribute("xmlns","http://www.w3.org/2000/svg"),we.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(we);var mt=at.createDefs();we.appendChild(mt);var It=at.createElement("clipPath",[["id","text-bg-clip"]]);mt.appendChild(It);var un=at.createPath(at.getHollowRectanglePath((24-ne)/2,(24-Y)/2,ne,Y,(24-ne)/2+2,(24-Y)/2+2,ne-4,Y-4));we.appendChild(un);var Ot=at.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ot.appendChild(at.createTSpan(C+":"+k)),we.appendChild(Ot);var bn=Ot.getBBox();at.setAttributes(Ot,[["x",((24-bn.width)/2).toString()],["y",((24-bn.height)/2-bn.y).toString()]]);var En=at.createPath(at.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(bn.width))/2,(24-Math.ceil(bn.height))/2,Math.ceil(bn.width),Math.ceil(bn.height)));return It.appendChild(En),at.setAttributes(un,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(we),we.outerHTML}return''},Q}(),Br=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$)||this;return Y.isDropdownOpen=!1,Y.onClick=Y.dropdownButtonClicked,Y.dropdownButtons=ne,Y}return yt(C,Q),C.prototype.setupDropdown=function(){var k=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function($){$.className=k.className,$.colorsClassName=k.colorsClassName,k.dropdownBlock.appendChild($.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},C.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},C.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},C.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},C.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},C.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},C}(tr),cr=function(){function Q(C,k){this.GRIP_SIZE=10,this.color=C,this.fillColor=k,this.visual=at.createGroup(),this.visual.appendChild(at.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(at.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Q.prototype.ownsTarget=function(C){return C===this.visual||C===this.visual.childNodes[0]||C===this.visual.childNodes[1]},Q.prototype.setCenter=function(C,k){this.visual.childNodes.forEach(function($){return at.setAttributes($,[["cx",C.toString()],["cy",k.toString()]])})},Q}(),Kr=function(){function Q(C,k,$,ne){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=C,this.canvasHeight=k,this.margin=$,this.container=ne,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(Q.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(C){this._aspectRatio=C,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(C){this._isGridVisible=C,this.gridContainer&&at.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(C){this._zoomFactor=C,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Q.prototype.open=function(){var C=this;this.cropShadeElement=at.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=at.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var k=0;kthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-k.height/2),at.setAttributes(this.cropRectElement,[["x",k.x.toString()],["y",k.y.toString()],["width",k.width.toString()],["height",k.height.toString()]]);var $=k.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Y,we){var mt=k.y+$*(we+1);at.setAttributes(Y,[["x1",""+k.x],["y1",""+mt],["x2",""+(k.x+k.width)],["y2",""+mt]])});var ne=k.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Y,we){var mt=k.x+ne*(we+1);at.setAttributes(Y,[["x1",""+mt],["y1",""+k.y],["x2",""+mt],["y2",""+(k.y+k.height)]])}),at.setAttributes(this.cropShadeElement,[["d",at.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,k.x,k.y,k.width,k.height)]]),this.topLeftGrip.setCenter(k.x,k.y),this.topRightGrip.setCenter(k.x+k.width,k.y),this.bottomLeftGrip.setCenter(k.x,k.y+k.height),this.bottomRightGrip.setCenter(k.x+k.width,k.y+k.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Q.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},Q.prototype.clientToLocalCoordinates=function(C,k){var $=this.container.getBoundingClientRect();return{x:C-$.left+this.margin,y:k-$.top+this.margin}},Q.prototype.onPointerDown=function(C){this.container.setPointerCapture(C.pointerId),this.previousPoint=this.clientToLocalCoordinates(C.clientX,C.clientY),this.cropRectElement===C.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(C.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(C.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(C.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(C.target)&&(this.activeGrip=this.bottomRightGrip)},Q.prototype.onPointerMove=function(C){if(this.isMoving)this.move(this.clientToLocalCoordinates(C.clientX,C.clientY));else if(this.activeGrip){var k=this.clientToLocalCoordinates(C.clientX,C.clientY);this.resize(k)}C.preventDefault()},Q.prototype.onPointerUp=function(C){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(C.pointerId)},Q.prototype.move=function(C){var k=C.x-this.previousPoint.x,$=C.y-this.previousPoint.y;this.zoomFactor!==1&&(k=-k/this.zoomFactor,$=-$/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+k),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+$),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=C},Q.prototype.resize=function(C){var k=Object.assign({},this.cropRect),$=C.x-this.previousPoint.x,ne=C.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:k.x+$this.canvasWidth*this.zoomFactor&&($=this.canvasWidth*this.zoomFactor-k.width),k.width+=$}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(k.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength($),k.height=this.aspectRatio.getVerticalLength(k.width)):(k.y+=ne,k.height=this.cropRect.y+this.cropRect.height-k.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?k.height=this.aspectRatio.getVerticalLength(k.width):k.height+=ne}k.width<10&&(k.x=this.cropRect.x,k.width=10),k.height<10&&(k.y=this.cropRect.y,k.height=10),this.previousPoint=C,k.x>=this.margin&&k.y>=this.margin&&k.x-this.margin+k.width<=this.canvasWidth&&k.y-this.margin+k.height<=this.canvasHeight&&(this.cropRect=k,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Q.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var C=this.cropRect.x+this.cropRect.width/2,k=this.cropRect.y+this.cropRect.height/2,$=this.aspectRatio.getHorizontalLength(this.cropRect.height),ne=this.aspectRatio.getVerticalLength(this.cropRect.width);$/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=C-this.cropRect.width/2,this.cropRect.y=k-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},Q.prototype.getRescaledRect=function(C,k,$,ne,Y,we){var mt=$/C,It=ne/k;return{x:(Y.x-we)*mt+we,y:(Y.y-we)*It+we,width:Y.width*mt,height:Y.height*It}},Q.prototype.scaleCanvas=function(C,k){var $=this.getRescaledRect(this.canvasWidth,this.canvasHeight,C,k,this.cropRect,this.margin);this.canvasWidth=C,this.canvasHeight=k,this.onCropChange&&this.onCropChange($),this.setCropRectangle($)},Q}(),na=function(){function Q(C){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=C,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(Q.prototype,"angle",{get:function(){return this._angle},set:function(C){this._angle=C,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Q.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},Q.prototype.onPointerDown=function(C){this.controlContainer.setPointerCapture(C.pointerId),this.isDragging=!0,this.previousPoint={x:C.clientX,y:C.clientY}},Q.prototype.onPointerMove=function(C){this.isDragging&&(this.onAngleChange&&this.onAngleChange((C.clientX-this.previousPoint.x)/5),this.previousPoint.x=C.clientX)},Q.prototype.onPointerUp=function(C){this.isDragging&&this.onAngleChange&&this.onAngleChange((C.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(C.pointerId)},Q.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var C=this.angleLabelText.getBBox();at.setAttributes(this.angleLabelElement,[["x",((this.width-C.width)/2).toString()],["y",(this.height/2).toString()]])}},Q.prototype.positionScaleShape=function(){if(this.scaleShape){var C=this.scaleShape.transform.baseVal.getItem(0);C.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(C,0)}},Q.prototype.getVisual=function(){var C=document.createElementNS("http://www.w3.org/2000/svg","svg");C.setAttribute("xmlns","http://www.w3.org/2000/svg"),C.setAttribute("width",this.width+"px"),C.setAttribute("height",this.height+"px"),C.setAttribute("viewBox","0 0 "+this.width+" "+this.height),C.style.flexShrink="0",document.body.appendChild(C);for(var k="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,$=1;$<=this.width/5+10;$++){var ne=$%5==0?this.height/3:this.height/6;k+="h4v"+-ne+"h1v"+ne}k+="v1H0Z",this.scaleShape=at.createPath(k);var Y=at.createTransform();this.scaleShape.transform.baseVal.appendItem(Y),C.appendChild(this.scaleShape),this.angleLabelElement=at.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=at.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var we=at.createTSpan("");return we.innerHTML="°",this.angleLabelElement.appendChild(we),C.appendChild(this.angleLabelElement),document.body.removeChild(C),C},Q}(),da=function(){function Q(){this.naturalSize=!1,this.imageType="image/png"}return Q.prototype.rasterize=function(C,k,$,ne,Y,we,mt){var It=this;return new Promise(function(un){var Ot=document.createElement("canvas");Ot.width=C.width.baseVal.value-2*ne,Ot.height=C.height.baseVal.value-2*ne;var bn=1,En=1;It.naturalSize===!0?(bn=k.naturalWidth/(C.width.baseVal.value-2*ne)/we,En=k.naturalHeight/(C.height.baseVal.value-2*ne)/mt,Ot.width=k.naturalWidth/we,Ot.height=k.naturalHeight/mt):It.width!==void 0&&It.height!==void 0&&(bn=It.width/$.width,En=It.height/$.height,Ot.width*=bn,Ot.height*=En);var On=Ot.getContext("2d");On.translate(Ot.width/2,Ot.height/2),On.rotate(Y*Math.PI/180),On.scale(we,mt),On.translate(-Ot.width/2,-Ot.height/2),On.drawImage(k,0,0,Ot.width,Ot.height);var pr=document.createElement("canvas");pr.width=$.width*bn,pr.height=$.height*En,pr.getContext("2d").putImageData(On.getImageData(($.x-ne)*bn,($.y-ne)*En,$.width*bn,$.height*En),0,0),un(pr.toDataURL(It.imageType,It.imageQuality))})},Q}(),Wt=function(){function Q(C){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=Q.instanceCounter++,this.styles=new xt(this.instanceNo),this.target=C,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(Q.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(C){this._zoomToCropEnabled=C,C?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(C){this._isGridVisible=C,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"gridLines",{get:function(){return this._gridLines},set:function(C){this._gridLines=C,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(C){this._rotationAngle=C,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"aspectRatio",{get:function(){var C;return(C=this._aspectRatio)!==null&&C!==void 0?C:this.aspectRatios[0]},set:function(C){this._aspectRatio=C},enumerable:!1,configurable:!0}),Q.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},Q.prototype.show=function(){this.showUI(),this.open()},Q.prototype.close=function(C){C===void 0&&(C=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),C||this.closeEventListeners.forEach(function(k){return k()}),this._isOpen=!1)},Q.prototype.addRenderEventListener=function(C){this.renderEventListeners.push(C)},Q.prototype.removeRenderEventListener=function(C){this.renderEventListeners.indexOf(C)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(C),1)},Q.prototype.addCloseEventListener=function(C){this.closeEventListeners.push(C)},Q.prototype.removeCloseEventListener=function(C){this.closeEventListeners.indexOf(C)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(C),1)},Q.prototype.setupResizeObserver=function(){var C=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){C.resize(C.target.clientWidth,C.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},Q.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var C=1*this.target.clientWidth/this.target.clientHeight,k=this.contentDiv.clientWidth/C>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*C:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,$=k+2*this.CANVAS_MARGINC+this.CANVAS_MARGIN?this.target.offsetTop-(C+this.CANVAS_MARGIN):0;this.coverDiv.style.top=k+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},Q.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Q.prototype.addTopToolbar=function(){var C=this;this.topToolbar=new xn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new fr;k.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(k);var $=[];this.aspectRatios.forEach(function(En){var On=new tr(oa.getIcon(En.horizontal,En.vertical),En.horizontal===0&&En.vertical===0?"FREE":En.horizontal+":"+En.vertical);On.onClick=function(){return C.ratioButtonClicked(En)},$.push(On)}),this.aspectRatioButton=new Br(oa.getIcon(0,0),"Aspect ratio",$),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,k.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ne=new tr('',"Toggle grid");ne.isActive=this.isGridVisible,ne.onClick=function(){C.isGridVisible=!C.isGridVisible,ne.isActive=C.isGridVisible},k.addButton(ne);var Y=new tr('',"Zoom to selection");if(Y.isActive=this.zoomToCropEnabled,Y.onClick=function(){C.zoomToCropEnabled=!C.zoomToCropEnabled,Y.isActive=C.zoomToCropEnabled},k.addButton(Y),!Xt.isLicensed){var we=new Sn;this.topToolbar.addElementBlock(we);var mt=document.createElement("div");mt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var It=document.createElement("a");It.style.color="currentColor",It.href="https://markerjs.com/products/cropro",It.target="_blank",It.innerHTML='',mt.appendChild(It),we.addElement(mt)}var un=new fr;un.minWidth=3*this.toolbarHeight+"px",un.contentAlign="end",this.topToolbar.addButtonBlock(un);var Ot=new tr('',"OK");Ot.onClick=this.startRenderAndClose,un.addButton(Ot),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ot.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var bn=new tr('',"Close");bn.onClick=this.close,un.addButton(bn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(bn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Q.prototype.addBottomToolbar=function(){var C=this;this.bottomToolbar=new xn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new fr;k.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(k);var $=new tr('',"Rotate left");$.onClick=this.rotateLeftButtonClicked,k.addButton($);var ne=new tr('',"Rotate right");ne.onClick=this.rotateRightButtonClicked,k.addButton(ne);var Y=new Sn;Y.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Y),this.straightener=new na("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(un){C.rotateBy(un),C.straightener.angle=C.rotationAngle},Y.addElement(this.straightener.getUI());var we=new fr;we.minWidth=2*this.toolbarHeight+"px",we.contentAlign="end",this.bottomToolbar.addButtonBlock(we);var mt=new tr('',"Flip horizontal");mt.onClick=this.flipHorizontallyButtonClicked,we.addButton(mt);var It=new tr('',"Flip vertical");It.onClick=this.flipVerticallyButtonClicked,we.addButton(It)},Q.prototype.ratioButtonClicked=function(C){this.aspectRatio=C,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Q.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=oa.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Q.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Vr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Q.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Q.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Q.prototype.restoreState=function(C){if(C){var k=this.cropLayer.getRescaledRect(C.width,C.height,this.imageWidth,this.imageHeight,C.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(k),this.cropRectChanged(k),this.flippedHorizontally=C.flippedHorizontally,this.flippedVertically=C.flippedVertically,this.applyFlip(),this.rotationAngle=C.rotationAngle,this.applyRotation()}},Q.prototype.clientToLocalCoordinates=function(C,k){var $=this.cropImage.getBoundingClientRect();return{x:C-$.left,y:k-$.top}},Q.prototype.onWindowResize=function(){this.positionUI()},Q.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var C=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=C+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},Q.prototype.rotateLeftButtonClicked=function(){var C=this.rotationAngle-90;this.rotationAngle%90!=0&&(C+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(C)},Q.prototype.rotateRightButtonClicked=function(){var C=this.rotationAngle+90;this.rotationAngle%90!=0&&(C-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(C)},Q.prototype.rotateTo=function(C){C=(C=C>180?C-360:C)<=-180?C+360:C,this.rotationAngle=C,this.applyRotation()},Q.prototype.rotateBy=function(C){this.rotateTo((this.rotationAngle+C)%360)},Q.prototype.applyRotation=function(){var C=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var k=this.editingTargetRotationContainer.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(k,0);var $=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/$.width,this.imageHeight/$.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=C},Q.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Q.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Q.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Q.prototype.startRenderAndClose=function(){return ft(this,void 0,void 0,function(){var C,k;return en(this,function($){switch($.label){case 0:return[4,this.render()];case 1:return C=$.sent(),k=this.getState(),this.renderEventListeners.forEach(function(ne){return ne(C,k)}),this.close(!0),[2]}})})},Q.prototype.render=function(){return ft(this,void 0,void 0,function(){var C;return en(this,function(k){switch(k.label){case 0:return(C=new da).naturalSize=this.renderAtNaturalSize,C.imageType=this.renderImageType,C.imageQuality=this.renderImageQuality,C.width=this.renderWidth,C.height=this.renderHeight,this.unzoomFromCrop(),at.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,C.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return k.sent(),[4,C.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,k.sent()]}})})},Q.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new cn("toolbar",` + `))},Q.prototype.removeStyleSheet=function(){var C;this.styleSheet&&(((C=this.styleSheetRoot)!==null&&C!==void 0?C:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Q}(),Rt=function(Q,C){this.selector=Q,this.style=C},un=function(Q,C){this.localName=Q,this.style=C},_n=function(){function Q(){this.blocks=[],this.display=""}return Q.prototype.addButtonBlock=function(C){C.className=this.blockClassName,C.buttonClassName=this.buttonClassName,C.buttonColorsClassName=this.buttonColorsClassName,C.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(C)},Q.prototype.addElementBlock=function(C){C.className===void 0&&(C.className=this.blockClassName),this.blocks.push(C)},Q.prototype.getUI=function(){var C=document.createElement("div");return C.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,C.style.display=this.display,this.blocks.forEach(function(k){return C.appendChild(k.getUI())}),C},Q}(),ar=function(){function Q(){}return Q.prototype.getUI=function(){var C=document.createElement("div");if(C.className=this.className,this.minWidth!==void 0&&(C.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":C.style.justifyContent="flex-start";break;case"center":C.style.justifyContent="center";break;case"end":C.style.justifyContent="flex-end"}return C.style.whiteSpace="nowrap",C},Q}(),dr=function(Q){function C(){var k=Q!==null&&Q.apply(this,arguments)||this;return k.buttons=[],k}return yt(C,Q),C.prototype.addButton=function(k){k.className=this.buttonClassName,k.colorsClassName=this.buttonColorsClassName,k.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(k)},C.prototype.getUI=function(){var k=Q.prototype.getUI.call(this);return this.buttons.forEach(function($){return k.appendChild($.getUI())}),k},C}(ar),er=function(){function Q(C,k){this._isActive=!1,this._isHidden=!1,this._icon=C,this.title=k,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Q.prototype,"icon",{get:function(){return this._icon},set:function(C){this._icon=C,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isActive",{get:function(){return this._isActive},set:function(C){this._isActive=C,this.adjustClassName()},enumerable:!1,configurable:!0}),Q.prototype.getUI=function(){var C=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return C.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},Q.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},Q.prototype.hide=function(){this._isHidden=!0},Q}(),wn=function(Q){function C(){var k=Q!==null&&Q.apply(this,arguments)||this;return k.elements=[],k}return yt(C,Q),C.prototype.addElement=function(k){this.elements.push(k)},C.prototype.getUI=function(){var k=Q.prototype.getUI.call(this);return this.elements.forEach(function($){return k.appendChild($)}),k},C}(ar),Vr=function(){function Q(C,k){this.horizontal=C,this.vertical=k}return Object.defineProperty(Q.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Q.prototype.getVerticalLength=function(C){return C/this.ratio},Q.prototype.getHorizontalLength=function(C){return C*this.ratio},Q}(),ca=function(){function Q(){}return Q.getIcon=function(C,k){if(C>0&&k>0){var $=new Vr(C,k),ne=$.ratio>=1?20:$.getHorizontalLength(20),Y=$.ratio<1?20:$.getVerticalLength(20),we=document.createElementNS("http://www.w3.org/2000/svg","svg");we.setAttribute("xmlns","http://www.w3.org/2000/svg"),we.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(we);var mt=it.createDefs();we.appendChild(mt);var It=it.createElement("clipPath",[["id","text-bg-clip"]]);mt.appendChild(It);var ln=it.createPath(it.getHollowRectanglePath((24-ne)/2,(24-Y)/2,ne,Y,(24-ne)/2+2,(24-Y)/2+2,ne-4,Y-4));we.appendChild(ln);var Ot=it.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ot.appendChild(it.createTSpan(C+":"+k)),we.appendChild(Ot);var yn=Ot.getBBox();it.setAttributes(Ot,[["x",((24-yn.width)/2).toString()],["y",((24-yn.height)/2-yn.y).toString()]]);var bn=it.createPath(it.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(yn.width))/2,(24-Math.ceil(yn.height))/2,Math.ceil(yn.width),Math.ceil(yn.height)));return It.appendChild(bn),it.setAttributes(ln,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(we),we.outerHTML}return''},Q}(),Ur=function(Q){function C(k,$,ne){var Y=Q.call(this,k,$)||this;return Y.isDropdownOpen=!1,Y.onClick=Y.dropdownButtonClicked,Y.dropdownButtons=ne,Y}return yt(C,Q),C.prototype.setupDropdown=function(){var k=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function($){$.className=k.className,$.colorsClassName=k.colorsClassName,k.dropdownBlock.appendChild($.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},C.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},C.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},C.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},C.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},C.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},C}(er),ur=function(){function Q(C,k){this.GRIP_SIZE=10,this.color=C,this.fillColor=k,this.visual=it.createGroup(),this.visual.appendChild(it.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(it.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Q.prototype.ownsTarget=function(C){return C===this.visual||C===this.visual.childNodes[0]||C===this.visual.childNodes[1]},Q.prototype.setCenter=function(C,k){this.visual.childNodes.forEach(function($){return it.setAttributes($,[["cx",C.toString()],["cy",k.toString()]])})},Q}(),Kr=function(){function Q(C,k,$,ne){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=C,this.canvasHeight=k,this.margin=$,this.container=ne,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(Q.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(C){this._aspectRatio=C,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(C){this._isGridVisible=C,this.gridContainer&&it.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(C){this._zoomFactor=C,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Q.prototype.open=function(){var C=this;this.cropShadeElement=it.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=it.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var k=0;kthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-k.height/2),it.setAttributes(this.cropRectElement,[["x",k.x.toString()],["y",k.y.toString()],["width",k.width.toString()],["height",k.height.toString()]]);var $=k.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Y,we){var mt=k.y+$*(we+1);it.setAttributes(Y,[["x1",""+k.x],["y1",""+mt],["x2",""+(k.x+k.width)],["y2",""+mt]])});var ne=k.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Y,we){var mt=k.x+ne*(we+1);it.setAttributes(Y,[["x1",""+mt],["y1",""+k.y],["x2",""+mt],["y2",""+(k.y+k.height)]])}),it.setAttributes(this.cropShadeElement,[["d",it.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,k.x,k.y,k.width,k.height)]]),this.topLeftGrip.setCenter(k.x,k.y),this.topRightGrip.setCenter(k.x+k.width,k.y),this.bottomLeftGrip.setCenter(k.x,k.y+k.height),this.bottomRightGrip.setCenter(k.x+k.width,k.y+k.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Q.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},Q.prototype.clientToLocalCoordinates=function(C,k){var $=this.container.getBoundingClientRect();return{x:C-$.left+this.margin,y:k-$.top+this.margin}},Q.prototype.onPointerDown=function(C){this.container.setPointerCapture(C.pointerId),this.previousPoint=this.clientToLocalCoordinates(C.clientX,C.clientY),this.cropRectElement===C.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(C.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(C.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(C.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(C.target)&&(this.activeGrip=this.bottomRightGrip)},Q.prototype.onPointerMove=function(C){if(this.isMoving)this.move(this.clientToLocalCoordinates(C.clientX,C.clientY));else if(this.activeGrip){var k=this.clientToLocalCoordinates(C.clientX,C.clientY);this.resize(k)}C.preventDefault()},Q.prototype.onPointerUp=function(C){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(C.pointerId)},Q.prototype.move=function(C){var k=C.x-this.previousPoint.x,$=C.y-this.previousPoint.y;this.zoomFactor!==1&&(k=-k/this.zoomFactor,$=-$/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+k),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+$),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=C},Q.prototype.resize=function(C){var k=Object.assign({},this.cropRect),$=C.x-this.previousPoint.x,ne=C.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:k.x+$this.canvasWidth*this.zoomFactor&&($=this.canvasWidth*this.zoomFactor-k.width),k.width+=$}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(k.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength($),k.height=this.aspectRatio.getVerticalLength(k.width)):(k.y+=ne,k.height=this.cropRect.y+this.cropRect.height-k.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?k.height=this.aspectRatio.getVerticalLength(k.width):k.height+=ne}k.width<10&&(k.x=this.cropRect.x,k.width=10),k.height<10&&(k.y=this.cropRect.y,k.height=10),this.previousPoint=C,k.x>=this.margin&&k.y>=this.margin&&k.x-this.margin+k.width<=this.canvasWidth&&k.y-this.margin+k.height<=this.canvasHeight&&(this.cropRect=k,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Q.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var C=this.cropRect.x+this.cropRect.width/2,k=this.cropRect.y+this.cropRect.height/2,$=this.aspectRatio.getHorizontalLength(this.cropRect.height),ne=this.aspectRatio.getVerticalLength(this.cropRect.width);$/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=C-this.cropRect.width/2,this.cropRect.y=k-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},Q.prototype.getRescaledRect=function(C,k,$,ne,Y,we){var mt=$/C,It=ne/k;return{x:(Y.x-we)*mt+we,y:(Y.y-we)*It+we,width:Y.width*mt,height:Y.height*It}},Q.prototype.scaleCanvas=function(C,k){var $=this.getRescaledRect(this.canvasWidth,this.canvasHeight,C,k,this.cropRect,this.margin);this.canvasWidth=C,this.canvasHeight=k,this.onCropChange&&this.onCropChange($),this.setCropRectangle($)},Q}(),oa=function(){function Q(C){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=C,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(Q.prototype,"angle",{get:function(){return this._angle},set:function(C){this._angle=C,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Q.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},Q.prototype.onPointerDown=function(C){this.controlContainer.setPointerCapture(C.pointerId),this.isDragging=!0,this.previousPoint={x:C.clientX,y:C.clientY}},Q.prototype.onPointerMove=function(C){this.isDragging&&(this.onAngleChange&&this.onAngleChange((C.clientX-this.previousPoint.x)/5),this.previousPoint.x=C.clientX)},Q.prototype.onPointerUp=function(C){this.isDragging&&this.onAngleChange&&this.onAngleChange((C.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(C.pointerId)},Q.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var C=this.angleLabelText.getBBox();it.setAttributes(this.angleLabelElement,[["x",((this.width-C.width)/2).toString()],["y",(this.height/2).toString()]])}},Q.prototype.positionScaleShape=function(){if(this.scaleShape){var C=this.scaleShape.transform.baseVal.getItem(0);C.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(C,0)}},Q.prototype.getVisual=function(){var C=document.createElementNS("http://www.w3.org/2000/svg","svg");C.setAttribute("xmlns","http://www.w3.org/2000/svg"),C.setAttribute("width",this.width+"px"),C.setAttribute("height",this.height+"px"),C.setAttribute("viewBox","0 0 "+this.width+" "+this.height),C.style.flexShrink="0",document.body.appendChild(C);for(var k="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,$=1;$<=this.width/5+10;$++){var ne=$%5==0?this.height/3:this.height/6;k+="h4v"+-ne+"h1v"+ne}k+="v1H0Z",this.scaleShape=it.createPath(k);var Y=it.createTransform();this.scaleShape.transform.baseVal.appendItem(Y),C.appendChild(this.scaleShape),this.angleLabelElement=it.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=it.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var we=it.createTSpan("");return we.innerHTML="°",this.angleLabelElement.appendChild(we),C.appendChild(this.angleLabelElement),document.body.removeChild(C),C},Q}(),ma=function(){function Q(){this.naturalSize=!1,this.imageType="image/png"}return Q.prototype.rasterize=function(C,k,$,ne,Y,we,mt){var It=this;return new Promise(function(ln){var Ot=document.createElement("canvas");Ot.width=C.width.baseVal.value-2*ne,Ot.height=C.height.baseVal.value-2*ne;var yn=1,bn=1;It.naturalSize===!0?(yn=k.naturalWidth/(C.width.baseVal.value-2*ne)/we,bn=k.naturalHeight/(C.height.baseVal.value-2*ne)/mt,Ot.width=k.naturalWidth/we,Ot.height=k.naturalHeight/mt):It.width!==void 0&&It.height!==void 0&&(yn=It.width/$.width,bn=It.height/$.height,Ot.width*=yn,Ot.height*=bn);var Tn=Ot.getContext("2d");Tn.translate(Ot.width/2,Ot.height/2),Tn.rotate(Y*Math.PI/180),Tn.scale(we,mt),Tn.translate(-Ot.width/2,-Ot.height/2),Tn.drawImage(k,0,0,Ot.width,Ot.height);var pr=document.createElement("canvas");pr.width=$.width*yn,pr.height=$.height*bn,pr.getContext("2d").putImageData(Tn.getImageData(($.x-ne)*yn,($.y-ne)*bn,$.width*yn,$.height*bn),0,0),ln(pr.toDataURL(It.imageType,It.imageQuality))})},Q}(),Wt=function(){function Q(C){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=Q.instanceCounter++,this.styles=new xt(this.instanceNo),this.target=C,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(Q.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(C){this._zoomToCropEnabled=C,C?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(C){this._isGridVisible=C,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"gridLines",{get:function(){return this._gridLines},set:function(C){this._gridLines=C,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(C){this._rotationAngle=C,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"aspectRatio",{get:function(){var C;return(C=this._aspectRatio)!==null&&C!==void 0?C:this.aspectRatios[0]},set:function(C){this._aspectRatio=C},enumerable:!1,configurable:!0}),Q.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},Q.prototype.show=function(){this.showUI(),this.open()},Q.prototype.close=function(C){C===void 0&&(C=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),C||this.closeEventListeners.forEach(function(k){return k()}),this._isOpen=!1)},Q.prototype.addRenderEventListener=function(C){this.renderEventListeners.push(C)},Q.prototype.removeRenderEventListener=function(C){this.renderEventListeners.indexOf(C)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(C),1)},Q.prototype.addCloseEventListener=function(C){this.closeEventListeners.push(C)},Q.prototype.removeCloseEventListener=function(C){this.closeEventListeners.indexOf(C)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(C),1)},Q.prototype.setupResizeObserver=function(){var C=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){C.resize(C.target.clientWidth,C.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},Q.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var C=1*this.target.clientWidth/this.target.clientHeight,k=this.contentDiv.clientWidth/C>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*C:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,$=k+2*this.CANVAS_MARGINC+this.CANVAS_MARGIN?this.target.offsetTop-(C+this.CANVAS_MARGIN):0;this.coverDiv.style.top=k+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},Q.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Q.prototype.addTopToolbar=function(){var C=this;this.topToolbar=new _n,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new dr;k.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(k);var $=[];this.aspectRatios.forEach(function(bn){var Tn=new er(ca.getIcon(bn.horizontal,bn.vertical),bn.horizontal===0&&bn.vertical===0?"FREE":bn.horizontal+":"+bn.vertical);Tn.onClick=function(){return C.ratioButtonClicked(bn)},$.push(Tn)}),this.aspectRatioButton=new Ur(ca.getIcon(0,0),"Aspect ratio",$),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,k.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ne=new er('',"Toggle grid");ne.isActive=this.isGridVisible,ne.onClick=function(){C.isGridVisible=!C.isGridVisible,ne.isActive=C.isGridVisible},k.addButton(ne);var Y=new er('',"Zoom to selection");if(Y.isActive=this.zoomToCropEnabled,Y.onClick=function(){C.zoomToCropEnabled=!C.zoomToCropEnabled,Y.isActive=C.zoomToCropEnabled},k.addButton(Y),!Xt.isLicensed){var we=new wn;this.topToolbar.addElementBlock(we);var mt=document.createElement("div");mt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var It=document.createElement("a");It.style.color="currentColor",It.href="https://markerjs.com/products/cropro",It.target="_blank",It.innerHTML='',mt.appendChild(It),we.addElement(mt)}var ln=new dr;ln.minWidth=3*this.toolbarHeight+"px",ln.contentAlign="end",this.topToolbar.addButtonBlock(ln);var Ot=new er('',"OK");Ot.onClick=this.startRenderAndClose,ln.addButton(Ot),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ot.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var yn=new er('',"Close");yn.onClick=this.close,ln.addButton(yn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(yn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Q.prototype.addBottomToolbar=function(){var C=this;this.bottomToolbar=new _n,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new dr;k.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(k);var $=new er('',"Rotate left");$.onClick=this.rotateLeftButtonClicked,k.addButton($);var ne=new er('',"Rotate right");ne.onClick=this.rotateRightButtonClicked,k.addButton(ne);var Y=new wn;Y.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Y),this.straightener=new oa("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(ln){C.rotateBy(ln),C.straightener.angle=C.rotationAngle},Y.addElement(this.straightener.getUI());var we=new dr;we.minWidth=2*this.toolbarHeight+"px",we.contentAlign="end",this.bottomToolbar.addButtonBlock(we);var mt=new er('',"Flip horizontal");mt.onClick=this.flipHorizontallyButtonClicked,we.addButton(mt);var It=new er('',"Flip vertical");It.onClick=this.flipVerticallyButtonClicked,we.addButton(It)},Q.prototype.ratioButtonClicked=function(C){this.aspectRatio=C,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Q.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=ca.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Q.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Vr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Q.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Q.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Q.prototype.restoreState=function(C){if(C){var k=this.cropLayer.getRescaledRect(C.width,C.height,this.imageWidth,this.imageHeight,C.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(k),this.cropRectChanged(k),this.flippedHorizontally=C.flippedHorizontally,this.flippedVertically=C.flippedVertically,this.applyFlip(),this.rotationAngle=C.rotationAngle,this.applyRotation()}},Q.prototype.clientToLocalCoordinates=function(C,k){var $=this.cropImage.getBoundingClientRect();return{x:C-$.left,y:k-$.top}},Q.prototype.onWindowResize=function(){this.positionUI()},Q.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var C=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=C+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},Q.prototype.rotateLeftButtonClicked=function(){var C=this.rotationAngle-90;this.rotationAngle%90!=0&&(C+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(C)},Q.prototype.rotateRightButtonClicked=function(){var C=this.rotationAngle+90;this.rotationAngle%90!=0&&(C-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(C)},Q.prototype.rotateTo=function(C){C=(C=C>180?C-360:C)<=-180?C+360:C,this.rotationAngle=C,this.applyRotation()},Q.prototype.rotateBy=function(C){this.rotateTo((this.rotationAngle+C)%360)},Q.prototype.applyRotation=function(){var C=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var k=this.editingTargetRotationContainer.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(k,0);var $=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/$.width,this.imageHeight/$.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=C},Q.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Q.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Q.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Q.prototype.startRenderAndClose=function(){return ft(this,void 0,void 0,function(){var C,k;return qt(this,function($){switch($.label){case 0:return[4,this.render()];case 1:return C=$.sent(),k=this.getState(),this.renderEventListeners.forEach(function(ne){return ne(C,k)}),this.close(!0),[2]}})})},Q.prototype.render=function(){return ft(this,void 0,void 0,function(){var C;return qt(this,function(k){switch(k.label){case 0:return(C=new ma).naturalSize=this.renderAtNaturalSize,C.imageType=this.renderImageType,C.imageQuality=this.renderImageQuality,C.width=this.renderWidth,C.height=this.renderHeight,this.unzoomFromCrop(),it.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,C.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return k.sent(),[4,C.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,k.sent()]}})})},Q.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new un("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -178,13 +178,13 @@ PERFORMANCE OF THIS SOFTWARE. box-sizing: content-box; overflow: hidden; line-height: 0px; - `)),this.toolbarStyleColorsClass=this.styles.addClass(new cn("toolbar_colors",` + `)),this.toolbarStyleColorsClass=this.styles.addClass(new un("toolbar_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; - `)),this.toolbarBlockStyleClass=this.styles.addClass(new cn("toolbar-block",` + `)),this.toolbarBlockStyleClass=this.styles.addClass(new un("toolbar-block",` display: flex; align-items: center; box-sizing: content-box; - `));var C=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new cn("toolbar_button",` + `));var C=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new un("toolbar_button",` display: inline-block; width: `+(this.toolbarHeight-2*C)+`px; height: `+(this.toolbarHeight-2*C)+`px; @@ -192,10 +192,10 @@ PERFORMANCE OF THIS SOFTWARE. cursor: default; user-select: none; box-sizing: content-box; - `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new cn("toolbar_button_colors",` + `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new un("toolbar_button_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new cn("toolbar_active_button",` + `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new un("toolbar_active_button",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; background-color: `+this.styles.settings.toolbarBackgroundActiveColor+` @@ -203,7 +203,7 @@ PERFORMANCE OF THIS SOFTWARE. height: `+this.toolbarHeight/2+`px; `)),this.styles.addRule(new Rt("."+this.toolbarButtonStyleColorsClass.name+":hover",` background-color: `+this.styles.settings.toolbarBackgroundHoverColor+` - `)),this.toolbarDropdownStyleClass=this.styles.addClass(new cn("toolbar_dropdown",` + `)),this.toolbarDropdownStyleClass=this.styles.addClass(new un("toolbar_dropdown",` position: absolute; max-width: `+4*this.toolbarHeight+`px; z-index: 20; @@ -212,14 +212,14 @@ PERFORMANCE OF THIS SOFTWARE. box-shadow: 3px 3px rgba(33, 33, 33, 0.1); margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px; line-height: 0px; - `)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new cn("toolbar_dropdown_colors",` + `)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new un("toolbar_dropdown_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; - `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new cn("toolbar_straightener_block",` + `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new un("toolbar_straightener_block",` display: flex; overflow: hidden; justify-content: center; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%); - `)),this.toolbarStraightenerStyleClass=this.styles.addClass(new cn("toolbar_straightener",` + `)),this.toolbarStraightenerStyleClass=this.styles.addClass(new un("toolbar_straightener",` display: flex; overflow: hidden; justify-content: center; @@ -228,31 +228,31 @@ PERFORMANCE OF THIS SOFTWARE. cursor: default; user-select: none; box-sizing: content-box; - `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new cn("toolbar_straightener_colors",` + `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new un("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},Q.instanceCounter=0,Q}(),Tn=M("8hTe"),lr=M.n(Tn),Pr=/]*>/g;function Er(Q){var C=document.createElement("div");return C.innerHTML=Q,C.childNodes.length===0?"":C.childNodes[0].nodeValue}var _r=Ce.a=function(Q){var C=Q.value,k=C===void 0?"":C,$=Q.edit,ne=$===void 0?!1:$,Y=Q.className,we=Q.showTextOnly,mt=Q.showLines,It=Q.replaces,un=Q.zoomImg,Ot=Q.hasMask,bn=Q.style,En=bn===void 0?{}:bn,On=Q.stylesPrev,pr=On===void 0?{}:On,gr=String(k),Un=Object(R.useRef)(),jn=Object(R.useRef)(),Fn=Object(R.useState)(""),Jn=Object(W.a)(Fn,2),Tr=Jn[0],Zn=Jn[1],yr=Object(R.useState)("office"),Ht=Object(W.a)(yr,2),Hn=Ht[0],Hr=Ht[1],Lr=function(){var et=new Wt(jn.current);et.displayMode="popup",et.addRenderEventListener(function(){var bt=Object(w.a)(L.a.mark(function ht(Tt){var it;return L.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Un.current.style.display="none",ct.next=3,Object(Ye.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Tt}});case 3:it=ct.sent,it!=null&&it.id&&It(jn.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(it==null?void 0:it.id,"?type=").concat(it.content_type));case 5:case"end":return ct.stop()}},ht)}));return function(ht){return bt.apply(this,arguments)}}()),et.show()},or=function(){var et=new ge(jn.current);et.settings.displayMode="popup",et.addEventListener("render",function(){var bt=Object(w.a)(L.a.mark(function ht(Tt){var it;return L.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(Un.current.style.display="none",!jn.current){ct.next=6;break}return ct.next=4,Object(Ye.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Tt.dataUrl}});case 4:it=ct.sent,it!=null&&it.id&&It(jn.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(it==null?void 0:it.id,"?type=").concat(it.content_type));case 6:case"end":return ct.stop()}},ht)}));return function(ht){return bt.apply(this,arguments)}}()),et.show(),window.markerArea=et},Cr=Object(R.useMemo)(function(){try{var ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,et=/\"\/api\/attachments\/|\"\/attachments\/download\//g,bt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;gr=gr.replace(ut,"("+ee.a.API_SERVER+"/api/attachments/").replace(et,'"'+ee.a.API_SERVER+"/api/attachments/").replace(bt,'"'+ee.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` + `))},Q.instanceCounter=0,Q}(),Sn=M("8hTe"),lr=M.n(Sn),Rr=/]*>/g;function Er(Q){var C=document.createElement("div");return C.innerHTML=Q,C.childNodes.length===0?"":C.childNodes[0].nodeValue}var _r=Ce.a=function(Q){var C=Q.value,k=C===void 0?"":C,$=Q.edit,ne=$===void 0?!1:$,Y=Q.className,we=Q.showTextOnly,mt=Q.showLines,It=Q.replaces,ln=Q.zoomImg,Ot=Q.hasMask,yn=Q.style,bn=yn===void 0?{}:yn,Tn=Q.stylesPrev,pr=Tn===void 0?{}:Tn,gr=String(k),Un=Object(R.useRef)(),Nn=Object(R.useRef)(),Fn=Object(R.useState)(""),$n=Object(W.a)(Fn,2),Sr=$n[0],Qn=$n[1],yr=Object(R.useState)("office"),Ht=Object(W.a)(yr,2),Hn=Ht[0],Hr=Ht[1],Ar=function(){var et=new Wt(Nn.current);et.displayMode="popup",et.addRenderEventListener(function(){var bt=Object(w.a)(L.a.mark(function ht(Tt){var nt;return L.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Un.current.style.display="none",ct.next=3,Object(Ye.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Tt}});case 3:nt=ct.sent,nt!=null&&nt.id&&It(Nn.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(nt==null?void 0:nt.id,"?type=").concat(nt.content_type));case 5:case"end":return ct.stop()}},ht)}));return function(ht){return bt.apply(this,arguments)}}()),et.show()},or=function(){var et=new ge(Nn.current);et.settings.displayMode="popup",et.addEventListener("render",function(){var bt=Object(w.a)(L.a.mark(function ht(Tt){var nt;return L.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(Un.current.style.display="none",!Nn.current){ct.next=6;break}return ct.next=4,Object(Ye.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Tt.dataUrl}});case 4:nt=ct.sent,nt!=null&&nt.id&&It(Nn.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(nt==null?void 0:nt.id,"?type=").concat(nt.content_type));case 6:case"end":return ct.stop()}},ht)}));return function(ht){return bt.apply(this,arguments)}}()),et.show(),window.markerArea=et},Cr=Object(R.useMemo)(function(){try{var ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,et=/\"\/api\/attachments\/|\"\/attachments\/download\//g,bt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;gr=gr.replace(ut,"("+ee.a.API_SERVER+"/api/attachments/").replace(et,'"'+ee.a.API_SERVER+"/api/attachments/").replace(bt,'"'+ee.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),gr=gr.replace(new RegExp("(?[TOC]

    ",P()),x()),ht=ht.replace(/(__special_katext_id_\d+__)/g,function(Yt,ct){var ye=Tt[ct],Et=ye.type,nt=ye.expression;return Object(he.renderToString)(Er(nt)||"",{displayMode:Et==="block",throwOnError:!1,output:"html"})}),ht=ht.replace(/▁/g,"\u2581\u2581\u2581"),S(),we){var it=document.createElement("div");return it.innerHTML=ht,it.innerText}return setTimeout(function(){return Xe()},500),ht},[gr]),te=Object(R.useRef)();E.WebkitLineClamp=mt,mt&&(En=Object(O.a)(Object(O.a)({},En),E));function De(ut){var et=ut.target;if(et.tagName.toUpperCase()==="IMG"){if(un){var bt=et.getAttribute("src");Zn(bt),Hr("image")}}else if(et.tagName.toUpperCase()==="A"){var ht=et.getAttribute("href");if(ht.indexOf("office")>-1)ut.preventDefault(),Zn(ht),Hr("office");else if(ht.indexOf("application/pdf")>-1)ut.preventDefault(),Zn(ht),Hr("pdf");else if(ht.indexOf("type=text")>-1)ut.preventDefault(),Zn(ht),Hr("html");else if(ht.startsWith("#")){ut.preventDefault();var Tt=document.getElementById(ht.replace("#",""));Tt&&Tt.scrollIntoView(!0)}}}var Xe=function(){var et,bt=(et=te.current)===null||et===void 0?void 0:et.querySelectorAll("video");bt==null||bt.forEach(function(ht){if(ht.oncontextmenu=function(){return!1},ht.src.indexOf(".m3u8")>-1&&!ht.canPlayType("application/vnd.apple.mpegurl")){if(q.a.isSupported()){var Tt=new q.a;Tt.loadSource(ht.src),Tt.attachMedia(ht)}}})};Object(R.useEffect)(function(){if(te.current&&Cr&&(Cr.match(Pr)&&window.PR.prettyPrint()),te.current)return te.current.addEventListener("click",De),function(){te.current.removeEventListener("click",De),S(),x()}},[Cr,te.current,De]);var ze=function(et){if(!ne)return;et.target.nodeName==="IMG"?(Un.current.style.display="flex",Un.current.style.width=et.target.clientWidth+"px",Un.current.style.height=et.target.clientHeight+"px",Un.current.style.top=et.target.offsetTop+"px",Un.current.style.left=et.target.offsetLeft+"px",jn.current.src=et.target.getAttribute("src")):Un.current.style.display="none"};return d.a.createElement("div",{style:{position:"relative"}},d.a.createElement("div",{ref:te,style:Object(O.a)({},En),className:"".concat(Y||""," markdown-body ").concat(lr.a.mdBody),onMouseOver:ze,dangerouslySetInnerHTML:{__html:Cr}}),d.a.createElement("div",{ref:Un,className:lr.a.button},d.a.createElement(G.a,null,d.a.createElement(z.a,{onClick:function(){return Lr()}},"\u88C1\u526A"),d.a.createElement(z.a,{onClick:function(){return or()}},"\u7F16\u8F91"))),d.a.createElement("img",{ref:jn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),d.a.createElement(be.a,{close:!0,data:Tr,hasMask:Ot,type:Tr!=null&&Tr.length?Hn:"",style:Object(O.a)({},pr),onClose:function(){return Zn("")}}))}},"9VGf":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return I});var re=M("q1tI"),G=M.n(re);function I(z,O){var w=Object(re.useRef)();Object(re.useEffect)(function(){w.current=z}),Object(re.useEffect)(function(){function W(){w.current()}if(O!==null){var y=setInterval(W,O);return function(){return clearInterval(y)}}},[O])}},BU3w:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return w});var re=M("MNnm"),G="rc-util-key";function I(W){if(W.attachTo)return W.attachTo;var y=document.querySelector("head");return y||document.body}function z(W){var y,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(re.a)())return null;var R=document.createElement("style");if((y=L.csp)===null||y===void 0?void 0:y.nonce){var d;R.nonce=(d=L.csp)===null||d===void 0?void 0:d.nonce}R.innerHTML=W;var p=I(L),_=p.firstChild;return L.prepend&&p.prepend?p.prepend(R):L.prepend&&_?p.insertBefore(R,_):p.appendChild(R),R}var O=new Map;function w(W,y){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=I(L);if(!O.has(R)){var d=z("",L),p=d.parentNode;O.set(R,p),p.removeChild(d)}var _=Array.from(O.get(R).children).find(function(r){return r.tagName==="STYLE"&&r[G]===y});if(_){var v,h;if(((v=L.csp)===null||v===void 0?void 0:v.nonce)&&_.nonce!==((h=L.csp)===null||h===void 0?void 0:h.nonce)){var c;_.nonce=(c=L.csp)===null||c===void 0?void 0:c.nonce}return _.innerHTML!==W&&(_.innerHTML=W),_}var n=z(W,L);return n[G]=y,n}},Bd2K:function(nn,Ce,M){(function(re){re(M("VrN/"),M("osHv"))})(function(re){re.defineOption("autoCloseTags",!1,function(L,R,d){if(d!=re.Init&&d&&L.removeKeyMap("autoCloseTags"),!R)return;var p={name:"autoCloseTags"};(typeof R!="object"||R.whenClosing!==!1)&&(p["'/'"]=function(_){return w(_)}),(typeof R!="object"||R.whenOpening!==!1)&&(p["'>'"]=function(_){return z(_)}),L.addKeyMap(p)});var G=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function z(L){if(L.getOption("disableInput"))return re.Pass;for(var R=L.listSelections(),d=[],p=L.getOption("autoCloseTags"),_=0;_v.ch&&(o=o.slice(0,o.length-h.end+v.ch));var b=o.toLowerCase();if(!o||h.type=="string"&&(h.end!=v.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||h.string.length==1)||h.type=="tag"&&r.close||h.string.indexOf("/")==v.ch-h.start-1||x&&W(x,b)>-1||y(L,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(n)||[],o,v,!0))return re.Pass;var P=typeof p=="object"&&p.emptyTags;if(P&&W(P,o)>-1){d[_]={text:"/>",newPos:re.Pos(v.line,v.ch+2)};continue}var T=E&&W(E,b)>-1;d[_]={indent:T,text:">"+(T?` +`)}catch(Yt){}var ht=H(gr),Tt=D();if(gr.match(/\[TOC\]/)&&(ht=ht.replace("

    [TOC]

    ",P()),x()),ht=ht.replace(/(__special_katext_id_\d+__)/g,function(Yt,ct){var be=Tt[ct],Et=be.type,rt=be.expression;return Object(he.renderToString)(Er(rt)||"",{displayMode:Et==="block",throwOnError:!1,output:"html"})}),ht=ht.replace(/▁/g,"\u2581\u2581\u2581"),S(),we){var nt=document.createElement("div");return nt.innerHTML=ht,nt.innerText}return setTimeout(function(){return Xe()},500),ht},[gr]),te=Object(R.useRef)();E.WebkitLineClamp=mt,mt&&(bn=Object(O.a)(Object(O.a)({},bn),E));function De(ut){var et=ut.target;if(et.tagName.toUpperCase()==="IMG"){if(ln){var bt=et.getAttribute("src");Qn(bt),Hr("image")}}else if(et.tagName.toUpperCase()==="A"){var ht=et.getAttribute("href");if(ht.indexOf("office")>-1)ut.preventDefault(),Qn(ht),Hr("office");else if(ht.indexOf("application/pdf")>-1)ut.preventDefault(),Qn(ht),Hr("pdf");else if(ht.indexOf("type=text")>-1)ut.preventDefault(),Qn(ht),Hr("html");else if(ht.startsWith("#")){ut.preventDefault();var Tt=document.getElementById(ht.replace("#",""));Tt&&Tt.scrollIntoView(!0)}}}var Xe=function(){var et,bt=(et=te.current)===null||et===void 0?void 0:et.querySelectorAll("video");bt==null||bt.forEach(function(ht){if(ht.oncontextmenu=function(){return!1},ht.src.indexOf(".m3u8")>-1&&!ht.canPlayType("application/vnd.apple.mpegurl")){if(q.a.isSupported()){var Tt=new q.a;Tt.loadSource(ht.src),Tt.attachMedia(ht)}}})};Object(R.useEffect)(function(){if(te.current&&Cr&&(Cr.match(Rr)&&window.PR.prettyPrint()),te.current)return te.current.addEventListener("click",De),function(){te.current.removeEventListener("click",De),S(),x()}},[Cr,te.current,De]);var ze=function(et){if(!ne)return;et.target.nodeName==="IMG"?(Un.current.style.display="flex",Un.current.style.width=et.target.clientWidth+"px",Un.current.style.height=et.target.clientHeight+"px",Un.current.style.top=et.target.offsetTop+"px",Un.current.style.left=et.target.offsetLeft+"px",Nn.current.src=et.target.getAttribute("src")):Un.current.style.display="none"};return d.a.createElement("div",{style:{position:"relative"}},d.a.createElement("div",{ref:te,style:Object(O.a)({},bn),className:"".concat(Y||""," markdown-body ").concat(lr.a.mdBody),onMouseOver:ze,dangerouslySetInnerHTML:{__html:Cr}}),d.a.createElement("div",{ref:Un,className:lr.a.button},d.a.createElement(G.a,null,d.a.createElement(z.a,{onClick:function(){return Ar()}},"\u88C1\u526A"),d.a.createElement(z.a,{onClick:function(){return or()}},"\u7F16\u8F91"))),d.a.createElement("img",{ref:Nn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),d.a.createElement(ye.a,{close:!0,data:Sr,hasMask:Ot,type:Sr!=null&&Sr.length?Hn:"",style:Object(O.a)({},pr),onClose:function(){return Qn("")}}))}},"9VGf":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return I});var re=M("q1tI"),G=M.n(re);function I(z,O){var w=Object(re.useRef)();Object(re.useEffect)(function(){w.current=z}),Object(re.useEffect)(function(){function W(){w.current()}if(O!==null){var y=setInterval(W,O);return function(){return clearInterval(y)}}},[O])}},BU3w:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return w});var re=M("MNnm"),G="rc-util-key";function I(W){if(W.attachTo)return W.attachTo;var y=document.querySelector("head");return y||document.body}function z(W){var y,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(re.a)())return null;var R=document.createElement("style");if((y=L.csp)===null||y===void 0?void 0:y.nonce){var d;R.nonce=(d=L.csp)===null||d===void 0?void 0:d.nonce}R.innerHTML=W;var p=I(L),_=p.firstChild;return L.prepend&&p.prepend?p.prepend(R):L.prepend&&_?p.insertBefore(R,_):p.appendChild(R),R}var O=new Map;function w(W,y){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=I(L);if(!O.has(R)){var d=z("",L),p=d.parentNode;O.set(R,p),p.removeChild(d)}var _=Array.from(O.get(R).children).find(function(r){return r.tagName==="STYLE"&&r[G]===y});if(_){var v,h;if(((v=L.csp)===null||v===void 0?void 0:v.nonce)&&_.nonce!==((h=L.csp)===null||h===void 0?void 0:h.nonce)){var c;_.nonce=(c=L.csp)===null||c===void 0?void 0:c.nonce}return _.innerHTML!==W&&(_.innerHTML=W),_}var n=z(W,L);return n[G]=y,n}},Bd2K:function(tn,Ce,M){(function(re){re(M("VrN/"),M("osHv"))})(function(re){re.defineOption("autoCloseTags",!1,function(L,R,d){if(d!=re.Init&&d&&L.removeKeyMap("autoCloseTags"),!R)return;var p={name:"autoCloseTags"};(typeof R!="object"||R.whenClosing!==!1)&&(p["'/'"]=function(_){return w(_)}),(typeof R!="object"||R.whenOpening!==!1)&&(p["'>'"]=function(_){return z(_)}),L.addKeyMap(p)});var G=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function z(L){if(L.getOption("disableInput"))return re.Pass;for(var R=L.listSelections(),d=[],p=L.getOption("autoCloseTags"),_=0;_v.ch&&(o=o.slice(0,o.length-h.end+v.ch));var b=o.toLowerCase();if(!o||h.type=="string"&&(h.end!=v.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||h.string.length==1)||h.type=="tag"&&r.close||h.string.indexOf("/")==v.ch-h.start-1||x&&W(x,b)>-1||y(L,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(n)||[],o,v,!0))return re.Pass;var P=typeof p=="object"&&p.emptyTags;if(P&&W(P,o)>-1){d[_]={text:"/>",newPos:re.Pos(v.line,v.ch+2)};continue}var T=E&&W(E,b)>-1;d[_]={indent:T,text:">"+(T?` -`:"")+"",newPos:T?re.Pos(v.line+1,0):re.Pos(v.line,v.ch+1)}}for(var m=typeof p=="object"&&p.dontIndentOnAutoClose,_=R.length-1;_>=0;_--){var g=d[_];L.replaceRange(g.text,R[_].head,R[_].anchor,"+insert");var s=L.listSelections().slice(0);s[_]={head:g.newPos,anchor:g.newPos},L.setSelections(s),!m&&g.indent&&(L.indentLine(g.newPos.line,null,!0),L.indentLine(g.newPos.line+1,null,!0))}}function O(L,R){for(var d=L.listSelections(),p=[],_=R?"/":""&&(x+=">"),p[c]=x}if(L.replaceSelections(p),d=L.listSelections(),!h)for(var c=0;c=0&&R[n]==d;n--)++c;p=h.to;for(var n=1;n0){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:"",R=[],d=0;dNe.length)&&(Se=Ne.length);for(var Te=0,le=new Array(Se);Te=Ne.length?{done:!0}:{done:!1,value:Ne[le++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Te=Ne[Symbol.iterator](),Te.next.bind(Te)}function w(Ne,Se){return Se={exports:{}},Ne(Se,Se.exports),Se.exports}var W=w(function(Ne){function Se(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Te(le){Ne.exports.defaults=le}Ne.exports={defaults:Se(),getDefaults:Se,changeDefaults:Te}}),y=W.defaults,L=W.getDefaults,R=W.changeDefaults,d=/[&<>"']/,p=/[&<>"']/g,_=/[<>"']|&(?!#?\w+;)/,v=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(Se){return h[Se]};function n(Ne,Se){if(Se){if(d.test(Ne))return Ne.replace(p,c)}else if(_.test(Ne))return Ne.replace(v,c);return Ne}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Ne){return Ne.replace(r,function(Se,Te){return Te=Te.toLowerCase(),Te==="colon"?":":Te.charAt(0)==="#"?Te.charAt(1)==="x"?String.fromCharCode(parseInt(Te.substring(2),16)):String.fromCharCode(+Te.substring(1)):""})}var l=/(^|[^\[])\^/g;function x(Ne,Se){Ne=Ne.source||Ne,Se=Se||"";var Te={replace:function(fe,_e){return _e=_e.source||_e,_e=_e.replace(l,"$1"),Ne=Ne.replace(fe,_e),Te},getRegex:function(){return new RegExp(Ne,Se)}};return Te}var E=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ne,Se,Te){if(Ne){var le;try{le=decodeURIComponent(o(Te)).replace(E,"").toLowerCase()}catch(fe){return null}if(le.indexOf("javascript:")===0||le.indexOf("vbscript:")===0||le.indexOf("data:")===0)return null}Se&&!b.test(Te)&&(Te=u(Se,Te));try{Te=encodeURI(Te).replace(/%25/g,"%")}catch(fe){return null}return Te}var T={},m=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(Ne,Se){T[" "+Ne]||(m.test(Ne)?T[" "+Ne]=Ne+"/":T[" "+Ne]=N(Ne,"/",!0)),Ne=T[" "+Ne];var Te=Ne.indexOf(":")===-1;return Se.substring(0,2)==="//"?Te?Se:Ne.replace(g,"$1")+Se:Se.charAt(0)==="/"?Te?Se:Ne.replace(s,"$1")+Se:Ne+Se}var D={exec:function(){}};function S(Ne){for(var Se=1,Te,le;Se=0&&rt[jt]==="\\";)Je=!Je;return Je?"|":" |"}),le=Te.split(/ \|/),fe=0;if(le.length>Se)le.splice(Se);else for(;le.length",newPos:T?re.Pos(v.line+1,0):re.Pos(v.line,v.ch+1)}}for(var m=typeof p=="object"&&p.dontIndentOnAutoClose,_=R.length-1;_>=0;_--){var g=d[_];L.replaceRange(g.text,R[_].head,R[_].anchor,"+insert");var s=L.listSelections().slice(0);s[_]={head:g.newPos,anchor:g.newPos},L.setSelections(s),!m&&g.indent&&(L.indentLine(g.newPos.line,null,!0),L.indentLine(g.newPos.line+1,null,!0))}}function O(L,R){for(var d=L.listSelections(),p=[],_=R?"/":""&&(x+=">"),p[c]=x}if(L.replaceSelections(p),d=L.listSelections(),!h)for(var c=0;c=0&&R[n]==d;n--)++c;p=h.to;for(var n=1;n0){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:"",R=[],d=0;dNe.length)&&(Se=Ne.length);for(var Te=0,le=new Array(Se);Te=Ne.length?{done:!0}:{done:!1,value:Ne[le++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Te=Ne[Symbol.iterator](),Te.next.bind(Te)}function w(Ne,Se){return Se={exports:{}},Ne(Se,Se.exports),Se.exports}var W=w(function(Ne){function Se(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Te(le){Ne.exports.defaults=le}Ne.exports={defaults:Se(),getDefaults:Se,changeDefaults:Te}}),y=W.defaults,L=W.getDefaults,R=W.changeDefaults,d=/[&<>"']/,p=/[&<>"']/g,_=/[<>"']|&(?!#?\w+;)/,v=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(Se){return h[Se]};function n(Ne,Se){if(Se){if(d.test(Ne))return Ne.replace(p,c)}else if(_.test(Ne))return Ne.replace(v,c);return Ne}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Ne){return Ne.replace(r,function(Se,Te){return Te=Te.toLowerCase(),Te==="colon"?":":Te.charAt(0)==="#"?Te.charAt(1)==="x"?String.fromCharCode(parseInt(Te.substring(2),16)):String.fromCharCode(+Te.substring(1)):""})}var l=/(^|[^\[])\^/g;function x(Ne,Se){Ne=Ne.source||Ne,Se=Se||"";var Te={replace:function(fe,_e){return _e=_e.source||_e,_e=_e.replace(l,"$1"),Ne=Ne.replace(fe,_e),Te},getRegex:function(){return new RegExp(Ne,Se)}};return Te}var E=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ne,Se,Te){if(Ne){var le;try{le=decodeURIComponent(o(Te)).replace(E,"").toLowerCase()}catch(fe){return null}if(le.indexOf("javascript:")===0||le.indexOf("vbscript:")===0||le.indexOf("data:")===0)return null}Se&&!b.test(Te)&&(Te=u(Se,Te));try{Te=encodeURI(Te).replace(/%25/g,"%")}catch(fe){return null}return Te}var T={},m=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(Ne,Se){T[" "+Ne]||(m.test(Ne)?T[" "+Ne]=Ne+"/":T[" "+Ne]=N(Ne,"/",!0)),Ne=T[" "+Ne];var Te=Ne.indexOf(":")===-1;return Se.substring(0,2)==="//"?Te?Se:Ne.replace(g,"$1")+Se:Se.charAt(0)==="/"?Te?Se:Ne.replace(s,"$1")+Se:Ne+Se}var D={exec:function(){}};function S(Ne){for(var Se=1,Te,le;Se=0&&at[jt]==="\\";)Je=!Je;return Je?"|":" |"}),le=Te.split(/ \|/),fe=0;if(le.length>Se)le.splice(Se);else for(;le.length=le.length?fe.slice(le.length):fe}).join(` `)}var Pe=function(){function Ne(Te){this.options=Te||U}var Se=Ne.prototype;return Se.space=function(le){var fe=this.rules.block.newline.exec(le);if(fe)return fe[0].length>1?{type:"space",raw:fe[0]}:{raw:` -`}},Se.code=function(le,fe){var _e=this.rules.block.code.exec(le);if(_e){var Me=fe[fe.length-1];if(Me&&Me.type==="paragraph")return{raw:_e[0],text:_e[0].trimRight()};var rt=_e[0].replace(/^ {4}/gm,"");return{type:"code",raw:_e[0],codeBlockStyle:"indented",text:this.options.pedantic?rt:B(rt,` +`}},Se.code=function(le,fe){var _e=this.rules.block.code.exec(le);if(_e){var Me=fe[fe.length-1];if(Me&&Me.type==="paragraph")return{raw:_e[0],text:_e[0].trimRight()};var at=_e[0].replace(/^ {4}/gm,"");return{type:"code",raw:_e[0],codeBlockStyle:"indented",text:this.options.pedantic?at:B(at,` `)}}},Se.fences=function(le){var fe=this.rules.block.fences.exec(le);if(fe){var _e=fe[0],Me=Ye(_e,fe[3]||"");return{type:"code",raw:_e,lang:fe[2]?fe[2].trim():fe[2],text:Me}}},Se.heading=function(le){var fe=this.rules.block.heading.exec(le);if(fe)return{type:"heading",raw:fe[0],depth:fe[1].length,text:fe[2]}},Se.nptable=function(le){var fe=this.rules.block.nptable.exec(le);if(fe){var _e={type:"table",header:q(fe[1].replace(/^ *| *\| *$/g,"")),align:fe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:fe[3]?fe[3].replace(/\n$/,"").split(` -`):[],raw:fe[0]};if(_e.header.length===_e.align.length){var Me=_e.align.length,rt;for(rt=0;rt ?/gm,"");return{type:"blockquote",raw:fe[0],text:_e}}},Se.list=function(le){var fe=this.rules.block.list.exec(le);if(fe){for(var _e=fe[0],Me=fe[2],rt=Me.length>1,Je=Me[Me.length-1]===")",jt={type:"list",raw:_e,ordered:rt,start:rt?+Me.slice(0,-1):"",loose:!1,items:[]},rn=fe[0].match(this.rules.block.item),pn=!1,on,Jt,wt,St,lt,ge,Le,yt=rn.length,ft=0;ft1||this.options.smartLists&&wt!==Me)&&(St=rn.slice(ft+1).join(` -`),jt.raw=jt.raw.substring(0,jt.raw.length-St.length),ft=yt-1)),lt=pn||/\n\n(?!\s*$)/.test(on),ft!==yt-1&&(pn=on.charAt(on.length-1)===` -`,lt||(lt=pn)),lt&&(jt.loose=!0),ge=/^\[[ xX]\] /.test(on),Le=void 0,ge&&(Le=on[1]!==" ",on=on.replace(/^\[[ xX]\] +/,"")),jt.items.push({type:"list_item",raw:_e,task:ge,checked:Le,loose:lt,text:on});return jt}},Se.html=function(le){var fe=this.rules.block.html.exec(le);if(fe)return{type:this.options.sanitize?"paragraph":"html",raw:fe[0],pre:!this.options.sanitizer&&(fe[1]==="pre"||fe[1]==="script"||fe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]}},Se.def=function(le){var fe=this.rules.block.def.exec(le);if(fe){fe[3]&&(fe[3]=fe[3].substring(1,fe[3].length-1));var _e=fe[1].toLowerCase().replace(/\s+/g," ");return{tag:_e,raw:fe[0],href:fe[2],title:fe[3]}}},Se.table=function(le){var fe=this.rules.block.table.exec(le);if(fe){var _e={type:"table",header:q(fe[1].replace(/^ *| *\| *$/g,"")),align:fe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:fe[3]?fe[3].replace(/\n$/,"").split(` -`):[]};if(_e.header.length===_e.align.length){_e.raw=fe[0];var Me=_e.align.length,rt;for(rt=0;rt/i.test(Me[0])&&(fe=!1),!_e&&/^<(pre|code|kbd|script)(\s|>)/i.test(Me[0])?_e=!0:_e&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Me[0])&&(_e=!1),{type:this.options.sanitize?"text":"html",raw:Me[0],inLink:fe,inRawBlock:_e,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ee(Me[0]):Me[0]}},Se.link=function(le){var fe=this.rules.inline.link.exec(le);if(fe){var _e=he(fe[2],"()");if(_e>-1){var Me=fe[0].indexOf("!")===0?5:4,rt=Me+fe[1].length+_e;fe[2]=fe[2].substring(0,_e),fe[0]=fe[0].substring(0,rt).trim(),fe[3]=""}var Je=fe[2],jt="";if(this.options.pedantic){var rn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Je);rn?(Je=rn[1],jt=rn[3]):jt=""}else jt=fe[3]?fe[3].slice(1,-1):"";Je=Je.trim().replace(/^<([\s\S]*)>$/,"$1");var pn=be(fe,{href:Je&&Je.replace(this.rules.inline._escapes,"$1"),title:jt&&jt.replace(this.rules.inline._escapes,"$1")},fe[0]);return pn}},Se.reflink=function(le,fe){var _e;if((_e=this.rules.inline.reflink.exec(le))||(_e=this.rules.inline.nolink.exec(le))){var Me=(_e[2]||_e[1]).replace(/\s+/g," ");if(Me=fe[Me.toLowerCase()],!Me||!Me.href){var rt=_e[0].charAt(0);return{type:"text",raw:rt,text:rt}}var Je=be(_e,Me,_e[0]);return Je}},Se.strong=function(le,fe,_e){_e===void 0&&(_e="");var Me=this.rules.inline.strong.start.exec(le);if(Me&&(!Me[1]||Me[1]&&(_e===""||this.rules.inline.punctuation.exec(_e)))){fe=fe.slice(-1*le.length);var rt=Me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;rt.lastIndex=0;for(var Je;(Me=rt.exec(fe))!=null;)if(Je=this.rules.inline.strong.middle.exec(fe.slice(0,Me.index+3)),Je)return{type:"strong",raw:le.slice(0,Je[0].length),text:le.slice(2,Je[0].length-2)}}},Se.em=function(le,fe,_e){_e===void 0&&(_e="");var Me=this.rules.inline.em.start.exec(le);if(Me&&(!Me[1]||Me[1]&&(_e===""||this.rules.inline.punctuation.exec(_e)))){fe=fe.slice(-1*le.length);var rt=Me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;rt.lastIndex=0;for(var Je;(Me=rt.exec(fe))!=null;)if(Je=this.rules.inline.em.middle.exec(fe.slice(0,Me.index+2)),Je)return{type:"em",raw:le.slice(0,Je[0].length),text:le.slice(1,Je[0].length-1)}}},Se.codespan=function(le){var fe=this.rules.inline.code.exec(le);if(fe){var _e=fe[2].replace(/\n/g," "),Me=/[^ ]/.test(_e),rt=_e.startsWith(" ")&&_e.endsWith(" ");return Me&&rt&&(_e=_e.substring(1,_e.length-1)),_e=ee(_e,!0),{type:"codespan",raw:fe[0],text:_e}}},Se.br=function(le){var fe=this.rules.inline.br.exec(le);if(fe)return{type:"br",raw:fe[0]}},Se.del=function(le){var fe=this.rules.inline.del.exec(le);if(fe)return{type:"del",raw:fe[0],text:fe[1]}},Se.autolink=function(le,fe){var _e=this.rules.inline.autolink.exec(le);if(_e){var Me,rt;return _e[2]==="@"?(Me=ee(this.options.mangle?fe(_e[1]):_e[1]),rt="mailto:"+Me):(Me=ee(_e[1]),rt=Me),{type:"link",raw:_e[0],text:Me,href:rt,tokens:[{type:"text",raw:Me,text:Me}]}}},Se.url=function(le,fe){var _e;if(_e=this.rules.inline.url.exec(le)){var Me,rt;if(_e[2]==="@")Me=ee(this.options.mangle?fe(_e[0]):_e[0]),rt="mailto:"+Me;else{var Je;do Je=_e[0],_e[0]=this.rules.inline._backpedal.exec(_e[0])[0];while(Je!==_e[0]);Me=ee(_e[0]),_e[1]==="www."?rt="http://"+Me:rt=Me}return{type:"link",raw:_e[0],text:Me,href:rt,tokens:[{type:"text",raw:Me,text:Me}]}}},Se.inlineText=function(le,fe,_e){var Me=this.rules.inline.text.exec(le);if(Me){var rt;return fe?rt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ee(Me[0]):Me[0]:rt=ee(this.options.smartypants?_e(Me[0]):Me[0]),{type:"text",raw:Me[0],text:rt}}},Ne}(),je=H.noopTest,Qe=H.edit,Ze=H.merge,Ae={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:je,table:je,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ae._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ae._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ae.def=Qe(Ae.def).replace("label",Ae._label).replace("title",Ae._title).getRegex(),Ae.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ae.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ae.item=Qe(Ae.item,"gm").replace(/bull/g,Ae.bullet).getRegex(),Ae.list=Qe(Ae.list).replace(/bull/g,Ae.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ae.def.source+")").getRegex(),Ae._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ae._comment=//,Ae.html=Qe(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae.paragraph=Qe(Ae._paragraph).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.blockquote=Qe(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex(),Ae.normal=Ze({},Ae),Ae.gfm=Ze({},Ae.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ae.gfm.nptable=Qe(Ae.gfm.nptable).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.gfm.table=Qe(Ae.gfm.table).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.pedantic=Ze({},Ae.normal,{html:Qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ae._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:je,paragraph:Qe(Ae.normal._paragraph).replace("hr",Ae.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Ae.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:je,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:je,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",me.punctuation=Qe(me.punctuation).replace(/punctuation/g,me._punctuation).getRegex(),me._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",me._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",me.em.start=Qe(me.em.start).replace(/punctuation/g,me._punctuation).getRegex(),me.em.middle=Qe(me.em.middle).replace(/punctuation/g,me._punctuation).replace(/overlapSkip/g,me._overlapSkip).getRegex(),me.em.endAst=Qe(me.em.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.em.endUnd=Qe(me.em.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.start=Qe(me.strong.start).replace(/punctuation/g,me._punctuation).getRegex(),me.strong.middle=Qe(me.strong.middle).replace(/punctuation/g,me._punctuation).replace(/blockSkip/g,me._blockSkip).getRegex(),me.strong.endAst=Qe(me.strong.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.endUnd=Qe(me.strong.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.blockSkip=Qe(me._blockSkip,"g").getRegex(),me.overlapSkip=Qe(me._overlapSkip,"g").getRegex(),me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,me._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,me.autolink=Qe(me.autolink).replace("scheme",me._scheme).replace("email",me._email).getRegex(),me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,me.tag=Qe(me.tag).replace("comment",Ae._comment).replace("attribute",me._attribute).getRegex(),me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,me._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,me.link=Qe(me.link).replace("label",me._label).replace("href",me._href).replace("title",me._title).getRegex(),me.reflink=Qe(me.reflink).replace("label",me._label).getRegex(),me.reflinkSearch=Qe(me.reflinkSearch,"g").replace("reflink",me.reflink).replace("nolink",me.nolink).getRegex(),me.normal=Ze({},me),me.pedantic=Ze({},me.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Qe(/^!?\[(label)\]\((.*?)\)/).replace("label",me._label).getRegex(),reflink:Qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",me._label).getRegex()}),me.gfm=Ze({},me.normal,{escape:Qe(me.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(le="x"+le.toString(16)),Se+="&#"+le+";";return Se}var V=function(){function Ne(Te){this.tokens=[],this.tokens.links=Object.create(null),this.options=Te||Oe,this.options.tokenizer=this.options.tokenizer||new Pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var le={block:ve.normal,inline:Ge.normal};this.options.pedantic?(le.block=ve.pedantic,le.inline=Ge.pedantic):this.options.gfm&&(le.block=ve.gfm,this.options.breaks?le.inline=Ge.breaks:le.inline=Ge.gfm),this.tokenizer.rules=le}Ne.lex=function(le,fe){var _e=new Ne(fe);return _e.lex(le)};var Se=Ne.prototype;return Se.lex=function(le){return le=le.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(le,this.tokens,!0),this.inline(this.tokens),this.tokens},Se.blockTokens=function(le,fe,_e){fe===void 0&&(fe=[]),_e===void 0&&(_e=!0),le=le.replace(/^ +$/gm,"");for(var Me,rt,Je,jt;le;){if(Me=this.tokenizer.space(le)){le=le.substring(Me.raw.length),Me.type&&fe.push(Me);continue}if(Me=this.tokenizer.code(le,fe)){le=le.substring(Me.raw.length),Me.type?fe.push(Me):(jt=fe[fe.length-1],jt.raw+=` +`):[],raw:fe[0]};if(_e.header.length===_e.align.length){var Me=_e.align.length,at;for(at=0;at ?/gm,"");return{type:"blockquote",raw:fe[0],text:_e}}},Se.list=function(le){var fe=this.rules.block.list.exec(le);if(fe){for(var _e=fe[0],Me=fe[2],at=Me.length>1,Je=Me[Me.length-1]===")",jt={type:"list",raw:_e,ordered:at,start:at?+Me.slice(0,-1):"",loose:!1,items:[]},nn=fe[0].match(this.rules.block.item),pn=!1,an,Jt,wt,St,lt,ge,Le,yt=nn.length,ft=0;ft1||this.options.smartLists&&wt!==Me)&&(St=nn.slice(ft+1).join(` +`),jt.raw=jt.raw.substring(0,jt.raw.length-St.length),ft=yt-1)),lt=pn||/\n\n(?!\s*$)/.test(an),ft!==yt-1&&(pn=an.charAt(an.length-1)===` +`,lt||(lt=pn)),lt&&(jt.loose=!0),ge=/^\[[ xX]\] /.test(an),Le=void 0,ge&&(Le=an[1]!==" ",an=an.replace(/^\[[ xX]\] +/,"")),jt.items.push({type:"list_item",raw:_e,task:ge,checked:Le,loose:lt,text:an});return jt}},Se.html=function(le){var fe=this.rules.block.html.exec(le);if(fe)return{type:this.options.sanitize?"paragraph":"html",raw:fe[0],pre:!this.options.sanitizer&&(fe[1]==="pre"||fe[1]==="script"||fe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]}},Se.def=function(le){var fe=this.rules.block.def.exec(le);if(fe){fe[3]&&(fe[3]=fe[3].substring(1,fe[3].length-1));var _e=fe[1].toLowerCase().replace(/\s+/g," ");return{tag:_e,raw:fe[0],href:fe[2],title:fe[3]}}},Se.table=function(le){var fe=this.rules.block.table.exec(le);if(fe){var _e={type:"table",header:q(fe[1].replace(/^ *| *\| *$/g,"")),align:fe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:fe[3]?fe[3].replace(/\n$/,"").split(` +`):[]};if(_e.header.length===_e.align.length){_e.raw=fe[0];var Me=_e.align.length,at;for(at=0;at/i.test(Me[0])&&(fe=!1),!_e&&/^<(pre|code|kbd|script)(\s|>)/i.test(Me[0])?_e=!0:_e&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Me[0])&&(_e=!1),{type:this.options.sanitize?"text":"html",raw:Me[0],inLink:fe,inRawBlock:_e,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ee(Me[0]):Me[0]}},Se.link=function(le){var fe=this.rules.inline.link.exec(le);if(fe){var _e=he(fe[2],"()");if(_e>-1){var Me=fe[0].indexOf("!")===0?5:4,at=Me+fe[1].length+_e;fe[2]=fe[2].substring(0,_e),fe[0]=fe[0].substring(0,at).trim(),fe[3]=""}var Je=fe[2],jt="";if(this.options.pedantic){var nn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Je);nn?(Je=nn[1],jt=nn[3]):jt=""}else jt=fe[3]?fe[3].slice(1,-1):"";Je=Je.trim().replace(/^<([\s\S]*)>$/,"$1");var pn=ye(fe,{href:Je&&Je.replace(this.rules.inline._escapes,"$1"),title:jt&&jt.replace(this.rules.inline._escapes,"$1")},fe[0]);return pn}},Se.reflink=function(le,fe){var _e;if((_e=this.rules.inline.reflink.exec(le))||(_e=this.rules.inline.nolink.exec(le))){var Me=(_e[2]||_e[1]).replace(/\s+/g," ");if(Me=fe[Me.toLowerCase()],!Me||!Me.href){var at=_e[0].charAt(0);return{type:"text",raw:at,text:at}}var Je=ye(_e,Me,_e[0]);return Je}},Se.strong=function(le,fe,_e){_e===void 0&&(_e="");var Me=this.rules.inline.strong.start.exec(le);if(Me&&(!Me[1]||Me[1]&&(_e===""||this.rules.inline.punctuation.exec(_e)))){fe=fe.slice(-1*le.length);var at=Me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;at.lastIndex=0;for(var Je;(Me=at.exec(fe))!=null;)if(Je=this.rules.inline.strong.middle.exec(fe.slice(0,Me.index+3)),Je)return{type:"strong",raw:le.slice(0,Je[0].length),text:le.slice(2,Je[0].length-2)}}},Se.em=function(le,fe,_e){_e===void 0&&(_e="");var Me=this.rules.inline.em.start.exec(le);if(Me&&(!Me[1]||Me[1]&&(_e===""||this.rules.inline.punctuation.exec(_e)))){fe=fe.slice(-1*le.length);var at=Me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;at.lastIndex=0;for(var Je;(Me=at.exec(fe))!=null;)if(Je=this.rules.inline.em.middle.exec(fe.slice(0,Me.index+2)),Je)return{type:"em",raw:le.slice(0,Je[0].length),text:le.slice(1,Je[0].length-1)}}},Se.codespan=function(le){var fe=this.rules.inline.code.exec(le);if(fe){var _e=fe[2].replace(/\n/g," "),Me=/[^ ]/.test(_e),at=_e.startsWith(" ")&&_e.endsWith(" ");return Me&&at&&(_e=_e.substring(1,_e.length-1)),_e=ee(_e,!0),{type:"codespan",raw:fe[0],text:_e}}},Se.br=function(le){var fe=this.rules.inline.br.exec(le);if(fe)return{type:"br",raw:fe[0]}},Se.del=function(le){var fe=this.rules.inline.del.exec(le);if(fe)return{type:"del",raw:fe[0],text:fe[1]}},Se.autolink=function(le,fe){var _e=this.rules.inline.autolink.exec(le);if(_e){var Me,at;return _e[2]==="@"?(Me=ee(this.options.mangle?fe(_e[1]):_e[1]),at="mailto:"+Me):(Me=ee(_e[1]),at=Me),{type:"link",raw:_e[0],text:Me,href:at,tokens:[{type:"text",raw:Me,text:Me}]}}},Se.url=function(le,fe){var _e;if(_e=this.rules.inline.url.exec(le)){var Me,at;if(_e[2]==="@")Me=ee(this.options.mangle?fe(_e[0]):_e[0]),at="mailto:"+Me;else{var Je;do Je=_e[0],_e[0]=this.rules.inline._backpedal.exec(_e[0])[0];while(Je!==_e[0]);Me=ee(_e[0]),_e[1]==="www."?at="http://"+Me:at=Me}return{type:"link",raw:_e[0],text:Me,href:at,tokens:[{type:"text",raw:Me,text:Me}]}}},Se.inlineText=function(le,fe,_e){var Me=this.rules.inline.text.exec(le);if(Me){var at;return fe?at=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ee(Me[0]):Me[0]:at=ee(this.options.smartypants?_e(Me[0]):Me[0]),{type:"text",raw:Me[0],text:at}}},Ne}(),je=H.noopTest,Ze=H.edit,Qe=H.merge,Ae={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:je,table:je,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ae._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ae._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ae.def=Ze(Ae.def).replace("label",Ae._label).replace("title",Ae._title).getRegex(),Ae.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ae.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ae.item=Ze(Ae.item,"gm").replace(/bull/g,Ae.bullet).getRegex(),Ae.list=Ze(Ae.list).replace(/bull/g,Ae.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ae.def.source+")").getRegex(),Ae._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ae._comment=//,Ae.html=Ze(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae.paragraph=Ze(Ae._paragraph).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.blockquote=Ze(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex(),Ae.normal=Qe({},Ae),Ae.gfm=Qe({},Ae.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ae.gfm.nptable=Ze(Ae.gfm.nptable).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.gfm.table=Ze(Ae.gfm.table).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ae._tag).getRegex(),Ae.pedantic=Qe({},Ae.normal,{html:Ze(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ae._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:je,paragraph:Ze(Ae.normal._paragraph).replace("hr",Ae.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ae.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:je,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:je,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",me.punctuation=Ze(me.punctuation).replace(/punctuation/g,me._punctuation).getRegex(),me._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",me._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",me.em.start=Ze(me.em.start).replace(/punctuation/g,me._punctuation).getRegex(),me.em.middle=Ze(me.em.middle).replace(/punctuation/g,me._punctuation).replace(/overlapSkip/g,me._overlapSkip).getRegex(),me.em.endAst=Ze(me.em.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.em.endUnd=Ze(me.em.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.start=Ze(me.strong.start).replace(/punctuation/g,me._punctuation).getRegex(),me.strong.middle=Ze(me.strong.middle).replace(/punctuation/g,me._punctuation).replace(/blockSkip/g,me._blockSkip).getRegex(),me.strong.endAst=Ze(me.strong.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.endUnd=Ze(me.strong.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.blockSkip=Ze(me._blockSkip,"g").getRegex(),me.overlapSkip=Ze(me._overlapSkip,"g").getRegex(),me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,me._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,me.autolink=Ze(me.autolink).replace("scheme",me._scheme).replace("email",me._email).getRegex(),me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,me.tag=Ze(me.tag).replace("comment",Ae._comment).replace("attribute",me._attribute).getRegex(),me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,me._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,me.link=Ze(me.link).replace("label",me._label).replace("href",me._href).replace("title",me._title).getRegex(),me.reflink=Ze(me.reflink).replace("label",me._label).getRegex(),me.reflinkSearch=Ze(me.reflinkSearch,"g").replace("reflink",me.reflink).replace("nolink",me.nolink).getRegex(),me.normal=Qe({},me),me.pedantic=Qe({},me.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ze(/^!?\[(label)\]\((.*?)\)/).replace("label",me._label).getRegex(),reflink:Ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",me._label).getRegex()}),me.gfm=Qe({},me.normal,{escape:Ze(me.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(le="x"+le.toString(16)),Se+="&#"+le+";";return Se}var V=function(){function Ne(Te){this.tokens=[],this.tokens.links=Object.create(null),this.options=Te||Oe,this.options.tokenizer=this.options.tokenizer||new Pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var le={block:ve.normal,inline:Ge.normal};this.options.pedantic?(le.block=ve.pedantic,le.inline=Ge.pedantic):this.options.gfm&&(le.block=ve.gfm,this.options.breaks?le.inline=Ge.breaks:le.inline=Ge.gfm),this.tokenizer.rules=le}Ne.lex=function(le,fe){var _e=new Ne(fe);return _e.lex(le)};var Se=Ne.prototype;return Se.lex=function(le){return le=le.replace(/\r\n|\r/g,` +`).replace(/\t/g," "),this.blockTokens(le,this.tokens,!0),this.inline(this.tokens),this.tokens},Se.blockTokens=function(le,fe,_e){fe===void 0&&(fe=[]),_e===void 0&&(_e=!0),le=le.replace(/^ +$/gm,"");for(var Me,at,Je,jt;le;){if(Me=this.tokenizer.space(le)){le=le.substring(Me.raw.length),Me.type&&fe.push(Me);continue}if(Me=this.tokenizer.code(le,fe)){le=le.substring(Me.raw.length),Me.type?fe.push(Me):(jt=fe[fe.length-1],jt.raw+=` `+Me.raw,jt.text+=` -`+Me.text);continue}if(Me=this.tokenizer.fences(le)){le=le.substring(Me.raw.length),fe.push(Me);continue}if(Me=this.tokenizer.heading(le)){le=le.substring(Me.raw.length),fe.push(Me);continue}if(Me=this.tokenizer.nptable(le)){le=le.substring(Me.raw.length),fe.push(Me);continue}if(Me=this.tokenizer.hr(le)){le=le.substring(Me.raw.length),fe.push(Me);continue}if(Me=this.tokenizer.blockquote(le)){le=le.substring(Me.raw.length),Me.tokens=this.blockTokens(Me.text,[],_e),fe.push(Me);continue}if(Me=this.tokenizer.list(le)){for(le=le.substring(Me.raw.length),Je=Me.items.length,rt=0;rt0)for(;(rn=this.tokenizer.rules.inline.reflinkSearch.exec(jt))!=null;)pn.includes(rn[0].slice(rn[0].lastIndexOf("[")+1,-1))&&(jt=jt.slice(0,rn.index)+"["+"a".repeat(rn[0].length-2)+"]"+jt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(rn=this.tokenizer.rules.inline.blockSkip.exec(jt))!=null;)jt=jt.slice(0,rn.index)+"["+"a".repeat(rn[0].length-2)+"]"+jt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;le;){if(Je=this.tokenizer.escape(le)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.tag(le,_e,Me)){le=le.substring(Je.raw.length),_e=Je.inLink,Me=Je.inRawBlock,fe.push(Je);continue}if(Je=this.tokenizer.link(le)){le=le.substring(Je.raw.length),Je.type==="link"&&(Je.tokens=this.inlineTokens(Je.text,[],!0,Me)),fe.push(Je);continue}if(Je=this.tokenizer.reflink(le,this.tokens.links)){le=le.substring(Je.raw.length),Je.type==="link"&&(Je.tokens=this.inlineTokens(Je.text,[],!0,Me)),fe.push(Je);continue}if(Je=this.tokenizer.strong(le,jt,rt)){le=le.substring(Je.raw.length),Je.tokens=this.inlineTokens(Je.text,[],_e,Me),fe.push(Je);continue}if(Je=this.tokenizer.em(le,jt,rt)){le=le.substring(Je.raw.length),Je.tokens=this.inlineTokens(Je.text,[],_e,Me),fe.push(Je);continue}if(Je=this.tokenizer.codespan(le)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.br(le)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.del(le)){le=le.substring(Je.raw.length),Je.tokens=this.inlineTokens(Je.text,[],_e,Me),fe.push(Je);continue}if(Je=this.tokenizer.autolink(le,J)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(!_e&&(Je=this.tokenizer.url(le,J))){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.inlineText(le,Me,pe)){le=le.substring(Je.raw.length),rt=Je.raw.slice(-1),fe.push(Je);continue}if(le){var on="Infinite loop on byte: "+le.charCodeAt(0);if(this.options.silent){console.error(on);break}else throw new Error(on)}}return fe},G(Ne,null,[{key:"rules",get:function(){return{block:ve,inline:Ge}}}]),Ne}(),X=W.defaults,ue=H.cleanUrl,Ee=H.escape,We=function(){function Ne(Te){this.options=Te||X}var Se=Ne.prototype;return Se.code=function(le,fe,_e){var Me=(fe||"").match(/\S*/)[0];if(this.options.highlight){var rt=this.options.highlight(le,Me);rt!=null&&rt!==le&&(_e=!0,le=rt)}return Me?'
    '+(_e?le:Ee(le,!0))+`
    +`+Me.text);continue}if(le){var nn="Infinite loop on byte: "+le.charCodeAt(0);if(this.options.silent){console.error(nn);break}else throw new Error(nn)}}return fe},Se.inline=function(le){var fe,_e,Me,at,Je,jt,nn=le.length;for(fe=0;fe0)for(;(nn=this.tokenizer.rules.inline.reflinkSearch.exec(jt))!=null;)pn.includes(nn[0].slice(nn[0].lastIndexOf("[")+1,-1))&&(jt=jt.slice(0,nn.index)+"["+"a".repeat(nn[0].length-2)+"]"+jt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(nn=this.tokenizer.rules.inline.blockSkip.exec(jt))!=null;)jt=jt.slice(0,nn.index)+"["+"a".repeat(nn[0].length-2)+"]"+jt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;le;){if(Je=this.tokenizer.escape(le)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.tag(le,_e,Me)){le=le.substring(Je.raw.length),_e=Je.inLink,Me=Je.inRawBlock,fe.push(Je);continue}if(Je=this.tokenizer.link(le)){le=le.substring(Je.raw.length),Je.type==="link"&&(Je.tokens=this.inlineTokens(Je.text,[],!0,Me)),fe.push(Je);continue}if(Je=this.tokenizer.reflink(le,this.tokens.links)){le=le.substring(Je.raw.length),Je.type==="link"&&(Je.tokens=this.inlineTokens(Je.text,[],!0,Me)),fe.push(Je);continue}if(Je=this.tokenizer.strong(le,jt,at)){le=le.substring(Je.raw.length),Je.tokens=this.inlineTokens(Je.text,[],_e,Me),fe.push(Je);continue}if(Je=this.tokenizer.em(le,jt,at)){le=le.substring(Je.raw.length),Je.tokens=this.inlineTokens(Je.text,[],_e,Me),fe.push(Je);continue}if(Je=this.tokenizer.codespan(le)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.br(le)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.del(le)){le=le.substring(Je.raw.length),Je.tokens=this.inlineTokens(Je.text,[],_e,Me),fe.push(Je);continue}if(Je=this.tokenizer.autolink(le,J)){le=le.substring(Je.raw.length),fe.push(Je);continue}if(!_e&&(Je=this.tokenizer.url(le,J))){le=le.substring(Je.raw.length),fe.push(Je);continue}if(Je=this.tokenizer.inlineText(le,Me,pe)){le=le.substring(Je.raw.length),at=Je.raw.slice(-1),fe.push(Je);continue}if(le){var an="Infinite loop on byte: "+le.charCodeAt(0);if(this.options.silent){console.error(an);break}else throw new Error(an)}}return fe},G(Ne,null,[{key:"rules",get:function(){return{block:ve,inline:Ge}}}]),Ne}(),X=W.defaults,ue=H.cleanUrl,Ee=H.escape,We=function(){function Ne(Te){this.options=Te||X}var Se=Ne.prototype;return Se.code=function(le,fe,_e){var Me=(fe||"").match(/\S*/)[0];if(this.options.highlight){var at=this.options.highlight(le,Me);at!=null&&at!==le&&(_e=!0,le=at)}return Me?'
    '+(_e?le:Ee(le,!0))+`
    `:"
    "+(_e?le:Ee(le,!0))+`
    `},Se.blockquote=function(le){return`
    `+le+`
    @@ -260,7 +260,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `:""+le+" `},Se.hr=function(){return this.options.xhtml?`
    `:`
    -`},Se.list=function(le,fe,_e){var Me=fe?"ol":"ul",rt=fe&&_e!==1?' start="'+_e+'"':"";return"<"+Me+rt+`> +`},Se.list=function(le,fe,_e){var Me=fe?"ol":"ul",at=fe&&_e!==1?' start="'+_e+'"':"";return"<"+Me+at+`> `+le+" `},Se.listitem=function(le){return"
  • "+le+`
  • `},Se.checkbox=function(le){return" "},Se.paragraph=function(le){return"

    "+le+`

    @@ -271,28 +271,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},Se.tablerow=function(le){return` `+le+` `},Se.tablecell=function(le,fe){var _e=fe.header?"th":"td",Me=fe.align?"<"+_e+' align="'+fe.align+'">':"<"+_e+">";return Me+le+" -`},Se.strong=function(le){return""+le+""},Se.em=function(le){return""+le+""},Se.codespan=function(le){return""+le+""},Se.br=function(){return this.options.xhtml?"
    ":"
    "},Se.del=function(le){return""+le+""},Se.link=function(le,fe,_e){if(le=ue(this.options.sanitize,this.options.baseUrl,le),le===null)return _e;var Me='",Me},Se.image=function(le,fe,_e){if(le=ue(this.options.sanitize,this.options.baseUrl,le),le===null)return _e;var Me=''+_e+'":">",Me},Se.text=function(le){return le},Ne}(),Ke=function(){function Ne(){}var Se=Ne.prototype;return Se.strong=function(le){return le},Se.em=function(le){return le},Se.codespan=function(le){return le},Se.del=function(le){return le},Se.html=function(le){return le},Se.text=function(le){return le},Se.link=function(le,fe,_e){return""+_e},Se.image=function(le,fe,_e){return""+_e},Se.br=function(){return""},Ne}(),Lt=function(){function Ne(){this.seen={}}var Se=Ne.prototype;return Se.slug=function(le){var fe=le.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(fe)){var _e=fe;do this.seen[_e]++,fe=_e+"-"+this.seen[_e];while(this.seen.hasOwnProperty(fe))}return this.seen[fe]=0,fe},Ne}(),Kt=W.defaults,Bt=H.unescape,kt=function(){function Ne(Te){this.options=Te||Kt,this.options.renderer=this.options.renderer||new We,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ke,this.slugger=new Lt}Ne.parse=function(le,fe){var _e=new Ne(fe);return _e.parse(le)};var Se=Ne.prototype;return Se.parse=function(le,fe){fe===void 0&&(fe=!0);var _e="",Me,rt,Je,jt,rn,pn,on,Jt,wt,St,lt,ge,Le,yt,ft,en,Xt,at,xt=le.length;for(Me=0;Me0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=at+" "+ft.tokens[0].text,ft.tokens[0].tokens&&ft.tokens[0].tokens.length>0&&ft.tokens[0].tokens[0].type==="text"&&(ft.tokens[0].tokens[0].text=at+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:at}):yt+=at),yt+=this.parse(ft.tokens,Le),wt+=this.renderer.listitem(yt,Xt,en);_e+=this.renderer.list(wt,lt,ge);continue}case"html":{_e+=this.renderer.html(St.text);continue}case"paragraph":{_e+=this.renderer.paragraph(this.parseInline(St.tokens));continue}case"text":{for(wt=St.tokens?this.parseInline(St.tokens):St.text;Me+1An error occurred:

    "+qe(Je.message+"",!0)+"
    ";throw Je}}st.options=st.setOptions=function(Ne){return Qt(st.defaults,Ne),vt(st.defaults),st},st.getDefaults=Ue,st.defaults=Mt,st.use=function(Ne){var Se=Qt({},Ne);if(Ne.renderer&&function(){var le=st.defaults.renderer||new We,fe=function(rt){var Je=le[rt];le[rt]=function(){for(var jt=arguments.length,rn=new Array(jt),pn=0;pn`,triples:"",explode:"[]{}"},I=re.Pos;re.defineOption("autoCloseBrackets",!1,function(h,c,n){n&&n!=re.Init&&(h.removeKeyMap(O),h.state.closeBrackets=null),c&&(w(z(c,"pairs")),h.state.closeBrackets=c,h.addKeyMap(O))});function z(h,c){return c=="pairs"&&typeof h=="string"?h:typeof h=="object"&&h[c]!=null?h[c]:G[c]}var O={Backspace:L,Enter:R};function w(h){for(var c=0;c=0;o--){var x=r[o].head;h.replaceRange("",I(x.line,x.ch-1),I(x.line,x.ch+1),"+delete")}}function R(h){var c=y(h),n=c&&z(c,"explode");if(!n||h.getOption("disableInput"))return re.Pass;for(var r=h.listSelections(),o=0;o0;return{anchor:new I(h.anchor.line,h.anchor.ch+(c?-1:1)),head:new I(h.head.line,h.head.ch+(c?1:-1))}}function p(h,c){var n=y(h);if(!n||h.getOption("disableInput"))return re.Pass;var r=z(n,"pairs"),o=r.indexOf(c);if(o==-1)return re.Pass;for(var l=z(n,"closeBefore"),x=z(n,"triples"),E=r.charAt(o+1)==c,b=h.listSelections(),P=o%2==0,T,m=0;m=0&&h.getRange(s,I(s.line,s.ch+3))==c+c+c?u="skipThree":u="skip";else if(E&&s.ch>1&&x.indexOf(c)>=0&&h.getRange(I(s.line,s.ch-2),s)==c+c){if(s.ch>2&&/\bstring/.test(h.getTokenTypeAt(I(s.line,s.ch-2))))return re.Pass;u="addFour"}else if(E){var S=s.ch==0?" ":h.getRange(I(s.line,s.ch-1),s);if(!re.isWordChar(D)&&S!=c&&!re.isWordChar(S))u="both";else return re.Pass}else if(P&&(D.length===0||/\s/.test(D)||l.indexOf(D)>-1))u="both";else return re.Pass;if(!T)T=u;else if(T!=u)return re.Pass}var A=o%2?r.charAt(o-1):c,N=o%2?c:r.charAt(o+1);h.operation(function(){if(T=="skip")h.execCommand("goCharRight");else if(T=="skipThree")for(var j=0;j<3;j++)h.execCommand("goCharRight");else if(T=="surround"){for(var K=h.getSelections(),j=0;j0&&(he.percent=he.loaded/he.total*100),H.onProgress(he)});var B=new FormData;H.data&&Object.keys(H.data).forEach(function(ee){var he=H.data[ee];if(Array.isArray(he)){he.forEach(function(be){B.append(ee+"[]",be)});return}B.append(ee,H.data[ee])}),H.file instanceof Blob?B.append(H.filename,H.file,H.file.name):B.append(H.filename,H.file),U.onerror=function(he){H.onError(he)},U.onload=function(){return U.status<200||U.status>=300?H.onError(O(H,U),w(U)):H.onSuccess(w(U),U)},U.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var q=H.headers||{};return q["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(q).forEach(function(ee){q[ee]!==null&&U.setRequestHeader(ee,q[ee])}),U.send(B),{abort:function(){U.abort()}}}var y=+new Date,L=0;function R(){return"rc-upload-"+y+"-"+ ++L}function d(H,U){return H.indexOf(U,H.length-U.length)!==-1}var p=function(H,U){if(H&&U){var B=Array.isArray(U)?U:U.split(","),q=H.name||"",ee=H.type||"",he=ee.replace(/\/.*$/,"");return B.some(function(be){var Ye=be.trim();return Ye.charAt(0)==="."?d(q.toLowerCase(),Ye.toLowerCase()):/\/\*$/.test(Ye)?he===Ye.replace(/\/.*$/,""):ee===Ye})}return!0};function _(H,U){var B=H.createReader(),q=[];function ee(){B.readEntries(function(he){var be=Array.prototype.slice.apply(he);q=q.concat(be);var Ye=!be.length;Ye?U(q):ee()})}ee()}var v=function(U,B,q){var ee=function he(be,Ye){Ye=Ye||"",be.isFile?be.file(function(Pe){q(Pe)&&(be.fullPath&&!Pe.webkitRelativePath&&(Object.defineProperties(Pe,{webkitRelativePath:{writable:!0}}),Pe.webkitRelativePath=be.fullPath.replace(/^\//,""),Object.defineProperties(Pe,{webkitRelativePath:{writable:!1}})),B([Pe]))}):be.isDirectory&&_(be,function(Pe){Pe.forEach(function(je){he(je,""+Ye+be.name+"/")})})};U.forEach(function(he){ee(he.webkitGetAsEntry())})},h=v,c=Object.assign||function(H){for(var U=1;U=0)continue;if(!Object.prototype.hasOwnProperty.call(H,q))continue;B[q]=H[q]}return B}function x(H,U){if(!(H instanceof U))throw new TypeError("Cannot call a class as a function")}function E(H,U){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:H}function b(H,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);H.prototype=Object.create(U&&U.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(H,U):H.__proto__=U)}var P=function(U){return Object.keys(U).reduce(function(B,q){return(q.substr(0,5)==="data-"||q.substr(0,5)==="aria-"||q==="role")&&(B[q]=U[q]),B},{})},T=function(H){b(U,H);function U(){var B,q,ee,he;x(this,U);for(var be=arguments.length,Ye=Array(be),Pe=0;Pe0)throw new Error("Invalid string. Length must be a multiple of 4");var c=v.indexOf("=");c===-1&&(c=h);var n=c===h?0:4-c%4;return[c,n]}function y(v){var h=W(v),c=h[0],n=h[1];return(c+n)*3/4-n}function L(v,h,c){return(h+c)*3/4-c}function R(v){var h,c=W(v),n=c[0],r=c[1],o=new I(L(v,n,r)),l=0,x=r>0?n-4:n,E;for(E=0;E>16&255,o[l++]=h>>8&255,o[l++]=h&255;return r===2&&(h=G[v.charCodeAt(E)]<<2|G[v.charCodeAt(E+1)]>>4,o[l++]=h&255),r===1&&(h=G[v.charCodeAt(E)]<<10|G[v.charCodeAt(E+1)]<<4|G[v.charCodeAt(E+2)]>>2,o[l++]=h>>8&255,o[l++]=h&255),o}function d(v){return re[v>>18&63]+re[v>>12&63]+re[v>>6&63]+re[v&63]}function p(v,h,c){for(var n,r=[],o=h;ox?x:l+o));return n===1?(h=v[c-1],r.push(re[h>>2]+re[h<<4&63]+"==")):n===2&&(h=(v[c-2]<<8)+v[c-1],r.push(re[h>>10]+re[h>>4&63]+re[h<<2&63]+"=")),r.join("")}},HDXh:function(nn,Ce,M){"use strict";(function(re){/*! +`},Se.strong=function(le){return""+le+""},Se.em=function(le){return""+le+""},Se.codespan=function(le){return""+le+""},Se.br=function(){return this.options.xhtml?"
    ":"
    "},Se.del=function(le){return""+le+""},Se.link=function(le,fe,_e){if(le=ue(this.options.sanitize,this.options.baseUrl,le),le===null)return _e;var Me='
    ",Me},Se.image=function(le,fe,_e){if(le=ue(this.options.sanitize,this.options.baseUrl,le),le===null)return _e;var Me=''+_e+'":">",Me},Se.text=function(le){return le},Ne}(),Ke=function(){function Ne(){}var Se=Ne.prototype;return Se.strong=function(le){return le},Se.em=function(le){return le},Se.codespan=function(le){return le},Se.del=function(le){return le},Se.html=function(le){return le},Se.text=function(le){return le},Se.link=function(le,fe,_e){return""+_e},Se.image=function(le,fe,_e){return""+_e},Se.br=function(){return""},Ne}(),Pt=function(){function Ne(){this.seen={}}var Se=Ne.prototype;return Se.slug=function(le){var fe=le.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(fe)){var _e=fe;do this.seen[_e]++,fe=_e+"-"+this.seen[_e];while(this.seen.hasOwnProperty(fe))}return this.seen[fe]=0,fe},Ne}(),Kt=W.defaults,Bt=H.unescape,kt=function(){function Ne(Te){this.options=Te||Kt,this.options.renderer=this.options.renderer||new We,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ke,this.slugger=new Pt}Ne.parse=function(le,fe){var _e=new Ne(fe);return _e.parse(le)};var Se=Ne.prototype;return Se.parse=function(le,fe){fe===void 0&&(fe=!0);var _e="",Me,at,Je,jt,nn,pn,an,Jt,wt,St,lt,ge,Le,yt,ft,qt,Xt,it,xt=le.length;for(Me=0;Me0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=it+" "+ft.tokens[0].text,ft.tokens[0].tokens&&ft.tokens[0].tokens.length>0&&ft.tokens[0].tokens[0].type==="text"&&(ft.tokens[0].tokens[0].text=it+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:it}):yt+=it),yt+=this.parse(ft.tokens,Le),wt+=this.renderer.listitem(yt,Xt,qt);_e+=this.renderer.list(wt,lt,ge);continue}case"html":{_e+=this.renderer.html(St.text);continue}case"paragraph":{_e+=this.renderer.paragraph(this.parseInline(St.tokens));continue}case"text":{for(wt=St.tokens?this.parseInline(St.tokens):St.text;Me+1An error occurred:

    "+qe(Je.message+"",!0)+"
    ";throw Je}}st.options=st.setOptions=function(Ne){return Qt(st.defaults,Ne),vt(st.defaults),st},st.getDefaults=Ue,st.defaults=Mt,st.use=function(Ne){var Se=Qt({},Ne);if(Ne.renderer&&function(){var le=st.defaults.renderer||new We,fe=function(at){var Je=le[at];le[at]=function(){for(var jt=arguments.length,nn=new Array(jt),pn=0;pn`,triples:"",explode:"[]{}"},I=re.Pos;re.defineOption("autoCloseBrackets",!1,function(h,c,n){n&&n!=re.Init&&(h.removeKeyMap(O),h.state.closeBrackets=null),c&&(w(z(c,"pairs")),h.state.closeBrackets=c,h.addKeyMap(O))});function z(h,c){return c=="pairs"&&typeof h=="string"?h:typeof h=="object"&&h[c]!=null?h[c]:G[c]}var O={Backspace:L,Enter:R};function w(h){for(var c=0;c=0;o--){var x=r[o].head;h.replaceRange("",I(x.line,x.ch-1),I(x.line,x.ch+1),"+delete")}}function R(h){var c=y(h),n=c&&z(c,"explode");if(!n||h.getOption("disableInput"))return re.Pass;for(var r=h.listSelections(),o=0;o0;return{anchor:new I(h.anchor.line,h.anchor.ch+(c?-1:1)),head:new I(h.head.line,h.head.ch+(c?1:-1))}}function p(h,c){var n=y(h);if(!n||h.getOption("disableInput"))return re.Pass;var r=z(n,"pairs"),o=r.indexOf(c);if(o==-1)return re.Pass;for(var l=z(n,"closeBefore"),x=z(n,"triples"),E=r.charAt(o+1)==c,b=h.listSelections(),P=o%2==0,T,m=0;m=0&&h.getRange(s,I(s.line,s.ch+3))==c+c+c?u="skipThree":u="skip";else if(E&&s.ch>1&&x.indexOf(c)>=0&&h.getRange(I(s.line,s.ch-2),s)==c+c){if(s.ch>2&&/\bstring/.test(h.getTokenTypeAt(I(s.line,s.ch-2))))return re.Pass;u="addFour"}else if(E){var S=s.ch==0?" ":h.getRange(I(s.line,s.ch-1),s);if(!re.isWordChar(D)&&S!=c&&!re.isWordChar(S))u="both";else return re.Pass}else if(P&&(D.length===0||/\s/.test(D)||l.indexOf(D)>-1))u="both";else return re.Pass;if(!T)T=u;else if(T!=u)return re.Pass}var A=o%2?r.charAt(o-1):c,N=o%2?c:r.charAt(o+1);h.operation(function(){if(T=="skip")h.execCommand("goCharRight");else if(T=="skipThree")for(var j=0;j<3;j++)h.execCommand("goCharRight");else if(T=="surround"){for(var K=h.getSelections(),j=0;j0&&(he.percent=he.loaded/he.total*100),H.onProgress(he)});var B=new FormData;H.data&&Object.keys(H.data).forEach(function(ee){var he=H.data[ee];if(Array.isArray(he)){he.forEach(function(ye){B.append(ee+"[]",ye)});return}B.append(ee,H.data[ee])}),H.file instanceof Blob?B.append(H.filename,H.file,H.file.name):B.append(H.filename,H.file),U.onerror=function(he){H.onError(he)},U.onload=function(){return U.status<200||U.status>=300?H.onError(O(H,U),w(U)):H.onSuccess(w(U),U)},U.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var q=H.headers||{};return q["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(q).forEach(function(ee){q[ee]!==null&&U.setRequestHeader(ee,q[ee])}),U.send(B),{abort:function(){U.abort()}}}var y=+new Date,L=0;function R(){return"rc-upload-"+y+"-"+ ++L}function d(H,U){return H.indexOf(U,H.length-U.length)!==-1}var p=function(H,U){if(H&&U){var B=Array.isArray(U)?U:U.split(","),q=H.name||"",ee=H.type||"",he=ee.replace(/\/.*$/,"");return B.some(function(ye){var Ye=ye.trim();return Ye.charAt(0)==="."?d(q.toLowerCase(),Ye.toLowerCase()):/\/\*$/.test(Ye)?he===Ye.replace(/\/.*$/,""):ee===Ye})}return!0};function _(H,U){var B=H.createReader(),q=[];function ee(){B.readEntries(function(he){var ye=Array.prototype.slice.apply(he);q=q.concat(ye);var Ye=!ye.length;Ye?U(q):ee()})}ee()}var v=function(U,B,q){var ee=function he(ye,Ye){Ye=Ye||"",ye.isFile?ye.file(function(Pe){q(Pe)&&(ye.fullPath&&!Pe.webkitRelativePath&&(Object.defineProperties(Pe,{webkitRelativePath:{writable:!0}}),Pe.webkitRelativePath=ye.fullPath.replace(/^\//,""),Object.defineProperties(Pe,{webkitRelativePath:{writable:!1}})),B([Pe]))}):ye.isDirectory&&_(ye,function(Pe){Pe.forEach(function(je){he(je,""+Ye+ye.name+"/")})})};U.forEach(function(he){ee(he.webkitGetAsEntry())})},h=v,c=Object.assign||function(H){for(var U=1;U=0)continue;if(!Object.prototype.hasOwnProperty.call(H,q))continue;B[q]=H[q]}return B}function x(H,U){if(!(H instanceof U))throw new TypeError("Cannot call a class as a function")}function E(H,U){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:H}function b(H,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);H.prototype=Object.create(U&&U.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(H,U):H.__proto__=U)}var P=function(U){return Object.keys(U).reduce(function(B,q){return(q.substr(0,5)==="data-"||q.substr(0,5)==="aria-"||q==="role")&&(B[q]=U[q]),B},{})},T=function(H){b(U,H);function U(){var B,q,ee,he;x(this,U);for(var ye=arguments.length,Ye=Array(ye),Pe=0;Pe0)throw new Error("Invalid string. Length must be a multiple of 4");var c=v.indexOf("=");c===-1&&(c=h);var n=c===h?0:4-c%4;return[c,n]}function y(v){var h=W(v),c=h[0],n=h[1];return(c+n)*3/4-n}function L(v,h,c){return(h+c)*3/4-c}function R(v){var h,c=W(v),n=c[0],r=c[1],o=new I(L(v,n,r)),l=0,x=r>0?n-4:n,E;for(E=0;E>16&255,o[l++]=h>>8&255,o[l++]=h&255;return r===2&&(h=G[v.charCodeAt(E)]<<2|G[v.charCodeAt(E+1)]>>4,o[l++]=h&255),r===1&&(h=G[v.charCodeAt(E)]<<10|G[v.charCodeAt(E+1)]<<4|G[v.charCodeAt(E+2)]>>2,o[l++]=h>>8&255,o[l++]=h&255),o}function d(v){return re[v>>18&63]+re[v>>12&63]+re[v>>6&63]+re[v&63]}function p(v,h,c){for(var n,r=[],o=h;ox?x:l+o));return n===1?(h=v[c-1],r.push(re[h>>2]+re[h<<4&63]+"==")):n===2&&(h=(v[c-2]<<8)+v[c-1],r.push(re[h>>10]+re[h>>4&63]+re[h<<2&63]+"=")),r.join("")}},HDXh:function(tn,Ce,M){"use strict";(function(re){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT -*/var G=M("H7XF"),I=M("kVK+"),z=M("49sm");Ce.Buffer=y,Ce.SlowBuffer=r,Ce.INSPECT_MAX_BYTES=50,y.TYPED_ARRAY_SUPPORT=re.TYPED_ARRAY_SUPPORT!==void 0?re.TYPED_ARRAY_SUPPORT:O(),Ce.kMaxLength=w();function O(){try{var J=new Uint8Array(1);return J.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},J.foo()===42&&typeof J.subarray=="function"&&J.subarray(1,1).byteLength===0}catch(V){return!1}}function w(){return y.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function W(J,V){if(w()=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return J|0}function r(J){return+J!=J&&(J=0),y.alloc(+J)}y.isBuffer=function(V){return!!(V!=null&&V._isBuffer)},y.compare=function(V,X){if(!y.isBuffer(V)||!y.isBuffer(X))throw new TypeError("Arguments must be Buffers");if(V===X)return 0;for(var ue=V.length,Ee=X.length,We=0,Ke=Math.min(ue,Ee);We>>1;case"base64":return ve(J).length;default:if(ue)return me(J).length;V=(""+V).toLowerCase(),ue=!0}}y.byteLength=o;function l(J,V,X){var ue=!1;if((V===void 0||V<0)&&(V=0),V>this.length)return"";if((X===void 0||X>this.length)&&(X=this.length),X<=0)return"";if(X>>>=0,V>>>=0,X<=V)return"";for(J||(J="utf8");;)switch(J){case"hex":return H(this,V,X);case"utf8":case"utf-8":return S(this,V,X);case"ascii":return j(this,V,X);case"latin1":case"binary":return K(this,V,X);case"base64":return D(this,V,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,V,X);default:if(ue)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),ue=!0}}y.prototype._isBuffer=!0;function x(J,V,X){var ue=J[V];J[V]=J[X],J[X]=ue}y.prototype.swap16=function(){var V=this.length;if(V%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var X=0;X0&&(V=this.toString("hex",0,X).match(/.{2}/g).join(" "),this.length>X&&(V+=" ... ")),""},y.prototype.compare=function(V,X,ue,Ee,We){if(!y.isBuffer(V))throw new TypeError("Argument must be a Buffer");if(X===void 0&&(X=0),ue===void 0&&(ue=V?V.length:0),Ee===void 0&&(Ee=0),We===void 0&&(We=this.length),X<0||ue>V.length||Ee<0||We>this.length)throw new RangeError("out of range index");if(Ee>=We&&X>=ue)return 0;if(Ee>=We)return-1;if(X>=ue)return 1;if(X>>>=0,ue>>>=0,Ee>>>=0,We>>>=0,this===V)return 0;for(var Ke=We-Ee,Lt=ue-X,Kt=Math.min(Ke,Lt),Bt=this.slice(Ee,We),kt=V.slice(X,ue),Qt=0;Qt2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),X=+X,isNaN(X)&&(X=Ee?0:J.length-1),X<0&&(X=J.length+X),X>=J.length){if(Ee)return-1;X=J.length-1}else if(X<0)if(Ee)X=0;else return-1;if(typeof V=="string"&&(V=y.from(V,ue)),y.isBuffer(V))return V.length===0?-1:b(J,V,X,ue,Ee);if(typeof V=="number")return V=V&255,y.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(J,V,X):Uint8Array.prototype.lastIndexOf.call(J,V,X):b(J,[V],X,ue,Ee);throw new TypeError("val must be string, number or Buffer")}function b(J,V,X,ue,Ee){var We=1,Ke=J.length,Lt=V.length;if(ue!==void 0&&(ue=String(ue).toLowerCase(),ue==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(J.length<2||V.length<2)return-1;We=2,Ke/=2,Lt/=2,X/=2}function Kt(qe,Ue){return We===1?qe[Ue]:qe.readUInt16BE(Ue*We)}var Bt;if(Ee){var kt=-1;for(Bt=X;BtKe&&(X=Ke-Lt),Bt=X;Bt>=0;Bt--){for(var Qt=!0,hn=0;hnEe&&(ue=Ee)):ue=Ee;var We=V.length;if(We%2!==0)throw new TypeError("Invalid hex string");ue>We/2&&(ue=We/2);for(var Ke=0;KeWe)&&(ue=We),V.length>0&&(ue<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ee||(Ee="utf8");for(var Ke=!1;;)switch(Ee){case"hex":return P(this,V,X,ue);case"utf8":case"utf-8":return T(this,V,X,ue);case"ascii":return m(this,V,X,ue);case"latin1":case"binary":return g(this,V,X,ue);case"base64":return s(this,V,X,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,V,X,ue);default:if(Ke)throw new TypeError("Unknown encoding: "+Ee);Ee=(""+Ee).toLowerCase(),Ke=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(J,V,X){return V===0&&X===J.length?G.fromByteArray(J):G.fromByteArray(J.slice(V,X))}function S(J,V,X){X=Math.min(J.length,X);for(var ue=[],Ee=V;Ee239?4:We>223?3:We>191?2:1;if(Ee+Lt<=X){var Kt,Bt,kt,Qt;switch(Lt){case 1:We<128&&(Ke=We);break;case 2:Kt=J[Ee+1],(Kt&192)===128&&(Qt=(We&31)<<6|Kt&63,Qt>127&&(Ke=Qt));break;case 3:Kt=J[Ee+1],Bt=J[Ee+2],(Kt&192)===128&&(Bt&192)===128&&(Qt=(We&15)<<12|(Kt&63)<<6|Bt&63,Qt>2047&&(Qt<55296||Qt>57343)&&(Ke=Qt));break;case 4:Kt=J[Ee+1],Bt=J[Ee+2],kt=J[Ee+3],(Kt&192)===128&&(Bt&192)===128&&(kt&192)===128&&(Qt=(We&15)<<18|(Kt&63)<<12|(Bt&63)<<6|kt&63,Qt>65535&&Qt<1114112&&(Ke=Qt))}}Ke===null?(Ke=65533,Lt=1):Ke>65535&&(Ke-=65536,ue.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),ue.push(Ke),Ee+=Lt}return N(ue)}var A=4096;function N(J){var V=J.length;if(V<=A)return String.fromCharCode.apply(String,J);for(var X="",ue=0;ueue)&&(X=ue);for(var Ee="",We=V;Weue&&(V=ue),X<0?(X+=ue,X<0&&(X=0)):X>ue&&(X=ue),XX)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUIntLE=function(V,X,ue){V=V|0,X=X|0,ue||B(V,X,this.length);for(var Ee=this[V],We=1,Ke=0;++Ke0&&(We*=256);)Ee+=this[V+--X]*We;return Ee},y.prototype.readUInt8=function(V,X){return X||B(V,1,this.length),this[V]},y.prototype.readUInt16LE=function(V,X){return X||B(V,2,this.length),this[V]|this[V+1]<<8},y.prototype.readUInt16BE=function(V,X){return X||B(V,2,this.length),this[V]<<8|this[V+1]},y.prototype.readUInt32LE=function(V,X){return X||B(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+this[V+3]*16777216},y.prototype.readUInt32BE=function(V,X){return X||B(V,4,this.length),this[V]*16777216+(this[V+1]<<16|this[V+2]<<8|this[V+3])},y.prototype.readIntLE=function(V,X,ue){V=V|0,X=X|0,ue||B(V,X,this.length);for(var Ee=this[V],We=1,Ke=0;++Ke=We&&(Ee-=Math.pow(2,8*X)),Ee},y.prototype.readIntBE=function(V,X,ue){V=V|0,X=X|0,ue||B(V,X,this.length);for(var Ee=X,We=1,Ke=this[V+--Ee];Ee>0&&(We*=256);)Ke+=this[V+--Ee]*We;return We*=128,Ke>=We&&(Ke-=Math.pow(2,8*X)),Ke},y.prototype.readInt8=function(V,X){return X||B(V,1,this.length),this[V]&128?(255-this[V]+1)*-1:this[V]},y.prototype.readInt16LE=function(V,X){X||B(V,2,this.length);var ue=this[V]|this[V+1]<<8;return ue&32768?ue|4294901760:ue},y.prototype.readInt16BE=function(V,X){X||B(V,2,this.length);var ue=this[V+1]|this[V]<<8;return ue&32768?ue|4294901760:ue},y.prototype.readInt32LE=function(V,X){return X||B(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},y.prototype.readInt32BE=function(V,X){return X||B(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},y.prototype.readFloatLE=function(V,X){return X||B(V,4,this.length),I.read(this,V,!0,23,4)},y.prototype.readFloatBE=function(V,X){return X||B(V,4,this.length),I.read(this,V,!1,23,4)},y.prototype.readDoubleLE=function(V,X){return X||B(V,8,this.length),I.read(this,V,!0,52,8)},y.prototype.readDoubleBE=function(V,X){return X||B(V,8,this.length),I.read(this,V,!1,52,8)};function q(J,V,X,ue,Ee,We){if(!y.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>Ee||VJ.length)throw new RangeError("Index out of range")}y.prototype.writeUIntLE=function(V,X,ue,Ee){if(V=+V,X=X|0,ue=ue|0,!Ee){var We=Math.pow(2,8*ue)-1;q(this,V,X,ue,We,0)}var Ke=1,Lt=0;for(this[X]=V&255;++Lt=0&&(Lt*=256);)this[X+Ke]=V/Lt&255;return X+ue},y.prototype.writeUInt8=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,1,255,0),y.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),this[X]=V&255,X+1};function ee(J,V,X,ue){V<0&&(V=65535+V+1);for(var Ee=0,We=Math.min(J.length-X,2);Ee>>(ue?Ee:1-Ee)*8}y.prototype.writeUInt16LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,65535,0),y.TYPED_ARRAY_SUPPORT?(this[X]=V&255,this[X+1]=V>>>8):ee(this,V,X,!0),X+2},y.prototype.writeUInt16BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,65535,0),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>8,this[X+1]=V&255):ee(this,V,X,!1),X+2};function he(J,V,X,ue){V<0&&(V=4294967295+V+1);for(var Ee=0,We=Math.min(J.length-X,4);Ee>>(ue?Ee:3-Ee)*8&255}y.prototype.writeUInt32LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,4294967295,0),y.TYPED_ARRAY_SUPPORT?(this[X+3]=V>>>24,this[X+2]=V>>>16,this[X+1]=V>>>8,this[X]=V&255):he(this,V,X,!0),X+4},y.prototype.writeUInt32BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,4294967295,0),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>24,this[X+1]=V>>>16,this[X+2]=V>>>8,this[X+3]=V&255):he(this,V,X,!1),X+4},y.prototype.writeIntLE=function(V,X,ue,Ee){if(V=+V,X=X|0,!Ee){var We=Math.pow(2,8*ue-1);q(this,V,X,ue,We-1,-We)}var Ke=0,Lt=1,Kt=0;for(this[X]=V&255;++Ke>0)-Kt&255;return X+ue},y.prototype.writeIntBE=function(V,X,ue,Ee){if(V=+V,X=X|0,!Ee){var We=Math.pow(2,8*ue-1);q(this,V,X,ue,We-1,-We)}var Ke=ue-1,Lt=1,Kt=0;for(this[X+Ke]=V&255;--Ke>=0&&(Lt*=256);)V<0&&Kt===0&&this[X+Ke+1]!==0&&(Kt=1),this[X+Ke]=(V/Lt>>0)-Kt&255;return X+ue},y.prototype.writeInt8=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,1,127,-128),y.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),V<0&&(V=255+V+1),this[X]=V&255,X+1},y.prototype.writeInt16LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,32767,-32768),y.TYPED_ARRAY_SUPPORT?(this[X]=V&255,this[X+1]=V>>>8):ee(this,V,X,!0),X+2},y.prototype.writeInt16BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,32767,-32768),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>8,this[X+1]=V&255):ee(this,V,X,!1),X+2},y.prototype.writeInt32LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,2147483647,-2147483648),y.TYPED_ARRAY_SUPPORT?(this[X]=V&255,this[X+1]=V>>>8,this[X+2]=V>>>16,this[X+3]=V>>>24):he(this,V,X,!0),X+4},y.prototype.writeInt32BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>24,this[X+1]=V>>>16,this[X+2]=V>>>8,this[X+3]=V&255):he(this,V,X,!1),X+4};function be(J,V,X,ue,Ee,We){if(X+ue>J.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function Ye(J,V,X,ue,Ee){return Ee||be(J,V,X,4,34028234663852886e22,-34028234663852886e22),I.write(J,V,X,ue,23,4),X+4}y.prototype.writeFloatLE=function(V,X,ue){return Ye(this,V,X,!0,ue)},y.prototype.writeFloatBE=function(V,X,ue){return Ye(this,V,X,!1,ue)};function Pe(J,V,X,ue,Ee){return Ee||be(J,V,X,8,17976931348623157e292,-17976931348623157e292),I.write(J,V,X,ue,52,8),X+8}y.prototype.writeDoubleLE=function(V,X,ue){return Pe(this,V,X,!0,ue)},y.prototype.writeDoubleBE=function(V,X,ue){return Pe(this,V,X,!1,ue)},y.prototype.copy=function(V,X,ue,Ee){if(ue||(ue=0),!Ee&&Ee!==0&&(Ee=this.length),X>=V.length&&(X=V.length),X||(X=0),Ee>0&&Ee=this.length)throw new RangeError("sourceStart out of bounds");if(Ee<0)throw new RangeError("sourceEnd out of bounds");Ee>this.length&&(Ee=this.length),V.length-X=0;--Ke)V[Ke+X]=this[Ke+ue];else if(We<1e3||!y.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke>>0,ue=ue===void 0?this.length:ue>>>0,V||(V=0);var Ke;if(typeof V=="number")for(Ke=X;Ke55295&&X<57344){if(!Ee){if(X>56319){(V-=3)>-1&&We.push(239,191,189);continue}else if(Ke+1===ue){(V-=3)>-1&&We.push(239,191,189);continue}Ee=X;continue}if(X<56320){(V-=3)>-1&&We.push(239,191,189),Ee=X;continue}X=(Ee-55296<<10|X-56320)+65536}else Ee&&((V-=3)>-1&&We.push(239,191,189));if(Ee=null,X<128){if((V-=1)<0)break;We.push(X)}else if(X<2048){if((V-=2)<0)break;We.push(X>>6|192,X&63|128)}else if(X<65536){if((V-=3)<0)break;We.push(X>>12|224,X>>6&63|128,X&63|128)}else if(X<1114112){if((V-=4)<0)break;We.push(X>>18|240,X>>12&63|128,X>>6&63|128,X&63|128)}else throw new Error("Invalid code point")}return We}function ie(J){for(var V=[],X=0;X>8,Ee=X%256,We.push(Ee),We.push(ue);return We}function ve(J){return G.toByteArray(Qe(J))}function Ge(J,V,X,ue){for(var Ee=0;Ee=V.length||Ee>=J.length);++Ee)V[Ee+X]=J[Ee];return Ee}function pe(J){return J!==J}}).call(this,M("IyRk"))},HmJG:function(nn,Ce,M){},I8Z2:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return z}),M.d(Ce,"b",function(){return _}),M.d(Ce,"c",function(){return h});var re=M("q1tI"),G=function(){var c=function(n,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var x in l)l.hasOwnProperty(x)&&(o[x]=l[x])},c(n,r)};return function(n,r){c(n,r);function o(){this.constructor=n}n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),I=re.createContext(null),z=function(c){G(n,c);function n(){return c!==null&&c.apply(this,arguments)||this}return n.prototype.render=function(){return re.createElement(I.Provider,{value:this.props.store},this.props.children)},n}(re.Component),O=M("Gytx"),w=M.n(O),W=M("2mql"),y=M.n(W),L=function(){var c=function(n,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var x in l)l.hasOwnProperty(x)&&(o[x]=l[x])},c(n,r)};return function(n,r){c(n,r);function o(){this.constructor=n}n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),R=function(){return R=Object.assign||function(c){for(var n,r=1,o=arguments.length;r47?dr({status:!0,visible:!0}):dr({status:!1,visible:!0}))},[ye.course_group_info&&ye.course_group_info.length]),Object(c.useEffect)(function(){ye!=null&&ye.course_id&&(Object(X.c)()||ur([Object(p.a)(Object(p.a)({},ye),{isMe:!0})]),At(Object(Qe.a)(ye.student_works)))},[ye]);var Mr=function(){var wn=Object(L.a)(h.a.mark(function Zt(){var Rn;return h.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return $n.next=2,bt({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},it)});case 2:Rn=$n.sent,Object(X.c)()?At(Object(Qe.a)(Rn.student_works)):At(Object(Qe.a)(Rn));case 4:case"end":return $n.stop()}},Zt)}));return function(){return wn.apply(this,arguments)}}();function Ar(){Ln(1),ra(""),fa(""),ya(""),pa(""),qn([])}var rr=function(){it.page=1;var Zt=Object.assign({},Ir.getFieldValue());zn(!1),Object.keys(Zt).map(function(Rn){switch(Rn){case"task_status":Zt[Rn].includes("all")||ye[Rn].length===Zt[Rn].length||!Zt[Rn].length?(delete it.work_status,Ir.setFieldsValue(Object(je.a)({},"task_status","all"))):(it.work_status=Zt[Rn],Ir.setFieldsValue(Object(je.a)({},"task_status",it.work_status)));break;case"course_group_info":Zt[Rn].includes("all")||ye[Rn].length===Zt[Rn].length||!Zt[Rn].length?(delete it.course_group,Ir.setFieldsValue(Object(je.a)({},"course_group_info","all"))):(it.course_group=Zt[Rn],Ir.setFieldsValue(Object(je.a)({},"course_group_info",it.course_group)));break;case"teacher_comment":Zt[Rn].includes("all")||ye[Rn].length===Zt[Rn].length||!Zt[Rn].length?(delete it.teacher_comment,Ir.setFieldsValue(Object(je.a)({},"teacher_comment","all"))):(it.teacher_comment=Zt[Rn][0],Ir.setFieldsValue(Object(je.a)({},"teacher_comment",Zt[Rn])));break}}),Mr()},sa=function(Zt,Rn){it.page=Zt,it.limit=20,Mr()},Ka=[{title:"\u5E8F\u53F7",dataIndex:"name",width:"5%",align:"center",render:function(Zt,Rn,wr){return Rn!=null&&Rn.isMe&&Gt!==null&&Gt!==void 0&&Gt.length?"\u6211":it.limit*(it.page-1)+wr+1}},{title:"\u59D3\u540D",width:"8%",ellipsis:!0,align:"center",dataIndex:"user_name"},!(ye!=null&&ye.anonymous_comment)&&{title:"\u5B66\u53F7",width:"8%",ellipsis:!0,align:"center",dataIndex:"student_id",sortOrder:Dr.student_id,sortDirections:["descend","ascend"],sorter:!0,render:function(Zt){return Zt}},!(Object(X.s)()&&(ye!=null&&(mt=ye.homework_status)!==null&&mt!==void 0&&mt.includes("\u533F\u8BC4\u4E2D")||ye!=null&&(It=ye.homework_status)!==null&&It!==void 0&&It.includes("\u7533\u8BC9\u4E2D")))&&ye.course_group_count!==0&&{title:"\u5206\u73ED",width:"8%",ellipsis:!0,align:"center",dataIndex:"group_name"},{title:"\u4F5C\u54C1\u72B6\u6001",dataIndex:"work_status",width:"8%",align:"center",render:function(Zt){return Zt===-1?"\u91CD\u505A\u4E2D":n.a.createElement(E.a,{status:Zt})}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",width:"8%",align:"center",render:function(Zt){return Zt||"- -"}},{title:"\u66F4\u65B0\u65F6\u95F4",width:"10%",align:"center",dataIndex:"update_time",sortOrder:Dr.update_time,sortDirections:["descend","ascend"],sorter:!0,render:function(Zt){return Zt?ie()(Zt).format("YYYY-MM-DD HH:mm"):"--"}},(Object(X.c)()||(ye==null||((un=ye.homework_status)===null||un===void 0)?void 0:un.includes("\u5DF2\u622A\u6B62")))&&{title:"\u6559\u5E08\u8BC4\u5206",width:"8%",align:"center",dataIndex:"teacher_score"},(Object(X.c)()||(ye==null||((Ot=ye.homework_status)===null||Ot===void 0)?void 0:Ot.includes("\u5DF2\u622A\u6B62")))&&{title:"\u52A9\u6559\u8BC4\u5206",width:"8%",align:"center",dataIndex:"teaching_asistant_score"},(ye==null?void 0:ye.anonymous_comment)&&{title:"\u533F\u8BC4\u8BC4\u5206",width:"8%",align:"center",dataIndex:"student_score",render:function(Zt){return n.a.createElement(Pe.a,{title:"\u4F60\u7684\u8BC4\u9605\u5206\u6570\uFF1A".concat(Zt,"\u5206")},n.a.createElement("span",null,Zt))}},(ye==null?void 0:ye.anonymous_comment)&&Object(X.i)()&&{title:"\u533F\u8BC4\u5B8C\u6210\u5EA6",width:"10%",align:"center",dataIndex:"anonymous_comment_rate",render:function(Zt){return n.a.createElement("span",null,Zt,"%")}},(ye==null?void 0:ye.anonymous_comment)&&{title:"\u5DF2\u8BC4\u6570",width:"8%",align:"center",dataIndex:"user_comment_count",render:function(Zt){return n.a.createElement(Pe.a,{title:"\u5728\u533F\u8BC4\u671F\u95F4\u8BC4\u9605\u7684\u4F5C\u54C1\u6570\u91CF"},n.a.createElement("span",null,Zt))}},(ye==null?void 0:ye.anonymous_comment)&&{title:"\u533F\u8BC4\u7533\u8BC9",width:"8%",align:"center",dataIndex:"appeal_all_count",render:function(Zt,Rn){return n.a.createElement("div",null,!!Zt&&n.a.createElement(Pe.a,{placement:"bottom",title:"\u5171\u6709".concat(Zt,"\u6761\u533F\u8BC4\u7533\u8BC9\uFF0C").concat(Rn.appeal_deal_count,"\u6761\u5F85\u5904\u7406")},n.a.createElement("span",{style:{minWidth:"30px",display:"inline-block",textAlign:"center"}},"".concat(Rn.appeal_deal_count,"/").concat(Zt))),!Zt&&n.a.createElement("span",null,"-/-"))}},(Object(X.c)()||Object(X.s)()&&!(ye!=null&&ye.anonymous_comment)&&!ye.anonymous_appeal||Object(X.s)()&&((bn=ye.homework_status)===null||bn===void 0?void 0:bn.includes("\u5DF2\u622A\u6B62")))&&{title:"\u5F53\u524D\u6210\u7EE9",width:"9%",align:"center",dataIndex:"work_score",sortOrder:Dr.work_score,sortDirections:["descend","ascend"],sorter:!0,render:function(Zt){return Zt}},{title:"\u64CD\u4F5C",width:"8%",align:"center",dataInex:"action",render:function(Zt,Rn){var wr;return Rn.work_status===0&&!Object(X.c)()?n.a.createElement("div",null,"--"):n.a.createElement("div",null,!Object(X.c)()&&n.a.createElement("div",null,n.a.createElement(l.a,{target:"_blank",to:"/classrooms/".concat(it.coursesId,"/common_homework/").concat(it.categoryId,"/review/").concat(Rn.work_id||Rn.id)},"\u67E5\u770B")),Object(X.c)()&&n.a.createElement("div",null,n.a.createElement(l.a,{className:"c-blue",target:"_blank",to:it.course_group?"/classrooms/".concat(it.coursesId,"/common_homework/").concat(it.categoryId,"/review/").concat(Rn.id,"?ids=").concat((wr=it.course_group)===null||wr===void 0?void 0:wr.toString()):"/classrooms/".concat(it.coursesId,"/common_homework/").concat(it.categoryId,"/review/").concat(Rn.id)},Rn.has_comment?"\u5DF2\u8BC4\u9605":"\u8BC4\u9605"),n.a.createElement("br",null),n.a.createElement(Pe.a,{placement:"bottom",title:n.a.createElement("p",null,"\u8C03\u6574\u5B66\u751F\u5F53\u524D\u6210\u7EE9",n.a.createElement("br",null),"\u5176\u5B83\u5386\u53F2\u8BC4\u5206\u5C06\u5168\u90E8\u5931\u6548")},n.a.createElement("a",{className:"c-green",onClick:function(ma){ma.preventDefault(),bt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8C03\u5206",selectArrs:Rn,id:Rn.id,params:it}})}},"\u8C03\u5206"))))}}].filter(function(wn){return!!wn}),La=function(){var wn=Object(L.a)(h.a.mark(function Zt(){var Rn,wr;return h.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return et(!0),ma.next=3,Object(ve.a)("/api/homework_commons/".concat(it==null?void 0:it.categoryId,"/export_student_works.json"),{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});case 3:Rn=ma.sent,Rn.status===0?(wr=ze.current)===null||wr===void 0||wr.exportReport(Rn.files):et(!1);case 5:case"end":return ma.stop()}},Zt)}));return function(){return wn.apply(this,arguments)}}(),xa=function(){return n.a.createElement(be.a,null,n.a.createElement(be.a.Item,{key:"1"},n.a.createElement("span",{onClick:function(){return Object(kt.h)(JSON.parse(sessionStorage.all_student_works_params),"normal_work_list")}},"\u5BFC\u51FA\u6210\u7EE9")),n.a.createElement(be.a.Item,{key:"1"},n.a.createElement(d.a,{loading:ut,ghost:!0,style:{paddingLeft:0,background:"transparent"},type:"text",onClick:function(){return La()}},"\u5BFC\u51FA\u4F5C\u54C1\u9644\u4EF6")),n.a.createElement(be.a.Item,{key:"2"},n.a.createElement(l.a,{to:"/classrooms/".concat(it.coursesId,"/exportlist/normal_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return n.a.createElement("section",{className:"".concat(Ee.a.wrap," minH500")},n.a.createElement("aside",null,n.a.createElement("aside",{className:"minH500 bg-white pl30 ".concat(Object(X.c)()?"pt30":""," pr30")},!(ye!=null&&ye.all_member_count)&&!Xe["shixunHomeworks/getWorkList"]&&((ye==null||((En=ye.homework_status)===null||En===void 0)?void 0:En.includes("\u672A\u53D1\u5E03"))||(ye==null||((On=ye.homework_status)===null||On===void 0)?void 0:On.includes("\u672A\u5F00\u59CB")))&&n.a.createElement("aside",{className:"bg-white inline-block w100"},n.a.createElement(Oe.a,null)),!Object(X.c)()&&n.a.createElement("aside",{className:"pt10 pb10"},n.a.createElement("span",{className:"c-orange"},ye.commit_count),"\u5DF2\u4EA4",n.a.createElement("span",{className:"ml10"},ye.uncommit_count),"\u672A\u4EA4",(ye==null||((pr=ye.left_time)===null||pr===void 0)?void 0:pr.time)&&n.a.createElement("span",{className:"ml10"},n.a.createElement("span",null,ye==null||((gr=ye.left_time)===null||gr===void 0)?void 0:gr.status),n.a.createElement("span",{className:"c-orange"},ye==null||((Un=ye.left_time)===null||Un===void 0)?void 0:Un.time))),!(ye!=null&&(jn=ye.homework_status)!==null&&jn!==void 0&&jn.includes("\u672A\u53D1\u5E03"))&&!(ye!=null&&(Fn=ye.homework_status)!==null&&Fn!==void 0&&Fn.includes("\u672A\u5F00\u59CB"))&&n.a.createElement("aside",null,Object(X.c)()&&!!(ye!=null&&ye.all_member_count)&&n.a.createElement("aside",{className:"mb30"},n.a.createElement(Ae.a,{form:Ir,onChange:rr,initialValues:(Jn={},Object(je.a)(Jn,"task_status","all"),Object(je.a)(Jn,"course_group_info","all"),Object(je.a)(Jn,"teacher_comment","all"),Jn)},!!((Tr=ye.teacher_comment)!==null&&Tr!==void 0&&Tr.length)&&Object(X.c)()&&n.a.createElement(Ae.a.Item,{name:"teacher_comment"},n.a.createElement(B.a.Group,{style:{width:"100%"}},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"80px",style:{fontSize:14}},"\u4F60\u7684\u8BC4\u9605:"),n.a.createElement(ee.a,{flex:"80px"},n.a.createElement(B.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ee.a,{flex:"1"},(Zn=ye.teacher_comment)===null||Zn===void 0?void 0:Zn.map(function(wn,Zt){return n.a.createElement(B.a,{value:wn.id},wn.name,"(",wn.count,")")}))))),!!((yr=ye.task_status)!==null&&yr!==void 0&&yr.length)&&Object(X.c)()&&n.a.createElement(Ae.a.Item,{name:"task_status"},n.a.createElement(B.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"80px",style:{fontSize:14}},"\u4F5C\u54C1\u72B6\u6001:"),n.a.createElement(ee.a,{flex:"80px"},n.a.createElement(B.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ee.a,{flex:"1"},(Ht=ye.task_status)===null||Ht===void 0?void 0:Ht.map(function(wn,Zt){return n.a.createElement(B.a,{name:"task_status",value:wn.id},wn.name,"(",wn.count,")")}))))),!!((Hn=ye.course_group_info)!==null&&Hn!==void 0&&Hn.length)&&n.a.createElement(Ae.a.Item,{name:"course_group_info"},n.a.createElement(B.a.Group,{style:{width:"100%"}},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"80px",style:{fontSize:14}},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(ee.a,{flex:"80px"},n.a.createElement(B.a,{value:"all",checked:!it.course_group_info},"\u5168\u90E8")),n.a.createElement(ee.a,{flex:"1",className:"".concat(Ee.a.workListClass," ").concat(yn.visible?Ee.a.visible:""," ").concat(yn.status?"":Ee.a.status)},n.a.createElement("div",{ref:Qt,className:Ee.a.left},ye.course_group_info.map(function(wn,Zt){return n.a.createElement(B.a,{value:wn.course_group_id},wn.group_group_name,"(",wn.count,")")})),yn.status&&n.a.createElement("div",{className:Ee.a.tips,onClick:function(){return dr(Object(p.a)(Object(p.a)({},yn),{},{visible:!yn.visible}))}},n.a.createElement("span",null,yn.visible?"\u5C55\u5F00":"\u6536\u8D77",yn.visible?n.a.createElement(Ke.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(Lt.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))))),n.a.createElement(H.a,{align:"middle"},n.a.createElement(ee.a,{flex:"1"},n.a.createElement(H.a,{align:"middle"},n.a.createElement(ee.a,null,n.a.createElement(j.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(Zt){it.page=1,it.search=Zt,Mr()},style:{width:240}})),n.a.createElement(ee.a,null,n.a.createElement("span",{className:"ml5 c-red"},ye.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",ye.work_count,"\u4E2A\u5B66\u751F\uFF09"))),n.a.createElement(ee.a,{style:{textAlign:"end"},className:Ee.a.workListButtonWrap},((ye==null||((Hr=ye.homework_status)===null||Hr===void 0)?void 0:Hr.includes("\u63D0\u4EA4\u4E2D"))||(ye==null||((Lr=ye.homework_status)===null||Lr===void 0)?void 0:Lr.includes("\u8865\u4EA4\u4E2D"))||(ye==null||((or=ye.homework_status)===null||or===void 0)?void 0:or.includes("\u8FDB\u884C\u4E2D")))&&n.a.createElement(d.a,{type:"default",style:{marginRight:"20px"},onClick:function(){Vt(!0)},icon:n.a.createElement("i",{className:"iconfont icon-dahuizhongzuo3x"})},"\u4E00\u952E\u6253\u56DE"),n.a.createElement(d.a,{type:"default",style:{marginRight:"20px"},onClick:function(){Ve(!0)},icon:n.a.createElement("i",{className:"iconfont icon-yijiandianping"})},"\u4E00\u952E\u70B9\u8BC4"),n.a.createElement(A.a,{overlay:xa},n.a.createElement(d.a,null,n.a.createElement(Kt.a,null),"\u5BFC\u51FA",n.a.createElement(Bt.a,null)))))),Object(X.s)()&&n.a.createElement(D.a,{hideOnSinglePage:!0,pagination:!1,dataSource:Dn,columns:Ka,showHeader:!Gt||(Gt==null?void 0:Gt.length)===0}),n.a.createElement(D.a,{loading:Xe["shixunHomeworks/getWorkList"],hideOnSinglePage:!0,pagination:!1,dataSource:Gt,columns:Ka,onChange:function(Zt,Rn,wr){if(Dr={},wr.order===void 0){Dr[wr.field]="descend";switch(wr.field){case"student_id":Dt("descend"),it.b_order="desc";break}}else it.b_order=wr.order.replace("end",""),Dr[wr.field]=wr.order;qr(Object(p.a)({},Dr)),it.order=wr.field,Mr()}}))),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(s.a,{showSizeChanger:!1,onChange:sa,hideOnSinglePage:!0,defaultCurrent:it.page||1,current:it.page||1,defaultPageSize:20,total:De.workList.work_count}))),n.a.createElement(V,null),n.a.createElement(pe,null),n.a.createElement(w.a,{title:"\u4E00\u952E\u8BC4\u9605",visible:Re,centered:!0,onOk:function(){if(Rr===1){if(!(Xr===0)){if(!Xr){y.b.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}}Ve(!1),ot(!0)}else{if(!(ga===0||Qr===0)){if(!ga){y.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}if(!Qr){y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}}if(ga>Qr){y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206");return}Ve(!1),ot(!0)}},onCancel:function(){Ve(!1),Ar()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u8BC4\u9605\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{value:Rr,onChange:function(Zt){Ln(Zt.target.value)}},n.a.createElement(m.a,{value:1},"\u7EDF\u4E00\u5F97\u5206"),n.a.createElement(m.a,{value:2},"\u533A\u95F4\u968F\u673A\u5F97\u5206"))),Rr===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u5F97\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:Xr,onChange:function(Zt){return ra(Zt)}})),Rr===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:ga,onChange:function(Zt){return ya(Zt)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:Qr,onChange:function(Zt){return fa(Zt)},style:{width:"100px"}})),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},"\u8BC4\u8BED\uFF1A"),n.a.createElement(j.a.TextArea,{value:ha,onChange:function(Zt){return pa(Zt.target.value)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),n.a.createElement(w.a,{title:"\u63D0\u793A",visible:Be,centered:!0,okText:"\u786E\u5B9A\u70B9\u8BC4",cancelText:"\u653E\u5F03\u70B9\u8BC4",onOk:Object(L.a)(h.a.mark(function wn(){var Zt,Rn;return h.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Zt={},Rr===1?Zt.score=Xr||"0":(Zt.min_score=ga||"0",Zt.max_score=Qr||"0"),Zt.comment=ha,se===1?Zt.student_work_ids=Gt.map(function(ma){return ma.id}):Zt.student_work_ids=Gt.filter(function(ma){return!ma.has_comment}).map(function(ma){return ma.id}),$n.next=6,Object(ve.a)("/api/homework_commons/".concat(it.categoryId,"/batch_add_score.json"),{method:"post",body:Zt});case 6:Rn=$n.sent,Rn.status===0&&(y.b.info("\u4FEE\u6539\u6210\u529F"),ot(!1),Ar(),Mr());case 8:case"end":return $n.stop()}},wn)})),onCancel:function(){Ar(),ot(!1)}},n.a.createElement("div",{style:{padding:"32px",textAlign:"center"}},n.a.createElement("span",null,"\u90E8\u5206\u5B66\u751F\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF0C\u662F\u5426\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF1F"),n.a.createElement("br",null),n.a.createElement(m.a.Group,{value:se,onChange:function(Zt){return xe(Zt.target.value)}},n.a.createElement(m.a,{value:1},"\u8986\u76D6\u5DF2\u6709\u8BC4\u8BBA"),n.a.createElement(m.a,{value:2},"\u8DF3\u8FC7\u5DF2\u6709\u70B9\u8BC4")))),n.a.createElement(w.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Pt,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(L.a)(h.a.mark(function wn(){var Zt,Rn;return h.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(!(Rr===2)){$n.next=13;break}if(!(Mn.length<=0)){$n.next=4;break}return y.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),$n.abrupt("return");case 4:if(ha){$n.next=7;break}return y.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),$n.abrupt("return");case 7:return $n.next=9,Object(ve.a)("/api/homework_commons/".concat(it.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:ha,status:Mn}});case 9:Zt=$n.sent,Zt.status===0&&(Ur(Zt),Vt(!1),ir(!0)),$n.next=32;break;case 13:if(!(ga===0||Qr===0)){$n.next=16;break}$n.next=22;break;case 16:if(ga){$n.next=19;break}return y.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),$n.abrupt("return");case 19:if(Qr){$n.next=22;break}return y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),$n.abrupt("return");case 22:if(!(ga>Qr)){$n.next=25;break}return y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),$n.abrupt("return");case 25:if(ha){$n.next=28;break}return y.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),$n.abrupt("return");case 28:return $n.next=30,Object(ve.a)("/api/homework_commons/".concat(it.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:ha,min_score:ga,max_score:Qr}});case 30:Rn=$n.sent,Rn.status===0&&(Ur(Rn),Vt(!1),ir(!0));case 32:case"end":return $n.stop()}},wn)})),onCancel:function(){Vt(!1),Ar()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{value:Rr,onChange:function(Zt){Ln(Zt.target.value)}},n.a.createElement(m.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(m.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),Rr===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:ga,onChange:function(Zt){return ya(Zt)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:Qr,onChange:function(Zt){return fa(Zt)},style:{width:"100px"}})),Rr===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),n.a.createElement(B.a.Group,{onChange:function(Zt){qn(Object(Qe.a)(Zt))},style:{width:"100%"}},(Cr=ye.task_status)===null||Cr===void 0?void 0:Cr.map(function(wn,Zt){return n.a.createElement(B.a,{name:"task_status",value:wn.id},wn.name,"(",wn.count,")")}))),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),n.a.createElement(We.a,{className:Ee.a.MdEditor,onChange:function(Zt){return pa(Zt)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),n.a.createElement(w.a,{visible:xr,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(L.a)(h.a.mark(function wn(){var Zt,Rn;return h.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(!(Rr===2)){$n.next=7;break}return $n.next=3,Object(ve.a)("/api/homework_commons/".concat(it.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:ha,status:Mn}});case 3:Zt=$n.sent,Zt.status===0&&(y.b.info("\u6253\u56DE\u6210\u529F"),Ar(),Mr(),ir(!1)),$n.next=11;break;case 7:return $n.next=9,Object(ve.a)("/api/homework_commons/".concat(it.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:ha,min_score:ga,max_score:Qr}});case 9:Rn=$n.sent,Rn.status===0&&(y.b.info("\u6253\u56DE\u6210\u529F"),Ar(),Mr(),ir(!1));case 11:case"end":return $n.stop()}},wn)})),onCancel:function(){Ar(),ir(!1)}},n.a.createElement("div",{style:{padding:"32px"}},Rr===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",ga,"-",Qr,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),Rr===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((te=ye.task_status)===null||te===void 0?void 0:te.filter(function(wn){return Mn==null?void 0:Mn.includes(wn.id)}).map(function(wn){return wn.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Xn==null?void 0:Xn.count,"\u540D\u5B66\u751F"))))},qe=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.loading;return{shixunHomeworks:we,loading:mt.effects}})(hn),Ue=M("m3rI"),vt=M("9Bee"),Mt=function(we){var mt=we.shixunHomeworks,It=we.dispatch,un=Object(r.i)();return n.a.createElement(w.a,{centered:!0,title:"\u63D0\u793A",visible:mt.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(L.a)(h.a.mark(function Ot(){var bn;return h.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:return On.next=2,It({type:"shixunHomeworks/deleteReply",payload:{object_id:mt.actionTabs.selectArr.id,object_type:"journals_for_message"}});case 2:bn=On.sent,bn.status===0&&(y.b.success("\u5220\u9664\u6210\u529F"),It({type:"shixunHomeworks/setActionTabs",payload:{}}),It({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},mt.actionTabs.params)}));case 4:case"end":return On.stop()}},Ot)})),onCancel:function(){It({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))},st=Object(o.a)(function(Y){var we=Y.shixunHomeworks;return{shixunHomeworks:we}})(Mt),Ct=M("/MfK"),Ne=M("BtR2"),Se=M("/iVV"),Te=M.n(Se),le=M("p5ED");ie.a.lang("ZH-cn");var fe=function(we){var mt,It=we.shixunHomeworks,un=we.classroomList,Ot=we.user,bn=we.globalSetting,En=we.loading,On=we.dispatch,pr=Object(c.useState)(Object(p.a)({},Object(r.i)())),gr=Object(_.a)(pr,2),Un=gr[0],jn=gr[1],Fn=Object(c.useState)(!1),Jn=Object(_.a)(Fn,2),Tr=Jn[0],Zn=Jn[1],yr=Object(c.useState)(-1),Ht=Object(_.a)(yr,2),Hn=Ht[0],Hr=Ht[1],Lr=Object(c.useState)(""),or=Object(_.a)(Lr,2),Cr=or[0],te=or[1],De=Object(c.useState)(""),Xe=Object(_.a)(De,2),ze=Xe[0],ut=Xe[1],et=It.workList,bt=un.detailLeftMenus,ht=It.replyList,Tt=It.workDetail;Un.page_size=10;var it=Object(c.useState)({content:"",type:""}),Yt=Object(_.a)(it,2),ct=Yt[0],ye=Yt[1],Et=Object(c.useRef)();return Object(c.useEffect)(function(){On({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)}),On({type:"shixunHomeworks/getWorkDetail",payload:Object(p.a)({},Un)}),bt.course_modules||On({type:"classroomList/getClassroomLeftMenus",payload:Object(p.a)({},Un)})},[Un.categoryId]),n.a.createElement("section",{className:Te.a.bg},n.a.createElement("section",{className:""},n.a.createElement("aside",{className:[Te.a.desc,"c-black","font14","bg-white"].join(" ")},It.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement(vt.a,{value:(Tt==null?void 0:Tt.description)||"\u6682\u65E0\uFF5E"}),Tt==null||((mt=Tt.attachments)===null||mt===void 0)?void 0:mt.map(function(nt,Nt){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ue.a.API_SERVER).concat(nt.url),onClick:function(){var Dt=Object(L.a)(h.a.mark(function dt(gn){var In;return h.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(gn.preventDefault(),!(nt.file_type==="txt")){Ut.next=7;break}return Ut.next=4,Object(ve.a)(nt.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:In=Ut.sent,console.log("========================================",In),Et.current=In;case 7:ye({type:nt.file_type,content:window.location.origin+nt.url});case 8:case"end":return Ut.stop()}},dt)}));return function(dt){return Dt.apply(this,arguments)}}()},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},nt.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},nt.filesize),n.a.createElement("span",{className:"ml10 c-light-primary current",onClick:function(dt){dt.stopPropagation(),dt.preventDefault(),Object(E.v)("","".concat(Ue.a.API_SERVER).concat(nt.url))}},"\u4E0B\u8F7D"),n.a.createElement("span",{className:"ml10 c-green-29b current"},"\u9884\u89C8")))}),It.actionTabs.key==="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("aside",{className:["bg-white"].join(" ")},n.a.createElement(We.a,{onChange:function(Nt){te(Nt)},defaultValue:Tt==null?void 0:Tt.explanation,height:200,isFocus:!0,watch:!0}),n.a.createElement(H.a,null,n.a.createElement(ee.a,{span:24,className:"tr"},n.a.createElement(d.a,{type:"default",size:"large",onClick:Object(L.a)(h.a.mark(function nt(){return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:On({type:"shixunHomeworks/setActionTabs",payload:{key:""}});case 1:case"end":return Dt.stop()}},nt)}))},"\u53D6\u6D88"),n.a.createElement(d.a,{type:"primary",size:"large",className:"ml20",onClick:Object(L.a)(h.a.mark(function nt(){var Nt;return h.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(!(Cr==="")){dt.next=4;break}y.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),dt.next=8;break;case 4:return dt.next=6,On({type:"shixunHomeworks/updateWork",payload:{explanation:Cr,categoryId:Un.categoryId}});case 6:Nt=dt.sent,Nt.status===0&&(y.b.success("\u64CD\u4F5C\u6210\u529F"),On({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),On({type:"shixunHomeworks/getWorkDetail",payload:Object(p.a)({},Un)}));case 8:case"end":return dt.stop()}},nt)}))},"\u4FDD\u5B58"))))),n.a.createElement("aside",{className:[Te.a.reply,"bg-white","mt20"].join(" ")},Tr&&n.a.createElement(We.a,{onChange:function(Nt){te(Nt)},height:200,isFocus:!0,watch:!0}),n.a.createElement(H.a,{onClick:function(){Zn(!0)}},n.a.createElement(ee.a,{flex:"1"},!Tr&&n.a.createElement(j.a,{size:"large",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),n.a.createElement(ee.a,null,n.a.createElement(d.a,{type:"primary",size:"large",onClick:Object(L.a)(h.a.mark(function nt(){var Nt;return h.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(!(Cr==="")){dt.next=4;break}y.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),dt.next=8;break;case 4:return dt.next=6,On({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Un.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:Cr}}});case 6:Nt=dt.sent,Nt.status===0&&(y.b.success("\u53D1\u5E03\u6210\u529F"),On({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)}),Zn(!1),te(""));case 8:case"end":return dt.stop()}},nt)}))},"\u53D1\u8868")))),(ht==null?void 0:ht.comments)&&ht.comments!=""&&n.a.createElement("aside",{className:[Te.a.replyList,"bg-white"].join(" ")},ht==null?void 0:ht.comments.map(function(nt,Nt){var Dt,dt,gn,In;return n.a.createElement(H.a,{gutter:[12,12],key:Nt},n.a.createElement(ee.a,{flex:"40px"},n.a.createElement("img",{className:Te.a.headpic,width:"40",src:"".concat(Ue.a.IMG_SERVER,"/images/").concat(nt==null||((Dt=nt.author)===null||Dt===void 0)?void 0:Dt.image_url)})),n.a.createElement(ee.a,{flex:"1"},n.a.createElement(H.a,{align:"middle"},n.a.createElement(ee.a,{span:20},n.a.createElement("span",{className:"c-light-black"},nt==null||((dt=nt.author)===null||dt===void 0)?void 0:dt.name),n.a.createElement("span",{className:"c-light-black ml10"},nt==null?void 0:nt.time," \u53D1\u5E03")),n.a.createElement(ee.a,{className:"tr",span:4},(Object(X.c)()||(Ot==null||((gn=Ot.userInfo)===null||gn===void 0)?void 0:gn.login)===(nt==null||((In=nt.author)===null||In===void 0)?void 0:In.login))&&n.a.createElement(Pe.a,{title:"\u5220\u9664"},n.a.createElement(Ct.a,{className:"current",onClick:function(){On({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Un,selectArr:nt}})}}))),n.a.createElement(ee.a,{span:24},n.a.createElement(vt.a,{value:nt.content})),nt.children&&n.a.createElement("aside",{className:Te.a.comment},nt.children.map(function(sn,Ut){var an,Nn;return n.a.createElement(H.a,{key:Ut},n.a.createElement(ee.a,{span:24},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"1"},sn.author.name,n.a.createElement("span",{className:"c-light-black ml10"},sn==null?void 0:sn.time)),n.a.createElement(ee.a,null,(Object(X.c)()||(Ot==null||((an=Ot.userInfo)===null||an===void 0)?void 0:an.login)===(sn==null||((Nn=sn.author)===null||Nn===void 0)?void 0:Nn.login))&&n.a.createElement(Pe.a,{title:"\u5220\u9664"},n.a.createElement(Ct.a,{className:"current",onClick:function(){On({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Un,selectArr:sn}})}}))))),n.a.createElement(ee.a,null,n.a.createElement(vt.a,{value:sn.content})))})),n.a.createElement(ee.a,{span:24,className:"mt5 c-light-black"},Hn===Nt&&n.a.createElement("aside",null,n.a.createElement(We.a,{onChange:function(Ut){ut(Ut)},height:150,isFocus:!0}),n.a.createElement(H.a,null,n.a.createElement(ee.a,{span:24,className:"tr"},n.a.createElement(d.a,{type:"primary",size:"large",onClick:Object(L.a)(h.a.mark(function sn(){return h.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(!(ze==="")){an.next=4;break}y.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),an.next=9;break;case 4:return an.next=6,On({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Un.categoryId,jour_type:"HomeworkCommon",m_parent_id:nt.id,reply_id:1,notes:ze}}});case 6:On({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)}),y.b.success("\u53D1\u5E03\u6210\u529F"),Hr(-1);case 9:case"end":return an.stop()}},sn)}))},"\u53D1\u8868")))),Hn!==Nt&&n.a.createElement("div",{className:"tr"},n.a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:function(){return Hr(Nt)}}),!!nt.user_praise&&n.a.createElement("span",{className:"c-orange"},n.a.createElement(Ne.a,{className:"mr5 ml30",onClick:Object(L.a)(h.a.mark(function sn(){return h.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return an.next=2,On({type:"shixunHomeworks/replyUnLike",payload:{object_id:nt.id,object_type:"journals_for_message"}});case 2:On({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)});case 3:case"end":return an.stop()}},sn)}))}),!!nt.praise_count&&nt.praise_count),!nt.user_praise&&n.a.createElement("span",null,n.a.createElement(Ne.a,{className:"mr5 ml30",onClick:Object(L.a)(h.a.mark(function sn(){return h.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return an.next=2,On({type:"shixunHomeworks/replyLike",payload:{object_id:nt.id,object_type:"journals_for_message"}});case 2:On({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)});case 3:case"end":return an.stop()}},sn)}))}),!!nt.praise_count&&nt.praise_count))))))}))),n.a.createElement("aside",{className:"tc mt30 pb30"},n.a.createElement(s.a,{defaultCurrent:1,total:ht==null?void 0:ht.total_count,hideOnSinglePage:!0,current:Un.page||1,onChange:function(Nt){Un.page=Nt,On({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)})}})),n.a.createElement(st,null),n.a.createElement(le.a,{close:!0,data:ct==null?void 0:ct.content,type:ct==null?void 0:ct.type,hasMask:!0,monacoEditor:{value:Et.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return ye({content:"",type:""})}}))},_e=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.classroomList,It=Y.user,un=Y.loading,Ot=Y.globalSetting;return{shixunHomeworks:we,globalSetting:Ot,user:It,classroomList:mt,loading:un.effects}})(fe);ie.a.lang("ZH-cn");var Me=function(we){var mt,It,un=we.shixunHomeworks,Ot=we.classroomList,bn=we.globalSetting,En=we.loading,On=we.dispatch,pr=Object(r.i)(),gr=Ot.detailLeftMenus,Un=un.replyList,jn=un.referenceAnswer;pr.page_size=10;var Fn=Object(c.useState)({content:"",type:""}),Jn=Object(_.a)(Fn,2),Tr=Jn[0],Zn=Jn[1],yr=Object(c.useRef)();return Object(c.useEffect)(function(){On({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},pr)}),On({type:"shixunHomeworks/getReferenceAnswer",payload:{coursesId:pr.categoryId}}),gr.course_modules||On({type:"classroomList/getClassroomLeftMenus",payload:Object(p.a)({},pr)})},[pr.categoryId]),n.a.createElement("section",{className:"pb30 bg-white pl30 pr30 pt30"},n.a.createElement("aside",{className:["c-black","font14"].join(" ")},n.a.createElement("div",null,(jn==null?void 0:jn.reference_answer)&&n.a.createElement(vt.a,{value:jn==null?void 0:jn.reference_answer}),!(jn!=null&&jn.reference_answer)&&!((mt=jn.attachments)!==null&&mt!==void 0&&mt.length)&&n.a.createElement(Oe.a,null)),jn==null||((It=jn.attachments)===null||It===void 0)?void 0:It.map(function(Ht,Hn){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ue.a.API_SERVER).concat(Ht.url),onClick:function(){var Hr=Object(L.a)(h.a.mark(function Lr(or){var Cr;return h.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(or.preventDefault(),!(Ht.file_type==="txt")){De.next=6;break}return De.next=4,Object(ve.a)(Ht.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:Cr=De.sent,yr.current=Cr;case 6:Zn({type:Ht.file_type,content:window.location.origin+Ht.url});case 7:case"end":return De.stop()}},Lr)}));return function(Lr){return Hr.apply(this,arguments)}}()},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},Ht.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},Ht.filesize),n.a.createElement("span",{className:"ml10 c-light-primary current",onClick:function(Lr){Lr.stopPropagation(),Object(E.v)("","".concat(Ue.a.API_SERVER).concat(Ht.url))}},"\u4E0B\u8F7D"),n.a.createElement("span",{className:"ml10 c-green-29b current",onClick:function(){var Hr=Object(L.a)(h.a.mark(function Lr(or){var Cr;return h.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(or.preventDefault(),!(Ht.file_type==="txt")){De.next=6;break}return De.next=4,Object(ve.a)(Ht.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:Cr=De.sent,yr.current=Cr;case 6:Zn({type:Ht.file_type,content:window.location.origin+Ht.url});case 7:case"end":return De.stop()}},Lr)}));return function(Lr){return Hr.apply(this,arguments)}}()},"\u9884\u89C8")))})),n.a.createElement(le.a,{close:!0,data:Tr==null?void 0:Tr.content,type:Tr==null?void 0:Tr.type,hasMask:!0,monacoEditor:{value:yr.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return Zn({content:"",type:""})}}))},rt=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.classroomList,It=Y.loading,un=Y.globalSetting;return{shixunHomeworks:we,globalSetting:un,classroomList:mt,loading:It.effects}})(Me),Je=M("4HvA"),jt=M("aUhZ"),rn=M("NNe0"),pn=M.n(rn),on=function(we){var mt,It,un=we.shixunHomeworks,Ot=we.loading,bn=we.dispatch,En=Object(c.useState)(!0),On=Object(_.a)(En,2),pr=On[0],gr=On[1],Un=Object(c.useState)(!1),jn=Object(_.a)(Un,2),Fn=jn[0],Jn=jn[1],Tr=Object(c.useState)([]),Zn=Object(_.a)(Tr,2),yr=Zn[0],Ht=Zn[1],Hn=Object(c.useState)([]),Hr=Object(_.a)(Hn,2),Lr=Hr[0],or=Hr[1],Cr=Object(c.useState)([]),te=Object(_.a)(Cr,2),De=te[0],Xe=te[1],ze=Object(c.useState)([]),ut=Object(_.a)(ze,2),et=ut[0],bt=ut[1],ht=Object(r.i)();function Tt(){return it.apply(this,arguments)}function it(){return it=Object(L.a)(h.a.mark(function Et(){var nt;return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,Object(ve.a)("/api/homework_commons/".concat(ht.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:nt=Dt.sent,or(nt);case 4:case"end":return Dt.stop()}},Et)})),it.apply(this,arguments)}function Yt(){return ct.apply(this,arguments)}function ct(){return ct=Object(L.a)(h.a.mark(function Et(){var nt;return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,Object(ve.a)("/api/courses/".concat(ht==null?void 0:ht.coursesId,"/teachers"),{method:"get",params:{homework_id:ht.categoryId}});case 2:nt=Dt.sent,nt==null||nt.teacher_list.map(function(dt){dt.key=dt.user_id}),Xe(nt==null?void 0:nt.teacher_list),bt(nt==null?void 0:nt.teacher_list);case 6:case"end":return Dt.stop()}},Et)})),ct.apply(this,arguments)}Object(c.useEffect)(function(){Tt(),Yt()},[ht]);var ye=function(){};return n.a.createElement("section",{className:[pn.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(Lr==null?void 0:Lr.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){Jn(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),n.a.createElement(H.a,{style:{marginTop:"20px",marginBottom:"20px"}},(Lr==null||((mt=Lr.data)===null||mt===void 0)?void 0:mt.length)<=0&&n.a.createElement(Oe.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),Lr==null||((It=Lr.data)===null||It===void 0)?void 0:It.map(function(Et){return n.a.createElement("span",{style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px"}},n.a.createElement("span",{style:{flex:"1"}},Et==null?void 0:Et.real_name),(Lr==null?void 0:Lr.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(L.a)(h.a.mark(function nt(){var Nt;return h.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,Object(ve.a)("/api/homework_commons/".concat(ht.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:Et.id}});case 2:Nt=dt.sent,Nt.status===0&&(y.b.info("\u5220\u9664\u6210\u529F"),Tt(),Yt());case 4:case"end":return dt.stop()}},nt)}))},"X"))})),n.a.createElement(H.a,null,!pr&&n.a.createElement(ee.a,{className:"mb50"},n.a.createElement(d.a,{type:"primary",size:"large",onClick:function(){return ye()}},"\u63D0\u4EA4"),n.a.createElement(d.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){gr(!0)}},"\u53D6\u6D88"))),n.a.createElement(w.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Fn,onCancel:function(){return Jn(!1)},onOk:Object(L.a)(h.a.mark(function Et(){var nt;return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(!(yr.length===0)){Dt.next=3;break}return y.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),Dt.abrupt("return");case 3:return Dt.next=5,Object(ve.a)("/api/homework_commons/".concat(ht.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:yr}});case 5:nt=Dt.sent,nt.status===0&&(y.b.info("\u6DFB\u52A0\u6210\u529F"),Ht([]),Tt(),Yt(),Jn(!1));case 7:case"end":return Dt.stop()}},Et)}))},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(j.a.Search,{onChange:function(nt){Xe(et.filter(function(Nt){return Nt.name.indexOf(nt.target.value)>-1}))}})),n.a.createElement(D.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(nt,Nt){Ht(nt)},selectedRowKeys:yr,getCheckboxProps:function(nt){return{disabled:nt.is_collaborator}}},pagination:!1,dataSource:De,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},Jt=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.loading;return{shixunHomeworks:we,loading:mt.effects}})(on),wt=M("/zsF"),St=M("PArb"),lt=M("OaEy"),ge=M("2fM7"),Le=M("iQDF"),yt=M("+eQT"),ft=M("w5pM"),en=M("LvDl"),Xt=yt.a.RangePicker,at=ge.a.Option,xt=function(we){var mt,It,un,Ot,bn,En,On,pr,gr,Un,jn,Fn=we.shixunHomeworks,Jn=we.loading,Tr=we.dispatch,Zn=Object(r.i)(),yr=Object(r.h)(),Ht=Fn.workSetting,Hn=Fn.workList,Hr=Object(c.useState)(!0),Lr=Object(_.a)(Hr,2),or=Lr[0],Cr=Lr[1],te=Object(c.useState)({}),De=Object(_.a)(te,2),Xe=De[0],ze=De[1],ut=Ae.a.useForm(),et=Object(_.a)(ut,1),bt=et[0],ht=Object(c.useState)([]),Tt=Object(_.a)(ht,2),it=Tt[0],Yt=Tt[1],ct=Object(c.useState)([]),ye=Object(_.a)(ct,2),Et=ye[0],nt=ye[1],Nt=Object(c.useState)({unified_setting:!1,publish_time:"",end_time:"",ta_mode:1,final_mode:!1,st_proportion:"",ta_proportion:"",te_proportion:"",student_comment:!1,anonymous_appeal:!1,appeal_penalty:0,appeal_time:"",anonymous_comment:!1,evaluation_num:0,evaluation_start:"",evaluation_end:"",absence_penalty:0,work_public:!1,unified_late:!0,allow_late:!1,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,comment_public:!0,score_open:!1,total_score:"",eff_score:""}),Dt=Object(_.a)(Nt,2),dt=Dt[0],gn=Dt[1],In=(Hn==null||((mt=Hn.homework_status)===null||mt===void 0)?void 0:mt.includes("\u533F\u8BC4\u4E2D"))||(Hn==null||((It=Hn.homework_status)===null||It===void 0)?void 0:It.includes("\u7533\u8BC9\u4E2D")),sn=(Hn==null||((un=Hn.homework_status)===null||un===void 0)?void 0:un.includes("\u533F\u8BC4\u4E2D"))||(Hn==null||((Ot=Hn.homework_status)===null||Ot===void 0)?void 0:Ot.includes("\u7533\u8BC9\u4E2D"))||(Hn==null||((bn=Hn.homework_status)===null||bn===void 0)?void 0:bn.includes("\u5DF2\u622A\u6B62"));Object(c.useEffect)(function(){Ut()},[]),Object(c.useEffect)(function(){if(!(Ht!=null&&Ht.course_id))return;Object.keys(dt).map(function(zt){dt[zt]=Ht[zt]}),(!dt.allow_late||!dt.unified_late)&&(dt.late_penalty=5),it=JSON.parse(JSON.stringify(Ht.group_settings.map(function(zt){return Object(p.a)(Object(p.a)({},zt),{},{group_name:[zt.group_name]})}).filter(function(zt){return zt.publish_time!==null}))),Et=JSON.parse(JSON.stringify(Ht.allow_late_settings.map(function(zt){return Object(p.a)(Object(p.a)({},zt),{},{group_name:[zt.group_name]})}).filter(function(zt){return zt.late_time!==null}))),gn(Object(p.a)({},dt)),Yt(Object(Qe.a)(it)),nt(Object(Qe.a)(Et))},[Ht]);var Ut=function(){Tr({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},Zn)})},an=function(){var zt=Object(L.a)(h.a.mark(function Gt(){var At,Ft,vn,Dn;return h.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:if(Ft=JSON.parse(JSON.stringify(dt)),Ft.categoryId=Zn.categoryId,dt.unified_setting||((At=it)===null||At===void 0||At.map(function(qt){var Sr,zn;if(!qt.publish_time||!qt.end_time)throw y.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!qt.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");qt.group_name=typeof(qt==null?void 0:qt.group_name)=="string"?[qt==null?void 0:qt.group_name]:qt==null?void 0:qt.group_name,console.log("item:0",qt,Ht.group_settings,it),qt.group_id=qt==null||((Sr=qt.group_name)===null||Sr===void 0||((zn=Sr.map(function(zr){var Gr,Rr,Ln=(Gr=Ht.group_settings)===null||Gr===void 0||((Rr=Gr.filter(function(Bn){return(Bn==null?void 0:Bn.group_name)===zr}))===null||Rr===void 0)?void 0:Rr[0];return console.log("d:",Ln,zr),Ln==null?void 0:Ln.group_id}))===null||zn===void 0))?void 0:zn.toString().split(",")})),Ft.group_settings=it,!dt.allow_late){nr.next=16;break}if(!dt.unified_late){nr.next=14;break}if(!(dt.late_penalty===null||dt.late_penalty===void 0||dt.late_penalty<0||dt.late_penalty>100)){nr.next=9;break}throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");case 9:if(dt.late_time){nr.next=12;break}throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");case 12:nr.next=16;break;case 14:Et=(vn=Et)===null||vn===void 0?void 0:vn.map(function(qt){var Sr,zn;if(qt.late_penalty===null||qt.late_penalty===void 0||qt.late_penalty<0||qt.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!qt.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!qt.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return qt.group_name=typeof(qt==null?void 0:qt.group_name)=="string"?[qt==null?void 0:qt.group_name]:qt==null?void 0:qt.group_name,qt.group_id=qt==null||((Sr=qt.group_name)===null||Sr===void 0||((zn=Sr.map(function(zr){var Gr,Rr,Ln=(Gr=Ht.group_settings)===null||Gr===void 0||((Rr=Gr.filter(function(Bn){return(Bn==null?void 0:Bn.group_name)===zr}))===null||Rr===void 0)?void 0:Rr[0];return Ln==null?void 0:Ln.group_id}))===null||zn===void 0))?void 0:zn.toString().split(","),qt}),Ft.allow_late_settings=Et;case 16:return Object.keys(Ft).map(function(qt){qt.indexOf("proportion")>-1&&(Ft[qt]=Ft[qt]/100)}),nr.next=19,Object(ve.a)("/api/homework_commons/".concat(Zn.categoryId,"/publish_setting.json"),{method:"post",body:Object(p.a)({},Ft)});case 19:Dn=nr.sent,Dn.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),Cr(!0),Ut(),Tr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},Zn)}));case 21:case"end":return nr.stop()}},Gt)}));return function(){return zt.apply(this,arguments)}}(),Nn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),dn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),mn=function(Gt){return Gt&&Gt0&&!zt.id&&n.a.createElement(Ct.a,{onClick:function(){it=it.filter(function(Dn,ur){return Gt!==ur}),Yt(it.slice()),setTimeout(function(){return Yt(it.slice())},10)}}),n.a.createElement(ft.a,{className:"c-green ml20",onClick:function(){Yt(it.concat({}))}}))))})),n.a.createElement(St.a,null),n.a.createElement(H.a,null,n.a.createElement(ee.a,null,n.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E")),n.a.createElement(ee.a,{span:24,className:"mt15 pl30"},n.a.createElement(B.a,{checked:dt.allow_late,disabled:or,onChange:function(){dt.allow_late=!dt.allow_late,Et==""&&nt([{late_penalty:5}]),gn(Object.assign({},dt))}},n.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u751F\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1)"))),(dt==null?void 0:dt.allow_late)&&n.a.createElement("div",{style:{marginLeft:22}},n.a.createElement("div",{className:"ml30 mt20"},n.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{disabled:or,value:dt.unified_late,onChange:function(Gt){dt.unified_late=Gt.target.value,Et==""&&!Gt.target.value&&nt([{late_penalty:5}]),gn(Object(p.a)({},dt))}},(dt==null?void 0:dt.unified_setting)&&n.a.createElement(m.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(Ht==null||((jn=Ht.group_settings)===null||jn===void 0)?void 0:jn.length)&&n.a.createElement(m.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),dt!=null&&dt.unified_late?n.a.createElement(n.a.Fragment,null,n.a.createElement(H.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ee.a,null,"\u8865\u4EA4\u6263\u5206:"),n.a.createElement(ee.a,{className:"ml5"},n.a.createElement(P.a,{disabled:or||!dt.allow_late,value:dt.late_penalty,onChange:function(Gt){dt.late_penalty=Gt,gn(Object.assign({},dt))}})),n.a.createElement(ee.a,{flex:"1",className:"ml5"},"\u5206",n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1\u65F6\uFF0C\u5B66\u751F\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),n.a.createElement(H.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ee.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ee.a,{className:"ml5"},n.a.createElement(yt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ie()(Object(E.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:or||!dt.allow_late,value:dt.late_time?ie()(dt.late_time):"",disabledDate:mn,onChange:function(Gt,At){dt.late_time=At,gn(Object.assign({},dt))}})),n.a.createElement(ee.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):Et.map(function(zt,Gt){var At;return n.a.createElement(ee.a,{span:24,key:Gt},n.a.createElement(H.a,{className:"mt25"},n.a.createElement(ee.a,{style:{marginLeft:30}},n.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",Gt+1,"\uFF1A"),n.a.createElement(ge.a,{disabled:or||!(Hn!=null&&(At=Hn.homework_status)!==null&&At!==void 0&&At.includes("\u672A\u53D1\u5E03"))&&zt.id,mode:"multiple",style:{width:306},value:typeof zt.group_name=="string"?[zt.group_name]:zt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(vn){Et[Gt].group_name=vn,Et[Gt].group_id=zt.group_id,nt(Et.slice())}},Ht.group_settings&&Ht.group_settings.map(function(Ft){if(dt!=null&&dt.unified_setting&&!Et.map(function(vn){return vn.group_name}).toString().split(",").includes(String(Ft.group_name)))return n.a.createElement(at,{value:Ft.group_name,key:Ft.id},Ft.group_name);if(it.map(function(vn){return vn.group_name}).toString().split(",").includes(String(Ft.group_name))&&!Et.map(function(vn){return vn.group_name}).toString().split(",").includes(String(Ft.group_name)))return n.a.createElement(at,{value:Ft.group_name,key:Ft.id},Ft.group_name)}))),n.a.createElement(ee.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,disabled:or,defaultValue:zt.late_penalty,onChange:function(vn){Et[Gt].late_penalty=vn}})),n.a.createElement(ee.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),n.a.createElement(yt.a,{disabled:or,style:{width:200},showTime:{format:"HH:mm",defaultValue:ie()(Object(E.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:mn,format:"YYYY-MM-DD HH:mm",value:zt!=null&&zt.late_time?ie()(zt.late_time):void 0,onChange:function(vn,Dn){Et[Gt].late_time=Dn,nt(Object(Qe.a)(Et))}})),!or&&n.a.createElement(ee.a,{className:"ml20"},Gt>0&&!zt.id&&n.a.createElement(Ct.a,{onClick:function(){Et=Et.filter(function(vn,Dn){return Gt!==Dn}),nt(Et.slice()),setTimeout(function(){return nt(Et.slice())},10)}}),n.a.createElement(ft.a,{className:"c-green ml20",onClick:function(){nt(Et.concat({late_penalty:5}))}}))))})),n.a.createElement(St.a,null)),n.a.createElement(H.a,null,!or&&n.a.createElement(ee.a,{className:"mb50 mt20 btn-w120"},n.a.createElement(d.a,{type:"primary",size:"large",onClick:function(){return an()}},"\u63D0\u4EA4"),n.a.createElement(d.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Cr(!0),Ut()}},"\u53D6\u6D88"))))},Rt=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.loading;return{shixunHomeworks:we,loading:mt.effects}})(xt),cn=M("Q9mQ"),xn=M("diRs"),ar=M("Lyp1"),fr=yt.a.RangePicker,tr=ge.a.Option,Sn=function(we){var mt,It,un,Ot,bn,En,On=we.shixunHomeworks,pr=we.loading,gr=we.dispatch,Un=Object(r.i)(),jn=Object(r.h)(),Fn=On.workSetting,Jn=On.workList,Tr=Object(c.useState)(!0),Zn=Object(_.a)(Tr,2),yr=Zn[0],Ht=Zn[1],Hn=Object(c.useState)({}),Hr=Object(_.a)(Hn,2),Lr=Hr[0],or=Hr[1],Cr=Ae.a.useForm(),te=Object(_.a)(Cr,1),De=te[0],Xe=Object(c.useState)([]),ze=Object(_.a)(Xe,2),ut=ze[0],et=ze[1],bt=Object(c.useState)([]),ht=Object(_.a)(bt,2),Tt=ht[0],it=ht[1],Yt=Object(c.useState)({unified_setting:!1,publish_time:"",end_time:"",ta_mode:1,final_mode:!1,st_proportion:"",ta_proportion:"",te_proportion:"",student_comment:!1,anonymous_appeal:!1,appeal_penalty:0,appeal_time:"",anonymous_comment:!1,evaluation_num:0,evaluation_start:"",evaluation_end:"",absence_penalty:0,work_public:!1,unified_late:!0,allow_late:!1,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,total_score:"",eff_score:""}),ct=Object(_.a)(Yt,2),ye=ct[0],Et=ct[1],nt=(Jn==null||((mt=Jn.homework_status)===null||mt===void 0)?void 0:mt.includes("\u533F\u8BC4\u4E2D"))||(Jn==null||((It=Jn.homework_status)===null||It===void 0)?void 0:It.includes("\u7533\u8BC9\u4E2D")),Nt=(Jn==null||((un=Jn.homework_status)===null||un===void 0)?void 0:un.includes("\u533F\u8BC4\u4E2D"))||(Jn==null||((Ot=Jn.homework_status)===null||Ot===void 0)?void 0:Ot.includes("\u7533\u8BC9\u4E2D"))||(Jn==null||((bn=Jn.homework_status)===null||bn===void 0)?void 0:bn.includes("\u5DF2\u622A\u6B62"));Object(c.useEffect)(function(){Dt()},[]),Object(c.useEffect)(function(){if(!(Fn!=null&&Fn.course_id))return;Object.keys(ye).map(function(Ut){ye[Ut]=Fn[Ut]}),(!ye.allow_late||!ye.unified_late)&&(ye.late_penalty=5),ut=JSON.parse(JSON.stringify(Fn.group_settings.map(function(Ut){return Object(p.a)(Object(p.a)({},Ut),{},{group_name:[Ut.group_name]})}).filter(function(Ut){return Ut.publish_time!==null}))),Tt=JSON.parse(JSON.stringify(Fn.allow_late_settings.map(function(Ut){return Object(p.a)(Object(p.a)({},Ut),{},{group_name:[Ut.group_name]})}).filter(function(Ut){return Ut.late_time!==null}))),Et(Object(p.a)({},ye)),et(Object(Qe.a)(ut)),it(Object(Qe.a)(Tt))},[Fn]);var Dt=function(){gr({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},Un)})},dt=function(){var Ut=Object(L.a)(h.a.mark(function an(){var Nn,dn,mn,zt;return h.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(dn=JSON.parse(JSON.stringify(ye)),dn.categoryId=Un.categoryId,ye.unified_setting||((Nn=ut)===null||Nn===void 0||Nn.map(function(Ft){var vn,Dn;if(!Ft.publish_time||!Ft.end_time)throw y.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ft.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");Ft.group_name=typeof(Ft==null?void 0:Ft.group_name)=="string"?[Ft==null?void 0:Ft.group_name]:Ft==null?void 0:Ft.group_name,console.log("item:0",Ft,Fn.group_settings,ut),Ft.group_id=Ft==null||((vn=Ft.group_name)===null||vn===void 0||((Dn=vn.map(function(ur){var nr,qt,Sr=(nr=Fn.group_settings)===null||nr===void 0||((qt=nr.filter(function(zn){return(zn==null?void 0:zn.group_name)===ur}))===null||qt===void 0)?void 0:qt[0];return console.log("d:",Sr,ur),Sr==null?void 0:Sr.group_id}))===null||Dn===void 0))?void 0:Dn.toString().split(",")})),dn.group_settings=ut,!ye.allow_late){At.next=16;break}if(!ye.unified_late){At.next=14;break}if(!(ye.late_penalty===null||ye.late_penalty===void 0||ye.late_penalty<0||ye.late_penalty>100)){At.next=9;break}throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");case 9:if(ye.late_time){At.next=12;break}throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");case 12:At.next=16;break;case 14:Tt=(mn=Tt)===null||mn===void 0?void 0:mn.map(function(Ft){var vn,Dn;if(Ft.late_penalty===null||Ft.late_penalty===void 0||Ft.late_penalty<0||Ft.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ft.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ft.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ft.group_name=typeof(Ft==null?void 0:Ft.group_name)=="string"?[Ft==null?void 0:Ft.group_name]:Ft==null?void 0:Ft.group_name,Ft.group_id=Ft==null||((vn=Ft.group_name)===null||vn===void 0||((Dn=vn.map(function(ur){var nr,qt,Sr=(nr=Fn.group_settings)===null||nr===void 0||((qt=nr.filter(function(zn){return(zn==null?void 0:zn.group_name)===ur}))===null||qt===void 0)?void 0:qt[0];return Sr==null?void 0:Sr.group_id}))===null||Dn===void 0))?void 0:Dn.toString().split(","),Ft}),dn.allow_late_settings=Tt;case 16:if(!ye.evaluation_start){At.next=23;break}if(!(ye.end_time&&ie()(ye.evaluation_start)<=ie()(ye.end_time))){At.next=20;break}throw y.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4");case 20:if(!(ye.late_time&&ie()(ye.evaluation_start)<=ie()(ye.late_time))){At.next=23;break}throw y.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4");case 23:return Object.keys(dn).map(function(Ft){Ft.indexOf("proportion")>-1&&(dn[Ft]=dn[Ft]/100)}),At.next=26,Object(ve.a)("/api/homework_commons/".concat(Un.categoryId,"/evaluation_setting.json"),{method:"post",body:Object(p.a)({},dn)});case 26:zt=At.sent,zt.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),Ht(!0),Dt(),gr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},Un)}));case 28:case"end":return At.stop()}},an)}));return function(){return Ut.apply(this,arguments)}}(),gn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),In=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),sn=function(an){return an&&an-1&&(jn[sn]=jn[sn]*100),ct[sn]=jn[sn]}),(!ct.allow_late||!ct.unified_late)&&(ct.late_penalty=5),ze=JSON.parse(JSON.stringify(jn.group_settings.map(function(sn){return Object(p.a)(Object(p.a)({},sn),{},{group_name:[sn.group_name]})}).filter(function(sn){return sn.publish_time!==null}))),ht=JSON.parse(JSON.stringify(jn.allow_late_settings.map(function(sn){return Object(p.a)(Object(p.a)({},sn),{},{group_name:[sn.group_name]})}).filter(function(sn){return sn.late_time!==null}))),ye(Object(p.a)({},ct)),ut(Object(Qe.a)(ze)),Tt(Object(Qe.a)(ht))},[jn]);var Nt=function(){pr({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},gr)})},Dt=function(){var sn=Object(L.a)(h.a.mark(function Ut(){var an,Nn,dn,mn;return h.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(Nn=JSON.parse(JSON.stringify(ct)),Nn.categoryId=gr.categoryId,ct.unified_setting||((an=ze)===null||an===void 0||an.map(function(At){var Ft,vn;if(!At.publish_time||!At.end_time)throw y.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!At.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");At.group_name=typeof(At==null?void 0:At.group_name)=="string"?[At==null?void 0:At.group_name]:At==null?void 0:At.group_name,console.log("item:0",At,jn.group_settings,ze),At.group_id=At==null||((Ft=At.group_name)===null||Ft===void 0||((vn=Ft.map(function(Dn){var ur,nr,qt=(ur=jn.group_settings)===null||ur===void 0||((nr=ur.filter(function(Sr){return(Sr==null?void 0:Sr.group_name)===Dn}))===null||nr===void 0)?void 0:nr[0];return console.log("d:",qt,Dn),qt==null?void 0:qt.group_id}))===null||vn===void 0))?void 0:vn.toString().split(",")})),Nn.group_settings=ze,!ct.allow_late){Gt.next=16;break}if(!ct.unified_late){Gt.next=14;break}if(!(ct.late_penalty===null||ct.late_penalty===void 0||ct.late_penalty<0||ct.late_penalty>100)){Gt.next=9;break}throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");case 9:if(ct.late_time){Gt.next=12;break}throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");case 12:Gt.next=16;break;case 14:ht=(dn=ht)===null||dn===void 0?void 0:dn.map(function(At){var Ft,vn;if(At.late_penalty===null||At.late_penalty===void 0||At.late_penalty<0||At.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!At.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!At.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return At.group_name=typeof(At==null?void 0:At.group_name)=="string"?[At==null?void 0:At.group_name]:At==null?void 0:At.group_name,At.group_id=At==null||((Ft=At.group_name)===null||Ft===void 0||((vn=Ft.map(function(Dn){var ur,nr,qt=(ur=jn.group_settings)===null||ur===void 0||((nr=ur.filter(function(Sr){return(Sr==null?void 0:Sr.group_name)===Dn}))===null||nr===void 0)?void 0:nr[0];return qt==null?void 0:qt.group_id}))===null||vn===void 0))?void 0:vn.toString().split(","),At}),Nn.allow_late_settings=ht;case 16:return Object.keys(Nn).map(function(At){At.indexOf("proportion")>-1&&(Nn[At]=Nn[At]/100)}),Gt.next=19,Object(ve.a)("/api/homework_commons/".concat(gr.categoryId,"/score_setting_with_normal.json"),{method:"post",body:Object(p.a)({},Nn)});case 19:mn=Gt.sent,mn.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),yr(!0),Nt(),pr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},gr)}));case 21:case"end":return Gt.stop()}},Ut)}));return function(){return sn.apply(this,arguments)}}(),dt=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),gn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),In=function(Ut){return Ut&&Ut100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ct.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Nn;ht=(Nn=ht)===null||Nn===void 0?void 0:Nn.map(function(dn){var mn,zt;if(dn.late_penalty===null||dn.late_penalty===void 0||dn.late_penalty<0||dn.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!dn.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!dn.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return dn.group_name=typeof(dn==null?void 0:dn.group_name)=="string"?[dn==null?void 0:dn.group_name]:dn==null?void 0:dn.group_name,dn.group_id=dn==null||((mn=dn.group_name)===null||mn===void 0||((zt=mn.map(function(Gt){var At,Ft,vn=(At=jn.group_settings)===null||At===void 0||((Ft=At.filter(function(Dn){return(Dn==null?void 0:Dn.group_name)===Gt}))===null||Ft===void 0)?void 0:Ft[0];return vn==null?void 0:vn.group_id}))===null||zt===void 0))?void 0:zt.toString().split(","),dn}),an.allow_late_settings=ht}Object.keys(an).map(function(dn){dn.indexOf("proportion")>-1&&(an[dn]=an[dn]/100)}),pr({type:"shixunHomeworks/updateSetting",payload:an}).then(function(dn){dn.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),yr(!0),Nt(),pr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},gr)}))})},dt=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),gn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),In=function(Ut){return Ut&&Ut"},n.a.createElement(z.a.Item,null,n.a.createElement(l.a,{to:"/classrooms/".concat(Ht.course_id,"/common_homework")},Ht.course_name)),n.a.createElement(z.a.Item,null,n.a.createElement(l.a,{to:"/classrooms/".concat(Ht.course_id,"/common_homework/").concat(((mt=Ht.category)===null||mt===void 0?void 0:mt.main)===1?"":Ht.category.category_id)},Ht.category.category_name)),n.a.createElement(z.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[_r.a.title,"mt20"].join(" ")},n.a.createElement(l.a,{to:"/classrooms/".concat(Ht.course_id,"/common_homework/").concat(((It=Ht.category)===null||It===void 0?void 0:It.main)===1?"":Ht.category.category_id)},n.a.createElement(x.a,{className:"font16 c-black"})),n.a.createElement("strong",{className:"font20 ml5"},Ht.homework_name),n.a.createElement(E.k,{status:Ht.homework_status}))),n.a.createElement("aside",{className:"mt30 relative ".concat(_r.a.workListTabWrap)},n.a.createElement(G.a,{type:"card",activeKey:Un,tabBarExtraContent:Lr(),onTabClick:function(Cr,te){if(parseInt(Cr)===2){if(!(Ht!=null&&Ht.view_answer)){y.b.info("\u672C\u6B21\u4F5C\u4E1A\u8001\u5E08\u672A\u516C\u5F00\u7B54\u6848");return}(Ht==null?void 0:Ht.time_status)>2||Object(X.d)()?jn(Cr):y.b.info("\u622A\u6B62\u4E4B\u540E\u7684\u8BD5\u5377\u624D\u80FD\u67E5\u770B\u7B54\u6848")}else jn(Cr)},className:_r.a.tabs},Hr.map(function(or,Cr){return n.a.createElement(G.a.TabPane,{tab:or.name,key:or.id},or.compontent)})))),n.a.createElement(C.a,null),n.a.createElement(Je.a,{type:"edit",onCallback:function(){return Hn()}}),n.a.createElement(jt.a,{type:"edit",onCallback:function(){return Hn()}}),n.a.createElement(k.a,{ref:Fn,hide:!0,name:"".concat(Ht==null?void 0:Ht.homework_name,"-\u4F5C\u54C1\u9644\u4EF6"),onOk:function(){return yr(!1)}}))},ne=Ce.default=Object(o.a)(function(Y){var we=Y.user,mt=Y.shixunHomeworks,It=Y.loading,un=Y.globalSetting;return{user:we,shixunHomeworks:mt,globalSetting:un,loading:It.effects}})($)},JYp7:function(nn,Ce,M){"use strict";M.d(Ce,"c",function(){return G}),M.d(Ce,"d",function(){return I}),M.d(Ce,"f",function(){return O}),M.d(Ce,"a",function(){return w}),M.d(Ce,"b",function(){return W}),M.d(Ce,"e",function(){return y});var re=function(){var L=function(R,d){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,_){p.__proto__=_}||function(p,_){for(var v in _)_.hasOwnProperty(v)&&(p[v]=_[v])},L(R,d)};return function(R,d){L(R,d);function p(){this.constructor=R}R.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}(),G={done:!0,value:void 0},I;(function(L){var R={next:function(){return G}};function d(){return R}L.empty=d;function p(E){var b=!1;return{next:function(){return b?G:(b=!0,{done:!1,value:E})}}}L.single=p;function _(E,b,P){return b===void 0&&(b=0),P===void 0&&(P=E.length),{next:function(){return b>=P?G:{done:!1,value:E[b++]}}}}L.fromArray=_;function v(E){return{next:function(){var b=E.next();return b.done?G:{done:!1,value:b.value}}}}L.fromNativeIterator=v;function h(E){return E?Array.isArray(E)?L.fromArray(E):E:L.empty()}L.from=h;function c(E,b){return{next:function(){var P=E.next();return P.done?G:{done:!1,value:b(P.value)}}}}L.map=c;function n(E,b){return{next:function(){for(;;){var P=E.next();if(P.done)return G;if(b(P.value))return{done:!1,value:P.value}}}}}L.filter=n;function r(E,b){for(var P=E.next();!P.done;P=E.next())b(P.value)}L.forEach=r;function o(E,b){b===void 0&&(b=Number.POSITIVE_INFINITY);var P=[];if(b===0)return P;for(var T=0,m=E.next();!m.done&&!(P.push(m.value),++T>=b);m=E.next());return P}L.collect=o;function l(){for(var E=[],b=0;b=E.length)return G;var T=E[P],m=T.next();return m.done?(P++,this.next()):m}}}L.concat=l;function x(E){return new z(E)}L.chain=x})(I||(I={}));var z=function(){function L(R){this.it=R}return L.prototype.next=function(){return this.it.next()},L}();function O(L){return Array.isArray(L)?I.fromArray(L):L||I.empty()}var w=function(){function L(R,d,p,_){d===void 0&&(d=0),p===void 0&&(p=R.length),_===void 0&&(_=d-1),this.items=R,this.start=d,this.end=p,this.index=_}return L.prototype.first=function(){return this.index=this.start,this.current()},L.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},L.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},L}(),W=function(L){re(R,L);function R(d,p,_,v){return p===void 0&&(p=0),_===void 0&&(_=d.length),v===void 0&&(v=p-1),L.call(this,d,p,_,v)||this}return R.prototype.current=function(){return L.prototype.current.call(this)},R.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.last=function(){return this.index=this.end-1,this.current()},R.prototype.parent=function(){return null},R}(w),y=function(){function L(R,d){this.iterator=R,this.fn=d}return L.prototype.next=function(){return this.fn(this.iterator.next())},L}()},LdHM:function(nn,Ce,M){"use strict";M.d(Ce,"b",function(){return l}),M.d(Ce,"a",function(){return E});var re=M("1OyB"),G=M("vuIU"),I=M("Ji7U"),z=M("LK+K"),O=M("q1tI"),w=M("rePB"),W=M("Ff2n"),y=M("ODXe"),L=M("4IlW"),R=M("bX4T"),d=M("YrtM"),p=M("TSYQ"),_=M.n(p),v=M("+nKL"),h=M("8OUc"),c=function(q,ee){var he=q.prefixCls,be=q.id,Ye=q.flattenOptions,Pe=q.childrenAsData,je=q.values,Qe=q.searchValue,Ze=q.multiple,Ae=q.defaultActiveFirstOption,me=q.height,ie=q.itemHeight,Oe=q.notFoundContent,ve=q.open,Ge=q.menuItemSelectedIcon,pe=q.virtual,J=q.onSelect,V=q.onToggleOpen,X=q.onActiveValue,ue=q.onScroll,Ee=q.onMouseEnter,We="".concat(he,"-item"),Ke=Object(d.a)(function(){return Ye},[ve,Ye],function(Ct,Ne){return Ne[0]&&Ct[1]!==Ne[1]}),Lt=O.useRef(null),Kt=function(Ne){Ne.preventDefault()},Bt=function(Ne){Lt.current&&Lt.current.scrollTo({index:Ne})},kt=function(Ne){for(var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Te=Ke.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(B).map(function(ee,he){if(!O.isValidElement(ee)||!ee.type)return null;var be=ee.type.isSelectOptGroup,Ye=ee.key,Pe=ee.props,je=Pe.children,Qe=Object(W.a)(Pe,["children"]);return q||!be?T(ee):Object(b.a)(Object(b.a)({key:"__RC_SELECT_GRP__".concat(Ye===null?he:Ye,"__"),label:Ye},Qe),{},{options:m(je)})}).filter(function(ee){return ee})}var g=M("2Qr1"),s=M("qNPg"),u=M("U8pU"),D=M("Kwbf"),S=M("WKfj");function A(B){var q=B.mode,ee=B.options,he=B.children,be=B.backfill,Ye=B.allowClear,Pe=B.placeholder,je=B.getInputElement,Qe=B.showSearch,Ze=B.onSearch,Ae=B.defaultOpen,me=B.autoFocus,ie=B.labelInValue,Oe=B.value,ve=B.inputValue,Ge=B.optionLabelProp,pe=q==="multiple"||q==="tags",J=Qe!==void 0?Qe:pe||q==="combobox",V=ee||m(he);if(Object(D.a)(q!=="tags"||V.every(function(We){return!We.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var X=V.some(function(We){return We.options?We.options.some(function(Ke){return typeof("value"in Ke?Ke.value:Ke.key)=="number"}):typeof("value"in We?We.value:We.key)=="number"});Object(D.a)(!X,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(q!=="combobox"||!Ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(q==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(D.a)(q==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),Object(D.b)(q!=="combobox"||!je||!Ye||!Pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ze&&!J&&q!=="combobox"&&q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!Ae||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Oe!=null){var ue=Object(S.d)(Oe);Object(D.a)(!ie||ue.every(function(We){return Object(u.a)(We)==="object"&&("key"in We||"value"in We)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!pe||Array.isArray(Oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var Ee=null;Object(P.a)(he).some(function(We){if(!O.isValidElement(We)||!We.type)return!1;var Ke=We.type;if(Ke.isSelectOption)return!1;if(Ke.isSelectOptGroup){var Lt=Object(P.a)(We.props.children).every(function(Kt){return!O.isValidElement(Kt)||!We.type||Kt.type.isSelectOption?!0:(Ee=Kt.type,!1)});return!Lt}return Ee=Ke,!0}),Ee&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ee.displayName||Ee.name||Ee,"`.")),Object(D.a)(ve===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=A,j=Object(s.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:m,flattenOptions:g.d,getLabeledValue:g.e,filterOptions:g.b,isValueDisabled:g.g,findValueOption:g.c,warningProps:N,fillOptionsWithMissingValue:g.a}),K=function(B){Object(I.a)(ee,B);var q=Object(z.a)(ee);function ee(){var he;return Object(re.a)(this,ee),he=q.apply(this,arguments),he.selectRef=O.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(G.a)(ee,[{key:"render",value:function(){return O.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),ee}(O.Component);K.Option=l,K.OptGroup=E;var H=K,U=Ce.c=H},M8RZ:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return L});var re=M("fWQN"),G=M("mtLc"),I=M("yKVA"),z=M("879j"),O=M("q1tI"),w=M.n(O),W=M("i8i4"),y=M.n(W),L=function(R){Object(I.a)(p,R);var d=Object(z.a)(p);function p(_){var v;Object(re.a)(this,p),v=d.call(this,_);var h=window.document;return v.node=h.createElement("div"),h.body.appendChild(v.node),v}return Object(G.a)(p,[{key:"render",value:function(){var v=this.props.children;return Object(W.createPortal)(v,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),p}(w.a.Component)},MI8n:function(nn,Ce,M){"use strict";M.d(Ce,"b",function(){return w}),M.d(Ce,"a",function(){return L}),M.d(Ce,"e",function(){return R}),M.d(Ce,"d",function(){return d}),M.d(Ce,"c",function(){return p}),M.d(Ce,"f",function(){return _});var re=M("/cxE"),G=M("C/vA"),I=M("pmY6"),z=M("24hK"),O=function(){var v=function(h,c){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},v(h,c)};return function(h,c){v(h,c);function n(){this.constructor=h}h.prototype=c===null?Object.create(c):(n.prototype=c.prototype,new n)}}(),w;(function(v){v.None=function(){return I.a.None};function h(N){return function(j,K,H){K===void 0&&(K=null);var U=!1,B;return B=N(function(q){return U?void 0:(B?B.dispose():U=!0,j.call(K,q))},null,H),U&&B.dispose(),B}}v.once=h;function c(N,j){return E(function(K,H,U){return H===void 0&&(H=null),N(function(B){return K.call(H,j(B))},null,U)})}v.map=c;function n(N,j){return E(function(K,H,U){return H===void 0&&(H=null),N(function(B){j(B),K.call(H,B)},null,U)})}v.forEach=n;function r(N,j){return E(function(K,H,U){return H===void 0&&(H=null),N(function(B){return j(B)&&K.call(H,B)},null,U)})}v.filter=r;function o(N){return N}v.signal=o;function l(){for(var N=[],j=0;j1)&&be.fire(Pe),he=0},K)})},onLastListenerRemove:function(){B.dispose()}});return be.event}v.debounce=b;function P(N){var j=new Date().getTime();return c(h(N),function(K){return new Date().getTime()-j})}v.stopwatch=P;function T(N){var j=!0,K;return r(N,function(H){var U=j||H!==K;return j=!1,K=H,U})}v.latch=T;function m(N,j,K){j===void 0&&(j=!1),K===void 0&&(K=[]);var H=K.slice(),U=N(function(ee){H?H.push(ee):q.fire(ee)}),B=function(){H&&H.forEach(function(ee){return q.fire(ee)}),H=null},q=new L({onFirstListenerAdd:function(){U||(U=N(function(ee){return q.fire(ee)}))},onFirstListenerDidAdd:function(){H&&(j?setTimeout(B):B())},onLastListenerRemove:function(){U&&U.dispose(),U=null}});return q.event}v.buffer=m;var g=function(){function N(j){this.event=j}return N.prototype.map=function(j){return new N(c(this.event,j))},N.prototype.forEach=function(j){return new N(n(this.event,j))},N.prototype.filter=function(j){return new N(r(this.event,j))},N.prototype.reduce=function(j,K){return new N(x(this.event,j,K))},N.prototype.latch=function(){return new N(T(this.event))},N.prototype.debounce=function(j,K,H,U){return K===void 0&&(K=100),H===void 0&&(H=!1),new N(b(this.event,j,K,H,U))},N.prototype.on=function(j,K,H){return this.event(j,K,H)},N.prototype.once=function(j,K,H){return h(this.event)(j,K,H)},N}();function s(N){return new g(N)}v.chain=s;function u(N,j,K){K===void 0&&(K=function(ee){return ee});var H=function(){for(var ee=[],he=0;he=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return J|0}function r(J){return+J!=J&&(J=0),y.alloc(+J)}y.isBuffer=function(V){return!!(V!=null&&V._isBuffer)},y.compare=function(V,X){if(!y.isBuffer(V)||!y.isBuffer(X))throw new TypeError("Arguments must be Buffers");if(V===X)return 0;for(var ue=V.length,Ee=X.length,We=0,Ke=Math.min(ue,Ee);We>>1;case"base64":return ve(J).length;default:if(ue)return me(J).length;V=(""+V).toLowerCase(),ue=!0}}y.byteLength=o;function l(J,V,X){var ue=!1;if((V===void 0||V<0)&&(V=0),V>this.length)return"";if((X===void 0||X>this.length)&&(X=this.length),X<=0)return"";if(X>>>=0,V>>>=0,X<=V)return"";for(J||(J="utf8");;)switch(J){case"hex":return H(this,V,X);case"utf8":case"utf-8":return S(this,V,X);case"ascii":return j(this,V,X);case"latin1":case"binary":return K(this,V,X);case"base64":return D(this,V,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,V,X);default:if(ue)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),ue=!0}}y.prototype._isBuffer=!0;function x(J,V,X){var ue=J[V];J[V]=J[X],J[X]=ue}y.prototype.swap16=function(){var V=this.length;if(V%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var X=0;X0&&(V=this.toString("hex",0,X).match(/.{2}/g).join(" "),this.length>X&&(V+=" ... ")),""},y.prototype.compare=function(V,X,ue,Ee,We){if(!y.isBuffer(V))throw new TypeError("Argument must be a Buffer");if(X===void 0&&(X=0),ue===void 0&&(ue=V?V.length:0),Ee===void 0&&(Ee=0),We===void 0&&(We=this.length),X<0||ue>V.length||Ee<0||We>this.length)throw new RangeError("out of range index");if(Ee>=We&&X>=ue)return 0;if(Ee>=We)return-1;if(X>=ue)return 1;if(X>>>=0,ue>>>=0,Ee>>>=0,We>>>=0,this===V)return 0;for(var Ke=We-Ee,Pt=ue-X,Kt=Math.min(Ke,Pt),Bt=this.slice(Ee,We),kt=V.slice(X,ue),Qt=0;Qt2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),X=+X,isNaN(X)&&(X=Ee?0:J.length-1),X<0&&(X=J.length+X),X>=J.length){if(Ee)return-1;X=J.length-1}else if(X<0)if(Ee)X=0;else return-1;if(typeof V=="string"&&(V=y.from(V,ue)),y.isBuffer(V))return V.length===0?-1:b(J,V,X,ue,Ee);if(typeof V=="number")return V=V&255,y.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(J,V,X):Uint8Array.prototype.lastIndexOf.call(J,V,X):b(J,[V],X,ue,Ee);throw new TypeError("val must be string, number or Buffer")}function b(J,V,X,ue,Ee){var We=1,Ke=J.length,Pt=V.length;if(ue!==void 0&&(ue=String(ue).toLowerCase(),ue==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(J.length<2||V.length<2)return-1;We=2,Ke/=2,Pt/=2,X/=2}function Kt(qe,Ue){return We===1?qe[Ue]:qe.readUInt16BE(Ue*We)}var Bt;if(Ee){var kt=-1;for(Bt=X;BtKe&&(X=Ke-Pt),Bt=X;Bt>=0;Bt--){for(var Qt=!0,fn=0;fnEe&&(ue=Ee)):ue=Ee;var We=V.length;if(We%2!==0)throw new TypeError("Invalid hex string");ue>We/2&&(ue=We/2);for(var Ke=0;KeWe)&&(ue=We),V.length>0&&(ue<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ee||(Ee="utf8");for(var Ke=!1;;)switch(Ee){case"hex":return P(this,V,X,ue);case"utf8":case"utf-8":return T(this,V,X,ue);case"ascii":return m(this,V,X,ue);case"latin1":case"binary":return g(this,V,X,ue);case"base64":return s(this,V,X,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,V,X,ue);default:if(Ke)throw new TypeError("Unknown encoding: "+Ee);Ee=(""+Ee).toLowerCase(),Ke=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(J,V,X){return V===0&&X===J.length?G.fromByteArray(J):G.fromByteArray(J.slice(V,X))}function S(J,V,X){X=Math.min(J.length,X);for(var ue=[],Ee=V;Ee239?4:We>223?3:We>191?2:1;if(Ee+Pt<=X){var Kt,Bt,kt,Qt;switch(Pt){case 1:We<128&&(Ke=We);break;case 2:Kt=J[Ee+1],(Kt&192)===128&&(Qt=(We&31)<<6|Kt&63,Qt>127&&(Ke=Qt));break;case 3:Kt=J[Ee+1],Bt=J[Ee+2],(Kt&192)===128&&(Bt&192)===128&&(Qt=(We&15)<<12|(Kt&63)<<6|Bt&63,Qt>2047&&(Qt<55296||Qt>57343)&&(Ke=Qt));break;case 4:Kt=J[Ee+1],Bt=J[Ee+2],kt=J[Ee+3],(Kt&192)===128&&(Bt&192)===128&&(kt&192)===128&&(Qt=(We&15)<<18|(Kt&63)<<12|(Bt&63)<<6|kt&63,Qt>65535&&Qt<1114112&&(Ke=Qt))}}Ke===null?(Ke=65533,Pt=1):Ke>65535&&(Ke-=65536,ue.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),ue.push(Ke),Ee+=Pt}return N(ue)}var A=4096;function N(J){var V=J.length;if(V<=A)return String.fromCharCode.apply(String,J);for(var X="",ue=0;ueue)&&(X=ue);for(var Ee="",We=V;Weue&&(V=ue),X<0?(X+=ue,X<0&&(X=0)):X>ue&&(X=ue),XX)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUIntLE=function(V,X,ue){V=V|0,X=X|0,ue||B(V,X,this.length);for(var Ee=this[V],We=1,Ke=0;++Ke0&&(We*=256);)Ee+=this[V+--X]*We;return Ee},y.prototype.readUInt8=function(V,X){return X||B(V,1,this.length),this[V]},y.prototype.readUInt16LE=function(V,X){return X||B(V,2,this.length),this[V]|this[V+1]<<8},y.prototype.readUInt16BE=function(V,X){return X||B(V,2,this.length),this[V]<<8|this[V+1]},y.prototype.readUInt32LE=function(V,X){return X||B(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+this[V+3]*16777216},y.prototype.readUInt32BE=function(V,X){return X||B(V,4,this.length),this[V]*16777216+(this[V+1]<<16|this[V+2]<<8|this[V+3])},y.prototype.readIntLE=function(V,X,ue){V=V|0,X=X|0,ue||B(V,X,this.length);for(var Ee=this[V],We=1,Ke=0;++Ke=We&&(Ee-=Math.pow(2,8*X)),Ee},y.prototype.readIntBE=function(V,X,ue){V=V|0,X=X|0,ue||B(V,X,this.length);for(var Ee=X,We=1,Ke=this[V+--Ee];Ee>0&&(We*=256);)Ke+=this[V+--Ee]*We;return We*=128,Ke>=We&&(Ke-=Math.pow(2,8*X)),Ke},y.prototype.readInt8=function(V,X){return X||B(V,1,this.length),this[V]&128?(255-this[V]+1)*-1:this[V]},y.prototype.readInt16LE=function(V,X){X||B(V,2,this.length);var ue=this[V]|this[V+1]<<8;return ue&32768?ue|4294901760:ue},y.prototype.readInt16BE=function(V,X){X||B(V,2,this.length);var ue=this[V+1]|this[V]<<8;return ue&32768?ue|4294901760:ue},y.prototype.readInt32LE=function(V,X){return X||B(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},y.prototype.readInt32BE=function(V,X){return X||B(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},y.prototype.readFloatLE=function(V,X){return X||B(V,4,this.length),I.read(this,V,!0,23,4)},y.prototype.readFloatBE=function(V,X){return X||B(V,4,this.length),I.read(this,V,!1,23,4)},y.prototype.readDoubleLE=function(V,X){return X||B(V,8,this.length),I.read(this,V,!0,52,8)},y.prototype.readDoubleBE=function(V,X){return X||B(V,8,this.length),I.read(this,V,!1,52,8)};function q(J,V,X,ue,Ee,We){if(!y.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>Ee||VJ.length)throw new RangeError("Index out of range")}y.prototype.writeUIntLE=function(V,X,ue,Ee){if(V=+V,X=X|0,ue=ue|0,!Ee){var We=Math.pow(2,8*ue)-1;q(this,V,X,ue,We,0)}var Ke=1,Pt=0;for(this[X]=V&255;++Pt=0&&(Pt*=256);)this[X+Ke]=V/Pt&255;return X+ue},y.prototype.writeUInt8=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,1,255,0),y.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),this[X]=V&255,X+1};function ee(J,V,X,ue){V<0&&(V=65535+V+1);for(var Ee=0,We=Math.min(J.length-X,2);Ee>>(ue?Ee:1-Ee)*8}y.prototype.writeUInt16LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,65535,0),y.TYPED_ARRAY_SUPPORT?(this[X]=V&255,this[X+1]=V>>>8):ee(this,V,X,!0),X+2},y.prototype.writeUInt16BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,65535,0),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>8,this[X+1]=V&255):ee(this,V,X,!1),X+2};function he(J,V,X,ue){V<0&&(V=4294967295+V+1);for(var Ee=0,We=Math.min(J.length-X,4);Ee>>(ue?Ee:3-Ee)*8&255}y.prototype.writeUInt32LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,4294967295,0),y.TYPED_ARRAY_SUPPORT?(this[X+3]=V>>>24,this[X+2]=V>>>16,this[X+1]=V>>>8,this[X]=V&255):he(this,V,X,!0),X+4},y.prototype.writeUInt32BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,4294967295,0),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>24,this[X+1]=V>>>16,this[X+2]=V>>>8,this[X+3]=V&255):he(this,V,X,!1),X+4},y.prototype.writeIntLE=function(V,X,ue,Ee){if(V=+V,X=X|0,!Ee){var We=Math.pow(2,8*ue-1);q(this,V,X,ue,We-1,-We)}var Ke=0,Pt=1,Kt=0;for(this[X]=V&255;++Ke>0)-Kt&255;return X+ue},y.prototype.writeIntBE=function(V,X,ue,Ee){if(V=+V,X=X|0,!Ee){var We=Math.pow(2,8*ue-1);q(this,V,X,ue,We-1,-We)}var Ke=ue-1,Pt=1,Kt=0;for(this[X+Ke]=V&255;--Ke>=0&&(Pt*=256);)V<0&&Kt===0&&this[X+Ke+1]!==0&&(Kt=1),this[X+Ke]=(V/Pt>>0)-Kt&255;return X+ue},y.prototype.writeInt8=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,1,127,-128),y.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),V<0&&(V=255+V+1),this[X]=V&255,X+1},y.prototype.writeInt16LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,32767,-32768),y.TYPED_ARRAY_SUPPORT?(this[X]=V&255,this[X+1]=V>>>8):ee(this,V,X,!0),X+2},y.prototype.writeInt16BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,2,32767,-32768),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>8,this[X+1]=V&255):ee(this,V,X,!1),X+2},y.prototype.writeInt32LE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,2147483647,-2147483648),y.TYPED_ARRAY_SUPPORT?(this[X]=V&255,this[X+1]=V>>>8,this[X+2]=V>>>16,this[X+3]=V>>>24):he(this,V,X,!0),X+4},y.prototype.writeInt32BE=function(V,X,ue){return V=+V,X=X|0,ue||q(this,V,X,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),y.TYPED_ARRAY_SUPPORT?(this[X]=V>>>24,this[X+1]=V>>>16,this[X+2]=V>>>8,this[X+3]=V&255):he(this,V,X,!1),X+4};function ye(J,V,X,ue,Ee,We){if(X+ue>J.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function Ye(J,V,X,ue,Ee){return Ee||ye(J,V,X,4,34028234663852886e22,-34028234663852886e22),I.write(J,V,X,ue,23,4),X+4}y.prototype.writeFloatLE=function(V,X,ue){return Ye(this,V,X,!0,ue)},y.prototype.writeFloatBE=function(V,X,ue){return Ye(this,V,X,!1,ue)};function Pe(J,V,X,ue,Ee){return Ee||ye(J,V,X,8,17976931348623157e292,-17976931348623157e292),I.write(J,V,X,ue,52,8),X+8}y.prototype.writeDoubleLE=function(V,X,ue){return Pe(this,V,X,!0,ue)},y.prototype.writeDoubleBE=function(V,X,ue){return Pe(this,V,X,!1,ue)},y.prototype.copy=function(V,X,ue,Ee){if(ue||(ue=0),!Ee&&Ee!==0&&(Ee=this.length),X>=V.length&&(X=V.length),X||(X=0),Ee>0&&Ee=this.length)throw new RangeError("sourceStart out of bounds");if(Ee<0)throw new RangeError("sourceEnd out of bounds");Ee>this.length&&(Ee=this.length),V.length-X=0;--Ke)V[Ke+X]=this[Ke+ue];else if(We<1e3||!y.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke>>0,ue=ue===void 0?this.length:ue>>>0,V||(V=0);var Ke;if(typeof V=="number")for(Ke=X;Ke55295&&X<57344){if(!Ee){if(X>56319){(V-=3)>-1&&We.push(239,191,189);continue}else if(Ke+1===ue){(V-=3)>-1&&We.push(239,191,189);continue}Ee=X;continue}if(X<56320){(V-=3)>-1&&We.push(239,191,189),Ee=X;continue}X=(Ee-55296<<10|X-56320)+65536}else Ee&&((V-=3)>-1&&We.push(239,191,189));if(Ee=null,X<128){if((V-=1)<0)break;We.push(X)}else if(X<2048){if((V-=2)<0)break;We.push(X>>6|192,X&63|128)}else if(X<65536){if((V-=3)<0)break;We.push(X>>12|224,X>>6&63|128,X&63|128)}else if(X<1114112){if((V-=4)<0)break;We.push(X>>18|240,X>>12&63|128,X>>6&63|128,X&63|128)}else throw new Error("Invalid code point")}return We}function ie(J){for(var V=[],X=0;X>8,Ee=X%256,We.push(Ee),We.push(ue);return We}function ve(J){return G.toByteArray(Ze(J))}function Ge(J,V,X,ue){for(var Ee=0;Ee=V.length||Ee>=J.length);++Ee)V[Ee+X]=J[Ee];return Ee}function pe(J){return J!==J}}).call(this,M("IyRk"))},HmJG:function(tn,Ce,M){},I8Z2:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return z}),M.d(Ce,"b",function(){return _}),M.d(Ce,"c",function(){return h});var re=M("q1tI"),G=function(){var c=function(n,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var x in l)l.hasOwnProperty(x)&&(o[x]=l[x])},c(n,r)};return function(n,r){c(n,r);function o(){this.constructor=n}n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),I=re.createContext(null),z=function(c){G(n,c);function n(){return c!==null&&c.apply(this,arguments)||this}return n.prototype.render=function(){return re.createElement(I.Provider,{value:this.props.store},this.props.children)},n}(re.Component),O=M("Gytx"),w=M.n(O),W=M("2mql"),y=M.n(W),L=function(){var c=function(n,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var x in l)l.hasOwnProperty(x)&&(o[x]=l[x])},c(n,r)};return function(n,r){c(n,r);function o(){this.constructor=n}n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),R=function(){return R=Object.assign||function(c){for(var n,r=1,o=arguments.length;r47?Qr({status:!0,visible:!0}):Qr({status:!1,visible:!0}))},[be.course_group_info&&be.course_group_info.length]),Object(c.useEffect)(function(){xa()},[]);var xa=function(){var jn=Object(L.a)(h.a.mark(function hn(){var Dn;return h.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.next=2,bt({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},nt)});case 2:Dn=tr.sent,Object(X.c)()?Lt(Object(Ze.a)(Dn.student_works)):Lt(Object(Ze.a)(Dn));case 4:case"end":return tr.stop()}},hn)}));return function(){return jn.apply(this,arguments)}}();function ha(){Pn(1),sa(""),va(""),_a(""),ya(""),Zn([])}var Ta=function(){nt.page=1;var hn=Object.assign({},Zr.getFieldValue());zn(!1),Object.keys(hn).map(function(Dn){switch(Dn){case"task_status":hn[Dn].includes("all")||be[Dn].length===hn[Dn].length||!hn[Dn].length?(delete nt.work_status,Zr.setFieldsValue(Object(je.a)({},"task_status","all"))):(nt.work_status=hn[Dn],Zr.setFieldsValue(Object(je.a)({},"task_status",nt.work_status)));break;case"course_group_info":hn[Dn].includes("all")||be[Dn].length===hn[Dn].length||!hn[Dn].length?(delete nt.course_group,Zr.setFieldsValue(Object(je.a)({},"course_group_info","all"))):(nt.course_group=hn[Dn],Zr.setFieldsValue(Object(je.a)({},"course_group_info",nt.course_group)));break;case"teacher_comment":hn[Dn].includes("all")||be[Dn].length===hn[Dn].length||!hn[Dn].length?(delete nt.teacher_comment,Zr.setFieldsValue(Object(je.a)({},"teacher_comment","all"))):(nt.teacher_comment=hn[Dn][0],Zr.setFieldsValue(Object(je.a)({},"teacher_comment",hn[Dn])));break}}),xa()},aa=function(hn,Dn){nt.page=hn,nt.limit=Dn,xa()},qr=function(){var hn=nt;hn.limit=Number(xn),hn.page=Number(1),Yt(hn),xa()},ea=[{title:"\u5E8F\u53F7",dataIndex:"name",width:"5%",align:"center",render:function(hn,Dn,$r){return Dn!=null&&Dn.isMe&&Gt!==null&&Gt!==void 0&&Gt.length?"\u6211":nt.limit*(nt.page-1)+$r+1}},{title:"\u59D3\u540D",width:"8%",ellipsis:!0,align:"center",dataIndex:"user_name"},!(be!=null&&be.anonymous_comment)&&{title:"\u5B66\u53F7",width:"8%",ellipsis:!0,align:"center",dataIndex:"student_id",sortOrder:kr.student_id,sortDirections:["descend","ascend"],sorter:!0,render:function(hn){return hn}},!(Object(X.s)()&&(be!=null&&(mt=be.homework_status)!==null&&mt!==void 0&&mt.includes("\u533F\u8BC4\u4E2D")||be!=null&&(It=be.homework_status)!==null&&It!==void 0&&It.includes("\u7533\u8BC9\u4E2D")))&&be.course_group_count!==0&&{title:"\u5206\u73ED",width:"8%",ellipsis:!0,align:"center",dataIndex:"group_name"},{title:"\u4F5C\u54C1\u72B6\u6001",dataIndex:"work_status",width:"8%",align:"center",render:function(hn){return hn===-1?"\u91CD\u505A\u4E2D":n.a.createElement(E.a,{status:hn})}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",width:"8%",align:"center",render:function(hn){return hn||"- -"}},{title:"\u66F4\u65B0\u65F6\u95F4",width:"10%",align:"center",dataIndex:"update_time",sortOrder:kr.update_time,sortDirections:["descend","ascend"],sorter:!0,render:function(hn){return hn?ie()(hn).format("YYYY-MM-DD HH:mm"):"--"}},(Object(X.c)()||(be==null||((ln=be.homework_status)===null||ln===void 0)?void 0:ln.includes("\u5DF2\u622A\u6B62")))&&{title:"\u6559\u5E08\u8BC4\u5206",width:"8%",align:"center",dataIndex:"teacher_score"},(Object(X.c)()||(be==null||((Ot=be.homework_status)===null||Ot===void 0)?void 0:Ot.includes("\u5DF2\u622A\u6B62")))&&{title:"\u52A9\u6559\u8BC4\u5206",width:"8%",align:"center",dataIndex:"teaching_asistant_score"},(be==null?void 0:be.anonymous_comment)&&{title:"\u533F\u8BC4\u8BC4\u5206",width:"8%",align:"center",dataIndex:"student_score",render:function(hn){return n.a.createElement(Pe.a,{title:"\u4F60\u7684\u8BC4\u9605\u5206\u6570\uFF1A".concat(hn,"\u5206")},n.a.createElement("span",null,hn))}},(be==null?void 0:be.anonymous_comment)&&Object(X.i)()&&{title:"\u533F\u8BC4\u5B8C\u6210\u5EA6",width:"10%",align:"center",dataIndex:"anonymous_comment_rate",render:function(hn){return n.a.createElement("span",null,hn,"%")}},(be==null?void 0:be.anonymous_comment)&&{title:"\u5DF2\u8BC4\u6570",width:"8%",align:"center",dataIndex:"user_comment_count",render:function(hn){return n.a.createElement(Pe.a,{title:"\u5728\u533F\u8BC4\u671F\u95F4\u8BC4\u9605\u7684\u4F5C\u54C1\u6570\u91CF"},n.a.createElement("span",null,hn))}},(be==null?void 0:be.anonymous_comment)&&{title:"\u533F\u8BC4\u7533\u8BC9",width:"8%",align:"center",dataIndex:"appeal_all_count",render:function(hn,Dn){return n.a.createElement("div",null,!!hn&&n.a.createElement(Pe.a,{placement:"bottom",title:"\u5171\u6709".concat(hn,"\u6761\u533F\u8BC4\u7533\u8BC9\uFF0C").concat(Dn.appeal_deal_count,"\u6761\u5F85\u5904\u7406")},n.a.createElement("span",{style:{minWidth:"30px",display:"inline-block",textAlign:"center"}},"".concat(Dn.appeal_deal_count,"/").concat(hn))),!hn&&n.a.createElement("span",null,"-/-"))}},(Object(X.c)()||Object(X.s)()&&!(be!=null&&be.anonymous_comment)&&!be.anonymous_appeal||Object(X.s)()&&((yn=be.homework_status)===null||yn===void 0?void 0:yn.includes("\u5DF2\u622A\u6B62")))&&{title:"\u5F53\u524D\u6210\u7EE9",width:"9%",align:"center",dataIndex:"work_score",sortOrder:kr.work_score,sortDirections:["descend","ascend"],sorter:!0,render:function(hn){return hn}},{title:"\u64CD\u4F5C",width:"8%",align:"center",dataInex:"action",render:function(hn,Dn){var $r;return Dn.work_status===0&&!Object(X.c)()?n.a.createElement("div",null,"--"):n.a.createElement("div",null,!Object(X.c)()&&n.a.createElement("div",null,n.a.createElement(l.a,{target:"_blank",to:"/classrooms/".concat(nt.coursesId,"/common_homework/").concat(nt.categoryId,"/review/").concat(Dn.work_id||Dn.id)},"\u67E5\u770B")),Object(X.c)()&&n.a.createElement("div",null,n.a.createElement(l.a,{className:"c-blue",target:"_blank",to:nt.course_group?"/classrooms/".concat(nt.coursesId,"/common_homework/").concat(nt.categoryId,"/review/").concat(Dn.id,"?ids=").concat(($r=nt.course_group)===null||$r===void 0?void 0:$r.toString()):"/classrooms/".concat(nt.coursesId,"/common_homework/").concat(nt.categoryId,"/review/").concat(Dn.id)},Dn.has_comment?"\u5DF2\u8BC4\u9605":"\u8BC4\u9605"),n.a.createElement("br",null),n.a.createElement(Pe.a,{placement:"bottom",title:n.a.createElement("p",null,"\u8C03\u6574\u5B66\u751F\u5F53\u524D\u6210\u7EE9",n.a.createElement("br",null),"\u5176\u5B83\u5386\u53F2\u8BC4\u5206\u5C06\u5168\u90E8\u5931\u6548")},n.a.createElement("a",{className:"c-green",onClick:function(Lr){Lr.preventDefault(),bt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8C03\u5206",selectArrs:Dn,id:Dn.id,params:nt}})}},"\u8C03\u5206"))))}}].filter(function(jn){return!!jn}),ia=function(){var jn=Object(L.a)(h.a.mark(function hn(){var Dn,$r;return h.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return et(!0),Lr.next=3,Object(ve.a)("/api/homework_commons/".concat(nt==null?void 0:nt.categoryId,"/export_student_works.json"),{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});case 3:Dn=Lr.sent,Dn.status===0?($r=ze.current)===null||$r===void 0||$r.exportReport(Dn.files):et(!1);case 5:case"end":return Lr.stop()}},hn)}));return function(){return jn.apply(this,arguments)}}(),Na=function(){return n.a.createElement(ye.a,null,n.a.createElement(ye.a.Item,{key:"1"},n.a.createElement("span",{onClick:function(){return Object(kt.h)(JSON.parse(sessionStorage.all_student_works_params),"normal_work_list")}},"\u5BFC\u51FA\u6210\u7EE9")),n.a.createElement(ye.a.Item,{key:"1"},n.a.createElement(d.a,{loading:ut,ghost:!0,style:{paddingLeft:0,background:"transparent"},type:"text",onClick:function(){return ia()}},"\u5BFC\u51FA\u4F5C\u54C1\u9644\u4EF6")),n.a.createElement(ye.a.Item,{key:"2"},n.a.createElement(l.a,{to:"/classrooms/".concat(nt.coursesId,"/exportlist/normal_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return n.a.createElement("section",{className:"".concat(Ee.a.wrap," minH500")},n.a.createElement("aside",null,n.a.createElement("aside",{className:"minH500 bg-white pl30 ".concat(Object(X.c)()?"pt30":""," pr30")},!(be!=null&&be.all_member_count)&&!Xe["shixunHomeworks/getWorkList"]&&((be==null||((bn=be.homework_status)===null||bn===void 0)?void 0:bn.includes("\u672A\u53D1\u5E03"))||(be==null||((Tn=be.homework_status)===null||Tn===void 0)?void 0:Tn.includes("\u672A\u5F00\u59CB")))&&n.a.createElement("aside",{className:"bg-white inline-block w100"},n.a.createElement(Oe.a,null)),!Object(X.c)()&&n.a.createElement("aside",{className:"pt10 pb10"},n.a.createElement("span",{className:"c-orange"},be.commit_count),"\u5DF2\u4EA4",n.a.createElement("span",{className:"ml10"},be.uncommit_count),"\u672A\u4EA4",(be==null||((pr=be.left_time)===null||pr===void 0)?void 0:pr.time)&&n.a.createElement("span",{className:"ml10"},n.a.createElement("span",null,be==null||((gr=be.left_time)===null||gr===void 0)?void 0:gr.status),n.a.createElement("span",{className:"c-orange"},be==null||((Un=be.left_time)===null||Un===void 0)?void 0:Un.time))),!(be!=null&&(Nn=be.homework_status)!==null&&Nn!==void 0&&Nn.includes("\u672A\u53D1\u5E03"))&&!(be!=null&&(Fn=be.homework_status)!==null&&Fn!==void 0&&Fn.includes("\u672A\u5F00\u59CB"))&&n.a.createElement("aside",null,Object(X.c)()&&!!(be!=null&&be.all_member_count)&&n.a.createElement("aside",{className:"mb30"},n.a.createElement(Ae.a,{form:Zr,onChange:Ta,initialValues:($n={},Object(je.a)($n,"task_status","all"),Object(je.a)($n,"course_group_info","all"),Object(je.a)($n,"teacher_comment","all"),$n)},!!((Sr=be.teacher_comment)!==null&&Sr!==void 0&&Sr.length)&&Object(X.c)()&&n.a.createElement(Ae.a.Item,{name:"teacher_comment"},n.a.createElement(B.a.Group,{style:{width:"100%"}},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"80px",style:{fontSize:14}},"\u4F60\u7684\u8BC4\u9605:"),n.a.createElement(ee.a,{flex:"80px"},n.a.createElement(B.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ee.a,{flex:"1"},(Qn=be.teacher_comment)===null||Qn===void 0?void 0:Qn.map(function(jn,hn){return n.a.createElement(B.a,{value:jn.id},jn.name,"(",jn.count,")")}))))),!!((yr=be.task_status)!==null&&yr!==void 0&&yr.length)&&Object(X.c)()&&n.a.createElement(Ae.a.Item,{name:"task_status"},n.a.createElement(B.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"80px",style:{fontSize:14}},"\u4F5C\u54C1\u72B6\u6001:"),n.a.createElement(ee.a,{flex:"80px"},n.a.createElement(B.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ee.a,{flex:"1"},(Ht=be.task_status)===null||Ht===void 0?void 0:Ht.map(function(jn,hn){return n.a.createElement(B.a,{name:"task_status",value:jn.id},jn.name,"(",jn.count,")")}))))),!!((Hn=be.course_group_info)!==null&&Hn!==void 0&&Hn.length)&&n.a.createElement(Ae.a.Item,{name:"course_group_info"},n.a.createElement(B.a.Group,{style:{width:"100%"}},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"80px",style:{fontSize:14}},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(ee.a,{flex:"80px"},n.a.createElement(B.a,{value:"all",checked:!nt.course_group_info},"\u5168\u90E8")),n.a.createElement(ee.a,{flex:"1",className:"".concat(Ee.a.workListClass," ").concat(Or.visible?Ee.a.visible:""," ").concat(Or.status?"":Ee.a.status)},n.a.createElement("div",{ref:Qt,className:Ee.a.left},be.course_group_info.map(function(jn,hn){return n.a.createElement(B.a,{value:jn.course_group_id},jn.group_group_name,"(",jn.count,")")})),Or.status&&n.a.createElement("div",{className:Ee.a.tips,onClick:function(){return Qr(Object(p.a)(Object(p.a)({},Or),{},{visible:!Or.visible}))}},n.a.createElement("span",null,Or.visible?"\u5C55\u5F00":"\u6536\u8D77",Or.visible?n.a.createElement(Ke.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(Pt.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))))),n.a.createElement(H.a,{align:"middle"},n.a.createElement(ee.a,{flex:"1"},n.a.createElement(H.a,{align:"middle"},n.a.createElement(ee.a,null,n.a.createElement(j.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(hn){nt.page=1,nt.search=hn,xa()},style:{width:240}})),n.a.createElement(ee.a,null,n.a.createElement("span",{className:"ml5 c-red"},be.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",be.work_count,"\u4E2A\u5B66\u751F\uFF09"))),n.a.createElement(ee.a,{style:{textAlign:"end"},className:Ee.a.workListButtonWrap},((be==null||((Hr=be.homework_status)===null||Hr===void 0)?void 0:Hr.includes("\u63D0\u4EA4\u4E2D"))||(be==null||((Ar=be.homework_status)===null||Ar===void 0)?void 0:Ar.includes("\u8865\u4EA4\u4E2D"))||(be==null||((or=be.homework_status)===null||or===void 0)?void 0:or.includes("\u8FDB\u884C\u4E2D")))&&n.a.createElement(d.a,{type:"default",style:{marginRight:"20px"},onClick:function(){Vt(!0)},icon:n.a.createElement("i",{className:"iconfont icon-dahuizhongzuo3x"})},"\u4E00\u952E\u6253\u56DE"),n.a.createElement(d.a,{type:"default",style:{marginRight:"20px"},onClick:function(){Ve(!0)},icon:n.a.createElement("i",{className:"iconfont icon-yijiandianping"})},"\u4E00\u952E\u70B9\u8BC4"),n.a.createElement(A.a,{overlay:Na},n.a.createElement(d.a,null,n.a.createElement(Kt.a,null),"\u5BFC\u51FA",n.a.createElement(Bt.a,null)))))),Object(X.s)()&&n.a.createElement(D.a,{hideOnSinglePage:!0,pagination:!1,dataSource:On,columns:ea,showHeader:!Gt||(Gt==null?void 0:Gt.length)===0}),n.a.createElement(D.a,{loading:Xe["shixunHomeworks/getWorkList"],hideOnSinglePage:!0,pagination:!1,dataSource:Gt,columns:ea,onChange:function(hn,Dn,$r){if(kr={},$r.order===void 0){kr[$r.field]="descend";switch($r.field){case"student_id":Dt("descend"),nt.b_order="desc";break}}else nt.b_order=$r.order.replace("end",""),kr[$r.field]=$r.order;Wr(Object(p.a)({},kr)),nt.order=$r.field,xa()}}))),n.a.createElement("aside",{className:"tc mb50 mt30"},De.workList.work_count>0&&n.a.createElement("div",{style:{display:"flex",margin:"auto",textAlign:"center",justifyContent:"center"}},n.a.createElement(s.a,{onChange:aa,defaultCurrent:nt.page||1,current:nt.page||1,defaultPageSize:nt.limit||1,pageSize:nt.limit||1,total:De.workList.work_count}),n.a.createElement(j.a,{suffix:"\u6761/\u9875",type:"number",value:xn,onChange:function(hn){return hr(hn.target.value)},min:1,onBlur:qr,style:{width:"80px",height:"29px",lineHeight:"29px",marginLeft:"10px"}})))),n.a.createElement(V,null),n.a.createElement(pe,null),n.a.createElement(w.a,{title:"\u4E00\u952E\u8BC4\u9605",visible:Re,centered:!0,onOk:function(){if(Dr===1){if(!(Yr===0)){if(!Yr){y.b.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}}Ve(!1),ot(!0)}else{if(!(Ea===0||na===0)){if(!Ea){y.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}if(!na){y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}}if(Ea>na){y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206");return}Ve(!1),ot(!0)}},onCancel:function(){Ve(!1),ha()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u8BC4\u9605\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{value:Dr,onChange:function(hn){Pn(hn.target.value)}},n.a.createElement(m.a,{value:1},"\u7EDF\u4E00\u5F97\u5206"),n.a.createElement(m.a,{value:2},"\u533A\u95F4\u968F\u673A\u5F97\u5206"))),Dr===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u5F97\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:Yr,onChange:function(hn){return sa(hn)}})),Dr===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:Ea,onChange:function(hn){return _a(hn)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:na,onChange:function(hn){return va(hn)},style:{width:"100px"}})),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},"\u8BC4\u8BED\uFF1A"),n.a.createElement(j.a.TextArea,{value:ga,onChange:function(hn){return ya(hn.target.value)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),n.a.createElement(w.a,{title:"\u63D0\u793A",visible:Be,centered:!0,okText:"\u786E\u5B9A\u70B9\u8BC4",cancelText:"\u653E\u5F03\u70B9\u8BC4",onOk:Object(L.a)(h.a.mark(function jn(){var hn,Dn;return h.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return hn={},Dr===1?hn.score=Yr||"0":(hn.min_score=Ea||"0",hn.max_score=na||"0"),hn.comment=ga,se===1?hn.student_work_ids=Gt.map(function(Lr){return Lr.id}):hn.student_work_ids=Gt.filter(function(Lr){return!Lr.has_comment}).map(function(Lr){return Lr.id}),tr.next=6,Object(ve.a)("/api/homework_commons/".concat(nt.categoryId,"/batch_add_score.json"),{method:"post",body:hn});case 6:Dn=tr.sent,Dn.status===0&&(y.b.info("\u4FEE\u6539\u6210\u529F"),ot(!1),ha(),xa());case 8:case"end":return tr.stop()}},jn)})),onCancel:function(){ha(),ot(!1)}},n.a.createElement("div",{style:{padding:"32px",textAlign:"center"}},n.a.createElement("span",null,"\u90E8\u5206\u5B66\u751F\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF0C\u662F\u5426\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF1F"),n.a.createElement("br",null),n.a.createElement(m.a.Group,{value:se,onChange:function(hn){return xe(hn.target.value)}},n.a.createElement(m.a,{value:1},"\u8986\u76D6\u5DF2\u6709\u8BC4\u8BBA"),n.a.createElement(m.a,{value:2},"\u8DF3\u8FC7\u5DF2\u6709\u70B9\u8BC4")))),n.a.createElement(w.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:At,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(L.a)(h.a.mark(function jn(){var hn,Dn;return h.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:if(!(Dr===2)){tr.next=13;break}if(!(Ln.length<=0)){tr.next=4;break}return y.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),tr.abrupt("return");case 4:if(ga){tr.next=7;break}return y.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),tr.abrupt("return");case 7:return tr.next=9,Object(ve.a)("/api/homework_commons/".concat(nt.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:ga,status:Ln}});case 9:hn=tr.sent,hn.status===0&&(Nr(hn),Vt(!1),ir(!0)),tr.next=32;break;case 13:if(!(Ea===0||na===0)){tr.next=16;break}tr.next=22;break;case 16:if(Ea){tr.next=19;break}return y.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),tr.abrupt("return");case 19:if(na){tr.next=22;break}return y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),tr.abrupt("return");case 22:if(!(Ea>na)){tr.next=25;break}return y.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),tr.abrupt("return");case 25:if(ga){tr.next=28;break}return y.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),tr.abrupt("return");case 28:return tr.next=30,Object(ve.a)("/api/homework_commons/".concat(nt.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:ga,min_score:Ea,max_score:na}});case 30:Dn=tr.sent,Dn.status===0&&(Nr(Dn),Vt(!1),ir(!0));case 32:case"end":return tr.stop()}},jn)})),onCancel:function(){Vt(!1),ha()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{value:Dr,onChange:function(hn){Pn(hn.target.value)}},n.a.createElement(m.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(m.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),Dr===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:Ea,onChange:function(hn){return _a(hn)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,value:na,onChange:function(hn){return va(hn)},style:{width:"100px"}})),Dr===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),n.a.createElement(B.a.Group,{onChange:function(hn){Zn(Object(Ze.a)(hn))},style:{width:"100%"}},(Cr=be.task_status)===null||Cr===void 0?void 0:Cr.map(function(jn,hn){return n.a.createElement(B.a,{name:"task_status",value:jn.id},jn.name,"(",jn.count,")")}))),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),n.a.createElement(We.a,{className:Ee.a.MdEditor,onChange:function(hn){return ya(hn)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),n.a.createElement(w.a,{visible:xr,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(L.a)(h.a.mark(function jn(){var hn,Dn;return h.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:if(!(Dr===2)){tr.next=7;break}return tr.next=3,Object(ve.a)("/api/homework_commons/".concat(nt.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:ga,status:Ln}});case 3:hn=tr.sent,hn.status===0&&(y.b.info("\u6253\u56DE\u6210\u529F"),ha(),xa(),ir(!1)),tr.next=11;break;case 7:return tr.next=9,Object(ve.a)("/api/homework_commons/".concat(nt.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:ga,min_score:Ea,max_score:na}});case 9:Dn=tr.sent,Dn.status===0&&(y.b.info("\u6253\u56DE\u6210\u529F"),ha(),xa(),ir(!1));case 11:case"end":return tr.stop()}},jn)})),onCancel:function(){ha(),ir(!1)}},n.a.createElement("div",{style:{padding:"32px"}},Dr===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",Ea,"-",na,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),Dr===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((te=be.task_status)===null||te===void 0?void 0:te.filter(function(jn){return Ln==null?void 0:Ln.includes(jn.id)}).map(function(jn){return jn.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Xn==null?void 0:Xn.count,"\u540D\u5B66\u751F"))))},qe=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.loading;return{shixunHomeworks:we,loading:mt.effects}})(fn),Ue=M("m3rI"),vt=M("9Bee"),Mt=function(we){var mt=we.shixunHomeworks,It=we.dispatch,ln=Object(r.i)();return n.a.createElement(w.a,{centered:!0,title:"\u63D0\u793A",visible:mt.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(L.a)(h.a.mark(function Ot(){var yn;return h.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.next=2,It({type:"shixunHomeworks/deleteReply",payload:{object_id:mt.actionTabs.selectArr.id,object_type:"journals_for_message"}});case 2:yn=Tn.sent,yn.status===0&&(y.b.success("\u5220\u9664\u6210\u529F"),It({type:"shixunHomeworks/setActionTabs",payload:{}}),It({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},mt.actionTabs.params)}));case 4:case"end":return Tn.stop()}},Ot)})),onCancel:function(){It({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))},st=Object(o.a)(function(Y){var we=Y.shixunHomeworks;return{shixunHomeworks:we}})(Mt),Ct=M("/MfK"),Ne=M("BtR2"),Se=M("/iVV"),Te=M.n(Se),le=M("p5ED");ie.a.lang("ZH-cn");var fe=function(we){var mt,It=we.shixunHomeworks,ln=we.classroomList,Ot=we.user,yn=we.globalSetting,bn=we.loading,Tn=we.dispatch,pr=Object(c.useState)(Object(p.a)({},Object(r.i)())),gr=Object(_.a)(pr,2),Un=gr[0],Nn=gr[1],Fn=Object(c.useState)(!1),$n=Object(_.a)(Fn,2),Sr=$n[0],Qn=$n[1],yr=Object(c.useState)(-1),Ht=Object(_.a)(yr,2),Hn=Ht[0],Hr=Ht[1],Ar=Object(c.useState)(""),or=Object(_.a)(Ar,2),Cr=or[0],te=or[1],De=Object(c.useState)(""),Xe=Object(_.a)(De,2),ze=Xe[0],ut=Xe[1],et=It.workList,bt=ln.detailLeftMenus,ht=It.replyList,Tt=It.workDetail;Un.page_size=10;var nt=Object(c.useState)({content:"",type:""}),Yt=Object(_.a)(nt,2),ct=Yt[0],be=Yt[1],Et=Object(c.useRef)();return Object(c.useEffect)(function(){Tn({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)}),Tn({type:"shixunHomeworks/getWorkDetail",payload:Object(p.a)({},Un)}),bt.course_modules||Tn({type:"classroomList/getClassroomLeftMenus",payload:Object(p.a)({},Un)})},[Un.categoryId]),n.a.createElement("section",{className:Te.a.bg},n.a.createElement("section",{className:""},n.a.createElement("aside",{className:[Te.a.desc,"c-black","font14","bg-white"].join(" ")},It.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement(vt.a,{value:(Tt==null?void 0:Tt.description)||"\u6682\u65E0\uFF5E"}),Tt==null||((mt=Tt.attachments)===null||mt===void 0)?void 0:mt.map(function(rt,Nt){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ue.a.API_SERVER).concat(rt.url),onClick:function(){var Dt=Object(L.a)(h.a.mark(function dt(gn){var kn;return h.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(gn.preventDefault(),!(rt.file_type==="txt")){Ut.next=7;break}return Ut.next=4,Object(ve.a)(rt.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:kn=Ut.sent,console.log("========================================",kn),Et.current=kn;case 7:be({type:rt.file_type,content:window.location.origin+rt.url});case 8:case"end":return Ut.stop()}},dt)}));return function(dt){return Dt.apply(this,arguments)}}()},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},rt.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},rt.filesize),n.a.createElement("span",{className:"ml10 c-light-primary current",onClick:function(dt){dt.stopPropagation(),dt.preventDefault(),Object(E.v)("","".concat(Ue.a.API_SERVER).concat(rt.url))}},"\u4E0B\u8F7D"),n.a.createElement("span",{className:"ml10 c-green-29b current"},"\u9884\u89C8")))}),It.actionTabs.key==="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("aside",{className:["bg-white"].join(" ")},n.a.createElement(We.a,{onChange:function(Nt){te(Nt)},defaultValue:Tt==null?void 0:Tt.explanation,height:200,isFocus:!0,watch:!0}),n.a.createElement(H.a,null,n.a.createElement(ee.a,{span:24,className:"tr"},n.a.createElement(d.a,{type:"default",size:"large",onClick:Object(L.a)(h.a.mark(function rt(){return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:Tn({type:"shixunHomeworks/setActionTabs",payload:{key:""}});case 1:case"end":return Dt.stop()}},rt)}))},"\u53D6\u6D88"),n.a.createElement(d.a,{type:"primary",size:"large",className:"ml20",onClick:Object(L.a)(h.a.mark(function rt(){var Nt;return h.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(!(Cr==="")){dt.next=4;break}y.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),dt.next=8;break;case 4:return dt.next=6,Tn({type:"shixunHomeworks/updateWork",payload:{explanation:Cr,categoryId:Un.categoryId}});case 6:Nt=dt.sent,Nt.status===0&&(y.b.success("\u64CD\u4F5C\u6210\u529F"),Tn({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Tn({type:"shixunHomeworks/getWorkDetail",payload:Object(p.a)({},Un)}));case 8:case"end":return dt.stop()}},rt)}))},"\u4FDD\u5B58"))))),n.a.createElement("aside",{className:[Te.a.reply,"bg-white","mt20"].join(" ")},Sr&&n.a.createElement(We.a,{onChange:function(Nt){te(Nt)},height:200,isFocus:!0,watch:!0}),n.a.createElement(H.a,{onClick:function(){Qn(!0)}},n.a.createElement(ee.a,{flex:"1"},!Sr&&n.a.createElement(j.a,{size:"large",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),n.a.createElement(ee.a,null,n.a.createElement(d.a,{type:"primary",size:"large",onClick:Object(L.a)(h.a.mark(function rt(){var Nt;return h.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(!(Cr==="")){dt.next=4;break}y.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),dt.next=8;break;case 4:return dt.next=6,Tn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Un.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:Cr}}});case 6:Nt=dt.sent,Nt.status===0&&(y.b.success("\u53D1\u5E03\u6210\u529F"),Tn({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)}),Qn(!1),te(""));case 8:case"end":return dt.stop()}},rt)}))},"\u53D1\u8868")))),(ht==null?void 0:ht.comments)&&ht.comments!=""&&n.a.createElement("aside",{className:[Te.a.replyList,"bg-white"].join(" ")},ht==null?void 0:ht.comments.map(function(rt,Nt){var Dt,dt,gn,kn;return n.a.createElement(H.a,{gutter:[12,12],key:Nt},n.a.createElement(ee.a,{flex:"40px"},n.a.createElement("img",{className:Te.a.headpic,width:"40",src:"".concat(Ue.a.IMG_SERVER,"/images/").concat(rt==null||((Dt=rt.author)===null||Dt===void 0)?void 0:Dt.image_url)})),n.a.createElement(ee.a,{flex:"1"},n.a.createElement(H.a,{align:"middle"},n.a.createElement(ee.a,{span:20},n.a.createElement("span",{className:"c-light-black"},rt==null||((dt=rt.author)===null||dt===void 0)?void 0:dt.name),n.a.createElement("span",{className:"c-light-black ml10"},rt==null?void 0:rt.time," \u53D1\u5E03")),n.a.createElement(ee.a,{className:"tr",span:4},(Object(X.c)()||(Ot==null||((gn=Ot.userInfo)===null||gn===void 0)?void 0:gn.login)===(rt==null||((kn=rt.author)===null||kn===void 0)?void 0:kn.login))&&n.a.createElement(Pe.a,{title:"\u5220\u9664"},n.a.createElement(Ct.a,{className:"current",onClick:function(){Tn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Un,selectArr:rt}})}}))),n.a.createElement(ee.a,{span:24},n.a.createElement(vt.a,{value:rt.content})),rt.children&&n.a.createElement("aside",{className:Te.a.comment},rt.children.map(function(on,Ut){var rn,In;return n.a.createElement(H.a,{key:Ut},n.a.createElement(ee.a,{span:24},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"1"},on.author.name,n.a.createElement("span",{className:"c-light-black ml10"},on==null?void 0:on.time)),n.a.createElement(ee.a,null,(Object(X.c)()||(Ot==null||((rn=Ot.userInfo)===null||rn===void 0)?void 0:rn.login)===(on==null||((In=on.author)===null||In===void 0)?void 0:In.login))&&n.a.createElement(Pe.a,{title:"\u5220\u9664"},n.a.createElement(Ct.a,{className:"current",onClick:function(){Tn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Un,selectArr:on}})}}))))),n.a.createElement(ee.a,null,n.a.createElement(vt.a,{value:on.content})))})),n.a.createElement(ee.a,{span:24,className:"mt5 c-light-black"},Hn===Nt&&n.a.createElement("aside",null,n.a.createElement(We.a,{onChange:function(Ut){ut(Ut)},height:150,isFocus:!0}),n.a.createElement(H.a,null,n.a.createElement(ee.a,{span:24,className:"tr"},n.a.createElement(d.a,{type:"primary",size:"large",onClick:Object(L.a)(h.a.mark(function on(){return h.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:if(!(ze==="")){rn.next=4;break}y.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),rn.next=9;break;case 4:return rn.next=6,Tn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Un.categoryId,jour_type:"HomeworkCommon",m_parent_id:rt.id,reply_id:1,notes:ze}}});case 6:Tn({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)}),y.b.success("\u53D1\u5E03\u6210\u529F"),Hr(-1);case 9:case"end":return rn.stop()}},on)}))},"\u53D1\u8868")))),Hn!==Nt&&n.a.createElement("div",{className:"tr"},n.a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:function(){return Hr(Nt)}}),!!rt.user_praise&&n.a.createElement("span",{className:"c-orange"},n.a.createElement(Ne.a,{className:"mr5 ml30",onClick:Object(L.a)(h.a.mark(function on(){return h.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Tn({type:"shixunHomeworks/replyUnLike",payload:{object_id:rt.id,object_type:"journals_for_message"}});case 2:Tn({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)});case 3:case"end":return rn.stop()}},on)}))}),!!rt.praise_count&&rt.praise_count),!rt.user_praise&&n.a.createElement("span",null,n.a.createElement(Ne.a,{className:"mr5 ml30",onClick:Object(L.a)(h.a.mark(function on(){return h.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Tn({type:"shixunHomeworks/replyLike",payload:{object_id:rt.id,object_type:"journals_for_message"}});case 2:Tn({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)});case 3:case"end":return rn.stop()}},on)}))}),!!rt.praise_count&&rt.praise_count))))))}))),n.a.createElement("aside",{className:"tc mt30 pb30"},n.a.createElement(s.a,{defaultCurrent:1,total:ht==null?void 0:ht.total_count,hideOnSinglePage:!0,current:Un.page||1,onChange:function(Nt){Un.page=Nt,Tn({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},Un)})}})),n.a.createElement(st,null),n.a.createElement(le.a,{close:!0,data:ct==null?void 0:ct.content,type:ct==null?void 0:ct.type,hasMask:!0,monacoEditor:{value:Et.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return be({content:"",type:""})}}))},_e=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.classroomList,It=Y.user,ln=Y.loading,Ot=Y.globalSetting;return{shixunHomeworks:we,globalSetting:Ot,user:It,classroomList:mt,loading:ln.effects}})(fe);ie.a.lang("ZH-cn");var Me=function(we){var mt,It,ln=we.shixunHomeworks,Ot=we.classroomList,yn=we.globalSetting,bn=we.loading,Tn=we.dispatch,pr=Object(r.i)(),gr=Ot.detailLeftMenus,Un=ln.replyList,Nn=ln.referenceAnswer;pr.page_size=10;var Fn=Object(c.useState)({content:"",type:""}),$n=Object(_.a)(Fn,2),Sr=$n[0],Qn=$n[1],yr=Object(c.useRef)();return Object(c.useEffect)(function(){Tn({type:"shixunHomeworks/getReplyList",payload:Object(p.a)({},pr)}),Tn({type:"shixunHomeworks/getReferenceAnswer",payload:{coursesId:pr.categoryId}}),gr.course_modules||Tn({type:"classroomList/getClassroomLeftMenus",payload:Object(p.a)({},pr)})},[pr.categoryId]),n.a.createElement("section",{className:"pb30 bg-white pl30 pr30 pt30"},n.a.createElement("aside",{className:["c-black","font14"].join(" ")},n.a.createElement("div",null,(Nn==null?void 0:Nn.reference_answer)&&n.a.createElement(vt.a,{value:Nn==null?void 0:Nn.reference_answer}),!(Nn!=null&&Nn.reference_answer)&&!((mt=Nn.attachments)!==null&&mt!==void 0&&mt.length)&&n.a.createElement(Oe.a,null)),Nn==null||((It=Nn.attachments)===null||It===void 0)?void 0:It.map(function(Ht,Hn){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ue.a.API_SERVER).concat(Ht.url),onClick:function(){var Hr=Object(L.a)(h.a.mark(function Ar(or){var Cr;return h.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(or.preventDefault(),!(Ht.file_type==="txt")){De.next=6;break}return De.next=4,Object(ve.a)(Ht.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:Cr=De.sent,yr.current=Cr;case 6:Qn({type:Ht.file_type,content:window.location.origin+Ht.url});case 7:case"end":return De.stop()}},Ar)}));return function(Ar){return Hr.apply(this,arguments)}}()},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},Ht.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},Ht.filesize),n.a.createElement("span",{className:"ml10 c-light-primary current",onClick:function(Ar){Ar.stopPropagation(),Object(E.v)("","".concat(Ue.a.API_SERVER).concat(Ht.url))}},"\u4E0B\u8F7D"),n.a.createElement("span",{className:"ml10 c-green-29b current",onClick:function(){var Hr=Object(L.a)(h.a.mark(function Ar(or){var Cr;return h.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(or.preventDefault(),!(Ht.file_type==="txt")){De.next=6;break}return De.next=4,Object(ve.a)(Ht.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:Cr=De.sent,yr.current=Cr;case 6:Qn({type:Ht.file_type,content:window.location.origin+Ht.url});case 7:case"end":return De.stop()}},Ar)}));return function(Ar){return Hr.apply(this,arguments)}}()},"\u9884\u89C8")))})),n.a.createElement(le.a,{close:!0,data:Sr==null?void 0:Sr.content,type:Sr==null?void 0:Sr.type,hasMask:!0,monacoEditor:{value:yr.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return Qn({content:"",type:""})}}))},at=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.classroomList,It=Y.loading,ln=Y.globalSetting;return{shixunHomeworks:we,globalSetting:ln,classroomList:mt,loading:It.effects}})(Me),Je=M("4HvA"),jt=M("aUhZ"),nn=M("NNe0"),pn=M.n(nn),an=function(we){var mt,It,ln=we.shixunHomeworks,Ot=we.loading,yn=we.dispatch,bn=Object(c.useState)(!0),Tn=Object(_.a)(bn,2),pr=Tn[0],gr=Tn[1],Un=Object(c.useState)(!1),Nn=Object(_.a)(Un,2),Fn=Nn[0],$n=Nn[1],Sr=Object(c.useState)([]),Qn=Object(_.a)(Sr,2),yr=Qn[0],Ht=Qn[1],Hn=Object(c.useState)([]),Hr=Object(_.a)(Hn,2),Ar=Hr[0],or=Hr[1],Cr=Object(c.useState)([]),te=Object(_.a)(Cr,2),De=te[0],Xe=te[1],ze=Object(c.useState)([]),ut=Object(_.a)(ze,2),et=ut[0],bt=ut[1],ht=Object(r.i)();function Tt(){return nt.apply(this,arguments)}function nt(){return nt=Object(L.a)(h.a.mark(function Et(){var rt;return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,Object(ve.a)("/api/homework_commons/".concat(ht.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:rt=Dt.sent,or(rt);case 4:case"end":return Dt.stop()}},Et)})),nt.apply(this,arguments)}function Yt(){return ct.apply(this,arguments)}function ct(){return ct=Object(L.a)(h.a.mark(function Et(){var rt;return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,Object(ve.a)("/api/courses/".concat(ht==null?void 0:ht.coursesId,"/teachers"),{method:"get",params:{homework_id:ht.categoryId}});case 2:rt=Dt.sent,rt==null||rt.teacher_list.map(function(dt){dt.key=dt.user_id}),Xe(rt==null?void 0:rt.teacher_list),bt(rt==null?void 0:rt.teacher_list);case 6:case"end":return Dt.stop()}},Et)})),ct.apply(this,arguments)}Object(c.useEffect)(function(){Tt(),Yt()},[ht]);var be=function(){};return n.a.createElement("section",{className:[pn.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(H.a,null,n.a.createElement(ee.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(Ar==null?void 0:Ar.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){$n(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),n.a.createElement(H.a,{style:{marginTop:"20px",marginBottom:"20px"}},(Ar==null||((mt=Ar.data)===null||mt===void 0)?void 0:mt.length)<=0&&n.a.createElement(Oe.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),Ar==null||((It=Ar.data)===null||It===void 0)?void 0:It.map(function(Et){return n.a.createElement("span",{style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px"}},n.a.createElement("span",{style:{flex:"1"}},Et==null?void 0:Et.real_name),(Ar==null?void 0:Ar.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(L.a)(h.a.mark(function rt(){var Nt;return h.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,Object(ve.a)("/api/homework_commons/".concat(ht.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:Et.id}});case 2:Nt=dt.sent,Nt.status===0&&(y.b.info("\u5220\u9664\u6210\u529F"),Tt(),Yt());case 4:case"end":return dt.stop()}},rt)}))},"X"))})),n.a.createElement(H.a,null,!pr&&n.a.createElement(ee.a,{className:"mb50"},n.a.createElement(d.a,{type:"primary",size:"large",onClick:function(){return be()}},"\u63D0\u4EA4"),n.a.createElement(d.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){gr(!0)}},"\u53D6\u6D88"))),n.a.createElement(w.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Fn,onCancel:function(){return $n(!1)},onOk:Object(L.a)(h.a.mark(function Et(){var rt;return h.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(!(yr.length===0)){Dt.next=3;break}return y.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),Dt.abrupt("return");case 3:return Dt.next=5,Object(ve.a)("/api/homework_commons/".concat(ht.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:yr}});case 5:rt=Dt.sent,rt.status===0&&(y.b.info("\u6DFB\u52A0\u6210\u529F"),Ht([]),Tt(),Yt(),$n(!1));case 7:case"end":return Dt.stop()}},Et)}))},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(j.a.Search,{onChange:function(rt){Xe(et.filter(function(Nt){return Nt.name.indexOf(rt.target.value)>-1}))}})),n.a.createElement(D.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(rt,Nt){Ht(rt)},selectedRowKeys:yr,getCheckboxProps:function(rt){return{disabled:rt.is_collaborator}}},pagination:!1,dataSource:De,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},Jt=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.loading;return{shixunHomeworks:we,loading:mt.effects}})(an),wt=M("/zsF"),St=M("PArb"),lt=M("OaEy"),ge=M("2fM7"),Le=M("iQDF"),yt=M("+eQT"),ft=M("w5pM"),qt=M("LvDl"),Xt=yt.a.RangePicker,it=ge.a.Option,xt=function(we){var mt,It,ln,Ot,yn,bn,Tn,pr,gr,Un,Nn,Fn=we.shixunHomeworks,$n=we.loading,Sr=we.dispatch,Qn=Object(r.i)(),yr=Object(r.h)(),Ht=Fn.workSetting,Hn=Fn.workList,Hr=Object(c.useState)(!0),Ar=Object(_.a)(Hr,2),or=Ar[0],Cr=Ar[1],te=Object(c.useState)({}),De=Object(_.a)(te,2),Xe=De[0],ze=De[1],ut=Ae.a.useForm(),et=Object(_.a)(ut,1),bt=et[0],ht=Object(c.useState)([]),Tt=Object(_.a)(ht,2),nt=Tt[0],Yt=Tt[1],ct=Object(c.useState)([]),be=Object(_.a)(ct,2),Et=be[0],rt=be[1],Nt=Object(c.useState)({unified_setting:!1,publish_time:"",end_time:"",ta_mode:1,final_mode:!1,st_proportion:"",ta_proportion:"",te_proportion:"",student_comment:!1,anonymous_appeal:!1,appeal_penalty:0,appeal_time:"",anonymous_comment:!1,evaluation_num:0,evaluation_start:"",evaluation_end:"",absence_penalty:0,work_public:!1,unified_late:!0,allow_late:!1,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,comment_public:!0,score_open:!1,total_score:"",eff_score:""}),Dt=Object(_.a)(Nt,2),dt=Dt[0],gn=Dt[1],kn=(Hn==null||((mt=Hn.homework_status)===null||mt===void 0)?void 0:mt.includes("\u533F\u8BC4\u4E2D"))||(Hn==null||((It=Hn.homework_status)===null||It===void 0)?void 0:It.includes("\u7533\u8BC9\u4E2D")),on=(Hn==null||((ln=Hn.homework_status)===null||ln===void 0)?void 0:ln.includes("\u533F\u8BC4\u4E2D"))||(Hn==null||((Ot=Hn.homework_status)===null||Ot===void 0)?void 0:Ot.includes("\u7533\u8BC9\u4E2D"))||(Hn==null||((yn=Hn.homework_status)===null||yn===void 0)?void 0:yn.includes("\u5DF2\u622A\u6B62"));Object(c.useEffect)(function(){Ut()},[]),Object(c.useEffect)(function(){if(!(Ht!=null&&Ht.course_id))return;Object.keys(dt).map(function(zt){dt[zt]=Ht[zt]}),(!dt.allow_late||!dt.unified_late)&&(dt.late_penalty=5),nt=JSON.parse(JSON.stringify(Ht.group_settings.map(function(zt){return Object(p.a)(Object(p.a)({},zt),{},{group_name:[zt.group_name]})}).filter(function(zt){return zt.publish_time!==null}))),Et=JSON.parse(JSON.stringify(Ht.allow_late_settings.map(function(zt){return Object(p.a)(Object(p.a)({},zt),{},{group_name:[zt.group_name]})}).filter(function(zt){return zt.late_time!==null}))),gn(Object(p.a)({},dt)),Yt(Object(Ze.a)(nt)),rt(Object(Ze.a)(Et))},[Ht]);var Ut=function(){Sr({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},Qn)})},rn=function(){var zt=Object(L.a)(h.a.mark(function Gt(){var Lt,Ft,vn,On;return h.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:if(Ft=JSON.parse(JSON.stringify(dt)),Ft.categoryId=Qn.categoryId,dt.unified_setting||((Lt=nt)===null||Lt===void 0||Lt.map(function(Zt){var wr,zn;if(!Zt.publish_time||!Zt.end_time)throw y.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Zt.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");Zt.group_name=typeof(Zt==null?void 0:Zt.group_name)=="string"?[Zt==null?void 0:Zt.group_name]:Zt==null?void 0:Zt.group_name,console.log("item:0",Zt,Ht.group_settings,nt),Zt.group_id=Zt==null||((wr=Zt.group_name)===null||wr===void 0||((zn=wr.map(function(zr){var Gr,Dr,Pn=(Gr=Ht.group_settings)===null||Gr===void 0||((Dr=Gr.filter(function(Bn){return(Bn==null?void 0:Bn.group_name)===zr}))===null||Dr===void 0)?void 0:Dr[0];return console.log("d:",Pn,zr),Pn==null?void 0:Pn.group_id}))===null||zn===void 0))?void 0:zn.toString().split(",")})),Ft.group_settings=nt,!dt.allow_late){nr.next=16;break}if(!dt.unified_late){nr.next=14;break}if(!(dt.late_penalty===null||dt.late_penalty===void 0||dt.late_penalty<0||dt.late_penalty>100)){nr.next=9;break}throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");case 9:if(dt.late_time){nr.next=12;break}throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");case 12:nr.next=16;break;case 14:Et=(vn=Et)===null||vn===void 0?void 0:vn.map(function(Zt){var wr,zn;if(Zt.late_penalty===null||Zt.late_penalty===void 0||Zt.late_penalty<0||Zt.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Zt.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Zt.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Zt.group_name=typeof(Zt==null?void 0:Zt.group_name)=="string"?[Zt==null?void 0:Zt.group_name]:Zt==null?void 0:Zt.group_name,Zt.group_id=Zt==null||((wr=Zt.group_name)===null||wr===void 0||((zn=wr.map(function(zr){var Gr,Dr,Pn=(Gr=Ht.group_settings)===null||Gr===void 0||((Dr=Gr.filter(function(Bn){return(Bn==null?void 0:Bn.group_name)===zr}))===null||Dr===void 0)?void 0:Dr[0];return Pn==null?void 0:Pn.group_id}))===null||zn===void 0))?void 0:zn.toString().split(","),Zt}),Ft.allow_late_settings=Et;case 16:return Object.keys(Ft).map(function(Zt){Zt.indexOf("proportion")>-1&&(Ft[Zt]=Ft[Zt]/100)}),nr.next=19,Object(ve.a)("/api/homework_commons/".concat(Qn.categoryId,"/publish_setting.json"),{method:"post",body:Object(p.a)({},Ft)});case 19:On=nr.sent,On.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),Cr(!0),Ut(),Sr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},Qn)}));case 21:case"end":return nr.stop()}},Gt)}));return function(){return zt.apply(this,arguments)}}(),In=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),cn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),mn=function(Gt){return Gt&&Gt0&&!zt.id&&n.a.createElement(Ct.a,{onClick:function(){nt=nt.filter(function(On,cr){return Gt!==cr}),Yt(nt.slice()),setTimeout(function(){return Yt(nt.slice())},10)}}),n.a.createElement(ft.a,{className:"c-green ml20",onClick:function(){Yt(nt.concat({}))}}))))})),n.a.createElement(St.a,null),n.a.createElement(H.a,null,n.a.createElement(ee.a,null,n.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E")),n.a.createElement(ee.a,{span:24,className:"mt15 pl30"},n.a.createElement(B.a,{checked:dt.allow_late,disabled:or,onChange:function(){dt.allow_late=!dt.allow_late,Et==""&&rt([{late_penalty:5}]),gn(Object.assign({},dt))}},n.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u751F\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1)"))),(dt==null?void 0:dt.allow_late)&&n.a.createElement("div",{style:{marginLeft:22}},n.a.createElement("div",{className:"ml30 mt20"},n.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{disabled:or,value:dt.unified_late,onChange:function(Gt){dt.unified_late=Gt.target.value,Et==""&&!Gt.target.value&&rt([{late_penalty:5}]),gn(Object(p.a)({},dt))}},(dt==null?void 0:dt.unified_setting)&&n.a.createElement(m.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(Ht==null||((Nn=Ht.group_settings)===null||Nn===void 0)?void 0:Nn.length)&&n.a.createElement(m.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),dt!=null&&dt.unified_late?n.a.createElement(n.a.Fragment,null,n.a.createElement(H.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ee.a,null,"\u8865\u4EA4\u6263\u5206:"),n.a.createElement(ee.a,{className:"ml5"},n.a.createElement(P.a,{disabled:or||!dt.allow_late,value:dt.late_penalty,onChange:function(Gt){dt.late_penalty=Gt,gn(Object.assign({},dt))}})),n.a.createElement(ee.a,{flex:"1",className:"ml5"},"\u5206",n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1\u65F6\uFF0C\u5B66\u751F\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),n.a.createElement(H.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ee.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ee.a,{className:"ml5"},n.a.createElement(yt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ie()(Object(E.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:or||!dt.allow_late,value:dt.late_time?ie()(dt.late_time):"",disabledDate:mn,onChange:function(Gt,Lt){dt.late_time=Lt,gn(Object.assign({},dt))}})),n.a.createElement(ee.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):Et.map(function(zt,Gt){var Lt;return n.a.createElement(ee.a,{span:24,key:Gt},n.a.createElement(H.a,{className:"mt25"},n.a.createElement(ee.a,{style:{marginLeft:30}},n.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",Gt+1,"\uFF1A"),n.a.createElement(ge.a,{disabled:or||!(Hn!=null&&(Lt=Hn.homework_status)!==null&&Lt!==void 0&&Lt.includes("\u672A\u53D1\u5E03"))&&zt.id,mode:"multiple",style:{width:306},value:typeof zt.group_name=="string"?[zt.group_name]:zt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(vn){Et[Gt].group_name=vn,Et[Gt].group_id=zt.group_id,rt(Et.slice())}},Ht.group_settings&&Ht.group_settings.map(function(Ft){if(dt!=null&&dt.unified_setting&&!Et.map(function(vn){return vn.group_name}).toString().split(",").includes(String(Ft.group_name)))return n.a.createElement(it,{value:Ft.group_name,key:Ft.id},Ft.group_name);if(nt.map(function(vn){return vn.group_name}).toString().split(",").includes(String(Ft.group_name))&&!Et.map(function(vn){return vn.group_name}).toString().split(",").includes(String(Ft.group_name)))return n.a.createElement(it,{value:Ft.group_name,key:Ft.id},Ft.group_name)}))),n.a.createElement(ee.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),n.a.createElement(P.a,{min:0,max:100,disabled:or,defaultValue:zt.late_penalty,onChange:function(vn){Et[Gt].late_penalty=vn}})),n.a.createElement(ee.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),n.a.createElement(yt.a,{disabled:or,style:{width:200},showTime:{format:"HH:mm",defaultValue:ie()(Object(E.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:mn,format:"YYYY-MM-DD HH:mm",value:zt!=null&&zt.late_time?ie()(zt.late_time):void 0,onChange:function(vn,On){Et[Gt].late_time=On,rt(Object(Ze.a)(Et))}})),!or&&n.a.createElement(ee.a,{className:"ml20"},Gt>0&&!zt.id&&n.a.createElement(Ct.a,{onClick:function(){Et=Et.filter(function(vn,On){return Gt!==On}),rt(Et.slice()),setTimeout(function(){return rt(Et.slice())},10)}}),n.a.createElement(ft.a,{className:"c-green ml20",onClick:function(){rt(Et.concat({late_penalty:5}))}}))))})),n.a.createElement(St.a,null)),n.a.createElement(H.a,null,!or&&n.a.createElement(ee.a,{className:"mb50 mt20 btn-w120"},n.a.createElement(d.a,{type:"primary",size:"large",onClick:function(){return rn()}},"\u63D0\u4EA4"),n.a.createElement(d.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Cr(!0),Ut()}},"\u53D6\u6D88"))))},Rt=Object(o.a)(function(Y){var we=Y.shixunHomeworks,mt=Y.loading;return{shixunHomeworks:we,loading:mt.effects}})(xt),un=M("Q9mQ"),_n=M("diRs"),ar=M("Lyp1"),dr=yt.a.RangePicker,er=ge.a.Option,wn=function(we){var mt,It,ln,Ot,yn,bn,Tn=we.shixunHomeworks,pr=we.loading,gr=we.dispatch,Un=Object(r.i)(),Nn=Object(r.h)(),Fn=Tn.workSetting,$n=Tn.workList,Sr=Object(c.useState)(!0),Qn=Object(_.a)(Sr,2),yr=Qn[0],Ht=Qn[1],Hn=Object(c.useState)({}),Hr=Object(_.a)(Hn,2),Ar=Hr[0],or=Hr[1],Cr=Ae.a.useForm(),te=Object(_.a)(Cr,1),De=te[0],Xe=Object(c.useState)([]),ze=Object(_.a)(Xe,2),ut=ze[0],et=ze[1],bt=Object(c.useState)([]),ht=Object(_.a)(bt,2),Tt=ht[0],nt=ht[1],Yt=Object(c.useState)({unified_setting:!1,publish_time:"",end_time:"",ta_mode:1,final_mode:!1,st_proportion:"",ta_proportion:"",te_proportion:"",student_comment:!1,anonymous_appeal:!1,appeal_penalty:0,appeal_time:"",anonymous_comment:!1,evaluation_num:0,evaluation_start:"",evaluation_end:"",absence_penalty:0,work_public:!1,unified_late:!0,allow_late:!1,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,total_score:"",eff_score:""}),ct=Object(_.a)(Yt,2),be=ct[0],Et=ct[1],rt=($n==null||((mt=$n.homework_status)===null||mt===void 0)?void 0:mt.includes("\u533F\u8BC4\u4E2D"))||($n==null||((It=$n.homework_status)===null||It===void 0)?void 0:It.includes("\u7533\u8BC9\u4E2D")),Nt=($n==null||((ln=$n.homework_status)===null||ln===void 0)?void 0:ln.includes("\u533F\u8BC4\u4E2D"))||($n==null||((Ot=$n.homework_status)===null||Ot===void 0)?void 0:Ot.includes("\u7533\u8BC9\u4E2D"))||($n==null||((yn=$n.homework_status)===null||yn===void 0)?void 0:yn.includes("\u5DF2\u622A\u6B62"));Object(c.useEffect)(function(){Dt()},[]),Object(c.useEffect)(function(){if(!(Fn!=null&&Fn.course_id))return;Object.keys(be).map(function(Ut){be[Ut]=Fn[Ut]}),(!be.allow_late||!be.unified_late)&&(be.late_penalty=5),ut=JSON.parse(JSON.stringify(Fn.group_settings.map(function(Ut){return Object(p.a)(Object(p.a)({},Ut),{},{group_name:[Ut.group_name]})}).filter(function(Ut){return Ut.publish_time!==null}))),Tt=JSON.parse(JSON.stringify(Fn.allow_late_settings.map(function(Ut){return Object(p.a)(Object(p.a)({},Ut),{},{group_name:[Ut.group_name]})}).filter(function(Ut){return Ut.late_time!==null}))),Et(Object(p.a)({},be)),et(Object(Ze.a)(ut)),nt(Object(Ze.a)(Tt))},[Fn]);var Dt=function(){gr({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},Un)})},dt=function(){var Ut=Object(L.a)(h.a.mark(function rn(){var In,cn,mn,zt;return h.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(cn=JSON.parse(JSON.stringify(be)),cn.categoryId=Un.categoryId,be.unified_setting||((In=ut)===null||In===void 0||In.map(function(Ft){var vn,On;if(!Ft.publish_time||!Ft.end_time)throw y.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ft.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");Ft.group_name=typeof(Ft==null?void 0:Ft.group_name)=="string"?[Ft==null?void 0:Ft.group_name]:Ft==null?void 0:Ft.group_name,console.log("item:0",Ft,Fn.group_settings,ut),Ft.group_id=Ft==null||((vn=Ft.group_name)===null||vn===void 0||((On=vn.map(function(cr){var nr,Zt,wr=(nr=Fn.group_settings)===null||nr===void 0||((Zt=nr.filter(function(zn){return(zn==null?void 0:zn.group_name)===cr}))===null||Zt===void 0)?void 0:Zt[0];return console.log("d:",wr,cr),wr==null?void 0:wr.group_id}))===null||On===void 0))?void 0:On.toString().split(",")})),cn.group_settings=ut,!be.allow_late){Lt.next=16;break}if(!be.unified_late){Lt.next=14;break}if(!(be.late_penalty===null||be.late_penalty===void 0||be.late_penalty<0||be.late_penalty>100)){Lt.next=9;break}throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");case 9:if(be.late_time){Lt.next=12;break}throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");case 12:Lt.next=16;break;case 14:Tt=(mn=Tt)===null||mn===void 0?void 0:mn.map(function(Ft){var vn,On;if(Ft.late_penalty===null||Ft.late_penalty===void 0||Ft.late_penalty<0||Ft.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ft.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ft.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ft.group_name=typeof(Ft==null?void 0:Ft.group_name)=="string"?[Ft==null?void 0:Ft.group_name]:Ft==null?void 0:Ft.group_name,Ft.group_id=Ft==null||((vn=Ft.group_name)===null||vn===void 0||((On=vn.map(function(cr){var nr,Zt,wr=(nr=Fn.group_settings)===null||nr===void 0||((Zt=nr.filter(function(zn){return(zn==null?void 0:zn.group_name)===cr}))===null||Zt===void 0)?void 0:Zt[0];return wr==null?void 0:wr.group_id}))===null||On===void 0))?void 0:On.toString().split(","),Ft}),cn.allow_late_settings=Tt;case 16:if(!be.evaluation_start){Lt.next=23;break}if(!(be.end_time&&ie()(be.evaluation_start)<=ie()(be.end_time))){Lt.next=20;break}throw y.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4");case 20:if(!(be.late_time&&ie()(be.evaluation_start)<=ie()(be.late_time))){Lt.next=23;break}throw y.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4");case 23:return Object.keys(cn).map(function(Ft){Ft.indexOf("proportion")>-1&&(cn[Ft]=cn[Ft]/100)}),Lt.next=26,Object(ve.a)("/api/homework_commons/".concat(Un.categoryId,"/evaluation_setting.json"),{method:"post",body:Object(p.a)({},cn)});case 26:zt=Lt.sent,zt.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),Ht(!0),Dt(),gr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},Un)}));case 28:case"end":return Lt.stop()}},rn)}));return function(){return Ut.apply(this,arguments)}}(),gn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),kn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),on=function(rn){return rn&&rn-1&&(Nn[on]=Nn[on]*100),ct[on]=Nn[on]}),(!ct.allow_late||!ct.unified_late)&&(ct.late_penalty=5),ze=JSON.parse(JSON.stringify(Nn.group_settings.map(function(on){return Object(p.a)(Object(p.a)({},on),{},{group_name:[on.group_name]})}).filter(function(on){return on.publish_time!==null}))),ht=JSON.parse(JSON.stringify(Nn.allow_late_settings.map(function(on){return Object(p.a)(Object(p.a)({},on),{},{group_name:[on.group_name]})}).filter(function(on){return on.late_time!==null}))),be(Object(p.a)({},ct)),ut(Object(Ze.a)(ze)),Tt(Object(Ze.a)(ht))},[Nn]);var Nt=function(){pr({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},gr)})},Dt=function(){var on=Object(L.a)(h.a.mark(function Ut(){var rn,In,cn,mn;return h.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(In=JSON.parse(JSON.stringify(ct)),In.categoryId=gr.categoryId,ct.unified_setting||((rn=ze)===null||rn===void 0||rn.map(function(Lt){var Ft,vn;if(!Lt.publish_time||!Lt.end_time)throw y.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Lt.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");Lt.group_name=typeof(Lt==null?void 0:Lt.group_name)=="string"?[Lt==null?void 0:Lt.group_name]:Lt==null?void 0:Lt.group_name,console.log("item:0",Lt,Nn.group_settings,ze),Lt.group_id=Lt==null||((Ft=Lt.group_name)===null||Ft===void 0||((vn=Ft.map(function(On){var cr,nr,Zt=(cr=Nn.group_settings)===null||cr===void 0||((nr=cr.filter(function(wr){return(wr==null?void 0:wr.group_name)===On}))===null||nr===void 0)?void 0:nr[0];return console.log("d:",Zt,On),Zt==null?void 0:Zt.group_id}))===null||vn===void 0))?void 0:vn.toString().split(",")})),In.group_settings=ze,!ct.allow_late){Gt.next=16;break}if(!ct.unified_late){Gt.next=14;break}if(!(ct.late_penalty===null||ct.late_penalty===void 0||ct.late_penalty<0||ct.late_penalty>100)){Gt.next=9;break}throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");case 9:if(ct.late_time){Gt.next=12;break}throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");case 12:Gt.next=16;break;case 14:ht=(cn=ht)===null||cn===void 0?void 0:cn.map(function(Lt){var Ft,vn;if(Lt.late_penalty===null||Lt.late_penalty===void 0||Lt.late_penalty<0||Lt.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Lt.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Lt.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Lt.group_name=typeof(Lt==null?void 0:Lt.group_name)=="string"?[Lt==null?void 0:Lt.group_name]:Lt==null?void 0:Lt.group_name,Lt.group_id=Lt==null||((Ft=Lt.group_name)===null||Ft===void 0||((vn=Ft.map(function(On){var cr,nr,Zt=(cr=Nn.group_settings)===null||cr===void 0||((nr=cr.filter(function(wr){return(wr==null?void 0:wr.group_name)===On}))===null||nr===void 0)?void 0:nr[0];return Zt==null?void 0:Zt.group_id}))===null||vn===void 0))?void 0:vn.toString().split(","),Lt}),In.allow_late_settings=ht;case 16:return Object.keys(In).map(function(Lt){Lt.indexOf("proportion")>-1&&(In[Lt]=In[Lt]/100)}),Gt.next=19,Object(ve.a)("/api/homework_commons/".concat(gr.categoryId,"/score_setting_with_normal.json"),{method:"post",body:Object(p.a)({},In)});case 19:mn=Gt.sent,mn.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),yr(!0),Nt(),pr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},gr)}));case 21:case"end":return Gt.stop()}},Ut)}));return function(){return on.apply(this,arguments)}}(),dt=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),gn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),kn=function(Ut){return Ut&&Ut100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ct.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var In;ht=(In=ht)===null||In===void 0?void 0:In.map(function(cn){var mn,zt;if(cn.late_penalty===null||cn.late_penalty===void 0||cn.late_penalty<0||cn.late_penalty>100)throw y.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!cn.late_time)throw y.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!cn.group_name)throw y.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return cn.group_name=typeof(cn==null?void 0:cn.group_name)=="string"?[cn==null?void 0:cn.group_name]:cn==null?void 0:cn.group_name,cn.group_id=cn==null||((mn=cn.group_name)===null||mn===void 0||((zt=mn.map(function(Gt){var Lt,Ft,vn=(Lt=Nn.group_settings)===null||Lt===void 0||((Ft=Lt.filter(function(On){return(On==null?void 0:On.group_name)===Gt}))===null||Ft===void 0)?void 0:Ft[0];return vn==null?void 0:vn.group_id}))===null||zt===void 0))?void 0:zt.toString().split(","),cn}),rn.allow_late_settings=ht}Object.keys(rn).map(function(cn){cn.indexOf("proportion")>-1&&(rn[cn]=rn[cn]/100)}),pr({type:"shixunHomeworks/updateSetting",payload:rn}).then(function(cn){cn.status===0&&(y.b.success("\u66F4\u65B0\u6210\u529F"),yr(!0),Nt(),pr({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},gr)}))})},dt=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u6559\u5E08\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u52A9\u6559\u8BC4\u5206 * \u5176\u767E\u5206\u6BD4 + \u5B66\u751F\u533F\u8BC4\u5E73\u5747\u5206 * \u5176\u767E\u5206\u6BD4 - (",n.a.createElement("br",null),"\u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),n.a.createElement("br",null),"\u6CE8\u610F",n.a.createElement("br",null),"\u975E\u96F6\u767E\u5206\u6BD4\u7684\u8BC4\u5206\u9009\u9879\uFF0C\u82E5\u8BC4\u5206\u8BB0\u5F55\u4E3A\u7A7A\uFF0C\u5219\u5176\u767E\u5206\u6BD4\u5C06\u81EA\u52A8\u5E73\u644A\u5230\u5176\u5B83\u975E\u96F6",n.a.createElement("br",null),"\u8BC4\u5206\u9009\u9879\u4E0A\u3002",n.a.createElement("br",null),"\u4F8B\uFF1A\u6559\u5E08\u8BC4\u520640% + \u52A9\u6559\u8BC4\u520635% + \u5B66\u751F\u533F\u8BC425%\uFF0C\u5B66\u751FA\u6CA1\u6709\u6559\u5E08\u8BC4\u5206\u8BB0",n.a.createElement("br",null),"\u5F55\uFF0C\u5219\u5176\u6700\u7EC8\u6210\u7EE9\u6309\u7167\u52A9\u6559\u8BC4\u520655% + \u5B66\u751F\u533F\u8BC445%\u8FDB\u884C\u8BA1\u7B97"),gn=n.a.createElement("div",{className:"mask-tips"},"\u8BA1\u7B97\u8BF4\u660E\uFF1A",n.a.createElement("br",null),"\u4F18\u5148\u987A\u5E8F\u6392\u524D\u7684\u975E\u96F6\u8BC4\u5206 * 100% -",n.a.createElement("br",null),"( \u8FDF\u4EA4\u6263\u5206 + \u7F3A\u8BC4\u6263\u5206 * \u7F3A\u8BC4\u6570 + \u8FDD\u89C4\u533F\u8BC4\u6263\u5206 * \u8FDD\u89C4\u533F\u8BC4\u6570 )",n.a.createElement("br",null),"\u4F8B\uFF1A\u6709\u6559\u5E08\u8BC4\u5206\u5219\u6559\u5E08\u8BC4\u5206100%\uFF0C\u5426\u5219\u6559\u8F85\u8BC4\u5206100%\uFF0C\u4F9D\u6B21\u7C7B\u63A8"),kn=function(Ut){return Ut&&Ut"},n.a.createElement(z.a.Item,null,n.a.createElement(l.a,{to:"/classrooms/".concat(Ht.course_id,"/common_homework")},Ht.course_name)),n.a.createElement(z.a.Item,null,n.a.createElement(l.a,{to:"/classrooms/".concat(Ht.course_id,"/common_homework/").concat(((mt=Ht.category)===null||mt===void 0?void 0:mt.main)===1?"":Ht.category.category_id)},Ht.category.category_name)),n.a.createElement(z.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[_r.a.title,"mt20"].join(" ")},n.a.createElement(l.a,{to:"/classrooms/".concat(Ht.course_id,"/common_homework/").concat(((It=Ht.category)===null||It===void 0?void 0:It.main)===1?"":Ht.category.category_id)},n.a.createElement(x.a,{className:"font16 c-black"})),n.a.createElement("strong",{className:"font20 ml5"},Ht.homework_name),n.a.createElement(E.k,{status:Ht.homework_status}))),n.a.createElement("aside",{className:"mt30 relative ".concat(_r.a.workListTabWrap)},n.a.createElement(G.a,{type:"card",activeKey:Un,tabBarExtraContent:Ar(),onTabClick:function(Cr,te){if(parseInt(Cr)===2){if(!(Ht!=null&&Ht.view_answer)){y.b.info("\u672C\u6B21\u4F5C\u4E1A\u8001\u5E08\u672A\u516C\u5F00\u7B54\u6848");return}(Ht==null?void 0:Ht.time_status)>2||Object(X.d)()?Nn(Cr):y.b.info("\u622A\u6B62\u4E4B\u540E\u7684\u8BD5\u5377\u624D\u80FD\u67E5\u770B\u7B54\u6848")}else Nn(Cr)},className:_r.a.tabs},Hr.map(function(or,Cr){return n.a.createElement(G.a.TabPane,{tab:or.name,key:or.id},or.compontent)})))),n.a.createElement(C.a,null),n.a.createElement(Je.a,{type:"edit",onCallback:function(){return Hn()}}),n.a.createElement(jt.a,{type:"edit",onCallback:function(){return Hn()}}),n.a.createElement(k.a,{ref:Fn,hide:!0,name:"".concat(Ht==null?void 0:Ht.homework_name,"-\u4F5C\u54C1\u9644\u4EF6"),onOk:function(){return yr(!1)}}))},ne=Ce.default=Object(o.a)(function(Y){var we=Y.user,mt=Y.shixunHomeworks,It=Y.loading,ln=Y.globalSetting;return{user:we,shixunHomeworks:mt,globalSetting:ln,loading:It.effects}})($)},JYp7:function(tn,Ce,M){"use strict";M.d(Ce,"c",function(){return G}),M.d(Ce,"d",function(){return I}),M.d(Ce,"f",function(){return O}),M.d(Ce,"a",function(){return w}),M.d(Ce,"b",function(){return W}),M.d(Ce,"e",function(){return y});var re=function(){var L=function(R,d){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,_){p.__proto__=_}||function(p,_){for(var v in _)_.hasOwnProperty(v)&&(p[v]=_[v])},L(R,d)};return function(R,d){L(R,d);function p(){this.constructor=R}R.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}(),G={done:!0,value:void 0},I;(function(L){var R={next:function(){return G}};function d(){return R}L.empty=d;function p(E){var b=!1;return{next:function(){return b?G:(b=!0,{done:!1,value:E})}}}L.single=p;function _(E,b,P){return b===void 0&&(b=0),P===void 0&&(P=E.length),{next:function(){return b>=P?G:{done:!1,value:E[b++]}}}}L.fromArray=_;function v(E){return{next:function(){var b=E.next();return b.done?G:{done:!1,value:b.value}}}}L.fromNativeIterator=v;function h(E){return E?Array.isArray(E)?L.fromArray(E):E:L.empty()}L.from=h;function c(E,b){return{next:function(){var P=E.next();return P.done?G:{done:!1,value:b(P.value)}}}}L.map=c;function n(E,b){return{next:function(){for(;;){var P=E.next();if(P.done)return G;if(b(P.value))return{done:!1,value:P.value}}}}}L.filter=n;function r(E,b){for(var P=E.next();!P.done;P=E.next())b(P.value)}L.forEach=r;function o(E,b){b===void 0&&(b=Number.POSITIVE_INFINITY);var P=[];if(b===0)return P;for(var T=0,m=E.next();!m.done&&!(P.push(m.value),++T>=b);m=E.next());return P}L.collect=o;function l(){for(var E=[],b=0;b=E.length)return G;var T=E[P],m=T.next();return m.done?(P++,this.next()):m}}}L.concat=l;function x(E){return new z(E)}L.chain=x})(I||(I={}));var z=function(){function L(R){this.it=R}return L.prototype.next=function(){return this.it.next()},L}();function O(L){return Array.isArray(L)?I.fromArray(L):L||I.empty()}var w=function(){function L(R,d,p,_){d===void 0&&(d=0),p===void 0&&(p=R.length),_===void 0&&(_=d-1),this.items=R,this.start=d,this.end=p,this.index=_}return L.prototype.first=function(){return this.index=this.start,this.current()},L.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},L.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},L}(),W=function(L){re(R,L);function R(d,p,_,v){return p===void 0&&(p=0),_===void 0&&(_=d.length),v===void 0&&(v=p-1),L.call(this,d,p,_,v)||this}return R.prototype.current=function(){return L.prototype.current.call(this)},R.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.last=function(){return this.index=this.end-1,this.current()},R.prototype.parent=function(){return null},R}(w),y=function(){function L(R,d){this.iterator=R,this.fn=d}return L.prototype.next=function(){return this.fn(this.iterator.next())},L}()},LdHM:function(tn,Ce,M){"use strict";M.d(Ce,"b",function(){return l}),M.d(Ce,"a",function(){return E});var re=M("1OyB"),G=M("vuIU"),I=M("Ji7U"),z=M("LK+K"),O=M("q1tI"),w=M("rePB"),W=M("Ff2n"),y=M("ODXe"),L=M("4IlW"),R=M("bX4T"),d=M("YrtM"),p=M("TSYQ"),_=M.n(p),v=M("+nKL"),h=M("8OUc"),c=function(q,ee){var he=q.prefixCls,ye=q.id,Ye=q.flattenOptions,Pe=q.childrenAsData,je=q.values,Ze=q.searchValue,Qe=q.multiple,Ae=q.defaultActiveFirstOption,me=q.height,ie=q.itemHeight,Oe=q.notFoundContent,ve=q.open,Ge=q.menuItemSelectedIcon,pe=q.virtual,J=q.onSelect,V=q.onToggleOpen,X=q.onActiveValue,ue=q.onScroll,Ee=q.onMouseEnter,We="".concat(he,"-item"),Ke=Object(d.a)(function(){return Ye},[ve,Ye],function(Ct,Ne){return Ne[0]&&Ct[1]!==Ne[1]}),Pt=O.useRef(null),Kt=function(Ne){Ne.preventDefault()},Bt=function(Ne){Pt.current&&Pt.current.scrollTo({index:Ne})},kt=function(Ne){for(var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Te=Ke.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(B).map(function(ee,he){if(!O.isValidElement(ee)||!ee.type)return null;var ye=ee.type.isSelectOptGroup,Ye=ee.key,Pe=ee.props,je=Pe.children,Ze=Object(W.a)(Pe,["children"]);return q||!ye?T(ee):Object(b.a)(Object(b.a)({key:"__RC_SELECT_GRP__".concat(Ye===null?he:Ye,"__"),label:Ye},Ze),{},{options:m(je)})}).filter(function(ee){return ee})}var g=M("2Qr1"),s=M("qNPg"),u=M("U8pU"),D=M("Kwbf"),S=M("WKfj");function A(B){var q=B.mode,ee=B.options,he=B.children,ye=B.backfill,Ye=B.allowClear,Pe=B.placeholder,je=B.getInputElement,Ze=B.showSearch,Qe=B.onSearch,Ae=B.defaultOpen,me=B.autoFocus,ie=B.labelInValue,Oe=B.value,ve=B.inputValue,Ge=B.optionLabelProp,pe=q==="multiple"||q==="tags",J=Ze!==void 0?Ze:pe||q==="combobox",V=ee||m(he);if(Object(D.a)(q!=="tags"||V.every(function(We){return!We.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var X=V.some(function(We){return We.options?We.options.some(function(Ke){return typeof("value"in Ke?Ke.value:Ke.key)=="number"}):typeof("value"in We?We.value:We.key)=="number"});Object(D.a)(!X,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(q!=="combobox"||!Ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(q==="combobox"||!ye,"`backfill` only works with `combobox` mode."),Object(D.a)(q==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),Object(D.b)(q!=="combobox"||!je||!Ye||!Pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Qe&&!J&&q!=="combobox"&&q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!Ae||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Oe!=null){var ue=Object(S.d)(Oe);Object(D.a)(!ie||ue.every(function(We){return Object(u.a)(We)==="object"&&("key"in We||"value"in We)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!pe||Array.isArray(Oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var Ee=null;Object(P.a)(he).some(function(We){if(!O.isValidElement(We)||!We.type)return!1;var Ke=We.type;if(Ke.isSelectOption)return!1;if(Ke.isSelectOptGroup){var Pt=Object(P.a)(We.props.children).every(function(Kt){return!O.isValidElement(Kt)||!We.type||Kt.type.isSelectOption?!0:(Ee=Kt.type,!1)});return!Pt}return Ee=Ke,!0}),Ee&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ee.displayName||Ee.name||Ee,"`.")),Object(D.a)(ve===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=A,j=Object(s.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:m,flattenOptions:g.d,getLabeledValue:g.e,filterOptions:g.b,isValueDisabled:g.g,findValueOption:g.c,warningProps:N,fillOptionsWithMissingValue:g.a}),K=function(B){Object(I.a)(ee,B);var q=Object(z.a)(ee);function ee(){var he;return Object(re.a)(this,ee),he=q.apply(this,arguments),he.selectRef=O.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(G.a)(ee,[{key:"render",value:function(){return O.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),ee}(O.Component);K.Option=l,K.OptGroup=E;var H=K,U=Ce.c=H},M8RZ:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return L});var re=M("fWQN"),G=M("mtLc"),I=M("yKVA"),z=M("879j"),O=M("q1tI"),w=M.n(O),W=M("i8i4"),y=M.n(W),L=function(R){Object(I.a)(p,R);var d=Object(z.a)(p);function p(_){var v;Object(re.a)(this,p),v=d.call(this,_);var h=window.document;return v.node=h.createElement("div"),h.body.appendChild(v.node),v}return Object(G.a)(p,[{key:"render",value:function(){var v=this.props.children;return Object(W.createPortal)(v,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),p}(w.a.Component)},MI8n:function(tn,Ce,M){"use strict";M.d(Ce,"b",function(){return w}),M.d(Ce,"a",function(){return L}),M.d(Ce,"e",function(){return R}),M.d(Ce,"d",function(){return d}),M.d(Ce,"c",function(){return p}),M.d(Ce,"f",function(){return _});var re=M("/cxE"),G=M("C/vA"),I=M("pmY6"),z=M("24hK"),O=function(){var v=function(h,c){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},v(h,c)};return function(h,c){v(h,c);function n(){this.constructor=h}h.prototype=c===null?Object.create(c):(n.prototype=c.prototype,new n)}}(),w;(function(v){v.None=function(){return I.a.None};function h(N){return function(j,K,H){K===void 0&&(K=null);var U=!1,B;return B=N(function(q){return U?void 0:(B?B.dispose():U=!0,j.call(K,q))},null,H),U&&B.dispose(),B}}v.once=h;function c(N,j){return E(function(K,H,U){return H===void 0&&(H=null),N(function(B){return K.call(H,j(B))},null,U)})}v.map=c;function n(N,j){return E(function(K,H,U){return H===void 0&&(H=null),N(function(B){j(B),K.call(H,B)},null,U)})}v.forEach=n;function r(N,j){return E(function(K,H,U){return H===void 0&&(H=null),N(function(B){return j(B)&&K.call(H,B)},null,U)})}v.filter=r;function o(N){return N}v.signal=o;function l(){for(var N=[],j=0;j1)&&ye.fire(Pe),he=0},K)})},onLastListenerRemove:function(){B.dispose()}});return ye.event}v.debounce=b;function P(N){var j=new Date().getTime();return c(h(N),function(K){return new Date().getTime()-j})}v.stopwatch=P;function T(N){var j=!0,K;return r(N,function(H){var U=j||H!==K;return j=!1,K=H,U})}v.latch=T;function m(N,j,K){j===void 0&&(j=!1),K===void 0&&(K=[]);var H=K.slice(),U=N(function(ee){H?H.push(ee):q.fire(ee)}),B=function(){H&&H.forEach(function(ee){return q.fire(ee)}),H=null},q=new L({onFirstListenerAdd:function(){U||(U=N(function(ee){return q.fire(ee)}))},onFirstListenerDidAdd:function(){H&&(j?setTimeout(B):B())},onLastListenerRemove:function(){U&&U.dispose(),U=null}});return q.event}v.buffer=m;var g=function(){function N(j){this.event=j}return N.prototype.map=function(j){return new N(c(this.event,j))},N.prototype.forEach=function(j){return new N(n(this.event,j))},N.prototype.filter=function(j){return new N(r(this.event,j))},N.prototype.reduce=function(j,K){return new N(x(this.event,j,K))},N.prototype.latch=function(){return new N(T(this.event))},N.prototype.debounce=function(j,K,H,U){return K===void 0&&(K=100),H===void 0&&(H=!1),new N(b(this.event,j,K,H,U))},N.prototype.on=function(j,K,H){return this.event(j,K,H)},N.prototype.once=function(j,K,H){return h(this.event)(j,K,H)},N}();function s(N){return new g(N)}v.chain=s;function u(N,j,K){K===void 0&&(K=function(ee){return ee});var H=function(){for(var ee=[],he=0;he0?new y(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(v.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(c,n,r){h._listeners||(h._listeners=new z.a);var o=h._listeners.isEmpty();o&&h._options&&h._options.onFirstListenerAdd&&h._options.onFirstListenerAdd(h);var l=h._listeners.push(n?[c,n]:c);o&&h._options&&h._options.onFirstListenerDidAdd&&h._options.onFirstListenerDidAdd(h),h._options&&h._options.onListenerDidAdd&&h._options.onListenerDidAdd(h,c,n);var x;h._leakageMon&&(x=h._leakageMon.check(h._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=v._noop,!h._disposed&&(l(),h._options&&h._options.onLastListenerRemove)){var b=h._listeners&&!h._listeners.isEmpty();b||h._options.onLastListenerRemove(h)}}},r instanceof I.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),v.prototype.fire=function(h){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.a);for(var c=this._listeners.iterator(),n=c.next();!n.done;n=c.next())this._deliveryQueue.push([n.value,h]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),o=r[0],l=r[1];try{typeof o=="function"?o.call(void 0,l):o[0].call(o[1],l)}catch(x){Object(re.e)(x)}}}},v.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},v._noop=function(){},v}(),R=function(v){O(h,v);function h(c){var n=v.call(this,c)||this;return n._isPaused=0,n._eventQueue=new z.a,n._mergeFn=c&&c.merge,n}return h.prototype.pause=function(){this._isPaused++},h.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var c=this._eventQueue.toArray();this._eventQueue.clear(),v.prototype.fire.call(this,this._mergeFn(c))}else for(;!this._isPaused&&this._eventQueue.size!==0;)v.prototype.fire.call(this,this._eventQueue.shift())},h.prototype.fire=function(c){this._listeners&&(this._isPaused!==0?this._eventQueue.push(c):v.prototype.fire.call(this,c))},h}(L),d=function(){function v(){var h=this;this.hasListeners=!1,this.events=[],this.emitter=new L({onFirstListenerAdd:function(){return h.onFirstListenerAdd()},onLastListenerRemove:function(){return h.onLastListenerRemove()}})}return Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(h){var c=this,n={event:h,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var r=function(){c.hasListeners&&c.unhook(n);var o=c.events.indexOf(n);c.events.splice(o,1)};return Object(I.h)(Object(G.a)(r))},v.prototype.onFirstListenerAdd=function(){var h=this;this.hasListeners=!0,this.events.forEach(function(c){return h.hook(c)})},v.prototype.onLastListenerRemove=function(){var h=this;this.hasListeners=!1,this.events.forEach(function(c){return h.unhook(c)})},v.prototype.hook=function(h){var c=this;h.listener=h.event(function(n){return c.emitter.fire(n)})},v.prototype.unhook=function(h){h.listener&&h.listener.dispose(),h.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v}(),p=function(){function v(){this.buffers=[]}return v.prototype.wrapEvent=function(h){var c=this;return function(n,r,o){return h(function(l){var x=c.buffers[c.buffers.length-1];x?x.push(function(){return n.call(r,l)}):n.call(r,l)},void 0,o)}},v.prototype.bufferEvents=function(h){var c=[];this.buffers.push(c);var n=h();return this.buffers.pop(),c.forEach(function(r){return r()}),n},v}(),_=function(){function v(){var h=this;this.listening=!1,this.inputEvent=w.None,this.inputEventListener=I.a.None,this.emitter=new L({onFirstListenerDidAdd:function(){h.listening=!0,h.inputEventListener=h.inputEvent(h.emitter.fire,h.emitter)},onLastListenerRemove:function(){h.listening=!1,h.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(v.prototype,"input",{set:function(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},v}()},N0LK:function(nn,Ce,M){"use strict";M.d(Ce,"x",function(){return re}),M.d(Ce,"F",function(){return G}),M.d(Ce,"r",function(){return z}),M.d(Ce,"o",function(){return O}),M.d(Ce,"p",function(){return w}),M.d(Ce,"Q",function(){return W}),M.d(Ce,"K",function(){return L}),M.d(Ce,"k",function(){return R}),M.d(Ce,"N",function(){return d}),M.d(Ce,"m",function(){return p}),M.d(Ce,"l",function(){return _}),M.d(Ce,"I",function(){return v}),M.d(Ce,"H",function(){return h}),M.d(Ce,"q",function(){return c}),M.d(Ce,"t",function(){return n}),M.d(Ce,"D",function(){return r}),M.d(Ce,"e",function(){return o}),M.d(Ce,"f",function(){return l}),M.d(Ce,"B",function(){return x}),M.d(Ce,"C",function(){return E}),M.d(Ce,"n",function(){return P}),M.d(Ce,"O",function(){return m}),M.d(Ce,"c",function(){return g}),M.d(Ce,"d",function(){return s}),M.d(Ce,"z",function(){return u}),M.d(Ce,"A",function(){return D}),M.d(Ce,"u",function(){return S}),M.d(Ce,"E",function(){return N}),M.d(Ce,"G",function(){return j}),M.d(Ce,"i",function(){return H}),M.d(Ce,"g",function(){return B}),M.d(Ce,"v",function(){return ee}),M.d(Ce,"h",function(){return he}),M.d(Ce,"y",function(){return be}),M.d(Ce,"w",function(){return Ye}),M.d(Ce,"a",function(){return Pe}),M.d(Ce,"P",function(){return je}),M.d(Ce,"L",function(){return Qe}),M.d(Ce,"J",function(){return Ze}),M.d(Ce,"j",function(){return Ae}),M.d(Ce,"M",function(){return me}),M.d(Ce,"s",function(){return ie}),M.d(Ce,"b",function(){return Oe});function re(pe){return!pe||typeof pe!="string"?!0:pe.trim().length===0}function G(pe,J,V){V===void 0&&(V="0");for(var X=""+pe,ue=[X],Ee=X.length;Ee=J.length?X:J[Ee]})}function O(pe){return pe.replace(/[<>&]/g,function(J){switch(J){case"<":return"<";case">":return">";case"&":return"&";default:return J}})}function w(pe){return pe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function W(pe,J){J===void 0&&(J=" ");var V=y(pe,J);return L(V,J)}function y(pe,J){if(!pe||!J)return pe;var V=J.length;if(V===0||pe.length===0)return pe;for(var X=0;pe.indexOf(J,X)===X;)X=X+V;return pe.substring(X)}function L(pe,J){if(!pe||!J)return pe;var V=J.length,X=pe.length;if(V===0||X===0)return pe;for(var ue=X,Ee=-1;!(Ee=pe.lastIndexOf(J,ue-1),Ee===-1||Ee+V!==ue);){if(Ee===0)return"";ue=Ee}return pe.substring(0,ue)}function R(pe){return pe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(pe,J){if(pe.length0?pe.indexOf(J,V)===V:V===0?pe===J:!1}function _(pe,J,V){if(V===void 0&&(V={}),!pe)throw new Error("Cannot create regex from empty string");J||(pe=w(pe)),V.wholeWord&&(/\B/.test(pe.charAt(0))||(pe="\\b"+pe),/\B/.test(pe.charAt(pe.length-1))||(pe=pe+"\\b"));var X="";return V.global&&(X+="g"),V.matchCase||(X+="i"),V.multiline&&(X+="m"),V.unicode&&(X+="u"),new RegExp(pe,X)}function v(pe){if(pe.source==="^"||pe.source==="^$"||pe.source==="$"||pe.source==="^\\s*$")return!1;var J=pe.exec("");return!!(J&&pe.lastIndex===0)}function h(pe){return(pe.global?"g":"")+(pe.ignoreCase?"i":"")+(pe.multiline?"m":"")+(pe.unicode?"u":"")}function c(pe){for(var J=0,V=pe.length;J=0;V--){var X=pe.charCodeAt(V);if(X!==32&&X!==9)return V}return-1}function o(pe,J){return peJ?1:0}function l(pe,J){for(var V=Math.min(pe.length,J.length),X=0;XJ.length?1:0}function x(pe){return pe>=97&&pe<=122}function E(pe){return pe>=65&&pe<=90}function b(pe){return x(pe)||E(pe)}function P(pe,J){return pe.length===J.length&&T(pe,J)}function T(pe,J,V){V===void 0&&(V=pe.length);for(var X=0;Xpe.length?!1:T(pe,J,V)}function g(pe,J){var V,X=Math.min(pe.length,J.length);for(V=0;V1){var X=pe.charCodeAt(J-2);if(u(X))return(X-55296<<10)+(V-56320)+65536}return V}function N(pe,J){var V=ve.getInstance(),X=J,ue=pe.length,Ee=S(pe,ue,J);J+=Ee>=65536?2:1;for(var We=V.getGraphemeBreakType(Ee);J=65536?2:1,We=Lt}return J-X}function j(pe,J){var V=ve.getInstance(),X=J,ue=A(pe,J);J-=ue>=65536?2:1;for(var Ee=V.getGraphemeBreakType(ue);J>0;){var We=A(pe,J),Ke=V.getGraphemeBreakType(We);if(Oe(Ke,Ee))break;J-=We>=65536?2:1,Ee=Ke}return X-J}var K=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function H(pe){return K.test(pe)}var U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function B(pe){return U.test(pe)}var q=/^[\t\n\r\x20-\x7E]*$/;function ee(pe){return q.test(pe)}function he(pe){for(var J=0,V=pe.length;J=11904&&pe<=55215||pe>=63744&&pe<=64255||pe>=65281&&pe<=65374}function Ye(pe){return pe>=127462&&pe<=127487||pe>=9728&&pe<=10175||pe>=127744&&pe<=128591||pe>=128640&&pe<=128764||pe>=128992&&pe<=129003||pe>=129280&&pe<=129535||pe>=129648&&pe<=129651||pe>=129656&&pe<=129666||pe>=129680&&pe<=129685}var Pe=String.fromCharCode(65279);function je(pe){return!!(pe&&pe.length>0&&pe.charCodeAt(0)===65279)}function Qe(pe){return btoa(encodeURIComponent(pe))}function Ze(pe,J){for(var V="",X=0;XV[3*ue+1])ue=2*ue+1;else return V[3*ue+2];return 0},pe._INSTANCE=null,pe}();function Ge(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NNe0:function(nn,Ce,M){nn.exports={flex_box_center:"flex_box_center___1rG9K",flex_space_between:"flex_space_between___s26wD",flex_box_vertical_center:"flex_box_vertical_center___1Ur8s",flex_box_center_end:"flex_box_center_end___2GQdX",flex_box_column:"flex_box_column___EoDtg",form:"form___1ZYPY",efficiency:"efficiency___2srAz",configWorkContainer:"configWorkContainer___3nRpn"}},NvD2:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return w});var re=M("Kwbf");function G(W,y){var L=new Set;return W.forEach(function(R){y.has(R)||L.add(R)}),L}function I(W){var y=W||{},L=y.disabled,R=y.disableCheckbox,d=y.checkable;return!!(L||R)||d===!1}function z(W,y,L,R){for(var d=new Set(W),p=new Set,_=0;_<=L;_+=1){var v=y.get(_)||new Set;v.forEach(function(r){var o=r.key,l=r.node,x=r.children,E=x===void 0?[]:x;d.has(o)&&!R(l)&&E.filter(function(b){return!R(b.node)}).forEach(function(b){d.add(b.key)})})}for(var h=new Set,c=L;c>=0;c-=1){var n=y.get(c)||new Set;n.forEach(function(r){var o=r.parent,l=r.node;if(R(l)||!r.parent||h.has(r.parent.key))return;if(R(r.parent.node)){h.add(o.key);return}var x=!0,E=!1;(o.children||[]).filter(function(b){return!R(b.node)}).forEach(function(b){var P=b.key,T=d.has(P);x&&!T&&(x=!1),!E&&(T||p.has(P))&&(E=!0)}),x&&d.add(o.key),E&&p.add(o.key),h.add(o.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(G(p,d))}}function O(W,y,L,R,d){for(var p=new Set(W),_=new Set(y),v=0;v<=R;v+=1){var h=L.get(v)||new Set;h.forEach(function(o){var l=o.key,x=o.node,E=o.children,b=E===void 0?[]:E;!p.has(l)&&!_.has(l)&&!d(x)&&b.filter(function(P){return!d(P.node)}).forEach(function(P){p.delete(P.key)})})}_=new Set;for(var c=new Set,n=R;n>=0;n-=1){var r=L.get(n)||new Set;r.forEach(function(o){var l=o.parent,x=o.node;if(d(x)||!o.parent||c.has(o.parent.key))return;if(d(o.parent.node)){c.add(l.key);return}var E=!0,b=!1;(l.children||[]).filter(function(P){return!d(P.node)}).forEach(function(P){var T=P.key,m=p.has(T);E&&!m&&(E=!1),!b&&(m||_.has(T))&&(b=!0)}),E||p.delete(l.key),b&&_.add(l.key),c.add(l.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(G(_,p))}}function w(W,y,L,R){var d=[],p;R?p=R:p=I;var _=new Set(W.filter(function(n){var r=!!L[n];return r||d.push(n),r})),v=new Map,h=0;Object.keys(L).forEach(function(n){var r=L[n],o=r.level,l=v.get(o);l||(l=new Set,v.set(o,l)),l.add(r),h=Math.max(h,o)}),Object(re.a)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(n){return"'".concat(n,"'")}).join(", ")));var c;return y===!0?c=z(_,v,h,p):c=O(_,y.halfCheckedKeys,v,h,p),c}},OLES:function(nn,Ce,M){"use strict";var re=M("U8pU"),G=M("VTBJ"),I=M("Ff2n"),z=M("q1tI"),O=M("uciX"),w=M("7ixt"),W=function(_){var v=_.overlay,h=_.prefixCls,c=_.id,n=_.overlayInnerStyle;return z.createElement("div",{className:"".concat(h,"-inner"),id:c,role:"tooltip",style:n},typeof v=="function"?v():v)},y=W,L=function(_,v){var h=_.overlayClassName,c=_.trigger,n=c===void 0?["hover"]:c,r=_.mouseEnterDelay,o=r===void 0?0:r,l=_.mouseLeaveDelay,x=l===void 0?.1:l,E=_.overlayStyle,b=_.prefixCls,P=b===void 0?"rc-tooltip":b,T=_.children,m=_.onVisibleChange,g=_.afterVisibleChange,s=_.transitionName,u=_.animation,D=_.placement,S=D===void 0?"right":D,A=_.align,N=A===void 0?{}:A,j=_.destroyTooltipOnHide,K=j===void 0?!1:j,H=_.defaultVisible,U=_.getTooltipContainer,B=_.overlayInnerStyle,q=Object(I.a)(_,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(z.useRef)(null);Object(z.useImperativeHandle)(v,function(){return ee.current});var he=Object(G.a)({},q);"visible"in _&&(he.popupVisible=_.visible);var be=function(){var Ze=_.arrowContent,Ae=Ze===void 0?null:Ze,me=_.overlay,ie=_.id;return[z.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},Ae),z.createElement(y,{key:"content",prefixCls:P,id:ie,overlay:me,overlayInnerStyle:B})]},Ye=!1,Pe=!1;if(typeof K=="boolean")Ye=K;else if(K&&Object(re.a)(K)==="object"){var je=K.keepParent;Ye=je===!0,Pe=je===!1}return z.createElement(O.a,Object.assign({popupClassName:h,prefixCls:P,popup:be,action:n,builtinPlacements:w.a,popupPlacement:S,ref:ee,popupAlign:N,getPopupContainer:U,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:s,popupAnimation:u,defaultPopupVisible:H,destroyPopupOnHide:Ye,autoDestroy:Pe,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:o},he),T)},R=Object(z.forwardRef)(L),d=Ce.a=R},OZM5:function(nn,Ce,M){"use strict";M.d(Ce,"b",function(){return R}),M.d(Ce,"a",function(){return d}),M.d(Ce,"k",function(){return p}),M.d(Ce,"h",function(){return _}),M.d(Ce,"i",function(){return v}),M.d(Ce,"g",function(){return h}),M.d(Ce,"c",function(){return c}),M.d(Ce,"d",function(){return n}),M.d(Ce,"j",function(){return l}),M.d(Ce,"e",function(){return x}),M.d(Ce,"f",function(){return E});var re=M("KQm4"),G=M("U8pU"),I=M("Ff2n"),z=M("q1tI"),O=M.n(z),w=M("Kwbf"),W=M("WaYH"),y=.25,L=2;function R(b,P){var T=b.slice(),m=T.indexOf(P);return m>=0&&T.splice(m,1),T}function d(b,P){var T=b.slice();return T.indexOf(P)===-1&&T.push(P),T}function p(b){return b.split("-")}function _(b,P){return"".concat(b,"-").concat(P)}function v(b){return b&&b.type&&b.type.isTreeNode}function h(b,P){var T=[b],m=P[b];function g(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(u){var D=u.key,S=u.children;T.push(D),g(S)})}return g(m.children),T}function c(b,P){var T=b.clientY,m=P.selectHandle.getBoundingClientRect(),g=m.top,s=m.bottom,u=m.height,D=Math.max(u*y,L);return T<=g+D?-1:T>=s-D?1:0}function n(b,P){if(!b)return;var T=P.multiple;return T?b.slice():b.length?[b[0]]:b}var r=function(P){return P};function o(b,P){if(!b)return[];var T=P||{},m=T.processProps,g=m===void 0?r:m,s=Array.isArray(b)?b:[b];return s.map(function(u){var D=u.children,S=Object(I.a)(u,["children"]),A=o(D,P);return O.a.createElement(W.a,Object.assign({},g(S)),A)})}function l(b){if(!b)return null;var P;if(Array.isArray(b))P={checkedKeys:b,halfCheckedKeys:void 0};else if(Object(G.a)(b)==="object")P={checkedKeys:b.checked||void 0,halfCheckedKeys:b.halfChecked||void 0};else return Object(w.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function x(b,P){var T=new Set;function m(g){if(T.has(g))return;var s=P[g];if(!s)return;T.add(g);var u=s.parent,D=s.node;if(D.disabled)return;u&&m(u.key)}return(b||[]).forEach(function(g){m(g)}),Object(re.a)(T)}function E(b){var P={};return Object.keys(b).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(P[T]=b[T])}),P}},Ot1p:function(nn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("rAM+"),z=M("miYZ"),O=M("tsqr"),w=M("9og8"),W=M("tJVT"),y=M("jrin"),L=M("WmNS"),R=M.n(L),d=M("q1tI"),p=M.n(d),_=M("VrN/"),v=M.n(_),h=M("bdgK"),c=M("p77/"),n=M("Bd2K"),r=M("ELLl"),o=M("19Vz"),l=M("lZu9"),x=M("+NIl"),E=M("kSUc"),b=M("9Bee"),P=function(Je){var jt=Je.value,rn=jt===void 0?"":jt,pn=Je.className,on=Je.showTextOnly,Jt=Je.showLines,wt=Je.style,St=wt===void 0?{}:wt,lt=Object(d.useMemo)(function(){return""},[rn]);return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{dangerouslySetInnerHTML:{__html:lt}}))},T=M("0Owb"),m=M("dejd"),g=M("C+DQ"),s=M("1vsH"),u=M("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function S(Je){var jt=Je.onActionCallback,rn=Je.title,pn=Je.icon,on=Je.actionName,Jt=Je.className,wt=Jt===void 0?"":Jt,St=Je.children;function lt(){jt(on)}return p.a.createElement("a",{title:rn,className:wt,onClick:lt},p.a.createElement("i",{className:"md-iconfont ".concat(pn)}),St)}var A=function(Je){var jt=Je.watch,rn=Je.showNullButton,pn=Je.onActionCallback,on=Je.fullScreen,Jt=Je.insertTemp,wt=Je.hidetoolBar,St=Je.uuid,lt=Je.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(s.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(s.D)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(u.a.PROXY_SERVER)));var ge=[].concat(D,[{title:"".concat(jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(jt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return p.a.createElement("ul",{className:"markdown-toolbar-container"},!wt&&ge.map(function(Le,yt){return p.a.createElement("li",{key:yt},Le.actionName?p.a.createElement(S,Object(T.a)({},Le,{onActionCallback:pn})):p.a.createElement("span",{className:"v-line"}))}),rn?p.a.createElement("li",null,p.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:pn},p.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Jt&&p.a.createElement("li",null,p.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Jt),onActionCallback:pn},p.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),p.a.createElement("li",{className:"btn-full-screen"},p.a.createElement(S,{icon:"".concat(on?"icon-shrink":"icon-enlarge"),title:on?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:pn})))},N=M("M8RZ"),j=M("+L6B"),K=M("2/Rp"),H=M("y8nQ"),U=M("Vl3Y"),B=M("5NDa"),q=M("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(Je){var jt=Je.callback,rn=Je.onCancel;function pn(on){jt(on)}return p.a.createElement(U.a,Object(T.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pn}),p.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},p.a.createElement(q.a,null)),p.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},p.a.createElement(q.a,null)),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(K.a,{type:"ghost",onClick:rn},"\u53D6\u6D88")))},be=M("7ahc"),Ye=M("k1fw"),Pe=M("HmJG"),je=M("BjJ7"),Qe=U.a.useForm,Ze={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}},me=function(Je){var jt=Je.callback,rn=Je.onCancel,pn=Qe(),on=Object(W.a)(pn,1),Jt=on[0],wt=Object(d.useRef)();function St(Le){jt(Object(Ye.a)(Object(Ye.a)({},Le),{},{name:wt.current}))}function lt(Le,yt){Jt.setFieldsValue({src:"/api/attachments/".concat(Le.id,"?type=").concat(Le.content_type),type:yt.type})}function ge(Le){var yt=Le.target.files[0];wt.current=yt.name,Oe(yt,lt)}return p.a.createElement(U.a,Object(T.a)({form:Jt},Ae,{className:"upload-image-panel",onFinish:St}),p.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},p.a.createElement("div",{className:"flex-container"},p.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},p.a.createElement(q.a,{style:Ze})),p.a.createElement(ie,{onFileChange:ge}))),p.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},p.a.createElement(q.a,{style:{width:264}})),p.a.createElement(U.a.Item,{style:{textAlign:"right"}},p.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(K.a,{type:"ghost",onClick:rn},"\u53D6\u6D88")))};function ie(Je){var jt=Je.onFileChange;return p.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",p.a.createElement("input",{type:"file",onChange:jt}))}function Oe(Je,jt){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");var rn=new FormData;rn.append("editormd-image-file",Je),rn.append("file_param_name","editormd-image-file"),rn.append("byxhr","true");var pn=new window.XMLHttpRequest;pn.withCredentials=!0,pn.addEventListener("load",function(on){jt(JSON.parse(on.target.responseText),Je)},!1),pn.addEventListener("error",function(on){console.error(on)},!1),pn.open("POST","".concat(je.a,"/api/attachments.json")),pn.send(rn)}var ve=M("giR+"),Ge=M("fyUT"),pe=M("7Kak"),J=M("9yH6"),V=J.a.Group,X={margin:"0 8px"},ue=function(Je){var jt=Je.callback,rn=Je.onCancel;function pn(on){jt(on)}return p.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pn},p.a.createElement("div",{className:"flex-container"},p.a.createElement("span",{style:X},"\u5355\u5143\u683C\u6570\uFF1A"),p.a.createElement("span",{style:X},"\u884C\u6570"),p.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},p.a.createElement(Ge.a,null)),p.a.createElement("span",{style:X},"\u5217\u6570"),p.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},p.a.createElement(Ge.a,null))),p.a.createElement("div",{className:"flex-container",style:{marginTop:12}},p.a.createElement("span",{style:X},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),p.a.createElement(U.a.Item,{name:"align"},p.a.createElement(V,null,p.a.createElement(J.a,{value:"default"},p.a.createElement("i",{className:"fa fa-align-justify"})),p.a.createElement(J.a,{value:"left"},p.a.createElement("i",{className:"fa fa-align-left"})),p.a.createElement(J.a,{value:"center"},p.a.createElement("i",{className:"fa fa-align-center"})),p.a.createElement(J.a,{value:"right"},p.a.createElement("i",{className:"fa fa-align-right"}))))),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(K.a,{type:"ghost",onClick:rn},"\u53D6\u6D88")))},Ee=M("ErOA"),We=M("7Cbv"),Ke="link",Lt="upload-image",Kt="code-block",Bt="add-table",kt="------------",Qt={default:kt,left:":".concat(kt),center:":".concat(kt,":"),right:"".concat(kt,":")},hn=M("9VGf"),qe,Ue;function vt(){}var Mt=0,st=1e4,Ct="\u2581",Ne=` +`),o=this._stacks.get(r)||0;if(this._stacks.set(r,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;var l,x=0;this._stacks.forEach(function(E,b){(!l||x0?new y(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(v.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(c,n,r){h._listeners||(h._listeners=new z.a);var o=h._listeners.isEmpty();o&&h._options&&h._options.onFirstListenerAdd&&h._options.onFirstListenerAdd(h);var l=h._listeners.push(n?[c,n]:c);o&&h._options&&h._options.onFirstListenerDidAdd&&h._options.onFirstListenerDidAdd(h),h._options&&h._options.onListenerDidAdd&&h._options.onListenerDidAdd(h,c,n);var x;h._leakageMon&&(x=h._leakageMon.check(h._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=v._noop,!h._disposed&&(l(),h._options&&h._options.onLastListenerRemove)){var b=h._listeners&&!h._listeners.isEmpty();b||h._options.onLastListenerRemove(h)}}},r instanceof I.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),v.prototype.fire=function(h){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.a);for(var c=this._listeners.iterator(),n=c.next();!n.done;n=c.next())this._deliveryQueue.push([n.value,h]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),o=r[0],l=r[1];try{typeof o=="function"?o.call(void 0,l):o[0].call(o[1],l)}catch(x){Object(re.e)(x)}}}},v.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},v._noop=function(){},v}(),R=function(v){O(h,v);function h(c){var n=v.call(this,c)||this;return n._isPaused=0,n._eventQueue=new z.a,n._mergeFn=c&&c.merge,n}return h.prototype.pause=function(){this._isPaused++},h.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var c=this._eventQueue.toArray();this._eventQueue.clear(),v.prototype.fire.call(this,this._mergeFn(c))}else for(;!this._isPaused&&this._eventQueue.size!==0;)v.prototype.fire.call(this,this._eventQueue.shift())},h.prototype.fire=function(c){this._listeners&&(this._isPaused!==0?this._eventQueue.push(c):v.prototype.fire.call(this,c))},h}(L),d=function(){function v(){var h=this;this.hasListeners=!1,this.events=[],this.emitter=new L({onFirstListenerAdd:function(){return h.onFirstListenerAdd()},onLastListenerRemove:function(){return h.onLastListenerRemove()}})}return Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(h){var c=this,n={event:h,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var r=function(){c.hasListeners&&c.unhook(n);var o=c.events.indexOf(n);c.events.splice(o,1)};return Object(I.h)(Object(G.a)(r))},v.prototype.onFirstListenerAdd=function(){var h=this;this.hasListeners=!0,this.events.forEach(function(c){return h.hook(c)})},v.prototype.onLastListenerRemove=function(){var h=this;this.hasListeners=!1,this.events.forEach(function(c){return h.unhook(c)})},v.prototype.hook=function(h){var c=this;h.listener=h.event(function(n){return c.emitter.fire(n)})},v.prototype.unhook=function(h){h.listener&&h.listener.dispose(),h.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v}(),p=function(){function v(){this.buffers=[]}return v.prototype.wrapEvent=function(h){var c=this;return function(n,r,o){return h(function(l){var x=c.buffers[c.buffers.length-1];x?x.push(function(){return n.call(r,l)}):n.call(r,l)},void 0,o)}},v.prototype.bufferEvents=function(h){var c=[];this.buffers.push(c);var n=h();return this.buffers.pop(),c.forEach(function(r){return r()}),n},v}(),_=function(){function v(){var h=this;this.listening=!1,this.inputEvent=w.None,this.inputEventListener=I.a.None,this.emitter=new L({onFirstListenerDidAdd:function(){h.listening=!0,h.inputEventListener=h.inputEvent(h.emitter.fire,h.emitter)},onLastListenerRemove:function(){h.listening=!1,h.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(v.prototype,"input",{set:function(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},v}()},N0LK:function(tn,Ce,M){"use strict";M.d(Ce,"x",function(){return re}),M.d(Ce,"F",function(){return G}),M.d(Ce,"r",function(){return z}),M.d(Ce,"o",function(){return O}),M.d(Ce,"p",function(){return w}),M.d(Ce,"Q",function(){return W}),M.d(Ce,"K",function(){return L}),M.d(Ce,"k",function(){return R}),M.d(Ce,"N",function(){return d}),M.d(Ce,"m",function(){return p}),M.d(Ce,"l",function(){return _}),M.d(Ce,"I",function(){return v}),M.d(Ce,"H",function(){return h}),M.d(Ce,"q",function(){return c}),M.d(Ce,"t",function(){return n}),M.d(Ce,"D",function(){return r}),M.d(Ce,"e",function(){return o}),M.d(Ce,"f",function(){return l}),M.d(Ce,"B",function(){return x}),M.d(Ce,"C",function(){return E}),M.d(Ce,"n",function(){return P}),M.d(Ce,"O",function(){return m}),M.d(Ce,"c",function(){return g}),M.d(Ce,"d",function(){return s}),M.d(Ce,"z",function(){return u}),M.d(Ce,"A",function(){return D}),M.d(Ce,"u",function(){return S}),M.d(Ce,"E",function(){return N}),M.d(Ce,"G",function(){return j}),M.d(Ce,"i",function(){return H}),M.d(Ce,"g",function(){return B}),M.d(Ce,"v",function(){return ee}),M.d(Ce,"h",function(){return he}),M.d(Ce,"y",function(){return ye}),M.d(Ce,"w",function(){return Ye}),M.d(Ce,"a",function(){return Pe}),M.d(Ce,"P",function(){return je}),M.d(Ce,"L",function(){return Ze}),M.d(Ce,"J",function(){return Qe}),M.d(Ce,"j",function(){return Ae}),M.d(Ce,"M",function(){return me}),M.d(Ce,"s",function(){return ie}),M.d(Ce,"b",function(){return Oe});function re(pe){return!pe||typeof pe!="string"?!0:pe.trim().length===0}function G(pe,J,V){V===void 0&&(V="0");for(var X=""+pe,ue=[X],Ee=X.length;Ee=J.length?X:J[Ee]})}function O(pe){return pe.replace(/[<>&]/g,function(J){switch(J){case"<":return"<";case">":return">";case"&":return"&";default:return J}})}function w(pe){return pe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function W(pe,J){J===void 0&&(J=" ");var V=y(pe,J);return L(V,J)}function y(pe,J){if(!pe||!J)return pe;var V=J.length;if(V===0||pe.length===0)return pe;for(var X=0;pe.indexOf(J,X)===X;)X=X+V;return pe.substring(X)}function L(pe,J){if(!pe||!J)return pe;var V=J.length,X=pe.length;if(V===0||X===0)return pe;for(var ue=X,Ee=-1;!(Ee=pe.lastIndexOf(J,ue-1),Ee===-1||Ee+V!==ue);){if(Ee===0)return"";ue=Ee}return pe.substring(0,ue)}function R(pe){return pe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(pe,J){if(pe.length0?pe.indexOf(J,V)===V:V===0?pe===J:!1}function _(pe,J,V){if(V===void 0&&(V={}),!pe)throw new Error("Cannot create regex from empty string");J||(pe=w(pe)),V.wholeWord&&(/\B/.test(pe.charAt(0))||(pe="\\b"+pe),/\B/.test(pe.charAt(pe.length-1))||(pe=pe+"\\b"));var X="";return V.global&&(X+="g"),V.matchCase||(X+="i"),V.multiline&&(X+="m"),V.unicode&&(X+="u"),new RegExp(pe,X)}function v(pe){if(pe.source==="^"||pe.source==="^$"||pe.source==="$"||pe.source==="^\\s*$")return!1;var J=pe.exec("");return!!(J&&pe.lastIndex===0)}function h(pe){return(pe.global?"g":"")+(pe.ignoreCase?"i":"")+(pe.multiline?"m":"")+(pe.unicode?"u":"")}function c(pe){for(var J=0,V=pe.length;J=0;V--){var X=pe.charCodeAt(V);if(X!==32&&X!==9)return V}return-1}function o(pe,J){return peJ?1:0}function l(pe,J){for(var V=Math.min(pe.length,J.length),X=0;XJ.length?1:0}function x(pe){return pe>=97&&pe<=122}function E(pe){return pe>=65&&pe<=90}function b(pe){return x(pe)||E(pe)}function P(pe,J){return pe.length===J.length&&T(pe,J)}function T(pe,J,V){V===void 0&&(V=pe.length);for(var X=0;Xpe.length?!1:T(pe,J,V)}function g(pe,J){var V,X=Math.min(pe.length,J.length);for(V=0;V1){var X=pe.charCodeAt(J-2);if(u(X))return(X-55296<<10)+(V-56320)+65536}return V}function N(pe,J){var V=ve.getInstance(),X=J,ue=pe.length,Ee=S(pe,ue,J);J+=Ee>=65536?2:1;for(var We=V.getGraphemeBreakType(Ee);J=65536?2:1,We=Pt}return J-X}function j(pe,J){var V=ve.getInstance(),X=J,ue=A(pe,J);J-=ue>=65536?2:1;for(var Ee=V.getGraphemeBreakType(ue);J>0;){var We=A(pe,J),Ke=V.getGraphemeBreakType(We);if(Oe(Ke,Ee))break;J-=We>=65536?2:1,Ee=Ke}return X-J}var K=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function H(pe){return K.test(pe)}var U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function B(pe){return U.test(pe)}var q=/^[\t\n\r\x20-\x7E]*$/;function ee(pe){return q.test(pe)}function he(pe){for(var J=0,V=pe.length;J=11904&&pe<=55215||pe>=63744&&pe<=64255||pe>=65281&&pe<=65374}function Ye(pe){return pe>=127462&&pe<=127487||pe>=9728&&pe<=10175||pe>=127744&&pe<=128591||pe>=128640&&pe<=128764||pe>=128992&&pe<=129003||pe>=129280&&pe<=129535||pe>=129648&&pe<=129651||pe>=129656&&pe<=129666||pe>=129680&&pe<=129685}var Pe=String.fromCharCode(65279);function je(pe){return!!(pe&&pe.length>0&&pe.charCodeAt(0)===65279)}function Ze(pe){return btoa(encodeURIComponent(pe))}function Qe(pe,J){for(var V="",X=0;XV[3*ue+1])ue=2*ue+1;else return V[3*ue+2];return 0},pe._INSTANCE=null,pe}();function Ge(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NNe0:function(tn,Ce,M){tn.exports={flex_box_center:"flex_box_center___1rG9K",flex_space_between:"flex_space_between___s26wD",flex_box_vertical_center:"flex_box_vertical_center___1Ur8s",flex_box_center_end:"flex_box_center_end___2GQdX",flex_box_column:"flex_box_column___EoDtg",form:"form___1ZYPY",efficiency:"efficiency___2srAz",configWorkContainer:"configWorkContainer___3nRpn"}},NvD2:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return w});var re=M("Kwbf");function G(W,y){var L=new Set;return W.forEach(function(R){y.has(R)||L.add(R)}),L}function I(W){var y=W||{},L=y.disabled,R=y.disableCheckbox,d=y.checkable;return!!(L||R)||d===!1}function z(W,y,L,R){for(var d=new Set(W),p=new Set,_=0;_<=L;_+=1){var v=y.get(_)||new Set;v.forEach(function(r){var o=r.key,l=r.node,x=r.children,E=x===void 0?[]:x;d.has(o)&&!R(l)&&E.filter(function(b){return!R(b.node)}).forEach(function(b){d.add(b.key)})})}for(var h=new Set,c=L;c>=0;c-=1){var n=y.get(c)||new Set;n.forEach(function(r){var o=r.parent,l=r.node;if(R(l)||!r.parent||h.has(r.parent.key))return;if(R(r.parent.node)){h.add(o.key);return}var x=!0,E=!1;(o.children||[]).filter(function(b){return!R(b.node)}).forEach(function(b){var P=b.key,T=d.has(P);x&&!T&&(x=!1),!E&&(T||p.has(P))&&(E=!0)}),x&&d.add(o.key),E&&p.add(o.key),h.add(o.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(G(p,d))}}function O(W,y,L,R,d){for(var p=new Set(W),_=new Set(y),v=0;v<=R;v+=1){var h=L.get(v)||new Set;h.forEach(function(o){var l=o.key,x=o.node,E=o.children,b=E===void 0?[]:E;!p.has(l)&&!_.has(l)&&!d(x)&&b.filter(function(P){return!d(P.node)}).forEach(function(P){p.delete(P.key)})})}_=new Set;for(var c=new Set,n=R;n>=0;n-=1){var r=L.get(n)||new Set;r.forEach(function(o){var l=o.parent,x=o.node;if(d(x)||!o.parent||c.has(o.parent.key))return;if(d(o.parent.node)){c.add(l.key);return}var E=!0,b=!1;(l.children||[]).filter(function(P){return!d(P.node)}).forEach(function(P){var T=P.key,m=p.has(T);E&&!m&&(E=!1),!b&&(m||_.has(T))&&(b=!0)}),E||p.delete(l.key),b&&_.add(l.key),c.add(l.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(G(_,p))}}function w(W,y,L,R){var d=[],p;R?p=R:p=I;var _=new Set(W.filter(function(n){var r=!!L[n];return r||d.push(n),r})),v=new Map,h=0;Object.keys(L).forEach(function(n){var r=L[n],o=r.level,l=v.get(o);l||(l=new Set,v.set(o,l)),l.add(r),h=Math.max(h,o)}),Object(re.a)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(n){return"'".concat(n,"'")}).join(", ")));var c;return y===!0?c=z(_,v,h,p):c=O(_,y.halfCheckedKeys,v,h,p),c}},OLES:function(tn,Ce,M){"use strict";var re=M("U8pU"),G=M("VTBJ"),I=M("Ff2n"),z=M("q1tI"),O=M("uciX"),w=M("7ixt"),W=function(_){var v=_.overlay,h=_.prefixCls,c=_.id,n=_.overlayInnerStyle;return z.createElement("div",{className:"".concat(h,"-inner"),id:c,role:"tooltip",style:n},typeof v=="function"?v():v)},y=W,L=function(_,v){var h=_.overlayClassName,c=_.trigger,n=c===void 0?["hover"]:c,r=_.mouseEnterDelay,o=r===void 0?0:r,l=_.mouseLeaveDelay,x=l===void 0?.1:l,E=_.overlayStyle,b=_.prefixCls,P=b===void 0?"rc-tooltip":b,T=_.children,m=_.onVisibleChange,g=_.afterVisibleChange,s=_.transitionName,u=_.animation,D=_.placement,S=D===void 0?"right":D,A=_.align,N=A===void 0?{}:A,j=_.destroyTooltipOnHide,K=j===void 0?!1:j,H=_.defaultVisible,U=_.getTooltipContainer,B=_.overlayInnerStyle,q=Object(I.a)(_,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(z.useRef)(null);Object(z.useImperativeHandle)(v,function(){return ee.current});var he=Object(G.a)({},q);"visible"in _&&(he.popupVisible=_.visible);var ye=function(){var Qe=_.arrowContent,Ae=Qe===void 0?null:Qe,me=_.overlay,ie=_.id;return[z.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},Ae),z.createElement(y,{key:"content",prefixCls:P,id:ie,overlay:me,overlayInnerStyle:B})]},Ye=!1,Pe=!1;if(typeof K=="boolean")Ye=K;else if(K&&Object(re.a)(K)==="object"){var je=K.keepParent;Ye=je===!0,Pe=je===!1}return z.createElement(O.a,Object.assign({popupClassName:h,prefixCls:P,popup:ye,action:n,builtinPlacements:w.a,popupPlacement:S,ref:ee,popupAlign:N,getPopupContainer:U,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:s,popupAnimation:u,defaultPopupVisible:H,destroyPopupOnHide:Ye,autoDestroy:Pe,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:o},he),T)},R=Object(z.forwardRef)(L),d=Ce.a=R},OZM5:function(tn,Ce,M){"use strict";M.d(Ce,"b",function(){return R}),M.d(Ce,"a",function(){return d}),M.d(Ce,"k",function(){return p}),M.d(Ce,"h",function(){return _}),M.d(Ce,"i",function(){return v}),M.d(Ce,"g",function(){return h}),M.d(Ce,"c",function(){return c}),M.d(Ce,"d",function(){return n}),M.d(Ce,"j",function(){return l}),M.d(Ce,"e",function(){return x}),M.d(Ce,"f",function(){return E});var re=M("KQm4"),G=M("U8pU"),I=M("Ff2n"),z=M("q1tI"),O=M.n(z),w=M("Kwbf"),W=M("WaYH"),y=.25,L=2;function R(b,P){var T=b.slice(),m=T.indexOf(P);return m>=0&&T.splice(m,1),T}function d(b,P){var T=b.slice();return T.indexOf(P)===-1&&T.push(P),T}function p(b){return b.split("-")}function _(b,P){return"".concat(b,"-").concat(P)}function v(b){return b&&b.type&&b.type.isTreeNode}function h(b,P){var T=[b],m=P[b];function g(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(u){var D=u.key,S=u.children;T.push(D),g(S)})}return g(m.children),T}function c(b,P){var T=b.clientY,m=P.selectHandle.getBoundingClientRect(),g=m.top,s=m.bottom,u=m.height,D=Math.max(u*y,L);return T<=g+D?-1:T>=s-D?1:0}function n(b,P){if(!b)return;var T=P.multiple;return T?b.slice():b.length?[b[0]]:b}var r=function(P){return P};function o(b,P){if(!b)return[];var T=P||{},m=T.processProps,g=m===void 0?r:m,s=Array.isArray(b)?b:[b];return s.map(function(u){var D=u.children,S=Object(I.a)(u,["children"]),A=o(D,P);return O.a.createElement(W.a,Object.assign({},g(S)),A)})}function l(b){if(!b)return null;var P;if(Array.isArray(b))P={checkedKeys:b,halfCheckedKeys:void 0};else if(Object(G.a)(b)==="object")P={checkedKeys:b.checked||void 0,halfCheckedKeys:b.halfChecked||void 0};else return Object(w.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function x(b,P){var T=new Set;function m(g){if(T.has(g))return;var s=P[g];if(!s)return;T.add(g);var u=s.parent,D=s.node;if(D.disabled)return;u&&m(u.key)}return(b||[]).forEach(function(g){m(g)}),Object(re.a)(T)}function E(b){var P={};return Object.keys(b).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(P[T]=b[T])}),P}},Ot1p:function(tn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("rAM+"),z=M("miYZ"),O=M("tsqr"),w=M("9og8"),W=M("tJVT"),y=M("jrin"),L=M("WmNS"),R=M.n(L),d=M("q1tI"),p=M.n(d),_=M("VrN/"),v=M.n(_),h=M("bdgK"),c=M("p77/"),n=M("Bd2K"),r=M("ELLl"),o=M("19Vz"),l=M("lZu9"),x=M("+NIl"),E=M("kSUc"),b=M("9Bee"),P=function(Je){var jt=Je.value,nn=jt===void 0?"":jt,pn=Je.className,an=Je.showTextOnly,Jt=Je.showLines,wt=Je.style,St=wt===void 0?{}:wt,lt=Object(d.useMemo)(function(){return""},[nn]);return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{dangerouslySetInnerHTML:{__html:lt}}))},T=M("0Owb"),m=M("dejd"),g=M("C+DQ"),s=M("1vsH"),u=M("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function S(Je){var jt=Je.onActionCallback,nn=Je.title,pn=Je.icon,an=Je.actionName,Jt=Je.className,wt=Jt===void 0?"":Jt,St=Je.children;function lt(){jt(an)}return p.a.createElement("a",{title:nn,className:wt,onClick:lt},p.a.createElement("i",{className:"md-iconfont ".concat(pn)}),St)}var A=function(Je){var jt=Je.watch,nn=Je.showNullButton,pn=Je.onActionCallback,an=Je.fullScreen,Jt=Je.insertTemp,wt=Je.hidetoolBar,St=Je.uuid,lt=Je.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(s.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(s.D)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(u.a.PROXY_SERVER)));var ge=[].concat(D,[{title:"".concat(jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(jt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return p.a.createElement("ul",{className:"markdown-toolbar-container"},!wt&&ge.map(function(Le,yt){return p.a.createElement("li",{key:yt},Le.actionName?p.a.createElement(S,Object(T.a)({},Le,{onActionCallback:pn})):p.a.createElement("span",{className:"v-line"}))}),nn?p.a.createElement("li",null,p.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:pn},p.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Jt&&p.a.createElement("li",null,p.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Jt),onActionCallback:pn},p.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),p.a.createElement("li",{className:"btn-full-screen"},p.a.createElement(S,{icon:"".concat(an?"icon-shrink":"icon-enlarge"),title:an?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:pn})))},N=M("M8RZ"),j=M("+L6B"),K=M("2/Rp"),H=M("y8nQ"),U=M("Vl3Y"),B=M("5NDa"),q=M("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(Je){var jt=Je.callback,nn=Je.onCancel;function pn(an){jt(an)}return p.a.createElement(U.a,Object(T.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pn}),p.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},p.a.createElement(q.a,null)),p.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},p.a.createElement(q.a,null)),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(K.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},ye=M("7ahc"),Ye=M("k1fw"),Pe=M("HmJG"),je=M("BjJ7"),Ze=U.a.useForm,Qe={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}},me=function(Je){var jt=Je.callback,nn=Je.onCancel,pn=Ze(),an=Object(W.a)(pn,1),Jt=an[0],wt=Object(d.useRef)();function St(Le){jt(Object(Ye.a)(Object(Ye.a)({},Le),{},{name:wt.current}))}function lt(Le,yt){Jt.setFieldsValue({src:"/api/attachments/".concat(Le.id,"?type=").concat(Le.content_type),type:yt.type})}function ge(Le){var yt=Le.target.files[0];wt.current=yt.name,Oe(yt,lt)}return p.a.createElement(U.a,Object(T.a)({form:Jt},Ae,{className:"upload-image-panel",onFinish:St}),p.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},p.a.createElement("div",{className:"flex-container"},p.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},p.a.createElement(q.a,{style:Qe})),p.a.createElement(ie,{onFileChange:ge}))),p.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},p.a.createElement(q.a,{style:{width:264}})),p.a.createElement(U.a.Item,{style:{textAlign:"right"}},p.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(K.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))};function ie(Je){var jt=Je.onFileChange;return p.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",p.a.createElement("input",{type:"file",onChange:jt}))}function Oe(Je,jt){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");var nn=new FormData;nn.append("editormd-image-file",Je),nn.append("file_param_name","editormd-image-file"),nn.append("byxhr","true");var pn=new window.XMLHttpRequest;pn.withCredentials=!0,pn.addEventListener("load",function(an){jt(JSON.parse(an.target.responseText),Je)},!1),pn.addEventListener("error",function(an){console.error(an)},!1),pn.open("POST","".concat(je.a,"/api/attachments.json")),pn.send(nn)}var ve=M("giR+"),Ge=M("fyUT"),pe=M("7Kak"),J=M("9yH6"),V=J.a.Group,X={margin:"0 8px"},ue=function(Je){var jt=Je.callback,nn=Je.onCancel;function pn(an){jt(an)}return p.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pn},p.a.createElement("div",{className:"flex-container"},p.a.createElement("span",{style:X},"\u5355\u5143\u683C\u6570\uFF1A"),p.a.createElement("span",{style:X},"\u884C\u6570"),p.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},p.a.createElement(Ge.a,null)),p.a.createElement("span",{style:X},"\u5217\u6570"),p.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},p.a.createElement(Ge.a,null))),p.a.createElement("div",{className:"flex-container",style:{marginTop:12}},p.a.createElement("span",{style:X},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),p.a.createElement(U.a.Item,{name:"align"},p.a.createElement(V,null,p.a.createElement(J.a,{value:"default"},p.a.createElement("i",{className:"fa fa-align-justify"})),p.a.createElement(J.a,{value:"left"},p.a.createElement("i",{className:"fa fa-align-left"})),p.a.createElement(J.a,{value:"center"},p.a.createElement("i",{className:"fa fa-align-center"})),p.a.createElement(J.a,{value:"right"},p.a.createElement("i",{className:"fa fa-align-right"}))))),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(K.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},Ee=M("ErOA"),We=M("7Cbv"),Ke="link",Pt="upload-image",Kt="code-block",Bt="add-table",kt="------------",Qt={default:kt,left:":".concat(kt),center:":".concat(kt,":"),right:"".concat(kt,":")},fn=M("9VGf"),qe,Ue;function vt(){}var Mt=0,st=1e4,Ct="\u2581",Ne=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Se(Je){return/^\d+$/.test(Je)?"".concat(Je,"px"):Je}var Te=navigator.platform.toUpperCase().indexOf("MAC")>=0,le=Te?"Cmd":"Ctrl",fe=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],_e=(qe={},Object(y.a)(qe,le+"-B","bold"),Object(y.a)(qe,le+"-I","italic"),qe),Me=(Ue={},Object(y.a)(Ue,Ke,"\u6DFB\u52A0\u94FE\u63A5"),Object(y.a)(Ue,Kt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(y.a)(Ue,Lt,"\u6DFB\u52A0\u6587\u4EF6"),Object(y.a)(Ue,Bt,"\u6DFB\u52A0\u8868\u683C"),Ue),rt=Ce.a=function(Je){var jt=Je.defaultValue,rn=jt===void 0?"":jt,pn=Je.onChange,on=Je.width,Jt=on===void 0?"100%":on,wt=Je.height,St=wt===void 0?400:wt,lt=Je.miniToolbar,ge=lt===void 0?!1:lt,Le=Je.isFocus,yt=Le===void 0?!1:Le,ft=Je.watch,en=Je.insertTemp,Xt=Je.mode,at=Xt===void 0?"markdown":Xt,xt=Je.id,Rt=xt===void 0?"markdown-editor-id":xt,cn=Je.showResizeBar,xn=cn===void 0?!1:cn,ar=Je.noStorage,fr=ar===void 0?!1:ar,tr=Je.showNullButton,Sn=tr===void 0?!1:tr,Vr=Je.hidetoolBar,oa=Vr===void 0?!1:Vr,Br=Je.fullScreen,cr=Br===void 0?!1:Br,Kr=Je.onBlur,na=Je.onCMBeforeChange,da=Je.onFullScreen,Wt=Je.className,Tn=Wt===void 0?"":Wt,lr=Je.disablePaste,Pr=lr===void 0?!1:lr,Er=Je.placeholder,_r=Er===void 0?"":Er,Q=Je.values,C=Q===void 0?"":Q,k=Object(d.useState)(null),$=Object(W.a)(k,2),ne=$[0],Y=$[1],we=Object(d.useState)(rn),mt=Object(W.a)(we,2),It=mt[0],un=mt[1],Ot=Object(d.useState)(ft),bn=Object(W.a)(Ot,2),En=bn[0],On=bn[1],pr=Object(d.useState)(cr),gr=Object(W.a)(pr,2),Un=gr[0],jn=gr[1],Fn=Object(d.useState)(""),Jn=Object(W.a)(Fn,2),Tr=Jn[0],Zn=Jn[1],yr=Object(d.useState)(0),Ht=Object(W.a)(yr,2),Hn=Ht[0],Hr=Ht[1],Lr=Object(d.useState)(St),or=Object(W.a)(Lr,2),Cr=or[0],te=or[1],De=Object(d.useState)(!1),Xe=Object(W.a)(De,2),ze=Xe[0],ut=Xe[1],et=Object(d.useRef)(Object(We.a)()),bt=Object(d.useRef)(!1),ht=Object(d.useRef)(),Tt=Object(d.useRef)(),it=Object(d.useRef)(),Yt=Object(d.useRef)(),ct=Object(d.useRef)(),ye=function(){var mn=Object(w.a)(R.a.mark(function zt(){var Gt,At;return R.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return vn.next=2,Object(Ee.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:et.current}});case 2:At=vn.sent,At!=null&&(Gt=At.attachments)!==null&&Gt!==void 0&&Gt.length&&(console.log("cm:",ne,Tt),At.attachments.map(function(Dn){Dn.content_type.indexOf("image")>-1?ne.replaceSelection("![,](/api/attachments/".concat(Dn.id,"?type=").concat(Dn.content_type,")")):Dn.content_type.indexOf("video")>-1?ne.replaceSelection('')):Dn.content_type.indexOf("pdf")>-1?ne.replaceSelection('
    ').concat(Dn.name,"")):ne.replaceSelection("[".concat(Dn.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(Dn.id,"?type=").concat(Dn.content_type,")"))}));case 4:case"end":return vn.stop()}},zt)}));return function(){return mn.apply(this,arguments)}}();Object(d.useEffect)(function(){un(C),ne==null||ne.setValue(C)},[C]),Object(d.useEffect)(function(){da==null||da(Un)},[Un]),Object(d.useEffect)(function(){if(Tt.current){var mn=v.a.fromTextArea(Tt.current,{mode:at,lineNumbers:!ge,lineWrapping:!0,value:rn,autoCloseTags:!0,autoCloseBrackets:!0});yt&&mn.focus();function zt(Gt,At){if(Pr){At.preventDefault();return}var Ft=At.clipboardData;if(Ft){var vn=Ft.types.toString(),Dn=Ft.items;if(vn==="Files"||Ft.types.indexOf("Files")>-1){if(At.preventDefault(),at=="stex")return;try{var ur,nr=Dn[1];((ur=Dn[0])===null||ur===void 0?void 0:ur.kind)==="file"&&(nr=Dn[0]);var qt=nr.getAsFile(),Sr=qt.name.split(".").pop();Oe(qt,function(zn){if(zn.id){var zr,Gr,Rr;(qt==null||((zr=qt.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?mn.replaceSelection("![,](/api/attachments/".concat(zn.id,"?type=").concat(zn.content_type,")")):(qt==null||((Gr=qt.type)===null||Gr===void 0)?void 0:Gr.indexOf("video"))>-1?mn.replaceSelection('')):(qt==null||((Rr=qt.type)===null||Rr===void 0)?void 0:Rr.indexOf("pdf"))>-1?mn.replaceSelection('').concat(qt.name,"")):fe.includes(Sr)?mn.replaceSelection('').concat(qt.name,"")):mn.replaceSelection("[".concat(qt.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(zn.id,"?type=").concat(zn.content_type,")"))}else(zn==null?void 0:zn.status)===401&&(document.location.href="/user/login")})}catch(zn){O.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return mn.on("paste",zt),mn.on("dragleave",function(Gt,At){it.current.classList.remove("mouse-hover-md")}),mn.on("dragover",function(Gt,At){it.current.classList.add("mouse-hover-md")}),mn.on("drop",function(Gt,At){it.current.classList.add("mouse-hover-md");var Ft;if(Ft=At.dataTransfer.files,Ft.length>0){At.preventDefault(),At.stopPropagation();for(var vn=function(nr){var qt=Ft[nr],Sr=qt.name.split(".").pop();Oe(qt,function(zn){if(zn.id){var zr,Gr,Rr;(qt==null||((zr=qt.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?mn.replaceSelection("![,](/api/attachments/".concat(zn.id,"?type=").concat(zn.content_type,")")):(qt==null||((Gr=qt.type)===null||Gr===void 0)?void 0:Gr.indexOf("video"))>-1?mn.replaceSelection('')):(qt==null||((Rr=qt.type)===null||Rr===void 0)?void 0:Rr.indexOf("pdf"))>-1?mn.replaceSelection('').concat(qt.name,"")):fe.includes(Sr)?mn.replaceSelection('').concat(qt.name,"")):mn.replaceSelection("[".concat(qt.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(zn.id,"?type=").concat(zn.content_type,")"))}else(zn==null?void 0:zn.status)===401&&(document.location.href="/user/login")})},Dn=0;Dn0||Dn.target.offsetWidth>0)&&(Et(),ne.setSize("100%","100%"),ne.refresh())}}catch(ur){Ft.e(ur)}finally{Ft.f()}});return Gt.observe(Tt.current.parentElement),Gt}if(ne){var zt=mn();return function(){zt.unobserve(Tt.current.parentElement)}}},[ne,Et]),Object(d.useEffect)(function(){if(ne){for(var mn=[],zt=function(){var Dn=At[Gt];Ft=Object(W.a)(Dn,2);var ur=Ft[0],nr=Ft[1],qt=Object(y.a)({},ur,function(){nt(nr)});mn.push(qt),ne.addKeyMap(qt)},Gt=0,At=Object.entries(_e);Gt0){var mn=new Date().getTime(),zt=window.sessionStorage.getItem(Rt);mn>=Hn+st&&(!zt||zt!==It)&&(window.sessionStorage.setItem(Rt,It),ut(!0))}},st),Object(d.useEffect)(function(){On(ft)},[ne,ft]),Object(d.useEffect)(function(){ne&&(yt&&ne.focus())},[ne,yt]),Object(d.useEffect)(function(){if(En&&ne){var mn=ne.getScrollerElement();function zt(Gt){var At=Gt.target;if(ct.current){var Ft=At.scrollTop/At.scrollHeight;ct.current.scrollTop=ct.current.scrollHeight*Ft}}return mn.addEventListener("scroll",zt),function(){mn.removeEventListener("scroll",zt)}}},[ne,En]),Object(d.useEffect)(function(){if(ne&&na){function mn(zt,Gt){na(zt,Gt)}return ne.on("beforeChange",mn),function(){ne.off("beforeChange",mn)}}},[ne,na]),Object(d.useEffect)(function(){if(ne&&Kr){function mn(){Kr(ne.getValue())}return ne.on("blur",mn),function(){ne.off("blur",mn)}}},[ne,Kr]),Object(d.useEffect)(function(){if(ne){function mn(zt){var Gt=zt.getValue();un(Gt),Hr(new Date().getTime()),zt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pn&&pn(Gt)}return ne.on("change",mn),function(){ne.off("change",mn)}}},[ne,pn]),Object(d.useEffect)(function(){ne&&(rn==null?(ne.setValue(""),un("")):rn!==ne.getValue()&&(ne.setValue(rn),un(rn),ne.setCursor(ne.lineCount(),0)))},[ne,rn]);var nt=Object(d.useCallback)(function(mn){var zt=ne.getCursor(),Gt=ne.getSelection(),At=Gt.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Se(Je){return/^\d+$/.test(Je)?"".concat(Je,"px"):Je}var Te=navigator.platform.toUpperCase().indexOf("MAC")>=0,le=Te?"Cmd":"Ctrl",fe=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],_e=(qe={},Object(y.a)(qe,le+"-B","bold"),Object(y.a)(qe,le+"-I","italic"),qe),Me=(Ue={},Object(y.a)(Ue,Ke,"\u6DFB\u52A0\u94FE\u63A5"),Object(y.a)(Ue,Kt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(y.a)(Ue,Pt,"\u6DFB\u52A0\u6587\u4EF6"),Object(y.a)(Ue,Bt,"\u6DFB\u52A0\u8868\u683C"),Ue),at=Ce.a=function(Je){var jt=Je.defaultValue,nn=jt===void 0?"":jt,pn=Je.onChange,an=Je.width,Jt=an===void 0?"100%":an,wt=Je.height,St=wt===void 0?400:wt,lt=Je.miniToolbar,ge=lt===void 0?!1:lt,Le=Je.isFocus,yt=Le===void 0?!1:Le,ft=Je.watch,qt=Je.insertTemp,Xt=Je.mode,it=Xt===void 0?"markdown":Xt,xt=Je.id,Rt=xt===void 0?"markdown-editor-id":xt,un=Je.showResizeBar,_n=un===void 0?!1:un,ar=Je.noStorage,dr=ar===void 0?!1:ar,er=Je.showNullButton,wn=er===void 0?!1:er,Vr=Je.hidetoolBar,ca=Vr===void 0?!1:Vr,Ur=Je.fullScreen,ur=Ur===void 0?!1:Ur,Kr=Je.onBlur,oa=Je.onCMBeforeChange,ma=Je.onFullScreen,Wt=Je.className,Sn=Wt===void 0?"":Wt,lr=Je.disablePaste,Rr=lr===void 0?!1:lr,Er=Je.placeholder,_r=Er===void 0?"":Er,Q=Je.values,C=Q===void 0?"":Q,k=Object(d.useState)(null),$=Object(W.a)(k,2),ne=$[0],Y=$[1],we=Object(d.useState)(nn),mt=Object(W.a)(we,2),It=mt[0],ln=mt[1],Ot=Object(d.useState)(ft),yn=Object(W.a)(Ot,2),bn=yn[0],Tn=yn[1],pr=Object(d.useState)(ur),gr=Object(W.a)(pr,2),Un=gr[0],Nn=gr[1],Fn=Object(d.useState)(""),$n=Object(W.a)(Fn,2),Sr=$n[0],Qn=$n[1],yr=Object(d.useState)(0),Ht=Object(W.a)(yr,2),Hn=Ht[0],Hr=Ht[1],Ar=Object(d.useState)(St),or=Object(W.a)(Ar,2),Cr=or[0],te=or[1],De=Object(d.useState)(!1),Xe=Object(W.a)(De,2),ze=Xe[0],ut=Xe[1],et=Object(d.useRef)(Object(We.a)()),bt=Object(d.useRef)(!1),ht=Object(d.useRef)(),Tt=Object(d.useRef)(),nt=Object(d.useRef)(),Yt=Object(d.useRef)(),ct=Object(d.useRef)(),be=function(){var mn=Object(w.a)(R.a.mark(function zt(){var Gt,Lt;return R.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return vn.next=2,Object(Ee.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:et.current}});case 2:Lt=vn.sent,Lt!=null&&(Gt=Lt.attachments)!==null&&Gt!==void 0&&Gt.length&&(console.log("cm:",ne,Tt),Lt.attachments.map(function(On){On.content_type.indexOf("image")>-1?ne.replaceSelection("![,](/api/attachments/".concat(On.id,"?type=").concat(On.content_type,")")):On.content_type.indexOf("video")>-1?ne.replaceSelection('')):On.content_type.indexOf("pdf")>-1?ne.replaceSelection('').concat(On.name,"")):ne.replaceSelection("[".concat(On.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(On.id,"?type=").concat(On.content_type,")"))}));case 4:case"end":return vn.stop()}},zt)}));return function(){return mn.apply(this,arguments)}}();Object(d.useEffect)(function(){ln(C),ne==null||ne.setValue(C)},[C]),Object(d.useEffect)(function(){ma==null||ma(Un)},[Un]),Object(d.useEffect)(function(){if(Tt.current){var mn=v.a.fromTextArea(Tt.current,{mode:it,lineNumbers:!ge,lineWrapping:!0,value:nn,autoCloseTags:!0,autoCloseBrackets:!0});yt&&mn.focus();function zt(Gt,Lt){if(Rr){Lt.preventDefault();return}var Ft=Lt.clipboardData;if(Ft){var vn=Ft.types.toString(),On=Ft.items;if(vn==="Files"||Ft.types.indexOf("Files")>-1){if(Lt.preventDefault(),it=="stex")return;try{var cr,nr=On[1];((cr=On[0])===null||cr===void 0?void 0:cr.kind)==="file"&&(nr=On[0]);var Zt=nr.getAsFile(),wr=Zt.name.split(".").pop();Oe(Zt,function(zn){if(zn.id){var zr,Gr,Dr;(Zt==null||((zr=Zt.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?mn.replaceSelection("![,](/api/attachments/".concat(zn.id,"?type=").concat(zn.content_type,")")):(Zt==null||((Gr=Zt.type)===null||Gr===void 0)?void 0:Gr.indexOf("video"))>-1?mn.replaceSelection('')):(Zt==null||((Dr=Zt.type)===null||Dr===void 0)?void 0:Dr.indexOf("pdf"))>-1?mn.replaceSelection('').concat(Zt.name,"")):fe.includes(wr)?mn.replaceSelection('').concat(Zt.name,"")):mn.replaceSelection("[".concat(Zt.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(zn.id,"?type=").concat(zn.content_type,")"))}else(zn==null?void 0:zn.status)===401&&(document.location.href="/user/login")})}catch(zn){O.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return mn.on("paste",zt),mn.on("dragleave",function(Gt,Lt){nt.current.classList.remove("mouse-hover-md")}),mn.on("dragover",function(Gt,Lt){nt.current.classList.add("mouse-hover-md")}),mn.on("drop",function(Gt,Lt){nt.current.classList.add("mouse-hover-md");var Ft;if(Ft=Lt.dataTransfer.files,Ft.length>0){Lt.preventDefault(),Lt.stopPropagation();for(var vn=function(nr){var Zt=Ft[nr],wr=Zt.name.split(".").pop();Oe(Zt,function(zn){if(zn.id){var zr,Gr,Dr;(Zt==null||((zr=Zt.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?mn.replaceSelection("![,](/api/attachments/".concat(zn.id,"?type=").concat(zn.content_type,")")):(Zt==null||((Gr=Zt.type)===null||Gr===void 0)?void 0:Gr.indexOf("video"))>-1?mn.replaceSelection('')):(Zt==null||((Dr=Zt.type)===null||Dr===void 0)?void 0:Dr.indexOf("pdf"))>-1?mn.replaceSelection('').concat(Zt.name,"")):fe.includes(wr)?mn.replaceSelection('').concat(Zt.name,"")):mn.replaceSelection("[".concat(Zt.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(zn.id,"?type=").concat(zn.content_type,")"))}else(zn==null?void 0:zn.status)===401&&(document.location.href="/user/login")})},On=0;On0||On.target.offsetWidth>0)&&(Et(),ne.setSize("100%","100%"),ne.refresh())}}catch(cr){Ft.e(cr)}finally{Ft.f()}});return Gt.observe(Tt.current.parentElement),Gt}if(ne){var zt=mn();return function(){zt.unobserve(Tt.current.parentElement)}}},[ne,Et]),Object(d.useEffect)(function(){if(ne){for(var mn=[],zt=function(){var On=Lt[Gt];Ft=Object(W.a)(On,2);var cr=Ft[0],nr=Ft[1],Zt=Object(y.a)({},cr,function(){rt(nr)});mn.push(Zt),ne.addKeyMap(Zt)},Gt=0,Lt=Object.entries(_e);Gt0){var mn=new Date().getTime(),zt=window.sessionStorage.getItem(Rt);mn>=Hn+st&&(!zt||zt!==It)&&(window.sessionStorage.setItem(Rt,It),ut(!0))}},st),Object(d.useEffect)(function(){Tn(ft)},[ne,ft]),Object(d.useEffect)(function(){ne&&(yt&&ne.focus())},[ne,yt]),Object(d.useEffect)(function(){if(bn&&ne){var mn=ne.getScrollerElement();function zt(Gt){var Lt=Gt.target;if(ct.current){var Ft=Lt.scrollTop/Lt.scrollHeight;ct.current.scrollTop=ct.current.scrollHeight*Ft}}return mn.addEventListener("scroll",zt),function(){mn.removeEventListener("scroll",zt)}}},[ne,bn]),Object(d.useEffect)(function(){if(ne&&oa){function mn(zt,Gt){oa(zt,Gt)}return ne.on("beforeChange",mn),function(){ne.off("beforeChange",mn)}}},[ne,oa]),Object(d.useEffect)(function(){if(ne&&Kr){function mn(){Kr(ne.getValue())}return ne.on("blur",mn),function(){ne.off("blur",mn)}}},[ne,Kr]),Object(d.useEffect)(function(){if(ne){function mn(zt){var Gt=zt.getValue();ln(Gt),Hr(new Date().getTime()),zt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pn&&pn(Gt)}return ne.on("change",mn),function(){ne.off("change",mn)}}},[ne,pn]),Object(d.useEffect)(function(){ne&&(nn==null?(ne.setValue(""),ln("")):nn!==ne.getValue()&&(ne.setValue(nn),ln(nn),ne.setCursor(ne.lineCount(),0)))},[ne,nn]);var rt=Object(d.useCallback)(function(mn){var zt=ne.getCursor(),Gt=ne.getSelection(),Lt=Gt.split(` `);switch(mn){case"bold":return ne.replaceSelection("**"+Gt+"**"),Gt===""&&ne.setCursor(zt.line,zt.ch+2),ne.focus();case"italic":return ne.replaceSelection("*"+Gt+"*"),Gt===""&&ne.setCursor(zt.line,zt.ch+1),ne.focus();case"code":return ne.replaceSelection("`"+Gt+"`"),Gt===""&&ne.setCursor(zt.line,zt.ch+1),ne.focus();case"inline-latex":return ne.replaceSelection("`$$"+Gt+"$$`"),Gt===""&&ne.setCursor(zt.line,zt.ch+3),ne.focus();case"latex":return ne.replaceSelection("```latex\n"+Gt+"\n```"),ne.setCursor(zt.line+1,Gt.length+1),ne.focus();case"line-break":return ne.replaceSelection(`
    -`),ne.focus();case"list-ul":return Gt===""?ne.replaceSelection("- "+Gt):ne.replaceSelection(At.map(function(Ft){return Ft===""?"":"- ".concat(Ft)}).join(` -`)),ne.focus();case"list-ol":return Gt===""?ne.replaceSelection("1. "+Gt):ne.replaceSelection(At.map(function(Ft,vn){return Ft===""?"":"".concat(vn+1,". ").concat(Ft)}).join(` -`)),ne.focus();case"add-null-ch":return Gt===""&&ne.setCursor(zt.line,zt.ch+1),ne.replaceSelection(Ct),ne.focus();case"inster-template-1":return Gt===""&&ne.setCursor(zt.line,zt.ch),ne.replaceSelection(Ne),ne.focus();case"eraser":return ne.setValue(""),ne.focus();case"trigger-watch":return On(!En),ne.focus();case"trigger-full-screen":return jn(!Un),ne.focus();case Ke:Zn(Ke);return;case Kt:Zn(Kt);return;case Lt:Zn(Lt);return;case Bt:Zn(Bt);return;default:throw new Error}},[ne,En,Un]),Nt=Object(d.useCallback)(function(mn){Zn("");switch(Tr){case Ke:var zt=mn.title,Gt=mn.link;return ne.replaceSelection("[".concat(zt,"](").concat(Gt,")")),ne.focus();case Kt:var At=mn.language,Ft=mn.content;return ne.replaceSelection(["```"+At,Ft,"```"].join(` -`)),ne.focus();case Lt:var vn=mn.src,Dn=mn.alt,ur=mn.name;return vn.indexOf("type=image")>-1?ne.replaceSelection("![ ".concat(Dn||""," ]( ").concat(vn,' "').concat(Dn||"",'" )')):vn.indexOf("type=application/pdf")>-1?ne.replaceSelection('').concat(ur,"")):ne.replaceSelection('').concat(ur,"")),ne.focus();case Bt:for(var nr=mn.row,qt=mn.col,Sr=mn.align,zn=` -`,zr=0;zr-1?ne.replaceSelection("![ ".concat(On||""," ]( ").concat(vn,' "').concat(On||"",'" )')):vn.indexOf("type=application/pdf")>-1?ne.replaceSelection('').concat(cr,"")):ne.replaceSelection('').concat(cr,"")),ne.focus();case Bt:for(var nr=mn.row,Zt=mn.col,wr=mn.align,zn=` +`,zr=0;zr300&&(ur=300);var nr=St+ur+"px";te(nr)}}return mn.addEventListener("mousedown",At),document.addEventListener("mousemove",vn),document.addEventListener("mouseup",Ft),function(){mn.removeEventListener("mousedown",At),document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",Ft)}}},[ne,Yt]),Object(d.useEffect)(function(){te(St)},[St]);var gn=Se(Jt),In=Se(Cr),sn={width:gn,height:In},Ut=Object(d.useMemo)(function(){if(Hn){var mn=new Date(Hn),zt=mn.getHours(),Gt=mn.getMinutes(),At=mn.getSeconds();return zt=zt<10?"0"+zt:zt,Gt=Gt<10?"0"+Gt:Gt,At=At<10?"0"+At:At,"".concat(zt,":").concat(Gt,":").concat(At)}return 0},[Hn]);function an(){window.sessionStorage.removeItem(Rt),ut(!1),Hr(0)}function Nn(){ut(!1),Hr(0),ne.setValue(window.sessionStorage.getItem(Rt))}function dn(mn,zt){var Gt=ne.getValue();Gt=Gt.replace(mn,zt),un(Gt),ne==null||ne.setValue(Gt)}return p.a.createElement(d.Fragment,null,p.a.createElement("div",{className:"markdown-editor-wrapper",ref:it},p.a.createElement("div",{className:"markdown-editor-container ".concat(Tn," ").concat(En?"on-preview":""," ").concat(ge?"mini":""," ").concat(Un?"full-screen":""),style:sn},p.a.createElement(A,{insertTemp:en,watch:En,fullScreen:Un,showNullButton:Sn,onActionCallback:nt,hidetoolBar:oa,uuid:et.current,setOpenPhones:function(){bt.current=!0}}),p.a.createElement("div",{className:"markdown-editor-body"},p.a.createElement("div",{className:"codemirror-container"},p.a.createElement("textarea",{ref:Tt,placeholder:_r})),En?p.a.createElement("div",{ref:ct,className:"preview-container"},at==="stex"&&p.a.createElement(P,{value:It}),at!=="stex"&&p.a.createElement(b.a,{edit:!0,value:It,replaces:dn})):null))),xn?p.a.createElement("a",{ref:Yt,className:"editor-resize"}):null,p.a.createElement(N.a,null,Me[Tr]?p.a.createElement(G.a,{centered:!0,title:Me[Tr],visible:!0,onCancel:dt,footer:null},Dt):null))}},QDVR:function(nn,Ce,M){"use strict";M.d(Ce,"e",function(){return G}),M.d(Ce,"d",function(){return I}),M.d(Ce,"c",function(){return W}),M.d(Ce,"b",function(){return y}),M.d(Ce,"a",function(){return R});var re=function(){var d=function(p,_){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var c in h)h.hasOwnProperty(c)&&(v[c]=h[c])},d(p,_)};return function(p,_){d(p,_);function v(){this.constructor=p}p.prototype=_===null?Object.create(_):(v.prototype=_.prototype,new v)}}();function G(d){var p=[];return d.forEach(function(_){return p.push(_)}),p}function I(d){var p=[];return d.forEach(function(_,v){return p.push(v)}),p}var z=function(){function d(){this._value="",this._pos=0}return d.prototype.reset=function(p){return this._value=p,this._pos=0,this},d.prototype.next=function(){return this._pos+=1,this},d.prototype.hasNext=function(){return this._pos0)h.left||(h.left=new w,h.left.segment=v.value()),h=h.left;else if(c<0)h.right||(h.right=new w,h.right.segment=v.value()),h=h.right;else if(v.hasNext())v.next(),h.mid||(h.mid=new w,h.mid.segment=v.value()),h=h.mid;else break}var n=h.value;return h.value=_,h.key=p,n},d.prototype.get=function(p){for(var _=this._iter.reset(p),v=this._root;v;){var h=_.cmp(v.segment);if(h>0)v=v.left;else if(h<0)v=v.right;else if(_.hasNext())_.next(),v=v.mid;else break}return v?v.value:void 0},d.prototype.findSubstr=function(p){for(var _=this._iter.reset(p),v=this._root,h=void 0;v;){var c=_.cmp(v.segment);if(c>0)v=v.left;else if(c<0)v=v.right;else if(_.hasNext())_.next(),h=v.value||h,v=v.mid;else break}return v&&v.value||h},d.prototype.forEach=function(p){this._forEach(this._root,p)},d.prototype._forEach=function(p,_){p&&(this._forEach(p.left,_),p.value&&_(p.value,p.key),this._forEach(p.mid,_),this._forEach(p.right,_))},d}(),y=function(){function d(){this.map=new Map,this.ignoreCase=!1}return d.prototype.set=function(p,_){this.map.set(this.toKey(p),_)},d.prototype.get=function(p){return this.map.get(this.toKey(p))},d.prototype.toKey=function(p){var _=p.toString();return this.ignoreCase&&(_=_.toLowerCase()),_},d}(),L=function(){function d(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return d.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(d.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),d.prototype.get=function(p,_){_===void 0&&(_=0);var v=this._map.get(p);return v?(_!==0&&this.touch(v,_),v.value):void 0},d.prototype.set=function(p,_,v){v===void 0&&(v=0);var h=this._map.get(p);if(h)h.value=_,v!==0&&this.touch(h,v);else{h={key:p,value:_,next:void 0,previous:void 0};switch(v){case 0:this.addItemLast(h);break;case 1:this.addItemFirst(h);break;case 2:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(p,h),this._size++}},d.prototype.delete=function(p){return!!this.remove(p)},d.prototype.remove=function(p){var _=this._map.get(p);return _?(this._map.delete(p),this.removeItem(_),this._size--,_.value):void 0},d.prototype.forEach=function(p,_){for(var v=this._head;v;)_?p.bind(_)(v.value,v.key,this):p(v.value,v.key,this),v=v.next},d.prototype.trimOld=function(p){if(p>=this.size)return;if(p===0){this.clear();return}for(var _=this._head,v=this.size;_&&v>p;)this._map.delete(_.key),_=_.next,v--;this._head=_,this._size=v,_&&(_.previous=void 0)},d.prototype.addItemFirst=function(p){if(!this._head&&!this._tail)this._tail=p;else if(this._head)p.next=this._head,this._head.previous=p;else throw new Error("Invalid list");this._head=p},d.prototype.addItemLast=function(p){if(!this._head&&!this._tail)this._head=p;else if(this._tail)p.previous=this._tail,this._tail.next=p;else throw new Error("Invalid list");this._tail=p},d.prototype.removeItem=function(p){if(p===this._head&&p===this._tail)this._head=void 0,this._tail=void 0;else if(p===this._head){if(!p.next)throw new Error("Invalid list");p.next.previous=void 0,this._head=p.next}else if(p===this._tail){if(!p.previous)throw new Error("Invalid list");p.previous.next=void 0,this._tail=p.previous}else{var _=p.next,v=p.previous;if(!_||!v)throw new Error("Invalid list");_.previous=v,v.next=_}p.next=void 0,p.previous=void 0},d.prototype.touch=function(p,_){if(!this._head||!this._tail)throw new Error("Invalid list");if(_!==1&&_!==2)return;if(_===1){if(p===this._head)return;var v=p.next,h=p.previous;p===this._tail?(h.next=void 0,this._tail=h):(v.previous=h,h.next=v),p.previous=void 0,p.next=this._head,this._head.previous=p,this._head=p}else if(_===2){if(p===this._tail)return;var v=p.next,h=p.previous;p===this._head?(v.previous=void 0,this._head=v):(v.previous=h,h.next=v),p.next=void 0,p.previous=this._tail,this._tail.next=p,this._tail=p}},d.prototype.toJSON=function(){var p=[];return this.forEach(function(_,v){p.push([v,_])}),p},d}(),R=function(d){re(p,d);function p(_,v){v===void 0&&(v=1);var h=d.call(this)||this;return h._limit=_,h._ratio=Math.min(Math.max(0,v),1),h}return p.prototype.get=function(_){return d.prototype.get.call(this,_,2)},p.prototype.peek=function(_){return d.prototype.get.call(this,_,0)},p.prototype.set=function(_,v){d.prototype.set.call(this,_,v,2),this.checkTrim()},p.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},p}(L)},"SA+Z":function(nn,Ce,M){var re=M("wTVA"),G=M("EbDI"),I=M("ZhPi"),z=M("wkBT");function O(w){return re(w)||G(w)||I(w)||z()}nn.exports=O,nn.exports.__esModule=!0,nn.exports.default=nn.exports},SJMd:function(nn,Ce){/** +`),ne.focus();default:throw new Error}},[ne,Sr]),Dt=Object(d.useMemo)(function(){switch(Sr){case Ke:return p.a.createElement(he,{callback:Nt,onCancel:dt});case Kt:return p.a.createElement(ye.b,{callback:Nt,onCancel:dt});case Pt:return p.a.createElement(me,{callback:Nt,onCancel:dt});case Bt:return p.a.createElement(ue,{callback:Nt,onCancel:dt});default:return null}},[Sr]);function dt(){Qn("")}Object(d.useEffect)(function(){if(Yt.current){var mn=Yt.current,zt=!1,Gt=0;function Lt(On){zt=!0,Gt=On.pageY}function Ft(){zt=!1}function vn(On){if(zt){var cr=On.pageY-Gt;cr<0&&(cr=0),cr>300&&(cr=300);var nr=St+cr+"px";te(nr)}}return mn.addEventListener("mousedown",Lt),document.addEventListener("mousemove",vn),document.addEventListener("mouseup",Ft),function(){mn.removeEventListener("mousedown",Lt),document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",Ft)}}},[ne,Yt]),Object(d.useEffect)(function(){te(St)},[St]);var gn=Se(Jt),kn=Se(Cr),on={width:gn,height:kn},Ut=Object(d.useMemo)(function(){if(Hn){var mn=new Date(Hn),zt=mn.getHours(),Gt=mn.getMinutes(),Lt=mn.getSeconds();return zt=zt<10?"0"+zt:zt,Gt=Gt<10?"0"+Gt:Gt,Lt=Lt<10?"0"+Lt:Lt,"".concat(zt,":").concat(Gt,":").concat(Lt)}return 0},[Hn]);function rn(){window.sessionStorage.removeItem(Rt),ut(!1),Hr(0)}function In(){ut(!1),Hr(0),ne.setValue(window.sessionStorage.getItem(Rt))}function cn(mn,zt){var Gt=ne.getValue();Gt=Gt.replace(mn,zt),ln(Gt),ne==null||ne.setValue(Gt)}return p.a.createElement(d.Fragment,null,p.a.createElement("div",{className:"markdown-editor-wrapper",ref:nt},p.a.createElement("div",{className:"markdown-editor-container ".concat(Sn," ").concat(bn?"on-preview":""," ").concat(ge?"mini":""," ").concat(Un?"full-screen":""),style:on},p.a.createElement(A,{insertTemp:qt,watch:bn,fullScreen:Un,showNullButton:wn,onActionCallback:rt,hidetoolBar:ca,uuid:et.current,setOpenPhones:function(){bt.current=!0}}),p.a.createElement("div",{className:"markdown-editor-body"},p.a.createElement("div",{className:"codemirror-container"},p.a.createElement("textarea",{ref:Tt,placeholder:_r})),bn?p.a.createElement("div",{ref:ct,className:"preview-container"},it==="stex"&&p.a.createElement(P,{value:It}),it!=="stex"&&p.a.createElement(b.a,{edit:!0,value:It,replaces:cn})):null))),_n?p.a.createElement("a",{ref:Yt,className:"editor-resize"}):null,p.a.createElement(N.a,null,Me[Sr]?p.a.createElement(G.a,{centered:!0,title:Me[Sr],visible:!0,onCancel:dt,footer:null},Dt):null))}},QDVR:function(tn,Ce,M){"use strict";M.d(Ce,"e",function(){return G}),M.d(Ce,"d",function(){return I}),M.d(Ce,"c",function(){return W}),M.d(Ce,"b",function(){return y}),M.d(Ce,"a",function(){return R});var re=function(){var d=function(p,_){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var c in h)h.hasOwnProperty(c)&&(v[c]=h[c])},d(p,_)};return function(p,_){d(p,_);function v(){this.constructor=p}p.prototype=_===null?Object.create(_):(v.prototype=_.prototype,new v)}}();function G(d){var p=[];return d.forEach(function(_){return p.push(_)}),p}function I(d){var p=[];return d.forEach(function(_,v){return p.push(v)}),p}var z=function(){function d(){this._value="",this._pos=0}return d.prototype.reset=function(p){return this._value=p,this._pos=0,this},d.prototype.next=function(){return this._pos+=1,this},d.prototype.hasNext=function(){return this._pos0)h.left||(h.left=new w,h.left.segment=v.value()),h=h.left;else if(c<0)h.right||(h.right=new w,h.right.segment=v.value()),h=h.right;else if(v.hasNext())v.next(),h.mid||(h.mid=new w,h.mid.segment=v.value()),h=h.mid;else break}var n=h.value;return h.value=_,h.key=p,n},d.prototype.get=function(p){for(var _=this._iter.reset(p),v=this._root;v;){var h=_.cmp(v.segment);if(h>0)v=v.left;else if(h<0)v=v.right;else if(_.hasNext())_.next(),v=v.mid;else break}return v?v.value:void 0},d.prototype.findSubstr=function(p){for(var _=this._iter.reset(p),v=this._root,h=void 0;v;){var c=_.cmp(v.segment);if(c>0)v=v.left;else if(c<0)v=v.right;else if(_.hasNext())_.next(),h=v.value||h,v=v.mid;else break}return v&&v.value||h},d.prototype.forEach=function(p){this._forEach(this._root,p)},d.prototype._forEach=function(p,_){p&&(this._forEach(p.left,_),p.value&&_(p.value,p.key),this._forEach(p.mid,_),this._forEach(p.right,_))},d}(),y=function(){function d(){this.map=new Map,this.ignoreCase=!1}return d.prototype.set=function(p,_){this.map.set(this.toKey(p),_)},d.prototype.get=function(p){return this.map.get(this.toKey(p))},d.prototype.toKey=function(p){var _=p.toString();return this.ignoreCase&&(_=_.toLowerCase()),_},d}(),L=function(){function d(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return d.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(d.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),d.prototype.get=function(p,_){_===void 0&&(_=0);var v=this._map.get(p);return v?(_!==0&&this.touch(v,_),v.value):void 0},d.prototype.set=function(p,_,v){v===void 0&&(v=0);var h=this._map.get(p);if(h)h.value=_,v!==0&&this.touch(h,v);else{h={key:p,value:_,next:void 0,previous:void 0};switch(v){case 0:this.addItemLast(h);break;case 1:this.addItemFirst(h);break;case 2:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(p,h),this._size++}},d.prototype.delete=function(p){return!!this.remove(p)},d.prototype.remove=function(p){var _=this._map.get(p);return _?(this._map.delete(p),this.removeItem(_),this._size--,_.value):void 0},d.prototype.forEach=function(p,_){for(var v=this._head;v;)_?p.bind(_)(v.value,v.key,this):p(v.value,v.key,this),v=v.next},d.prototype.trimOld=function(p){if(p>=this.size)return;if(p===0){this.clear();return}for(var _=this._head,v=this.size;_&&v>p;)this._map.delete(_.key),_=_.next,v--;this._head=_,this._size=v,_&&(_.previous=void 0)},d.prototype.addItemFirst=function(p){if(!this._head&&!this._tail)this._tail=p;else if(this._head)p.next=this._head,this._head.previous=p;else throw new Error("Invalid list");this._head=p},d.prototype.addItemLast=function(p){if(!this._head&&!this._tail)this._head=p;else if(this._tail)p.previous=this._tail,this._tail.next=p;else throw new Error("Invalid list");this._tail=p},d.prototype.removeItem=function(p){if(p===this._head&&p===this._tail)this._head=void 0,this._tail=void 0;else if(p===this._head){if(!p.next)throw new Error("Invalid list");p.next.previous=void 0,this._head=p.next}else if(p===this._tail){if(!p.previous)throw new Error("Invalid list");p.previous.next=void 0,this._tail=p.previous}else{var _=p.next,v=p.previous;if(!_||!v)throw new Error("Invalid list");_.previous=v,v.next=_}p.next=void 0,p.previous=void 0},d.prototype.touch=function(p,_){if(!this._head||!this._tail)throw new Error("Invalid list");if(_!==1&&_!==2)return;if(_===1){if(p===this._head)return;var v=p.next,h=p.previous;p===this._tail?(h.next=void 0,this._tail=h):(v.previous=h,h.next=v),p.previous=void 0,p.next=this._head,this._head.previous=p,this._head=p}else if(_===2){if(p===this._tail)return;var v=p.next,h=p.previous;p===this._head?(v.previous=void 0,this._head=v):(v.previous=h,h.next=v),p.next=void 0,p.previous=this._tail,this._tail.next=p,this._tail=p}},d.prototype.toJSON=function(){var p=[];return this.forEach(function(_,v){p.push([v,_])}),p},d}(),R=function(d){re(p,d);function p(_,v){v===void 0&&(v=1);var h=d.call(this)||this;return h._limit=_,h._ratio=Math.min(Math.max(0,v),1),h}return p.prototype.get=function(_){return d.prototype.get.call(this,_,2)},p.prototype.peek=function(_){return d.prototype.get.call(this,_,0)},p.prototype.set=function(_,v){d.prototype.set.call(this,_,v,2),this.checkTrim()},p.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},p}(L)},"SA+Z":function(tn,Ce,M){var re=M("wTVA"),G=M("EbDI"),I=M("ZhPi"),z=M("wkBT");function O(w){return re(w)||G(w)||I(w)||z()}tn.exports=O,tn.exports.__esModule=!0,tn.exports.default=tn.exports},SJMd:function(tn,Ce){/** * @license * Copyright (C) 2006 Google Inc. * @@ -307,35 +307,35 @@ Please report this to https://github.com/markedjs/marked.`,Se.silent)return"

    A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var M,re,G,I=!1,z,O;window.PR_SHOULD_USE_CONTINUATION=!0;var w,W;(function(){var y=window,L=["break,continue,do,else,for,if,return,while"],R=[L,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],d=[R,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[d,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],_=[d,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[d,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],h="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",c=[d,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],n="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",r=[L,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],o=[L,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],l=[L,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[p,v,_,c,n,r,o,l],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,b="str",P="kwd",T="com",m="typ",g="lit",s="pun",u="pln",D="tag",S="dec",A="src",N="atn",j="atv",K="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(J){for(var V=0,X=!1,ue=!1,Ee=0,We=J.length;Ee122||(le<65||Te>90||vt.push([Math.max(65,Te)|32,Math.min(le,90)|32]),le<97||Te>122||vt.push([Math.max(97,Te)&~32,Math.min(le,122)&~32]))}}vt.sort(function(rt,Je){return rt[0]-Je[0]||Je[1]-rt[1]});for(var fe=[],_e=[],Ct=0;CtMe[0]&&(Me[1]+1>Me[0]&&st.push("-"),st.push(Bt(Me[1])))}return st.push("]"),st.join("")}function Qt(qe){for(var Ue=qe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),vt=Ue.length,Mt=[],st=0,Ct=0;st=2&&Te==="["?Ue[st]=kt(Ne):Te!=="\\"&&(Ue[st]=Ne.replace(/[a-zA-Z]/g,function(_e){var Me=_e.charCodeAt(0);return"["+String.fromCharCode(Me&~32,Me|32)+"]"}))}return Ue.join("")}for(var hn=[],Ee=0,We=J.length;Ee=0;)X[hn.charAt(qe)]=Qt;var Ue=Qt[1],vt=""+Ue;Kt.hasOwnProperty(vt)||(Lt.push(Ue),Kt[vt]=null)}Lt.push(/[\0-\uffff]/),ue=U(Lt)})();var Ee=V.length,We=function(Ke){for(var Lt=Ke.sourceCode,Kt=Ke.basePos,Bt=Ke.sourceNode,kt=[Kt,u],Qt=0,hn=Lt.match(ue)||[],qe={},Ue=0,vt=hn.length;Ue=5&&st.substring(0,5)==="lang-",Ne&&!(Ct&&typeof Ct[1]=="string")&&(Ne=!1,st=A),Ne||(qe[Mt]=st)}var le=Qt;if(Qt+=Mt.length,!Ne)kt.push(Kt+le,st);else{var fe=Ct[1],_e=Mt.indexOf(fe),Me=_e+fe.length;Ct[2]&&(Me=Mt.length-Ct[2].length,_e=Me-fe.length);var rt=st.substring(5);q(Bt,Kt+le,Mt.substring(0,_e),We,kt),q(Bt,Kt+le+_e,fe,me(rt,fe),kt),q(Bt,Kt+le+Me,Mt.substring(Me),We,kt)}}Ke.decorations=kt};return We}function Ye(J){var V=[],X=[];J.tripleQuotedStrings?V.push([b,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):J.multiLineStrings?V.push([b,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):V.push([b,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),J.verbatimStrings&&X.push([b,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ue=J.hashComments;ue&&(J.cStyleComments?(ue>1?V.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):V.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),X.push([b,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):V.push([T,/^#[^\r\n]*/,null,"#"])),J.cStyleComments&&(X.push([T,/^\/\/[^\r\n]*/,null]),X.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ee=J.regexLiterals;if(Ee){var We=Ee>1?"":` -\r`,Ke=We?".":"[\\S\\s]",Lt="/(?=[^/*"+We+"])(?:[^/\\x5B\\x5C"+We+"]|\\x5C"+Ke+"|\\x5B(?:[^\\x5C\\x5D"+We+"]|\\x5C"+Ke+")*(?:\\x5D|$))+/";X.push(["lang-regex",RegExp("^"+H+"("+Lt+")")])}var Kt=J.types;Kt&&X.push([m,Kt]);var Bt=(""+J.keywords).replace(/^ | $/g,"");Bt.length&&X.push([P,new RegExp("^(?:"+Bt.replace(/[\s,]+/g,"|")+")\\b"),null]),V.push([u,/^\s+/,null,` \r - \xA0`]);var kt="^.[^\\s\\w.$@'\"`/\\\\]*";return J.regexLiterals&&(kt+="(?!s*/)"),X.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[m,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[u,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[u,/^\\[\s\S]?/,null],[s,new RegExp(kt),null]),be(V,X)}var Pe=Ye({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(J,V,X){for(var ue=/(?:^|\s)nocode(?:\s|$)/,Ee=/\r\n?|\n/,We=J.ownerDocument,Ke=We.createElement("li");J.firstChild;)Ke.appendChild(J.firstChild);var Lt=[Ke];function Kt(Ue){var vt=Ue.nodeType;if(vt==1&&!ue.test(Ue.className))if(Ue.nodeName==="br")Bt(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var Mt=Ue.firstChild;Mt;Mt=Mt.nextSibling)Kt(Mt);else if((vt==3||vt==4)&&X){var st=Ue.nodeValue,Ct=st.match(Ee);if(Ct){var Ne=st.substring(0,Ct.index);Ue.nodeValue=Ne;var Se=st.substring(Ct.index+Ct[0].length);if(Se){var Te=Ue.parentNode;Te.insertBefore(We.createTextNode(Se),Ue.nextSibling)}Bt(Ue),Ne||Ue.parentNode.removeChild(Ue)}}}function Bt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function vt(Ct,Ne){var Se=Ne?Ct.cloneNode(!1):Ct,Te=Ct.parentNode;if(Te){var le=vt(Te,1),fe=Ct.nextSibling;le.appendChild(Se);for(var _e=fe;_e;_e=fe)fe=_e.nextSibling,le.appendChild(_e)}return Se}for(var Mt=vt(Ue.nextSibling,0),st;(st=Mt.parentNode)&&st.nodeType===1;)Mt=st;Lt.push(Mt)}for(var kt=0;kt=Te&&(Kt+=2),We>=le&&(Qt+=2)}}finally{st&&(st.style.display=Ct)}}var Ze={};function Ae(J,V){for(var X=V.length;--X>=0;){var ue=V[X];Ze.hasOwnProperty(ue)?y.console&&console.warn("cannot override language handler %s",ue):Ze[ue]=J}}function me(J,V){return J&&Ze.hasOwnProperty(J)||(J=/^\s*]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[s,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ae(be([[u,/^[\s]+/,null,` \r -`],[j,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[s,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ae(be([],[[j,/^[\s\S]+/]]),["uq.val"]),Ae(Ye({keywords:p,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),Ae(Ye({keywords:"null,true,false"}),["json"]),Ae(Ye({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),Ae(Ye({keywords:_,cStyleComments:!0}),["java"]),Ae(Ye({keywords:l,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ae(Ye({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ae(Ye({keywords:n,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ae(Ye({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ae(Ye({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ae(Ye({keywords:h,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ae(be([],[[b,/^[\s\S]+/]]),["regex"]);function ie(J){var V=J.langExtension;try{var X=B(J.sourceNode,J.pre),ue=X.sourceCode;J.sourceCode=ue,J.spans=X.spans,J.basePos=0,me(V,ue)(J),Qe(J)}catch(Ee){y.console&&console.log(Ee&&Ee.stack||Ee)}}function Oe(J,V,X){var ue=X||!1,Ee=V||null,We=document.createElement("div");We.innerHTML="

    "+J+"
    ",We=We.firstChild,ue&&je(We,ue,!0);var Ke={langExtension:Ee,numberLines:ue,sourceNode:We,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ie(Ke),We.innerHTML}function ve(J,V){var X=V||document.body,ue=X.ownerDocument||document;function Ee(Se){return X.getElementsByTagName(Se)}for(var We=[Ee("pre"),Ee("code"),Ee("xmp")],Ke=[],Lt=0;Lt=0){var l=r.split("!=");return y.create(l[0].trim(),this._deserializeValue(l[1],o))}if(r.indexOf("==")>=0){var l=r.split("==");return W.create(l[0].trim(),this._deserializeValue(l[1],o))}if(r.indexOf("=~")>=0){var l=r.split("=~");return R.create(l[0].trim(),this._deserializeRegexValue(l[1],o))}return/^\!\s*/.test(r)?L.create(r.substr(1).trim()):w.create(r)},n._deserializeValue=function(r,o){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var l=/^'([^']*)'$/.exec(r);return l?l[1].trim():r},n._deserializeRegexValue=function(r,o){if(Object(re.x)(r)){if(o)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var l=r.indexOf("/"),x=r.lastIndexOf("/");if(l===x||l<0){if(o)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(l+1,x),b=r[x+1]==="i"?"i":"";try{return new RegExp(E,b)}catch(P){if(o)throw new Error("bad regexp-value '"+r+"', parse error: "+P);return console.warn("bad regexp-value '"+r+"', parse error: "+P),null}},n}();function O(n,r){var o=n.getType(),l=r.getType();if(o!==l)return o-l;switch(o){case 1:return n.cmp(r);case 2:return n.cmp(r);case 3:return n.cmp(r);case 4:return n.cmp(r);case 6:return n.cmp(r);case 7:return n.cmp(r);case 5:return n.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var w=function(){function n(r){this.key=r}return n.create=function(r){return new n(r)},n.prototype.getType=function(){return 1},n.prototype.cmp=function(r){return this.keyr.key?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key:!1},n.prototype.evaluate=function(r){return!!r.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return L.create(this.key)},n}(),W=function(){function n(r,o){this.key=r,this.value=o}return n.create=function(r,o){return typeof o=="boolean"?o?w.create(r):L.create(r):new n(r,o)},n.prototype.getType=function(){return 3},n.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key&&this.value===r.value:!1},n.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return y.create(this.key,this.value)},n}(),y=function(){function n(r,o){this.key=r,this.value=o}return n.create=function(r,o){return typeof o=="boolean"?o?L.create(r):w.create(r):new n(r,o)},n.prototype.getType=function(){return 4},n.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key&&this.value===r.value:!1},n.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return W.create(this.key,this.value)},n}(),L=function(){function n(r){this.key=r}return n.create=function(r){return new n(r)},n.prototype.getType=function(){return 2},n.prototype.cmp=function(r){return this.keyr.key?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key:!1},n.prototype.evaluate=function(r){return!r.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return w.create(this.key)},n}(),R=function(){function n(r,o){this.key=r,this.regexp=o}return n.create=function(r,o){return new n(r,o)},n.prototype.getType=function(){return 6},n.prototype.cmp=function(r){if(this.keyr.key)return 1;var o=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return ol?1:0},n.prototype.equals=function(r){if(r instanceof n){var o=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return this.key===r.key&&o===l}return!1},n.prototype.evaluate=function(r){var o=r.getValue(this.key);return this.regexp?this.regexp.test(o):!1},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return d.create(this)},n}(),d=function(){function n(r){this._actual=r}return n.create=function(r){return new n(r)},n.prototype.getType=function(){return 7},n.prototype.cmp=function(r){return this._actual.cmp(r._actual)},n.prototype.equals=function(r){return r instanceof n?this._actual.equals(r._actual):!1},n.prototype.evaluate=function(r){return!this._actual.evaluate(r)},n.prototype.keys=function(){return this._actual.keys()},n.prototype.negate=function(){return this._actual},n}(),p=function(){function n(r){this.expr=r}return n.create=function(r){var o=n._normalizeArr(r);return o.length===0?void 0:o.length===1?o[0]:new n(o)},n.prototype.getType=function(){return 5},n.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var o=0,l=this.expr.length;o1;){for(var b=r.shift(),P=r.shift(),T=[],m=0,g=E(b);m=15&&(p=!1,L=!0);var b=o&&(R||p&&(E==null||E<12.11)),P=I||W&&y>=9;function T(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var m=function(e,t){var i=e.className,a=T(t).exec(i);if(a){var f=i.slice(a.index+a[0].length);e.className=i.slice(0,a.index)+(f?a[1]+f:"")}};function g(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return g(e).appendChild(t)}function u(e,t,i,a){var f=document.createElement(e);if(i&&(f.className=i),a&&(f.style.cssText=a),typeof t=="string")f.appendChild(document.createTextNode(t));else if(t)for(var F=0;F=t)return Z+(t-F);Z+=ae-F,Z+=i-Z%i,F=ae+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ee.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return a+Math.min(Z,t-f);if(f+=F-a,f+=i-f%i,a=F+1,f>=t)return a}}var Ae=[""];function me(e){for(;Ae.length<=e;)Ae.push(ie(Ae)+" ");return Ae[e]}function ie(e){return e[e.length-1]}function Oe(e,t){for(var i=[],a=0;a"\x80"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function X(e,t){return t?t.source.indexOf("\\w")>-1&&V(e)?!0:t.test(e):V(e)}function ue(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ee=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function We(e){return e.charCodeAt(0)>=768&&Ee.test(e)}function Ke(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var f=(t+i)/2,F=a<0?Math.ceil(f):Math.floor(f);if(F==t)return e(F)?t:i;e(F)?i=F:t=F+a}}function Kt(e,t,i,a){if(!e)return a(t,i,"ltr",0);for(var f=!1,F=0;Ft||t==i&&Z.to==t)&&(a(Math.max(Z.from,t),Math.min(Z.to,i),Z.level==1?"rtl":"ltr",F),f=!0)}f||a(t,i,"ltr")}var Bt=null;function kt(e,t,i){var a;Bt=null;for(var f=0;ft)return f;F.to==t&&(F.from!=F.to&&i=="before"?a=f:Bt=f),F.from==t&&(F.from!=F.to&&i!="before"?a=f:Bt=f)}return a!=null?a:Bt}var Qt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(ce){return ce<=247?e.charAt(ce):1424<=ce&&ce<=1524?"R":1536<=ce&&ce<=1785?t.charAt(ce-1536):1774<=ce&&ce<=2220?"r":8192<=ce&&ce<=8203?"w":ce==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,F=/[LRr]/,Z=/[Lb1n]/,ae=/[1n]/;function oe(ce,Fe,$e){this.level=ce,this.from=Fe,this.to=$e}return function(ce,Fe){var $e=Fe=="ltr"?"L":"R";if(ce.length==0||Fe=="ltr"&&!a.test(ce))return!1;for(var _t=ce.length,gt=[],$t=0;$t<_t;++$t)gt.push(i(ce.charCodeAt($t)));for(var fn=0,Cn=$e;fn<_t;++fn){var An=gt[fn];An=="m"?gt[fn]=Cn:Cn=An}for(var Wn=0,Pn=$e;Wn<_t;++Wn){var Gn=gt[Wn];Gn=="1"&&Pn=="r"?gt[Wn]="n":F.test(Gn)&&(Pn=Gn,Gn=="r"&&(gt[Wn]="R"))}for(var vr=1,sr=gt[0];vr<_t-1;++vr){var Wr=gt[vr];Wr=="+"&&sr=="1"&>[vr+1]=="1"?gt[vr]="1":Wr==","&&sr==gt[vr+1]&&(sr=="1"||sr=="n")&&(gt[vr]=sr),sr=Wr}for(var ua=0;ua<_t;++ua){var Wa=gt[ua];if(Wa==",")gt[ua]="N";else if(Wa=="%"){var Ca=void 0;for(Ca=ua+1;Ca<_t&>[Ca]=="%";++Ca);for(var si=ua&>[ua-1]=="!"||Ca<_t&>[Ca]=="1"?"1":"N",ni=ua;ni-1&&(a[t]=f.slice(0,F).concat(f.slice(F+1)))}}}function st(e,t){var i=vt(e,t);if(!i.length)return;for(var a=Array.prototype.slice.call(arguments,2),f=0;f0}function Te(e){e.prototype.on=function(t,i){Ue(this,t,i)},e.prototype.off=function(t,i){Mt(this,t,i)}}function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function fe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Me(e){le(e),fe(e)}function rt(e){return e.target||e.srcElement}function Je(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),o&&e.ctrlKey&&t==1&&(t=3),t}var jt=function(){if(W&&y<9)return!1;var e=u("div");return"draggable"in e||"dragDrop"in e}(),rn;function pn(e){if(rn==null){var t=u("span","\u200B");s(e,u("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(rn=t.offsetWidth<=1&&t.offsetHeight>2&&!(W&&y<8))}var i=rn?u("span","\u200B"):u("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var on;function Jt(e){if(on!=null)return on;var t=s(e,document.createTextNode("A\u062EA")),i=S(t,0,1).getBoundingClientRect(),a=S(t,1,2).getBoundingClientRect();return g(e),!i||i.left==i.right?!1:on=a.right-i.right<3}var wt=` + */var M,re,G,I=!1,z,O;window.PR_SHOULD_USE_CONTINUATION=!0;var w,W;(function(){var y=window,L=["break,continue,do,else,for,if,return,while"],R=[L,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],d=[R,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[d,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],_=[d,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[d,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],h="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",c=[d,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],n="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",r=[L,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],o=[L,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],l=[L,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[p,v,_,c,n,r,o,l],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,b="str",P="kwd",T="com",m="typ",g="lit",s="pun",u="pln",D="tag",S="dec",A="src",N="atn",j="atv",K="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(J){for(var V=0,X=!1,ue=!1,Ee=0,We=J.length;Ee122||(le<65||Te>90||vt.push([Math.max(65,Te)|32,Math.min(le,90)|32]),le<97||Te>122||vt.push([Math.max(97,Te)&~32,Math.min(le,122)&~32]))}}vt.sort(function(at,Je){return at[0]-Je[0]||Je[1]-at[1]});for(var fe=[],_e=[],Ct=0;CtMe[0]&&(Me[1]+1>Me[0]&&st.push("-"),st.push(Bt(Me[1])))}return st.push("]"),st.join("")}function Qt(qe){for(var Ue=qe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),vt=Ue.length,Mt=[],st=0,Ct=0;st=2&&Te==="["?Ue[st]=kt(Ne):Te!=="\\"&&(Ue[st]=Ne.replace(/[a-zA-Z]/g,function(_e){var Me=_e.charCodeAt(0);return"["+String.fromCharCode(Me&~32,Me|32)+"]"}))}return Ue.join("")}for(var fn=[],Ee=0,We=J.length;Ee=0;)X[fn.charAt(qe)]=Qt;var Ue=Qt[1],vt=""+Ue;Kt.hasOwnProperty(vt)||(Pt.push(Ue),Kt[vt]=null)}Pt.push(/[\0-\uffff]/),ue=U(Pt)})();var Ee=V.length,We=function(Ke){for(var Pt=Ke.sourceCode,Kt=Ke.basePos,Bt=Ke.sourceNode,kt=[Kt,u],Qt=0,fn=Pt.match(ue)||[],qe={},Ue=0,vt=fn.length;Ue=5&&st.substring(0,5)==="lang-",Ne&&!(Ct&&typeof Ct[1]=="string")&&(Ne=!1,st=A),Ne||(qe[Mt]=st)}var le=Qt;if(Qt+=Mt.length,!Ne)kt.push(Kt+le,st);else{var fe=Ct[1],_e=Mt.indexOf(fe),Me=_e+fe.length;Ct[2]&&(Me=Mt.length-Ct[2].length,_e=Me-fe.length);var at=st.substring(5);q(Bt,Kt+le,Mt.substring(0,_e),We,kt),q(Bt,Kt+le+_e,fe,me(at,fe),kt),q(Bt,Kt+le+Me,Mt.substring(Me),We,kt)}}Ke.decorations=kt};return We}function Ye(J){var V=[],X=[];J.tripleQuotedStrings?V.push([b,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):J.multiLineStrings?V.push([b,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):V.push([b,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),J.verbatimStrings&&X.push([b,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ue=J.hashComments;ue&&(J.cStyleComments?(ue>1?V.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):V.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),X.push([b,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):V.push([T,/^#[^\r\n]*/,null,"#"])),J.cStyleComments&&(X.push([T,/^\/\/[^\r\n]*/,null]),X.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ee=J.regexLiterals;if(Ee){var We=Ee>1?"":` +\r`,Ke=We?".":"[\\S\\s]",Pt="/(?=[^/*"+We+"])(?:[^/\\x5B\\x5C"+We+"]|\\x5C"+Ke+"|\\x5B(?:[^\\x5C\\x5D"+We+"]|\\x5C"+Ke+")*(?:\\x5D|$))+/";X.push(["lang-regex",RegExp("^"+H+"("+Pt+")")])}var Kt=J.types;Kt&&X.push([m,Kt]);var Bt=(""+J.keywords).replace(/^ | $/g,"");Bt.length&&X.push([P,new RegExp("^(?:"+Bt.replace(/[\s,]+/g,"|")+")\\b"),null]),V.push([u,/^\s+/,null,` \r + \xA0`]);var kt="^.[^\\s\\w.$@'\"`/\\\\]*";return J.regexLiterals&&(kt+="(?!s*/)"),X.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[m,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[u,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[u,/^\\[\s\S]?/,null],[s,new RegExp(kt),null]),ye(V,X)}var Pe=Ye({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(J,V,X){for(var ue=/(?:^|\s)nocode(?:\s|$)/,Ee=/\r\n?|\n/,We=J.ownerDocument,Ke=We.createElement("li");J.firstChild;)Ke.appendChild(J.firstChild);var Pt=[Ke];function Kt(Ue){var vt=Ue.nodeType;if(vt==1&&!ue.test(Ue.className))if(Ue.nodeName==="br")Bt(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var Mt=Ue.firstChild;Mt;Mt=Mt.nextSibling)Kt(Mt);else if((vt==3||vt==4)&&X){var st=Ue.nodeValue,Ct=st.match(Ee);if(Ct){var Ne=st.substring(0,Ct.index);Ue.nodeValue=Ne;var Se=st.substring(Ct.index+Ct[0].length);if(Se){var Te=Ue.parentNode;Te.insertBefore(We.createTextNode(Se),Ue.nextSibling)}Bt(Ue),Ne||Ue.parentNode.removeChild(Ue)}}}function Bt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function vt(Ct,Ne){var Se=Ne?Ct.cloneNode(!1):Ct,Te=Ct.parentNode;if(Te){var le=vt(Te,1),fe=Ct.nextSibling;le.appendChild(Se);for(var _e=fe;_e;_e=fe)fe=_e.nextSibling,le.appendChild(_e)}return Se}for(var Mt=vt(Ue.nextSibling,0),st;(st=Mt.parentNode)&&st.nodeType===1;)Mt=st;Pt.push(Mt)}for(var kt=0;kt=Te&&(Kt+=2),We>=le&&(Qt+=2)}}finally{st&&(st.style.display=Ct)}}var Qe={};function Ae(J,V){for(var X=V.length;--X>=0;){var ue=V[X];Qe.hasOwnProperty(ue)?y.console&&console.warn("cannot override language handler %s",ue):Qe[ue]=J}}function me(J,V){return J&&Qe.hasOwnProperty(J)||(J=/^\s*]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[s,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ae(ye([[u,/^[\s]+/,null,` \r +`],[j,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[s,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ae(ye([],[[j,/^[\s\S]+/]]),["uq.val"]),Ae(Ye({keywords:p,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),Ae(Ye({keywords:"null,true,false"}),["json"]),Ae(Ye({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),Ae(Ye({keywords:_,cStyleComments:!0}),["java"]),Ae(Ye({keywords:l,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ae(Ye({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ae(Ye({keywords:n,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ae(Ye({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ae(Ye({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ae(Ye({keywords:h,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ae(ye([],[[b,/^[\s\S]+/]]),["regex"]);function ie(J){var V=J.langExtension;try{var X=B(J.sourceNode,J.pre),ue=X.sourceCode;J.sourceCode=ue,J.spans=X.spans,J.basePos=0,me(V,ue)(J),Ze(J)}catch(Ee){y.console&&console.log(Ee&&Ee.stack||Ee)}}function Oe(J,V,X){var ue=X||!1,Ee=V||null,We=document.createElement("div");We.innerHTML="
    "+J+"
    ",We=We.firstChild,ue&&je(We,ue,!0);var Ke={langExtension:Ee,numberLines:ue,sourceNode:We,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ie(Ke),We.innerHTML}function ve(J,V){var X=V||document.body,ue=X.ownerDocument||document;function Ee(Se){return X.getElementsByTagName(Se)}for(var We=[Ee("pre"),Ee("code"),Ee("xmp")],Ke=[],Pt=0;Pt=0){var l=r.split("!=");return y.create(l[0].trim(),this._deserializeValue(l[1],o))}if(r.indexOf("==")>=0){var l=r.split("==");return W.create(l[0].trim(),this._deserializeValue(l[1],o))}if(r.indexOf("=~")>=0){var l=r.split("=~");return R.create(l[0].trim(),this._deserializeRegexValue(l[1],o))}return/^\!\s*/.test(r)?L.create(r.substr(1).trim()):w.create(r)},n._deserializeValue=function(r,o){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var l=/^'([^']*)'$/.exec(r);return l?l[1].trim():r},n._deserializeRegexValue=function(r,o){if(Object(re.x)(r)){if(o)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var l=r.indexOf("/"),x=r.lastIndexOf("/");if(l===x||l<0){if(o)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(l+1,x),b=r[x+1]==="i"?"i":"";try{return new RegExp(E,b)}catch(P){if(o)throw new Error("bad regexp-value '"+r+"', parse error: "+P);return console.warn("bad regexp-value '"+r+"', parse error: "+P),null}},n}();function O(n,r){var o=n.getType(),l=r.getType();if(o!==l)return o-l;switch(o){case 1:return n.cmp(r);case 2:return n.cmp(r);case 3:return n.cmp(r);case 4:return n.cmp(r);case 6:return n.cmp(r);case 7:return n.cmp(r);case 5:return n.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var w=function(){function n(r){this.key=r}return n.create=function(r){return new n(r)},n.prototype.getType=function(){return 1},n.prototype.cmp=function(r){return this.keyr.key?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key:!1},n.prototype.evaluate=function(r){return!!r.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return L.create(this.key)},n}(),W=function(){function n(r,o){this.key=r,this.value=o}return n.create=function(r,o){return typeof o=="boolean"?o?w.create(r):L.create(r):new n(r,o)},n.prototype.getType=function(){return 3},n.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key&&this.value===r.value:!1},n.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return y.create(this.key,this.value)},n}(),y=function(){function n(r,o){this.key=r,this.value=o}return n.create=function(r,o){return typeof o=="boolean"?o?L.create(r):w.create(r):new n(r,o)},n.prototype.getType=function(){return 4},n.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key&&this.value===r.value:!1},n.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return W.create(this.key,this.value)},n}(),L=function(){function n(r){this.key=r}return n.create=function(r){return new n(r)},n.prototype.getType=function(){return 2},n.prototype.cmp=function(r){return this.keyr.key?1:0},n.prototype.equals=function(r){return r instanceof n?this.key===r.key:!1},n.prototype.evaluate=function(r){return!r.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return w.create(this.key)},n}(),R=function(){function n(r,o){this.key=r,this.regexp=o}return n.create=function(r,o){return new n(r,o)},n.prototype.getType=function(){return 6},n.prototype.cmp=function(r){if(this.keyr.key)return 1;var o=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return ol?1:0},n.prototype.equals=function(r){if(r instanceof n){var o=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return this.key===r.key&&o===l}return!1},n.prototype.evaluate=function(r){var o=r.getValue(this.key);return this.regexp?this.regexp.test(o):!1},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return d.create(this)},n}(),d=function(){function n(r){this._actual=r}return n.create=function(r){return new n(r)},n.prototype.getType=function(){return 7},n.prototype.cmp=function(r){return this._actual.cmp(r._actual)},n.prototype.equals=function(r){return r instanceof n?this._actual.equals(r._actual):!1},n.prototype.evaluate=function(r){return!this._actual.evaluate(r)},n.prototype.keys=function(){return this._actual.keys()},n.prototype.negate=function(){return this._actual},n}(),p=function(){function n(r){this.expr=r}return n.create=function(r){var o=n._normalizeArr(r);return o.length===0?void 0:o.length===1?o[0]:new n(o)},n.prototype.getType=function(){return 5},n.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var o=0,l=this.expr.length;o1;){for(var b=r.shift(),P=r.shift(),T=[],m=0,g=E(b);m=15&&(p=!1,L=!0);var b=o&&(R||p&&(E==null||E<12.11)),P=I||W&&y>=9;function T(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var m=function(e,t){var i=e.className,a=T(t).exec(i);if(a){var f=i.slice(a.index+a[0].length);e.className=i.slice(0,a.index)+(f?a[1]+f:"")}};function g(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return g(e).appendChild(t)}function u(e,t,i,a){var f=document.createElement(e);if(i&&(f.className=i),a&&(f.style.cssText=a),typeof t=="string")f.appendChild(document.createTextNode(t));else if(t)for(var F=0;F=t)return Z+(t-F);Z+=ae-F,Z+=i-Z%i,F=ae+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ee.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return a+Math.min(Z,t-f);if(f+=F-a,f+=i-f%i,a=F+1,f>=t)return a}}var Ae=[""];function me(e){for(;Ae.length<=e;)Ae.push(ie(Ae)+" ");return Ae[e]}function ie(e){return e[e.length-1]}function Oe(e,t){for(var i=[],a=0;a"\x80"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function X(e,t){return t?t.source.indexOf("\\w")>-1&&V(e)?!0:t.test(e):V(e)}function ue(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ee=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function We(e){return e.charCodeAt(0)>=768&&Ee.test(e)}function Ke(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var f=(t+i)/2,F=a<0?Math.ceil(f):Math.floor(f);if(F==t)return e(F)?t:i;e(F)?i=F:t=F+a}}function Kt(e,t,i,a){if(!e)return a(t,i,"ltr",0);for(var f=!1,F=0;Ft||t==i&&Z.to==t)&&(a(Math.max(Z.from,t),Math.min(Z.to,i),Z.level==1?"rtl":"ltr",F),f=!0)}f||a(t,i,"ltr")}var Bt=null;function kt(e,t,i){var a;Bt=null;for(var f=0;ft)return f;F.to==t&&(F.from!=F.to&&i=="before"?a=f:Bt=f),F.from==t&&(F.from!=F.to&&i!="before"?a=f:Bt=f)}return a!=null?a:Bt}var Qt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(ce){return ce<=247?e.charAt(ce):1424<=ce&&ce<=1524?"R":1536<=ce&&ce<=1785?t.charAt(ce-1536):1774<=ce&&ce<=2220?"r":8192<=ce&&ce<=8203?"w":ce==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,F=/[LRr]/,Z=/[Lb1n]/,ae=/[1n]/;function oe(ce,Fe,$e){this.level=ce,this.from=Fe,this.to=$e}return function(ce,Fe){var $e=Fe=="ltr"?"L":"R";if(ce.length==0||Fe=="ltr"&&!a.test(ce))return!1;for(var _t=ce.length,gt=[],$t=0;$t<_t;++$t)gt.push(i(ce.charCodeAt($t)));for(var dn=0,Cn=$e;dn<_t;++dn){var Rn=gt[dn];Rn=="m"?gt[dn]=Cn:Cn=Rn}for(var Wn=0,An=$e;Wn<_t;++Wn){var Gn=gt[Wn];Gn=="1"&&An=="r"?gt[Wn]="n":F.test(Gn)&&(An=Gn,Gn=="r"&&(gt[Wn]="R"))}for(var vr=1,sr=gt[0];vr<_t-1;++vr){var Br=gt[vr];Br=="+"&&sr=="1"&>[vr+1]=="1"?gt[vr]="1":Br==","&&sr==gt[vr+1]&&(sr=="1"||sr=="n")&&(gt[vr]=sr),sr=Br}for(var fa=0;fa<_t;++fa){var Ga=gt[fa];if(Ga==",")gt[fa]="N";else if(Ga=="%"){var Oa=void 0;for(Oa=fa+1;Oa<_t&>[Oa]=="%";++Oa);for(var li=fa&>[fa-1]=="!"||Oa<_t&>[Oa]=="1"?"1":"N",ri=fa;ri-1&&(a[t]=f.slice(0,F).concat(f.slice(F+1)))}}}function st(e,t){var i=vt(e,t);if(!i.length)return;for(var a=Array.prototype.slice.call(arguments,2),f=0;f0}function Te(e){e.prototype.on=function(t,i){Ue(this,t,i)},e.prototype.off=function(t,i){Mt(this,t,i)}}function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function fe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Me(e){le(e),fe(e)}function at(e){return e.target||e.srcElement}function Je(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),o&&e.ctrlKey&&t==1&&(t=3),t}var jt=function(){if(W&&y<9)return!1;var e=u("div");return"draggable"in e||"dragDrop"in e}(),nn;function pn(e){if(nn==null){var t=u("span","\u200B");s(e,u("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(nn=t.offsetWidth<=1&&t.offsetHeight>2&&!(W&&y<8))}var i=nn?u("span","\u200B"):u("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var an;function Jt(e){if(an!=null)return an;var t=s(e,document.createTextNode("A\u062EA")),i=S(t,0,1).getBoundingClientRect(),a=S(t,1,2).getBoundingClientRect();return g(e),!i||i.left==i.right?!1:an=a.right-i.right<3}var wt=` b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],a=e.length;t<=a;){var f=e.indexOf(` -`,t);f==-1&&(f=e.length);var F=e.slice(t,e.charAt(f-1)=="\r"?f-1:f),Z=F.indexOf("\r");Z!=-1?(i.push(F.slice(0,Z)),t+=Z+1):(i.push(F),t=f+1)}return i}:function(e){return e.split(/\r\n?|\n/)},St=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},lt=function(){var e=u("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ge=null;function Le(e){if(ge!=null)return ge;var t=s(e,u("span","x")),i=t.getBoundingClientRect(),a=S(t,0,1).getBoundingClientRect();return ge=Math.abs(i.left-a.left)>1}var yt={},ft={};function en(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),yt[e]=t}function Xt(e,t){ft[e]=t}function at(e){if(typeof e=="string"&&ft.hasOwnProperty(e))e=ft[e];else if(e&&typeof e.name=="string"&&ft.hasOwnProperty(e.name)){var t=ft[e.name];typeof t=="string"&&(t={name:t}),e=pe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return at("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return at("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function xt(e,t){t=at(t);var i=yt[t.name];if(!i)return xt(e,"text/plain");var a=i(e,t);if(Rt.hasOwnProperty(t.name)){var f=Rt[t.name];for(var F in f){if(!f.hasOwnProperty(F))continue;a.hasOwnProperty(F)&&(a["_"+F]=a[F]),a[F]=f[F]}}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var Z in t.modeProps)a[Z]=t.modeProps[Z];return a}var Rt={};function cn(e,t){var i=Rt.hasOwnProperty(e)?Rt[e]:Rt[e]={};B(t,i)}function xn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var a in t){var f=t[a];f instanceof Array&&(f=f.concat([])),i[a]=f}return i}function ar(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function fr(e,t,i){return e.startState?e.startState(t,i):!0}var tr=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};tr.prototype.eol=function(){return this.pos>=this.string.length},tr.prototype.sol=function(){return this.pos==this.lineStart},tr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tr.prototype.next=function(){if(this.post},tr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tr.prototype.skipToEnd=function(){this.pos=this.string.length},tr.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},tr.prototype.backUp=function(e){this.pos-=e},tr.prototype.column=function(){return this.lastColumnPos0?null:(F&&t!==!1&&(this.pos+=F[0].length),F)}},tr.prototype.current=function(){return this.string.slice(this.start,this.pos)},tr.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},tr.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},tr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Sn(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var a=0;;++a){var f=i.children[a],F=f.chunkSize();if(t=e.first&&ti?Wt(i,Sn(e,i).text.length):k(t,Sn(e,t.line).text.length)}function k(e,t){var i=e.ch;return i==null||i>t?Wt(e.line,t):i<0?Wt(e.line,0):e}function $(e,t){for(var i=[],a=0;athis.maxLookAhead&&(this.maxLookAhead=e),t},Y.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Y.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Y.fromSaved=function(e,t,i){return t instanceof ne?new Y(e,xn(e.mode,t.state),i,t.lookAhead):new Y(e,xn(e.mode,t),i)},Y.prototype.save=function(e){var t=e!==!1?xn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ne(t,this.maxLookAhead):t};function we(e,t,i,a){var f=[e.state.modeGen],F={};gr(e,t.text,e.doc.mode,i,function(ce,Fe){return f.push(ce,Fe)},F,a);for(var Z=i.state,ae=function(ce){i.baseTokens=f;var Fe=e.state.overlays[ce],$e=1,_t=0;i.state=!0,gr(e,t.text,Fe.mode,i,function(gt,$t){for(var fn=$e;_tgt&&f.splice($e,1,gt,f[$e+1],Cn),$e+=2,_t=Math.min(gt,Cn)}if(!$t)return;if(Fe.opaque)f.splice(fn,$e-fn,gt,"overlay "+$t),$e=fn+2;else for(;fn<$e;fn+=2){var An=f[fn+1];f[fn+1]=(An?An+" ":"")+"overlay "+$t}},F),i.state=Z,i.baseTokens=null,i.baseTokenPos=1},oe=0;oee.options.maxHighlightLength&&xn(e.doc.mode,a.state),F=we(e,t,a);f&&(a.state=f),t.stateAfter=a.save(!f),t.styles=F.styles,F.classes?t.styleClasses=F.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function It(e,t,i){var a=e.doc,f=e.display;if(!a.mode.startState)return new Y(a,!0,t);var F=Un(e,t,i),Z=F>a.first&&Sn(a,F-1).stateAfter,ae=Z?Y.fromSaved(a,Z,F):new Y(a,fr(a.mode),F);return a.iter(F,t,function(oe){un(e,oe.text,ae);var ce=ae.line;oe.stateAfter=ce==t-1||ce%5==0||ce>=f.viewFrom&&cet.start)return F}throw new Error("Mode "+e.name+" failed to advance stream.")}var En=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function On(e,t,i,a){var f=e.doc,F=f.mode,Z;t=C(f,t);var ae=Sn(f,t.line),oe=It(e,t.line,i),ce=new tr(ae.text,e.options.tabSize,oe),Fe;for(a&&(Fe=[]);(a||ce.pose.options.maxHighlightLength?(ae=!1,Z&&un(e,t,a,Fe.pos),Fe.pos=t.length,$e=null):$e=pr(bn(i,Fe,a.state,_t),F),_t){var gt=_t[0].name;gt&&($e="m-"+($e?gt+" "+$e:gt))}if(!ae||ce!=$e){for(;oeZ;--ae){if(ae<=F.first)return F.first;var oe=Sn(F,ae-1),ce=oe.stateAfter;if(ce&&(!i||ae+(ce instanceof ne?ce.lookAhead:0)<=F.modeFrontier))return ae;var Fe=q(oe.text,null,e.options.tabSize);(f==null||a>Fe)&&(f=ae-1,a=Fe)}return f}function jn(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;a--){var f=Sn(e,a).stateAfter;if(f&&(!(f instanceof ne)||a+f.lookAhead=t:F.to>t);(a||(a=[])).push(new yr(Z,F.from,oe?null:F.to))}}return a}function or(e,t,i){var a;if(e)for(var f=0;f=t:F.to>t);if(ae||F.from==t&&Z.type=="bookmark"&&(!i||F.marker.insertLeft)){var oe=F.from==null||(Z.inclusiveLeft?F.from<=t:F.from0&&ae)for(var Gn=0;Gn0)continue;var Fe=[oe,1],$e=Tn(ce.from,ae.from),_t=Tn(ce.to,ae.to);($e<0||!Z.inclusiveLeft&&!$e)&&Fe.push({from:ce.from,to:ae.from}),(_t>0||!Z.inclusiveRight&&!_t)&&Fe.push({from:ae.to,to:ce.to}),f.splice.apply(f,Fe),oe+=Fe.length-3}return f}function Xe(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!a||bt(a,F.marker)<0)&&(a=F.marker)}return a}function ct(e,t,i,a,f){var F=Sn(e,t),Z=Jn&&F.markedSpans;if(Z)for(var ae=0;ae=0&&$e<=0||Fe<=0&&$e>=0)continue;if(Fe<=0&&(oe.marker.inclusiveRight&&f.inclusiveLeft?Tn(ce.to,i)>=0:Tn(ce.to,i)>0)||Fe>=0&&(oe.marker.inclusiveRight&&f.inclusiveLeft?Tn(ce.from,a)<=0:Tn(ce.from,a)<0))return!0}}function ye(e){for(var t;t=Tt(e);)e=t.find(-1,!0).line;return e}function Et(e){for(var t;t=it(e);)e=t.find(1,!0).line;return e}function nt(e){for(var t,i;t=it(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Nt(e,t){var i=Sn(e,t),a=ye(i);return i==a?t:cr(a)}function Dt(e,t){if(t>e.lastLine())return t;var i=Sn(e,t),a;if(!dt(e,i))return t;for(;a=it(i);)i=a.find(1,!0).line;return cr(i)+1}function dt(e,t){var i=Jn&&t.markedSpans;if(i)for(var a=void 0,f=0;ft.maxLineLength&&(t.maxLineLength=f,t.maxLine=a)})}var an=function(e,t,i){this.text=e,ze(this,t),this.height=i?i(this):1};an.prototype.lineNo=function(){return cr(this)},Te(an);function Nn(e,t,i,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Xe(e),ze(e,i);var f=a?a(e):1;f!=e.height&&Br(e,f)}function dn(e){e.parent=null,Xe(e)}var mn={},zt={};function Gt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?zt:mn;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function At(e,t){var i=D("span",null,null,L?"padding-right: .1px":null),a={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var f=0;f<=(t.rest?t.rest.length:0);f++){var F=f?t.rest[f-1]:t.line,Z=void 0;a.pos=0,a.addToken=vn,Jt(e.display.measure)&&(Z=hn(F,e.doc.direction))&&(a.addToken=ur(a.addToken,Z)),a.map=[];var ae=t!=e.display.externalMeasured&&cr(F);qt(F,a,mt(e,F,ae)),F.styleClasses&&(F.styleClasses.bgClass&&(a.bgClass=K(F.styleClasses.bgClass,a.bgClass||"")),F.styleClasses.textClass&&(a.textClass=K(F.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(pn(e.display.measure))),f==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(L){var oe=a.content.lastChild;(/\bcm-tab\b/.test(oe.className)||oe.querySelector&&oe.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return st(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=K(a.pre.className,a.textClass||"")),a}function Ft(e){var t=u("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,i,a,f,F,Z){if(!t)return;var ae=e.splitSpaces?Dn(t,e.trailingSpace):t,oe=e.cm.state.specialChars,ce=!1,Fe;if(!oe.test(t))e.col+=t.length,Fe=document.createTextNode(ae),e.map.push(e.pos,e.pos+t.length,Fe),W&&y<9&&(ce=!0),e.pos+=t.length;else{Fe=document.createDocumentFragment();for(var $e=0;;){oe.lastIndex=$e;var _t=oe.exec(t),gt=_t?_t.index-$e:t.length-$e;if(gt){var $t=document.createTextNode(ae.slice($e,$e+gt));W&&y<9?Fe.appendChild(u("span",[$t])):Fe.appendChild($t),e.map.push(e.pos,e.pos+gt,$t),e.col+=gt,e.pos+=gt}if(!_t)break;$e+=gt+1;var fn=void 0;if(_t[0]==" "){var Cn=e.cm.options.tabSize,An=Cn-e.col%Cn;fn=Fe.appendChild(u("span",me(An),"cm-tab")),fn.setAttribute("role","presentation"),fn.setAttribute("cm-text"," "),e.col+=An}else _t[0]=="\r"||_t[0]==` -`?(fn=Fe.appendChild(u("span",_t[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),fn.setAttribute("cm-text",_t[0]),e.col+=1):(fn=e.cm.options.specialCharPlaceholder(_t[0]),fn.setAttribute("cm-text",_t[0]),W&&y<9?Fe.appendChild(u("span",[fn])):Fe.appendChild(fn),e.col+=1);e.map.push(e.pos,e.pos+1,fn),e.pos++}}if(e.trailingSpace=ae.charCodeAt(t.length-1)==32,i||a||f||ce||F||Z){var Wn=i||"";a&&(Wn+=a),f&&(Wn+=f);var Pn=u("span",[Fe],Wn,F);if(Z)for(var Gn in Z)Z.hasOwnProperty(Gn)&&Gn!="style"&&Gn!="class"&&Pn.setAttribute(Gn,Z[Gn]);return e.content.appendChild(Pn)}e.content.appendChild(Fe)}function Dn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,a="",f=0;fce&&$e.from<=ce);_t++);if($e.to>=Fe)return e(i,a,f,F,Z,ae,oe);e(i,a.slice(0,$e.to-ce),f,F,null,ae,oe),F=null,a=a.slice($e.to-ce),ce=$e.to}}}function nr(e,t,i,a){var f=!a&&i.widgetNode;f&&e.map.push(e.pos,e.pos+t,f),!a&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",i.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=t,e.trailingSpace=!1}function qt(e,t,i){var a=e.markedSpans,f=e.text,F=0;if(!a){for(var Z=1;Zoe||Wr.collapsed&&sr.to==oe&&sr.from==oe)){if(sr.to!=null&&sr.to!=oe&>>sr.to&&(gt=sr.to,fn=""),Wr.className&&($t+=" "+Wr.className),Wr.css&&(_t=(_t?_t+";":"")+Wr.css),Wr.startStyle&&sr.from==oe&&(Cn+=" "+Wr.startStyle),Wr.endStyle&&sr.to==gt&&(Gn||(Gn=[])).push(Wr.endStyle,sr.to),Wr.title&&((Wn||(Wn={})).title=Wr.title),Wr.attributes)for(var ua in Wr.attributes)(Wn||(Wn={}))[ua]=Wr.attributes[ua];Wr.collapsed&&(!An||bt(An.marker,Wr)<0)&&(An=sr)}else sr.from>oe&>>sr.from&&(gt=sr.from)}if(Gn)for(var Wa=0;Wa=ae)break;for(var si=Math.min(ae,gt);;){if(Fe){var ni=oe+Fe.length;if(!An){var Ia=ni>si?Fe.slice(0,si-oe):Fe;t.addToken(t,Ia,$e?$e+$t:$t,Cn,oe+Ia.length==gt?fn:"",_t,Wn)}if(ni>=si){Fe=Fe.slice(si-oe),oe=si;break}oe=ni,Cn=""}Fe=f.slice(F,F=i[ce++]),$e=Gt(i[ce++],t.cm.options)}}}function Sr(e,t,i){this.line=t,this.rest=nt(t),this.size=this.rest?cr(ie(this.rest))-i+1:1,this.node=this.text=null,this.hidden=dt(e,t)}function zn(e,t,i){for(var a=[],f,F=t;F2&&F.push((oe.bottom+ce.top)/2-i.top)}}F.push(i.bottom-i.top)}}function de(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;ai)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}function Ie(e,t){t=ye(t);var i=cr(t),a=e.display.externalMeasured=new Sr(e.doc,t,i);a.lineN=i;var f=a.built=At(e,a);return a.text=f.pre,s(e.display.lineMeasure,f.pre),a}function Be(e,t,i,a){return pt(e,He(e,t),i,a)}function ot(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(F=oe-ae,f=F-1,t>=oe&&(Z="right")),f!=null){if(a=e[ce+2],ae==oe&&i==(a.insertLeft?"left":"right")&&(Z=i),i=="left"&&f==0)for(;ce&&e[ce-2]==e[ce-3]&&e[ce-1].insertLeft;)a=e[(ce-=3)+2],Z="left";if(i=="right"&&f==oe-ae)for(;ce=0&&!((i=e[f]).left!=i.right);f--);return i}function _n(e,t,i,a){var f=Vt(t.map,i,a),F=f.node,Z=f.start,ae=f.end,oe=f.collapse,ce;if(F.nodeType==3){for(var Fe=0;Fe<4;Fe++){for(;Z&&We(t.line.text.charAt(f.coverStart+Z));)--Z;for(;f.coverStart+ae0&&(oe=a="right");var $e;e.options.lineWrapping&&($e=F.getClientRects()).length>1?ce=$e[a=="right"?$e.length-1:0]:ce=F.getBoundingClientRect()}if(W&&y<9&&!Z&&(!ce||!ce.left&&!ce.right)){var _t=F.parentNode.getClientRects()[0];_t?ce={left:_t.left,right:_t.left+Ar(e.display),top:_t.top,bottom:_t.bottom}:ce=Pt}for(var gt=ce.top-t.rect.top,$t=ce.bottom-t.rect.top,fn=(gt+$t)/2,Cn=t.view.measure.heights,An=0;An=a.text.length?(oe=a.text.length,ce="before"):oe<=0&&(oe=0,ce="after"),!ae)return Z(ce=="before"?oe-1:oe,ce=="before");function Fe($t,fn,Cn){var An=ae[fn],Wn=An.level==1;return Z(Cn?$t-1:$t,Wn!=Cn)}var $e=kt(ae,oe,ce),_t=Bt,gt=Fe(oe,$e,ce=="before");return _t!=null&&(gt.other=Fe(oe,_t,ce!="before")),gt}function ln(e,t){var i=0;t=C(e.doc,t),e.options.lineWrapping||(i=Ar(e.display)*t.ch);var a=Sn(e.doc,t.line),f=In(a)+Oa(e.display);return{left:i,right:i,top:f,bottom:f+a.height}}function yn(e,t,i,a,f){var F=Wt(e,t,i);return F.xRel=f,a&&(F.outside=a),F}function dr(e,t,i){var a=e.doc;if(i+=e.display.viewOffset,i<0)return yn(a.first,0,null,-1,-1);var f=Kr(a,i),F=a.first+a.size-1;if(f>F)return yn(a.first+a.size-1,Sn(a,F).text.length,null,1,1);t<0&&(t=0);for(var Z=Sn(a,f);;){var ae=qr(e,Z,f,t,i),oe=Yt(Z,ae.ch+(ae.xRel>0||ae.outside>0?1:0));if(!oe)return ae;var ce=oe.find(1);if(ce.line==f)return ce;Z=Sn(a,f=ce.line)}}function kr(e,t,i,a){a-=mr(t);var f=t.text.length,F=Lt(function(Z){return pt(e,i,Z-1).bottom<=a},f,0);return f=Lt(function(Z){return pt(e,i,Z).top>a},F,f),{begin:F,end:f}}function Kn(e,t,i,a){i||(i=He(e,t));var f=Or(e,t,pt(e,i,a),"line").top;return kr(e,t,i,f)}function Dr(e,t,i,a){return e.bottom<=i?!1:e.top>i?!0:(a?e.left:e.right)>t}function qr(e,t,i,a,f){f-=In(t);var F=He(e,t),Z=mr(t),ae=0,oe=t.text.length,ce=!0,Fe=hn(t,e.doc.direction);if(Fe){var $e=(e.options.lineWrapping?Yr:Nr)(e,t,i,F,Fe,a,f);ce=$e.level!=1,ae=ce?$e.from:$e.to-1,oe=ce?$e.to:$e.from-1}var _t=null,gt=null,$t=Lt(function(vr){var sr=pt(e,F,vr);return sr.top+=Z,sr.bottom+=Z,Dr(sr,a,f,!1)?(sr.top<=f&&sr.left<=a&&(_t=vr,gt=sr),!0):!1},ae,oe),fn,Cn,An=!1;if(gt){var Wn=a-gt.left=Gn.bottom?1:0}return $t=Ke(t.text,$t,1),yn(i,$t,Cn,An,a-fn)}function Nr(e,t,i,a,f,F,Z){var ae=Lt(function($e){var _t=f[$e],gt=_t.level!=1;return Dr(Yn(e,Wt(i,gt?_t.to:_t.from,gt?"before":"after"),"line",t,a),F,Z,!0)},0,f.length-1),oe=f[ae];if(ae>0){var ce=oe.level!=1,Fe=Yn(e,Wt(i,ce?oe.from:oe.to,ce?"after":"before"),"line",t,a);Dr(Fe,F,Z,!0)&&Fe.top>Z&&(oe=f[ae-1])}return oe}function Yr(e,t,i,a,f,F,Z){var ae=kr(e,t,a,Z),oe=ae.begin,ce=ae.end;/\s/.test(t.text.charAt(ce-1))&&ce--;for(var Fe=null,$e=null,_t=0;_t=ce||gt.to<=oe)continue;var $t=gt.level!=1,fn=pt(e,a,$t?Math.min(ce,gt.to)-1:Math.max(oe,gt.from)).right,Cn=fnCn)&&(Fe=gt,$e=Cn)}return Fe||(Fe=f[f.length-1]),Fe.fromce&&(Fe={from:Fe.from,to:ce,level:Fe.level}),Fe}var Ir;function Mr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ir==null){Ir=u("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ir.appendChild(document.createTextNode("x")),Ir.appendChild(u("br"));Ir.appendChild(document.createTextNode("x"))}s(e.measure,Ir);var i=Ir.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),g(e.measure),i||1}function Ar(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=u("span","xxxxxxxxxx"),i=u("pre",[t],"CodeMirror-line-like");s(e.measure,i);var a=t.getBoundingClientRect(),f=(a.right-a.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function rr(e){for(var t=e.display,i={},a={},f=t.gutters.clientLeft,F=t.gutters.firstChild,Z=0;F;F=F.nextSibling,++Z){var ae=e.display.gutterSpecs[Z].className;i[ae]=F.offsetLeft+F.clientLeft+f,a[ae]=F.clientWidth}return{fixedPos:sa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function sa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ka(e){var t=Mr(e.display),i=e.options.lineWrapping,a=i&&Math.max(5,e.display.scroller.clientWidth/Ar(e.display)-3);return function(f){if(dt(e.doc,f))return 0;var F=0;if(f.widgets)for(var Z=0;Z0&&(ce=Sn(e.doc,oe.line).text).length==oe.ch){var Fe=q(ce,ce.length,e.options.tabSize)-ce.length;oe=Wt(oe.line,Math.max(0,Math.round((F-Ve(e.display).left)/Ar(e.display))-Fe))}return oe}function wn(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,a=0;at)&&(f.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=f.viewTo)Jn&&Nt(e.doc,t)f.viewFrom?wr(e):(f.viewFrom+=a,f.viewTo+=a);else if(t<=f.viewFrom&&i>=f.viewTo)wr(e);else if(t<=f.viewFrom){var F=$n(e,i,i+a,1);F?(f.view=f.view.slice(F.index),f.viewFrom=F.lineN,f.viewTo+=a):wr(e)}else if(i>=f.viewTo){var Z=$n(e,t,t,-1);Z?(f.view=f.view.slice(0,Z.index),f.viewTo=Z.lineN):wr(e)}else{var ae=$n(e,t,t,-1),oe=$n(e,i,i+a,1);ae&&oe?(f.view=f.view.slice(0,ae.index).concat(zn(e,ae.lineN,oe.lineN)).concat(f.view.slice(oe.index)),f.viewTo+=a):wr(e)}var ce=f.externalMeasured;ce&&(i=f.lineN&&t=a.viewTo)return;var F=a.view[wn(e,t)];if(F.node==null)return;var Z=F.changes||(F.changes=[]);he(Z,i)==-1&&Z.push(i)}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function $n(e,t,i,a){var f=wn(e,t),F,Z=e.display.view;if(!Jn||i==e.doc.first+e.doc.size)return{index:f,lineN:i};for(var ae=e.display.viewFrom,oe=0;oe0){if(f==Z.length-1)return null;F=ae+Z[f].size-t,f++}else F=ae-t;t+=F,i+=F}for(;Nt(e.doc,i)!=i;){if(f==(a<0?0:Z.length-1))return null;i+=a*Z[f-(a<0?1:0)].size,f+=a}return{index:f,lineN:i}}function ma(e,t,i){var a=e.display,f=a.view;f.length==0||t>=a.viewTo||i<=a.viewFrom?(a.view=zn(e,t,i),a.viewFrom=t):(a.viewFrom>t?a.view=zn(e,t,a.viewFrom).concat(a.view):a.viewFromi&&(a.view=a.view.slice(0,wn(e,i)))),a.viewTo=i}function li(e){for(var t=e.display.view,i=0,a=0;a=e.display.viewTo||ae.to().line0?t.blinker=setInterval(function(){e.hasFocus()||wi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Mi(e){e.state.focused||(e.display.input.focus(),ui(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,wi(e))},100)}function ui(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(st(e,"focus",e,t),e.state.focused=!0,j(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),L&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),wa(e)}function wi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(st(e,"blur",e,t),e.state.focused=!1,m(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Si(e){for(var t=e.display,i=t.lineDiv.offsetTop,a=0;a.005||Fe<-.005)&&(Br(f.line,Z),Ti(f.line),f.rest))for(var $e=0;$ee.display.sizerWidth){var _t=Math.ceil(ae/Ar(e.display));_t>e.display.maxLineLength&&(e.display.maxLineLength=_t,e.display.maxLine=f.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var t=0;t=Z&&(F=Kr(t,In(Sn(t,oe))-e.wrapper.clientHeight),Z=oe)}return{from:F,to:Math.max(Z,F+1)}}function co(e,t){if(Ct(e,"scrollCursorIntoView"))return;var i=e.display,a=i.sizer.getBoundingClientRect(),f=null;if(t.top+a.top<0?f=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!h){var F=u("div","\u200B",null,`position: absolute; - top: `+(t.top-i.viewOffset-Oa(e.display))+`px; +`,t);f==-1&&(f=e.length);var F=e.slice(t,e.charAt(f-1)=="\r"?f-1:f),Z=F.indexOf("\r");Z!=-1?(i.push(F.slice(0,Z)),t+=Z+1):(i.push(F),t=f+1)}return i}:function(e){return e.split(/\r\n?|\n/)},St=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},lt=function(){var e=u("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ge=null;function Le(e){if(ge!=null)return ge;var t=s(e,u("span","x")),i=t.getBoundingClientRect(),a=S(t,0,1).getBoundingClientRect();return ge=Math.abs(i.left-a.left)>1}var yt={},ft={};function qt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),yt[e]=t}function Xt(e,t){ft[e]=t}function it(e){if(typeof e=="string"&&ft.hasOwnProperty(e))e=ft[e];else if(e&&typeof e.name=="string"&&ft.hasOwnProperty(e.name)){var t=ft[e.name];typeof t=="string"&&(t={name:t}),e=pe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return it("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return it("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function xt(e,t){t=it(t);var i=yt[t.name];if(!i)return xt(e,"text/plain");var a=i(e,t);if(Rt.hasOwnProperty(t.name)){var f=Rt[t.name];for(var F in f){if(!f.hasOwnProperty(F))continue;a.hasOwnProperty(F)&&(a["_"+F]=a[F]),a[F]=f[F]}}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var Z in t.modeProps)a[Z]=t.modeProps[Z];return a}var Rt={};function un(e,t){var i=Rt.hasOwnProperty(e)?Rt[e]:Rt[e]={};B(t,i)}function _n(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var a in t){var f=t[a];f instanceof Array&&(f=f.concat([])),i[a]=f}return i}function ar(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function dr(e,t,i){return e.startState?e.startState(t,i):!0}var er=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};er.prototype.eol=function(){return this.pos>=this.string.length},er.prototype.sol=function(){return this.pos==this.lineStart},er.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},er.prototype.next=function(){if(this.post},er.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},er.prototype.skipToEnd=function(){this.pos=this.string.length},er.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},er.prototype.backUp=function(e){this.pos-=e},er.prototype.column=function(){return this.lastColumnPos0?null:(F&&t!==!1&&(this.pos+=F[0].length),F)}},er.prototype.current=function(){return this.string.slice(this.start,this.pos)},er.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},er.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},er.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function wn(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var a=0;;++a){var f=i.children[a],F=f.chunkSize();if(t=e.first&&ti?Wt(i,wn(e,i).text.length):k(t,wn(e,t.line).text.length)}function k(e,t){var i=e.ch;return i==null||i>t?Wt(e.line,t):i<0?Wt(e.line,0):e}function $(e,t){for(var i=[],a=0;athis.maxLookAhead&&(this.maxLookAhead=e),t},Y.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Y.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Y.fromSaved=function(e,t,i){return t instanceof ne?new Y(e,_n(e.mode,t.state),i,t.lookAhead):new Y(e,_n(e.mode,t),i)},Y.prototype.save=function(e){var t=e!==!1?_n(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ne(t,this.maxLookAhead):t};function we(e,t,i,a){var f=[e.state.modeGen],F={};gr(e,t.text,e.doc.mode,i,function(ce,Fe){return f.push(ce,Fe)},F,a);for(var Z=i.state,ae=function(ce){i.baseTokens=f;var Fe=e.state.overlays[ce],$e=1,_t=0;i.state=!0,gr(e,t.text,Fe.mode,i,function(gt,$t){for(var dn=$e;_tgt&&f.splice($e,1,gt,f[$e+1],Cn),$e+=2,_t=Math.min(gt,Cn)}if(!$t)return;if(Fe.opaque)f.splice(dn,$e-dn,gt,"overlay "+$t),$e=dn+2;else for(;dn<$e;dn+=2){var Rn=f[dn+1];f[dn+1]=(Rn?Rn+" ":"")+"overlay "+$t}},F),i.state=Z,i.baseTokens=null,i.baseTokenPos=1},oe=0;oee.options.maxHighlightLength&&_n(e.doc.mode,a.state),F=we(e,t,a);f&&(a.state=f),t.stateAfter=a.save(!f),t.styles=F.styles,F.classes?t.styleClasses=F.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function It(e,t,i){var a=e.doc,f=e.display;if(!a.mode.startState)return new Y(a,!0,t);var F=Un(e,t,i),Z=F>a.first&&wn(a,F-1).stateAfter,ae=Z?Y.fromSaved(a,Z,F):new Y(a,dr(a.mode),F);return a.iter(F,t,function(oe){ln(e,oe.text,ae);var ce=ae.line;oe.stateAfter=ce==t-1||ce%5==0||ce>=f.viewFrom&&cet.start)return F}throw new Error("Mode "+e.name+" failed to advance stream.")}var bn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Tn(e,t,i,a){var f=e.doc,F=f.mode,Z;t=C(f,t);var ae=wn(f,t.line),oe=It(e,t.line,i),ce=new er(ae.text,e.options.tabSize,oe),Fe;for(a&&(Fe=[]);(a||ce.pose.options.maxHighlightLength?(ae=!1,Z&&ln(e,t,a,Fe.pos),Fe.pos=t.length,$e=null):$e=pr(yn(i,Fe,a.state,_t),F),_t){var gt=_t[0].name;gt&&($e="m-"+($e?gt+" "+$e:gt))}if(!ae||ce!=$e){for(;oeZ;--ae){if(ae<=F.first)return F.first;var oe=wn(F,ae-1),ce=oe.stateAfter;if(ce&&(!i||ae+(ce instanceof ne?ce.lookAhead:0)<=F.modeFrontier))return ae;var Fe=q(oe.text,null,e.options.tabSize);(f==null||a>Fe)&&(f=ae-1,a=Fe)}return f}function Nn(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;a--){var f=wn(e,a).stateAfter;if(f&&(!(f instanceof ne)||a+f.lookAhead=t:F.to>t);(a||(a=[])).push(new yr(Z,F.from,oe?null:F.to))}}return a}function or(e,t,i){var a;if(e)for(var f=0;f=t:F.to>t);if(ae||F.from==t&&Z.type=="bookmark"&&(!i||F.marker.insertLeft)){var oe=F.from==null||(Z.inclusiveLeft?F.from<=t:F.from0&&ae)for(var Gn=0;Gn0)continue;var Fe=[oe,1],$e=Sn(ce.from,ae.from),_t=Sn(ce.to,ae.to);($e<0||!Z.inclusiveLeft&&!$e)&&Fe.push({from:ce.from,to:ae.from}),(_t>0||!Z.inclusiveRight&&!_t)&&Fe.push({from:ae.to,to:ce.to}),f.splice.apply(f,Fe),oe+=Fe.length-3}return f}function Xe(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!a||bt(a,F.marker)<0)&&(a=F.marker)}return a}function ct(e,t,i,a,f){var F=wn(e,t),Z=$n&&F.markedSpans;if(Z)for(var ae=0;ae=0&&$e<=0||Fe<=0&&$e>=0)continue;if(Fe<=0&&(oe.marker.inclusiveRight&&f.inclusiveLeft?Sn(ce.to,i)>=0:Sn(ce.to,i)>0)||Fe>=0&&(oe.marker.inclusiveRight&&f.inclusiveLeft?Sn(ce.from,a)<=0:Sn(ce.from,a)<0))return!0}}function be(e){for(var t;t=Tt(e);)e=t.find(-1,!0).line;return e}function Et(e){for(var t;t=nt(e);)e=t.find(1,!0).line;return e}function rt(e){for(var t,i;t=nt(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Nt(e,t){var i=wn(e,t),a=be(i);return i==a?t:ur(a)}function Dt(e,t){if(t>e.lastLine())return t;var i=wn(e,t),a;if(!dt(e,i))return t;for(;a=nt(i);)i=a.find(1,!0).line;return ur(i)+1}function dt(e,t){var i=$n&&t.markedSpans;if(i)for(var a=void 0,f=0;ft.maxLineLength&&(t.maxLineLength=f,t.maxLine=a)})}var rn=function(e,t,i){this.text=e,ze(this,t),this.height=i?i(this):1};rn.prototype.lineNo=function(){return ur(this)},Te(rn);function In(e,t,i,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Xe(e),ze(e,i);var f=a?a(e):1;f!=e.height&&Ur(e,f)}function cn(e){e.parent=null,Xe(e)}var mn={},zt={};function Gt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?zt:mn;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Lt(e,t){var i=D("span",null,null,L?"padding-right: .1px":null),a={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var f=0;f<=(t.rest?t.rest.length:0);f++){var F=f?t.rest[f-1]:t.line,Z=void 0;a.pos=0,a.addToken=vn,Jt(e.display.measure)&&(Z=fn(F,e.doc.direction))&&(a.addToken=cr(a.addToken,Z)),a.map=[];var ae=t!=e.display.externalMeasured&&ur(F);Zt(F,a,mt(e,F,ae)),F.styleClasses&&(F.styleClasses.bgClass&&(a.bgClass=K(F.styleClasses.bgClass,a.bgClass||"")),F.styleClasses.textClass&&(a.textClass=K(F.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(pn(e.display.measure))),f==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(L){var oe=a.content.lastChild;(/\bcm-tab\b/.test(oe.className)||oe.querySelector&&oe.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return st(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=K(a.pre.className,a.textClass||"")),a}function Ft(e){var t=u("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,i,a,f,F,Z){if(!t)return;var ae=e.splitSpaces?On(t,e.trailingSpace):t,oe=e.cm.state.specialChars,ce=!1,Fe;if(!oe.test(t))e.col+=t.length,Fe=document.createTextNode(ae),e.map.push(e.pos,e.pos+t.length,Fe),W&&y<9&&(ce=!0),e.pos+=t.length;else{Fe=document.createDocumentFragment();for(var $e=0;;){oe.lastIndex=$e;var _t=oe.exec(t),gt=_t?_t.index-$e:t.length-$e;if(gt){var $t=document.createTextNode(ae.slice($e,$e+gt));W&&y<9?Fe.appendChild(u("span",[$t])):Fe.appendChild($t),e.map.push(e.pos,e.pos+gt,$t),e.col+=gt,e.pos+=gt}if(!_t)break;$e+=gt+1;var dn=void 0;if(_t[0]==" "){var Cn=e.cm.options.tabSize,Rn=Cn-e.col%Cn;dn=Fe.appendChild(u("span",me(Rn),"cm-tab")),dn.setAttribute("role","presentation"),dn.setAttribute("cm-text"," "),e.col+=Rn}else _t[0]=="\r"||_t[0]==` +`?(dn=Fe.appendChild(u("span",_t[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),dn.setAttribute("cm-text",_t[0]),e.col+=1):(dn=e.cm.options.specialCharPlaceholder(_t[0]),dn.setAttribute("cm-text",_t[0]),W&&y<9?Fe.appendChild(u("span",[dn])):Fe.appendChild(dn),e.col+=1);e.map.push(e.pos,e.pos+1,dn),e.pos++}}if(e.trailingSpace=ae.charCodeAt(t.length-1)==32,i||a||f||ce||F||Z){var Wn=i||"";a&&(Wn+=a),f&&(Wn+=f);var An=u("span",[Fe],Wn,F);if(Z)for(var Gn in Z)Z.hasOwnProperty(Gn)&&Gn!="style"&&Gn!="class"&&An.setAttribute(Gn,Z[Gn]);return e.content.appendChild(An)}e.content.appendChild(Fe)}function On(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,a="",f=0;fce&&$e.from<=ce);_t++);if($e.to>=Fe)return e(i,a,f,F,Z,ae,oe);e(i,a.slice(0,$e.to-ce),f,F,null,ae,oe),F=null,a=a.slice($e.to-ce),ce=$e.to}}}function nr(e,t,i,a){var f=!a&&i.widgetNode;f&&e.map.push(e.pos,e.pos+t,f),!a&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",i.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=t,e.trailingSpace=!1}function Zt(e,t,i){var a=e.markedSpans,f=e.text,F=0;if(!a){for(var Z=1;Zoe||Br.collapsed&&sr.to==oe&&sr.from==oe)){if(sr.to!=null&&sr.to!=oe&>>sr.to&&(gt=sr.to,dn=""),Br.className&&($t+=" "+Br.className),Br.css&&(_t=(_t?_t+";":"")+Br.css),Br.startStyle&&sr.from==oe&&(Cn+=" "+Br.startStyle),Br.endStyle&&sr.to==gt&&(Gn||(Gn=[])).push(Br.endStyle,sr.to),Br.title&&((Wn||(Wn={})).title=Br.title),Br.attributes)for(var fa in Br.attributes)(Wn||(Wn={}))[fa]=Br.attributes[fa];Br.collapsed&&(!Rn||bt(Rn.marker,Br)<0)&&(Rn=sr)}else sr.from>oe&>>sr.from&&(gt=sr.from)}if(Gn)for(var Ga=0;Ga=ae)break;for(var li=Math.min(ae,gt);;){if(Fe){var ri=oe+Fe.length;if(!Rn){var Fa=ri>li?Fe.slice(0,li-oe):Fe;t.addToken(t,Fa,$e?$e+$t:$t,Cn,oe+Fa.length==gt?dn:"",_t,Wn)}if(ri>=li){Fe=Fe.slice(li-oe),oe=li;break}oe=ri,Cn=""}Fe=f.slice(F,F=i[ce++]),$e=Gt(i[ce++],t.cm.options)}}}function wr(e,t,i){this.line=t,this.rest=rt(t),this.size=this.rest?ur(ie(this.rest))-i+1:1,this.node=this.text=null,this.hidden=dt(e,t)}function zn(e,t,i){for(var a=[],f,F=t;F2&&F.push((oe.bottom+ce.top)/2-i.top)}}F.push(i.bottom-i.top)}}function de(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;ai)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}function Ie(e,t){t=be(t);var i=ur(t),a=e.display.externalMeasured=new wr(e.doc,t,i);a.lineN=i;var f=a.built=Lt(e,a);return a.text=f.pre,s(e.display.lineMeasure,f.pre),a}function Be(e,t,i,a){return pt(e,He(e,t),i,a)}function ot(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(F=oe-ae,f=F-1,t>=oe&&(Z="right")),f!=null){if(a=e[ce+2],ae==oe&&i==(a.insertLeft?"left":"right")&&(Z=i),i=="left"&&f==0)for(;ce&&e[ce-2]==e[ce-3]&&e[ce-1].insertLeft;)a=e[(ce-=3)+2],Z="left";if(i=="right"&&f==oe-ae)for(;ce=0&&!((i=e[f]).left!=i.right);f--);return i}function En(e,t,i,a){var f=Vt(t.map,i,a),F=f.node,Z=f.start,ae=f.end,oe=f.collapse,ce;if(F.nodeType==3){for(var Fe=0;Fe<4;Fe++){for(;Z&&We(t.line.text.charAt(f.coverStart+Z));)--Z;for(;f.coverStart+ae0&&(oe=a="right");var $e;e.options.lineWrapping&&($e=F.getClientRects()).length>1?ce=$e[a=="right"?$e.length-1:0]:ce=F.getBoundingClientRect()}if(W&&y<9&&!Z&&(!ce||!ce.left&&!ce.right)){var _t=F.parentNode.getClientRects()[0];_t?ce={left:_t.left,right:_t.left+Fr(e.display),top:_t.top,bottom:_t.bottom}:ce=At}for(var gt=ce.top-t.rect.top,$t=ce.bottom-t.rect.top,dn=(gt+$t)/2,Cn=t.view.measure.heights,Rn=0;Rn=a.text.length?(oe=a.text.length,ce="before"):oe<=0&&(oe=0,ce="after"),!ae)return Z(ce=="before"?oe-1:oe,ce=="before");function Fe($t,dn,Cn){var Rn=ae[dn],Wn=Rn.level==1;return Z(Cn?$t-1:$t,Wn!=Cn)}var $e=kt(ae,oe,ce),_t=Bt,gt=Fe(oe,$e,ce=="before");return _t!=null&&(gt.other=Fe(oe,_t,ce!="before")),gt}function sn(e,t){var i=0;t=C(e.doc,t),e.options.lineWrapping||(i=Fr(e.display)*t.ch);var a=wn(e.doc,t.line),f=kn(a)+Pa(e.display);return{left:i,right:i,top:f,bottom:f+a.height}}function xn(e,t,i,a,f){var F=Wt(e,t,i);return F.xRel=f,a&&(F.outside=a),F}function hr(e,t,i){var a=e.doc;if(i+=e.display.viewOffset,i<0)return xn(a.first,0,null,-1,-1);var f=Kr(a,i),F=a.first+a.size-1;if(f>F)return xn(a.first+a.size-1,wn(a,F).text.length,null,1,1);t<0&&(t=0);for(var Z=wn(a,f);;){var ae=Qr(e,Z,f,t,i),oe=Yt(Z,ae.ch+(ae.xRel>0||ae.outside>0?1:0));if(!oe)return ae;var ce=oe.find(1);if(ce.line==f)return ce;Z=wn(a,f=ce.line)}}function Pr(e,t,i,a){a-=mr(t);var f=t.text.length,F=Pt(function(Z){return pt(e,i,Z-1).bottom<=a},f,0);return f=Pt(function(Z){return pt(e,i,Z).top>a},F,f),{begin:F,end:f}}function Kn(e,t,i,a){i||(i=He(e,t));var f=Tr(e,t,pt(e,i,a),"line").top;return Pr(e,t,i,f)}function Or(e,t,i,a){return e.bottom<=i?!1:e.top>i?!0:(a?e.left:e.right)>t}function Qr(e,t,i,a,f){f-=kn(t);var F=He(e,t),Z=mr(t),ae=0,oe=t.text.length,ce=!0,Fe=fn(t,e.doc.direction);if(Fe){var $e=(e.options.lineWrapping?Xr:Mr)(e,t,i,F,Fe,a,f);ce=$e.level!=1,ae=ce?$e.from:$e.to-1,oe=ce?$e.to:$e.from-1}var _t=null,gt=null,$t=Pt(function(vr){var sr=pt(e,F,vr);return sr.top+=Z,sr.bottom+=Z,Or(sr,a,f,!1)?(sr.top<=f&&sr.left<=a&&(_t=vr,gt=sr),!0):!1},ae,oe),dn,Cn,Rn=!1;if(gt){var Wn=a-gt.left=Gn.bottom?1:0}return $t=Ke(t.text,$t,1),xn(i,$t,Cn,Rn,a-dn)}function Mr(e,t,i,a,f,F,Z){var ae=Pt(function($e){var _t=f[$e],gt=_t.level!=1;return Or(Yn(e,Wt(i,gt?_t.to:_t.from,gt?"before":"after"),"line",t,a),F,Z,!0)},0,f.length-1),oe=f[ae];if(ae>0){var ce=oe.level!=1,Fe=Yn(e,Wt(i,ce?oe.from:oe.to,ce?"after":"before"),"line",t,a);Or(Fe,F,Z,!0)&&Fe.top>Z&&(oe=f[ae-1])}return oe}function Xr(e,t,i,a,f,F,Z){var ae=Pr(e,t,a,Z),oe=ae.begin,ce=ae.end;/\s/.test(t.text.charAt(ce-1))&&ce--;for(var Fe=null,$e=null,_t=0;_t=ce||gt.to<=oe)continue;var $t=gt.level!=1,dn=pt(e,a,$t?Math.min(ce,gt.to)-1:Math.max(oe,gt.from)).right,Cn=dnCn)&&(Fe=gt,$e=Cn)}return Fe||(Fe=f[f.length-1]),Fe.fromce&&(Fe={from:Fe.from,to:ce,level:Fe.level}),Fe}var kr;function Wr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(kr==null){kr=u("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)kr.appendChild(document.createTextNode("x")),kr.appendChild(u("br"));kr.appendChild(document.createTextNode("x"))}s(e.measure,kr);var i=kr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),g(e.measure),i||1}function Fr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=u("span","xxxxxxxxxx"),i=u("pre",[t],"CodeMirror-line-like");s(e.measure,i);var a=t.getBoundingClientRect(),f=(a.right-a.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function rr(e){for(var t=e.display,i={},a={},f=t.gutters.clientLeft,F=t.gutters.firstChild,Z=0;F;F=F.nextSibling,++Z){var ae=e.display.gutterSpecs[Z].className;i[ae]=F.offsetLeft+F.clientLeft+f,a[ae]=F.clientWidth}return{fixedPos:Zr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function Zr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xa(e){var t=Wr(e.display),i=e.options.lineWrapping,a=i&&Math.max(5,e.display.scroller.clientWidth/Fr(e.display)-3);return function(f){if(dt(e.doc,f))return 0;var F=0;if(f.widgets)for(var Z=0;Z0&&(ce=wn(e.doc,oe.line).text).length==oe.ch){var Fe=q(ce,ce.length,e.options.tabSize)-ce.length;oe=Wt(oe.line,Math.max(0,Math.round((F-Ve(e.display).left)/Fr(e.display))-Fe))}return oe}function aa(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,a=0;at)&&(f.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=f.viewTo)$n&&Nt(e.doc,t)f.viewFrom?ia(e):(f.viewFrom+=a,f.viewTo+=a);else if(t<=f.viewFrom&&i>=f.viewTo)ia(e);else if(t<=f.viewFrom){var F=Na(e,i,i+a,1);F?(f.view=f.view.slice(F.index),f.viewFrom=F.lineN,f.viewTo+=a):ia(e)}else if(i>=f.viewTo){var Z=Na(e,t,t,-1);Z?(f.view=f.view.slice(0,Z.index),f.viewTo=Z.lineN):ia(e)}else{var ae=Na(e,t,t,-1),oe=Na(e,i,i+a,1);ae&&oe?(f.view=f.view.slice(0,ae.index).concat(zn(e,ae.lineN,oe.lineN)).concat(f.view.slice(oe.index)),f.viewTo+=a):ia(e)}var ce=f.externalMeasured;ce&&(i=f.lineN&&t=a.viewTo)return;var F=a.view[aa(e,t)];if(F.node==null)return;var Z=F.changes||(F.changes=[]);he(Z,i)==-1&&Z.push(i)}function ia(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Na(e,t,i,a){var f=aa(e,t),F,Z=e.display.view;if(!$n||i==e.doc.first+e.doc.size)return{index:f,lineN:i};for(var ae=e.display.viewFrom,oe=0;oe0){if(f==Z.length-1)return null;F=ae+Z[f].size-t,f++}else F=ae-t;t+=F,i+=F}for(;Nt(e.doc,i)!=i;){if(f==(a<0?0:Z.length-1))return null;i+=a*Z[f-(a<0?1:0)].size,f+=a}return{index:f,lineN:i}}function jn(e,t,i){var a=e.display,f=a.view;f.length==0||t>=a.viewTo||i<=a.viewFrom?(a.view=zn(e,t,i),a.viewFrom=t):(a.viewFrom>t?a.view=zn(e,t,a.viewFrom).concat(a.view):a.viewFromi&&(a.view=a.view.slice(0,aa(e,i)))),a.viewTo=i}function hn(e){for(var t=e.display.view,i=0,a=0;a=e.display.viewTo||ae.to().line0?t.blinker=setInterval(function(){e.hasFocus()||wi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Mi(e){e.state.focused||(e.display.input.focus(),ui(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,wi(e))},100)}function ui(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(st(e,"focus",e,t),e.state.focused=!0,j(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),L&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Da(e)}function wi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(st(e,"blur",e,t),e.state.focused=!1,m(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Si(e){for(var t=e.display,i=t.lineDiv.offsetTop,a=0;a.005||Fe<-.005)&&(Ur(f.line,Z),Ti(f.line),f.rest))for(var $e=0;$ee.display.sizerWidth){var _t=Math.ceil(ae/Fr(e.display));_t>e.display.maxLineLength&&(e.display.maxLineLength=_t,e.display.maxLine=f.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var t=0;t=Z&&(F=Kr(t,kn(wn(t,oe))-e.wrapper.clientHeight),Z=oe)}return{from:F,to:Math.max(Z,F+1)}}function co(e,t){if(Ct(e,"scrollCursorIntoView"))return;var i=e.display,a=i.sizer.getBoundingClientRect(),f=null;if(t.top+a.top<0?f=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!h){var F=u("div","\u200B",null,`position: absolute; + top: `+(t.top-i.viewOffset-Pa(e.display))+`px; height: `+(t.bottom-t.top+tt(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(F),F.scrollIntoView(f),e.display.lineSpace.removeChild(F)}}function Do(e,t,i,a){a==null&&(a=0);var f;!e.options.lineWrapping&&t==i&&(t=t.ch?Wt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Wt(t.line,t.ch+1,"before"):t);for(var F=0;F<5;F++){var Z=!1,ae=Yn(e,t),oe=!i||i==t?ae:Yn(e,i);f={left:Math.min(ae.left,oe.left),top:Math.min(ae.top,oe.top)-a,right:Math.max(ae.left,oe.left),bottom:Math.max(ae.bottom,oe.bottom)+a};var ce=Oi(e,f),Fe=e.doc.scrollTop,$e=e.doc.scrollLeft;if(ce.scrollTop!=null&&(Ai(e,ce.scrollTop),Math.abs(e.doc.scrollTop-Fe)>1&&(Z=!0)),ce.scrollLeft!=null&&(ja(e,ce.scrollLeft),Math.abs(e.doc.scrollLeft-$e)>1&&(Z=!0)),!Z)break}return f}function Gi(e,t){var i=Oi(e,t);i.scrollTop!=null&&Ai(e,i.scrollTop),i.scrollLeft!=null&&ja(e,i.scrollLeft)}function Oi(e,t){var i=e.display,a=Mr(e.display);t.top<0&&(t.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,F=se(e),Z={};t.bottom-t.top>F&&(t.bottom=t.top+F);var ae=e.doc.height+Re(i),oe=t.topae-a;if(t.topf+F){var Fe=Math.min(t.top,(ce?ae:t.bottom)-F);Fe!=f&&(Z.scrollTop=Fe)}var $e=e.options.fixedGutter?0:i.gutters.offsetWidth,_t=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-$e,gt=ke(e)-i.gutters.offsetWidth,$t=t.right-t.left>gt;return $t&&(t.right=t.left+gt),t.left<10?Z.scrollLeft=0:t.left<_t?Z.scrollLeft=Math.max(0,t.left+$e-($t?0:10)):t.right>gt+_t-3&&(Z.scrollLeft=t.right+($t?0:10)-gt),Z}function Vi(e,t){if(t==null)return;Xi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function yi(e){Xi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Di(e,t,i){(t!=null||i!=null)&&Xi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function fo(e,t){Xi(e),e.curOp.scrollToPos=t}function Xi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=ln(e,t.from),a=ln(e,t.to);Ri(e,i,a,t.margin)}}function Ri(e,t,i,a){var f=Oi(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-a,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+a});Di(e,f.scrollLeft,f.scrollTop)}function Ai(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;I||ji(e,{top:t}),bi(e,t,!0),I&&ji(e),Ni(e,100)}function bi(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function ja(e,t,i,a){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)return;e.doc.scrollLeft=t,Fr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function hi(e){var t=e.display,i=t.gutters.offsetWidth,a=Math.round(e.doc.height+Re(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:a,scrollHeight:a+tt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var pi=function(e,t,i){this.cm=i;var a=this.vert=u("div",[u("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=u("div",[u("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=f.tabIndex=-1,e(a),e(f),Ue(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),Ue(f,"scroll",function(){f.clientWidth&&t(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,W&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var f=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var F=e.viewWidth-e.barLeft-(i?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+F)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?a:0,bottom:t?a:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=o&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},pi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function a(){var f=e.getBoundingClientRect(),F=i=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);F!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ei=function(){};Ei.prototype.update=function(){return{bottom:0,right:0}},Ei.prototype.setScrollLeft=function(){},Ei.prototype.setScrollTop=function(){},Ei.prototype.clear=function(){};function mi(e,t){t||(t=hi(e));var i=e.display.barWidth,a=e.display.barHeight;Yi(e,t);for(var f=0;f<4&&i!=e.display.barWidth||a!=e.display.barHeight;f++)i!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,hi(e)),i=e.display.barWidth,a=e.display.barHeight}function Yi(e,t){var i=e.display,a=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=a.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=a.bottom)+"px",i.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=a.bottom+"px",i.scrollbarFiller.style.width=a.right+"px"):i.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=a.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var $i={native:pi,null:Ei};function Ji(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&m(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?ja(e,t):Ai(e,t)},e),e.display.scrollbars.addClass&&j(e.display.wrapper,e.display.scrollbars.addClass)}var Ii=0;function ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ii},Gr(e.curOp)}function _i(e){var t=e.curOp;t&&Ln(t,function(i){for(var a=0;a=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ei(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ao(e){e.updatedDisplay=e.mustUpdate&&xi(e.cm,e.update)}function ho(e){var t=e.cm,i=t.display;e.updatedDisplay&&Si(t),e.barMeasure=hi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Be(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+tt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-ke(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function ao(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,a=It(e,t.highlightFrontier),f=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(F){if(a.line>=e.display.viewFrom){var Z=F.styles,ae=F.text.length>e.options.maxHighlightLength?xn(t.mode,a.state):null,oe=we(e,F,a,!0);ae&&(a.state=ae),F.styles=oe.styles;var ce=F.styleClasses,Fe=oe.classes;Fe?F.styleClasses=Fe:ce&&(F.styleClasses=null);for(var $e=!Z||Z.length!=F.styles.length||ce!=Fe&&(!ce||!Fe||ce.bgClass!=Fe.bgClass||ce.textClass!=Fe.textClass),_t=0;!$e&&_ti)return Ni(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),f.length&&za(e,function(){for(var F=0;F=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&li(e)==0)return!1;ca(e)&&(wr(e),t.dims=rr(e));var f=a.first+a.size,F=Math.max(t.visible.from-e.options.viewportMargin,a.first),Z=Math.min(f,t.visible.to+e.options.viewportMargin);i.viewFromZ&&i.viewTo-Z<20&&(Z=Math.min(f,i.viewTo)),Jn&&(F=Nt(e.doc,F),Z=Dt(e.doc,Z));var ae=F!=i.viewFrom||Z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;ma(e,F,Z),i.viewOffset=In(Sn(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var oe=li(e);if(!ae&&oe==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var ce=oo(e);return oe>4&&(i.lineDiv.style.display="none"),vo(e,i.updateLineNumbers,t.dims),oe>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,so(ce),g(i.cursorDiv),g(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,ae&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Ni(e,400)),i.updateLineNumbers=null,!0}function Qi(e,t){for(var i=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==ke(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Re(e.display)-se(e),i.top)}),t.visible=ki(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=ki(e.display,e.doc,i));if(!xi(e,t))break;Si(e);var f=hi(e);ea(e),mi(e,f),Jr(e,f),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,t){var i=new ei(e,t);if(xi(e,i)){Si(e),Qi(e,i);var a=hi(e);ea(e),mi(e,a),Jr(e,a),i.finish()}}function vo(e,t,i){var a=e.display,f=e.options.lineNumbers,F=a.lineDiv,Z=F.firstChild;function ae($t){var fn=$t.nextSibling;return L&&o&&e.display.currentWheelTarget==$t?$t.style.display="none":$t.parentNode.removeChild($t),fn}for(var oe=a.view,ce=a.viewFrom,Fe=0;Fe-1&&(gt=!1),ra(e,$e,ce,i)),gt&&(g($e.lineNumber),$e.lineNumber.appendChild(document.createTextNode(da(e.options,ce)))),Z=$e.node.nextSibling}ce+=$e.size}for(;Z;)Z=ae(Z)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Jr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+tt(e)+"px"}function Fr(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var a=sa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,f=t.gutters.offsetWidth,F=a+"px",Z=0;ZZ.clientWidth,oe=Z.scrollHeight>Z.clientHeight;if(!(a&&ae||f&&oe))return;if(f&&o&&L){e:for(var ce=t.target,Fe=F.view;ce!=Z;ce=ce.parentNode)for(var $e=0;$e=0&&Tn(e,a.to())<=0)return i}return-1};var $r=function(e,t){this.anchor=e,this.head=t};$r.prototype.from=function(){return _r(this.anchor,this.head)},$r.prototype.to=function(){return Er(this.anchor,this.head)},$r.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function br(e,t,i){var a=e&&e.options.selectionsMayTouch,f=t[i];t.sort(function(_t,gt){return Tn(_t.from(),gt.from())}),i=he(t,f);for(var F=1;F0:oe>=0){var ce=_r(ae.from(),Z.from()),Fe=Er(ae.to(),Z.to()),$e=ae.empty()?Z.from()==Z.head:ae.from()==ae.head;F<=i&&--i,t.splice(--F,2,new $r($e?Fe:ce,$e?ce:Fe))}}return new Ga(t,i)}function kn(e,t){return new Ga([new $r(e,t||e)],0)}function Qn(e){return e.text?Wt(e.from.line+e.text.length-1,ie(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function jr(e,t){if(Tn(e,t.from)<0)return e;if(Tn(e,t.to)<=0)return Qn(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=Qn(t).ch-t.to.ch),Wt(i,a)}function la(e,t){for(var i=[],a=0;a1&&e.remove(ae.line+1,$t-1),e.insert(ae.line+1,An)}Vn(e,"change",e,t)}function Da(e,t,i){function a(f,F,Z){if(f.linked)for(var ae=0;ae1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ie(e.done)}function Es(e,t,i,a){var f=e.history;f.undone.length=0;var F=+new Date,Z,ae;if((f.lastOp==a||f.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&f.lastModTime>F-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(Z=pl(f,f.lastOp==a)))ae=ie(Z.changes),Tn(t.from,t.to)==0&&Tn(t.from,ae.to)==0?ae.to=Qn(t):Z.changes.push(rs(e,t));else{var oe=ie(f.done);for((!oe||!oe.ranges)&&Go(e.sel,f.done),Z={changes:[rs(e,t)],generation:f.generation},f.done.push(Z);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(i),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=F,f.lastOp=f.lastSelOp=a,f.lastOrigin=f.lastSelOrigin=t.origin,ae||st(e,"historyAdded")}function ml(e,t,i,a){var f=t.charAt(0);return f=="*"||f=="+"&&i.ranges.length==a.ranges.length&&i.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,i,a){var f=e.history,F=a&&a.origin;i==f.lastSelOp||F&&f.lastSelOrigin==F&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==F||ml(e,F,ie(f.done),t))?f.done[f.done.length-1]=t:Go(t,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=F,f.lastSelOp=i,a&&a.clearRedo!==!1&&bs(f.undone)}function Go(e,t){var i=ie(t);i&&i.ranges&&i.equals(e)||t.push(e)}function _s(e,t,i,a){var f=t["spans_"+e.id],F=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,a),function(Z){Z.markedSpans&&((f||(f=t["spans_"+e.id]={}))[F]=Z.markedSpans),++F})}function gl(e){if(!e)return null;for(var t,i=0;i-1&&(ie(ae)[$e]=ce[$e],delete ce[$e]))}}return a}function as(e,t,i,a){if(a){var f=e.anchor;if(i){var F=Tn(t,f)<0;F!=Tn(i,f)<0?(f=t,t=i):F!=Tn(t,i)<0&&(t=i)}return new $r(f,t)}else return new $r(i||t,t)}function Vo(e,t,i,a,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Xa(e,new Ga([as(e.sel.primary(),t,i,f)],0),a)}function Cs(e,t,i){for(var a=[],f=e.cm&&(e.cm.display.shift||e.extend),F=0;F=t.ch:ae.to>t.ch))){if(f&&(st(oe,"beforeCursorEnter"),oe.explicitlyCleared))if(F.markedSpans){--Z;continue}else break;if(!oe.atomic)continue;if(i){var $e=oe.find(a<0?1:-1),_t=void 0;if((a<0?Fe:ce)&&($e=Rs(e,$e,-a,$e&&$e.line==t.line?F:null)),$e&&$e.line==t.line&&(_t=Tn($e,i))&&(a<0?_t<0:_t>0))return yo(e,$e,t,a,f)}var gt=oe.find(a<0?-1:1);return(a<0?ce:Fe)&&(gt=Rs(e,gt,a,gt.line==t.line?F:null)),gt?yo(e,gt,t,a,f):null}}return t}function Yo(e,t,i,a,f){var F=a||1,Z=yo(e,t,i,F,f)||!f&&yo(e,t,i,F,!0)||yo(e,t,i,-F,f)||!f&&yo(e,t,i,-F,!0);return Z||(e.cantEdit=!0,Wt(e.first,0))}function Rs(e,t,i,a){return i<0&&t.ch==0?t.line>e.first?C(e,Wt(t.line-1)):null:i>0&&t.ch==(a||Sn(e,t.line)).text.length?t.line=0;--f)Ls(e,{from:a[f].from,to:a[f].to,text:f?[""]:t.text,origin:t.origin});else Ls(e,t)}function Ls(e,t){if(t.text.length==1&&t.text[0]==""&&Tn(t.from,t.to)==0)return;var i=la(e,t);Es(e,t,i,e.cm?e.cm.curOp.id:NaN),Po(e,t,i,Cr(e,t));var a=[];Da(e,function(f,F){!F&&he(a,f.history)==-1&&(Ns(f.history,t),a.push(f.history)),Po(f,t,null,Cr(f,t))})}function $o(e,t,i){var a=e.cm&&e.cm.state.suppressEdits;if(a&&!i)return;for(var f=e.history,F,Z=e.sel,ae=t=="undo"?f.done:f.undone,oe=t=="undo"?f.undone:f.done,ce=0;ce=0;--gt){var $t=_t(gt);if($t)return $t.v}}function Ms(e,t){if(t==0)return;if(e.first+=t,e.sel=new Ga(Oe(e.sel.ranges,function(f){return new $r(Wt(f.anchor.line+t,f.anchor.ch),Wt(f.head.line+t,f.head.ch))}),e.sel.primIndex),e.cm){Zt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,a=i.viewFrom;ae.lastLine())return;if(t.from.lineF&&(t={from:t.from,to:Wt(F,Sn(e,F).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Vr(e,t.from,t.to),i||(i=la(e,t)),e.cm?El(e.cm,t,a):Hi(e,t,a),Xo(e,i,Pe),e.cantEdit&&Yo(e,Wt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var a=e.doc,f=e.display,F=t.from,Z=t.to,ae=!1,oe=F.line;e.options.lineWrapping||(oe=cr(ye(Sn(a,F.line))),a.iter(oe,Z.line+1,function(gt){if(gt==f.maxLine)return ae=!0,!0})),a.sel.contains(t.from,t.to)>-1&&Ne(e),Hi(a,t,i,Ka(e)),e.options.lineWrapping||(a.iter(oe,F.line+t.text.length,function(gt){var $t=sn(gt);$t>f.maxLineLength&&(f.maxLine=gt,f.maxLineLength=$t,f.maxLineChanged=!0,ae=!1)}),ae&&(e.curOp.updateMaxLine=!0)),jn(a,F.line),Ni(e,400);var ce=t.text.length-(Z.line-F.line)-1;t.full?Zt(e):F.line==Z.line&&t.text.length==1&&!gi(e.doc,t)?Rn(e,F.line,"text"):Zt(e,F.line,Z.line+1,ce);var Fe=Se(e,"changes"),$e=Se(e,"change");if($e||Fe){var _t={from:F,to:Z,text:t.text,removed:t.removed,origin:t.origin};$e&&Vn(e,"change",e,_t),Fe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(_t)}e.display.selForContextMenu=null}function Eo(e,t,i,a,f){var F;a||(a=i),Tn(a,i)<0&&(F=[a,i],i=F[0],a=F[1]),typeof t=="string"&&(t=e.splitLines(t)),bo(e,{from:i,to:a,text:t,origin:f})}function ks(e,t,i,a){i1||!(this.children[0]instanceof Mo))){var ae=[];this.collapse(ae),this.children=[new Mo(ae)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var Z=f.lines.length%25+25,ae=Z;ae10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var a=0;ae.display.maxLineLength&&(e.display.maxLine=ce,e.display.maxLineLength=Fe,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&Zt(e,a,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Vn(e,"markerCleared",e,this,a,f),t&&_i(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,a,f=0;f0||Z==0&&F.clearWhenEmpty!==!1)return F;if(F.replacedWith&&(F.collapsed=!0,F.widgetNode=D("span",[F.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||F.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(F.widgetNode.insertLeft=!0)),F.collapsed){if(ct(e,t.line,t,i,F)||t.line!=i.line&&ct(e,i.line,t,i,F))throw new Error("Inserting collapsed marker partially overlapping an existing one");Zn()}F.addToHistory&&Es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var ae=t.line,oe=e.cm,ce;if(e.iter(ae,i.line+1,function($e){oe&&F.collapsed&&!oe.options.lineWrapping&&ye($e)==oe.display.maxLine&&(ce=!0),F.collapsed&&ae!=t.line&&Br($e,0),Hr($e,new yr(F,ae==t.line?t.ch:null,ae==i.line?i.ch:null)),++ae}),F.collapsed&&e.iter(t.line,i.line+1,function($e){dt(e,$e)&&Br($e,0)}),F.clearOnEnter&&Ue(F,"beforeCursorEnter",function(){return F.clear()}),F.readOnly&&(Tr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),F.collapsed&&(F.id=++Us,F.atomic=!0),oe){if(ce&&(oe.curOp.updateMaxLine=!0),F.collapsed)Zt(oe,t.line,i.line+1);else if(F.className||F.startStyle||F.endStyle||F.css||F.attributes||F.title)for(var Fe=t.line;Fe<=i.line;Fe++)Rn(oe,Fe,"text");F.atomic&&Os(oe.doc),Vn(oe,"markerAdded",oe,F)}return F}var No=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;oe--)bo(this,a[oe]);ae?Ss(this,ae):this.cm&&yi(this.cm)}),undo:Ea(function(){$o(this,"undo")}),redo:Ea(function(){$o(this,"redo")}),undoSelection:Ea(function(){$o(this,"undo",!0)}),redoSelection:Ea(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,a=0;a=e.ch)&&t.push(f.marker.parent||f.marker)}return t},findMarks:function(e,t,i){e=C(this,e),t=C(this,t);var a=[],f=e.line;return this.iter(e.line,t.line+1,function(F){var Z=F.markedSpans;if(Z)for(var ae=0;ae=oe.to||oe.from==null&&f!=e.line||oe.from!=null&&f==t.line&&oe.from>=t.ch)&&(!i||i(oe.marker))&&a.push(oe.marker.parent||oe.marker)}++f}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var a=0;ae)return t=e,!0;e-=F,++i}),C(this,Wt(i,t))},indexFromPos:function(e){e=C(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Fe=e.dataTransfer.getData("Text");if(Fe){var $e;if(t.state.draggingText&&!t.state.draggingText.copy&&($e=t.listSelections()),Xo(t.doc,kn(i,i)),$e)for(var _t=0;_t<$e.length;++_t)Eo(t.doc,"",$e[_t].anchor,$e[_t].head,"drag");t.replaceSelection(Fe,"around","paste"),t.display.input.focus()}}catch(gt){}}}function Ol(e,t){if(W&&(!e.state.draggingText||+new Date-Bs<100)){Me(t);return}if(Ct(e,t)||Pa(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!_){var i=u("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),p&&i.parentNode.removeChild(i)}}function Dl(e,t){var i=xa(e,t);if(!i)return;var a=document.createDocumentFragment();qa(e,i,a),e.display.dragCursor||(e.display.dragCursor=u("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),s(e.display.dragCursor,a)}function Ws(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Hs(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),i=[],a=0;a=0;ae--)Eo(e.doc,"",a[ae].from,a[ae].to,"+delete");yi(e)})}function os(e,t,i){var a=Ke(e.text,t+i,i);return a<0||a>e.text.length?null:a}function ss(e,t,i){var a=os(e,t.ch,i);return a==null?null:new Wt(t.line,a,i<0?"after":"before")}function ls(e,t,i,a,f){if(e){t.doc.direction=="rtl"&&(f=-f);var F=hn(i,t.doc.direction);if(F){var Z=f<0?ie(F):F[0],ae=f<0==(Z.level==1),oe=ae?"after":"before",ce;if(Z.level>0||t.doc.direction=="rtl"){var Fe=He(t,i);ce=f<0?i.text.length-1:0;var $e=pt(t,Fe,ce).top;ce=Lt(function(_t){return pt(t,Fe,_t).top==$e},f<0==(Z.level==1)?Z.from:Z.to-1,ce),oe=="before"&&(ce=os(i,ce,1))}else ce=f<0?Z.to:Z.from;return new Wt(a,ce,oe)}}return new Wt(a,f<0?i.text.length:0,f<0?"before":"after")}function kl(e,t,i,a){var f=hn(t,e.doc.direction);if(!f)return ss(t,i,a);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var F=kt(f,i.ch,i.sticky),Z=f[F];if(e.doc.direction=="ltr"&&Z.level%2==0&&(a>0?Z.to>i.ch:Z.from=Z.from&&_t>=Fe.begin)){var gt=$e?"before":"after";return new Wt(i.line,_t,gt)}}var $t=function(An,Wn,Pn){for(var Gn=function(ua,Wa){return Wa?new Wt(i.line,ae(ua,1),"before"):new Wt(i.line,ua,"after")};An>=0&&An0==(vr.level!=1),Wr=sr?Pn.begin:ae(Pn.end,-1);if(vr.from<=Wr&&Wr0?Fe.end:ae(Fe.begin,-1);return Cn!=null&&!(a>0&&Cn==t.text.length)&&(fn=$t(a>0?0:f.length-1,a,ce(Cn)),fn)?fn:null}var Fo={selectAll:As,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Pe)},killLine:function(e){return Co(e,function(t){if(t.empty()){var i=Sn(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)f=new Wt(f.line,f.ch+1),e.replaceRange(F.charAt(f.ch-1)+F.charAt(f.ch-2),Wt(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var Z=Sn(e.doc,f.line-1).text;Z&&(f=new Wt(f.line,1),e.replaceRange(F.charAt(0)+e.doc.lineSeparator()+Z.charAt(Z.length-1),Wt(f.line-1,Z.length-1),f,"+transpose"))}}i.push(new $r(f,f))}e.setSelections(i)})},newlineAndIndent:function(e){return za(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var a=0;ae&&Tn(t,this.pos)==0&&i==this.button};var Wo,Ho;function Wl(e,t){var i=+new Date;return Ho&&Ho.compare(i,e,t)?(Wo=Ho=null,"triple"):Wo&&Wo.compare(i,e,t)?(Ho=new cs(i,e,t),Wo=null,"double"):(Wo=new cs(i,e,t),Ho=null,"single")}function el(e){var t=this,i=t.display;if(Ct(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Pa(i,e)){L||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(ds(t,e))return;var a=xa(t,e),f=Je(e),F=a?Wl(a,f):"single";if(window.focus(),f==1&&t.state.selectingText&&t.state.selectingText(e),a&&Hl(t,f,a,F,e))return;f==1?a?zl(t,a,F,e):rt(e)==i.scroller&&le(e):f==2?(a&&Vo(t.doc,a),setTimeout(function(){return i.input.focus()},20)):f==3&&(P?t.display.input.onContextMenu(e):no(t))}function Hl(e,t,i,a,f){var F="Click";return a=="double"?F="Double"+F:a=="triple"&&(F="Triple"+F),F=(t==1?"Left":t==2?"Middle":"Right")+F,Bo(e,Gs(F,f),f,function(Z){if(typeof Z=="string"&&(Z=Fo[Z]),!Z)return!1;var ae=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ae=Z(e,i)!=Ye}finally{e.state.suppressEdits=!1}return ae})}function Kl(e,t,i){var a=e.getOption("configureMouse"),f=a?a(e,t,i):{};if(f.unit==null){var F=l?i.shiftKey&&i.metaKey:i.altKey;f.unit=F?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||i.shiftKey),f.addNew==null&&(f.addNew=o?i.metaKey:i.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(o?i.altKey:i.ctrlKey)),f}function zl(e,t,i,a){W?setTimeout(U(Mi,e),0):e.curOp.focus=N();var f=Kl(e,i,a),F=e.doc.sel,Z;e.options.dragDrop&&jt&&!e.isReadOnly()&&i=="single"&&(Z=F.contains(t))>-1&&(Tn((Z=F.ranges[Z]).from(),t)<0||t.xRel>0)&&(Tn(Z.to(),t)>0||t.xRel<0)?Gl(e,a,t,f):Vl(e,a,t,f)}function Gl(e,t,i,a){var f=e.display,F=!1,Z=ba(e,function(ce){L&&(f.scroller.draggable=!1),e.state.draggingText=!1,Mt(f.wrapper.ownerDocument,"mouseup",Z),Mt(f.wrapper.ownerDocument,"mousemove",ae),Mt(f.scroller,"dragstart",oe),Mt(f.scroller,"drop",Z),F||(le(ce),a.addNew||Vo(e.doc,i,null,null,a.extend),L&&!_||W&&y==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),ae=function(ce){F=F||Math.abs(t.clientX-ce.clientX)+Math.abs(t.clientY-ce.clientY)>=10},oe=function(){return F=!0};L&&(f.scroller.draggable=!0),e.state.draggingText=Z,Z.copy=!a.moveOnDrag,f.scroller.dragDrop&&f.scroller.dragDrop(),Ue(f.wrapper.ownerDocument,"mouseup",Z),Ue(f.wrapper.ownerDocument,"mousemove",ae),Ue(f.scroller,"dragstart",oe),Ue(f.scroller,"drop",Z),no(e),setTimeout(function(){return f.input.focus()},20)}function tl(e,t,i){if(i=="char")return new $r(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new $r(Wt(t.line,0),C(e.doc,Wt(t.line+1,0)));var a=i(e,t);return new $r(a.from,a.to)}function Vl(e,t,i,a){var f=e.display,F=e.doc;le(t);var Z,ae,oe=F.sel,ce=oe.ranges;if(a.addNew&&!a.extend?(ae=F.sel.contains(i),ae>-1?Z=ce[ae]:Z=new $r(i,i)):(Z=F.sel.primary(),ae=F.sel.primIndex),a.unit=="rectangle")a.addNew||(Z=new $r(i,i)),i=xa(e,t,!0,!0),ae=-1;else{var Fe=tl(e,i,a.unit);a.extend?Z=as(Z,Fe.anchor,Fe.head,a.extend):Z=Fe}a.addNew?ae==-1?(ae=ce.length,Xa(F,br(e,ce.concat([Z]),ae),{scroll:!1,origin:"*mouse"})):ce.length>1&&ce[ae].empty()&&a.unit=="char"&&!a.extend?(Xa(F,br(e,ce.slice(0,ae).concat(ce.slice(ae+1)),0),{scroll:!1,origin:"*mouse"}),oe=F.sel):is(F,ae,Z,je):(ae=0,Xa(F,new Ga([Z],0),je),oe=F.sel);var $e=i;function _t(Pn){if(Tn($e,Pn)==0)return;if($e=Pn,a.unit=="rectangle"){for(var Gn=[],vr=e.options.tabSize,sr=q(Sn(F,i.line).text,i.ch,vr),Wr=q(Sn(F,Pn.line).text,Pn.ch,vr),ua=Math.min(sr,Wr),Wa=Math.max(sr,Wr),Ca=Math.min(i.line,Pn.line),si=Math.min(e.lastLine(),Math.max(i.line,Pn.line));Ca<=si;Ca++){var ni=Sn(F,Ca).text,Ia=Ze(ni,ua,vr);ua==Wa?Gn.push(new $r(Wt(Ca,Ia),Wt(Ca,Ia))):ni.length>Ia&&Gn.push(new $r(Wt(Ca,Ia),Wt(Ca,Ze(ni,Wa,vr))))}Gn.length||Gn.push(new $r(i,i)),Xa(F,br(e,oe.ranges.slice(0,ae).concat(Gn),ae),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Pn)}else{var ri=Z,Va=tl(e,Pn,a.unit),Ua=ri.anchor,Na;Tn(Va.anchor,Ua)>0?(Na=Va.head,Ua=_r(ri.from(),Va.anchor)):(Na=Va.anchor,Ua=Er(ri.to(),Va.head));var Ta=oe.ranges.slice(0);Ta[ae]=Xl(e,new $r(C(F,Ua),Na)),Xa(F,br(e,Ta,ae),je)}}var gt=f.wrapper.getBoundingClientRect(),$t=0;function fn(Pn){var Gn=++$t,vr=xa(e,Pn,!0,a.unit=="rectangle");if(!vr)return;if(Tn(vr,$e)!=0){e.curOp.focus=N(),_t(vr);var sr=ki(f,F);(vr.line>=sr.to||vr.linegt.bottom?20:0;Wr&&setTimeout(ba(e,function(){if($t!=Gn)return;f.scroller.scrollTop+=Wr,fn(Pn)}),50)}}function Cn(Pn){e.state.selectingText=!1,$t=Infinity,Pn&&(le(Pn),f.input.focus()),Mt(f.wrapper.ownerDocument,"mousemove",An),Mt(f.wrapper.ownerDocument,"mouseup",Wn),F.history.lastSelOrigin=null}var An=ba(e,function(Pn){Pn.buttons===0||!Je(Pn)?Cn(Pn):fn(Pn)}),Wn=ba(e,Cn);e.state.selectingText=Wn,Ue(f.wrapper.ownerDocument,"mousemove",An),Ue(f.wrapper.ownerDocument,"mouseup",Wn)}function Xl(e,t){var i=t.anchor,a=t.head,f=Sn(e.doc,i.line);if(Tn(i,a)==0&&i.sticky==a.sticky)return t;var F=hn(f);if(!F)return t;var Z=kt(F,i.ch,i.sticky),ae=F[Z];if(ae.from!=i.ch&&ae.to!=i.ch)return t;var oe=Z+(ae.from==i.ch==(ae.level!=1)?0:1);if(oe==0||oe==F.length)return t;var ce;if(a.line!=i.line)ce=(a.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Fe=kt(F,a.ch,a.sticky),$e=Fe-Z||(a.ch-i.ch)*(ae.level==1?-1:1);Fe==oe-1||Fe==oe?ce=$e<0:ce=$e>0}var _t=F[oe+(ce?-1:0)],gt=ce==(_t.level==1),$t=gt?_t.from:_t.to,fn=gt?"after":"before";return i.ch==$t&&i.sticky==fn?t:new $r(new Wt(i.line,$t,fn),a)}function nl(e,t,i,a){var f,F;if(t.touches)f=t.touches[0].clientX,F=t.touches[0].clientY;else try{f=t.clientX,F=t.clientY}catch(_t){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&le(t);var Z=e.display,ae=Z.lineDiv.getBoundingClientRect();if(F>ae.bottom||!Se(e,i))return _e(t);F-=ae.top-Z.viewOffset;for(var oe=0;oe=f){var Fe=Kr(e.doc,F),$e=e.display.gutterSpecs[oe];return st(e,i,e,Fe,$e.className,t),_e(t)}}}function ds(e,t){return nl(e,t,"gutterClick",!0)}function rl(e,t){if(Pa(e.display,t)||Yl(e,t))return;if(Ct(e,t,"contextmenu"))return;P||e.display.input.onContextMenu(t)}function Yl(e,t){return Se(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var t=e.optionHandlers;function i(a,f,F,Z){e.defaults[a]=f,F&&(t[a]=Z?function(ae,oe,ce){ce!=wo&&F(ae,oe,ce)}:F)}e.defineOption=i,e.Init=wo,i("value","",function(a,f){return a.setValue(f)},!0),i("mode",null,function(a,f){a.doc.modeOption=f,ka(a)},!0),i("indentUnit",2,ka,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(a){Ja(a),hr(a),Zt(a)},!0),i("lineSeparator",null,function(a,f){if(a.doc.lineSep=f,!f)return;var F=[],Z=a.doc.first;a.doc.iter(function(oe){for(var ce=0;;){var Fe=oe.text.indexOf(f,ce);if(Fe==-1)break;ce=Fe+f.length,F.push(Wt(Z,Fe))}Z++});for(var ae=F.length-1;ae>=0;ae--)Eo(a.doc,f,F[ae],Wt(F[ae].line,F[ae].ch+f.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,f,F){a.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),F!=wo&&a.refresh()}),i("specialCharPlaceholder",Ft,function(a){return a.refresh()},!0),i("electricChars",!0),i("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(a,f){return a.getInputField().spellcheck=f},!0),i("autocorrect",!1,function(a,f){return a.getInputField().autocorrect=f},!0),i("autocapitalize",!1,function(a,f){return a.getInputField().autocapitalize=f},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(a){al(a),di(a)},!0),i("keyMap","default",function(a,f,F){var Z=Qo(f),ae=F!=wo&&Qo(F);ae&&ae.detach&&ae.detach(a,Z),Z.attach&&Z.attach(a,ae||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Ql,!0),i("gutters",[],function(a,f){a.display.gutterSpecs=Ba(f,a.options.lineNumbers),di(a)},!0),i("fixedGutter",!0,function(a,f){a.display.gutters.style.left=f?sa(a.display)+"px":"0",a.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(a){return mi(a)},!0),i("scrollbarStyle","native",function(a){Ji(a),mi(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),i("lineNumbers",!1,function(a,f){a.display.gutterSpecs=Ba(a.options.gutters,f),di(a)},!0),i("firstLineNumber",1,di,!0),i("lineNumberFormatter",function(a){return a},di,!0),i("showCursorWhenSelecting",!1,ea,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(a,f){f=="nocursor"&&(wi(a),a.display.input.blur()),a.display.input.readOnlyChanged(f)}),i("screenReaderLabel",null,function(a,f){f=f===""?null:f,a.display.input.screenReaderLabelChanged(f)}),i("disableInput",!1,function(a,f){f||a.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,ea,!0),i("singleCursorHeightPerLine",!0,ea,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ja,!0),i("addModeClass",!1,Ja,!0),i("pollInterval",100),i("undoDepth",200,function(a,f){return a.doc.history.undoDepth=f}),i("historyEventDelay",1250),i("viewportMargin",10,function(a){return a.refresh()},!0),i("maxHighlightLength",1e4,Ja,!0),i("moveInputWithCursor",!0,function(a,f){f||a.display.input.resetPosition()}),i("tabindex",null,function(a,f){return a.display.input.getField().tabIndex=f||""}),i("autofocus",null),i("direction","ltr",function(a,f){return a.doc.setDirection(f)},!0),i("phrases",null)}function Jl(e,t,i){var a=i&&i!=wo;if(!t!=!a){var f=e.display.dragFunctions,F=t?Ue:Mt;F(e.display.scroller,"dragstart",f.start),F(e.display.scroller,"dragenter",f.enter),F(e.display.scroller,"dragover",f.over),F(e.display.scroller,"dragleave",f.leave),F(e.display.scroller,"drop",f.drop)}}function Ql(e){e.options.lineWrapping?(j(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(m(e.display.wrapper,"CodeMirror-wrap"),Ut(e)),La(e),Zt(e),hr(e),setTimeout(function(){return mi(e)},100)}function _a(e,t){var i=this;if(!(this instanceof _a))return new _a(e,t);this.options=t=t?B(t):{},B(il,t,!1);var a=t.value;typeof a=="string"?a=new ti(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var f=new _a.inputStyles[t.inputStyle](this),F=this.display=new Ui(e,a,f,t);F.wrapper.CodeMirror=this,al(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ji(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ee,keySeq:null,specialChars:null},t.autofocus&&!r&&F.input.focus(),W&&y<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Zl(this),Rl(),ci(this),this.curOp.forceUpdate=!0,gs(this,a),t.autofocus&&!r||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&ui(i)},20):wi(this);for(var Z in qo)qo.hasOwnProperty(Z)&&qo[Z](this,t[Z],wo);ca(this),t.finishInit&&t.finishInit(this);for(var ae=0;ae20*20}Ue(t.scroller,"touchstart",function(oe){if(!Ct(e,oe)&&!F(oe)&&!ds(e,oe)){t.input.ensurePolled(),clearTimeout(i);var ce=+new Date;t.activeTouch={start:ce,moved:!1,prev:ce-a.end<=300?a:null},oe.touches.length==1&&(t.activeTouch.left=oe.touches[0].pageX,t.activeTouch.top=oe.touches[0].pageY)}}),Ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ue(t.scroller,"touchend",function(oe){var ce=t.activeTouch;if(ce&&!Pa(t,oe)&&ce.left!=null&&!ce.moved&&new Date-ce.start<300){var Fe=e.coordsChar(t.activeTouch,"page"),$e;!ce.prev||Z(ce,ce.prev)?$e=new $r(Fe,Fe):!ce.prev.prev||Z(ce,ce.prev.prev)?$e=e.findWordAt(Fe):$e=new $r(Wt(Fe.line,0),C(e.doc,Wt(Fe.line+1,0))),e.setSelection($e.anchor,$e.head),e.focus(),le(oe)}f()}),Ue(t.scroller,"touchcancel",f),Ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ai(e,t.scroller.scrollTop),ja(e,t.scroller.scrollLeft,!0),st(e,"scroll",e))}),Ue(t.scroller,"mousewheel",function(oe){return Wi(e,oe)}),Ue(t.scroller,"DOMMouseScroll",function(oe){return Wi(e,oe)}),Ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(oe){Ct(e,oe)||Me(oe)},over:function(oe){Ct(e,oe)||(Dl(e,oe),Me(oe))},start:function(oe){return Ol(e,oe)},drop:ba(e,Tl),leave:function(oe){Ct(e,oe)||Ws(e)}};var ae=t.input.getField();Ue(ae,"keyup",function(oe){return Zs.call(e,oe)}),Ue(ae,"keydown",ba(e,Qs)),Ue(ae,"keypress",ba(e,qs)),Ue(ae,"focus",function(oe){return ui(e,oe)}),Ue(ae,"blur",function(oe){return wi(e,oe)})}var fs=[];_a.defineInitHook=function(e){return fs.push(e)};function Ko(e,t,i,a){var f=e.doc,F;i==null&&(i="add"),i=="smart"&&(f.mode.indent?F=It(e,t).state:i="prev");var Z=e.options.tabSize,ae=Sn(f,t),oe=q(ae.text,null,Z);ae.stateAfter&&(ae.stateAfter=null);var ce=ae.text.match(/^\s*/)[0],Fe;if(!a&&!/\S/.test(ae.text))Fe=0,i="not";else if(i=="smart"&&(Fe=f.mode.indent(F,ae.text.slice(ce.length),ae.text),Fe==Ye||Fe>150)){if(!a)return;i="prev"}i=="prev"?t>f.first?Fe=q(Sn(f,t-1).text,null,Z):Fe=0:i=="add"?Fe=oe+e.options.indentUnit:i=="subtract"?Fe=oe-e.options.indentUnit:typeof i=="number"&&(Fe=oe+i),Fe=Math.max(0,Fe);var $e="",_t=0;if(e.options.indentWithTabs)for(var gt=Math.floor(Fe/Z);gt;--gt)_t+=Z,$e+=" ";if(_tZ,oe=wt(t),ce=null;if(ae&&a.ranges.length>1)if(Ci&&Ci.text.join(` -`)==t){if(a.ranges.length%Ci.text.length==0){ce=[];for(var Fe=0;Fe=0;_t--){var gt=a.ranges[_t],$t=gt.from(),fn=gt.to();gt.empty()&&(i&&i>0?$t=Wt($t.line,$t.ch-i):e.state.overwrite&&!ae?fn=Wt(fn.line,Math.min(Sn(F,fn.line).text.length,fn.ch+ie(oe).length)):ae&&Ci&&Ci.lineWise&&Ci.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(F),F.scrollIntoView(f),e.display.lineSpace.removeChild(F)}}function Do(e,t,i,a){a==null&&(a=0);var f;!e.options.lineWrapping&&t==i&&(t=t.ch?Wt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Wt(t.line,t.ch+1,"before"):t);for(var F=0;F<5;F++){var Z=!1,ae=Yn(e,t),oe=!i||i==t?ae:Yn(e,i);f={left:Math.min(ae.left,oe.left),top:Math.min(ae.top,oe.top)-a,right:Math.max(ae.left,oe.left),bottom:Math.max(ae.bottom,oe.bottom)+a};var ce=Oi(e,f),Fe=e.doc.scrollTop,$e=e.doc.scrollLeft;if(ce.scrollTop!=null&&(Ai(e,ce.scrollTop),Math.abs(e.doc.scrollTop-Fe)>1&&(Z=!0)),ce.scrollLeft!=null&&(Wa(e,ce.scrollLeft),Math.abs(e.doc.scrollLeft-$e)>1&&(Z=!0)),!Z)break}return f}function Gi(e,t){var i=Oi(e,t);i.scrollTop!=null&&Ai(e,i.scrollTop),i.scrollLeft!=null&&Wa(e,i.scrollLeft)}function Oi(e,t){var i=e.display,a=Wr(e.display);t.top<0&&(t.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,F=se(e),Z={};t.bottom-t.top>F&&(t.bottom=t.top+F);var ae=e.doc.height+Re(i),oe=t.topae-a;if(t.topf+F){var Fe=Math.min(t.top,(ce?ae:t.bottom)-F);Fe!=f&&(Z.scrollTop=Fe)}var $e=e.options.fixedGutter?0:i.gutters.offsetWidth,_t=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-$e,gt=ke(e)-i.gutters.offsetWidth,$t=t.right-t.left>gt;return $t&&(t.right=t.left+gt),t.left<10?Z.scrollLeft=0:t.left<_t?Z.scrollLeft=Math.max(0,t.left+$e-($t?0:10)):t.right>gt+_t-3&&(Z.scrollLeft=t.right+($t?0:10)-gt),Z}function Vi(e,t){if(t==null)return;Xi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function yi(e){Xi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Di(e,t,i){(t!=null||i!=null)&&Xi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function fo(e,t){Xi(e),e.curOp.scrollToPos=t}function Xi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=sn(e,t.from),a=sn(e,t.to);Ri(e,i,a,t.margin)}}function Ri(e,t,i,a){var f=Oi(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-a,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+a});Di(e,f.scrollLeft,f.scrollTop)}function Ai(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;I||ji(e,{top:t}),bi(e,t,!0),I&&ji(e),Ni(e,100)}function bi(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Wa(e,t,i,a){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)return;e.doc.scrollLeft=t,jr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function hi(e){var t=e.display,i=t.gutters.offsetWidth,a=Math.round(e.doc.height+Re(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:a,scrollHeight:a+tt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var pi=function(e,t,i){this.cm=i;var a=this.vert=u("div",[u("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=u("div",[u("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=f.tabIndex=-1,e(a),e(f),Ue(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),Ue(f,"scroll",function(){f.clientWidth&&t(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,W&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var f=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var F=e.viewWidth-e.barLeft-(i?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+F)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?a:0,bottom:t?a:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=o&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},pi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function a(){var f=e.getBoundingClientRect(),F=i=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);F!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ei=function(){};Ei.prototype.update=function(){return{bottom:0,right:0}},Ei.prototype.setScrollLeft=function(){},Ei.prototype.setScrollTop=function(){},Ei.prototype.clear=function(){};function mi(e,t){t||(t=hi(e));var i=e.display.barWidth,a=e.display.barHeight;Yi(e,t);for(var f=0;f<4&&i!=e.display.barWidth||a!=e.display.barHeight;f++)i!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,hi(e)),i=e.display.barWidth,a=e.display.barHeight}function Yi(e,t){var i=e.display,a=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=a.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=a.bottom)+"px",i.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=a.bottom+"px",i.scrollbarFiller.style.width=a.right+"px"):i.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=a.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var $i={native:pi,null:Ei};function Ji(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&m(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Wa(e,t):Ai(e,t)},e),e.display.scrollbars.addClass&&j(e.display.wrapper,e.display.scrollbars.addClass)}var Ii=0;function ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ii},Gr(e.curOp)}function _i(e){var t=e.curOp;t&&Pn(t,function(i){for(var a=0;a=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ti(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ao(e){e.updatedDisplay=e.mustUpdate&&xi(e.cm,e.update)}function ho(e){var t=e.cm,i=t.display;e.updatedDisplay&&Si(t),e.barMeasure=hi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Be(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+tt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-ke(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function ao(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,a=It(e,t.highlightFrontier),f=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(F){if(a.line>=e.display.viewFrom){var Z=F.styles,ae=F.text.length>e.options.maxHighlightLength?_n(t.mode,a.state):null,oe=we(e,F,a,!0);ae&&(a.state=ae),F.styles=oe.styles;var ce=F.styleClasses,Fe=oe.classes;Fe?F.styleClasses=Fe:ce&&(F.styleClasses=null);for(var $e=!Z||Z.length!=F.styles.length||ce!=Fe&&(!ce||!Fe||ce.bgClass!=Fe.bgClass||ce.textClass!=Fe.textClass),_t=0;!$e&&_ti)return Ni(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),f.length&&Xa(e,function(){for(var F=0;F=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&hn(e)==0)return!1;pa(e)&&(ia(e),t.dims=rr(e));var f=a.first+a.size,F=Math.max(t.visible.from-e.options.viewportMargin,a.first),Z=Math.min(f,t.visible.to+e.options.viewportMargin);i.viewFromZ&&i.viewTo-Z<20&&(Z=Math.min(f,i.viewTo)),$n&&(F=Nt(e.doc,F),Z=Dt(e.doc,Z));var ae=F!=i.viewFrom||Z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;jn(e,F,Z),i.viewOffset=kn(wn(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var oe=hn(e);if(!ae&&oe==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var ce=oo(e);return oe>4&&(i.lineDiv.style.display="none"),vo(e,i.updateLineNumbers,t.dims),oe>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,so(ce),g(i.cursorDiv),g(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,ae&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Ni(e,400)),i.updateLineNumbers=null,!0}function Qi(e,t){for(var i=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==ke(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Re(e.display)-se(e),i.top)}),t.visible=ki(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=ki(e.display,e.doc,i));if(!xi(e,t))break;Si(e);var f=hi(e);Dn(e),mi(e,f),ta(e,f),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,t){var i=new ti(e,t);if(xi(e,i)){Si(e),Qi(e,i);var a=hi(e);Dn(e),mi(e,a),ta(e,a),i.finish()}}function vo(e,t,i){var a=e.display,f=e.options.lineNumbers,F=a.lineDiv,Z=F.firstChild;function ae($t){var dn=$t.nextSibling;return L&&o&&e.display.currentWheelTarget==$t?$t.style.display="none":$t.parentNode.removeChild($t),dn}for(var oe=a.view,ce=a.viewFrom,Fe=0;Fe-1&&(gt=!1),sa(e,$e,ce,i)),gt&&(g($e.lineNumber),$e.lineNumber.appendChild(document.createTextNode(ma(e.options,ce)))),Z=$e.node.nextSibling}ce+=$e.size}for(;Z;)Z=ae(Z)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ta(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+tt(e)+"px"}function jr(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var a=Zr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,f=t.gutters.offsetWidth,F=a+"px",Z=0;ZZ.clientWidth,oe=Z.scrollHeight>Z.clientHeight;if(!(a&&ae||f&&oe))return;if(f&&o&&L){e:for(var ce=t.target,Fe=F.view;ce!=Z;ce=ce.parentNode)for(var $e=0;$e=0&&Sn(e,a.to())<=0)return i}return-1};var Jr=function(e,t){this.anchor=e,this.head=t};Jr.prototype.from=function(){return _r(this.anchor,this.head)},Jr.prototype.to=function(){return Er(this.anchor,this.head)},Jr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function br(e,t,i){var a=e&&e.options.selectionsMayTouch,f=t[i];t.sort(function(_t,gt){return Sn(_t.from(),gt.from())}),i=he(t,f);for(var F=1;F0:oe>=0){var ce=_r(ae.from(),Z.from()),Fe=Er(ae.to(),Z.to()),$e=ae.empty()?Z.from()==Z.head:ae.from()==ae.head;F<=i&&--i,t.splice(--F,2,new Jr($e?Fe:ce,$e?ce:Fe))}}return new Ya(t,i)}function Mn(e,t){return new Ya([new Jr(e,t||e)],0)}function Jn(e){return e.text?Wt(e.from.line+e.text.length-1,ie(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ir(e,t){if(Sn(e,t.from)<0)return e;if(Sn(e,t.to)<=0)return Jn(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=Jn(t).ch-t.to.ch),Wt(i,a)}function da(e,t){for(var i=[],a=0;a1&&e.remove(ae.line+1,$t-1),e.insert(ae.line+1,Rn)}Vn(e,"change",e,t)}function La(e,t,i){function a(f,F,Z){if(f.linked)for(var ae=0;ae1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ie(e.done)}function Es(e,t,i,a){var f=e.history;f.undone.length=0;var F=+new Date,Z,ae;if((f.lastOp==a||f.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&f.lastModTime>F-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(Z=pl(f,f.lastOp==a)))ae=ie(Z.changes),Sn(t.from,t.to)==0&&Sn(t.from,ae.to)==0?ae.to=Jn(t):Z.changes.push(rs(e,t));else{var oe=ie(f.done);for((!oe||!oe.ranges)&&Go(e.sel,f.done),Z={changes:[rs(e,t)],generation:f.generation},f.done.push(Z);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(i),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=F,f.lastOp=f.lastSelOp=a,f.lastOrigin=f.lastSelOrigin=t.origin,ae||st(e,"historyAdded")}function ml(e,t,i,a){var f=t.charAt(0);return f=="*"||f=="+"&&i.ranges.length==a.ranges.length&&i.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,i,a){var f=e.history,F=a&&a.origin;i==f.lastSelOp||F&&f.lastSelOrigin==F&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==F||ml(e,F,ie(f.done),t))?f.done[f.done.length-1]=t:Go(t,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=F,f.lastSelOp=i,a&&a.clearRedo!==!1&&bs(f.undone)}function Go(e,t){var i=ie(t);i&&i.ranges&&i.equals(e)||t.push(e)}function _s(e,t,i,a){var f=t["spans_"+e.id],F=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,a),function(Z){Z.markedSpans&&((f||(f=t["spans_"+e.id]={}))[F]=Z.markedSpans),++F})}function gl(e){if(!e)return null;for(var t,i=0;i-1&&(ie(ae)[$e]=ce[$e],delete ce[$e]))}}return a}function as(e,t,i,a){if(a){var f=e.anchor;if(i){var F=Sn(t,f)<0;F!=Sn(i,f)<0?(f=t,t=i):F!=Sn(t,i)<0&&(t=i)}return new Jr(f,t)}else return new Jr(i||t,t)}function Vo(e,t,i,a,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Ja(e,new Ya([as(e.sel.primary(),t,i,f)],0),a)}function Cs(e,t,i){for(var a=[],f=e.cm&&(e.cm.display.shift||e.extend),F=0;F=t.ch:ae.to>t.ch))){if(f&&(st(oe,"beforeCursorEnter"),oe.explicitlyCleared))if(F.markedSpans){--Z;continue}else break;if(!oe.atomic)continue;if(i){var $e=oe.find(a<0?1:-1),_t=void 0;if((a<0?Fe:ce)&&($e=Rs(e,$e,-a,$e&&$e.line==t.line?F:null)),$e&&$e.line==t.line&&(_t=Sn($e,i))&&(a<0?_t<0:_t>0))return yo(e,$e,t,a,f)}var gt=oe.find(a<0?-1:1);return(a<0?ce:Fe)&&(gt=Rs(e,gt,a,gt.line==t.line?F:null)),gt?yo(e,gt,t,a,f):null}}return t}function Yo(e,t,i,a,f){var F=a||1,Z=yo(e,t,i,F,f)||!f&&yo(e,t,i,F,!0)||yo(e,t,i,-F,f)||!f&&yo(e,t,i,-F,!0);return Z||(e.cantEdit=!0,Wt(e.first,0))}function Rs(e,t,i,a){return i<0&&t.ch==0?t.line>e.first?C(e,Wt(t.line-1)):null:i>0&&t.ch==(a||wn(e,t.line)).text.length?t.line=0;--f)Ls(e,{from:a[f].from,to:a[f].to,text:f?[""]:t.text,origin:t.origin});else Ls(e,t)}function Ls(e,t){if(t.text.length==1&&t.text[0]==""&&Sn(t.from,t.to)==0)return;var i=da(e,t);Es(e,t,i,e.cm?e.cm.curOp.id:NaN),Po(e,t,i,Cr(e,t));var a=[];La(e,function(f,F){!F&&he(a,f.history)==-1&&(Ns(f.history,t),a.push(f.history)),Po(f,t,null,Cr(f,t))})}function $o(e,t,i){var a=e.cm&&e.cm.state.suppressEdits;if(a&&!i)return;for(var f=e.history,F,Z=e.sel,ae=t=="undo"?f.done:f.undone,oe=t=="undo"?f.undone:f.done,ce=0;ce=0;--gt){var $t=_t(gt);if($t)return $t.v}}function Ms(e,t){if(t==0)return;if(e.first+=t,e.sel=new Ya(Oe(e.sel.ranges,function(f){return new Jr(Wt(f.anchor.line+t,f.anchor.ch),Wt(f.head.line+t,f.head.ch))}),e.sel.primIndex),e.cm){qr(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,a=i.viewFrom;ae.lastLine())return;if(t.from.lineF&&(t={from:t.from,to:Wt(F,wn(e,F).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Vr(e,t.from,t.to),i||(i=da(e,t)),e.cm?El(e.cm,t,a):Hi(e,t,a),Xo(e,i,Pe),e.cantEdit&&Yo(e,Wt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var a=e.doc,f=e.display,F=t.from,Z=t.to,ae=!1,oe=F.line;e.options.lineWrapping||(oe=ur(be(wn(a,F.line))),a.iter(oe,Z.line+1,function(gt){if(gt==f.maxLine)return ae=!0,!0})),a.sel.contains(t.from,t.to)>-1&&Ne(e),Hi(a,t,i,xa(e)),e.options.lineWrapping||(a.iter(oe,F.line+t.text.length,function(gt){var $t=on(gt);$t>f.maxLineLength&&(f.maxLine=gt,f.maxLineLength=$t,f.maxLineChanged=!0,ae=!1)}),ae&&(e.curOp.updateMaxLine=!0)),Nn(a,F.line),Ni(e,400);var ce=t.text.length-(Z.line-F.line)-1;t.full?qr(e):F.line==Z.line&&t.text.length==1&&!gi(e.doc,t)?ea(e,F.line,"text"):qr(e,F.line,Z.line+1,ce);var Fe=Se(e,"changes"),$e=Se(e,"change");if($e||Fe){var _t={from:F,to:Z,text:t.text,removed:t.removed,origin:t.origin};$e&&Vn(e,"change",e,_t),Fe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(_t)}e.display.selForContextMenu=null}function Eo(e,t,i,a,f){var F;a||(a=i),Sn(a,i)<0&&(F=[a,i],i=F[0],a=F[1]),typeof t=="string"&&(t=e.splitLines(t)),bo(e,{from:i,to:a,text:t,origin:f})}function ks(e,t,i,a){i1||!(this.children[0]instanceof Mo))){var ae=[];this.collapse(ae),this.children=[new Mo(ae)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var Z=f.lines.length%25+25,ae=Z;ae10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var a=0;ae.display.maxLineLength&&(e.display.maxLine=ce,e.display.maxLineLength=Fe,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&qr(e,a,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Vn(e,"markerCleared",e,this,a,f),t&&_i(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,a,f=0;f0||Z==0&&F.clearWhenEmpty!==!1)return F;if(F.replacedWith&&(F.collapsed=!0,F.widgetNode=D("span",[F.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||F.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(F.widgetNode.insertLeft=!0)),F.collapsed){if(ct(e,t.line,t,i,F)||t.line!=i.line&&ct(e,i.line,t,i,F))throw new Error("Inserting collapsed marker partially overlapping an existing one");Qn()}F.addToHistory&&Es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var ae=t.line,oe=e.cm,ce;if(e.iter(ae,i.line+1,function($e){oe&&F.collapsed&&!oe.options.lineWrapping&&be($e)==oe.display.maxLine&&(ce=!0),F.collapsed&&ae!=t.line&&Ur($e,0),Hr($e,new yr(F,ae==t.line?t.ch:null,ae==i.line?i.ch:null)),++ae}),F.collapsed&&e.iter(t.line,i.line+1,function($e){dt(e,$e)&&Ur($e,0)}),F.clearOnEnter&&Ue(F,"beforeCursorEnter",function(){return F.clear()}),F.readOnly&&(Sr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),F.collapsed&&(F.id=++Us,F.atomic=!0),oe){if(ce&&(oe.curOp.updateMaxLine=!0),F.collapsed)qr(oe,t.line,i.line+1);else if(F.className||F.startStyle||F.endStyle||F.css||F.attributes||F.title)for(var Fe=t.line;Fe<=i.line;Fe++)ea(oe,Fe,"text");F.atomic&&Os(oe.doc),Vn(oe,"markerAdded",oe,F)}return F}var No=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;oe--)bo(this,a[oe]);ae?Ss(this,ae):this.cm&&yi(this.cm)}),undo:wa(function(){$o(this,"undo")}),redo:wa(function(){$o(this,"redo")}),undoSelection:wa(function(){$o(this,"undo",!0)}),redoSelection:wa(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,a=0;a=e.ch)&&t.push(f.marker.parent||f.marker)}return t},findMarks:function(e,t,i){e=C(this,e),t=C(this,t);var a=[],f=e.line;return this.iter(e.line,t.line+1,function(F){var Z=F.markedSpans;if(Z)for(var ae=0;ae=oe.to||oe.from==null&&f!=e.line||oe.from!=null&&f==t.line&&oe.from>=t.ch)&&(!i||i(oe.marker))&&a.push(oe.marker.parent||oe.marker)}++f}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var a=0;ae)return t=e,!0;e-=F,++i}),C(this,Wt(i,t))},indexFromPos:function(e){e=C(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Fe=e.dataTransfer.getData("Text");if(Fe){var $e;if(t.state.draggingText&&!t.state.draggingText.copy&&($e=t.listSelections()),Xo(t.doc,Mn(i,i)),$e)for(var _t=0;_t<$e.length;++_t)Eo(t.doc,"",$e[_t].anchor,$e[_t].head,"drag");t.replaceSelection(Fe,"around","paste"),t.display.input.focus()}}catch(gt){}}}function Ol(e,t){if(W&&(!e.state.draggingText||+new Date-Bs<100)){Me(t);return}if(Ct(e,t)||Ia(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!_){var i=u("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),p&&i.parentNode.removeChild(i)}}function Dl(e,t){var i=Ta(e,t);if(!i)return;var a=document.createDocumentFragment();tr(e,i,a),e.display.dragCursor||(e.display.dragCursor=u("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),s(e.display.dragCursor,a)}function Ws(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Hs(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),i=[],a=0;a=0;ae--)Eo(e.doc,"",a[ae].from,a[ae].to,"+delete");yi(e)})}function os(e,t,i){var a=Ke(e.text,t+i,i);return a<0||a>e.text.length?null:a}function ss(e,t,i){var a=os(e,t.ch,i);return a==null?null:new Wt(t.line,a,i<0?"after":"before")}function ls(e,t,i,a,f){if(e){t.doc.direction=="rtl"&&(f=-f);var F=fn(i,t.doc.direction);if(F){var Z=f<0?ie(F):F[0],ae=f<0==(Z.level==1),oe=ae?"after":"before",ce;if(Z.level>0||t.doc.direction=="rtl"){var Fe=He(t,i);ce=f<0?i.text.length-1:0;var $e=pt(t,Fe,ce).top;ce=Pt(function(_t){return pt(t,Fe,_t).top==$e},f<0==(Z.level==1)?Z.from:Z.to-1,ce),oe=="before"&&(ce=os(i,ce,1))}else ce=f<0?Z.to:Z.from;return new Wt(a,ce,oe)}}return new Wt(a,f<0?i.text.length:0,f<0?"before":"after")}function kl(e,t,i,a){var f=fn(t,e.doc.direction);if(!f)return ss(t,i,a);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var F=kt(f,i.ch,i.sticky),Z=f[F];if(e.doc.direction=="ltr"&&Z.level%2==0&&(a>0?Z.to>i.ch:Z.from=Z.from&&_t>=Fe.begin)){var gt=$e?"before":"after";return new Wt(i.line,_t,gt)}}var $t=function(Rn,Wn,An){for(var Gn=function(fa,Ga){return Ga?new Wt(i.line,ae(fa,1),"before"):new Wt(i.line,fa,"after")};Rn>=0&&Rn0==(vr.level!=1),Br=sr?An.begin:ae(An.end,-1);if(vr.from<=Br&&Br0?Fe.end:ae(Fe.begin,-1);return Cn!=null&&!(a>0&&Cn==t.text.length)&&(dn=$t(a>0?0:f.length-1,a,ce(Cn)),dn)?dn:null}var Fo={selectAll:As,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Pe)},killLine:function(e){return Co(e,function(t){if(t.empty()){var i=wn(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)f=new Wt(f.line,f.ch+1),e.replaceRange(F.charAt(f.ch-1)+F.charAt(f.ch-2),Wt(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var Z=wn(e.doc,f.line-1).text;Z&&(f=new Wt(f.line,1),e.replaceRange(F.charAt(0)+e.doc.lineSeparator()+Z.charAt(Z.length-1),Wt(f.line-1,Z.length-1),f,"+transpose"))}}i.push(new Jr(f,f))}e.setSelections(i)})},newlineAndIndent:function(e){return Xa(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var a=0;ae&&Sn(t,this.pos)==0&&i==this.button};var Wo,Ho;function Wl(e,t){var i=+new Date;return Ho&&Ho.compare(i,e,t)?(Wo=Ho=null,"triple"):Wo&&Wo.compare(i,e,t)?(Ho=new cs(i,e,t),Wo=null,"double"):(Wo=new cs(i,e,t),Ho=null,"single")}function el(e){var t=this,i=t.display;if(Ct(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Ia(i,e)){L||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(ds(t,e))return;var a=Ta(t,e),f=Je(e),F=a?Wl(a,f):"single";if(window.focus(),f==1&&t.state.selectingText&&t.state.selectingText(e),a&&Hl(t,f,a,F,e))return;f==1?a?zl(t,a,F,e):at(e)==i.scroller&&le(e):f==2?(a&&Vo(t.doc,a),setTimeout(function(){return i.input.focus()},20)):f==3&&(P?t.display.input.onContextMenu(e):no(t))}function Hl(e,t,i,a,f){var F="Click";return a=="double"?F="Double"+F:a=="triple"&&(F="Triple"+F),F=(t==1?"Left":t==2?"Middle":"Right")+F,Bo(e,Gs(F,f),f,function(Z){if(typeof Z=="string"&&(Z=Fo[Z]),!Z)return!1;var ae=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ae=Z(e,i)!=Ye}finally{e.state.suppressEdits=!1}return ae})}function Kl(e,t,i){var a=e.getOption("configureMouse"),f=a?a(e,t,i):{};if(f.unit==null){var F=l?i.shiftKey&&i.metaKey:i.altKey;f.unit=F?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||i.shiftKey),f.addNew==null&&(f.addNew=o?i.metaKey:i.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(o?i.altKey:i.ctrlKey)),f}function zl(e,t,i,a){W?setTimeout(U(Mi,e),0):e.curOp.focus=N();var f=Kl(e,i,a),F=e.doc.sel,Z;e.options.dragDrop&&jt&&!e.isReadOnly()&&i=="single"&&(Z=F.contains(t))>-1&&(Sn((Z=F.ranges[Z]).from(),t)<0||t.xRel>0)&&(Sn(Z.to(),t)>0||t.xRel<0)?Gl(e,a,t,f):Vl(e,a,t,f)}function Gl(e,t,i,a){var f=e.display,F=!1,Z=Ca(e,function(ce){L&&(f.scroller.draggable=!1),e.state.draggingText=!1,Mt(f.wrapper.ownerDocument,"mouseup",Z),Mt(f.wrapper.ownerDocument,"mousemove",ae),Mt(f.scroller,"dragstart",oe),Mt(f.scroller,"drop",Z),F||(le(ce),a.addNew||Vo(e.doc,i,null,null,a.extend),L&&!_||W&&y==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),ae=function(ce){F=F||Math.abs(t.clientX-ce.clientX)+Math.abs(t.clientY-ce.clientY)>=10},oe=function(){return F=!0};L&&(f.scroller.draggable=!0),e.state.draggingText=Z,Z.copy=!a.moveOnDrag,f.scroller.dragDrop&&f.scroller.dragDrop(),Ue(f.wrapper.ownerDocument,"mouseup",Z),Ue(f.wrapper.ownerDocument,"mousemove",ae),Ue(f.scroller,"dragstart",oe),Ue(f.scroller,"drop",Z),no(e),setTimeout(function(){return f.input.focus()},20)}function tl(e,t,i){if(i=="char")return new Jr(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Jr(Wt(t.line,0),C(e.doc,Wt(t.line+1,0)));var a=i(e,t);return new Jr(a.from,a.to)}function Vl(e,t,i,a){var f=e.display,F=e.doc;le(t);var Z,ae,oe=F.sel,ce=oe.ranges;if(a.addNew&&!a.extend?(ae=F.sel.contains(i),ae>-1?Z=ce[ae]:Z=new Jr(i,i)):(Z=F.sel.primary(),ae=F.sel.primIndex),a.unit=="rectangle")a.addNew||(Z=new Jr(i,i)),i=Ta(e,t,!0,!0),ae=-1;else{var Fe=tl(e,i,a.unit);a.extend?Z=as(Z,Fe.anchor,Fe.head,a.extend):Z=Fe}a.addNew?ae==-1?(ae=ce.length,Ja(F,br(e,ce.concat([Z]),ae),{scroll:!1,origin:"*mouse"})):ce.length>1&&ce[ae].empty()&&a.unit=="char"&&!a.extend?(Ja(F,br(e,ce.slice(0,ae).concat(ce.slice(ae+1)),0),{scroll:!1,origin:"*mouse"}),oe=F.sel):is(F,ae,Z,je):(ae=0,Ja(F,new Ya([Z],0),je),oe=F.sel);var $e=i;function _t(An){if(Sn($e,An)==0)return;if($e=An,a.unit=="rectangle"){for(var Gn=[],vr=e.options.tabSize,sr=q(wn(F,i.line).text,i.ch,vr),Br=q(wn(F,An.line).text,An.ch,vr),fa=Math.min(sr,Br),Ga=Math.max(sr,Br),Oa=Math.min(i.line,An.line),li=Math.min(e.lastLine(),Math.max(i.line,An.line));Oa<=li;Oa++){var ri=wn(F,Oa).text,Fa=Qe(ri,fa,vr);fa==Ga?Gn.push(new Jr(Wt(Oa,Fa),Wt(Oa,Fa))):ri.length>Fa&&Gn.push(new Jr(Wt(Oa,Fa),Wt(Oa,Qe(ri,Ga,vr))))}Gn.length||Gn.push(new Jr(i,i)),Ja(F,br(e,oe.ranges.slice(0,ae).concat(Gn),ae),{origin:"*mouse",scroll:!1}),e.scrollIntoView(An)}else{var ai=Z,$a=tl(e,An,a.unit),Ha=ai.anchor,Ba;Sn($a.anchor,Ha)>0?(Ba=$a.head,Ha=_r(ai.from(),$a.anchor)):(Ba=$a.anchor,Ha=Er(ai.to(),$a.head));var Aa=oe.ranges.slice(0);Aa[ae]=Xl(e,new Jr(C(F,Ha),Ba)),Ja(F,br(e,Aa,ae),je)}}var gt=f.wrapper.getBoundingClientRect(),$t=0;function dn(An){var Gn=++$t,vr=Ta(e,An,!0,a.unit=="rectangle");if(!vr)return;if(Sn(vr,$e)!=0){e.curOp.focus=N(),_t(vr);var sr=ki(f,F);(vr.line>=sr.to||vr.linegt.bottom?20:0;Br&&setTimeout(Ca(e,function(){if($t!=Gn)return;f.scroller.scrollTop+=Br,dn(An)}),50)}}function Cn(An){e.state.selectingText=!1,$t=Infinity,An&&(le(An),f.input.focus()),Mt(f.wrapper.ownerDocument,"mousemove",Rn),Mt(f.wrapper.ownerDocument,"mouseup",Wn),F.history.lastSelOrigin=null}var Rn=Ca(e,function(An){An.buttons===0||!Je(An)?Cn(An):dn(An)}),Wn=Ca(e,Cn);e.state.selectingText=Wn,Ue(f.wrapper.ownerDocument,"mousemove",Rn),Ue(f.wrapper.ownerDocument,"mouseup",Wn)}function Xl(e,t){var i=t.anchor,a=t.head,f=wn(e.doc,i.line);if(Sn(i,a)==0&&i.sticky==a.sticky)return t;var F=fn(f);if(!F)return t;var Z=kt(F,i.ch,i.sticky),ae=F[Z];if(ae.from!=i.ch&&ae.to!=i.ch)return t;var oe=Z+(ae.from==i.ch==(ae.level!=1)?0:1);if(oe==0||oe==F.length)return t;var ce;if(a.line!=i.line)ce=(a.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Fe=kt(F,a.ch,a.sticky),$e=Fe-Z||(a.ch-i.ch)*(ae.level==1?-1:1);Fe==oe-1||Fe==oe?ce=$e<0:ce=$e>0}var _t=F[oe+(ce?-1:0)],gt=ce==(_t.level==1),$t=gt?_t.from:_t.to,dn=gt?"after":"before";return i.ch==$t&&i.sticky==dn?t:new Jr(new Wt(i.line,$t,dn),a)}function nl(e,t,i,a){var f,F;if(t.touches)f=t.touches[0].clientX,F=t.touches[0].clientY;else try{f=t.clientX,F=t.clientY}catch(_t){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&le(t);var Z=e.display,ae=Z.lineDiv.getBoundingClientRect();if(F>ae.bottom||!Se(e,i))return _e(t);F-=ae.top-Z.viewOffset;for(var oe=0;oe=f){var Fe=Kr(e.doc,F),$e=e.display.gutterSpecs[oe];return st(e,i,e,Fe,$e.className,t),_e(t)}}}function ds(e,t){return nl(e,t,"gutterClick",!0)}function rl(e,t){if(Ia(e.display,t)||Yl(e,t))return;if(Ct(e,t,"contextmenu"))return;P||e.display.input.onContextMenu(t)}function Yl(e,t){return Se(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var t=e.optionHandlers;function i(a,f,F,Z){e.defaults[a]=f,F&&(t[a]=Z?function(ae,oe,ce){ce!=wo&&F(ae,oe,ce)}:F)}e.defineOption=i,e.Init=wo,i("value","",function(a,f){return a.setValue(f)},!0),i("mode",null,function(a,f){a.doc.modeOption=f,Ua(a)},!0),i("indentUnit",2,Ua,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(a){qa(a),fr(a),qr(a)},!0),i("lineSeparator",null,function(a,f){if(a.doc.lineSep=f,!f)return;var F=[],Z=a.doc.first;a.doc.iter(function(oe){for(var ce=0;;){var Fe=oe.text.indexOf(f,ce);if(Fe==-1)break;ce=Fe+f.length,F.push(Wt(Z,Fe))}Z++});for(var ae=F.length-1;ae>=0;ae--)Eo(a.doc,f,F[ae],Wt(F[ae].line,F[ae].ch+f.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,f,F){a.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),F!=wo&&a.refresh()}),i("specialCharPlaceholder",Ft,function(a){return a.refresh()},!0),i("electricChars",!0),i("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(a,f){return a.getInputField().spellcheck=f},!0),i("autocorrect",!1,function(a,f){return a.getInputField().autocorrect=f},!0),i("autocapitalize",!1,function(a,f){return a.getInputField().autocapitalize=f},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(a){al(a),di(a)},!0),i("keyMap","default",function(a,f,F){var Z=Qo(f),ae=F!=wo&&Qo(F);ae&&ae.detach&&ae.detach(a,Z),Z.attach&&Z.attach(a,ae||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Ql,!0),i("gutters",[],function(a,f){a.display.gutterSpecs=za(f,a.options.lineNumbers),di(a)},!0),i("fixedGutter",!0,function(a,f){a.display.gutters.style.left=f?Zr(a.display)+"px":"0",a.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(a){return mi(a)},!0),i("scrollbarStyle","native",function(a){Ji(a),mi(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),i("lineNumbers",!1,function(a,f){a.display.gutterSpecs=za(a.options.gutters,f),di(a)},!0),i("firstLineNumber",1,di,!0),i("lineNumberFormatter",function(a){return a},di,!0),i("showCursorWhenSelecting",!1,Dn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(a,f){f=="nocursor"&&(wi(a),a.display.input.blur()),a.display.input.readOnlyChanged(f)}),i("screenReaderLabel",null,function(a,f){f=f===""?null:f,a.display.input.screenReaderLabelChanged(f)}),i("disableInput",!1,function(a,f){f||a.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Dn,!0),i("singleCursorHeightPerLine",!0,Dn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,qa,!0),i("addModeClass",!1,qa,!0),i("pollInterval",100),i("undoDepth",200,function(a,f){return a.doc.history.undoDepth=f}),i("historyEventDelay",1250),i("viewportMargin",10,function(a){return a.refresh()},!0),i("maxHighlightLength",1e4,qa,!0),i("moveInputWithCursor",!0,function(a,f){f||a.display.input.resetPosition()}),i("tabindex",null,function(a,f){return a.display.input.getField().tabIndex=f||""}),i("autofocus",null),i("direction","ltr",function(a,f){return a.doc.setDirection(f)},!0),i("phrases",null)}function Jl(e,t,i){var a=i&&i!=wo;if(!t!=!a){var f=e.display.dragFunctions,F=t?Ue:Mt;F(e.display.scroller,"dragstart",f.start),F(e.display.scroller,"dragenter",f.enter),F(e.display.scroller,"dragover",f.over),F(e.display.scroller,"dragleave",f.leave),F(e.display.scroller,"drop",f.drop)}}function Ql(e){e.options.lineWrapping?(j(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(m(e.display.wrapper,"CodeMirror-wrap"),Ut(e)),ha(e),qr(e),fr(e),setTimeout(function(){return mi(e)},100)}function Sa(e,t){var i=this;if(!(this instanceof Sa))return new Sa(e,t);this.options=t=t?B(t):{},B(il,t,!1);var a=t.value;typeof a=="string"?a=new ni(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var f=new Sa.inputStyles[t.inputStyle](this),F=this.display=new Ui(e,a,f,t);F.wrapper.CodeMirror=this,al(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ji(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ee,keySeq:null,specialChars:null},t.autofocus&&!r&&F.input.focus(),W&&y<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Zl(this),Rl(),ci(this),this.curOp.forceUpdate=!0,gs(this,a),t.autofocus&&!r||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&ui(i)},20):wi(this);for(var Z in qo)qo.hasOwnProperty(Z)&&qo[Z](this,t[Z],wo);pa(this),t.finishInit&&t.finishInit(this);for(var ae=0;ae20*20}Ue(t.scroller,"touchstart",function(oe){if(!Ct(e,oe)&&!F(oe)&&!ds(e,oe)){t.input.ensurePolled(),clearTimeout(i);var ce=+new Date;t.activeTouch={start:ce,moved:!1,prev:ce-a.end<=300?a:null},oe.touches.length==1&&(t.activeTouch.left=oe.touches[0].pageX,t.activeTouch.top=oe.touches[0].pageY)}}),Ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ue(t.scroller,"touchend",function(oe){var ce=t.activeTouch;if(ce&&!Ia(t,oe)&&ce.left!=null&&!ce.moved&&new Date-ce.start<300){var Fe=e.coordsChar(t.activeTouch,"page"),$e;!ce.prev||Z(ce,ce.prev)?$e=new Jr(Fe,Fe):!ce.prev.prev||Z(ce,ce.prev.prev)?$e=e.findWordAt(Fe):$e=new Jr(Wt(Fe.line,0),C(e.doc,Wt(Fe.line+1,0))),e.setSelection($e.anchor,$e.head),e.focus(),le(oe)}f()}),Ue(t.scroller,"touchcancel",f),Ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ai(e,t.scroller.scrollTop),Wa(e,t.scroller.scrollLeft,!0),st(e,"scroll",e))}),Ue(t.scroller,"mousewheel",function(oe){return Wi(e,oe)}),Ue(t.scroller,"DOMMouseScroll",function(oe){return Wi(e,oe)}),Ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(oe){Ct(e,oe)||Me(oe)},over:function(oe){Ct(e,oe)||(Dl(e,oe),Me(oe))},start:function(oe){return Ol(e,oe)},drop:Ca(e,Tl),leave:function(oe){Ct(e,oe)||Ws(e)}};var ae=t.input.getField();Ue(ae,"keyup",function(oe){return Zs.call(e,oe)}),Ue(ae,"keydown",Ca(e,Qs)),Ue(ae,"keypress",Ca(e,qs)),Ue(ae,"focus",function(oe){return ui(e,oe)}),Ue(ae,"blur",function(oe){return wi(e,oe)})}var fs=[];Sa.defineInitHook=function(e){return fs.push(e)};function Ko(e,t,i,a){var f=e.doc,F;i==null&&(i="add"),i=="smart"&&(f.mode.indent?F=It(e,t).state:i="prev");var Z=e.options.tabSize,ae=wn(f,t),oe=q(ae.text,null,Z);ae.stateAfter&&(ae.stateAfter=null);var ce=ae.text.match(/^\s*/)[0],Fe;if(!a&&!/\S/.test(ae.text))Fe=0,i="not";else if(i=="smart"&&(Fe=f.mode.indent(F,ae.text.slice(ce.length),ae.text),Fe==Ye||Fe>150)){if(!a)return;i="prev"}i=="prev"?t>f.first?Fe=q(wn(f,t-1).text,null,Z):Fe=0:i=="add"?Fe=oe+e.options.indentUnit:i=="subtract"?Fe=oe-e.options.indentUnit:typeof i=="number"&&(Fe=oe+i),Fe=Math.max(0,Fe);var $e="",_t=0;if(e.options.indentWithTabs)for(var gt=Math.floor(Fe/Z);gt;--gt)_t+=Z,$e+=" ";if(_tZ,oe=wt(t),ce=null;if(ae&&a.ranges.length>1)if(Ci&&Ci.text.join(` +`)==t){if(a.ranges.length%Ci.text.length==0){ce=[];for(var Fe=0;Fe=0;_t--){var gt=a.ranges[_t],$t=gt.from(),dn=gt.to();gt.empty()&&(i&&i>0?$t=Wt($t.line,$t.ch-i):e.state.overwrite&&!ae?dn=Wt(dn.line,Math.min(wn(F,dn.line).text.length,dn.ch+ie(oe).length)):ae&&Ci&&Ci.lineWise&&Ci.text.join(` `)==oe.join(` -`)&&($t=fn=Wt($t.line,0)));var Cn={from:$t,to:fn,text:ce?ce[_t%ce.length]:oe,origin:f||(ae?"paste":e.state.cutIncoming>Z?"cut":"+input")};bo(e.doc,Cn),Vn(e,"inputRead",e,Cn)}t&&!ae&&sl(e,t),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=$e),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&za(t,function(){return hs(t,i,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,a=i.ranges.length-1;a>=0;a--){var f=i.ranges[a];if(f.head.ch>100||a&&i.ranges[a-1].head.line==f.head.line)continue;var F=e.getModeAt(f.head),Z=!1;if(F.electricChars){for(var ae=0;ae-1){Z=Ko(e,f.head.line,"smart");break}}else F.electricInput&&(F.electricInput.test(Sn(e.doc,f.head.line).text.slice(0,f.head.ch))&&(Z=Ko(e,f.head.line,"smart")));Z&&Vn(e,"electricInput",e,f.head.line)}}function ll(e){for(var t=[],i=[],a=0;aF&&(Ko(this,ae.head.line,a,!0),F=ae.head.line,Z==this.doc.sel.primIndex&&yi(this));else{var oe=ae.from(),ce=ae.to(),Fe=Math.max(F,oe.line);F=Math.min(this.lastLine(),ce.line-(ce.ch?0:1))+1;for(var $e=Fe;$e0&&is(this.doc,Z,new $r(oe,_t[Z].to()),Pe)}}}),getTokenAt:function(a,f){return On(this,a,f)},getLineTokens:function(a,f){return On(this,Wt(a),f,!0)},getTokenTypeAt:function(a){a=C(this.doc,a);var f=mt(this,Sn(this.doc,a.line)),F=0,Z=(f.length-1)/2,ae=a.ch,oe;if(ae==0)oe=f[2];else for(;;){var ce=F+Z>>1;if((ce?f[ce*2-1]:0)>=ae)Z=ce;else if(f[ce*2+1]oe&&(a=oe,Z=!0),ae=Sn(this.doc,a)}else ae=a;return Or(this,ae,{top:0,left:0},f||"page",F||Z).top+(Z?this.doc.height-In(ae):0)},defaultTextHeight:function(){return Mr(this.display)},defaultCharWidth:function(){return Ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,f,F,Z,ae){var oe=this.display;a=Yn(this,C(this.doc,a));var ce=a.bottom,Fe=a.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),oe.sizer.appendChild(f),Z=="over")ce=a.top;else if(Z=="above"||Z=="near"){var $e=Math.max(oe.wrapper.clientHeight,this.doc.height),_t=Math.max(oe.sizer.clientWidth,oe.lineSpace.clientWidth);(Z=="above"||a.bottom+f.offsetHeight>$e)&&a.top>f.offsetHeight?ce=a.top-f.offsetHeight:a.bottom+f.offsetHeight<=$e&&(ce=a.bottom),Fe+f.offsetWidth>_t&&(Fe=_t-f.offsetWidth)}f.style.top=ce+"px",f.style.left=f.style.right="",ae=="right"?(Fe=oe.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(ae=="left"?Fe=0:ae=="middle"&&(Fe=(oe.sizer.clientWidth-f.offsetWidth)/2),f.style.left=Fe+"px"),F&&Gi(this,{left:Fe,top:ce,right:Fe+f.offsetWidth,bottom:ce+f.offsetHeight})},triggerOnKeyDown:Ma(Qs),triggerOnKeyPress:Ma(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Ma(el),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:Ma(function(a){sl(this,a)}),findPosH:function(a,f,F,Z){var ae=1;f<0&&(ae=-1,f=-f);for(var oe=C(this.doc,a),ce=0;ce0&&Fe(F.charAt(Z-1));)--Z;for(;ae.5||this.options.lineWrapping)&&La(this),st(this,"refresh",this)}),swapDoc:Ma(function(a){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,a),hr(this),this.display.input.reset(),Di(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,Vn(this,"swapDoc",this,f),f}),phrase:function(a){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,a)?f[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Te(e),e.registerHelper=function(a,f,F){i.hasOwnProperty(a)||(i[a]=e[a]={_global:[]}),i[a][f]=F},e.registerGlobalHelper=function(a,f,F,Z){e.registerHelper(a,f,Z),i[a]._global.push({pred:F,val:Z})}}function ps(e,t,i,a,f){var F=t,Z=i,ae=Sn(e,t.line),oe=f&&e.direction=="rtl"?-i:i;function ce(){var Wn=t.line+oe;return Wn=e.first+e.size?!1:(t=new Wt(Wn,t.ch,t.sticky),ae=Sn(e,Wn))}function Fe(Wn){var Pn;if(a=="codepoint"){var Gn=ae.text.charCodeAt(t.ch+(a>0?0:-1));isNaN(Gn)?Pn=null:Pn=new Wt(t.line,Math.max(0,Math.min(ae.text.length,t.ch+i*(Gn>=55296&&Gn<56320?2:1))),-i)}else f?Pn=kl(e.cm,ae,t,i):Pn=ss(ae,t,i);if(Pn==null)if(!Wn&&ce())t=ls(f,e.cm,ae,t.line,oe);else return!1;else t=Pn;return!0}if(a=="char"||a=="codepoint")Fe();else if(a=="column")Fe(!0);else if(a=="word"||a=="group")for(var $e=null,_t=a=="group",gt=e.cm&&e.cm.getHelper(t,"wordChars"),$t=!0;!(i<0&&!Fe(!$t));$t=!1){var fn=ae.text.charAt(t.ch)||` -`,Cn=X(fn,gt)?"w":_t&&fn==` -`?"n":!_t||/\s/.test(fn)?null:"p";if(_t&&!$t&&!Cn&&(Cn="s"),$e&&$e!=Cn){i<0&&(i=1,Fe(),t.sticky="after");break}if(Cn&&($e=Cn),i>0&&!Fe(!$t))break}var An=Yo(e,t,F,Z,!0);return lr(F,An)&&(An.hitSide=!0),An}function dl(e,t,i,a){var f=e.doc,F=t.left,Z;if(a=="page"){var ae=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),oe=Math.max(ae-.5*Mr(e.display),3);Z=(i>0?t.bottom:t.top)+i*oe}else a=="line"&&(Z=i>0?t.bottom+3:t.top-3);for(var ce;!(ce=dr(e,F,Z),!ce.outside);){if(i<0?Z<=0:Z>=f.height){ce.hitSide=!0;break}Z+=i*5}return ce}var ia=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ia.prototype.init=function(e){var t=this,i=this,a=i.cm,f=i.div=e.lineDiv;ul(f,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function F(ae){for(var oe=ae.target;oe;oe=oe.parentNode){if(oe==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(oe.className))break}return!1}Ue(f,"paste",function(ae){if(!F(ae)||Ct(a,ae)||ol(ae,a))return;y<=11&&setTimeout(ba(a,function(){return t.updateFromDOM()}),20)}),Ue(f,"compositionstart",function(ae){t.composing={data:ae.data,done:!1}}),Ue(f,"compositionupdate",function(ae){t.composing||(t.composing={data:ae.data,done:!1})}),Ue(f,"compositionend",function(ae){t.composing&&(ae.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ue(f,"touchstart",function(){return i.forceCompositionEnd()}),Ue(f,"input",function(){t.composing||t.readFromDOMSoon()});function Z(ae){if(!F(ae)||Ct(a,ae))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()}),ae.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var oe=ll(a);es({lineWise:!0,text:oe.text}),ae.type=="cut"&&a.operation(function(){a.setSelections(oe.ranges,0,Pe),a.replaceSelection("",null,"cut")})}else return;if(ae.clipboardData){ae.clipboardData.clearData();var ce=Ci.text.join(` +`)&&($t=dn=Wt($t.line,0)));var Cn={from:$t,to:dn,text:ce?ce[_t%ce.length]:oe,origin:f||(ae?"paste":e.state.cutIncoming>Z?"cut":"+input")};bo(e.doc,Cn),Vn(e,"inputRead",e,Cn)}t&&!ae&&sl(e,t),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=$e),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Xa(t,function(){return hs(t,i,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,a=i.ranges.length-1;a>=0;a--){var f=i.ranges[a];if(f.head.ch>100||a&&i.ranges[a-1].head.line==f.head.line)continue;var F=e.getModeAt(f.head),Z=!1;if(F.electricChars){for(var ae=0;ae-1){Z=Ko(e,f.head.line,"smart");break}}else F.electricInput&&(F.electricInput.test(wn(e.doc,f.head.line).text.slice(0,f.head.ch))&&(Z=Ko(e,f.head.line,"smart")));Z&&Vn(e,"electricInput",e,f.head.line)}}function ll(e){for(var t=[],i=[],a=0;aF&&(Ko(this,ae.head.line,a,!0),F=ae.head.line,Z==this.doc.sel.primIndex&&yi(this));else{var oe=ae.from(),ce=ae.to(),Fe=Math.max(F,oe.line);F=Math.min(this.lastLine(),ce.line-(ce.ch?0:1))+1;for(var $e=Fe;$e0&&is(this.doc,Z,new Jr(oe,_t[Z].to()),Pe)}}}),getTokenAt:function(a,f){return Tn(this,a,f)},getLineTokens:function(a,f){return Tn(this,Wt(a),f,!0)},getTokenTypeAt:function(a){a=C(this.doc,a);var f=mt(this,wn(this.doc,a.line)),F=0,Z=(f.length-1)/2,ae=a.ch,oe;if(ae==0)oe=f[2];else for(;;){var ce=F+Z>>1;if((ce?f[ce*2-1]:0)>=ae)Z=ce;else if(f[ce*2+1]oe&&(a=oe,Z=!0),ae=wn(this.doc,a)}else ae=a;return Tr(this,ae,{top:0,left:0},f||"page",F||Z).top+(Z?this.doc.height-kn(ae):0)},defaultTextHeight:function(){return Wr(this.display)},defaultCharWidth:function(){return Fr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,f,F,Z,ae){var oe=this.display;a=Yn(this,C(this.doc,a));var ce=a.bottom,Fe=a.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),oe.sizer.appendChild(f),Z=="over")ce=a.top;else if(Z=="above"||Z=="near"){var $e=Math.max(oe.wrapper.clientHeight,this.doc.height),_t=Math.max(oe.sizer.clientWidth,oe.lineSpace.clientWidth);(Z=="above"||a.bottom+f.offsetHeight>$e)&&a.top>f.offsetHeight?ce=a.top-f.offsetHeight:a.bottom+f.offsetHeight<=$e&&(ce=a.bottom),Fe+f.offsetWidth>_t&&(Fe=_t-f.offsetWidth)}f.style.top=ce+"px",f.style.left=f.style.right="",ae=="right"?(Fe=oe.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(ae=="left"?Fe=0:ae=="middle"&&(Fe=(oe.sizer.clientWidth-f.offsetWidth)/2),f.style.left=Fe+"px"),F&&Gi(this,{left:Fe,top:ce,right:Fe+f.offsetWidth,bottom:ce+f.offsetHeight})},triggerOnKeyDown:ja(Qs),triggerOnKeyPress:ja(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:ja(el),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:ja(function(a){sl(this,a)}),findPosH:function(a,f,F,Z){var ae=1;f<0&&(ae=-1,f=-f);for(var oe=C(this.doc,a),ce=0;ce0&&Fe(F.charAt(Z-1));)--Z;for(;ae.5||this.options.lineWrapping)&&ha(this),st(this,"refresh",this)}),swapDoc:ja(function(a){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,a),fr(this),this.display.input.reset(),Di(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,Vn(this,"swapDoc",this,f),f}),phrase:function(a){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,a)?f[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Te(e),e.registerHelper=function(a,f,F){i.hasOwnProperty(a)||(i[a]=e[a]={_global:[]}),i[a][f]=F},e.registerGlobalHelper=function(a,f,F,Z){e.registerHelper(a,f,Z),i[a]._global.push({pred:F,val:Z})}}function ps(e,t,i,a,f){var F=t,Z=i,ae=wn(e,t.line),oe=f&&e.direction=="rtl"?-i:i;function ce(){var Wn=t.line+oe;return Wn=e.first+e.size?!1:(t=new Wt(Wn,t.ch,t.sticky),ae=wn(e,Wn))}function Fe(Wn){var An;if(a=="codepoint"){var Gn=ae.text.charCodeAt(t.ch+(a>0?0:-1));isNaN(Gn)?An=null:An=new Wt(t.line,Math.max(0,Math.min(ae.text.length,t.ch+i*(Gn>=55296&&Gn<56320?2:1))),-i)}else f?An=kl(e.cm,ae,t,i):An=ss(ae,t,i);if(An==null)if(!Wn&&ce())t=ls(f,e.cm,ae,t.line,oe);else return!1;else t=An;return!0}if(a=="char"||a=="codepoint")Fe();else if(a=="column")Fe(!0);else if(a=="word"||a=="group")for(var $e=null,_t=a=="group",gt=e.cm&&e.cm.getHelper(t,"wordChars"),$t=!0;!(i<0&&!Fe(!$t));$t=!1){var dn=ae.text.charAt(t.ch)||` +`,Cn=X(dn,gt)?"w":_t&&dn==` +`?"n":!_t||/\s/.test(dn)?null:"p";if(_t&&!$t&&!Cn&&(Cn="s"),$e&&$e!=Cn){i<0&&(i=1,Fe(),t.sticky="after");break}if(Cn&&($e=Cn),i>0&&!Fe(!$t))break}var Rn=Yo(e,t,F,Z,!0);return lr(F,Rn)&&(Rn.hitSide=!0),Rn}function dl(e,t,i,a){var f=e.doc,F=t.left,Z;if(a=="page"){var ae=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),oe=Math.max(ae-.5*Wr(e.display),3);Z=(i>0?t.bottom:t.top)+i*oe}else a=="line"&&(Z=i>0?t.bottom+3:t.top-3);for(var ce;!(ce=hr(e,F,Z),!ce.outside);){if(i<0?Z<=0:Z>=f.height){ce.hitSide=!0;break}Z+=i*5}return ce}var ua=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ua.prototype.init=function(e){var t=this,i=this,a=i.cm,f=i.div=e.lineDiv;ul(f,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function F(ae){for(var oe=ae.target;oe;oe=oe.parentNode){if(oe==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(oe.className))break}return!1}Ue(f,"paste",function(ae){if(!F(ae)||Ct(a,ae)||ol(ae,a))return;y<=11&&setTimeout(Ca(a,function(){return t.updateFromDOM()}),20)}),Ue(f,"compositionstart",function(ae){t.composing={data:ae.data,done:!1}}),Ue(f,"compositionupdate",function(ae){t.composing||(t.composing={data:ae.data,done:!1})}),Ue(f,"compositionend",function(ae){t.composing&&(ae.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ue(f,"touchstart",function(){return i.forceCompositionEnd()}),Ue(f,"input",function(){t.composing||t.readFromDOMSoon()});function Z(ae){if(!F(ae)||Ct(a,ae))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()}),ae.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var oe=ll(a);es({lineWise:!0,text:oe.text}),ae.type=="cut"&&a.operation(function(){a.setSelections(oe.ranges,0,Pe),a.replaceSelection("",null,"cut")})}else return;if(ae.clipboardData){ae.clipboardData.clearData();var ce=Ci.text.join(` `);if(ae.clipboardData.setData("Text",ce),ae.clipboardData.getData("Text")==ce){ae.preventDefault();return}}var Fe=cl(),$e=Fe.firstChild;a.display.lineSpace.insertBefore(Fe,a.display.lineSpace.firstChild),$e.value=Ci.text.join(` -`);var _t=document.activeElement;H($e),setTimeout(function(){a.display.lineSpace.removeChild(Fe),_t.focus(),_t==f&&i.showPrimarySelection()},50)}Ue(f,"copy",Z),Ue(f,"cut",Z)},ia.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var e=Za(this.cm,!1);return e.focus=document.activeElement==this.div,e},ia.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ia.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ia.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),a=i.from(),f=i.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||f.line=t.display.viewFrom&&fl(t,a)||{node:ae[0].measure.map[2],offset:0},ce=f.linee.firstLine()&&(a=Wt(a.line-1,Sn(e.doc,a.line-1).length)),f.ch==Sn(e.doc,f.line).text.length&&f.linet.viewTo-1)return!1;var F,Z,ae;a.line==t.viewFrom||(F=wn(e,a.line))==0?(Z=cr(t.view[0].line),ae=t.view[0].node):(Z=cr(t.view[F].line),ae=t.view[F-1].node.nextSibling);var oe=wn(e,f.line),ce,Fe;if(oe==t.view.length-1?(ce=t.viewTo-1,Fe=t.lineDiv.lastChild):(ce=cr(t.view[oe+1].line)-1,Fe=t.view[oe+1].node.previousSibling),!ae)return!1;for(var $e=e.doc.splitLines(tu(e,ae,Fe,Z,ce)),_t=Vr(e.doc,Wt(Z,0),Wt(ce,Sn(e.doc,ce).text.length));$e.length>1&&_t.length>1;)if(ie($e)==ie(_t))$e.pop(),_t.pop(),ce--;else if($e[0]==_t[0])$e.shift(),_t.shift(),Z++;else break;for(var gt=0,$t=0,fn=$e[0],Cn=_t[0],An=Math.min(fn.length,Cn.length);gta.ch&&Wn.charCodeAt(Wn.length-$t-1)==Pn.charCodeAt(Pn.length-$t-1);)gt--,$t++;$e[$e.length-1]=Wn.slice(0,Wn.length-$t).replace(/^\u200b+/,""),$e[0]=$e[0].slice(gt).replace(/\u200b+$/,"");var vr=Wt(Z,gt),sr=Wt(ce,_t.length?ie(_t).length-$t:0);if($e.length>1||$e[0]||Tn(vr,sr))return Eo(e.doc,$e,vr,sr,"+input"),!0},ia.prototype.ensurePolled=function(){this.forceCompositionEnd()},ia.prototype.reset=function(){this.forceCompositionEnd()},ia.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ia.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ia.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&za(this.cm,function(){return Zt(e.cm)})},ia.prototype.setUneditable=function(e){e.contentEditable="false"},ia.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ba(this.cm,hs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ia.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ia.prototype.onContextMenu=function(){},ia.prototype.resetPosition=function(){},ia.prototype.needsContentAttribute=!0;function fl(e,t){var i=ot(e,t.line);if(!i||i.hidden)return null;var a=Sn(e.doc,t.line),f=de(i,a,t.line),F=hn(a,e.doc.direction),Z="left";if(F){var ae=kt(F,t.ch);Z=ae%2?"right":"left"}var oe=Vt(f.map,t.ch,Z);return oe.offset=oe.collapse=="right"?oe.end:oe.start,oe}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function So(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,a,f){var F="",Z=!1,ae=e.doc.lineSeparator(),oe=!1;function ce(gt){return function($t){return $t.id==gt}}function Fe(){Z&&(F+=ae,oe&&(F+=ae),Z=oe=!1)}function $e(gt){gt&&(Fe(),F+=gt)}function _t(gt){if(gt.nodeType==1){var $t=gt.getAttribute("cm-text");if($t){$e($t);return}var fn=gt.getAttribute("cm-marker"),Cn;if(fn){var An=e.findMarks(Wt(a,0),Wt(f+1,0),ce(+fn));An.length&&(Cn=An[0].find(0))&&$e(Vr(e.doc,Cn.from,Cn.to).join(ae));return}if(gt.getAttribute("contenteditable")=="false")return;var Wn=/^(pre|div|p|li|table|br)$/i.test(gt.nodeName);if(!/^br$/i.test(gt.nodeName)&>.textContent.length==0)return;Wn&&Fe();for(var Pn=0;Pn=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ue(f,"paste",function(Z){if(Ct(a,Z)||ol(Z,a))return;a.state.pasteIncoming=+new Date,i.fastPoll()});function F(Z){if(Ct(a,Z))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var ae=ll(a);es({lineWise:!0,text:ae.text}),Z.type=="cut"?a.setSelections(ae.ranges,null,Pe):(i.prevInput="",f.value=ae.text.join(` -`),H(f))}else return;Z.type=="cut"&&(a.state.cutIncoming=+new Date)}Ue(f,"cut",F),Ue(f,"copy",F),Ue(e.scroller,"paste",function(Z){if(Pa(e,Z)||Ct(a,Z))return;if(!f.dispatchEvent){a.state.pasteIncoming=+new Date,i.focus();return}var ae=new Event("paste");ae.clipboardData=Z.clipboardData,f.dispatchEvent(ae)}),Ue(e.lineSpace,"selectstart",function(Z){Pa(e,Z)||le(Z)}),Ue(f,"compositionstart",function(){var Z=a.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:Z,range:a.markText(Z,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(f,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Ra.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},Ra.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ra.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,a=Za(e);if(e.options.moveInputWithCursor){var f=Yn(e,i.sel.primary().head,"div"),F=t.wrapper.getBoundingClientRect(),Z=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,f.top+Z.top-F.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,f.left+Z.left-F.left))}return a},Ra.prototype.showSelection=function(e){var t=this.cm,i=t.display;s(i.cursorDiv,e.cursors),s(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ra.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&H(this.textarea),W&&y>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",W&&y>=9&&(this.hasSelection=null))},Ra.prototype.getField=function(){return this.textarea},Ra.prototype.supportsTouch=function(){return!1},Ra.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ra.prototype.blur=function(){this.textarea.blur()},Ra.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ra.prototype.receivedFocus=function(){this.slowPoll()},Ra.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ra.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Ra.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||St(i)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var f=i.value;if(f==a&&!t.somethingSelected())return!1;if(W&&y>=9&&this.hasSelection===f||o&&/[\uf700-\uf7ff]/.test(f))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var F=f.charCodeAt(0);if(F==8203&&!a&&(a="\u200B"),F==8666)return this.reset(),this.cm.execCommand("undo")}for(var Z=0,ae=Math.min(a.length,f.length);Z1e3||f.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ra.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ra.prototype.onKeyPress=function(){W&&y>=9&&(this.hasSelection=null),this.fastPoll()},Ra.prototype.onContextMenu=function(e){var t=this,i=t.cm,a=i.display,f=t.textarea;t.contextMenuPending&&t.contextMenuPending();var F=xa(i,e),Z=a.scroller.scrollTop;if(!F||p)return;var ae=i.options.resetSelectionOnContextMenu;ae&&i.doc.sel.contains(F)==-1&&ba(i,Xa)(i.doc,kn(F),Pe);var oe=f.style.cssText,ce=t.wrapper.style.cssText,Fe=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var _t=document.activeElement;H($e),setTimeout(function(){a.display.lineSpace.removeChild(Fe),_t.focus(),_t==f&&i.showPrimarySelection()},50)}Ue(f,"copy",Z),Ue(f,"cut",Z)},ua.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ua.prototype.prepareSelection=function(){var e=$r(this.cm,!1);return e.focus=document.activeElement==this.div,e},ua.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ua.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ua.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),a=i.from(),f=i.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||f.line=t.display.viewFrom&&fl(t,a)||{node:ae[0].measure.map[2],offset:0},ce=f.linee.firstLine()&&(a=Wt(a.line-1,wn(e.doc,a.line-1).length)),f.ch==wn(e.doc,f.line).text.length&&f.linet.viewTo-1)return!1;var F,Z,ae;a.line==t.viewFrom||(F=aa(e,a.line))==0?(Z=ur(t.view[0].line),ae=t.view[0].node):(Z=ur(t.view[F].line),ae=t.view[F-1].node.nextSibling);var oe=aa(e,f.line),ce,Fe;if(oe==t.view.length-1?(ce=t.viewTo-1,Fe=t.lineDiv.lastChild):(ce=ur(t.view[oe+1].line)-1,Fe=t.view[oe+1].node.previousSibling),!ae)return!1;for(var $e=e.doc.splitLines(tu(e,ae,Fe,Z,ce)),_t=Vr(e.doc,Wt(Z,0),Wt(ce,wn(e.doc,ce).text.length));$e.length>1&&_t.length>1;)if(ie($e)==ie(_t))$e.pop(),_t.pop(),ce--;else if($e[0]==_t[0])$e.shift(),_t.shift(),Z++;else break;for(var gt=0,$t=0,dn=$e[0],Cn=_t[0],Rn=Math.min(dn.length,Cn.length);gta.ch&&Wn.charCodeAt(Wn.length-$t-1)==An.charCodeAt(An.length-$t-1);)gt--,$t++;$e[$e.length-1]=Wn.slice(0,Wn.length-$t).replace(/^\u200b+/,""),$e[0]=$e[0].slice(gt).replace(/\u200b+$/,"");var vr=Wt(Z,gt),sr=Wt(ce,_t.length?ie(_t).length-$t:0);if($e.length>1||$e[0]||Sn(vr,sr))return Eo(e.doc,$e,vr,sr,"+input"),!0},ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},ua.prototype.reset=function(){this.forceCompositionEnd()},ua.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ua.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ua.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Xa(this.cm,function(){return qr(e.cm)})},ua.prototype.setUneditable=function(e){e.contentEditable="false"},ua.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Ca(this.cm,hs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ua.prototype.onContextMenu=function(){},ua.prototype.resetPosition=function(){},ua.prototype.needsContentAttribute=!0;function fl(e,t){var i=ot(e,t.line);if(!i||i.hidden)return null;var a=wn(e.doc,t.line),f=de(i,a,t.line),F=fn(a,e.doc.direction),Z="left";if(F){var ae=kt(F,t.ch);Z=ae%2?"right":"left"}var oe=Vt(f.map,t.ch,Z);return oe.offset=oe.collapse=="right"?oe.end:oe.start,oe}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function So(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,a,f){var F="",Z=!1,ae=e.doc.lineSeparator(),oe=!1;function ce(gt){return function($t){return $t.id==gt}}function Fe(){Z&&(F+=ae,oe&&(F+=ae),Z=oe=!1)}function $e(gt){gt&&(Fe(),F+=gt)}function _t(gt){if(gt.nodeType==1){var $t=gt.getAttribute("cm-text");if($t){$e($t);return}var dn=gt.getAttribute("cm-marker"),Cn;if(dn){var Rn=e.findMarks(Wt(a,0),Wt(f+1,0),ce(+dn));Rn.length&&(Cn=Rn[0].find(0))&&$e(Vr(e.doc,Cn.from,Cn.to).join(ae));return}if(gt.getAttribute("contenteditable")=="false")return;var Wn=/^(pre|div|p|li|table|br)$/i.test(gt.nodeName);if(!/^br$/i.test(gt.nodeName)&>.textContent.length==0)return;Wn&&Fe();for(var An=0;An=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ue(f,"paste",function(Z){if(Ct(a,Z)||ol(Z,a))return;a.state.pasteIncoming=+new Date,i.fastPoll()});function F(Z){if(Ct(a,Z))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var ae=ll(a);es({lineWise:!0,text:ae.text}),Z.type=="cut"?a.setSelections(ae.ranges,null,Pe):(i.prevInput="",f.value=ae.text.join(` +`),H(f))}else return;Z.type=="cut"&&(a.state.cutIncoming=+new Date)}Ue(f,"cut",F),Ue(f,"copy",F),Ue(e.scroller,"paste",function(Z){if(Ia(e,Z)||Ct(a,Z))return;if(!f.dispatchEvent){a.state.pasteIncoming=+new Date,i.focus();return}var ae=new Event("paste");ae.clipboardData=Z.clipboardData,f.dispatchEvent(ae)}),Ue(e.lineSpace,"selectstart",function(Z){Ia(e,Z)||le(Z)}),Ue(f,"compositionstart",function(){var Z=a.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:Z,range:a.markText(Z,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(f,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Ma.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},Ma.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ma.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,a=$r(e);if(e.options.moveInputWithCursor){var f=Yn(e,i.sel.primary().head,"div"),F=t.wrapper.getBoundingClientRect(),Z=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,f.top+Z.top-F.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,f.left+Z.left-F.left))}return a},Ma.prototype.showSelection=function(e){var t=this.cm,i=t.display;s(i.cursorDiv,e.cursors),s(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ma.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&H(this.textarea),W&&y>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",W&&y>=9&&(this.hasSelection=null))},Ma.prototype.getField=function(){return this.textarea},Ma.prototype.supportsTouch=function(){return!1},Ma.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ma.prototype.blur=function(){this.textarea.blur()},Ma.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ma.prototype.receivedFocus=function(){this.slowPoll()},Ma.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ma.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Ma.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||St(i)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var f=i.value;if(f==a&&!t.somethingSelected())return!1;if(W&&y>=9&&this.hasSelection===f||o&&/[\uf700-\uf7ff]/.test(f))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var F=f.charCodeAt(0);if(F==8203&&!a&&(a="\u200B"),F==8666)return this.reset(),this.cm.execCommand("undo")}for(var Z=0,ae=Math.min(a.length,f.length);Z1e3||f.indexOf(` +`)>-1?i.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ma.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ma.prototype.onKeyPress=function(){W&&y>=9&&(this.hasSelection=null),this.fastPoll()},Ma.prototype.onContextMenu=function(e){var t=this,i=t.cm,a=i.display,f=t.textarea;t.contextMenuPending&&t.contextMenuPending();var F=Ta(i,e),Z=a.scroller.scrollTop;if(!F||p)return;var ae=i.options.resetSelectionOnContextMenu;ae&&i.doc.sel.contains(F)==-1&&Ca(i,Ja)(i.doc,Mn(F),Pe);var oe=f.style.cssText,ce=t.wrapper.style.cssText,Fe=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Fe.top-5)+"px; left: "+(e.clientX-Fe.left-5)+`px; z-index: 1000; background: `+(W?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var $e;L&&($e=window.scrollY),a.input.focus(),L&&window.scrollTo(null,$e),a.input.reset(),i.somethingSelected()||(f.value=t.prevInput=" "),t.contextMenuPending=gt,a.selForContextMenu=i.doc.sel,clearTimeout(a.detectingSelectAll);function _t(){if(f.selectionStart!=null){var fn=i.somethingSelected(),Cn="\u200B"+(fn?f.value:"");f.value="\u21DA",f.value=Cn,t.prevInput=fn?"":"\u200B",f.selectionStart=1,f.selectionEnd=Cn.length,a.selForContextMenu=i.doc.sel}}function gt(){if(t.contextMenuPending!=gt)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=ce,f.style.cssText=oe,W&&y<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=Z),f.selectionStart!=null){(!W||W&&y<9)&&_t();var fn=0,Cn=function(){a.selForContextMenu==i.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&t.prevInput=="\u200B"?ba(i,As)(i):fn++<10?a.detectingSelectAll=setTimeout(Cn,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Cn,200)}}if(W&&y>=9&&_t(),P){Me(e);var $t=function(){Mt(window,"mouseup",$t),setTimeout(gt,20)};Ue(window,"mouseup",$t)}else setTimeout(gt,50)},Ra.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ra.prototype.setUneditable=function(){},Ra.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?B(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=N();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function a(){e.value=ae.getValue()}var f;if(e.form&&(Ue(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var F=e.form;f=F.submit;try{var Z=F.submit=function(){a(),F.submit=f,F.submit(),F.submit=Z}}catch(oe){}}t.finishInit=function(oe){oe.save=a,oe.getTextArea=function(){return e},oe.toTextArea=function(){oe.toTextArea=isNaN,a(),e.parentNode.removeChild(oe.getWrapperElement()),e.style.display="",e.form&&(Mt(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var ae=_a(function(oe){return e.parentNode.insertBefore(oe,e.nextSibling)},t);return ae}function au(e){e.off=Mt,e.on=Ue,e.wheelEventPixels=Bi,e.Doc=ti,e.splitLines=wt,e.countColumn=q,e.findColumn=Ze,e.isWordChar=V,e.Pass=Ye,e.signal=st,e.Line=an,e.changeEnd=Qn,e.scrollbarModel=$i,e.Pos=Wt,e.cmpPos=Tn,e.modes=yt,e.mimeModes=ft,e.resolveMode=at,e.getMode=xt,e.modeExtensions=Rt,e.extendMode=cn,e.copyState=xn,e.startState=fr,e.innerMode=ar,e.commands=Fo,e.keyMap=Ki,e.keyName=Vs,e.isModifierKey=zs,e.lookupKey=xo,e.normalizeKeyMap=Ml,e.StringStream=tr,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=le,e.e_stopPropagation=fe,e.e_stop=Me,e.addClass=j,e.contains=A,e.rmClass=m,e.keyNames=eo}$l(_a),ql(_a);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ti.prototype)ti.prototype.hasOwnProperty(ns)&&he(iu,ns)<0&&(_a.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ti.prototype[ns]));return Te(ti),_a.inputStyles={textarea:Ra,contenteditable:ia},_a.defineMode=function(e){!_a.defaults.mode&&e!="null"&&(_a.defaults.mode=e),en.apply(this,arguments)},_a.defineMIME=Xt,_a.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),_a.defineMIME("text/plain","null"),_a.defineExtension=function(e,t){_a.prototype[e]=t},_a.defineDocExtension=function(e,t){ti.prototype[e]=t},_a.fromTextArea=ru,au(_a),_a.version="5.58.2",_a})},WaYH:function(nn,Ce,M){"use strict";var re=M("rePB"),G=M("Ff2n"),I=M("VTBJ"),z=M("1OyB"),O=M("vuIU"),w=M("JX7q"),W=M("Ji7U"),y=M("LK+K"),L=M("q1tI"),R=M("TSYQ"),d=M.n(R),p=M("sboe"),_=M("OZM5"),v=function(P){var T=P.prefixCls,m=P.level,g=P.isStart,s=P.isEnd;if(!m)return null;for(var u="".concat(T,"-indent-unit"),D=[],S=0;S0&&t.prevInput=="\u200B"?Ca(i,As)(i):dn++<10?a.detectingSelectAll=setTimeout(Cn,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Cn,200)}}if(W&&y>=9&&_t(),P){Me(e);var $t=function(){Mt(window,"mouseup",$t),setTimeout(gt,20)};Ue(window,"mouseup",$t)}else setTimeout(gt,50)},Ma.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ma.prototype.setUneditable=function(){},Ma.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?B(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=N();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function a(){e.value=ae.getValue()}var f;if(e.form&&(Ue(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var F=e.form;f=F.submit;try{var Z=F.submit=function(){a(),F.submit=f,F.submit(),F.submit=Z}}catch(oe){}}t.finishInit=function(oe){oe.save=a,oe.getTextArea=function(){return e},oe.toTextArea=function(){oe.toTextArea=isNaN,a(),e.parentNode.removeChild(oe.getWrapperElement()),e.style.display="",e.form&&(Mt(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var ae=Sa(function(oe){return e.parentNode.insertBefore(oe,e.nextSibling)},t);return ae}function au(e){e.off=Mt,e.on=Ue,e.wheelEventPixels=Bi,e.Doc=ni,e.splitLines=wt,e.countColumn=q,e.findColumn=Qe,e.isWordChar=V,e.Pass=Ye,e.signal=st,e.Line=rn,e.changeEnd=Jn,e.scrollbarModel=$i,e.Pos=Wt,e.cmpPos=Sn,e.modes=yt,e.mimeModes=ft,e.resolveMode=it,e.getMode=xt,e.modeExtensions=Rt,e.extendMode=un,e.copyState=_n,e.startState=dr,e.innerMode=ar,e.commands=Fo,e.keyMap=Ki,e.keyName=Vs,e.isModifierKey=zs,e.lookupKey=xo,e.normalizeKeyMap=Ml,e.StringStream=er,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=le,e.e_stopPropagation=fe,e.e_stop=Me,e.addClass=j,e.contains=A,e.rmClass=m,e.keyNames=eo}$l(Sa),ql(Sa);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ni.prototype)ni.prototype.hasOwnProperty(ns)&&he(iu,ns)<0&&(Sa.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ni.prototype[ns]));return Te(ni),Sa.inputStyles={textarea:Ma,contenteditable:ua},Sa.defineMode=function(e){!Sa.defaults.mode&&e!="null"&&(Sa.defaults.mode=e),qt.apply(this,arguments)},Sa.defineMIME=Xt,Sa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Sa.defineMIME("text/plain","null"),Sa.defineExtension=function(e,t){Sa.prototype[e]=t},Sa.defineDocExtension=function(e,t){ni.prototype[e]=t},Sa.fromTextArea=ru,au(Sa),Sa.version="5.58.2",Sa})},WaYH:function(tn,Ce,M){"use strict";var re=M("rePB"),G=M("Ff2n"),I=M("VTBJ"),z=M("1OyB"),O=M("vuIU"),w=M("JX7q"),W=M("Ji7U"),y=M("LK+K"),L=M("q1tI"),R=M("TSYQ"),d=M.n(R),p=M("sboe"),_=M("OZM5"),v=function(P){var T=P.prefixCls,m=P.level,g=P.isStart,s=P.isEnd;if(!m)return null;for(var u="".concat(T,"-indent-unit"),D=[],S=0;S1&&arguments[1]!==void 0?arguments[1]:!1,Qe=Pe.getAttribute("id")||Pe.getAttribute("data-reactid")||Pe.getAttribute("name");if(je&&N[Qe])return N[Qe];var Ze=window.getComputedStyle(Pe),Ae=Ze.getPropertyValue("box-sizing")||Ze.getPropertyValue("-moz-box-sizing")||Ze.getPropertyValue("-webkit-box-sizing"),me=parseFloat(Ze.getPropertyValue("padding-bottom"))+parseFloat(Ze.getPropertyValue("padding-top")),ie=parseFloat(Ze.getPropertyValue("border-bottom-width"))+parseFloat(Ze.getPropertyValue("border-top-width")),Oe=A.map(function(Ge){return"".concat(Ge,":").concat(Ze.getPropertyValue(Ge))}).join(";"),ve={sizingStyle:Oe,paddingSize:me,borderSize:ie,boxSizing:Ae};return je&&Qe&&(N[Qe]=ve),ve}function H(Pe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;j||(j=document.createElement("textarea"),j.setAttribute("tab-index","-1"),j.setAttribute("aria-hidden","true"),document.body.appendChild(j)),Pe.getAttribute("wrap")?j.setAttribute("wrap",Pe.getAttribute("wrap")):j.removeAttribute("wrap");var Ae=K(Pe,je),me=Ae.paddingSize,ie=Ae.borderSize,Oe=Ae.boxSizing,ve=Ae.sizingStyle;j.setAttribute("style","".concat(ve,";").concat(S)),j.value=Pe.value||Pe.placeholder||"";var Ge=Number.MIN_SAFE_INTEGER,pe=Number.MAX_SAFE_INTEGER,J=j.scrollHeight,V;if(Oe==="border-box"?J+=ie:Oe==="content-box"&&(J-=me),Qe!==null||Ze!==null){j.value=" ";var X=j.scrollHeight-me;Qe!==null&&(Ge=X*Qe,Oe==="border-box"&&(Ge=Ge+me+ie),J=Math.max(Ge,J)),Ze!==null&&(pe=X*Ze,Oe==="border-box"&&(pe=pe+me+ie),V=J>pe?"":"hidden",J=Math.min(pe,J))}return{height:J,minHeight:Ge,maxHeight:pe,overflowY:V,resize:"none"}}var U=M("Gytx"),B=M.n(U),q;(function(Pe){Pe[Pe.NONE=0]="NONE",Pe[Pe.RESIZING=1]="RESIZING",Pe[Pe.RESIZED=2]="RESIZED"})(q||(q={}));var ee=function(Pe){Object(z.a)(Qe,Pe);var je=Object(O.a)(Qe);function Qe(Ze){var Ae;return Object(G.a)(this,Qe),Ae=je.call(this,Ze),Ae.nextFrameActionId=void 0,Ae.resizeFrameId=void 0,Ae.textArea=void 0,Ae.saveTextArea=function(me){Ae.textArea=me},Ae.handleResize=function(me){var ie=Ae.state.resizeStatus,Oe=Ae.props,ve=Oe.autoSize,Ge=Oe.onResize;if(ie!==q.NONE)return;typeof Ge=="function"&&Ge(me),ve&&Ae.resizeOnNextFrame()},Ae.resizeOnNextFrame=function(){cancelAnimationFrame(Ae.nextFrameActionId),Ae.nextFrameActionId=requestAnimationFrame(Ae.resizeTextarea)},Ae.resizeTextarea=function(){var me=Ae.props.autoSize;if(!me||!Ae.textArea)return;var ie=me.minRows,Oe=me.maxRows,ve=H(Ae.textArea,!1,ie,Oe);Ae.setState({textareaStyles:ve,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(Ae.resizeFrameId),Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:q.RESIZED},function(){Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:q.NONE}),Ae.fixFirefoxAutoScroll()})})})})},Ae.renderTextArea=function(){var me=Ae.props,ie=me.prefixCls,Oe=ie===void 0?"rc-textarea":ie,ve=me.autoSize,Ge=me.onResize,pe=me.className,J=me.disabled,V=Ae.state,X=V.textareaStyles,ue=V.resizeStatus,Ee=Object(s.a)(Ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),We=D()(Oe,pe,Object(y.a)({},"".concat(Oe,"-disabled"),J));"value"in Ee&&(Ee.value=Ee.value||"");var Ke=Object(W.a)(Object(W.a)(Object(W.a)({},Ae.props.style),X),ue===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return w.createElement(g,{onResize:Ae.handleResize,disabled:!(ve||Ge)},w.createElement("textarea",Object(re.a)({},Ee,{className:We,style:Ke,ref:Ae.saveTextArea})))},Ae.state={textareaStyles:{},resizeStatus:q.NONE},Ae}return Object(I.a)(Qe,[{key:"componentDidUpdate",value:function(Ae){(Ae.value!==this.props.value||!B()(Ae.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var Ae=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ae,me)}}catch(ie){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Qe}(w.Component),he=ee,be=function(Pe){Object(z.a)(Qe,Pe);var je=Object(O.a)(Qe);function Qe(Ze){var Ae;Object(G.a)(this,Qe),Ae=je.call(this,Ze),Ae.resizableTextArea=void 0,Ae.focus=function(){Ae.resizableTextArea.textArea.focus()},Ae.saveTextArea=function(ie){Ae.resizableTextArea=ie},Ae.handleChange=function(ie){var Oe=Ae.props.onChange;Ae.setValue(ie.target.value,function(){Ae.resizableTextArea.resizeTextarea()}),Oe&&Oe(ie)},Ae.handleKeyDown=function(ie){var Oe=Ae.props,ve=Oe.onPressEnter,Ge=Oe.onKeyDown;ie.keyCode===13&&ve&&ve(ie),Ge&&Ge(ie)};var me=typeof Ze.value=="undefined"||Ze.value===null?Ze.defaultValue:Ze.value;return Ae.state={value:me},Ae}return Object(I.a)(Qe,[{key:"setValue",value:function(Ae,me){"value"in this.props||this.setState({value:Ae},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return w.createElement(he,Object(re.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ae){return"value"in Ae?{value:Ae.value}:null}}]),Qe}(w.Component),Ye=Ce.default=be},ZW9T:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return g});var re=M("k1fw"),G=M("oBTY"),I=M("9og8"),z=M("miYZ"),O=M("tsqr"),w=M("rAM+"),W=M("tJVT"),y=M("PpiC"),L=M("WmNS"),R=M.n(L),d=M("q1tI"),p=M.n(d),_=M("bdgK");function v(s,u,D,S,A){var N=u.getWordUntilPosition(D),j={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:N.startColumn,endColumn:N.endColumn},K=S.map(function(H){return{label:H,kind:s.languages.CompletionItemKind.Keyword,insertText:H,insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:j}});return A.map(function(H){K.push(Object(re.a)(Object(re.a)({},H),{},{range:j}))}),K}var h=function(s){var u={label:"ifelse",kind:s.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`,A=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],N={},j;function K(Pe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=Pe.getAttribute("id")||Pe.getAttribute("data-reactid")||Pe.getAttribute("name");if(je&&N[Ze])return N[Ze];var Qe=window.getComputedStyle(Pe),Ae=Qe.getPropertyValue("box-sizing")||Qe.getPropertyValue("-moz-box-sizing")||Qe.getPropertyValue("-webkit-box-sizing"),me=parseFloat(Qe.getPropertyValue("padding-bottom"))+parseFloat(Qe.getPropertyValue("padding-top")),ie=parseFloat(Qe.getPropertyValue("border-bottom-width"))+parseFloat(Qe.getPropertyValue("border-top-width")),Oe=A.map(function(Ge){return"".concat(Ge,":").concat(Qe.getPropertyValue(Ge))}).join(";"),ve={sizingStyle:Oe,paddingSize:me,borderSize:ie,boxSizing:Ae};return je&&Ze&&(N[Ze]=ve),ve}function H(Pe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;j||(j=document.createElement("textarea"),j.setAttribute("tab-index","-1"),j.setAttribute("aria-hidden","true"),document.body.appendChild(j)),Pe.getAttribute("wrap")?j.setAttribute("wrap",Pe.getAttribute("wrap")):j.removeAttribute("wrap");var Ae=K(Pe,je),me=Ae.paddingSize,ie=Ae.borderSize,Oe=Ae.boxSizing,ve=Ae.sizingStyle;j.setAttribute("style","".concat(ve,";").concat(S)),j.value=Pe.value||Pe.placeholder||"";var Ge=Number.MIN_SAFE_INTEGER,pe=Number.MAX_SAFE_INTEGER,J=j.scrollHeight,V;if(Oe==="border-box"?J+=ie:Oe==="content-box"&&(J-=me),Ze!==null||Qe!==null){j.value=" ";var X=j.scrollHeight-me;Ze!==null&&(Ge=X*Ze,Oe==="border-box"&&(Ge=Ge+me+ie),J=Math.max(Ge,J)),Qe!==null&&(pe=X*Qe,Oe==="border-box"&&(pe=pe+me+ie),V=J>pe?"":"hidden",J=Math.min(pe,J))}return{height:J,minHeight:Ge,maxHeight:pe,overflowY:V,resize:"none"}}var U=M("Gytx"),B=M.n(U),q;(function(Pe){Pe[Pe.NONE=0]="NONE",Pe[Pe.RESIZING=1]="RESIZING",Pe[Pe.RESIZED=2]="RESIZED"})(q||(q={}));var ee=function(Pe){Object(z.a)(Ze,Pe);var je=Object(O.a)(Ze);function Ze(Qe){var Ae;return Object(G.a)(this,Ze),Ae=je.call(this,Qe),Ae.nextFrameActionId=void 0,Ae.resizeFrameId=void 0,Ae.textArea=void 0,Ae.saveTextArea=function(me){Ae.textArea=me},Ae.handleResize=function(me){var ie=Ae.state.resizeStatus,Oe=Ae.props,ve=Oe.autoSize,Ge=Oe.onResize;if(ie!==q.NONE)return;typeof Ge=="function"&&Ge(me),ve&&Ae.resizeOnNextFrame()},Ae.resizeOnNextFrame=function(){cancelAnimationFrame(Ae.nextFrameActionId),Ae.nextFrameActionId=requestAnimationFrame(Ae.resizeTextarea)},Ae.resizeTextarea=function(){var me=Ae.props.autoSize;if(!me||!Ae.textArea)return;var ie=me.minRows,Oe=me.maxRows,ve=H(Ae.textArea,!1,ie,Oe);Ae.setState({textareaStyles:ve,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(Ae.resizeFrameId),Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:q.RESIZED},function(){Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:q.NONE}),Ae.fixFirefoxAutoScroll()})})})})},Ae.renderTextArea=function(){var me=Ae.props,ie=me.prefixCls,Oe=ie===void 0?"rc-textarea":ie,ve=me.autoSize,Ge=me.onResize,pe=me.className,J=me.disabled,V=Ae.state,X=V.textareaStyles,ue=V.resizeStatus,Ee=Object(s.a)(Ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),We=D()(Oe,pe,Object(y.a)({},"".concat(Oe,"-disabled"),J));"value"in Ee&&(Ee.value=Ee.value||"");var Ke=Object(W.a)(Object(W.a)(Object(W.a)({},Ae.props.style),X),ue===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return w.createElement(g,{onResize:Ae.handleResize,disabled:!(ve||Ge)},w.createElement("textarea",Object(re.a)({},Ee,{className:We,style:Ke,ref:Ae.saveTextArea})))},Ae.state={textareaStyles:{},resizeStatus:q.NONE},Ae}return Object(I.a)(Ze,[{key:"componentDidUpdate",value:function(Ae){(Ae.value!==this.props.value||!B()(Ae.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var Ae=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ae,me)}}catch(ie){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ze}(w.Component),he=ee,ye=function(Pe){Object(z.a)(Ze,Pe);var je=Object(O.a)(Ze);function Ze(Qe){var Ae;Object(G.a)(this,Ze),Ae=je.call(this,Qe),Ae.resizableTextArea=void 0,Ae.focus=function(){Ae.resizableTextArea.textArea.focus()},Ae.saveTextArea=function(ie){Ae.resizableTextArea=ie},Ae.handleChange=function(ie){var Oe=Ae.props.onChange;Ae.setValue(ie.target.value,function(){Ae.resizableTextArea.resizeTextarea()}),Oe&&Oe(ie)},Ae.handleKeyDown=function(ie){var Oe=Ae.props,ve=Oe.onPressEnter,Ge=Oe.onKeyDown;ie.keyCode===13&&ve&&ve(ie),Ge&&Ge(ie)};var me=typeof Qe.value=="undefined"||Qe.value===null?Qe.defaultValue:Qe.value;return Ae.state={value:me},Ae}return Object(I.a)(Ze,[{key:"setValue",value:function(Ae,me){"value"in this.props||this.setState({value:Ae},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return w.createElement(he,Object(re.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ae){return"value"in Ae?{value:Ae.value}:null}}]),Ze}(w.Component),Ye=Ce.default=ye},ZW9T:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return g});var re=M("k1fw"),G=M("oBTY"),I=M("9og8"),z=M("miYZ"),O=M("tsqr"),w=M("rAM+"),W=M("tJVT"),y=M("PpiC"),L=M("WmNS"),R=M.n(L),d=M("q1tI"),p=M.n(d),_=M("bdgK");function v(s,u,D,S,A){var N=u.getWordUntilPosition(D),j={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:N.startColumn,endColumn:N.endColumn},K=S.map(function(H){return{label:H,kind:s.languages.CompletionItemKind.Keyword,insertText:H,insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:j}});return A.map(function(H){K.push(Object(re.a)(Object(re.a)({},H),{},{range:j}))}),K}var h=function(s){var u={label:"ifelse",kind:s.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet},D=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];s.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(j,K){var H=v(s,j,K,D,[u]);return{suggestions:H}}});var S=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];s.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(j,K){var H=[{label:"print",kind:s.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=v(s,j,K,S,H);return{suggestions:U}}});var A=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];s.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(j,K){var H=[u,{label:"main",kind:s.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:s.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=v(s,j,K,A,H);return{suggestions:U}}})},c="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",n=M("fjLI"),r=M("LvDl"),o=M("+ua5");function l(s){return/^\d+$/.test(s)?"".concat(s,"px"):s}function x(){}var E=!1,b={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=s;if(Array.isArray(s)){for(var D=0;D0||ar.target.offsetWidth>0)&&vt.current.instance.layout()}}catch(fr){cn.e(fr)}finally{cn.f()}}),xt.observe(Ue.current)),xt}function rt(){O.b.warn({content:decodeURIComponent(c),key:"monaco-editor-tip"})}var Je=function(){var Rt=vt.current.instance;if(N!=null&&Rt&&fe){var cn=Rt.getModel();cn&&N!==cn.getValue()&&(E=!0,cn.setValue(N),Rt.layout(),E=!1)}};Object(d.useEffect)(function(){try{var xt,Rt=vt.current.instance;st.current&&clearTimeout(st.current),st.current=setTimeout(function(){Je()},500),Rt==null||((xt=Rt.updateOptions)===null||xt===void 0)||xt.call(Rt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(N.split(/\r\n|\r|\n/g).length))+3,5)})}catch(cn){debugger}},[N,fe,vt.current]),Object(d.useEffect)(function(){try{if(Lt&&vt.current&&vt.current.instance){var xt=vt.current.instance;xt.changeViewZones(function(cn){var xn=document.createElement("div");xn.style.padding="10px 20px",xn.style.width="calc(100% - 20px)",xn.className="my-error-line-wrp",xn.innerHTML=Bt,cn.addZone({afterLineNumber:Lt||11,heightInLines:3,domNode:xn})});var Rt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};xt.addOverlayWidget(Rt),xt.revealPositionInCenter({lineNumber:20,column:1})}}catch(cn){debugger}},[Lt,vt.current,fe]),Object(d.useEffect)(function(){var xt;if((xt=vt.current)!==null&&xt!==void 0&&xt.instance&&fe&&hn){var Rt=vt.current.instance,cn=Rt.getModel();if(!cn)return;var xn=function(){var Tn=[],lr=[],Pr=cn.getAllDecorations(),Er=Object(w.a)(Pr),_r;try{for(Er.s();!(_r=Er.n()).done;){var Q=_r.value;if(Q.options.className==="highlighted-line"){var C;Tn.push(Q==null||((C=Q.range)===null||C===void 0)?void 0:C.startLineNumber),lr.push(Q==null?void 0:Q.id)}}}catch($){Er.e($)}finally{Er.f()}cn.deltaDecorations(lr,[]);var k=cn.getLineCount();!!kt&&kt<=k&&(Rt.deltaDecorations([],[{range:new T.Range(kt,1,kt,cn.getLineMaxColumn(kt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Rt.revealLineInCenter(kt))};xn();var ar=function(){var Tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,lr=[],Pr=[],Er=cn.getAllDecorations(),_r=Object(w.a)(Er),Q;try{for(_r.s();!(Q=_r.n()).done;){var C=Q.value;if(C.options.linesDecorationsClassName==="breakpoints"){var k;lr.push(C==null||((k=C.range)===null||k===void 0)?void 0:k.startLineNumber),Pr.push(C==null?void 0:C.id)}}}catch($){_r.e($)}finally{_r.f()}if(Tn)return{lines:lr,ids:Pr};X(lr)},fr=function(){var Wt=Object(I.a)(R.a.mark(function Tn(lr){var Pr;return R.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return Pr={range:new T.Range(lr,1,lr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},_r.next=3,cn.deltaDecorations([],[Pr]);case 3:ar();case 4:case"end":return _r.stop()}},Tn)}));return function(lr){return Wt.apply(this,arguments)}}(),tr=function(){var Wt=Object(I.a)(R.a.mark(function Tn(lr){var Pr,Er,_r,Q,C;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:Pr=[],Er=Rt.getLineDecorations(lr),_r=Object(w.a)(Er);try{for(_r.s();!(Q=_r.n()).done;)C=Q.value,C.options.linesDecorationsClassName==="breakpoints"&&Pr.push(C.id)}catch(ne){_r.e(ne)}finally{_r.f()}return $.next=6,cn.deltaDecorations(Pr,[]);case 6:ar();case 7:case"end":return $.stop()}},Tn)}));return function(lr){return Wt.apply(this,arguments)}}(),Sn=function(Tn){var lr=Rt.getLineDecorations(Tn),Pr=Object(w.a)(lr),Er;try{for(Pr.s();!(Er=Pr.n()).done;){var _r=Er.value;if(_r.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Q){Pr.e(Q)}finally{Pr.f()}return!1};if(!Object(r.isEqual)(Ee,ar(!0).lines)){cn.deltaDecorations(ar(!0).ids,[]);var Vr=Ee.map(function(Wt){return{range:new T.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});cn.deltaDecorations([],Vr)}var oa=Rt.onDidChangeModelContent(function(Wt){var Tn=Rt.getPosition();if(Tn){var lr=Tn.lineNumber;cn.getLineContent(lr).trim()===""?tr(lr):Sn(lr)&&(tr(lr),fr(lr))}}),Br=Rt.onMouseDown(function(Wt){var Tn,lr,Pr;if(Wt.target.detail&&(Tn=Wt.target)!==null&&Tn!==void 0&&(lr=Tn.element)!==null&&lr!==void 0&&(Pr=lr.className)!==null&&Pr!==void 0&&Pr.includes("line-numbers")){var Er=Wt.target.position.lineNumber;if(cn.getLineContent(Er).trim()==="")return;Sn(Er)?tr(Er):fr(Er)}}),cr=function(Tn){var lr={range:new T.Range(Tn,1,Tn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ct.current=Rt.deltaDecorations(Ct.current,[lr])},Kr=function(){Ct.current=Rt.deltaDecorations(Ct.current,[])},na=Rt.onMouseMove(function(Wt){var Tn,lr,Pr;if(Kr(),Wt.target.detail&&(Tn=Wt.target)!==null&&Tn!==void 0&&(lr=Tn.element)!==null&&lr!==void 0&&(Pr=lr.className)!==null&&Pr!==void 0&&Pr.includes("line-numbers")){var Er=Wt.target.position.lineNumber;if(cn.getLineContent(Er).trim()==="")return;cr(Er)}}),da=Rt.onMouseLeave(function(){Kr()});return function(){oa.dispose(),Br.dispose(),na.dispose(),da.dispose()}}},[vt.current,fe,Ee,kt,hn]);function jt(){var xt=vt.current.instance;if(xt){var Rt=xt.getSelection(),cn=vt.current.pastePos||{},xn=new T.Range(cn.startLineNumber||Rt.endLineNumber,cn.startColumn||Rt.endColumn,cn.endLineNumber||Rt.endLineNumber,cn.endColumn||Rt.endColumn);setTimeout(function(){xt.executeEdits("",[{range:xn,text:""}])},300)}}function rn(xt){(window.navigator.platform.match("Mac")?xt.metaKey:xt.ctrlKey)&&xt.keyCode==83&&(xt.preventDefault(),je())}var pn=function(){if(Ze&&vt.current.instance){var Rt=vt.current.instance.getContentHeight();Xt(Rt0||ve.target.offsetWidth>0)&&Ze.layout()}}catch(Ge){ie.e(Ge)}finally{ie.f()}}),Ae.observe(B.current)),Ae}Object(d.useEffect)(function(){return B.current&&M.e(27).then(M.t.bind(null,"M/lh",7)).then(function(Ze){T=Ze;var Ae=T.editor.createDiffEditor(B.current,Object(re.a)(Object(re.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},U),{},{wordWrap:!0}));be(Ae);var me=Ye(Ae);return function(){Ae.dispose();var ie=Ae.getModel();ie&&ie.dispose(),me.unobserve(B.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(d.useEffect)(function(){he&&he.setModel({original:T.editor.createModel(N,K),modified:T.editor.createModel(j,K)})},[N,j,K,he]);var Pe=l(D),je=l(A),Qe={width:Pe,height:je};return p.a.createElement("div",{className:"my-diff-editor",ref:B,style:Qe})}},ZpRC:function(nn,Ce,M){"use strict";function re(d){return typeof d=="object"&&d!=null&&d.nodeType===1}function G(d,p){return(!p||d!=="hidden")&&d!=="visible"&&d!=="clip"}function I(d,p){if(d.clientHeightp||c>d&&n=p&&r>=_?c-d-v:n>p&&r<_||c_?n-p+h:0}var O=function(d,p){var _=window,v=p.scrollMode,h=p.block,c=p.inline,n=p.boundary,r=p.skipOverflowHiddenElements,o=typeof n=="function"?n:function(X){return X!==n};if(!re(d))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,x=[],E=d;re(E)&&o(E);){if((E=E.parentElement)===l){x.push(E);break}E!=null&&E===document.body&&I(E)&&!I(document.documentElement)||E!=null&&I(E,r)&&x.push(E)}for(var b=_.visualViewport?_.visualViewport.width:innerWidth,P=_.visualViewport?_.visualViewport.height:innerHeight,T=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=d.getBoundingClientRect(),s=g.height,u=g.width,D=g.top,S=g.right,A=g.bottom,N=g.left,j=h==="start"||h==="nearest"?D:h==="end"?A:D+s/2,K=c==="center"?N+u/2:c==="end"?S:N,H=[],U=0;U=0&&N>=0&&A<=P&&S<=b&&D>=be&&A<=Pe&&N>=je&&S<=Ye)return H;var Qe=getComputedStyle(B),Ze=parseInt(Qe.borderLeftWidth,10),Ae=parseInt(Qe.borderTopWidth,10),me=parseInt(Qe.borderRightWidth,10),ie=parseInt(Qe.borderBottomWidth,10),Oe=0,ve=0,Ge="offsetWidth"in B?B.offsetWidth-B.clientWidth-Ze-me:0,pe="offsetHeight"in B?B.offsetHeight-B.clientHeight-Ae-ie:0;if(l===B)Oe=h==="start"?j:h==="end"?j-P:h==="nearest"?z(m,m+P,P,Ae,ie,m+j,m+j+s,s):j-P/2,ve=c==="start"?K:c==="center"?K-b/2:c==="end"?K-b:z(T,T+b,b,Ze,me,T+K,T+K+u,u),Oe=Math.max(0,Oe+m),ve=Math.max(0,ve+T);else{Oe=h==="start"?j-be-Ae:h==="end"?j-Pe+ie+pe:h==="nearest"?z(be,Pe,ee,Ae,ie+pe,j,j+s,s):j-(be+ee/2)+pe/2,ve=c==="start"?K-je-Ze:c==="center"?K-(je+he/2)+Ge/2:c==="end"?K-Ye+me+Ge:z(je,Ye,he,Ze,me+Ge,K,K+u,u);var J=B.scrollLeft,V=B.scrollTop;j+=V-(Oe=Math.max(0,Math.min(V+Oe,B.scrollHeight-ee+pe))),K+=J-(ve=Math.max(0,Math.min(J+ve,B.scrollWidth-he+Ge)))}H.push({el:B,top:Oe,left:ve})}return H};function w(d){return d===Object(d)&&Object.keys(d).length!==0}function W(d,p){p===void 0&&(p="auto");var _="scrollBehavior"in document.body.style;d.forEach(function(v){var h=v.el,c=v.top,n=v.left;h.scroll&&_?h.scroll({top:c,left:n,behavior:p}):(h.scrollTop=c,h.scrollLeft=n)})}function y(d){return d===!1?{block:"end",inline:"nearest"}:w(d)?d:{block:"start",inline:"nearest"}}function L(d,p){var _=!d.ownerDocument.documentElement.contains(d);if(w(p)&&typeof p.behavior=="function")return p.behavior(_?[]:O(d,p));if(_)return;var v=y(p);return W(O(d,v),v.behavior)}var R=Ce.a=L},Zss7:function(nn,Ce,M){var re;(function(G){var I=/^\s+/,z=/\s+$/,O=0,w=G.round,W=G.min,y=G.max,L=G.random;function R(ie,Oe){if(ie=ie||"",Oe=Oe||{},ie instanceof R)return ie;if(!(this instanceof R))return new R(ie,Oe);var ve=d(ie);this._originalInput=ie,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=w(100*this._a)/100,this._format=Oe.format||ve.format,this._gradientType=Oe.gradientType,this._r<1&&(this._r=w(this._r)),this._g<1&&(this._g=w(this._g)),this._b<1&&(this._b=w(this._b)),this._ok=ve.ok,this._tc_id=O++}R.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 ie=this.toRgb();return(ie.r*299+ie.g*587+ie.b*114)/1e3},getLuminance:function(){var ie=this.toRgb(),Oe,ve,Ge,pe,J,V;return Oe=ie.r/255,ve=ie.g/255,Ge=ie.b/255,Oe<=.03928?pe=Oe/12.92:pe=G.pow((Oe+.055)/1.055,2.4),ve<=.03928?J=ve/12.92:J=G.pow((ve+.055)/1.055,2.4),Ge<=.03928?V=Ge/12.92:V=G.pow((Ge+.055)/1.055,2.4),.2126*pe+.7152*J+.0722*V},setAlpha:function(ie){return this._a=H(ie),this._roundA=w(100*this._a)/100,this},toHsv:function(){var ie=h(this._r,this._g,this._b);return{h:ie.h*360,s:ie.s,v:ie.v,a:this._a}},toHsvString:function(){var ie=h(this._r,this._g,this._b),Oe=w(ie.h*360),ve=w(ie.s*100),Ge=w(ie.v*100);return this._a==1?"hsv("+Oe+", "+ve+"%, "+Ge+"%)":"hsva("+Oe+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHsl:function(){var ie=_(this._r,this._g,this._b);return{h:ie.h*360,s:ie.s,l:ie.l,a:this._a}},toHslString:function(){var ie=_(this._r,this._g,this._b),Oe=w(ie.h*360),ve=w(ie.s*100),Ge=w(ie.l*100);return this._a==1?"hsl("+Oe+", "+ve+"%, "+Ge+"%)":"hsla("+Oe+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHex:function(ie){return n(this._r,this._g,this._b,ie)},toHexString:function(ie){return"#"+this.toHex(ie)},toHex8:function(ie){return r(this._r,this._g,this._b,this._a,ie)},toHex8String:function(ie){return"#"+this.toHex8(ie)},toRgb:function(){return{r:w(this._r),g:w(this._g),b:w(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+w(this._r)+", "+w(this._g)+", "+w(this._b)+")":"rgba("+w(this._r)+", "+w(this._g)+", "+w(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:w(U(this._r,255)*100)+"%",g:w(U(this._g,255)*100)+"%",b:w(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+w(U(this._r,255)*100)+"%, "+w(U(this._g,255)*100)+"%, "+w(U(this._b,255)*100)+"%)":"rgba("+w(U(this._r,255)*100)+"%, "+w(U(this._g,255)*100)+"%, "+w(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[n(this._r,this._g,this._b,!0)]||!1},toFilter:function(ie){var Oe="#"+o(this._r,this._g,this._b,this._a),ve=Oe,Ge=this._gradientType?"GradientType = 1, ":"";if(ie){var pe=R(ie);ve="#"+o(pe._r,pe._g,pe._b,pe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ge+"startColorstr="+Oe+",endColorstr="+ve+")"},toString:function(ie){var Oe=!!ie;ie=ie||this._format;var ve=!1,Ge=this._a<1&&this._a>=0,pe=!Oe&&Ge&&(ie==="hex"||ie==="hex6"||ie==="hex3"||ie==="hex4"||ie==="hex8"||ie==="name");return pe?ie==="name"&&this._a===0?this.toName():this.toRgbString():(ie==="rgb"&&(ve=this.toRgbString()),ie==="prgb"&&(ve=this.toPercentageRgbString()),(ie==="hex"||ie==="hex6")&&(ve=this.toHexString()),ie==="hex3"&&(ve=this.toHexString(!0)),ie==="hex4"&&(ve=this.toHex8String(!0)),ie==="hex8"&&(ve=this.toHex8String()),ie==="name"&&(ve=this.toName()),ie==="hsl"&&(ve=this.toHslString()),ie==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(ie,Oe){var ve=ie.apply(null,[this].concat([].slice.call(Oe)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(m,arguments)},_applyCombination:function(ie,Oe){return ie.apply(null,[this].concat([].slice.call(Oe)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(u,arguments)}},R.fromRatio=function(ie,Oe){if(typeof ie=="object"){var ve={};for(var Ge in ie)ie.hasOwnProperty(Ge)&&(Ge==="a"?ve[Ge]=ie[Ge]:ve[Ge]=Ye(ie[Ge]));ie=ve}return R(ie,Oe)};function d(ie){var Oe={r:0,g:0,b:0},ve=1,Ge=null,pe=null,J=null,V=!1,X=!1;return typeof ie=="string"&&(ie=Ae(ie)),typeof ie=="object"&&(Ze(ie.r)&&Ze(ie.g)&&Ze(ie.b)?(Oe=p(ie.r,ie.g,ie.b),V=!0,X=String(ie.r).substr(-1)==="%"?"prgb":"rgb"):Ze(ie.h)&&Ze(ie.s)&&Ze(ie.v)?(Ge=Ye(ie.s),pe=Ye(ie.v),Oe=c(ie.h,Ge,pe),V=!0,X="hsv"):Ze(ie.h)&&Ze(ie.s)&&Ze(ie.l)&&(Ge=Ye(ie.s),J=Ye(ie.l),Oe=v(ie.h,Ge,J),V=!0,X="hsl"),ie.hasOwnProperty("a")&&(ve=ie.a)),ve=H(ve),{ok:V,format:ie.format||X,r:W(255,y(Oe.r,0)),g:W(255,y(Oe.g,0)),b:W(255,y(Oe.b,0)),a:ve}}function p(ie,Oe,ve){return{r:U(ie,255)*255,g:U(Oe,255)*255,b:U(ve,255)*255}}function _(ie,Oe,ve){ie=U(ie,255),Oe=U(Oe,255),ve=U(ve,255);var Ge=y(ie,Oe,ve),pe=W(ie,Oe,ve),J,V,X=(Ge+pe)/2;if(Ge==pe)J=V=0;else{var ue=Ge-pe;V=X>.5?ue/(2-Ge-pe):ue/(Ge+pe);switch(Ge){case ie:J=(Oe-ve)/ue+(Oe1&&(Ke-=1),Ke<1/6?Ee+(We-Ee)*6*Ke:Ke<1/2?We:Ke<2/3?Ee+(We-Ee)*(2/3-Ke)*6:Ee}if(Oe===0)Ge=pe=J=ve;else{var X=ve<.5?ve*(1+Oe):ve+Oe-ve*Oe,ue=2*ve-X;Ge=V(ue,X,ie+1/3),pe=V(ue,X,ie),J=V(ue,X,ie-1/3)}return{r:Ge*255,g:pe*255,b:J*255}}function h(ie,Oe,ve){ie=U(ie,255),Oe=U(Oe,255),ve=U(ve,255);var Ge=y(ie,Oe,ve),pe=W(ie,Oe,ve),J,V,X=Ge,ue=Ge-pe;if(V=Ge===0?0:ue/Ge,Ge==pe)J=0;else{switch(Ge){case ie:J=(Oe-ve)/ue+(Oe>1)+720)%360;--Oe;)Ge.h=(Ge.h+pe)%360,J.push(R(Ge));return J}function A(ie,Oe){Oe=Oe||6;for(var ve=R(ie).toHsv(),Ge=ve.h,pe=ve.s,J=ve.v,V=[],X=1/Oe;Oe--;)V.push(R({h:Ge,s:pe,v:J})),J=(J+X)%1;return V}R.mix=function(ie,Oe,ve){ve=ve===0?0:ve||50;var Ge=R(ie).toRgb(),pe=R(Oe).toRgb(),J=ve/100,V={r:(pe.r-Ge.r)*J+Ge.r,g:(pe.g-Ge.g)*J+Ge.g,b:(pe.b-Ge.b)*J+Ge.b,a:(pe.a-Ge.a)*J+Ge.a};return R(V)},R.readability=function(ie,Oe){var ve=R(ie),Ge=R(Oe);return(G.max(ve.getLuminance(),Ge.getLuminance())+.05)/(G.min(ve.getLuminance(),Ge.getLuminance())+.05)},R.isReadable=function(ie,Oe,ve){var Ge=R.readability(ie,Oe),pe,J;J=!1,pe=me(ve);switch(pe.level+pe.size){case"AAsmall":case"AAAlarge":J=Ge>=4.5;break;case"AAlarge":J=Ge>=3;break;case"AAAsmall":J=Ge>=7;break}return J},R.mostReadable=function(ie,Oe,ve){var Ge=null,pe=0,J,V,X,ue;ve=ve||{},V=ve.includeFallbackColors,X=ve.level,ue=ve.size;for(var Ee=0;Eepe&&(pe=J,Ge=R(Oe[Ee]));return R.isReadable(ie,Ge,{level:X,size:ue})||!V?Ge:(ve.includeFallbackColors=!1,R.mostReadable(ie,["#fff","#000"],ve))};var N=R.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"},j=R.hexNames=K(N);function K(ie){var Oe={};for(var ve in ie)ie.hasOwnProperty(ve)&&(Oe[ie[ve]]=ve);return Oe}function H(ie){return ie=parseFloat(ie),(isNaN(ie)||ie<0||ie>1)&&(ie=1),ie}function U(ie,Oe){ee(ie)&&(ie="100%");var ve=he(ie);return ie=W(Oe,y(0,parseFloat(ie))),ve&&(ie=parseInt(ie*Oe,10)/100),G.abs(ie-Oe)<1e-6?1:ie%Oe/parseFloat(Oe)}function B(ie){return W(1,y(0,ie))}function q(ie){return parseInt(ie,16)}function ee(ie){return typeof ie=="string"&&ie.indexOf(".")!=-1&&parseFloat(ie)===1}function he(ie){return typeof ie=="string"&&ie.indexOf("%")!=-1}function be(ie){return ie.length==1?"0"+ie:""+ie}function Ye(ie){return ie<=1&&(ie=ie*100+"%"),ie}function Pe(ie){return G.round(parseFloat(ie)*255).toString(16)}function je(ie){return q(ie)/255}var Qe=function(){var ie="[-\\+]?\\d+%?",Oe="[-\\+]?\\d*\\.\\d+%?",ve="(?:"+Oe+")|(?:"+ie+")",Ge="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?",pe="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?";return{CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+Ge),rgba:new RegExp("rgba"+pe),hsl:new RegExp("hsl"+Ge),hsla:new RegExp("hsla"+pe),hsv:new RegExp("hsv"+Ge),hsva:new RegExp("hsva"+pe),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 Ze(ie){return!!Qe.CSS_UNIT.exec(ie)}function Ae(ie){ie=ie.replace(I,"").replace(z,"").toLowerCase();var Oe=!1;if(N[ie])ie=N[ie],Oe=!0;else if(ie=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ve;return(ve=Qe.rgb.exec(ie))?{r:ve[1],g:ve[2],b:ve[3]}:(ve=Qe.rgba.exec(ie))?{r:ve[1],g:ve[2],b:ve[3],a:ve[4]}:(ve=Qe.hsl.exec(ie))?{h:ve[1],s:ve[2],l:ve[3]}:(ve=Qe.hsla.exec(ie))?{h:ve[1],s:ve[2],l:ve[3],a:ve[4]}:(ve=Qe.hsv.exec(ie))?{h:ve[1],s:ve[2],v:ve[3]}:(ve=Qe.hsva.exec(ie))?{h:ve[1],s:ve[2],v:ve[3],a:ve[4]}:(ve=Qe.hex8.exec(ie))?{r:q(ve[1]),g:q(ve[2]),b:q(ve[3]),a:je(ve[4]),format:Oe?"name":"hex8"}:(ve=Qe.hex6.exec(ie))?{r:q(ve[1]),g:q(ve[2]),b:q(ve[3]),format:Oe?"name":"hex"}:(ve=Qe.hex4.exec(ie))?{r:q(ve[1]+""+ve[1]),g:q(ve[2]+""+ve[2]),b:q(ve[3]+""+ve[3]),a:je(ve[4]+""+ve[4]),format:Oe?"name":"hex8"}:(ve=Qe.hex3.exec(ie))?{r:q(ve[1]+""+ve[1]),g:q(ve[2]+""+ve[2]),b:q(ve[3]+""+ve[3]),format:Oe?"name":"hex"}:!1}function me(ie){var Oe,ve;return ie=ie||{level:"AA",size:"small"},Oe=(ie.level||"AA").toUpperCase(),ve=(ie.size||"small").toLowerCase(),Oe!=="AA"&&Oe!=="AAA"&&(Oe="AA"),ve!=="small"&&ve!=="large"&&(ve="small"),{level:Oe,size:ve}}nn.exports?nn.exports=R:!(re=function(){return R}.call(Ce,M,Ce,nn),re!==void 0&&(nn.exports=re))})(Math)},aUhZ:function(nn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("g9YV"),z=M("wCAj"),O=M("5NDa"),w=M("5rEg"),W=M("14J3"),y=M("BMrR"),L=M("iQDF"),R=M("+eQT"),d=M("miYZ"),p=M("tsqr"),_=M("jrin"),v=M("oBTY"),h=M("k1fw"),c=M("9og8"),n=M("y8nQ"),r=M("Vl3Y"),o=M("tJVT"),l=M("PpiC"),x=M("WmNS"),E=M.n(x),b=M("q1tI"),P=M.n(b),T=M("wd/R"),m=M.n(T),g=M("ErOA"),s=M("1vsH"),u=M("Ty5D"),D=M("9kvl"),S=M("oUNq"),A=M("xKgJ"),N=function(K){var H=K.classroomList,U=K.dispatch,B=Object(l.a)(K,["classroomList","dispatch"]),q=Object(u.i)(),ee=r.a.useForm(),he=Object(o.a)(ee,1),be=he[0],Ye=Object(b.useState)(1),Pe=Object(o.a)(Ye,2),je=Pe[0],Qe=Pe[1],Ze=Object(b.useState)([]),Ae=Object(o.a)(Ze,2),me=Ae[0],ie=Ae[1],Oe=Object(b.useState)(0),ve=Object(o.a)(Oe,2),Ge=ve[0],pe=ve[1],J=Object(b.useState)(2e4),V=Object(o.a)(J,2),X=V[0],ue=V[1],Ee=Object(b.useState)(!0),We=Object(o.a)(Ee,2),Ke=We[0],Lt=We[1],Kt=Object(b.useState)(),Bt=Object(o.a)(Kt,2),kt=Bt[0],Qt=Bt[1],hn=Object(b.useState)([]),qe=Object(o.a)(hn,2),Ue=qe[0],vt=qe[1];q.id=q.coursesId,Object(b.useEffect)(function(){H.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?Mt():(vt([]),ie([]))},[H.actionTabs.key]);var Mt=function(){var Ne=Object(c.a)(E.a.mark(function Se(Te){var le,fe,_e;return E.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return Lt(!0),rt.next=3,Object(S.A)(Object(h.a)(Object(h.a)({},q),{},{page:Te||je,limit:X,homework_id:H.actionTabs.type===1?"":H.actionTabs.selectArrs[0],end_homework_action:!0,all:!0}));case 3:le=rt.sent,le==null||le.course_groups.map(function(Je){Je.key=Je.id}),le&&(ie([].concat(Object(v.a)(me),Object(v.a)(le==null?void 0:le.course_groups))),pe(le==null?void 0:le.group_count),Qt(le==null?void 0:le.course_groups),Lt(!1),Te||be.setFieldsValue((_e={},Object(_.a)(_e,"group_ids",le==null||((fe=le.course_groups)===null||fe===void 0)?void 0:fe.map(function(Je){return String(Je.id)})),Object(_.a)(_e,"end_time",m()(m()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),_e)));case 6:case"end":return rt.stop()}},Se)}));return function(Te){return Ne.apply(this,arguments)}}(),st=function(){var Ne=Object(c.a)(E.a.mark(function Se(){var Te,le;return E.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Te=Object(h.a)({},be.getFieldsValue()),console.log("----",Te.group_ids),_e.next=4,Object(g.a)("/api/courses/".concat(q.id,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(v.a)(H.actionTabs.selectArrs),group_ids:(Ue==null?void 0:Ue.length)>0?Ue:[],unified_setting:!(me!=null&&me.length),end_time:m()(Te.end_time).format("YYYY-MM-DD HH:mm")}});case 4:le=_e.sent,le.status===0&&(Ct(),Object(s.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u622A\u6B62"]),p.b.success("\u64CD\u4F5C\u6210\u529F"),U({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),B.onCallback&&B.onCallback(),Object(A.c)()?(U({type:"classroomList/setActionTabs",payload:{}}),U({type:"classroomList/getClassroomTeacherCommonList",payload:Object(h.a)(Object(h.a)({},H.actionTabs.params),{},{type:1})})):U({type:"classroomList/getClassroomCommonList",payload:Object(h.a)({},H.actionTabs.params)}));case 6:case"end":return _e.stop()}},Se)}));return function(){return Ne.apply(this,arguments)}}(),Ct=function(){Qe(1),ie([])};return P.a.createElement(G.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:H.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:st,onCancel:function(){Ct(),U({type:"classroomList/setActionTabs",payload:{}})}},P.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",P.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),me&&P.a.createElement(r.a,{form:be},P.a.createElement(y.a,null,P.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),P.a.createElement(r.a.Item,{name:"end_time"},P.a.createElement(R.a,{style:{width:170},getPopupContainer:function(Se){return Se.parentNode},disabledDate:function(Se){return Se&&Se0&&P.a.createElement(y.a,null,P.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),P.a.createElement(w.a.Search,{style:{width:"300px"},onChange:function(Se){ie(kt.filter(function(Te){return Te.name.indexOf(Se.target.value)>-1}))}})),(me==null?void 0:me.length)>0&&H.actionTabs.type===1&&P.a.createElement(z.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Se,Te){vt(Se)}},rowKey:"id",pagination:!1,dataSource:me,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(me==null?void 0:me.length)>0&&H.actionTabs.type===2&&P.a.createElement(z.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Se,Te){vt(Se)}},rowKey:"id",pagination:!1,dataSource:me,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))};Ce.a=Object(D.a)(function(j){var K=j.classroomList;return{classroomList:K}})(N)},bT9E:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return G});var re=M("VTBJ");function G(I,z){var O=Object(re.a)({},I);return Array.isArray(z)&&z.forEach(function(w){delete O[w]}),O}},biw7:function(nn,Ce,M){"use strict";var re=M("q1tI"),G=M.n(re),I=re.createContext(null);Ce.a=I},c5Ni:function(nn,Ce,M){},dejd:function(nn,Ce,M){},dmUQ:function(nn,Ce,M){"use strict";var re=M("Ff2n"),G=M("rePB"),I=M("1OyB"),z=M("vuIU"),O=M("Ji7U"),w=M("md7G"),W=M("foSv"),y=M("q1tI"),L=M.n(y),R=M("TSYQ"),d=M.n(R),p=M("4IlW");function _(s,u){var D=Object.keys(s);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(s);u&&(S=S.filter(function(A){return Object.getOwnPropertyDescriptor(s,A).enumerable})),D.push.apply(D,S)}return D}function v(s){for(var u=1;u1?he-1:0),Ye=1;Ye1?U-1:0),q=1;q=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var U=0;return H.indexOf(".")>=0&&(U=H.length-H.indexOf(".")-1),U},A.getInputDisplayValue=function(K){var H=K||A.state,U=H.focused,B=H.inputValue,q=H.value,ee;U?ee=B:ee=A.toPrecisionAsStep(q),ee==null&&(ee="");var he=A.formatWrapper(ee);return b(A.props.decimalSeparator)&&(he=he.toString().replace(".",A.props.decimalSeparator)),he},A.recordCursorPosition=function(){try{A.cursorStart=A.input.selectionStart,A.cursorEnd=A.input.selectionEnd,A.currentValue=A.input.value,A.cursorBefore=A.input.value.substring(0,A.cursorStart),A.cursorAfter=A.input.value.substring(A.cursorEnd)}catch(K){}},A.restoreByAfter=function(K){if(K===void 0)return!1;var H=A.input.value,U=H.lastIndexOf(K);if(U===-1)return!1;var B=A.cursorBefore.length;return A.lastKeyCode===p.a.DELETE&&A.cursorBefore.charAt(B-1)===K[0]?(A.fixCaret(B,B),!0):U+K.length===H.length?(A.fixCaret(U,U),!0):!1},A.partRestoreByAfter=function(K){return K===void 0?!1:Array.prototype.some.call(K,function(H,U){var B=K.substring(U);return A.restoreByAfter(B)})},A.isNotCompleteNumber=function(K){return isNaN(K)||K===""||K===null||K&&K.toString().indexOf(".")===K.toString().length-1},A.stop=function(){A.autoStepTimer&&clearTimeout(A.autoStepTimer)},A.down=function(K,H,U){A.pressingUpOrDown=!0,A.step("down",K,H,U)},A.up=function(K,H,U){A.pressingUpOrDown=!0,A.step("up",K,H,U)},A.saveInput=function(K){A.input=K};var N=S.value;N===void 0&&(N=S.defaultValue),A.state={focused:S.autoFocus};var j=A.getValidValue(A.toNumber(N));return A.state=v(v({},A.state),{},{inputValue:A.toPrecisionAsStep(j),value:j}),A}return Object(z.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(A){var N=this.props,j=N.value,K=N.onChange,H=N.max,U=N.min,B=this.state.focused;if(A){if(!P(A.value,j)||!P(A.max,H)||!P(A.min,U)){var q=B?j:this.getValidValue(j),ee;this.pressingUpOrDown?ee=q:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(q),this.setState({value:q,inputValue:ee})}var he="value"in this.props?j:this.state.value;"max"in this.props&&A.max!==H&&typeof he=="number"&&he>H&&K&&K(H),"min"in this.props&&A.min!==U&&typeof he=="number"&&he1&&arguments[1]!==void 0?arguments[1]:this.props.min,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,K=parseFloat(A);return isNaN(K)?A:(Kj&&(K=j),K)}},{key:"setValue",value:function(A,N){var j=this.props.precision,K=this.isNotCompleteNumber(parseFloat(A))?null:parseFloat(A),H=this.state.value,U=H===void 0?null:H,B=this.state.inputValue,q=B===void 0?null:B,ee=typeof K=="number"?K.toFixed(j):"".concat(K),he=K!==U||ee!=="".concat(q);return"value"in this.props?(q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:q},N)):this.setState({value:K,inputValue:this.toPrecisionAsStep(A)},N),he&&this.props.onChange(K),K}},{key:"getMaxPrecision",value:function(A){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.props,K=j.precision,H=j.step;if(b(K))return K;var U=this.getPrecision(N),B=this.getPrecision(H),q=this.getPrecision(A);return A?Math.max(q,U+B):U+B}},{key:"getPrecisionFactor",value:function(A){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.getMaxPrecision(A,N);return Math.pow(10,j)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(A){return this.props.formatter?this.props.formatter(A):A}},{key:"toPrecisionAsStep",value:function(A){if(this.isNotCompleteNumber(A)||A==="")return A;var N=Math.abs(this.getMaxPrecision(A));return isNaN(N)?A.toString():Number(A).toFixed(N)}},{key:"toNumber",value:function(A){var N=this.props.precision,j=this.state.focused,K=A&&A.length>16&&j;return this.isNotCompleteNumber(A)||K?A:b(N)?Math.round(A*Math.pow(10,N))/Math.pow(10,N):Number(A)}},{key:"upStep",value:function(A,N){var j=this.props.step,K=this.getPrecisionFactor(A,N),H=Math.abs(this.getMaxPrecision(A,N)),U=((K*A+K*j*N)/K).toFixed(H);return this.toNumber(U)}},{key:"downStep",value:function(A,N){var j=this.props.step,K=this.getPrecisionFactor(A,N),H=Math.abs(this.getMaxPrecision(A,N)),U=((K*A-K*j*N)/K).toFixed(H);return this.toNumber(U)}},{key:"step",value:function(A,N){var j=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var U=this.props;if(U.disabled)return;var B=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(B))return;var q=this["".concat(A,"Step")](B,K),ee=q>U.max||qU.max?q=U.max:q=be),Ct=(Qt||Qt===0)&&(isNaN(Qt)||Number(Qt)<=Ye),Ne=st||K||H,Se=Ct||K||H,Te=d()("".concat(j,"-handler"),"".concat(j,"-handler-up"),Object(G.a)({},"".concat(j,"-handler-up-disabled"),Ne)),le=d()("".concat(j,"-handler"),"".concat(j,"-handler-down"),Object(G.a)({},"".concat(j,"-handler-down-disabled"),Se)),fe=U?{onTouchStart:Ne?n:this.up,onTouchEnd:this.stop}:{onMouseDown:Ne?n:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},_e=U?{onTouchStart:Se?n:this.down,onTouchEnd:this.stop}:{onMouseDown:Se?n:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return L.a.createElement("div",{className:qe,style:Pe,title:je,onMouseEnter:Qe,onMouseLeave:Ze,onMouseOver:Ae,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},L.a.createElement("div",{className:"".concat(j,"-handler-wrap")},L.a.createElement("span",Object.assign({unselectable:"on"},fe,{role:"button","aria-label":"Increase Value","aria-disabled":Ne,className:Te}),q||L.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner"),onClick:r})),L.a.createElement("span",Object.assign({unselectable:"on"},_e,{role:"button","aria-label":"Decrease Value","aria-disabled":Se,className:le}),ee||L.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner"),onClick:r}))),L.a.createElement("div",{className:"".concat(j,"-input-wrap")},L.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ye,"aria-valuemax":be,"aria-valuenow":Qt,required:ie,type:Ge,placeholder:pe,onPaste:Lt,onClick:Oe,onMouseUp:this.onMouseUp,className:"".concat(j,"-input"),tabIndex:ve,autoComplete:B,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:vt?this.onKeyDown:n,onKeyUp:vt?this.onKeyUp:n,autoFocus:We,maxLength:Ee,readOnly:H,disabled:K,max:be,min:Ye,step:ue,name:Ke,title:je,id:J,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Mt),pattern:X,inputMode:V,onInput:Kt},Ue))))}}]),D}(L.a.Component);T.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:n,onKeyDown:n,onPressEnter:n,onFocus:n,onBlur:n,parser:o,required:!1,autoComplete:"off"};var m=T,g=Ce.a=m},fjLI:function(nn,Ce,M){"use strict";M.d(Ce,"e",function(){return R}),M.d(Ce,"a",function(){return d}),M.d(Ce,"c",function(){return p}),M.d(Ce,"d",function(){return v}),M.d(Ce,"b",function(){return h});var re=M("8HAY"),G=M("Cg/j"),I=M("T8No"),z=M("nnTU"),O=M("MI8n"),w=function(){var c=function(n,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var x in l)l.hasOwnProperty(x)&&(o[x]=l[x])},c(n,r)};return function(n,r){c(n,r);function o(){this.constructor=n}n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),W=function(c,n,r,o){var l=arguments.length,x=l<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,r):o,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(c,n,r,o);else for(var b=c.length-1;b>=0;b--)(E=c[b])&&(x=(l<3?E(x):l>3?E(n,r,x):E(n,r))||x);return l>3&&x&&Object.defineProperty(n,r,x),x},y=function(c,n){return function(r,o){n(r,o,c)}},L=function(){for(var c=0,n=0,r=arguments.length;n=0&&(l.splice(x,1),o._onDidChangeMenu.fire(n))}}},c.prototype.getMenuItems=function(n){var r=(this._menuItems.get(n)||[]).slice(0);return n===0&&this._appendImplicitItems(r),r},c.prototype._appendImplicitItems=function(n){for(var r=new Set,o=n.filter(function(T){return R(T)}),l=0,x=o;lj.length)&&(K=j.length);for(var H=0,U=new Array(K);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(j,U))continue;H[U]=j[U]}}return H}function h(j,K){if(j==null)return{};var H={},U=Object.keys(j),B,q;for(q=0;q=0)continue;H[B]=j[B]}return H}var c=function(K){var H=K.className,U=K.percent,B=K.prefixCls,q=K.strokeColor,ee=K.strokeLinecap,he=K.strokeWidth,be=K.style,Ye=K.trailColor,Pe=K.trailWidth,je=K.transition,Qe=v(K,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Qe.gapPosition;var Ze=Array.isArray(U)?U:[U],Ae=Array.isArray(q)?q:[q],me=w(Ze),ie=y(me,1),Oe=ie[0],ve=he/2,Ge=100-he/2,pe="M ".concat(ee==="round"?ve:0,",").concat(ve,` - L `).concat(ee==="round"?Ge:100,",").concat(ve),J="0 0 100 ".concat(he),V=0;return G.a.createElement("svg",W({className:z()("".concat(B,"-line"),H),viewBox:J,preserveAspectRatio:"none",style:be},Qe),G.a.createElement("path",{className:"".concat(B,"-line-trail"),d:pe,strokeLinecap:ee,stroke:Ye,strokeWidth:Pe||he,fillOpacity:"0"}),Ze.map(function(X,ue){var Ee={strokeDasharray:"".concat(X,"px, 100px"),strokeDashoffset:"-".concat(V,"px"),transition:je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},We=Ae[ue]||Ae[Ae.length-1];return V+=X,G.a.createElement("path",{key:ue,className:"".concat(B,"-line-path"),d:pe,strokeLinecap:ee,stroke:We,strokeWidth:he,fillOpacity:"0",ref:Oe[ue],style:Ee})}))};c.defaultProps=O;var n=c;function r(){return r=Object.assign||function(j){for(var K=1;Kj.length)&&(K=j.length);for(var H=0,U=new Array(K);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(j,U))continue;H[U]=j[U]}}return H}function m(j,K){if(j==null)return{};var H={},U=Object.keys(j),B,q;for(q=0;q=0)continue;H[B]=j[B]}return H}var g=0;function s(j){return+j.replace("%","")}function u(j){return Array.isArray(j)?j:[j]}function D(j,K,H,U){var B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,q=arguments.length>5?arguments[5]:void 0,ee=50-U/2,he=0,be=-ee,Ye=0,Pe=-2*ee;switch(q){case"left":he=-ee,be=0,Ye=2*ee,Pe=0;break;case"right":he=ee,be=0,Ye=-2*ee,Pe=0;break;case"bottom":be=ee,Pe=2*ee;break;default:}var je="M 50,50 m ".concat(he,",").concat(be,` +`),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=v(s,j,K,A,H);return{suggestions:U}}})},c="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",n=M("fjLI"),r=M("LvDl"),o=M("+ua5");function l(s){return/^\d+$/.test(s)?"".concat(s,"px"):s}function x(){}var E=!1,b={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=s;if(Array.isArray(s)){for(var D=0;D0||ar.target.offsetWidth>0)&&vt.current.instance.layout()}}catch(dr){un.e(dr)}finally{un.f()}}),xt.observe(Ue.current)),xt}function at(){O.b.warn({content:decodeURIComponent(c),key:"monaco-editor-tip"})}var Je=function(){var Rt=vt.current.instance;if(N!=null&&Rt&&fe){var un=Rt.getModel();un&&N!==un.getValue()&&(E=!0,un.setValue(N),Rt.layout(),E=!1)}};Object(d.useEffect)(function(){try{var xt,Rt=vt.current.instance;st.current&&clearTimeout(st.current),st.current=setTimeout(function(){Je()},500),Rt==null||((xt=Rt.updateOptions)===null||xt===void 0)||xt.call(Rt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(N.split(/\r\n|\r|\n/g).length))+3,5)})}catch(un){debugger}},[N,fe,vt.current]),Object(d.useEffect)(function(){try{if(Pt&&vt.current&&vt.current.instance){var xt=vt.current.instance;xt.changeViewZones(function(un){var _n=document.createElement("div");_n.style.padding="10px 20px",_n.style.width="calc(100% - 20px)",_n.className="my-error-line-wrp",_n.innerHTML=Bt,un.addZone({afterLineNumber:Pt||11,heightInLines:3,domNode:_n})});var Rt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};xt.addOverlayWidget(Rt),xt.revealPositionInCenter({lineNumber:20,column:1})}}catch(un){debugger}},[Pt,vt.current,fe]),Object(d.useEffect)(function(){var xt;if((xt=vt.current)!==null&&xt!==void 0&&xt.instance&&fe&&fn){var Rt=vt.current.instance,un=Rt.getModel();if(!un)return;var _n=function(){var Sn=[],lr=[],Rr=un.getAllDecorations(),Er=Object(w.a)(Rr),_r;try{for(Er.s();!(_r=Er.n()).done;){var Q=_r.value;if(Q.options.className==="highlighted-line"){var C;Sn.push(Q==null||((C=Q.range)===null||C===void 0)?void 0:C.startLineNumber),lr.push(Q==null?void 0:Q.id)}}}catch($){Er.e($)}finally{Er.f()}un.deltaDecorations(lr,[]);var k=un.getLineCount();!!kt&&kt<=k&&(Rt.deltaDecorations([],[{range:new T.Range(kt,1,kt,un.getLineMaxColumn(kt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Rt.revealLineInCenter(kt))};_n();var ar=function(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,lr=[],Rr=[],Er=un.getAllDecorations(),_r=Object(w.a)(Er),Q;try{for(_r.s();!(Q=_r.n()).done;){var C=Q.value;if(C.options.linesDecorationsClassName==="breakpoints"){var k;lr.push(C==null||((k=C.range)===null||k===void 0)?void 0:k.startLineNumber),Rr.push(C==null?void 0:C.id)}}}catch($){_r.e($)}finally{_r.f()}if(Sn)return{lines:lr,ids:Rr};X(lr)},dr=function(){var Wt=Object(I.a)(R.a.mark(function Sn(lr){var Rr;return R.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return Rr={range:new T.Range(lr,1,lr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},_r.next=3,un.deltaDecorations([],[Rr]);case 3:ar();case 4:case"end":return _r.stop()}},Sn)}));return function(lr){return Wt.apply(this,arguments)}}(),er=function(){var Wt=Object(I.a)(R.a.mark(function Sn(lr){var Rr,Er,_r,Q,C;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:Rr=[],Er=Rt.getLineDecorations(lr),_r=Object(w.a)(Er);try{for(_r.s();!(Q=_r.n()).done;)C=Q.value,C.options.linesDecorationsClassName==="breakpoints"&&Rr.push(C.id)}catch(ne){_r.e(ne)}finally{_r.f()}return $.next=6,un.deltaDecorations(Rr,[]);case 6:ar();case 7:case"end":return $.stop()}},Sn)}));return function(lr){return Wt.apply(this,arguments)}}(),wn=function(Sn){var lr=Rt.getLineDecorations(Sn),Rr=Object(w.a)(lr),Er;try{for(Rr.s();!(Er=Rr.n()).done;){var _r=Er.value;if(_r.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Q){Rr.e(Q)}finally{Rr.f()}return!1};if(!Object(r.isEqual)(Ee,ar(!0).lines)){un.deltaDecorations(ar(!0).ids,[]);var Vr=Ee.map(function(Wt){return{range:new T.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});un.deltaDecorations([],Vr)}var ca=Rt.onDidChangeModelContent(function(Wt){var Sn=Rt.getPosition();if(Sn){var lr=Sn.lineNumber;un.getLineContent(lr).trim()===""?er(lr):wn(lr)&&(er(lr),dr(lr))}}),Ur=Rt.onMouseDown(function(Wt){var Sn,lr,Rr;if(Wt.target.detail&&(Sn=Wt.target)!==null&&Sn!==void 0&&(lr=Sn.element)!==null&&lr!==void 0&&(Rr=lr.className)!==null&&Rr!==void 0&&Rr.includes("line-numbers")){var Er=Wt.target.position.lineNumber;if(un.getLineContent(Er).trim()==="")return;wn(Er)?er(Er):dr(Er)}}),ur=function(Sn){var lr={range:new T.Range(Sn,1,Sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ct.current=Rt.deltaDecorations(Ct.current,[lr])},Kr=function(){Ct.current=Rt.deltaDecorations(Ct.current,[])},oa=Rt.onMouseMove(function(Wt){var Sn,lr,Rr;if(Kr(),Wt.target.detail&&(Sn=Wt.target)!==null&&Sn!==void 0&&(lr=Sn.element)!==null&&lr!==void 0&&(Rr=lr.className)!==null&&Rr!==void 0&&Rr.includes("line-numbers")){var Er=Wt.target.position.lineNumber;if(un.getLineContent(Er).trim()==="")return;ur(Er)}}),ma=Rt.onMouseLeave(function(){Kr()});return function(){ca.dispose(),Ur.dispose(),oa.dispose(),ma.dispose()}}},[vt.current,fe,Ee,kt,fn]);function jt(){var xt=vt.current.instance;if(xt){var Rt=xt.getSelection(),un=vt.current.pastePos||{},_n=new T.Range(un.startLineNumber||Rt.endLineNumber,un.startColumn||Rt.endColumn,un.endLineNumber||Rt.endLineNumber,un.endColumn||Rt.endColumn);setTimeout(function(){xt.executeEdits("",[{range:_n,text:""}])},300)}}function nn(xt){(window.navigator.platform.match("Mac")?xt.metaKey:xt.ctrlKey)&&xt.keyCode==83&&(xt.preventDefault(),je())}var pn=function(){if(Qe&&vt.current.instance){var Rt=vt.current.instance.getContentHeight();Xt(Rt0||ve.target.offsetWidth>0)&&Qe.layout()}}catch(Ge){ie.e(Ge)}finally{ie.f()}}),Ae.observe(B.current)),Ae}Object(d.useEffect)(function(){return B.current&&M.e(27).then(M.t.bind(null,"M/lh",7)).then(function(Qe){T=Qe;var Ae=T.editor.createDiffEditor(B.current,Object(re.a)(Object(re.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},U),{},{wordWrap:!0}));ye(Ae);var me=Ye(Ae);return function(){Ae.dispose();var ie=Ae.getModel();ie&&ie.dispose(),me.unobserve(B.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(d.useEffect)(function(){he&&he.setModel({original:T.editor.createModel(N,K),modified:T.editor.createModel(j,K)})},[N,j,K,he]);var Pe=l(D),je=l(A),Ze={width:Pe,height:je};return p.a.createElement("div",{className:"my-diff-editor",ref:B,style:Ze})}},ZpRC:function(tn,Ce,M){"use strict";function re(d){return typeof d=="object"&&d!=null&&d.nodeType===1}function G(d,p){return(!p||d!=="hidden")&&d!=="visible"&&d!=="clip"}function I(d,p){if(d.clientHeightp||c>d&&n=p&&r>=_?c-d-v:n>p&&r<_||c_?n-p+h:0}var O=function(d,p){var _=window,v=p.scrollMode,h=p.block,c=p.inline,n=p.boundary,r=p.skipOverflowHiddenElements,o=typeof n=="function"?n:function(X){return X!==n};if(!re(d))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,x=[],E=d;re(E)&&o(E);){if((E=E.parentElement)===l){x.push(E);break}E!=null&&E===document.body&&I(E)&&!I(document.documentElement)||E!=null&&I(E,r)&&x.push(E)}for(var b=_.visualViewport?_.visualViewport.width:innerWidth,P=_.visualViewport?_.visualViewport.height:innerHeight,T=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=d.getBoundingClientRect(),s=g.height,u=g.width,D=g.top,S=g.right,A=g.bottom,N=g.left,j=h==="start"||h==="nearest"?D:h==="end"?A:D+s/2,K=c==="center"?N+u/2:c==="end"?S:N,H=[],U=0;U=0&&N>=0&&A<=P&&S<=b&&D>=ye&&A<=Pe&&N>=je&&S<=Ye)return H;var Ze=getComputedStyle(B),Qe=parseInt(Ze.borderLeftWidth,10),Ae=parseInt(Ze.borderTopWidth,10),me=parseInt(Ze.borderRightWidth,10),ie=parseInt(Ze.borderBottomWidth,10),Oe=0,ve=0,Ge="offsetWidth"in B?B.offsetWidth-B.clientWidth-Qe-me:0,pe="offsetHeight"in B?B.offsetHeight-B.clientHeight-Ae-ie:0;if(l===B)Oe=h==="start"?j:h==="end"?j-P:h==="nearest"?z(m,m+P,P,Ae,ie,m+j,m+j+s,s):j-P/2,ve=c==="start"?K:c==="center"?K-b/2:c==="end"?K-b:z(T,T+b,b,Qe,me,T+K,T+K+u,u),Oe=Math.max(0,Oe+m),ve=Math.max(0,ve+T);else{Oe=h==="start"?j-ye-Ae:h==="end"?j-Pe+ie+pe:h==="nearest"?z(ye,Pe,ee,Ae,ie+pe,j,j+s,s):j-(ye+ee/2)+pe/2,ve=c==="start"?K-je-Qe:c==="center"?K-(je+he/2)+Ge/2:c==="end"?K-Ye+me+Ge:z(je,Ye,he,Qe,me+Ge,K,K+u,u);var J=B.scrollLeft,V=B.scrollTop;j+=V-(Oe=Math.max(0,Math.min(V+Oe,B.scrollHeight-ee+pe))),K+=J-(ve=Math.max(0,Math.min(J+ve,B.scrollWidth-he+Ge)))}H.push({el:B,top:Oe,left:ve})}return H};function w(d){return d===Object(d)&&Object.keys(d).length!==0}function W(d,p){p===void 0&&(p="auto");var _="scrollBehavior"in document.body.style;d.forEach(function(v){var h=v.el,c=v.top,n=v.left;h.scroll&&_?h.scroll({top:c,left:n,behavior:p}):(h.scrollTop=c,h.scrollLeft=n)})}function y(d){return d===!1?{block:"end",inline:"nearest"}:w(d)?d:{block:"start",inline:"nearest"}}function L(d,p){var _=!d.ownerDocument.documentElement.contains(d);if(w(p)&&typeof p.behavior=="function")return p.behavior(_?[]:O(d,p));if(_)return;var v=y(p);return W(O(d,v),v.behavior)}var R=Ce.a=L},Zss7:function(tn,Ce,M){var re;(function(G){var I=/^\s+/,z=/\s+$/,O=0,w=G.round,W=G.min,y=G.max,L=G.random;function R(ie,Oe){if(ie=ie||"",Oe=Oe||{},ie instanceof R)return ie;if(!(this instanceof R))return new R(ie,Oe);var ve=d(ie);this._originalInput=ie,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=w(100*this._a)/100,this._format=Oe.format||ve.format,this._gradientType=Oe.gradientType,this._r<1&&(this._r=w(this._r)),this._g<1&&(this._g=w(this._g)),this._b<1&&(this._b=w(this._b)),this._ok=ve.ok,this._tc_id=O++}R.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 ie=this.toRgb();return(ie.r*299+ie.g*587+ie.b*114)/1e3},getLuminance:function(){var ie=this.toRgb(),Oe,ve,Ge,pe,J,V;return Oe=ie.r/255,ve=ie.g/255,Ge=ie.b/255,Oe<=.03928?pe=Oe/12.92:pe=G.pow((Oe+.055)/1.055,2.4),ve<=.03928?J=ve/12.92:J=G.pow((ve+.055)/1.055,2.4),Ge<=.03928?V=Ge/12.92:V=G.pow((Ge+.055)/1.055,2.4),.2126*pe+.7152*J+.0722*V},setAlpha:function(ie){return this._a=H(ie),this._roundA=w(100*this._a)/100,this},toHsv:function(){var ie=h(this._r,this._g,this._b);return{h:ie.h*360,s:ie.s,v:ie.v,a:this._a}},toHsvString:function(){var ie=h(this._r,this._g,this._b),Oe=w(ie.h*360),ve=w(ie.s*100),Ge=w(ie.v*100);return this._a==1?"hsv("+Oe+", "+ve+"%, "+Ge+"%)":"hsva("+Oe+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHsl:function(){var ie=_(this._r,this._g,this._b);return{h:ie.h*360,s:ie.s,l:ie.l,a:this._a}},toHslString:function(){var ie=_(this._r,this._g,this._b),Oe=w(ie.h*360),ve=w(ie.s*100),Ge=w(ie.l*100);return this._a==1?"hsl("+Oe+", "+ve+"%, "+Ge+"%)":"hsla("+Oe+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHex:function(ie){return n(this._r,this._g,this._b,ie)},toHexString:function(ie){return"#"+this.toHex(ie)},toHex8:function(ie){return r(this._r,this._g,this._b,this._a,ie)},toHex8String:function(ie){return"#"+this.toHex8(ie)},toRgb:function(){return{r:w(this._r),g:w(this._g),b:w(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+w(this._r)+", "+w(this._g)+", "+w(this._b)+")":"rgba("+w(this._r)+", "+w(this._g)+", "+w(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:w(U(this._r,255)*100)+"%",g:w(U(this._g,255)*100)+"%",b:w(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+w(U(this._r,255)*100)+"%, "+w(U(this._g,255)*100)+"%, "+w(U(this._b,255)*100)+"%)":"rgba("+w(U(this._r,255)*100)+"%, "+w(U(this._g,255)*100)+"%, "+w(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[n(this._r,this._g,this._b,!0)]||!1},toFilter:function(ie){var Oe="#"+o(this._r,this._g,this._b,this._a),ve=Oe,Ge=this._gradientType?"GradientType = 1, ":"";if(ie){var pe=R(ie);ve="#"+o(pe._r,pe._g,pe._b,pe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ge+"startColorstr="+Oe+",endColorstr="+ve+")"},toString:function(ie){var Oe=!!ie;ie=ie||this._format;var ve=!1,Ge=this._a<1&&this._a>=0,pe=!Oe&&Ge&&(ie==="hex"||ie==="hex6"||ie==="hex3"||ie==="hex4"||ie==="hex8"||ie==="name");return pe?ie==="name"&&this._a===0?this.toName():this.toRgbString():(ie==="rgb"&&(ve=this.toRgbString()),ie==="prgb"&&(ve=this.toPercentageRgbString()),(ie==="hex"||ie==="hex6")&&(ve=this.toHexString()),ie==="hex3"&&(ve=this.toHexString(!0)),ie==="hex4"&&(ve=this.toHex8String(!0)),ie==="hex8"&&(ve=this.toHex8String()),ie==="name"&&(ve=this.toName()),ie==="hsl"&&(ve=this.toHslString()),ie==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(ie,Oe){var ve=ie.apply(null,[this].concat([].slice.call(Oe)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(m,arguments)},_applyCombination:function(ie,Oe){return ie.apply(null,[this].concat([].slice.call(Oe)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(u,arguments)}},R.fromRatio=function(ie,Oe){if(typeof ie=="object"){var ve={};for(var Ge in ie)ie.hasOwnProperty(Ge)&&(Ge==="a"?ve[Ge]=ie[Ge]:ve[Ge]=Ye(ie[Ge]));ie=ve}return R(ie,Oe)};function d(ie){var Oe={r:0,g:0,b:0},ve=1,Ge=null,pe=null,J=null,V=!1,X=!1;return typeof ie=="string"&&(ie=Ae(ie)),typeof ie=="object"&&(Qe(ie.r)&&Qe(ie.g)&&Qe(ie.b)?(Oe=p(ie.r,ie.g,ie.b),V=!0,X=String(ie.r).substr(-1)==="%"?"prgb":"rgb"):Qe(ie.h)&&Qe(ie.s)&&Qe(ie.v)?(Ge=Ye(ie.s),pe=Ye(ie.v),Oe=c(ie.h,Ge,pe),V=!0,X="hsv"):Qe(ie.h)&&Qe(ie.s)&&Qe(ie.l)&&(Ge=Ye(ie.s),J=Ye(ie.l),Oe=v(ie.h,Ge,J),V=!0,X="hsl"),ie.hasOwnProperty("a")&&(ve=ie.a)),ve=H(ve),{ok:V,format:ie.format||X,r:W(255,y(Oe.r,0)),g:W(255,y(Oe.g,0)),b:W(255,y(Oe.b,0)),a:ve}}function p(ie,Oe,ve){return{r:U(ie,255)*255,g:U(Oe,255)*255,b:U(ve,255)*255}}function _(ie,Oe,ve){ie=U(ie,255),Oe=U(Oe,255),ve=U(ve,255);var Ge=y(ie,Oe,ve),pe=W(ie,Oe,ve),J,V,X=(Ge+pe)/2;if(Ge==pe)J=V=0;else{var ue=Ge-pe;V=X>.5?ue/(2-Ge-pe):ue/(Ge+pe);switch(Ge){case ie:J=(Oe-ve)/ue+(Oe1&&(Ke-=1),Ke<1/6?Ee+(We-Ee)*6*Ke:Ke<1/2?We:Ke<2/3?Ee+(We-Ee)*(2/3-Ke)*6:Ee}if(Oe===0)Ge=pe=J=ve;else{var X=ve<.5?ve*(1+Oe):ve+Oe-ve*Oe,ue=2*ve-X;Ge=V(ue,X,ie+1/3),pe=V(ue,X,ie),J=V(ue,X,ie-1/3)}return{r:Ge*255,g:pe*255,b:J*255}}function h(ie,Oe,ve){ie=U(ie,255),Oe=U(Oe,255),ve=U(ve,255);var Ge=y(ie,Oe,ve),pe=W(ie,Oe,ve),J,V,X=Ge,ue=Ge-pe;if(V=Ge===0?0:ue/Ge,Ge==pe)J=0;else{switch(Ge){case ie:J=(Oe-ve)/ue+(Oe>1)+720)%360;--Oe;)Ge.h=(Ge.h+pe)%360,J.push(R(Ge));return J}function A(ie,Oe){Oe=Oe||6;for(var ve=R(ie).toHsv(),Ge=ve.h,pe=ve.s,J=ve.v,V=[],X=1/Oe;Oe--;)V.push(R({h:Ge,s:pe,v:J})),J=(J+X)%1;return V}R.mix=function(ie,Oe,ve){ve=ve===0?0:ve||50;var Ge=R(ie).toRgb(),pe=R(Oe).toRgb(),J=ve/100,V={r:(pe.r-Ge.r)*J+Ge.r,g:(pe.g-Ge.g)*J+Ge.g,b:(pe.b-Ge.b)*J+Ge.b,a:(pe.a-Ge.a)*J+Ge.a};return R(V)},R.readability=function(ie,Oe){var ve=R(ie),Ge=R(Oe);return(G.max(ve.getLuminance(),Ge.getLuminance())+.05)/(G.min(ve.getLuminance(),Ge.getLuminance())+.05)},R.isReadable=function(ie,Oe,ve){var Ge=R.readability(ie,Oe),pe,J;J=!1,pe=me(ve);switch(pe.level+pe.size){case"AAsmall":case"AAAlarge":J=Ge>=4.5;break;case"AAlarge":J=Ge>=3;break;case"AAAsmall":J=Ge>=7;break}return J},R.mostReadable=function(ie,Oe,ve){var Ge=null,pe=0,J,V,X,ue;ve=ve||{},V=ve.includeFallbackColors,X=ve.level,ue=ve.size;for(var Ee=0;Eepe&&(pe=J,Ge=R(Oe[Ee]));return R.isReadable(ie,Ge,{level:X,size:ue})||!V?Ge:(ve.includeFallbackColors=!1,R.mostReadable(ie,["#fff","#000"],ve))};var N=R.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"},j=R.hexNames=K(N);function K(ie){var Oe={};for(var ve in ie)ie.hasOwnProperty(ve)&&(Oe[ie[ve]]=ve);return Oe}function H(ie){return ie=parseFloat(ie),(isNaN(ie)||ie<0||ie>1)&&(ie=1),ie}function U(ie,Oe){ee(ie)&&(ie="100%");var ve=he(ie);return ie=W(Oe,y(0,parseFloat(ie))),ve&&(ie=parseInt(ie*Oe,10)/100),G.abs(ie-Oe)<1e-6?1:ie%Oe/parseFloat(Oe)}function B(ie){return W(1,y(0,ie))}function q(ie){return parseInt(ie,16)}function ee(ie){return typeof ie=="string"&&ie.indexOf(".")!=-1&&parseFloat(ie)===1}function he(ie){return typeof ie=="string"&&ie.indexOf("%")!=-1}function ye(ie){return ie.length==1?"0"+ie:""+ie}function Ye(ie){return ie<=1&&(ie=ie*100+"%"),ie}function Pe(ie){return G.round(parseFloat(ie)*255).toString(16)}function je(ie){return q(ie)/255}var Ze=function(){var ie="[-\\+]?\\d+%?",Oe="[-\\+]?\\d*\\.\\d+%?",ve="(?:"+Oe+")|(?:"+ie+")",Ge="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?",pe="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?";return{CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+Ge),rgba:new RegExp("rgba"+pe),hsl:new RegExp("hsl"+Ge),hsla:new RegExp("hsla"+pe),hsv:new RegExp("hsv"+Ge),hsva:new RegExp("hsva"+pe),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 Qe(ie){return!!Ze.CSS_UNIT.exec(ie)}function Ae(ie){ie=ie.replace(I,"").replace(z,"").toLowerCase();var Oe=!1;if(N[ie])ie=N[ie],Oe=!0;else if(ie=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ve;return(ve=Ze.rgb.exec(ie))?{r:ve[1],g:ve[2],b:ve[3]}:(ve=Ze.rgba.exec(ie))?{r:ve[1],g:ve[2],b:ve[3],a:ve[4]}:(ve=Ze.hsl.exec(ie))?{h:ve[1],s:ve[2],l:ve[3]}:(ve=Ze.hsla.exec(ie))?{h:ve[1],s:ve[2],l:ve[3],a:ve[4]}:(ve=Ze.hsv.exec(ie))?{h:ve[1],s:ve[2],v:ve[3]}:(ve=Ze.hsva.exec(ie))?{h:ve[1],s:ve[2],v:ve[3],a:ve[4]}:(ve=Ze.hex8.exec(ie))?{r:q(ve[1]),g:q(ve[2]),b:q(ve[3]),a:je(ve[4]),format:Oe?"name":"hex8"}:(ve=Ze.hex6.exec(ie))?{r:q(ve[1]),g:q(ve[2]),b:q(ve[3]),format:Oe?"name":"hex"}:(ve=Ze.hex4.exec(ie))?{r:q(ve[1]+""+ve[1]),g:q(ve[2]+""+ve[2]),b:q(ve[3]+""+ve[3]),a:je(ve[4]+""+ve[4]),format:Oe?"name":"hex8"}:(ve=Ze.hex3.exec(ie))?{r:q(ve[1]+""+ve[1]),g:q(ve[2]+""+ve[2]),b:q(ve[3]+""+ve[3]),format:Oe?"name":"hex"}:!1}function me(ie){var Oe,ve;return ie=ie||{level:"AA",size:"small"},Oe=(ie.level||"AA").toUpperCase(),ve=(ie.size||"small").toLowerCase(),Oe!=="AA"&&Oe!=="AAA"&&(Oe="AA"),ve!=="small"&&ve!=="large"&&(ve="small"),{level:Oe,size:ve}}tn.exports?tn.exports=R:!(re=function(){return R}.call(Ce,M,Ce,tn),re!==void 0&&(tn.exports=re))})(Math)},aUhZ:function(tn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("g9YV"),z=M("wCAj"),O=M("5NDa"),w=M("5rEg"),W=M("14J3"),y=M("BMrR"),L=M("iQDF"),R=M("+eQT"),d=M("miYZ"),p=M("tsqr"),_=M("jrin"),v=M("oBTY"),h=M("k1fw"),c=M("9og8"),n=M("y8nQ"),r=M("Vl3Y"),o=M("tJVT"),l=M("PpiC"),x=M("WmNS"),E=M.n(x),b=M("q1tI"),P=M.n(b),T=M("wd/R"),m=M.n(T),g=M("ErOA"),s=M("1vsH"),u=M("Ty5D"),D=M("9kvl"),S=M("oUNq"),A=M("xKgJ"),N=function(K){var H=K.classroomList,U=K.dispatch,B=Object(l.a)(K,["classroomList","dispatch"]),q=Object(u.i)(),ee=r.a.useForm(),he=Object(o.a)(ee,1),ye=he[0],Ye=Object(b.useState)(1),Pe=Object(o.a)(Ye,2),je=Pe[0],Ze=Pe[1],Qe=Object(b.useState)([]),Ae=Object(o.a)(Qe,2),me=Ae[0],ie=Ae[1],Oe=Object(b.useState)(0),ve=Object(o.a)(Oe,2),Ge=ve[0],pe=ve[1],J=Object(b.useState)(2e4),V=Object(o.a)(J,2),X=V[0],ue=V[1],Ee=Object(b.useState)(!0),We=Object(o.a)(Ee,2),Ke=We[0],Pt=We[1],Kt=Object(b.useState)(),Bt=Object(o.a)(Kt,2),kt=Bt[0],Qt=Bt[1],fn=Object(b.useState)([]),qe=Object(o.a)(fn,2),Ue=qe[0],vt=qe[1];q.id=q.coursesId,Object(b.useEffect)(function(){H.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?Mt():(vt([]),ie([]))},[H.actionTabs.key]);var Mt=function(){var Ne=Object(c.a)(E.a.mark(function Se(Te){var le,fe,_e;return E.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return Pt(!0),at.next=3,Object(S.A)(Object(h.a)(Object(h.a)({},q),{},{page:Te||je,limit:X,homework_id:H.actionTabs.type===1?"":H.actionTabs.selectArrs[0],end_homework_action:!0,all:!0}));case 3:le=at.sent,le==null||le.course_groups.map(function(Je){Je.key=Je.id}),le&&(ie([].concat(Object(v.a)(me),Object(v.a)(le==null?void 0:le.course_groups))),pe(le==null?void 0:le.group_count),Qt(le==null?void 0:le.course_groups),Pt(!1),Te||ye.setFieldsValue((_e={},Object(_.a)(_e,"group_ids",le==null||((fe=le.course_groups)===null||fe===void 0)?void 0:fe.map(function(Je){return String(Je.id)})),Object(_.a)(_e,"end_time",m()(m()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),_e)));case 6:case"end":return at.stop()}},Se)}));return function(Te){return Ne.apply(this,arguments)}}(),st=function(){var Ne=Object(c.a)(E.a.mark(function Se(){var Te,le;return E.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Te=Object(h.a)({},ye.getFieldsValue()),console.log("----",Te.group_ids),_e.next=4,Object(g.a)("/api/courses/".concat(q.id,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(v.a)(H.actionTabs.selectArrs),group_ids:(Ue==null?void 0:Ue.length)>0?Ue:[],unified_setting:!(me!=null&&me.length),end_time:m()(Te.end_time).format("YYYY-MM-DD HH:mm")}});case 4:le=_e.sent,le.status===0&&(Ct(),Object(s.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u622A\u6B62"]),p.b.success("\u64CD\u4F5C\u6210\u529F"),U({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),B.onCallback&&B.onCallback(),Object(A.c)()?(U({type:"classroomList/setActionTabs",payload:{}}),U({type:"classroomList/getClassroomTeacherCommonList",payload:Object(h.a)(Object(h.a)({},H.actionTabs.params),{},{type:1})})):U({type:"classroomList/getClassroomCommonList",payload:Object(h.a)({},H.actionTabs.params)}));case 6:case"end":return _e.stop()}},Se)}));return function(){return Ne.apply(this,arguments)}}(),Ct=function(){Ze(1),ie([])};return P.a.createElement(G.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:H.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:st,onCancel:function(){Ct(),U({type:"classroomList/setActionTabs",payload:{}})}},P.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",P.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),me&&P.a.createElement(r.a,{form:ye},P.a.createElement(y.a,null,P.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),P.a.createElement(r.a.Item,{name:"end_time"},P.a.createElement(R.a,{style:{width:170},getPopupContainer:function(Se){return Se.parentNode},disabledDate:function(Se){return Se&&Se0&&P.a.createElement(y.a,null,P.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),P.a.createElement(w.a.Search,{style:{width:"300px"},onChange:function(Se){ie(kt.filter(function(Te){return Te.name.indexOf(Se.target.value)>-1}))}})),(me==null?void 0:me.length)>0&&H.actionTabs.type===1&&P.a.createElement(z.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Se,Te){vt(Se)}},rowKey:"id",pagination:!1,dataSource:me,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(me==null?void 0:me.length)>0&&H.actionTabs.type===2&&P.a.createElement(z.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Se,Te){vt(Se)}},rowKey:"id",pagination:!1,dataSource:me,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))};Ce.a=Object(D.a)(function(j){var K=j.classroomList;return{classroomList:K}})(N)},bT9E:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return G});var re=M("VTBJ");function G(I,z){var O=Object(re.a)({},I);return Array.isArray(z)&&z.forEach(function(w){delete O[w]}),O}},biw7:function(tn,Ce,M){"use strict";var re=M("q1tI"),G=M.n(re),I=re.createContext(null);Ce.a=I},c5Ni:function(tn,Ce,M){},dejd:function(tn,Ce,M){},dmUQ:function(tn,Ce,M){"use strict";var re=M("Ff2n"),G=M("rePB"),I=M("1OyB"),z=M("vuIU"),O=M("Ji7U"),w=M("md7G"),W=M("foSv"),y=M("q1tI"),L=M.n(y),R=M("TSYQ"),d=M.n(R),p=M("4IlW");function _(s,u){var D=Object.keys(s);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(s);u&&(S=S.filter(function(A){return Object.getOwnPropertyDescriptor(s,A).enumerable})),D.push.apply(D,S)}return D}function v(s){for(var u=1;u1?he-1:0),Ye=1;Ye1?U-1:0),q=1;q=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var U=0;return H.indexOf(".")>=0&&(U=H.length-H.indexOf(".")-1),U},A.getInputDisplayValue=function(K){var H=K||A.state,U=H.focused,B=H.inputValue,q=H.value,ee;U?ee=B:ee=A.toPrecisionAsStep(q),ee==null&&(ee="");var he=A.formatWrapper(ee);return b(A.props.decimalSeparator)&&(he=he.toString().replace(".",A.props.decimalSeparator)),he},A.recordCursorPosition=function(){try{A.cursorStart=A.input.selectionStart,A.cursorEnd=A.input.selectionEnd,A.currentValue=A.input.value,A.cursorBefore=A.input.value.substring(0,A.cursorStart),A.cursorAfter=A.input.value.substring(A.cursorEnd)}catch(K){}},A.restoreByAfter=function(K){if(K===void 0)return!1;var H=A.input.value,U=H.lastIndexOf(K);if(U===-1)return!1;var B=A.cursorBefore.length;return A.lastKeyCode===p.a.DELETE&&A.cursorBefore.charAt(B-1)===K[0]?(A.fixCaret(B,B),!0):U+K.length===H.length?(A.fixCaret(U,U),!0):!1},A.partRestoreByAfter=function(K){return K===void 0?!1:Array.prototype.some.call(K,function(H,U){var B=K.substring(U);return A.restoreByAfter(B)})},A.isNotCompleteNumber=function(K){return isNaN(K)||K===""||K===null||K&&K.toString().indexOf(".")===K.toString().length-1},A.stop=function(){A.autoStepTimer&&clearTimeout(A.autoStepTimer)},A.down=function(K,H,U){A.pressingUpOrDown=!0,A.step("down",K,H,U)},A.up=function(K,H,U){A.pressingUpOrDown=!0,A.step("up",K,H,U)},A.saveInput=function(K){A.input=K};var N=S.value;N===void 0&&(N=S.defaultValue),A.state={focused:S.autoFocus};var j=A.getValidValue(A.toNumber(N));return A.state=v(v({},A.state),{},{inputValue:A.toPrecisionAsStep(j),value:j}),A}return Object(z.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(A){var N=this.props,j=N.value,K=N.onChange,H=N.max,U=N.min,B=this.state.focused;if(A){if(!P(A.value,j)||!P(A.max,H)||!P(A.min,U)){var q=B?j:this.getValidValue(j),ee;this.pressingUpOrDown?ee=q:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(q),this.setState({value:q,inputValue:ee})}var he="value"in this.props?j:this.state.value;"max"in this.props&&A.max!==H&&typeof he=="number"&&he>H&&K&&K(H),"min"in this.props&&A.min!==U&&typeof he=="number"&&he1&&arguments[1]!==void 0?arguments[1]:this.props.min,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,K=parseFloat(A);return isNaN(K)?A:(Kj&&(K=j),K)}},{key:"setValue",value:function(A,N){var j=this.props.precision,K=this.isNotCompleteNumber(parseFloat(A))?null:parseFloat(A),H=this.state.value,U=H===void 0?null:H,B=this.state.inputValue,q=B===void 0?null:B,ee=typeof K=="number"?K.toFixed(j):"".concat(K),he=K!==U||ee!=="".concat(q);return"value"in this.props?(q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:q},N)):this.setState({value:K,inputValue:this.toPrecisionAsStep(A)},N),he&&this.props.onChange(K),K}},{key:"getMaxPrecision",value:function(A){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.props,K=j.precision,H=j.step;if(b(K))return K;var U=this.getPrecision(N),B=this.getPrecision(H),q=this.getPrecision(A);return A?Math.max(q,U+B):U+B}},{key:"getPrecisionFactor",value:function(A){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.getMaxPrecision(A,N);return Math.pow(10,j)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(A){return this.props.formatter?this.props.formatter(A):A}},{key:"toPrecisionAsStep",value:function(A){if(this.isNotCompleteNumber(A)||A==="")return A;var N=Math.abs(this.getMaxPrecision(A));return isNaN(N)?A.toString():Number(A).toFixed(N)}},{key:"toNumber",value:function(A){var N=this.props.precision,j=this.state.focused,K=A&&A.length>16&&j;return this.isNotCompleteNumber(A)||K?A:b(N)?Math.round(A*Math.pow(10,N))/Math.pow(10,N):Number(A)}},{key:"upStep",value:function(A,N){var j=this.props.step,K=this.getPrecisionFactor(A,N),H=Math.abs(this.getMaxPrecision(A,N)),U=((K*A+K*j*N)/K).toFixed(H);return this.toNumber(U)}},{key:"downStep",value:function(A,N){var j=this.props.step,K=this.getPrecisionFactor(A,N),H=Math.abs(this.getMaxPrecision(A,N)),U=((K*A-K*j*N)/K).toFixed(H);return this.toNumber(U)}},{key:"step",value:function(A,N){var j=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var U=this.props;if(U.disabled)return;var B=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(B))return;var q=this["".concat(A,"Step")](B,K),ee=q>U.max||qU.max?q=U.max:q=ye),Ct=(Qt||Qt===0)&&(isNaN(Qt)||Number(Qt)<=Ye),Ne=st||K||H,Se=Ct||K||H,Te=d()("".concat(j,"-handler"),"".concat(j,"-handler-up"),Object(G.a)({},"".concat(j,"-handler-up-disabled"),Ne)),le=d()("".concat(j,"-handler"),"".concat(j,"-handler-down"),Object(G.a)({},"".concat(j,"-handler-down-disabled"),Se)),fe=U?{onTouchStart:Ne?n:this.up,onTouchEnd:this.stop}:{onMouseDown:Ne?n:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},_e=U?{onTouchStart:Se?n:this.down,onTouchEnd:this.stop}:{onMouseDown:Se?n:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return L.a.createElement("div",{className:qe,style:Pe,title:je,onMouseEnter:Ze,onMouseLeave:Qe,onMouseOver:Ae,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},L.a.createElement("div",{className:"".concat(j,"-handler-wrap")},L.a.createElement("span",Object.assign({unselectable:"on"},fe,{role:"button","aria-label":"Increase Value","aria-disabled":Ne,className:Te}),q||L.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner"),onClick:r})),L.a.createElement("span",Object.assign({unselectable:"on"},_e,{role:"button","aria-label":"Decrease Value","aria-disabled":Se,className:le}),ee||L.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner"),onClick:r}))),L.a.createElement("div",{className:"".concat(j,"-input-wrap")},L.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ye,"aria-valuemax":ye,"aria-valuenow":Qt,required:ie,type:Ge,placeholder:pe,onPaste:Pt,onClick:Oe,onMouseUp:this.onMouseUp,className:"".concat(j,"-input"),tabIndex:ve,autoComplete:B,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:vt?this.onKeyDown:n,onKeyUp:vt?this.onKeyUp:n,autoFocus:We,maxLength:Ee,readOnly:H,disabled:K,max:ye,min:Ye,step:ue,name:Ke,title:je,id:J,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Mt),pattern:X,inputMode:V,onInput:Kt},Ue))))}}]),D}(L.a.Component);T.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:n,onKeyDown:n,onPressEnter:n,onFocus:n,onBlur:n,parser:o,required:!1,autoComplete:"off"};var m=T,g=Ce.a=m},fjLI:function(tn,Ce,M){"use strict";M.d(Ce,"e",function(){return R}),M.d(Ce,"a",function(){return d}),M.d(Ce,"c",function(){return p}),M.d(Ce,"d",function(){return v}),M.d(Ce,"b",function(){return h});var re=M("8HAY"),G=M("Cg/j"),I=M("T8No"),z=M("nnTU"),O=M("MI8n"),w=function(){var c=function(n,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var x in l)l.hasOwnProperty(x)&&(o[x]=l[x])},c(n,r)};return function(n,r){c(n,r);function o(){this.constructor=n}n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),W=function(c,n,r,o){var l=arguments.length,x=l<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,r):o,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(c,n,r,o);else for(var b=c.length-1;b>=0;b--)(E=c[b])&&(x=(l<3?E(x):l>3?E(n,r,x):E(n,r))||x);return l>3&&x&&Object.defineProperty(n,r,x),x},y=function(c,n){return function(r,o){n(r,o,c)}},L=function(){for(var c=0,n=0,r=arguments.length;n=0&&(l.splice(x,1),o._onDidChangeMenu.fire(n))}}},c.prototype.getMenuItems=function(n){var r=(this._menuItems.get(n)||[]).slice(0);return n===0&&this._appendImplicitItems(r),r},c.prototype._appendImplicitItems=function(n){for(var r=new Set,o=n.filter(function(T){return R(T)}),l=0,x=o;lj.length)&&(K=j.length);for(var H=0,U=new Array(K);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(j,U))continue;H[U]=j[U]}}return H}function h(j,K){if(j==null)return{};var H={},U=Object.keys(j),B,q;for(q=0;q=0)continue;H[B]=j[B]}return H}var c=function(K){var H=K.className,U=K.percent,B=K.prefixCls,q=K.strokeColor,ee=K.strokeLinecap,he=K.strokeWidth,ye=K.style,Ye=K.trailColor,Pe=K.trailWidth,je=K.transition,Ze=v(K,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ze.gapPosition;var Qe=Array.isArray(U)?U:[U],Ae=Array.isArray(q)?q:[q],me=w(Qe),ie=y(me,1),Oe=ie[0],ve=he/2,Ge=100-he/2,pe="M ".concat(ee==="round"?ve:0,",").concat(ve,` + L `).concat(ee==="round"?Ge:100,",").concat(ve),J="0 0 100 ".concat(he),V=0;return G.a.createElement("svg",W({className:z()("".concat(B,"-line"),H),viewBox:J,preserveAspectRatio:"none",style:ye},Ze),G.a.createElement("path",{className:"".concat(B,"-line-trail"),d:pe,strokeLinecap:ee,stroke:Ye,strokeWidth:Pe||he,fillOpacity:"0"}),Qe.map(function(X,ue){var Ee={strokeDasharray:"".concat(X,"px, 100px"),strokeDashoffset:"-".concat(V,"px"),transition:je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},We=Ae[ue]||Ae[Ae.length-1];return V+=X,G.a.createElement("path",{key:ue,className:"".concat(B,"-line-path"),d:pe,strokeLinecap:ee,stroke:We,strokeWidth:he,fillOpacity:"0",ref:Oe[ue],style:Ee})}))};c.defaultProps=O;var n=c;function r(){return r=Object.assign||function(j){for(var K=1;Kj.length)&&(K=j.length);for(var H=0,U=new Array(K);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(j,U))continue;H[U]=j[U]}}return H}function m(j,K){if(j==null)return{};var H={},U=Object.keys(j),B,q;for(q=0;q=0)continue;H[B]=j[B]}return H}var g=0;function s(j){return+j.replace("%","")}function u(j){return Array.isArray(j)?j:[j]}function D(j,K,H,U){var B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,q=arguments.length>5?arguments[5]:void 0,ee=50-U/2,he=0,ye=-ee,Ye=0,Pe=-2*ee;switch(q){case"left":he=-ee,ye=0,Ye=2*ee,Pe=0;break;case"right":he=ee,ye=0,Ye=-2*ee,Pe=0;break;case"bottom":ye=ee,Pe=2*ee;break;default:}var je="M 50,50 m ".concat(he,",").concat(ye,` a `).concat(ee,",").concat(ee," 0 1 1 ").concat(Ye,",").concat(-Pe,` - a `).concat(ee,",").concat(ee," 0 1 1 ").concat(-Ye,",").concat(Pe),Qe=Math.PI*2*ee,Ze={stroke:H,strokeDasharray:"".concat(K/100*(Qe-B),"px ").concat(Qe,"px"),strokeDashoffset:"-".concat(B/2+j/100*(Qe-B),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:je,pathStyle:Ze}}var S=function(K){var H=K.prefixCls,U=K.strokeWidth,B=K.trailWidth,q=K.gapDegree,ee=K.gapPosition,he=K.trailColor,be=K.strokeLinecap,Ye=K.style,Pe=K.className,je=K.strokeColor,Qe=K.percent,Ze=T(K,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ae=Object(re.useMemo)(function(){return g+=1,g},[]),me=D(0,100,he,U,q,ee),ie=me.pathString,Oe=me.pathStyle,ve=u(Qe),Ge=u(je),pe=Ge.find(function(Ee){return Object.prototype.toString.call(Ee)==="[object Object]"}),J=w(ve),V=o(J,1),X=V[0],ue=function(){var We=0;return ve.map(function(Ke,Lt){var Kt=Ge[Lt]||Ge[Ge.length-1],Bt=Object.prototype.toString.call(Kt)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(Ae,")"):"",kt=D(We,Ke,Kt,U,q,ee);return We+=Ke,G.a.createElement("path",{key:Lt,className:"".concat(H,"-circle-path"),d:kt.pathString,stroke:Bt,strokeLinecap:be,strokeWidth:U,opacity:Ke===0?0:1,fillOpacity:"0",style:kt.pathStyle,ref:X[Lt]})})};return G.a.createElement("svg",r({className:z()("".concat(H,"-circle"),Pe),viewBox:"0 0 100 100",style:Ye},Ze),pe&&G.a.createElement("defs",null,G.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(Ae),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(pe).sort(function(Ee,We){return s(Ee)-s(We)}).map(function(Ee,We){return G.a.createElement("stop",{key:We,offset:Ee,stopColor:pe[Ee]})}))),G.a.createElement("path",{className:"".concat(H,"-circle-trail"),d:ie,stroke:he,strokeLinecap:be,strokeWidth:B||U,fillOpacity:"0",style:Oe}),ue().reverse())};S.defaultProps=O;var A=S,N={Line:n,Circle:A}},hW8S:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return z}),M.d(Ce,"c",function(){return O}),M.d(Ce,"b",function(){return w});var re=M("VTBJ"),G=M("Ff2n"),I=M("Kwbf"),z="RC_TABLE_INTERNAL_COL_DEFINE";function O(W){var y=W.expandable,L=Object(G.a)(W,["expandable"]);return"expandable"in W?Object(re.a)(Object(re.a)({},L),y):L}function w(W){return Object.keys(W).reduce(function(y,L){return(L.substr(0,5)==="data-"||L.substr(0,5)==="aria-")&&(y[L]=W[L]),y},{})}},k3GJ:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return ya});var re=M("rePB"),G=M("ODXe"),I=M("Ff2n"),z=M("VTBJ"),O=M("q1tI"),w=M("TSYQ"),W=M.n(w),y=M("Zm9Q"),L=M("6cGi"),R=M("KQm4"),d=M("xEkU"),p=M.n(d),_=M("t23M");function v(Re){var Ve=Object(O.useRef)(),tt=Object(O.useRef)(!1);function ke(){for(var se=arguments.length,xe=new Array(se),de=0;dept&&(tn=pt-Vt),Object(O.useMemo)(function(){if(!xe.length)return[0,0];for(var _n=xe.length,Mn=_n,qn=0;qn<_n;qn+=1){var er=Re.get(xe[qn].key)||x;if(er[ot]+er[Be]>He+tn){Mn=qn-1;break}}for(var hr=0,xr=_n-1;xr>=0;xr-=1){var ir=Re.get(xe[xr].key)||x;if(ir[ot]1&&arguments[1]!==void 0?arguments[1]:!1,ke=Ve&&typeof Ve.getBoundingClientRect=="function"&&Ve.getBoundingClientRect().width;if(ke){if(tt){var se=getComputedStyle(Ve),xe=se.marginLeft,de=se.marginRight;ke+=+xe.replace("px","")+ +de.replace("px","")}ke=+ke.toFixed(6)}return ke||0},We=function(Ve,tt,ke){Ve&&Object(j.a)(Ve.style)==="object"&&(Ve.style[tt]=ke)},Ke=function(){return ve.any},Lt=M("bdgK"),Kt=M("i8i4"),Bt=M.n(Kt),kt=M("wgJM"),Qt=M("l4aY"),hn=M("m+aA"),qe=M("c+Xe"),Ue=M("zT1h"),vt=M("QC+M");function Mt(Re,Ve,tt){return tt?Re[0]===Ve[0]:Re[0]===Ve[0]&&Re[1]===Ve[1]}function st(Re,Ve,tt){var ke=Re[Ve]||{};return Object(z.a)(Object(z.a)({},ke),tt)}function Ct(Re,Ve,tt,ke){for(var se=tt.points,xe=Object.keys(Re),de=0;de1&&arguments[1]!==void 0?arguments[1]:2;Ve();var xe=Object(kt.a)(function(){se<=1?ke({isCanceled:function(){return xe!==Re.current}}):tt(ke,se-1)});Re.current=xe}return O.useEffect(function(){return function(){Ve()}},[]),[tt,Ve]},ar=[ft,en,Xt,at],fr=!1,tr=!0;function Sn(Re){return Re===Xt||Re===at}var Vr=function(Re,Ve){var tt=O.useState(yt),ke=Object(G.a)(tt,2),se=ke[0],xe=ke[1],de=xn(),Ie=Object(G.a)(de,2),Be=Ie[0],ot=Ie[1];function He(){xe(ft)}return cn(function(){if(se!==yt&&se!==at){var pt=ar.indexOf(se),Pt=ar[pt+1],Vt=Ve(se);Vt===fr?xe(Pt):Be(function(tn){function _n(){if(tn.isCanceled())return;xe(Pt)}Vt===!0?_n():Promise.resolve(Vt).then(_n)})}},[Re,se]),O.useEffect(function(){return function(){ot()}},[]),[He,se]},oa=function(Re){var Ve=Object(O.useRef)(),tt=Object(O.useRef)(Re);tt.current=Re;var ke=O.useCallback(function(de){tt.current(de)},[]);function se(de){de&&(de.removeEventListener(Jt,ke),de.removeEventListener(on,ke))}function xe(de){Ve.current&&Ve.current!==de&&se(Ve.current),de&&de!==Ve.current&&(de.addEventListener(Jt,ke),de.addEventListener(on,ke),Ve.current=de)}return O.useEffect(function(){return function(){se(Ve.current)}},[]),[xe,se]};function Br(Re,Ve,tt,ke){var se=ke.motionEnter,xe=se===void 0?!0:se,de=ke.motionAppear,Ie=de===void 0?!0:de,Be=ke.motionLeave,ot=Be===void 0?!0:Be,He=ke.motionDeadline,pt=ke.motionLeaveImmediately,Pt=ke.onAppearPrepare,Vt=ke.onEnterPrepare,tn=ke.onLeavePrepare,_n=ke.onAppearStart,Mn=ke.onEnterStart,qn=ke.onLeaveStart,er=ke.onAppearActive,hr=ke.onEnterActive,xr=ke.onLeaveActive,ir=ke.onAppearEnd,mr=ke.onEnterEnd,Or=ke.onLeaveEnd,Xn=ke.onVisibleChanged,Ur=xt(),Yn=Object(G.a)(Ur,2),ln=Yn[0],yn=Yn[1],dr=xt(St),kr=Object(G.a)(dr,2),Kn=kr[0],Dr=kr[1],qr=xt(null),Nr=Object(G.a)(qr,2),Yr=Nr[0],Ir=Nr[1],Mr=Object(O.useRef)(!1),Ar=Object(O.useRef)(null),rr=Object(O.useRef)(!1),sa=Object(O.useRef)(null);function Ka(){var ta=tt();return ta||sa.current}var La=Object(O.useRef)(!1);function xa(ta){var Zr=Ka();if(ta&&!ta.deadline&&ta.target!==Zr)return;var wa;Kn===lt&&La.current?wa=ir==null?void 0:ir(Zr,ta):Kn===ge&&La.current?wa=mr==null?void 0:mr(Zr,ta):Kn===Le&&La.current&&(wa=Or==null?void 0:Or(Zr,ta)),wa!==!1&&!rr.current&&(Dr(St),Ir(null))}var wn=oa(xa),Zt=Object(G.a)(wn,1),Rn=Zt[0],wr=O.useMemo(function(){var ta,Zr,wa;switch(Kn){case"appear":return ta={},Object(re.a)(ta,ft,Pt),Object(re.a)(ta,en,_n),Object(re.a)(ta,Xt,er),ta;case"enter":return Zr={},Object(re.a)(Zr,ft,Vt),Object(re.a)(Zr,en,Mn),Object(re.a)(Zr,Xt,hr),Zr;case"leave":return wa={},Object(re.a)(wa,ft,tn),Object(re.a)(wa,en,qn),Object(re.a)(wa,Xt,xr),wa;default:return{}}},[Kn]),$n=Vr(Kn,function(ta){if(ta===ft){var Zr=wr[ft];return Zr?Zr(Ka()):fr}if(ea in wr){var wa;Ir(((wa=wr[ea])===null||wa===void 0?void 0:wa.call(wr,Ka(),null))||null)}return ea===Xt&&(Rn(Ka()),He>0&&(clearTimeout(Ar.current),Ar.current=setTimeout(function(){xa({deadline:!0})},He))),tr}),ma=Object(G.a)($n,2),li=ma[0],ea=ma[1],Za=Sn(ea);La.current=Za,cn(function(){yn(Ve);var ta=Mr.current;if(Mr.current=!0,!Re)return;var Zr;!ta&&Ve&&Ie&&(Zr=lt),ta&&Ve&&xe&&(Zr=ge),(ta&&!Ve&&ot||!ta&&pt&&!Ve&&ot)&&(Zr=Le),Zr&&(Dr(Zr),li())},[Ve]),Object(O.useEffect)(function(){(Kn===lt&&!Ie||Kn===ge&&!xe||Kn===Le&&!ot)&&Dr(St)},[Ie,xe,ot]),Object(O.useEffect)(function(){return function(){clearTimeout(Ar.current),rr.current=!0}},[]),Object(O.useEffect)(function(){ln!==void 0&&Kn===St&&(Xn==null||Xn(ln))},[ln,Kn]);var qa=Yr;return wr[ft]&&ea===en&&(qa=Object(z.a)({transition:"none"},qa)),[Kn,ea,qa,ln!=null?ln:Ve]}var cr=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){return Object(P.a)(this,tt),Ve.apply(this,arguments)}return Object(T.a)(tt,[{key:"render",value:function(){return this.props.children}}]),tt}(O.Component),Kr=cr;function na(Re){var Ve=Re;Object(j.a)(Re)==="object"&&(Ve=Re.transitionSupport);function tt(se){return!!(se.motionName&&Ve)}var ke=O.forwardRef(function(se,xe){var de=se.visible,Ie=de===void 0?!0:de,Be=se.removeOnLeave,ot=Be===void 0?!0:Be,He=se.forceRender,pt=se.children,Pt=se.motionName,Vt=se.leavedClassName,tn=se.eventProps,_n=tt(se),Mn=Object(O.useRef)(),qn=Object(O.useRef)();function er(){try{return Object(hn.a)(Mn.current||qn.current)}catch(Dr){return null}}var hr=Br(_n,Ie,er,se),xr=Object(G.a)(hr,4),ir=xr[0],mr=xr[1],Or=xr[2],Xn=xr[3],Ur=O.useRef(Xn);Xn&&(Ur.current=!0);var Yn=Object(O.useRef)(xe);Yn.current=xe;var ln=O.useCallback(function(Dr){Mn.current=Dr,Object(qe.b)(Yn.current,Dr)},[]),yn,dr=Object(z.a)(Object(z.a)({},tn),{},{visible:Ie});if(!pt)yn=null;else if(ir===St||!tt(se))Xn?yn=pt(Object(z.a)({},dr),ln):!ot&&Ur.current?yn=pt(Object(z.a)(Object(z.a)({},dr),{},{className:Vt}),ln):He?yn=pt(Object(z.a)(Object(z.a)({},dr),{},{style:{display:"none"}}),ln):yn=null;else{var kr,Kn;mr===ft?Kn="prepare":Sn(mr)?Kn="active":mr===en&&(Kn="start"),yn=pt(Object(z.a)(Object(z.a)({},dr),{},{className:W()(wt(Pt,ir),(kr={},Object(re.a)(kr,wt(Pt,"".concat(ir,"-").concat(Kn)),Kn),Object(re.a)(kr,Pt,typeof Pt=="string"),kr)),style:Or}),ln)}return O.createElement(Kr,{ref:qn},yn)});return ke.displayName="CSSMotion",ke}var da=na(pn),Wt="add",Tn="keep",lr="remove",Pr="removed";function Er(Re){var Ve;return Re&&Object(j.a)(Re)==="object"&&"key"in Re?Ve=Re:Ve={key:Re},Object(z.a)(Object(z.a)({},Ve),{},{key:String(Ve.key)})}function _r(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Re.map(Er)}function Q(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tt=[],ke=0,se=Ve.length,xe=_r(Re),de=_r(Ve);xe.forEach(function(ot){for(var He=!1,pt=ke;pt1});return Be.forEach(function(ot){tt=tt.filter(function(He){var pt=He.key,Pt=He.status;return pt!==ot||Pt!==lr}),tt.forEach(function(He){He.key===ot&&(He.status=Tn)})}),tt}var C=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function k(Re){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:da,tt=function(ke){Object(g.a)(xe,ke);var se=Object(s.a)(xe);function xe(){var de;return Object(P.a)(this,xe),de=se.apply(this,arguments),de.state={keyEntities:[]},de.removeKey=function(Ie){de.setState(function(Be){var ot=Be.keyEntities;return{keyEntities:ot.map(function(He){return He.key!==Ie?He:Object(z.a)(Object(z.a)({},He),{},{status:Pr})})}})},de}return Object(T.a)(xe,[{key:"render",value:function(){var Ie=this,Be=this.state.keyEntities,ot=this.props,He=ot.component,pt=ot.children,Pt=ot.onVisibleChanged,Vt=Object(I.a)(ot,["component","children","onVisibleChanged"]),tn=He||O.Fragment,_n={};return C.forEach(function(Mn){_n[Mn]=Vt[Mn],delete Vt[Mn]}),delete Vt.keys,O.createElement(tn,Vt,Be.map(function(Mn){var qn=Mn.status,er=Object(I.a)(Mn,["status"]),hr=qn===Wt||qn===Tn;return O.createElement(Ve,Object(b.a)({},_n,{key:er.key,visible:hr,eventProps:er,onVisibleChanged:function(ir){Pt==null||Pt(ir,{key:er.key}),ir||Ie.removeKey(er.key)}}),pt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ie,Be){var ot=Ie.keys,He=Be.keyEntities,pt=_r(ot),Pt=Q(He,pt);return{keyEntities:Pt.filter(function(Vt){var tn=He.find(function(_n){var Mn=_n.key;return Vt.key===Mn});return!(tn&&tn.status===Pr&&Vt.status===lr)})}}}]),xe}(O.Component);return tt.defaultProps={component:"div"},tt}var $=k(pn),ne=da;function Y(Re){var Ve=Re.prefixCls,tt=Re.motion,ke=Re.animation,se=Re.transitionName;return tt||(ke?{motionName:"".concat(Ve,"-").concat(ke)}:se?{motionName:se}:null)}function we(Re){var Ve=Re.prefixCls,tt=Re.visible,ke=Re.zIndex,se=Re.mask,xe=Re.maskMotion,de=Re.maskAnimation,Ie=Re.maskTransitionName;if(!se)return null;var Be={};return(xe||Ie||de)&&(Be=Object(z.a)({motionAppear:!0},Y({motion:xe,prefixCls:Ve,transitionName:Ie,animation:de}))),O.createElement(ne,Object(b.a)({},Be,{visible:tt,removeOnLeave:!0}),function(ot){var He=ot.className;return O.createElement("div",{style:{zIndex:ke},className:W()("".concat(Ve,"-mask"),He)})})}var mt=M("9mu1"),It=M("o0o1"),un=M.n(It),Ot=M("HaE+"),bn=["measure","align",null,"motion"],En=function(Re,Ve){var tt=Object(O.useState)(null),ke=Object(G.a)(tt,2),se=ke[0],xe=ke[1],de=Object(O.useRef)(),Ie=Object(O.useRef)(!1);function Be(pt){Ie.current||xe(pt)}function ot(){kt.a.cancel(de.current)}function He(pt){ot(),de.current=Object(kt.a)(function(){Be(function(Pt){switch(se){case"align":return"motion";case"motion":return"stable";default:}return Pt}),pt==null||pt()})}return Object(O.useEffect)(function(){Be("measure")},[Re]),Object(O.useEffect)(function(){switch(se){case"measure":Ve();break;default:}se&&(de.current=Object(kt.a)(Object(Ot.a)(un.a.mark(function pt(){var Pt,Vt;return un.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:Pt=bn.indexOf(se),Vt=bn[Pt+1],Vt&&Pt!==-1&&Be(Vt);case 3:case"end":return _n.stop()}},pt)}))))},[se]),Object(O.useEffect)(function(){return function(){Ie.current=!0,ot()}},[]),[se,He]},On=function(Re){var Ve=O.useState({width:0,height:0}),tt=Object(G.a)(Ve,2),ke=tt[0],se=tt[1];function xe(Ie){se({width:Ie.offsetWidth,height:Ie.offsetHeight})}var de=O.useMemo(function(){var Ie={};if(Re){var Be=ke.width,ot=ke.height;Re.indexOf("height")!==-1&&ot?Ie.height=ot:Re.indexOf("minHeight")!==-1&&ot&&(Ie.minHeight=ot),Re.indexOf("width")!==-1&&Be?Ie.width=Be:Re.indexOf("minWidth")!==-1&&Be&&(Ie.minWidth=Be)}return Ie},[Re,ke]);return[de,xe]},pr=O.forwardRef(function(Re,Ve){var tt=Re.visible,ke=Re.prefixCls,se=Re.className,xe=Re.style,de=Re.children,Ie=Re.zIndex,Be=Re.stretch,ot=Re.destroyPopupOnHide,He=Re.forceRender,pt=Re.align,Pt=Re.point,Vt=Re.getRootDomNode,tn=Re.getClassNameFromAlign,_n=Re.onAlign,Mn=Re.onMouseEnter,qn=Re.onMouseLeave,er=Re.onMouseDown,hr=Re.onTouchStart,xr=Object(O.useRef)(),ir=Object(O.useRef)(),mr=Object(O.useState)(),Or=Object(G.a)(mr,2),Xn=Or[0],Ur=Or[1],Yn=On(Be),ln=Object(G.a)(Yn,2),yn=ln[0],dr=ln[1];function kr(){Be&&dr(Vt())}var Kn=En(tt,kr),Dr=Object(G.a)(Kn,2),qr=Dr[0],Nr=Dr[1],Yr=Object(O.useRef)();function Ir(){return Pt||Vt}function Mr(){var wn;(wn=xr.current)===null||wn===void 0||wn.forceAlign()}function Ar(wn,Zt){var Rn=tn(Zt);Xn!==Rn&&Ur(Rn),qr==="align"&&(Xn!==Rn?Promise.resolve().then(function(){Mr()}):Nr(function(){var wr;(wr=Yr.current)===null||wr===void 0||wr.call(Yr)}),_n==null||_n(wn,Zt))}var rr=Object(z.a)({},Y(Re));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(wn){var Zt=rr[wn];rr[wn]=function(Rn,wr){return Nr(),Zt==null?void 0:Zt(Rn,wr)}});function sa(){return new Promise(function(wn){Yr.current=wn})}O.useEffect(function(){!rr.motionName&&qr==="motion"&&Nr()},[rr.motionName,qr]),O.useImperativeHandle(Ve,function(){return{forceAlign:Mr,getElement:function(){return ir.current}}});var Ka=Object(z.a)(Object(z.a)({},yn),{},{zIndex:Ie,opacity:qr==="motion"||qr==="stable"||!tt?void 0:0,pointerEvents:qr==="stable"?void 0:"none"},xe),La=!0;(pt==null?void 0:pt.points)&&(qr==="align"||qr==="stable")&&(La=!1);var xa=de;return O.Children.count(de)>1&&(xa=O.createElement("div",{className:"".concat(ke,"-content")},de)),O.createElement(ne,Object(b.a)({visible:tt,ref:ir,leavedClassName:"".concat(ke,"-hidden")},rr,{onAppearPrepare:sa,onEnterPrepare:sa,removeOnLeave:ot,forceRender:He}),function(wn,Zt){var Rn=wn.className,wr=wn.style,$n=W()(ke,se,Xn,Rn);return O.createElement(mt.a,{target:Ir(),key:"popup",ref:xr,monitorWindowResize:!0,disabled:La,align:pt,onAlign:Ar},O.createElement("div",{ref:Zt,className:$n,onMouseEnter:Mn,onMouseLeave:qn,onMouseDownCapture:er,onTouchStartCapture:hr,style:Object(z.a)(Object(z.a)({},wr),Ka)},xa))})});pr.displayName="PopupInner";var gr=pr,Un=O.forwardRef(function(Re,Ve){var tt=Re.prefixCls,ke=Re.visible,se=Re.zIndex,xe=Re.children,de=Re.mobile;de=de===void 0?{}:de;var Ie=de.popupClassName,Be=de.popupStyle,ot=de.popupMotion,He=ot===void 0?{}:ot,pt=de.popupRender,Pt=O.useRef();O.useImperativeHandle(Ve,function(){return{forceAlign:function(){},getElement:function(){return Pt.current}}});var Vt=Object(z.a)({zIndex:se},Be),tn=xe;return O.Children.count(xe)>1&&(tn=O.createElement("div",{className:"".concat(tt,"-content")},xe)),pt&&(tn=pt(tn)),O.createElement(ne,Object(b.a)({visible:ke,ref:Pt,removeOnLeave:!0},He),function(_n,Mn){var qn=_n.className,er=_n.style,hr=W()(tt,Ie,qn);return O.createElement("div",{ref:Mn,className:hr,style:Object(z.a)(Object(z.a)({},er),Vt)},tn)})});Un.displayName="MobilePopupInner";var jn=Un,Fn=["visible","mobile"],Jn=O.forwardRef(function(Re,Ve){var tt=Re.visible,ke=Re.mobile,se=Object(I.a)(Re,Fn),xe=Object(O.useState)(tt),de=Object(G.a)(xe,2),Ie=de[0],Be=de[1],ot=Object(O.useState)(!1),He=Object(G.a)(ot,2),pt=He[0],Pt=He[1],Vt=Object(z.a)(Object(z.a)({},se),{},{visible:Ie});Object(O.useEffect)(function(){Be(tt),tt&&ke&&Pt(Ne())},[tt,ke]);var tn=pt?O.createElement(jn,Object(b.a)({},Vt,{mobile:ke,ref:Ve})):O.createElement(gr,Object(b.a)({},Vt,{ref:Ve}));return O.createElement("div",null,O.createElement(we,Vt),tn)});Jn.displayName="Popup";var Tr=Jn,Zn=O.createContext(null),yr=Zn;function Ht(){}function Hn(){return""}function Hr(Re){return Re?Re.ownerDocument:window.document}var Lr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function or(Re){var Ve=function(tt){Object(g.a)(se,tt);var ke=Object(s.a)(se);function se(xe){var de;Object(P.a)(this,se),de=ke.call(this,xe),de.popupRef=O.createRef(),de.triggerRef=O.createRef(),de.attachId=void 0,de.clickOutsideHandler=void 0,de.touchOutsideHandler=void 0,de.contextMenuOutsideHandler1=void 0,de.contextMenuOutsideHandler2=void 0,de.mouseDownTimeout=void 0,de.focusTime=void 0,de.preClickTime=void 0,de.preTouchTime=void 0,de.delayTimer=void 0,de.hasPopupMouseDown=void 0,de.onMouseEnter=function(Be){var ot=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Be),de.delaySetPopupVisible(!0,ot,ot?null:Be)},de.onMouseMove=function(Be){de.fireEvents("onMouseMove",Be),de.setPoint(Be)},de.onMouseLeave=function(Be){de.fireEvents("onMouseLeave",Be),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onPopupMouseEnter=function(){de.clearDelayTimer()},de.onPopupMouseLeave=function(Be){var ot;if(Be.relatedTarget&&!Be.relatedTarget.setTimeout&&Object(Qt.a)((ot=de.popupRef.current)===null||ot===void 0?void 0:ot.getElement(),Be.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onFocus=function(Be){de.fireEvents("onFocus",Be),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))},de.onMouseDown=function(Be){de.fireEvents("onMouseDown",Be),de.preClickTime=Date.now()},de.onTouchStart=function(Be){de.fireEvents("onTouchStart",Be),de.preTouchTime=Date.now()},de.onBlur=function(Be){de.fireEvents("onBlur",Be),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)},de.onContextMenu=function(Be){Be.preventDefault(),de.fireEvents("onContextMenu",Be),de.setPopupVisible(!0,Be)},de.onContextMenuClose=function(){de.isContextMenuToShow()&&de.close()},de.onClick=function(Be){if(de.fireEvents("onClick",Be),de.focusTime){var ot;if(de.preClickTime&&de.preTouchTime?ot=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?ot=de.preClickTime:de.preTouchTime&&(ot=de.preTouchTime),Math.abs(ot-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Be&&Be.preventDefault&&Be.preventDefault();var He=!de.state.popupVisible;(de.isClickToHide()&&!He||He&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Be)},de.onPopupMouseDown=function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Be;(Be=de.context).onPopupMouseDown.apply(Be,arguments)}},de.onDocumentClick=function(Be){if(de.props.mask&&!de.props.maskClosable)return;var ot=Be.target,He=de.getRootDomNode(),pt=de.getPopupDomNode();(!Object(Qt.a)(He,ot)||de.isContextMenuOnly())&&!Object(Qt.a)(pt,ot)&&!de.hasPopupMouseDown&&de.close()},de.getRootDomNode=function(){var Be=de.props.getTriggerDOMNode;if(Be)return Be(de.triggerRef.current);try{var ot=Object(hn.a)(de.triggerRef.current);if(ot)return ot}catch(He){}return Bt.a.findDOMNode(Object(m.a)(de))},de.getPopupClassNameFromAlign=function(Be){var ot=[],He=de.props,pt=He.popupPlacement,Pt=He.builtinPlacements,Vt=He.prefixCls,tn=He.alignPoint,_n=He.getPopupClassNameFromAlign;return pt&&Pt&&ot.push(Ct(Pt,Vt,Be,tn)),_n&&ot.push(_n(Be)),ot.join(" ")},de.getComponent=function(){var Be=de.props,ot=Be.prefixCls,He=Be.destroyPopupOnHide,pt=Be.popupClassName,Pt=Be.onPopupAlign,Vt=Be.popupMotion,tn=Be.popupAnimation,_n=Be.popupTransitionName,Mn=Be.popupStyle,qn=Be.mask,er=Be.maskAnimation,hr=Be.maskTransitionName,xr=Be.maskMotion,ir=Be.zIndex,mr=Be.popup,Or=Be.stretch,Xn=Be.alignPoint,Ur=Be.mobile,Yn=Be.forceRender,ln=de.state,yn=ln.popupVisible,dr=ln.point,kr=de.getPopupAlign(),Kn={};return de.isMouseEnterToShow()&&(Kn.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&(Kn.onMouseLeave=de.onPopupMouseLeave),Kn.onMouseDown=de.onPopupMouseDown,Kn.onTouchStart=de.onPopupMouseDown,O.createElement(Tr,Object(b.a)({prefixCls:ot,destroyPopupOnHide:He,visible:yn,point:Xn&&dr,className:pt,align:kr,onAlign:Pt,animation:tn,getClassNameFromAlign:de.getPopupClassNameFromAlign},Kn,{stretch:Or,getRootDomNode:de.getRootDomNode,style:Mn,mask:qn,zIndex:ir,transitionName:_n,maskAnimation:er,maskTransitionName:hr,maskMotion:xr,ref:de.popupRef,motion:Vt,mobile:Ur,forceRender:Yn}),typeof mr=="function"?mr():mr)},de.attachParent=function(Be){kt.a.cancel(de.attachId);var ot=de.props,He=ot.getPopupContainer,pt=ot.getDocument,Pt=de.getRootDomNode(),Vt;He?(Pt||He.length===0)&&(Vt=He(Pt)):Vt=pt(de.getRootDomNode()).body,Vt?Vt.appendChild(Be):de.attachId=Object(kt.a)(function(){de.attachParent(Be)})},de.getContainer=function(){var Be=de.props.getDocument,ot=Be(de.getRootDomNode()).createElement("div");return ot.style.position="absolute",ot.style.top="0",ot.style.left="0",ot.style.width="100%",de.attachParent(ot),ot},de.setPoint=function(Be){var ot=de.props.alignPoint;if(!ot||!Be)return;de.setState({point:{pageX:Be.pageX,pageY:Be.pageY}})},de.handlePortalUpdate=function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)},de.triggerContextValue={onPopupMouseDown:de.onPopupMouseDown};var Ie;return"popupVisible"in xe?Ie=!!xe.popupVisible:Ie=!!xe.defaultPopupVisible,de.state={prevPopupVisible:Ie,popupVisible:Ie},Lr.forEach(function(Be){de["fire".concat(Be)]=function(ot){de.fireEvents(Be,ot)}}),de}return Object(T.a)(se,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,Ie=this.state;if(Ie.popupVisible){var Be;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Be=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)(Be,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Be=Be||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)(Be,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Be=Be||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ue.a)(Be,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ue.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),kt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var de;return((de=this.popupRef.current)===null||de===void 0?void 0:de.getElement())||null}},{key:"getPopupAlign",value:function(){var de=this.props,Ie=de.popupPlacement,Be=de.popupAlign,ot=de.builtinPlacements;return Ie&&ot?st(ot,Ie,Be):Be}},{key:"setPopupVisible",value:function(de,Ie){var Be=this.props.alignPoint,ot=this.state.popupVisible;this.clearDelayTimer(),ot!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:ot}),this.props.onPopupVisibleChange(de)),Be&&Ie&&de&&this.setPoint(Ie)}},{key:"delaySetPopupVisible",value:function(de,Ie,Be){var ot=this,He=Ie*1e3;if(this.clearDelayTimer(),He){var pt=Be?{pageX:Be.pageX,pageY:Be.pageY}:null;this.delayTimer=window.setTimeout(function(){ot.setPopupVisible(de,pt),ot.clearDelayTimer()},He)}else this.setPopupVisible(de,Be)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(de){var Ie=this.props.children.props,Be=this.props;return Ie[de]&&Be[de]?this["fire".concat(de)]:Ie[de]||Be[de]}},{key:"isClickToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("click")!==-1||Be.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var de=this.props.action;return de==="contextMenu"||de.length===1&&de[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("contextMenu")!==-1||Be.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,Ie=de.action,Be=de.hideAction;return Ie.indexOf("click")!==-1||Be.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("hover")!==-1||Be.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,Ie=de.action,Be=de.hideAction;return Ie.indexOf("hover")!==-1||Be.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("focus")!==-1||Be.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,Ie=de.action,Be=de.hideAction;return Ie.indexOf("focus")!==-1||Be.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var de;(de=this.popupRef.current)===null||de===void 0||de.forceAlign()}}},{key:"fireEvents",value:function(de,Ie){var Be=this.props.children.props[de];Be&&Be(Ie);var ot=this.props[de];ot&&ot(Ie)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,Ie=this.props,Be=Ie.children,ot=Ie.forceRender,He=Ie.alignPoint,pt=Ie.className,Pt=Ie.autoDestroy,Vt=O.Children.only(Be),tn={key:"trigger"};this.isContextMenuToShow()?tn.onContextMenu=this.onContextMenu:tn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(tn.onClick=this.onClick,tn.onMouseDown=this.onMouseDown,tn.onTouchStart=this.onTouchStart):(tn.onClick=this.createTwoChains("onClick"),tn.onMouseDown=this.createTwoChains("onMouseDown"),tn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(tn.onMouseEnter=this.onMouseEnter,He&&(tn.onMouseMove=this.onMouseMove)):tn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?tn.onMouseLeave=this.onMouseLeave:tn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(tn.onFocus=this.onFocus,tn.onBlur=this.onBlur):(tn.onFocus=this.createTwoChains("onFocus"),tn.onBlur=this.createTwoChains("onBlur"));var _n=W()(Vt&&Vt.props&&Vt.props.className,pt);_n&&(tn.className=_n);var Mn=Object(z.a)({},tn);Object(qe.c)(Vt)&&(Mn.ref=Object(qe.a)(this.triggerRef,Vt.ref));var qn=O.cloneElement(Vt,Mn),er;return(de||this.popupRef.current||ot)&&(er=O.createElement(Re,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&Pt&&(er=null),O.createElement(yr.Provider,{value:this.triggerContextValue},qn,er)}}],[{key:"getDerivedStateFromProps",value:function(de,Ie){var Be=de.popupVisible,ot={};return Be!==void 0&&Ie.popupVisible!==Be&&(ot.popupVisible=Be,ot.prevPopupVisible=Ie.popupVisible),ot}}]),se}(O.Component);return Ve.contextType=yr,Ve.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Hn,getDocument:Hr,onPopupVisibleChange:Ht,afterPopupVisibleChange:Ht,onPopupAlign:Ht,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ve}var Cr=or(vt.a),te={adjustX:1,adjustY:1},De={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:te,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:te,offset:[4,0]}},Xe={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:te,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:te,offset:[4,0]}},ze=De,ut=0,et={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},bt=function(Ve,tt,ke){var se=J(tt),xe=Ve.getState();Ve.setState({defaultActiveFirst:Object(z.a)(Object(z.a)({},xe.defaultActiveFirst),{},Object(re.a)({},se,ke))})},ht=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(ke){var se;Object(P.a)(this,tt),se=Ve.call(this,ke),se.onDestroy=function(He){se.props.onDestroy(He)},se.onKeyDown=function(He){var pt=He.keyCode,Pt=se.menuInstance,Vt=se.props.store,tn=se.getVisible();if(pt===c.a.ENTER)return se.onTitleClick(He),bt(Vt,se.props.eventKey,!0),!0;if(pt===c.a.RIGHT)return tn?Pt.onKeyDown(He):(se.triggerOpenChange(!0),bt(Vt,se.props.eventKey,!0)),!0;if(pt===c.a.LEFT){var _n;if(tn)_n=Pt.onKeyDown(He);else return;return _n||(se.triggerOpenChange(!1),_n=!0),_n}return tn&&(pt===c.a.UP||pt===c.a.DOWN)?Pt.onKeyDown(He):void 0},se.onOpenChange=function(He){se.props.onOpenChange(He)},se.onPopupVisibleChange=function(He){se.triggerOpenChange(He,He?"mouseenter":"mouseleave")},se.onMouseEnter=function(He){var pt=se.props,Pt=pt.eventKey,Vt=pt.onMouseEnter,tn=pt.store;bt(tn,se.props.eventKey,!1),Vt({key:Pt,domEvent:He})},se.onMouseLeave=function(He){var pt=se.props,Pt=pt.parentMenu,Vt=pt.eventKey,tn=pt.onMouseLeave;Pt.subMenuInstance=Object(m.a)(se),tn({key:Vt,domEvent:He})},se.onTitleMouseEnter=function(He){var pt=se.props,Pt=pt.eventKey,Vt=pt.onItemHover,tn=pt.onTitleMouseEnter;Vt({key:Pt,hover:!0}),tn({key:Pt,domEvent:He})},se.onTitleMouseLeave=function(He){var pt=se.props,Pt=pt.parentMenu,Vt=pt.eventKey,tn=pt.onItemHover,_n=pt.onTitleMouseLeave;Pt.subMenuInstance=Object(m.a)(se),tn({key:Vt,hover:!1}),_n({key:Vt,domEvent:He})},se.onTitleClick=function(He){var pt=Object(m.a)(se),Pt=pt.props;if(Pt.onTitleClick({key:Pt.eventKey,domEvent:He}),Pt.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!se.getVisible(),"click"),bt(Pt.store,se.props.eventKey,!1)},se.onSubMenuClick=function(He){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(He))},se.onSelect=function(He){se.props.onSelect(He)},se.onDeselect=function(He){se.props.onDeselect(He)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.getVisible=function(){return se.state.isOpen},se.getMode=function(){return se.state.mode},se.saveMenuInstance=function(He){se.menuInstance=He},se.addKeyPath=function(He){return Object(z.a)(Object(z.a)({},He),{},{keyPath:(He.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(He,pt){var Pt=se.props.eventKey,Vt=function(){se.onOpenChange({key:Pt,item:Object(m.a)(se),trigger:pt,open:He})};pt==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){Vt()},0):Vt()},se.isChildrenSelected=function(){var He={find:!1};return X(se.props.children,se.props.selectedKeys,He),He.find},se.isInlineMode=function(){return se.getMode()==="inline"},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var He=Kt.findDOMNode(se.menuInstance);if(He.offsetWidth>=se.subMenuTitle.offsetWidth)return;He.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(He){se.subMenuTitle=He},se.getBaseProps=function(){var He=Object(m.a)(se),pt=He.props,Pt=se.getMode();return{mode:Pt==="horizontal"?"vertical":Pt,visible:se.getVisible(),level:pt.level+1,inlineIndent:pt.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:pt.selectedKeys,eventKey:"".concat(pt.eventKey,"-menu-"),openKeys:pt.openKeys,motion:pt.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:pt.subMenuOpenDelay,parentMenu:Object(m.a)(se),subMenuCloseDelay:pt.subMenuCloseDelay,forceSubMenuRender:pt.forceSubMenuRender,triggerSubMenuAction:pt.triggerSubMenuAction,builtinPlacements:pt.builtinPlacements,defaultActiveFirst:pt.store.getState().defaultActiveFirst[J(pt.eventKey)],multiple:pt.multiple,prefixCls:pt.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:pt.itemIcon,expandIcon:pt.expandIcon,direction:pt.direction}},se.getMotion=function(He,pt){var Pt=Object(m.a)(se),Vt=Pt.haveRendered,tn=se.props,_n=tn.motion,Mn=tn.rootPrefixCls,qn=Object(z.a)(Object(z.a)({},_n),{},{leavedClassName:"".concat(Mn,"-hidden"),removeOnLeave:!1,motionAppear:Vt||!pt||He!=="inline"});return qn};var xe=ke.store,de=ke.eventKey,Ie=xe.getState(),Be=Ie.defaultActiveFirst;se.isRootMenu=!1;var ot=!1;return Be&&(ot=Be[de]),bt(xe,de,ot),se.state={mode:ke.mode,isOpen:ke.isOpen},se}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,xe=this.props,de=xe.mode,Ie=xe.parentMenu,Be=xe.manualRef,ot=xe.isOpen,He=function(){se.setState({mode:de,isOpen:ot})},pt=ot!==this.state.isOpen,Pt=de!==this.state.mode;if((Pt||pt)&&(kt.a.cancel(this.updateStateRaf),Pt?this.updateStateRaf=Object(kt.a)(He):He()),Be&&Be(this),de!=="horizontal"||!(Ie==null?void 0:Ie.isRootMenu)||!ot)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,xe=se.onDestroy,de=se.eventKey;xe&&xe(de),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),kt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(se,xe){var de=this.getBaseProps();return O.createElement(Ut,Object(b.a)({},de,{id:this.internalMenuId,className:se,style:xe}),this.props.children)}},{key:"renderChildren",value:function(){var se=this,xe=this.getBaseProps(),de=xe.mode,Ie=xe.visible,Be=xe.forceSubMenuRender,ot=xe.direction,He=this.getMotion(de,Ie);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ie||Be,!this.haveOpened)return O.createElement("div",null);var pt=W()("".concat(xe.prefixCls,"-sub"),Object(re.a)({},"".concat(xe.prefixCls,"-rtl"),ot==="rtl"));return this.isInlineMode()?O.createElement(ne,Object(b.a)({visible:xe.visible,forceRender:Be},He),function(Pt){var Vt=Pt.className,tn=Pt.style,_n=W()(pt,Vt);return se.renderPopupMenu(_n,tn)}):this.renderPopupMenu(pt)}},{key:"render",value:function(){var se,xe,de,Ie=Object(z.a)({},this.props),Be=this.getVisible(),ot=this.getPrefixCls(),He=this.isInlineMode(),pt=this.getMode(),Pt=W()(ot,"".concat(ot,"-").concat(pt),(se={},Object(re.a)(se,Ie.className,!!Ie.className),Object(re.a)(se,this.getOpenClassName(),Be),Object(re.a)(se,this.getActiveClassName(),Ie.active||Be&&!He),Object(re.a)(se,this.getDisabledClassName(),Ie.disabled),Object(re.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(Ie.eventKey?this.internalMenuId="".concat(Ie.eventKey,"$Menu"):(ut+=1,this.internalMenuId="$__$".concat(ut,"$Menu")));var Vt={},tn={},_n={};Ie.disabled||(Vt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},tn={onClick:this.onTitleClick},_n={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Mn={},qn=Ie.direction,er=qn==="rtl";He&&(er?Mn.paddingRight=Ie.inlineIndent*Ie.level:Mn.paddingLeft=Ie.inlineIndent*Ie.level);var hr={};this.getVisible()&&(hr={"aria-owns":this.internalMenuId});var xr=null;pt!=="horizontal"&&(xr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(xr=O.createElement(this.props.expandIcon,Object(z.a)({},this.props))));var ir=O.createElement("div",Object(b.a)({ref:this.saveSubMenuTitle,style:Mn,className:"".concat(ot,"-title"),role:"button"},_n,tn,{"aria-expanded":Be},hr,{"aria-haspopup":"true",title:typeof Ie.title=="string"?Ie.title:void 0}),Ie.title,xr||O.createElement("i",{className:"".concat(ot,"-arrow")})),mr=this.renderChildren(),Or=((xe=Ie.parentMenu)===null||xe===void 0?void 0:xe.isRootMenu)?Ie.parentMenu.props.getPopupContainer:function(Ir){return Ir.parentNode},Xn=et[pt],Ur=Ie.popupOffset?{offset:Ie.popupOffset}:{},Yn=W()((de={},Object(re.a)(de,Ie.popupClassName,Ie.popupClassName&&!He),Object(re.a)(de,"".concat(ot,"-rtl"),er),de)),ln=Ie.disabled,yn=Ie.triggerSubMenuAction,dr=Ie.subMenuOpenDelay,kr=Ie.forceSubMenuRender,Kn=Ie.subMenuCloseDelay,Dr=Ie.builtinPlacements;ue.forEach(function(Ir){return delete Ie[Ir]}),delete Ie.onClick;var qr=er?Object(z.a)(Object(z.a)({},Xe),Dr):Object(z.a)(Object(z.a)({},De),Dr);delete Ie.direction;var Nr=this.getBaseProps(),Yr=He?null:this.getMotion(Nr.mode,Nr.visible);return O.createElement("li",Object(b.a)({},Ie,Vt,{className:Pt,role:"menuitem"}),O.createElement(Cr,{prefixCls:ot,popupClassName:W()("".concat(ot,"-popup"),Yn),getPopupContainer:Or,builtinPlacements:qr,popupPlacement:Xn,popupVisible:He?!1:Be,popupAlign:Ur,popup:He?null:mr,action:ln||He?[]:[yn],mouseEnterDelay:dr,mouseLeaveDelay:Kn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:kr,popupMotion:Yr},ir),He?mr:null)}}]),tt}(O.Component);ht.defaultProps={onMouseEnter:Ge,onMouseLeave:Ge,onTitleMouseEnter:Ge,onTitleMouseLeave:Ge,onTitleClick:Ge,manualRef:Ge,mode:"vertical",title:""};var Tt=Object(u.b)(function(Re,Ve){var tt=Re.openKeys,ke=Re.activeKey,se=Re.selectedKeys,xe=Ve.eventKey,de=Ve.subMenuKey;return{isOpen:tt.indexOf(xe)>-1,active:ke[de]===xe,selectedKeys:se}})(ht);Tt.isSubMenu=!0;var it=Tt,Yt="menuitem-overflowed",ct=.5,ye=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){var ke;return Object(P.a)(this,tt),ke=Ve.apply(this,arguments),ke.resizeObserver=null,ke.mutationObserver=null,ke.originalTotalWidth=0,ke.overflowedItems=[],ke.menuItemSizes=[],ke.cancelFrameId=null,ke.state={lastVisibleIndex:void 0},ke.childRef=O.createRef(),ke.getMenuItemNodes=function(){var se=ke.props.prefixCls,xe=ke.childRef.current;return xe?[].slice.call(xe.children).filter(function(de){return de.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},ke.getOverflowedSubMenuItem=function(se,xe,de){var Ie=ke.props,Be=Ie.overflowedIndicator,ot=Ie.level,He=Ie.mode,pt=Ie.prefixCls,Pt=Ie.theme;if(ot!==1||He!=="horizontal")return null;var Vt=ke.props.children[0],tn=Vt.props,_n=tn.children,Mn=tn.title,qn=tn.style,er=Object(I.a)(tn,["children","title","style"]),hr=Object(z.a)({},qn),xr="".concat(se,"-overflowed-indicator"),ir="".concat(se,"-overflowed-indicator");xe.length===0&&de!==!0?hr=Object(z.a)(Object(z.a)({},hr),{},{display:"none"}):de&&(hr=Object(z.a)(Object(z.a)({},hr),{},{visibility:"hidden",position:"absolute"}),xr="".concat(xr,"-placeholder"),ir="".concat(ir,"-placeholder"));var mr=Pt?"".concat(pt,"-").concat(Pt):"",Or={};return ue.forEach(function(Xn){er[Xn]!==void 0&&(Or[Xn]=er[Xn])}),O.createElement(it,Object(b.a)({title:Be,className:"".concat(pt,"-overflowed-submenu"),popupClassName:mr},Or,{key:xr,eventKey:ir,disabled:!1,style:hr}),xe)},ke.setChildrenWidthAndResize=function(){if(ke.props.mode!=="horizontal")return;var se=ke.childRef.current;if(!se)return;var xe=se.children;if(!xe||xe.length===0)return;var de=se.children[xe.length-1];We(de,"display","inline-block");var Ie=ke.getMenuItemNodes(),Be=Ie.filter(function(ot){return ot.className.split(" ").indexOf(Yt)>=0});Be.forEach(function(ot){We(ot,"display","inline-block")}),ke.menuItemSizes=Ie.map(function(ot){return Ee(ot,!0)}),Be.forEach(function(ot){We(ot,"display","none")}),ke.overflowedIndicatorWidth=Ee(se.children[se.children.length-1],!0),ke.originalTotalWidth=ke.menuItemSizes.reduce(function(ot,He){return ot+He},0),ke.handleResize(),We(de,"display","none")},ke.handleResize=function(){if(ke.props.mode!=="horizontal")return;var se=ke.childRef.current;if(!se)return;var xe=Ee(se);ke.overflowedItems=[];var de=0,Ie;ke.originalTotalWidth>xe+ct&&(Ie=-1,ke.menuItemSizes.forEach(function(Be){de+=Be,de+ke.overflowedIndicatorWidth<=xe&&(Ie+=1)})),ke.setState({lastVisibleIndex:Ie})},ke}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var xe=this.childRef.current;if(!xe)return;this.resizeObserver=new Lt.default(function(de){de.forEach(function(){var Ie=se.cancelFrameId;cancelAnimationFrame(Ie),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(xe.children).concat(xe).forEach(function(de){se.resizeObserver.observe(de)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(xe.children).concat(xe).forEach(function(de){se.resizeObserver.observe(de)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(xe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(se){var xe=this,de=this.state.lastVisibleIndex;return(se||[]).reduce(function(Ie,Be,ot){var He=Be;if(xe.props.mode==="horizontal"){var pt=xe.getOverflowedSubMenuItem(Be.props.eventKey,[]);de!==void 0&&xe.props.className.indexOf("".concat(xe.props.prefixCls,"-root"))!==-1&&(ot>de&&(He=O.cloneElement(Be,{style:{display:"none"},eventKey:"".concat(Be.props.eventKey,"-hidden"),className:"".concat(Yt)})),ot===de+1&&(xe.overflowedItems=se.slice(de+1).map(function(Vt){return O.cloneElement(Vt,{key:Vt.props.eventKey,mode:"vertical-left"})}),pt=xe.getOverflowedSubMenuItem(Be.props.eventKey,xe.overflowedItems)));var Pt=[].concat(Object(R.a)(Ie),[pt,He]);return ot===se.length-1&&Pt.push(xe.getOverflowedSubMenuItem(Be.props.eventKey,[],!0)),Pt}return[].concat(Object(R.a)(Ie),[He])},[])}},{key:"render",value:function(){var se=this.props,xe=se.visible,de=se.prefixCls,Ie=se.overflowedIndicator,Be=se.mode,ot=se.level,He=se.tag,pt=se.children,Pt=se.theme,Vt=Object(I.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),tn=He;return O.createElement(tn,Object(b.a)({ref:this.childRef},Vt),this.renderChildren(pt))}}]),tt}(O.Component);ye.defaultProps={tag:"div",className:""};var Et=ye;function nt(Re){return Re.length?Re.every(function(Ve){return!!Ve.props.disabled}):!0}function Nt(Re,Ve,tt){var ke=Re.getState();Re.setState({activeKey:Object(z.a)(Object(z.a)({},ke.activeKey),{},Object(re.a)({},Ve,tt))})}function Dt(Re){return Re.eventKey||"0-menu-"}function dt(Re,Ve){var tt=Ve,ke=Re.children,se=Re.eventKey;if(tt){var xe;if(V(ke,function(de,Ie){de&&de.props&&!de.props.disabled&&tt===pe(de,se,Ie)&&(xe=!0)}),xe)return tt}return tt=null,Re.defaultActiveFirst&&V(ke,function(de,Ie){!tt&&de&&!de.props.disabled&&(tt=pe(de,se,Ie))}),tt}function gn(Re){if(!Re)return;var Ve=this.instanceArray.indexOf(Re);Ve!==-1?this.instanceArray[Ve]=Re:this.instanceArray.push(Re)}var In=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(ke){var se;return Object(P.a)(this,tt),se=Ve.call(this,ke),se.onKeyDown=function(xe,de){var Ie=xe.keyCode,Be;if(se.getFlatInstanceArray().forEach(function(He){He&&He.props.active&&He.onKeyDown&&(Be=He.onKeyDown(xe))}),Be)return 1;var ot=null;return(Ie===c.a.UP||Ie===c.a.DOWN)&&(ot=se.step(Ie===c.a.UP?-1:1)),ot?(xe.preventDefault(),Nt(se.props.store,Dt(se.props),ot.props.eventKey),typeof de=="function"&&de(ot),1):void 0},se.onItemHover=function(xe){var de=xe.key,Ie=xe.hover;Nt(se.props.store,Dt(se.props),Ie?de:null)},se.onDeselect=function(xe){se.props.onDeselect(xe)},se.onSelect=function(xe){se.props.onSelect(xe)},se.onClick=function(xe){se.props.onClick(xe)},se.onOpenChange=function(xe){se.props.onOpenChange(xe)},se.onDestroy=function(xe){se.props.onDestroy(xe)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(xe){var de=se.getFlatInstanceArray(),Ie=se.props.store.getState().activeKey[Dt(se.props)],Be=de.length;if(!Be)return null;xe<0&&(de=de.concat().reverse());var ot=-1;if(de.every(function(Vt,tn){return Vt&&Vt.props.eventKey===Ie?(ot=tn,!1):!0}),!se.props.defaultActiveFirst&&ot!==-1&&nt(de.slice(ot,Be-1)))return;var He=(ot+1)%Be,pt=He;do{var Pt=de[pt];if(!Pt||Pt.props.disabled)pt=(pt+1)%Be;else return Pt}while(pt!==He);return null},se.renderCommonMenuItem=function(xe,de,Ie){var Be=se.props.store.getState(),ot=Object(m.a)(se),He=ot.props,pt=pe(xe,He.eventKey,de),Pt=xe.props;if(!Pt||typeof xe.type=="string")return xe;var Vt=pt===Be.activeKey,tn=Object(z.a)(Object(z.a)({mode:Pt.mode||He.mode,level:He.level,inlineIndent:He.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:He.prefixCls,index:de,parentMenu:He.parentMenu,manualRef:Pt.disabled?void 0:Object(S.a)(xe.ref,gn.bind(Object(m.a)(se))),eventKey:pt,active:!Pt.disabled&&Vt,multiple:He.multiple,onClick:function(Mn){(Pt.onClick||Ge)(Mn),se.onClick(Mn)},onItemHover:se.onItemHover,motion:He.motion,subMenuOpenDelay:He.subMenuOpenDelay,subMenuCloseDelay:He.subMenuCloseDelay,forceSubMenuRender:He.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:He.builtinPlacements,itemIcon:Pt.itemIcon||se.props.itemIcon,expandIcon:Pt.expandIcon||se.props.expandIcon},Ie),{},{direction:He.direction});return(He.mode==="inline"||Ke())&&(tn.triggerSubMenuAction="click"),O.cloneElement(xe,Object(z.a)(Object(z.a)({},tn),{},{key:pt||de}))},se.renderMenuItem=function(xe,de,Ie){if(!xe)return null;var Be=se.props.store.getState(),ot={openKeys:Be.openKeys,selectedKeys:Be.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:Ie};return se.renderCommonMenuItem(xe,de,ot)},ke.store.setState({activeKey:Object(z.a)(Object(z.a)({},ke.store.getState().activeKey),{},Object(re.a)({},ke.eventKey,dt(ke,ke.activeKey)))}),se.instanceArray=[],se}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!N()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var xe=this.props,de="activeKey"in xe?xe.activeKey:xe.store.getState().activeKey[Dt(xe)],Ie=dt(xe,de);if(Ie!==de)Nt(xe.store,Dt(xe),Ie);else if("activeKey"in se){var Be=dt(se,se.activeKey);Ie!==Be&&Nt(xe.store,Dt(xe),Ie)}}},{key:"render",value:function(){var se=this,xe=Object(b.a)({},this.props);this.instanceArray=[];var de=W()(xe.prefixCls,xe.className,"".concat(xe.prefixCls,"-").concat(xe.mode)),Ie={className:de,role:xe.role||"menu"};xe.id&&(Ie.id=xe.id),xe.focusable&&(Ie.tabIndex=0,Ie.onKeyDown=this.onKeyDown);var Be=xe.prefixCls,ot=xe.eventKey,He=xe.visible,pt=xe.level,Pt=xe.mode,Vt=xe.overflowedIndicator,tn=xe.theme;return ue.forEach(function(_n){return delete xe[_n]}),delete xe.onClick,O.createElement(Et,Object(b.a)({},xe,{prefixCls:Be,mode:Pt,tag:"ul",level:pt,theme:tn,visible:He,overflowedIndicator:Vt},Ie),Object(y.a)(xe.children).map(function(_n,Mn){return se.renderMenuItem(_n,Mn,ot||"0-menu-")}))}}]),tt}(O.Component);In.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ge};var sn=Object(u.b)()(In),Ut=sn,an=M("Kwbf");function Nn(Re,Ve,tt){var ke=Re.prefixCls,se=Re.motion,xe=Re.defaultMotions,de=xe===void 0?{}:xe,Ie=Re.openAnimation,Be=Re.openTransitionName,ot=Ve.switchingModeFromInline;if(se)return se;if(Object(j.a)(Ie)==="object"&&Ie)Object(an.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ie=="string")return{motionName:"".concat(ke,"-open-").concat(Ie)};if(Be)return{motionName:Be};var He=de[tt];return He||(ot?null:de.other)}var dn=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(ke){var se;Object(P.a)(this,tt),se=Ve.call(this,ke),se.onSelect=function(Ie){var Be=Object(m.a)(se),ot=Be.props;if(ot.selectable){var He=se.store.getState(),pt=He.selectedKeys,Pt=Ie.key;ot.multiple?pt=pt.concat([Pt]):pt=[Pt],"selectedKeys"in ot||se.store.setState({selectedKeys:pt}),ot.onSelect(Object(z.a)(Object(z.a)({},Ie),{},{selectedKeys:pt}))}},se.onClick=function(Ie){var Be=se.getRealMenuMode(),ot=Object(m.a)(se),He=ot.store,pt=ot.props.onOpenChange;Be!=="inline"&&!("openKeys"in se.props)&&(He.setState({openKeys:[]}),pt([])),se.props.onClick(Ie)},se.onKeyDown=function(Ie,Be){se.innerMenu.getWrappedInstance().onKeyDown(Ie,Be)},se.onOpenChange=function(Ie){var Be=Object(m.a)(se),ot=Be.props,He=se.store.getState().openKeys.concat(),pt=!1,Pt=function(tn){var _n=!1;if(tn.open)_n=He.indexOf(tn.key)===-1,_n&&He.push(tn.key);else{var Mn=He.indexOf(tn.key);_n=Mn!==-1,_n&&He.splice(Mn,1)}pt=pt||_n};Array.isArray(Ie)?Ie.forEach(Pt):Pt(Ie),pt&&("openKeys"in se.props||se.store.setState({openKeys:He}),ot.onOpenChange(He))},se.onDeselect=function(Ie){var Be=Object(m.a)(se),ot=Be.props;if(ot.selectable){var He=se.store.getState().selectedKeys.concat(),pt=Ie.key,Pt=He.indexOf(pt);Pt!==-1&&He.splice(Pt,1),"selectedKeys"in ot||se.store.setState({selectedKeys:He}),ot.onDeselect(Object(z.a)(Object(z.a)({},Ie),{},{selectedKeys:He}))}},se.onMouseEnter=function(Ie){se.restoreModeVerticalFromInline();var Be=se.props.onMouseEnter;Be&&Be(Ie)},se.onTransitionEnd=function(Ie){var Be=Ie.propertyName==="width"&&Ie.target===Ie.currentTarget,ot=Ie.target.className,He=Object.prototype.toString.call(ot)==="[object SVGAnimatedString]"?ot.animVal:ot,pt=Ie.propertyName==="font-size"&&He.indexOf("anticon")>=0;(Be||pt)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(Ie){se.innerMenu=Ie},se.isRootMenu=!0;var xe=ke.defaultSelectedKeys,de=ke.defaultOpenKeys;return"selectedKeys"in ke&&(xe=ke.selectedKeys||[]),"openKeys"in ke&&(de=ke.openKeys||[]),se.store=Object(u.c)({selectedKeys:xe,openKeys:de,activeKey:{"0-menu-":dt(ke,ke.activeKey)}}),se.state={switchingModeFromInline:!1,prevProps:ke,inlineOpenKeys:[],store:se.store},se}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){var xe=this.props,de=xe.siderCollapsed,Ie=xe.inlineCollapsed,Be=xe.onOpenChange;(!se.inlineCollapsed&&Ie||!se.siderCollapsed&&de)&&Be([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,xe=this.store,de=this.prevOpenKeys,Ie=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");Ie?(this.prevOpenKeys=xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):de&&(this.store.setState({openKeys:de}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,xe=this.state.switchingModeFromInline,de=this.getInlineCollapsed();return xe&&de?"inline":de?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,xe=se.inlineCollapsed,de=se.siderCollapsed;return de!==void 0?de:xe}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var se=Object(z.a)({},Object(D.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),xe=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(z.a)(Object(z.a)({},se),{},{mode:xe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Nn(this.props,this.state,xe)}),delete se.openAnimation,delete se.openTransitionName,O.createElement(u.a,{store:this.store},O.createElement(Ut,Object(b.a)({},se,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(se,xe){var de=xe.prevProps,Ie=xe.store,Be=Ie.getState(),ot={},He={prevProps:se};return de.mode==="inline"&&se.mode!=="inline"&&(He.switchingModeFromInline=!0),"openKeys"in se?ot.openKeys=se.openKeys||[]:((se.inlineCollapsed&&!de.inlineCollapsed||se.siderCollapsed&&!de.siderCollapsed)&&(He.switchingModeFromInline=!0,He.inlineOpenKeys=Be.openKeys,ot.openKeys=[]),(!se.inlineCollapsed&&de.inlineCollapsed||!se.siderCollapsed&&de.siderCollapsed)&&(ot.openKeys=xe.inlineOpenKeys,He.inlineOpenKeys=[])),Object.keys(ot).length&&Ie.setState(ot),He}}]),tt}(O.Component);dn.defaultProps={selectable:!0,onClick:Ge,onSelect:Ge,onOpenChange:Ge,onDeselect:Ge,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var mn=dn,zt=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){var ke;return Object(P.a)(this,tt),ke=Ve.apply(this,arguments),ke.onKeyDown=function(se){var xe=se.keyCode;return xe===c.a.ENTER?(ke.onClick(se),!0):void 0},ke.onMouseLeave=function(se){var xe=ke.props,de=xe.eventKey,Ie=xe.onItemHover,Be=xe.onMouseLeave;Ie({key:de,hover:!1}),Be({key:de,domEvent:se})},ke.onMouseEnter=function(se){var xe=ke.props,de=xe.eventKey,Ie=xe.onItemHover,Be=xe.onMouseEnter;Ie({key:de,hover:!0}),Be({key:de,domEvent:se})},ke.onClick=function(se){var xe=ke.props,de=xe.eventKey,Ie=xe.multiple,Be=xe.onClick,ot=xe.onSelect,He=xe.onDeselect,pt=xe.isSelected,Pt={key:de,keyPath:[de],item:Object(m.a)(ke),domEvent:se};Be(Pt),Ie?pt?He(Pt):ot(Pt):pt||ot(Pt)},ke.saveNode=function(se){ke.node=se},ke}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var se,xe=Object(z.a)({},this.props),de=W()(this.getPrefixCls(),xe.className,(se={},Object(re.a)(se,this.getActiveClassName(),!xe.disabled&&xe.active),Object(re.a)(se,this.getSelectedClassName(),xe.isSelected),Object(re.a)(se,this.getDisabledClassName(),xe.disabled),se)),Ie=Object(z.a)(Object(z.a)({},xe.attribute),{},{title:typeof xe.title=="string"?xe.title:void 0,className:de,role:xe.role||"menuitem","aria-disabled":xe.disabled});xe.role==="option"?Ie=Object(z.a)(Object(z.a)({},Ie),{},{role:"option","aria-selected":xe.isSelected}):(xe.role===null||xe.role==="none")&&(Ie.role="none");var Be={onClick:xe.disabled?null:this.onClick,onMouseLeave:xe.disabled?null:this.onMouseLeave,onMouseEnter:xe.disabled?null:this.onMouseEnter},ot=Object(z.a)({},xe.style);xe.mode==="inline"&&(xe.direction==="rtl"?ot.paddingRight=xe.inlineIndent*xe.level:ot.paddingLeft=xe.inlineIndent*xe.level),ue.forEach(function(pt){return delete xe[pt]}),delete xe.direction;var He=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(He=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object(b.a)({},Object(D.a)(xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ie,Be,{style:ot,ref:this.saveNode}),xe.children,He)}}]),tt}(O.Component);zt.isMenuItem=!0,zt.defaultProps={onSelect:Ge,onMouseEnter:Ge,onMouseLeave:Ge,manualRef:Ge};var Gt=Object(u.b)(function(Re,Ve){var tt=Re.activeKey,ke=Re.selectedKeys,se=Ve.eventKey,xe=Ve.subMenuKey;return{active:tt[xe]===se,isSelected:Array.isArray(ke)?ke.indexOf(se)!==-1:ke===se}})(zt),At=Gt,Ft=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){var ke;return Object(P.a)(this,tt),ke=Ve.apply(this,arguments),ke.renderInnerMenuItem=function(se){var xe=ke.props,de=xe.renderMenuItem,Ie=xe.index;return de(se,Ie,ke.props.subMenuKey)},ke}return Object(T.a)(tt,[{key:"render",value:function(){var se=Object(b.a)({},this.props),xe=se.className,de=xe===void 0?"":xe,Ie=se.rootPrefixCls,Be="".concat(Ie,"-item-group-title"),ot="".concat(Ie,"-item-group-list"),He=se.title,pt=se.children;return ue.forEach(function(Pt){return delete se[Pt]}),delete se.direction,O.createElement("li",Object(b.a)({},se,{onClick:function(Vt){return Vt.stopPropagation()},className:"".concat(de," ").concat(Ie,"-item-group")}),O.createElement("div",{className:Be,title:typeof He=="string"?He:void 0},He),O.createElement("ul",{className:ot},O.Children.map(pt,this.renderInnerMenuItem)))}}]),tt}(O.Component);Ft.isMenuItemGroup=!0,Ft.defaultProps={disabled:!0};var vn=Ft,Dn=function(Ve){var tt=Ve.className,ke=Ve.rootPrefixCls,se=Ve.style;return O.createElement("li",{className:"".concat(tt," ").concat(ke,"-item-divider"),style:se})};Dn.defaultProps={disabled:!0,className:"",style:{}};var ur=Dn,nr=mn,qt=M("eDIo");function Sr(Re,Ve){var tt=Re.prefixCls,ke=Re.editable,se=Re.locale,xe=Re.style;return!ke||ke.showAdd===!1?null:O.createElement("button",{ref:Ve,type:"button",className:"".concat(tt,"-nav-add"),style:xe,"aria-label":(se==null?void 0:se.addAriaLabel)||"Add tab",onClick:function(Ie){ke.onEdit("add",{event:Ie})}},ke.addIcon||"+")}var zn=O.forwardRef(Sr);function zr(Re,Ve){var tt=Re.prefixCls,ke=Re.id,se=Re.tabs,xe=Re.locale,de=Re.mobile,Ie=Re.moreIcon,Be=Ie===void 0?"More":Ie,ot=Re.moreTransitionName,He=Re.style,pt=Re.className,Pt=Re.editable,Vt=Re.tabBarGutter,tn=Re.rtl,_n=Re.onTabClick,Mn=Object(O.useState)(!1),qn=Object(G.a)(Mn,2),er=qn[0],hr=qn[1],xr=Object(O.useState)(null),ir=Object(G.a)(xr,2),mr=ir[0],Or=ir[1],Xn="".concat(ke,"-more-popup"),Ur="".concat(tt,"-dropdown"),Yn=mr!==null?"".concat(Xn,"-").concat(mr):null,ln=xe==null?void 0:xe.dropdownAriaLabel,yn=O.createElement(nr,{onClick:function(Yr){var Ir=Yr.key,Mr=Yr.domEvent;_n(Ir,Mr),hr(!1)},id:Xn,tabIndex:-1,role:"listbox","aria-activedescendant":Yn,selectedKeys:[mr],"aria-label":ln!==void 0?ln:"expanded dropdown"},se.map(function(Nr){return O.createElement(At,{key:Nr.key,id:"".concat(Xn,"-").concat(Nr.key),role:"option","aria-controls":ke&&"".concat(ke,"-panel-").concat(Nr.key),disabled:Nr.disabled},Nr.tab)}));function dr(Nr){for(var Yr=se.filter(function(sa){return!sa.disabled}),Ir=Yr.findIndex(function(sa){return sa.key===mr})||0,Mr=Yr.length,Ar=0;ArDr?(kr=yn,Xn.current="x"):(kr=dr,Xn.current="y");var qr=Date.now();qr-mr.current>100&&(Or.current=!1),(Ve(-kr,-kr)||Or.current)&&(ln.preventDefault(),Or.current=!0),mr.current=qr}var Yn=Object(O.useRef)(null);Yn.current={onTouchStart:hr,onTouchMove:xr,onTouchEnd:ir,onWheel:Ur},O.useEffect(function(){function ln(Kn){Yn.current.onTouchStart(Kn)}function yn(Kn){Yn.current.onTouchMove(Kn)}function dr(Kn){Yn.current.onTouchEnd(Kn)}function kr(Kn){Yn.current.onWheel(Kn)}return document.addEventListener("touchmove",yn,{passive:!1}),document.addEventListener("touchend",dr,{passive:!1}),Re.current.addEventListener("touchstart",ln,{passive:!1}),Re.current.addEventListener("wheel",kr),function(){document.removeEventListener("touchmove",yn),document.removeEventListener("touchend",dr)}},[])}function va(){var Re=Object(O.useRef)(new Map);function Ve(ke){return Re.current.has(ke)||Re.current.set(ke,O.createRef()),Re.current.get(ke)}function tt(ke){Re.current.delete(ke)}return[Ve,tt]}function Qr(Re,Ve){var tt=O.useRef(Re),ke=O.useState({}),se=Object(G.a)(ke,2),xe=se[1];function de(Ie){var Be=typeof Ie=="function"?Ie(tt.current):Ie;Be!==tt.current&&Ve(Be,tt.current),tt.current=Be,xe({})}return[tt.current,de]}var fa=function(Ve){var tt=Ve.position,ke=Ve.prefixCls,se=Ve.extra;if(!se)return null;var xe,de=se;return tt==="right"&&(xe=de.right||!de.left&&de||null),tt==="left"&&(xe=de.left||null),xe?O.createElement("div",{className:"".concat(ke,"-extra-content")},xe):null};function $a(Re,Ve){var tt,ke=O.useContext(Rr),se=ke.prefixCls,xe=ke.tabs,de=Re.className,Ie=Re.style,Be=Re.id,ot=Re.animated,He=Re.activeKey,pt=Re.rtl,Pt=Re.extra,Vt=Re.editable,tn=Re.locale,_n=Re.tabPosition,Mn=Re.tabBarGutter,qn=Re.children,er=Re.onTabClick,hr=Re.onTabScroll,xr=Object(O.useRef)(),ir=Object(O.useRef)(),mr=Object(O.useRef)(),Or=Object(O.useRef)(),Xn=va(),Ur=Object(G.a)(Xn,2),Yn=Ur[0],ln=Ur[1],yn=_n==="top"||_n==="bottom",dr=Qr(0,function(Jr,Fr){yn&&hr&&hr({direction:Jr>Fr?"left":"right"})}),kr=Object(G.a)(dr,2),Kn=kr[0],Dr=kr[1],qr=Qr(0,function(Jr,Fr){!yn&&hr&&hr({direction:Jr>Fr?"top":"bottom"})}),Nr=Object(G.a)(qr,2),Yr=Nr[0],Ir=Nr[1],Mr=Object(O.useState)(0),Ar=Object(G.a)(Mr,2),rr=Ar[0],sa=Ar[1],Ka=Object(O.useState)(0),La=Object(G.a)(Ka,2),xa=La[0],wn=La[1],Zt=Object(O.useState)(0),Rn=Object(G.a)(Zt,2),wr=Rn[0],$n=Rn[1],ma=Object(O.useState)(0),li=Object(G.a)(ma,2),ea=li[0],Za=li[1],qa=Object(O.useState)(null),ta=Object(G.a)(qa,2),Zr=ta[0],wa=ta[1],Mi=Object(O.useState)(null),no=Object(G.a)(Mi,2),ui=no[0],wi=no[1],Si=Object(O.useState)(0),Ti=Object(G.a)(Si,2),ki=Ti[0],co=Ti[1],Do=Object(O.useState)(0),Gi=Object(G.a)(Do,2),Oi=Gi[0],Vi=Gi[1],yi=h(new Map),Di=Object(G.a)(yi,2),fo=Di[0],Xi=Di[1],Ri=l(xe,fo,rr),Ai="".concat(se,"-nav-operations-hidden"),bi=0,ja=0;yn?pt?(bi=0,ja=Math.max(0,rr-Zr)):(bi=Math.min(0,Zr-rr),ja=0):(bi=Math.min(0,ui-xa),ja=0);function hi(Jr){return Jrja?[ja,!1]:[Jr,!0]}var pi=Object(O.useRef)(),Ei=Object(O.useState)(),mi=Object(G.a)(Ei,2),Yi=mi[0],$i=mi[1];function Ji(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}aa(xr,function(Jr,Fr){var ca=!1;function Ba(Pi,di){Pi(function(Ui){var fi=hi(Ui+di),Sa=Object(G.a)(fi,2),Fi=Sa[0],Bi=Sa[1];return ca=Bi,Fi})}if(yn){if(Zr>=rr)return ca;Ba(Dr,Jr)}else{if(ui>=xa)return ca;Ba(Ir,Fr)}return Ii(),Ji(),ca}),Object(O.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ci(){var Jr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:He,Fr=Ri.get(Jr);if(!Fr)return;if(yn){var ca=Kn;pt?Fr.rightKn+Zr&&(ca=Fr.right+Fr.width-Zr):Fr.left<-Kn?ca=-Fr.left:Fr.left+Fr.width>-Kn+Zr&&(ca=-(Fr.left+Fr.width-Zr)),Ir(0),Dr(hi(ca)[0])}else{var Ba=Yr;Fr.top<-Yr?Ba=-Fr.top:Fr.top+Fr.height>-Yr+ui&&(Ba=-(Fr.top+Fr.height-ui)),Dr(0),Ir(hi(Ba)[0])}}var _i=E(Ri,{width:Zr,height:ui,left:Kn,top:Yr},{width:wr,height:ea},{width:ki,height:Oi},Object(z.a)(Object(z.a)({},Re),{},{tabs:xe})),ro=Object(G.a)(_i,2),Ro=ro[0],Ao=ro[1],ho=xe.map(function(Jr){var Fr=Jr.key;return O.createElement(r,{id:Be,prefixCls:se,key:Fr,rtl:pt,tab:Jr,closable:Jr.closable,editable:Vt,active:Fr===He,tabPosition:_n,tabBarGutter:Mn,renderWrapper:qn,removeAriaLabel:tn==null?void 0:tn.removeAriaLabel,ref:Yn(Fr),onClick:function(Ba){er(Fr,Ba)},onRemove:function(){ln(Fr)},onFocus:function(){ci(Fr),Ji(),pt||(xr.current.scrollLeft=0),xr.current.scrollTop=0}})}),ao=v(function(){var Jr,Fr,ca,Ba,Pi,di,Ui,fi,Sa,Fi=((Jr=xr.current)===null||Jr===void 0?void 0:Jr.offsetWidth)||0,Bi=((Fr=xr.current)===null||Fr===void 0?void 0:Fr.offsetHeight)||0,Wi=((ca=Or.current)===null||ca===void 0?void 0:ca.offsetWidth)||0,Ga=((Ba=Or.current)===null||Ba===void 0?void 0:Ba.offsetHeight)||0,$r=((Pi=mr.current)===null||Pi===void 0?void 0:Pi.offsetWidth)||0,br=((di=mr.current)===null||di===void 0?void 0:di.offsetHeight)||0;wa(Fi),wi(Bi),co(Wi),Vi(Ga);var kn=(((Ui=ir.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Wi,Qn=(((fi=ir.current)===null||fi===void 0?void 0:fi.offsetHeight)||0)-Ga;sa(kn),wn(Qn);var jr=(Sa=mr.current)===null||Sa===void 0?void 0:Sa.className.includes(Ai);$n(kn-(jr?0:$r)),Za(Qn-(jr?0:br)),Xi(function(){var la=new Map;return xe.forEach(function(vi){var oi=vi.key,ka=Yn(oi).current;ka&&la.set(oi,{width:ka.offsetWidth,height:ka.offsetHeight,left:ka.offsetLeft,top:ka.offsetTop})}),la})}),po=xe.slice(0,Ro),za=xe.slice(Ao+1),ba=[].concat(Object(R.a)(po),Object(R.a)(za)),Ma=Object(O.useState)(),Ea=Object(G.a)(Ma,2),Ni=Ea[0],mo=Ea[1],ei=Ri.get(He),io=Object(O.useRef)();function oo(){p.a.cancel(io.current)}Object(O.useEffect)(function(){var Jr={};return ei&&(yn?(pt?Jr.right=ei.right:Jr.left=ei.left,Jr.width=ei.width):(Jr.top=ei.top,Jr.height=ei.height)),oo(),io.current=p()(function(){mo(Jr)}),oo},[ei,yn,pt]),Object(O.useEffect)(function(){ci()},[He,ei,Ri,yn]),Object(O.useEffect)(function(){ao()},[pt,Mn,He,xe.map(function(Jr){return Jr.key}).join("_")]);var so=!!ba.length,xi="".concat(se,"-nav-wrap"),Qi,ji,vo,Zi;return yn?pt?(ji=Kn>0,Qi=Kn+Zr */Ce.read=function(M,re,G,I,z){var O,w,W=z*8-I-1,y=(1<>1,R=-7,d=G?z-1:0,p=G?-1:1,_=M[re+d];for(d+=p,O=_&(1<<-R)-1,_>>=-R,R+=W;R>0;O=O*256+M[re+d],d+=p,R-=8);for(w=O&(1<<-R)-1,O>>=-R,R+=I;R>0;w=w*256+M[re+d],d+=p,R-=8);if(O===0)O=1-L;else{if(O===y)return w?NaN:(_?-1:1)*Infinity;w=w+Math.pow(2,I),O=O-L}return(_?-1:1)*w*Math.pow(2,O-I)},Ce.write=function(M,re,G,I,z,O){var w,W,y,L=O*8-z-1,R=(1<>1,p=z===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=I?0:O-1,v=I?1:-1,h=re<0||re===0&&1/re<0?1:0;for(re=Math.abs(re),isNaN(re)||re===Infinity?(W=isNaN(re)?1:0,w=R):(w=Math.floor(Math.log(re)/Math.LN2),re*(y=Math.pow(2,-w))<1&&(w--,y*=2),w+d>=1?re+=p/y:re+=p*Math.pow(2,1-d),re*y>=2&&(w++,y/=2),w+d>=R?(W=0,w=R):w+d>=1?(W=(re*y-1)*Math.pow(2,z),w=w+d):(W=re*Math.pow(2,d-1)*Math.pow(2,z),w=0));z>=8;M[G+_]=W&255,_+=v,W/=256,z-=8);for(w=w<0;M[G+_]=w&255,_+=v,w/=256,L-=8);M[G+_-v]|=h*128}},lZu9:function(nn,Ce,M){(function(re){re(M("VrN/"),M("1eCo"),M("8EBN"))})(function(re){"use strict";re.defineMode("markdown",function(G,I){var z=re.getMode(G,"text/html"),O=z.name=="null";function w(U){if(re.findModeByName){var B=re.findModeByName(U);B&&(U=B.mime||B.mimes[0])}var q=re.getMode(G,U);return q.name=="null"?null:q}I.highlightFormatting===void 0&&(I.highlightFormatting=!1),I.maxBlockquoteDepth===void 0&&(I.maxBlockquoteDepth=0),I.taskLists===void 0&&(I.taskLists=!1),I.strikethrough===void 0&&(I.strikethrough=!1),I.emoji===void 0&&(I.emoji=!1),I.fencedCodeBlockHighlighting===void 0&&(I.fencedCodeBlockHighlighting=!0),I.fencedCodeBlockDefaultMode===void 0&&(I.fencedCodeBlockDefaultMode="text/plain"),I.xml===void 0&&(I.xml=!0),I.tokenTypeOverrides===void 0&&(I.tokenTypeOverrides={});var W={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var y in W)W.hasOwnProperty(y)&&I.tokenTypeOverrides[y]&&(W[y]=I.tokenTypeOverrides[y]);var L=/^([*\-_])(?:\s*\1){2,}\s*$/,R=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,d=/^\[(x| )\](?=\s)/i,p=I.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_=/^ {0,3}(?:\={1,}|-{2,})\s*$/,v=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\s*\[[^\]]+?\]:.*$/,n=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function o(U,B,q){return B.f=B.inline=q,q(U,B)}function l(U,B,q){return B.f=B.block=q,q(U,B)}function x(U){return!U||!/\S/.test(U.string)}function E(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==P){var B=O;if(!B){var q=re.innerMode(z,U.htmlState);B=q.mode.name=="xml"&&q.state.tagStart===null&&!q.state.context&&q.state.tokenize.isInText}B&&(U.f=s,U.block=b,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function b(U,B){var q=U.column()===B.indentation,ee=x(B.prevLine.stream),he=B.indentedCode,be=B.prevLine.hr,Ye=B.list!==!1,Pe=(B.listStack[B.listStack.length-1]||0)+3;B.indentedCode=!1;var je=B.indentation;if(B.indentationDiff===null&&(B.indentationDiff=B.indentation,Ye)){for(B.list=null;je=4&&(he||B.prevLine.fencedCodeEnd||B.prevLine.header||ee))return U.skipToEnd(),B.indentedCode=!0,W.code;if(U.eatSpace())return null;if(q&&B.indentation<=Pe&&(Ae=U.match(p))&&Ae[1].length<=6)return B.quote=0,B.header=Ae[1].length,B.thisLine.header=!0,I.highlightFormatting&&(B.formatting="header"),B.f=B.inline,m(B);if(B.indentation<=Pe&&U.eat(">"))return B.quote=q?1:B.quote+1,I.highlightFormatting&&(B.formatting="quote"),U.eatSpace(),m(B);if(!Ze&&!B.setext&&q&&B.indentation<=Pe&&(Ae=U.match(R))){var me=Ae[1]?"ol":"ul";return B.indentation=je+U.current().length,B.list=!0,B.quote=0,B.listStack.push(B.indentation),B.em=!1,B.strong=!1,B.code=!1,B.strikethrough=!1,I.taskLists&&U.match(d,!1)&&(B.taskList=!0),B.f=B.inline,I.highlightFormatting&&(B.formatting=["list","list-"+me]),m(B)}else{if(q&&B.indentation<=Pe&&(Ae=U.match(h,!0)))return B.quote=0,B.fencedEndRE=new RegExp(Ae[1]+"+ *$"),B.localMode=I.fencedCodeBlockHighlighting&&w(Ae[2]||I.fencedCodeBlockDefaultMode),B.localMode&&(B.localState=re.startState(B.localMode)),B.f=B.block=T,I.highlightFormatting&&(B.formatting="code-block"),B.code=-1,m(B);if(B.setext||(!Qe||!Ye)&&!B.quote&&B.list===!1&&!B.code&&!Ze&&!c.test(U.string)&&(Ae=U.lookAhead(1))&&(Ae=Ae.match(_)))return B.setext?(B.header=B.setext,B.setext=0,U.skipToEnd(),I.highlightFormatting&&(B.formatting="header")):(B.header=Ae[0].charAt(0)=="="?1:2,B.setext=B.header),B.thisLine.header=!0,B.f=B.inline,m(B);if(Ze)return U.skipToEnd(),B.hr=!0,B.thisLine.hr=!0,W.hr;if(U.peek()==="[")return o(U,B,N)}return o(U,B,B.inline)}function P(U,B){var q=z.token(U,B.htmlState);if(!O){var ee=re.innerMode(z,B.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||B.md_inside&&U.current().indexOf(">")>-1)&&(B.f=s,B.block=b,B.htmlState=null)}return q}function T(U,B){var q=B.listStack[B.listStack.length-1]||0,ee=B.indentation=U.quote?B.push(W.formatting+"-"+U.formatting[q]+"-"+U.quote):B.push("error"))}if(U.taskOpen)return B.push("meta"),B.length?B.join(" "):null;if(U.taskClosed)return B.push("property"),B.length?B.join(" "):null;if(U.linkHref?B.push(W.linkHref,"url"):(U.strong&&B.push(W.strong),U.em&&B.push(W.em),U.strikethrough&&B.push(W.strikethrough),U.emoji&&B.push(W.emoji),U.linkText&&B.push(W.linkText),U.code&&B.push(W.code),U.image&&B.push(W.image),U.imageAltText&&B.push(W.imageAltText,"link"),U.imageMarker&&B.push(W.imageMarker)),U.header&&B.push(W.header,W.header+"-"+U.header),U.quote&&(B.push(W.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=U.quote?B.push(W.quote+"-"+U.quote):B.push(W.quote+"-"+I.maxBlockquoteDepth)),U.list!==!1){var ee=(U.listStack.length-1)%3;ee?ee===1?B.push(W.list2):B.push(W.list3):B.push(W.list1)}return U.trailingSpaceNewLine?B.push("trailing-space-new-line"):U.trailingSpace&&B.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),B.length?B.join(" "):null}function g(U,B){return U.match(v,!0)?m(B):void 0}function s(U,B){var q=B.text(U,B);if(typeof q!="undefined")return q;if(B.list)return B.list=null,m(B);if(B.taskList){var ee=U.match(d,!0)[1]===" ";return ee?B.taskOpen=!0:B.taskClosed=!0,I.highlightFormatting&&(B.formatting="task"),B.taskList=!1,m(B)}if(B.taskOpen=!1,B.taskClosed=!1,B.header&&U.match(/^#+$/,!0))return I.highlightFormatting&&(B.formatting="header"),m(B);var he=U.next();if(B.linkTitle){B.linkTitle=!1;var be=he;he==="("&&(be=")"),be=(be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+be+"\\\\]+|\\\\\\\\|\\\\.)"+be;if(U.match(new RegExp(Ye),!0))return W.linkHref}if(he==="`"){var Pe=B.formatting;I.highlightFormatting&&(B.formatting="code"),U.eatWhile("`");var je=U.current().length;if(B.code==0&&(!B.quote||je==1))return B.code=je,m(B);if(je==B.code){var Qe=m(B);return B.code=0,Qe}else return B.formatting=Pe,m(B)}else if(B.code)return m(B);if(he==="\\"&&(U.next(),I.highlightFormatting)){var Ze=m(B),Ae=W.formatting+"-escape";return Ze?Ze+" "+Ae:Ae}if(he==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return B.imageMarker=!0,B.image=!0,I.highlightFormatting&&(B.formatting="image"),m(B);if(he==="["&&B.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return B.imageMarker=!1,B.imageAltText=!0,I.highlightFormatting&&(B.formatting="image"),m(B);if(he==="]"&&B.imageAltText){I.highlightFormatting&&(B.formatting="image");var Ze=m(B);return B.imageAltText=!1,B.image=!1,B.inline=B.f=D,Ze}if(he==="["&&!B.image)return B.linkText&&U.match(/^.*?\]/)||(B.linkText=!0,I.highlightFormatting&&(B.formatting="link")),m(B);if(he==="]"&&B.linkText){I.highlightFormatting&&(B.formatting="link");var Ze=m(B);return B.linkText=!1,B.inline=B.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?D:s,Ze}if(he==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=u,I.highlightFormatting&&(B.formatting="link");var Ze=m(B);return Ze?Ze+=" ":Ze="",Ze+W.linkInline}if(he==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=u,I.highlightFormatting&&(B.formatting="link");var Ze=m(B);return Ze?Ze+=" ":Ze="",Ze+W.linkEmail}if(I.xml&&he==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=U.string.indexOf(">",U.pos);if(me!=-1){var ie=U.string.substring(U.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ie)&&(B.md_inside=!0)}return U.backUp(1),B.htmlState=re.startState(z),l(U,B,P)}if(I.xml&&he==="<"&&U.match(/^\/\w*?>/))return B.md_inside=!1,"tag";if(he==="*"||he==="_"){for(var Oe=1,ve=U.pos==1?" ":U.string.charAt(U.pos-2);Oe<3&&U.eat(he);)Oe++;var Ge=U.peek()||" ",pe=!/\s/.test(Ge)&&(!n.test(Ge)||/\s/.test(ve)||n.test(ve)),J=!/\s/.test(ve)&&(!n.test(ve)||/\s/.test(Ge)||n.test(Ge)),V=null,X=null;if(Oe%2&&(!B.em&&pe&&(he==="*"||!J||n.test(ve))?V=!0:B.em==he&&J&&(he==="*"||!pe||n.test(Ge))&&(V=!1)),Oe>1&&(!B.strong&&pe&&(he==="*"||!J||n.test(ve))?X=!0:B.strong==he&&J&&(he==="*"||!pe||n.test(Ge))&&(X=!1)),X!=null||V!=null){I.highlightFormatting&&(B.formatting=V==null?"strong":X==null?"em":"strong em"),V===!0&&(B.em=he),X===!0&&(B.strong=he);var Qe=m(B);return V===!1&&(B.em=!1),X===!1&&(B.strong=!1),Qe}}else if(he===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return m(B);U.backUp(1)}if(I.strikethrough){if(he==="~"&&U.eatWhile(he)){if(B.strikethrough){I.highlightFormatting&&(B.formatting="strikethrough");var Qe=m(B);return B.strikethrough=!1,Qe}else if(U.match(/^[^\s]/,!1))return B.strikethrough=!0,I.highlightFormatting&&(B.formatting="strikethrough"),m(B)}else if(he===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return m(B);U.backUp(2)}}if(I.emoji&&he===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){B.emoji=!0,I.highlightFormatting&&(B.formatting="emoji");var ue=m(B);return B.emoji=!1,ue}return he===" "&&(U.match(/^ +$/,!1)?B.trailingSpace++:B.trailingSpace&&(B.trailingSpaceNewLine=!0)),m(B)}function u(U,B){var q=U.next();if(q===">"){B.f=B.inline=s,I.highlightFormatting&&(B.formatting="link");var ee=m(B);return ee?ee+=" ":ee="",ee+W.linkInline}return U.match(/^[^>]+/,!0),W.linkInline}function D(U,B){if(U.eatSpace())return null;var q=U.next();return q==="("||q==="["?(B.f=B.inline=A(q==="("?")":"]"),I.highlightFormatting&&(B.formatting="link-string"),B.linkHref=!0,m(B)):"error"}var S={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function A(U){return function(B,q){var ee=B.next();if(ee===U){q.f=q.inline=s,I.highlightFormatting&&(q.formatting="link-string");var he=m(q);return q.linkHref=!1,he}return B.match(S[U]),q.linkHref=!0,m(q)}}function N(U,B){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(B.f=j,U.next(),I.highlightFormatting&&(B.formatting="link"),B.linkText=!0,m(B)):o(U,B,s)}function j(U,B){if(U.match(/^\]:/,!0)){B.f=B.inline=K,I.highlightFormatting&&(B.formatting="link");var q=m(B);return B.linkText=!1,q}return U.match(/^([^\]\\]|\\.)+/,!0),W.linkText}function K(U,B){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?B.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),B.f=B.inline=s,W.linkHref+" url")}var H={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:s,text:g,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&re.copyState(z,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?re.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,B){if(B.formatting=!1,U!=B.thisLine.stream){if(B.header=0,B.hr=!1,U.match(/^\s*$/,!0))return E(B),null;if(B.prevLine=B.thisLine,B.thisLine={stream:U},B.taskList=!1,B.trailingSpace=0,B.trailingSpaceNewLine=!1,!B.localState&&(B.f=B.block,B.f!=P)){var q=U.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(B.indentation=q,B.indentationDiff=null,q>0)return null}}return B.f(U,B)},innerMode:function(U){return U.block==P?{state:U.htmlState,mode:z}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:H}},indent:function(U,B,q){return U.block==P&&z.indent?z.indent(U.htmlState,B,q):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,B,q):re.Pass},blankLine:E,getType:m,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},mgmH:function(nn,Ce,M){"use strict";M.d(Ce,"d",function(){return _}),M.d(Ce,"b",function(){return v}),M.d(Ce,"e",function(){return h}),M.d(Ce,"c",function(){return c}),M.d(Ce,"n",function(){return n}),M.d(Ce,"g",function(){return r}),M.d(Ce,"h",function(){return o}),M.d(Ce,"j",function(){return x}),M.d(Ce,"a",function(){return E}),M.d(Ce,"l",function(){return b}),M.d(Ce,"f",function(){return P}),M.d(Ce,"k",function(){return T}),M.d(Ce,"m",function(){return m}),M.d(Ce,"i",function(){return g}),M.d(Ce,"o",function(){return s}),M.d(Ce,"r",function(){return u}),M.d(Ce,"q",function(){return D}),M.d(Ce,"p",function(){return S});var re=M("miYZ"),G=M("tsqr"),I=M("k1fw"),z=M("9og8"),O=M("WmNS"),w=M.n(O),W=M("oUNq"),y=M("9kvl"),L=M("1vsH"),R=M("m3rI"),d=function(){Object(y.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},p=function(){Object(y.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},_=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return d(),U.next=3,Object(W.s)(Object(I.a)({},j));case 3:if(K=U.sent,!(K.status===0)){U.next=7;break}return U.next=7,Object(L.u)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/export_couser_info.json"),query:j}));case 7:p();case 8:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),v=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.q)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_member_act_score")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),h=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.t)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_score")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_score")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),c=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.r)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),n=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.y)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),r=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.u)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_homework")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),o=function(){var A=Object(z.a)(w.a.mark(function N(j,K){var H;return w.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,Object(W.w)(Object(I.a)({},j));case 2:H=B.sent,H.status===0?(G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/").concat(K))):H.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/").concat(K)));case 4:case"end":return B.stop()}},N)}));return function(j,K){return A.apply(this,arguments)}}(),l=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return d(),U.next=3,Object(W.v)(Object(I.a)({},j));case 3:if(K=U.sent,!(K.status===0)){U.next=7;break}return U.next=7,Object(L.u)("",Object(L.U)({url:R.a.API_SERVER+"/api/homework_commons/".concat(j.categoryId,"/works_list.zip"),query:j}));case 7:p();case 8:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),x=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return d(),U.next=3,Object(W.z)(Object(I.a)({},j));case 3:if(K=U.sent,!(K.status===0)){U.next=7;break}return U.next=7,Object(L.u)("",Object(L.U)({url:R.a.API_SERVER+"/api/polls/".concat(j.categoryId,"/commit_result.xlsx"),query:j}));case 7:p();case 8:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),E=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/attendances/export_xlsx_data.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),b=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/video_study_statics.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),P=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/export_course_students_info.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),T=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/item_banks/export.xlsx",query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),m=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),g=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.x)(Object(I.a)({},j));case 2:K=U.sent,K.status===0?(G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/exercise_score"))):K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/exercise_score")));case 4:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),s=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),H.next=3,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/export_records/".concat(j.id,".xlsx"),query:j}));case 3:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),u=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),D=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/ec_years/".concat(j==null?void 0:j.ec_year_id,"/ec_training_objectives.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),S=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/ec_years/".concat(j==null?void 0:j.ec_year_id,"/ec_graduation_requirements.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}()},n6Qo:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return y});var re=M("q1tI"),G=M("biw7"),I=M("fyJ8");function z(L){var R=L.className,d=L.index,p=L.children,_=L.colSpan,v=L.rowSpan,h=re.useContext(G.a),c=h.prefixCls,n=h.fixedInfoList,r=n[d];return re.createElement(I.a,Object.assign({className:R,index:d,component:"td",prefixCls:c,record:null,dataIndex:null,render:function(){return{children:p,props:{colSpan:_,rowSpan:v}}}},r))}function O(L){return re.createElement("tr",Object.assign({},L))}function w(L){var R=L.children,d=re.useContext(G.a),p=d.prefixCls;return re.createElement("tfoot",{className:"".concat(p,"-summary")},R)}var W=Ce.b=w,y={Cell:z,Row:O}},nnTU:function(nn,Ce,M){"use strict";M.d(Ce,"b",function(){return y}),M.d(Ce,"a",function(){return L});var re=M("pmY6"),G=M("746U"),I=M("Cg/j"),z=M("MI8n"),O=M("24hK"),w=M("QDVR"),W=function(){for(var R=0,d=0,p=arguments.length;d2&&arguments[2]!==void 0?arguments[2]:"0",ze=String(te);ze.length=12,mn%=12);var Dn=y.useMemo(function(){if(!it)return[!1,!1];var Ln=[!0,!0];return vn.forEach(function(Bn){var Vn=Bn.disabled,Xr=Bn.value;if(Vn)return;Xr>=12?Ln[1]=!1:Ln[0]=!1}),Ln},[it,vn]),ur=Object(W.a)(Dn,2),nr=ur[0],qt=ur[1],Sr=y.useMemo(function(){return it?vn.filter(dn?function(Ln){return Ln.value>=12}:function(Ln){return Ln.value<12}).map(function(Ln){var Bn=Ln.value%12,Vn=Bn===0?"12":ee(Bn,2);return Object(w.a)(Object(w.a)({},Ln),{},{label:Vn,value:Bn})}):vn},[it,vn]),zn=me(0,59,Et,dt&&dt(mn)),zr=me(0,59,Nt,gn&&gn(mn,zt));ze.current={onUpDown:function(Bn){var Vn=Ut[ut];if(Vn)for(var Xr=Vn.units.findIndex(function(Qr){return Qr.value===Vn.value}),ra=Vn.units.length,aa=1;aa1&&(bt=De.addDate(bt,-7)),bt}function qe(te,De,Xe){var ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(De){case"year":return Xe.addYear(te,ze*10);case"quarter":case"month":return Xe.addYear(te,ze);default:return Xe.addMonth(te,ze)}}var Ue=y.createContext({}),vt=Ue;function Mt(te){var De=te.cellPrefixCls,Xe=te.generateConfig,ze=te.rangedValue,ut=te.hoverRangedValue,et=te.isInView,bt=te.isSameCell,ht=te.offsetCell,Tt=te.today,it=te.value;function Yt(ct){var ye,Et=ht(ct,-1),nt=ht(ct,1),Nt=Pe(ze,0),Dt=Pe(ze,1),dt=Pe(ut,0),gn=Pe(ut,1),In=Qt(Xe,dt,gn,ct);function sn(zt){return bt(Nt,zt)}function Ut(zt){return bt(Dt,zt)}var an=bt(dt,ct),Nn=bt(gn,ct),dn=(In||Nn)&&(!et(Et)||Ut(Et)),mn=(In||an)&&(!et(nt)||sn(nt));return ye={},Object(O.a)(ye,"".concat(De,"-in-view"),et(ct)),Object(O.a)(ye,"".concat(De,"-in-range"),Qt(Xe,Nt,Dt,ct)),Object(O.a)(ye,"".concat(De,"-range-start"),sn(ct)),Object(O.a)(ye,"".concat(De,"-range-end"),Ut(ct)),Object(O.a)(ye,"".concat(De,"-range-start-single"),sn(ct)&&!Dt),Object(O.a)(ye,"".concat(De,"-range-end-single"),Ut(ct)&&!Nt),Object(O.a)(ye,"".concat(De,"-range-start-near-hover"),sn(ct)&&(bt(Et,dt)||Qt(Xe,dt,gn,Et))),Object(O.a)(ye,"".concat(De,"-range-end-near-hover"),Ut(ct)&&(bt(nt,gn)||Qt(Xe,dt,gn,nt))),Object(O.a)(ye,"".concat(De,"-range-hover"),In),Object(O.a)(ye,"".concat(De,"-range-hover-start"),an),Object(O.a)(ye,"".concat(De,"-range-hover-end"),Nn),Object(O.a)(ye,"".concat(De,"-range-hover-edge-start"),dn),Object(O.a)(ye,"".concat(De,"-range-hover-edge-end"),mn),Object(O.a)(ye,"".concat(De,"-range-hover-edge-start-near-range"),dn&&bt(Et,Dt)),Object(O.a)(ye,"".concat(De,"-range-hover-edge-end-near-range"),mn&&bt(nt,Nt)),Object(O.a)(ye,"".concat(De,"-today"),bt(Tt,ct)),Object(O.a)(ye,"".concat(De,"-selected"),bt(it,ct)),ye}return Yt}function st(te){for(var De=te.prefixCls,Xe=te.disabledDate,ze=te.onSelect,ut=te.rowNum,et=te.colNum,bt=te.prefixColumn,ht=te.rowClassName,Tt=te.baseDate,it=te.getCellClassName,Yt=te.getCellText,ct=te.getCellNode,ye=te.getCellDate,Et=te.titleCell,nt=te.headerCells,Nt=y.useContext(c),Dt=Nt.onDateMouseEnter,dt=Nt.onDateMouseLeave,gn="".concat(De,"-cell"),In=[],sn=0;sn2&&arguments[2]!==void 0?arguments[2]:!1;(Ie===Nt||dr)&&(Pa(ln),Nn&&Nn(ln),ra&&ra(ln,yn),dn&&!kt(ht,ln,pa)&&dn(ln))},_n=function(ln){return ya.current&&ya.current.onKeyDown?([v.a.LEFT,v.a.RIGHT,v.a.UP,v.a.DOWN,v.a.PAGE_UP,v.a.PAGE_DOWN,v.a.ENTER].includes(ln.which)&&ln.preventDefault(),ya.current.onKeyDown(ln)):(Object(d.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Mn=function(ln){ya.current&&ya.current.onBlur&&ya.current.onBlur(ln)};Vn&&$a!=="right"&&(Vn.current={onKeyDown:_n,onClose:function(){ya.current&&ya.current.onClose&&ya.current.onClose()}}),y.useEffect(function(){Tt&&!Fa.current&&tt(Tt)},[Tt]),y.useEffect(function(){Fa.current=!1},[]);var qn,er=Object(w.a)(Object(w.a)({},te),{},{operationRef:ya,prefixCls:ze,viewDate:Ve,value:pa,onViewDateChange:ke,sourceMode:pt,onPanelChange:Vt,disabledDate:Ie!=="decade"?ye:void 0});delete er.onChange,delete er.onSelect;switch(Ie){case"decade":qn=y.createElement(C,Object.assign({},er,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}}));break;case"year":qn=y.createElement(Kr,Object.assign({},er,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}}));break;case"month":qn=y.createElement(yt,Object.assign({},er,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}}));break;case"quarter":qn=y.createElement(xn,Object.assign({},er,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}}));break;case"week":qn=y.createElement(pn,Object.assign({},er,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}}));break;case"time":delete er.showTime,qn=y.createElement(pe,Object.assign({},er,Object(_.a)(In)==="object"?In:null,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}}));break;default:In?qn=y.createElement(jt,Object.assign({},er,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}})):qn=y.createElement(_e,Object.assign({},er,{onSelect:function(ln,yn){ke(ln),tn(ln,yn)}}))}var hr,xr,ir=function(){var ln=ht.getNow(),yn=Ze(ht.getHour(ln),ht.getMinute(ln),ht.getSecond(ln),Gr?ur:1,Rr?qt:1,Ln?zn:1),dr=Qe(ht,ln,yn[0],yn[1],yn[2]);tn(dr,"submit")};aa||(hr=k(ze,Ie,Ut),xr=$({prefixCls:ze,components:Ft,needConfirmButton:zr,okDisabled:!pa||ye&&ye(pa),locale:bt,showNow:gn,onNow:zr&&ir,onOk:function(){pa&&(tn(pa,"submit",!0),At&&At(pa))}}));var mr;if(sn&&Ie==="date"&&Nt==="date"&&!In){var Or=ht.getNow(),Xn="".concat(ze,"-today-btn"),Ur=ye&&ye(Or);mr=y.createElement("a",{className:R()(Xn,Ur&&"".concat(Xn,"-disabled")),"aria-disabled":Ur,onClick:function(){Ur||tn(Or,"mouse",!0)}},bt.today)}return y.createElement(c.Provider,{value:Object(w.a)(Object(w.a)({},Bn),{},{hideHeader:"hideHeader"in te?an:Bn.hideHeader,hidePrevBtn:fa&&$a==="right",hideNextBtn:fa&&$a==="left"})},y.createElement("div",{tabIndex:dt,className:R()("".concat(ze,"-panel"),ut,(De={},Object(O.a)(De,"".concat(ze,"-panel-has-range"),Aa&&Aa[0]&&Aa[1]),Object(O.a)(De,"".concat(ze,"-panel-has-range-hover"),ga&&ga[0]&&ga[1]),Object(O.a)(De,"".concat(ze,"-panel-rtl"),vn==="rtl"),De)),style:et,onKeyDown:_n,onBlur:Mn,onMouseDown:zt,ref:Xr},qn,hr||xr||mr?y.createElement("div",{className:"".concat(ze,"-footer")},hr,xr,mr):null))}var Y=ne,we=M("uciX"),mt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function It(te){var De,Xe=te.prefixCls,ze=te.popupElement,ut=te.popupStyle,et=te.visible,bt=te.dropdownClassName,ht=te.dropdownAlign,Tt=te.transitionName,it=te.getPopupContainer,Yt=te.children,ct=te.range,ye=te.popupPlacement,Et=te.direction,nt="".concat(Xe,"-dropdown"),Nt=function(){return ye!==void 0?ye:Et==="rtl"?"bottomRight":"bottomLeft"};return y.createElement(we.a,{showAction:[],hideAction:[],popupPlacement:Nt(),builtinPlacements:mt,prefixCls:nt,popupTransitionName:Tt,popup:ze,popupAlign:ht,popupVisible:et,popupClassName:R()(bt,(De={},Object(O.a)(De,"".concat(nt,"-range"),ct),Object(O.a)(De,"".concat(nt,"-rtl"),Et==="rtl"),De)),popupStyle:ut,getPopupContainer:it},Yt)}var un=It;function Ot(te){var De=te.open,Xe=te.value,ze=te.isClickOutside,ut=te.triggerOpen,et=te.forwardKeyDown,bt=te.blurToCancel,ht=te.onSubmit,Tt=te.onCancel,it=te.onFocus,Yt=te.onBlur,ct=Object(y.useState)(!1),ye=Object(W.a)(ct,2),Et=ye[0],nt=ye[1],Nt=Object(y.useState)(!1),Dt=Object(W.a)(Nt,2),dt=Dt[0],gn=Dt[1],In=Object(y.useRef)(!1),sn=Object(y.useRef)(!1),Ut={onMouseDown:function(){nt(!0),ut(!0)},onKeyDown:function(Nn){switch(Nn.which){case v.a.ENTER:{De?ht()!==!1&&nt(!0):ut(!0),Nn.preventDefault();return}case v.a.TAB:{Et&&De&&!Nn.shiftKey?(nt(!1),Nn.preventDefault()):!Et&&De&&(!et(Nn)&&Nn.shiftKey&&(nt(!0),Nn.preventDefault()));return}case v.a.ESC:{nt(!0),Tt();return}}!De&&![v.a.SHIFT].includes(Nn.which)?ut(!0):Et||et(Nn)},onFocus:function(Nn){nt(!0),gn(!0),it&&it(Nn)},onBlur:function(Nn){if(In.current||!ze(document.activeElement)){In.current=!1;return}bt?setTimeout(function(){ze(document.activeElement)&&Tt()},0):De&&(ut(!1),sn.current&&ht()),gn(!1),Yt&&Yt(Nn)}};return Object(y.useEffect)(function(){sn.current=!1},[De]),Object(y.useEffect)(function(){sn.current=!0},[Xe]),Object(y.useEffect)(function(){return S(function(an){var Nn=an.target;De&&(ze(Nn)?dt||ut(!1):(In.current=!0,requestAnimationFrame(function(){In.current=!1})))})}),[Ut,{focused:dt,typing:Et}]}function bn(te){var De=te.valueTexts,Xe=te.onTextChange,ze=y.useState(""),ut=Object(W.a)(ze,2),et=ut[0],bt=ut[1],ht=y.useRef([]);ht.current=De;function Tt(Yt){bt(Yt),Xe(Yt)}function it(){bt(ht.current[0])}return y.useEffect(function(){De.every(function(Yt){return Yt!==et})&&it()},[De.join("||")]),[et,Tt,it]}var En=M("Gytx"),On=M.n(En);function pr(te,De){var Xe=De.formatList,ze=De.generateConfig,ut=De.locale;return Object(E.a)(function(){if(!te)return[[""],""];for(var et="",bt=[],ht=0;ht1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(it.current),dt){Tt(Dt);return}it.current=requestAnimationFrame(function(){Tt(Dt)})}var ct=pr(ht,{formatList:Xe,generateConfig:ze,locale:ut}),ye=Object(W.a)(ct,2),Et=ye[1];function nt(Dt){Yt(Dt)}function Nt(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Yt(null,Dt)}return Object(y.useEffect)(function(){Nt(!0)},[te]),Object(y.useEffect)(function(){return function(){return cancelAnimationFrame(it.current)}},[]),[Et,nt,Nt]}function Un(te){var De,Xe=te.prefixCls,ze=Xe===void 0?"rc-picker":Xe,ut=te.id,et=te.tabIndex,bt=te.style,ht=te.className,Tt=te.dropdownClassName,it=te.dropdownAlign,Yt=te.popupStyle,ct=te.transitionName,ye=te.generateConfig,Et=te.locale,nt=te.inputReadOnly,Nt=te.allowClear,Dt=te.autoFocus,dt=te.showTime,gn=te.picker,In=gn===void 0?"date":gn,sn=te.format,Ut=te.use12Hours,an=te.value,Nn=te.defaultValue,dn=te.open,mn=te.defaultOpen,zt=te.defaultOpenValue,Gt=te.suffixIcon,At=te.clearIcon,Ft=te.disabled,vn=te.disabledDate,Dn=te.placeholder,ur=te.getPopupContainer,nr=te.pickerRef,qt=te.panelRender,Sr=te.onChange,zn=te.onOpenChange,zr=te.onFocus,Gr=te.onBlur,Rr=te.onMouseDown,Ln=te.onMouseUp,Bn=te.onMouseEnter,Vn=te.onMouseLeave,Xr=te.onContextMenu,ra=te.onClick,aa=te.direction,va=te.autoComplete,Qr=va===void 0?"off":va,fa=y.useRef(null),$a=In==="date"&&!!dt||In==="time",Aa=be(g(sn,In,dt,Ut)),ga=y.useRef(null),ya=y.useRef(null),Fa=Object(p.a)(null,{value:an,defaultValue:Nn}),ii=Object(W.a)(Fa,2),ha=ii[0],pa=ii[1],Pa=y.useState(ha),Oa=Object(W.a)(Pa,2),Re=Oa[0],Ve=Oa[1],tt=y.useRef(null),ke=Object(p.a)(!1,{value:dn,defaultValue:mn,postState:function(rr){return Ft?!1:rr},onChange:function(rr){zn&&zn(rr),!rr&&tt.current&&tt.current.onClose&&tt.current.onClose()}}),se=Object(W.a)(ke,2),xe=se[0],de=se[1],Ie=pr(Re,{formatList:Aa,generateConfig:ye,locale:Et}),Be=Object(W.a)(Ie,2),ot=Be[0],He=Be[1],pt=bn({valueTexts:ot,onTextChange:function(rr){var sa=ye.locale.parse(Et.locale,rr,Aa);sa&&(!vn||!vn(sa))&&Ve(sa)}}),Pt=Object(W.a)(pt,3),Vt=Pt[0],tn=Pt[1],_n=Pt[2],Mn=function(rr){Ve(rr),pa(rr),Sr&&!kt(ye,ha,rr)&&Sr(rr,rr?ye.locale.format(Et.locale,rr,Aa[0]):"")},qn=function(rr){if(Ft&&rr)return;de(rr)},er=function(rr){return xe&&tt.current&&tt.current.onKeyDown?tt.current.onKeyDown(rr):(Object(d.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},hr=function(){Ln&&Ln.apply(void 0,arguments),fa.current&&(fa.current.focus(),qn(!0))},xr=Ot({blurToCancel:$a,open:xe,value:Vt,triggerOpen:qn,forwardKeyDown:er,isClickOutside:function(rr){return!U([ga.current,ya.current],rr)},onSubmit:function(){return vn&&vn(Re)?!1:(Mn(Re),qn(!1),_n(),!0)},onCancel:function(){qn(!1),Ve(ha),_n()},onFocus:zr,onBlur:Gr}),ir=Object(W.a)(xr,2),mr=ir[0],Or=ir[1],Xn=Or.focused,Ur=Or.typing;y.useEffect(function(){xe||(Ve(ha),!ot.length||ot[0]===""?tn(""):He!==Vt&&_n())},[xe,ot]),y.useEffect(function(){xe||_n()},[In]),y.useEffect(function(){Ve(ha)},[ha]),nr&&(nr.current={focus:function(){fa.current&&fa.current.focus()},blur:function(){fa.current&&fa.current.blur()}});var Yn=Object(w.a)(Object(w.a)({},te),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),ln=y.createElement(Y,Object.assign({},Yn,{generateConfig:ye,className:R()(Object(O.a)({},"".concat(ze,"-panel-focused"),!Ur)),value:Re,locale:Et,tabIndex:-1,onChange:Ve,direction:aa}));qt&&(ln=qt(ln));var yn=y.createElement("div",{className:"".concat(ze,"-panel-container"),onMouseDown:function(rr){rr.preventDefault()}},ln),dr;Gt&&(dr=y.createElement("span",{className:"".concat(ze,"-suffix")},Gt));var kr;Nt&&ha&&!Ft&&(kr=y.createElement("span",{onMouseDown:function(rr){rr.preventDefault(),rr.stopPropagation()},onMouseUp:function(rr){rr.preventDefault(),rr.stopPropagation(),Mn(null),qn(!1)},className:"".concat(ze,"-clear")},At||y.createElement("span",{className:"".concat(ze,"-clear-btn")})));var Kn=function(rr,sa){(sa==="submit"||sa!=="key"&&!$a)&&(Mn(rr),qn(!1))},Dr=aa==="rtl"?"bottomRight":"bottomLeft",qr=gr(Vt,{formatList:Aa,generateConfig:ye,locale:Et}),Nr=Object(W.a)(qr,3),Yr=Nr[0],Ir=Nr[1],Mr=Nr[2];return y.createElement(c.Provider,{value:{operationRef:tt,hideHeader:In==="time",panelRef:ga,onSelect:Kn,open:xe,defaultOpenValue:zt,onDateMouseEnter:Ir,onDateMouseLeave:Mr}},y.createElement(un,{visible:xe,popupElement:yn,popupStyle:Yt,prefixCls:ze,dropdownClassName:Tt,dropdownAlign:it,getPopupContainer:ur,transitionName:ct,popupPlacement:Dr,direction:aa},y.createElement("div",{className:R()(ze,ht,(De={},Object(O.a)(De,"".concat(ze,"-disabled"),Ft),Object(O.a)(De,"".concat(ze,"-focused"),Xn),Object(O.a)(De,"".concat(ze,"-rtl"),aa==="rtl"),De)),style:bt,onMouseDown:Rr,onMouseUp:hr,onMouseEnter:Bn,onMouseLeave:Vn,onContextMenu:Xr,onClick:ra},y.createElement("div",{className:R()("".concat(ze,"-input"),Object(O.a)({},"".concat(ze,"-input-placeholder"),!!Yr)),ref:ya},y.createElement("input",Object.assign({id:ut,tabIndex:et,disabled:Ft,readOnly:nt||!Ur,value:Yr||Vt,onChange:function(rr){tn(rr.target.value)},autoFocus:Dt,placeholder:Dn,ref:fa,title:Vt},mr,{size:s(In,Aa[0])},Ye(te),{autoComplete:Qr})),dr,kr))))}var jn=function(te){Object(I.a)(Xe,te);var De=Object(z.a)(Xe);function Xe(){var ze;return Object(re.a)(this,Xe),ze=De.apply(this,arguments),ze.pickerRef=y.createRef(),ze.focus=function(){ze.pickerRef.current&&ze.pickerRef.current.focus()},ze.blur=function(){ze.pickerRef.current&&ze.pickerRef.current.blur()},ze}return Object(G.a)(Xe,[{key:"render",value:function(){return y.createElement(Un,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(y.Component),Fn=jn;function Jn(te,De,Xe){var ze=te.picker,ut=te.locale,et=te.selectedValue,bt=te.disabledDate,ht=te.disabled,Tt=te.generateConfig,it=Pe(et,0),Yt=Pe(et,1);function ct(Dt){var dt=Tt.getYear(Dt),gn=Tt.locale.getWeek(ut.locale,Dt);return dt*100+gn}function ye(Dt){var dt=Tt.getYear(Dt),gn=Tt.getMonth(Dt);return dt*100+gn}function Et(Dt){var dt=Tt.getYear(Dt),gn=Ee(Tt,Dt);return dt*10+gn}var nt=y.useCallback(function(Dt){if(bt&&bt(Dt))return!0;if(ht[1]&&Yt)return!Lt(Tt,Dt,Yt)&&Tt.isAfter(Dt,Yt);if(De&&Yt)switch(ze){case"quarter":return Et(Dt)>Et(Yt);case"month":return ye(Dt)>ye(Yt);case"week":return ct(Dt)>ct(Yt);default:return!Lt(Tt,Dt,Yt)&&Tt.isAfter(Dt,Yt)}return!1},[bt,ht[1],Yt,De]),Nt=y.useCallback(function(Dt){if(bt&&bt(Dt))return!0;if(ht[0]&&it)return!Lt(Tt,Dt,Yt)&&Tt.isAfter(it,Dt);if(Xe&&it)switch(ze){case"quarter":return Et(Dt)0&&arguments[0]!==void 0?arguments[0]:!1,kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qn=null;Mr&&ja&&ja[0]&&ja[1]&&nt.isAfter(ja[1],ja[0])&&(Qn=ja);var jr=an;if(an&&Object(_.a)(an)==="object"&&an.defaultValue){var la=an.defaultValue;jr=Object(w.a)(Object(w.a)({},an),{},{defaultValue:Pe(la,He)||void 0})}var vi=null;return nr&&(vi=function(ka,Ja){return nr(ka,Ja,{range:He?"end":"start"})}),y.createElement(vt.Provider,{value:{inRange:!0,panelPosition:br,rangedValue:Xi||Xn,hoverRangedValue:Qn}},y.createElement(Y,Object.assign({},te,kn,{dateRender:vi,showTime:jr,mode:yn[He],generateConfig:nt,style:void 0,direction:Fa,disabledDate:He===0?qr:Nr,disabledTime:function(ka){return ur?ur(ka,He===0?"start":"end"):!1},className:R()(Object(O.a)({},"".concat(et,"-panel-focused"),He===0?!Ea:!so)),value:Pe(Xn,He),locale:Nt,tabIndex:-1,onPanelChange:function(ka,Ja){kr(je(yn,Ja,He),je(Xn,ka,He));var gi=ka;br==="right"&&yn[He]===Ja&&(gi=qe(gi,Ja,nt,-1)),ir(gi,He)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var ca=0,Ba=0;He&&tt.current&&se.current&&Ve.current&&(ca=tt.current.offsetWidth+se.current.offsetWidth,Ve.current.offsetWidth&&ca>Ve.current.offsetWidth&&(Ba=ca));var Pi=Fa==="rtl"?{right:ca}:{left:ca};function di(){var br,kn=k(et,yn[He],Xr),Qn=$({prefixCls:et,components:ga,needConfirmButton:Pa,okDisabled:!Pe(Xn,He)||Dn&&Dn(Xn[He]),locale:Nt,rangeList:Jr,onOk:function(){Pe(Xn,He)&&($n(Xn,He),Aa&&Aa(Xn))}});if(Ut!=="time"&&!an){var jr=xr(He),la=qe(jr,Ut,nt),vi=yn[He],oi=vi===Ut,ka=Fr(oi?"left":!1,{pickerValue:jr,onPickerValueChange:function(Da){ir(Da,He)}}),Ja=Fr("right",{pickerValue:la,onPickerValueChange:function(Da){ir(qe(Da,Ut,nt,-1),He)}});Fa==="rtl"?br=y.createElement(y.Fragment,null,Ja,oi&&ka):br=y.createElement(y.Fragment,null,ka,oi&&Ja)}else br=Fr();var gi=y.createElement(y.Fragment,null,y.createElement("div",{className:"".concat(et,"-panels")},br),(kn||Qn)&&y.createElement("div",{className:"".concat(et,"-footer")},kn,Qn));return qt&&(gi=qt(gi)),y.createElement("div",{className:"".concat(et,"-panel-container"),style:{marginLeft:Ba},ref:Ve,onMouseDown:function(Da){Da.preventDefault()}},gi)}var Ui=y.createElement("div",{className:R()("".concat(et,"-range-wrapper"),"".concat(et,"-").concat(Ut,"-range-wrapper")),style:{minWidth:xa}},y.createElement("div",{className:"".concat(et,"-range-arrow"),style:Pi}),di()),fi;Gr&&(fi=y.createElement("span",{className:"".concat(et,"-suffix")},Gr));var Sa;zr&&(Pe(Mn,0)&&!Vt[0]||Pe(Mn,1)&&!Vt[1])&&(Sa=y.createElement("span",{onMouseDown:function(kn){kn.preventDefault(),kn.stopPropagation()},onMouseUp:function(kn){kn.preventDefault(),kn.stopPropagation();var Qn=Mn;Vt[0]||(Qn=je(Qn,null,0)),Vt[1]||(Qn=je(Qn,null,1)),$n(Qn,null),Rn(!1,He)},className:"".concat(et,"-clear")},Rr||y.createElement("span",{className:"".concat(et,"-clear-btn")})));var Fi={size:s(Ut,Ie[0])},Bi=0,Wi=0;tt.current&&ke.current&&se.current&&(He===0?Wi=tt.current.offsetWidth:(Bi=ca,Wi=ke.current.offsetWidth));var Ga=Fa==="rtl"?{right:Bi}:{left:Bi},$r=function(kn,Qn){var jr=je(Xn,kn,He);Qn==="submit"||Qn!=="key"&&!Pa?($n(jr,He),He===0?$i():ro()):Ur(jr)};return y.createElement(c.Provider,{value:{operationRef:Pt,hideHeader:Ut==="time",onDateMouseEnter:Ro,onDateMouseLeave:Ao,hideRanges:!0,onSelect:$r,open:Mr}},y.createElement(un,{visible:Mr,popupElement:Ui,popupStyle:it,prefixCls:et,dropdownClassName:Yt,dropdownAlign:ye,getPopupContainer:Et,transitionName:ct,range:!0,direction:Fa},y.createElement("div",Object.assign({ref:Re,className:R()(et,"".concat(et,"-range"),Tt,(De={},Object(O.a)(De,"".concat(et,"-disabled"),Vt[0]&&Vt[1]),Object(O.a)(De,"".concat(et,"-focused"),He===0?Ma:oo),Object(O.a)(De,"".concat(et,"-rtl"),Fa==="rtl"),De)),style:ht,onClick:xi,onMouseDown:Qi},Ye(te)),y.createElement("div",{className:R()("".concat(et,"-input"),(Xe={},Object(O.a)(Xe,"".concat(et,"-input-active"),He===0),Object(O.a)(Xe,"".concat(et,"-input-placeholder"),!!mi),Xe)),ref:tt},y.createElement("input",Object.assign({id:bt,disabled:Vt[0],readOnly:Bn||!Ea,value:mi||Ti,onChange:function(kn){ki(kn.target.value)},autoFocus:dt,placeholder:Pe(Dt,0)||"",ref:xe},za,Fi,{autoComplete:pa}))),y.createElement("div",{className:"".concat(et,"-range-separator"),ref:se},mn),y.createElement("div",{className:R()("".concat(et,"-input"),(ze={},Object(O.a)(ze,"".concat(et,"-input-active"),He===1),Object(O.a)(ze,"".concat(et,"-input-placeholder"),!!ci),ze)),ref:ke},y.createElement("input",Object.assign({disabled:Vt[1],readOnly:Bn||!so,value:ci||Oi,onChange:function(kn){Vi(kn.target.value)},placeholder:Pe(Dt,1)||"",ref:de},ei,Fi,{autoComplete:pa}))),y.createElement("div",{className:"".concat(et,"-active-bar"),style:Object(w.a)(Object(w.a)({},Ga),{},{width:Wi,position:"absolute"})}),fi,Sa)))}var Lr=function(te){Object(I.a)(Xe,te);var De=Object(z.a)(Xe);function Xe(){var ze;return Object(re.a)(this,Xe),ze=De.apply(this,arguments),ze.pickerRef=y.createRef(),ze.focus=function(){ze.pickerRef.current&&ze.pickerRef.current.focus()},ze.blur=function(){ze.pickerRef.current&&ze.pickerRef.current.blur()},ze}return Object(G.a)(Xe,[{key:"render",value:function(){return y.createElement(Hr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(y.Component),or=Lr,Cr=Ce.b=Fn},osHv:function(nn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";var G=re.Pos;function I(n,r){return n.line-r.line||n.ch-r.ch}var z="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",O=z+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+z+"]["+O+"]*)","g");function W(n,r,o,l){this.line=r,this.ch=o,this.cm=n,this.text=n.getLine(r),this.min=l?Math.max(l.from,n.firstLine()):n.firstLine(),this.max=l?Math.min(l.to-1,n.lastLine()):n.lastLine()}function y(n,r){var o=n.cm.getTokenTypeAt(G(n.line,r));return o&&/\btag\b/.test(o)}function L(n){return n.line>=n.max?void 0:(n.ch=0,n.text=n.cm.getLine(++n.line),!0)}function R(n){return n.line<=n.min?void 0:(n.text=n.cm.getLine(--n.line),n.ch=n.text.length,!0)}function d(n){for(;;){var r=n.text.indexOf(">",n.ch);if(r==-1){if(L(n))continue;return}if(!y(n,r+1)){n.ch=r+1;continue}var o=n.text.lastIndexOf("/",r),l=o>-1&&!/\S/.test(n.text.slice(o+1,r));return n.ch=r+1,l?"selfClose":"regular"}}function p(n){for(;;){var r=n.ch?n.text.lastIndexOf("<",n.ch-1):-1;if(r==-1){if(R(n))continue;return}if(!y(n,r+1)){n.ch=r;continue}w.lastIndex=r,n.ch=r;var o=w.exec(n.text);if(o&&o.index==r)return o}}function _(n){for(;;){w.lastIndex=n.ch;var r=w.exec(n.text);if(!r){if(L(n))continue;return}if(!y(n,r.index+1)){n.ch=r.index+1;continue}return n.ch=r.index+r[0].length,r}}function v(n){for(;;){var r=n.ch?n.text.lastIndexOf(">",n.ch-1):-1;if(r==-1){if(R(n))continue;return}if(!y(n,r+1)){n.ch=r;continue}var o=n.text.lastIndexOf("/",r),l=o>-1&&!/\S/.test(n.text.slice(o+1,r));return n.ch=r+1,l?"selfClose":"regular"}}function h(n,r){for(var o=[];;){var l=_(n),x,E=n.line,b=n.ch-(l?l[0].length:0);if(!l||!(x=d(n)))return;if(x=="selfClose")continue;if(l[1]){for(var P=o.length-1;P>=0;--P)if(o[P]==l[2]){o.length=P;break}if(P<0&&(!r||r==l[2]))return{tag:l[2],from:G(E,b),to:G(n.line,n.ch)}}else o.push(l[2])}}function c(n,r){for(var o=[];;){var l=v(n);if(!l)return;if(l=="selfClose"){p(n);continue}var x=n.line,E=n.ch,b=p(n);if(!b)return;if(b[1])o.push(b[2]);else{for(var P=o.length-1;P>=0;--P)if(o[P]==b[2]){o.length=P;break}if(P<0&&(!r||r==b[2]))return{tag:b[2],from:G(n.line,n.ch),to:G(x,E)}}}}re.registerHelper("fold","xml",function(n,r){for(var o=new W(n,r.line,0);;){var l=_(o);if(!l||o.line!=r.line)return;var x=d(o);if(!x)return;if(!l[1]&&x!="selfClose"){var E=G(o.line,o.ch),b=h(o,l[2]);return b&&I(b.from,E)>0?{from:E,to:b.from}:null}}}),re.findMatchingTag=function(n,r,o){var l=new W(n,r.line,r.ch,o);if(l.text.indexOf(">")==-1&&l.text.indexOf("<")==-1)return;var x=d(l),E=x&&G(l.line,l.ch),b=x&&p(l);if(!x||!b||I(l,r)>0)return;var P={from:G(l.line,l.ch),to:E,tag:b[2]};return x=="selfClose"?{open:P,close:null,at:"open"}:b[1]?{open:c(l,b[2]),close:P,at:"close"}:(l=new W(n,E.line,E.ch,o),{open:P,close:h(l,b[2]),at:"open"})},re.findEnclosingTag=function(n,r,o,l){for(var x=new W(n,r.line,r.ch,o);;){var E=c(x,l);if(!E)break;var b=new W(n,r.line,r.ch,o),P=h(b,E.tag);if(P)return{open:E,close:P}}},re.scanForClosingTag=function(n,r,o,l){var x=new W(n,r.line,r.ch,l?{from:0,to:l}:null);return h(x,o)}})},p5ED:function(nn,Ce,M){"use strict";var re=M("+L6B"),G=M("2/Rp"),I=M("5Dmo"),z=M("3S7+"),O=M("k1fw"),w=M("9og8"),W=M("tJVT"),y=M("WmNS"),L=M.n(y),R=M("q1tI"),d=M.n(R),p=M("vHTk"),_=M.n(p),v=M("yEEn"),h=M("ZW9T"),c=M("1vsH"),n=M("V0Rq"),r=M("m3rI");Ce.a=function(o){var l,x,E,b,P,T,m=o.editOffice,g=m===void 0?"view":m,s=o.name,u=o.data,D=o.theme,S=o.type,A=o.filename,N=o.monacoEditor,j=o.className,K=o.style,H=o.close,U=o.onClose,B=o.hasMask,q=o.disabledDownload,ee=o.onImgDimensions,he=o.otherData,be=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ye=Object(W.a)(be,2),Pe=Ye[0],je=Ye[1],Qe=Object(R.useState)(""),Ze=Object(W.a)(Qe,2),Ae=Ze[0],me=Ze[1],ie=Object(R.useState)(),Oe=Object(W.a)(ie,2),ve=Oe[0],Ge=Oe[1],pe=window.ENV==="build"?"/react/build":"",J=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,V,X=1024*1024,ue=10*X,Ee=Object(R.useRef)();(l=u)!==null&&l!==void 0&&l.startsWith("/api")&&S!=="txt"&&(u=r.a.API_SERVER+u),S==="office"&&(V=Object(c.P)(u).filesize,V>ue&&(S="other")),A&&(N.filename=A),Object(R.useEffect)(function(){var Kt,Bt,kt=(Kt=document.cookie)===null||Kt===void 0||((Bt=Kt.replace(/\s/g,""))===null||Bt===void 0)?void 0:Bt.split(";");kt==null||kt.map(function(Qt){var hn=Qt.split("=");hn[0]==="_educoder_session"&&me(hn[1])})},[]),Object(R.useEffect)(function(){S==="office"&&We()},[S,u]);var We=function(){var Kt=Object(w.a)(L.a.mark(function Bt(){var kt,Qt,hn;return L.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return console.log("data:",u),kt=u,u.startsWith("http")||(kt=location.origin+kt),Qt=new URL(kt).pathname.split("/").pop(),Ue.next=6,Object(n.U)({attachment_id:Qt});case 6:hn=Ue.sent,Ge(hn);case 8:case"end":return Ue.stop()}},Bt)}));return function(){return Kt.apply(this,arguments)}}(),Ke=function(){if(u.startsWith("http")||u.startsWith("blob:")){Lt();return}Object(c.x)(A||"educoder",u,A)},Lt=function(){Object(c.v)(A||"educoder",decodeURIComponent(u))};return d.a.createElement("div",{style:Object(O.a)({},K||{}),className:"".concat(B&&_.a.bgBlack," ").concat(S?_.a.wrp:"hide")},H&&d.a.createElement("div",{className:_.a.close,ref:Ee},!!ee&&d.a.createElement(z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ee.current}},d.a.createElement("span",{onClick:function(){U(),ee()}},d.a.createElement("i",{className:"icon-yulanpizhu"}))),!q&&d.a.createElement(z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ee.current}},d.a.createElement("span",{onClick:Lt},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ee.current}},d.a.createElement("span",{className:"",onClick:U},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(_.a[j]," ").concat(j," ").concat(_.a.monaco," ").concat(S==="txt"?"show":"hide")},S==="txt"&&d.a.createElement(h.b,N)),S==="audio"&&d.a.createElement("audio",{src:"".concat(((x=u)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=u)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(u),autoPlay:!0}),S==="video"&&d.a.createElement(d.a.Fragment,null,((b=u)===null||b===void 0?void 0:b.indexOf("http"))>-1?d.a.createElement("video",{controls:!0,src:"".concat(u),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(u),autoPlay:!0})),S==="office"&&ve&&d.a.createElement("iframe",{src:"".concat(pe,"/office.html?key=").concat(ve.key,"&url=").concat(J+ve.url,"&callbackUrl=").concat(J+ve.callbackUrl,"&fileType=").concat(ve.fileType,"&title=").concat(ve.title,"&model=").concat(g,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!q)}),(S==="xlsx"||S==="doc"||S==="pptx"||S==="docx")&&d.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(he.key,"&url=").concat(r.a.API_SERVER+he.url,"&callbackUrl=").concat(r.a.API_SERVER+he.callbackUrl,"&fileType=").concat(he.fileType,"&title=").concat(he.title,"&model=").concat(he.model)}),S==="html"&&d.a.createElement("iframe",{src:u+"&disposition=inline"}),S==="pdf"&&d.a.createElement("embed",{className:_.a.embed,src:u}),S==="image"&&d.a.createElement("img",{src:"".concat(((P=u)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((T=u)===null||T===void 0?void 0:T.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(u)}),S==="other"&&d.a.createElement("div",null,d.a.createElement(G.a,{type:"primary",size:"large",onClick:Ke},d.a.createElement(v.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),S==="download"&&d.a.createElement(G.a,{type:"primary",size:"large",onClick:Ke},d.a.createElement(v.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(nn,Ce,M){},pmY6:function(nn,Ce,M){"use strict";M.d(Ce,"g",function(){return O}),M.d(Ce,"f",function(){return w}),M.d(Ce,"e",function(){return W}),M.d(Ce,"h",function(){return y}),M.d(Ce,"b",function(){return L}),M.d(Ce,"a",function(){return R}),M.d(Ce,"d",function(){return d}),M.d(Ce,"c",function(){return p});var re=!1,G="__is_disposable_tracked__";function I(_){if(!re)return;if(_&&_!==R.None)try{_[G]=!0}catch(v){}}function z(_){if(!re)return _;var v=new Error("Potentially leaked disposable").stack;return setTimeout(function(){_[G]||console.log(v)},3e3),_}function O(_){return typeof _.dispose=="function"&&_.dispose.length===0}function w(_){return Array.isArray(_)?(_.forEach(function(v){v&&(I(v),v.dispose())}),[]):_?(I(_),_.dispose(),_):void 0}function W(){for(var _=[],v=0;v=I.length?{done:!0}:{done:!1,value:I[w++]}},e:function(p){throw p},f:W}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,L=!1,R;return{s:function(){O=I[Symbol.iterator]()},n:function(){var p=O.next();return y=p.done,p},e:function(p){L=!0,R=p},f:function(){try{!y&&O.return!=null&&O.return()}finally{if(L)throw R}}}}},rUJ1:function(nn,Ce){const M=/[&<>"']/,re=/[&<>"']/g,G=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,z={"&":"&","<":"<",">":">",'"':""","'":"'"},O=T=>z[T];function w(T,m){if(m){if(M.test(T))return T.replace(re,O)}else if(G.test(T))return T.replace(I,O);return T}const W=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y(T){return T.replace(W,(m,g)=>(g=g.toLowerCase(),g==="colon"?":":g.charAt(0)==="#"?g.charAt(1)==="x"?String.fromCharCode(parseInt(g.substring(2),16)):String.fromCharCode(+g.substring(1)):""))}const L=/(^|[^\[])\^/g;function R(T,m){T=T.source||T,m=m||"";const g={replace:(s,u)=>(u=u.source||u,u=u.replace(L,"$1"),T=T.replace(s,u),g),getRegex:()=>new RegExp(T,m)};return g}const d=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(T,m,g){if(T){let s;try{s=decodeURIComponent(y(g)).replace(d,"").toLowerCase()}catch(u){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}m&&!p.test(g)&&(g=r(m,g));try{g=encodeURI(g).replace(/%25/g,"%")}catch(s){return null}return g}const v={},h=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,n=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(T,m){v[" "+T]||(h.test(T)?v[" "+T]=T+"/":v[" "+T]=E(T,"/",!0)),T=v[" "+T];const g=T.indexOf(":")===-1;return m.substring(0,2)==="//"?g?m:T.replace(c,"$1")+m:m.charAt(0)==="/"?g?m:T.replace(n,"$1")+m:T+m}const o={exec:function(){}};function l(T){let m=1,g,s;for(;m{let N=!1,j=S;for(;--j>=0&&A[j]==="\\";)N=!N;return N?"|":" |"}),s=g.split(/ \|/);let u=0;if(s.length>m)s.splice(m);else for(;s.length1)Object(R.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(R.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=l[0];if(w.isValidElement(x)&&Object(d.c)(x)){var E=x.ref;l[0]=w.cloneElement(x,{ref:Object(d.a)(E,this.setChildNode)})}return l.length===1?l[0]:l.map(function(b,P){return!w.isValidElement(b)||"key"in b&&b.key!==null?b:w.cloneElement(b,{key:"".concat(_,"-").concat(P)})})}}]),n}(w.Component);v.displayName="ResizeObserver",Ce.a=v},uiYX:function(nn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("5NDa"),z=M("5rEg"),O=M("k1fw"),w=M("9og8"),W=M("y8nQ"),y=M("Vl3Y"),L=M("tJVT"),R=M("WmNS"),d=M.n(R),p=M("q1tI"),_=M.n(p),v=M("XYT7"),h=M("Ty5D"),c=M("9kvl"),n=M("500L"),r=function(l){var x=l.classroomList,E=l.loading,b=l.dispatch,P=Object(h.i)(),T=y.a.useForm(),m=Object(L.a)(T,1),g=m[0];return _.a.createElement(G.a,{centered:!0,title:"\u8865\u4EA4\u9644\u4EF6",visible:x.actionTabs.key==="\u8865\u4EA4\u9644\u4EF6",bodyStyle:{minHeight:200},onOk:Object(w.a)(d.a.mark(function s(){var u,D,S,A;return d.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,g.validateFields();case 2:return D=Object(O.a)({},g.getFieldValue()),S=x.actionTabs.selectArrs,D.attachment_ids=(u=D.attachment_ids)===null||u===void 0?void 0:u.map(function(K){return K.response.id}),j.next=7,Object(v.R)(Object(O.a)(Object(O.a)({},D),{},{homeworkId:S.work_id}));case 7:A=j.sent,A.status===0&&(g.resetFields(),b({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return j.stop()}},s)})),onCancel:function(){g.resetFields(),b({type:"classroomList/setActionTabs",payload:{}})}},_.a.createElement(y.a,{form:g,initialValues:{}},_.a.createElement(y.a.Item,{name:"attachment_ids",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},_.a.createElement(n.b,null)),_.a.createElement(y.a.Item,{name:"description"},_.a.createElement(z.a.TextArea,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u8865\u4EA4\u9644\u4EF6\u7684\u539F\u56E0\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",rows:7}))))};Ce.a=Object(c.a)(function(o){var l=o.classroomList,x=o.loading;return{classroomList:l,loading:x}})(r)},ulZh:function(nn,Ce,M){typeof window!="undefined"&&function(G,I){nn.exports=I()}(this,function(){return function(re){var G={};function I(z){if(G[z])return G[z].exports;var O=G[z]={i:z,l:!1,exports:{}};return re[z].call(O.exports,O,O.exports,I),O.l=!0,O.exports}return I.m=re,I.c=G,I.d=function(z,O,w){I.o(z,O)||Object.defineProperty(z,O,{enumerable:!0,get:w})},I.r=function(z){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(z,"__esModule",{value:!0})},I.t=function(z,O){if(O&1&&(z=I(z)),O&8)return z;if(O&4&&typeof z=="object"&&z&&z.__esModule)return z;var w=Object.create(null);if(I.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:z}),O&2&&typeof z!="string")for(var W in z)I.d(w,W,function(y){return z[y]}.bind(null,W));return w},I.n=function(z){var O=z&&z.__esModule?function(){return z.default}:function(){return z};return I.d(O,"a",O),O},I.o=function(z,O){return Object.prototype.hasOwnProperty.call(z,O)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(re,G,I){"use strict";var z=Object.prototype.hasOwnProperty,O="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(O=!1));function W(d,p,_){this.fn=d,this.context=p,this.once=_||!1}function y(d,p,_,v,h){if(typeof _!="function")throw new TypeError("The listener must be a function");var c=new W(_,v||d,h),n=O?O+p:p;return d._events[n]?d._events[n].fn?d._events[n]=[d._events[n],c]:d._events[n].push(c):(d._events[n]=c,d._eventsCount++),d}function L(d,p){--d._eventsCount===0?d._events=new w:delete d._events[p]}function R(){this._events=new w,this._eventsCount=0}R.prototype.eventNames=function(){var p=[],_,v;if(this._eventsCount===0)return p;for(v in _=this._events)z.call(_,v)&&p.push(O?v.slice(1):v);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(_)):p},R.prototype.listeners=function(p){var _=O?O+p:p,v=this._events[_];if(!v)return[];if(v.fn)return[v.fn];for(var h=0,c=v.length,n=new Array(c);h0},!1)}function d(p,_){for(var v={main:[_]},h={main:[]},c={main:{}};R(v);)for(var n=Object.keys(v),r=0;rpt&&(en=pt-Vt),Object(O.useMemo)(function(){if(!xe.length)return[0,0];for(var En=xe.length,Ln=En,Zn=0;ZnHe+en){Ln=Zn-1;break}}for(var fr=0,xr=En-1;xr>=0;xr-=1){var ir=Re.get(xe[xr].key)||x;if(ir[ot]1&&arguments[1]!==void 0?arguments[1]:!1,ke=Ve&&typeof Ve.getBoundingClientRect=="function"&&Ve.getBoundingClientRect().width;if(ke){if(tt){var se=getComputedStyle(Ve),xe=se.marginLeft,de=se.marginRight;ke+=+xe.replace("px","")+ +de.replace("px","")}ke=+ke.toFixed(6)}return ke||0},We=function(Ve,tt,ke){Ve&&Object(j.a)(Ve.style)==="object"&&(Ve.style[tt]=ke)},Ke=function(){return ve.any},Pt=M("bdgK"),Kt=M("i8i4"),Bt=M.n(Kt),kt=M("wgJM"),Qt=M("l4aY"),fn=M("m+aA"),qe=M("c+Xe"),Ue=M("zT1h"),vt=M("QC+M");function Mt(Re,Ve,tt){return tt?Re[0]===Ve[0]:Re[0]===Ve[0]&&Re[1]===Ve[1]}function st(Re,Ve,tt){var ke=Re[Ve]||{};return Object(z.a)(Object(z.a)({},ke),tt)}function Ct(Re,Ve,tt,ke){for(var se=tt.points,xe=Object.keys(Re),de=0;de1&&arguments[1]!==void 0?arguments[1]:2;Ve();var xe=Object(kt.a)(function(){se<=1?ke({isCanceled:function(){return xe!==Re.current}}):tt(ke,se-1)});Re.current=xe}return O.useEffect(function(){return function(){Ve()}},[]),[tt,Ve]},ar=[ft,qt,Xt,it],dr=!1,er=!0;function wn(Re){return Re===Xt||Re===it}var Vr=function(Re,Ve){var tt=O.useState(yt),ke=Object(G.a)(tt,2),se=ke[0],xe=ke[1],de=_n(),Ie=Object(G.a)(de,2),Be=Ie[0],ot=Ie[1];function He(){xe(ft)}return un(function(){if(se!==yt&&se!==it){var pt=ar.indexOf(se),At=ar[pt+1],Vt=Ve(se);Vt===dr?xe(At):Be(function(en){function En(){if(en.isCanceled())return;xe(At)}Vt===!0?En():Promise.resolve(Vt).then(En)})}},[Re,se]),O.useEffect(function(){return function(){ot()}},[]),[He,se]},ca=function(Re){var Ve=Object(O.useRef)(),tt=Object(O.useRef)(Re);tt.current=Re;var ke=O.useCallback(function(de){tt.current(de)},[]);function se(de){de&&(de.removeEventListener(Jt,ke),de.removeEventListener(an,ke))}function xe(de){Ve.current&&Ve.current!==de&&se(Ve.current),de&&de!==Ve.current&&(de.addEventListener(Jt,ke),de.addEventListener(an,ke),Ve.current=de)}return O.useEffect(function(){return function(){se(Ve.current)}},[]),[xe,se]};function Ur(Re,Ve,tt,ke){var se=ke.motionEnter,xe=se===void 0?!0:se,de=ke.motionAppear,Ie=de===void 0?!0:de,Be=ke.motionLeave,ot=Be===void 0?!0:Be,He=ke.motionDeadline,pt=ke.motionLeaveImmediately,At=ke.onAppearPrepare,Vt=ke.onEnterPrepare,en=ke.onLeavePrepare,En=ke.onAppearStart,Ln=ke.onEnterStart,Zn=ke.onLeaveStart,qn=ke.onAppearActive,fr=ke.onEnterActive,xr=ke.onLeaveActive,ir=ke.onAppearEnd,mr=ke.onEnterEnd,Tr=ke.onLeaveEnd,Xn=ke.onVisibleChanged,Nr=xt(),Yn=Object(G.a)(Nr,2),sn=Yn[0],xn=Yn[1],hr=xt(St),Pr=Object(G.a)(hr,2),Kn=Pr[0],Or=Pr[1],Qr=xt(null),Mr=Object(G.a)(Qr,2),Xr=Mr[0],kr=Mr[1],Wr=Object(O.useRef)(!1),Fr=Object(O.useRef)(null),rr=Object(O.useRef)(!1),Zr=Object(O.useRef)(null);function xa(){var Lr=tt();return Lr||Zr.current}var ha=Object(O.useRef)(!1);function Ta(Lr){var ra=xa();if(Lr&&!Lr.deadline&&Lr.target!==ra)return;var Da;Kn===lt&&ha.current?Da=ir==null?void 0:ir(ra,Lr):Kn===ge&&ha.current?Da=mr==null?void 0:mr(ra,Lr):Kn===Le&&ha.current&&(Da=Tr==null?void 0:Tr(ra,Lr)),Da!==!1&&!rr.current&&(Or(St),kr(null))}var aa=ca(Ta),qr=Object(G.a)(aa,1),ea=qr[0],ia=O.useMemo(function(){var Lr,ra,Da;switch(Kn){case"appear":return Lr={},Object(re.a)(Lr,ft,At),Object(re.a)(Lr,qt,En),Object(re.a)(Lr,Xt,qn),Lr;case"enter":return ra={},Object(re.a)(ra,ft,Vt),Object(re.a)(ra,qt,Ln),Object(re.a)(ra,Xt,fr),ra;case"leave":return Da={},Object(re.a)(Da,ft,en),Object(re.a)(Da,qt,Zn),Object(re.a)(Da,Xt,xr),Da;default:return{}}},[Kn]),Na=Vr(Kn,function(Lr){if(Lr===ft){var ra=ia[ft];return ra?ra(xa()):dr}if(Dn in ia){var Da;kr(((Da=ia[Dn])===null||Da===void 0?void 0:Da.call(ia,xa(),null))||null)}return Dn===Xt&&(ea(xa()),He>0&&(clearTimeout(Fr.current),Fr.current=setTimeout(function(){Ta({deadline:!0})},He))),er}),jn=Object(G.a)(Na,2),hn=jn[0],Dn=jn[1],$r=wn(Dn);ha.current=$r,un(function(){xn(Ve);var Lr=Wr.current;if(Wr.current=!0,!Re)return;var ra;!Lr&&Ve&&Ie&&(ra=lt),Lr&&Ve&&xe&&(ra=ge),(Lr&&!Ve&&ot||!Lr&&pt&&!Ve&&ot)&&(ra=Le),ra&&(Or(ra),hn())},[Ve]),Object(O.useEffect)(function(){(Kn===lt&&!Ie||Kn===ge&&!xe||Kn===Le&&!ot)&&Or(St)},[Ie,xe,ot]),Object(O.useEffect)(function(){return function(){clearTimeout(Fr.current),rr.current=!0}},[]),Object(O.useEffect)(function(){sn!==void 0&&Kn===St&&(Xn==null||Xn(sn))},[sn,Kn]);var tr=Xr;return ia[ft]&&Dn===qt&&(tr=Object(z.a)({transition:"none"},tr)),[Kn,Dn,tr,sn!=null?sn:Ve]}var ur=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){return Object(P.a)(this,tt),Ve.apply(this,arguments)}return Object(T.a)(tt,[{key:"render",value:function(){return this.props.children}}]),tt}(O.Component),Kr=ur;function oa(Re){var Ve=Re;Object(j.a)(Re)==="object"&&(Ve=Re.transitionSupport);function tt(se){return!!(se.motionName&&Ve)}var ke=O.forwardRef(function(se,xe){var de=se.visible,Ie=de===void 0?!0:de,Be=se.removeOnLeave,ot=Be===void 0?!0:Be,He=se.forceRender,pt=se.children,At=se.motionName,Vt=se.leavedClassName,en=se.eventProps,En=tt(se),Ln=Object(O.useRef)(),Zn=Object(O.useRef)();function qn(){try{return Object(fn.a)(Ln.current||Zn.current)}catch(Or){return null}}var fr=Ur(En,Ie,qn,se),xr=Object(G.a)(fr,4),ir=xr[0],mr=xr[1],Tr=xr[2],Xn=xr[3],Nr=O.useRef(Xn);Xn&&(Nr.current=!0);var Yn=Object(O.useRef)(xe);Yn.current=xe;var sn=O.useCallback(function(Or){Ln.current=Or,Object(qe.b)(Yn.current,Or)},[]),xn,hr=Object(z.a)(Object(z.a)({},en),{},{visible:Ie});if(!pt)xn=null;else if(ir===St||!tt(se))Xn?xn=pt(Object(z.a)({},hr),sn):!ot&&Nr.current?xn=pt(Object(z.a)(Object(z.a)({},hr),{},{className:Vt}),sn):He?xn=pt(Object(z.a)(Object(z.a)({},hr),{},{style:{display:"none"}}),sn):xn=null;else{var Pr,Kn;mr===ft?Kn="prepare":wn(mr)?Kn="active":mr===qt&&(Kn="start"),xn=pt(Object(z.a)(Object(z.a)({},hr),{},{className:W()(wt(At,ir),(Pr={},Object(re.a)(Pr,wt(At,"".concat(ir,"-").concat(Kn)),Kn),Object(re.a)(Pr,At,typeof At=="string"),Pr)),style:Tr}),sn)}return O.createElement(Kr,{ref:Zn},xn)});return ke.displayName="CSSMotion",ke}var ma=oa(pn),Wt="add",Sn="keep",lr="remove",Rr="removed";function Er(Re){var Ve;return Re&&Object(j.a)(Re)==="object"&&"key"in Re?Ve=Re:Ve={key:Re},Object(z.a)(Object(z.a)({},Ve),{},{key:String(Ve.key)})}function _r(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Re.map(Er)}function Q(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tt=[],ke=0,se=Ve.length,xe=_r(Re),de=_r(Ve);xe.forEach(function(ot){for(var He=!1,pt=ke;pt1});return Be.forEach(function(ot){tt=tt.filter(function(He){var pt=He.key,At=He.status;return pt!==ot||At!==lr}),tt.forEach(function(He){He.key===ot&&(He.status=Sn)})}),tt}var C=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function k(Re){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ma,tt=function(ke){Object(g.a)(xe,ke);var se=Object(s.a)(xe);function xe(){var de;return Object(P.a)(this,xe),de=se.apply(this,arguments),de.state={keyEntities:[]},de.removeKey=function(Ie){de.setState(function(Be){var ot=Be.keyEntities;return{keyEntities:ot.map(function(He){return He.key!==Ie?He:Object(z.a)(Object(z.a)({},He),{},{status:Rr})})}})},de}return Object(T.a)(xe,[{key:"render",value:function(){var Ie=this,Be=this.state.keyEntities,ot=this.props,He=ot.component,pt=ot.children,At=ot.onVisibleChanged,Vt=Object(I.a)(ot,["component","children","onVisibleChanged"]),en=He||O.Fragment,En={};return C.forEach(function(Ln){En[Ln]=Vt[Ln],delete Vt[Ln]}),delete Vt.keys,O.createElement(en,Vt,Be.map(function(Ln){var Zn=Ln.status,qn=Object(I.a)(Ln,["status"]),fr=Zn===Wt||Zn===Sn;return O.createElement(Ve,Object(b.a)({},En,{key:qn.key,visible:fr,eventProps:qn,onVisibleChanged:function(ir){At==null||At(ir,{key:qn.key}),ir||Ie.removeKey(qn.key)}}),pt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ie,Be){var ot=Ie.keys,He=Be.keyEntities,pt=_r(ot),At=Q(He,pt);return{keyEntities:At.filter(function(Vt){var en=He.find(function(En){var Ln=En.key;return Vt.key===Ln});return!(en&&en.status===Rr&&Vt.status===lr)})}}}]),xe}(O.Component);return tt.defaultProps={component:"div"},tt}var $=k(pn),ne=ma;function Y(Re){var Ve=Re.prefixCls,tt=Re.motion,ke=Re.animation,se=Re.transitionName;return tt||(ke?{motionName:"".concat(Ve,"-").concat(ke)}:se?{motionName:se}:null)}function we(Re){var Ve=Re.prefixCls,tt=Re.visible,ke=Re.zIndex,se=Re.mask,xe=Re.maskMotion,de=Re.maskAnimation,Ie=Re.maskTransitionName;if(!se)return null;var Be={};return(xe||Ie||de)&&(Be=Object(z.a)({motionAppear:!0},Y({motion:xe,prefixCls:Ve,transitionName:Ie,animation:de}))),O.createElement(ne,Object(b.a)({},Be,{visible:tt,removeOnLeave:!0}),function(ot){var He=ot.className;return O.createElement("div",{style:{zIndex:ke},className:W()("".concat(Ve,"-mask"),He)})})}var mt=M("9mu1"),It=M("o0o1"),ln=M.n(It),Ot=M("HaE+"),yn=["measure","align",null,"motion"],bn=function(Re,Ve){var tt=Object(O.useState)(null),ke=Object(G.a)(tt,2),se=ke[0],xe=ke[1],de=Object(O.useRef)(),Ie=Object(O.useRef)(!1);function Be(pt){Ie.current||xe(pt)}function ot(){kt.a.cancel(de.current)}function He(pt){ot(),de.current=Object(kt.a)(function(){Be(function(At){switch(se){case"align":return"motion";case"motion":return"stable";default:}return At}),pt==null||pt()})}return Object(O.useEffect)(function(){Be("measure")},[Re]),Object(O.useEffect)(function(){switch(se){case"measure":Ve();break;default:}se&&(de.current=Object(kt.a)(Object(Ot.a)(ln.a.mark(function pt(){var At,Vt;return ln.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:At=yn.indexOf(se),Vt=yn[At+1],Vt&&At!==-1&&Be(Vt);case 3:case"end":return En.stop()}},pt)}))))},[se]),Object(O.useEffect)(function(){return function(){Ie.current=!0,ot()}},[]),[se,He]},Tn=function(Re){var Ve=O.useState({width:0,height:0}),tt=Object(G.a)(Ve,2),ke=tt[0],se=tt[1];function xe(Ie){se({width:Ie.offsetWidth,height:Ie.offsetHeight})}var de=O.useMemo(function(){var Ie={};if(Re){var Be=ke.width,ot=ke.height;Re.indexOf("height")!==-1&&ot?Ie.height=ot:Re.indexOf("minHeight")!==-1&&ot&&(Ie.minHeight=ot),Re.indexOf("width")!==-1&&Be?Ie.width=Be:Re.indexOf("minWidth")!==-1&&Be&&(Ie.minWidth=Be)}return Ie},[Re,ke]);return[de,xe]},pr=O.forwardRef(function(Re,Ve){var tt=Re.visible,ke=Re.prefixCls,se=Re.className,xe=Re.style,de=Re.children,Ie=Re.zIndex,Be=Re.stretch,ot=Re.destroyPopupOnHide,He=Re.forceRender,pt=Re.align,At=Re.point,Vt=Re.getRootDomNode,en=Re.getClassNameFromAlign,En=Re.onAlign,Ln=Re.onMouseEnter,Zn=Re.onMouseLeave,qn=Re.onMouseDown,fr=Re.onTouchStart,xr=Object(O.useRef)(),ir=Object(O.useRef)(),mr=Object(O.useState)(),Tr=Object(G.a)(mr,2),Xn=Tr[0],Nr=Tr[1],Yn=Tn(Be),sn=Object(G.a)(Yn,2),xn=sn[0],hr=sn[1];function Pr(){Be&&hr(Vt())}var Kn=bn(tt,Pr),Or=Object(G.a)(Kn,2),Qr=Or[0],Mr=Or[1],Xr=Object(O.useRef)();function kr(){return At||Vt}function Wr(){var aa;(aa=xr.current)===null||aa===void 0||aa.forceAlign()}function Fr(aa,qr){var ea=en(qr);Xn!==ea&&Nr(ea),Qr==="align"&&(Xn!==ea?Promise.resolve().then(function(){Wr()}):Mr(function(){var ia;(ia=Xr.current)===null||ia===void 0||ia.call(Xr)}),En==null||En(aa,qr))}var rr=Object(z.a)({},Y(Re));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(aa){var qr=rr[aa];rr[aa]=function(ea,ia){return Mr(),qr==null?void 0:qr(ea,ia)}});function Zr(){return new Promise(function(aa){Xr.current=aa})}O.useEffect(function(){!rr.motionName&&Qr==="motion"&&Mr()},[rr.motionName,Qr]),O.useImperativeHandle(Ve,function(){return{forceAlign:Wr,getElement:function(){return ir.current}}});var xa=Object(z.a)(Object(z.a)({},xn),{},{zIndex:Ie,opacity:Qr==="motion"||Qr==="stable"||!tt?void 0:0,pointerEvents:Qr==="stable"?void 0:"none"},xe),ha=!0;(pt==null?void 0:pt.points)&&(Qr==="align"||Qr==="stable")&&(ha=!1);var Ta=de;return O.Children.count(de)>1&&(Ta=O.createElement("div",{className:"".concat(ke,"-content")},de)),O.createElement(ne,Object(b.a)({visible:tt,ref:ir,leavedClassName:"".concat(ke,"-hidden")},rr,{onAppearPrepare:Zr,onEnterPrepare:Zr,removeOnLeave:ot,forceRender:He}),function(aa,qr){var ea=aa.className,ia=aa.style,Na=W()(ke,se,Xn,ea);return O.createElement(mt.a,{target:kr(),key:"popup",ref:xr,monitorWindowResize:!0,disabled:ha,align:pt,onAlign:Fr},O.createElement("div",{ref:qr,className:Na,onMouseEnter:Ln,onMouseLeave:Zn,onMouseDownCapture:qn,onTouchStartCapture:fr,style:Object(z.a)(Object(z.a)({},ia),xa)},Ta))})});pr.displayName="PopupInner";var gr=pr,Un=O.forwardRef(function(Re,Ve){var tt=Re.prefixCls,ke=Re.visible,se=Re.zIndex,xe=Re.children,de=Re.mobile;de=de===void 0?{}:de;var Ie=de.popupClassName,Be=de.popupStyle,ot=de.popupMotion,He=ot===void 0?{}:ot,pt=de.popupRender,At=O.useRef();O.useImperativeHandle(Ve,function(){return{forceAlign:function(){},getElement:function(){return At.current}}});var Vt=Object(z.a)({zIndex:se},Be),en=xe;return O.Children.count(xe)>1&&(en=O.createElement("div",{className:"".concat(tt,"-content")},xe)),pt&&(en=pt(en)),O.createElement(ne,Object(b.a)({visible:ke,ref:At,removeOnLeave:!0},He),function(En,Ln){var Zn=En.className,qn=En.style,fr=W()(tt,Ie,Zn);return O.createElement("div",{ref:Ln,className:fr,style:Object(z.a)(Object(z.a)({},qn),Vt)},en)})});Un.displayName="MobilePopupInner";var Nn=Un,Fn=["visible","mobile"],$n=O.forwardRef(function(Re,Ve){var tt=Re.visible,ke=Re.mobile,se=Object(I.a)(Re,Fn),xe=Object(O.useState)(tt),de=Object(G.a)(xe,2),Ie=de[0],Be=de[1],ot=Object(O.useState)(!1),He=Object(G.a)(ot,2),pt=He[0],At=He[1],Vt=Object(z.a)(Object(z.a)({},se),{},{visible:Ie});Object(O.useEffect)(function(){Be(tt),tt&&ke&&At(Ne())},[tt,ke]);var en=pt?O.createElement(Nn,Object(b.a)({},Vt,{mobile:ke,ref:Ve})):O.createElement(gr,Object(b.a)({},Vt,{ref:Ve}));return O.createElement("div",null,O.createElement(we,Vt),en)});$n.displayName="Popup";var Sr=$n,Qn=O.createContext(null),yr=Qn;function Ht(){}function Hn(){return""}function Hr(Re){return Re?Re.ownerDocument:window.document}var Ar=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function or(Re){var Ve=function(tt){Object(g.a)(se,tt);var ke=Object(s.a)(se);function se(xe){var de;Object(P.a)(this,se),de=ke.call(this,xe),de.popupRef=O.createRef(),de.triggerRef=O.createRef(),de.attachId=void 0,de.clickOutsideHandler=void 0,de.touchOutsideHandler=void 0,de.contextMenuOutsideHandler1=void 0,de.contextMenuOutsideHandler2=void 0,de.mouseDownTimeout=void 0,de.focusTime=void 0,de.preClickTime=void 0,de.preTouchTime=void 0,de.delayTimer=void 0,de.hasPopupMouseDown=void 0,de.onMouseEnter=function(Be){var ot=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Be),de.delaySetPopupVisible(!0,ot,ot?null:Be)},de.onMouseMove=function(Be){de.fireEvents("onMouseMove",Be),de.setPoint(Be)},de.onMouseLeave=function(Be){de.fireEvents("onMouseLeave",Be),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onPopupMouseEnter=function(){de.clearDelayTimer()},de.onPopupMouseLeave=function(Be){var ot;if(Be.relatedTarget&&!Be.relatedTarget.setTimeout&&Object(Qt.a)((ot=de.popupRef.current)===null||ot===void 0?void 0:ot.getElement(),Be.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onFocus=function(Be){de.fireEvents("onFocus",Be),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))},de.onMouseDown=function(Be){de.fireEvents("onMouseDown",Be),de.preClickTime=Date.now()},de.onTouchStart=function(Be){de.fireEvents("onTouchStart",Be),de.preTouchTime=Date.now()},de.onBlur=function(Be){de.fireEvents("onBlur",Be),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)},de.onContextMenu=function(Be){Be.preventDefault(),de.fireEvents("onContextMenu",Be),de.setPopupVisible(!0,Be)},de.onContextMenuClose=function(){de.isContextMenuToShow()&&de.close()},de.onClick=function(Be){if(de.fireEvents("onClick",Be),de.focusTime){var ot;if(de.preClickTime&&de.preTouchTime?ot=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?ot=de.preClickTime:de.preTouchTime&&(ot=de.preTouchTime),Math.abs(ot-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Be&&Be.preventDefault&&Be.preventDefault();var He=!de.state.popupVisible;(de.isClickToHide()&&!He||He&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Be)},de.onPopupMouseDown=function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Be;(Be=de.context).onPopupMouseDown.apply(Be,arguments)}},de.onDocumentClick=function(Be){if(de.props.mask&&!de.props.maskClosable)return;var ot=Be.target,He=de.getRootDomNode(),pt=de.getPopupDomNode();(!Object(Qt.a)(He,ot)||de.isContextMenuOnly())&&!Object(Qt.a)(pt,ot)&&!de.hasPopupMouseDown&&de.close()},de.getRootDomNode=function(){var Be=de.props.getTriggerDOMNode;if(Be)return Be(de.triggerRef.current);try{var ot=Object(fn.a)(de.triggerRef.current);if(ot)return ot}catch(He){}return Bt.a.findDOMNode(Object(m.a)(de))},de.getPopupClassNameFromAlign=function(Be){var ot=[],He=de.props,pt=He.popupPlacement,At=He.builtinPlacements,Vt=He.prefixCls,en=He.alignPoint,En=He.getPopupClassNameFromAlign;return pt&&At&&ot.push(Ct(At,Vt,Be,en)),En&&ot.push(En(Be)),ot.join(" ")},de.getComponent=function(){var Be=de.props,ot=Be.prefixCls,He=Be.destroyPopupOnHide,pt=Be.popupClassName,At=Be.onPopupAlign,Vt=Be.popupMotion,en=Be.popupAnimation,En=Be.popupTransitionName,Ln=Be.popupStyle,Zn=Be.mask,qn=Be.maskAnimation,fr=Be.maskTransitionName,xr=Be.maskMotion,ir=Be.zIndex,mr=Be.popup,Tr=Be.stretch,Xn=Be.alignPoint,Nr=Be.mobile,Yn=Be.forceRender,sn=de.state,xn=sn.popupVisible,hr=sn.point,Pr=de.getPopupAlign(),Kn={};return de.isMouseEnterToShow()&&(Kn.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&(Kn.onMouseLeave=de.onPopupMouseLeave),Kn.onMouseDown=de.onPopupMouseDown,Kn.onTouchStart=de.onPopupMouseDown,O.createElement(Sr,Object(b.a)({prefixCls:ot,destroyPopupOnHide:He,visible:xn,point:Xn&&hr,className:pt,align:Pr,onAlign:At,animation:en,getClassNameFromAlign:de.getPopupClassNameFromAlign},Kn,{stretch:Tr,getRootDomNode:de.getRootDomNode,style:Ln,mask:Zn,zIndex:ir,transitionName:En,maskAnimation:qn,maskTransitionName:fr,maskMotion:xr,ref:de.popupRef,motion:Vt,mobile:Nr,forceRender:Yn}),typeof mr=="function"?mr():mr)},de.attachParent=function(Be){kt.a.cancel(de.attachId);var ot=de.props,He=ot.getPopupContainer,pt=ot.getDocument,At=de.getRootDomNode(),Vt;He?(At||He.length===0)&&(Vt=He(At)):Vt=pt(de.getRootDomNode()).body,Vt?Vt.appendChild(Be):de.attachId=Object(kt.a)(function(){de.attachParent(Be)})},de.getContainer=function(){var Be=de.props.getDocument,ot=Be(de.getRootDomNode()).createElement("div");return ot.style.position="absolute",ot.style.top="0",ot.style.left="0",ot.style.width="100%",de.attachParent(ot),ot},de.setPoint=function(Be){var ot=de.props.alignPoint;if(!ot||!Be)return;de.setState({point:{pageX:Be.pageX,pageY:Be.pageY}})},de.handlePortalUpdate=function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)},de.triggerContextValue={onPopupMouseDown:de.onPopupMouseDown};var Ie;return"popupVisible"in xe?Ie=!!xe.popupVisible:Ie=!!xe.defaultPopupVisible,de.state={prevPopupVisible:Ie,popupVisible:Ie},Ar.forEach(function(Be){de["fire".concat(Be)]=function(ot){de.fireEvents(Be,ot)}}),de}return Object(T.a)(se,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,Ie=this.state;if(Ie.popupVisible){var Be;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Be=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)(Be,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Be=Be||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)(Be,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Be=Be||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ue.a)(Be,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ue.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),kt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var de;return((de=this.popupRef.current)===null||de===void 0?void 0:de.getElement())||null}},{key:"getPopupAlign",value:function(){var de=this.props,Ie=de.popupPlacement,Be=de.popupAlign,ot=de.builtinPlacements;return Ie&&ot?st(ot,Ie,Be):Be}},{key:"setPopupVisible",value:function(de,Ie){var Be=this.props.alignPoint,ot=this.state.popupVisible;this.clearDelayTimer(),ot!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:ot}),this.props.onPopupVisibleChange(de)),Be&&Ie&&de&&this.setPoint(Ie)}},{key:"delaySetPopupVisible",value:function(de,Ie,Be){var ot=this,He=Ie*1e3;if(this.clearDelayTimer(),He){var pt=Be?{pageX:Be.pageX,pageY:Be.pageY}:null;this.delayTimer=window.setTimeout(function(){ot.setPopupVisible(de,pt),ot.clearDelayTimer()},He)}else this.setPopupVisible(de,Be)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(de){var Ie=this.props.children.props,Be=this.props;return Ie[de]&&Be[de]?this["fire".concat(de)]:Ie[de]||Be[de]}},{key:"isClickToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("click")!==-1||Be.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var de=this.props.action;return de==="contextMenu"||de.length===1&&de[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("contextMenu")!==-1||Be.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,Ie=de.action,Be=de.hideAction;return Ie.indexOf("click")!==-1||Be.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("hover")!==-1||Be.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,Ie=de.action,Be=de.hideAction;return Ie.indexOf("hover")!==-1||Be.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,Ie=de.action,Be=de.showAction;return Ie.indexOf("focus")!==-1||Be.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,Ie=de.action,Be=de.hideAction;return Ie.indexOf("focus")!==-1||Be.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var de;(de=this.popupRef.current)===null||de===void 0||de.forceAlign()}}},{key:"fireEvents",value:function(de,Ie){var Be=this.props.children.props[de];Be&&Be(Ie);var ot=this.props[de];ot&&ot(Ie)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,Ie=this.props,Be=Ie.children,ot=Ie.forceRender,He=Ie.alignPoint,pt=Ie.className,At=Ie.autoDestroy,Vt=O.Children.only(Be),en={key:"trigger"};this.isContextMenuToShow()?en.onContextMenu=this.onContextMenu:en.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(en.onClick=this.onClick,en.onMouseDown=this.onMouseDown,en.onTouchStart=this.onTouchStart):(en.onClick=this.createTwoChains("onClick"),en.onMouseDown=this.createTwoChains("onMouseDown"),en.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(en.onMouseEnter=this.onMouseEnter,He&&(en.onMouseMove=this.onMouseMove)):en.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?en.onMouseLeave=this.onMouseLeave:en.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(en.onFocus=this.onFocus,en.onBlur=this.onBlur):(en.onFocus=this.createTwoChains("onFocus"),en.onBlur=this.createTwoChains("onBlur"));var En=W()(Vt&&Vt.props&&Vt.props.className,pt);En&&(en.className=En);var Ln=Object(z.a)({},en);Object(qe.c)(Vt)&&(Ln.ref=Object(qe.a)(this.triggerRef,Vt.ref));var Zn=O.cloneElement(Vt,Ln),qn;return(de||this.popupRef.current||ot)&&(qn=O.createElement(Re,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&At&&(qn=null),O.createElement(yr.Provider,{value:this.triggerContextValue},Zn,qn)}}],[{key:"getDerivedStateFromProps",value:function(de,Ie){var Be=de.popupVisible,ot={};return Be!==void 0&&Ie.popupVisible!==Be&&(ot.popupVisible=Be,ot.prevPopupVisible=Ie.popupVisible),ot}}]),se}(O.Component);return Ve.contextType=yr,Ve.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Hn,getDocument:Hr,onPopupVisibleChange:Ht,afterPopupVisibleChange:Ht,onPopupAlign:Ht,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ve}var Cr=or(vt.a),te={adjustX:1,adjustY:1},De={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:te,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:te,offset:[4,0]}},Xe={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:te,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:te,offset:[4,0]}},ze=De,ut=0,et={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},bt=function(Ve,tt,ke){var se=J(tt),xe=Ve.getState();Ve.setState({defaultActiveFirst:Object(z.a)(Object(z.a)({},xe.defaultActiveFirst),{},Object(re.a)({},se,ke))})},ht=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(ke){var se;Object(P.a)(this,tt),se=Ve.call(this,ke),se.onDestroy=function(He){se.props.onDestroy(He)},se.onKeyDown=function(He){var pt=He.keyCode,At=se.menuInstance,Vt=se.props.store,en=se.getVisible();if(pt===c.a.ENTER)return se.onTitleClick(He),bt(Vt,se.props.eventKey,!0),!0;if(pt===c.a.RIGHT)return en?At.onKeyDown(He):(se.triggerOpenChange(!0),bt(Vt,se.props.eventKey,!0)),!0;if(pt===c.a.LEFT){var En;if(en)En=At.onKeyDown(He);else return;return En||(se.triggerOpenChange(!1),En=!0),En}return en&&(pt===c.a.UP||pt===c.a.DOWN)?At.onKeyDown(He):void 0},se.onOpenChange=function(He){se.props.onOpenChange(He)},se.onPopupVisibleChange=function(He){se.triggerOpenChange(He,He?"mouseenter":"mouseleave")},se.onMouseEnter=function(He){var pt=se.props,At=pt.eventKey,Vt=pt.onMouseEnter,en=pt.store;bt(en,se.props.eventKey,!1),Vt({key:At,domEvent:He})},se.onMouseLeave=function(He){var pt=se.props,At=pt.parentMenu,Vt=pt.eventKey,en=pt.onMouseLeave;At.subMenuInstance=Object(m.a)(se),en({key:Vt,domEvent:He})},se.onTitleMouseEnter=function(He){var pt=se.props,At=pt.eventKey,Vt=pt.onItemHover,en=pt.onTitleMouseEnter;Vt({key:At,hover:!0}),en({key:At,domEvent:He})},se.onTitleMouseLeave=function(He){var pt=se.props,At=pt.parentMenu,Vt=pt.eventKey,en=pt.onItemHover,En=pt.onTitleMouseLeave;At.subMenuInstance=Object(m.a)(se),en({key:Vt,hover:!1}),En({key:Vt,domEvent:He})},se.onTitleClick=function(He){var pt=Object(m.a)(se),At=pt.props;if(At.onTitleClick({key:At.eventKey,domEvent:He}),At.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!se.getVisible(),"click"),bt(At.store,se.props.eventKey,!1)},se.onSubMenuClick=function(He){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(He))},se.onSelect=function(He){se.props.onSelect(He)},se.onDeselect=function(He){se.props.onDeselect(He)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.getVisible=function(){return se.state.isOpen},se.getMode=function(){return se.state.mode},se.saveMenuInstance=function(He){se.menuInstance=He},se.addKeyPath=function(He){return Object(z.a)(Object(z.a)({},He),{},{keyPath:(He.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(He,pt){var At=se.props.eventKey,Vt=function(){se.onOpenChange({key:At,item:Object(m.a)(se),trigger:pt,open:He})};pt==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){Vt()},0):Vt()},se.isChildrenSelected=function(){var He={find:!1};return X(se.props.children,se.props.selectedKeys,He),He.find},se.isInlineMode=function(){return se.getMode()==="inline"},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var He=Kt.findDOMNode(se.menuInstance);if(He.offsetWidth>=se.subMenuTitle.offsetWidth)return;He.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(He){se.subMenuTitle=He},se.getBaseProps=function(){var He=Object(m.a)(se),pt=He.props,At=se.getMode();return{mode:At==="horizontal"?"vertical":At,visible:se.getVisible(),level:pt.level+1,inlineIndent:pt.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:pt.selectedKeys,eventKey:"".concat(pt.eventKey,"-menu-"),openKeys:pt.openKeys,motion:pt.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:pt.subMenuOpenDelay,parentMenu:Object(m.a)(se),subMenuCloseDelay:pt.subMenuCloseDelay,forceSubMenuRender:pt.forceSubMenuRender,triggerSubMenuAction:pt.triggerSubMenuAction,builtinPlacements:pt.builtinPlacements,defaultActiveFirst:pt.store.getState().defaultActiveFirst[J(pt.eventKey)],multiple:pt.multiple,prefixCls:pt.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:pt.itemIcon,expandIcon:pt.expandIcon,direction:pt.direction}},se.getMotion=function(He,pt){var At=Object(m.a)(se),Vt=At.haveRendered,en=se.props,En=en.motion,Ln=en.rootPrefixCls,Zn=Object(z.a)(Object(z.a)({},En),{},{leavedClassName:"".concat(Ln,"-hidden"),removeOnLeave:!1,motionAppear:Vt||!pt||He!=="inline"});return Zn};var xe=ke.store,de=ke.eventKey,Ie=xe.getState(),Be=Ie.defaultActiveFirst;se.isRootMenu=!1;var ot=!1;return Be&&(ot=Be[de]),bt(xe,de,ot),se.state={mode:ke.mode,isOpen:ke.isOpen},se}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,xe=this.props,de=xe.mode,Ie=xe.parentMenu,Be=xe.manualRef,ot=xe.isOpen,He=function(){se.setState({mode:de,isOpen:ot})},pt=ot!==this.state.isOpen,At=de!==this.state.mode;if((At||pt)&&(kt.a.cancel(this.updateStateRaf),At?this.updateStateRaf=Object(kt.a)(He):He()),Be&&Be(this),de!=="horizontal"||!(Ie==null?void 0:Ie.isRootMenu)||!ot)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,xe=se.onDestroy,de=se.eventKey;xe&&xe(de),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),kt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(se,xe){var de=this.getBaseProps();return O.createElement(Ut,Object(b.a)({},de,{id:this.internalMenuId,className:se,style:xe}),this.props.children)}},{key:"renderChildren",value:function(){var se=this,xe=this.getBaseProps(),de=xe.mode,Ie=xe.visible,Be=xe.forceSubMenuRender,ot=xe.direction,He=this.getMotion(de,Ie);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ie||Be,!this.haveOpened)return O.createElement("div",null);var pt=W()("".concat(xe.prefixCls,"-sub"),Object(re.a)({},"".concat(xe.prefixCls,"-rtl"),ot==="rtl"));return this.isInlineMode()?O.createElement(ne,Object(b.a)({visible:xe.visible,forceRender:Be},He),function(At){var Vt=At.className,en=At.style,En=W()(pt,Vt);return se.renderPopupMenu(En,en)}):this.renderPopupMenu(pt)}},{key:"render",value:function(){var se,xe,de,Ie=Object(z.a)({},this.props),Be=this.getVisible(),ot=this.getPrefixCls(),He=this.isInlineMode(),pt=this.getMode(),At=W()(ot,"".concat(ot,"-").concat(pt),(se={},Object(re.a)(se,Ie.className,!!Ie.className),Object(re.a)(se,this.getOpenClassName(),Be),Object(re.a)(se,this.getActiveClassName(),Ie.active||Be&&!He),Object(re.a)(se,this.getDisabledClassName(),Ie.disabled),Object(re.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(Ie.eventKey?this.internalMenuId="".concat(Ie.eventKey,"$Menu"):(ut+=1,this.internalMenuId="$__$".concat(ut,"$Menu")));var Vt={},en={},En={};Ie.disabled||(Vt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},en={onClick:this.onTitleClick},En={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ln={},Zn=Ie.direction,qn=Zn==="rtl";He&&(qn?Ln.paddingRight=Ie.inlineIndent*Ie.level:Ln.paddingLeft=Ie.inlineIndent*Ie.level);var fr={};this.getVisible()&&(fr={"aria-owns":this.internalMenuId});var xr=null;pt!=="horizontal"&&(xr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(xr=O.createElement(this.props.expandIcon,Object(z.a)({},this.props))));var ir=O.createElement("div",Object(b.a)({ref:this.saveSubMenuTitle,style:Ln,className:"".concat(ot,"-title"),role:"button"},En,en,{"aria-expanded":Be},fr,{"aria-haspopup":"true",title:typeof Ie.title=="string"?Ie.title:void 0}),Ie.title,xr||O.createElement("i",{className:"".concat(ot,"-arrow")})),mr=this.renderChildren(),Tr=((xe=Ie.parentMenu)===null||xe===void 0?void 0:xe.isRootMenu)?Ie.parentMenu.props.getPopupContainer:function(kr){return kr.parentNode},Xn=et[pt],Nr=Ie.popupOffset?{offset:Ie.popupOffset}:{},Yn=W()((de={},Object(re.a)(de,Ie.popupClassName,Ie.popupClassName&&!He),Object(re.a)(de,"".concat(ot,"-rtl"),qn),de)),sn=Ie.disabled,xn=Ie.triggerSubMenuAction,hr=Ie.subMenuOpenDelay,Pr=Ie.forceSubMenuRender,Kn=Ie.subMenuCloseDelay,Or=Ie.builtinPlacements;ue.forEach(function(kr){return delete Ie[kr]}),delete Ie.onClick;var Qr=qn?Object(z.a)(Object(z.a)({},Xe),Or):Object(z.a)(Object(z.a)({},De),Or);delete Ie.direction;var Mr=this.getBaseProps(),Xr=He?null:this.getMotion(Mr.mode,Mr.visible);return O.createElement("li",Object(b.a)({},Ie,Vt,{className:At,role:"menuitem"}),O.createElement(Cr,{prefixCls:ot,popupClassName:W()("".concat(ot,"-popup"),Yn),getPopupContainer:Tr,builtinPlacements:Qr,popupPlacement:Xn,popupVisible:He?!1:Be,popupAlign:Nr,popup:He?null:mr,action:sn||He?[]:[xn],mouseEnterDelay:hr,mouseLeaveDelay:Kn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Pr,popupMotion:Xr},ir),He?mr:null)}}]),tt}(O.Component);ht.defaultProps={onMouseEnter:Ge,onMouseLeave:Ge,onTitleMouseEnter:Ge,onTitleMouseLeave:Ge,onTitleClick:Ge,manualRef:Ge,mode:"vertical",title:""};var Tt=Object(u.b)(function(Re,Ve){var tt=Re.openKeys,ke=Re.activeKey,se=Re.selectedKeys,xe=Ve.eventKey,de=Ve.subMenuKey;return{isOpen:tt.indexOf(xe)>-1,active:ke[de]===xe,selectedKeys:se}})(ht);Tt.isSubMenu=!0;var nt=Tt,Yt="menuitem-overflowed",ct=.5,be=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){var ke;return Object(P.a)(this,tt),ke=Ve.apply(this,arguments),ke.resizeObserver=null,ke.mutationObserver=null,ke.originalTotalWidth=0,ke.overflowedItems=[],ke.menuItemSizes=[],ke.cancelFrameId=null,ke.state={lastVisibleIndex:void 0},ke.childRef=O.createRef(),ke.getMenuItemNodes=function(){var se=ke.props.prefixCls,xe=ke.childRef.current;return xe?[].slice.call(xe.children).filter(function(de){return de.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},ke.getOverflowedSubMenuItem=function(se,xe,de){var Ie=ke.props,Be=Ie.overflowedIndicator,ot=Ie.level,He=Ie.mode,pt=Ie.prefixCls,At=Ie.theme;if(ot!==1||He!=="horizontal")return null;var Vt=ke.props.children[0],en=Vt.props,En=en.children,Ln=en.title,Zn=en.style,qn=Object(I.a)(en,["children","title","style"]),fr=Object(z.a)({},Zn),xr="".concat(se,"-overflowed-indicator"),ir="".concat(se,"-overflowed-indicator");xe.length===0&&de!==!0?fr=Object(z.a)(Object(z.a)({},fr),{},{display:"none"}):de&&(fr=Object(z.a)(Object(z.a)({},fr),{},{visibility:"hidden",position:"absolute"}),xr="".concat(xr,"-placeholder"),ir="".concat(ir,"-placeholder"));var mr=At?"".concat(pt,"-").concat(At):"",Tr={};return ue.forEach(function(Xn){qn[Xn]!==void 0&&(Tr[Xn]=qn[Xn])}),O.createElement(nt,Object(b.a)({title:Be,className:"".concat(pt,"-overflowed-submenu"),popupClassName:mr},Tr,{key:xr,eventKey:ir,disabled:!1,style:fr}),xe)},ke.setChildrenWidthAndResize=function(){if(ke.props.mode!=="horizontal")return;var se=ke.childRef.current;if(!se)return;var xe=se.children;if(!xe||xe.length===0)return;var de=se.children[xe.length-1];We(de,"display","inline-block");var Ie=ke.getMenuItemNodes(),Be=Ie.filter(function(ot){return ot.className.split(" ").indexOf(Yt)>=0});Be.forEach(function(ot){We(ot,"display","inline-block")}),ke.menuItemSizes=Ie.map(function(ot){return Ee(ot,!0)}),Be.forEach(function(ot){We(ot,"display","none")}),ke.overflowedIndicatorWidth=Ee(se.children[se.children.length-1],!0),ke.originalTotalWidth=ke.menuItemSizes.reduce(function(ot,He){return ot+He},0),ke.handleResize(),We(de,"display","none")},ke.handleResize=function(){if(ke.props.mode!=="horizontal")return;var se=ke.childRef.current;if(!se)return;var xe=Ee(se);ke.overflowedItems=[];var de=0,Ie;ke.originalTotalWidth>xe+ct&&(Ie=-1,ke.menuItemSizes.forEach(function(Be){de+=Be,de+ke.overflowedIndicatorWidth<=xe&&(Ie+=1)})),ke.setState({lastVisibleIndex:Ie})},ke}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var xe=this.childRef.current;if(!xe)return;this.resizeObserver=new Pt.default(function(de){de.forEach(function(){var Ie=se.cancelFrameId;cancelAnimationFrame(Ie),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(xe.children).concat(xe).forEach(function(de){se.resizeObserver.observe(de)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(xe.children).concat(xe).forEach(function(de){se.resizeObserver.observe(de)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(xe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(se){var xe=this,de=this.state.lastVisibleIndex;return(se||[]).reduce(function(Ie,Be,ot){var He=Be;if(xe.props.mode==="horizontal"){var pt=xe.getOverflowedSubMenuItem(Be.props.eventKey,[]);de!==void 0&&xe.props.className.indexOf("".concat(xe.props.prefixCls,"-root"))!==-1&&(ot>de&&(He=O.cloneElement(Be,{style:{display:"none"},eventKey:"".concat(Be.props.eventKey,"-hidden"),className:"".concat(Yt)})),ot===de+1&&(xe.overflowedItems=se.slice(de+1).map(function(Vt){return O.cloneElement(Vt,{key:Vt.props.eventKey,mode:"vertical-left"})}),pt=xe.getOverflowedSubMenuItem(Be.props.eventKey,xe.overflowedItems)));var At=[].concat(Object(R.a)(Ie),[pt,He]);return ot===se.length-1&&At.push(xe.getOverflowedSubMenuItem(Be.props.eventKey,[],!0)),At}return[].concat(Object(R.a)(Ie),[He])},[])}},{key:"render",value:function(){var se=this.props,xe=se.visible,de=se.prefixCls,Ie=se.overflowedIndicator,Be=se.mode,ot=se.level,He=se.tag,pt=se.children,At=se.theme,Vt=Object(I.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),en=He;return O.createElement(en,Object(b.a)({ref:this.childRef},Vt),this.renderChildren(pt))}}]),tt}(O.Component);be.defaultProps={tag:"div",className:""};var Et=be;function rt(Re){return Re.length?Re.every(function(Ve){return!!Ve.props.disabled}):!0}function Nt(Re,Ve,tt){var ke=Re.getState();Re.setState({activeKey:Object(z.a)(Object(z.a)({},ke.activeKey),{},Object(re.a)({},Ve,tt))})}function Dt(Re){return Re.eventKey||"0-menu-"}function dt(Re,Ve){var tt=Ve,ke=Re.children,se=Re.eventKey;if(tt){var xe;if(V(ke,function(de,Ie){de&&de.props&&!de.props.disabled&&tt===pe(de,se,Ie)&&(xe=!0)}),xe)return tt}return tt=null,Re.defaultActiveFirst&&V(ke,function(de,Ie){!tt&&de&&!de.props.disabled&&(tt=pe(de,se,Ie))}),tt}function gn(Re){if(!Re)return;var Ve=this.instanceArray.indexOf(Re);Ve!==-1?this.instanceArray[Ve]=Re:this.instanceArray.push(Re)}var kn=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(ke){var se;return Object(P.a)(this,tt),se=Ve.call(this,ke),se.onKeyDown=function(xe,de){var Ie=xe.keyCode,Be;if(se.getFlatInstanceArray().forEach(function(He){He&&He.props.active&&He.onKeyDown&&(Be=He.onKeyDown(xe))}),Be)return 1;var ot=null;return(Ie===c.a.UP||Ie===c.a.DOWN)&&(ot=se.step(Ie===c.a.UP?-1:1)),ot?(xe.preventDefault(),Nt(se.props.store,Dt(se.props),ot.props.eventKey),typeof de=="function"&&de(ot),1):void 0},se.onItemHover=function(xe){var de=xe.key,Ie=xe.hover;Nt(se.props.store,Dt(se.props),Ie?de:null)},se.onDeselect=function(xe){se.props.onDeselect(xe)},se.onSelect=function(xe){se.props.onSelect(xe)},se.onClick=function(xe){se.props.onClick(xe)},se.onOpenChange=function(xe){se.props.onOpenChange(xe)},se.onDestroy=function(xe){se.props.onDestroy(xe)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(xe){var de=se.getFlatInstanceArray(),Ie=se.props.store.getState().activeKey[Dt(se.props)],Be=de.length;if(!Be)return null;xe<0&&(de=de.concat().reverse());var ot=-1;if(de.every(function(Vt,en){return Vt&&Vt.props.eventKey===Ie?(ot=en,!1):!0}),!se.props.defaultActiveFirst&&ot!==-1&&rt(de.slice(ot,Be-1)))return;var He=(ot+1)%Be,pt=He;do{var At=de[pt];if(!At||At.props.disabled)pt=(pt+1)%Be;else return At}while(pt!==He);return null},se.renderCommonMenuItem=function(xe,de,Ie){var Be=se.props.store.getState(),ot=Object(m.a)(se),He=ot.props,pt=pe(xe,He.eventKey,de),At=xe.props;if(!At||typeof xe.type=="string")return xe;var Vt=pt===Be.activeKey,en=Object(z.a)(Object(z.a)({mode:At.mode||He.mode,level:He.level,inlineIndent:He.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:He.prefixCls,index:de,parentMenu:He.parentMenu,manualRef:At.disabled?void 0:Object(S.a)(xe.ref,gn.bind(Object(m.a)(se))),eventKey:pt,active:!At.disabled&&Vt,multiple:He.multiple,onClick:function(Ln){(At.onClick||Ge)(Ln),se.onClick(Ln)},onItemHover:se.onItemHover,motion:He.motion,subMenuOpenDelay:He.subMenuOpenDelay,subMenuCloseDelay:He.subMenuCloseDelay,forceSubMenuRender:He.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:He.builtinPlacements,itemIcon:At.itemIcon||se.props.itemIcon,expandIcon:At.expandIcon||se.props.expandIcon},Ie),{},{direction:He.direction});return(He.mode==="inline"||Ke())&&(en.triggerSubMenuAction="click"),O.cloneElement(xe,Object(z.a)(Object(z.a)({},en),{},{key:pt||de}))},se.renderMenuItem=function(xe,de,Ie){if(!xe)return null;var Be=se.props.store.getState(),ot={openKeys:Be.openKeys,selectedKeys:Be.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:Ie};return se.renderCommonMenuItem(xe,de,ot)},ke.store.setState({activeKey:Object(z.a)(Object(z.a)({},ke.store.getState().activeKey),{},Object(re.a)({},ke.eventKey,dt(ke,ke.activeKey)))}),se.instanceArray=[],se}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!N()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var xe=this.props,de="activeKey"in xe?xe.activeKey:xe.store.getState().activeKey[Dt(xe)],Ie=dt(xe,de);if(Ie!==de)Nt(xe.store,Dt(xe),Ie);else if("activeKey"in se){var Be=dt(se,se.activeKey);Ie!==Be&&Nt(xe.store,Dt(xe),Ie)}}},{key:"render",value:function(){var se=this,xe=Object(b.a)({},this.props);this.instanceArray=[];var de=W()(xe.prefixCls,xe.className,"".concat(xe.prefixCls,"-").concat(xe.mode)),Ie={className:de,role:xe.role||"menu"};xe.id&&(Ie.id=xe.id),xe.focusable&&(Ie.tabIndex=0,Ie.onKeyDown=this.onKeyDown);var Be=xe.prefixCls,ot=xe.eventKey,He=xe.visible,pt=xe.level,At=xe.mode,Vt=xe.overflowedIndicator,en=xe.theme;return ue.forEach(function(En){return delete xe[En]}),delete xe.onClick,O.createElement(Et,Object(b.a)({},xe,{prefixCls:Be,mode:At,tag:"ul",level:pt,theme:en,visible:He,overflowedIndicator:Vt},Ie),Object(y.a)(xe.children).map(function(En,Ln){return se.renderMenuItem(En,Ln,ot||"0-menu-")}))}}]),tt}(O.Component);kn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ge};var on=Object(u.b)()(kn),Ut=on,rn=M("Kwbf");function In(Re,Ve,tt){var ke=Re.prefixCls,se=Re.motion,xe=Re.defaultMotions,de=xe===void 0?{}:xe,Ie=Re.openAnimation,Be=Re.openTransitionName,ot=Ve.switchingModeFromInline;if(se)return se;if(Object(j.a)(Ie)==="object"&&Ie)Object(rn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ie=="string")return{motionName:"".concat(ke,"-open-").concat(Ie)};if(Be)return{motionName:Be};var He=de[tt];return He||(ot?null:de.other)}var cn=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(ke){var se;Object(P.a)(this,tt),se=Ve.call(this,ke),se.onSelect=function(Ie){var Be=Object(m.a)(se),ot=Be.props;if(ot.selectable){var He=se.store.getState(),pt=He.selectedKeys,At=Ie.key;ot.multiple?pt=pt.concat([At]):pt=[At],"selectedKeys"in ot||se.store.setState({selectedKeys:pt}),ot.onSelect(Object(z.a)(Object(z.a)({},Ie),{},{selectedKeys:pt}))}},se.onClick=function(Ie){var Be=se.getRealMenuMode(),ot=Object(m.a)(se),He=ot.store,pt=ot.props.onOpenChange;Be!=="inline"&&!("openKeys"in se.props)&&(He.setState({openKeys:[]}),pt([])),se.props.onClick(Ie)},se.onKeyDown=function(Ie,Be){se.innerMenu.getWrappedInstance().onKeyDown(Ie,Be)},se.onOpenChange=function(Ie){var Be=Object(m.a)(se),ot=Be.props,He=se.store.getState().openKeys.concat(),pt=!1,At=function(en){var En=!1;if(en.open)En=He.indexOf(en.key)===-1,En&&He.push(en.key);else{var Ln=He.indexOf(en.key);En=Ln!==-1,En&&He.splice(Ln,1)}pt=pt||En};Array.isArray(Ie)?Ie.forEach(At):At(Ie),pt&&("openKeys"in se.props||se.store.setState({openKeys:He}),ot.onOpenChange(He))},se.onDeselect=function(Ie){var Be=Object(m.a)(se),ot=Be.props;if(ot.selectable){var He=se.store.getState().selectedKeys.concat(),pt=Ie.key,At=He.indexOf(pt);At!==-1&&He.splice(At,1),"selectedKeys"in ot||se.store.setState({selectedKeys:He}),ot.onDeselect(Object(z.a)(Object(z.a)({},Ie),{},{selectedKeys:He}))}},se.onMouseEnter=function(Ie){se.restoreModeVerticalFromInline();var Be=se.props.onMouseEnter;Be&&Be(Ie)},se.onTransitionEnd=function(Ie){var Be=Ie.propertyName==="width"&&Ie.target===Ie.currentTarget,ot=Ie.target.className,He=Object.prototype.toString.call(ot)==="[object SVGAnimatedString]"?ot.animVal:ot,pt=Ie.propertyName==="font-size"&&He.indexOf("anticon")>=0;(Be||pt)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(Ie){se.innerMenu=Ie},se.isRootMenu=!0;var xe=ke.defaultSelectedKeys,de=ke.defaultOpenKeys;return"selectedKeys"in ke&&(xe=ke.selectedKeys||[]),"openKeys"in ke&&(de=ke.openKeys||[]),se.store=Object(u.c)({selectedKeys:xe,openKeys:de,activeKey:{"0-menu-":dt(ke,ke.activeKey)}}),se.state={switchingModeFromInline:!1,prevProps:ke,inlineOpenKeys:[],store:se.store},se}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){var xe=this.props,de=xe.siderCollapsed,Ie=xe.inlineCollapsed,Be=xe.onOpenChange;(!se.inlineCollapsed&&Ie||!se.siderCollapsed&&de)&&Be([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,xe=this.store,de=this.prevOpenKeys,Ie=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");Ie?(this.prevOpenKeys=xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):de&&(this.store.setState({openKeys:de}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,xe=this.state.switchingModeFromInline,de=this.getInlineCollapsed();return xe&&de?"inline":de?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,xe=se.inlineCollapsed,de=se.siderCollapsed;return de!==void 0?de:xe}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var se=Object(z.a)({},Object(D.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),xe=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(z.a)(Object(z.a)({},se),{},{mode:xe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:In(this.props,this.state,xe)}),delete se.openAnimation,delete se.openTransitionName,O.createElement(u.a,{store:this.store},O.createElement(Ut,Object(b.a)({},se,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(se,xe){var de=xe.prevProps,Ie=xe.store,Be=Ie.getState(),ot={},He={prevProps:se};return de.mode==="inline"&&se.mode!=="inline"&&(He.switchingModeFromInline=!0),"openKeys"in se?ot.openKeys=se.openKeys||[]:((se.inlineCollapsed&&!de.inlineCollapsed||se.siderCollapsed&&!de.siderCollapsed)&&(He.switchingModeFromInline=!0,He.inlineOpenKeys=Be.openKeys,ot.openKeys=[]),(!se.inlineCollapsed&&de.inlineCollapsed||!se.siderCollapsed&&de.siderCollapsed)&&(ot.openKeys=xe.inlineOpenKeys,He.inlineOpenKeys=[])),Object.keys(ot).length&&Ie.setState(ot),He}}]),tt}(O.Component);cn.defaultProps={selectable:!0,onClick:Ge,onSelect:Ge,onOpenChange:Ge,onDeselect:Ge,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var mn=cn,zt=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){var ke;return Object(P.a)(this,tt),ke=Ve.apply(this,arguments),ke.onKeyDown=function(se){var xe=se.keyCode;return xe===c.a.ENTER?(ke.onClick(se),!0):void 0},ke.onMouseLeave=function(se){var xe=ke.props,de=xe.eventKey,Ie=xe.onItemHover,Be=xe.onMouseLeave;Ie({key:de,hover:!1}),Be({key:de,domEvent:se})},ke.onMouseEnter=function(se){var xe=ke.props,de=xe.eventKey,Ie=xe.onItemHover,Be=xe.onMouseEnter;Ie({key:de,hover:!0}),Be({key:de,domEvent:se})},ke.onClick=function(se){var xe=ke.props,de=xe.eventKey,Ie=xe.multiple,Be=xe.onClick,ot=xe.onSelect,He=xe.onDeselect,pt=xe.isSelected,At={key:de,keyPath:[de],item:Object(m.a)(ke),domEvent:se};Be(At),Ie?pt?He(At):ot(At):pt||ot(At)},ke.saveNode=function(se){ke.node=se},ke}return Object(T.a)(tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var se,xe=Object(z.a)({},this.props),de=W()(this.getPrefixCls(),xe.className,(se={},Object(re.a)(se,this.getActiveClassName(),!xe.disabled&&xe.active),Object(re.a)(se,this.getSelectedClassName(),xe.isSelected),Object(re.a)(se,this.getDisabledClassName(),xe.disabled),se)),Ie=Object(z.a)(Object(z.a)({},xe.attribute),{},{title:typeof xe.title=="string"?xe.title:void 0,className:de,role:xe.role||"menuitem","aria-disabled":xe.disabled});xe.role==="option"?Ie=Object(z.a)(Object(z.a)({},Ie),{},{role:"option","aria-selected":xe.isSelected}):(xe.role===null||xe.role==="none")&&(Ie.role="none");var Be={onClick:xe.disabled?null:this.onClick,onMouseLeave:xe.disabled?null:this.onMouseLeave,onMouseEnter:xe.disabled?null:this.onMouseEnter},ot=Object(z.a)({},xe.style);xe.mode==="inline"&&(xe.direction==="rtl"?ot.paddingRight=xe.inlineIndent*xe.level:ot.paddingLeft=xe.inlineIndent*xe.level),ue.forEach(function(pt){return delete xe[pt]}),delete xe.direction;var He=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(He=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object(b.a)({},Object(D.a)(xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ie,Be,{style:ot,ref:this.saveNode}),xe.children,He)}}]),tt}(O.Component);zt.isMenuItem=!0,zt.defaultProps={onSelect:Ge,onMouseEnter:Ge,onMouseLeave:Ge,manualRef:Ge};var Gt=Object(u.b)(function(Re,Ve){var tt=Re.activeKey,ke=Re.selectedKeys,se=Ve.eventKey,xe=Ve.subMenuKey;return{active:tt[xe]===se,isSelected:Array.isArray(ke)?ke.indexOf(se)!==-1:ke===se}})(zt),Lt=Gt,Ft=function(Re){Object(g.a)(tt,Re);var Ve=Object(s.a)(tt);function tt(){var ke;return Object(P.a)(this,tt),ke=Ve.apply(this,arguments),ke.renderInnerMenuItem=function(se){var xe=ke.props,de=xe.renderMenuItem,Ie=xe.index;return de(se,Ie,ke.props.subMenuKey)},ke}return Object(T.a)(tt,[{key:"render",value:function(){var se=Object(b.a)({},this.props),xe=se.className,de=xe===void 0?"":xe,Ie=se.rootPrefixCls,Be="".concat(Ie,"-item-group-title"),ot="".concat(Ie,"-item-group-list"),He=se.title,pt=se.children;return ue.forEach(function(At){return delete se[At]}),delete se.direction,O.createElement("li",Object(b.a)({},se,{onClick:function(Vt){return Vt.stopPropagation()},className:"".concat(de," ").concat(Ie,"-item-group")}),O.createElement("div",{className:Be,title:typeof He=="string"?He:void 0},He),O.createElement("ul",{className:ot},O.Children.map(pt,this.renderInnerMenuItem)))}}]),tt}(O.Component);Ft.isMenuItemGroup=!0,Ft.defaultProps={disabled:!0};var vn=Ft,On=function(Ve){var tt=Ve.className,ke=Ve.rootPrefixCls,se=Ve.style;return O.createElement("li",{className:"".concat(tt," ").concat(ke,"-item-divider"),style:se})};On.defaultProps={disabled:!0,className:"",style:{}};var cr=On,nr=mn,Zt=M("eDIo");function wr(Re,Ve){var tt=Re.prefixCls,ke=Re.editable,se=Re.locale,xe=Re.style;return!ke||ke.showAdd===!1?null:O.createElement("button",{ref:Ve,type:"button",className:"".concat(tt,"-nav-add"),style:xe,"aria-label":(se==null?void 0:se.addAriaLabel)||"Add tab",onClick:function(Ie){ke.onEdit("add",{event:Ie})}},ke.addIcon||"+")}var zn=O.forwardRef(wr);function zr(Re,Ve){var tt=Re.prefixCls,ke=Re.id,se=Re.tabs,xe=Re.locale,de=Re.mobile,Ie=Re.moreIcon,Be=Ie===void 0?"More":Ie,ot=Re.moreTransitionName,He=Re.style,pt=Re.className,At=Re.editable,Vt=Re.tabBarGutter,en=Re.rtl,En=Re.onTabClick,Ln=Object(O.useState)(!1),Zn=Object(G.a)(Ln,2),qn=Zn[0],fr=Zn[1],xr=Object(O.useState)(null),ir=Object(G.a)(xr,2),mr=ir[0],Tr=ir[1],Xn="".concat(ke,"-more-popup"),Nr="".concat(tt,"-dropdown"),Yn=mr!==null?"".concat(Xn,"-").concat(mr):null,sn=xe==null?void 0:xe.dropdownAriaLabel,xn=O.createElement(nr,{onClick:function(Xr){var kr=Xr.key,Wr=Xr.domEvent;En(kr,Wr),fr(!1)},id:Xn,tabIndex:-1,role:"listbox","aria-activedescendant":Yn,selectedKeys:[mr],"aria-label":sn!==void 0?sn:"expanded dropdown"},se.map(function(Mr){return O.createElement(Lt,{key:Mr.key,id:"".concat(Xn,"-").concat(Mr.key),role:"option","aria-controls":ke&&"".concat(ke,"-panel-").concat(Mr.key),disabled:Mr.disabled},Mr.tab)}));function hr(Mr){for(var Xr=se.filter(function(Zr){return!Zr.disabled}),kr=Xr.findIndex(function(Zr){return Zr.key===mr})||0,Wr=Xr.length,Fr=0;FrOr?(Pr=xn,Xn.current="x"):(Pr=hr,Xn.current="y");var Qr=Date.now();Qr-mr.current>100&&(Tr.current=!1),(Ve(-Pr,-Pr)||Tr.current)&&(sn.preventDefault(),Tr.current=!0),mr.current=Qr}var Yn=Object(O.useRef)(null);Yn.current={onTouchStart:fr,onTouchMove:xr,onTouchEnd:ir,onWheel:Nr},O.useEffect(function(){function sn(Kn){Yn.current.onTouchStart(Kn)}function xn(Kn){Yn.current.onTouchMove(Kn)}function hr(Kn){Yn.current.onTouchEnd(Kn)}function Pr(Kn){Yn.current.onWheel(Kn)}return document.addEventListener("touchmove",xn,{passive:!1}),document.addEventListener("touchend",hr,{passive:!1}),Re.current.addEventListener("touchstart",sn,{passive:!1}),Re.current.addEventListener("wheel",Pr),function(){document.removeEventListener("touchmove",xn),document.removeEventListener("touchend",hr)}},[])}function ba(){var Re=Object(O.useRef)(new Map);function Ve(ke){return Re.current.has(ke)||Re.current.set(ke,O.createRef()),Re.current.get(ke)}function tt(ke){Re.current.delete(ke)}return[Ve,tt]}function na(Re,Ve){var tt=O.useRef(Re),ke=O.useState({}),se=Object(G.a)(ke,2),xe=se[1];function de(Ie){var Be=typeof Ie=="function"?Ie(tt.current):Ie;Be!==tt.current&&Ve(Be,tt.current),tt.current=Be,xe({})}return[tt.current,de]}var va=function(Ve){var tt=Ve.position,ke=Ve.prefixCls,se=Ve.extra;if(!se)return null;var xe,de=se;return tt==="right"&&(xe=de.right||!de.left&&de||null),tt==="left"&&(xe=de.left||null),xe?O.createElement("div",{className:"".concat(ke,"-extra-content")},xe):null};function Za(Re,Ve){var tt,ke=O.useContext(Dr),se=ke.prefixCls,xe=ke.tabs,de=Re.className,Ie=Re.style,Be=Re.id,ot=Re.animated,He=Re.activeKey,pt=Re.rtl,At=Re.extra,Vt=Re.editable,en=Re.locale,En=Re.tabPosition,Ln=Re.tabBarGutter,Zn=Re.children,qn=Re.onTabClick,fr=Re.onTabScroll,xr=Object(O.useRef)(),ir=Object(O.useRef)(),mr=Object(O.useRef)(),Tr=Object(O.useRef)(),Xn=ba(),Nr=Object(G.a)(Xn,2),Yn=Nr[0],sn=Nr[1],xn=En==="top"||En==="bottom",hr=na(0,function(ta,jr){xn&&fr&&fr({direction:ta>jr?"left":"right"})}),Pr=Object(G.a)(hr,2),Kn=Pr[0],Or=Pr[1],Qr=na(0,function(ta,jr){!xn&&fr&&fr({direction:ta>jr?"top":"bottom"})}),Mr=Object(G.a)(Qr,2),Xr=Mr[0],kr=Mr[1],Wr=Object(O.useState)(0),Fr=Object(G.a)(Wr,2),rr=Fr[0],Zr=Fr[1],xa=Object(O.useState)(0),ha=Object(G.a)(xa,2),Ta=ha[0],aa=ha[1],qr=Object(O.useState)(0),ea=Object(G.a)(qr,2),ia=ea[0],Na=ea[1],jn=Object(O.useState)(0),hn=Object(G.a)(jn,2),Dn=hn[0],$r=hn[1],tr=Object(O.useState)(null),Lr=Object(G.a)(tr,2),ra=Lr[0],Da=Lr[1],Mi=Object(O.useState)(null),no=Object(G.a)(Mi,2),ui=no[0],wi=no[1],Si=Object(O.useState)(0),Ti=Object(G.a)(Si,2),ki=Ti[0],co=Ti[1],Do=Object(O.useState)(0),Gi=Object(G.a)(Do,2),Oi=Gi[0],Vi=Gi[1],yi=h(new Map),Di=Object(G.a)(yi,2),fo=Di[0],Xi=Di[1],Ri=l(xe,fo,rr),Ai="".concat(se,"-nav-operations-hidden"),bi=0,Wa=0;xn?pt?(bi=0,Wa=Math.max(0,rr-ra)):(bi=Math.min(0,ra-rr),Wa=0):(bi=Math.min(0,ui-Ta),Wa=0);function hi(ta){return taWa?[Wa,!1]:[ta,!0]}var pi=Object(O.useRef)(),Ei=Object(O.useState)(),mi=Object(G.a)(Ei,2),Yi=mi[0],$i=mi[1];function Ji(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}la(xr,function(ta,jr){var pa=!1;function za(Pi,di){Pi(function(Ui){var fi=hi(Ui+di),Ra=Object(G.a)(fi,2),Fi=Ra[0],Bi=Ra[1];return pa=Bi,Fi})}if(xn){if(ra>=rr)return pa;za(Or,ta)}else{if(ui>=Ta)return pa;za(kr,jr)}return Ii(),Ji(),pa}),Object(O.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ci(){var ta=arguments.length>0&&arguments[0]!==void 0?arguments[0]:He,jr=Ri.get(ta);if(!jr)return;if(xn){var pa=Kn;pt?jr.rightKn+ra&&(pa=jr.right+jr.width-ra):jr.left<-Kn?pa=-jr.left:jr.left+jr.width>-Kn+ra&&(pa=-(jr.left+jr.width-ra)),kr(0),Or(hi(pa)[0])}else{var za=Xr;jr.top<-Xr?za=-jr.top:jr.top+jr.height>-Xr+ui&&(za=-(jr.top+jr.height-ui)),Or(0),kr(hi(za)[0])}}var _i=E(Ri,{width:ra,height:ui,left:Kn,top:Xr},{width:ia,height:Dn},{width:ki,height:Oi},Object(z.a)(Object(z.a)({},Re),{},{tabs:xe})),ro=Object(G.a)(_i,2),Ro=ro[0],Ao=ro[1],ho=xe.map(function(ta){var jr=ta.key;return O.createElement(r,{id:Be,prefixCls:se,key:jr,rtl:pt,tab:ta,closable:ta.closable,editable:Vt,active:jr===He,tabPosition:En,tabBarGutter:Ln,renderWrapper:Zn,removeAriaLabel:en==null?void 0:en.removeAriaLabel,ref:Yn(jr),onClick:function(za){qn(jr,za)},onRemove:function(){sn(jr)},onFocus:function(){ci(jr),Ji(),pt||(xr.current.scrollLeft=0),xr.current.scrollTop=0}})}),ao=v(function(){var ta,jr,pa,za,Pi,di,Ui,fi,Ra,Fi=((ta=xr.current)===null||ta===void 0?void 0:ta.offsetWidth)||0,Bi=((jr=xr.current)===null||jr===void 0?void 0:jr.offsetHeight)||0,Wi=((pa=Tr.current)===null||pa===void 0?void 0:pa.offsetWidth)||0,Ya=((za=Tr.current)===null||za===void 0?void 0:za.offsetHeight)||0,Jr=((Pi=mr.current)===null||Pi===void 0?void 0:Pi.offsetWidth)||0,br=((di=mr.current)===null||di===void 0?void 0:di.offsetHeight)||0;Da(Fi),wi(Bi),co(Wi),Vi(Ya);var Mn=(((Ui=ir.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Wi,Jn=(((fi=ir.current)===null||fi===void 0?void 0:fi.offsetHeight)||0)-Ya;Zr(Mn),aa(Jn);var Ir=(Ra=mr.current)===null||Ra===void 0?void 0:Ra.className.includes(Ai);Na(Mn-(Ir?0:Jr)),$r(Jn-(Ir?0:br)),Xi(function(){var da=new Map;return xe.forEach(function(vi){var si=vi.key,Ua=Yn(si).current;Ua&&da.set(si,{width:Ua.offsetWidth,height:Ua.offsetHeight,left:Ua.offsetLeft,top:Ua.offsetTop})}),da})}),po=xe.slice(0,Ro),Xa=xe.slice(Ao+1),Ca=[].concat(Object(R.a)(po),Object(R.a)(Xa)),ja=Object(O.useState)(),wa=Object(G.a)(ja,2),Ni=wa[0],mo=wa[1],ti=Ri.get(He),io=Object(O.useRef)();function oo(){p.a.cancel(io.current)}Object(O.useEffect)(function(){var ta={};return ti&&(xn?(pt?ta.right=ti.right:ta.left=ti.left,ta.width=ti.width):(ta.top=ti.top,ta.height=ti.height)),oo(),io.current=p()(function(){mo(ta)}),oo},[ti,xn,pt]),Object(O.useEffect)(function(){ci()},[He,ti,Ri,xn]),Object(O.useEffect)(function(){ao()},[pt,Ln,He,xe.map(function(ta){return ta.key}).join("_")]);var so=!!Ca.length,xi="".concat(se,"-nav-wrap"),Qi,ji,vo,Zi;return xn?pt?(ji=Kn>0,Qi=Kn+ra */Ce.read=function(M,re,G,I,z){var O,w,W=z*8-I-1,y=(1<>1,R=-7,d=G?z-1:0,p=G?-1:1,_=M[re+d];for(d+=p,O=_&(1<<-R)-1,_>>=-R,R+=W;R>0;O=O*256+M[re+d],d+=p,R-=8);for(w=O&(1<<-R)-1,O>>=-R,R+=I;R>0;w=w*256+M[re+d],d+=p,R-=8);if(O===0)O=1-L;else{if(O===y)return w?NaN:(_?-1:1)*Infinity;w=w+Math.pow(2,I),O=O-L}return(_?-1:1)*w*Math.pow(2,O-I)},Ce.write=function(M,re,G,I,z,O){var w,W,y,L=O*8-z-1,R=(1<>1,p=z===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=I?0:O-1,v=I?1:-1,h=re<0||re===0&&1/re<0?1:0;for(re=Math.abs(re),isNaN(re)||re===Infinity?(W=isNaN(re)?1:0,w=R):(w=Math.floor(Math.log(re)/Math.LN2),re*(y=Math.pow(2,-w))<1&&(w--,y*=2),w+d>=1?re+=p/y:re+=p*Math.pow(2,1-d),re*y>=2&&(w++,y/=2),w+d>=R?(W=0,w=R):w+d>=1?(W=(re*y-1)*Math.pow(2,z),w=w+d):(W=re*Math.pow(2,d-1)*Math.pow(2,z),w=0));z>=8;M[G+_]=W&255,_+=v,W/=256,z-=8);for(w=w<0;M[G+_]=w&255,_+=v,w/=256,L-=8);M[G+_-v]|=h*128}},lZu9:function(tn,Ce,M){(function(re){re(M("VrN/"),M("1eCo"),M("8EBN"))})(function(re){"use strict";re.defineMode("markdown",function(G,I){var z=re.getMode(G,"text/html"),O=z.name=="null";function w(U){if(re.findModeByName){var B=re.findModeByName(U);B&&(U=B.mime||B.mimes[0])}var q=re.getMode(G,U);return q.name=="null"?null:q}I.highlightFormatting===void 0&&(I.highlightFormatting=!1),I.maxBlockquoteDepth===void 0&&(I.maxBlockquoteDepth=0),I.taskLists===void 0&&(I.taskLists=!1),I.strikethrough===void 0&&(I.strikethrough=!1),I.emoji===void 0&&(I.emoji=!1),I.fencedCodeBlockHighlighting===void 0&&(I.fencedCodeBlockHighlighting=!0),I.fencedCodeBlockDefaultMode===void 0&&(I.fencedCodeBlockDefaultMode="text/plain"),I.xml===void 0&&(I.xml=!0),I.tokenTypeOverrides===void 0&&(I.tokenTypeOverrides={});var W={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var y in W)W.hasOwnProperty(y)&&I.tokenTypeOverrides[y]&&(W[y]=I.tokenTypeOverrides[y]);var L=/^([*\-_])(?:\s*\1){2,}\s*$/,R=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,d=/^\[(x| )\](?=\s)/i,p=I.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_=/^ {0,3}(?:\={1,}|-{2,})\s*$/,v=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\s*\[[^\]]+?\]:.*$/,n=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function o(U,B,q){return B.f=B.inline=q,q(U,B)}function l(U,B,q){return B.f=B.block=q,q(U,B)}function x(U){return!U||!/\S/.test(U.string)}function E(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==P){var B=O;if(!B){var q=re.innerMode(z,U.htmlState);B=q.mode.name=="xml"&&q.state.tagStart===null&&!q.state.context&&q.state.tokenize.isInText}B&&(U.f=s,U.block=b,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function b(U,B){var q=U.column()===B.indentation,ee=x(B.prevLine.stream),he=B.indentedCode,ye=B.prevLine.hr,Ye=B.list!==!1,Pe=(B.listStack[B.listStack.length-1]||0)+3;B.indentedCode=!1;var je=B.indentation;if(B.indentationDiff===null&&(B.indentationDiff=B.indentation,Ye)){for(B.list=null;je=4&&(he||B.prevLine.fencedCodeEnd||B.prevLine.header||ee))return U.skipToEnd(),B.indentedCode=!0,W.code;if(U.eatSpace())return null;if(q&&B.indentation<=Pe&&(Ae=U.match(p))&&Ae[1].length<=6)return B.quote=0,B.header=Ae[1].length,B.thisLine.header=!0,I.highlightFormatting&&(B.formatting="header"),B.f=B.inline,m(B);if(B.indentation<=Pe&&U.eat(">"))return B.quote=q?1:B.quote+1,I.highlightFormatting&&(B.formatting="quote"),U.eatSpace(),m(B);if(!Qe&&!B.setext&&q&&B.indentation<=Pe&&(Ae=U.match(R))){var me=Ae[1]?"ol":"ul";return B.indentation=je+U.current().length,B.list=!0,B.quote=0,B.listStack.push(B.indentation),B.em=!1,B.strong=!1,B.code=!1,B.strikethrough=!1,I.taskLists&&U.match(d,!1)&&(B.taskList=!0),B.f=B.inline,I.highlightFormatting&&(B.formatting=["list","list-"+me]),m(B)}else{if(q&&B.indentation<=Pe&&(Ae=U.match(h,!0)))return B.quote=0,B.fencedEndRE=new RegExp(Ae[1]+"+ *$"),B.localMode=I.fencedCodeBlockHighlighting&&w(Ae[2]||I.fencedCodeBlockDefaultMode),B.localMode&&(B.localState=re.startState(B.localMode)),B.f=B.block=T,I.highlightFormatting&&(B.formatting="code-block"),B.code=-1,m(B);if(B.setext||(!Ze||!Ye)&&!B.quote&&B.list===!1&&!B.code&&!Qe&&!c.test(U.string)&&(Ae=U.lookAhead(1))&&(Ae=Ae.match(_)))return B.setext?(B.header=B.setext,B.setext=0,U.skipToEnd(),I.highlightFormatting&&(B.formatting="header")):(B.header=Ae[0].charAt(0)=="="?1:2,B.setext=B.header),B.thisLine.header=!0,B.f=B.inline,m(B);if(Qe)return U.skipToEnd(),B.hr=!0,B.thisLine.hr=!0,W.hr;if(U.peek()==="[")return o(U,B,N)}return o(U,B,B.inline)}function P(U,B){var q=z.token(U,B.htmlState);if(!O){var ee=re.innerMode(z,B.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||B.md_inside&&U.current().indexOf(">")>-1)&&(B.f=s,B.block=b,B.htmlState=null)}return q}function T(U,B){var q=B.listStack[B.listStack.length-1]||0,ee=B.indentation=U.quote?B.push(W.formatting+"-"+U.formatting[q]+"-"+U.quote):B.push("error"))}if(U.taskOpen)return B.push("meta"),B.length?B.join(" "):null;if(U.taskClosed)return B.push("property"),B.length?B.join(" "):null;if(U.linkHref?B.push(W.linkHref,"url"):(U.strong&&B.push(W.strong),U.em&&B.push(W.em),U.strikethrough&&B.push(W.strikethrough),U.emoji&&B.push(W.emoji),U.linkText&&B.push(W.linkText),U.code&&B.push(W.code),U.image&&B.push(W.image),U.imageAltText&&B.push(W.imageAltText,"link"),U.imageMarker&&B.push(W.imageMarker)),U.header&&B.push(W.header,W.header+"-"+U.header),U.quote&&(B.push(W.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=U.quote?B.push(W.quote+"-"+U.quote):B.push(W.quote+"-"+I.maxBlockquoteDepth)),U.list!==!1){var ee=(U.listStack.length-1)%3;ee?ee===1?B.push(W.list2):B.push(W.list3):B.push(W.list1)}return U.trailingSpaceNewLine?B.push("trailing-space-new-line"):U.trailingSpace&&B.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),B.length?B.join(" "):null}function g(U,B){return U.match(v,!0)?m(B):void 0}function s(U,B){var q=B.text(U,B);if(typeof q!="undefined")return q;if(B.list)return B.list=null,m(B);if(B.taskList){var ee=U.match(d,!0)[1]===" ";return ee?B.taskOpen=!0:B.taskClosed=!0,I.highlightFormatting&&(B.formatting="task"),B.taskList=!1,m(B)}if(B.taskOpen=!1,B.taskClosed=!1,B.header&&U.match(/^#+$/,!0))return I.highlightFormatting&&(B.formatting="header"),m(B);var he=U.next();if(B.linkTitle){B.linkTitle=!1;var ye=he;he==="("&&(ye=")"),ye=(ye+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+ye+"\\\\]+|\\\\\\\\|\\\\.)"+ye;if(U.match(new RegExp(Ye),!0))return W.linkHref}if(he==="`"){var Pe=B.formatting;I.highlightFormatting&&(B.formatting="code"),U.eatWhile("`");var je=U.current().length;if(B.code==0&&(!B.quote||je==1))return B.code=je,m(B);if(je==B.code){var Ze=m(B);return B.code=0,Ze}else return B.formatting=Pe,m(B)}else if(B.code)return m(B);if(he==="\\"&&(U.next(),I.highlightFormatting)){var Qe=m(B),Ae=W.formatting+"-escape";return Qe?Qe+" "+Ae:Ae}if(he==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return B.imageMarker=!0,B.image=!0,I.highlightFormatting&&(B.formatting="image"),m(B);if(he==="["&&B.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return B.imageMarker=!1,B.imageAltText=!0,I.highlightFormatting&&(B.formatting="image"),m(B);if(he==="]"&&B.imageAltText){I.highlightFormatting&&(B.formatting="image");var Qe=m(B);return B.imageAltText=!1,B.image=!1,B.inline=B.f=D,Qe}if(he==="["&&!B.image)return B.linkText&&U.match(/^.*?\]/)||(B.linkText=!0,I.highlightFormatting&&(B.formatting="link")),m(B);if(he==="]"&&B.linkText){I.highlightFormatting&&(B.formatting="link");var Qe=m(B);return B.linkText=!1,B.inline=B.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?D:s,Qe}if(he==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=u,I.highlightFormatting&&(B.formatting="link");var Qe=m(B);return Qe?Qe+=" ":Qe="",Qe+W.linkInline}if(he==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=u,I.highlightFormatting&&(B.formatting="link");var Qe=m(B);return Qe?Qe+=" ":Qe="",Qe+W.linkEmail}if(I.xml&&he==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=U.string.indexOf(">",U.pos);if(me!=-1){var ie=U.string.substring(U.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ie)&&(B.md_inside=!0)}return U.backUp(1),B.htmlState=re.startState(z),l(U,B,P)}if(I.xml&&he==="<"&&U.match(/^\/\w*?>/))return B.md_inside=!1,"tag";if(he==="*"||he==="_"){for(var Oe=1,ve=U.pos==1?" ":U.string.charAt(U.pos-2);Oe<3&&U.eat(he);)Oe++;var Ge=U.peek()||" ",pe=!/\s/.test(Ge)&&(!n.test(Ge)||/\s/.test(ve)||n.test(ve)),J=!/\s/.test(ve)&&(!n.test(ve)||/\s/.test(Ge)||n.test(Ge)),V=null,X=null;if(Oe%2&&(!B.em&&pe&&(he==="*"||!J||n.test(ve))?V=!0:B.em==he&&J&&(he==="*"||!pe||n.test(Ge))&&(V=!1)),Oe>1&&(!B.strong&&pe&&(he==="*"||!J||n.test(ve))?X=!0:B.strong==he&&J&&(he==="*"||!pe||n.test(Ge))&&(X=!1)),X!=null||V!=null){I.highlightFormatting&&(B.formatting=V==null?"strong":X==null?"em":"strong em"),V===!0&&(B.em=he),X===!0&&(B.strong=he);var Ze=m(B);return V===!1&&(B.em=!1),X===!1&&(B.strong=!1),Ze}}else if(he===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return m(B);U.backUp(1)}if(I.strikethrough){if(he==="~"&&U.eatWhile(he)){if(B.strikethrough){I.highlightFormatting&&(B.formatting="strikethrough");var Ze=m(B);return B.strikethrough=!1,Ze}else if(U.match(/^[^\s]/,!1))return B.strikethrough=!0,I.highlightFormatting&&(B.formatting="strikethrough"),m(B)}else if(he===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return m(B);U.backUp(2)}}if(I.emoji&&he===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){B.emoji=!0,I.highlightFormatting&&(B.formatting="emoji");var ue=m(B);return B.emoji=!1,ue}return he===" "&&(U.match(/^ +$/,!1)?B.trailingSpace++:B.trailingSpace&&(B.trailingSpaceNewLine=!0)),m(B)}function u(U,B){var q=U.next();if(q===">"){B.f=B.inline=s,I.highlightFormatting&&(B.formatting="link");var ee=m(B);return ee?ee+=" ":ee="",ee+W.linkInline}return U.match(/^[^>]+/,!0),W.linkInline}function D(U,B){if(U.eatSpace())return null;var q=U.next();return q==="("||q==="["?(B.f=B.inline=A(q==="("?")":"]"),I.highlightFormatting&&(B.formatting="link-string"),B.linkHref=!0,m(B)):"error"}var S={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function A(U){return function(B,q){var ee=B.next();if(ee===U){q.f=q.inline=s,I.highlightFormatting&&(q.formatting="link-string");var he=m(q);return q.linkHref=!1,he}return B.match(S[U]),q.linkHref=!0,m(q)}}function N(U,B){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(B.f=j,U.next(),I.highlightFormatting&&(B.formatting="link"),B.linkText=!0,m(B)):o(U,B,s)}function j(U,B){if(U.match(/^\]:/,!0)){B.f=B.inline=K,I.highlightFormatting&&(B.formatting="link");var q=m(B);return B.linkText=!1,q}return U.match(/^([^\]\\]|\\.)+/,!0),W.linkText}function K(U,B){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?B.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),B.f=B.inline=s,W.linkHref+" url")}var H={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:s,text:g,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&re.copyState(z,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?re.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,B){if(B.formatting=!1,U!=B.thisLine.stream){if(B.header=0,B.hr=!1,U.match(/^\s*$/,!0))return E(B),null;if(B.prevLine=B.thisLine,B.thisLine={stream:U},B.taskList=!1,B.trailingSpace=0,B.trailingSpaceNewLine=!1,!B.localState&&(B.f=B.block,B.f!=P)){var q=U.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(B.indentation=q,B.indentationDiff=null,q>0)return null}}return B.f(U,B)},innerMode:function(U){return U.block==P?{state:U.htmlState,mode:z}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:H}},indent:function(U,B,q){return U.block==P&&z.indent?z.indent(U.htmlState,B,q):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,B,q):re.Pass},blankLine:E,getType:m,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},mgmH:function(tn,Ce,M){"use strict";M.d(Ce,"d",function(){return _}),M.d(Ce,"b",function(){return v}),M.d(Ce,"e",function(){return h}),M.d(Ce,"c",function(){return c}),M.d(Ce,"n",function(){return n}),M.d(Ce,"g",function(){return r}),M.d(Ce,"h",function(){return o}),M.d(Ce,"j",function(){return x}),M.d(Ce,"a",function(){return E}),M.d(Ce,"l",function(){return b}),M.d(Ce,"f",function(){return P}),M.d(Ce,"k",function(){return T}),M.d(Ce,"m",function(){return m}),M.d(Ce,"i",function(){return g}),M.d(Ce,"o",function(){return s}),M.d(Ce,"r",function(){return u}),M.d(Ce,"q",function(){return D}),M.d(Ce,"p",function(){return S});var re=M("miYZ"),G=M("tsqr"),I=M("k1fw"),z=M("9og8"),O=M("WmNS"),w=M.n(O),W=M("oUNq"),y=M("9kvl"),L=M("1vsH"),R=M("m3rI"),d=function(){Object(y.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},p=function(){Object(y.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},_=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return d(),U.next=3,Object(W.s)(Object(I.a)({},j));case 3:if(K=U.sent,!(K.status===0)){U.next=7;break}return U.next=7,Object(L.u)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/export_couser_info.json"),query:j}));case 7:p();case 8:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),v=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.q)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_member_act_score")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),h=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.t)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_score")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_score")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),c=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.r)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),n=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.y)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),r=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.u)(Object(I.a)({},j));case 2:if(K=U.sent,!(K.status===0)){U.next=8;break}G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_homework")),U.next=13;break;case 8:if(!(K.status===-2)){U.next=12;break}return U.abrupt("return",K);case 12:K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),o=function(){var A=Object(z.a)(w.a.mark(function N(j,K){var H;return w.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,Object(W.w)(Object(I.a)({},j));case 2:H=B.sent,H.status===0?(G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/").concat(K))):H.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/").concat(K)));case 4:case"end":return B.stop()}},N)}));return function(j,K){return A.apply(this,arguments)}}(),l=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return d(),U.next=3,Object(W.v)(Object(I.a)({},j));case 3:if(K=U.sent,!(K.status===0)){U.next=7;break}return U.next=7,Object(L.u)("",Object(L.U)({url:R.a.API_SERVER+"/api/homework_commons/".concat(j.categoryId,"/works_list.zip"),query:j}));case 7:p();case 8:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),x=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return d(),U.next=3,Object(W.z)(Object(I.a)({},j));case 3:if(K=U.sent,!(K.status===0)){U.next=7;break}return U.next=7,Object(L.u)("",Object(L.U)({url:R.a.API_SERVER+"/api/polls/".concat(j.categoryId,"/commit_result.xlsx"),query:j}));case 7:p();case 8:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),E=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/attendances/export_xlsx_data.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),b=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/video_study_statics.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),P=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/courses/".concat(j.coursesId,"/export_course_students_info.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),T=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/item_banks/export.xlsx",query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),m=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),g=function(){var A=Object(z.a)(w.a.mark(function N(j){var K;return w.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(W.x)(Object(I.a)({},j));case 2:K=U.sent,K.status===0?(G.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/exercise_score"))):K.status===-3&&(Object(y.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),y.d.push("/classrooms/".concat(j.coursesId,"/exportlist/exercise_score")));case 4:case"end":return U.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),s=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),H.next=3,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/export_records/".concat(j.id,".xlsx"),query:j}));case 3:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),u=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),D=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/ec_years/".concat(j==null?void 0:j.ec_year_id,"/ec_training_objectives.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}(),S=function(){var A=Object(z.a)(w.a.mark(function N(j){return w.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(L.t)("",Object(L.U)({url:R.a.API_SERVER+"/api/ec_years/".concat(j==null?void 0:j.ec_year_id,"/ec_graduation_requirements.xlsx"),query:j}));case 2:case"end":return H.stop()}},N)}));return function(j){return A.apply(this,arguments)}}()},n6Qo:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return y});var re=M("q1tI"),G=M("biw7"),I=M("fyJ8");function z(L){var R=L.className,d=L.index,p=L.children,_=L.colSpan,v=L.rowSpan,h=re.useContext(G.a),c=h.prefixCls,n=h.fixedInfoList,r=n[d];return re.createElement(I.a,Object.assign({className:R,index:d,component:"td",prefixCls:c,record:null,dataIndex:null,render:function(){return{children:p,props:{colSpan:_,rowSpan:v}}}},r))}function O(L){return re.createElement("tr",Object.assign({},L))}function w(L){var R=L.children,d=re.useContext(G.a),p=d.prefixCls;return re.createElement("tfoot",{className:"".concat(p,"-summary")},R)}var W=Ce.b=w,y={Cell:z,Row:O}},nnTU:function(tn,Ce,M){"use strict";M.d(Ce,"b",function(){return y}),M.d(Ce,"a",function(){return L});var re=M("pmY6"),G=M("746U"),I=M("Cg/j"),z=M("MI8n"),O=M("24hK"),w=M("QDVR"),W=function(){for(var R=0,d=0,p=arguments.length;d2&&arguments[2]!==void 0?arguments[2]:"0",ze=String(te);ze.length=12,mn%=12);var On=y.useMemo(function(){if(!nt)return[!1,!1];var Pn=[!0,!0];return vn.forEach(function(Bn){var Vn=Bn.disabled,Yr=Bn.value;if(Vn)return;Yr>=12?Pn[1]=!1:Pn[0]=!1}),Pn},[nt,vn]),cr=Object(W.a)(On,2),nr=cr[0],Zt=cr[1],wr=y.useMemo(function(){return nt?vn.filter(cn?function(Pn){return Pn.value>=12}:function(Pn){return Pn.value<12}).map(function(Pn){var Bn=Pn.value%12,Vn=Bn===0?"12":ee(Bn,2);return Object(w.a)(Object(w.a)({},Pn),{},{label:Vn,value:Bn})}):vn},[nt,vn]),zn=me(0,59,Et,dt&&dt(mn)),zr=me(0,59,Nt,gn&&gn(mn,zt));ze.current={onUpDown:function(Bn){var Vn=Ut[ut];if(Vn)for(var Yr=Vn.units.findIndex(function(na){return na.value===Vn.value}),sa=Vn.units.length,la=1;la1&&(bt=De.addDate(bt,-7)),bt}function qe(te,De,Xe){var ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(De){case"year":return Xe.addYear(te,ze*10);case"quarter":case"month":return Xe.addYear(te,ze);default:return Xe.addMonth(te,ze)}}var Ue=y.createContext({}),vt=Ue;function Mt(te){var De=te.cellPrefixCls,Xe=te.generateConfig,ze=te.rangedValue,ut=te.hoverRangedValue,et=te.isInView,bt=te.isSameCell,ht=te.offsetCell,Tt=te.today,nt=te.value;function Yt(ct){var be,Et=ht(ct,-1),rt=ht(ct,1),Nt=Pe(ze,0),Dt=Pe(ze,1),dt=Pe(ut,0),gn=Pe(ut,1),kn=Qt(Xe,dt,gn,ct);function on(zt){return bt(Nt,zt)}function Ut(zt){return bt(Dt,zt)}var rn=bt(dt,ct),In=bt(gn,ct),cn=(kn||In)&&(!et(Et)||Ut(Et)),mn=(kn||rn)&&(!et(rt)||on(rt));return be={},Object(O.a)(be,"".concat(De,"-in-view"),et(ct)),Object(O.a)(be,"".concat(De,"-in-range"),Qt(Xe,Nt,Dt,ct)),Object(O.a)(be,"".concat(De,"-range-start"),on(ct)),Object(O.a)(be,"".concat(De,"-range-end"),Ut(ct)),Object(O.a)(be,"".concat(De,"-range-start-single"),on(ct)&&!Dt),Object(O.a)(be,"".concat(De,"-range-end-single"),Ut(ct)&&!Nt),Object(O.a)(be,"".concat(De,"-range-start-near-hover"),on(ct)&&(bt(Et,dt)||Qt(Xe,dt,gn,Et))),Object(O.a)(be,"".concat(De,"-range-end-near-hover"),Ut(ct)&&(bt(rt,gn)||Qt(Xe,dt,gn,rt))),Object(O.a)(be,"".concat(De,"-range-hover"),kn),Object(O.a)(be,"".concat(De,"-range-hover-start"),rn),Object(O.a)(be,"".concat(De,"-range-hover-end"),In),Object(O.a)(be,"".concat(De,"-range-hover-edge-start"),cn),Object(O.a)(be,"".concat(De,"-range-hover-edge-end"),mn),Object(O.a)(be,"".concat(De,"-range-hover-edge-start-near-range"),cn&&bt(Et,Dt)),Object(O.a)(be,"".concat(De,"-range-hover-edge-end-near-range"),mn&&bt(rt,Nt)),Object(O.a)(be,"".concat(De,"-today"),bt(Tt,ct)),Object(O.a)(be,"".concat(De,"-selected"),bt(nt,ct)),be}return Yt}function st(te){for(var De=te.prefixCls,Xe=te.disabledDate,ze=te.onSelect,ut=te.rowNum,et=te.colNum,bt=te.prefixColumn,ht=te.rowClassName,Tt=te.baseDate,nt=te.getCellClassName,Yt=te.getCellText,ct=te.getCellNode,be=te.getCellDate,Et=te.titleCell,rt=te.headerCells,Nt=y.useContext(c),Dt=Nt.onDateMouseEnter,dt=Nt.onDateMouseLeave,gn="".concat(De,"-cell"),kn=[],on=0;on2&&arguments[2]!==void 0?arguments[2]:!1;(Ie===Nt||hr)&&(Ia(sn),In&&In(sn),sa&&sa(sn,xn),cn&&!kt(ht,sn,ya)&&cn(sn))},En=function(sn){return _a.current&&_a.current.onKeyDown?([v.a.LEFT,v.a.RIGHT,v.a.UP,v.a.DOWN,v.a.PAGE_UP,v.a.PAGE_DOWN,v.a.ENTER].includes(sn.which)&&sn.preventDefault(),_a.current.onKeyDown(sn)):(Object(d.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Ln=function(sn){_a.current&&_a.current.onBlur&&_a.current.onBlur(sn)};Vn&&Za!=="right"&&(Vn.current={onKeyDown:En,onClose:function(){_a.current&&_a.current.onClose&&_a.current.onClose()}}),y.useEffect(function(){Tt&&!Ka.current&&tt(Tt)},[Tt]),y.useEffect(function(){Ka.current=!1},[]);var Zn,qn=Object(w.a)(Object(w.a)({},te),{},{operationRef:_a,prefixCls:ze,viewDate:Ve,value:ya,onViewDateChange:ke,sourceMode:pt,onPanelChange:Vt,disabledDate:Ie!=="decade"?be:void 0});delete qn.onChange,delete qn.onSelect;switch(Ie){case"decade":Zn=y.createElement(C,Object.assign({},qn,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}}));break;case"year":Zn=y.createElement(Kr,Object.assign({},qn,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}}));break;case"month":Zn=y.createElement(yt,Object.assign({},qn,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}}));break;case"quarter":Zn=y.createElement(_n,Object.assign({},qn,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}}));break;case"week":Zn=y.createElement(pn,Object.assign({},qn,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}}));break;case"time":delete qn.showTime,Zn=y.createElement(pe,Object.assign({},qn,Object(_.a)(kn)==="object"?kn:null,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}}));break;default:kn?Zn=y.createElement(jt,Object.assign({},qn,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}})):Zn=y.createElement(_e,Object.assign({},qn,{onSelect:function(sn,xn){ke(sn),en(sn,xn)}}))}var fr,xr,ir=function(){var sn=ht.getNow(),xn=Qe(ht.getHour(sn),ht.getMinute(sn),ht.getSecond(sn),Gr?cr:1,Dr?Zt:1,Pn?zn:1),hr=Ze(ht,sn,xn[0],xn[1],xn[2]);en(hr,"submit")};la||(fr=k(ze,Ie,Ut),xr=$({prefixCls:ze,components:Ft,needConfirmButton:zr,okDisabled:!ya||be&&be(ya),locale:bt,showNow:gn,onNow:zr&&ir,onOk:function(){ya&&(en(ya,"submit",!0),Lt&&Lt(ya))}}));var mr;if(on&&Ie==="date"&&Nt==="date"&&!kn){var Tr=ht.getNow(),Xn="".concat(ze,"-today-btn"),Nr=be&&be(Tr);mr=y.createElement("a",{className:R()(Xn,Nr&&"".concat(Xn,"-disabled")),"aria-disabled":Nr,onClick:function(){Nr||en(Tr,"mouse",!0)}},bt.today)}return y.createElement(c.Provider,{value:Object(w.a)(Object(w.a)({},Bn),{},{hideHeader:"hideHeader"in te?rn:Bn.hideHeader,hidePrevBtn:va&&Za==="right",hideNextBtn:va&&Za==="left"})},y.createElement("div",{tabIndex:dt,className:R()("".concat(ze,"-panel"),ut,(De={},Object(O.a)(De,"".concat(ze,"-panel-has-range"),ka&&ka[0]&&ka[1]),Object(O.a)(De,"".concat(ze,"-panel-has-range-hover"),Ea&&Ea[0]&&Ea[1]),Object(O.a)(De,"".concat(ze,"-panel-rtl"),vn==="rtl"),De)),style:et,onKeyDown:En,onBlur:Ln,onMouseDown:zt,ref:Yr},Zn,fr||xr||mr?y.createElement("div",{className:"".concat(ze,"-footer")},fr,xr,mr):null))}var Y=ne,we=M("uciX"),mt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function It(te){var De,Xe=te.prefixCls,ze=te.popupElement,ut=te.popupStyle,et=te.visible,bt=te.dropdownClassName,ht=te.dropdownAlign,Tt=te.transitionName,nt=te.getPopupContainer,Yt=te.children,ct=te.range,be=te.popupPlacement,Et=te.direction,rt="".concat(Xe,"-dropdown"),Nt=function(){return be!==void 0?be:Et==="rtl"?"bottomRight":"bottomLeft"};return y.createElement(we.a,{showAction:[],hideAction:[],popupPlacement:Nt(),builtinPlacements:mt,prefixCls:rt,popupTransitionName:Tt,popup:ze,popupAlign:ht,popupVisible:et,popupClassName:R()(bt,(De={},Object(O.a)(De,"".concat(rt,"-range"),ct),Object(O.a)(De,"".concat(rt,"-rtl"),Et==="rtl"),De)),popupStyle:ut,getPopupContainer:nt},Yt)}var ln=It;function Ot(te){var De=te.open,Xe=te.value,ze=te.isClickOutside,ut=te.triggerOpen,et=te.forwardKeyDown,bt=te.blurToCancel,ht=te.onSubmit,Tt=te.onCancel,nt=te.onFocus,Yt=te.onBlur,ct=Object(y.useState)(!1),be=Object(W.a)(ct,2),Et=be[0],rt=be[1],Nt=Object(y.useState)(!1),Dt=Object(W.a)(Nt,2),dt=Dt[0],gn=Dt[1],kn=Object(y.useRef)(!1),on=Object(y.useRef)(!1),Ut={onMouseDown:function(){rt(!0),ut(!0)},onKeyDown:function(In){switch(In.which){case v.a.ENTER:{De?ht()!==!1&&rt(!0):ut(!0),In.preventDefault();return}case v.a.TAB:{Et&&De&&!In.shiftKey?(rt(!1),In.preventDefault()):!Et&&De&&(!et(In)&&In.shiftKey&&(rt(!0),In.preventDefault()));return}case v.a.ESC:{rt(!0),Tt();return}}!De&&![v.a.SHIFT].includes(In.which)?ut(!0):Et||et(In)},onFocus:function(In){rt(!0),gn(!0),nt&&nt(In)},onBlur:function(In){if(kn.current||!ze(document.activeElement)){kn.current=!1;return}bt?setTimeout(function(){ze(document.activeElement)&&Tt()},0):De&&(ut(!1),on.current&&ht()),gn(!1),Yt&&Yt(In)}};return Object(y.useEffect)(function(){on.current=!1},[De]),Object(y.useEffect)(function(){on.current=!0},[Xe]),Object(y.useEffect)(function(){return S(function(rn){var In=rn.target;De&&(ze(In)?dt||ut(!1):(kn.current=!0,requestAnimationFrame(function(){kn.current=!1})))})}),[Ut,{focused:dt,typing:Et}]}function yn(te){var De=te.valueTexts,Xe=te.onTextChange,ze=y.useState(""),ut=Object(W.a)(ze,2),et=ut[0],bt=ut[1],ht=y.useRef([]);ht.current=De;function Tt(Yt){bt(Yt),Xe(Yt)}function nt(){bt(ht.current[0])}return y.useEffect(function(){De.every(function(Yt){return Yt!==et})&&nt()},[De.join("||")]),[et,Tt,nt]}var bn=M("Gytx"),Tn=M.n(bn);function pr(te,De){var Xe=De.formatList,ze=De.generateConfig,ut=De.locale;return Object(E.a)(function(){if(!te)return[[""],""];for(var et="",bt=[],ht=0;ht1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(nt.current),dt){Tt(Dt);return}nt.current=requestAnimationFrame(function(){Tt(Dt)})}var ct=pr(ht,{formatList:Xe,generateConfig:ze,locale:ut}),be=Object(W.a)(ct,2),Et=be[1];function rt(Dt){Yt(Dt)}function Nt(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Yt(null,Dt)}return Object(y.useEffect)(function(){Nt(!0)},[te]),Object(y.useEffect)(function(){return function(){return cancelAnimationFrame(nt.current)}},[]),[Et,rt,Nt]}function Un(te){var De,Xe=te.prefixCls,ze=Xe===void 0?"rc-picker":Xe,ut=te.id,et=te.tabIndex,bt=te.style,ht=te.className,Tt=te.dropdownClassName,nt=te.dropdownAlign,Yt=te.popupStyle,ct=te.transitionName,be=te.generateConfig,Et=te.locale,rt=te.inputReadOnly,Nt=te.allowClear,Dt=te.autoFocus,dt=te.showTime,gn=te.picker,kn=gn===void 0?"date":gn,on=te.format,Ut=te.use12Hours,rn=te.value,In=te.defaultValue,cn=te.open,mn=te.defaultOpen,zt=te.defaultOpenValue,Gt=te.suffixIcon,Lt=te.clearIcon,Ft=te.disabled,vn=te.disabledDate,On=te.placeholder,cr=te.getPopupContainer,nr=te.pickerRef,Zt=te.panelRender,wr=te.onChange,zn=te.onOpenChange,zr=te.onFocus,Gr=te.onBlur,Dr=te.onMouseDown,Pn=te.onMouseUp,Bn=te.onMouseEnter,Vn=te.onMouseLeave,Yr=te.onContextMenu,sa=te.onClick,la=te.direction,ba=te.autoComplete,na=ba===void 0?"off":ba,va=y.useRef(null),Za=kn==="date"&&!!dt||kn==="time",ka=ye(g(on,kn,dt,Ut)),Ea=y.useRef(null),_a=y.useRef(null),Ka=Object(p.a)(null,{value:rn,defaultValue:In}),oi=Object(W.a)(Ka,2),ga=oi[0],ya=oi[1],Ia=y.useState(ga),Pa=Object(W.a)(Ia,2),Re=Pa[0],Ve=Pa[1],tt=y.useRef(null),ke=Object(p.a)(!1,{value:cn,defaultValue:mn,postState:function(rr){return Ft?!1:rr},onChange:function(rr){zn&&zn(rr),!rr&&tt.current&&tt.current.onClose&&tt.current.onClose()}}),se=Object(W.a)(ke,2),xe=se[0],de=se[1],Ie=pr(Re,{formatList:ka,generateConfig:be,locale:Et}),Be=Object(W.a)(Ie,2),ot=Be[0],He=Be[1],pt=yn({valueTexts:ot,onTextChange:function(rr){var Zr=be.locale.parse(Et.locale,rr,ka);Zr&&(!vn||!vn(Zr))&&Ve(Zr)}}),At=Object(W.a)(pt,3),Vt=At[0],en=At[1],En=At[2],Ln=function(rr){Ve(rr),ya(rr),wr&&!kt(be,ga,rr)&&wr(rr,rr?be.locale.format(Et.locale,rr,ka[0]):"")},Zn=function(rr){if(Ft&&rr)return;de(rr)},qn=function(rr){return xe&&tt.current&&tt.current.onKeyDown?tt.current.onKeyDown(rr):(Object(d.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},fr=function(){Pn&&Pn.apply(void 0,arguments),va.current&&(va.current.focus(),Zn(!0))},xr=Ot({blurToCancel:Za,open:xe,value:Vt,triggerOpen:Zn,forwardKeyDown:qn,isClickOutside:function(rr){return!U([Ea.current,_a.current],rr)},onSubmit:function(){return vn&&vn(Re)?!1:(Ln(Re),Zn(!1),En(),!0)},onCancel:function(){Zn(!1),Ve(ga),En()},onFocus:zr,onBlur:Gr}),ir=Object(W.a)(xr,2),mr=ir[0],Tr=ir[1],Xn=Tr.focused,Nr=Tr.typing;y.useEffect(function(){xe||(Ve(ga),!ot.length||ot[0]===""?en(""):He!==Vt&&En())},[xe,ot]),y.useEffect(function(){xe||En()},[kn]),y.useEffect(function(){Ve(ga)},[ga]),nr&&(nr.current={focus:function(){va.current&&va.current.focus()},blur:function(){va.current&&va.current.blur()}});var Yn=Object(w.a)(Object(w.a)({},te),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),sn=y.createElement(Y,Object.assign({},Yn,{generateConfig:be,className:R()(Object(O.a)({},"".concat(ze,"-panel-focused"),!Nr)),value:Re,locale:Et,tabIndex:-1,onChange:Ve,direction:la}));Zt&&(sn=Zt(sn));var xn=y.createElement("div",{className:"".concat(ze,"-panel-container"),onMouseDown:function(rr){rr.preventDefault()}},sn),hr;Gt&&(hr=y.createElement("span",{className:"".concat(ze,"-suffix")},Gt));var Pr;Nt&&ga&&!Ft&&(Pr=y.createElement("span",{onMouseDown:function(rr){rr.preventDefault(),rr.stopPropagation()},onMouseUp:function(rr){rr.preventDefault(),rr.stopPropagation(),Ln(null),Zn(!1)},className:"".concat(ze,"-clear")},Lt||y.createElement("span",{className:"".concat(ze,"-clear-btn")})));var Kn=function(rr,Zr){(Zr==="submit"||Zr!=="key"&&!Za)&&(Ln(rr),Zn(!1))},Or=la==="rtl"?"bottomRight":"bottomLeft",Qr=gr(Vt,{formatList:ka,generateConfig:be,locale:Et}),Mr=Object(W.a)(Qr,3),Xr=Mr[0],kr=Mr[1],Wr=Mr[2];return y.createElement(c.Provider,{value:{operationRef:tt,hideHeader:kn==="time",panelRef:Ea,onSelect:Kn,open:xe,defaultOpenValue:zt,onDateMouseEnter:kr,onDateMouseLeave:Wr}},y.createElement(ln,{visible:xe,popupElement:xn,popupStyle:Yt,prefixCls:ze,dropdownClassName:Tt,dropdownAlign:nt,getPopupContainer:cr,transitionName:ct,popupPlacement:Or,direction:la},y.createElement("div",{className:R()(ze,ht,(De={},Object(O.a)(De,"".concat(ze,"-disabled"),Ft),Object(O.a)(De,"".concat(ze,"-focused"),Xn),Object(O.a)(De,"".concat(ze,"-rtl"),la==="rtl"),De)),style:bt,onMouseDown:Dr,onMouseUp:fr,onMouseEnter:Bn,onMouseLeave:Vn,onContextMenu:Yr,onClick:sa},y.createElement("div",{className:R()("".concat(ze,"-input"),Object(O.a)({},"".concat(ze,"-input-placeholder"),!!Xr)),ref:_a},y.createElement("input",Object.assign({id:ut,tabIndex:et,disabled:Ft,readOnly:rt||!Nr,value:Xr||Vt,onChange:function(rr){en(rr.target.value)},autoFocus:Dt,placeholder:On,ref:va,title:Vt},mr,{size:s(kn,ka[0])},Ye(te),{autoComplete:na})),hr,Pr))))}var Nn=function(te){Object(I.a)(Xe,te);var De=Object(z.a)(Xe);function Xe(){var ze;return Object(re.a)(this,Xe),ze=De.apply(this,arguments),ze.pickerRef=y.createRef(),ze.focus=function(){ze.pickerRef.current&&ze.pickerRef.current.focus()},ze.blur=function(){ze.pickerRef.current&&ze.pickerRef.current.blur()},ze}return Object(G.a)(Xe,[{key:"render",value:function(){return y.createElement(Un,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(y.Component),Fn=Nn;function $n(te,De,Xe){var ze=te.picker,ut=te.locale,et=te.selectedValue,bt=te.disabledDate,ht=te.disabled,Tt=te.generateConfig,nt=Pe(et,0),Yt=Pe(et,1);function ct(Dt){var dt=Tt.getYear(Dt),gn=Tt.locale.getWeek(ut.locale,Dt);return dt*100+gn}function be(Dt){var dt=Tt.getYear(Dt),gn=Tt.getMonth(Dt);return dt*100+gn}function Et(Dt){var dt=Tt.getYear(Dt),gn=Ee(Tt,Dt);return dt*10+gn}var rt=y.useCallback(function(Dt){if(bt&&bt(Dt))return!0;if(ht[1]&&Yt)return!Pt(Tt,Dt,Yt)&&Tt.isAfter(Dt,Yt);if(De&&Yt)switch(ze){case"quarter":return Et(Dt)>Et(Yt);case"month":return be(Dt)>be(Yt);case"week":return ct(Dt)>ct(Yt);default:return!Pt(Tt,Dt,Yt)&&Tt.isAfter(Dt,Yt)}return!1},[bt,ht[1],Yt,De]),Nt=y.useCallback(function(Dt){if(bt&&bt(Dt))return!0;if(ht[0]&&nt)return!Pt(Tt,Dt,Yt)&&Tt.isAfter(nt,Dt);if(Xe&&nt)switch(ze){case"quarter":return Et(Dt)0&&arguments[0]!==void 0?arguments[0]:!1,Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jn=null;Wr&&Wa&&Wa[0]&&Wa[1]&&rt.isAfter(Wa[1],Wa[0])&&(Jn=Wa);var Ir=rn;if(rn&&Object(_.a)(rn)==="object"&&rn.defaultValue){var da=rn.defaultValue;Ir=Object(w.a)(Object(w.a)({},rn),{},{defaultValue:Pe(da,He)||void 0})}var vi=null;return nr&&(vi=function(Ua,qa){return nr(Ua,qa,{range:He?"end":"start"})}),y.createElement(vt.Provider,{value:{inRange:!0,panelPosition:br,rangedValue:Xi||Xn,hoverRangedValue:Jn}},y.createElement(Y,Object.assign({},te,Mn,{dateRender:vi,showTime:Ir,mode:xn[He],generateConfig:rt,style:void 0,direction:Ka,disabledDate:He===0?Qr:Mr,disabledTime:function(Ua){return cr?cr(Ua,He===0?"start":"end"):!1},className:R()(Object(O.a)({},"".concat(et,"-panel-focused"),He===0?!wa:!so)),value:Pe(Xn,He),locale:Nt,tabIndex:-1,onPanelChange:function(Ua,qa){Pr(je(xn,qa,He),je(Xn,Ua,He));var gi=Ua;br==="right"&&xn[He]===qa&&(gi=qe(gi,qa,rt,-1)),ir(gi,He)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var pa=0,za=0;He&&tt.current&&se.current&&Ve.current&&(pa=tt.current.offsetWidth+se.current.offsetWidth,Ve.current.offsetWidth&&pa>Ve.current.offsetWidth&&(za=pa));var Pi=Ka==="rtl"?{right:pa}:{left:pa};function di(){var br,Mn=k(et,xn[He],Yr),Jn=$({prefixCls:et,components:Ea,needConfirmButton:Ia,okDisabled:!Pe(Xn,He)||On&&On(Xn[He]),locale:Nt,rangeList:ta,onOk:function(){Pe(Xn,He)&&(Na(Xn,He),ka&&ka(Xn))}});if(Ut!=="time"&&!rn){var Ir=xr(He),da=qe(Ir,Ut,rt),vi=xn[He],si=vi===Ut,Ua=jr(si?"left":!1,{pickerValue:Ir,onPickerValueChange:function(La){ir(La,He)}}),qa=jr("right",{pickerValue:da,onPickerValueChange:function(La){ir(qe(La,Ut,rt,-1),He)}});Ka==="rtl"?br=y.createElement(y.Fragment,null,qa,si&&Ua):br=y.createElement(y.Fragment,null,Ua,si&&qa)}else br=jr();var gi=y.createElement(y.Fragment,null,y.createElement("div",{className:"".concat(et,"-panels")},br),(Mn||Jn)&&y.createElement("div",{className:"".concat(et,"-footer")},Mn,Jn));return Zt&&(gi=Zt(gi)),y.createElement("div",{className:"".concat(et,"-panel-container"),style:{marginLeft:za},ref:Ve,onMouseDown:function(La){La.preventDefault()}},gi)}var Ui=y.createElement("div",{className:R()("".concat(et,"-range-wrapper"),"".concat(et,"-").concat(Ut,"-range-wrapper")),style:{minWidth:Ta}},y.createElement("div",{className:"".concat(et,"-range-arrow"),style:Pi}),di()),fi;Gr&&(fi=y.createElement("span",{className:"".concat(et,"-suffix")},Gr));var Ra;zr&&(Pe(Ln,0)&&!Vt[0]||Pe(Ln,1)&&!Vt[1])&&(Ra=y.createElement("span",{onMouseDown:function(Mn){Mn.preventDefault(),Mn.stopPropagation()},onMouseUp:function(Mn){Mn.preventDefault(),Mn.stopPropagation();var Jn=Ln;Vt[0]||(Jn=je(Jn,null,0)),Vt[1]||(Jn=je(Jn,null,1)),Na(Jn,null),ea(!1,He)},className:"".concat(et,"-clear")},Dr||y.createElement("span",{className:"".concat(et,"-clear-btn")})));var Fi={size:s(Ut,Ie[0])},Bi=0,Wi=0;tt.current&&ke.current&&se.current&&(He===0?Wi=tt.current.offsetWidth:(Bi=pa,Wi=ke.current.offsetWidth));var Ya=Ka==="rtl"?{right:Bi}:{left:Bi},Jr=function(Mn,Jn){var Ir=je(Xn,Mn,He);Jn==="submit"||Jn!=="key"&&!Ia?(Na(Ir,He),He===0?$i():ro()):Nr(Ir)};return y.createElement(c.Provider,{value:{operationRef:At,hideHeader:Ut==="time",onDateMouseEnter:Ro,onDateMouseLeave:Ao,hideRanges:!0,onSelect:Jr,open:Wr}},y.createElement(ln,{visible:Wr,popupElement:Ui,popupStyle:nt,prefixCls:et,dropdownClassName:Yt,dropdownAlign:be,getPopupContainer:Et,transitionName:ct,range:!0,direction:Ka},y.createElement("div",Object.assign({ref:Re,className:R()(et,"".concat(et,"-range"),Tt,(De={},Object(O.a)(De,"".concat(et,"-disabled"),Vt[0]&&Vt[1]),Object(O.a)(De,"".concat(et,"-focused"),He===0?ja:oo),Object(O.a)(De,"".concat(et,"-rtl"),Ka==="rtl"),De)),style:ht,onClick:xi,onMouseDown:Qi},Ye(te)),y.createElement("div",{className:R()("".concat(et,"-input"),(Xe={},Object(O.a)(Xe,"".concat(et,"-input-active"),He===0),Object(O.a)(Xe,"".concat(et,"-input-placeholder"),!!mi),Xe)),ref:tt},y.createElement("input",Object.assign({id:bt,disabled:Vt[0],readOnly:Bn||!wa,value:mi||Ti,onChange:function(Mn){ki(Mn.target.value)},autoFocus:dt,placeholder:Pe(Dt,0)||"",ref:xe},Xa,Fi,{autoComplete:ya}))),y.createElement("div",{className:"".concat(et,"-range-separator"),ref:se},mn),y.createElement("div",{className:R()("".concat(et,"-input"),(ze={},Object(O.a)(ze,"".concat(et,"-input-active"),He===1),Object(O.a)(ze,"".concat(et,"-input-placeholder"),!!ci),ze)),ref:ke},y.createElement("input",Object.assign({disabled:Vt[1],readOnly:Bn||!so,value:ci||Oi,onChange:function(Mn){Vi(Mn.target.value)},placeholder:Pe(Dt,1)||"",ref:de},ti,Fi,{autoComplete:ya}))),y.createElement("div",{className:"".concat(et,"-active-bar"),style:Object(w.a)(Object(w.a)({},Ya),{},{width:Wi,position:"absolute"})}),fi,Ra)))}var Ar=function(te){Object(I.a)(Xe,te);var De=Object(z.a)(Xe);function Xe(){var ze;return Object(re.a)(this,Xe),ze=De.apply(this,arguments),ze.pickerRef=y.createRef(),ze.focus=function(){ze.pickerRef.current&&ze.pickerRef.current.focus()},ze.blur=function(){ze.pickerRef.current&&ze.pickerRef.current.blur()},ze}return Object(G.a)(Xe,[{key:"render",value:function(){return y.createElement(Hr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(y.Component),or=Ar,Cr=Ce.b=Fn},osHv:function(tn,Ce,M){(function(re){re(M("VrN/"))})(function(re){"use strict";var G=re.Pos;function I(n,r){return n.line-r.line||n.ch-r.ch}var z="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",O=z+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+z+"]["+O+"]*)","g");function W(n,r,o,l){this.line=r,this.ch=o,this.cm=n,this.text=n.getLine(r),this.min=l?Math.max(l.from,n.firstLine()):n.firstLine(),this.max=l?Math.min(l.to-1,n.lastLine()):n.lastLine()}function y(n,r){var o=n.cm.getTokenTypeAt(G(n.line,r));return o&&/\btag\b/.test(o)}function L(n){return n.line>=n.max?void 0:(n.ch=0,n.text=n.cm.getLine(++n.line),!0)}function R(n){return n.line<=n.min?void 0:(n.text=n.cm.getLine(--n.line),n.ch=n.text.length,!0)}function d(n){for(;;){var r=n.text.indexOf(">",n.ch);if(r==-1){if(L(n))continue;return}if(!y(n,r+1)){n.ch=r+1;continue}var o=n.text.lastIndexOf("/",r),l=o>-1&&!/\S/.test(n.text.slice(o+1,r));return n.ch=r+1,l?"selfClose":"regular"}}function p(n){for(;;){var r=n.ch?n.text.lastIndexOf("<",n.ch-1):-1;if(r==-1){if(R(n))continue;return}if(!y(n,r+1)){n.ch=r;continue}w.lastIndex=r,n.ch=r;var o=w.exec(n.text);if(o&&o.index==r)return o}}function _(n){for(;;){w.lastIndex=n.ch;var r=w.exec(n.text);if(!r){if(L(n))continue;return}if(!y(n,r.index+1)){n.ch=r.index+1;continue}return n.ch=r.index+r[0].length,r}}function v(n){for(;;){var r=n.ch?n.text.lastIndexOf(">",n.ch-1):-1;if(r==-1){if(R(n))continue;return}if(!y(n,r+1)){n.ch=r;continue}var o=n.text.lastIndexOf("/",r),l=o>-1&&!/\S/.test(n.text.slice(o+1,r));return n.ch=r+1,l?"selfClose":"regular"}}function h(n,r){for(var o=[];;){var l=_(n),x,E=n.line,b=n.ch-(l?l[0].length:0);if(!l||!(x=d(n)))return;if(x=="selfClose")continue;if(l[1]){for(var P=o.length-1;P>=0;--P)if(o[P]==l[2]){o.length=P;break}if(P<0&&(!r||r==l[2]))return{tag:l[2],from:G(E,b),to:G(n.line,n.ch)}}else o.push(l[2])}}function c(n,r){for(var o=[];;){var l=v(n);if(!l)return;if(l=="selfClose"){p(n);continue}var x=n.line,E=n.ch,b=p(n);if(!b)return;if(b[1])o.push(b[2]);else{for(var P=o.length-1;P>=0;--P)if(o[P]==b[2]){o.length=P;break}if(P<0&&(!r||r==b[2]))return{tag:b[2],from:G(n.line,n.ch),to:G(x,E)}}}}re.registerHelper("fold","xml",function(n,r){for(var o=new W(n,r.line,0);;){var l=_(o);if(!l||o.line!=r.line)return;var x=d(o);if(!x)return;if(!l[1]&&x!="selfClose"){var E=G(o.line,o.ch),b=h(o,l[2]);return b&&I(b.from,E)>0?{from:E,to:b.from}:null}}}),re.findMatchingTag=function(n,r,o){var l=new W(n,r.line,r.ch,o);if(l.text.indexOf(">")==-1&&l.text.indexOf("<")==-1)return;var x=d(l),E=x&&G(l.line,l.ch),b=x&&p(l);if(!x||!b||I(l,r)>0)return;var P={from:G(l.line,l.ch),to:E,tag:b[2]};return x=="selfClose"?{open:P,close:null,at:"open"}:b[1]?{open:c(l,b[2]),close:P,at:"close"}:(l=new W(n,E.line,E.ch,o),{open:P,close:h(l,b[2]),at:"open"})},re.findEnclosingTag=function(n,r,o,l){for(var x=new W(n,r.line,r.ch,o);;){var E=c(x,l);if(!E)break;var b=new W(n,r.line,r.ch,o),P=h(b,E.tag);if(P)return{open:E,close:P}}},re.scanForClosingTag=function(n,r,o,l){var x=new W(n,r.line,r.ch,l?{from:0,to:l}:null);return h(x,o)}})},p5ED:function(tn,Ce,M){"use strict";var re=M("+L6B"),G=M("2/Rp"),I=M("5Dmo"),z=M("3S7+"),O=M("k1fw"),w=M("9og8"),W=M("tJVT"),y=M("WmNS"),L=M.n(y),R=M("q1tI"),d=M.n(R),p=M("vHTk"),_=M.n(p),v=M("yEEn"),h=M("ZW9T"),c=M("1vsH"),n=M("V0Rq"),r=M("m3rI");Ce.a=function(o){var l,x,E,b,P,T,m=o.editOffice,g=m===void 0?"view":m,s=o.name,u=o.data,D=o.theme,S=o.type,A=o.filename,N=o.monacoEditor,j=o.className,K=o.style,H=o.close,U=o.onClose,B=o.hasMask,q=o.disabledDownload,ee=o.onImgDimensions,he=o.otherData,ye=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ye=Object(W.a)(ye,2),Pe=Ye[0],je=Ye[1],Ze=Object(R.useState)(""),Qe=Object(W.a)(Ze,2),Ae=Qe[0],me=Qe[1],ie=Object(R.useState)(),Oe=Object(W.a)(ie,2),ve=Oe[0],Ge=Oe[1],pe=window.ENV==="build"?"/react/build":"",J=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,V,X=1024*1024,ue=10*X,Ee=Object(R.useRef)();(l=u)!==null&&l!==void 0&&l.startsWith("/api")&&S!=="txt"&&(u=r.a.API_SERVER+u),S==="office"&&(V=Object(c.P)(u).filesize,V>ue&&(S="other")),A&&(N.filename=A),Object(R.useEffect)(function(){var Kt,Bt,kt=(Kt=document.cookie)===null||Kt===void 0||((Bt=Kt.replace(/\s/g,""))===null||Bt===void 0)?void 0:Bt.split(";");kt==null||kt.map(function(Qt){var fn=Qt.split("=");fn[0]==="_educoder_session"&&me(fn[1])})},[]),Object(R.useEffect)(function(){S==="office"&&We()},[S,u]);var We=function(){var Kt=Object(w.a)(L.a.mark(function Bt(){var kt,Qt,fn;return L.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return console.log("data:",u),kt=u,u.startsWith("http")||(kt=location.origin+kt),Qt=new URL(kt).pathname.split("/").pop(),Ue.next=6,Object(n.U)({attachment_id:Qt});case 6:fn=Ue.sent,Ge(fn);case 8:case"end":return Ue.stop()}},Bt)}));return function(){return Kt.apply(this,arguments)}}(),Ke=function(){if(u.startsWith("http")||u.startsWith("blob:")){Pt();return}Object(c.x)(A||"educoder",u,A)},Pt=function(){Object(c.v)(A||"educoder",decodeURIComponent(u))};return d.a.createElement("div",{style:Object(O.a)({},K||{}),className:"".concat(B&&_.a.bgBlack," ").concat(S?_.a.wrp:"hide")},H&&d.a.createElement("div",{className:_.a.close,ref:Ee},!!ee&&d.a.createElement(z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ee.current}},d.a.createElement("span",{onClick:function(){U(),ee()}},d.a.createElement("i",{className:"icon-yulanpizhu"}))),!q&&d.a.createElement(z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ee.current}},d.a.createElement("span",{onClick:Pt},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ee.current}},d.a.createElement("span",{className:"",onClick:U},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(_.a[j]," ").concat(j," ").concat(_.a.monaco," ").concat(S==="txt"?"show":"hide")},S==="txt"&&d.a.createElement(h.b,N)),S==="audio"&&d.a.createElement("audio",{src:"".concat(((x=u)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=u)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(u),autoPlay:!0}),S==="video"&&d.a.createElement(d.a.Fragment,null,((b=u)===null||b===void 0?void 0:b.indexOf("http"))>-1?d.a.createElement("video",{controls:!0,src:"".concat(u),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(u),autoPlay:!0})),S==="office"&&ve&&d.a.createElement("iframe",{src:"".concat(pe,"/office.html?key=").concat(ve.key,"&url=").concat(J+ve.url,"&callbackUrl=").concat(J+ve.callbackUrl,"&fileType=").concat(ve.fileType,"&title=").concat(ve.title,"&model=").concat(g,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!q)}),(S==="xlsx"||S==="doc"||S==="pptx"||S==="docx")&&d.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(he.key,"&url=").concat(r.a.API_SERVER+he.url,"&callbackUrl=").concat(r.a.API_SERVER+he.callbackUrl,"&fileType=").concat(he.fileType,"&title=").concat(he.title,"&model=").concat(he.model)}),S==="html"&&d.a.createElement("iframe",{src:u+"&disposition=inline"}),S==="pdf"&&d.a.createElement("embed",{className:_.a.embed,src:u}),S==="image"&&d.a.createElement("img",{src:"".concat(((P=u)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((T=u)===null||T===void 0?void 0:T.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(u)}),S==="other"&&d.a.createElement("div",null,d.a.createElement(G.a,{type:"primary",size:"large",onClick:Ke},d.a.createElement(v.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),S==="download"&&d.a.createElement(G.a,{type:"primary",size:"large",onClick:Ke},d.a.createElement(v.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(tn,Ce,M){},pmY6:function(tn,Ce,M){"use strict";M.d(Ce,"g",function(){return O}),M.d(Ce,"f",function(){return w}),M.d(Ce,"e",function(){return W}),M.d(Ce,"h",function(){return y}),M.d(Ce,"b",function(){return L}),M.d(Ce,"a",function(){return R}),M.d(Ce,"d",function(){return d}),M.d(Ce,"c",function(){return p});var re=!1,G="__is_disposable_tracked__";function I(_){if(!re)return;if(_&&_!==R.None)try{_[G]=!0}catch(v){}}function z(_){if(!re)return _;var v=new Error("Potentially leaked disposable").stack;return setTimeout(function(){_[G]||console.log(v)},3e3),_}function O(_){return typeof _.dispose=="function"&&_.dispose.length===0}function w(_){return Array.isArray(_)?(_.forEach(function(v){v&&(I(v),v.dispose())}),[]):_?(I(_),_.dispose(),_):void 0}function W(){for(var _=[],v=0;v=I.length?{done:!0}:{done:!1,value:I[w++]}},e:function(p){throw p},f:W}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,L=!1,R;return{s:function(){O=I[Symbol.iterator]()},n:function(){var p=O.next();return y=p.done,p},e:function(p){L=!0,R=p},f:function(){try{!y&&O.return!=null&&O.return()}finally{if(L)throw R}}}}},rUJ1:function(tn,Ce){const M=/[&<>"']/,re=/[&<>"']/g,G=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,z={"&":"&","<":"<",">":">",'"':""","'":"'"},O=T=>z[T];function w(T,m){if(m){if(M.test(T))return T.replace(re,O)}else if(G.test(T))return T.replace(I,O);return T}const W=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y(T){return T.replace(W,(m,g)=>(g=g.toLowerCase(),g==="colon"?":":g.charAt(0)==="#"?g.charAt(1)==="x"?String.fromCharCode(parseInt(g.substring(2),16)):String.fromCharCode(+g.substring(1)):""))}const L=/(^|[^\[])\^/g;function R(T,m){T=T.source||T,m=m||"";const g={replace:(s,u)=>(u=u.source||u,u=u.replace(L,"$1"),T=T.replace(s,u),g),getRegex:()=>new RegExp(T,m)};return g}const d=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(T,m,g){if(T){let s;try{s=decodeURIComponent(y(g)).replace(d,"").toLowerCase()}catch(u){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}m&&!p.test(g)&&(g=r(m,g));try{g=encodeURI(g).replace(/%25/g,"%")}catch(s){return null}return g}const v={},h=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,n=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(T,m){v[" "+T]||(h.test(T)?v[" "+T]=T+"/":v[" "+T]=E(T,"/",!0)),T=v[" "+T];const g=T.indexOf(":")===-1;return m.substring(0,2)==="//"?g?m:T.replace(c,"$1")+m:m.charAt(0)==="/"?g?m:T.replace(n,"$1")+m:T+m}const o={exec:function(){}};function l(T){let m=1,g,s;for(;m{let N=!1,j=S;for(;--j>=0&&A[j]==="\\";)N=!N;return N?"|":" |"}),s=g.split(/ \|/);let u=0;if(s.length>m)s.splice(m);else for(;s.length1)Object(R.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(R.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=l[0];if(w.isValidElement(x)&&Object(d.c)(x)){var E=x.ref;l[0]=w.cloneElement(x,{ref:Object(d.a)(E,this.setChildNode)})}return l.length===1?l[0]:l.map(function(b,P){return!w.isValidElement(b)||"key"in b&&b.key!==null?b:w.cloneElement(b,{key:"".concat(_,"-").concat(P)})})}}]),n}(w.Component);v.displayName="ResizeObserver",Ce.a=v},uiYX:function(tn,Ce,M){"use strict";var re=M("2qtc"),G=M("kLXV"),I=M("5NDa"),z=M("5rEg"),O=M("k1fw"),w=M("9og8"),W=M("y8nQ"),y=M("Vl3Y"),L=M("tJVT"),R=M("WmNS"),d=M.n(R),p=M("q1tI"),_=M.n(p),v=M("XYT7"),h=M("Ty5D"),c=M("9kvl"),n=M("500L"),r=function(l){var x=l.classroomList,E=l.loading,b=l.dispatch,P=Object(h.i)(),T=y.a.useForm(),m=Object(L.a)(T,1),g=m[0];return _.a.createElement(G.a,{centered:!0,title:"\u8865\u4EA4\u9644\u4EF6",visible:x.actionTabs.key==="\u8865\u4EA4\u9644\u4EF6",bodyStyle:{minHeight:200},onOk:Object(w.a)(d.a.mark(function s(){var u,D,S,A;return d.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,g.validateFields();case 2:return D=Object(O.a)({},g.getFieldValue()),S=x.actionTabs.selectArrs,D.attachment_ids=(u=D.attachment_ids)===null||u===void 0?void 0:u.map(function(K){return K.response.id}),j.next=7,Object(v.R)(Object(O.a)(Object(O.a)({},D),{},{homeworkId:S.work_id}));case 7:A=j.sent,A.status===0&&(g.resetFields(),b({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return j.stop()}},s)})),onCancel:function(){g.resetFields(),b({type:"classroomList/setActionTabs",payload:{}})}},_.a.createElement(y.a,{form:g,initialValues:{}},_.a.createElement(y.a.Item,{name:"attachment_ids",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},_.a.createElement(n.b,null)),_.a.createElement(y.a.Item,{name:"description"},_.a.createElement(z.a.TextArea,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u8865\u4EA4\u9644\u4EF6\u7684\u539F\u56E0\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",rows:7}))))};Ce.a=Object(c.a)(function(o){var l=o.classroomList,x=o.loading;return{classroomList:l,loading:x}})(r)},ulZh:function(tn,Ce,M){typeof window!="undefined"&&function(G,I){tn.exports=I()}(this,function(){return function(re){var G={};function I(z){if(G[z])return G[z].exports;var O=G[z]={i:z,l:!1,exports:{}};return re[z].call(O.exports,O,O.exports,I),O.l=!0,O.exports}return I.m=re,I.c=G,I.d=function(z,O,w){I.o(z,O)||Object.defineProperty(z,O,{enumerable:!0,get:w})},I.r=function(z){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(z,"__esModule",{value:!0})},I.t=function(z,O){if(O&1&&(z=I(z)),O&8)return z;if(O&4&&typeof z=="object"&&z&&z.__esModule)return z;var w=Object.create(null);if(I.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:z}),O&2&&typeof z!="string")for(var W in z)I.d(w,W,function(y){return z[y]}.bind(null,W));return w},I.n=function(z){var O=z&&z.__esModule?function(){return z.default}:function(){return z};return I.d(O,"a",O),O},I.o=function(z,O){return Object.prototype.hasOwnProperty.call(z,O)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(re,G,I){"use strict";var z=Object.prototype.hasOwnProperty,O="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(O=!1));function W(d,p,_){this.fn=d,this.context=p,this.once=_||!1}function y(d,p,_,v,h){if(typeof _!="function")throw new TypeError("The listener must be a function");var c=new W(_,v||d,h),n=O?O+p:p;return d._events[n]?d._events[n].fn?d._events[n]=[d._events[n],c]:d._events[n].push(c):(d._events[n]=c,d._eventsCount++),d}function L(d,p){--d._eventsCount===0?d._events=new w:delete d._events[p]}function R(){this._events=new w,this._eventsCount=0}R.prototype.eventNames=function(){var p=[],_,v;if(this._eventsCount===0)return p;for(v in _=this._events)z.call(_,v)&&p.push(O?v.slice(1):v);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(_)):p},R.prototype.listeners=function(p){var _=O?O+p:p,v=this._events[_];if(!v)return[];if(v.fn)return[v.fn];for(var h=0,c=v.length,n=new Array(c);h0},!1)}function d(p,_){for(var v={main:[_]},h={main:[]},c={main:{}};R(v);)for(var n=Object.keys(v),r=0;r=2*P/m||A<=j)return;var K=Number.POSITIVE_INFINITY,H;for(H=n.level-1;H>s;H--){var U=g[H].maxBitrate;if(K=P*U/(8*.8*S),K=A)return;var B=this.bwEstimator.getEstimate();R.logger.warn("Fragment "+n.sn+(r?" part "+r.index:"")+" of level "+n.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+H+` Current BW estimate: `+(Object(z.isFiniteNumber)(B)?(B/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+A.toFixed(3)+` s Estimated load time for the next fragment: `+K.toFixed(3)+` s - Time to underbuffer: `+j.toFixed(3)+" s"),o.nextLoadLevel=H,this.bwEstimator.sample(T,b.loaded),this.clearTimer(),n.loader&&(this.fragCurrent=this.partCurrent=null,n.loader.abort()),o.trigger(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:b})},h.onFragLoaded=function(n,r){var o=r.frag,l=r.part;if(o.type===L.PlaylistLevelType.MAIN&&Object(z.isFiniteNumber)(o.sn)){var x=l?l.stats:o.stats,E=l?l.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var b=this.hls.levels[o.level],P=(b.loaded?b.loaded.bytes:0)+x.loaded,T=(b.loaded?b.loaded.duration:0)+E;b.loaded={bytes:P,duration:T},b.realBitrate=Math.round(8*P/T)}if(o.bitrateTest){var m={stats:x,frag:o,part:l,id:o.type};this.onFragBuffered(w.Events.FRAG_BUFFERED,m),o.bitrateTest=!1}}},h.onFragBuffered=function(n,r){var o=r.frag,l=r.part,x=l?l.stats:o.stats;if(x.aborted)return;if(o.type!==L.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var E=x.parsing.end-x.loading.start;this.bwEstimator.sample(E,x.loaded),x.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},h.onError=function(n,r){switch(r.details){case y.ErrorDetails.FRAG_LOAD_ERROR:case y.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},h.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},h.getNextABRAutoLevel=function(){var n=this.fragCurrent,r=this.partCurrent,o=this.hls,l=o.maxAutoLevel,x=o.config,E=o.minAutoLevel,b=o.media,P=r?r.duration:n?n.duration:0,T=b?b.currentTime:0,m=b&&b.playbackRate!==0?Math.abs(b.playbackRate):1,g=this.bwEstimator?this.bwEstimator.getEstimate():x.abrEwmaDefaultEstimate,s=(W.BufferHelper.bufferInfo(b,T,x.maxBufferHole).end-T)/m,u=this.findBestLevel(g,E,l,s,x.abrBandWidthFactor,x.abrBandWidthUpFactor);if(u>=0)return u;R.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=P?Math.min(P,x.maxStarvationDelay):x.maxStarvationDelay,S=x.abrBandWidthFactor,A=x.abrBandWidthUpFactor;if(!s){var N=this.bitrateTestDelay;if(N){var j=P?Math.min(P,x.maxLoadingDelay):x.maxLoadingDelay;D=j-N,R.logger.trace("bitrate test took "+Math.round(1e3*N)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),S=A=1}}return u=this.findBestLevel(g,E,l,s+D,S,A),Math.max(u,0)},h.findBestLevel=function(n,r,o,l,x,E){for(var b,P=this.fragCurrent,T=this.partCurrent,m=this.lastLoadedFragLevel,g=this.hls.levels,s=g[m],u=!!(s!=null&&(b=s.details)!==null&&b!==void 0&&b.live),D=s==null?void 0:s.codecSet,S=T?T.duration:P?P.duration:0,A=o;A>=r;A--){var N=g[A];if(!N||D&&N.codecSet!==D)continue;var j=N.details,K=(T?j==null?void 0:j.partTarget:j==null?void 0:j.averagetargetduration)||S,H=void 0;A<=m?H=x*n:H=E*n;var U=g[A].maxBitrate,B=U*K/H;if(R.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+A+"/"+Math.round(H)+"/"+U+"/"+K+"/"+l+"/"+B),H>U&&(!B||u&&!this.bitrateTestDelay||B0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+u.toFixed(3)),this.state=O.State.IDLE):(this.loadedmetadata=!1,this.state=O.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},m.doTick=function(){switch(this.state){case O.State.IDLE:this.doTickIdle();break;case O.State.WAITING_TRACK:{var s,u=this.levels,D=this.trackId,S=u==null||((s=u[D])===null||s===void 0)?void 0:s.details;if(S){if(this.waitForCdnTuneIn(S))break;this.state=O.State.WAITING_INIT_PTS}break}case O.State.FRAG_LOADING_WAITING_RETRY:{var A,N=performance.now(),j=this.retryDate;(!j||N>=j||(A=this.media)!==null&&A!==void 0&&A.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=O.State.IDLE);break}case O.State.WAITING_INIT_PTS:{var K=this.waitingData;if(K){var H=K.frag,U=K.part,B=K.cache,q=K.complete;if(this.initPTS[H.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=O.State.FRAG_LOADING;var ee=B.flush(),he={frag:H,part:U,payload:ee,networkDetails:null};this._handleFragmentLoadProgress(he),q&&P.prototype._handleFragmentLoadComplete.call(this,he)}else if(this.videoTrackCC!==this.waitingVideoCC)r.logger.log("Waiting fragment cc ("+H.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var be=this.getLoadPosition(),Ye=W.BufferHelper.bufferInfo(this.mediaBuffer,be,this.config.maxBufferHole),Pe=Object(h.fragmentWithinToleranceTest)(Ye.end,this.config.maxFragLookUpTolerance,H);Pe<0&&(r.logger.log("Waiting fragment cc ("+H.cc+") @ "+H.start+" cancelled because another fragment at "+Ye.end+" is needed"),this.clearWaitingFragment())}}else this.state=O.State.IDLE}}this.onTickEnd()},m.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=O.State.IDLE)},m.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var u=this.mediaBuffer?this.mediaBuffer:s,D=u.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},m.doTickIdle=function(){var s,u,D=this.hls,S=this.levels,A=this.media,N=this.trackId,j=D.config;if(!S||!S[N])return;if(!A&&(this.startFragRequested||!j.startFragPrefetch))return;var K=S[N],H=K.details;if(!H||H.live&&this.levelLastLoaded!==N||this.waitForCdnTuneIn(H)){this.state=O.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,d.ElementaryStreamTypes.AUDIO,R.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,R.PlaylistLevelType.AUDIO);if(U===null)return;var B=U.len,q=this.getMaxBufferLength(),ee=this.audioSwitch;if(B>=q&&!ee)return;if(!ee&&this._streamEnded(U,H)){D.trigger(w.Events.BUFFER_EOS,{type:"audio"}),this.state=O.State.ENDED;return}var he=H.fragments,be=he[0].start,Ye=U.end;if(ee){var Pe=this.getLoadPosition();Ye=Pe,H.PTSKnown&&Pebe||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),A.currentTime=be+.05))}var je=this.getNextFragment(Ye,H);if(!je){this.bufferFlushed=!0;return}((s=je.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((u=je.decryptdata)!==null&&u!==void 0&&u.key)?this.loadKey(je,H):this.loadFragment(je,H,Ye)},m.getMaxBufferLength=function(){var s=P.prototype.getMaxBufferLength.call(this),u=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,R.PlaylistLevelType.MAIN);return u===null?s:Math.max(s,u.len)},m.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},m.onAudioTracksUpdated=function(s,u){var D=u.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(S){return new L.Level(S)})},m.onAudioTrackSwitching=function(s,u){var D=!!u.url;this.trackId=u.id;var S=this.fragCurrent;S!=null&&S.loader&&S.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(E):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=O.State.IDLE):this.state=O.State.STOPPED,this.tick()},m.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},m.onLevelLoaded=function(s,u){this.mainDetails=u.details},m.onAudioTrackLoaded=function(s,u){var D,S=this.levels,A=u.details,N=u.id;if(!S){this.warn("Audio tracks were reset while loading level "+N);return}this.log("Track "+N+" loaded ["+A.startSN+","+A.endSN+"],duration:"+A.totalduration);var j=S[N],K=0;if(A.live||(D=j.details)!==null&&D!==void 0&&D.live){var H=this.mainDetails;if(A.fragments[0]||(A.deltaUpdateFailed=!0),A.deltaUpdateFailed||!H)return;!j.details&&A.hasProgramDateTime&&H.hasProgramDateTime?(Object(c.alignMediaPlaylistByPDT)(A,H),K=A.fragments[0].start):K=this.alignPlaylists(A,j.details)}j.details=A,this.levelLastLoaded=N,!this.startFragRequested&&(this.mainDetails||!A.live)&&this.setStartPosition(j.details,K),this.state===O.State.WAITING_TRACK&&!this.waitForCdnTuneIn(A)&&(this.state=O.State.IDLE),this.tick()},m._handleFragmentLoadProgress=function(s){var u,D=s.frag,S=s.part,A=s.payload,N=this.config,j=this.trackId,K=this.levels;if(!K){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var H=K[j];console.assert(H,"Audio track is defined on fragment load progress");var U=H.details;console.assert(U,"Audio track details are defined on fragment load progress");var B=N.defaultAudioCodec||H.audioCodec||"mp4a.40.2",q=this.transmuxer;q||(q=this.transmuxer=new _.default(this.hls,R.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ee=this.initPTS[D.cc],he=(u=D.initSegment)===null||u===void 0?void 0:u.data;if(ee!==void 0){var be=!1,Ye=S?S.index:-1,Pe=Ye!==-1,je=new v.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,A.byteLength,Ye,Pe);q.push(A,he,B,"",D,S,U.totalduration,be,je,ee)}else{r.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+j);var Qe=this.waitingData=this.waitingData||{frag:D,part:S,cache:new p.default,complete:!1},Ze=Qe.cache;Ze.push(new Uint8Array(A)),this.waitingVideoCC=this.videoTrackCC,this.state=O.State.WAITING_INIT_PTS}},m._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,s)},m.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},m.onBufferCreated=function(s,u){var D=u.tracks.audio;D&&(this.mediaBuffer=D.buffer),u.tracks.video&&(this.videoBuffer=u.tracks.video.buffer)},m.onFragBuffered=function(s,u){var D=u.frag,S=u.part;if(D.type!==R.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(S?" p: "+S.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,S)},m.onError=function(s,u){switch(u.details){case n.ErrorDetails.FRAG_LOAD_ERROR:case n.ErrorDetails.FRAG_LOAD_TIMEOUT:case n.ErrorDetails.KEY_LOAD_ERROR:case n.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.AUDIO,u);break;case n.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case n.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==O.State.ERROR&&this.state!==O.State.STOPPED&&(this.state=u.fatal?O.State.ERROR:O.State.IDLE,this.warn(u.details+" while loading frag, switching to "+this.state+" state"));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(u.parent==="audio"&&(this.state===O.State.PARSING||this.state===O.State.PARSED)){var D=!0,S=this.getFwdBufferInfo(this.mediaBuffer,R.PlaylistLevelType.AUDIO);S&&S.len>.5&&(D=!this.reduceMaxBufferLength(S.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},m.onBufferFlushed=function(s,u){var D=u.type;D===d.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},m._handleTransmuxComplete=function(s){var u,D="audio",S=this.hls,A=s.remuxResult,N=s.chunkMeta,j=this.getCurrentContext(N);if(!j){this.warn("The loading context changed while buffering fragment "+N.sn+" of level "+N.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(N.level);return}var K=j.frag,H=j.part,U=A.audio,B=A.text,q=A.id3,ee=A.initSegment;if(this.fragContextChanged(K))return;if(this.state=O.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),ee!=null&&ee.tracks&&(this._bufferInitSegment(ee.tracks,K,N),S.trigger(w.Events.FRAG_PARSING_INIT_SEGMENT,{frag:K,id:D,tracks:ee.tracks})),U){var he=U.startPTS,be=U.endPTS,Ye=U.startDTS,Pe=U.endDTS;H&&(H.elementaryStreams[d.ElementaryStreamTypes.AUDIO]={startPTS:he,endPTS:be,startDTS:Ye,endDTS:Pe}),K.setElementaryStreamInfo(d.ElementaryStreamTypes.AUDIO,he,be,Ye,Pe),this.bufferFragmentData(U,K,H,N)}if(q!=null&&(u=q.samples)!==null&&u!==void 0&&u.length){var je=o({frag:K,id:D},q);S.trigger(w.Events.FRAG_PARSING_METADATA,je)}if(B){var Qe=o({frag:K,id:D},B);S.trigger(w.Events.FRAG_PARSING_USERDATA,Qe)}},m._bufferInitSegment=function(s,u,D){if(this.state!==O.State.PARSING)return;s.video&&delete s.video;var S=s.audio;if(!S)return;S.levelCodec=S.codec,S.id="audio",this.log("Init audio buffer, container:"+S.container+", codecs[parsed]=["+S.codec+"]"),this.hls.trigger(w.Events.BUFFER_CODECS,s);var A=S.initSegment;if(A!=null&&A.byteLength){var N={type:"audio",frag:u,part:null,chunkMeta:D,parent:u.type,data:A};this.hls.trigger(w.Events.BUFFER_APPENDING,N)}this.tick()},m.loadFragment=function(s,u,D){var S=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||S===y.FragmentState.NOT_LOADED||S===y.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):u.live&&!Object(z.isFiniteNumber)(this.initPTS[s.cc])?(this.log("Waiting for video PTS in continuity counter "+s.cc+" of live stream before loading audio fragment "+s.sn+" of level "+this.trackId),this.state=O.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,s,u,D)))},m.completeAudioSwitch=function(){var s=this.hls,u=this.media,D=this.trackId;u&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,s.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:D})},T}(O.default);G.default=b},"./src/controller/audio-track-controller.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/events.ts"),O=I("./src/errors.ts"),w=I("./src/controller/base-playlist-controller.ts"),W=I("./src/types/loader.ts");function y(_,v){for(var h=0;h=r.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=r[this.trackId];this.log("Now switching to audio-track index "+n);var l=r[n],x=l.id,E=l.groupId,b=E===void 0?"":E,P=l.name,T=l.type,m=l.url;if(this.trackId=n,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(z.Events.AUDIO_TRACK_SWITCHING,{id:x,groupId:b,name:P,type:T,url:m}),l.details&&!l.details.live)return;var g=this.switchParams(l.url,o==null?void 0:o.details);this.loadPlaylist(g)},h.selectInitialTrack=function(){var n=this.tracksInGroup;console.assert(n.length,"Initial audio track should be selected when tracks are known");var r=this.trackName,o=this.findTrackId(r)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},h.findTrackId=function(n){for(var r=this.tracksInGroup,o=0;ov.partTarget&&(l+=1)}if(Object(z.isFiniteNumber)(o))return new O.HlsUrlParameters(o,Object(z.isFiniteNumber)(l)?l:void 0,O.HlsSkip.No)}}},d.loadPlaylist=function(_){},d.shouldLoadTrack=function(_){return this.canLoad&&_&&!!_.url&&(!_.details||_.details.live)},d.playlistLoaded=function(_,v,h){var c=this,n=v.details,r=v.stats,o=r.loading.end?Math.max(0,self.performance.now()-r.loading.end):0;if(n.advancedDateTime=Date.now()-o,n.live||h!=null&&h.live){if(n.reloaded(h),h&&this.log("live playlist "+_+" "+(n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:"MISSED")),h&&n.fragments.length>0&&Object(w.mergeDetails)(h,n),!this.canLoad||!n.live)return;var l,x=void 0,E=void 0;if(n.canBlockReload&&n.endSN&&n.advanced){var b=this.hls.config.lowLatencyMode,P=n.lastPartSn,T=n.endSN,m=n.lastPartIndex,g=m!==-1,s=P===T,u=b?0:m;g?(x=s?T+1:P,E=s?u:m+1):x=T+1;var D=n.age,S=D+n.ageHeader,A=Math.min(S-n.partTarget,n.targetduration*1.5);if(A>0){if(h&&A>h.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+h.tuneInGoal+" to: "+A+" with playlist age: "+n.age),A=0;else{var N=Math.floor(A/n.targetduration);if(x+=N,E!==void 0){var j=Math.round(A%n.targetduration/n.partTarget);E+=j}this.log("CDN Tune-in age: "+n.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+A+" skip sn "+N+" to part "+E)}n.tuneInGoal=A}if(l=this.getDeliveryDirectives(n,v.deliveryDirectives,x,E),b||!s){this.loadPlaylist(l);return}}else l=this.getDeliveryDirectives(n,v.deliveryDirectives,x,E);var K=Object(w.computeReloadInterval)(n,r);x!==void 0&&n.canBlockReload&&(K-=n.partTarget||1),this.log("reload live playlist "+_+" in "+Math.round(K)+" ms"),this.timer=self.setTimeout(function(){return c.loadPlaylist(l)},K)}else this.clearTimer()},d.getDeliveryDirectives=function(_,v,h,c){var n=Object(O.getSkipValue)(_,h);return v!=null&&v.skip&&_.deltaUpdateFailed&&(h=v.msn,c=v.part,n=O.HlsSkip.No),new O.HlsUrlParameters(h,c,n)},d.retryLoadingOrFail=function(_){var v=this,h=this.hls.config,c=this.retryCount-1&&(n=_.context)!==null&&n!==void 0&&n.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+_.details+'"'),this.loadPlaylist();else{var r=Math.min(Math.pow(2,this.retryCount)*h.levelLoadingRetryDelay,h.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return v.loadPlaylist()},r),this.warn("retry playlist loading #"+this.retryCount+" in "+r+' ms after "'+_.details+'"')}}else this.warn('cannot recover from error "'+_.details+'"'),this.clearTimer(),_.fatal=!0;return c},R}()},"./src/controller/base-stream-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"State",function(){return T}),I.d(G,"default",function(){return m});var z=I("./src/polyfills/number.ts"),O=I("./src/task-loop.ts"),w=I("./src/controller/fragment-tracker.ts"),W=I("./src/utils/buffer-helper.ts"),y=I("./src/utils/logger.ts"),L=I("./src/events.ts"),R=I("./src/errors.ts"),d=I("./src/types/transmuxer.ts"),p=I("./src/utils/mp4-tools.ts"),_=I("./src/utils/discontinuities.ts"),v=I("./src/controller/fragment-finders.ts"),h=I("./src/controller/level-helper.ts"),c=I("./src/loader/fragment-loader.ts"),n=I("./src/crypt/decrypter.ts"),r=I("./src/utils/time-ranges.ts"),o=I("./src/types/loader.ts");function l(g,s){for(var u=0;uee;(H0&&H&&H.key&&H.iv&&H.method==="AES-128"){var U=self.performance.now();return A.decrypter.webCryptoDecrypt(new Uint8Array(K),H.key.buffer,H.iv.buffer).then(function(B){var q=self.performance.now();return j.trigger(L.Events.FRAG_DECRYPTED,{frag:S,payload:B,stats:{tstart:U,tdecrypt:q}}),N.payload=B,N})}return N}).then(function(N){var j=A.fragCurrent,K=A.hls,H=A.levels;if(!H)throw new Error("init load aborted, missing levels");var U=H[S.level].details;console.assert(U,"Level details are defined when init segment is loaded");var B=S.stats;A.state=T.IDLE,A.fragLoadError=0,S.data=new Uint8Array(N.payload),B.parsing.start=B.buffering.start=self.performance.now(),B.parsing.end=B.buffering.end=self.performance.now(),N.frag===j&&K.trigger(L.Events.FRAG_BUFFERED,{stats:B,frag:j,part:null,id:S.type}),A.tick()}).catch(function(N){A.warn(N),A.resetFragmentLoading(S)})},u.fragContextChanged=function(S){var A=this.fragCurrent;return!S||!A||S.level!==A.level||S.sn!==A.sn||S.urlId!==A.urlId},u.fragBufferedComplete=function(S,A){var N=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+S.type+" sn: "+S.sn+(A?" part: "+A.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+S.level+" "+r.default.toString(W.BufferHelper.getBuffered(N))),this.state=T.IDLE,this.tick()},u._handleFragmentLoadComplete=function(S){var A=this.transmuxer;if(!A)return;var N=S.frag,j=S.part,K=S.partsLoaded,H=!K||K.length===0||K.some(function(B){return!B}),U=new d.ChunkMetadata(N.level,N.sn,N.stats.chunkCount+1,0,j?j.index:-1,!H);A.flush(U)},u._handleFragmentLoadProgress=function(S){},u._doFragLoad=function(S,A,N,j){var K=this;if(N===void 0&&(N=null),!this.levels)throw new Error("frag load aborted, missing levels");if(N=Math.max(S.start,N||0),this.config.lowLatencyMode&&A){var H=A.partList;if(H&&j){N>S.end&&A.fragmentHint&&(S=A.fragmentHint);var U=this.getNextPart(H,S,N);if(U>-1){var B=H[U];return this.log("Loading part sn: "+S.sn+" p: "+B.index+" cc: "+S.cc+" of playlist ["+A.startSN+"-"+A.endSN+"] parts [0-"+U+"-"+(H.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+S.level+", target: "+parseFloat(N.toFixed(3))),this.nextLoadPosition=B.start+B.duration,this.state=T.FRAG_LOADING,this.hls.trigger(L.Events.FRAG_LOADING,{frag:S,part:H[U],targetBufferTime:N}),this.doFragPartsLoad(S,H,U,j).catch(function(q){return K.handleFragLoadError(q)})}else if(!S.url||this.loadedEndOfParts(H,N))return Promise.resolve(null)}}return this.log("Loading fragment "+S.sn+" cc: "+S.cc+" "+(A?"of ["+A.startSN+"-"+A.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+S.level+", target: "+parseFloat(N.toFixed(3))),Object(z.isFiniteNumber)(S.sn)&&!this.bitrateTest&&(this.nextLoadPosition=S.start+S.duration),this.state=T.FRAG_LOADING,this.hls.trigger(L.Events.FRAG_LOADING,{frag:S,targetBufferTime:N}),this.fragmentLoader.load(S,j).catch(function(q){return K.handleFragLoadError(q)})},u.doFragPartsLoad=function(S,A,N,j){var K=this;return new Promise(function(H,U){var B=[],q=function ee(he){var be=A[he];K.fragmentLoader.loadPart(S,be,j).then(function(Ye){B[be.index]=Ye;var Pe=Ye.part;K.hls.trigger(L.Events.FRAG_LOADED,Ye);var je=A[he+1];if(je&&je.fragment===S)ee(he+1);else return H({frag:S,part:Pe,partsLoaded:B})}).catch(U)};q(N)})},u.handleFragLoadError=function(S){var A=S.data;return A&&A.details===R.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(A.frag,A.part):this.hls.trigger(L.Events.ERROR,A),null},u._handleTransmuxerFlush=function(S){var A=this.getCurrentContext(S);if(!A||this.state!==T.PARSING){this.fragCurrent||(this.state=T.IDLE);return}var N=A.frag,j=A.part,K=A.level,H=self.performance.now();N.stats.parsing.end=H,j&&(j.stats.parsing.end=H),this.updateLevelTiming(N,j,K,S.partial)},u.getCurrentContext=function(S){var A=this.levels,N=S.level,j=S.sn,K=S.part;if(!A||!A[N])return this.warn("Levels object was unset while buffering fragment "+j+" of level "+N+". The current chunk will not be buffered."),null;var H=A[N],U=K>-1?Object(h.getPartWith)(H,j,K):null,B=U?U.fragment:Object(h.getFragmentWithSN)(H,j,this.fragCurrent);return B?{frag:B,part:U,level:H}:null},u.bufferFragmentData=function(S,A,N,j){if(!S||this.state!==T.PARSING)return;var K=S.data1,H=S.data2,U=K;if(K&&H&&(U=Object(p.appendUint8Array)(K,H)),!U||!U.length)return;var B={type:S.type,frag:A,part:N,chunkMeta:j,parent:A.type,data:U};this.hls.trigger(L.Events.BUFFER_APPENDING,B),S.dropped&&S.independent&&!N&&this.flushBufferGap(A)},u.flushBufferGap=function(S){var A=this.media;if(!A)return;if(!W.BufferHelper.isBuffered(A,A.currentTime)){this.flushMainBuffer(0,S.start);return}var N=A.currentTime,j=W.BufferHelper.bufferInfo(A,N,0),K=S.duration,H=Math.min(this.config.maxFragLookUpTolerance*2,K*.25),U=Math.max(Math.min(S.start-H,j.end-H),N+H);S.start-U>H&&this.flushMainBuffer(U,S.start)},u.getFwdBufferInfo=function(S,A){var N=this.config,j=this.getLoadPosition();if(!Object(z.isFiniteNumber)(j))return null;var K=W.BufferHelper.bufferInfo(S,j,N.maxBufferHole);if(K.len===0&&K.nextStart!==void 0){var H=this.fragmentTracker.getBufferedFrag(j,A);if(H&&K.nextStart=N?(A.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+A.maxMaxBufferLength+"s"),!0):!1},u.getNextFragment=function(S,A){var N,j,K=A.fragments,H=K.length;if(!H)return null;var U=this.config,B=K[0].start,q;if(A.live){var ee=U.initialLiveManifestSize;if(H-1&&NN.start&&N.loaded},u.getInitialLiveFragment=function(S,A){var N=this.fragPrevious,j=null;if(N){if(S.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+N.programDateTime),j=Object(v.findFragmentByPDT)(A,N.endProgramDateTime,this.config.maxFragLookUpTolerance)),!j){var K=N.sn+1;if(K>=S.startSN&&K<=S.endSN){var H=A[K-S.startSN];N.cc===H.cc&&(j=H,this.log("Live playlist, switching playlist, load frag with next SN: "+j.sn))}j||(j=Object(v.findFragWithCC)(A,N.cc),j&&this.log("Live playlist, switching playlist, load frag with same CC: "+j.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(j=this.getFragmentAtPosition(U,this.bitrateTest?S.fragmentEnd:S.edge,S))}return j},u.getFragmentAtPosition=function(S,A,N){var j=this.config,K=this.fragPrevious,H=N.fragments,U=N.endSN,B=N.fragmentHint,q=j.maxFragLookUpTolerance,ee=!!(j.lowLatencyMode&&N.partList&&B);ee&&B&&!this.bitrateTest&&(H=H.concat(B),U=B.sn);var he;if(SA-q?0:q;he=Object(v.findFragmentByPTS)(K,H,S,be)}else he=H[H.length-1];if(he){var Ye=he.sn-N.startSN,Pe=K&&he.level===K.level,je=H[Ye+1],Qe=this.fragmentTracker.getState(he);if(Qe===w.FragmentState.BACKTRACKED){he=null;for(var Ze=Ye;H[Ze]&&this.fragmentTracker.getState(H[Ze])===w.FragmentState.BACKTRACKED;)K?he=H[Ze--]:he=H[--Ze];he||(he=je)}else K&&he.sn===K.sn&&!ee&&(Pe&&(he.sn=H-A.maxFragLookUpTolerance&&K<=U;if(j!==null&&N.duration>j&&(K"+S.startSN+" prev-sn: "+(K?K.sn:"na")+" fragments: "+U),he}return B},u.waitForCdnTuneIn=function(S){var A=3;return S.live&&S.canBlockReload&&S.tuneInGoal>Math.max(S.partHoldBack,S.partTarget*A)},u.setStartPosition=function(S,A){var N=this.startPosition;if(N"+S))}}]),s}(O.default)},"./src/controller/buffer-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v});var z=I("./src/polyfills/number.ts"),O=I("./src/events.ts"),w=I("./src/utils/logger.ts"),W=I("./src/errors.ts"),y=I("./src/utils/buffer-helper.ts"),L=I("./src/utils/mediasource-helper.ts"),R=I("./src/loader/fragment.ts"),d=I("./src/controller/buffer-operation-queue.ts"),p=Object(L.getMediaSource)(),_=/([ha]vc.)(?:\.[^.,]+)+/,v=function(){function h(n){var r=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=r.hls,l=r.media,x=r.mediaSource;w.logger.log("[buffer-controller]: Media source opened"),l&&(r.updateMediaElementDuration(),o.trigger(O.Events.MEDIA_ATTACHED,{media:l})),x&&x.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},this._onMediaSourceClose=function(){w.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){w.logger.log("[buffer-controller]: Media source ended")},this.hls=n,this._initSourceBuffer(),this.registerListeners()}var c=h.prototype;return c.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},c.destroy=function(){this.unregisterListeners(),this.details=null},c.registerListeners=function(){var r=this.hls;r.on(O.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(O.Events.BUFFER_RESET,this.onBufferReset,this),r.on(O.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.on(O.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(O.Events.BUFFER_EOS,this.onBufferEos,this),r.on(O.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(O.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(O.Events.FRAG_PARSED,this.onFragParsed,this),r.on(O.Events.FRAG_CHANGED,this.onFragChanged,this)},c.unregisterListeners=function(){var r=this.hls;r.off(O.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(O.Events.BUFFER_RESET,this.onBufferReset,this),r.off(O.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.off(O.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(O.Events.BUFFER_EOS,this.onBufferEos,this),r.off(O.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(O.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(O.Events.FRAG_PARSED,this.onFragParsed,this),r.off(O.Events.FRAG_CHANGED,this.onFragChanged,this)},c._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new d.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},c.onManifestParsed=function(r,o){var l=2;(o.audio&&!o.video||!o.altAudio)&&(l=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=l,this.details=null,w.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},c.onMediaAttaching=function(r,o){var l=this.media=o.media;if(l&&p){var x=this.mediaSource=new p;x.addEventListener("sourceopen",this._onMediaSourceOpen),x.addEventListener("sourceended",this._onMediaSourceEnded),x.addEventListener("sourceclose",this._onMediaSourceClose),l.src=self.URL.createObjectURL(x),this._objectUrl=l.src}},c.onMediaDetaching=function(){var r=this.media,o=this.mediaSource,l=this._objectUrl;if(o){if(w.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(x){w.logger.warn("[buffer-controller]: onMediaDetaching: "+x.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),r&&(l&&self.URL.revokeObjectURL(l),r.src===l?(r.removeAttribute("src"),r.load()):w.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(O.Events.MEDIA_DETACHED,void 0)},c.onBufferReset=function(){var r=this;this.getSourceBufferTypes().forEach(function(o){var l=r.sourceBuffer[o];try{l&&(r.removeBufferListeners(o),r.mediaSource&&r.mediaSource.removeSourceBuffer(l),r.sourceBuffer[o]=void 0)}catch(x){w.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",x)}}),this._initSourceBuffer()},c.onBufferCodecs=function(r,o){var l=this,x=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(E){if(x){var b=l.tracks[E];if(b&&typeof b.buffer.changeType=="function"){var P=o[E],T=P.codec,m=P.levelCodec,g=P.container,s=(b.levelCodec||b.codec).replace(_,"$1"),u=(m||T).replace(_,"$1");if(s!==u){var D=g+";codecs="+(m||T);l.appendChangeType(E,D)}}}else l.pendingTracks[E]=o[E]}),x)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},c.appendChangeType=function(r,o){var l=this,x=this.operationQueue,E={execute:function(){var P=l.sourceBuffer[r];P&&(w.logger.log("[buffer-controller]: changing "+r+" sourceBuffer type to "+o),P.changeType(o)),x.shiftAndExecuteNext(r)},onStart:function(){},onComplete:function(){},onError:function(P){w.logger.warn("[buffer-controller]: Failed to change "+r+" SourceBuffer type",P)}};x.append(E,r)},c.onBufferAppending=function(r,o){var l=this,x=this.hls,E=this.operationQueue,b=this.tracks,P=o.data,T=o.type,m=o.frag,g=o.part,s=o.chunkMeta,u=s.buffering[T],D=self.performance.now();u.start=D;var S=m.stats.buffering,A=g?g.stats.buffering:null;S.start===0&&(S.start=D),A&&A.start===0&&(A.start=D);var N=b.audio,j=T==="audio"&&s.id===1&&(N==null?void 0:N.container)==="audio/mpeg",K={execute:function(){if(u.executeStart=self.performance.now(),j){var U=l.sourceBuffer[T];if(U){var B=m.start-U.timestampOffset;Math.abs(B)>=.1&&(w.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+m.start+" (delta: "+B+") sn: "+m.sn+")"),U.timestampOffset=m.start)}}l.appendExecutor(P,T)},onStart:function(){},onComplete:function(){var U=self.performance.now();u.executeEnd=u.end=U,S.first===0&&(S.first=U),A&&A.first===0&&(A.first=U);var B=l.sourceBuffer,q={};for(var ee in B)q[ee]=y.BufferHelper.getBuffered(B[ee]);l.appendError=0,l.hls.trigger(O.Events.BUFFER_APPENDED,{type:T,frag:m,part:g,chunkMeta:s,parent:m.type,timeRanges:q})},onError:function(U){w.logger.error("[buffer-controller]: Error encountered while trying to append to the "+T+" SourceBuffer",U);var B={type:W.ErrorTypes.MEDIA_ERROR,parent:m.type,details:W.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?B.details=W.ErrorDetails.BUFFER_FULL_ERROR:(l.appendError++,B.details=W.ErrorDetails.BUFFER_APPEND_ERROR,l.appendError>x.config.appendErrorMaxRetry&&(w.logger.error("[buffer-controller]: Failed "+x.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),B.fatal=!0)),x.trigger(O.Events.ERROR,B)}};E.append(K,T)},c.onBufferFlushing=function(r,o){var l=this,x=this.operationQueue,E=function(P){return{execute:l.removeExecutor.bind(l,P,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){l.hls.trigger(O.Events.BUFFER_FLUSHED,{type:P})},onError:function(m){w.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",m)}}};o.type?x.append(E(o.type),o.type):this.getSourceBufferTypes().forEach(function(b){x.append(E(b),b)})},c.onFragParsed=function(r,o){var l=this,x=o.frag,E=o.part,b=[],P=E?E.elementaryStreams:x.elementaryStreams;P[R.ElementaryStreamTypes.AUDIOVIDEO]?b.push("audiovideo"):(P[R.ElementaryStreamTypes.AUDIO]&&b.push("audio"),P[R.ElementaryStreamTypes.VIDEO]&&b.push("video"));var T=function(){var g=self.performance.now();x.stats.buffering.end=g,E&&(E.stats.buffering.end=g);var s=E?E.stats:x.stats;l.hls.trigger(O.Events.FRAG_BUFFERED,{frag:x,part:E,stats:s,id:x.type})};b.length===0&&w.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+x.type+" level: "+x.level+" sn: "+x.sn),this.blockBuffers(T,b)},c.onFragChanged=function(r,o){this.flushBackBuffer()},c.onBufferEos=function(r,o){var l=this,x=this.getSourceBufferTypes().reduce(function(E,b){var P=l.sourceBuffer[b];return(!o.type||o.type===b)&&(P&&!P.ended&&(P.ended=!0,w.logger.log("[buffer-controller]: "+b+" sourceBuffer now EOS"))),E&&!!(!P||P.ended)},!0);x&&this.blockBuffers(function(){var E=l.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},c.onLevelUpdated=function(r,o){var l=o.details;if(!l.fragments.length)return;this.details=l,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},c.flushBackBuffer=function(){var r=this.hls,o=this.details,l=this.media,x=this.sourceBuffer;if(!l||o===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var b=o.live&&r.config.liveBackBufferLength!==null?r.config.liveBackBufferLength:r.config.backBufferLength;if(!Object(z.isFiniteNumber)(b)||b<0)return;var P=l.currentTime,T=o.levelTargetDuration,m=Math.max(b,T),g=Math.floor(P/T)*T-m;E.forEach(function(s){var u=x[s];if(u){var D=y.BufferHelper.getBuffered(u);D.length>0&&g>D.start(0)&&(r.trigger(O.Events.BACK_BUFFER_REACHED,{bufferEnd:g}),o.live&&r.trigger(O.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:g}),r.trigger(O.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:g,type:s}))}})},c.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var r=this.details,o=this.hls,l=this.media,x=this.mediaSource,E=r.fragments[0].start+r.totalduration,b=l.duration,P=Object(z.isFiniteNumber)(x.duration)?x.duration:0;r.live&&o.config.liveDurationInfinity?(w.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),x.duration=Infinity,this.updateSeekableRange(r)):(E>P&&E>b||!Object(z.isFiniteNumber)(b))&&(w.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),x.duration=E)},c.updateSeekableRange=function(r){var o=this.mediaSource,l=r.fragments,x=l.length;if(x&&r.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var E=Math.max(0,l[0].start),b=Math.max(E,E+r.totalduration);o.setLiveSeekableRange(E,b)}},c.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,o=this.operationQueue,l=this.pendingTracks,x=Object.keys(l).length;if(x&&!r||x===2){this.createSourceBuffers(l),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(O.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(b){o.executeNext(b)})}},c.createSourceBuffers=function(r){var o=this.sourceBuffer,l=this.mediaSource;if(!l)throw Error("createSourceBuffers called when mediaSource was null");var x=0;for(var E in r)if(!o[E]){var b=r[E];if(!b)throw Error("source buffer exists for track "+E+", however track does not");var P=b.levelCodec||b.codec,T=b.container+";codecs="+P;w.logger.log("[buffer-controller]: creating sourceBuffer("+T+")");try{var m=o[E]=l.addSourceBuffer(T),g=E;this.addBufferListener(g,"updatestart",this._onSBUpdateStart),this.addBufferListener(g,"updateend",this._onSBUpdateEnd),this.addBufferListener(g,"error",this._onSBUpdateError),this.tracks[E]={buffer:m,codec:P,container:b.container,levelCodec:b.levelCodec,id:b.id},x++}catch(s){w.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(O.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:T})}}x&&this.hls.trigger(O.Events.BUFFER_CREATED,{tracks:this.tracks})},c._onSBUpdateStart=function(r){var o=this.operationQueue,l=o.current(r);l.onStart()},c._onSBUpdateEnd=function(r){var o=this.operationQueue,l=o.current(r);l.onComplete(),o.shiftAndExecuteNext(r)},c._onSBUpdateError=function(r,o){w.logger.error("[buffer-controller]: "+r+" SourceBuffer error",o),this.hls.trigger(O.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var l=this.operationQueue.current(r);l&&l.onError(o)},c.removeExecutor=function(r,o,l){var x=this.media,E=this.mediaSource,b=this.operationQueue,P=this.sourceBuffer,T=P[r];if(!x||!E||!T){w.logger.warn("[buffer-controller]: Attempting to remove from the "+r+" SourceBuffer, but it does not exist"),b.shiftAndExecuteNext(r);return}var m=Object(z.isFiniteNumber)(x.duration)?x.duration:Infinity,g=Object(z.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Math.max(0,o),u=Math.min(l,m,g);u>s?(w.logger.log("[buffer-controller]: Removing ["+s+","+u+"] from the "+r+" SourceBuffer"),console.assert(!T.updating,r+" sourceBuffer must not be updating"),T.remove(s,u)):b.shiftAndExecuteNext(r)},c.appendExecutor=function(r,o){var l=this.operationQueue,x=this.sourceBuffer,E=x[o];if(!E){w.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),l.shiftAndExecuteNext(o);return}E.ended=!1,console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.appendBuffer(r)},c.blockBuffers=function(r,o){var l=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){w.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(r);return}var x=this.operationQueue,E=o.map(function(b){return x.appendBlocker(b)});Promise.all(E).then(function(){r(),o.forEach(function(b){var P=l.sourceBuffer[b];(!P||!P.updating)&&x.shiftAndExecuteNext(b)})})},c.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},c.addBufferListener=function(r,o,l){var x=this.sourceBuffer[r];if(!x)return;var E=l.bind(this,r);this.listeners[r].push({event:o,listener:E}),x.addEventListener(o,E)},c.removeBufferListeners=function(r){var o=this.sourceBuffer[r];if(!o)return;this.listeners[r].forEach(function(l){o.removeEventListener(l.event,l.listener)})},h}()},"./src/controller/buffer-operation-queue.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return O});var z=I("./src/utils/logger.ts"),O=function(){function w(y){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=y}var W=w.prototype;return W.append=function(L,R){var d=this.queues[R];d.push(L),d.length===1&&this.buffers[R]&&this.executeNext(R)},W.insertAbort=function(L,R){var d=this.queues[R];d.unshift(L),this.executeNext(R)},W.appendBlocker=function(L){var R,d=new Promise(function(_){R=_}),p={execute:R,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(p,L),d},W.executeNext=function(L){var R=this.buffers,d=this.queues,p=R[L],_=d[L];if(_.length){var v=_[0];try{v.execute()}catch(h){z.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),v.onError(h),(!p||!p.updating)&&(_.shift(),this.executeNext(L))}}},W.shiftAndExecuteNext=function(L){this.queues[L].shift(),this.executeNext(L)},W.current=function(L){return this.queues[L][0]},w}()},"./src/controller/cap-level-controller.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/events.ts");function O(y,L){for(var R=0;R0&&this.mediaWidth>0){var d=this.hls.levels;if(d.length){var p=this.hls;p.autoLevelCapping=this.getMaxLevel(d.length-1),p.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=p.autoLevelCapping}}},L.getMaxLevel=function(d){var p=this,_=this.hls.levels;if(!_.length)return-1;var v=_.filter(function(h,c){return y.isLevelAllowed(c,p.restrictedLevels)&&c<=d});return this.clientRect=null,y.getMaxLevelByMediaSize(v,this.mediaWidth,this.mediaHeight)},L.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},L.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},L.getDimensions=function(){if(this.clientRect)return this.clientRect;var d=this.media,p={width:0,height:0};if(d){var _=d.getBoundingClientRect();p.width=_.width,p.height=_.height,!p.width&&!p.height&&(p.width=_.right-_.left||d.width||0,p.height=_.bottom-_.top||d.height||0)}return this.clientRect=p,p},y.isLevelAllowed=function(d,p){return p===void 0&&(p=[]),p.indexOf(d)===-1},y.getMaxLevelByMediaSize=function(d,p,_){if(!d||!d.length)return-1;for(var v=function(o,l){return l?o.width!==l.width||o.height!==l.height:!0},h=d.length-1,c=0;c=p||n.height>=_)&&v(n,d[c+1])){h=c;break}}return h},w(y,[{key:"mediaWidth",get:function(){return this.getDimensions().width*y.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*y.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var d=1;try{d=self.devicePixelRatio}catch(p){}return d}}]),y}();G.default=W},"./src/controller/cmcd-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v});var z=I("./src/events.ts"),O=I("./src/types/cmcd.ts"),w=I("./src/utils/buffer-helper.ts"),W=I("./src/utils/logger.ts");function y(h,c){for(var n=0;n=h.length?{done:!0}:{done:!1,value:h[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(h,c){if(!h)return;if(typeof h=="string")return p(h,c);var n=Object.prototype.toString.call(h).slice(8,-1);if(n==="Object"&&h.constructor&&(n=h.constructor.name),n==="Map"||n==="Set")return Array.from(h);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(h,c)}function p(h,c){(c==null||c>h.length)&&(c=h.length);for(var n=0,r=new Array(c);no&&(o=b.bitrate)}return o>0?o:NaN},c.getBufferLength=function(r){var o=this.hls.media,l=r===O.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!l||!o)return NaN;var x=w.BufferHelper.bufferInfo(l,o.currentTime,this.config.maxBufferHole);return x.len*1e3},c.createPlaylistLoader=function(){var r=this.config.pLoader,o=this.applyPlaylistData,l=r||this.config.loader;return function(){function x(b){this.loader=void 0,this.loader=new l(b)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,T,m){o(P),this.loader.load(P,T,m)},L(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},c.createFragmentLoader=function(){var r=this.config.fLoader,o=this.applyFragmentData,l=r||this.config.loader;return function(){function x(b){this.loader=void 0,this.loader=new l(b)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,T,m){o(P),this.loader.load(P,T,m)},L(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},h.uuid=function(){var r=URL.createObjectURL(new Blob),o=r.toString();return URL.revokeObjectURL(r),o.substr(o.lastIndexOf("/")+1)},h.serialize=function(r){for(var o=[],l=function(j){return!Number.isNaN(j)&&j!=null&&j!==""&&j!==!1},x=function(j){return Math.round(j)},E=function(j){return x(j/100)*100},b=function(j){return encodeURIComponent(j)},P={br:x,d:x,bl:E,dl:E,mtp:E,nor:b,rtp:E,tb:x},T=Object.keys(r||{}).sort(),m=R(T),g;!(g=m()).done;){var s=g.value,u=r[s];if(!l(u))continue;if(s==="v"&&u===1)continue;if(s=="pr"&&u===1)continue;var D=P[s];D&&(u=D(u));var S=typeof u,A=void 0;s==="ot"||s==="sf"||s==="st"?A=s+"="+u:S==="boolean"?A=s:S==="number"?A=s+"="+u:A=s+"="+JSON.stringify(u),o.push(A)}return o.join(",")},h.toHeaders=function(r){for(var o=Object.keys(r),l={},x=["Object","Request","Session","Status"],E=[{},{},{},{}],b={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},P=0,T=o;PR){this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.KEY_SYSTEM_ERROR,details:O.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var b=R-this._requestLicenseFailureCount+1;w.logger.warn("Retrying license request, "+b+" attempts left"),this._requestLicense(o,l)}break}},h._generateLicenseRequestChallenge=function(n,r){switch(n.mediaKeySystemDomain){case W.KeySystems.WIDEVINE:return r}throw new Error("unsupported key-system: "+n.mediaKeySystemDomain)},h._requestLicense=function(n,r){w.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){w.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.KEY_SYSTEM_ERROR,details:O.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var l=this.getLicenseServerUrl(o.mediaKeySystemDomain),x=this._createLicenseXhr(l,n,r);w.logger.log("Sending license request to URL: "+l);var E=this._generateLicenseRequestChallenge(o,n);x.send(E)}catch(b){w.logger.error("Failure requesting DRM license: "+b),this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.KEY_SYSTEM_ERROR,details:O.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},h.onMediaAttached=function(n,r){if(!this._emeEnabled)return;var o=r.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},h.onMediaDetached=function(){var n=this._media,r=this._mediaKeysList;if(!n)return;n.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(r.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return n.setMediaKeys(null)}).catch(function(){})},h.onManifestParsed=function(n,r){if(!this._emeEnabled)return;var o=r.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),l=r.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(W.KeySystems.WIDEVINE,o,l)},L(v,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),v}();G.default=_},"./src/controller/fps-controller.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/events.ts"),O=I("./src/utils/logger.ts"),w=function(){function W(L){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=L,this.registerListeners()}var y=W.prototype;return y.setStreamController=function(R){this.streamController=R},y.registerListeners=function(){this.hls.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},y.unregisterListeners=function(){this.hls.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching)},y.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},y.onMediaAttaching=function(R,d){var p=this.hls.config;if(p.capLevelOnFPSDrop){var _=d.media instanceof self.HTMLVideoElement?d.media:null;this.media=_,_&&typeof _.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),p.fpsDroppedMonitoringPeriod)}},y.checkFPS=function(R,d,p){var _=performance.now();if(d){if(this.lastTime){var v=_-this.lastTime,h=p-this.lastDroppedFrames,c=d-this.lastDecodedFrames,n=1e3*h/v,r=this.hls;if(r.trigger(z.Events.FPS_DROP,{currentDropped:h,currentDecoded:c,totalDroppedFrames:p}),n>0&&h>r.config.fpsDroppedMonitoringThreshold*c){var o=r.currentLevel;O.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(r.autoLevelCapping===-1||r.autoLevelCapping>=o)&&(o=o-1,r.trigger(z.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:r.currentLevel}),r.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=_,this.lastDroppedFrames=p,this.lastDecodedFrames=d}},y.checkFPSInterval=function(){var R=this.media;if(R)if(this.isVideoPlaybackQualityAvailable){var d=R.getVideoPlaybackQuality();this.checkFPS(R,d.totalVideoFrames,d.droppedVideoFrames)}else this.checkFPS(R,R.webkitDecodedFrameCount,R.webkitDroppedFrameCount)},W}();G.default=w},"./src/controller/fragment-finders.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"findFragmentByPDT",function(){return w}),I.d(G,"findFragmentByPTS",function(){return W}),I.d(G,"fragmentWithinToleranceTest",function(){return y}),I.d(G,"pdtWithinToleranceTest",function(){return L}),I.d(G,"findFragWithCC",function(){return R});var z=I("./src/polyfills/number.ts"),O=I("./src/utils/binary-search.ts");function w(d,p,_){if(p===null||!Array.isArray(d)||!d.length||!Object(z.isFiniteNumber)(p))return null;var v=d[0].programDateTime;if(p<(v||0))return null;var h=d[d.length-1].endProgramDateTime;if(p>=(h||0))return null;_=_||0;for(var c=0;cd&&_.start?-1:0}function L(d,p,_){var v=Math.min(p,_.duration+(_.deltaPTS?_.deltaPTS:0))*1e3,h=_.endProgramDateTime||0;return h-v>d}function R(d,p){return O.default.search(d,function(_){return _.ccp?-1:0})}},"./src/controller/fragment-tracker.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"FragmentState",function(){return w}),I.d(G,"FragmentTracker",function(){return W});var z=I("./src/events.ts"),O=I("./src/types/loader.ts"),w;(function(R){R.NOT_LOADED="NOT_LOADED",R.BACKTRACKED="BACKTRACKED",R.APPENDING="APPENDING",R.PARTIAL="PARTIAL",R.OK="OK"})(w||(w={}));var W=function(){function R(p){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=p,this._registerListeners()}var d=R.prototype;return d._registerListeners=function(){var _=this.hls;_.on(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),_.on(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),_.on(z.Events.FRAG_LOADED,this.onFragLoaded,this)},d._unregisterListeners=function(){var _=this.hls;_.off(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),_.off(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),_.off(z.Events.FRAG_LOADED,this.onFragLoaded,this)},d.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},d.getAppendedFrag=function(_,v){if(v===O.PlaylistLevelType.MAIN){var h=this.activeFragment,c=this.activeParts;if(!h)return null;if(c)for(var n=c.length;n--;){var r=c[n],o=r?r.end:h.appendedPTS;if(r.start<=_&&o!==void 0&&_<=o)return n>9&&(this.activeParts=c.slice(n-9)),r}else if(h.start<=_&&h.appendedPTS!==void 0&&_<=h.appendedPTS)return h}return this.getBufferedFrag(_,v)},d.getBufferedFrag=function(_,v){for(var h=this.fragments,c=Object.keys(h),n=c.length;n--;){var r=h[c[n]];if((r==null?void 0:r.body.type)===v&&r.buffered){var o=r.body;if(o.start<=_&&_<=o.end)return o}}return null},d.detectEvictedFragments=function(_,v,h){var c=this;Object.keys(this.fragments).forEach(function(n){var r=c.fragments[n];if(!r)return;if(!r.buffered){r.body.type===h&&c.removeFragment(r.body);return}var o=r.range[_];if(!o)return;o.time.some(function(l){var x=!c.isTimeBuffered(l.startPTS,l.endPTS,v);return x&&c.removeFragment(r.body),x})})},d.detectPartialFragments=function(_){var v=this,h=this.timeRanges,c=_.frag,n=_.part;if(!h||c.sn==="initSegment")return;var r=L(c),o=this.fragments[r];if(!o)return;Object.keys(h).forEach(function(l){var x=c.elementaryStreams[l];if(!x)return;var E=h[l],b=n!==null||x.partial===!0;o.range[l]=v.getBufferedTimes(c,n,b,E)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},d.fragBuffered=function(_){var v=L(_),h=this.fragments[v];h&&(h.backtrack=h.loaded=null,h.buffered=!0)},d.getBufferedTimes=function(_,v,h,c){for(var n={time:[],partial:h},r=v?v.start:_.start,o=v?v.end:_.end,l=_.minEndPTS||o,x=_.maxStartPTS||r,E=0;E=b&&l<=P){n.time.push({startPTS:Math.max(r,c.start(E)),endPTS:Math.min(o,c.end(E))});break}else if(rb)n.partial=!0,n.time.push({startPTS:Math.max(r,c.start(E)),endPTS:Math.min(o,c.end(E))});else if(o<=b)break}return n},d.getPartialFragment=function(_){var v=null,h,c,n,r=0,o=this.bufferPadding,l=this.fragments;return Object.keys(l).forEach(function(x){var E=l[x];if(!E)return;y(E)&&(c=E.body.start-o,n=E.body.end+o,_>=c&&_<=n&&(h=Math.min(_-c,n-_),r<=h&&(v=E.body,r=h)))}),v},d.getState=function(_){var v=L(_),h=this.fragments[v];return h?h.buffered?y(h)?w.PARTIAL:w.OK:h.backtrack?w.BACKTRACKED:w.APPENDING:w.NOT_LOADED},d.backtrack=function(_,v){var h=L(_),c=this.fragments[h];if(!c||c.backtrack)return null;var n=c.backtrack=v||c.loaded;return c.loaded=null,n},d.getBacktrackData=function(_){var v=L(_),h=this.fragments[v];if(h){var c,n=h.backtrack;if(n!=null&&(c=n.payload)!==null&&c!==void 0&&c.byteLength)return n;this.removeFragment(_)}return null},d.isTimeBuffered=function(_,v,h){for(var c,n,r=0;r=c&&v<=n)return!0;if(v<=c)return!1}return!1},d.onFragLoaded=function(_,v){var h=v.frag,c=v.part;if(h.sn==="initSegment"||h.bitrateTest||c)return;var n=L(h);this.fragments[n]={body:h,loaded:v,backtrack:null,buffered:!1,range:Object.create(null)}},d.onBufferAppended=function(_,v){var h=this,c=v.frag,n=v.part,r=v.timeRanges;if(c.type===O.PlaylistLevelType.MAIN)if(this.activeFragment=c,n){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(n)}else this.activeParts=null;this.timeRanges=r,Object.keys(r).forEach(function(l){var x=r[l];if(h.detectEvictedFragments(l,x),!n)for(var E=0;E_&&c.removeFragment(o)}})},d.removeFragment=function(_){var v=L(_);_.stats.loaded=0,_.clearElementaryStreamInfo(),delete this.fragments[v]},d.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},R}();function y(R){var d,p;return R.buffered&&(((d=R.range.video)===null||d===void 0?void 0:d.partial)||((p=R.range.audio)===null||p===void 0?void 0:p.partial))}function L(R){return R.type+"_"+R.level+"_"+R.urlId+"_"+R.sn}},"./src/controller/gap-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"STALL_MINIMUM_DURATION_MS",function(){return y}),I.d(G,"MAX_START_GAP_JUMP",function(){return L}),I.d(G,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return R}),I.d(G,"SKIP_BUFFER_RANGE_START",function(){return d}),I.d(G,"default",function(){return p});var z=I("./src/utils/buffer-helper.ts"),O=I("./src/errors.ts"),w=I("./src/events.ts"),W=I("./src/utils/logger.ts"),y=250,L=2,R=.1,d=.05,p=function(){function _(h,c,n,r){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=h,this.media=c,this.fragmentTracker=n,this.hls=r}var v=_.prototype;return v.destroy=function(){this.hls=this.fragmentTracker=this.media=null},v.poll=function(c){var n=this.config,r=this.media,o=this.stalled,l=r.currentTime,x=r.seeking,E=this.seeking&&!x,b=!this.seeking&&x;if(this.seeking=x,l!==c){if(this.moved=!0,o!==null){if(this.stallReported){var P=self.performance.now()-o;W.logger.warn("playback not stuck anymore @"+l+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((b||E)&&(this.stalled=null),r.paused||r.ended||r.playbackRate===0||!z.BufferHelper.getBuffered(r).length)return;var T=z.BufferHelper.bufferInfo(r,l,0),m=T.len>0,g=T.nextStart||0;if(!m&&!g)return;if(x){var s=T.len>L,u=!g||g-l>L&&!this.fragmentTracker.getPartialFragment(l);if(s||u)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,S=Math.max(g,T.start||0)-l,A=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,N=A==null||((D=A.details)===null||D===void 0)?void 0:D.live,j=N?A.details.targetduration*2:L;if(S>0&&S<=j){this._trySkipBufferHole(null);return}}var K=self.performance.now();if(o===null){this.stalled=K;return}var H=K-o;!x&&H>=y&&this._reportStall(T.len);var U=z.BufferHelper.bufferInfo(r,l,n.maxBufferHole);this._tryFixBufferStall(U,H)},v._tryFixBufferStall=function(c,n){var r=this.config,o=this.fragmentTracker,l=this.media,x=l.currentTime,E=o.getPartialFragment(x);if(E){var b=this._trySkipBufferHole(E);if(b)return}c.len>r.maxBufferHole&&n>r.highBufferWatchdogPeriod*1e3&&(W.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},v._reportStall=function(c){var n=this.hls,r=this.media,o=this.stallReported;o||(this.stallReported=!0,W.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+c+")"),n.trigger(w.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:c}))},v._trySkipBufferHole=function(c){for(var n=this.config,r=this.hls,o=this.media,l=o.currentTime,x=0,E=z.BufferHelper.getBuffered(o),b=0;b=x&&l.05&&this.forwardBufferLength>1){var b=Math.min(2,Math.max(1,r)),P=Math.round(2/(1+Math.exp(-.75*l-this.edgeStalled))*20)/20;_.playbackRate=Math.min(b,Math.max(1,P))}else _.playbackRate!==1&&_.playbackRate!==0&&(_.playbackRate=1)},d.estimateLiveEdge=function(){var _=this.levelDetails;return _===null?null:_.edge+_.age},d.computeLatency=function(){var _=this.estimateLiveEdge();return _===null?null:_-this.currentTime},y(R,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var _=this.config,v=this.levelDetails;return _.liveMaxLatencyDuration!==void 0?_.liveMaxLatencyDuration:v?_.liveMaxLatencyDurationCount*v.targetduration:0}},{key:"targetLatency",get:function(){var _=this.levelDetails;if(_===null)return null;var v=_.holdBack,h=_.partHoldBack,c=_.targetduration,n=this.config,r=n.liveSyncDuration,o=n.liveSyncDurationCount,l=n.lowLatencyMode,x=this.hls.userConfig,E=l&&h||v;(x.liveSyncDuration||x.liveSyncDurationCount||E===0)&&(E=r!==void 0?r:o*c);var b=c,P=1;return E+Math.min(this.stallCount*P,b)}},{key:"liveSyncPosition",get:function(){var _=this.estimateLiveEdge(),v=this.targetLatency,h=this.levelDetails;if(_===null||v===null||h===null)return null;var c=h.edge,n=_-v-this.edgeStalled,r=c-h.totalduration,o=c-(this.config.lowLatencyMode&&h.partTarget||h.targetduration);return Math.min(Math.max(r,n),o)}},{key:"drift",get:function(){var _=this.levelDetails;return _===null?1:_.drift}},{key:"edgeStalled",get:function(){var _=this.levelDetails;if(_===null)return 0;var v=(this.config.lowLatencyMode&&_.partTarget||_.targetduration)*3;return Math.max(_.age-v,0)}},{key:"forwardBufferLength",get:function(){var _=this.media,v=this.levelDetails;if(!_||!v)return 0;var h=_.buffered.length;return h?_.buffered.end(h-1):v.edge-this.currentTime}}]),R}()},"./src/controller/level-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return n});var z=I("./src/types/level.ts"),O=I("./src/events.ts"),w=I("./src/errors.ts"),W=I("./src/utils/codecs.ts"),y=I("./src/controller/level-helper.ts"),L=I("./src/controller/base-playlist-controller.ts"),R=I("./src/types/loader.ts");function d(){return d=Object.assign||function(r){for(var o=1;o0){g=P[0].bitrate,P.sort(function(H,U){return H.bitrate-U.bitrate}),this._levels=P;for(var N=0;Nthis.hls.config.fragLoadingMaxRetry&&(s=b.frag.level)):s=b.frag.level}break;case w.ErrorDetails.LEVEL_LOAD_ERROR:case w.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(g=!1),s=P.level),m=!0;break;case w.ErrorDetails.REMUX_ALLOC_ERROR:s=b.level,m=!0;break}s!==void 0&&this.recoverLevel(b,s,m,g)},l.recoverLevel=function(E,b,P,T){var m=E.details,g=this._levels[b];if(g.loadError++,P){var s=this.retryLoadingOrFail(E);if(s)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(T){var u=g.url.length;if(u>1&&g.loadError1){var T=(b.urlId+1)%P;this.warn("Switching to redundant URL-id "+T),this._levels.forEach(function(m){m.urlId=T}),this.level=E}},l.onFragLoaded=function(E,b){var P=b.frag;if(P!==void 0&&P.type===R.PlaylistLevelType.MAIN){var T=this._levels[P.level];T!==void 0&&(T.fragmentError=0,T.loadError=0)}},l.onLevelLoaded=function(E,b){var P,T=b.level,m=b.details,g=this._levels[T];if(!g){var s;this.warn("Invalid level index "+T),(s=b.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(m.deltaUpdateFailed=!0);return}T===this.currentLevelIndex?(g.fragmentError===0&&(g.loadError=0,this.retryCount=0),this.playlistLoaded(T,b,g.details)):(P=b.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(m.deltaUpdateFailed=!0)},l.onAudioTrackSwitched=function(E,b){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var T=-1,m=this.hls.audioTracks[b.id].groupId,g=0;g0){var T=P.urlId,m=P.url[T];if(E)try{m=E.addDirectives(m)}catch(g){this.warn("Could not construct new URL with HLS Delivery Directives: "+g)}this.log("Attempt loading level index "+b+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+T+" "+m),this.clearTimer(),this.hls.trigger(O.Events.LEVEL_LOADING,{url:m,level:b,id:T,deliveryDirectives:E||null})}},l.removeLevel=function(E,b){var P=function(g,s){return s!==b},T=this._levels.filter(function(m,g){return g!==E?!0:m.url.length>1&&b!==void 0?(m.url=m.url.filter(P),m.audioGroupIds&&(m.audioGroupIds=m.audioGroupIds.filter(P)),m.textGroupIds&&(m.textGroupIds=m.textGroupIds.filter(P)),m.urlId=0,!0):!1}).map(function(m,g){var s=m.details;return s!=null&&s.fragments&&s.fragments.forEach(function(u){u.level=g}),m});this._levels=T,this.hls.trigger(O.Events.LEVELS_UPDATED,{levels:T})},_(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var b,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===E&&(b=P[E])!==null&&b!==void 0&&b.details)return;if(E<0||E>=P.length){var T=E<0;if(this.hls.trigger(O.Events.ERROR,{type:w.ErrorTypes.OTHER_ERROR,details:w.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:T,reason:"invalid level idx"}),T)return;E=Math.min(E,P.length-1)}this.clearTimer();var m=this.currentLevelIndex,g=P[m],s=P[E];this.log("switching to level "+E+" from "+m),this.currentLevelIndex=E;var u=d({},s,{level:E,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete u._urlId,this.hls.trigger(O.Events.LEVEL_SWITCHING,u);var D=s.details;if(!D||D.live){var S=this.switchParams(s.uri,g==null?void 0:g.details);this.loadPlaylist(S)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),o}(L.default)},"./src/controller/level-helper.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"addGroupId",function(){return w}),I.d(G,"assignTrackIdsByGroup",function(){return W}),I.d(G,"updatePTS",function(){return y}),I.d(G,"updateFragPTSDTS",function(){return R}),I.d(G,"mergeDetails",function(){return d}),I.d(G,"mapPartIntersection",function(){return p}),I.d(G,"mapFragmentIntersection",function(){return _}),I.d(G,"adjustSliding",function(){return v}),I.d(G,"addSliding",function(){return h}),I.d(G,"computeReloadInterval",function(){return c}),I.d(G,"getFragmentWithSN",function(){return n}),I.d(G,"getPartWith",function(){return r});var z=I("./src/polyfills/number.ts"),O=I("./src/utils/logger.ts");function w(o,l,x){switch(l){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(x);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(x);break}}function W(o){var l={};o.forEach(function(x){var E=x.groupId||"";x.id=l[E]=l[E]||0,l[E]++})}function y(o,l,x){var E=o[l],b=o[x];L(E,b)}function L(o,l){var x=l.startPTS;if(Object(z.isFiniteNumber)(x)){var E=0,b;l.sn>o.sn?(E=x-o.start,b=o):(E=o.start-x,b=l),b.duration!==E&&(b.duration=E)}else if(l.sn>o.sn){var P=o.cc===l.cc;P&&o.minEndPTS?l.start=o.start+(o.minEndPTS-o.start):l.start=o.start+o.duration}else l.start=Math.max(o.start-l.duration,0)}function R(o,l,x,E,b,P){var T=E-x;T<=0&&(O.logger.warn("Fragment should have a positive duration",l),E=x+l.duration,P=b+l.duration);var m=x,g=E,s=l.startPTS,u=l.endPTS;if(Object(z.isFiniteNumber)(s)){var D=Math.abs(s-x);Object(z.isFiniteNumber)(l.deltaPTS)?l.deltaPTS=Math.max(D,l.deltaPTS):l.deltaPTS=D,m=Math.max(x,s),x=Math.min(x,s),b=Math.min(b,l.startDTS),g=Math.min(E,u),E=Math.max(E,u),P=Math.max(P,l.endDTS)}l.duration=E-x;var S=x-l.start;l.appendedPTS=E,l.start=l.startPTS=x,l.maxStartPTS=m,l.startDTS=b,l.endPTS=E,l.minEndPTS=g,l.endDTS=P;var A=l.sn;if(!o||Ao.endSN)return 0;var N,j=A-o.startSN,K=o.fragments;for(K[j]=l,N=j;N>0;N--)L(K[N],K[N-1]);for(N=j;N=0;b--){var P=E[b].initSegment;if(P){x=P;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var T=0,m;if(_(o,l,function(N,j){N.relurl&&(T=N.cc-j.cc),Object(z.isFiniteNumber)(N.startPTS)&&Object(z.isFiniteNumber)(N.endPTS)&&(j.start=j.startPTS=N.startPTS,j.startDTS=N.startDTS,j.appendedPTS=N.appendedPTS,j.maxStartPTS=N.maxStartPTS,j.endPTS=N.endPTS,j.endDTS=N.endDTS,j.minEndPTS=N.minEndPTS,j.duration=N.endPTS-N.startPTS,j.duration&&(m=j),l.PTSKnown=l.alignedSliding=!0),j.elementaryStreams=N.elementaryStreams,j.loader=N.loader,j.stats=N.stats,j.urlId=N.urlId,N.initSegment&&(j.initSegment=N.initSegment,x=N.initSegment)}),x){var g=l.fragmentHint?l.fragments.concat(l.fragmentHint):l.fragments;g.forEach(function(N){var j;(!N.initSegment||N.initSegment.relurl===((j=x)===null||j===void 0?void 0:j.relurl))&&(N.initSegment=x)})}if(l.skippedSegments&&(l.deltaUpdateFailed=l.fragments.some(function(N){return!N}),l.deltaUpdateFailed)){O.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=l.skippedSegments;s--;)l.fragments.shift();l.startSN=l.fragments[0].sn,l.startCC=l.fragments[0].cc}var u=l.fragments;if(T){O.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D=E.length)return;h(l,E[x].start)}function h(o,l){if(l){for(var x=o.fragments,E=o.skippedSegments;E0&&b0&&g===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),g=s),this.state=O.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=g,this.tick()}else this._forceStartLoad=!0,this.state=O.State.STOPPED},T.stopLoad=function(){this._forceStartLoad=!1,b.prototype.stopLoad.call(this)},T.doTick=function(){switch(this.state){case O.State.IDLE:this.doTickIdle();break;case O.State.WAITING_LEVEL:{var g,s=this.levels,u=this.level,D=s==null||((g=s[u])===null||g===void 0)?void 0:g.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=O.State.IDLE;break}break}case O.State.FRAG_LOADING_WAITING_RETRY:{var S,A=self.performance.now(),N=this.retryDate;(!N||A>=N||(S=this.media)!==null&&S!==void 0&&S.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=O.State.IDLE)}break;default:break}this.onTickEnd()},T.onTickEnd=function(){b.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},T.doTickIdle=function(){var g,s,u=this.hls,D=this.levelLastLoaded,S=this.levels,A=this.media,N=u.config,j=u.nextLoadLevel;if(D===null||!A&&(this.startFragRequested||!N.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!S||!S[j])return;var K=S[j];this.level=u.nextLoadLevel=j;var H=K.details;if(!H||this.state===O.State.WAITING_LEVEL||H.live&&this.levelLastLoaded!==j){this.state=O.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:A,R.PlaylistLevelType.MAIN);if(U===null)return;var B=U.len,q=this.getMaxBufferLength(K.maxBitrate);if(B>=q)return;if(this._streamEnded(U,H)){var ee={};this.altAudio&&(ee.type="video"),this.hls.trigger(W.Events.BUFFER_EOS,ee),this.state=O.State.ENDED;return}var he=U.end,be=this.getNextFragment(he,H);if(this.couldBacktrack&&!this.fragPrevious&&be&&be.sn!=="initSegment"){var Ye=be.sn-H.startSN;Ye>1&&(be=H.fragments[Ye-1],this.fragmentTracker.removeFragment(be))}if(be&&this.fragmentTracker.getState(be)===L.FragmentState.OK&&this.nextLoadPosition>he){var Pe=this.audioOnly&&!this.altAudio?d.ElementaryStreamTypes.AUDIO:d.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(A,Pe,R.PlaylistLevelType.MAIN),be=this.getNextFragment(this.nextLoadPosition,H)}if(!be)return;be.initSegment&&!be.initSegment.data&&!this.bitrateTest&&(be=be.initSegment),((g=be.decryptdata)===null||g===void 0?void 0:g.keyFormat)==="identity"&&!((s=be.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(be,H):this.loadFragment(be,H,he)},T.loadFragment=function(g,s,u){var D,S=this.fragmentTracker.getState(g);if(this.fragCurrent=g,S===L.FragmentState.BACKTRACKED){var A=this.fragmentTracker.getBacktrackData(g);if(A){this._handleFragmentLoadProgress(A),this._handleFragmentLoadComplete(A);return}else S=L.FragmentState.NOT_LOADED}S===L.FragmentState.NOT_LOADED||S===L.FragmentState.PARTIAL?g.sn==="initSegment"?this._loadInitSegment(g):this.bitrateTest?(g.bitrateTest=!0,this.log("Fragment "+g.sn+" of level "+g.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(g)):(this.startFragRequested=!0,b.prototype.loadFragment.call(this,g,s,u)):S===L.FragmentState.APPENDING?this.reduceMaxBufferLength(g.duration)&&this.fragmentTracker.removeFragment(g):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},T.getAppendedFrag=function(g){var s=this.fragmentTracker.getAppendedFrag(g,R.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},T.getBufferedFrag=function(g){return this.fragmentTracker.getBufferedFrag(g,R.PlaylistLevelType.MAIN)},T.followingBufferedFrag=function(g){return g?this.getBufferedFrag(g.end+.5):null},T.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},T.nextLevelSwitch=function(){var g=this.levels,s=this.media;if(s!=null&&s.readyState){var u,D=this.getAppendedFrag(s.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!s.paused&&g){var S=this.hls.nextLoadLevel,A=g[S],N=this.fragLastKbps;N&&this.fragCurrent?u=this.fragCurrent.duration*A.maxBitrate/(1e3*N)+1:u=0}else u=0;var j=this.getBufferedFrag(s.currentTime+u);if(j){var K=this.followingBufferedFrag(j);if(K){this.abortCurrentFrag();var H=K.maxStartPTS?K.maxStartPTS:K.start,U=K.duration,B=Math.max(j.end,H+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(B,Number.POSITIVE_INFINITY)}}}},T.abortCurrentFrag=function(){var g=this.fragCurrent;this.fragCurrent=null,g!=null&&g.loader&&g.loader.abort(),this.state===O.State.KEY_LOADING&&(this.state=O.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},T.flushMainBuffer=function(g,s){b.prototype.flushMainBuffer.call(this,g,s,this.altAudio?"video":null)},T.onMediaAttached=function(g,s){b.prototype.onMediaAttached.call(this,g,s);var u=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),u.addEventListener("playing",this.onvplaying),u.addEventListener("seeked",this.onvseeked),this.gapController=new v.default(this.config,u,this.fragmentTracker,this.hls)},T.onMediaDetaching=function(){var g=this.media;g&&(g.removeEventListener("playing",this.onvplaying),g.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),b.prototype.onMediaDetaching.call(this)},T.onMediaPlaying=function(){this.tick()},T.onMediaSeeked=function(){var g=this.media,s=g?g.currentTime:null;Object(z.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},T.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(W.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},T.onManifestParsed=function(g,s){var u=!1,D=!1,S;s.levels.forEach(function(A){S=A.audioCodec,S&&(S.indexOf("mp4a.40.2")!==-1&&(u=!0),S.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=u&&D&&!Object(w.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=s.levels,this.startFragRequested=!1},T.onLevelLoading=function(g,s){var u=this.levels;if(!u||this.state!==O.State.IDLE)return;var D=u[s.level];(!D.details||D.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(D.details))&&(this.state=O.State.WAITING_LEVEL)},T.onLevelLoaded=function(g,s){var u,D=this.levels,S=s.level,A=s.details,N=A.totalduration;if(!D){this.warn("Levels were reset while loading level "+S);return}this.log("Level "+S+" loaded ["+A.startSN+","+A.endSN+"], cc ["+A.startCC+", "+A.endCC+"] duration:"+N);var j=this.fragCurrent;j&&(this.state===O.State.FRAG_LOADING||this.state===O.State.FRAG_LOADING_WAITING_RETRY)&&(j.level!==s.level&&j.loader&&(this.state=O.State.IDLE,j.loader.abort()));var K=D[S],H=0;if(A.live||(u=K.details)!==null&&u!==void 0&&u.live){if(A.fragments[0]||(A.deltaUpdateFailed=!0),A.deltaUpdateFailed)return;H=this.alignPlaylists(A,K.details)}if(K.details=A,this.levelLastLoaded=S,this.hls.trigger(W.Events.LEVEL_UPDATED,{details:A,level:S}),this.state===O.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(A))return;this.state=O.State.IDLE}this.startFragRequested?A.live&&this.synchronizeToLiveEdge(A):this.setStartPosition(A,H),this.tick()},T._handleFragmentLoadProgress=function(g){var s,u=g.frag,D=g.part,S=g.payload,A=this.levels;if(!A){this.warn("Levels were reset while fragment load was in progress. Fragment "+u.sn+" of level "+u.level+" will not be buffered");return}var N=A[u.level],j=N.details;if(!j){this.warn("Dropping fragment "+u.sn+" of level "+u.level+" after level details were reset");return}var K=N.videoCodec,H=j.PTSKnown||!j.live,U=(s=u.initSegment)===null||s===void 0?void 0:s.data,B=this._getAudioCodec(N),q=this.transmuxer=this.transmuxer||new p.default(this.hls,R.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ee=D?D.index:-1,he=ee!==-1,be=new _.ChunkMetadata(u.level,u.sn,u.stats.chunkCount,S.byteLength,ee,he),Ye=this.initPTS[u.cc];q.push(S,U,B,K,u,D,j.totalduration,H,be,Ye)},T.onAudioTrackSwitching=function(g,s){var u=this.altAudio,D=!!s.url,S=s.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var A=this.fragCurrent;A!=null&&A.loader&&(this.log("Switching to main audio track, cancel main fragment load"),A.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var N=this.hls;u&&N.trigger(W.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),N.trigger(W.Events.AUDIO_TRACK_SWITCHED,{id:S})}},T.onAudioTrackSwitched=function(g,s){var u=s.id,D=!!this.hls.audioTracks[u].url;if(D){var S=this.videoBuffer;S&&this.mediaBuffer!==S&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=S)}this.altAudio=D,this.tick()},T.onBufferCreated=function(g,s){var u=s.tracks,D,S,A=!1;for(var N in u){var j=u[N];if(j.id==="main"){if(S=N,D=j,N==="video"){var K=u[N];K&&(this.videoBuffer=K.buffer)}}else A=!0}A&&D?(this.log("Alternate track found, use "+S+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},T.onFragBuffered=function(g,s){var u=s.frag,D=s.part;if(u&&u.type!==R.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(u)){this.warn("Fragment "+u.sn+(D?" p: "+D.index:"")+" of level "+u.level+" finished buffering, but was aborted. state: "+this.state),this.state===O.State.PARSED&&(this.state=O.State.IDLE);return}var S=D?D.stats:u.stats;this.fragLastKbps=Math.round(8*S.total/(S.buffering.end-S.loading.first)),u.sn!=="initSegment"&&(this.fragPrevious=u),this.fragBufferedComplete(u,D)},T.onError=function(g,s){switch(s.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.MAIN,s);break;case h.ErrorDetails.LEVEL_LOAD_ERROR:case h.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==O.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=O.State.ERROR):!s.levelRetry&&this.state===O.State.WAITING_LEVEL&&(this.state=O.State.IDLE));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===O.State.PARSING||this.state===O.State.PARSED)){var u=!0,D=this.getFwdBufferInfo(this.media,R.PlaylistLevelType.MAIN);D&&D.len>.5&&(u=!this.reduceMaxBufferLength(D.len)),u&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},T.checkBuffer=function(){var g=this.media,s=this.gapController;if(!g||!s||!g.readyState)return;var u=y.BufferHelper.getBuffered(g);!this.loadedmetadata&&u.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=g.currentTime},T.onFragLoadEmergencyAborted=function(){this.state=O.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},T.onBufferFlushed=function(g,s){var u=s.type;if(u!==d.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(u===d.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,u,R.PlaylistLevelType.MAIN)}},T.onLevelsUpdated=function(g,s){this.levels=s.levels},T.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},T.seekToStartPos=function(){var g=this.media,s=g.currentTime,u=this.startPosition;if(u>=0&&s0&&(A1&&g.seeking===!1){var u=g.currentTime;if(y.BufferHelper.isBuffered(g,u)?s=this.getAppendedFrag(u):y.BufferHelper.isBuffered(g,u+.1)&&(s=this.getAppendedFrag(u+.1)),s){var D=this.fragPlaying,S=s.level;(!D||s.sn!==D.sn||D.level!==S||s.urlId!==D.urlId)&&(this.hls.trigger(W.Events.FRAG_CHANGED,{frag:s}),(!D||D.level!==S)&&this.hls.trigger(W.Events.LEVEL_SWITCHED,{level:S}),this.fragPlaying=s)}}},r(P,[{key:"nextLevel",get:function(){var g=this.nextBufferedFrag;return g?g.level:-1}},{key:"currentLevel",get:function(){var g=this.media;if(g){var s=this.getAppendedFrag(g.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var g=this.media;if(g){var s=this.getAppendedFrag(g.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(O.default)},"./src/controller/subtitle-stream-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"SubtitleStreamController",function(){return o});var z=I("./src/events.ts"),O=I("./src/utils/logger.ts"),w=I("./src/utils/buffer-helper.ts"),W=I("./src/controller/fragment-finders.ts"),y=I("./src/utils/discontinuities.ts"),L=I("./src/controller/level-helper.ts"),R=I("./src/controller/fragment-tracker.ts"),d=I("./src/controller/base-stream-controller.ts"),p=I("./src/types/loader.ts"),_=I("./src/types/level.ts");function v(l,x){for(var E=0;E=s[S].start&&D<=s[S].end){u=s[S];break}var A=m.start+m.duration;u?u.end=A:(u={start:D,end:A},s.push(u)),this.fragmentTracker.fragBuffered(m)},E.onBufferFlushing=function(P,T){var m=T.startOffset,g=T.endOffset;if(m===0&&g!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,u=this.levels;if(!u.length||!u[s]||!u[s].details)return;var D=u[s].details,S=D.targetduration,A=g-S;if(A<=0)return;T.endOffsetSubtitles=Math.max(0,A),this.tracksBuffered.forEach(function(N){for(var j=0;j=D.length||s!==u||!S)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,g.live||(m=S.details)!==null&&m!==void 0&&m.live){var A=this.mainDetails;if(g.deltaUpdateFailed||!A)return;var N=A.fragments[0];if(!S.details)g.hasProgramDateTime&&A.hasProgramDateTime?Object(y.alignMediaPlaylistByPDT)(g,A):N&&Object(L.addSliding)(g,N.start);else{var j=this.alignPlaylists(g,S.details);j===0&&N&&Object(L.addSliding)(g,N.start)}}if(S.details=g,this.levelLastLoaded=s,this.tick(),g.live&&!this.fragCurrent&&this.media&&this.state===d.State.IDLE){var K=Object(W.findFragmentByPTS)(null,g.fragments,this.media.currentTime,0);K||(this.warn("Subtitle playlist not aligned with playback"),S.details=void 0)}},E._handleFragmentLoadComplete=function(P){var T=P.frag,m=P.payload,g=T.decryptdata,s=this.hls;if(this.fragContextChanged(T))return;if(m&&m.byteLength>0&&g&&g.key&&g.iv&&g.method==="AES-128"){var u=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(m),g.key.buffer,g.iv.buffer).then(function(D){var S=performance.now();s.trigger(z.Events.FRAG_DECRYPTED,{frag:T,payload:D,stats:{tstart:u,tdecrypt:S}})})}},E.doTick=function(){if(!this.media){this.state=d.State.IDLE;return}if(this.state===d.State.IDLE){var P,T=this.currentTrackId,m=this.levels;if(!m.length||!m[T]||!m[T].details)return;var g=m[T].details,s=g.targetduration,u=this.config,D=this.media,S=w.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-s,u.maxBufferHole),A=S.end,N=S.len,j=this.getMaxBufferLength()+s;if(N>j)return;console.assert(g,"Subtitle track details are defined on idle subtitle stream controller tick");var K=g.fragments,H=K.length,U=g.edge,B,q=this.fragPrevious;if(A-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},c.pollTrackChange=function(r){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,r)},c.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var r=_(this.media.textTracks);r.forEach(function(o){Object(O.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},c.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},c.onManifestParsed=function(r,o){this.tracks=o.subtitleTracks},c.onSubtitleTrackLoaded=function(r,o){var l=o.id,x=o.details,E=this.trackId,b=this.tracksInGroup[E];if(!b){this.warn("Invalid subtitle track id "+l);return}var P=b.details;b.details=o.details,this.log("subtitle track "+l+" loaded ["+x.startSN+"-"+x.endSN+"]"),l===this.trackId&&(this.retryCount=0,this.playlistLoaded(l,o,P))},c.onLevelLoading=function(r,o){this.switchLevel(o.level)},c.onLevelSwitching=function(r,o){this.switchLevel(o.level)},c.switchLevel=function(r){var o=this.hls.levels[r];if(!(o!=null&&o.textGroupIds))return;var l=o.textGroupIds[o.urlId];if(this.groupId!==l){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(T){return!l||T.groupId===l});this.tracksInGroup=E;var b=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=l;var P={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+l+'" group-id'),this.hls.trigger(z.Events.SUBTITLE_TRACKS_UPDATED,P),b!==-1&&this.setSubtitleTrack(b,x)}},c.findTrackId=function(r){for(var o=this.tracksInGroup,l=0;l=x.length)return;this.clearTimer();var E=x[r];if(this.log("Switching to subtitle track "+r),this.trackId=r,E){var b=E.id,P=E.groupId,T=P===void 0?"":P,m=E.name,g=E.type,s=E.url;this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:b,groupId:T,name:m,type:g,url:s});var u=this.switchParams(E.url,o==null?void 0:o.details);this.loadPlaylist(u)}else this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:r})},c.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var r=-1,o=_(this.media.textTracks),l=0;l=0&&(g[0]=Math.min(g[0],x),g[1]=Math.max(g[1],E),T=!0,s/(E-x)>.5))return}if(T||P.push([x,E]),this.config.renderTextTracksNatively){var u=this.captionsTracks[l];this.Cues.newCue(u,x,E,b)}else{var D=this.Cues.newCue(null,x,E,b);this.hls.trigger(O.Events.CUES_PARSED,{type:"captions",cues:D,track:l})}},r.onInitPtsFound=function(l,x){var E=this,b=x.frag,P=x.id,T=x.initPTS,m=x.timescale,g=this.unparsedVttFrags;P==="main"&&(this.initPTS[b.cc]=T,this.timescale[b.cc]=m),g.length&&(this.unparsedVttFrags=[],g.forEach(function(s){E.onFragLoaded(O.Events.FRAG_LOADED,s)}))},r.getExistingTrack=function(l){var x=this.media;if(x)for(var E=0;E>>8^m&255^99,R[b]=m,d[m]=b;var g=E[b],s=E[g],u=E[s],D=E[m]*257^m*16843008;_[b]=D<<24|D>>>8,v[b]=D<<16|D>>>16,h[b]=D<<8|D>>>24,c[b]=D,D=u*16843009^s*65537^g*257^b*16843008,r[m]=D<<24|D>>>8,o[m]=D<<16|D>>>16,l[m]=D<<8|D>>>24,x[m]=D,b?(b=g^E[E[E[u^g]]],P^=E[E[P]]):b=P=1}},y.expandKey=function(R){for(var d=this.uint8ArrayToUint32Array_(R),p=!0,_=0;_>>6)+1;var D=(l[x+2]&60)>>>2;if(D>u.length-1){o.trigger(w.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return T=(l[x+2]&1)<<2,T|=(l[x+3]&192)>>>6,z.logger.log("manifest codec:"+E+", ADTS type:"+b+", samplingIndex:"+D),/firefox/i.test(g)?D>=6?(b=5,m=new Array(4),P=D-3):(b=2,m=new Array(2),P=D):g.indexOf("android")!==-1?(b=2,m=new Array(2),P=D):(b=5,m=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&D>=6?P=D-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(D>=6&&T===1||/vivaldi/i.test(g))||!E&&T===1)&&(b=2,m=new Array(2)),P=D)),m[0]=b<<3,m[0]|=(D&14)>>1,m[1]|=(D&1)<<7,m[1]|=T<<3,b===5&&(m[1]|=(P&14)>>1,m[2]=(P&1)<<7,m[2]|=2<<2,m[3]=0),{config:m,samplerate:u[D],channelCount:T,codec:"mp4a.40."+b,manifestCodec:s}}function y(o,l){return o[l]===255&&(o[l+1]&246)===240}function L(o,l){return o[l+1]&1?7:9}function R(o,l){return(o[l+3]&3)<<11|o[l+4]<<3|(o[l+5]&224)>>>5}function d(o,l){return l+5=o.length)return!1;var E=R(o,l);if(E<=x)return!1;var b=l+E;return b===o.length||p(o,b)}return!1}function h(o,l,x,E,b){if(!o.samplerate){var P=W(l,x,E,b);if(!P)return;o.config=P.config,o.samplerate=P.samplerate,o.channelCount=P.channelCount,o.codec=P.codec,o.manifestCodec=P.manifestCodec,z.logger.log("parsed codec:"+o.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function c(o){return 1024*9e4/o}function n(o,l,x,E,b){var P=L(o,l),T=R(o,l);if(T-=P,T>0){var m=x+E*b;return{headerLength:P,frameLength:T,stamp:m}}}function r(o,l,x,E,b){var P=c(o.samplerate),T=n(l,x,E,b,P);if(T){var m=T.frameLength,g=T.headerLength,s=T.stamp,u=g+m,D=Math.max(0,x+u-l.length),S;D?(S=new Uint8Array(u-g),S.set(l.subarray(x+g,l.length),0)):S=l.subarray(x+g,x+u);var A={unit:S,pts:s};return D||o.samples.push(A),{sample:A,length:u,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"initPTSFn",function(){return R});var z=I("./src/polyfills/number.ts"),O=I("./src/demux/id3.ts"),w=I("./src/demux/dummy-demuxed-track.ts"),W=I("./src/utils/mp4-tools.ts"),y=I("./src/utils/typed-array.ts"),L=function(){function d(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var p=d.prototype;return p.resetInitSegment=function(v,h,c){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},p.resetTimeStamp=function(){},p.resetContiguity=function(){},p.canParse=function(v,h){return!1},p.appendFrame=function(v,h,c){},p.demux=function(v,h){this.cachedData&&(v=Object(W.appendUint8Array)(this.cachedData,v),this.cachedData=null);var c=O.getID3Data(v,0),n=c?c.length:0,r,o,l=this._audioTrack,x=this._id3Track,E=c?O.getTimeStamp(c):void 0,b=v.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=R(E,h)),c&&c.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:c}),o=this.initPTS;nL?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,R=L>>3,L-=R>>3,this.bytesAvailable-=R,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)},W.readBits=function(L){var R=Math.min(this.bitsAvailable,L),d=this.word>>>32-R;return L>32&&z.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=R,this.bitsAvailable>0?this.word<<=R:this.bytesAvailable>0&&this.loadWord(),R=L-R,R>0&&this.bitsAvailable?d<>>L)!==0)return this.word<<=L,this.bitsAvailable-=L,L;return this.loadWord(),L+this.skipLZ()},W.skipUEG=function(){this.skipBits(1+this.skipLZ())},W.skipEG=function(){this.skipBits(1+this.skipLZ())},W.readUEG=function(){var L=this.skipLZ();return this.readBits(L+1)-1},W.readEG=function(){var L=this.readUEG();return 1&L?1+L>>>1:-1*(L>>>1)},W.readBoolean=function(){return this.readBits(1)===1},W.readUByte=function(){return this.readBits(8)},W.readUShort=function(){return this.readBits(16)},W.readUInt=function(){return this.readBits(32)},W.skipScalingList=function(L){for(var R=8,d=8,p,_=0;_0?b.subarray(T,T+m):void 0},W=function(b,P){var T=0;return T=(b[P]&127)<<21,T|=(b[P+1]&127)<<14,T|=(b[P+2]&127)<<7,T|=b[P+3]&127,T},y=function(b,P){return z(b,P)&&W(b,P+6)+10<=b.length-P},L=function(b){for(var P=p(b),T=0;T>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:A+=String.fromCharCode(u);break;case 12:case 13:D=b[N++],A+=String.fromCharCode((u&31)<<6|D&63);break;case 14:D=b[N++],S=b[N++],A+=String.fromCharCode((u&15)<<12|(D&63)<<6|(S&63)<<0);break;default:}}return A},o={decodeTextFrame:h},l;function x(){return!l&&typeof self.TextDecoder!="undefined"&&(l=new self.TextDecoder("utf-8")),l}},"./src/demux/mp3demuxer.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/demux/base-audio-demuxer.ts"),O=I("./src/demux/id3.ts"),w=I("./src/utils/logger.ts"),W=I("./src/demux/mpegaudio.ts");function y(d,p){d.prototype=Object.create(p.prototype),d.prototype.constructor=d,L(d,p)}function L(d,p){return L=Object.setPrototypeOf||function(v,h){return v.__proto__=h,v},L(d,p)}var R=function(d){y(p,d);function p(){return d.apply(this,arguments)||this}var _=p.prototype;return _.resetInitSegment=function(h,c,n){d.prototype.resetInitSegment.call(this,h,c,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:h,duration:n,inputTimeScale:9e4,dropped:0}},p.probe=function(h){if(!h)return!1;for(var c=O.getID3Data(h,0)||[],n=c.length,r=h.length;n0},y.demux=function(R){var d=R,p=Object(O.dummyTrack)();if(this.config.progressive){this.remainderData&&(d=Object(z.appendUint8Array)(this.remainderData,R));var _=Object(z.segmentValidRange)(d);this.remainderData=_.remainder,p.samples=_.valid||new Uint8Array}else p.samples=d;return{audioTrack:Object(O.dummyTrack)(),avcTrack:p,id3Track:Object(O.dummyTrack)(),textTrack:Object(O.dummyTrack)()}},y.flush=function(){var R=Object(O.dummyTrack)();return R.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(O.dummyTrack)(),avcTrack:R,id3Track:Object(O.dummyTrack)(),textTrack:Object(O.dummyTrack)()}},y.demuxSampleAes=function(R,d,p){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},y.destroy=function(){},W}();w.minProbeByteLength=1024,G.default=w},"./src/demux/mpegaudio.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"appendFrame",function(){return L}),I.d(G,"parseHeader",function(){return R}),I.d(G,"isHeaderPattern",function(){return d}),I.d(G,"isHeader",function(){return p}),I.d(G,"canParse",function(){return _}),I.d(G,"probe",function(){return v});var z=null,O=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],w=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],W=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],y=[0,1,1,4];function L(h,c,n,r,o){if(n+24>c.length)return;var l=R(c,n);if(l&&n+l.frameLength<=c.length){var x=l.samplesPerFrame*9e4/l.sampleRate,E=r+o*x,b={unit:c.subarray(n,n+l.frameLength),pts:E,dts:E};return h.config=[],h.channelCount=l.channelCount,h.samplerate=l.sampleRate,h.samples.push(b),{sample:b,length:l.frameLength,missing:0}}}function R(h,c){var n=h[c+1]>>3&3,r=h[c+1]>>1&3,o=h[c+2]>>4&15,l=h[c+2]>>2&3;if(n!==1&&o!==0&&o!==15&&l!==3){var x=h[c+2]>>1&1,E=h[c+3]>>6,b=n===3?3-r:r===3?3:4,P=O[b*14+o-1]*1e3,T=n===3?0:n===2?1:2,m=w[T*3+l],g=E===3?1:2,s=W[n][r],u=y[r],D=s*8*u,S=Math.floor(s*P/m+x)*u;if(z===null){var A=navigator.userAgent||"",N=A.match(/Chrome\/(\d+)/i);z=N?parseInt(N[1]):0}var j=!!z&&z<=87;return j&&r===2&&P>=224e3&&E===0&&(h[c+3]=h[c+3]|128),{sampleRate:m,channelCount:g,frameLength:S,samplesPerFrame:D}}}function d(h,c){return h[c]===255&&(h[c+1]&224)===224&&(h[c+1]&6)!==0}function p(h,c){return c+1=R.length){p();return}if(R[d].unit.length<32)continue;var _=this.decrypter.isSync();if(this.decryptAacSample(R,d,p,_),!_)return}},y.getAvcEncryptedData=function(R){for(var d=Math.floor((R.length-48)/160)*16+16,p=new Int8Array(d),_=0,v=32;v<=R.length-16;v+=160,_+=16)p.set(R.subarray(v,v+16),_);return p},y.getAvcDecryptedUnit=function(R,d){for(var p=new Uint8Array(d),_=0,v=32;v<=R.length-16;v+=160,_+=16)R.set(p.subarray(_,_+16),v);return R},y.decryptAvcSample=function(R,d,p,_,v,h){var c=Object(O.discardEPB)(v.data),n=this.getAvcEncryptedData(c),r=this;this.decryptBuffer(n.buffer,function(o){v.data=r.getAvcDecryptedUnit(c,o),h||r.decryptAvcSamples(R,d,p+1,_)})},y.decryptAvcSamples=function(R,d,p,_){if(R instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;d++,p=0){if(d>=R.length){_();return}for(var v=R[d].units;!(p>=v.length);p++){var h=v[p];if(h.data.length<=48||h.type!==1&&h.type!==5)continue;var c=this.decrypter.isSync();if(this.decryptAvcSample(R,d,p,_,h,c),!c)return}}},W}();G.default=w},"./src/demux/transmuxer-interface.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v});var z=I("./node_modules/webworkify-webpack/index.js"),O=I.n(z),w=I("./src/events.ts"),W=I("./src/demux/transmuxer.ts"),y=I("./src/utils/logger.ts"),L=I("./src/errors.ts"),R=I("./src/utils/mediasource-helper.ts"),d=I("./node_modules/eventemitter3/index.js"),p=I.n(d),_=Object(R.getMediaSource)()||{isTypeSupported:function(){return!1}},v=function(){function h(n,r,o,l){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=n,this.id=r,this.onTransmuxComplete=o,this.onFlush=l;var E=n.config,b=function(s,u){u=u||{},u.frag=x.frag,u.id=x.id,n.trigger(s,u)};this.observer=new d.EventEmitter,this.observer.on(w.Events.FRAG_DECRYPTED,b),this.observer.on(w.Events.ERROR,b);var P={mp4:_.isTypeSupported("video/mp4"),mpeg:_.isTypeSupported("audio/mpeg"),mp3:_.isTypeSupported('audio/mp4; codecs="mp3"')},T=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){y.logger.log("demuxing in webworker");var m;try{m=this.worker=z("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),m.addEventListener("message",this.onwmsg),m.onerror=function(g){n.trigger(w.Events.ERROR,{type:L.ErrorTypes.OTHER_ERROR,details:L.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(g.message+" ("+g.filename+":"+g.lineno+")")})},m.postMessage({cmd:"init",typeSupported:P,vendor:T,id:r,config:JSON.stringify(E)})}catch(g){y.logger.warn("Error in worker:",g),y.logger.error("Error while initializing DemuxerWorker, fallback to inline"),m&&self.URL.revokeObjectURL(m.objectURL),this.transmuxer=new W.default(this.observer,P,E,T,r),this.worker=null}}else this.transmuxer=new W.default(this.observer,P,E,T,r)}var c=h.prototype;return c.destroy=function(){var r=this.worker;if(r)r.removeEventListener("message",this.onwmsg),r.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var l=this.observer;l&&l.removeAllListeners(),this.observer=null},c.push=function(r,o,l,x,E,b,P,T,m,g){var s=this;m.transmuxing.start=self.performance.now();var u=this.transmuxer,D=this.worker,S=b?b.start:E.start,A=E.decryptdata,N=this.frag,j=!(N&&E.cc===N.cc),K=!(N&&m.level===N.level),H=N?m.sn-N.sn:-1,U=this.part?m.part-this.part.index:1,B=!K&&(H===1||H===0&&U===1),q=self.performance.now();(K||H||E.stats.parsing.start===0)&&(E.stats.parsing.start=q),b&&(U||!B)&&(b.stats.parsing.start=q);var ee=new W.TransmuxState(j,B,T,K,S);if(!B||j){y.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+m.sn+" p: "+m.part+" level: "+m.level+" id: "+m.id+` + Time to underbuffer: `+j.toFixed(3)+" s"),o.nextLoadLevel=H,this.bwEstimator.sample(T,b.loaded),this.clearTimer(),n.loader&&(this.fragCurrent=this.partCurrent=null,n.loader.abort()),o.trigger(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:b})},h.onFragLoaded=function(n,r){var o=r.frag,l=r.part;if(o.type===L.PlaylistLevelType.MAIN&&Object(z.isFiniteNumber)(o.sn)){var x=l?l.stats:o.stats,E=l?l.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var b=this.hls.levels[o.level],P=(b.loaded?b.loaded.bytes:0)+x.loaded,T=(b.loaded?b.loaded.duration:0)+E;b.loaded={bytes:P,duration:T},b.realBitrate=Math.round(8*P/T)}if(o.bitrateTest){var m={stats:x,frag:o,part:l,id:o.type};this.onFragBuffered(w.Events.FRAG_BUFFERED,m),o.bitrateTest=!1}}},h.onFragBuffered=function(n,r){var o=r.frag,l=r.part,x=l?l.stats:o.stats;if(x.aborted)return;if(o.type!==L.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var E=x.parsing.end-x.loading.start;this.bwEstimator.sample(E,x.loaded),x.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},h.onError=function(n,r){switch(r.details){case y.ErrorDetails.FRAG_LOAD_ERROR:case y.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},h.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},h.getNextABRAutoLevel=function(){var n=this.fragCurrent,r=this.partCurrent,o=this.hls,l=o.maxAutoLevel,x=o.config,E=o.minAutoLevel,b=o.media,P=r?r.duration:n?n.duration:0,T=b?b.currentTime:0,m=b&&b.playbackRate!==0?Math.abs(b.playbackRate):1,g=this.bwEstimator?this.bwEstimator.getEstimate():x.abrEwmaDefaultEstimate,s=(W.BufferHelper.bufferInfo(b,T,x.maxBufferHole).end-T)/m,u=this.findBestLevel(g,E,l,s,x.abrBandWidthFactor,x.abrBandWidthUpFactor);if(u>=0)return u;R.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=P?Math.min(P,x.maxStarvationDelay):x.maxStarvationDelay,S=x.abrBandWidthFactor,A=x.abrBandWidthUpFactor;if(!s){var N=this.bitrateTestDelay;if(N){var j=P?Math.min(P,x.maxLoadingDelay):x.maxLoadingDelay;D=j-N,R.logger.trace("bitrate test took "+Math.round(1e3*N)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),S=A=1}}return u=this.findBestLevel(g,E,l,s+D,S,A),Math.max(u,0)},h.findBestLevel=function(n,r,o,l,x,E){for(var b,P=this.fragCurrent,T=this.partCurrent,m=this.lastLoadedFragLevel,g=this.hls.levels,s=g[m],u=!!(s!=null&&(b=s.details)!==null&&b!==void 0&&b.live),D=s==null?void 0:s.codecSet,S=T?T.duration:P?P.duration:0,A=o;A>=r;A--){var N=g[A];if(!N||D&&N.codecSet!==D)continue;var j=N.details,K=(T?j==null?void 0:j.partTarget:j==null?void 0:j.averagetargetduration)||S,H=void 0;A<=m?H=x*n:H=E*n;var U=g[A].maxBitrate,B=U*K/H;if(R.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+A+"/"+Math.round(H)+"/"+U+"/"+K+"/"+l+"/"+B),H>U&&(!B||u&&!this.bitrateTestDelay||B0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+u.toFixed(3)),this.state=O.State.IDLE):(this.loadedmetadata=!1,this.state=O.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},m.doTick=function(){switch(this.state){case O.State.IDLE:this.doTickIdle();break;case O.State.WAITING_TRACK:{var s,u=this.levels,D=this.trackId,S=u==null||((s=u[D])===null||s===void 0)?void 0:s.details;if(S){if(this.waitForCdnTuneIn(S))break;this.state=O.State.WAITING_INIT_PTS}break}case O.State.FRAG_LOADING_WAITING_RETRY:{var A,N=performance.now(),j=this.retryDate;(!j||N>=j||(A=this.media)!==null&&A!==void 0&&A.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=O.State.IDLE);break}case O.State.WAITING_INIT_PTS:{var K=this.waitingData;if(K){var H=K.frag,U=K.part,B=K.cache,q=K.complete;if(this.initPTS[H.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=O.State.FRAG_LOADING;var ee=B.flush(),he={frag:H,part:U,payload:ee,networkDetails:null};this._handleFragmentLoadProgress(he),q&&P.prototype._handleFragmentLoadComplete.call(this,he)}else if(this.videoTrackCC!==this.waitingVideoCC)r.logger.log("Waiting fragment cc ("+H.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ye=this.getLoadPosition(),Ye=W.BufferHelper.bufferInfo(this.mediaBuffer,ye,this.config.maxBufferHole),Pe=Object(h.fragmentWithinToleranceTest)(Ye.end,this.config.maxFragLookUpTolerance,H);Pe<0&&(r.logger.log("Waiting fragment cc ("+H.cc+") @ "+H.start+" cancelled because another fragment at "+Ye.end+" is needed"),this.clearWaitingFragment())}}else this.state=O.State.IDLE}}this.onTickEnd()},m.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=O.State.IDLE)},m.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var u=this.mediaBuffer?this.mediaBuffer:s,D=u.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},m.doTickIdle=function(){var s,u,D=this.hls,S=this.levels,A=this.media,N=this.trackId,j=D.config;if(!S||!S[N])return;if(!A&&(this.startFragRequested||!j.startFragPrefetch))return;var K=S[N],H=K.details;if(!H||H.live&&this.levelLastLoaded!==N||this.waitForCdnTuneIn(H)){this.state=O.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,d.ElementaryStreamTypes.AUDIO,R.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,R.PlaylistLevelType.AUDIO);if(U===null)return;var B=U.len,q=this.getMaxBufferLength(),ee=this.audioSwitch;if(B>=q&&!ee)return;if(!ee&&this._streamEnded(U,H)){D.trigger(w.Events.BUFFER_EOS,{type:"audio"}),this.state=O.State.ENDED;return}var he=H.fragments,ye=he[0].start,Ye=U.end;if(ee){var Pe=this.getLoadPosition();Ye=Pe,H.PTSKnown&&Peye||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),A.currentTime=ye+.05))}var je=this.getNextFragment(Ye,H);if(!je){this.bufferFlushed=!0;return}((s=je.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((u=je.decryptdata)!==null&&u!==void 0&&u.key)?this.loadKey(je,H):this.loadFragment(je,H,Ye)},m.getMaxBufferLength=function(){var s=P.prototype.getMaxBufferLength.call(this),u=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,R.PlaylistLevelType.MAIN);return u===null?s:Math.max(s,u.len)},m.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},m.onAudioTracksUpdated=function(s,u){var D=u.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(S){return new L.Level(S)})},m.onAudioTrackSwitching=function(s,u){var D=!!u.url;this.trackId=u.id;var S=this.fragCurrent;S!=null&&S.loader&&S.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(E):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=O.State.IDLE):this.state=O.State.STOPPED,this.tick()},m.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},m.onLevelLoaded=function(s,u){this.mainDetails=u.details},m.onAudioTrackLoaded=function(s,u){var D,S=this.levels,A=u.details,N=u.id;if(!S){this.warn("Audio tracks were reset while loading level "+N);return}this.log("Track "+N+" loaded ["+A.startSN+","+A.endSN+"],duration:"+A.totalduration);var j=S[N],K=0;if(A.live||(D=j.details)!==null&&D!==void 0&&D.live){var H=this.mainDetails;if(A.fragments[0]||(A.deltaUpdateFailed=!0),A.deltaUpdateFailed||!H)return;!j.details&&A.hasProgramDateTime&&H.hasProgramDateTime?(Object(c.alignMediaPlaylistByPDT)(A,H),K=A.fragments[0].start):K=this.alignPlaylists(A,j.details)}j.details=A,this.levelLastLoaded=N,!this.startFragRequested&&(this.mainDetails||!A.live)&&this.setStartPosition(j.details,K),this.state===O.State.WAITING_TRACK&&!this.waitForCdnTuneIn(A)&&(this.state=O.State.IDLE),this.tick()},m._handleFragmentLoadProgress=function(s){var u,D=s.frag,S=s.part,A=s.payload,N=this.config,j=this.trackId,K=this.levels;if(!K){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var H=K[j];console.assert(H,"Audio track is defined on fragment load progress");var U=H.details;console.assert(U,"Audio track details are defined on fragment load progress");var B=N.defaultAudioCodec||H.audioCodec||"mp4a.40.2",q=this.transmuxer;q||(q=this.transmuxer=new _.default(this.hls,R.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ee=this.initPTS[D.cc],he=(u=D.initSegment)===null||u===void 0?void 0:u.data;if(ee!==void 0){var ye=!1,Ye=S?S.index:-1,Pe=Ye!==-1,je=new v.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,A.byteLength,Ye,Pe);q.push(A,he,B,"",D,S,U.totalduration,ye,je,ee)}else{r.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+j);var Ze=this.waitingData=this.waitingData||{frag:D,part:S,cache:new p.default,complete:!1},Qe=Ze.cache;Qe.push(new Uint8Array(A)),this.waitingVideoCC=this.videoTrackCC,this.state=O.State.WAITING_INIT_PTS}},m._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,s)},m.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},m.onBufferCreated=function(s,u){var D=u.tracks.audio;D&&(this.mediaBuffer=D.buffer),u.tracks.video&&(this.videoBuffer=u.tracks.video.buffer)},m.onFragBuffered=function(s,u){var D=u.frag,S=u.part;if(D.type!==R.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(S?" p: "+S.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,S)},m.onError=function(s,u){switch(u.details){case n.ErrorDetails.FRAG_LOAD_ERROR:case n.ErrorDetails.FRAG_LOAD_TIMEOUT:case n.ErrorDetails.KEY_LOAD_ERROR:case n.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.AUDIO,u);break;case n.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case n.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==O.State.ERROR&&this.state!==O.State.STOPPED&&(this.state=u.fatal?O.State.ERROR:O.State.IDLE,this.warn(u.details+" while loading frag, switching to "+this.state+" state"));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(u.parent==="audio"&&(this.state===O.State.PARSING||this.state===O.State.PARSED)){var D=!0,S=this.getFwdBufferInfo(this.mediaBuffer,R.PlaylistLevelType.AUDIO);S&&S.len>.5&&(D=!this.reduceMaxBufferLength(S.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},m.onBufferFlushed=function(s,u){var D=u.type;D===d.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},m._handleTransmuxComplete=function(s){var u,D="audio",S=this.hls,A=s.remuxResult,N=s.chunkMeta,j=this.getCurrentContext(N);if(!j){this.warn("The loading context changed while buffering fragment "+N.sn+" of level "+N.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(N.level);return}var K=j.frag,H=j.part,U=A.audio,B=A.text,q=A.id3,ee=A.initSegment;if(this.fragContextChanged(K))return;if(this.state=O.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),ee!=null&&ee.tracks&&(this._bufferInitSegment(ee.tracks,K,N),S.trigger(w.Events.FRAG_PARSING_INIT_SEGMENT,{frag:K,id:D,tracks:ee.tracks})),U){var he=U.startPTS,ye=U.endPTS,Ye=U.startDTS,Pe=U.endDTS;H&&(H.elementaryStreams[d.ElementaryStreamTypes.AUDIO]={startPTS:he,endPTS:ye,startDTS:Ye,endDTS:Pe}),K.setElementaryStreamInfo(d.ElementaryStreamTypes.AUDIO,he,ye,Ye,Pe),this.bufferFragmentData(U,K,H,N)}if(q!=null&&(u=q.samples)!==null&&u!==void 0&&u.length){var je=o({frag:K,id:D},q);S.trigger(w.Events.FRAG_PARSING_METADATA,je)}if(B){var Ze=o({frag:K,id:D},B);S.trigger(w.Events.FRAG_PARSING_USERDATA,Ze)}},m._bufferInitSegment=function(s,u,D){if(this.state!==O.State.PARSING)return;s.video&&delete s.video;var S=s.audio;if(!S)return;S.levelCodec=S.codec,S.id="audio",this.log("Init audio buffer, container:"+S.container+", codecs[parsed]=["+S.codec+"]"),this.hls.trigger(w.Events.BUFFER_CODECS,s);var A=S.initSegment;if(A!=null&&A.byteLength){var N={type:"audio",frag:u,part:null,chunkMeta:D,parent:u.type,data:A};this.hls.trigger(w.Events.BUFFER_APPENDING,N)}this.tick()},m.loadFragment=function(s,u,D){var S=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||S===y.FragmentState.NOT_LOADED||S===y.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):u.live&&!Object(z.isFiniteNumber)(this.initPTS[s.cc])?(this.log("Waiting for video PTS in continuity counter "+s.cc+" of live stream before loading audio fragment "+s.sn+" of level "+this.trackId),this.state=O.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,s,u,D)))},m.completeAudioSwitch=function(){var s=this.hls,u=this.media,D=this.trackId;u&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,s.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:D})},T}(O.default);G.default=b},"./src/controller/audio-track-controller.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/events.ts"),O=I("./src/errors.ts"),w=I("./src/controller/base-playlist-controller.ts"),W=I("./src/types/loader.ts");function y(_,v){for(var h=0;h=r.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=r[this.trackId];this.log("Now switching to audio-track index "+n);var l=r[n],x=l.id,E=l.groupId,b=E===void 0?"":E,P=l.name,T=l.type,m=l.url;if(this.trackId=n,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(z.Events.AUDIO_TRACK_SWITCHING,{id:x,groupId:b,name:P,type:T,url:m}),l.details&&!l.details.live)return;var g=this.switchParams(l.url,o==null?void 0:o.details);this.loadPlaylist(g)},h.selectInitialTrack=function(){var n=this.tracksInGroup;console.assert(n.length,"Initial audio track should be selected when tracks are known");var r=this.trackName,o=this.findTrackId(r)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},h.findTrackId=function(n){for(var r=this.tracksInGroup,o=0;ov.partTarget&&(l+=1)}if(Object(z.isFiniteNumber)(o))return new O.HlsUrlParameters(o,Object(z.isFiniteNumber)(l)?l:void 0,O.HlsSkip.No)}}},d.loadPlaylist=function(_){},d.shouldLoadTrack=function(_){return this.canLoad&&_&&!!_.url&&(!_.details||_.details.live)},d.playlistLoaded=function(_,v,h){var c=this,n=v.details,r=v.stats,o=r.loading.end?Math.max(0,self.performance.now()-r.loading.end):0;if(n.advancedDateTime=Date.now()-o,n.live||h!=null&&h.live){if(n.reloaded(h),h&&this.log("live playlist "+_+" "+(n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:"MISSED")),h&&n.fragments.length>0&&Object(w.mergeDetails)(h,n),!this.canLoad||!n.live)return;var l,x=void 0,E=void 0;if(n.canBlockReload&&n.endSN&&n.advanced){var b=this.hls.config.lowLatencyMode,P=n.lastPartSn,T=n.endSN,m=n.lastPartIndex,g=m!==-1,s=P===T,u=b?0:m;g?(x=s?T+1:P,E=s?u:m+1):x=T+1;var D=n.age,S=D+n.ageHeader,A=Math.min(S-n.partTarget,n.targetduration*1.5);if(A>0){if(h&&A>h.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+h.tuneInGoal+" to: "+A+" with playlist age: "+n.age),A=0;else{var N=Math.floor(A/n.targetduration);if(x+=N,E!==void 0){var j=Math.round(A%n.targetduration/n.partTarget);E+=j}this.log("CDN Tune-in age: "+n.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+A+" skip sn "+N+" to part "+E)}n.tuneInGoal=A}if(l=this.getDeliveryDirectives(n,v.deliveryDirectives,x,E),b||!s){this.loadPlaylist(l);return}}else l=this.getDeliveryDirectives(n,v.deliveryDirectives,x,E);var K=Object(w.computeReloadInterval)(n,r);x!==void 0&&n.canBlockReload&&(K-=n.partTarget||1),this.log("reload live playlist "+_+" in "+Math.round(K)+" ms"),this.timer=self.setTimeout(function(){return c.loadPlaylist(l)},K)}else this.clearTimer()},d.getDeliveryDirectives=function(_,v,h,c){var n=Object(O.getSkipValue)(_,h);return v!=null&&v.skip&&_.deltaUpdateFailed&&(h=v.msn,c=v.part,n=O.HlsSkip.No),new O.HlsUrlParameters(h,c,n)},d.retryLoadingOrFail=function(_){var v=this,h=this.hls.config,c=this.retryCount-1&&(n=_.context)!==null&&n!==void 0&&n.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+_.details+'"'),this.loadPlaylist();else{var r=Math.min(Math.pow(2,this.retryCount)*h.levelLoadingRetryDelay,h.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return v.loadPlaylist()},r),this.warn("retry playlist loading #"+this.retryCount+" in "+r+' ms after "'+_.details+'"')}}else this.warn('cannot recover from error "'+_.details+'"'),this.clearTimer(),_.fatal=!0;return c},R}()},"./src/controller/base-stream-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"State",function(){return T}),I.d(G,"default",function(){return m});var z=I("./src/polyfills/number.ts"),O=I("./src/task-loop.ts"),w=I("./src/controller/fragment-tracker.ts"),W=I("./src/utils/buffer-helper.ts"),y=I("./src/utils/logger.ts"),L=I("./src/events.ts"),R=I("./src/errors.ts"),d=I("./src/types/transmuxer.ts"),p=I("./src/utils/mp4-tools.ts"),_=I("./src/utils/discontinuities.ts"),v=I("./src/controller/fragment-finders.ts"),h=I("./src/controller/level-helper.ts"),c=I("./src/loader/fragment-loader.ts"),n=I("./src/crypt/decrypter.ts"),r=I("./src/utils/time-ranges.ts"),o=I("./src/types/loader.ts");function l(g,s){for(var u=0;uee;(H0&&H&&H.key&&H.iv&&H.method==="AES-128"){var U=self.performance.now();return A.decrypter.webCryptoDecrypt(new Uint8Array(K),H.key.buffer,H.iv.buffer).then(function(B){var q=self.performance.now();return j.trigger(L.Events.FRAG_DECRYPTED,{frag:S,payload:B,stats:{tstart:U,tdecrypt:q}}),N.payload=B,N})}return N}).then(function(N){var j=A.fragCurrent,K=A.hls,H=A.levels;if(!H)throw new Error("init load aborted, missing levels");var U=H[S.level].details;console.assert(U,"Level details are defined when init segment is loaded");var B=S.stats;A.state=T.IDLE,A.fragLoadError=0,S.data=new Uint8Array(N.payload),B.parsing.start=B.buffering.start=self.performance.now(),B.parsing.end=B.buffering.end=self.performance.now(),N.frag===j&&K.trigger(L.Events.FRAG_BUFFERED,{stats:B,frag:j,part:null,id:S.type}),A.tick()}).catch(function(N){A.warn(N),A.resetFragmentLoading(S)})},u.fragContextChanged=function(S){var A=this.fragCurrent;return!S||!A||S.level!==A.level||S.sn!==A.sn||S.urlId!==A.urlId},u.fragBufferedComplete=function(S,A){var N=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+S.type+" sn: "+S.sn+(A?" part: "+A.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+S.level+" "+r.default.toString(W.BufferHelper.getBuffered(N))),this.state=T.IDLE,this.tick()},u._handleFragmentLoadComplete=function(S){var A=this.transmuxer;if(!A)return;var N=S.frag,j=S.part,K=S.partsLoaded,H=!K||K.length===0||K.some(function(B){return!B}),U=new d.ChunkMetadata(N.level,N.sn,N.stats.chunkCount+1,0,j?j.index:-1,!H);A.flush(U)},u._handleFragmentLoadProgress=function(S){},u._doFragLoad=function(S,A,N,j){var K=this;if(N===void 0&&(N=null),!this.levels)throw new Error("frag load aborted, missing levels");if(N=Math.max(S.start,N||0),this.config.lowLatencyMode&&A){var H=A.partList;if(H&&j){N>S.end&&A.fragmentHint&&(S=A.fragmentHint);var U=this.getNextPart(H,S,N);if(U>-1){var B=H[U];return this.log("Loading part sn: "+S.sn+" p: "+B.index+" cc: "+S.cc+" of playlist ["+A.startSN+"-"+A.endSN+"] parts [0-"+U+"-"+(H.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+S.level+", target: "+parseFloat(N.toFixed(3))),this.nextLoadPosition=B.start+B.duration,this.state=T.FRAG_LOADING,this.hls.trigger(L.Events.FRAG_LOADING,{frag:S,part:H[U],targetBufferTime:N}),this.doFragPartsLoad(S,H,U,j).catch(function(q){return K.handleFragLoadError(q)})}else if(!S.url||this.loadedEndOfParts(H,N))return Promise.resolve(null)}}return this.log("Loading fragment "+S.sn+" cc: "+S.cc+" "+(A?"of ["+A.startSN+"-"+A.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+S.level+", target: "+parseFloat(N.toFixed(3))),Object(z.isFiniteNumber)(S.sn)&&!this.bitrateTest&&(this.nextLoadPosition=S.start+S.duration),this.state=T.FRAG_LOADING,this.hls.trigger(L.Events.FRAG_LOADING,{frag:S,targetBufferTime:N}),this.fragmentLoader.load(S,j).catch(function(q){return K.handleFragLoadError(q)})},u.doFragPartsLoad=function(S,A,N,j){var K=this;return new Promise(function(H,U){var B=[],q=function ee(he){var ye=A[he];K.fragmentLoader.loadPart(S,ye,j).then(function(Ye){B[ye.index]=Ye;var Pe=Ye.part;K.hls.trigger(L.Events.FRAG_LOADED,Ye);var je=A[he+1];if(je&&je.fragment===S)ee(he+1);else return H({frag:S,part:Pe,partsLoaded:B})}).catch(U)};q(N)})},u.handleFragLoadError=function(S){var A=S.data;return A&&A.details===R.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(A.frag,A.part):this.hls.trigger(L.Events.ERROR,A),null},u._handleTransmuxerFlush=function(S){var A=this.getCurrentContext(S);if(!A||this.state!==T.PARSING){this.fragCurrent||(this.state=T.IDLE);return}var N=A.frag,j=A.part,K=A.level,H=self.performance.now();N.stats.parsing.end=H,j&&(j.stats.parsing.end=H),this.updateLevelTiming(N,j,K,S.partial)},u.getCurrentContext=function(S){var A=this.levels,N=S.level,j=S.sn,K=S.part;if(!A||!A[N])return this.warn("Levels object was unset while buffering fragment "+j+" of level "+N+". The current chunk will not be buffered."),null;var H=A[N],U=K>-1?Object(h.getPartWith)(H,j,K):null,B=U?U.fragment:Object(h.getFragmentWithSN)(H,j,this.fragCurrent);return B?{frag:B,part:U,level:H}:null},u.bufferFragmentData=function(S,A,N,j){if(!S||this.state!==T.PARSING)return;var K=S.data1,H=S.data2,U=K;if(K&&H&&(U=Object(p.appendUint8Array)(K,H)),!U||!U.length)return;var B={type:S.type,frag:A,part:N,chunkMeta:j,parent:A.type,data:U};this.hls.trigger(L.Events.BUFFER_APPENDING,B),S.dropped&&S.independent&&!N&&this.flushBufferGap(A)},u.flushBufferGap=function(S){var A=this.media;if(!A)return;if(!W.BufferHelper.isBuffered(A,A.currentTime)){this.flushMainBuffer(0,S.start);return}var N=A.currentTime,j=W.BufferHelper.bufferInfo(A,N,0),K=S.duration,H=Math.min(this.config.maxFragLookUpTolerance*2,K*.25),U=Math.max(Math.min(S.start-H,j.end-H),N+H);S.start-U>H&&this.flushMainBuffer(U,S.start)},u.getFwdBufferInfo=function(S,A){var N=this.config,j=this.getLoadPosition();if(!Object(z.isFiniteNumber)(j))return null;var K=W.BufferHelper.bufferInfo(S,j,N.maxBufferHole);if(K.len===0&&K.nextStart!==void 0){var H=this.fragmentTracker.getBufferedFrag(j,A);if(H&&K.nextStart=N?(A.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+A.maxMaxBufferLength+"s"),!0):!1},u.getNextFragment=function(S,A){var N,j,K=A.fragments,H=K.length;if(!H)return null;var U=this.config,B=K[0].start,q;if(A.live){var ee=U.initialLiveManifestSize;if(H-1&&NN.start&&N.loaded},u.getInitialLiveFragment=function(S,A){var N=this.fragPrevious,j=null;if(N){if(S.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+N.programDateTime),j=Object(v.findFragmentByPDT)(A,N.endProgramDateTime,this.config.maxFragLookUpTolerance)),!j){var K=N.sn+1;if(K>=S.startSN&&K<=S.endSN){var H=A[K-S.startSN];N.cc===H.cc&&(j=H,this.log("Live playlist, switching playlist, load frag with next SN: "+j.sn))}j||(j=Object(v.findFragWithCC)(A,N.cc),j&&this.log("Live playlist, switching playlist, load frag with same CC: "+j.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(j=this.getFragmentAtPosition(U,this.bitrateTest?S.fragmentEnd:S.edge,S))}return j},u.getFragmentAtPosition=function(S,A,N){var j=this.config,K=this.fragPrevious,H=N.fragments,U=N.endSN,B=N.fragmentHint,q=j.maxFragLookUpTolerance,ee=!!(j.lowLatencyMode&&N.partList&&B);ee&&B&&!this.bitrateTest&&(H=H.concat(B),U=B.sn);var he;if(SA-q?0:q;he=Object(v.findFragmentByPTS)(K,H,S,ye)}else he=H[H.length-1];if(he){var Ye=he.sn-N.startSN,Pe=K&&he.level===K.level,je=H[Ye+1],Ze=this.fragmentTracker.getState(he);if(Ze===w.FragmentState.BACKTRACKED){he=null;for(var Qe=Ye;H[Qe]&&this.fragmentTracker.getState(H[Qe])===w.FragmentState.BACKTRACKED;)K?he=H[Qe--]:he=H[--Qe];he||(he=je)}else K&&he.sn===K.sn&&!ee&&(Pe&&(he.sn=H-A.maxFragLookUpTolerance&&K<=U;if(j!==null&&N.duration>j&&(K"+S.startSN+" prev-sn: "+(K?K.sn:"na")+" fragments: "+U),he}return B},u.waitForCdnTuneIn=function(S){var A=3;return S.live&&S.canBlockReload&&S.tuneInGoal>Math.max(S.partHoldBack,S.partTarget*A)},u.setStartPosition=function(S,A){var N=this.startPosition;if(N"+S))}}]),s}(O.default)},"./src/controller/buffer-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v});var z=I("./src/polyfills/number.ts"),O=I("./src/events.ts"),w=I("./src/utils/logger.ts"),W=I("./src/errors.ts"),y=I("./src/utils/buffer-helper.ts"),L=I("./src/utils/mediasource-helper.ts"),R=I("./src/loader/fragment.ts"),d=I("./src/controller/buffer-operation-queue.ts"),p=Object(L.getMediaSource)(),_=/([ha]vc.)(?:\.[^.,]+)+/,v=function(){function h(n){var r=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=r.hls,l=r.media,x=r.mediaSource;w.logger.log("[buffer-controller]: Media source opened"),l&&(r.updateMediaElementDuration(),o.trigger(O.Events.MEDIA_ATTACHED,{media:l})),x&&x.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},this._onMediaSourceClose=function(){w.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){w.logger.log("[buffer-controller]: Media source ended")},this.hls=n,this._initSourceBuffer(),this.registerListeners()}var c=h.prototype;return c.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},c.destroy=function(){this.unregisterListeners(),this.details=null},c.registerListeners=function(){var r=this.hls;r.on(O.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(O.Events.BUFFER_RESET,this.onBufferReset,this),r.on(O.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.on(O.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(O.Events.BUFFER_EOS,this.onBufferEos,this),r.on(O.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(O.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(O.Events.FRAG_PARSED,this.onFragParsed,this),r.on(O.Events.FRAG_CHANGED,this.onFragChanged,this)},c.unregisterListeners=function(){var r=this.hls;r.off(O.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(O.Events.BUFFER_RESET,this.onBufferReset,this),r.off(O.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.off(O.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(O.Events.BUFFER_EOS,this.onBufferEos,this),r.off(O.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(O.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(O.Events.FRAG_PARSED,this.onFragParsed,this),r.off(O.Events.FRAG_CHANGED,this.onFragChanged,this)},c._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new d.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},c.onManifestParsed=function(r,o){var l=2;(o.audio&&!o.video||!o.altAudio)&&(l=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=l,this.details=null,w.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},c.onMediaAttaching=function(r,o){var l=this.media=o.media;if(l&&p){var x=this.mediaSource=new p;x.addEventListener("sourceopen",this._onMediaSourceOpen),x.addEventListener("sourceended",this._onMediaSourceEnded),x.addEventListener("sourceclose",this._onMediaSourceClose),l.src=self.URL.createObjectURL(x),this._objectUrl=l.src}},c.onMediaDetaching=function(){var r=this.media,o=this.mediaSource,l=this._objectUrl;if(o){if(w.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(x){w.logger.warn("[buffer-controller]: onMediaDetaching: "+x.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),r&&(l&&self.URL.revokeObjectURL(l),r.src===l?(r.removeAttribute("src"),r.load()):w.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(O.Events.MEDIA_DETACHED,void 0)},c.onBufferReset=function(){var r=this;this.getSourceBufferTypes().forEach(function(o){var l=r.sourceBuffer[o];try{l&&(r.removeBufferListeners(o),r.mediaSource&&r.mediaSource.removeSourceBuffer(l),r.sourceBuffer[o]=void 0)}catch(x){w.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",x)}}),this._initSourceBuffer()},c.onBufferCodecs=function(r,o){var l=this,x=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(E){if(x){var b=l.tracks[E];if(b&&typeof b.buffer.changeType=="function"){var P=o[E],T=P.codec,m=P.levelCodec,g=P.container,s=(b.levelCodec||b.codec).replace(_,"$1"),u=(m||T).replace(_,"$1");if(s!==u){var D=g+";codecs="+(m||T);l.appendChangeType(E,D)}}}else l.pendingTracks[E]=o[E]}),x)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},c.appendChangeType=function(r,o){var l=this,x=this.operationQueue,E={execute:function(){var P=l.sourceBuffer[r];P&&(w.logger.log("[buffer-controller]: changing "+r+" sourceBuffer type to "+o),P.changeType(o)),x.shiftAndExecuteNext(r)},onStart:function(){},onComplete:function(){},onError:function(P){w.logger.warn("[buffer-controller]: Failed to change "+r+" SourceBuffer type",P)}};x.append(E,r)},c.onBufferAppending=function(r,o){var l=this,x=this.hls,E=this.operationQueue,b=this.tracks,P=o.data,T=o.type,m=o.frag,g=o.part,s=o.chunkMeta,u=s.buffering[T],D=self.performance.now();u.start=D;var S=m.stats.buffering,A=g?g.stats.buffering:null;S.start===0&&(S.start=D),A&&A.start===0&&(A.start=D);var N=b.audio,j=T==="audio"&&s.id===1&&(N==null?void 0:N.container)==="audio/mpeg",K={execute:function(){if(u.executeStart=self.performance.now(),j){var U=l.sourceBuffer[T];if(U){var B=m.start-U.timestampOffset;Math.abs(B)>=.1&&(w.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+m.start+" (delta: "+B+") sn: "+m.sn+")"),U.timestampOffset=m.start)}}l.appendExecutor(P,T)},onStart:function(){},onComplete:function(){var U=self.performance.now();u.executeEnd=u.end=U,S.first===0&&(S.first=U),A&&A.first===0&&(A.first=U);var B=l.sourceBuffer,q={};for(var ee in B)q[ee]=y.BufferHelper.getBuffered(B[ee]);l.appendError=0,l.hls.trigger(O.Events.BUFFER_APPENDED,{type:T,frag:m,part:g,chunkMeta:s,parent:m.type,timeRanges:q})},onError:function(U){w.logger.error("[buffer-controller]: Error encountered while trying to append to the "+T+" SourceBuffer",U);var B={type:W.ErrorTypes.MEDIA_ERROR,parent:m.type,details:W.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?B.details=W.ErrorDetails.BUFFER_FULL_ERROR:(l.appendError++,B.details=W.ErrorDetails.BUFFER_APPEND_ERROR,l.appendError>x.config.appendErrorMaxRetry&&(w.logger.error("[buffer-controller]: Failed "+x.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),B.fatal=!0)),x.trigger(O.Events.ERROR,B)}};E.append(K,T)},c.onBufferFlushing=function(r,o){var l=this,x=this.operationQueue,E=function(P){return{execute:l.removeExecutor.bind(l,P,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){l.hls.trigger(O.Events.BUFFER_FLUSHED,{type:P})},onError:function(m){w.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",m)}}};o.type?x.append(E(o.type),o.type):this.getSourceBufferTypes().forEach(function(b){x.append(E(b),b)})},c.onFragParsed=function(r,o){var l=this,x=o.frag,E=o.part,b=[],P=E?E.elementaryStreams:x.elementaryStreams;P[R.ElementaryStreamTypes.AUDIOVIDEO]?b.push("audiovideo"):(P[R.ElementaryStreamTypes.AUDIO]&&b.push("audio"),P[R.ElementaryStreamTypes.VIDEO]&&b.push("video"));var T=function(){var g=self.performance.now();x.stats.buffering.end=g,E&&(E.stats.buffering.end=g);var s=E?E.stats:x.stats;l.hls.trigger(O.Events.FRAG_BUFFERED,{frag:x,part:E,stats:s,id:x.type})};b.length===0&&w.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+x.type+" level: "+x.level+" sn: "+x.sn),this.blockBuffers(T,b)},c.onFragChanged=function(r,o){this.flushBackBuffer()},c.onBufferEos=function(r,o){var l=this,x=this.getSourceBufferTypes().reduce(function(E,b){var P=l.sourceBuffer[b];return(!o.type||o.type===b)&&(P&&!P.ended&&(P.ended=!0,w.logger.log("[buffer-controller]: "+b+" sourceBuffer now EOS"))),E&&!!(!P||P.ended)},!0);x&&this.blockBuffers(function(){var E=l.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},c.onLevelUpdated=function(r,o){var l=o.details;if(!l.fragments.length)return;this.details=l,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},c.flushBackBuffer=function(){var r=this.hls,o=this.details,l=this.media,x=this.sourceBuffer;if(!l||o===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var b=o.live&&r.config.liveBackBufferLength!==null?r.config.liveBackBufferLength:r.config.backBufferLength;if(!Object(z.isFiniteNumber)(b)||b<0)return;var P=l.currentTime,T=o.levelTargetDuration,m=Math.max(b,T),g=Math.floor(P/T)*T-m;E.forEach(function(s){var u=x[s];if(u){var D=y.BufferHelper.getBuffered(u);D.length>0&&g>D.start(0)&&(r.trigger(O.Events.BACK_BUFFER_REACHED,{bufferEnd:g}),o.live&&r.trigger(O.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:g}),r.trigger(O.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:g,type:s}))}})},c.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var r=this.details,o=this.hls,l=this.media,x=this.mediaSource,E=r.fragments[0].start+r.totalduration,b=l.duration,P=Object(z.isFiniteNumber)(x.duration)?x.duration:0;r.live&&o.config.liveDurationInfinity?(w.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),x.duration=Infinity,this.updateSeekableRange(r)):(E>P&&E>b||!Object(z.isFiniteNumber)(b))&&(w.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),x.duration=E)},c.updateSeekableRange=function(r){var o=this.mediaSource,l=r.fragments,x=l.length;if(x&&r.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var E=Math.max(0,l[0].start),b=Math.max(E,E+r.totalduration);o.setLiveSeekableRange(E,b)}},c.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,o=this.operationQueue,l=this.pendingTracks,x=Object.keys(l).length;if(x&&!r||x===2){this.createSourceBuffers(l),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(O.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(b){o.executeNext(b)})}},c.createSourceBuffers=function(r){var o=this.sourceBuffer,l=this.mediaSource;if(!l)throw Error("createSourceBuffers called when mediaSource was null");var x=0;for(var E in r)if(!o[E]){var b=r[E];if(!b)throw Error("source buffer exists for track "+E+", however track does not");var P=b.levelCodec||b.codec,T=b.container+";codecs="+P;w.logger.log("[buffer-controller]: creating sourceBuffer("+T+")");try{var m=o[E]=l.addSourceBuffer(T),g=E;this.addBufferListener(g,"updatestart",this._onSBUpdateStart),this.addBufferListener(g,"updateend",this._onSBUpdateEnd),this.addBufferListener(g,"error",this._onSBUpdateError),this.tracks[E]={buffer:m,codec:P,container:b.container,levelCodec:b.levelCodec,id:b.id},x++}catch(s){w.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(O.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:T})}}x&&this.hls.trigger(O.Events.BUFFER_CREATED,{tracks:this.tracks})},c._onSBUpdateStart=function(r){var o=this.operationQueue,l=o.current(r);l.onStart()},c._onSBUpdateEnd=function(r){var o=this.operationQueue,l=o.current(r);l.onComplete(),o.shiftAndExecuteNext(r)},c._onSBUpdateError=function(r,o){w.logger.error("[buffer-controller]: "+r+" SourceBuffer error",o),this.hls.trigger(O.Events.ERROR,{type:W.ErrorTypes.MEDIA_ERROR,details:W.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var l=this.operationQueue.current(r);l&&l.onError(o)},c.removeExecutor=function(r,o,l){var x=this.media,E=this.mediaSource,b=this.operationQueue,P=this.sourceBuffer,T=P[r];if(!x||!E||!T){w.logger.warn("[buffer-controller]: Attempting to remove from the "+r+" SourceBuffer, but it does not exist"),b.shiftAndExecuteNext(r);return}var m=Object(z.isFiniteNumber)(x.duration)?x.duration:Infinity,g=Object(z.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Math.max(0,o),u=Math.min(l,m,g);u>s?(w.logger.log("[buffer-controller]: Removing ["+s+","+u+"] from the "+r+" SourceBuffer"),console.assert(!T.updating,r+" sourceBuffer must not be updating"),T.remove(s,u)):b.shiftAndExecuteNext(r)},c.appendExecutor=function(r,o){var l=this.operationQueue,x=this.sourceBuffer,E=x[o];if(!E){w.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),l.shiftAndExecuteNext(o);return}E.ended=!1,console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.appendBuffer(r)},c.blockBuffers=function(r,o){var l=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){w.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(r);return}var x=this.operationQueue,E=o.map(function(b){return x.appendBlocker(b)});Promise.all(E).then(function(){r(),o.forEach(function(b){var P=l.sourceBuffer[b];(!P||!P.updating)&&x.shiftAndExecuteNext(b)})})},c.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},c.addBufferListener=function(r,o,l){var x=this.sourceBuffer[r];if(!x)return;var E=l.bind(this,r);this.listeners[r].push({event:o,listener:E}),x.addEventListener(o,E)},c.removeBufferListeners=function(r){var o=this.sourceBuffer[r];if(!o)return;this.listeners[r].forEach(function(l){o.removeEventListener(l.event,l.listener)})},h}()},"./src/controller/buffer-operation-queue.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return O});var z=I("./src/utils/logger.ts"),O=function(){function w(y){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=y}var W=w.prototype;return W.append=function(L,R){var d=this.queues[R];d.push(L),d.length===1&&this.buffers[R]&&this.executeNext(R)},W.insertAbort=function(L,R){var d=this.queues[R];d.unshift(L),this.executeNext(R)},W.appendBlocker=function(L){var R,d=new Promise(function(_){R=_}),p={execute:R,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(p,L),d},W.executeNext=function(L){var R=this.buffers,d=this.queues,p=R[L],_=d[L];if(_.length){var v=_[0];try{v.execute()}catch(h){z.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),v.onError(h),(!p||!p.updating)&&(_.shift(),this.executeNext(L))}}},W.shiftAndExecuteNext=function(L){this.queues[L].shift(),this.executeNext(L)},W.current=function(L){return this.queues[L][0]},w}()},"./src/controller/cap-level-controller.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/events.ts");function O(y,L){for(var R=0;R0&&this.mediaWidth>0){var d=this.hls.levels;if(d.length){var p=this.hls;p.autoLevelCapping=this.getMaxLevel(d.length-1),p.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=p.autoLevelCapping}}},L.getMaxLevel=function(d){var p=this,_=this.hls.levels;if(!_.length)return-1;var v=_.filter(function(h,c){return y.isLevelAllowed(c,p.restrictedLevels)&&c<=d});return this.clientRect=null,y.getMaxLevelByMediaSize(v,this.mediaWidth,this.mediaHeight)},L.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},L.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},L.getDimensions=function(){if(this.clientRect)return this.clientRect;var d=this.media,p={width:0,height:0};if(d){var _=d.getBoundingClientRect();p.width=_.width,p.height=_.height,!p.width&&!p.height&&(p.width=_.right-_.left||d.width||0,p.height=_.bottom-_.top||d.height||0)}return this.clientRect=p,p},y.isLevelAllowed=function(d,p){return p===void 0&&(p=[]),p.indexOf(d)===-1},y.getMaxLevelByMediaSize=function(d,p,_){if(!d||!d.length)return-1;for(var v=function(o,l){return l?o.width!==l.width||o.height!==l.height:!0},h=d.length-1,c=0;c=p||n.height>=_)&&v(n,d[c+1])){h=c;break}}return h},w(y,[{key:"mediaWidth",get:function(){return this.getDimensions().width*y.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*y.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var d=1;try{d=self.devicePixelRatio}catch(p){}return d}}]),y}();G.default=W},"./src/controller/cmcd-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v});var z=I("./src/events.ts"),O=I("./src/types/cmcd.ts"),w=I("./src/utils/buffer-helper.ts"),W=I("./src/utils/logger.ts");function y(h,c){for(var n=0;n=h.length?{done:!0}:{done:!1,value:h[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(h,c){if(!h)return;if(typeof h=="string")return p(h,c);var n=Object.prototype.toString.call(h).slice(8,-1);if(n==="Object"&&h.constructor&&(n=h.constructor.name),n==="Map"||n==="Set")return Array.from(h);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(h,c)}function p(h,c){(c==null||c>h.length)&&(c=h.length);for(var n=0,r=new Array(c);no&&(o=b.bitrate)}return o>0?o:NaN},c.getBufferLength=function(r){var o=this.hls.media,l=r===O.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!l||!o)return NaN;var x=w.BufferHelper.bufferInfo(l,o.currentTime,this.config.maxBufferHole);return x.len*1e3},c.createPlaylistLoader=function(){var r=this.config.pLoader,o=this.applyPlaylistData,l=r||this.config.loader;return function(){function x(b){this.loader=void 0,this.loader=new l(b)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,T,m){o(P),this.loader.load(P,T,m)},L(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},c.createFragmentLoader=function(){var r=this.config.fLoader,o=this.applyFragmentData,l=r||this.config.loader;return function(){function x(b){this.loader=void 0,this.loader=new l(b)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(P,T,m){o(P),this.loader.load(P,T,m)},L(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},h.uuid=function(){var r=URL.createObjectURL(new Blob),o=r.toString();return URL.revokeObjectURL(r),o.substr(o.lastIndexOf("/")+1)},h.serialize=function(r){for(var o=[],l=function(j){return!Number.isNaN(j)&&j!=null&&j!==""&&j!==!1},x=function(j){return Math.round(j)},E=function(j){return x(j/100)*100},b=function(j){return encodeURIComponent(j)},P={br:x,d:x,bl:E,dl:E,mtp:E,nor:b,rtp:E,tb:x},T=Object.keys(r||{}).sort(),m=R(T),g;!(g=m()).done;){var s=g.value,u=r[s];if(!l(u))continue;if(s==="v"&&u===1)continue;if(s=="pr"&&u===1)continue;var D=P[s];D&&(u=D(u));var S=typeof u,A=void 0;s==="ot"||s==="sf"||s==="st"?A=s+"="+u:S==="boolean"?A=s:S==="number"?A=s+"="+u:A=s+"="+JSON.stringify(u),o.push(A)}return o.join(",")},h.toHeaders=function(r){for(var o=Object.keys(r),l={},x=["Object","Request","Session","Status"],E=[{},{},{},{}],b={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},P=0,T=o;PR){this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.KEY_SYSTEM_ERROR,details:O.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var b=R-this._requestLicenseFailureCount+1;w.logger.warn("Retrying license request, "+b+" attempts left"),this._requestLicense(o,l)}break}},h._generateLicenseRequestChallenge=function(n,r){switch(n.mediaKeySystemDomain){case W.KeySystems.WIDEVINE:return r}throw new Error("unsupported key-system: "+n.mediaKeySystemDomain)},h._requestLicense=function(n,r){w.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){w.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.KEY_SYSTEM_ERROR,details:O.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var l=this.getLicenseServerUrl(o.mediaKeySystemDomain),x=this._createLicenseXhr(l,n,r);w.logger.log("Sending license request to URL: "+l);var E=this._generateLicenseRequestChallenge(o,n);x.send(E)}catch(b){w.logger.error("Failure requesting DRM license: "+b),this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.KEY_SYSTEM_ERROR,details:O.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},h.onMediaAttached=function(n,r){if(!this._emeEnabled)return;var o=r.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},h.onMediaDetached=function(){var n=this._media,r=this._mediaKeysList;if(!n)return;n.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(r.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return n.setMediaKeys(null)}).catch(function(){})},h.onManifestParsed=function(n,r){if(!this._emeEnabled)return;var o=r.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),l=r.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(W.KeySystems.WIDEVINE,o,l)},L(v,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),v}();G.default=_},"./src/controller/fps-controller.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/events.ts"),O=I("./src/utils/logger.ts"),w=function(){function W(L){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=L,this.registerListeners()}var y=W.prototype;return y.setStreamController=function(R){this.streamController=R},y.registerListeners=function(){this.hls.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},y.unregisterListeners=function(){this.hls.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching)},y.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},y.onMediaAttaching=function(R,d){var p=this.hls.config;if(p.capLevelOnFPSDrop){var _=d.media instanceof self.HTMLVideoElement?d.media:null;this.media=_,_&&typeof _.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),p.fpsDroppedMonitoringPeriod)}},y.checkFPS=function(R,d,p){var _=performance.now();if(d){if(this.lastTime){var v=_-this.lastTime,h=p-this.lastDroppedFrames,c=d-this.lastDecodedFrames,n=1e3*h/v,r=this.hls;if(r.trigger(z.Events.FPS_DROP,{currentDropped:h,currentDecoded:c,totalDroppedFrames:p}),n>0&&h>r.config.fpsDroppedMonitoringThreshold*c){var o=r.currentLevel;O.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(r.autoLevelCapping===-1||r.autoLevelCapping>=o)&&(o=o-1,r.trigger(z.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:r.currentLevel}),r.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=_,this.lastDroppedFrames=p,this.lastDecodedFrames=d}},y.checkFPSInterval=function(){var R=this.media;if(R)if(this.isVideoPlaybackQualityAvailable){var d=R.getVideoPlaybackQuality();this.checkFPS(R,d.totalVideoFrames,d.droppedVideoFrames)}else this.checkFPS(R,R.webkitDecodedFrameCount,R.webkitDroppedFrameCount)},W}();G.default=w},"./src/controller/fragment-finders.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"findFragmentByPDT",function(){return w}),I.d(G,"findFragmentByPTS",function(){return W}),I.d(G,"fragmentWithinToleranceTest",function(){return y}),I.d(G,"pdtWithinToleranceTest",function(){return L}),I.d(G,"findFragWithCC",function(){return R});var z=I("./src/polyfills/number.ts"),O=I("./src/utils/binary-search.ts");function w(d,p,_){if(p===null||!Array.isArray(d)||!d.length||!Object(z.isFiniteNumber)(p))return null;var v=d[0].programDateTime;if(p<(v||0))return null;var h=d[d.length-1].endProgramDateTime;if(p>=(h||0))return null;_=_||0;for(var c=0;cd&&_.start?-1:0}function L(d,p,_){var v=Math.min(p,_.duration+(_.deltaPTS?_.deltaPTS:0))*1e3,h=_.endProgramDateTime||0;return h-v>d}function R(d,p){return O.default.search(d,function(_){return _.ccp?-1:0})}},"./src/controller/fragment-tracker.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"FragmentState",function(){return w}),I.d(G,"FragmentTracker",function(){return W});var z=I("./src/events.ts"),O=I("./src/types/loader.ts"),w;(function(R){R.NOT_LOADED="NOT_LOADED",R.BACKTRACKED="BACKTRACKED",R.APPENDING="APPENDING",R.PARTIAL="PARTIAL",R.OK="OK"})(w||(w={}));var W=function(){function R(p){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=p,this._registerListeners()}var d=R.prototype;return d._registerListeners=function(){var _=this.hls;_.on(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),_.on(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),_.on(z.Events.FRAG_LOADED,this.onFragLoaded,this)},d._unregisterListeners=function(){var _=this.hls;_.off(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),_.off(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),_.off(z.Events.FRAG_LOADED,this.onFragLoaded,this)},d.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},d.getAppendedFrag=function(_,v){if(v===O.PlaylistLevelType.MAIN){var h=this.activeFragment,c=this.activeParts;if(!h)return null;if(c)for(var n=c.length;n--;){var r=c[n],o=r?r.end:h.appendedPTS;if(r.start<=_&&o!==void 0&&_<=o)return n>9&&(this.activeParts=c.slice(n-9)),r}else if(h.start<=_&&h.appendedPTS!==void 0&&_<=h.appendedPTS)return h}return this.getBufferedFrag(_,v)},d.getBufferedFrag=function(_,v){for(var h=this.fragments,c=Object.keys(h),n=c.length;n--;){var r=h[c[n]];if((r==null?void 0:r.body.type)===v&&r.buffered){var o=r.body;if(o.start<=_&&_<=o.end)return o}}return null},d.detectEvictedFragments=function(_,v,h){var c=this;Object.keys(this.fragments).forEach(function(n){var r=c.fragments[n];if(!r)return;if(!r.buffered){r.body.type===h&&c.removeFragment(r.body);return}var o=r.range[_];if(!o)return;o.time.some(function(l){var x=!c.isTimeBuffered(l.startPTS,l.endPTS,v);return x&&c.removeFragment(r.body),x})})},d.detectPartialFragments=function(_){var v=this,h=this.timeRanges,c=_.frag,n=_.part;if(!h||c.sn==="initSegment")return;var r=L(c),o=this.fragments[r];if(!o)return;Object.keys(h).forEach(function(l){var x=c.elementaryStreams[l];if(!x)return;var E=h[l],b=n!==null||x.partial===!0;o.range[l]=v.getBufferedTimes(c,n,b,E)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},d.fragBuffered=function(_){var v=L(_),h=this.fragments[v];h&&(h.backtrack=h.loaded=null,h.buffered=!0)},d.getBufferedTimes=function(_,v,h,c){for(var n={time:[],partial:h},r=v?v.start:_.start,o=v?v.end:_.end,l=_.minEndPTS||o,x=_.maxStartPTS||r,E=0;E=b&&l<=P){n.time.push({startPTS:Math.max(r,c.start(E)),endPTS:Math.min(o,c.end(E))});break}else if(rb)n.partial=!0,n.time.push({startPTS:Math.max(r,c.start(E)),endPTS:Math.min(o,c.end(E))});else if(o<=b)break}return n},d.getPartialFragment=function(_){var v=null,h,c,n,r=0,o=this.bufferPadding,l=this.fragments;return Object.keys(l).forEach(function(x){var E=l[x];if(!E)return;y(E)&&(c=E.body.start-o,n=E.body.end+o,_>=c&&_<=n&&(h=Math.min(_-c,n-_),r<=h&&(v=E.body,r=h)))}),v},d.getState=function(_){var v=L(_),h=this.fragments[v];return h?h.buffered?y(h)?w.PARTIAL:w.OK:h.backtrack?w.BACKTRACKED:w.APPENDING:w.NOT_LOADED},d.backtrack=function(_,v){var h=L(_),c=this.fragments[h];if(!c||c.backtrack)return null;var n=c.backtrack=v||c.loaded;return c.loaded=null,n},d.getBacktrackData=function(_){var v=L(_),h=this.fragments[v];if(h){var c,n=h.backtrack;if(n!=null&&(c=n.payload)!==null&&c!==void 0&&c.byteLength)return n;this.removeFragment(_)}return null},d.isTimeBuffered=function(_,v,h){for(var c,n,r=0;r=c&&v<=n)return!0;if(v<=c)return!1}return!1},d.onFragLoaded=function(_,v){var h=v.frag,c=v.part;if(h.sn==="initSegment"||h.bitrateTest||c)return;var n=L(h);this.fragments[n]={body:h,loaded:v,backtrack:null,buffered:!1,range:Object.create(null)}},d.onBufferAppended=function(_,v){var h=this,c=v.frag,n=v.part,r=v.timeRanges;if(c.type===O.PlaylistLevelType.MAIN)if(this.activeFragment=c,n){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(n)}else this.activeParts=null;this.timeRanges=r,Object.keys(r).forEach(function(l){var x=r[l];if(h.detectEvictedFragments(l,x),!n)for(var E=0;E_&&c.removeFragment(o)}})},d.removeFragment=function(_){var v=L(_);_.stats.loaded=0,_.clearElementaryStreamInfo(),delete this.fragments[v]},d.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},R}();function y(R){var d,p;return R.buffered&&(((d=R.range.video)===null||d===void 0?void 0:d.partial)||((p=R.range.audio)===null||p===void 0?void 0:p.partial))}function L(R){return R.type+"_"+R.level+"_"+R.urlId+"_"+R.sn}},"./src/controller/gap-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"STALL_MINIMUM_DURATION_MS",function(){return y}),I.d(G,"MAX_START_GAP_JUMP",function(){return L}),I.d(G,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return R}),I.d(G,"SKIP_BUFFER_RANGE_START",function(){return d}),I.d(G,"default",function(){return p});var z=I("./src/utils/buffer-helper.ts"),O=I("./src/errors.ts"),w=I("./src/events.ts"),W=I("./src/utils/logger.ts"),y=250,L=2,R=.1,d=.05,p=function(){function _(h,c,n,r){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=h,this.media=c,this.fragmentTracker=n,this.hls=r}var v=_.prototype;return v.destroy=function(){this.hls=this.fragmentTracker=this.media=null},v.poll=function(c){var n=this.config,r=this.media,o=this.stalled,l=r.currentTime,x=r.seeking,E=this.seeking&&!x,b=!this.seeking&&x;if(this.seeking=x,l!==c){if(this.moved=!0,o!==null){if(this.stallReported){var P=self.performance.now()-o;W.logger.warn("playback not stuck anymore @"+l+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((b||E)&&(this.stalled=null),r.paused||r.ended||r.playbackRate===0||!z.BufferHelper.getBuffered(r).length)return;var T=z.BufferHelper.bufferInfo(r,l,0),m=T.len>0,g=T.nextStart||0;if(!m&&!g)return;if(x){var s=T.len>L,u=!g||g-l>L&&!this.fragmentTracker.getPartialFragment(l);if(s||u)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,S=Math.max(g,T.start||0)-l,A=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,N=A==null||((D=A.details)===null||D===void 0)?void 0:D.live,j=N?A.details.targetduration*2:L;if(S>0&&S<=j){this._trySkipBufferHole(null);return}}var K=self.performance.now();if(o===null){this.stalled=K;return}var H=K-o;!x&&H>=y&&this._reportStall(T.len);var U=z.BufferHelper.bufferInfo(r,l,n.maxBufferHole);this._tryFixBufferStall(U,H)},v._tryFixBufferStall=function(c,n){var r=this.config,o=this.fragmentTracker,l=this.media,x=l.currentTime,E=o.getPartialFragment(x);if(E){var b=this._trySkipBufferHole(E);if(b)return}c.len>r.maxBufferHole&&n>r.highBufferWatchdogPeriod*1e3&&(W.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},v._reportStall=function(c){var n=this.hls,r=this.media,o=this.stallReported;o||(this.stallReported=!0,W.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+c+")"),n.trigger(w.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:c}))},v._trySkipBufferHole=function(c){for(var n=this.config,r=this.hls,o=this.media,l=o.currentTime,x=0,E=z.BufferHelper.getBuffered(o),b=0;b=x&&l.05&&this.forwardBufferLength>1){var b=Math.min(2,Math.max(1,r)),P=Math.round(2/(1+Math.exp(-.75*l-this.edgeStalled))*20)/20;_.playbackRate=Math.min(b,Math.max(1,P))}else _.playbackRate!==1&&_.playbackRate!==0&&(_.playbackRate=1)},d.estimateLiveEdge=function(){var _=this.levelDetails;return _===null?null:_.edge+_.age},d.computeLatency=function(){var _=this.estimateLiveEdge();return _===null?null:_-this.currentTime},y(R,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var _=this.config,v=this.levelDetails;return _.liveMaxLatencyDuration!==void 0?_.liveMaxLatencyDuration:v?_.liveMaxLatencyDurationCount*v.targetduration:0}},{key:"targetLatency",get:function(){var _=this.levelDetails;if(_===null)return null;var v=_.holdBack,h=_.partHoldBack,c=_.targetduration,n=this.config,r=n.liveSyncDuration,o=n.liveSyncDurationCount,l=n.lowLatencyMode,x=this.hls.userConfig,E=l&&h||v;(x.liveSyncDuration||x.liveSyncDurationCount||E===0)&&(E=r!==void 0?r:o*c);var b=c,P=1;return E+Math.min(this.stallCount*P,b)}},{key:"liveSyncPosition",get:function(){var _=this.estimateLiveEdge(),v=this.targetLatency,h=this.levelDetails;if(_===null||v===null||h===null)return null;var c=h.edge,n=_-v-this.edgeStalled,r=c-h.totalduration,o=c-(this.config.lowLatencyMode&&h.partTarget||h.targetduration);return Math.min(Math.max(r,n),o)}},{key:"drift",get:function(){var _=this.levelDetails;return _===null?1:_.drift}},{key:"edgeStalled",get:function(){var _=this.levelDetails;if(_===null)return 0;var v=(this.config.lowLatencyMode&&_.partTarget||_.targetduration)*3;return Math.max(_.age-v,0)}},{key:"forwardBufferLength",get:function(){var _=this.media,v=this.levelDetails;if(!_||!v)return 0;var h=_.buffered.length;return h?_.buffered.end(h-1):v.edge-this.currentTime}}]),R}()},"./src/controller/level-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return n});var z=I("./src/types/level.ts"),O=I("./src/events.ts"),w=I("./src/errors.ts"),W=I("./src/utils/codecs.ts"),y=I("./src/controller/level-helper.ts"),L=I("./src/controller/base-playlist-controller.ts"),R=I("./src/types/loader.ts");function d(){return d=Object.assign||function(r){for(var o=1;o0){g=P[0].bitrate,P.sort(function(H,U){return H.bitrate-U.bitrate}),this._levels=P;for(var N=0;Nthis.hls.config.fragLoadingMaxRetry&&(s=b.frag.level)):s=b.frag.level}break;case w.ErrorDetails.LEVEL_LOAD_ERROR:case w.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(g=!1),s=P.level),m=!0;break;case w.ErrorDetails.REMUX_ALLOC_ERROR:s=b.level,m=!0;break}s!==void 0&&this.recoverLevel(b,s,m,g)},l.recoverLevel=function(E,b,P,T){var m=E.details,g=this._levels[b];if(g.loadError++,P){var s=this.retryLoadingOrFail(E);if(s)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(T){var u=g.url.length;if(u>1&&g.loadError1){var T=(b.urlId+1)%P;this.warn("Switching to redundant URL-id "+T),this._levels.forEach(function(m){m.urlId=T}),this.level=E}},l.onFragLoaded=function(E,b){var P=b.frag;if(P!==void 0&&P.type===R.PlaylistLevelType.MAIN){var T=this._levels[P.level];T!==void 0&&(T.fragmentError=0,T.loadError=0)}},l.onLevelLoaded=function(E,b){var P,T=b.level,m=b.details,g=this._levels[T];if(!g){var s;this.warn("Invalid level index "+T),(s=b.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(m.deltaUpdateFailed=!0);return}T===this.currentLevelIndex?(g.fragmentError===0&&(g.loadError=0,this.retryCount=0),this.playlistLoaded(T,b,g.details)):(P=b.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(m.deltaUpdateFailed=!0)},l.onAudioTrackSwitched=function(E,b){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var T=-1,m=this.hls.audioTracks[b.id].groupId,g=0;g0){var T=P.urlId,m=P.url[T];if(E)try{m=E.addDirectives(m)}catch(g){this.warn("Could not construct new URL with HLS Delivery Directives: "+g)}this.log("Attempt loading level index "+b+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+T+" "+m),this.clearTimer(),this.hls.trigger(O.Events.LEVEL_LOADING,{url:m,level:b,id:T,deliveryDirectives:E||null})}},l.removeLevel=function(E,b){var P=function(g,s){return s!==b},T=this._levels.filter(function(m,g){return g!==E?!0:m.url.length>1&&b!==void 0?(m.url=m.url.filter(P),m.audioGroupIds&&(m.audioGroupIds=m.audioGroupIds.filter(P)),m.textGroupIds&&(m.textGroupIds=m.textGroupIds.filter(P)),m.urlId=0,!0):!1}).map(function(m,g){var s=m.details;return s!=null&&s.fragments&&s.fragments.forEach(function(u){u.level=g}),m});this._levels=T,this.hls.trigger(O.Events.LEVELS_UPDATED,{levels:T})},_(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var b,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===E&&(b=P[E])!==null&&b!==void 0&&b.details)return;if(E<0||E>=P.length){var T=E<0;if(this.hls.trigger(O.Events.ERROR,{type:w.ErrorTypes.OTHER_ERROR,details:w.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:T,reason:"invalid level idx"}),T)return;E=Math.min(E,P.length-1)}this.clearTimer();var m=this.currentLevelIndex,g=P[m],s=P[E];this.log("switching to level "+E+" from "+m),this.currentLevelIndex=E;var u=d({},s,{level:E,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete u._urlId,this.hls.trigger(O.Events.LEVEL_SWITCHING,u);var D=s.details;if(!D||D.live){var S=this.switchParams(s.uri,g==null?void 0:g.details);this.loadPlaylist(S)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),o}(L.default)},"./src/controller/level-helper.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"addGroupId",function(){return w}),I.d(G,"assignTrackIdsByGroup",function(){return W}),I.d(G,"updatePTS",function(){return y}),I.d(G,"updateFragPTSDTS",function(){return R}),I.d(G,"mergeDetails",function(){return d}),I.d(G,"mapPartIntersection",function(){return p}),I.d(G,"mapFragmentIntersection",function(){return _}),I.d(G,"adjustSliding",function(){return v}),I.d(G,"addSliding",function(){return h}),I.d(G,"computeReloadInterval",function(){return c}),I.d(G,"getFragmentWithSN",function(){return n}),I.d(G,"getPartWith",function(){return r});var z=I("./src/polyfills/number.ts"),O=I("./src/utils/logger.ts");function w(o,l,x){switch(l){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(x);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(x);break}}function W(o){var l={};o.forEach(function(x){var E=x.groupId||"";x.id=l[E]=l[E]||0,l[E]++})}function y(o,l,x){var E=o[l],b=o[x];L(E,b)}function L(o,l){var x=l.startPTS;if(Object(z.isFiniteNumber)(x)){var E=0,b;l.sn>o.sn?(E=x-o.start,b=o):(E=o.start-x,b=l),b.duration!==E&&(b.duration=E)}else if(l.sn>o.sn){var P=o.cc===l.cc;P&&o.minEndPTS?l.start=o.start+(o.minEndPTS-o.start):l.start=o.start+o.duration}else l.start=Math.max(o.start-l.duration,0)}function R(o,l,x,E,b,P){var T=E-x;T<=0&&(O.logger.warn("Fragment should have a positive duration",l),E=x+l.duration,P=b+l.duration);var m=x,g=E,s=l.startPTS,u=l.endPTS;if(Object(z.isFiniteNumber)(s)){var D=Math.abs(s-x);Object(z.isFiniteNumber)(l.deltaPTS)?l.deltaPTS=Math.max(D,l.deltaPTS):l.deltaPTS=D,m=Math.max(x,s),x=Math.min(x,s),b=Math.min(b,l.startDTS),g=Math.min(E,u),E=Math.max(E,u),P=Math.max(P,l.endDTS)}l.duration=E-x;var S=x-l.start;l.appendedPTS=E,l.start=l.startPTS=x,l.maxStartPTS=m,l.startDTS=b,l.endPTS=E,l.minEndPTS=g,l.endDTS=P;var A=l.sn;if(!o||Ao.endSN)return 0;var N,j=A-o.startSN,K=o.fragments;for(K[j]=l,N=j;N>0;N--)L(K[N],K[N-1]);for(N=j;N=0;b--){var P=E[b].initSegment;if(P){x=P;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var T=0,m;if(_(o,l,function(N,j){N.relurl&&(T=N.cc-j.cc),Object(z.isFiniteNumber)(N.startPTS)&&Object(z.isFiniteNumber)(N.endPTS)&&(j.start=j.startPTS=N.startPTS,j.startDTS=N.startDTS,j.appendedPTS=N.appendedPTS,j.maxStartPTS=N.maxStartPTS,j.endPTS=N.endPTS,j.endDTS=N.endDTS,j.minEndPTS=N.minEndPTS,j.duration=N.endPTS-N.startPTS,j.duration&&(m=j),l.PTSKnown=l.alignedSliding=!0),j.elementaryStreams=N.elementaryStreams,j.loader=N.loader,j.stats=N.stats,j.urlId=N.urlId,N.initSegment&&(j.initSegment=N.initSegment,x=N.initSegment)}),x){var g=l.fragmentHint?l.fragments.concat(l.fragmentHint):l.fragments;g.forEach(function(N){var j;(!N.initSegment||N.initSegment.relurl===((j=x)===null||j===void 0?void 0:j.relurl))&&(N.initSegment=x)})}if(l.skippedSegments&&(l.deltaUpdateFailed=l.fragments.some(function(N){return!N}),l.deltaUpdateFailed)){O.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=l.skippedSegments;s--;)l.fragments.shift();l.startSN=l.fragments[0].sn,l.startCC=l.fragments[0].cc}var u=l.fragments;if(T){O.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D=E.length)return;h(l,E[x].start)}function h(o,l){if(l){for(var x=o.fragments,E=o.skippedSegments;E0&&b0&&g===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),g=s),this.state=O.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=g,this.tick()}else this._forceStartLoad=!0,this.state=O.State.STOPPED},T.stopLoad=function(){this._forceStartLoad=!1,b.prototype.stopLoad.call(this)},T.doTick=function(){switch(this.state){case O.State.IDLE:this.doTickIdle();break;case O.State.WAITING_LEVEL:{var g,s=this.levels,u=this.level,D=s==null||((g=s[u])===null||g===void 0)?void 0:g.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=O.State.IDLE;break}break}case O.State.FRAG_LOADING_WAITING_RETRY:{var S,A=self.performance.now(),N=this.retryDate;(!N||A>=N||(S=this.media)!==null&&S!==void 0&&S.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=O.State.IDLE)}break;default:break}this.onTickEnd()},T.onTickEnd=function(){b.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},T.doTickIdle=function(){var g,s,u=this.hls,D=this.levelLastLoaded,S=this.levels,A=this.media,N=u.config,j=u.nextLoadLevel;if(D===null||!A&&(this.startFragRequested||!N.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!S||!S[j])return;var K=S[j];this.level=u.nextLoadLevel=j;var H=K.details;if(!H||this.state===O.State.WAITING_LEVEL||H.live&&this.levelLastLoaded!==j){this.state=O.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:A,R.PlaylistLevelType.MAIN);if(U===null)return;var B=U.len,q=this.getMaxBufferLength(K.maxBitrate);if(B>=q)return;if(this._streamEnded(U,H)){var ee={};this.altAudio&&(ee.type="video"),this.hls.trigger(W.Events.BUFFER_EOS,ee),this.state=O.State.ENDED;return}var he=U.end,ye=this.getNextFragment(he,H);if(this.couldBacktrack&&!this.fragPrevious&&ye&&ye.sn!=="initSegment"){var Ye=ye.sn-H.startSN;Ye>1&&(ye=H.fragments[Ye-1],this.fragmentTracker.removeFragment(ye))}if(ye&&this.fragmentTracker.getState(ye)===L.FragmentState.OK&&this.nextLoadPosition>he){var Pe=this.audioOnly&&!this.altAudio?d.ElementaryStreamTypes.AUDIO:d.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(A,Pe,R.PlaylistLevelType.MAIN),ye=this.getNextFragment(this.nextLoadPosition,H)}if(!ye)return;ye.initSegment&&!ye.initSegment.data&&!this.bitrateTest&&(ye=ye.initSegment),((g=ye.decryptdata)===null||g===void 0?void 0:g.keyFormat)==="identity"&&!((s=ye.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(ye,H):this.loadFragment(ye,H,he)},T.loadFragment=function(g,s,u){var D,S=this.fragmentTracker.getState(g);if(this.fragCurrent=g,S===L.FragmentState.BACKTRACKED){var A=this.fragmentTracker.getBacktrackData(g);if(A){this._handleFragmentLoadProgress(A),this._handleFragmentLoadComplete(A);return}else S=L.FragmentState.NOT_LOADED}S===L.FragmentState.NOT_LOADED||S===L.FragmentState.PARTIAL?g.sn==="initSegment"?this._loadInitSegment(g):this.bitrateTest?(g.bitrateTest=!0,this.log("Fragment "+g.sn+" of level "+g.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(g)):(this.startFragRequested=!0,b.prototype.loadFragment.call(this,g,s,u)):S===L.FragmentState.APPENDING?this.reduceMaxBufferLength(g.duration)&&this.fragmentTracker.removeFragment(g):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},T.getAppendedFrag=function(g){var s=this.fragmentTracker.getAppendedFrag(g,R.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},T.getBufferedFrag=function(g){return this.fragmentTracker.getBufferedFrag(g,R.PlaylistLevelType.MAIN)},T.followingBufferedFrag=function(g){return g?this.getBufferedFrag(g.end+.5):null},T.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},T.nextLevelSwitch=function(){var g=this.levels,s=this.media;if(s!=null&&s.readyState){var u,D=this.getAppendedFrag(s.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!s.paused&&g){var S=this.hls.nextLoadLevel,A=g[S],N=this.fragLastKbps;N&&this.fragCurrent?u=this.fragCurrent.duration*A.maxBitrate/(1e3*N)+1:u=0}else u=0;var j=this.getBufferedFrag(s.currentTime+u);if(j){var K=this.followingBufferedFrag(j);if(K){this.abortCurrentFrag();var H=K.maxStartPTS?K.maxStartPTS:K.start,U=K.duration,B=Math.max(j.end,H+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(B,Number.POSITIVE_INFINITY)}}}},T.abortCurrentFrag=function(){var g=this.fragCurrent;this.fragCurrent=null,g!=null&&g.loader&&g.loader.abort(),this.state===O.State.KEY_LOADING&&(this.state=O.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},T.flushMainBuffer=function(g,s){b.prototype.flushMainBuffer.call(this,g,s,this.altAudio?"video":null)},T.onMediaAttached=function(g,s){b.prototype.onMediaAttached.call(this,g,s);var u=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),u.addEventListener("playing",this.onvplaying),u.addEventListener("seeked",this.onvseeked),this.gapController=new v.default(this.config,u,this.fragmentTracker,this.hls)},T.onMediaDetaching=function(){var g=this.media;g&&(g.removeEventListener("playing",this.onvplaying),g.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),b.prototype.onMediaDetaching.call(this)},T.onMediaPlaying=function(){this.tick()},T.onMediaSeeked=function(){var g=this.media,s=g?g.currentTime:null;Object(z.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},T.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(W.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},T.onManifestParsed=function(g,s){var u=!1,D=!1,S;s.levels.forEach(function(A){S=A.audioCodec,S&&(S.indexOf("mp4a.40.2")!==-1&&(u=!0),S.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=u&&D&&!Object(w.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=s.levels,this.startFragRequested=!1},T.onLevelLoading=function(g,s){var u=this.levels;if(!u||this.state!==O.State.IDLE)return;var D=u[s.level];(!D.details||D.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(D.details))&&(this.state=O.State.WAITING_LEVEL)},T.onLevelLoaded=function(g,s){var u,D=this.levels,S=s.level,A=s.details,N=A.totalduration;if(!D){this.warn("Levels were reset while loading level "+S);return}this.log("Level "+S+" loaded ["+A.startSN+","+A.endSN+"], cc ["+A.startCC+", "+A.endCC+"] duration:"+N);var j=this.fragCurrent;j&&(this.state===O.State.FRAG_LOADING||this.state===O.State.FRAG_LOADING_WAITING_RETRY)&&(j.level!==s.level&&j.loader&&(this.state=O.State.IDLE,j.loader.abort()));var K=D[S],H=0;if(A.live||(u=K.details)!==null&&u!==void 0&&u.live){if(A.fragments[0]||(A.deltaUpdateFailed=!0),A.deltaUpdateFailed)return;H=this.alignPlaylists(A,K.details)}if(K.details=A,this.levelLastLoaded=S,this.hls.trigger(W.Events.LEVEL_UPDATED,{details:A,level:S}),this.state===O.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(A))return;this.state=O.State.IDLE}this.startFragRequested?A.live&&this.synchronizeToLiveEdge(A):this.setStartPosition(A,H),this.tick()},T._handleFragmentLoadProgress=function(g){var s,u=g.frag,D=g.part,S=g.payload,A=this.levels;if(!A){this.warn("Levels were reset while fragment load was in progress. Fragment "+u.sn+" of level "+u.level+" will not be buffered");return}var N=A[u.level],j=N.details;if(!j){this.warn("Dropping fragment "+u.sn+" of level "+u.level+" after level details were reset");return}var K=N.videoCodec,H=j.PTSKnown||!j.live,U=(s=u.initSegment)===null||s===void 0?void 0:s.data,B=this._getAudioCodec(N),q=this.transmuxer=this.transmuxer||new p.default(this.hls,R.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ee=D?D.index:-1,he=ee!==-1,ye=new _.ChunkMetadata(u.level,u.sn,u.stats.chunkCount,S.byteLength,ee,he),Ye=this.initPTS[u.cc];q.push(S,U,B,K,u,D,j.totalduration,H,ye,Ye)},T.onAudioTrackSwitching=function(g,s){var u=this.altAudio,D=!!s.url,S=s.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var A=this.fragCurrent;A!=null&&A.loader&&(this.log("Switching to main audio track, cancel main fragment load"),A.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var N=this.hls;u&&N.trigger(W.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),N.trigger(W.Events.AUDIO_TRACK_SWITCHED,{id:S})}},T.onAudioTrackSwitched=function(g,s){var u=s.id,D=!!this.hls.audioTracks[u].url;if(D){var S=this.videoBuffer;S&&this.mediaBuffer!==S&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=S)}this.altAudio=D,this.tick()},T.onBufferCreated=function(g,s){var u=s.tracks,D,S,A=!1;for(var N in u){var j=u[N];if(j.id==="main"){if(S=N,D=j,N==="video"){var K=u[N];K&&(this.videoBuffer=K.buffer)}}else A=!0}A&&D?(this.log("Alternate track found, use "+S+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},T.onFragBuffered=function(g,s){var u=s.frag,D=s.part;if(u&&u.type!==R.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(u)){this.warn("Fragment "+u.sn+(D?" p: "+D.index:"")+" of level "+u.level+" finished buffering, but was aborted. state: "+this.state),this.state===O.State.PARSED&&(this.state=O.State.IDLE);return}var S=D?D.stats:u.stats;this.fragLastKbps=Math.round(8*S.total/(S.buffering.end-S.loading.first)),u.sn!=="initSegment"&&(this.fragPrevious=u),this.fragBufferedComplete(u,D)},T.onError=function(g,s){switch(s.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.MAIN,s);break;case h.ErrorDetails.LEVEL_LOAD_ERROR:case h.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==O.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=O.State.ERROR):!s.levelRetry&&this.state===O.State.WAITING_LEVEL&&(this.state=O.State.IDLE));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===O.State.PARSING||this.state===O.State.PARSED)){var u=!0,D=this.getFwdBufferInfo(this.media,R.PlaylistLevelType.MAIN);D&&D.len>.5&&(u=!this.reduceMaxBufferLength(D.len)),u&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},T.checkBuffer=function(){var g=this.media,s=this.gapController;if(!g||!s||!g.readyState)return;var u=y.BufferHelper.getBuffered(g);!this.loadedmetadata&&u.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=g.currentTime},T.onFragLoadEmergencyAborted=function(){this.state=O.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},T.onBufferFlushed=function(g,s){var u=s.type;if(u!==d.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(u===d.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,u,R.PlaylistLevelType.MAIN)}},T.onLevelsUpdated=function(g,s){this.levels=s.levels},T.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},T.seekToStartPos=function(){var g=this.media,s=g.currentTime,u=this.startPosition;if(u>=0&&s0&&(A1&&g.seeking===!1){var u=g.currentTime;if(y.BufferHelper.isBuffered(g,u)?s=this.getAppendedFrag(u):y.BufferHelper.isBuffered(g,u+.1)&&(s=this.getAppendedFrag(u+.1)),s){var D=this.fragPlaying,S=s.level;(!D||s.sn!==D.sn||D.level!==S||s.urlId!==D.urlId)&&(this.hls.trigger(W.Events.FRAG_CHANGED,{frag:s}),(!D||D.level!==S)&&this.hls.trigger(W.Events.LEVEL_SWITCHED,{level:S}),this.fragPlaying=s)}}},r(P,[{key:"nextLevel",get:function(){var g=this.nextBufferedFrag;return g?g.level:-1}},{key:"currentLevel",get:function(){var g=this.media;if(g){var s=this.getAppendedFrag(g.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var g=this.media;if(g){var s=this.getAppendedFrag(g.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(O.default)},"./src/controller/subtitle-stream-controller.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"SubtitleStreamController",function(){return o});var z=I("./src/events.ts"),O=I("./src/utils/logger.ts"),w=I("./src/utils/buffer-helper.ts"),W=I("./src/controller/fragment-finders.ts"),y=I("./src/utils/discontinuities.ts"),L=I("./src/controller/level-helper.ts"),R=I("./src/controller/fragment-tracker.ts"),d=I("./src/controller/base-stream-controller.ts"),p=I("./src/types/loader.ts"),_=I("./src/types/level.ts");function v(l,x){for(var E=0;E=s[S].start&&D<=s[S].end){u=s[S];break}var A=m.start+m.duration;u?u.end=A:(u={start:D,end:A},s.push(u)),this.fragmentTracker.fragBuffered(m)},E.onBufferFlushing=function(P,T){var m=T.startOffset,g=T.endOffset;if(m===0&&g!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,u=this.levels;if(!u.length||!u[s]||!u[s].details)return;var D=u[s].details,S=D.targetduration,A=g-S;if(A<=0)return;T.endOffsetSubtitles=Math.max(0,A),this.tracksBuffered.forEach(function(N){for(var j=0;j=D.length||s!==u||!S)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,g.live||(m=S.details)!==null&&m!==void 0&&m.live){var A=this.mainDetails;if(g.deltaUpdateFailed||!A)return;var N=A.fragments[0];if(!S.details)g.hasProgramDateTime&&A.hasProgramDateTime?Object(y.alignMediaPlaylistByPDT)(g,A):N&&Object(L.addSliding)(g,N.start);else{var j=this.alignPlaylists(g,S.details);j===0&&N&&Object(L.addSliding)(g,N.start)}}if(S.details=g,this.levelLastLoaded=s,this.tick(),g.live&&!this.fragCurrent&&this.media&&this.state===d.State.IDLE){var K=Object(W.findFragmentByPTS)(null,g.fragments,this.media.currentTime,0);K||(this.warn("Subtitle playlist not aligned with playback"),S.details=void 0)}},E._handleFragmentLoadComplete=function(P){var T=P.frag,m=P.payload,g=T.decryptdata,s=this.hls;if(this.fragContextChanged(T))return;if(m&&m.byteLength>0&&g&&g.key&&g.iv&&g.method==="AES-128"){var u=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(m),g.key.buffer,g.iv.buffer).then(function(D){var S=performance.now();s.trigger(z.Events.FRAG_DECRYPTED,{frag:T,payload:D,stats:{tstart:u,tdecrypt:S}})})}},E.doTick=function(){if(!this.media){this.state=d.State.IDLE;return}if(this.state===d.State.IDLE){var P,T=this.currentTrackId,m=this.levels;if(!m.length||!m[T]||!m[T].details)return;var g=m[T].details,s=g.targetduration,u=this.config,D=this.media,S=w.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-s,u.maxBufferHole),A=S.end,N=S.len,j=this.getMaxBufferLength()+s;if(N>j)return;console.assert(g,"Subtitle track details are defined on idle subtitle stream controller tick");var K=g.fragments,H=K.length,U=g.edge,B,q=this.fragPrevious;if(A-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},c.pollTrackChange=function(r){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,r)},c.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var r=_(this.media.textTracks);r.forEach(function(o){Object(O.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},c.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},c.onManifestParsed=function(r,o){this.tracks=o.subtitleTracks},c.onSubtitleTrackLoaded=function(r,o){var l=o.id,x=o.details,E=this.trackId,b=this.tracksInGroup[E];if(!b){this.warn("Invalid subtitle track id "+l);return}var P=b.details;b.details=o.details,this.log("subtitle track "+l+" loaded ["+x.startSN+"-"+x.endSN+"]"),l===this.trackId&&(this.retryCount=0,this.playlistLoaded(l,o,P))},c.onLevelLoading=function(r,o){this.switchLevel(o.level)},c.onLevelSwitching=function(r,o){this.switchLevel(o.level)},c.switchLevel=function(r){var o=this.hls.levels[r];if(!(o!=null&&o.textGroupIds))return;var l=o.textGroupIds[o.urlId];if(this.groupId!==l){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(T){return!l||T.groupId===l});this.tracksInGroup=E;var b=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=l;var P={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+l+'" group-id'),this.hls.trigger(z.Events.SUBTITLE_TRACKS_UPDATED,P),b!==-1&&this.setSubtitleTrack(b,x)}},c.findTrackId=function(r){for(var o=this.tracksInGroup,l=0;l=x.length)return;this.clearTimer();var E=x[r];if(this.log("Switching to subtitle track "+r),this.trackId=r,E){var b=E.id,P=E.groupId,T=P===void 0?"":P,m=E.name,g=E.type,s=E.url;this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:b,groupId:T,name:m,type:g,url:s});var u=this.switchParams(E.url,o==null?void 0:o.details);this.loadPlaylist(u)}else this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:r})},c.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var r=-1,o=_(this.media.textTracks),l=0;l=0&&(g[0]=Math.min(g[0],x),g[1]=Math.max(g[1],E),T=!0,s/(E-x)>.5))return}if(T||P.push([x,E]),this.config.renderTextTracksNatively){var u=this.captionsTracks[l];this.Cues.newCue(u,x,E,b)}else{var D=this.Cues.newCue(null,x,E,b);this.hls.trigger(O.Events.CUES_PARSED,{type:"captions",cues:D,track:l})}},r.onInitPtsFound=function(l,x){var E=this,b=x.frag,P=x.id,T=x.initPTS,m=x.timescale,g=this.unparsedVttFrags;P==="main"&&(this.initPTS[b.cc]=T,this.timescale[b.cc]=m),g.length&&(this.unparsedVttFrags=[],g.forEach(function(s){E.onFragLoaded(O.Events.FRAG_LOADED,s)}))},r.getExistingTrack=function(l){var x=this.media;if(x)for(var E=0;E>>8^m&255^99,R[b]=m,d[m]=b;var g=E[b],s=E[g],u=E[s],D=E[m]*257^m*16843008;_[b]=D<<24|D>>>8,v[b]=D<<16|D>>>16,h[b]=D<<8|D>>>24,c[b]=D,D=u*16843009^s*65537^g*257^b*16843008,r[m]=D<<24|D>>>8,o[m]=D<<16|D>>>16,l[m]=D<<8|D>>>24,x[m]=D,b?(b=g^E[E[E[u^g]]],P^=E[E[P]]):b=P=1}},y.expandKey=function(R){for(var d=this.uint8ArrayToUint32Array_(R),p=!0,_=0;_>>6)+1;var D=(l[x+2]&60)>>>2;if(D>u.length-1){o.trigger(w.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return T=(l[x+2]&1)<<2,T|=(l[x+3]&192)>>>6,z.logger.log("manifest codec:"+E+", ADTS type:"+b+", samplingIndex:"+D),/firefox/i.test(g)?D>=6?(b=5,m=new Array(4),P=D-3):(b=2,m=new Array(2),P=D):g.indexOf("android")!==-1?(b=2,m=new Array(2),P=D):(b=5,m=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&D>=6?P=D-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(D>=6&&T===1||/vivaldi/i.test(g))||!E&&T===1)&&(b=2,m=new Array(2)),P=D)),m[0]=b<<3,m[0]|=(D&14)>>1,m[1]|=(D&1)<<7,m[1]|=T<<3,b===5&&(m[1]|=(P&14)>>1,m[2]=(P&1)<<7,m[2]|=2<<2,m[3]=0),{config:m,samplerate:u[D],channelCount:T,codec:"mp4a.40."+b,manifestCodec:s}}function y(o,l){return o[l]===255&&(o[l+1]&246)===240}function L(o,l){return o[l+1]&1?7:9}function R(o,l){return(o[l+3]&3)<<11|o[l+4]<<3|(o[l+5]&224)>>>5}function d(o,l){return l+5=o.length)return!1;var E=R(o,l);if(E<=x)return!1;var b=l+E;return b===o.length||p(o,b)}return!1}function h(o,l,x,E,b){if(!o.samplerate){var P=W(l,x,E,b);if(!P)return;o.config=P.config,o.samplerate=P.samplerate,o.channelCount=P.channelCount,o.codec=P.codec,o.manifestCodec=P.manifestCodec,z.logger.log("parsed codec:"+o.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function c(o){return 1024*9e4/o}function n(o,l,x,E,b){var P=L(o,l),T=R(o,l);if(T-=P,T>0){var m=x+E*b;return{headerLength:P,frameLength:T,stamp:m}}}function r(o,l,x,E,b){var P=c(o.samplerate),T=n(l,x,E,b,P);if(T){var m=T.frameLength,g=T.headerLength,s=T.stamp,u=g+m,D=Math.max(0,x+u-l.length),S;D?(S=new Uint8Array(u-g),S.set(l.subarray(x+g,l.length),0)):S=l.subarray(x+g,x+u);var A={unit:S,pts:s};return D||o.samples.push(A),{sample:A,length:u,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"initPTSFn",function(){return R});var z=I("./src/polyfills/number.ts"),O=I("./src/demux/id3.ts"),w=I("./src/demux/dummy-demuxed-track.ts"),W=I("./src/utils/mp4-tools.ts"),y=I("./src/utils/typed-array.ts"),L=function(){function d(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var p=d.prototype;return p.resetInitSegment=function(v,h,c){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},p.resetTimeStamp=function(){},p.resetContiguity=function(){},p.canParse=function(v,h){return!1},p.appendFrame=function(v,h,c){},p.demux=function(v,h){this.cachedData&&(v=Object(W.appendUint8Array)(this.cachedData,v),this.cachedData=null);var c=O.getID3Data(v,0),n=c?c.length:0,r,o,l=this._audioTrack,x=this._id3Track,E=c?O.getTimeStamp(c):void 0,b=v.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=R(E,h)),c&&c.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:c}),o=this.initPTS;nL?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,R=L>>3,L-=R>>3,this.bytesAvailable-=R,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)},W.readBits=function(L){var R=Math.min(this.bitsAvailable,L),d=this.word>>>32-R;return L>32&&z.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=R,this.bitsAvailable>0?this.word<<=R:this.bytesAvailable>0&&this.loadWord(),R=L-R,R>0&&this.bitsAvailable?d<>>L)!==0)return this.word<<=L,this.bitsAvailable-=L,L;return this.loadWord(),L+this.skipLZ()},W.skipUEG=function(){this.skipBits(1+this.skipLZ())},W.skipEG=function(){this.skipBits(1+this.skipLZ())},W.readUEG=function(){var L=this.skipLZ();return this.readBits(L+1)-1},W.readEG=function(){var L=this.readUEG();return 1&L?1+L>>>1:-1*(L>>>1)},W.readBoolean=function(){return this.readBits(1)===1},W.readUByte=function(){return this.readBits(8)},W.readUShort=function(){return this.readBits(16)},W.readUInt=function(){return this.readBits(32)},W.skipScalingList=function(L){for(var R=8,d=8,p,_=0;_0?b.subarray(T,T+m):void 0},W=function(b,P){var T=0;return T=(b[P]&127)<<21,T|=(b[P+1]&127)<<14,T|=(b[P+2]&127)<<7,T|=b[P+3]&127,T},y=function(b,P){return z(b,P)&&W(b,P+6)+10<=b.length-P},L=function(b){for(var P=p(b),T=0;T>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:A+=String.fromCharCode(u);break;case 12:case 13:D=b[N++],A+=String.fromCharCode((u&31)<<6|D&63);break;case 14:D=b[N++],S=b[N++],A+=String.fromCharCode((u&15)<<12|(D&63)<<6|(S&63)<<0);break;default:}}return A},o={decodeTextFrame:h},l;function x(){return!l&&typeof self.TextDecoder!="undefined"&&(l=new self.TextDecoder("utf-8")),l}},"./src/demux/mp3demuxer.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/demux/base-audio-demuxer.ts"),O=I("./src/demux/id3.ts"),w=I("./src/utils/logger.ts"),W=I("./src/demux/mpegaudio.ts");function y(d,p){d.prototype=Object.create(p.prototype),d.prototype.constructor=d,L(d,p)}function L(d,p){return L=Object.setPrototypeOf||function(v,h){return v.__proto__=h,v},L(d,p)}var R=function(d){y(p,d);function p(){return d.apply(this,arguments)||this}var _=p.prototype;return _.resetInitSegment=function(h,c,n){d.prototype.resetInitSegment.call(this,h,c,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:h,duration:n,inputTimeScale:9e4,dropped:0}},p.probe=function(h){if(!h)return!1;for(var c=O.getID3Data(h,0)||[],n=c.length,r=h.length;n0},y.demux=function(R){var d=R,p=Object(O.dummyTrack)();if(this.config.progressive){this.remainderData&&(d=Object(z.appendUint8Array)(this.remainderData,R));var _=Object(z.segmentValidRange)(d);this.remainderData=_.remainder,p.samples=_.valid||new Uint8Array}else p.samples=d;return{audioTrack:Object(O.dummyTrack)(),avcTrack:p,id3Track:Object(O.dummyTrack)(),textTrack:Object(O.dummyTrack)()}},y.flush=function(){var R=Object(O.dummyTrack)();return R.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(O.dummyTrack)(),avcTrack:R,id3Track:Object(O.dummyTrack)(),textTrack:Object(O.dummyTrack)()}},y.demuxSampleAes=function(R,d,p){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},y.destroy=function(){},W}();w.minProbeByteLength=1024,G.default=w},"./src/demux/mpegaudio.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"appendFrame",function(){return L}),I.d(G,"parseHeader",function(){return R}),I.d(G,"isHeaderPattern",function(){return d}),I.d(G,"isHeader",function(){return p}),I.d(G,"canParse",function(){return _}),I.d(G,"probe",function(){return v});var z=null,O=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],w=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],W=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],y=[0,1,1,4];function L(h,c,n,r,o){if(n+24>c.length)return;var l=R(c,n);if(l&&n+l.frameLength<=c.length){var x=l.samplesPerFrame*9e4/l.sampleRate,E=r+o*x,b={unit:c.subarray(n,n+l.frameLength),pts:E,dts:E};return h.config=[],h.channelCount=l.channelCount,h.samplerate=l.sampleRate,h.samples.push(b),{sample:b,length:l.frameLength,missing:0}}}function R(h,c){var n=h[c+1]>>3&3,r=h[c+1]>>1&3,o=h[c+2]>>4&15,l=h[c+2]>>2&3;if(n!==1&&o!==0&&o!==15&&l!==3){var x=h[c+2]>>1&1,E=h[c+3]>>6,b=n===3?3-r:r===3?3:4,P=O[b*14+o-1]*1e3,T=n===3?0:n===2?1:2,m=w[T*3+l],g=E===3?1:2,s=W[n][r],u=y[r],D=s*8*u,S=Math.floor(s*P/m+x)*u;if(z===null){var A=navigator.userAgent||"",N=A.match(/Chrome\/(\d+)/i);z=N?parseInt(N[1]):0}var j=!!z&&z<=87;return j&&r===2&&P>=224e3&&E===0&&(h[c+3]=h[c+3]|128),{sampleRate:m,channelCount:g,frameLength:S,samplesPerFrame:D}}}function d(h,c){return h[c]===255&&(h[c+1]&224)===224&&(h[c+1]&6)!==0}function p(h,c){return c+1=R.length){p();return}if(R[d].unit.length<32)continue;var _=this.decrypter.isSync();if(this.decryptAacSample(R,d,p,_),!_)return}},y.getAvcEncryptedData=function(R){for(var d=Math.floor((R.length-48)/160)*16+16,p=new Int8Array(d),_=0,v=32;v<=R.length-16;v+=160,_+=16)p.set(R.subarray(v,v+16),_);return p},y.getAvcDecryptedUnit=function(R,d){for(var p=new Uint8Array(d),_=0,v=32;v<=R.length-16;v+=160,_+=16)R.set(p.subarray(_,_+16),v);return R},y.decryptAvcSample=function(R,d,p,_,v,h){var c=Object(O.discardEPB)(v.data),n=this.getAvcEncryptedData(c),r=this;this.decryptBuffer(n.buffer,function(o){v.data=r.getAvcDecryptedUnit(c,o),h||r.decryptAvcSamples(R,d,p+1,_)})},y.decryptAvcSamples=function(R,d,p,_){if(R instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;d++,p=0){if(d>=R.length){_();return}for(var v=R[d].units;!(p>=v.length);p++){var h=v[p];if(h.data.length<=48||h.type!==1&&h.type!==5)continue;var c=this.decrypter.isSync();if(this.decryptAvcSample(R,d,p,_,h,c),!c)return}}},W}();G.default=w},"./src/demux/transmuxer-interface.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v});var z=I("./node_modules/webworkify-webpack/index.js"),O=I.n(z),w=I("./src/events.ts"),W=I("./src/demux/transmuxer.ts"),y=I("./src/utils/logger.ts"),L=I("./src/errors.ts"),R=I("./src/utils/mediasource-helper.ts"),d=I("./node_modules/eventemitter3/index.js"),p=I.n(d),_=Object(R.getMediaSource)()||{isTypeSupported:function(){return!1}},v=function(){function h(n,r,o,l){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=n,this.id=r,this.onTransmuxComplete=o,this.onFlush=l;var E=n.config,b=function(s,u){u=u||{},u.frag=x.frag,u.id=x.id,n.trigger(s,u)};this.observer=new d.EventEmitter,this.observer.on(w.Events.FRAG_DECRYPTED,b),this.observer.on(w.Events.ERROR,b);var P={mp4:_.isTypeSupported("video/mp4"),mpeg:_.isTypeSupported("audio/mpeg"),mp3:_.isTypeSupported('audio/mp4; codecs="mp3"')},T=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){y.logger.log("demuxing in webworker");var m;try{m=this.worker=z("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),m.addEventListener("message",this.onwmsg),m.onerror=function(g){n.trigger(w.Events.ERROR,{type:L.ErrorTypes.OTHER_ERROR,details:L.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(g.message+" ("+g.filename+":"+g.lineno+")")})},m.postMessage({cmd:"init",typeSupported:P,vendor:T,id:r,config:JSON.stringify(E)})}catch(g){y.logger.warn("Error in worker:",g),y.logger.error("Error while initializing DemuxerWorker, fallback to inline"),m&&self.URL.revokeObjectURL(m.objectURL),this.transmuxer=new W.default(this.observer,P,E,T,r),this.worker=null}}else this.transmuxer=new W.default(this.observer,P,E,T,r)}var c=h.prototype;return c.destroy=function(){var r=this.worker;if(r)r.removeEventListener("message",this.onwmsg),r.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var l=this.observer;l&&l.removeAllListeners(),this.observer=null},c.push=function(r,o,l,x,E,b,P,T,m,g){var s=this;m.transmuxing.start=self.performance.now();var u=this.transmuxer,D=this.worker,S=b?b.start:E.start,A=E.decryptdata,N=this.frag,j=!(N&&E.cc===N.cc),K=!(N&&m.level===N.level),H=N?m.sn-N.sn:-1,U=this.part?m.part-this.part.index:1,B=!K&&(H===1||H===0&&U===1),q=self.performance.now();(K||H||E.stats.parsing.start===0)&&(E.stats.parsing.start=q),b&&(U||!B)&&(b.stats.parsing.start=q);var ee=new W.TransmuxState(j,B,T,K,S);if(!B||j){y.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+m.sn+" p: "+m.part+" level: "+m.level+" id: "+m.id+` discontinuity: `+j+` trackSwitch: `+K+` contiguous: `+B+` accurateTimeOffset: `+T+` - timeOffset: `+S);var he=new W.TransmuxConfig(l,x,o,P,g);this.configureTransmuxer(he)}if(this.frag=E,this.part=b,D)D.postMessage({cmd:"demux",data:r,decryptdata:A,chunkMeta:m,state:ee},r instanceof ArrayBuffer?[r]:[]);else if(u){var be=u.push(r,A,m,ee);Object(W.isPromise)(be)?be.then(function(Ye){s.handleTransmuxComplete(Ye)}):this.handleTransmuxComplete(be)}},c.flush=function(r){var o=this;r.transmuxing.start=self.performance.now();var l=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:r});else if(l){var E=l.flush(r);Object(W.isPromise)(E)?E.then(function(b){o.handleFlushResult(b,r)}):this.handleFlushResult(E,r)}},c.handleFlushResult=function(r,o){var l=this;r.forEach(function(x){l.handleTransmuxComplete(x)}),this.onFlush(o)},c.onWorkerMessage=function(r){var o=r.data,l=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,l.trigger(o.event,o.data);break}}},c.configureTransmuxer=function(r){var o=this.worker,l=this.transmuxer;o?o.postMessage({cmd:"configure",config:r}):l&&l.configure(r)},c.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},h}()},"./src/demux/transmuxer-worker.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return L});var z=I("./src/demux/transmuxer.ts"),O=I("./src/events.ts"),w=I("./src/utils/logger.ts"),W=I("./node_modules/eventemitter3/index.js"),y=I.n(W);function L(v){var h=new W.EventEmitter,c=function(r,o){v.postMessage({event:r,data:o})};h.on(O.Events.FRAG_DECRYPTED,c),h.on(O.Events.ERROR,c),v.addEventListener("message",function(n){var r=n.data;switch(r.cmd){case"init":{var o=JSON.parse(r.config);v.transmuxer=new z.default(h,r.typeSupported,o,r.vendor,r.id),Object(w.enableLogs)(o.debug),c("init",null);break}case"configure":{v.transmuxer.configure(r.config);break}case"demux":{var l=v.transmuxer.push(r.data,r.decryptdata,r.chunkMeta,r.state);Object(z.isPromise)(l)?l.then(function(b){R(v,b)}):R(v,l);break}case"flush":{var x=r.chunkMeta,E=v.transmuxer.flush(x);Object(z.isPromise)(E)?E.then(function(b){p(v,b,x)}):p(v,E,x);break}default:break}})}function R(v,h){if(_(h.remuxResult))return;var c=[],n=h.remuxResult,r=n.audio,o=n.video;r&&d(c,r),o&&d(c,o),v.postMessage({event:"transmuxComplete",data:h},c)}function d(v,h){h.data1&&v.push(h.data1.buffer),h.data2&&v.push(h.data2.buffer)}function p(v,h,c){h.forEach(function(n){R(v,n)}),v.postMessage({event:"flush",data:c})}function _(v){return!v.audio&&!v.video&&!v.text&&!v.id3&&!v.initSegment}},"./src/demux/transmuxer.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return o}),I.d(G,"isPromise",function(){return E}),I.d(G,"TransmuxConfig",function(){return b}),I.d(G,"TransmuxState",function(){return P});var z=I("./src/events.ts"),O=I("./src/errors.ts"),w=I("./src/crypt/decrypter.ts"),W=I("./src/demux/aacdemuxer.ts"),y=I("./src/demux/mp4demuxer.ts"),L=I("./src/demux/tsdemuxer.ts"),R=I("./src/demux/mp3demuxer.ts"),d=I("./src/remux/mp4-remuxer.ts"),p=I("./src/remux/passthrough-remuxer.ts"),_=I("./src/demux/chunk-cache.ts"),v=I("./src/utils/mp4-tools.ts"),h=I("./src/utils/logger.ts"),c;try{c=self.performance.now.bind(self.performance)}catch(T){h.logger.debug("Unable to use Performance API on this environment"),c=self.Date.now}var n=[{demux:L.default,remux:d.default},{demux:y.default,remux:p.default},{demux:W.default,remux:d.default},{demux:R.default,remux:d.default}],r=1024;n.forEach(function(T){var m=T.demux;r=Math.max(r,m.minProbeByteLength)});var o=function(){function T(g,s,u,D,S){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new _.default,this.observer=g,this.typeSupported=s,this.config=u,this.vendor=D,this.id=S}var m=T.prototype;return m.configure=function(s){this.transmuxConfig=s,this.decrypter&&this.decrypter.reset()},m.push=function(s,u,D,S){var A=this,N=D.transmuxing;N.executeStart=c();var j=new Uint8Array(s),K=this.cache,H=this.config,U=this.currentTransmuxState,B=this.transmuxConfig;S&&(this.currentTransmuxState=S);var q=l(j,u);if(q&&q.method==="AES-128"){var ee=this.getDecrypter();if(H.enableSoftwareAES){var he=ee.softwareDecrypt(j,q.key.buffer,q.iv.buffer);if(!he)return N.executeEnd=c(),x(D);j=new Uint8Array(he)}else return this.decryptionPromise=ee.webCryptoDecrypt(j,q.key.buffer,q.iv.buffer).then(function(V){var X=A.push(V,null,D);return A.decryptionPromise=null,X}),this.decryptionPromise}var be=S||U,Ye=be.contiguous,Pe=be.discontinuity,je=be.trackSwitch,Qe=be.accurateTimeOffset,Ze=be.timeOffset,Ae=B.audioCodec,me=B.videoCodec,ie=B.defaultInitPts,Oe=B.duration,ve=B.initSegmentData;if((Pe||je)&&this.resetInitSegment(ve,Ae,me,Oe),Pe&&this.resetInitialTimestamp(ie),Ye||this.resetContiguity(),this.needsProbing(j,Pe,je)){if(K.dataLength){var Ge=K.flush();j=Object(v.appendUint8Array)(Ge,j)}this.configureTransmuxer(j,B)}var pe=this.transmux(j,q,Ze,Qe,D),J=this.currentTransmuxState;return J.contiguous=!0,J.discontinuity=!1,J.trackSwitch=!1,N.executeEnd=c(),pe},m.flush=function(s){var u=this,D=s.transmuxing;D.executeStart=c();var S=this.decrypter,A=this.cache,N=this.currentTransmuxState,j=this.decryptionPromise;if(j)return j.then(function(){return u.flush(s)});var K=[],H=N.timeOffset;if(S){var U=S.flush();U&&K.push(this.push(U,null,s))}var B=A.dataLength;A.reset();var q=this.demuxer,ee=this.remuxer;if(!q||!ee)return B>=r&&this.observer.emit(z.Events.ERROR,z.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=c(),[x(s)];var he=q.flush(H);return E(he)?he.then(function(be){return u.flushRemux(K,be,s),K}):(this.flushRemux(K,he,s),K)},m.flushRemux=function(s,u,D){var S=u.audioTrack,A=u.avcTrack,N=u.id3Track,j=u.textTrack,K=this.currentTransmuxState,H=K.accurateTimeOffset,U=K.timeOffset;h.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var B=this.remuxer.remux(S,A,N,j,U,H,!0,this.id);s.push({remuxResult:B,chunkMeta:D}),D.transmuxing.executeEnd=c()},m.resetInitialTimestamp=function(s){var u=this.demuxer,D=this.remuxer;if(!u||!D)return;u.resetTimeStamp(s),D.resetTimeStamp(s)},m.resetContiguity=function(){var s=this.demuxer,u=this.remuxer;if(!s||!u)return;s.resetContiguity(),u.resetNextTimestamp()},m.resetInitSegment=function(s,u,D,S){var A=this.demuxer,N=this.remuxer;if(!A||!N)return;A.resetInitSegment(u,D,S),N.resetInitSegment(s,u,D)},m.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},m.transmux=function(s,u,D,S,A){var N;return u&&u.method==="SAMPLE-AES"?N=this.transmuxSampleAes(s,u,D,S,A):N=this.transmuxUnencrypted(s,D,S,A),N},m.transmuxUnencrypted=function(s,u,D,S){var A=this.demuxer.demux(s,u,!1,!this.config.progressive),N=A.audioTrack,j=A.avcTrack,K=A.id3Track,H=A.textTrack,U=this.remuxer.remux(N,j,K,H,u,D,!1,this.id);return{remuxResult:U,chunkMeta:S}},m.transmuxSampleAes=function(s,u,D,S,A){var N=this;return this.demuxer.demuxSampleAes(s,u,D).then(function(j){var K=N.remuxer.remux(j.audioTrack,j.avcTrack,j.id3Track,j.textTrack,D,S,!1,N.id);return{remuxResult:K,chunkMeta:A}})},m.configureTransmuxer=function(s,u){for(var D=this.config,S=this.observer,A=this.typeSupported,N=this.vendor,j=u.audioCodec,K=u.defaultInitPts,H=u.duration,U=u.initSegmentData,B=u.videoCodec,q,ee=0,he=n.length;ee0&&m!=null&&m.key!=null&&m.iv!==null&&m.method!=null&&(g=m),g}var x=function(m){return{remuxResult:{},chunkMeta:m}};function E(T){return"then"in T&&T.then instanceof Function}var b=function(m,g,s,u,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=m,this.videoCodec=g,this.initSegmentData=s,this.duration=u,this.defaultInitPts=D},P=function(m,g,s,u,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=m,this.contiguous=g,this.accurateTimeOffset=s,this.trackSwitch=u,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"discardEPB",function(){return x});var z=I("./src/demux/adts.ts"),O=I("./src/demux/mpegaudio.ts"),w=I("./src/demux/exp-golomb.ts"),W=I("./src/demux/id3.ts"),y=I("./src/demux/sample-aes.ts"),L=I("./src/events.ts"),R=I("./src/utils/mp4-tools.ts"),d=I("./src/utils/logger.ts"),p=I("./src/errors.ts"),_={video:1,audio:2,id3:3,text:4},v=function(){function E(P,T,m){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=P,this.config=T,this.typeSupported=m}E.probe=function(T){var m=E.syncOffset(T);return m<0?!1:(m&&d.logger.warn("MPEG2-TS detected but first sync word found @ offset "+m+", junk ahead ?"),!0)},E.syncOffset=function(T){for(var m=Math.min(1e3,T.length-3*188),g=0;g>4,Ae=void 0;if(Ze>1){if(Ae=Pe+5+T[Pe+4],Ae===Pe+188)continue}else Ae=Pe+4;switch(Qe){case N:je&&(j&&(u=r(j))&&this.parseAVCPES(u,!1),j={data:[],size:0}),j&&(j.data.push(T.subarray(Ae,Pe+188)),j.size+=Pe+188-Ae);break;case K:je&&(U&&(u=r(U))&&(S.isAAC?this.parseAACPES(u):this.parseMPEGPES(u)),U={data:[],size:0}),U&&(U.data.push(T.subarray(Ae,Pe+188)),U.size+=Pe+188-Ae);break;case H:je&&(B&&(u=r(B))&&this.parseID3PES(u),B={data:[],size:0}),B&&(B.data.push(T.subarray(Ae,Pe+188)),B.size+=Pe+188-Ae);break;case 0:je&&(Ae+=T[Ae]+1),he=this._pmtId=c(T,Ae);break;case he:{je&&(Ae+=T[Ae]+1);var me=n(T,Ae,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,g);N=me.avc,N>0&&(D.pid=N),K=me.audio,K>0&&(S.pid=K,S.isAAC=me.isAAC),H=me.id3,H>0&&(A.pid=H),q&&!ee&&(d.logger.log("reparse from beginning"),q=!1,Pe=Ye-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:q=!0;break}}else this.observer.emit(L.Events.ERROR,L.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=j,S.pesData=U,A.pesData=B;var ie={audioTrack:S,avcTrack:D,id3Track:A,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(ie),ie},b.flush=function(){var T=this.remainderData;this.remainderData=null;var m;return T?m=this.demux(T,-1,!1,!0):m={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(m),this.sampleAes?this.decrypt(m,this.sampleAes):m},b.extractRemainingSamples=function(T){var m=T.audioTrack,g=T.avcTrack,s=T.id3Track,u=g.pesData,D=m.pesData,S=s.pesData,A;u&&(A=r(u))?(this.parseAVCPES(A,!0),g.pesData=null):g.pesData=u,D&&(A=r(D))?(m.isAAC?this.parseAACPES(A):this.parseMPEGPES(A),m.pesData=null):(D!=null&&D.size&&d.logger.log("last AAC PES packet truncated,might overlap between fragments"),m.pesData=D),S&&(A=r(S))?(this.parseID3PES(A),s.pesData=null):s.pesData=S},b.demuxSampleAes=function(T,m,g){var s=this.demux(T,g,!0,!this.config.progressive),u=this.sampleAes=new y.default(this.observer,this.config,m);return this.decrypt(s,u)},b.decrypt=function(T,m){return new Promise(function(g){var s=T.audioTrack,u=T.avcTrack;s.samples&&s.isAAC?m.decryptAacSamples(s.samples,0,function(){u.samples?m.decryptAvcSamples(u.samples,0,0,function(){g(T)}):g(T)}):u.samples&&m.decryptAvcSamples(u.samples,0,0,function(){g(T)})})},b.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},b.parseAVCPES=function(T,m){var g=this,s=this._avcTrack,u=this.parseAVCNALu(T.data),D=!1,S=this.avcSample,A,N=!1;T.data=null,S&&u.length&&!s.audFound&&(o(S,s),S=this.avcSample=h(!1,T.pts,T.dts,"")),u.forEach(function(j){switch(j.type){case 1:{A=!0,S||(S=g.avcSample=h(!0,T.pts,T.dts,"")),D&&(S.debug+="NDR "),S.frame=!0;var K=j.data;if(N&&K.length>4){var H=new w.default(K).readSliceType();(H===2||H===4||H===7||H===9)&&(S.key=!0)}break}case 5:A=!0,S||(S=g.avcSample=h(!0,T.pts,T.dts,"")),D&&(S.debug+="IDR "),S.key=!0,S.frame=!0;break;case 6:{A=!0,D&&S&&(S.debug+="SEI ");var U=new w.default(x(j.data));U.readUByte();for(var B=0,q=0,ee=!1,he=0;!ee&&U.bytesAvailable>1;){B=0;do he=U.readUByte(),B+=he;while(he===255);q=0;do he=U.readUByte(),q+=he;while(he===255);if(B===4&&U.bytesAvailable!==0){ee=!0;var be=U.readUByte();if(be===181){var Ye=U.readUShort();if(Ye===49){var Pe=U.readUInt();if(Pe===1195456820){var je=U.readUByte();if(je===3){for(var Qe=U.readUByte(),Ze=U.readUByte(),Ae=31&Qe,me=[Qe,Ze],ie=0;ie16){for(var Oe=[],ve=0;ve<16;ve++)Oe.push(U.readUByte().toString(16)),(ve===3||ve===5||ve===7||ve===9)&&Oe.push("-");for(var Ge=q-16,pe=new Uint8Array(Ge),J=0;J=0){var U={data:T.subarray(K,S-s-1),type:H};D.push(U)}else{var B=this.getLastNalUnit();if(B&&(u&&S<=4-u&&(B.state&&(B.data=B.data.subarray(0,B.data.byteLength-u))),N=S-s-1,N>0)){var q=new Uint8Array(B.data.byteLength+N);q.set(B.data,0),q.set(T.subarray(0,N),B.data.byteLength),B.data=q,B.state=0}}S=0&&s>=0){var ee={data:T.subarray(K,m),type:H,state:s};D.push(ee)}if(D.length===0){var he=this.getLastNalUnit();if(he){var be=new Uint8Array(he.data.byteLength+T.byteLength);be.set(he.data,0),be.set(T,he.data.byteLength),he.data=be}}return g.naluState=s,D},b.parseAACPES=function(T){var m=0,g=this._audioTrack,s=this.aacOverFlow,u=T.data;if(s){this.aacOverFlow=null;var D=s.sample.unit.byteLength,S=Math.min(s.missing,D),A=D-S;s.sample.unit.set(u.subarray(0,S),A),g.samples.push(s.sample),m=s.missing}var N,j;for(N=m,j=u.length;N1;){var D=new Uint8Array(u[0].length+u[1].length);D.set(u[0]),D.set(u[1],u[0].length),u[0]=D,u.splice(1,1)}P=u[0];var S=(P[0]<<16)+(P[1]<<8)+P[2];if(S===1){if(T=(P[4]<<8)+P[5],T&&T>E.size-6)return null;var A=P[7];A&192&&(g=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,A&64?(s=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,g-s>60*9e4&&(d.logger.warn(Math.round((g-s)/9e4)+"s delta between PTS and DTS, align them"),g=s)):s=g),m=P[8];var N=m+9;if(E.size<=N)return null;E.size-=N;for(var j=new Uint8Array(E.size),K=0,H=u.length;KU){N-=U;continue}else P=P.subarray(N),U-=N,N=0;j.set(P,b),b+=U}return T&&(T-=m+3),{data:j,pts:g,dts:s,len:T}}return null}function o(E,b){if(E.units.length&&E.frame){if(E.pts===void 0){var P=b.samples,T=P.length;if(T){var m=P[T-1];E.pts=m.pts,E.dts=m.dts}else{b.dropped++;return}}b.samples.push(E)}E.debug.length&&d.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function l(E,b){var P=E.length;if(P>0){if(b.pts>=E[P-1].pts)E.push(b);else for(var T=P-1;T>=0;T--)if(b.ptsg)return u;return 0}},{key:"maxAutoLevel",get:function(){var m=this.levels,g=this.autoLevelCapping,s;return g===-1&&m&&m.length?s=m.length-1:s=g,s}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(m){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,m)}},{key:"audioTracks",get:function(){var m=this.audioTrackController;return m?m.audioTracks:[]}},{key:"audioTrack",get:function(){var m=this.audioTrackController;return m?m.audioTrack:-1},set:function(m){var g=this.audioTrackController;g&&(g.audioTrack=m)}},{key:"subtitleTracks",get:function(){var m=this.subtitleTrackController;return m?m.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var m=this.subtitleTrackController;return m?m.subtitleTrack:-1},set:function(m){var g=this.subtitleTrackController;g&&(g.subtitleTrack=m)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var m=this.subtitleTrackController;return m?m.subtitleDisplay:!1},set:function(m){var g=this.subtitleTrackController;g&&(g.subtitleDisplay=m)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(m){this.config.lowLatencyMode=m}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return b.defaultConfig?b.defaultConfig:h.hlsDefaultConfig},set:function(m){b.defaultConfig=m}}]),b}();E.defaultConfig=void 0},"./src/is-supported.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"isSupported",function(){return w}),I.d(G,"changeTypeSupported",function(){return W});var z=I("./src/utils/mediasource-helper.ts");function O(){return self.SourceBuffer||self.WebKitSourceBuffer}function w(){var y=Object(z.getMediaSource)();if(!y)return!1;var L=O(),R=y&&typeof y.isTypeSupported=="function"&&y.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),d=!L||L.prototype&&typeof L.prototype.appendBuffer=="function"&&typeof L.prototype.remove=="function";return!!R&&!!d}function W(){var y,L=O();return typeof(L==null||((y=L.prototype)===null||y===void 0)?void 0:y.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v}),I.d(G,"LoadError",function(){return c});var z=I("./src/polyfills/number.ts"),O=I("./src/errors.ts");function w(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r)}function W(n){var r=typeof Map=="function"?new Map:void 0;return W=function(l){if(l===null||!R(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(l))return r.get(l);r.set(l,x)}function x(){return y(l,arguments,p(this).constructor)}return x.prototype=Object.create(l.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),d(x,l)},W(n)}function y(n,r,o){return L()?y=Reflect.construct:y=function(x,E,b){var P=[null];P.push.apply(P,E);var T=Function.bind.apply(x,P),m=new T;return b&&d(m,b.prototype),m},y.apply(null,arguments)}function L(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}function R(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function d(n,r){return d=Object.setPrototypeOf||function(l,x){return l.__proto__=x,l},d(n,r)}function p(n){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},p(n)}var _=Math.pow(2,17),v=function(){function n(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var r=n.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(l,x){var E=this,b=l.url;if(!b)return Promise.reject(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,networkDetails:null},"Fragment does not have a "+(b?"part list":"url")));this.abort();var P=this.config,T=P.fLoader,m=P.loader;return new Promise(function(g,s){E.loader&&E.loader.destroy();var u=E.loader=l.loader=T?new T(P):new m(P),D=h(l),S={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:_};l.stats=u.stats,u.load(D,S,{onSuccess:function(N,j,K,H){E.resetLoader(l,u),g({frag:l,part:null,payload:N.data,networkDetails:H})},onError:function(N,j,K){E.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,response:N,networkDetails:K}))},onAbort:function(N,j,K){E.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,networkDetails:K}))},onTimeout:function(N,j,K){E.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,networkDetails:K}))},onProgress:function(N,j,K,H){x&&x({frag:l,part:null,payload:K,networkDetails:H})}})})},r.loadPart=function(l,x,E){var b=this;this.abort();var P=this.config,T=P.fLoader,m=P.loader;return new Promise(function(g,s){b.loader&&b.loader.destroy();var u=b.loader=l.loader=T?new T(P):new m(P),D=h(l,x),S={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:_};x.stats=u.stats,u.load(D,S,{onSuccess:function(N,j,K,H){b.resetLoader(l,u),b.updateStatsFromPart(l,x);var U={frag:l,part:x,payload:N.data,networkDetails:H};E(U),g(U)},onError:function(N,j,K){b.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,part:x,response:N,networkDetails:K}))},onAbort:function(N,j,K){l.stats.aborted=x.stats.aborted,b.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,part:x,networkDetails:K}))},onTimeout:function(N,j,K){b.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,part:x,networkDetails:K}))}})})},r.updateStatsFromPart=function(l,x){var E=l.stats,b=x.stats,P=b.total;if(E.loaded+=b.loaded,P){var T=Math.round(l.duration/x.duration),m=Math.min(Math.round(E.loaded/P),T),g=T-m,s=g*Math.round(E.loaded/m);E.total=E.loaded+s}else E.total=Math.max(E.loaded,E.total);var u=E.loading,D=b.loading;u.start?u.first+=D.first-D.start:(u.start=D.start,u.first=D.first),u.end=D.end},r.resetLoader=function(l,x){l.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},n}();function h(n,r){r===void 0&&(r=null);var o=r||n,l={frag:n,part:r,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},x=o.byteRangeStartOffset,E=o.byteRangeEndOffset;return Object(z.isFiniteNumber)(x)&&Object(z.isFiniteNumber)(E)&&(l.rangeStart=x,l.rangeEnd=E),l}var c=function(n){w(r,n);function r(o){for(var l,x=arguments.length,E=new Array(x>1?x-1:0),b=1;b>8*(15-P)&255;return b},l.setDecryptDataFromLevelKey=function(E,b){var P=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(P=y.LevelKey.fromURI(E.uri),P.method=E.method,P.iv=this.createInitializationVector(b),P.keyFormat="identity"),P},l.setElementaryStreamInfo=function(E,b,P,T,m,g){g===void 0&&(g=!1);var s=this.elementaryStreams,u=s[E];if(!u){s[E]={startPTS:b,endPTS:P,startDTS:T,endDTS:m,partial:g};return}u.startPTS=Math.min(u.startPTS,b),u.endPTS=Math.max(u.endPTS,P),u.startDTS=Math.min(u.startDTS,T),u.endDTS=Math.max(u.endDTS,m)},l.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[v.AUDIO]=null,E[v.VIDEO]=null,E[v.AUDIOVIDEO]=null},_(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&W.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(z.isFiniteNumber)(this.programDateTime))return null;var E=Object(z.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),o}(h),n=function(r){R(o,r);function o(l,x,E,b,P){var T;T=r.call(this,E)||this,T.fragOffset=0,T.duration=0,T.gap=!1,T.independent=!1,T.relurl=void 0,T.fragment=void 0,T.index=void 0,T.stats=new L.LoadStats,T.duration=l.decimalFloatingPoint("DURATION"),T.gap=l.bool("GAP"),T.independent=l.bool("INDEPENDENT"),T.relurl=l.enumeratedString("URI"),T.fragment=x,T.index=b;var m=l.enumeratedString("BYTERANGE");return m&&T.setByteRange(m,P),P&&(T.fragOffset=P.fragOffset+P.duration),T}return _(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),o}(h)},"./src/loader/key-loader.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return W});var z=I("./src/events.ts"),O=I("./src/errors.ts"),w=I("./src/utils/logger.ts"),W=function(){function y(R){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=R,this._registerListeners()}var L=y.prototype;return L._registerListeners=function(){this.hls.on(z.Events.KEY_LOADING,this.onKeyLoading,this)},L._unregisterListeners=function(){this.hls.off(z.Events.KEY_LOADING,this.onKeyLoading)},L.destroy=function(){this._unregisterListeners();for(var d in this.loaders){var p=this.loaders[d];p&&p.destroy()}this.loaders={}},L.onKeyLoading=function(d,p){var _=p.frag,v=_.type,h=this.loaders[v];if(!_.decryptdata){w.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var c=_.decryptdata.uri;if(c!==this.decrypturl||this.decryptkey===null){var n=this.hls.config;if(h&&(w.logger.warn("abort previous key loader for type:"+v),h.abort()),!c){w.logger.warn("key uri is falsy");return}var r=n.loader,o=_.loader=this.loaders[v]=new r(n);this.decrypturl=c,this.decryptkey=null;var l={url:c,frag:_,responseType:"arraybuffer"},x={timeout:n.fragLoadingTimeOut,maxRetry:0,retryDelay:n.fragLoadingRetryDelay,maxRetryDelay:n.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(l,x,E)}else this.decryptkey&&(_.decryptdata.key=this.decryptkey,this.hls.trigger(z.Events.KEY_LOADED,{frag:_}))},L.loadsuccess=function(d,p,_){var v=_.frag;if(!v.decryptdata){w.logger.error("after key load, decryptdata unset");return}this.decryptkey=v.decryptdata.key=new Uint8Array(d.data),v.loader=null,delete this.loaders[v.type],this.hls.trigger(z.Events.KEY_LOADED,{frag:v})},L.loaderror=function(d,p){var _=p.frag,v=_.loader;v&&v.abort(),delete this.loaders[_.type],this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:_,response:d})},L.loadtimeout=function(d,p){var _=p.frag,v=_.loader;v&&v.abort(),delete this.loaders[_.type],this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:_})},y}()},"./src/loader/level-details.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"LevelDetails",function(){return y});var z=I("./src/polyfills/number.ts");function O(L,R){for(var d=0;dp.endSN||_>0||_===0&&v>0,this.updated||this.advanced?this.misses=Math.floor(p.misses*.6):this.misses=p.misses+1,this.availabilityDelay=p.availabilityDelay},w(L,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(z.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||W}},{key:"drift",get:function(){var p=this.driftEndTime-this.driftStartTime;if(p>0){var _=this.driftEnd-this.driftStart;return _*1e3/p}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var p;return(p=this.fragments)!==null&&p!==void 0&&p.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),L}()},"./src/loader/level-key.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"LevelKey",function(){return y});var z=I("./node_modules/url-toolkit/src/url-toolkit.js"),O=I.n(z);function w(L,R){for(var d=0;d2){var s=g.shift()+".";return s+=parseInt(g.shift()).toString(16),s+=("000"+parseInt(g.shift()).toString(16)).substr(-4),s}return m},P.resolve=function(m,g){return O.buildAbsoluteURL(g,m,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(m,g){var s=[],u={},D=!1;_.lastIndex=0;for(var S;(S=_.exec(m))!=null;)if(S[1]){var A=new R.AttrList(S[1]),N={attrs:A,bitrate:A.decimalInteger("AVERAGE-BANDWIDTH")||A.decimalInteger("BANDWIDTH"),name:A.NAME,url:P.resolve(S[2],g)},j=A.decimalResolution("RESOLUTION");j&&(N.width=j.width,N.height=j.height),l((A.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=P.convertAVC1ToAVCOTI(N.videoCodec)),s.push(N)}else if(S[3]){var K=new R.AttrList(S[3]);K["DATA-ID"]&&(D=!0,u[K["DATA-ID"]]=K)}return{levels:s,sessionData:D?u:null}},P.parseMasterPlaylistMedia=function(m,g,s,u){u===void 0&&(u=[]);var D,S=[],A=0;for(v.lastIndex=0;(D=v.exec(m))!==null;){var N=new R.AttrList(D[1]);if(N.TYPE===s){var j={attrs:N,bitrate:0,id:A++,groupId:N["GROUP-ID"],instreamId:N["INSTREAM-ID"],name:N.NAME||N.LANGUAGE||"",type:s,default:N.bool("DEFAULT"),autoselect:N.bool("AUTOSELECT"),forced:N.bool("FORCED"),lang:N.LANGUAGE,url:N.URI?P.resolve(N.URI,g):""};if(u.length){var K=P.findGroup(u,j.groupId)||u[0];x(j,K,"audioCodec"),x(j,K,"textCodec")}S.push(j)}}return S},P.parseLevelPlaylist=function(m,g,s,u,D){var S=new y.LevelDetails(g),A=S.fragments,N=null,j=0,K=0,H=0,U=0,B=null,q=new W.Fragment(u,g),ee,he,be,Ye=-1,Pe=!1;for(h.lastIndex=0,S.m3u8=m;(ee=h.exec(m))!==null;){Pe&&(Pe=!1,q=new W.Fragment(u,g),q.start=H,q.sn=j,q.cc=U,q.level=s,N&&(q.initSegment=N,q.rawProgramDateTime=N.rawProgramDateTime));var je=ee[1];if(je){q.duration=parseFloat(je);var Qe=(" "+ee[2]).slice(1);q.title=Qe||null,q.tagList.push(Qe?["INF",je,Qe]:["INF",je])}else if(ee[3])Object(z.isFiniteNumber)(q.duration)&&(q.start=H,be&&(q.levelkey=be),q.sn=j,q.level=s,q.cc=U,q.urlId=D,A.push(q),q.relurl=(" "+ee[3]).slice(1),b(q,B),B=q,H+=q.duration,j++,K=0,Pe=!0);else if(ee[4]){var Ze=(" "+ee[4]).slice(1);B?q.setByteRange(Ze,B):q.setByteRange(Ze)}else if(ee[5])q.rawProgramDateTime=(" "+ee[5]).slice(1),q.tagList.push(["PROGRAM-DATE-TIME",q.rawProgramDateTime]),Ye===-1&&(Ye=A.length);else{if(ee=ee[0].match(c),!ee){d.logger.warn("No matches on slow regex match for level playlist!");continue}for(he=1;he-1){d.logger.warn("Keyformat "+Lt+" is not supported from the manifest");continue}else if(Lt!=="identity")continue;X&&(be=L.LevelKey.fromURL(g,ue),ue&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(X)>=0&&(be.method=X,be.keyFormat=Lt,Ke&&(be.keyID=Ke),We&&(be.keyFormatVersions=We),be.iv=Ee));break}case"START":{var Bt=new R.AttrList(me),kt=Bt.decimalFloatingPoint("TIME-OFFSET");Object(z.isFiniteNumber)(kt)&&(S.startTimeOffset=kt);break}case"MAP":{var Qt=new R.AttrList(me);q.relurl=Qt.URI,Qt.BYTERANGE&&q.setByteRange(Qt.BYTERANGE),q.level=s,q.sn="initSegment",be&&(q.levelkey=be),q.initSegment=null,N=q,Pe=!0;break}case"SERVER-CONTROL":{var hn=new R.AttrList(me);S.canBlockReload=hn.bool("CAN-BLOCK-RELOAD"),S.canSkipUntil=hn.optionalFloat("CAN-SKIP-UNTIL",0),S.canSkipDateRanges=S.canSkipUntil>0&&hn.bool("CAN-SKIP-DATERANGES"),S.partHoldBack=hn.optionalFloat("PART-HOLD-BACK",0),S.holdBack=hn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var qe=new R.AttrList(me);S.partTarget=qe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=S.partList;Ue||(Ue=S.partList=[]);var vt=K>0?Ue[Ue.length-1]:void 0,Mt=K++,st=new W.Part(new R.AttrList(me),q,g,Mt,vt);Ue.push(st),q.duration+=st.duration;break}case"PRELOAD-HINT":{var Ct=new R.AttrList(me);S.preloadHint=Ct;break}case"RENDITION-REPORT":{var Ne=new R.AttrList(me);S.renditionReports=S.renditionReports||[],S.renditionReports.push(Ne);break}default:d.logger.warn("line parsed but not handled: "+ee);break}}}B&&!B.relurl?(A.pop(),H-=B.duration,S.partList&&(S.fragmentHint=B)):S.partList&&(b(q,B),q.cc=U,S.fragmentHint=q);var Se=A.length,Te=A[0],le=A[Se-1];if(H+=S.skippedSegments*S.targetduration,H>0&&Se&&le){S.averagetargetduration=H/Se;var fe=le.sn;S.endSN=fe!=="initSegment"?fe:0,Te&&(S.startCC=Te.cc,Te.initSegment||S.fragments.every(function(_e){return _e.relurl&&r(_e.relurl)})&&(d.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),q=new W.Fragment(u,g),q.relurl=le.relurl,q.level=s,q.sn="initSegment",Te.initSegment=q,S.needSidxRanges=!0))}else S.endSN=0,S.startCC=0;return S.fragmentHint&&(H+=S.fragmentHint.duration),S.totalduration=H,S.endCC=U,Ye>0&&E(A,Ye),S},P}();function l(P,T){["video","audio","text"].forEach(function(m){var g=P.filter(function(u){return Object(p.isCodecType)(u,m)});if(g.length){var s=g.filter(function(u){return u.lastIndexOf("avc1",0)===0||u.lastIndexOf("mp4a",0)===0});T[m+"Codec"]=s.length>0?s[0]:g[0],P=P.filter(function(u){return g.indexOf(u)===-1})}}),T.unknownCodecs=P}function x(P,T,m){var g=T[m];g&&(P[m]=g)}function E(P,T){for(var m=P[T],g=T;g--;){var s=P[g];if(!s)return;s.programDateTime=m.programDateTime-s.duration*1e3,m=s}}function b(P,T){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):T!=null&&T.programDateTime&&(P.programDateTime=T.endProgramDateTime),Object(z.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/polyfills/number.ts"),O=I("./src/events.ts"),w=I("./src/errors.ts"),W=I("./src/utils/logger.ts"),y=I("./src/utils/mp4-tools.ts"),L=I("./src/loader/m3u8-parser.ts"),R=I("./src/types/loader.ts"),d=I("./src/utils/attr-list.ts");function p(h){var c=h.type;switch(c){case R.PlaylistContextType.AUDIO_TRACK:return R.PlaylistLevelType.AUDIO;case R.PlaylistContextType.SUBTITLE_TRACK:return R.PlaylistLevelType.SUBTITLE;default:return R.PlaylistLevelType.MAIN}}function _(h,c){var n=h.url;return(n===void 0||n.indexOf("data:")===0)&&(n=c.url),n}var v=function(){function h(n){this.hls=void 0,this.loaders=Object.create(null),this.hls=n,this.registerListeners()}var c=h.prototype;return c.registerListeners=function(){var r=this.hls;r.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.unregisterListeners=function(){var r=this.hls;r.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.createInternalLoader=function(r){var o=this.hls.config,l=o.pLoader,x=o.loader,E=l||x,b=new E(o);return r.loader=b,this.loaders[r.type]=b,b},c.getInternalLoader=function(r){return this.loaders[r.type]},c.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},c.destroyInternalLoaders=function(){for(var r in this.loaders){var o=this.loaders[r];o&&o.destroy(),this.resetInternalLoader(r)}},c.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},c.onManifestLoading=function(r,o){var l=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:R.PlaylistContextType.MANIFEST,url:l,deliveryDirectives:null})},c.onLevelLoading=function(r,o){var l=o.id,x=o.level,E=o.url,b=o.deliveryDirectives;this.load({id:l,groupId:null,level:x,responseType:"text",type:R.PlaylistContextType.LEVEL,url:E,deliveryDirectives:b})},c.onAudioTrackLoading=function(r,o){var l=o.id,x=o.groupId,E=o.url,b=o.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:b})},c.onSubtitleTrackLoading=function(r,o){var l=o.id,x=o.groupId,E=o.url,b=o.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:b})},c.load=function(r){var o,l=this.hls.config,x=this.getInternalLoader(r);if(x){var E=x.context;if(E&&E.url===r.url){W.logger.trace("[playlist-loader]: playlist request ongoing");return}W.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),x.abort()}var b,P,T,m;switch(r.type){case R.PlaylistContextType.MANIFEST:b=l.manifestLoadingMaxRetry,P=l.manifestLoadingTimeOut,T=l.manifestLoadingRetryDelay,m=l.manifestLoadingMaxRetryTimeout;break;case R.PlaylistContextType.LEVEL:case R.PlaylistContextType.AUDIO_TRACK:case R.PlaylistContextType.SUBTITLE_TRACK:b=0,P=l.levelLoadingTimeOut;break;default:b=l.levelLoadingMaxRetry,P=l.levelLoadingTimeOut,T=l.levelLoadingRetryDelay,m=l.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(r),(o=r.deliveryDirectives)!==null&&o!==void 0&&o.part){var g;if(r.type===R.PlaylistContextType.LEVEL&&r.level!==null?g=this.hls.levels[r.level].details:r.type===R.PlaylistContextType.AUDIO_TRACK&&r.id!==null?g=this.hls.audioTracks[r.id].details:r.type===R.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(g=this.hls.subtitleTracks[r.id].details),g){var s=g.partTarget,u=g.targetduration;s&&u&&(P=Math.min(Math.max(s*3,u*.8)*1e3,P))}}var D={timeout:P,maxRetry:b,retryDelay:T,maxRetryDelay:m,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(r,D,S)},c.loadsuccess=function(r,o,l,x){if(x===void 0&&(x=null),l.isSidxRequest){this.handleSidxRequest(r,l),this.handlePlaylistLoaded(r,o,l,x);return}this.resetInternalLoader(l.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,l,"no EXTM3U delimiter",x);return}o.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,o,l,x):this.handleMasterPlaylist(r,o,l,x)},c.loaderror=function(r,o,l){l===void 0&&(l=null),this.handleNetworkError(o,l,!1,r)},c.loadtimeout=function(r,o,l){l===void 0&&(l=null),this.handleNetworkError(o,l,!0)},c.handleMasterPlaylist=function(r,o,l,x){var E=this.hls,b=r.data,P=_(r,l),T=L.default.parseMasterPlaylist(b,P),m=T.levels,g=T.sessionData;if(!m.length){this.handleManifestParsingError(r,l,"no level found in manifest",x);return}var s=m.map(function(j){return{id:j.attrs.AUDIO,audioCodec:j.audioCodec}}),u=m.map(function(j){return{id:j.attrs.SUBTITLES,textCodec:j.textCodec}}),D=L.default.parseMasterPlaylistMedia(b,P,"AUDIO",s),S=L.default.parseMasterPlaylistMedia(b,P,"SUBTITLES",u),A=L.default.parseMasterPlaylistMedia(b,P,"CLOSED-CAPTIONS");if(D.length){var N=D.some(function(j){return!j.url});!N&&m[0].audioCodec&&!m[0].attrs.AUDIO&&(W.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new d.AttrList({}),bitrate:0,url:""}))}E.trigger(O.Events.MANIFEST_LOADED,{levels:m,audioTracks:D,subtitles:S,captions:A,url:P,stats:o,networkDetails:x,sessionData:g})},c.handleTrackOrLevelPlaylist=function(r,o,l,x){var E=this.hls,b=l.id,P=l.level,T=l.type,m=_(r,l),g=Object(z.isFiniteNumber)(b)?b:0,s=Object(z.isFiniteNumber)(P)?P:g,u=p(l),D=L.default.parseLevelPlaylist(r.data,m,s,u,g);if(!D.fragments.length){E.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:m,reason:"no fragments found in level",level:typeof l.level=="number"?l.level:void 0});return}if(T===R.PlaylistContextType.MANIFEST){var S={attrs:new d.AttrList({}),bitrate:0,details:D,name:"",url:m};E.trigger(O.Events.MANIFEST_LOADED,{levels:[S],audioTracks:[],url:m,stats:o,networkDetails:x,sessionData:null})}if(o.parsing.end=performance.now(),D.needSidxRanges){var A,N=(A=D.fragments[0].initSegment)===null||A===void 0?void 0:A.url;this.load({url:N,isSidxRequest:!0,type:T,level:P,levelDetails:D,id:b,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}l.levelDetails=D,this.handlePlaylistLoaded(r,o,l,x)},c.handleSidxRequest=function(r,o){var l=Object(y.parseSegmentIndex)(new Uint8Array(r.data));if(!l)return;var x=l.references,E=o.levelDetails;x.forEach(function(b,P){var T=b.info,m=E.fragments[P];m.byteRange.length===0&&m.setByteRange(String(1+T.end-T.start)+"@"+String(T.start)),m.initSegment&&m.initSegment.setByteRange(String(l.moovEndOffset)+"@0")})},c.handleManifestParsingError=function(r,o,l,x){this.hls.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===R.PlaylistContextType.MANIFEST,url:r.url,reason:l,response:r,context:o,networkDetails:x})},c.handleNetworkError=function(r,o,l,x){l===void 0&&(l=!1),W.logger.warn("[playlist-loader]: A network "+(l?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=w.ErrorDetails.UNKNOWN,b=!1,P=this.getInternalLoader(r);switch(r.type){case R.PlaylistContextType.MANIFEST:E=l?w.ErrorDetails.MANIFEST_LOAD_TIMEOUT:w.ErrorDetails.MANIFEST_LOAD_ERROR,b=!0;break;case R.PlaylistContextType.LEVEL:E=l?w.ErrorDetails.LEVEL_LOAD_TIMEOUT:w.ErrorDetails.LEVEL_LOAD_ERROR,b=!1;break;case R.PlaylistContextType.AUDIO_TRACK:E=l?w.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:w.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,b=!1;break;case R.PlaylistContextType.SUBTITLE_TRACK:E=l?w.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:w.ErrorDetails.SUBTITLE_LOAD_ERROR,b=!1;break}P&&this.resetInternalLoader(r.type);var T={type:w.ErrorTypes.NETWORK_ERROR,details:E,fatal:b,url:r.url,loader:P,context:r,networkDetails:o};x&&(T.response=x),this.hls.trigger(O.Events.ERROR,T)},c.handlePlaylistLoaded=function(r,o,l,x){var E=l.type,b=l.level,P=l.id,T=l.groupId,m=l.loader,g=l.levelDetails,s=l.deliveryDirectives;if(!(g!=null&&g.targetduration)){this.handleManifestParsingError(r,l,"invalid target duration",x);return}if(!m)return;g.live&&(m.getCacheAge&&(g.ageHeader=m.getCacheAge()||0),(!m.getCacheAge||isNaN(g.ageHeader))&&(g.ageHeader=0));switch(E){case R.PlaylistContextType.MANIFEST:case R.PlaylistContextType.LEVEL:this.hls.trigger(O.Events.LEVEL_LOADED,{details:g,level:b||0,id:P||0,stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(O.Events.AUDIO_TRACK_LOADED,{details:g,id:P||0,groupId:T||"",stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(O.Events.SUBTITLE_TRACK_LOADED,{details:g,id:P||0,groupId:T||"",stats:o,networkDetails:x,deliveryDirectives:s});break}},h}();G.default=v},"./src/polyfills/number.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"isFiniteNumber",function(){return z}),I.d(G,"MAX_SAFE_INTEGER",function(){return O});var z=Number.isFinite||function(w){return typeof w=="number"&&isFinite(w)},O=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(re,G,I){"use strict";I.r(G);var z=function(){function O(){}return O.getSilentFrame=function(W,y){switch(W){case"mp4a.40.2":if(y===1)return new Uint8Array([0,200,0,128,35,128]);if(y===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(y===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(y===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(y===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(y===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(y===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(y===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(y===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},O}();G.default=z},"./src/remux/mp4-generator.ts":function(re,G,I){"use strict";I.r(G);var z=Math.pow(2,32)-1,O=function(){function w(){}return w.init=function(){w.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var y;for(y in w.types)w.types.hasOwnProperty(y)&&(w.types[y]=[y.charCodeAt(0),y.charCodeAt(1),y.charCodeAt(2),y.charCodeAt(3)]);var L=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),R=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);w.HDLR_TYPES={video:L,audio:R};var d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),p=new Uint8Array([0,0,0,0,0,0,0,0]);w.STTS=w.STSC=w.STCO=p,w.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),w.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),w.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),w.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var _=new Uint8Array([105,115,111,109]),v=new Uint8Array([97,118,99,49]),h=new Uint8Array([0,0,0,1]);w.FTYP=w.box(w.types.ftyp,_,h,_,v),w.DINF=w.box(w.types.dinf,w.box(w.types.dref,d))},w.box=function(y){for(var L=8,R=arguments.length,d=new Array(R>1?R-1:0),p=1;p>24&255,h[1]=L>>16&255,h[2]=L>>8&255,h[3]=L&255,h.set(y,4),_=0,L=8;_>24&255,y>>16&255,y>>8&255,y&255,R>>24,R>>16&255,R>>8&255,R&255,d>>24,d>>16&255,d>>8&255,d&255,85,196,0,0]))},w.mdia=function(y){return w.box(w.types.mdia,w.mdhd(y.timescale,y.duration),w.hdlr(y.type),w.minf(y))},w.mfhd=function(y){return w.box(w.types.mfhd,new Uint8Array([0,0,0,0,y>>24,y>>16&255,y>>8&255,y&255]))},w.minf=function(y){return y.type==="audio"?w.box(w.types.minf,w.box(w.types.smhd,w.SMHD),w.DINF,w.stbl(y)):w.box(w.types.minf,w.box(w.types.vmhd,w.VMHD),w.DINF,w.stbl(y))},w.moof=function(y,L,R){return w.box(w.types.moof,w.mfhd(y),w.traf(R,L))},w.moov=function(y){for(var L=y.length,R=[];L--;)R[L]=w.trak(y[L]);return w.box.apply(null,[w.types.moov,w.mvhd(y[0].timescale,y[0].duration)].concat(R).concat(w.mvex(y)))},w.mvex=function(y){for(var L=y.length,R=[];L--;)R[L]=w.trex(y[L]);return w.box.apply(null,[w.types.mvex].concat(R))},w.mvhd=function(y,L){L*=y;var R=Math.floor(L/(z+1)),d=Math.floor(L%(z+1)),p=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,y>>24&255,y>>16&255,y>>8&255,y&255,R>>24,R>>16&255,R>>8&255,R&255,d>>24,d>>16&255,d>>8&255,d&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return w.box(w.types.mvhd,p)},w.sdtp=function(y){var L=y.samples||[],R=new Uint8Array(4+L.length),d,p;for(d=0;d>>8&255),L.push(_&255),L=L.concat(Array.prototype.slice.call(p));for(d=0;d>>8&255),R.push(_&255),R=R.concat(Array.prototype.slice.call(p));var v=w.box(w.types.avcC,new Uint8Array([1,L[3],L[4],L[5],252|3,224|y.sps.length].concat(L).concat([y.pps.length]).concat(R))),h=y.width,c=y.height,n=y.pixelRatio[0],r=y.pixelRatio[1];return w.box(w.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,h&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),v,w.box(w.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),w.box(w.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255])))},w.esds=function(y){var L=y.config.length;return new Uint8Array([0,0,0,0,3,23+L,0,1,0,4,15+L,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([L]).concat(y.config).concat([6,1,2]))},w.mp4a=function(y){var L=y.samplerate;return w.box(w.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,y.channelCount,0,16,0,0,0,0,L>>8&255,L&255,0,0]),w.box(w.types.esds,w.esds(y)))},w.mp3=function(y){var L=y.samplerate;return w.box(w.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,y.channelCount,0,16,0,0,0,0,L>>8&255,L&255,0,0]))},w.stsd=function(y){return y.type==="audio"?!y.isAAC&&y.codec==="mp3"?w.box(w.types.stsd,w.STSD,w.mp3(y)):w.box(w.types.stsd,w.STSD,w.mp4a(y)):w.box(w.types.stsd,w.STSD,w.avc1(y))},w.tkhd=function(y){var L=y.id,R=y.duration*y.timescale,d=y.width,p=y.height,_=Math.floor(R/(z+1)),v=Math.floor(R%(z+1));return w.box(w.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,0,0,0,0,_>>24,_>>16&255,_>>8&255,_&255,v>>24,v>>16&255,v>>8&255,v&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,d>>8&255,d&255,0,0,p>>8&255,p&255,0,0]))},w.traf=function(y,L){var R=w.sdtp(y),d=y.id,p=Math.floor(L/(z+1)),_=Math.floor(L%(z+1));return w.box(w.types.traf,w.box(w.types.tfhd,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255])),w.box(w.types.tfdt,new Uint8Array([1,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,_>>24,_>>16&255,_>>8&255,_&255])),w.trun(y,R.length+16+20+8+16+8+8),R)},w.trak=function(y){return y.duration=y.duration||4294967295,w.box(w.types.trak,w.tkhd(y),w.mdia(y))},w.trex=function(y){var L=y.id;return w.box(w.types.trex,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},w.trun=function(y,L){var R=y.samples||[],d=R.length,p=12+16*d,_=new Uint8Array(p),v,h,c,n,r,o;for(L+=8+p,_.set([0,0,15,1,d>>>24&255,d>>>16&255,d>>>8&255,d&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255],0),v=0;v>>24&255,c>>>16&255,c>>>8&255,c&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*v);return w.box(w.types.trun,_)},w.initSegment=function(y){w.types||w.init();var L=w.moov(y),R=new Uint8Array(w.FTYP.byteLength+L.byteLength);return R.set(w.FTYP),R.set(L,w.FTYP.byteLength),R},w}();O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0,G.default=O},"./src/remux/mp4-remuxer.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return o}),I.d(G,"normalizePts",function(){return l});var z=I("./src/polyfills/number.ts"),O=I("./src/remux/aac-helper.ts"),w=I("./src/remux/mp4-generator.ts"),W=I("./src/events.ts"),y=I("./src/errors.ts"),L=I("./src/utils/logger.ts"),R=I("./src/types/loader.ts"),d=I("./src/utils/timescale-conversion.ts");function p(){return p=Object.assign||function(P){for(var T=1;T0?D:S.pts},g[0].pts);return s&&L.logger.debug("PTS rollover detected"),u},T.remux=function(g,s,u,D,S,A,N,j){var K,H,U,B,q,ee,he=S,be=S,Ye=g.pid>-1,Pe=s.pid>-1,je=s.samples.length,Qe=g.samples.length>0,Ze=je>1,Ae=(!Ye||Qe)&&(!Pe||Ze)||this.ISGenerated||N;if(Ae){this.ISGenerated||(U=this.generateIS(g,s,S));var me=this.isVideoContiguous,ie=-1;if(Ze&&(ie=x(s.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,ie>0){L.logger.warn("[mp4-remuxer]: Dropped "+ie+" out of "+je+" video samples due to a missing keyframe");var Oe=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(ie),s.dropped+=ie,be+=(s.samples[0].pts-Oe)/(s.timescale||9e4)}else ie===-1&&(L.logger.warn("[mp4-remuxer]: No keyframe found out of "+je+" video samples"),ee=!1);if(this.ISGenerated){if(Qe&&Ze){var ve=this.getVideoStartPts(s.samples),Ge=l(g.samples[0].pts,ve)-ve,pe=Ge/s.inputTimeScale;he+=Math.max(0,pe),be+=Math.max(0,-pe)}if(Qe){if(g.samplerate||(L.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(g,s,S)),H=this.remuxAudio(g,he,this.isAudioContiguous,A,Pe||Ze||j===R.PlaylistLevelType.AUDIO?be:void 0),Ze){var J=H?H.endPTS-H.startPTS:0;s.inputTimeScale||(L.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(g,s,S)),K=this.remuxVideo(s,be,me,J)}}else Ze&&(K=this.remuxVideo(s,be,me,0));K&&(K.firstKeyFrame=ie,K.independent=ie!==-1)}}return this.ISGenerated&&(u.samples.length&&(q=this.remuxID3(u,S)),D.samples.length&&(B=this.remuxText(D,S))),{audio:H,video:K,initSegment:U,independent:ee,text:B,id3:q}},T.generateIS=function(g,s,u){var D=g.samples,S=s.samples,A=this.typeSupported,N={},j=!Object(z.isFiniteNumber)(this._initPTS),K="audio/mp4",H,U,B;if(j&&(H=U=Infinity),g.config&&D.length&&(g.timescale=g.samplerate,g.isAAC||(A.mpeg?(K="audio/mpeg",g.codec=""):A.mp3&&(g.codec="mp3")),N.audio={id:"audio",container:K,codec:g.codec,initSegment:!g.isAAC&&A.mpeg?new Uint8Array(0):w.default.initSegment([g]),metadata:{channelCount:g.channelCount}},j&&(B=g.inputTimeScale,H=U=D[0].pts-Math.round(B*u))),s.sps&&s.pps&&S.length&&(s.timescale=s.inputTimeScale,N.video={id:"main",container:"video/mp4",codec:s.codec,initSegment:w.default.initSegment([s]),metadata:{width:s.width,height:s.height}},j)){B=s.inputTimeScale;var q=this.getVideoStartPts(S),ee=Math.round(B*u);U=Math.min(U,l(S[0].dts,q)-ee),H=Math.min(H,q-ee)}if(Object.keys(N).length)return this.ISGenerated=!0,j&&(this._initPTS=H,this._initDTS=U),{tracks:N,initPTS:H,timescale:B}},T.remuxVideo=function(g,s,u,D){var S=g.inputTimeScale,A=g.samples,N=[],j=A.length,K=this._initPTS,H=this.nextAvcDts,U=8,B,q,ee,he=Number.POSITIVE_INFINITY,be=Number.NEGATIVE_INFINITY,Ye=0,Pe=!1;if(!u||H===null){var je=s*S,Qe=A[0].pts-l(A[0].dts,A[0].pts);H=je-Qe}for(var Ze=0;ZeAe.pts){var me=9e4*.2;Ye=Math.max(Math.min(Ye,Ae.pts-Ae.dts),-1*me)}Ae.dts0?Ze-1:Ze].dts&&(Pe=!0)}Pe&&A.sort(function(Jt,wt){var St=Jt.dts-wt.dts,lt=Jt.pts-wt.pts;return St||lt}),q=A[0].dts,ee=A[A.length-1].dts;var ie=Math.round((ee-q)/(j-1));if(Ye<0){if(Yeie,V=pe<-1;if(J||V){J?L.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(pe,!0)+" ms ("+pe+"dts) hole between fragments detected, filling it"):L.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(-pe,!0)+" ms ("+pe+"dts) overlapping between fragments detected"),q=H;var X=A[0].pts-pe;A[0].dts=q,A[0].pts=X,L.logger.log("Video: First PTS/DTS adjusted: "+Object(d.toMsFromMpegTsClock)(X,!0)+"/"+Object(d.toMsFromMpegTsClock)(q,!0)+", delta: "+Object(d.toMsFromMpegTsClock)(pe,!0)+" ms")}}r&&(q=Math.max(0,q));for(var ue=0,Ee=0,We=0;We0?Ue-1:Ue].dts;if(fe.stretchShortVideoTrack&&this.nextAudioPts!==null){var Me=Math.floor(fe.maxBufferHole*S),rt=(D?he+D*S:this.nextAudioPts)-vt.pts;rt>Me?(B=rt-_e,B<0&&(B=_e),L.logger.log("[mp4-remuxer]: It is approximately "+rt/90+" ms to the next segment; using duration "+B/90+" ms for the last video frame.")):B=_e}else B=_e}var Je=Math.round(vt.pts-vt.dts);N.push(new E(vt.key,B,st,Je))}if(N.length&&c&&c<70){var jt=N[0].flags;jt.dependsOn=2,jt.isNonSync=0}console.assert(B!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=ee+B,this.isVideoContiguous=!0;var rn=w.default.moof(g.sequenceNumber++,q,p({},g,{samples:N})),pn="video",on={data1:rn,data2:hn,startPTS:he/S,endPTS:(be+B)/S,startDTS:q/S,endDTS:H/S,type:pn,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:g.dropped};return g.samples=[],g.dropped=0,console.assert(hn.length,"MDAT length must not be zero"),on},T.remuxAudio=function(g,s,u,D,S){var A=g.inputTimeScale,N=g.samplerate?g.samplerate:A,j=A/N,K=g.isAAC?v:h,H=K*j,U=this._initPTS,B=!g.isAAC&&this.typeSupported.mpeg,q=[],ee=g.samples,he=B?0:8,be=this.nextAudioPts||-1,Ye=s*A;if(this.isAudioContiguous=u=u||ee.length&&be>0&&(D&&Math.abs(Ye-be)<9e3||Math.abs(l(ee[0].pts-U,Ye)-be)<20*H),ee.forEach(function(Te){Te.pts=l(Te.pts-U,Ye)}),!u||be<0){if(ee=ee.filter(function(Te){return Te.pts>=0}),!ee.length)return;S===0?be=0:D?be=Math.max(0,Ye):be=ee[0].pts}if(g.isAAC)for(var Pe=S!==void 0,je=this.config.maxAudioFramesDrift,Qe=0,Ze=be;Qe=je*H&&Oe<_&&Pe){var ve=Math.round(ie/H);Ze=me-ve*H,Ze<0&&(ve--,Ze+=H),Qe===0&&(this.nextAudioPts=be=Ze),L.logger.warn("[mp4-remuxer]: Injecting "+ve+" audio frame @ "+(Ze/A).toFixed(3)+"s due to "+Math.round(1e3*ie/A)+" ms gap.");for(var Ge=0;Ge0){Ee+=he;try{ue=new Uint8Array(Ee)}catch(Te){this.observer.emit(W.Events.ERROR,W.Events.ERROR,{type:y.ErrorTypes.MUX_ERROR,details:y.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ee,reason:"fail allocating audio mdat "+Ee});return}if(!B){var hn=new DataView(ue.buffer);hn.setUint32(0,Ee),ue.set(w.default.types.mdat,4)}}else return;ue.set(Bt,he);var qe=Bt.byteLength;he+=qe,q.push(new E(!0,K,qe,0)),X=kt}var Ue=q.length;if(!Ue)return;var vt=q[q.length-1];this.nextAudioPts=be=X+j*vt.duration;var Mt=B?new Uint8Array(0):w.default.moof(g.sequenceNumber++,V/j,p({},g,{samples:q}));g.samples=[];var st=V/A,Ct=be/A,Ne="audio",Se={data1:Mt,data2:ue,startPTS:st,endPTS:Ct,startDTS:st,endDTS:Ct,type:Ne,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(ue.length,"MDAT length must not be zero"),Se},T.remuxEmptyAudio=function(g,s,u,D){var S=g.inputTimeScale,A=g.samplerate?g.samplerate:S,N=S/A,j=this.nextAudioPts,K=(j!==null?j:D.startDTS*S)+this._initDTS,H=D.endDTS*S+this._initDTS,U=N*v,B=Math.ceil((H-K)/U),q=O.default.getSilentFrame(g.manifestCodec||g.codec,g.channelCount);if(L.logger.warn("[mp4-remuxer]: remux empty Audio"),!q){L.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],he=0;he4294967296;)P+=m;return P}function x(P){for(var T=0;T0?this.lastEndDTS=g:(W.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!P.audio,u=!!P.video,D="";s&&(D+="audio"),u&&(D+="video");var S={data1:E,startPTS:m,startDTS:m,endPTS:g,endDTS:g,type:D,hasAudio:s,hasVideo:u,nb:1,dropped:0};return x.audio=S.type==="audio"?S:void 0,x.video=S.type!=="audio"?S:void 0,x.text=n,x.id3=c,x.initSegment=b,x},d}(),L=function(p,_,v){return Object(O.getStartDTS)(p,_)-v};function R(d,p){var _=d==null?void 0:d.codec;return _&&_.length>4?_:_==="hvc1"?"hvc1.1.c.L120.90":_==="av01"?"av01.0.04M.08":_==="avc1"||p===w.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}G.default=y},"./src/task-loop.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return z});var z=function(){function O(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var w=O.prototype;return w.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},w.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},w.onHandlerDestroyed=function(){},w.hasInterval=function(){return!!this._tickInterval},w.hasNextTick=function(){return!!this._tickTimer},w.setInterval=function(y){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,y),!0)},w.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},w.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},w.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},w.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},w.doTick=function(){},O}()},"./src/types/cmcd.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"CMCDVersion",function(){return z}),I.d(G,"CMCDObjectType",function(){return O}),I.d(G,"CMCDStreamingFormat",function(){return w}),I.d(G,"CMCDStreamType",function(){return W});var z=1,O;(function(y){y.MANIFEST="m",y.AUDIO="a",y.VIDEO="v",y.MUXED="av",y.INIT="i",y.CAPTION="c",y.TIMED_TEXT="tt",y.KEY="k",y.OTHER="o"})(O||(O={}));var w;(function(y){y.DASH="d",y.HLS="h",y.SMOOTH="s",y.OTHER="o"})(w||(w={}));var W;(function(y){y.VOD="v",y.LIVE="l"})(W||(W={}))},"./src/types/level.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"HlsSkip",function(){return w}),I.d(G,"getSkipValue",function(){return W}),I.d(G,"HlsUrlParameters",function(){return y}),I.d(G,"Level",function(){return L});function z(R,d){for(var p=0;pNumber.MAX_SAFE_INTEGER?Infinity:d},y.hexadecimalInteger=function(R){if(this[R]){var d=(this[R]||"0x").slice(2);d=(d.length&1?"0":"")+d;for(var p=new Uint8Array(d.length/2),_=0;_Number.MAX_SAFE_INTEGER?Infinity:d},y.decimalFloatingPoint=function(R){return parseFloat(this[R])},y.optionalFloat=function(R,d){var p=this[R];return p?parseFloat(p):d},y.enumeratedString=function(R){return this[R]},y.bool=function(R){return this[R]==="YES"},y.decimalResolution=function(R){var d=z.exec(this[R]);return d===null?void 0:{width:parseInt(d[1],10),height:parseInt(d[2],10)}},W.parseAttrList=function(R){var d,p={},_='"';for(O.lastIndex=0;(d=O.exec(R))!==null;){var v=d[2];v.indexOf(_)===0&&v.lastIndexOf(_)===v.length-1&&(v=v.slice(1,-1)),p[d[1]]=v}return p},W}()},"./src/utils/binary-search.ts":function(re,G,I){"use strict";I.r(G);var z={search:function(w,W){for(var y=0,L=w.length-1,R=null,d=null;y<=L;){R=(y+L)/2|0,d=w[R];var p=W(d);if(p>0)y=R+1;else if(p<0)L=R-1;else return d}return null}};G.default=z},"./src/utils/buffer-helper.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"BufferHelper",function(){return w});var z=I("./src/utils/logger.ts"),O={length:0,start:function(){return 0},end:function(){return 0}},w=function(){function W(){}return W.isBuffered=function(L,R){try{if(L){for(var d=W.getBuffered(L),p=0;p=d.start(p)&&R<=d.end(p))return!0}}catch(_){}return!1},W.bufferInfo=function(L,R,d){try{if(L){var p=W.getBuffered(L),_=[],v;for(v=0;vh&&(p[v-1].end=L[_].end):p.push(L[_])}else p.push(L[_])}else p=L;for(var c=0,n,r=R,o=R,l=0;l=x&&R=u&&z.logger.log(this.time+" ["+u+"] "+D)},m}(),c=function(g){for(var s=[],u=0;uy&&(this.logger.log(v.DEBUG,"Too large cursor position "+this.pos),this.pos=y)},g.moveCursor=function(u){var D=this.pos+u;if(u>1)for(var S=this.pos+1;S=144&&this.backSpace();var D=w(u);if(this.pos>=y){this.logger.log(v.ERROR,"Cannot insert "+u.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},g.clearFromPos=function(u){var D;for(D=u;D0&&(u?S="["+D.join(" | ")+"]":S=D.join(` -`)),S},g.getTextAndFormat=function(){return this.rows},m}(),x=function(){function m(s,u,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=s,this.outputFilter=u,this.mode=null,this.verbose=0,this.displayedMemory=new l(D),this.nonDisplayedMemory=new l(D),this.lastOutputScreen=new l(D),this.currRollUpRow=this.displayedMemory.rows[W-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var g=m.prototype;return g.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[W-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},g.getHandler=function(){return this.outputFilter},g.setHandler=function(u){this.outputFilter=u},g.setPAC=function(u){this.writeScreen.setPAC(u)},g.setBkgData=function(u){this.writeScreen.setBkgData(u)},g.setMode=function(u){if(u===this.mode)return;this.mode=u,this.logger.log(v.INFO,"MODE="+u),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=u},g.insertChars=function(u){for(var D=0;D=46,D.italics)D.foreground="white";else{var S=Math.floor(u/2)-16,A=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=A[S]}this.logger.log(v.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},g.outputDataUpdate=function(u){u===void 0&&(u=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),u&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},g.cueSplitAtTime=function(u){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,u,this.displayedMemory),this.cueStartTime=u))},m}(),E=function(){function m(s,u,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var S=new h;this.channels=[null,new x(s,u,S),new x(s+1,D,S)],this.cmdHistory=T(),this.logger=S}var g=m.prototype;return g.getHandler=function(u){return this.channels[u].getHandler()},g.setHandler=function(u,D){this.channels[u].setHandler(D)},g.addData=function(u,D){var S,A,N,j=!1;this.logger.time=u;for(var K=0;K ("+c([A,N])+")"),S=this.parseCmd(A,N),S||(S=this.parseMidrow(A,N)),S||(S=this.parsePAC(A,N)),S||(S=this.parseBackgroundAttributes(A,N)),!S&&(j=this.parseChars(A,N),j)){var H=this.currentChannel;if(H&&H>0){var U=this.channels[H];U.insertChars(j)}else this.logger.log(v.WARNING,"No channel found yet. TEXT-MODE?")}!S&&!j&&this.logger.log(v.WARNING,"Couldn't parse cleaned data "+c([A,N])+" orig: "+c([D[K],D[K+1]]))}},g.parseCmd=function(u,D){var S=this.cmdHistory,A=(u===20||u===28||u===21||u===29)&&D>=32&&D<=47,N=(u===23||u===31)&&D>=33&&D<=35;if(!(A||N))return!1;if(P(u,D,S))return b(null,null,S),this.logger.log(v.DEBUG,"Repeated command ("+c([u,D])+") is dropped"),!0;var j=u===20||u===21||u===23?1:2,K=this.channels[j];return u===20||u===21||u===28||u===29?D===32?K.ccRCL():D===33?K.ccBS():D===34?K.ccAOF():D===35?K.ccAON():D===36?K.ccDER():D===37?K.ccRU(2):D===38?K.ccRU(3):D===39?K.ccRU(4):D===40?K.ccFON():D===41?K.ccRDC():D===42?K.ccTR():D===43?K.ccRTD():D===44?K.ccEDM():D===45?K.ccCR():D===46?K.ccENM():D===47&&K.ccEOC():K.ccTO(D-32),b(u,D,S),this.currentChannel=j,!0},g.parseMidrow=function(u,D){var S=0;if((u===17||u===25)&&D>=32&&D<=47){if(u===17?S=1:S=2,S!==this.currentChannel)return this.logger.log(v.ERROR,"Mismatch channel in midrow parsing"),!1;var A=this.channels[S];return A?(A.ccMIDROW(D),this.logger.log(v.DEBUG,"MIDROW ("+c([u,D])+")"),!0):!1}return!1},g.parsePAC=function(u,D){var S,A=this.cmdHistory,N=(u>=17&&u<=23||u>=25&&u<=31)&&D>=64&&D<=127,j=(u===16||u===24)&&D>=64&&D<=95;if(!(N||j))return!1;if(P(u,D,A))return b(null,null,A),!0;var K=u<=23?1:2;D>=64&&D<=95?S=K===1?L[u]:d[u]:S=K===1?R[u]:p[u];var H=this.channels[K];return H?(H.setPAC(this.interpretPAC(S,D)),b(u,D,A),this.currentChannel=K,!0):!1},g.interpretPAC=function(u,D){var S,A={color:null,italics:!1,indent:null,underline:!1,row:u};return D>95?S=D-96:S=D-64,A.underline=(S&1)===1,S<=13?A.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(S/2)]:S<=15?(A.italics=!0,A.color="white"):A.indent=Math.floor((S-16)/2)*4,A},g.parseChars=function(u,D){var S,A=null,N=null;if(u>=25?(S=2,N=u-8):(S=1,N=u),N>=17&&N<=19){var j;N===17?j=D+80:N===18?j=D+112:j=D+144,this.logger.log(v.INFO,"Special char '"+w(j)+"' in channel "+S),A=[j]}else u>=32&&u<=127&&(A=D===0?[u]:[u,D]);if(A){var K=c(A);this.logger.log(v.DEBUG,"Char codes = "+K.join(",")),b(u,D,this.cmdHistory)}return A},g.parseBackgroundAttributes=function(u,D){var S=(u===16||u===24)&&D>=32&&D<=47,A=(u===23||u===31)&&D>=45&&D<=47;if(!(S||A))return!1;var N,j={};u===16||u===24?(N=Math.floor((D-32)/2),j.background=_[N],D%2===1&&(j.background=j.background+"_semi")):D===45?j.background="transparent":(j.foreground="black",D===47&&(j.underline=!0));var K=u<=23?1:2,H=this.channels[K];return H.setBkgData(j),b(u,D,this.cmdHistory),!0},g.reset=function(){for(var u=0;u=16?r--:r++;var b=Object(z.fixLineBreaks)(o.trim()),P=Object(O.generateCueId)(d,p,b);(!R||!R.cues||!R.cues.getCueById(P))&&(c=new l(d,p,b),c.id=P,c.line=x+1,c.align="left",c.position=10+Math.min(80,Math.floor(r*8/32)*10),v.push(c))}return R&&v.length&&(v.sort(function(T,m){return T.line==="auto"||m.line==="auto"?0:T.line>8&&m.line>8?m.line-T.line:T.line-m.line}),v.forEach(function(T){return Object(w.addCueToTrack)(R,T)})),v}};G.default=y},"./src/utils/discontinuities.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"findFirstFragWithCC",function(){return W}),I.d(G,"shouldAlignOnDiscontinuities",function(){return y}),I.d(G,"findDiscontinuousReferenceFrag",function(){return L}),I.d(G,"adjustSlidingStart",function(){return d}),I.d(G,"alignStream",function(){return p}),I.d(G,"alignPDT",function(){return v}),I.d(G,"alignFragmentByPDTDelta",function(){return h}),I.d(G,"alignMediaPlaylistByPDT",function(){return c});var z=I("./src/polyfills/number.ts"),O=I("./src/utils/logger.ts"),w=I("./src/controller/level-helper.ts");function W(n,r){for(var o=null,l=0,x=n.length;lo.startCC||n&&n.cc=this.minWeight_},W.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},W.destroy=function(){},w}();G.default=O},"./src/utils/ewma.ts":function(re,G,I){"use strict";I.r(G);var z=function(){function O(W,y,L){y===void 0&&(y=0),L===void 0&&(L=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=W,this.alpha_=W?Math.exp(Math.log(.5)/W):0,this.estimate_=y,this.totalWeight_=L}var w=O.prototype;return w.sample=function(y,L){var R=Math.pow(this.alpha_,y);this.estimate_=L*(1-R)+R*this.estimate_,this.totalWeight_+=y},w.getTotalWeight=function(){return this.totalWeight_},w.getEstimate=function(){if(this.alpha_){var y=1-Math.pow(this.alpha_,this.totalWeight_);if(y)return this.estimate_/y}return this.estimate_},O}();G.default=z},"./src/utils/fetch-loader.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"fetchSupported",function(){return h});var z=I("./src/polyfills/number.ts"),O=I("./src/loader/load-stats.ts"),w=I("./src/demux/chunk-cache.ts");function W(l,x){l.prototype=Object.create(x.prototype),l.prototype.constructor=l,p(l,x)}function y(l){var x=typeof Map=="function"?new Map:void 0;return y=function(b){if(b===null||!d(b))return b;if(typeof b!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(b))return x.get(b);x.set(b,P)}function P(){return L(b,arguments,_(this).constructor)}return P.prototype=Object.create(b.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),p(P,b)},y(l)}function L(l,x,E){return R()?L=Reflect.construct:L=function(P,T,m){var g=[null];g.push.apply(g,T);var s=Function.bind.apply(P,g),u=new s;return m&&p(u,m.prototype),u},L.apply(null,arguments)}function R(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}function d(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function p(l,x){return p=Object.setPrototypeOf||function(b,P){return b.__proto__=P,b},p(l,x)}function _(l){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},_(l)}function v(){return v=Object.assign||function(l){for(var x=1;x=m&&g(P,T,s.flush(),b)):g(P,T,N,b),S()}).catch(function(){return Promise.reject()})};return D()},l}();function n(l,x){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(v({},l.headers))};return l.rangeEnd&&E.headers.set("Range","bytes="+l.rangeStart+"-"+String(l.rangeEnd-1)),E}function r(l,x){return new self.Request(l.url,x)}var o=function(l){W(x,l);function x(E,b,P){var T;return T=l.call(this,E)||this,T.code=void 0,T.details=void 0,T.code=b,T.details=P,T}return x}(y(Error));G.default=c},"./src/utils/imsc1-ttml-parser.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"IMSC1_CODEC",function(){return d}),I.d(G,"parseIMSC1",function(){return h});var z=I("./src/utils/mp4-tools.ts"),O=I("./src/utils/vttparser.ts"),w=I("./src/utils/vttcue.ts"),W=I("./src/demux/id3.ts"),y=I("./src/utils/timescale-conversion.ts"),L=I("./src/utils/webvtt-parser.ts");function R(){return R=Object.assign||function(m){for(var g=1;g=r&&this.observer.emit(z.Events.ERROR,z.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=c(),[x(s)];var he=q.flush(H);return E(he)?he.then(function(ye){return u.flushRemux(K,ye,s),K}):(this.flushRemux(K,he,s),K)},m.flushRemux=function(s,u,D){var S=u.audioTrack,A=u.avcTrack,N=u.id3Track,j=u.textTrack,K=this.currentTransmuxState,H=K.accurateTimeOffset,U=K.timeOffset;h.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var B=this.remuxer.remux(S,A,N,j,U,H,!0,this.id);s.push({remuxResult:B,chunkMeta:D}),D.transmuxing.executeEnd=c()},m.resetInitialTimestamp=function(s){var u=this.demuxer,D=this.remuxer;if(!u||!D)return;u.resetTimeStamp(s),D.resetTimeStamp(s)},m.resetContiguity=function(){var s=this.demuxer,u=this.remuxer;if(!s||!u)return;s.resetContiguity(),u.resetNextTimestamp()},m.resetInitSegment=function(s,u,D,S){var A=this.demuxer,N=this.remuxer;if(!A||!N)return;A.resetInitSegment(u,D,S),N.resetInitSegment(s,u,D)},m.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},m.transmux=function(s,u,D,S,A){var N;return u&&u.method==="SAMPLE-AES"?N=this.transmuxSampleAes(s,u,D,S,A):N=this.transmuxUnencrypted(s,D,S,A),N},m.transmuxUnencrypted=function(s,u,D,S){var A=this.demuxer.demux(s,u,!1,!this.config.progressive),N=A.audioTrack,j=A.avcTrack,K=A.id3Track,H=A.textTrack,U=this.remuxer.remux(N,j,K,H,u,D,!1,this.id);return{remuxResult:U,chunkMeta:S}},m.transmuxSampleAes=function(s,u,D,S,A){var N=this;return this.demuxer.demuxSampleAes(s,u,D).then(function(j){var K=N.remuxer.remux(j.audioTrack,j.avcTrack,j.id3Track,j.textTrack,D,S,!1,N.id);return{remuxResult:K,chunkMeta:A}})},m.configureTransmuxer=function(s,u){for(var D=this.config,S=this.observer,A=this.typeSupported,N=this.vendor,j=u.audioCodec,K=u.defaultInitPts,H=u.duration,U=u.initSegmentData,B=u.videoCodec,q,ee=0,he=n.length;ee0&&m!=null&&m.key!=null&&m.iv!==null&&m.method!=null&&(g=m),g}var x=function(m){return{remuxResult:{},chunkMeta:m}};function E(T){return"then"in T&&T.then instanceof Function}var b=function(m,g,s,u,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=m,this.videoCodec=g,this.initSegmentData=s,this.duration=u,this.defaultInitPts=D},P=function(m,g,s,u,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=m,this.contiguous=g,this.accurateTimeOffset=s,this.trackSwitch=u,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"discardEPB",function(){return x});var z=I("./src/demux/adts.ts"),O=I("./src/demux/mpegaudio.ts"),w=I("./src/demux/exp-golomb.ts"),W=I("./src/demux/id3.ts"),y=I("./src/demux/sample-aes.ts"),L=I("./src/events.ts"),R=I("./src/utils/mp4-tools.ts"),d=I("./src/utils/logger.ts"),p=I("./src/errors.ts"),_={video:1,audio:2,id3:3,text:4},v=function(){function E(P,T,m){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=P,this.config=T,this.typeSupported=m}E.probe=function(T){var m=E.syncOffset(T);return m<0?!1:(m&&d.logger.warn("MPEG2-TS detected but first sync word found @ offset "+m+", junk ahead ?"),!0)},E.syncOffset=function(T){for(var m=Math.min(1e3,T.length-3*188),g=0;g>4,Ae=void 0;if(Qe>1){if(Ae=Pe+5+T[Pe+4],Ae===Pe+188)continue}else Ae=Pe+4;switch(Ze){case N:je&&(j&&(u=r(j))&&this.parseAVCPES(u,!1),j={data:[],size:0}),j&&(j.data.push(T.subarray(Ae,Pe+188)),j.size+=Pe+188-Ae);break;case K:je&&(U&&(u=r(U))&&(S.isAAC?this.parseAACPES(u):this.parseMPEGPES(u)),U={data:[],size:0}),U&&(U.data.push(T.subarray(Ae,Pe+188)),U.size+=Pe+188-Ae);break;case H:je&&(B&&(u=r(B))&&this.parseID3PES(u),B={data:[],size:0}),B&&(B.data.push(T.subarray(Ae,Pe+188)),B.size+=Pe+188-Ae);break;case 0:je&&(Ae+=T[Ae]+1),he=this._pmtId=c(T,Ae);break;case he:{je&&(Ae+=T[Ae]+1);var me=n(T,Ae,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,g);N=me.avc,N>0&&(D.pid=N),K=me.audio,K>0&&(S.pid=K,S.isAAC=me.isAAC),H=me.id3,H>0&&(A.pid=H),q&&!ee&&(d.logger.log("reparse from beginning"),q=!1,Pe=Ye-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:q=!0;break}}else this.observer.emit(L.Events.ERROR,L.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=j,S.pesData=U,A.pesData=B;var ie={audioTrack:S,avcTrack:D,id3Track:A,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(ie),ie},b.flush=function(){var T=this.remainderData;this.remainderData=null;var m;return T?m=this.demux(T,-1,!1,!0):m={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(m),this.sampleAes?this.decrypt(m,this.sampleAes):m},b.extractRemainingSamples=function(T){var m=T.audioTrack,g=T.avcTrack,s=T.id3Track,u=g.pesData,D=m.pesData,S=s.pesData,A;u&&(A=r(u))?(this.parseAVCPES(A,!0),g.pesData=null):g.pesData=u,D&&(A=r(D))?(m.isAAC?this.parseAACPES(A):this.parseMPEGPES(A),m.pesData=null):(D!=null&&D.size&&d.logger.log("last AAC PES packet truncated,might overlap between fragments"),m.pesData=D),S&&(A=r(S))?(this.parseID3PES(A),s.pesData=null):s.pesData=S},b.demuxSampleAes=function(T,m,g){var s=this.demux(T,g,!0,!this.config.progressive),u=this.sampleAes=new y.default(this.observer,this.config,m);return this.decrypt(s,u)},b.decrypt=function(T,m){return new Promise(function(g){var s=T.audioTrack,u=T.avcTrack;s.samples&&s.isAAC?m.decryptAacSamples(s.samples,0,function(){u.samples?m.decryptAvcSamples(u.samples,0,0,function(){g(T)}):g(T)}):u.samples&&m.decryptAvcSamples(u.samples,0,0,function(){g(T)})})},b.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},b.parseAVCPES=function(T,m){var g=this,s=this._avcTrack,u=this.parseAVCNALu(T.data),D=!1,S=this.avcSample,A,N=!1;T.data=null,S&&u.length&&!s.audFound&&(o(S,s),S=this.avcSample=h(!1,T.pts,T.dts,"")),u.forEach(function(j){switch(j.type){case 1:{A=!0,S||(S=g.avcSample=h(!0,T.pts,T.dts,"")),D&&(S.debug+="NDR "),S.frame=!0;var K=j.data;if(N&&K.length>4){var H=new w.default(K).readSliceType();(H===2||H===4||H===7||H===9)&&(S.key=!0)}break}case 5:A=!0,S||(S=g.avcSample=h(!0,T.pts,T.dts,"")),D&&(S.debug+="IDR "),S.key=!0,S.frame=!0;break;case 6:{A=!0,D&&S&&(S.debug+="SEI ");var U=new w.default(x(j.data));U.readUByte();for(var B=0,q=0,ee=!1,he=0;!ee&&U.bytesAvailable>1;){B=0;do he=U.readUByte(),B+=he;while(he===255);q=0;do he=U.readUByte(),q+=he;while(he===255);if(B===4&&U.bytesAvailable!==0){ee=!0;var ye=U.readUByte();if(ye===181){var Ye=U.readUShort();if(Ye===49){var Pe=U.readUInt();if(Pe===1195456820){var je=U.readUByte();if(je===3){for(var Ze=U.readUByte(),Qe=U.readUByte(),Ae=31&Ze,me=[Ze,Qe],ie=0;ie16){for(var Oe=[],ve=0;ve<16;ve++)Oe.push(U.readUByte().toString(16)),(ve===3||ve===5||ve===7||ve===9)&&Oe.push("-");for(var Ge=q-16,pe=new Uint8Array(Ge),J=0;J=0){var U={data:T.subarray(K,S-s-1),type:H};D.push(U)}else{var B=this.getLastNalUnit();if(B&&(u&&S<=4-u&&(B.state&&(B.data=B.data.subarray(0,B.data.byteLength-u))),N=S-s-1,N>0)){var q=new Uint8Array(B.data.byteLength+N);q.set(B.data,0),q.set(T.subarray(0,N),B.data.byteLength),B.data=q,B.state=0}}S=0&&s>=0){var ee={data:T.subarray(K,m),type:H,state:s};D.push(ee)}if(D.length===0){var he=this.getLastNalUnit();if(he){var ye=new Uint8Array(he.data.byteLength+T.byteLength);ye.set(he.data,0),ye.set(T,he.data.byteLength),he.data=ye}}return g.naluState=s,D},b.parseAACPES=function(T){var m=0,g=this._audioTrack,s=this.aacOverFlow,u=T.data;if(s){this.aacOverFlow=null;var D=s.sample.unit.byteLength,S=Math.min(s.missing,D),A=D-S;s.sample.unit.set(u.subarray(0,S),A),g.samples.push(s.sample),m=s.missing}var N,j;for(N=m,j=u.length;N1;){var D=new Uint8Array(u[0].length+u[1].length);D.set(u[0]),D.set(u[1],u[0].length),u[0]=D,u.splice(1,1)}P=u[0];var S=(P[0]<<16)+(P[1]<<8)+P[2];if(S===1){if(T=(P[4]<<8)+P[5],T&&T>E.size-6)return null;var A=P[7];A&192&&(g=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,A&64?(s=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,g-s>60*9e4&&(d.logger.warn(Math.round((g-s)/9e4)+"s delta between PTS and DTS, align them"),g=s)):s=g),m=P[8];var N=m+9;if(E.size<=N)return null;E.size-=N;for(var j=new Uint8Array(E.size),K=0,H=u.length;KU){N-=U;continue}else P=P.subarray(N),U-=N,N=0;j.set(P,b),b+=U}return T&&(T-=m+3),{data:j,pts:g,dts:s,len:T}}return null}function o(E,b){if(E.units.length&&E.frame){if(E.pts===void 0){var P=b.samples,T=P.length;if(T){var m=P[T-1];E.pts=m.pts,E.dts=m.dts}else{b.dropped++;return}}b.samples.push(E)}E.debug.length&&d.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function l(E,b){var P=E.length;if(P>0){if(b.pts>=E[P-1].pts)E.push(b);else for(var T=P-1;T>=0;T--)if(b.ptsg)return u;return 0}},{key:"maxAutoLevel",get:function(){var m=this.levels,g=this.autoLevelCapping,s;return g===-1&&m&&m.length?s=m.length-1:s=g,s}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(m){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,m)}},{key:"audioTracks",get:function(){var m=this.audioTrackController;return m?m.audioTracks:[]}},{key:"audioTrack",get:function(){var m=this.audioTrackController;return m?m.audioTrack:-1},set:function(m){var g=this.audioTrackController;g&&(g.audioTrack=m)}},{key:"subtitleTracks",get:function(){var m=this.subtitleTrackController;return m?m.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var m=this.subtitleTrackController;return m?m.subtitleTrack:-1},set:function(m){var g=this.subtitleTrackController;g&&(g.subtitleTrack=m)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var m=this.subtitleTrackController;return m?m.subtitleDisplay:!1},set:function(m){var g=this.subtitleTrackController;g&&(g.subtitleDisplay=m)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(m){this.config.lowLatencyMode=m}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return b.defaultConfig?b.defaultConfig:h.hlsDefaultConfig},set:function(m){b.defaultConfig=m}}]),b}();E.defaultConfig=void 0},"./src/is-supported.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"isSupported",function(){return w}),I.d(G,"changeTypeSupported",function(){return W});var z=I("./src/utils/mediasource-helper.ts");function O(){return self.SourceBuffer||self.WebKitSourceBuffer}function w(){var y=Object(z.getMediaSource)();if(!y)return!1;var L=O(),R=y&&typeof y.isTypeSupported=="function"&&y.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),d=!L||L.prototype&&typeof L.prototype.appendBuffer=="function"&&typeof L.prototype.remove=="function";return!!R&&!!d}function W(){var y,L=O();return typeof(L==null||((y=L.prototype)===null||y===void 0)?void 0:y.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return v}),I.d(G,"LoadError",function(){return c});var z=I("./src/polyfills/number.ts"),O=I("./src/errors.ts");function w(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r)}function W(n){var r=typeof Map=="function"?new Map:void 0;return W=function(l){if(l===null||!R(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(l))return r.get(l);r.set(l,x)}function x(){return y(l,arguments,p(this).constructor)}return x.prototype=Object.create(l.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),d(x,l)},W(n)}function y(n,r,o){return L()?y=Reflect.construct:y=function(x,E,b){var P=[null];P.push.apply(P,E);var T=Function.bind.apply(x,P),m=new T;return b&&d(m,b.prototype),m},y.apply(null,arguments)}function L(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}function R(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function d(n,r){return d=Object.setPrototypeOf||function(l,x){return l.__proto__=x,l},d(n,r)}function p(n){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},p(n)}var _=Math.pow(2,17),v=function(){function n(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var r=n.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(l,x){var E=this,b=l.url;if(!b)return Promise.reject(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,networkDetails:null},"Fragment does not have a "+(b?"part list":"url")));this.abort();var P=this.config,T=P.fLoader,m=P.loader;return new Promise(function(g,s){E.loader&&E.loader.destroy();var u=E.loader=l.loader=T?new T(P):new m(P),D=h(l),S={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:_};l.stats=u.stats,u.load(D,S,{onSuccess:function(N,j,K,H){E.resetLoader(l,u),g({frag:l,part:null,payload:N.data,networkDetails:H})},onError:function(N,j,K){E.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,response:N,networkDetails:K}))},onAbort:function(N,j,K){E.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,networkDetails:K}))},onTimeout:function(N,j,K){E.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,networkDetails:K}))},onProgress:function(N,j,K,H){x&&x({frag:l,part:null,payload:K,networkDetails:H})}})})},r.loadPart=function(l,x,E){var b=this;this.abort();var P=this.config,T=P.fLoader,m=P.loader;return new Promise(function(g,s){b.loader&&b.loader.destroy();var u=b.loader=l.loader=T?new T(P):new m(P),D=h(l,x),S={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:_};x.stats=u.stats,u.load(D,S,{onSuccess:function(N,j,K,H){b.resetLoader(l,u),b.updateStatsFromPart(l,x);var U={frag:l,part:x,payload:N.data,networkDetails:H};E(U),g(U)},onError:function(N,j,K){b.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,part:x,response:N,networkDetails:K}))},onAbort:function(N,j,K){l.stats.aborted=x.stats.aborted,b.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,part:x,networkDetails:K}))},onTimeout:function(N,j,K){b.resetLoader(l,u),s(new c({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,part:x,networkDetails:K}))}})})},r.updateStatsFromPart=function(l,x){var E=l.stats,b=x.stats,P=b.total;if(E.loaded+=b.loaded,P){var T=Math.round(l.duration/x.duration),m=Math.min(Math.round(E.loaded/P),T),g=T-m,s=g*Math.round(E.loaded/m);E.total=E.loaded+s}else E.total=Math.max(E.loaded,E.total);var u=E.loading,D=b.loading;u.start?u.first+=D.first-D.start:(u.start=D.start,u.first=D.first),u.end=D.end},r.resetLoader=function(l,x){l.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},n}();function h(n,r){r===void 0&&(r=null);var o=r||n,l={frag:n,part:r,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},x=o.byteRangeStartOffset,E=o.byteRangeEndOffset;return Object(z.isFiniteNumber)(x)&&Object(z.isFiniteNumber)(E)&&(l.rangeStart=x,l.rangeEnd=E),l}var c=function(n){w(r,n);function r(o){for(var l,x=arguments.length,E=new Array(x>1?x-1:0),b=1;b>8*(15-P)&255;return b},l.setDecryptDataFromLevelKey=function(E,b){var P=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(P=y.LevelKey.fromURI(E.uri),P.method=E.method,P.iv=this.createInitializationVector(b),P.keyFormat="identity"),P},l.setElementaryStreamInfo=function(E,b,P,T,m,g){g===void 0&&(g=!1);var s=this.elementaryStreams,u=s[E];if(!u){s[E]={startPTS:b,endPTS:P,startDTS:T,endDTS:m,partial:g};return}u.startPTS=Math.min(u.startPTS,b),u.endPTS=Math.max(u.endPTS,P),u.startDTS=Math.min(u.startDTS,T),u.endDTS=Math.max(u.endDTS,m)},l.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[v.AUDIO]=null,E[v.VIDEO]=null,E[v.AUDIOVIDEO]=null},_(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&W.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(z.isFiniteNumber)(this.programDateTime))return null;var E=Object(z.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),o}(h),n=function(r){R(o,r);function o(l,x,E,b,P){var T;T=r.call(this,E)||this,T.fragOffset=0,T.duration=0,T.gap=!1,T.independent=!1,T.relurl=void 0,T.fragment=void 0,T.index=void 0,T.stats=new L.LoadStats,T.duration=l.decimalFloatingPoint("DURATION"),T.gap=l.bool("GAP"),T.independent=l.bool("INDEPENDENT"),T.relurl=l.enumeratedString("URI"),T.fragment=x,T.index=b;var m=l.enumeratedString("BYTERANGE");return m&&T.setByteRange(m,P),P&&(T.fragOffset=P.fragOffset+P.duration),T}return _(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),o}(h)},"./src/loader/key-loader.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return W});var z=I("./src/events.ts"),O=I("./src/errors.ts"),w=I("./src/utils/logger.ts"),W=function(){function y(R){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=R,this._registerListeners()}var L=y.prototype;return L._registerListeners=function(){this.hls.on(z.Events.KEY_LOADING,this.onKeyLoading,this)},L._unregisterListeners=function(){this.hls.off(z.Events.KEY_LOADING,this.onKeyLoading)},L.destroy=function(){this._unregisterListeners();for(var d in this.loaders){var p=this.loaders[d];p&&p.destroy()}this.loaders={}},L.onKeyLoading=function(d,p){var _=p.frag,v=_.type,h=this.loaders[v];if(!_.decryptdata){w.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var c=_.decryptdata.uri;if(c!==this.decrypturl||this.decryptkey===null){var n=this.hls.config;if(h&&(w.logger.warn("abort previous key loader for type:"+v),h.abort()),!c){w.logger.warn("key uri is falsy");return}var r=n.loader,o=_.loader=this.loaders[v]=new r(n);this.decrypturl=c,this.decryptkey=null;var l={url:c,frag:_,responseType:"arraybuffer"},x={timeout:n.fragLoadingTimeOut,maxRetry:0,retryDelay:n.fragLoadingRetryDelay,maxRetryDelay:n.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(l,x,E)}else this.decryptkey&&(_.decryptdata.key=this.decryptkey,this.hls.trigger(z.Events.KEY_LOADED,{frag:_}))},L.loadsuccess=function(d,p,_){var v=_.frag;if(!v.decryptdata){w.logger.error("after key load, decryptdata unset");return}this.decryptkey=v.decryptdata.key=new Uint8Array(d.data),v.loader=null,delete this.loaders[v.type],this.hls.trigger(z.Events.KEY_LOADED,{frag:v})},L.loaderror=function(d,p){var _=p.frag,v=_.loader;v&&v.abort(),delete this.loaders[_.type],this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:_,response:d})},L.loadtimeout=function(d,p){var _=p.frag,v=_.loader;v&&v.abort(),delete this.loaders[_.type],this.hls.trigger(z.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:_})},y}()},"./src/loader/level-details.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"LevelDetails",function(){return y});var z=I("./src/polyfills/number.ts");function O(L,R){for(var d=0;dp.endSN||_>0||_===0&&v>0,this.updated||this.advanced?this.misses=Math.floor(p.misses*.6):this.misses=p.misses+1,this.availabilityDelay=p.availabilityDelay},w(L,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(z.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||W}},{key:"drift",get:function(){var p=this.driftEndTime-this.driftStartTime;if(p>0){var _=this.driftEnd-this.driftStart;return _*1e3/p}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var p;return(p=this.fragments)!==null&&p!==void 0&&p.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var p;return(p=this.partList)!==null&&p!==void 0&&p.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),L}()},"./src/loader/level-key.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"LevelKey",function(){return y});var z=I("./node_modules/url-toolkit/src/url-toolkit.js"),O=I.n(z);function w(L,R){for(var d=0;d2){var s=g.shift()+".";return s+=parseInt(g.shift()).toString(16),s+=("000"+parseInt(g.shift()).toString(16)).substr(-4),s}return m},P.resolve=function(m,g){return O.buildAbsoluteURL(g,m,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(m,g){var s=[],u={},D=!1;_.lastIndex=0;for(var S;(S=_.exec(m))!=null;)if(S[1]){var A=new R.AttrList(S[1]),N={attrs:A,bitrate:A.decimalInteger("AVERAGE-BANDWIDTH")||A.decimalInteger("BANDWIDTH"),name:A.NAME,url:P.resolve(S[2],g)},j=A.decimalResolution("RESOLUTION");j&&(N.width=j.width,N.height=j.height),l((A.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=P.convertAVC1ToAVCOTI(N.videoCodec)),s.push(N)}else if(S[3]){var K=new R.AttrList(S[3]);K["DATA-ID"]&&(D=!0,u[K["DATA-ID"]]=K)}return{levels:s,sessionData:D?u:null}},P.parseMasterPlaylistMedia=function(m,g,s,u){u===void 0&&(u=[]);var D,S=[],A=0;for(v.lastIndex=0;(D=v.exec(m))!==null;){var N=new R.AttrList(D[1]);if(N.TYPE===s){var j={attrs:N,bitrate:0,id:A++,groupId:N["GROUP-ID"],instreamId:N["INSTREAM-ID"],name:N.NAME||N.LANGUAGE||"",type:s,default:N.bool("DEFAULT"),autoselect:N.bool("AUTOSELECT"),forced:N.bool("FORCED"),lang:N.LANGUAGE,url:N.URI?P.resolve(N.URI,g):""};if(u.length){var K=P.findGroup(u,j.groupId)||u[0];x(j,K,"audioCodec"),x(j,K,"textCodec")}S.push(j)}}return S},P.parseLevelPlaylist=function(m,g,s,u,D){var S=new y.LevelDetails(g),A=S.fragments,N=null,j=0,K=0,H=0,U=0,B=null,q=new W.Fragment(u,g),ee,he,ye,Ye=-1,Pe=!1;for(h.lastIndex=0,S.m3u8=m;(ee=h.exec(m))!==null;){Pe&&(Pe=!1,q=new W.Fragment(u,g),q.start=H,q.sn=j,q.cc=U,q.level=s,N&&(q.initSegment=N,q.rawProgramDateTime=N.rawProgramDateTime));var je=ee[1];if(je){q.duration=parseFloat(je);var Ze=(" "+ee[2]).slice(1);q.title=Ze||null,q.tagList.push(Ze?["INF",je,Ze]:["INF",je])}else if(ee[3])Object(z.isFiniteNumber)(q.duration)&&(q.start=H,ye&&(q.levelkey=ye),q.sn=j,q.level=s,q.cc=U,q.urlId=D,A.push(q),q.relurl=(" "+ee[3]).slice(1),b(q,B),B=q,H+=q.duration,j++,K=0,Pe=!0);else if(ee[4]){var Qe=(" "+ee[4]).slice(1);B?q.setByteRange(Qe,B):q.setByteRange(Qe)}else if(ee[5])q.rawProgramDateTime=(" "+ee[5]).slice(1),q.tagList.push(["PROGRAM-DATE-TIME",q.rawProgramDateTime]),Ye===-1&&(Ye=A.length);else{if(ee=ee[0].match(c),!ee){d.logger.warn("No matches on slow regex match for level playlist!");continue}for(he=1;he-1){d.logger.warn("Keyformat "+Pt+" is not supported from the manifest");continue}else if(Pt!=="identity")continue;X&&(ye=L.LevelKey.fromURL(g,ue),ue&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(X)>=0&&(ye.method=X,ye.keyFormat=Pt,Ke&&(ye.keyID=Ke),We&&(ye.keyFormatVersions=We),ye.iv=Ee));break}case"START":{var Bt=new R.AttrList(me),kt=Bt.decimalFloatingPoint("TIME-OFFSET");Object(z.isFiniteNumber)(kt)&&(S.startTimeOffset=kt);break}case"MAP":{var Qt=new R.AttrList(me);q.relurl=Qt.URI,Qt.BYTERANGE&&q.setByteRange(Qt.BYTERANGE),q.level=s,q.sn="initSegment",ye&&(q.levelkey=ye),q.initSegment=null,N=q,Pe=!0;break}case"SERVER-CONTROL":{var fn=new R.AttrList(me);S.canBlockReload=fn.bool("CAN-BLOCK-RELOAD"),S.canSkipUntil=fn.optionalFloat("CAN-SKIP-UNTIL",0),S.canSkipDateRanges=S.canSkipUntil>0&&fn.bool("CAN-SKIP-DATERANGES"),S.partHoldBack=fn.optionalFloat("PART-HOLD-BACK",0),S.holdBack=fn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var qe=new R.AttrList(me);S.partTarget=qe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=S.partList;Ue||(Ue=S.partList=[]);var vt=K>0?Ue[Ue.length-1]:void 0,Mt=K++,st=new W.Part(new R.AttrList(me),q,g,Mt,vt);Ue.push(st),q.duration+=st.duration;break}case"PRELOAD-HINT":{var Ct=new R.AttrList(me);S.preloadHint=Ct;break}case"RENDITION-REPORT":{var Ne=new R.AttrList(me);S.renditionReports=S.renditionReports||[],S.renditionReports.push(Ne);break}default:d.logger.warn("line parsed but not handled: "+ee);break}}}B&&!B.relurl?(A.pop(),H-=B.duration,S.partList&&(S.fragmentHint=B)):S.partList&&(b(q,B),q.cc=U,S.fragmentHint=q);var Se=A.length,Te=A[0],le=A[Se-1];if(H+=S.skippedSegments*S.targetduration,H>0&&Se&&le){S.averagetargetduration=H/Se;var fe=le.sn;S.endSN=fe!=="initSegment"?fe:0,Te&&(S.startCC=Te.cc,Te.initSegment||S.fragments.every(function(_e){return _e.relurl&&r(_e.relurl)})&&(d.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),q=new W.Fragment(u,g),q.relurl=le.relurl,q.level=s,q.sn="initSegment",Te.initSegment=q,S.needSidxRanges=!0))}else S.endSN=0,S.startCC=0;return S.fragmentHint&&(H+=S.fragmentHint.duration),S.totalduration=H,S.endCC=U,Ye>0&&E(A,Ye),S},P}();function l(P,T){["video","audio","text"].forEach(function(m){var g=P.filter(function(u){return Object(p.isCodecType)(u,m)});if(g.length){var s=g.filter(function(u){return u.lastIndexOf("avc1",0)===0||u.lastIndexOf("mp4a",0)===0});T[m+"Codec"]=s.length>0?s[0]:g[0],P=P.filter(function(u){return g.indexOf(u)===-1})}}),T.unknownCodecs=P}function x(P,T,m){var g=T[m];g&&(P[m]=g)}function E(P,T){for(var m=P[T],g=T;g--;){var s=P[g];if(!s)return;s.programDateTime=m.programDateTime-s.duration*1e3,m=s}}function b(P,T){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):T!=null&&T.programDateTime&&(P.programDateTime=T.endProgramDateTime),Object(z.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/polyfills/number.ts"),O=I("./src/events.ts"),w=I("./src/errors.ts"),W=I("./src/utils/logger.ts"),y=I("./src/utils/mp4-tools.ts"),L=I("./src/loader/m3u8-parser.ts"),R=I("./src/types/loader.ts"),d=I("./src/utils/attr-list.ts");function p(h){var c=h.type;switch(c){case R.PlaylistContextType.AUDIO_TRACK:return R.PlaylistLevelType.AUDIO;case R.PlaylistContextType.SUBTITLE_TRACK:return R.PlaylistLevelType.SUBTITLE;default:return R.PlaylistLevelType.MAIN}}function _(h,c){var n=h.url;return(n===void 0||n.indexOf("data:")===0)&&(n=c.url),n}var v=function(){function h(n){this.hls=void 0,this.loaders=Object.create(null),this.hls=n,this.registerListeners()}var c=h.prototype;return c.registerListeners=function(){var r=this.hls;r.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.unregisterListeners=function(){var r=this.hls;r.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.createInternalLoader=function(r){var o=this.hls.config,l=o.pLoader,x=o.loader,E=l||x,b=new E(o);return r.loader=b,this.loaders[r.type]=b,b},c.getInternalLoader=function(r){return this.loaders[r.type]},c.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},c.destroyInternalLoaders=function(){for(var r in this.loaders){var o=this.loaders[r];o&&o.destroy(),this.resetInternalLoader(r)}},c.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},c.onManifestLoading=function(r,o){var l=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:R.PlaylistContextType.MANIFEST,url:l,deliveryDirectives:null})},c.onLevelLoading=function(r,o){var l=o.id,x=o.level,E=o.url,b=o.deliveryDirectives;this.load({id:l,groupId:null,level:x,responseType:"text",type:R.PlaylistContextType.LEVEL,url:E,deliveryDirectives:b})},c.onAudioTrackLoading=function(r,o){var l=o.id,x=o.groupId,E=o.url,b=o.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:b})},c.onSubtitleTrackLoading=function(r,o){var l=o.id,x=o.groupId,E=o.url,b=o.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:b})},c.load=function(r){var o,l=this.hls.config,x=this.getInternalLoader(r);if(x){var E=x.context;if(E&&E.url===r.url){W.logger.trace("[playlist-loader]: playlist request ongoing");return}W.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),x.abort()}var b,P,T,m;switch(r.type){case R.PlaylistContextType.MANIFEST:b=l.manifestLoadingMaxRetry,P=l.manifestLoadingTimeOut,T=l.manifestLoadingRetryDelay,m=l.manifestLoadingMaxRetryTimeout;break;case R.PlaylistContextType.LEVEL:case R.PlaylistContextType.AUDIO_TRACK:case R.PlaylistContextType.SUBTITLE_TRACK:b=0,P=l.levelLoadingTimeOut;break;default:b=l.levelLoadingMaxRetry,P=l.levelLoadingTimeOut,T=l.levelLoadingRetryDelay,m=l.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(r),(o=r.deliveryDirectives)!==null&&o!==void 0&&o.part){var g;if(r.type===R.PlaylistContextType.LEVEL&&r.level!==null?g=this.hls.levels[r.level].details:r.type===R.PlaylistContextType.AUDIO_TRACK&&r.id!==null?g=this.hls.audioTracks[r.id].details:r.type===R.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(g=this.hls.subtitleTracks[r.id].details),g){var s=g.partTarget,u=g.targetduration;s&&u&&(P=Math.min(Math.max(s*3,u*.8)*1e3,P))}}var D={timeout:P,maxRetry:b,retryDelay:T,maxRetryDelay:m,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(r,D,S)},c.loadsuccess=function(r,o,l,x){if(x===void 0&&(x=null),l.isSidxRequest){this.handleSidxRequest(r,l),this.handlePlaylistLoaded(r,o,l,x);return}this.resetInternalLoader(l.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,l,"no EXTM3U delimiter",x);return}o.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,o,l,x):this.handleMasterPlaylist(r,o,l,x)},c.loaderror=function(r,o,l){l===void 0&&(l=null),this.handleNetworkError(o,l,!1,r)},c.loadtimeout=function(r,o,l){l===void 0&&(l=null),this.handleNetworkError(o,l,!0)},c.handleMasterPlaylist=function(r,o,l,x){var E=this.hls,b=r.data,P=_(r,l),T=L.default.parseMasterPlaylist(b,P),m=T.levels,g=T.sessionData;if(!m.length){this.handleManifestParsingError(r,l,"no level found in manifest",x);return}var s=m.map(function(j){return{id:j.attrs.AUDIO,audioCodec:j.audioCodec}}),u=m.map(function(j){return{id:j.attrs.SUBTITLES,textCodec:j.textCodec}}),D=L.default.parseMasterPlaylistMedia(b,P,"AUDIO",s),S=L.default.parseMasterPlaylistMedia(b,P,"SUBTITLES",u),A=L.default.parseMasterPlaylistMedia(b,P,"CLOSED-CAPTIONS");if(D.length){var N=D.some(function(j){return!j.url});!N&&m[0].audioCodec&&!m[0].attrs.AUDIO&&(W.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new d.AttrList({}),bitrate:0,url:""}))}E.trigger(O.Events.MANIFEST_LOADED,{levels:m,audioTracks:D,subtitles:S,captions:A,url:P,stats:o,networkDetails:x,sessionData:g})},c.handleTrackOrLevelPlaylist=function(r,o,l,x){var E=this.hls,b=l.id,P=l.level,T=l.type,m=_(r,l),g=Object(z.isFiniteNumber)(b)?b:0,s=Object(z.isFiniteNumber)(P)?P:g,u=p(l),D=L.default.parseLevelPlaylist(r.data,m,s,u,g);if(!D.fragments.length){E.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:m,reason:"no fragments found in level",level:typeof l.level=="number"?l.level:void 0});return}if(T===R.PlaylistContextType.MANIFEST){var S={attrs:new d.AttrList({}),bitrate:0,details:D,name:"",url:m};E.trigger(O.Events.MANIFEST_LOADED,{levels:[S],audioTracks:[],url:m,stats:o,networkDetails:x,sessionData:null})}if(o.parsing.end=performance.now(),D.needSidxRanges){var A,N=(A=D.fragments[0].initSegment)===null||A===void 0?void 0:A.url;this.load({url:N,isSidxRequest:!0,type:T,level:P,levelDetails:D,id:b,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}l.levelDetails=D,this.handlePlaylistLoaded(r,o,l,x)},c.handleSidxRequest=function(r,o){var l=Object(y.parseSegmentIndex)(new Uint8Array(r.data));if(!l)return;var x=l.references,E=o.levelDetails;x.forEach(function(b,P){var T=b.info,m=E.fragments[P];m.byteRange.length===0&&m.setByteRange(String(1+T.end-T.start)+"@"+String(T.start)),m.initSegment&&m.initSegment.setByteRange(String(l.moovEndOffset)+"@0")})},c.handleManifestParsingError=function(r,o,l,x){this.hls.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===R.PlaylistContextType.MANIFEST,url:r.url,reason:l,response:r,context:o,networkDetails:x})},c.handleNetworkError=function(r,o,l,x){l===void 0&&(l=!1),W.logger.warn("[playlist-loader]: A network "+(l?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=w.ErrorDetails.UNKNOWN,b=!1,P=this.getInternalLoader(r);switch(r.type){case R.PlaylistContextType.MANIFEST:E=l?w.ErrorDetails.MANIFEST_LOAD_TIMEOUT:w.ErrorDetails.MANIFEST_LOAD_ERROR,b=!0;break;case R.PlaylistContextType.LEVEL:E=l?w.ErrorDetails.LEVEL_LOAD_TIMEOUT:w.ErrorDetails.LEVEL_LOAD_ERROR,b=!1;break;case R.PlaylistContextType.AUDIO_TRACK:E=l?w.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:w.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,b=!1;break;case R.PlaylistContextType.SUBTITLE_TRACK:E=l?w.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:w.ErrorDetails.SUBTITLE_LOAD_ERROR,b=!1;break}P&&this.resetInternalLoader(r.type);var T={type:w.ErrorTypes.NETWORK_ERROR,details:E,fatal:b,url:r.url,loader:P,context:r,networkDetails:o};x&&(T.response=x),this.hls.trigger(O.Events.ERROR,T)},c.handlePlaylistLoaded=function(r,o,l,x){var E=l.type,b=l.level,P=l.id,T=l.groupId,m=l.loader,g=l.levelDetails,s=l.deliveryDirectives;if(!(g!=null&&g.targetduration)){this.handleManifestParsingError(r,l,"invalid target duration",x);return}if(!m)return;g.live&&(m.getCacheAge&&(g.ageHeader=m.getCacheAge()||0),(!m.getCacheAge||isNaN(g.ageHeader))&&(g.ageHeader=0));switch(E){case R.PlaylistContextType.MANIFEST:case R.PlaylistContextType.LEVEL:this.hls.trigger(O.Events.LEVEL_LOADED,{details:g,level:b||0,id:P||0,stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(O.Events.AUDIO_TRACK_LOADED,{details:g,id:P||0,groupId:T||"",stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(O.Events.SUBTITLE_TRACK_LOADED,{details:g,id:P||0,groupId:T||"",stats:o,networkDetails:x,deliveryDirectives:s});break}},h}();G.default=v},"./src/polyfills/number.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"isFiniteNumber",function(){return z}),I.d(G,"MAX_SAFE_INTEGER",function(){return O});var z=Number.isFinite||function(w){return typeof w=="number"&&isFinite(w)},O=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(re,G,I){"use strict";I.r(G);var z=function(){function O(){}return O.getSilentFrame=function(W,y){switch(W){case"mp4a.40.2":if(y===1)return new Uint8Array([0,200,0,128,35,128]);if(y===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(y===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(y===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(y===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(y===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(y===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(y===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(y===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},O}();G.default=z},"./src/remux/mp4-generator.ts":function(re,G,I){"use strict";I.r(G);var z=Math.pow(2,32)-1,O=function(){function w(){}return w.init=function(){w.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var y;for(y in w.types)w.types.hasOwnProperty(y)&&(w.types[y]=[y.charCodeAt(0),y.charCodeAt(1),y.charCodeAt(2),y.charCodeAt(3)]);var L=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),R=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);w.HDLR_TYPES={video:L,audio:R};var d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),p=new Uint8Array([0,0,0,0,0,0,0,0]);w.STTS=w.STSC=w.STCO=p,w.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),w.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),w.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),w.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var _=new Uint8Array([105,115,111,109]),v=new Uint8Array([97,118,99,49]),h=new Uint8Array([0,0,0,1]);w.FTYP=w.box(w.types.ftyp,_,h,_,v),w.DINF=w.box(w.types.dinf,w.box(w.types.dref,d))},w.box=function(y){for(var L=8,R=arguments.length,d=new Array(R>1?R-1:0),p=1;p>24&255,h[1]=L>>16&255,h[2]=L>>8&255,h[3]=L&255,h.set(y,4),_=0,L=8;_>24&255,y>>16&255,y>>8&255,y&255,R>>24,R>>16&255,R>>8&255,R&255,d>>24,d>>16&255,d>>8&255,d&255,85,196,0,0]))},w.mdia=function(y){return w.box(w.types.mdia,w.mdhd(y.timescale,y.duration),w.hdlr(y.type),w.minf(y))},w.mfhd=function(y){return w.box(w.types.mfhd,new Uint8Array([0,0,0,0,y>>24,y>>16&255,y>>8&255,y&255]))},w.minf=function(y){return y.type==="audio"?w.box(w.types.minf,w.box(w.types.smhd,w.SMHD),w.DINF,w.stbl(y)):w.box(w.types.minf,w.box(w.types.vmhd,w.VMHD),w.DINF,w.stbl(y))},w.moof=function(y,L,R){return w.box(w.types.moof,w.mfhd(y),w.traf(R,L))},w.moov=function(y){for(var L=y.length,R=[];L--;)R[L]=w.trak(y[L]);return w.box.apply(null,[w.types.moov,w.mvhd(y[0].timescale,y[0].duration)].concat(R).concat(w.mvex(y)))},w.mvex=function(y){for(var L=y.length,R=[];L--;)R[L]=w.trex(y[L]);return w.box.apply(null,[w.types.mvex].concat(R))},w.mvhd=function(y,L){L*=y;var R=Math.floor(L/(z+1)),d=Math.floor(L%(z+1)),p=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,y>>24&255,y>>16&255,y>>8&255,y&255,R>>24,R>>16&255,R>>8&255,R&255,d>>24,d>>16&255,d>>8&255,d&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return w.box(w.types.mvhd,p)},w.sdtp=function(y){var L=y.samples||[],R=new Uint8Array(4+L.length),d,p;for(d=0;d>>8&255),L.push(_&255),L=L.concat(Array.prototype.slice.call(p));for(d=0;d>>8&255),R.push(_&255),R=R.concat(Array.prototype.slice.call(p));var v=w.box(w.types.avcC,new Uint8Array([1,L[3],L[4],L[5],252|3,224|y.sps.length].concat(L).concat([y.pps.length]).concat(R))),h=y.width,c=y.height,n=y.pixelRatio[0],r=y.pixelRatio[1];return w.box(w.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,h&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),v,w.box(w.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),w.box(w.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255])))},w.esds=function(y){var L=y.config.length;return new Uint8Array([0,0,0,0,3,23+L,0,1,0,4,15+L,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([L]).concat(y.config).concat([6,1,2]))},w.mp4a=function(y){var L=y.samplerate;return w.box(w.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,y.channelCount,0,16,0,0,0,0,L>>8&255,L&255,0,0]),w.box(w.types.esds,w.esds(y)))},w.mp3=function(y){var L=y.samplerate;return w.box(w.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,y.channelCount,0,16,0,0,0,0,L>>8&255,L&255,0,0]))},w.stsd=function(y){return y.type==="audio"?!y.isAAC&&y.codec==="mp3"?w.box(w.types.stsd,w.STSD,w.mp3(y)):w.box(w.types.stsd,w.STSD,w.mp4a(y)):w.box(w.types.stsd,w.STSD,w.avc1(y))},w.tkhd=function(y){var L=y.id,R=y.duration*y.timescale,d=y.width,p=y.height,_=Math.floor(R/(z+1)),v=Math.floor(R%(z+1));return w.box(w.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,0,0,0,0,_>>24,_>>16&255,_>>8&255,_&255,v>>24,v>>16&255,v>>8&255,v&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,d>>8&255,d&255,0,0,p>>8&255,p&255,0,0]))},w.traf=function(y,L){var R=w.sdtp(y),d=y.id,p=Math.floor(L/(z+1)),_=Math.floor(L%(z+1));return w.box(w.types.traf,w.box(w.types.tfhd,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255])),w.box(w.types.tfdt,new Uint8Array([1,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,_>>24,_>>16&255,_>>8&255,_&255])),w.trun(y,R.length+16+20+8+16+8+8),R)},w.trak=function(y){return y.duration=y.duration||4294967295,w.box(w.types.trak,w.tkhd(y),w.mdia(y))},w.trex=function(y){var L=y.id;return w.box(w.types.trex,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},w.trun=function(y,L){var R=y.samples||[],d=R.length,p=12+16*d,_=new Uint8Array(p),v,h,c,n,r,o;for(L+=8+p,_.set([0,0,15,1,d>>>24&255,d>>>16&255,d>>>8&255,d&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255],0),v=0;v>>24&255,c>>>16&255,c>>>8&255,c&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*v);return w.box(w.types.trun,_)},w.initSegment=function(y){w.types||w.init();var L=w.moov(y),R=new Uint8Array(w.FTYP.byteLength+L.byteLength);return R.set(w.FTYP),R.set(L,w.FTYP.byteLength),R},w}();O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0,G.default=O},"./src/remux/mp4-remuxer.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return o}),I.d(G,"normalizePts",function(){return l});var z=I("./src/polyfills/number.ts"),O=I("./src/remux/aac-helper.ts"),w=I("./src/remux/mp4-generator.ts"),W=I("./src/events.ts"),y=I("./src/errors.ts"),L=I("./src/utils/logger.ts"),R=I("./src/types/loader.ts"),d=I("./src/utils/timescale-conversion.ts");function p(){return p=Object.assign||function(P){for(var T=1;T0?D:S.pts},g[0].pts);return s&&L.logger.debug("PTS rollover detected"),u},T.remux=function(g,s,u,D,S,A,N,j){var K,H,U,B,q,ee,he=S,ye=S,Ye=g.pid>-1,Pe=s.pid>-1,je=s.samples.length,Ze=g.samples.length>0,Qe=je>1,Ae=(!Ye||Ze)&&(!Pe||Qe)||this.ISGenerated||N;if(Ae){this.ISGenerated||(U=this.generateIS(g,s,S));var me=this.isVideoContiguous,ie=-1;if(Qe&&(ie=x(s.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,ie>0){L.logger.warn("[mp4-remuxer]: Dropped "+ie+" out of "+je+" video samples due to a missing keyframe");var Oe=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(ie),s.dropped+=ie,ye+=(s.samples[0].pts-Oe)/(s.timescale||9e4)}else ie===-1&&(L.logger.warn("[mp4-remuxer]: No keyframe found out of "+je+" video samples"),ee=!1);if(this.ISGenerated){if(Ze&&Qe){var ve=this.getVideoStartPts(s.samples),Ge=l(g.samples[0].pts,ve)-ve,pe=Ge/s.inputTimeScale;he+=Math.max(0,pe),ye+=Math.max(0,-pe)}if(Ze){if(g.samplerate||(L.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(g,s,S)),H=this.remuxAudio(g,he,this.isAudioContiguous,A,Pe||Qe||j===R.PlaylistLevelType.AUDIO?ye:void 0),Qe){var J=H?H.endPTS-H.startPTS:0;s.inputTimeScale||(L.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(g,s,S)),K=this.remuxVideo(s,ye,me,J)}}else Qe&&(K=this.remuxVideo(s,ye,me,0));K&&(K.firstKeyFrame=ie,K.independent=ie!==-1)}}return this.ISGenerated&&(u.samples.length&&(q=this.remuxID3(u,S)),D.samples.length&&(B=this.remuxText(D,S))),{audio:H,video:K,initSegment:U,independent:ee,text:B,id3:q}},T.generateIS=function(g,s,u){var D=g.samples,S=s.samples,A=this.typeSupported,N={},j=!Object(z.isFiniteNumber)(this._initPTS),K="audio/mp4",H,U,B;if(j&&(H=U=Infinity),g.config&&D.length&&(g.timescale=g.samplerate,g.isAAC||(A.mpeg?(K="audio/mpeg",g.codec=""):A.mp3&&(g.codec="mp3")),N.audio={id:"audio",container:K,codec:g.codec,initSegment:!g.isAAC&&A.mpeg?new Uint8Array(0):w.default.initSegment([g]),metadata:{channelCount:g.channelCount}},j&&(B=g.inputTimeScale,H=U=D[0].pts-Math.round(B*u))),s.sps&&s.pps&&S.length&&(s.timescale=s.inputTimeScale,N.video={id:"main",container:"video/mp4",codec:s.codec,initSegment:w.default.initSegment([s]),metadata:{width:s.width,height:s.height}},j)){B=s.inputTimeScale;var q=this.getVideoStartPts(S),ee=Math.round(B*u);U=Math.min(U,l(S[0].dts,q)-ee),H=Math.min(H,q-ee)}if(Object.keys(N).length)return this.ISGenerated=!0,j&&(this._initPTS=H,this._initDTS=U),{tracks:N,initPTS:H,timescale:B}},T.remuxVideo=function(g,s,u,D){var S=g.inputTimeScale,A=g.samples,N=[],j=A.length,K=this._initPTS,H=this.nextAvcDts,U=8,B,q,ee,he=Number.POSITIVE_INFINITY,ye=Number.NEGATIVE_INFINITY,Ye=0,Pe=!1;if(!u||H===null){var je=s*S,Ze=A[0].pts-l(A[0].dts,A[0].pts);H=je-Ze}for(var Qe=0;QeAe.pts){var me=9e4*.2;Ye=Math.max(Math.min(Ye,Ae.pts-Ae.dts),-1*me)}Ae.dts0?Qe-1:Qe].dts&&(Pe=!0)}Pe&&A.sort(function(Jt,wt){var St=Jt.dts-wt.dts,lt=Jt.pts-wt.pts;return St||lt}),q=A[0].dts,ee=A[A.length-1].dts;var ie=Math.round((ee-q)/(j-1));if(Ye<0){if(Yeie,V=pe<-1;if(J||V){J?L.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(pe,!0)+" ms ("+pe+"dts) hole between fragments detected, filling it"):L.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(-pe,!0)+" ms ("+pe+"dts) overlapping between fragments detected"),q=H;var X=A[0].pts-pe;A[0].dts=q,A[0].pts=X,L.logger.log("Video: First PTS/DTS adjusted: "+Object(d.toMsFromMpegTsClock)(X,!0)+"/"+Object(d.toMsFromMpegTsClock)(q,!0)+", delta: "+Object(d.toMsFromMpegTsClock)(pe,!0)+" ms")}}r&&(q=Math.max(0,q));for(var ue=0,Ee=0,We=0;We0?Ue-1:Ue].dts;if(fe.stretchShortVideoTrack&&this.nextAudioPts!==null){var Me=Math.floor(fe.maxBufferHole*S),at=(D?he+D*S:this.nextAudioPts)-vt.pts;at>Me?(B=at-_e,B<0&&(B=_e),L.logger.log("[mp4-remuxer]: It is approximately "+at/90+" ms to the next segment; using duration "+B/90+" ms for the last video frame.")):B=_e}else B=_e}var Je=Math.round(vt.pts-vt.dts);N.push(new E(vt.key,B,st,Je))}if(N.length&&c&&c<70){var jt=N[0].flags;jt.dependsOn=2,jt.isNonSync=0}console.assert(B!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=ee+B,this.isVideoContiguous=!0;var nn=w.default.moof(g.sequenceNumber++,q,p({},g,{samples:N})),pn="video",an={data1:nn,data2:fn,startPTS:he/S,endPTS:(ye+B)/S,startDTS:q/S,endDTS:H/S,type:pn,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:g.dropped};return g.samples=[],g.dropped=0,console.assert(fn.length,"MDAT length must not be zero"),an},T.remuxAudio=function(g,s,u,D,S){var A=g.inputTimeScale,N=g.samplerate?g.samplerate:A,j=A/N,K=g.isAAC?v:h,H=K*j,U=this._initPTS,B=!g.isAAC&&this.typeSupported.mpeg,q=[],ee=g.samples,he=B?0:8,ye=this.nextAudioPts||-1,Ye=s*A;if(this.isAudioContiguous=u=u||ee.length&&ye>0&&(D&&Math.abs(Ye-ye)<9e3||Math.abs(l(ee[0].pts-U,Ye)-ye)<20*H),ee.forEach(function(Te){Te.pts=l(Te.pts-U,Ye)}),!u||ye<0){if(ee=ee.filter(function(Te){return Te.pts>=0}),!ee.length)return;S===0?ye=0:D?ye=Math.max(0,Ye):ye=ee[0].pts}if(g.isAAC)for(var Pe=S!==void 0,je=this.config.maxAudioFramesDrift,Ze=0,Qe=ye;Ze=je*H&&Oe<_&&Pe){var ve=Math.round(ie/H);Qe=me-ve*H,Qe<0&&(ve--,Qe+=H),Ze===0&&(this.nextAudioPts=ye=Qe),L.logger.warn("[mp4-remuxer]: Injecting "+ve+" audio frame @ "+(Qe/A).toFixed(3)+"s due to "+Math.round(1e3*ie/A)+" ms gap.");for(var Ge=0;Ge0){Ee+=he;try{ue=new Uint8Array(Ee)}catch(Te){this.observer.emit(W.Events.ERROR,W.Events.ERROR,{type:y.ErrorTypes.MUX_ERROR,details:y.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ee,reason:"fail allocating audio mdat "+Ee});return}if(!B){var fn=new DataView(ue.buffer);fn.setUint32(0,Ee),ue.set(w.default.types.mdat,4)}}else return;ue.set(Bt,he);var qe=Bt.byteLength;he+=qe,q.push(new E(!0,K,qe,0)),X=kt}var Ue=q.length;if(!Ue)return;var vt=q[q.length-1];this.nextAudioPts=ye=X+j*vt.duration;var Mt=B?new Uint8Array(0):w.default.moof(g.sequenceNumber++,V/j,p({},g,{samples:q}));g.samples=[];var st=V/A,Ct=ye/A,Ne="audio",Se={data1:Mt,data2:ue,startPTS:st,endPTS:Ct,startDTS:st,endDTS:Ct,type:Ne,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(ue.length,"MDAT length must not be zero"),Se},T.remuxEmptyAudio=function(g,s,u,D){var S=g.inputTimeScale,A=g.samplerate?g.samplerate:S,N=S/A,j=this.nextAudioPts,K=(j!==null?j:D.startDTS*S)+this._initDTS,H=D.endDTS*S+this._initDTS,U=N*v,B=Math.ceil((H-K)/U),q=O.default.getSilentFrame(g.manifestCodec||g.codec,g.channelCount);if(L.logger.warn("[mp4-remuxer]: remux empty Audio"),!q){L.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],he=0;he4294967296;)P+=m;return P}function x(P){for(var T=0;T0?this.lastEndDTS=g:(W.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!P.audio,u=!!P.video,D="";s&&(D+="audio"),u&&(D+="video");var S={data1:E,startPTS:m,startDTS:m,endPTS:g,endDTS:g,type:D,hasAudio:s,hasVideo:u,nb:1,dropped:0};return x.audio=S.type==="audio"?S:void 0,x.video=S.type!=="audio"?S:void 0,x.text=n,x.id3=c,x.initSegment=b,x},d}(),L=function(p,_,v){return Object(O.getStartDTS)(p,_)-v};function R(d,p){var _=d==null?void 0:d.codec;return _&&_.length>4?_:_==="hvc1"?"hvc1.1.c.L120.90":_==="av01"?"av01.0.04M.08":_==="avc1"||p===w.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}G.default=y},"./src/task-loop.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"default",function(){return z});var z=function(){function O(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var w=O.prototype;return w.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},w.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},w.onHandlerDestroyed=function(){},w.hasInterval=function(){return!!this._tickInterval},w.hasNextTick=function(){return!!this._tickTimer},w.setInterval=function(y){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,y),!0)},w.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},w.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},w.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},w.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},w.doTick=function(){},O}()},"./src/types/cmcd.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"CMCDVersion",function(){return z}),I.d(G,"CMCDObjectType",function(){return O}),I.d(G,"CMCDStreamingFormat",function(){return w}),I.d(G,"CMCDStreamType",function(){return W});var z=1,O;(function(y){y.MANIFEST="m",y.AUDIO="a",y.VIDEO="v",y.MUXED="av",y.INIT="i",y.CAPTION="c",y.TIMED_TEXT="tt",y.KEY="k",y.OTHER="o"})(O||(O={}));var w;(function(y){y.DASH="d",y.HLS="h",y.SMOOTH="s",y.OTHER="o"})(w||(w={}));var W;(function(y){y.VOD="v",y.LIVE="l"})(W||(W={}))},"./src/types/level.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"HlsSkip",function(){return w}),I.d(G,"getSkipValue",function(){return W}),I.d(G,"HlsUrlParameters",function(){return y}),I.d(G,"Level",function(){return L});function z(R,d){for(var p=0;pNumber.MAX_SAFE_INTEGER?Infinity:d},y.hexadecimalInteger=function(R){if(this[R]){var d=(this[R]||"0x").slice(2);d=(d.length&1?"0":"")+d;for(var p=new Uint8Array(d.length/2),_=0;_Number.MAX_SAFE_INTEGER?Infinity:d},y.decimalFloatingPoint=function(R){return parseFloat(this[R])},y.optionalFloat=function(R,d){var p=this[R];return p?parseFloat(p):d},y.enumeratedString=function(R){return this[R]},y.bool=function(R){return this[R]==="YES"},y.decimalResolution=function(R){var d=z.exec(this[R]);return d===null?void 0:{width:parseInt(d[1],10),height:parseInt(d[2],10)}},W.parseAttrList=function(R){var d,p={},_='"';for(O.lastIndex=0;(d=O.exec(R))!==null;){var v=d[2];v.indexOf(_)===0&&v.lastIndexOf(_)===v.length-1&&(v=v.slice(1,-1)),p[d[1]]=v}return p},W}()},"./src/utils/binary-search.ts":function(re,G,I){"use strict";I.r(G);var z={search:function(w,W){for(var y=0,L=w.length-1,R=null,d=null;y<=L;){R=(y+L)/2|0,d=w[R];var p=W(d);if(p>0)y=R+1;else if(p<0)L=R-1;else return d}return null}};G.default=z},"./src/utils/buffer-helper.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"BufferHelper",function(){return w});var z=I("./src/utils/logger.ts"),O={length:0,start:function(){return 0},end:function(){return 0}},w=function(){function W(){}return W.isBuffered=function(L,R){try{if(L){for(var d=W.getBuffered(L),p=0;p=d.start(p)&&R<=d.end(p))return!0}}catch(_){}return!1},W.bufferInfo=function(L,R,d){try{if(L){var p=W.getBuffered(L),_=[],v;for(v=0;vh&&(p[v-1].end=L[_].end):p.push(L[_])}else p.push(L[_])}else p=L;for(var c=0,n,r=R,o=R,l=0;l=x&&R=u&&z.logger.log(this.time+" ["+u+"] "+D)},m}(),c=function(g){for(var s=[],u=0;uy&&(this.logger.log(v.DEBUG,"Too large cursor position "+this.pos),this.pos=y)},g.moveCursor=function(u){var D=this.pos+u;if(u>1)for(var S=this.pos+1;S=144&&this.backSpace();var D=w(u);if(this.pos>=y){this.logger.log(v.ERROR,"Cannot insert "+u.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},g.clearFromPos=function(u){var D;for(D=u;D0&&(u?S="["+D.join(" | ")+"]":S=D.join(` +`)),S},g.getTextAndFormat=function(){return this.rows},m}(),x=function(){function m(s,u,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=s,this.outputFilter=u,this.mode=null,this.verbose=0,this.displayedMemory=new l(D),this.nonDisplayedMemory=new l(D),this.lastOutputScreen=new l(D),this.currRollUpRow=this.displayedMemory.rows[W-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var g=m.prototype;return g.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[W-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},g.getHandler=function(){return this.outputFilter},g.setHandler=function(u){this.outputFilter=u},g.setPAC=function(u){this.writeScreen.setPAC(u)},g.setBkgData=function(u){this.writeScreen.setBkgData(u)},g.setMode=function(u){if(u===this.mode)return;this.mode=u,this.logger.log(v.INFO,"MODE="+u),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=u},g.insertChars=function(u){for(var D=0;D=46,D.italics)D.foreground="white";else{var S=Math.floor(u/2)-16,A=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=A[S]}this.logger.log(v.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},g.outputDataUpdate=function(u){u===void 0&&(u=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),u&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},g.cueSplitAtTime=function(u){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,u,this.displayedMemory),this.cueStartTime=u))},m}(),E=function(){function m(s,u,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var S=new h;this.channels=[null,new x(s,u,S),new x(s+1,D,S)],this.cmdHistory=T(),this.logger=S}var g=m.prototype;return g.getHandler=function(u){return this.channels[u].getHandler()},g.setHandler=function(u,D){this.channels[u].setHandler(D)},g.addData=function(u,D){var S,A,N,j=!1;this.logger.time=u;for(var K=0;K ("+c([A,N])+")"),S=this.parseCmd(A,N),S||(S=this.parseMidrow(A,N)),S||(S=this.parsePAC(A,N)),S||(S=this.parseBackgroundAttributes(A,N)),!S&&(j=this.parseChars(A,N),j)){var H=this.currentChannel;if(H&&H>0){var U=this.channels[H];U.insertChars(j)}else this.logger.log(v.WARNING,"No channel found yet. TEXT-MODE?")}!S&&!j&&this.logger.log(v.WARNING,"Couldn't parse cleaned data "+c([A,N])+" orig: "+c([D[K],D[K+1]]))}},g.parseCmd=function(u,D){var S=this.cmdHistory,A=(u===20||u===28||u===21||u===29)&&D>=32&&D<=47,N=(u===23||u===31)&&D>=33&&D<=35;if(!(A||N))return!1;if(P(u,D,S))return b(null,null,S),this.logger.log(v.DEBUG,"Repeated command ("+c([u,D])+") is dropped"),!0;var j=u===20||u===21||u===23?1:2,K=this.channels[j];return u===20||u===21||u===28||u===29?D===32?K.ccRCL():D===33?K.ccBS():D===34?K.ccAOF():D===35?K.ccAON():D===36?K.ccDER():D===37?K.ccRU(2):D===38?K.ccRU(3):D===39?K.ccRU(4):D===40?K.ccFON():D===41?K.ccRDC():D===42?K.ccTR():D===43?K.ccRTD():D===44?K.ccEDM():D===45?K.ccCR():D===46?K.ccENM():D===47&&K.ccEOC():K.ccTO(D-32),b(u,D,S),this.currentChannel=j,!0},g.parseMidrow=function(u,D){var S=0;if((u===17||u===25)&&D>=32&&D<=47){if(u===17?S=1:S=2,S!==this.currentChannel)return this.logger.log(v.ERROR,"Mismatch channel in midrow parsing"),!1;var A=this.channels[S];return A?(A.ccMIDROW(D),this.logger.log(v.DEBUG,"MIDROW ("+c([u,D])+")"),!0):!1}return!1},g.parsePAC=function(u,D){var S,A=this.cmdHistory,N=(u>=17&&u<=23||u>=25&&u<=31)&&D>=64&&D<=127,j=(u===16||u===24)&&D>=64&&D<=95;if(!(N||j))return!1;if(P(u,D,A))return b(null,null,A),!0;var K=u<=23?1:2;D>=64&&D<=95?S=K===1?L[u]:d[u]:S=K===1?R[u]:p[u];var H=this.channels[K];return H?(H.setPAC(this.interpretPAC(S,D)),b(u,D,A),this.currentChannel=K,!0):!1},g.interpretPAC=function(u,D){var S,A={color:null,italics:!1,indent:null,underline:!1,row:u};return D>95?S=D-96:S=D-64,A.underline=(S&1)===1,S<=13?A.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(S/2)]:S<=15?(A.italics=!0,A.color="white"):A.indent=Math.floor((S-16)/2)*4,A},g.parseChars=function(u,D){var S,A=null,N=null;if(u>=25?(S=2,N=u-8):(S=1,N=u),N>=17&&N<=19){var j;N===17?j=D+80:N===18?j=D+112:j=D+144,this.logger.log(v.INFO,"Special char '"+w(j)+"' in channel "+S),A=[j]}else u>=32&&u<=127&&(A=D===0?[u]:[u,D]);if(A){var K=c(A);this.logger.log(v.DEBUG,"Char codes = "+K.join(",")),b(u,D,this.cmdHistory)}return A},g.parseBackgroundAttributes=function(u,D){var S=(u===16||u===24)&&D>=32&&D<=47,A=(u===23||u===31)&&D>=45&&D<=47;if(!(S||A))return!1;var N,j={};u===16||u===24?(N=Math.floor((D-32)/2),j.background=_[N],D%2===1&&(j.background=j.background+"_semi")):D===45?j.background="transparent":(j.foreground="black",D===47&&(j.underline=!0));var K=u<=23?1:2,H=this.channels[K];return H.setBkgData(j),b(u,D,this.cmdHistory),!0},g.reset=function(){for(var u=0;u=16?r--:r++;var b=Object(z.fixLineBreaks)(o.trim()),P=Object(O.generateCueId)(d,p,b);(!R||!R.cues||!R.cues.getCueById(P))&&(c=new l(d,p,b),c.id=P,c.line=x+1,c.align="left",c.position=10+Math.min(80,Math.floor(r*8/32)*10),v.push(c))}return R&&v.length&&(v.sort(function(T,m){return T.line==="auto"||m.line==="auto"?0:T.line>8&&m.line>8?m.line-T.line:T.line-m.line}),v.forEach(function(T){return Object(w.addCueToTrack)(R,T)})),v}};G.default=y},"./src/utils/discontinuities.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"findFirstFragWithCC",function(){return W}),I.d(G,"shouldAlignOnDiscontinuities",function(){return y}),I.d(G,"findDiscontinuousReferenceFrag",function(){return L}),I.d(G,"adjustSlidingStart",function(){return d}),I.d(G,"alignStream",function(){return p}),I.d(G,"alignPDT",function(){return v}),I.d(G,"alignFragmentByPDTDelta",function(){return h}),I.d(G,"alignMediaPlaylistByPDT",function(){return c});var z=I("./src/polyfills/number.ts"),O=I("./src/utils/logger.ts"),w=I("./src/controller/level-helper.ts");function W(n,r){for(var o=null,l=0,x=n.length;lo.startCC||n&&n.cc=this.minWeight_},W.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},W.destroy=function(){},w}();G.default=O},"./src/utils/ewma.ts":function(re,G,I){"use strict";I.r(G);var z=function(){function O(W,y,L){y===void 0&&(y=0),L===void 0&&(L=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=W,this.alpha_=W?Math.exp(Math.log(.5)/W):0,this.estimate_=y,this.totalWeight_=L}var w=O.prototype;return w.sample=function(y,L){var R=Math.pow(this.alpha_,y);this.estimate_=L*(1-R)+R*this.estimate_,this.totalWeight_+=y},w.getTotalWeight=function(){return this.totalWeight_},w.getEstimate=function(){if(this.alpha_){var y=1-Math.pow(this.alpha_,this.totalWeight_);if(y)return this.estimate_/y}return this.estimate_},O}();G.default=z},"./src/utils/fetch-loader.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"fetchSupported",function(){return h});var z=I("./src/polyfills/number.ts"),O=I("./src/loader/load-stats.ts"),w=I("./src/demux/chunk-cache.ts");function W(l,x){l.prototype=Object.create(x.prototype),l.prototype.constructor=l,p(l,x)}function y(l){var x=typeof Map=="function"?new Map:void 0;return y=function(b){if(b===null||!d(b))return b;if(typeof b!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(b))return x.get(b);x.set(b,P)}function P(){return L(b,arguments,_(this).constructor)}return P.prototype=Object.create(b.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),p(P,b)},y(l)}function L(l,x,E){return R()?L=Reflect.construct:L=function(P,T,m){var g=[null];g.push.apply(g,T);var s=Function.bind.apply(P,g),u=new s;return m&&p(u,m.prototype),u},L.apply(null,arguments)}function R(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}function d(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function p(l,x){return p=Object.setPrototypeOf||function(b,P){return b.__proto__=P,b},p(l,x)}function _(l){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},_(l)}function v(){return v=Object.assign||function(l){for(var x=1;x=m&&g(P,T,s.flush(),b)):g(P,T,N,b),S()}).catch(function(){return Promise.reject()})};return D()},l}();function n(l,x){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(v({},l.headers))};return l.rangeEnd&&E.headers.set("Range","bytes="+l.rangeStart+"-"+String(l.rangeEnd-1)),E}function r(l,x){return new self.Request(l.url,x)}var o=function(l){W(x,l);function x(E,b,P){var T;return T=l.call(this,E)||this,T.code=void 0,T.details=void 0,T.code=b,T.details=P,T}return x}(y(Error));G.default=c},"./src/utils/imsc1-ttml-parser.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"IMSC1_CODEC",function(){return d}),I.d(G,"parseIMSC1",function(){return h});var z=I("./src/utils/mp4-tools.ts"),O=I("./src/utils/vttparser.ts"),w=I("./src/utils/vttcue.ts"),W=I("./src/demux/id3.ts"),y=I("./src/utils/timescale-conversion.ts"),L=I("./src/utils/webvtt-parser.ts");function R(){return R=Object.assign||function(m){for(var g=1;g"):z}function y(d){for(var p=arguments.length,_=new Array(p>1?p-1:0),v=1;v>24,x[E+1]=b>>16&255,x[E+2]=b>>8&255,x[E+3]=b&255}function p(x,E){var b=[];if(!E.length)return b;var P,T,m;"data"in x?(P=x.data,T=x.start,m=x.end):(P=x,T=0,m=P.byteLength);for(var g=T;g1?g+s:m;if(u===E[0])if(E.length===1)b.push({data:P,start:g+8,end:D});else{var S=p({data:P,start:g+8,end:D},E.slice(1));S.length&&W.apply(b,S)}g=D}return b}function _(x){var E=p(x,["moov"]),b=E[0],P=b?b.end:null,T=p(x,["sidx"]);if(!T||!T[0])return null;var m=[],g=T[0],s=g.data[0],u=s===0?8:16,D=R(g,u);u+=4;var S=0,A=0;s===0?u+=8:u+=16,u+=2;var N=g.end+A,j=L(g,u);u+=2;for(var K=0;K>>31;if(q===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ee=R(g,H);H+=4,m.push({referenceSize:B,subsegmentDuration:ee,info:{duration:ee/D,start:N,end:N+B-1}}),N+=B,H+=4,u=H}return{earliestPresentationTime:S,timescale:D,version:s,referencesCount:j,references:m,moovEndOffset:P}}function v(x){for(var E=[],b=p(x,["moov","trak"]),P=0;Py)&&(this.startTime=y),this.endTime=L,this.screen=R,this.timelineController.createCaptionsTrack(this.trackName)},w.reset=function(){this.cueRanges=[]},O}()},"./src/utils/texttrack-utils.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"sendAddTrackEvent",function(){return O}),I.d(G,"addCueToTrack",function(){return w}),I.d(G,"clearCurrentCues",function(){return W}),I.d(G,"removeCuesInRange",function(){return y}),I.d(G,"getCuesInRange",function(){return R});var z=I("./src/utils/logger.ts");function O(d,p){var _;try{_=new Event("addtrack")}catch(v){_=document.createEvent("Event"),_.initEvent("addtrack",!1,!1)}_.track=d,p.dispatchEvent(_)}function w(d,p){var _=d.mode;if(_==="disabled"&&(d.mode="hidden"),d.cues&&!d.cues.getCueById(p.id))try{if(d.addCue(p),!d.cues.getCueById(p.id))throw new Error("addCue is failed for: "+p)}catch(h){z.logger.debug("[texttrack-utils]: "+h);var v=new self.TextTrackCue(p.startTime,p.endTime,p.text);v.id=p.id,d.addCue(v)}_==="disabled"&&(d.mode=_)}function W(d){var p=d.mode;if(p==="disabled"&&(d.mode="hidden"),d.cues)for(var _=d.cues.length;_--;)d.removeCue(d.cues[_]);p==="disabled"&&(d.mode=p)}function y(d,p,_){var v=d.mode;if(v==="disabled"&&(d.mode="hidden"),d.cues&&d.cues.length>0)for(var h=R(d.cues,p,_),c=0;cd[_].endTime)return-1;for(var v=0,h=_;v<=h;){var c=Math.floor((h+v)/2);if(pd[c].startTime&&v<_)v=c+1;else return c}return d[v].startTime-p-1)for(var c=h,n=d.length;c=p&&r.endTime<=_)v.push(r);else if(r.startTime>_)return v}return v}},"./src/utils/time-ranges.ts":function(re,G,I){"use strict";I.r(G);var z={toString:function(w){for(var W="",y=w.length,L=0;L1?p-1:0),v=1;v100)throw new Error("Position must be between 0 and 100.");m=S,this.hasBeenReset=!0}})),Object.defineProperty(v,"positionAlign",L({},h,{get:function(){return g},set:function(S){var A=y(S);if(!A)throw new SyntaxError("An invalid or illegal string was specified.");g=A,this.hasBeenReset=!0}})),Object.defineProperty(v,"size",L({},h,{get:function(){return s},set:function(S){if(S<0||S>100)throw new Error("Size must be between 0 and 100.");s=S,this.hasBeenReset=!0}})),Object.defineProperty(v,"align",L({},h,{get:function(){return u},set:function(S){var A=y(S);if(!A)throw new SyntaxError("An invalid or illegal string was specified.");u=A,this.hasBeenReset=!0}})),v.displayState=void 0}return R.prototype.getCueAsHTML=function(){var d=self.WebVTT;return d.convertCueToDOMTree(self,this.text)},R}()},"./src/utils/vttparser.ts":function(re,G,I){"use strict";I.r(G),I.d(G,"parseTimeStamp",function(){return w}),I.d(G,"fixLineBreaks",function(){return p}),I.d(G,"VTTParser",function(){return _});var z=I("./src/utils/vttcue.ts"),O=function(){function v(){}var h=v.prototype;return h.decode=function(n,r){if(!n)return"";if(typeof n!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))},v}();function w(v){function h(n,r,o,l){return(n|0)*3600+(r|0)*60+(o|0)+parseFloat(l||0)}var c=v.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return c?parseFloat(c[2])>59?h(c[2],c[3],0,c[4]):h(c[1],c[2],c[3],c[4]):null}var W=function(){function v(){this.values=Object.create(null)}var h=v.prototype;return h.set=function(n,r){!this.get(n)&&r!==""&&(this.values[n]=r)},h.get=function(n,r,o){return o?this.has(n)?this.values[n]:r[o]:this.has(n)?this.values[n]:r},h.has=function(n){return n in this.values},h.alt=function(n,r,o){for(var l=0;l=0&&o<=100)return this.set(n,o),!0}return!1},v}();function y(v,h,c,n){var r=n?v.split(n):[v];for(var o in r){if(typeof r[o]!="string")continue;var l=r[o].split(c);if(l.length!==2)continue;var x=l[0],E=l[1];h(x,E)}}var L=new z.default(0,0,""),R=L.align==="middle"?"middle":"center";function d(v,h,c){var n=v;function r(){var x=w(v);if(x===null)throw new Error("Malformed timestamp: "+n);return v=v.replace(/^[^\sa-zA-Z-]+/,""),x}function o(x,E){var b=new W;y(x,function(m,g){var s;switch(m){case"region":for(var u=c.length-1;u>=0;u--)if(c[u].id===g){b.set(m,c[u].region);break}break;case"vertical":b.alt(m,g,["rl","lr"]);break;case"line":s=g.split(","),b.integer(m,s[0]),b.percent(m,s[0])&&b.set("snapToLines",!1),b.alt(m,s[0],["auto"]),s.length===2&&b.alt("lineAlign",s[1],["start",R,"end"]);break;case"position":s=g.split(","),b.percent(m,s[0]),s.length===2&&b.alt("positionAlign",s[1],["start",R,"end","line-left","line-right","auto"]);break;case"size":b.percent(m,g);break;case"align":b.alt(m,g,["start",R,"end","left","right"]);break}},/:/,/\s/),E.region=b.get("region",null),E.vertical=b.get("vertical","");var P=b.get("line","auto");P==="auto"&&L.line===-1&&(P=-1),E.line=P,E.lineAlign=b.get("lineAlign","start"),E.snapToLines=b.get("snapToLines",!0),E.size=b.get("size",100),E.align=b.get("align",R);var T=b.get("position","auto");T==="auto"&&L.position===50&&(T=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=T}function l(){v=v.replace(/^\s+/,"")}if(l(),h.startTime=r(),l(),v.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);v=v.substr(3),l(),h.endTime=r(),l(),o(v,h)}function p(v){return v.replace(//gi,` `)}var _=function(){function v(){this.state="INITIAL",this.buffer="",this.decoder=new O,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var h=v.prototype;return h.parse=function(n){var r=this;n&&(r.buffer+=r.decoder.decode(n,{stream:!0}));function o(){var T=r.buffer,m=0;for(T=p(T);m9?parseInt(n.substr(0,n.indexOf(":"))):0;if(!Object(z.isFiniteNumber)(r)||!Object(z.isFiniteNumber)(o)||!Object(z.isFiniteNumber)(l)||!Object(z.isFiniteNumber)(x))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+n);return r+=1e3*o,r+=60*1e3*l,r+=60*60*1e3*x,r},p=function(n){for(var r=5381,o=n.length;o;)r=r*33^n.charCodeAt(--o);return(r>>>0).toString()};function _(c,n,r){return p(c.toString())+p(n.toString())+p(r)}var v=function(n,r,o){var l=n[r],x=n[l.prevCC];if(!x||!x.new&&l.new){n.ccOffset=n.presentationOffset=l.start,l.new=!1;return}for(;(E=x)!==null&&E!==void 0&&E.new;){var E;n.ccOffset+=l.start-x.start,l.new=!1,l=x,x=n[l.prevCC]}n.presentationOffset=o};function h(c,n,r,o,l,x,E,b){var P=new O.VTTParser,T=Object(w.utf8ArrayToStr)(new Uint8Array(c)).trim().replace(L,` `).split(` `),m=[],g=Object(W.toMpegTsClockFromTimescale)(n,r),s="00:00.000",u=0,D=0,S,A=!0,N=!1;P.oncue=function(j){var K=o[l],H=o.ccOffset,U=(u-g)/9e4;if(K!=null&&K.new&&(D!==void 0?H=o.ccOffset=K.start:v(o,l,U)),U&&(H=U-o.presentationOffset),N){var B=j.endTime-j.startTime,q=Object(y.normalizePts)((j.startTime+H-D)*9e4,x*9e4)/9e4;j.startTime=q,j.endTime=q+B}var ee=j.text.trim();j.text=decodeURIComponent(encodeURIComponent(ee)),j.id||(j.id=_(j.startTime,j.endTime,ee)),j.endTime>0&&m.push(j)},P.onparsingerror=function(j){S=j},P.onflush=function(){if(S){b(S);return}E(m)},T.forEach(function(j){if(A)if(R(j,"X-TIMESTAMP-MAP=")){A=!1,N=!0,j.substr(16).split(",").forEach(function(K){R(K,"LOCAL:")?s=K.substr(6):R(K,"MPEGTS:")&&(u=parseInt(K.substr(7)))});try{D=d(s)/1e3}catch(K){N=!1,S=K}return}else j===""&&(A=!1);P.parse(j+` -`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/utils/logger.ts"),O=I("./src/loader/load-stats.ts"),w=/^age:\s*[\d.]+\s*$/m,W=function(){function y(R){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=R?R.xhrSetup:null,this.stats=new O.LoadStats,this.retryDelay=0}var L=y.prototype;return L.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},L.abortInternal=function(){var d=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),d&&(d.onreadystatechange=null,d.onprogress=null,d.readyState!==4&&(this.stats.aborted=!0,d.abort()))},L.abort=function(){var d;this.abortInternal(),(d=this.callbacks)!==null&&d!==void 0&&d.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},L.load=function(d,p,_){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=d,this.config=p,this.callbacks=_,this.retryDelay=p.retryDelay,this.loadInternal()},L.loadInternal=function(){var d=this.config,p=this.context;if(!d)return;var _=this.loader=new self.XMLHttpRequest,v=this.stats;v.loading.first=0,v.loaded=0;var h=this.xhrSetup;try{if(h)try{h(_,p.url)}catch(r){_.open("GET",p.url,!0),h(_,p.url)}_.readyState||_.open("GET",p.url,!0);var c=this.context.headers;if(c)for(var n in c)_.setRequestHeader(n,c[n])}catch(r){this.callbacks.onError({code:_.status,text:r.message},p,_);return}p.rangeEnd&&_.setRequestHeader("Range","bytes="+p.rangeStart+"-"+(p.rangeEnd-1)),_.onreadystatechange=this.readystatechange.bind(this),_.onprogress=this.loadprogress.bind(this),_.responseType=p.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),d.timeout),_.send()},L.readystatechange=function(){var d=this.context,p=this.loader,_=this.stats;if(!d||!p)return;var v=p.readyState,h=this.config;if(_.aborted)return;if(v>=2)if(self.clearTimeout(this.requestTimeout),_.loading.first===0&&(_.loading.first=Math.max(self.performance.now(),_.loading.start)),v===4){p.onreadystatechange=null,p.onprogress=null;var c=p.status;if(c>=200&&c<300){_.loading.end=Math.max(self.performance.now(),_.loading.first);var n,r;if(d.responseType==="arraybuffer"?(n=p.response,r=n.byteLength):(n=p.responseText,r=n.length),_.loaded=_.total=r,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(_,d,n,p),!this.callbacks)return;var l={url:p.responseURL,data:n};this.callbacks.onSuccess(l,_,d,p)}else _.retry>=h.maxRetry||c>=400&&c<499?(z.logger.error(c+" while loading "+d.url),this.callbacks.onError({code:c,text:p.statusText},d,p)):(z.logger.warn(c+" while loading "+d.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,h.maxRetryDelay),_.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),h.timeout)},L.loadtimeout=function(){z.logger.warn("timeout while loading "+this.context.url);var d=this.callbacks;d&&(this.abortInternal(),d.onTimeout(this.stats,this.context,this.loader))},L.loadprogress=function(d){var p=this.stats;p.loaded=d.loaded,d.lengthComputable&&(p.total=d.total)},L.getCacheAge=function(){var d=null;if(this.loader&&w.test(this.loader.getAllResponseHeaders())){var p=this.loader.getResponseHeader("age");d=p?parseFloat(p):null}return d},y}();G.default=W}}).default})},vHTk:function(nn,Ce,M){nn.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return Bt});var re=M("rePB"),G=M("VTBJ"),I=M("KQm4"),z=M("U8pU"),O=M("ODXe"),w=M("q1tI"),W=M("TSYQ"),y=M.n(W),L=M("Gytx"),R=M.n(L),d=M("Kwbf"),p=M("t23M"),_=M("qx4F"),v=M("6eGT"),h=M("IBYe"),c=M("Ff2n"),n=M("c+Xe"),r=M("fyJ8"),o=M("biw7");function l(qe,Ue,vt,Mt,st){var Ct=vt[qe]||{},Ne=vt[Ue]||{},Se,Te;Ct.fixed==="left"?Se=Mt.left[qe]:Ne.fixed==="right"&&(Te=Mt.right[Ue]);var le=!1,fe=!1,_e=!1,Me=!1,rt=vt[Ue+1],Je=vt[qe-1];if(st==="rtl"){if(Se!==void 0){var jt=Je&&Je.fixed==="left";Me=!jt}else if(Te!==void 0){var rn=rt&&rt.fixed==="right";_e=!rn}}else if(Se!==void 0){var pn=rt&&rt.fixed==="left";le=!pn}else if(Te!==void 0){var on=Je&&Je.fixed==="right";fe=!on}return{fixLeft:Se,fixRight:Te,lastFixLeft:le,firstFixRight:fe,lastFixRight:_e,firstFixLeft:Me,isSticky:Mt.isSticky}}var x=M("sR1s");function E(qe){var Ue=qe.cells,vt=qe.stickyOffsets,Mt=qe.flattenColumns,st=qe.rowComponent,Ct=qe.cellComponent,Ne=qe.onHeaderRow,Se=qe.index,Te=w.useContext(o.a),le=Te.prefixCls,fe=Te.direction,_e;Ne&&(_e=Ne(Ue.map(function(rt){return rt.column}),Se));var Me=Object(x.a)(Ue.map(function(rt){return rt.column}));return w.createElement(st,Object.assign({},_e),Ue.map(function(rt,Je){var jt=rt.column,rn=l(rt.colStart,rt.colEnd,Mt,vt,fe),pn;return jt&&jt.onHeaderCell&&(pn=rt.column.onHeaderCell(jt)),w.createElement(r.a,Object.assign({},rt,{ellipsis:jt.ellipsis,align:jt.align,component:Ct,prefixCls:le,key:Me[Je]},rn,{additionalProps:pn,rowType:"header"}))}))}E.displayName="HeaderRow";var b=E;function P(qe){var Ue=[];function vt(Ne,Se){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Te]=Ue[Te]||[];var le=Se,fe=Ne.filter(Boolean).map(function(_e){var Me={key:_e.key,className:_e.className||"",children:_e.title,column:_e,colStart:le},rt=1,Je=_e.children;return Je&&Je.length>0&&(rt=vt(Je,le,Te+1).reduce(function(jt,rn){return jt+rn},0),Me.hasSubColumns=!0),"colSpan"in _e&&(rt=_e.colSpan),"rowSpan"in _e&&(Me.rowSpan=_e.rowSpan),Me.colSpan=rt,Me.colEnd=Me.colStart+rt-1,Ue[Te].push(Me),le+=rt,rt});return fe}vt(qe,0);for(var Mt=Ue.length,st=function(Se){Ue[Se].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=Mt-Se)})},Ct=0;Ct=0;Se-=1){var Te=Ue[Se],le=vt&&vt[Se],fe=le&&le[g.a];(Te||fe||Ne)&&(st.unshift(w.createElement("col",Object.assign({key:Se,style:{width:Te,minWidth:Te}},fe))),Ne=!0)}return w.createElement("colgroup",null,st)}var u=s;function D(qe,Ue){return Object(w.useMemo)(function(){for(var vt=[],Mt=0;Mt1?$-1:0),Y=1;Y<$;Y++)ne[Y-1]=arguments[Y];(k=Kr).onClick.apply(k,[C].concat(ne))}},da;typeof en=="string"?da=en:typeof en=="function"&&(da=en(Mt,st,_e));var Wt=Object(x.a)(ge),Tn=w.createElement(Me,Object.assign({},Kr,{"data-row-key":Ct,className:y()(Ue,"".concat(rn,"-row"),"".concat(rn,"-row-level-").concat(_e),da,Kr&&Kr.className),style:Object(G.a)(Object(G.a)({},vt),Kr?Kr.style:null),onClick:na}),ge.map(function(Q,C){var k=Q.render,$=Q.dataIndex,ne=Q.className,Y=Wt[C],we=pn[C],mt;C===(cn||0)&&oa&&(mt=w.createElement(w.Fragment,null,w.createElement("span",{style:{paddingLeft:"".concat(at*_e,"px")},className:"".concat(rn,"-row-indent indent-level-").concat(_e)}),xt({prefixCls:rn,expanded:Sn,expandable:Br,record:Mt,onExpand:ft})));var It;return Q.onCell&&(It=Q.onCell(Mt,st)),w.createElement(r.a,Object.assign({className:ne,ellipsis:Q.ellipsis,align:Q.align,component:rt,prefixCls:rn,key:Y,record:Mt,index:st,dataIndex:$,render:k,shouldCellUpdate:Q.shouldCellUpdate},we,{appendNode:mt,additionalProps:It}))})),lr;if(Vr&&(fr||Sn)){var Pr=Rt(Mt,st,_e+1,Sn),Er=Xt&&Xt(Mt,st,_e);lr=w.createElement(H,{expanded:Sn,className:y()("".concat(rn,"-expanded-row"),"".concat(rn,"-expanded-row-level-").concat(_e+1),Er),prefixCls:rn,fixHeader:Jt,fixColumn:wt,horizonScroll:St,component:Me,componentWidth:lt,cellComponent:rt,colSpan:ge.length},Pr)}var _r;return Br&&Sn&&(_r=(Mt[Je]||[]).map(function(Q,C){var k=Ne(Q,C);return w.createElement(U,Object.assign({},qe,{key:k,rowKey:k,record:Q,recordKey:k,index:C,indent:_e+1}))})),w.createElement(w.Fragment,null,Tn,lr,_r)}U.displayName="BodyRow";var B=U,q=w.createContext(null),ee=q;function he(qe){var Ue=qe.columnKey,vt=qe.onColumnResize,Mt=w.useRef();return w.useEffect(function(){Mt.current&&vt(Ue,Mt.current.offsetWidth)},[]),w.createElement(p.a,{onResize:function(Ct){var Ne=Ct.offsetWidth;vt(Ue,Ne)}},w.createElement("td",{ref:Mt,style:{padding:0,border:0,height:0}},w.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function be(qe){var Ue=qe.data,vt=qe.getRowKey,Mt=qe.measureColumnWidth,st=qe.expandedKeys,Ct=qe.onRow,Ne=qe.rowExpandable,Se=qe.emptyNode,Te=qe.childrenColumnName,le=w.useContext(ee),fe=le.onColumnResize,_e=w.useContext(o.a),Me=_e.prefixCls,rt=_e.getComponent,Je=w.useContext(j),jt=Je.fixHeader,rn=Je.horizonScroll,pn=Je.flattenColumns,on=Je.componentWidth;return w.useMemo(function(){var Jt=rt(["body","wrapper"],"tbody"),wt=rt(["body","row"],"tr"),St=rt(["body","cell"],"td"),lt;Ue.length?lt=Ue.map(function(Le,yt){var ft=vt(Le,yt);return w.createElement(B,{key:ft,rowKey:ft,record:Le,recordKey:ft,index:yt,rowComponent:wt,cellComponent:St,expandedKeys:st,onRow:Ct,getRowKey:vt,rowExpandable:Ne,childrenColumnName:Te})}):lt=w.createElement(H,{expanded:!0,className:"".concat(Me,"-placeholder"),prefixCls:Me,fixHeader:jt,fixColumn:rn,horizonScroll:rn,component:wt,componentWidth:on,cellComponent:St,colSpan:pn.length},Se);var ge=Object(x.a)(pn);return w.createElement(Jt,{className:"".concat(Me,"-tbody")},Mt&&w.createElement("tr",{"aria-hidden":"true",className:"".concat(Me,"-measure-row"),style:{height:0}},ge.map(function(Le){return w.createElement(he,{key:Le,columnKey:Le,onColumnResize:fe})})),lt)},[Ue,Me,Ct,Mt,st,vt,rt,on,Se,pn])}var Ye=w.memo(be);Ye.displayName="Body";var Pe=Ye,je=M("wRmb"),Qe=M("xEkU"),Ze=M.n(Qe);function Ae(qe){var Ue=Object(w.useRef)(qe),vt=Object(w.useState)({}),Mt=Object(O.a)(vt,2),st=Mt[1],Ct=Object(w.useRef)(null),Ne=Object(w.useRef)([]);function Se(Te){Ct.current===null&&(Ne.current=[],Ct.current=Ze()(function(){Ne.current.forEach(function(le){Ue.current=le(Ue.current)}),Ct.current=null,st({})})),Ne.current.push(Te)}return Object(w.useEffect)(function(){return function(){Ze.a.cancel(Ct.current)}},[]),[Ue.current,Se]}function me(qe){var Ue=Object(w.useRef)(qe),vt=Object(w.useRef)(null);function Mt(){window.clearTimeout(vt.current)}function st(Ne){Ue.current=Ne,Mt(),vt.current=window.setTimeout(function(){Ue.current=null,vt.current=null},100)}function Ct(){return Ue.current}return Object(w.useEffect)(function(){return Mt},[]),[st,Ct]}function ie(qe,Ue,vt){var Mt=Object(w.useMemo)(function(){for(var st=[],Ct=[],Ne=0,Se=0,Te=0;Te=_e&&(xn=_e-Me),Ne({scrollLeft:xn/_e*(fe+2)}),on.current.x=at.pageX},ft=function(){var at=Object(ue.b)(Ct.current).top,xt=at+Ct.current.offsetHeight,Rt=document.documentElement.scrollTop+window.innerHeight;xt-Object(_.a)()<=Rt||at>=Rt-Se?pn(function(cn){return Object(G.a)(Object(G.a)({},cn),{},{isHiddenScrollBar:!0})}):pn(function(cn){return Object(G.a)(Object(G.a)({},cn),{},{isHiddenScrollBar:!1})})},en=function(at){pn(function(xt){return Object(G.a)(Object(G.a)({},xt),{},{scrollLeft:at/fe*_e||0})})};return w.useImperativeHandle(vt,function(){return{setScrollLeft:en}}),w.useEffect(function(){var Xt=Object(X.a)(document.body,"mouseup",ge,!1),at=Object(X.a)(document.body,"mousemove",yt,!1);return ft(),function(){Xt.remove(),at.remove()}},[Me,St]),w.useEffect(function(){var Xt=Object(X.a)(window,"scroll",ft,!1),at=Object(X.a)(window,"resize",ft,!1);return function(){Xt.remove(),at.remove()}},[]),w.useEffect(function(){rn.isHiddenScrollBar||pn(function(Xt){var at,xt;return Object(G.a)(Object(G.a)({},Xt),{},{scrollLeft:Ct.current.scrollLeft/((at=Ct.current)===null||at===void 0?void 0:at.scrollWidth)*((xt=Ct.current)===null||xt===void 0?void 0:xt.clientWidth)})})},[rn.isHiddenScrollBar]),fe<=_e||!Me||rn.isHiddenScrollBar?null:w.createElement("div",{style:{height:Object(_.a)(),width:_e,bottom:Se},className:"".concat(le,"-sticky-scroll")},w.createElement("div",{onMouseDown:Le,ref:rt,className:y()("".concat(le,"-sticky-scroll-bar"),Object(re.a)({},"".concat(le,"-sticky-scroll-bar-active"),St)),style:{width:"".concat(Me,"px"),transform:"translate3d(".concat(rn.scrollLeft,"px, 0, 0)")}}))},We=w.forwardRef(Ee);function Ke(qe,Ue){return w.useMemo(function(){var vt=!!qe;return{isSticky:vt,stickyClassName:vt?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(z.a)(qe)==="object"&&qe.offsetHeader||0,offsetScroll:Object(z.a)(qe)==="object"&&qe.offsetScroll||0}},[qe,Ue])}var Lt=[],Kt={},Bt="rc-table-internal-hook",kt=w.memo(function(qe){var Ue=qe.children;return Ue},function(qe,Ue){return R()(qe.props,Ue.props)?qe.pingLeft!==Ue.pingLeft||qe.pingRight!==Ue.pingRight:!1});function Qt(qe){var Ue,vt=qe.prefixCls,Mt=qe.className,st=qe.rowClassName,Ct=qe.style,Ne=qe.data,Se=qe.rowKey,Te=qe.scroll,le=qe.tableLayout,fe=qe.direction,_e=qe.title,Me=qe.footer,rt=qe.summary,Je=qe.id,jt=qe.showHeader,rn=qe.components,pn=qe.emptyText,on=qe.onRow,Jt=qe.onHeaderRow,wt=qe.internalHooks,St=qe.transformColumns,lt=qe.internalRefs,ge=qe.sticky,Le=Ne||Lt,yt=!!Le.length,ft=w.useState(0),en=Object(O.a)(ft,2),Xt=en[0],at=en[1];w.useEffect(function(){at(Object(_.a)())});var xt=w.useMemo(function(){return Object(x.c)(rn,{})},[rn]),Rt=w.useCallback(function(Ln,Bn){return Object(x.b)(xt,Ln)||Bn},[xt]),cn=w.useMemo(function(){return typeof Se=="function"?Se:function(Ln){var Bn=Ln&&Ln[Se];return Bn}},[Se]),xn=Object(g.c)(qe),ar=xn.expandIcon,fr=xn.expandedRowKeys,tr=xn.defaultExpandedRowKeys,Sn=xn.defaultExpandAllRows,Vr=xn.expandedRowRender,oa=xn.onExpand,Br=xn.onExpandedRowsChange,cr=xn.expandRowByClick,Kr=xn.rowExpandable,na=xn.expandIconColumnIndex,da=xn.expandedRowClassName,Wt=xn.childrenColumnName,Tn=xn.indentSize,lr=ar||J,Pr=Wt||"children",Er=w.useMemo(function(){return Vr?"row":qe.expandable&&wt===Bt&&qe.expandable.__PARENT_RENDER_ICON__||Le.some(function(Ln){return Ln&&Object(z.a)(Ln)==="object"&&Ln[Pr]})?"nest":!1},[!!Vr,Le]),_r=w.useState(function(){return tr||(Sn?V(Le,cn,Pr):[])}),Q=Object(O.a)(_r,2),C=Q[0],k=Q[1],$=w.useMemo(function(){return new Set(fr||C||[])},[fr,C]),ne=w.useCallback(function(Ln){var Bn=cn(Ln,Le.indexOf(Ln)),Vn,Xr=$.has(Bn);Xr?($.delete(Bn),Vn=Object(I.a)($)):Vn=[].concat(Object(I.a)($),[Bn]),k(Vn),oa&&oa(!Xr,Ln),Br&&Br(Vn)},[cn,$,Le,oa,Br]),Y=w.useState(0),we=Object(O.a)(Y,2),mt=we[0],It=we[1],un=Object(je.b)(Object(G.a)(Object(G.a)(Object(G.a)({},qe),xn),{},{expandable:!!Vr,expandedKeys:$,getRowKey:cn,onTriggerExpand:ne,expandIcon:lr,expandIconColumnIndex:na,direction:fe}),wt===Bt?St:null),Ot=Object(O.a)(un,2),bn=Ot[0],En=Ot[1],On=w.useMemo(function(){return{columns:bn,flattenColumns:En}},[bn,En]),pr=w.useRef(),gr=w.useRef(),Un=w.useRef(),jn=w.useState(!1),Fn=Object(O.a)(jn,2),Jn=Fn[0],Tr=Fn[1],Zn=w.useState(!1),yr=Object(O.a)(Zn,2),Ht=yr[0],Hn=yr[1],Hr=Ae(new Map),Lr=Object(O.a)(Hr,2),or=Lr[0],Cr=Lr[1],te=Object(x.a)(En),De=te.map(function(Ln){return or.get(Ln)}),Xe=w.useMemo(function(){return De},[De.join("_")]),ze=Oe(Xe,En.length,fe),ut=Te&&Object(x.d)(Te.y),et=Te&&Object(x.d)(Te.x),bt=et&&En.some(function(Ln){var Bn=Ln.fixed;return Bn}),ht=w.useRef(),Tt=Ke(ge,vt),it=Tt.isSticky,Yt=Tt.offsetHeader,ct=Tt.offsetScroll,ye=Tt.stickyClassName,Et,nt,Nt;ut&&(nt={overflowY:"scroll",maxHeight:Te.y}),et&&(Et={overflowX:"auto"},ut||(nt={overflowY:"hidden"}),Nt={width:Te.x===!0?"auto":Te.x,minWidth:"100%"});var Dt=w.useCallback(function(Ln,Bn){Cr(function(Vn){var Xr=new Map(Vn);return Xr.set(Ln,Bn),Xr})},[]),dt=me(null),gn=Object(O.a)(dt,2),In=gn[0],sn=gn[1];function Ut(Ln,Bn){if(!Bn)return;typeof Bn=="function"?Bn(Ln):Bn.scrollLeft!==Ln&&(Bn.scrollLeft=Ln)}var an=function(Bn){var Vn=Bn.currentTarget,Xr=Bn.scrollLeft,ra=typeof Xr=="number"?Xr:Vn.scrollLeft,aa=Vn||Kt;if(!sn()||sn()===aa){var va;In(aa),Ut(ra,gr.current),Ut(ra,Un.current),Ut(ra,(va=ht.current)===null||va===void 0?void 0:va.setScrollLeft)}if(Vn){var Qr=Vn.scrollWidth,fa=Vn.clientWidth;Tr(ra>0),Hn(ra0?[].concat(Object(G.a)(c),Object(G.a)(d(l).map(function(x){return Object(I.a)({fixed:o},x)}))):[].concat(Object(G.a)(c),[Object(I.a)(Object(I.a)({},n),{},{fixed:o})])},[])}function p(h){for(var c=!0,n=0;n=0;l-=1){var x=h[l];if(o&&x.fixed!=="right")o=!1;else if(!o&&x.fixed==="right"){Object(W.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function _(h){return h.map(function(c){var n=c.fixed,r=Object(z.a)(c,["fixed"]),o=n;return n==="left"?o="right":n==="right"&&(o="left"),Object(I.a)({fixed:o},r)})}function v(h,c){var n=h.prefixCls,r=h.columns,o=h.children,l=h.expandable,x=h.expandedKeys,E=h.getRowKey,b=h.onTriggerExpand,P=h.expandIcon,T=h.rowExpandable,m=h.expandIconColumnIndex,g=h.direction,s=h.expandRowByClick,u=O.useMemo(function(){return r||R(o)},[r,o]),D=O.useMemo(function(){if(l){var N,j=m||0,K=u[j],H=(N={},Object(re.a)(N,L.a,{className:"".concat(n,"-expand-icon-col")}),Object(re.a)(N,"title",""),Object(re.a)(N,"fixed",K?K.fixed:null),Object(re.a)(N,"className","".concat(n,"-row-expand-icon-cell")),Object(re.a)(N,"render",function(q,ee,he){var be=E(ee,he),Ye=x.has(be),Pe=T?T(ee):!0,je=P({prefixCls:n,expanded:Ye,expandable:Pe,record:ee,onExpand:b});return s?O.createElement("span",{onClick:function(Ze){return Ze.stopPropagation()}},je):je}),N),U=u.slice();return j>=0&&U.splice(j,0,H),U}return u},[l,u,E,x,P,g]),S=O.useMemo(function(){var N=D;return c&&(N=c(N)),N.length||(N=[{render:function(){return null}}]),N},[c,D,g]),A=O.useMemo(function(){return g==="rtl"?_(d(S)):d(S)},[S,g]);return[S,A]}Ce.b=v},wzkS:function(nn,Ce,M){"use strict";M.d(Ce,"c",function(){return O}),M.d(Ce,"b",function(){return w}),M.d(Ce,"d",function(){return W}),M.d(Ce,"a",function(){return L}),M.d(Ce,"e",function(){return R});var re=M("9og8"),G=M("WmNS"),I=M.n(G),z=M("ErOA");function O(d){return Object(z.c)("libraries/".concat(d,".json"))}function w(){return Object(z.c)("library_tags.json")}function W(d){return y.apply(this,arguments)}function y(){return y=Object(re.a)(I.a.mark(function d(p){var _;return I.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(z.b)("attachments/".concat(p,".json"));case 2:return _=h.sent,h.abrupt("return",_.status===0);case 4:case"end":return h.stop()}},d)})),y.apply(this,arguments)}function L(d){return Object(z.f)("libraries.json",d)}function R(d,p){return Object(z.g)("libraries/".concat(d,".json"),p)}},xOL1:function(nn,Ce){nn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y0+3":function(nn,Ce,M){"use strict";M.d(Ce,"a",function(){return d}),M.d(Ce,"b",function(){return _});var re=/margin|padding|width|height|max|min|offset/,G={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function z(v){return v.nodeType===1?v.ownerDocument.defaultView.getComputedStyle(v,null):{}}function O(v,h,c){if(h=h.toLowerCase(),c==="auto"){if(h==="height")return v.offsetHeight;if(h==="width")return v.offsetWidth}return h in G||(G[h]=re.test(h)),G[h]?parseFloat(c)||0:c}function w(v,h){var c=arguments.length,n=z(v);return h=I[h]?"cssFloat"in v.style?"cssFloat":"styleFloat":h,c===1?n:O(v,h,n[h]||v.style[h])}function W(v,h,c){var n=arguments.length;if(h=I[h]?"cssFloat"in v.style?"cssFloat":"styleFloat":h,n===3)return typeof c=="number"&&re.test(h)&&(c="".concat(c,"px")),v.style[h]=c,c;for(var r in h)h.hasOwnProperty(r)&&W(v,r,h[r]);return z(v)}function y(v){return v===document.body?document.documentElement.clientWidth:v.offsetWidth}function L(v){return v===document.body?window.innerHeight||document.documentElement.clientHeight:v.offsetHeight}function R(){var v=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:v,height:h}}function d(){var v=document.documentElement.clientWidth,h=window.innerHeight||document.documentElement.clientHeight;return{width:v,height:h}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(v){var h=v.getBoundingClientRect(),c=document.documentElement;return{left:h.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:h.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},y5JW:function(nn,Ce,M){"use strict";M.d(Ce,"c",function(){return c}),M.d(Ce,"a",function(){return n});var re=M("DZo9"),G=M("8z0m"),I=M("+L6B"),z=M("2/Rp"),O=M("9og8"),w=M("k1fw"),W=M("oBTY"),y=M("miYZ"),L=M("tsqr"),R=M("WmNS"),d=M.n(R),p=M("q1tI"),_=M.n(p),v=M("m3rI"),h=M("wzkS"),c="\u3000\u3000";function n(r){var o=["Bytes","KB","MB","GB","TB"];if(r==0)return"0 Byte";var l=parseInt(""+Math.floor(Math.log(r)/Math.log(1024)),10);return(r/Math.pow(1024,l)).toFixed(1)+" "+o[l]}Ce.b=function(r){var o=r.value,l=o===void 0?[]:o,x=r.action,E=r.onChange,b=r.className,P=r.maxSize,T=P===void 0?150:P,m=r.title,g=m===void 0?"\u6587\u4EF6\u4E0A\u4F20":m,s=r.accept,u=s===void 0?null:s,D={multiple:!1,fileList:l,accept:u,withCredentials:!0,beforeUpload:function(N){var j=N.size/1024/1024;return j0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:l.length>0,ghost:!0},g),_.a.createElement("span",{onClick:S,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",T,"M) ")))}}}]); +`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(re,G,I){"use strict";I.r(G);var z=I("./src/utils/logger.ts"),O=I("./src/loader/load-stats.ts"),w=/^age:\s*[\d.]+\s*$/m,W=function(){function y(R){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=R?R.xhrSetup:null,this.stats=new O.LoadStats,this.retryDelay=0}var L=y.prototype;return L.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},L.abortInternal=function(){var d=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),d&&(d.onreadystatechange=null,d.onprogress=null,d.readyState!==4&&(this.stats.aborted=!0,d.abort()))},L.abort=function(){var d;this.abortInternal(),(d=this.callbacks)!==null&&d!==void 0&&d.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},L.load=function(d,p,_){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=d,this.config=p,this.callbacks=_,this.retryDelay=p.retryDelay,this.loadInternal()},L.loadInternal=function(){var d=this.config,p=this.context;if(!d)return;var _=this.loader=new self.XMLHttpRequest,v=this.stats;v.loading.first=0,v.loaded=0;var h=this.xhrSetup;try{if(h)try{h(_,p.url)}catch(r){_.open("GET",p.url,!0),h(_,p.url)}_.readyState||_.open("GET",p.url,!0);var c=this.context.headers;if(c)for(var n in c)_.setRequestHeader(n,c[n])}catch(r){this.callbacks.onError({code:_.status,text:r.message},p,_);return}p.rangeEnd&&_.setRequestHeader("Range","bytes="+p.rangeStart+"-"+(p.rangeEnd-1)),_.onreadystatechange=this.readystatechange.bind(this),_.onprogress=this.loadprogress.bind(this),_.responseType=p.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),d.timeout),_.send()},L.readystatechange=function(){var d=this.context,p=this.loader,_=this.stats;if(!d||!p)return;var v=p.readyState,h=this.config;if(_.aborted)return;if(v>=2)if(self.clearTimeout(this.requestTimeout),_.loading.first===0&&(_.loading.first=Math.max(self.performance.now(),_.loading.start)),v===4){p.onreadystatechange=null,p.onprogress=null;var c=p.status;if(c>=200&&c<300){_.loading.end=Math.max(self.performance.now(),_.loading.first);var n,r;if(d.responseType==="arraybuffer"?(n=p.response,r=n.byteLength):(n=p.responseText,r=n.length),_.loaded=_.total=r,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(_,d,n,p),!this.callbacks)return;var l={url:p.responseURL,data:n};this.callbacks.onSuccess(l,_,d,p)}else _.retry>=h.maxRetry||c>=400&&c<499?(z.logger.error(c+" while loading "+d.url),this.callbacks.onError({code:c,text:p.statusText},d,p)):(z.logger.warn(c+" while loading "+d.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,h.maxRetryDelay),_.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),h.timeout)},L.loadtimeout=function(){z.logger.warn("timeout while loading "+this.context.url);var d=this.callbacks;d&&(this.abortInternal(),d.onTimeout(this.stats,this.context,this.loader))},L.loadprogress=function(d){var p=this.stats;p.loaded=d.loaded,d.lengthComputable&&(p.total=d.total)},L.getCacheAge=function(){var d=null;if(this.loader&&w.test(this.loader.getAllResponseHeaders())){var p=this.loader.getResponseHeader("age");d=p?parseFloat(p):null}return d},y}();G.default=W}}).default})},vHTk:function(tn,Ce,M){tn.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return Bt});var re=M("rePB"),G=M("VTBJ"),I=M("KQm4"),z=M("U8pU"),O=M("ODXe"),w=M("q1tI"),W=M("TSYQ"),y=M.n(W),L=M("Gytx"),R=M.n(L),d=M("Kwbf"),p=M("t23M"),_=M("qx4F"),v=M("6eGT"),h=M("IBYe"),c=M("Ff2n"),n=M("c+Xe"),r=M("fyJ8"),o=M("biw7");function l(qe,Ue,vt,Mt,st){var Ct=vt[qe]||{},Ne=vt[Ue]||{},Se,Te;Ct.fixed==="left"?Se=Mt.left[qe]:Ne.fixed==="right"&&(Te=Mt.right[Ue]);var le=!1,fe=!1,_e=!1,Me=!1,at=vt[Ue+1],Je=vt[qe-1];if(st==="rtl"){if(Se!==void 0){var jt=Je&&Je.fixed==="left";Me=!jt}else if(Te!==void 0){var nn=at&&at.fixed==="right";_e=!nn}}else if(Se!==void 0){var pn=at&&at.fixed==="left";le=!pn}else if(Te!==void 0){var an=Je&&Je.fixed==="right";fe=!an}return{fixLeft:Se,fixRight:Te,lastFixLeft:le,firstFixRight:fe,lastFixRight:_e,firstFixLeft:Me,isSticky:Mt.isSticky}}var x=M("sR1s");function E(qe){var Ue=qe.cells,vt=qe.stickyOffsets,Mt=qe.flattenColumns,st=qe.rowComponent,Ct=qe.cellComponent,Ne=qe.onHeaderRow,Se=qe.index,Te=w.useContext(o.a),le=Te.prefixCls,fe=Te.direction,_e;Ne&&(_e=Ne(Ue.map(function(at){return at.column}),Se));var Me=Object(x.a)(Ue.map(function(at){return at.column}));return w.createElement(st,Object.assign({},_e),Ue.map(function(at,Je){var jt=at.column,nn=l(at.colStart,at.colEnd,Mt,vt,fe),pn;return jt&&jt.onHeaderCell&&(pn=at.column.onHeaderCell(jt)),w.createElement(r.a,Object.assign({},at,{ellipsis:jt.ellipsis,align:jt.align,component:Ct,prefixCls:le,key:Me[Je]},nn,{additionalProps:pn,rowType:"header"}))}))}E.displayName="HeaderRow";var b=E;function P(qe){var Ue=[];function vt(Ne,Se){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Te]=Ue[Te]||[];var le=Se,fe=Ne.filter(Boolean).map(function(_e){var Me={key:_e.key,className:_e.className||"",children:_e.title,column:_e,colStart:le},at=1,Je=_e.children;return Je&&Je.length>0&&(at=vt(Je,le,Te+1).reduce(function(jt,nn){return jt+nn},0),Me.hasSubColumns=!0),"colSpan"in _e&&(at=_e.colSpan),"rowSpan"in _e&&(Me.rowSpan=_e.rowSpan),Me.colSpan=at,Me.colEnd=Me.colStart+at-1,Ue[Te].push(Me),le+=at,at});return fe}vt(qe,0);for(var Mt=Ue.length,st=function(Se){Ue[Se].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=Mt-Se)})},Ct=0;Ct=0;Se-=1){var Te=Ue[Se],le=vt&&vt[Se],fe=le&&le[g.a];(Te||fe||Ne)&&(st.unshift(w.createElement("col",Object.assign({key:Se,style:{width:Te,minWidth:Te}},fe))),Ne=!0)}return w.createElement("colgroup",null,st)}var u=s;function D(qe,Ue){return Object(w.useMemo)(function(){for(var vt=[],Mt=0;Mt1?$-1:0),Y=1;Y<$;Y++)ne[Y-1]=arguments[Y];(k=Kr).onClick.apply(k,[C].concat(ne))}},ma;typeof qt=="string"?ma=qt:typeof qt=="function"&&(ma=qt(Mt,st,_e));var Wt=Object(x.a)(ge),Sn=w.createElement(Me,Object.assign({},Kr,{"data-row-key":Ct,className:y()(Ue,"".concat(nn,"-row"),"".concat(nn,"-row-level-").concat(_e),ma,Kr&&Kr.className),style:Object(G.a)(Object(G.a)({},vt),Kr?Kr.style:null),onClick:oa}),ge.map(function(Q,C){var k=Q.render,$=Q.dataIndex,ne=Q.className,Y=Wt[C],we=pn[C],mt;C===(un||0)&&ca&&(mt=w.createElement(w.Fragment,null,w.createElement("span",{style:{paddingLeft:"".concat(it*_e,"px")},className:"".concat(nn,"-row-indent indent-level-").concat(_e)}),xt({prefixCls:nn,expanded:wn,expandable:Ur,record:Mt,onExpand:ft})));var It;return Q.onCell&&(It=Q.onCell(Mt,st)),w.createElement(r.a,Object.assign({className:ne,ellipsis:Q.ellipsis,align:Q.align,component:at,prefixCls:nn,key:Y,record:Mt,index:st,dataIndex:$,render:k,shouldCellUpdate:Q.shouldCellUpdate},we,{appendNode:mt,additionalProps:It}))})),lr;if(Vr&&(dr||wn)){var Rr=Rt(Mt,st,_e+1,wn),Er=Xt&&Xt(Mt,st,_e);lr=w.createElement(H,{expanded:wn,className:y()("".concat(nn,"-expanded-row"),"".concat(nn,"-expanded-row-level-").concat(_e+1),Er),prefixCls:nn,fixHeader:Jt,fixColumn:wt,horizonScroll:St,component:Me,componentWidth:lt,cellComponent:at,colSpan:ge.length},Rr)}var _r;return Ur&&wn&&(_r=(Mt[Je]||[]).map(function(Q,C){var k=Ne(Q,C);return w.createElement(U,Object.assign({},qe,{key:k,rowKey:k,record:Q,recordKey:k,index:C,indent:_e+1}))})),w.createElement(w.Fragment,null,Sn,lr,_r)}U.displayName="BodyRow";var B=U,q=w.createContext(null),ee=q;function he(qe){var Ue=qe.columnKey,vt=qe.onColumnResize,Mt=w.useRef();return w.useEffect(function(){Mt.current&&vt(Ue,Mt.current.offsetWidth)},[]),w.createElement(p.a,{onResize:function(Ct){var Ne=Ct.offsetWidth;vt(Ue,Ne)}},w.createElement("td",{ref:Mt,style:{padding:0,border:0,height:0}},w.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ye(qe){var Ue=qe.data,vt=qe.getRowKey,Mt=qe.measureColumnWidth,st=qe.expandedKeys,Ct=qe.onRow,Ne=qe.rowExpandable,Se=qe.emptyNode,Te=qe.childrenColumnName,le=w.useContext(ee),fe=le.onColumnResize,_e=w.useContext(o.a),Me=_e.prefixCls,at=_e.getComponent,Je=w.useContext(j),jt=Je.fixHeader,nn=Je.horizonScroll,pn=Je.flattenColumns,an=Je.componentWidth;return w.useMemo(function(){var Jt=at(["body","wrapper"],"tbody"),wt=at(["body","row"],"tr"),St=at(["body","cell"],"td"),lt;Ue.length?lt=Ue.map(function(Le,yt){var ft=vt(Le,yt);return w.createElement(B,{key:ft,rowKey:ft,record:Le,recordKey:ft,index:yt,rowComponent:wt,cellComponent:St,expandedKeys:st,onRow:Ct,getRowKey:vt,rowExpandable:Ne,childrenColumnName:Te})}):lt=w.createElement(H,{expanded:!0,className:"".concat(Me,"-placeholder"),prefixCls:Me,fixHeader:jt,fixColumn:nn,horizonScroll:nn,component:wt,componentWidth:an,cellComponent:St,colSpan:pn.length},Se);var ge=Object(x.a)(pn);return w.createElement(Jt,{className:"".concat(Me,"-tbody")},Mt&&w.createElement("tr",{"aria-hidden":"true",className:"".concat(Me,"-measure-row"),style:{height:0}},ge.map(function(Le){return w.createElement(he,{key:Le,columnKey:Le,onColumnResize:fe})})),lt)},[Ue,Me,Ct,Mt,st,vt,at,an,Se,pn])}var Ye=w.memo(ye);Ye.displayName="Body";var Pe=Ye,je=M("wRmb"),Ze=M("xEkU"),Qe=M.n(Ze);function Ae(qe){var Ue=Object(w.useRef)(qe),vt=Object(w.useState)({}),Mt=Object(O.a)(vt,2),st=Mt[1],Ct=Object(w.useRef)(null),Ne=Object(w.useRef)([]);function Se(Te){Ct.current===null&&(Ne.current=[],Ct.current=Qe()(function(){Ne.current.forEach(function(le){Ue.current=le(Ue.current)}),Ct.current=null,st({})})),Ne.current.push(Te)}return Object(w.useEffect)(function(){return function(){Qe.a.cancel(Ct.current)}},[]),[Ue.current,Se]}function me(qe){var Ue=Object(w.useRef)(qe),vt=Object(w.useRef)(null);function Mt(){window.clearTimeout(vt.current)}function st(Ne){Ue.current=Ne,Mt(),vt.current=window.setTimeout(function(){Ue.current=null,vt.current=null},100)}function Ct(){return Ue.current}return Object(w.useEffect)(function(){return Mt},[]),[st,Ct]}function ie(qe,Ue,vt){var Mt=Object(w.useMemo)(function(){for(var st=[],Ct=[],Ne=0,Se=0,Te=0;Te=_e&&(_n=_e-Me),Ne({scrollLeft:_n/_e*(fe+2)}),an.current.x=it.pageX},ft=function(){var it=Object(ue.b)(Ct.current).top,xt=it+Ct.current.offsetHeight,Rt=document.documentElement.scrollTop+window.innerHeight;xt-Object(_.a)()<=Rt||it>=Rt-Se?pn(function(un){return Object(G.a)(Object(G.a)({},un),{},{isHiddenScrollBar:!0})}):pn(function(un){return Object(G.a)(Object(G.a)({},un),{},{isHiddenScrollBar:!1})})},qt=function(it){pn(function(xt){return Object(G.a)(Object(G.a)({},xt),{},{scrollLeft:it/fe*_e||0})})};return w.useImperativeHandle(vt,function(){return{setScrollLeft:qt}}),w.useEffect(function(){var Xt=Object(X.a)(document.body,"mouseup",ge,!1),it=Object(X.a)(document.body,"mousemove",yt,!1);return ft(),function(){Xt.remove(),it.remove()}},[Me,St]),w.useEffect(function(){var Xt=Object(X.a)(window,"scroll",ft,!1),it=Object(X.a)(window,"resize",ft,!1);return function(){Xt.remove(),it.remove()}},[]),w.useEffect(function(){nn.isHiddenScrollBar||pn(function(Xt){var it,xt;return Object(G.a)(Object(G.a)({},Xt),{},{scrollLeft:Ct.current.scrollLeft/((it=Ct.current)===null||it===void 0?void 0:it.scrollWidth)*((xt=Ct.current)===null||xt===void 0?void 0:xt.clientWidth)})})},[nn.isHiddenScrollBar]),fe<=_e||!Me||nn.isHiddenScrollBar?null:w.createElement("div",{style:{height:Object(_.a)(),width:_e,bottom:Se},className:"".concat(le,"-sticky-scroll")},w.createElement("div",{onMouseDown:Le,ref:at,className:y()("".concat(le,"-sticky-scroll-bar"),Object(re.a)({},"".concat(le,"-sticky-scroll-bar-active"),St)),style:{width:"".concat(Me,"px"),transform:"translate3d(".concat(nn.scrollLeft,"px, 0, 0)")}}))},We=w.forwardRef(Ee);function Ke(qe,Ue){return w.useMemo(function(){var vt=!!qe;return{isSticky:vt,stickyClassName:vt?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(z.a)(qe)==="object"&&qe.offsetHeader||0,offsetScroll:Object(z.a)(qe)==="object"&&qe.offsetScroll||0}},[qe,Ue])}var Pt=[],Kt={},Bt="rc-table-internal-hook",kt=w.memo(function(qe){var Ue=qe.children;return Ue},function(qe,Ue){return R()(qe.props,Ue.props)?qe.pingLeft!==Ue.pingLeft||qe.pingRight!==Ue.pingRight:!1});function Qt(qe){var Ue,vt=qe.prefixCls,Mt=qe.className,st=qe.rowClassName,Ct=qe.style,Ne=qe.data,Se=qe.rowKey,Te=qe.scroll,le=qe.tableLayout,fe=qe.direction,_e=qe.title,Me=qe.footer,at=qe.summary,Je=qe.id,jt=qe.showHeader,nn=qe.components,pn=qe.emptyText,an=qe.onRow,Jt=qe.onHeaderRow,wt=qe.internalHooks,St=qe.transformColumns,lt=qe.internalRefs,ge=qe.sticky,Le=Ne||Pt,yt=!!Le.length,ft=w.useState(0),qt=Object(O.a)(ft,2),Xt=qt[0],it=qt[1];w.useEffect(function(){it(Object(_.a)())});var xt=w.useMemo(function(){return Object(x.c)(nn,{})},[nn]),Rt=w.useCallback(function(Pn,Bn){return Object(x.b)(xt,Pn)||Bn},[xt]),un=w.useMemo(function(){return typeof Se=="function"?Se:function(Pn){var Bn=Pn&&Pn[Se];return Bn}},[Se]),_n=Object(g.c)(qe),ar=_n.expandIcon,dr=_n.expandedRowKeys,er=_n.defaultExpandedRowKeys,wn=_n.defaultExpandAllRows,Vr=_n.expandedRowRender,ca=_n.onExpand,Ur=_n.onExpandedRowsChange,ur=_n.expandRowByClick,Kr=_n.rowExpandable,oa=_n.expandIconColumnIndex,ma=_n.expandedRowClassName,Wt=_n.childrenColumnName,Sn=_n.indentSize,lr=ar||J,Rr=Wt||"children",Er=w.useMemo(function(){return Vr?"row":qe.expandable&&wt===Bt&&qe.expandable.__PARENT_RENDER_ICON__||Le.some(function(Pn){return Pn&&Object(z.a)(Pn)==="object"&&Pn[Rr]})?"nest":!1},[!!Vr,Le]),_r=w.useState(function(){return er||(wn?V(Le,un,Rr):[])}),Q=Object(O.a)(_r,2),C=Q[0],k=Q[1],$=w.useMemo(function(){return new Set(dr||C||[])},[dr,C]),ne=w.useCallback(function(Pn){var Bn=un(Pn,Le.indexOf(Pn)),Vn,Yr=$.has(Bn);Yr?($.delete(Bn),Vn=Object(I.a)($)):Vn=[].concat(Object(I.a)($),[Bn]),k(Vn),ca&&ca(!Yr,Pn),Ur&&Ur(Vn)},[un,$,Le,ca,Ur]),Y=w.useState(0),we=Object(O.a)(Y,2),mt=we[0],It=we[1],ln=Object(je.b)(Object(G.a)(Object(G.a)(Object(G.a)({},qe),_n),{},{expandable:!!Vr,expandedKeys:$,getRowKey:un,onTriggerExpand:ne,expandIcon:lr,expandIconColumnIndex:oa,direction:fe}),wt===Bt?St:null),Ot=Object(O.a)(ln,2),yn=Ot[0],bn=Ot[1],Tn=w.useMemo(function(){return{columns:yn,flattenColumns:bn}},[yn,bn]),pr=w.useRef(),gr=w.useRef(),Un=w.useRef(),Nn=w.useState(!1),Fn=Object(O.a)(Nn,2),$n=Fn[0],Sr=Fn[1],Qn=w.useState(!1),yr=Object(O.a)(Qn,2),Ht=yr[0],Hn=yr[1],Hr=Ae(new Map),Ar=Object(O.a)(Hr,2),or=Ar[0],Cr=Ar[1],te=Object(x.a)(bn),De=te.map(function(Pn){return or.get(Pn)}),Xe=w.useMemo(function(){return De},[De.join("_")]),ze=Oe(Xe,bn.length,fe),ut=Te&&Object(x.d)(Te.y),et=Te&&Object(x.d)(Te.x),bt=et&&bn.some(function(Pn){var Bn=Pn.fixed;return Bn}),ht=w.useRef(),Tt=Ke(ge,vt),nt=Tt.isSticky,Yt=Tt.offsetHeader,ct=Tt.offsetScroll,be=Tt.stickyClassName,Et,rt,Nt;ut&&(rt={overflowY:"scroll",maxHeight:Te.y}),et&&(Et={overflowX:"auto"},ut||(rt={overflowY:"hidden"}),Nt={width:Te.x===!0?"auto":Te.x,minWidth:"100%"});var Dt=w.useCallback(function(Pn,Bn){Cr(function(Vn){var Yr=new Map(Vn);return Yr.set(Pn,Bn),Yr})},[]),dt=me(null),gn=Object(O.a)(dt,2),kn=gn[0],on=gn[1];function Ut(Pn,Bn){if(!Bn)return;typeof Bn=="function"?Bn(Pn):Bn.scrollLeft!==Pn&&(Bn.scrollLeft=Pn)}var rn=function(Bn){var Vn=Bn.currentTarget,Yr=Bn.scrollLeft,sa=typeof Yr=="number"?Yr:Vn.scrollLeft,la=Vn||Kt;if(!on()||on()===la){var ba;kn(la),Ut(sa,gr.current),Ut(sa,Un.current),Ut(sa,(ba=ht.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Vn){var na=Vn.scrollWidth,va=Vn.clientWidth;Sr(sa>0),Hn(sa0?[].concat(Object(G.a)(c),Object(G.a)(d(l).map(function(x){return Object(I.a)({fixed:o},x)}))):[].concat(Object(G.a)(c),[Object(I.a)(Object(I.a)({},n),{},{fixed:o})])},[])}function p(h){for(var c=!0,n=0;n=0;l-=1){var x=h[l];if(o&&x.fixed!=="right")o=!1;else if(!o&&x.fixed==="right"){Object(W.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function _(h){return h.map(function(c){var n=c.fixed,r=Object(z.a)(c,["fixed"]),o=n;return n==="left"?o="right":n==="right"&&(o="left"),Object(I.a)({fixed:o},r)})}function v(h,c){var n=h.prefixCls,r=h.columns,o=h.children,l=h.expandable,x=h.expandedKeys,E=h.getRowKey,b=h.onTriggerExpand,P=h.expandIcon,T=h.rowExpandable,m=h.expandIconColumnIndex,g=h.direction,s=h.expandRowByClick,u=O.useMemo(function(){return r||R(o)},[r,o]),D=O.useMemo(function(){if(l){var N,j=m||0,K=u[j],H=(N={},Object(re.a)(N,L.a,{className:"".concat(n,"-expand-icon-col")}),Object(re.a)(N,"title",""),Object(re.a)(N,"fixed",K?K.fixed:null),Object(re.a)(N,"className","".concat(n,"-row-expand-icon-cell")),Object(re.a)(N,"render",function(q,ee,he){var ye=E(ee,he),Ye=x.has(ye),Pe=T?T(ee):!0,je=P({prefixCls:n,expanded:Ye,expandable:Pe,record:ee,onExpand:b});return s?O.createElement("span",{onClick:function(Qe){return Qe.stopPropagation()}},je):je}),N),U=u.slice();return j>=0&&U.splice(j,0,H),U}return u},[l,u,E,x,P,g]),S=O.useMemo(function(){var N=D;return c&&(N=c(N)),N.length||(N=[{render:function(){return null}}]),N},[c,D,g]),A=O.useMemo(function(){return g==="rtl"?_(d(S)):d(S)},[S,g]);return[S,A]}Ce.b=v},wzkS:function(tn,Ce,M){"use strict";M.d(Ce,"c",function(){return O}),M.d(Ce,"b",function(){return w}),M.d(Ce,"d",function(){return W}),M.d(Ce,"a",function(){return L}),M.d(Ce,"e",function(){return R});var re=M("9og8"),G=M("WmNS"),I=M.n(G),z=M("ErOA");function O(d){return Object(z.c)("libraries/".concat(d,".json"))}function w(){return Object(z.c)("library_tags.json")}function W(d){return y.apply(this,arguments)}function y(){return y=Object(re.a)(I.a.mark(function d(p){var _;return I.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(z.b)("attachments/".concat(p,".json"));case 2:return _=h.sent,h.abrupt("return",_.status===0);case 4:case"end":return h.stop()}},d)})),y.apply(this,arguments)}function L(d){return Object(z.f)("libraries.json",d)}function R(d,p){return Object(z.g)("libraries/".concat(d,".json"),p)}},xOL1:function(tn,Ce){tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y0+3":function(tn,Ce,M){"use strict";M.d(Ce,"a",function(){return d}),M.d(Ce,"b",function(){return _});var re=/margin|padding|width|height|max|min|offset/,G={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function z(v){return v.nodeType===1?v.ownerDocument.defaultView.getComputedStyle(v,null):{}}function O(v,h,c){if(h=h.toLowerCase(),c==="auto"){if(h==="height")return v.offsetHeight;if(h==="width")return v.offsetWidth}return h in G||(G[h]=re.test(h)),G[h]?parseFloat(c)||0:c}function w(v,h){var c=arguments.length,n=z(v);return h=I[h]?"cssFloat"in v.style?"cssFloat":"styleFloat":h,c===1?n:O(v,h,n[h]||v.style[h])}function W(v,h,c){var n=arguments.length;if(h=I[h]?"cssFloat"in v.style?"cssFloat":"styleFloat":h,n===3)return typeof c=="number"&&re.test(h)&&(c="".concat(c,"px")),v.style[h]=c,c;for(var r in h)h.hasOwnProperty(r)&&W(v,r,h[r]);return z(v)}function y(v){return v===document.body?document.documentElement.clientWidth:v.offsetWidth}function L(v){return v===document.body?window.innerHeight||document.documentElement.clientHeight:v.offsetHeight}function R(){var v=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:v,height:h}}function d(){var v=document.documentElement.clientWidth,h=window.innerHeight||document.documentElement.clientHeight;return{width:v,height:h}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(v){var h=v.getBoundingClientRect(),c=document.documentElement;return{left:h.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:h.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},y5JW:function(tn,Ce,M){"use strict";M.d(Ce,"c",function(){return c}),M.d(Ce,"a",function(){return n});var re=M("DZo9"),G=M("8z0m"),I=M("+L6B"),z=M("2/Rp"),O=M("9og8"),w=M("k1fw"),W=M("oBTY"),y=M("miYZ"),L=M("tsqr"),R=M("WmNS"),d=M.n(R),p=M("q1tI"),_=M.n(p),v=M("m3rI"),h=M("wzkS"),c="\u3000\u3000";function n(r){var o=["Bytes","KB","MB","GB","TB"];if(r==0)return"0 Byte";var l=parseInt(""+Math.floor(Math.log(r)/Math.log(1024)),10);return(r/Math.pow(1024,l)).toFixed(1)+" "+o[l]}Ce.b=function(r){var o=r.value,l=o===void 0?[]:o,x=r.action,E=r.onChange,b=r.className,P=r.maxSize,T=P===void 0?150:P,m=r.title,g=m===void 0?"\u6587\u4EF6\u4E0A\u4F20":m,s=r.accept,u=s===void 0?null:s,D={multiple:!1,fileList:l,accept:u,withCredentials:!0,beforeUpload:function(N){var j=N.size/1024/1024;return j0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:l.length>0,ghost:!0},g),_.a.createElement("span",{onClick:S,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",T,"M) ")))}}}]); diff --git a/p__Classrooms__Lists__CourseGroup__Detail__index.e5a54098.async.js b/p__Classrooms__Lists__CourseGroup__Detail__index.e5a54098.async.js index c5c3a5680e..66a5f08fd8 100644 --- a/p__Classrooms__Lists__CourseGroup__Detail__index.e5a54098.async.js +++ b/p__Classrooms__Lists__CourseGroup__Detail__index.e5a54098.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[54,8],{"+QRC":function(xe,A,t){"use strict";var v=t("E9nw"),E={"text/plain":"Text","text/html":"Url",default:"Text"},Y="Copy to clipboard: #{key}, Enter";function te(n){var U=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,U)}function j(n,U){var D,f,F,R,z,N,P=!1;U||(U={}),D=U.debug||!1;try{F=v(),R=document.createRange(),z=document.getSelection(),N=document.createElement("span"),N.textContent=n,N.style.all="unset",N.style.position="fixed",N.style.top=0,N.style.clip="rect(0, 0, 0, 0)",N.style.whiteSpace="pre",N.style.webkitUserSelect="text",N.style.MozUserSelect="text",N.style.msUserSelect="text",N.style.userSelect="text",N.addEventListener("copy",function(r){if(r.stopPropagation(),U.format)if(r.preventDefault(),typeof r.clipboardData=="undefined"){D&&console.warn("unable to use e.clipboardData"),D&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var O=E[U.format]||E.default;window.clipboardData.setData(O,n)}else r.clipboardData.clearData(),r.clipboardData.setData(U.format,n);U.onCopy&&(r.preventDefault(),U.onCopy(r.clipboardData))}),document.body.appendChild(N),R.selectNodeContents(N),z.addRange(R);var s=document.execCommand("copy");if(!s)throw new Error("copy command was unsuccessful");P=!0}catch(r){D&&console.error("unable to copy using execCommand: ",r),D&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(U.format||"text",n),U.onCopy&&U.onCopy(window.clipboardData),P=!0}catch(O){D&&console.error("unable to copy using clipboardData: ",O),D&&console.error("falling back to prompt"),f=te("message"in U?U.message:Y),window.prompt(f,n)}}finally{z&&(typeof z.removeRange=="function"?z.removeRange(R):z.removeAllRanges()),N&&document.body.removeChild(N),F()}return P}xe.exports=j},"6+eU":function(xe,A,t){"use strict";t.d(A,"a",function(){return d});var v=t("wx14"),E=t("rePB"),Y=t("VTBJ"),te=t("1OyB"),j=t("vuIU"),n=t("Ji7U"),U=t("LK+K"),D=t("q1tI"),f=t.n(D),F=t("TSYQ"),R=t.n(F),z=function(_){var a,o="".concat(_.rootPrefixCls,"-item"),e=R()(o,"".concat(o,"-").concat(_.page),(a={},Object(E.a)(a,"".concat(o,"-active"),_.active),Object(E.a)(a,_.className,!!_.className),Object(E.a)(a,"".concat(o,"-disabled"),!_.page),a)),m=function(){_.onClick(_.page)},p=function(V){_.onKeyPress(V,_.onClick,_.page)};return f.a.createElement("li",{title:_.showTitle?_.page:null,className:e,onClick:m,onKeyPress:p,tabIndex:"0"},_.itemRender(_.page,"page",f.a.createElement("a",{rel:"nofollow"},_.page)))},N=z,P={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(h){Object(n.a)(a,h);var _=Object(U.a)(a);function a(){var o;Object(te.a)(this,a);for(var e=arguments.length,m=new Array(e),p=0;p=0||C.relatedTarget.className.indexOf("".concat(ne,"-next"))>=0))return;o.setState({goInputText:""}),H(o.getValidValue())},o.go=function(C){var V=o.state.goInputText;if(V==="")return;(C.keyCode===P.ENTER||C.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,m=e.goInputText,p=e.current;return!m||isNaN(m)?p:Number(m)}},{key:"getPageSizeOptions",value:function(){var e=this.props,m=e.pageSize,p=e.pageSizeOptions;return p.some(function(C){return C.toString()===m.toString()})?p:p.concat([m.toString()]).sort(function(C,V){var x=isNaN(Number(C))?0:Number(C),H=isNaN(Number(V))?0:Number(V);return x-H})}},{key:"render",value:function(){var e=this,m=this.props,p=m.pageSize,C=m.locale,V=m.rootPrefixCls,x=m.changeSize,H=m.quickGo,ne=m.goButton,me=m.selectComponentClass,Se=m.buildOptionText,ue=m.selectPrefixCls,K=m.disabled,fe=this.state.goInputText,ge="".concat(V,"-options"),be=me,pe=null,B=null,k=null;if(!x&&!H)return null;var Q=this.getPageSizeOptions();if(x&&be){var W=Q.map(function(y,ee){return f.a.createElement(be.Option,{key:ee,value:y.toString()},(Se||e.buildOptionText)(y))});pe=f.a.createElement(be,{disabled:K,prefixCls:ue,showSearch:!1,className:"".concat(ge,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(p||Q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},W)}return H&&(ne&&(k=typeof ne=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(ge,"-quick-jumper-button")},C.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ne)),B=f.a.createElement("div",{className:"".concat(ge,"-quick-jumper")},C.jump_to,f.a.createElement("input",{disabled:K,type:"text",value:fe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),C.page,k)),f.a.createElement("li",{className:"".concat(ge)},pe,B)}}]),a}(f.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=s,O=t("N2Kk");function b(){}function i(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h}function c(h,_,a){return a}function u(h,_,a){var o=typeof h=="undefined"?_.pageSize:h;return Math.floor((a.total-1)/o)+1}var g=function(h){Object(n.a)(a,h);var _=Object(U.a)(a);function a(o){var e;Object(te.a)(this,a),e=_.call(this,o),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(u(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(x,H){var ne=e.props.prefixCls,me=x||f.a.createElement("button",{type:"button","aria-label":H,className:"".concat(ne,"-item-link")});return typeof x=="function"&&(me=f.a.createElement(x,Object(Y.a)({},e.props))),me},e.savePaginationNode=function(x){e.paginationNode=x},e.isValid=function(x){return i(x)&&x!==e.state.current},e.shouldDisplayQuickJumper=function(){var x=e.props,H=x.showQuickJumper,ne=x.pageSize,me=x.total;return me<=ne?!1:H},e.handleKeyDown=function(x){(x.keyCode===P.ARROW_UP||x.keyCode===P.ARROW_DOWN)&&x.preventDefault()},e.handleKeyUp=function(x){var H=e.getValidValue(x),ne=e.state.currentInputValue;H!==ne&&e.setState({currentInputValue:H}),x.keyCode===P.ENTER?e.handleChange(H):x.keyCode===P.ARROW_UP?e.handleChange(H-1):x.keyCode===P.ARROW_DOWN&&e.handleChange(H+1)},e.changePageSize=function(x){var H=e.state.current,ne=u(x,e.state,e.props);H=H>ne?ne:H,ne===0&&(H=e.state.current),typeof x=="number"&&("pageSize"in e.props||e.setState({pageSize:x}),"current"in e.props||e.setState({current:H,currentInputValue:H})),e.props.onShowSizeChange(H,x),"onChange"in e.props&&e.props.onChange&&e.props.onChange(H,x)},e.handleChange=function(x){var H=e.props.disabled,ne=x;if(e.isValid(ne)&&!H){var me=u(void 0,e.state,e.props);ne>me?ne=me:ne<1&&(ne=1),"current"in e.props||e.setState({current:ne,currentInputValue:ne});var Se=e.state.pageSize;return e.props.onChange(ne,Se),ne}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?ne-2:0),Se=2;Se=p?V=p:V=Number(m),V}},{key:"getShowSizeChanger",value:function(){var e=this.props,m=e.showSizeChanger,p=e.total,C=e.totalBoundaryShowSizeChanger;return typeof m!="undefined"?m:p>C}},{key:"renderPrev",value:function(e){var m=this.props,p=m.prevIcon,C=m.itemRender,V=C(e,"prev",this.getItemIcon(p,"prev page")),x=!this.hasPrev();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"renderNext",value:function(e){var m=this.props,p=m.nextIcon,C=m.itemRender,V=C(e,"next",this.getItemIcon(p,"next page")),x=!this.hasNext();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"render",value:function(){var e=this,m=this.props,p=m.prefixCls,C=m.className,V=m.style,x=m.disabled,H=m.hideOnSinglePage,ne=m.total,me=m.locale,Se=m.showQuickJumper,ue=m.showLessItems,K=m.showTitle,fe=m.showTotal,ge=m.simple,be=m.itemRender,pe=m.showPrevNextJumpers,B=m.jumpPrevIcon,k=m.jumpNextIcon,Q=m.selectComponentClass,W=m.selectPrefixCls,y=m.pageSizeOptions,ee=this.state,J=ee.current,he=ee.pageSize,je=ee.currentInputValue;if(H===!0&&ne<=he)return null;var se=u(void 0,this.state,this.props),ve=[],Me=null,Re=null,w=null,ke=null,we=null,Ce=Se&&Se.goButton,ye=ue?1:2,Ve=J-1>0?J-1:0,$e=J+1=ye*2&&J!==1+2&&(ve[0]=Object(D.cloneElement)(ve[0],{className:"".concat(p,"-item-after-jump-prev")}),ve.unshift(Me)),se-J>=ye*2&&J!==se-2&&(ve[ve.length-1]=Object(D.cloneElement)(ve[ve.length-1],{className:"".concat(p,"-item-before-jump-next")}),ve.push(Re)),T!==1&&ve.unshift(w),G!==se&&ve.push(ke)}var L=null;fe&&(L=f.a.createElement("li",{className:"".concat(p,"-total-text")},fe(ne,[ne===0?0:(J-1)*he+1,J*he>ne?ne:J*he])));var M=!this.hasPrev()||!se,I=!this.hasNext()||!se;return f.a.createElement("ul",Object(v.a)({className:R()(p,C,Object(E.a)({},"".concat(p,"-disabled"),x)),style:V,unselectable:"unselectable",ref:this.savePaginationNode},Ge),L,f.a.createElement("li",{title:K?me.prev_page:null,onClick:this.prev,tabIndex:M?null:0,onKeyPress:this.runIfEnterPrev,className:R()("".concat(p,"-prev"),Object(E.a)({},"".concat(p,"-disabled"),M)),"aria-disabled":M},this.renderPrev(Ve)),ve,f.a.createElement("li",{title:K?me.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:R()("".concat(p,"-next"),Object(E.a)({},"".concat(p,"-disabled"),I)),"aria-disabled":I},this.renderNext($e)),f.a.createElement(r,{disabled:x,locale:me,rootPrefixCls:p,selectComponentClass:Q,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:J,pageSize:he,pageSizeOptions:y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ce}))}}],[{key:"getDerivedStateFromProps",value:function(e,m){var p={};if("current"in e&&(p.current=e.current,e.current!==m.current&&(p.currentInputValue=p.current)),"pageSize"in e&&e.pageSize!==m.pageSize){var C=m.current,V=u(e.pageSize,m,e);C=C>V?V:C,"current"in e||(p.current=C,p.currentInputValue=C),p.pageSize=e.pageSize}return p}}]),a}(f.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:b,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:b,locale:O.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var d=g},"6RRn":function(xe,A,t){"use strict";var v=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var Y=t("IBYe"),te=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=v.b},"6ZIh":function(xe,A,t){xe.exports={flex_box_center:"flex_box_center___223o2",flex_space_between:"flex_space_between___3hj_b",flex_box_vertical_center:"flex_box_vertical_center___AoxCR",flex_box_center_end:"flex_box_center_end___35GUF",flex_box_column:"flex_box_column___3BJWq",bg:"bg___u82_j",containerTitle:"containerTitle___1z7cs",containerDesc:"containerDesc___xy-Ng",listItem:"listItem___3uTWe",title:"title___2Be4h",titleLeft:"titleLeft___1s_Pv",titleRight:"titleRight___zdezu",acitons:"acitons___2uJ-u",memberManager:"memberManager___2_rgM",headWrap:"headWrap___1Edub",checkbox:"checkbox___3m9MH"}},"6eGT":function(xe,A,t){"use strict";function v(E){return null}A.a=v},"815F":function(xe,A,t){"use strict";t.d(A,"e",function(){return U}),t.d(A,"c",function(){return f}),t.d(A,"d",function(){return F}),t.d(A,"a",function(){return z}),t.d(A,"f",function(){return N}),t.d(A,"b",function(){return P});var v=t("KQm4"),E=t("VTBJ"),Y=t("Ff2n"),te=t("Zm9Q"),j=t("Kwbf"),n=t("OZM5");function U(s,r){return s!=null?s:r}function D(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function O(b){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(b||[]).forEach(function(c){var u=c.key,g=c.children;Object(j.a)(u!=null,"Tree node must have a certain key: [".concat(i).concat(u,"]"));var d=String(u);Object(j.a)(!r.has(d)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(d)),r.set(d,!0),O(g,"".concat(i).concat(d," > "))})}O(s)}function f(s){function r(O){var b=Object(te.a)(O);return b.map(function(i){if(!Object(n.i)(i))return Object(j.a)(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var c=i.key,u=i.props,g=u.children,d=Object(Y.a)(u,["children"]),h=Object(E.a)({key:c},d),_=r(g);return _.length&&(h.children=_),h}).filter(function(i){return i})}return r(s)}function F(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(r===!0?[]:r),b=[];function i(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(g,d){var h=Object(n.h)(u?u.pos:"0",d),_=U(g.key,h),a=Object(E.a)(Object(E.a)({},g),{},{parent:u,pos:h,children:null,data:g,isStart:[].concat(Object(v.a)(u?u.isStart:[]),[d===0]),isEnd:[].concat(Object(v.a)(u?u.isEnd:[]),[d===c.length-1])});return b.push(a),r===!0||O.has(_)?a.children=i(g.children||[],a):a.children=[],a})}return i(s),b}function R(s,r,O){var b;O?typeof O=="string"?b=function(u){return u[O]}:typeof O=="function"&&(b=function(u){return O(u)}):b=function(u,g){return U(u.key,g)};function i(c,u,g){var d=c?c.children:s,h=c?Object(n.h)(g.pos,u):"0";if(c){var _=b(c,h),a={node:c,index:u,pos:h,key:_,parentPos:g.node?g.pos:null,level:g.level+1};r(a)}d&&d.forEach(function(o,e){i(o,e,{node:c,pos:h,level:g?g.level+1:-1})})}i(null)}function z(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=r.initWrapper,b=r.processEntity,i=r.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,u={},g={},d={posEntities:u,keyEntities:g};return O&&(d=O(d)||d),R(s,function(h){var _=h.node,a=h.index,o=h.pos,e=h.key,m=h.parentPos,p=h.level,C={node:_,index:a,key:e,pos:o,level:p},V=U(e,o);u[o]=C,g[V]=C,C.parent=u[m],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),b&&b(C,d)},c),i&&i(d),d}function N(s,r){var O=r.expandedKeys,b=r.selectedKeys,i=r.loadedKeys,c=r.loadingKeys,u=r.checkedKeys,g=r.halfCheckedKeys,d=r.dragOverNodeKey,h=r.dropPosition,_=r.keyEntities,a=_[s],o={eventKey:s,expanded:O.indexOf(s)!==-1,selected:b.indexOf(s)!==-1,loaded:i.indexOf(s)!==-1,loading:c.indexOf(s)!==-1,checked:u.indexOf(s)!==-1,halfChecked:g.indexOf(s)!==-1,pos:String(a?a.pos:""),dragOver:d===s&&h===0,dragOverGapTop:d===s&&h===-1,dragOverGapBottom:d===s&&h===1};return o}function P(s){var r=s.data,O=s.expanded,b=s.selected,i=s.checked,c=s.loaded,u=s.loading,g=s.halfChecked,d=s.dragOver,h=s.dragOverGapTop,_=s.dragOverGapBottom,a=s.pos,o=s.active,e=Object(E.a)(Object(E.a)({},r),{},{expanded:O,selected:b,checked:i,loaded:c,loading:u,halfChecked:g,dragOver:d,dragOverGapTop:h,dragOverGapBottom:_,pos:a,active:o});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("MNnm"),E="rc-util-key";function Y(U){if(U.attachTo)return U.attachTo;var D=document.querySelector("head");return D||document.body}function te(U){var D,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(v.a)())return null;var F=document.createElement("style");if((D=f.csp)===null||D===void 0?void 0:D.nonce){var R;F.nonce=(R=f.csp)===null||R===void 0?void 0:R.nonce}F.innerHTML=U;var z=Y(f),N=z.firstChild;return f.prepend&&z.prepend?z.prepend(F):f.prepend&&N?z.insertBefore(F,N):z.appendChild(F),F}var j=new Map;function n(U,D){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=Y(f);if(!j.has(F)){var R=te("",f),z=R.parentNode;j.set(F,z),z.removeChild(R)}var N=Array.from(j.get(F).children).find(function(b){return b.tagName==="STYLE"&&b[E]===D});if(N){var P,s;if(((P=f.csp)===null||P===void 0?void 0:P.nonce)&&N.nonce!==((s=f.csp)===null||s===void 0?void 0:s.nonce)){var r;N.nonce=(r=f.csp)===null||r===void 0?void 0:r.nonce}return N.innerHTML!==U&&(N.innerHTML=U),N}var O=te(U,f);return O[E]=D,O}},BdwD:function(xe,A,t){"use strict";var v=t("+L6B"),E=t("2/Rp"),Y=t("0Owb"),te=t("k1fw"),j=t("q1tI"),n=t.n(j),U=t("FOrL"),D=t.n(U),f=function(R){var z=R.buttonProps,N=z===void 0?{}:z,P=R.styles,s=P===void 0?{}:P,r=R.customText,O=R.ButtonText,b=R.ButtonClick,i=R.Buttonclass,c=R.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(te.a)(Object(te.a)({},{color:"#999",margin:"200px auto"}),s)},n.a.createElement("img",{src:D.a}),n.a.createElement("p",{className:"mt20 font14"},r||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&n.a.createElement(E.a,Object(Y.a)({className:i,onClick:b},N),O),c&&c)};A.a=f},E9nw:function(xe,A){xe.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var v=document.activeElement,E=[],Y=0;Y1&&arguments[1]!==void 0?arguments[1]:1,I=ye.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(h.a)(ue).map(function(fe,ge){if(!j.isValidElement(fe)||!fe.type)return null;var be=fe.type.isSelectOptGroup,pe=fe.key,B=fe.props,k=B.children,Q=Object(U.a)(B,["children"]);return K||!be?_(fe):Object(d.a)(Object(d.a)({key:"__RC_SELECT_GRP__".concat(pe===null?ge:pe,"__"),label:pe},Q),{},{options:a(k)})}).filter(function(fe){return fe})}var o=t("2Qr1"),e=t("qNPg"),m=t("U8pU"),p=t("Kwbf"),C=t("WKfj");function V(ue){var K=ue.mode,fe=ue.options,ge=ue.children,be=ue.backfill,pe=ue.allowClear,B=ue.placeholder,k=ue.getInputElement,Q=ue.showSearch,W=ue.onSearch,y=ue.defaultOpen,ee=ue.autoFocus,J=ue.labelInValue,he=ue.value,je=ue.inputValue,se=ue.optionLabelProp,ve=K==="multiple"||K==="tags",Me=Q!==void 0?Q:ve||K==="combobox",Re=fe||a(ge);if(Object(p.a)(K!=="tags"||Re.every(function(Ce){return!Ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var w=Re.some(function(Ce){return Ce.options?Ce.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in Ce?Ce.value:Ce.key)=="number"});Object(p.a)(!w,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(p.a)(K!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(p.a)(K==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(p.a)(K==="combobox"||!k,"`getInputElement` only work with `combobox` mode."),Object(p.b)(K!=="combobox"||!k||!pe||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!Me&&K!=="combobox"&&K!=="tags"&&Object(p.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(p.b)(!y||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),he!=null){var ke=Object(C.d)(he);Object(p.a)(!J||ke.every(function(Ce){return Object(m.a)(Ce)==="object"&&("key"in Ce||"value"in Ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(p.a)(!ve||Array.isArray(he),"`value` should be array when `mode` is `multiple` or `tags`")}if(ge){var we=null;Object(h.a)(ge).some(function(Ce){if(!j.isValidElement(Ce)||!Ce.type)return!1;var ye=Ce.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Ve=Object(h.a)(Ce.props.children).every(function($e){return!j.isValidElement($e)||!Ce.type||$e.type.isSelectOption?!0:(we=$e.type,!1)});return!Ve}return we=ye,!0}),we&&Object(p.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(p.a)(je===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=V,H=Object(e.a)({prefixCls:"rc-select",components:{optionList:b},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:x,fillOptionsWithMissingValue:o.a}),ne=function(ue){Object(Y.a)(fe,ue);var K=Object(te.a)(fe);function fe(){var ge;return Object(v.a)(this,fe),ge=K.apply(this,arguments),ge.selectRef=j.createRef(),ge.focus=function(){ge.selectRef.current.focus()},ge.blur=function(){ge.selectRef.current.blur()},ge}return Object(E.a)(fe,[{key:"render",value:function(){return j.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),fe}(j.Component);ne.Option=c,ne.OptGroup=g;var me=ne,Se=A.c=me},NvD2:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("Kwbf");function E(U,D){var f=new Set;return U.forEach(function(F){D.has(F)||f.add(F)}),f}function Y(U){var D=U||{},f=D.disabled,F=D.disableCheckbox,R=D.checkable;return!!(f||F)||R===!1}function te(U,D,f,F){for(var R=new Set(U),z=new Set,N=0;N<=f;N+=1){var P=D.get(N)||new Set;P.forEach(function(b){var i=b.key,c=b.node,u=b.children,g=u===void 0?[]:u;R.has(i)&&!F(c)&&g.filter(function(d){return!F(d.node)}).forEach(function(d){R.add(d.key)})})}for(var s=new Set,r=f;r>=0;r-=1){var O=D.get(r)||new Set;O.forEach(function(b){var i=b.parent,c=b.node;if(F(c)||!b.parent||s.has(b.parent.key))return;if(F(b.parent.node)){s.add(i.key);return}var u=!0,g=!1;(i.children||[]).filter(function(d){return!F(d.node)}).forEach(function(d){var h=d.key,_=R.has(h);u&&!_&&(u=!1),!g&&(_||z.has(h))&&(g=!0)}),u&&R.add(i.key),g&&z.add(i.key),s.add(i.key)})}return{checkedKeys:Array.from(R),halfCheckedKeys:Array.from(E(z,R))}}function j(U,D,f,F,R){for(var z=new Set(U),N=new Set(D),P=0;P<=F;P+=1){var s=f.get(P)||new Set;s.forEach(function(i){var c=i.key,u=i.node,g=i.children,d=g===void 0?[]:g;!z.has(c)&&!N.has(c)&&!R(u)&&d.filter(function(h){return!R(h.node)}).forEach(function(h){z.delete(h.key)})})}N=new Set;for(var r=new Set,O=F;O>=0;O-=1){var b=f.get(O)||new Set;b.forEach(function(i){var c=i.parent,u=i.node;if(R(u)||!i.parent||r.has(i.parent.key))return;if(R(i.parent.node)){r.add(c.key);return}var g=!0,d=!1;(c.children||[]).filter(function(h){return!R(h.node)}).forEach(function(h){var _=h.key,a=z.has(_);g&&!a&&(g=!1),!d&&(a||N.has(_))&&(d=!0)}),g||z.delete(c.key),d&&N.add(c.key),r.add(c.key)})}return{checkedKeys:Array.from(z),halfCheckedKeys:Array.from(E(N,z))}}function n(U,D,f,F){var R=[],z;F?z=F:z=Y;var N=new Set(U.filter(function(O){var b=!!f[O];return b||R.push(O),b})),P=new Map,s=0;Object.keys(f).forEach(function(O){var b=f[O],i=b.level,c=P.get(i);c||(c=new Set,P.set(i,c)),c.add(b),s=Math.max(s,i)}),Object(v.a)(!R.length,"Tree missing follow keys: ".concat(R.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var r;return D===!0?r=te(N,P,s,z):r=j(N,D.halfCheckedKeys,P,s,z),r}},OZM5:function(xe,A,t){"use strict";t.d(A,"b",function(){return F}),t.d(A,"a",function(){return R}),t.d(A,"k",function(){return z}),t.d(A,"h",function(){return N}),t.d(A,"i",function(){return P}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return r}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return c}),t.d(A,"e",function(){return u}),t.d(A,"f",function(){return g});var v=t("KQm4"),E=t("U8pU"),Y=t("Ff2n"),te=t("q1tI"),j=t.n(te),n=t("Kwbf"),U=t("WaYH"),D=.25,f=2;function F(d,h){var _=d.slice(),a=_.indexOf(h);return a>=0&&_.splice(a,1),_}function R(d,h){var _=d.slice();return _.indexOf(h)===-1&&_.push(h),_}function z(d){return d.split("-")}function N(d,h){return"".concat(d,"-").concat(h)}function P(d){return d&&d.type&&d.type.isTreeNode}function s(d,h){var _=[d],a=h[d];function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(m){var p=m.key,C=m.children;_.push(p),o(C)})}return o(a.children),_}function r(d,h){var _=d.clientY,a=h.selectHandle.getBoundingClientRect(),o=a.top,e=a.bottom,m=a.height,p=Math.max(m*D,f);return _<=o+p?-1:_>=e-p?1:0}function O(d,h){if(!d)return;var _=h.multiple;return _?d.slice():d.length?[d[0]]:d}var b=function(h){return h};function i(d,h){if(!d)return[];var _=h||{},a=_.processProps,o=a===void 0?b:a,e=Array.isArray(d)?d:[d];return e.map(function(m){var p=m.children,C=Object(Y.a)(m,["children"]),V=i(p,h);return j.a.createElement(U.a,Object.assign({},o(C)),V)})}function c(d){if(!d)return null;var h;if(Array.isArray(d))h={checkedKeys:d,halfCheckedKeys:void 0};else if(Object(E.a)(d)==="object")h={checkedKeys:d.checked||void 0,halfCheckedKeys:d.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return h}function u(d,h){var _=new Set;function a(o){if(_.has(o))return;var e=h[o];if(!e)return;_.add(o);var m=e.parent,p=e.node;if(p.disabled)return;m&&a(m.key)}return(d||[]).forEach(function(o){a(o)}),Object(v.a)(_)}function g(d){var h={};return Object.keys(d).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(h[_]=d[_])}),h}},P5Jw:function(xe,A,t){"use strict";var v=t("rHrb"),E=v.CopyToClipboard;E.CopyToClipboard=E,xe.exports=E},"SA+Z":function(xe,A,t){var v=t("wTVA"),E=t("EbDI"),Y=t("ZhPi"),te=t("wkBT");function j(n){return v(n)||E(n)||Y(n)||te()}xe.exports=j,xe.exports.__esModule=!0,xe.exports.default=xe.exports},WaYH:function(xe,A,t){"use strict";var v=t("rePB"),E=t("Ff2n"),Y=t("VTBJ"),te=t("1OyB"),j=t("vuIU"),n=t("JX7q"),U=t("Ji7U"),D=t("LK+K"),f=t("q1tI"),F=t("TSYQ"),R=t.n(F),z=t("sboe"),N=t("OZM5"),P=function(h){var _=h.prefixCls,a=h.level,o=h.isStart,e=h.isEnd;if(!a)return null;for(var m="".concat(_,"-indent-unit"),p=[],C=0;C=0||C.relatedTarget.className.indexOf("".concat(ne,"-next"))>=0))return;o.setState({goInputText:""}),H(o.getValidValue())},o.go=function(C){var V=o.state.goInputText;if(V==="")return;(C.keyCode===P.ENTER||C.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,m=e.goInputText,p=e.current;return!m||isNaN(m)?p:Number(m)}},{key:"getPageSizeOptions",value:function(){var e=this.props,m=e.pageSize,p=e.pageSizeOptions;return p.some(function(C){return C.toString()===m.toString()})?p:p.concat([m.toString()]).sort(function(C,V){var x=isNaN(Number(C))?0:Number(C),H=isNaN(Number(V))?0:Number(V);return x-H})}},{key:"render",value:function(){var e=this,m=this.props,p=m.pageSize,C=m.locale,V=m.rootPrefixCls,x=m.changeSize,H=m.quickGo,ne=m.goButton,me=m.selectComponentClass,Te=m.buildOptionText,ue=m.selectPrefixCls,K=m.disabled,fe=this.state.goInputText,ge="".concat(V,"-options"),be=me,pe=null,k=null,z=null;if(!x&&!H)return null;var Q=this.getPageSizeOptions();if(x&&be){var W=Q.map(function(y,ee){return f.a.createElement(be.Option,{key:ee,value:y.toString()},(Te||e.buildOptionText)(y))});pe=f.a.createElement(be,{disabled:K,prefixCls:ue,showSearch:!1,className:"".concat(ge,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(p||Q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},W)}return H&&(ne&&(z=typeof ne=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(ge,"-quick-jumper-button")},C.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ne)),k=f.a.createElement("div",{className:"".concat(ge,"-quick-jumper")},C.jump_to,f.a.createElement("input",{disabled:K,type:"text",value:fe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),C.page,z)),f.a.createElement("li",{className:"".concat(ge)},pe,k)}}]),a}(f.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=s,O=t("N2Kk");function b(){}function i(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h}function c(h,_,a){return a}function u(h,_,a){var o=typeof h=="undefined"?_.pageSize:h;return Math.floor((a.total-1)/o)+1}var g=function(h){Object(n.a)(a,h);var _=Object(U.a)(a);function a(o){var e;Object(te.a)(this,a),e=_.call(this,o),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(u(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(x,H){var ne=e.props.prefixCls,me=x||f.a.createElement("button",{type:"button","aria-label":H,className:"".concat(ne,"-item-link")});return typeof x=="function"&&(me=f.a.createElement(x,Object(Y.a)({},e.props))),me},e.savePaginationNode=function(x){e.paginationNode=x},e.isValid=function(x){return i(x)&&x!==e.state.current},e.shouldDisplayQuickJumper=function(){var x=e.props,H=x.showQuickJumper,ne=x.pageSize,me=x.total;return me<=ne?!1:H},e.handleKeyDown=function(x){(x.keyCode===P.ARROW_UP||x.keyCode===P.ARROW_DOWN)&&x.preventDefault()},e.handleKeyUp=function(x){var H=e.getValidValue(x),ne=e.state.currentInputValue;H!==ne&&e.setState({currentInputValue:H}),x.keyCode===P.ENTER?e.handleChange(H):x.keyCode===P.ARROW_UP?e.handleChange(H-1):x.keyCode===P.ARROW_DOWN&&e.handleChange(H+1)},e.changePageSize=function(x){var H=e.state.current,ne=u(x,e.state,e.props);H=H>ne?ne:H,ne===0&&(H=e.state.current),typeof x=="number"&&("pageSize"in e.props||e.setState({pageSize:x}),"current"in e.props||e.setState({current:H,currentInputValue:H})),e.props.onShowSizeChange(H,x),"onChange"in e.props&&e.props.onChange&&e.props.onChange(H,x)},e.handleChange=function(x){var H=e.props.disabled,ne=x;if(e.isValid(ne)&&!H){var me=u(void 0,e.state,e.props);ne>me?ne=me:ne<1&&(ne=1),"current"in e.props||e.setState({current:ne,currentInputValue:ne});var Te=e.state.pageSize;return e.props.onChange(ne,Te),ne}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?ne-2:0),Te=2;Te=p?V=p:V=Number(m),V}},{key:"getShowSizeChanger",value:function(){var e=this.props,m=e.showSizeChanger,p=e.total,C=e.totalBoundaryShowSizeChanger;return typeof m!="undefined"?m:p>C}},{key:"renderPrev",value:function(e){var m=this.props,p=m.prevIcon,C=m.itemRender,V=C(e,"prev",this.getItemIcon(p,"prev page")),x=!this.hasPrev();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"renderNext",value:function(e){var m=this.props,p=m.nextIcon,C=m.itemRender,V=C(e,"next",this.getItemIcon(p,"next page")),x=!this.hasNext();return Object(D.isValidElement)(V)?Object(D.cloneElement)(V,{disabled:x}):V}},{key:"render",value:function(){var e=this,m=this.props,p=m.prefixCls,C=m.className,V=m.style,x=m.disabled,H=m.hideOnSinglePage,ne=m.total,me=m.locale,Te=m.showQuickJumper,ue=m.showLessItems,K=m.showTitle,fe=m.showTotal,ge=m.simple,be=m.itemRender,pe=m.showPrevNextJumpers,k=m.jumpPrevIcon,z=m.jumpNextIcon,Q=m.selectComponentClass,W=m.selectPrefixCls,y=m.pageSizeOptions,ee=this.state,J=ee.current,he=ee.pageSize,je=ee.currentInputValue;if(H===!0&&ne<=he)return null;var se=u(void 0,this.state,this.props),ve=[],Me=null,Re=null,w=null,ze=null,we=null,Ce=Te&&Te.goButton,ye=ue?1:2,Ve=J-1>0?J-1:0,$e=J+1=ye*2&&J!==1+2&&(ve[0]=Object(D.cloneElement)(ve[0],{className:"".concat(p,"-item-after-jump-prev")}),ve.unshift(Me)),se-J>=ye*2&&J!==se-2&&(ve[ve.length-1]=Object(D.cloneElement)(ve[ve.length-1],{className:"".concat(p,"-item-before-jump-next")}),ve.push(Re)),S!==1&&ve.unshift(w),G!==se&&ve.push(ze)}var L=null;fe&&(L=f.a.createElement("li",{className:"".concat(p,"-total-text")},fe(ne,[ne===0?0:(J-1)*he+1,J*he>ne?ne:J*he])));var M=!this.hasPrev()||!se,I=!this.hasNext()||!se;return f.a.createElement("ul",Object(v.a)({className:R()(p,C,Object(E.a)({},"".concat(p,"-disabled"),x)),style:V,unselectable:"unselectable",ref:this.savePaginationNode},Ge),L,f.a.createElement("li",{title:K?me.prev_page:null,onClick:this.prev,tabIndex:M?null:0,onKeyPress:this.runIfEnterPrev,className:R()("".concat(p,"-prev"),Object(E.a)({},"".concat(p,"-disabled"),M)),"aria-disabled":M},this.renderPrev(Ve)),ve,f.a.createElement("li",{title:K?me.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:R()("".concat(p,"-next"),Object(E.a)({},"".concat(p,"-disabled"),I)),"aria-disabled":I},this.renderNext($e)),f.a.createElement(r,{disabled:x,locale:me,rootPrefixCls:p,selectComponentClass:Q,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:J,pageSize:he,pageSizeOptions:y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ce}))}}],[{key:"getDerivedStateFromProps",value:function(e,m){var p={};if("current"in e&&(p.current=e.current,e.current!==m.current&&(p.currentInputValue=p.current)),"pageSize"in e&&e.pageSize!==m.pageSize){var C=m.current,V=u(e.pageSize,m,e);C=C>V?V:C,"current"in e||(p.current=C,p.currentInputValue=C),p.pageSize=e.pageSize}return p}}]),a}(f.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:b,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:b,locale:O.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var d=g},"6RRn":function(xe,A,t){"use strict";var v=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var Y=t("IBYe"),te=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=v.b},"6ZIh":function(xe,A,t){xe.exports={flex_box_center:"flex_box_center___223o2",flex_space_between:"flex_space_between___3hj_b",flex_box_vertical_center:"flex_box_vertical_center___AoxCR",flex_box_center_end:"flex_box_center_end___35GUF",flex_box_column:"flex_box_column___3BJWq",bg:"bg___u82_j",containerTitle:"containerTitle___1z7cs",containerDesc:"containerDesc___xy-Ng",listItem:"listItem___3uTWe",title:"title___2Be4h",titleLeft:"titleLeft___1s_Pv",titleRight:"titleRight___zdezu",acitons:"acitons___2uJ-u",memberManager:"memberManager___2_rgM",headWrap:"headWrap___1Edub",checkbox:"checkbox___3m9MH"}},"6eGT":function(xe,A,t){"use strict";function v(E){return null}A.a=v},"815F":function(xe,A,t){"use strict";t.d(A,"e",function(){return U}),t.d(A,"c",function(){return f}),t.d(A,"d",function(){return F}),t.d(A,"a",function(){return B}),t.d(A,"f",function(){return N}),t.d(A,"b",function(){return P});var v=t("KQm4"),E=t("VTBJ"),Y=t("Ff2n"),te=t("Zm9Q"),j=t("Kwbf"),n=t("OZM5");function U(s,r){return s!=null?s:r}function D(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function O(b){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(b||[]).forEach(function(c){var u=c.key,g=c.children;Object(j.a)(u!=null,"Tree node must have a certain key: [".concat(i).concat(u,"]"));var d=String(u);Object(j.a)(!r.has(d)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(d)),r.set(d,!0),O(g,"".concat(i).concat(d," > "))})}O(s)}function f(s){function r(O){var b=Object(te.a)(O);return b.map(function(i){if(!Object(n.i)(i))return Object(j.a)(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var c=i.key,u=i.props,g=u.children,d=Object(Y.a)(u,["children"]),h=Object(E.a)({key:c},d),_=r(g);return _.length&&(h.children=_),h}).filter(function(i){return i})}return r(s)}function F(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(r===!0?[]:r),b=[];function i(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(g,d){var h=Object(n.h)(u?u.pos:"0",d),_=U(g.key,h),a=Object(E.a)(Object(E.a)({},g),{},{parent:u,pos:h,children:null,data:g,isStart:[].concat(Object(v.a)(u?u.isStart:[]),[d===0]),isEnd:[].concat(Object(v.a)(u?u.isEnd:[]),[d===c.length-1])});return b.push(a),r===!0||O.has(_)?a.children=i(g.children||[],a):a.children=[],a})}return i(s),b}function R(s,r,O){var b;O?typeof O=="string"?b=function(u){return u[O]}:typeof O=="function"&&(b=function(u){return O(u)}):b=function(u,g){return U(u.key,g)};function i(c,u,g){var d=c?c.children:s,h=c?Object(n.h)(g.pos,u):"0";if(c){var _=b(c,h),a={node:c,index:u,pos:h,key:_,parentPos:g.node?g.pos:null,level:g.level+1};r(a)}d&&d.forEach(function(o,e){i(o,e,{node:c,pos:h,level:g?g.level+1:-1})})}i(null)}function B(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=r.initWrapper,b=r.processEntity,i=r.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,u={},g={},d={posEntities:u,keyEntities:g};return O&&(d=O(d)||d),R(s,function(h){var _=h.node,a=h.index,o=h.pos,e=h.key,m=h.parentPos,p=h.level,C={node:_,index:a,key:e,pos:o,level:p},V=U(e,o);u[o]=C,g[V]=C,C.parent=u[m],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),b&&b(C,d)},c),i&&i(d),d}function N(s,r){var O=r.expandedKeys,b=r.selectedKeys,i=r.loadedKeys,c=r.loadingKeys,u=r.checkedKeys,g=r.halfCheckedKeys,d=r.dragOverNodeKey,h=r.dropPosition,_=r.keyEntities,a=_[s],o={eventKey:s,expanded:O.indexOf(s)!==-1,selected:b.indexOf(s)!==-1,loaded:i.indexOf(s)!==-1,loading:c.indexOf(s)!==-1,checked:u.indexOf(s)!==-1,halfChecked:g.indexOf(s)!==-1,pos:String(a?a.pos:""),dragOver:d===s&&h===0,dragOverGapTop:d===s&&h===-1,dragOverGapBottom:d===s&&h===1};return o}function P(s){var r=s.data,O=s.expanded,b=s.selected,i=s.checked,c=s.loaded,u=s.loading,g=s.halfChecked,d=s.dragOver,h=s.dragOverGapTop,_=s.dragOverGapBottom,a=s.pos,o=s.active,e=Object(E.a)(Object(E.a)({},r),{},{expanded:O,selected:b,checked:i,loaded:c,loading:u,halfChecked:g,dragOver:d,dragOverGapTop:h,dragOverGapBottom:_,pos:a,active:o});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("MNnm"),E="rc-util-key";function Y(U){if(U.attachTo)return U.attachTo;var D=document.querySelector("head");return D||document.body}function te(U){var D,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(v.a)())return null;var F=document.createElement("style");if((D=f.csp)===null||D===void 0?void 0:D.nonce){var R;F.nonce=(R=f.csp)===null||R===void 0?void 0:R.nonce}F.innerHTML=U;var B=Y(f),N=B.firstChild;return f.prepend&&B.prepend?B.prepend(F):f.prepend&&N?B.insertBefore(F,N):B.appendChild(F),F}var j=new Map;function n(U,D){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=Y(f);if(!j.has(F)){var R=te("",f),B=R.parentNode;j.set(F,B),B.removeChild(R)}var N=Array.from(j.get(F).children).find(function(b){return b.tagName==="STYLE"&&b[E]===D});if(N){var P,s;if(((P=f.csp)===null||P===void 0?void 0:P.nonce)&&N.nonce!==((s=f.csp)===null||s===void 0?void 0:s.nonce)){var r;N.nonce=(r=f.csp)===null||r===void 0?void 0:r.nonce}return N.innerHTML!==U&&(N.innerHTML=U),N}var O=te(U,f);return O[E]=D,O}},BdwD:function(xe,A,t){"use strict";var v=t("+L6B"),E=t("2/Rp"),Y=t("0Owb"),te=t("k1fw"),j=t("q1tI"),n=t.n(j),U=t("FOrL"),D=t.n(U),f=function(R){var B=R.buttonProps,N=B===void 0?{}:B,P=R.styles,s=P===void 0?{}:P,r=R.customText,O=R.ButtonText,b=R.ButtonClick,i=R.Buttonclass,c=R.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(te.a)(Object(te.a)({},{color:"#999",margin:"200px auto"}),s)},n.a.createElement("img",{src:D.a}),n.a.createElement("p",{className:"mt20 font14"},r||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&n.a.createElement(E.a,Object(Y.a)({className:i,onClick:b},N),O),c&&c)};A.a=f},E9nw:function(xe,A){xe.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var v=document.activeElement,E=[],Y=0;Y1&&arguments[1]!==void 0?arguments[1]:1,I=ye.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(h.a)(ue).map(function(fe,ge){if(!j.isValidElement(fe)||!fe.type)return null;var be=fe.type.isSelectOptGroup,pe=fe.key,k=fe.props,z=k.children,Q=Object(U.a)(k,["children"]);return K||!be?_(fe):Object(d.a)(Object(d.a)({key:"__RC_SELECT_GRP__".concat(pe===null?ge:pe,"__"),label:pe},Q),{},{options:a(z)})}).filter(function(fe){return fe})}var o=t("2Qr1"),e=t("qNPg"),m=t("U8pU"),p=t("Kwbf"),C=t("WKfj");function V(ue){var K=ue.mode,fe=ue.options,ge=ue.children,be=ue.backfill,pe=ue.allowClear,k=ue.placeholder,z=ue.getInputElement,Q=ue.showSearch,W=ue.onSearch,y=ue.defaultOpen,ee=ue.autoFocus,J=ue.labelInValue,he=ue.value,je=ue.inputValue,se=ue.optionLabelProp,ve=K==="multiple"||K==="tags",Me=Q!==void 0?Q:ve||K==="combobox",Re=fe||a(ge);if(Object(p.a)(K!=="tags"||Re.every(function(Ce){return!Ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var w=Re.some(function(Ce){return Ce.options?Ce.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in Ce?Ce.value:Ce.key)=="number"});Object(p.a)(!w,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(p.a)(K!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(p.a)(K==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(p.a)(K==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(p.b)(K!=="combobox"||!z||!pe||!k,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!Me&&K!=="combobox"&&K!=="tags"&&Object(p.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(p.b)(!y||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),he!=null){var ze=Object(C.d)(he);Object(p.a)(!J||ze.every(function(Ce){return Object(m.a)(Ce)==="object"&&("key"in Ce||"value"in Ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(p.a)(!ve||Array.isArray(he),"`value` should be array when `mode` is `multiple` or `tags`")}if(ge){var we=null;Object(h.a)(ge).some(function(Ce){if(!j.isValidElement(Ce)||!Ce.type)return!1;var ye=Ce.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Ve=Object(h.a)(Ce.props.children).every(function($e){return!j.isValidElement($e)||!Ce.type||$e.type.isSelectOption?!0:(we=$e.type,!1)});return!Ve}return we=ye,!0}),we&&Object(p.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(p.a)(je===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=V,H=Object(e.a)({prefixCls:"rc-select",components:{optionList:b},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:x,fillOptionsWithMissingValue:o.a}),ne=function(ue){Object(Y.a)(fe,ue);var K=Object(te.a)(fe);function fe(){var ge;return Object(v.a)(this,fe),ge=K.apply(this,arguments),ge.selectRef=j.createRef(),ge.focus=function(){ge.selectRef.current.focus()},ge.blur=function(){ge.selectRef.current.blur()},ge}return Object(E.a)(fe,[{key:"render",value:function(){return j.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),fe}(j.Component);ne.Option=c,ne.OptGroup=g;var me=ne,Te=A.c=me},NvD2:function(xe,A,t){"use strict";t.d(A,"a",function(){return n});var v=t("Kwbf");function E(U,D){var f=new Set;return U.forEach(function(F){D.has(F)||f.add(F)}),f}function Y(U){var D=U||{},f=D.disabled,F=D.disableCheckbox,R=D.checkable;return!!(f||F)||R===!1}function te(U,D,f,F){for(var R=new Set(U),B=new Set,N=0;N<=f;N+=1){var P=D.get(N)||new Set;P.forEach(function(b){var i=b.key,c=b.node,u=b.children,g=u===void 0?[]:u;R.has(i)&&!F(c)&&g.filter(function(d){return!F(d.node)}).forEach(function(d){R.add(d.key)})})}for(var s=new Set,r=f;r>=0;r-=1){var O=D.get(r)||new Set;O.forEach(function(b){var i=b.parent,c=b.node;if(F(c)||!b.parent||s.has(b.parent.key))return;if(F(b.parent.node)){s.add(i.key);return}var u=!0,g=!1;(i.children||[]).filter(function(d){return!F(d.node)}).forEach(function(d){var h=d.key,_=R.has(h);u&&!_&&(u=!1),!g&&(_||B.has(h))&&(g=!0)}),u&&R.add(i.key),g&&B.add(i.key),s.add(i.key)})}return{checkedKeys:Array.from(R),halfCheckedKeys:Array.from(E(B,R))}}function j(U,D,f,F,R){for(var B=new Set(U),N=new Set(D),P=0;P<=F;P+=1){var s=f.get(P)||new Set;s.forEach(function(i){var c=i.key,u=i.node,g=i.children,d=g===void 0?[]:g;!B.has(c)&&!N.has(c)&&!R(u)&&d.filter(function(h){return!R(h.node)}).forEach(function(h){B.delete(h.key)})})}N=new Set;for(var r=new Set,O=F;O>=0;O-=1){var b=f.get(O)||new Set;b.forEach(function(i){var c=i.parent,u=i.node;if(R(u)||!i.parent||r.has(i.parent.key))return;if(R(i.parent.node)){r.add(c.key);return}var g=!0,d=!1;(c.children||[]).filter(function(h){return!R(h.node)}).forEach(function(h){var _=h.key,a=B.has(_);g&&!a&&(g=!1),!d&&(a||N.has(_))&&(d=!0)}),g||B.delete(c.key),d&&N.add(c.key),r.add(c.key)})}return{checkedKeys:Array.from(B),halfCheckedKeys:Array.from(E(N,B))}}function n(U,D,f,F){var R=[],B;F?B=F:B=Y;var N=new Set(U.filter(function(O){var b=!!f[O];return b||R.push(O),b})),P=new Map,s=0;Object.keys(f).forEach(function(O){var b=f[O],i=b.level,c=P.get(i);c||(c=new Set,P.set(i,c)),c.add(b),s=Math.max(s,i)}),Object(v.a)(!R.length,"Tree missing follow keys: ".concat(R.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var r;return D===!0?r=te(N,P,s,B):r=j(N,D.halfCheckedKeys,P,s,B),r}},OZM5:function(xe,A,t){"use strict";t.d(A,"b",function(){return F}),t.d(A,"a",function(){return R}),t.d(A,"k",function(){return B}),t.d(A,"h",function(){return N}),t.d(A,"i",function(){return P}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return r}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return c}),t.d(A,"e",function(){return u}),t.d(A,"f",function(){return g});var v=t("KQm4"),E=t("U8pU"),Y=t("Ff2n"),te=t("q1tI"),j=t.n(te),n=t("Kwbf"),U=t("WaYH"),D=.25,f=2;function F(d,h){var _=d.slice(),a=_.indexOf(h);return a>=0&&_.splice(a,1),_}function R(d,h){var _=d.slice();return _.indexOf(h)===-1&&_.push(h),_}function B(d){return d.split("-")}function N(d,h){return"".concat(d,"-").concat(h)}function P(d){return d&&d.type&&d.type.isTreeNode}function s(d,h){var _=[d],a=h[d];function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(m){var p=m.key,C=m.children;_.push(p),o(C)})}return o(a.children),_}function r(d,h){var _=d.clientY,a=h.selectHandle.getBoundingClientRect(),o=a.top,e=a.bottom,m=a.height,p=Math.max(m*D,f);return _<=o+p?-1:_>=e-p?1:0}function O(d,h){if(!d)return;var _=h.multiple;return _?d.slice():d.length?[d[0]]:d}var b=function(h){return h};function i(d,h){if(!d)return[];var _=h||{},a=_.processProps,o=a===void 0?b:a,e=Array.isArray(d)?d:[d];return e.map(function(m){var p=m.children,C=Object(Y.a)(m,["children"]),V=i(p,h);return j.a.createElement(U.a,Object.assign({},o(C)),V)})}function c(d){if(!d)return null;var h;if(Array.isArray(d))h={checkedKeys:d,halfCheckedKeys:void 0};else if(Object(E.a)(d)==="object")h={checkedKeys:d.checked||void 0,halfCheckedKeys:d.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return h}function u(d,h){var _=new Set;function a(o){if(_.has(o))return;var e=h[o];if(!e)return;_.add(o);var m=e.parent,p=e.node;if(p.disabled)return;m&&a(m.key)}return(d||[]).forEach(function(o){a(o)}),Object(v.a)(_)}function g(d){var h={};return Object.keys(d).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(h[_]=d[_])}),h}},P5Jw:function(xe,A,t){"use strict";var v=t("rHrb"),E=v.CopyToClipboard;E.CopyToClipboard=E,xe.exports=E},"SA+Z":function(xe,A,t){var v=t("wTVA"),E=t("EbDI"),Y=t("ZhPi"),te=t("wkBT");function j(n){return v(n)||E(n)||Y(n)||te()}xe.exports=j,xe.exports.__esModule=!0,xe.exports.default=xe.exports},WaYH:function(xe,A,t){"use strict";var v=t("rePB"),E=t("Ff2n"),Y=t("VTBJ"),te=t("1OyB"),j=t("vuIU"),n=t("JX7q"),U=t("Ji7U"),D=t("LK+K"),f=t("q1tI"),F=t("TSYQ"),R=t.n(F),B=t("sboe"),N=t("OZM5"),P=function(h){var _=h.prefixCls,a=h.level,o=h.isStart,e=h.isEnd;if(!a)return null;for(var m="".concat(_,"-indent-unit"),p=[],C=0;C1&&arguments[1]!==void 0?arguments[1]:!1,Q=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(k&&x[Q])return x[Q];var W=window.getComputedStyle(B),y=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),J=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),he=V.map(function(se){return"".concat(se,":").concat(W.getPropertyValue(se))}).join(";"),je={sizingStyle:he,paddingSize:ee,borderSize:J,boxSizing:y};return k&&Q&&(x[Q]=je),je}function me(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),B.getAttribute("wrap")?H.setAttribute("wrap",B.getAttribute("wrap")):H.removeAttribute("wrap");var y=ne(B,k),ee=y.paddingSize,J=y.borderSize,he=y.boxSizing,je=y.sizingStyle;H.setAttribute("style","".concat(je,";").concat(C)),H.value=B.value||B.placeholder||"";var se=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Me=H.scrollHeight,Re;if(he==="border-box"?Me+=J:he==="content-box"&&(Me-=ee),Q!==null||W!==null){H.value=" ";var w=H.scrollHeight-ee;Q!==null&&(se=w*Q,he==="border-box"&&(se=se+ee+J),Me=Math.max(se,Me)),W!==null&&(ve=w*W,he==="border-box"&&(ve=ve+ee+J),Re=Me>ve?"":"hidden",Me=Math.min(ve,Me))}return{height:Me,minHeight:se,maxHeight:ve,overflowY:Re,resize:"none"}}var Se=t("Gytx"),ue=t.n(Se),K;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(K||(K={}));var fe=function(B){Object(te.a)(Q,B);var k=Object(j.a)(Q);function Q(W){var y;return Object(E.a)(this,Q),y=k.call(this,W),y.nextFrameActionId=void 0,y.resizeFrameId=void 0,y.textArea=void 0,y.saveTextArea=function(ee){y.textArea=ee},y.handleResize=function(ee){var J=y.state.resizeStatus,he=y.props,je=he.autoSize,se=he.onResize;if(J!==K.NONE)return;typeof se=="function"&&se(ee),je&&y.resizeOnNextFrame()},y.resizeOnNextFrame=function(){cancelAnimationFrame(y.nextFrameActionId),y.nextFrameActionId=requestAnimationFrame(y.resizeTextarea)},y.resizeTextarea=function(){var ee=y.props.autoSize;if(!ee||!y.textArea)return;var J=ee.minRows,he=ee.maxRows,je=me(y.textArea,!1,J,he);y.setState({textareaStyles:je,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(y.resizeFrameId),y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.RESIZED},function(){y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.NONE}),y.fixFirefoxAutoScroll()})})})})},y.renderTextArea=function(){var ee=y.props,J=ee.prefixCls,he=J===void 0?"rc-textarea":J,je=ee.autoSize,se=ee.onResize,ve=ee.className,Me=ee.disabled,Re=y.state,w=Re.textareaStyles,ke=Re.resizeStatus,we=Object(e.a)(y.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ce=p()(he,ve,Object(D.a)({},"".concat(he,"-disabled"),Me));"value"in we&&(we.value=we.value||"");var ye=Object(U.a)(Object(U.a)(Object(U.a)({},y.props.style),w),ke===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:y.handleResize,disabled:!(je||se)},n.createElement("textarea",Object(v.a)({},we,{className:Ce,style:ye,ref:y.saveTextArea})))},y.state={textareaStyles:{},resizeStatus:K.NONE},y}return Object(Y.a)(Q,[{key:"componentDidUpdate",value:function(y){(y.value!==this.props.value||!ue()(y.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var y=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(y,ee)}}catch(J){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Q}(n.Component),ge=fe,be=function(B){Object(te.a)(Q,B);var k=Object(j.a)(Q);function Q(W){var y;Object(E.a)(this,Q),y=k.call(this,W),y.resizableTextArea=void 0,y.focus=function(){y.resizableTextArea.textArea.focus()},y.saveTextArea=function(J){y.resizableTextArea=J},y.handleChange=function(J){var he=y.props.onChange;y.setValue(J.target.value,function(){y.resizableTextArea.resizeTextarea()}),he&&he(J)},y.handleKeyDown=function(J){var he=y.props,je=he.onPressEnter,se=he.onKeyDown;J.keyCode===13&&je&&je(J),se&&se(J)};var ee=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return y.state={value:ee},y}return Object(Y.a)(Q,[{key:"setValue",value:function(y,ee){"value"in this.props||this.setState({value:y},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ge,Object(v.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(y){return"value"in y?{value:y.value}:null}}]),Q}(n.Component),pe=A.default=be},bT9E:function(xe,A,t){"use strict";t.d(A,"a",function(){return E});var v=t("VTBJ");function E(Y,te){var j=Object(v.a)({},Y);return Array.isArray(te)&&te.forEach(function(n){delete j[n]}),j}},biw7:function(xe,A,t){"use strict";var v=t("q1tI"),E=t.n(v),Y=v.createContext(null);A.a=Y},fyJ8:function(xe,A,t){"use strict";var v=t("rePB"),E=t("VTBJ"),Y=t("Ff2n"),te=t("U8pU"),j=t("q1tI"),n=t.n(j),U=t("TSYQ"),D=t.n(U),f=t("c+Xe"),F=t("sR1s");function R(r){return r&&Object(te.a)(r)==="object"&&!Array.isArray(r)&&!j.isValidElement(r)}function z(r){return typeof r=="string"?!0:Object(f.c)(r)}function N(r,O){var b,i=r.prefixCls,c=r.className,u=r.record,g=r.index,d=r.dataIndex,h=r.render,_=r.children,a=r.component,o=a===void 0?"td":a,e=r.colSpan,m=r.rowSpan,p=r.fixLeft,C=r.fixRight,V=r.firstFixLeft,x=r.lastFixLeft,H=r.firstFixRight,ne=r.lastFixRight,me=r.appendNode,Se=r.additionalProps,ue=Se===void 0?{}:Se,K=r.ellipsis,fe=r.align,ge=r.rowType,be=r.isSticky,pe="".concat(i,"-cell"),B,k;if(_)k=_;else{var Q=Object(F.b)(u,d);if(k=Q,h){var W=h(Q,u,g);R(W)?(k=W.children,B=W.props):k=W}}Object(te.a)(k)==="object"&&!Array.isArray(k)&&!j.isValidElement(k)&&(k=null),K&&(x||H)&&(k=j.createElement("span",{className:"".concat(pe,"-content")},k));var y=B||{},ee=y.colSpan,J=y.rowSpan,he=y.style,je=y.className,se=Object(Y.a)(y,["colSpan","rowSpan","style","className"]),ve=ee!==void 0?ee:e,Me=J!==void 0?J:m;if(ve===0||Me===0)return null;var Re={},w=typeof p=="number",ke=typeof C=="number";w&&(Re.position="sticky",Re.left=p),ke&&(Re.position="sticky",Re.right=C);var we={};fe&&(we.textAlign=fe);var Ce,ye=K===!0?{showTitle:!0}:K;ye&&(ye.showTitle||ge==="header")&&(typeof k=="string"||typeof k=="number"?Ce=k.toString():j.isValidElement(k)&&typeof k.props.children=="string"&&(Ce=k.props.children));var Ve=Object(E.a)(Object(E.a)(Object(E.a)({title:Ce},se),ue),{},{colSpan:ve&&ve!==1?ve:null,rowSpan:Me&&Me!==1?Me:null,className:D()(pe,c,(b={},Object(v.a)(b,"".concat(pe,"-fix-left"),w),Object(v.a)(b,"".concat(pe,"-fix-left-first"),V),Object(v.a)(b,"".concat(pe,"-fix-left-last"),x),Object(v.a)(b,"".concat(pe,"-fix-right"),ke),Object(v.a)(b,"".concat(pe,"-fix-right-first"),H),Object(v.a)(b,"".concat(pe,"-fix-right-last"),ne),Object(v.a)(b,"".concat(pe,"-ellipsis"),K),Object(v.a)(b,"".concat(pe,"-with-append"),me),Object(v.a)(b,"".concat(pe,"-fix-sticky"),(w||ke)&&be),b),ue.className,je),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},ue.style),we),Re),he),ref:z(o)?O:null});return j.createElement(o,Object.assign({},Ve),me,k)}var P=j.forwardRef(N);P.displayName="Cell";var s=j.memo(P,function(r,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,r.record):!1});A.a=s},hW8S:function(xe,A,t){"use strict";t.d(A,"a",function(){return te}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return n});var v=t("VTBJ"),E=t("Ff2n"),Y=t("Kwbf"),te="RC_TABLE_INTERNAL_COL_DEFINE";function j(U){var D=U.expandable,f=Object(E.a)(U,["expandable"]);return"expandable"in U?Object(v.a)(Object(v.a)({},f),D):f}function n(U){return Object.keys(U).reduce(function(D,f){return(f.substr(0,5)==="data-"||f.substr(0,5)==="aria-")&&(D[f]=U[f]),D},{})}},n6Qo:function(xe,A,t){"use strict";t.d(A,"a",function(){return D});var v=t("q1tI"),E=t("biw7"),Y=t("fyJ8");function te(f){var F=f.className,R=f.index,z=f.children,N=f.colSpan,P=f.rowSpan,s=v.useContext(E.a),r=s.prefixCls,O=s.fixedInfoList,b=O[R];return v.createElement(Y.a,Object.assign({className:F,index:R,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:z,props:{colSpan:N,rowSpan:P}}}},b))}function j(f){return v.createElement("tr",Object.assign({},f))}function n(f){var F=f.children,R=v.useContext(E.a),z=R.prefixCls;return v.createElement("tfoot",{className:"".concat(z,"-summary")},F)}var U=A.b=n,D={Cell:te,Row:j}},rHrb:function(xe,A,t){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.CopyToClipboard=void 0;var v=Y(t("q1tI")),E=Y(t("+QRC"));function Y(i){return i&&i.__esModule?i:{default:i}}function te(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(u){return typeof u}:te=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},te(i)}function j(i,c){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);c&&(g=g.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),u.push.apply(u,g)}return u}function n(i){for(var c=1;c=0)continue;if(!Object.prototype.propertyIsEnumerable.call(i,g))continue;u[g]=i[g]}}return u}function D(i,c){if(i==null)return{};var u={},g=Object.keys(i),d,h;for(h=0;h=0)continue;u[d]=i[d]}return u}function f(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")}function F(i,c){for(var u=0;u1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var u=c[0];if(n.isValidElement(u)&&Object(R.c)(u)){var g=u.ref;c[0]=n.cloneElement(u,{ref:Object(R.a)(g,this.setChildNode)})}return c.length===1?c[0]:c.map(function(d,h){return!n.isValidElement(d)||"key"in d&&d.key!==null?d:n.cloneElement(d,{key:"".concat(N,"-").concat(h)})})}}]),O}(n.Component);P.displayName="ResizeObserver",A.a=P},wCXF:function(xe,A,t){"use strict";t.d(A,"a",function(){return Ge});var v=t("rePB"),E=t("VTBJ"),Y=t("KQm4"),te=t("U8pU"),j=t("ODXe"),n=t("q1tI"),U=t("TSYQ"),D=t.n(U),f=t("Gytx"),F=t.n(f),R=t("Kwbf"),z=t("t23M"),N=t("qx4F"),P=t("6eGT"),s=t("IBYe"),r=t("Ff2n"),O=t("c+Xe"),b=t("fyJ8"),i=t("biw7");function c(l,S,T,G,q){var X=T[l]||{},L=T[S]||{},M,I;X.fixed==="left"?M=G.left[l]:L.fixed==="right"&&(I=G.right[S]);var re=!1,Z=!1,ae=!1,Ee=!1,ce=T[S+1],_e=T[l-1];if(q==="rtl"){if(M!==void 0){var Ie=_e&&_e.fixed==="left";Ee=!Ie}else if(I!==void 0){var Ne=ce&&ce.fixed==="right";ae=!Ne}}else if(M!==void 0){var Pe=ce&&ce.fixed==="left";re=!Pe}else if(I!==void 0){var Oe=_e&&_e.fixed==="right";Z=!Oe}return{fixLeft:M,fixRight:I,lastFixLeft:re,firstFixRight:Z,lastFixRight:ae,firstFixLeft:Ee,isSticky:G.isSticky}}var u=t("sR1s");function g(l){var S=l.cells,T=l.stickyOffsets,G=l.flattenColumns,q=l.rowComponent,X=l.cellComponent,L=l.onHeaderRow,M=l.index,I=n.useContext(i.a),re=I.prefixCls,Z=I.direction,ae;L&&(ae=L(S.map(function(ce){return ce.column}),M));var Ee=Object(u.a)(S.map(function(ce){return ce.column}));return n.createElement(q,Object.assign({},ae),S.map(function(ce,_e){var Ie=ce.column,Ne=c(ce.colStart,ce.colEnd,G,T,Z),Pe;return Ie&&Ie.onHeaderCell&&(Pe=ce.column.onHeaderCell(Ie)),n.createElement(b.a,Object.assign({},ce,{ellipsis:Ie.ellipsis,align:Ie.align,component:X,prefixCls:re,key:Ee[_e]},Ne,{additionalProps:Pe,rowType:"header"}))}))}g.displayName="HeaderRow";var d=g;function h(l){var S=[];function T(L,M){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;S[I]=S[I]||[];var re=M,Z=L.filter(Boolean).map(function(ae){var Ee={key:ae.key,className:ae.className||"",children:ae.title,column:ae,colStart:re},ce=1,_e=ae.children;return _e&&_e.length>0&&(ce=T(_e,re,I+1).reduce(function(Ie,Ne){return Ie+Ne},0),Ee.hasSubColumns=!0),"colSpan"in ae&&(ce=ae.colSpan),"rowSpan"in ae&&(Ee.rowSpan=ae.rowSpan),Ee.colSpan=ce,Ee.colEnd=Ee.colStart+ce-1,S[I].push(Ee),re+=ce,ce});return Z}T(l,0);for(var G=S.length,q=function(M){S[M].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=G-M)})},X=0;X=0;M-=1){var I=S[M],re=T&&T[M],Z=re&&re[o.a];(I||Z||L)&&(q.unshift(n.createElement("col",Object.assign({key:M,style:{width:I,minWidth:I}},Z))),L=!0)}return n.createElement("colgroup",null,q)}var m=e;function p(l,S){return Object(n.useMemo)(function(){for(var T=[],G=0;G1?at-1:0),pt=1;pt=ae&&(ie=ae-Ee),L({scrollLeft:ie/ae*(Z+2)}),Oe.current.x=$.pageX},Ye=function(){var $=Object(ke.b)(X.current).top,oe=$+X.current.offsetHeight,de=document.documentElement.scrollTop+window.innerHeight;oe-Object(N.a)()<=de||$>=de-M?Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!0})}):Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!1})})},Fe=function($){Pe(function(oe){return Object(E.a)(Object(E.a)({},oe),{},{scrollLeft:$/Z*ae||0})})};return n.useImperativeHandle(T,function(){return{setScrollLeft:Fe}}),n.useEffect(function(){var Ke=Object(w.a)(document.body,"mouseup",tt,!1),$=Object(w.a)(document.body,"mousemove",qe,!1);return Ye(),function(){Ke.remove(),$.remove()}},[Ee,Be]),n.useEffect(function(){var Ke=Object(w.a)(window,"scroll",Ye,!1),$=Object(w.a)(window,"resize",Ye,!1);return function(){Ke.remove(),$.remove()}},[]),n.useEffect(function(){Ne.isHiddenScrollBar||Pe(function(Ke){var $,oe;return Object(E.a)(Object(E.a)({},Ke),{},{scrollLeft:X.current.scrollLeft/(($=X.current)===null||$===void 0?void 0:$.scrollWidth)*((oe=X.current)===null||oe===void 0?void 0:oe.clientWidth)})})},[Ne.isHiddenScrollBar]),Z<=ae||!Ee||Ne.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(N.a)(),width:ae,bottom:M},className:"".concat(re,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ue,ref:ce,className:D()("".concat(re,"-sticky-scroll-bar"),Object(v.a)({},"".concat(re,"-sticky-scroll-bar-active"),Be)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(Ne.scrollLeft,"px, 0, 0)")}}))},Ce=n.forwardRef(we);function ye(l,S){return n.useMemo(function(){var T=!!l;return{isSticky:T,stickyClassName:T?"".concat(S,"-sticky-header"):"",offsetHeader:Object(te.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(te.a)(l)==="object"&&l.offsetScroll||0}},[l,S])}var Ve=[],$e={},Ge="rc-table-internal-hook",ze=n.memo(function(l){var S=l.children;return S},function(l,S){return F()(l.props,S.props)?l.pingLeft!==S.pingLeft||l.pingRight!==S.pingRight:!1});function Je(l){var S,T=l.prefixCls,G=l.className,q=l.rowClassName,X=l.style,L=l.data,M=l.rowKey,I=l.scroll,re=l.tableLayout,Z=l.direction,ae=l.title,Ee=l.footer,ce=l.summary,_e=l.id,Ie=l.showHeader,Ne=l.components,Pe=l.emptyText,Oe=l.onRow,Ze=l.onHeaderRow,We=l.internalHooks,Be=l.transformColumns,He=l.internalRefs,tt=l.sticky,Ue=L||Ve,qe=!!Ue.length,Ye=n.useState(0),Fe=Object(j.a)(Ye,2),Ke=Fe[0],$=Fe[1];n.useEffect(function(){$(Object(N.a)())});var oe=n.useMemo(function(){return Object(u.c)(Ne,{})},[Ne]),de=n.useCallback(function(Te,Le){return Object(u.b)(oe,Te)||Le},[oe]),le=n.useMemo(function(){return typeof M=="function"?M:function(Te){var Le=Te&&Te[M];return Le}},[M]),ie=Object(o.c)(l),De=ie.expandIcon,Ae=ie.expandedRowKeys,nt=ie.defaultExpandedRowKeys,ct=ie.defaultExpandAllRows,ft=ie.expandedRowRender,vt=ie.onExpand,bt=ie.onExpandedRowsChange,Pt=ie.expandRowByClick,st=ie.rowExpandable,yt=ie.expandIconColumnIndex,Et=ie.expandedRowClassName,Kt=ie.childrenColumnName,Dt=ie.indentSize,gt=De||Me,Ot=Kt||"children",St=n.useMemo(function(){return ft?"row":l.expandable&&We===Ge&&l.expandable.__PARENT_RENDER_ICON__||Ue.some(function(Te){return Te&&Object(te.a)(Te)==="object"&&Te[Ot]})?"nest":!1},[!!ft,Ue]),Nt=n.useState(function(){return nt||(ct?Re(Ue,le,Ot):[])}),et=Object(j.a)(Nt,2),rt=et[0],it=et[1],at=n.useMemo(function(){return new Set(Ae||rt||[])},[Ae,rt]),mt=n.useCallback(function(Te){var Le=le(Te,Ue.indexOf(Te)),Qe,lt=at.has(Le);lt?(at.delete(Le),Qe=Object(Y.a)(at)):Qe=[].concat(Object(Y.a)(at),[Le]),it(Qe),vt&&vt(!lt,Te),bt&&bt(Qe)},[le,at,Ue,vt,bt]),pt=n.useState(0),Tt=Object(j.a)(pt,2),xt=Tt[0],Mt=Tt[1],vn=Object(k.b)(Object(E.a)(Object(E.a)(Object(E.a)({},l),ie),{},{expandable:!!ft,expandedKeys:at,getRowKey:le,onTriggerExpand:mt,expandIcon:gt,expandIconColumnIndex:yt,direction:Z}),We===Ge?Be:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Xe=Yt[1],At=n.useMemo(function(){return{columns:kt,flattenColumns:Xe}},[kt,Xe]),zt=n.useRef(),Qt=n.useRef(),ht=n.useRef(),bn=n.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=y(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],_n=Object(u.a)(Xe),an=_n.map(function(Te){return On.get(Te)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=he(on,Xe.length,Z),ut=I&&Object(u.d)(I.y),dt=I&&Object(u.d)(I.x),_t=dt&&Xe.some(function(Te){var Le=Te.fixed;return Le}),rn=n.useRef(),Ut=ye(tt,T),jt=Ut.isSticky,jn=Ut.offsetHeader,Rn=Ut.offsetScroll,Pn=Ut.stickyClassName,Bt,wt,Wt;ut&&(wt={overflowY:"scroll",maxHeight:I.y}),dt&&(Bt={overflowX:"auto"},ut||(wt={overflowY:"hidden"}),Wt={width:I.x===!0?"auto":I.x,minWidth:"100%"});var ln=n.useCallback(function(Te,Le){xn(function(Qe){var lt=new Map(Qe);return lt.set(Te,Le),lt})},[]),Dn=ee(null),sn=Object(j.a)(Dn,2),Sn=sn[0],un=sn[1];function Ft(Te,Le){if(!Le)return;typeof Le=="function"?Le(Te):Le.scrollLeft!==Te&&(Le.scrollLeft=Te)}var Ct=function(Le){var Qe=Le.currentTarget,lt=Le.scrollLeft,Rt=typeof lt=="number"?lt:Qe.scrollLeft,hn=Qe||$e;if(!un()||un()===hn){var Jt;Sn(hn),Ft(Rt,Qt.current),Ft(Rt,ht.current),Ft(Rt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Qe){var wn=Qe.scrollWidth,In=Qe.clientWidth;En(Rt>0),Cn(Rt0?[].concat(Object(E.a)(r),Object(E.a)(R(c).map(function(u){return Object(Y.a)({fixed:i},u)}))):[].concat(Object(E.a)(r),[Object(Y.a)(Object(Y.a)({},O),{},{fixed:i})])},[])}function z(s){for(var r=!0,O=0;O=0;c-=1){var u=s[c];if(i&&u.fixed!=="right")i=!1;else if(!i&&u.fixed==="right"){Object(U.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function N(s){return s.map(function(r){var O=r.fixed,b=Object(te.a)(r,["fixed"]),i=O;return O==="left"?i="right":O==="right"&&(i="left"),Object(Y.a)({fixed:i},b)})}function P(s,r){var O=s.prefixCls,b=s.columns,i=s.children,c=s.expandable,u=s.expandedKeys,g=s.getRowKey,d=s.onTriggerExpand,h=s.expandIcon,_=s.rowExpandable,a=s.expandIconColumnIndex,o=s.direction,e=s.expandRowByClick,m=j.useMemo(function(){return b||F(i)},[b,i]),p=j.useMemo(function(){if(c){var x,H=a||0,ne=m[H],me=(x={},Object(v.a)(x,f.a,{className:"".concat(O,"-expand-icon-col")}),Object(v.a)(x,"title",""),Object(v.a)(x,"fixed",ne?ne.fixed:null),Object(v.a)(x,"className","".concat(O,"-row-expand-icon-cell")),Object(v.a)(x,"render",function(K,fe,ge){var be=g(fe,ge),pe=u.has(be),B=_?_(fe):!0,k=h({prefixCls:O,expanded:pe,expandable:B,record:fe,onExpand:d});return e?j.createElement("span",{onClick:function(W){return W.stopPropagation()}},k):k}),x),Se=m.slice();return H>=0&&Se.splice(H,0,me),Se}return m},[c,m,g,u,h,o]),C=j.useMemo(function(){var x=p;return r&&(x=r(x)),x.length||(x=[{render:function(){return null}}]),x},[r,p,o]),V=j.useMemo(function(){return o==="rtl"?N(R(C)):R(C)},[C,o]);return[C,V]}A.b=P},"y0+3":function(xe,A,t){"use strict";t.d(A,"a",function(){return R}),t.d(A,"b",function(){return N});var v=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},Y={cssFloat:1,styleFloat:1,float:1};function te(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function j(P,s,r){if(s=s.toLowerCase(),r==="auto"){if(s==="height")return P.offsetHeight;if(s==="width")return P.offsetWidth}return s in E||(E[s]=v.test(s)),E[s]?parseFloat(r)||0:r}function n(P,s){var r=arguments.length,O=te(P);return s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,r===1?O:j(P,s,O[s]||P.style[s])}function U(P,s,r){var O=arguments.length;if(s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,O===3)return typeof r=="number"&&v.test(s)&&(r="".concat(r,"px")),P.style[s]=r,r;for(var b in s)s.hasOwnProperty(b)&&U(P,b,s[b]);return te(P)}function D(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function f(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function F(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:s}}function R(){var P=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:s}}function z(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function N(P){var s=P.getBoundingClientRect(),r=document.documentElement;return{left:s.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}},zr3n:function(xe,A,t){"use strict";t.r(A);var v=t("DjyN"),E=t("NUBc"),Y=t("g9YV"),te=t("wCAj"),j=t("qVdP"),n=t("jsC+"),U=t("14J3"),D=t("BMrR"),f=t("jCWc"),F=t("kPKH"),R=t("sRBo"),z=t("kaz8"),N=t("oBTY"),P=t("lUTK"),s=t("BvKs"),r=t("miYZ"),O=t("tsqr"),b=t("5NDa"),i=t("5rEg"),c=t("2qtc"),u=t("kLXV"),g=t("9og8"),d=t("k1fw"),h=t("tJVT"),_=t("WmNS"),a=t.n(_),o=t("q1tI"),e=t.n(o),m=t("wd/R"),p=t.n(m),C=t("P5Jw"),V=t.n(C),x=t("Ty5D"),H=t("9kvl"),ne=t("jhfD"),me=t("ErOA"),Se=t("8Skl"),ue=t("1vsH"),K=t("BdwD"),fe=t("xKgJ"),ge=t("6ZIh"),be=t.n(ge),pe=t("oUNq");p.a.locale("zh-cn");var B=function(Q){var W,y,ee,J,he=Q.classroomList,je=Q.globalSetting,se=Q.loading,ve=Q.dispatch,Me=Object(o.useState)(Object(d.a)(Object(d.a)({},Object(x.i)()),{page:1,limit:20})),Re=Object(h.a)(Me,2),w=Re[0],ke=Re[1],we=Object(o.useState)([]),Ce=Object(h.a)(we,2),ye=Ce[0],Ve=Ce[1],$e=Object(o.useState)({}),Ge=Object(h.a)($e,2),ze=Ge[0],Je=Ge[1],ot=Object(o.useRef)(),l=Object(o.useState)(!1),S=Object(h.a)(l,2),T=S[0],G=S[1],q=Object(o.useState)([]),X=Object(h.a)(q,2),L=X[0],M=X[1],I=Object(o.useState)(!1),re=Object(h.a)(I,2),Z=re[0],ae=re[1],Ee=Object(o.useState)([]),ce=Object(h.a)(Ee,2),_e=ce[0],Ie=ce[1];Object(o.useEffect)(function(){w.order=1,w.sort="asc",w.page=1,w.limit=20,w.course_group_id=w.categoryId,ke(w),Pe(w),Ne()},[w.categoryId]);var Ne=function(){var $=Object(g.a)(a.a.mark(function oe(){var de,le,ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.A)({coursesId:w.coursesId});case 2:ie=Ae.sent,Ve((ie==null||((de=ie.course_groups)===null||de===void 0)?void 0:de.map(function(nt){return Object(d.a)(Object(d.a)({},nt),{show:!0})}))||[]),Ie(ie==null||((le=ie.course_groups)===null||le===void 0)?void 0:le.filter(function(nt){return nt.in_current_course_group}));case 5:case"end":return Ae.stop()}},oe)}));return function(){return $.apply(this,arguments)}}(),Pe=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return G(!0),De.next=3,Object(pe.V)(de);case 3:le=De.sent,G(!1),Je(le||{});case 6:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),Oe=function(oe,de){w.page=oe,ae(!1),M([]),ke(w),Pe(w)},Ze=function(){ot.current=ze.course_group_name,u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},e.a.createElement(i.a,{defaultValue:ot.current,onChange:function(de){return ot.current=de.target.value}})),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.ub)({categoryId:w.categoryId,name:ot.current});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u66F4\u65B0\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},We=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u52A0\u5165\u5206\u73ED\u540E\uFF0C\u9700\u8054\u7CFB\u8001\u5E08\u6216\u52A9\u6559\u624D\u80FD\u8C03\u6574\u5206\u73ED"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.qb)({coursesId:w.coursesId,course_group_id:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u52A0\u5165\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},Be=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u8BE5\u5206\u73ED\u7684\u5B66\u751F\u5C06\u88AB\u79FB\u52A8\u5230\u201C\u672A\u5206\u73ED\u201D",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.l)({categoryId:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),ve({type:"classroomList/getClassroomLeftMenus",payload:{id:w.coursesId}}),H.d.push("/classrooms/".concat(w.coursesId,"/course_group")));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},He=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!((L==null?void 0:L.length)===0)){De.next=3;break}return O.b.info("\u8BF7\u9009\u62E9\u5B66\u751F"),De.abrupt("return");case 3:return De.next=5,Object(pe.Cb)({coursesId:w.coursesId,course_group_id:de,students:L.map(function(Ae){return{course_member_id:Ae}})});case 5:le=De.sent,(le==null?void 0:le.status)===0&&O.b.success("\u64CD\u4F5C\u6210\u529F"),w.page=1,M([]),ke(w),Pe(w);case 11:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),tt=function(oe){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var de=Object(g.a)(a.a.mark(function ie(){var De;return a.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,Object(pe.n)({coursesId:w.coursesId,students:[{course_member_id:oe}]});case 2:De=nt.sent,(De==null?void 0:De.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),w.page=1,Pe(w));case 4:case"end":return nt.stop()}},ie)}));function le(){return de.apply(this,arguments)}return le}()})},Ue=[{name:"\u8BFE\u5802\u4FE1\u606F",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_couser_info.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(W=w.search)===null||W===void 0?void 0:W.trim():null})})},{name:"\u6D3B\u8DC3\u5EA6",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_act_score.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(y=w.search)===null||y===void 0?void 0:y.trim():null})})},{name:"\u603B\u6210\u7EE9",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_scores_excel.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(ee=w.search)===null||ee===void 0?void 0:ee.trim():null})})}],qe=e.a.createElement(s.a,{style:{maxHeight:400,width:200,overflow:"auto",padding:10}},e.a.createElement("input",{placeholder:"\u641C\u7D22",className:"ant-input",onChange:function(oe){var de=oe.target.value;Ve(ye.map(function(le){var ie;return(ie=le.name)!==null&&ie!==void 0&&ie.includes(de)?Object(d.a)(Object(d.a)({},le),{show:!0}):Object(d.a)(Object(d.a)({},le),{show:!1})}))},style:{width:180}}),e.a.createElement(s.a.Item,{onClick:function(){return He(0)},className:"multi-llipsis1e"},e.a.createElement("span",null,"\u672A\u5206\u73ED")),ye==null||((J=ye.filter(function($){return $.show}))===null||J===void 0)?void 0:J.map(function($,oe){return e.a.createElement(s.a.Item,{onClick:function(){return He($.id)},className:"multi-llipsis1e"},e.a.createElement("span",null,$.name))})),Ye=e.a.createElement(s.a,{style:{maxHeight:400,width:240,overflow:"auto"}},Ue.map(function($,oe){return e.a.createElement(s.a.Item,{key:$.url},e.a.createElement("a",{onClick:Object(g.a)(a.a.mark(function de(){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(me.a)($.url,{method:"get"});case 2:le=De.sent,le&&(le==null?void 0:le.status)!==-1&&(le==null?void 0:le.status)!==-2&&Object(ue.O)($.url);case 4:case"end":return De.stop()}},de)}))},$.name))})),Fe=[Object(fe.c)()&&{title:"",width:80,align:"center",render:function(oe,de){return e.a.createElement(z.a,{checked:L.includes(de.course_member_id),onChange:function(ie){ie.target.checked?M([].concat(Object(N.a)(L),[de.course_member_id])):M(L.filter(function(De){return De!==de.course_member_id}))}})}},{title:"\u5E8F\u53F7",render:function(oe,de,le){return w.limit*(w.page-1)+le+1},width:80,align:"center"},{title:"\u59D3\u540D",dataIndex:"name",width:80,ellipsis:!0,align:"center",render:function(oe,de){return e.a.createElement("a",{className:"c-blank",onClick:function(){return Object(ue.O)("/users/".concat(de.login))}},oe)}},{title:"\u5B66\u53F7",dataIndex:"student_id",width:80,ellipsis:!0,align:"center",sorter:!0,showSorterTooltip:!1,render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u624B\u673A\u53F7",dataIndex:"user_phone",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u90AE\u7BB1",dataIndex:"user_mail",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}}].filter(function($){return!!$}),Ke=["\u5BFC\u5165\u521B\u5EFA\u5206\u73ED","\u65B0\u5EFA\u5206\u73ED"];return e.a.createElement("section",null,e.a.createElement("aside",{className:be.a.bg},e.a.createElement(D.a,{className:be.a.headWrap},e.a.createElement(F.a,{flex:"1"},e.a.createElement("span",null,e.a.createElement(ne.a,{className:"font16 c-black",onClick:function(){return H.d.push("/classrooms/".concat(w.coursesId,"/course_group"))}})),e.a.createElement("span",{className:"".concat(be.a.title," ml10")},ze.course_group_name),Object(fe.c)()&&ze.invite_code&&e.a.createElement("span",{className:"ml10"},e.a.createElement("span",{className:"c-grey-999 font16"},"\u9080\u8BF7\u7801\uFF1A"),e.a.createElement("span",{className:"c-orange font16"},ze.invite_code),e.a.createElement("span",null,e.a.createElement(C.CopyToClipboard,{text:ze.invite_code,className:"current",onCopy:function(){return O.b.success("\u590D\u5236\u6210\u529F")}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-fuzhi font14 ml10 c-orange"})))))),e.a.createElement(F.a,null,e.a.createElement("div",null,Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:Be},"\u5220\u9664\u5206\u73ED"),Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:Ze},"\u5206\u73ED\u91CD\u547D\u540D"),Object(fe.s)()&&_e.length<=0&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:We},"\u52A0\u5165\u5206\u73ED")))),e.a.createElement("div",{className:be.a.containerDesc},e.a.createElement("p",null,"\u5171",e.a.createElement("span",{className:"c-orange"},ze.students_count),"\u4E2A\u5B66\u751F"),e.a.createElement("p",null,e.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onSearch:function(oe){w.search=oe,w.page=1,ke(w),Pe(w)},style:{width:300}})))),ze.students_count===0&&e.a.createElement(K.a,null),ze.students_count>0&&e.a.createElement(e.a.Fragment,null,e.a.createElement("aside",{className:"plr30 mt20 ".concat(be.a.bg)},Object(fe.c)()&&e.a.createElement(D.a,{justify:"space-between",className:be.a.checkbox},e.a.createElement(F.a,null,e.a.createElement(z.a,{checked:Z,onChange:function(oe){if(ae(oe.target.checked),oe.target.checked){var de;M((de=ze.students)===null||de===void 0?void 0:de.map(function(le){return le.course_member_id}))}else M([])}},e.a.createElement("span",{className:"font14"},"\u5DF2\u9009",L.length,"\u4E2A"))),e.a.createElement(F.a,null,e.a.createElement(n.a,{overlay:qe,className:"ml20",placement:"bottomRight"},e.a.createElement("span",{className:"font14 current"},"\u79FB\u52A8\u5230",e.a.createElement(Se.a,{className:"ml5"}))))),e.a.createElement(te.a,{className:"pt20",columns:Fe,dataSource:ze.students,loading:T,pagination:!1,onChange:function(oe,de,le){console.log("c: ",le),le.order==="ascend"&&(w.sort="asc"),le.order==="descend"&&(w.sort="desc"),le.order||delete w.sort,ke(w),Pe(w)}})),e.a.createElement("aside",{className:"tc mb50 mt30"},e.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:Oe,defaultCurrent:1,defaultPageSize:20,current:w.page||1,total:ze.students_count}))))};A.default=Object(H.a)(function(k){var Q=k.classroomList,W=k.loading,y=k.globalSetting;return{classroomList:Q,globalSetting:y,loading:W}})(B)}}]); +`,V=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],x={},H;function ne(k){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=k.getAttribute("id")||k.getAttribute("data-reactid")||k.getAttribute("name");if(z&&x[Q])return x[Q];var W=window.getComputedStyle(k),y=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),J=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),he=V.map(function(se){return"".concat(se,":").concat(W.getPropertyValue(se))}).join(";"),je={sizingStyle:he,paddingSize:ee,borderSize:J,boxSizing:y};return z&&Q&&(x[Q]=je),je}function me(k){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),k.getAttribute("wrap")?H.setAttribute("wrap",k.getAttribute("wrap")):H.removeAttribute("wrap");var y=ne(k,z),ee=y.paddingSize,J=y.borderSize,he=y.boxSizing,je=y.sizingStyle;H.setAttribute("style","".concat(je,";").concat(C)),H.value=k.value||k.placeholder||"";var se=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Me=H.scrollHeight,Re;if(he==="border-box"?Me+=J:he==="content-box"&&(Me-=ee),Q!==null||W!==null){H.value=" ";var w=H.scrollHeight-ee;Q!==null&&(se=w*Q,he==="border-box"&&(se=se+ee+J),Me=Math.max(se,Me)),W!==null&&(ve=w*W,he==="border-box"&&(ve=ve+ee+J),Re=Me>ve?"":"hidden",Me=Math.min(ve,Me))}return{height:Me,minHeight:se,maxHeight:ve,overflowY:Re,resize:"none"}}var Te=t("Gytx"),ue=t.n(Te),K;(function(k){k[k.NONE=0]="NONE",k[k.RESIZING=1]="RESIZING",k[k.RESIZED=2]="RESIZED"})(K||(K={}));var fe=function(k){Object(te.a)(Q,k);var z=Object(j.a)(Q);function Q(W){var y;return Object(E.a)(this,Q),y=z.call(this,W),y.nextFrameActionId=void 0,y.resizeFrameId=void 0,y.textArea=void 0,y.saveTextArea=function(ee){y.textArea=ee},y.handleResize=function(ee){var J=y.state.resizeStatus,he=y.props,je=he.autoSize,se=he.onResize;if(J!==K.NONE)return;typeof se=="function"&&se(ee),je&&y.resizeOnNextFrame()},y.resizeOnNextFrame=function(){cancelAnimationFrame(y.nextFrameActionId),y.nextFrameActionId=requestAnimationFrame(y.resizeTextarea)},y.resizeTextarea=function(){var ee=y.props.autoSize;if(!ee||!y.textArea)return;var J=ee.minRows,he=ee.maxRows,je=me(y.textArea,!1,J,he);y.setState({textareaStyles:je,resizeStatus:K.RESIZING},function(){cancelAnimationFrame(y.resizeFrameId),y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.RESIZED},function(){y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:K.NONE}),y.fixFirefoxAutoScroll()})})})})},y.renderTextArea=function(){var ee=y.props,J=ee.prefixCls,he=J===void 0?"rc-textarea":J,je=ee.autoSize,se=ee.onResize,ve=ee.className,Me=ee.disabled,Re=y.state,w=Re.textareaStyles,ze=Re.resizeStatus,we=Object(e.a)(y.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ce=p()(he,ve,Object(D.a)({},"".concat(he,"-disabled"),Me));"value"in we&&(we.value=we.value||"");var ye=Object(U.a)(Object(U.a)(Object(U.a)({},y.props.style),w),ze===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:y.handleResize,disabled:!(je||se)},n.createElement("textarea",Object(v.a)({},we,{className:Ce,style:ye,ref:y.saveTextArea})))},y.state={textareaStyles:{},resizeStatus:K.NONE},y}return Object(Y.a)(Q,[{key:"componentDidUpdate",value:function(y){(y.value!==this.props.value||!ue()(y.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var y=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(y,ee)}}catch(J){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Q}(n.Component),ge=fe,be=function(k){Object(te.a)(Q,k);var z=Object(j.a)(Q);function Q(W){var y;Object(E.a)(this,Q),y=z.call(this,W),y.resizableTextArea=void 0,y.focus=function(){y.resizableTextArea.textArea.focus()},y.saveTextArea=function(J){y.resizableTextArea=J},y.handleChange=function(J){var he=y.props.onChange;y.setValue(J.target.value,function(){y.resizableTextArea.resizeTextarea()}),he&&he(J)},y.handleKeyDown=function(J){var he=y.props,je=he.onPressEnter,se=he.onKeyDown;J.keyCode===13&&je&&je(J),se&&se(J)};var ee=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return y.state={value:ee},y}return Object(Y.a)(Q,[{key:"setValue",value:function(y,ee){"value"in this.props||this.setState({value:y},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ge,Object(v.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(y){return"value"in y?{value:y.value}:null}}]),Q}(n.Component),pe=A.default=be},bT9E:function(xe,A,t){"use strict";t.d(A,"a",function(){return E});var v=t("VTBJ");function E(Y,te){var j=Object(v.a)({},Y);return Array.isArray(te)&&te.forEach(function(n){delete j[n]}),j}},biw7:function(xe,A,t){"use strict";var v=t("q1tI"),E=t.n(v),Y=v.createContext(null);A.a=Y},fyJ8:function(xe,A,t){"use strict";var v=t("rePB"),E=t("VTBJ"),Y=t("Ff2n"),te=t("U8pU"),j=t("q1tI"),n=t.n(j),U=t("TSYQ"),D=t.n(U),f=t("c+Xe"),F=t("sR1s");function R(r){return r&&Object(te.a)(r)==="object"&&!Array.isArray(r)&&!j.isValidElement(r)}function B(r){return typeof r=="string"?!0:Object(f.c)(r)}function N(r,O){var b,i=r.prefixCls,c=r.className,u=r.record,g=r.index,d=r.dataIndex,h=r.render,_=r.children,a=r.component,o=a===void 0?"td":a,e=r.colSpan,m=r.rowSpan,p=r.fixLeft,C=r.fixRight,V=r.firstFixLeft,x=r.lastFixLeft,H=r.firstFixRight,ne=r.lastFixRight,me=r.appendNode,Te=r.additionalProps,ue=Te===void 0?{}:Te,K=r.ellipsis,fe=r.align,ge=r.rowType,be=r.isSticky,pe="".concat(i,"-cell"),k,z;if(_)z=_;else{var Q=Object(F.b)(u,d);if(z=Q,h){var W=h(Q,u,g);R(W)?(z=W.children,k=W.props):z=W}}Object(te.a)(z)==="object"&&!Array.isArray(z)&&!j.isValidElement(z)&&(z=null),K&&(x||H)&&(z=j.createElement("span",{className:"".concat(pe,"-content")},z));var y=k||{},ee=y.colSpan,J=y.rowSpan,he=y.style,je=y.className,se=Object(Y.a)(y,["colSpan","rowSpan","style","className"]),ve=ee!==void 0?ee:e,Me=J!==void 0?J:m;if(ve===0||Me===0)return null;var Re={},w=typeof p=="number",ze=typeof C=="number";w&&(Re.position="sticky",Re.left=p),ze&&(Re.position="sticky",Re.right=C);var we={};fe&&(we.textAlign=fe);var Ce,ye=K===!0?{showTitle:!0}:K;ye&&(ye.showTitle||ge==="header")&&(typeof z=="string"||typeof z=="number"?Ce=z.toString():j.isValidElement(z)&&typeof z.props.children=="string"&&(Ce=z.props.children));var Ve=Object(E.a)(Object(E.a)(Object(E.a)({title:Ce},se),ue),{},{colSpan:ve&&ve!==1?ve:null,rowSpan:Me&&Me!==1?Me:null,className:D()(pe,c,(b={},Object(v.a)(b,"".concat(pe,"-fix-left"),w),Object(v.a)(b,"".concat(pe,"-fix-left-first"),V),Object(v.a)(b,"".concat(pe,"-fix-left-last"),x),Object(v.a)(b,"".concat(pe,"-fix-right"),ze),Object(v.a)(b,"".concat(pe,"-fix-right-first"),H),Object(v.a)(b,"".concat(pe,"-fix-right-last"),ne),Object(v.a)(b,"".concat(pe,"-ellipsis"),K),Object(v.a)(b,"".concat(pe,"-with-append"),me),Object(v.a)(b,"".concat(pe,"-fix-sticky"),(w||ze)&&be),b),ue.className,je),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},ue.style),we),Re),he),ref:B(o)?O:null});return j.createElement(o,Object.assign({},Ve),me,z)}var P=j.forwardRef(N);P.displayName="Cell";var s=j.memo(P,function(r,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,r.record):!1});A.a=s},hW8S:function(xe,A,t){"use strict";t.d(A,"a",function(){return te}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return n});var v=t("VTBJ"),E=t("Ff2n"),Y=t("Kwbf"),te="RC_TABLE_INTERNAL_COL_DEFINE";function j(U){var D=U.expandable,f=Object(E.a)(U,["expandable"]);return"expandable"in U?Object(v.a)(Object(v.a)({},f),D):f}function n(U){return Object.keys(U).reduce(function(D,f){return(f.substr(0,5)==="data-"||f.substr(0,5)==="aria-")&&(D[f]=U[f]),D},{})}},n6Qo:function(xe,A,t){"use strict";t.d(A,"a",function(){return D});var v=t("q1tI"),E=t("biw7"),Y=t("fyJ8");function te(f){var F=f.className,R=f.index,B=f.children,N=f.colSpan,P=f.rowSpan,s=v.useContext(E.a),r=s.prefixCls,O=s.fixedInfoList,b=O[R];return v.createElement(Y.a,Object.assign({className:F,index:R,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:B,props:{colSpan:N,rowSpan:P}}}},b))}function j(f){return v.createElement("tr",Object.assign({},f))}function n(f){var F=f.children,R=v.useContext(E.a),B=R.prefixCls;return v.createElement("tfoot",{className:"".concat(B,"-summary")},F)}var U=A.b=n,D={Cell:te,Row:j}},rHrb:function(xe,A,t){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.CopyToClipboard=void 0;var v=Y(t("q1tI")),E=Y(t("+QRC"));function Y(i){return i&&i.__esModule?i:{default:i}}function te(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(u){return typeof u}:te=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},te(i)}function j(i,c){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);c&&(g=g.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),u.push.apply(u,g)}return u}function n(i){for(var c=1;c=0)continue;if(!Object.prototype.propertyIsEnumerable.call(i,g))continue;u[g]=i[g]}}return u}function D(i,c){if(i==null)return{};var u={},g=Object.keys(i),d,h;for(h=0;h=0)continue;u[d]=i[d]}return u}function f(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")}function F(i,c){for(var u=0;u1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var u=c[0];if(n.isValidElement(u)&&Object(R.c)(u)){var g=u.ref;c[0]=n.cloneElement(u,{ref:Object(R.a)(g,this.setChildNode)})}return c.length===1?c[0]:c.map(function(d,h){return!n.isValidElement(d)||"key"in d&&d.key!==null?d:n.cloneElement(d,{key:"".concat(N,"-").concat(h)})})}}]),O}(n.Component);P.displayName="ResizeObserver",A.a=P},wCXF:function(xe,A,t){"use strict";t.d(A,"a",function(){return Ge});var v=t("rePB"),E=t("VTBJ"),Y=t("KQm4"),te=t("U8pU"),j=t("ODXe"),n=t("q1tI"),U=t("TSYQ"),D=t.n(U),f=t("Gytx"),F=t.n(f),R=t("Kwbf"),B=t("t23M"),N=t("qx4F"),P=t("6eGT"),s=t("IBYe"),r=t("Ff2n"),O=t("c+Xe"),b=t("fyJ8"),i=t("biw7");function c(l,T,S,G,q){var X=S[l]||{},L=S[T]||{},M,I;X.fixed==="left"?M=G.left[l]:L.fixed==="right"&&(I=G.right[T]);var re=!1,Z=!1,ae=!1,Ee=!1,ce=S[T+1],_e=S[l-1];if(q==="rtl"){if(M!==void 0){var Ie=_e&&_e.fixed==="left";Ee=!Ie}else if(I!==void 0){var Ne=ce&&ce.fixed==="right";ae=!Ne}}else if(M!==void 0){var Pe=ce&&ce.fixed==="left";re=!Pe}else if(I!==void 0){var Oe=_e&&_e.fixed==="right";Z=!Oe}return{fixLeft:M,fixRight:I,lastFixLeft:re,firstFixRight:Z,lastFixRight:ae,firstFixLeft:Ee,isSticky:G.isSticky}}var u=t("sR1s");function g(l){var T=l.cells,S=l.stickyOffsets,G=l.flattenColumns,q=l.rowComponent,X=l.cellComponent,L=l.onHeaderRow,M=l.index,I=n.useContext(i.a),re=I.prefixCls,Z=I.direction,ae;L&&(ae=L(T.map(function(ce){return ce.column}),M));var Ee=Object(u.a)(T.map(function(ce){return ce.column}));return n.createElement(q,Object.assign({},ae),T.map(function(ce,_e){var Ie=ce.column,Ne=c(ce.colStart,ce.colEnd,G,S,Z),Pe;return Ie&&Ie.onHeaderCell&&(Pe=ce.column.onHeaderCell(Ie)),n.createElement(b.a,Object.assign({},ce,{ellipsis:Ie.ellipsis,align:Ie.align,component:X,prefixCls:re,key:Ee[_e]},Ne,{additionalProps:Pe,rowType:"header"}))}))}g.displayName="HeaderRow";var d=g;function h(l){var T=[];function S(L,M){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;T[I]=T[I]||[];var re=M,Z=L.filter(Boolean).map(function(ae){var Ee={key:ae.key,className:ae.className||"",children:ae.title,column:ae,colStart:re},ce=1,_e=ae.children;return _e&&_e.length>0&&(ce=S(_e,re,I+1).reduce(function(Ie,Ne){return Ie+Ne},0),Ee.hasSubColumns=!0),"colSpan"in ae&&(ce=ae.colSpan),"rowSpan"in ae&&(Ee.rowSpan=ae.rowSpan),Ee.colSpan=ce,Ee.colEnd=Ee.colStart+ce-1,T[I].push(Ee),re+=ce,ce});return Z}S(l,0);for(var G=T.length,q=function(M){T[M].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=G-M)})},X=0;X=0;M-=1){var I=T[M],re=S&&S[M],Z=re&&re[o.a];(I||Z||L)&&(q.unshift(n.createElement("col",Object.assign({key:M,style:{width:I,minWidth:I}},Z))),L=!0)}return n.createElement("colgroup",null,q)}var m=e;function p(l,T){return Object(n.useMemo)(function(){for(var S=[],G=0;G1?at-1:0),pt=1;pt=ae&&(ie=ae-Ee),L({scrollLeft:ie/ae*(Z+2)}),Oe.current.x=$.pageX},Ye=function(){var $=Object(ze.b)(X.current).top,oe=$+X.current.offsetHeight,de=document.documentElement.scrollTop+window.innerHeight;oe-Object(N.a)()<=de||$>=de-M?Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!0})}):Pe(function(le){return Object(E.a)(Object(E.a)({},le),{},{isHiddenScrollBar:!1})})},Fe=function($){Pe(function(oe){return Object(E.a)(Object(E.a)({},oe),{},{scrollLeft:$/Z*ae||0})})};return n.useImperativeHandle(S,function(){return{setScrollLeft:Fe}}),n.useEffect(function(){var Ke=Object(w.a)(document.body,"mouseup",tt,!1),$=Object(w.a)(document.body,"mousemove",qe,!1);return Ye(),function(){Ke.remove(),$.remove()}},[Ee,ke]),n.useEffect(function(){var Ke=Object(w.a)(window,"scroll",Ye,!1),$=Object(w.a)(window,"resize",Ye,!1);return function(){Ke.remove(),$.remove()}},[]),n.useEffect(function(){Ne.isHiddenScrollBar||Pe(function(Ke){var $,oe;return Object(E.a)(Object(E.a)({},Ke),{},{scrollLeft:X.current.scrollLeft/(($=X.current)===null||$===void 0?void 0:$.scrollWidth)*((oe=X.current)===null||oe===void 0?void 0:oe.clientWidth)})})},[Ne.isHiddenScrollBar]),Z<=ae||!Ee||Ne.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(N.a)(),width:ae,bottom:M},className:"".concat(re,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ue,ref:ce,className:D()("".concat(re,"-sticky-scroll-bar"),Object(v.a)({},"".concat(re,"-sticky-scroll-bar-active"),ke)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(Ne.scrollLeft,"px, 0, 0)")}}))},Ce=n.forwardRef(we);function ye(l,T){return n.useMemo(function(){var S=!!l;return{isSticky:S,stickyClassName:S?"".concat(T,"-sticky-header"):"",offsetHeader:Object(te.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(te.a)(l)==="object"&&l.offsetScroll||0}},[l,T])}var Ve=[],$e={},Ge="rc-table-internal-hook",Be=n.memo(function(l){var T=l.children;return T},function(l,T){return F()(l.props,T.props)?l.pingLeft!==T.pingLeft||l.pingRight!==T.pingRight:!1});function Je(l){var T,S=l.prefixCls,G=l.className,q=l.rowClassName,X=l.style,L=l.data,M=l.rowKey,I=l.scroll,re=l.tableLayout,Z=l.direction,ae=l.title,Ee=l.footer,ce=l.summary,_e=l.id,Ie=l.showHeader,Ne=l.components,Pe=l.emptyText,Oe=l.onRow,Ze=l.onHeaderRow,We=l.internalHooks,ke=l.transformColumns,He=l.internalRefs,tt=l.sticky,Ue=L||Ve,qe=!!Ue.length,Ye=n.useState(0),Fe=Object(j.a)(Ye,2),Ke=Fe[0],$=Fe[1];n.useEffect(function(){$(Object(N.a)())});var oe=n.useMemo(function(){return Object(u.c)(Ne,{})},[Ne]),de=n.useCallback(function(Se,Le){return Object(u.b)(oe,Se)||Le},[oe]),le=n.useMemo(function(){return typeof M=="function"?M:function(Se){var Le=Se&&Se[M];return Le}},[M]),ie=Object(o.c)(l),De=ie.expandIcon,Ae=ie.expandedRowKeys,nt=ie.defaultExpandedRowKeys,ct=ie.defaultExpandAllRows,ft=ie.expandedRowRender,vt=ie.onExpand,bt=ie.onExpandedRowsChange,Pt=ie.expandRowByClick,st=ie.rowExpandable,yt=ie.expandIconColumnIndex,Et=ie.expandedRowClassName,Kt=ie.childrenColumnName,Dt=ie.indentSize,gt=De||Me,Ot=Kt||"children",Tt=n.useMemo(function(){return ft?"row":l.expandable&&We===Ge&&l.expandable.__PARENT_RENDER_ICON__||Ue.some(function(Se){return Se&&Object(te.a)(Se)==="object"&&Se[Ot]})?"nest":!1},[!!ft,Ue]),Nt=n.useState(function(){return nt||(ct?Re(Ue,le,Ot):[])}),et=Object(j.a)(Nt,2),rt=et[0],it=et[1],at=n.useMemo(function(){return new Set(Ae||rt||[])},[Ae,rt]),mt=n.useCallback(function(Se){var Le=le(Se,Ue.indexOf(Se)),Qe,lt=at.has(Le);lt?(at.delete(Le),Qe=Object(Y.a)(at)):Qe=[].concat(Object(Y.a)(at),[Le]),it(Qe),vt&&vt(!lt,Se),bt&&bt(Qe)},[le,at,Ue,vt,bt]),pt=n.useState(0),St=Object(j.a)(pt,2),xt=St[0],Mt=St[1],vn=Object(z.b)(Object(E.a)(Object(E.a)(Object(E.a)({},l),ie),{},{expandable:!!ft,expandedKeys:at,getRowKey:le,onTriggerExpand:mt,expandIcon:gt,expandIconColumnIndex:yt,direction:Z}),We===Ge?ke:null),Yt=Object(j.a)(vn,2),zt=Yt[0],Xe=Yt[1],At=n.useMemo(function(){return{columns:zt,flattenColumns:Xe}},[zt,Xe]),Bt=n.useRef(),Qt=n.useRef(),ht=n.useRef(),bn=n.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=y(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],_n=Object(u.a)(Xe),an=_n.map(function(Se){return On.get(Se)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=he(on,Xe.length,Z),ut=I&&Object(u.d)(I.y),dt=I&&Object(u.d)(I.x),_t=dt&&Xe.some(function(Se){var Le=Se.fixed;return Le}),rn=n.useRef(),Ut=ye(tt,S),jt=Ut.isSticky,jn=Ut.offsetHeader,Rn=Ut.offsetScroll,Pn=Ut.stickyClassName,kt,wt,Wt;ut&&(wt={overflowY:"scroll",maxHeight:I.y}),dt&&(kt={overflowX:"auto"},ut||(wt={overflowY:"hidden"}),Wt={width:I.x===!0?"auto":I.x,minWidth:"100%"});var ln=n.useCallback(function(Se,Le){xn(function(Qe){var lt=new Map(Qe);return lt.set(Se,Le),lt})},[]),Dn=ee(null),sn=Object(j.a)(Dn,2),Tn=sn[0],un=sn[1];function Ft(Se,Le){if(!Le)return;typeof Le=="function"?Le(Se):Le.scrollLeft!==Se&&(Le.scrollLeft=Se)}var Ct=function(Le){var Qe=Le.currentTarget,lt=Le.scrollLeft,Rt=typeof lt=="number"?lt:Qe.scrollLeft,hn=Qe||$e;if(!un()||un()===hn){var Jt;Tn(hn),Ft(Rt,Qt.current),Ft(Rt,ht.current),Ft(Rt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Qe){var wn=Qe.scrollWidth,In=Qe.clientWidth;En(Rt>0),Cn(Rt0?[].concat(Object(E.a)(r),Object(E.a)(R(c).map(function(u){return Object(Y.a)({fixed:i},u)}))):[].concat(Object(E.a)(r),[Object(Y.a)(Object(Y.a)({},O),{},{fixed:i})])},[])}function B(s){for(var r=!0,O=0;O=0;c-=1){var u=s[c];if(i&&u.fixed!=="right")i=!1;else if(!i&&u.fixed==="right"){Object(U.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function N(s){return s.map(function(r){var O=r.fixed,b=Object(te.a)(r,["fixed"]),i=O;return O==="left"?i="right":O==="right"&&(i="left"),Object(Y.a)({fixed:i},b)})}function P(s,r){var O=s.prefixCls,b=s.columns,i=s.children,c=s.expandable,u=s.expandedKeys,g=s.getRowKey,d=s.onTriggerExpand,h=s.expandIcon,_=s.rowExpandable,a=s.expandIconColumnIndex,o=s.direction,e=s.expandRowByClick,m=j.useMemo(function(){return b||F(i)},[b,i]),p=j.useMemo(function(){if(c){var x,H=a||0,ne=m[H],me=(x={},Object(v.a)(x,f.a,{className:"".concat(O,"-expand-icon-col")}),Object(v.a)(x,"title",""),Object(v.a)(x,"fixed",ne?ne.fixed:null),Object(v.a)(x,"className","".concat(O,"-row-expand-icon-cell")),Object(v.a)(x,"render",function(K,fe,ge){var be=g(fe,ge),pe=u.has(be),k=_?_(fe):!0,z=h({prefixCls:O,expanded:pe,expandable:k,record:fe,onExpand:d});return e?j.createElement("span",{onClick:function(W){return W.stopPropagation()}},z):z}),x),Te=m.slice();return H>=0&&Te.splice(H,0,me),Te}return m},[c,m,g,u,h,o]),C=j.useMemo(function(){var x=p;return r&&(x=r(x)),x.length||(x=[{render:function(){return null}}]),x},[r,p,o]),V=j.useMemo(function(){return o==="rtl"?N(R(C)):R(C)},[C,o]);return[C,V]}A.b=P},"y0+3":function(xe,A,t){"use strict";t.d(A,"a",function(){return R}),t.d(A,"b",function(){return N});var v=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},Y={cssFloat:1,styleFloat:1,float:1};function te(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function j(P,s,r){if(s=s.toLowerCase(),r==="auto"){if(s==="height")return P.offsetHeight;if(s==="width")return P.offsetWidth}return s in E||(E[s]=v.test(s)),E[s]?parseFloat(r)||0:r}function n(P,s){var r=arguments.length,O=te(P);return s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,r===1?O:j(P,s,O[s]||P.style[s])}function U(P,s,r){var O=arguments.length;if(s=Y[s]?"cssFloat"in P.style?"cssFloat":"styleFloat":s,O===3)return typeof r=="number"&&v.test(s)&&(r="".concat(r,"px")),P.style[s]=r,r;for(var b in s)s.hasOwnProperty(b)&&U(P,b,s[b]);return te(P)}function D(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function f(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function F(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:s}}function R(){var P=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:s}}function B(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function N(P){var s=P.getBoundingClientRect(),r=document.documentElement;return{left:s.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}},zr3n:function(xe,A,t){"use strict";t.r(A);var v=t("DjyN"),E=t("NUBc"),Y=t("g9YV"),te=t("wCAj"),j=t("qVdP"),n=t("jsC+"),U=t("14J3"),D=t("BMrR"),f=t("jCWc"),F=t("kPKH"),R=t("sRBo"),B=t("kaz8"),N=t("oBTY"),P=t("lUTK"),s=t("BvKs"),r=t("miYZ"),O=t("tsqr"),b=t("5NDa"),i=t("5rEg"),c=t("2qtc"),u=t("kLXV"),g=t("9og8"),d=t("k1fw"),h=t("tJVT"),_=t("WmNS"),a=t.n(_),o=t("q1tI"),e=t.n(o),m=t("wd/R"),p=t.n(m),C=t("P5Jw"),V=t.n(C),x=t("Ty5D"),H=t("9kvl"),ne=t("jhfD"),me=t("ErOA"),Te=t("8Skl"),ue=t("1vsH"),K=t("BdwD"),fe=t("xKgJ"),ge=t("6ZIh"),be=t.n(ge),pe=t("oUNq");p.a.locale("zh-cn");var k=function(Q){var W,y,ee,J,he=Q.classroomList,je=Q.globalSetting,se=Q.loading,ve=Q.dispatch,Me=Object(o.useState)(Object(d.a)(Object(d.a)({},Object(x.i)()),{page:1,limit:20})),Re=Object(h.a)(Me,2),w=Re[0],ze=Re[1],we=Object(o.useState)([]),Ce=Object(h.a)(we,2),ye=Ce[0],Ve=Ce[1],$e=Object(o.useState)({}),Ge=Object(h.a)($e,2),Be=Ge[0],Je=Ge[1],ot=Object(o.useRef)(),l=Object(o.useState)(!1),T=Object(h.a)(l,2),S=T[0],G=T[1],q=Object(o.useState)([]),X=Object(h.a)(q,2),L=X[0],M=X[1],I=Object(o.useState)(!1),re=Object(h.a)(I,2),Z=re[0],ae=re[1],Ee=Object(o.useState)([]),ce=Object(h.a)(Ee,2),_e=ce[0],Ie=ce[1];Object(o.useEffect)(function(){w.order=1,w.sort="asc",w.page=1,w.limit=20,w.course_group_id=w.categoryId,ze(w),Pe(w),Ne()},[w.categoryId]);var Ne=function(){var $=Object(g.a)(a.a.mark(function oe(){var de,le,ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.A)({coursesId:w.coursesId});case 2:ie=Ae.sent,Ve((ie==null||((de=ie.course_groups)===null||de===void 0)?void 0:de.map(function(nt){return Object(d.a)(Object(d.a)({},nt),{show:!0})}))||[]),Ie(ie==null||((le=ie.course_groups)===null||le===void 0)?void 0:le.filter(function(nt){return nt.in_current_course_group}));case 5:case"end":return Ae.stop()}},oe)}));return function(){return $.apply(this,arguments)}}(),Pe=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return G(!0),De.next=3,Object(pe.V)(de);case 3:le=De.sent,G(!1),Je(le||{});case 6:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),Oe=function(oe,de){w.page=oe,ae(!1),M([]),ze(w),Pe(w)},Ze=function(){ot.current=Be.course_group_name,u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},e.a.createElement(i.a,{defaultValue:ot.current,onChange:function(de){return ot.current=de.target.value}})),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.ub)({categoryId:w.categoryId,name:ot.current});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u66F4\u65B0\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},We=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u52A0\u5165\u5206\u73ED\u540E\uFF0C\u9700\u8054\u7CFB\u8001\u5E08\u6216\u52A9\u6559\u624D\u80FD\u8C03\u6574\u5206\u73ED"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.qb)({coursesId:w.coursesId,course_group_id:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u52A0\u5165\u6210\u529F"),Pe(w));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},ke=function(){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u8BE5\u5206\u73ED\u7684\u5B66\u751F\u5C06\u88AB\u79FB\u52A8\u5230\u201C\u672A\u5206\u73ED\u201D",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var oe=Object(g.a)(a.a.mark(function le(){var ie;return a.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(pe.l)({categoryId:w.categoryId});case 2:ie=Ae.sent,(ie==null?void 0:ie.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),ve({type:"classroomList/getClassroomLeftMenus",payload:{id:w.coursesId}}),H.d.push("/classrooms/".concat(w.coursesId,"/course_group")));case 4:case"end":return Ae.stop()}},le)}));function de(){return oe.apply(this,arguments)}return de}()})},He=function(){var $=Object(g.a)(a.a.mark(function oe(de){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!((L==null?void 0:L.length)===0)){De.next=3;break}return O.b.info("\u8BF7\u9009\u62E9\u5B66\u751F"),De.abrupt("return");case 3:return De.next=5,Object(pe.Cb)({coursesId:w.coursesId,course_group_id:de,students:L.map(function(Ae){return{course_member_id:Ae}})});case 5:le=De.sent,(le==null?void 0:le.status)===0&&O.b.success("\u64CD\u4F5C\u6210\u529F"),w.page=1,M([]),ze(w),Pe(w);case 11:case"end":return De.stop()}},oe)}));return function(de){return $.apply(this,arguments)}}(),tt=function(oe){u.a.confirm({width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,content:e.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var de=Object(g.a)(a.a.mark(function ie(){var De;return a.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,Object(pe.n)({coursesId:w.coursesId,students:[{course_member_id:oe}]});case 2:De=nt.sent,(De==null?void 0:De.status)===0&&(O.b.success("\u5220\u9664\u6210\u529F"),w.page=1,Pe(w));case 4:case"end":return nt.stop()}},ie)}));function le(){return de.apply(this,arguments)}return le}()})},Ue=[{name:"\u8BFE\u5802\u4FE1\u606F",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_couser_info.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(W=w.search)===null||W===void 0?void 0:W.trim():null})})},{name:"\u6D3B\u8DC3\u5EA6",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_act_score.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(y=w.search)===null||y===void 0?void 0:y.trim():null})})},{name:"\u603B\u6210\u7EE9",url:Object(ue.U)({url:"/api/courses/".concat(w.coursesId,"/export_member_scores_excel.xlsx&export=true"),query:Object(d.a)(Object(d.a)({},w),{group_id:w.course_group_id,search:w.search?(ee=w.search)===null||ee===void 0?void 0:ee.trim():null})})}],qe=e.a.createElement(s.a,{style:{maxHeight:400,width:200,overflow:"auto",padding:10}},e.a.createElement("input",{placeholder:"\u641C\u7D22",className:"ant-input",onChange:function(oe){var de=oe.target.value;Ve(ye.map(function(le){var ie;return(ie=le.name)!==null&&ie!==void 0&&ie.includes(de)?Object(d.a)(Object(d.a)({},le),{show:!0}):Object(d.a)(Object(d.a)({},le),{show:!1})}))},style:{width:180}}),e.a.createElement(s.a.Item,{onClick:function(){return He(0)},className:"multi-llipsis1e"},e.a.createElement("span",null,"\u672A\u5206\u73ED")),ye==null||((J=ye.filter(function($){return $.show}))===null||J===void 0)?void 0:J.map(function($,oe){return e.a.createElement(s.a.Item,{onClick:function(){return He($.id)},className:"multi-llipsis1e"},e.a.createElement("span",null,$.name))})),Ye=e.a.createElement(s.a,{style:{maxHeight:400,width:240,overflow:"auto"}},Ue.map(function($,oe){return e.a.createElement(s.a.Item,{key:$.url},e.a.createElement("a",{onClick:Object(g.a)(a.a.mark(function de(){var le;return a.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(me.a)($.url,{method:"get"});case 2:le=De.sent,le&&(le==null?void 0:le.status)!==-1&&(le==null?void 0:le.status)!==-2&&Object(ue.O)($.url);case 4:case"end":return De.stop()}},de)}))},$.name))})),Fe=[Object(fe.c)()&&{title:"",width:80,align:"center",render:function(oe,de){return e.a.createElement(B.a,{checked:L.includes(de.course_member_id),onChange:function(ie){ie.target.checked?M([].concat(Object(N.a)(L),[de.course_member_id])):M(L.filter(function(De){return De!==de.course_member_id}))}})}},{title:"\u5E8F\u53F7",render:function(oe,de,le){return w.limit*(w.page-1)+le+1},width:80,align:"center"},{title:"\u59D3\u540D",dataIndex:"name",width:80,ellipsis:!0,align:"center",render:function(oe,de){return e.a.createElement("a",{className:"c-blank",onClick:function(){return Object(ue.O)("/users/".concat(de.login))}},oe)}},{title:"\u5B66\u53F7",dataIndex:"student_id",width:80,ellipsis:!0,align:"center",sorter:!0,showSorterTooltip:!1,render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u624B\u673A\u53F7",dataIndex:"user_phone",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}},{title:"\u90AE\u7BB1",dataIndex:"user_mail",width:80,ellipsis:!0,align:"center",render:function(oe){return e.a.createElement("span",null,oe)}}].filter(function($){return!!$}),Ke=["\u5BFC\u5165\u521B\u5EFA\u5206\u73ED","\u65B0\u5EFA\u5206\u73ED"];return e.a.createElement("section",null,e.a.createElement("aside",{className:be.a.bg},e.a.createElement(D.a,{className:be.a.headWrap},e.a.createElement(F.a,{flex:"1"},e.a.createElement("span",null,e.a.createElement(ne.a,{className:"font16 c-black",onClick:function(){return H.d.push("/classrooms/".concat(w.coursesId,"/course_group"))}})),e.a.createElement("span",{className:"".concat(be.a.title," ml10")},Be.course_group_name),Object(fe.c)()&&Be.invite_code&&e.a.createElement("span",{className:"ml10"},e.a.createElement("span",{className:"c-grey-999 font16"},"\u9080\u8BF7\u7801\uFF1A"),e.a.createElement("span",{className:"c-orange font16"},Be.invite_code),e.a.createElement("span",null,e.a.createElement(C.CopyToClipboard,{text:Be.invite_code,className:"current",onCopy:function(){return O.b.success("\u590D\u5236\u6210\u529F")}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-fuzhi font14 ml10 c-orange"})))))),e.a.createElement(F.a,null,e.a.createElement("div",null,Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:ke},"\u5220\u9664\u5206\u73ED"),Object(fe.c)()&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:Ze},"\u5206\u73ED\u91CD\u547D\u540D"),Object(fe.s)()&&_e.length<=0&&e.a.createElement("span",{className:[be.a.add,"font16","c-blue","ml20","current"].join(" "),onClick:We},"\u52A0\u5165\u5206\u73ED")))),e.a.createElement("div",{className:be.a.containerDesc},e.a.createElement("p",null,"\u5171",e.a.createElement("span",{className:"c-orange"},Be.students_count),"\u4E2A\u5B66\u751F"),e.a.createElement("p",null,e.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onSearch:function(oe){w.search=oe,w.page=1,ze(w),Pe(w)},style:{width:300}})))),Be.students_count===0&&e.a.createElement(K.a,null),Be.students_count>0&&e.a.createElement(e.a.Fragment,null,e.a.createElement("aside",{className:"plr30 mt20 ".concat(be.a.bg)},Object(fe.c)()&&e.a.createElement(D.a,{justify:"space-between",className:be.a.checkbox},e.a.createElement(F.a,null,e.a.createElement(B.a,{checked:Z,onChange:function(oe){if(ae(oe.target.checked),oe.target.checked){var de;M((de=Be.students)===null||de===void 0?void 0:de.map(function(le){return le.course_member_id}))}else M([])}},e.a.createElement("span",{className:"font14"},"\u5DF2\u9009",L.length,"\u4E2A"))),e.a.createElement(F.a,null,e.a.createElement(n.a,{overlay:qe,className:"ml20",placement:"bottomRight"},e.a.createElement("span",{className:"font14 current"},"\u79FB\u52A8\u5230",e.a.createElement(Te.a,{className:"ml5"}))))),e.a.createElement(te.a,{className:"pt20",columns:Fe,dataSource:Be.students,loading:S,pagination:!1,onChange:function(oe,de,le){console.log("c: ",le),le.order==="ascend"&&(w.sort="asc"),le.order==="descend"&&(w.sort="desc"),le.order||delete w.sort,ze(w),Pe(w)}})),e.a.createElement("aside",{className:"tc mb50 mt30"},e.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:Oe,defaultCurrent:1,defaultPageSize:20,current:w.page||1,total:Be.students_count}))))};A.default=Object(H.a)(function(z){var Q=z.classroomList,W=z.loading,y=z.globalSetting;return{classroomList:Q,globalSetting:y,loading:W}})(k)}}]); diff --git a/p__Classrooms__Lists__CourseGroup__List__index.8be1c900.async.js b/p__Classrooms__Lists__CourseGroup__List__index.8be1c900.async.js index 2f6571ed69..770a4a4a71 100644 --- a/p__Classrooms__Lists__CourseGroup__List__index.8be1c900.async.js +++ b/p__Classrooms__Lists__CourseGroup__List__index.8be1c900.async.js @@ -1,6 +1,6 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[55,3,6,8],{"1j5w":function(Nt,be,t){"use strict";t.d(be,"d",function(){return xt}),t.d(be,"b",function(){return ct}),t.d(be,"c",function(){return dt}),t.d(be,"a",function(){return st});var A=t("VTBJ"),L=t("1OyB"),ke=t("vuIU"),ye=t("JX7q"),I=t("Ji7U"),i=t("LK+K"),K=t("q1tI"),a=t("I8Z2"),M=t("BGR+"),_=t("wx14"),Q=t("rePB"),he=t("4IlW"),fe=t("2GS6"),W=t("Gytx"),R=t.n(W),g=t("TSYQ"),X=t.n(g),V=t("U8pU"),se=t("ODXe"),re=/iPhone/i,ie=/iPod/i,xe=/iPad/i,ne=/\bAndroid(?:.+)Mobile\b/i,pe=/Android/i,J=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,o=/Windows Phone/i,d=/\bWindows(?:.+)ARM\b/i,k=/BlackBerry/i,H=/BB10/i,le=/Opera Mini/i,ae=/\b(CriOS|Chrome)(?:.+)Mobile/i,N=/Mobile(?:.+)Firefox\b/i;function u(He,ee){return He.test(ee)}function j(He){var ee=He||(typeof navigator!="undefined"?navigator.userAgent:""),Ce=ee.split("[FBAN");if(typeof Ce[1]!="undefined"){var F=Ce,r=Object(se.a)(F,1);ee=r[0]}if(Ce=ee.split("Twitter"),typeof Ce[1]!="undefined"){var c=Ce,ue=Object(se.a)(c,1);ee=ue[0]}var z={apple:{phone:u(re,ee)&&!u(o,ee),ipod:u(ie,ee),tablet:!u(re,ee)&&u(xe,ee)&&!u(o,ee),device:(u(re,ee)||u(ie,ee)||u(xe,ee))&&!u(o,ee)},amazon:{phone:u(J,ee),tablet:!u(J,ee)&&u(b,ee),device:u(J,ee)||u(b,ee)},android:{phone:!u(o,ee)&&u(J,ee)||!u(o,ee)&&u(ne,ee),tablet:!u(o,ee)&&!u(J,ee)&&!u(ne,ee)&&(u(b,ee)||u(pe,ee)),device:!u(o,ee)&&(u(J,ee)||u(b,ee)||u(ne,ee)||u(pe,ee))||u(/\bokhttp\b/i,ee)},windows:{phone:u(o,ee),tablet:u(d,ee),device:u(o,ee)||u(d,ee)},other:{blackberry:u(k,ee),blackberry10:u(H,ee),opera:u(le,ee),firefox:u(N,ee),chrome:u(ae,ee),device:u(k,ee)||u(H,ee)||u(le,ee)||u(N,ee)||u(ae,ee)},any:null,phone:null,tablet:null};return z.any=z.apple.device||z.android.device||z.windows.device||z.other.device,z.phone=z.apple.phone||z.android.phone||z.windows.phone,z.tablet=z.apple.tablet||z.android.tablet||z.windows.tablet,z}var m=Object(A.a)(Object(A.a)({},j()),{},{isMobile:j}),l=m;function S(){}function E(He,ee,Ce){var F=ee||"";return He.key||"".concat(F,"item_").concat(Ce)}function w(He){return"".concat(He,"-menu-")}function ge(He,ee){var Ce=-1;K.Children.forEach(He,function(F){Ce+=1,F&&F.type&&F.type.isMenuItemGroup?K.Children.forEach(F.props.children,function(r){Ce+=1,ee(r,Ce)}):ee(F,Ce)})}function me(He,ee,Ce){if(!He||Ce.find)return;K.Children.forEach(He,function(F){if(F){var r=F.type;if(!r||!(r.isSubMenu||r.isMenuItem||r.isMenuItemGroup))return;ee.indexOf(F.key)!==-1?Ce.find=!0:F.props.children&&me(F.props.children,ee,Ce)}})}var Y=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],P=function(ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F=ee&&typeof ee.getBoundingClientRect=="function"&&ee.getBoundingClientRect().width;if(F){if(Ce){var r=getComputedStyle(ee),c=r.marginLeft,ue=r.marginRight;F+=+c.replace("px","")+ +ue.replace("px","")}F=+F.toFixed(6)}return F||0},h=function(ee,Ce,F){ee&&Object(V.a)(ee.style)==="object"&&(ee.style[Ce]=F)},v=function(){return l.any},T=t("KQm4"),y=t("Ff2n"),Z=t("i8i4"),n=t("bdgK"),f=t("uciX"),s=t("8XRh"),C={adjustX:1,adjustY:1},$={topLeft:{points:["bl","tl"],overflow:C,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:C,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:C,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:C,offset:[4,0]}},G={topLeft:{points:["bl","tl"],overflow:C,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:C,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:C,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:C,offset:[4,0]}},Oe=$,We=0,Ye={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ot=function(ee,Ce,F){var r=w(Ce),c=ee.getState();ee.setState({defaultActiveFirst:Object(A.a)(Object(A.a)({},c.defaultActiveFirst),{},Object(Q.a)({},r,F))})},nt=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(F){var r;Object(L.a)(this,Ce),r=ee.call(this,F),r.onDestroy=function(B){r.props.onDestroy(B)},r.onKeyDown=function(B){var ve=B.keyCode,Se=r.menuInstance,rt=r.props,Be=rt.isOpen,Dt=rt.store;if(ve===he.a.ENTER)return r.onTitleClick(B),ot(Dt,r.props.eventKey,!0),!0;if(ve===he.a.RIGHT)return Be?Se.onKeyDown(B):(r.triggerOpenChange(!0),ot(Dt,r.props.eventKey,!0)),!0;if(ve===he.a.LEFT){var yt;if(Be)yt=Se.onKeyDown(B);else return;return yt||(r.triggerOpenChange(!1),yt=!0),yt}return Be&&(ve===he.a.UP||ve===he.a.DOWN)?Se.onKeyDown(B):void 0},r.onOpenChange=function(B){r.props.onOpenChange(B)},r.onPopupVisibleChange=function(B){r.triggerOpenChange(B,B?"mouseenter":"mouseleave")},r.onMouseEnter=function(B){var ve=r.props,Se=ve.eventKey,rt=ve.onMouseEnter,Be=ve.store;ot(Be,r.props.eventKey,!1),rt({key:Se,domEvent:B})},r.onMouseLeave=function(B){var ve=r.props,Se=ve.parentMenu,rt=ve.eventKey,Be=ve.onMouseLeave;Se.subMenuInstance=Object(ye.a)(r),Be({key:rt,domEvent:B})},r.onTitleMouseEnter=function(B){var ve=r.props,Se=ve.eventKey,rt=ve.onItemHover,Be=ve.onTitleMouseEnter;rt({key:Se,hover:!0}),Be({key:Se,domEvent:B})},r.onTitleMouseLeave=function(B){var ve=r.props,Se=ve.parentMenu,rt=ve.eventKey,Be=ve.onItemHover,Dt=ve.onTitleMouseLeave;Se.subMenuInstance=Object(ye.a)(r),Be({key:rt,hover:!1}),Dt({key:rt,domEvent:B})},r.onTitleClick=function(B){var ve=Object(ye.a)(r),Se=ve.props;if(Se.onTitleClick({key:Se.eventKey,domEvent:B}),Se.triggerSubMenuAction==="hover")return;r.triggerOpenChange(!Se.isOpen,"click"),ot(Se.store,r.props.eventKey,!1)},r.onSubMenuClick=function(B){typeof r.props.onClick=="function"&&r.props.onClick(r.addKeyPath(B))},r.onSelect=function(B){r.props.onSelect(B)},r.onDeselect=function(B){r.props.onDeselect(B)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.saveMenuInstance=function(B){r.menuInstance=B},r.addKeyPath=function(B){return Object(A.a)(Object(A.a)({},B),{},{keyPath:(B.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(B,ve){var Se=r.props.eventKey,rt=function(){r.onOpenChange({key:Se,item:Object(ye.a)(r),trigger:ve,open:B})};ve==="mouseenter"?r.mouseenterTimeout=setTimeout(function(){rt()},0):rt()},r.isChildrenSelected=function(){var B={find:!1};return me(r.props.children,r.props.selectedKeys,B),B.find},r.isOpen=function(){return r.props.openKeys.indexOf(r.props.eventKey)!==-1},r.adjustWidth=function(){if(!r.subMenuTitle||!r.menuInstance)return;var B=Z.findDOMNode(r.menuInstance);if(B.offsetWidth>=r.subMenuTitle.offsetWidth)return;B.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px")},r.saveSubMenuTitle=function(B){r.subMenuTitle=B},r.getBaseProps=function(){var B=Object(ye.a)(r),ve=B.props;return{mode:ve.mode==="horizontal"?"vertical":ve.mode,visible:r.props.isOpen,level:ve.level+1,inlineIndent:ve.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:ve.selectedKeys,eventKey:"".concat(ve.eventKey,"-menu-"),openKeys:ve.openKeys,motion:ve.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:ve.subMenuOpenDelay,parentMenu:Object(ye.a)(r),subMenuCloseDelay:ve.subMenuCloseDelay,forceSubMenuRender:ve.forceSubMenuRender,triggerSubMenuAction:ve.triggerSubMenuAction,builtinPlacements:ve.builtinPlacements,defaultActiveFirst:ve.store.getState().defaultActiveFirst[w(ve.eventKey)],multiple:ve.multiple,prefixCls:ve.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:ve.itemIcon,expandIcon:ve.expandIcon,direction:ve.direction}},r.getMotion=function(B,ve){var Se=Object(ye.a)(r),rt=Se.haveRendered,Be=r.props,Dt=Be.motion,yt=Be.rootPrefixCls,Ht=Object(A.a)(Object(A.a)({},Dt),{},{leavedClassName:"".concat(yt,"-hidden"),removeOnLeave:!1,motionAppear:rt||!ve||B!=="inline"});return Ht};var c=F.store,ue=F.eventKey,z=c.getState(),Re=z.defaultActiveFirst;r.isRootMenu=!1;var je=!1;return Re&&(je=Re[ue]),ot(c,ue,je),r}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var r=this,c=this.props,ue=c.mode,z=c.parentMenu,Re=c.manualRef;if(Re&&Re(this),ue!=="horizontal"||!z.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return r.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var r=this.props,c=r.onDestroy,ue=r.eventKey;c&&c(ue),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(r){var c=this,ue=this.getBaseProps(),z=this.getMotion(ue.mode,ue.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ue.visible||ue.forceSubMenuRender,!this.haveOpened)return K.createElement("div",null);var Re=ue.direction;return K.createElement(s.default,Object.assign({visible:ue.visible},z),function(je){var B=je.className,ve=je.style,Se=X()("".concat(ue.prefixCls,"-sub"),B,Object(Q.a)({},"".concat(ue.prefixCls,"-rtl"),Re==="rtl"));return K.createElement(Ke,Object.assign({},ue,{id:c.internalMenuId,className:Se,style:ve}),r)})}},{key:"render",value:function(){var r,c=Object(A.a)({},this.props),ue=c.isOpen,z=this.getPrefixCls(),Re=c.mode==="inline",je=X()(z,"".concat(z,"-").concat(c.mode),(r={},Object(Q.a)(r,c.className,!!c.className),Object(Q.a)(r,this.getOpenClassName(),ue),Object(Q.a)(r,this.getActiveClassName(),c.active||ue&&!Re),Object(Q.a)(r,this.getDisabledClassName(),c.disabled),Object(Q.a)(r,this.getSelectedClassName(),this.isChildrenSelected()),r));this.internalMenuId||(c.eventKey?this.internalMenuId="".concat(c.eventKey,"$Menu"):(We+=1,this.internalMenuId="$__$".concat(We,"$Menu")));var B={},ve={},Se={};c.disabled||(B={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ve={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var rt={},Be=c.direction;Re&&(Be==="rtl"?rt.paddingRight=c.inlineIndent*c.level:rt.paddingLeft=c.inlineIndent*c.level);var Dt={};this.props.isOpen&&(Dt={"aria-owns":this.internalMenuId});var yt=null;c.mode!=="horizontal"&&(yt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(yt=K.createElement(this.props.expandIcon,Object(A.a)({},this.props))));var Ht=K.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:rt,className:"".concat(z,"-title"),role:"button"},Se,ve,{"aria-expanded":ue},Dt,{"aria-haspopup":"true",title:typeof c.title=="string"?c.title:void 0}),c.title,yt||K.createElement("i",{className:"".concat(z,"-arrow")})),Ut=this.renderChildren(c.children),It=c.parentMenu.isRootMenu?c.parentMenu.props.getPopupContainer:function(qt){return qt.parentNode},Yt=Ye[c.mode],zt=c.popupOffset?{offset:c.popupOffset}:{},On=c.mode==="inline"?"":c.popupClassName;On+=Be==="rtl"?" ".concat(z,"-rtl"):"";var Vt=c.disabled,Xt=c.triggerSubMenuAction,wn=c.subMenuOpenDelay,gn=c.forceSubMenuRender,Wn=c.subMenuCloseDelay,mn=c.builtinPlacements;Y.forEach(function(qt){return delete c[qt]}),delete c.onClick;var En=Be==="rtl"?Object.assign({},G,mn):Object.assign({},$,mn);return delete c.direction,K.createElement("li",Object.assign({},c,B,{className:je,role:"menuitem"}),Re&&Ht,Re&&Ut,!Re&&K.createElement(f.a,{prefixCls:z,popupClassName:X()("".concat(z,"-popup"),On),getPopupContainer:It,builtinPlacements:En,popupPlacement:Yt,popupVisible:ue,popupAlign:zt,popup:Ut,action:Vt?[]:[Xt],mouseEnterDelay:wn,mouseLeaveDelay:Wn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:gn},Ht))}}]),Ce}(K.Component);nt.defaultProps={onMouseEnter:S,onMouseLeave:S,onTitleMouseEnter:S,onTitleMouseLeave:S,onTitleClick:S,manualRef:S,mode:"vertical",title:""};var Ze=Object(a.b)(function(He,ee){var Ce=He.openKeys,F=He.activeKey,r=He.selectedKeys,c=ee.eventKey,ue=ee.subMenuKey;return{isOpen:Ce.indexOf(c)>-1,active:F[ue]===c,selectedKeys:r}})(nt);Ze.isSubMenu=!0;var xt=Ze,q="menuitem-overflowed",Te=.5,Ve=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(){var F;return Object(L.a)(this,Ce),F=ee.apply(this,arguments),F.resizeObserver=null,F.mutationObserver=null,F.originalTotalWidth=0,F.overflowedItems=[],F.menuItemSizes=[],F.cancelFrameId=null,F.state={lastVisibleIndex:void 0},F.getMenuItemNodes=function(){var r=F.props.prefixCls,c=Z.findDOMNode(Object(ye.a)(F));return c?[].slice.call(c.children).filter(function(ue){return ue.className.split(" ").indexOf("".concat(r,"-overflowed-submenu"))<0}):[]},F.getOverflowedSubMenuItem=function(r,c,ue){var z=F.props,Re=z.overflowedIndicator,je=z.level,B=z.mode,ve=z.prefixCls,Se=z.theme;if(je!==1||B!=="horizontal")return null;var rt=F.props.children[0],Be=rt.props,Dt=Be.children,yt=Be.title,Ht=Be.style,Ut=Object(y.a)(Be,["children","title","style"]),It=Object(A.a)({},Ht),Yt="".concat(r,"-overflowed-indicator"),zt="".concat(r,"-overflowed-indicator");c.length===0&&ue!==!0?It=Object(A.a)(Object(A.a)({},It),{},{display:"none"}):ue&&(It=Object(A.a)(Object(A.a)({},It),{},{visibility:"hidden",position:"absolute"}),Yt="".concat(Yt,"-placeholder"),zt="".concat(zt,"-placeholder"));var On=Se?"".concat(ve,"-").concat(Se):"",Vt={};return Y.forEach(function(Xt){Ut[Xt]!==void 0&&(Vt[Xt]=Ut[Xt])}),K.createElement(xt,Object.assign({title:Re,className:"".concat(ve,"-overflowed-submenu"),popupClassName:On},Vt,{key:Yt,eventKey:zt,disabled:!1,style:It}),c)},F.setChildrenWidthAndResize=function(){if(F.props.mode!=="horizontal")return;var r=Z.findDOMNode(Object(ye.a)(F));if(!r)return;var c=r.children;if(!c||c.length===0)return;var ue=r.children[c.length-1];h(ue,"display","inline-block");var z=F.getMenuItemNodes(),Re=z.filter(function(je){return je.className.split(" ").indexOf(q)>=0});Re.forEach(function(je){h(je,"display","inline-block")}),F.menuItemSizes=z.map(function(je){return P(je,!0)}),Re.forEach(function(je){h(je,"display","none")}),F.overflowedIndicatorWidth=P(r.children[r.children.length-1],!0),F.originalTotalWidth=F.menuItemSizes.reduce(function(je,B){return je+B},0),F.handleResize(),h(ue,"display","none")},F.handleResize=function(){if(F.props.mode!=="horizontal")return;var r=Z.findDOMNode(Object(ye.a)(F));if(!r)return;var c=P(r);F.overflowedItems=[];var ue=0,z;F.originalTotalWidth>c+Te&&(z=-1,F.menuItemSizes.forEach(function(Re){ue+=Re,ue+F.overflowedIndicatorWidth<=c&&(z+=1)})),F.setState({lastVisibleIndex:z})},F}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){var r=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var c=Z.findDOMNode(this);if(!c)return;this.resizeObserver=new n.default(function(ue){ue.forEach(function(){var z=r.cancelFrameId;cancelAnimationFrame(z),r.cancelFrameId=requestAnimationFrame(r.setChildrenWidthAndResize)})}),[].slice.call(c.children).concat(c).forEach(function(ue){r.resizeObserver.observe(ue)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){r.resizeObserver.disconnect(),[].slice.call(c.children).concat(c).forEach(function(ue){r.resizeObserver.observe(ue)}),r.setChildrenWidthAndResize()}),this.mutationObserver.observe(c,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(r){var c=this,ue=this.state.lastVisibleIndex;return(r||[]).reduce(function(z,Re,je){var B=Re;if(c.props.mode==="horizontal"){var ve=c.getOverflowedSubMenuItem(Re.props.eventKey,[]);ue!==void 0&&c.props.className.indexOf("".concat(c.props.prefixCls,"-root"))!==-1&&(je>ue&&(B=K.cloneElement(Re,{style:{display:"none"},eventKey:"".concat(Re.props.eventKey,"-hidden"),className:"".concat(q)})),je===ue+1&&(c.overflowedItems=r.slice(ue+1).map(function(rt){return K.cloneElement(rt,{key:rt.props.eventKey,mode:"vertical-left"})}),ve=c.getOverflowedSubMenuItem(Re.props.eventKey,c.overflowedItems)));var Se=[].concat(Object(T.a)(z),[ve,B]);return je===r.length-1&&Se.push(c.getOverflowedSubMenuItem(Re.props.eventKey,[],!0)),Se}return[].concat(Object(T.a)(z),[B])},[])}},{key:"render",value:function(){var r=this.props,c=r.visible,ue=r.prefixCls,z=r.overflowedIndicator,Re=r.mode,je=r.level,B=r.tag,ve=r.children,Se=r.theme,rt=Object(y.a)(r,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Be=B;return K.createElement(Be,Object.assign({},rt),this.renderChildren(ve))}}]),Ce}(K.Component);Ve.defaultProps={tag:"div",className:""};var Ie=Ve;function qe(He){return He.length?He.every(function(ee){return!!ee.props.disabled}):!0}function O(He,ee,Ce){var F=He.getState();He.setState({activeKey:Object(A.a)(Object(A.a)({},F.activeKey),{},Object(Q.a)({},ee,Ce))})}function oe(He){return He.eventKey||"0-menu-"}function de(He,ee){var Ce=ee,F=He.children,r=He.eventKey;if(Ce){var c;if(ge(F,function(ue,z){ue&&ue.props&&!ue.props.disabled&&Ce===E(ue,r,z)&&(c=!0)}),c)return Ce}return Ce=null,He.defaultActiveFirst&&ge(F,function(ue,z){!Ce&&ue&&!ue.props.disabled&&(Ce=E(ue,r,z))}),Ce}function we(He){if(He){var ee=this.instanceArray.indexOf(He);ee!==-1?this.instanceArray[ee]=He:this.instanceArray.push(He)}}var Pe=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(F){var r;return Object(L.a)(this,Ce),r=ee.call(this,F),r.onKeyDown=function(c,ue){var z=c.keyCode,Re;if(r.getFlatInstanceArray().forEach(function(B){B&&B.props.active&&B.onKeyDown&&(Re=B.onKeyDown(c))}),Re)return 1;var je=null;return(z===he.a.UP||z===he.a.DOWN)&&(je=r.step(z===he.a.UP?-1:1)),je?(c.preventDefault(),O(r.props.store,oe(r.props),je.props.eventKey),typeof ue=="function"&&ue(je),1):void 0},r.onItemHover=function(c){var ue=c.key,z=c.hover;O(r.props.store,oe(r.props),z?ue:null)},r.onDeselect=function(c){r.props.onDeselect(c)},r.onSelect=function(c){r.props.onSelect(c)},r.onClick=function(c){r.props.onClick(c)},r.onOpenChange=function(c){r.props.onOpenChange(c)},r.onDestroy=function(c){r.props.onDestroy(c)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(c){var ue=r.getFlatInstanceArray(),z=r.props.store.getState().activeKey[oe(r.props)],Re=ue.length;if(!Re)return null;c<0&&(ue=ue.concat().reverse());var je=-1;if(ue.every(function(rt,Be){return rt&&rt.props.eventKey===z?(je=Be,!1):!0}),!r.props.defaultActiveFirst&&je!==-1&&qe(ue.slice(je,Re-1)))return;var B=(je+1)%Re,ve=B;do{var Se=ue[ve];if(!Se||Se.props.disabled)ve=(ve+1)%Re;else return Se}while(ve!==B);return null},r.renderCommonMenuItem=function(c,ue,z){var Re=r.props.store.getState(),je=Object(ye.a)(r),B=je.props,ve=E(c,B.eventKey,ue),Se=c.props;if(!Se||typeof c.type=="string")return c;var rt=ve===Re.activeKey,Be=Object(A.a)(Object(A.a)({mode:Se.mode||B.mode,level:B.level,inlineIndent:B.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:B.prefixCls,index:ue,parentMenu:B.parentMenu,manualRef:Se.disabled?void 0:Object(fe.a)(c.ref,we.bind(Object(ye.a)(r))),eventKey:ve,active:!Se.disabled&&rt,multiple:B.multiple,onClick:function(yt){(Se.onClick||S)(yt),r.onClick(yt)},onItemHover:r.onItemHover,motion:B.motion,subMenuOpenDelay:B.subMenuOpenDelay,subMenuCloseDelay:B.subMenuCloseDelay,forceSubMenuRender:B.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:B.builtinPlacements,itemIcon:Se.itemIcon||r.props.itemIcon,expandIcon:Se.expandIcon||r.props.expandIcon},z),{},{direction:B.direction});return(B.mode==="inline"||v())&&(Be.triggerSubMenuAction="click"),K.cloneElement(c,Be)},r.renderMenuItem=function(c,ue,z){if(!c)return null;var Re=r.props.store.getState(),je={openKeys:Re.openKeys,selectedKeys:Re.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:z};return r.renderCommonMenuItem(c,ue,je)},F.store.setState({activeKey:Object(A.a)(Object(A.a)({},F.store.getState().activeKey),{},Object(Q.a)({},F.eventKey,de(F,F.activeKey)))}),r.instanceArray=[],r}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(r){return this.props.visible||r.visible||this.props.className!==r.className||!R()(this.props.style,r.style)}},{key:"componentDidUpdate",value:function(r){var c=this.props,ue="activeKey"in c?c.activeKey:c.store.getState().activeKey[oe(c)],z=de(c,ue);if(z!==ue)O(c.store,oe(c),z);else if("activeKey"in r){var Re=de(r,r.activeKey);z!==Re&&O(c.store,oe(c),z)}}},{key:"render",value:function(){var r=this,c=Object(_.a)({},this.props);this.instanceArray=[];var ue=X()(c.prefixCls,c.className,"".concat(c.prefixCls,"-").concat(c.mode)),z={className:ue,role:c.role||"menu"};c.id&&(z.id=c.id),c.focusable&&(z.tabIndex=0,z.onKeyDown=this.onKeyDown);var Re=c.prefixCls,je=c.eventKey,B=c.visible,ve=c.level,Se=c.mode,rt=c.overflowedIndicator,Be=c.theme;return Y.forEach(function(Dt){return delete c[Dt]}),delete c.onClick,K.createElement(Ie,Object.assign({},c,{prefixCls:Re,mode:Se,tag:"ul",level:ve,theme:Be,visible:B,overflowedIndicator:rt},z),K.Children.map(c.children,function(Dt,yt){return r.renderMenuItem(Dt,yt,je||"0-menu-")}))}}]),Ce}(K.Component);Pe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:S};var Ae=Object(a.b)()(Pe),Ke=Ae,Ne=t("Kwbf");function Xe(He,ee,Ce){var F=He.prefixCls,r=He.motion,c=He.defaultMotions,ue=c===void 0?{}:c,z=He.openAnimation,Re=He.openTransitionName,je=ee.switchingModeFromInline;if(r)return r;if(Object(V.a)(z)==="object"&&z)Object(Ne.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof z=="string")return{motionName:"".concat(F,"-open-").concat(z)};if(Re)return{motionName:Re};var B=ue[Ce];return B||(je?null:ue.other)}var et=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(F){var r;Object(L.a)(this,Ce),r=ee.call(this,F),r.inlineOpenKeys=[],r.onSelect=function(z){var Re=Object(ye.a)(r),je=Re.props;if(je.selectable){var B=r.store.getState(),ve=B.selectedKeys,Se=z.key;je.multiple?ve=ve.concat([Se]):ve=[Se],"selectedKeys"in je||r.store.setState({selectedKeys:ve}),je.onSelect(Object(A.a)(Object(A.a)({},z),{},{selectedKeys:ve}))}},r.onClick=function(z){var Re=r.getRealMenuMode(),je=Object(ye.a)(r),B=je.store,ve=je.props.onOpenChange;Re!=="inline"&&!("openKeys"in r.props)&&(B.setState({openKeys:[]}),ve([])),r.props.onClick(z)},r.onKeyDown=function(z,Re){r.innerMenu.getWrappedInstance().onKeyDown(z,Re)},r.onOpenChange=function(z){var Re=Object(ye.a)(r),je=Re.props,B=r.store.getState().openKeys.concat(),ve=!1,Se=function(Be){var Dt=!1;if(Be.open)Dt=B.indexOf(Be.key)===-1,Dt&&B.push(Be.key);else{var yt=B.indexOf(Be.key);Dt=yt!==-1,Dt&&B.splice(yt,1)}ve=ve||Dt};Array.isArray(z)?z.forEach(Se):Se(z),ve&&("openKeys"in r.props||r.store.setState({openKeys:B}),je.onOpenChange(B))},r.onDeselect=function(z){var Re=Object(ye.a)(r),je=Re.props;if(je.selectable){var B=r.store.getState().selectedKeys.concat(),ve=z.key,Se=B.indexOf(ve);Se!==-1&&B.splice(Se,1),"selectedKeys"in je||r.store.setState({selectedKeys:B}),je.onDeselect(Object(A.a)(Object(A.a)({},z),{},{selectedKeys:B}))}},r.onMouseEnter=function(z){r.restoreModeVerticalFromInline();var Re=r.props.onMouseEnter;Re&&Re(z)},r.onTransitionEnd=function(z){var Re=z.propertyName==="width"&&z.target===z.currentTarget,je=z.target.className,B=Object.prototype.toString.call(je)==="[object SVGAnimatedString]"?je.animVal:je,ve=z.propertyName==="font-size"&&B.indexOf("anticon")>=0;(Re||ve)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(z){r.innerMenu=z},r.isRootMenu=!0;var c=F.defaultSelectedKeys,ue=F.defaultOpenKeys;return"selectedKeys"in F&&(c=F.selectedKeys||[]),"openKeys"in F&&(ue=F.openKeys||[]),r.store=Object(a.c)({selectedKeys:c,openKeys:ue,activeKey:{"0-menu-":de(F,F.activeKey)}}),r.state={switchingModeFromInline:!1},r}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(r){this.updateOpentKeysWhenSwitchMode(r),this.updateMiniStore();var c=this.props,ue=c.siderCollapsed,z=c.inlineCollapsed,Re=c.onOpenChange;(!r.inlineCollapsed&&z||!r.siderCollapsed&&ue)&&Re([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(r){var c=this.props,ue=this.store,z=this.inlineOpenKeys,Re=ue.getState(),je={};r.mode==="inline"&&c.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in c||((c.inlineCollapsed&&!r.inlineCollapsed||c.siderCollapsed&&!r.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Re.openKeys.concat(),je.openKeys=[]),(!c.inlineCollapsed&&r.inlineCollapsed||!c.siderCollapsed&&r.siderCollapsed)&&(je.openKeys=z,this.inlineOpenKeys=[])),Object.keys(je).length&&ue.setState(je)}},{key:"updateMenuDisplay",value:function(){var r=this.props.collapsedWidth,c=this.store,ue=this.prevOpenKeys,z=this.getInlineCollapsed()&&(r===0||r==="0"||r==="0px");z?(this.prevOpenKeys=c.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ue&&(this.store.setState({openKeys:ue}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var r=this.props.mode,c=this.state.switchingModeFromInline,ue=this.getInlineCollapsed();return c&&ue?"inline":ue?"vertical":r}},{key:"getInlineCollapsed",value:function(){var r=this.props,c=r.inlineCollapsed,ue=r.siderCollapsed;return ue!==void 0?ue:c}},{key:"restoreModeVerticalFromInline",value:function(){var r=this.state.switchingModeFromInline;r&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var r=Object(A.a)({},Object(M.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),c=this.getRealMenuMode();return r.className+=" ".concat(r.prefixCls,"-root"),r.direction==="rtl"&&(r.className+=" ".concat(r.prefixCls,"-rtl")),r=Object(A.a)(Object(A.a)({},r),{},{mode:c,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Xe(this.props,this.state,c)}),delete r.openAnimation,delete r.openTransitionName,K.createElement(a.a,{store:this.store},K.createElement(Ke,Object.assign({},r,{ref:this.setInnerMenu}),this.props.children))}}]),Ce}(K.Component);et.defaultProps={selectable:!0,onClick:S,onSelect:S,onOpenChange:S,onDeselect:S,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:K.createElement("span",null,"\xB7\xB7\xB7")};var at=et,Qe=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(){var F;return Object(L.a)(this,Ce),F=ee.apply(this,arguments),F.onKeyDown=function(r){var c=r.keyCode;return c===he.a.ENTER?(F.onClick(r),!0):void 0},F.onMouseLeave=function(r){var c=F.props,ue=c.eventKey,z=c.onItemHover,Re=c.onMouseLeave;z({key:ue,hover:!1}),Re({key:ue,domEvent:r})},F.onMouseEnter=function(r){var c=F.props,ue=c.eventKey,z=c.onItemHover,Re=c.onMouseEnter;z({key:ue,hover:!0}),Re({key:ue,domEvent:r})},F.onClick=function(r){var c=F.props,ue=c.eventKey,z=c.multiple,Re=c.onClick,je=c.onSelect,B=c.onDeselect,ve=c.isSelected,Se={key:ue,keyPath:[ue],item:Object(ye.a)(F),domEvent:r};Re(Se),z?ve?B(Se):je(Se):ve||je(Se)},F.saveNode=function(r){F.node=r},F}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var r=this.props;r.onDestroy&&r.onDestroy(r.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var r,c=Object(A.a)({},this.props),ue=X()(this.getPrefixCls(),c.className,(r={},Object(Q.a)(r,this.getActiveClassName(),!c.disabled&&c.active),Object(Q.a)(r,this.getSelectedClassName(),c.isSelected),Object(Q.a)(r,this.getDisabledClassName(),c.disabled),r)),z=Object(A.a)(Object(A.a)({},c.attribute),{},{title:typeof c.title=="string"?c.title:void 0,className:ue,role:c.role||"menuitem","aria-disabled":c.disabled});c.role==="option"?z=Object(A.a)(Object(A.a)({},z),{},{role:"option","aria-selected":c.isSelected}):(c.role===null||c.role==="none")&&(z.role="none");var Re={onClick:c.disabled?null:this.onClick,onMouseLeave:c.disabled?null:this.onMouseLeave,onMouseEnter:c.disabled?null:this.onMouseEnter},je=Object(A.a)({},c.style);c.mode==="inline"&&(c.direction==="rtl"?je.paddingRight=c.inlineIndent*c.level:je.paddingLeft=c.inlineIndent*c.level),Y.forEach(function(ve){return delete c[ve]}),delete c.direction;var B=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(B=K.createElement(this.props.itemIcon,this.props)),K.createElement("li",Object.assign({},Object(M.default)(c,["onClick","onMouseEnter","onMouseLeave","onSelect"]),z,Re,{style:je,ref:this.saveNode}),c.children,B)}}]),Ce}(K.Component);Qe.isMenuItem=!0,Qe.defaultProps={onSelect:S,onMouseEnter:S,onMouseLeave:S,manualRef:S};var vt=Object(a.b)(function(He,ee){var Ce=He.activeKey,F=He.selectedKeys,r=ee.eventKey,c=ee.subMenuKey;return{active:Ce[c]===r,isSelected:F.indexOf(r)!==-1}})(Qe),ct=vt,jt=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(){var F;return Object(L.a)(this,Ce),F=ee.apply(this,arguments),F.renderInnerMenuItem=function(r){var c=F.props,ue=c.renderMenuItem,z=c.index;return ue(r,z,F.props.subMenuKey)},F}return Object(ke.a)(Ce,[{key:"render",value:function(){var r=Object(_.a)({},this.props),c=r.className,ue=c===void 0?"":c,z=r.rootPrefixCls,Re="".concat(z,"-item-group-title"),je="".concat(z,"-item-group-list"),B=r.title,ve=r.children;return Y.forEach(function(Se){return delete r[Se]}),delete r.onClick,delete r.direction,K.createElement("li",Object.assign({},r,{className:"".concat(ue," ").concat(z,"-item-group")}),K.createElement("div",{className:Re,title:typeof B=="string"?B:void 0},B),K.createElement("ul",{className:je},K.Children.map(ve,this.renderInnerMenuItem)))}}]),Ce}(K.Component);jt.isMenuItemGroup=!0,jt.defaultProps={disabled:!0};var dt=jt,Je=function(ee){var Ce=ee.className,F=ee.rootPrefixCls,r=ee.style;return K.createElement("li",{className:"".concat(Ce," ").concat(F,"-item-divider"),style:r})};Je.defaultProps={disabled:!0,className:"",style:{}};var st=Je,tt=be.e=at},"55Ip":function(Nt,be,t){"use strict";t.d(be,"a",function(){return se}),t.d(be,"b",function(){return J});var A=t("Ty5D"),L=t("dI71"),ke=t("q1tI"),ye=t.n(ke),I=t("YS25"),i=t("17x9"),K=t.n(i),a=t("wx14"),M=t("zLVn"),_=t("9R94"),Q=function(o){Object(L.a)(d,o);function d(){for(var H,le=arguments.length,ae=new Array(le),N=0;N=0||le.relatedTarget.className.indexOf("".concat(j,"-next"))>=0))return;o.setState({goInputText:""}),u(o.getValidValue())},o.go=function(le){var ae=o.state.goInputText;if(ae==="")return;(le.keyCode===W.ENTER||le.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(I.a)(b,[{key:"getValidValue",value:function(){var d=this.state,k=d.goInputText,H=d.current;return!k||isNaN(k)?H:Number(k)}},{key:"getPageSizeOptions",value:function(){var d=this.props,k=d.pageSize,H=d.pageSizeOptions;return H.some(function(le){return le.toString()===k.toString()})?H:H.concat([k.toString()]).sort(function(le,ae){var N=isNaN(Number(le))?0:Number(le),u=isNaN(Number(ae))?0:Number(ae);return N-u})}},{key:"render",value:function(){var d=this,k=this.props,H=k.pageSize,le=k.locale,ae=k.rootPrefixCls,N=k.changeSize,u=k.quickGo,j=k.goButton,m=k.selectComponentClass,l=k.buildOptionText,S=k.selectPrefixCls,E=k.disabled,w=this.state.goInputText,ge="".concat(ae,"-options"),me=m,Y=null,P=null,h=null;if(!N&&!u)return null;var v=this.getPageSizeOptions();if(N&&me){var T=v.map(function(y,Z){return M.a.createElement(me.Option,{key:Z,value:y.toString()},(l||d.buildOptionText)(y))});Y=M.a.createElement(me,{disabled:E,prefixCls:S,showSearch:!1,className:"".concat(ge,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(H||v[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Z){return Z.parentNode}},T)}return u&&(j&&(h=typeof j=="boolean"?M.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:E,className:"".concat(ge,"-quick-jumper-button")},le.jump_to_confirm):M.a.createElement("span",{onClick:this.go,onKeyUp:this.go},j)),P=M.a.createElement("div",{className:"".concat(ge,"-quick-jumper")},le.jump_to,M.a.createElement("input",{disabled:E,type:"text",value:w,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),le.page,h)),M.a.createElement("li",{className:"".concat(ge)},Y,P)}}]),b}(M.a.Component);R.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=R,X=t("N2Kk");function V(){}function se(pe){return typeof pe=="number"&&isFinite(pe)&&Math.floor(pe)===pe}function re(pe,J,b){return b}function ie(pe,J,b){var o=typeof pe=="undefined"?J.pageSize:pe;return Math.floor((b.total-1)/o)+1}var xe=function(pe){Object(i.a)(b,pe);var J=Object(K.a)(b);function b(o){var d;Object(ye.a)(this,b),d=J.call(this,o),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(ie(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(N,u){var j=d.props.prefixCls,m=N||M.a.createElement("button",{type:"button","aria-label":u,className:"".concat(j,"-item-link")});return typeof N=="function"&&(m=M.a.createElement(N,Object(ke.a)({},d.props))),m},d.savePaginationNode=function(N){d.paginationNode=N},d.isValid=function(N){return se(N)&&N!==d.state.current},d.shouldDisplayQuickJumper=function(){var N=d.props,u=N.showQuickJumper,j=N.pageSize,m=N.total;return m<=j?!1:u},d.handleKeyDown=function(N){(N.keyCode===W.ARROW_UP||N.keyCode===W.ARROW_DOWN)&&N.preventDefault()},d.handleKeyUp=function(N){var u=d.getValidValue(N),j=d.state.currentInputValue;u!==j&&d.setState({currentInputValue:u}),N.keyCode===W.ENTER?d.handleChange(u):N.keyCode===W.ARROW_UP?d.handleChange(u-1):N.keyCode===W.ARROW_DOWN&&d.handleChange(u+1)},d.changePageSize=function(N){var u=d.state.current,j=ie(N,d.state,d.props);u=u>j?j:u,j===0&&(u=d.state.current),typeof N=="number"&&("pageSize"in d.props||d.setState({pageSize:N}),"current"in d.props||d.setState({current:u,currentInputValue:u})),d.props.onShowSizeChange(u,N),"onChange"in d.props&&d.props.onChange&&d.props.onChange(u,N)},d.handleChange=function(N){var u=d.props.disabled,j=N;if(d.isValid(j)&&!u){var m=ie(void 0,d.state,d.props);j>m?j=m:j<1&&(j=1),"current"in d.props||d.setState({current:j,currentInputValue:j});var l=d.state.pageSize;return d.props.onChange(j,l),j}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?j-2:0),l=2;l=H?ae=H:ae=Number(k),ae}},{key:"getShowSizeChanger",value:function(){var d=this.props,k=d.showSizeChanger,H=d.total,le=d.totalBoundaryShowSizeChanger;return typeof k!="undefined"?k:H>le}},{key:"renderPrev",value:function(d){var k=this.props,H=k.prevIcon,le=k.itemRender,ae=le(d,"prev",this.getItemIcon(H,"prev page")),N=!this.hasPrev();return Object(a.isValidElement)(ae)?Object(a.cloneElement)(ae,{disabled:N}):ae}},{key:"renderNext",value:function(d){var k=this.props,H=k.nextIcon,le=k.itemRender,ae=le(d,"next",this.getItemIcon(H,"next page")),N=!this.hasNext();return Object(a.isValidElement)(ae)?Object(a.cloneElement)(ae,{disabled:N}):ae}},{key:"render",value:function(){var d=this,k=this.props,H=k.prefixCls,le=k.className,ae=k.style,N=k.disabled,u=k.hideOnSinglePage,j=k.total,m=k.locale,l=k.showQuickJumper,S=k.showLessItems,E=k.showTitle,w=k.showTotal,ge=k.simple,me=k.itemRender,Y=k.showPrevNextJumpers,P=k.jumpPrevIcon,h=k.jumpNextIcon,v=k.selectComponentClass,T=k.selectPrefixCls,y=k.pageSizeOptions,Z=this.state,n=Z.current,f=Z.pageSize,s=Z.currentInputValue;if(u===!0&&j<=f)return null;var C=ie(void 0,this.state,this.props),$=[],G=null,Oe=null,We=null,Ye=null,ot=null,nt=l&&l.goButton,Ze=S?1:2,xt=n-1>0?n-1:0,q=n+1=Ze*2&&n!==1+2&&($[0]=Object(a.cloneElement)($[0],{className:"".concat(H,"-item-after-jump-prev")}),$.unshift(G)),C-n>=Ze*2&&n!==C-2&&($[$.length-1]=Object(a.cloneElement)($[$.length-1],{className:"".concat(H,"-item-before-jump-next")}),$.push(Oe)),de!==1&&$.unshift(We),we!==C&&$.push(Ye)}var Ke=null;w&&(Ke=M.a.createElement("li",{className:"".concat(H,"-total-text")},w(j,[j===0?0:(n-1)*f+1,n*f>j?j:n*f])));var Ne=!this.hasPrev()||!C,Xe=!this.hasNext()||!C;return M.a.createElement("ul",Object(A.a)({className:Q()(H,le,Object(L.a)({},"".concat(H,"-disabled"),N)),style:ae,unselectable:"unselectable",ref:this.savePaginationNode},Te),Ke,M.a.createElement("li",{title:E?m.prev_page:null,onClick:this.prev,tabIndex:Ne?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(H,"-prev"),Object(L.a)({},"".concat(H,"-disabled"),Ne)),"aria-disabled":Ne},this.renderPrev(xt)),$,M.a.createElement("li",{title:E?m.next_page:null,onClick:this.next,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(H,"-next"),Object(L.a)({},"".concat(H,"-disabled"),Xe)),"aria-disabled":Xe},this.renderNext(q)),M.a.createElement(g,{disabled:N,locale:m,rootPrefixCls:H,selectComponentClass:v,selectPrefixCls:T,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:f,pageSizeOptions:y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:nt}))}}],[{key:"getDerivedStateFromProps",value:function(d,k){var H={};if("current"in d&&(H.current=d.current,d.current!==k.current&&(H.currentInputValue=H.current)),"pageSize"in d&&d.pageSize!==k.pageSize){var le=k.current,ae=ie(d.pageSize,k,d);le=le>ae?ae:le,"current"in d||(H.current=le,H.currentInputValue=le),H.pageSize=d.pageSize}return H}}]),b}(M.a.Component);xe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:V,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:V,locale:X.a,style:{},itemRender:re,totalBoundaryShowSizeChanger:50};var ne=xe},"6RRn":function(Nt,be,t){"use strict";var A=t("wCXF"),L=t("n6Qo");t.d(be,"b",function(){return L.a});var ke=t("IBYe"),ye=t("6eGT"),I=t("hW8S");t.d(be,"a",function(){return I.a}),be.c=A.b},"6eGT":function(Nt,be,t){"use strict";function A(L){return null}be.a=A},"7ixt":function(Nt,be,t){"use strict";t.d(be,"a",function(){return ke});var A={adjustX:1,adjustY:1},L=[0,0],ke={left:{points:["cr","cl"],overflow:A,offset:[-4,0],targetOffset:L},right:{points:["cl","cr"],overflow:A,offset:[4,0],targetOffset:L},top:{points:["bc","tc"],overflow:A,offset:[0,-4],targetOffset:L},bottom:{points:["tc","bc"],overflow:A,offset:[0,4],targetOffset:L},topLeft:{points:["bl","tl"],overflow:A,offset:[0,-4],targetOffset:L},leftTop:{points:["tr","tl"],overflow:A,offset:[-4,0],targetOffset:L},topRight:{points:["br","tr"],overflow:A,offset:[0,-4],targetOffset:L},rightTop:{points:["tl","tr"],overflow:A,offset:[4,0],targetOffset:L},bottomRight:{points:["tr","br"],overflow:A,offset:[0,4],targetOffset:L},rightBottom:{points:["bl","br"],overflow:A,offset:[4,0],targetOffset:L},bottomLeft:{points:["tl","bl"],overflow:A,offset:[0,4],targetOffset:L},leftBottom:{points:["br","bl"],overflow:A,offset:[-4,0],targetOffset:L}},ye=ke},"815F":function(Nt,be,t){"use strict";t.d(be,"e",function(){return K}),t.d(be,"c",function(){return M}),t.d(be,"d",function(){return _}),t.d(be,"a",function(){return he}),t.d(be,"f",function(){return fe}),t.d(be,"b",function(){return W});var A=t("KQm4"),L=t("VTBJ"),ke=t("Ff2n"),ye=t("Zm9Q"),I=t("Kwbf"),i=t("OZM5");function K(R,g){return R!=null?R:g}function a(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function X(V){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(V||[]).forEach(function(re){var ie=re.key,xe=re.children;Object(I.a)(ie!=null,"Tree node must have a certain key: [".concat(se).concat(ie,"]"));var ne=String(ie);Object(I.a)(!g.has(ne)||ie===null||ie===void 0,"Same 'key' exist in the Tree: ".concat(ne)),g.set(ne,!0),X(xe,"".concat(se).concat(ne," > "))})}X(R)}function M(R){function g(X){var V=Object(ye.a)(X);return V.map(function(se){if(!Object(i.i)(se))return Object(I.a)(!se,"Tree/TreeNode can only accept TreeNode as children."),null;var re=se.key,ie=se.props,xe=ie.children,ne=Object(ke.a)(ie,["children"]),pe=Object(L.a)({key:re},ne),J=g(xe);return J.length&&(pe.children=J),pe}).filter(function(se){return se})}return g(R)}function _(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=new Set(g===!0?[]:g),V=[];function se(re){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return re.map(function(xe,ne){var pe=Object(i.h)(ie?ie.pos:"0",ne),J=K(xe.key,pe),b=Object(L.a)(Object(L.a)({},xe),{},{parent:ie,pos:pe,children:null,data:xe,isStart:[].concat(Object(A.a)(ie?ie.isStart:[]),[ne===0]),isEnd:[].concat(Object(A.a)(ie?ie.isEnd:[]),[ne===re.length-1])});return V.push(b),g===!0||X.has(J)?b.children=se(xe.children||[],b):b.children=[],b})}return se(R),V}function Q(R,g,X){var V;X?typeof X=="string"?V=function(ie){return ie[X]}:typeof X=="function"&&(V=function(ie){return X(ie)}):V=function(ie,xe){return K(ie.key,xe)};function se(re,ie,xe){var ne=re?re.children:R,pe=re?Object(i.h)(xe.pos,ie):"0";if(re){var J=V(re,pe),b={node:re,index:ie,pos:pe,key:J,parentPos:xe.node?xe.pos:null,level:xe.level+1};g(b)}ne&&ne.forEach(function(o,d){se(o,d,{node:re,pos:pe,level:xe?xe.level+1:-1})})}se(null)}function he(R){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=g.initWrapper,V=g.processEntity,se=g.onProcessFinished,re=arguments.length>2?arguments[2]:void 0,ie={},xe={},ne={posEntities:ie,keyEntities:xe};return X&&(ne=X(ne)||ne),Q(R,function(pe){var J=pe.node,b=pe.index,o=pe.pos,d=pe.key,k=pe.parentPos,H=pe.level,le={node:J,index:b,key:d,pos:o,level:H},ae=K(d,o);ie[o]=le,xe[ae]=le,le.parent=ie[k],le.parent&&(le.parent.children=le.parent.children||[],le.parent.children.push(le)),V&&V(le,ne)},re),se&&se(ne),ne}function fe(R,g){var X=g.expandedKeys,V=g.selectedKeys,se=g.loadedKeys,re=g.loadingKeys,ie=g.checkedKeys,xe=g.halfCheckedKeys,ne=g.dragOverNodeKey,pe=g.dropPosition,J=g.keyEntities,b=J[R],o={eventKey:R,expanded:X.indexOf(R)!==-1,selected:V.indexOf(R)!==-1,loaded:se.indexOf(R)!==-1,loading:re.indexOf(R)!==-1,checked:ie.indexOf(R)!==-1,halfChecked:xe.indexOf(R)!==-1,pos:String(b?b.pos:""),dragOver:ne===R&&pe===0,dragOverGapTop:ne===R&&pe===-1,dragOverGapBottom:ne===R&&pe===1};return o}function W(R){var g=R.data,X=R.expanded,V=R.selected,se=R.checked,re=R.loaded,ie=R.loading,xe=R.halfChecked,ne=R.dragOver,pe=R.dragOverGapTop,J=R.dragOverGapBottom,b=R.pos,o=R.active,d=Object(L.a)(Object(L.a)({},g),{},{expanded:X,selected:V,checked:se,loaded:re,loading:ie,halfChecked:xe,dragOver:ne,dragOverGapTop:pe,dragOverGapBottom:J,pos:b,active:o});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(I.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),d}},"8Jsi":function(Nt,be,t){"use strict";t.d(be,"d",function(){return k}),t.d(be,"a",function(){return s}),t.d(be,"b",function(){return $}),t.d(be,"c",function(){return C});var A=t("1OyB"),L=t("vuIU"),ke=t("Ji7U"),ye=t("LK+K"),I=t("KQm4"),i=t("U8pU"),K=t("ODXe"),a=t("VTBJ"),M=t("q1tI"),_=t("qNPg"),Q=t("2Qr1"),he=t("815F"),fe=t("NvD2"),W=t("wPlo"),R=t("6cGi"),g=t("Kwbf"),X=t("4IlW"),V=t("YrtM"),se=t("fAei"),re=M.createContext(null);function ie(q,Te){if(!q)return!0;var Ve=q.data,Ie=Ve.disabled,qe=Ve.disableCheckbox;switch(Te){case"select":return Ie;case"checkbox":return Ie||qe}return!1}function xe(q,Te){var Ve=M.useCallback(function(qe){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",oe=arguments.length>2?arguments[2]:void 0,de=q.get(qe);return!oe&&ie(de,O)?null:de},[q]),Ie=M.useCallback(function(qe){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",oe=arguments.length>2?arguments[2]:void 0,de=Te.get(qe);return!oe&&ie(de,O)?null:de},[Te]);return[Ve,Ie]}function ne(q){return M.useMemo(function(){var Te=new Map,Ve=new Map;return q.forEach(function(Ie){Te.set(Ie.key,Ie),Ve.set(Ie.data.value,Ie)}),[Te,Ve]},[q])}var pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},J=function(Te,Ve){var Ie=Te.prefixCls,qe=Te.height,O=Te.itemHeight,oe=Te.virtual,de=Te.options,we=Te.flattenOptions,Pe=Te.multiple,Ae=Te.searchValue,Ke=Te.onSelect,Ne=Te.onToggleOpen,Xe=Te.open,et=Te.notFoundContent,at=Te.onMouseEnter,Qe=M.useContext(re),vt=Qe.checkable,ct=Qe.checkedKeys,jt=Qe.halfCheckedKeys,dt=Qe.treeExpandedKeys,Je=Qe.treeDefaultExpandAll,st=Qe.treeDefaultExpandedKeys,tt=Qe.onTreeExpand,He=Qe.treeIcon,ee=Qe.showTreeIcon,Ce=Qe.switcherIcon,F=Qe.treeLine,r=Qe.treeNodeFilterProp,c=Qe.loadData,ue=Qe.treeLoadedKeys,z=Qe.treeMotion,Re=Qe.onTreeLoad,je=M.useRef(),B=Object(V.a)(function(){return de},[Xe,de],function(on,$t){return $t[0]&&on[1]!==$t[1]}),ve=ne(we),Se=Object(K.a)(ve,2),rt=Se[0],Be=Se[1],Dt=xe(rt,Be),yt=Object(K.a)(Dt,2),Ht=yt[0],Ut=yt[1],It=M.useMemo(function(){return ct.map(function(on){var $t=Ut(on);return $t?$t.key:null})},[ct]),Yt=M.useMemo(function(){return vt?{checked:It,halfChecked:jt}:null},[It,jt,vt]);M.useEffect(function(){if(Xe&&!Pe&&It.length){var on;(on=je.current)===null||on===void 0||on.scrollTo({key:It[0]})}},[Xe]);var zt=String(Ae).toLowerCase(),On=function($t){return zt?String($t[r]).toLowerCase().includes(zt):!1},Vt=M.useState(st),Xt=Object(K.a)(Vt,2),wn=Xt[0],gn=Xt[1],Wn=M.useState(null),mn=Object(K.a)(Wn,2),En=mn[0],qt=mn[1],sn=M.useMemo(function(){return dt?Object(I.a)(dt):Ae?En:wn},[wn,En,zt,dt]);M.useEffect(function(){Ae&&qt(we.map(function(on){return on.key}))},[Ae]);var nn=function($t){gn($t),qt($t),tt&&tt($t)},hn=function($t){$t.preventDefault()},an=function($t,Gt){var mt=Gt.node.key,Ct=Ht(mt,vt?"checkbox":"select");Ct!==null&&Ke(Ct.data.value,{selected:!ct.includes(Ct.data.value)}),Pe||Ne(!1)},en=M.useState(null),Pn=Object(K.a)(en,2),pn=Pn[0],sa=Pn[1],kn=Ht(pn);if(M.useImperativeHandle(Ve,function(){return{onKeyDown:function($t){var Gt,mt=$t.which;switch(mt){case X.a.UP:case X.a.DOWN:case X.a.LEFT:case X.a.RIGHT:(Gt=je.current)===null||Gt===void 0||Gt.onKeyDown($t);break;case X.a.ENTER:{kn!==null&&an(null,{node:{key:pn},selected:!ct.includes(kn.data.value)});break}case X.a.ESC:Ne(!1)}},onKeyUp:function(){}}}),B.length===0)return M.createElement("div",{role:"listbox",className:"".concat(Ie,"-empty"),onMouseDown:hn},et);var Yn={};return ue&&(Yn.loadedKeys=ue),sn&&(Yn.expandedKeys=sn),M.createElement("div",{onMouseDown:hn,onMouseEnter:at},kn&&Xe&&M.createElement("span",{style:pe,"aria-live":"assertive"},kn.data.value),M.createElement(se.b,Object.assign({ref:je,focusable:!1,prefixCls:"".concat(Ie,"-tree"),treeData:B,height:qe,itemHeight:O,virtual:oe,multiple:Pe,icon:He,showIcon:ee,switcherIcon:Ce,showLine:F,loadData:Ae?null:c,motion:z,checkable:vt,checkStrictly:!0,checkedKeys:Yt,selectedKeys:vt?[]:It,defaultExpandAll:Je},Yn,{onActiveChange:sa,onSelect:an,onCheck:an,onExpand:nn,onLoad:Re,filterTreeNode:On})))},b=M.forwardRef(J);b.displayName="OptionList";var o=b,d=function(){return null},k=d,H=t("Ff2n"),le=t("Zm9Q");function ae(q){return Object(le.a)(q).map(function(Te){if(!M.isValidElement(Te)||!Te.type)return null;var Ve=Te.key,Ie=Te.props,qe=Ie.children,O=Ie.value,oe=Object(H.a)(Ie,["children","value"]),de=Object(a.a)({key:Ve,value:O},oe),we=ae(qe);return we.length&&(de.children=we),de}).filter(function(Te){return Te})}function N(q){if(!q)return q;var Te=Object(a.a)({},q);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return Object(g.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Te}}),Te}function u(q,Te,Ve,Ie,qe){var O=null,oe=null;function de(){function we(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Pe.map(function(Ne,Xe){var et="".concat(Ae,"-").concat(Xe),at=Ve.includes(Ne.value),Qe=we(Ne.children||[],et,at),vt=M.createElement(k,Object.assign({},Ne),Qe.map(function(jt){return jt.node}));if(Te===Ne.value&&(O=vt),at){var ct={pos:et,node:vt,children:Qe};return Ke||oe.push(ct),ct}return null}).filter(function(Ne){return Ne})}oe||(oe=[],we(Ie),oe.sort(function(Pe,Ae){var Ke=Pe.node.props.value,Ne=Ae.node.props.value,Xe=Ve.indexOf(Ke),et=Ve.indexOf(Ne);return Xe-et}))}Object.defineProperty(q,"triggerNode",{get:function(){return Object(g.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),de(),O}}),Object.defineProperty(q,"allCheckedNodes",{get:function(){return Object(g.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),de(),qe?oe:oe.map(function(Pe){var Ae=Pe.node;return Ae})}})}function j(q){return Array.isArray(q)?q:q!==void 0?[q]:[]}function m(q,Te){var Ve=new Map;return Te.forEach(function(Ie){var qe=Ie.data;Ve.set(qe.value,qe)}),q.map(function(Ie){return N(Ve.get(Ie))})}function l(q,Te){var Ve=m([q],Te)[0];return Ve?Ve.disabled:!1}function S(q){return q.disabled||q.disableCheckbox||q.checkable===!1}function E(q){for(var Te=q.parent,Ve=0,Ie=Te;Ie;)Ie=Ie.parent,Ve+=1;return Ve}function w(q){function Te(Ie){return(Ie||[]).map(function(qe){var O=qe.value,oe=qe.key,de=qe.children,we=Object(a.a)(Object(a.a)({},qe),{},{key:"key"in qe?oe:O});return de&&(we.children=Te(de)),we})}var Ve=Object(he.d)(Te(q),!0);return Ve.map(function(Ie){return{key:Ie.data.key,data:Ie.data,level:E(Ie)}})}function ge(q){return function(Te,Ve){var Ie=Ve[q];return String(Ie).toLowerCase().includes(String(Te).toLowerCase())}}function me(q,Te,Ve){var Ie=Ve.optionFilterProp,qe=Ve.filterOption;if(qe===!1)return Te;var O;typeof qe=="function"?O=qe:O=ge(Ie);function oe(de){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return de.map(function(Pe){var Ae=Pe.children,Ke=we||O(q,N(Pe)),Ne=oe(Ae||[],Ke);return Ke||Ne.length?Object(a.a)(Object(a.a)({},Pe),{},{children:Ne}):null}).filter(function(Pe){return Pe})}return oe(Te)}function Y(q,Te,Ve,Ie){var qe=new Map;return j(Te).forEach(function(O){O&&Object(i.a)(O)==="object"&&"value"in O&&qe.set(O.value,O)}),q.map(function(O){var oe={value:O},de=Ve(O,"select",!0),we=de?Ie(de.data):O;if(qe.has(O)){var Pe=qe.get(O);oe.label="label"in Pe?Pe.label:we,"halfChecked"in Pe&&(oe.halfChecked=Pe.halfChecked)}else oe.label=we;return oe})}function P(q,Te){var Ve=new Set(q);return Ve.add(Te),Array.from(Ve)}function h(q,Te){var Ve=new Set(q);return Ve.delete(Te),Array.from(Ve)}function v(q){var Te=q.searchPlaceholder,Ve=q.treeCheckStrictly,Ie=q.treeCheckable,qe=q.labelInValue,O=q.value,oe=q.multiple;Object(g.a)(!Te,"`searchPlaceholder` has been removed."),Ve&&qe===!1&&Object(g.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(qe||Ve)&&Object(g.a)(j(O).every(function(de){return de&&Object(i.a)(de)==="object"&&"value"in de}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ve||oe||Ie?Object(g.a)(!O||Array.isArray(O),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(g.a)(!Array.isArray(O),"`value` should not be array when `TreeSelect` is single mode.")}var T=v,y=10;function Z(q,Te){var Ve=Te.id,Ie=Te.pId,qe=Te.rootPId,O={},oe=[],de=q.map(function(we){var Pe=Object(a.a)({},we),Ae=Pe[Ve];return O[Ae]=Pe,Pe.key=Pe.key||Ae,Pe});return de.forEach(function(we){var Pe=we[Ie],Ae=O[Pe];Ae&&(Ae.children=Ae.children||[],Ae.children.push(we)),(Pe===qe||!Ae&&qe===null)&&oe.push(we)}),oe}function n(q,Te){var Ve=0,Ie=new Set;function qe(O){return(O||[]).map(function(oe){var de=oe.key,we=oe.value,Pe=oe.children,Ae=Object(H.a)(oe,["key","value","children"]),Ke="value"in oe?we:de,Ne=Object(a.a)(Object(a.a)({},Ae),{},{key:de!=null?de:Ke,value:Ke,title:Te(oe)});return"children"in oe&&(Ne.children=qe(Pe)),Ne})}return qe(q)}function f(q,Te,Ve){var Ie=Ve.getLabelProp,qe=Ve.simpleMode,O=M.useRef({});return q?(O.current.formatTreeData=O.current.treeData===q?O.current.formatTreeData:n(qe?Z(q,Object(a.a)({id:"id",pId:"pId",rootPId:null},qe!==!0?qe:{})):q,Ie),O.current.treeData=q):O.current.formatTreeData=O.current.children===Te?O.current.formatTreeData:n(ae(Te),Ie),O.current.formatTreeData}var s="SHOW_ALL",C="SHOW_PARENT",$="SHOW_CHILD";function G(q,Te,Ve){var Ie=new Set(q);return Te===$?q.filter(function(qe){var O=Ve[qe];return!(O&&O.children&&O.children.every(function(oe){var de=oe.node;return S(de)||Ie.has(de.key)}))}):Te===C?q.filter(function(qe){var O=Ve[qe],oe=O?O.parent:null;return!(oe&&!S(oe.node)&&Ie.has(oe.node.key))}):q}function Oe(q,Te){var Ve=Te.value,Ie=Te.getEntityByValue,qe=Te.getEntityByKey,O=Te.treeConduction,oe=Te.showCheckedStrategy,de=Te.conductKeyEntities,we=Te.getLabelProp;return M.useMemo(function(){var Pe=q;if(O){var Ae=G(q.map(function(Ke){var Ne=Ie(Ke);return Ne?Ne.key:Ke}),oe,de);Pe=Ae.map(function(Ke){var Ne=qe(Ke);return Ne?Ne.data.value:Ke})}return Y(Pe,Ve,Ie,we)},[q,Ve,O,oe,Ie])}var We=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ye=Object(_.a)({prefixCls:"rc-tree-select",components:{optionList:o},convertChildrenToData:function(){return null},flattenOptions:w,getLabeledValue:Q.e,filterOptions:me,isValueDisabled:l,findValueOption:m,omitDOMProps:function(Te){var Ve=Object(a.a)({},Te);return We.forEach(function(Ie){delete Ve[Ie]}),Ve}});Ye.displayName="Select";var ot=M.forwardRef(function(q,Te){var Ve=q.multiple,Ie=q.treeCheckable,qe=q.treeCheckStrictly,O=q.showCheckedStrategy,oe=O===void 0?"SHOW_CHILD":O,de=q.labelInValue,we=q.loadData,Pe=q.treeLoadedKeys,Ae=q.treeNodeFilterProp,Ke=Ae===void 0?"value":Ae,Ne=q.treeNodeLabelProp,Xe=q.treeDataSimpleMode,et=q.treeData,at=q.treeExpandedKeys,Qe=q.treeDefaultExpandedKeys,vt=q.treeDefaultExpandAll,ct=q.children,jt=q.treeIcon,dt=q.showTreeIcon,Je=q.switcherIcon,st=q.treeLine,tt=q.treeMotion,He=q.filterTreeNode,ee=q.dropdownPopupAlign,Ce=q.onChange,F=q.onTreeExpand,r=q.onTreeLoad,c=q.onDropdownVisibleChange,ue=q.onSelect,z=q.onDeselect,Re=Ie||qe,je=Ve||Re,B=Ie&&!qe,ve=qe||de,Se=M.useRef(null);M.useImperativeHandle(Te,function(){return{focus:Se.current.focus,blur:Se.current.blur}});var rt=function(mt){return et&&mt.label||mt.title},Be=function(mt){return Ne?mt[Ne]:rt(mt)},Dt=f(et,ct,{getLabelProp:rt,simpleMode:Xe}),yt=Object(M.useMemo)(function(){return w(Dt)},[Dt]),Ht=ne(yt),Ut=Object(K.a)(Ht,2),It=Ut[0],Yt=Ut[1],zt=xe(It,Yt),On=Object(K.a)(zt,2),Vt=On[0],Xt=On[1],wn=Object(M.useMemo)(function(){return B?Object(he.a)(Dt):{keyEntities:null}},[Dt,Ie,qe]),gn=wn.keyEntities,Wn=Object(R.a)(q.defaultValue,{value:q.value}),mn=Object(K.a)(Wn,2),En=mn[0],qt=mn[1],sn=function(mt){var Ct=[],gt=[];return mt.forEach(function(ht){Xt(ht)?gt.push(ht):Ct.push(ht)}),{missingRawValues:Ct,existRawValues:gt}},nn=Object(M.useMemo)(function(){var Gt=[],mt=[];if(j(En).forEach(function(Qt){if(Qt&&Object(i.a)(Qt)==="object"&&"value"in Qt)if(Qt.halfChecked&&qe){var An=Xt(Qt.value);Gt.push(An?An.key:Qt.value)}else mt.push(Qt.value);else mt.push(Qt)}),B){var Ct=sn(mt),gt=Ct.missingRawValues,ht=Ct.existRawValues,Tt=ht.map(function(Qt){return Xt(Qt).key}),Wt=Object(fe.a)(Tt,!0,gn),un=Wt.checkedKeys,St=Wt.halfCheckedKeys;return[[].concat(Object(I.a)(gt),Object(I.a)(un.map(function(Qt){return Vt(Qt).data.value}))),St]}return[mt,Gt]},[En,je,ve,Ie,qe]),hn=Object(K.a)(nn,2),an=hn[0],en=hn[1],Pn=Oe(an,{treeConduction:B,value:En,showCheckedStrategy:oe,conductKeyEntities:gn,getEntityByValue:Xt,getEntityByKey:Vt,getLabelProp:Be}),pn=function(mt,Ct,gt){if(qt(je?mt:mt[0]),Ce){var ht=mt;if(B&&oe!=="SHOW_ALL"){var Tt=mt.map(function(Un){var In=Xt(Un);return In?In.key:Un}),Wt=G(Tt,oe,gn);ht=Wt.map(function(Un){var In=Vt(Un);return In?In.data.value:Un})}var un=Ct||{triggerValue:void 0,selected:void 0},St=un.triggerValue,Qt=un.selected,An=ve?Y(ht,En,Xt,Be):ht;if(qe){var ha=en.map(function(Un){var In=Vt(Un);return In?In.data.value:Un}).filter(function(Un){return!ht.includes(Un)});An=[].concat(Object(I.a)(An),Object(I.a)(Y(ha,En,Xt,Be)))}var Mn={preValue:Pn,triggerValue:St},Ta=!0;(qe||gt==="selection"&&!Qt)&&(Ta=!1),u(Mn,St,mt,Dt,Ta),Re?Mn.checked=Qt:Mn.selected=Qt,Ce(je?An:An[0],ve?null:ht.map(function(Un){var In=Xt(Un);return In?Be(In.data):null}),Mn)}},sa=function(mt,Ct,gt){var ht=mt;if(!je)pn([mt],{selected:!0,triggerValue:mt},gt);else{var Tt=P(an,mt);if(B){var Wt=sn(Tt),un=Wt.missingRawValues,St=Wt.existRawValues,Qt=St.map(function(Mn){return Xt(Mn).key}),An=Object(fe.a)(Qt,!0,gn),ha=An.checkedKeys;Tt=[].concat(Object(I.a)(un),Object(I.a)(ha.map(function(Mn){return Vt(Mn).data.value})))}pn(Tt,{selected:!0,triggerValue:mt},gt)}ue&&ue(ht,Ct)},kn=function(mt,Ct,gt){var ht=mt,Tt=h(an,mt);if(B){var Wt=sn(Tt),un=Wt.missingRawValues,St=Wt.existRawValues,Qt=St.map(function(Mn){return Xt(Mn).key}),An=Object(fe.a)(Qt,{checked:!1,halfCheckedKeys:en},gn),ha=An.checkedKeys;Tt=[].concat(Object(I.a)(un),Object(I.a)(ha.map(function(Mn){return Vt(Mn).data.value})))}pn(Tt,{selected:!1,triggerValue:mt},gt),z&&z(ht,Ct)},Yn=function(){pn([],null,"clear")},on=M.useCallback(function(Gt){if(c){var mt={};Object.defineProperty(mt,"documentClickClose",{get:function(){return Object(g.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),c(Gt,mt)}},[c]),$t={optionLabelProp:null,optionFilterProp:Ke,dropdownAlign:ee,internalProps:{mark:W.a,onClear:Yn,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:sa,onRawDeselect:kn}};return"filterTreeNode"in q&&($t.filterOption=He),M.createElement(re.Provider,{value:{checkable:Re,loadData:we,treeLoadedKeys:Pe,onTreeLoad:r,checkedKeys:an,halfCheckedKeys:en,treeDefaultExpandAll:vt,treeExpandedKeys:at,treeDefaultExpandedKeys:Qe,onTreeExpand:F,treeIcon:jt,treeMotion:tt,showTreeIcon:dt,switcherIcon:Je,treeLine:st,treeNodeFilterProp:Ke}},M.createElement(Ye,Object.assign({ref:Se,mode:je?"multiple":null},q,$t,{value:Pn,labelInValue:!0,options:Dt,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:on})))}),nt=function(q){Object(ke.a)(Ve,q);var Te=Object(ye.a)(Ve);function Ve(){var Ie;return Object(A.a)(this,Ve),Ie=Te.apply(this,arguments),Ie.selectRef=M.createRef(),Ie.focus=function(){Ie.selectRef.current.focus()},Ie.blur=function(){Ie.selectRef.current.blur()},Ie}return Object(L.a)(Ve,[{key:"render",value:function(){return M.createElement(ot,Object.assign({ref:this.selectRef},this.props))}}]),Ve}(M.Component);nt.TreeNode=k,nt.SHOW_ALL=s,nt.SHOW_PARENT=C,nt.SHOW_CHILD=$;var Ze=nt,xt=be.e=Ze},BU3w:function(Nt,be,t){"use strict";t.d(be,"a",function(){return i});var A=t("MNnm"),L="rc-util-key";function ke(K){if(K.attachTo)return K.attachTo;var a=document.querySelector("head");return a||document.body}function ye(K){var a,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(A.a)())return null;var _=document.createElement("style");if((a=M.csp)===null||a===void 0?void 0:a.nonce){var Q;_.nonce=(Q=M.csp)===null||Q===void 0?void 0:Q.nonce}_.innerHTML=K;var he=ke(M),fe=he.firstChild;return M.prepend&&he.prepend?he.prepend(_):M.prepend&&fe?he.insertBefore(_,fe):he.appendChild(_),_}var I=new Map;function i(K,a){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=ke(M);if(!I.has(_)){var Q=ye("",M),he=Q.parentNode;I.set(_,he),he.removeChild(Q)}var fe=Array.from(I.get(_).children).find(function(V){return V.tagName==="STYLE"&&V[L]===a});if(fe){var W,R;if(((W=M.csp)===null||W===void 0?void 0:W.nonce)&&fe.nonce!==((R=M.csp)===null||R===void 0?void 0:R.nonce)){var g;fe.nonce=(g=M.csp)===null||g===void 0?void 0:g.nonce}return fe.innerHTML!==K&&(fe.innerHTML=K),fe}var X=ye(K,M);return X[L]=a,X}},BdwD:function(Nt,be,t){"use strict";var A=t("+L6B"),L=t("2/Rp"),ke=t("0Owb"),ye=t("k1fw"),I=t("q1tI"),i=t.n(I),K=t("FOrL"),a=t.n(K),M=function(Q){var he=Q.buttonProps,fe=he===void 0?{}:he,W=Q.styles,R=W===void 0?{}:W,g=Q.customText,X=Q.ButtonText,V=Q.ButtonClick,se=Q.Buttonclass,re=Q.ButtonTwo;return i.a.createElement("section",{className:"tc animated fadeIn",style:Object(ye.a)(Object(ye.a)({},{color:"#999",margin:"200px auto"}),R)},i.a.createElement("img",{src:a.a}),i.a.createElement("p",{className:"mt20 font14"},g||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),X&&i.a.createElement(L.a,Object(ke.a)({className:se,onClick:V},fe),X),re&&re)};be.a=M},FOrL:function(Nt,be,t){Nt.exports=t.p+"static/nodata.a6b3f948.png"},GfqC:function(Nt,be,t){"use strict";var A=t("q1tI"),L=t.n(A),ke=t("TSYQ"),ye=t.n(ke);function I(m,l){var S="cannot "+m.method+" "+m.action+" "+l.status+"'",E=new Error(S);return E.status=l.status,E.method=m.method,E.url=m.action,E}function i(m){var l=m.responseText||m.response;if(!l)return l;try{return JSON.parse(l)}catch(S){return l}}function K(m){var l=new XMLHttpRequest;m.onProgress&&l.upload&&(l.upload.onprogress=function(ge){ge.total>0&&(ge.percent=ge.loaded/ge.total*100),m.onProgress(ge)});var S=new FormData;m.data&&Object.keys(m.data).forEach(function(w){var ge=m.data[w];if(Array.isArray(ge)){ge.forEach(function(me){S.append(w+"[]",me)});return}S.append(w,m.data[w])}),m.file instanceof Blob?S.append(m.filename,m.file,m.file.name):S.append(m.filename,m.file),l.onerror=function(ge){m.onError(ge)},l.onload=function(){return l.status<200||l.status>=300?m.onError(I(m,l),i(l)):m.onSuccess(i(l),l)},l.open(m.method,m.action,!0),m.withCredentials&&"withCredentials"in l&&(l.withCredentials=!0);var E=m.headers||{};return E["X-Requested-With"]!==null&&l.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(E).forEach(function(w){E[w]!==null&&l.setRequestHeader(w,E[w])}),l.send(S),{abort:function(){l.abort()}}}var a=+new Date,M=0;function _(){return"rc-upload-"+a+"-"+ ++M}function Q(m,l){return m.indexOf(l,m.length-l.length)!==-1}var he=function(m,l){if(m&&l){var S=Array.isArray(l)?l:l.split(","),E=m.name||"",w=m.type||"",ge=w.replace(/\/.*$/,"");return S.some(function(me){var Y=me.trim();return Y.charAt(0)==="."?Q(E.toLowerCase(),Y.toLowerCase()):/\/\*$/.test(Y)?ge===Y.replace(/\/.*$/,""):w===Y})}return!0};function fe(m,l){var S=m.createReader(),E=[];function w(){S.readEntries(function(ge){var me=Array.prototype.slice.apply(ge);E=E.concat(me);var Y=!me.length;Y?l(E):w()})}w()}var W=function(l,S,E){var w=function ge(me,Y){Y=Y||"",me.isFile?me.file(function(P){E(P)&&(me.fullPath&&!P.webkitRelativePath&&(Object.defineProperties(P,{webkitRelativePath:{writable:!0}}),P.webkitRelativePath=me.fullPath.replace(/^\//,""),Object.defineProperties(P,{webkitRelativePath:{writable:!1}})),S([P]))}):me.isDirectory&&fe(me,function(P){P.forEach(function(h){ge(h,""+Y+me.name+"/")})})};l.forEach(function(ge){w(ge.webkitGetAsEntry())})},R=W,g=Object.assign||function(m){for(var l=1;l=0)continue;if(!Object.prototype.hasOwnProperty.call(m,E))continue;S[E]=m[E]}return S}function ie(m,l){if(!(m instanceof l))throw new TypeError("Cannot call a class as a function")}function xe(m,l){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:m}function ne(m,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);m.prototype=Object.create(l&&l.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(m,l):m.__proto__=l)}var pe=function(l){return Object.keys(l).reduce(function(S,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-"||E==="role")&&(S[E]=l[E]),S},{})},J=function(m){ne(l,m);function l(){var S,E,w,ge;ie(this,l);for(var me=arguments.length,Y=Array(me),P=0;P1&&arguments[1]!==void 0?arguments[1]:1,Xe=Ze.length,et=0;et1&&arguments[1]!==void 0?arguments[1]:!1;return Object(pe.a)(S).map(function(w,ge){if(!I.isValidElement(w)||!w.type)return null;var me=w.type.isSelectOptGroup,Y=w.key,P=w.props,h=P.children,v=Object(K.a)(P,["children"]);return E||!me?J(w):Object(ne.a)(Object(ne.a)({key:"__RC_SELECT_GRP__".concat(Y===null?ge:Y,"__"),label:Y},v),{},{options:b(h)})}).filter(function(w){return w})}var o=t("2Qr1"),d=t("qNPg"),k=t("U8pU"),H=t("Kwbf"),le=t("WKfj");function ae(S){var E=S.mode,w=S.options,ge=S.children,me=S.backfill,Y=S.allowClear,P=S.placeholder,h=S.getInputElement,v=S.showSearch,T=S.onSearch,y=S.defaultOpen,Z=S.autoFocus,n=S.labelInValue,f=S.value,s=S.inputValue,C=S.optionLabelProp,$=E==="multiple"||E==="tags",G=v!==void 0?v:$||E==="combobox",Oe=w||b(ge);if(Object(H.a)(E!=="tags"||Oe.every(function(nt){return!nt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),E==="tags"||E==="combobox"){var We=Oe.some(function(nt){return nt.options?nt.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in nt?nt.value:nt.key)=="number"});Object(H.a)(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(H.a)(E!=="combobox"||!C,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(H.a)(E==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(H.a)(E==="combobox"||!h,"`getInputElement` only work with `combobox` mode."),Object(H.b)(E!=="combobox"||!h||!Y||!P,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),T&&!G&&E!=="combobox"&&E!=="tags"&&Object(H.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(H.b)(!y||Z,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),f!=null){var Ye=Object(le.d)(f);Object(H.a)(!n||Ye.every(function(nt){return Object(k.a)(nt)==="object"&&("key"in nt||"value"in nt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(H.a)(!$||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(ge){var ot=null;Object(pe.a)(ge).some(function(nt){if(!I.isValidElement(nt)||!nt.type)return!1;var Ze=nt.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var xt=Object(pe.a)(nt.props.children).every(function(q){return!I.isValidElement(q)||!nt.type||q.type.isSelectOption?!0:(ot=q.type,!1)});return!xt}return ot=Ze,!0}),ot&&Object(H.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ot.displayName||ot.name||ot,"`.")),Object(H.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=ae,u=Object(d.a)({prefixCls:"rc-select",components:{optionList:V},convertChildrenToData:b,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:N,fillOptionsWithMissingValue:o.a}),j=function(S){Object(ke.a)(w,S);var E=Object(ye.a)(w);function w(){var ge;return Object(A.a)(this,w),ge=E.apply(this,arguments),ge.selectRef=I.createRef(),ge.focus=function(){ge.selectRef.current.focus()},ge.blur=function(){ge.selectRef.current.blur()},ge}return Object(L.a)(w,[{key:"render",value:function(){return I.createElement(u,Object.assign({ref:this.selectRef},this.props))}}]),w}(I.Component);j.Option=re,j.OptGroup=xe;var m=j,l=be.c=m},NvD2:function(Nt,be,t){"use strict";t.d(be,"a",function(){return i});var A=t("Kwbf");function L(K,a){var M=new Set;return K.forEach(function(_){a.has(_)||M.add(_)}),M}function ke(K){var a=K||{},M=a.disabled,_=a.disableCheckbox,Q=a.checkable;return!!(M||_)||Q===!1}function ye(K,a,M,_){for(var Q=new Set(K),he=new Set,fe=0;fe<=M;fe+=1){var W=a.get(fe)||new Set;W.forEach(function(V){var se=V.key,re=V.node,ie=V.children,xe=ie===void 0?[]:ie;Q.has(se)&&!_(re)&&xe.filter(function(ne){return!_(ne.node)}).forEach(function(ne){Q.add(ne.key)})})}for(var R=new Set,g=M;g>=0;g-=1){var X=a.get(g)||new Set;X.forEach(function(V){var se=V.parent,re=V.node;if(_(re)||!V.parent||R.has(V.parent.key))return;if(_(V.parent.node)){R.add(se.key);return}var ie=!0,xe=!1;(se.children||[]).filter(function(ne){return!_(ne.node)}).forEach(function(ne){var pe=ne.key,J=Q.has(pe);ie&&!J&&(ie=!1),!xe&&(J||he.has(pe))&&(xe=!0)}),ie&&Q.add(se.key),xe&&he.add(se.key),R.add(se.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(L(he,Q))}}function I(K,a,M,_,Q){for(var he=new Set(K),fe=new Set(a),W=0;W<=_;W+=1){var R=M.get(W)||new Set;R.forEach(function(se){var re=se.key,ie=se.node,xe=se.children,ne=xe===void 0?[]:xe;!he.has(re)&&!fe.has(re)&&!Q(ie)&&ne.filter(function(pe){return!Q(pe.node)}).forEach(function(pe){he.delete(pe.key)})})}fe=new Set;for(var g=new Set,X=_;X>=0;X-=1){var V=M.get(X)||new Set;V.forEach(function(se){var re=se.parent,ie=se.node;if(Q(ie)||!se.parent||g.has(se.parent.key))return;if(Q(se.parent.node)){g.add(re.key);return}var xe=!0,ne=!1;(re.children||[]).filter(function(pe){return!Q(pe.node)}).forEach(function(pe){var J=pe.key,b=he.has(J);xe&&!b&&(xe=!1),!ne&&(b||fe.has(J))&&(ne=!0)}),xe||he.delete(re.key),ne&&fe.add(re.key),g.add(re.key)})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(L(fe,he))}}function i(K,a,M,_){var Q=[],he;_?he=_:he=ke;var fe=new Set(K.filter(function(X){var V=!!M[X];return V||Q.push(X),V})),W=new Map,R=0;Object.keys(M).forEach(function(X){var V=M[X],se=V.level,re=W.get(se);re||(re=new Set,W.set(se,re)),re.add(V),R=Math.max(R,se)}),Object(A.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(X){return"'".concat(X,"'")}).join(", ")));var g;return a===!0?g=ye(fe,W,R,he):g=I(fe,a.halfCheckedKeys,W,R,he),g}},OLES:function(Nt,be,t){"use strict";var A=t("U8pU"),L=t("VTBJ"),ke=t("Ff2n"),ye=t("q1tI"),I=t("uciX"),i=t("7ixt"),K=function(fe){var W=fe.overlay,R=fe.prefixCls,g=fe.id,X=fe.overlayInnerStyle;return ye.createElement("div",{className:"".concat(R,"-inner"),id:g,role:"tooltip",style:X},typeof W=="function"?W():W)},a=K,M=function(fe,W){var R=fe.overlayClassName,g=fe.trigger,X=g===void 0?["hover"]:g,V=fe.mouseEnterDelay,se=V===void 0?0:V,re=fe.mouseLeaveDelay,ie=re===void 0?.1:re,xe=fe.overlayStyle,ne=fe.prefixCls,pe=ne===void 0?"rc-tooltip":ne,J=fe.children,b=fe.onVisibleChange,o=fe.afterVisibleChange,d=fe.transitionName,k=fe.animation,H=fe.placement,le=H===void 0?"right":H,ae=fe.align,N=ae===void 0?{}:ae,u=fe.destroyTooltipOnHide,j=u===void 0?!1:u,m=fe.defaultVisible,l=fe.getTooltipContainer,S=fe.overlayInnerStyle,E=Object(ke.a)(fe,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),w=Object(ye.useRef)(null);Object(ye.useImperativeHandle)(W,function(){return w.current});var ge=Object(L.a)({},E);"visible"in fe&&(ge.popupVisible=fe.visible);var me=function(){var T=fe.arrowContent,y=T===void 0?null:T,Z=fe.overlay,n=fe.id;return[ye.createElement("div",{className:"".concat(pe,"-arrow"),key:"arrow"},y),ye.createElement(a,{key:"content",prefixCls:pe,id:n,overlay:Z,overlayInnerStyle:S})]},Y=!1,P=!1;if(typeof j=="boolean")Y=j;else if(j&&Object(A.a)(j)==="object"){var h=j.keepParent;Y=h===!0,P=h===!1}return ye.createElement(I.a,Object.assign({popupClassName:R,prefixCls:pe,popup:me,action:X,builtinPlacements:i.a,popupPlacement:le,ref:w,popupAlign:N,getPopupContainer:l,onPopupVisibleChange:b,afterPopupVisibleChange:o,popupTransitionName:d,popupAnimation:k,defaultPopupVisible:m,destroyPopupOnHide:Y,autoDestroy:P,mouseLeaveDelay:ie,popupStyle:xe,mouseEnterDelay:se},ge),J)},_=Object(ye.forwardRef)(M),Q=be.a=_},OZM5:function(Nt,be,t){"use strict";t.d(be,"b",function(){return _}),t.d(be,"a",function(){return Q}),t.d(be,"k",function(){return he}),t.d(be,"h",function(){return fe}),t.d(be,"i",function(){return W}),t.d(be,"g",function(){return R}),t.d(be,"c",function(){return g}),t.d(be,"d",function(){return X}),t.d(be,"j",function(){return re}),t.d(be,"e",function(){return ie}),t.d(be,"f",function(){return xe});var A=t("KQm4"),L=t("U8pU"),ke=t("Ff2n"),ye=t("q1tI"),I=t.n(ye),i=t("Kwbf"),K=t("WaYH"),a=.25,M=2;function _(ne,pe){var J=ne.slice(),b=J.indexOf(pe);return b>=0&&J.splice(b,1),J}function Q(ne,pe){var J=ne.slice();return J.indexOf(pe)===-1&&J.push(pe),J}function he(ne){return ne.split("-")}function fe(ne,pe){return"".concat(ne,"-").concat(pe)}function W(ne){return ne&&ne.type&&ne.type.isTreeNode}function R(ne,pe){var J=[ne],b=pe[ne];function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(k){var H=k.key,le=k.children;J.push(H),o(le)})}return o(b.children),J}function g(ne,pe){var J=ne.clientY,b=pe.selectHandle.getBoundingClientRect(),o=b.top,d=b.bottom,k=b.height,H=Math.max(k*a,M);return J<=o+H?-1:J>=d-H?1:0}function X(ne,pe){if(!ne)return;var J=pe.multiple;return J?ne.slice():ne.length?[ne[0]]:ne}var V=function(pe){return pe};function se(ne,pe){if(!ne)return[];var J=pe||{},b=J.processProps,o=b===void 0?V:b,d=Array.isArray(ne)?ne:[ne];return d.map(function(k){var H=k.children,le=Object(ke.a)(k,["children"]),ae=se(H,pe);return I.a.createElement(K.a,Object.assign({},o(le)),ae)})}function re(ne){if(!ne)return null;var pe;if(Array.isArray(ne))pe={checkedKeys:ne,halfCheckedKeys:void 0};else if(Object(L.a)(ne)==="object")pe={checkedKeys:ne.checked||void 0,halfCheckedKeys:ne.halfChecked||void 0};else return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;return pe}function ie(ne,pe){var J=new Set;function b(o){if(J.has(o))return;var d=pe[o];if(!d)return;J.add(o);var k=d.parent,H=d.node;if(H.disabled)return;k&&b(k.key)}return(ne||[]).forEach(function(o){b(o)}),Object(A.a)(J)}function xe(ne){var pe={};return Object.keys(ne).forEach(function(J){(J.startsWith("data-")||J.startsWith("aria-"))&&(pe[J]=ne[J])}),pe}},"SA+Z":function(Nt,be,t){var A=t("wTVA"),L=t("EbDI"),ke=t("ZhPi"),ye=t("wkBT");function I(i){return A(i)||L(i)||ke(i)||ye()}Nt.exports=I,Nt.exports.__esModule=!0,Nt.exports.default=Nt.exports},VQsq:function(Nt,be,t){"use strict";t.r(be);var A=t("DjyN"),L=t("NUBc"),ke=t("g9YV"),ye=t("wCAj"),I=t("5NDa"),i=t("5rEg"),K=t("DYRE"),a=t("zeV3"),M=t("P2fV"),_=t("NJEC"),Q=t("qVdP"),he=t("jsC+"),fe=t("+BJd"),W=t("mr32"),R=t("5Dmo"),g=t("3S7+"),X=t("lUTK"),V=t("BvKs"),se=t("miYZ"),re=t("tsqr"),ie=t("9og8"),xe=t("k1fw"),ne=t("tJVT"),pe=t("WmNS"),J=t.n(pe),b=t("q1tI"),o=t.n(b),d=t("wd/R"),k=t.n(d),H=t("Ty5D"),le=t("55Ip"),ae=t("9kvl"),N=t("ErOA"),u=t("8Skl"),j=t("mgmH"),m=t("1vsH"),l=t("BdwD"),S=t("2qtc"),E=t("kLXV"),w=t("oBTY"),ge=function(Je){var st=Je.classroomList,tt=Je.dispatch,He=Je.cb,ee=Object(H.i)();return ee.id=ee.coursesId,o.a.createElement(E.a,{centered:!0,title:"\u63D0\u793A",visible:st.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(ie.a)(J.a.mark(function Ce(){var F;return J.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Object(N.a)("/api/boards/".concat(ee.categoryId,"/messages/bulk_public.json"),{method:"put",body:{ids:Object(w.a)(st.actionTabs.selectArrs)}});case 2:F=c.sent,F.status===0&&(re.b.success("\u64CD\u4F5C\u6210\u529F"),He(),tt({type:"classroomList/setActionTabs",payload:{}}),tt({type:"classroomList/getBoardList",payload:Object(xe.a)({},st.actionTabs.params)}));case 4:case"end":return c.stop()}},Ce)})),onCancel:function(){tt({type:"classroomList/setActionTabs",payload:{}})}},o.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))},me=Object(ae.a)(function(dt){var Je=dt.classroomList;return{classroomList:Je}})(ge),Y=function(Je){var st=Je.classroomList,tt=Je.dispatch,He=Je.cb,ee=Object(H.i)();return ee.id=ee.coursesId,o.a.createElement(E.a,{centered:!0,title:"\u63D0\u793A",visible:st.actionTabs.key==="\u5220\u9664\u5206\u73ED",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(ie.a)(J.a.mark(function Ce(){var F;return J.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Object(N.a)("/api/course_groups/".concat(st.actionTabs.selectArrs.id,".json"),{method:"delete"});case 2:F=c.sent,F.status===0&&(re.b.success("\u5220\u9664\u6210\u529F"),tt({type:"classroomList/setActionTabs",payload:{}}),tt({type:"classroomList/getCourseGroupsList",payload:Object(xe.a)({},st.actionTabs.params)}),tt({type:"classroomList/getClassroomLeftMenus",payload:{id:ee.coursesId}}),He());case 4:case"end":return c.stop()}},Ce)})),onCancel:function(){tt({type:"classroomList/setActionTabs",payload:{}})}},o.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664?"))},P=Object(ae.a)(function(dt){var Je=dt.classroomList;return{classroomList:Je}})(Y),h=t("14J3"),v=t("BMrR"),T=t("iQDF"),y=t("+eQT"),Z=t("jCWc"),n=t("kPKH"),f=t("jrin"),s=t("T2oS"),C=t("W9HT"),$=t("y8nQ"),G=t("Vl3Y"),Oe=function(Je){var st,tt=Je.classroomList,He=Je.loading,ee=Je.dispatch,Ce=Je.cb,F=Object(H.i)();F.id=F.coursesId,Object(b.useEffect)(function(){ee({type:"classroomList/getCourseGroups",payload:{id:F.id}})},[tt.name]);var r=G.a.useForm(),c=Object(ne.a)(r,1),ue=c[0],z=[];tt.courseGroups.course_groups&&tt.courseGroups.course_groups.map(function(je){return z.push(je.id+"")});var Re=function(B){return B&&B1&&arguments[1]!==void 0?arguments[1]:!1,F=ee&&typeof ee.getBoundingClientRect=="function"&&ee.getBoundingClientRect().width;if(F){if(Ce){var r=getComputedStyle(ee),c=r.marginLeft,ue=r.marginRight;F+=+c.replace("px","")+ +ue.replace("px","")}F=+F.toFixed(6)}return F||0},h=function(ee,Ce,F){ee&&Object(V.a)(ee.style)==="object"&&(ee.style[Ce]=F)},v=function(){return l.any},N=t("KQm4"),y=t("Ff2n"),Z=t("i8i4"),n=t("bdgK"),f=t("uciX"),s=t("8XRh"),C={adjustX:1,adjustY:1},$={topLeft:{points:["bl","tl"],overflow:C,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:C,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:C,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:C,offset:[4,0]}},G={topLeft:{points:["bl","tl"],overflow:C,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:C,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:C,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:C,offset:[4,0]}},Oe=$,We=0,Ye={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ot=function(ee,Ce,F){var r=w(Ce),c=ee.getState();ee.setState({defaultActiveFirst:Object(A.a)(Object(A.a)({},c.defaultActiveFirst),{},Object(Q.a)({},r,F))})},nt=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(F){var r;Object(L.a)(this,Ce),r=ee.call(this,F),r.onDestroy=function(B){r.props.onDestroy(B)},r.onKeyDown=function(B){var ve=B.keyCode,Se=r.menuInstance,rt=r.props,Be=rt.isOpen,Dt=rt.store;if(ve===he.a.ENTER)return r.onTitleClick(B),ot(Dt,r.props.eventKey,!0),!0;if(ve===he.a.RIGHT)return Be?Se.onKeyDown(B):(r.triggerOpenChange(!0),ot(Dt,r.props.eventKey,!0)),!0;if(ve===he.a.LEFT){var yt;if(Be)yt=Se.onKeyDown(B);else return;return yt||(r.triggerOpenChange(!1),yt=!0),yt}return Be&&(ve===he.a.UP||ve===he.a.DOWN)?Se.onKeyDown(B):void 0},r.onOpenChange=function(B){r.props.onOpenChange(B)},r.onPopupVisibleChange=function(B){r.triggerOpenChange(B,B?"mouseenter":"mouseleave")},r.onMouseEnter=function(B){var ve=r.props,Se=ve.eventKey,rt=ve.onMouseEnter,Be=ve.store;ot(Be,r.props.eventKey,!1),rt({key:Se,domEvent:B})},r.onMouseLeave=function(B){var ve=r.props,Se=ve.parentMenu,rt=ve.eventKey,Be=ve.onMouseLeave;Se.subMenuInstance=Object(ye.a)(r),Be({key:rt,domEvent:B})},r.onTitleMouseEnter=function(B){var ve=r.props,Se=ve.eventKey,rt=ve.onItemHover,Be=ve.onTitleMouseEnter;rt({key:Se,hover:!0}),Be({key:Se,domEvent:B})},r.onTitleMouseLeave=function(B){var ve=r.props,Se=ve.parentMenu,rt=ve.eventKey,Be=ve.onItemHover,Dt=ve.onTitleMouseLeave;Se.subMenuInstance=Object(ye.a)(r),Be({key:rt,hover:!1}),Dt({key:rt,domEvent:B})},r.onTitleClick=function(B){var ve=Object(ye.a)(r),Se=ve.props;if(Se.onTitleClick({key:Se.eventKey,domEvent:B}),Se.triggerSubMenuAction==="hover")return;r.triggerOpenChange(!Se.isOpen,"click"),ot(Se.store,r.props.eventKey,!1)},r.onSubMenuClick=function(B){typeof r.props.onClick=="function"&&r.props.onClick(r.addKeyPath(B))},r.onSelect=function(B){r.props.onSelect(B)},r.onDeselect=function(B){r.props.onDeselect(B)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.saveMenuInstance=function(B){r.menuInstance=B},r.addKeyPath=function(B){return Object(A.a)(Object(A.a)({},B),{},{keyPath:(B.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(B,ve){var Se=r.props.eventKey,rt=function(){r.onOpenChange({key:Se,item:Object(ye.a)(r),trigger:ve,open:B})};ve==="mouseenter"?r.mouseenterTimeout=setTimeout(function(){rt()},0):rt()},r.isChildrenSelected=function(){var B={find:!1};return me(r.props.children,r.props.selectedKeys,B),B.find},r.isOpen=function(){return r.props.openKeys.indexOf(r.props.eventKey)!==-1},r.adjustWidth=function(){if(!r.subMenuTitle||!r.menuInstance)return;var B=Z.findDOMNode(r.menuInstance);if(B.offsetWidth>=r.subMenuTitle.offsetWidth)return;B.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px")},r.saveSubMenuTitle=function(B){r.subMenuTitle=B},r.getBaseProps=function(){var B=Object(ye.a)(r),ve=B.props;return{mode:ve.mode==="horizontal"?"vertical":ve.mode,visible:r.props.isOpen,level:ve.level+1,inlineIndent:ve.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:ve.selectedKeys,eventKey:"".concat(ve.eventKey,"-menu-"),openKeys:ve.openKeys,motion:ve.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:ve.subMenuOpenDelay,parentMenu:Object(ye.a)(r),subMenuCloseDelay:ve.subMenuCloseDelay,forceSubMenuRender:ve.forceSubMenuRender,triggerSubMenuAction:ve.triggerSubMenuAction,builtinPlacements:ve.builtinPlacements,defaultActiveFirst:ve.store.getState().defaultActiveFirst[w(ve.eventKey)],multiple:ve.multiple,prefixCls:ve.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:ve.itemIcon,expandIcon:ve.expandIcon,direction:ve.direction}},r.getMotion=function(B,ve){var Se=Object(ye.a)(r),rt=Se.haveRendered,Be=r.props,Dt=Be.motion,yt=Be.rootPrefixCls,Ht=Object(A.a)(Object(A.a)({},Dt),{},{leavedClassName:"".concat(yt,"-hidden"),removeOnLeave:!1,motionAppear:rt||!ve||B!=="inline"});return Ht};var c=F.store,ue=F.eventKey,z=c.getState(),Re=z.defaultActiveFirst;r.isRootMenu=!1;var je=!1;return Re&&(je=Re[ue]),ot(c,ue,je),r}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var r=this,c=this.props,ue=c.mode,z=c.parentMenu,Re=c.manualRef;if(Re&&Re(this),ue!=="horizontal"||!z.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return r.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var r=this.props,c=r.onDestroy,ue=r.eventKey;c&&c(ue),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(r){var c=this,ue=this.getBaseProps(),z=this.getMotion(ue.mode,ue.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ue.visible||ue.forceSubMenuRender,!this.haveOpened)return K.createElement("div",null);var Re=ue.direction;return K.createElement(s.default,Object.assign({visible:ue.visible},z),function(je){var B=je.className,ve=je.style,Se=X()("".concat(ue.prefixCls,"-sub"),B,Object(Q.a)({},"".concat(ue.prefixCls,"-rtl"),Re==="rtl"));return K.createElement(Ke,Object.assign({},ue,{id:c.internalMenuId,className:Se,style:ve}),r)})}},{key:"render",value:function(){var r,c=Object(A.a)({},this.props),ue=c.isOpen,z=this.getPrefixCls(),Re=c.mode==="inline",je=X()(z,"".concat(z,"-").concat(c.mode),(r={},Object(Q.a)(r,c.className,!!c.className),Object(Q.a)(r,this.getOpenClassName(),ue),Object(Q.a)(r,this.getActiveClassName(),c.active||ue&&!Re),Object(Q.a)(r,this.getDisabledClassName(),c.disabled),Object(Q.a)(r,this.getSelectedClassName(),this.isChildrenSelected()),r));this.internalMenuId||(c.eventKey?this.internalMenuId="".concat(c.eventKey,"$Menu"):(We+=1,this.internalMenuId="$__$".concat(We,"$Menu")));var B={},ve={},Se={};c.disabled||(B={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ve={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var rt={},Be=c.direction;Re&&(Be==="rtl"?rt.paddingRight=c.inlineIndent*c.level:rt.paddingLeft=c.inlineIndent*c.level);var Dt={};this.props.isOpen&&(Dt={"aria-owns":this.internalMenuId});var yt=null;c.mode!=="horizontal"&&(yt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(yt=K.createElement(this.props.expandIcon,Object(A.a)({},this.props))));var Ht=K.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:rt,className:"".concat(z,"-title"),role:"button"},Se,ve,{"aria-expanded":ue},Dt,{"aria-haspopup":"true",title:typeof c.title=="string"?c.title:void 0}),c.title,yt||K.createElement("i",{className:"".concat(z,"-arrow")})),Ut=this.renderChildren(c.children),It=c.parentMenu.isRootMenu?c.parentMenu.props.getPopupContainer:function(qt){return qt.parentNode},Yt=Ye[c.mode],zt=c.popupOffset?{offset:c.popupOffset}:{},On=c.mode==="inline"?"":c.popupClassName;On+=Be==="rtl"?" ".concat(z,"-rtl"):"";var Vt=c.disabled,Xt=c.triggerSubMenuAction,wn=c.subMenuOpenDelay,gn=c.forceSubMenuRender,Wn=c.subMenuCloseDelay,mn=c.builtinPlacements;Y.forEach(function(qt){return delete c[qt]}),delete c.onClick;var En=Be==="rtl"?Object.assign({},G,mn):Object.assign({},$,mn);return delete c.direction,K.createElement("li",Object.assign({},c,B,{className:je,role:"menuitem"}),Re&&Ht,Re&&Ut,!Re&&K.createElement(f.a,{prefixCls:z,popupClassName:X()("".concat(z,"-popup"),On),getPopupContainer:It,builtinPlacements:En,popupPlacement:Yt,popupVisible:ue,popupAlign:zt,popup:Ut,action:Vt?[]:[Xt],mouseEnterDelay:wn,mouseLeaveDelay:Wn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:gn},Ht))}}]),Ce}(K.Component);nt.defaultProps={onMouseEnter:S,onMouseLeave:S,onTitleMouseEnter:S,onTitleMouseLeave:S,onTitleClick:S,manualRef:S,mode:"vertical",title:""};var Ze=Object(a.b)(function(He,ee){var Ce=He.openKeys,F=He.activeKey,r=He.selectedKeys,c=ee.eventKey,ue=ee.subMenuKey;return{isOpen:Ce.indexOf(c)>-1,active:F[ue]===c,selectedKeys:r}})(nt);Ze.isSubMenu=!0;var xt=Ze,q="menuitem-overflowed",Ne=.5,Ve=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(){var F;return Object(L.a)(this,Ce),F=ee.apply(this,arguments),F.resizeObserver=null,F.mutationObserver=null,F.originalTotalWidth=0,F.overflowedItems=[],F.menuItemSizes=[],F.cancelFrameId=null,F.state={lastVisibleIndex:void 0},F.getMenuItemNodes=function(){var r=F.props.prefixCls,c=Z.findDOMNode(Object(ye.a)(F));return c?[].slice.call(c.children).filter(function(ue){return ue.className.split(" ").indexOf("".concat(r,"-overflowed-submenu"))<0}):[]},F.getOverflowedSubMenuItem=function(r,c,ue){var z=F.props,Re=z.overflowedIndicator,je=z.level,B=z.mode,ve=z.prefixCls,Se=z.theme;if(je!==1||B!=="horizontal")return null;var rt=F.props.children[0],Be=rt.props,Dt=Be.children,yt=Be.title,Ht=Be.style,Ut=Object(y.a)(Be,["children","title","style"]),It=Object(A.a)({},Ht),Yt="".concat(r,"-overflowed-indicator"),zt="".concat(r,"-overflowed-indicator");c.length===0&&ue!==!0?It=Object(A.a)(Object(A.a)({},It),{},{display:"none"}):ue&&(It=Object(A.a)(Object(A.a)({},It),{},{visibility:"hidden",position:"absolute"}),Yt="".concat(Yt,"-placeholder"),zt="".concat(zt,"-placeholder"));var On=Se?"".concat(ve,"-").concat(Se):"",Vt={};return Y.forEach(function(Xt){Ut[Xt]!==void 0&&(Vt[Xt]=Ut[Xt])}),K.createElement(xt,Object.assign({title:Re,className:"".concat(ve,"-overflowed-submenu"),popupClassName:On},Vt,{key:Yt,eventKey:zt,disabled:!1,style:It}),c)},F.setChildrenWidthAndResize=function(){if(F.props.mode!=="horizontal")return;var r=Z.findDOMNode(Object(ye.a)(F));if(!r)return;var c=r.children;if(!c||c.length===0)return;var ue=r.children[c.length-1];h(ue,"display","inline-block");var z=F.getMenuItemNodes(),Re=z.filter(function(je){return je.className.split(" ").indexOf(q)>=0});Re.forEach(function(je){h(je,"display","inline-block")}),F.menuItemSizes=z.map(function(je){return P(je,!0)}),Re.forEach(function(je){h(je,"display","none")}),F.overflowedIndicatorWidth=P(r.children[r.children.length-1],!0),F.originalTotalWidth=F.menuItemSizes.reduce(function(je,B){return je+B},0),F.handleResize(),h(ue,"display","none")},F.handleResize=function(){if(F.props.mode!=="horizontal")return;var r=Z.findDOMNode(Object(ye.a)(F));if(!r)return;var c=P(r);F.overflowedItems=[];var ue=0,z;F.originalTotalWidth>c+Ne&&(z=-1,F.menuItemSizes.forEach(function(Re){ue+=Re,ue+F.overflowedIndicatorWidth<=c&&(z+=1)})),F.setState({lastVisibleIndex:z})},F}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){var r=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var c=Z.findDOMNode(this);if(!c)return;this.resizeObserver=new n.default(function(ue){ue.forEach(function(){var z=r.cancelFrameId;cancelAnimationFrame(z),r.cancelFrameId=requestAnimationFrame(r.setChildrenWidthAndResize)})}),[].slice.call(c.children).concat(c).forEach(function(ue){r.resizeObserver.observe(ue)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){r.resizeObserver.disconnect(),[].slice.call(c.children).concat(c).forEach(function(ue){r.resizeObserver.observe(ue)}),r.setChildrenWidthAndResize()}),this.mutationObserver.observe(c,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(r){var c=this,ue=this.state.lastVisibleIndex;return(r||[]).reduce(function(z,Re,je){var B=Re;if(c.props.mode==="horizontal"){var ve=c.getOverflowedSubMenuItem(Re.props.eventKey,[]);ue!==void 0&&c.props.className.indexOf("".concat(c.props.prefixCls,"-root"))!==-1&&(je>ue&&(B=K.cloneElement(Re,{style:{display:"none"},eventKey:"".concat(Re.props.eventKey,"-hidden"),className:"".concat(q)})),je===ue+1&&(c.overflowedItems=r.slice(ue+1).map(function(rt){return K.cloneElement(rt,{key:rt.props.eventKey,mode:"vertical-left"})}),ve=c.getOverflowedSubMenuItem(Re.props.eventKey,c.overflowedItems)));var Se=[].concat(Object(N.a)(z),[ve,B]);return je===r.length-1&&Se.push(c.getOverflowedSubMenuItem(Re.props.eventKey,[],!0)),Se}return[].concat(Object(N.a)(z),[B])},[])}},{key:"render",value:function(){var r=this.props,c=r.visible,ue=r.prefixCls,z=r.overflowedIndicator,Re=r.mode,je=r.level,B=r.tag,ve=r.children,Se=r.theme,rt=Object(y.a)(r,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Be=B;return K.createElement(Be,Object.assign({},rt),this.renderChildren(ve))}}]),Ce}(K.Component);Ve.defaultProps={tag:"div",className:""};var Ie=Ve;function qe(He){return He.length?He.every(function(ee){return!!ee.props.disabled}):!0}function O(He,ee,Ce){var F=He.getState();He.setState({activeKey:Object(A.a)(Object(A.a)({},F.activeKey),{},Object(Q.a)({},ee,Ce))})}function oe(He){return He.eventKey||"0-menu-"}function de(He,ee){var Ce=ee,F=He.children,r=He.eventKey;if(Ce){var c;if(ge(F,function(ue,z){ue&&ue.props&&!ue.props.disabled&&Ce===E(ue,r,z)&&(c=!0)}),c)return Ce}return Ce=null,He.defaultActiveFirst&&ge(F,function(ue,z){!Ce&&ue&&!ue.props.disabled&&(Ce=E(ue,r,z))}),Ce}function we(He){if(He){var ee=this.instanceArray.indexOf(He);ee!==-1?this.instanceArray[ee]=He:this.instanceArray.push(He)}}var Pe=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(F){var r;return Object(L.a)(this,Ce),r=ee.call(this,F),r.onKeyDown=function(c,ue){var z=c.keyCode,Re;if(r.getFlatInstanceArray().forEach(function(B){B&&B.props.active&&B.onKeyDown&&(Re=B.onKeyDown(c))}),Re)return 1;var je=null;return(z===he.a.UP||z===he.a.DOWN)&&(je=r.step(z===he.a.UP?-1:1)),je?(c.preventDefault(),O(r.props.store,oe(r.props),je.props.eventKey),typeof ue=="function"&&ue(je),1):void 0},r.onItemHover=function(c){var ue=c.key,z=c.hover;O(r.props.store,oe(r.props),z?ue:null)},r.onDeselect=function(c){r.props.onDeselect(c)},r.onSelect=function(c){r.props.onSelect(c)},r.onClick=function(c){r.props.onClick(c)},r.onOpenChange=function(c){r.props.onOpenChange(c)},r.onDestroy=function(c){r.props.onDestroy(c)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(c){var ue=r.getFlatInstanceArray(),z=r.props.store.getState().activeKey[oe(r.props)],Re=ue.length;if(!Re)return null;c<0&&(ue=ue.concat().reverse());var je=-1;if(ue.every(function(rt,Be){return rt&&rt.props.eventKey===z?(je=Be,!1):!0}),!r.props.defaultActiveFirst&&je!==-1&&qe(ue.slice(je,Re-1)))return;var B=(je+1)%Re,ve=B;do{var Se=ue[ve];if(!Se||Se.props.disabled)ve=(ve+1)%Re;else return Se}while(ve!==B);return null},r.renderCommonMenuItem=function(c,ue,z){var Re=r.props.store.getState(),je=Object(ye.a)(r),B=je.props,ve=E(c,B.eventKey,ue),Se=c.props;if(!Se||typeof c.type=="string")return c;var rt=ve===Re.activeKey,Be=Object(A.a)(Object(A.a)({mode:Se.mode||B.mode,level:B.level,inlineIndent:B.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:B.prefixCls,index:ue,parentMenu:B.parentMenu,manualRef:Se.disabled?void 0:Object(fe.a)(c.ref,we.bind(Object(ye.a)(r))),eventKey:ve,active:!Se.disabled&&rt,multiple:B.multiple,onClick:function(yt){(Se.onClick||S)(yt),r.onClick(yt)},onItemHover:r.onItemHover,motion:B.motion,subMenuOpenDelay:B.subMenuOpenDelay,subMenuCloseDelay:B.subMenuCloseDelay,forceSubMenuRender:B.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:B.builtinPlacements,itemIcon:Se.itemIcon||r.props.itemIcon,expandIcon:Se.expandIcon||r.props.expandIcon},z),{},{direction:B.direction});return(B.mode==="inline"||v())&&(Be.triggerSubMenuAction="click"),K.cloneElement(c,Be)},r.renderMenuItem=function(c,ue,z){if(!c)return null;var Re=r.props.store.getState(),je={openKeys:Re.openKeys,selectedKeys:Re.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:z};return r.renderCommonMenuItem(c,ue,je)},F.store.setState({activeKey:Object(A.a)(Object(A.a)({},F.store.getState().activeKey),{},Object(Q.a)({},F.eventKey,de(F,F.activeKey)))}),r.instanceArray=[],r}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(r){return this.props.visible||r.visible||this.props.className!==r.className||!R()(this.props.style,r.style)}},{key:"componentDidUpdate",value:function(r){var c=this.props,ue="activeKey"in c?c.activeKey:c.store.getState().activeKey[oe(c)],z=de(c,ue);if(z!==ue)O(c.store,oe(c),z);else if("activeKey"in r){var Re=de(r,r.activeKey);z!==Re&&O(c.store,oe(c),z)}}},{key:"render",value:function(){var r=this,c=Object(_.a)({},this.props);this.instanceArray=[];var ue=X()(c.prefixCls,c.className,"".concat(c.prefixCls,"-").concat(c.mode)),z={className:ue,role:c.role||"menu"};c.id&&(z.id=c.id),c.focusable&&(z.tabIndex=0,z.onKeyDown=this.onKeyDown);var Re=c.prefixCls,je=c.eventKey,B=c.visible,ve=c.level,Se=c.mode,rt=c.overflowedIndicator,Be=c.theme;return Y.forEach(function(Dt){return delete c[Dt]}),delete c.onClick,K.createElement(Ie,Object.assign({},c,{prefixCls:Re,mode:Se,tag:"ul",level:ve,theme:Be,visible:B,overflowedIndicator:rt},z),K.Children.map(c.children,function(Dt,yt){return r.renderMenuItem(Dt,yt,je||"0-menu-")}))}}]),Ce}(K.Component);Pe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:S};var Ae=Object(a.b)()(Pe),Ke=Ae,Te=t("Kwbf");function Xe(He,ee,Ce){var F=He.prefixCls,r=He.motion,c=He.defaultMotions,ue=c===void 0?{}:c,z=He.openAnimation,Re=He.openTransitionName,je=ee.switchingModeFromInline;if(r)return r;if(Object(V.a)(z)==="object"&&z)Object(Te.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof z=="string")return{motionName:"".concat(F,"-open-").concat(z)};if(Re)return{motionName:Re};var B=ue[Ce];return B||(je?null:ue.other)}var et=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(F){var r;Object(L.a)(this,Ce),r=ee.call(this,F),r.inlineOpenKeys=[],r.onSelect=function(z){var Re=Object(ye.a)(r),je=Re.props;if(je.selectable){var B=r.store.getState(),ve=B.selectedKeys,Se=z.key;je.multiple?ve=ve.concat([Se]):ve=[Se],"selectedKeys"in je||r.store.setState({selectedKeys:ve}),je.onSelect(Object(A.a)(Object(A.a)({},z),{},{selectedKeys:ve}))}},r.onClick=function(z){var Re=r.getRealMenuMode(),je=Object(ye.a)(r),B=je.store,ve=je.props.onOpenChange;Re!=="inline"&&!("openKeys"in r.props)&&(B.setState({openKeys:[]}),ve([])),r.props.onClick(z)},r.onKeyDown=function(z,Re){r.innerMenu.getWrappedInstance().onKeyDown(z,Re)},r.onOpenChange=function(z){var Re=Object(ye.a)(r),je=Re.props,B=r.store.getState().openKeys.concat(),ve=!1,Se=function(Be){var Dt=!1;if(Be.open)Dt=B.indexOf(Be.key)===-1,Dt&&B.push(Be.key);else{var yt=B.indexOf(Be.key);Dt=yt!==-1,Dt&&B.splice(yt,1)}ve=ve||Dt};Array.isArray(z)?z.forEach(Se):Se(z),ve&&("openKeys"in r.props||r.store.setState({openKeys:B}),je.onOpenChange(B))},r.onDeselect=function(z){var Re=Object(ye.a)(r),je=Re.props;if(je.selectable){var B=r.store.getState().selectedKeys.concat(),ve=z.key,Se=B.indexOf(ve);Se!==-1&&B.splice(Se,1),"selectedKeys"in je||r.store.setState({selectedKeys:B}),je.onDeselect(Object(A.a)(Object(A.a)({},z),{},{selectedKeys:B}))}},r.onMouseEnter=function(z){r.restoreModeVerticalFromInline();var Re=r.props.onMouseEnter;Re&&Re(z)},r.onTransitionEnd=function(z){var Re=z.propertyName==="width"&&z.target===z.currentTarget,je=z.target.className,B=Object.prototype.toString.call(je)==="[object SVGAnimatedString]"?je.animVal:je,ve=z.propertyName==="font-size"&&B.indexOf("anticon")>=0;(Re||ve)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(z){r.innerMenu=z},r.isRootMenu=!0;var c=F.defaultSelectedKeys,ue=F.defaultOpenKeys;return"selectedKeys"in F&&(c=F.selectedKeys||[]),"openKeys"in F&&(ue=F.openKeys||[]),r.store=Object(a.c)({selectedKeys:c,openKeys:ue,activeKey:{"0-menu-":de(F,F.activeKey)}}),r.state={switchingModeFromInline:!1},r}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(r){this.updateOpentKeysWhenSwitchMode(r),this.updateMiniStore();var c=this.props,ue=c.siderCollapsed,z=c.inlineCollapsed,Re=c.onOpenChange;(!r.inlineCollapsed&&z||!r.siderCollapsed&&ue)&&Re([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(r){var c=this.props,ue=this.store,z=this.inlineOpenKeys,Re=ue.getState(),je={};r.mode==="inline"&&c.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in c||((c.inlineCollapsed&&!r.inlineCollapsed||c.siderCollapsed&&!r.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Re.openKeys.concat(),je.openKeys=[]),(!c.inlineCollapsed&&r.inlineCollapsed||!c.siderCollapsed&&r.siderCollapsed)&&(je.openKeys=z,this.inlineOpenKeys=[])),Object.keys(je).length&&ue.setState(je)}},{key:"updateMenuDisplay",value:function(){var r=this.props.collapsedWidth,c=this.store,ue=this.prevOpenKeys,z=this.getInlineCollapsed()&&(r===0||r==="0"||r==="0px");z?(this.prevOpenKeys=c.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ue&&(this.store.setState({openKeys:ue}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var r=this.props.mode,c=this.state.switchingModeFromInline,ue=this.getInlineCollapsed();return c&&ue?"inline":ue?"vertical":r}},{key:"getInlineCollapsed",value:function(){var r=this.props,c=r.inlineCollapsed,ue=r.siderCollapsed;return ue!==void 0?ue:c}},{key:"restoreModeVerticalFromInline",value:function(){var r=this.state.switchingModeFromInline;r&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var r=Object(A.a)({},Object(M.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),c=this.getRealMenuMode();return r.className+=" ".concat(r.prefixCls,"-root"),r.direction==="rtl"&&(r.className+=" ".concat(r.prefixCls,"-rtl")),r=Object(A.a)(Object(A.a)({},r),{},{mode:c,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Xe(this.props,this.state,c)}),delete r.openAnimation,delete r.openTransitionName,K.createElement(a.a,{store:this.store},K.createElement(Ke,Object.assign({},r,{ref:this.setInnerMenu}),this.props.children))}}]),Ce}(K.Component);et.defaultProps={selectable:!0,onClick:S,onSelect:S,onOpenChange:S,onDeselect:S,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:K.createElement("span",null,"\xB7\xB7\xB7")};var at=et,Qe=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(){var F;return Object(L.a)(this,Ce),F=ee.apply(this,arguments),F.onKeyDown=function(r){var c=r.keyCode;return c===he.a.ENTER?(F.onClick(r),!0):void 0},F.onMouseLeave=function(r){var c=F.props,ue=c.eventKey,z=c.onItemHover,Re=c.onMouseLeave;z({key:ue,hover:!1}),Re({key:ue,domEvent:r})},F.onMouseEnter=function(r){var c=F.props,ue=c.eventKey,z=c.onItemHover,Re=c.onMouseEnter;z({key:ue,hover:!0}),Re({key:ue,domEvent:r})},F.onClick=function(r){var c=F.props,ue=c.eventKey,z=c.multiple,Re=c.onClick,je=c.onSelect,B=c.onDeselect,ve=c.isSelected,Se={key:ue,keyPath:[ue],item:Object(ye.a)(F),domEvent:r};Re(Se),z?ve?B(Se):je(Se):ve||je(Se)},F.saveNode=function(r){F.node=r},F}return Object(ke.a)(Ce,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var r=this.props;r.onDestroy&&r.onDestroy(r.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var r,c=Object(A.a)({},this.props),ue=X()(this.getPrefixCls(),c.className,(r={},Object(Q.a)(r,this.getActiveClassName(),!c.disabled&&c.active),Object(Q.a)(r,this.getSelectedClassName(),c.isSelected),Object(Q.a)(r,this.getDisabledClassName(),c.disabled),r)),z=Object(A.a)(Object(A.a)({},c.attribute),{},{title:typeof c.title=="string"?c.title:void 0,className:ue,role:c.role||"menuitem","aria-disabled":c.disabled});c.role==="option"?z=Object(A.a)(Object(A.a)({},z),{},{role:"option","aria-selected":c.isSelected}):(c.role===null||c.role==="none")&&(z.role="none");var Re={onClick:c.disabled?null:this.onClick,onMouseLeave:c.disabled?null:this.onMouseLeave,onMouseEnter:c.disabled?null:this.onMouseEnter},je=Object(A.a)({},c.style);c.mode==="inline"&&(c.direction==="rtl"?je.paddingRight=c.inlineIndent*c.level:je.paddingLeft=c.inlineIndent*c.level),Y.forEach(function(ve){return delete c[ve]}),delete c.direction;var B=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(B=K.createElement(this.props.itemIcon,this.props)),K.createElement("li",Object.assign({},Object(M.default)(c,["onClick","onMouseEnter","onMouseLeave","onSelect"]),z,Re,{style:je,ref:this.saveNode}),c.children,B)}}]),Ce}(K.Component);Qe.isMenuItem=!0,Qe.defaultProps={onSelect:S,onMouseEnter:S,onMouseLeave:S,manualRef:S};var vt=Object(a.b)(function(He,ee){var Ce=He.activeKey,F=He.selectedKeys,r=ee.eventKey,c=ee.subMenuKey;return{active:Ce[c]===r,isSelected:F.indexOf(r)!==-1}})(Qe),ct=vt,jt=function(He){Object(I.a)(Ce,He);var ee=Object(i.a)(Ce);function Ce(){var F;return Object(L.a)(this,Ce),F=ee.apply(this,arguments),F.renderInnerMenuItem=function(r){var c=F.props,ue=c.renderMenuItem,z=c.index;return ue(r,z,F.props.subMenuKey)},F}return Object(ke.a)(Ce,[{key:"render",value:function(){var r=Object(_.a)({},this.props),c=r.className,ue=c===void 0?"":c,z=r.rootPrefixCls,Re="".concat(z,"-item-group-title"),je="".concat(z,"-item-group-list"),B=r.title,ve=r.children;return Y.forEach(function(Se){return delete r[Se]}),delete r.onClick,delete r.direction,K.createElement("li",Object.assign({},r,{className:"".concat(ue," ").concat(z,"-item-group")}),K.createElement("div",{className:Re,title:typeof B=="string"?B:void 0},B),K.createElement("ul",{className:je},K.Children.map(ve,this.renderInnerMenuItem)))}}]),Ce}(K.Component);jt.isMenuItemGroup=!0,jt.defaultProps={disabled:!0};var dt=jt,Je=function(ee){var Ce=ee.className,F=ee.rootPrefixCls,r=ee.style;return K.createElement("li",{className:"".concat(Ce," ").concat(F,"-item-divider"),style:r})};Je.defaultProps={disabled:!0,className:"",style:{}};var st=Je,tt=be.e=at},"55Ip":function(Tt,be,t){"use strict";t.d(be,"a",function(){return se}),t.d(be,"b",function(){return J});var A=t("Ty5D"),L=t("dI71"),ke=t("q1tI"),ye=t.n(ke),I=t("YS25"),i=t("17x9"),K=t.n(i),a=t("wx14"),M=t("zLVn"),_=t("9R94"),Q=function(o){Object(L.a)(d,o);function d(){for(var H,le=arguments.length,ae=new Array(le),T=0;T=0||le.relatedTarget.className.indexOf("".concat(j,"-next"))>=0))return;o.setState({goInputText:""}),u(o.getValidValue())},o.go=function(le){var ae=o.state.goInputText;if(ae==="")return;(le.keyCode===W.ENTER||le.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(I.a)(b,[{key:"getValidValue",value:function(){var d=this.state,k=d.goInputText,H=d.current;return!k||isNaN(k)?H:Number(k)}},{key:"getPageSizeOptions",value:function(){var d=this.props,k=d.pageSize,H=d.pageSizeOptions;return H.some(function(le){return le.toString()===k.toString()})?H:H.concat([k.toString()]).sort(function(le,ae){var T=isNaN(Number(le))?0:Number(le),u=isNaN(Number(ae))?0:Number(ae);return T-u})}},{key:"render",value:function(){var d=this,k=this.props,H=k.pageSize,le=k.locale,ae=k.rootPrefixCls,T=k.changeSize,u=k.quickGo,j=k.goButton,m=k.selectComponentClass,l=k.buildOptionText,S=k.selectPrefixCls,E=k.disabled,w=this.state.goInputText,ge="".concat(ae,"-options"),me=m,Y=null,P=null,h=null;if(!T&&!u)return null;var v=this.getPageSizeOptions();if(T&&me){var N=v.map(function(y,Z){return M.a.createElement(me.Option,{key:Z,value:y.toString()},(l||d.buildOptionText)(y))});Y=M.a.createElement(me,{disabled:E,prefixCls:S,showSearch:!1,className:"".concat(ge,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(H||v[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Z){return Z.parentNode}},N)}return u&&(j&&(h=typeof j=="boolean"?M.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:E,className:"".concat(ge,"-quick-jumper-button")},le.jump_to_confirm):M.a.createElement("span",{onClick:this.go,onKeyUp:this.go},j)),P=M.a.createElement("div",{className:"".concat(ge,"-quick-jumper")},le.jump_to,M.a.createElement("input",{disabled:E,type:"text",value:w,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),le.page,h)),M.a.createElement("li",{className:"".concat(ge)},Y,P)}}]),b}(M.a.Component);R.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=R,X=t("N2Kk");function V(){}function se(pe){return typeof pe=="number"&&isFinite(pe)&&Math.floor(pe)===pe}function re(pe,J,b){return b}function ie(pe,J,b){var o=typeof pe=="undefined"?J.pageSize:pe;return Math.floor((b.total-1)/o)+1}var xe=function(pe){Object(i.a)(b,pe);var J=Object(K.a)(b);function b(o){var d;Object(ye.a)(this,b),d=J.call(this,o),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(ie(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(T,u){var j=d.props.prefixCls,m=T||M.a.createElement("button",{type:"button","aria-label":u,className:"".concat(j,"-item-link")});return typeof T=="function"&&(m=M.a.createElement(T,Object(ke.a)({},d.props))),m},d.savePaginationNode=function(T){d.paginationNode=T},d.isValid=function(T){return se(T)&&T!==d.state.current},d.shouldDisplayQuickJumper=function(){var T=d.props,u=T.showQuickJumper,j=T.pageSize,m=T.total;return m<=j?!1:u},d.handleKeyDown=function(T){(T.keyCode===W.ARROW_UP||T.keyCode===W.ARROW_DOWN)&&T.preventDefault()},d.handleKeyUp=function(T){var u=d.getValidValue(T),j=d.state.currentInputValue;u!==j&&d.setState({currentInputValue:u}),T.keyCode===W.ENTER?d.handleChange(u):T.keyCode===W.ARROW_UP?d.handleChange(u-1):T.keyCode===W.ARROW_DOWN&&d.handleChange(u+1)},d.changePageSize=function(T){var u=d.state.current,j=ie(T,d.state,d.props);u=u>j?j:u,j===0&&(u=d.state.current),typeof T=="number"&&("pageSize"in d.props||d.setState({pageSize:T}),"current"in d.props||d.setState({current:u,currentInputValue:u})),d.props.onShowSizeChange(u,T),"onChange"in d.props&&d.props.onChange&&d.props.onChange(u,T)},d.handleChange=function(T){var u=d.props.disabled,j=T;if(d.isValid(j)&&!u){var m=ie(void 0,d.state,d.props);j>m?j=m:j<1&&(j=1),"current"in d.props||d.setState({current:j,currentInputValue:j});var l=d.state.pageSize;return d.props.onChange(j,l),j}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?j-2:0),l=2;l=H?ae=H:ae=Number(k),ae}},{key:"getShowSizeChanger",value:function(){var d=this.props,k=d.showSizeChanger,H=d.total,le=d.totalBoundaryShowSizeChanger;return typeof k!="undefined"?k:H>le}},{key:"renderPrev",value:function(d){var k=this.props,H=k.prevIcon,le=k.itemRender,ae=le(d,"prev",this.getItemIcon(H,"prev page")),T=!this.hasPrev();return Object(a.isValidElement)(ae)?Object(a.cloneElement)(ae,{disabled:T}):ae}},{key:"renderNext",value:function(d){var k=this.props,H=k.nextIcon,le=k.itemRender,ae=le(d,"next",this.getItemIcon(H,"next page")),T=!this.hasNext();return Object(a.isValidElement)(ae)?Object(a.cloneElement)(ae,{disabled:T}):ae}},{key:"render",value:function(){var d=this,k=this.props,H=k.prefixCls,le=k.className,ae=k.style,T=k.disabled,u=k.hideOnSinglePage,j=k.total,m=k.locale,l=k.showQuickJumper,S=k.showLessItems,E=k.showTitle,w=k.showTotal,ge=k.simple,me=k.itemRender,Y=k.showPrevNextJumpers,P=k.jumpPrevIcon,h=k.jumpNextIcon,v=k.selectComponentClass,N=k.selectPrefixCls,y=k.pageSizeOptions,Z=this.state,n=Z.current,f=Z.pageSize,s=Z.currentInputValue;if(u===!0&&j<=f)return null;var C=ie(void 0,this.state,this.props),$=[],G=null,Oe=null,We=null,Ye=null,ot=null,nt=l&&l.goButton,Ze=S?1:2,xt=n-1>0?n-1:0,q=n+1=Ze*2&&n!==1+2&&($[0]=Object(a.cloneElement)($[0],{className:"".concat(H,"-item-after-jump-prev")}),$.unshift(G)),C-n>=Ze*2&&n!==C-2&&($[$.length-1]=Object(a.cloneElement)($[$.length-1],{className:"".concat(H,"-item-before-jump-next")}),$.push(Oe)),de!==1&&$.unshift(We),we!==C&&$.push(Ye)}var Ke=null;w&&(Ke=M.a.createElement("li",{className:"".concat(H,"-total-text")},w(j,[j===0?0:(n-1)*f+1,n*f>j?j:n*f])));var Te=!this.hasPrev()||!C,Xe=!this.hasNext()||!C;return M.a.createElement("ul",Object(A.a)({className:Q()(H,le,Object(L.a)({},"".concat(H,"-disabled"),T)),style:ae,unselectable:"unselectable",ref:this.savePaginationNode},Ne),Ke,M.a.createElement("li",{title:E?m.prev_page:null,onClick:this.prev,tabIndex:Te?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(H,"-prev"),Object(L.a)({},"".concat(H,"-disabled"),Te)),"aria-disabled":Te},this.renderPrev(xt)),$,M.a.createElement("li",{title:E?m.next_page:null,onClick:this.next,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(H,"-next"),Object(L.a)({},"".concat(H,"-disabled"),Xe)),"aria-disabled":Xe},this.renderNext(q)),M.a.createElement(g,{disabled:T,locale:m,rootPrefixCls:H,selectComponentClass:v,selectPrefixCls:N,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:f,pageSizeOptions:y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:nt}))}}],[{key:"getDerivedStateFromProps",value:function(d,k){var H={};if("current"in d&&(H.current=d.current,d.current!==k.current&&(H.currentInputValue=H.current)),"pageSize"in d&&d.pageSize!==k.pageSize){var le=k.current,ae=ie(d.pageSize,k,d);le=le>ae?ae:le,"current"in d||(H.current=le,H.currentInputValue=le),H.pageSize=d.pageSize}return H}}]),b}(M.a.Component);xe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:V,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:V,locale:X.a,style:{},itemRender:re,totalBoundaryShowSizeChanger:50};var ne=xe},"6RRn":function(Tt,be,t){"use strict";var A=t("wCXF"),L=t("n6Qo");t.d(be,"b",function(){return L.a});var ke=t("IBYe"),ye=t("6eGT"),I=t("hW8S");t.d(be,"a",function(){return I.a}),be.c=A.b},"6eGT":function(Tt,be,t){"use strict";function A(L){return null}be.a=A},"7ixt":function(Tt,be,t){"use strict";t.d(be,"a",function(){return ke});var A={adjustX:1,adjustY:1},L=[0,0],ke={left:{points:["cr","cl"],overflow:A,offset:[-4,0],targetOffset:L},right:{points:["cl","cr"],overflow:A,offset:[4,0],targetOffset:L},top:{points:["bc","tc"],overflow:A,offset:[0,-4],targetOffset:L},bottom:{points:["tc","bc"],overflow:A,offset:[0,4],targetOffset:L},topLeft:{points:["bl","tl"],overflow:A,offset:[0,-4],targetOffset:L},leftTop:{points:["tr","tl"],overflow:A,offset:[-4,0],targetOffset:L},topRight:{points:["br","tr"],overflow:A,offset:[0,-4],targetOffset:L},rightTop:{points:["tl","tr"],overflow:A,offset:[4,0],targetOffset:L},bottomRight:{points:["tr","br"],overflow:A,offset:[0,4],targetOffset:L},rightBottom:{points:["bl","br"],overflow:A,offset:[4,0],targetOffset:L},bottomLeft:{points:["tl","bl"],overflow:A,offset:[0,4],targetOffset:L},leftBottom:{points:["br","bl"],overflow:A,offset:[-4,0],targetOffset:L}},ye=ke},"815F":function(Tt,be,t){"use strict";t.d(be,"e",function(){return K}),t.d(be,"c",function(){return M}),t.d(be,"d",function(){return _}),t.d(be,"a",function(){return he}),t.d(be,"f",function(){return fe}),t.d(be,"b",function(){return W});var A=t("KQm4"),L=t("VTBJ"),ke=t("Ff2n"),ye=t("Zm9Q"),I=t("Kwbf"),i=t("OZM5");function K(R,g){return R!=null?R:g}function a(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function X(V){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(V||[]).forEach(function(re){var ie=re.key,xe=re.children;Object(I.a)(ie!=null,"Tree node must have a certain key: [".concat(se).concat(ie,"]"));var ne=String(ie);Object(I.a)(!g.has(ne)||ie===null||ie===void 0,"Same 'key' exist in the Tree: ".concat(ne)),g.set(ne,!0),X(xe,"".concat(se).concat(ne," > "))})}X(R)}function M(R){function g(X){var V=Object(ye.a)(X);return V.map(function(se){if(!Object(i.i)(se))return Object(I.a)(!se,"Tree/TreeNode can only accept TreeNode as children."),null;var re=se.key,ie=se.props,xe=ie.children,ne=Object(ke.a)(ie,["children"]),pe=Object(L.a)({key:re},ne),J=g(xe);return J.length&&(pe.children=J),pe}).filter(function(se){return se})}return g(R)}function _(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=new Set(g===!0?[]:g),V=[];function se(re){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return re.map(function(xe,ne){var pe=Object(i.h)(ie?ie.pos:"0",ne),J=K(xe.key,pe),b=Object(L.a)(Object(L.a)({},xe),{},{parent:ie,pos:pe,children:null,data:xe,isStart:[].concat(Object(A.a)(ie?ie.isStart:[]),[ne===0]),isEnd:[].concat(Object(A.a)(ie?ie.isEnd:[]),[ne===re.length-1])});return V.push(b),g===!0||X.has(J)?b.children=se(xe.children||[],b):b.children=[],b})}return se(R),V}function Q(R,g,X){var V;X?typeof X=="string"?V=function(ie){return ie[X]}:typeof X=="function"&&(V=function(ie){return X(ie)}):V=function(ie,xe){return K(ie.key,xe)};function se(re,ie,xe){var ne=re?re.children:R,pe=re?Object(i.h)(xe.pos,ie):"0";if(re){var J=V(re,pe),b={node:re,index:ie,pos:pe,key:J,parentPos:xe.node?xe.pos:null,level:xe.level+1};g(b)}ne&&ne.forEach(function(o,d){se(o,d,{node:re,pos:pe,level:xe?xe.level+1:-1})})}se(null)}function he(R){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=g.initWrapper,V=g.processEntity,se=g.onProcessFinished,re=arguments.length>2?arguments[2]:void 0,ie={},xe={},ne={posEntities:ie,keyEntities:xe};return X&&(ne=X(ne)||ne),Q(R,function(pe){var J=pe.node,b=pe.index,o=pe.pos,d=pe.key,k=pe.parentPos,H=pe.level,le={node:J,index:b,key:d,pos:o,level:H},ae=K(d,o);ie[o]=le,xe[ae]=le,le.parent=ie[k],le.parent&&(le.parent.children=le.parent.children||[],le.parent.children.push(le)),V&&V(le,ne)},re),se&&se(ne),ne}function fe(R,g){var X=g.expandedKeys,V=g.selectedKeys,se=g.loadedKeys,re=g.loadingKeys,ie=g.checkedKeys,xe=g.halfCheckedKeys,ne=g.dragOverNodeKey,pe=g.dropPosition,J=g.keyEntities,b=J[R],o={eventKey:R,expanded:X.indexOf(R)!==-1,selected:V.indexOf(R)!==-1,loaded:se.indexOf(R)!==-1,loading:re.indexOf(R)!==-1,checked:ie.indexOf(R)!==-1,halfChecked:xe.indexOf(R)!==-1,pos:String(b?b.pos:""),dragOver:ne===R&&pe===0,dragOverGapTop:ne===R&&pe===-1,dragOverGapBottom:ne===R&&pe===1};return o}function W(R){var g=R.data,X=R.expanded,V=R.selected,se=R.checked,re=R.loaded,ie=R.loading,xe=R.halfChecked,ne=R.dragOver,pe=R.dragOverGapTop,J=R.dragOverGapBottom,b=R.pos,o=R.active,d=Object(L.a)(Object(L.a)({},g),{},{expanded:X,selected:V,checked:se,loaded:re,loading:ie,halfChecked:xe,dragOver:ne,dragOverGapTop:pe,dragOverGapBottom:J,pos:b,active:o});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(I.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),d}},"8Jsi":function(Tt,be,t){"use strict";t.d(be,"d",function(){return k}),t.d(be,"a",function(){return s}),t.d(be,"b",function(){return $}),t.d(be,"c",function(){return C});var A=t("1OyB"),L=t("vuIU"),ke=t("Ji7U"),ye=t("LK+K"),I=t("KQm4"),i=t("U8pU"),K=t("ODXe"),a=t("VTBJ"),M=t("q1tI"),_=t("qNPg"),Q=t("2Qr1"),he=t("815F"),fe=t("NvD2"),W=t("wPlo"),R=t("6cGi"),g=t("Kwbf"),X=t("4IlW"),V=t("YrtM"),se=t("fAei"),re=M.createContext(null);function ie(q,Ne){if(!q)return!0;var Ve=q.data,Ie=Ve.disabled,qe=Ve.disableCheckbox;switch(Ne){case"select":return Ie;case"checkbox":return Ie||qe}return!1}function xe(q,Ne){var Ve=M.useCallback(function(qe){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",oe=arguments.length>2?arguments[2]:void 0,de=q.get(qe);return!oe&&ie(de,O)?null:de},[q]),Ie=M.useCallback(function(qe){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",oe=arguments.length>2?arguments[2]:void 0,de=Ne.get(qe);return!oe&&ie(de,O)?null:de},[Ne]);return[Ve,Ie]}function ne(q){return M.useMemo(function(){var Ne=new Map,Ve=new Map;return q.forEach(function(Ie){Ne.set(Ie.key,Ie),Ve.set(Ie.data.value,Ie)}),[Ne,Ve]},[q])}var pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},J=function(Ne,Ve){var Ie=Ne.prefixCls,qe=Ne.height,O=Ne.itemHeight,oe=Ne.virtual,de=Ne.options,we=Ne.flattenOptions,Pe=Ne.multiple,Ae=Ne.searchValue,Ke=Ne.onSelect,Te=Ne.onToggleOpen,Xe=Ne.open,et=Ne.notFoundContent,at=Ne.onMouseEnter,Qe=M.useContext(re),vt=Qe.checkable,ct=Qe.checkedKeys,jt=Qe.halfCheckedKeys,dt=Qe.treeExpandedKeys,Je=Qe.treeDefaultExpandAll,st=Qe.treeDefaultExpandedKeys,tt=Qe.onTreeExpand,He=Qe.treeIcon,ee=Qe.showTreeIcon,Ce=Qe.switcherIcon,F=Qe.treeLine,r=Qe.treeNodeFilterProp,c=Qe.loadData,ue=Qe.treeLoadedKeys,z=Qe.treeMotion,Re=Qe.onTreeLoad,je=M.useRef(),B=Object(V.a)(function(){return de},[Xe,de],function(on,$t){return $t[0]&&on[1]!==$t[1]}),ve=ne(we),Se=Object(K.a)(ve,2),rt=Se[0],Be=Se[1],Dt=xe(rt,Be),yt=Object(K.a)(Dt,2),Ht=yt[0],Ut=yt[1],It=M.useMemo(function(){return ct.map(function(on){var $t=Ut(on);return $t?$t.key:null})},[ct]),Yt=M.useMemo(function(){return vt?{checked:It,halfChecked:jt}:null},[It,jt,vt]);M.useEffect(function(){if(Xe&&!Pe&&It.length){var on;(on=je.current)===null||on===void 0||on.scrollTo({key:It[0]})}},[Xe]);var zt=String(Ae).toLowerCase(),On=function($t){return zt?String($t[r]).toLowerCase().includes(zt):!1},Vt=M.useState(st),Xt=Object(K.a)(Vt,2),wn=Xt[0],gn=Xt[1],Wn=M.useState(null),mn=Object(K.a)(Wn,2),En=mn[0],qt=mn[1],sn=M.useMemo(function(){return dt?Object(I.a)(dt):Ae?En:wn},[wn,En,zt,dt]);M.useEffect(function(){Ae&&qt(we.map(function(on){return on.key}))},[Ae]);var nn=function($t){gn($t),qt($t),tt&&tt($t)},hn=function($t){$t.preventDefault()},an=function($t,Gt){var mt=Gt.node.key,Ct=Ht(mt,vt?"checkbox":"select");Ct!==null&&Ke(Ct.data.value,{selected:!ct.includes(Ct.data.value)}),Pe||Te(!1)},en=M.useState(null),Pn=Object(K.a)(en,2),pn=Pn[0],sa=Pn[1],kn=Ht(pn);if(M.useImperativeHandle(Ve,function(){return{onKeyDown:function($t){var Gt,mt=$t.which;switch(mt){case X.a.UP:case X.a.DOWN:case X.a.LEFT:case X.a.RIGHT:(Gt=je.current)===null||Gt===void 0||Gt.onKeyDown($t);break;case X.a.ENTER:{kn!==null&&an(null,{node:{key:pn},selected:!ct.includes(kn.data.value)});break}case X.a.ESC:Te(!1)}},onKeyUp:function(){}}}),B.length===0)return M.createElement("div",{role:"listbox",className:"".concat(Ie,"-empty"),onMouseDown:hn},et);var Yn={};return ue&&(Yn.loadedKeys=ue),sn&&(Yn.expandedKeys=sn),M.createElement("div",{onMouseDown:hn,onMouseEnter:at},kn&&Xe&&M.createElement("span",{style:pe,"aria-live":"assertive"},kn.data.value),M.createElement(se.b,Object.assign({ref:je,focusable:!1,prefixCls:"".concat(Ie,"-tree"),treeData:B,height:qe,itemHeight:O,virtual:oe,multiple:Pe,icon:He,showIcon:ee,switcherIcon:Ce,showLine:F,loadData:Ae?null:c,motion:z,checkable:vt,checkStrictly:!0,checkedKeys:Yt,selectedKeys:vt?[]:It,defaultExpandAll:Je},Yn,{onActiveChange:sa,onSelect:an,onCheck:an,onExpand:nn,onLoad:Re,filterTreeNode:On})))},b=M.forwardRef(J);b.displayName="OptionList";var o=b,d=function(){return null},k=d,H=t("Ff2n"),le=t("Zm9Q");function ae(q){return Object(le.a)(q).map(function(Ne){if(!M.isValidElement(Ne)||!Ne.type)return null;var Ve=Ne.key,Ie=Ne.props,qe=Ie.children,O=Ie.value,oe=Object(H.a)(Ie,["children","value"]),de=Object(a.a)({key:Ve,value:O},oe),we=ae(qe);return we.length&&(de.children=we),de}).filter(function(Ne){return Ne})}function T(q){if(!q)return q;var Ne=Object(a.a)({},q);return"props"in Ne||Object.defineProperty(Ne,"props",{get:function(){return Object(g.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ne}}),Ne}function u(q,Ne,Ve,Ie,qe){var O=null,oe=null;function de(){function we(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Pe.map(function(Te,Xe){var et="".concat(Ae,"-").concat(Xe),at=Ve.includes(Te.value),Qe=we(Te.children||[],et,at),vt=M.createElement(k,Object.assign({},Te),Qe.map(function(jt){return jt.node}));if(Ne===Te.value&&(O=vt),at){var ct={pos:et,node:vt,children:Qe};return Ke||oe.push(ct),ct}return null}).filter(function(Te){return Te})}oe||(oe=[],we(Ie),oe.sort(function(Pe,Ae){var Ke=Pe.node.props.value,Te=Ae.node.props.value,Xe=Ve.indexOf(Ke),et=Ve.indexOf(Te);return Xe-et}))}Object.defineProperty(q,"triggerNode",{get:function(){return Object(g.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),de(),O}}),Object.defineProperty(q,"allCheckedNodes",{get:function(){return Object(g.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),de(),qe?oe:oe.map(function(Pe){var Ae=Pe.node;return Ae})}})}function j(q){return Array.isArray(q)?q:q!==void 0?[q]:[]}function m(q,Ne){var Ve=new Map;return Ne.forEach(function(Ie){var qe=Ie.data;Ve.set(qe.value,qe)}),q.map(function(Ie){return T(Ve.get(Ie))})}function l(q,Ne){var Ve=m([q],Ne)[0];return Ve?Ve.disabled:!1}function S(q){return q.disabled||q.disableCheckbox||q.checkable===!1}function E(q){for(var Ne=q.parent,Ve=0,Ie=Ne;Ie;)Ie=Ie.parent,Ve+=1;return Ve}function w(q){function Ne(Ie){return(Ie||[]).map(function(qe){var O=qe.value,oe=qe.key,de=qe.children,we=Object(a.a)(Object(a.a)({},qe),{},{key:"key"in qe?oe:O});return de&&(we.children=Ne(de)),we})}var Ve=Object(he.d)(Ne(q),!0);return Ve.map(function(Ie){return{key:Ie.data.key,data:Ie.data,level:E(Ie)}})}function ge(q){return function(Ne,Ve){var Ie=Ve[q];return String(Ie).toLowerCase().includes(String(Ne).toLowerCase())}}function me(q,Ne,Ve){var Ie=Ve.optionFilterProp,qe=Ve.filterOption;if(qe===!1)return Ne;var O;typeof qe=="function"?O=qe:O=ge(Ie);function oe(de){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return de.map(function(Pe){var Ae=Pe.children,Ke=we||O(q,T(Pe)),Te=oe(Ae||[],Ke);return Ke||Te.length?Object(a.a)(Object(a.a)({},Pe),{},{children:Te}):null}).filter(function(Pe){return Pe})}return oe(Ne)}function Y(q,Ne,Ve,Ie){var qe=new Map;return j(Ne).forEach(function(O){O&&Object(i.a)(O)==="object"&&"value"in O&&qe.set(O.value,O)}),q.map(function(O){var oe={value:O},de=Ve(O,"select",!0),we=de?Ie(de.data):O;if(qe.has(O)){var Pe=qe.get(O);oe.label="label"in Pe?Pe.label:we,"halfChecked"in Pe&&(oe.halfChecked=Pe.halfChecked)}else oe.label=we;return oe})}function P(q,Ne){var Ve=new Set(q);return Ve.add(Ne),Array.from(Ve)}function h(q,Ne){var Ve=new Set(q);return Ve.delete(Ne),Array.from(Ve)}function v(q){var Ne=q.searchPlaceholder,Ve=q.treeCheckStrictly,Ie=q.treeCheckable,qe=q.labelInValue,O=q.value,oe=q.multiple;Object(g.a)(!Ne,"`searchPlaceholder` has been removed."),Ve&&qe===!1&&Object(g.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(qe||Ve)&&Object(g.a)(j(O).every(function(de){return de&&Object(i.a)(de)==="object"&&"value"in de}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ve||oe||Ie?Object(g.a)(!O||Array.isArray(O),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(g.a)(!Array.isArray(O),"`value` should not be array when `TreeSelect` is single mode.")}var N=v,y=10;function Z(q,Ne){var Ve=Ne.id,Ie=Ne.pId,qe=Ne.rootPId,O={},oe=[],de=q.map(function(we){var Pe=Object(a.a)({},we),Ae=Pe[Ve];return O[Ae]=Pe,Pe.key=Pe.key||Ae,Pe});return de.forEach(function(we){var Pe=we[Ie],Ae=O[Pe];Ae&&(Ae.children=Ae.children||[],Ae.children.push(we)),(Pe===qe||!Ae&&qe===null)&&oe.push(we)}),oe}function n(q,Ne){var Ve=0,Ie=new Set;function qe(O){return(O||[]).map(function(oe){var de=oe.key,we=oe.value,Pe=oe.children,Ae=Object(H.a)(oe,["key","value","children"]),Ke="value"in oe?we:de,Te=Object(a.a)(Object(a.a)({},Ae),{},{key:de!=null?de:Ke,value:Ke,title:Ne(oe)});return"children"in oe&&(Te.children=qe(Pe)),Te})}return qe(q)}function f(q,Ne,Ve){var Ie=Ve.getLabelProp,qe=Ve.simpleMode,O=M.useRef({});return q?(O.current.formatTreeData=O.current.treeData===q?O.current.formatTreeData:n(qe?Z(q,Object(a.a)({id:"id",pId:"pId",rootPId:null},qe!==!0?qe:{})):q,Ie),O.current.treeData=q):O.current.formatTreeData=O.current.children===Ne?O.current.formatTreeData:n(ae(Ne),Ie),O.current.formatTreeData}var s="SHOW_ALL",C="SHOW_PARENT",$="SHOW_CHILD";function G(q,Ne,Ve){var Ie=new Set(q);return Ne===$?q.filter(function(qe){var O=Ve[qe];return!(O&&O.children&&O.children.every(function(oe){var de=oe.node;return S(de)||Ie.has(de.key)}))}):Ne===C?q.filter(function(qe){var O=Ve[qe],oe=O?O.parent:null;return!(oe&&!S(oe.node)&&Ie.has(oe.node.key))}):q}function Oe(q,Ne){var Ve=Ne.value,Ie=Ne.getEntityByValue,qe=Ne.getEntityByKey,O=Ne.treeConduction,oe=Ne.showCheckedStrategy,de=Ne.conductKeyEntities,we=Ne.getLabelProp;return M.useMemo(function(){var Pe=q;if(O){var Ae=G(q.map(function(Ke){var Te=Ie(Ke);return Te?Te.key:Ke}),oe,de);Pe=Ae.map(function(Ke){var Te=qe(Ke);return Te?Te.data.value:Ke})}return Y(Pe,Ve,Ie,we)},[q,Ve,O,oe,Ie])}var We=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ye=Object(_.a)({prefixCls:"rc-tree-select",components:{optionList:o},convertChildrenToData:function(){return null},flattenOptions:w,getLabeledValue:Q.e,filterOptions:me,isValueDisabled:l,findValueOption:m,omitDOMProps:function(Ne){var Ve=Object(a.a)({},Ne);return We.forEach(function(Ie){delete Ve[Ie]}),Ve}});Ye.displayName="Select";var ot=M.forwardRef(function(q,Ne){var Ve=q.multiple,Ie=q.treeCheckable,qe=q.treeCheckStrictly,O=q.showCheckedStrategy,oe=O===void 0?"SHOW_CHILD":O,de=q.labelInValue,we=q.loadData,Pe=q.treeLoadedKeys,Ae=q.treeNodeFilterProp,Ke=Ae===void 0?"value":Ae,Te=q.treeNodeLabelProp,Xe=q.treeDataSimpleMode,et=q.treeData,at=q.treeExpandedKeys,Qe=q.treeDefaultExpandedKeys,vt=q.treeDefaultExpandAll,ct=q.children,jt=q.treeIcon,dt=q.showTreeIcon,Je=q.switcherIcon,st=q.treeLine,tt=q.treeMotion,He=q.filterTreeNode,ee=q.dropdownPopupAlign,Ce=q.onChange,F=q.onTreeExpand,r=q.onTreeLoad,c=q.onDropdownVisibleChange,ue=q.onSelect,z=q.onDeselect,Re=Ie||qe,je=Ve||Re,B=Ie&&!qe,ve=qe||de,Se=M.useRef(null);M.useImperativeHandle(Ne,function(){return{focus:Se.current.focus,blur:Se.current.blur}});var rt=function(mt){return et&&mt.label||mt.title},Be=function(mt){return Te?mt[Te]:rt(mt)},Dt=f(et,ct,{getLabelProp:rt,simpleMode:Xe}),yt=Object(M.useMemo)(function(){return w(Dt)},[Dt]),Ht=ne(yt),Ut=Object(K.a)(Ht,2),It=Ut[0],Yt=Ut[1],zt=xe(It,Yt),On=Object(K.a)(zt,2),Vt=On[0],Xt=On[1],wn=Object(M.useMemo)(function(){return B?Object(he.a)(Dt):{keyEntities:null}},[Dt,Ie,qe]),gn=wn.keyEntities,Wn=Object(R.a)(q.defaultValue,{value:q.value}),mn=Object(K.a)(Wn,2),En=mn[0],qt=mn[1],sn=function(mt){var Ct=[],gt=[];return mt.forEach(function(ht){Xt(ht)?gt.push(ht):Ct.push(ht)}),{missingRawValues:Ct,existRawValues:gt}},nn=Object(M.useMemo)(function(){var Gt=[],mt=[];if(j(En).forEach(function(Qt){if(Qt&&Object(i.a)(Qt)==="object"&&"value"in Qt)if(Qt.halfChecked&&qe){var An=Xt(Qt.value);Gt.push(An?An.key:Qt.value)}else mt.push(Qt.value);else mt.push(Qt)}),B){var Ct=sn(mt),gt=Ct.missingRawValues,ht=Ct.existRawValues,Nt=ht.map(function(Qt){return Xt(Qt).key}),Wt=Object(fe.a)(Nt,!0,gn),un=Wt.checkedKeys,St=Wt.halfCheckedKeys;return[[].concat(Object(I.a)(gt),Object(I.a)(un.map(function(Qt){return Vt(Qt).data.value}))),St]}return[mt,Gt]},[En,je,ve,Ie,qe]),hn=Object(K.a)(nn,2),an=hn[0],en=hn[1],Pn=Oe(an,{treeConduction:B,value:En,showCheckedStrategy:oe,conductKeyEntities:gn,getEntityByValue:Xt,getEntityByKey:Vt,getLabelProp:Be}),pn=function(mt,Ct,gt){if(qt(je?mt:mt[0]),Ce){var ht=mt;if(B&&oe!=="SHOW_ALL"){var Nt=mt.map(function(Un){var In=Xt(Un);return In?In.key:Un}),Wt=G(Nt,oe,gn);ht=Wt.map(function(Un){var In=Vt(Un);return In?In.data.value:Un})}var un=Ct||{triggerValue:void 0,selected:void 0},St=un.triggerValue,Qt=un.selected,An=ve?Y(ht,En,Xt,Be):ht;if(qe){var ha=en.map(function(Un){var In=Vt(Un);return In?In.data.value:Un}).filter(function(Un){return!ht.includes(Un)});An=[].concat(Object(I.a)(An),Object(I.a)(Y(ha,En,Xt,Be)))}var Mn={preValue:Pn,triggerValue:St},Na=!0;(qe||gt==="selection"&&!Qt)&&(Na=!1),u(Mn,St,mt,Dt,Na),Re?Mn.checked=Qt:Mn.selected=Qt,Ce(je?An:An[0],ve?null:ht.map(function(Un){var In=Xt(Un);return In?Be(In.data):null}),Mn)}},sa=function(mt,Ct,gt){var ht=mt;if(!je)pn([mt],{selected:!0,triggerValue:mt},gt);else{var Nt=P(an,mt);if(B){var Wt=sn(Nt),un=Wt.missingRawValues,St=Wt.existRawValues,Qt=St.map(function(Mn){return Xt(Mn).key}),An=Object(fe.a)(Qt,!0,gn),ha=An.checkedKeys;Nt=[].concat(Object(I.a)(un),Object(I.a)(ha.map(function(Mn){return Vt(Mn).data.value})))}pn(Nt,{selected:!0,triggerValue:mt},gt)}ue&&ue(ht,Ct)},kn=function(mt,Ct,gt){var ht=mt,Nt=h(an,mt);if(B){var Wt=sn(Nt),un=Wt.missingRawValues,St=Wt.existRawValues,Qt=St.map(function(Mn){return Xt(Mn).key}),An=Object(fe.a)(Qt,{checked:!1,halfCheckedKeys:en},gn),ha=An.checkedKeys;Nt=[].concat(Object(I.a)(un),Object(I.a)(ha.map(function(Mn){return Vt(Mn).data.value})))}pn(Nt,{selected:!1,triggerValue:mt},gt),z&&z(ht,Ct)},Yn=function(){pn([],null,"clear")},on=M.useCallback(function(Gt){if(c){var mt={};Object.defineProperty(mt,"documentClickClose",{get:function(){return Object(g.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),c(Gt,mt)}},[c]),$t={optionLabelProp:null,optionFilterProp:Ke,dropdownAlign:ee,internalProps:{mark:W.a,onClear:Yn,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:sa,onRawDeselect:kn}};return"filterTreeNode"in q&&($t.filterOption=He),M.createElement(re.Provider,{value:{checkable:Re,loadData:we,treeLoadedKeys:Pe,onTreeLoad:r,checkedKeys:an,halfCheckedKeys:en,treeDefaultExpandAll:vt,treeExpandedKeys:at,treeDefaultExpandedKeys:Qe,onTreeExpand:F,treeIcon:jt,treeMotion:tt,showTreeIcon:dt,switcherIcon:Je,treeLine:st,treeNodeFilterProp:Ke}},M.createElement(Ye,Object.assign({ref:Se,mode:je?"multiple":null},q,$t,{value:Pn,labelInValue:!0,options:Dt,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:on})))}),nt=function(q){Object(ke.a)(Ve,q);var Ne=Object(ye.a)(Ve);function Ve(){var Ie;return Object(A.a)(this,Ve),Ie=Ne.apply(this,arguments),Ie.selectRef=M.createRef(),Ie.focus=function(){Ie.selectRef.current.focus()},Ie.blur=function(){Ie.selectRef.current.blur()},Ie}return Object(L.a)(Ve,[{key:"render",value:function(){return M.createElement(ot,Object.assign({ref:this.selectRef},this.props))}}]),Ve}(M.Component);nt.TreeNode=k,nt.SHOW_ALL=s,nt.SHOW_PARENT=C,nt.SHOW_CHILD=$;var Ze=nt,xt=be.e=Ze},BU3w:function(Tt,be,t){"use strict";t.d(be,"a",function(){return i});var A=t("MNnm"),L="rc-util-key";function ke(K){if(K.attachTo)return K.attachTo;var a=document.querySelector("head");return a||document.body}function ye(K){var a,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(A.a)())return null;var _=document.createElement("style");if((a=M.csp)===null||a===void 0?void 0:a.nonce){var Q;_.nonce=(Q=M.csp)===null||Q===void 0?void 0:Q.nonce}_.innerHTML=K;var he=ke(M),fe=he.firstChild;return M.prepend&&he.prepend?he.prepend(_):M.prepend&&fe?he.insertBefore(_,fe):he.appendChild(_),_}var I=new Map;function i(K,a){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=ke(M);if(!I.has(_)){var Q=ye("",M),he=Q.parentNode;I.set(_,he),he.removeChild(Q)}var fe=Array.from(I.get(_).children).find(function(V){return V.tagName==="STYLE"&&V[L]===a});if(fe){var W,R;if(((W=M.csp)===null||W===void 0?void 0:W.nonce)&&fe.nonce!==((R=M.csp)===null||R===void 0?void 0:R.nonce)){var g;fe.nonce=(g=M.csp)===null||g===void 0?void 0:g.nonce}return fe.innerHTML!==K&&(fe.innerHTML=K),fe}var X=ye(K,M);return X[L]=a,X}},BdwD:function(Tt,be,t){"use strict";var A=t("+L6B"),L=t("2/Rp"),ke=t("0Owb"),ye=t("k1fw"),I=t("q1tI"),i=t.n(I),K=t("FOrL"),a=t.n(K),M=function(Q){var he=Q.buttonProps,fe=he===void 0?{}:he,W=Q.styles,R=W===void 0?{}:W,g=Q.customText,X=Q.ButtonText,V=Q.ButtonClick,se=Q.Buttonclass,re=Q.ButtonTwo;return i.a.createElement("section",{className:"tc animated fadeIn",style:Object(ye.a)(Object(ye.a)({},{color:"#999",margin:"200px auto"}),R)},i.a.createElement("img",{src:a.a}),i.a.createElement("p",{className:"mt20 font14"},g||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),X&&i.a.createElement(L.a,Object(ke.a)({className:se,onClick:V},fe),X),re&&re)};be.a=M},FOrL:function(Tt,be,t){Tt.exports=t.p+"static/nodata.a6b3f948.png"},GfqC:function(Tt,be,t){"use strict";var A=t("q1tI"),L=t.n(A),ke=t("TSYQ"),ye=t.n(ke);function I(m,l){var S="cannot "+m.method+" "+m.action+" "+l.status+"'",E=new Error(S);return E.status=l.status,E.method=m.method,E.url=m.action,E}function i(m){var l=m.responseText||m.response;if(!l)return l;try{return JSON.parse(l)}catch(S){return l}}function K(m){var l=new XMLHttpRequest;m.onProgress&&l.upload&&(l.upload.onprogress=function(ge){ge.total>0&&(ge.percent=ge.loaded/ge.total*100),m.onProgress(ge)});var S=new FormData;m.data&&Object.keys(m.data).forEach(function(w){var ge=m.data[w];if(Array.isArray(ge)){ge.forEach(function(me){S.append(w+"[]",me)});return}S.append(w,m.data[w])}),m.file instanceof Blob?S.append(m.filename,m.file,m.file.name):S.append(m.filename,m.file),l.onerror=function(ge){m.onError(ge)},l.onload=function(){return l.status<200||l.status>=300?m.onError(I(m,l),i(l)):m.onSuccess(i(l),l)},l.open(m.method,m.action,!0),m.withCredentials&&"withCredentials"in l&&(l.withCredentials=!0);var E=m.headers||{};return E["X-Requested-With"]!==null&&l.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(E).forEach(function(w){E[w]!==null&&l.setRequestHeader(w,E[w])}),l.send(S),{abort:function(){l.abort()}}}var a=+new Date,M=0;function _(){return"rc-upload-"+a+"-"+ ++M}function Q(m,l){return m.indexOf(l,m.length-l.length)!==-1}var he=function(m,l){if(m&&l){var S=Array.isArray(l)?l:l.split(","),E=m.name||"",w=m.type||"",ge=w.replace(/\/.*$/,"");return S.some(function(me){var Y=me.trim();return Y.charAt(0)==="."?Q(E.toLowerCase(),Y.toLowerCase()):/\/\*$/.test(Y)?ge===Y.replace(/\/.*$/,""):w===Y})}return!0};function fe(m,l){var S=m.createReader(),E=[];function w(){S.readEntries(function(ge){var me=Array.prototype.slice.apply(ge);E=E.concat(me);var Y=!me.length;Y?l(E):w()})}w()}var W=function(l,S,E){var w=function ge(me,Y){Y=Y||"",me.isFile?me.file(function(P){E(P)&&(me.fullPath&&!P.webkitRelativePath&&(Object.defineProperties(P,{webkitRelativePath:{writable:!0}}),P.webkitRelativePath=me.fullPath.replace(/^\//,""),Object.defineProperties(P,{webkitRelativePath:{writable:!1}})),S([P]))}):me.isDirectory&&fe(me,function(P){P.forEach(function(h){ge(h,""+Y+me.name+"/")})})};l.forEach(function(ge){w(ge.webkitGetAsEntry())})},R=W,g=Object.assign||function(m){for(var l=1;l=0)continue;if(!Object.prototype.hasOwnProperty.call(m,E))continue;S[E]=m[E]}return S}function ie(m,l){if(!(m instanceof l))throw new TypeError("Cannot call a class as a function")}function xe(m,l){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:m}function ne(m,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);m.prototype=Object.create(l&&l.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(m,l):m.__proto__=l)}var pe=function(l){return Object.keys(l).reduce(function(S,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-"||E==="role")&&(S[E]=l[E]),S},{})},J=function(m){ne(l,m);function l(){var S,E,w,ge;ie(this,l);for(var me=arguments.length,Y=Array(me),P=0;P1&&arguments[1]!==void 0?arguments[1]:1,Xe=Ze.length,et=0;et1&&arguments[1]!==void 0?arguments[1]:!1;return Object(pe.a)(S).map(function(w,ge){if(!I.isValidElement(w)||!w.type)return null;var me=w.type.isSelectOptGroup,Y=w.key,P=w.props,h=P.children,v=Object(K.a)(P,["children"]);return E||!me?J(w):Object(ne.a)(Object(ne.a)({key:"__RC_SELECT_GRP__".concat(Y===null?ge:Y,"__"),label:Y},v),{},{options:b(h)})}).filter(function(w){return w})}var o=t("2Qr1"),d=t("qNPg"),k=t("U8pU"),H=t("Kwbf"),le=t("WKfj");function ae(S){var E=S.mode,w=S.options,ge=S.children,me=S.backfill,Y=S.allowClear,P=S.placeholder,h=S.getInputElement,v=S.showSearch,N=S.onSearch,y=S.defaultOpen,Z=S.autoFocus,n=S.labelInValue,f=S.value,s=S.inputValue,C=S.optionLabelProp,$=E==="multiple"||E==="tags",G=v!==void 0?v:$||E==="combobox",Oe=w||b(ge);if(Object(H.a)(E!=="tags"||Oe.every(function(nt){return!nt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),E==="tags"||E==="combobox"){var We=Oe.some(function(nt){return nt.options?nt.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in nt?nt.value:nt.key)=="number"});Object(H.a)(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(H.a)(E!=="combobox"||!C,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(H.a)(E==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(H.a)(E==="combobox"||!h,"`getInputElement` only work with `combobox` mode."),Object(H.b)(E!=="combobox"||!h||!Y||!P,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),N&&!G&&E!=="combobox"&&E!=="tags"&&Object(H.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(H.b)(!y||Z,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),f!=null){var Ye=Object(le.d)(f);Object(H.a)(!n||Ye.every(function(nt){return Object(k.a)(nt)==="object"&&("key"in nt||"value"in nt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(H.a)(!$||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(ge){var ot=null;Object(pe.a)(ge).some(function(nt){if(!I.isValidElement(nt)||!nt.type)return!1;var Ze=nt.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var xt=Object(pe.a)(nt.props.children).every(function(q){return!I.isValidElement(q)||!nt.type||q.type.isSelectOption?!0:(ot=q.type,!1)});return!xt}return ot=Ze,!0}),ot&&Object(H.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ot.displayName||ot.name||ot,"`.")),Object(H.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var T=ae,u=Object(d.a)({prefixCls:"rc-select",components:{optionList:V},convertChildrenToData:b,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:T,fillOptionsWithMissingValue:o.a}),j=function(S){Object(ke.a)(w,S);var E=Object(ye.a)(w);function w(){var ge;return Object(A.a)(this,w),ge=E.apply(this,arguments),ge.selectRef=I.createRef(),ge.focus=function(){ge.selectRef.current.focus()},ge.blur=function(){ge.selectRef.current.blur()},ge}return Object(L.a)(w,[{key:"render",value:function(){return I.createElement(u,Object.assign({ref:this.selectRef},this.props))}}]),w}(I.Component);j.Option=re,j.OptGroup=xe;var m=j,l=be.c=m},NvD2:function(Tt,be,t){"use strict";t.d(be,"a",function(){return i});var A=t("Kwbf");function L(K,a){var M=new Set;return K.forEach(function(_){a.has(_)||M.add(_)}),M}function ke(K){var a=K||{},M=a.disabled,_=a.disableCheckbox,Q=a.checkable;return!!(M||_)||Q===!1}function ye(K,a,M,_){for(var Q=new Set(K),he=new Set,fe=0;fe<=M;fe+=1){var W=a.get(fe)||new Set;W.forEach(function(V){var se=V.key,re=V.node,ie=V.children,xe=ie===void 0?[]:ie;Q.has(se)&&!_(re)&&xe.filter(function(ne){return!_(ne.node)}).forEach(function(ne){Q.add(ne.key)})})}for(var R=new Set,g=M;g>=0;g-=1){var X=a.get(g)||new Set;X.forEach(function(V){var se=V.parent,re=V.node;if(_(re)||!V.parent||R.has(V.parent.key))return;if(_(V.parent.node)){R.add(se.key);return}var ie=!0,xe=!1;(se.children||[]).filter(function(ne){return!_(ne.node)}).forEach(function(ne){var pe=ne.key,J=Q.has(pe);ie&&!J&&(ie=!1),!xe&&(J||he.has(pe))&&(xe=!0)}),ie&&Q.add(se.key),xe&&he.add(se.key),R.add(se.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(L(he,Q))}}function I(K,a,M,_,Q){for(var he=new Set(K),fe=new Set(a),W=0;W<=_;W+=1){var R=M.get(W)||new Set;R.forEach(function(se){var re=se.key,ie=se.node,xe=se.children,ne=xe===void 0?[]:xe;!he.has(re)&&!fe.has(re)&&!Q(ie)&&ne.filter(function(pe){return!Q(pe.node)}).forEach(function(pe){he.delete(pe.key)})})}fe=new Set;for(var g=new Set,X=_;X>=0;X-=1){var V=M.get(X)||new Set;V.forEach(function(se){var re=se.parent,ie=se.node;if(Q(ie)||!se.parent||g.has(se.parent.key))return;if(Q(se.parent.node)){g.add(re.key);return}var xe=!0,ne=!1;(re.children||[]).filter(function(pe){return!Q(pe.node)}).forEach(function(pe){var J=pe.key,b=he.has(J);xe&&!b&&(xe=!1),!ne&&(b||fe.has(J))&&(ne=!0)}),xe||he.delete(re.key),ne&&fe.add(re.key),g.add(re.key)})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(L(fe,he))}}function i(K,a,M,_){var Q=[],he;_?he=_:he=ke;var fe=new Set(K.filter(function(X){var V=!!M[X];return V||Q.push(X),V})),W=new Map,R=0;Object.keys(M).forEach(function(X){var V=M[X],se=V.level,re=W.get(se);re||(re=new Set,W.set(se,re)),re.add(V),R=Math.max(R,se)}),Object(A.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(X){return"'".concat(X,"'")}).join(", ")));var g;return a===!0?g=ye(fe,W,R,he):g=I(fe,a.halfCheckedKeys,W,R,he),g}},OLES:function(Tt,be,t){"use strict";var A=t("U8pU"),L=t("VTBJ"),ke=t("Ff2n"),ye=t("q1tI"),I=t("uciX"),i=t("7ixt"),K=function(fe){var W=fe.overlay,R=fe.prefixCls,g=fe.id,X=fe.overlayInnerStyle;return ye.createElement("div",{className:"".concat(R,"-inner"),id:g,role:"tooltip",style:X},typeof W=="function"?W():W)},a=K,M=function(fe,W){var R=fe.overlayClassName,g=fe.trigger,X=g===void 0?["hover"]:g,V=fe.mouseEnterDelay,se=V===void 0?0:V,re=fe.mouseLeaveDelay,ie=re===void 0?.1:re,xe=fe.overlayStyle,ne=fe.prefixCls,pe=ne===void 0?"rc-tooltip":ne,J=fe.children,b=fe.onVisibleChange,o=fe.afterVisibleChange,d=fe.transitionName,k=fe.animation,H=fe.placement,le=H===void 0?"right":H,ae=fe.align,T=ae===void 0?{}:ae,u=fe.destroyTooltipOnHide,j=u===void 0?!1:u,m=fe.defaultVisible,l=fe.getTooltipContainer,S=fe.overlayInnerStyle,E=Object(ke.a)(fe,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),w=Object(ye.useRef)(null);Object(ye.useImperativeHandle)(W,function(){return w.current});var ge=Object(L.a)({},E);"visible"in fe&&(ge.popupVisible=fe.visible);var me=function(){var N=fe.arrowContent,y=N===void 0?null:N,Z=fe.overlay,n=fe.id;return[ye.createElement("div",{className:"".concat(pe,"-arrow"),key:"arrow"},y),ye.createElement(a,{key:"content",prefixCls:pe,id:n,overlay:Z,overlayInnerStyle:S})]},Y=!1,P=!1;if(typeof j=="boolean")Y=j;else if(j&&Object(A.a)(j)==="object"){var h=j.keepParent;Y=h===!0,P=h===!1}return ye.createElement(I.a,Object.assign({popupClassName:R,prefixCls:pe,popup:me,action:X,builtinPlacements:i.a,popupPlacement:le,ref:w,popupAlign:T,getPopupContainer:l,onPopupVisibleChange:b,afterPopupVisibleChange:o,popupTransitionName:d,popupAnimation:k,defaultPopupVisible:m,destroyPopupOnHide:Y,autoDestroy:P,mouseLeaveDelay:ie,popupStyle:xe,mouseEnterDelay:se},ge),J)},_=Object(ye.forwardRef)(M),Q=be.a=_},OZM5:function(Tt,be,t){"use strict";t.d(be,"b",function(){return _}),t.d(be,"a",function(){return Q}),t.d(be,"k",function(){return he}),t.d(be,"h",function(){return fe}),t.d(be,"i",function(){return W}),t.d(be,"g",function(){return R}),t.d(be,"c",function(){return g}),t.d(be,"d",function(){return X}),t.d(be,"j",function(){return re}),t.d(be,"e",function(){return ie}),t.d(be,"f",function(){return xe});var A=t("KQm4"),L=t("U8pU"),ke=t("Ff2n"),ye=t("q1tI"),I=t.n(ye),i=t("Kwbf"),K=t("WaYH"),a=.25,M=2;function _(ne,pe){var J=ne.slice(),b=J.indexOf(pe);return b>=0&&J.splice(b,1),J}function Q(ne,pe){var J=ne.slice();return J.indexOf(pe)===-1&&J.push(pe),J}function he(ne){return ne.split("-")}function fe(ne,pe){return"".concat(ne,"-").concat(pe)}function W(ne){return ne&&ne.type&&ne.type.isTreeNode}function R(ne,pe){var J=[ne],b=pe[ne];function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(k){var H=k.key,le=k.children;J.push(H),o(le)})}return o(b.children),J}function g(ne,pe){var J=ne.clientY,b=pe.selectHandle.getBoundingClientRect(),o=b.top,d=b.bottom,k=b.height,H=Math.max(k*a,M);return J<=o+H?-1:J>=d-H?1:0}function X(ne,pe){if(!ne)return;var J=pe.multiple;return J?ne.slice():ne.length?[ne[0]]:ne}var V=function(pe){return pe};function se(ne,pe){if(!ne)return[];var J=pe||{},b=J.processProps,o=b===void 0?V:b,d=Array.isArray(ne)?ne:[ne];return d.map(function(k){var H=k.children,le=Object(ke.a)(k,["children"]),ae=se(H,pe);return I.a.createElement(K.a,Object.assign({},o(le)),ae)})}function re(ne){if(!ne)return null;var pe;if(Array.isArray(ne))pe={checkedKeys:ne,halfCheckedKeys:void 0};else if(Object(L.a)(ne)==="object")pe={checkedKeys:ne.checked||void 0,halfCheckedKeys:ne.halfChecked||void 0};else return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;return pe}function ie(ne,pe){var J=new Set;function b(o){if(J.has(o))return;var d=pe[o];if(!d)return;J.add(o);var k=d.parent,H=d.node;if(H.disabled)return;k&&b(k.key)}return(ne||[]).forEach(function(o){b(o)}),Object(A.a)(J)}function xe(ne){var pe={};return Object.keys(ne).forEach(function(J){(J.startsWith("data-")||J.startsWith("aria-"))&&(pe[J]=ne[J])}),pe}},"SA+Z":function(Tt,be,t){var A=t("wTVA"),L=t("EbDI"),ke=t("ZhPi"),ye=t("wkBT");function I(i){return A(i)||L(i)||ke(i)||ye()}Tt.exports=I,Tt.exports.__esModule=!0,Tt.exports.default=Tt.exports},VQsq:function(Tt,be,t){"use strict";t.r(be);var A=t("DjyN"),L=t("NUBc"),ke=t("g9YV"),ye=t("wCAj"),I=t("5NDa"),i=t("5rEg"),K=t("DYRE"),a=t("zeV3"),M=t("P2fV"),_=t("NJEC"),Q=t("qVdP"),he=t("jsC+"),fe=t("+BJd"),W=t("mr32"),R=t("5Dmo"),g=t("3S7+"),X=t("lUTK"),V=t("BvKs"),se=t("miYZ"),re=t("tsqr"),ie=t("9og8"),xe=t("k1fw"),ne=t("tJVT"),pe=t("WmNS"),J=t.n(pe),b=t("q1tI"),o=t.n(b),d=t("wd/R"),k=t.n(d),H=t("Ty5D"),le=t("55Ip"),ae=t("9kvl"),T=t("ErOA"),u=t("8Skl"),j=t("mgmH"),m=t("1vsH"),l=t("BdwD"),S=t("2qtc"),E=t("kLXV"),w=t("oBTY"),ge=function(Je){var st=Je.classroomList,tt=Je.dispatch,He=Je.cb,ee=Object(H.i)();return ee.id=ee.coursesId,o.a.createElement(E.a,{centered:!0,title:"\u63D0\u793A",visible:st.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(ie.a)(J.a.mark(function Ce(){var F;return J.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Object(T.a)("/api/boards/".concat(ee.categoryId,"/messages/bulk_public.json"),{method:"put",body:{ids:Object(w.a)(st.actionTabs.selectArrs)}});case 2:F=c.sent,F.status===0&&(re.b.success("\u64CD\u4F5C\u6210\u529F"),He(),tt({type:"classroomList/setActionTabs",payload:{}}),tt({type:"classroomList/getBoardList",payload:Object(xe.a)({},st.actionTabs.params)}));case 4:case"end":return c.stop()}},Ce)})),onCancel:function(){tt({type:"classroomList/setActionTabs",payload:{}})}},o.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))},me=Object(ae.a)(function(dt){var Je=dt.classroomList;return{classroomList:Je}})(ge),Y=function(Je){var st=Je.classroomList,tt=Je.dispatch,He=Je.cb,ee=Object(H.i)();return ee.id=ee.coursesId,o.a.createElement(E.a,{centered:!0,title:"\u63D0\u793A",visible:st.actionTabs.key==="\u5220\u9664\u5206\u73ED",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(ie.a)(J.a.mark(function Ce(){var F;return J.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Object(T.a)("/api/course_groups/".concat(st.actionTabs.selectArrs.id,".json"),{method:"delete"});case 2:F=c.sent,F.status===0&&(re.b.success("\u5220\u9664\u6210\u529F"),tt({type:"classroomList/setActionTabs",payload:{}}),tt({type:"classroomList/getCourseGroupsList",payload:Object(xe.a)({},st.actionTabs.params)}),tt({type:"classroomList/getClassroomLeftMenus",payload:{id:ee.coursesId}}),He());case 4:case"end":return c.stop()}},Ce)})),onCancel:function(){tt({type:"classroomList/setActionTabs",payload:{}})}},o.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664?"))},P=Object(ae.a)(function(dt){var Je=dt.classroomList;return{classroomList:Je}})(Y),h=t("14J3"),v=t("BMrR"),N=t("iQDF"),y=t("+eQT"),Z=t("jCWc"),n=t("kPKH"),f=t("jrin"),s=t("T2oS"),C=t("W9HT"),$=t("y8nQ"),G=t("Vl3Y"),Oe=function(Je){var st,tt=Je.classroomList,He=Je.loading,ee=Je.dispatch,Ce=Je.cb,F=Object(H.i)();F.id=F.coursesId,Object(b.useEffect)(function(){ee({type:"classroomList/getCourseGroups",payload:{id:F.id}})},[tt.name]);var r=G.a.useForm(),c=Object(ne.a)(r,1),ue=c[0],z=[];tt.courseGroups.course_groups&&tt.courseGroups.course_groups.map(function(je){return z.push(je.id+"")});var Re=function(B){return B&&B0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("aside",{className:"plr30 mt20 ".concat(q.a.bg)},o.a.createElement(ye.a,{className:"pt20",rowSelection:Object(et.c)()?Object(xe.a)({type:"checkbox"},mt):null,columns:Gt,dataSource:It,loading:ee.effects["classroomList/getCourseGroupsList"],pagination:!1})),o.a.createElement("aside",{className:"tc mb50 mt30"},o.a.createElement(L.a,{showQuickJumper:!0,onChange:en,showSizeChanger:!0,pageSizeOptions:["10","20","50","100","200"],defaultCurrent:1,pageSize:c.limit||10,current:c.page||1,total:z.group_count}))),o.a.createElement(P,{cb:function(){return Se([])}}),o.a.createElement(me,{cb:function(){return Se([])}}),o.a.createElement(Ze,{cb:function(){return Se([])}}),o.a.createElement(We,{cb:function(){return Se([])}}),o.a.createElement(Xe,{cb:function(){return Se([])}}),o.a.createElement(O,null),o.a.createElement(Qe.a,{res:sn,ismodel:Wn,setismodel:mn}))},jt=be.default=Object(ae.a)(function(dt){var Je=dt.classroomList,st=dt.loading,tt=dt.globalSetting;return{classroomList:Je,globalSetting:tt,loading:st}})(ct)},WaYH:function(Nt,be,t){"use strict";var A=t("rePB"),L=t("Ff2n"),ke=t("VTBJ"),ye=t("1OyB"),I=t("vuIU"),i=t("JX7q"),K=t("Ji7U"),a=t("LK+K"),M=t("q1tI"),_=t("TSYQ"),Q=t.n(_),he=t("sboe"),fe=t("OZM5"),W=function(pe){var J=pe.prefixCls,b=pe.level,o=pe.isStart,d=pe.isEnd;if(!b)return null;for(var k="".concat(J,"-indent-unit"),H=[],le=0;le0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("aside",{className:"plr30 mt20 ".concat(q.a.bg)},o.a.createElement(ye.a,{className:"pt20",rowSelection:Object(et.c)()?Object(xe.a)({type:"checkbox"},mt):null,columns:Gt,dataSource:It,loading:ee.effects["classroomList/getCourseGroupsList"],pagination:!1})),o.a.createElement("aside",{className:"tc mb50 mt30"},o.a.createElement(L.a,{showQuickJumper:!0,onChange:en,showSizeChanger:!0,pageSizeOptions:["10","20","50","100","200"],defaultCurrent:1,pageSize:c.limit||10,current:c.page||1,total:z.group_count}))),o.a.createElement(P,{cb:function(){return Se([])}}),o.a.createElement(me,{cb:function(){return Se([])}}),o.a.createElement(Ze,{cb:function(){return Se([])}}),o.a.createElement(We,{cb:function(){return Se([])}}),o.a.createElement(Xe,{cb:function(){return Se([])}}),o.a.createElement(O,null),o.a.createElement(Qe.a,{res:sn,ismodel:Wn,setismodel:mn}))},jt=be.default=Object(ae.a)(function(dt){var Je=dt.classroomList,st=dt.loading,tt=dt.globalSetting;return{classroomList:Je,globalSetting:tt,loading:st}})(ct)},WaYH:function(Tt,be,t){"use strict";var A=t("rePB"),L=t("Ff2n"),ke=t("VTBJ"),ye=t("1OyB"),I=t("vuIU"),i=t("JX7q"),K=t("Ji7U"),a=t("LK+K"),M=t("q1tI"),_=t("TSYQ"),Q=t.n(_),he=t("sboe"),fe=t("OZM5"),W=function(pe){var J=pe.prefixCls,b=pe.level,o=pe.isStart,d=pe.isEnd;if(!b)return null;for(var k="".concat(J,"-indent-unit"),H=[],le=0;le1&&arguments[1]!==void 0?arguments[1]:!1,v=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(h&&N[v])return N[v];var T=window.getComputedStyle(P),y=T.getPropertyValue("box-sizing")||T.getPropertyValue("-moz-box-sizing")||T.getPropertyValue("-webkit-box-sizing"),Z=parseFloat(T.getPropertyValue("padding-bottom"))+parseFloat(T.getPropertyValue("padding-top")),n=parseFloat(T.getPropertyValue("border-bottom-width"))+parseFloat(T.getPropertyValue("border-top-width")),f=ae.map(function(C){return"".concat(C,":").concat(T.getPropertyValue(C))}).join(";"),s={sizingStyle:f,paddingSize:Z,borderSize:n,boxSizing:y};return h&&v&&(N[v]=s),s}function m(P){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;u||(u=document.createElement("textarea"),u.setAttribute("tab-index","-1"),u.setAttribute("aria-hidden","true"),document.body.appendChild(u)),P.getAttribute("wrap")?u.setAttribute("wrap",P.getAttribute("wrap")):u.removeAttribute("wrap");var y=j(P,h),Z=y.paddingSize,n=y.borderSize,f=y.boxSizing,s=y.sizingStyle;u.setAttribute("style","".concat(s,";").concat(le)),u.value=P.value||P.placeholder||"";var C=Number.MIN_SAFE_INTEGER,$=Number.MAX_SAFE_INTEGER,G=u.scrollHeight,Oe;if(f==="border-box"?G+=n:f==="content-box"&&(G-=Z),v!==null||T!==null){u.value=" ";var We=u.scrollHeight-Z;v!==null&&(C=We*v,f==="border-box"&&(C=C+Z+n),G=Math.max(C,G)),T!==null&&($=We*T,f==="border-box"&&($=$+Z+n),Oe=G>$?"":"hidden",G=Math.min($,G))}return{height:G,minHeight:C,maxHeight:$,overflowY:Oe,resize:"none"}}var l=t("Gytx"),S=t.n(l),E;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(E||(E={}));var w=function(P){Object(ye.a)(v,P);var h=Object(I.a)(v);function v(T){var y;return Object(L.a)(this,v),y=h.call(this,T),y.nextFrameActionId=void 0,y.resizeFrameId=void 0,y.textArea=void 0,y.saveTextArea=function(Z){y.textArea=Z},y.handleResize=function(Z){var n=y.state.resizeStatus,f=y.props,s=f.autoSize,C=f.onResize;if(n!==E.NONE)return;typeof C=="function"&&C(Z),s&&y.resizeOnNextFrame()},y.resizeOnNextFrame=function(){cancelAnimationFrame(y.nextFrameActionId),y.nextFrameActionId=requestAnimationFrame(y.resizeTextarea)},y.resizeTextarea=function(){var Z=y.props.autoSize;if(!Z||!y.textArea)return;var n=Z.minRows,f=Z.maxRows,s=m(y.textArea,!1,n,f);y.setState({textareaStyles:s,resizeStatus:E.RESIZING},function(){cancelAnimationFrame(y.resizeFrameId),y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:E.RESIZED},function(){y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:E.NONE}),y.fixFirefoxAutoScroll()})})})})},y.renderTextArea=function(){var Z=y.props,n=Z.prefixCls,f=n===void 0?"rc-textarea":n,s=Z.autoSize,C=Z.onResize,$=Z.className,G=Z.disabled,Oe=y.state,We=Oe.textareaStyles,Ye=Oe.resizeStatus,ot=Object(d.a)(y.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),nt=H()(f,$,Object(a.a)({},"".concat(f,"-disabled"),G));"value"in ot&&(ot.value=ot.value||"");var Ze=Object(K.a)(Object(K.a)(Object(K.a)({},y.props.style),We),Ye===E.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return i.createElement(o,{onResize:y.handleResize,disabled:!(s||C)},i.createElement("textarea",Object(A.a)({},ot,{className:nt,style:Ze,ref:y.saveTextArea})))},y.state={textareaStyles:{},resizeStatus:E.NONE},y}return Object(ke.a)(v,[{key:"componentDidUpdate",value:function(y){(y.value!==this.props.value||!S()(y.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var y=this.textArea.selectionStart,Z=this.textArea.selectionEnd;this.textArea.setSelectionRange(y,Z)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),v}(i.Component),ge=w,me=function(P){Object(ye.a)(v,P);var h=Object(I.a)(v);function v(T){var y;Object(L.a)(this,v),y=h.call(this,T),y.resizableTextArea=void 0,y.focus=function(){y.resizableTextArea.textArea.focus()},y.saveTextArea=function(n){y.resizableTextArea=n},y.handleChange=function(n){var f=y.props.onChange;y.setValue(n.target.value,function(){y.resizableTextArea.resizeTextarea()}),f&&f(n)},y.handleKeyDown=function(n){var f=y.props,s=f.onPressEnter,C=f.onKeyDown;n.keyCode===13&&s&&s(n),C&&C(n)};var Z=typeof T.value=="undefined"||T.value===null?T.defaultValue:T.value;return y.state={value:Z},y}return Object(ke.a)(v,[{key:"setValue",value:function(y,Z){"value"in this.props||this.setState({value:y},Z)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return i.createElement(ge,Object(A.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(y){return"value"in y?{value:y.value}:null}}]),v}(i.Component),Y=be.default=me},Zbzq:function(Nt,be,t){Nt.exports={flex_box_center:"flex_box_center___KO-hX",flex_space_between:"flex_space_between___1pDht",flex_box_vertical_center:"flex_box_vertical_center___w0zKf",flex_box_center_end:"flex_box_center_end___1mi35",flex_box_column:"flex_box_column___2lWkX",bg:"bg___3a1Hm",containerTitle:"containerTitle___3z9eN",containerDesc:"containerDesc___16Cd2",listItem:"listItem___1wCBL",title:"title___2fzaI",titleLeft:"titleLeft___1b1ZV",titleRight:"titleRight___2zLBT",acitons:"acitons___O8Z_0",memberManager:"memberManager___1TWeE",menu:"menu___8mwIY"}},ZpRC:function(Nt,be,t){"use strict";function A(Q){return typeof Q=="object"&&Q!=null&&Q.nodeType===1}function L(Q,he){return(!he||Q!=="hidden")&&Q!=="visible"&&Q!=="clip"}function ke(Q,he){if(Q.clientHeighthe||g>Q&&X=he&&V>=fe?g-Q-W:X>he&&Vfe?X-he+R:0}var I=function(Q,he){var fe=window,W=he.scrollMode,R=he.block,g=he.inline,X=he.boundary,V=he.skipOverflowHiddenElements,se=typeof X=="function"?X:function(We){return We!==X};if(!A(Q))throw new TypeError("Invalid target");for(var re=document.scrollingElement||document.documentElement,ie=[],xe=Q;A(xe)&&se(xe);){if((xe=xe.parentElement)===re){ie.push(xe);break}xe!=null&&xe===document.body&&ke(xe)&&!ke(document.documentElement)||xe!=null&&ke(xe,V)&&ie.push(xe)}for(var ne=fe.visualViewport?fe.visualViewport.width:innerWidth,pe=fe.visualViewport?fe.visualViewport.height:innerHeight,J=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,o=Q.getBoundingClientRect(),d=o.height,k=o.width,H=o.top,le=o.right,ae=o.bottom,N=o.left,u=R==="start"||R==="nearest"?H:R==="end"?ae:H+d/2,j=g==="center"?N+k/2:g==="end"?le:N,m=[],l=0;l=0&&N>=0&&ae<=pe&&le<=ne&&H>=me&&ae<=P&&N>=h&&le<=Y)return m;var v=getComputedStyle(S),T=parseInt(v.borderLeftWidth,10),y=parseInt(v.borderTopWidth,10),Z=parseInt(v.borderRightWidth,10),n=parseInt(v.borderBottomWidth,10),f=0,s=0,C="offsetWidth"in S?S.offsetWidth-S.clientWidth-T-Z:0,$="offsetHeight"in S?S.offsetHeight-S.clientHeight-y-n:0;if(re===S)f=R==="start"?u:R==="end"?u-pe:R==="nearest"?ye(b,b+pe,pe,y,n,b+u,b+u+d,d):u-pe/2,s=g==="start"?j:g==="center"?j-ne/2:g==="end"?j-ne:ye(J,J+ne,ne,T,Z,J+j,J+j+k,k),f=Math.max(0,f+b),s=Math.max(0,s+J);else{f=R==="start"?u-me-y:R==="end"?u-P+n+$:R==="nearest"?ye(me,P,w,y,n+$,u,u+d,d):u-(me+w/2)+$/2,s=g==="start"?j-h-T:g==="center"?j-(h+ge/2)+C/2:g==="end"?j-Y+Z+C:ye(h,Y,ge,T,Z+C,j,j+k,k);var G=S.scrollLeft,Oe=S.scrollTop;u+=Oe-(f=Math.max(0,Math.min(Oe+f,S.scrollHeight-w+$))),j+=G-(s=Math.max(0,Math.min(G+s,S.scrollWidth-ge+C)))}m.push({el:S,top:f,left:s})}return m};function i(Q){return Q===Object(Q)&&Object.keys(Q).length!==0}function K(Q,he){he===void 0&&(he="auto");var fe="scrollBehavior"in document.body.style;Q.forEach(function(W){var R=W.el,g=W.top,X=W.left;R.scroll&&fe?R.scroll({top:g,left:X,behavior:he}):(R.scrollTop=g,R.scrollLeft=X)})}function a(Q){return Q===!1?{block:"end",inline:"nearest"}:i(Q)?Q:{block:"start",inline:"nearest"}}function M(Q,he){var fe=!Q.ownerDocument.documentElement.contains(Q);if(i(he)&&typeof he.behavior=="function")return he.behavior(fe?[]:I(Q,he));if(fe)return;var W=a(he);return K(I(Q,W),W.behavior)}var _=be.a=M},Zss7:function(Nt,be,t){var A;(function(L){var ke=/^\s+/,ye=/\s+$/,I=0,i=L.round,K=L.min,a=L.max,M=L.random;function _(n,f){if(n=n||"",f=f||{},n instanceof _)return n;if(!(this instanceof _))return new _(n,f);var s=Q(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=i(100*this._a)/100,this._format=f.format||s.format,this._gradientType=f.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=s.ok,this._tc_id=I++}_.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),f,s,C,$,G,Oe;return f=n.r/255,s=n.g/255,C=n.b/255,f<=.03928?$=f/12.92:$=L.pow((f+.055)/1.055,2.4),s<=.03928?G=s/12.92:G=L.pow((s+.055)/1.055,2.4),C<=.03928?Oe=C/12.92:Oe=L.pow((C+.055)/1.055,2.4),.2126*$+.7152*G+.0722*Oe},setAlpha:function(n){return this._a=m(n),this._roundA=i(100*this._a)/100,this},toHsv:function(){var n=R(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=R(this._r,this._g,this._b),f=i(n.h*360),s=i(n.s*100),C=i(n.v*100);return this._a==1?"hsv("+f+", "+s+"%, "+C+"%)":"hsva("+f+", "+s+"%, "+C+"%, "+this._roundA+")"},toHsl:function(){var n=fe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=fe(this._r,this._g,this._b),f=i(n.h*360),s=i(n.s*100),C=i(n.l*100);return this._a==1?"hsl("+f+", "+s+"%, "+C+"%)":"hsla("+f+", "+s+"%, "+C+"%, "+this._roundA+")"},toHex:function(n){return X(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return V(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(l(this._r,255)*100)+"%",g:i(l(this._g,255)*100)+"%",b:i(l(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(l(this._r,255)*100)+"%, "+i(l(this._g,255)*100)+"%, "+i(l(this._b,255)*100)+"%)":"rgba("+i(l(this._r,255)*100)+"%, "+i(l(this._g,255)*100)+"%, "+i(l(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:u[X(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var f="#"+se(this._r,this._g,this._b,this._a),s=f,C=this._gradientType?"GradientType = 1, ":"";if(n){var $=_(n);s="#"+se($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+C+"startColorstr="+f+",endColorstr="+s+")"},toString:function(n){var f=!!n;n=n||this._format;var s=!1,C=this._a<1&&this._a>=0,$=!f&&C&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return $?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return _(this.toString())},_applyModification:function(n,f){var s=n.apply(null,[this].concat([].slice.call(f)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(ne,arguments)},brighten:function(){return this._applyModification(pe,arguments)},darken:function(){return this._applyModification(J,arguments)},desaturate:function(){return this._applyModification(re,arguments)},saturate:function(){return this._applyModification(ie,arguments)},greyscale:function(){return this._applyModification(xe,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(n,f){return n.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(le,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(ae,arguments)},splitcomplement:function(){return this._applyCombination(H,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},_.fromRatio=function(n,f){if(typeof n=="object"){var s={};for(var C in n)n.hasOwnProperty(C)&&(C==="a"?s[C]=n[C]:s[C]=Y(n[C]));n=s}return _(n,f)};function Q(n){var f={r:0,g:0,b:0},s=1,C=null,$=null,G=null,Oe=!1,We=!1;return typeof n=="string"&&(n=y(n)),typeof n=="object"&&(T(n.r)&&T(n.g)&&T(n.b)?(f=he(n.r,n.g,n.b),Oe=!0,We=String(n.r).substr(-1)==="%"?"prgb":"rgb"):T(n.h)&&T(n.s)&&T(n.v)?(C=Y(n.s),$=Y(n.v),f=g(n.h,C,$),Oe=!0,We="hsv"):T(n.h)&&T(n.s)&&T(n.l)&&(C=Y(n.s),G=Y(n.l),f=W(n.h,C,G),Oe=!0,We="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=m(s),{ok:Oe,format:n.format||We,r:K(255,a(f.r,0)),g:K(255,a(f.g,0)),b:K(255,a(f.b,0)),a:s}}function he(n,f,s){return{r:l(n,255)*255,g:l(f,255)*255,b:l(s,255)*255}}function fe(n,f,s){n=l(n,255),f=l(f,255),s=l(s,255);var C=a(n,f,s),$=K(n,f,s),G,Oe,We=(C+$)/2;if(C==$)G=Oe=0;else{var Ye=C-$;Oe=We>.5?Ye/(2-C-$):Ye/(C+$);switch(C){case n:G=(f-s)/Ye+(f1&&(Ze-=1),Ze<1/6?ot+(nt-ot)*6*Ze:Ze<1/2?nt:Ze<2/3?ot+(nt-ot)*(2/3-Ze)*6:ot}if(f===0)C=$=G=s;else{var We=s<.5?s*(1+f):s+f-s*f,Ye=2*s-We;C=Oe(Ye,We,n+1/3),$=Oe(Ye,We,n),G=Oe(Ye,We,n-1/3)}return{r:C*255,g:$*255,b:G*255}}function R(n,f,s){n=l(n,255),f=l(f,255),s=l(s,255);var C=a(n,f,s),$=K(n,f,s),G,Oe,We=C,Ye=C-$;if(Oe=C===0?0:Ye/C,C==$)G=0;else{switch(C){case n:G=(f-s)/Ye+(f>1)+720)%360;--f;)C.h=(C.h+$)%360,G.push(_(C));return G}function ae(n,f){f=f||6;for(var s=_(n).toHsv(),C=s.h,$=s.s,G=s.v,Oe=[],We=1/f;f--;)Oe.push(_({h:C,s:$,v:G})),G=(G+We)%1;return Oe}_.mix=function(n,f,s){s=s===0?0:s||50;var C=_(n).toRgb(),$=_(f).toRgb(),G=s/100,Oe={r:($.r-C.r)*G+C.r,g:($.g-C.g)*G+C.g,b:($.b-C.b)*G+C.b,a:($.a-C.a)*G+C.a};return _(Oe)},_.readability=function(n,f){var s=_(n),C=_(f);return(L.max(s.getLuminance(),C.getLuminance())+.05)/(L.min(s.getLuminance(),C.getLuminance())+.05)},_.isReadable=function(n,f,s){var C=_.readability(n,f),$,G;G=!1,$=Z(s);switch($.level+$.size){case"AAsmall":case"AAAlarge":G=C>=4.5;break;case"AAlarge":G=C>=3;break;case"AAAsmall":G=C>=7;break}return G},_.mostReadable=function(n,f,s){var C=null,$=0,G,Oe,We,Ye;s=s||{},Oe=s.includeFallbackColors,We=s.level,Ye=s.size;for(var ot=0;ot$&&($=G,C=_(f[ot]));return _.isReadable(n,C,{level:We,size:Ye})||!Oe?C:(s.includeFallbackColors=!1,_.mostReadable(n,["#fff","#000"],s))};var N=_.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"},u=_.hexNames=j(N);function j(n){var f={};for(var s in n)n.hasOwnProperty(s)&&(f[n[s]]=s);return f}function m(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function l(n,f){w(n)&&(n="100%");var s=ge(n);return n=K(f,a(0,parseFloat(n))),s&&(n=parseInt(n*f,10)/100),L.abs(n-f)<1e-6?1:n%f/parseFloat(f)}function S(n){return K(1,a(0,n))}function E(n){return parseInt(n,16)}function w(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function ge(n){return typeof n=="string"&&n.indexOf("%")!=-1}function me(n){return n.length==1?"0"+n:""+n}function Y(n){return n<=1&&(n=n*100+"%"),n}function P(n){return L.round(parseFloat(n)*255).toString(16)}function h(n){return E(n)/255}var v=function(){var n="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",s="(?:"+f+")|(?:"+n+")",C="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",$="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+$),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 T(n){return!!v.CSS_UNIT.exec(n)}function y(n){n=n.replace(ke,"").replace(ye,"").toLowerCase();var f=!1;if(N[n])n=N[n],f=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=v.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=v.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=v.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=v.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=v.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=v.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=v.hex8.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),a:h(s[4]),format:f?"name":"hex8"}:(s=v.hex6.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),format:f?"name":"hex"}:(s=v.hex4.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),a:h(s[4]+""+s[4]),format:f?"name":"hex8"}:(s=v.hex3.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),format:f?"name":"hex"}:!1}function Z(n){var f,s;return n=n||{level:"AA",size:"small"},f=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:f,size:s}}Nt.exports?Nt.exports=_:!(A=function(){return _}.call(be,t,be,Nt),A!==void 0&&(Nt.exports=A))})(Math)},bT9E:function(Nt,be,t){"use strict";t.d(be,"a",function(){return L});var A=t("VTBJ");function L(ke,ye){var I=Object(A.a)({},ke);return Array.isArray(ye)&&ye.forEach(function(i){delete I[i]}),I}},biw7:function(Nt,be,t){"use strict";var A=t("q1tI"),L=t.n(A),ke=A.createContext(null);be.a=ke},fAei:function(Nt,be,t){"use strict";t.d(be,"a",function(){return re.a});var A=t("rePB"),L=t("VTBJ"),ke=t("KQm4"),ye=t("1OyB"),I=t("vuIU"),i=t("Ji7U"),K=t("LK+K"),a=t("q1tI"),M=t("4IlW"),_=t("Kwbf"),Q=t("TSYQ"),he=t.n(Q),fe=t("sboe"),W=t("OZM5"),R=t("815F"),g=t("ODXe"),X=t("Ff2n"),V=t("+nKL"),se=t("8XRh"),re=t("WaYH"),ie=function(Y,P){var h=Y.className,v=Y.style,T=Y.motion,y=Y.motionNodes,Z=Y.motionType,n=Y.onMotionStart,f=Y.onMotionEnd,s=Y.active,C=Y.treeNodeRequiredProps,$=Object(X.a)(Y,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),G=a.useState(!0),Oe=Object(g.a)(G,2),We=Oe[0],Ye=Oe[1],ot=a.useContext(fe.a),nt=ot.prefixCls,Ze=a.useRef(!1),xt=function(){Ze.current||f(),Ze.current=!0};return Object(a.useEffect)(function(){y&&Z==="hide"&&We&&Ye(!1)},[y]),Object(a.useEffect)(function(){return y&&n(),function(){y&&xt()}},[]),y?a.createElement(se.default,Object.assign({ref:P,visible:We},T,{motionAppear:Z==="show",onAppearEnd:xt,onLeaveEnd:xt}),function(q,Te){var Ve=q.className,Ie=q.style;return a.createElement("div",{ref:Te,className:he()("".concat(nt,"-treenode-motion"),Ve),style:Ie},y.map(function(qe){var O=qe.data,oe=O.key,de=Object(X.a)(O,["key"]),we=qe.isStart,Pe=qe.isEnd;delete de.children;var Ae=Object(R.f)(oe,C);return a.createElement(re.a,Object.assign({},de,Ae,{active:s,data:qe.data,key:oe,isStart:we,isEnd:Pe}))}))}):a.createElement(re.a,Object.assign({domRef:P,className:h,style:v},$,{active:s}))};ie.displayName="MotionTreeNode";var xe=a.forwardRef(ie),ne=xe;function pe(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],P=me.length,h=Y.length;if(Math.abs(P-h)!==1)return{add:!1,key:null};function v(T,y){var Z=new Map;T.forEach(function(f){Z.set(f,!0)});var n=y.filter(function(f){return!Z.has(f)});return n.length===1?n[0]:null}return P ").concat(Y);return Y}var j=function(Y,P){var h=Y.prefixCls,v=Y.data,T=Y.selectable,y=Y.checkable,Z=Y.expandedKeys,n=Y.selectedKeys,f=Y.checkedKeys,s=Y.loadedKeys,C=Y.loadingKeys,$=Y.halfCheckedKeys,G=Y.keyEntities,Oe=Y.disabled,We=Y.dragging,Ye=Y.dragOverNodeKey,ot=Y.dropPosition,nt=Y.motion,Ze=Y.height,xt=Y.itemHeight,q=Y.virtual,Te=Y.focusable,Ve=Y.activeItem,Ie=Y.focused,qe=Y.tabIndex,O=Y.onKeyDown,oe=Y.onFocus,de=Y.onBlur,we=Y.onActiveChange,Pe=Y.onListChangeStart,Ae=Y.onListChangeEnd,Ke=Object(X.a)(Y,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),Ne=a.useRef(null);a.useImperativeHandle(P,function(){return{scrollTo:function(rt){Ne.current.scrollTo(rt)}}});var Xe=a.useState(Z),et=Object(g.a)(Xe,2),at=et[0],Qe=et[1],vt=a.useState(v),ct=Object(g.a)(vt,2),jt=ct[0],dt=ct[1],Je=a.useState(v),st=Object(g.a)(Je,2),tt=st[0],He=st[1],ee=a.useState([]),Ce=Object(g.a)(ee,2),F=Ce[0],r=Ce[1],c=a.useState(null),ue=Object(g.a)(c,2),z=ue[0],Re=ue[1];function je(){dt(v),He(v),r([]),Re(null),Ae()}a.useEffect(function(){Qe(Z);var Se=pe(at,Z);if(Se.key!==null)if(Se.add){var rt=jt.findIndex(function(It){var Yt=It.data.key;return Yt===Se.key}),Be=ae(J(jt,v,Se.key),q,Ze,xt),Dt=jt.slice();Dt.splice(rt+1,0,le),He(Dt),r(Be),Re("show")}else{var yt=v.findIndex(function(It){var Yt=It.data.key;return Yt===Se.key}),Ht=ae(J(v,jt,Se.key),q,Ze,xt),Ut=v.slice();Ut.splice(yt+1,0,le),He(Ut),r(Ht),Re("hide")}else jt!==v&&(dt(v),He(v))},[Z,v]),a.useEffect(function(){We||je()},[We]);var B=nt?tt:v,ve={expandedKeys:Z,selectedKeys:n,loadedKeys:s,loadingKeys:C,checkedKeys:f,halfCheckedKeys:$,dragOverNodeKey:Ye,dropPosition:ot,keyEntities:G};return a.createElement(a.Fragment,null,Ie&&Ve&&a.createElement("span",{style:b,"aria-live":"assertive"},u(Ve)),a.createElement("div",{role:"tree"},a.createElement("input",{style:b,disabled:Te===!1||Oe,tabIndex:Te!==!1?qe:null,onKeyDown:O,onFocus:oe,onBlur:de,value:"",onChange:o})),a.createElement(V.a,Object.assign({},Ke,{data:B,itemKey:N,height:Ze,fullHeight:!1,virtual:q,itemHeight:xt,prefixCls:"".concat(h,"-list"),ref:Ne}),function(Se){var rt=Se.pos,Be=Se.data,Dt=Be.key,yt=Object(X.a)(Be,["key"]),Ht=Se.isStart,Ut=Se.isEnd,It=Object(R.e)(Dt,rt);delete yt.children;var Yt=Object(R.f)(It,ve);return a.createElement(ne,Object.assign({},yt,Yt,{active:Ve&&Dt===Ve.data.key,pos:rt,data:Se.data,isStart:Ht,isEnd:Ut,motion:nt,motionNodes:Dt===d?F:null,motionType:z,onMotionStart:Pe,onMotionEnd:je,treeNodeRequiredProps:ve,onMouseMove:function(){we(null)}}))}))},m=a.forwardRef(j);m.displayName="NodeList";var l=m,S=t("NvD2"),E=function(me){Object(i.a)(P,me);var Y=Object(K.a)(P);function P(){var h;return Object(ye.a)(this,P),h=Y.apply(this,arguments),h.destroyed=!1,h.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},h.listRef=a.createRef(),h.onNodeDragStart=function(v,T){var y=h.state,Z=y.expandedKeys,n=y.keyEntities,f=h.props.onDragStart,s=T.props.eventKey;h.dragNode=T;var C=Object(W.b)(Z,s);h.setState({dragging:!0,dragNodesKeys:Object(W.g)(s,n)}),h.setExpandedKeys(C),f&&f({event:v,node:Object(R.b)(T.props)})},h.onNodeDragEnter=function(v,T){var y=h.state,Z=y.expandedKeys,n=y.keyEntities,f=y.dragNodesKeys,s=h.props.onDragEnter,C=T.props,$=C.pos,G=C.eventKey;if(!h.dragNode||f.indexOf(G)!==-1)return;var Oe=Object(W.c)(v,T);if(h.dragNode.props.eventKey===G&&Oe===0){h.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){h.setState({dragOverNodeKey:G,dropPosition:Oe}),h.delayedDragEnterLogic||(h.delayedDragEnterLogic={}),Object.keys(h.delayedDragEnterLogic).forEach(function(We){clearTimeout(h.delayedDragEnterLogic[We])}),h.delayedDragEnterLogic[$]=window.setTimeout(function(){if(!h.state.dragging)return;var We=Object(ke.a)(Z),Ye=n[G];Ye&&(Ye.children||[]).length&&(We=Object(W.a)(Z,G)),"expandedKeys"in h.props||h.setExpandedKeys(We),s&&s({event:v,node:Object(R.b)(T.props),expandedKeys:We})},400)},0)},h.onNodeDragOver=function(v,T){var y=h.state.dragNodesKeys,Z=h.props.onDragOver,n=T.props.eventKey;if(y.indexOf(n)!==-1)return;if(h.dragNode&&n===h.state.dragOverNodeKey){var f=Object(W.c)(v,T);if(f===h.state.dropPosition)return;h.setState({dropPosition:f})}Z&&Z({event:v,node:Object(R.b)(T.props)})},h.onNodeDragLeave=function(v,T){var y=h.props.onDragLeave;h.setState({dragOverNodeKey:""}),y&&y({event:v,node:Object(R.b)(T.props)})},h.onNodeDragEnd=function(v,T){var y=h.props.onDragEnd;h.setState({dragOverNodeKey:""}),h.cleanDragState(),y&&y({event:v,node:Object(R.b)(T.props)}),h.dragNode=null},h.onNodeDrop=function(v,T){var y=h.state,Z=y.dragNodesKeys,n=Z===void 0?[]:Z,f=y.dropPosition,s=h.props.onDrop,C=T.props,$=C.eventKey,G=C.pos;if(h.setState({dragOverNodeKey:""}),h.cleanDragState(),n.indexOf($)!==-1){Object(_.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Oe=Object(W.k)(G),We={event:v,node:Object(R.b)(T.props),dragNode:h.dragNode?Object(R.b)(h.dragNode.props):null,dragNodesKeys:n.slice(),dropPosition:f+Number(Oe[Oe.length-1]),dropToGap:!1};f!==0&&(We.dropToGap=!0),s&&s(We),h.dragNode=null},h.cleanDragState=function(){var v=h.state.dragging;v&&h.setState({dragging:!1})},h.onNodeClick=function(v,T){var y=h.props.onClick;y&&y(v,T)},h.onNodeDoubleClick=function(v,T){var y=h.props.onDoubleClick;y&&y(v,T)},h.onNodeSelect=function(v,T){var y=h.state.selectedKeys,Z=h.state.keyEntities,n=h.props,f=n.onSelect,s=n.multiple,C=T.selected,$=T.key,G=!C;G?s?y=Object(W.a)(y,$):y=[$]:y=Object(W.b)(y,$);var Oe=y.map(function(We){var Ye=Z[We];return Ye?Ye.node:null}).filter(function(We){return We});h.setUncontrolledState({selectedKeys:y}),f&&f(y,{event:"select",selected:G,node:T,selectedNodes:Oe,nativeEvent:v.nativeEvent})},h.onNodeCheck=function(v,T,y){var Z=h.state,n=Z.keyEntities,f=Z.checkedKeys,s=Z.halfCheckedKeys,C=h.props,$=C.checkStrictly,G=C.onCheck,Oe=T.key,We,Ye={event:"check",node:T,checked:y,nativeEvent:v.nativeEvent};if($){var ot=y?Object(W.a)(f,Oe):Object(W.b)(f,Oe),nt=Object(W.b)(s,Oe);We={checked:ot,halfChecked:nt},Ye.checkedNodes=ot.map(function(Ie){return n[Ie]}).filter(function(Ie){return Ie}).map(function(Ie){return Ie.node}),h.setUncontrolledState({checkedKeys:ot})}else{var Ze=Object(S.a)([].concat(Object(ke.a)(f),[Oe]),!0,n),xt=Ze.checkedKeys,q=Ze.halfCheckedKeys;if(!y){var Te=new Set(xt);Te.delete(Oe);var Ve=Object(S.a)(Array.from(Te),{checked:!1,halfCheckedKeys:q},n);xt=Ve.checkedKeys,q=Ve.halfCheckedKeys}We=xt,Ye.checkedNodes=[],Ye.checkedNodesPositions=[],Ye.halfCheckedKeys=q,xt.forEach(function(Ie){var qe=n[Ie];if(!qe)return;var O=qe.node,oe=qe.pos;Ye.checkedNodes.push(O),Ye.checkedNodesPositions.push({node:O,pos:oe})}),h.setUncontrolledState({checkedKeys:xt},!1,{halfCheckedKeys:q})}G&&G(We,Ye)},h.onNodeLoad=function(v){return new Promise(function(T){h.setState(function(y){var Z=y.loadedKeys,n=Z===void 0?[]:Z,f=y.loadingKeys,s=f===void 0?[]:f,C=h.props,$=C.loadData,G=C.onLoad,Oe=v.key;if(!$||n.indexOf(Oe)!==-1||s.indexOf(Oe)!==-1)return{};var We=$(v);return We.then(function(){var Ye=h.state,ot=Ye.loadedKeys,nt=Ye.loadingKeys,Ze=Object(W.a)(ot,Oe),xt=Object(W.b)(nt,Oe);G&&G(Ze,{event:"load",node:v}),h.setUncontrolledState({loadedKeys:Ze}),h.setState({loadingKeys:xt}),T()}),{loadingKeys:Object(W.a)(s,Oe)}})})},h.onNodeMouseEnter=function(v,T){var y=h.props.onMouseEnter;y&&y({event:v,node:T})},h.onNodeMouseLeave=function(v,T){var y=h.props.onMouseLeave;y&&y({event:v,node:T})},h.onNodeContextMenu=function(v,T){var y=h.props.onRightClick;y&&(v.preventDefault(),y({event:v,node:T}))},h.onFocus=function(){var v=h.props.onFocus;h.setState({focused:!0}),v&&v.apply(void 0,arguments)},h.onBlur=function(){var v=h.props.onBlur;h.setState({focused:!1}),h.onActiveChange(null),v&&v.apply(void 0,arguments)},h.getTreeNodeRequiredProps=function(){var v=h.state,T=v.expandedKeys,y=v.selectedKeys,Z=v.loadedKeys,n=v.loadingKeys,f=v.checkedKeys,s=v.halfCheckedKeys,C=v.dragOverNodeKey,$=v.dropPosition,G=v.keyEntities;return{expandedKeys:T||[],selectedKeys:y||[],loadedKeys:Z||[],loadingKeys:n||[],checkedKeys:f||[],halfCheckedKeys:s||[],dragOverNodeKey:C,dropPosition:$,keyEntities:G}},h.setExpandedKeys=function(v){var T=h.state.treeData,y=Object(R.d)(T,v);h.setUncontrolledState({expandedKeys:v,flattenNodes:y},!0)},h.onNodeExpand=function(v,T){var y=h.state.expandedKeys,Z=h.state.listChanging,n=h.props,f=n.onExpand,s=n.loadData,C=T.key,$=T.expanded;if(Z)return;var G=y.indexOf(C),Oe=!$;if(Object(_.a)($&&G!==-1||!$&&G===-1,"Expand state not sync with index check"),Oe?y=Object(W.a)(y,C):y=Object(W.b)(y,C),h.setExpandedKeys(y),f&&f(y,{node:T,expanded:Oe,nativeEvent:v.nativeEvent}),Oe&&s){var We=h.onNodeLoad(T);We&&We.then(function(){var Ye=Object(R.d)(h.state.treeData,y);h.setUncontrolledState({flattenNodes:Ye})})}},h.onListChangeStart=function(){h.setUncontrolledState({listChanging:!0})},h.onListChangeEnd=function(){setTimeout(function(){h.setUncontrolledState({listChanging:!1})})},h.onActiveChange=function(v){var T=h.state.activeKey,y=h.props.onActiveChange;if(T===v)return;h.setState({activeKey:v}),v!==null&&h.scrollTo({key:v}),y&&y(v)},h.getActiveItem=function(){var v=h.state,T=v.activeKey,y=v.flattenNodes;return T===null?null:y.find(function(Z){var n=Z.data.key;return n===T})||null},h.offsetActiveKey=function(v){var T=h.state,y=T.flattenNodes,Z=T.activeKey,n=y.findIndex(function(C){var $=C.data.key;return $===Z});n===-1&&v<0&&(n=y.length),n=(n+v+y.length)%y.length;var f=y[n];if(f){var s=f.data.key;h.onActiveChange(s)}else h.onActiveChange(null)},h.onKeyDown=function(v){var T=h.state,y=T.activeKey,Z=T.expandedKeys,n=T.checkedKeys,f=h.props,s=f.onKeyDown,C=f.checkable,$=f.selectable;switch(v.which){case M.a.UP:{h.offsetActiveKey(-1),v.preventDefault();break}case M.a.DOWN:{h.offsetActiveKey(1),v.preventDefault();break}}var G=h.getActiveItem();if(G&&G.data){var Oe=h.getTreeNodeRequiredProps(),We=G.data.isLeaf===!1||!!(G.data.children||[]).length,Ye=Object(R.b)(Object(L.a)(Object(L.a)({},Object(R.f)(y,Oe)),{},{data:G.data,active:!0}));switch(v.which){case M.a.LEFT:{We&&Z.includes(y)?h.onNodeExpand({},Ye):G.parent&&h.onActiveChange(G.parent.data.key),v.preventDefault();break}case M.a.RIGHT:{We&&!Z.includes(y)?h.onNodeExpand({},Ye):G.children&&G.children.length&&h.onActiveChange(G.children[0].data.key),v.preventDefault();break}case M.a.ENTER:case M.a.SPACE:{C&&!Ye.disabled&&Ye.checkable!==!1&&!Ye.disableCheckbox?h.onNodeCheck({},Ye,!n.includes(y)):!C&&$&&!Ye.disabled&&Ye.selectable!==!1&&h.onNodeSelect({},Ye);break}}}s&&s(v)},h.setUncontrolledState=function(v){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(h.destroyed)return;var Z=!1,n=!0,f={};Object.keys(v).forEach(function(s){if(s in h.props){n=!1;return}Z=!0,f[s]=v[s]}),Z&&(!T||n)&&h.setState(Object(L.a)(Object(L.a)({},f),y))},h.scrollTo=function(v){h.listRef.current.scrollTo(v)},h}return Object(I.a)(P,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var v,T=this.state,y=T.focused,Z=T.flattenNodes,n=T.keyEntities,f=T.dragging,s=T.activeKey,C=this.props,$=C.prefixCls,G=C.className,Oe=C.style,We=C.showLine,Ye=C.focusable,ot=C.tabIndex,nt=ot===void 0?0:ot,Ze=C.selectable,xt=C.showIcon,q=C.icon,Te=C.switcherIcon,Ve=C.draggable,Ie=C.checkable,qe=C.checkStrictly,O=C.disabled,oe=C.motion,de=C.loadData,we=C.filterTreeNode,Pe=C.height,Ae=C.itemHeight,Ke=C.virtual,Ne=C.titleRender,Xe=C.onContextMenu,et=Object(W.f)(this.props);return a.createElement(fe.a.Provider,{value:{prefixCls:$,selectable:Ze,showIcon:xt,icon:q,switcherIcon:Te,draggable:Ve,checkable:Ie,checkStrictly:qe,disabled:O,keyEntities:n,loadData:de,filterTreeNode:we,titleRender:Ne,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},a.createElement("div",{className:he()($,G,(v={},Object(A.a)(v,"".concat($,"-show-line"),We),Object(A.a)(v,"".concat($,"-focused"),y),Object(A.a)(v,"".concat($,"-active-focused"),s!==null),v))},a.createElement(l,Object.assign({ref:this.listRef,prefixCls:$,style:Oe,data:Z,disabled:O,selectable:Ze,checkable:!!Ie,motion:oe,dragging:f,height:Pe,itemHeight:Ae,virtual:Ke,focusable:Ye,focused:y,tabIndex:nt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Xe},this.getTreeNodeRequiredProps(),et))))}}],[{key:"getDerivedStateFromProps",value:function(v,T){var y=T.prevProps,Z={prevProps:v};function n(q){return!y&&q in v||y&&y[q]!==v[q]}var f;if(n("treeData")?f=v.treeData:n("children")&&(Object(_.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=Object(R.c)(v.children)),f){Z.treeData=f;var s=Object(R.a)(f);Z.keyEntities=Object(L.a)(Object(A.a)({},d,H),s.keyEntities)}var C=Z.keyEntities||T.keyEntities;if(n("expandedKeys")||y&&n("autoExpandParent"))Z.expandedKeys=v.autoExpandParent||!y&&v.defaultExpandParent?Object(W.e)(v.expandedKeys,C):v.expandedKeys;else if(!y&&v.defaultExpandAll){var $=Object(L.a)({},C);delete $[d],Z.expandedKeys=Object.keys($).map(function(q){return $[q].key})}else!y&&v.defaultExpandedKeys&&(Z.expandedKeys=v.autoExpandParent||v.defaultExpandParent?Object(W.e)(v.defaultExpandedKeys,C):v.defaultExpandedKeys);if(Z.expandedKeys||delete Z.expandedKeys,f||Z.expandedKeys){var G=Object(R.d)(f||T.treeData,Z.expandedKeys||T.expandedKeys);Z.flattenNodes=G}if(v.selectable&&(n("selectedKeys")?Z.selectedKeys=Object(W.d)(v.selectedKeys,v):!y&&v.defaultSelectedKeys&&(Z.selectedKeys=Object(W.d)(v.defaultSelectedKeys,v))),v.checkable){var Oe;if(n("checkedKeys")?Oe=Object(W.j)(v.checkedKeys)||{}:!y&&v.defaultCheckedKeys?Oe=Object(W.j)(v.defaultCheckedKeys)||{}:f&&(Oe=Object(W.j)(v.checkedKeys)||{checkedKeys:T.checkedKeys,halfCheckedKeys:T.halfCheckedKeys}),Oe){var We=Oe,Ye=We.checkedKeys,ot=Ye===void 0?[]:Ye,nt=We.halfCheckedKeys,Ze=nt===void 0?[]:nt;if(!v.checkStrictly){var xt=Object(S.a)(ot,!0,C);ot=xt.checkedKeys,Ze=xt.halfCheckedKeys}Z.checkedKeys=ot,Z.halfCheckedKeys=Ze}}return n("loadedKeys")&&(Z.loadedKeys=v.loadedKeys),Z}}]),P}(a.Component);E.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},E.TreeNode=re.a;var w=E,ge=be.b=w},fyJ8:function(Nt,be,t){"use strict";var A=t("rePB"),L=t("VTBJ"),ke=t("Ff2n"),ye=t("U8pU"),I=t("q1tI"),i=t.n(I),K=t("TSYQ"),a=t.n(K),M=t("c+Xe"),_=t("sR1s");function Q(g){return g&&Object(ye.a)(g)==="object"&&!Array.isArray(g)&&!I.isValidElement(g)}function he(g){return typeof g=="string"?!0:Object(M.c)(g)}function fe(g,X){var V,se=g.prefixCls,re=g.className,ie=g.record,xe=g.index,ne=g.dataIndex,pe=g.render,J=g.children,b=g.component,o=b===void 0?"td":b,d=g.colSpan,k=g.rowSpan,H=g.fixLeft,le=g.fixRight,ae=g.firstFixLeft,N=g.lastFixLeft,u=g.firstFixRight,j=g.lastFixRight,m=g.appendNode,l=g.additionalProps,S=l===void 0?{}:l,E=g.ellipsis,w=g.align,ge=g.rowType,me=g.isSticky,Y="".concat(se,"-cell"),P,h;if(J)h=J;else{var v=Object(_.b)(ie,ne);if(h=v,pe){var T=pe(v,ie,xe);Q(T)?(h=T.children,P=T.props):h=T}}Object(ye.a)(h)==="object"&&!Array.isArray(h)&&!I.isValidElement(h)&&(h=null),E&&(N||u)&&(h=I.createElement("span",{className:"".concat(Y,"-content")},h));var y=P||{},Z=y.colSpan,n=y.rowSpan,f=y.style,s=y.className,C=Object(ke.a)(y,["colSpan","rowSpan","style","className"]),$=Z!==void 0?Z:d,G=n!==void 0?n:k;if($===0||G===0)return null;var Oe={},We=typeof H=="number",Ye=typeof le=="number";We&&(Oe.position="sticky",Oe.left=H),Ye&&(Oe.position="sticky",Oe.right=le);var ot={};w&&(ot.textAlign=w);var nt,Ze=E===!0?{showTitle:!0}:E;Ze&&(Ze.showTitle||ge==="header")&&(typeof h=="string"||typeof h=="number"?nt=h.toString():I.isValidElement(h)&&typeof h.props.children=="string"&&(nt=h.props.children));var xt=Object(L.a)(Object(L.a)(Object(L.a)({title:nt},C),S),{},{colSpan:$&&$!==1?$:null,rowSpan:G&&G!==1?G:null,className:a()(Y,re,(V={},Object(A.a)(V,"".concat(Y,"-fix-left"),We),Object(A.a)(V,"".concat(Y,"-fix-left-first"),ae),Object(A.a)(V,"".concat(Y,"-fix-left-last"),N),Object(A.a)(V,"".concat(Y,"-fix-right"),Ye),Object(A.a)(V,"".concat(Y,"-fix-right-first"),u),Object(A.a)(V,"".concat(Y,"-fix-right-last"),j),Object(A.a)(V,"".concat(Y,"-ellipsis"),E),Object(A.a)(V,"".concat(Y,"-with-append"),m),Object(A.a)(V,"".concat(Y,"-fix-sticky"),(We||Ye)&&me),V),S.className,s),style:Object(L.a)(Object(L.a)(Object(L.a)(Object(L.a)({},S.style),ot),Oe),f),ref:he(o)?X:null});return I.createElement(o,Object.assign({},xt),m,h)}var W=I.forwardRef(fe);W.displayName="Cell";var R=I.memo(W,function(g,X){return X.shouldCellUpdate?!X.shouldCellUpdate(X.record,g.record):!1});be.a=R},h78n:function(Nt,be,t){"use strict";t.d(be,"a",function(){return ae});var A=t("q1tI"),L=t.n(A),ke=t("TSYQ"),ye=t.n(ke),I={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},i=function(j){var m=j.map(function(){return Object(A.useRef)()}),l=Object(A.useRef)();return Object(A.useEffect)(function(){var S=Date.now(),E=!1;Object.keys(m).forEach(function(w){var ge=m[w].current;if(!ge)return;E=!0;var me=ge.style;me.transitionDuration=".3s, .3s, .3s, .06s",l.current&&S-l.current<100&&(me.transitionDuration="0s, 0s")}),E&&(l.current=Date.now())}),[m]};function K(){return K=Object.assign||function(u){for(var j=1;ju.length)&&(j=u.length);for(var m=0,l=new Array(j);m=0)continue;if(!Object.prototype.propertyIsEnumerable.call(u,l))continue;m[l]=u[l]}}return m}function R(u,j){if(u==null)return{};var m={},l=Object.keys(u),S,E;for(E=0;E=0)continue;m[S]=u[S]}return m}var g=function(j){var m=j.className,l=j.percent,S=j.prefixCls,E=j.strokeColor,w=j.strokeLinecap,ge=j.strokeWidth,me=j.style,Y=j.trailColor,P=j.trailWidth,h=j.transition,v=W(j,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete v.gapPosition;var T=Array.isArray(l)?l:[l],y=Array.isArray(E)?E:[E],Z=i(T),n=a(Z,1),f=n[0],s=ge/2,C=100-ge/2,$="M ".concat(w==="round"?s:0,",").concat(s,` - L `).concat(w==="round"?C:100,",").concat(s),G="0 0 100 ".concat(ge),Oe=0;return L.a.createElement("svg",K({className:ye()("".concat(S,"-line"),m),viewBox:G,preserveAspectRatio:"none",style:me},v),L.a.createElement("path",{className:"".concat(S,"-line-trail"),d:$,strokeLinecap:w,stroke:Y,strokeWidth:P||ge,fillOpacity:"0"}),T.map(function(We,Ye){var ot={strokeDasharray:"".concat(We,"px, 100px"),strokeDashoffset:"-".concat(Oe,"px"),transition:h||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},nt=y[Ye]||y[y.length-1];return Oe+=We,L.a.createElement("path",{key:Ye,className:"".concat(S,"-line-path"),d:$,strokeLinecap:w,stroke:nt,strokeWidth:ge,fillOpacity:"0",ref:f[Ye],style:ot})}))};g.defaultProps=I;var X=g;function V(){return V=Object.assign||function(u){for(var j=1;j1&&arguments[1]!==void 0?arguments[1]:!1,v=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(h&&T[v])return T[v];var N=window.getComputedStyle(P),y=N.getPropertyValue("box-sizing")||N.getPropertyValue("-moz-box-sizing")||N.getPropertyValue("-webkit-box-sizing"),Z=parseFloat(N.getPropertyValue("padding-bottom"))+parseFloat(N.getPropertyValue("padding-top")),n=parseFloat(N.getPropertyValue("border-bottom-width"))+parseFloat(N.getPropertyValue("border-top-width")),f=ae.map(function(C){return"".concat(C,":").concat(N.getPropertyValue(C))}).join(";"),s={sizingStyle:f,paddingSize:Z,borderSize:n,boxSizing:y};return h&&v&&(T[v]=s),s}function m(P){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;u||(u=document.createElement("textarea"),u.setAttribute("tab-index","-1"),u.setAttribute("aria-hidden","true"),document.body.appendChild(u)),P.getAttribute("wrap")?u.setAttribute("wrap",P.getAttribute("wrap")):u.removeAttribute("wrap");var y=j(P,h),Z=y.paddingSize,n=y.borderSize,f=y.boxSizing,s=y.sizingStyle;u.setAttribute("style","".concat(s,";").concat(le)),u.value=P.value||P.placeholder||"";var C=Number.MIN_SAFE_INTEGER,$=Number.MAX_SAFE_INTEGER,G=u.scrollHeight,Oe;if(f==="border-box"?G+=n:f==="content-box"&&(G-=Z),v!==null||N!==null){u.value=" ";var We=u.scrollHeight-Z;v!==null&&(C=We*v,f==="border-box"&&(C=C+Z+n),G=Math.max(C,G)),N!==null&&($=We*N,f==="border-box"&&($=$+Z+n),Oe=G>$?"":"hidden",G=Math.min($,G))}return{height:G,minHeight:C,maxHeight:$,overflowY:Oe,resize:"none"}}var l=t("Gytx"),S=t.n(l),E;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(E||(E={}));var w=function(P){Object(ye.a)(v,P);var h=Object(I.a)(v);function v(N){var y;return Object(L.a)(this,v),y=h.call(this,N),y.nextFrameActionId=void 0,y.resizeFrameId=void 0,y.textArea=void 0,y.saveTextArea=function(Z){y.textArea=Z},y.handleResize=function(Z){var n=y.state.resizeStatus,f=y.props,s=f.autoSize,C=f.onResize;if(n!==E.NONE)return;typeof C=="function"&&C(Z),s&&y.resizeOnNextFrame()},y.resizeOnNextFrame=function(){cancelAnimationFrame(y.nextFrameActionId),y.nextFrameActionId=requestAnimationFrame(y.resizeTextarea)},y.resizeTextarea=function(){var Z=y.props.autoSize;if(!Z||!y.textArea)return;var n=Z.minRows,f=Z.maxRows,s=m(y.textArea,!1,n,f);y.setState({textareaStyles:s,resizeStatus:E.RESIZING},function(){cancelAnimationFrame(y.resizeFrameId),y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:E.RESIZED},function(){y.resizeFrameId=requestAnimationFrame(function(){y.setState({resizeStatus:E.NONE}),y.fixFirefoxAutoScroll()})})})})},y.renderTextArea=function(){var Z=y.props,n=Z.prefixCls,f=n===void 0?"rc-textarea":n,s=Z.autoSize,C=Z.onResize,$=Z.className,G=Z.disabled,Oe=y.state,We=Oe.textareaStyles,Ye=Oe.resizeStatus,ot=Object(d.a)(y.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),nt=H()(f,$,Object(a.a)({},"".concat(f,"-disabled"),G));"value"in ot&&(ot.value=ot.value||"");var Ze=Object(K.a)(Object(K.a)(Object(K.a)({},y.props.style),We),Ye===E.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return i.createElement(o,{onResize:y.handleResize,disabled:!(s||C)},i.createElement("textarea",Object(A.a)({},ot,{className:nt,style:Ze,ref:y.saveTextArea})))},y.state={textareaStyles:{},resizeStatus:E.NONE},y}return Object(ke.a)(v,[{key:"componentDidUpdate",value:function(y){(y.value!==this.props.value||!S()(y.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var y=this.textArea.selectionStart,Z=this.textArea.selectionEnd;this.textArea.setSelectionRange(y,Z)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),v}(i.Component),ge=w,me=function(P){Object(ye.a)(v,P);var h=Object(I.a)(v);function v(N){var y;Object(L.a)(this,v),y=h.call(this,N),y.resizableTextArea=void 0,y.focus=function(){y.resizableTextArea.textArea.focus()},y.saveTextArea=function(n){y.resizableTextArea=n},y.handleChange=function(n){var f=y.props.onChange;y.setValue(n.target.value,function(){y.resizableTextArea.resizeTextarea()}),f&&f(n)},y.handleKeyDown=function(n){var f=y.props,s=f.onPressEnter,C=f.onKeyDown;n.keyCode===13&&s&&s(n),C&&C(n)};var Z=typeof N.value=="undefined"||N.value===null?N.defaultValue:N.value;return y.state={value:Z},y}return Object(ke.a)(v,[{key:"setValue",value:function(y,Z){"value"in this.props||this.setState({value:y},Z)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return i.createElement(ge,Object(A.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(y){return"value"in y?{value:y.value}:null}}]),v}(i.Component),Y=be.default=me},Zbzq:function(Tt,be,t){Tt.exports={flex_box_center:"flex_box_center___KO-hX",flex_space_between:"flex_space_between___1pDht",flex_box_vertical_center:"flex_box_vertical_center___w0zKf",flex_box_center_end:"flex_box_center_end___1mi35",flex_box_column:"flex_box_column___2lWkX",bg:"bg___3a1Hm",containerTitle:"containerTitle___3z9eN",containerDesc:"containerDesc___16Cd2",listItem:"listItem___1wCBL",title:"title___2fzaI",titleLeft:"titleLeft___1b1ZV",titleRight:"titleRight___2zLBT",acitons:"acitons___O8Z_0",memberManager:"memberManager___1TWeE",menu:"menu___8mwIY"}},ZpRC:function(Tt,be,t){"use strict";function A(Q){return typeof Q=="object"&&Q!=null&&Q.nodeType===1}function L(Q,he){return(!he||Q!=="hidden")&&Q!=="visible"&&Q!=="clip"}function ke(Q,he){if(Q.clientHeighthe||g>Q&&X=he&&V>=fe?g-Q-W:X>he&&Vfe?X-he+R:0}var I=function(Q,he){var fe=window,W=he.scrollMode,R=he.block,g=he.inline,X=he.boundary,V=he.skipOverflowHiddenElements,se=typeof X=="function"?X:function(We){return We!==X};if(!A(Q))throw new TypeError("Invalid target");for(var re=document.scrollingElement||document.documentElement,ie=[],xe=Q;A(xe)&&se(xe);){if((xe=xe.parentElement)===re){ie.push(xe);break}xe!=null&&xe===document.body&&ke(xe)&&!ke(document.documentElement)||xe!=null&&ke(xe,V)&&ie.push(xe)}for(var ne=fe.visualViewport?fe.visualViewport.width:innerWidth,pe=fe.visualViewport?fe.visualViewport.height:innerHeight,J=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,o=Q.getBoundingClientRect(),d=o.height,k=o.width,H=o.top,le=o.right,ae=o.bottom,T=o.left,u=R==="start"||R==="nearest"?H:R==="end"?ae:H+d/2,j=g==="center"?T+k/2:g==="end"?le:T,m=[],l=0;l=0&&T>=0&&ae<=pe&&le<=ne&&H>=me&&ae<=P&&T>=h&&le<=Y)return m;var v=getComputedStyle(S),N=parseInt(v.borderLeftWidth,10),y=parseInt(v.borderTopWidth,10),Z=parseInt(v.borderRightWidth,10),n=parseInt(v.borderBottomWidth,10),f=0,s=0,C="offsetWidth"in S?S.offsetWidth-S.clientWidth-N-Z:0,$="offsetHeight"in S?S.offsetHeight-S.clientHeight-y-n:0;if(re===S)f=R==="start"?u:R==="end"?u-pe:R==="nearest"?ye(b,b+pe,pe,y,n,b+u,b+u+d,d):u-pe/2,s=g==="start"?j:g==="center"?j-ne/2:g==="end"?j-ne:ye(J,J+ne,ne,N,Z,J+j,J+j+k,k),f=Math.max(0,f+b),s=Math.max(0,s+J);else{f=R==="start"?u-me-y:R==="end"?u-P+n+$:R==="nearest"?ye(me,P,w,y,n+$,u,u+d,d):u-(me+w/2)+$/2,s=g==="start"?j-h-N:g==="center"?j-(h+ge/2)+C/2:g==="end"?j-Y+Z+C:ye(h,Y,ge,N,Z+C,j,j+k,k);var G=S.scrollLeft,Oe=S.scrollTop;u+=Oe-(f=Math.max(0,Math.min(Oe+f,S.scrollHeight-w+$))),j+=G-(s=Math.max(0,Math.min(G+s,S.scrollWidth-ge+C)))}m.push({el:S,top:f,left:s})}return m};function i(Q){return Q===Object(Q)&&Object.keys(Q).length!==0}function K(Q,he){he===void 0&&(he="auto");var fe="scrollBehavior"in document.body.style;Q.forEach(function(W){var R=W.el,g=W.top,X=W.left;R.scroll&&fe?R.scroll({top:g,left:X,behavior:he}):(R.scrollTop=g,R.scrollLeft=X)})}function a(Q){return Q===!1?{block:"end",inline:"nearest"}:i(Q)?Q:{block:"start",inline:"nearest"}}function M(Q,he){var fe=!Q.ownerDocument.documentElement.contains(Q);if(i(he)&&typeof he.behavior=="function")return he.behavior(fe?[]:I(Q,he));if(fe)return;var W=a(he);return K(I(Q,W),W.behavior)}var _=be.a=M},Zss7:function(Tt,be,t){var A;(function(L){var ke=/^\s+/,ye=/\s+$/,I=0,i=L.round,K=L.min,a=L.max,M=L.random;function _(n,f){if(n=n||"",f=f||{},n instanceof _)return n;if(!(this instanceof _))return new _(n,f);var s=Q(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=i(100*this._a)/100,this._format=f.format||s.format,this._gradientType=f.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=s.ok,this._tc_id=I++}_.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),f,s,C,$,G,Oe;return f=n.r/255,s=n.g/255,C=n.b/255,f<=.03928?$=f/12.92:$=L.pow((f+.055)/1.055,2.4),s<=.03928?G=s/12.92:G=L.pow((s+.055)/1.055,2.4),C<=.03928?Oe=C/12.92:Oe=L.pow((C+.055)/1.055,2.4),.2126*$+.7152*G+.0722*Oe},setAlpha:function(n){return this._a=m(n),this._roundA=i(100*this._a)/100,this},toHsv:function(){var n=R(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=R(this._r,this._g,this._b),f=i(n.h*360),s=i(n.s*100),C=i(n.v*100);return this._a==1?"hsv("+f+", "+s+"%, "+C+"%)":"hsva("+f+", "+s+"%, "+C+"%, "+this._roundA+")"},toHsl:function(){var n=fe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=fe(this._r,this._g,this._b),f=i(n.h*360),s=i(n.s*100),C=i(n.l*100);return this._a==1?"hsl("+f+", "+s+"%, "+C+"%)":"hsla("+f+", "+s+"%, "+C+"%, "+this._roundA+")"},toHex:function(n){return X(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return V(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(l(this._r,255)*100)+"%",g:i(l(this._g,255)*100)+"%",b:i(l(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(l(this._r,255)*100)+"%, "+i(l(this._g,255)*100)+"%, "+i(l(this._b,255)*100)+"%)":"rgba("+i(l(this._r,255)*100)+"%, "+i(l(this._g,255)*100)+"%, "+i(l(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:u[X(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var f="#"+se(this._r,this._g,this._b,this._a),s=f,C=this._gradientType?"GradientType = 1, ":"";if(n){var $=_(n);s="#"+se($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+C+"startColorstr="+f+",endColorstr="+s+")"},toString:function(n){var f=!!n;n=n||this._format;var s=!1,C=this._a<1&&this._a>=0,$=!f&&C&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return $?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return _(this.toString())},_applyModification:function(n,f){var s=n.apply(null,[this].concat([].slice.call(f)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(ne,arguments)},brighten:function(){return this._applyModification(pe,arguments)},darken:function(){return this._applyModification(J,arguments)},desaturate:function(){return this._applyModification(re,arguments)},saturate:function(){return this._applyModification(ie,arguments)},greyscale:function(){return this._applyModification(xe,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(n,f){return n.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(le,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(ae,arguments)},splitcomplement:function(){return this._applyCombination(H,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},_.fromRatio=function(n,f){if(typeof n=="object"){var s={};for(var C in n)n.hasOwnProperty(C)&&(C==="a"?s[C]=n[C]:s[C]=Y(n[C]));n=s}return _(n,f)};function Q(n){var f={r:0,g:0,b:0},s=1,C=null,$=null,G=null,Oe=!1,We=!1;return typeof n=="string"&&(n=y(n)),typeof n=="object"&&(N(n.r)&&N(n.g)&&N(n.b)?(f=he(n.r,n.g,n.b),Oe=!0,We=String(n.r).substr(-1)==="%"?"prgb":"rgb"):N(n.h)&&N(n.s)&&N(n.v)?(C=Y(n.s),$=Y(n.v),f=g(n.h,C,$),Oe=!0,We="hsv"):N(n.h)&&N(n.s)&&N(n.l)&&(C=Y(n.s),G=Y(n.l),f=W(n.h,C,G),Oe=!0,We="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=m(s),{ok:Oe,format:n.format||We,r:K(255,a(f.r,0)),g:K(255,a(f.g,0)),b:K(255,a(f.b,0)),a:s}}function he(n,f,s){return{r:l(n,255)*255,g:l(f,255)*255,b:l(s,255)*255}}function fe(n,f,s){n=l(n,255),f=l(f,255),s=l(s,255);var C=a(n,f,s),$=K(n,f,s),G,Oe,We=(C+$)/2;if(C==$)G=Oe=0;else{var Ye=C-$;Oe=We>.5?Ye/(2-C-$):Ye/(C+$);switch(C){case n:G=(f-s)/Ye+(f1&&(Ze-=1),Ze<1/6?ot+(nt-ot)*6*Ze:Ze<1/2?nt:Ze<2/3?ot+(nt-ot)*(2/3-Ze)*6:ot}if(f===0)C=$=G=s;else{var We=s<.5?s*(1+f):s+f-s*f,Ye=2*s-We;C=Oe(Ye,We,n+1/3),$=Oe(Ye,We,n),G=Oe(Ye,We,n-1/3)}return{r:C*255,g:$*255,b:G*255}}function R(n,f,s){n=l(n,255),f=l(f,255),s=l(s,255);var C=a(n,f,s),$=K(n,f,s),G,Oe,We=C,Ye=C-$;if(Oe=C===0?0:Ye/C,C==$)G=0;else{switch(C){case n:G=(f-s)/Ye+(f>1)+720)%360;--f;)C.h=(C.h+$)%360,G.push(_(C));return G}function ae(n,f){f=f||6;for(var s=_(n).toHsv(),C=s.h,$=s.s,G=s.v,Oe=[],We=1/f;f--;)Oe.push(_({h:C,s:$,v:G})),G=(G+We)%1;return Oe}_.mix=function(n,f,s){s=s===0?0:s||50;var C=_(n).toRgb(),$=_(f).toRgb(),G=s/100,Oe={r:($.r-C.r)*G+C.r,g:($.g-C.g)*G+C.g,b:($.b-C.b)*G+C.b,a:($.a-C.a)*G+C.a};return _(Oe)},_.readability=function(n,f){var s=_(n),C=_(f);return(L.max(s.getLuminance(),C.getLuminance())+.05)/(L.min(s.getLuminance(),C.getLuminance())+.05)},_.isReadable=function(n,f,s){var C=_.readability(n,f),$,G;G=!1,$=Z(s);switch($.level+$.size){case"AAsmall":case"AAAlarge":G=C>=4.5;break;case"AAlarge":G=C>=3;break;case"AAAsmall":G=C>=7;break}return G},_.mostReadable=function(n,f,s){var C=null,$=0,G,Oe,We,Ye;s=s||{},Oe=s.includeFallbackColors,We=s.level,Ye=s.size;for(var ot=0;ot$&&($=G,C=_(f[ot]));return _.isReadable(n,C,{level:We,size:Ye})||!Oe?C:(s.includeFallbackColors=!1,_.mostReadable(n,["#fff","#000"],s))};var T=_.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"},u=_.hexNames=j(T);function j(n){var f={};for(var s in n)n.hasOwnProperty(s)&&(f[n[s]]=s);return f}function m(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function l(n,f){w(n)&&(n="100%");var s=ge(n);return n=K(f,a(0,parseFloat(n))),s&&(n=parseInt(n*f,10)/100),L.abs(n-f)<1e-6?1:n%f/parseFloat(f)}function S(n){return K(1,a(0,n))}function E(n){return parseInt(n,16)}function w(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function ge(n){return typeof n=="string"&&n.indexOf("%")!=-1}function me(n){return n.length==1?"0"+n:""+n}function Y(n){return n<=1&&(n=n*100+"%"),n}function P(n){return L.round(parseFloat(n)*255).toString(16)}function h(n){return E(n)/255}var v=function(){var n="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",s="(?:"+f+")|(?:"+n+")",C="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",$="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+$),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 N(n){return!!v.CSS_UNIT.exec(n)}function y(n){n=n.replace(ke,"").replace(ye,"").toLowerCase();var f=!1;if(T[n])n=T[n],f=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=v.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=v.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=v.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=v.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=v.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=v.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=v.hex8.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),a:h(s[4]),format:f?"name":"hex8"}:(s=v.hex6.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),format:f?"name":"hex"}:(s=v.hex4.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),a:h(s[4]+""+s[4]),format:f?"name":"hex8"}:(s=v.hex3.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),format:f?"name":"hex"}:!1}function Z(n){var f,s;return n=n||{level:"AA",size:"small"},f=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:f,size:s}}Tt.exports?Tt.exports=_:!(A=function(){return _}.call(be,t,be,Tt),A!==void 0&&(Tt.exports=A))})(Math)},bT9E:function(Tt,be,t){"use strict";t.d(be,"a",function(){return L});var A=t("VTBJ");function L(ke,ye){var I=Object(A.a)({},ke);return Array.isArray(ye)&&ye.forEach(function(i){delete I[i]}),I}},biw7:function(Tt,be,t){"use strict";var A=t("q1tI"),L=t.n(A),ke=A.createContext(null);be.a=ke},fAei:function(Tt,be,t){"use strict";t.d(be,"a",function(){return re.a});var A=t("rePB"),L=t("VTBJ"),ke=t("KQm4"),ye=t("1OyB"),I=t("vuIU"),i=t("Ji7U"),K=t("LK+K"),a=t("q1tI"),M=t("4IlW"),_=t("Kwbf"),Q=t("TSYQ"),he=t.n(Q),fe=t("sboe"),W=t("OZM5"),R=t("815F"),g=t("ODXe"),X=t("Ff2n"),V=t("+nKL"),se=t("8XRh"),re=t("WaYH"),ie=function(Y,P){var h=Y.className,v=Y.style,N=Y.motion,y=Y.motionNodes,Z=Y.motionType,n=Y.onMotionStart,f=Y.onMotionEnd,s=Y.active,C=Y.treeNodeRequiredProps,$=Object(X.a)(Y,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),G=a.useState(!0),Oe=Object(g.a)(G,2),We=Oe[0],Ye=Oe[1],ot=a.useContext(fe.a),nt=ot.prefixCls,Ze=a.useRef(!1),xt=function(){Ze.current||f(),Ze.current=!0};return Object(a.useEffect)(function(){y&&Z==="hide"&&We&&Ye(!1)},[y]),Object(a.useEffect)(function(){return y&&n(),function(){y&&xt()}},[]),y?a.createElement(se.default,Object.assign({ref:P,visible:We},N,{motionAppear:Z==="show",onAppearEnd:xt,onLeaveEnd:xt}),function(q,Ne){var Ve=q.className,Ie=q.style;return a.createElement("div",{ref:Ne,className:he()("".concat(nt,"-treenode-motion"),Ve),style:Ie},y.map(function(qe){var O=qe.data,oe=O.key,de=Object(X.a)(O,["key"]),we=qe.isStart,Pe=qe.isEnd;delete de.children;var Ae=Object(R.f)(oe,C);return a.createElement(re.a,Object.assign({},de,Ae,{active:s,data:qe.data,key:oe,isStart:we,isEnd:Pe}))}))}):a.createElement(re.a,Object.assign({domRef:P,className:h,style:v},$,{active:s}))};ie.displayName="MotionTreeNode";var xe=a.forwardRef(ie),ne=xe;function pe(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],P=me.length,h=Y.length;if(Math.abs(P-h)!==1)return{add:!1,key:null};function v(N,y){var Z=new Map;N.forEach(function(f){Z.set(f,!0)});var n=y.filter(function(f){return!Z.has(f)});return n.length===1?n[0]:null}return P ").concat(Y);return Y}var j=function(Y,P){var h=Y.prefixCls,v=Y.data,N=Y.selectable,y=Y.checkable,Z=Y.expandedKeys,n=Y.selectedKeys,f=Y.checkedKeys,s=Y.loadedKeys,C=Y.loadingKeys,$=Y.halfCheckedKeys,G=Y.keyEntities,Oe=Y.disabled,We=Y.dragging,Ye=Y.dragOverNodeKey,ot=Y.dropPosition,nt=Y.motion,Ze=Y.height,xt=Y.itemHeight,q=Y.virtual,Ne=Y.focusable,Ve=Y.activeItem,Ie=Y.focused,qe=Y.tabIndex,O=Y.onKeyDown,oe=Y.onFocus,de=Y.onBlur,we=Y.onActiveChange,Pe=Y.onListChangeStart,Ae=Y.onListChangeEnd,Ke=Object(X.a)(Y,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),Te=a.useRef(null);a.useImperativeHandle(P,function(){return{scrollTo:function(rt){Te.current.scrollTo(rt)}}});var Xe=a.useState(Z),et=Object(g.a)(Xe,2),at=et[0],Qe=et[1],vt=a.useState(v),ct=Object(g.a)(vt,2),jt=ct[0],dt=ct[1],Je=a.useState(v),st=Object(g.a)(Je,2),tt=st[0],He=st[1],ee=a.useState([]),Ce=Object(g.a)(ee,2),F=Ce[0],r=Ce[1],c=a.useState(null),ue=Object(g.a)(c,2),z=ue[0],Re=ue[1];function je(){dt(v),He(v),r([]),Re(null),Ae()}a.useEffect(function(){Qe(Z);var Se=pe(at,Z);if(Se.key!==null)if(Se.add){var rt=jt.findIndex(function(It){var Yt=It.data.key;return Yt===Se.key}),Be=ae(J(jt,v,Se.key),q,Ze,xt),Dt=jt.slice();Dt.splice(rt+1,0,le),He(Dt),r(Be),Re("show")}else{var yt=v.findIndex(function(It){var Yt=It.data.key;return Yt===Se.key}),Ht=ae(J(v,jt,Se.key),q,Ze,xt),Ut=v.slice();Ut.splice(yt+1,0,le),He(Ut),r(Ht),Re("hide")}else jt!==v&&(dt(v),He(v))},[Z,v]),a.useEffect(function(){We||je()},[We]);var B=nt?tt:v,ve={expandedKeys:Z,selectedKeys:n,loadedKeys:s,loadingKeys:C,checkedKeys:f,halfCheckedKeys:$,dragOverNodeKey:Ye,dropPosition:ot,keyEntities:G};return a.createElement(a.Fragment,null,Ie&&Ve&&a.createElement("span",{style:b,"aria-live":"assertive"},u(Ve)),a.createElement("div",{role:"tree"},a.createElement("input",{style:b,disabled:Ne===!1||Oe,tabIndex:Ne!==!1?qe:null,onKeyDown:O,onFocus:oe,onBlur:de,value:"",onChange:o})),a.createElement(V.a,Object.assign({},Ke,{data:B,itemKey:T,height:Ze,fullHeight:!1,virtual:q,itemHeight:xt,prefixCls:"".concat(h,"-list"),ref:Te}),function(Se){var rt=Se.pos,Be=Se.data,Dt=Be.key,yt=Object(X.a)(Be,["key"]),Ht=Se.isStart,Ut=Se.isEnd,It=Object(R.e)(Dt,rt);delete yt.children;var Yt=Object(R.f)(It,ve);return a.createElement(ne,Object.assign({},yt,Yt,{active:Ve&&Dt===Ve.data.key,pos:rt,data:Se.data,isStart:Ht,isEnd:Ut,motion:nt,motionNodes:Dt===d?F:null,motionType:z,onMotionStart:Pe,onMotionEnd:je,treeNodeRequiredProps:ve,onMouseMove:function(){we(null)}}))}))},m=a.forwardRef(j);m.displayName="NodeList";var l=m,S=t("NvD2"),E=function(me){Object(i.a)(P,me);var Y=Object(K.a)(P);function P(){var h;return Object(ye.a)(this,P),h=Y.apply(this,arguments),h.destroyed=!1,h.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},h.listRef=a.createRef(),h.onNodeDragStart=function(v,N){var y=h.state,Z=y.expandedKeys,n=y.keyEntities,f=h.props.onDragStart,s=N.props.eventKey;h.dragNode=N;var C=Object(W.b)(Z,s);h.setState({dragging:!0,dragNodesKeys:Object(W.g)(s,n)}),h.setExpandedKeys(C),f&&f({event:v,node:Object(R.b)(N.props)})},h.onNodeDragEnter=function(v,N){var y=h.state,Z=y.expandedKeys,n=y.keyEntities,f=y.dragNodesKeys,s=h.props.onDragEnter,C=N.props,$=C.pos,G=C.eventKey;if(!h.dragNode||f.indexOf(G)!==-1)return;var Oe=Object(W.c)(v,N);if(h.dragNode.props.eventKey===G&&Oe===0){h.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){h.setState({dragOverNodeKey:G,dropPosition:Oe}),h.delayedDragEnterLogic||(h.delayedDragEnterLogic={}),Object.keys(h.delayedDragEnterLogic).forEach(function(We){clearTimeout(h.delayedDragEnterLogic[We])}),h.delayedDragEnterLogic[$]=window.setTimeout(function(){if(!h.state.dragging)return;var We=Object(ke.a)(Z),Ye=n[G];Ye&&(Ye.children||[]).length&&(We=Object(W.a)(Z,G)),"expandedKeys"in h.props||h.setExpandedKeys(We),s&&s({event:v,node:Object(R.b)(N.props),expandedKeys:We})},400)},0)},h.onNodeDragOver=function(v,N){var y=h.state.dragNodesKeys,Z=h.props.onDragOver,n=N.props.eventKey;if(y.indexOf(n)!==-1)return;if(h.dragNode&&n===h.state.dragOverNodeKey){var f=Object(W.c)(v,N);if(f===h.state.dropPosition)return;h.setState({dropPosition:f})}Z&&Z({event:v,node:Object(R.b)(N.props)})},h.onNodeDragLeave=function(v,N){var y=h.props.onDragLeave;h.setState({dragOverNodeKey:""}),y&&y({event:v,node:Object(R.b)(N.props)})},h.onNodeDragEnd=function(v,N){var y=h.props.onDragEnd;h.setState({dragOverNodeKey:""}),h.cleanDragState(),y&&y({event:v,node:Object(R.b)(N.props)}),h.dragNode=null},h.onNodeDrop=function(v,N){var y=h.state,Z=y.dragNodesKeys,n=Z===void 0?[]:Z,f=y.dropPosition,s=h.props.onDrop,C=N.props,$=C.eventKey,G=C.pos;if(h.setState({dragOverNodeKey:""}),h.cleanDragState(),n.indexOf($)!==-1){Object(_.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Oe=Object(W.k)(G),We={event:v,node:Object(R.b)(N.props),dragNode:h.dragNode?Object(R.b)(h.dragNode.props):null,dragNodesKeys:n.slice(),dropPosition:f+Number(Oe[Oe.length-1]),dropToGap:!1};f!==0&&(We.dropToGap=!0),s&&s(We),h.dragNode=null},h.cleanDragState=function(){var v=h.state.dragging;v&&h.setState({dragging:!1})},h.onNodeClick=function(v,N){var y=h.props.onClick;y&&y(v,N)},h.onNodeDoubleClick=function(v,N){var y=h.props.onDoubleClick;y&&y(v,N)},h.onNodeSelect=function(v,N){var y=h.state.selectedKeys,Z=h.state.keyEntities,n=h.props,f=n.onSelect,s=n.multiple,C=N.selected,$=N.key,G=!C;G?s?y=Object(W.a)(y,$):y=[$]:y=Object(W.b)(y,$);var Oe=y.map(function(We){var Ye=Z[We];return Ye?Ye.node:null}).filter(function(We){return We});h.setUncontrolledState({selectedKeys:y}),f&&f(y,{event:"select",selected:G,node:N,selectedNodes:Oe,nativeEvent:v.nativeEvent})},h.onNodeCheck=function(v,N,y){var Z=h.state,n=Z.keyEntities,f=Z.checkedKeys,s=Z.halfCheckedKeys,C=h.props,$=C.checkStrictly,G=C.onCheck,Oe=N.key,We,Ye={event:"check",node:N,checked:y,nativeEvent:v.nativeEvent};if($){var ot=y?Object(W.a)(f,Oe):Object(W.b)(f,Oe),nt=Object(W.b)(s,Oe);We={checked:ot,halfChecked:nt},Ye.checkedNodes=ot.map(function(Ie){return n[Ie]}).filter(function(Ie){return Ie}).map(function(Ie){return Ie.node}),h.setUncontrolledState({checkedKeys:ot})}else{var Ze=Object(S.a)([].concat(Object(ke.a)(f),[Oe]),!0,n),xt=Ze.checkedKeys,q=Ze.halfCheckedKeys;if(!y){var Ne=new Set(xt);Ne.delete(Oe);var Ve=Object(S.a)(Array.from(Ne),{checked:!1,halfCheckedKeys:q},n);xt=Ve.checkedKeys,q=Ve.halfCheckedKeys}We=xt,Ye.checkedNodes=[],Ye.checkedNodesPositions=[],Ye.halfCheckedKeys=q,xt.forEach(function(Ie){var qe=n[Ie];if(!qe)return;var O=qe.node,oe=qe.pos;Ye.checkedNodes.push(O),Ye.checkedNodesPositions.push({node:O,pos:oe})}),h.setUncontrolledState({checkedKeys:xt},!1,{halfCheckedKeys:q})}G&&G(We,Ye)},h.onNodeLoad=function(v){return new Promise(function(N){h.setState(function(y){var Z=y.loadedKeys,n=Z===void 0?[]:Z,f=y.loadingKeys,s=f===void 0?[]:f,C=h.props,$=C.loadData,G=C.onLoad,Oe=v.key;if(!$||n.indexOf(Oe)!==-1||s.indexOf(Oe)!==-1)return{};var We=$(v);return We.then(function(){var Ye=h.state,ot=Ye.loadedKeys,nt=Ye.loadingKeys,Ze=Object(W.a)(ot,Oe),xt=Object(W.b)(nt,Oe);G&&G(Ze,{event:"load",node:v}),h.setUncontrolledState({loadedKeys:Ze}),h.setState({loadingKeys:xt}),N()}),{loadingKeys:Object(W.a)(s,Oe)}})})},h.onNodeMouseEnter=function(v,N){var y=h.props.onMouseEnter;y&&y({event:v,node:N})},h.onNodeMouseLeave=function(v,N){var y=h.props.onMouseLeave;y&&y({event:v,node:N})},h.onNodeContextMenu=function(v,N){var y=h.props.onRightClick;y&&(v.preventDefault(),y({event:v,node:N}))},h.onFocus=function(){var v=h.props.onFocus;h.setState({focused:!0}),v&&v.apply(void 0,arguments)},h.onBlur=function(){var v=h.props.onBlur;h.setState({focused:!1}),h.onActiveChange(null),v&&v.apply(void 0,arguments)},h.getTreeNodeRequiredProps=function(){var v=h.state,N=v.expandedKeys,y=v.selectedKeys,Z=v.loadedKeys,n=v.loadingKeys,f=v.checkedKeys,s=v.halfCheckedKeys,C=v.dragOverNodeKey,$=v.dropPosition,G=v.keyEntities;return{expandedKeys:N||[],selectedKeys:y||[],loadedKeys:Z||[],loadingKeys:n||[],checkedKeys:f||[],halfCheckedKeys:s||[],dragOverNodeKey:C,dropPosition:$,keyEntities:G}},h.setExpandedKeys=function(v){var N=h.state.treeData,y=Object(R.d)(N,v);h.setUncontrolledState({expandedKeys:v,flattenNodes:y},!0)},h.onNodeExpand=function(v,N){var y=h.state.expandedKeys,Z=h.state.listChanging,n=h.props,f=n.onExpand,s=n.loadData,C=N.key,$=N.expanded;if(Z)return;var G=y.indexOf(C),Oe=!$;if(Object(_.a)($&&G!==-1||!$&&G===-1,"Expand state not sync with index check"),Oe?y=Object(W.a)(y,C):y=Object(W.b)(y,C),h.setExpandedKeys(y),f&&f(y,{node:N,expanded:Oe,nativeEvent:v.nativeEvent}),Oe&&s){var We=h.onNodeLoad(N);We&&We.then(function(){var Ye=Object(R.d)(h.state.treeData,y);h.setUncontrolledState({flattenNodes:Ye})})}},h.onListChangeStart=function(){h.setUncontrolledState({listChanging:!0})},h.onListChangeEnd=function(){setTimeout(function(){h.setUncontrolledState({listChanging:!1})})},h.onActiveChange=function(v){var N=h.state.activeKey,y=h.props.onActiveChange;if(N===v)return;h.setState({activeKey:v}),v!==null&&h.scrollTo({key:v}),y&&y(v)},h.getActiveItem=function(){var v=h.state,N=v.activeKey,y=v.flattenNodes;return N===null?null:y.find(function(Z){var n=Z.data.key;return n===N})||null},h.offsetActiveKey=function(v){var N=h.state,y=N.flattenNodes,Z=N.activeKey,n=y.findIndex(function(C){var $=C.data.key;return $===Z});n===-1&&v<0&&(n=y.length),n=(n+v+y.length)%y.length;var f=y[n];if(f){var s=f.data.key;h.onActiveChange(s)}else h.onActiveChange(null)},h.onKeyDown=function(v){var N=h.state,y=N.activeKey,Z=N.expandedKeys,n=N.checkedKeys,f=h.props,s=f.onKeyDown,C=f.checkable,$=f.selectable;switch(v.which){case M.a.UP:{h.offsetActiveKey(-1),v.preventDefault();break}case M.a.DOWN:{h.offsetActiveKey(1),v.preventDefault();break}}var G=h.getActiveItem();if(G&&G.data){var Oe=h.getTreeNodeRequiredProps(),We=G.data.isLeaf===!1||!!(G.data.children||[]).length,Ye=Object(R.b)(Object(L.a)(Object(L.a)({},Object(R.f)(y,Oe)),{},{data:G.data,active:!0}));switch(v.which){case M.a.LEFT:{We&&Z.includes(y)?h.onNodeExpand({},Ye):G.parent&&h.onActiveChange(G.parent.data.key),v.preventDefault();break}case M.a.RIGHT:{We&&!Z.includes(y)?h.onNodeExpand({},Ye):G.children&&G.children.length&&h.onActiveChange(G.children[0].data.key),v.preventDefault();break}case M.a.ENTER:case M.a.SPACE:{C&&!Ye.disabled&&Ye.checkable!==!1&&!Ye.disableCheckbox?h.onNodeCheck({},Ye,!n.includes(y)):!C&&$&&!Ye.disabled&&Ye.selectable!==!1&&h.onNodeSelect({},Ye);break}}}s&&s(v)},h.setUncontrolledState=function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(h.destroyed)return;var Z=!1,n=!0,f={};Object.keys(v).forEach(function(s){if(s in h.props){n=!1;return}Z=!0,f[s]=v[s]}),Z&&(!N||n)&&h.setState(Object(L.a)(Object(L.a)({},f),y))},h.scrollTo=function(v){h.listRef.current.scrollTo(v)},h}return Object(I.a)(P,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var v,N=this.state,y=N.focused,Z=N.flattenNodes,n=N.keyEntities,f=N.dragging,s=N.activeKey,C=this.props,$=C.prefixCls,G=C.className,Oe=C.style,We=C.showLine,Ye=C.focusable,ot=C.tabIndex,nt=ot===void 0?0:ot,Ze=C.selectable,xt=C.showIcon,q=C.icon,Ne=C.switcherIcon,Ve=C.draggable,Ie=C.checkable,qe=C.checkStrictly,O=C.disabled,oe=C.motion,de=C.loadData,we=C.filterTreeNode,Pe=C.height,Ae=C.itemHeight,Ke=C.virtual,Te=C.titleRender,Xe=C.onContextMenu,et=Object(W.f)(this.props);return a.createElement(fe.a.Provider,{value:{prefixCls:$,selectable:Ze,showIcon:xt,icon:q,switcherIcon:Ne,draggable:Ve,checkable:Ie,checkStrictly:qe,disabled:O,keyEntities:n,loadData:de,filterTreeNode:we,titleRender:Te,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},a.createElement("div",{className:he()($,G,(v={},Object(A.a)(v,"".concat($,"-show-line"),We),Object(A.a)(v,"".concat($,"-focused"),y),Object(A.a)(v,"".concat($,"-active-focused"),s!==null),v))},a.createElement(l,Object.assign({ref:this.listRef,prefixCls:$,style:Oe,data:Z,disabled:O,selectable:Ze,checkable:!!Ie,motion:oe,dragging:f,height:Pe,itemHeight:Ae,virtual:Ke,focusable:Ye,focused:y,tabIndex:nt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Xe},this.getTreeNodeRequiredProps(),et))))}}],[{key:"getDerivedStateFromProps",value:function(v,N){var y=N.prevProps,Z={prevProps:v};function n(q){return!y&&q in v||y&&y[q]!==v[q]}var f;if(n("treeData")?f=v.treeData:n("children")&&(Object(_.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=Object(R.c)(v.children)),f){Z.treeData=f;var s=Object(R.a)(f);Z.keyEntities=Object(L.a)(Object(A.a)({},d,H),s.keyEntities)}var C=Z.keyEntities||N.keyEntities;if(n("expandedKeys")||y&&n("autoExpandParent"))Z.expandedKeys=v.autoExpandParent||!y&&v.defaultExpandParent?Object(W.e)(v.expandedKeys,C):v.expandedKeys;else if(!y&&v.defaultExpandAll){var $=Object(L.a)({},C);delete $[d],Z.expandedKeys=Object.keys($).map(function(q){return $[q].key})}else!y&&v.defaultExpandedKeys&&(Z.expandedKeys=v.autoExpandParent||v.defaultExpandParent?Object(W.e)(v.defaultExpandedKeys,C):v.defaultExpandedKeys);if(Z.expandedKeys||delete Z.expandedKeys,f||Z.expandedKeys){var G=Object(R.d)(f||N.treeData,Z.expandedKeys||N.expandedKeys);Z.flattenNodes=G}if(v.selectable&&(n("selectedKeys")?Z.selectedKeys=Object(W.d)(v.selectedKeys,v):!y&&v.defaultSelectedKeys&&(Z.selectedKeys=Object(W.d)(v.defaultSelectedKeys,v))),v.checkable){var Oe;if(n("checkedKeys")?Oe=Object(W.j)(v.checkedKeys)||{}:!y&&v.defaultCheckedKeys?Oe=Object(W.j)(v.defaultCheckedKeys)||{}:f&&(Oe=Object(W.j)(v.checkedKeys)||{checkedKeys:N.checkedKeys,halfCheckedKeys:N.halfCheckedKeys}),Oe){var We=Oe,Ye=We.checkedKeys,ot=Ye===void 0?[]:Ye,nt=We.halfCheckedKeys,Ze=nt===void 0?[]:nt;if(!v.checkStrictly){var xt=Object(S.a)(ot,!0,C);ot=xt.checkedKeys,Ze=xt.halfCheckedKeys}Z.checkedKeys=ot,Z.halfCheckedKeys=Ze}}return n("loadedKeys")&&(Z.loadedKeys=v.loadedKeys),Z}}]),P}(a.Component);E.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},E.TreeNode=re.a;var w=E,ge=be.b=w},fyJ8:function(Tt,be,t){"use strict";var A=t("rePB"),L=t("VTBJ"),ke=t("Ff2n"),ye=t("U8pU"),I=t("q1tI"),i=t.n(I),K=t("TSYQ"),a=t.n(K),M=t("c+Xe"),_=t("sR1s");function Q(g){return g&&Object(ye.a)(g)==="object"&&!Array.isArray(g)&&!I.isValidElement(g)}function he(g){return typeof g=="string"?!0:Object(M.c)(g)}function fe(g,X){var V,se=g.prefixCls,re=g.className,ie=g.record,xe=g.index,ne=g.dataIndex,pe=g.render,J=g.children,b=g.component,o=b===void 0?"td":b,d=g.colSpan,k=g.rowSpan,H=g.fixLeft,le=g.fixRight,ae=g.firstFixLeft,T=g.lastFixLeft,u=g.firstFixRight,j=g.lastFixRight,m=g.appendNode,l=g.additionalProps,S=l===void 0?{}:l,E=g.ellipsis,w=g.align,ge=g.rowType,me=g.isSticky,Y="".concat(se,"-cell"),P,h;if(J)h=J;else{var v=Object(_.b)(ie,ne);if(h=v,pe){var N=pe(v,ie,xe);Q(N)?(h=N.children,P=N.props):h=N}}Object(ye.a)(h)==="object"&&!Array.isArray(h)&&!I.isValidElement(h)&&(h=null),E&&(T||u)&&(h=I.createElement("span",{className:"".concat(Y,"-content")},h));var y=P||{},Z=y.colSpan,n=y.rowSpan,f=y.style,s=y.className,C=Object(ke.a)(y,["colSpan","rowSpan","style","className"]),$=Z!==void 0?Z:d,G=n!==void 0?n:k;if($===0||G===0)return null;var Oe={},We=typeof H=="number",Ye=typeof le=="number";We&&(Oe.position="sticky",Oe.left=H),Ye&&(Oe.position="sticky",Oe.right=le);var ot={};w&&(ot.textAlign=w);var nt,Ze=E===!0?{showTitle:!0}:E;Ze&&(Ze.showTitle||ge==="header")&&(typeof h=="string"||typeof h=="number"?nt=h.toString():I.isValidElement(h)&&typeof h.props.children=="string"&&(nt=h.props.children));var xt=Object(L.a)(Object(L.a)(Object(L.a)({title:nt},C),S),{},{colSpan:$&&$!==1?$:null,rowSpan:G&&G!==1?G:null,className:a()(Y,re,(V={},Object(A.a)(V,"".concat(Y,"-fix-left"),We),Object(A.a)(V,"".concat(Y,"-fix-left-first"),ae),Object(A.a)(V,"".concat(Y,"-fix-left-last"),T),Object(A.a)(V,"".concat(Y,"-fix-right"),Ye),Object(A.a)(V,"".concat(Y,"-fix-right-first"),u),Object(A.a)(V,"".concat(Y,"-fix-right-last"),j),Object(A.a)(V,"".concat(Y,"-ellipsis"),E),Object(A.a)(V,"".concat(Y,"-with-append"),m),Object(A.a)(V,"".concat(Y,"-fix-sticky"),(We||Ye)&&me),V),S.className,s),style:Object(L.a)(Object(L.a)(Object(L.a)(Object(L.a)({},S.style),ot),Oe),f),ref:he(o)?X:null});return I.createElement(o,Object.assign({},xt),m,h)}var W=I.forwardRef(fe);W.displayName="Cell";var R=I.memo(W,function(g,X){return X.shouldCellUpdate?!X.shouldCellUpdate(X.record,g.record):!1});be.a=R},h78n:function(Tt,be,t){"use strict";t.d(be,"a",function(){return ae});var A=t("q1tI"),L=t.n(A),ke=t("TSYQ"),ye=t.n(ke),I={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},i=function(j){var m=j.map(function(){return Object(A.useRef)()}),l=Object(A.useRef)();return Object(A.useEffect)(function(){var S=Date.now(),E=!1;Object.keys(m).forEach(function(w){var ge=m[w].current;if(!ge)return;E=!0;var me=ge.style;me.transitionDuration=".3s, .3s, .3s, .06s",l.current&&S-l.current<100&&(me.transitionDuration="0s, 0s")}),E&&(l.current=Date.now())}),[m]};function K(){return K=Object.assign||function(u){for(var j=1;ju.length)&&(j=u.length);for(var m=0,l=new Array(j);m=0)continue;if(!Object.prototype.propertyIsEnumerable.call(u,l))continue;m[l]=u[l]}}return m}function R(u,j){if(u==null)return{};var m={},l=Object.keys(u),S,E;for(E=0;E=0)continue;m[S]=u[S]}return m}var g=function(j){var m=j.className,l=j.percent,S=j.prefixCls,E=j.strokeColor,w=j.strokeLinecap,ge=j.strokeWidth,me=j.style,Y=j.trailColor,P=j.trailWidth,h=j.transition,v=W(j,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete v.gapPosition;var N=Array.isArray(l)?l:[l],y=Array.isArray(E)?E:[E],Z=i(N),n=a(Z,1),f=n[0],s=ge/2,C=100-ge/2,$="M ".concat(w==="round"?s:0,",").concat(s,` + L `).concat(w==="round"?C:100,",").concat(s),G="0 0 100 ".concat(ge),Oe=0;return L.a.createElement("svg",K({className:ye()("".concat(S,"-line"),m),viewBox:G,preserveAspectRatio:"none",style:me},v),L.a.createElement("path",{className:"".concat(S,"-line-trail"),d:$,strokeLinecap:w,stroke:Y,strokeWidth:P||ge,fillOpacity:"0"}),N.map(function(We,Ye){var ot={strokeDasharray:"".concat(We,"px, 100px"),strokeDashoffset:"-".concat(Oe,"px"),transition:h||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},nt=y[Ye]||y[y.length-1];return Oe+=We,L.a.createElement("path",{key:Ye,className:"".concat(S,"-line-path"),d:$,strokeLinecap:w,stroke:nt,strokeWidth:ge,fillOpacity:"0",ref:f[Ye],style:ot})}))};g.defaultProps=I;var X=g;function V(){return V=Object.assign||function(u){for(var j=1;ju.length)&&(j=u.length);for(var m=0,l=new Array(j);m=0)continue;if(!Object.prototype.propertyIsEnumerable.call(u,l))continue;m[l]=u[l]}}return m}function b(u,j){if(u==null)return{};var m={},l=Object.keys(u),S,E;for(E=0;E=0)continue;m[S]=u[S]}return m}var o=0;function d(u){return+u.replace("%","")}function k(u){return Array.isArray(u)?u:[u]}function H(u,j,m,l){var S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,E=arguments.length>5?arguments[5]:void 0,w=50-l/2,ge=0,me=-w,Y=0,P=-2*w;switch(E){case"left":ge=-w,me=0,Y=2*w,P=0;break;case"right":ge=w,me=0,Y=-2*w,P=0;break;case"bottom":me=w,P=2*w;break;default:}var h="M 50,50 m ".concat(ge,",").concat(me,` a `).concat(w,",").concat(w," 0 1 1 ").concat(Y,",").concat(-P,` - a `).concat(w,",").concat(w," 0 1 1 ").concat(-Y,",").concat(P),v=Math.PI*2*w,T={stroke:m,strokeDasharray:"".concat(j/100*(v-S),"px ").concat(v,"px"),strokeDashoffset:"-".concat(S/2+u/100*(v-S),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:h,pathStyle:T}}var le=function(j){var m=j.prefixCls,l=j.strokeWidth,S=j.trailWidth,E=j.gapDegree,w=j.gapPosition,ge=j.trailColor,me=j.strokeLinecap,Y=j.style,P=j.className,h=j.strokeColor,v=j.percent,T=J(j,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),y=Object(A.useMemo)(function(){return o+=1,o},[]),Z=H(0,100,ge,l,E,w),n=Z.pathString,f=Z.pathStyle,s=k(v),C=k(h),$=C.find(function(ot){return Object.prototype.toString.call(ot)==="[object Object]"}),G=i(s),Oe=se(G,1),We=Oe[0],Ye=function(){var nt=0;return s.map(function(Ze,xt){var q=C[xt]||C[C.length-1],Te=Object.prototype.toString.call(q)==="[object Object]"?"url(#".concat(m,"-gradient-").concat(y,")"):"",Ve=H(nt,Ze,q,l,E,w);return nt+=Ze,L.a.createElement("path",{key:xt,className:"".concat(m,"-circle-path"),d:Ve.pathString,stroke:Te,strokeLinecap:me,strokeWidth:l,opacity:Ze===0?0:1,fillOpacity:"0",style:Ve.pathStyle,ref:We[xt]})})};return L.a.createElement("svg",V({className:ye()("".concat(m,"-circle"),P),viewBox:"0 0 100 100",style:Y},T),$&&L.a.createElement("defs",null,L.a.createElement("linearGradient",{id:"".concat(m,"-gradient-").concat(y),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys($).sort(function(ot,nt){return d(ot)-d(nt)}).map(function(ot,nt){return L.a.createElement("stop",{key:nt,offset:ot,stopColor:$[ot]})}))),L.a.createElement("path",{className:"".concat(m,"-circle-trail"),d:n,stroke:ge,strokeLinecap:me,strokeWidth:S||l,fillOpacity:"0",style:f}),Ye().reverse())};le.defaultProps=I;var ae=le,N={Line:X,Circle:ae}},hW8S:function(Nt,be,t){"use strict";t.d(be,"a",function(){return ye}),t.d(be,"c",function(){return I}),t.d(be,"b",function(){return i});var A=t("VTBJ"),L=t("Ff2n"),ke=t("Kwbf"),ye="RC_TABLE_INTERNAL_COL_DEFINE";function I(K){var a=K.expandable,M=Object(L.a)(K,["expandable"]);return"expandable"in K?Object(A.a)(Object(A.a)({},M),a):M}function i(K){return Object.keys(K).reduce(function(a,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-")&&(a[M]=K[M]),a},{})}},lx6N:function(Nt,be,t){"use strict";var A=t("2qtc"),L=t("kLXV"),ke=t("+L6B"),ye=t("2/Rp"),I=t("q1tI"),i=t.n(I);function K(a){var M=a.res,_=a.ismodel,Q=a.setismodel;return i.a.createElement(L.a,{visible:_,title:"\u63D0\u793A",footer:null,style:{background:"transparen"},centered:!0,width:670,maskClosable:!1},M==null?void 0:M.message,i.a.createElement("div",{style:{textAlign:"right"}},i.a.createElement(ye.a,{onClick:function(){Q(!1)},type:"primary"},"\u786E\u8BA4")))}be.a=K},mgmH:function(Nt,be,t){"use strict";t.d(be,"d",function(){return fe}),t.d(be,"b",function(){return W}),t.d(be,"e",function(){return R}),t.d(be,"c",function(){return g}),t.d(be,"n",function(){return X}),t.d(be,"g",function(){return V}),t.d(be,"h",function(){return se}),t.d(be,"j",function(){return ie}),t.d(be,"a",function(){return xe}),t.d(be,"l",function(){return ne}),t.d(be,"f",function(){return pe}),t.d(be,"k",function(){return J}),t.d(be,"m",function(){return b}),t.d(be,"i",function(){return o}),t.d(be,"o",function(){return d}),t.d(be,"r",function(){return k}),t.d(be,"q",function(){return H}),t.d(be,"p",function(){return le});var A=t("miYZ"),L=t("tsqr"),ke=t("k1fw"),ye=t("9og8"),I=t("WmNS"),i=t.n(I),K=t("oUNq"),a=t("9kvl"),M=t("1vsH"),_=t("m3rI"),Q=function(){Object(a.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},he=function(){Object(a.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},fe=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return Q(),l.next=3,Object(K.s)(Object(ke.a)({},u));case 3:if(j=l.sent,!(j.status===0)){l.next=7;break}return l.next=7,Object(M.u)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/export_couser_info.json"),query:u}));case 7:he();case 8:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),W=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.q)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_member_act_score")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),R=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.t)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_score")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_score")));case 13:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),g=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.r)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),X=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.y)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),V=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.u)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_homework")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),se=function(){var ae=Object(ye.a)(i.a.mark(function N(u,j){var m;return i.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Object(K.w)(Object(ke.a)({},u));case 2:m=S.sent,m.status===0?(L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/").concat(j))):m.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/").concat(j)));case 4:case"end":return S.stop()}},N)}));return function(u,j){return ae.apply(this,arguments)}}(),re=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return Q(),l.next=3,Object(K.v)(Object(ke.a)({},u));case 3:if(j=l.sent,!(j.status===0)){l.next=7;break}return l.next=7,Object(M.u)("",Object(M.U)({url:_.a.API_SERVER+"/api/homework_commons/".concat(u.categoryId,"/works_list.zip"),query:u}));case 7:he();case 8:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),ie=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return Q(),l.next=3,Object(K.z)(Object(ke.a)({},u));case 3:if(j=l.sent,!(j.status===0)){l.next=7;break}return l.next=7,Object(M.u)("",Object(M.U)({url:_.a.API_SERVER+"/api/polls/".concat(u.categoryId,"/commit_result.xlsx"),query:u}));case 7:he();case 8:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),xe=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/attendances/export_xlsx_data.xlsx"),query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),ne=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/video_study_statics.xlsx"),query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),pe=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/export_course_students_info.xlsx"),query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),J=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/item_banks/export.xlsx",query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),b=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),o=function(){var ae=Object(ye.a)(i.a.mark(function N(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.x)(Object(ke.a)({},u));case 2:j=l.sent,j.status===0?(L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/exercise_score"))):j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/exercise_score")));case 4:case"end":return l.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),d=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),m.next=3,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/export_records/".concat(u.id,".xlsx"),query:u}));case 3:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),k=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),H=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(u==null?void 0:u.ec_year_id,"/ec_training_objectives.xlsx"),query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}(),le=function(){var ae=Object(ye.a)(i.a.mark(function N(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(u==null?void 0:u.ec_year_id,"/ec_graduation_requirements.xlsx"),query:u}));case 2:case"end":return m.stop()}},N)}));return function(u){return ae.apply(this,arguments)}}()},n6Qo:function(Nt,be,t){"use strict";t.d(be,"a",function(){return a});var A=t("q1tI"),L=t("biw7"),ke=t("fyJ8");function ye(M){var _=M.className,Q=M.index,he=M.children,fe=M.colSpan,W=M.rowSpan,R=A.useContext(L.a),g=R.prefixCls,X=R.fixedInfoList,V=X[Q];return A.createElement(ke.a,Object.assign({className:_,index:Q,component:"td",prefixCls:g,record:null,dataIndex:null,render:function(){return{children:he,props:{colSpan:fe,rowSpan:W}}}},V))}function I(M){return A.createElement("tr",Object.assign({},M))}function i(M){var _=M.children,Q=A.useContext(L.a),he=Q.prefixCls;return A.createElement("tfoot",{className:"".concat(he,"-summary")},_)}var K=be.b=i,a={Cell:ye,Row:I}},ogmK:function(Nt,be,t){"use strict";t.d(be,"a",function(){return Za});var A=t("1OyB"),L=t("vuIU"),ke=t("Ji7U"),ye=t("LK+K"),I=t("rePB"),i=t("VTBJ"),K=t("ODXe"),a=t("q1tI"),M=t("TSYQ"),_=t.n(M),Q=t("Kwbf"),he=t("6cGi"),fe=t("U8pU"),W=t("4IlW"),R=a.createContext({}),g=R,X={visibility:"hidden"};function V(e){var p=e.prefixCls,D=e.prevIcon,x=D===void 0?"\u2039":D,te=e.nextIcon,U=te===void 0?"\u203A":te,ce=e.superPrevIcon,De=ce===void 0?"\xAB":ce,Le=e.superNextIcon,_e=Le===void 0?"\xBB":Le,Ge=e.onSuperPrev,ze=e.onSuperNext,Ee=e.onPrev,Ue=e.onNext,Me=e.children,$e=a.useContext(g),Fe=$e.hideNextBtn,it=$e.hidePrevBtn;return a.createElement("div",{className:p},Ge&&a.createElement("button",{type:"button",onClick:Ge,tabIndex:-1,className:"".concat(p,"-super-prev-btn"),style:it?X:{}},De),Ee&&a.createElement("button",{type:"button",onClick:Ee,tabIndex:-1,className:"".concat(p,"-prev-btn"),style:it?X:{}},x),a.createElement("div",{className:"".concat(p,"-view")},Me),Ue&&a.createElement("button",{type:"button",onClick:Ue,tabIndex:-1,className:"".concat(p,"-next-btn"),style:Fe?X:{}},U),ze&&a.createElement("button",{type:"button",onClick:ze,tabIndex:-1,className:"".concat(p,"-super-next-btn"),style:Fe?X:{}},_e))}var se=V;function re(e){var p=a.useContext(g),D=p.hideHeader;if(D)return null;var x=e.prefixCls,te=e.generateConfig,U=e.locale,ce=e.value,De=e.format,Le="".concat(x,"-header");return a.createElement(se,{prefixCls:Le},ce?te.locale.format(U.locale,ce,De):"\xA0")}var ie=re,xe=t("YrtM"),ne=t("KQm4"),pe=new Map;function J(e,p,D){if(pe.get(e)&&cancelAnimationFrame(pe.get(e)),D<=0){pe.set(e,requestAnimationFrame(function(){e.scrollTop=p}));return}var x=p-e.scrollTop,te=x/D*10;pe.set(e,requestAnimationFrame(function(){e.scrollTop+=te,e.scrollTop!==p&&J(e,p,D-10)}))}function b(e,p){var D=p.onLeftRight,x=p.onCtrlLeftRight,te=p.onUpDown,U=p.onPageUpDown,ce=p.onEnter,De=e.which,Le=e.ctrlKey,_e=e.metaKey;switch(De){case W.a.LEFT:if(Le||_e){if(x)return x(-1),!0}else if(D)return D(-1),!0;break;case W.a.RIGHT:if(Le||_e){if(x)return x(1),!0}else if(D)return D(1),!0;break;case W.a.UP:if(te)return te(-1),!0;break;case W.a.DOWN:if(te)return te(1),!0;break;case W.a.PAGE_UP:if(U)return U(-1),!0;break;case W.a.PAGE_DOWN:if(U)return U(1),!0;break;case W.a.ENTER:if(ce)return ce(),!0;break}return!1}function o(e,p,D,x){var te=e;if(!te)switch(p){case"time":te=x?"hh:mm:ss a":"HH:mm:ss";break;case"week":te="gggg-wo";break;case"month":te="YYYY-MM";break;case"quarter":te="YYYY-[Q]Q";break;case"year":te="YYYY";break;default:te=D?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return te}function d(e,p){var D=e==="time"?8:10;return Math.max(D,p.length)+2}var k=null,H=new Set;function le(e){return!k&&typeof window!="undefined"&&window.addEventListener&&(k=function(D){Object(ne.a)(H).forEach(function(x){x(D)})},window.addEventListener("mousedown",k)),H.add(e),function(){H.delete(e),H.size===0&&(window.removeEventListener("mousedown",k),k=null)}}var ae=function(p){return p==="month"||p==="date"?"year":p},N=function(p){return p==="date"?"month":p},u=function(p){return p==="month"||p==="date"?"quarter":p},j=function(p){return p==="date"?"week":p},m={year:ae,month:N,quarter:u,week:j,time:null,date:null};function l(e,p){return e.some(function(D){return D&&D.contains(p)})}function S(e){var p=e.prefixCls,D=e.units,x=e.onSelect,te=e.value,U=e.active,ce=e.hideDisabledOptions,De="".concat(p,"-cell"),Le=a.useContext(g),_e=Le.open,Ge=a.useRef(null),ze=a.useRef(new Map);return a.useLayoutEffect(function(){var Ee=ze.current.get(te);Ee&&_e!==!1&&J(Ge.current,Ee.offsetTop,120)},[te]),a.useLayoutEffect(function(){if(_e){var Ee=ze.current.get(te);Ee&&J(Ge.current,Ee.offsetTop,0)}},[_e]),a.createElement("ul",{className:_()("".concat(p,"-column"),Object(I.a)({},"".concat(p,"-column-active"),U)),ref:Ge,style:{position:"relative"}},D.map(function(Ee){var Ue;return ce&&Ee.disabled?null:a.createElement("li",{key:Ee.value,ref:function($e){ze.current.set(Ee.value,$e)},className:_()(De,(Ue={},Object(I.a)(Ue,"".concat(De,"-disabled"),Ee.disabled),Object(I.a)(Ue,"".concat(De,"-selected"),te===Ee.value),Ue)),onClick:function(){if(Ee.disabled)return;x(Ee.value)}},a.createElement("div",{className:"".concat(De,"-inner")},Ee.label))}))}var E=S;function w(e,p){for(var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",x=String(e);x.length=12,cn%=12);var Qn=a.useMemo(function(){if(!_e)return[!1,!1];var ft=[!0,!0];return yn.forEach(function(Ot){var _t=Ot.disabled,Jt=Ot.value;if(_t)return;Jt>=12?ft[1]=!1:ft[0]=!1}),ft},[_e,yn]),Jn=Object(K.a)(Qn,2),Zn=Jn[0],Gn=Jn[1],la=a.useMemo(function(){return _e?yn.filter(Pt?function(ft){return ft.value>=12}:function(ft){return ft.value<12}).map(function(ft){var Ot=ft.value%12,_t=Ot===0?"12":w(Ot,2);return Object(i.a)(Object(i.a)({},ft),{},{label:_t,value:Ot})}):yn},[_e,yn]),Hn=Z(0,59,Ue,it&&it(cn)),pa=Z(0,59,$e,lt&<(cn,rn));x.current={onUpDown:function(Ot){var _t=pt[te];if(_t)for(var Jt=_t.units.findIndex(function(zn){return zn.value===_t.value}),dn=_t.units.length,Cn=1;Cn1&&(ce=p.addDate(ce,-7)),ce}function O(e,p,D){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(p){case"year":return D.addYear(e,x*10);case"quarter":case"month":return D.addYear(e,x);default:return D.addMonth(e,x)}}var oe=a.createContext({}),de=oe;function we(e){var p=e.cellPrefixCls,D=e.generateConfig,x=e.rangedValue,te=e.hoverRangedValue,U=e.isInView,ce=e.isSameCell,De=e.offsetCell,Le=e.today,_e=e.value;function Ge(ze){var Ee,Ue=De(ze,-1),Me=De(ze,1),$e=P(x,0),Fe=P(x,1),it=P(te,0),lt=P(te,1),Mt=Ie(D,it,lt,ze);function Lt(rn){return ce($e,rn)}function pt(rn){return ce(Fe,rn)}var bt=ce(it,ze),wt=ce(lt,ze),Pt=(Mt||wt)&&(!U(Ue)||pt(Ue)),cn=(Mt||bt)&&(!U(Me)||Lt(Me));return Ee={},Object(I.a)(Ee,"".concat(p,"-in-view"),U(ze)),Object(I.a)(Ee,"".concat(p,"-in-range"),Ie(D,$e,Fe,ze)),Object(I.a)(Ee,"".concat(p,"-range-start"),Lt(ze)),Object(I.a)(Ee,"".concat(p,"-range-end"),pt(ze)),Object(I.a)(Ee,"".concat(p,"-range-start-single"),Lt(ze)&&!Fe),Object(I.a)(Ee,"".concat(p,"-range-end-single"),pt(ze)&&!$e),Object(I.a)(Ee,"".concat(p,"-range-start-near-hover"),Lt(ze)&&(ce(Ue,it)||Ie(D,it,lt,Ue))),Object(I.a)(Ee,"".concat(p,"-range-end-near-hover"),pt(ze)&&(ce(Me,lt)||Ie(D,it,lt,Me))),Object(I.a)(Ee,"".concat(p,"-range-hover"),Mt),Object(I.a)(Ee,"".concat(p,"-range-hover-start"),bt),Object(I.a)(Ee,"".concat(p,"-range-hover-end"),wt),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-start"),Pt),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-end"),cn),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-start-near-range"),Pt&&ce(Ue,Fe)),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-end-near-range"),cn&&ce(Me,$e)),Object(I.a)(Ee,"".concat(p,"-today"),ce(Le,ze)),Object(I.a)(Ee,"".concat(p,"-selected"),ce(_e,ze)),Ee}return Ge}function Pe(e){for(var p=e.prefixCls,D=e.disabledDate,x=e.onSelect,te=e.rowNum,U=e.colNum,ce=e.prefixColumn,De=e.rowClassName,Le=e.baseDate,_e=e.getCellClassName,Ge=e.getCellText,ze=e.getCellNode,Ee=e.getCellDate,Ue=e.titleCell,Me=e.headerCells,$e=a.useContext(g),Fe=$e.onDateMouseEnter,it=$e.onDateMouseLeave,lt="".concat(p,"-cell"),Mt=[],Lt=0;Lt2&&arguments[2]!==void 0?arguments[2]:!1;(jn===$e||ra)&&(Sa(Et),wt&&wt(Et),dn&&dn(Et,Ft),Pt&&!Ve(De,Et,ta)&&Pt(Et))},ga=function(Et){return Kn.current&&Kn.current.onKeyDown?([W.a.LEFT,W.a.RIGHT,W.a.UP,W.a.DOWN,W.a.PAGE_UP,W.a.PAGE_DOWN,W.a.ENTER].includes(Et.which)&&Et.preventDefault(),Kn.current.onKeyDown(Et)):(Object(Q.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},fn=function(Et){Kn.current&&Kn.current.onBlur&&Kn.current.onBlur(Et)};_t&&ja!=="right"&&(_t.current={onKeyDown:ga,onClose:function(){Kn.current&&Kn.current.onClose&&Kn.current.onClose()}}),a.useEffect(function(){Le&&!ca.current&&_n(Le)},[Le]),a.useEffect(function(){ca.current=!1},[]);var Sn,Xn=Object(i.a)(Object(i.a)({},e),{},{operationRef:Kn,prefixCls:x,viewDate:Fn,value:ta,onViewDateChange:Bn,sourceMode:ka,onPanelChange:Zt,disabledDate:jn!=="decade"?Ee:void 0});delete Xn.onChange,delete Xn.onSelect;switch(jn){case"decade":Sn=a.createElement(hn,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"year":Sn=a.createElement(Vt,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"month":Sn=a.createElement(ue,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"quarter":Sn=a.createElement(Be,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"week":Sn=a.createElement(st,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"time":delete Xn.showTime,Sn=a.createElement($,Object.assign({},Xn,Object(fe.a)(Mt)==="object"?Mt:null,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;default:Mt?Sn=a.createElement(dt,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}})):Sn=a.createElement(Qe,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}))}var Ma,Pa,Ea=function(){var Et=De.getNow(),Ft=T(De.getHour(Et),De.getMinute(Et),De.getSecond(Et),qn?Jn:1,va?Gn:1,ft?Hn:1),ra=v(De,Et,Ft[0],Ft[1],Ft[2]);Vn(ra,"submit")};Cn||(Ma=an(x,jn,pt),Pa=en({prefixCls:x,components:xn,needConfirmButton:pa,okDisabled:!ta||Ee&&Ee(ta),locale:ce,showNow:lt,onNow:pa&&Ea,onOk:function(){ta&&(Vn(ta,"submit",!0),tn&&tn(ta))}}));var Aa;if(Lt&&jn==="date"&&$e==="date"&&!Mt){var Ra=De.getNow(),vn="".concat(x,"-today-btn"),oa=Ee&&Ee(Ra);Aa=a.createElement("a",{className:_()(vn,oa&&"".concat(vn,"-disabled")),"aria-disabled":oa,onClick:function(){oa||Vn(Ra,"mouse",!0)}},ce.today)}return a.createElement(g.Provider,{value:Object(i.a)(Object(i.a)({},Ot),{},{hideHeader:"hideHeader"in e?bt:Ot.hideHeader,hidePrevBtn:Ln&&ja==="right",hideNextBtn:Ln&&ja==="left"})},a.createElement("div",{tabIndex:it,className:_()("".concat(x,"-panel"),te,(p={},Object(I.a)(p,"".concat(x,"-panel-has-range"),ua&&ua[0]&&ua[1]),Object(I.a)(p,"".concat(x,"-panel-has-range-hover"),Da&&Da[0]&&Da[1]),Object(I.a)(p,"".concat(x,"-panel-rtl"),yn==="rtl"),p)),style:U,onKeyDown:ga,onBlur:fn,onMouseDown:rn,ref:Jt},Sn,Ma||Pa||Aa?a.createElement("div",{className:"".concat(x,"-footer")},Ma,Pa,Aa):null))}var pn=Pn,sa=t("uciX"),kn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Yn(e){var p,D=e.prefixCls,x=e.popupElement,te=e.popupStyle,U=e.visible,ce=e.dropdownClassName,De=e.dropdownAlign,Le=e.transitionName,_e=e.getPopupContainer,Ge=e.children,ze=e.range,Ee=e.popupPlacement,Ue=e.direction,Me="".concat(D,"-dropdown"),$e=function(){return Ee!==void 0?Ee:Ue==="rtl"?"bottomRight":"bottomLeft"};return a.createElement(sa.a,{showAction:[],hideAction:[],popupPlacement:$e(),builtinPlacements:kn,prefixCls:Me,popupTransitionName:Le,popup:x,popupAlign:De,popupVisible:U,popupClassName:_()(ce,(p={},Object(I.a)(p,"".concat(Me,"-range"),ze),Object(I.a)(p,"".concat(Me,"-rtl"),Ue==="rtl"),p)),popupStyle:te,getPopupContainer:_e},Ge)}var on=Yn;function $t(e){var p=e.open,D=e.value,x=e.isClickOutside,te=e.triggerOpen,U=e.forwardKeyDown,ce=e.blurToCancel,De=e.onSubmit,Le=e.onCancel,_e=e.onFocus,Ge=e.onBlur,ze=Object(a.useState)(!1),Ee=Object(K.a)(ze,2),Ue=Ee[0],Me=Ee[1],$e=Object(a.useState)(!1),Fe=Object(K.a)($e,2),it=Fe[0],lt=Fe[1],Mt=Object(a.useRef)(!1),Lt=Object(a.useRef)(!1),pt={onMouseDown:function(){Me(!0),te(!0)},onKeyDown:function(wt){switch(wt.which){case W.a.ENTER:{p?De()!==!1&&Me(!0):te(!0),wt.preventDefault();return}case W.a.TAB:{Ue&&p&&!wt.shiftKey?(Me(!1),wt.preventDefault()):!Ue&&p&&(!U(wt)&&wt.shiftKey&&(Me(!0),wt.preventDefault()));return}case W.a.ESC:{Me(!0),Le();return}}!p&&![W.a.SHIFT].includes(wt.which)?te(!0):Ue||U(wt)},onFocus:function(wt){Me(!0),lt(!0),_e&&_e(wt)},onBlur:function(wt){if(Mt.current||!x(document.activeElement)){Mt.current=!1;return}ce?setTimeout(function(){x(document.activeElement)&&Le()},0):p&&(te(!1),Lt.current&&De()),lt(!1),Ge&&Ge(wt)}};return Object(a.useEffect)(function(){Lt.current=!1},[p]),Object(a.useEffect)(function(){Lt.current=!0},[D]),Object(a.useEffect)(function(){return le(function(bt){var wt=bt.target;p&&(x(wt)?it||te(!1):(Mt.current=!0,requestAnimationFrame(function(){Mt.current=!1})))})}),[pt,{focused:it,typing:Ue}]}function Gt(e){var p=e.valueTexts,D=e.onTextChange,x=a.useState(""),te=Object(K.a)(x,2),U=te[0],ce=te[1],De=a.useRef([]);De.current=p;function Le(Ge){ce(Ge),D(Ge)}function _e(){ce(De.current[0])}return a.useEffect(function(){p.every(function(Ge){return Ge!==U})&&_e()},[p.join("||")]),[U,Le,_e]}var mt=t("Gytx"),Ct=t.n(mt);function gt(e,p){var D=p.formatList,x=p.generateConfig,te=p.locale;return Object(xe.a)(function(){if(!e)return[[""],""];for(var U="",ce=[],De=0;De1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(_e.current),it){Le(Fe);return}_e.current=requestAnimationFrame(function(){Le(Fe)})}var ze=gt(De,{formatList:D,generateConfig:x,locale:te}),Ee=Object(K.a)(ze,2),Ue=Ee[1];function Me(Fe){Ge(Fe)}function $e(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge(null,Fe)}return Object(a.useEffect)(function(){$e(!0)},[e]),Object(a.useEffect)(function(){return function(){return cancelAnimationFrame(_e.current)}},[]),[Ue,Me,$e]}function Tt(e){var p,D=e.prefixCls,x=D===void 0?"rc-picker":D,te=e.id,U=e.tabIndex,ce=e.style,De=e.className,Le=e.dropdownClassName,_e=e.dropdownAlign,Ge=e.popupStyle,ze=e.transitionName,Ee=e.generateConfig,Ue=e.locale,Me=e.inputReadOnly,$e=e.allowClear,Fe=e.autoFocus,it=e.showTime,lt=e.picker,Mt=lt===void 0?"date":lt,Lt=e.format,pt=e.use12Hours,bt=e.value,wt=e.defaultValue,Pt=e.open,cn=e.defaultOpen,rn=e.defaultOpenValue,Rn=e.suffixIcon,tn=e.clearIcon,xn=e.disabled,yn=e.disabledDate,Qn=e.placeholder,Jn=e.getPopupContainer,Zn=e.pickerRef,Gn=e.panelRender,la=e.onChange,Hn=e.onOpenChange,pa=e.onFocus,qn=e.onBlur,va=e.onMouseDown,ft=e.onMouseUp,Ot=e.onMouseEnter,_t=e.onMouseLeave,Jt=e.onContextMenu,dn=e.onClick,Cn=e.direction,Nn=e.autoComplete,zn=Nn===void 0?"off":Nn,Ln=a.useRef(null),ja=Mt==="date"&&!!it||Mt==="time",ua=me(o(Lt,Mt,it,pt)),Da=a.useRef(null),Kn=a.useRef(null),ca=Object(he.a)(null,{value:bt,defaultValue:wt}),_a=Object(K.a)(ca,2),ea=_a[0],ta=_a[1],Sa=a.useState(ea),na=Object(K.a)(Sa,2),da=na[0],Fn=na[1],_n=a.useRef(null),Bn=Object(he.a)(!1,{value:Pt,defaultValue:cn,postState:function(Bt){return xn?!1:Bt},onChange:function(Bt){Hn&&Hn(Bt),!Bt&&_n.current&&_n.current.onClose&&_n.current.onClose()}}),ba=Object(K.a)(Bn,2),Tn=ba[0],fa=ba[1],jn=gt(da,{formatList:ua,generateConfig:Ee,locale:Ue}),wa=Object(K.a)(jn,2),Ca=wa[0],At=wa[1],ka=Gt({valueTexts:Ca,onTextChange:function(Bt){var Na=Ee.locale.parse(Ue.locale,Bt,ua);Na&&(!yn||!yn(Na))&&Fn(Na)}}),aa=Object(K.a)(ka,3),Zt=aa[0],Vn=aa[1],ga=aa[2],fn=function(Bt){Fn(Bt),ta(Bt),la&&!Ve(Ee,ea,Bt)&&la(Bt,Bt?Ee.locale.format(Ue.locale,Bt,ua[0]):"")},Sn=function(Bt){if(xn&&Bt)return;fa(Bt)},Xn=function(Bt){return Tn&&_n.current&&_n.current.onKeyDown?_n.current.onKeyDown(Bt):(Object(Q.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ma=function(){ft&&ft.apply(void 0,arguments),Ln.current&&(Ln.current.focus(),Sn(!0))},Pa=$t({blurToCancel:ja,open:Tn,value:Zt,triggerOpen:Sn,forwardKeyDown:Xn,isClickOutside:function(Bt){return!l([Da.current,Kn.current],Bt)},onSubmit:function(){return yn&&yn(da)?!1:(fn(da),Sn(!1),ga(),!0)},onCancel:function(){Sn(!1),Fn(ea),ga()},onFocus:pa,onBlur:qn}),Ea=Object(K.a)(Pa,2),Aa=Ea[0],Ra=Ea[1],vn=Ra.focused,oa=Ra.typing;a.useEffect(function(){Tn||(Fn(ea),!Ca.length||Ca[0]===""?Vn(""):At!==Zt&&ga())},[Tn,Ca]),a.useEffect(function(){Tn||ga()},[Mt]),a.useEffect(function(){Fn(ea)},[ea]),Zn&&(Zn.current={focus:function(){Ln.current&&Ln.current.focus()},blur:function(){Ln.current&&Ln.current.blur()}});var ln=Object(i.a)(Object(i.a)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Et=a.createElement(pn,Object.assign({},ln,{generateConfig:Ee,className:_()(Object(I.a)({},"".concat(x,"-panel-focused"),!oa)),value:da,locale:Ue,tabIndex:-1,onChange:Fn,direction:Cn}));Gn&&(Et=Gn(Et));var Ft=a.createElement("div",{className:"".concat(x,"-panel-container"),onMouseDown:function(Bt){Bt.preventDefault()}},Et),ra;Rn&&(ra=a.createElement("span",{className:"".concat(x,"-suffix")},Rn));var Wa;$e&&ea&&!xn&&(Wa=a.createElement("span",{onMouseDown:function(Bt){Bt.preventDefault(),Bt.stopPropagation()},onMouseUp:function(Bt){Bt.preventDefault(),Bt.stopPropagation(),fn(null),Sn(!1)},className:"".concat(x,"-clear")},tn||a.createElement("span",{className:"".concat(x,"-clear-btn")})));var qa=function(Bt,Na){(Na==="submit"||Na!=="key"&&!ja)&&(fn(Bt),Sn(!1))},Ha=Cn==="rtl"?"bottomRight":"bottomLeft",za=ht(Zt,{formatList:ua,generateConfig:Ee,locale:Ue}),Ua=Object(K.a)(za,3),Xa=Ua[0],$a=Ua[1],$n=Ua[2];return a.createElement(g.Provider,{value:{operationRef:_n,hideHeader:Mt==="time",panelRef:Da,onSelect:qa,open:Tn,defaultOpenValue:rn,onDateMouseEnter:$a,onDateMouseLeave:$n}},a.createElement(on,{visible:Tn,popupElement:Ft,popupStyle:Ge,prefixCls:x,dropdownClassName:Le,dropdownAlign:_e,getPopupContainer:Jn,transitionName:ze,popupPlacement:Ha,direction:Cn},a.createElement("div",{className:_()(x,De,(p={},Object(I.a)(p,"".concat(x,"-disabled"),xn),Object(I.a)(p,"".concat(x,"-focused"),vn),Object(I.a)(p,"".concat(x,"-rtl"),Cn==="rtl"),p)),style:ce,onMouseDown:va,onMouseUp:Ma,onMouseEnter:Ot,onMouseLeave:_t,onContextMenu:Jt,onClick:dn},a.createElement("div",{className:_()("".concat(x,"-input"),Object(I.a)({},"".concat(x,"-input-placeholder"),!!Xa)),ref:Kn},a.createElement("input",Object.assign({id:te,tabIndex:U,disabled:xn,readOnly:Me||!oa,value:Xa||Zt,onChange:function(Bt){Vn(Bt.target.value)},autoFocus:Fe,placeholder:Qn,ref:Ln,title:Zt},Aa,{size:d(Mt,ua[0])},Y(e),{autoComplete:zn})),ra,Wa))))}var Wt=function(e){Object(ke.a)(D,e);var p=Object(ye.a)(D);function D(){var x;return Object(A.a)(this,D),x=p.apply(this,arguments),x.pickerRef=a.createRef(),x.focus=function(){x.pickerRef.current&&x.pickerRef.current.focus()},x.blur=function(){x.pickerRef.current&&x.pickerRef.current.blur()},x}return Object(L.a)(D,[{key:"render",value:function(){return a.createElement(Tt,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),D}(a.Component),un=Wt;function St(e,p,D){var x=e.picker,te=e.locale,U=e.selectedValue,ce=e.disabledDate,De=e.disabled,Le=e.generateConfig,_e=P(U,0),Ge=P(U,1);function ze(Fe){var it=Le.getYear(Fe),lt=Le.locale.getWeek(te.locale,Fe);return it*100+lt}function Ee(Fe){var it=Le.getYear(Fe),lt=Le.getMonth(Fe);return it*100+lt}function Ue(Fe){var it=Le.getYear(Fe),lt=ot(Le,Fe);return it*10+lt}var Me=a.useCallback(function(Fe){if(ce&&ce(Fe))return!0;if(De[1]&&Ge)return!xt(Le,Fe,Ge)&&Le.isAfter(Fe,Ge);if(p&&Ge)switch(x){case"quarter":return Ue(Fe)>Ue(Ge);case"month":return Ee(Fe)>Ee(Ge);case"week":return ze(Fe)>ze(Ge);default:return!xt(Le,Fe,Ge)&&Le.isAfter(Fe,Ge)}return!1},[ce,De[1],Ge,p]),$e=a.useCallback(function(Fe){if(ce&&ce(Fe))return!0;if(De[0]&&_e)return!xt(Le,Fe,Ge)&&Le.isAfter(_e,Fe);if(D&&_e)switch(x){case"quarter":return Ue(Fe)0&&arguments[0]!==void 0?arguments[0]:!1,ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=null;$n&&Ka&&Ka[0]&&Ka[1]&&Me.isAfter(Ka[1],Ka[0])&&(Rt=Ka);var Kt=bt;if(bt&&Object(fe.a)(bt)==="object"&&bt.defaultValue){var bn=bt.defaultValue;Kt=Object(i.a)(Object(i.a)({},bt),{},{defaultValue:P(bn,At)||void 0})}var La=null;return Zn&&(La=function(ma,ya){return Zn(ma,ya,{range:At?"end":"start"})}),a.createElement(de.Provider,{value:{inRange:!0,panelPosition:kt,rangedValue:Zo||vn,hoverRangedValue:Rt}},a.createElement(pn,Object.assign({},e,ut,{dateRender:La,showTime:Kt,mode:Ft[At],generateConfig:Me,style:void 0,direction:ca,disabledDate:At===0?za:Ua,disabledTime:function(ma){return Jn?Jn(ma,At===0?"start":"end"):!1},className:_()(Object(I.a)({},"".concat(U,"-panel-focused"),At===0?!Po:!ko)),value:P(vn,At),locale:$e,tabIndex:-1,onPanelChange:function(ma,ya){Wa(h(Ft,ya,At),h(vn,ma,At));var xa=ma;kt==="right"&&Ft[At]===ya&&(xa=O(xa,ya,Me,-1)),Ea(xa,At)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Fa=0,Uo=0;At&&_n.current&&ba.current&&Fn.current&&(Fa=_n.current.offsetWidth+ba.current.offsetWidth,Fn.current.offsetWidth&&Fa>Fn.current.offsetWidth&&(Uo=Fa));var vr=ca==="rtl"?{right:Fa}:{left:Fa};function br(){var kt,ut=an(U,Ft[At],Jt),Rt=en({prefixCls:U,components:Da,needConfirmButton:Sa,okDisabled:!P(vn,At)||Qn&&Qn(vn[At]),locale:$e,rangeList:pr,onOk:function(){P(vn,At)&&(Ba(vn,At),ua&&ua(vn))}});if(pt!=="time"&&!bt){var Kt=Pa(At),bn=O(Kt,pt,Me),La=Ft[At],Oa=La===pt,ma=ro(Oa?"left":!1,{pickerValue:Kt,onPickerValueChange:function(ia){Ea(ia,At)}}),ya=ro("right",{pickerValue:bn,onPickerValueChange:function(ia){Ea(O(ia,pt,Me,-1),At)}});ca==="rtl"?kt=a.createElement(a.Fragment,null,ya,Oa&&ma):kt=a.createElement(a.Fragment,null,ma,Oa&&ya)}else kt=ro();var xa=a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(U,"-panels")},kt),(ut||Rt)&&a.createElement("div",{className:"".concat(U,"-footer")},ut,Rt));return Gn&&(xa=Gn(xa)),a.createElement("div",{className:"".concat(U,"-panel-container"),style:{marginLeft:Uo},ref:Fn,onMouseDown:function(ia){ia.preventDefault()}},xa)}var gr=a.createElement("div",{className:_()("".concat(U,"-range-wrapper"),"".concat(U,"-").concat(pt,"-range-wrapper")),style:{minWidth:Vo}},a.createElement("div",{className:"".concat(U,"-range-arrow"),style:vr}),br()),Io;qn&&(Io=a.createElement("span",{className:"".concat(U,"-suffix")},qn));var Ko;pa&&(P(fn,0)&&!Zt[0]||P(fn,1)&&!Zt[1])&&(Ko=a.createElement("span",{onMouseDown:function(ut){ut.preventDefault(),ut.stopPropagation()},onMouseUp:function(ut){ut.preventDefault(),ut.stopPropagation();var Rt=fn;Zt[0]||(Rt=h(Rt,null,0)),Zt[1]||(Rt=h(Rt,null,1)),Ba(Rt,null),Ia(!1,At)},className:"".concat(U,"-clear")},va||a.createElement("span",{className:"".concat(U,"-clear-btn")})));var Fo={size:d(pt,jn[0])},io=0,so=0;_n.current&&Bn.current&&ba.current&&(At===0?so=_n.current.offsetWidth:(io=Fa,so=Bn.current.offsetWidth));var Er=ca==="rtl"?{right:io}:{left:io},yr=function(ut,Rt){var Kt=h(vn,ut,At);Rt==="submit"||Rt!=="key"&&!Sa?(Ba(Kt,At),At===0?Do():Ro()):oa(Kt)};return a.createElement(g.Provider,{value:{operationRef:aa,hideHeader:pt==="time",onDateMouseEnter:or,onDateMouseLeave:rr,hideRanges:!0,onSelect:yr,open:$n}},a.createElement(on,{visible:$n,popupElement:gr,popupStyle:_e,prefixCls:U,dropdownClassName:Ge,dropdownAlign:Ee,getPopupContainer:Ue,transitionName:ze,range:!0,direction:ca},a.createElement("div",Object.assign({ref:da,className:_()(U,"".concat(U,"-range"),Le,(p={},Object(I.a)(p,"".concat(U,"-disabled"),Zt[0]&&Zt[1]),Object(I.a)(p,"".concat(U,"-focused"),At===0?wo:_o),Object(I.a)(p,"".concat(U,"-rtl"),ca==="rtl"),p)),style:De,onClick:cr,onMouseDown:dr},Y(e)),a.createElement("div",{className:_()("".concat(U,"-input"),(D={},Object(I.a)(D,"".concat(U,"-input-active"),At===0),Object(I.a)(D,"".concat(U,"-input-placeholder"),!!jo),D)),ref:_n},a.createElement("input",Object.assign({id:ce,disabled:Zt[0],readOnly:Ot||!Po,value:jo||Qa,onChange:function(ut){vo(ut.target.value)},autoFocus:it,placeholder:P(Fe,0)||"",ref:Tn},sr,Fo,{autoComplete:ta}))),a.createElement("div",{className:"".concat(U,"-range-separator"),ref:ba},cn),a.createElement("div",{className:_()("".concat(U,"-input"),(x={},Object(I.a)(x,"".concat(U,"-input-active"),At===1),Object(I.a)(x,"".concat(U,"-input-placeholder"),!!Mo),x)),ref:Bn},a.createElement("input",Object.assign({disabled:Zt[1],readOnly:Ot||!ko,value:Mo||Ja,onChange:function(ut){go(ut.target.value)},placeholder:P(Fe,1)||"",ref:fa},ur,Fo,{autoComplete:ta}))),a.createElement("div",{className:"".concat(U,"-active-bar"),style:Object(i.a)(Object(i.a)({},Er),{},{width:so,position:"absolute"})}),Io,Ko)))}var In=function(e){Object(ke.a)(D,e);var p=Object(ye.a)(D);function D(){var x;return Object(A.a)(this,D),x=p.apply(this,arguments),x.pickerRef=a.createRef(),x.focus=function(){x.pickerRef.current&&x.pickerRef.current.focus()},x.blur=function(){x.pickerRef.current&&x.pickerRef.current.blur()},x}return Object(L.a)(D,[{key:"render",value:function(){return a.createElement(Un,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),D}(a.Component),Za=In,lo=be.b=un},sR1s:function(Nt,be,t){"use strict";t.d(be,"b",function(){return ye}),t.d(be,"a",function(){return I}),t.d(be,"c",function(){return i}),t.d(be,"d",function(){return K});var A=t("U8pU"),L="RC_TABLE_KEY";function ke(a){return a==null?[]:Array.isArray(a)?a:[a]}function ye(a,M){if(!M&&typeof M!="number")return a;for(var _=ke(M),Q=a,he=0;he<_.length;he+=1){if(!Q)return null;var fe=_[he];Q=Q[fe]}return Q}function I(a){var M=[],_={};return a.forEach(function(Q){for(var he=Q||{},fe=he.key,W=he.dataIndex,R=fe||ke(W).join("-")||L;_[R];)R="".concat(R,"_next");_[R]=!0,M.push(R)}),M}function i(){var a={};function M(fe,W){W&&Object.keys(W).forEach(function(R){var g=W[R];g&&Object(A.a)(g)==="object"?(fe[R]=fe[R]||{},M(fe[R],g)):fe[R]=g})}for(var _=arguments.length,Q=new Array(_),he=0;he<_;he++)Q[he]=arguments[he];return Q.forEach(function(fe){M(a,fe)}),a}function K(a){return a!=null}},sboe:function(Nt,be,t){"use strict";t.d(be,"a",function(){return ke});var A=t("q1tI"),L=t.n(A),ke=A.createContext(null)},t23M:function(Nt,be,t){"use strict";var A=t("VTBJ"),L=t("1OyB"),ke=t("vuIU"),ye=t("Ji7U"),I=t("LK+K"),i=t("q1tI"),K=t.n(i),a=t("m+aA"),M=t("Zm9Q"),_=t("Kwbf"),Q=t("c+Xe"),he=t("bdgK"),fe="rc-observer-key",W=function(R){Object(ye.a)(X,R);var g=Object(I.a)(X);function X(){var V;return Object(L.a)(this,X),V=g.apply(this,arguments),V.resizeObserver=null,V.childNode=null,V.currentElement=null,V.state={width:0,height:0,offsetHeight:0,offsetWidth:0},V.onResize=function(se){var re=V.props.onResize,ie=se[0].target,xe=ie.getBoundingClientRect(),ne=xe.width,pe=xe.height,J=ie.offsetWidth,b=ie.offsetHeight,o=Math.floor(ne),d=Math.floor(pe);if(V.state.width!==o||V.state.height!==d||V.state.offsetWidth!==J||V.state.offsetHeight!==b){var k={width:o,height:d,offsetWidth:J,offsetHeight:b};V.setState(k),re&&Promise.resolve().then(function(){re(Object(A.a)(Object(A.a)({},k),{},{offsetWidth:J,offsetHeight:b}))})}},V.setChildNode=function(se){V.childNode=se},V}return Object(ke.a)(X,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var se=this.props.disabled;if(se){this.destroyObserver();return}var re=Object(a.a)(this.childNode||this),ie=re!==this.currentElement;ie&&(this.destroyObserver(),this.currentElement=re),!this.resizeObserver&&re&&(this.resizeObserver=new he.default(this.onResize),this.resizeObserver.observe(re))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var se=this.props.children,re=Object(M.a)(se);if(re.length>1)Object(_.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(re.length===0)return Object(_.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var ie=re[0];if(i.isValidElement(ie)&&Object(Q.c)(ie)){var xe=ie.ref;re[0]=i.cloneElement(ie,{ref:Object(Q.a)(xe,this.setChildNode)})}return re.length===1?re[0]:re.map(function(ne,pe){return!i.isValidElement(ne)||"key"in ne&&ne.key!==null?ne:i.cloneElement(ne,{key:"".concat(fe,"-").concat(pe)})})}}]),X}(i.Component);W.displayName="ResizeObserver",be.a=W},wCXF:function(Nt,be,t){"use strict";t.d(be,"a",function(){return Te});var A=t("rePB"),L=t("VTBJ"),ke=t("KQm4"),ye=t("U8pU"),I=t("ODXe"),i=t("q1tI"),K=t("TSYQ"),a=t.n(K),M=t("Gytx"),_=t.n(M),Q=t("Kwbf"),he=t("t23M"),fe=t("qx4F"),W=t("6eGT"),R=t("IBYe"),g=t("Ff2n"),X=t("c+Xe"),V=t("fyJ8"),se=t("biw7");function re(O,oe,de,we,Pe){var Ae=de[O]||{},Ke=de[oe]||{},Ne,Xe;Ae.fixed==="left"?Ne=we.left[O]:Ke.fixed==="right"&&(Xe=we.right[oe]);var et=!1,at=!1,Qe=!1,vt=!1,ct=de[oe+1],jt=de[O-1];if(Pe==="rtl"){if(Ne!==void 0){var dt=jt&&jt.fixed==="left";vt=!dt}else if(Xe!==void 0){var Je=ct&&ct.fixed==="right";Qe=!Je}}else if(Ne!==void 0){var st=ct&&ct.fixed==="left";et=!st}else if(Xe!==void 0){var tt=jt&&jt.fixed==="right";at=!tt}return{fixLeft:Ne,fixRight:Xe,lastFixLeft:et,firstFixRight:at,lastFixRight:Qe,firstFixLeft:vt,isSticky:we.isSticky}}var ie=t("sR1s");function xe(O){var oe=O.cells,de=O.stickyOffsets,we=O.flattenColumns,Pe=O.rowComponent,Ae=O.cellComponent,Ke=O.onHeaderRow,Ne=O.index,Xe=i.useContext(se.a),et=Xe.prefixCls,at=Xe.direction,Qe;Ke&&(Qe=Ke(oe.map(function(ct){return ct.column}),Ne));var vt=Object(ie.a)(oe.map(function(ct){return ct.column}));return i.createElement(Pe,Object.assign({},Qe),oe.map(function(ct,jt){var dt=ct.column,Je=re(ct.colStart,ct.colEnd,we,de,at),st;return dt&&dt.onHeaderCell&&(st=ct.column.onHeaderCell(dt)),i.createElement(V.a,Object.assign({},ct,{ellipsis:dt.ellipsis,align:dt.align,component:Ae,prefixCls:et,key:vt[jt]},Je,{additionalProps:st,rowType:"header"}))}))}xe.displayName="HeaderRow";var ne=xe;function pe(O){var oe=[];function de(Ke,Ne){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;oe[Xe]=oe[Xe]||[];var et=Ne,at=Ke.filter(Boolean).map(function(Qe){var vt={key:Qe.key,className:Qe.className||"",children:Qe.title,column:Qe,colStart:et},ct=1,jt=Qe.children;return jt&&jt.length>0&&(ct=de(jt,et,Xe+1).reduce(function(dt,Je){return dt+Je},0),vt.hasSubColumns=!0),"colSpan"in Qe&&(ct=Qe.colSpan),"rowSpan"in Qe&&(vt.rowSpan=Qe.rowSpan),vt.colSpan=ct,vt.colEnd=vt.colStart+ct-1,oe[Xe].push(vt),et+=ct,ct});return at}de(O,0);for(var we=oe.length,Pe=function(Ne){oe[Ne].forEach(function(Xe){!("rowSpan"in Xe)&&!Xe.hasSubColumns&&(Xe.rowSpan=we-Ne)})},Ae=0;Ae=0;Ne-=1){var Xe=oe[Ne],et=de&&de[Ne],at=et&&et[o.a];(Xe||at||Ke)&&(Pe.unshift(i.createElement("col",Object.assign({key:Ne,style:{width:Xe,minWidth:Xe}},at))),Ke=!0)}return i.createElement("colgroup",null,Pe)}var k=d;function H(O,oe){return Object(i.useMemo)(function(){for(var de=[],we=0;we1?en-1:0),pn=1;pn=Qe&&(Be=Qe-vt),Ke({scrollLeft:Be/Qe*(at+2)}),tt.current.x=B.pageX},z=function(){var B=Object(Ye.b)(Ae.current).top,ve=B+Ae.current.offsetHeight,Se=document.documentElement.scrollTop+window.innerHeight;ve-Object(fe.a)()<=Se||B>=Se-Ne?st(function(rt){return Object(L.a)(Object(L.a)({},rt),{},{isHiddenScrollBar:!0})}):st(function(rt){return Object(L.a)(Object(L.a)({},rt),{},{isHiddenScrollBar:!1})})},Re=function(B){st(function(ve){return Object(L.a)(Object(L.a)({},ve),{},{scrollLeft:B/at*Qe||0})})};return i.useImperativeHandle(de,function(){return{setScrollLeft:Re}}),i.useEffect(function(){var je=Object(We.a)(document.body,"mouseup",r,!1),B=Object(We.a)(document.body,"mousemove",ue,!1);return z(),function(){je.remove(),B.remove()}},[vt,Ce]),i.useEffect(function(){var je=Object(We.a)(window,"scroll",z,!1),B=Object(We.a)(window,"resize",z,!1);return function(){je.remove(),B.remove()}},[]),i.useEffect(function(){Je.isHiddenScrollBar||st(function(je){var B,ve;return Object(L.a)(Object(L.a)({},je),{},{scrollLeft:Ae.current.scrollLeft/((B=Ae.current)===null||B===void 0?void 0:B.scrollWidth)*((ve=Ae.current)===null||ve===void 0?void 0:ve.clientWidth)})})},[Je.isHiddenScrollBar]),at<=Qe||!vt||Je.isHiddenScrollBar?null:i.createElement("div",{style:{height:Object(fe.a)(),width:Qe,bottom:Ne},className:"".concat(et,"-sticky-scroll")},i.createElement("div",{onMouseDown:c,ref:ct,className:a()("".concat(et,"-sticky-scroll-bar"),Object(A.a)({},"".concat(et,"-sticky-scroll-bar-active"),Ce)),style:{width:"".concat(vt,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},nt=i.forwardRef(ot);function Ze(O,oe){return i.useMemo(function(){var de=!!O;return{isSticky:de,stickyClassName:de?"".concat(oe,"-sticky-header"):"",offsetHeader:Object(ye.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(ye.a)(O)==="object"&&O.offsetScroll||0}},[O,oe])}var xt=[],q={},Te="rc-table-internal-hook",Ve=i.memo(function(O){var oe=O.children;return oe},function(O,oe){return _()(O.props,oe.props)?O.pingLeft!==oe.pingLeft||O.pingRight!==oe.pingRight:!1});function Ie(O){var oe,de=O.prefixCls,we=O.className,Pe=O.rowClassName,Ae=O.style,Ke=O.data,Ne=O.rowKey,Xe=O.scroll,et=O.tableLayout,at=O.direction,Qe=O.title,vt=O.footer,ct=O.summary,jt=O.id,dt=O.showHeader,Je=O.components,st=O.emptyText,tt=O.onRow,He=O.onHeaderRow,ee=O.internalHooks,Ce=O.transformColumns,F=O.internalRefs,r=O.sticky,c=Ke||xt,ue=!!c.length,z=i.useState(0),Re=Object(I.a)(z,2),je=Re[0],B=Re[1];i.useEffect(function(){B(Object(fe.a)())});var ve=i.useMemo(function(){return Object(ie.c)(Je,{})},[Je]),Se=i.useCallback(function(ft,Ot){return Object(ie.b)(ve,ft)||Ot},[ve]),rt=i.useMemo(function(){return typeof Ne=="function"?Ne:function(ft){var Ot=ft&&ft[Ne];return Ot}},[Ne]),Be=Object(o.c)(O),Dt=Be.expandIcon,yt=Be.expandedRowKeys,Ht=Be.defaultExpandedRowKeys,Ut=Be.defaultExpandAllRows,It=Be.expandedRowRender,Yt=Be.onExpand,zt=Be.onExpandedRowsChange,On=Be.expandRowByClick,Vt=Be.rowExpandable,Xt=Be.expandIconColumnIndex,wn=Be.expandedRowClassName,gn=Be.childrenColumnName,Wn=Be.indentSize,mn=Dt||G,En=gn||"children",qt=i.useMemo(function(){return It?"row":O.expandable&&ee===Te&&O.expandable.__PARENT_RENDER_ICON__||c.some(function(ft){return ft&&Object(ye.a)(ft)==="object"&&ft[En]})?"nest":!1},[!!It,c]),sn=i.useState(function(){return Ht||(Ut?Oe(c,rt,En):[])}),nn=Object(I.a)(sn,2),hn=nn[0],an=nn[1],en=i.useMemo(function(){return new Set(yt||hn||[])},[yt,hn]),Pn=i.useCallback(function(ft){var Ot=rt(ft,c.indexOf(ft)),_t,Jt=en.has(Ot);Jt?(en.delete(Ot),_t=Object(ke.a)(en)):_t=[].concat(Object(ke.a)(en),[Ot]),an(_t),Yt&&Yt(!Jt,ft),zt&&zt(_t)},[rt,en,c,Yt,zt]),pn=i.useState(0),sa=Object(I.a)(pn,2),kn=sa[0],Yn=sa[1],on=Object(h.b)(Object(L.a)(Object(L.a)(Object(L.a)({},O),Be),{},{expandable:!!It,expandedKeys:en,getRowKey:rt,onTriggerExpand:Pn,expandIcon:mn,expandIconColumnIndex:Xt,direction:at}),ee===Te?Ce:null),$t=Object(I.a)(on,2),Gt=$t[0],mt=$t[1],Ct=i.useMemo(function(){return{columns:Gt,flattenColumns:mt}},[Gt,mt]),gt=i.useRef(),ht=i.useRef(),Tt=i.useRef(),Wt=i.useState(!1),un=Object(I.a)(Wt,2),St=un[0],Qt=un[1],An=i.useState(!1),ha=Object(I.a)(An,2),Mn=ha[0],Ta=ha[1],Un=y(new Map),In=Object(I.a)(Un,2),Za=In[0],lo=In[1],e=Object(ie.a)(mt),p=e.map(function(ft){return Za.get(ft)}),D=i.useMemo(function(){return p},[p.join("_")]),x=f(D,mt.length,at),te=Xe&&Object(ie.d)(Xe.y),U=Xe&&Object(ie.d)(Xe.x),ce=U&&mt.some(function(ft){var Ot=ft.fixed;return Ot}),De=i.useRef(),Le=Ze(r,de),_e=Le.isSticky,Ge=Le.offsetHeader,ze=Le.offsetScroll,Ee=Le.stickyClassName,Ue,Me,$e;te&&(Me={overflowY:"scroll",maxHeight:Xe.y}),U&&(Ue={overflowX:"auto"},te||(Me={overflowY:"hidden"}),$e={width:Xe.x===!0?"auto":Xe.x,minWidth:"100%"});var Fe=i.useCallback(function(ft,Ot){lo(function(_t){var Jt=new Map(_t);return Jt.set(ft,Ot),Jt})},[]),it=Z(null),lt=Object(I.a)(it,2),Mt=lt[0],Lt=lt[1];function pt(ft,Ot){if(!Ot)return;typeof Ot=="function"?Ot(ft):Ot.scrollLeft!==ft&&(Ot.scrollLeft=ft)}var bt=function(Ot){var _t=Ot.currentTarget,Jt=Ot.scrollLeft,dn=typeof Jt=="number"?Jt:_t.scrollLeft,Cn=_t||q;if(!Lt()||Lt()===Cn){var Nn;Mt(Cn),pt(dn,ht.current),pt(dn,Tt.current),pt(dn,(Nn=De.current)===null||Nn===void 0?void 0:Nn.setScrollLeft)}if(_t){var zn=_t.scrollWidth,Ln=_t.clientWidth;Qt(dn>0),Ta(dn0?[].concat(Object(L.a)(g),Object(L.a)(Q(re).map(function(ie){return Object(ke.a)({fixed:se},ie)}))):[].concat(Object(L.a)(g),[Object(ke.a)(Object(ke.a)({},X),{},{fixed:se})])},[])}function he(R){for(var g=!0,X=0;X=0;re-=1){var ie=R[re];if(se&&ie.fixed!=="right")se=!1;else if(!se&&ie.fixed==="right"){Object(K.a)(!1,"Index ".concat(re+1," of `columns` missing `fixed='right'` prop."));break}}}function fe(R){return R.map(function(g){var X=g.fixed,V=Object(ye.a)(g,["fixed"]),se=X;return X==="left"?se="right":X==="right"&&(se="left"),Object(ke.a)({fixed:se},V)})}function W(R,g){var X=R.prefixCls,V=R.columns,se=R.children,re=R.expandable,ie=R.expandedKeys,xe=R.getRowKey,ne=R.onTriggerExpand,pe=R.expandIcon,J=R.rowExpandable,b=R.expandIconColumnIndex,o=R.direction,d=R.expandRowByClick,k=I.useMemo(function(){return V||_(se)},[V,se]),H=I.useMemo(function(){if(re){var N,u=b||0,j=k[u],m=(N={},Object(A.a)(N,M.a,{className:"".concat(X,"-expand-icon-col")}),Object(A.a)(N,"title",""),Object(A.a)(N,"fixed",j?j.fixed:null),Object(A.a)(N,"className","".concat(X,"-row-expand-icon-cell")),Object(A.a)(N,"render",function(E,w,ge){var me=xe(w,ge),Y=ie.has(me),P=J?J(w):!0,h=pe({prefixCls:X,expanded:Y,expandable:P,record:w,onExpand:ne});return d?I.createElement("span",{onClick:function(T){return T.stopPropagation()}},h):h}),N),l=k.slice();return u>=0&&l.splice(u,0,m),l}return k},[re,k,xe,ie,pe,o]),le=I.useMemo(function(){var N=H;return g&&(N=g(N)),N.length||(N=[{render:function(){return null}}]),N},[g,H,o]),ae=I.useMemo(function(){return o==="rtl"?fe(Q(le)):Q(le)},[le,o]);return[le,ae]}be.b=W},"y0+3":function(Nt,be,t){"use strict";t.d(be,"a",function(){return Q}),t.d(be,"b",function(){return fe});var A=/margin|padding|width|height|max|min|offset/,L={left:!0,top:!0},ke={cssFloat:1,styleFloat:1,float:1};function ye(W){return W.nodeType===1?W.ownerDocument.defaultView.getComputedStyle(W,null):{}}function I(W,R,g){if(R=R.toLowerCase(),g==="auto"){if(R==="height")return W.offsetHeight;if(R==="width")return W.offsetWidth}return R in L||(L[R]=A.test(R)),L[R]?parseFloat(g)||0:g}function i(W,R){var g=arguments.length,X=ye(W);return R=ke[R]?"cssFloat"in W.style?"cssFloat":"styleFloat":R,g===1?X:I(W,R,X[R]||W.style[R])}function K(W,R,g){var X=arguments.length;if(R=ke[R]?"cssFloat"in W.style?"cssFloat":"styleFloat":R,X===3)return typeof g=="number"&&A.test(R)&&(g="".concat(g,"px")),W.style[R]=g,g;for(var V in R)R.hasOwnProperty(V)&&K(W,V,R[V]);return ye(W)}function a(W){return W===document.body?document.documentElement.clientWidth:W.offsetWidth}function M(W){return W===document.body?window.innerHeight||document.documentElement.clientHeight:W.offsetHeight}function _(){var W=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:W,height:R}}function Q(){var W=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:W,height:R}}function he(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function fe(W){var R=W.getBoundingClientRect(),g=document.documentElement;return{left:R.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(w,",").concat(w," 0 1 1 ").concat(-Y,",").concat(P),v=Math.PI*2*w,N={stroke:m,strokeDasharray:"".concat(j/100*(v-S),"px ").concat(v,"px"),strokeDashoffset:"-".concat(S/2+u/100*(v-S),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:h,pathStyle:N}}var le=function(j){var m=j.prefixCls,l=j.strokeWidth,S=j.trailWidth,E=j.gapDegree,w=j.gapPosition,ge=j.trailColor,me=j.strokeLinecap,Y=j.style,P=j.className,h=j.strokeColor,v=j.percent,N=J(j,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),y=Object(A.useMemo)(function(){return o+=1,o},[]),Z=H(0,100,ge,l,E,w),n=Z.pathString,f=Z.pathStyle,s=k(v),C=k(h),$=C.find(function(ot){return Object.prototype.toString.call(ot)==="[object Object]"}),G=i(s),Oe=se(G,1),We=Oe[0],Ye=function(){var nt=0;return s.map(function(Ze,xt){var q=C[xt]||C[C.length-1],Ne=Object.prototype.toString.call(q)==="[object Object]"?"url(#".concat(m,"-gradient-").concat(y,")"):"",Ve=H(nt,Ze,q,l,E,w);return nt+=Ze,L.a.createElement("path",{key:xt,className:"".concat(m,"-circle-path"),d:Ve.pathString,stroke:Ne,strokeLinecap:me,strokeWidth:l,opacity:Ze===0?0:1,fillOpacity:"0",style:Ve.pathStyle,ref:We[xt]})})};return L.a.createElement("svg",V({className:ye()("".concat(m,"-circle"),P),viewBox:"0 0 100 100",style:Y},N),$&&L.a.createElement("defs",null,L.a.createElement("linearGradient",{id:"".concat(m,"-gradient-").concat(y),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys($).sort(function(ot,nt){return d(ot)-d(nt)}).map(function(ot,nt){return L.a.createElement("stop",{key:nt,offset:ot,stopColor:$[ot]})}))),L.a.createElement("path",{className:"".concat(m,"-circle-trail"),d:n,stroke:ge,strokeLinecap:me,strokeWidth:S||l,fillOpacity:"0",style:f}),Ye().reverse())};le.defaultProps=I;var ae=le,T={Line:X,Circle:ae}},hW8S:function(Tt,be,t){"use strict";t.d(be,"a",function(){return ye}),t.d(be,"c",function(){return I}),t.d(be,"b",function(){return i});var A=t("VTBJ"),L=t("Ff2n"),ke=t("Kwbf"),ye="RC_TABLE_INTERNAL_COL_DEFINE";function I(K){var a=K.expandable,M=Object(L.a)(K,["expandable"]);return"expandable"in K?Object(A.a)(Object(A.a)({},M),a):M}function i(K){return Object.keys(K).reduce(function(a,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-")&&(a[M]=K[M]),a},{})}},lx6N:function(Tt,be,t){"use strict";var A=t("2qtc"),L=t("kLXV"),ke=t("+L6B"),ye=t("2/Rp"),I=t("q1tI"),i=t.n(I);function K(a){var M=a.res,_=a.ismodel,Q=a.setismodel;return i.a.createElement(L.a,{visible:_,title:"\u63D0\u793A",footer:null,style:{background:"transparen"},centered:!0,width:670,maskClosable:!1},M==null?void 0:M.message,i.a.createElement("div",{style:{textAlign:"right"}},i.a.createElement(ye.a,{onClick:function(){Q(!1)},type:"primary"},"\u786E\u8BA4")))}be.a=K},mgmH:function(Tt,be,t){"use strict";t.d(be,"d",function(){return fe}),t.d(be,"b",function(){return W}),t.d(be,"e",function(){return R}),t.d(be,"c",function(){return g}),t.d(be,"n",function(){return X}),t.d(be,"g",function(){return V}),t.d(be,"h",function(){return se}),t.d(be,"j",function(){return ie}),t.d(be,"a",function(){return xe}),t.d(be,"l",function(){return ne}),t.d(be,"f",function(){return pe}),t.d(be,"k",function(){return J}),t.d(be,"m",function(){return b}),t.d(be,"i",function(){return o}),t.d(be,"o",function(){return d}),t.d(be,"r",function(){return k}),t.d(be,"q",function(){return H}),t.d(be,"p",function(){return le});var A=t("miYZ"),L=t("tsqr"),ke=t("k1fw"),ye=t("9og8"),I=t("WmNS"),i=t.n(I),K=t("oUNq"),a=t("9kvl"),M=t("1vsH"),_=t("m3rI"),Q=function(){Object(a.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},he=function(){Object(a.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},fe=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return Q(),l.next=3,Object(K.s)(Object(ke.a)({},u));case 3:if(j=l.sent,!(j.status===0)){l.next=7;break}return l.next=7,Object(M.u)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/export_couser_info.json"),query:u}));case 7:he();case 8:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),W=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.q)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_member_act_score")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),R=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.t)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_score")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_score")));case 13:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),g=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.r)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),X=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.y)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),V=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.u)(Object(ke.a)({},u));case 2:if(j=l.sent,!(j.status===0)){l.next=8;break}L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_homework")),l.next=13;break;case 8:if(!(j.status===-2)){l.next=12;break}return l.abrupt("return",j);case 12:j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),se=function(){var ae=Object(ye.a)(i.a.mark(function T(u,j){var m;return i.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Object(K.w)(Object(ke.a)({},u));case 2:m=S.sent,m.status===0?(L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/").concat(j))):m.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/").concat(j)));case 4:case"end":return S.stop()}},T)}));return function(u,j){return ae.apply(this,arguments)}}(),re=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return Q(),l.next=3,Object(K.v)(Object(ke.a)({},u));case 3:if(j=l.sent,!(j.status===0)){l.next=7;break}return l.next=7,Object(M.u)("",Object(M.U)({url:_.a.API_SERVER+"/api/homework_commons/".concat(u.categoryId,"/works_list.zip"),query:u}));case 7:he();case 8:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),ie=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return Q(),l.next=3,Object(K.z)(Object(ke.a)({},u));case 3:if(j=l.sent,!(j.status===0)){l.next=7;break}return l.next=7,Object(M.u)("",Object(M.U)({url:_.a.API_SERVER+"/api/polls/".concat(u.categoryId,"/commit_result.xlsx"),query:u}));case 7:he();case 8:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),xe=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/attendances/export_xlsx_data.xlsx"),query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),ne=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/video_study_statics.xlsx"),query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),pe=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/courses/".concat(u.coursesId,"/export_course_students_info.xlsx"),query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),J=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/item_banks/export.xlsx",query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),b=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),o=function(){var ae=Object(ye.a)(i.a.mark(function T(u){var j;return i.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(K.x)(Object(ke.a)({},u));case 2:j=l.sent,j.status===0?(L.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/exercise_score"))):j.status===-3&&(Object(a.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),a.d.push("/classrooms/".concat(u.coursesId,"/exportlist/exercise_score")));case 4:case"end":return l.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),d=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),m.next=3,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/export_records/".concat(u.id,".xlsx"),query:u}));case 3:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),k=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),H=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(u==null?void 0:u.ec_year_id,"/ec_training_objectives.xlsx"),query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}(),le=function(){var ae=Object(ye.a)(i.a.mark(function T(u){return i.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(M.t)("",Object(M.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(u==null?void 0:u.ec_year_id,"/ec_graduation_requirements.xlsx"),query:u}));case 2:case"end":return m.stop()}},T)}));return function(u){return ae.apply(this,arguments)}}()},n6Qo:function(Tt,be,t){"use strict";t.d(be,"a",function(){return a});var A=t("q1tI"),L=t("biw7"),ke=t("fyJ8");function ye(M){var _=M.className,Q=M.index,he=M.children,fe=M.colSpan,W=M.rowSpan,R=A.useContext(L.a),g=R.prefixCls,X=R.fixedInfoList,V=X[Q];return A.createElement(ke.a,Object.assign({className:_,index:Q,component:"td",prefixCls:g,record:null,dataIndex:null,render:function(){return{children:he,props:{colSpan:fe,rowSpan:W}}}},V))}function I(M){return A.createElement("tr",Object.assign({},M))}function i(M){var _=M.children,Q=A.useContext(L.a),he=Q.prefixCls;return A.createElement("tfoot",{className:"".concat(he,"-summary")},_)}var K=be.b=i,a={Cell:ye,Row:I}},ogmK:function(Tt,be,t){"use strict";t.d(be,"a",function(){return Za});var A=t("1OyB"),L=t("vuIU"),ke=t("Ji7U"),ye=t("LK+K"),I=t("rePB"),i=t("VTBJ"),K=t("ODXe"),a=t("q1tI"),M=t("TSYQ"),_=t.n(M),Q=t("Kwbf"),he=t("6cGi"),fe=t("U8pU"),W=t("4IlW"),R=a.createContext({}),g=R,X={visibility:"hidden"};function V(e){var p=e.prefixCls,D=e.prevIcon,x=D===void 0?"\u2039":D,te=e.nextIcon,U=te===void 0?"\u203A":te,ce=e.superPrevIcon,De=ce===void 0?"\xAB":ce,Le=e.superNextIcon,_e=Le===void 0?"\xBB":Le,Ge=e.onSuperPrev,ze=e.onSuperNext,Ee=e.onPrev,Ue=e.onNext,Me=e.children,$e=a.useContext(g),Fe=$e.hideNextBtn,it=$e.hidePrevBtn;return a.createElement("div",{className:p},Ge&&a.createElement("button",{type:"button",onClick:Ge,tabIndex:-1,className:"".concat(p,"-super-prev-btn"),style:it?X:{}},De),Ee&&a.createElement("button",{type:"button",onClick:Ee,tabIndex:-1,className:"".concat(p,"-prev-btn"),style:it?X:{}},x),a.createElement("div",{className:"".concat(p,"-view")},Me),Ue&&a.createElement("button",{type:"button",onClick:Ue,tabIndex:-1,className:"".concat(p,"-next-btn"),style:Fe?X:{}},U),ze&&a.createElement("button",{type:"button",onClick:ze,tabIndex:-1,className:"".concat(p,"-super-next-btn"),style:Fe?X:{}},_e))}var se=V;function re(e){var p=a.useContext(g),D=p.hideHeader;if(D)return null;var x=e.prefixCls,te=e.generateConfig,U=e.locale,ce=e.value,De=e.format,Le="".concat(x,"-header");return a.createElement(se,{prefixCls:Le},ce?te.locale.format(U.locale,ce,De):"\xA0")}var ie=re,xe=t("YrtM"),ne=t("KQm4"),pe=new Map;function J(e,p,D){if(pe.get(e)&&cancelAnimationFrame(pe.get(e)),D<=0){pe.set(e,requestAnimationFrame(function(){e.scrollTop=p}));return}var x=p-e.scrollTop,te=x/D*10;pe.set(e,requestAnimationFrame(function(){e.scrollTop+=te,e.scrollTop!==p&&J(e,p,D-10)}))}function b(e,p){var D=p.onLeftRight,x=p.onCtrlLeftRight,te=p.onUpDown,U=p.onPageUpDown,ce=p.onEnter,De=e.which,Le=e.ctrlKey,_e=e.metaKey;switch(De){case W.a.LEFT:if(Le||_e){if(x)return x(-1),!0}else if(D)return D(-1),!0;break;case W.a.RIGHT:if(Le||_e){if(x)return x(1),!0}else if(D)return D(1),!0;break;case W.a.UP:if(te)return te(-1),!0;break;case W.a.DOWN:if(te)return te(1),!0;break;case W.a.PAGE_UP:if(U)return U(-1),!0;break;case W.a.PAGE_DOWN:if(U)return U(1),!0;break;case W.a.ENTER:if(ce)return ce(),!0;break}return!1}function o(e,p,D,x){var te=e;if(!te)switch(p){case"time":te=x?"hh:mm:ss a":"HH:mm:ss";break;case"week":te="gggg-wo";break;case"month":te="YYYY-MM";break;case"quarter":te="YYYY-[Q]Q";break;case"year":te="YYYY";break;default:te=D?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return te}function d(e,p){var D=e==="time"?8:10;return Math.max(D,p.length)+2}var k=null,H=new Set;function le(e){return!k&&typeof window!="undefined"&&window.addEventListener&&(k=function(D){Object(ne.a)(H).forEach(function(x){x(D)})},window.addEventListener("mousedown",k)),H.add(e),function(){H.delete(e),H.size===0&&(window.removeEventListener("mousedown",k),k=null)}}var ae=function(p){return p==="month"||p==="date"?"year":p},T=function(p){return p==="date"?"month":p},u=function(p){return p==="month"||p==="date"?"quarter":p},j=function(p){return p==="date"?"week":p},m={year:ae,month:T,quarter:u,week:j,time:null,date:null};function l(e,p){return e.some(function(D){return D&&D.contains(p)})}function S(e){var p=e.prefixCls,D=e.units,x=e.onSelect,te=e.value,U=e.active,ce=e.hideDisabledOptions,De="".concat(p,"-cell"),Le=a.useContext(g),_e=Le.open,Ge=a.useRef(null),ze=a.useRef(new Map);return a.useLayoutEffect(function(){var Ee=ze.current.get(te);Ee&&_e!==!1&&J(Ge.current,Ee.offsetTop,120)},[te]),a.useLayoutEffect(function(){if(_e){var Ee=ze.current.get(te);Ee&&J(Ge.current,Ee.offsetTop,0)}},[_e]),a.createElement("ul",{className:_()("".concat(p,"-column"),Object(I.a)({},"".concat(p,"-column-active"),U)),ref:Ge,style:{position:"relative"}},D.map(function(Ee){var Ue;return ce&&Ee.disabled?null:a.createElement("li",{key:Ee.value,ref:function($e){ze.current.set(Ee.value,$e)},className:_()(De,(Ue={},Object(I.a)(Ue,"".concat(De,"-disabled"),Ee.disabled),Object(I.a)(Ue,"".concat(De,"-selected"),te===Ee.value),Ue)),onClick:function(){if(Ee.disabled)return;x(Ee.value)}},a.createElement("div",{className:"".concat(De,"-inner")},Ee.label))}))}var E=S;function w(e,p){for(var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",x=String(e);x.length=12,cn%=12);var Qn=a.useMemo(function(){if(!_e)return[!1,!1];var ft=[!0,!0];return yn.forEach(function(Ot){var _t=Ot.disabled,Jt=Ot.value;if(_t)return;Jt>=12?ft[1]=!1:ft[0]=!1}),ft},[_e,yn]),Jn=Object(K.a)(Qn,2),Zn=Jn[0],Gn=Jn[1],la=a.useMemo(function(){return _e?yn.filter(Pt?function(ft){return ft.value>=12}:function(ft){return ft.value<12}).map(function(ft){var Ot=ft.value%12,_t=Ot===0?"12":w(Ot,2);return Object(i.a)(Object(i.a)({},ft),{},{label:_t,value:Ot})}):yn},[_e,yn]),Hn=Z(0,59,Ue,it&&it(cn)),pa=Z(0,59,$e,lt&<(cn,rn));x.current={onUpDown:function(Ot){var _t=pt[te];if(_t)for(var Jt=_t.units.findIndex(function(zn){return zn.value===_t.value}),dn=_t.units.length,Cn=1;Cn1&&(ce=p.addDate(ce,-7)),ce}function O(e,p,D){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(p){case"year":return D.addYear(e,x*10);case"quarter":case"month":return D.addYear(e,x);default:return D.addMonth(e,x)}}var oe=a.createContext({}),de=oe;function we(e){var p=e.cellPrefixCls,D=e.generateConfig,x=e.rangedValue,te=e.hoverRangedValue,U=e.isInView,ce=e.isSameCell,De=e.offsetCell,Le=e.today,_e=e.value;function Ge(ze){var Ee,Ue=De(ze,-1),Me=De(ze,1),$e=P(x,0),Fe=P(x,1),it=P(te,0),lt=P(te,1),Mt=Ie(D,it,lt,ze);function Lt(rn){return ce($e,rn)}function pt(rn){return ce(Fe,rn)}var bt=ce(it,ze),wt=ce(lt,ze),Pt=(Mt||wt)&&(!U(Ue)||pt(Ue)),cn=(Mt||bt)&&(!U(Me)||Lt(Me));return Ee={},Object(I.a)(Ee,"".concat(p,"-in-view"),U(ze)),Object(I.a)(Ee,"".concat(p,"-in-range"),Ie(D,$e,Fe,ze)),Object(I.a)(Ee,"".concat(p,"-range-start"),Lt(ze)),Object(I.a)(Ee,"".concat(p,"-range-end"),pt(ze)),Object(I.a)(Ee,"".concat(p,"-range-start-single"),Lt(ze)&&!Fe),Object(I.a)(Ee,"".concat(p,"-range-end-single"),pt(ze)&&!$e),Object(I.a)(Ee,"".concat(p,"-range-start-near-hover"),Lt(ze)&&(ce(Ue,it)||Ie(D,it,lt,Ue))),Object(I.a)(Ee,"".concat(p,"-range-end-near-hover"),pt(ze)&&(ce(Me,lt)||Ie(D,it,lt,Me))),Object(I.a)(Ee,"".concat(p,"-range-hover"),Mt),Object(I.a)(Ee,"".concat(p,"-range-hover-start"),bt),Object(I.a)(Ee,"".concat(p,"-range-hover-end"),wt),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-start"),Pt),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-end"),cn),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-start-near-range"),Pt&&ce(Ue,Fe)),Object(I.a)(Ee,"".concat(p,"-range-hover-edge-end-near-range"),cn&&ce(Me,$e)),Object(I.a)(Ee,"".concat(p,"-today"),ce(Le,ze)),Object(I.a)(Ee,"".concat(p,"-selected"),ce(_e,ze)),Ee}return Ge}function Pe(e){for(var p=e.prefixCls,D=e.disabledDate,x=e.onSelect,te=e.rowNum,U=e.colNum,ce=e.prefixColumn,De=e.rowClassName,Le=e.baseDate,_e=e.getCellClassName,Ge=e.getCellText,ze=e.getCellNode,Ee=e.getCellDate,Ue=e.titleCell,Me=e.headerCells,$e=a.useContext(g),Fe=$e.onDateMouseEnter,it=$e.onDateMouseLeave,lt="".concat(p,"-cell"),Mt=[],Lt=0;Lt2&&arguments[2]!==void 0?arguments[2]:!1;(jn===$e||ra)&&(Sa(Et),wt&&wt(Et),dn&&dn(Et,Ft),Pt&&!Ve(De,Et,ta)&&Pt(Et))},ga=function(Et){return Kn.current&&Kn.current.onKeyDown?([W.a.LEFT,W.a.RIGHT,W.a.UP,W.a.DOWN,W.a.PAGE_UP,W.a.PAGE_DOWN,W.a.ENTER].includes(Et.which)&&Et.preventDefault(),Kn.current.onKeyDown(Et)):(Object(Q.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},fn=function(Et){Kn.current&&Kn.current.onBlur&&Kn.current.onBlur(Et)};_t&&ja!=="right"&&(_t.current={onKeyDown:ga,onClose:function(){Kn.current&&Kn.current.onClose&&Kn.current.onClose()}}),a.useEffect(function(){Le&&!ca.current&&_n(Le)},[Le]),a.useEffect(function(){ca.current=!1},[]);var Sn,Xn=Object(i.a)(Object(i.a)({},e),{},{operationRef:Kn,prefixCls:x,viewDate:Fn,value:ta,onViewDateChange:Bn,sourceMode:ka,onPanelChange:Zt,disabledDate:jn!=="decade"?Ee:void 0});delete Xn.onChange,delete Xn.onSelect;switch(jn){case"decade":Sn=a.createElement(hn,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"year":Sn=a.createElement(Vt,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"month":Sn=a.createElement(ue,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"quarter":Sn=a.createElement(Be,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"week":Sn=a.createElement(st,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;case"time":delete Xn.showTime,Sn=a.createElement($,Object.assign({},Xn,Object(fe.a)(Mt)==="object"?Mt:null,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}));break;default:Mt?Sn=a.createElement(dt,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}})):Sn=a.createElement(Qe,Object.assign({},Xn,{onSelect:function(Et,Ft){Bn(Et),Vn(Et,Ft)}}))}var Ma,Pa,Ea=function(){var Et=De.getNow(),Ft=N(De.getHour(Et),De.getMinute(Et),De.getSecond(Et),qn?Jn:1,va?Gn:1,ft?Hn:1),ra=v(De,Et,Ft[0],Ft[1],Ft[2]);Vn(ra,"submit")};Cn||(Ma=an(x,jn,pt),Pa=en({prefixCls:x,components:xn,needConfirmButton:pa,okDisabled:!ta||Ee&&Ee(ta),locale:ce,showNow:lt,onNow:pa&&Ea,onOk:function(){ta&&(Vn(ta,"submit",!0),tn&&tn(ta))}}));var Aa;if(Lt&&jn==="date"&&$e==="date"&&!Mt){var Ra=De.getNow(),vn="".concat(x,"-today-btn"),oa=Ee&&Ee(Ra);Aa=a.createElement("a",{className:_()(vn,oa&&"".concat(vn,"-disabled")),"aria-disabled":oa,onClick:function(){oa||Vn(Ra,"mouse",!0)}},ce.today)}return a.createElement(g.Provider,{value:Object(i.a)(Object(i.a)({},Ot),{},{hideHeader:"hideHeader"in e?bt:Ot.hideHeader,hidePrevBtn:Ln&&ja==="right",hideNextBtn:Ln&&ja==="left"})},a.createElement("div",{tabIndex:it,className:_()("".concat(x,"-panel"),te,(p={},Object(I.a)(p,"".concat(x,"-panel-has-range"),ua&&ua[0]&&ua[1]),Object(I.a)(p,"".concat(x,"-panel-has-range-hover"),Da&&Da[0]&&Da[1]),Object(I.a)(p,"".concat(x,"-panel-rtl"),yn==="rtl"),p)),style:U,onKeyDown:ga,onBlur:fn,onMouseDown:rn,ref:Jt},Sn,Ma||Pa||Aa?a.createElement("div",{className:"".concat(x,"-footer")},Ma,Pa,Aa):null))}var pn=Pn,sa=t("uciX"),kn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Yn(e){var p,D=e.prefixCls,x=e.popupElement,te=e.popupStyle,U=e.visible,ce=e.dropdownClassName,De=e.dropdownAlign,Le=e.transitionName,_e=e.getPopupContainer,Ge=e.children,ze=e.range,Ee=e.popupPlacement,Ue=e.direction,Me="".concat(D,"-dropdown"),$e=function(){return Ee!==void 0?Ee:Ue==="rtl"?"bottomRight":"bottomLeft"};return a.createElement(sa.a,{showAction:[],hideAction:[],popupPlacement:$e(),builtinPlacements:kn,prefixCls:Me,popupTransitionName:Le,popup:x,popupAlign:De,popupVisible:U,popupClassName:_()(ce,(p={},Object(I.a)(p,"".concat(Me,"-range"),ze),Object(I.a)(p,"".concat(Me,"-rtl"),Ue==="rtl"),p)),popupStyle:te,getPopupContainer:_e},Ge)}var on=Yn;function $t(e){var p=e.open,D=e.value,x=e.isClickOutside,te=e.triggerOpen,U=e.forwardKeyDown,ce=e.blurToCancel,De=e.onSubmit,Le=e.onCancel,_e=e.onFocus,Ge=e.onBlur,ze=Object(a.useState)(!1),Ee=Object(K.a)(ze,2),Ue=Ee[0],Me=Ee[1],$e=Object(a.useState)(!1),Fe=Object(K.a)($e,2),it=Fe[0],lt=Fe[1],Mt=Object(a.useRef)(!1),Lt=Object(a.useRef)(!1),pt={onMouseDown:function(){Me(!0),te(!0)},onKeyDown:function(wt){switch(wt.which){case W.a.ENTER:{p?De()!==!1&&Me(!0):te(!0),wt.preventDefault();return}case W.a.TAB:{Ue&&p&&!wt.shiftKey?(Me(!1),wt.preventDefault()):!Ue&&p&&(!U(wt)&&wt.shiftKey&&(Me(!0),wt.preventDefault()));return}case W.a.ESC:{Me(!0),Le();return}}!p&&![W.a.SHIFT].includes(wt.which)?te(!0):Ue||U(wt)},onFocus:function(wt){Me(!0),lt(!0),_e&&_e(wt)},onBlur:function(wt){if(Mt.current||!x(document.activeElement)){Mt.current=!1;return}ce?setTimeout(function(){x(document.activeElement)&&Le()},0):p&&(te(!1),Lt.current&&De()),lt(!1),Ge&&Ge(wt)}};return Object(a.useEffect)(function(){Lt.current=!1},[p]),Object(a.useEffect)(function(){Lt.current=!0},[D]),Object(a.useEffect)(function(){return le(function(bt){var wt=bt.target;p&&(x(wt)?it||te(!1):(Mt.current=!0,requestAnimationFrame(function(){Mt.current=!1})))})}),[pt,{focused:it,typing:Ue}]}function Gt(e){var p=e.valueTexts,D=e.onTextChange,x=a.useState(""),te=Object(K.a)(x,2),U=te[0],ce=te[1],De=a.useRef([]);De.current=p;function Le(Ge){ce(Ge),D(Ge)}function _e(){ce(De.current[0])}return a.useEffect(function(){p.every(function(Ge){return Ge!==U})&&_e()},[p.join("||")]),[U,Le,_e]}var mt=t("Gytx"),Ct=t.n(mt);function gt(e,p){var D=p.formatList,x=p.generateConfig,te=p.locale;return Object(xe.a)(function(){if(!e)return[[""],""];for(var U="",ce=[],De=0;De1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(_e.current),it){Le(Fe);return}_e.current=requestAnimationFrame(function(){Le(Fe)})}var ze=gt(De,{formatList:D,generateConfig:x,locale:te}),Ee=Object(K.a)(ze,2),Ue=Ee[1];function Me(Fe){Ge(Fe)}function $e(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge(null,Fe)}return Object(a.useEffect)(function(){$e(!0)},[e]),Object(a.useEffect)(function(){return function(){return cancelAnimationFrame(_e.current)}},[]),[Ue,Me,$e]}function Nt(e){var p,D=e.prefixCls,x=D===void 0?"rc-picker":D,te=e.id,U=e.tabIndex,ce=e.style,De=e.className,Le=e.dropdownClassName,_e=e.dropdownAlign,Ge=e.popupStyle,ze=e.transitionName,Ee=e.generateConfig,Ue=e.locale,Me=e.inputReadOnly,$e=e.allowClear,Fe=e.autoFocus,it=e.showTime,lt=e.picker,Mt=lt===void 0?"date":lt,Lt=e.format,pt=e.use12Hours,bt=e.value,wt=e.defaultValue,Pt=e.open,cn=e.defaultOpen,rn=e.defaultOpenValue,Rn=e.suffixIcon,tn=e.clearIcon,xn=e.disabled,yn=e.disabledDate,Qn=e.placeholder,Jn=e.getPopupContainer,Zn=e.pickerRef,Gn=e.panelRender,la=e.onChange,Hn=e.onOpenChange,pa=e.onFocus,qn=e.onBlur,va=e.onMouseDown,ft=e.onMouseUp,Ot=e.onMouseEnter,_t=e.onMouseLeave,Jt=e.onContextMenu,dn=e.onClick,Cn=e.direction,Tn=e.autoComplete,zn=Tn===void 0?"off":Tn,Ln=a.useRef(null),ja=Mt==="date"&&!!it||Mt==="time",ua=me(o(Lt,Mt,it,pt)),Da=a.useRef(null),Kn=a.useRef(null),ca=Object(he.a)(null,{value:bt,defaultValue:wt}),_a=Object(K.a)(ca,2),ea=_a[0],ta=_a[1],Sa=a.useState(ea),na=Object(K.a)(Sa,2),da=na[0],Fn=na[1],_n=a.useRef(null),Bn=Object(he.a)(!1,{value:Pt,defaultValue:cn,postState:function(Bt){return xn?!1:Bt},onChange:function(Bt){Hn&&Hn(Bt),!Bt&&_n.current&&_n.current.onClose&&_n.current.onClose()}}),ba=Object(K.a)(Bn,2),Nn=ba[0],fa=ba[1],jn=gt(da,{formatList:ua,generateConfig:Ee,locale:Ue}),wa=Object(K.a)(jn,2),Ca=wa[0],At=wa[1],ka=Gt({valueTexts:Ca,onTextChange:function(Bt){var Ta=Ee.locale.parse(Ue.locale,Bt,ua);Ta&&(!yn||!yn(Ta))&&Fn(Ta)}}),aa=Object(K.a)(ka,3),Zt=aa[0],Vn=aa[1],ga=aa[2],fn=function(Bt){Fn(Bt),ta(Bt),la&&!Ve(Ee,ea,Bt)&&la(Bt,Bt?Ee.locale.format(Ue.locale,Bt,ua[0]):"")},Sn=function(Bt){if(xn&&Bt)return;fa(Bt)},Xn=function(Bt){return Nn&&_n.current&&_n.current.onKeyDown?_n.current.onKeyDown(Bt):(Object(Q.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ma=function(){ft&&ft.apply(void 0,arguments),Ln.current&&(Ln.current.focus(),Sn(!0))},Pa=$t({blurToCancel:ja,open:Nn,value:Zt,triggerOpen:Sn,forwardKeyDown:Xn,isClickOutside:function(Bt){return!l([Da.current,Kn.current],Bt)},onSubmit:function(){return yn&&yn(da)?!1:(fn(da),Sn(!1),ga(),!0)},onCancel:function(){Sn(!1),Fn(ea),ga()},onFocus:pa,onBlur:qn}),Ea=Object(K.a)(Pa,2),Aa=Ea[0],Ra=Ea[1],vn=Ra.focused,oa=Ra.typing;a.useEffect(function(){Nn||(Fn(ea),!Ca.length||Ca[0]===""?Vn(""):At!==Zt&&ga())},[Nn,Ca]),a.useEffect(function(){Nn||ga()},[Mt]),a.useEffect(function(){Fn(ea)},[ea]),Zn&&(Zn.current={focus:function(){Ln.current&&Ln.current.focus()},blur:function(){Ln.current&&Ln.current.blur()}});var ln=Object(i.a)(Object(i.a)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Et=a.createElement(pn,Object.assign({},ln,{generateConfig:Ee,className:_()(Object(I.a)({},"".concat(x,"-panel-focused"),!oa)),value:da,locale:Ue,tabIndex:-1,onChange:Fn,direction:Cn}));Gn&&(Et=Gn(Et));var Ft=a.createElement("div",{className:"".concat(x,"-panel-container"),onMouseDown:function(Bt){Bt.preventDefault()}},Et),ra;Rn&&(ra=a.createElement("span",{className:"".concat(x,"-suffix")},Rn));var Wa;$e&&ea&&!xn&&(Wa=a.createElement("span",{onMouseDown:function(Bt){Bt.preventDefault(),Bt.stopPropagation()},onMouseUp:function(Bt){Bt.preventDefault(),Bt.stopPropagation(),fn(null),Sn(!1)},className:"".concat(x,"-clear")},tn||a.createElement("span",{className:"".concat(x,"-clear-btn")})));var qa=function(Bt,Ta){(Ta==="submit"||Ta!=="key"&&!ja)&&(fn(Bt),Sn(!1))},Ha=Cn==="rtl"?"bottomRight":"bottomLeft",za=ht(Zt,{formatList:ua,generateConfig:Ee,locale:Ue}),Ua=Object(K.a)(za,3),Xa=Ua[0],$a=Ua[1],$n=Ua[2];return a.createElement(g.Provider,{value:{operationRef:_n,hideHeader:Mt==="time",panelRef:Da,onSelect:qa,open:Nn,defaultOpenValue:rn,onDateMouseEnter:$a,onDateMouseLeave:$n}},a.createElement(on,{visible:Nn,popupElement:Ft,popupStyle:Ge,prefixCls:x,dropdownClassName:Le,dropdownAlign:_e,getPopupContainer:Jn,transitionName:ze,popupPlacement:Ha,direction:Cn},a.createElement("div",{className:_()(x,De,(p={},Object(I.a)(p,"".concat(x,"-disabled"),xn),Object(I.a)(p,"".concat(x,"-focused"),vn),Object(I.a)(p,"".concat(x,"-rtl"),Cn==="rtl"),p)),style:ce,onMouseDown:va,onMouseUp:Ma,onMouseEnter:Ot,onMouseLeave:_t,onContextMenu:Jt,onClick:dn},a.createElement("div",{className:_()("".concat(x,"-input"),Object(I.a)({},"".concat(x,"-input-placeholder"),!!Xa)),ref:Kn},a.createElement("input",Object.assign({id:te,tabIndex:U,disabled:xn,readOnly:Me||!oa,value:Xa||Zt,onChange:function(Bt){Vn(Bt.target.value)},autoFocus:Fe,placeholder:Qn,ref:Ln,title:Zt},Aa,{size:d(Mt,ua[0])},Y(e),{autoComplete:zn})),ra,Wa))))}var Wt=function(e){Object(ke.a)(D,e);var p=Object(ye.a)(D);function D(){var x;return Object(A.a)(this,D),x=p.apply(this,arguments),x.pickerRef=a.createRef(),x.focus=function(){x.pickerRef.current&&x.pickerRef.current.focus()},x.blur=function(){x.pickerRef.current&&x.pickerRef.current.blur()},x}return Object(L.a)(D,[{key:"render",value:function(){return a.createElement(Nt,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),D}(a.Component),un=Wt;function St(e,p,D){var x=e.picker,te=e.locale,U=e.selectedValue,ce=e.disabledDate,De=e.disabled,Le=e.generateConfig,_e=P(U,0),Ge=P(U,1);function ze(Fe){var it=Le.getYear(Fe),lt=Le.locale.getWeek(te.locale,Fe);return it*100+lt}function Ee(Fe){var it=Le.getYear(Fe),lt=Le.getMonth(Fe);return it*100+lt}function Ue(Fe){var it=Le.getYear(Fe),lt=ot(Le,Fe);return it*10+lt}var Me=a.useCallback(function(Fe){if(ce&&ce(Fe))return!0;if(De[1]&&Ge)return!xt(Le,Fe,Ge)&&Le.isAfter(Fe,Ge);if(p&&Ge)switch(x){case"quarter":return Ue(Fe)>Ue(Ge);case"month":return Ee(Fe)>Ee(Ge);case"week":return ze(Fe)>ze(Ge);default:return!xt(Le,Fe,Ge)&&Le.isAfter(Fe,Ge)}return!1},[ce,De[1],Ge,p]),$e=a.useCallback(function(Fe){if(ce&&ce(Fe))return!0;if(De[0]&&_e)return!xt(Le,Fe,Ge)&&Le.isAfter(_e,Fe);if(D&&_e)switch(x){case"quarter":return Ue(Fe)0&&arguments[0]!==void 0?arguments[0]:!1,ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=null;$n&&Ka&&Ka[0]&&Ka[1]&&Me.isAfter(Ka[1],Ka[0])&&(Rt=Ka);var Kt=bt;if(bt&&Object(fe.a)(bt)==="object"&&bt.defaultValue){var bn=bt.defaultValue;Kt=Object(i.a)(Object(i.a)({},bt),{},{defaultValue:P(bn,At)||void 0})}var La=null;return Zn&&(La=function(ma,ya){return Zn(ma,ya,{range:At?"end":"start"})}),a.createElement(de.Provider,{value:{inRange:!0,panelPosition:kt,rangedValue:Zo||vn,hoverRangedValue:Rt}},a.createElement(pn,Object.assign({},e,ut,{dateRender:La,showTime:Kt,mode:Ft[At],generateConfig:Me,style:void 0,direction:ca,disabledDate:At===0?za:Ua,disabledTime:function(ma){return Jn?Jn(ma,At===0?"start":"end"):!1},className:_()(Object(I.a)({},"".concat(U,"-panel-focused"),At===0?!Po:!ko)),value:P(vn,At),locale:$e,tabIndex:-1,onPanelChange:function(ma,ya){Wa(h(Ft,ya,At),h(vn,ma,At));var xa=ma;kt==="right"&&Ft[At]===ya&&(xa=O(xa,ya,Me,-1)),Ea(xa,At)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Fa=0,Uo=0;At&&_n.current&&ba.current&&Fn.current&&(Fa=_n.current.offsetWidth+ba.current.offsetWidth,Fn.current.offsetWidth&&Fa>Fn.current.offsetWidth&&(Uo=Fa));var vr=ca==="rtl"?{right:Fa}:{left:Fa};function br(){var kt,ut=an(U,Ft[At],Jt),Rt=en({prefixCls:U,components:Da,needConfirmButton:Sa,okDisabled:!P(vn,At)||Qn&&Qn(vn[At]),locale:$e,rangeList:pr,onOk:function(){P(vn,At)&&(Ba(vn,At),ua&&ua(vn))}});if(pt!=="time"&&!bt){var Kt=Pa(At),bn=O(Kt,pt,Me),La=Ft[At],Oa=La===pt,ma=ro(Oa?"left":!1,{pickerValue:Kt,onPickerValueChange:function(ia){Ea(ia,At)}}),ya=ro("right",{pickerValue:bn,onPickerValueChange:function(ia){Ea(O(ia,pt,Me,-1),At)}});ca==="rtl"?kt=a.createElement(a.Fragment,null,ya,Oa&&ma):kt=a.createElement(a.Fragment,null,ma,Oa&&ya)}else kt=ro();var xa=a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(U,"-panels")},kt),(ut||Rt)&&a.createElement("div",{className:"".concat(U,"-footer")},ut,Rt));return Gn&&(xa=Gn(xa)),a.createElement("div",{className:"".concat(U,"-panel-container"),style:{marginLeft:Uo},ref:Fn,onMouseDown:function(ia){ia.preventDefault()}},xa)}var gr=a.createElement("div",{className:_()("".concat(U,"-range-wrapper"),"".concat(U,"-").concat(pt,"-range-wrapper")),style:{minWidth:Vo}},a.createElement("div",{className:"".concat(U,"-range-arrow"),style:vr}),br()),Io;qn&&(Io=a.createElement("span",{className:"".concat(U,"-suffix")},qn));var Ko;pa&&(P(fn,0)&&!Zt[0]||P(fn,1)&&!Zt[1])&&(Ko=a.createElement("span",{onMouseDown:function(ut){ut.preventDefault(),ut.stopPropagation()},onMouseUp:function(ut){ut.preventDefault(),ut.stopPropagation();var Rt=fn;Zt[0]||(Rt=h(Rt,null,0)),Zt[1]||(Rt=h(Rt,null,1)),Ba(Rt,null),Ia(!1,At)},className:"".concat(U,"-clear")},va||a.createElement("span",{className:"".concat(U,"-clear-btn")})));var Fo={size:d(pt,jn[0])},io=0,so=0;_n.current&&Bn.current&&ba.current&&(At===0?so=_n.current.offsetWidth:(io=Fa,so=Bn.current.offsetWidth));var Er=ca==="rtl"?{right:io}:{left:io},yr=function(ut,Rt){var Kt=h(vn,ut,At);Rt==="submit"||Rt!=="key"&&!Sa?(Ba(Kt,At),At===0?Do():Ro()):oa(Kt)};return a.createElement(g.Provider,{value:{operationRef:aa,hideHeader:pt==="time",onDateMouseEnter:or,onDateMouseLeave:rr,hideRanges:!0,onSelect:yr,open:$n}},a.createElement(on,{visible:$n,popupElement:gr,popupStyle:_e,prefixCls:U,dropdownClassName:Ge,dropdownAlign:Ee,getPopupContainer:Ue,transitionName:ze,range:!0,direction:ca},a.createElement("div",Object.assign({ref:da,className:_()(U,"".concat(U,"-range"),Le,(p={},Object(I.a)(p,"".concat(U,"-disabled"),Zt[0]&&Zt[1]),Object(I.a)(p,"".concat(U,"-focused"),At===0?wo:_o),Object(I.a)(p,"".concat(U,"-rtl"),ca==="rtl"),p)),style:De,onClick:cr,onMouseDown:dr},Y(e)),a.createElement("div",{className:_()("".concat(U,"-input"),(D={},Object(I.a)(D,"".concat(U,"-input-active"),At===0),Object(I.a)(D,"".concat(U,"-input-placeholder"),!!jo),D)),ref:_n},a.createElement("input",Object.assign({id:ce,disabled:Zt[0],readOnly:Ot||!Po,value:jo||Qa,onChange:function(ut){vo(ut.target.value)},autoFocus:it,placeholder:P(Fe,0)||"",ref:Nn},sr,Fo,{autoComplete:ta}))),a.createElement("div",{className:"".concat(U,"-range-separator"),ref:ba},cn),a.createElement("div",{className:_()("".concat(U,"-input"),(x={},Object(I.a)(x,"".concat(U,"-input-active"),At===1),Object(I.a)(x,"".concat(U,"-input-placeholder"),!!Mo),x)),ref:Bn},a.createElement("input",Object.assign({disabled:Zt[1],readOnly:Ot||!ko,value:Mo||Ja,onChange:function(ut){go(ut.target.value)},placeholder:P(Fe,1)||"",ref:fa},ur,Fo,{autoComplete:ta}))),a.createElement("div",{className:"".concat(U,"-active-bar"),style:Object(i.a)(Object(i.a)({},Er),{},{width:so,position:"absolute"})}),Io,Ko)))}var In=function(e){Object(ke.a)(D,e);var p=Object(ye.a)(D);function D(){var x;return Object(A.a)(this,D),x=p.apply(this,arguments),x.pickerRef=a.createRef(),x.focus=function(){x.pickerRef.current&&x.pickerRef.current.focus()},x.blur=function(){x.pickerRef.current&&x.pickerRef.current.blur()},x}return Object(L.a)(D,[{key:"render",value:function(){return a.createElement(Un,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),D}(a.Component),Za=In,lo=be.b=un},sR1s:function(Tt,be,t){"use strict";t.d(be,"b",function(){return ye}),t.d(be,"a",function(){return I}),t.d(be,"c",function(){return i}),t.d(be,"d",function(){return K});var A=t("U8pU"),L="RC_TABLE_KEY";function ke(a){return a==null?[]:Array.isArray(a)?a:[a]}function ye(a,M){if(!M&&typeof M!="number")return a;for(var _=ke(M),Q=a,he=0;he<_.length;he+=1){if(!Q)return null;var fe=_[he];Q=Q[fe]}return Q}function I(a){var M=[],_={};return a.forEach(function(Q){for(var he=Q||{},fe=he.key,W=he.dataIndex,R=fe||ke(W).join("-")||L;_[R];)R="".concat(R,"_next");_[R]=!0,M.push(R)}),M}function i(){var a={};function M(fe,W){W&&Object.keys(W).forEach(function(R){var g=W[R];g&&Object(A.a)(g)==="object"?(fe[R]=fe[R]||{},M(fe[R],g)):fe[R]=g})}for(var _=arguments.length,Q=new Array(_),he=0;he<_;he++)Q[he]=arguments[he];return Q.forEach(function(fe){M(a,fe)}),a}function K(a){return a!=null}},sboe:function(Tt,be,t){"use strict";t.d(be,"a",function(){return ke});var A=t("q1tI"),L=t.n(A),ke=A.createContext(null)},t23M:function(Tt,be,t){"use strict";var A=t("VTBJ"),L=t("1OyB"),ke=t("vuIU"),ye=t("Ji7U"),I=t("LK+K"),i=t("q1tI"),K=t.n(i),a=t("m+aA"),M=t("Zm9Q"),_=t("Kwbf"),Q=t("c+Xe"),he=t("bdgK"),fe="rc-observer-key",W=function(R){Object(ye.a)(X,R);var g=Object(I.a)(X);function X(){var V;return Object(L.a)(this,X),V=g.apply(this,arguments),V.resizeObserver=null,V.childNode=null,V.currentElement=null,V.state={width:0,height:0,offsetHeight:0,offsetWidth:0},V.onResize=function(se){var re=V.props.onResize,ie=se[0].target,xe=ie.getBoundingClientRect(),ne=xe.width,pe=xe.height,J=ie.offsetWidth,b=ie.offsetHeight,o=Math.floor(ne),d=Math.floor(pe);if(V.state.width!==o||V.state.height!==d||V.state.offsetWidth!==J||V.state.offsetHeight!==b){var k={width:o,height:d,offsetWidth:J,offsetHeight:b};V.setState(k),re&&Promise.resolve().then(function(){re(Object(A.a)(Object(A.a)({},k),{},{offsetWidth:J,offsetHeight:b}))})}},V.setChildNode=function(se){V.childNode=se},V}return Object(ke.a)(X,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var se=this.props.disabled;if(se){this.destroyObserver();return}var re=Object(a.a)(this.childNode||this),ie=re!==this.currentElement;ie&&(this.destroyObserver(),this.currentElement=re),!this.resizeObserver&&re&&(this.resizeObserver=new he.default(this.onResize),this.resizeObserver.observe(re))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var se=this.props.children,re=Object(M.a)(se);if(re.length>1)Object(_.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(re.length===0)return Object(_.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var ie=re[0];if(i.isValidElement(ie)&&Object(Q.c)(ie)){var xe=ie.ref;re[0]=i.cloneElement(ie,{ref:Object(Q.a)(xe,this.setChildNode)})}return re.length===1?re[0]:re.map(function(ne,pe){return!i.isValidElement(ne)||"key"in ne&&ne.key!==null?ne:i.cloneElement(ne,{key:"".concat(fe,"-").concat(pe)})})}}]),X}(i.Component);W.displayName="ResizeObserver",be.a=W},wCXF:function(Tt,be,t){"use strict";t.d(be,"a",function(){return Ne});var A=t("rePB"),L=t("VTBJ"),ke=t("KQm4"),ye=t("U8pU"),I=t("ODXe"),i=t("q1tI"),K=t("TSYQ"),a=t.n(K),M=t("Gytx"),_=t.n(M),Q=t("Kwbf"),he=t("t23M"),fe=t("qx4F"),W=t("6eGT"),R=t("IBYe"),g=t("Ff2n"),X=t("c+Xe"),V=t("fyJ8"),se=t("biw7");function re(O,oe,de,we,Pe){var Ae=de[O]||{},Ke=de[oe]||{},Te,Xe;Ae.fixed==="left"?Te=we.left[O]:Ke.fixed==="right"&&(Xe=we.right[oe]);var et=!1,at=!1,Qe=!1,vt=!1,ct=de[oe+1],jt=de[O-1];if(Pe==="rtl"){if(Te!==void 0){var dt=jt&&jt.fixed==="left";vt=!dt}else if(Xe!==void 0){var Je=ct&&ct.fixed==="right";Qe=!Je}}else if(Te!==void 0){var st=ct&&ct.fixed==="left";et=!st}else if(Xe!==void 0){var tt=jt&&jt.fixed==="right";at=!tt}return{fixLeft:Te,fixRight:Xe,lastFixLeft:et,firstFixRight:at,lastFixRight:Qe,firstFixLeft:vt,isSticky:we.isSticky}}var ie=t("sR1s");function xe(O){var oe=O.cells,de=O.stickyOffsets,we=O.flattenColumns,Pe=O.rowComponent,Ae=O.cellComponent,Ke=O.onHeaderRow,Te=O.index,Xe=i.useContext(se.a),et=Xe.prefixCls,at=Xe.direction,Qe;Ke&&(Qe=Ke(oe.map(function(ct){return ct.column}),Te));var vt=Object(ie.a)(oe.map(function(ct){return ct.column}));return i.createElement(Pe,Object.assign({},Qe),oe.map(function(ct,jt){var dt=ct.column,Je=re(ct.colStart,ct.colEnd,we,de,at),st;return dt&&dt.onHeaderCell&&(st=ct.column.onHeaderCell(dt)),i.createElement(V.a,Object.assign({},ct,{ellipsis:dt.ellipsis,align:dt.align,component:Ae,prefixCls:et,key:vt[jt]},Je,{additionalProps:st,rowType:"header"}))}))}xe.displayName="HeaderRow";var ne=xe;function pe(O){var oe=[];function de(Ke,Te){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;oe[Xe]=oe[Xe]||[];var et=Te,at=Ke.filter(Boolean).map(function(Qe){var vt={key:Qe.key,className:Qe.className||"",children:Qe.title,column:Qe,colStart:et},ct=1,jt=Qe.children;return jt&&jt.length>0&&(ct=de(jt,et,Xe+1).reduce(function(dt,Je){return dt+Je},0),vt.hasSubColumns=!0),"colSpan"in Qe&&(ct=Qe.colSpan),"rowSpan"in Qe&&(vt.rowSpan=Qe.rowSpan),vt.colSpan=ct,vt.colEnd=vt.colStart+ct-1,oe[Xe].push(vt),et+=ct,ct});return at}de(O,0);for(var we=oe.length,Pe=function(Te){oe[Te].forEach(function(Xe){!("rowSpan"in Xe)&&!Xe.hasSubColumns&&(Xe.rowSpan=we-Te)})},Ae=0;Ae=0;Te-=1){var Xe=oe[Te],et=de&&de[Te],at=et&&et[o.a];(Xe||at||Ke)&&(Pe.unshift(i.createElement("col",Object.assign({key:Te,style:{width:Xe,minWidth:Xe}},at))),Ke=!0)}return i.createElement("colgroup",null,Pe)}var k=d;function H(O,oe){return Object(i.useMemo)(function(){for(var de=[],we=0;we1?en-1:0),pn=1;pn=Qe&&(Be=Qe-vt),Ke({scrollLeft:Be/Qe*(at+2)}),tt.current.x=B.pageX},z=function(){var B=Object(Ye.b)(Ae.current).top,ve=B+Ae.current.offsetHeight,Se=document.documentElement.scrollTop+window.innerHeight;ve-Object(fe.a)()<=Se||B>=Se-Te?st(function(rt){return Object(L.a)(Object(L.a)({},rt),{},{isHiddenScrollBar:!0})}):st(function(rt){return Object(L.a)(Object(L.a)({},rt),{},{isHiddenScrollBar:!1})})},Re=function(B){st(function(ve){return Object(L.a)(Object(L.a)({},ve),{},{scrollLeft:B/at*Qe||0})})};return i.useImperativeHandle(de,function(){return{setScrollLeft:Re}}),i.useEffect(function(){var je=Object(We.a)(document.body,"mouseup",r,!1),B=Object(We.a)(document.body,"mousemove",ue,!1);return z(),function(){je.remove(),B.remove()}},[vt,Ce]),i.useEffect(function(){var je=Object(We.a)(window,"scroll",z,!1),B=Object(We.a)(window,"resize",z,!1);return function(){je.remove(),B.remove()}},[]),i.useEffect(function(){Je.isHiddenScrollBar||st(function(je){var B,ve;return Object(L.a)(Object(L.a)({},je),{},{scrollLeft:Ae.current.scrollLeft/((B=Ae.current)===null||B===void 0?void 0:B.scrollWidth)*((ve=Ae.current)===null||ve===void 0?void 0:ve.clientWidth)})})},[Je.isHiddenScrollBar]),at<=Qe||!vt||Je.isHiddenScrollBar?null:i.createElement("div",{style:{height:Object(fe.a)(),width:Qe,bottom:Te},className:"".concat(et,"-sticky-scroll")},i.createElement("div",{onMouseDown:c,ref:ct,className:a()("".concat(et,"-sticky-scroll-bar"),Object(A.a)({},"".concat(et,"-sticky-scroll-bar-active"),Ce)),style:{width:"".concat(vt,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},nt=i.forwardRef(ot);function Ze(O,oe){return i.useMemo(function(){var de=!!O;return{isSticky:de,stickyClassName:de?"".concat(oe,"-sticky-header"):"",offsetHeader:Object(ye.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(ye.a)(O)==="object"&&O.offsetScroll||0}},[O,oe])}var xt=[],q={},Ne="rc-table-internal-hook",Ve=i.memo(function(O){var oe=O.children;return oe},function(O,oe){return _()(O.props,oe.props)?O.pingLeft!==oe.pingLeft||O.pingRight!==oe.pingRight:!1});function Ie(O){var oe,de=O.prefixCls,we=O.className,Pe=O.rowClassName,Ae=O.style,Ke=O.data,Te=O.rowKey,Xe=O.scroll,et=O.tableLayout,at=O.direction,Qe=O.title,vt=O.footer,ct=O.summary,jt=O.id,dt=O.showHeader,Je=O.components,st=O.emptyText,tt=O.onRow,He=O.onHeaderRow,ee=O.internalHooks,Ce=O.transformColumns,F=O.internalRefs,r=O.sticky,c=Ke||xt,ue=!!c.length,z=i.useState(0),Re=Object(I.a)(z,2),je=Re[0],B=Re[1];i.useEffect(function(){B(Object(fe.a)())});var ve=i.useMemo(function(){return Object(ie.c)(Je,{})},[Je]),Se=i.useCallback(function(ft,Ot){return Object(ie.b)(ve,ft)||Ot},[ve]),rt=i.useMemo(function(){return typeof Te=="function"?Te:function(ft){var Ot=ft&&ft[Te];return Ot}},[Te]),Be=Object(o.c)(O),Dt=Be.expandIcon,yt=Be.expandedRowKeys,Ht=Be.defaultExpandedRowKeys,Ut=Be.defaultExpandAllRows,It=Be.expandedRowRender,Yt=Be.onExpand,zt=Be.onExpandedRowsChange,On=Be.expandRowByClick,Vt=Be.rowExpandable,Xt=Be.expandIconColumnIndex,wn=Be.expandedRowClassName,gn=Be.childrenColumnName,Wn=Be.indentSize,mn=Dt||G,En=gn||"children",qt=i.useMemo(function(){return It?"row":O.expandable&&ee===Ne&&O.expandable.__PARENT_RENDER_ICON__||c.some(function(ft){return ft&&Object(ye.a)(ft)==="object"&&ft[En]})?"nest":!1},[!!It,c]),sn=i.useState(function(){return Ht||(Ut?Oe(c,rt,En):[])}),nn=Object(I.a)(sn,2),hn=nn[0],an=nn[1],en=i.useMemo(function(){return new Set(yt||hn||[])},[yt,hn]),Pn=i.useCallback(function(ft){var Ot=rt(ft,c.indexOf(ft)),_t,Jt=en.has(Ot);Jt?(en.delete(Ot),_t=Object(ke.a)(en)):_t=[].concat(Object(ke.a)(en),[Ot]),an(_t),Yt&&Yt(!Jt,ft),zt&&zt(_t)},[rt,en,c,Yt,zt]),pn=i.useState(0),sa=Object(I.a)(pn,2),kn=sa[0],Yn=sa[1],on=Object(h.b)(Object(L.a)(Object(L.a)(Object(L.a)({},O),Be),{},{expandable:!!It,expandedKeys:en,getRowKey:rt,onTriggerExpand:Pn,expandIcon:mn,expandIconColumnIndex:Xt,direction:at}),ee===Ne?Ce:null),$t=Object(I.a)(on,2),Gt=$t[0],mt=$t[1],Ct=i.useMemo(function(){return{columns:Gt,flattenColumns:mt}},[Gt,mt]),gt=i.useRef(),ht=i.useRef(),Nt=i.useRef(),Wt=i.useState(!1),un=Object(I.a)(Wt,2),St=un[0],Qt=un[1],An=i.useState(!1),ha=Object(I.a)(An,2),Mn=ha[0],Na=ha[1],Un=y(new Map),In=Object(I.a)(Un,2),Za=In[0],lo=In[1],e=Object(ie.a)(mt),p=e.map(function(ft){return Za.get(ft)}),D=i.useMemo(function(){return p},[p.join("_")]),x=f(D,mt.length,at),te=Xe&&Object(ie.d)(Xe.y),U=Xe&&Object(ie.d)(Xe.x),ce=U&&mt.some(function(ft){var Ot=ft.fixed;return Ot}),De=i.useRef(),Le=Ze(r,de),_e=Le.isSticky,Ge=Le.offsetHeader,ze=Le.offsetScroll,Ee=Le.stickyClassName,Ue,Me,$e;te&&(Me={overflowY:"scroll",maxHeight:Xe.y}),U&&(Ue={overflowX:"auto"},te||(Me={overflowY:"hidden"}),$e={width:Xe.x===!0?"auto":Xe.x,minWidth:"100%"});var Fe=i.useCallback(function(ft,Ot){lo(function(_t){var Jt=new Map(_t);return Jt.set(ft,Ot),Jt})},[]),it=Z(null),lt=Object(I.a)(it,2),Mt=lt[0],Lt=lt[1];function pt(ft,Ot){if(!Ot)return;typeof Ot=="function"?Ot(ft):Ot.scrollLeft!==ft&&(Ot.scrollLeft=ft)}var bt=function(Ot){var _t=Ot.currentTarget,Jt=Ot.scrollLeft,dn=typeof Jt=="number"?Jt:_t.scrollLeft,Cn=_t||q;if(!Lt()||Lt()===Cn){var Tn;Mt(Cn),pt(dn,ht.current),pt(dn,Nt.current),pt(dn,(Tn=De.current)===null||Tn===void 0?void 0:Tn.setScrollLeft)}if(_t){var zn=_t.scrollWidth,Ln=_t.clientWidth;Qt(dn>0),Na(dn0?[].concat(Object(L.a)(g),Object(L.a)(Q(re).map(function(ie){return Object(ke.a)({fixed:se},ie)}))):[].concat(Object(L.a)(g),[Object(ke.a)(Object(ke.a)({},X),{},{fixed:se})])},[])}function he(R){for(var g=!0,X=0;X=0;re-=1){var ie=R[re];if(se&&ie.fixed!=="right")se=!1;else if(!se&&ie.fixed==="right"){Object(K.a)(!1,"Index ".concat(re+1," of `columns` missing `fixed='right'` prop."));break}}}function fe(R){return R.map(function(g){var X=g.fixed,V=Object(ye.a)(g,["fixed"]),se=X;return X==="left"?se="right":X==="right"&&(se="left"),Object(ke.a)({fixed:se},V)})}function W(R,g){var X=R.prefixCls,V=R.columns,se=R.children,re=R.expandable,ie=R.expandedKeys,xe=R.getRowKey,ne=R.onTriggerExpand,pe=R.expandIcon,J=R.rowExpandable,b=R.expandIconColumnIndex,o=R.direction,d=R.expandRowByClick,k=I.useMemo(function(){return V||_(se)},[V,se]),H=I.useMemo(function(){if(re){var T,u=b||0,j=k[u],m=(T={},Object(A.a)(T,M.a,{className:"".concat(X,"-expand-icon-col")}),Object(A.a)(T,"title",""),Object(A.a)(T,"fixed",j?j.fixed:null),Object(A.a)(T,"className","".concat(X,"-row-expand-icon-cell")),Object(A.a)(T,"render",function(E,w,ge){var me=xe(w,ge),Y=ie.has(me),P=J?J(w):!0,h=pe({prefixCls:X,expanded:Y,expandable:P,record:w,onExpand:ne});return d?I.createElement("span",{onClick:function(N){return N.stopPropagation()}},h):h}),T),l=k.slice();return u>=0&&l.splice(u,0,m),l}return k},[re,k,xe,ie,pe,o]),le=I.useMemo(function(){var T=H;return g&&(T=g(T)),T.length||(T=[{render:function(){return null}}]),T},[g,H,o]),ae=I.useMemo(function(){return o==="rtl"?fe(Q(le)):Q(le)},[le,o]);return[le,ae]}be.b=W},"y0+3":function(Tt,be,t){"use strict";t.d(be,"a",function(){return Q}),t.d(be,"b",function(){return fe});var A=/margin|padding|width|height|max|min|offset/,L={left:!0,top:!0},ke={cssFloat:1,styleFloat:1,float:1};function ye(W){return W.nodeType===1?W.ownerDocument.defaultView.getComputedStyle(W,null):{}}function I(W,R,g){if(R=R.toLowerCase(),g==="auto"){if(R==="height")return W.offsetHeight;if(R==="width")return W.offsetWidth}return R in L||(L[R]=A.test(R)),L[R]?parseFloat(g)||0:g}function i(W,R){var g=arguments.length,X=ye(W);return R=ke[R]?"cssFloat"in W.style?"cssFloat":"styleFloat":R,g===1?X:I(W,R,X[R]||W.style[R])}function K(W,R,g){var X=arguments.length;if(R=ke[R]?"cssFloat"in W.style?"cssFloat":"styleFloat":R,X===3)return typeof g=="number"&&A.test(R)&&(g="".concat(g,"px")),W.style[R]=g,g;for(var V in R)R.hasOwnProperty(V)&&K(W,V,R[V]);return ye(W)}function a(W){return W===document.body?document.documentElement.clientWidth:W.offsetWidth}function M(W){return W===document.body?window.innerHeight||document.documentElement.clientHeight:W.offsetHeight}function _(){var W=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:W,height:R}}function Q(){var W=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:W,height:R}}function he(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function fe(W){var R=W.getBoundingClientRect(),g=document.documentElement;return{left:R.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail.adedf200.async.js b/p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail.adedf200.async.js index 9108f5a3fd..e1b69d75bd 100644 --- a/p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail.adedf200.async.js +++ b/p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail.adedf200.async.js @@ -1,10 +1,10 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[60,8],{"+ua5":function(Ce,x,t){},"/cxE":function(Ce,x,t){"use strict";t.d(x,"e",function(){return z}),t.d(x,"f",function(){return k}),t.d(x,"g",function(){return T}),t.d(x,"d",function(){return V}),t.d(x,"a",function(){return U}),t.d(x,"b",function(){return v}),t.d(x,"c",function(){return b});var w=function(){function s(){this.listeners=[],this.unexpectedErrorHandler=function(l){setTimeout(function(){throw l.stack?new Error(l.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[60,8],{"+ua5":function(Ce,x,t){},"/cxE":function(Ce,x,t){"use strict";t.d(x,"e",function(){return z}),t.d(x,"f",function(){return k}),t.d(x,"g",function(){return T}),t.d(x,"d",function(){return V}),t.d(x,"a",function(){return U}),t.d(x,"b",function(){return v}),t.d(x,"c",function(){return E});var w=function(){function s(){this.listeners=[],this.unexpectedErrorHandler=function(l){setTimeout(function(){throw l.stack?new Error(l.message+` -`+l.stack):l},0)}}return s.prototype.emit=function(l){this.listeners.forEach(function(u){u(l)})},s.prototype.onUnexpectedError=function(l){this.unexpectedErrorHandler(l),this.emit(l)},s.prototype.onUnexpectedExternalError=function(l){this.unexpectedErrorHandler(l)},s}(),P=new w;function z(s){V(s)||P.onUnexpectedError(s);return}function k(s){V(s)||P.onUnexpectedExternalError(s);return}function T(s){if(s instanceof Error){var l=s.name,u=s.message,i=s.stacktrace||s.stack;return{$isError:!0,name:l,message:u,stack:i}}return s}var h="Canceled";function V(s){return s instanceof Error&&s.name===h&&s.message===h}function U(){var s=new Error(h);return s.name=s.message,s}function v(s){return s?new Error("Illegal argument: "+s):new Error("Illegal argument")}function b(s){return s?new Error("Illegal state: "+s):new Error("Illegal state")}},"1h7y":function(Ce,x,t){"use strict";t.r(x);var w=t("g9YV"),P=t("wCAj"),z=t("14J3"),k=t("BMrR"),T=t("jCWc"),h=t("kPKH"),V=t("sPJy"),U=t("bE4q"),v=t("giR+"),b=t("fyUT"),s=t("miYZ"),l=t("tsqr"),u=t("k1fw"),i=t("9og8"),a=t("tJVT"),f=t("WmNS"),n=t.n(f),e=t("q1tI"),r=t.n(e),d=t("jhfD"),E=t("wd/R"),M=t.n(E),O=t("Ty5D"),A=t("55Ip"),K=t("9kvl"),C=t("ZW9T"),y=t("JDZd"),o=t.n(y),D=function(j){var g,R=j.exercise,B=R.codeReviewDetail,W=(B==null?void 0:B.question_type)===6;return r.a.createElement("section",{className:"pl20 pr20 pb20"},(g=B.challenge_list)===null||g===void 0?void 0:g.map(function(F,G){var J,ne;return r.a.createElement("aside",{key:G},!W&&r.a.createElement("div",{className:"".concat(o.a.shixunTitle," mt20")},r.a.createElement(k.a,null,r.a.createElement(h.a,{flex:"1"},r.a.createElement("span",{className:"fa fa-code "}),r.a.createElement("strong",{className:"c-black"},"\u7B2C",G+1,"\u5173 ",r.a.createElement(A.a,{className:"c-black",to:"/tasks/".concat(F.game_identifier)},F.subject))),r.a.createElement(h.a,{className:"font16"},"\u4EE3\u7801\u6587\u4EF6:",F==null||((J=F.code_list)===null||J===void 0||((ne=J[0])===null||ne===void 0))?void 0:ne.path))),r.a.createElement("div",{className:"font16 mt10"},F.code_list.map(function(le,xe){return r.a.createElement("aside",{className:o.a.shixunWrp},r.a.createElement(k.a,{className:"pt10 pb20"},r.a.createElement(h.a,{flex:"1"},r.a.createElement("span",{className:"c-red"},F.username),"\u7684\u4EE3\u7801\u6587\u4EF6"),r.a.createElement(h.a,{flex:"1"},r.a.createElement("span",{className:"c-green"},F.copy_username),"\u7684\u4EE3\u7801\u6587\u4EF6")),r.a.createElement(C.a,{height:300,language:"python",original:le.origin_content,modified:le.target_content}))})))}))},N=Object(K.a)(function(c){var j=c.exercise;return{exercise:j}})(D),L=function(j){var g=j.exercise,R=j.loading,B=j.dispatch,W=Object(e.useState)(Object(O.i)()),F=Object(a.a)(W,2),G=F[0],J=F[1],ne=Object(O.h)(),le=Object(e.useState)({}),xe=Object(a.a)(le,1),ae=xe[0],ue=g.codeReviewDetail,Ne=(ue==null?void 0:ue.question_type)===6;Object(e.useEffect)(function(){ae.review_id=G.userId,ae.id=G.categoryId,ae.coursesId=G.coursesId,Ee()},[G.userId]);var Ee=function(){var Oe=Object(i.a)(n.a.mark(function ge(){var ce;return n.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return console.log(ae,"query"),S.next=3,B({type:"exercise/getCodeReviewDetail",payload:Object(u.a)({},ae)});case 3:ce=S.sent,ce.status===-2&&setTimeout(function(){return Ee()},1500);case 5:case"end":return S.stop()}},ge)}));return function(){return Oe.apply(this,arguments)}}(),Pe=[{title:"\u5173\u5361",dataIndex:"name",render:function(ge,ce,p){return r.a.createElement("div",{className:"".concat(o.a.shixunTitle," mt10")},r.a.createElement("span",{className:"fa fa-code "}),r.a.createElement("strong",{className:"c-black"},"\u7B2C",p+1,"\u5173 ",ce.subject))}},{title:"\u88AB\u67E5\u4F5C\u54C1",dataIndex:"username"},{title:"\u88AB\u67E5\u4F5C\u54C1\u5B8C\u6210\u65F6\u95F4",dataIndex:"end_time",render:function(ge){return ge?M()(ge).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"\u5F97\u5206/\u6EE1\u5206",dataIndex:"all_score",render:function(ge,ce){return r.a.createElement(r.a.Fragment,null," ",r.a.createElement("span",{className:"c-orange"},ce.final_score),"/",ce.all_score)}},{title:"\u7591\u88AB\u6284\u88AD\u4F5C\u54C1",dataIndex:"copy_username",render:function(ge){return r.a.createElement("span",{className:"c-green"},ge)}},{title:"\u7591\u88AB\u6284\u88AD\u4F5C\u54C1\u5B8C\u6210\u65F6\u95F4",dataIndex:"copy_end_time",render:function(ge){return ge?M()(ge).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"\u8C03\u5206",dataIndex:"final_score",render:function(ge,ce){return r.a.createElement(b.a,{min:0,max:ce.game_score_full,defaultValue:ge,onBlur:function(){var p=Object(i.a)(n.a.mark(function S(H){var Y,ie;return n.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(Y=H.target.value,!(Y!=ge)){he.next=6;break}return he.next=4,B({type:"exercise/changeScore",payload:{question_id:ue==null?void 0:ue.question_id,id:ue==null?void 0:ue.question_id,shixun_challenge_id:ce.id||null,comment:null,score:Y,user_id:ue==null?void 0:ue.user_id}});case 4:ie=he.sent,ie!=null&&ie.question_comments&&l.b.success("\u8C03\u5206\u6210\u529F");case 6:case"end":return he.stop()}},S)}));return function(S){return p.apply(this,arguments)}}()})}},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:function(ge){return r.a.createElement("span",{className:"c-red"},ge,"%")}}].filter(function(Oe){return!(Ne&&Oe.title==="\u5173\u5361")}),pe=function(ge){var ce,p="/classrooms/".concat(ue.course_id,"/exercise/").concat(G.categoryId,"/detail");if(ne!=null&&(ce=ne.query)!==null&&ce!==void 0&&ce.random){var S;return p=p+"?random=".concat(ne==null||((S=ne.query)===null||S===void 0)?void 0:S.random),ge&&(p=p+"&tabs=4"),p}return ge&&(p=p+"?tabs=4"),p};return r.a.createElement("section",{className:"edu-container mb50"},(ue==null?void 0:ue.course_name)&&r.a.createElement("section",{className:"animated fadeIn"},r.a.createElement("aside",{className:"mt10"},r.a.createElement(U.a,{separator:">"},r.a.createElement(U.a.Item,null,r.a.createElement(A.a,{to:"/classrooms/".concat(ue.course_id,"/exercise")},ue.course_name)),r.a.createElement(U.a.Item,null,r.a.createElement(A.a,{to:pe()},"\u8BD5\u5377")),r.a.createElement(U.a.Item,null,ue==null?void 0:ue.username))),r.a.createElement("aside",{className:[o.a.title,"mt20"].join(" ")},r.a.createElement(A.a,{to:pe(!0)},r.a.createElement(d.a,{className:"font16 c-black"})),r.a.createElement("strong",{className:"font20 ml5"},ue.exercise_name))),r.a.createElement("section",{className:"minH500 bg-white pt10 mt20"},r.a.createElement(k.a,{className:"pl20 pr20"},r.a.createElement(h.a,{flex:"1"},r.a.createElement("span",{className:"c-red"},"\u975E\u7F16\u7A0B\u7C7B\u578B\u4EFB\u52A1\uFF0C\u4E0D\u53C2\u4E0E\u67E5\u91CD")),r.a.createElement(h.a,null,"\u88AB\u67E5\u4F5C\u54C1\uFF1A",r.a.createElement("span",{className:"c-red mr40"},ue==null?void 0:ue.username),"\u6700\u7EC8\u6210\u7EE9\uFF1A",r.a.createElement("span",{className:"c-red"},ue.final_score),"\u5206")),r.a.createElement(P.a,{className:"mt10",loading:R["exercise/getCodeReviewDetail"],pagination:!1,dataSource:ue.challenge_list,columns:Pe,onChange:function(ge,ce,p){p.order==="ascend"&&(G.b_order="asc"),p.order==="descend"&&(G.b_order="desc"),p.order||delete G.b_order,B({type:"exercise/getCodeReview",payload:Object(u.a)({},G)})}}),!Ne&&r.a.createElement("div",{className:"font16 mt20 ml5"}," \u5B9E\u8BAD\u8BE6\u60C5"),r.a.createElement(N,null)))},m=x.default=Object(K.a)(function(c){var j=c.exercise,g=c.loading;return{exercise:j,loading:g.effects}})(L)},"24hK":function(Ce,x,t){"use strict";t.d(x,"a",function(){return z});var w=t("JYp7"),P=function(){function k(T){this.element=T,this.next=k.Undefined,this.prev=k.Undefined}return k.Undefined=new k(void 0),k}(),z=function(){function k(){this._first=P.Undefined,this._last=P.Undefined,this._size=0}return Object.defineProperty(k.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),k.prototype.isEmpty=function(){return this._first===P.Undefined},k.prototype.clear=function(){this._first=P.Undefined,this._last=P.Undefined,this._size=0},k.prototype.unshift=function(T){return this._insert(T,!1)},k.prototype.push=function(T){return this._insert(T,!0)},k.prototype._insert=function(T,h){var V=this,U=new P(T);if(this._first===P.Undefined)this._first=U,this._last=U;else if(h){var v=this._last;this._last=U,U.prev=v,v.next=U}else{var b=this._first;this._first=U,U.next=b,b.prev=U}this._size+=1;var s=!1;return function(){s||(s=!0,V._remove(U))}},k.prototype.shift=function(){if(this._first===P.Undefined)return;var T=this._first.element;return this._remove(this._first),T},k.prototype.pop=function(){if(this._last===P.Undefined)return;var T=this._last.element;return this._remove(this._last),T},k.prototype._remove=function(T){if(T.prev!==P.Undefined&&T.next!==P.Undefined){var h=T.prev;h.next=T.next,T.next.prev=h}else T.prev===P.Undefined&&T.next===P.Undefined?(this._first=P.Undefined,this._last=P.Undefined):T.next===P.Undefined?(this._last=this._last.prev,this._last.next=P.Undefined):T.prev===P.Undefined&&(this._first=this._first.next,this._first.prev=P.Undefined);this._size-=1},k.prototype.iterator=function(){var T,h=this._first;return{next:function(){return h===P.Undefined?w.c:(T?T.value=h.element:T={done:!1,value:h.element},h=h.next,T)}}},k.prototype.toArray=function(){for(var T=[],h=this._first;h!==P.Undefined;h=h.next)T.push(h.element);return T},k}()},"55Ip":function(Ce,x,t){"use strict";t.d(x,"a",function(){return r}),t.d(x,"b",function(){return K});var w=t("Ty5D"),P=t("dI71"),z=t("q1tI"),k=t.n(z),T=t("YS25"),h=t("17x9"),V=t.n(h),U=t("wx14"),v=t("zLVn"),b=t("9R94"),s=function(y){Object(P.a)(o,y);function o(){for(var N,L=arguments.length,m=new Array(L),c=0;c=0||L.relatedTarget.className.indexOf("".concat(g,"-next"))>=0))return;y.setState({goInputText:""}),j(y.getValidValue())},y.go=function(L){var m=y.state.goInputText;if(m==="")return;(L.keyCode===i.ENTER||L.type==="click")&&(y.setState({goInputText:""}),y.props.quickGo(y.getValidValue()))},y}return Object(T.a)(C,[{key:"getValidValue",value:function(){var o=this.state,D=o.goInputText,N=o.current;return!D||isNaN(D)?N:Number(D)}},{key:"getPageSizeOptions",value:function(){var o=this.props,D=o.pageSize,N=o.pageSizeOptions;return N.some(function(L){return L.toString()===D.toString()})?N:N.concat([D.toString()]).sort(function(L,m){var c=isNaN(Number(L))?0:Number(L),j=isNaN(Number(m))?0:Number(m);return c-j})}},{key:"render",value:function(){var o=this,D=this.props,N=D.pageSize,L=D.locale,m=D.rootPrefixCls,c=D.changeSize,j=D.quickGo,g=D.goButton,R=D.selectComponentClass,B=D.buildOptionText,W=D.selectPrefixCls,F=D.disabled,G=this.state.goInputText,J="".concat(m,"-options"),ne=R,le=null,xe=null,ae=null;if(!c&&!j)return null;var ue=this.getPageSizeOptions();if(c&&ne){var Ne=ue.map(function(Ee,Pe){return v.a.createElement(ne.Option,{key:Pe,value:Ee.toString()},(B||o.buildOptionText)(Ee))});le=v.a.createElement(ne,{disabled:F,prefixCls:W,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(N||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Pe){return Pe.parentNode}},Ne)}return j&&(g&&(ae=typeof g=="boolean"?v.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:F,className:"".concat(J,"-quick-jumper-button")},L.jump_to_confirm):v.a.createElement("span",{onClick:this.go,onKeyUp:this.go},g)),xe=v.a.createElement("div",{className:"".concat(J,"-quick-jumper")},L.jump_to,v.a.createElement("input",{disabled:F,type:"text",value:G,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ae)),v.a.createElement("li",{className:"".concat(J)},le,xe)}}]),C}(v.a.Component);a.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=a,n=t("N2Kk");function e(){}function r(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A}function d(A,K,C){return C}function E(A,K,C){var y=typeof A=="undefined"?K.pageSize:A;return Math.floor((C.total-1)/y)+1}var M=function(A){Object(h.a)(C,A);var K=Object(V.a)(C);function C(y){var o;Object(k.a)(this,C),o=K.call(this,y),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(E(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,j){var g=o.props.prefixCls,R=c||v.a.createElement("button",{type:"button","aria-label":j,className:"".concat(g,"-item-link")});return typeof c=="function"&&(R=v.a.createElement(c,Object(z.a)({},o.props))),R},o.savePaginationNode=function(c){o.paginationNode=c},o.isValid=function(c){return r(c)&&c!==o.state.current},o.shouldDisplayQuickJumper=function(){var c=o.props,j=c.showQuickJumper,g=c.pageSize,R=c.total;return R<=g?!1:j},o.handleKeyDown=function(c){(c.keyCode===i.ARROW_UP||c.keyCode===i.ARROW_DOWN)&&c.preventDefault()},o.handleKeyUp=function(c){var j=o.getValidValue(c),g=o.state.currentInputValue;j!==g&&o.setState({currentInputValue:j}),c.keyCode===i.ENTER?o.handleChange(j):c.keyCode===i.ARROW_UP?o.handleChange(j-1):c.keyCode===i.ARROW_DOWN&&o.handleChange(j+1)},o.changePageSize=function(c){var j=o.state.current,g=E(c,o.state,o.props);j=j>g?g:j,g===0&&(j=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:j,currentInputValue:j})),o.props.onShowSizeChange(j,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(j,c)},o.handleChange=function(c){var j=o.props.disabled,g=c;if(o.isValid(g)&&!j){var R=E(void 0,o.state,o.props);g>R?g=R:g<1&&(g=1),"current"in o.props||o.setState({current:g,currentInputValue:g});var B=o.state.pageSize;return o.props.onChange(g,B),g}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?g-2:0),B=2;B=N?m=N:m=Number(D),m}},{key:"getShowSizeChanger",value:function(){var o=this.props,D=o.showSizeChanger,N=o.total,L=o.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:N>L}},{key:"renderPrev",value:function(o){var D=this.props,N=D.prevIcon,L=D.itemRender,m=L(o,"prev",this.getItemIcon(N,"prev page")),c=!this.hasPrev();return Object(U.isValidElement)(m)?Object(U.cloneElement)(m,{disabled:c}):m}},{key:"renderNext",value:function(o){var D=this.props,N=D.nextIcon,L=D.itemRender,m=L(o,"next",this.getItemIcon(N,"next page")),c=!this.hasNext();return Object(U.isValidElement)(m)?Object(U.cloneElement)(m,{disabled:c}):m}},{key:"render",value:function(){var o=this,D=this.props,N=D.prefixCls,L=D.className,m=D.style,c=D.disabled,j=D.hideOnSinglePage,g=D.total,R=D.locale,B=D.showQuickJumper,W=D.showLessItems,F=D.showTitle,G=D.showTotal,J=D.simple,ne=D.itemRender,le=D.showPrevNextJumpers,xe=D.jumpPrevIcon,ae=D.jumpNextIcon,ue=D.selectComponentClass,Ne=D.selectPrefixCls,Ee=D.pageSizeOptions,Pe=this.state,pe=Pe.current,Oe=Pe.pageSize,ge=Pe.currentInputValue;if(j===!0&&g<=Oe)return null;var ce=E(void 0,this.state,this.props),p=[],S=null,H=null,Y=null,ie=null,fe=null,he=B&&B.goButton,je=W?1:2,Qe=pe-1>0?pe-1:0,st=pe+1=je*2&&pe!==1+2&&(p[0]=Object(U.cloneElement)(p[0],{className:"".concat(N,"-item-after-jump-prev")}),p.unshift(S)),ce-pe>=je*2&&pe!==ce-2&&(p[p.length-1]=Object(U.cloneElement)(p[p.length-1],{className:"".concat(N,"-item-before-jump-next")}),p.push(H)),X!==1&&p.unshift(Y),te!==ce&&p.push(ie)}var Q=null;G&&(Q=v.a.createElement("li",{className:"".concat(N,"-total-text")},G(g,[g===0?0:(pe-1)*Oe+1,pe*Oe>g?g:pe*Oe])));var _=!this.hasPrev()||!ce,q=!this.hasNext()||!ce;return v.a.createElement("ul",Object(w.a)({className:s()(N,L,Object(P.a)({},"".concat(N,"-disabled"),c)),style:m,unselectable:"unselectable",ref:this.savePaginationNode},lt),Q,v.a.createElement("li",{title:F?R.prev_page:null,onClick:this.prev,tabIndex:_?null:0,onKeyPress:this.runIfEnterPrev,className:s()("".concat(N,"-prev"),Object(P.a)({},"".concat(N,"-disabled"),_)),"aria-disabled":_},this.renderPrev(Qe)),p,v.a.createElement("li",{title:F?R.next_page:null,onClick:this.next,tabIndex:q?null:0,onKeyPress:this.runIfEnterNext,className:s()("".concat(N,"-next"),Object(P.a)({},"".concat(N,"-disabled"),q)),"aria-disabled":q},this.renderNext(st)),v.a.createElement(f,{disabled:c,locale:R,rootPrefixCls:N,selectComponentClass:ue,selectPrefixCls:Ne,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:pe,pageSize:Oe,pageSizeOptions:Ee,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:he}))}}],[{key:"getDerivedStateFromProps",value:function(o,D){var N={};if("current"in o&&(N.current=o.current,o.current!==D.current&&(N.currentInputValue=N.current)),"pageSize"in o&&o.pageSize!==D.pageSize){var L=D.current,m=E(o.pageSize,D,o);L=L>m?m:L,"current"in o||(N.current=L,N.currentInputValue=L),N.pageSize=o.pageSize}return N}}]),C}(v.a.Component);M.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:e,locale:n.a,style:{},itemRender:d,totalBoundaryShowSizeChanger:50};var O=M},"6RRn":function(Ce,x,t){"use strict";var w=t("wCXF"),P=t("n6Qo");t.d(x,"b",function(){return P.a});var z=t("IBYe"),k=t("6eGT"),T=t("hW8S");t.d(x,"a",function(){return T.a}),x.c=w.b},"6eGT":function(Ce,x,t){"use strict";function w(P){return null}x.a=w},"746U":function(Ce,x,t){"use strict";t.d(x,"d",function(){return P}),t.d(x,"j",function(){return z}),t.d(x,"i",function(){return k}),t.d(x,"h",function(){return T}),t.d(x,"e",function(){return h}),t.d(x,"k",function(){return V}),t.d(x,"l",function(){return U}),t.d(x,"a",function(){return v}),t.d(x,"f",function(){return s}),t.d(x,"g",function(){return l}),t.d(x,"m",function(){return u}),t.d(x,"c",function(){return f}),t.d(x,"b",function(){return n}),t.d(x,"n",function(){return e}),t.d(x,"o",function(){return r});var w={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function P(d){return Array.isArray?Array.isArray(d):!!(d&&typeof d.length===w.number&&d.constructor===Array)}function z(d){return typeof d===w.string||d instanceof String}function k(d){return typeof d===w.object&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}function T(d){return(typeof d===w.number||d instanceof Number)&&!isNaN(d)}function h(d){return d===!0||d===!1}function V(d){return typeof d===w.undefined}function U(d){return V(d)||d===null}function v(d,E){if(!d)throw new Error(E?"Unexpected type, expected '"+E+"'":"Unexpected type")}var b=Object.prototype.hasOwnProperty;function s(d){if(!k(d))return!1;for(var E in d)if(b.call(d,E))return!1;return!0}function l(d){return typeof d===w.function}function u(d,E){for(var M=Math.min(d.length,E.length),O=0;O0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function n(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(d){var E=d.key,M=d.children;Object(T.a)(E!=null,"Tree node must have a certain key: [".concat(r).concat(E,"]"));var O=String(E);Object(T.a)(!f.has(O)||E===null||E===void 0,"Same 'key' exist in the Tree: ".concat(O)),f.set(O,!0),n(M,"".concat(r).concat(O," > "))})}n(a)}function v(a){function f(n){var e=Object(k.a)(n);return e.map(function(r){if(!Object(h.i)(r))return Object(T.a)(!r,"Tree/TreeNode can only accept TreeNode as children."),null;var d=r.key,E=r.props,M=E.children,O=Object(z.a)(E,["children"]),A=Object(P.a)({key:d},O),K=f(M);return K.length&&(A.children=K),A}).filter(function(r){return r})}return f(a)}function b(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=new Set(f===!0?[]:f),e=[];function r(d){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(M,O){var A=Object(h.h)(E?E.pos:"0",O),K=V(M.key,A),C=Object(P.a)(Object(P.a)({},M),{},{parent:E,pos:A,children:null,data:M,isStart:[].concat(Object(w.a)(E?E.isStart:[]),[O===0]),isEnd:[].concat(Object(w.a)(E?E.isEnd:[]),[O===d.length-1])});return e.push(C),f===!0||n.has(K)?C.children=r(M.children||[],C):C.children=[],C})}return r(a),e}function s(a,f,n){var e;n?typeof n=="string"?e=function(E){return E[n]}:typeof n=="function"&&(e=function(E){return n(E)}):e=function(E,M){return V(E.key,M)};function r(d,E,M){var O=d?d.children:a,A=d?Object(h.h)(M.pos,E):"0";if(d){var K=e(d,A),C={node:d,index:E,pos:A,key:K,parentPos:M.node?M.pos:null,level:M.level+1};f(C)}O&&O.forEach(function(y,o){r(y,o,{node:d,pos:A,level:M?M.level+1:-1})})}r(null)}function l(a){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=f.initWrapper,e=f.processEntity,r=f.onProcessFinished,d=arguments.length>2?arguments[2]:void 0,E={},M={},O={posEntities:E,keyEntities:M};return n&&(O=n(O)||O),s(a,function(A){var K=A.node,C=A.index,y=A.pos,o=A.key,D=A.parentPos,N=A.level,L={node:K,index:C,key:o,pos:y,level:N},m=V(o,y);E[y]=L,M[m]=L,L.parent=E[D],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),e&&e(L,O)},d),r&&r(O),O}function u(a,f){var n=f.expandedKeys,e=f.selectedKeys,r=f.loadedKeys,d=f.loadingKeys,E=f.checkedKeys,M=f.halfCheckedKeys,O=f.dragOverNodeKey,A=f.dropPosition,K=f.keyEntities,C=K[a],y={eventKey:a,expanded:n.indexOf(a)!==-1,selected:e.indexOf(a)!==-1,loaded:r.indexOf(a)!==-1,loading:d.indexOf(a)!==-1,checked:E.indexOf(a)!==-1,halfChecked:M.indexOf(a)!==-1,pos:String(C?C.pos:""),dragOver:O===a&&A===0,dragOverGapTop:O===a&&A===-1,dragOverGapBottom:O===a&&A===1};return y}function i(a){var f=a.data,n=a.expanded,e=a.selected,r=a.checked,d=a.loaded,E=a.loading,M=a.halfChecked,O=a.dragOver,A=a.dragOverGapTop,K=a.dragOverGapBottom,C=a.pos,y=a.active,o=Object(P.a)(Object(P.a)({},f),{},{expanded:n,selected:e,checked:r,loaded:d,loading:E,halfChecked:M,dragOver:O,dragOverGapTop:A,dragOverGapBottom:K,pos:C,active:y});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),a}}),o}},"8HAY":function(Ce,x,t){"use strict";t.d(x,"a",function(){return h}),t.d(x,"b",function(){return V});var w=t("pmY6"),P=t("MI8n"),z=function(){var U=function(v,b){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var u in l)l.hasOwnProperty(u)&&(s[u]=l[u])},U(v,b)};return function(v,b){U(v,b);function s(){this.constructor=v}v.prototype=b===null?Object.create(b):(s.prototype=b.prototype,new s)}}(),k=function(U,v,b,s){function l(u){return u instanceof b?u:new b(function(i){i(u)})}return new(b||(b=Promise))(function(u,i){function a(e){try{n(s.next(e))}catch(r){i(r)}}function f(e){try{n(s.throw(e))}catch(r){i(r)}}function n(e){e.done?u(e.value):l(e.value).then(a,f)}n((s=s.apply(U,v||[])).next())})},T=function(U,v){var b={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,l,u,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(n){return function(e){return f([n,e])}}function f(n){if(s)throw new TypeError("Generator is already executing.");for(;b;)try{if(s=1,l&&(u=n[0]&2?l.return:n[0]?l.throw||((u=l.return)&&u.call(l),0):l.next)&&!(u=u.call(l,n[1])).done)return u;(l=0,u)&&(n=[n[0]&2,u.value]);switch(n[0]){case 0:case 1:u=n;break;case 4:return b.label++,{value:n[1],done:!1};case 5:b.label++,l=n[1],n=[0];continue;case 7:n=b.ops.pop(),b.trys.pop();continue;default:if(!(u=b.trys,u=u.length>0&&u[u.length-1])&&(n[0]===6||n[0]===2)){b=0;continue}if(n[0]===3&&(!u||n[1]>u[0]&&n[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var b=document.createElement("style");if((U=v.csp)===null||U===void 0?void 0:U.nonce){var s;b.nonce=(s=v.csp)===null||s===void 0?void 0:s.nonce}b.innerHTML=V;var l=z(v),u=l.firstChild;return v.prepend&&l.prepend?l.prepend(b):v.prepend&&u?l.insertBefore(b,u):l.appendChild(b),b}var T=new Map;function h(V,U){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=z(v);if(!T.has(b)){var s=k("",v),l=s.parentNode;T.set(b,l),l.removeChild(s)}var u=Array.from(T.get(b).children).find(function(e){return e.tagName==="STYLE"&&e[P]===U});if(u){var i,a;if(((i=v.csp)===null||i===void 0?void 0:i.nonce)&&u.nonce!==((a=v.csp)===null||a===void 0?void 0:a.nonce)){var f;u.nonce=(f=v.csp)===null||f===void 0?void 0:f.nonce}return u.innerHTML!==V&&(u.innerHTML=V),u}var n=k(V,v);return n[P]=U,n}},"C/vA":function(Ce,x,t){"use strict";t.d(x,"a",function(){return w});function w(P){var z=this,k=!1,T;return function(){return k||(k=!0,T=P.apply(z,arguments)),T}}},"Cg/j":function(Ce,x,t){"use strict";t.d(x,"b",function(){return w}),t.d(x,"a",function(){return P}),t.d(x,"c",function(){return k}),t.d(x,"d",function(){return T});var w;(function(h){h.serviceIds=new Map,h.DI_TARGET="$di$target",h.DI_DEPENDENCIES="$di$dependencies";function V(U){return U[h.DI_DEPENDENCIES]||[]}h.getServiceDependencies=V})(w||(w={}));var P=k("instantiationService");function z(h,V,U,v){V[w.DI_TARGET]===V?V[w.DI_DEPENDENCIES].push({id:h,index:U,optional:v}):(V[w.DI_DEPENDENCIES]=[{id:h,index:U,optional:v}],V[w.DI_TARGET]=V)}function k(h){if(w.serviceIds.has(h))return w.serviceIds.get(h);var V=function(U,v,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");z(V,U,b,!1)};return V.toString=function(){return h},w.serviceIds.set(h,V),V}function T(h){return function(V,U,v){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");z(h,V,v,!0)}}},IBYe:function(Ce,x,t){"use strict";function w(P){return null}x.a=w},JDZd:function(Ce,x,t){Ce.exports={flex_box_center:"flex_box_center___1we8_",flex_space_between:"flex_space_between___1_NSA",flex_box_vertical_center:"flex_box_vertical_center___ItdQS",flex_box_center_end:"flex_box_center_end___3l243",flex_box_column:"flex_box_column___K7czc",title:"title___2gdTn",shixunTitle:"shixunTitle___2Z0QR",shixunWrp:"shixunWrp___1Jn2x"}},JYp7:function(Ce,x,t){"use strict";t.d(x,"c",function(){return P}),t.d(x,"d",function(){return z}),t.d(x,"f",function(){return T}),t.d(x,"a",function(){return h}),t.d(x,"b",function(){return V}),t.d(x,"e",function(){return U});var w=function(){var v=function(b,s){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var i in u)u.hasOwnProperty(i)&&(l[i]=u[i])},v(b,s)};return function(b,s){v(b,s);function l(){this.constructor=b}b.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),P={done:!0,value:void 0},z;(function(v){var b={next:function(){return P}};function s(){return b}v.empty=s;function l(M){var O=!1;return{next:function(){return O?P:(O=!0,{done:!1,value:M})}}}v.single=l;function u(M,O,A){return O===void 0&&(O=0),A===void 0&&(A=M.length),{next:function(){return O>=A?P:{done:!1,value:M[O++]}}}}v.fromArray=u;function i(M){return{next:function(){var O=M.next();return O.done?P:{done:!1,value:O.value}}}}v.fromNativeIterator=i;function a(M){return M?Array.isArray(M)?v.fromArray(M):M:v.empty()}v.from=a;function f(M,O){return{next:function(){var A=M.next();return A.done?P:{done:!1,value:O(A.value)}}}}v.map=f;function n(M,O){return{next:function(){for(;;){var A=M.next();if(A.done)return P;if(O(A.value))return{done:!1,value:A.value}}}}}v.filter=n;function e(M,O){for(var A=M.next();!A.done;A=M.next())O(A.value)}v.forEach=e;function r(M,O){O===void 0&&(O=Number.POSITIVE_INFINITY);var A=[];if(O===0)return A;for(var K=0,C=M.next();!C.done&&!(A.push(C.value),++K>=O);C=M.next());return A}v.collect=r;function d(){for(var M=[],O=0;O=M.length)return P;var K=M[A],C=K.next();return C.done?(A++,this.next()):C}}}v.concat=d;function E(M){return new k(M)}v.chain=E})(z||(z={}));var k=function(){function v(b){this.it=b}return v.prototype.next=function(){return this.it.next()},v}();function T(v){return Array.isArray(v)?z.fromArray(v):v||z.empty()}var h=function(){function v(b,s,l,u){s===void 0&&(s=0),l===void 0&&(l=b.length),u===void 0&&(u=s-1),this.items=b,this.start=s,this.end=l,this.index=u}return v.prototype.first=function(){return this.index=this.start,this.current()},v.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},v.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},v}(),V=function(v){w(b,v);function b(s,l,u,i){return l===void 0&&(l=0),u===void 0&&(u=s.length),i===void 0&&(i=l-1),v.call(this,s,l,u,i)||this}return b.prototype.current=function(){return v.prototype.current.call(this)},b.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},b.prototype.first=function(){return this.index=this.start,this.current()},b.prototype.last=function(){return this.index=this.end-1,this.current()},b.prototype.parent=function(){return null},b}(h),U=function(){function v(b,s){this.iterator=b,this.fn=s}return v.prototype.next=function(){return this.fn(this.iterator.next())},v}()},LdHM:function(Ce,x,t){"use strict";t.d(x,"b",function(){return d}),t.d(x,"a",function(){return M});var w=t("1OyB"),P=t("vuIU"),z=t("Ji7U"),k=t("LK+K"),T=t("q1tI"),h=t("rePB"),V=t("Ff2n"),U=t("ODXe"),v=t("4IlW"),b=t("bX4T"),s=t("YrtM"),l=t("TSYQ"),u=t.n(l),i=t("+nKL"),a=t("8OUc"),f=function(F,G){var J=F.prefixCls,ne=F.id,le=F.flattenOptions,xe=F.childrenAsData,ae=F.values,ue=F.searchValue,Ne=F.multiple,Ee=F.defaultActiveFirstOption,Pe=F.height,pe=F.itemHeight,Oe=F.notFoundContent,ge=F.open,ce=F.menuItemSelectedIcon,p=F.virtual,S=F.onSelect,H=F.onToggleOpen,Y=F.onActiveValue,ie=F.onScroll,fe=F.onMouseEnter,he="".concat(J,"-item"),je=Object(s.a)(function(){return le},[ge,le],function(ee,Q){return Q[0]&&ee[1]!==Q[1]}),Qe=T.useRef(null),st=function(Q){Q.preventDefault()},lt=function(Q){Qe.current&&Qe.current.scrollTo({index:Q})},nt=function(Q){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=je.length,me=0;me1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(W).map(function(G,J){if(!T.isValidElement(G)||!G.type)return null;var ne=G.type.isSelectOptGroup,le=G.key,xe=G.props,ae=xe.children,ue=Object(V.a)(xe,["children"]);return F||!ne?K(G):Object(O.a)(Object(O.a)({key:"__RC_SELECT_GRP__".concat(le===null?J:le,"__"),label:le},ue),{},{options:C(ae)})}).filter(function(G){return G})}var y=t("2Qr1"),o=t("qNPg"),D=t("U8pU"),N=t("Kwbf"),L=t("WKfj");function m(W){var F=W.mode,G=W.options,J=W.children,ne=W.backfill,le=W.allowClear,xe=W.placeholder,ae=W.getInputElement,ue=W.showSearch,Ne=W.onSearch,Ee=W.defaultOpen,Pe=W.autoFocus,pe=W.labelInValue,Oe=W.value,ge=W.inputValue,ce=W.optionLabelProp,p=F==="multiple"||F==="tags",S=ue!==void 0?ue:p||F==="combobox",H=G||C(J);if(Object(N.a)(F!=="tags"||H.every(function(he){return!he.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),F==="tags"||F==="combobox"){var Y=H.some(function(he){return he.options?he.options.some(function(je){return typeof("value"in je?je.value:je.key)=="number"}):typeof("value"in he?he.value:he.key)=="number"});Object(N.a)(!Y,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(N.a)(F!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(N.a)(F==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(N.a)(F==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(N.b)(F!=="combobox"||!ae||!le||!xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ne&&!S&&F!=="combobox"&&F!=="tags"&&Object(N.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(N.b)(!Ee||Pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Oe!=null){var ie=Object(L.d)(Oe);Object(N.a)(!pe||ie.every(function(he){return Object(D.a)(he)==="object"&&("key"in he||"value"in he)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(N.a)(!p||Array.isArray(Oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var fe=null;Object(A.a)(J).some(function(he){if(!T.isValidElement(he)||!he.type)return!1;var je=he.type;if(je.isSelectOption)return!1;if(je.isSelectOptGroup){var Qe=Object(A.a)(he.props.children).every(function(st){return!T.isValidElement(st)||!he.type||st.type.isSelectOption?!0:(fe=st.type,!1)});return!Qe}return fe=je,!0}),fe&&Object(N.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(fe.displayName||fe.name||fe,"`.")),Object(N.a)(ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var c=m,j=Object(o.a)({prefixCls:"rc-select",components:{optionList:e},convertChildrenToData:C,flattenOptions:y.d,getLabeledValue:y.e,filterOptions:y.b,isValueDisabled:y.g,findValueOption:y.c,warningProps:c,fillOptionsWithMissingValue:y.a}),g=function(W){Object(z.a)(G,W);var F=Object(k.a)(G);function G(){var J;return Object(w.a)(this,G),J=F.apply(this,arguments),J.selectRef=T.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(P.a)(G,[{key:"render",value:function(){return T.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),G}(T.Component);g.Option=d,g.OptGroup=M;var R=g,B=x.c=R},MI8n:function(Ce,x,t){"use strict";t.d(x,"b",function(){return h}),t.d(x,"a",function(){return v}),t.d(x,"e",function(){return b}),t.d(x,"d",function(){return s}),t.d(x,"c",function(){return l}),t.d(x,"f",function(){return u});var w=t("/cxE"),P=t("C/vA"),z=t("pmY6"),k=t("24hK"),T=function(){var i=function(a,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r])},i(a,f)};return function(a,f){i(a,f);function n(){this.constructor=a}a.prototype=f===null?Object.create(f):(n.prototype=f.prototype,new n)}}(),h;(function(i){i.None=function(){return z.a.None};function a(c){return function(j,g,R){g===void 0&&(g=null);var B=!1,W;return W=c(function(F){return B?void 0:(W?W.dispose():B=!0,j.call(g,F))},null,R),B&&W.dispose(),W}}i.once=a;function f(c,j){return M(function(g,R,B){return R===void 0&&(R=null),c(function(W){return g.call(R,j(W))},null,B)})}i.map=f;function n(c,j){return M(function(g,R,B){return R===void 0&&(R=null),c(function(W){j(W),g.call(R,W)},null,B)})}i.forEach=n;function e(c,j){return M(function(g,R,B){return R===void 0&&(R=null),c(function(W){return j(W)&&g.call(R,W)},null,B)})}i.filter=e;function r(c){return c}i.signal=r;function d(){for(var c=[],j=0;j1)&&ne.fire(xe),J=0},g)})},onLastListenerRemove:function(){W.dispose()}});return ne.event}i.debounce=O;function A(c){var j=new Date().getTime();return f(a(c),function(g){return new Date().getTime()-j})}i.stopwatch=A;function K(c){var j=!0,g;return e(c,function(R){var B=j||R!==g;return j=!1,g=R,B})}i.latch=K;function C(c,j,g){j===void 0&&(j=!1),g===void 0&&(g=[]);var R=g.slice(),B=c(function(G){R?R.push(G):F.fire(G)}),W=function(){R&&R.forEach(function(G){return F.fire(G)}),R=null},F=new v({onFirstListenerAdd:function(){B||(B=c(function(G){return F.fire(G)}))},onFirstListenerDidAdd:function(){R&&(j?setTimeout(W):W())},onLastListenerRemove:function(){B&&B.dispose(),B=null}});return F.event}i.buffer=C;var y=function(){function c(j){this.event=j}return c.prototype.map=function(j){return new c(f(this.event,j))},c.prototype.forEach=function(j){return new c(n(this.event,j))},c.prototype.filter=function(j){return new c(e(this.event,j))},c.prototype.reduce=function(j,g){return new c(E(this.event,j,g))},c.prototype.latch=function(){return new c(K(this.event))},c.prototype.debounce=function(j,g,R,B){return g===void 0&&(g=100),R===void 0&&(R=!1),new c(O(this.event,j,g,R,B))},c.prototype.on=function(j,g,R){return this.event(j,g,R)},c.prototype.once=function(j,g,R){return a(this.event)(j,g,R)},c}();function o(c){return new y(c)}i.chain=o;function D(c,j,g){g===void 0&&(g=function(G){return G});var R=function(){for(var G=[],J=0;J"},r.a.createElement(U.a.Item,null,r.a.createElement(A.a,{to:"/classrooms/".concat(ue.course_id,"/exercise")},ue.course_name)),r.a.createElement(U.a.Item,null,r.a.createElement(A.a,{to:pe()},"\u8BD5\u5377")),r.a.createElement(U.a.Item,null,ue==null?void 0:ue.username))),r.a.createElement("aside",{className:[o.a.title,"mt20"].join(" ")},r.a.createElement(A.a,{to:pe(!0)},r.a.createElement(d.a,{className:"font16 c-black"})),r.a.createElement("strong",{className:"font20 ml5"},ue.exercise_name))),r.a.createElement("section",{className:"minH500 bg-white pt10 mt20"},r.a.createElement(k.a,{className:"pl20 pr20"},r.a.createElement(h.a,{flex:"1"},r.a.createElement("span",{className:"c-red"},"\u975E\u7F16\u7A0B\u7C7B\u578B\u4EFB\u52A1\uFF0C\u4E0D\u53C2\u4E0E\u67E5\u91CD")),r.a.createElement(h.a,null,"\u88AB\u67E5\u4F5C\u54C1\uFF1A",r.a.createElement("span",{className:"c-red mr40"},ue==null?void 0:ue.username),"\u6700\u7EC8\u6210\u7EE9\uFF1A",r.a.createElement("span",{className:"c-red"},ue.final_score),"\u5206")),r.a.createElement(P.a,{className:"mt10",loading:R["exercise/getCodeReviewDetail"],pagination:!1,dataSource:ue.challenge_list,columns:Pe,onChange:function(ge,ce,p){p.order==="ascend"&&(G.b_order="asc"),p.order==="descend"&&(G.b_order="desc"),p.order||delete G.b_order,B({type:"exercise/getCodeReview",payload:Object(u.a)({},G)})}}),!Ne&&r.a.createElement("div",{className:"font16 mt20 ml5"}," \u5B9E\u8BAD\u8BE6\u60C5"),r.a.createElement(N,null)))},m=x.default=Object(K.a)(function(c){var j=c.exercise,g=c.loading;return{exercise:j,loading:g.effects}})(L)},"24hK":function(Ce,x,t){"use strict";t.d(x,"a",function(){return z});var w=t("JYp7"),P=function(){function k(T){this.element=T,this.next=k.Undefined,this.prev=k.Undefined}return k.Undefined=new k(void 0),k}(),z=function(){function k(){this._first=P.Undefined,this._last=P.Undefined,this._size=0}return Object.defineProperty(k.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),k.prototype.isEmpty=function(){return this._first===P.Undefined},k.prototype.clear=function(){this._first=P.Undefined,this._last=P.Undefined,this._size=0},k.prototype.unshift=function(T){return this._insert(T,!1)},k.prototype.push=function(T){return this._insert(T,!0)},k.prototype._insert=function(T,h){var V=this,U=new P(T);if(this._first===P.Undefined)this._first=U,this._last=U;else if(h){var v=this._last;this._last=U,U.prev=v,v.next=U}else{var E=this._first;this._first=U,U.next=E,E.prev=U}this._size+=1;var s=!1;return function(){s||(s=!0,V._remove(U))}},k.prototype.shift=function(){if(this._first===P.Undefined)return;var T=this._first.element;return this._remove(this._first),T},k.prototype.pop=function(){if(this._last===P.Undefined)return;var T=this._last.element;return this._remove(this._last),T},k.prototype._remove=function(T){if(T.prev!==P.Undefined&&T.next!==P.Undefined){var h=T.prev;h.next=T.next,T.next.prev=h}else T.prev===P.Undefined&&T.next===P.Undefined?(this._first=P.Undefined,this._last=P.Undefined):T.next===P.Undefined?(this._last=this._last.prev,this._last.next=P.Undefined):T.prev===P.Undefined&&(this._first=this._first.next,this._first.prev=P.Undefined);this._size-=1},k.prototype.iterator=function(){var T,h=this._first;return{next:function(){return h===P.Undefined?w.c:(T?T.value=h.element:T={done:!1,value:h.element},h=h.next,T)}}},k.prototype.toArray=function(){for(var T=[],h=this._first;h!==P.Undefined;h=h.next)T.push(h.element);return T},k}()},"55Ip":function(Ce,x,t){"use strict";t.d(x,"a",function(){return r}),t.d(x,"b",function(){return K});var w=t("Ty5D"),P=t("dI71"),z=t("q1tI"),k=t.n(z),T=t("YS25"),h=t("17x9"),V=t.n(h),U=t("wx14"),v=t("zLVn"),E=t("9R94"),s=function(y){Object(P.a)(o,y);function o(){for(var N,L=arguments.length,m=new Array(L),c=0;c=0||L.relatedTarget.className.indexOf("".concat(g,"-next"))>=0))return;y.setState({goInputText:""}),j(y.getValidValue())},y.go=function(L){var m=y.state.goInputText;if(m==="")return;(L.keyCode===i.ENTER||L.type==="click")&&(y.setState({goInputText:""}),y.props.quickGo(y.getValidValue()))},y}return Object(T.a)(C,[{key:"getValidValue",value:function(){var o=this.state,D=o.goInputText,N=o.current;return!D||isNaN(D)?N:Number(D)}},{key:"getPageSizeOptions",value:function(){var o=this.props,D=o.pageSize,N=o.pageSizeOptions;return N.some(function(L){return L.toString()===D.toString()})?N:N.concat([D.toString()]).sort(function(L,m){var c=isNaN(Number(L))?0:Number(L),j=isNaN(Number(m))?0:Number(m);return c-j})}},{key:"render",value:function(){var o=this,D=this.props,N=D.pageSize,L=D.locale,m=D.rootPrefixCls,c=D.changeSize,j=D.quickGo,g=D.goButton,R=D.selectComponentClass,B=D.buildOptionText,W=D.selectPrefixCls,F=D.disabled,G=this.state.goInputText,J="".concat(m,"-options"),ne=R,le=null,xe=null,ae=null;if(!c&&!j)return null;var ue=this.getPageSizeOptions();if(c&&ne){var Ne=ue.map(function(be,Pe){return v.a.createElement(ne.Option,{key:Pe,value:be.toString()},(B||o.buildOptionText)(be))});le=v.a.createElement(ne,{disabled:F,prefixCls:W,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(N||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Pe){return Pe.parentNode}},Ne)}return j&&(g&&(ae=typeof g=="boolean"?v.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:F,className:"".concat(J,"-quick-jumper-button")},L.jump_to_confirm):v.a.createElement("span",{onClick:this.go,onKeyUp:this.go},g)),xe=v.a.createElement("div",{className:"".concat(J,"-quick-jumper")},L.jump_to,v.a.createElement("input",{disabled:F,type:"text",value:G,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ae)),v.a.createElement("li",{className:"".concat(J)},le,xe)}}]),C}(v.a.Component);a.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=a,n=t("N2Kk");function e(){}function r(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A}function d(A,K,C){return C}function b(A,K,C){var y=typeof A=="undefined"?K.pageSize:A;return Math.floor((C.total-1)/y)+1}var M=function(A){Object(h.a)(C,A);var K=Object(V.a)(C);function C(y){var o;Object(k.a)(this,C),o=K.call(this,y),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(b(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,j){var g=o.props.prefixCls,R=c||v.a.createElement("button",{type:"button","aria-label":j,className:"".concat(g,"-item-link")});return typeof c=="function"&&(R=v.a.createElement(c,Object(z.a)({},o.props))),R},o.savePaginationNode=function(c){o.paginationNode=c},o.isValid=function(c){return r(c)&&c!==o.state.current},o.shouldDisplayQuickJumper=function(){var c=o.props,j=c.showQuickJumper,g=c.pageSize,R=c.total;return R<=g?!1:j},o.handleKeyDown=function(c){(c.keyCode===i.ARROW_UP||c.keyCode===i.ARROW_DOWN)&&c.preventDefault()},o.handleKeyUp=function(c){var j=o.getValidValue(c),g=o.state.currentInputValue;j!==g&&o.setState({currentInputValue:j}),c.keyCode===i.ENTER?o.handleChange(j):c.keyCode===i.ARROW_UP?o.handleChange(j-1):c.keyCode===i.ARROW_DOWN&&o.handleChange(j+1)},o.changePageSize=function(c){var j=o.state.current,g=b(c,o.state,o.props);j=j>g?g:j,g===0&&(j=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:j,currentInputValue:j})),o.props.onShowSizeChange(j,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(j,c)},o.handleChange=function(c){var j=o.props.disabled,g=c;if(o.isValid(g)&&!j){var R=b(void 0,o.state,o.props);g>R?g=R:g<1&&(g=1),"current"in o.props||o.setState({current:g,currentInputValue:g});var B=o.state.pageSize;return o.props.onChange(g,B),g}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?g-2:0),B=2;B=N?m=N:m=Number(D),m}},{key:"getShowSizeChanger",value:function(){var o=this.props,D=o.showSizeChanger,N=o.total,L=o.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:N>L}},{key:"renderPrev",value:function(o){var D=this.props,N=D.prevIcon,L=D.itemRender,m=L(o,"prev",this.getItemIcon(N,"prev page")),c=!this.hasPrev();return Object(U.isValidElement)(m)?Object(U.cloneElement)(m,{disabled:c}):m}},{key:"renderNext",value:function(o){var D=this.props,N=D.nextIcon,L=D.itemRender,m=L(o,"next",this.getItemIcon(N,"next page")),c=!this.hasNext();return Object(U.isValidElement)(m)?Object(U.cloneElement)(m,{disabled:c}):m}},{key:"render",value:function(){var o=this,D=this.props,N=D.prefixCls,L=D.className,m=D.style,c=D.disabled,j=D.hideOnSinglePage,g=D.total,R=D.locale,B=D.showQuickJumper,W=D.showLessItems,F=D.showTitle,G=D.showTotal,J=D.simple,ne=D.itemRender,le=D.showPrevNextJumpers,xe=D.jumpPrevIcon,ae=D.jumpNextIcon,ue=D.selectComponentClass,Ne=D.selectPrefixCls,be=D.pageSizeOptions,Pe=this.state,pe=Pe.current,Oe=Pe.pageSize,ge=Pe.currentInputValue;if(j===!0&&g<=Oe)return null;var ce=b(void 0,this.state,this.props),p=[],S=null,H=null,Y=null,ie=null,fe=null,he=B&&B.goButton,je=W?1:2,Qe=pe-1>0?pe-1:0,st=pe+1=je*2&&pe!==1+2&&(p[0]=Object(U.cloneElement)(p[0],{className:"".concat(N,"-item-after-jump-prev")}),p.unshift(S)),ce-pe>=je*2&&pe!==ce-2&&(p[p.length-1]=Object(U.cloneElement)(p[p.length-1],{className:"".concat(N,"-item-before-jump-next")}),p.push(H)),X!==1&&p.unshift(Y),te!==ce&&p.push(ie)}var Q=null;G&&(Q=v.a.createElement("li",{className:"".concat(N,"-total-text")},G(g,[g===0?0:(pe-1)*Oe+1,pe*Oe>g?g:pe*Oe])));var _=!this.hasPrev()||!ce,q=!this.hasNext()||!ce;return v.a.createElement("ul",Object(w.a)({className:s()(N,L,Object(P.a)({},"".concat(N,"-disabled"),c)),style:m,unselectable:"unselectable",ref:this.savePaginationNode},lt),Q,v.a.createElement("li",{title:F?R.prev_page:null,onClick:this.prev,tabIndex:_?null:0,onKeyPress:this.runIfEnterPrev,className:s()("".concat(N,"-prev"),Object(P.a)({},"".concat(N,"-disabled"),_)),"aria-disabled":_},this.renderPrev(Qe)),p,v.a.createElement("li",{title:F?R.next_page:null,onClick:this.next,tabIndex:q?null:0,onKeyPress:this.runIfEnterNext,className:s()("".concat(N,"-next"),Object(P.a)({},"".concat(N,"-disabled"),q)),"aria-disabled":q},this.renderNext(st)),v.a.createElement(f,{disabled:c,locale:R,rootPrefixCls:N,selectComponentClass:ue,selectPrefixCls:Ne,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:pe,pageSize:Oe,pageSizeOptions:be,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:he}))}}],[{key:"getDerivedStateFromProps",value:function(o,D){var N={};if("current"in o&&(N.current=o.current,o.current!==D.current&&(N.currentInputValue=N.current)),"pageSize"in o&&o.pageSize!==D.pageSize){var L=D.current,m=b(o.pageSize,D,o);L=L>m?m:L,"current"in o||(N.current=L,N.currentInputValue=L),N.pageSize=o.pageSize}return N}}]),C}(v.a.Component);M.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:e,locale:n.a,style:{},itemRender:d,totalBoundaryShowSizeChanger:50};var O=M},"6RRn":function(Ce,x,t){"use strict";var w=t("wCXF"),P=t("n6Qo");t.d(x,"b",function(){return P.a});var z=t("IBYe"),k=t("6eGT"),T=t("hW8S");t.d(x,"a",function(){return T.a}),x.c=w.b},"6eGT":function(Ce,x,t){"use strict";function w(P){return null}x.a=w},"746U":function(Ce,x,t){"use strict";t.d(x,"d",function(){return P}),t.d(x,"j",function(){return z}),t.d(x,"i",function(){return k}),t.d(x,"h",function(){return T}),t.d(x,"e",function(){return h}),t.d(x,"k",function(){return V}),t.d(x,"l",function(){return U}),t.d(x,"a",function(){return v}),t.d(x,"f",function(){return s}),t.d(x,"g",function(){return l}),t.d(x,"m",function(){return u}),t.d(x,"c",function(){return f}),t.d(x,"b",function(){return n}),t.d(x,"n",function(){return e}),t.d(x,"o",function(){return r});var w={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function P(d){return Array.isArray?Array.isArray(d):!!(d&&typeof d.length===w.number&&d.constructor===Array)}function z(d){return typeof d===w.string||d instanceof String}function k(d){return typeof d===w.object&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}function T(d){return(typeof d===w.number||d instanceof Number)&&!isNaN(d)}function h(d){return d===!0||d===!1}function V(d){return typeof d===w.undefined}function U(d){return V(d)||d===null}function v(d,b){if(!d)throw new Error(b?"Unexpected type, expected '"+b+"'":"Unexpected type")}var E=Object.prototype.hasOwnProperty;function s(d){if(!k(d))return!1;for(var b in d)if(E.call(d,b))return!1;return!0}function l(d){return typeof d===w.function}function u(d,b){for(var M=Math.min(d.length,b.length),O=0;O0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function n(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(d){var b=d.key,M=d.children;Object(T.a)(b!=null,"Tree node must have a certain key: [".concat(r).concat(b,"]"));var O=String(b);Object(T.a)(!f.has(O)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(O)),f.set(O,!0),n(M,"".concat(r).concat(O," > "))})}n(a)}function v(a){function f(n){var e=Object(k.a)(n);return e.map(function(r){if(!Object(h.i)(r))return Object(T.a)(!r,"Tree/TreeNode can only accept TreeNode as children."),null;var d=r.key,b=r.props,M=b.children,O=Object(z.a)(b,["children"]),A=Object(P.a)({key:d},O),K=f(M);return K.length&&(A.children=K),A}).filter(function(r){return r})}return f(a)}function E(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=new Set(f===!0?[]:f),e=[];function r(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(M,O){var A=Object(h.h)(b?b.pos:"0",O),K=V(M.key,A),C=Object(P.a)(Object(P.a)({},M),{},{parent:b,pos:A,children:null,data:M,isStart:[].concat(Object(w.a)(b?b.isStart:[]),[O===0]),isEnd:[].concat(Object(w.a)(b?b.isEnd:[]),[O===d.length-1])});return e.push(C),f===!0||n.has(K)?C.children=r(M.children||[],C):C.children=[],C})}return r(a),e}function s(a,f,n){var e;n?typeof n=="string"?e=function(b){return b[n]}:typeof n=="function"&&(e=function(b){return n(b)}):e=function(b,M){return V(b.key,M)};function r(d,b,M){var O=d?d.children:a,A=d?Object(h.h)(M.pos,b):"0";if(d){var K=e(d,A),C={node:d,index:b,pos:A,key:K,parentPos:M.node?M.pos:null,level:M.level+1};f(C)}O&&O.forEach(function(y,o){r(y,o,{node:d,pos:A,level:M?M.level+1:-1})})}r(null)}function l(a){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=f.initWrapper,e=f.processEntity,r=f.onProcessFinished,d=arguments.length>2?arguments[2]:void 0,b={},M={},O={posEntities:b,keyEntities:M};return n&&(O=n(O)||O),s(a,function(A){var K=A.node,C=A.index,y=A.pos,o=A.key,D=A.parentPos,N=A.level,L={node:K,index:C,key:o,pos:y,level:N},m=V(o,y);b[y]=L,M[m]=L,L.parent=b[D],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),e&&e(L,O)},d),r&&r(O),O}function u(a,f){var n=f.expandedKeys,e=f.selectedKeys,r=f.loadedKeys,d=f.loadingKeys,b=f.checkedKeys,M=f.halfCheckedKeys,O=f.dragOverNodeKey,A=f.dropPosition,K=f.keyEntities,C=K[a],y={eventKey:a,expanded:n.indexOf(a)!==-1,selected:e.indexOf(a)!==-1,loaded:r.indexOf(a)!==-1,loading:d.indexOf(a)!==-1,checked:b.indexOf(a)!==-1,halfChecked:M.indexOf(a)!==-1,pos:String(C?C.pos:""),dragOver:O===a&&A===0,dragOverGapTop:O===a&&A===-1,dragOverGapBottom:O===a&&A===1};return y}function i(a){var f=a.data,n=a.expanded,e=a.selected,r=a.checked,d=a.loaded,b=a.loading,M=a.halfChecked,O=a.dragOver,A=a.dragOverGapTop,K=a.dragOverGapBottom,C=a.pos,y=a.active,o=Object(P.a)(Object(P.a)({},f),{},{expanded:n,selected:e,checked:r,loaded:d,loading:b,halfChecked:M,dragOver:O,dragOverGapTop:A,dragOverGapBottom:K,pos:C,active:y});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),a}}),o}},"8HAY":function(Ce,x,t){"use strict";t.d(x,"a",function(){return h}),t.d(x,"b",function(){return V});var w=t("pmY6"),P=t("MI8n"),z=function(){var U=function(v,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var u in l)l.hasOwnProperty(u)&&(s[u]=l[u])},U(v,E)};return function(v,E){U(v,E);function s(){this.constructor=v}v.prototype=E===null?Object.create(E):(s.prototype=E.prototype,new s)}}(),k=function(U,v,E,s){function l(u){return u instanceof E?u:new E(function(i){i(u)})}return new(E||(E=Promise))(function(u,i){function a(e){try{n(s.next(e))}catch(r){i(r)}}function f(e){try{n(s.throw(e))}catch(r){i(r)}}function n(e){e.done?u(e.value):l(e.value).then(a,f)}n((s=s.apply(U,v||[])).next())})},T=function(U,v){var E={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,l,u,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(n){return function(e){return f([n,e])}}function f(n){if(s)throw new TypeError("Generator is already executing.");for(;E;)try{if(s=1,l&&(u=n[0]&2?l.return:n[0]?l.throw||((u=l.return)&&u.call(l),0):l.next)&&!(u=u.call(l,n[1])).done)return u;(l=0,u)&&(n=[n[0]&2,u.value]);switch(n[0]){case 0:case 1:u=n;break;case 4:return E.label++,{value:n[1],done:!1};case 5:E.label++,l=n[1],n=[0];continue;case 7:n=E.ops.pop(),E.trys.pop();continue;default:if(!(u=E.trys,u=u.length>0&&u[u.length-1])&&(n[0]===6||n[0]===2)){E=0;continue}if(n[0]===3&&(!u||n[1]>u[0]&&n[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var E=document.createElement("style");if((U=v.csp)===null||U===void 0?void 0:U.nonce){var s;E.nonce=(s=v.csp)===null||s===void 0?void 0:s.nonce}E.innerHTML=V;var l=z(v),u=l.firstChild;return v.prepend&&l.prepend?l.prepend(E):v.prepend&&u?l.insertBefore(E,u):l.appendChild(E),E}var T=new Map;function h(V,U){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E=z(v);if(!T.has(E)){var s=k("",v),l=s.parentNode;T.set(E,l),l.removeChild(s)}var u=Array.from(T.get(E).children).find(function(e){return e.tagName==="STYLE"&&e[P]===U});if(u){var i,a;if(((i=v.csp)===null||i===void 0?void 0:i.nonce)&&u.nonce!==((a=v.csp)===null||a===void 0?void 0:a.nonce)){var f;u.nonce=(f=v.csp)===null||f===void 0?void 0:f.nonce}return u.innerHTML!==V&&(u.innerHTML=V),u}var n=k(V,v);return n[P]=U,n}},"C/vA":function(Ce,x,t){"use strict";t.d(x,"a",function(){return w});function w(P){var z=this,k=!1,T;return function(){return k||(k=!0,T=P.apply(z,arguments)),T}}},"Cg/j":function(Ce,x,t){"use strict";t.d(x,"b",function(){return w}),t.d(x,"a",function(){return P}),t.d(x,"c",function(){return k}),t.d(x,"d",function(){return T});var w;(function(h){h.serviceIds=new Map,h.DI_TARGET="$di$target",h.DI_DEPENDENCIES="$di$dependencies";function V(U){return U[h.DI_DEPENDENCIES]||[]}h.getServiceDependencies=V})(w||(w={}));var P=k("instantiationService");function z(h,V,U,v){V[w.DI_TARGET]===V?V[w.DI_DEPENDENCIES].push({id:h,index:U,optional:v}):(V[w.DI_DEPENDENCIES]=[{id:h,index:U,optional:v}],V[w.DI_TARGET]=V)}function k(h){if(w.serviceIds.has(h))return w.serviceIds.get(h);var V=function(U,v,E){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");z(V,U,E,!1)};return V.toString=function(){return h},w.serviceIds.set(h,V),V}function T(h){return function(V,U,v){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");z(h,V,v,!0)}}},IBYe:function(Ce,x,t){"use strict";function w(P){return null}x.a=w},JDZd:function(Ce,x,t){Ce.exports={flex_box_center:"flex_box_center___1we8_",flex_space_between:"flex_space_between___1_NSA",flex_box_vertical_center:"flex_box_vertical_center___ItdQS",flex_box_center_end:"flex_box_center_end___3l243",flex_box_column:"flex_box_column___K7czc",title:"title___2gdTn",shixunTitle:"shixunTitle___2Z0QR",shixunWrp:"shixunWrp___1Jn2x"}},JYp7:function(Ce,x,t){"use strict";t.d(x,"c",function(){return P}),t.d(x,"d",function(){return z}),t.d(x,"f",function(){return T}),t.d(x,"a",function(){return h}),t.d(x,"b",function(){return V}),t.d(x,"e",function(){return U});var w=function(){var v=function(E,s){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var i in u)u.hasOwnProperty(i)&&(l[i]=u[i])},v(E,s)};return function(E,s){v(E,s);function l(){this.constructor=E}E.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),P={done:!0,value:void 0},z;(function(v){var E={next:function(){return P}};function s(){return E}v.empty=s;function l(M){var O=!1;return{next:function(){return O?P:(O=!0,{done:!1,value:M})}}}v.single=l;function u(M,O,A){return O===void 0&&(O=0),A===void 0&&(A=M.length),{next:function(){return O>=A?P:{done:!1,value:M[O++]}}}}v.fromArray=u;function i(M){return{next:function(){var O=M.next();return O.done?P:{done:!1,value:O.value}}}}v.fromNativeIterator=i;function a(M){return M?Array.isArray(M)?v.fromArray(M):M:v.empty()}v.from=a;function f(M,O){return{next:function(){var A=M.next();return A.done?P:{done:!1,value:O(A.value)}}}}v.map=f;function n(M,O){return{next:function(){for(;;){var A=M.next();if(A.done)return P;if(O(A.value))return{done:!1,value:A.value}}}}}v.filter=n;function e(M,O){for(var A=M.next();!A.done;A=M.next())O(A.value)}v.forEach=e;function r(M,O){O===void 0&&(O=Number.POSITIVE_INFINITY);var A=[];if(O===0)return A;for(var K=0,C=M.next();!C.done&&!(A.push(C.value),++K>=O);C=M.next());return A}v.collect=r;function d(){for(var M=[],O=0;O=M.length)return P;var K=M[A],C=K.next();return C.done?(A++,this.next()):C}}}v.concat=d;function b(M){return new k(M)}v.chain=b})(z||(z={}));var k=function(){function v(E){this.it=E}return v.prototype.next=function(){return this.it.next()},v}();function T(v){return Array.isArray(v)?z.fromArray(v):v||z.empty()}var h=function(){function v(E,s,l,u){s===void 0&&(s=0),l===void 0&&(l=E.length),u===void 0&&(u=s-1),this.items=E,this.start=s,this.end=l,this.index=u}return v.prototype.first=function(){return this.index=this.start,this.current()},v.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},v.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},v}(),V=function(v){w(E,v);function E(s,l,u,i){return l===void 0&&(l=0),u===void 0&&(u=s.length),i===void 0&&(i=l-1),v.call(this,s,l,u,i)||this}return E.prototype.current=function(){return v.prototype.current.call(this)},E.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},E.prototype.first=function(){return this.index=this.start,this.current()},E.prototype.last=function(){return this.index=this.end-1,this.current()},E.prototype.parent=function(){return null},E}(h),U=function(){function v(E,s){this.iterator=E,this.fn=s}return v.prototype.next=function(){return this.fn(this.iterator.next())},v}()},LdHM:function(Ce,x,t){"use strict";t.d(x,"b",function(){return d}),t.d(x,"a",function(){return M});var w=t("1OyB"),P=t("vuIU"),z=t("Ji7U"),k=t("LK+K"),T=t("q1tI"),h=t("rePB"),V=t("Ff2n"),U=t("ODXe"),v=t("4IlW"),E=t("bX4T"),s=t("YrtM"),l=t("TSYQ"),u=t.n(l),i=t("+nKL"),a=t("8OUc"),f=function(F,G){var J=F.prefixCls,ne=F.id,le=F.flattenOptions,xe=F.childrenAsData,ae=F.values,ue=F.searchValue,Ne=F.multiple,be=F.defaultActiveFirstOption,Pe=F.height,pe=F.itemHeight,Oe=F.notFoundContent,ge=F.open,ce=F.menuItemSelectedIcon,p=F.virtual,S=F.onSelect,H=F.onToggleOpen,Y=F.onActiveValue,ie=F.onScroll,fe=F.onMouseEnter,he="".concat(J,"-item"),je=Object(s.a)(function(){return le},[ge,le],function(ee,Q){return Q[0]&&ee[1]!==Q[1]}),Qe=T.useRef(null),st=function(Q){Q.preventDefault()},lt=function(Q){Qe.current&&Qe.current.scrollTo({index:Q})},nt=function(Q){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=je.length,me=0;me1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(W).map(function(G,J){if(!T.isValidElement(G)||!G.type)return null;var ne=G.type.isSelectOptGroup,le=G.key,xe=G.props,ae=xe.children,ue=Object(V.a)(xe,["children"]);return F||!ne?K(G):Object(O.a)(Object(O.a)({key:"__RC_SELECT_GRP__".concat(le===null?J:le,"__"),label:le},ue),{},{options:C(ae)})}).filter(function(G){return G})}var y=t("2Qr1"),o=t("qNPg"),D=t("U8pU"),N=t("Kwbf"),L=t("WKfj");function m(W){var F=W.mode,G=W.options,J=W.children,ne=W.backfill,le=W.allowClear,xe=W.placeholder,ae=W.getInputElement,ue=W.showSearch,Ne=W.onSearch,be=W.defaultOpen,Pe=W.autoFocus,pe=W.labelInValue,Oe=W.value,ge=W.inputValue,ce=W.optionLabelProp,p=F==="multiple"||F==="tags",S=ue!==void 0?ue:p||F==="combobox",H=G||C(J);if(Object(N.a)(F!=="tags"||H.every(function(he){return!he.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),F==="tags"||F==="combobox"){var Y=H.some(function(he){return he.options?he.options.some(function(je){return typeof("value"in je?je.value:je.key)=="number"}):typeof("value"in he?he.value:he.key)=="number"});Object(N.a)(!Y,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(N.a)(F!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(N.a)(F==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(N.a)(F==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(N.b)(F!=="combobox"||!ae||!le||!xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ne&&!S&&F!=="combobox"&&F!=="tags"&&Object(N.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(N.b)(!be||Pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Oe!=null){var ie=Object(L.d)(Oe);Object(N.a)(!pe||ie.every(function(he){return Object(D.a)(he)==="object"&&("key"in he||"value"in he)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(N.a)(!p||Array.isArray(Oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var fe=null;Object(A.a)(J).some(function(he){if(!T.isValidElement(he)||!he.type)return!1;var je=he.type;if(je.isSelectOption)return!1;if(je.isSelectOptGroup){var Qe=Object(A.a)(he.props.children).every(function(st){return!T.isValidElement(st)||!he.type||st.type.isSelectOption?!0:(fe=st.type,!1)});return!Qe}return fe=je,!0}),fe&&Object(N.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(fe.displayName||fe.name||fe,"`.")),Object(N.a)(ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var c=m,j=Object(o.a)({prefixCls:"rc-select",components:{optionList:e},convertChildrenToData:C,flattenOptions:y.d,getLabeledValue:y.e,filterOptions:y.b,isValueDisabled:y.g,findValueOption:y.c,warningProps:c,fillOptionsWithMissingValue:y.a}),g=function(W){Object(z.a)(G,W);var F=Object(k.a)(G);function G(){var J;return Object(w.a)(this,G),J=F.apply(this,arguments),J.selectRef=T.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(P.a)(G,[{key:"render",value:function(){return T.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),G}(T.Component);g.Option=d,g.OptGroup=M;var R=g,B=x.c=R},MI8n:function(Ce,x,t){"use strict";t.d(x,"b",function(){return h}),t.d(x,"a",function(){return v}),t.d(x,"e",function(){return E}),t.d(x,"d",function(){return s}),t.d(x,"c",function(){return l}),t.d(x,"f",function(){return u});var w=t("/cxE"),P=t("C/vA"),z=t("pmY6"),k=t("24hK"),T=function(){var i=function(a,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r])},i(a,f)};return function(a,f){i(a,f);function n(){this.constructor=a}a.prototype=f===null?Object.create(f):(n.prototype=f.prototype,new n)}}(),h;(function(i){i.None=function(){return z.a.None};function a(c){return function(j,g,R){g===void 0&&(g=null);var B=!1,W;return W=c(function(F){return B?void 0:(W?W.dispose():B=!0,j.call(g,F))},null,R),B&&W.dispose(),W}}i.once=a;function f(c,j){return M(function(g,R,B){return R===void 0&&(R=null),c(function(W){return g.call(R,j(W))},null,B)})}i.map=f;function n(c,j){return M(function(g,R,B){return R===void 0&&(R=null),c(function(W){j(W),g.call(R,W)},null,B)})}i.forEach=n;function e(c,j){return M(function(g,R,B){return R===void 0&&(R=null),c(function(W){return j(W)&&g.call(R,W)},null,B)})}i.filter=e;function r(c){return c}i.signal=r;function d(){for(var c=[],j=0;j1)&&ne.fire(xe),J=0},g)})},onLastListenerRemove:function(){W.dispose()}});return ne.event}i.debounce=O;function A(c){var j=new Date().getTime();return f(a(c),function(g){return new Date().getTime()-j})}i.stopwatch=A;function K(c){var j=!0,g;return e(c,function(R){var B=j||R!==g;return j=!1,g=R,B})}i.latch=K;function C(c,j,g){j===void 0&&(j=!1),g===void 0&&(g=[]);var R=g.slice(),B=c(function(G){R?R.push(G):F.fire(G)}),W=function(){R&&R.forEach(function(G){return F.fire(G)}),R=null},F=new v({onFirstListenerAdd:function(){B||(B=c(function(G){return F.fire(G)}))},onFirstListenerDidAdd:function(){R&&(j?setTimeout(W):W())},onLastListenerRemove:function(){B&&B.dispose(),B=null}});return F.event}i.buffer=C;var y=function(){function c(j){this.event=j}return c.prototype.map=function(j){return new c(f(this.event,j))},c.prototype.forEach=function(j){return new c(n(this.event,j))},c.prototype.filter=function(j){return new c(e(this.event,j))},c.prototype.reduce=function(j,g){return new c(b(this.event,j,g))},c.prototype.latch=function(){return new c(K(this.event))},c.prototype.debounce=function(j,g,R,B){return g===void 0&&(g=100),R===void 0&&(R=!1),new c(O(this.event,j,g,R,B))},c.prototype.on=function(j,g,R){return this.event(j,g,R)},c.prototype.once=function(j,g,R){return a(this.event)(j,g,R)},c}();function o(c){return new y(c)}i.chain=o;function D(c,j,g){g===void 0&&(g=function(G){return G});var R=function(){for(var G=[],J=0;J0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(i.prototype,"event",{get:function(){var a=this;return this._event||(this._event=function(f,n,e){a._listeners||(a._listeners=new k.a);var r=a._listeners.isEmpty();r&&a._options&&a._options.onFirstListenerAdd&&a._options.onFirstListenerAdd(a);var d=a._listeners.push(n?[f,n]:f);r&&a._options&&a._options.onFirstListenerDidAdd&&a._options.onFirstListenerDidAdd(a),a._options&&a._options.onListenerDidAdd&&a._options.onListenerDidAdd(a,f,n);var E;a._leakageMon&&(E=a._leakageMon.check(a._listeners.size));var M;return M={dispose:function(){if(E&&E(),M.dispose=i._noop,!a._disposed&&(d(),a._options&&a._options.onLastListenerRemove)){var O=a._listeners&&!a._listeners.isEmpty();O||a._options.onLastListenerRemove(a)}}},e instanceof z.b?e.add(M):Array.isArray(e)&&e.push(M),M}),this._event},enumerable:!0,configurable:!0}),i.prototype.fire=function(a){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.a);for(var f=this._listeners.iterator(),n=f.next();!n.done;n=f.next())this._deliveryQueue.push([n.value,a]);for(;this._deliveryQueue.size>0;){var e=this._deliveryQueue.shift(),r=e[0],d=e[1];try{typeof r=="function"?r.call(void 0,d):r[0].call(r[1],d)}catch(E){Object(w.e)(E)}}}},i.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},i._noop=function(){},i}(),b=function(i){T(a,i);function a(f){var n=i.call(this,f)||this;return n._isPaused=0,n._eventQueue=new k.a,n._mergeFn=f&&f.merge,n}return a.prototype.pause=function(){this._isPaused++},a.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var f=this._eventQueue.toArray();this._eventQueue.clear(),i.prototype.fire.call(this,this._mergeFn(f))}else for(;!this._isPaused&&this._eventQueue.size!==0;)i.prototype.fire.call(this,this._eventQueue.shift())},a.prototype.fire=function(f){this._listeners&&(this._isPaused!==0?this._eventQueue.push(f):i.prototype.fire.call(this,f))},a}(v),s=function(){function i(){var a=this;this.hasListeners=!1,this.events=[],this.emitter=new v({onFirstListenerAdd:function(){return a.onFirstListenerAdd()},onLastListenerRemove:function(){return a.onLastListenerRemove()}})}return Object.defineProperty(i.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),i.prototype.add=function(a){var f=this,n={event:a,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var e=function(){f.hasListeners&&f.unhook(n);var r=f.events.indexOf(n);f.events.splice(r,1)};return Object(z.h)(Object(P.a)(e))},i.prototype.onFirstListenerAdd=function(){var a=this;this.hasListeners=!0,this.events.forEach(function(f){return a.hook(f)})},i.prototype.onLastListenerRemove=function(){var a=this;this.hasListeners=!1,this.events.forEach(function(f){return a.unhook(f)})},i.prototype.hook=function(a){var f=this;a.listener=a.event(function(n){return f.emitter.fire(n)})},i.prototype.unhook=function(a){a.listener&&a.listener.dispose(),a.listener=null},i.prototype.dispose=function(){this.emitter.dispose()},i}(),l=function(){function i(){this.buffers=[]}return i.prototype.wrapEvent=function(a){var f=this;return function(n,e,r){return a(function(d){var E=f.buffers[f.buffers.length-1];E?E.push(function(){return n.call(e,d)}):n.call(e,d)},void 0,r)}},i.prototype.bufferEvents=function(a){var f=[];this.buffers.push(f);var n=a();return this.buffers.pop(),f.forEach(function(e){return e()}),n},i}(),u=function(){function i(){var a=this;this.listening=!1,this.inputEvent=h.None,this.inputEventListener=z.a.None,this.emitter=new v({onFirstListenerDidAdd:function(){a.listening=!0,a.inputEventListener=a.inputEvent(a.emitter.fire,a.emitter)},onLastListenerRemove:function(){a.listening=!1,a.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(i.prototype,"input",{set:function(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},i}()},N0LK:function(Ce,x,t){"use strict";t.d(x,"x",function(){return w}),t.d(x,"F",function(){return P}),t.d(x,"r",function(){return k}),t.d(x,"o",function(){return T}),t.d(x,"p",function(){return h}),t.d(x,"Q",function(){return V}),t.d(x,"K",function(){return v}),t.d(x,"k",function(){return b}),t.d(x,"N",function(){return s}),t.d(x,"m",function(){return l}),t.d(x,"l",function(){return u}),t.d(x,"I",function(){return i}),t.d(x,"H",function(){return a}),t.d(x,"q",function(){return f}),t.d(x,"t",function(){return n}),t.d(x,"D",function(){return e}),t.d(x,"e",function(){return r}),t.d(x,"f",function(){return d}),t.d(x,"B",function(){return E}),t.d(x,"C",function(){return M}),t.d(x,"n",function(){return A}),t.d(x,"O",function(){return C}),t.d(x,"c",function(){return y}),t.d(x,"d",function(){return o}),t.d(x,"z",function(){return D}),t.d(x,"A",function(){return N}),t.d(x,"u",function(){return L}),t.d(x,"E",function(){return c}),t.d(x,"G",function(){return j}),t.d(x,"i",function(){return R}),t.d(x,"g",function(){return W}),t.d(x,"v",function(){return G}),t.d(x,"h",function(){return J}),t.d(x,"y",function(){return ne}),t.d(x,"w",function(){return le}),t.d(x,"a",function(){return xe}),t.d(x,"P",function(){return ae}),t.d(x,"L",function(){return ue}),t.d(x,"J",function(){return Ne}),t.d(x,"j",function(){return Ee}),t.d(x,"M",function(){return Pe}),t.d(x,"s",function(){return pe}),t.d(x,"b",function(){return Oe});function w(p){return!p||typeof p!="string"?!0:p.trim().length===0}function P(p,S,H){H===void 0&&(H="0");for(var Y=""+p,ie=[Y],fe=Y.length;fe=S.length?Y:S[fe]})}function T(p){return p.replace(/[<>&]/g,function(S){switch(S){case"<":return"<";case">":return">";case"&":return"&";default:return S}})}function h(p){return p.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function V(p,S){S===void 0&&(S=" ");var H=U(p,S);return v(H,S)}function U(p,S){if(!p||!S)return p;var H=S.length;if(H===0||p.length===0)return p;for(var Y=0;p.indexOf(S,Y)===Y;)Y=Y+H;return p.substring(Y)}function v(p,S){if(!p||!S)return p;var H=S.length,Y=p.length;if(H===0||Y===0)return p;for(var ie=Y,fe=-1;!(fe=p.lastIndexOf(S,ie-1),fe===-1||fe+H!==ie);){if(fe===0)return"";ie=fe}return p.substring(0,ie)}function b(p){return p.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function s(p,S){if(p.length0?p.indexOf(S,H)===H:H===0?p===S:!1}function u(p,S,H){if(H===void 0&&(H={}),!p)throw new Error("Cannot create regex from empty string");S||(p=h(p)),H.wholeWord&&(/\B/.test(p.charAt(0))||(p="\\b"+p),/\B/.test(p.charAt(p.length-1))||(p=p+"\\b"));var Y="";return H.global&&(Y+="g"),H.matchCase||(Y+="i"),H.multiline&&(Y+="m"),H.unicode&&(Y+="u"),new RegExp(p,Y)}function i(p){if(p.source==="^"||p.source==="^$"||p.source==="$"||p.source==="^\\s*$")return!1;var S=p.exec("");return!!(S&&p.lastIndex===0)}function a(p){return(p.global?"g":"")+(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")}function f(p){for(var S=0,H=p.length;S=0;H--){var Y=p.charCodeAt(H);if(Y!==32&&Y!==9)return H}return-1}function r(p,S){return pS?1:0}function d(p,S){for(var H=Math.min(p.length,S.length),Y=0;YS.length?1:0}function E(p){return p>=97&&p<=122}function M(p){return p>=65&&p<=90}function O(p){return E(p)||M(p)}function A(p,S){return p.length===S.length&&K(p,S)}function K(p,S,H){H===void 0&&(H=p.length);for(var Y=0;Yp.length?!1:K(p,S,H)}function y(p,S){var H,Y=Math.min(p.length,S.length);for(H=0;H1){var Y=p.charCodeAt(S-2);if(D(Y))return(Y-55296<<10)+(H-56320)+65536}return H}function c(p,S){var H=ge.getInstance(),Y=S,ie=p.length,fe=L(p,ie,S);S+=fe>=65536?2:1;for(var he=H.getGraphemeBreakType(fe);S=65536?2:1,he=Qe}return S-Y}function j(p,S){var H=ge.getInstance(),Y=S,ie=m(p,S);S-=ie>=65536?2:1;for(var fe=H.getGraphemeBreakType(ie);S>0;){var he=m(p,S),je=H.getGraphemeBreakType(he);if(Oe(je,fe))break;S-=he>=65536?2:1,fe=je}return Y-S}var g=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function R(p){return g.test(p)}var B=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(p){return B.test(p)}var F=/^[\t\n\r\x20-\x7E]*$/;function G(p){return F.test(p)}function J(p){for(var S=0,H=p.length;S=11904&&p<=55215||p>=63744&&p<=64255||p>=65281&&p<=65374}function le(p){return p>=127462&&p<=127487||p>=9728&&p<=10175||p>=127744&&p<=128591||p>=128640&&p<=128764||p>=128992&&p<=129003||p>=129280&&p<=129535||p>=129648&&p<=129651||p>=129656&&p<=129666||p>=129680&&p<=129685}var xe=String.fromCharCode(65279);function ae(p){return!!(p&&p.length>0&&p.charCodeAt(0)===65279)}function ue(p){return btoa(encodeURIComponent(p))}function Ne(p,S){for(var H="",Y=0;YH[3*ie+1])ie=2*ie+1;else return H[3*ie+2];return 0},p._INSTANCE=null,p}();function ce(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NvD2:function(Ce,x,t){"use strict";t.d(x,"a",function(){return h});var w=t("Kwbf");function P(V,U){var v=new Set;return V.forEach(function(b){U.has(b)||v.add(b)}),v}function z(V){var U=V||{},v=U.disabled,b=U.disableCheckbox,s=U.checkable;return!!(v||b)||s===!1}function k(V,U,v,b){for(var s=new Set(V),l=new Set,u=0;u<=v;u+=1){var i=U.get(u)||new Set;i.forEach(function(e){var r=e.key,d=e.node,E=e.children,M=E===void 0?[]:E;s.has(r)&&!b(d)&&M.filter(function(O){return!b(O.node)}).forEach(function(O){s.add(O.key)})})}for(var a=new Set,f=v;f>=0;f-=1){var n=U.get(f)||new Set;n.forEach(function(e){var r=e.parent,d=e.node;if(b(d)||!e.parent||a.has(e.parent.key))return;if(b(e.parent.node)){a.add(r.key);return}var E=!0,M=!1;(r.children||[]).filter(function(O){return!b(O.node)}).forEach(function(O){var A=O.key,K=s.has(A);E&&!K&&(E=!1),!M&&(K||l.has(A))&&(M=!0)}),E&&s.add(r.key),M&&l.add(r.key),a.add(r.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(P(l,s))}}function T(V,U,v,b,s){for(var l=new Set(V),u=new Set(U),i=0;i<=b;i+=1){var a=v.get(i)||new Set;a.forEach(function(r){var d=r.key,E=r.node,M=r.children,O=M===void 0?[]:M;!l.has(d)&&!u.has(d)&&!s(E)&&O.filter(function(A){return!s(A.node)}).forEach(function(A){l.delete(A.key)})})}u=new Set;for(var f=new Set,n=b;n>=0;n-=1){var e=v.get(n)||new Set;e.forEach(function(r){var d=r.parent,E=r.node;if(s(E)||!r.parent||f.has(r.parent.key))return;if(s(r.parent.node)){f.add(d.key);return}var M=!0,O=!1;(d.children||[]).filter(function(A){return!s(A.node)}).forEach(function(A){var K=A.key,C=l.has(K);M&&!C&&(M=!1),!O&&(C||u.has(K))&&(O=!0)}),M||l.delete(d.key),O&&u.add(d.key),f.add(d.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(P(u,l))}}function h(V,U,v,b){var s=[],l;b?l=b:l=z;var u=new Set(V.filter(function(n){var e=!!v[n];return e||s.push(n),e})),i=new Map,a=0;Object.keys(v).forEach(function(n){var e=v[n],r=e.level,d=i.get(r);d||(d=new Set,i.set(r,d)),d.add(e),a=Math.max(a,r)}),Object(w.a)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map(function(n){return"'".concat(n,"'")}).join(", ")));var f;return U===!0?f=k(u,i,a,l):f=T(u,U.halfCheckedKeys,i,a,l),f}},OZM5:function(Ce,x,t){"use strict";t.d(x,"b",function(){return b}),t.d(x,"a",function(){return s}),t.d(x,"k",function(){return l}),t.d(x,"h",function(){return u}),t.d(x,"i",function(){return i}),t.d(x,"g",function(){return a}),t.d(x,"c",function(){return f}),t.d(x,"d",function(){return n}),t.d(x,"j",function(){return d}),t.d(x,"e",function(){return E}),t.d(x,"f",function(){return M});var w=t("KQm4"),P=t("U8pU"),z=t("Ff2n"),k=t("q1tI"),T=t.n(k),h=t("Kwbf"),V=t("WaYH"),U=.25,v=2;function b(O,A){var K=O.slice(),C=K.indexOf(A);return C>=0&&K.splice(C,1),K}function s(O,A){var K=O.slice();return K.indexOf(A)===-1&&K.push(A),K}function l(O){return O.split("-")}function u(O,A){return"".concat(O,"-").concat(A)}function i(O){return O&&O.type&&O.type.isTreeNode}function a(O,A){var K=[O],C=A[O];function y(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(D){var N=D.key,L=D.children;K.push(N),y(L)})}return y(C.children),K}function f(O,A){var K=O.clientY,C=A.selectHandle.getBoundingClientRect(),y=C.top,o=C.bottom,D=C.height,N=Math.max(D*U,v);return K<=y+N?-1:K>=o-N?1:0}function n(O,A){if(!O)return;var K=A.multiple;return K?O.slice():O.length?[O[0]]:O}var e=function(A){return A};function r(O,A){if(!O)return[];var K=A||{},C=K.processProps,y=C===void 0?e:C,o=Array.isArray(O)?O:[O];return o.map(function(D){var N=D.children,L=Object(z.a)(D,["children"]),m=r(N,A);return T.a.createElement(V.a,Object.assign({},y(L)),m)})}function d(O){if(!O)return null;var A;if(Array.isArray(O))A={checkedKeys:O,halfCheckedKeys:void 0};else if(Object(P.a)(O)==="object")A={checkedKeys:O.checked||void 0,halfCheckedKeys:O.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function E(O,A){var K=new Set;function C(y){if(K.has(y))return;var o=A[y];if(!o)return;K.add(y);var D=o.parent,N=o.node;if(N.disabled)return;D&&C(D.key)}return(O||[]).forEach(function(y){C(y)}),Object(w.a)(K)}function M(O){var A={};return Object.keys(O).forEach(function(K){(K.startsWith("data-")||K.startsWith("aria-"))&&(A[K]=O[K])}),A}},QDVR:function(Ce,x,t){"use strict";t.d(x,"e",function(){return P}),t.d(x,"d",function(){return z}),t.d(x,"c",function(){return V}),t.d(x,"b",function(){return U}),t.d(x,"a",function(){return b});var w=function(){var s=function(l,u){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var f in a)a.hasOwnProperty(f)&&(i[f]=a[f])},s(l,u)};return function(l,u){s(l,u);function i(){this.constructor=l}l.prototype=u===null?Object.create(u):(i.prototype=u.prototype,new i)}}();function P(s){var l=[];return s.forEach(function(u){return l.push(u)}),l}function z(s){var l=[];return s.forEach(function(u,i){return l.push(i)}),l}var k=function(){function s(){this._value="",this._pos=0}return s.prototype.reset=function(l){return this._value=l,this._pos=0,this},s.prototype.next=function(){return this._pos+=1,this},s.prototype.hasNext=function(){return this._pos0)a.left||(a.left=new h,a.left.segment=i.value()),a=a.left;else if(f<0)a.right||(a.right=new h,a.right.segment=i.value()),a=a.right;else if(i.hasNext())i.next(),a.mid||(a.mid=new h,a.mid.segment=i.value()),a=a.mid;else break}var n=a.value;return a.value=u,a.key=l,n},s.prototype.get=function(l){for(var u=this._iter.reset(l),i=this._root;i;){var a=u.cmp(i.segment);if(a>0)i=i.left;else if(a<0)i=i.right;else if(u.hasNext())u.next(),i=i.mid;else break}return i?i.value:void 0},s.prototype.findSubstr=function(l){for(var u=this._iter.reset(l),i=this._root,a=void 0;i;){var f=u.cmp(i.segment);if(f>0)i=i.left;else if(f<0)i=i.right;else if(u.hasNext())u.next(),a=i.value||a,i=i.mid;else break}return i&&i.value||a},s.prototype.forEach=function(l){this._forEach(this._root,l)},s.prototype._forEach=function(l,u){l&&(this._forEach(l.left,u),l.value&&u(l.value,l.key),this._forEach(l.mid,u),this._forEach(l.right,u))},s}(),U=function(){function s(){this.map=new Map,this.ignoreCase=!1}return s.prototype.set=function(l,u){this.map.set(this.toKey(l),u)},s.prototype.get=function(l){return this.map.get(this.toKey(l))},s.prototype.toKey=function(l){var u=l.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},s}(),v=function(){function s(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return s.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(s.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),s.prototype.get=function(l,u){u===void 0&&(u=0);var i=this._map.get(l);return i?(u!==0&&this.touch(i,u),i.value):void 0},s.prototype.set=function(l,u,i){i===void 0&&(i=0);var a=this._map.get(l);if(a)a.value=u,i!==0&&this.touch(a,i);else{a={key:l,value:u,next:void 0,previous:void 0};switch(i){case 0:this.addItemLast(a);break;case 1:this.addItemFirst(a);break;case 2:this.addItemLast(a);break;default:this.addItemLast(a);break}this._map.set(l,a),this._size++}},s.prototype.delete=function(l){return!!this.remove(l)},s.prototype.remove=function(l){var u=this._map.get(l);return u?(this._map.delete(l),this.removeItem(u),this._size--,u.value):void 0},s.prototype.forEach=function(l,u){for(var i=this._head;i;)u?l.bind(u)(i.value,i.key,this):l(i.value,i.key,this),i=i.next},s.prototype.trimOld=function(l){if(l>=this.size)return;if(l===0){this.clear();return}for(var u=this._head,i=this.size;u&&i>l;)this._map.delete(u.key),u=u.next,i--;this._head=u,this._size=i,u&&(u.previous=void 0)},s.prototype.addItemFirst=function(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l},s.prototype.addItemLast=function(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l},s.prototype.removeItem=function(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{var u=l.next,i=l.previous;if(!u||!i)throw new Error("Invalid list");u.previous=i,i.next=u}l.next=void 0,l.previous=void 0},s.prototype.touch=function(l,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(l===this._head)return;var i=l.next,a=l.previous;l===this._tail?(a.next=void 0,this._tail=a):(i.previous=a,a.next=i),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l}else if(u===2){if(l===this._tail)return;var i=l.next,a=l.previous;l===this._head?(i.previous=void 0,this._head=i):(i.previous=a,a.next=i),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l}},s.prototype.toJSON=function(){var l=[];return this.forEach(function(u,i){l.push([i,u])}),l},s}(),b=function(s){w(l,s);function l(u,i){i===void 0&&(i=1);var a=s.call(this)||this;return a._limit=u,a._ratio=Math.min(Math.max(0,i),1),a}return l.prototype.get=function(u){return s.prototype.get.call(this,u,2)},l.prototype.peek=function(u){return s.prototype.get.call(this,u,0)},l.prototype.set=function(u,i){s.prototype.set.call(this,u,i,2),this.checkTrim()},l.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},l}(v)},"SA+Z":function(Ce,x,t){var w=t("wTVA"),P=t("EbDI"),z=t("ZhPi"),k=t("wkBT");function T(h){return w(h)||P(h)||z(h)||k()}Ce.exports=T,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},T8No:function(Ce,x,t){"use strict";t.d(x,"a",function(){return k}),t.d(x,"b",function(){return u}),t.d(x,"d",function(){return i}),t.d(x,"c",function(){return a}),t.d(x,"e",function(){return f});var w=t("N0LK"),P=t("Cg/j"),z=function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,E){d.__proto__=E}||function(d,E){for(var M in E)E.hasOwnProperty(M)&&(d[M]=E[M])},n(e,r)};return function(e,r){n(e,r);function d(){this.constructor=e}e.prototype=r===null?Object.create(r):(d.prototype=r.prototype,new d)}}(),k=function(){function n(){}return n.has=function(e){return h.create(e)},n.equals=function(e,r){return V.create(e,r)},n.regex=function(e,r){return b.create(e,r)},n.not=function(e){return v.create(e)},n.and=function(){for(var e=[],r=0;r=0){var d=e.split("!=");return U.create(d[0].trim(),this._deserializeValue(d[1],r))}if(e.indexOf("==")>=0){var d=e.split("==");return V.create(d[0].trim(),this._deserializeValue(d[1],r))}if(e.indexOf("=~")>=0){var d=e.split("=~");return b.create(d[0].trim(),this._deserializeRegexValue(d[1],r))}return/^\!\s*/.test(e)?v.create(e.substr(1).trim()):h.create(e)},n._deserializeValue=function(e,r){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;var d=/^'([^']*)'$/.exec(e);return d?d[1].trim():e},n._deserializeRegexValue=function(e,r){if(Object(w.x)(e)){if(r)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var d=e.indexOf("/"),E=e.lastIndexOf("/");if(d===E||d<0){if(r)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var M=e.slice(d+1,E),O=e[E+1]==="i"?"i":"";try{return new RegExp(M,O)}catch(A){if(r)throw new Error("bad regexp-value '"+e+"', parse error: "+A);return console.warn("bad regexp-value '"+e+"', parse error: "+A),null}},n}();function T(n,e){var r=n.getType(),d=e.getType();if(r!==d)return r-d;switch(r){case 1:return n.cmp(e);case 2:return n.cmp(e);case 3:return n.cmp(e);case 4:return n.cmp(e);case 6:return n.cmp(e);case 7:return n.cmp(e);case 5:return n.cmp(e);default:throw new Error("Unknown ContextKeyExpr!")}}var h=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 1},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return v.create(this.key)},n}(),V=function(){function n(e,r){this.key=e,this.value=r}return n.create=function(e,r){return typeof r=="boolean"?r?h.create(e):v.create(e):new n(e,r)},n.prototype.getType=function(){return 3},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return U.create(this.key,this.value)},n}(),U=function(){function n(e,r){this.key=e,this.value=r}return n.create=function(e,r){return typeof r=="boolean"?r?v.create(e):h.create(e):new n(e,r)},n.prototype.getType=function(){return 4},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return V.create(this.key,this.value)},n}(),v=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 2},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return h.create(this.key)},n}(),b=function(){function n(e,r){this.key=e,this.regexp=r}return n.create=function(e,r){return new n(e,r)},n.prototype.getType=function(){return 6},n.prototype.cmp=function(e){if(this.keye.key)return 1;var r=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return rd?1:0},n.prototype.equals=function(e){if(e instanceof n){var r=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return this.key===e.key&&r===d}return!1},n.prototype.evaluate=function(e){var r=e.getValue(this.key);return this.regexp?this.regexp.test(r):!1},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return s.create(this)},n}(),s=function(){function n(e){this._actual=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 7},n.prototype.cmp=function(e){return this._actual.cmp(e._actual)},n.prototype.equals=function(e){return e instanceof n?this._actual.equals(e._actual):!1},n.prototype.evaluate=function(e){return!this._actual.evaluate(e)},n.prototype.keys=function(){return this._actual.keys()},n.prototype.negate=function(){return this._actual},n}(),l=function(){function n(e){this.expr=e}return n.create=function(e){var r=n._normalizeArr(e);return r.length===0?void 0:r.length===1?r[0]:new n(r)},n.prototype.getType=function(){return 5},n.prototype.cmp=function(e){if(this.expr.lengthe.expr.length)return 1;for(var r=0,d=this.expr.length;r1;){for(var O=e.shift(),A=e.shift(),K=[],C=0,y=M(O);C0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(i.prototype,"event",{get:function(){var a=this;return this._event||(this._event=function(f,n,e){a._listeners||(a._listeners=new k.a);var r=a._listeners.isEmpty();r&&a._options&&a._options.onFirstListenerAdd&&a._options.onFirstListenerAdd(a);var d=a._listeners.push(n?[f,n]:f);r&&a._options&&a._options.onFirstListenerDidAdd&&a._options.onFirstListenerDidAdd(a),a._options&&a._options.onListenerDidAdd&&a._options.onListenerDidAdd(a,f,n);var b;a._leakageMon&&(b=a._leakageMon.check(a._listeners.size));var M;return M={dispose:function(){if(b&&b(),M.dispose=i._noop,!a._disposed&&(d(),a._options&&a._options.onLastListenerRemove)){var O=a._listeners&&!a._listeners.isEmpty();O||a._options.onLastListenerRemove(a)}}},e instanceof z.b?e.add(M):Array.isArray(e)&&e.push(M),M}),this._event},enumerable:!0,configurable:!0}),i.prototype.fire=function(a){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.a);for(var f=this._listeners.iterator(),n=f.next();!n.done;n=f.next())this._deliveryQueue.push([n.value,a]);for(;this._deliveryQueue.size>0;){var e=this._deliveryQueue.shift(),r=e[0],d=e[1];try{typeof r=="function"?r.call(void 0,d):r[0].call(r[1],d)}catch(b){Object(w.e)(b)}}}},i.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},i._noop=function(){},i}(),E=function(i){T(a,i);function a(f){var n=i.call(this,f)||this;return n._isPaused=0,n._eventQueue=new k.a,n._mergeFn=f&&f.merge,n}return a.prototype.pause=function(){this._isPaused++},a.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var f=this._eventQueue.toArray();this._eventQueue.clear(),i.prototype.fire.call(this,this._mergeFn(f))}else for(;!this._isPaused&&this._eventQueue.size!==0;)i.prototype.fire.call(this,this._eventQueue.shift())},a.prototype.fire=function(f){this._listeners&&(this._isPaused!==0?this._eventQueue.push(f):i.prototype.fire.call(this,f))},a}(v),s=function(){function i(){var a=this;this.hasListeners=!1,this.events=[],this.emitter=new v({onFirstListenerAdd:function(){return a.onFirstListenerAdd()},onLastListenerRemove:function(){return a.onLastListenerRemove()}})}return Object.defineProperty(i.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),i.prototype.add=function(a){var f=this,n={event:a,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var e=function(){f.hasListeners&&f.unhook(n);var r=f.events.indexOf(n);f.events.splice(r,1)};return Object(z.h)(Object(P.a)(e))},i.prototype.onFirstListenerAdd=function(){var a=this;this.hasListeners=!0,this.events.forEach(function(f){return a.hook(f)})},i.prototype.onLastListenerRemove=function(){var a=this;this.hasListeners=!1,this.events.forEach(function(f){return a.unhook(f)})},i.prototype.hook=function(a){var f=this;a.listener=a.event(function(n){return f.emitter.fire(n)})},i.prototype.unhook=function(a){a.listener&&a.listener.dispose(),a.listener=null},i.prototype.dispose=function(){this.emitter.dispose()},i}(),l=function(){function i(){this.buffers=[]}return i.prototype.wrapEvent=function(a){var f=this;return function(n,e,r){return a(function(d){var b=f.buffers[f.buffers.length-1];b?b.push(function(){return n.call(e,d)}):n.call(e,d)},void 0,r)}},i.prototype.bufferEvents=function(a){var f=[];this.buffers.push(f);var n=a();return this.buffers.pop(),f.forEach(function(e){return e()}),n},i}(),u=function(){function i(){var a=this;this.listening=!1,this.inputEvent=h.None,this.inputEventListener=z.a.None,this.emitter=new v({onFirstListenerDidAdd:function(){a.listening=!0,a.inputEventListener=a.inputEvent(a.emitter.fire,a.emitter)},onLastListenerRemove:function(){a.listening=!1,a.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(i.prototype,"input",{set:function(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},i}()},N0LK:function(Ce,x,t){"use strict";t.d(x,"x",function(){return w}),t.d(x,"F",function(){return P}),t.d(x,"r",function(){return k}),t.d(x,"o",function(){return T}),t.d(x,"p",function(){return h}),t.d(x,"Q",function(){return V}),t.d(x,"K",function(){return v}),t.d(x,"k",function(){return E}),t.d(x,"N",function(){return s}),t.d(x,"m",function(){return l}),t.d(x,"l",function(){return u}),t.d(x,"I",function(){return i}),t.d(x,"H",function(){return a}),t.d(x,"q",function(){return f}),t.d(x,"t",function(){return n}),t.d(x,"D",function(){return e}),t.d(x,"e",function(){return r}),t.d(x,"f",function(){return d}),t.d(x,"B",function(){return b}),t.d(x,"C",function(){return M}),t.d(x,"n",function(){return A}),t.d(x,"O",function(){return C}),t.d(x,"c",function(){return y}),t.d(x,"d",function(){return o}),t.d(x,"z",function(){return D}),t.d(x,"A",function(){return N}),t.d(x,"u",function(){return L}),t.d(x,"E",function(){return c}),t.d(x,"G",function(){return j}),t.d(x,"i",function(){return R}),t.d(x,"g",function(){return W}),t.d(x,"v",function(){return G}),t.d(x,"h",function(){return J}),t.d(x,"y",function(){return ne}),t.d(x,"w",function(){return le}),t.d(x,"a",function(){return xe}),t.d(x,"P",function(){return ae}),t.d(x,"L",function(){return ue}),t.d(x,"J",function(){return Ne}),t.d(x,"j",function(){return be}),t.d(x,"M",function(){return Pe}),t.d(x,"s",function(){return pe}),t.d(x,"b",function(){return Oe});function w(p){return!p||typeof p!="string"?!0:p.trim().length===0}function P(p,S,H){H===void 0&&(H="0");for(var Y=""+p,ie=[Y],fe=Y.length;fe=S.length?Y:S[fe]})}function T(p){return p.replace(/[<>&]/g,function(S){switch(S){case"<":return"<";case">":return">";case"&":return"&";default:return S}})}function h(p){return p.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function V(p,S){S===void 0&&(S=" ");var H=U(p,S);return v(H,S)}function U(p,S){if(!p||!S)return p;var H=S.length;if(H===0||p.length===0)return p;for(var Y=0;p.indexOf(S,Y)===Y;)Y=Y+H;return p.substring(Y)}function v(p,S){if(!p||!S)return p;var H=S.length,Y=p.length;if(H===0||Y===0)return p;for(var ie=Y,fe=-1;!(fe=p.lastIndexOf(S,ie-1),fe===-1||fe+H!==ie);){if(fe===0)return"";ie=fe}return p.substring(0,ie)}function E(p){return p.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function s(p,S){if(p.length0?p.indexOf(S,H)===H:H===0?p===S:!1}function u(p,S,H){if(H===void 0&&(H={}),!p)throw new Error("Cannot create regex from empty string");S||(p=h(p)),H.wholeWord&&(/\B/.test(p.charAt(0))||(p="\\b"+p),/\B/.test(p.charAt(p.length-1))||(p=p+"\\b"));var Y="";return H.global&&(Y+="g"),H.matchCase||(Y+="i"),H.multiline&&(Y+="m"),H.unicode&&(Y+="u"),new RegExp(p,Y)}function i(p){if(p.source==="^"||p.source==="^$"||p.source==="$"||p.source==="^\\s*$")return!1;var S=p.exec("");return!!(S&&p.lastIndex===0)}function a(p){return(p.global?"g":"")+(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")}function f(p){for(var S=0,H=p.length;S=0;H--){var Y=p.charCodeAt(H);if(Y!==32&&Y!==9)return H}return-1}function r(p,S){return pS?1:0}function d(p,S){for(var H=Math.min(p.length,S.length),Y=0;YS.length?1:0}function b(p){return p>=97&&p<=122}function M(p){return p>=65&&p<=90}function O(p){return b(p)||M(p)}function A(p,S){return p.length===S.length&&K(p,S)}function K(p,S,H){H===void 0&&(H=p.length);for(var Y=0;Yp.length?!1:K(p,S,H)}function y(p,S){var H,Y=Math.min(p.length,S.length);for(H=0;H1){var Y=p.charCodeAt(S-2);if(D(Y))return(Y-55296<<10)+(H-56320)+65536}return H}function c(p,S){var H=ge.getInstance(),Y=S,ie=p.length,fe=L(p,ie,S);S+=fe>=65536?2:1;for(var he=H.getGraphemeBreakType(fe);S=65536?2:1,he=Qe}return S-Y}function j(p,S){var H=ge.getInstance(),Y=S,ie=m(p,S);S-=ie>=65536?2:1;for(var fe=H.getGraphemeBreakType(ie);S>0;){var he=m(p,S),je=H.getGraphemeBreakType(he);if(Oe(je,fe))break;S-=he>=65536?2:1,fe=je}return Y-S}var g=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function R(p){return g.test(p)}var B=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(p){return B.test(p)}var F=/^[\t\n\r\x20-\x7E]*$/;function G(p){return F.test(p)}function J(p){for(var S=0,H=p.length;S=11904&&p<=55215||p>=63744&&p<=64255||p>=65281&&p<=65374}function le(p){return p>=127462&&p<=127487||p>=9728&&p<=10175||p>=127744&&p<=128591||p>=128640&&p<=128764||p>=128992&&p<=129003||p>=129280&&p<=129535||p>=129648&&p<=129651||p>=129656&&p<=129666||p>=129680&&p<=129685}var xe=String.fromCharCode(65279);function ae(p){return!!(p&&p.length>0&&p.charCodeAt(0)===65279)}function ue(p){return btoa(encodeURIComponent(p))}function Ne(p,S){for(var H="",Y=0;YH[3*ie+1])ie=2*ie+1;else return H[3*ie+2];return 0},p._INSTANCE=null,p}();function ce(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NvD2:function(Ce,x,t){"use strict";t.d(x,"a",function(){return h});var w=t("Kwbf");function P(V,U){var v=new Set;return V.forEach(function(E){U.has(E)||v.add(E)}),v}function z(V){var U=V||{},v=U.disabled,E=U.disableCheckbox,s=U.checkable;return!!(v||E)||s===!1}function k(V,U,v,E){for(var s=new Set(V),l=new Set,u=0;u<=v;u+=1){var i=U.get(u)||new Set;i.forEach(function(e){var r=e.key,d=e.node,b=e.children,M=b===void 0?[]:b;s.has(r)&&!E(d)&&M.filter(function(O){return!E(O.node)}).forEach(function(O){s.add(O.key)})})}for(var a=new Set,f=v;f>=0;f-=1){var n=U.get(f)||new Set;n.forEach(function(e){var r=e.parent,d=e.node;if(E(d)||!e.parent||a.has(e.parent.key))return;if(E(e.parent.node)){a.add(r.key);return}var b=!0,M=!1;(r.children||[]).filter(function(O){return!E(O.node)}).forEach(function(O){var A=O.key,K=s.has(A);b&&!K&&(b=!1),!M&&(K||l.has(A))&&(M=!0)}),b&&s.add(r.key),M&&l.add(r.key),a.add(r.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(P(l,s))}}function T(V,U,v,E,s){for(var l=new Set(V),u=new Set(U),i=0;i<=E;i+=1){var a=v.get(i)||new Set;a.forEach(function(r){var d=r.key,b=r.node,M=r.children,O=M===void 0?[]:M;!l.has(d)&&!u.has(d)&&!s(b)&&O.filter(function(A){return!s(A.node)}).forEach(function(A){l.delete(A.key)})})}u=new Set;for(var f=new Set,n=E;n>=0;n-=1){var e=v.get(n)||new Set;e.forEach(function(r){var d=r.parent,b=r.node;if(s(b)||!r.parent||f.has(r.parent.key))return;if(s(r.parent.node)){f.add(d.key);return}var M=!0,O=!1;(d.children||[]).filter(function(A){return!s(A.node)}).forEach(function(A){var K=A.key,C=l.has(K);M&&!C&&(M=!1),!O&&(C||u.has(K))&&(O=!0)}),M||l.delete(d.key),O&&u.add(d.key),f.add(d.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(P(u,l))}}function h(V,U,v,E){var s=[],l;E?l=E:l=z;var u=new Set(V.filter(function(n){var e=!!v[n];return e||s.push(n),e})),i=new Map,a=0;Object.keys(v).forEach(function(n){var e=v[n],r=e.level,d=i.get(r);d||(d=new Set,i.set(r,d)),d.add(e),a=Math.max(a,r)}),Object(w.a)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map(function(n){return"'".concat(n,"'")}).join(", ")));var f;return U===!0?f=k(u,i,a,l):f=T(u,U.halfCheckedKeys,i,a,l),f}},OZM5:function(Ce,x,t){"use strict";t.d(x,"b",function(){return E}),t.d(x,"a",function(){return s}),t.d(x,"k",function(){return l}),t.d(x,"h",function(){return u}),t.d(x,"i",function(){return i}),t.d(x,"g",function(){return a}),t.d(x,"c",function(){return f}),t.d(x,"d",function(){return n}),t.d(x,"j",function(){return d}),t.d(x,"e",function(){return b}),t.d(x,"f",function(){return M});var w=t("KQm4"),P=t("U8pU"),z=t("Ff2n"),k=t("q1tI"),T=t.n(k),h=t("Kwbf"),V=t("WaYH"),U=.25,v=2;function E(O,A){var K=O.slice(),C=K.indexOf(A);return C>=0&&K.splice(C,1),K}function s(O,A){var K=O.slice();return K.indexOf(A)===-1&&K.push(A),K}function l(O){return O.split("-")}function u(O,A){return"".concat(O,"-").concat(A)}function i(O){return O&&O.type&&O.type.isTreeNode}function a(O,A){var K=[O],C=A[O];function y(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(D){var N=D.key,L=D.children;K.push(N),y(L)})}return y(C.children),K}function f(O,A){var K=O.clientY,C=A.selectHandle.getBoundingClientRect(),y=C.top,o=C.bottom,D=C.height,N=Math.max(D*U,v);return K<=y+N?-1:K>=o-N?1:0}function n(O,A){if(!O)return;var K=A.multiple;return K?O.slice():O.length?[O[0]]:O}var e=function(A){return A};function r(O,A){if(!O)return[];var K=A||{},C=K.processProps,y=C===void 0?e:C,o=Array.isArray(O)?O:[O];return o.map(function(D){var N=D.children,L=Object(z.a)(D,["children"]),m=r(N,A);return T.a.createElement(V.a,Object.assign({},y(L)),m)})}function d(O){if(!O)return null;var A;if(Array.isArray(O))A={checkedKeys:O,halfCheckedKeys:void 0};else if(Object(P.a)(O)==="object")A={checkedKeys:O.checked||void 0,halfCheckedKeys:O.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function b(O,A){var K=new Set;function C(y){if(K.has(y))return;var o=A[y];if(!o)return;K.add(y);var D=o.parent,N=o.node;if(N.disabled)return;D&&C(D.key)}return(O||[]).forEach(function(y){C(y)}),Object(w.a)(K)}function M(O){var A={};return Object.keys(O).forEach(function(K){(K.startsWith("data-")||K.startsWith("aria-"))&&(A[K]=O[K])}),A}},QDVR:function(Ce,x,t){"use strict";t.d(x,"e",function(){return P}),t.d(x,"d",function(){return z}),t.d(x,"c",function(){return V}),t.d(x,"b",function(){return U}),t.d(x,"a",function(){return E});var w=function(){var s=function(l,u){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var f in a)a.hasOwnProperty(f)&&(i[f]=a[f])},s(l,u)};return function(l,u){s(l,u);function i(){this.constructor=l}l.prototype=u===null?Object.create(u):(i.prototype=u.prototype,new i)}}();function P(s){var l=[];return s.forEach(function(u){return l.push(u)}),l}function z(s){var l=[];return s.forEach(function(u,i){return l.push(i)}),l}var k=function(){function s(){this._value="",this._pos=0}return s.prototype.reset=function(l){return this._value=l,this._pos=0,this},s.prototype.next=function(){return this._pos+=1,this},s.prototype.hasNext=function(){return this._pos0)a.left||(a.left=new h,a.left.segment=i.value()),a=a.left;else if(f<0)a.right||(a.right=new h,a.right.segment=i.value()),a=a.right;else if(i.hasNext())i.next(),a.mid||(a.mid=new h,a.mid.segment=i.value()),a=a.mid;else break}var n=a.value;return a.value=u,a.key=l,n},s.prototype.get=function(l){for(var u=this._iter.reset(l),i=this._root;i;){var a=u.cmp(i.segment);if(a>0)i=i.left;else if(a<0)i=i.right;else if(u.hasNext())u.next(),i=i.mid;else break}return i?i.value:void 0},s.prototype.findSubstr=function(l){for(var u=this._iter.reset(l),i=this._root,a=void 0;i;){var f=u.cmp(i.segment);if(f>0)i=i.left;else if(f<0)i=i.right;else if(u.hasNext())u.next(),a=i.value||a,i=i.mid;else break}return i&&i.value||a},s.prototype.forEach=function(l){this._forEach(this._root,l)},s.prototype._forEach=function(l,u){l&&(this._forEach(l.left,u),l.value&&u(l.value,l.key),this._forEach(l.mid,u),this._forEach(l.right,u))},s}(),U=function(){function s(){this.map=new Map,this.ignoreCase=!1}return s.prototype.set=function(l,u){this.map.set(this.toKey(l),u)},s.prototype.get=function(l){return this.map.get(this.toKey(l))},s.prototype.toKey=function(l){var u=l.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},s}(),v=function(){function s(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return s.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(s.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),s.prototype.get=function(l,u){u===void 0&&(u=0);var i=this._map.get(l);return i?(u!==0&&this.touch(i,u),i.value):void 0},s.prototype.set=function(l,u,i){i===void 0&&(i=0);var a=this._map.get(l);if(a)a.value=u,i!==0&&this.touch(a,i);else{a={key:l,value:u,next:void 0,previous:void 0};switch(i){case 0:this.addItemLast(a);break;case 1:this.addItemFirst(a);break;case 2:this.addItemLast(a);break;default:this.addItemLast(a);break}this._map.set(l,a),this._size++}},s.prototype.delete=function(l){return!!this.remove(l)},s.prototype.remove=function(l){var u=this._map.get(l);return u?(this._map.delete(l),this.removeItem(u),this._size--,u.value):void 0},s.prototype.forEach=function(l,u){for(var i=this._head;i;)u?l.bind(u)(i.value,i.key,this):l(i.value,i.key,this),i=i.next},s.prototype.trimOld=function(l){if(l>=this.size)return;if(l===0){this.clear();return}for(var u=this._head,i=this.size;u&&i>l;)this._map.delete(u.key),u=u.next,i--;this._head=u,this._size=i,u&&(u.previous=void 0)},s.prototype.addItemFirst=function(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l},s.prototype.addItemLast=function(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l},s.prototype.removeItem=function(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{var u=l.next,i=l.previous;if(!u||!i)throw new Error("Invalid list");u.previous=i,i.next=u}l.next=void 0,l.previous=void 0},s.prototype.touch=function(l,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(l===this._head)return;var i=l.next,a=l.previous;l===this._tail?(a.next=void 0,this._tail=a):(i.previous=a,a.next=i),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l}else if(u===2){if(l===this._tail)return;var i=l.next,a=l.previous;l===this._head?(i.previous=void 0,this._head=i):(i.previous=a,a.next=i),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l}},s.prototype.toJSON=function(){var l=[];return this.forEach(function(u,i){l.push([i,u])}),l},s}(),E=function(s){w(l,s);function l(u,i){i===void 0&&(i=1);var a=s.call(this)||this;return a._limit=u,a._ratio=Math.min(Math.max(0,i),1),a}return l.prototype.get=function(u){return s.prototype.get.call(this,u,2)},l.prototype.peek=function(u){return s.prototype.get.call(this,u,0)},l.prototype.set=function(u,i){s.prototype.set.call(this,u,i,2),this.checkTrim()},l.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},l}(v)},"SA+Z":function(Ce,x,t){var w=t("wTVA"),P=t("EbDI"),z=t("ZhPi"),k=t("wkBT");function T(h){return w(h)||P(h)||z(h)||k()}Ce.exports=T,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},T8No:function(Ce,x,t){"use strict";t.d(x,"a",function(){return k}),t.d(x,"b",function(){return u}),t.d(x,"d",function(){return i}),t.d(x,"c",function(){return a}),t.d(x,"e",function(){return f});var w=t("N0LK"),P=t("Cg/j"),z=function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var M in b)b.hasOwnProperty(M)&&(d[M]=b[M])},n(e,r)};return function(e,r){n(e,r);function d(){this.constructor=e}e.prototype=r===null?Object.create(r):(d.prototype=r.prototype,new d)}}(),k=function(){function n(){}return n.has=function(e){return h.create(e)},n.equals=function(e,r){return V.create(e,r)},n.regex=function(e,r){return E.create(e,r)},n.not=function(e){return v.create(e)},n.and=function(){for(var e=[],r=0;r=0){var d=e.split("!=");return U.create(d[0].trim(),this._deserializeValue(d[1],r))}if(e.indexOf("==")>=0){var d=e.split("==");return V.create(d[0].trim(),this._deserializeValue(d[1],r))}if(e.indexOf("=~")>=0){var d=e.split("=~");return E.create(d[0].trim(),this._deserializeRegexValue(d[1],r))}return/^\!\s*/.test(e)?v.create(e.substr(1).trim()):h.create(e)},n._deserializeValue=function(e,r){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;var d=/^'([^']*)'$/.exec(e);return d?d[1].trim():e},n._deserializeRegexValue=function(e,r){if(Object(w.x)(e)){if(r)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var d=e.indexOf("/"),b=e.lastIndexOf("/");if(d===b||d<0){if(r)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var M=e.slice(d+1,b),O=e[b+1]==="i"?"i":"";try{return new RegExp(M,O)}catch(A){if(r)throw new Error("bad regexp-value '"+e+"', parse error: "+A);return console.warn("bad regexp-value '"+e+"', parse error: "+A),null}},n}();function T(n,e){var r=n.getType(),d=e.getType();if(r!==d)return r-d;switch(r){case 1:return n.cmp(e);case 2:return n.cmp(e);case 3:return n.cmp(e);case 4:return n.cmp(e);case 6:return n.cmp(e);case 7:return n.cmp(e);case 5:return n.cmp(e);default:throw new Error("Unknown ContextKeyExpr!")}}var h=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 1},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return v.create(this.key)},n}(),V=function(){function n(e,r){this.key=e,this.value=r}return n.create=function(e,r){return typeof r=="boolean"?r?h.create(e):v.create(e):new n(e,r)},n.prototype.getType=function(){return 3},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return U.create(this.key,this.value)},n}(),U=function(){function n(e,r){this.key=e,this.value=r}return n.create=function(e,r){return typeof r=="boolean"?r?v.create(e):h.create(e):new n(e,r)},n.prototype.getType=function(){return 4},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return V.create(this.key,this.value)},n}(),v=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 2},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return h.create(this.key)},n}(),E=function(){function n(e,r){this.key=e,this.regexp=r}return n.create=function(e,r){return new n(e,r)},n.prototype.getType=function(){return 6},n.prototype.cmp=function(e){if(this.keye.key)return 1;var r=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return rd?1:0},n.prototype.equals=function(e){if(e instanceof n){var r=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return this.key===e.key&&r===d}return!1},n.prototype.evaluate=function(e){var r=e.getValue(this.key);return this.regexp?this.regexp.test(r):!1},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return s.create(this)},n}(),s=function(){function n(e){this._actual=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 7},n.prototype.cmp=function(e){return this._actual.cmp(e._actual)},n.prototype.equals=function(e){return e instanceof n?this._actual.equals(e._actual):!1},n.prototype.evaluate=function(e){return!this._actual.evaluate(e)},n.prototype.keys=function(){return this._actual.keys()},n.prototype.negate=function(){return this._actual},n}(),l=function(){function n(e){this.expr=e}return n.create=function(e){var r=n._normalizeArr(e);return r.length===0?void 0:r.length===1?r[0]:new n(r)},n.prototype.getType=function(){return 5},n.prototype.cmp=function(e){if(this.expr.lengthe.expr.length)return 1;for(var r=0,d=this.expr.length;r1;){for(var O=e.shift(),A=e.shift(),K=[],C=0,y=M(O);C0&&arguments[0]!==void 0?arguments[0]:[],D=o;if(Array.isArray(o)){for(var N=0;N0||et.target.offsetWidth>0)&&X.current.instance.layout()}}catch(Ze){ve.e(Ze)}finally{ve.f()}}),se.observe($.current)),se}function be(){T.b.warn({content:decodeURIComponent(f),key:"monaco-editor-tip"})}var Le=function(){var re=X.current.instance;if(c!=null&&re&&Z){var ve=re.getModel();ve&&c!==ve.getValue()&&(M=!0,ve.setValue(c),re.layout(),M=!1)}};Object(s.useEffect)(function(){try{var se,re=X.current.instance;oe.current&&clearTimeout(oe.current),oe.current=setTimeout(function(){Le()},500),re==null||((se=re.updateOptions)===null||se===void 0)||se.call(re,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(c.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ve){debugger}},[c,Z,X.current]),Object(s.useEffect)(function(){try{if(Qe&&X.current&&X.current.instance){var se=X.current.instance;se.changeViewZones(function(ve){var Re=document.createElement("div");Re.style.padding="10px 20px",Re.style.width="calc(100% - 20px)",Re.className="my-error-line-wrp",Re.innerHTML=lt,ve.addZone({afterLineNumber:Qe||11,heightInLines:3,domNode:Re})});var re={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};se.addOverlayWidget(re),se.revealPositionInCenter({lineNumber:20,column:1})}}catch(ve){debugger}},[Qe,X.current,Z]),Object(s.useEffect)(function(){var se;if((se=X.current)!==null&&se!==void 0&&se.instance&&Z&&pt){var re=X.current.instance,ve=re.getModel();if(!ve)return;var Re=function(){var Fe=[],Se=[],Ke=ve.getAllDecorations(),Ve=Object(h.a)(Ke),Xe;try{for(Ve.s();!(Xe=Ve.n()).done;){var Ie=Xe.value;if(Ie.options.className==="highlighted-line"){var ke;Fe.push(Ie==null||((ke=Ie.range)===null||ke===void 0)?void 0:ke.startLineNumber),Se.push(Ie==null?void 0:Ie.id)}}}catch(_e){Ve.e(_e)}finally{Ve.f()}ve.deltaDecorations(Se,[]);var at=ve.getLineCount();!!nt&&nt<=at&&(re.deltaDecorations([],[{range:new K.Range(nt,1,nt,ve.getLineMaxColumn(nt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),re.revealLineInCenter(nt))};Re();var et=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Se=[],Ke=[],Ve=ve.getAllDecorations(),Xe=Object(h.a)(Ve),Ie;try{for(Xe.s();!(Ie=Xe.n()).done;){var ke=Ie.value;if(ke.options.linesDecorationsClassName==="breakpoints"){var at;Se.push(ke==null||((at=ke.range)===null||at===void 0)?void 0:at.startLineNumber),Ke.push(ke==null?void 0:ke.id)}}}catch(_e){Xe.e(_e)}finally{Xe.f()}if(Fe)return{lines:Se,ids:Ke};Y(Se)},Ze=function(){var Ge=Object(z.a)(b.a.mark(function Fe(Se){var Ke;return b.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Ke={range:new K.Range(Se,1,Se,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Xe.next=3,ve.deltaDecorations([],[Ke]);case 3:et();case 4:case"end":return Xe.stop()}},Fe)}));return function(Se){return Ge.apply(this,arguments)}}(),ft=function(){var Ge=Object(z.a)(b.a.mark(function Fe(Se){var Ke,Ve,Xe,Ie,ke;return b.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:Ke=[],Ve=re.getLineDecorations(Se),Xe=Object(h.a)(Ve);try{for(Xe.s();!(Ie=Xe.n()).done;)ke=Ie.value,ke.options.linesDecorationsClassName==="breakpoints"&&Ke.push(ke.id)}catch(gt){Xe.e(gt)}finally{Xe.f()}return _e.next=6,ve.deltaDecorations(Ke,[]);case 6:et();case 7:case"end":return _e.stop()}},Fe)}));return function(Se){return Ge.apply(this,arguments)}}(),ht=function(Fe){var Se=re.getLineDecorations(Fe),Ke=Object(h.a)(Se),Ve;try{for(Ke.s();!(Ve=Ke.n()).done;){var Xe=Ve.value;if(Xe.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Ie){Ke.e(Ie)}finally{Ke.f()}return!1};if(!Object(e.isEqual)(fe,et(!0).lines)){ve.deltaDecorations(et(!0).ids,[]);var vt=fe.map(function(Ge){return{range:new K.Range(Ge,1,Ge,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ve.deltaDecorations([],vt)}var bt=re.onDidChangeModelContent(function(Ge){var Fe=re.getPosition();if(Fe){var Se=Fe.lineNumber;ve.getLineContent(Se).trim()===""?ft(Se):ht(Se)&&(ft(Se),Ze(Se))}}),Ct=re.onMouseDown(function(Ge){var Fe,Se,Ke;if(Ge.target.detail&&(Fe=Ge.target)!==null&&Fe!==void 0&&(Se=Fe.element)!==null&&Se!==void 0&&(Ke=Se.className)!==null&&Ke!==void 0&&Ke.includes("line-numbers")){var Ve=Ge.target.position.lineNumber;if(ve.getLineContent(Ve).trim()==="")return;ht(Ve)?ft(Ve):Ze(Ve)}}),Rt=function(Fe){var Se={range:new K.Range(Fe,1,Fe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ee.current=re.deltaDecorations(ee.current,[Se])},dt=function(){ee.current=re.deltaDecorations(ee.current,[])},Dt=re.onMouseMove(function(Ge){var Fe,Se,Ke;if(dt(),Ge.target.detail&&(Fe=Ge.target)!==null&&Fe!==void 0&&(Se=Fe.element)!==null&&Se!==void 0&&(Ke=Se.className)!==null&&Ke!==void 0&&Ke.includes("line-numbers")){var Ve=Ge.target.position.lineNumber;if(ve.getLineContent(Ve).trim()==="")return;Rt(Ve)}}),xt=re.onMouseLeave(function(){dt()});return function(){bt.dispose(),Ct.dispose(),Dt.dispose(),xt.dispose()}}},[X.current,Z,fe,nt,pt]);function We(){var se=X.current.instance;if(se){var re=se.getSelection(),ve=X.current.pastePos||{},Re=new K.Range(ve.startLineNumber||re.endLineNumber,ve.startColumn||re.endColumn,ve.endLineNumber||re.endLineNumber,ve.endColumn||re.endColumn);setTimeout(function(){se.executeEdits("",[{range:Re,text:""}])},300)}}function Te(se){(window.navigator.platform.match("Mac")?se.metaKey:se.ctrlKey)&&se.keyCode==83&&(se.preventDefault(),ae())}var Ae=function(){if(Ne&&X.current.instance){var re=X.current.instance.getContentHeight();He(re0||ge.target.offsetWidth>0)&&Ne.layout()}}catch(ce){pe.e(ce)}finally{pe.f()}}),Ee.observe(W.current)),Ee}Object(s.useEffect)(function(){return W.current&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(Ne){K=Ne;var Ee=K.editor.createDiffEditor(W.current,Object(w.a)(Object(w.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},B),{},{wordWrap:!0}));ne(Ee);var Pe=le(Ee);return function(){Ee.dispose();var pe=Ee.getModel();pe&&pe.dispose(),Pe.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(s.useEffect)(function(){J&&J.setModel({original:K.editor.createModel(c,g),modified:K.editor.createModel(j,g)})},[c,j,g,J]);var xe=d(N),ae=d(m),ue={width:xe,height:ae};return l.a.createElement("div",{className:"my-diff-editor",ref:W,style:ue})}},biw7:function(Ce,x,t){"use strict";var w=t("q1tI"),P=t.n(w),z=w.createContext(null);x.a=z},dmUQ:function(Ce,x,t){"use strict";var w=t("Ff2n"),P=t("rePB"),z=t("1OyB"),k=t("vuIU"),T=t("Ji7U"),h=t("md7G"),V=t("foSv"),U=t("q1tI"),v=t.n(U),b=t("TSYQ"),s=t.n(b),l=t("4IlW");function u(o,D){var N=Object.keys(o);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(o);D&&(L=L.filter(function(m){return Object.getOwnPropertyDescriptor(o,m).enumerable})),N.push.apply(N,L)}return N}function i(o){for(var D=1;D1?J-1:0),le=1;le1?B-1:0),F=1;F=0)return parseInt(R.slice(R.indexOf("e-")+2),10);var B=0;return R.indexOf(".")>=0&&(B=R.length-R.indexOf(".")-1),B},m.getInputDisplayValue=function(g){var R=g||m.state,B=R.focused,W=R.inputValue,F=R.value,G;B?G=W:G=m.toPrecisionAsStep(F),G==null&&(G="");var J=m.formatWrapper(G);return O(m.props.decimalSeparator)&&(J=J.toString().replace(".",m.props.decimalSeparator)),J},m.recordCursorPosition=function(){try{m.cursorStart=m.input.selectionStart,m.cursorEnd=m.input.selectionEnd,m.currentValue=m.input.value,m.cursorBefore=m.input.value.substring(0,m.cursorStart),m.cursorAfter=m.input.value.substring(m.cursorEnd)}catch(g){}},m.restoreByAfter=function(g){if(g===void 0)return!1;var R=m.input.value,B=R.lastIndexOf(g);if(B===-1)return!1;var W=m.cursorBefore.length;return m.lastKeyCode===l.a.DELETE&&m.cursorBefore.charAt(W-1)===g[0]?(m.fixCaret(W,W),!0):B+g.length===R.length?(m.fixCaret(B,B),!0):!1},m.partRestoreByAfter=function(g){return g===void 0?!1:Array.prototype.some.call(g,function(R,B){var W=g.substring(B);return m.restoreByAfter(W)})},m.isNotCompleteNumber=function(g){return isNaN(g)||g===""||g===null||g&&g.toString().indexOf(".")===g.toString().length-1},m.stop=function(){m.autoStepTimer&&clearTimeout(m.autoStepTimer)},m.down=function(g,R,B){m.pressingUpOrDown=!0,m.step("down",g,R,B)},m.up=function(g,R,B){m.pressingUpOrDown=!0,m.step("up",g,R,B)},m.saveInput=function(g){m.input=g};var c=L.value;c===void 0&&(c=L.defaultValue),m.state={focused:L.autoFocus};var j=m.getValidValue(m.toNumber(c));return m.state=i(i({},m.state),{},{inputValue:m.toPrecisionAsStep(j),value:j}),m}return Object(k.a)(N,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(m){var c=this.props,j=c.value,g=c.onChange,R=c.max,B=c.min,W=this.state.focused;if(m){if(!A(m.value,j)||!A(m.max,R)||!A(m.min,B)){var F=W?j:this.getValidValue(j),G;this.pressingUpOrDown?G=F:this.inputting?G=this.rawInput:G=this.toPrecisionAsStep(F),this.setState({value:F,inputValue:G})}var J="value"in this.props?j:this.state.value;"max"in this.props&&m.max!==R&&typeof J=="number"&&J>R&&g&&g(R),"min"in this.props&&m.min!==B&&typeof J=="number"&&J1&&arguments[1]!==void 0?arguments[1]:this.props.min,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,g=parseFloat(m);return isNaN(g)?m:(gj&&(g=j),g)}},{key:"setValue",value:function(m,c){var j=this.props.precision,g=this.isNotCompleteNumber(parseFloat(m))?null:parseFloat(m),R=this.state.value,B=R===void 0?null:R,W=this.state.inputValue,F=W===void 0?null:W,G=typeof g=="number"?g.toFixed(j):"".concat(g),J=g!==B||G!=="".concat(F);return"value"in this.props?(F=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:F},c)):this.setState({value:g,inputValue:this.toPrecisionAsStep(m)},c),J&&this.props.onChange(g),g}},{key:"getMaxPrecision",value:function(m){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.props,g=j.precision,R=j.step;if(O(g))return g;var B=this.getPrecision(c),W=this.getPrecision(R),F=this.getPrecision(m);return m?Math.max(F,B+W):B+W}},{key:"getPrecisionFactor",value:function(m){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.getMaxPrecision(m,c);return Math.pow(10,j)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(m){return this.props.formatter?this.props.formatter(m):m}},{key:"toPrecisionAsStep",value:function(m){if(this.isNotCompleteNumber(m)||m==="")return m;var c=Math.abs(this.getMaxPrecision(m));return isNaN(c)?m.toString():Number(m).toFixed(c)}},{key:"toNumber",value:function(m){var c=this.props.precision,j=this.state.focused,g=m&&m.length>16&&j;return this.isNotCompleteNumber(m)||g?m:O(c)?Math.round(m*Math.pow(10,c))/Math.pow(10,c):Number(m)}},{key:"upStep",value:function(m,c){var j=this.props.step,g=this.getPrecisionFactor(m,c),R=Math.abs(this.getMaxPrecision(m,c)),B=((g*m+g*j*c)/g).toFixed(R);return this.toNumber(B)}},{key:"downStep",value:function(m,c){var j=this.props.step,g=this.getPrecisionFactor(m,c),R=Math.abs(this.getMaxPrecision(m,c)),B=((g*m-g*j*c)/g).toFixed(R);return this.toNumber(B)}},{key:"step",value:function(m,c){var j=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=arguments.length>3?arguments[3]:void 0;this.stop(),c&&(c.persist(),c.preventDefault());var B=this.props;if(B.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var F=this["".concat(m,"Step")](W,g),G=F>B.max||FB.max?F=B.max:F=ne),ee=(ze||ze===0)&&(isNaN(ze)||Number(ze)<=le),Q=oe||g||R,_=ee||g||R,q=s()("".concat(j,"-handler"),"".concat(j,"-handler-up"),Object(P.a)({},"".concat(j,"-handler-up-disabled"),Q)),me=s()("".concat(j,"-handler"),"".concat(j,"-handler-down"),Object(P.a)({},"".concat(j,"-handler-down-disabled"),_)),Z=B?{onTouchStart:Q?n:this.up,onTouchEnd:this.stop}:{onMouseDown:Q?n:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},de=B?{onTouchStart:_?n:this.down,onTouchEnd:this.stop}:{onMouseDown:_?n:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return v.a.createElement("div",{className:I,style:xe,title:ae,onMouseEnter:ue,onMouseLeave:Ne,onMouseOver:Ee,onMouseOut:Pe,onFocus:function(){return null},onBlur:function(){return null}},v.a.createElement("div",{className:"".concat(j,"-handler-wrap")},v.a.createElement("span",Object.assign({unselectable:"on"},Z,{role:"button","aria-label":"Increase Value","aria-disabled":Q,className:q}),F||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner"),onClick:e})),v.a.createElement("span",Object.assign({unselectable:"on"},de,{role:"button","aria-label":"Decrease Value","aria-disabled":_,className:me}),G||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner"),onClick:e}))),v.a.createElement("div",{className:"".concat(j,"-input-wrap")},v.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":le,"aria-valuemax":ne,"aria-valuenow":ze,required:pe,type:ce,placeholder:p,onPaste:Qe,onClick:Oe,onMouseUp:this.onMouseUp,className:"".concat(j,"-input"),tabIndex:ge,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:X?this.onKeyDown:n,onKeyUp:X?this.onKeyUp:n,autoFocus:he,maxLength:fe,readOnly:R,disabled:g,max:ne,min:le,step:ie,name:je,title:ae,id:S,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(te),pattern:Y,inputMode:H,onInput:st},$))))}}]),N}(v.a.Component);K.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:M,min:-M,step:1,style:{},onChange:n,onKeyDown:n,onPressEnter:n,onFocus:n,onBlur:n,parser:r,required:!1,autoComplete:"off"};var C=K,y=x.a=C},fjLI:function(Ce,x,t){"use strict";t.d(x,"e",function(){return b}),t.d(x,"a",function(){return s}),t.d(x,"c",function(){return l}),t.d(x,"d",function(){return i}),t.d(x,"b",function(){return a});var w=t("8HAY"),P=t("Cg/j"),z=t("T8No"),k=t("nnTU"),T=t("MI8n"),h=function(){var f=function(n,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,d){r.__proto__=d}||function(r,d){for(var E in d)d.hasOwnProperty(E)&&(r[E]=d[E])},f(n,e)};return function(n,e){f(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),V=function(f,n,e,r){var d=arguments.length,E=d<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,n,e,r);else for(var O=f.length-1;O>=0;O--)(M=f[O])&&(E=(d<3?M(E):d>3?M(n,e,E):M(n,e))||E);return d>3&&E&&Object.defineProperty(n,e,E),E},U=function(f,n){return function(e,r){n(e,r,f)}},v=function(){for(var f=0,n=0,e=arguments.length;n=0&&(d.splice(E,1),r._onDidChangeMenu.fire(n))}}},f.prototype.getMenuItems=function(n){var e=(this._menuItems.get(n)||[]).slice(0);return n===0&&this._appendImplicitItems(e),e},f.prototype._appendImplicitItems=function(n){for(var e=new Set,r=n.filter(function(K){return b(K)}),d=0,E=r;d=z.length?{done:!0}:{done:!1,value:z[h++]}},e:function(l){throw l},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,v=!1,b;return{s:function(){T=z[Symbol.iterator]()},n:function(){var l=T.next();return U=l.done,l},e:function(l){v=!0,b=l},f:function(){try{!U&&T.return!=null&&T.return()}finally{if(v)throw b}}}}},sR1s:function(Ce,x,t){"use strict";t.d(x,"b",function(){return k}),t.d(x,"a",function(){return T}),t.d(x,"c",function(){return h}),t.d(x,"d",function(){return V});var w=t("U8pU"),P="RC_TABLE_KEY";function z(U){return U==null?[]:Array.isArray(U)?U:[U]}function k(U,v){if(!v&&typeof v!="number")return U;for(var b=z(v),s=U,l=0;l1)Object(b.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(d.length===0)return Object(b.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var E=d[0];if(h.isValidElement(E)&&Object(s.c)(E)){var M=E.ref;d[0]=h.cloneElement(E,{ref:Object(s.a)(M,this.setChildNode)})}return d.length===1?d[0]:d.map(function(O,A){return!h.isValidElement(O)||"key"in O&&O.key!==null?O:h.cloneElement(O,{key:"".concat(u,"-").concat(A)})})}}]),n}(h.Component);i.displayName="ResizeObserver",x.a=i},wCXF:function(Ce,x,t){"use strict";t.d(x,"a",function(){return lt});var w=t("rePB"),P=t("VTBJ"),z=t("KQm4"),k=t("U8pU"),T=t("ODXe"),h=t("q1tI"),V=t("TSYQ"),U=t.n(V),v=t("Gytx"),b=t.n(v),s=t("Kwbf"),l=t("t23M"),u=t("qx4F"),i=t("6eGT"),a=t("IBYe"),f=t("Ff2n"),n=t("c+Xe"),e=t("fyJ8"),r=t("biw7");function d(I,$,X,te,oe){var ee=X[I]||{},Q=X[$]||{},_,q;ee.fixed==="left"?_=te.left[I]:Q.fixed==="right"&&(q=te.right[$]);var me=!1,Z=!1,de=!1,ye=!1,be=X[$+1],Le=X[I-1];if(oe==="rtl"){if(_!==void 0){var We=Le&&Le.fixed==="left";ye=!We}else if(q!==void 0){var Te=be&&be.fixed==="right";de=!Te}}else if(_!==void 0){var Ae=be&&be.fixed==="left";me=!Ae}else if(q!==void 0){var De=Le&&Le.fixed==="right";Z=!De}return{fixLeft:_,fixRight:q,lastFixLeft:me,firstFixRight:Z,lastFixRight:de,firstFixLeft:ye,isSticky:te.isSticky}}var E=t("sR1s");function M(I){var $=I.cells,X=I.stickyOffsets,te=I.flattenColumns,oe=I.rowComponent,ee=I.cellComponent,Q=I.onHeaderRow,_=I.index,q=h.useContext(r.a),me=q.prefixCls,Z=q.direction,de;Q&&(de=Q($.map(function(be){return be.column}),_));var ye=Object(E.a)($.map(function(be){return be.column}));return h.createElement(oe,Object.assign({},de),$.map(function(be,Le){var We=be.column,Te=d(be.colStart,be.colEnd,te,X,Z),Ae;return We&&We.onHeaderCell&&(Ae=be.column.onHeaderCell(We)),h.createElement(e.a,Object.assign({},be,{ellipsis:We.ellipsis,align:We.align,component:ee,prefixCls:me,key:ye[Le]},Te,{additionalProps:Ae,rowType:"header"}))}))}M.displayName="HeaderRow";var O=M;function A(I){var $=[];function X(Q,_){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;$[q]=$[q]||[];var me=_,Z=Q.filter(Boolean).map(function(de){var ye={key:de.key,className:de.className||"",children:de.title,column:de,colStart:me},be=1,Le=de.children;return Le&&Le.length>0&&(be=X(Le,me,q+1).reduce(function(We,Te){return We+Te},0),ye.hasSubColumns=!0),"colSpan"in de&&(be=de.colSpan),"rowSpan"in de&&(ye.rowSpan=de.rowSpan),ye.colSpan=be,ye.colEnd=ye.colStart+be-1,$[q].push(ye),me+=be,be});return Z}X(I,0);for(var te=$.length,oe=function(_){$[_].forEach(function(q){!("rowSpan"in q)&&!q.hasSubColumns&&(q.rowSpan=te-_)})},ee=0;ee=0;_-=1){var q=$[_],me=X&&X[_],Z=me&&me[y.a];(q||Z||Q)&&(oe.unshift(h.createElement("col",Object.assign({key:_,style:{width:q,minWidth:q}},Z))),Q=!0)}return h.createElement("colgroup",null,oe)}var D=o;function N(I,$){return Object(h.useMemo)(function(){for(var X=[],te=0;te<$;te+=1){var oe=I[te];if(oe!==void 0)X[te]=oe;else return null}return X},[I.join("_"),$])}var L=h.forwardRef(function(I,$){var X=I.noData,te=I.columns,oe=I.flattenColumns,ee=I.colWidths,Q=I.columCount,_=I.stickyOffsets,q=I.direction,me=I.fixHeader,Z=I.offsetHeader,de=I.stickyClassName,ye=I.onScroll,be=Object(f.a)(I,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Le=h.useContext(r.a),We=Le.prefixCls,Te=Le.scrollbarSize,Ae=Le.isSticky,De=Ae&&!me?0:Te,ot=h.useRef(null),Je=h.useCallback(function(Ye){Object(n.b)($,Ye),Object(n.b)(ot,Ye)},[]);h.useEffect(function(){var Ye;function He(Me){var se=Me.currentTarget,re=Me.deltaX;re&&(ye({currentTarget:se,scrollLeft:se.scrollLeft+re}),Me.preventDefault())}return(Ye=ot.current)===null||Ye===void 0||Ye.addEventListener("wheel",He),function(){var Me;(Me=ot.current)===null||Me===void 0||Me.removeEventListener("wheel",He)}},[]);var $e=oe[oe.length-1],qe={fixed:$e?$e.fixed:null,onHeaderCell:function(){return{className:"".concat(We,"-cell-scrollbar")}}},ut=Object(h.useMemo)(function(){return De?[].concat(Object(z.a)(te),[qe]):te},[De,te]),Be=Object(h.useMemo)(function(){return De?[].concat(Object(z.a)(oe),[qe]):oe},[De,oe]),ct=Object(h.useMemo)(function(){var Ye=_.right,He=_.left;return Object(P.a)(Object(P.a)({},_),{},{left:q==="rtl"?[].concat(Object(z.a)(He.map(function(Me){return Me+De})),[0]):He,right:q==="rtl"?Ye:[].concat(Object(z.a)(Ye.map(function(Me){return Me+De})),[0]),isSticky:Ae})},[De,_,Ae]),rt=N(ee,Q);return h.createElement("div",{style:Object(P.a)({overflow:"hidden"},Ae?{top:Z}:{}),ref:Je,className:U()("".concat(We,"-header"),Object(w.a)({},de,!!de))},h.createElement("table",{style:{tableLayout:"fixed",visibility:X||rt?null:"hidden"}},h.createElement(D,{colWidths:rt?[].concat(Object(z.a)(rt),[De]):[],columCount:Q+1,columns:Be}),h.createElement(C,Object.assign({},be,{stickyOffsets:ct,columns:ut,flattenColumns:Be}))))});L.displayName="FixedHeader";var m=L,c=h.createContext(null),j=c;function g(I){var $=I.prefixCls,X=I.children,te=I.component,oe=I.cellComponent,ee=I.fixHeader,Q=I.fixColumn,_=I.horizonScroll,q=I.className,me=I.expanded,Z=I.componentWidth,de=I.colSpan,ye=h.useContext(r.a),be=ye.scrollbarSize;return h.useMemo(function(){var Le=X;return Q&&(Le=h.createElement("div",{style:{width:Z-(ee?be:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat($,"-expanded-row-fixed")},Le)),h.createElement(te,{className:q,style:{display:me?null:"none"}},h.createElement(e.a,{component:oe,prefixCls:$,colSpan:de},Le))},[X,te,ee,_,q,me,Z,de,be])}var R=g;function B(I){var $=I.className,X=I.style,te=I.record,oe=I.index,ee=I.rowKey,Q=I.getRowKey,_=I.rowExpandable,q=I.expandedKeys,me=I.onRow,Z=I.indent,de=Z===void 0?0:Z,ye=I.rowComponent,be=I.cellComponent,Le=I.childrenColumnName,We=h.useContext(r.a),Te=We.prefixCls,Ae=We.fixedInfoList,De=h.useContext(j),ot=De.fixHeader,Je=De.fixColumn,$e=De.horizonScroll,qe=De.componentWidth,ut=De.flattenColumns,Be=De.expandableType,ct=De.expandRowByClick,rt=De.onTriggerExpand,Ye=De.rowClassName,He=De.expandedRowClassName,Me=De.indentSize,se=De.expandIcon,re=De.expandedRowRender,ve=De.expandIconColumnIndex,Re=h.useState(!1),et=Object(T.a)(Re,2),Ze=et[0],ft=et[1],ht=q&&q.has(I.recordKey);h.useEffect(function(){ht&&ft(!0)},[ht]);var vt=Be==="row"&&(!_||_(te)),bt=Be==="nest",Ct=Le&&te&&te[Le],Rt=vt||bt,dt;me&&(dt=me(te,oe));var Dt=function(ke){if(ct&&Rt&&rt(te,ke),dt&&dt.onClick){for(var at,_e=arguments.length,gt=new Array(_e>1?_e-1:0),Ot=1;Ot<_e;Ot++)gt[Ot-1]=arguments[Ot];(at=dt).onClick.apply(at,[ke].concat(gt))}},xt;typeof Ye=="string"?xt=Ye:typeof Ye=="function"&&(xt=Ye(te,oe,de));var Ge=Object(E.a)(ut),Fe=h.createElement(ye,Object.assign({},dt,{"data-row-key":ee,className:U()($,"".concat(Te,"-row"),"".concat(Te,"-row-level-").concat(de),xt,dt&&dt.className),style:Object(P.a)(Object(P.a)({},X),dt?dt.style:null),onClick:Dt}),ut.map(function(Ie,ke){var at=Ie.render,_e=Ie.dataIndex,gt=Ie.className,Ot=Ge[ke],Tt=Ae[ke],Lt;ke===(ve||0)&&bt&&(Lt=h.createElement(h.Fragment,null,h.createElement("span",{style:{paddingLeft:"".concat(Me*de,"px")},className:"".concat(Te,"-row-indent indent-level-").concat(de)}),se({prefixCls:Te,expanded:ht,expandable:Ct,record:te,onExpand:rt})));var At;return Ie.onCell&&(At=Ie.onCell(te,oe)),h.createElement(e.a,Object.assign({className:gt,ellipsis:Ie.ellipsis,align:Ie.align,component:be,prefixCls:Te,key:Ot,record:te,index:oe,dataIndex:_e,render:at,shouldCellUpdate:Ie.shouldCellUpdate},Tt,{appendNode:Lt,additionalProps:At}))})),Se;if(vt&&(Ze||ht)){var Ke=re(te,oe,de+1,ht),Ve=He&&He(te,oe,de);Se=h.createElement(R,{expanded:ht,className:U()("".concat(Te,"-expanded-row"),"".concat(Te,"-expanded-row-level-").concat(de+1),Ve),prefixCls:Te,fixHeader:ot,fixColumn:Je,horizonScroll:$e,component:ye,componentWidth:qe,cellComponent:be,colSpan:ut.length},Ke)}var Xe;return Ct&&ht&&(Xe=(te[Le]||[]).map(function(Ie,ke){var at=Q(Ie,ke);return h.createElement(B,Object.assign({},I,{key:at,rowKey:at,record:Ie,recordKey:at,index:ke,indent:de+1}))})),h.createElement(h.Fragment,null,Fe,Se,Xe)}B.displayName="BodyRow";var W=B,F=h.createContext(null),G=F;function J(I){var $=I.columnKey,X=I.onColumnResize,te=h.useRef();return h.useEffect(function(){te.current&&X($,te.current.offsetWidth)},[]),h.createElement(l.a,{onResize:function(ee){var Q=ee.offsetWidth;X($,Q)}},h.createElement("td",{ref:te,style:{padding:0,border:0,height:0}},h.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ne(I){var $=I.data,X=I.getRowKey,te=I.measureColumnWidth,oe=I.expandedKeys,ee=I.onRow,Q=I.rowExpandable,_=I.emptyNode,q=I.childrenColumnName,me=h.useContext(G),Z=me.onColumnResize,de=h.useContext(r.a),ye=de.prefixCls,be=de.getComponent,Le=h.useContext(j),We=Le.fixHeader,Te=Le.horizonScroll,Ae=Le.flattenColumns,De=Le.componentWidth;return h.useMemo(function(){var ot=be(["body","wrapper"],"tbody"),Je=be(["body","row"],"tr"),$e=be(["body","cell"],"td"),qe;$.length?qe=$.map(function(Be,ct){var rt=X(Be,ct);return h.createElement(W,{key:rt,rowKey:rt,record:Be,recordKey:rt,index:ct,rowComponent:Je,cellComponent:$e,expandedKeys:oe,onRow:ee,getRowKey:X,rowExpandable:Q,childrenColumnName:q})}):qe=h.createElement(R,{expanded:!0,className:"".concat(ye,"-placeholder"),prefixCls:ye,fixHeader:We,fixColumn:Te,horizonScroll:Te,component:Je,componentWidth:De,cellComponent:$e,colSpan:Ae.length},_);var ut=Object(E.a)(Ae);return h.createElement(ot,{className:"".concat(ye,"-tbody")},te&&h.createElement("tr",{"aria-hidden":"true",className:"".concat(ye,"-measure-row"),style:{height:0}},ut.map(function(Be){return h.createElement(J,{key:Be,columnKey:Be,onColumnResize:Z})})),qe)},[$,ye,ee,te,oe,X,be,De,_,Ae])}var le=h.memo(ne);le.displayName="Body";var xe=le,ae=t("wRmb"),ue=t("xEkU"),Ne=t.n(ue);function Ee(I){var $=Object(h.useRef)(I),X=Object(h.useState)({}),te=Object(T.a)(X,2),oe=te[1],ee=Object(h.useRef)(null),Q=Object(h.useRef)([]);function _(q){ee.current===null&&(Q.current=[],ee.current=Ne()(function(){Q.current.forEach(function(me){$.current=me($.current)}),ee.current=null,oe({})})),Q.current.push(q)}return Object(h.useEffect)(function(){return function(){Ne.a.cancel(ee.current)}},[]),[$.current,_]}function Pe(I){var $=Object(h.useRef)(I),X=Object(h.useRef)(null);function te(){window.clearTimeout(X.current)}function oe(Q){$.current=Q,te(),X.current=window.setTimeout(function(){$.current=null,X.current=null},100)}function ee(){return $.current}return Object(h.useEffect)(function(){return te},[]),[oe,ee]}function pe(I,$,X){var te=Object(h.useMemo)(function(){for(var oe=[],ee=[],Q=0,_=0,q=0;q<$;q+=1)if(X==="rtl"){ee[q]=_,_+=I[q]||0;var me=$-q-1;oe[me]=Q,Q+=I[me]||0}else{oe[q]=Q,Q+=I[q]||0;var Z=$-q-1;ee[Z]=_,_+=I[Z]||0}return{left:oe,right:ee}},[I,$,X]);return te}var Oe=pe;function ge(I){var $=I.className,X=I.children;return h.createElement("div",{className:$},X)}var ce=ge,p=t("n6Qo");function S(I){var $,X=I.prefixCls,te=I.record,oe=I.onExpand,ee=I.expanded,Q=I.expandable,_="".concat(X,"-row-expand-icon");if(!Q)return h.createElement("span",{className:U()(_,"".concat(X,"-row-spaced"))});var q=function(Z){oe(te,Z),Z.stopPropagation()};return h.createElement("span",{className:U()(_,($={},Object(w.a)($,"".concat(X,"-row-expanded"),ee),Object(w.a)($,"".concat(X,"-row-collapsed"),!ee),$)),onClick:q})}function H(I,$,X){var te=[];function oe(ee){(ee||[]).forEach(function(Q,_){te.push($(Q,_)),oe(Q[X])})}return oe(I),te}var Y=t("zT1h"),ie=t("y0+3"),fe=function($,X){var te,oe,ee=$.scrollBodyRef,Q=$.onScroll,_=$.offsetScroll,q=h.useContext(r.a),me=q.prefixCls,Z=((te=ee.current)===null||te===void 0?void 0:te.scrollWidth)||0,de=((oe=ee.current)===null||oe===void 0?void 0:oe.clientWidth)||0,ye=Z&&de*(de/Z),be=h.useRef(),Le=Ee({scrollLeft:0,isHiddenScrollBar:!1}),We=Object(T.a)(Le,2),Te=We[0],Ae=We[1],De=h.useRef({delta:0,x:0}),ot=h.useState(!1),Je=Object(T.a)(ot,2),$e=Je[0],qe=Je[1],ut=function(){qe(!1)},Be=function(Me){Me.persist(),De.current.delta=Me.pageX-Te.scrollLeft,De.current.x=0,qe(!0),Me.preventDefault()},ct=function(Me){var se,re=Me||((se=window)===null||se===void 0?void 0:se.event),ve=re.buttons;if(!$e||ve===0){$e&&qe(!1);return}var Re=De.current.x+Me.pageX-De.current.x-De.current.delta;Re<=0&&(Re=0),Re+ye>=de&&(Re=de-ye),Q({scrollLeft:Re/de*(Z+2)}),De.current.x=Me.pageX},rt=function(){var Me=Object(ie.b)(ee.current).top,se=Me+ee.current.offsetHeight,re=document.documentElement.scrollTop+window.innerHeight;se-Object(u.a)()<=re||Me>=re-_?Ae(function(ve){return Object(P.a)(Object(P.a)({},ve),{},{isHiddenScrollBar:!0})}):Ae(function(ve){return Object(P.a)(Object(P.a)({},ve),{},{isHiddenScrollBar:!1})})},Ye=function(Me){Ae(function(se){return Object(P.a)(Object(P.a)({},se),{},{scrollLeft:Me/Z*de||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:Ye}}),h.useEffect(function(){var He=Object(Y.a)(document.body,"mouseup",ut,!1),Me=Object(Y.a)(document.body,"mousemove",ct,!1);return rt(),function(){He.remove(),Me.remove()}},[ye,$e]),h.useEffect(function(){var He=Object(Y.a)(window,"scroll",rt,!1),Me=Object(Y.a)(window,"resize",rt,!1);return function(){He.remove(),Me.remove()}},[]),h.useEffect(function(){Te.isHiddenScrollBar||Ae(function(He){var Me,se;return Object(P.a)(Object(P.a)({},He),{},{scrollLeft:ee.current.scrollLeft/((Me=ee.current)===null||Me===void 0?void 0:Me.scrollWidth)*((se=ee.current)===null||se===void 0?void 0:se.clientWidth)})})},[Te.isHiddenScrollBar]),Z<=de||!ye||Te.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(u.a)(),width:de,bottom:_},className:"".concat(me,"-sticky-scroll")},h.createElement("div",{onMouseDown:Be,ref:be,className:U()("".concat(me,"-sticky-scroll-bar"),Object(w.a)({},"".concat(me,"-sticky-scroll-bar-active"),$e)),style:{width:"".concat(ye,"px"),transform:"translate3d(".concat(Te.scrollLeft,"px, 0, 0)")}}))},he=h.forwardRef(fe);function je(I,$){return h.useMemo(function(){var X=!!I;return{isSticky:X,stickyClassName:X?"".concat($,"-sticky-header"):"",offsetHeader:Object(k.a)(I)==="object"&&I.offsetHeader||0,offsetScroll:Object(k.a)(I)==="object"&&I.offsetScroll||0}},[I,$])}var Qe=[],st={},lt="rc-table-internal-hook",nt=h.memo(function(I){var $=I.children;return $},function(I,$){return b()(I.props,$.props)?I.pingLeft!==$.pingLeft||I.pingRight!==$.pingRight:!1});function ze(I){var $,X=I.prefixCls,te=I.className,oe=I.rowClassName,ee=I.style,Q=I.data,_=I.rowKey,q=I.scroll,me=I.tableLayout,Z=I.direction,de=I.title,ye=I.footer,be=I.summary,Le=I.id,We=I.showHeader,Te=I.components,Ae=I.emptyText,De=I.onRow,ot=I.onHeaderRow,Je=I.internalHooks,$e=I.transformColumns,qe=I.internalRefs,ut=I.sticky,Be=Q||Qe,ct=!!Be.length,rt=h.useState(0),Ye=Object(T.a)(rt,2),He=Ye[0],Me=Ye[1];h.useEffect(function(){Me(Object(u.a)())});var se=h.useMemo(function(){return Object(E.c)(Te,{})},[Te]),re=h.useCallback(function(we,Ue){return Object(E.b)(se,we)||Ue},[se]),ve=h.useMemo(function(){return typeof _=="function"?_:function(we){var Ue=we&&we[_];return Ue}},[_]),Re=Object(y.c)(I),et=Re.expandIcon,Ze=Re.expandedRowKeys,ft=Re.defaultExpandedRowKeys,ht=Re.defaultExpandAllRows,vt=Re.expandedRowRender,bt=Re.onExpand,Ct=Re.onExpandedRowsChange,Rt=Re.expandRowByClick,dt=Re.rowExpandable,Dt=Re.expandIconColumnIndex,xt=Re.expandedRowClassName,Ge=Re.childrenColumnName,Fe=Re.indentSize,Se=et||S,Ke=Ge||"children",Ve=h.useMemo(function(){return vt?"row":I.expandable&&Je===lt&&I.expandable.__PARENT_RENDER_ICON__||Be.some(function(we){return we&&Object(k.a)(we)==="object"&&we[Ke]})?"nest":!1},[!!vt,Be]),Xe=h.useState(function(){return ft||(ht?H(Be,ve,Ke):[])}),Ie=Object(T.a)(Xe,2),ke=Ie[0],at=Ie[1],_e=h.useMemo(function(){return new Set(Ze||ke||[])},[Ze,ke]),gt=h.useCallback(function(we){var Ue=ve(we,Be.indexOf(we)),it,mt=_e.has(Ue);mt?(_e.delete(Ue),it=Object(z.a)(_e)):it=[].concat(Object(z.a)(_e),[Ue]),at(it),bt&&bt(!mt,we),Ct&&Ct(it)},[ve,_e,Be,bt,Ct]),Ot=h.useState(0),Tt=Object(T.a)(Ot,2),Lt=Tt[0],At=Tt[1],vn=Object(ae.b)(Object(P.a)(Object(P.a)(Object(P.a)({},I),Re),{},{expandable:!!vt,expandedKeys:_e,getRowKey:ve,onTriggerExpand:gt,expandIcon:Se,expandIconColumnIndex:Dt,direction:Z}),Je===lt?$e:null),Yt=Object(T.a)(vn,2),Bt=Yt[0],tt=Yt[1],wt=h.useMemo(function(){return{columns:Bt,flattenColumns:tt}},[Bt,tt]),Wt=h.useRef(),Qt=h.useRef(),jt=h.useRef(),gn=h.useState(!1),Zt=Object(T.a)(gn,2),qt=Zt[0],yn=Zt[1],En=h.useState(!1),en=Object(T.a)(En,2),tn=en[0],bn=en[1],Cn=Ee(new Map),nn=Object(T.a)(Cn,2),xn=nn[0],On=nn[1],jn=Object(E.a)(tt),rn=jn.map(function(we){return xn.get(we)}),on=h.useMemo(function(){return rn},[rn.join("_")]),It=Oe(on,tt.length,Z),yt=q&&Object(E.d)(q.y),Et=q&&Object(E.d)(q.x),Mt=Et&&tt.some(function(we){var Ue=we.fixed;return Ue}),an=h.useRef(),Ut=je(ut,X),St=Ut.isSticky,Dn=Ut.offsetHeader,Rn=Ut.offsetScroll,Nn=Ut.stickyClassName,kt,Ft,Ht;yt&&(Ft={overflowY:"scroll",maxHeight:q.y}),Et&&(kt={overflowX:"auto"},yt||(Ft={overflowY:"hidden"}),Ht={width:q.x===!0?"auto":q.x,minWidth:"100%"});var sn=h.useCallback(function(we,Ue){On(function(it){var mt=new Map(it);return mt.set(we,Ue),mt})},[]),Ln=Pe(null),ln=Object(T.a)(Ln,2),Mn=ln[0],un=ln[1];function zt(we,Ue){if(!Ue)return;typeof Ue=="function"?Ue(we):Ue.scrollLeft!==we&&(Ue.scrollLeft=we)}var Nt=function(Ue){var it=Ue.currentTarget,mt=Ue.scrollLeft,Pt=typeof mt=="number"?mt:it.scrollLeft,pn=it||st;if(!un()||un()===pn){var Jt;Mn(pn),zt(Pt,Qt.current),zt(Pt,jt.current),zt(Pt,(Jt=an.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(it){var Un=it.scrollWidth,Fn=it.clientWidth;yn(Pt>0),bn(Pt0?[].concat(Object(P.a)(f),Object(P.a)(s(d).map(function(E){return Object(z.a)({fixed:r},E)}))):[].concat(Object(P.a)(f),[Object(z.a)(Object(z.a)({},n),{},{fixed:r})])},[])}function l(a){for(var f=!0,n=0;n=0;d-=1){var E=a[d];if(r&&E.fixed!=="right")r=!1;else if(!r&&E.fixed==="right"){Object(V.a)(!1,"Index ".concat(d+1," of `columns` missing `fixed='right'` prop."));break}}}function u(a){return a.map(function(f){var n=f.fixed,e=Object(k.a)(f,["fixed"]),r=n;return n==="left"?r="right":n==="right"&&(r="left"),Object(z.a)({fixed:r},e)})}function i(a,f){var n=a.prefixCls,e=a.columns,r=a.children,d=a.expandable,E=a.expandedKeys,M=a.getRowKey,O=a.onTriggerExpand,A=a.expandIcon,K=a.rowExpandable,C=a.expandIconColumnIndex,y=a.direction,o=a.expandRowByClick,D=T.useMemo(function(){return e||b(r)},[e,r]),N=T.useMemo(function(){if(d){var c,j=C||0,g=D[j],R=(c={},Object(w.a)(c,v.a,{className:"".concat(n,"-expand-icon-col")}),Object(w.a)(c,"title",""),Object(w.a)(c,"fixed",g?g.fixed:null),Object(w.a)(c,"className","".concat(n,"-row-expand-icon-cell")),Object(w.a)(c,"render",function(F,G,J){var ne=M(G,J),le=E.has(ne),xe=K?K(G):!0,ae=A({prefixCls:n,expanded:le,expandable:xe,record:G,onExpand:O});return o?T.createElement("span",{onClick:function(Ne){return Ne.stopPropagation()}},ae):ae}),c),B=D.slice();return j>=0&&B.splice(j,0,R),B}return D},[d,D,M,E,A,y]),L=T.useMemo(function(){var c=N;return f&&(c=f(c)),c.length||(c=[{render:function(){return null}}]),c},[f,N,y]),m=T.useMemo(function(){return y==="rtl"?u(s(L)):s(L)},[L,y]);return[L,m]}x.b=i},"y0+3":function(Ce,x,t){"use strict";t.d(x,"a",function(){return s}),t.d(x,"b",function(){return u});var w=/margin|padding|width|height|max|min|offset/,P={left:!0,top:!0},z={cssFloat:1,styleFloat:1,float:1};function k(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function T(i,a,f){if(a=a.toLowerCase(),f==="auto"){if(a==="height")return i.offsetHeight;if(a==="width")return i.offsetWidth}return a in P||(P[a]=w.test(a)),P[a]?parseFloat(f)||0:f}function h(i,a){var f=arguments.length,n=k(i);return a=z[a]?"cssFloat"in i.style?"cssFloat":"styleFloat":a,f===1?n:T(i,a,n[a]||i.style[a])}function V(i,a,f){var n=arguments.length;if(a=z[a]?"cssFloat"in i.style?"cssFloat":"styleFloat":a,n===3)return typeof f=="number"&&w.test(a)&&(f="".concat(f,"px")),i.style[a]=f,f;for(var e in a)a.hasOwnProperty(e)&&V(i,e,a[e]);return k(i)}function U(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function v(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function b(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:a}}function s(){var i=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:a}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(i){var a=i.getBoundingClientRect(),f=document.documentElement;return{left:a.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}}}]); +`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet}],B=i(o,j,g,m,R);return{suggestions:B}}})},f="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",n=t("fjLI"),e=t("LvDl"),r=t("+ua5");function d(o){return/^\d+$/.test(o)?"".concat(o,"px"):o}function b(){}var M=!1,O={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function A(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=o;if(Array.isArray(o)){for(var N=0;N0||et.target.offsetWidth>0)&&X.current.instance.layout()}}catch(Ze){ve.e(Ze)}finally{ve.f()}}),se.observe($.current)),se}function Ee(){T.b.warn({content:decodeURIComponent(f),key:"monaco-editor-tip"})}var Le=function(){var re=X.current.instance;if(c!=null&&re&&Z){var ve=re.getModel();ve&&c!==ve.getValue()&&(M=!0,ve.setValue(c),re.layout(),M=!1)}};Object(s.useEffect)(function(){try{var se,re=X.current.instance;oe.current&&clearTimeout(oe.current),oe.current=setTimeout(function(){Le()},500),re==null||((se=re.updateOptions)===null||se===void 0)||se.call(re,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(c.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ve){debugger}},[c,Z,X.current]),Object(s.useEffect)(function(){try{if(Qe&&X.current&&X.current.instance){var se=X.current.instance;se.changeViewZones(function(ve){var Re=document.createElement("div");Re.style.padding="10px 20px",Re.style.width="calc(100% - 20px)",Re.className="my-error-line-wrp",Re.innerHTML=lt,ve.addZone({afterLineNumber:Qe||11,heightInLines:3,domNode:Re})});var re={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};se.addOverlayWidget(re),se.revealPositionInCenter({lineNumber:20,column:1})}}catch(ve){debugger}},[Qe,X.current,Z]),Object(s.useEffect)(function(){var se;if((se=X.current)!==null&&se!==void 0&&se.instance&&Z&&pt){var re=X.current.instance,ve=re.getModel();if(!ve)return;var Re=function(){var Fe=[],Se=[],Ke=ve.getAllDecorations(),Ve=Object(h.a)(Ke),Xe;try{for(Ve.s();!(Xe=Ve.n()).done;){var Ie=Xe.value;if(Ie.options.className==="highlighted-line"){var ke;Fe.push(Ie==null||((ke=Ie.range)===null||ke===void 0)?void 0:ke.startLineNumber),Se.push(Ie==null?void 0:Ie.id)}}}catch(_e){Ve.e(_e)}finally{Ve.f()}ve.deltaDecorations(Se,[]);var at=ve.getLineCount();!!nt&&nt<=at&&(re.deltaDecorations([],[{range:new K.Range(nt,1,nt,ve.getLineMaxColumn(nt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),re.revealLineInCenter(nt))};Re();var et=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Se=[],Ke=[],Ve=ve.getAllDecorations(),Xe=Object(h.a)(Ve),Ie;try{for(Xe.s();!(Ie=Xe.n()).done;){var ke=Ie.value;if(ke.options.linesDecorationsClassName==="breakpoints"){var at;Se.push(ke==null||((at=ke.range)===null||at===void 0)?void 0:at.startLineNumber),Ke.push(ke==null?void 0:ke.id)}}}catch(_e){Xe.e(_e)}finally{Xe.f()}if(Fe)return{lines:Se,ids:Ke};Y(Se)},Ze=function(){var Ge=Object(z.a)(E.a.mark(function Fe(Se){var Ke;return E.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Ke={range:new K.Range(Se,1,Se,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Xe.next=3,ve.deltaDecorations([],[Ke]);case 3:et();case 4:case"end":return Xe.stop()}},Fe)}));return function(Se){return Ge.apply(this,arguments)}}(),ft=function(){var Ge=Object(z.a)(E.a.mark(function Fe(Se){var Ke,Ve,Xe,Ie,ke;return E.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:Ke=[],Ve=re.getLineDecorations(Se),Xe=Object(h.a)(Ve);try{for(Xe.s();!(Ie=Xe.n()).done;)ke=Ie.value,ke.options.linesDecorationsClassName==="breakpoints"&&Ke.push(ke.id)}catch(gt){Xe.e(gt)}finally{Xe.f()}return _e.next=6,ve.deltaDecorations(Ke,[]);case 6:et();case 7:case"end":return _e.stop()}},Fe)}));return function(Se){return Ge.apply(this,arguments)}}(),ht=function(Fe){var Se=re.getLineDecorations(Fe),Ke=Object(h.a)(Se),Ve;try{for(Ke.s();!(Ve=Ke.n()).done;){var Xe=Ve.value;if(Xe.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Ie){Ke.e(Ie)}finally{Ke.f()}return!1};if(!Object(e.isEqual)(fe,et(!0).lines)){ve.deltaDecorations(et(!0).ids,[]);var vt=fe.map(function(Ge){return{range:new K.Range(Ge,1,Ge,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ve.deltaDecorations([],vt)}var Et=re.onDidChangeModelContent(function(Ge){var Fe=re.getPosition();if(Fe){var Se=Fe.lineNumber;ve.getLineContent(Se).trim()===""?ft(Se):ht(Se)&&(ft(Se),Ze(Se))}}),Ct=re.onMouseDown(function(Ge){var Fe,Se,Ke;if(Ge.target.detail&&(Fe=Ge.target)!==null&&Fe!==void 0&&(Se=Fe.element)!==null&&Se!==void 0&&(Ke=Se.className)!==null&&Ke!==void 0&&Ke.includes("line-numbers")){var Ve=Ge.target.position.lineNumber;if(ve.getLineContent(Ve).trim()==="")return;ht(Ve)?ft(Ve):Ze(Ve)}}),Rt=function(Fe){var Se={range:new K.Range(Fe,1,Fe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ee.current=re.deltaDecorations(ee.current,[Se])},dt=function(){ee.current=re.deltaDecorations(ee.current,[])},Dt=re.onMouseMove(function(Ge){var Fe,Se,Ke;if(dt(),Ge.target.detail&&(Fe=Ge.target)!==null&&Fe!==void 0&&(Se=Fe.element)!==null&&Se!==void 0&&(Ke=Se.className)!==null&&Ke!==void 0&&Ke.includes("line-numbers")){var Ve=Ge.target.position.lineNumber;if(ve.getLineContent(Ve).trim()==="")return;Rt(Ve)}}),xt=re.onMouseLeave(function(){dt()});return function(){Et.dispose(),Ct.dispose(),Dt.dispose(),xt.dispose()}}},[X.current,Z,fe,nt,pt]);function We(){var se=X.current.instance;if(se){var re=se.getSelection(),ve=X.current.pastePos||{},Re=new K.Range(ve.startLineNumber||re.endLineNumber,ve.startColumn||re.endColumn,ve.endLineNumber||re.endLineNumber,ve.endColumn||re.endColumn);setTimeout(function(){se.executeEdits("",[{range:Re,text:""}])},300)}}function Te(se){(window.navigator.platform.match("Mac")?se.metaKey:se.ctrlKey)&&se.keyCode==83&&(se.preventDefault(),ae())}var Ae=function(){if(Ne&&X.current.instance){var re=X.current.instance.getContentHeight();He(re0||ge.target.offsetWidth>0)&&Ne.layout()}}catch(ce){pe.e(ce)}finally{pe.f()}}),be.observe(W.current)),be}Object(s.useEffect)(function(){return W.current&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(Ne){K=Ne;var be=K.editor.createDiffEditor(W.current,Object(w.a)(Object(w.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},B),{},{wordWrap:!0}));ne(be);var Pe=le(be);return function(){be.dispose();var pe=be.getModel();pe&&pe.dispose(),Pe.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(s.useEffect)(function(){J&&J.setModel({original:K.editor.createModel(c,g),modified:K.editor.createModel(j,g)})},[c,j,g,J]);var xe=d(N),ae=d(m),ue={width:xe,height:ae};return l.a.createElement("div",{className:"my-diff-editor",ref:W,style:ue})}},biw7:function(Ce,x,t){"use strict";var w=t("q1tI"),P=t.n(w),z=w.createContext(null);x.a=z},dmUQ:function(Ce,x,t){"use strict";var w=t("Ff2n"),P=t("rePB"),z=t("1OyB"),k=t("vuIU"),T=t("Ji7U"),h=t("md7G"),V=t("foSv"),U=t("q1tI"),v=t.n(U),E=t("TSYQ"),s=t.n(E),l=t("4IlW");function u(o,D){var N=Object.keys(o);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(o);D&&(L=L.filter(function(m){return Object.getOwnPropertyDescriptor(o,m).enumerable})),N.push.apply(N,L)}return N}function i(o){for(var D=1;D1?J-1:0),le=1;le1?B-1:0),F=1;F=0)return parseInt(R.slice(R.indexOf("e-")+2),10);var B=0;return R.indexOf(".")>=0&&(B=R.length-R.indexOf(".")-1),B},m.getInputDisplayValue=function(g){var R=g||m.state,B=R.focused,W=R.inputValue,F=R.value,G;B?G=W:G=m.toPrecisionAsStep(F),G==null&&(G="");var J=m.formatWrapper(G);return O(m.props.decimalSeparator)&&(J=J.toString().replace(".",m.props.decimalSeparator)),J},m.recordCursorPosition=function(){try{m.cursorStart=m.input.selectionStart,m.cursorEnd=m.input.selectionEnd,m.currentValue=m.input.value,m.cursorBefore=m.input.value.substring(0,m.cursorStart),m.cursorAfter=m.input.value.substring(m.cursorEnd)}catch(g){}},m.restoreByAfter=function(g){if(g===void 0)return!1;var R=m.input.value,B=R.lastIndexOf(g);if(B===-1)return!1;var W=m.cursorBefore.length;return m.lastKeyCode===l.a.DELETE&&m.cursorBefore.charAt(W-1)===g[0]?(m.fixCaret(W,W),!0):B+g.length===R.length?(m.fixCaret(B,B),!0):!1},m.partRestoreByAfter=function(g){return g===void 0?!1:Array.prototype.some.call(g,function(R,B){var W=g.substring(B);return m.restoreByAfter(W)})},m.isNotCompleteNumber=function(g){return isNaN(g)||g===""||g===null||g&&g.toString().indexOf(".")===g.toString().length-1},m.stop=function(){m.autoStepTimer&&clearTimeout(m.autoStepTimer)},m.down=function(g,R,B){m.pressingUpOrDown=!0,m.step("down",g,R,B)},m.up=function(g,R,B){m.pressingUpOrDown=!0,m.step("up",g,R,B)},m.saveInput=function(g){m.input=g};var c=L.value;c===void 0&&(c=L.defaultValue),m.state={focused:L.autoFocus};var j=m.getValidValue(m.toNumber(c));return m.state=i(i({},m.state),{},{inputValue:m.toPrecisionAsStep(j),value:j}),m}return Object(k.a)(N,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(m){var c=this.props,j=c.value,g=c.onChange,R=c.max,B=c.min,W=this.state.focused;if(m){if(!A(m.value,j)||!A(m.max,R)||!A(m.min,B)){var F=W?j:this.getValidValue(j),G;this.pressingUpOrDown?G=F:this.inputting?G=this.rawInput:G=this.toPrecisionAsStep(F),this.setState({value:F,inputValue:G})}var J="value"in this.props?j:this.state.value;"max"in this.props&&m.max!==R&&typeof J=="number"&&J>R&&g&&g(R),"min"in this.props&&m.min!==B&&typeof J=="number"&&J1&&arguments[1]!==void 0?arguments[1]:this.props.min,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,g=parseFloat(m);return isNaN(g)?m:(gj&&(g=j),g)}},{key:"setValue",value:function(m,c){var j=this.props.precision,g=this.isNotCompleteNumber(parseFloat(m))?null:parseFloat(m),R=this.state.value,B=R===void 0?null:R,W=this.state.inputValue,F=W===void 0?null:W,G=typeof g=="number"?g.toFixed(j):"".concat(g),J=g!==B||G!=="".concat(F);return"value"in this.props?(F=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:F},c)):this.setState({value:g,inputValue:this.toPrecisionAsStep(m)},c),J&&this.props.onChange(g),g}},{key:"getMaxPrecision",value:function(m){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.props,g=j.precision,R=j.step;if(O(g))return g;var B=this.getPrecision(c),W=this.getPrecision(R),F=this.getPrecision(m);return m?Math.max(F,B+W):B+W}},{key:"getPrecisionFactor",value:function(m){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.getMaxPrecision(m,c);return Math.pow(10,j)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(m){return this.props.formatter?this.props.formatter(m):m}},{key:"toPrecisionAsStep",value:function(m){if(this.isNotCompleteNumber(m)||m==="")return m;var c=Math.abs(this.getMaxPrecision(m));return isNaN(c)?m.toString():Number(m).toFixed(c)}},{key:"toNumber",value:function(m){var c=this.props.precision,j=this.state.focused,g=m&&m.length>16&&j;return this.isNotCompleteNumber(m)||g?m:O(c)?Math.round(m*Math.pow(10,c))/Math.pow(10,c):Number(m)}},{key:"upStep",value:function(m,c){var j=this.props.step,g=this.getPrecisionFactor(m,c),R=Math.abs(this.getMaxPrecision(m,c)),B=((g*m+g*j*c)/g).toFixed(R);return this.toNumber(B)}},{key:"downStep",value:function(m,c){var j=this.props.step,g=this.getPrecisionFactor(m,c),R=Math.abs(this.getMaxPrecision(m,c)),B=((g*m-g*j*c)/g).toFixed(R);return this.toNumber(B)}},{key:"step",value:function(m,c){var j=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=arguments.length>3?arguments[3]:void 0;this.stop(),c&&(c.persist(),c.preventDefault());var B=this.props;if(B.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var F=this["".concat(m,"Step")](W,g),G=F>B.max||FB.max?F=B.max:F=ne),ee=(ze||ze===0)&&(isNaN(ze)||Number(ze)<=le),Q=oe||g||R,_=ee||g||R,q=s()("".concat(j,"-handler"),"".concat(j,"-handler-up"),Object(P.a)({},"".concat(j,"-handler-up-disabled"),Q)),me=s()("".concat(j,"-handler"),"".concat(j,"-handler-down"),Object(P.a)({},"".concat(j,"-handler-down-disabled"),_)),Z=B?{onTouchStart:Q?n:this.up,onTouchEnd:this.stop}:{onMouseDown:Q?n:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},de=B?{onTouchStart:_?n:this.down,onTouchEnd:this.stop}:{onMouseDown:_?n:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return v.a.createElement("div",{className:I,style:xe,title:ae,onMouseEnter:ue,onMouseLeave:Ne,onMouseOver:be,onMouseOut:Pe,onFocus:function(){return null},onBlur:function(){return null}},v.a.createElement("div",{className:"".concat(j,"-handler-wrap")},v.a.createElement("span",Object.assign({unselectable:"on"},Z,{role:"button","aria-label":"Increase Value","aria-disabled":Q,className:q}),F||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner"),onClick:e})),v.a.createElement("span",Object.assign({unselectable:"on"},de,{role:"button","aria-label":"Decrease Value","aria-disabled":_,className:me}),G||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner"),onClick:e}))),v.a.createElement("div",{className:"".concat(j,"-input-wrap")},v.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":le,"aria-valuemax":ne,"aria-valuenow":ze,required:pe,type:ce,placeholder:p,onPaste:Qe,onClick:Oe,onMouseUp:this.onMouseUp,className:"".concat(j,"-input"),tabIndex:ge,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:X?this.onKeyDown:n,onKeyUp:X?this.onKeyUp:n,autoFocus:he,maxLength:fe,readOnly:R,disabled:g,max:ne,min:le,step:ie,name:je,title:ae,id:S,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(te),pattern:Y,inputMode:H,onInput:st},$))))}}]),N}(v.a.Component);K.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:M,min:-M,step:1,style:{},onChange:n,onKeyDown:n,onPressEnter:n,onFocus:n,onBlur:n,parser:r,required:!1,autoComplete:"off"};var C=K,y=x.a=C},fjLI:function(Ce,x,t){"use strict";t.d(x,"e",function(){return E}),t.d(x,"a",function(){return s}),t.d(x,"c",function(){return l}),t.d(x,"d",function(){return i}),t.d(x,"b",function(){return a});var w=t("8HAY"),P=t("Cg/j"),z=t("T8No"),k=t("nnTU"),T=t("MI8n"),h=function(){var f=function(n,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,d){r.__proto__=d}||function(r,d){for(var b in d)d.hasOwnProperty(b)&&(r[b]=d[b])},f(n,e)};return function(n,e){f(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),V=function(f,n,e,r){var d=arguments.length,b=d<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(f,n,e,r);else for(var O=f.length-1;O>=0;O--)(M=f[O])&&(b=(d<3?M(b):d>3?M(n,e,b):M(n,e))||b);return d>3&&b&&Object.defineProperty(n,e,b),b},U=function(f,n){return function(e,r){n(e,r,f)}},v=function(){for(var f=0,n=0,e=arguments.length;n=0&&(d.splice(b,1),r._onDidChangeMenu.fire(n))}}},f.prototype.getMenuItems=function(n){var e=(this._menuItems.get(n)||[]).slice(0);return n===0&&this._appendImplicitItems(e),e},f.prototype._appendImplicitItems=function(n){for(var e=new Set,r=n.filter(function(K){return E(K)}),d=0,b=r;d=z.length?{done:!0}:{done:!1,value:z[h++]}},e:function(l){throw l},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,v=!1,E;return{s:function(){T=z[Symbol.iterator]()},n:function(){var l=T.next();return U=l.done,l},e:function(l){v=!0,E=l},f:function(){try{!U&&T.return!=null&&T.return()}finally{if(v)throw E}}}}},sR1s:function(Ce,x,t){"use strict";t.d(x,"b",function(){return k}),t.d(x,"a",function(){return T}),t.d(x,"c",function(){return h}),t.d(x,"d",function(){return V});var w=t("U8pU"),P="RC_TABLE_KEY";function z(U){return U==null?[]:Array.isArray(U)?U:[U]}function k(U,v){if(!v&&typeof v!="number")return U;for(var E=z(v),s=U,l=0;l1)Object(E.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(d.length===0)return Object(E.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=d[0];if(h.isValidElement(b)&&Object(s.c)(b)){var M=b.ref;d[0]=h.cloneElement(b,{ref:Object(s.a)(M,this.setChildNode)})}return d.length===1?d[0]:d.map(function(O,A){return!h.isValidElement(O)||"key"in O&&O.key!==null?O:h.cloneElement(O,{key:"".concat(u,"-").concat(A)})})}}]),n}(h.Component);i.displayName="ResizeObserver",x.a=i},wCXF:function(Ce,x,t){"use strict";t.d(x,"a",function(){return lt});var w=t("rePB"),P=t("VTBJ"),z=t("KQm4"),k=t("U8pU"),T=t("ODXe"),h=t("q1tI"),V=t("TSYQ"),U=t.n(V),v=t("Gytx"),E=t.n(v),s=t("Kwbf"),l=t("t23M"),u=t("qx4F"),i=t("6eGT"),a=t("IBYe"),f=t("Ff2n"),n=t("c+Xe"),e=t("fyJ8"),r=t("biw7");function d(I,$,X,te,oe){var ee=X[I]||{},Q=X[$]||{},_,q;ee.fixed==="left"?_=te.left[I]:Q.fixed==="right"&&(q=te.right[$]);var me=!1,Z=!1,de=!1,ye=!1,Ee=X[$+1],Le=X[I-1];if(oe==="rtl"){if(_!==void 0){var We=Le&&Le.fixed==="left";ye=!We}else if(q!==void 0){var Te=Ee&&Ee.fixed==="right";de=!Te}}else if(_!==void 0){var Ae=Ee&&Ee.fixed==="left";me=!Ae}else if(q!==void 0){var De=Le&&Le.fixed==="right";Z=!De}return{fixLeft:_,fixRight:q,lastFixLeft:me,firstFixRight:Z,lastFixRight:de,firstFixLeft:ye,isSticky:te.isSticky}}var b=t("sR1s");function M(I){var $=I.cells,X=I.stickyOffsets,te=I.flattenColumns,oe=I.rowComponent,ee=I.cellComponent,Q=I.onHeaderRow,_=I.index,q=h.useContext(r.a),me=q.prefixCls,Z=q.direction,de;Q&&(de=Q($.map(function(Ee){return Ee.column}),_));var ye=Object(b.a)($.map(function(Ee){return Ee.column}));return h.createElement(oe,Object.assign({},de),$.map(function(Ee,Le){var We=Ee.column,Te=d(Ee.colStart,Ee.colEnd,te,X,Z),Ae;return We&&We.onHeaderCell&&(Ae=Ee.column.onHeaderCell(We)),h.createElement(e.a,Object.assign({},Ee,{ellipsis:We.ellipsis,align:We.align,component:ee,prefixCls:me,key:ye[Le]},Te,{additionalProps:Ae,rowType:"header"}))}))}M.displayName="HeaderRow";var O=M;function A(I){var $=[];function X(Q,_){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;$[q]=$[q]||[];var me=_,Z=Q.filter(Boolean).map(function(de){var ye={key:de.key,className:de.className||"",children:de.title,column:de,colStart:me},Ee=1,Le=de.children;return Le&&Le.length>0&&(Ee=X(Le,me,q+1).reduce(function(We,Te){return We+Te},0),ye.hasSubColumns=!0),"colSpan"in de&&(Ee=de.colSpan),"rowSpan"in de&&(ye.rowSpan=de.rowSpan),ye.colSpan=Ee,ye.colEnd=ye.colStart+Ee-1,$[q].push(ye),me+=Ee,Ee});return Z}X(I,0);for(var te=$.length,oe=function(_){$[_].forEach(function(q){!("rowSpan"in q)&&!q.hasSubColumns&&(q.rowSpan=te-_)})},ee=0;ee=0;_-=1){var q=$[_],me=X&&X[_],Z=me&&me[y.a];(q||Z||Q)&&(oe.unshift(h.createElement("col",Object.assign({key:_,style:{width:q,minWidth:q}},Z))),Q=!0)}return h.createElement("colgroup",null,oe)}var D=o;function N(I,$){return Object(h.useMemo)(function(){for(var X=[],te=0;te<$;te+=1){var oe=I[te];if(oe!==void 0)X[te]=oe;else return null}return X},[I.join("_"),$])}var L=h.forwardRef(function(I,$){var X=I.noData,te=I.columns,oe=I.flattenColumns,ee=I.colWidths,Q=I.columCount,_=I.stickyOffsets,q=I.direction,me=I.fixHeader,Z=I.offsetHeader,de=I.stickyClassName,ye=I.onScroll,Ee=Object(f.a)(I,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Le=h.useContext(r.a),We=Le.prefixCls,Te=Le.scrollbarSize,Ae=Le.isSticky,De=Ae&&!me?0:Te,ot=h.useRef(null),Je=h.useCallback(function(Ye){Object(n.b)($,Ye),Object(n.b)(ot,Ye)},[]);h.useEffect(function(){var Ye;function He(Me){var se=Me.currentTarget,re=Me.deltaX;re&&(ye({currentTarget:se,scrollLeft:se.scrollLeft+re}),Me.preventDefault())}return(Ye=ot.current)===null||Ye===void 0||Ye.addEventListener("wheel",He),function(){var Me;(Me=ot.current)===null||Me===void 0||Me.removeEventListener("wheel",He)}},[]);var $e=oe[oe.length-1],qe={fixed:$e?$e.fixed:null,onHeaderCell:function(){return{className:"".concat(We,"-cell-scrollbar")}}},ut=Object(h.useMemo)(function(){return De?[].concat(Object(z.a)(te),[qe]):te},[De,te]),Be=Object(h.useMemo)(function(){return De?[].concat(Object(z.a)(oe),[qe]):oe},[De,oe]),ct=Object(h.useMemo)(function(){var Ye=_.right,He=_.left;return Object(P.a)(Object(P.a)({},_),{},{left:q==="rtl"?[].concat(Object(z.a)(He.map(function(Me){return Me+De})),[0]):He,right:q==="rtl"?Ye:[].concat(Object(z.a)(Ye.map(function(Me){return Me+De})),[0]),isSticky:Ae})},[De,_,Ae]),rt=N(ee,Q);return h.createElement("div",{style:Object(P.a)({overflow:"hidden"},Ae?{top:Z}:{}),ref:Je,className:U()("".concat(We,"-header"),Object(w.a)({},de,!!de))},h.createElement("table",{style:{tableLayout:"fixed",visibility:X||rt?null:"hidden"}},h.createElement(D,{colWidths:rt?[].concat(Object(z.a)(rt),[De]):[],columCount:Q+1,columns:Be}),h.createElement(C,Object.assign({},Ee,{stickyOffsets:ct,columns:ut,flattenColumns:Be}))))});L.displayName="FixedHeader";var m=L,c=h.createContext(null),j=c;function g(I){var $=I.prefixCls,X=I.children,te=I.component,oe=I.cellComponent,ee=I.fixHeader,Q=I.fixColumn,_=I.horizonScroll,q=I.className,me=I.expanded,Z=I.componentWidth,de=I.colSpan,ye=h.useContext(r.a),Ee=ye.scrollbarSize;return h.useMemo(function(){var Le=X;return Q&&(Le=h.createElement("div",{style:{width:Z-(ee?Ee:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat($,"-expanded-row-fixed")},Le)),h.createElement(te,{className:q,style:{display:me?null:"none"}},h.createElement(e.a,{component:oe,prefixCls:$,colSpan:de},Le))},[X,te,ee,_,q,me,Z,de,Ee])}var R=g;function B(I){var $=I.className,X=I.style,te=I.record,oe=I.index,ee=I.rowKey,Q=I.getRowKey,_=I.rowExpandable,q=I.expandedKeys,me=I.onRow,Z=I.indent,de=Z===void 0?0:Z,ye=I.rowComponent,Ee=I.cellComponent,Le=I.childrenColumnName,We=h.useContext(r.a),Te=We.prefixCls,Ae=We.fixedInfoList,De=h.useContext(j),ot=De.fixHeader,Je=De.fixColumn,$e=De.horizonScroll,qe=De.componentWidth,ut=De.flattenColumns,Be=De.expandableType,ct=De.expandRowByClick,rt=De.onTriggerExpand,Ye=De.rowClassName,He=De.expandedRowClassName,Me=De.indentSize,se=De.expandIcon,re=De.expandedRowRender,ve=De.expandIconColumnIndex,Re=h.useState(!1),et=Object(T.a)(Re,2),Ze=et[0],ft=et[1],ht=q&&q.has(I.recordKey);h.useEffect(function(){ht&&ft(!0)},[ht]);var vt=Be==="row"&&(!_||_(te)),Et=Be==="nest",Ct=Le&&te&&te[Le],Rt=vt||Et,dt;me&&(dt=me(te,oe));var Dt=function(ke){if(ct&&Rt&&rt(te,ke),dt&&dt.onClick){for(var at,_e=arguments.length,gt=new Array(_e>1?_e-1:0),Ot=1;Ot<_e;Ot++)gt[Ot-1]=arguments[Ot];(at=dt).onClick.apply(at,[ke].concat(gt))}},xt;typeof Ye=="string"?xt=Ye:typeof Ye=="function"&&(xt=Ye(te,oe,de));var Ge=Object(b.a)(ut),Fe=h.createElement(ye,Object.assign({},dt,{"data-row-key":ee,className:U()($,"".concat(Te,"-row"),"".concat(Te,"-row-level-").concat(de),xt,dt&&dt.className),style:Object(P.a)(Object(P.a)({},X),dt?dt.style:null),onClick:Dt}),ut.map(function(Ie,ke){var at=Ie.render,_e=Ie.dataIndex,gt=Ie.className,Ot=Ge[ke],Tt=Ae[ke],Lt;ke===(ve||0)&&Et&&(Lt=h.createElement(h.Fragment,null,h.createElement("span",{style:{paddingLeft:"".concat(Me*de,"px")},className:"".concat(Te,"-row-indent indent-level-").concat(de)}),se({prefixCls:Te,expanded:ht,expandable:Ct,record:te,onExpand:rt})));var At;return Ie.onCell&&(At=Ie.onCell(te,oe)),h.createElement(e.a,Object.assign({className:gt,ellipsis:Ie.ellipsis,align:Ie.align,component:Ee,prefixCls:Te,key:Ot,record:te,index:oe,dataIndex:_e,render:at,shouldCellUpdate:Ie.shouldCellUpdate},Tt,{appendNode:Lt,additionalProps:At}))})),Se;if(vt&&(Ze||ht)){var Ke=re(te,oe,de+1,ht),Ve=He&&He(te,oe,de);Se=h.createElement(R,{expanded:ht,className:U()("".concat(Te,"-expanded-row"),"".concat(Te,"-expanded-row-level-").concat(de+1),Ve),prefixCls:Te,fixHeader:ot,fixColumn:Je,horizonScroll:$e,component:ye,componentWidth:qe,cellComponent:Ee,colSpan:ut.length},Ke)}var Xe;return Ct&&ht&&(Xe=(te[Le]||[]).map(function(Ie,ke){var at=Q(Ie,ke);return h.createElement(B,Object.assign({},I,{key:at,rowKey:at,record:Ie,recordKey:at,index:ke,indent:de+1}))})),h.createElement(h.Fragment,null,Fe,Se,Xe)}B.displayName="BodyRow";var W=B,F=h.createContext(null),G=F;function J(I){var $=I.columnKey,X=I.onColumnResize,te=h.useRef();return h.useEffect(function(){te.current&&X($,te.current.offsetWidth)},[]),h.createElement(l.a,{onResize:function(ee){var Q=ee.offsetWidth;X($,Q)}},h.createElement("td",{ref:te,style:{padding:0,border:0,height:0}},h.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ne(I){var $=I.data,X=I.getRowKey,te=I.measureColumnWidth,oe=I.expandedKeys,ee=I.onRow,Q=I.rowExpandable,_=I.emptyNode,q=I.childrenColumnName,me=h.useContext(G),Z=me.onColumnResize,de=h.useContext(r.a),ye=de.prefixCls,Ee=de.getComponent,Le=h.useContext(j),We=Le.fixHeader,Te=Le.horizonScroll,Ae=Le.flattenColumns,De=Le.componentWidth;return h.useMemo(function(){var ot=Ee(["body","wrapper"],"tbody"),Je=Ee(["body","row"],"tr"),$e=Ee(["body","cell"],"td"),qe;$.length?qe=$.map(function(Be,ct){var rt=X(Be,ct);return h.createElement(W,{key:rt,rowKey:rt,record:Be,recordKey:rt,index:ct,rowComponent:Je,cellComponent:$e,expandedKeys:oe,onRow:ee,getRowKey:X,rowExpandable:Q,childrenColumnName:q})}):qe=h.createElement(R,{expanded:!0,className:"".concat(ye,"-placeholder"),prefixCls:ye,fixHeader:We,fixColumn:Te,horizonScroll:Te,component:Je,componentWidth:De,cellComponent:$e,colSpan:Ae.length},_);var ut=Object(b.a)(Ae);return h.createElement(ot,{className:"".concat(ye,"-tbody")},te&&h.createElement("tr",{"aria-hidden":"true",className:"".concat(ye,"-measure-row"),style:{height:0}},ut.map(function(Be){return h.createElement(J,{key:Be,columnKey:Be,onColumnResize:Z})})),qe)},[$,ye,ee,te,oe,X,Ee,De,_,Ae])}var le=h.memo(ne);le.displayName="Body";var xe=le,ae=t("wRmb"),ue=t("xEkU"),Ne=t.n(ue);function be(I){var $=Object(h.useRef)(I),X=Object(h.useState)({}),te=Object(T.a)(X,2),oe=te[1],ee=Object(h.useRef)(null),Q=Object(h.useRef)([]);function _(q){ee.current===null&&(Q.current=[],ee.current=Ne()(function(){Q.current.forEach(function(me){$.current=me($.current)}),ee.current=null,oe({})})),Q.current.push(q)}return Object(h.useEffect)(function(){return function(){Ne.a.cancel(ee.current)}},[]),[$.current,_]}function Pe(I){var $=Object(h.useRef)(I),X=Object(h.useRef)(null);function te(){window.clearTimeout(X.current)}function oe(Q){$.current=Q,te(),X.current=window.setTimeout(function(){$.current=null,X.current=null},100)}function ee(){return $.current}return Object(h.useEffect)(function(){return te},[]),[oe,ee]}function pe(I,$,X){var te=Object(h.useMemo)(function(){for(var oe=[],ee=[],Q=0,_=0,q=0;q<$;q+=1)if(X==="rtl"){ee[q]=_,_+=I[q]||0;var me=$-q-1;oe[me]=Q,Q+=I[me]||0}else{oe[q]=Q,Q+=I[q]||0;var Z=$-q-1;ee[Z]=_,_+=I[Z]||0}return{left:oe,right:ee}},[I,$,X]);return te}var Oe=pe;function ge(I){var $=I.className,X=I.children;return h.createElement("div",{className:$},X)}var ce=ge,p=t("n6Qo");function S(I){var $,X=I.prefixCls,te=I.record,oe=I.onExpand,ee=I.expanded,Q=I.expandable,_="".concat(X,"-row-expand-icon");if(!Q)return h.createElement("span",{className:U()(_,"".concat(X,"-row-spaced"))});var q=function(Z){oe(te,Z),Z.stopPropagation()};return h.createElement("span",{className:U()(_,($={},Object(w.a)($,"".concat(X,"-row-expanded"),ee),Object(w.a)($,"".concat(X,"-row-collapsed"),!ee),$)),onClick:q})}function H(I,$,X){var te=[];function oe(ee){(ee||[]).forEach(function(Q,_){te.push($(Q,_)),oe(Q[X])})}return oe(I),te}var Y=t("zT1h"),ie=t("y0+3"),fe=function($,X){var te,oe,ee=$.scrollBodyRef,Q=$.onScroll,_=$.offsetScroll,q=h.useContext(r.a),me=q.prefixCls,Z=((te=ee.current)===null||te===void 0?void 0:te.scrollWidth)||0,de=((oe=ee.current)===null||oe===void 0?void 0:oe.clientWidth)||0,ye=Z&&de*(de/Z),Ee=h.useRef(),Le=be({scrollLeft:0,isHiddenScrollBar:!1}),We=Object(T.a)(Le,2),Te=We[0],Ae=We[1],De=h.useRef({delta:0,x:0}),ot=h.useState(!1),Je=Object(T.a)(ot,2),$e=Je[0],qe=Je[1],ut=function(){qe(!1)},Be=function(Me){Me.persist(),De.current.delta=Me.pageX-Te.scrollLeft,De.current.x=0,qe(!0),Me.preventDefault()},ct=function(Me){var se,re=Me||((se=window)===null||se===void 0?void 0:se.event),ve=re.buttons;if(!$e||ve===0){$e&&qe(!1);return}var Re=De.current.x+Me.pageX-De.current.x-De.current.delta;Re<=0&&(Re=0),Re+ye>=de&&(Re=de-ye),Q({scrollLeft:Re/de*(Z+2)}),De.current.x=Me.pageX},rt=function(){var Me=Object(ie.b)(ee.current).top,se=Me+ee.current.offsetHeight,re=document.documentElement.scrollTop+window.innerHeight;se-Object(u.a)()<=re||Me>=re-_?Ae(function(ve){return Object(P.a)(Object(P.a)({},ve),{},{isHiddenScrollBar:!0})}):Ae(function(ve){return Object(P.a)(Object(P.a)({},ve),{},{isHiddenScrollBar:!1})})},Ye=function(Me){Ae(function(se){return Object(P.a)(Object(P.a)({},se),{},{scrollLeft:Me/Z*de||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:Ye}}),h.useEffect(function(){var He=Object(Y.a)(document.body,"mouseup",ut,!1),Me=Object(Y.a)(document.body,"mousemove",ct,!1);return rt(),function(){He.remove(),Me.remove()}},[ye,$e]),h.useEffect(function(){var He=Object(Y.a)(window,"scroll",rt,!1),Me=Object(Y.a)(window,"resize",rt,!1);return function(){He.remove(),Me.remove()}},[]),h.useEffect(function(){Te.isHiddenScrollBar||Ae(function(He){var Me,se;return Object(P.a)(Object(P.a)({},He),{},{scrollLeft:ee.current.scrollLeft/((Me=ee.current)===null||Me===void 0?void 0:Me.scrollWidth)*((se=ee.current)===null||se===void 0?void 0:se.clientWidth)})})},[Te.isHiddenScrollBar]),Z<=de||!ye||Te.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(u.a)(),width:de,bottom:_},className:"".concat(me,"-sticky-scroll")},h.createElement("div",{onMouseDown:Be,ref:Ee,className:U()("".concat(me,"-sticky-scroll-bar"),Object(w.a)({},"".concat(me,"-sticky-scroll-bar-active"),$e)),style:{width:"".concat(ye,"px"),transform:"translate3d(".concat(Te.scrollLeft,"px, 0, 0)")}}))},he=h.forwardRef(fe);function je(I,$){return h.useMemo(function(){var X=!!I;return{isSticky:X,stickyClassName:X?"".concat($,"-sticky-header"):"",offsetHeader:Object(k.a)(I)==="object"&&I.offsetHeader||0,offsetScroll:Object(k.a)(I)==="object"&&I.offsetScroll||0}},[I,$])}var Qe=[],st={},lt="rc-table-internal-hook",nt=h.memo(function(I){var $=I.children;return $},function(I,$){return E()(I.props,$.props)?I.pingLeft!==$.pingLeft||I.pingRight!==$.pingRight:!1});function ze(I){var $,X=I.prefixCls,te=I.className,oe=I.rowClassName,ee=I.style,Q=I.data,_=I.rowKey,q=I.scroll,me=I.tableLayout,Z=I.direction,de=I.title,ye=I.footer,Ee=I.summary,Le=I.id,We=I.showHeader,Te=I.components,Ae=I.emptyText,De=I.onRow,ot=I.onHeaderRow,Je=I.internalHooks,$e=I.transformColumns,qe=I.internalRefs,ut=I.sticky,Be=Q||Qe,ct=!!Be.length,rt=h.useState(0),Ye=Object(T.a)(rt,2),He=Ye[0],Me=Ye[1];h.useEffect(function(){Me(Object(u.a)())});var se=h.useMemo(function(){return Object(b.c)(Te,{})},[Te]),re=h.useCallback(function(we,Ue){return Object(b.b)(se,we)||Ue},[se]),ve=h.useMemo(function(){return typeof _=="function"?_:function(we){var Ue=we&&we[_];return Ue}},[_]),Re=Object(y.c)(I),et=Re.expandIcon,Ze=Re.expandedRowKeys,ft=Re.defaultExpandedRowKeys,ht=Re.defaultExpandAllRows,vt=Re.expandedRowRender,Et=Re.onExpand,Ct=Re.onExpandedRowsChange,Rt=Re.expandRowByClick,dt=Re.rowExpandable,Dt=Re.expandIconColumnIndex,xt=Re.expandedRowClassName,Ge=Re.childrenColumnName,Fe=Re.indentSize,Se=et||S,Ke=Ge||"children",Ve=h.useMemo(function(){return vt?"row":I.expandable&&Je===lt&&I.expandable.__PARENT_RENDER_ICON__||Be.some(function(we){return we&&Object(k.a)(we)==="object"&&we[Ke]})?"nest":!1},[!!vt,Be]),Xe=h.useState(function(){return ft||(ht?H(Be,ve,Ke):[])}),Ie=Object(T.a)(Xe,2),ke=Ie[0],at=Ie[1],_e=h.useMemo(function(){return new Set(Ze||ke||[])},[Ze,ke]),gt=h.useCallback(function(we){var Ue=ve(we,Be.indexOf(we)),it,mt=_e.has(Ue);mt?(_e.delete(Ue),it=Object(z.a)(_e)):it=[].concat(Object(z.a)(_e),[Ue]),at(it),Et&&Et(!mt,we),Ct&&Ct(it)},[ve,_e,Be,Et,Ct]),Ot=h.useState(0),Tt=Object(T.a)(Ot,2),Lt=Tt[0],At=Tt[1],vn=Object(ae.b)(Object(P.a)(Object(P.a)(Object(P.a)({},I),Re),{},{expandable:!!vt,expandedKeys:_e,getRowKey:ve,onTriggerExpand:gt,expandIcon:Se,expandIconColumnIndex:Dt,direction:Z}),Je===lt?$e:null),Yt=Object(T.a)(vn,2),Bt=Yt[0],tt=Yt[1],wt=h.useMemo(function(){return{columns:Bt,flattenColumns:tt}},[Bt,tt]),Wt=h.useRef(),Qt=h.useRef(),jt=h.useRef(),gn=h.useState(!1),Zt=Object(T.a)(gn,2),qt=Zt[0],yn=Zt[1],bn=h.useState(!1),en=Object(T.a)(bn,2),tn=en[0],En=en[1],Cn=be(new Map),nn=Object(T.a)(Cn,2),xn=nn[0],On=nn[1],jn=Object(b.a)(tt),rn=jn.map(function(we){return xn.get(we)}),on=h.useMemo(function(){return rn},[rn.join("_")]),It=Oe(on,tt.length,Z),yt=q&&Object(b.d)(q.y),bt=q&&Object(b.d)(q.x),Mt=bt&&tt.some(function(we){var Ue=we.fixed;return Ue}),an=h.useRef(),Ut=je(ut,X),St=Ut.isSticky,Dn=Ut.offsetHeader,Rn=Ut.offsetScroll,Nn=Ut.stickyClassName,kt,Ft,Ht;yt&&(Ft={overflowY:"scroll",maxHeight:q.y}),bt&&(kt={overflowX:"auto"},yt||(Ft={overflowY:"hidden"}),Ht={width:q.x===!0?"auto":q.x,minWidth:"100%"});var sn=h.useCallback(function(we,Ue){On(function(it){var mt=new Map(it);return mt.set(we,Ue),mt})},[]),Ln=Pe(null),ln=Object(T.a)(Ln,2),Mn=ln[0],un=ln[1];function zt(we,Ue){if(!Ue)return;typeof Ue=="function"?Ue(we):Ue.scrollLeft!==we&&(Ue.scrollLeft=we)}var Nt=function(Ue){var it=Ue.currentTarget,mt=Ue.scrollLeft,Pt=typeof mt=="number"?mt:it.scrollLeft,pn=it||st;if(!un()||un()===pn){var Jt;Mn(pn),zt(Pt,Qt.current),zt(Pt,jt.current),zt(Pt,(Jt=an.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(it){var Un=it.scrollWidth,Fn=it.clientWidth;yn(Pt>0),En(Pt0?[].concat(Object(P.a)(f),Object(P.a)(s(d).map(function(b){return Object(z.a)({fixed:r},b)}))):[].concat(Object(P.a)(f),[Object(z.a)(Object(z.a)({},n),{},{fixed:r})])},[])}function l(a){for(var f=!0,n=0;n=0;d-=1){var b=a[d];if(r&&b.fixed!=="right")r=!1;else if(!r&&b.fixed==="right"){Object(V.a)(!1,"Index ".concat(d+1," of `columns` missing `fixed='right'` prop."));break}}}function u(a){return a.map(function(f){var n=f.fixed,e=Object(k.a)(f,["fixed"]),r=n;return n==="left"?r="right":n==="right"&&(r="left"),Object(z.a)({fixed:r},e)})}function i(a,f){var n=a.prefixCls,e=a.columns,r=a.children,d=a.expandable,b=a.expandedKeys,M=a.getRowKey,O=a.onTriggerExpand,A=a.expandIcon,K=a.rowExpandable,C=a.expandIconColumnIndex,y=a.direction,o=a.expandRowByClick,D=T.useMemo(function(){return e||E(r)},[e,r]),N=T.useMemo(function(){if(d){var c,j=C||0,g=D[j],R=(c={},Object(w.a)(c,v.a,{className:"".concat(n,"-expand-icon-col")}),Object(w.a)(c,"title",""),Object(w.a)(c,"fixed",g?g.fixed:null),Object(w.a)(c,"className","".concat(n,"-row-expand-icon-cell")),Object(w.a)(c,"render",function(F,G,J){var ne=M(G,J),le=b.has(ne),xe=K?K(G):!0,ae=A({prefixCls:n,expanded:le,expandable:xe,record:G,onExpand:O});return o?T.createElement("span",{onClick:function(Ne){return Ne.stopPropagation()}},ae):ae}),c),B=D.slice();return j>=0&&B.splice(j,0,R),B}return D},[d,D,M,b,A,y]),L=T.useMemo(function(){var c=N;return f&&(c=f(c)),c.length||(c=[{render:function(){return null}}]),c},[f,N,y]),m=T.useMemo(function(){return y==="rtl"?u(s(L)):s(L)},[L,y]);return[L,m]}x.b=i},"y0+3":function(Ce,x,t){"use strict";t.d(x,"a",function(){return s}),t.d(x,"b",function(){return u});var w=/margin|padding|width|height|max|min|offset/,P={left:!0,top:!0},z={cssFloat:1,styleFloat:1,float:1};function k(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function T(i,a,f){if(a=a.toLowerCase(),f==="auto"){if(a==="height")return i.offsetHeight;if(a==="width")return i.offsetWidth}return a in P||(P[a]=w.test(a)),P[a]?parseFloat(f)||0:f}function h(i,a){var f=arguments.length,n=k(i);return a=z[a]?"cssFloat"in i.style?"cssFloat":"styleFloat":a,f===1?n:T(i,a,n[a]||i.style[a])}function V(i,a,f){var n=arguments.length;if(a=z[a]?"cssFloat"in i.style?"cssFloat":"styleFloat":a,n===3)return typeof f=="number"&&w.test(a)&&(f="".concat(f,"px")),i.style[a]=f,f;for(var e in a)a.hasOwnProperty(e)&&V(i,e,a[e]);return k(i)}function U(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function v(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function E(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:a}}function s(){var i=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:a}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(i){var a=i.getBoundingClientRect(),f=document.documentElement;return{left:a.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Exercise__Detail__index.9789edfb.async.js b/p__Classrooms__Lists__Exercise__Detail__index.6b6b5d92.async.js similarity index 83% rename from p__Classrooms__Lists__Exercise__Detail__index.9789edfb.async.js rename to p__Classrooms__Lists__Exercise__Detail__index.6b6b5d92.async.js index 96d4bc6ad7..9f4f089f67 100644 --- a/p__Classrooms__Lists__Exercise__Detail__index.9789edfb.async.js +++ b/p__Classrooms__Lists__Exercise__Detail__index.6b6b5d92.async.js @@ -1,15 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[61,3,5,6,7,8,9,10,178],{"+NIl":function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){"use strict";Y.defineMode("stex",function(j,L){"use strict";function U(b,m){b.cmdState.push(m)}function S(b){return b.cmdState.length>0?b.cmdState[b.cmdState.length-1]:null}function g(b){var m=b.cmdState.pop();m&&m.closeBracket()}function s(b){for(var m=b.cmdState,O=m.length-1;O>=0;O--){var i=m[O];if(i.name=="DEFAULT")continue;return i}return{styleIdentifier:function(){return null}}}function d(b,m,O){return function(){this.name=b,this.bracketNo=0,this.style=m,this.styles=O,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var w={};w.importmodule=d("importmodule","tag",["string","builtin"]),w.documentclass=d("documentclass","tag",["","atom"]),w.usepackage=d("usepackage","tag",["atom"]),w.begin=d("begin","tag",["atom"]),w.end=d("end","tag",["atom"]),w.label=d("label","tag",["atom"]),w.ref=d("ref","tag",["atom"]),w.eqref=d("eqref","tag",["atom"]),w.cite=d("cite","tag",["atom"]),w.bibitem=d("bibitem","tag",["atom"]),w.Bibitem=d("Bibitem","tag",["atom"]),w.RBibitem=d("RBibitem","tag",["atom"]),w.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(b,m){b.f=m}function a(b,m){var O;if(b.match(/^\\[a-zA-Z@]+/)){var i=b.current().slice(1);return O=w.hasOwnProperty(i)?w[i]:w.DEFAULT,O=new O,U(m,O),p(m,x),O.style}if(b.match(/^\\[$&%#{}_]/))return"tag";if(b.match(/^\\[,;!\/\\]/))return"tag";if(b.match("\\["))return p(m,function(u,h){return f(u,h,"\\]")}),"keyword";if(b.match("\\("))return p(m,function(u,h){return f(u,h,"\\)")}),"keyword";if(b.match("$$"))return p(m,function(u,h){return f(u,h,"$$")}),"keyword";if(b.match("$"))return p(m,function(u,h){return f(u,h,"$")}),"keyword";var r=b.next();if(r=="%")return b.skipToEnd(),"comment";if(r=="}"||r=="]"){if(O=S(m),O)O.closeBracket(r),p(m,x);else return"error";return"bracket"}else return r=="{"||r=="["?(O=w.DEFAULT,O=new O,U(m,O),"bracket"):/\d/.test(r)?(b.eatWhile(/[\w.%]/),"atom"):(b.eatWhile(/[\w\-_]/),O=s(m),O.name=="begin"&&(O.argument=b.current()),O.styleIdentifier())}function f(b,m,O){if(b.eatSpace())return null;if(O&&b.match(O))return p(m,a),"keyword";if(b.match(/^\\[a-zA-Z@]+/))return"tag";if(b.match(/^[a-zA-Z]+/))return"variable-2";if(b.match(/^\\[$&%#{}_]/))return"tag";if(b.match(/^\\[,;!\/]/))return"tag";if(b.match(/^[\^_&]/))return"tag";if(b.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(b.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=b.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(b.skipToEnd(),"comment"):"error"}function x(b,m){var O=b.peek(),i;return O=="{"||O=="["?(i=S(m),i.openBracket(O),b.eat(O),p(m,a),"bracket"):/[ \t\r]/.test(O)?(b.eat(O),null):(p(m,a),g(m),a(b,m))}return{startState:function(){var b=L.inMathMode?function(m,O){return f(m,O)}:a;return{cmdState:[],f:b}},copyState:function(b){return{cmdState:b.cmdState.slice(),f:b.f}},token:function(b,m){return m.f(b,m)},blankLine:function(b){b.f=a,b.cmdState.length=0},lineComment:"%"}}),Y.defineMIME("text/x-stex","stex"),Y.defineMIME("text/x-latex","stex")})},"+ua5":function(Ye,ie,_){},"+yhJ":function(Ye,ie,_){Ye.exports=_.p+"static/xixi.d492fb65.svg"},"/GNS":function(Ye,ie,_){Ye.exports=_.p+"static/search1.c4136dd4.png"},"/cxE":function(Ye,ie,_){"use strict";_.d(ie,"e",function(){return L}),_.d(ie,"f",function(){return U}),_.d(ie,"g",function(){return S}),_.d(ie,"d",function(){return s}),_.d(ie,"a",function(){return d}),_.d(ie,"b",function(){return w}),_.d(ie,"c",function(){return p});var Y=function(){function a(){this.listeners=[],this.unexpectedErrorHandler=function(f){setTimeout(function(){throw f.stack?new Error(f.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[61,3,5,6,7,8,9,10,178],{"+NIl":function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){"use strict";Y.defineMode("stex",function(j,L){"use strict";function U(y,m){y.cmdState.push(m)}function S(y){return y.cmdState.length>0?y.cmdState[y.cmdState.length-1]:null}function g(y){var m=y.cmdState.pop();m&&m.closeBracket()}function s(y){for(var m=y.cmdState,O=m.length-1;O>=0;O--){var i=m[O];if(i.name=="DEFAULT")continue;return i}return{styleIdentifier:function(){return null}}}function d(y,m,O){return function(){this.name=y,this.bracketNo=0,this.style=m,this.styles=O,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var w={};w.importmodule=d("importmodule","tag",["string","builtin"]),w.documentclass=d("documentclass","tag",["","atom"]),w.usepackage=d("usepackage","tag",["atom"]),w.begin=d("begin","tag",["atom"]),w.end=d("end","tag",["atom"]),w.label=d("label","tag",["atom"]),w.ref=d("ref","tag",["atom"]),w.eqref=d("eqref","tag",["atom"]),w.cite=d("cite","tag",["atom"]),w.bibitem=d("bibitem","tag",["atom"]),w.Bibitem=d("Bibitem","tag",["atom"]),w.RBibitem=d("RBibitem","tag",["atom"]),w.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(y,m){y.f=m}function a(y,m){var O;if(y.match(/^\\[a-zA-Z@]+/)){var i=y.current().slice(1);return O=w.hasOwnProperty(i)?w[i]:w.DEFAULT,O=new O,U(m,O),p(m,x),O.style}if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/\\]/))return"tag";if(y.match("\\["))return p(m,function(u,h){return f(u,h,"\\]")}),"keyword";if(y.match("\\("))return p(m,function(u,h){return f(u,h,"\\)")}),"keyword";if(y.match("$$"))return p(m,function(u,h){return f(u,h,"$$")}),"keyword";if(y.match("$"))return p(m,function(u,h){return f(u,h,"$")}),"keyword";var r=y.next();if(r=="%")return y.skipToEnd(),"comment";if(r=="}"||r=="]"){if(O=S(m),O)O.closeBracket(r),p(m,x);else return"error";return"bracket"}else return r=="{"||r=="["?(O=w.DEFAULT,O=new O,U(m,O),"bracket"):/\d/.test(r)?(y.eatWhile(/[\w.%]/),"atom"):(y.eatWhile(/[\w\-_]/),O=s(m),O.name=="begin"&&(O.argument=y.current()),O.styleIdentifier())}function f(y,m,O){if(y.eatSpace())return null;if(O&&y.match(O))return p(m,a),"keyword";if(y.match(/^\\[a-zA-Z@]+/))return"tag";if(y.match(/^[a-zA-Z]+/))return"variable-2";if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/]/))return"tag";if(y.match(/^[\^_&]/))return"tag";if(y.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(y.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=y.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(y.skipToEnd(),"comment"):"error"}function x(y,m){var O=y.peek(),i;return O=="{"||O=="["?(i=S(m),i.openBracket(O),y.eat(O),p(m,a),"bracket"):/[ \t\r]/.test(O)?(y.eat(O),null):(p(m,a),g(m),a(y,m))}return{startState:function(){var y=L.inMathMode?function(m,O){return f(m,O)}:a;return{cmdState:[],f:y}},copyState:function(y){return{cmdState:y.cmdState.slice(),f:y.f}},token:function(y,m){return m.f(y,m)},blankLine:function(y){y.f=a,y.cmdState.length=0},lineComment:"%"}}),Y.defineMIME("text/x-stex","stex"),Y.defineMIME("text/x-latex","stex")})},"+ua5":function(Ye,ie,_){},"+yhJ":function(Ye,ie,_){Ye.exports=_.p+"static/xixi.d492fb65.svg"},"/GNS":function(Ye,ie,_){Ye.exports=_.p+"static/search1.c4136dd4.png"},"/cxE":function(Ye,ie,_){"use strict";_.d(ie,"e",function(){return L}),_.d(ie,"f",function(){return U}),_.d(ie,"g",function(){return S}),_.d(ie,"d",function(){return s}),_.d(ie,"a",function(){return d}),_.d(ie,"b",function(){return w}),_.d(ie,"c",function(){return p});var Y=function(){function a(){this.listeners=[],this.unexpectedErrorHandler=function(f){setTimeout(function(){throw f.stack?new Error(f.message+` -`+f.stack):f},0)}}return a.prototype.emit=function(f){this.listeners.forEach(function(x){x(f)})},a.prototype.onUnexpectedError=function(f){this.unexpectedErrorHandler(f),this.emit(f)},a.prototype.onUnexpectedExternalError=function(f){this.unexpectedErrorHandler(f)},a}(),j=new Y;function L(a){s(a)||j.onUnexpectedError(a);return}function U(a){s(a)||j.onUnexpectedExternalError(a);return}function S(a){if(a instanceof Error){var f=a.name,x=a.message,b=a.stacktrace||a.stack;return{$isError:!0,name:f,message:x,stack:b}}return a}var g="Canceled";function s(a){return a instanceof Error&&a.name===g&&a.message===g}function d(){var a=new Error(g);return a.name=a.message,a}function w(a){return a?new Error("Illegal argument: "+a):new Error("Illegal argument")}function p(a){return a?new Error("Illegal state: "+a):new Error("Illegal state")}},"06Qe":function(Ye,ie,_){var Y=_("ItGF"),j="urn:schemas-microsoft-com:vml",L=typeof window=="undefined"?null:window,U=!1,S=L&&L.document;function g(w){return s(w)}var s;if(S&&!Y.canvasSupported)try{!S.namespaces.zrvml&&S.namespaces.add("zrvml",j),s=function(w){return S.createElement("')}}catch(w){s=function(p){return S.createElement("<"+p+' xmlns="'+j+'" class="zrvml">')}}function d(){if(U||!S)return;U=!0;var w=S.styleSheets;w.length<31?S.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):w[0].addRule(".zrvml","behavior:url(#default#VML)")}ie.doc=S,ie.createNode=g,ie.initVML=d},"0eGx":function(Ye,ie,_){Ye.exports=_.p+"static/zhong.c1924b73.svg"},"0r65":function(Ye,ie){var _=arguments[3],Y=arguments[4],j=arguments[5],L=JSON.stringify;Ye.exports=function(U,S){for(var g,s=Object.keys(j),d=0,w=s.length;d=0;y--){var E;if(u[y]!==r&&!u[y].ignore&&(E=x(u[y],O,i))&&(!h.topTarget&&(h.topTarget=u[y]),E!==s)){h.target=u[y];break}}return h},processGesture:function(O,i){this._gestureMgr||(this._gestureMgr=new g);var r=this._gestureMgr;i==="start"&&r.clear();var u=r.recognize(O,this.findHover(O.zrX,O.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),u){var h=u.type;O.gestureEvent=h,this.dispatchToElement({target:u.target},h,u.event)}}},Y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(O){f.prototype[O]=function(i){var r=i.zrX,u=i.zrY,h=b(this,r,u),y,E;if((O!=="mouseup"||!h)&&(y=this.findHover(r,u),E=y.target),O==="mousedown")this._downEl=E,this._downPoint=[i.zrX,i.zrY],this._upEl=E;else if(O==="mouseup")this._upEl=E;else if(O==="click"){if(this._downEl!==this._upEl||!this._downPoint||j.dist(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(y,O,i)}});function x(O,i,r){if(O[O.rectHover?"rectContain":"contain"](i,r)){for(var u=O,h;u;){if(u.clipPath&&!u.clipPath.contain(i,r))return!1;u.silent&&(h=!0),u=u.parent}return h?s:!0}return!1}function b(O,i,r){var u=O.painter;return i<0||i>u.getWidth()||r<0||r>u.getHeight()}Y.mixin(f,U),Y.mixin(f,L);var m=f;Ye.exports=m},"19Vz":function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){Y.defineOption("placeholder","",function(d,w,p){var a=p&&p!=Y.Init;if(w&&!a)d.on("blur",S),d.on("change",g),d.on("swapDoc",g),Y.on(d.getInputField(),"compositionupdate",d.state.placeholderCompose=function(){U(d)}),g(d);else if(!w&&a){d.off("blur",S),d.off("change",g),d.off("swapDoc",g),Y.off(d.getInputField(),"compositionupdate",d.state.placeholderCompose),j(d);var f=d.getWrapperElement();f.className=f.className.replace(" CodeMirror-empty","")}w&&!d.hasFocus()&&S(d)});function j(d){d.state.placeholder&&(d.state.placeholder.parentNode.removeChild(d.state.placeholder),d.state.placeholder=null)}function L(d){j(d);var w=d.state.placeholder=document.createElement("pre");w.style.cssText="height: 0; overflow: visible",w.style.direction=d.getOption("direction"),w.className="CodeMirror-placeholder CodeMirror-line-like";var p=d.getOption("placeholder");typeof p=="string"&&(p=document.createTextNode(p)),w.appendChild(p),d.display.lineSpace.insertBefore(w,d.display.lineSpace.firstChild)}function U(d){setTimeout(function(){var w=!1,p=d.getInputField();p.nodeName=="TEXTAREA"?w=!p.value:d.lineCount()==1&&(w=!/[^\u200b]/.test(p.querySelector(".CodeMirror-line").textContent)),w?L(d):j(d)},20)}function S(d){s(d)&&L(d)}function g(d){var w=d.getWrapperElement(),p=s(d);w.className=w.className.replace(" CodeMirror-empty","")+(p?" CodeMirror-empty":""),p?L(d):j(d)}function s(d){return d.lineCount()===1&&d.getLine(0)===""}})},"1Jh7":function(Ye,ie,_){var Y=_("y+Vt"),j=_("T6xi"),L=Y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(U,S){j.buildPath(U,S,!1)}});Ye.exports=L},"1MYJ":function(Ye,ie,_){var Y=_("y+Vt"),j=Y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var L=this.__dirtyPath,U=this.shape.paths,S=0;S=this._maxSize&&a>0){var x=d.head;d.remove(x),delete w[x.key],p=x.value,this._lastRemovedEntry=x}f?f.value=s:f=new j(s),f.key=g,d.insertEntry(f),w[g]=f}return p},U.get=function(g){var s=this._map[g],d=this._list;if(s!=null)return s!==d.tail&&(d.remove(s),d.insertEntry(s)),s.value},U.clear=function(){this._list.clear(),this._map={}};var S=L;Ye.exports=S},"1bdT":function(Ye,ie,_){var Y=_("3gBT"),j=_("H6uX"),L=_("DN4a"),U=_("vWvF"),S=_("bYtY"),g=function(d){L.call(this,d),j.call(this,d),U.call(this,d),this.id=d.id||Y()};g.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(d,w){switch(this.draggable){case"horizontal":w=0;break;case"vertical":d=0;break}var p=this.transform;p||(p=this.transform=[1,0,0,1,0,0]),p[4]+=d,p[5]+=w,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(d,w){},attrKV:function(d,w){if(d==="position"||d==="scale"||d==="origin"){if(w){var p=this[d];p||(p=this[d]=[]),p[0]=w[0],p[1]=w[1]}}else this[d]=w},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(d,w){if(typeof d=="string")this.attrKV(d,w);else if(S.isObject(d))for(var p in d)d.hasOwnProperty(p)&&this.attrKV(p,d[p]);return this.dirty(!1),this},setClipPath:function(d){var w=this.__zr;w&&d.addSelfToZr(w),this.clipPath&&this.clipPath!==d&&this.removeClipPath(),this.clipPath=d,d.__zr=w,d.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var d=this.clipPath;d&&(d.__zr&&d.removeSelfFromZr(d.__zr),d.__zr=null,d.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(d){this.__zr=d;var w=this.animators;if(w)for(var p=0;p")):null:c.match("--")?P(m("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),P(O(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),M.tokenize=m("meta","?>"),"meta"):(p=c.eat("/")?"closeTag":"openTag",M.tokenize=x,"tag bracket");if(R=="&"){var k;return c.eat("#")?c.eat("x")?k=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):k=c.eatWhile(/[\d]/)&&c.eat(";"):k=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),k?"atom":"error"}else return c.eatWhile(/[^&<]/),null}f.isInText=!0;function x(c,M){var P=c.next();if(P==">"||P=="/"&&c.eat(">"))return M.tokenize=f,p=P==">"?"endTag":"selfcloseTag","tag bracket";if(P=="=")return p="equals",null;if(P=="<"){M.tokenize=f,M.state=h,M.tagName=M.tagStart=null;var R=M.tokenize(c,M);return R?R+" tag error":"tag error"}else return/[\'\"]/.test(P)?(M.tokenize=b(P),M.stringStartCol=c.column(),M.tokenize(c,M)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function b(c){var M=function(P,R){for(;!P.eol();)if(P.next()==c){R.tokenize=x;break}return"string"};return M.isInAttribute=!0,M}function m(c,M){return function(P,R){for(;!P.eol();){if(P.match(M)){R.tokenize=f;break}P.next()}return c}}function O(c){return function(M,P){for(var R;(R=M.next())!=null;){if(R=="<")return P.tokenize=O(c+1),P.tokenize(M,P);if(R==">")if(c==1){P.tokenize=f;break}else return P.tokenize=O(c-1),P.tokenize(M,P)}return"meta"}}function i(c,M,P){this.prev=c.context,this.tagName=M,this.indent=c.indented,this.startOfLine=P,(s.doNotIndent.hasOwnProperty(M)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function r(c){c.context&&(c.context=c.context.prev)}function u(c,M){for(var P;;){if(!c.context)return;if(P=c.context.tagName,!s.contextGrabbers.hasOwnProperty(P)||!s.contextGrabbers[P].hasOwnProperty(M))return;r(c)}}function h(c,M,P){return c=="openTag"?(P.tagStart=M.column(),y):c=="closeTag"?E:h}function y(c,M,P){return c=="word"?(P.tagName=M.current(),a="tag",A):s.allowMissingTagName&&c=="endTag"?(a="tag bracket",A(c,M,P)):(a="error",y)}function E(c,M,P){if(c=="word"){var R=M.current();return P.context&&P.context.tagName!=R&&s.implicitlyClosed.hasOwnProperty(P.context.tagName)&&r(P),P.context&&P.context.tagName==R||s.matchClosing===!1?(a="tag",t):(a="tag error",C)}else return s.allowMissingTagName&&c=="endTag"?(a="tag bracket",t(c,M,P)):(a="error",C)}function t(c,M,P){return c!="endTag"?(a="error",t):(r(P),h)}function C(c,M,P){return a="error",t(c,M,P)}function A(c,M,P){if(c=="word")return a="attribute",v;if(c=="endTag"||c=="selfcloseTag"){var R=P.tagName,k=P.tagStart;return P.tagName=P.tagStart=null,c=="selfcloseTag"||s.autoSelfClosers.hasOwnProperty(R)?u(P,R):(u(P,R),P.context=new i(P,R,k==P.indented)),h}return a="error",A}function v(c,M,P){return c=="equals"?o:(s.allowMissing||(a="error"),A(c,M,P))}function o(c,M,P){return c=="string"?l:c=="word"&&s.allowUnquoted?(a="string",A):(a="error",A(c,M,P))}function l(c,M,P){return c=="string"?l:A(c,M,P)}return{startState:function(c){var M={tokenize:f,state:h,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(M.baseIndent=c),M},token:function(c,M){if(!M.tagName&&c.sol()&&(M.indented=c.indentation()),c.eatSpace())return null;p=null;var P=M.tokenize(c,M);return(P||p)&&P!="comment"&&(a=null,M.state=M.state(p||P,c,M),a&&(P=a=="error"?P+" error":a)),P},indent:function(c,M,P){var R=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+g;if(R&&R.noIndent)return Y.Pass;if(c.tokenize!=x&&c.tokenize!=f)return P?P.match(/^(\s*)/)[0].length:0;if(c.tagName)return s.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+g*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(c){c.state==o&&(c.state=A)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var M=[],P=c.context;P;P=P.prev)P.tagName&&M.push(P.tagName);return M.reverse()}}}),Y.defineMIME("text/xml","xml"),Y.defineMIME("application/xml","xml"),Y.mimeModes.hasOwnProperty("text/html")||Y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Ye,ie,_){"use strict";_.d(ie,"d",function(){return At}),_.d(ie,"b",function(){return dt}),_.d(ie,"c",function(){return xt}),_.d(ie,"a",function(){return Dt});var Y=_("VTBJ"),j=_("1OyB"),L=_("vuIU"),U=_("JX7q"),S=_("Ji7U"),g=_("LK+K"),s=_("q1tI"),d=_("I8Z2"),w=_("BGR+"),p=_("wx14"),a=_("rePB"),f=_("4IlW"),x=_("2GS6"),b=_("Gytx"),m=_.n(b),O=_("TSYQ"),i=_.n(O),r=_("U8pU"),u=_("ODXe"),h=/iPhone/i,y=/iPod/i,E=/iPad/i,t=/\bAndroid(?:.+)Mobile\b/i,C=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,v=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,o=/Windows Phone/i,l=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,M=/BB10/i,P=/Opera Mini/i,R=/\b(CriOS|Chrome)(?:.+)Mobile/i,k=/Mobile(?:.+)Firefox\b/i;function I(mn,pe){return mn.test(pe)}function F(mn){var pe=mn||(typeof navigator!="undefined"?navigator.userAgent:""),Gt=pe.split("[FBAN");if(typeof Gt[1]!="undefined"){var Lt=Gt,Be=Object(u.a)(Lt,1);pe=Be[0]}if(Gt=pe.split("Twitter"),typeof Gt[1]!="undefined"){var ot=Gt,Xt=Object(u.a)(ot,1);pe=Xt[0]}var Pt={apple:{phone:I(h,pe)&&!I(o,pe),ipod:I(y,pe),tablet:!I(h,pe)&&I(E,pe)&&!I(o,pe),device:(I(h,pe)||I(y,pe)||I(E,pe))&&!I(o,pe)},amazon:{phone:I(A,pe),tablet:!I(A,pe)&&I(v,pe),device:I(A,pe)||I(v,pe)},android:{phone:!I(o,pe)&&I(A,pe)||!I(o,pe)&&I(t,pe),tablet:!I(o,pe)&&!I(A,pe)&&!I(t,pe)&&(I(v,pe)||I(C,pe)),device:!I(o,pe)&&(I(A,pe)||I(v,pe)||I(t,pe)||I(C,pe))||I(/\bokhttp\b/i,pe)},windows:{phone:I(o,pe),tablet:I(l,pe),device:I(o,pe)||I(l,pe)},other:{blackberry:I(c,pe),blackberry10:I(M,pe),opera:I(P,pe),firefox:I(k,pe),chrome:I(R,pe),device:I(c,pe)||I(M,pe)||I(P,pe)||I(k,pe)||I(R,pe)},any:null,phone:null,tablet:null};return Pt.any=Pt.apple.device||Pt.android.device||Pt.windows.device||Pt.other.device,Pt.phone=Pt.apple.phone||Pt.android.phone||Pt.windows.phone,Pt.tablet=Pt.apple.tablet||Pt.android.tablet||Pt.windows.tablet,Pt}var V=Object(Y.a)(Object(Y.a)({},F()),{},{isMobile:F}),W=V;function G(){}function J(mn,pe,Gt){var Lt=pe||"";return mn.key||"".concat(Lt,"item_").concat(Gt)}function X(mn){return"".concat(mn,"-menu-")}function te(mn,pe){var Gt=-1;s.Children.forEach(mn,function(Lt){Gt+=1,Lt&&Lt.type&&Lt.type.isMenuItemGroup?s.Children.forEach(Lt.props.children,function(Be){Gt+=1,pe(Be,Gt)}):pe(Lt,Gt)})}function ee(mn,pe,Gt){if(!mn||Gt.find)return;s.Children.forEach(mn,function(Lt){if(Lt){var Be=Lt.type;if(!Be||!(Be.isSubMenu||Be.isMenuItem||Be.isMenuItemGroup))return;pe.indexOf(Lt.key)!==-1?Gt.find=!0:Lt.props.children&&ee(Lt.props.children,pe,Gt)}})}var be=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],ge=function(pe){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt=pe&&typeof pe.getBoundingClientRect=="function"&&pe.getBoundingClientRect().width;if(Lt){if(Gt){var Be=getComputedStyle(pe),ot=Be.marginLeft,Xt=Be.marginRight;Lt+=+ot.replace("px","")+ +Xt.replace("px","")}Lt=+Lt.toFixed(6)}return Lt||0},je=function(pe,Gt,Lt){pe&&Object(r.a)(pe.style)==="object"&&(pe.style[Gt]=Lt)},He=function(){return W.any},nt=_("KQm4"),Ge=_("Ff2n"),he=_("i8i4"),ce=_("bdgK"),Ee=_("uciX"),fe=_("8XRh"),Ne={adjustX:1,adjustY:1},Ce={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ne,offset:[4,0]}},xe={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ne,offset:[4,0]}},ze=Ce,Le=0,Fe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Pe=function(pe,Gt,Lt){var Be=X(Gt),ot=pe.getState();pe.setState({defaultActiveFirst:Object(Y.a)(Object(Y.a)({},ot.defaultActiveFirst),{},Object(a.a)({},Be,Lt))})},Ve=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(Lt){var Be;Object(j.a)(this,Gt),Be=pe.call(this,Lt),Be.onDestroy=function(bt){Be.props.onDestroy(bt)},Be.onKeyDown=function(bt){var ft=bt.keyCode,Nt=Be.menuInstance,jt=Be.props,bn=jt.isOpen,Te=jt.store;if(ft===f.a.ENTER)return Be.onTitleClick(bt),Pe(Te,Be.props.eventKey,!0),!0;if(ft===f.a.RIGHT)return bn?Nt.onKeyDown(bt):(Be.triggerOpenChange(!0),Pe(Te,Be.props.eventKey,!0)),!0;if(ft===f.a.LEFT){var ve;if(bn)ve=Nt.onKeyDown(bt);else return;return ve||(Be.triggerOpenChange(!1),ve=!0),ve}return bn&&(ft===f.a.UP||ft===f.a.DOWN)?Nt.onKeyDown(bt):void 0},Be.onOpenChange=function(bt){Be.props.onOpenChange(bt)},Be.onPopupVisibleChange=function(bt){Be.triggerOpenChange(bt,bt?"mouseenter":"mouseleave")},Be.onMouseEnter=function(bt){var ft=Be.props,Nt=ft.eventKey,jt=ft.onMouseEnter,bn=ft.store;Pe(bn,Be.props.eventKey,!1),jt({key:Nt,domEvent:bt})},Be.onMouseLeave=function(bt){var ft=Be.props,Nt=ft.parentMenu,jt=ft.eventKey,bn=ft.onMouseLeave;Nt.subMenuInstance=Object(U.a)(Be),bn({key:jt,domEvent:bt})},Be.onTitleMouseEnter=function(bt){var ft=Be.props,Nt=ft.eventKey,jt=ft.onItemHover,bn=ft.onTitleMouseEnter;jt({key:Nt,hover:!0}),bn({key:Nt,domEvent:bt})},Be.onTitleMouseLeave=function(bt){var ft=Be.props,Nt=ft.parentMenu,jt=ft.eventKey,bn=ft.onItemHover,Te=ft.onTitleMouseLeave;Nt.subMenuInstance=Object(U.a)(Be),bn({key:jt,hover:!1}),Te({key:jt,domEvent:bt})},Be.onTitleClick=function(bt){var ft=Object(U.a)(Be),Nt=ft.props;if(Nt.onTitleClick({key:Nt.eventKey,domEvent:bt}),Nt.triggerSubMenuAction==="hover")return;Be.triggerOpenChange(!Nt.isOpen,"click"),Pe(Nt.store,Be.props.eventKey,!1)},Be.onSubMenuClick=function(bt){typeof Be.props.onClick=="function"&&Be.props.onClick(Be.addKeyPath(bt))},Be.onSelect=function(bt){Be.props.onSelect(bt)},Be.onDeselect=function(bt){Be.props.onDeselect(bt)},Be.getPrefixCls=function(){return"".concat(Be.props.rootPrefixCls,"-submenu")},Be.getActiveClassName=function(){return"".concat(Be.getPrefixCls(),"-active")},Be.getDisabledClassName=function(){return"".concat(Be.getPrefixCls(),"-disabled")},Be.getSelectedClassName=function(){return"".concat(Be.getPrefixCls(),"-selected")},Be.getOpenClassName=function(){return"".concat(Be.props.rootPrefixCls,"-submenu-open")},Be.saveMenuInstance=function(bt){Be.menuInstance=bt},Be.addKeyPath=function(bt){return Object(Y.a)(Object(Y.a)({},bt),{},{keyPath:(bt.keyPath||[]).concat(Be.props.eventKey)})},Be.triggerOpenChange=function(bt,ft){var Nt=Be.props.eventKey,jt=function(){Be.onOpenChange({key:Nt,item:Object(U.a)(Be),trigger:ft,open:bt})};ft==="mouseenter"?Be.mouseenterTimeout=setTimeout(function(){jt()},0):jt()},Be.isChildrenSelected=function(){var bt={find:!1};return ee(Be.props.children,Be.props.selectedKeys,bt),bt.find},Be.isOpen=function(){return Be.props.openKeys.indexOf(Be.props.eventKey)!==-1},Be.adjustWidth=function(){if(!Be.subMenuTitle||!Be.menuInstance)return;var bt=he.findDOMNode(Be.menuInstance);if(bt.offsetWidth>=Be.subMenuTitle.offsetWidth)return;bt.style.minWidth="".concat(Be.subMenuTitle.offsetWidth,"px")},Be.saveSubMenuTitle=function(bt){Be.subMenuTitle=bt},Be.getBaseProps=function(){var bt=Object(U.a)(Be),ft=bt.props;return{mode:ft.mode==="horizontal"?"vertical":ft.mode,visible:Be.props.isOpen,level:ft.level+1,inlineIndent:ft.inlineIndent,focusable:!1,onClick:Be.onSubMenuClick,onSelect:Be.onSelect,onDeselect:Be.onDeselect,onDestroy:Be.onDestroy,selectedKeys:ft.selectedKeys,eventKey:"".concat(ft.eventKey,"-menu-"),openKeys:ft.openKeys,motion:ft.motion,onOpenChange:Be.onOpenChange,subMenuOpenDelay:ft.subMenuOpenDelay,parentMenu:Object(U.a)(Be),subMenuCloseDelay:ft.subMenuCloseDelay,forceSubMenuRender:ft.forceSubMenuRender,triggerSubMenuAction:ft.triggerSubMenuAction,builtinPlacements:ft.builtinPlacements,defaultActiveFirst:ft.store.getState().defaultActiveFirst[X(ft.eventKey)],multiple:ft.multiple,prefixCls:ft.rootPrefixCls,id:Be.internalMenuId,manualRef:Be.saveMenuInstance,itemIcon:ft.itemIcon,expandIcon:ft.expandIcon,direction:ft.direction}},Be.getMotion=function(bt,ft){var Nt=Object(U.a)(Be),jt=Nt.haveRendered,bn=Be.props,Te=bn.motion,ve=bn.rootPrefixCls,Q=Object(Y.a)(Object(Y.a)({},Te),{},{leavedClassName:"".concat(ve,"-hidden"),removeOnLeave:!1,motionAppear:jt||!ft||bt!=="inline"});return Q};var ot=Lt.store,Xt=Lt.eventKey,Pt=ot.getState(),$t=Pt.defaultActiveFirst;Be.isRootMenu=!1;var Zt=!1;return $t&&(Zt=$t[Xt]),Pe(ot,Xt,Zt),Be}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this,ot=this.props,Xt=ot.mode,Pt=ot.parentMenu,$t=ot.manualRef;if($t&&$t(this),Xt!=="horizontal"||!Pt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Be.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Be=this.props,ot=Be.onDestroy,Xt=Be.eventKey;ot&&ot(Xt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Be){var ot=this,Xt=this.getBaseProps(),Pt=this.getMotion(Xt.mode,Xt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Xt.visible||Xt.forceSubMenuRender,!this.haveOpened)return s.createElement("div",null);var $t=Xt.direction;return s.createElement(fe.default,Object.assign({visible:Xt.visible},Pt),function(Zt){var bt=Zt.className,ft=Zt.style,Nt=i()("".concat(Xt.prefixCls,"-sub"),bt,Object(a.a)({},"".concat(Xt.prefixCls,"-rtl"),$t==="rtl"));return s.createElement(Qe,Object.assign({},Xt,{id:ot.internalMenuId,className:Nt,style:ft}),Be)})}},{key:"render",value:function(){var Be,ot=Object(Y.a)({},this.props),Xt=ot.isOpen,Pt=this.getPrefixCls(),$t=ot.mode==="inline",Zt=i()(Pt,"".concat(Pt,"-").concat(ot.mode),(Be={},Object(a.a)(Be,ot.className,!!ot.className),Object(a.a)(Be,this.getOpenClassName(),Xt),Object(a.a)(Be,this.getActiveClassName(),ot.active||Xt&&!$t),Object(a.a)(Be,this.getDisabledClassName(),ot.disabled),Object(a.a)(Be,this.getSelectedClassName(),this.isChildrenSelected()),Be));this.internalMenuId||(ot.eventKey?this.internalMenuId="".concat(ot.eventKey,"$Menu"):(Le+=1,this.internalMenuId="$__$".concat(Le,"$Menu")));var bt={},ft={},Nt={};ot.disabled||(bt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ft={onClick:this.onTitleClick},Nt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var jt={},bn=ot.direction;$t&&(bn==="rtl"?jt.paddingRight=ot.inlineIndent*ot.level:jt.paddingLeft=ot.inlineIndent*ot.level);var Te={};this.props.isOpen&&(Te={"aria-owns":this.internalMenuId});var ve=null;ot.mode!=="horizontal"&&(ve=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ve=s.createElement(this.props.expandIcon,Object(Y.a)({},this.props))));var Q=s.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:jt,className:"".concat(Pt,"-title"),role:"button"},Nt,ft,{"aria-expanded":Xt},Te,{"aria-haspopup":"true",title:typeof ot.title=="string"?ot.title:void 0}),ot.title,ve||s.createElement("i",{className:"".concat(Pt,"-arrow")})),$=this.renderChildren(ot.children),re=ot.parentMenu.isRootMenu?ot.parentMenu.props.getPopupContainer:function(jn){return jn.parentNode},de=Fe[ot.mode],Ue=ot.popupOffset?{offset:ot.popupOffset}:{},it=ot.mode==="inline"?"":ot.popupClassName;it+=bn==="rtl"?" ".concat(Pt,"-rtl"):"";var Mt=ot.disabled,Ln=ot.triggerSubMenuAction,kn=ot.subMenuOpenDelay,St=ot.forceSubMenuRender,an=ot.subMenuCloseDelay,Pn=ot.builtinPlacements;be.forEach(function(jn){return delete ot[jn]}),delete ot.onClick;var dn=bn==="rtl"?Object.assign({},xe,Pn):Object.assign({},Ce,Pn);return delete ot.direction,s.createElement("li",Object.assign({},ot,bt,{className:Zt,role:"menuitem"}),$t&&Q,$t&&$,!$t&&s.createElement(Ee.a,{prefixCls:Pt,popupClassName:i()("".concat(Pt,"-popup"),it),getPopupContainer:re,builtinPlacements:dn,popupPlacement:de,popupVisible:Xt,popupAlign:Ue,popup:$,action:Mt?[]:[Ln],mouseEnterDelay:kn,mouseLeaveDelay:an,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:St},Q))}}]),Gt}(s.Component);Ve.defaultProps={onMouseEnter:G,onMouseLeave:G,onTitleMouseEnter:G,onTitleMouseLeave:G,onTitleClick:G,manualRef:G,mode:"vertical",title:""};var at=Object(d.b)(function(mn,pe){var Gt=mn.openKeys,Lt=mn.activeKey,Be=mn.selectedKeys,ot=pe.eventKey,Xt=pe.subMenuKey;return{isOpen:Gt.indexOf(ot)>-1,active:Lt[Xt]===ot,selectedKeys:Be}})(Ve);at.isSubMenu=!0;var At=at,Rt="menuitem-overflowed",tn=.5,Qt=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(){var Lt;return Object(j.a)(this,Gt),Lt=pe.apply(this,arguments),Lt.resizeObserver=null,Lt.mutationObserver=null,Lt.originalTotalWidth=0,Lt.overflowedItems=[],Lt.menuItemSizes=[],Lt.cancelFrameId=null,Lt.state={lastVisibleIndex:void 0},Lt.getMenuItemNodes=function(){var Be=Lt.props.prefixCls,ot=he.findDOMNode(Object(U.a)(Lt));return ot?[].slice.call(ot.children).filter(function(Xt){return Xt.className.split(" ").indexOf("".concat(Be,"-overflowed-submenu"))<0}):[]},Lt.getOverflowedSubMenuItem=function(Be,ot,Xt){var Pt=Lt.props,$t=Pt.overflowedIndicator,Zt=Pt.level,bt=Pt.mode,ft=Pt.prefixCls,Nt=Pt.theme;if(Zt!==1||bt!=="horizontal")return null;var jt=Lt.props.children[0],bn=jt.props,Te=bn.children,ve=bn.title,Q=bn.style,$=Object(Ge.a)(bn,["children","title","style"]),re=Object(Y.a)({},Q),de="".concat(Be,"-overflowed-indicator"),Ue="".concat(Be,"-overflowed-indicator");ot.length===0&&Xt!==!0?re=Object(Y.a)(Object(Y.a)({},re),{},{display:"none"}):Xt&&(re=Object(Y.a)(Object(Y.a)({},re),{},{visibility:"hidden",position:"absolute"}),de="".concat(de,"-placeholder"),Ue="".concat(Ue,"-placeholder"));var it=Nt?"".concat(ft,"-").concat(Nt):"",Mt={};return be.forEach(function(Ln){$[Ln]!==void 0&&(Mt[Ln]=$[Ln])}),s.createElement(At,Object.assign({title:$t,className:"".concat(ft,"-overflowed-submenu"),popupClassName:it},Mt,{key:de,eventKey:Ue,disabled:!1,style:re}),ot)},Lt.setChildrenWidthAndResize=function(){if(Lt.props.mode!=="horizontal")return;var Be=he.findDOMNode(Object(U.a)(Lt));if(!Be)return;var ot=Be.children;if(!ot||ot.length===0)return;var Xt=Be.children[ot.length-1];je(Xt,"display","inline-block");var Pt=Lt.getMenuItemNodes(),$t=Pt.filter(function(Zt){return Zt.className.split(" ").indexOf(Rt)>=0});$t.forEach(function(Zt){je(Zt,"display","inline-block")}),Lt.menuItemSizes=Pt.map(function(Zt){return ge(Zt,!0)}),$t.forEach(function(Zt){je(Zt,"display","none")}),Lt.overflowedIndicatorWidth=ge(Be.children[Be.children.length-1],!0),Lt.originalTotalWidth=Lt.menuItemSizes.reduce(function(Zt,bt){return Zt+bt},0),Lt.handleResize(),je(Xt,"display","none")},Lt.handleResize=function(){if(Lt.props.mode!=="horizontal")return;var Be=he.findDOMNode(Object(U.a)(Lt));if(!Be)return;var ot=ge(Be);Lt.overflowedItems=[];var Xt=0,Pt;Lt.originalTotalWidth>ot+tn&&(Pt=-1,Lt.menuItemSizes.forEach(function($t){Xt+=$t,Xt+Lt.overflowedIndicatorWidth<=ot&&(Pt+=1)})),Lt.setState({lastVisibleIndex:Pt})},Lt}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){var Be=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ot=he.findDOMNode(this);if(!ot)return;this.resizeObserver=new ce.default(function(Xt){Xt.forEach(function(){var Pt=Be.cancelFrameId;cancelAnimationFrame(Pt),Be.cancelFrameId=requestAnimationFrame(Be.setChildrenWidthAndResize)})}),[].slice.call(ot.children).concat(ot).forEach(function(Xt){Be.resizeObserver.observe(Xt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Be.resizeObserver.disconnect(),[].slice.call(ot.children).concat(ot).forEach(function(Xt){Be.resizeObserver.observe(Xt)}),Be.setChildrenWidthAndResize()}),this.mutationObserver.observe(ot,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Be){var ot=this,Xt=this.state.lastVisibleIndex;return(Be||[]).reduce(function(Pt,$t,Zt){var bt=$t;if(ot.props.mode==="horizontal"){var ft=ot.getOverflowedSubMenuItem($t.props.eventKey,[]);Xt!==void 0&&ot.props.className.indexOf("".concat(ot.props.prefixCls,"-root"))!==-1&&(Zt>Xt&&(bt=s.cloneElement($t,{style:{display:"none"},eventKey:"".concat($t.props.eventKey,"-hidden"),className:"".concat(Rt)})),Zt===Xt+1&&(ot.overflowedItems=Be.slice(Xt+1).map(function(jt){return s.cloneElement(jt,{key:jt.props.eventKey,mode:"vertical-left"})}),ft=ot.getOverflowedSubMenuItem($t.props.eventKey,ot.overflowedItems)));var Nt=[].concat(Object(nt.a)(Pt),[ft,bt]);return Zt===Be.length-1&&Nt.push(ot.getOverflowedSubMenuItem($t.props.eventKey,[],!0)),Nt}return[].concat(Object(nt.a)(Pt),[bt])},[])}},{key:"render",value:function(){var Be=this.props,ot=Be.visible,Xt=Be.prefixCls,Pt=Be.overflowedIndicator,$t=Be.mode,Zt=Be.level,bt=Be.tag,ft=Be.children,Nt=Be.theme,jt=Object(Ge.a)(Be,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),bn=bt;return s.createElement(bn,Object.assign({},jt),this.renderChildren(ft))}}]),Gt}(s.Component);Qt.defaultProps={tag:"div",className:""};var Cn=Qt;function Un(mn){return mn.length?mn.every(function(pe){return!!pe.props.disabled}):!0}function mt(mn,pe,Gt){var Lt=mn.getState();mn.setState({activeKey:Object(Y.a)(Object(Y.a)({},Lt.activeKey),{},Object(a.a)({},pe,Gt))})}function lt(mn){return mn.eventKey||"0-menu-"}function Ht(mn,pe){var Gt=pe,Lt=mn.children,Be=mn.eventKey;if(Gt){var ot;if(te(Lt,function(Xt,Pt){Xt&&Xt.props&&!Xt.props.disabled&&Gt===J(Xt,Be,Pt)&&(ot=!0)}),ot)return Gt}return Gt=null,mn.defaultActiveFirst&&te(Lt,function(Xt,Pt){!Gt&&Xt&&!Xt.props.disabled&&(Gt=J(Xt,Be,Pt))}),Gt}function sn(mn){if(mn){var pe=this.instanceArray.indexOf(mn);pe!==-1?this.instanceArray[pe]=mn:this.instanceArray.push(mn)}}var Tt=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(Lt){var Be;return Object(j.a)(this,Gt),Be=pe.call(this,Lt),Be.onKeyDown=function(ot,Xt){var Pt=ot.keyCode,$t;if(Be.getFlatInstanceArray().forEach(function(bt){bt&&bt.props.active&&bt.onKeyDown&&($t=bt.onKeyDown(ot))}),$t)return 1;var Zt=null;return(Pt===f.a.UP||Pt===f.a.DOWN)&&(Zt=Be.step(Pt===f.a.UP?-1:1)),Zt?(ot.preventDefault(),mt(Be.props.store,lt(Be.props),Zt.props.eventKey),typeof Xt=="function"&&Xt(Zt),1):void 0},Be.onItemHover=function(ot){var Xt=ot.key,Pt=ot.hover;mt(Be.props.store,lt(Be.props),Pt?Xt:null)},Be.onDeselect=function(ot){Be.props.onDeselect(ot)},Be.onSelect=function(ot){Be.props.onSelect(ot)},Be.onClick=function(ot){Be.props.onClick(ot)},Be.onOpenChange=function(ot){Be.props.onOpenChange(ot)},Be.onDestroy=function(ot){Be.props.onDestroy(ot)},Be.getFlatInstanceArray=function(){return Be.instanceArray},Be.step=function(ot){var Xt=Be.getFlatInstanceArray(),Pt=Be.props.store.getState().activeKey[lt(Be.props)],$t=Xt.length;if(!$t)return null;ot<0&&(Xt=Xt.concat().reverse());var Zt=-1;if(Xt.every(function(jt,bn){return jt&&jt.props.eventKey===Pt?(Zt=bn,!1):!0}),!Be.props.defaultActiveFirst&&Zt!==-1&&Un(Xt.slice(Zt,$t-1)))return;var bt=(Zt+1)%$t,ft=bt;do{var Nt=Xt[ft];if(!Nt||Nt.props.disabled)ft=(ft+1)%$t;else return Nt}while(ft!==bt);return null},Be.renderCommonMenuItem=function(ot,Xt,Pt){var $t=Be.props.store.getState(),Zt=Object(U.a)(Be),bt=Zt.props,ft=J(ot,bt.eventKey,Xt),Nt=ot.props;if(!Nt||typeof ot.type=="string")return ot;var jt=ft===$t.activeKey,bn=Object(Y.a)(Object(Y.a)({mode:Nt.mode||bt.mode,level:bt.level,inlineIndent:bt.inlineIndent,renderMenuItem:Be.renderMenuItem,rootPrefixCls:bt.prefixCls,index:Xt,parentMenu:bt.parentMenu,manualRef:Nt.disabled?void 0:Object(x.a)(ot.ref,sn.bind(Object(U.a)(Be))),eventKey:ft,active:!Nt.disabled&&jt,multiple:bt.multiple,onClick:function(ve){(Nt.onClick||G)(ve),Be.onClick(ve)},onItemHover:Be.onItemHover,motion:bt.motion,subMenuOpenDelay:bt.subMenuOpenDelay,subMenuCloseDelay:bt.subMenuCloseDelay,forceSubMenuRender:bt.forceSubMenuRender,onOpenChange:Be.onOpenChange,onDeselect:Be.onDeselect,onSelect:Be.onSelect,builtinPlacements:bt.builtinPlacements,itemIcon:Nt.itemIcon||Be.props.itemIcon,expandIcon:Nt.expandIcon||Be.props.expandIcon},Pt),{},{direction:bt.direction});return(bt.mode==="inline"||He())&&(bn.triggerSubMenuAction="click"),s.cloneElement(ot,bn)},Be.renderMenuItem=function(ot,Xt,Pt){if(!ot)return null;var $t=Be.props.store.getState(),Zt={openKeys:$t.openKeys,selectedKeys:$t.selectedKeys,triggerSubMenuAction:Be.props.triggerSubMenuAction,subMenuKey:Pt};return Be.renderCommonMenuItem(ot,Xt,Zt)},Lt.store.setState({activeKey:Object(Y.a)(Object(Y.a)({},Lt.store.getState().activeKey),{},Object(a.a)({},Lt.eventKey,Ht(Lt,Lt.activeKey)))}),Be.instanceArray=[],Be}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Be){return this.props.visible||Be.visible||this.props.className!==Be.className||!m()(this.props.style,Be.style)}},{key:"componentDidUpdate",value:function(Be){var ot=this.props,Xt="activeKey"in ot?ot.activeKey:ot.store.getState().activeKey[lt(ot)],Pt=Ht(ot,Xt);if(Pt!==Xt)mt(ot.store,lt(ot),Pt);else if("activeKey"in Be){var $t=Ht(Be,Be.activeKey);Pt!==$t&&mt(ot.store,lt(ot),Pt)}}},{key:"render",value:function(){var Be=this,ot=Object(p.a)({},this.props);this.instanceArray=[];var Xt=i()(ot.prefixCls,ot.className,"".concat(ot.prefixCls,"-").concat(ot.mode)),Pt={className:Xt,role:ot.role||"menu"};ot.id&&(Pt.id=ot.id),ot.focusable&&(Pt.tabIndex=0,Pt.onKeyDown=this.onKeyDown);var $t=ot.prefixCls,Zt=ot.eventKey,bt=ot.visible,ft=ot.level,Nt=ot.mode,jt=ot.overflowedIndicator,bn=ot.theme;return be.forEach(function(Te){return delete ot[Te]}),delete ot.onClick,s.createElement(Cn,Object.assign({},ot,{prefixCls:$t,mode:Nt,tag:"ul",level:ft,theme:bn,visible:bt,overflowedIndicator:jt},Pt),s.Children.map(ot.children,function(Te,ve){return Be.renderMenuItem(Te,ve,Zt||"0-menu-")}))}}]),Gt}(s.Component);Tt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:G};var wt=Object(d.b)()(Tt),Qe=wt,Je=_("Kwbf");function Xe(mn,pe,Gt){var Lt=mn.prefixCls,Be=mn.motion,ot=mn.defaultMotions,Xt=ot===void 0?{}:ot,Pt=mn.openAnimation,$t=mn.openTransitionName,Zt=pe.switchingModeFromInline;if(Be)return Be;if(Object(r.a)(Pt)==="object"&&Pt)Object(Je.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Pt=="string")return{motionName:"".concat(Lt,"-open-").concat(Pt)};if($t)return{motionName:$t};var bt=Xt[Gt];return bt||(Zt?null:Xt.other)}var Oe=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(Lt){var Be;Object(j.a)(this,Gt),Be=pe.call(this,Lt),Be.inlineOpenKeys=[],Be.onSelect=function(Pt){var $t=Object(U.a)(Be),Zt=$t.props;if(Zt.selectable){var bt=Be.store.getState(),ft=bt.selectedKeys,Nt=Pt.key;Zt.multiple?ft=ft.concat([Nt]):ft=[Nt],"selectedKeys"in Zt||Be.store.setState({selectedKeys:ft}),Zt.onSelect(Object(Y.a)(Object(Y.a)({},Pt),{},{selectedKeys:ft}))}},Be.onClick=function(Pt){var $t=Be.getRealMenuMode(),Zt=Object(U.a)(Be),bt=Zt.store,ft=Zt.props.onOpenChange;$t!=="inline"&&!("openKeys"in Be.props)&&(bt.setState({openKeys:[]}),ft([])),Be.props.onClick(Pt)},Be.onKeyDown=function(Pt,$t){Be.innerMenu.getWrappedInstance().onKeyDown(Pt,$t)},Be.onOpenChange=function(Pt){var $t=Object(U.a)(Be),Zt=$t.props,bt=Be.store.getState().openKeys.concat(),ft=!1,Nt=function(bn){var Te=!1;if(bn.open)Te=bt.indexOf(bn.key)===-1,Te&&bt.push(bn.key);else{var ve=bt.indexOf(bn.key);Te=ve!==-1,Te&&bt.splice(ve,1)}ft=ft||Te};Array.isArray(Pt)?Pt.forEach(Nt):Nt(Pt),ft&&("openKeys"in Be.props||Be.store.setState({openKeys:bt}),Zt.onOpenChange(bt))},Be.onDeselect=function(Pt){var $t=Object(U.a)(Be),Zt=$t.props;if(Zt.selectable){var bt=Be.store.getState().selectedKeys.concat(),ft=Pt.key,Nt=bt.indexOf(ft);Nt!==-1&&bt.splice(Nt,1),"selectedKeys"in Zt||Be.store.setState({selectedKeys:bt}),Zt.onDeselect(Object(Y.a)(Object(Y.a)({},Pt),{},{selectedKeys:bt}))}},Be.onMouseEnter=function(Pt){Be.restoreModeVerticalFromInline();var $t=Be.props.onMouseEnter;$t&&$t(Pt)},Be.onTransitionEnd=function(Pt){var $t=Pt.propertyName==="width"&&Pt.target===Pt.currentTarget,Zt=Pt.target.className,bt=Object.prototype.toString.call(Zt)==="[object SVGAnimatedString]"?Zt.animVal:Zt,ft=Pt.propertyName==="font-size"&&bt.indexOf("anticon")>=0;($t||ft)&&Be.restoreModeVerticalFromInline()},Be.setInnerMenu=function(Pt){Be.innerMenu=Pt},Be.isRootMenu=!0;var ot=Lt.defaultSelectedKeys,Xt=Lt.defaultOpenKeys;return"selectedKeys"in Lt&&(ot=Lt.selectedKeys||[]),"openKeys"in Lt&&(Xt=Lt.openKeys||[]),Be.store=Object(d.c)({selectedKeys:ot,openKeys:Xt,activeKey:{"0-menu-":Ht(Lt,Lt.activeKey)}}),Be.state={switchingModeFromInline:!1},Be}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Be){this.updateOpentKeysWhenSwitchMode(Be),this.updateMiniStore();var ot=this.props,Xt=ot.siderCollapsed,Pt=ot.inlineCollapsed,$t=ot.onOpenChange;(!Be.inlineCollapsed&&Pt||!Be.siderCollapsed&&Xt)&&$t([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Be){var ot=this.props,Xt=this.store,Pt=this.inlineOpenKeys,$t=Xt.getState(),Zt={};Be.mode==="inline"&&ot.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in ot||((ot.inlineCollapsed&&!Be.inlineCollapsed||ot.siderCollapsed&&!Be.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=$t.openKeys.concat(),Zt.openKeys=[]),(!ot.inlineCollapsed&&Be.inlineCollapsed||!ot.siderCollapsed&&Be.siderCollapsed)&&(Zt.openKeys=Pt,this.inlineOpenKeys=[])),Object.keys(Zt).length&&Xt.setState(Zt)}},{key:"updateMenuDisplay",value:function(){var Be=this.props.collapsedWidth,ot=this.store,Xt=this.prevOpenKeys,Pt=this.getInlineCollapsed()&&(Be===0||Be==="0"||Be==="0px");Pt?(this.prevOpenKeys=ot.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Xt&&(this.store.setState({openKeys:Xt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Be=this.props.mode,ot=this.state.switchingModeFromInline,Xt=this.getInlineCollapsed();return ot&&Xt?"inline":Xt?"vertical":Be}},{key:"getInlineCollapsed",value:function(){var Be=this.props,ot=Be.inlineCollapsed,Xt=Be.siderCollapsed;return Xt!==void 0?Xt:ot}},{key:"restoreModeVerticalFromInline",value:function(){var Be=this.state.switchingModeFromInline;Be&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Be=Object(Y.a)({},Object(w.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ot=this.getRealMenuMode();return Be.className+=" ".concat(Be.prefixCls,"-root"),Be.direction==="rtl"&&(Be.className+=" ".concat(Be.prefixCls,"-rtl")),Be=Object(Y.a)(Object(Y.a)({},Be),{},{mode:ot,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Xe(this.props,this.state,ot)}),delete Be.openAnimation,delete Be.openTransitionName,s.createElement(d.a,{store:this.store},s.createElement(Qe,Object.assign({},Be,{ref:this.setInnerMenu}),this.props.children))}}]),Gt}(s.Component);Oe.defaultProps={selectable:!0,onClick:G,onSelect:G,onOpenChange:G,onDeselect:G,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:s.createElement("span",null,"\xB7\xB7\xB7")};var Ae=Oe,ye=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(){var Lt;return Object(j.a)(this,Gt),Lt=pe.apply(this,arguments),Lt.onKeyDown=function(Be){var ot=Be.keyCode;return ot===f.a.ENTER?(Lt.onClick(Be),!0):void 0},Lt.onMouseLeave=function(Be){var ot=Lt.props,Xt=ot.eventKey,Pt=ot.onItemHover,$t=ot.onMouseLeave;Pt({key:Xt,hover:!1}),$t({key:Xt,domEvent:Be})},Lt.onMouseEnter=function(Be){var ot=Lt.props,Xt=ot.eventKey,Pt=ot.onItemHover,$t=ot.onMouseEnter;Pt({key:Xt,hover:!0}),$t({key:Xt,domEvent:Be})},Lt.onClick=function(Be){var ot=Lt.props,Xt=ot.eventKey,Pt=ot.multiple,$t=ot.onClick,Zt=ot.onSelect,bt=ot.onDeselect,ft=ot.isSelected,Nt={key:Xt,keyPath:[Xt],item:Object(U.a)(Lt),domEvent:Be};$t(Nt),Pt?ft?bt(Nt):Zt(Nt):ft||Zt(Nt)},Lt.saveNode=function(Be){Lt.node=Be},Lt}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Be=this.props;Be.onDestroy&&Be.onDestroy(Be.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Be,ot=Object(Y.a)({},this.props),Xt=i()(this.getPrefixCls(),ot.className,(Be={},Object(a.a)(Be,this.getActiveClassName(),!ot.disabled&&ot.active),Object(a.a)(Be,this.getSelectedClassName(),ot.isSelected),Object(a.a)(Be,this.getDisabledClassName(),ot.disabled),Be)),Pt=Object(Y.a)(Object(Y.a)({},ot.attribute),{},{title:typeof ot.title=="string"?ot.title:void 0,className:Xt,role:ot.role||"menuitem","aria-disabled":ot.disabled});ot.role==="option"?Pt=Object(Y.a)(Object(Y.a)({},Pt),{},{role:"option","aria-selected":ot.isSelected}):(ot.role===null||ot.role==="none")&&(Pt.role="none");var $t={onClick:ot.disabled?null:this.onClick,onMouseLeave:ot.disabled?null:this.onMouseLeave,onMouseEnter:ot.disabled?null:this.onMouseEnter},Zt=Object(Y.a)({},ot.style);ot.mode==="inline"&&(ot.direction==="rtl"?Zt.paddingRight=ot.inlineIndent*ot.level:Zt.paddingLeft=ot.inlineIndent*ot.level),be.forEach(function(ft){return delete ot[ft]}),delete ot.direction;var bt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(bt=s.createElement(this.props.itemIcon,this.props)),s.createElement("li",Object.assign({},Object(w.default)(ot,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Pt,$t,{style:Zt,ref:this.saveNode}),ot.children,bt)}}]),Gt}(s.Component);ye.isMenuItem=!0,ye.defaultProps={onSelect:G,onMouseEnter:G,onMouseLeave:G,manualRef:G};var Se=Object(d.b)(function(mn,pe){var Gt=mn.activeKey,Lt=mn.selectedKeys,Be=pe.eventKey,ot=pe.subMenuKey;return{active:Gt[ot]===Be,isSelected:Lt.indexOf(Be)!==-1}})(ye),dt=Se,et=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(){var Lt;return Object(j.a)(this,Gt),Lt=pe.apply(this,arguments),Lt.renderInnerMenuItem=function(Be){var ot=Lt.props,Xt=ot.renderMenuItem,Pt=ot.index;return Xt(Be,Pt,Lt.props.subMenuKey)},Lt}return Object(L.a)(Gt,[{key:"render",value:function(){var Be=Object(p.a)({},this.props),ot=Be.className,Xt=ot===void 0?"":ot,Pt=Be.rootPrefixCls,$t="".concat(Pt,"-item-group-title"),Zt="".concat(Pt,"-item-group-list"),bt=Be.title,ft=Be.children;return be.forEach(function(Nt){return delete Be[Nt]}),delete Be.onClick,delete Be.direction,s.createElement("li",Object.assign({},Be,{className:"".concat(Xt," ").concat(Pt,"-item-group")}),s.createElement("div",{className:$t,title:typeof bt=="string"?bt:void 0},bt),s.createElement("ul",{className:Zt},s.Children.map(ft,this.renderInnerMenuItem)))}}]),Gt}(s.Component);et.isMenuItemGroup=!0,et.defaultProps={disabled:!0};var xt=et,xn=function(pe){var Gt=pe.className,Lt=pe.rootPrefixCls,Be=pe.style;return s.createElement("li",{className:"".concat(Gt," ").concat(Lt,"-item-divider"),style:Be})};xn.defaultProps={disabled:!0,className:"",style:{}};var Dt=xn,yt=ie.e=Ae},"24YM":function(Ye,ie,_){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.SensorTabIndex=ie.SensorClassName=ie.SizeSensorId=void 0;var Y="size-sensor-id";ie.SizeSensorId=Y;var j="size-sensor-object";ie.SensorClassName=j;var L="-1";ie.SensorTabIndex=L},"24hK":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return L});var Y=_("JYp7"),j=function(){function U(S){this.element=S,this.next=U.Undefined,this.prev=U.Undefined}return U.Undefined=new U(void 0),U}(),L=function(){function U(){this._first=j.Undefined,this._last=j.Undefined,this._size=0}return Object.defineProperty(U.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),U.prototype.isEmpty=function(){return this._first===j.Undefined},U.prototype.clear=function(){this._first=j.Undefined,this._last=j.Undefined,this._size=0},U.prototype.unshift=function(S){return this._insert(S,!1)},U.prototype.push=function(S){return this._insert(S,!0)},U.prototype._insert=function(S,g){var s=this,d=new j(S);if(this._first===j.Undefined)this._first=d,this._last=d;else if(g){var w=this._last;this._last=d,d.prev=w,w.next=d}else{var p=this._first;this._first=d,d.next=p,p.prev=d}this._size+=1;var a=!1;return function(){a||(a=!0,s._remove(d))}},U.prototype.shift=function(){if(this._first===j.Undefined)return;var S=this._first.element;return this._remove(this._first),S},U.prototype.pop=function(){if(this._last===j.Undefined)return;var S=this._last.element;return this._remove(this._last),S},U.prototype._remove=function(S){if(S.prev!==j.Undefined&&S.next!==j.Undefined){var g=S.prev;g.next=S.next,S.next.prev=g}else S.prev===j.Undefined&&S.next===j.Undefined?(this._first=j.Undefined,this._last=j.Undefined):S.next===j.Undefined?(this._last=this._last.prev,this._last.next=j.Undefined):S.prev===j.Undefined&&(this._first=this._first.next,this._first.prev=j.Undefined);this._size-=1},U.prototype.iterator=function(){var S,g=this._first;return{next:function(){return g===j.Undefined?Y.c:(S?S.value=g.element:S={done:!1,value:g.element},g=g.next,S)}}},U.prototype.toArray=function(){for(var S=[],g=this._first;g!==j.Undefined;g=g.next)S.push(g.element);return S},U}()},"2DNl":function(Ye,ie,_){var Y=_("IMiH"),j=_("loD1"),L=_("59Ip"),U=_("aKvl"),S=_("n1HI"),g=_("hX1E"),s=g.normalizeRadian,d=_("Sj9i"),w=_("hyiK"),p=Y.CMD,a=Math.PI*2,f=1e-4;function x(t,C){return Math.abs(t-C)C&&R>v&&R>l&&R>M||R1&&O(),V=d.cubicAt(C,v,l,M,m[0]),F>1&&(W=d.cubicAt(C,v,l,M,m[1]))),F===2?JC&&M>v&&M>l||M=0&&R<=1){for(var k=0,I=d.quadraticAt(C,v,l,R),F=0;FA||M<-A)return 0;var P=Math.sqrt(A*A-M*M);b[0]=-P,b[1]=P;var R=Math.abs(v-o);if(R<1e-4)return 0;if(R%a<1e-4){v=0,o=a;var k=l?1:-1;return c>=b[0]+t&&c<=b[1]+t?k:0}if(l){var P=v;v=s(o),o=s(P)}else v=s(v),o=s(o);v>o&&(o+=a);for(var I=0,F=0;F<2;F++){var V=b[F];if(V+t>c){var W=Math.atan2(M,V),k=l?1:-1;W<0&&(W=a+W),(W>=v&&W<=o||W+a>=v&&W+a<=o)&&(W>Math.PI/2&&W1&&(A||(l+=w(c,M,P,R,v,o))),k===1&&(c=t[k],M=t[k+1],P=c,R=M);switch(I){case p.M:P=t[k++],R=t[k++],c=P,M=R;break;case p.L:if(A){if(j.containStroke(c,M,t[k],t[k+1],C,v,o))return!0}else l+=w(c,M,t[k],t[k+1],v,o)||0;c=t[k++],M=t[k++];break;case p.C:if(A){if(L.containStroke(c,M,t[k++],t[k++],t[k++],t[k++],t[k],t[k+1],C,v,o))return!0}else l+=i(c,M,t[k++],t[k++],t[k++],t[k++],t[k],t[k+1],v,o)||0;c=t[k++],M=t[k++];break;case p.Q:if(A){if(U.containStroke(c,M,t[k++],t[k++],t[k],t[k+1],C,v,o))return!0}else l+=r(c,M,t[k++],t[k++],t[k],t[k+1],v,o)||0;c=t[k++],M=t[k++];break;case p.A:var F=t[k++],V=t[k++],W=t[k++],G=t[k++],J=t[k++],X=t[k++];k+=1;var te=1-t[k++],ee=Math.cos(J)*W+F,be=Math.sin(J)*G+V;k>1?l+=w(c,M,ee,be,v,o):(P=ee,R=be);var ge=(v-F)*G/W+F;if(A){if(S.containStroke(F,V,G,J,J+X,te,C,ge,o))return!0}else l+=u(F,V,G,J,J+X,te,ge,o);c=Math.cos(J+X)*W+F,M=Math.sin(J+X)*G+V;break;case p.R:P=c=t[k++],R=M=t[k++];var je=t[k++],He=t[k++],ee=P+je,be=R+He;if(A){if(j.containStroke(P,R,ee,R,C,v,o)||j.containStroke(ee,R,ee,be,C,v,o)||j.containStroke(ee,be,P,be,C,v,o)||j.containStroke(P,be,P,R,C,v,o))return!0}else l+=w(ee,R,ee,be,v,o),l+=w(P,be,P,R,v,o);break;case p.Z:if(A){if(j.containStroke(c,M,P,R,C,v,o))return!0}else l+=w(c,M,P,R,v,o);c=P,M=R;break}}return!A&&!x(M,R)&&(l+=w(c,M,P,R,v,o)||0),l!==0}function y(t,C,A){return h(t,0,!1,C,A)}function E(t,C,A,v){return h(t,C,!0,A,v)}ie.contain=y,ie.containStroke=E},"2JKx":function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___21flX",flex_space_between:"flex_space_between___hkcwT",flex_box_vertical_center:"flex_box_vertical_center___1JAyR",flex_box_center_end:"flex_box_center_end___2trjo",flex_box_column:"flex_box_column___2q5e9",form:"form___1j7IG",efficiency:"efficiency___KDh-I",ipItem:"ipItem___2NlCp",ipWrp:"ipWrp___2kiZa"}},"2fw6":function(Ye,ie,_){var Y=_("y+Vt"),j=Y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(L,U,S){S&&L.moveTo(U.cx+U.r,U.cy),L.arc(U.cx,U.cy,U.r,0,Math.PI*2,!0)}});Ye.exports=j},"3C/r":function(Ye,ie){var _=function(j,L){this.image=j,this.repeat=L,this.type="pattern"};_.prototype.getCanvasPattern=function(j){return j.createPattern(this.image,this.repeat||"repeat")};var Y=_;Ye.exports=Y},"3CBa":function(Ye,ie,_){var Y=_("hydK"),j=Y.createElement,L=_("bYtY"),U=_("SUKs"),S=_("y+Vt"),g=_("Dagg"),s=_("dqUG"),d=_("DBLp"),w=_("sW+o"),p=_("n6Mw"),a=_("vKoX"),f=_("P47w"),x=f.path,b=f.image,m=f.text;function O(o){return parseInt(o,10)}function i(o){return o instanceof S?x:o instanceof g?b:o instanceof s?m:x}function r(o,l){return l&&o&&l.parentNode!==o}function u(o,l,c){if(r(o,l)&&c){var M=c.nextSibling;M?o.insertBefore(l,M):o.appendChild(l)}}function h(o,l){if(r(o,l)){var c=o.firstChild;c?o.insertBefore(l,c):o.appendChild(l)}}function y(o,l){l&&o&&l.parentNode===o&&o.removeChild(l)}function E(o){return o.__textSvgEl}function t(o){return o.__svgEl}var C=function(o,l,c,M){this.root=o,this.storage=l,this._opts=c=L.extend({},c||{});var P=j("svg");P.setAttribute("xmlns","http://www.w3.org/2000/svg"),P.setAttribute("version","1.1"),P.setAttribute("baseProfile","full"),P.style.cssText="user-select:none;position:absolute;left:0;top:0;";var R=j("g");P.appendChild(R);var k=j("g");P.appendChild(k),this.gradientManager=new w(M,k),this.clipPathManager=new p(M,k),this.shadowManager=new a(M,k);var I=document.createElement("div");I.style.cssText="overflow:hidden;position:relative",this._svgDom=P,this._svgRoot=k,this._backgroundRoot=R,this._viewport=I,o.appendChild(I),I.appendChild(P),this.resize(c.width,c.height),this._visibleList=[]};C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var l=j("rect");l.setAttribute("width",this.getWidth()),l.setAttribute("height",this.getHeight()),l.setAttribute("x",0),l.setAttribute("y",0),l.setAttribute("id",0),l.style.fill=o,this._backgroundRoot.appendChild(l),this._backgroundNode=l},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var l=this._svgRoot,c=this._visibleList,M=o.length,P=[],R;for(R=0;R=0;--k)if(R[k]===P)return!0;return!1}),c}else return null;else return c[0]},resize:function(o,l){var c=this._viewport;c.style.display="none";var M=this._opts;if(o!=null&&(M.width=o),l!=null&&(M.height=l),o=this._getSize(0),l=this._getSize(1),c.style.display="",this._width!==o||this._height!==l){this._width=o,this._height=l;var P=c.style;P.width=o+"px",P.height=l+"px";var R=this._svgDom;R.setAttribute("width",o),R.setAttribute("height",l)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",l))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var l=this._opts,c=["width","height"][o],M=["clientWidth","clientHeight"][o],P=["paddingLeft","paddingTop"][o],R=["paddingRight","paddingBottom"][o];if(l[c]!=null&&l[c]!=="auto")return parseFloat(l[c]);var k=this.root,I=document.defaultView.getComputedStyle(k);return(k[M]||O(I[c])||O(k.style[c]))-(O(I[P])||0)-(O(I[R])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> -\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function A(o){return function(){U('In SVG mode painter not support method "'+o+'"')}}L.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){C.prototype[o]=A(o)});var v=C;Ye.exports=v},"3e3G":function(Ye,ie,_){var Y=_("bYtY"),j=_("QuXc"),L=function(S,g,s,d,w){this.x=S==null?.5:S,this.y=g==null?.5:g,this.r=s==null?.5:s,this.type="radial",this.global=w||!1,j.call(this,d)};L.prototype={constructor:L},Y.inherits(L,j);var U=L;Ye.exports=U},"3gBT":function(Ye,ie){var _=2311;function Y(){return _++}Ye.exports=Y},"4fz+":function(Ye,ie,_){var Y=_("bYtY"),j=_("1bdT"),L=_("mFDi"),U=function(g){g=g||{},j.call(this,g);for(var s in g)g.hasOwnProperty(s)&&(this[s]=g[s]);this._children=[],this.__storage=null,this.__dirty=!0};U.prototype={constructor:U,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(g){return this._children[g]},childOfName:function(g){for(var s=this._children,d=0;d=0&&(d.splice(w,0,g),this._doAdd(g))}return this},_doAdd:function(g){g.parent&&g.parent.remove(g),g.parent=this;var s=this.__storage,d=this.__zr;s&&s!==g.__storage&&(s.addToStorage(g),g instanceof U&&g.addChildrenToStorage(s)),d&&d.refresh()},remove:function(g){var s=this.__zr,d=this.__storage,w=this._children,p=Y.indexOf(w,g);return p<0?this:(w.splice(p,1),g.parent=null,d&&(d.delFromStorage(g),g instanceof U&&g.delChildrenFromStorage(d)),s&&s.refresh(),this)},removeAll:function(){var g=this._children,s=this.__storage,d,w;for(w=0;w1e-4){A[0]=r-h,A[1]=u-y,v[0]=r+h,v[1]=u+y;return}if(d[0]=g(E)*h+r,d[1]=S(E)*y+u,w[0]=g(t)*h+r,w[1]=S(t)*y+u,o(A,d,w),l(v,d,w),E=E%s,E<0&&(E=E+s),t=t%s,t<0&&(t=t+s),E>t&&!C?t+=s:EE&&(p[0]=g(P)*h+r,p[1]=S(P)*y+u,o(A,p,A),l(v,p,v))}ie.fromPoints=a,ie.fromLine=f,ie.fromCubic=m,ie.fromQuadratic=O,ie.fromArc=i},"4qgm":function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"51gm":function(Ye,ie,_){Ye.exports={title:"title___1NT0J",wrap:"wrap___2hvUc"}},"55Ip":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return u}),_.d(ie,"b",function(){return A});var Y=_("Ty5D"),j=_("dI71"),L=_("q1tI"),U=_.n(L),S=_("YS25"),g=_("17x9"),s=_.n(g),d=_("wx14"),w=_("zLVn"),p=_("9R94"),a=function(o){Object(j.a)(l,o);function l(){for(var M,P=arguments.length,R=new Array(P),k=0;kU+b&&x>g+b&&x>d+b&&x>p+b||xL+b&&f>S+b&&f>s+b&&f>w+b||f=0||P.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;o.setState({goInputText:""}),I(o.getValidValue())},o.go=function(P){var R=o.state.goInputText;if(R==="")return;(P.keyCode===b.ENTER||P.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(S.a)(v,[{key:"getValidValue",value:function(){var l=this.state,c=l.goInputText,M=l.current;return!c||isNaN(c)?M:Number(c)}},{key:"getPageSizeOptions",value:function(){var l=this.props,c=l.pageSize,M=l.pageSizeOptions;return M.some(function(P){return P.toString()===c.toString()})?M:M.concat([c.toString()]).sort(function(P,R){var k=isNaN(Number(P))?0:Number(P),I=isNaN(Number(R))?0:Number(R);return k-I})}},{key:"render",value:function(){var l=this,c=this.props,M=c.pageSize,P=c.locale,R=c.rootPrefixCls,k=c.changeSize,I=c.quickGo,F=c.goButton,V=c.selectComponentClass,W=c.buildOptionText,G=c.selectPrefixCls,J=c.disabled,X=this.state.goInputText,te="".concat(R,"-options"),ee=V,be=null,ge=null,je=null;if(!k&&!I)return null;var He=this.getPageSizeOptions();if(k&&ee){var nt=He.map(function(Ge,he){return w.a.createElement(ee.Option,{key:he,value:Ge.toString()},(W||l.buildOptionText)(Ge))});be=w.a.createElement(ee,{disabled:J,prefixCls:G,showSearch:!1,className:"".concat(te,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||He[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},nt)}return I&&(F&&(je=typeof F=="boolean"?w.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:J,className:"".concat(te,"-quick-jumper-button")},P.jump_to_confirm):w.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),ge=w.a.createElement("div",{className:"".concat(te,"-quick-jumper")},P.jump_to,w.a.createElement("input",{disabled:J,type:"text",value:X,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),P.page,je)),w.a.createElement("li",{className:"".concat(te)},be,ge)}}]),v}(w.a.Component);m.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=m,i=_("N2Kk");function r(){}function u(C){return typeof C=="number"&&isFinite(C)&&Math.floor(C)===C}function h(C,A,v){return v}function y(C,A,v){var o=typeof C=="undefined"?A.pageSize:C;return Math.floor((v.total-1)/o)+1}var E=function(C){Object(g.a)(v,C);var A=Object(s.a)(v);function v(o){var l;Object(U.a)(this,v),l=A.call(this,o),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(y(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(k,I){var F=l.props.prefixCls,V=k||w.a.createElement("button",{type:"button","aria-label":I,className:"".concat(F,"-item-link")});return typeof k=="function"&&(V=w.a.createElement(k,Object(L.a)({},l.props))),V},l.savePaginationNode=function(k){l.paginationNode=k},l.isValid=function(k){return u(k)&&k!==l.state.current},l.shouldDisplayQuickJumper=function(){var k=l.props,I=k.showQuickJumper,F=k.pageSize,V=k.total;return V<=F?!1:I},l.handleKeyDown=function(k){(k.keyCode===b.ARROW_UP||k.keyCode===b.ARROW_DOWN)&&k.preventDefault()},l.handleKeyUp=function(k){var I=l.getValidValue(k),F=l.state.currentInputValue;I!==F&&l.setState({currentInputValue:I}),k.keyCode===b.ENTER?l.handleChange(I):k.keyCode===b.ARROW_UP?l.handleChange(I-1):k.keyCode===b.ARROW_DOWN&&l.handleChange(I+1)},l.changePageSize=function(k){var I=l.state.current,F=y(k,l.state,l.props);I=I>F?F:I,F===0&&(I=l.state.current),typeof k=="number"&&("pageSize"in l.props||l.setState({pageSize:k}),"current"in l.props||l.setState({current:I,currentInputValue:I})),l.props.onShowSizeChange(I,k),"onChange"in l.props&&l.props.onChange&&l.props.onChange(I,k)},l.handleChange=function(k){var I=l.props.disabled,F=k;if(l.isValid(F)&&!I){var V=y(void 0,l.state,l.props);F>V?F=V:F<1&&(F=1),"current"in l.props||l.setState({current:F,currentInputValue:F});var W=l.state.pageSize;return l.props.onChange(F,W),F}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?F-2:0),W=2;W=M?R=M:R=Number(c),R}},{key:"getShowSizeChanger",value:function(){var l=this.props,c=l.showSizeChanger,M=l.total,P=l.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:M>P}},{key:"renderPrev",value:function(l){var c=this.props,M=c.prevIcon,P=c.itemRender,R=P(l,"prev",this.getItemIcon(M,"prev page")),k=!this.hasPrev();return Object(d.isValidElement)(R)?Object(d.cloneElement)(R,{disabled:k}):R}},{key:"renderNext",value:function(l){var c=this.props,M=c.nextIcon,P=c.itemRender,R=P(l,"next",this.getItemIcon(M,"next page")),k=!this.hasNext();return Object(d.isValidElement)(R)?Object(d.cloneElement)(R,{disabled:k}):R}},{key:"render",value:function(){var l=this,c=this.props,M=c.prefixCls,P=c.className,R=c.style,k=c.disabled,I=c.hideOnSinglePage,F=c.total,V=c.locale,W=c.showQuickJumper,G=c.showLessItems,J=c.showTitle,X=c.showTotal,te=c.simple,ee=c.itemRender,be=c.showPrevNextJumpers,ge=c.jumpPrevIcon,je=c.jumpNextIcon,He=c.selectComponentClass,nt=c.selectPrefixCls,Ge=c.pageSizeOptions,he=this.state,ce=he.current,Ee=he.pageSize,fe=he.currentInputValue;if(I===!0&&F<=Ee)return null;var Ne=y(void 0,this.state,this.props),Ce=[],xe=null,ze=null,Le=null,Fe=null,Pe=null,Ve=W&&W.goButton,at=G?1:2,At=ce-1>0?ce-1:0,Rt=ce+1=at*2&&ce!==1+2&&(Ce[0]=Object(d.cloneElement)(Ce[0],{className:"".concat(M,"-item-after-jump-prev")}),Ce.unshift(xe)),Ne-ce>=at*2&&ce!==Ne-2&&(Ce[Ce.length-1]=Object(d.cloneElement)(Ce[Ce.length-1],{className:"".concat(M,"-item-before-jump-next")}),Ce.push(ze)),Ht!==1&&Ce.unshift(Le),sn!==Ne&&Ce.push(Fe)}var Qe=null;X&&(Qe=w.a.createElement("li",{className:"".concat(M,"-total-text")},X(F,[F===0?0:(ce-1)*Ee+1,ce*Ee>F?F:ce*Ee])));var Je=!this.hasPrev()||!Ne,Xe=!this.hasNext()||!Ne;return w.a.createElement("ul",Object(Y.a)({className:a()(M,P,Object(j.a)({},"".concat(M,"-disabled"),k)),style:R,unselectable:"unselectable",ref:this.savePaginationNode},tn),Qe,w.a.createElement("li",{title:J?V.prev_page:null,onClick:this.prev,tabIndex:Je?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(M,"-prev"),Object(j.a)({},"".concat(M,"-disabled"),Je)),"aria-disabled":Je},this.renderPrev(At)),Ce,w.a.createElement("li",{title:J?V.next_page:null,onClick:this.next,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(M,"-next"),Object(j.a)({},"".concat(M,"-disabled"),Xe)),"aria-disabled":Xe},this.renderNext(Rt)),w.a.createElement(O,{disabled:k,locale:V,rootPrefixCls:M,selectComponentClass:He,selectPrefixCls:nt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ce,pageSize:Ee,pageSizeOptions:Ge,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ve}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var M={};if("current"in l&&(M.current=l.current,l.current!==c.current&&(M.currentInputValue=M.current)),"pageSize"in l&&l.pageSize!==c.pageSize){var P=c.current,R=y(l.pageSize,c,l);P=P>R?R:P,"current"in l||(M.current=P,M.currentInputValue=P),M.pageSize=l.pageSize}return M}}]),v}(w.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:i.a,style:{},itemRender:h,totalBoundaryShowSizeChanger:50};var t=E},"6GrX":function(Ye,ie,_){var Y=_("mFDi"),j=_("Xnb7"),L=_("bYtY"),U=L.getContext,S=L.extend,g=L.retrieve2,s=L.retrieve3,d=L.trim,w={},p=0,a=5e3,f=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,x="12px sans-serif",b={};function m(I,F){b[I]=F}function O(I,F){F=F||x;var V=I+":"+F;if(w[V])return w[V];for(var W=(I+"").split(` -`),G=0,J=0,X=W.length;Ja&&(p=0,w={}),p++,w[V]=G,G}function i(I,F,V,W,G,J,X,te){return X?u(I,F,V,W,G,J,X,te):r(I,F,V,W,G,J,te)}function r(I,F,V,W,G,J,X){var te=M(I,F,G,J,X),ee=O(I,F);G&&(ee+=G[1]+G[3]);var be=te.outerHeight,ge=h(0,ee,V),je=y(0,be,W),He=new Y(ge,je,ee,be);return He.lineHeight=te.lineHeight,He}function u(I,F,V,W,G,J,X,te){var ee=P(I,{rich:X,truncate:te,font:F,textAlign:V,textPadding:G,textLineHeight:J}),be=ee.outerWidth,ge=ee.outerHeight,je=h(0,be,V),He=y(0,ge,W);return new Y(je,He,be,ge)}function h(I,F,V){return V==="right"?I-=F:V==="center"&&(I-=F/2),I}function y(I,F,V){return V==="middle"?I-=F/2:V==="bottom"&&(I-=F),I}function E(I,F,V){var W=F.textPosition,G=F.textDistance,J=V.x,X=V.y;G=G||0;var te=V.height,ee=V.width,be=te/2,ge="left",je="top";switch(W){case"left":J-=G,X+=be,ge="right",je="middle";break;case"right":J+=G+ee,X+=be,je="middle";break;case"top":J+=ee/2,X-=G,ge="center",je="bottom";break;case"bottom":J+=ee/2,X+=te+G,ge="center";break;case"inside":J+=ee/2,X+=be,ge="center",je="middle";break;case"insideLeft":J+=G,X+=be,je="middle";break;case"insideRight":J+=ee-G,X+=be,ge="right",je="middle";break;case"insideTop":J+=ee/2,X+=G,ge="center";break;case"insideBottom":J+=ee/2,X+=te-G,ge="center",je="bottom";break;case"insideTopLeft":J+=G,X+=G;break;case"insideTopRight":J+=ee-G,X+=G,ge="right";break;case"insideBottomLeft":J+=G,X+=te-G,je="bottom";break;case"insideBottomRight":J+=ee-G,X+=te-G,ge="right",je="bottom";break}return I=I||{},I.x=J,I.y=X,I.textAlign=ge,I.textVerticalAlign=je,I}function t(I,F,V){var W={textPosition:I,textDistance:V};return E({},W,F)}function C(I,F,V,W,G){if(!F)return"";var J=(I+"").split(` +`+f.stack):f},0)}}return a.prototype.emit=function(f){this.listeners.forEach(function(x){x(f)})},a.prototype.onUnexpectedError=function(f){this.unexpectedErrorHandler(f),this.emit(f)},a.prototype.onUnexpectedExternalError=function(f){this.unexpectedErrorHandler(f)},a}(),j=new Y;function L(a){s(a)||j.onUnexpectedError(a);return}function U(a){s(a)||j.onUnexpectedExternalError(a);return}function S(a){if(a instanceof Error){var f=a.name,x=a.message,y=a.stacktrace||a.stack;return{$isError:!0,name:f,message:x,stack:y}}return a}var g="Canceled";function s(a){return a instanceof Error&&a.name===g&&a.message===g}function d(){var a=new Error(g);return a.name=a.message,a}function w(a){return a?new Error("Illegal argument: "+a):new Error("Illegal argument")}function p(a){return a?new Error("Illegal state: "+a):new Error("Illegal state")}},"06Qe":function(Ye,ie,_){var Y=_("ItGF"),j="urn:schemas-microsoft-com:vml",L=typeof window=="undefined"?null:window,U=!1,S=L&&L.document;function g(w){return s(w)}var s;if(S&&!Y.canvasSupported)try{!S.namespaces.zrvml&&S.namespaces.add("zrvml",j),s=function(w){return S.createElement("')}}catch(w){s=function(p){return S.createElement("<"+p+' xmlns="'+j+'" class="zrvml">')}}function d(){if(U||!S)return;U=!0;var w=S.styleSheets;w.length<31?S.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):w[0].addRule(".zrvml","behavior:url(#default#VML)")}ie.doc=S,ie.createNode=g,ie.initVML=d},"0eGx":function(Ye,ie,_){Ye.exports=_.p+"static/zhong.c1924b73.svg"},"0r65":function(Ye,ie){var _=arguments[3],Y=arguments[4],j=arguments[5],L=JSON.stringify;Ye.exports=function(U,S){for(var g,s=Object.keys(j),d=0,w=s.length;d=0;b--){var E;if(u[b]!==r&&!u[b].ignore&&(E=x(u[b],O,i))&&(!h.topTarget&&(h.topTarget=u[b]),E!==s)){h.target=u[b];break}}return h},processGesture:function(O,i){this._gestureMgr||(this._gestureMgr=new g);var r=this._gestureMgr;i==="start"&&r.clear();var u=r.recognize(O,this.findHover(O.zrX,O.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),u){var h=u.type;O.gestureEvent=h,this.dispatchToElement({target:u.target},h,u.event)}}},Y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(O){f.prototype[O]=function(i){var r=i.zrX,u=i.zrY,h=y(this,r,u),b,E;if((O!=="mouseup"||!h)&&(b=this.findHover(r,u),E=b.target),O==="mousedown")this._downEl=E,this._downPoint=[i.zrX,i.zrY],this._upEl=E;else if(O==="mouseup")this._upEl=E;else if(O==="click"){if(this._downEl!==this._upEl||!this._downPoint||j.dist(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(b,O,i)}});function x(O,i,r){if(O[O.rectHover?"rectContain":"contain"](i,r)){for(var u=O,h;u;){if(u.clipPath&&!u.clipPath.contain(i,r))return!1;u.silent&&(h=!0),u=u.parent}return h?s:!0}return!1}function y(O,i,r){var u=O.painter;return i<0||i>u.getWidth()||r<0||r>u.getHeight()}Y.mixin(f,U),Y.mixin(f,L);var m=f;Ye.exports=m},"19Vz":function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){Y.defineOption("placeholder","",function(d,w,p){var a=p&&p!=Y.Init;if(w&&!a)d.on("blur",S),d.on("change",g),d.on("swapDoc",g),Y.on(d.getInputField(),"compositionupdate",d.state.placeholderCompose=function(){U(d)}),g(d);else if(!w&&a){d.off("blur",S),d.off("change",g),d.off("swapDoc",g),Y.off(d.getInputField(),"compositionupdate",d.state.placeholderCompose),j(d);var f=d.getWrapperElement();f.className=f.className.replace(" CodeMirror-empty","")}w&&!d.hasFocus()&&S(d)});function j(d){d.state.placeholder&&(d.state.placeholder.parentNode.removeChild(d.state.placeholder),d.state.placeholder=null)}function L(d){j(d);var w=d.state.placeholder=document.createElement("pre");w.style.cssText="height: 0; overflow: visible",w.style.direction=d.getOption("direction"),w.className="CodeMirror-placeholder CodeMirror-line-like";var p=d.getOption("placeholder");typeof p=="string"&&(p=document.createTextNode(p)),w.appendChild(p),d.display.lineSpace.insertBefore(w,d.display.lineSpace.firstChild)}function U(d){setTimeout(function(){var w=!1,p=d.getInputField();p.nodeName=="TEXTAREA"?w=!p.value:d.lineCount()==1&&(w=!/[^\u200b]/.test(p.querySelector(".CodeMirror-line").textContent)),w?L(d):j(d)},20)}function S(d){s(d)&&L(d)}function g(d){var w=d.getWrapperElement(),p=s(d);w.className=w.className.replace(" CodeMirror-empty","")+(p?" CodeMirror-empty":""),p?L(d):j(d)}function s(d){return d.lineCount()===1&&d.getLine(0)===""}})},"1Jh7":function(Ye,ie,_){var Y=_("y+Vt"),j=_("T6xi"),L=Y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(U,S){j.buildPath(U,S,!1)}});Ye.exports=L},"1MYJ":function(Ye,ie,_){var Y=_("y+Vt"),j=Y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var L=this.__dirtyPath,U=this.shape.paths,S=0;S=this._maxSize&&a>0){var x=d.head;d.remove(x),delete w[x.key],p=x.value,this._lastRemovedEntry=x}f?f.value=s:f=new j(s),f.key=g,d.insertEntry(f),w[g]=f}return p},U.get=function(g){var s=this._map[g],d=this._list;if(s!=null)return s!==d.tail&&(d.remove(s),d.insertEntry(s)),s.value},U.clear=function(){this._list.clear(),this._map={}};var S=L;Ye.exports=S},"1bdT":function(Ye,ie,_){var Y=_("3gBT"),j=_("H6uX"),L=_("DN4a"),U=_("vWvF"),S=_("bYtY"),g=function(d){L.call(this,d),j.call(this,d),U.call(this,d),this.id=d.id||Y()};g.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(d,w){switch(this.draggable){case"horizontal":w=0;break;case"vertical":d=0;break}var p=this.transform;p||(p=this.transform=[1,0,0,1,0,0]),p[4]+=d,p[5]+=w,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(d,w){},attrKV:function(d,w){if(d==="position"||d==="scale"||d==="origin"){if(w){var p=this[d];p||(p=this[d]=[]),p[0]=w[0],p[1]=w[1]}}else this[d]=w},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(d,w){if(typeof d=="string")this.attrKV(d,w);else if(S.isObject(d))for(var p in d)d.hasOwnProperty(p)&&this.attrKV(p,d[p]);return this.dirty(!1),this},setClipPath:function(d){var w=this.__zr;w&&d.addSelfToZr(w),this.clipPath&&this.clipPath!==d&&this.removeClipPath(),this.clipPath=d,d.__zr=w,d.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var d=this.clipPath;d&&(d.__zr&&d.removeSelfFromZr(d.__zr),d.__zr=null,d.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(d){this.__zr=d;var w=this.animators;if(w)for(var p=0;p")):null:c.match("--")?P(m("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),P(O(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),M.tokenize=m("meta","?>"),"meta"):(p=c.eat("/")?"closeTag":"openTag",M.tokenize=x,"tag bracket");if(R=="&"){var k;return c.eat("#")?c.eat("x")?k=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):k=c.eatWhile(/[\d]/)&&c.eat(";"):k=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),k?"atom":"error"}else return c.eatWhile(/[^&<]/),null}f.isInText=!0;function x(c,M){var P=c.next();if(P==">"||P=="/"&&c.eat(">"))return M.tokenize=f,p=P==">"?"endTag":"selfcloseTag","tag bracket";if(P=="=")return p="equals",null;if(P=="<"){M.tokenize=f,M.state=h,M.tagName=M.tagStart=null;var R=M.tokenize(c,M);return R?R+" tag error":"tag error"}else return/[\'\"]/.test(P)?(M.tokenize=y(P),M.stringStartCol=c.column(),M.tokenize(c,M)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function y(c){var M=function(P,R){for(;!P.eol();)if(P.next()==c){R.tokenize=x;break}return"string"};return M.isInAttribute=!0,M}function m(c,M){return function(P,R){for(;!P.eol();){if(P.match(M)){R.tokenize=f;break}P.next()}return c}}function O(c){return function(M,P){for(var R;(R=M.next())!=null;){if(R=="<")return P.tokenize=O(c+1),P.tokenize(M,P);if(R==">")if(c==1){P.tokenize=f;break}else return P.tokenize=O(c-1),P.tokenize(M,P)}return"meta"}}function i(c,M,P){this.prev=c.context,this.tagName=M,this.indent=c.indented,this.startOfLine=P,(s.doNotIndent.hasOwnProperty(M)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function r(c){c.context&&(c.context=c.context.prev)}function u(c,M){for(var P;;){if(!c.context)return;if(P=c.context.tagName,!s.contextGrabbers.hasOwnProperty(P)||!s.contextGrabbers[P].hasOwnProperty(M))return;r(c)}}function h(c,M,P){return c=="openTag"?(P.tagStart=M.column(),b):c=="closeTag"?E:h}function b(c,M,P){return c=="word"?(P.tagName=M.current(),a="tag",A):s.allowMissingTagName&&c=="endTag"?(a="tag bracket",A(c,M,P)):(a="error",b)}function E(c,M,P){if(c=="word"){var R=M.current();return P.context&&P.context.tagName!=R&&s.implicitlyClosed.hasOwnProperty(P.context.tagName)&&r(P),P.context&&P.context.tagName==R||s.matchClosing===!1?(a="tag",t):(a="tag error",C)}else return s.allowMissingTagName&&c=="endTag"?(a="tag bracket",t(c,M,P)):(a="error",C)}function t(c,M,P){return c!="endTag"?(a="error",t):(r(P),h)}function C(c,M,P){return a="error",t(c,M,P)}function A(c,M,P){if(c=="word")return a="attribute",v;if(c=="endTag"||c=="selfcloseTag"){var R=P.tagName,k=P.tagStart;return P.tagName=P.tagStart=null,c=="selfcloseTag"||s.autoSelfClosers.hasOwnProperty(R)?u(P,R):(u(P,R),P.context=new i(P,R,k==P.indented)),h}return a="error",A}function v(c,M,P){return c=="equals"?o:(s.allowMissing||(a="error"),A(c,M,P))}function o(c,M,P){return c=="string"?l:c=="word"&&s.allowUnquoted?(a="string",A):(a="error",A(c,M,P))}function l(c,M,P){return c=="string"?l:A(c,M,P)}return{startState:function(c){var M={tokenize:f,state:h,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(M.baseIndent=c),M},token:function(c,M){if(!M.tagName&&c.sol()&&(M.indented=c.indentation()),c.eatSpace())return null;p=null;var P=M.tokenize(c,M);return(P||p)&&P!="comment"&&(a=null,M.state=M.state(p||P,c,M),a&&(P=a=="error"?P+" error":a)),P},indent:function(c,M,P){var R=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+g;if(R&&R.noIndent)return Y.Pass;if(c.tokenize!=x&&c.tokenize!=f)return P?P.match(/^(\s*)/)[0].length:0;if(c.tagName)return s.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+g*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(c){c.state==o&&(c.state=A)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var M=[],P=c.context;P;P=P.prev)P.tagName&&M.push(P.tagName);return M.reverse()}}}),Y.defineMIME("text/xml","xml"),Y.defineMIME("application/xml","xml"),Y.mimeModes.hasOwnProperty("text/html")||Y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Ye,ie,_){"use strict";_.d(ie,"d",function(){return At}),_.d(ie,"b",function(){return dt}),_.d(ie,"c",function(){return xt}),_.d(ie,"a",function(){return Dt});var Y=_("VTBJ"),j=_("1OyB"),L=_("vuIU"),U=_("JX7q"),S=_("Ji7U"),g=_("LK+K"),s=_("q1tI"),d=_("I8Z2"),w=_("BGR+"),p=_("wx14"),a=_("rePB"),f=_("4IlW"),x=_("2GS6"),y=_("Gytx"),m=_.n(y),O=_("TSYQ"),i=_.n(O),r=_("U8pU"),u=_("ODXe"),h=/iPhone/i,b=/iPod/i,E=/iPad/i,t=/\bAndroid(?:.+)Mobile\b/i,C=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,v=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,o=/Windows Phone/i,l=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,M=/BB10/i,P=/Opera Mini/i,R=/\b(CriOS|Chrome)(?:.+)Mobile/i,k=/Mobile(?:.+)Firefox\b/i;function I(mn,pe){return mn.test(pe)}function F(mn){var pe=mn||(typeof navigator!="undefined"?navigator.userAgent:""),Gt=pe.split("[FBAN");if(typeof Gt[1]!="undefined"){var Lt=Gt,Be=Object(u.a)(Lt,1);pe=Be[0]}if(Gt=pe.split("Twitter"),typeof Gt[1]!="undefined"){var ot=Gt,Xt=Object(u.a)(ot,1);pe=Xt[0]}var Pt={apple:{phone:I(h,pe)&&!I(o,pe),ipod:I(b,pe),tablet:!I(h,pe)&&I(E,pe)&&!I(o,pe),device:(I(h,pe)||I(b,pe)||I(E,pe))&&!I(o,pe)},amazon:{phone:I(A,pe),tablet:!I(A,pe)&&I(v,pe),device:I(A,pe)||I(v,pe)},android:{phone:!I(o,pe)&&I(A,pe)||!I(o,pe)&&I(t,pe),tablet:!I(o,pe)&&!I(A,pe)&&!I(t,pe)&&(I(v,pe)||I(C,pe)),device:!I(o,pe)&&(I(A,pe)||I(v,pe)||I(t,pe)||I(C,pe))||I(/\bokhttp\b/i,pe)},windows:{phone:I(o,pe),tablet:I(l,pe),device:I(o,pe)||I(l,pe)},other:{blackberry:I(c,pe),blackberry10:I(M,pe),opera:I(P,pe),firefox:I(k,pe),chrome:I(R,pe),device:I(c,pe)||I(M,pe)||I(P,pe)||I(k,pe)||I(R,pe)},any:null,phone:null,tablet:null};return Pt.any=Pt.apple.device||Pt.android.device||Pt.windows.device||Pt.other.device,Pt.phone=Pt.apple.phone||Pt.android.phone||Pt.windows.phone,Pt.tablet=Pt.apple.tablet||Pt.android.tablet||Pt.windows.tablet,Pt}var V=Object(Y.a)(Object(Y.a)({},F()),{},{isMobile:F}),W=V;function G(){}function J(mn,pe,Gt){var Lt=pe||"";return mn.key||"".concat(Lt,"item_").concat(Gt)}function X(mn){return"".concat(mn,"-menu-")}function te(mn,pe){var Gt=-1;s.Children.forEach(mn,function(Lt){Gt+=1,Lt&&Lt.type&&Lt.type.isMenuItemGroup?s.Children.forEach(Lt.props.children,function(Be){Gt+=1,pe(Be,Gt)}):pe(Lt,Gt)})}function ee(mn,pe,Gt){if(!mn||Gt.find)return;s.Children.forEach(mn,function(Lt){if(Lt){var Be=Lt.type;if(!Be||!(Be.isSubMenu||Be.isMenuItem||Be.isMenuItemGroup))return;pe.indexOf(Lt.key)!==-1?Gt.find=!0:Lt.props.children&&ee(Lt.props.children,pe,Gt)}})}var be=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],ge=function(pe){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt=pe&&typeof pe.getBoundingClientRect=="function"&&pe.getBoundingClientRect().width;if(Lt){if(Gt){var Be=getComputedStyle(pe),ot=Be.marginLeft,Xt=Be.marginRight;Lt+=+ot.replace("px","")+ +Xt.replace("px","")}Lt=+Lt.toFixed(6)}return Lt||0},je=function(pe,Gt,Lt){pe&&Object(r.a)(pe.style)==="object"&&(pe.style[Gt]=Lt)},He=function(){return W.any},nt=_("KQm4"),Ge=_("Ff2n"),he=_("i8i4"),ce=_("bdgK"),Ee=_("uciX"),fe=_("8XRh"),Ne={adjustX:1,adjustY:1},Ce={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ne,offset:[4,0]}},xe={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ne,offset:[4,0]}},ze=Ce,Le=0,Fe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Pe=function(pe,Gt,Lt){var Be=X(Gt),ot=pe.getState();pe.setState({defaultActiveFirst:Object(Y.a)(Object(Y.a)({},ot.defaultActiveFirst),{},Object(a.a)({},Be,Lt))})},Ve=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(Lt){var Be;Object(j.a)(this,Gt),Be=pe.call(this,Lt),Be.onDestroy=function(bt){Be.props.onDestroy(bt)},Be.onKeyDown=function(bt){var ft=bt.keyCode,Nt=Be.menuInstance,jt=Be.props,bn=jt.isOpen,Te=jt.store;if(ft===f.a.ENTER)return Be.onTitleClick(bt),Pe(Te,Be.props.eventKey,!0),!0;if(ft===f.a.RIGHT)return bn?Nt.onKeyDown(bt):(Be.triggerOpenChange(!0),Pe(Te,Be.props.eventKey,!0)),!0;if(ft===f.a.LEFT){var ve;if(bn)ve=Nt.onKeyDown(bt);else return;return ve||(Be.triggerOpenChange(!1),ve=!0),ve}return bn&&(ft===f.a.UP||ft===f.a.DOWN)?Nt.onKeyDown(bt):void 0},Be.onOpenChange=function(bt){Be.props.onOpenChange(bt)},Be.onPopupVisibleChange=function(bt){Be.triggerOpenChange(bt,bt?"mouseenter":"mouseleave")},Be.onMouseEnter=function(bt){var ft=Be.props,Nt=ft.eventKey,jt=ft.onMouseEnter,bn=ft.store;Pe(bn,Be.props.eventKey,!1),jt({key:Nt,domEvent:bt})},Be.onMouseLeave=function(bt){var ft=Be.props,Nt=ft.parentMenu,jt=ft.eventKey,bn=ft.onMouseLeave;Nt.subMenuInstance=Object(U.a)(Be),bn({key:jt,domEvent:bt})},Be.onTitleMouseEnter=function(bt){var ft=Be.props,Nt=ft.eventKey,jt=ft.onItemHover,bn=ft.onTitleMouseEnter;jt({key:Nt,hover:!0}),bn({key:Nt,domEvent:bt})},Be.onTitleMouseLeave=function(bt){var ft=Be.props,Nt=ft.parentMenu,jt=ft.eventKey,bn=ft.onItemHover,Te=ft.onTitleMouseLeave;Nt.subMenuInstance=Object(U.a)(Be),bn({key:jt,hover:!1}),Te({key:jt,domEvent:bt})},Be.onTitleClick=function(bt){var ft=Object(U.a)(Be),Nt=ft.props;if(Nt.onTitleClick({key:Nt.eventKey,domEvent:bt}),Nt.triggerSubMenuAction==="hover")return;Be.triggerOpenChange(!Nt.isOpen,"click"),Pe(Nt.store,Be.props.eventKey,!1)},Be.onSubMenuClick=function(bt){typeof Be.props.onClick=="function"&&Be.props.onClick(Be.addKeyPath(bt))},Be.onSelect=function(bt){Be.props.onSelect(bt)},Be.onDeselect=function(bt){Be.props.onDeselect(bt)},Be.getPrefixCls=function(){return"".concat(Be.props.rootPrefixCls,"-submenu")},Be.getActiveClassName=function(){return"".concat(Be.getPrefixCls(),"-active")},Be.getDisabledClassName=function(){return"".concat(Be.getPrefixCls(),"-disabled")},Be.getSelectedClassName=function(){return"".concat(Be.getPrefixCls(),"-selected")},Be.getOpenClassName=function(){return"".concat(Be.props.rootPrefixCls,"-submenu-open")},Be.saveMenuInstance=function(bt){Be.menuInstance=bt},Be.addKeyPath=function(bt){return Object(Y.a)(Object(Y.a)({},bt),{},{keyPath:(bt.keyPath||[]).concat(Be.props.eventKey)})},Be.triggerOpenChange=function(bt,ft){var Nt=Be.props.eventKey,jt=function(){Be.onOpenChange({key:Nt,item:Object(U.a)(Be),trigger:ft,open:bt})};ft==="mouseenter"?Be.mouseenterTimeout=setTimeout(function(){jt()},0):jt()},Be.isChildrenSelected=function(){var bt={find:!1};return ee(Be.props.children,Be.props.selectedKeys,bt),bt.find},Be.isOpen=function(){return Be.props.openKeys.indexOf(Be.props.eventKey)!==-1},Be.adjustWidth=function(){if(!Be.subMenuTitle||!Be.menuInstance)return;var bt=he.findDOMNode(Be.menuInstance);if(bt.offsetWidth>=Be.subMenuTitle.offsetWidth)return;bt.style.minWidth="".concat(Be.subMenuTitle.offsetWidth,"px")},Be.saveSubMenuTitle=function(bt){Be.subMenuTitle=bt},Be.getBaseProps=function(){var bt=Object(U.a)(Be),ft=bt.props;return{mode:ft.mode==="horizontal"?"vertical":ft.mode,visible:Be.props.isOpen,level:ft.level+1,inlineIndent:ft.inlineIndent,focusable:!1,onClick:Be.onSubMenuClick,onSelect:Be.onSelect,onDeselect:Be.onDeselect,onDestroy:Be.onDestroy,selectedKeys:ft.selectedKeys,eventKey:"".concat(ft.eventKey,"-menu-"),openKeys:ft.openKeys,motion:ft.motion,onOpenChange:Be.onOpenChange,subMenuOpenDelay:ft.subMenuOpenDelay,parentMenu:Object(U.a)(Be),subMenuCloseDelay:ft.subMenuCloseDelay,forceSubMenuRender:ft.forceSubMenuRender,triggerSubMenuAction:ft.triggerSubMenuAction,builtinPlacements:ft.builtinPlacements,defaultActiveFirst:ft.store.getState().defaultActiveFirst[X(ft.eventKey)],multiple:ft.multiple,prefixCls:ft.rootPrefixCls,id:Be.internalMenuId,manualRef:Be.saveMenuInstance,itemIcon:ft.itemIcon,expandIcon:ft.expandIcon,direction:ft.direction}},Be.getMotion=function(bt,ft){var Nt=Object(U.a)(Be),jt=Nt.haveRendered,bn=Be.props,Te=bn.motion,ve=bn.rootPrefixCls,Q=Object(Y.a)(Object(Y.a)({},Te),{},{leavedClassName:"".concat(ve,"-hidden"),removeOnLeave:!1,motionAppear:jt||!ft||bt!=="inline"});return Q};var ot=Lt.store,Xt=Lt.eventKey,Pt=ot.getState(),$t=Pt.defaultActiveFirst;Be.isRootMenu=!1;var Zt=!1;return $t&&(Zt=$t[Xt]),Pe(ot,Xt,Zt),Be}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this,ot=this.props,Xt=ot.mode,Pt=ot.parentMenu,$t=ot.manualRef;if($t&&$t(this),Xt!=="horizontal"||!Pt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Be.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Be=this.props,ot=Be.onDestroy,Xt=Be.eventKey;ot&&ot(Xt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Be){var ot=this,Xt=this.getBaseProps(),Pt=this.getMotion(Xt.mode,Xt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Xt.visible||Xt.forceSubMenuRender,!this.haveOpened)return s.createElement("div",null);var $t=Xt.direction;return s.createElement(fe.default,Object.assign({visible:Xt.visible},Pt),function(Zt){var bt=Zt.className,ft=Zt.style,Nt=i()("".concat(Xt.prefixCls,"-sub"),bt,Object(a.a)({},"".concat(Xt.prefixCls,"-rtl"),$t==="rtl"));return s.createElement(Qe,Object.assign({},Xt,{id:ot.internalMenuId,className:Nt,style:ft}),Be)})}},{key:"render",value:function(){var Be,ot=Object(Y.a)({},this.props),Xt=ot.isOpen,Pt=this.getPrefixCls(),$t=ot.mode==="inline",Zt=i()(Pt,"".concat(Pt,"-").concat(ot.mode),(Be={},Object(a.a)(Be,ot.className,!!ot.className),Object(a.a)(Be,this.getOpenClassName(),Xt),Object(a.a)(Be,this.getActiveClassName(),ot.active||Xt&&!$t),Object(a.a)(Be,this.getDisabledClassName(),ot.disabled),Object(a.a)(Be,this.getSelectedClassName(),this.isChildrenSelected()),Be));this.internalMenuId||(ot.eventKey?this.internalMenuId="".concat(ot.eventKey,"$Menu"):(Le+=1,this.internalMenuId="$__$".concat(Le,"$Menu")));var bt={},ft={},Nt={};ot.disabled||(bt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ft={onClick:this.onTitleClick},Nt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var jt={},bn=ot.direction;$t&&(bn==="rtl"?jt.paddingRight=ot.inlineIndent*ot.level:jt.paddingLeft=ot.inlineIndent*ot.level);var Te={};this.props.isOpen&&(Te={"aria-owns":this.internalMenuId});var ve=null;ot.mode!=="horizontal"&&(ve=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ve=s.createElement(this.props.expandIcon,Object(Y.a)({},this.props))));var Q=s.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:jt,className:"".concat(Pt,"-title"),role:"button"},Nt,ft,{"aria-expanded":Xt},Te,{"aria-haspopup":"true",title:typeof ot.title=="string"?ot.title:void 0}),ot.title,ve||s.createElement("i",{className:"".concat(Pt,"-arrow")})),$=this.renderChildren(ot.children),re=ot.parentMenu.isRootMenu?ot.parentMenu.props.getPopupContainer:function(jn){return jn.parentNode},de=Fe[ot.mode],Ue=ot.popupOffset?{offset:ot.popupOffset}:{},it=ot.mode==="inline"?"":ot.popupClassName;it+=bn==="rtl"?" ".concat(Pt,"-rtl"):"";var Mt=ot.disabled,Ln=ot.triggerSubMenuAction,kn=ot.subMenuOpenDelay,St=ot.forceSubMenuRender,an=ot.subMenuCloseDelay,Pn=ot.builtinPlacements;be.forEach(function(jn){return delete ot[jn]}),delete ot.onClick;var dn=bn==="rtl"?Object.assign({},xe,Pn):Object.assign({},Ce,Pn);return delete ot.direction,s.createElement("li",Object.assign({},ot,bt,{className:Zt,role:"menuitem"}),$t&&Q,$t&&$,!$t&&s.createElement(Ee.a,{prefixCls:Pt,popupClassName:i()("".concat(Pt,"-popup"),it),getPopupContainer:re,builtinPlacements:dn,popupPlacement:de,popupVisible:Xt,popupAlign:Ue,popup:$,action:Mt?[]:[Ln],mouseEnterDelay:kn,mouseLeaveDelay:an,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:St},Q))}}]),Gt}(s.Component);Ve.defaultProps={onMouseEnter:G,onMouseLeave:G,onTitleMouseEnter:G,onTitleMouseLeave:G,onTitleClick:G,manualRef:G,mode:"vertical",title:""};var at=Object(d.b)(function(mn,pe){var Gt=mn.openKeys,Lt=mn.activeKey,Be=mn.selectedKeys,ot=pe.eventKey,Xt=pe.subMenuKey;return{isOpen:Gt.indexOf(ot)>-1,active:Lt[Xt]===ot,selectedKeys:Be}})(Ve);at.isSubMenu=!0;var At=at,Rt="menuitem-overflowed",tn=.5,Qt=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(){var Lt;return Object(j.a)(this,Gt),Lt=pe.apply(this,arguments),Lt.resizeObserver=null,Lt.mutationObserver=null,Lt.originalTotalWidth=0,Lt.overflowedItems=[],Lt.menuItemSizes=[],Lt.cancelFrameId=null,Lt.state={lastVisibleIndex:void 0},Lt.getMenuItemNodes=function(){var Be=Lt.props.prefixCls,ot=he.findDOMNode(Object(U.a)(Lt));return ot?[].slice.call(ot.children).filter(function(Xt){return Xt.className.split(" ").indexOf("".concat(Be,"-overflowed-submenu"))<0}):[]},Lt.getOverflowedSubMenuItem=function(Be,ot,Xt){var Pt=Lt.props,$t=Pt.overflowedIndicator,Zt=Pt.level,bt=Pt.mode,ft=Pt.prefixCls,Nt=Pt.theme;if(Zt!==1||bt!=="horizontal")return null;var jt=Lt.props.children[0],bn=jt.props,Te=bn.children,ve=bn.title,Q=bn.style,$=Object(Ge.a)(bn,["children","title","style"]),re=Object(Y.a)({},Q),de="".concat(Be,"-overflowed-indicator"),Ue="".concat(Be,"-overflowed-indicator");ot.length===0&&Xt!==!0?re=Object(Y.a)(Object(Y.a)({},re),{},{display:"none"}):Xt&&(re=Object(Y.a)(Object(Y.a)({},re),{},{visibility:"hidden",position:"absolute"}),de="".concat(de,"-placeholder"),Ue="".concat(Ue,"-placeholder"));var it=Nt?"".concat(ft,"-").concat(Nt):"",Mt={};return be.forEach(function(Ln){$[Ln]!==void 0&&(Mt[Ln]=$[Ln])}),s.createElement(At,Object.assign({title:$t,className:"".concat(ft,"-overflowed-submenu"),popupClassName:it},Mt,{key:de,eventKey:Ue,disabled:!1,style:re}),ot)},Lt.setChildrenWidthAndResize=function(){if(Lt.props.mode!=="horizontal")return;var Be=he.findDOMNode(Object(U.a)(Lt));if(!Be)return;var ot=Be.children;if(!ot||ot.length===0)return;var Xt=Be.children[ot.length-1];je(Xt,"display","inline-block");var Pt=Lt.getMenuItemNodes(),$t=Pt.filter(function(Zt){return Zt.className.split(" ").indexOf(Rt)>=0});$t.forEach(function(Zt){je(Zt,"display","inline-block")}),Lt.menuItemSizes=Pt.map(function(Zt){return ge(Zt,!0)}),$t.forEach(function(Zt){je(Zt,"display","none")}),Lt.overflowedIndicatorWidth=ge(Be.children[Be.children.length-1],!0),Lt.originalTotalWidth=Lt.menuItemSizes.reduce(function(Zt,bt){return Zt+bt},0),Lt.handleResize(),je(Xt,"display","none")},Lt.handleResize=function(){if(Lt.props.mode!=="horizontal")return;var Be=he.findDOMNode(Object(U.a)(Lt));if(!Be)return;var ot=ge(Be);Lt.overflowedItems=[];var Xt=0,Pt;Lt.originalTotalWidth>ot+tn&&(Pt=-1,Lt.menuItemSizes.forEach(function($t){Xt+=$t,Xt+Lt.overflowedIndicatorWidth<=ot&&(Pt+=1)})),Lt.setState({lastVisibleIndex:Pt})},Lt}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){var Be=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ot=he.findDOMNode(this);if(!ot)return;this.resizeObserver=new ce.default(function(Xt){Xt.forEach(function(){var Pt=Be.cancelFrameId;cancelAnimationFrame(Pt),Be.cancelFrameId=requestAnimationFrame(Be.setChildrenWidthAndResize)})}),[].slice.call(ot.children).concat(ot).forEach(function(Xt){Be.resizeObserver.observe(Xt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Be.resizeObserver.disconnect(),[].slice.call(ot.children).concat(ot).forEach(function(Xt){Be.resizeObserver.observe(Xt)}),Be.setChildrenWidthAndResize()}),this.mutationObserver.observe(ot,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Be){var ot=this,Xt=this.state.lastVisibleIndex;return(Be||[]).reduce(function(Pt,$t,Zt){var bt=$t;if(ot.props.mode==="horizontal"){var ft=ot.getOverflowedSubMenuItem($t.props.eventKey,[]);Xt!==void 0&&ot.props.className.indexOf("".concat(ot.props.prefixCls,"-root"))!==-1&&(Zt>Xt&&(bt=s.cloneElement($t,{style:{display:"none"},eventKey:"".concat($t.props.eventKey,"-hidden"),className:"".concat(Rt)})),Zt===Xt+1&&(ot.overflowedItems=Be.slice(Xt+1).map(function(jt){return s.cloneElement(jt,{key:jt.props.eventKey,mode:"vertical-left"})}),ft=ot.getOverflowedSubMenuItem($t.props.eventKey,ot.overflowedItems)));var Nt=[].concat(Object(nt.a)(Pt),[ft,bt]);return Zt===Be.length-1&&Nt.push(ot.getOverflowedSubMenuItem($t.props.eventKey,[],!0)),Nt}return[].concat(Object(nt.a)(Pt),[bt])},[])}},{key:"render",value:function(){var Be=this.props,ot=Be.visible,Xt=Be.prefixCls,Pt=Be.overflowedIndicator,$t=Be.mode,Zt=Be.level,bt=Be.tag,ft=Be.children,Nt=Be.theme,jt=Object(Ge.a)(Be,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),bn=bt;return s.createElement(bn,Object.assign({},jt),this.renderChildren(ft))}}]),Gt}(s.Component);Qt.defaultProps={tag:"div",className:""};var Cn=Qt;function Un(mn){return mn.length?mn.every(function(pe){return!!pe.props.disabled}):!0}function mt(mn,pe,Gt){var Lt=mn.getState();mn.setState({activeKey:Object(Y.a)(Object(Y.a)({},Lt.activeKey),{},Object(a.a)({},pe,Gt))})}function lt(mn){return mn.eventKey||"0-menu-"}function Ht(mn,pe){var Gt=pe,Lt=mn.children,Be=mn.eventKey;if(Gt){var ot;if(te(Lt,function(Xt,Pt){Xt&&Xt.props&&!Xt.props.disabled&&Gt===J(Xt,Be,Pt)&&(ot=!0)}),ot)return Gt}return Gt=null,mn.defaultActiveFirst&&te(Lt,function(Xt,Pt){!Gt&&Xt&&!Xt.props.disabled&&(Gt=J(Xt,Be,Pt))}),Gt}function sn(mn){if(mn){var pe=this.instanceArray.indexOf(mn);pe!==-1?this.instanceArray[pe]=mn:this.instanceArray.push(mn)}}var Tt=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(Lt){var Be;return Object(j.a)(this,Gt),Be=pe.call(this,Lt),Be.onKeyDown=function(ot,Xt){var Pt=ot.keyCode,$t;if(Be.getFlatInstanceArray().forEach(function(bt){bt&&bt.props.active&&bt.onKeyDown&&($t=bt.onKeyDown(ot))}),$t)return 1;var Zt=null;return(Pt===f.a.UP||Pt===f.a.DOWN)&&(Zt=Be.step(Pt===f.a.UP?-1:1)),Zt?(ot.preventDefault(),mt(Be.props.store,lt(Be.props),Zt.props.eventKey),typeof Xt=="function"&&Xt(Zt),1):void 0},Be.onItemHover=function(ot){var Xt=ot.key,Pt=ot.hover;mt(Be.props.store,lt(Be.props),Pt?Xt:null)},Be.onDeselect=function(ot){Be.props.onDeselect(ot)},Be.onSelect=function(ot){Be.props.onSelect(ot)},Be.onClick=function(ot){Be.props.onClick(ot)},Be.onOpenChange=function(ot){Be.props.onOpenChange(ot)},Be.onDestroy=function(ot){Be.props.onDestroy(ot)},Be.getFlatInstanceArray=function(){return Be.instanceArray},Be.step=function(ot){var Xt=Be.getFlatInstanceArray(),Pt=Be.props.store.getState().activeKey[lt(Be.props)],$t=Xt.length;if(!$t)return null;ot<0&&(Xt=Xt.concat().reverse());var Zt=-1;if(Xt.every(function(jt,bn){return jt&&jt.props.eventKey===Pt?(Zt=bn,!1):!0}),!Be.props.defaultActiveFirst&&Zt!==-1&&Un(Xt.slice(Zt,$t-1)))return;var bt=(Zt+1)%$t,ft=bt;do{var Nt=Xt[ft];if(!Nt||Nt.props.disabled)ft=(ft+1)%$t;else return Nt}while(ft!==bt);return null},Be.renderCommonMenuItem=function(ot,Xt,Pt){var $t=Be.props.store.getState(),Zt=Object(U.a)(Be),bt=Zt.props,ft=J(ot,bt.eventKey,Xt),Nt=ot.props;if(!Nt||typeof ot.type=="string")return ot;var jt=ft===$t.activeKey,bn=Object(Y.a)(Object(Y.a)({mode:Nt.mode||bt.mode,level:bt.level,inlineIndent:bt.inlineIndent,renderMenuItem:Be.renderMenuItem,rootPrefixCls:bt.prefixCls,index:Xt,parentMenu:bt.parentMenu,manualRef:Nt.disabled?void 0:Object(x.a)(ot.ref,sn.bind(Object(U.a)(Be))),eventKey:ft,active:!Nt.disabled&&jt,multiple:bt.multiple,onClick:function(ve){(Nt.onClick||G)(ve),Be.onClick(ve)},onItemHover:Be.onItemHover,motion:bt.motion,subMenuOpenDelay:bt.subMenuOpenDelay,subMenuCloseDelay:bt.subMenuCloseDelay,forceSubMenuRender:bt.forceSubMenuRender,onOpenChange:Be.onOpenChange,onDeselect:Be.onDeselect,onSelect:Be.onSelect,builtinPlacements:bt.builtinPlacements,itemIcon:Nt.itemIcon||Be.props.itemIcon,expandIcon:Nt.expandIcon||Be.props.expandIcon},Pt),{},{direction:bt.direction});return(bt.mode==="inline"||He())&&(bn.triggerSubMenuAction="click"),s.cloneElement(ot,bn)},Be.renderMenuItem=function(ot,Xt,Pt){if(!ot)return null;var $t=Be.props.store.getState(),Zt={openKeys:$t.openKeys,selectedKeys:$t.selectedKeys,triggerSubMenuAction:Be.props.triggerSubMenuAction,subMenuKey:Pt};return Be.renderCommonMenuItem(ot,Xt,Zt)},Lt.store.setState({activeKey:Object(Y.a)(Object(Y.a)({},Lt.store.getState().activeKey),{},Object(a.a)({},Lt.eventKey,Ht(Lt,Lt.activeKey)))}),Be.instanceArray=[],Be}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Be){return this.props.visible||Be.visible||this.props.className!==Be.className||!m()(this.props.style,Be.style)}},{key:"componentDidUpdate",value:function(Be){var ot=this.props,Xt="activeKey"in ot?ot.activeKey:ot.store.getState().activeKey[lt(ot)],Pt=Ht(ot,Xt);if(Pt!==Xt)mt(ot.store,lt(ot),Pt);else if("activeKey"in Be){var $t=Ht(Be,Be.activeKey);Pt!==$t&&mt(ot.store,lt(ot),Pt)}}},{key:"render",value:function(){var Be=this,ot=Object(p.a)({},this.props);this.instanceArray=[];var Xt=i()(ot.prefixCls,ot.className,"".concat(ot.prefixCls,"-").concat(ot.mode)),Pt={className:Xt,role:ot.role||"menu"};ot.id&&(Pt.id=ot.id),ot.focusable&&(Pt.tabIndex=0,Pt.onKeyDown=this.onKeyDown);var $t=ot.prefixCls,Zt=ot.eventKey,bt=ot.visible,ft=ot.level,Nt=ot.mode,jt=ot.overflowedIndicator,bn=ot.theme;return be.forEach(function(Te){return delete ot[Te]}),delete ot.onClick,s.createElement(Cn,Object.assign({},ot,{prefixCls:$t,mode:Nt,tag:"ul",level:ft,theme:bn,visible:bt,overflowedIndicator:jt},Pt),s.Children.map(ot.children,function(Te,ve){return Be.renderMenuItem(Te,ve,Zt||"0-menu-")}))}}]),Gt}(s.Component);Tt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:G};var wt=Object(d.b)()(Tt),Qe=wt,Je=_("Kwbf");function Xe(mn,pe,Gt){var Lt=mn.prefixCls,Be=mn.motion,ot=mn.defaultMotions,Xt=ot===void 0?{}:ot,Pt=mn.openAnimation,$t=mn.openTransitionName,Zt=pe.switchingModeFromInline;if(Be)return Be;if(Object(r.a)(Pt)==="object"&&Pt)Object(Je.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Pt=="string")return{motionName:"".concat(Lt,"-open-").concat(Pt)};if($t)return{motionName:$t};var bt=Xt[Gt];return bt||(Zt?null:Xt.other)}var Oe=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(Lt){var Be;Object(j.a)(this,Gt),Be=pe.call(this,Lt),Be.inlineOpenKeys=[],Be.onSelect=function(Pt){var $t=Object(U.a)(Be),Zt=$t.props;if(Zt.selectable){var bt=Be.store.getState(),ft=bt.selectedKeys,Nt=Pt.key;Zt.multiple?ft=ft.concat([Nt]):ft=[Nt],"selectedKeys"in Zt||Be.store.setState({selectedKeys:ft}),Zt.onSelect(Object(Y.a)(Object(Y.a)({},Pt),{},{selectedKeys:ft}))}},Be.onClick=function(Pt){var $t=Be.getRealMenuMode(),Zt=Object(U.a)(Be),bt=Zt.store,ft=Zt.props.onOpenChange;$t!=="inline"&&!("openKeys"in Be.props)&&(bt.setState({openKeys:[]}),ft([])),Be.props.onClick(Pt)},Be.onKeyDown=function(Pt,$t){Be.innerMenu.getWrappedInstance().onKeyDown(Pt,$t)},Be.onOpenChange=function(Pt){var $t=Object(U.a)(Be),Zt=$t.props,bt=Be.store.getState().openKeys.concat(),ft=!1,Nt=function(bn){var Te=!1;if(bn.open)Te=bt.indexOf(bn.key)===-1,Te&&bt.push(bn.key);else{var ve=bt.indexOf(bn.key);Te=ve!==-1,Te&&bt.splice(ve,1)}ft=ft||Te};Array.isArray(Pt)?Pt.forEach(Nt):Nt(Pt),ft&&("openKeys"in Be.props||Be.store.setState({openKeys:bt}),Zt.onOpenChange(bt))},Be.onDeselect=function(Pt){var $t=Object(U.a)(Be),Zt=$t.props;if(Zt.selectable){var bt=Be.store.getState().selectedKeys.concat(),ft=Pt.key,Nt=bt.indexOf(ft);Nt!==-1&&bt.splice(Nt,1),"selectedKeys"in Zt||Be.store.setState({selectedKeys:bt}),Zt.onDeselect(Object(Y.a)(Object(Y.a)({},Pt),{},{selectedKeys:bt}))}},Be.onMouseEnter=function(Pt){Be.restoreModeVerticalFromInline();var $t=Be.props.onMouseEnter;$t&&$t(Pt)},Be.onTransitionEnd=function(Pt){var $t=Pt.propertyName==="width"&&Pt.target===Pt.currentTarget,Zt=Pt.target.className,bt=Object.prototype.toString.call(Zt)==="[object SVGAnimatedString]"?Zt.animVal:Zt,ft=Pt.propertyName==="font-size"&&bt.indexOf("anticon")>=0;($t||ft)&&Be.restoreModeVerticalFromInline()},Be.setInnerMenu=function(Pt){Be.innerMenu=Pt},Be.isRootMenu=!0;var ot=Lt.defaultSelectedKeys,Xt=Lt.defaultOpenKeys;return"selectedKeys"in Lt&&(ot=Lt.selectedKeys||[]),"openKeys"in Lt&&(Xt=Lt.openKeys||[]),Be.store=Object(d.c)({selectedKeys:ot,openKeys:Xt,activeKey:{"0-menu-":Ht(Lt,Lt.activeKey)}}),Be.state={switchingModeFromInline:!1},Be}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Be){this.updateOpentKeysWhenSwitchMode(Be),this.updateMiniStore();var ot=this.props,Xt=ot.siderCollapsed,Pt=ot.inlineCollapsed,$t=ot.onOpenChange;(!Be.inlineCollapsed&&Pt||!Be.siderCollapsed&&Xt)&&$t([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Be){var ot=this.props,Xt=this.store,Pt=this.inlineOpenKeys,$t=Xt.getState(),Zt={};Be.mode==="inline"&&ot.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in ot||((ot.inlineCollapsed&&!Be.inlineCollapsed||ot.siderCollapsed&&!Be.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=$t.openKeys.concat(),Zt.openKeys=[]),(!ot.inlineCollapsed&&Be.inlineCollapsed||!ot.siderCollapsed&&Be.siderCollapsed)&&(Zt.openKeys=Pt,this.inlineOpenKeys=[])),Object.keys(Zt).length&&Xt.setState(Zt)}},{key:"updateMenuDisplay",value:function(){var Be=this.props.collapsedWidth,ot=this.store,Xt=this.prevOpenKeys,Pt=this.getInlineCollapsed()&&(Be===0||Be==="0"||Be==="0px");Pt?(this.prevOpenKeys=ot.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Xt&&(this.store.setState({openKeys:Xt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Be=this.props.mode,ot=this.state.switchingModeFromInline,Xt=this.getInlineCollapsed();return ot&&Xt?"inline":Xt?"vertical":Be}},{key:"getInlineCollapsed",value:function(){var Be=this.props,ot=Be.inlineCollapsed,Xt=Be.siderCollapsed;return Xt!==void 0?Xt:ot}},{key:"restoreModeVerticalFromInline",value:function(){var Be=this.state.switchingModeFromInline;Be&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Be=Object(Y.a)({},Object(w.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ot=this.getRealMenuMode();return Be.className+=" ".concat(Be.prefixCls,"-root"),Be.direction==="rtl"&&(Be.className+=" ".concat(Be.prefixCls,"-rtl")),Be=Object(Y.a)(Object(Y.a)({},Be),{},{mode:ot,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Xe(this.props,this.state,ot)}),delete Be.openAnimation,delete Be.openTransitionName,s.createElement(d.a,{store:this.store},s.createElement(Qe,Object.assign({},Be,{ref:this.setInnerMenu}),this.props.children))}}]),Gt}(s.Component);Oe.defaultProps={selectable:!0,onClick:G,onSelect:G,onOpenChange:G,onDeselect:G,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:s.createElement("span",null,"\xB7\xB7\xB7")};var Ae=Oe,ye=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(){var Lt;return Object(j.a)(this,Gt),Lt=pe.apply(this,arguments),Lt.onKeyDown=function(Be){var ot=Be.keyCode;return ot===f.a.ENTER?(Lt.onClick(Be),!0):void 0},Lt.onMouseLeave=function(Be){var ot=Lt.props,Xt=ot.eventKey,Pt=ot.onItemHover,$t=ot.onMouseLeave;Pt({key:Xt,hover:!1}),$t({key:Xt,domEvent:Be})},Lt.onMouseEnter=function(Be){var ot=Lt.props,Xt=ot.eventKey,Pt=ot.onItemHover,$t=ot.onMouseEnter;Pt({key:Xt,hover:!0}),$t({key:Xt,domEvent:Be})},Lt.onClick=function(Be){var ot=Lt.props,Xt=ot.eventKey,Pt=ot.multiple,$t=ot.onClick,Zt=ot.onSelect,bt=ot.onDeselect,ft=ot.isSelected,Nt={key:Xt,keyPath:[Xt],item:Object(U.a)(Lt),domEvent:Be};$t(Nt),Pt?ft?bt(Nt):Zt(Nt):ft||Zt(Nt)},Lt.saveNode=function(Be){Lt.node=Be},Lt}return Object(L.a)(Gt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Be=this.props;Be.onDestroy&&Be.onDestroy(Be.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Be,ot=Object(Y.a)({},this.props),Xt=i()(this.getPrefixCls(),ot.className,(Be={},Object(a.a)(Be,this.getActiveClassName(),!ot.disabled&&ot.active),Object(a.a)(Be,this.getSelectedClassName(),ot.isSelected),Object(a.a)(Be,this.getDisabledClassName(),ot.disabled),Be)),Pt=Object(Y.a)(Object(Y.a)({},ot.attribute),{},{title:typeof ot.title=="string"?ot.title:void 0,className:Xt,role:ot.role||"menuitem","aria-disabled":ot.disabled});ot.role==="option"?Pt=Object(Y.a)(Object(Y.a)({},Pt),{},{role:"option","aria-selected":ot.isSelected}):(ot.role===null||ot.role==="none")&&(Pt.role="none");var $t={onClick:ot.disabled?null:this.onClick,onMouseLeave:ot.disabled?null:this.onMouseLeave,onMouseEnter:ot.disabled?null:this.onMouseEnter},Zt=Object(Y.a)({},ot.style);ot.mode==="inline"&&(ot.direction==="rtl"?Zt.paddingRight=ot.inlineIndent*ot.level:Zt.paddingLeft=ot.inlineIndent*ot.level),be.forEach(function(ft){return delete ot[ft]}),delete ot.direction;var bt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(bt=s.createElement(this.props.itemIcon,this.props)),s.createElement("li",Object.assign({},Object(w.default)(ot,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Pt,$t,{style:Zt,ref:this.saveNode}),ot.children,bt)}}]),Gt}(s.Component);ye.isMenuItem=!0,ye.defaultProps={onSelect:G,onMouseEnter:G,onMouseLeave:G,manualRef:G};var Se=Object(d.b)(function(mn,pe){var Gt=mn.activeKey,Lt=mn.selectedKeys,Be=pe.eventKey,ot=pe.subMenuKey;return{active:Gt[ot]===Be,isSelected:Lt.indexOf(Be)!==-1}})(ye),dt=Se,et=function(mn){Object(S.a)(Gt,mn);var pe=Object(g.a)(Gt);function Gt(){var Lt;return Object(j.a)(this,Gt),Lt=pe.apply(this,arguments),Lt.renderInnerMenuItem=function(Be){var ot=Lt.props,Xt=ot.renderMenuItem,Pt=ot.index;return Xt(Be,Pt,Lt.props.subMenuKey)},Lt}return Object(L.a)(Gt,[{key:"render",value:function(){var Be=Object(p.a)({},this.props),ot=Be.className,Xt=ot===void 0?"":ot,Pt=Be.rootPrefixCls,$t="".concat(Pt,"-item-group-title"),Zt="".concat(Pt,"-item-group-list"),bt=Be.title,ft=Be.children;return be.forEach(function(Nt){return delete Be[Nt]}),delete Be.onClick,delete Be.direction,s.createElement("li",Object.assign({},Be,{className:"".concat(Xt," ").concat(Pt,"-item-group")}),s.createElement("div",{className:$t,title:typeof bt=="string"?bt:void 0},bt),s.createElement("ul",{className:Zt},s.Children.map(ft,this.renderInnerMenuItem)))}}]),Gt}(s.Component);et.isMenuItemGroup=!0,et.defaultProps={disabled:!0};var xt=et,xn=function(pe){var Gt=pe.className,Lt=pe.rootPrefixCls,Be=pe.style;return s.createElement("li",{className:"".concat(Gt," ").concat(Lt,"-item-divider"),style:Be})};xn.defaultProps={disabled:!0,className:"",style:{}};var Dt=xn,_t=ie.e=Ae},"24YM":function(Ye,ie,_){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.SensorTabIndex=ie.SensorClassName=ie.SizeSensorId=void 0;var Y="size-sensor-id";ie.SizeSensorId=Y;var j="size-sensor-object";ie.SensorClassName=j;var L="-1";ie.SensorTabIndex=L},"24hK":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return L});var Y=_("JYp7"),j=function(){function U(S){this.element=S,this.next=U.Undefined,this.prev=U.Undefined}return U.Undefined=new U(void 0),U}(),L=function(){function U(){this._first=j.Undefined,this._last=j.Undefined,this._size=0}return Object.defineProperty(U.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),U.prototype.isEmpty=function(){return this._first===j.Undefined},U.prototype.clear=function(){this._first=j.Undefined,this._last=j.Undefined,this._size=0},U.prototype.unshift=function(S){return this._insert(S,!1)},U.prototype.push=function(S){return this._insert(S,!0)},U.prototype._insert=function(S,g){var s=this,d=new j(S);if(this._first===j.Undefined)this._first=d,this._last=d;else if(g){var w=this._last;this._last=d,d.prev=w,w.next=d}else{var p=this._first;this._first=d,d.next=p,p.prev=d}this._size+=1;var a=!1;return function(){a||(a=!0,s._remove(d))}},U.prototype.shift=function(){if(this._first===j.Undefined)return;var S=this._first.element;return this._remove(this._first),S},U.prototype.pop=function(){if(this._last===j.Undefined)return;var S=this._last.element;return this._remove(this._last),S},U.prototype._remove=function(S){if(S.prev!==j.Undefined&&S.next!==j.Undefined){var g=S.prev;g.next=S.next,S.next.prev=g}else S.prev===j.Undefined&&S.next===j.Undefined?(this._first=j.Undefined,this._last=j.Undefined):S.next===j.Undefined?(this._last=this._last.prev,this._last.next=j.Undefined):S.prev===j.Undefined&&(this._first=this._first.next,this._first.prev=j.Undefined);this._size-=1},U.prototype.iterator=function(){var S,g=this._first;return{next:function(){return g===j.Undefined?Y.c:(S?S.value=g.element:S={done:!1,value:g.element},g=g.next,S)}}},U.prototype.toArray=function(){for(var S=[],g=this._first;g!==j.Undefined;g=g.next)S.push(g.element);return S},U}()},"2DNl":function(Ye,ie,_){var Y=_("IMiH"),j=_("loD1"),L=_("59Ip"),U=_("aKvl"),S=_("n1HI"),g=_("hX1E"),s=g.normalizeRadian,d=_("Sj9i"),w=_("hyiK"),p=Y.CMD,a=Math.PI*2,f=1e-4;function x(t,C){return Math.abs(t-C)C&&R>v&&R>l&&R>M||R1&&O(),V=d.cubicAt(C,v,l,M,m[0]),F>1&&(W=d.cubicAt(C,v,l,M,m[1]))),F===2?JC&&M>v&&M>l||M=0&&R<=1){for(var k=0,I=d.quadraticAt(C,v,l,R),F=0;FA||M<-A)return 0;var P=Math.sqrt(A*A-M*M);y[0]=-P,y[1]=P;var R=Math.abs(v-o);if(R<1e-4)return 0;if(R%a<1e-4){v=0,o=a;var k=l?1:-1;return c>=y[0]+t&&c<=y[1]+t?k:0}if(l){var P=v;v=s(o),o=s(P)}else v=s(v),o=s(o);v>o&&(o+=a);for(var I=0,F=0;F<2;F++){var V=y[F];if(V+t>c){var W=Math.atan2(M,V),k=l?1:-1;W<0&&(W=a+W),(W>=v&&W<=o||W+a>=v&&W+a<=o)&&(W>Math.PI/2&&W1&&(A||(l+=w(c,M,P,R,v,o))),k===1&&(c=t[k],M=t[k+1],P=c,R=M);switch(I){case p.M:P=t[k++],R=t[k++],c=P,M=R;break;case p.L:if(A){if(j.containStroke(c,M,t[k],t[k+1],C,v,o))return!0}else l+=w(c,M,t[k],t[k+1],v,o)||0;c=t[k++],M=t[k++];break;case p.C:if(A){if(L.containStroke(c,M,t[k++],t[k++],t[k++],t[k++],t[k],t[k+1],C,v,o))return!0}else l+=i(c,M,t[k++],t[k++],t[k++],t[k++],t[k],t[k+1],v,o)||0;c=t[k++],M=t[k++];break;case p.Q:if(A){if(U.containStroke(c,M,t[k++],t[k++],t[k],t[k+1],C,v,o))return!0}else l+=r(c,M,t[k++],t[k++],t[k],t[k+1],v,o)||0;c=t[k++],M=t[k++];break;case p.A:var F=t[k++],V=t[k++],W=t[k++],G=t[k++],J=t[k++],X=t[k++];k+=1;var te=1-t[k++],ee=Math.cos(J)*W+F,be=Math.sin(J)*G+V;k>1?l+=w(c,M,ee,be,v,o):(P=ee,R=be);var ge=(v-F)*G/W+F;if(A){if(S.containStroke(F,V,G,J,J+X,te,C,ge,o))return!0}else l+=u(F,V,G,J,J+X,te,ge,o);c=Math.cos(J+X)*W+F,M=Math.sin(J+X)*G+V;break;case p.R:P=c=t[k++],R=M=t[k++];var je=t[k++],He=t[k++],ee=P+je,be=R+He;if(A){if(j.containStroke(P,R,ee,R,C,v,o)||j.containStroke(ee,R,ee,be,C,v,o)||j.containStroke(ee,be,P,be,C,v,o)||j.containStroke(P,be,P,R,C,v,o))return!0}else l+=w(ee,R,ee,be,v,o),l+=w(P,be,P,R,v,o);break;case p.Z:if(A){if(j.containStroke(c,M,P,R,C,v,o))return!0}else l+=w(c,M,P,R,v,o);c=P,M=R;break}}return!A&&!x(M,R)&&(l+=w(c,M,P,R,v,o)||0),l!==0}function b(t,C,A){return h(t,0,!1,C,A)}function E(t,C,A,v){return h(t,C,!0,A,v)}ie.contain=b,ie.containStroke=E},"2JKx":function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___21flX",flex_space_between:"flex_space_between___hkcwT",flex_box_vertical_center:"flex_box_vertical_center___1JAyR",flex_box_center_end:"flex_box_center_end___2trjo",flex_box_column:"flex_box_column___2q5e9",form:"form___1j7IG",efficiency:"efficiency___KDh-I",ipItem:"ipItem___2NlCp",ipWrp:"ipWrp___2kiZa"}},"2fw6":function(Ye,ie,_){var Y=_("y+Vt"),j=Y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(L,U,S){S&&L.moveTo(U.cx+U.r,U.cy),L.arc(U.cx,U.cy,U.r,0,Math.PI*2,!0)}});Ye.exports=j},"3C/r":function(Ye,ie){var _=function(j,L){this.image=j,this.repeat=L,this.type="pattern"};_.prototype.getCanvasPattern=function(j){return j.createPattern(this.image,this.repeat||"repeat")};var Y=_;Ye.exports=Y},"3CBa":function(Ye,ie,_){var Y=_("hydK"),j=Y.createElement,L=_("bYtY"),U=_("SUKs"),S=_("y+Vt"),g=_("Dagg"),s=_("dqUG"),d=_("DBLp"),w=_("sW+o"),p=_("n6Mw"),a=_("vKoX"),f=_("P47w"),x=f.path,y=f.image,m=f.text;function O(o){return parseInt(o,10)}function i(o){return o instanceof S?x:o instanceof g?y:o instanceof s?m:x}function r(o,l){return l&&o&&l.parentNode!==o}function u(o,l,c){if(r(o,l)&&c){var M=c.nextSibling;M?o.insertBefore(l,M):o.appendChild(l)}}function h(o,l){if(r(o,l)){var c=o.firstChild;c?o.insertBefore(l,c):o.appendChild(l)}}function b(o,l){l&&o&&l.parentNode===o&&o.removeChild(l)}function E(o){return o.__textSvgEl}function t(o){return o.__svgEl}var C=function(o,l,c,M){this.root=o,this.storage=l,this._opts=c=L.extend({},c||{});var P=j("svg");P.setAttribute("xmlns","http://www.w3.org/2000/svg"),P.setAttribute("version","1.1"),P.setAttribute("baseProfile","full"),P.style.cssText="user-select:none;position:absolute;left:0;top:0;";var R=j("g");P.appendChild(R);var k=j("g");P.appendChild(k),this.gradientManager=new w(M,k),this.clipPathManager=new p(M,k),this.shadowManager=new a(M,k);var I=document.createElement("div");I.style.cssText="overflow:hidden;position:relative",this._svgDom=P,this._svgRoot=k,this._backgroundRoot=R,this._viewport=I,o.appendChild(I),I.appendChild(P),this.resize(c.width,c.height),this._visibleList=[]};C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var l=j("rect");l.setAttribute("width",this.getWidth()),l.setAttribute("height",this.getHeight()),l.setAttribute("x",0),l.setAttribute("y",0),l.setAttribute("id",0),l.style.fill=o,this._backgroundRoot.appendChild(l),this._backgroundNode=l},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var l=this._svgRoot,c=this._visibleList,M=o.length,P=[],R;for(R=0;R=0;--k)if(R[k]===P)return!0;return!1}),c}else return null;else return c[0]},resize:function(o,l){var c=this._viewport;c.style.display="none";var M=this._opts;if(o!=null&&(M.width=o),l!=null&&(M.height=l),o=this._getSize(0),l=this._getSize(1),c.style.display="",this._width!==o||this._height!==l){this._width=o,this._height=l;var P=c.style;P.width=o+"px",P.height=l+"px";var R=this._svgDom;R.setAttribute("width",o),R.setAttribute("height",l)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",l))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var l=this._opts,c=["width","height"][o],M=["clientWidth","clientHeight"][o],P=["paddingLeft","paddingTop"][o],R=["paddingRight","paddingBottom"][o];if(l[c]!=null&&l[c]!=="auto")return parseFloat(l[c]);var k=this.root,I=document.defaultView.getComputedStyle(k);return(k[M]||O(I[c])||O(k.style[c]))-(O(I[P])||0)-(O(I[R])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> +\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function A(o){return function(){U('In SVG mode painter not support method "'+o+'"')}}L.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){C.prototype[o]=A(o)});var v=C;Ye.exports=v},"3e3G":function(Ye,ie,_){var Y=_("bYtY"),j=_("QuXc"),L=function(S,g,s,d,w){this.x=S==null?.5:S,this.y=g==null?.5:g,this.r=s==null?.5:s,this.type="radial",this.global=w||!1,j.call(this,d)};L.prototype={constructor:L},Y.inherits(L,j);var U=L;Ye.exports=U},"3gBT":function(Ye,ie){var _=2311;function Y(){return _++}Ye.exports=Y},"4fz+":function(Ye,ie,_){var Y=_("bYtY"),j=_("1bdT"),L=_("mFDi"),U=function(g){g=g||{},j.call(this,g);for(var s in g)g.hasOwnProperty(s)&&(this[s]=g[s]);this._children=[],this.__storage=null,this.__dirty=!0};U.prototype={constructor:U,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(g){return this._children[g]},childOfName:function(g){for(var s=this._children,d=0;d=0&&(d.splice(w,0,g),this._doAdd(g))}return this},_doAdd:function(g){g.parent&&g.parent.remove(g),g.parent=this;var s=this.__storage,d=this.__zr;s&&s!==g.__storage&&(s.addToStorage(g),g instanceof U&&g.addChildrenToStorage(s)),d&&d.refresh()},remove:function(g){var s=this.__zr,d=this.__storage,w=this._children,p=Y.indexOf(w,g);return p<0?this:(w.splice(p,1),g.parent=null,d&&(d.delFromStorage(g),g instanceof U&&g.delChildrenFromStorage(d)),s&&s.refresh(),this)},removeAll:function(){var g=this._children,s=this.__storage,d,w;for(w=0;w1e-4){A[0]=r-h,A[1]=u-b,v[0]=r+h,v[1]=u+b;return}if(d[0]=g(E)*h+r,d[1]=S(E)*b+u,w[0]=g(t)*h+r,w[1]=S(t)*b+u,o(A,d,w),l(v,d,w),E=E%s,E<0&&(E=E+s),t=t%s,t<0&&(t=t+s),E>t&&!C?t+=s:EE&&(p[0]=g(P)*h+r,p[1]=S(P)*b+u,o(A,p,A),l(v,p,v))}ie.fromPoints=a,ie.fromLine=f,ie.fromCubic=m,ie.fromQuadratic=O,ie.fromArc=i},"4qgm":function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"51gm":function(Ye,ie,_){Ye.exports={title:"title___1NT0J",wrap:"wrap___2hvUc"}},"55Ip":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return u}),_.d(ie,"b",function(){return A});var Y=_("Ty5D"),j=_("dI71"),L=_("q1tI"),U=_.n(L),S=_("YS25"),g=_("17x9"),s=_.n(g),d=_("wx14"),w=_("zLVn"),p=_("9R94"),a=function(o){Object(j.a)(l,o);function l(){for(var M,P=arguments.length,R=new Array(P),k=0;kU+y&&x>g+y&&x>d+y&&x>p+y||xL+y&&f>S+y&&f>s+y&&f>w+y||f=0||P.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;o.setState({goInputText:""}),I(o.getValidValue())},o.go=function(P){var R=o.state.goInputText;if(R==="")return;(P.keyCode===y.ENTER||P.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(S.a)(v,[{key:"getValidValue",value:function(){var l=this.state,c=l.goInputText,M=l.current;return!c||isNaN(c)?M:Number(c)}},{key:"getPageSizeOptions",value:function(){var l=this.props,c=l.pageSize,M=l.pageSizeOptions;return M.some(function(P){return P.toString()===c.toString()})?M:M.concat([c.toString()]).sort(function(P,R){var k=isNaN(Number(P))?0:Number(P),I=isNaN(Number(R))?0:Number(R);return k-I})}},{key:"render",value:function(){var l=this,c=this.props,M=c.pageSize,P=c.locale,R=c.rootPrefixCls,k=c.changeSize,I=c.quickGo,F=c.goButton,V=c.selectComponentClass,W=c.buildOptionText,G=c.selectPrefixCls,J=c.disabled,X=this.state.goInputText,te="".concat(R,"-options"),ee=V,be=null,ge=null,je=null;if(!k&&!I)return null;var He=this.getPageSizeOptions();if(k&&ee){var nt=He.map(function(Ge,he){return w.a.createElement(ee.Option,{key:he,value:Ge.toString()},(W||l.buildOptionText)(Ge))});be=w.a.createElement(ee,{disabled:J,prefixCls:G,showSearch:!1,className:"".concat(te,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||He[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},nt)}return I&&(F&&(je=typeof F=="boolean"?w.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:J,className:"".concat(te,"-quick-jumper-button")},P.jump_to_confirm):w.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),ge=w.a.createElement("div",{className:"".concat(te,"-quick-jumper")},P.jump_to,w.a.createElement("input",{disabled:J,type:"text",value:X,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),P.page,je)),w.a.createElement("li",{className:"".concat(te)},be,ge)}}]),v}(w.a.Component);m.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=m,i=_("N2Kk");function r(){}function u(C){return typeof C=="number"&&isFinite(C)&&Math.floor(C)===C}function h(C,A,v){return v}function b(C,A,v){var o=typeof C=="undefined"?A.pageSize:C;return Math.floor((v.total-1)/o)+1}var E=function(C){Object(g.a)(v,C);var A=Object(s.a)(v);function v(o){var l;Object(U.a)(this,v),l=A.call(this,o),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(b(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(k,I){var F=l.props.prefixCls,V=k||w.a.createElement("button",{type:"button","aria-label":I,className:"".concat(F,"-item-link")});return typeof k=="function"&&(V=w.a.createElement(k,Object(L.a)({},l.props))),V},l.savePaginationNode=function(k){l.paginationNode=k},l.isValid=function(k){return u(k)&&k!==l.state.current},l.shouldDisplayQuickJumper=function(){var k=l.props,I=k.showQuickJumper,F=k.pageSize,V=k.total;return V<=F?!1:I},l.handleKeyDown=function(k){(k.keyCode===y.ARROW_UP||k.keyCode===y.ARROW_DOWN)&&k.preventDefault()},l.handleKeyUp=function(k){var I=l.getValidValue(k),F=l.state.currentInputValue;I!==F&&l.setState({currentInputValue:I}),k.keyCode===y.ENTER?l.handleChange(I):k.keyCode===y.ARROW_UP?l.handleChange(I-1):k.keyCode===y.ARROW_DOWN&&l.handleChange(I+1)},l.changePageSize=function(k){var I=l.state.current,F=b(k,l.state,l.props);I=I>F?F:I,F===0&&(I=l.state.current),typeof k=="number"&&("pageSize"in l.props||l.setState({pageSize:k}),"current"in l.props||l.setState({current:I,currentInputValue:I})),l.props.onShowSizeChange(I,k),"onChange"in l.props&&l.props.onChange&&l.props.onChange(I,k)},l.handleChange=function(k){var I=l.props.disabled,F=k;if(l.isValid(F)&&!I){var V=b(void 0,l.state,l.props);F>V?F=V:F<1&&(F=1),"current"in l.props||l.setState({current:F,currentInputValue:F});var W=l.state.pageSize;return l.props.onChange(F,W),F}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?F-2:0),W=2;W=M?R=M:R=Number(c),R}},{key:"getShowSizeChanger",value:function(){var l=this.props,c=l.showSizeChanger,M=l.total,P=l.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:M>P}},{key:"renderPrev",value:function(l){var c=this.props,M=c.prevIcon,P=c.itemRender,R=P(l,"prev",this.getItemIcon(M,"prev page")),k=!this.hasPrev();return Object(d.isValidElement)(R)?Object(d.cloneElement)(R,{disabled:k}):R}},{key:"renderNext",value:function(l){var c=this.props,M=c.nextIcon,P=c.itemRender,R=P(l,"next",this.getItemIcon(M,"next page")),k=!this.hasNext();return Object(d.isValidElement)(R)?Object(d.cloneElement)(R,{disabled:k}):R}},{key:"render",value:function(){var l=this,c=this.props,M=c.prefixCls,P=c.className,R=c.style,k=c.disabled,I=c.hideOnSinglePage,F=c.total,V=c.locale,W=c.showQuickJumper,G=c.showLessItems,J=c.showTitle,X=c.showTotal,te=c.simple,ee=c.itemRender,be=c.showPrevNextJumpers,ge=c.jumpPrevIcon,je=c.jumpNextIcon,He=c.selectComponentClass,nt=c.selectPrefixCls,Ge=c.pageSizeOptions,he=this.state,ce=he.current,Ee=he.pageSize,fe=he.currentInputValue;if(I===!0&&F<=Ee)return null;var Ne=b(void 0,this.state,this.props),Ce=[],xe=null,ze=null,Le=null,Fe=null,Pe=null,Ve=W&&W.goButton,at=G?1:2,At=ce-1>0?ce-1:0,Rt=ce+1=at*2&&ce!==1+2&&(Ce[0]=Object(d.cloneElement)(Ce[0],{className:"".concat(M,"-item-after-jump-prev")}),Ce.unshift(xe)),Ne-ce>=at*2&&ce!==Ne-2&&(Ce[Ce.length-1]=Object(d.cloneElement)(Ce[Ce.length-1],{className:"".concat(M,"-item-before-jump-next")}),Ce.push(ze)),Ht!==1&&Ce.unshift(Le),sn!==Ne&&Ce.push(Fe)}var Qe=null;X&&(Qe=w.a.createElement("li",{className:"".concat(M,"-total-text")},X(F,[F===0?0:(ce-1)*Ee+1,ce*Ee>F?F:ce*Ee])));var Je=!this.hasPrev()||!Ne,Xe=!this.hasNext()||!Ne;return w.a.createElement("ul",Object(Y.a)({className:a()(M,P,Object(j.a)({},"".concat(M,"-disabled"),k)),style:R,unselectable:"unselectable",ref:this.savePaginationNode},tn),Qe,w.a.createElement("li",{title:J?V.prev_page:null,onClick:this.prev,tabIndex:Je?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(M,"-prev"),Object(j.a)({},"".concat(M,"-disabled"),Je)),"aria-disabled":Je},this.renderPrev(At)),Ce,w.a.createElement("li",{title:J?V.next_page:null,onClick:this.next,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(M,"-next"),Object(j.a)({},"".concat(M,"-disabled"),Xe)),"aria-disabled":Xe},this.renderNext(Rt)),w.a.createElement(O,{disabled:k,locale:V,rootPrefixCls:M,selectComponentClass:He,selectPrefixCls:nt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ce,pageSize:Ee,pageSizeOptions:Ge,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ve}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var M={};if("current"in l&&(M.current=l.current,l.current!==c.current&&(M.currentInputValue=M.current)),"pageSize"in l&&l.pageSize!==c.pageSize){var P=c.current,R=b(l.pageSize,c,l);P=P>R?R:P,"current"in l||(M.current=P,M.currentInputValue=P),M.pageSize=l.pageSize}return M}}]),v}(w.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:i.a,style:{},itemRender:h,totalBoundaryShowSizeChanger:50};var t=E},"6GrX":function(Ye,ie,_){var Y=_("mFDi"),j=_("Xnb7"),L=_("bYtY"),U=L.getContext,S=L.extend,g=L.retrieve2,s=L.retrieve3,d=L.trim,w={},p=0,a=5e3,f=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,x="12px sans-serif",y={};function m(I,F){y[I]=F}function O(I,F){F=F||x;var V=I+":"+F;if(w[V])return w[V];for(var W=(I+"").split(` +`),G=0,J=0,X=W.length;Ja&&(p=0,w={}),p++,w[V]=G,G}function i(I,F,V,W,G,J,X,te){return X?u(I,F,V,W,G,J,X,te):r(I,F,V,W,G,J,te)}function r(I,F,V,W,G,J,X){var te=M(I,F,G,J,X),ee=O(I,F);G&&(ee+=G[1]+G[3]);var be=te.outerHeight,ge=h(0,ee,V),je=b(0,be,W),He=new Y(ge,je,ee,be);return He.lineHeight=te.lineHeight,He}function u(I,F,V,W,G,J,X,te){var ee=P(I,{rich:X,truncate:te,font:F,textAlign:V,textPadding:G,textLineHeight:J}),be=ee.outerWidth,ge=ee.outerHeight,je=h(0,be,V),He=b(0,ge,W);return new Y(je,He,be,ge)}function h(I,F,V){return V==="right"?I-=F:V==="center"&&(I-=F/2),I}function b(I,F,V){return V==="middle"?I-=F/2:V==="bottom"&&(I-=F),I}function E(I,F,V){var W=F.textPosition,G=F.textDistance,J=V.x,X=V.y;G=G||0;var te=V.height,ee=V.width,be=te/2,ge="left",je="top";switch(W){case"left":J-=G,X+=be,ge="right",je="middle";break;case"right":J+=G+ee,X+=be,je="middle";break;case"top":J+=ee/2,X-=G,ge="center",je="bottom";break;case"bottom":J+=ee/2,X+=te+G,ge="center";break;case"inside":J+=ee/2,X+=be,ge="center",je="middle";break;case"insideLeft":J+=G,X+=be,je="middle";break;case"insideRight":J+=ee-G,X+=be,ge="right",je="middle";break;case"insideTop":J+=ee/2,X+=G,ge="center";break;case"insideBottom":J+=ee/2,X+=te-G,ge="center",je="bottom";break;case"insideTopLeft":J+=G,X+=G;break;case"insideTopRight":J+=ee-G,X+=G,ge="right";break;case"insideBottomLeft":J+=G,X+=te-G,je="bottom";break;case"insideBottomRight":J+=ee-G,X+=te-G,ge="right",je="bottom";break}return I=I||{},I.x=J,I.y=X,I.textAlign=ge,I.textVerticalAlign=je,I}function t(I,F,V){var W={textPosition:I,textDistance:V};return E({},W,F)}function C(I,F,V,W,G){if(!F)return"";var J=(I+"").split(` `);G=A(F,V,W,G);for(var X=0,te=J.length;X=J;te++)X-=J;var ee=O(V,F);return ee>X&&(V="",ee=0),X=I-ee,W.ellipsis=V,W.ellipsisWidth=ee,W.contentWidth=X,W.containerWidth=I,W}function v(I,F){var V=F.containerWidth,W=F.font,G=F.contentWidth;if(!V)return"";var J=O(I,W);if(J<=V)return I;for(var X=0;;X++){if(J<=G||X>=F.maxIterations){I+=F.ellipsis;break}var te=X===0?o(I,G,F.ascCharWidth,F.cnCharWidth):J>0?Math.floor(I.length*G/J):0;I=I.substr(0,te),J=O(I,W)}return I===""&&(I=F.placeholder),I}function o(I,F,V,W){for(var G=0,J=0,X=I.length;J=J;te++)X-=J;var ee=O(V,F);return ee>X&&(V="",ee=0),X=I-ee,W.ellipsis=V,W.ellipsisWidth=ee,W.contentWidth=X,W.containerWidth=I,W}function v(I,F){var V=F.containerWidth,W=F.font,G=F.contentWidth;if(!V)return"";var J=O(I,W);if(J<=V)return I;for(var X=0;;X++){if(J<=G||X>=F.maxIterations){I+=F.ellipsis;break}var te=X===0?o(I,G,F.ascCharWidth,F.cnCharWidth):J>0?Math.floor(I.length*G/J):0;I=I.substr(0,te),J=O(I,W)}return I===""&&(I=F.placeholder),I}function o(I,F,V,W){for(var G=0,J=0,X=I.length;Jge)I="",X=[];else if(je!=null)for(var He=A(je-(V?V[1]+V[3]:0),F,G.ellipsis,{minChar:G.minChar,placeholder:G.placeholder}),nt=0,Ge=X.length;ntW&&R(V,I.substring(W,J)),R(V,G[2],G[1]),W=f.lastIndex}Wnt)return{lines:[],width:0,height:0};Ne.textWidth=O(Ne.text,ze);var Fe=Ce.textWidth,Pe=Fe==null||Fe==="auto";if(typeof Fe=="string"&&Fe.charAt(Fe.length-1)==="%")Ne.percentWidth=Fe,be.push(Ne),Fe=0;else{if(Pe){Fe=Ne.textWidth;var Ve=Ce.textBackgroundColor,at=Ve&&Ve.image;at&&(at=j.findExistImage(at),j.isImageReady(at)&&(Fe=Math.max(Fe,at.width*Le/at.height)))}var At=xe?xe[1]+xe[3]:0;Fe+=At;var Rt=He!=null?He-Ee:null;Rt!=null&&Rt1&&arguments[1]!==void 0?arguments[1]:0,m=(s[x[b+0]]+s[x[b+1]]+s[x[b+2]]+s[x[b+3]]+"-"+s[x[b+4]]+s[x[b+5]]+"-"+s[x[b+6]]+s[x[b+7]]+"-"+s[x[b+8]]+s[x[b+9]]+"-"+s[x[b+10]]+s[x[b+11]]+s[x[b+12]]+s[x[b+13]]+s[x[b+14]]+s[x[b+15]]).toLowerCase();if(!g(m))throw TypeError("Stringified UUID is invalid");return m}var p=w;function a(x,b,m){x=x||{};var O=x.random||(x.rng||L)();if(O[6]=O[6]&15|64,O[8]=O[8]&63|128,b){m=m||0;for(var i=0;i<16;++i)b[m+i]=O[i];return b}return p(O)}var f=ie.a=a},"7SHv":function(Ye,ie,_){var Y=_("LPTA"),j=Y.devicePixelRatio,L=_("bYtY"),U=_("SUKs"),S=_("mFDi"),g=_("BPZU"),s=_("Xmg4"),d=_("mLcG"),w=_("Dagg"),p=_("ItGF"),a=1e5,f=314159,x=.01,b=.001;function m(A){return parseInt(A,10)}function O(A){return A?A.__builtin__?!0:!(typeof A.resize!="function"||typeof A.refresh!="function"):!1}var i=new S(0,0,0,0),r=new S(0,0,0,0);function u(A,v,o){return i.copy(A.getBoundingRect()),A.transform&&i.applyTransform(A.transform),r.width=v,r.height=o,!i.intersect(r)}function h(A,v){if(A===v)return!1;if(!A||!v||A.length!==v.length)return!0;for(var o=0;o=0&&o.splice(l,1),A.__hoverMir=null},clearHover:function(A){for(var v=this._hoverElements,o=0;o15)break}}M.__drawIndex=X,M.__drawIndex0&&A>l[0]){for(P=0;PA);P++);M=o[l[P]]}if(l.splice(P+1,0,A),o[A]=v,!v.virtual)if(M){var k=M.dom;k.nextSibling?R.insertBefore(v.dom,k.nextSibling):R.appendChild(v.dom)}else R.firstChild?R.insertBefore(v.dom,R.firstChild):R.appendChild(v.dom)},eachLayer:function(A,v){var o=this._zlevelList,l,c;for(c=0;c0?x:0),this._needsManuallyCompositing),k.__builtin__||U("ZLevel "+R+" has been used by unkown layer "+k.id),k!==c&&(k.__used=!0,k.__startIndex!==o&&(k.__dirty=!0),k.__startIndex=o,k.incremental?k.__drawIndex=-1:k.__drawIndex=o,v(o),c=k),l.__dirty&&(k.__dirty=!0,k.incremental&&k.__drawIndex<0&&(k.__drawIndex=o))}v(o),this.eachBuiltinLayer(function(I,F){!I.__used&&I.getElementCount()>0&&(I.__dirty=!0,I.__startIndex=I.__endIndex=I.__drawIndex=0),I.__dirty&&I.__drawIndex<0&&(I.__drawIndex=I.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(A){A.clear()},setBackgroundColor:function(A){this._backgroundColor=A},configLayer:function(A,v){if(v){var o=this._layerConfig;o[A]?L.merge(o[A],v,!0):o[A]=v;for(var l=0;l0&&arguments[0]!==void 0?arguments[0]:[],O=new Map;function i(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(h){var y=h.key,E=h.children;Object(S.a)(y!=null,"Tree node must have a certain key: [".concat(u).concat(y,"]"));var t=String(y);Object(S.a)(!O.has(t)||y===null||y===void 0,"Same 'key' exist in the Tree: ".concat(t)),O.set(t,!0),i(E,"".concat(u).concat(t," > "))})}i(m)}function w(m){function O(i){var r=Object(U.a)(i);return r.map(function(u){if(!Object(g.i)(u))return Object(S.a)(!u,"Tree/TreeNode can only accept TreeNode as children."),null;var h=u.key,y=u.props,E=y.children,t=Object(L.a)(y,["children"]),C=Object(j.a)({key:h},t),A=O(E);return A.length&&(C.children=A),C}).filter(function(u){return u})}return O(m)}function p(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(O===!0?[]:O),r=[];function u(h){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(E,t){var C=Object(g.h)(y?y.pos:"0",t),A=s(E.key,C),v=Object(j.a)(Object(j.a)({},E),{},{parent:y,pos:C,children:null,data:E,isStart:[].concat(Object(Y.a)(y?y.isStart:[]),[t===0]),isEnd:[].concat(Object(Y.a)(y?y.isEnd:[]),[t===h.length-1])});return r.push(v),O===!0||i.has(A)?v.children=u(E.children||[],v):v.children=[],v})}return u(m),r}function a(m,O,i){var r;i?typeof i=="string"?r=function(y){return y[i]}:typeof i=="function"&&(r=function(y){return i(y)}):r=function(y,E){return s(y.key,E)};function u(h,y,E){var t=h?h.children:m,C=h?Object(g.h)(E.pos,y):"0";if(h){var A=r(h,C),v={node:h,index:y,pos:C,key:A,parentPos:E.node?E.pos:null,level:E.level+1};O(v)}t&&t.forEach(function(o,l){u(o,l,{node:h,pos:C,level:E?E.level+1:-1})})}u(null)}function f(m){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=O.initWrapper,r=O.processEntity,u=O.onProcessFinished,h=arguments.length>2?arguments[2]:void 0,y={},E={},t={posEntities:y,keyEntities:E};return i&&(t=i(t)||t),a(m,function(C){var A=C.node,v=C.index,o=C.pos,l=C.key,c=C.parentPos,M=C.level,P={node:A,index:v,key:l,pos:o,level:M},R=s(l,o);y[o]=P,E[R]=P,P.parent=y[c],P.parent&&(P.parent.children=P.parent.children||[],P.parent.children.push(P)),r&&r(P,t)},h),u&&u(t),t}function x(m,O){var i=O.expandedKeys,r=O.selectedKeys,u=O.loadedKeys,h=O.loadingKeys,y=O.checkedKeys,E=O.halfCheckedKeys,t=O.dragOverNodeKey,C=O.dropPosition,A=O.keyEntities,v=A[m],o={eventKey:m,expanded:i.indexOf(m)!==-1,selected:r.indexOf(m)!==-1,loaded:u.indexOf(m)!==-1,loading:h.indexOf(m)!==-1,checked:y.indexOf(m)!==-1,halfChecked:E.indexOf(m)!==-1,pos:String(v?v.pos:""),dragOver:t===m&&C===0,dragOverGapTop:t===m&&C===-1,dragOverGapBottom:t===m&&C===1};return o}function b(m){var O=m.data,i=m.expanded,r=m.selected,u=m.checked,h=m.loaded,y=m.loading,E=m.halfChecked,t=m.dragOver,C=m.dragOverGapTop,A=m.dragOverGapBottom,v=m.pos,o=m.active,l=Object(j.a)(Object(j.a)({},O),{},{expanded:i,selected:r,checked:u,loaded:h,loading:y,halfChecked:E,dragOver:t,dragOverGapTop:C,dragOverGapBottom:A,pos:v,active:o});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),m}}),l}},"8EBN":function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){"use strict";Y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var j=0;j-1&&U.substring(s+1,U.length);if(d)return Y.findModeByExtension(d)},Y.findModeByName=function(U){U=U.toLowerCase();for(var S=0;S0&&x[x.length-1])&&(i[0]===6||i[0]===2)){p=0;continue}if(i[0]===3&&(!x||i[1]>x[0]&&i[1]1&&arguments[1]!==void 0?arguments[1]:0,m=(s[x[y+0]]+s[x[y+1]]+s[x[y+2]]+s[x[y+3]]+"-"+s[x[y+4]]+s[x[y+5]]+"-"+s[x[y+6]]+s[x[y+7]]+"-"+s[x[y+8]]+s[x[y+9]]+"-"+s[x[y+10]]+s[x[y+11]]+s[x[y+12]]+s[x[y+13]]+s[x[y+14]]+s[x[y+15]]).toLowerCase();if(!g(m))throw TypeError("Stringified UUID is invalid");return m}var p=w;function a(x,y,m){x=x||{};var O=x.random||(x.rng||L)();if(O[6]=O[6]&15|64,O[8]=O[8]&63|128,y){m=m||0;for(var i=0;i<16;++i)y[m+i]=O[i];return y}return p(O)}var f=ie.a=a},"7SHv":function(Ye,ie,_){var Y=_("LPTA"),j=Y.devicePixelRatio,L=_("bYtY"),U=_("SUKs"),S=_("mFDi"),g=_("BPZU"),s=_("Xmg4"),d=_("mLcG"),w=_("Dagg"),p=_("ItGF"),a=1e5,f=314159,x=.01,y=.001;function m(A){return parseInt(A,10)}function O(A){return A?A.__builtin__?!0:!(typeof A.resize!="function"||typeof A.refresh!="function"):!1}var i=new S(0,0,0,0),r=new S(0,0,0,0);function u(A,v,o){return i.copy(A.getBoundingRect()),A.transform&&i.applyTransform(A.transform),r.width=v,r.height=o,!i.intersect(r)}function h(A,v){if(A===v)return!1;if(!A||!v||A.length!==v.length)return!0;for(var o=0;o=0&&o.splice(l,1),A.__hoverMir=null},clearHover:function(A){for(var v=this._hoverElements,o=0;o15)break}}M.__drawIndex=X,M.__drawIndex0&&A>l[0]){for(P=0;PA);P++);M=o[l[P]]}if(l.splice(P+1,0,A),o[A]=v,!v.virtual)if(M){var k=M.dom;k.nextSibling?R.insertBefore(v.dom,k.nextSibling):R.appendChild(v.dom)}else R.firstChild?R.insertBefore(v.dom,R.firstChild):R.appendChild(v.dom)},eachLayer:function(A,v){var o=this._zlevelList,l,c;for(c=0;c0?x:0),this._needsManuallyCompositing),k.__builtin__||U("ZLevel "+R+" has been used by unkown layer "+k.id),k!==c&&(k.__used=!0,k.__startIndex!==o&&(k.__dirty=!0),k.__startIndex=o,k.incremental?k.__drawIndex=-1:k.__drawIndex=o,v(o),c=k),l.__dirty&&(k.__dirty=!0,k.incremental&&k.__drawIndex<0&&(k.__drawIndex=o))}v(o),this.eachBuiltinLayer(function(I,F){!I.__used&&I.getElementCount()>0&&(I.__dirty=!0,I.__startIndex=I.__endIndex=I.__drawIndex=0),I.__dirty&&I.__drawIndex<0&&(I.__drawIndex=I.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(A){A.clear()},setBackgroundColor:function(A){this._backgroundColor=A},configLayer:function(A,v){if(v){var o=this._layerConfig;o[A]?L.merge(o[A],v,!0):o[A]=v;for(var l=0;l0&&arguments[0]!==void 0?arguments[0]:[],O=new Map;function i(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(h){var b=h.key,E=h.children;Object(S.a)(b!=null,"Tree node must have a certain key: [".concat(u).concat(b,"]"));var t=String(b);Object(S.a)(!O.has(t)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(t)),O.set(t,!0),i(E,"".concat(u).concat(t," > "))})}i(m)}function w(m){function O(i){var r=Object(U.a)(i);return r.map(function(u){if(!Object(g.i)(u))return Object(S.a)(!u,"Tree/TreeNode can only accept TreeNode as children."),null;var h=u.key,b=u.props,E=b.children,t=Object(L.a)(b,["children"]),C=Object(j.a)({key:h},t),A=O(E);return A.length&&(C.children=A),C}).filter(function(u){return u})}return O(m)}function p(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(O===!0?[]:O),r=[];function u(h){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(E,t){var C=Object(g.h)(b?b.pos:"0",t),A=s(E.key,C),v=Object(j.a)(Object(j.a)({},E),{},{parent:b,pos:C,children:null,data:E,isStart:[].concat(Object(Y.a)(b?b.isStart:[]),[t===0]),isEnd:[].concat(Object(Y.a)(b?b.isEnd:[]),[t===h.length-1])});return r.push(v),O===!0||i.has(A)?v.children=u(E.children||[],v):v.children=[],v})}return u(m),r}function a(m,O,i){var r;i?typeof i=="string"?r=function(b){return b[i]}:typeof i=="function"&&(r=function(b){return i(b)}):r=function(b,E){return s(b.key,E)};function u(h,b,E){var t=h?h.children:m,C=h?Object(g.h)(E.pos,b):"0";if(h){var A=r(h,C),v={node:h,index:b,pos:C,key:A,parentPos:E.node?E.pos:null,level:E.level+1};O(v)}t&&t.forEach(function(o,l){u(o,l,{node:h,pos:C,level:E?E.level+1:-1})})}u(null)}function f(m){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=O.initWrapper,r=O.processEntity,u=O.onProcessFinished,h=arguments.length>2?arguments[2]:void 0,b={},E={},t={posEntities:b,keyEntities:E};return i&&(t=i(t)||t),a(m,function(C){var A=C.node,v=C.index,o=C.pos,l=C.key,c=C.parentPos,M=C.level,P={node:A,index:v,key:l,pos:o,level:M},R=s(l,o);b[o]=P,E[R]=P,P.parent=b[c],P.parent&&(P.parent.children=P.parent.children||[],P.parent.children.push(P)),r&&r(P,t)},h),u&&u(t),t}function x(m,O){var i=O.expandedKeys,r=O.selectedKeys,u=O.loadedKeys,h=O.loadingKeys,b=O.checkedKeys,E=O.halfCheckedKeys,t=O.dragOverNodeKey,C=O.dropPosition,A=O.keyEntities,v=A[m],o={eventKey:m,expanded:i.indexOf(m)!==-1,selected:r.indexOf(m)!==-1,loaded:u.indexOf(m)!==-1,loading:h.indexOf(m)!==-1,checked:b.indexOf(m)!==-1,halfChecked:E.indexOf(m)!==-1,pos:String(v?v.pos:""),dragOver:t===m&&C===0,dragOverGapTop:t===m&&C===-1,dragOverGapBottom:t===m&&C===1};return o}function y(m){var O=m.data,i=m.expanded,r=m.selected,u=m.checked,h=m.loaded,b=m.loading,E=m.halfChecked,t=m.dragOver,C=m.dragOverGapTop,A=m.dragOverGapBottom,v=m.pos,o=m.active,l=Object(j.a)(Object(j.a)({},O),{},{expanded:i,selected:r,checked:u,loaded:h,loading:b,halfChecked:E,dragOver:t,dragOverGapTop:C,dragOverGapBottom:A,pos:v,active:o});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),m}}),l}},"8EBN":function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){"use strict";Y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var j=0;j-1&&U.substring(s+1,U.length);if(d)return Y.findModeByExtension(d)},Y.findModeByName=function(U){U=U.toLowerCase();for(var S=0;S0&&x[x.length-1])&&(i[0]===6||i[0]===2)){p=0;continue}if(i[0]===3&&(!x||i[1]>x[0]&&i[1]=ae.length?ue.slice(ae.length):ue}).join(` -`)}var i=[],r=["
      "],u=new b.a.Renderer,h=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function y(){i.length=0,r=["
        "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function t(ne,B,H,ae){if(B>=ne.length||ne[B].level<=H)return B;var ue=ne[B];ae.push("
      • "+ue.text+""),B++;var oe=[];return B=t(ne,B,ue.level,oe),oe.length>0&&(ae.push("
          "),oe.forEach(function(ht){ae.push(ht)}),ae.push("
        ")),ae.push("
      • "),B=t(ne,B,H,ae),B}function C(){return t(i,0,0,r),r.push("
      "),r.join("")}var A={heading:function(B){var H=h.exec(B);if(H)return{type:"heading",raw:H[0],depth:H[1].length,text:H[2]}},fences:function(B){var H=this.rules.block.fences.exec(B);if(H){var ae=H[0],ue=O(ae,H[3]||""),oe=H[2]?H[2].trim():H[2];if(["latex","katex","math"].indexOf(oe)>=0){var ht=l(),vn=ue;ue=ht,c[ht]={type:"block",expression:vn}}return{type:"code",raw:ae,lang:oe,text:ue}}}},v=/(?:\${2})([^\n`]+?)(?:\${2})/gi,o=0,l=function(){return"__special_katext_id_".concat(o++,"__")},c={};function M(){return c}function P(){o=0,c={}}function R(ne){return ne=ne.replace(v,function(B,H){var ae=l();return c[ae]={type:"inline",expression:H},ae}),ne}var k=u.listitem;u.listitem=function(ne){return k(R(ne))};var I=u.paragraph;u.paragraph=function(ne){return I(R(ne))};var F=u.tablecell;u.tablecell=function(ne,B){return F(R(ne),B)},u.code=function(ne,B,H){var ae=(B||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?"

      ".concat(ne,"

      "):'
      ').concat(H?ne:Object(m.escape)(ne,!0),`
      -`):'
      '+(H?ne:Object(m.escape)(ne,!0))+"
      "},u.heading=function(ne,B,H){var ae=this.options.headerPrefix+H.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:ae,level:B,text:ne}),"'+ne+""},b.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),b.a.use({tokenizer:A,renderer:u});var V=b.a,W=_("SJMd"),G=_("ulZh"),J=_.n(G),X=_("m3rI"),te=_("Oy/b"),ee=_("p5ED"),be=_("ErOA");/*! ***************************************************************************** +`)}var i=[],r=["
        "],u=new y.a.Renderer,h=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){i.length=0,r=["
          "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function t(ne,B,H,ae){if(B>=ne.length||ne[B].level<=H)return B;var ue=ne[B];ae.push("
        • "+ue.text+""),B++;var oe=[];return B=t(ne,B,ue.level,oe),oe.length>0&&(ae.push("
            "),oe.forEach(function(ht){ae.push(ht)}),ae.push("
          ")),ae.push("
        • "),B=t(ne,B,H,ae),B}function C(){return t(i,0,0,r),r.push("
        "),r.join("")}var A={heading:function(B){var H=h.exec(B);if(H)return{type:"heading",raw:H[0],depth:H[1].length,text:H[2]}},fences:function(B){var H=this.rules.block.fences.exec(B);if(H){var ae=H[0],ue=O(ae,H[3]||""),oe=H[2]?H[2].trim():H[2];if(["latex","katex","math"].indexOf(oe)>=0){var ht=l(),vn=ue;ue=ht,c[ht]={type:"block",expression:vn}}return{type:"code",raw:ae,lang:oe,text:ue}}}},v=/(?:\${2})([^\n`]+?)(?:\${2})/gi,o=0,l=function(){return"__special_katext_id_".concat(o++,"__")},c={};function M(){return c}function P(){o=0,c={}}function R(ne){return ne=ne.replace(v,function(B,H){var ae=l();return c[ae]={type:"inline",expression:H},ae}),ne}var k=u.listitem;u.listitem=function(ne){return k(R(ne))};var I=u.paragraph;u.paragraph=function(ne){return I(R(ne))};var F=u.tablecell;u.tablecell=function(ne,B){return F(R(ne),B)},u.code=function(ne,B,H){var ae=(B||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?"

        ".concat(ne,"

        "):'
        ').concat(H?ne:Object(m.escape)(ne,!0),`
        +`):'
        '+(H?ne:Object(m.escape)(ne,!0))+"
        "},u.heading=function(ne,B,H){var ae=this.options.headerPrefix+H.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:ae,level:B,text:ne}),"'+ne+""},y.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),y.a.use({tokenizer:A,renderer:u});var V=y.a,W=_("SJMd"),G=_("ulZh"),J=_.n(G),X=_("m3rI"),te=_("Oy/b"),ee=_("p5ED"),be=_("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -22,7 +22,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ge=function(ne,B){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,ae){H.__proto__=ae}||function(H,ae){for(var ue in ae)Object.prototype.hasOwnProperty.call(ae,ue)&&(H[ue]=ae[ue])})(ne,B)};function je(ne,B){function H(){this.constructor=ne}ge(ne,B),ne.prototype=B===null?Object.create(B):(H.prototype=B.prototype,new H)}function He(ne,B,H,ae){return new(H||(H=Promise))(function(ue,oe){function ht(cr){try{Tn(ae.next(cr))}catch(Vt){oe(Vt)}}function vn(cr){try{Tn(ae.throw(cr))}catch(Vt){oe(Vt)}}function Tn(cr){var Vt;cr.done?ue(cr.value):(Vt=cr.value,Vt instanceof H?Vt:new H(function(Et){Et(Vt)})).then(ht,vn)}Tn((ae=ae.apply(ne,B||[])).next())})}function nt(ne,B){var H,ae,ue,oe,ht={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return oe={next:vn(0),throw:vn(1),return:vn(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function vn(Tn){return function(cr){return function(Vt){if(H)throw new TypeError("Generator is already executing.");for(;ht;)try{if(H=1,ae&&(ue=2&Vt[0]?ae.return:Vt[0]?ae.throw||((ue=ae.return)&&ue.call(ae),0):ae.next)&&!(ue=ue.call(ae,Vt[1])).done)return ue;switch(ae=0,ue&&(Vt=[2&Vt[0],ue.value]),Vt[0]){case 0:case 1:ue=Vt;break;case 4:return ht.label++,{value:Vt[1],done:!1};case 5:ht.label++,ae=Vt[1],Vt=[0];continue;case 7:Vt=ht.ops.pop(),ht.trys.pop();continue;default:if(!(ue=ht.trys,(ue=ue.length>0&&ue[ue.length-1])||Vt[0]!==6&&Vt[0]!==2)){ht=0;continue}if(Vt[0]===3&&(!ue||Vt[1]>ue[0]&&Vt[1]0&&ue[ue.length-1])||Vt[0]!==6&&Vt[0]!==2)){ht=0;continue}if(Vt[0]===3&&(!ue||Vt[1]>ue[0]&&Vt[1] `),ht.appendChild(vn),ht},B.prototype.setCurrentColor=function(H,ae){var ue=this;this.currentColor=H,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(H)},B}(Fe),Ve=function(){function ne(B,H,ae){this._state="new",this._isSelected=!1,this._container=B,this._overlayContainer=H,this.globalSettings=ae,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ne.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(B){return!1},Object.defineProperty(ne.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ne.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ne.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ne.prototype.pointerDown=function(B,H){},ne.prototype.dblClick=function(B,H){},ne.prototype.manipulate=function(B){},ne.prototype.pointerUp=function(B){this.stateChanged()},ne.prototype.dispose=function(){},ne.prototype.addMarkerVisualToContainer=function(B){this.container.childNodes.length>0?this.container.insertBefore(B,this.container.childNodes[0]):this.container.appendChild(B)},ne.prototype.getState=function(){return{typeName:ne.typeName,state:this.state,notes:this.notes}},ne.prototype.restoreState=function(B){this._state=B.state,this.notes=B.notes},ne.prototype.scale=function(B,H){},ne.prototype.colorChanged=function(B){this.onColorChanged&&this.onColorChanged(B),this.stateChanged()},ne.prototype.fillColorChanged=function(B){this.onFillColorChanged&&this.onFillColorChanged(B),this.stateChanged()},ne.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var B=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),B.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(B)&&this.onStateChanged(this)}},ne.typeName="MarkerBase",ne}(),at=function(){function ne(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ne.prototype.findGripByVisual=function(B){return this.topLeft.ownsTarget(B)?this.topLeft:this.topCenter.ownsTarget(B)?this.topCenter:this.topRight.ownsTarget(B)?this.topRight:this.centerLeft.ownsTarget(B)?this.centerLeft:this.centerRight.ownsTarget(B)?this.centerRight:this.bottomLeft.ownsTarget(B)?this.bottomLeft:this.bottomCenter.ownsTarget(B)?this.bottomCenter:this.bottomRight.ownsTarget(B)?this.bottomRight:void 0},ne}(),At=function(){function ne(){this.GRIP_SIZE=10,this.visual=he.createGroup(),this.visual.appendChild(he.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(he.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ne.prototype.ownsTarget=function(B){return B===this.visual||B===this.visual.childNodes[0]||B===this.visual.childNodes[1]},ne}(),Rt=function(){function ne(){}return ne.toITransformMatrix=function(B){return{a:B.a,b:B.b,c:B.c,d:B.d,e:B.e,f:B.f}},ne.toSVGMatrix=function(B,H){return B.a=H.a,B.b=H.b,B.c=H.c,B.d=H.d,B.e=H.e,B.f=H.f,B},ne}(),tn=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(he.createTransform()),oe.setupControlBox(),oe}return je(B,ne),Object.defineProperty(B.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"visual",{get:function(){return this._visual},set:function(H){this._visual=H;var ae=he.createTransform();this._visual.transform.baseVal.appendItem(ae)},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(H){return!!ne.prototype.ownsTarget.call(this,H)||!!(this.controlGrips.findGripByVisual(H)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(H))},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.state==="new"&&(this.left=H.x,this.top=H.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(H);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ae),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ae)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ht=this.container.transform.baseVal.getItem(0);ht.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ht,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},B.prototype.pointerUp=function(H){var ae=this.state;ne.prototype.pointerUp.call(this,H),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(H),this._state="select",ae==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},B.prototype.moveVisual=function(H){this.visual.style.transform="translate("+H.x+"px, "+H.y+"px)"},B.prototype.manipulate=function(H){var ae=this.unrotatePoint(H);this.state==="creating"?this.resize(H):this.state==="move"?(this.left=this.manipulationStartLeft+(ae.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ae.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ae):this.state==="rotate"&&this.rotate(H)},B.prototype.resize=function(H){var ae=this.manipulationStartLeft,ue=this.manipulationStartWidth,oe=this.manipulationStartTop,ht=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ae=this.manipulationStartLeft+H.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-ae;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+H.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+H.y-this.manipulationStartY,ht=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ht=this.manipulationStartHeight+H.y-this.manipulationStartY}ue>=0?(this.left=ae,this.width=ue):(this.left=ae+ue,this.width=-ue),ht>=0?(this.top=oe,this.height=ht):(this.top=oe+ht,this.height=-ht),this.setSize()},B.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},B.prototype.rotate=function(H){if(Math.abs(H.x-this.centerX)>.1){var ae=Math.sign(H.x-this.centerX);this.rotationAngle=180*Math.atan((H.y-this.centerY)/(H.x-this.centerX))/Math.PI+90*ae,this.applyRotation()}},B.prototype.applyRotation=function(){var H=this.container.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(H,0)},B.prototype.rotatePoint=function(H){if(this.rotationAngle===0)return H;var ae=this.container.getCTM(),ue=he.createPoint(H.x,H.y);return{x:(ue=ue.matrixTransform(ae)).x,y:ue.y}},B.prototype.unrotatePoint=function(H){if(this.rotationAngle===0)return H;var ae=this.container.getCTM();ae=ae.inverse();var ue=he.createPoint(H.x,H.y);return{x:(ue=ue.matrixTransform(ae)).x,y:ue.y}},B.prototype.select=function(){ne.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},B.prototype.deselect=function(){ne.prototype.deselect.call(this),this.controlBox.style.display="none"},B.prototype.setupControlBox=function(){this.controlBox=he.createGroup();var H=he.createTransform();H.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(H),this.container.appendChild(this.controlBox),this.controlRect=he.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=he.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new at,this.addControlGrips(),this.controlBox.style.display="none"},B.prototype.adjustControlBox=function(){var H=this.controlBox.transform.baseVal.getItem(0);H.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(H,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},B.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},B.prototype.createGrip=function(){var H=new At;return H.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(H.visual),H},B.prototype.positionGrips=function(){var H=this.controlGrips.topLeft.GRIP_SIZE,ae=-H/2,ue=ae,oe=(this.width+this.CB_DISTANCE)/2-H/2,ht=(this.height+this.CB_DISTANCE)/2-H/2,vn=this.height+this.CB_DISTANCE-H/2,Tn=this.width+this.CB_DISTANCE-H/2;this.positionGrip(this.controlGrips.topLeft.visual,ae,ue),this.positionGrip(this.controlGrips.topCenter.visual,oe,ue),this.positionGrip(this.controlGrips.topRight.visual,Tn,ue),this.positionGrip(this.controlGrips.centerLeft.visual,ae,ht),this.positionGrip(this.controlGrips.centerRight.visual,Tn,ht),this.positionGrip(this.controlGrips.bottomLeft.visual,ae,vn),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,vn),this.positionGrip(this.controlGrips.bottomRight.visual,Tn,vn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,ue-3*this.CB_DISTANCE)},B.prototype.positionGrip=function(H,ae,ue){var oe=H.transform.baseVal.getItem(0);oe.setTranslate(ae,ue),H.transform.baseVal.replaceItem(oe,0)},B.prototype.hideControlBox=function(){this.controlBox.style.display="none"},B.prototype.showControlBox=function(){this.controlBox.style.display=""},B.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Rt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Rt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ne.prototype.getState.call(this))},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.left=ae.left,this.top=ae.top,this.width=ae.width,this.height=ae.height,this.rotationAngle=ae.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Rt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ae.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Rt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ae.containerTransformMatrix))},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae);var ue=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:ue.x*H,y:ue.y*ae});this.left=oe.x,this.top=oe.y,this.width=this.width*H,this.height=this.height*ae,this.adjustControlBox()},B}(Ve),Qt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.visual)},B.prototype.createVisual=function(){this.visual=he.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.state==="new"&&(this.createVisual(),this.moveVisual(H),this._state="creating")},B.prototype.manipulate=function(H){ne.prototype.manipulate.call(this,H)},B.prototype.resize=function(H){ne.prototype.resize.call(this,H),this.setSize()},B.prototype.setSize=function(){ne.prototype.setSize.call(this),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},B.prototype.pointerUp=function(H){ne.prototype.pointerUp.call(this,H),this.setSize()},B.prototype.setStrokeColor=function(H){this.strokeColor=H,this.visual&&he.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(H),this.stateChanged()},B.prototype.setFillColor=function(H){this.fillColor=H,this.visual&&he.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},B.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.visual&&he.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.visual&&he.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},B.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ne.prototype.getState.call(this))},B.prototype.restoreState=function(H){var ae=H;this.fillColor=ae.fillColor,this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.opacity=ae.opacity,this.createVisual(),ne.prototype.restoreState.call(this,H),this.setSize()},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae),this.setSize()},B.title="Rectangle marker",B}(tn),Cn=function(ne){function B(H,ae,ue,oe){var ht=ne.call(this,H,oe||'')||this;return ht.widths=[],ht.widthBoxes=[],ht.widths=ae,ht.currentWidth=ue,ht.setCurrentWidth=ht.setCurrentWidth.bind(ht),ht}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");return ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2",this.widths.forEach(function(ue){var oe=document.createElement("div");oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ue===H.currentWidth?H.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){H.setCurrentWidth(ue,oe)}),ae.appendChild(oe);var ht=document.createElement("div");ht.innerText=ue.toString(),ht.style.marginRight="5px",oe.appendChild(ht);var vn=document.createElement("div");vn.style.minHeight="20px",vn.style.flexGrow="2",vn.style.display="flex",vn.style.alignItems="center";var Tn=document.createElement("hr");Tn.style.minWidth="20px",Tn.style.border="0px",Tn.style.borderTop=ue+"px solid "+H.uiStyleSettings.toolboxColor,Tn.style.flexGrow="2",vn.appendChild(Tn),oe.appendChild(vn),H.widthBoxes.push(oe)}),ae},B.prototype.setCurrentWidth=function(H,ae){var ue=this;this.currentWidth=H,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},B}(Fe),Un=function(ne){function B(H,ae,ue,oe){var ht=ne.call(this,H,oe||'')||this;return ht.styles=[],ht.styleBoxes=[],ht.styles=ae,ht.currentStyle=ue,ht.setCurrentStyle=ht.setCurrentStyle.bind(ht),ht}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");return ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2",this.styles.forEach(function(ue){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/H.styles.length-5+"%",oe.style.borderColor=ue===H.currentStyle?H.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){H.setCurrentStyle(ue,oe)}),ae.appendChild(oe);var ht=document.createElement("div");ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.overflow="hidden";var vn=` - `;ht.innerHTML=vn,oe.appendChild(ht),H.styleBoxes.push(oe)}),ae},B.prototype.setCurrentStyle=function(H,ae){var ue=this;this.currentStyle=H,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},B}(Fe),mt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokeColor=ue.defaultColor,oe.strokeWidth=ue.defaultStrokeWidth,oe.strokeDasharray=ue.defaultStrokeDasharray,oe.strokePanel=new Pe("Line color",ue.defaultColorSet,ue.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Un("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return je(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="FrameMarker",B.title="Frame marker",B.icon='',B}(Qt),lt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},Ht=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!!ne.prototype.ownsTarget.call(this,H)||!(!this.grip1.ownsTarget(H)&&!this.grip2.ownsTarget(H))},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.manipulationStartX=H.x,this.manipulationStartY=H.y,this.state==="new"&&(this.x1=H.x,this.y1=H.y,this.x2=H.x,this.y2=H.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ae)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ae)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},B.prototype.pointerUp=function(H){var ae=this.state;ne.prototype.pointerUp.call(this,H),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(H),this._state="select",ae==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},B.prototype.adjustVisual=function(){},B.prototype.manipulate=function(H){this.state==="creating"?this.resize(H):this.state==="move"?(this.x1=this.manipulationStartX1+H.x-this.manipulationStartX,this.y1=this.manipulationStartY1+H.y-this.manipulationStartY,this.x2=this.manipulationStartX2+H.x-this.manipulationStartX,this.y2=this.manipulationStartY2+H.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(H)},B.prototype.resize=function(H){switch(this.activeGrip){case this.grip1:this.x1=H.x,this.y1=H.y;break;case this.grip2:case void 0:this.x2=H.x,this.y2=H.y}this.adjustVisual(),this.adjustControlBox()},B.prototype.select=function(){ne.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},B.prototype.deselect=function(){ne.prototype.deselect.call(this),this.controlBox.style.display="none"},B.prototype.setupControlBox=function(){this.controlBox=he.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},B.prototype.adjustControlBox=function(){this.positionGrips()},B.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},B.prototype.createGrip=function(){var H=new At;return H.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(H.visual),H},B.prototype.positionGrips=function(){var H=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-H/2,this.y1-H/2),this.positionGrip(this.grip2.visual,this.x2-H/2,this.y2-H/2)},B.prototype.positionGrip=function(H,ae,ue){var oe=H.transform.baseVal.getItem(0);oe.setTranslate(ae,ue),H.transform.baseVal.replaceItem(oe,0)},B.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ne.prototype.getState.call(this))},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.x1=ae.x1,this.y1=ae.y1,this.x2=ae.x2,this.y2=ae.y2},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae),this.x1=this.x1*H,this.y1=this.y1*ae,this.x2=this.x2*H,this.y2=this.y2*ae,this.adjustVisual(),this.adjustControlBox()},B}(Ve),sn=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=ue.defaultColor,oe.strokeWidth=ue.defaultStrokeWidth,oe.strokeDasharray=ue.defaultStrokeDasharray,oe.strokePanel=new Pe("Line color",ue.defaultColorSet,ue.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Un("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorLine&&H!==this.visibleLine)},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},B.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),he.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},B.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},B.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.createVisual(),this.adjustVisual()},B.typeName="LineMarker",B.title="Line marker",B.icon='',B}(Ht),Tt=function(ne){function B(H,ae,ue,oe){var ht=ne.call(this,H,oe||'')||this;return ht.fonts=[],ht.fontBoxes=[],ht.fonts=ae,ht.currentFont=ue,ht.setCurrentFont=ht.setCurrentFont.bind(ht),ht}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");return ae.style.overflow="hidden",ae.style.flexGrow="2",this.fonts.forEach(function(ue){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/H.fonts.length-5+"%",oe.style.borderColor=ue===H.currentFont?H.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){H.setCurrentFont(ue,oe)}),ae.appendChild(oe);var ht=document.createElement("div");ht.style.display="flex",ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.fontFamily=ue,ht.style.overflow="hidden";var vn=document.createElement("div");vn.style.whiteSpace="nowrap",vn.style.overflow="hidden",vn.style.textOverflow="ellipsis",vn.innerHTML="The quick brown fox jumps over the lazy dog",ht.appendChild(vn),oe.appendChild(ht),H.fontBoxes.push(oe)}),ae},B.prototype.setCurrentFont=function(H,ae){var ue=this;this.currentFont=H,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},B}(Fe),wt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="your text here",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=ue.defaultColor,oe.fontFamily=ue.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new Pe("Color",ue.defaultColorSet,ue.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new Tt("Font",ue.defaultFontFamilies,ue.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return je(B,ne),B.prototype.ownsTarget=function(H){if(ne.prototype.ownsTarget.call(this,H)||H===this.visual||H===this.textElement||H===this.bgRectangle)return!0;var ae=!1;return this.textElement.childNodes.forEach(function(ue){ue===H&&(ae=!0)}),ae},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.bgRectangle=he.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=he.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.isMoved=!1,this.pointerDownPoint=H,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(H),this._state="creating")},B.prototype.renderText=function(){var H=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ae){H.textElement.appendChild(he.createTSpan(ae.trim()===""?" ":ae.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},B.prototype.getTextScale=function(){var H=this.textElement.getBBox(),ae=1;if(H.width>0&&H.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/H.width,oe=(1*this.height-this.height*this.padding*2/100)/H.height;ae=Math.min(ue,oe)}return ae},B.prototype.getTextPosition=function(H){var ae=this.textElement.getBBox(),ue=0,oe=0;return ae.width>0&&ae.height>0&&(ue=(this.width-ae.width*H)/2,oe=this.height/2-ae.height*H/2),{x:ue,y:oe}},B.prototype.sizeText=function(){var H=this.textElement.getBBox(),ae=this.getTextScale(),ue=this.getTextPosition(ae);ue.y-=H.y*ae,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+ae+", "+ae+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(ae,ae))},B.prototype.manipulate=function(H){ne.prototype.manipulate.call(this,H),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(H.x-this.pointerDownPoint.x)>5||Math.abs(H.y-this.pointerDownPoint.y)>5)},B.prototype.resize=function(H){ne.prototype.resize.call(this,H),this.isMoved=!0,this.setSize(),this.sizeText()},B.prototype.setSize=function(){ne.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},B.prototype.pointerUp=function(H){var ae=this.state;ae==="creating"&&(this._suppressMarkerCreateEvent=!0),ne.prototype.pointerUp.call(this,H),this.setSize(),(ae==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},B.prototype.showTextEditor=function(){var H=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ae){ae.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ae=Number.parseFloat(H.textEditor.style.fontSize);H.textEditor.clientWidth>=Number.parseInt(H.textEditor.style.maxWidth)&&ae>.9;)ae-=.1,H.textEditor.style.fontSize=Math.max(ae,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ae){ae.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ae){if(ae.clipboardData){var ue=ae.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(ue)),ae.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){H.textEditDivClicked(H.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},B.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var H=this.getTextScale(),ae=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),oe={x:ue.width*H,y:ue.height*H};ae.x-=oe.x/2,ae.y-=oe.y/2,this.textEditor.style.top=ae.y+"px",this.textEditor.style.left=ae.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ae.x+"px",this.textEditor.style.fontSize=Math.max(16*H,12)+"px",this.textElement.style.display="none"}},B.prototype.textEditDivClicked=function(H){this.text=H.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},B.prototype.select=function(){ne.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},B.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ne.prototype.deselect.call(this)},B.prototype.dblClick=function(H,ae){ne.prototype.dblClick.call(this,H,ae),this.showTextEditor()},B.prototype.setColor=function(H){this.textElement&&he.setAttributes(this.textElement,[["fill",H]]),this.color=H,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(H)},B.prototype.setFont=function(H){this.textElement&&he.setAttributes(this.textElement,[["font-family",H]]),this.fontFamily=H,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},B.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},B.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){var ae=H;this.color=ae.color,this.fontFamily=ae.fontFamily,this.padding=ae.padding,this.text=ae.text,this.createVisual(),ne.prototype.restoreState.call(this,H),this.setSize()},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae),this.setSize(),this.sizeText(),this.positionTextEditor()},B.typeName="TextMarker",B.title="Text marker",B.icon='',B}(tn),Qe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=ue.defaultColor,oe.lineWidth=ue.defaultStrokeWidth,oe.pixelRatio=ue.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new Pe("Color",ue.defaultColorSet,ue.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.drawingImage)},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var H=he.createTransform();this.visual.transform.baseVal.appendItem(H),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(H,ae){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(H.x,H.y),this.drawing=!0):ne.prototype.pointerDown.call(this,H,ae)},B.prototype.manipulate=function(H){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(H.x,H.y),this.canvasContext.stroke()):ne.prototype.manipulate.call(this,H)},B.prototype.resize=function(H){ne.prototype.resize.call(this,H),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},B.prototype.pointerUp=function(H){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ne.prototype.pointerUp.call(this,H)},B.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},B.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ne.prototype.select.call(this)},B.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ne.prototype.deselect.call(this)},B.prototype.finishCreation=function(){for(var H=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ae=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=ae[0],oe=ae[1],ht=ae[2],vn=ae[3],Tn=!1,cr=0;cr0&&(Tn=!0,crvn&&(vn=cr),Vt>ht&&(ht=Vt));if(Tn){this.left=ue/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(ht-ue)/this.pixelRatio,this.height=(vn-oe)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=ht-ue,Et.height=vn-oe,Et.getContext("2d").putImageData(this.canvasContext.getImageData(ue,oe,ht-ue,vn-oe),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},B.prototype.setDrawingImage=function(){he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},B.prototype.setColor=function(H){this.color=H,this.colorChanged(H)},B.prototype.setLineWidth=function(H){this.lineWidth=H},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({drawingImgUrl:this.drawingImgUrl},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){this.createVisual(),ne.prototype.restoreState.call(this,H),this.drawingImgUrl=H.drawingImgUrl,this.setDrawingImage()},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae),this.setDrawingImage()},B.typeName="FreehandMarker",B.title="Freehand marker",B.icon='',B}(tn),Je=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ue||'')||this;return oe.typeBoxes=[],oe.currentType=ae,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2";for(var ue=function(vn){var Tn="both";switch(vn){case 0:Tn="both";break;case 1:Tn="start";break;case 2:Tn="end";break;case 3:Tn="none"}var cr=document.createElement("div");if(cr.style.display="flex",cr.style.flexGrow="2",cr.style.alignItems="center",cr.style.justifyContent="space-between",cr.style.padding="5px",cr.style.borderWidth="2px",cr.style.borderStyle="solid",cr.style.borderColor=Tn===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",cr.addEventListener("click",function(){H.setCurrentType(Tn,cr)}),ae.appendChild(cr),Tn==="both"||Tn==="start"){var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.innerHTML=` + `;ht.innerHTML=vn,oe.appendChild(ht),H.styleBoxes.push(oe)}),ae},B.prototype.setCurrentStyle=function(H,ae){var ue=this;this.currentStyle=H,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},B}(Fe),mt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokeColor=ue.defaultColor,oe.strokeWidth=ue.defaultStrokeWidth,oe.strokeDasharray=ue.defaultStrokeDasharray,oe.strokePanel=new Pe("Line color",ue.defaultColorSet,ue.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Un("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return je(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="FrameMarker",B.title="Frame marker",B.icon='',B}(Qt),lt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},Ht=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!!ne.prototype.ownsTarget.call(this,H)||!(!this.grip1.ownsTarget(H)&&!this.grip2.ownsTarget(H))},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.manipulationStartX=H.x,this.manipulationStartY=H.y,this.state==="new"&&(this.x1=H.x,this.y1=H.y,this.x2=H.x,this.y2=H.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ae)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ae)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},B.prototype.pointerUp=function(H){var ae=this.state;ne.prototype.pointerUp.call(this,H),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(H),this._state="select",ae==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},B.prototype.adjustVisual=function(){},B.prototype.manipulate=function(H){this.state==="creating"?this.resize(H):this.state==="move"?(this.x1=this.manipulationStartX1+H.x-this.manipulationStartX,this.y1=this.manipulationStartY1+H.y-this.manipulationStartY,this.x2=this.manipulationStartX2+H.x-this.manipulationStartX,this.y2=this.manipulationStartY2+H.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(H)},B.prototype.resize=function(H){switch(this.activeGrip){case this.grip1:this.x1=H.x,this.y1=H.y;break;case this.grip2:case void 0:this.x2=H.x,this.y2=H.y}this.adjustVisual(),this.adjustControlBox()},B.prototype.select=function(){ne.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},B.prototype.deselect=function(){ne.prototype.deselect.call(this),this.controlBox.style.display="none"},B.prototype.setupControlBox=function(){this.controlBox=he.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},B.prototype.adjustControlBox=function(){this.positionGrips()},B.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},B.prototype.createGrip=function(){var H=new At;return H.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(H.visual),H},B.prototype.positionGrips=function(){var H=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-H/2,this.y1-H/2),this.positionGrip(this.grip2.visual,this.x2-H/2,this.y2-H/2)},B.prototype.positionGrip=function(H,ae,ue){var oe=H.transform.baseVal.getItem(0);oe.setTranslate(ae,ue),H.transform.baseVal.replaceItem(oe,0)},B.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ne.prototype.getState.call(this))},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.x1=ae.x1,this.y1=ae.y1,this.x2=ae.x2,this.y2=ae.y2},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae),this.x1=this.x1*H,this.y1=this.y1*ae,this.x2=this.x2*H,this.y2=this.y2*ae,this.adjustVisual(),this.adjustControlBox()},B}(Ve),sn=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=ue.defaultColor,oe.strokeWidth=ue.defaultStrokeWidth,oe.strokeDasharray=ue.defaultStrokeDasharray,oe.strokePanel=new Pe("Line color",ue.defaultColorSet,ue.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Un("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorLine&&H!==this.visibleLine)},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},B.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),he.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},B.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},B.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.createVisual(),this.adjustVisual()},B.typeName="LineMarker",B.title="Line marker",B.icon='',B}(Ht),Tt=function(ne){function B(H,ae,ue,oe){var ht=ne.call(this,H,oe||'')||this;return ht.fonts=[],ht.fontBoxes=[],ht.fonts=ae,ht.currentFont=ue,ht.setCurrentFont=ht.setCurrentFont.bind(ht),ht}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");return ae.style.overflow="hidden",ae.style.flexGrow="2",this.fonts.forEach(function(ue){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/H.fonts.length-5+"%",oe.style.borderColor=ue===H.currentFont?H.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){H.setCurrentFont(ue,oe)}),ae.appendChild(oe);var ht=document.createElement("div");ht.style.display="flex",ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.fontFamily=ue,ht.style.overflow="hidden";var vn=document.createElement("div");vn.style.whiteSpace="nowrap",vn.style.overflow="hidden",vn.style.textOverflow="ellipsis",vn.innerHTML="The quick brown fox jumps over the lazy dog",ht.appendChild(vn),oe.appendChild(ht),H.fontBoxes.push(oe)}),ae},B.prototype.setCurrentFont=function(H,ae){var ue=this;this.currentFont=H,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},B}(Fe),wt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="your text here",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=ue.defaultColor,oe.fontFamily=ue.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new Pe("Color",ue.defaultColorSet,ue.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new Tt("Font",ue.defaultFontFamilies,ue.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return je(B,ne),B.prototype.ownsTarget=function(H){if(ne.prototype.ownsTarget.call(this,H)||H===this.visual||H===this.textElement||H===this.bgRectangle)return!0;var ae=!1;return this.textElement.childNodes.forEach(function(ue){ue===H&&(ae=!0)}),ae},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.bgRectangle=he.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=he.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.isMoved=!1,this.pointerDownPoint=H,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(H),this._state="creating")},B.prototype.renderText=function(){var H=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ae){H.textElement.appendChild(he.createTSpan(ae.trim()===""?" ":ae.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},B.prototype.getTextScale=function(){var H=this.textElement.getBBox(),ae=1;if(H.width>0&&H.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/H.width,oe=(1*this.height-this.height*this.padding*2/100)/H.height;ae=Math.min(ue,oe)}return ae},B.prototype.getTextPosition=function(H){var ae=this.textElement.getBBox(),ue=0,oe=0;return ae.width>0&&ae.height>0&&(ue=(this.width-ae.width*H)/2,oe=this.height/2-ae.height*H/2),{x:ue,y:oe}},B.prototype.sizeText=function(){var H=this.textElement.getBBox(),ae=this.getTextScale(),ue=this.getTextPosition(ae);ue.y-=H.y*ae,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+ae+", "+ae+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(ae,ae))},B.prototype.manipulate=function(H){ne.prototype.manipulate.call(this,H),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(H.x-this.pointerDownPoint.x)>5||Math.abs(H.y-this.pointerDownPoint.y)>5)},B.prototype.resize=function(H){ne.prototype.resize.call(this,H),this.isMoved=!0,this.setSize(),this.sizeText()},B.prototype.setSize=function(){ne.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},B.prototype.pointerUp=function(H){var ae=this.state;ae==="creating"&&(this._suppressMarkerCreateEvent=!0),ne.prototype.pointerUp.call(this,H),this.setSize(),(ae==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},B.prototype.showTextEditor=function(){var H=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ae){ae.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ae=Number.parseFloat(H.textEditor.style.fontSize);H.textEditor.clientWidth>=Number.parseInt(H.textEditor.style.maxWidth)&&ae>.9;)ae-=.1,H.textEditor.style.fontSize=Math.max(ae,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ae){ae.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ae){if(ae.clipboardData){var ue=ae.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(ue)),ae.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){H.textEditDivClicked(H.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},B.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var H=this.getTextScale(),ae=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),oe={x:ue.width*H,y:ue.height*H};ae.x-=oe.x/2,ae.y-=oe.y/2,this.textEditor.style.top=ae.y+"px",this.textEditor.style.left=ae.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ae.x+"px",this.textEditor.style.fontSize=Math.max(16*H,12)+"px",this.textElement.style.display="none"}},B.prototype.textEditDivClicked=function(H){this.text=H.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},B.prototype.select=function(){ne.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},B.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ne.prototype.deselect.call(this)},B.prototype.dblClick=function(H,ae){ne.prototype.dblClick.call(this,H,ae),this.showTextEditor()},B.prototype.setColor=function(H){this.textElement&&he.setAttributes(this.textElement,[["fill",H]]),this.color=H,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(H)},B.prototype.setFont=function(H){this.textElement&&he.setAttributes(this.textElement,[["font-family",H]]),this.fontFamily=H,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},B.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},B.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){var ae=H;this.color=ae.color,this.fontFamily=ae.fontFamily,this.padding=ae.padding,this.text=ae.text,this.createVisual(),ne.prototype.restoreState.call(this,H),this.setSize()},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae),this.setSize(),this.sizeText(),this.positionTextEditor()},B.typeName="TextMarker",B.title="Text marker",B.icon='',B}(tn),Qe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=ue.defaultColor,oe.lineWidth=ue.defaultStrokeWidth,oe.pixelRatio=ue.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new Pe("Color",ue.defaultColorSet,ue.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.drawingImage)},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var H=he.createTransform();this.visual.transform.baseVal.appendItem(H),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(H,ae){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(H.x,H.y),this.drawing=!0):ne.prototype.pointerDown.call(this,H,ae)},B.prototype.manipulate=function(H){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(H.x,H.y),this.canvasContext.stroke()):ne.prototype.manipulate.call(this,H)},B.prototype.resize=function(H){ne.prototype.resize.call(this,H),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},B.prototype.pointerUp=function(H){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ne.prototype.pointerUp.call(this,H)},B.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},B.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ne.prototype.select.call(this)},B.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ne.prototype.deselect.call(this)},B.prototype.finishCreation=function(){for(var H=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ae=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=ae[0],oe=ae[1],ht=ae[2],vn=ae[3],Tn=!1,fr=0;fr0&&(Tn=!0,frvn&&(vn=fr),Vt>ht&&(ht=Vt));if(Tn){this.left=ue/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(ht-ue)/this.pixelRatio,this.height=(vn-oe)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=ht-ue,Et.height=vn-oe,Et.getContext("2d").putImageData(this.canvasContext.getImageData(ue,oe,ht-ue,vn-oe),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},B.prototype.setDrawingImage=function(){he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},B.prototype.setColor=function(H){this.color=H,this.colorChanged(H)},B.prototype.setLineWidth=function(H){this.lineWidth=H},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({drawingImgUrl:this.drawingImgUrl},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){this.createVisual(),ne.prototype.restoreState.call(this,H),this.drawingImgUrl=H.drawingImgUrl,this.setDrawingImage()},B.prototype.scale=function(H,ae){ne.prototype.scale.call(this,H,ae),this.setDrawingImage()},B.typeName="FreehandMarker",B.title="Freehand marker",B.icon='',B}(tn),Je=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ue||'')||this;return oe.typeBoxes=[],oe.currentType=ae,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2";for(var ue=function(vn){var Tn="both";switch(vn){case 0:Tn="both";break;case 1:Tn="start";break;case 2:Tn="end";break;case 3:Tn="none"}var fr=document.createElement("div");if(fr.style.display="flex",fr.style.flexGrow="2",fr.style.alignItems="center",fr.style.justifyContent="space-between",fr.style.padding="5px",fr.style.borderWidth="2px",fr.style.borderStyle="solid",fr.style.borderColor=Tn===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",fr.addEventListener("click",function(){H.setCurrentType(Tn,fr)}),ae.appendChild(fr),Tn==="both"||Tn==="start"){var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.innerHTML=` - `,Vt.style.marginLeft="5px",cr.appendChild(Vt)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var Jt=document.createElement("hr");if(Jt.style.minWidth="20px",Jt.style.border="0px",Jt.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),Jt.style.flexGrow="2",Et.appendChild(Jt),cr.appendChild(Et),Tn==="both"||Tn==="end"){var Fn=document.createElement("div");Fn.style.display="flex",Fn.style.alignItems="center",Fn.style.minHeight="20px",Fn.innerHTML=` + `,Vt.style.marginLeft="5px",fr.appendChild(Vt)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var Jt=document.createElement("hr");if(Jt.style.minWidth="20px",Jt.style.border="0px",Jt.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),Jt.style.flexGrow="2",Et.appendChild(Jt),fr.appendChild(Et),Tn==="both"||Tn==="end"){var Fn=document.createElement("div");Fn.style.display="flex",Fn.style.alignItems="center",Fn.style.minHeight="20px",Fn.innerHTML=` - `,Fn.style.marginRight="5px",cr.appendChild(Fn)}oe.typeBoxes.push(cr)},oe=this,ht=0;ht<4;ht++)ue(ht);return ae},B.prototype.setCurrentType=function(H,ae){var ue=this;this.currentType=H,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},B}(Fe),Xe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new Je("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.arrow1&&H!==this.arrow2)},B.prototype.getArrowPoints=function(H,ae){var ue=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return H-ue/2+","+(ae+oe/2)+" "+H+","+(ae-oe/2)+" "+(H+ue/2)+","+(ae+oe/2)},B.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if(ne.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ae=this.arrow1.transform.baseVal.getItem(0);ae.setRotate(H,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ae,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(H+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},B.prototype.setArrowType=function(H){this.arrowType=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({arrowType:this.arrowType},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.arrowType=ae.arrowType,this.createTips(),this.adjustVisual()},B.typeName="ArrowMarker",B.title="Arrow marker",B.icon='',B}(sn),Oe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.fillColor=ue.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new Pe("Color",ue.defaultColorSet,ue.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return je(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="CoverMarker",B.title="Cover marker",B.icon='',B}(Qt),Ae=function(ne){function B(H,ae,ue,oe){var ht=ne.call(this,H,oe||'')||this;return ht.opacities=[],ht.opacityBoxes=[],ht.opacities=ae,ht.currentOpacity=ue,ht.setCurrentOpacity=ht.setCurrentOpacity.bind(ht),ht}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");return ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2",ae.style.justifyContent="space-between",this.opacities.forEach(function(ue){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ue===H.currentOpacity?H.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){H.setCurrentOpacity(ue,oe)}),ae.appendChild(oe);var ht=document.createElement("div");ht.innerText=100*ue+"%",oe.appendChild(ht),H.opacityBoxes.push(oe)}),ae},B.prototype.setCurrentOpacity=function(H,ae){var ue=this;this.currentOpacity=H,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},B}(Fe),ye=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=ue.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=ue.defaultHighlightOpacity,oe.fillPanel=new Pe("Color",ue.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Ae("Opacity",ue.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return je(B,ne),B.prototype.setOpacity=function(H){this.opacity=H,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="HighlightMarker",B.title="Highlight marker",B.icon='',B}(Oe),Se='',dt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=ue.defaultStrokeColor,oe.bgColor=ue.defaultFillColor,oe.fontFamily=ue.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new Pe("Text color",ue.defaultColorSet,oe.color,''),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new Pe("Fill color",ue.defaultColorSet,oe.bgColor,Se),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new Tt("Font",ue.defaultFontFamilies,ue.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new At,oe.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return je(B,ne),B.prototype.ownsTarget=function(H){return ne.prototype.ownsTarget.call(this,H)||this.tipGrip.ownsTarget(H)||this.tip===H},B.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},B.prototype.pointerDown=function(H,ae){this.state==="new"&&ne.prototype.pointerDown.call(this,H,ae),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ae)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ne.prototype.pointerDown.call(this,H,ae)},B.prototype.pointerUp=function(H){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ne.prototype.pointerUp.call(this,H);else{var ae=this.state==="creating";ne.prototype.pointerUp.call(this,H),this.setTipPoints(ae),this.positionTip()}},B.prototype.manipulate=function(H){if(this.tipMoving){var ae=this.unrotatePoint(H);this.tipPosition={x:ae.x-this.manipulationStartLeft,y:ae.y-this.manipulationStartTop},this.positionTip()}else ne.prototype.manipulate.call(this,H)},B.prototype.setBgColor=function(H){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",H]]),he.setAttributes(this.tip,[["fill",H]])),this.bgColor=H,this.fillColorChanged(H)},B.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},B.prototype.setTipPoints=function(H){H===void 0&&(H=!1);var ae=Math.min(this.height/2,15),ue=this.height/5;H&&(this.tipPosition={x:ae+ue/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?oe.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ae=this.tip1.transform.baseVal.getItem(0);ae.setRotate(H,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ae,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(H+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H),this.createTips(),this.adjustVisual()},B.typeName="MeasurementMarker",B.title="Measurement marker",B.icon='',B}(sn),xn=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokePanel.colors=ue.defaultColorSet,oe.fillColor="transparent",oe}return je(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="EllipseFrameMarker",B.title="Ellipse frame marker",B.icon='',B}(et),Dt=function(){function ne(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ne.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ne.prototype.addUndoStep=function(B){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(B)||(this.undoStack.push(B),JSON.stringify(this.lastRedoStep)!==JSON.stringify(B)&&this.redoStack.splice(0,this.redoStack.length))},ne.prototype.replaceLastUndoStep=function(B){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=B)},ne.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ne.prototype.undo=function(){if(this.undoStack.length>1){var B=this.undoStack.pop();return B!==void 0&&this.redoStack.push(B),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ne.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ne}(),yt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=ue.defaultColor,oe.strokeWidth=ue.defaultStrokeWidth,oe.strokeDasharray=ue.defaultStrokeDasharray,oe.strokePanel=new Pe("Line color",ue.defaultColorSet,ue.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Un("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorCurve&&H!==this.visibleCurve&&!this.curveGrip.ownsTarget(H))},B.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=H.x,this.curveY=H.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ae)&&(this.activeGrip=this.curveGrip,this._state="resize")},B.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setupControlBox=function(){ne.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},B.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ne.prototype.addControlGrips.call(this)},B.prototype.positionGrips=function(){ne.prototype.positionGrips.call(this);var H=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-H/2,this.curveY-H/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},B.prototype.manipulate=function(H){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+H.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+H.y-this.manipulationStartY),ne.prototype.manipulate.call(this,H)},B.prototype.resize=function(H){this.activeGrip===this.curveGrip&&(this.curveX=H.x,this.curveY=H.y),ne.prototype.resize.call(this,H),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},B.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},B.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},B.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual()},B.prototype.scale=function(H,ae){this.curveX=this.curveX*H,this.curveY=this.curveY*ae,ne.prototype.scale.call(this,H,ae)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.curveX=ae.curveX,this.curveY=ae.curveY,this.createVisual(),this.adjustVisual()},B.typeName="CurveMarker",B.title="Curve marker",B.icon='',B}(Ht),mn=function(){function ne(B,H){H===void 0&&(H=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=B,this.cancelable=H}return Object.defineProperty(ne.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ne.prototype.preventDefault=function(){this._defaultPrevented=!0},ne}(),pe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,!1)||this;return oe.dataUrl=ae,oe.state=ue,oe}return je(B,ne),B}(mn),Gt=function(ne){function B(H,ae,ue){ue===void 0&&(ue=!1);var oe=ne.call(this,H,ue)||this;return oe.marker=ae,oe}return je(B,ne),B}(mn),Lt=function(){function ne(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ne.prototype.addEventListener=function(B,H){this[B].push(H)},ne.prototype.removeEventListener=function(B,H){var ae=this[B].indexOf(H);ae>-1&&this[B].splice(ae,1)},ne}(),Be=function(){function ne(B){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new lt,this._isOpen=!1,this.undoRedoManager=new Dt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ne.instanceCounter++,this.styles=new Ne(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=B,this.targetRoot=document.body,this.width=B.clientWidth,this.height=B.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ne.prototype,"ALL_MARKER_TYPES",{get:function(){return[mt,Qe,Xe,wt,xn,et,ye,dt,xt,Oe,sn,yt]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[mt,Qe,Xe,wt,et,ye,dt]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"BASIC_MARKER_TYPES",{get:function(){return[mt,Qe,Xe,wt,ye]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(B){var H=this;this._availableMarkerTypes.splice(0),B.forEach(function(ae){if(typeof ae=="string"){var ue=H.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===ae});ue!==void 0&&H._availableMarkerTypes.push(ue)}else H._availableMarkerTypes.push(ae)})},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(B){this._zoomLevel=B,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ne.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ne.prototype.show=function(){var B=this;this.styles.styleSheetRoot===void 0&&fe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=fe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(H){return H(new mn(B))})},ne.prototype.render=function(){return He(this,void 0,void 0,function(){var B;return nt(this,function(H){switch(H.label){case 0:return this.setCurrentMarker(),(B=new Ee).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.markersOnly=this.renderMarkersOnly,B.width=this.renderWidth,B.height=this.renderHeight,[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return H.sent(),[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,H.sent()]}})})},ne.prototype.close=function(B){var H=this;if(B===void 0&&(B=!1),this.isOpen){var ae=!1;B||this.eventListeners.beforeclose.forEach(function(ue){var oe=new mn(H,!0);ue(oe),oe.defaultPrevented&&(ae=!0)}),ae||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ue){return ue(new mn(H))}),this.detachEvents(),this._isOpen=!1)}},ne.prototype.addMarkersToToolbar=function(){for(var B,H=[],ae=0;aethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*B:this.editorCanvas.clientWidth,ae=H',B.title="Powered by marker.js",B.style.display="grid",B.style.alignItems="center",B.style.justifyItems="center",B.style.padding="3px",B.style.width="20px",B.style.height="20px",this.logoUI.appendChild(B),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ne.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ne.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ne.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ne.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ze(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(B),1),B.dispose()},ne.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ne.prototype.toolbarButtonClicked=function(B,H){if(B==="marker"&&H!==void 0)this.createNewMarker(H);else if(B==="action")switch(H){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ne.prototype.deleteSelectedMarker=function(){var B=this;if(this._currentMarker!==void 0){var H=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var oe=new Gt(B,B._currentMarker,!0);ue(oe),oe.defaultPrevented&&(H=!0)}),!H){var ae=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new Gt(B,ae))})}}},ne.prototype.clear=function(){var B=this,H=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ht){var vn=new Gt(B,void 0,!0);ht(vn),vn.defaultPrevented&&(H=!0)}),!H)){this.setCurrentMarker();for(var ae=function(ht){var vn=ue.markers[ht];ue.setCurrentMarker(ue.markers[ht]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(Tn){return Tn(new Gt(B,vn))})},ue=this,oe=this.markers.length-1;oe>=0;oe--)ae(oe);this.addUndoStep()}},Object.defineProperty(ne.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ne.prototype.showNotesEditor=function(){var B;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(B=this._currentMarker.notes)!==null&&B!==void 0?B:"",this.overlayContainer.appendChild(this.notesArea))},ne.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ne.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ne.prototype.addUndoStep=function(){var B=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var H=this.getState(),ae=this.undoRedoManager.getLastUndoStep();if(!ae||ae.width===H.width&&ae.height===H.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(H),ue1&&this.panTo({x:B.clientX,y:B.clientY}))},ne.prototype.onPointerUp=function(B){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(B.clientX,B.clientY)),this.isDragging=!1,this.addUndoStep()},ne.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ne.prototype.onKeyUp=function(B){this._currentMarker===void 0||this.notesArea!==void 0||B.key!=="Delete"&&B.key!=="Backspace"||this.deleteSelectedMarker()},ne.prototype.clientToLocalCoordinates=function(B,H){var ae=this.markerImage.getBoundingClientRect();return{x:(B-ae.left)/this.zoomLevel,y:(H-ae.top)/this.zoomLevel}},ne.prototype.onWindowResize=function(){this.positionUI()},ne.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ne.prototype.addLicenseKey=function(B){ce.addKey(B)},ne.prototype.addEventListener=function(B,H){this.eventListeners.addEventListener(B,H)},ne.prototype.removeEventListener=function(B,H){this.eventListeners.removeEventListener(B,H)},ne.prototype.renderState=function(B){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(B),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ne.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ne.prototype.focus=function(){var B=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(H){return H(new mn(B))}))},ne.prototype.blur=function(){var B=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(H){return H(new mn(B))}))},ne.instanceCounter=0,ne}();/* ********************************** + `,Fn.style.marginRight="5px",fr.appendChild(Fn)}oe.typeBoxes.push(fr)},oe=this,ht=0;ht<4;ht++)ue(ht);return ae},B.prototype.setCurrentType=function(H,ae){var ue=this;this.currentType=H,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},B}(Fe),Xe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new Je("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.arrow1&&H!==this.arrow2)},B.prototype.getArrowPoints=function(H,ae){var ue=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return H-ue/2+","+(ae+oe/2)+" "+H+","+(ae-oe/2)+" "+(H+ue/2)+","+(ae+oe/2)},B.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if(ne.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ae=this.arrow1.transform.baseVal.getItem(0);ae.setRotate(H,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ae,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(H+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},B.prototype.setArrowType=function(H){this.arrowType=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({arrowType:this.arrowType},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.arrowType=ae.arrowType,this.createTips(),this.adjustVisual()},B.typeName="ArrowMarker",B.title="Arrow marker",B.icon='',B}(sn),Oe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.fillColor=ue.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new Pe("Color",ue.defaultColorSet,ue.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return je(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="CoverMarker",B.title="Cover marker",B.icon='',B}(Qt),Ae=function(ne){function B(H,ae,ue,oe){var ht=ne.call(this,H,oe||'')||this;return ht.opacities=[],ht.opacityBoxes=[],ht.opacities=ae,ht.currentOpacity=ue,ht.setCurrentOpacity=ht.setCurrentOpacity.bind(ht),ht}return je(B,ne),B.prototype.getUi=function(){var H=this,ae=document.createElement("div");return ae.style.display="flex",ae.style.overflow="hidden",ae.style.flexGrow="2",ae.style.justifyContent="space-between",this.opacities.forEach(function(ue){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ue===H.currentOpacity?H.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){H.setCurrentOpacity(ue,oe)}),ae.appendChild(oe);var ht=document.createElement("div");ht.innerText=100*ue+"%",oe.appendChild(ht),H.opacityBoxes.push(oe)}),ae},B.prototype.setCurrentOpacity=function(H,ae){var ue=this;this.currentOpacity=H,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===ae?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},B}(Fe),ye=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=ue.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=ue.defaultHighlightOpacity,oe.fillPanel=new Pe("Color",ue.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Ae("Opacity",ue.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return je(B,ne),B.prototype.setOpacity=function(H){this.opacity=H,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="HighlightMarker",B.title="Highlight marker",B.icon='',B}(Oe),Se='',dt=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=ue.defaultStrokeColor,oe.bgColor=ue.defaultFillColor,oe.fontFamily=ue.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new Pe("Text color",ue.defaultColorSet,oe.color,''),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new Pe("Fill color",ue.defaultColorSet,oe.bgColor,Se),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new Tt("Font",ue.defaultFontFamilies,ue.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new At,oe.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return je(B,ne),B.prototype.ownsTarget=function(H){return ne.prototype.ownsTarget.call(this,H)||this.tipGrip.ownsTarget(H)||this.tip===H},B.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},B.prototype.pointerDown=function(H,ae){this.state==="new"&&ne.prototype.pointerDown.call(this,H,ae),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ae)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ne.prototype.pointerDown.call(this,H,ae)},B.prototype.pointerUp=function(H){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ne.prototype.pointerUp.call(this,H);else{var ae=this.state==="creating";ne.prototype.pointerUp.call(this,H),this.setTipPoints(ae),this.positionTip()}},B.prototype.manipulate=function(H){if(this.tipMoving){var ae=this.unrotatePoint(H);this.tipPosition={x:ae.x-this.manipulationStartLeft,y:ae.y-this.manipulationStartTop},this.positionTip()}else ne.prototype.manipulate.call(this,H)},B.prototype.setBgColor=function(H){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",H]]),he.setAttributes(this.tip,[["fill",H]])),this.bgColor=H,this.fillColorChanged(H)},B.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},B.prototype.setTipPoints=function(H){H===void 0&&(H=!1);var ae=Math.min(this.height/2,15),ue=this.height/5;H&&(this.tipPosition={x:ae+ue/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?oe.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ae=this.tip1.transform.baseVal.getItem(0);ae.setRotate(H,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ae,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(H+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H),this.createTips(),this.adjustVisual()},B.typeName="MeasurementMarker",B.title="Measurement marker",B.icon='',B}(sn),xn=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokePanel.colors=ue.defaultColorSet,oe.fillColor="transparent",oe}return je(B,ne),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=ne.prototype.getState.call(this);return H.typeName=B.typeName,H},B.typeName="EllipseFrameMarker",B.title="Ellipse frame marker",B.icon='',B}(et),Dt=function(){function ne(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ne.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ne.prototype.addUndoStep=function(B){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(B)||(this.undoStack.push(B),JSON.stringify(this.lastRedoStep)!==JSON.stringify(B)&&this.redoStack.splice(0,this.redoStack.length))},ne.prototype.replaceLastUndoStep=function(B){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=B)},ne.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ne.prototype.undo=function(){if(this.undoStack.length>1){var B=this.undoStack.pop();return B!==void 0&&this.redoStack.push(B),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ne.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ne}(),_t=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae,ue)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=ue.defaultColor,oe.strokeWidth=ue.defaultStrokeWidth,oe.strokeDasharray=ue.defaultStrokeDasharray,oe.strokePanel=new Pe("Line color",ue.defaultColorSet,ue.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Cn("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Un("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return je(B,ne),B.prototype.ownsTarget=function(H){return!(!ne.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorCurve&&H!==this.visibleCurve&&!this.curveGrip.ownsTarget(H))},B.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},B.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(H,ae){ne.prototype.pointerDown.call(this,H,ae),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=H.x,this.curveY=H.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ae)&&(this.activeGrip=this.curveGrip,this._state="resize")},B.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setupControlBox=function(){ne.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},B.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ne.prototype.addControlGrips.call(this)},B.prototype.positionGrips=function(){ne.prototype.positionGrips.call(this);var H=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-H/2,this.curveY-H/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},B.prototype.manipulate=function(H){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+H.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+H.y-this.manipulationStartY),ne.prototype.manipulate.call(this,H)},B.prototype.resize=function(H){this.activeGrip===this.curveGrip&&(this.curveX=H.x,this.curveY=H.y),ne.prototype.resize.call(this,H),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},B.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},B.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},B.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual()},B.prototype.scale=function(H,ae){this.curveX=this.curveX*H,this.curveY=this.curveY*ae,ne.prototype.scale.call(this,H,ae)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ne.prototype.getState.call(this));return H.typeName=B.typeName,H},B.prototype.restoreState=function(H){ne.prototype.restoreState.call(this,H);var ae=H;this.strokeColor=ae.strokeColor,this.strokeWidth=ae.strokeWidth,this.strokeDasharray=ae.strokeDasharray,this.curveX=ae.curveX,this.curveY=ae.curveY,this.createVisual(),this.adjustVisual()},B.typeName="CurveMarker",B.title="Curve marker",B.icon='',B}(Ht),mn=function(){function ne(B,H){H===void 0&&(H=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=B,this.cancelable=H}return Object.defineProperty(ne.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ne.prototype.preventDefault=function(){this._defaultPrevented=!0},ne}(),pe=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,!1)||this;return oe.dataUrl=ae,oe.state=ue,oe}return je(B,ne),B}(mn),Gt=function(ne){function B(H,ae,ue){ue===void 0&&(ue=!1);var oe=ne.call(this,H,ue)||this;return oe.marker=ae,oe}return je(B,ne),B}(mn),Lt=function(){function ne(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ne.prototype.addEventListener=function(B,H){this[B].push(H)},ne.prototype.removeEventListener=function(B,H){var ae=this[B].indexOf(H);ae>-1&&this[B].splice(ae,1)},ne}(),Be=function(){function ne(B){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new lt,this._isOpen=!1,this.undoRedoManager=new Dt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ne.instanceCounter++,this.styles=new Ne(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=B,this.targetRoot=document.body,this.width=B.clientWidth,this.height=B.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ne.prototype,"ALL_MARKER_TYPES",{get:function(){return[mt,Qe,Xe,wt,xn,et,ye,dt,xt,Oe,sn,_t]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[mt,Qe,Xe,wt,et,ye,dt]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"BASIC_MARKER_TYPES",{get:function(){return[mt,Qe,Xe,wt,ye]},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(B){var H=this;this._availableMarkerTypes.splice(0),B.forEach(function(ae){if(typeof ae=="string"){var ue=H.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===ae});ue!==void 0&&H._availableMarkerTypes.push(ue)}else H._availableMarkerTypes.push(ae)})},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(B){this._zoomLevel=B,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ne.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ne.prototype.show=function(){var B=this;this.styles.styleSheetRoot===void 0&&fe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=fe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(H){return H(new mn(B))})},ne.prototype.render=function(){return He(this,void 0,void 0,function(){var B;return nt(this,function(H){switch(H.label){case 0:return this.setCurrentMarker(),(B=new Ee).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.markersOnly=this.renderMarkersOnly,B.width=this.renderWidth,B.height=this.renderHeight,[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return H.sent(),[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,H.sent()]}})})},ne.prototype.close=function(B){var H=this;if(B===void 0&&(B=!1),this.isOpen){var ae=!1;B||this.eventListeners.beforeclose.forEach(function(ue){var oe=new mn(H,!0);ue(oe),oe.defaultPrevented&&(ae=!0)}),ae||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ue){return ue(new mn(H))}),this.detachEvents(),this._isOpen=!1)}},ne.prototype.addMarkersToToolbar=function(){for(var B,H=[],ae=0;aethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*B:this.editorCanvas.clientWidth,ae=H',B.title="Powered by marker.js",B.style.display="grid",B.style.alignItems="center",B.style.justifyItems="center",B.style.padding="3px",B.style.width="20px",B.style.height="20px",this.logoUI.appendChild(B),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ne.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ne.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ne.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ne.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ze(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(B),1),B.dispose()},ne.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ne.prototype.toolbarButtonClicked=function(B,H){if(B==="marker"&&H!==void 0)this.createNewMarker(H);else if(B==="action")switch(H){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ne.prototype.deleteSelectedMarker=function(){var B=this;if(this._currentMarker!==void 0){var H=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var oe=new Gt(B,B._currentMarker,!0);ue(oe),oe.defaultPrevented&&(H=!0)}),!H){var ae=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new Gt(B,ae))})}}},ne.prototype.clear=function(){var B=this,H=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ht){var vn=new Gt(B,void 0,!0);ht(vn),vn.defaultPrevented&&(H=!0)}),!H)){this.setCurrentMarker();for(var ae=function(ht){var vn=ue.markers[ht];ue.setCurrentMarker(ue.markers[ht]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(Tn){return Tn(new Gt(B,vn))})},ue=this,oe=this.markers.length-1;oe>=0;oe--)ae(oe);this.addUndoStep()}},Object.defineProperty(ne.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ne.prototype.showNotesEditor=function(){var B;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(B=this._currentMarker.notes)!==null&&B!==void 0?B:"",this.overlayContainer.appendChild(this.notesArea))},ne.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ne.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ne.prototype.addUndoStep=function(){var B=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var H=this.getState(),ae=this.undoRedoManager.getLastUndoStep();if(!ae||ae.width===H.width&&ae.height===H.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(H),ue1&&this.panTo({x:B.clientX,y:B.clientY}))},ne.prototype.onPointerUp=function(B){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(B.clientX,B.clientY)),this.isDragging=!1,this.addUndoStep()},ne.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ne.prototype.onKeyUp=function(B){this._currentMarker===void 0||this.notesArea!==void 0||B.key!=="Delete"&&B.key!=="Backspace"||this.deleteSelectedMarker()},ne.prototype.clientToLocalCoordinates=function(B,H){var ae=this.markerImage.getBoundingClientRect();return{x:(B-ae.left)/this.zoomLevel,y:(H-ae.top)/this.zoomLevel}},ne.prototype.onWindowResize=function(){this.positionUI()},ne.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ne.prototype.addLicenseKey=function(B){ce.addKey(B)},ne.prototype.addEventListener=function(B,H){this.eventListeners.addEventListener(B,H)},ne.prototype.removeEventListener=function(B,H){this.eventListeners.removeEventListener(B,H)},ne.prototype.renderState=function(B){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(B),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ne.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ne.prototype.focus=function(){var B=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(H){return H(new mn(B))}))},ne.prototype.blur=function(){var B=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(H){return H(new mn(B))}))},ne.instanceCounter=0,ne}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -154,7 +154,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ot=function(ne,B){return(ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,ae){H.__proto__=ae}||function(H,ae){for(var ue in ae)Object.prototype.hasOwnProperty.call(ae,ue)&&(H[ue]=ae[ue])})(ne,B)};function Xt(ne,B){if(typeof B!="function"&&B!==null)throw new TypeError("Class extends value "+String(B)+" is not a constructor or null");function H(){this.constructor=ne}ot(ne,B),ne.prototype=B===null?Object.create(B):(H.prototype=B.prototype,new H)}function Pt(ne,B,H,ae){return new(H||(H=Promise))(function(ue,oe){function ht(cr){try{Tn(ae.next(cr))}catch(Vt){oe(Vt)}}function vn(cr){try{Tn(ae.throw(cr))}catch(Vt){oe(Vt)}}function Tn(cr){var Vt;cr.done?ue(cr.value):(Vt=cr.value,Vt instanceof H?Vt:new H(function(Et){Et(Vt)})).then(ht,vn)}Tn((ae=ae.apply(ne,B||[])).next())})}function $t(ne,B){var H,ae,ue,oe,ht={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return oe={next:vn(0),throw:vn(1),return:vn(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function vn(Tn){return function(cr){return function(Vt){if(H)throw new TypeError("Generator is already executing.");for(;ht;)try{if(H=1,ae&&(ue=2&Vt[0]?ae.return:Vt[0]?ae.throw||((ue=ae.return)&&ue.call(ae),0):ae.next)&&!(ue=ue.call(ae,Vt[1])).done)return ue;switch(ae=0,ue&&(Vt=[2&Vt[0],ue.value]),Vt[0]){case 0:case 1:ue=Vt;break;case 4:return ht.label++,{value:Vt[1],done:!1};case 5:ht.label++,ae=Vt[1],Vt=[0];continue;case 7:Vt=ht.ops.pop(),ht.trys.pop();continue;default:if(!(ue=ht.trys,(ue=ue.length>0&&ue[ue.length-1])||Vt[0]!==6&&Vt[0]!==2)){ht=0;continue}if(Vt[0]===3&&(!ue||Vt[1]>ue[0]&&Vt[1]0&&ue[ue.length-1])||Vt[0]!==6&&Vt[0]!==2)){ht=0;continue}if(Vt[0]===3&&(!ue||Vt[1]>ue[0]&&Vt[1]0&&H>0){var ae=new re(B,H),ue=ae.ratio>=1?20:ae.getHorizontalLength(20),oe=ae.ratio<1?20:ae.getVerticalLength(20),ht=document.createElementNS("http://www.w3.org/2000/svg","svg");ht.setAttribute("xmlns","http://www.w3.org/2000/svg"),ht.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ht);var vn=bt.createDefs();ht.appendChild(vn);var Tn=bt.createElement("clipPath",[["id","text-bg-clip"]]);vn.appendChild(Tn);var cr=bt.createPath(bt.getHollowRectanglePath((24-ue)/2,(24-oe)/2,ue,oe,(24-ue)/2+2,(24-oe)/2+2,ue-4,oe-4));ht.appendChild(cr);var Vt=bt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Vt.appendChild(bt.createTSpan(B+":"+H)),ht.appendChild(Vt);var Et=Vt.getBBox();bt.setAttributes(Vt,[["x",((24-Et.width)/2).toString()],["y",((24-Et.height)/2-Et.y).toString()]]);var Jt=bt.createPath(bt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Et.width))/2,(24-Math.ceil(Et.height))/2,Math.ceil(Et.width),Math.ceil(Et.height)));return Tn.appendChild(Jt),bt.setAttributes(cr,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ht),ht.outerHTML}return''},ne}(),Ue=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae)||this;return oe.isDropdownOpen=!1,oe.onClick=oe.dropdownButtonClicked,oe.dropdownButtons=ue,oe}return Xt(B,ne),B.prototype.setupDropdown=function(){var H=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ae){ae.className=H.className,ae.colorsClassName=H.colorsClassName,H.dropdownBlock.appendChild(ae.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},B.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},B.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},B.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},B.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},B.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},B}(Q),it=function(){function ne(B,H){this.GRIP_SIZE=10,this.color=B,this.fillColor=H,this.visual=bt.createGroup(),this.visual.appendChild(bt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(bt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ne.prototype.ownsTarget=function(B){return B===this.visual||B===this.visual.childNodes[0]||B===this.visual.childNodes[1]},ne.prototype.setCenter=function(B,H){this.visual.childNodes.forEach(function(ae){return bt.setAttributes(ae,[["cx",B.toString()],["cy",H.toString()]])})},ne}(),Mt=function(){function ne(B,H,ae,ue){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=B,this.canvasHeight=H,this.margin=ae,this.container=ue,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(ne.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(B){this._aspectRatio=B,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(B){this._isGridVisible=B,this.gridContainer&&bt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(B){this._zoomFactor=B,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ne.prototype.open=function(){var B=this;this.cropShadeElement=bt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=bt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var H=0;Hthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-H.height/2),bt.setAttributes(this.cropRectElement,[["x",H.x.toString()],["y",H.y.toString()],["width",H.width.toString()],["height",H.height.toString()]]);var ae=H.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(oe,ht){var vn=H.y+ae*(ht+1);bt.setAttributes(oe,[["x1",""+H.x],["y1",""+vn],["x2",""+(H.x+H.width)],["y2",""+vn]])});var ue=H.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(oe,ht){var vn=H.x+ue*(ht+1);bt.setAttributes(oe,[["x1",""+vn],["y1",""+H.y],["x2",""+vn],["y2",""+(H.y+H.height)]])}),bt.setAttributes(this.cropShadeElement,[["d",bt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,H.x,H.y,H.width,H.height)]]),this.topLeftGrip.setCenter(H.x,H.y),this.topRightGrip.setCenter(H.x+H.width,H.y),this.bottomLeftGrip.setCenter(H.x,H.y+H.height),this.bottomRightGrip.setCenter(H.x+H.width,H.y+H.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ne.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},ne.prototype.clientToLocalCoordinates=function(B,H){var ae=this.container.getBoundingClientRect();return{x:B-ae.left+this.margin,y:H-ae.top+this.margin}},ne.prototype.onPointerDown=function(B){this.container.setPointerCapture(B.pointerId),this.previousPoint=this.clientToLocalCoordinates(B.clientX,B.clientY),this.cropRectElement===B.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(B.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(B.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(B.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(B.target)&&(this.activeGrip=this.bottomRightGrip)},ne.prototype.onPointerMove=function(B){if(this.isMoving)this.move(this.clientToLocalCoordinates(B.clientX,B.clientY));else if(this.activeGrip){var H=this.clientToLocalCoordinates(B.clientX,B.clientY);this.resize(H)}B.preventDefault()},ne.prototype.onPointerUp=function(B){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(B.pointerId)},ne.prototype.move=function(B){var H=B.x-this.previousPoint.x,ae=B.y-this.previousPoint.y;this.zoomFactor!==1&&(H=-H/this.zoomFactor,ae=-ae/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+H),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ae),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=B},ne.prototype.resize=function(B){var H=Object.assign({},this.cropRect),ae=B.x-this.previousPoint.x,ue=B.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:H.x+aethis.canvasWidth*this.zoomFactor&&(ae=this.canvasWidth*this.zoomFactor-H.width),H.width+=ae}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(H.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ae),H.height=this.aspectRatio.getVerticalLength(H.width)):(H.y+=ue,H.height=this.cropRect.y+this.cropRect.height-H.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?H.height=this.aspectRatio.getVerticalLength(H.width):H.height+=ue}H.width<10&&(H.x=this.cropRect.x,H.width=10),H.height<10&&(H.y=this.cropRect.y,H.height=10),this.previousPoint=B,H.x>=this.margin&&H.y>=this.margin&&H.x-this.margin+H.width<=this.canvasWidth&&H.y-this.margin+H.height<=this.canvasHeight&&(this.cropRect=H,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ne.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var B=this.cropRect.x+this.cropRect.width/2,H=this.cropRect.y+this.cropRect.height/2,ae=this.aspectRatio.getHorizontalLength(this.cropRect.height),ue=this.aspectRatio.getVerticalLength(this.cropRect.width);ae/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=B-this.cropRect.width/2,this.cropRect.y=H-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},ne.prototype.getRescaledRect=function(B,H,ae,ue,oe,ht){var vn=ae/B,Tn=ue/H;return{x:(oe.x-ht)*vn+ht,y:(oe.y-ht)*Tn+ht,width:oe.width*vn,height:oe.height*Tn}},ne.prototype.scaleCanvas=function(B,H){var ae=this.getRescaledRect(this.canvasWidth,this.canvasHeight,B,H,this.cropRect,this.margin);this.canvasWidth=B,this.canvasHeight=H,this.onCropChange&&this.onCropChange(ae),this.setCropRectangle(ae)},ne}(),Ln=function(){function ne(B){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=B,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(ne.prototype,"angle",{get:function(){return this._angle},set:function(B){this._angle=B,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ne.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},ne.prototype.onPointerDown=function(B){this.controlContainer.setPointerCapture(B.pointerId),this.isDragging=!0,this.previousPoint={x:B.clientX,y:B.clientY}},ne.prototype.onPointerMove=function(B){this.isDragging&&(this.onAngleChange&&this.onAngleChange((B.clientX-this.previousPoint.x)/5),this.previousPoint.x=B.clientX)},ne.prototype.onPointerUp=function(B){this.isDragging&&this.onAngleChange&&this.onAngleChange((B.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(B.pointerId)},ne.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var B=this.angleLabelText.getBBox();bt.setAttributes(this.angleLabelElement,[["x",((this.width-B.width)/2).toString()],["y",(this.height/2).toString()]])}},ne.prototype.positionScaleShape=function(){if(this.scaleShape){var B=this.scaleShape.transform.baseVal.getItem(0);B.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(B,0)}},ne.prototype.getVisual=function(){var B=document.createElementNS("http://www.w3.org/2000/svg","svg");B.setAttribute("xmlns","http://www.w3.org/2000/svg"),B.setAttribute("width",this.width+"px"),B.setAttribute("height",this.height+"px"),B.setAttribute("viewBox","0 0 "+this.width+" "+this.height),B.style.flexShrink="0",document.body.appendChild(B);for(var H="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ae=1;ae<=this.width/5+10;ae++){var ue=ae%5==0?this.height/3:this.height/6;H+="h4v"+-ue+"h1v"+ue}H+="v1H0Z",this.scaleShape=bt.createPath(H);var oe=bt.createTransform();this.scaleShape.transform.baseVal.appendItem(oe),B.appendChild(this.scaleShape),this.angleLabelElement=bt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=bt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ht=bt.createTSpan("");return ht.innerHTML="°",this.angleLabelElement.appendChild(ht),B.appendChild(this.angleLabelElement),document.body.removeChild(B),B},ne}(),kn=function(){function ne(){this.naturalSize=!1,this.imageType="image/png"}return ne.prototype.rasterize=function(B,H,ae,ue,oe,ht,vn){var Tn=this;return new Promise(function(cr){var Vt=document.createElement("canvas");Vt.width=B.width.baseVal.value-2*ue,Vt.height=B.height.baseVal.value-2*ue;var Et=1,Jt=1;Tn.naturalSize===!0?(Et=H.naturalWidth/(B.width.baseVal.value-2*ue)/ht,Jt=H.naturalHeight/(B.height.baseVal.value-2*ue)/vn,Vt.width=H.naturalWidth/ht,Vt.height=H.naturalHeight/vn):Tn.width!==void 0&&Tn.height!==void 0&&(Et=Tn.width/ae.width,Jt=Tn.height/ae.height,Vt.width*=Et,Vt.height*=Jt);var Fn=Vt.getContext("2d");Fn.translate(Vt.width/2,Vt.height/2),Fn.rotate(oe*Math.PI/180),Fn.scale(ht,vn),Fn.translate(-Vt.width/2,-Vt.height/2),Fn.drawImage(H,0,0,Vt.width,Vt.height);var Vn=document.createElement("canvas");Vn.width=ae.width*Et,Vn.height=ae.height*Jt,Vn.getContext("2d").putImageData(Fn.getImageData((ae.x-ue)*Et,(ae.y-ue)*Jt,ae.width*Et,ae.height*Jt),0,0),cr(Vn.toDataURL(Tn.imageType,Tn.imageQuality))})},ne}(),St=function(){function ne(B){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=ne.instanceCounter++,this.styles=new ft(this.instanceNo),this.target=B,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(ne.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(B){this._zoomToCropEnabled=B,B?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(B){this._isGridVisible=B,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"gridLines",{get:function(){return this._gridLines},set:function(B){this._gridLines=B,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(B){this._rotationAngle=B,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"aspectRatio",{get:function(){var B;return(B=this._aspectRatio)!==null&&B!==void 0?B:this.aspectRatios[0]},set:function(B){this._aspectRatio=B},enumerable:!1,configurable:!0}),ne.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},ne.prototype.show=function(){this.showUI(),this.open()},ne.prototype.close=function(B){B===void 0&&(B=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),B||this.closeEventListeners.forEach(function(H){return H()}),this._isOpen=!1)},ne.prototype.addRenderEventListener=function(B){this.renderEventListeners.push(B)},ne.prototype.removeRenderEventListener=function(B){this.renderEventListeners.indexOf(B)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(B),1)},ne.prototype.addCloseEventListener=function(B){this.closeEventListeners.push(B)},ne.prototype.removeCloseEventListener=function(B){this.closeEventListeners.indexOf(B)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(B),1)},ne.prototype.setupResizeObserver=function(){var B=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){B.resize(B.target.clientWidth,B.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},ne.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var B=1*this.target.clientWidth/this.target.clientHeight,H=this.contentDiv.clientWidth/B>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*B:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ae=H+2*this.CANVAS_MARGINB+this.CANVAS_MARGIN?this.target.offsetTop-(B+this.CANVAS_MARGIN):0;this.coverDiv.style.top=H+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},ne.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ne.prototype.addTopToolbar=function(){var B=this;this.topToolbar=new bn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new ve;H.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(H);var ae=[];this.aspectRatios.forEach(function(Jt){var Fn=new Q(de.getIcon(Jt.horizontal,Jt.vertical),Jt.horizontal===0&&Jt.vertical===0?"FREE":Jt.horizontal+":"+Jt.vertical);Fn.onClick=function(){return B.ratioButtonClicked(Jt)},ae.push(Fn)}),this.aspectRatioButton=new Ue(de.getIcon(0,0),"Aspect ratio",ae),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,H.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ue=new Q('',"Toggle grid");ue.isActive=this.isGridVisible,ue.onClick=function(){B.isGridVisible=!B.isGridVisible,ue.isActive=B.isGridVisible},H.addButton(ue);var oe=new Q('',"Zoom to selection");if(oe.isActive=this.zoomToCropEnabled,oe.onClick=function(){B.zoomToCropEnabled=!B.zoomToCropEnabled,oe.isActive=B.zoomToCropEnabled},H.addButton(oe),!Zt.isLicensed){var ht=new $;this.topToolbar.addElementBlock(ht);var vn=document.createElement("div");vn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Tn=document.createElement("a");Tn.style.color="currentColor",Tn.href="https://markerjs.com/products/cropro",Tn.target="_blank",Tn.innerHTML='',vn.appendChild(Tn),ht.addElement(vn)}var cr=new ve;cr.minWidth=3*this.toolbarHeight+"px",cr.contentAlign="end",this.topToolbar.addButtonBlock(cr);var Vt=new Q('',"OK");Vt.onClick=this.startRenderAndClose,cr.addButton(Vt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Vt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Et=new Q('',"Close");Et.onClick=this.close,cr.addButton(Et),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Et.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ne.prototype.addBottomToolbar=function(){var B=this;this.bottomToolbar=new bn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new ve;H.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(H);var ae=new Q('',"Rotate left");ae.onClick=this.rotateLeftButtonClicked,H.addButton(ae);var ue=new Q('',"Rotate right");ue.onClick=this.rotateRightButtonClicked,H.addButton(ue);var oe=new $;oe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(oe),this.straightener=new Ln("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(cr){B.rotateBy(cr),B.straightener.angle=B.rotationAngle},oe.addElement(this.straightener.getUI());var ht=new ve;ht.minWidth=2*this.toolbarHeight+"px",ht.contentAlign="end",this.bottomToolbar.addButtonBlock(ht);var vn=new Q('',"Flip horizontal");vn.onClick=this.flipHorizontallyButtonClicked,ht.addButton(vn);var Tn=new Q('',"Flip vertical");Tn.onClick=this.flipVerticallyButtonClicked,ht.addButton(Tn)},ne.prototype.ratioButtonClicked=function(B){this.aspectRatio=B,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ne.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=de.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ne.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new re(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ne.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ne.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ne.prototype.restoreState=function(B){if(B){var H=this.cropLayer.getRescaledRect(B.width,B.height,this.imageWidth,this.imageHeight,B.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(H),this.cropRectChanged(H),this.flippedHorizontally=B.flippedHorizontally,this.flippedVertically=B.flippedVertically,this.applyFlip(),this.rotationAngle=B.rotationAngle,this.applyRotation()}},ne.prototype.clientToLocalCoordinates=function(B,H){var ae=this.cropImage.getBoundingClientRect();return{x:B-ae.left,y:H-ae.top}},ne.prototype.onWindowResize=function(){this.positionUI()},ne.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var B=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},ne.prototype.rotateLeftButtonClicked=function(){var B=this.rotationAngle-90;this.rotationAngle%90!=0&&(B+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(B)},ne.prototype.rotateRightButtonClicked=function(){var B=this.rotationAngle+90;this.rotationAngle%90!=0&&(B-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(B)},ne.prototype.rotateTo=function(B){B=(B=B>180?B-360:B)<=-180?B+360:B,this.rotationAngle=B,this.applyRotation()},ne.prototype.rotateBy=function(B){this.rotateTo((this.rotationAngle+B)%360)},ne.prototype.applyRotation=function(){var B=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var H=this.editingTargetRotationContainer.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(H,0);var ae=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ae.width,this.imageHeight/ae.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=B},ne.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ne.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ne.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ne.prototype.startRenderAndClose=function(){return Pt(this,void 0,void 0,function(){var B,H;return $t(this,function(ae){switch(ae.label){case 0:return[4,this.render()];case 1:return B=ae.sent(),H=this.getState(),this.renderEventListeners.forEach(function(ue){return ue(B,H)}),this.close(!0),[2]}})})},ne.prototype.render=function(){return Pt(this,void 0,void 0,function(){var B;return $t(this,function(H){switch(H.label){case 0:return(B=new kn).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.width=this.renderWidth,B.height=this.renderHeight,this.unzoomFromCrop(),bt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,B.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return H.sent(),[4,B.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,H.sent()]}})})},ne.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new jt("toolbar",` + `))},ne.prototype.removeStyleSheet=function(){var B;this.styleSheet&&(((B=this.styleSheetRoot)!==null&&B!==void 0?B:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ne}(),Nt=function(ne,B){this.selector=ne,this.style=B},jt=function(ne,B){this.localName=ne,this.style=B},bn=function(){function ne(){this.blocks=[],this.display=""}return ne.prototype.addButtonBlock=function(B){B.className=this.blockClassName,B.buttonClassName=this.buttonClassName,B.buttonColorsClassName=this.buttonColorsClassName,B.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(B)},ne.prototype.addElementBlock=function(B){B.className===void 0&&(B.className=this.blockClassName),this.blocks.push(B)},ne.prototype.getUI=function(){var B=document.createElement("div");return B.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,B.style.display=this.display,this.blocks.forEach(function(H){return B.appendChild(H.getUI())}),B},ne}(),Te=function(){function ne(){}return ne.prototype.getUI=function(){var B=document.createElement("div");if(B.className=this.className,this.minWidth!==void 0&&(B.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":B.style.justifyContent="flex-start";break;case"center":B.style.justifyContent="center";break;case"end":B.style.justifyContent="flex-end"}return B.style.whiteSpace="nowrap",B},ne}(),ve=function(ne){function B(){var H=ne!==null&&ne.apply(this,arguments)||this;return H.buttons=[],H}return Xt(B,ne),B.prototype.addButton=function(H){H.className=this.buttonClassName,H.colorsClassName=this.buttonColorsClassName,H.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(H)},B.prototype.getUI=function(){var H=ne.prototype.getUI.call(this);return this.buttons.forEach(function(ae){return H.appendChild(ae.getUI())}),H},B}(Te),Q=function(){function ne(B,H){this._isActive=!1,this._isHidden=!1,this._icon=B,this.title=H,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(ne.prototype,"icon",{get:function(){return this._icon},set:function(B){this._icon=B,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isActive",{get:function(){return this._isActive},set:function(B){this._isActive=B,this.adjustClassName()},enumerable:!1,configurable:!0}),ne.prototype.getUI=function(){var B=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return B.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},ne.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},ne.prototype.hide=function(){this._isHidden=!0},ne}(),$=function(ne){function B(){var H=ne!==null&&ne.apply(this,arguments)||this;return H.elements=[],H}return Xt(B,ne),B.prototype.addElement=function(H){this.elements.push(H)},B.prototype.getUI=function(){var H=ne.prototype.getUI.call(this);return this.elements.forEach(function(ae){return H.appendChild(ae)}),H},B}(Te),re=function(){function ne(B,H){this.horizontal=B,this.vertical=H}return Object.defineProperty(ne.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),ne.prototype.getVerticalLength=function(B){return B/this.ratio},ne.prototype.getHorizontalLength=function(B){return B*this.ratio},ne}(),de=function(){function ne(){}return ne.getIcon=function(B,H){if(B>0&&H>0){var ae=new re(B,H),ue=ae.ratio>=1?20:ae.getHorizontalLength(20),oe=ae.ratio<1?20:ae.getVerticalLength(20),ht=document.createElementNS("http://www.w3.org/2000/svg","svg");ht.setAttribute("xmlns","http://www.w3.org/2000/svg"),ht.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ht);var vn=bt.createDefs();ht.appendChild(vn);var Tn=bt.createElement("clipPath",[["id","text-bg-clip"]]);vn.appendChild(Tn);var fr=bt.createPath(bt.getHollowRectanglePath((24-ue)/2,(24-oe)/2,ue,oe,(24-ue)/2+2,(24-oe)/2+2,ue-4,oe-4));ht.appendChild(fr);var Vt=bt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Vt.appendChild(bt.createTSpan(B+":"+H)),ht.appendChild(Vt);var Et=Vt.getBBox();bt.setAttributes(Vt,[["x",((24-Et.width)/2).toString()],["y",((24-Et.height)/2-Et.y).toString()]]);var Jt=bt.createPath(bt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Et.width))/2,(24-Math.ceil(Et.height))/2,Math.ceil(Et.width),Math.ceil(Et.height)));return Tn.appendChild(Jt),bt.setAttributes(fr,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ht),ht.outerHTML}return''},ne}(),Ue=function(ne){function B(H,ae,ue){var oe=ne.call(this,H,ae)||this;return oe.isDropdownOpen=!1,oe.onClick=oe.dropdownButtonClicked,oe.dropdownButtons=ue,oe}return Xt(B,ne),B.prototype.setupDropdown=function(){var H=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ae){ae.className=H.className,ae.colorsClassName=H.colorsClassName,H.dropdownBlock.appendChild(ae.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},B.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},B.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},B.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},B.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},B.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},B}(Q),it=function(){function ne(B,H){this.GRIP_SIZE=10,this.color=B,this.fillColor=H,this.visual=bt.createGroup(),this.visual.appendChild(bt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(bt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ne.prototype.ownsTarget=function(B){return B===this.visual||B===this.visual.childNodes[0]||B===this.visual.childNodes[1]},ne.prototype.setCenter=function(B,H){this.visual.childNodes.forEach(function(ae){return bt.setAttributes(ae,[["cx",B.toString()],["cy",H.toString()]])})},ne}(),Mt=function(){function ne(B,H,ae,ue){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=B,this.canvasHeight=H,this.margin=ae,this.container=ue,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(ne.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(B){this._aspectRatio=B,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(B){this._isGridVisible=B,this.gridContainer&&bt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(B){this._zoomFactor=B,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ne.prototype.open=function(){var B=this;this.cropShadeElement=bt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=bt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var H=0;Hthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-H.height/2),bt.setAttributes(this.cropRectElement,[["x",H.x.toString()],["y",H.y.toString()],["width",H.width.toString()],["height",H.height.toString()]]);var ae=H.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(oe,ht){var vn=H.y+ae*(ht+1);bt.setAttributes(oe,[["x1",""+H.x],["y1",""+vn],["x2",""+(H.x+H.width)],["y2",""+vn]])});var ue=H.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(oe,ht){var vn=H.x+ue*(ht+1);bt.setAttributes(oe,[["x1",""+vn],["y1",""+H.y],["x2",""+vn],["y2",""+(H.y+H.height)]])}),bt.setAttributes(this.cropShadeElement,[["d",bt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,H.x,H.y,H.width,H.height)]]),this.topLeftGrip.setCenter(H.x,H.y),this.topRightGrip.setCenter(H.x+H.width,H.y),this.bottomLeftGrip.setCenter(H.x,H.y+H.height),this.bottomRightGrip.setCenter(H.x+H.width,H.y+H.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ne.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},ne.prototype.clientToLocalCoordinates=function(B,H){var ae=this.container.getBoundingClientRect();return{x:B-ae.left+this.margin,y:H-ae.top+this.margin}},ne.prototype.onPointerDown=function(B){this.container.setPointerCapture(B.pointerId),this.previousPoint=this.clientToLocalCoordinates(B.clientX,B.clientY),this.cropRectElement===B.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(B.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(B.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(B.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(B.target)&&(this.activeGrip=this.bottomRightGrip)},ne.prototype.onPointerMove=function(B){if(this.isMoving)this.move(this.clientToLocalCoordinates(B.clientX,B.clientY));else if(this.activeGrip){var H=this.clientToLocalCoordinates(B.clientX,B.clientY);this.resize(H)}B.preventDefault()},ne.prototype.onPointerUp=function(B){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(B.pointerId)},ne.prototype.move=function(B){var H=B.x-this.previousPoint.x,ae=B.y-this.previousPoint.y;this.zoomFactor!==1&&(H=-H/this.zoomFactor,ae=-ae/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+H),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ae),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=B},ne.prototype.resize=function(B){var H=Object.assign({},this.cropRect),ae=B.x-this.previousPoint.x,ue=B.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:H.x+aethis.canvasWidth*this.zoomFactor&&(ae=this.canvasWidth*this.zoomFactor-H.width),H.width+=ae}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(H.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ae),H.height=this.aspectRatio.getVerticalLength(H.width)):(H.y+=ue,H.height=this.cropRect.y+this.cropRect.height-H.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?H.height=this.aspectRatio.getVerticalLength(H.width):H.height+=ue}H.width<10&&(H.x=this.cropRect.x,H.width=10),H.height<10&&(H.y=this.cropRect.y,H.height=10),this.previousPoint=B,H.x>=this.margin&&H.y>=this.margin&&H.x-this.margin+H.width<=this.canvasWidth&&H.y-this.margin+H.height<=this.canvasHeight&&(this.cropRect=H,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ne.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var B=this.cropRect.x+this.cropRect.width/2,H=this.cropRect.y+this.cropRect.height/2,ae=this.aspectRatio.getHorizontalLength(this.cropRect.height),ue=this.aspectRatio.getVerticalLength(this.cropRect.width);ae/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=B-this.cropRect.width/2,this.cropRect.y=H-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},ne.prototype.getRescaledRect=function(B,H,ae,ue,oe,ht){var vn=ae/B,Tn=ue/H;return{x:(oe.x-ht)*vn+ht,y:(oe.y-ht)*Tn+ht,width:oe.width*vn,height:oe.height*Tn}},ne.prototype.scaleCanvas=function(B,H){var ae=this.getRescaledRect(this.canvasWidth,this.canvasHeight,B,H,this.cropRect,this.margin);this.canvasWidth=B,this.canvasHeight=H,this.onCropChange&&this.onCropChange(ae),this.setCropRectangle(ae)},ne}(),Ln=function(){function ne(B){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=B,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(ne.prototype,"angle",{get:function(){return this._angle},set:function(B){this._angle=B,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ne.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},ne.prototype.onPointerDown=function(B){this.controlContainer.setPointerCapture(B.pointerId),this.isDragging=!0,this.previousPoint={x:B.clientX,y:B.clientY}},ne.prototype.onPointerMove=function(B){this.isDragging&&(this.onAngleChange&&this.onAngleChange((B.clientX-this.previousPoint.x)/5),this.previousPoint.x=B.clientX)},ne.prototype.onPointerUp=function(B){this.isDragging&&this.onAngleChange&&this.onAngleChange((B.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(B.pointerId)},ne.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var B=this.angleLabelText.getBBox();bt.setAttributes(this.angleLabelElement,[["x",((this.width-B.width)/2).toString()],["y",(this.height/2).toString()]])}},ne.prototype.positionScaleShape=function(){if(this.scaleShape){var B=this.scaleShape.transform.baseVal.getItem(0);B.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(B,0)}},ne.prototype.getVisual=function(){var B=document.createElementNS("http://www.w3.org/2000/svg","svg");B.setAttribute("xmlns","http://www.w3.org/2000/svg"),B.setAttribute("width",this.width+"px"),B.setAttribute("height",this.height+"px"),B.setAttribute("viewBox","0 0 "+this.width+" "+this.height),B.style.flexShrink="0",document.body.appendChild(B);for(var H="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ae=1;ae<=this.width/5+10;ae++){var ue=ae%5==0?this.height/3:this.height/6;H+="h4v"+-ue+"h1v"+ue}H+="v1H0Z",this.scaleShape=bt.createPath(H);var oe=bt.createTransform();this.scaleShape.transform.baseVal.appendItem(oe),B.appendChild(this.scaleShape),this.angleLabelElement=bt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=bt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ht=bt.createTSpan("");return ht.innerHTML="°",this.angleLabelElement.appendChild(ht),B.appendChild(this.angleLabelElement),document.body.removeChild(B),B},ne}(),kn=function(){function ne(){this.naturalSize=!1,this.imageType="image/png"}return ne.prototype.rasterize=function(B,H,ae,ue,oe,ht,vn){var Tn=this;return new Promise(function(fr){var Vt=document.createElement("canvas");Vt.width=B.width.baseVal.value-2*ue,Vt.height=B.height.baseVal.value-2*ue;var Et=1,Jt=1;Tn.naturalSize===!0?(Et=H.naturalWidth/(B.width.baseVal.value-2*ue)/ht,Jt=H.naturalHeight/(B.height.baseVal.value-2*ue)/vn,Vt.width=H.naturalWidth/ht,Vt.height=H.naturalHeight/vn):Tn.width!==void 0&&Tn.height!==void 0&&(Et=Tn.width/ae.width,Jt=Tn.height/ae.height,Vt.width*=Et,Vt.height*=Jt);var Fn=Vt.getContext("2d");Fn.translate(Vt.width/2,Vt.height/2),Fn.rotate(oe*Math.PI/180),Fn.scale(ht,vn),Fn.translate(-Vt.width/2,-Vt.height/2),Fn.drawImage(H,0,0,Vt.width,Vt.height);var Vn=document.createElement("canvas");Vn.width=ae.width*Et,Vn.height=ae.height*Jt,Vn.getContext("2d").putImageData(Fn.getImageData((ae.x-ue)*Et,(ae.y-ue)*Jt,ae.width*Et,ae.height*Jt),0,0),fr(Vn.toDataURL(Tn.imageType,Tn.imageQuality))})},ne}(),St=function(){function ne(B){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=ne.instanceCounter++,this.styles=new ft(this.instanceNo),this.target=B,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(ne.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(B){this._zoomToCropEnabled=B,B?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(B){this._isGridVisible=B,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"gridLines",{get:function(){return this._gridLines},set:function(B){this._gridLines=B,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(B){this._rotationAngle=B,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"aspectRatio",{get:function(){var B;return(B=this._aspectRatio)!==null&&B!==void 0?B:this.aspectRatios[0]},set:function(B){this._aspectRatio=B},enumerable:!1,configurable:!0}),ne.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},ne.prototype.show=function(){this.showUI(),this.open()},ne.prototype.close=function(B){B===void 0&&(B=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),B||this.closeEventListeners.forEach(function(H){return H()}),this._isOpen=!1)},ne.prototype.addRenderEventListener=function(B){this.renderEventListeners.push(B)},ne.prototype.removeRenderEventListener=function(B){this.renderEventListeners.indexOf(B)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(B),1)},ne.prototype.addCloseEventListener=function(B){this.closeEventListeners.push(B)},ne.prototype.removeCloseEventListener=function(B){this.closeEventListeners.indexOf(B)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(B),1)},ne.prototype.setupResizeObserver=function(){var B=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){B.resize(B.target.clientWidth,B.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},ne.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var B=1*this.target.clientWidth/this.target.clientHeight,H=this.contentDiv.clientWidth/B>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*B:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ae=H+2*this.CANVAS_MARGINB+this.CANVAS_MARGIN?this.target.offsetTop-(B+this.CANVAS_MARGIN):0;this.coverDiv.style.top=H+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},ne.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ne.prototype.addTopToolbar=function(){var B=this;this.topToolbar=new bn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new ve;H.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(H);var ae=[];this.aspectRatios.forEach(function(Jt){var Fn=new Q(de.getIcon(Jt.horizontal,Jt.vertical),Jt.horizontal===0&&Jt.vertical===0?"FREE":Jt.horizontal+":"+Jt.vertical);Fn.onClick=function(){return B.ratioButtonClicked(Jt)},ae.push(Fn)}),this.aspectRatioButton=new Ue(de.getIcon(0,0),"Aspect ratio",ae),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,H.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ue=new Q('',"Toggle grid");ue.isActive=this.isGridVisible,ue.onClick=function(){B.isGridVisible=!B.isGridVisible,ue.isActive=B.isGridVisible},H.addButton(ue);var oe=new Q('',"Zoom to selection");if(oe.isActive=this.zoomToCropEnabled,oe.onClick=function(){B.zoomToCropEnabled=!B.zoomToCropEnabled,oe.isActive=B.zoomToCropEnabled},H.addButton(oe),!Zt.isLicensed){var ht=new $;this.topToolbar.addElementBlock(ht);var vn=document.createElement("div");vn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Tn=document.createElement("a");Tn.style.color="currentColor",Tn.href="https://markerjs.com/products/cropro",Tn.target="_blank",Tn.innerHTML='',vn.appendChild(Tn),ht.addElement(vn)}var fr=new ve;fr.minWidth=3*this.toolbarHeight+"px",fr.contentAlign="end",this.topToolbar.addButtonBlock(fr);var Vt=new Q('',"OK");Vt.onClick=this.startRenderAndClose,fr.addButton(Vt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Vt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Et=new Q('',"Close");Et.onClick=this.close,fr.addButton(Et),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Et.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ne.prototype.addBottomToolbar=function(){var B=this;this.bottomToolbar=new bn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new ve;H.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(H);var ae=new Q('',"Rotate left");ae.onClick=this.rotateLeftButtonClicked,H.addButton(ae);var ue=new Q('',"Rotate right");ue.onClick=this.rotateRightButtonClicked,H.addButton(ue);var oe=new $;oe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(oe),this.straightener=new Ln("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(fr){B.rotateBy(fr),B.straightener.angle=B.rotationAngle},oe.addElement(this.straightener.getUI());var ht=new ve;ht.minWidth=2*this.toolbarHeight+"px",ht.contentAlign="end",this.bottomToolbar.addButtonBlock(ht);var vn=new Q('',"Flip horizontal");vn.onClick=this.flipHorizontallyButtonClicked,ht.addButton(vn);var Tn=new Q('',"Flip vertical");Tn.onClick=this.flipVerticallyButtonClicked,ht.addButton(Tn)},ne.prototype.ratioButtonClicked=function(B){this.aspectRatio=B,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ne.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=de.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ne.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new re(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ne.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ne.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ne.prototype.restoreState=function(B){if(B){var H=this.cropLayer.getRescaledRect(B.width,B.height,this.imageWidth,this.imageHeight,B.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(H),this.cropRectChanged(H),this.flippedHorizontally=B.flippedHorizontally,this.flippedVertically=B.flippedVertically,this.applyFlip(),this.rotationAngle=B.rotationAngle,this.applyRotation()}},ne.prototype.clientToLocalCoordinates=function(B,H){var ae=this.cropImage.getBoundingClientRect();return{x:B-ae.left,y:H-ae.top}},ne.prototype.onWindowResize=function(){this.positionUI()},ne.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var B=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},ne.prototype.rotateLeftButtonClicked=function(){var B=this.rotationAngle-90;this.rotationAngle%90!=0&&(B+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(B)},ne.prototype.rotateRightButtonClicked=function(){var B=this.rotationAngle+90;this.rotationAngle%90!=0&&(B-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(B)},ne.prototype.rotateTo=function(B){B=(B=B>180?B-360:B)<=-180?B+360:B,this.rotationAngle=B,this.applyRotation()},ne.prototype.rotateBy=function(B){this.rotateTo((this.rotationAngle+B)%360)},ne.prototype.applyRotation=function(){var B=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var H=this.editingTargetRotationContainer.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(H,0);var ae=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ae.width,this.imageHeight/ae.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=B},ne.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ne.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ne.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ne.prototype.startRenderAndClose=function(){return Pt(this,void 0,void 0,function(){var B,H;return $t(this,function(ae){switch(ae.label){case 0:return[4,this.render()];case 1:return B=ae.sent(),H=this.getState(),this.renderEventListeners.forEach(function(ue){return ue(B,H)}),this.close(!0),[2]}})})},ne.prototype.render=function(){return Pt(this,void 0,void 0,function(){var B;return $t(this,function(H){switch(H.label){case 0:return(B=new kn).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.width=this.renderWidth,B.height=this.renderHeight,this.unzoomFromCrop(),bt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,B.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return H.sent(),[4,B.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,H.sent()]}})})},ne.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new jt("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -237,20 +237,20 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new jt("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},ne.instanceCounter=0,ne}(),an=_("8hTe"),Pn=_.n(an),dn=/]*>/g;function jn(ne){var B=document.createElement("div");return B.innerHTML=ne,B.childNodes.length===0?"":B.childNodes[0].nodeValue}var Bn=ie.a=function(ne){var B=ne.value,H=B===void 0?"":B,ae=ne.edit,ue=ae===void 0?!1:ae,oe=ne.className,ht=ne.showTextOnly,vn=ne.showLines,Tn=ne.replaces,cr=ne.zoomImg,Vt=ne.hasMask,Et=ne.style,Jt=Et===void 0?{}:Et,Fn=ne.stylesPrev,Vn=Fn===void 0?{}:Fn,Kn=String(H),ir=Object(p.useRef)(),jr=Object(p.useRef)(),ua=Object(p.useState)(""),Yr=Object(s.a)(ua,2),Tr=Yr[0],Jn=Yr[1],fr=Object(p.useState)("office"),Sn=Object(s.a)(fr,2),On=Sn[0],or=Sn[1],Dn=function(){var Ct=new St(jr.current);Ct.displayMode="popup",Ct.addRenderEventListener(function(){var Yt=Object(g.a)(w.a.mark(function nn(_n){var cn;return w.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return ir.current.style.display="none",Mn.next=3,Object(be.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_n}});case 3:cn=Mn.sent,cn!=null&&cn.id&&Tn(jr.current.getAttribute("src").replace(X.a.API_SERVER,""),"/api/attachments/".concat(cn==null?void 0:cn.id,"?type=").concat(cn.content_type));case 5:case"end":return Mn.stop()}},nn)}));return function(nn){return Yt.apply(this,arguments)}}()),Ct.show()},pr=function(){var Ct=new Be(jr.current);Ct.settings.displayMode="popup",Ct.addEventListener("render",function(){var Yt=Object(g.a)(w.a.mark(function nn(_n){var cn;return w.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:if(ir.current.style.display="none",!jr.current){Mn.next=6;break}return Mn.next=4,Object(be.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_n.dataUrl}});case 4:cn=Mn.sent,cn!=null&&cn.id&&Tn(jr.current.getAttribute("src").replace(X.a.API_SERVER,""),"/api/attachments/".concat(cn==null?void 0:cn.id,"?type=").concat(cn.content_type));case 6:case"end":return Mn.stop()}},nn)}));return function(nn){return Yt.apply(this,arguments)}}()),Ct.show(),window.markerArea=Ct},Gn=Object(p.useMemo)(function(){try{var Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ct=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Yt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Kn=Kn.replace(Kt,"("+X.a.API_SERVER+"/api/attachments/").replace(Ct,'"'+X.a.API_SERVER+"/api/attachments/").replace(Yt,'"'+X.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` + `))},ne.instanceCounter=0,ne}(),an=_("8hTe"),Pn=_.n(an),dn=/]*>/g;function jn(ne){var B=document.createElement("div");return B.innerHTML=ne,B.childNodes.length===0?"":B.childNodes[0].nodeValue}var Bn=ie.a=function(ne){var B=ne.value,H=B===void 0?"":B,ae=ne.edit,ue=ae===void 0?!1:ae,oe=ne.className,ht=ne.showTextOnly,vn=ne.showLines,Tn=ne.replaces,fr=ne.zoomImg,Vt=ne.hasMask,Et=ne.style,Jt=Et===void 0?{}:Et,Fn=ne.stylesPrev,Vn=Fn===void 0?{}:Fn,Kn=String(H),ir=Object(p.useRef)(),jr=Object(p.useRef)(),ua=Object(p.useState)(""),Yr=Object(s.a)(ua,2),Tr=Yr[0],Jn=Yr[1],hr=Object(p.useState)("office"),Sn=Object(s.a)(hr,2),On=Sn[0],or=Sn[1],Dn=function(){var Ct=new St(jr.current);Ct.displayMode="popup",Ct.addRenderEventListener(function(){var Yt=Object(g.a)(w.a.mark(function nn(_n){var cn;return w.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return ir.current.style.display="none",Mn.next=3,Object(be.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_n}});case 3:cn=Mn.sent,cn!=null&&cn.id&&Tn(jr.current.getAttribute("src").replace(X.a.API_SERVER,""),"/api/attachments/".concat(cn==null?void 0:cn.id,"?type=").concat(cn.content_type));case 5:case"end":return Mn.stop()}},nn)}));return function(nn){return Yt.apply(this,arguments)}}()),Ct.show()},pr=function(){var Ct=new Be(jr.current);Ct.settings.displayMode="popup",Ct.addEventListener("render",function(){var Yt=Object(g.a)(w.a.mark(function nn(_n){var cn;return w.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:if(ir.current.style.display="none",!jr.current){Mn.next=6;break}return Mn.next=4,Object(be.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_n.dataUrl}});case 4:cn=Mn.sent,cn!=null&&cn.id&&Tn(jr.current.getAttribute("src").replace(X.a.API_SERVER,""),"/api/attachments/".concat(cn==null?void 0:cn.id,"?type=").concat(cn.content_type));case 6:case"end":return Mn.stop()}},nn)}));return function(nn){return Yt.apply(this,arguments)}}()),Ct.show(),window.markerArea=Ct},Gn=Object(p.useMemo)(function(){try{var Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ct=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Yt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Kn=Kn.replace(Kt,"("+X.a.API_SERVER+"/api/attachments/").replace(Ct,'"'+X.a.API_SERVER+"/api/attachments/").replace(Yt,'"'+X.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Kn=Kn.replace(new RegExp("(?[TOC]

        ",C()),y()),nn=nn.replace(/(__special_katext_id_\d+__)/g,function(ur,Mn){var fn=_n[Mn],Hn=fn.type,Xn=fn.expression;return Object(te.renderToString)(jn(Xn)||"",{displayMode:Hn==="block",throwOnError:!1,output:"html"})}),nn=nn.replace(/▁/g,"\u2581\u2581\u2581"),P(),ht){var cn=document.createElement("div");return cn.innerHTML=nn,cn.innerText}return setTimeout(function(){return rt()},500),nn},[Kn]),se=Object(p.useRef)();E.WebkitLineClamp=vn,vn&&(Jt=Object(S.a)(Object(S.a)({},Jt),E));function tt(Kt){var Ct=Kt.target;if(Ct.tagName.toUpperCase()==="IMG"){if(cr){var Yt=Ct.getAttribute("src");Jn(Yt),or("image")}}else if(Ct.tagName.toUpperCase()==="A"){var nn=Ct.getAttribute("href");if(nn.indexOf("office")>-1)Kt.preventDefault(),Jn(nn),or("office");else if(nn.indexOf("application/pdf")>-1)Kt.preventDefault(),Jn(nn),or("pdf");else if(nn.indexOf("type=text")>-1)Kt.preventDefault(),Jn(nn),or("html");else if(nn.startsWith("#")){Kt.preventDefault();var _n=document.getElementById(nn.replace("#",""));_n&&_n.scrollIntoView(!0)}}}var rt=function(){var Ct,Yt=(Ct=se.current)===null||Ct===void 0?void 0:Ct.querySelectorAll("video");Yt==null||Yt.forEach(function(nn){if(nn.oncontextmenu=function(){return!1},nn.src.indexOf(".m3u8")>-1&&!nn.canPlayType("application/vnd.apple.mpegurl")){if(J.a.isSupported()){var _n=new J.a;_n.loadSource(nn.src),_n.attachMedia(nn)}}})};Object(p.useEffect)(function(){if(se.current&&Gn&&(Gn.match(dn)&&window.PR.prettyPrint()),se.current)return se.current.addEventListener("click",tt),function(){se.current.removeEventListener("click",tt),P(),y()}},[Gn,se.current,tt]);var ut=function(Ct){if(!ue)return;Ct.target.nodeName==="IMG"?(ir.current.style.display="flex",ir.current.style.width=Ct.target.clientWidth+"px",ir.current.style.height=Ct.target.clientHeight+"px",ir.current.style.top=Ct.target.offsetTop+"px",ir.current.style.left=Ct.target.offsetLeft+"px",jr.current.src=Ct.target.getAttribute("src")):ir.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:se,style:Object(S.a)({},Jt),className:"".concat(oe||""," markdown-body ").concat(Pn.a.mdBody),onMouseOver:ut,dangerouslySetInnerHTML:{__html:Gn}}),a.a.createElement("div",{ref:ir,className:Pn.a.button},a.a.createElement(j.a,null,a.a.createElement(U.a,{onClick:function(){return Dn()}},"\u88C1\u526A"),a.a.createElement(U.a,{onClick:function(){return pr()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:jr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),a.a.createElement(ee.a,{close:!0,data:Tr,hasMask:Vt,type:Tr!=null&&Tr.length?On:"",style:Object(S.a)({},Vn),onClose:function(){return Jn("")}}))}},"9VGf":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return L});var Y=_("q1tI"),j=_.n(Y);function L(U,S){var g=Object(Y.useRef)();Object(Y.useEffect)(function(){g.current=U}),Object(Y.useEffect)(function(){function s(){g.current()}if(S!==null){var d=setInterval(s,S);return function(){return clearInterval(d)}}},[S])}},"A/g1":function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BPZU:function(Ye,ie){var _=32,Y=7,j=256;function L(a){for(var f=0;a>=_;)f|=a&1,a>>=1;return a+f}function U(a,f,x,b){var m=f+1;if(m===x)return 1;if(b(a[m++],a[f])<0){for(;m=0;)m++;return m-f}function S(a,f,x){for(x--;f>>1,m(O,a[u])<0?r=u:i=u+1;var h=b-i;switch(h){case 3:a[i+3]=a[i+2];case 2:a[i+2]=a[i+1];case 1:a[i+1]=a[i];break;default:for(;h>0;)a[i+h]=a[i+h-1],h--}a[i]=O}}function s(a,f,x,b,m,O){var i=0,r=0,u=1;if(O(a,f[x+m])>0){for(r=b-m;u0;)i=u,u=(u<<1)+1,u<=0&&(u=r);u>r&&(u=r),i+=m,u+=m}else{for(r=m+1;ur&&(u=r);var h=i;i=m-u,u=m-h}for(i++;i>>1);O(a,f[x+y])>0?i=y+1:u=y}return u}function d(a,f,x,b,m,O){var i=0,r=0,u=1;if(O(a,f[x+m])<0){for(r=m+1;ur&&(u=r);var h=i;i=m-u,u=m-h}else{for(r=b-m;u=0;)i=u,u=(u<<1)+1,u<=0&&(u=r);u>r&&(u=r),i+=m,u+=m}for(i++;i>>1);O(a,f[x+y])<0?u=y:i=y+1}return u}function w(a,f){var x=Y,b=0,m=j,O=0,i,r,u=0;b=a.length,b<2*j&&(m=b>>>1);var h=[];O=b<120?5:b<1542?10:b<119151?19:40,i=[],r=[];function y(o,l){i[u]=o,r[u]=l,u+=1}function E(){for(;u>1;){var o=u-2;if(o>=1&&r[o-1]<=r[o]+r[o+1]||o>=2&&r[o-2]<=r[o]+r[o-1])r[o-1]r[o+1])break;C(o)}}function t(){for(;u>1;){var o=u-2;o>0&&r[o-1]=Y||W>=Y);if(G)break;F<0&&(F=0),F+=2}if(x=F,x<1&&(x=1),l===1){for(P=0;P=0;P--)a[V+P]=a[F+P];a[I]=h[k];return}for(var W=x;;){var G=0,J=0,X=!1;do if(f(h[k],a[R])<0){if(a[I--]=a[R--],G++,J=0,--l===0){X=!0;break}}else if(a[I--]=h[k--],J++,G=0,--M===1){X=!0;break}while((G|J)=0;P--)a[V+P]=a[F+P];if(l===0){X=!0;break}}if(a[I--]=h[k--],--M===1){X=!0;break}if(J=M-s(a[R],h,0,M,M-1,f),J!==0){for(I-=J,k-=J,M-=J,V=I+1,F=k+1,P=0;P=Y||J>=Y);if(X)break;W<0&&(W=0),W+=2}if(x=W,x<1&&(x=1),M===1){for(I-=l,R-=l,V=I+1,F=R+1,P=l-1;P>=0;P--)a[V+P]=a[F+P];a[I]=h[k]}else{if(M===0)throw new Error;for(F=I-(M-1),P=0;Pr&&(u=r),g(a,x,x+u,x+O,f),O=u}i.pushRun(x,O),i.mergeRuns(),m-=O,x+=O}while(m!==0);i.forceMergeRuns()}Ye.exports=p},BU3w:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return g});var Y=_("MNnm"),j="rc-util-key";function L(s){if(s.attachTo)return s.attachTo;var d=document.querySelector("head");return d||document.body}function U(s){var d,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Y.a)())return null;var p=document.createElement("style");if((d=w.csp)===null||d===void 0?void 0:d.nonce){var a;p.nonce=(a=w.csp)===null||a===void 0?void 0:a.nonce}p.innerHTML=s;var f=L(w),x=f.firstChild;return w.prepend&&f.prepend?f.prepend(p):w.prepend&&x?f.insertBefore(p,x):f.appendChild(p),p}var S=new Map;function g(s,d){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=L(w);if(!S.has(p)){var a=U("",w),f=a.parentNode;S.set(p,f),f.removeChild(a)}var x=Array.from(S.get(p).children).find(function(r){return r.tagName==="STYLE"&&r[j]===d});if(x){var b,m;if(((b=w.csp)===null||b===void 0?void 0:b.nonce)&&x.nonce!==((m=w.csp)===null||m===void 0?void 0:m.nonce)){var O;x.nonce=(O=w.csp)===null||O===void 0?void 0:O.nonce}return x.innerHTML!==s&&(x.innerHTML=s),x}var i=U(s,w);return i[j]=d,i}},Bd2K:function(Ye,ie,_){(function(Y){Y(_("VrN/"),_("osHv"))})(function(Y){Y.defineOption("autoCloseTags",!1,function(w,p,a){if(a!=Y.Init&&a&&w.removeKeyMap("autoCloseTags"),!p)return;var f={name:"autoCloseTags"};(typeof p!="object"||p.whenClosing!==!1)&&(f["'/'"]=function(x){return g(x)}),(typeof p!="object"||p.whenOpening!==!1)&&(f["'>'"]=function(x){return U(x)}),w.addKeyMap(f)});var j=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],L=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function U(w){if(w.getOption("disableInput"))return Y.Pass;for(var p=w.listSelections(),a=[],f=w.getOption("autoCloseTags"),x=0;xb.ch&&(u=u.slice(0,u.length-m.end+b.ch));var t=u.toLowerCase();if(!u||m.type=="string"&&(m.end!=b.ch||!/[\"\']/.test(m.string.charAt(m.string.length-1))||m.string.length==1)||m.type=="tag"&&r.close||m.string.indexOf("/")==b.ch-m.start-1||y&&s(y,t)>-1||d(w,O.mode.xmlCurrentContext&&O.mode.xmlCurrentContext(i)||[],u,b,!0))return Y.Pass;var C=typeof f=="object"&&f.emptyTags;if(C&&s(C,u)>-1){a[x]={text:"/>",newPos:Y.Pos(b.line,b.ch+2)};continue}var A=E&&s(E,t)>-1;a[x]={indent:A,text:">"+(A?` +`)}catch(ur){}var nn=V(Kn),_n=M();if(Kn.match(/\[TOC\]/)&&(nn=nn.replace("

        [TOC]

        ",C()),b()),nn=nn.replace(/(__special_katext_id_\d+__)/g,function(ur,Mn){var fn=_n[Mn],Hn=fn.type,Xn=fn.expression;return Object(te.renderToString)(jn(Xn)||"",{displayMode:Hn==="block",throwOnError:!1,output:"html"})}),nn=nn.replace(/▁/g,"\u2581\u2581\u2581"),P(),ht){var cn=document.createElement("div");return cn.innerHTML=nn,cn.innerText}return setTimeout(function(){return rt()},500),nn},[Kn]),se=Object(p.useRef)();E.WebkitLineClamp=vn,vn&&(Jt=Object(S.a)(Object(S.a)({},Jt),E));function tt(Kt){var Ct=Kt.target;if(Ct.tagName.toUpperCase()==="IMG"){if(fr){var Yt=Ct.getAttribute("src");Jn(Yt),or("image")}}else if(Ct.tagName.toUpperCase()==="A"){var nn=Ct.getAttribute("href");if(nn.indexOf("office")>-1)Kt.preventDefault(),Jn(nn),or("office");else if(nn.indexOf("application/pdf")>-1)Kt.preventDefault(),Jn(nn),or("pdf");else if(nn.indexOf("type=text")>-1)Kt.preventDefault(),Jn(nn),or("html");else if(nn.startsWith("#")){Kt.preventDefault();var _n=document.getElementById(nn.replace("#",""));_n&&_n.scrollIntoView(!0)}}}var rt=function(){var Ct,Yt=(Ct=se.current)===null||Ct===void 0?void 0:Ct.querySelectorAll("video");Yt==null||Yt.forEach(function(nn){if(nn.oncontextmenu=function(){return!1},nn.src.indexOf(".m3u8")>-1&&!nn.canPlayType("application/vnd.apple.mpegurl")){if(J.a.isSupported()){var _n=new J.a;_n.loadSource(nn.src),_n.attachMedia(nn)}}})};Object(p.useEffect)(function(){if(se.current&&Gn&&(Gn.match(dn)&&window.PR.prettyPrint()),se.current)return se.current.addEventListener("click",tt),function(){se.current.removeEventListener("click",tt),P(),b()}},[Gn,se.current,tt]);var ut=function(Ct){if(!ue)return;Ct.target.nodeName==="IMG"?(ir.current.style.display="flex",ir.current.style.width=Ct.target.clientWidth+"px",ir.current.style.height=Ct.target.clientHeight+"px",ir.current.style.top=Ct.target.offsetTop+"px",ir.current.style.left=Ct.target.offsetLeft+"px",jr.current.src=Ct.target.getAttribute("src")):ir.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:se,style:Object(S.a)({},Jt),className:"".concat(oe||""," markdown-body ").concat(Pn.a.mdBody),onMouseOver:ut,dangerouslySetInnerHTML:{__html:Gn}}),a.a.createElement("div",{ref:ir,className:Pn.a.button},a.a.createElement(j.a,null,a.a.createElement(U.a,{onClick:function(){return Dn()}},"\u88C1\u526A"),a.a.createElement(U.a,{onClick:function(){return pr()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:jr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),a.a.createElement(ee.a,{close:!0,data:Tr,hasMask:Vt,type:Tr!=null&&Tr.length?On:"",style:Object(S.a)({},Vn),onClose:function(){return Jn("")}}))}},"9VGf":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return L});var Y=_("q1tI"),j=_.n(Y);function L(U,S){var g=Object(Y.useRef)();Object(Y.useEffect)(function(){g.current=U}),Object(Y.useEffect)(function(){function s(){g.current()}if(S!==null){var d=setInterval(s,S);return function(){return clearInterval(d)}}},[S])}},"A/g1":function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BPZU:function(Ye,ie){var _=32,Y=7,j=256;function L(a){for(var f=0;a>=_;)f|=a&1,a>>=1;return a+f}function U(a,f,x,y){var m=f+1;if(m===x)return 1;if(y(a[m++],a[f])<0){for(;m=0;)m++;return m-f}function S(a,f,x){for(x--;f>>1,m(O,a[u])<0?r=u:i=u+1;var h=y-i;switch(h){case 3:a[i+3]=a[i+2];case 2:a[i+2]=a[i+1];case 1:a[i+1]=a[i];break;default:for(;h>0;)a[i+h]=a[i+h-1],h--}a[i]=O}}function s(a,f,x,y,m,O){var i=0,r=0,u=1;if(O(a,f[x+m])>0){for(r=y-m;u0;)i=u,u=(u<<1)+1,u<=0&&(u=r);u>r&&(u=r),i+=m,u+=m}else{for(r=m+1;ur&&(u=r);var h=i;i=m-u,u=m-h}for(i++;i>>1);O(a,f[x+b])>0?i=b+1:u=b}return u}function d(a,f,x,y,m,O){var i=0,r=0,u=1;if(O(a,f[x+m])<0){for(r=m+1;ur&&(u=r);var h=i;i=m-u,u=m-h}else{for(r=y-m;u=0;)i=u,u=(u<<1)+1,u<=0&&(u=r);u>r&&(u=r),i+=m,u+=m}for(i++;i>>1);O(a,f[x+b])<0?u=b:i=b+1}return u}function w(a,f){var x=Y,y=0,m=j,O=0,i,r,u=0;y=a.length,y<2*j&&(m=y>>>1);var h=[];O=y<120?5:y<1542?10:y<119151?19:40,i=[],r=[];function b(o,l){i[u]=o,r[u]=l,u+=1}function E(){for(;u>1;){var o=u-2;if(o>=1&&r[o-1]<=r[o]+r[o+1]||o>=2&&r[o-2]<=r[o]+r[o-1])r[o-1]r[o+1])break;C(o)}}function t(){for(;u>1;){var o=u-2;o>0&&r[o-1]=Y||W>=Y);if(G)break;F<0&&(F=0),F+=2}if(x=F,x<1&&(x=1),l===1){for(P=0;P=0;P--)a[V+P]=a[F+P];a[I]=h[k];return}for(var W=x;;){var G=0,J=0,X=!1;do if(f(h[k],a[R])<0){if(a[I--]=a[R--],G++,J=0,--l===0){X=!0;break}}else if(a[I--]=h[k--],J++,G=0,--M===1){X=!0;break}while((G|J)=0;P--)a[V+P]=a[F+P];if(l===0){X=!0;break}}if(a[I--]=h[k--],--M===1){X=!0;break}if(J=M-s(a[R],h,0,M,M-1,f),J!==0){for(I-=J,k-=J,M-=J,V=I+1,F=k+1,P=0;P=Y||J>=Y);if(X)break;W<0&&(W=0),W+=2}if(x=W,x<1&&(x=1),M===1){for(I-=l,R-=l,V=I+1,F=R+1,P=l-1;P>=0;P--)a[V+P]=a[F+P];a[I]=h[k]}else{if(M===0)throw new Error;for(F=I-(M-1),P=0;Pr&&(u=r),g(a,x,x+u,x+O,f),O=u}i.pushRun(x,O),i.mergeRuns(),m-=O,x+=O}while(m!==0);i.forceMergeRuns()}Ye.exports=p},BU3w:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return g});var Y=_("MNnm"),j="rc-util-key";function L(s){if(s.attachTo)return s.attachTo;var d=document.querySelector("head");return d||document.body}function U(s){var d,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Y.a)())return null;var p=document.createElement("style");if((d=w.csp)===null||d===void 0?void 0:d.nonce){var a;p.nonce=(a=w.csp)===null||a===void 0?void 0:a.nonce}p.innerHTML=s;var f=L(w),x=f.firstChild;return w.prepend&&f.prepend?f.prepend(p):w.prepend&&x?f.insertBefore(p,x):f.appendChild(p),p}var S=new Map;function g(s,d){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=L(w);if(!S.has(p)){var a=U("",w),f=a.parentNode;S.set(p,f),f.removeChild(a)}var x=Array.from(S.get(p).children).find(function(r){return r.tagName==="STYLE"&&r[j]===d});if(x){var y,m;if(((y=w.csp)===null||y===void 0?void 0:y.nonce)&&x.nonce!==((m=w.csp)===null||m===void 0?void 0:m.nonce)){var O;x.nonce=(O=w.csp)===null||O===void 0?void 0:O.nonce}return x.innerHTML!==s&&(x.innerHTML=s),x}var i=U(s,w);return i[j]=d,i}},Bd2K:function(Ye,ie,_){(function(Y){Y(_("VrN/"),_("osHv"))})(function(Y){Y.defineOption("autoCloseTags",!1,function(w,p,a){if(a!=Y.Init&&a&&w.removeKeyMap("autoCloseTags"),!p)return;var f={name:"autoCloseTags"};(typeof p!="object"||p.whenClosing!==!1)&&(f["'/'"]=function(x){return g(x)}),(typeof p!="object"||p.whenOpening!==!1)&&(f["'>'"]=function(x){return U(x)}),w.addKeyMap(f)});var j=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],L=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function U(w){if(w.getOption("disableInput"))return Y.Pass;for(var p=w.listSelections(),a=[],f=w.getOption("autoCloseTags"),x=0;xy.ch&&(u=u.slice(0,u.length-m.end+y.ch));var t=u.toLowerCase();if(!u||m.type=="string"&&(m.end!=y.ch||!/[\"\']/.test(m.string.charAt(m.string.length-1))||m.string.length==1)||m.type=="tag"&&r.close||m.string.indexOf("/")==y.ch-m.start-1||b&&s(b,t)>-1||d(w,O.mode.xmlCurrentContext&&O.mode.xmlCurrentContext(i)||[],u,y,!0))return Y.Pass;var C=typeof f=="object"&&f.emptyTags;if(C&&s(C,u)>-1){a[x]={text:"/>",newPos:Y.Pos(y.line,y.ch+2)};continue}var A=E&&s(E,t)>-1;a[x]={indent:A,text:">"+(A?` -`:"")+"",newPos:A?Y.Pos(b.line+1,0):Y.Pos(b.line,b.ch+1)}}for(var v=typeof f=="object"&&f.dontIndentOnAutoClose,x=p.length-1;x>=0;x--){var o=a[x];w.replaceRange(o.text,p[x].head,p[x].anchor,"+insert");var l=w.listSelections().slice(0);l[x]={head:o.newPos,anchor:o.newPos},w.setSelections(l),!v&&o.indent&&(w.indentLine(o.newPos.line,null,!0),w.indentLine(o.newPos.line+1,null,!0))}}function S(w,p){for(var a=w.listSelections(),f=[],x=p?"/":""&&(y+=">"),f[O]=y}if(w.replaceSelections(f),a=w.listSelections(),!m)for(var O=0;O=0&&p[i]==a;i--)++O;f=m.to;for(var i=1;i0){for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:"",p=[],a=0;a.5?E:y}function p(y,E,t,C,A){var v=y.length;if(A===1)for(var o=0;oA;if(v)y.length=A;else for(var o=C;o=0&&!(W[Fe]<=Le);Fe--);Fe=Math.min(Fe,M-2)}else{for(Fe=je;FeLe);Fe++);Fe=Math.min(Fe-1,M-2)}je=Fe,He=Le;var Pe=W[Fe+1]-W[Fe];if(Pe===0)return;if(Ge=(Le-W[Fe])/Pe,c)if(ce=G[Fe],he=G[Fe===0?Fe:Fe-1],Ee=G[Fe>M-2?M-1:Fe+1],fe=G[Fe>M-3?M-1:Fe+2],R)x(he,ce,Ee,fe,Ge,Ge*Ge,Ge*Ge*Ge,o(ze,A),F);else{var Ve;if(k)Ve=x(he,ce,Ee,fe,Ge,Ge*Ge,Ge*Ge*Ge,Ne,1),Ve=O(Ne);else{if(I)return w(ce,Ee,Ge);Ve=b(he,ce,Ee,fe,Ge,Ge*Ge,Ge*Ge*Ge)}l(ze,A,Ve)}else if(R)p(G[Fe],G[Fe+1],Ge,o(ze,A),F);else{var Ve;if(k)p(G[Fe],G[Fe+1],Ge,Ne,1),Ve=O(Ne);else{if(I)return w(G[Fe],G[Fe+1],Ge);Ve=d(G[Fe],G[Fe+1],Ge)}l(ze,A,Ve)}},xe=new Y({target:y._target,life:V,loop:y._loop,delay:y._delay,onframe:Ce,ondestroy:t});return E&&E!=="spline"&&(xe.easing=E),xe}var u=function(y,E,t,C){this._tracks={},this._target=y,this._loop=E||!1,this._getter=t||g,this._setter=C||s,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};u.prototype={when:function(y,E){var t=this._tracks;for(var C in E){if(!E.hasOwnProperty(C))continue;if(!t[C]){t[C]=[];var A=this._getter(this._target,C);if(A==null)continue;y!==0&&t[C].push({time:0,value:m(A)})}t[C].push({time:y,value:E[C]})}return this},during:function(y){return this._onframeList.push(y),this},pause:function(){for(var y=0;y1&&p&&p.length>1){var f=L(p)/L(a);!isFinite(f)&&(f=1),d.pinchScale=f;var x=U(p);return d.pinchX=x[0],d.pinchY=x[1],{type:"pinch",target:s[0].target,event:d}}}},g=j;Ye.exports=g},CCdo:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___3ACWg",flex_space_between:"flex_space_between___2YdIf",flex_box_vertical_center:"flex_box_vertical_center___lNx6c",flex_box_center_end:"flex_box_center_end___1EQGR",flex_box_column:"flex_box_column___3gBVY",title:"title___1Uu39",search:"search___17Xmk",head:"head___3jpio",row:"row___2jdpt",btns:"btns___3Qg_w",sort:"sort___uQoc6"}},CIbS:function(Ye,ie,_){"use strict";var Y=_("2qtc"),j=_("kLXV"),L=_("T2oS"),U=_("W9HT"),S=_("sRBo"),g=_("kaz8"),s=_("7Kak"),d=_("9yH6"),w=_("14J3"),p=_("BMrR"),a=_("iQDF"),f=_("+eQT"),x=_("miYZ"),b=_("tsqr"),m=_("jrin"),O=_("oBTY"),i=_("k1fw"),r=_("9og8"),u=_("y8nQ"),h=_("Vl3Y"),y=_("tJVT"),E=_("WmNS"),t=_.n(E),C=_("q1tI"),A=_.n(C),v=_("wd/R"),o=_.n(v),l=_("ErOA"),c=_("1vsH"),M=_("Ty5D"),P=_("9kvl"),R=_("xKgJ"),k=_("V0Rq"),I=_("6K3P"),F=_.n(I),V=_("jr/l");function W(X,te){for(var ee=[],be=X;be0)){pe.next=10;break}return b.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),pe.abrupt("return");case 10:return wt(!0),et=ze.map(function(Gt){return Gt.key}),xt={check_ids:Object(O.a)(ge.actionTabs.selectArrs),end_time:o()(ye.end_time).format("YYYY-MM-DD HH:mm"),publish_time:o()(ye.publish_time).format("YYYY-MM-DD HH:mm")},xt.unified_setting=!1,xt.group_ids=tn.map(function(Gt){return Gt.course_group_id}),pe.next=17,Object(l.a)("/api/courses/".concat(He.coursesId,"/exercises/publish.json"),{method:"post",body:xt});case 17:xn=pe.sent,xn.status===0&&(Object(c.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Xe(),b.b.success("\u53D1\u5E03\u6210\u529F"),je({type:"exercise/setActionTabs",payload:{}}),ge!=null&&(Dt=ge.actionTabs)!==null&&Dt!==void 0&&Dt.cb?ge==null||((yt=ge.actionTabs)===null||yt===void 0)||yt.cb():je({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},ge.actionTabs.params)})),wt(!1);case 20:case"end":return pe.stop()}},Ae)}));return function(){return Oe.apply(this,arguments)}}(),Xe=function(){Ne(1),Le([]),Qt([])};return A.a.createElement(j.a,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",visible:ge.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Je,confirmLoading:Tt||Ve,onCancel:function(){Xe(),je({type:"exercise/setActionTabs",payload:{}})}},A.a.createElement(U.a,{spinning:Ve},ze&&A.a.createElement(h.a,{form:he},!!(ge!=null&&(ee=ge.actionTabs)!==null&&ee!==void 0&&ee.disabled)&&A.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},A.a.createElement("img",{style:{marginRight:5},src:F.a}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),A.a.createElement(p.a,null,A.a.createElement("span",{className:"mr10 mt5"},A.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),A.a.createElement(h.a.Item,{name:"publish_time"},A.a.createElement(f.a,{style:{width:155},getPopupContainer:function(Ae){return Ae.parentNode},disabledDate:function(Ae){return Ae&&Ae<=o()().subtract(0,"days")},disabledTime:G,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(c.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),A.a.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),A.a.createElement(h.a.Item,{name:"end_time"},A.a.createElement(f.a,{style:{width:170},getPopupContainer:function(Ae){return Ae.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(c.d)(),"HH:mm")},disabledDate:function(Ae){return Ae&&Ae0&&A.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},A.a.createElement("span",{style:{flex:1}},A.a.createElement(g.a,{checked:tn.length===ze.length,onChange:function(Ae){tn.length===ze.length?Qt([]):Qt(ze)}},"\u5168\u9009")," "),A.a.createElement("span",{style:{width:16}}),A.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",tn.length||0,"\u4E2A\u5206\u73ED")),(ge.actionTabs.type===1||!mt)&&ze.length>0&&A.a.createElement(V.a,{data:ze,selectedRowKeys:tn,setSelectedRowKeys:Qt}))))};ie.a=Object(P.a)(function(X){var te=X.exercise,ee=X.user;return{exercise:te,user:ee}})(J)},"Cg/j":function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return Y}),_.d(ie,"a",function(){return j}),_.d(ie,"c",function(){return U}),_.d(ie,"d",function(){return S});var Y;(function(g){g.serviceIds=new Map,g.DI_TARGET="$di$target",g.DI_DEPENDENCIES="$di$dependencies";function s(d){return d[g.DI_DEPENDENCIES]||[]}g.getServiceDependencies=s})(Y||(Y={}));var j=U("instantiationService");function L(g,s,d,w){s[Y.DI_TARGET]===s?s[Y.DI_DEPENDENCIES].push({id:g,index:d,optional:w}):(s[Y.DI_DEPENDENCIES]=[{id:g,index:d,optional:w}],s[Y.DI_TARGET]=s)}function U(g){if(Y.serviceIds.has(g))return Y.serviceIds.get(g);var s=function(d,w,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");L(s,d,p,!1)};return s.toString=function(){return g},Y.serviceIds.set(g,s),s}function S(g){return function(s,d,w){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");L(g,s,w,!0)}}},DBLp:function(Ye,ie){function _(){}_.prototype={diff:function(S,g,s){s||(s=function(u,h){return u===h}),this.equals=s;var d=this;S=S.slice(),g=g.slice();var w=g.length,p=S.length,a=1,f=w+p,x=[{newPos:-1,components:[]}],b=this.extractCommon(x[0],g,S,0);if(x[0].newPos+1>=w&&b+1>=p){for(var m=[],O=0;O=w&&t+1>=p)return Y(d,h.components,g,S);x[u]=h}a++}for(;a<=f;){var r=i();if(r)return r}},pushComponent:function(S,g,s){var d=S[S.length-1];d&&d.added===g&&d.removed===s?S[S.length-1]={count:d.count+1,added:g,removed:s}:S.push({count:1,added:g,removed:s})},extractCommon:function(S,g,s,d){for(var w=g.length,p=s.length,a=S.newPos,f=a-d,x=0;a+1U||f<-U}var g=function(f){f=f||{},f.position||(this.position=[0,0]),f.rotation==null&&(this.rotation=0),f.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=g.prototype;s.transform=null,s.needLocalTransform=function(){return S(this.rotation)||S(this.position[0])||S(this.position[1])||S(this.scale[0]-1)||S(this.scale[1]-1)};var d=[];s.updateTransform=function(){var f=this.parent,x=f&&f.transform,b=this.needLocalTransform(),m=this.transform;if(!(b||x)){m&&L(m);return}m=m||Y.create(),b?this.getLocalTransform(m):L(m),x&&(b?Y.mul(m,f.transform,m):Y.copy(m,f.transform)),this.transform=m;var O=this.globalScaleRatio;if(O!=null&&O!==1){this.getGlobalScale(d);var i=d[0]<0?-1:1,r=d[1]<0?-1:1,u=((d[0]-i)*O+i)/d[0]||0,h=((d[1]-r)*O+r)/d[1]||0;m[0]*=u,m[1]*=u,m[2]*=h,m[3]*=h}this.invTransform=this.invTransform||Y.create(),Y.invert(this.invTransform,m)},s.getLocalTransform=function(f){return g.getLocalTransform(this,f)},s.setTransform=function(f){var x=this.transform,b=f.dpr||1;x?f.setTransform(b*x[0],b*x[1],b*x[2],b*x[3],b*x[4],b*x[5]):f.setTransform(b,0,0,b,0,0)},s.restoreTransform=function(f){var x=f.dpr||1;f.setTransform(x,0,0,x,0,0)};var w=[],p=Y.create();s.setLocalTransform=function(f){if(!f)return;var x=f[0]*f[0]+f[1]*f[1],b=f[2]*f[2]+f[3]*f[3],m=this.position,O=this.scale;S(x-1)&&(x=Math.sqrt(x)),S(b-1)&&(b=Math.sqrt(b)),f[0]<0&&(x=-x),f[3]<0&&(b=-b),m[0]=f[4],m[1]=f[5],O[0]=x,O[1]=b,this.rotation=Math.atan2(-f[1]/b,f[0]/x)},s.decomposeTransform=function(){if(!this.transform)return;var f=this.parent,x=this.transform;f&&f.transform&&(Y.mul(w,f.invTransform,x),x=w);var b=this.origin;b&&(b[0]||b[1])&&(p[4]=b[0],p[5]=b[1],Y.mul(w,x,p),w[4]-=b[0],w[5]-=b[1],x=w),this.setLocalTransform(x)},s.getGlobalScale=function(f){var x=this.transform;return f=f||[],x?(f[0]=Math.sqrt(x[0]*x[0]+x[1]*x[1]),f[1]=Math.sqrt(x[2]*x[2]+x[3]*x[3]),x[0]<0&&(f[0]=-f[0]),x[3]<0&&(f[1]=-f[1]),f):(f[0]=1,f[1]=1,f)},s.transformCoordToLocal=function(f,x){var b=[f,x],m=this.invTransform;return m&&j.applyTransform(b,b,m),b},s.transformCoordToGlobal=function(f,x){var b=[f,x],m=this.transform;return m&&j.applyTransform(b,b,m),b},g.getLocalTransform=function(f,x){x=x||[],L(x);var b=f.origin,m=f.scale||[1,1],O=f.rotation||0,i=f.position||[0,0];return b&&(x[4]-=b[0],x[5]-=b[1]),Y.scale(x,x,m),O&&Y.rotate(x,x,O),b&&(x[4]+=b[0],x[5]+=b[1]),x[4]+=i[0],x[5]+=i[1],x};var a=g;Ye.exports=a},Dagg:function(Ye,ie,_){var Y=_("Gev7"),j=_("mFDi"),L=_("bYtY"),U=_("Xnb7");function S(s){Y.call(this,s)}S.prototype={constructor:S,type:"image",brush:function(s,d){var w=this.style,p=w.image;w.bind(s,this,d);var a=this._image=U.createOrUpdateImage(p,this._image,this,this.onload);if(!a||!U.isImageReady(a))return;var f=w.x||0,x=w.y||0,b=w.width,m=w.height,O=a.width/a.height;if(b==null&&m!=null?b=m*O:m==null&&b!=null?m=b/O:b==null&&m==null&&(b=a.width,m=a.height),this.setTransform(s),w.sWidth&&w.sHeight){var i=w.sx||0,r=w.sy||0;s.drawImage(a,i,r,w.sWidth,w.sHeight,f,x,b,m)}else if(w.sx&&w.sy){var i=w.sx,r=w.sy,u=b-i,h=m-r;s.drawImage(a,i,r,u,h,f,x,b,m)}else s.drawImage(a,f,x,b,m);w.text!=null&&(this.restoreTransform(s),this.drawRectText(s,this.getBoundingRect()))},getBoundingRect:function(){var s=this.style;return this._rect||(this._rect=new j(s.x||0,s.y||0,s.width||0,s.height||0)),this._rect}},L.inherits(S,Y);var g=S;Ye.exports=g},DlQD:function(Ye,ie,_){(function(Y,j){Ye.exports=j()})(this,function(){"use strict";function Y(Qe,Je){for(var Xe=0;XeQe.length)&&(Je=Qe.length);for(var Xe=0,Oe=new Array(Je);Xe=Qe.length?{done:!0}:{done:!1,value:Qe[Oe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Xe=Qe[Symbol.iterator](),Xe.next.bind(Xe)}function g(Qe,Je){return Je={exports:{}},Qe(Je,Je.exports),Je.exports}var s=g(function(Qe){function Je(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Xe(Oe){Qe.exports.defaults=Oe}Qe.exports={defaults:Je(),getDefaults:Je,changeDefaults:Xe}}),d=s.defaults,w=s.getDefaults,p=s.changeDefaults,a=/[&<>"']/,f=/[&<>"']/g,x=/[<>"']|&(?!#?\w+;)/,b=/[<>"']|&(?!#?\w+;)/g,m={"&":"&","<":"<",">":">",'"':""","'":"'"},O=function(Je){return m[Je]};function i(Qe,Je){if(Je){if(a.test(Qe))return Qe.replace(f,O)}else if(x.test(Qe))return Qe.replace(b,O);return Qe}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(Qe){return Qe.replace(r,function(Je,Xe){return Xe=Xe.toLowerCase(),Xe==="colon"?":":Xe.charAt(0)==="#"?Xe.charAt(1)==="x"?String.fromCharCode(parseInt(Xe.substring(2),16)):String.fromCharCode(+Xe.substring(1)):""})}var h=/(^|[^\[])\^/g;function y(Qe,Je){Qe=Qe.source||Qe,Je=Je||"";var Xe={replace:function(Ae,ye){return ye=ye.source||ye,ye=ye.replace(h,"$1"),Qe=Qe.replace(Ae,ye),Xe},getRegex:function(){return new RegExp(Qe,Je)}};return Xe}var E=/[^\w:]/g,t=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(Qe,Je,Xe){if(Qe){var Oe;try{Oe=decodeURIComponent(u(Xe)).replace(E,"").toLowerCase()}catch(Ae){return null}if(Oe.indexOf("javascript:")===0||Oe.indexOf("vbscript:")===0||Oe.indexOf("data:")===0)return null}Je&&!t.test(Xe)&&(Xe=c(Je,Xe));try{Xe=encodeURI(Xe).replace(/%25/g,"%")}catch(Ae){return null}return Xe}var A={},v=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Qe,Je){A[" "+Qe]||(v.test(Qe)?A[" "+Qe]=Qe+"/":A[" "+Qe]=k(Qe,"/",!0)),Qe=A[" "+Qe];var Xe=Qe.indexOf(":")===-1;return Je.substring(0,2)==="//"?Xe?Je:Qe.replace(o,"$1")+Je:Je.charAt(0)==="/"?Xe?Je:Qe.replace(l,"$1")+Je:Qe+Je}var M={exec:function(){}};function P(Qe){for(var Je=1,Xe,Oe;Je=0&&dt[xt]==="\\";)et=!et;return et?"|":" |"}),Oe=Xe.split(/ \|/),Ae=0;if(Oe.length>Je)Oe.splice(Je);else for(;Oe.length",newPos:A?Y.Pos(y.line+1,0):Y.Pos(y.line,y.ch+1)}}for(var v=typeof f=="object"&&f.dontIndentOnAutoClose,x=p.length-1;x>=0;x--){var o=a[x];w.replaceRange(o.text,p[x].head,p[x].anchor,"+insert");var l=w.listSelections().slice(0);l[x]={head:o.newPos,anchor:o.newPos},w.setSelections(l),!v&&o.indent&&(w.indentLine(o.newPos.line,null,!0),w.indentLine(o.newPos.line+1,null,!0))}}function S(w,p){for(var a=w.listSelections(),f=[],x=p?"/":""&&(b+=">"),f[O]=b}if(w.replaceSelections(f),a=w.listSelections(),!m)for(var O=0;O=0&&p[i]==a;i--)++O;f=m.to;for(var i=1;i0){for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:"",p=[],a=0;a.5?E:b}function p(b,E,t,C,A){var v=b.length;if(A===1)for(var o=0;oA;if(v)b.length=A;else for(var o=C;o=0&&!(W[Fe]<=Le);Fe--);Fe=Math.min(Fe,M-2)}else{for(Fe=je;FeLe);Fe++);Fe=Math.min(Fe-1,M-2)}je=Fe,He=Le;var Pe=W[Fe+1]-W[Fe];if(Pe===0)return;if(Ge=(Le-W[Fe])/Pe,c)if(ce=G[Fe],he=G[Fe===0?Fe:Fe-1],Ee=G[Fe>M-2?M-1:Fe+1],fe=G[Fe>M-3?M-1:Fe+2],R)x(he,ce,Ee,fe,Ge,Ge*Ge,Ge*Ge*Ge,o(ze,A),F);else{var Ve;if(k)Ve=x(he,ce,Ee,fe,Ge,Ge*Ge,Ge*Ge*Ge,Ne,1),Ve=O(Ne);else{if(I)return w(ce,Ee,Ge);Ve=y(he,ce,Ee,fe,Ge,Ge*Ge,Ge*Ge*Ge)}l(ze,A,Ve)}else if(R)p(G[Fe],G[Fe+1],Ge,o(ze,A),F);else{var Ve;if(k)p(G[Fe],G[Fe+1],Ge,Ne,1),Ve=O(Ne);else{if(I)return w(G[Fe],G[Fe+1],Ge);Ve=d(G[Fe],G[Fe+1],Ge)}l(ze,A,Ve)}},xe=new Y({target:b._target,life:V,loop:b._loop,delay:b._delay,onframe:Ce,ondestroy:t});return E&&E!=="spline"&&(xe.easing=E),xe}var u=function(b,E,t,C){this._tracks={},this._target=b,this._loop=E||!1,this._getter=t||g,this._setter=C||s,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};u.prototype={when:function(b,E){var t=this._tracks;for(var C in E){if(!E.hasOwnProperty(C))continue;if(!t[C]){t[C]=[];var A=this._getter(this._target,C);if(A==null)continue;b!==0&&t[C].push({time:0,value:m(A)})}t[C].push({time:b,value:E[C]})}return this},during:function(b){return this._onframeList.push(b),this},pause:function(){for(var b=0;b1&&p&&p.length>1){var f=L(p)/L(a);!isFinite(f)&&(f=1),d.pinchScale=f;var x=U(p);return d.pinchX=x[0],d.pinchY=x[1],{type:"pinch",target:s[0].target,event:d}}}},g=j;Ye.exports=g},CCdo:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___3ACWg",flex_space_between:"flex_space_between___2YdIf",flex_box_vertical_center:"flex_box_vertical_center___lNx6c",flex_box_center_end:"flex_box_center_end___1EQGR",flex_box_column:"flex_box_column___3gBVY",title:"title___1Uu39",search:"search___17Xmk",head:"head___3jpio",row:"row___2jdpt",btns:"btns___3Qg_w",sort:"sort___uQoc6"}},CIbS:function(Ye,ie,_){"use strict";var Y=_("2qtc"),j=_("kLXV"),L=_("T2oS"),U=_("W9HT"),S=_("sRBo"),g=_("kaz8"),s=_("7Kak"),d=_("9yH6"),w=_("14J3"),p=_("BMrR"),a=_("iQDF"),f=_("+eQT"),x=_("miYZ"),y=_("tsqr"),m=_("jrin"),O=_("oBTY"),i=_("k1fw"),r=_("9og8"),u=_("y8nQ"),h=_("Vl3Y"),b=_("tJVT"),E=_("WmNS"),t=_.n(E),C=_("q1tI"),A=_.n(C),v=_("wd/R"),o=_.n(v),l=_("ErOA"),c=_("1vsH"),M=_("Ty5D"),P=_("9kvl"),R=_("xKgJ"),k=_("V0Rq"),I=_("6K3P"),F=_.n(I),V=_("jr/l");function W(X,te){for(var ee=[],be=X;be0)){pe.next=10;break}return y.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),pe.abrupt("return");case 10:return wt(!0),et=ze.map(function(Gt){return Gt.key}),xt={check_ids:Object(O.a)(ge.actionTabs.selectArrs),end_time:o()(ye.end_time).format("YYYY-MM-DD HH:mm"),publish_time:o()(ye.publish_time).format("YYYY-MM-DD HH:mm")},xt.unified_setting=!1,xt.group_ids=tn.map(function(Gt){return Gt.course_group_id}),pe.next=17,Object(l.a)("/api/courses/".concat(He.coursesId,"/exercises/publish.json"),{method:"post",body:xt});case 17:xn=pe.sent,xn.status===0&&(Object(c.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Xe(),y.b.success("\u53D1\u5E03\u6210\u529F"),je({type:"exercise/setActionTabs",payload:{}}),ge!=null&&(Dt=ge.actionTabs)!==null&&Dt!==void 0&&Dt.cb?ge==null||((_t=ge.actionTabs)===null||_t===void 0)||_t.cb():je({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},ge.actionTabs.params)})),wt(!1);case 20:case"end":return pe.stop()}},Ae)}));return function(){return Oe.apply(this,arguments)}}(),Xe=function(){Ne(1),Le([]),Qt([])};return A.a.createElement(j.a,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",visible:ge.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Je,confirmLoading:Tt||Ve,onCancel:function(){Xe(),je({type:"exercise/setActionTabs",payload:{}})}},A.a.createElement(U.a,{spinning:Ve},ze&&A.a.createElement(h.a,{form:he},!!(ge!=null&&(ee=ge.actionTabs)!==null&&ee!==void 0&&ee.disabled)&&A.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},A.a.createElement("img",{style:{marginRight:5},src:F.a}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),A.a.createElement(p.a,null,A.a.createElement("span",{className:"mr10 mt5"},A.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),A.a.createElement(h.a.Item,{name:"publish_time"},A.a.createElement(f.a,{style:{width:155},getPopupContainer:function(Ae){return Ae.parentNode},disabledDate:function(Ae){return Ae&&Ae<=o()().subtract(0,"days")},disabledTime:G,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(c.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),A.a.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),A.a.createElement(h.a.Item,{name:"end_time"},A.a.createElement(f.a,{style:{width:170},getPopupContainer:function(Ae){return Ae.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(c.d)(),"HH:mm")},disabledDate:function(Ae){return Ae&&Ae0&&A.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},A.a.createElement("span",{style:{flex:1}},A.a.createElement(g.a,{checked:tn.length===ze.length,onChange:function(Ae){tn.length===ze.length?Qt([]):Qt(ze)}},"\u5168\u9009")," "),A.a.createElement("span",{style:{width:16}}),A.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",tn.length||0,"\u4E2A\u5206\u73ED")),(ge.actionTabs.type===1||!mt)&&ze.length>0&&A.a.createElement(V.a,{data:ze,selectedRowKeys:tn,setSelectedRowKeys:Qt}))))};ie.a=Object(P.a)(function(X){var te=X.exercise,ee=X.user;return{exercise:te,user:ee}})(J)},"Cg/j":function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return Y}),_.d(ie,"a",function(){return j}),_.d(ie,"c",function(){return U}),_.d(ie,"d",function(){return S});var Y;(function(g){g.serviceIds=new Map,g.DI_TARGET="$di$target",g.DI_DEPENDENCIES="$di$dependencies";function s(d){return d[g.DI_DEPENDENCIES]||[]}g.getServiceDependencies=s})(Y||(Y={}));var j=U("instantiationService");function L(g,s,d,w){s[Y.DI_TARGET]===s?s[Y.DI_DEPENDENCIES].push({id:g,index:d,optional:w}):(s[Y.DI_DEPENDENCIES]=[{id:g,index:d,optional:w}],s[Y.DI_TARGET]=s)}function U(g){if(Y.serviceIds.has(g))return Y.serviceIds.get(g);var s=function(d,w,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");L(s,d,p,!1)};return s.toString=function(){return g},Y.serviceIds.set(g,s),s}function S(g){return function(s,d,w){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");L(g,s,w,!0)}}},DBLp:function(Ye,ie){function _(){}_.prototype={diff:function(S,g,s){s||(s=function(u,h){return u===h}),this.equals=s;var d=this;S=S.slice(),g=g.slice();var w=g.length,p=S.length,a=1,f=w+p,x=[{newPos:-1,components:[]}],y=this.extractCommon(x[0],g,S,0);if(x[0].newPos+1>=w&&y+1>=p){for(var m=[],O=0;O=w&&t+1>=p)return Y(d,h.components,g,S);x[u]=h}a++}for(;a<=f;){var r=i();if(r)return r}},pushComponent:function(S,g,s){var d=S[S.length-1];d&&d.added===g&&d.removed===s?S[S.length-1]={count:d.count+1,added:g,removed:s}:S.push({count:1,added:g,removed:s})},extractCommon:function(S,g,s,d){for(var w=g.length,p=s.length,a=S.newPos,f=a-d,x=0;a+1U||f<-U}var g=function(f){f=f||{},f.position||(this.position=[0,0]),f.rotation==null&&(this.rotation=0),f.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=g.prototype;s.transform=null,s.needLocalTransform=function(){return S(this.rotation)||S(this.position[0])||S(this.position[1])||S(this.scale[0]-1)||S(this.scale[1]-1)};var d=[];s.updateTransform=function(){var f=this.parent,x=f&&f.transform,y=this.needLocalTransform(),m=this.transform;if(!(y||x)){m&&L(m);return}m=m||Y.create(),y?this.getLocalTransform(m):L(m),x&&(y?Y.mul(m,f.transform,m):Y.copy(m,f.transform)),this.transform=m;var O=this.globalScaleRatio;if(O!=null&&O!==1){this.getGlobalScale(d);var i=d[0]<0?-1:1,r=d[1]<0?-1:1,u=((d[0]-i)*O+i)/d[0]||0,h=((d[1]-r)*O+r)/d[1]||0;m[0]*=u,m[1]*=u,m[2]*=h,m[3]*=h}this.invTransform=this.invTransform||Y.create(),Y.invert(this.invTransform,m)},s.getLocalTransform=function(f){return g.getLocalTransform(this,f)},s.setTransform=function(f){var x=this.transform,y=f.dpr||1;x?f.setTransform(y*x[0],y*x[1],y*x[2],y*x[3],y*x[4],y*x[5]):f.setTransform(y,0,0,y,0,0)},s.restoreTransform=function(f){var x=f.dpr||1;f.setTransform(x,0,0,x,0,0)};var w=[],p=Y.create();s.setLocalTransform=function(f){if(!f)return;var x=f[0]*f[0]+f[1]*f[1],y=f[2]*f[2]+f[3]*f[3],m=this.position,O=this.scale;S(x-1)&&(x=Math.sqrt(x)),S(y-1)&&(y=Math.sqrt(y)),f[0]<0&&(x=-x),f[3]<0&&(y=-y),m[0]=f[4],m[1]=f[5],O[0]=x,O[1]=y,this.rotation=Math.atan2(-f[1]/y,f[0]/x)},s.decomposeTransform=function(){if(!this.transform)return;var f=this.parent,x=this.transform;f&&f.transform&&(Y.mul(w,f.invTransform,x),x=w);var y=this.origin;y&&(y[0]||y[1])&&(p[4]=y[0],p[5]=y[1],Y.mul(w,x,p),w[4]-=y[0],w[5]-=y[1],x=w),this.setLocalTransform(x)},s.getGlobalScale=function(f){var x=this.transform;return f=f||[],x?(f[0]=Math.sqrt(x[0]*x[0]+x[1]*x[1]),f[1]=Math.sqrt(x[2]*x[2]+x[3]*x[3]),x[0]<0&&(f[0]=-f[0]),x[3]<0&&(f[1]=-f[1]),f):(f[0]=1,f[1]=1,f)},s.transformCoordToLocal=function(f,x){var y=[f,x],m=this.invTransform;return m&&j.applyTransform(y,y,m),y},s.transformCoordToGlobal=function(f,x){var y=[f,x],m=this.transform;return m&&j.applyTransform(y,y,m),y},g.getLocalTransform=function(f,x){x=x||[],L(x);var y=f.origin,m=f.scale||[1,1],O=f.rotation||0,i=f.position||[0,0];return y&&(x[4]-=y[0],x[5]-=y[1]),Y.scale(x,x,m),O&&Y.rotate(x,x,O),y&&(x[4]+=y[0],x[5]+=y[1]),x[4]+=i[0],x[5]+=i[1],x};var a=g;Ye.exports=a},Dagg:function(Ye,ie,_){var Y=_("Gev7"),j=_("mFDi"),L=_("bYtY"),U=_("Xnb7");function S(s){Y.call(this,s)}S.prototype={constructor:S,type:"image",brush:function(s,d){var w=this.style,p=w.image;w.bind(s,this,d);var a=this._image=U.createOrUpdateImage(p,this._image,this,this.onload);if(!a||!U.isImageReady(a))return;var f=w.x||0,x=w.y||0,y=w.width,m=w.height,O=a.width/a.height;if(y==null&&m!=null?y=m*O:m==null&&y!=null?m=y/O:y==null&&m==null&&(y=a.width,m=a.height),this.setTransform(s),w.sWidth&&w.sHeight){var i=w.sx||0,r=w.sy||0;s.drawImage(a,i,r,w.sWidth,w.sHeight,f,x,y,m)}else if(w.sx&&w.sy){var i=w.sx,r=w.sy,u=y-i,h=m-r;s.drawImage(a,i,r,u,h,f,x,y,m)}else s.drawImage(a,f,x,y,m);w.text!=null&&(this.restoreTransform(s),this.drawRectText(s,this.getBoundingRect()))},getBoundingRect:function(){var s=this.style;return this._rect||(this._rect=new j(s.x||0,s.y||0,s.width||0,s.height||0)),this._rect}},L.inherits(S,Y);var g=S;Ye.exports=g},DlQD:function(Ye,ie,_){(function(Y,j){Ye.exports=j()})(this,function(){"use strict";function Y(Qe,Je){for(var Xe=0;XeQe.length)&&(Je=Qe.length);for(var Xe=0,Oe=new Array(Je);Xe=Qe.length?{done:!0}:{done:!1,value:Qe[Oe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Xe=Qe[Symbol.iterator](),Xe.next.bind(Xe)}function g(Qe,Je){return Je={exports:{}},Qe(Je,Je.exports),Je.exports}var s=g(function(Qe){function Je(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Xe(Oe){Qe.exports.defaults=Oe}Qe.exports={defaults:Je(),getDefaults:Je,changeDefaults:Xe}}),d=s.defaults,w=s.getDefaults,p=s.changeDefaults,a=/[&<>"']/,f=/[&<>"']/g,x=/[<>"']|&(?!#?\w+;)/,y=/[<>"']|&(?!#?\w+;)/g,m={"&":"&","<":"<",">":">",'"':""","'":"'"},O=function(Je){return m[Je]};function i(Qe,Je){if(Je){if(a.test(Qe))return Qe.replace(f,O)}else if(x.test(Qe))return Qe.replace(y,O);return Qe}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(Qe){return Qe.replace(r,function(Je,Xe){return Xe=Xe.toLowerCase(),Xe==="colon"?":":Xe.charAt(0)==="#"?Xe.charAt(1)==="x"?String.fromCharCode(parseInt(Xe.substring(2),16)):String.fromCharCode(+Xe.substring(1)):""})}var h=/(^|[^\[])\^/g;function b(Qe,Je){Qe=Qe.source||Qe,Je=Je||"";var Xe={replace:function(Ae,ye){return ye=ye.source||ye,ye=ye.replace(h,"$1"),Qe=Qe.replace(Ae,ye),Xe},getRegex:function(){return new RegExp(Qe,Je)}};return Xe}var E=/[^\w:]/g,t=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(Qe,Je,Xe){if(Qe){var Oe;try{Oe=decodeURIComponent(u(Xe)).replace(E,"").toLowerCase()}catch(Ae){return null}if(Oe.indexOf("javascript:")===0||Oe.indexOf("vbscript:")===0||Oe.indexOf("data:")===0)return null}Je&&!t.test(Xe)&&(Xe=c(Je,Xe));try{Xe=encodeURI(Xe).replace(/%25/g,"%")}catch(Ae){return null}return Xe}var A={},v=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Qe,Je){A[" "+Qe]||(v.test(Qe)?A[" "+Qe]=Qe+"/":A[" "+Qe]=k(Qe,"/",!0)),Qe=A[" "+Qe];var Xe=Qe.indexOf(":")===-1;return Je.substring(0,2)==="//"?Xe?Je:Qe.replace(o,"$1")+Je:Je.charAt(0)==="/"?Xe?Je:Qe.replace(l,"$1")+Je:Qe+Je}var M={exec:function(){}};function P(Qe){for(var Je=1,Xe,Oe;Je=0&&dt[xt]==="\\";)et=!et;return et?"|":" |"}),Oe=Xe.split(/ \|/),Ae=0;if(Oe.length>Je)Oe.splice(Je);else for(;Oe.length=Oe.length?Ae.slice(Oe.length):Ae}).join(` `)}var ge=function(){function Qe(Xe){this.options=Xe||W}var Je=Qe.prototype;return Je.space=function(Oe){var Ae=this.rules.block.newline.exec(Oe);if(Ae)return Ae[0].length>1?{type:"space",raw:Ae[0]}:{raw:` `}},Je.code=function(Oe,Ae){var ye=this.rules.block.code.exec(Oe);if(ye){var Se=Ae[Ae.length-1];if(Se&&Se.type==="paragraph")return{raw:ye[0],text:ye[0].trimRight()};var dt=ye[0].replace(/^ {4}/gm,"");return{type:"code",raw:ye[0],codeBlockStyle:"indented",text:this.options.pedantic?dt:G(dt,` `)}}},Je.fences=function(Oe){var Ae=this.rules.block.fences.exec(Oe);if(Ae){var ye=Ae[0],Se=be(ye,Ae[3]||"");return{type:"code",raw:ye,lang:Ae[2]?Ae[2].trim():Ae[2],text:Se}}},Je.heading=function(Oe){var Ae=this.rules.block.heading.exec(Oe);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},Je.nptable=function(Oe){var Ae=this.rules.block.nptable.exec(Oe);if(Ae){var ye={type:"table",header:J(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(` -`):[],raw:Ae[0]};if(ye.header.length===ye.align.length){var Se=ye.align.length,dt;for(dt=0;dt ?/gm,"");return{type:"blockquote",raw:Ae[0],text:ye}}},Je.list=function(Oe){var Ae=this.rules.block.list.exec(Oe);if(Ae){for(var ye=Ae[0],Se=Ae[2],dt=Se.length>1,et=Se[Se.length-1]===")",xt={type:"list",raw:ye,ordered:dt,start:dt?+Se.slice(0,-1):"",loose:!1,items:[]},xn=Ae[0].match(this.rules.block.item),Dt=!1,yt,mn,pe,Gt,Lt,Be,ot,Xt=xn.length,Pt=0;Pt1||this.options.smartLists&&pe!==Se)&&(Gt=xn.slice(Pt+1).join(` -`),xt.raw=xt.raw.substring(0,xt.raw.length-Gt.length),Pt=Xt-1)),Lt=Dt||/\n\n(?!\s*$)/.test(yt),Pt!==Xt-1&&(Dt=yt.charAt(yt.length-1)===` -`,Lt||(Lt=Dt)),Lt&&(xt.loose=!0),Be=/^\[[ xX]\] /.test(yt),ot=void 0,Be&&(ot=yt[1]!==" ",yt=yt.replace(/^\[[ xX]\] +/,"")),xt.items.push({type:"list_item",raw:ye,task:Be,checked:ot,loose:Lt,text:yt});return xt}},Je.html=function(Oe){var Ae=this.rules.block.html.exec(Oe);if(Ae)return{type:this.options.sanitize?"paragraph":"html",raw:Ae[0],pre:!this.options.sanitizer&&(Ae[1]==="pre"||Ae[1]==="script"||Ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ae[0]):X(Ae[0]):Ae[0]}},Je.def=function(Oe){var Ae=this.rules.block.def.exec(Oe);if(Ae){Ae[3]&&(Ae[3]=Ae[3].substring(1,Ae[3].length-1));var ye=Ae[1].toLowerCase().replace(/\s+/g," ");return{tag:ye,raw:Ae[0],href:Ae[2],title:Ae[3]}}},Je.table=function(Oe){var Ae=this.rules.block.table.exec(Oe);if(Ae){var ye={type:"table",header:J(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(` +`):[],raw:Ae[0]};if(ye.header.length===ye.align.length){var Se=ye.align.length,dt;for(dt=0;dt ?/gm,"");return{type:"blockquote",raw:Ae[0],text:ye}}},Je.list=function(Oe){var Ae=this.rules.block.list.exec(Oe);if(Ae){for(var ye=Ae[0],Se=Ae[2],dt=Se.length>1,et=Se[Se.length-1]===")",xt={type:"list",raw:ye,ordered:dt,start:dt?+Se.slice(0,-1):"",loose:!1,items:[]},xn=Ae[0].match(this.rules.block.item),Dt=!1,_t,mn,pe,Gt,Lt,Be,ot,Xt=xn.length,Pt=0;Pt1||this.options.smartLists&&pe!==Se)&&(Gt=xn.slice(Pt+1).join(` +`),xt.raw=xt.raw.substring(0,xt.raw.length-Gt.length),Pt=Xt-1)),Lt=Dt||/\n\n(?!\s*$)/.test(_t),Pt!==Xt-1&&(Dt=_t.charAt(_t.length-1)===` +`,Lt||(Lt=Dt)),Lt&&(xt.loose=!0),Be=/^\[[ xX]\] /.test(_t),ot=void 0,Be&&(ot=_t[1]!==" ",_t=_t.replace(/^\[[ xX]\] +/,"")),xt.items.push({type:"list_item",raw:ye,task:Be,checked:ot,loose:Lt,text:_t});return xt}},Je.html=function(Oe){var Ae=this.rules.block.html.exec(Oe);if(Ae)return{type:this.options.sanitize?"paragraph":"html",raw:Ae[0],pre:!this.options.sanitizer&&(Ae[1]==="pre"||Ae[1]==="script"||Ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ae[0]):X(Ae[0]):Ae[0]}},Je.def=function(Oe){var Ae=this.rules.block.def.exec(Oe);if(Ae){Ae[3]&&(Ae[3]=Ae[3].substring(1,Ae[3].length-1));var ye=Ae[1].toLowerCase().replace(/\s+/g," ");return{tag:ye,raw:Ae[0],href:Ae[2],title:Ae[3]}}},Je.table=function(Oe){var Ae=this.rules.block.table.exec(Oe);if(Ae){var ye={type:"table",header:J(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(` `):[]};if(ye.header.length===ye.align.length){ye.raw=Ae[0];var Se=ye.align.length,dt;for(dt=0;dt/i.test(Se[0])&&(Ae=!1),!ye&&/^<(pre|code|kbd|script)(\s|>)/i.test(Se[0])?ye=!0:ye&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Se[0])&&(ye=!1),{type:this.options.sanitize?"text":"html",raw:Se[0],inLink:Ae,inRawBlock:ye,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):X(Se[0]):Se[0]}},Je.link=function(Oe){var Ae=this.rules.inline.link.exec(Oe);if(Ae){var ye=te(Ae[2],"()");if(ye>-1){var Se=Ae[0].indexOf("!")===0?5:4,dt=Se+Ae[1].length+ye;Ae[2]=Ae[2].substring(0,ye),Ae[0]=Ae[0].substring(0,dt).trim(),Ae[3]=""}var et=Ae[2],xt="";if(this.options.pedantic){var xn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(et);xn?(et=xn[1],xt=xn[3]):xt=""}else xt=Ae[3]?Ae[3].slice(1,-1):"";et=et.trim().replace(/^<([\s\S]*)>$/,"$1");var Dt=ee(Ae,{href:et&&et.replace(this.rules.inline._escapes,"$1"),title:xt&&xt.replace(this.rules.inline._escapes,"$1")},Ae[0]);return Dt}},Je.reflink=function(Oe,Ae){var ye;if((ye=this.rules.inline.reflink.exec(Oe))||(ye=this.rules.inline.nolink.exec(Oe))){var Se=(ye[2]||ye[1]).replace(/\s+/g," ");if(Se=Ae[Se.toLowerCase()],!Se||!Se.href){var dt=ye[0].charAt(0);return{type:"text",raw:dt,text:dt}}var et=ee(ye,Se,ye[0]);return et}},Je.strong=function(Oe,Ae,ye){ye===void 0&&(ye="");var Se=this.rules.inline.strong.start.exec(Oe);if(Se&&(!Se[1]||Se[1]&&(ye===""||this.rules.inline.punctuation.exec(ye)))){Ae=Ae.slice(-1*Oe.length);var dt=Se[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;dt.lastIndex=0;for(var et;(Se=dt.exec(Ae))!=null;)if(et=this.rules.inline.strong.middle.exec(Ae.slice(0,Se.index+3)),et)return{type:"strong",raw:Oe.slice(0,et[0].length),text:Oe.slice(2,et[0].length-2)}}},Je.em=function(Oe,Ae,ye){ye===void 0&&(ye="");var Se=this.rules.inline.em.start.exec(Oe);if(Se&&(!Se[1]||Se[1]&&(ye===""||this.rules.inline.punctuation.exec(ye)))){Ae=Ae.slice(-1*Oe.length);var dt=Se[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;dt.lastIndex=0;for(var et;(Se=dt.exec(Ae))!=null;)if(et=this.rules.inline.em.middle.exec(Ae.slice(0,Se.index+2)),et)return{type:"em",raw:Oe.slice(0,et[0].length),text:Oe.slice(1,et[0].length-1)}}},Je.codespan=function(Oe){var Ae=this.rules.inline.code.exec(Oe);if(Ae){var ye=Ae[2].replace(/\n/g," "),Se=/[^ ]/.test(ye),dt=ye.startsWith(" ")&&ye.endsWith(" ");return Se&&dt&&(ye=ye.substring(1,ye.length-1)),ye=X(ye,!0),{type:"codespan",raw:Ae[0],text:ye}}},Je.br=function(Oe){var Ae=this.rules.inline.br.exec(Oe);if(Ae)return{type:"br",raw:Ae[0]}},Je.del=function(Oe){var Ae=this.rules.inline.del.exec(Oe);if(Ae)return{type:"del",raw:Ae[0],text:Ae[1]}},Je.autolink=function(Oe,Ae){var ye=this.rules.inline.autolink.exec(Oe);if(ye){var Se,dt;return ye[2]==="@"?(Se=X(this.options.mangle?Ae(ye[1]):ye[1]),dt="mailto:"+Se):(Se=X(ye[1]),dt=Se),{type:"link",raw:ye[0],text:Se,href:dt,tokens:[{type:"text",raw:Se,text:Se}]}}},Je.url=function(Oe,Ae){var ye;if(ye=this.rules.inline.url.exec(Oe)){var Se,dt;if(ye[2]==="@")Se=X(this.options.mangle?Ae(ye[0]):ye[0]),dt="mailto:"+Se;else{var et;do et=ye[0],ye[0]=this.rules.inline._backpedal.exec(ye[0])[0];while(et!==ye[0]);Se=X(ye[0]),ye[1]==="www."?dt="http://"+Se:dt=Se}return{type:"link",raw:ye[0],text:Se,href:dt,tokens:[{type:"text",raw:Se,text:Se}]}}},Je.inlineText=function(Oe,Ae,ye){var Se=this.rules.inline.text.exec(Oe);if(Se){var dt;return Ae?dt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):X(Se[0]):Se[0]:dt=X(this.options.smartypants?ye(Se[0]):Se[0]),{type:"text",raw:Se[0],text:dt}}},Qe}(),je=V.noopTest,He=V.edit,nt=V.merge,Ge={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:je,table:je,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ge._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ge._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ge.def=He(Ge.def).replace("label",Ge._label).replace("title",Ge._title).getRegex(),Ge.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ge.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ge.item=He(Ge.item,"gm").replace(/bull/g,Ge.bullet).getRegex(),Ge.list=He(Ge.list).replace(/bull/g,Ge.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ge.def.source+")").getRegex(),Ge._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ge._comment=//,Ge.html=He(Ge.html,"i").replace("comment",Ge._comment).replace("tag",Ge._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ge.paragraph=He(Ge._paragraph).replace("hr",Ge.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ge._tag).getRegex(),Ge.blockquote=He(Ge.blockquote).replace("paragraph",Ge.paragraph).getRegex(),Ge.normal=nt({},Ge),Ge.gfm=nt({},Ge.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ge.gfm.nptable=He(Ge.gfm.nptable).replace("hr",Ge.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ge._tag).getRegex(),Ge.gfm.table=He(Ge.gfm.table).replace("hr",Ge.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Ge._tag).getRegex(),Ge.pedantic=nt({},Ge.normal,{html:He(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ge._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:je,paragraph:He(Ge.normal._paragraph).replace("hr",Ge.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",Ge.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:je,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:je,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=He(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=He(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=He(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=He(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=He(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=He(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=He(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=He(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=He(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=He(he._blockSkip,"g").getRegex(),he.overlapSkip=He(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,he.autolink=He(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=He(he.tag).replace("comment",Ge._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=He(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=He(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=He(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=nt({},he),he.pedantic=nt({},he.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:He(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:He(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=nt({},he.normal,{escape:He(he.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(Oe="x"+Oe.toString(16)),Je+="&#"+Oe+";";return Je}var ze=function(){function Qe(Xe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Xe||Ee,this.options.tokenizer=this.options.tokenizer||new ge,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Oe={block:fe.normal,inline:Ne.normal};this.options.pedantic?(Oe.block=fe.pedantic,Oe.inline=Ne.pedantic):this.options.gfm&&(Oe.block=fe.gfm,this.options.breaks?Oe.inline=Ne.breaks:Oe.inline=Ne.gfm),this.tokenizer.rules=Oe}Qe.lex=function(Oe,Ae){var ye=new Qe(Ae);return ye.lex(Oe)};var Je=Qe.prototype;return Je.lex=function(Oe){return Oe=Oe.replace(/\r\n|\r/g,` @@ -258,7 +258,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+Se.raw,xt.text+=` `+Se.text);continue}if(Se=this.tokenizer.fences(Oe)){Oe=Oe.substring(Se.raw.length),Ae.push(Se);continue}if(Se=this.tokenizer.heading(Oe)){Oe=Oe.substring(Se.raw.length),Ae.push(Se);continue}if(Se=this.tokenizer.nptable(Oe)){Oe=Oe.substring(Se.raw.length),Ae.push(Se);continue}if(Se=this.tokenizer.hr(Oe)){Oe=Oe.substring(Se.raw.length),Ae.push(Se);continue}if(Se=this.tokenizer.blockquote(Oe)){Oe=Oe.substring(Se.raw.length),Se.tokens=this.blockTokens(Se.text,[],ye),Ae.push(Se);continue}if(Se=this.tokenizer.list(Oe)){for(Oe=Oe.substring(Se.raw.length),et=Se.items.length,dt=0;dt0)for(;(xn=this.tokenizer.rules.inline.reflinkSearch.exec(xt))!=null;)Dt.includes(xn[0].slice(xn[0].lastIndexOf("[")+1,-1))&&(xt=xt.slice(0,xn.index)+"["+"a".repeat(xn[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(xn=this.tokenizer.rules.inline.blockSkip.exec(xt))!=null;)xt=xt.slice(0,xn.index)+"["+"a".repeat(xn[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Oe;){if(et=this.tokenizer.escape(Oe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.tag(Oe,ye,Se)){Oe=Oe.substring(et.raw.length),ye=et.inLink,Se=et.inRawBlock,Ae.push(et);continue}if(et=this.tokenizer.link(Oe)){Oe=Oe.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Se)),Ae.push(et);continue}if(et=this.tokenizer.reflink(Oe,this.tokens.links)){Oe=Oe.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Se)),Ae.push(et);continue}if(et=this.tokenizer.strong(Oe,xt,dt)){Oe=Oe.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],ye,Se),Ae.push(et);continue}if(et=this.tokenizer.em(Oe,xt,dt)){Oe=Oe.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],ye,Se),Ae.push(et);continue}if(et=this.tokenizer.codespan(Oe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.br(Oe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.del(Oe)){Oe=Oe.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],ye,Se),Ae.push(et);continue}if(et=this.tokenizer.autolink(Oe,xe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(!ye&&(et=this.tokenizer.url(Oe,xe))){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.inlineText(Oe,Se,Ce)){Oe=Oe.substring(et.raw.length),dt=et.raw.slice(-1),Ae.push(et);continue}if(Oe){var yt="Infinite loop on byte: "+Oe.charCodeAt(0);if(this.options.silent){console.error(yt);break}else throw new Error(yt)}}return Ae},j(Qe,null,[{key:"rules",get:function(){return{block:fe,inline:Ne}}}]),Qe}(),Le=s.defaults,Fe=V.cleanUrl,Pe=V.escape,Ve=function(){function Qe(Xe){this.options=Xe||Le}var Je=Qe.prototype;return Je.code=function(Oe,Ae,ye){var Se=(Ae||"").match(/\S*/)[0];if(this.options.highlight){var dt=this.options.highlight(Oe,Se);dt!=null&&dt!==Oe&&(ye=!0,Oe=dt)}return Se?'
        '+(ye?Oe:Pe(Oe,!0))+`
        +`+Se.text);continue}if(Oe){var xn="Infinite loop on byte: "+Oe.charCodeAt(0);if(this.options.silent){console.error(xn);break}else throw new Error(xn)}}return Ae},Je.inline=function(Oe){var Ae,ye,Se,dt,et,xt,xn=Oe.length;for(Ae=0;Ae0)for(;(xn=this.tokenizer.rules.inline.reflinkSearch.exec(xt))!=null;)Dt.includes(xn[0].slice(xn[0].lastIndexOf("[")+1,-1))&&(xt=xt.slice(0,xn.index)+"["+"a".repeat(xn[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(xn=this.tokenizer.rules.inline.blockSkip.exec(xt))!=null;)xt=xt.slice(0,xn.index)+"["+"a".repeat(xn[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Oe;){if(et=this.tokenizer.escape(Oe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.tag(Oe,ye,Se)){Oe=Oe.substring(et.raw.length),ye=et.inLink,Se=et.inRawBlock,Ae.push(et);continue}if(et=this.tokenizer.link(Oe)){Oe=Oe.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Se)),Ae.push(et);continue}if(et=this.tokenizer.reflink(Oe,this.tokens.links)){Oe=Oe.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Se)),Ae.push(et);continue}if(et=this.tokenizer.strong(Oe,xt,dt)){Oe=Oe.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],ye,Se),Ae.push(et);continue}if(et=this.tokenizer.em(Oe,xt,dt)){Oe=Oe.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],ye,Se),Ae.push(et);continue}if(et=this.tokenizer.codespan(Oe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.br(Oe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.del(Oe)){Oe=Oe.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],ye,Se),Ae.push(et);continue}if(et=this.tokenizer.autolink(Oe,xe)){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(!ye&&(et=this.tokenizer.url(Oe,xe))){Oe=Oe.substring(et.raw.length),Ae.push(et);continue}if(et=this.tokenizer.inlineText(Oe,Se,Ce)){Oe=Oe.substring(et.raw.length),dt=et.raw.slice(-1),Ae.push(et);continue}if(Oe){var _t="Infinite loop on byte: "+Oe.charCodeAt(0);if(this.options.silent){console.error(_t);break}else throw new Error(_t)}}return Ae},j(Qe,null,[{key:"rules",get:function(){return{block:fe,inline:Ne}}}]),Qe}(),Le=s.defaults,Fe=V.cleanUrl,Pe=V.escape,Ve=function(){function Qe(Xe){this.options=Xe||Le}var Je=Qe.prototype;return Je.code=function(Oe,Ae,ye){var Se=(Ae||"").match(/\S*/)[0];if(this.options.highlight){var dt=this.options.highlight(Oe,Se);dt!=null&&dt!==Oe&&(ye=!0,Oe=dt)}return Se?'
        '+(ye?Oe:Pe(Oe,!0))+`
        `:"
        "+(ye?Oe:Pe(Oe,!0))+`
        `},Je.blockquote=function(Oe){return`
        `+Oe+`
        @@ -277,31 +277,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},Je.tablerow=function(Oe){return` `+Oe+` `},Je.tablecell=function(Oe,Ae){var ye=Ae.header?"th":"td",Se=Ae.align?"<"+ye+' align="'+Ae.align+'">':"<"+ye+">";return Se+Oe+" -`},Je.strong=function(Oe){return""+Oe+""},Je.em=function(Oe){return""+Oe+""},Je.codespan=function(Oe){return""+Oe+""},Je.br=function(){return this.options.xhtml?"
        ":"
        "},Je.del=function(Oe){return""+Oe+""},Je.link=function(Oe,Ae,ye){if(Oe=Fe(this.options.sanitize,this.options.baseUrl,Oe),Oe===null)return ye;var Se='",Se},Je.image=function(Oe,Ae,ye){if(Oe=Fe(this.options.sanitize,this.options.baseUrl,Oe),Oe===null)return ye;var Se=''+ye+'":">",Se},Je.text=function(Oe){return Oe},Qe}(),at=function(){function Qe(){}var Je=Qe.prototype;return Je.strong=function(Oe){return Oe},Je.em=function(Oe){return Oe},Je.codespan=function(Oe){return Oe},Je.del=function(Oe){return Oe},Je.html=function(Oe){return Oe},Je.text=function(Oe){return Oe},Je.link=function(Oe,Ae,ye){return""+ye},Je.image=function(Oe,Ae,ye){return""+ye},Je.br=function(){return""},Qe}(),At=function(){function Qe(){this.seen={}}var Je=Qe.prototype;return Je.slug=function(Oe){var Ae=Oe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ae)){var ye=Ae;do this.seen[ye]++,Ae=ye+"-"+this.seen[ye];while(this.seen.hasOwnProperty(Ae))}return this.seen[Ae]=0,Ae},Qe}(),Rt=s.defaults,tn=V.unescape,Qt=function(){function Qe(Xe){this.options=Xe||Rt,this.options.renderer=this.options.renderer||new Ve,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new at,this.slugger=new At}Qe.parse=function(Oe,Ae){var ye=new Qe(Ae);return ye.parse(Oe)};var Je=Qe.prototype;return Je.parse=function(Oe,Ae){Ae===void 0&&(Ae=!0);var ye="",Se,dt,et,xt,xn,Dt,yt,mn,pe,Gt,Lt,Be,ot,Xt,Pt,$t,Zt,bt,ft=Oe.length;for(Se=0;Se0&&Pt.tokens[0].type==="text"?(Pt.tokens[0].text=bt+" "+Pt.tokens[0].text,Pt.tokens[0].tokens&&Pt.tokens[0].tokens.length>0&&Pt.tokens[0].tokens[0].type==="text"&&(Pt.tokens[0].tokens[0].text=bt+" "+Pt.tokens[0].tokens[0].text)):Pt.tokens.unshift({type:"text",text:bt}):Xt+=bt),Xt+=this.parse(Pt.tokens,ot),pe+=this.renderer.listitem(Xt,Zt,$t);ye+=this.renderer.list(pe,Lt,Be);continue}case"html":{ye+=this.renderer.html(Gt.text);continue}case"paragraph":{ye+=this.renderer.paragraph(this.parseInline(Gt.tokens));continue}case"text":{for(pe=Gt.tokens?this.parseInline(Gt.tokens):Gt.text;Se+1"+Oe+""},Je.em=function(Oe){return""+Oe+""},Je.codespan=function(Oe){return""+Oe+""},Je.br=function(){return this.options.xhtml?"
        ":"
        "},Je.del=function(Oe){return""+Oe+""},Je.link=function(Oe,Ae,ye){if(Oe=Fe(this.options.sanitize,this.options.baseUrl,Oe),Oe===null)return ye;var Se='
        ",Se},Je.image=function(Oe,Ae,ye){if(Oe=Fe(this.options.sanitize,this.options.baseUrl,Oe),Oe===null)return ye;var Se=''+ye+'":">",Se},Je.text=function(Oe){return Oe},Qe}(),at=function(){function Qe(){}var Je=Qe.prototype;return Je.strong=function(Oe){return Oe},Je.em=function(Oe){return Oe},Je.codespan=function(Oe){return Oe},Je.del=function(Oe){return Oe},Je.html=function(Oe){return Oe},Je.text=function(Oe){return Oe},Je.link=function(Oe,Ae,ye){return""+ye},Je.image=function(Oe,Ae,ye){return""+ye},Je.br=function(){return""},Qe}(),At=function(){function Qe(){this.seen={}}var Je=Qe.prototype;return Je.slug=function(Oe){var Ae=Oe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ae)){var ye=Ae;do this.seen[ye]++,Ae=ye+"-"+this.seen[ye];while(this.seen.hasOwnProperty(Ae))}return this.seen[Ae]=0,Ae},Qe}(),Rt=s.defaults,tn=V.unescape,Qt=function(){function Qe(Xe){this.options=Xe||Rt,this.options.renderer=this.options.renderer||new Ve,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new at,this.slugger=new At}Qe.parse=function(Oe,Ae){var ye=new Qe(Ae);return ye.parse(Oe)};var Je=Qe.prototype;return Je.parse=function(Oe,Ae){Ae===void 0&&(Ae=!0);var ye="",Se,dt,et,xt,xn,Dt,_t,mn,pe,Gt,Lt,Be,ot,Xt,Pt,$t,Zt,bt,ft=Oe.length;for(Se=0;Se0&&Pt.tokens[0].type==="text"?(Pt.tokens[0].text=bt+" "+Pt.tokens[0].text,Pt.tokens[0].tokens&&Pt.tokens[0].tokens.length>0&&Pt.tokens[0].tokens[0].type==="text"&&(Pt.tokens[0].tokens[0].text=bt+" "+Pt.tokens[0].tokens[0].text)):Pt.tokens.unshift({type:"text",text:bt}):Xt+=bt),Xt+=this.parse(Pt.tokens,ot),pe+=this.renderer.listitem(Xt,Zt,$t);ye+=this.renderer.list(pe,Lt,Be);continue}case"html":{ye+=this.renderer.html(Gt.text);continue}case"paragraph":{ye+=this.renderer.paragraph(this.parseInline(Gt.tokens));continue}case"text":{for(pe=Gt.tokens?this.parseInline(Gt.tokens):Gt.text;Se+1An error occurred:

        "+mt(et.message+"",!0)+"
        ";throw et}}Tt.options=Tt.setOptions=function(Qe){return Cn(Tt.defaults,Qe),Ht(Tt.defaults),Tt},Tt.getDefaults=lt,Tt.defaults=sn,Tt.use=function(Qe){var Je=Cn({},Qe);if(Qe.renderer&&function(){var Oe=Tt.defaults.renderer||new Ve,Ae=function(dt){var et=Oe[dt];Oe[dt]=function(){for(var xt=arguments.length,xn=new Array(xt),Dt=0;DtAn error occurred:

        "+mt(et.message+"",!0)+"
        ";throw et}}Tt.options=Tt.setOptions=function(Qe){return Cn(Tt.defaults,Qe),Ht(Tt.defaults),Tt},Tt.getDefaults=lt,Tt.defaults=sn,Tt.use=function(Qe){var Je=Cn({},Qe);if(Qe.renderer&&function(){var Oe=Tt.defaults.renderer||new Ve,Ae=function(dt){var et=Oe[dt];Oe[dt]=function(){for(var xt=arguments.length,xn=new Array(xt),Dt=0;Dt`,triples:"",explode:"[]{}"},L=Y.Pos;Y.defineOption("autoCloseBrackets",!1,function(m,O,i){i&&i!=Y.Init&&(m.removeKeyMap(S),m.state.closeBrackets=null),O&&(g(U(O,"pairs")),m.state.closeBrackets=O,m.addKeyMap(S))});function U(m,O){return O=="pairs"&&typeof m=="string"?m:typeof m=="object"&&m[O]!=null?m[O]:j[O]}var S={Backspace:w,Enter:p};function g(m){for(var O=0;O=0;u--){var y=r[u].head;m.replaceRange("",L(y.line,y.ch-1),L(y.line,y.ch+1),"+delete")}}function p(m){var O=d(m),i=O&&U(O,"explode");if(!i||m.getOption("disableInput"))return Y.Pass;for(var r=m.listSelections(),u=0;u0;return{anchor:new L(m.anchor.line,m.anchor.ch+(O?-1:1)),head:new L(m.head.line,m.head.ch+(O?1:-1))}}function f(m,O){var i=d(m);if(!i||m.getOption("disableInput"))return Y.Pass;var r=U(i,"pairs"),u=r.indexOf(O);if(u==-1)return Y.Pass;for(var h=U(i,"closeBefore"),y=U(i,"triples"),E=r.charAt(u+1)==O,t=m.listSelections(),C=u%2==0,A,v=0;v=0&&m.getRange(l,L(l.line,l.ch+3))==O+O+O?c="skipThree":c="skip";else if(E&&l.ch>1&&y.indexOf(O)>=0&&m.getRange(L(l.line,l.ch-2),l)==O+O){if(l.ch>2&&/\bstring/.test(m.getTokenTypeAt(L(l.line,l.ch-2))))return Y.Pass;c="addFour"}else if(E){var P=l.ch==0?" ":m.getRange(L(l.line,l.ch-1),l);if(!Y.isWordChar(M)&&P!=O&&!Y.isWordChar(P))c="both";else return Y.Pass}else if(C&&(M.length===0||/\s/.test(M)||h.indexOf(M)>-1))c="both";else return Y.Pass;if(!A)A=c;else if(A!=c)return Y.Pass}var R=u%2?r.charAt(u-1):O,k=u%2?O:r.charAt(u+1);m.operation(function(){if(A=="skip")m.execCommand("goCharRight");else if(A=="skipThree")for(var I=0;I<3;I++)m.execCommand("goCharRight");else if(A=="surround"){for(var F=m.getSelections(),I=0;I0)){dt.next=4;break}return b.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),dt.abrupt("return");case 4:return lt(!0),Xe={check_ids:X.actionTabs.selectArrs,group_ids:Ve},tn||(Xe.end_time=o()(Je.end_time).format("YYYY-MM-DD HH:mm")),Xe.group_ids=Ve.map(function(et){return et.course_group_id}),dt.next=10,Object(l.a)("/api/courses/".concat(ee.coursesId,"/exercises/end_exercise.json"),{method:"post",body:Xe});case 10:Oe=dt.sent,Oe.status===0&&(b.b.success("\u64CD\u4F5C\u6210\u529F"),Object(c.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),te({type:"exercise/setActionTabs",payload:{}}),X!=null&&(Ae=X.actionTabs)!==null&&Ae!==void 0&&Ae.cb?X==null||((ye=X.actionTabs)===null||ye===void 0)||ye.cb():te({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},X.actionTabs.params)})),lt(!1);case 13:case"end":return dt.stop()}},Qe)}));return function(){return wt.apply(this,arguments)}}(),Tt=function(){he(1),Ne([]),at([]),Qt(!0)};return A.a.createElement(j.a,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",visible:X.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:sn,width:680,confirmLoading:mt||ze,onCancel:function(){Tt(),te({type:"exercise/setActionTabs",payload:{}})}},A.a.createElement(U.a,{spinning:ze},fe&&A.a.createElement(h.a,{form:je},A.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},A.a.createElement("img",{style:{marginRight:5},src:k.a}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),A.a.createElement(d.a,{className:"mt20 mb10"},A.a.createElement("span",{className:"mr10"},A.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),A.a.createElement(f.a.Group,{value:tn,onChange:function(Qe){Qt(Qe.target.value),at([])}},A.a.createElement(f.a,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),A.a.createElement(f.a,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),A.a.createElement(h.a.Item,{name:"end_time",style:{marginTop:-3,visibility:tn?"hidden":"visible"}},A.a.createElement(p.a,{style:{width:170},getPopupContainer:function(Qe){return Qe.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(c.d)(),"HH:mm")},disabledDate:function(Qe){return Qe&&Qe0&&A.a.createElement(d.a,{style:{marginBottom:"10px"}},A.a.createElement("span",{className:"mr10"},A.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),A.a.createElement("div",null,fe.length>0&&A.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},A.a.createElement("span",{style:{flex:1}},A.a.createElement(g.a,{checked:Ve.length===fe.length,onChange:function(Qe){Ve.length===fe.length?at([]):at(fe)}},"\u5168\u9009")," "),A.a.createElement("span",{style:{width:16}}),A.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ve.length||0,"\u4E2A\u5206\u73ED")),A.a.createElement(I.a,{data:fe,selectedRowKeys:Ve,setSelectedRowKeys:at}))))))};ie.a=Object(P.a)(function(G){var J=G.exercise;return{exercise:J}})(W)},GABl:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GUcZ:function(Ye,ie,_){"use strict";var Y=_("fWQN"),j=_("mtLc"),L=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Q,$){return Q.__proto__=$,Q},Object.assign=Object.assign||function(Q){if(Q==null)throw new TypeError("Cannot convert undefined or null to object");for(var $=Object(Q),re=1;re ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","error",re),!Te.ENABLE_ERROR)return;console.error?console.error(re):console.warn?console.warn(re):console.log(re)}},{key:"i",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","info",re),!Te.ENABLE_INFO)return;console.info?console.info(re):console.log(re)}},{key:"w",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","warn",re),!Te.ENABLE_WARN)return;console.warn?console.warn(re):console.log(re)}},{key:"d",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","debug",re),!Te.ENABLE_DEBUG)return;console.debug?console.debug(re):console.log(re)}},{key:"v",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","verbose",re),!Te.ENABLE_VERBOSE)return;console.log(re)}}]),Te}();s.GLOBAL_TAG="flv.js",s.FORCE_GLOBAL_TAG=!1,s.ENABLE_ERROR=!0,s.ENABLE_INFO=!0,s.ENABLE_WARN=!0,s.ENABLE_DEBUG=!0,s.ENABLE_VERBOSE=!0,s.ENABLE_CALLBACK=!1,s.emitter=new g.a;var d=s,w=function(){function Te(){Object(Y.a)(this,Te),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(j.a)(Te,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Q){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Q,this._totalBytes+=Q):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Q,this._totalBytes+=Q):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Q,this._totalBytes+=Q,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Q=(this._now()-this._lastCheckpoint)/1e3;return Q==0&&(Q=1),this._intervalBytes/Q/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var Q=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Q/1024}}]),Te}(),p=w,a=_("yKVA"),f=_("879j"),x=function(){function Te(ve){Object(Y.a)(this,Te),this._message=ve}return Object(j.a)(Te,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Te}(),b=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($){return Object(Y.a)(this,Q),ve.call(this,$)}return Object(j.a)(Q,[{key:"name",get:function(){return"IllegalStateException"}}]),Q}(x),m=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($){return Object(Y.a)(this,Q),ve.call(this,$)}return Object(j.a)(Q,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Q}(x),O=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($){return Object(Y.a)(this,Q),ve.call(this,$)}return Object(j.a)(Q,[{key:"name",get:function(){return"NotImplementedException"}}]),Q}(x),i={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},r={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},u=function(){function Te(ve){Object(Y.a)(this,Te),this._type=ve||"undefined",this._status=i.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(j.a)(Te,[{key:"destroy",value:function(){this._status=i.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===i.kConnecting||this._status===i.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(Q){this._onContentLengthKnown=Q}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Q){this._onURLRedirect=Q}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Q){this._onDataArrival=Q}},{key:"onError",get:function(){return this._onError},set:function(Q){this._onError=Q}},{key:"onComplete",get:function(){return this._onComplete},set:function(Q){this._onComplete=Q}},{key:"open",value:function(Q,$){throw new O("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new O("Unimplemented abstract function!")}}]),Te}(),h=_("oZsa");function y(Te,ve){for(;!Object.prototype.hasOwnProperty.call(Te,ve)&&!(Te=Object(h.a)(Te),Te===null););return Te}function E(Te,ve,Q){return typeof Reflect!="undefined"&&Reflect.get?E=Reflect.get:E=function(re,de,Ue){var it=y(re,de);if(!it)return;var Mt=Object.getOwnPropertyDescriptor(it,de);return Mt.get?Mt.get.call(Ue):Mt.value},E(Te,ve,Q||Te)}var t={};function C(){var Te=self.navigator.userAgent.toLowerCase(),ve=/(edge)\/([\w.]+)/.exec(Te)||/(opr)[\/]([\w.]+)/.exec(Te)||/(chrome)[ \/]([\w.]+)/.exec(Te)||/(iemobile)[\/]([\w.]+)/.exec(Te)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Te)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Te)||/(webkit)[ \/]([\w.]+)/.exec(Te)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Te)||/(msie) ([\w.]+)/.exec(Te)||Te.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Te)||Te.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Te)||[],Q=/(ipad)/.exec(Te)||/(ipod)/.exec(Te)||/(windows phone)/.exec(Te)||/(iphone)/.exec(Te)||/(kindle)/.exec(Te)||/(android)/.exec(Te)||/(windows)/.exec(Te)||/(mac)/.exec(Te)||/(linux)/.exec(Te)||/(cros)/.exec(Te)||[],$={browser:ve[5]||ve[3]||ve[1]||"",version:ve[2]||ve[4]||"0",majorVersion:ve[4]||ve[2]||"0",platform:Q[0]||""},re={};if($.browser){re[$.browser]=!0;var de=$.majorVersion.split(".");re.version={major:parseInt($.majorVersion,10),string:$.version},de.length>1&&(re.version.minor=parseInt(de[1],10)),de.length>2&&(re.version.build=parseInt(de[2],10))}if($.platform&&(re[$.platform]=!0),(re.chrome||re.opr||re.safari)&&(re.webkit=!0),re.rv||re.iemobile){re.rv&&delete re.rv;var Ue="msie";$.browser=Ue,re[Ue]=!0}if(re.edge){delete re.edge;var it="msedge";$.browser=it,re[it]=!0}if(re.opr){var Mt="opera";$.browser=Mt,re[Mt]=!0}if(re.safari&&re.android){var Ln="android";$.browser=Ln,re[Ln]=!0}re.name=$.browser,re.platform=$.platform;for(var kn in t)t.hasOwnProperty(kn)&&delete t[kn];Object.assign(t,re)}C();var A=t,v=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($,re){var de;return Object(Y.a)(this,Q),de=ve.call(this,"fetch-stream-loader"),de.TAG="FetchStreamLoader",de._seekHandler=$,de._config=re,de._needStash=!0,de._requestAbort=!1,de._contentLength=null,de._receivedLength=0,de}return Object(j.a)(Q,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),E(Object(h.a)(Q.prototype),"destroy",this).call(this)}},{key:"open",value:function(re,de){var Ue=this;this._dataSource=re,this._range=de;var it=re.url;this._config.reuseRedirectedURL&&re.redirectedURL!=null&&(it=re.redirectedURL);var Mt=this._seekHandler.getConfig(it,de),Ln=new self.Headers;if(typeof Mt.headers=="object"){var kn=Mt.headers;for(var St in kn)kn.hasOwnProperty(St)&&Ln.append(St,kn[St])}var an={method:"GET",headers:Ln,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Pn in this._config.headers)Ln.append(Pn,this._config.headers[Pn]);re.cors===!1&&(an.mode="same-origin"),re.withCredentials&&(an.credentials="include"),re.referrerPolicy&&(an.referrerPolicy=re.referrerPolicy),this._status=i.kConnecting,self.fetch(Mt.url,an).then(function(dn){if(Ue._requestAbort){Ue._requestAbort=!1,Ue._status=i.kIdle;return}if(dn.ok&&dn.status>=200&&dn.status<=299){if(dn.url!==Mt.url&&Ue._onURLRedirect){var jn=Ue._seekHandler.removeURLParameters(dn.url);Ue._onURLRedirect(jn)}var Bn=dn.headers.get("Content-Length");return Bn!=null&&(Ue._contentLength=parseInt(Bn),Ue._contentLength!==0&&(Ue._onContentLengthKnown&&Ue._onContentLengthKnown(Ue._contentLength))),Ue._pump.call(Ue,dn.body.getReader())}else if(Ue._status=i.kError,Ue._onError)Ue._onError(r.HTTP_STATUS_CODE_INVALID,{code:dn.status,msg:dn.statusText});else throw new x("FetchStreamLoader: Http code invalid, "+dn.status+" "+dn.statusText)}).catch(function(dn){if(Ue._status=i.kError,Ue._onError)Ue._onError(r.EXCEPTION,{code:-1,msg:dn.message});else throw dn})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(re){var de=this;return re.read().then(function(Ue){if(Ue.done)if(de._contentLength!==null&&de._receivedLength=15048,de=A.msedge?re:!0;return self.fetch&&self.ReadableStream&&de}catch(Ue){return!1}}}]),Q}(u),o=v,l=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($,re){var de;return Object(Y.a)(this,Q),de=ve.call(this,"xhr-moz-chunked-loader"),de.TAG="MozChunkedLoader",de._seekHandler=$,de._config=re,de._needStash=!0,de._xhr=null,de._requestAbort=!1,de._contentLength=null,de._receivedLength=0,de}return Object(j.a)(Q,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),E(Object(h.a)(Q.prototype),"destroy",this).call(this)}},{key:"open",value:function(re,de){this._dataSource=re,this._range=de;var Ue=re.url;this._config.reuseRedirectedURL&&re.redirectedURL!=null&&(Ue=re.redirectedURL);var it=this._seekHandler.getConfig(Ue,de);this._requestURL=it.url;var Mt=this._xhr=new XMLHttpRequest;if(Mt.open("GET",it.url,!0),Mt.responseType="moz-chunked-arraybuffer",Mt.onreadystatechange=this._onReadyStateChange.bind(this),Mt.onprogress=this._onProgress.bind(this),Mt.onloadend=this._onLoadEnd.bind(this),Mt.onerror=this._onXhrError.bind(this),re.withCredentials&&(Mt.withCredentials=!0),typeof it.headers=="object"){var Ln=it.headers;for(var kn in Ln)Ln.hasOwnProperty(kn)&&Mt.setRequestHeader(kn,Ln[kn])}if(typeof this._config.headers=="object"){var St=this._config.headers;for(var an in St)St.hasOwnProperty(an)&&Mt.setRequestHeader(an,St[an])}this._status=i.kConnecting,Mt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=i.kComplete}},{key:"_onReadyStateChange",value:function(re){var de=re.target;if(de.readyState===2){if(de.responseURL!=null&&de.responseURL!==this._requestURL&&this._onURLRedirect){var Ue=this._seekHandler.removeURLParameters(de.responseURL);this._onURLRedirect(Ue)}if(de.status!==0&&(de.status<200||de.status>299))if(this._status=i.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:de.status,msg:de.statusText});else throw new x("MozChunkedLoader: Http code invalid, "+de.status+" "+de.statusText);else this._status=i.kBuffering}}},{key:"_onProgress",value:function(re){if(this._status===i.kError)return;this._contentLength===null&&(re.total!==null&&re.total!==0&&(this._contentLength=re.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var de=re.target.response,Ue=this._range.from+this._receivedLength;this._receivedLength+=de.byteLength,this._onDataArrival&&this._onDataArrival(de,Ue,this._receivedLength)}},{key:"_onLoadEnd",value:function(re){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===i.kError)return;this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(re){this._status=i.kError;var de=0,Ue=null;if(this._contentLength&&re.loaded=200&&de.status<=299){if(this._status=i.kBuffering,de.responseURL!=null){var Ue=this._seekHandler.removeURLParameters(de.responseURL);de.responseURL!==this._currentRequestURL&&Ue!==this._currentRedirectedURL&&(this._currentRedirectedURL=Ue,this._onURLRedirect&&this._onURLRedirect(Ue))}var it=de.getResponseHeader("Content-Length");if(it!=null&&this._contentLength==null){var Mt=parseInt(it);Mt>0&&(this._contentLength=Mt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=i.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:de.status,msg:de.statusText});else throw new x("MSStreamLoader: Http code invalid, "+de.status+" "+de.statusText);else if(de.readyState===3&&(de.status>=200&&de.status<=299)){this._status=i.kBuffering;var Ln=de.response;this._reader.readAsArrayBuffer(Ln)}}},{key:"_xhrOnError",value:function(re){this._status=i.kError;var de=r.EXCEPTION,Ue={code:-1,msg:re.constructor.name+" "+re.type};if(this._onError)this._onError(de,Ue);else throw new x(Ue.msg)}},{key:"_msrOnProgress",value:function(re){var de=re.target,Ue=de.result;if(Ue==null){this._doReconnectIfNeeded();return}var it=Ue.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Ue.byteLength;var Mt=this._totalRange.from+this._receivedLength;this._receivedLength+=it.byteLength,this._onDataArrival&&this._onDataArrival(it,Mt,this._receivedLength),Ue.byteLength>=this._bufferLimit&&(d.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Mt+it.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Ue=this._range.from+this._contentLength-1)),this._currentRequestRange={from:de,to:Ue},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(re,de){this._lastTimeLoaded=0;var Ue=re.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Ue=this._currentRedirectedURL:re.redirectedURL!=null&&(Ue=re.redirectedURL));var it=this._seekHandler.getConfig(Ue,de);this._currentRequestURL=it.url;var Mt=this._xhr=new XMLHttpRequest;if(Mt.open("GET",it.url,!0),Mt.responseType="arraybuffer",Mt.onreadystatechange=this._onReadyStateChange.bind(this),Mt.onprogress=this._onProgress.bind(this),Mt.onload=this._onLoad.bind(this),Mt.onerror=this._onXhrError.bind(this),re.withCredentials&&(Mt.withCredentials=!0),typeof it.headers=="object"){var Ln=it.headers;for(var kn in Ln)Ln.hasOwnProperty(kn)&&Mt.setRequestHeader(kn,Ln[kn])}if(typeof this._config.headers=="object"){var St=this._config.headers;for(var an in St)St.hasOwnProperty(an)&&Mt.setRequestHeader(an,St[an])}Mt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=i.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(re){var de=re.target;if(de.readyState===2){if(de.responseURL!=null){var Ue=this._seekHandler.removeURLParameters(de.responseURL);de.responseURL!==this._currentRequestURL&&Ue!==this._currentRedirectedURL&&(this._currentRedirectedURL=Ue,this._onURLRedirect&&this._onURLRedirect(Ue))}if(de.status>=200&&de.status<=299){if(this._waitForTotalLength)return;this._status=i.kBuffering}else if(this._status=i.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:de.status,msg:de.statusText});else throw new x("RangeLoader: Http code invalid, "+de.status+" "+de.statusText)}}},{key:"_onProgress",value:function(re){if(this._status===i.kError)return;if(this._contentLength===null){var de=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,de=!0;var Ue=re.total;this._internalAbort(),Ue!=null&Ue!==0&&(this._totalLength=Ue)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,de){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var it=re.loaded-this._lastTimeLoaded;this._lastTimeLoaded=re.loaded,this._speedSampler.addBytes(it)}},{key:"_normalizeSpeed",value:function(re){var de=this._chunkSizeKBList,Ue=de.length-1,it=0,Mt=0,Ln=Ue;if(re=de[it]&&re=3&&(de=this._speedSampler.currentKBps)),de!==0){var Ue=this._normalizeSpeed(de);this._currentSpeedNormalized!==Ue&&(this._currentSpeedNormalized=Ue,this._currentChunkSizeKB=Ue)}var it=re.target.response,Mt=this._range.from+this._receivedLength;this._receivedLength+=it.byteLength;var Ln=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var it=re.split("&"),Mt=0;Mt0;Ln[0]!==this._startName&&Ln[0]!==this._endName&&(kn&&(Ue+="&"),Ue+=it[Mt])}return Ue.length===0?$:$+"?"+Ue}}]),Te}(),J=G,X=function(){function Te(ve,Q,$){Object(Y.a)(this,Te),this.TAG="IOController",this._config=Q,this._extraData=$,this._stashInitialSize=1024*384,Q.stashInitialSize!=null&&Q.stashInitialSize>0&&(this._stashInitialSize=Q.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,Q.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ve,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ve.url),this._refTotalLength=ve.filesize?ve.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new p,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(j.a)(Te,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(Q){this._extraData=Q}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Q){this._onDataArrival=Q}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Q){this._onSeeked=Q}},{key:"onError",get:function(){return this._onError},set:function(Q){this._onError=Q}},{key:"onComplete",get:function(){return this._onComplete},set:function(Q){this._onComplete=Q}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Q){this._onRedirect=Q}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Q){this._onRecoveredEarlyEof=Q}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===k?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Q=this._config;if(Q.seekType==="range")this._seekHandler=new W(this._config.rangeLoadZeroStart);else if(Q.seekType==="param"){var $=Q.seekParamStart||"bstart",re=Q.seekParamEnd||"bend";this._seekHandler=new J($,re)}else if(Q.seekType==="custom"){if(typeof Q.customSeekHandler!="function")throw new m("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Q.customSeekHandler}else throw new m("Invalid seekType in config: ".concat(Q.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=F;else if(o.isSupported())this._loaderClass=o;else if(c.isSupported())this._loaderClass=c;else if(k.isSupported())this._loaderClass=k;else throw new x("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(Q){this._currentRange={from:0,to:-1},Q&&(this._currentRange.from=Q),this._speedSampler.reset(),Q||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var Q=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Q,!0)}}},{key:"seek",value:function(Q){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Q,!0)}},{key:"_internalSeek",value:function(Q,$){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer($),this._loader.destroy(),this._loader=null;var re={from:Q,to:-1};this._currentRange={from:re.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,re),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Q){if(!Q||typeof Q!="string"||Q.length===0)throw new m("Url must be a non-empty string!");this._dataSource.url=Q}},{key:"_expandBuffer",value:function(Q){for(var $=this._stashSize;$+1024*1024*10){var de=new Uint8Array(this._stashBuffer,0,this._stashUsed),Ue=new Uint8Array(re,0,$);Ue.set(de,0)}this._stashBuffer=re,this._bufferSize=$}},{key:"_normalizeSpeed",value:function(Q){var $=this._speedNormalizeList,re=$.length-1,de=0,Ue=0,it=re;if(Q<$[0])return $[0];for(;Ue<=it;){if(de=Ue+Math.floor((it-Ue)/2),de===re||Q>=$[de]&&Q<$[de+1])return $[de];$[de]=512&&Q<=1024?$=Math.floor(Q*1.5):$=Q*2,$>8192&&($=8192);var re=$*1024+1024*1024*1;this._bufferSize0){var jn=this._stashBuffer.slice(0,this._stashUsed),Bn=this._dispatchChunks(jn,this._stashByteStart);if(Bn0){var ne=new Uint8Array(jn,Bn);dn.set(ne,0),this._stashUsed=ne.byteLength,this._stashByteStart+=Bn}}else this._stashUsed=0,this._stashByteStart+=Bn;this._stashUsed+Q.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Q.byteLength),dn=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dn.set(new Uint8Array(Q),this._stashUsed),this._stashUsed+=Q.byteLength}else{var B=this._dispatchChunks(Q,$);if(Bthis._bufferSize&&(this._expandBuffer(H),dn=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dn.set(new Uint8Array(Q,B),0),this._stashUsed+=H,this._stashByteStart=$+B}}}else if(this._stashUsed===0){var it=this._dispatchChunks(Q,$);if(itthis._bufferSize&&this._expandBuffer(Mt);var Ln=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ln.set(new Uint8Array(Q,it),0),this._stashUsed+=Mt,this._stashByteStart=$+it}}else{this._stashUsed+Q.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Q.byteLength);var kn=new Uint8Array(this._stashBuffer,0,this._bufferSize);kn.set(new Uint8Array(Q),this._stashUsed),this._stashUsed+=Q.byteLength;var St=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(St0){var an=new Uint8Array(this._stashBuffer,St);kn.set(an,0)}this._stashUsed-=St,this._stashByteStart+=St}}},{key:"_flushStashBuffer",value:function(Q){if(this._stashUsed>0){var $=this._stashBuffer.slice(0,this._stashUsed),re=this._dispatchChunks($,this._stashByteStart),de=$.byteLength-re;if(re<$.byteLength)if(Q)d.w(this.TAG,"".concat(de," bytes unconsumed data remain when flush buffer, dropped"));else{if(re>0){var Ue=new Uint8Array(this._stashBuffer,0,this._bufferSize),it=new Uint8Array($,re);Ue.set(it,0),this._stashUsed=it.byteLength,this._stashByteStart+=re}return 0}return this._stashUsed=0,this._stashByteStart=0,de}return 0}},{key:"_onLoaderComplete",value:function(Q,$){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Q,$){d.e(this.TAG,"Loader error, code = ".concat($.code,", msg = ").concat($.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Q=r.UNRECOVERABLE_EARLY_EOF);switch(Q){case r.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var re=this._currentRange.to+1;re0){var $=Te.getConfig();Q.emit("change",$)}}},{key:"registerListener",value:function(Q){Te.emitter.addListener("change",Q)}},{key:"removeListener",value:function(Q){Te.emitter.removeListener("change",Q)}},{key:"addLogListener",value:function(Q){d.emitter.addListener("log",Q),d.emitter.listenerCount("log")>0&&(d.ENABLE_CALLBACK=!0,Te._notifyChange())}},{key:"removeLogListener",value:function(Q){d.emitter.removeListener("log",Q),d.emitter.listenerCount("log")===0&&(d.ENABLE_CALLBACK=!1,Te._notifyChange())}}]),Te}();Ge.emitter=new g.a;var he=Ge,ce=function(){function Te(){Object(Y.a)(this,Te),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(j.a)(Te,[{key:"isComplete",value:function(){var Q=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,$=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&Q&&$}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Q){if(this.keyframesIndex==null)return null;var $=this.keyframesIndex,re=this._search($.times,Q);return{index:re,milliseconds:$.times[re],fileposition:$.filepositions[re]}}},{key:"_search",value:function(Q,$){var re=0,de=Q.length-1,Ue=0,it=0,Mt=de;for($=Q[Ue]&&$=128){ve.push(String.fromCharCode(de&65535)),$+=2;continue}}}else if(Q[$]<240){if(fe(Q,$,2)){var Ue=(Q[$]&15)<<12|(Q[$+1]&63)<<6|Q[$+2]&63;if(Ue>=2048&&(Ue&63488)!==55296){ve.push(String.fromCharCode(Ue&65535)),$+=3;continue}}}else if(Q[$]<248&&fe(Q,$,3)){var it=(Q[$]&7)<<18|(Q[$+1]&63)<<12|(Q[$+2]&63)<<6|Q[$+3]&63;if(it>65536&&it<1114112){it-=65536,ve.push(String.fromCharCode(it>>>10|55296)),ve.push(String.fromCharCode(it&1023|56320)),$+=4;continue}}}ve.push(String.fromCharCode(65533)),++$}return ve.join("")}var Ce=Ne,xe=function(){var Te=new ArrayBuffer(2);return new DataView(Te).setInt16(0,256,!0),new Int16Array(Te)[0]===256}(),ze=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"parseScriptData",value:function(Q,$,re){var de={};try{var Ue=Te.parseValue(Q,$,re),it=Te.parseValue(Q,$+Ue.size,re-Ue.size);de[Ue.data]=it.data}catch(Mt){d.e("AMF",Mt.toString())}return de}},{key:"parseObject",value:function(Q,$,re){if(re<3)throw new b("Data not enough when parse ScriptDataObject");var de=Te.parseString(Q,$,re),Ue=Te.parseValue(Q,$+de.size,re-de.size),it=Ue.objectEnd;return{data:{name:de.data,value:Ue.data},size:de.size+Ue.size,objectEnd:it}}},{key:"parseVariable",value:function(Q,$,re){return Te.parseObject(Q,$,re)}},{key:"parseString",value:function(Q,$,re){if(re<2)throw new b("Data not enough when parse String");var de=new DataView(Q,$,re),Ue=de.getUint16(0,!xe),it;return Ue>0?it=Ce(new Uint8Array(Q,$+2,Ue)):it="",{data:it,size:2+Ue}}},{key:"parseLongString",value:function(Q,$,re){if(re<4)throw new b("Data not enough when parse LongString");var de=new DataView(Q,$,re),Ue=de.getUint32(0,!xe),it;return Ue>0?it=Ce(new Uint8Array(Q,$+4,Ue)):it="",{data:it,size:4+Ue}}},{key:"parseDate",value:function(Q,$,re){if(re<10)throw new b("Data size invalid when parse Date");var de=new DataView(Q,$,re),Ue=de.getFloat64(0,!xe),it=de.getInt16(8,!xe);return Ue+=it*60*1e3,{data:new Date(Ue),size:8+2}}},{key:"parseValue",value:function(Q,$,re){if(re<1)throw new b("Data not enough when parse Value");var de=new DataView(Q,$,re),Ue=1,it=de.getUint8(0),Mt,Ln=!1;try{switch(it){case 0:Mt=de.getFloat64(1,!xe),Ue+=8;break;case 1:{var kn=de.getUint8(1);Mt=!!kn,Ue+=1;break}case 2:{var St=Te.parseString(Q,$+1,re-1);Mt=St.data,Ue+=St.size;break}case 3:{Mt={};var an=0;for((de.getUint32(re-4,!xe)&16777215)===9&&(an=3);Ue32)throw new m("ExpGolomb: readBits() bits exceeded max 32bits!");if(Q<=this._current_word_bits_left){var $=this._current_word>>>32-Q;return this._current_word<<=Q,this._current_word_bits_left-=Q,$}var re=this._current_word_bits_left?this._current_word:0;re=re>>>32-this._current_word_bits_left;var de=Q-this._current_word_bits_left;this._fillCurrentWord();var Ue=Math.min(de,this._current_word_bits_left),it=this._current_word>>>32-Ue;return this._current_word<<=Ue,this._current_word_bits_left-=Ue,re=re<>>Q)!==0)return this._current_word<<=Q,this._current_word_bits_left-=Q,Q;return this._fillCurrentWord(),Q+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Q=this._skipLeadingZero();return this.readBits(Q+1)-1}},{key:"readSEG",value:function(){var Q=this.readUEG();return Q&1?Q+1>>>1:-1*(Q>>>1)}}]),Te}(),Pe=Fe,Ve=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"_ebsp2rbsp",value:function(Q){for(var $=Q,re=$.byteLength,de=new Uint8Array(re),Ue=0,it=0;it=2&&($[it]===3&&$[it-1]===0&&$[it-2]===0))continue;de[Ue]=$[it],Ue++}return new Uint8Array(de.buffer,0,Ue)}},{key:"parseSPS",value:function(Q){var $=Te._ebsp2rbsp(Q),re=new Pe($);re.readByte();var de=re.readByte();re.readByte();var Ue=re.readByte();re.readUEG();var it=Te.getProfileString(de),Mt=Te.getLevelString(Ue),Ln=1,kn=420,St=[0,420,422,444],an=8;if((de===100||de===110||de===122||de===244||de===44||de===83||de===86||de===118||de===128||de===138||de===144)&&(Ln=re.readUEG(),Ln===3&&re.readBits(1),Ln<=3&&(kn=St[Ln]),an=re.readUEG()+8,re.readUEG(),re.readBits(1),re.readBool()))for(var Pn=Ln!==3?8:12,dn=0;dn0&&jr<16?(Vt=ua[jr-1],Et=Yr[jr-1]):jr===255&&(Vt=re.readByte()<<8|re.readByte(),Et=re.readByte()<<8|re.readByte())}if(re.readBool()&&re.readBool(),re.readBool()&&(re.readBits(4),re.readBool()&&re.readBits(24)),re.readBool()&&(re.readUEG(),re.readUEG()),re.readBool()){var Tr=re.readBits(32),Jn=re.readBits(32);Fn=re.readBool(),Vn=Jn,Kn=Tr*2,Jt=Vn/Kn}}var fr=1;(Vt!==1||Et!==1)&&(fr=Vt/Et);var Sn=0,On=0;if(Ln===0)Sn=1,On=2-ue;else{var or=Ln===3?1:2,Dn=Ln===1?2:1;Sn=or,On=Dn*(2-ue)}var pr=(H+1)*16,Gn=(2-ue)*((ae+1)*16);pr-=(oe+ht)*Sn,Gn-=(vn+Tn)*On;var se=Math.ceil(pr*fr);return re.destroy(),re=null,{profile_string:it,level_string:Mt,bit_depth:an,ref_frames:B,chroma_format:kn,chroma_format_string:Te.getChromaFormatString(kn),frame_rate:{fixed:Fn,fps:Jt,fps_den:Kn,fps_num:Vn},sar_ratio:{width:Vt,height:Et},codec_size:{width:pr,height:Gn},present_size:{width:se,height:Gn}}}},{key:"_skipScalingList",value:function(Q,$){for(var re=8,de=8,Ue=0,it=0;it<$;it++)de!==0&&(Ue=Q.readSEG(),de=(re+Ue+256)%256),re=de===0?re:de}},{key:"getProfileString",value:function(Q){switch(Q){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(Q){return(Q/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Q){switch(Q){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Te}(),at=Ve,At={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Rt=At;function tn(Te){return Te>>>8&255|(Te&255)<<8}function Qt(Te){return(Te&4278190080)>>>24|(Te&16711680)>>>8|(Te&65280)<<8|(Te&255)<<24}function Cn(Te,ve){return Te[ve]<<24|Te[ve+1]<<16|Te[ve+2]<<8|Te[ve+3]}var Un=function(){function Te(ve,Q){Object(Y.a)(this,Te),this.TAG="FLVDemuxer",this._config=Q,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ve.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ve.hasAudioTrack,this._hasVideo=ve.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ee,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var $=new ArrayBuffer(2);return new DataView($).setInt16(0,256,!0),new Int16Array($)[0]===256}()}return Object(j.a)(Te,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(Q){return Q.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Q){this._onTrackMetadata=Q}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Q){this._onMediaInfo=Q}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Q){this._onMetaDataArrived=Q}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Q){this._onScriptDataArrived=Q}},{key:"onError",get:function(){return this._onError},set:function(Q){this._onError=Q}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Q){this._onDataAvailable=Q}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Q){this._timestampBase=Q}},{key:"overridedDuration",get:function(){return this._duration},set:function(Q){this._durationOverrided=!0,this._duration=Q,this._mediaInfo.duration=Q}},{key:"overridedHasAudio",set:function(Q){this._hasAudioFlagOverrided=!0,this._hasAudio=Q,this._mediaInfo.hasAudio=Q}},{key:"overridedHasVideo",set:function(Q){this._hasVideoFlagOverrided=!0,this._hasVideo=Q,this._mediaInfo.hasVideo=Q}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ee}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(Q,$){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new b("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var re=0,de=this._littleEndian;if($===0)if(Q.byteLength>13){var Ue=Te.probe(Q);re=Ue.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,$+re!==this._dataOffset&&d.w(this.TAG,"First time parsing but chunk byteStart invalid!");var it=new DataView(Q,re),Mt=it.getUint32(0,!de);Mt!==0&&d.w(this.TAG,"PrevTagSize0 !== 0 !!!"),re+=4}for(;reQ.byteLength)break;var kn=Ln.getUint8(0),St=Ln.getUint32(0,!de)&16777215;if(re+11+St+4>Q.byteLength)break;if(kn!==8&&kn!==9&&kn!==18){d.w(this.TAG,"Unsupported tag type ".concat(kn,", skipped")),re+=11+St+4;continue}var an=Ln.getUint8(4),Pn=Ln.getUint8(5),dn=Ln.getUint8(6),jn=Ln.getUint8(7),Bn=dn|Pn<<8|an<<16|jn<<24,ne=Ln.getUint32(7,!de)&16777215;ne!==0&&d.w(this.TAG,"Meet tag which has StreamID != 0!");var B=re+11;switch(kn){case 8:this._parseAudioData(Q,B,St,Bn);break;case 9:this._parseVideoData(Q,B,St,Bn,$+re);break;case 18:this._parseScriptData(Q,B,St);break}var H=Ln.getUint32(11+St,!de);H!==11+St&&d.w(this.TAG,"Invalid PrevTagSize ".concat(H)),re+=11+St+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),re}},{key:"_parseScriptData",value:function(Q,$,re){var de=Le.parseScriptData(Q,$,re);if(de.hasOwnProperty("onMetaData")){if(de.onMetaData==null||typeof de.onMetaData!="object"){d.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.w(this.TAG,"Found another onMetaData tag!"),this._metadata=de;var Ue=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Ue)),typeof Ue.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=Ue.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof Ue.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=Ue.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof Ue.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Ue.audiodatarate),typeof Ue.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Ue.videodatarate),typeof Ue.width=="number"&&(this._mediaInfo.width=Ue.width),typeof Ue.height=="number"&&(this._mediaInfo.height=Ue.height),typeof Ue.duration=="number"){if(!this._durationOverrided){var it=Math.floor(Ue.duration*this._timescale);this._duration=it,this._mediaInfo.duration=it}}else this._mediaInfo.duration=0;if(typeof Ue.framerate=="number"){var Mt=Math.floor(Ue.framerate*1e3);if(Mt>0){var Ln=Mt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Ln,this._referenceFrameRate.fps_num=Mt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Ln}}if(typeof Ue.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var kn=Ue.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(kn),Ue.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Ue,d.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(de).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},de)))}},{key:"_parseKeyframesIndex",value:function(Q){for(var $=[],re=[],de=1;de>>4;if(Ln!==2&&Ln!==10){this._onError(Rt.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ln);return}var kn=0,St=(Mt&12)>>>2;if(St>=0&&St<=4)kn=this._flvSoundRateTable[St];else{this._onError(Rt.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+St);return}var an=(Mt&2)>>>1,Pn=Mt&1,dn=this._audioMetadata,jn=this._audioTrack;if(dn||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),dn=this._audioMetadata={},dn.type="audio",dn.id=jn.id,dn.timescale=this._timescale,dn.duration=this._duration,dn.audioSampleRate=kn,dn.channelCount=Pn===0?1:2),Ln===10){var Bn=this._parseAACAudioData(Q,$+1,re-1);if(Bn==null)return;if(Bn.packetType===0){dn.config&&d.w(this.TAG,"Found another AudioSpecificConfig!");var ne=Bn.data;dn.audioSampleRate=ne.samplingRate,dn.channelCount=ne.channelCount,dn.codec=ne.codec,dn.originalCodec=ne.originalCodec,dn.config=ne.config,dn.refSampleDuration=1024/dn.audioSampleRate*dn.timescale,d.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",dn);var B=this._mediaInfo;B.audioCodec=dn.originalCodec,B.audioSampleRate=dn.audioSampleRate,B.audioChannelCount=dn.channelCount,B.hasVideo?B.videoCodec!=null&&(B.mimeType='video/x-flv; codecs="'+B.videoCodec+","+B.audioCodec+'"'):B.mimeType='video/x-flv; codecs="'+B.audioCodec+'"',B.isComplete()&&this._onMediaInfo(B)}else if(Bn.packetType===1){var H=this._timestampBase+de,ae={unit:Bn.data,length:Bn.data.byteLength,dts:H,pts:H};jn.samples.push(ae),jn.length+=Bn.data.length}else d.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Bn.packetType))}else if(Ln===2){if(!dn.codec){var ue=this._parseMP3AudioData(Q,$+1,re-1,!0);if(ue==null)return;dn.audioSampleRate=ue.samplingRate,dn.channelCount=ue.channelCount,dn.codec=ue.codec,dn.originalCodec=ue.originalCodec,dn.refSampleDuration=1152/dn.audioSampleRate*dn.timescale,d.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",dn);var oe=this._mediaInfo;oe.audioCodec=dn.codec,oe.audioSampleRate=dn.audioSampleRate,oe.audioChannelCount=dn.channelCount,oe.audioDataRate=ue.bitRate,oe.hasVideo?oe.videoCodec!=null&&(oe.mimeType='video/x-flv; codecs="'+oe.videoCodec+","+oe.audioCodec+'"'):oe.mimeType='video/x-flv; codecs="'+oe.audioCodec+'"',oe.isComplete()&&this._onMediaInfo(oe)}var ht=this._parseMP3AudioData(Q,$+1,re-1,!1);if(ht==null)return;var vn=this._timestampBase+de,Tn={unit:ht,length:ht.byteLength,dts:vn,pts:vn};jn.samples.push(Tn),jn.length+=ht.length}}},{key:"_parseAACAudioData",value:function(Q,$,re){if(re<=1){d.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var de={},Ue=new Uint8Array(Q,$,re);return de.packetType=Ue[0],Ue[0]===0?de.data=this._parseAACAudioSpecificConfig(Q,$+1,re-1):de.data=Ue.subarray(1),de}},{key:"_parseAACAudioSpecificConfig",value:function(Q,$,re){var de=new Uint8Array(Q,$,re),Ue=null,it=0,Mt=0,Ln=null,kn=0,St=null;if(it=Mt=de[0]>>>3,kn=(de[0]&7)<<1|de[1]>>>7,kn<0||kn>=this._mpegSamplingRates.length){this._onError(Rt.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var an=this._mpegSamplingRates[kn],Pn=(de[1]&120)>>>3;if(Pn<0||Pn>=8){this._onError(Rt.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}it===5&&(St=(de[1]&7)<<1|de[2]>>>7,Ln=(de[2]&124)>>>2);var dn=self.navigator.userAgent.toLowerCase();return dn.indexOf("firefox")!==-1?kn>=6?(it=5,Ue=new Array(4),St=kn-3):(it=2,Ue=new Array(2),St=kn):dn.indexOf("android")!==-1?(it=2,Ue=new Array(2),St=kn):(it=5,St=kn,Ue=new Array(4),kn>=6?St=kn-3:Pn===1&&(it=2,Ue=new Array(2),St=kn)),Ue[0]=it<<3,Ue[0]|=(kn&15)>>>1,Ue[1]=(kn&15)<<7,Ue[1]|=(Pn&15)<<3,it===5&&(Ue[1]|=(St&15)>>>1,Ue[2]=(St&1)<<7,Ue[2]|=2<<2,Ue[3]=0),{config:Ue,samplingRate:an,channelCount:Pn,codec:"mp4a.40."+it,originalCodec:"mp4a.40."+Mt}}},{key:"_parseMP3AudioData",value:function(Q,$,re,de){if(re<4){d.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var Ue=this._littleEndian,it=new Uint8Array(Q,$,re),Mt=null;if(de){if(it[0]!==255)return;var Ln=it[1]>>>3&3,kn=(it[1]&6)>>1,St=(it[2]&240)>>>4,an=(it[2]&12)>>>2,Pn=it[3]>>>6&3,dn=Pn!==3?2:1,jn=0,Bn=0,ne=34,B="mp3";switch(Ln){case 0:jn=this._mpegAudioV25SampleRateTable[an];break;case 2:jn=this._mpegAudioV20SampleRateTable[an];break;case 3:jn=this._mpegAudioV10SampleRateTable[an];break}switch(kn){case 1:ne=34,St>>4,Ln=it&15;if(Ln!==7){this._onError(Rt.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Ln));return}this._parseAVCVideoPacket(Q,$+1,re-1,de,Ue,Mt)}},{key:"_parseAVCVideoPacket",value:function(Q,$,re,de,Ue,it){if(re<4){d.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Mt=this._littleEndian,Ln=new DataView(Q,$,re),kn=Ln.getUint8(0),St=Ln.getUint32(0,!Mt)&16777215,an=St<<8>>8;if(kn===0)this._parseAVCDecoderConfigurationRecord(Q,$+4,re-4);else if(kn===1)this._parseAVCVideoData(Q,$+4,re-4,de,Ue,it,an);else if(!(kn===2)){this._onError(Rt.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(kn));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Q,$,re){if(re<7){d.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var de=this._videoMetadata,Ue=this._videoTrack,it=this._littleEndian,Mt=new DataView(Q,$,re);de?typeof de.avcc!="undefined"&&d.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),de=this._videoMetadata={},de.type="video",de.id=Ue.id,de.timescale=this._timescale,de.duration=this._duration);var Ln=Mt.getUint8(0),kn=Mt.getUint8(1),St=Mt.getUint8(2),an=Mt.getUint8(3);if(Ln!==1||kn===0){this._onError(Rt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Mt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Rt.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Pn=Mt.getUint8(5)&31;if(Pn===0){this._onError(Rt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Pn>1&&d.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Pn));for(var dn=6,jn=0;jn1&&d.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(cr));dn++;for(var Vt=0;Vt=re){d.w(this.TAG,"Malformed Nalu near timestamp ".concat(jn,", offset = ").concat(Pn,", dataSize = ").concat(re));break}var ne=kn.getUint32(Pn,!Ln);if(dn===3&&(ne>>>=8),ne>re-dn){d.w(this.TAG,"Malformed Nalus near timestamp ".concat(jn,", NaluSize > DataSize!"));return}var B=kn.getUint8(Pn+dn)&31;B===5&&(Bn=!0);var H=new Uint8Array(Q,$+Pn,dn+ne),ae={type:B,data:H};St.push(ae),an+=H.byteLength,Pn+=dn+ne}if(St.length){var ue=this._videoTrack,oe={units:St,length:an,isKeyframe:Bn,dts:jn,cts:Mt,pts:jn+Mt};Bn&&(oe.fileposition=Ue),ue.samples.push(oe),ue.length+=an}}}],[{key:"probe",value:function(Q){var $=new Uint8Array(Q),re={match:!1};if($[0]!==70||$[1]!==76||$[2]!==86||$[3]!==1)return re;var de=($[4]&4)>>>2!==0,Ue=($[4]&1)!==0,it=Cn($,5);return it<9?re:{match:!0,consumed:it,dataOffset:it,hasAudioTrack:de,hasVideoTrack:Ue}}}]),Te}(),mt=Un,lt=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"init",value:function(){Te.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var Q in Te.types)Te.types.hasOwnProperty(Q)&&(Te.types[Q]=[Q.charCodeAt(0),Q.charCodeAt(1),Q.charCodeAt(2),Q.charCodeAt(3)]);var $=Te.constants={};$.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),$.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),$.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),$.STSC=$.STCO=$.STTS,$.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),$.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),$.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),$.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),$.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),$.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Q){for(var $=8,re=null,de=Array.prototype.slice.call(arguments,1),Ue=de.length,it=0;it>>24&255,re[1]=$>>>16&255,re[2]=$>>>8&255,re[3]=$&255,re.set(Q,4);for(var Mt=8,Ln=0;Ln>>24&255,Q>>>16&255,Q>>>8&255,Q&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(Q){return Te.box(Te.types.trak,Te.tkhd(Q),Te.mdia(Q))}},{key:"tkhd",value:function(Q){var $=Q.id,re=Q.duration,de=Q.presentWidth,Ue=Q.presentHeight;return Te.box(Te.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255,0,0,0,0,re>>>24&255,re>>>16&255,re>>>8&255,re&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,de>>>8&255,de&255,0,0,Ue>>>8&255,Ue&255,0,0]))}},{key:"mdia",value:function(Q){return Te.box(Te.types.mdia,Te.mdhd(Q),Te.hdlr(Q),Te.minf(Q))}},{key:"mdhd",value:function(Q){var $=Q.timescale,re=Q.duration;return Te.box(Te.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255,re>>>24&255,re>>>16&255,re>>>8&255,re&255,85,196,0,0]))}},{key:"hdlr",value:function(Q){var $=null;return Q.type==="audio"?$=Te.constants.HDLR_AUDIO:$=Te.constants.HDLR_VIDEO,Te.box(Te.types.hdlr,$)}},{key:"minf",value:function(Q){var $=null;return Q.type==="audio"?$=Te.box(Te.types.smhd,Te.constants.SMHD):$=Te.box(Te.types.vmhd,Te.constants.VMHD),Te.box(Te.types.minf,$,Te.dinf(),Te.stbl(Q))}},{key:"dinf",value:function(){var Q=Te.box(Te.types.dinf,Te.box(Te.types.dref,Te.constants.DREF));return Q}},{key:"stbl",value:function(Q){var $=Te.box(Te.types.stbl,Te.stsd(Q),Te.box(Te.types.stts,Te.constants.STTS),Te.box(Te.types.stsc,Te.constants.STSC),Te.box(Te.types.stsz,Te.constants.STSZ),Te.box(Te.types.stco,Te.constants.STCO));return $}},{key:"stsd",value:function(Q){return Q.type==="audio"?Q.codec==="mp3"?Te.box(Te.types.stsd,Te.constants.STSD_PREFIX,Te.mp3(Q)):Te.box(Te.types.stsd,Te.constants.STSD_PREFIX,Te.mp4a(Q)):Te.box(Te.types.stsd,Te.constants.STSD_PREFIX,Te.avc1(Q))}},{key:"mp3",value:function(Q){var $=Q.channelCount,re=Q.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,$,0,16,0,0,0,0,re>>>8&255,re&255,0,0]);return Te.box(Te.types[".mp3"],de)}},{key:"mp4a",value:function(Q){var $=Q.channelCount,re=Q.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,$,0,16,0,0,0,0,re>>>8&255,re&255,0,0]);return Te.box(Te.types.mp4a,de,Te.esds(Q))}},{key:"esds",value:function(Q){var $=Q.config||[],re=$.length,de=new Uint8Array([0,0,0,0,3,23+re,0,1,0,4,15+re,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([re]).concat($).concat([6,1,2]));return Te.box(Te.types.esds,de)}},{key:"avc1",value:function(Q){var $=Q.avcc,re=Q.codecWidth,de=Q.codecHeight,Ue=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,re>>>8&255,re&255,de>>>8&255,de&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Te.box(Te.types.avc1,Ue,Te.box(Te.types.avcC,$))}},{key:"mvex",value:function(Q){return Te.box(Te.types.mvex,Te.trex(Q))}},{key:"trex",value:function(Q){var $=Q.id,re=new Uint8Array([0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Te.box(Te.types.trex,re)}},{key:"moof",value:function(Q,$){return Te.box(Te.types.moof,Te.mfhd(Q.sequenceNumber),Te.traf(Q,$))}},{key:"mfhd",value:function(Q){var $=new Uint8Array([0,0,0,0,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q&255]);return Te.box(Te.types.mfhd,$)}},{key:"traf",value:function(Q,$){var re=Q.id,de=Te.box(Te.types.tfhd,new Uint8Array([0,0,0,0,re>>>24&255,re>>>16&255,re>>>8&255,re&255])),Ue=Te.box(Te.types.tfdt,new Uint8Array([0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255])),it=Te.sdtp(Q),Mt=Te.trun(Q,it.byteLength+16+16+8+16+8+8);return Te.box(Te.types.traf,de,Ue,Mt,it)}},{key:"sdtp",value:function(Q){for(var $=Q.samples||[],re=$.length,de=new Uint8Array(4+re),Ue=0;Ue>>24&255,de>>>16&255,de>>>8&255,de&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255],0);for(var Mt=0;Mt>>24&255,Ln>>>16&255,Ln>>>8&255,Ln&255,kn>>>24&255,kn>>>16&255,kn>>>8&255,kn&255,St.isLeading<<2|St.dependsOn,St.isDependedOn<<6|St.hasRedundancy<<4|St.isNonSync,0,0,an>>>24&255,an>>>16&255,an>>>8&255,an&255],12+16*Mt)}return Te.box(Te.types.trun,it)}},{key:"mdat",value:function(Q){return Te.box(Te.types.mdat,Q)}}]),Te}();lt.init();var Ht=lt,sn=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"getSilentFrame",value:function(Q,$){if(Q==="mp4a.40.2"){if($===1)return new Uint8Array([0,200,0,128,35,128]);if($===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if($===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if($===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if($===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if($===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if($===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if($===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if($===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Te}(),Tt=sn,wt=function Te(ve,Q,$,re,de){Object(Y.a)(this,Te),this.dts=ve,this.pts=Q,this.duration=$,this.originalDts=re,this.isSyncPoint=de,this.fileposition=null},Qe=function(){function Te(){Object(Y.a)(this,Te),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(j.a)(Te,[{key:"appendSyncPoint",value:function(Q){Q.isSyncPoint=!0,this.syncPoints.push(Q)}}]),Te}(),Je=function(){function Te(){Object(Y.a)(this,Te),this._list=[]}return Object(j.a)(Te,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Q){var $=this._list;if(Q.length===0)return;$.length>0&&Q[0].originalDts<$[$.length-1].originalDts&&this.clear(),Array.prototype.push.apply($,Q)}},{key:"getLastSyncPointBeforeDts",value:function(Q){if(this._list.length==0)return null;var $=this._list,re=0,de=$.length-1,Ue=0,it=0,Mt=de;for(Q<$[0].dts&&(re=0,it=Mt+1);it<=Mt;)if(Ue=it+Math.floor((Mt-it)/2),Ue===de||Q>=$[Ue].dts&&Q<$[Ue+1].dts){re=Ue;break}else $[Ue].dts$[de].lastSample.originalDts&&Q<$[de+1].originalBeginDts){Mt=de;break}else $[de].originalBeginDts=$[de].lastSample.originalDts&&(de===$.length-1||de<$.length-1&&re.originalBeginDts<$[de+1].originalBeginDts)?Ue=de+1:$.length>0&&(Ue=this._searchNearestSegmentBefore(re.originalBeginDts)+1),this._lastAppendLocation=Ue,this._list.splice(Ue,0,re)}},{key:"getLastSegmentBefore",value:function(Q){var $=this._searchNearestSegmentBefore(Q);return $>=0?this._list[$]:null}},{key:"getLastSampleBefore",value:function(Q){var $=this.getLastSegmentBefore(Q);return $!=null?$.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Q){for(var $=this._searchNearestSegmentBefore(Q),re=this._list[$].syncPoints;re.length===0&&$>0;)$--,re=this._list[$].syncPoints;return re.length>0?re[re.length-1]:null}}]),Te}(),Oe=function(){function Te(ve){Object(Y.a)(this,Te),this.TAG="MP4Remuxer",this._config=ve,this._isLive=ve.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Xe("audio"),this._videoSegmentInfoList=new Xe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(A.chrome&&(A.version.major<50||A.version.major===50&&A.version.build<2661)),this._fillSilentAfterSeek=A.msedge||A.msie,this._mp3UseMpegAudio=!A.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(j.a)(Te,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(Q){return Q.onDataAvailable=this.remux.bind(this),Q.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Q){this._onInitSegment=Q}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Q){this._onMediaSegment=Q}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Q){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Q,$){if(!this._onMediaSegment)throw new b("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Q,$),this._remuxVideo($),this._remuxAudio(Q)}},{key:"_onTrackMetadataReceived",value:function(Q,$){var re=null,de="mp4",Ue=$.codec;if(Q==="audio")this._audioMeta=$,$.codec==="mp3"&&this._mp3UseMpegAudio?(de="mpeg",Ue="",re=new Uint8Array):re=Ht.generateInitSegment($);else if(Q==="video")this._videoMeta=$,re=Ht.generateInitSegment($);else return;if(!this._onInitSegment)throw new b("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Q,{type:Q,data:re.buffer,codec:Ue,container:"".concat(Q,"/").concat(de),mediaDuration:$.duration})}},{key:"_calculateDtsBase",value:function(Q,$){if(this._dtsBaseInited)return;Q.samples&&Q.samples.length&&(this._audioDtsBase=Q.samples[0].dts),$.samples&&$.samples.length&&(this._videoDtsBase=$.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Q=this._videoStashedLastSample,$=this._audioStashedLastSample,re={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Q!=null&&(re.samples.push(Q),re.length=Q.length);var de={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};$!=null&&(de.samples.push($),de.length=$.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(re,!0),this._remuxAudio(de,!0)}},{key:"_remuxAudio",value:function(Q,$){if(this._audioMeta==null)return;var re=Q,de=re.samples,Ue=void 0,it=-1,Mt=-1,Ln=-1,kn=this._audioMeta.refSampleDuration,St=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,an=this._dtsBaseInited&&this._audioNextDts===void 0,Pn=!1;if(!de||de.length===0)return;if(de.length===1&&!$)return;var dn=0,jn=null,Bn=0;St?(dn=0,Bn=re.length):(dn=8,Bn=8+re.length);var ne=null;if(de.length>1&&(ne=de.pop(),Bn-=ne.length),this._audioStashedLastSample!=null){var B=this._audioStashedLastSample;this._audioStashedLastSample=null,de.unshift(B),Bn+=B.length}ne!=null&&(this._audioStashedLastSample=ne);var H=de[0].dts-this._dtsBase;if(this._audioNextDts)Ue=H-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ue=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Pn=!0));else{var ae=this._audioSegmentInfoList.getLastSampleBefore(H);if(ae!=null){var ue=H-(ae.originalDts+ae.duration);ue<=3&&(ue=0);var oe=ae.dts+ae.duration+ue;Ue=H-oe}else Ue=0}if(Pn){var ht=H-Ue,vn=this._videoSegmentInfoList.getLastSegmentBefore(H);if(vn!=null&&vn.beginDts=1?jr=Et[Et.length-1].duration:jr=Math.floor(kn);var Tr=!1,Jn=null;if(jr>kn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!A.safari){Tr=!0;var fr=Math.abs(jr-kn),Sn=Math.ceil(fr/kn),On=ir+kn;d.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. -`+"dts: ".concat(ir+jr," ms, expected: ").concat(ir+Math.round(kn)," ms, ")+"delta: ".concat(Math.round(fr)," ms, generate: ").concat(Sn," frames"));var or=Tt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);or==null&&(d.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),or=Vn),Jn=[];for(var Dn=0;Dn0){var Gn=Jn[Jn.length-1];Gn.duration=pr-Gn.dts}var se={dts:pr,pts:pr,cts:0,unit:or,size:or.byteLength,duration:0,originalDts:Kn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Jn.push(se),Bn+=se.size,On+=kn}var tt=Jn[Jn.length-1];tt.duration=ir+jr-tt.dts,jr=Math.round(kn)}Et.push({dts:ir,pts:ir,cts:0,unit:Fn.unit,size:Fn.unit.byteLength,duration:jr,originalDts:Kn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Tr&&Et.push.apply(Et,Jn)}St?jn=new Uint8Array(Bn):(jn=new Uint8Array(Bn),jn[0]=Bn>>>24&255,jn[1]=Bn>>>16&255,jn[2]=Bn>>>8&255,jn[3]=Bn&255,jn.set(Ht.types.mdat,4));for(var rt=0;rt1&&(dn=de.pop(),Pn-=dn.length),this._videoStashedLastSample!=null){var jn=this._videoStashedLastSample;this._videoStashedLastSample=null,de.unshift(jn),Pn+=jn.length}dn!=null&&(this._videoStashedLastSample=dn);var Bn=de[0].dts-this._dtsBase;if(this._videoNextDts)Ue=Bn-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ue=0;else{var ne=this._videoSegmentInfoList.getLastSampleBefore(Bn);if(ne!=null){var B=Bn-(ne.originalDts+ne.duration);B<=3&&(B=0);var H=ne.dts+ne.duration+B;Ue=Bn-H}else Ue=0}for(var ae=new Qe,ue=[],oe=0;oe=1?Jt=ue[ue.length-1].duration:Jt=Math.floor(this._videoMeta.refSampleDuration);if(Tn){var Kn=new wt(cr,Et,Jt,ht.dts,!0);Kn.fileposition=ht.fileposition,ae.appendSyncPoint(Kn)}ue.push({dts:cr,pts:Et,cts:Vt,units:ht.units,size:ht.length,isKeyframe:Tn,duration:Jt,originalDts:vn,flags:{isLeading:0,dependsOn:Tn?2:1,isDependedOn:Tn?1:0,hasRedundancy:0,isNonSync:Tn?0:1}})}an=new Uint8Array(Pn),an[0]=Pn>>>24&255,an[1]=Pn>>>16&255,an[2]=Pn>>>8&255,an[3]=Pn&255,an.set(Ht.types.mdat,4);for(var ir=0;ir0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Ue=this._demuxer.parseChunks(Q,$);else if((de=mt.probe(Q)).match){this._demuxer=new mt(de,this._config),this._remuxer||(this._remuxer=new Ae(this._config));var it=this._mediaDataSource;it.duration!=null&&!isNaN(it.duration)&&(this._demuxer.overridedDuration=it.duration),typeof it.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=it.hasAudio),typeof it.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=it.hasVideo),this._demuxer.timestampBase=it.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),Ue=this._demuxer.parseChunks(Q,$)}else de=null,d.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){re._internalAbort()}),this._emitter.emit(Se.DEMUX_ERROR,Rt.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Ue=0;return Ue}},{key:"_onMediaInfo",value:function(Q){var $=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Q),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ee.prototype));var re=Object.assign({},Q);Object.setPrototypeOf(re,Ee.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=re,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var de=$._pendingSeekTime;$._pendingSeekTime=null,$.seek(de)})}},{key:"_onMetaDataArrived",value:function(Q){this._emitter.emit(Se.METADATA_ARRIVED,Q)}},{key:"_onScriptDataArrived",value:function(Q){this._emitter.emit(Se.SCRIPTDATA_ARRIVED,Q)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Q){var $=Q,re=$+1;re0&&re[0].originalDts===de&&(de=re[0].pts),this._emitter.emit(Se.RECOMMEND_SEEKPOINT,de)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(Q){var $=this._mediaInfo.segments[Q],re=Object.assign({},$);re.duration=this._mediaInfo.duration,re.segmentCount=this._mediaInfo.segmentCount,delete re.segments,delete re.keyframesIndex,this._emitter.emit(Se.MEDIA_INFO,re)}},{key:"_reportStatisticsInfo",value:function(){var Q={};Q.url=this._ioctl.currentURL,Q.hasRedirect=this._ioctl.hasRedirect,Q.hasRedirect&&(Q.redirectedURL=this._ioctl.currentRedirectedURL),Q.speed=this._ioctl.currentSpeed,Q.loaderType=this._ioctl.loaderType,Q.currentSegmentIndex=this._currentSegmentIndex,Q.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Se.STATISTICS_INFO,Q)}}]),Te}(),et=dt,xt=function(ve){var Q="TransmuxingWorker",$=null,re=Bn.bind(this);U.install(),ve.addEventListener("message",function(ne){switch(ne.data.cmd){case"init":$=new et(ne.data.param[0],ne.data.param[1]),$.on(Se.IO_ERROR,Pn.bind(this)),$.on(Se.DEMUX_ERROR,dn.bind(this)),$.on(Se.INIT_SEGMENT,de.bind(this)),$.on(Se.MEDIA_SEGMENT,Ue.bind(this)),$.on(Se.LOADING_COMPLETE,it.bind(this)),$.on(Se.RECOVERED_EARLY_EOF,Mt.bind(this)),$.on(Se.MEDIA_INFO,Ln.bind(this)),$.on(Se.METADATA_ARRIVED,kn.bind(this)),$.on(Se.SCRIPTDATA_ARRIVED,St.bind(this)),$.on(Se.STATISTICS_INFO,an.bind(this)),$.on(Se.RECOMMEND_SEEKPOINT,jn.bind(this));break;case"destroy":$&&($.destroy(),$=null),ve.postMessage({msg:"destroyed"});break;case"start":$.start();break;case"stop":$.stop();break;case"seek":$.seek(ne.data.param);break;case"pause":$.pause();break;case"resume":$.resume();break;case"logging_config":{var B=ne.data.param;he.applyConfig(B),B.enableCallback===!0?he.addLogListener(re):he.removeLogListener(re);break}}});function de(ne,B){var H={msg:Se.INIT_SEGMENT,data:{type:ne,data:B}};ve.postMessage(H,[B.data])}function Ue(ne,B){var H={msg:Se.MEDIA_SEGMENT,data:{type:ne,data:B}};ve.postMessage(H,[B.data])}function it(){var ne={msg:Se.LOADING_COMPLETE};ve.postMessage(ne)}function Mt(){var ne={msg:Se.RECOVERED_EARLY_EOF};ve.postMessage(ne)}function Ln(ne){var B={msg:Se.MEDIA_INFO,data:ne};ve.postMessage(B)}function kn(ne){var B={msg:Se.METADATA_ARRIVED,data:ne};ve.postMessage(B)}function St(ne){var B={msg:Se.SCRIPTDATA_ARRIVED,data:ne};ve.postMessage(B)}function an(ne){var B={msg:Se.STATISTICS_INFO,data:ne};ve.postMessage(B)}function Pn(ne,B){ve.postMessage({msg:Se.IO_ERROR,data:{type:ne,info:B}})}function dn(ne,B){ve.postMessage({msg:Se.DEMUX_ERROR,data:{type:ne,info:B}})}function jn(ne){ve.postMessage({msg:Se.RECOMMEND_SEEKPOINT,data:ne})}function Bn(ne,B){ve.postMessage({msg:"logcat_callback",data:{type:ne,logcat:B}})}},xn=xt,Dt=function(){function Te(ve,Q){if(Object(Y.a)(this,Te),this.TAG="Transmuxer",this._emitter=new g.a,Q.enableWorker&&typeof Worker!="undefined")try{var $=_("0r65");this._worker=$(xn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ve,Q]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},he.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:he.getConfig()})}catch(de){d.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new et(ve,Q)}else this._controller=new et(ve,Q);if(this._controller){var re=this._controller;re.on(Se.IO_ERROR,this._onIOError.bind(this)),re.on(Se.DEMUX_ERROR,this._onDemuxError.bind(this)),re.on(Se.INIT_SEGMENT,this._onInitSegment.bind(this)),re.on(Se.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),re.on(Se.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),re.on(Se.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),re.on(Se.MEDIA_INFO,this._onMediaInfo.bind(this)),re.on(Se.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),re.on(Se.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),re.on(Se.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),re.on(Se.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(j.a)(Te,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),he.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Q,$){this._emitter.addListener(Q,$)}},{key:"off",value:function(Q,$){this._emitter.removeListener(Q,$)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(Q){this._worker?this._worker.postMessage({cmd:"seek",param:Q}):this._controller.seek(Q)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.INIT_SEGMENT,Q,$)})}},{key:"_onMediaSegment",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.MEDIA_SEGMENT,Q,$)})}},{key:"_onLoadingComplete",value:function(){var Q=this;Promise.resolve().then(function(){Q._emitter.emit(Se.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Q=this;Promise.resolve().then(function(){Q._emitter.emit(Se.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.MEDIA_INFO,Q)})}},{key:"_onMetaDataArrived",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.METADATA_ARRIVED,Q)})}},{key:"_onScriptDataArrived",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.SCRIPTDATA_ARRIVED,Q)})}},{key:"_onStatisticsInfo",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.STATISTICS_INFO,Q)})}},{key:"_onIOError",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.IO_ERROR,Q,$)})}},{key:"_onDemuxError",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.DEMUX_ERROR,Q,$)})}},{key:"_onRecommendSeekpoint",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.RECOMMEND_SEEKPOINT,Q)})}},{key:"_onLoggingConfigChanged",value:function(Q){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Q})}},{key:"_onWorkerMessage",value:function(Q){var $=Q.data,re=$.data;if($.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch($.msg){case Se.INIT_SEGMENT:case Se.MEDIA_SEGMENT:this._emitter.emit($.msg,re.type,re.data);break;case Se.LOADING_COMPLETE:case Se.RECOVERED_EARLY_EOF:this._emitter.emit($.msg);break;case Se.MEDIA_INFO:Object.setPrototypeOf(re,Ee.prototype),this._emitter.emit($.msg,re);break;case Se.METADATA_ARRIVED:case Se.SCRIPTDATA_ARRIVED:case Se.STATISTICS_INFO:this._emitter.emit($.msg,re);break;case Se.IO_ERROR:case Se.DEMUX_ERROR:this._emitter.emit($.msg,re.type,re.info);break;case Se.RECOMMEND_SEEKPOINT:this._emitter.emit($.msg,re);break;case"logcat_callback":d.emitter.emit("log",re.type,re.logcat);break;default:break}}}]),Te}(),yt=Dt,mn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},pe=mn,Gt=function(){function Te(ve){Object(Y.a)(this,Te),this.TAG="MSEController",this._config=ve,this._emitter=new g.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Je}return Object(j.a)(Te,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Q,$){this._emitter.addListener(Q,$)}},{key:"off",value:function(Q,$){this._emitter.removeListener(Q,$)}},{key:"attachMediaElement",value:function(Q){if(this._mediaSource)throw new b("MediaSource has been attached to an HTMLMediaElement!");var $=this._mediaSource=new window.MediaSource;$.addEventListener("sourceopen",this.e.onSourceOpen),$.addEventListener("sourceended",this.e.onSourceEnded),$.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Q,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Q.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Q=this._mediaSource;for(var $ in this._sourceBuffers){var re=this._pendingSegments[$];re.splice(0,re.length),this._pendingSegments[$]=null,this._pendingRemoveRanges[$]=null,this._lastInitSegments[$]=null;var de=this._sourceBuffers[$];if(de){if(Q.readyState!=="closed"){try{Q.removeSourceBuffer(de)}catch(Ue){d.e(this.TAG,Ue.message)}de.removeEventListener("error",this.e.onSourceBufferError),de.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[$]=null,this._sourceBuffers[$]=null}}if(Q.readyState==="open")try{Q.endOfStream()}catch(Ue){d.e(this.TAG,Ue.message)}Q.removeEventListener("sourceopen",this.e.onSourceOpen),Q.removeEventListener("sourceended",this.e.onSourceEnded),Q.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(Q,$){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Q),this._pendingSegments[Q.type].push(Q);return}var re=Q,de="".concat(re.container);re.codec&&re.codec.length>0&&(de+=";codecs=".concat(re.codec));var Ue=!1;if(d.v(this.TAG,"Received Initialization Segment, mimeType: "+de),this._lastInitSegments[re.type]=re,de!==this._mimeTypes[re.type]){if(this._mimeTypes[re.type])d.v(this.TAG,"Notice: ".concat(re.type," mimeType changed, origin: ").concat(this._mimeTypes[re.type],", target: ").concat(de));else{Ue=!0;try{var it=this._sourceBuffers[re.type]=this._mediaSource.addSourceBuffer(de);it.addEventListener("error",this.e.onSourceBufferError),it.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Mt){d.e(this.TAG,Mt.message),this._emitter.emit(pe.ERROR,{code:Mt.code,msg:Mt.message});return}}this._mimeTypes[re.type]=de}$||this._pendingSegments[re.type].push(re),Ue||this._sourceBuffers[re.type]&&!this._sourceBuffers[re.type].updating&&this._doAppendSegments(),A.safari&&re.container==="audio/mpeg"&&re.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=re.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Q){var $=Q;this._pendingSegments[$.type].push($),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var re=this._sourceBuffers[$.type];re&&!re.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Q){for(var $ in this._sourceBuffers){if(!this._sourceBuffers[$])continue;var re=this._sourceBuffers[$];if(this._mediaSource.readyState==="open")try{re.abort()}catch(kn){d.e(this.TAG,kn.message)}this._idrList.clear();var de=this._pendingSegments[$];if(de.splice(0,de.length),this._mediaSource.readyState==="closed")continue;for(var Ue=0;Ue=1&&Q-de.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Q=this._mediaElement.currentTime;for(var $ in this._sourceBuffers){var re=this._sourceBuffers[$];if(re){for(var de=re.buffered,Ue=!1,it=0;it=this._config.autoCleanupMaxBackwardDuration){Ue=!0;var kn=Q-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[$].push({start:Mt,end:kn})}}else Ln0&&(isNaN($)||re>$)&&(d.v(this.TAG,"Update MediaSource duration from ".concat($," to ").concat(re)),this._mediaSource.duration=re),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Q in this._pendingRemoveRanges){if(!this._sourceBuffers[Q]||this._sourceBuffers[Q].updating)continue;for(var $=this._sourceBuffers[Q],re=this._pendingRemoveRanges[Q];re.length&&!$.updating;){var de=re.shift();$.remove(de.start,de.end)}}}},{key:"_doAppendSegments",value:function(){var Q=this._pendingSegments;for(var $ in Q){if(!this._sourceBuffers[$]||this._sourceBuffers[$].updating)continue;if(Q[$].length>0){var re=Q[$].shift();if(re.timestampOffset){var de=this._sourceBuffers[$].timestampOffset,Ue=re.timestampOffset/1e3,it=Math.abs(de-Ue);it>.1&&(d.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(de," to ").concat(Ue)),this._sourceBuffers[$].timestampOffset=Ue),delete re.timestampOffset}if(!re.data||re.data.byteLength===0)continue;try{this._sourceBuffers[$].appendBuffer(re.data),this._isBufferFull=!1,$==="video"&&re.hasOwnProperty("info")&&this._idrList.appendArray(re.info.syncPoints)}catch(Mt){this._pendingSegments[$].unshift(re),Mt.code===22?(this._isBufferFull||this._emitter.emit(pe.BUFFER_FULL),this._isBufferFull=!0):(d.e(this.TAG,Mt.message),this._emitter.emit(pe.ERROR,{code:Mt.code,msg:Mt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(d.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Q=this._pendingSourceBufferInit;Q.length;){var $=Q.shift();this.appendInitSegment($,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(pe.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){d.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){d.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var Q=this._pendingSegments;return Q.video.length>0||Q.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Q=this._pendingRemoveRanges;return Q.video.length>0||Q.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(pe.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Q){d.e(this.TAG,"SourceBuffer Error: ".concat(Q))}}]),Te}(),Lt=Gt,Be={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},ot={NETWORK_EXCEPTION:r.EXCEPTION,NETWORK_STATUS_CODE_INVALID:r.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:r.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:r.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Rt.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Rt.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Rt.CODEC_UNSUPPORTED},Xt=function(){function Te(ve,Q){if(Object(Y.a)(this,Te),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new g.a,this._config=be(),typeof Q=="object"&&Object.assign(this._config,Q),ve.type.toLowerCase()!=="flv")throw new m("FlvPlayer requires an flv MediaDataSource input!");ve.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ve,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var $=A.chrome&&(A.version.major<50||A.version.major===50&&A.version.build<2661);this._alwaysSeekKeyframe=!!($||A.msedge||A.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(j.a)(Te,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Q,$){var re=this;Q===nt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){re._emitter.emit(nt.MEDIA_INFO,re.mediaInfo)}):Q===nt.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){re._emitter.emit(nt.STATISTICS_INFO,re.statisticsInfo)})),this._emitter.addListener(Q,$)}},{key:"off",value:function(Q,$){this._emitter.removeListener(Q,$)}},{key:"attachMediaElement",value:function(Q){var $=this;if(this._mediaElement=Q,Q.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Q.addEventListener("seeking",this.e.onvSeeking),Q.addEventListener("canplay",this.e.onvCanPlay),Q.addEventListener("stalled",this.e.onvStalled),Q.addEventListener("progress",this.e.onvProgress),this._msectl=new Lt(this._config),this._msectl.on(pe.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(pe.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(pe.SOURCE_OPEN,function(){$._mseSourceOpened=!0,$._hasPendingLoad&&($._hasPendingLoad=!1,$.load())}),this._msectl.on(pe.ERROR,function(re){$._emitter.emit(nt.ERROR,Be.MEDIA_ERROR,ot.MEDIA_MSE_ERROR,re)}),this._msectl.attachMediaElement(Q),this._pendingSeekTime!=null)try{Q.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(re){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var Q=this;if(!this._mediaElement)throw new b("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new b("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new yt(this._mediaDataSource,this._config),this._transmuxer.on(Se.INIT_SEGMENT,function($,re){Q._msectl.appendInitSegment(re)}),this._transmuxer.on(Se.MEDIA_SEGMENT,function($,re){if(Q._msectl.appendMediaSegment(re),Q._config.lazyLoad&&!Q._config.isLive){var de=Q._mediaElement.currentTime;re.info.endDts>=(de+Q._config.lazyLoadMaxDuration)*1e3&&(Q._progressChecker==null&&(d.v(Q.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Q._suspendTransmuxer()))}}),this._transmuxer.on(Se.LOADING_COMPLETE,function(){Q._msectl.endOfStream(),Q._emitter.emit(nt.LOADING_COMPLETE)}),this._transmuxer.on(Se.RECOVERED_EARLY_EOF,function(){Q._emitter.emit(nt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Se.IO_ERROR,function($,re){Q._emitter.emit(nt.ERROR,Be.NETWORK_ERROR,$,re)}),this._transmuxer.on(Se.DEMUX_ERROR,function($,re){Q._emitter.emit(nt.ERROR,Be.MEDIA_ERROR,$,{code:-1,msg:re})}),this._transmuxer.on(Se.MEDIA_INFO,function($){Q._mediaInfo=$,Q._emitter.emit(nt.MEDIA_INFO,Object.assign({},$))}),this._transmuxer.on(Se.METADATA_ARRIVED,function($){Q._emitter.emit(nt.METADATA_ARRIVED,$)}),this._transmuxer.on(Se.SCRIPTDATA_ARRIVED,function($){Q._emitter.emit(nt.SCRIPTDATA_ARRIVED,$)}),this._transmuxer.on(Se.STATISTICS_INFO,function($){Q._statisticsInfo=Q._fillStatisticsInfo($),Q._emitter.emit(nt.STATISTICS_INFO,Object.assign({},Q._statisticsInfo))}),this._transmuxer.on(Se.RECOMMEND_SEEKPOINT,function($){Q._mediaElement&&!Q._config.accurateSeek&&(Q._requestSetTime=!0,Q._mediaElement.currentTime=$/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Q){this._mediaElement.volume=Q}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Q){this._mediaElement.muted=Q}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Q){this._mediaElement?this._internalSeek(Q):this._pendingSeekTime=Q}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(Q){if(Q.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Q;var $=!0,re=0,de=0;if(this._mediaElement.getVideoPlaybackQuality){var Ue=this._mediaElement.getVideoPlaybackQuality();re=Ue.totalVideoFrames,de=Ue.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(re=this._mediaElement.webkitDecodedFrameCount,de=this._mediaElement.webkitDroppedFrameCount):$=!1;return $&&(Q.decodedFrames=re,Q.droppedFrames=de),Q}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Q=this._mediaElement.buffered,$=this._mediaElement.currentTime,re=0,de=0,Ue=0;Ue=$+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(d.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){d.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var Q=this._mediaElement.currentTime,$=this._mediaElement.buffered,re=!1,de=0;de<$.length;de++){var Ue=$.start(de),it=$.end(de);if(Q>=Ue&&Q=it-this._config.lazyLoadRecoverDuration&&(re=!0);break}}re&&(window.clearInterval(this._progressChecker),this._progressChecker=null,re&&(d.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Q){for(var $=this._mediaElement.buffered,re=0;re<$.length;re++){var de=$.start(re),Ue=$.end(re);if(Q>=de&&Q0){var Ue=this._mediaElement.buffered.start(0);(Ue<1&&Q0&&$.currentTime0){var de=re.start(0);if(de<1&&$0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Q){this._mediaElement.volume=Q}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Q){this._mediaElement.muted=Q}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Q){this._mediaElement?this._mediaElement.currentTime=Q:this._pendingSeekTime=Q}},{key:"mediaInfo",get:function(){var Q=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",$={mimeType:Q+this._mediaDataSource.type};return this._mediaElement&&($.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&($.width=this._mediaElement.videoWidth,$.height=this._mediaElement.videoHeight)),$}},{key:"statisticsInfo",get:function(){var Q={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Q;var $=!0,re=0,de=0;if(this._mediaElement.getVideoPlaybackQuality){var Ue=this._mediaElement.getVideoPlaybackQuality();re=Ue.totalVideoFrames,de=Ue.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(re=this._mediaElement.webkitDecodedFrameCount,de=this._mediaElement.webkitDroppedFrameCount):$=!1;return $&&(Q.decodedFrames=re,Q.droppedFrames=de),Q}},{key:"_onvLoadedMetadata",value:function(Q){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}}]),Te}(),Zt=$t;U.install();function bt(Te,ve){var Q=Te;if(Q==null||typeof Q!="object")throw new m("MediaDataSource must be an javascript object!");if(!Q.hasOwnProperty("type"))throw new m("MediaDataSource must has type field to indicate video file type!");switch(Q.type){case"flv":return new Pt(Q,ve);default:return new Zt(Q,ve)}}function ft(){return je.supportMSEH264Playback()}function Nt(){return je.getFeatureList()}var jt={};jt.createPlayer=bt,jt.isSupported=ft,jt.getFeatureList=Nt,jt.BaseLoader=u,jt.LoaderStatus=i,jt.LoaderErrors=r,jt.Events=nt,jt.ErrorTypes=Be,jt.ErrorDetails=ot,jt.FlvPlayer=Pt,jt.NativePlayer=Zt,jt.LoggingControl=he,Object.defineProperty(jt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var bn=ie.a=jt},Gev7:function(Ye,ie,_){var Y=_("bYtY"),j=_("K2GJ"),L=_("1bdT"),U=_("ni6a");function S(s){s=s||{},L.call(this,s);for(var d in s)s.hasOwnProperty(d)&&d!=="style"&&(this[d]=s[d]);this.style=new j(s.style,this),this._rect=null,this.__clipPaths=null}S.prototype={constructor:S,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(s){},afterBrush:function(s){},brush:function(s,d){},getBoundingRect:function(){},contain:function(s,d){return this.rectContain(s,d)},traverse:function(s,d){s.call(d,this)},rectContain:function(s,d){var w=this.transformCoordToLocal(s,d),p=this.getBoundingRect();return p.contain(w[0],w[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(s){return this.animate("style",s)},attrKV:function(s,d){s!=="style"?L.prototype.attrKV.call(this,s,d):this.style.set(d)},setStyle:function(s,d){return this.style.set(s,d),this.dirty(!1),this},useStyle:function(s){return this.style=new j(s,this),this.dirty(!1),this},calculateTextPosition:null},Y.inherits(S,L),Y.mixin(S,U);var g=S;Ye.exports=g},GfqC:function(Ye,ie,_){"use strict";var Y=_("q1tI"),j=_.n(Y),L=_("TSYQ"),U=_.n(L);function S(V,W){var G="cannot "+V.method+" "+V.action+" "+W.status+"'",J=new Error(G);return J.status=W.status,J.method=V.method,J.url=V.action,J}function g(V){var W=V.responseText||V.response;if(!W)return W;try{return JSON.parse(W)}catch(G){return W}}function s(V){var W=new XMLHttpRequest;V.onProgress&&W.upload&&(W.upload.onprogress=function(te){te.total>0&&(te.percent=te.loaded/te.total*100),V.onProgress(te)});var G=new FormData;V.data&&Object.keys(V.data).forEach(function(X){var te=V.data[X];if(Array.isArray(te)){te.forEach(function(ee){G.append(X+"[]",ee)});return}G.append(X,V.data[X])}),V.file instanceof Blob?G.append(V.filename,V.file,V.file.name):G.append(V.filename,V.file),W.onerror=function(te){V.onError(te)},W.onload=function(){return W.status<200||W.status>=300?V.onError(S(V,W),g(W)):V.onSuccess(g(W),W)},W.open(V.method,V.action,!0),V.withCredentials&&"withCredentials"in W&&(W.withCredentials=!0);var J=V.headers||{};return J["X-Requested-With"]!==null&&W.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(J).forEach(function(X){J[X]!==null&&W.setRequestHeader(X,J[X])}),W.send(G),{abort:function(){W.abort()}}}var d=+new Date,w=0;function p(){return"rc-upload-"+d+"-"+ ++w}function a(V,W){return V.indexOf(W,V.length-W.length)!==-1}var f=function(V,W){if(V&&W){var G=Array.isArray(W)?W:W.split(","),J=V.name||"",X=V.type||"",te=X.replace(/\/.*$/,"");return G.some(function(ee){var be=ee.trim();return be.charAt(0)==="."?a(J.toLowerCase(),be.toLowerCase()):/\/\*$/.test(be)?te===be.replace(/\/.*$/,""):X===be})}return!0};function x(V,W){var G=V.createReader(),J=[];function X(){G.readEntries(function(te){var ee=Array.prototype.slice.apply(te);J=J.concat(ee);var be=!ee.length;be?W(J):X()})}X()}var b=function(W,G,J){var X=function te(ee,be){be=be||"",ee.isFile?ee.file(function(ge){J(ge)&&(ee.fullPath&&!ge.webkitRelativePath&&(Object.defineProperties(ge,{webkitRelativePath:{writable:!0}}),ge.webkitRelativePath=ee.fullPath.replace(/^\//,""),Object.defineProperties(ge,{webkitRelativePath:{writable:!1}})),G([ge]))}):ee.isDirectory&&x(ee,function(ge){ge.forEach(function(je){te(je,""+be+ee.name+"/")})})};W.forEach(function(te){X(te.webkitGetAsEntry())})},m=b,O=Object.assign||function(V){for(var W=1;W=0)continue;if(!Object.prototype.hasOwnProperty.call(V,J))continue;G[J]=V[J]}return G}function y(V,W){if(!(V instanceof W))throw new TypeError("Cannot call a class as a function")}function E(V,W){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:V}function t(V,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);V.prototype=Object.create(W&&W.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(V,W):V.__proto__=W)}var C=function(W){return Object.keys(W).reduce(function(G,J){return(J.substr(0,5)==="data-"||J.substr(0,5)==="aria-"||J==="role")&&(G[J]=W[J]),G},{})},A=function(V){t(W,V);function W(){var G,J,X,te;y(this,W);for(var ee=arguments.length,be=Array(ee),ge=0;ge3&&(d=_.call(d,1));for(var p=g.length,a=0;a4&&(d=_.call(d,1,d.length-1));for(var p=d[d.length-1],a=g.length,f=0;fthis._ux||i(E-this._yi)>this._uy||this._len<5;return this.addData(s.L,y,E),this._ctx&&t&&(this._needsDash()?this._dashedLineTo(y,E):this._ctx.lineTo(y,E)),t&&(this._xi=y,this._yi=E),this},bezierCurveTo:function(y,E,t,C,A,v){return this.addData(s.C,y,E,t,C,A,v),this._ctx&&(this._needsDash()?this._dashedBezierTo(y,E,t,C,A,v):this._ctx.bezierCurveTo(y,E,t,C,A,v)),this._xi=A,this._yi=v,this},quadraticCurveTo:function(y,E,t,C){return this.addData(s.Q,y,E,t,C),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(y,E,t,C):this._ctx.quadraticCurveTo(y,E,t,C)),this._xi=t,this._yi=C,this},arc:function(y,E,t,C,A,v){return this.addData(s.A,y,E,t,t,C,A-C,0,v?0:1),this._ctx&&this._ctx.arc(y,E,t,C,A,v),this._xi=b(A)*t+y,this._yi=m(A)*t+E,this},arcTo:function(y,E,t,C,A){return this._ctx&&this._ctx.arcTo(y,E,t,C,A),this},rect:function(y,E,t,C){return this._ctx&&this._ctx.rect(y,E,t,C),this.addData(s.R,y,E,t,C),this},closePath:function(){this.addData(s.Z);var y=this._ctx,E=this._x0,t=this._y0;return y&&(this._needsDash()&&this._dashedLineTo(E,t),y.closePath()),this._xi=E,this._yi=t,this},fill:function(y){y&&y.fill(),this.toStatic()},stroke:function(y){y&&y.stroke(),this.toStatic()},setLineDash:function(y){if(y instanceof Array){this._lineDash=y,this._dashIdx=0;for(var E=0,t=0;tE.length&&(this._expandData(),E=this.data);for(var t=0;t0&&R<=y||c<0&&R>=y||c===0&&(M>0&&k<=E||M<0&&k>=E);){if(V=this._dashIdx,I=A[V],R+=c*I,k+=M*I,this._dashIdx=(V+1)%F,c>0&&Ro||M>0&&kl)continue;v[V%2?"moveTo":"lineTo"](c>=0?f(R,y):x(R,y),M>=0?f(k,E):x(k,E))}c=R-y,M=k-E,this._dashOffset=-O(c*c+M*M)},_dashedBezierTo:function(y,E,t,C,A,v){var o=this._dashSum,l=this._dashOffset,c=this._lineDash,M=this._ctx,P=this._xi,R=this._yi,k,I,F,V=Y.cubicAt,W=0,G=this._dashIdx,J=c.length,X,te,ee=0;for(l<0&&(l=o+l),l%=o,k=0;k<1;k+=.1)I=V(P,y,t,A,k+.1)-V(P,y,t,A,k),F=V(R,E,C,v,k+.1)-V(R,E,C,v,k),W+=O(I*I+F*F);for(;Gl);G++);for(k=(ee-l)/W;k<=1;)X=V(P,y,t,A,k),te=V(R,E,C,v,k),G%2?M.moveTo(X,te):M.lineTo(X,te),k+=c[G]/W,G=(G+1)%J;G%2!==0&&M.lineTo(A,v),I=A-X,F=v-te,this._dashOffset=-O(I*I+F*F)},_dashedQuadraticTo:function(y,E,t,C){var A=t,v=C;t=(t+2*y)/3,C=(C+2*E)/3,y=(this._xi+2*y)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(y,E,t,C,A,v)},toStatic:function(){var y=this.data;y instanceof Array&&(y.length=this._len,r&&(this.data=new Float32Array(y)))},getBoundingRect:function(){d[0]=d[1]=p[0]=p[1]=Number.MAX_VALUE,w[0]=w[1]=a[0]=a[1]=-Number.MAX_VALUE;for(var y=this.data,E=0,t=0,C=0,A=0,v=0;vc||i(l-v)>M||R===P-1)&&(y.lineTo(o,l),A=o,v=l);break;case s.C:y.bezierCurveTo(E[R++],E[R++],E[R++],E[R++],E[R++],E[R++]),A=E[R-2],v=E[R-1];break;case s.Q:y.quadraticCurveTo(E[R++],E[R++],E[R++],E[R++]),A=E[R-2],v=E[R-1];break;case s.A:var I=E[R++],F=E[R++],V=E[R++],W=E[R++],G=E[R++],J=E[R++],X=E[R++],te=E[R++],ee=V>W?V:W,be=V>W?1:V/W,ge=V>W?W/V:1,je=Math.abs(V-W)>.001,He=G+J;je?(y.translate(I,F),y.rotate(X),y.scale(be,ge),y.arc(0,0,ee,G,He,1-te),y.scale(1/be,1/ge),y.rotate(-X),y.translate(-I,-F)):y.arc(I,F,ee,G,He,1-te),R===1&&(t=b(G)*V+I,C=m(G)*W+F),A=b(He)*V+I,v=m(He)*W+F;break;case s.R:t=A=E[R],C=v=E[R+1],y.rect(E[R++],E[R++],E[R++],E[R++]);break;case s.Z:y.closePath(),A=t,v=C}}}},u.CMD=s;var h=u;Ye.exports=h},ItGF:function(Ye,ie){var _={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?_={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?_={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?_={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:_=j(navigator.userAgent);var Y=_;function j(L){var U={},S={},g=L.match(/Firefox\/([\d.]+)/),s=L.match(/MSIE\s([\d.]+)/)||L.match(/Trident\/.+?rv:(([\d.]+))/),d=L.match(/Edge\/([\d.]+)/),w=/micromessenger/i.test(L);return g&&(S.firefox=!0,S.version=g[1]),s&&(S.ie=!0,S.version=s[1]),d&&(S.edge=!0,S.version=d[1]),w&&(S.weChat=!0),{browser:S,os:U,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!S.ie&&!S.edge,pointerEventsSupported:"onpointerdown"in window&&(S.edge||S.ie&&S.version>=11),domSupported:typeof document!="undefined"}}Ye.exports=Y},JNOM:function(Ye,ie,_){"use strict";_.r(ie);var Y=_("Znn+"),j=_("ZTPi"),L=_("qVdP"),U=_("jsC+"),S=_("+L6B"),g=_("2/Rp"),s=_("sPJy"),d=_("bE4q"),w=_("miYZ"),p=_("tsqr"),a=_("lUTK"),f=_("BvKs"),x=_("9og8"),b=_("2qtc"),m=_("kLXV"),O=_("oBTY"),i=_("k1fw"),r=_("tJVT"),u=_("PpiC"),h=_("WmNS"),y=_.n(h),E=_("q1tI"),t=_.n(E),C=_("ErOA"),A=_("Ty5D"),v=_("55Ip"),o=_("9kvl"),l=_("jhfD"),c=_("Llu2"),M=_("0NbB"),P=_("V0Rq"),R=_("1vsH"),k=_("mgmH"),I=_("7Kak"),F=_("9yH6"),V=_("DjyN"),W=_("NUBc"),G=_("giR+"),J=_("fyUT"),X=_("5NDa"),te=_("5rEg"),ee=_("sRBo"),be=_("kaz8"),ge=_("g9YV"),je=_("wCAj"),He=_("BoS7"),nt=_("Sdc0"),Ge=_("14J3"),he=_("BMrR"),ce=_("jCWc"),Ee=_("kPKH"),fe=_("5Dmo"),Ne=_("3S7+"),Ce=_("jrin"),xe=_("y8nQ"),ze=_("Vl3Y"),Le=_("wd/R"),Fe=_.n(Le),Pe=function(In){var En=In.shixunHomeworks,Or=In.dispatch,yr=Object(A.i)();return t.a.createElement(m.a,{centered:!0,title:"\u63D0\u793A",visible:En.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(x.a)(y.a.mark(function zr(){var Zn;return y.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.next=2,Object(C.a)("/api/myshixuns/".concat(En.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"post",body:{course_id:yr.coursesId}});case 2:Zn=rr.sent,Zn.status===0&&(p.b.success("\u5220\u9664\u6210\u529F"),Or({type:"shixunHomeworks/setActionTabs",payload:{}}),Or({type:"shixunHomeworks/getWorkList",payload:Object(i.a)({},En.actionTabs.params)}));case 4:case"end":return rr.stop()}},zr)})),onCancel:function(){Or({type:"shixunHomeworks/setActionTabs",payload:{}})}},t.a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),t.a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))},Ve=Object(o.a)(function(tr){var In=tr.shixunHomeworks;return{shixunHomeworks:In}})(Pe),at=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr=In.exercise,sa=In.dispatch,Qn=Object(A.i)(),Hr=Object(E.useState)(!0),ha=Object(r.a)(Hr,2),Ma=ha[0],la=ha[1],Ir=ze.a.useForm(),mr=Object(r.a)(Ir,1),Kr=mr[0],ra=Pr.actionTabs;return Object(E.useEffect)(function(){if(Pr.actionTabs.key==="\u66F4\u6539\u8BC4\u9605"){var Er,wn,fa,Mr;Kr.resetFields(),Kr.setFieldsValue({subjective_score:ra==null||((Er=ra.selectArrs)===null||Er===void 0||((wn=Er.record)===null||wn===void 0))?void 0:wn.subjective_score,objective_score:ra==null||((fa=ra.selectArrs)===null||fa===void 0||((Mr=fa.record)===null||Mr===void 0))?void 0:Mr.objective_score})}},[Pr.actionTabs.key]),t.a.createElement(t.a.Fragment,null,t.a.createElement(m.a,{centered:!0,title:"\u8BC4\u9605",visible:Pr.actionTabs.key==="\u66F4\u6539\u8BC4\u9605",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(x.a)(y.a.mark(function Er(){var wn,fa,Mr,$e;return y.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return vt.next=2,Kr.validateFields();case 2:return Mr=Kr.getFieldValue(),vt.next=5,Object(P.O)(Object(i.a)(Object(i.a)({},Mr),{},{id:Qn.categoryId,user_id:ra==null||((wn=ra.selectArrs)===null||wn===void 0||((fa=wn.record)===null||fa===void 0))?void 0:fa.user_id}));case 5:$e=vt.sent,$e.status===0&&(p.b.success("\u8BC4\u9605\u6210\u529F"),Kr.resetFields(),sa({type:"exercise/setActionTabs",payload:{}}),sa({type:"exercise/getExerciseList",payload:Object(i.a)({},Pr.actionTabs.params)}));case 7:case"end":return vt.stop()}},Er)})),onCancel:function(){sa({type:"exercise/setActionTabs",payload:{}})}},t.a.createElement("div",{className:"pl30"},t.a.createElement(ze.a,{form:Kr},t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement(ze.a.Item,{name:"subjective_score",label:"\u4E3B\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},t.a.createElement(J.a,{min:0,max:(ra==null||((En=ra.selectArrs)===null||En===void 0||((Or=En.exercise_types)===null||Or===void 0))?void 0:Or.subjective_score)*1,style:{width:150},placeholder:"\u8BF7\u586B\u5199\u4E3B\u89C2\u9898\u6210\u7EE9"}))),t.a.createElement(Ee.a,{flex:1},t.a.createElement("div",null,t.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",ra==null||((yr=ra.selectArrs)===null||yr===void 0||((zr=yr.exercise_types)===null||zr===void 0))?void 0:zr.subjective_score,"\u5206")))),t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement(ze.a.Item,{name:"objective_score",label:"\u5BA2\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},t.a.createElement(J.a,{min:0,max:(ra==null||((Zn=ra.selectArrs)===null||Zn===void 0||((An=Zn.exercise_types)===null||An===void 0))?void 0:An.objective_score)*1,style:{width:150},width:150,placeholder:"\u8BF7\u586B\u5199\u5BA2\u89C2\u9898\u6210\u7EE9"}))),t.a.createElement(Ee.a,{flex:1},t.a.createElement("div",null,t.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",ra==null||((rr=ra.selectArrs)===null||rr===void 0||((ar=rr.exercise_types)===null||ar===void 0))?void 0:ar.objective_score,"\u5206"))))))))},At=Object(o.a)(function(tr){var In=tr.exercise;return{exercise:In}})(at),Rt=[{name:"\u672A\u8BC4\u9605",id:0,type:"unreview_counts"},{name:"\u8BC4\u9605\u4E2D",id:2,type:"reviewing_counts"},{name:"\u5DF2\u8BC4\u9605",id:1,type:"review_counts"}],tn=[{name:"\u672A\u5F00\u59CB",id:0,type:"unanswer_users"},{name:"\u8003\u8BD5\u4E2D",id:1,type:"answering_users"},{name:"\u5DF2\u4EA4\u5377",id:2,type:"answer_users"},{name:"\u5DF2\u4EA4\u5377/\u672A\u7B54",id:3,type:"commit_with_no_answers_users"}],Qt=[{name:"\u65E0\u9700\u8865\u8003",id:0,type:"unmake_up_users_count"},{name:"\u53C2\u52A0\u8865\u8003",id:1,type:"make_up_users_count"}],Cn=_("BdwD"),Un=_("iQDF"),mt=_("+eQT"),lt=function(In){var En,Or,yr=In.exercise,zr=In.dispatch,Zn=Object(A.i)(),An=Object(E.useState)(!0),rr=Object(r.a)(An,2),ar=rr[0],Pr=rr[1],sa=ze.a.useForm(),Qn=Object(r.a)(sa,1),Hr=Qn[0],ha=Object(E.useState)(!1),Ma=Object(r.a)(ha,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)({}),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=yr.actionTabs;Object(E.useEffect)(function(){if(yr.actionTabs.key==="\u5EF6\u65F6"){var pt,vt,Me,we;Ir(!1),Hr.resetFields(),Hr.setFieldsValue({subjective_score:wn==null||((pt=wn.selectArrs)===null||pt===void 0||((vt=pt.record)===null||vt===void 0))?void 0:vt.subjective_score,objective_score:wn==null||((Me=wn.selectArrs)===null||Me===void 0||((we=Me.record)===null||we===void 0))?void 0:we.objective_score})}},[yr.actionTabs.key]);var fa=function(vt){var Me,we;return console.log("current:",vt,Fe()(wn==null||((Me=wn.selectArrs)===null||Me===void 0)?void 0:Me.exercise_end_at).startOf("minute")),vt&&(vt>Fe()(wn==null||((we=wn.selectArrs)===null||we===void 0)?void 0:we.exercise_end_at).endOf("minute")||vt<=Fe()().startOf("day"))};function Mr(pt,vt){for(var Me=[],we=pt;weFe()(wn==null||((we=wn.selectArrs)===null||we===void 0)?void 0:we.exercise_end_at)){var Ke;Hr.setFieldsValue({time:Fe()(wn==null||((Ke=wn.selectArrs)===null||Ke===void 0)?void 0:Ke.exercise_end_at).format("YYYY-MM-DD HH:mm")})}}})))),t.a.createElement(he.a,{style:{marginLeft:78,marginTop:4}},t.a.createElement(ze.a.Item,{name:"is_clear",className:"ml10",initialValue:!1,valuePropName:"checked"},t.a.createElement(be.a,null,"\u786E\u8BA4\u6E05\u9664\u8BE5\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570")))))))},Ht=Object(o.a)(function(tr){var In=tr.exercise;return{exercise:In}})(lt),sn=_("kaH+"),Tt=_("dhSg"),wt=_("xKgJ"),Qe=_("hjlX"),Je=_.n(Qe),Xe=function(In){var En=In.item,Or=In.renderText,yr=Object(A.i)(),zr=Object(E.useState)(),Zn=Object(r.a)(zr,2),An=Zn[0],rr=Zn[1],ar=function(){var Pr=Object(x.a)(y.a.mark(function sa(){var Qn;return y.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(!An){ha.next=2;break}return ha.abrupt("return");case 2:return ha.next=4,Object(P.B)({id:yr.categoryId,user_id:En==null?void 0:En.user_id});case 4:Qn=ha.sent,Qn&&rr(Qn);case 6:case"end":return ha.stop()}},sa)}));return function(){return Pr.apply(this,arguments)}}();return t.a.createElement(Ne.a,{onVisibleChange:ar,title:t.a.createElement("div",null,"\u5355\u9009\u9898 ",An==null?void 0:An.single_question_score,"\u5206 ",t.a.createElement("br",null),"\u591A\u9009\u9898 ",An==null?void 0:An.multiple_question_score,"\u5206 ",t.a.createElement("br",null),"\u5224\u65AD\u9898 ",An==null?void 0:An.judgement_question_score,"\u5206 ",t.a.createElement("br",null),"\u586B\u7A7A\u9898 ",An==null?void 0:An.completion_question_score,"\u5206 ",t.a.createElement("br",null),"\u5B9E\u8BAD\u9898 ",An==null?void 0:An.shixun_question_score,"\u5206")},Or)},Oe=Xe,Ae=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa,Qn,Hr,ha,Ma,la,Ir,mr,Kr,ra,Er,wn,fa,Mr,$e,pt,vt,Me,we,Ke,De,st,ct,Bt,gt,zt,Ft,on=In.exercise,yn=In.loading,zn=In.dispatch,gr=In.globalSetting,Xr=In.checkDomainAuthority,Jr=In.getparams,aa=Object(u.a)(In,["exercise","loading","dispatch","globalSetting","checkDomainAuthority","getparams"]),hn=Object(A.h)(),Lr=Object(A.i)(),oa=Object(E.useState)(Object(i.a)({},Lr)),ba=Object(r.a)(oa,2),_t=ba[0],Wr=ba[1],un=on.exerciseList,Rn=on.commonHeader,xr=Object(E.useState)({}),Ca=Object(r.a)(xr,2),Nr=Ca[0],Sr=Ca[1],xa=Object(E.useState)(""),Vr=Object(r.a)(xa,2),nr=Vr[0],Fr=Vr[1],Wn=Object(E.useState)(0),pn=Object(r.a)(Wn,2),Rr=pn[0],qn=pn[1],Ar=Object(E.useState)({}),Da=Object(r.a)(Ar,2),Ia=Da[0],La=Da[1],Br=Object(E.useState)(!1),$r=Object(r.a)(Br,2),ka=$r[0],Na=$r[1],qa=Object(E.useState)("alert"),ii=Object(r.a)(qa,2),ri=ii[0],Ka=ii[1],Ai=Object(E.useState)(0),Ri=Object(r.a)(Ai,2),$a=Ri[0],Ga=Ri[1],ui=Object(E.useState)(!1),Ji=Object(r.a)(ui,2),wo=Ji[0],Ii=Ji[1],Zi=Object(E.useState)(!1),qi=Object(r.a)(Zi,2),wi=qi[0],$i=qi[1],ho=ze.a.useForm(),mo=Object(r.a)(ho,1),Ti=mo[0],Ra=Object(E.useState)([]),Sa=Object(r.a)(Ra,2),wa=Sa[0],Ja=Sa[1],oi=Object(E.useState)(!0),bi=Object(r.a)(oi,2),li=bi[0],ro=bi[1],po=Object(E.useRef)(),pi=Object(E.useState)(1),Hi=Object(r.a)(pi,2),vi=Hi[0],Ki=Hi[1],Gi=Object(E.useState)(""),So=Object(r.a)(Gi,2),vo=So[0],go=So[1],bo=Object(E.useState)(),Vi=Object(r.a)(bo,2),oo=Vi[0],Ro=Vi[1],yo=Object(E.useState)(!1),so=Object(r.a)(yo,2),Oo=so[0],To=so[1];Object(E.useEffect)(function(){var ma;if(Object(wt.c)()){var dr;qn((dr=un.exercise_types)===null||dr===void 0?void 0:dr.total_users)}else if(un!=null&&(ma=un.exercise_types)!==null&&ma!==void 0&&ma.score_open){var hr;qn((hr=un.exercise_types)===null||hr===void 0?void 0:hr.unanswer_users)}},[un]),Object(E.useEffect)(function(){var ma,dr={};if(hn!=null&&(ma=hn.query)!==null&&ma!==void 0&&ma.exercise_group_id){var hr;if(dr={review:[0,2],commit_status:[2,3]},(hn==null||((hr=hn.query)===null||hr===void 0)?void 0:hr.exercise_group_id)!=="0"){var ya;dr.exercise_group_id=[Number(hn==null||((ya=hn.query)===null||ya===void 0)?void 0:ya.exercise_group_id)]}Ti.setFieldsValue(Object(i.a)({},dr))}_t=Object(i.a)(Object(i.a)({},_t),dr),Wr(Object(i.a)({},_t)),zn({type:"exercise/getExerciseList",payload:_t}),zn({type:"exercise/clearData",payload:{key:"reviewExercise"}})},[]);function Do(ma){return Ci.apply(this,arguments)}function Ci(){return Ci=Object(x.a)(y.a.mark(function ma(dr){var hr,ya,di,_i,ci;return y.a.wrap(function(Pi){for(;;)switch(Pi.prev=Pi.next){case 0:return Ro(dr==null?void 0:dr.exercise_user_id),To(dr.commit_status===2||dr.commit_status===3),Ii(!0),Pi.next=5,Object(C.a)("/api/exercises/".concat(_t.categoryId,"/student_info.json"),{method:"get",params:{exercise_user_id:dr==null?void 0:dr.exercise_user_id}});case 5:ci=Pi.sent,(ci==null||((hr=ci.data)===null||hr===void 0||((ya=hr.exercise_user_photos)===null||ya===void 0))?void 0:ya.length)>0?Na(!0):p.b.info("\u5F53\u524D\u6682\u65E0\u7167\u7247"),Ja(ci==null||((di=ci.data)===null||di===void 0)?void 0:di.exercise_user_photos),Ga(ci==null||((_i=ci.data)===null||_i===void 0)?void 0:_i.alert_count),Ii(!1);case 10:case"end":return Pi.stop()}},ma)})),Ci.apply(this,arguments)}var ai=function(dr){_t.page=1;var hr=Object.assign({},Ti.getFieldValue());if(Object.keys(hr).map(function(ya){if(ya==="objective_score_gte"||ya==="objective_score_lte")return;hr[ya].includes("all")?(delete _t[ya],Ti.setFieldsValue(Object(Ce.a)({},ya,"all"))):(_t[ya]=hr[ya],hr[ya]==""||!hr[ya]?Ti.setFieldsValue(Object(Ce.a)({},ya,"all")):Ti.setFieldsValue(Object(Ce.a)({},ya,_t[ya])))}),dr.objective_score_gte||dr.objective_score_lte){if(hr.objective_score_gte>hr.objective_score_lte)return Ti.setFieldsValue({objective_score_lte:hr.objective_score_gte}),!1;if(hr.objective_score_gte!=""&&hr.objective_score_lte!=""&&hr.objective_score_gte&&hr.objective_score_lte)_t.objective_score_lte=hr.objective_score_lte,_t.objective_score_gte=hr.objective_score_gte;else return delete _t.objective_score_lte,delete _t.objective_score_gte,!1}Wr(Object(i.a)({},_t)),Jr(Object(i.a)({},_t)),zn({type:"exercise/getExerciseList",payload:_t})},yi=function(dr,hr){_t.page=dr,_t.limit=20,zn({type:"exercise/getExerciseList",payload:Object(i.a)({},_t)})},ti=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",width:80,align:"center",render:function(dr,hr,ya){return t.a.createElement(Ne.a,{title:((_t.page||1)-1)*20+ya+1},t.a.createElement("span",null,((_t.page||1)-1)*20+ya+1))}},{title:"\u59D3\u540D",dataIndex:"user_name",fixed:"left",width:120,ellipsis:!0,align:"left",render:function(dr,hr){return t.a.createElement("div",null,dr||"--",!!(hr!=null&&hr.delayed_at)&&t.a.createElement(Ne.a,{title:t.a.createElement("div",null,"\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u8C03\u6574\u81F3",t.a.createElement("span",{className:"ml5"},Fe()(hr.delayed_at).format("YYYY-MM-DD HH:mm")))},t.a.createElement("span",{className:"iconfont icon-shizhong c-blue"})))}},!(un!=null&&(En=un.exercise_types)!==null&&En!==void 0&&En.is_excellent)&&{title:"\u5B66\u53F7",ellipsis:!0,dataIndex:"student_id",width:140,align:"left",sorter:!0,render:function(dr){return dr||"--"}},!(un!=null&&(Or=un.exercise_types)!==null&&Or!==void 0&&Or.is_excellent)&&(un==null||((yr=un.exercise_types)===null||yr===void 0)?void 0:yr.groups_count)!==0&&{title:"\u5206\u73ED",width:220,ellipsis:!0,dataIndex:"user_group_name",align:"left",render:function(dr){return dr||"--"}},{title:"\u6700\u7EC8\u6210\u7EE9",width:100,dataIndex:"score",align:"center",sorter:!0,render:function(dr,hr){return!hr.open_total_score&&Object(wt.s)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(dr=typeof dr=="number"?Number(dr):dr,dr===100?t.a.createElement("span",{className:"c-green"},dr||"--"):dr>60?t.a.createElement("span",{className:"c-orange"},dr||"--"):t.a.createElement("span",null,dr||"--"))}},!((un==null||((zr=un.exercise_types)===null||zr===void 0)?void 0:zr.objective)!==1||(un==null||((Zn=un.exercise_types)===null||Zn===void 0)?void 0:Zn.objective)===1&&(un==null||((An=un.exercise_types)===null||An===void 0)?void 0:An.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",width:100,render:function(dr,hr){if(!hr.open_total_score&&Object(wt.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";dr=typeof dr=="number"?Number(dr):dr;var ya;return dr>=0&&dr<=60?ya=t.a.createElement("span",null,dr):dr===100?ya=t.a.createElement("span",{className:"c-green"},dr):dr>60?ya=t.a.createElement("span",{className:"c-orange"},dr):ya="--",t.a.createElement(Oe,{renderText:ya,item:hr})}},!((un==null||((rr=un.exercise_types)===null||rr===void 0)?void 0:rr.subjective)!==1||(un==null||((ar=un.exercise_types)===null||ar===void 0)?void 0:ar.subjective)===1&&(un==null||((Pr=un.exercise_types)===null||Pr===void 0)?void 0:Pr.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",width:100,dataIndex:"subjective_score",align:"center",render:function(dr,hr){if(!hr.open_total_score&&Object(wt.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";dr=typeof dr=="number"?Number(dr):dr;var ya;return dr===0?ya=t.a.createElement("span",null,dr," ",t.a.createElement("span",{className:"c-red"}," (\u5F85\u8BC4\u5BA1)")):dr>0&&dr<=60?ya=t.a.createElement("span",null,dr):dr===100?ya=t.a.createElement("span",{className:"c-green"},dr):dr>60?ya=t.a.createElement("span",{className:"c-orange"},dr):ya="--",ya}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",width:130,align:"left",render:function(dr,hr){return dr===0?t.a.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):dr===1?t.a.createElement("span",{style:{color:"#DF3042"}},!hr.is_make_up&&"\u8003\u8BD5\u4E2D",hr.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):dr===2?t.a.createElement("span",{style:{color:"#5AB891"}},!hr.is_make_up&&"\u5DF2\u4EA4\u5377",hr.is_make_up&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)"):t.a.createElement("span",{style:{color:"#5AB891"}},!hr.is_make_up&&"\u5DF2\u4EA4\u5377\uFF08\u672A\u7B54\uFF09",hr.is_make_up&&"\u5DF2\u4EA4\u5377/\u672A\u7B54\uFF08\u8865\u8003\uFF09")}},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(dr){return dr?Fe()(dr).format("YYYY-MM-DD HH:mm"):"--"}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(dr){return dr?Fe()(dr).format("YYYY-MM-DD HH:mm"):"--"}},(Rn==null?void 0:Rn.screen_open)&&{title:t.a.createElement("span",null,"\u5207\u5C4F\u6B21\u6570 ",t.a.createElement(Ne.a,{title:"\u7EA2\u8272\u4EE3\u8868\u5B66\u751F\u5207\u5C4F\u8D85\u8FC7\u89C4\u5B9A\u6B21\u6570\u88AB\u5F3A\u5236\u4EA4\u5377"},t.a.createElement("span",{className:"icon-xiaowenhao"}))),dataIndex:"screen_used_num",width:145,ellipsis:!0,align:"center",render:function(dr,hr){return t.a.createElement("span",{className:dr>(hr==null?void 0:hr.screen_total_num)&&"c-red"},dr,"/",hr==null?void 0:hr.screen_total_num)}},(Rn==null?void 0:Rn.exercise_status)>1&&(Rn==null?void 0:Rn.open_camera)&&Object(wt.c)()&&!((sa=gr.setting)!==null&&sa!==void 0&&sa.is_local)&&{title:"\u8003\u8BD5\u7167\u7247",dataIndex:"photo_count",align:"center",width:100,render:function(dr,hr){return hr.commit_status>0?t.a.createElement("a",{onClick:function(){Do(hr)}},"".concat(dr||0,"/").concat(Rn==null?void 0:Rn.photo_count)):"--"}},(Rn==null?void 0:Rn.ip_bind)&&Object(wt.d)()&&{title:"\u8003\u8BD5IP",dataIndex:"last_ip",align:"center",width:100,render:function(dr,hr){return t.a.createElement(t.a.Fragment,null,dr||"--",hr.commit_status===1&&Rn.ip_bind&&hr.last_ip&&t.a.createElement(g.a,{type:"link",onClick:Object(x.a)(y.a.mark(function ya(){var di;return y.a.wrap(function(ci){for(;;)switch(ci.prev=ci.next){case 0:di=m.a.confirm({title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u89E3\u9664\u7ED1\u5B9A"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return di.destroy()}}))),width:500,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",className:"custom-modal-divider",content:t.a.createElement("div",null,"\u4E3A\u5B66\u751F\u89E3\u9664\u8003\u8BD5IP\u7ED1\u5B9A\u540E\uFF0C\u5B66\u751F\u53EF\u4EE5\u4F7F\u7528\u65B0\u7684IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002",t.a.createElement("span",{className:"c-red"},"\u5982\u679C\u8BE5\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u5C06\u65E0\u6CD5\u4F5C\u7B54\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u5165\u8003\u8BD5\u3002"),"\u60A8\u786E\u5B9A\u8981\u89E3\u9664\u8BE5\u5B66\u751F\u7684\u8003\u8BD5IP\u7ED1\u5B9A\uFF1F"),onOk:function(){var Bi=Object(x.a)(y.a.mark(function Ni(){var za;return y.a.wrap(function(ni){for(;;)switch(ni.prev=ni.next){case 0:return ni.next=2,Object(P.bb)({id:_t.categoryId,exercise_user_id:hr.exercise_user_id});case 2:za=ni.sent,za.status===0&&(p.b.success("\u89E3\u7ED1\u6210\u529F"),zn({type:"exercise/getExerciseList",payload:_t}));case 4:case"end":return ni.stop()}},Ni)}));function Pi(){return Bi.apply(this,arguments)}return Pi}()});case 1:case"end":return ci.stop()}},ya)}))},"\u89E3\u7ED1"))}},(Rn==null?void 0:Rn.open_camera)&&Object(wt.d)()&&Rn.exercise_status<3&&!((Qn=gr.setting)!==null&&Qn!==void 0&&Qn.is_local)&&{title:"\u5141\u8BB8\u4E0D\u62CD\u6444",dataIndex:"close_camera",align:"center",width:100,render:function(dr,hr){return t.a.createElement(nt.a,{checked:dr,onClick:Object(x.a)(y.a.mark(function ya(){return y.a.wrap(function(_i){for(;;)switch(_i.prev=_i.next){case 0:dr?m.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",null,"\u4E0D\u5141\u8BB8\u4FEE\u6539"),okText:"\u786E\u8BA4"}):m.a.confirm({title:"\u5141\u8BB8\u4E0D\u6444\u50CF\u8B66\u544A",content:t.a.createElement("div",null,"\u4E3A\u4FDD\u8BC1\u8003\u8BD5\u516C\u5E73\uFF0C\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7684\u6444\u50CF\u5934\u3002\u5982\u5B66\u751F\u786C\u4EF6\u8BBE\u65BD\u786E\u6709\u95EE\u9898\uFF0C\u4E3A\u4FDD\u8BC1\u5B66\u751F\u8003\u8BD5\u6743\u5229\uFF0C\u6559\u5E08\u53EF\u4E34\u65F6\u53D6\u6D88\u9650\u5236\uFF0C\u5141\u8BB8\u5B66\u751F\u53C2\u8003\u3002 \u672C\u64CD\u4F5C\u4E0D\u53EF\u64A4\u56DE\uFF0C\u4E0D\u53EF\u4FEE\u6539\u3002 \u60A8\u786E\u8BA4\u540C\u610F\u8BE5\u5B66\u751F\u4E0D\u5F00\u542F\u6444\u50CF\u5934\u53C2\u52A0\u8003\u8BD5\u5417\uFF1F"),onOk:function(){var ci=Object(x.a)(y.a.mark(function Pi(){var Ni;return y.a.wrap(function(Wa){for(;;)switch(Wa.prev=Wa.next){case 0:return Wa.next=2,Object(P.c)(Object(i.a)(Object(i.a)({},_t),{},{exercise_user_id:hr.exercise_user_id}));case 2:Ni=Wa.sent,(Ni==null?void 0:Ni.status)===0&&(p.b.success("\u64CD\u4F5C\u6210\u529F"),zn({type:"exercise/getExerciseList",payload:Object(i.a)({},_t)}));case 4:case"end":return Wa.stop()}},Pi)}));function Bi(){return ci.apply(this,arguments)}return Bi}()});case 1:case"end":return _i.stop()}},ya)}))})}},Object(wt.c)()&&{title:"\u8BC4\u9605\u72B6\u6001",width:130,dataIndex:"has_comment",align:"center",render:function(dr,hr){return!dr&&hr.review_status?"\u8BC4\u9605\u4E2D":dr?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},((Rn==null?void 0:Rn.assistant_auth)||Object(wt.c)()||Object(wt.s)())&&Xr&&{title:"\u64CD\u4F5C",fixed:"right",dataInex:"action",align:"center",width:236,render:function(dr,hr){return t.a.createElement("div",null,Object(wt.c)()&&t.a.createElement(g.a,{ghost:!0,type:"primary",size:"small",disabled:hr.commit_status<2},t.a.createElement("a",{className:hr.commit_status>1?"c-blue":"c-black",href:hr.commit_status>1&&"/classrooms/".concat(_t.coursesId,"/exercise/").concat(_t.categoryId,"/review/").concat(hr.login),onClick:function(di){hr.commit_status<2&&di.preventDefault(),hr.commit_status===3&&(di.preventDefault(),zn({type:"exercise/setActionTabs",payload:{key:"\u66F4\u6539\u8BC4\u9605",selectArrs:{record:Object(i.a)({},hr),exercise_types:Object(i.a)({},un==null?void 0:un.exercise_types)},params:Object(i.a)({},_t)}}))}},hr.has_comment&&"\u66F4\u6539\u8BC4\u9605",!hr.has_comment&&"\u8BC4\u9605")),!Object(wt.s)()&&["\u8003\u8BD5\u4E2D"].includes(R.c[Rn.exercise_status])&&t.a.createElement(g.a,{ghost:!0,type:"primary",disabled:(hr==null?void 0:hr.commit_status)>1,className:"ml10",size:"small",onClick:function(){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06\u8BE5\u5B66\u751F\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F",onOk:function(){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06".concat(hr==null?void 0:hr.user_name,"\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F"),onOk:function(){var _i=Object(x.a)(y.a.mark(function Bi(){var Pi;return y.a.wrap(function(za){for(;;)switch(za.prev=za.next){case 0:return za.next=2,Object(C.a)("/api/exercises/".concat(_t.categoryId,"/commit_exercise_force.json"),{method:"post",body:{user_id:hr==null?void 0:hr.user_id}});case 2:Pi=za.sent,Pi.status===0&&zn({type:"exercise/getExerciseList",payload:_t});case 4:case"end":return za.stop()}},Bi)}));function ci(){return _i.apply(this,arguments)}return ci}()})}})}},"\u5F3A\u5236\u4EA4\u5377"),Object(wt.s)()&&hr.commit_status>1&&t.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var di;if(!(un!=null&&(di=un.exercise_types)!==null&&di!==void 0&&di.answered_open)){p.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}o.d.push("/classrooms/".concat(_t.coursesId,"/exercise/").concat(_t.categoryId,"/users/").concat(hr==null?void 0:hr.login,"?check=true"))}},"\u67E5\u770B"),(Rn==null?void 0:Rn.exercise_time)>0&&Object(wt.d)()&&t.a.createElement(Ne.a,{title:function(){return Object(wt.k)()?"\u60A8\u7684\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u7BA1\u7406\u5458":Rn.exercise_status===3?"\u672C\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u8BF7\u5148\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u4F7F\u672C\u8BD5\u5377\u5904\u4E8E\u201C\u8003\u8BD5\u4E2D\u201D":!1}()},t.a.createElement(g.a,{danger:!0,className:"c-red ml10",size:"small",disabled:function(){return Object(wt.k)()?!0:Rn.exercise_status===3}(),onClick:function(){Object(wt.i)()&&zn({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",selectArrs:hr,exercise_time:Rn.exercise_time,params:Object(i.a)({},_t)}})}},"\u5EF6\u65F6")))}}].filter(function(ma){return!!ma}),Qa=Object(O.a)(ti);return Qa[0]=Object(i.a)({},Qa[0]),Qa[(Qa==null?void 0:Qa.length)-1]=Object(i.a)({},Qa[(Qa==null?void 0:Qa.length)-1]),Qa[0].render=function(){return"\u6211"},Qa[(Qa==null?void 0:Qa.length)-1].render=function(){var ma;return un!=null&&(ma=un.current_answer_user)!==null&&ma!==void 0&&ma.login?t.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var hr,ya;if(!(un!=null&&(hr=un.exercise_types)!==null&&hr!==void 0&&hr.answered_open)){p.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}o.d.push("/classrooms/".concat(_t.coursesId,"/exercise/").concat(_t.categoryId,"/users/").concat(un==null||((ya=un.current_answer_user)===null||ya===void 0)?void 0:ya.login))}},"\u67E5\u770B"):"--"},t.a.createElement("section",{className:"minH500 bg-white mb50 inline-block w100"},(un==null||((Hr=un.exercise_types)===null||Hr===void 0)?void 0:Hr.score_open)&&Object(wt.s)()&&t.a.createElement(je.a,{hideOnSinglePage:!0,pagination:!1,showHeader:!1,dataSource:[Object(i.a)({},un==null?void 0:un.current_answer_user)],columns:Qa,scroll:{x:(ti==null?void 0:ti.length)*120}}),!Object(wt.c)()&&t.a.createElement("div",{className:"bg-white pt10 pl25 mt15"},!!(un!=null&&(ha=un.exercise_types)!==null&&ha!==void 0&&ha.answer_users)&&t.a.createElement("span",{className:"mr10"},t.a.createElement("span",{style:{color:"#FF954C"}},un==null||((Ma=un.exercise_types)===null||Ma===void 0)?void 0:Ma.answer_users," "),"\u5DF2\u4EA4"),!!(un!=null&&(la=un.exercise_types)!==null&&la!==void 0&&la.unanswer_users)&&t.a.createElement("span",{className:"mr10"},un==null||((Ir=un.exercise_types)===null||Ir===void 0)?void 0:Ir.unanswer_users,"\u672A\u4EA4"),(un==null||((mr=un.exercise_types)===null||mr===void 0)?void 0:mr.exercise_end_time)!=="--"&&t.a.createElement("span",null,"\u5269\u4F59\u63D0\u4EA4\u65F6\u95F4\uFF1A",t.a.createElement("span",{style:{color:"#FF954C"}},un==null||((Kr=un.exercise_types)===null||Kr===void 0)?void 0:Kr.exercise_end_time))),!((ra=un.exercise_types)!==null&&ra!==void 0&&ra.exercise_all_users)&&!Object(wt.s)()&&t.a.createElement(Cn.a,null),(!!((Er=un.exercise_types)!==null&&Er!==void 0&&Er.exercise_all_users)||Object(wt.s)())&&t.a.createElement("aside",null,Object(wt.c)()&&t.a.createElement("aside",{className:"pt20"},t.a.createElement(ze.a,{form:Ti,onValuesChange:ai,initialValues:(wn={},Object(Ce.a)(wn,"commit_status","all"),Object(Ce.a)(wn,"exercise_group_id","all"),Object(Ce.a)(wn,"review","all"),Object(Ce.a)(wn,"is_make_up","all"),wn)},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u9009\u62E9\u73ED\u7EA7:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!((fa=Nr.course_group)!==null&&fa!==void 0&&fa.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},un.course_groups&&un.course_groups.map(function(ma,dr){return t.a.createElement(be.a,{value:ma.exercise_group_id,className:"ml0 mr8"},ma.exercise_group_name,"(",ma.exercise_group_students,")")}))))),t.a.createElement(ze.a.Item,{name:"commit_status"},t.a.createElement(be.a.Group,{value:[],style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u63D0\u4EA4\u72B6\u6001:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!((Mr=Nr.commit_status)!==null&&Mr!==void 0&&Mr.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},tn.map(function(ma,dr){var hr;return t.a.createElement(be.a,{name:"commit_status",value:ma.id},ma.name,"(",un==null||((hr=un.exercise_types)===null||hr===void 0)?void 0:hr[ma.type],")")}))))),t.a.createElement(ze.a.Item,{name:"review"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u8BC4\u9605\u72B6\u6001:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!(($e=Nr.review)!==null&&$e!==void 0&&$e.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},Rt==null?void 0:Rt.map(function(ma,dr){var hr;return t.a.createElement(be.a,{value:ma.id,key:dr},ma.name,"(",un==null||((hr=un.exercise_types)===null||hr===void 0)?void 0:hr[ma.type],")")}))))),(un==null||((pt=un.exercise_types)===null||pt===void 0)?void 0:pt.open_make_up)&&t.a.createElement(ze.a.Item,{name:"is_make_up"},t.a.createElement(be.a.Group,{value:[],style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u8865\u8003\u72B6\u6001:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!((vt=Nr.is_make_up)!==null&&vt!==void 0&&vt.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},Qt.map(function(ma,dr){var hr;return t.a.createElement(be.a,{name:"is_make_up",value:ma.id},ma.name,"(",un==null||((hr=un.exercise_types)===null||hr===void 0)?void 0:hr[ma.type],")")}))))),t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,null,t.a.createElement(te.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(dr){_t.search=dr,zn({type:"exercise/getExerciseList",payload:Object(i.a)(Object(i.a)({},_t),{},{page:1})})},style:{width:240}})))),!(Rn!=null&&Rn.is_random)&&t.a.createElement(Ee.a,{className:["tr",Je.a.rightFilter].join(" ")},((Me=un.exercise_types)===null||Me===void 0?void 0:Me.objective)===1&&((we=un.exercise_types)===null||we===void 0?void 0:we.subjective)===1&&t.a.createElement(t.a.Fragment,null,"\u6309\u5BA2\u89C2\u9898\u5F97\u5206\u5206\u7EC4",t.a.createElement("span",null,t.a.createElement(ze.a.Item,{name:"objective_score_gte"},t.a.createElement(J.a,{min:0,max:un==null||((Ke=un.exercise_types)===null||Ke===void 0)?void 0:Ke.objective_score,placeholder:"\u6700\u4F4E"}))),t.a.createElement("span",null,t.a.createElement(ze.a.Item,{name:"objective_score_lte"},t.a.createElement(J.a,{min:((De=_t)===null||De===void 0?void 0:De.objective_score_gte)||0,max:un==null||((st=un.exercise_types)===null||st===void 0)?void 0:st.objective_score,placeholder:"\u6700\u9AD8"})))),((ct=un.exercise_types)===null||ct===void 0?void 0:ct.subjective)===1&&Xr&&t.a.createElement(t.a.Fragment,null,t.a.createElement(g.a,{type:"default",disabled:(un==null||((Bt=un.total_exercise_users)===null||Bt===void 0)?void 0:Bt.length)<1},t.a.createElement(v.a,{to:"/classrooms/".concat(_t.coursesId,"/exercise/").concat(_t.categoryId,"/reviews/group")},t.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),t.a.createElement("span",null,"\u96C6\u4E2D\u6279\u91CF\u6279\u9605"))),t.a.createElement(g.a,{type:"default",disabled:(un==null||((gt=un.total_exercise_users)===null||gt===void 0)?void 0:gt.length)<1},t.a.createElement(v.a,{to:"/classrooms/".concat(_t.coursesId,"/exercise/").concat(_t.categoryId,"/review/").concat(un==null||((zt=un.total_exercise_users)===null||zt===void 0||((Ft=zt[0])===null||Ft===void 0))?void 0:Ft.user_login)},t.a.createElement("span",{className:"iconfont icon-filesync3x"}),t.a.createElement("span",null,"\u7EC4\u5185\u987A\u5E8F\u6279\u9605")))))))),t.a.createElement(je.a,{className:"mt30",loading:yn["exercise/getExerciseList"],hideOnSinglePage:!0,pagination:!1,dataSource:(un==null?void 0:un.exercise_users)||[],columns:ti,scroll:{x:(ti==null?void 0:ti.length)*120},size:"large",onChange:function(dr,hr,ya){_t.page=1,console.log(ya,444),ya.order===void 0?(_t.order_type=null,_t.order=null):(_t.order_type=ya.order==="descend"?"desc":"asc",_t.order=ya.field),zn({type:"exercise/getExerciseList",payload:Object(i.a)({},_t)})}}),Rr>20&&t.a.createElement("aside",{className:"tc mb50 pb30 mt30"},t.a.createElement(W.a,{onChange:yi,current:_t.page||1,defaultPageSize:20,total:Rr,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,showTotal:function(dr){return t.a.createElement("span",{className:"mr10"},"\u5171",t.a.createElement("span",{className:"c-orange"},dr),"\u6761\u6570\u636E")}}))),t.a.createElement(At,null),t.a.createElement(Ve,null),t.a.createElement(Ht,null),ka&&t.a.createElement(m.a,{title:"\u9632\u4F5C\u5F0A\u5934\u50CF",visible:ka,centered:!0,onCancel:function(){Ki(1),Na(!1),Ja([]),Ka("alert"),go("")},footer:t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("div",{style:{flex:1,textAlign:"left"}}," ",t.a.createElement(g.a,{onClick:Object(x.a)(y.a.mark(function ma(){var dr;return y.a.wrap(function(ya){for(;;)switch(ya.prev=ya.next){case 0:if(vo){ya.next=3;break}return p.b.info("\u8F93\u5165\u6846\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ya.abrupt("return");case 3:return $i(!0),ya.next=6,Object(C.a)("/api/exercises/".concat(_t.categoryId,"/send_alert.json"),{method:"post",body:{content:vo,clazz:ri,exercise_user_id:oo}});case 6:dr=ya.sent,(dr==null?void 0:dr.status)===0&&(p.b.info("\u53D1\u9001\u6210\u529F"),Ki(1),Na(!1),Ja([]),Ka("alert"),go("")),$i(!1);case 9:case"end":return ya.stop()}},ma)})),disabled:Oo,loading:wi},"\u53D1\u9001")),t.a.createElement(g.a,{disabled:(wa==null?void 0:wa.length)===0,style:{marginRight:"10px"},onClick:Object(x.a)(y.a.mark(function ma(){return y.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return hr.next=2,Ki(vi-1===0?wa==null?void 0:wa.length:vi-1);case 2:case"end":return hr.stop()}},ma)}))},"\u4E0A\u4E00\u5F20"),t.a.createElement(g.a,{disabled:(wa==null?void 0:wa.length)===0,type:"primary",onClick:Object(x.a)(y.a.mark(function ma(){return y.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return hr.next=2,Ki(vi===(wa==null?void 0:wa.length)?1:vi+1);case 2:case"end":return hr.stop()}},ma)}))},"\u4E0B\u4E00\u5F20"))},t.a.createElement("img",{style:{width:"234px !important",height:"132px",borderRadius:"5px"},src:wa[vi-1]}),t.a.createElement("span",{onClick:function(){Tt.a.publish("preview-image",wa[vi-1]),console.log("src:",wa[vi-1],wa,vi-1)},style:{background:"#0152d9",color:"#fff",display:"inline-flex",width:"54px",height:"20px",borderRadius:"10px",justifyContent:"center",lineHeight:"20px",alignItems:"center",position:"absolute",top:"70px",left:"190px",zIndex:5,cursor:"pointer"}},"\u9884\u89C8"),t.a.createElement("span",{style:{color:"#0152d9",marginTop:"16px",width:"234px",justifyContent:"center",display:"flex"}},vi+"/"+(wa==null?void 0:wa.length)),t.a.createElement(F.a,{className:"mt20",checked:ri==="alert",onChange:function(){return Ka("alert")}},"\u53D1\u9001\u8B66\u544A",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement(F.a,{className:"mt10",checked:ri==="notice",onChange:function(){return Ka("notice")}},"\u53D1\u9001\u901A\u77E5",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement(te.a.TextArea,{className:"mt20",value:vo,onChange:function(dr){return go(dr.target.value)},placeholder:"\u8BF7\u8F93\u5165".concat(ri==="alert"?"\u8B66\u544A":"\u901A\u77E5","\u5185\u5BB9").concat(ri==="alert"?"\uFF0C\u5982\uFF1A\u626D\u5934\u4F4E\u5934\u5927\u5E45\u5EA6\u52A8\u4F5C\u68C0\u6D4B":"")}),t.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",$a,"\u6B21\u8B66\u544A")),t.a.createElement(sn.a,null))},ye=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading,Or=tr.globalSetting;return{exercise:In,loading:En.effects,globalSetting:Or}})(Ae),Se=_("OaEy"),dt=_("2fM7"),et=_("8Skl"),xt=_("y3Kf"),xn=_("mxOx"),Dt=_.n(xn),yt=_("LvDl"),mn=_.n(yt),pe=_("GUcZ"),Gt=_("ulZh"),Lt=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,Be=Object(E.forwardRef)(function(tr,In){var En,Or=tr.src,yr=tr.videoId,zr=tr.logWatchHistory,Zn=tr.courseId,An=Zn===void 0?null:Zn,rr=tr.startTime,ar=tr.handlePause,Pr=ar===void 0?function(){}:ar,sa=tr.handlePlay,Qn=sa===void 0?function(){}:sa,Hr=tr.handlePlayEnded,ha=Hr===void 0?function(){}:Hr,Ma=tr.videoSpeed,la=Ma===void 0?1:Ma,Ir=Or==null||((En=Or.split("."))===null||En===void 0)?void 0:En.pop(),mr=Ir==="flv",Kr=Object(E.useRef)(),ra=Object(E.useRef)(),Er=Object(E.useRef)(0),wn=Object(E.useRef)(0),fa=Object(E.useState)(0),Mr=Object(r.a)(fa,2),$e=Mr[0],pt=Mr[1],vt=navigator.userAgent.toLowerCase().match(Lt),Me=vt?vt[0]:"pc";Object(E.useImperativeHandle)(In,function(){return{getLastUpdatedTime:function(){return Kr.current.currentTime},getDuration:function(){return Kr.current.duration}}}),Object(E.useEffect)(function(){wn.current=void 0;try{pe.a.isSupported&&mr&&Or&&(Or==null?void 0:Or.indexOf(".m3u8"))<0?(wn.current=pe.a.createPlayer({type:"flv",volume:.8,cors:!0,url:Or+"?t="+Date.now(),muted:!1,isLive:!0}),wn.current.on("play",function(){console.log(21111)}),Kr.current&&(wn.current.detachMediaElement(Kr.current),wn.current.attachMediaElement(Kr.current),wn.current.load(),wn.current.play())):Kr.current.setAttribute("src",Or+"?t="+Date.now())}catch(Ke){setTimeout(function(){pt($e+1)},1e3)}return console.log("src:",Or),function(){if(wn.current){var Ke,De,st,ct,Bt,gt,zt,Ft;(Ke=wn.current)===null||Ke===void 0||((De=Ke.unload)===null||De===void 0)||De.call(Ke),(st=wn.current)===null||st===void 0||((ct=st.pause)===null||ct===void 0)||ct.call(st),(Bt=wn.current)===null||Bt===void 0||((gt=Bt.destroy)===null||gt===void 0)||gt.call(Bt),(zt=wn.current)===null||zt===void 0||((Ft=zt.detachMediaElement)===null||Ft===void 0)||Ft.call(zt,Kr.current),wn.current=void 0,Kr.current.src=""}}},[Kr,mr,Or,$e]),Object(E.useEffect)(function(){return ra.current=setInterval(function(){Er.current>0&&Er.current===Kr.current.currentTime&&(console.log("\u64AD\u653E\u4E00\u6B21"),pt($e+1)),Er.current=Kr.current.currentTime},3e3),function(){clearInterval(ra.current)}},[]);var we=function(De){setTimeout(function(){pt($e+1)},1e3)};return t.a.createElement("video",{ref:Kr,onerr:!0,onErrorCapture:function(){pt($e+1)},autoPlay:!0,muted:!0})}),ot=function(In){var En,Or=In.exercise,yr=In.dispatch,zr=In.user,Zn=Object(A.i)(),An=Object(E.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",save_name:"",exercise_id:Zn==null?void 0:Zn.categoryId}),rr=Object(r.a)(An,2),ar=rr[0],Pr=rr[1],sa=ze.a.useForm(),Qn=Object(r.a)(sa,1),Hr=Qn[0],ha=Object(E.useState)(),Ma=Object(r.a)(ha,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)(!1),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=Or.exerciseList,fa=Or.commonHeader,Mr=Object(E.useState)([]),$e=Object(r.a)(Mr,2),pt=$e[0],vt=$e[1],Me=Object(E.useState)([]),we=Object(r.a)(Me,2),Ke=we[0],De=we[1],st=Object(E.useState)(0),ct=Object(r.a)(st,2),Bt=ct[0],gt=ct[1],zt=Object(E.useState)(!0),Ft=Object(r.a)(zt,2),on=Ft[0],yn=Ft[1],zn=Object(E.useState)(!1),gr=Object(r.a)(zn,2),Xr=gr[0],Jr=gr[1],aa=Object(E.useRef)(null);Object(E.useEffect)(function(){hn(),Lr(ar)},[]),Object(E.useEffect)(function(){return clearInterval(aa.current),(fa==null?void 0:fa.exercise_status)===2&&(aa.current=setInterval(function(){Lr(ar)},3e4)),function(){clearInterval(aa.current)}},[fa==null?void 0:fa.exercise_status,ar]);var hn=function(){yr({type:"exercise/getExerciseList",payload:Zn})},Lr=function(){var Vr=Object(x.a)(y.a.mark(function nr(Fr){var Wn,pn;return y.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return Wn=mn.a.cloneDeep(Fr),console.log(Wn,"sendData"),yn(!0),vt([]),qn.next=6,Object(C.a)("/api/exercises/".concat(Fr==null?void 0:Fr.exercise_id,"/exercise_identity_photos.json"),{method:"get",params:Wn});case 6:pn=qn.sent,De([]),yn(!1),gt(pn==null?void 0:pn.count),vt((pn==null?void 0:pn.exercise_users)||[]);case 11:case"end":return qn.stop()}},nr)}));return function(Fr){return Vr.apply(this,arguments)}}(),oa=function(nr,Fr){ar.page=1,ar[Fr]=nr,Pr(Object(i.a)({},ar)),Lr(ar)},ba=function(nr){ar.page=1,ar.save_name=nr,Pr(Object(i.a)({},ar))},_t=function(){ar.page=1;var nr=Object.assign({},Hr.getFieldsValue());Object.keys(nr).map(function(Fr){switch(Fr){case"exercise_group_id":nr[Fr].includes("all")||!nr[Fr].length?(delete ar.course_group,Hr.setFieldsValue(Object(Ce.a)({},"exercise_group_id","all"))):(ar.course_group=nr[Fr],Hr.setFieldsValue(Object(Ce.a)({},"exercise_group_id",ar.course_group)));break}}),Pr(Object(i.a)({},ar)),Lr(ar)};Object(E.useEffect)(function(){if(document.getElementById("divhe")){var Vr=document.getElementById("divhe").scrollHeight;Vr>47&&(Ir(47),Er(!0))}},[document.getElementById("divhe"),wn]);var Wr=function(nr,Fr,Wn){ar.page=nr==null?void 0:nr.current,ar.limit=nr==null?void 0:nr.pageSize,Wn!=null&&Wn.order?(ar.sort_by=Wn==null?void 0:Wn.field,ar.sort_direction=(Wn==null?void 0:Wn.order)==="ascend"?"asc":"desc"):(ar.sort_by=null,ar.sort_direction=null),Pr(Object(i.a)({},ar)),Lr(ar)},un=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:function(nr,Fr,Wn){return ar.limit*(ar.page-1)+Wn+1}},{title:"\u59D3\u540D",dataIndex:"user_name",width:110,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement(Ne.a,{placement:"bottomLeft",title:nr},t.a.createElement("span",null,nr))}},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:140,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement(Ne.a,{placement:"bottomLeft",title:nr||"--"},t.a.createElement("span",null,nr||"--"))}},{title:"\u5206\u73ED",dataIndex:"user_group_name",ellipsis:{showTitle:!1},render:function(nr,Fr){return nr?t.a.createElement(Ne.a,{placement:"bottom",title:nr},t.a.createElement("span",{className:Dt.a.es},nr)):"--"}},{title:"\u4EBA\u8138\u7167\u7247",dataIndex:"photo_url",width:90,ellipsis:{showTitle:!1},render:function(nr,Fr){return t.a.createElement("img",{width:40,style:{maxHeight:30},src:nr,className:"current",onClick:function(){Sr(Fr)}})}},{title:"\u5BA1\u6838\u72B6\u6001",width:100,dataIndex:"exercise_identity_photo_state",ellipsis:{showTitle:!1},render:function(nr,Fr){return t.a.createElement(t.a.Fragment,null,nr==="passed"&&t.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),nr==="rejected"&&t.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),nr==="submitted"&&t.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:180,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement("span",null,nr||"--")}},{title:"\u5BA1\u6838\u7C7B\u578B",dataIndex:"audit_clazz",width:90,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement("span",null,nr||"--")}},{title:"\u64CD\u4F5C",dataIndex:"action",width:180,ellipsis:{showTitle:!1},render:function(nr,Fr){var Wn;return t.a.createElement(t.a.Fragment,null,(Fr==null?void 0:Fr.exercise_identity_photo_state)==="submitted"?t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Jr(Fr)}},"\u5BA1\u6838"):t.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u5BA1\u6838"),(Fr==null?void 0:Fr.exercise_identity_photo_state)!=="submitted"?t.a.createElement("span",{className:"c-light-primary current ml10 mr10",onClick:function(){return Ca(Fr)}},"\u5BA1\u6838\u8BB0\u5F55"):t.a.createElement("span",{className:"c-grey-999 ml10 mr10 cursorNotAllowed"},"\u5BA1\u6838\u8BB0\u5F55"),(Fr==null?void 0:Fr.exercise_identity_photo_state)==="passed"&&!!(Fr!=null&&(Wn=Fr.play_url)!==null&&Wn!==void 0&&Wn.length)?t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Nr(Fr)}},"\u6444\u50CF\u76D1\u63A7"):t.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u6444\u50CF\u76D1\u63A7"))}}],Rn=function(nr){De(nr)},xr=function(){Jr(!1),Lr(ar)},Ca=function(nr){var Fr=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:function(Rr,qn){return t.a.createElement("span",null,Rr||"--")}},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:function(Rr,qn){return t.a.createElement(t.a.Fragment,null,Rr==="passed"&&t.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Rr==="rejected"&&t.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Rr==="submitted"&&t.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:function(Rr,qn){return Rr?t.a.createElement(Ne.a,{placement:"bottom",title:Rr},t.a.createElement("span",null,Rr)):"--"}},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:function(Rr,qn){return t.a.createElement("span",{className:"current c-light-primary",onClick:function(){Tt.a.publish("preview-image",Rr)}},"\u67E5\u770B")}}],Wn=m.a.confirm({icon:null,width:700,className:"".concat(Dt.a.cusModal," custom-modal-divider"),centered:!0,title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return Wn.destroy()}}))),content:t.a.createElement("div",null,t.a.createElement(je.a,{className:Dt.a.customTable,dataSource:[Object(i.a)({},nr)],bordered:!1,columns:Fr,rowKey:"exercise_identity_photo_id",rowClassName:Dt.a.row,pagination:!1}))})},Nr=function(nr){var Fr,Wn,pn=m.a.confirm({icon:null,className:"".concat(Dt.a.cusModal," custom-modal-divider"),centered:!0,width:(nr==null||((Fr=nr.play_url)===null||Fr===void 0)?void 0:Fr.length)<6?724:744,title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u89C6\u9891"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return pn.destroy()}}))),content:t.a.createElement("ul",{className:Dt.a.sys},nr==null||((Wn=nr.play_url)===null||Wn===void 0)?void 0:Wn.map(function(Rr,qn){return t.a.createElement("li",{className:Dt.a.li,key:qn},t.a.createElement("div",{className:Dt.a.d1},t.a.createElement("div",{className:Dt.a.img},t.a.createElement(Be,{src:Rr==null?void 0:Rr.replace(".m3u8",".flv"),autoPlay:!0})),t.a.createElement("div",{className:Dt.a.btn},t.a.createElement("div",{className:Dt.a.b1},"\u56DE\u653E\u89C6\u9891",qn+1))))}))})},Sr=function(nr){var Fr=m.a.confirm({icon:null,className:"".concat(Dt.a.cusModal," custom-modal-divider"),centered:!0,width:710,title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return Fr.destroy()}}))),content:t.a.createElement(he.a,null,t.a.createElement("aside",{className:Dt.a.imgWrap,style:{marginBottom:40}},t.a.createElement("div",{className:Dt.a.img},t.a.createElement("img",{width:326,src:Object(R.g)(nr==null?void 0:nr.photo_url)}),t.a.createElement("div",{className:Dt.a.textP},"\u91C7\u96C6\u7167\u7247")),t.a.createElement("div",{className:Dt.a.img,style:{marginLeft:20}},nr!=null&&nr.identity_url?t.a.createElement("img",{width:326,src:Object(R.g)(nr==null?void 0:nr.identity_url)}):t.a.createElement("div",{className:Dt.a.no,style:{width:326}},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),t.a.createElement("div",{className:Dt.a.textP},"\u8BC1\u4EF6\u7167\u7247"))))})},xa={selectedRowKeys:Ke,columnWidth:40,onChange:Rn,getCheckboxProps:function(nr){return{disabled:!((nr==null?void 0:nr.exercise_identity_photo_state)!=="passed")}}};return t.a.createElement("section",{className:Dt.a.wrap},t.a.createElement(ze.a,{form:Hr,onChange:_t,initialValues:Object(Ce.a)({},"exercise_group_id","all")},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1",id:"divhe",style:{height:la+"px",overflow:"hidden"}},(En=wn.course_groups)===null||En===void 0?void 0:En.map(function(Vr,nr){return t.a.createElement(be.a,{key:nr,value:Vr.exercise_group_id,className:"ml0 mr8"},Vr.exercise_group_name,"(",Vr.exercise_group_students,")")})),ra&&t.a.createElement("span",{onClick:function(){var nr=document.getElementById("divhe").scrollHeight;la>47?Ir(47):Ir(nr)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},la===47?"\u5C55\u5F00":"\u6536\u8D77",la===47?t.a.createElement(et.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):t.a.createElement(xt.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),t.a.createElement("div",{className:Dt.a.control},t.a.createElement(te.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:ar==null?void 0:ar.save_name,onChange:function(nr){return ba(nr.target.value)},onSearch:function(){ar.page=1,ar.name=ar.save_name,Pr(Object(i.a)({},ar)),Lr(ar)}}),t.a.createElement(dt.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",value:ar==null?void 0:ar.state,onChange:function(nr){return oa(nr,"state")}},t.a.createElement(dt.a.Option,{value:null},"\u5168\u90E8"),t.a.createElement(dt.a.Option,{value:"submitted"},"\u5F85\u5BA1\u6838"),t.a.createElement(dt.a.Option,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),t.a.createElement(dt.a.Option,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7")),t.a.createElement(dt.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7C7B\u578B",value:ar==null?void 0:ar.audit,onChange:function(nr){return oa(nr,"audit")}},t.a.createElement(dt.a.Option,{value:null},"\u5168\u90E8"),t.a.createElement(dt.a.Option,{value:1},"\u81EA\u52A8\u5BA1\u6838"),t.a.createElement(dt.a.Option,{value:2},"\u4EBA\u5DE5\u5BA1\u6838")),t.a.createElement("span",{className:Dt.a.btn,style:{cursor:"pointer"},onClick:function(){if(!Ke.length){p.b.warn("\u8BF7\u9009\u62E9\u5B66\u751F");return}Jr(!0)}},t.a.createElement("i",{className:"iconfont icon-piliangcaozuo font14 mr5"}),"\u6279\u91CF\u5BA1\u6838")),t.a.createElement("div",{className:Dt.a.bgH}),t.a.createElement(je.a,{rowSelection:xa,className:Dt.a.customTable,dataSource:pt,bordered:!1,columns:un,rowKey:"exercise_identity_photo_id",rowClassName:Dt.a.row,loading:on,onChange:Wr,pagination:{pageSize:ar.limit,total:Bt,current:ar.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:function(nr){return t.a.createElement("span",{className:"mr10"},"\u5171",t.a.createElement("span",{className:"c-orange"},nr),"\u6761\u6570\u636E")}}}),t.a.createElement(Pt,{selectIds:Ke,visible:Xr,onCancel:function(){return Jr(!1)},onOk:xr,params:ar}),t.a.createElement(sn.a,null))},Xt=Object(o.a)(function(tr){var In=tr.exercise,En=tr.user;return{exercise:In,user:En}})(ot),Pt=function(In){var En=In.visible,Or=In.onOk,yr=In.onCancel,zr=In.selectIds,Zn=In.params,An=Object(E.useState)(!1),rr=Object(r.a)(An,2),ar=rr[0],Pr=rr[1],sa=Object(E.useState)({}),Qn=Object(r.a)(sa,2),Hr=Qn[0],ha=Qn[1],Ma=ze.a.useForm(),la=Object(r.a)(Ma,1),Ir=la[0],mr=function(){var Kr=Object(x.a)(y.a.mark(function ra(Er){var wn,fa;return y.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(Pr(!0),!(En===!0)){$e.next=7;break}return $e.next=4,Object(C.a)("/api/exercises/".concat(Zn==null?void 0:Zn.exercise_id,"/batch_audit_identity_photo.json"),{method:"post",body:Object(i.a)({identity_photo_ids:zr},Er)});case 4:fa=$e.sent,$e.next=10;break;case 7:return $e.next=9,Object(C.a)("/api/exercises/".concat(Zn==null?void 0:Zn.exercise_id,"/audit_identity_photo.json"),{method:"post",body:Object(i.a)({identity_photo_id:En==null?void 0:En.exercise_identity_photo_id},Er)});case 9:fa=$e.sent;case 10:((wn=fa)===null||wn===void 0?void 0:wn.status)===0&&Or(),Pr(!1);case 12:case"end":return $e.stop()}},ra)}));return function(Er){return Kr.apply(this,arguments)}}();return t.a.createElement(m.a,{title:En!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",visible:!!En,centered:!0,width:650,destroyOnClose:!0,onCancel:function(){yr()},afterClose:function(){Ir.resetFields(),ha({})},confirmLoading:ar,onOk:function(){return Ir.submit()}},t.a.createElement(ze.a,{className:Dt.a.formWrap,form:Ir,labelCol:{span:4},wrapperCol:{span:18},onFinish:mr,onValuesChange:function(){ha(Object(i.a)({},Ir.getFieldsValue()))}},En!==!0&&t.a.createElement(he.a,{style:{marginLeft:28,marginBottom:38}},t.a.createElement(Ee.a,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),t.a.createElement(Ee.a,null,t.a.createElement("aside",{className:Dt.a.imgWrap},t.a.createElement("div",{className:Dt.a.img},t.a.createElement("img",{width:234,src:Object(R.g)(En==null?void 0:En.photo_url)}),t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",En==null?void 0:En.photo_url)},className:Dt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:Dt.a.text},"\u91C7\u96C6\u7167\u7247")),t.a.createElement("div",{className:Dt.a.img,style:{marginLeft:20}},En!=null&&En.identity_url?t.a.createElement("img",{width:234,src:Object(R.g)(En==null?void 0:En.identity_url)}):t.a.createElement("div",{className:Dt.a.no,style:{width:326}},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(En!=null&&En.identity_url)&&t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",Object(R.g)(En==null?void 0:En.identity_url))},className:Dt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:Dt.a.text},"\u8BC1\u4EF6\u7167\u7247"))))),t.a.createElement(ze.a.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},t.a.createElement(F.a.Group,null,t.a.createElement(F.a,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),t.a.createElement(F.a,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(Hr==null?void 0:Hr.state)==="rejected"&&t.a.createElement(ze.a.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},t.a.createElement(te.a,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),t.a.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))},$t=_("cWXX"),Zt=_("/ezw"),bt=_("R9oj"),ft=_("ECub"),Nt=_("hZbv"),jt=_.n(Nt),bn=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa=In.exercise,Qn=In.dispatch,Hr=In.user,ha=Object(A.i)(),Ma=Object(E.useState)({page:1,limit:10,name:"",save_name:"",exercise_id:ha==null?void 0:ha.categoryId}),la=Object(r.a)(Ma,2),Ir=la[0],mr=la[1],Kr=ze.a.useForm(),ra=Object(r.a)(Kr,1),Er=ra[0],wn=Object(E.useState)(),fa=Object(r.a)(wn,2),Mr=fa[0],$e=fa[1],pt=Object(E.useState)(!1),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=sa.exerciseList,De=Object(E.useState)([]),st=Object(r.a)(De,2),ct=st[0],Bt=st[1],gt=Object(E.useState)(0),zt=Object(r.a)(gt,2),Ft=zt[0],on=zt[1],yn=Object(E.useState)(!0),zn=Object(r.a)(yn,2),gr=zn[0],Xr=zn[1],Jr=Object(E.useState)(!1),aa=Object(r.a)(Jr,2),hn=aa[0],Lr=aa[1],oa=Object(E.useState)("1"),ba=Object(r.a)(oa,2),_t=ba[0],Wr=ba[1],un=Object(E.useState)(1),Rn=Object(r.a)(un,2),xr=Rn[0],Ca=Rn[1],Nr=Object(E.useState)("alert"),Sr=Object(r.a)(Nr,2),xa=Sr[0],Vr=Sr[1],nr=Object(E.useState)(1),Fr=Object(r.a)(nr,2),Wn=Fr[0],pn=Fr[1],Rr=Object(E.useState)(""),qn=Object(r.a)(Rr,2),Ar=qn[0],Da=qn[1],Ia=Object(E.useState)(!1),La=Object(r.a)(Ia,2),Br=La[0],$r=La[1],ka=Object(E.useState)(!1),Na=Object(r.a)(ka,2),qa=Na[0],ii=Na[1],ri=Object(E.useState)([]),Ka=Object(r.a)(ri,2),Ai=Ka[0],Ri=Ka[1];Object(E.useEffect)(function(){$a(),Ga(Ir)},[]);var $a=function(){Qn({type:"exercise/getExerciseList",payload:ha})},Ga=function(){var Ra=Object(x.a)(y.a.mark(function Sa(wa){var Ja,oi;return y.a.wrap(function(li){for(;;)switch(li.prev=li.next){case 0:return Ja=mn.a.cloneDeep(wa),Xr(!0),Bt([]),li.next=5,Object(C.a)("/api/exercises/".concat(wa==null?void 0:wa.exercise_id,"/exercise_videos.json"),{method:"get",params:Ja});case 5:oi=li.sent,Xr(!1),on(oi==null?void 0:oi.count),Bt((oi==null?void 0:oi.exercise_users)||[]);case 9:case"end":return li.stop()}},Sa)}));return function(wa){return Ra.apply(this,arguments)}}(),ui=function(Sa,wa){Ir.page=Sa,Ir.limit=wa,mr(Object(i.a)({},Ir)),Ga(Ir)},Ji=function(Sa){Ir.page=1,Ir.save_name=Sa,mr(Object(i.a)({},Ir))},wo=function(){Ir.page=1;var Sa=Object.assign({},Er.getFieldsValue());Object.keys(Sa).map(function(wa){switch(wa){case"exercise_group_id":Sa[wa].includes("all")||!Sa[wa].length?(delete Ir.course_group,Er.setFieldsValue(Object(Ce.a)({},"exercise_group_id","all"))):(Ir.course_group=Sa[wa],Er.setFieldsValue(Object(Ce.a)({},"exercise_group_id",Ir.course_group)));break}}),Ga(Ir)};Object(E.useEffect)(function(){if(document.getElementById("divhe")){var Ra=document.getElementById("divhe").scrollHeight;Ra>47&&($e(47),we(!0))}},[document.getElementById("divhe"),Ke]);var Ii=function(){var Ra=Object(x.a)(y.a.mark(function Sa(wa){var Ja,oi;return y.a.wrap(function(li){for(;;)switch(li.prev=li.next){case 0:return $r(!0),Lr({}),li.next=4,Object(C.a)("/api/exercises/".concat(Ir==null?void 0:Ir.exercise_id,"/student_info.json"),{method:"get",params:{exercise_user_id:wa==null?void 0:wa.exercise_user_id}});case 4:return Ja=li.sent,li.next=7,Object(C.a)("/api/exercises/".concat(Ir==null?void 0:Ir.exercise_id,"/video_push_logs.json"),{method:"get",params:{exercise_user_id:wa==null?void 0:wa.exercise_user_id}});case 7:oi=li.sent,oi!=null&&oi.data&&Ri((oi==null?void 0:oi.data)||[]),Ja!=null&&Ja.data&&Lr(Object(i.a)(Object(i.a)({},Ja==null?void 0:Ja.data),{},{exercise_user_id:wa==null?void 0:wa.exercise_user_id,datas:wa})),$r(!1);case 11:case"end":return li.stop()}},Sa)}));return function(wa){return Ra.apply(this,arguments)}}(),Zi=function(Sa){if(Sa==="prev"){var wa;Ca(xr-1===0?hn==null||((wa=hn.exercise_user_photos)===null||wa===void 0)?void 0:wa.length:xr-1)}else{var Ja;Ca(xr===(hn==null||((Ja=hn.exercise_user_photos)===null||Ja===void 0)?void 0:Ja.length)?1:xr+1)}},qi=function(){Ca(1),Vr("alert"),Da(""),Wr("1"),pn(1)},wi=function(Sa){pn(Sa)},$i=function(Sa){Vr(Sa),pn(1),Da("")},ho=[{key:1,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:2,value:"\u8BF7\u52FF\u79BB\u5F00\u76D1\u63A7\u8303\u56F4\uFF01"},{key:3,value:"\u8BF7\u4E0D\u8981\u4E0E\u5176\u4ED6\u4EBA\u4EA4\u8C08\uFF01"},{key:4,value:"\u8BF7\u4E0D\u8981\u505A\u4E0E\u8003\u8BD5\u65E0\u5173\u7684\u884C\u4E3A\uFF01"},{key:5,value:"\u8BF7\u52FF\u5207\u5C4F\uFF0C\u8D85\u8FC73\u6B21\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF01"},{key:6,value:"\u8BF7\u52FF\u906E\u6321\u6216\u5173\u95ED\u7535\u8111\u6444\u50CF\u76D1\u63A7\uFF01"},{key:0,value:"\u5176\u4ED6"}],mo=[{key:1,value:"\u8BF7\u5C06\u624B\u673A\u653E\u7F6E\u4E8E\u4FA7\u540E\u65B945\xB0\uFF0C\u79BB\u684C\u97621\u7C73\u5DE6\u53F3\uFF0C\u4FDD\u8BC1\u80FD\u62CD\u6444\u5230\u4E0A\u534A\u8EAB\u3001\u7535\u8111\u5C4F\u5E55\u548C\u684C\u9762\u3002"},{key:2,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:0,value:"\u5176\u4ED6"}],Ti=xa==="alert"?ho:mo;return t.a.createElement("section",{className:jt.a.wrap},t.a.createElement(ze.a,{form:Er,onChange:wo,initialValues:Object(Ce.a)({},"exercise_group_id","all")},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1",id:"divhe",style:{height:Mr+"px",overflow:"hidden"}},(En=Ke.course_groups)===null||En===void 0?void 0:En.map(function(Ra,Sa){return t.a.createElement(be.a,{key:Sa,value:Ra.exercise_group_id,className:"ml0 mr8"},Ra.exercise_group_name,"(",Ra.exercise_group_students,")")})),Me&&t.a.createElement("span",{onClick:function(){var Sa=document.getElementById("divhe").scrollHeight;Mr>47?$e(47):$e(Sa)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Mr===47?"\u5C55\u5F00":"\u6536\u8D77",Mr===47?t.a.createElement(et.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):t.a.createElement(xt.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),t.a.createElement("div",{className:jt.a.control},t.a.createElement(te.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Ir==null?void 0:Ir.save_name,onChange:function(Sa){return Ji(Sa.target.value)},onSearch:function(){Ir.page=1,Ir.name=Ir.save_name,mr(Object(i.a)({},Ir)),Ga(Ir)}})),t.a.createElement("div",{className:jt.a.bgH}),t.a.createElement("div",{className:jt.a.warpList},t.a.createElement(Zt.a,{loading:gr,active:!0,paragraph:{rows:5}},t.a.createElement("div",{className:"c-grey-666 mb20 mt20"},"\u5171",t.a.createElement("span",{className:"c-orange"},Ft),"\u540D\u5B66\u751F\u5DF2\u5F00\u542F\u624B\u673A\u6444\u5F71"),ct.length?t.a.createElement("ul",{className:jt.a.sys},ct.map(function(Ra,Sa){var wa=Ra.user_name,Ja=Ra.user_group_name,oi=Ra.video_url,bi=Ra.login,li=Ra.student_id;return t.a.createElement("li",{className:jt.a.li,key:Sa},t.a.createElement("div",{className:jt.a.d1},t.a.createElement("div",{className:jt.a.img},t.a.createElement("iframe",{style:{height:340,width:"100%",border:"none"},src:"/live-play.html?key=".concat(Sa,"&video_url=").concat(oi==null?void 0:oi.replace(".m3u8",".flv"))})),t.a.createElement(Ne.a,{title:"\u59D3\u540D+\u5B66\u53F7"},t.a.createElement("div",{className:jt.a.btn,onClick:function(){return Object(R.s)("".concat(Ir.exercise_id,"-").concat(bi),!0)}},t.a.createElement("div",{title:wa,className:jt.a.b1},wa),t.a.createElement("div",{title:Ja,className:jt.a.b2},"(",li,")"))),t.a.createElement("div",{onClick:function(){return Ii(Ra)},className:jt.a.big},"\u67E5\u770B")))})):t.a.createElement(ft.a,null)),t.a.createElement(W.a,{showTotal:function(Sa){return t.a.createElement("span",{className:"mr10"},"\u5171",t.a.createElement("span",{className:"c-orange"},Sa),"\u6761\u6570\u636E")},className:"tc",showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,onChange:ui,pageSize:Ir==null?void 0:Ir.limit,current:Ir.page,total:Ft})),t.a.createElement(m.a,{title:"\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F",visible:hn,centered:!0,width:850,destroyOnClose:!0,onCancel:function(){Lr(!1)},afterClose:qi,footer:null},t.a.createElement(Zt.a,{loading:Br,active:!0,paragraph:{rows:5}},t.a.createElement("div",null,t.a.createElement("span",null,"\u59D3\u540D:",hn==null||((Or=hn.datas)===null||Or===void 0)?void 0:Or.user_name),t.a.createElement("span",{className:"ml20"},"\u5B66\u53F7:",hn==null||((yr=hn.datas)===null||yr===void 0)?void 0:yr.student_id),t.a.createElement("span",{className:"ml20"},"\u73ED\u7EA7:",hn==null||((zr=hn.datas)===null||zr===void 0)?void 0:zr.user_group_name)),t.a.createElement(j.a,{className:"mt10",defaultActiveKey:_t,onChange:function(Sa){Wr(Sa)}},t.a.createElement(j.a.TabPane,{tab:"\u9632\u4F5C\u5F0A\u5934\u50CF",key:"1"},t.a.createElement("aside",{className:jt.a.imgWrap},t.a.createElement("div",{className:jt.a.img,style:{width:234,marginLeft:30,textAlign:"center"}},hn!=null&&(Zn=hn.exercise_user_photos)!==null&&Zn!==void 0&&Zn.length?t.a.createElement(E.Fragment,null,t.a.createElement("img",{height:131,src:hn==null||((An=hn.exercise_user_photos)===null||An===void 0)?void 0:An[xr-1]}),t.a.createElement("div",{onClick:function(){var Sa;Tt.a.publish("preview-image",hn==null||((Sa=hn.exercise_user_photos)===null||Sa===void 0)?void 0:Sa[xr-1])},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u8003\u8BD5\u4E2D\u7167\u7247",t.a.createElement("span",{className:"c-light-primary"},xr,"/",hn==null||((rr=hn.exercise_user_photos)===null||rr===void 0)?void 0:rr.length)),xr===1?t.a.createElement("div",{style:{color:"#ccc",cursor:"not-allowed"},className:jt.a.l}," ",t.a.createElement("i",{className:"iconfont icon-fanhui2"})):t.a.createElement("div",{onClick:function(){return Zi("prev")},className:jt.a.l}," ",t.a.createElement("i",{className:"iconfont icon-fanhui2"})),t.a.createElement("div",{onClick:function(){return Zi("next")},className:jt.a.r},t.a.createElement("i",{className:"iconfont icon-lujing"}))):t.a.createElement("div",{className:jt.a.no},t.a.createElement("span",null,"\u6682\u65E0\u8003\u8BD5\u4E2D\u7167\u7247"))),t.a.createElement("div",{className:jt.a.img,style:{marginLeft:60,width:234,textAlign:"center"}},hn!=null&&hn.identity_url?t.a.createElement("img",{height:131,src:Object(R.g)(hn==null?void 0:hn.identity_url)}):t.a.createElement("div",{className:jt.a.no},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(hn!=null&&hn.identity_url)&&t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",Object(R.g)(hn==null?void 0:hn.identity_url))},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u8BC1\u4EF6\u7167\u7247")))),t.a.createElement(j.a.TabPane,{tab:"\u4EBA\u8138\u7167\u7247",key:"2"},t.a.createElement("aside",{className:jt.a.imgWrap,style:{marginLeft:70}},t.a.createElement("div",{className:jt.a.img},t.a.createElement("img",{width:234,src:hn==null?void 0:hn.exercise_identity_photo}),t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",hn==null?void 0:hn.exercise_identity_photo)},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u91C7\u96C6\u7167\u7247")),t.a.createElement("div",{className:jt.a.img,style:{marginLeft:20,width:234,textAlign:"center"}},hn!=null&&hn.identity_url?t.a.createElement("img",{height:131,src:Object(R.g)(hn==null?void 0:hn.identity_url)}):t.a.createElement("div",{className:jt.a.no},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(hn!=null&&hn.identity_url)&&t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",Object(R.g)(hn==null?void 0:hn.identity_url))},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u8BC1\u4EF6\u7167\u7247")))),t.a.createElement(j.a.TabPane,{tab:"\u8B66\u544A\u548C\u901A\u77E5",key:"3"},t.a.createElement("div",{className:jt.a.fo},t.a.createElement(F.a,{className:"mt20",checked:xa==="alert",onChange:function(){return $i("alert")}},"\u53D1\u9001\u8B66\u544A",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement(F.a,{className:"mt10",checked:xa==="notice",onChange:function(){return $i("notice")}},"\u53D1\u9001\u901A\u77E5",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement("div",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u539F\u56E0:"),t.a.createElement(dt.a,{getPopupContainer:function(Sa){return Sa.parentNode.parentNode},style:{width:570},value:Wn,onChange:wi},Ti==null?void 0:Ti.map(function(Ra){return t.a.createElement(dt.a.Option,{key:Ra.key,value:Ra.key},Ra.value)}))),Wn===0&&t.a.createElement(te.a.TextArea,{className:"mt20",value:Ar,onChange:function(Sa){return Da(Sa.target.value)},placeholder:"\u8BF7\u586B\u5199\u5176\u4ED6\u539F\u56E0"}),t.a.createElement(he.a,{className:"mt10",align:"middle"},t.a.createElement("div",{className:"mr10"},"\u53D1\u9001\u8BB0\u5F55"),t.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",hn==null?void 0:hn.alert_count,"\u6B21\u8B66\u544A\u548C",(hn==null||((ar=hn.alerts)===null||ar===void 0)?void 0:ar.length)-(hn==null?void 0:hn.alert_count),"\u6B21\u901A\u77E5")),t.a.createElement(je.a,{dataSource:(hn==null?void 0:hn.alerts)||[],bordered:!1,scroll:(hn==null||((Pr=hn.alerts)===null||Pr===void 0)?void 0:Pr.length)>4?{y:200}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"created_at",width:164},{title:"\u53D1\u9001\u4EBA",dataIndex:"sender",width:100,ellipsis:{showTitle:!1},render:function(Sa){return Sa?t.a.createElement("span",{title:Sa},Sa):"--"}},{title:"\u53D1\u9001\u7C7B\u578B",dataIndex:"clazz",width:80,render:function(Sa){return Sa==="alert"?"\u8B66\u544A":"\u901A\u77E5"}},{title:"\u53D1\u9001\u5185\u5BB9",dataIndex:"content",ellipsis:!0}],pagination:!1}),t.a.createElement(g.a,{className:jt.a.b,onClick:Object(x.a)(y.a.mark(function Ra(){var Sa,wa,Ja;return y.a.wrap(function(bi){for(;;)switch(bi.prev=bi.next){case 0:if(!(!Ar&&Wn===0)){bi.next=3;break}return p.b.info("\u8BF7\u8F93\u5165\u5176\u4ED6\u539F\u56E0"),bi.abrupt("return");case 3:return Sa=Ar,Wn&&(wa=xa==="alert"?ho:mo,Sa=wa.find(function(li){return li.key===Wn}).value),ii(!0),bi.next=8,Object(C.a)("/api/exercises/".concat(Ir.exercise_id,"/send_alert.json"),{method:"post",body:{content:Sa,clazz:xa,exercise_user_id:hn==null?void 0:hn.exercise_user_id}});case 8:Ja=bi.sent,(Ja==null?void 0:Ja.status)===0&&(p.b.info("\u53D1\u9001\u6210\u529F"),Lr(!1)),ii(!1);case 11:case"end":return bi.stop()}},Ra)})),loading:qa,type:"primary"},t.a.createElement("i",{className:"iconfont icon-fasongtongzhi mr5"}),"\u53D1\u9001"))),t.a.createElement(j.a.TabPane,{tab:"\u65AD\u6D41\u8BB0\u5F55",key:"4"},t.a.createElement(je.a,{dataSource:Ai,bordered:!1,scroll:Ai.length>7?{y:300}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_time",width:164},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:164,render:function(Sa){return Fe()(Sa).format("YYYY-MM-DD HH:mm:ss")||"--"}},{title:"\u63A8\u6D41\u65F6\u957F",dataIndex:"push_duration",ellipsis:!0,width:120,render:function(Sa){return Sa&&Object(R.X)(Number(Sa)/1e3)||0}},{title:"\u65AD\u6D41\u539F\u56E0",dataIndex:"msg",ellipsis:!0}]}))))),t.a.createElement(sn.a,null))},Te=Object(o.a)(function(tr){var In=tr.exercise,En=tr.user;return{exercise:In,user:En}})(bn),ve=_("wNxg"),Q=_.n(ve),$=_("b6Jr"),re=_.n($),de=function(In){var En=In.index,Or=In.bottomLine,yr=In.gather,zr=In.search,Zn=Object(E.useState)([]),An=Object(r.a)(Zn,2),rr=An[0],ar=An[1],Pr=Object(E.useState)(!1),sa=Object(r.a)(Pr,2),Qn=sa[0],Hr=sa[1],ha=Object(E.useState)(!1),Ma=Object(r.a)(ha,2),la=Ma[0],Ir=Ma[1],mr=Object(A.i)(),Kr=Object(A.h)(),ra=Object(E.useState)({page:1,limit:6,total:0}),Er=Object(r.a)(ra,2),wn=Er[0],fa=Er[1];Object(E.useEffect)(function(){console.log(yr,"gather"),En===0&&Ir(!0)},[]),Object(E.useEffect)(function(){la&&$e()},[la]);var Mr=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",align:"left",ellipsis:!0,render:function(we,Ke,De){return wn.limit*(wn.page-1)+De+1}},{title:"\u59D3\u540D",dataIndex:"username",key:"username",align:"left",ellipsis:!0},{title:"\u73ED\u7EA7",dataIndex:"user_group_name",key:"user_group_name",align:"left",render:function(we){return we||"--"}},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",align:"left"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",key:"code_rate",align:"left",render:function(we){return we+"%"}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",align:"left",render:function(we){var Ke,De="/classrooms/".concat(mr==null?void 0:mr.coursesId,"/exercise/").concat(mr==null?void 0:mr.categoryId,"/detail/").concat(we,"/review_detail");if(Kr!=null&&(Ke=Kr.query)!==null&&Ke!==void 0&&Ke.random){var st;De=De+"?random=".concat(Kr==null||((st=Kr.query)===null||st===void 0)?void 0:st.random)}return t.a.createElement(v.a,{to:De,target:"_blank"},"\u67E5\u770B")}}],$e=function(){var Me=Object(x.a)(y.a.mark(function we(Ke){var De,st,ct;return y.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return Hr(!0),De=Ke||{page:1,limit:10,total:0},st=Object(i.a)({id:mr==null?void 0:mr.categoryId,question_id:yr==null?void 0:yr.question_id,search:zr},De),gt.next=5,Object(C.a)("/api/courses/".concat(mr==null?void 0:mr.coursesId,"/exercises/code_review_users.json"),{method:"get",params:st});case 5:ct=gt.sent,ct&&(ar(ct==null?void 0:ct.users),Hr(!1),fa(Object(i.a)(Object(i.a)({},De),{},{total:(ct==null?void 0:ct.count)||0})));case 7:case"end":return gt.stop()}},we)}));return function(Ke){return Me.apply(this,arguments)}}(),pt=function(we){var Ke=Object(i.a)(Object(i.a)({},wn),{},{page:we});fa(Ke),$e(Ke)},vt=function(){Ir(!la)};return t.a.createElement("div",{className:re.a.subjectTable},t.a.createElement("aside",{className:re.a.title},t.a.createElement("span",{className:"c-light-primary"},En+1,"\u3001",(yr==null?void 0:yr.question_type)===5?"\u5B9E\u8BAD\u9898":"\u7F16\u7A0B\u9898"),t.a.createElement("span",{className:"c-grey-333"},"\uFF08",yr==null?void 0:yr.score,"\u5206\uFF09\uFF1A",yr==null?void 0:yr.question_title),t.a.createElement("span",{className:"ml40 c-grey-999"},t.a.createElement("b",{className:"c-red-ee4"},yr==null?void 0:yr.checked_count),"\xA0\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08\u5171",yr==null?void 0:yr.total_count,"\u4E2A\u4F5C\u54C1\uFF09"),t.a.createElement("span",{onClick:vt,style:{marginLeft:"auto",cursor:"pointer",color:"#0152d9"}},la?"\u6536\u8D77":"\u5C55\u5F00",la?t.a.createElement(xt.a,null):t.a.createElement(et.a,null)),(yr==null?void 0:yr.question_type)===5&&t.a.createElement("a",{style:{marginLeft:20},target:"_blank",href:"/shixuns/".concat(yr==null?void 0:yr.shixun_identifier,"/challenges")},"\u5B9E\u8BAD\u8BE6\u60C5")),t.a.createElement(je.a,{className:re.a.customTable,style:{display:la?"block":"none"},dataSource:rr,bordered:!1,rowKey:function(we){return we.id},rowClassName:re.a.row,columns:Mr,loading:Qn,pagination:{pageSize:wn.limit,total:wn.total,current:wn.page,onChange:pt,showQuickJumper:!0,showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomCenter"]}}),t.a.createElement("div",{className:re.a.line,style:{visibility:Or?"hidden":"visible"}}))},Ue=de,it=_("lzim"),Mt=function(In){var En=In.exercise,Or=In.globalSetting,yr=In.dispatch,zr=Object(E.useState)(""),Zn=Object(r.a)(zr,2),An=Zn[0],rr=Zn[1],ar=Object(E.useState)([]),Pr=Object(r.a)(ar,2),sa=Pr[0],Qn=Pr[1],Hr=Object(E.useState)(""),ha=Object(r.a)(Hr,2),Ma=ha[0],la=ha[1],Ir=Object(E.useState)(!1),mr=Object(r.a)(Ir,2),Kr=mr[0],ra=mr[1],Er=Object(A.i)();Object(E.useEffect)(function(){wn()},[]);var wn=function(){var $e=Object(x.a)(y.a.mark(function pt(vt){var Me;return y.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return ra(!0),Ke.next=3,Object(C.a)("/api/courses/".concat(Er==null?void 0:Er.coursesId,"/exercises/code_review_results.json"),{method:"get",params:{id:Er==null?void 0:Er.categoryId,search:An}});case 3:if(Me=Ke.sent,!((Me==null?void 0:Me.status)===-2)){Ke.next=7;break}return wn(),Ke.abrupt("return");case 7:Me&&(ra(!1),Qn((Me==null?void 0:Me.exercise_questions)||[]),la(Me==null?void 0:Me.last_review_time));case 8:case"end":return Ke.stop()}},pt)}));return function(vt){return $e.apply(this,arguments)}}(),fa=function(){wn()},Mr=function(){return t.a.createElement("div",{className:Q.a.empty},t.a.createElement("img",{src:it.l,width:"258"}),t.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E"))};return t.a.createElement("section",{className:Q.a.warp},t.a.createElement("aside",{className:Q.a.header},t.a.createElement("div",null,"\u67E5\u91CD\u65F6\u95F4\uFF1A",Ma||"--"),!!Ma&&t.a.createElement(te.a,{value:An,onChange:function(pt){return rr(pt.target.value)},suffix:t.a.createElement("i",{onClick:fa,className:"iconfont icon-sousuo2 c-grey-c"}),bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onPressEnter:fa})),t.a.createElement(Zt.a,{loading:Kr,active:!0,paragraph:{rows:5}},sa.length>0?t.a.createElement("aside",{className:Q.a.subject},sa.map(function($e,pt){return t.a.createElement(Ue,{key:pt,index:pt,bottomLine:pt===sa.length-1,gather:$e,search:An})})):Mr()))},Ln=Object(o.a)(function(tr){var In=tr.exercise,En=tr.globalSetting;return{exercise:In,globalSetting:En}})(Mt),kn=_("/zsF"),St=_("PArb"),an=_("LYsE"),Pn=_("k5F3"),dn=function(In){var En=In.exercise,Or=In.loading,yr=In.dispatch,zr=In.activeTabs,Zn=Object(A.i)(),An=Object(E.useState)(Object(i.a)(Object(i.a)({},Zn),{page:1,per_page:10})),rr=Object(r.a)(An,1),ar=rr[0],Pr=En.editData;Object(E.useEffect)(function(){zr==="2"&&sa()},[Zn.categoryId,zr]);var sa=function(){yr({type:"exercise/editExercise",payload:Object(i.a)({},ar)})};return Object(E.useEffect)(function(){return yr({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),yr({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){yr({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),yr({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[]),t.a.createElement("section",{className:"minH1050 mb20 pt30 pb30 pl60 bg-white relative"},t.a.createElement(Pn.a,{isPreview:!0,activeTabs:zr}),t.a.createElement(St.a,null),t.a.createElement(an.a,{data:Pr==null?void 0:Pr.exercise_question_types,isDragDisabled:!0}))},jn=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En.effects}})(dn),Bn=_("T2oS"),ne=_("W9HT"),B=_("Q9mQ"),H=_("diRs"),ae=_("CCdo"),ue=_.n(ae),oe=_("RotF"),ht=_.n(oe),vn=_("6K3P"),Tn=_.n(vn),cr=_("0owl"),Vt=_("ek7X"),Et=function(In){var En,Or,yr,zr=In.exercise,Zn=In.loading,An=In.dispatch,rr=In.cb,ar=Object(i.a)(Object(i.a)({},Object(A.i)()),{},{page:0,limit:50,one:null,two:null,save_one:null,save_two:null,sort:null,course_group:"",student_id:"",realname:"",save_course_group:"",save_student_id:"",save_realname:""}),Pr=Object(E.useState)(Object(i.a)({},ar)),sa=Object(r.a)(Pr,2),Qn=sa[0],Hr=sa[1],ha=Object(E.useState)([]),Ma=Object(r.a)(ha,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)(!0),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=Object(E.useState)(!0),fa=Object(r.a)(wn,2),Mr=fa[0],$e=fa[1],pt=Object(E.useState)(0),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=Object(E.useState)(!1),De=Object(r.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(E.useState)([]),gt=Object(r.a)(Bt,2),zt=gt[0],Ft=gt[1];Object(E.useEffect)(function(){zr.actionTabs.key==="\u6253\u56DE\u91CD\u505A"&&(la=[],on(1))},[zr.actionTabs.key]);var on=function(){var hn=Object(x.a)(y.a.mark(function Lr(oa){var ba,_t;return y.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return oa==1&&(la=[]),Er(!0),Qn.page=oa,$e(!0),un.next=6,An({type:"exercise/getRedoModal",payload:Object(i.a)(Object(i.a)({},Qn),{},{score:((Qn==null?void 0:Qn.one)||0)+"".concat(Qn!=null&&Qn.two?","+(Qn==null?void 0:Qn.two):"")})});case 6:_t=un.sent,(_t==null||((ba=_t.exercise_users)===null||ba===void 0)?void 0:ba.length)0?t.a.createElement("p",null,"\u9009\u62E9\u73ED\u7EA7\uFF1A"):t.a.createElement("p",null,"\u6682\u65E0\u5206\u73ED"),t.a.createElement(be.a.Group,{value:Qn,onChange:$e},rr.map(function(pt){return t.a.createElement(be.a,{key:pt.id,value:pt.id},pt.name)}))),t.a.createElement("p",{style:{marginBottom:40},className:"c-grey-999 mt40"},"\u8BF4\u660E\uFF1A\u5E73\u53F0\u76EE\u524D\u4EC5\u652F\u6301java\u3001python\u3001c\u3001c++\u8BED\u8A00\u7684\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u7684\u4EE3\u7801\u67E5\u91CD\u3002")),t.a.createElement("div",{className:ir.a.footer},t.a.createElement(be.a,{checked:ra,onChange:function(vt){var Me=vt.target.checked?rr.map(function(we){return we.id}):[];Hr(Me),Er(vt.target.checked)}},"\u5168\u9009"),t.a.createElement(g.a,{onClick:fa},"\u53D6\u6D88"),t.a.createElement(g.a,{onClick:Mr,type:"primary"},"\u786E\u8BA4"))))},ua=Object(o.a)(function(tr){var In=tr.exercise;return{exercise:In}})(jr),Yr=_("Fzz4"),Tr=_("DZo9"),Jn=_("8z0m"),fr=_("/MfK"),Sn=_("w5pM"),On=_("jN4g"),or=_("xvlK"),Dn=_("dfu6"),pr=j.a.TabPane,Gn=function(In){var En,Or=In.exercise,yr=In.loading,zr=In.dispatch,Zn=Object(A.i)(),An=Object(A.h)(),rr=ze.a.useForm(),ar=Object(r.a)(rr,1),Pr=ar[0],sa=Object(E.useState)({}),Qn=Object(r.a)(sa,2),Hr=Qn[0],ha=Qn[1],Ma=Object(E.useState)("1"),la=Object(r.a)(Ma,2),Ir=la[0],mr=la[1];return Object(E.useEffect)(function(){Or.actionTabs.key==="addIp"&&(Pr.resetFields(),mr("1"))},[Or.actionTabs]),t.a.createElement(m.a,{centered:!0,title:"\u6DFB\u52A0IP\u8303\u56F4",visible:Or.actionTabs.key==="addIp",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:600,bodyStyle:{minHeight:200},onOk:Object(x.a)(y.a.mark(function Kr(){var ra;return y.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Pr.validateFields();case 2:if(Hr.ip){wn.next=7;break}if(ra=Hr.startIP.split(".")[3],!(parseInt(ra)>parseInt(Hr.endIP))){wn.next=7;break}return p.b.warn("IP\u533A\u95F4\u6BB5\u4E0D\u5408\u6CD5"),wn.abrupt("return");case 7:zr({type:"exercise/setActionTabs",payload:{key:"insterIp",data:Object(i.a)({},Pr.getFieldValue()),type:Or.actionTabs.type}});case 8:case"end":return wn.stop()}},Kr)})),onCancel:function(){zr({type:"exercise/setActionTabs",payload:{}})}},t.a.createElement("section",{className:"pl10 pr10"},t.a.createElement(j.a,{activeKey:Ir,onChange:function(ra){mr(ra),Pr.resetFields()}},t.a.createElement(pr,{tab:"\u65B0\u589EIP\u5730\u5740",key:"1"}),t.a.createElement(pr,{tab:"\u65B0\u589EIP\u8303\u56F4",key:"2"})),t.a.createElement(ze.a,{form:Pr,className:"pt30",name:"form",layout:"vertical",onValuesChange:function(ra,Er){ha(Object(i.a)({},Er))}},Ir==="1"&&t.a.createElement(ze.a.Item,{name:"ip",rules:[{required:!0,message:"\u8BF7\u8F93\u5165IP\u5730\u5740"}],label:"IP\u5730\u5740"},t.a.createElement(dt.a,{open:!1,tokenSeparators:[";",",","\uFF1B"],size:"large",mode:"tags",style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165IP\u5730\u5740,\u53EF\u540C\u65F6\u6DFB\u52A0\u591A\u4E2AIP\u5730\u5740\uFF0C\u4E2D\u95F4\u7528\u82F1\u6587\u7684\u5206\u53F7\u95F4\u9694\u3002",onChange:function(ra){Pr.setFieldsValue({ip:Object(O.a)(ra.filter(function(Er){return Object(Dn.a)(Er)?!0:(p.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"),!1)}))})}})),Ir==="2"&&t.a.createElement(he.a,{gutter:[20,20]},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement(ze.a.Item,{name:"startIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740"}],label:"\u8D77\u59CBIP\u5730\u5740"},t.a.createElement(te.a,{maxLength:15,placeholder:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740",onBlur:function(ra){var Er="";Object(Dn.a)(ra.target.value)?Er=ra.target.value:(Er="",p.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165")),Pr.setFieldsValue({startIP:Er})}}))),t.a.createElement(Ee.a,{flex:"1"},t.a.createElement(ze.a.Item,{name:"endIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740"},{pattern:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,message:"\u8BF7\u8F93\u51650-255\u7684\u7F51\u6BB5"}],label:"\u7ED3\u675FIP\u5730\u5740"},t.a.createElement(te.a,{onBlur:function(ra){},prefix:t.a.createElement("span",{className:"font14"},(En=Hr.startIP)===null||En===void 0?void 0:En.substring(0,Hr.startIP.lastIndexOf("."))),maxLength:3,placeholder:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740\u7684\u540E\u4E09\u4F4D"})))))))},se=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En}})(Gn),tt=_("2JKx"),rt=_.n(tt),ut=_("Ot1p"),Kt=_("+BJd"),Ct=_("mr32"),Yt=j.a.TabPane,nn=dt.a.Option,_n=function(In){var En,Or,yr,zr=In.exercise,Zn=In.loading,An=In.data,rr=In.disabled,ar=In.updata,Pr=In.dispatch,sa=Object(A.i)(),Qn=Object(A.h)(),Hr=ze.a.useForm(),ha=Object(r.a)(Hr,1),Ma=ha[0],la=Object(E.useState)({}),Ir=Object(r.a)(la,2),mr=Ir[0],Kr=Ir[1],ra=Object(E.useState)("1"),Er=Object(r.a)(ra,2),wn=Er[0],fa=Er[1],Mr=zr.workSetting,$e=zr.commonHeader,pt=Object(E.useState)(!1),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=Object(E.useState)([]),De=Object(r.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(E.useState)([]),gt=Object(r.a)(Bt,2),zt=gt[0],Ft=gt[1],on=Object(E.useState)(!1),yn=Object(r.a)(on,2),zn=yn[0],gr=yn[1],Xr=Object(E.useState)([]),Jr=Object(r.a)(Xr,2),aa=Jr[0],hn=Jr[1],Lr=Object(E.useState)([]),oa=Object(r.a)(Lr,2),ba=oa[0],_t=oa[1],Wr=Object(E.useState)({id:sa.categoryId,exercise_group_id:[]}),un=Object(r.a)(Wr,2),Rn=un[0],xr=un[1],Ca=Object(E.useState)(0),Nr=Object(r.a)(Ca,2),Sr=Nr[0],xa=Nr[1];Object(E.useMemo)(function(){var qn,Ar,Da;if(Mr!=null&&(qn=Mr.published_course_groups)!==null&&qn!==void 0&&qn.length){var Ia,La=Object(O.a)(Mr==null||((Ia=Mr.published_course_groups)===null||Ia===void 0)?void 0:Ia.map(function(ii){return Object(O.a)(ii.course_group_id)}).flat());ct(Object(O.a)(La))}else if(Mr!=null&&Mr.published_course_groups){var Br;ct(Object(O.a)(Mr==null||((Br=Mr.course_groups)===null||Br===void 0)?void 0:Br.map(function(ii){return ii.course_group_id})))}if(Mr!=null&&(Ar=Mr.exercise)!==null&&Ar!==void 0&&Ar.group_make_ups||Mr!=null&&(Da=Mr.exercise)!==null&&Da!==void 0&&Da.unified_make_up){var $r;if(gr(!0),Mr!=null&&($r=Mr.exercise)!==null&&$r!==void 0&&$r.group_make_ups){var ka,Na,qa=zt;Mr==null||((ka=Mr.exercise)===null||ka===void 0||((Na=ka.group_make_ups)===null||Na===void 0))||Na.map(function(ii,ri){qa[ri]=ii.course_group_id||[]}),Ft(Object(O.a)(qa))}}},[Mr]),Object(E.useEffect)(function(){console.log("groupIds:",st)},[st]),Object(E.useEffect)(function(){console.log("selectGroupIds:",zt)},[zt]);var Vr=function(){var qn=Object(x.a)(y.a.mark(function Ar(Da){var Ia;return y.a.wrap(function(Br){for(;;)switch(Br.prev=Br.next){case 0:return Br.next=2,Object(P.K)(Object(i.a)({},Rn));case 2:Ia=Br.sent,_t(Object(O.a)(Ia.users.map(function($r){return $r.key=String($r.id),$r}).filter(function($r){var ka;return console.log("openKeys",An.group_make_ups[Sr].students,Sr),!((ka=An.group_make_ups[Sr].students)!==null&&ka!==void 0&&ka.some(function(Na){return Na.id===$r.id}))})));case 4:case"end":return Br.stop()}},Ar)}));return function(Da){return qn.apply(this,arguments)}}(),nr=[,{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"name"},{title:"\u5206\u73ED",dataIndex:"course_group_name"}],Fr={onChange:function(Ar,Da){hn(Object(O.a)(Da)),console.log("selectedRowKeys: ".concat(Ar),"selectedRows: ",Da)},getCheckboxProps:function(Ar){return{disabled:Ar.name==="Disabled User",name:Ar.name}}},Wn=function(Ar){return rr?!0:$e.exercise_status!==3},pn=function(Ar){var Da,Ia,La;return rr?!0:$e.exercise_status===2&&!(Mr!=null&&(Da=Mr.exercise)!==null&&Da!==void 0&&(Ia=Da.group_make_ups)!==null&&Ia!==void 0&&(La=Ia[Ar])!==null&&La!==void 0&&La.course_groups)?!1:$e.exercise_status!==3},Rr=function(Ar){if(rr)return!0;if($e.exercise_status===2){var Da,Ia,La;return Mr==null||((Da=Mr.exercise)===null||Da===void 0||((Ia=Da.group_make_ups)===null||Ia===void 0||((La=Ia[Ar])===null||La===void 0)))?void 0:La.is_all}return $e.exercise_status!==3};return t.a.createElement(t.a.Fragment,null,t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:24},t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement("h1",{className:"mt15"},"\u8865\u8003\u8BBE\u7F6E ",t.a.createElement("span",{className:"c-red font14"},"\uFF08\u6B63\u5F0F\u5F00\u59CB\u8865\u8003\u524D\uFF0C\u5207\u8BB0\u4FEE\u6539\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u5927\u4E8E\u5F53\u524D\u65F6\u95F4\uFF09"))))),t.a.createElement(Ee.a,{span:24,className:"mt10"},t.a.createElement(be.a,{checked:An.unified_make_up||((En=An.group_make_ups)===null||En===void 0?void 0:En.length),disabled:rr,onChange:function(Ar){Ar.target.checked?An.unified_make_up=!0:(An.unified_make_up=!1,delete An.group_make_ups),gr(Ar.target.checked)}},t.a.createElement("strong",null,"\u5F00\u542F\u8865\u8003")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u5F00\u542F\u540E\u53EF\u9488\u5BF9\u672A\u7B54\u5377\u7684\u5B66\u751F\u8BBE\u7F6E\u8865\u8003\uFF0C\u8865\u8003\u4E0E\u5EF6\u957F\u622A\u6B62\u65F6\u95F4\u4E0D\u53EF\u5171\u5B58\uFF09"))),zn&&t.a.createElement("section",{className:"ml40"},t.a.createElement(he.a,{align:"middle",className:"mt10"},t.a.createElement(Ee.a,null,t.a.createElement(F.a,{checked:An.unified_make_up,disabled:rr,onClick:function(){An.unified_make_up=!0,delete An.group_make_ups,ar(Object(i.a)({},An))}},"\u6240\u6709\u5206\u73ED\u7EDF\u4E00\u8865\u8003")),t.a.createElement(Ee.a,null,t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),t.a.createElement(Ee.a,{className:"ml10 mr10"},t.a.createElement(J.a,{min:0,max:100,placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:rr||$e.exercise_status!==3,onChange:function(Ar){An.make_up_score=Ar,ar(Object(i.a)({},An))},value:An.make_up_score,style:{width:150}})),t.a.createElement(Ee.a,null,"(\u5206)")))),((Or=Mr.course_groups)===null||Or===void 0?void 0:Or.length)>0&&t.a.createElement(he.a,{align:"middle",className:"mt10"},t.a.createElement(Ee.a,null,t.a.createElement(F.a,{disabled:rr||$e.exercise_status!==3,checked:An.group_make_ups,onClick:function(){var Ar;delete An.unified_make_up,An.group_make_ups=(Mr==null||((Ar=Mr.exercise)===null||Ar===void 0)?void 0:Ar.group_make_ups)||[{students:[],course_group_id:[],score:0}],ar(Object(i.a)({},An))}},"\u5404\u73ED\u5206\u522B\u8865\u8003"))),(yr=An.group_make_ups)===null||yr===void 0?void 0:yr.map(function(qn,Ar){var Da,Ia;return t.a.createElement("div",{key:Ar},t.a.createElement(he.a,{align:"middle",className:"mt10"},t.a.createElement(Ee.a,{flex:"100px"},"\u8865\u8003\u89C4\u5219",Ar+1),t.a.createElement(Ee.a,{className:"ml10"},t.a.createElement(dt.a,{style:{width:307},value:qn.course_group_id,mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",disabled:pn(Ar),onChange:function(Br,$r,ka){zt[Ar]=Br,An.group_make_ups[Ar].course_group_id=Br,ar(Object(i.a)({},An)),Ft(Object(O.a)(zt))}},Mr==null||((Da=Mr.course_groups)===null||Da===void 0)?void 0:Da.map(function(La,Br){var $r=[];return st.includes(La.course_group_id)?(zt.length&&($r=zt.filter(function(ka,Na){return Ar===Na?!1:!!ka.includes(La.course_group_id)})),$r.length?void 0:t.a.createElement(nn,{value:La.course_group_id,key:Br},La.course_group_name)):void 0}))),t.a.createElement(Ee.a,null,t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),t.a.createElement(Ee.a,{className:"ml10 mr10"},t.a.createElement(J.a,{value:qn.score,min:0,max:100,style:{width:150},placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:pn(Ar),onChange:function(Br){An.group_make_ups[Ar].score=Br,ar(Object(i.a)({},An))}})),t.a.createElement(Ee.a,null,"(\u5206)")))),t.a.createElement(he.a,{className:"mt20"},t.a.createElement(Ee.a,{flex:"220px"},t.a.createElement(F.a.Group,{name:"student",value:qn.is_all,disabled:Rr(Ar),onChange:function(Br){if(Br.target.value)delete An.group_make_ups[Ar].students;else{var $r,ka,Na;An.group_make_ups[Ar].students=(Mr==null||(($r=Mr.exercise)===null||$r===void 0||((ka=$r.group_make_ups)===null||ka===void 0||((Na=ka[Ar])===null||Na===void 0)))?void 0:Na.students)||[]}An.group_make_ups[Ar].is_all=Br.target.value,ar(Object(i.a)({},An))}},t.a.createElement(F.a,{value:!0},"\u5168\u90E8\u672A\u7B54\u5B66\u751F"),t.a.createElement(F.a,{value:!1},"\u6307\u5B9A\u5B66\u751F"))),t.a.createElement(Ee.a,{flex:"1"},!An.group_make_ups[Ar].is_all&&t.a.createElement("div",{onClick:function(){var Br;if(!((Br=zt[Ar])!==null&&Br!==void 0&&Br.length)){p.b.warn("\u8BF7\u5148\u9009\u62E9\u8865\u8003\u73ED\u7EA7");return}rr||(Rn.exercise_group_id=zt[Ar],we(!0),hn([]),xa(Ar),_t([]),Vr({page:1}))},className:"".concat(rr&&"disabledStyle"),style:{minHeight:28,border:"1px solid #ccc",padding:4}},(Ia=qn.students)===null||Ia===void 0?void 0:Ia.map(function(La,Br){return t.a.createElement(Ct.a,{key:Br,closable:La.add||$e.exercise_status>2,onClose:function(){qn.students.splice(Br,1),ar(Object(i.a)({},An))}},La.name)}))),t.a.createElement(Ee.a,{flex:"100px",className:"tr"},Ar>0&&$e.exercise_status===3&&t.a.createElement(fr.a,{onClick:function(){An.group_make_ups.splice(Ar,1),ar(Object(i.a)({},An))}}),t.a.createElement(Sn.a,{className:"c-green ml20",onClick:function(){An.group_make_ups.push({students:[],course_group_id:[],score:0,is_all:!0}),ar(Object(i.a)({},An))}}))))}),t.a.createElement(m.a,{title:"\u6307\u5B9A\u8865\u8003\u5B66\u751F",visible:Me,onCancel:function(){return we(!1)},destroyOnClose:!0,onOk:function(){An.group_make_ups[Sr].students=An.group_make_ups[Sr].students.concat(aa.map(function(Ar){return Ar.add=!0,Ar})),we(!1),console.log("data:",An),ar(Object(i.a)({},An))}},t.a.createElement(je.a,{columns:[].concat(nr),dataSource:Object(O.a)(ba),rowSelection:Object(i.a)({type:"checkbox"},Fr),pagination:{pageSize:10,defaultCurrent:1}}))))},cn=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En}})(_n),ur=_("m3rI"),Mn=te.a.TextArea,fn=mt.a.RangePicker,Hn=dt.a.Option,Xn=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa,Qn=In.exercise,Hr=In.globalSetting,ha=In.loading,Ma=In.dispatch,la=Object(A.i)(),Ir=Object(A.h)(),mr=Qn.workSetting,Kr=Qn.commonHeader,ra=Object(E.useState)(!0),Er=Object(r.a)(ra,2),wn=Er[0],fa=Er[1],Mr=Object(E.useState)([]),$e=Object(r.a)(Mr,2),pt=$e[0],vt=$e[1],Me=Object(E.useState)({}),we=Object(r.a)(Me,2),Ke=we[0],De=we[1],st=Object(E.useState)([]),ct=Object(r.a)(st,2),Bt=ct[0],gt=ct[1],zt=Object(E.useState)(),Ft=Object(r.a)(zt,2),on=Ft[0],yn=Ft[1],zn=ze.a.useForm(),gr=Object(r.a)(zn,1),Xr=gr[0],Jr=Object(E.useState)([]),aa=Object(r.a)(Jr,2),hn=aa[0],Lr=aa[1],oa=Object(E.useState)({ip_bind:!1,export_page_num:40,ip_limit:null,public_ip:[],inner_ip:[],screen_open:!1,screen_num:3,screen_sec:5,open_camera:!1,identity_verify:!1,open_phone_video_recording:!1,photo_count:5,open_make_up:!1,unified_setting:!1,publish_time:"",end_time:"",group_make_ups:[],unified_make_up:!1,make_up_score:0,time:"",choice_random:!1,question_random:!1,show_statistic:!1,assistant_auth:!1,answer_open:!1,score_open:!1,answered_open:!0,open_score:!0,open_total_score:!0,file_list:[],show_title:!1,show_body:!1,show_info:!1,show_table:!0,show_user:!1,show_no:!1,show_group:!0,show_desc:!1,description:"",attachment_id:"",part_score:!1}),ba=Object(r.a)(oa,2),_t=ba[0],Wr=ba[1];la.category=la.categoryId,Object(E.useEffect)(function(){xr()},[mr]),Object(E.useEffect)(function(){Ma({type:"exercise/getWorkSetting",payload:Object(i.a)({},la)}),Object(wt.s)()||un()},[]);function un(){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(x.a)(y.a.mark(function Wn(){var pn;return y.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qn.next=2,Object(C.a)("/api/courses/".concat(la==null?void 0:la.coursesId,"/exercises/overload_alert.json"),{method:"get",params:{course_id:la==null?void 0:la.coursesId}});case 2:pn=qn.sent,yn(pn==null?void 0:pn.alert);case 4:case"end":return qn.stop()}},Wn)})),Rn.apply(this,arguments)}Object(E.useEffect)(function(){Qn.actionTabs.key==="insterIp"&&(Qn.actionTabs.data.ip?_t[Qn.actionTabs.type]=[].concat(Object(O.a)(_t[Qn.actionTabs.type]||[]),Object(O.a)(Qn.actionTabs.data.ip)):_t[Qn.actionTabs.type]=[].concat(Object(O.a)(_t[Qn.actionTabs.type]||[]),["".concat(Qn.actionTabs.data.startIP,",").concat(Qn.actionTabs.data.startIP.substring(0,Qn.actionTabs.data.startIP.lastIndexOf("."))+"."+Qn.actionTabs.data.endIP)]),Wr(Object(i.a)({},_t)))},[Qn.actionTabs]);var xr=function(){var pn,Rr,qn,Ar,Da,Ia,La,Br=JSON.parse(JSON.stringify(mr));Object.keys(_t).map(function($r){var ka,Na,qa;if(_t[$r]=(Br==null||((ka=Br.exercise)===null||ka===void 0)?void 0:ka[$r])||(Br==null||((Na=Br.exercise_header)===null||Na===void 0)?void 0:Na[$r]),Br!=null&&(qa=Br.exercise_header)!==null&&qa!==void 0&&qa[$r]){var ii;_t[$r]=Br==null||((ii=Br.exercise_header)===null||ii===void 0)?void 0:ii[$r]}else{var ri;_t[$r]=Br==null||((ri=Br.exercise)===null||ri===void 0)?void 0:ri[$r]}}),_t.file_list=Br!=null&&(pn=Br.exercise_header)!==null&&pn!==void 0&&pn.attachment_id?[{uid:Br==null||((Rr=Br.exercise_header)===null||Rr===void 0)?void 0:Rr.attachment_id,id:Br==null||((qn=Br.exercise_header)===null||qn===void 0)?void 0:qn.attachment_id,url:Br==null||((Ar=Br.exercise_header)===null||Ar===void 0)?void 0:Ar.photo_url}]:[],hn=(Br==null||((Da=Br.published_course_groups)===null||Da===void 0)?void 0:Da.map(function($r){return{course_group_id:$r.course_group_id,end_time:$r.course_end_time,publish_time:$r.course_publish_time}}))||[{}],mr==null||((Ia=mr.course_groups)===null||Ia===void 0)||Ia.map(function($r,ka){$r.cilckkey="",$r.isselect=!1}),mr==null||((La=mr.course_groups)===null||La===void 0)||La.map(function($r,ka){var Na;mr==null||((Na=mr.published_course_groups)===null||Na===void 0)||Na.map(function(qa,ii){var ri;qa!=null&&(ri=qa.course_group_id)!==null&&ri!==void 0&&ri.includes($r==null?void 0:$r.course_group_id)&&($r.cilckkey=ii,$r.isselect=!0)})}),console.log("data:",_t,mr),Wr(_t),Lr(hn)},Ca=function(){var pn,Rr,qn,Ar,Da,Ia=JSON.parse(JSON.stringify(_t));if(Ia.categoryId=la.categoryId,Ia.publish_time_groups=hn,Ia.attachment_id=((pn=Ia.file_list)===null||pn===void 0||((Rr=pn[0])===null||Rr===void 0||((qn=Rr.response)===null||qn===void 0))?void 0:qn.id)||null,delete Ia.file_list,_t.unified_setting){if(!_t.publish_time||!_t.end_time)throw p.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")}else{if(!hn.length){p.b.warn("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}delete Ia.publish_time,delete Ia.end_time,hn.map(function(Br){var $r;if(!Br.course_group_id||!(($r=Br.course_group_id)!==null&&$r!==void 0&&$r.length))throw p.b.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!Br.publish_time||!Br.end_time)throw p.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}if(_t.open_camera&&_t.photo_count<1)throw p.b.error("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570"),new String("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570");if(_t.ip_limit!=="no"&&!((Ar=_t.public_ip)!==null&&Ar!==void 0&&Ar.length)&&!((Da=_t.inner_ip)!==null&&Da!==void 0&&Da.length))throw p.b.error("\u8BF7\u586B\u5199\u516C\u7F51IP\u6216\u5185\u7F51IP\u5730\u5740"),new String("\u8BF7\u586B\u5199\u5185\u7F51IP\u5730\u5740");if(_t.open_camera||_t.screen_open)var La=m.a.confirm({title:"\u8003\u8BD5\u8BF4\u660E",className:"custom-modal-divider",icon:null,width:750,content:t.a.createElement("div",{className:"font16 p20"},_t.open_camera&&t.a.createElement(he.a,{align:"",justify:"start",className:"mt20"},t.a.createElement(Ee.a,{flex:"24px"},t.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),t.a.createElement(Ee.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u6444\u50CF\u9632\u4F5C\u5F0A\u529F\u80FD\uFF0C",t.a.createElement("span",{className:"c-red"},"\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907"),"\u3002Educoder\u5E73\u53F0\u5C06\u4F1A\u4E25\u683C\u4FDD\u62A4\u6240\u6709\u5B66\u751F\u7684\u7167\u7247\u548C\u89C6\u9891\uFF0C\u5E76\u627F\u8BFA\u4E0D\u5728\u672C\u5E73\u53F0\u4EE5\u5916\u4F7F\u7528\u3002",t.a.createElement("br",null),"\u8BF7\u786E\u8BA4\uFF1A\u4E3A\u4E25\u683C\u76D1\u7763\u8003\u8BD5\u4EE5\u83B7\u5F97\u516C\u5E73\uFF0C\u60A8\u540C\u610F\u5E76\u548C\u8981\u6C42Educoder\u5E73\u53F0\u5728\u672C\u6B21\u8003\u8BD5\u4E2D\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907\u5E76\u83B7\u53D6\u5B66\u751F\u7684\u5F71\u50CF\u4FE1\u606F\u3002")),_t.screen_open&&t.a.createElement(he.a,{justify:"start",className:"mt20"},t.a.createElement(Ee.a,{flex:"24px",className:"mr20"},t.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),t.a.createElement(Ee.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u9632\u5207\u5C4F\u529F\u80FD\uFF0C\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u4EC5\u652F\u6301\u8C37\u6B4C\u3001\u706B\u72D0\u6D4F\u89C8\u5668\u3002 \u8BF7\u786E\u4FDD\uFF1A\u5728\u6B63\u5F0F\u5F00\u59CB\u8003\u8BD5\u524D\u901A\u77E5\u5168\u4F53\u5B66\u751F\uFF0C\u4F7F\u7528 ",t.a.createElement("img",{width:"26",src:it.g})," ",t.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C\u6D4F\u89C8\u5668"),"\u6216",t.a.createElement("img",{width:"26",src:it.p})," ",t.a.createElement("span",{className:"c-red"},"\u706B\u72D0\u6D4F\u89C8\u5668"),"\u8FDB\u884C\u8003\u8BD5\u3002")),t.a.createElement("p",{className:"ml40 mt40"},t.a.createElement(be.a,{onChange:function($r){return La.update({okButtonProps:{disabled:!$r.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){Nr(Ia)},okButtonProps:{disabled:!0}});else Nr(Ia)},Nr=function(pn){Object(P.db)(Object(i.a)({},pn)).then(function(Rr){Rr.status===0&&(p.b.success("\u66F4\u65B0\u6210\u529F"),Ma({type:"exercise/getCommonHeader",payload:Object(i.a)({},la)}),Ma({type:"exercise/getWorkSetting",payload:Object(i.a)({},la)}),fa(!0))})},Sr=function(pn){return pn&&pn1&&!(pn!=null&&pn.new)?!0:mr!=null&&(qn=mr.published_course_groups)!==null&&qn!==void 0&&qn.some(function(Ar){return Ar.course_group_id===pn.course_group_id})?wn:!1},nr=function(pn){var Rr,qn;if(wn)return[!0,!0];if((mr==null||((Rr=mr.exercise)===null||Rr===void 0)?void 0:Rr.exercise_status)>1)return pn!=null&&pn.new?[!1,!1]:[!0,!1];if(mr!=null&&(qn=mr.published_course_groups)!==null&&qn!==void 0&&qn.some(function(Da){return Da.course_group_id===pn.course_group_id})){var Ar;return wn||(mr==null||((Ar=mr.exercise)===null||Ar===void 0)?void 0:Ar.exercise_status)>1?[!0,!1]:[!1,!1]}else return[!1,!1]},Fr={disabled:wn,multiple:!1,listType:"picture-card",onPreview:function(pn){Tt.a.publish("preview-image",pn.thumbUrl)},withCredentials:!0,fileList:_t.file_list,beforeUpload:function(pn){var Rr=pn.size/1024;return Rr>200?(p.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),!1):!0},action:"".concat(ur.a.API_SERVER,"/api/attachments.json"),onChange:function(pn){var Rr=pn.fileList.filter(function(qn){return!!qn.status});_t.file_list=Rr,Wr(Object.assign({},_t))},onRemove:function(){var Wn=Object(x.a)(y.a.mark(function Rr(qn){return y.a.wrap(function(Da){for(;;)switch(Da.prev=Da.next){case 0:return _t.file_list=[],Wr(Object.assign({},_t)),Da.abrupt("return",!0);case 3:case"end":return Da.stop()}},Rr)}));function pn(Rr){return Wn.apply(this,arguments)}return pn}()};return t.a.createElement("section",{className:[rt.a.form,"mb50 bg-white"].join(" ")},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:24},t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement("h1",{className:"mt15"},"\u53D1\u5E03\u8BBE\u7F6E")),t.a.createElement(Ee.a,null,Object(wt.c)()&&Kr.can_edit&&wn&&t.a.createElement(g.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return fa(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),((En=mr.course_groups)===null||En===void 0?void 0:En.length)>0&&t.a.createElement(Ee.a,{span:24,className:"mt10"},t.a.createElement(be.a,{checked:_t.unified_setting,disabled:wn||(mr==null||((Or=mr.exercise)===null||Or===void 0)?void 0:Or.exercise_status)>1,onChange:function(){var pn;if((mr==null||((pn=mr.exercise)===null||pn===void 0)?void 0:pn.exercise_status)>1){p.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03");return}_t.unified_setting=!_t.unified_setting,_t.unified_setting===!1&&hn==""&&Lr(hn.concat({})),Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\u5219\u6240\u6709\u5206\u73ED\u4F7F\u7528\u76F8\u540C\u7684\u53D1\u5E03\u8BBE\u7F6E\uFF0C\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u53EF\u4FEE\u6539\uFF1B\u5426\u5219\u5404\u4E2A\u5206\u73ED\u5141\u8BB8\u5355\u72EC\u8BBE\u7F6E)")),t.a.createElement("span",{style:{color:"red"}},(mr==null||((yr=mr.exercise)===null||yr===void 0)?void 0:yr.exercise_status)>1&&on&&"\u5F53\u524D\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\uFF0C\u4E3A\u63D0\u4F9B\u66F4\u597D\u7684\u670D\u52A1\uFF0C\u6211\u4EEC\u5C06\u8FDB\u884C\u670D\u52A1\u5668\u6269\u5BB9\uFF0C\u5EFA\u8BAE\u60A8\u572830\u5206\u949F\u540E\u53D1\u8D77\u8003\u8BD5\u3002\u60A8\u4E5F\u53EF\u4EE5\u7ACB\u5373\u53D1\u5E03\u3002")),_t.unified_setting&&t.a.createElement("div",null,t.a.createElement(he.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(Ee.a,null,"\u53D1\u5E03\u65F6\u95F4:"),t.a.createElement(Ee.a,{className:"ml5"},t.a.createElement(Ne.a,{placement:"bottom",title:(mr==null||((zr=mr.exercise)===null||zr===void 0)?void 0:zr.exercise_status)>1&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u4FEE\u6539"},t.a.createElement(mt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Fe()(Object(R.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabledDate:Sr,disabled:wn||(mr==null||((Zn=mr.exercise)===null||Zn===void 0)?void 0:Zn.exercise_status)>1,value:_t.publish_time?Fe()(_t.publish_time):"",allowClear:!1,onChange:function(pn,Rr){_t.publish_time=Rr,_t.end_time||(_t.end_time=Fe()(pn).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),Wr(Object.assign({},_t))}}))),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"))),t.a.createElement(he.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(Ee.a,null,"\u622A\u6B62\u65F6\u95F4:"),t.a.createElement(Ee.a,{className:"ml5"},t.a.createElement(mt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Fe()(Object(R.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:wn,allowClear:!1,value:_t.end_time?Fe()(_t.end_time):"",disabledDate:xa,onChange:function(pn,Rr){_t.end_time=Rr,Wr(Object.assign({},_t))}})),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)")))),!_t.unified_setting&&t.a.createElement(he.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},t.a.createElement(Ee.a,{span:24},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:10}),t.a.createElement(Ee.a,{span:9},t.a.createElement(he.a,{className:"c-grey-c"},t.a.createElement(Ee.a,{flex:"1"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"),t.a.createElement(Ee.a,{flex:"1"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)"))),t.a.createElement(Ee.a,{span:4}))),hn&&hn.map(function(Wn,pn){return t.a.createElement(Ee.a,{span:24,key:pn},t.a.createElement(he.a,{gutter:[8,16]},t.a.createElement(Ee.a,{span:9},t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,"\u53D1\u5E03\u89C4\u5219 ",pn+1),t.a.createElement(Ee.a,{style:{flexBasis:332}},t.a.createElement(dt.a,{allowClear:!0,disabled:Vr(Wn),className:"ml20",mode:"multiple",size:"large",style:{width:"100%"},value:Wn.course_group_id,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",optionFilterProp:"label",onChange:function(qn){hn[pn].course_group_id=qn,vt(hn.map(function(Ar){return Ar.course_group_id}).toString().split(",")),Lr(hn.slice()),mr.course_groups.map(function(Ar,Da){qn.map(function(Ia,La){Ar.course_group_id===Ia&&(Ar.cilckkey=pn,Ar.isselect=!0)})}),console.log(mr,"workSetting")},onDeselect:function(qn){mr.course_groups.map(function(Ar,Da){Ar.course_group_id===qn&&Ar.cilckkey===pn&&(Ar.cilckkey=pn,Ar.isselect=!1)})}},mr.course_groups&&mr.course_groups.map(function(Rr,qn){return t.a.createElement(Hn,Object(Ce.a)({key:qn,disabled:(Rr==null?void 0:Rr.isselect)&&Rr.cilckkey!=pn,label:Rr.course_group_name,value:Rr.course_group_id},"key",Rr.course_group_id),Rr.course_group_name)}))))),t.a.createElement(Ee.a,{span:1}),t.a.createElement(Ee.a,{span:9},t.a.createElement(fn,{disabled:nr(Wn),disabledDate:Sr,style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],showTime:{format:"HH:mm",defaultValue:[Fe()(Object(R.d)(),"HH:mm"),Fe()(Object(R.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",size:"large",value:Wn.publish_time&&[Fe()(Wn.publish_time),Wn.end_time&&Fe()(Wn.end_time)],onChange:function(qn,Ar){Vr(Wn)||(hn[pn].publish_time=Ar[0]),hn[pn].end_time=Ar[1],Lr(Object(O.a)(hn))}})),!wn&&t.a.createElement(Ee.a,{span:4},pn>0&&(Wn==null?void 0:Wn.new)&&t.a.createElement(fr.a,{onClick:function(){hn=hn.filter(function(qn,Ar){return pn!==Ar}),Lr(Object(O.a)(hn))}}),t.a.createElement(Sn.a,{className:"c-green ml20",onClick:function(){Lr(hn.concat({new:!0}))}}))))})),t.a.createElement(St.a,null),((Kr==null?void 0:Kr.exercise_status)===3||_t.open_make_up)&&t.a.createElement(t.a.Fragment,null,t.a.createElement(cn,{data:_t,disabled:wn,updata:Wr}),t.a.createElement(St.a,null)),t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u7B54\u9898\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("span",null,"\u7B54\u9898\u65F6\u957F\uFF1A"),t.a.createElement(J.a,{size:"large",disabled:wn,min:1,value:_t.time===-1?null:_t.time,onChange:function(pn){_t.time=pn,Wr(Object(i.a)({},_t))}}),t.a.createElement("span",{className:"ml10"},"\u5206\u949F"),t.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u7A7A\u503C\uFF0C\u4EE3\u8868\u4E0D\u9650\u65F6\u957F\uFF1B\u975E\u7A7A\u503C\uFF0C\u4EE3\u8868\u9650\u5236\u65F6\u957F\uFF0C\u4ECE\u5B66\u751F\u9996\u6B21\u7B54\u9898\u5F00\u59CB\u6301\u7EED\u8BA1\u65F6)")),!(Kr!=null&&Kr.is_random)&&t.a.createElement(t.a.Fragment,null,t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.question_random,disabled:wn,onChange:function(pn){_t.question_random=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9898\u76EE\u987A\u5E8F\u6309\u7167\u9898\u578B\u968F\u673A\u663E\u793A)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.choice_random,disabled:wn,onChange:function(pn){_t.choice_random=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9009\u9879\u987A\u5E8F\u968F\u673A\u663E\u793A)"))),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.part_score,disabled:wn,onChange:function(pn){_t.part_score=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u591A\u9009\u9898\u90E8\u5206\u5F97\u5206")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u90E8\u5206\u5F97\u5206=\uFF08\u7B54\u5BF9\u6570\u91CF/\u7B54\u6848\u603B\u6570\uFF09*\u8BD5\u9898\u5206\u503C\uFF0C\u5B58\u5728\u7B54\u9519\u4E0D\u5F97\u5206)"))),t.a.createElement(St.a,null),t.a.createElement(t.a.Fragment,null,t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u9632\u4F5C\u5F0A\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.identity_verify,disabled:!Object(wt.o)()||wn,onChange:function(pn){_t.identity_verify=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53C2\u52A0\u8003\u8BD5\u524D\u5C06\u4F1A\u8981\u6C42\u8C03\u7528\u6444\u50CF\u5934\u5E76\u5B8C\u6210\u62CD\u7167\u91C7\u96C6\uFF0C\u6559\u5E08/\u52A9\u6559\u5BA1\u6838\u901A\u8FC7\u540E\u5B66\u751F\u5E76\u5F00\u542F\u624B\u673A\u5F55\u5236\u89C6\u9891\u5219\u53EF\u4EE5\u5F00\u59CB\u8003\u8BD5)"),t.a.createElement("br",null),t.a.createElement("span",{className:"c-grey-c font12"},"\u5982\u5F00\u542F\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u4EE5\u5728\u8BE5\u8003\u8BD5\u4E2D\u7684\u8BE6\u60C5\u9875\u4E2D\u5BF9\u5B66\u751F\u4EBA\u8138\u8EAB\u4EFD\u8FDB\u884C\u5BA1\u6838\u3002")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.open_camera,disabled:wn,onChange:function(pn){if(!_t.time){p.b.error("\u4E0D\u9650\u65F6\u957F\u7684\u8003\u8BD5\u4E0D\u53EF\u5F00\u542F\u6444\u50CF\u5934\uFF0C\u8BF7\u586B\u5199\u8003\u8BD5\u65F6\u957F");return}_t.open_camera=pn.target.checked,_t.photo_count=_t.photo_count||5,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u76D1\u8003")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53C2\u52A0\u8003\u8BD5\u65F6\u5C06\u4F1A\u8981\u6C42\u8C03\u7528\u6444\u50CF\u5934)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("span",null,"\u672C\u573A\u8003\u8BD5\u6700\u591A\u62CD\u6444\uFF1A"),t.a.createElement(J.a,{size:"large",disabled:wn||!_t.open_camera,min:1,defaultValue:5,max:Object(wt.v)()?1e3:10,value:_t.photo_count,onChange:function(pn){_t.photo_count=pn,Wr(Object(i.a)({},_t))}}),t.a.createElement("span",{className:"ml10"},"(\u6B21)"),t.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u8BF7\u586B\u5199\u4E0D\u5927\u4E8E10\u7684\u6B63\u6574\u6570)")),t.a.createElement(Ee.a,{className:"c-grey-c font12 pl30 mt10"},"\u5982\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u5B66\u751F\u5FC5\u987B\u540C\u610F\u624D\u53EF\u4EE5\u53C2\u52A0\u8003\u8BD5\u3002"),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.screen_open,disabled:wn,onChange:function(pn){_t.screen_open=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"))),_t.screen_open&&t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 font14"},t.a.createElement("span",{className:"c-grey-333 mr10"},"\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u5207\u6362\u9875\u9762\u8D85\u8FC7"),t.a.createElement(J.a,{size:"large",disabled:wn,min:0,defaultValue:3,max:10,value:_t.screen_num,onChange:function(pn){_t.screen_num=pn,Wr(Object(i.a)({},_t))}}),t.a.createElement("span",{className:"c-grey-333 mr10"},"\uFF08\u6B21\uFF09\u540E\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF0C\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762"),t.a.createElement(J.a,{size:"large",disabled:wn,min:0,defaultValue:5,max:60,value:_t.screen_sec,onChange:function(pn){_t.screen_sec=pn,Wr(Object(i.a)({},_t))}}),t.a.createElement("span",{className:"c-grey-333"},"\uFF08\u79D2\uFF09\u540E\u5373\u5224\u5B9A\u4E3A\u5207\u5C4F\u3002")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.ip_limit!=="no",disabled:wn,onChange:function(pn){_t.ip_limit==="no"?_t.ip_limit="pub":_t.ip_limit="no",Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),t.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u4E0D\u5728IP\u8303\u56F4\u4E2D\u7684\u5C06\u65E0\u6CD5\u53C2\u52A0\u6B64\u8003\u8BD5\uFF09"))),_t.ip_limit!=="no"&&t.a.createElement(Ee.a,{className:"mt15 ml50"},t.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u8981\u6C42\u5B66\u751F\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),t.a.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),_t.ip_limit!=="no"&&t.a.createElement(t.a.Fragment,null,t.a.createElement(he.a,{className:"mt15 ml50 ".concat(rt.a.ipWrp)},t.a.createElement(Ee.a,null,t.a.createElement("span",null,"\u516C\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),t.a.createElement(Ee.a,null,!((An=_t.public_ip)!==null&&An!==void 0&&An.length)&&t.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(rr=_t.public_ip)===null||rr===void 0?void 0:rr.map(function(Wn,pn){return t.a.createElement("span",{className:rt.a.ipItem},t.a.createElement("i",null,Wn," "),!wn&&t.a.createElement(On.a,{onClick:function(){m.a.confirm({okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){_t.public_ip.splice(pn,1),Wr(Object(i.a)({},_t))}})},className:" c-grey-c",size:20}))}),Object(wt.c)()&&!wn&&t.a.createElement("span",{onClick:function(){Ma({type:"exercise/setActionTabs",payload:{key:"addIp",type:"public_ip"}})},className:"font14 c-blue ml10"}," ",t.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))),t.a.createElement(he.a,{className:"mt15 ml50 ".concat(rt.a.ipWrp)},t.a.createElement(Ee.a,null,t.a.createElement("span",null,"\u5185\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),t.a.createElement(Ee.a,null,!((ar=_t.inner_ip)!==null&&ar!==void 0&&ar.length)&&t.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(Pr=_t.inner_ip)===null||Pr===void 0?void 0:Pr.map(function(Wn,pn){return t.a.createElement("span",{className:rt.a.ipItem},t.a.createElement("i",null,Wn," "),!wn&&t.a.createElement(On.a,{onClick:function(){wn||m.a.confirm({title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){_t.inner_ip.splice(pn,1),Wr(Object(i.a)({},_t))}})},className:" c-grey-c",size:20}))}),Object(wt.c)()&&!wn&&t.a.createElement("span",{className:"font14 c-blue ml10",onClick:function(){Ma({type:"exercise/setActionTabs",payload:{key:"addIp",type:"inner_ip"}})}}," ",t.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0")))),t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.ip_bind,disabled:wn,onChange:function(pn){_t.ip_bind=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"IP\u7ED1\u5B9A"),t.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u8003\u8BD5\u5F00\u59CB\u540E\uFF0C\u5B66\u751F\u7684\u8D26\u53F7\u5C06\u81EA\u52A8\u4E0E\u673A\u5668IP\u7ED1\u5B9A\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u4EE5\u89E3\u9664\u5B66\u751F\u7684IP\u7ED1\u5B9A\uFF09")))),t.a.createElement(St.a,null)),t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u5C5E\u6027\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.score_open,disabled:wn,onChange:function(pn){_t.score_open=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9\uFF1B\u4F46\u672A\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D\u65F6\u81EA\u5DF1\u548C\u5176\u4ED6\u540C\u5B66\u6210\u7EE9\u5747\u4E0D\u53EF\u89C1)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.answer_open,disabled:wn,onChange:function(pn){_t.answer_open=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BD5\u5377\u9898\u76EE\u7684\u7B54\u6848\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 "},t.a.createElement(be.a,{checked:_t.show_statistic,disabled:wn,onChange:function(pn){_t.show_statistic=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u516C\u5F00\u7EDF\u8BA1")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u7B54\u9898\u7EDF\u8BA1\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.open_total_score,disabled:wn,onChange:function(pn){_t.open_total_score=pn.target.checked,pn.target.checked===!1&&(_t.open_score=pn.target.checked),Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u67E5\u770B\u603B\u6210\u7EE9")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u7684\u603B\u6210\u7EE9\u53CA\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\uFF0C\u5426\u5219\u603B\u6210\u7EE9\u548C\u5C0F\u9898\u5F97\u5206\u5747\u4E0D\u80FD\u67E5\u770B)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.open_score,disabled:_t.open_total_score?wn:!0,onChange:function(pn){_t.open_score=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u67E5\u770B\u5C0F\u9898\u5F97\u5206")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\u8BE6\u60C5\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B\u3002\u9009\u4E2D\u672C\u9879\u524D\u5FC5\u987B\u5148\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.answered_open,disabled:wn,onChange:function(pn){_t.answered_open=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u67E5\u770B\u5DF2\u7B54\u8BD5\u5377")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u67E5\u770B\u8BD5\u5377\u548C\u6210\u7EE9\uFF1B\u5426\u5219\u53EA\u80FD\u67E5\u770B\u6210\u7EE9\uFF0C\u4E0D\u80FD\u67E5\u770B\u8BD5\u5377)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 pb40"},t.a.createElement(be.a,{checked:_t.assistant_auth,disabled:wn,onChange:function(pn){_t.assistant_auth=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u52A9\u6559\u67E5\u770B\u7B54\u6848")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u52A9\u6559\u67E5\u770B\u7B54\u6848)"))),t.a.createElement(St.a,null),Object(wt.c)()&&t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"600px"},t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u8BD5\u5377\u5BFC\u51FA\u683C\u5F0F\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("strong",null,"\u5377\u5934\u5DE6\u89D2\u6807"),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u4F4D\u4E8E\u9996\u9875\u5DE6\u4E0A\u89D2\uFF0C\u8BF7\u4EE5\u56FE\u7247\u4E0A\u4F20\uFF1B\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k\uFF0C\u5C3A\u5BF8\u4E3A700x500\uFF09")),t.a.createElement("div",{className:"mt15 pl30"},t.a.createElement(Jn.a,Fr,!((sa=_t.file_list)!==null&&sa!==void 0&&sa.length)&&t.a.createElement("div",null,t.a.createElement(or.a,null),t.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")))),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.show_title,disabled:wn,onChange:function(pn){_t.show_title=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u5C55\u793A\u8BD5\u5377\u6807\u9898")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8BD5\u5377\u6807\u9898\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 "},t.a.createElement(be.a,{checked:_t.show_body,disabled:wn,onChange:function(pn){_t.show_body=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u5C55\u793A\u8003\u8BD5\u5185\u5BB9")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF0C\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.show_info,disabled:wn,onChange:function(pn){_t.show_info=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F\u4FE1\u606F\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.show_table,disabled:wn,onChange:function(pn){_t.show_table=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u7ED9\u51FA\u5B66\u751F\u7684\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("strong",null,"\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"),t.a.createElement(be.a,{className:"pl8",checked:_t.show_user,disabled:wn,onChange:function(pn){_t.show_user=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u59D3\u540D")),t.a.createElement(be.a,{checked:_t.show_no,disabled:wn,onChange:function(pn){_t.show_no=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u5B66\u53F7")),t.a.createElement(be.a,{checked:_t.show_group,disabled:wn,onChange:function(pn){_t.show_group=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u4E13\u4E1A\u73ED\u7EA7"))),Object(wt.o)()&&t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("span",null,"\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"),t.a.createElement(J.a,{size:"large",min:1,value:_t.export_page_num?_t.export_page_num:40,onChange:function(pn){_t.export_page_num=pn,Wr(Object(i.a)({},_t))}}),t.a.createElement("span",{className:"ml10"},"\u9898")),t.a.createElement("span",{className:"c-grey-c font12 pl30 pt10"},"\uFF08\u52FE\u9009\u9879\u5C06\u4F1A\u51FA\u73B0\u5728\u9996\u9875\u5DE6\u4FA7\u5BC6\u5C01\u7EBF\u5185\uFF0C\u4E0D\u9009\u5219\u4EE3\u8868\u4E0D\u8BBE\u7F6E\u5BC6\u5C01\u533A\uFF09"),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:_t.show_desc,disabled:wn,onChange:function(pn){_t.show_desc=pn.target.checked,Wr(Object.assign({},_t))}},t.a.createElement("strong",null,"\u8003\u8BD5\u8BF4\u660E")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5F00\u542F\u6587\u672C\u7F16\u8F91\u5668\uFF0C\u53EF\u8F93\u5165500\u5B57\u4EE5\u5185\u7684\u8003\u8BD5\u8BF4\u660E\uFF09")),_t.show_desc&&t.a.createElement("div",{className:"mt15 pl30 pb40"},wn?t.a.createElement(Mn,{style:{height:150,width:550},disabled:!0,value:_t.description}):t.a.createElement(ut.a,{width:550,height:150,defaultValue:_t.description,id:"exercise-detail-config-exam-description-id",onChange:function(pn){_t.description=pn,Wr(Object.assign({},_t))}})))),t.a.createElement(Ee.a,{flex:1,className:"pt40 mb20"},t.a.createElement("div",{className:"pb10"},"\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"),t.a.createElement("img",{src:it.o}))),!wn&&t.a.createElement(Ee.a,{className:"mb50 pb10 btn-w120"},t.a.createElement(g.a,{type:"primary",size:"large",onClick:function(){return Ca()}},"\u63D0\u4EA4"),t.a.createElement(g.a,{onClick:function(){fa(!0),xr()},type:"primary",size:"large",ghost:!0,className:"ml20"},"\u53D6\u6D88")),t.a.createElement(sn.a,null),t.a.createElement(se,null))},$n=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading,Or=tr.globalSetting;return{exercise:In,loading:En.effects,globalSetting:Or}})(Xn),Yn=_("MXD1"),_r=_("CFYs"),vr=_("9Bee"),lr=_("51gm"),wr=_.n(lr),Dr={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u4E3B\u89C2\u9898",5:"\u5B9E\u8BAD\u9898",7:"\u7EC4\u5408\u9898"},sr={1:"\u6EE1\u5206\u4F5C\u7B54",2:"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54",3:"\u96F6\u5206\u4F5C\u7B54",4:"\u672A\u6279"},ia=function(In){var En,Or,yr=In.exercise,zr=In.loading,Zn=In.dispatch,An=Object(A.i)(),rr=Object(E.useState)(Object(i.a)(Object(i.a)({},An),{sort:"asc",page:1,limit:10})),ar=Object(r.a)(rr,2),Pr=ar[0],sa=ar[1],Qn=Object(A.h)(),Hr=yr.statisticsList,ha=Object(E.useState)({}),Ma=Object(r.a)(ha,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)([]),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=Object(E.useState)(""),fa=Object(r.a)(wn,2),Mr=fa[0],$e=fa[1],pt=Object(E.useState)(""),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=ze.a.useForm(),De=Object(r.a)(Ke,1),st=De[0],ct=function(){var on=Object.assign({},st.getFieldValue());Object.keys(on).map(function(yn){on[yn].includes("all")?(delete Pr[yn],st.setFieldsValue(Object(Ce.a)({},yn,"all"))):(Pr[yn]=on[yn],st.setFieldsValue(Object(Ce.a)({},yn,Pr[yn])))}),Pr.page=1,Pr.limit=10,zt()},Bt=function(on,yn){Pr.page=on,Pr.limit=20,Zn({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Pr)})},gt=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",align:"center",render:function(on){return t.a.createElement("span",null,on===0?0:(on*100).toFixed(2),"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",align:"center",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",align:"center",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u4EBA")}}],zt=function(){var Ft=Object(x.a)(y.a.mark(function on(){var yn;return y.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return gr.next=2,Zn({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Pr)});case 2:yn=gr.sent,yn!=null&&yn.exercise_counts&&Er([yn.exercise_counts]);case 4:case"end":return gr.stop()}},on)}));return function(){return Ft.apply(this,arguments)}}();return Object(E.useEffect)(function(){zt()},[Pr.coursesId]),t.a.createElement(t.a.Fragment,null,t.a.createElement("section",{className:"minH500 bg-white"},t.a.createElement("aside",{className:"pt20"},t.a.createElement(ze.a,{form:st,onChange:ct,initialValues:(En={},Object(Ce.a)(En,"commit_status","all"),Object(Ce.a)(En,"exercise_group_id","all"),Object(Ce.a)(En,"review","all"),En)},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!la.course_group},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1",className:wr.a.wrap},Hr.course_groups&&Hr.course_groups.map(function(Ft,on){return t.a.createElement(be.a,{value:Ft.exercise_group_id,key:on},Ft.exercise_group_name,"(",Ft.exercise_group_students,")")}))))))),t.a.createElement(je.a,{className:"mt30",loading:zr["exercise/getExerciseStatistics"],pagination:!1,dataSource:ra,columns:gt}),t.a.createElement("div",{className:wr.a.title},t.a.createElement(he.a,{align:"middle",style:{height:"100%"},className:"ml5 mr5"},t.a.createElement(Ee.a,{flex:1,className:"font16"},"\u7EDF\u8BA1\u8BE6\u60C5"),t.a.createElement(Ee.a,{className:"font16"},t.a.createElement("span",{className:"current",onClick:function(){Pr.sort=Pr.sort==="desc"?"asc":"desc",console.log("xx params.sort: ",Pr.sort),sa(Object(i.a)({},Pr)),zt()}},t.a.createElement("span",null,"\u6B63\u786E\u7387"),t.a.createElement("p",{className:"edu-sorter current ".concat(Pr.sort)},t.a.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),t.a.createElement("span",{className:"iconfont icon-sanjiaoxing-down"})))))),t.a.createElement(ne.a,{spinning:zr["exercise/getExerciseStatistics"]},t.a.createElement("div",{className:"minH200"},Hr==null||((Or=Hr.commit_results)===null||Or===void 0)?void 0:Or.map(function(Ft,on){var yn;return t.a.createElement("aside",{key:on,className:"font14 c-black mt30"},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:1},Ft.ques_position,".",Dr[Ft.ques_type]),t.a.createElement(Ee.a,null,"\u6B63\u786E\u7387 ",t.a.createElement("span",{className:"c-orange"},Ft.right_percent,"%"))),t.a.createElement("div",null,t.a.createElement(vr.a,{value:Ft.ques_title})),t.a.createElement("div",{className:"mt20",style:{display:Ft.ques_type===5?"none":""}},t.a.createElement(he.a,{className:"c-light-black ",gutter:[24,20]},t.a.createElement(Ee.a,{flex:1},"\u9009\u9879"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),t.a.createElement(Ee.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),t.a.createElement(St.a,{style:{margin:0,marginBottom:20,display:Ft.ques_type===5?"none":""}}),(Ft==null?void 0:Ft.ques_type)===7&&(Ft==null?void 0:Ft.sub_exercise_questions.map(function(zn,gr){var Xr;return t.a.createElement("div",null,t.a.createElement("div",{style:{marginBottom:10,display:"flex",justifyContent:"space-between"}},t.a.createElement(Ee.a,null,t.a.createElement("span",null,zn.ques_title)),t.a.createElement(Ee.a,null,"\u6B63\u786E\u7387 ",t.a.createElement("span",{className:"c-orange"},zn.right_percent,"%"))),zn==null||((Xr=zn.ques_details)===null||Xr===void 0)?void 0:Xr.map(function(Jr,aa){return t.a.createElement(he.a,{key:aa,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},t.a.createElement(he.a,{style:{alignItems:"center"}},Ft.ques_type===2||Ft.ques_type===3||Ft.ques_type===4?"":t.a.createElement(Ee.a,null,R.m[aa],". "),Ft.ques_type===4?t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:sr[Jr.choice_text]})):t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:Jr.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":Jr.choice_text})))),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},t.a.createElement("span",{className:Jr.choice_right_boolean&&"c-green"},Jr.choice_users_count||0)),t.a.createElement(Ee.a,{flex:"200px"},t.a.createElement(_r.a,{status:"active",strokeColor:"#2abd8b",percent:(Jr.choice_percent*100).toFixed(),width:200})))}),t.a.createElement(St.a,{style:{margin:0,marginBottom:20}}))})),(Ft==null?void 0:Ft.ques_type)<7&&(Ft==null||((yn=Ft.ques_details)===null||yn===void 0)?void 0:yn.map(function(zn,gr){return Ft.ques_type===5?t.a.createElement("div",{className:"mt20"},t.a.createElement(he.a,{key:gr,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},zn.challenge_position,".",zn.challenge_name),t.a.createElement(Ee.a,null,"\u6B63\u786E\u7387 ",t.a.createElement("span",{className:"c-orange"},zn.challenge_percent,"%"))),t.a.createElement("div",null,t.a.createElement(he.a,{className:"c-light-black ",gutter:[24,20]},t.a.createElement(Ee.a,{flex:1},"\u9009\u9879"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),t.a.createElement(Ee.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),t.a.createElement(St.a,{style:{margin:0,marginBottom:20}}),zn==null?void 0:zn.challenge_details.map(function(Xr){return t.a.createElement(he.a,{key:gr,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:sr[Xr.choice_text]})))),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},t.a.createElement("span",{className:Xr.choice_right_boolean&&"c-green"},Xr.choice_users_count||0)),t.a.createElement(Ee.a,{flex:"200px"},t.a.createElement(_r.a,{status:"active",strokeColor:"#2abd8b",percent:(Xr.choice_percent*100).toFixed(),width:200})))}),t.a.createElement(he.a,{className:"",gutter:[24,20]},t.a.createElement(Ee.a,{className:"ml10",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},Ft.effictive_counts),t.a.createElement(Ee.a,{flex:"200px"})),t.a.createElement(St.a,{style:{margin:0,marginBottom:20}})):t.a.createElement(he.a,{key:gr,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},t.a.createElement(he.a,null,Ft.ques_type===2||Ft.ques_type===3||Ft.ques_type===4?"":t.a.createElement(Ee.a,null,R.m[gr],". "),Ft.ques_type===4?t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:sr[zn.choice_text]})):t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:zn.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":zn.choice_text})))),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},t.a.createElement("span",{className:zn.choice_right_boolean&&"c-green"},zn.choice_users_count||0)),t.a.createElement(Ee.a,{flex:"200px"},t.a.createElement(_r.a,{status:"active",strokeColor:"#2abd8b",percent:(zn.choice_percent*100).toFixed(),width:200})))})),t.a.createElement(he.a,{style:{display:Ft.ques_type===5?"none":""},className:"",gutter:[24,20]},t.a.createElement(Ee.a,{className:Ft.ques_type===2||Ft.ques_type===3||Ft.ques_type===4?"ml10":"",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},Ft.effictive_counts),t.a.createElement(Ee.a,{flex:"200px"})))})))),t.a.createElement("div",{className:"tc mt30 mb50"},t.a.createElement(W.a,{hideOnSinglePage:!1,total:Hr==null?void 0:Hr.questions_count,current:Pr.page||1,pageSize:Pr.limit,onChange:function(on,yn){Pr.page=on,Pr.limit=yn,zt()}})))},Ea=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En.effects}})(ia),Cr=_("cVA7"),kr=_.n(Cr),Zr={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898",5:"\u5B9E\u8BAD\u9898",6:"\u7F16\u7A0B\u9898",7:"\u7EC4\u5408\u9898"},Qr=function(In){var En,Or=In.exercise,yr=In.loading,zr=In.dispatch,Zn=Object(A.i)(),An=Object(A.h)(),rr=Or.statisticsList,ar=Object(E.useState)({}),Pr=Object(r.a)(ar,2),sa=Pr[0],Qn=Pr[1],Hr=Object(E.useState)([]),ha=Object(r.a)(Hr,2),Ma=ha[0],la=ha[1],Ir=Object(E.useState)(""),mr=Object(r.a)(Ir,2),Kr=mr[0],ra=mr[1],Er=Object(E.useState)(""),wn=Object(r.a)(Er,2),fa=wn[0],Mr=wn[1],$e=Object(E.useState)({}),pt=Object(r.a)($e,2),vt=pt[0],Me=pt[1],we=ze.a.useForm(),Ke=Object(r.a)(we,1),De=Ke[0];Zn.sort="asc";var st=function(on){return{title:{text:"\u300E \u5B66\u751F\u6B63\u786E\u7387\u5206\u5E03\u56FE \u300F",left:"center"},tooltip:{trigger:"item",formatter:"{b} : {c} \u4EBA"},legend:{bottom:0,icon:"circle",left:"center",itemWidth:6,itemHeight:6,data:["100%","90%-100%","70%-90%","60%-70%","60%\u4EE5\u4E0B"].reverse()},series:[{type:"pie",radius:"55%",minAngle:15,center:["50%","50%"],selectedMode:"single",label:{show:!0,position:"outer",normal:{formatter:`{b} - {c}\u4EBA`,color:"#5c5c5c",lineHeight:20}},labelLine:{normal:{length:20,length2:20,lineStyle:{color:"rgba(0,0,0,.45)"}}},data:[{value:on.details[0].full_count,name:"100%"},{value:on.details[0].best_count,name:"90%-100%"},{value:on.details[0].good_count,name:"70%-90%"},{value:on.details[0].pass_count,name:"60%-70%"},{value:on.details[0].fails_count,name:"60%\u4EE5\u4E0B"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},normal:{color:function(zn){var gr=["#99B8FB","#80E0B9","#8190AA","#F7C739","#EB7E65"];return gr[zn.dataIndex]}}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}},ct=function(){var on=Object.assign({},De.getFieldValue());Object.keys(on).map(function(yn){on[yn].includes("all")?(delete Zn[yn],De.setFieldsValue(Object(Ce.a)({},yn,"all"))):(Zn[yn]=on[yn],De.setFieldsValue(Object(Ce.a)({},yn,Zn[yn])))}),zr({type:"exercise/getExerciseStatistics",payload:Zn})},Bt=function(on,yn){Zn.page=on,Zn.limit=20,zr({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Zn)})},gt=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",render:function(on){return t.a.createElement("span",null,on*100,"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u4EBA")}}],zt=function(){var Ft=Object(x.a)(y.a.mark(function on(){var yn;return y.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return gr.next=2,zr({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Zn)});case 2:yn=gr.sent,yn!=null&&yn.exercise_counts&&la([yn.exercise_counts]);case 4:case"end":return gr.stop()}},on)}));return function(){return Ft.apply(this,arguments)}}();return Object(E.useEffect)(function(){zt()},[Zn.coursesId]),t.a.createElement("section",{className:"minH500 ",style:{padding:0}},t.a.createElement("aside",{className:"bg-white inline-block w100 th-bg-white"},t.a.createElement(je.a,{className:"mt10 bg-white",loading:yr["exercise/getExerciseStatistics"],pagination:!1,dataSource:Ma,columns:gt})),t.a.createElement("aside",{className:"mt20"},t.a.createElement("span",{className:"bold c-black font16 ml20"},"\u5DF2\u4EA4\u5377\u5B66\u751F\u7B54\u9898\u8BE6\u60C5")),t.a.createElement("aside",null,rr==null||((En=rr.commit_results)===null||En===void 0)?void 0:En.map(function(Ft,on){return t.a.createElement("div",{key:on,className:"bg-white pl20 pt20 pr20 pb20 mt20"},t.a.createElement("div",{style:{fontSize:14,color:"#0152d9",fontWeight:500}},on+1,"\u3001",Zr[Ft.question_type],t.a.createElement("span",{style:{color:"#999",paddingLeft:10}},"(\u5171",Ft.question_count,"\u5C0F\u9898\uFF0C",Ft.question_score,"\u5206)"),t.a.createElement("span",{style:{color:"#000",float:"right"}},"\u5168\u73ED\u6B63\u786E\u7387\uFF1A",Ft.right_percent*100,"%")),t.a.createElement(kr.a,{option:st(Ft),style:{height:370},opts:{renderer:"svg"}}))})))},Aa=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En.effects}})(Qr),Ta=_("tf39"),ga=_.n(Ta),Fa=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa,Qn,Hr,ha=In.exercise,Ma=In.globalSetting,la=In.loading,Ir=In.dispatch,mr=In.user,Kr=In.match,ra=Object(u.a)(In,["exercise","globalSetting","loading","dispatch","user","match"]),Er=Object(A.i)(),wn=Object(A.h)(),fa=Object(E.useState)([]),Mr=Object(r.a)(fa,2),$e=Mr[0],pt=Mr[1],vt=ha.exerciseList,Me=ha.commonHeader,we=ha.checkDomain,Ke=Object(E.useState)(wn.query.tabs||0),De=Object(r.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(E.useState)(Fe()(new Date).valueOf()),gt=Object(r.a)(Bt,2),zt=gt[0],Ft=gt[1],on=Object(E.useState)(),yn=Object(r.a)(on,2),zn=yn[0],gr=yn[1],Xr=mr.userInfo,Jr=Object(A.g)();Er.category=wn.query.category_id;var aa=!we||we&&(Xr==null||((En=Xr.course)===null||En===void 0)?void 0:En.course_identity)<3;Object(E.useEffect)(function(){Ir({type:"exercise/getCommonHeader",payload:Object(i.a)({},Er)})},[Er.coursesId]);var hn=function(){var Sr;Object(R.W)({inner_ip:Me.inner_ip,public_ip:Me.public_ip,ip_limit:Me.ip_limit,ip_bind:Me.ip_bind,open_camera:Me.open_camera,exercise_tips:[Me.open_camera?"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A":""],exerciseId:Me.id,screen_open:Me.screen_open,screen_num:Me.screen_num,coursesId:Er.coursesId,login:Xr.login,history:ra.history,identity_verify:Me.identity_verify,current_status:Me==null||((Sr=Me.user_permission)===null||Sr===void 0)?void 0:Sr.current_status,open_phone_video_recording:Me==null?void 0:Me.open_phone_video_recording})},Lr=function(){Ir({type:"exercise/getExerciseList",payload:Object(i.a)({},Er)})},oa=function(){Ir({type:"exercise/getCommonHeader",payload:Object(i.a)({},Er)});var Sr={0:function(){Ir({type:"exercise/getExerciseList",payload:Object(i.a)({},Er)})},3:function(){Ir({type:"exercise/getWorkSetting",payload:Object(i.a)({},Er)})}};Sr[st]&&Sr[st]()};function ba(Nr){gr(Object(i.a)({},Nr))}var _t=[{name:"\u7B54\u9898\u5217\u8868",id:0,compontent:t.a.createElement(ye,{getparams:ba,checkDomainAuthority:aa})},{name:"\u8BD5\u5377\u9884\u89C8",id:2,compontent:t.a.createElement(jn,{activeTabs:st})},{name:"\u7EDF\u8BA1\u7ED3\u679C",id:1,compontent:t.a.createElement(Ea,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:4,compontent:t.a.createElement(Ln,{key:zt})},{name:"\u89C4\u5219\u8BBE\u7F6E",id:3,compontent:t.a.createElement($n,null)},{name:"\u4EBA\u8138\u5BA1\u6838",id:5,compontent:t.a.createElement(Xt,null)},{name:"\u6444\u50CF\u76D1\u63A7",id:6,compontent:t.a.createElement(Te,null)}].filter(function(Nr){return Me!=null&&Me.is_random&&(Nr.name==="\u7EDF\u8BA1\u7ED3\u679C"&&(Nr.compontent=t.a.createElement(Aa,null)),Nr.name==="\u8BD5\u5377\u9884\u89C8"&&(Nr.compontent=t.a.createElement(Vn.default,null))),!0}).filter(function(Nr){return Object(wt.k)()&&Me!==null&&Me!==void 0&&Me.assistant_auth||Object(wt.c)()?!0:Me!=null&&Me.show_statistic&&(Me==null?void 0:Me.exercise_status)===3?Nr.name!=="\u8BD5\u5377\u9884\u89C8":Nr.name==="\u7B54\u9898\u5217\u8868"||Nr.name==="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(Nr){return Object(wt.s)()||Me.exercise_status===1||!Me.exist_program?Nr.name!=="\u4EE3\u7801\u67E5\u91CD":!0}).filter(function(Nr){return Me.identity_verify?!0:Nr.name!=="\u4EBA\u8138\u5BA1\u6838"}).filter(function(Nr){return Me.open_phone_video_recording?!0:Nr.name!=="\u6444\u50CF\u76D1\u63A7"}).filter(function(Nr){return Object(R.I)()&&!Object(wt.o)()?Nr.name!=="\u8BD5\u5377\u9884\u89C8"&&Nr.name!=="\u7EDF\u8BA1\u7ED3\u679C":!0}).filter(function(Nr){return aa?!0:Nr.name!=="\u7EDF\u8BA1\u7ED3\u679C"&&Nr.name!=="\u8BD5\u5377\u9884\u89C8"&&Nr.name!=="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(Nr){return!!Nr});console.log(_t,"tabsArr"),(Me==null?void 0:Me.exercise_status)&&(Me==null?void 0:Me.exercise_status)===1&&_t.splice.apply(_t,[0,1].concat(Object(O.a)(_t.splice(1,1,_t[0])))),Object(E.useEffect)(function(){(Me==null?void 0:Me.exercise_status)&&(Me==null?void 0:Me.exercise_status)===1&&ct("2")},[Me==null?void 0:Me.exercise_status]);var Wr="YYYY-MM-DD",un=Fe()("2020-11-15",Wr),Rn=function(){return m.a.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:t.a.createElement(t.a.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")})},xr=function(){return t.a.createElement(f.a,{onClick:function(){var Sr=Object(x.a)(y.a.mark(function xa(Vr){var nr;return y.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:Wn.t0=Vr.key,Wn.next=Wn.t0==="1"?3:8;break;case 3:return Wn.next=5,Object(P.n)(Object(i.a)(Object(i.a)({},Er),zn));case 5:return nr=Wn.sent,nr.status===0&&Object(k.i)(Object(i.a)(Object(i.a)({},Er),zn)),Wn.abrupt("break",8);case 8:case"end":return Wn.stop()}},xa)}));return function(xa){return Sr.apply(this,arguments)}}()},t.a.createElement(f.a.Item,{key:"1"},"\u5B66\u751F\u6210\u7EE9"),t.a.createElement(f.a.Item,{key:"2"},t.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(Er.coursesId,"/exercise/").concat(Er.categoryId,"/export_blank")},"\u5BFC\u51FA\u8BD5\u5377")),t.a.createElement(f.a.Item,{key:"3"},t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exportlist/exercise_score")},"\u5386\u53F2\u5BFC\u51FA")))},Ca=function(){var Nr=Object(x.a)(y.a.mark(function Sr(xa){var Vr;return y.a.wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:return Fr.next=2,Object(C.a)("/api/courses/".concat(Er==null?void 0:Er.coursesId,"/exercises/exercise_code_repeat.json"),{method:"post",body:{group_ids:xa,id:Er==null?void 0:Er.categoryId}});case 2:if(Vr=Fr.sent,!(Vr.status===0)){Fr.next=8;break}return ct(4),Ft(Fe()(new Date).valueOf()),Ir({type:"exercise/setActionTabs",payload:{}}),Fr.abrupt("return");case 8:Vr.status<-2&&p.b.error(Vr==null?void 0:Vr.message);case 9:case"end":return Fr.stop()}},Sr)}));return function(xa){return Nr.apply(this,arguments)}}();return Object(wt.h)()?t.a.createElement("section",{className:ga.a.bg},t.a.createElement("div",{className:"edu-container"},Xr.username&&t.a.createElement("section",{className:"animated fadeIn"},t.a.createElement("aside",{className:"mt10"},t.a.createElement(d.a,{separator:">"},t.a.createElement(d.a.Item,null,t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exercise")},mr==null||((Or=mr.userInfo)===null||Or===void 0||((yr=Or.course)===null||yr===void 0))?void 0:yr.course_name)),t.a.createElement(d.a.Item,null,t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exercise")},"\u5728\u7EBF\u8003\u8BD5")),t.a.createElement(d.a.Item,null,"\u8BD5\u5377\u8BE6\u60C5"))),t.a.createElement("aside",{className:[ga.a.title,"mt20"].join(" ")},t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exercise")},t.a.createElement(l.a,{className:"font16 c-black"})),Object(R.y)(Me==null?void 0:Me.exercise_status),t.a.createElement("strong",{className:"font20 ml5"},Me==null?void 0:Me.exercise_name))),t.a.createElement("aside",{className:"mt30 relative"},t.a.createElement("div",{className:ga.a.export},!Object(wt.s)()&&aa&&Me.exercise_status>1&&Me.exist_program&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault(),Ir({type:"exercise/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Er}})}},t.a.createElement("span",{className:"iconfont icon-daimachazhong font14 mr5"}),"\u4EE3\u7801\u67E5\u91CD"),Object(wt.c)()&&aa&&(Me==null||((zr=Me.user_permission)===null||zr===void 0)?void 0:zr.user_commit_counts)>0&&(Me==null?void 0:Me.exercise_status)===2&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault(),Ir({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",params:Er}})}},t.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x font14 mr5"}),"\u6253\u56DE\u91CD\u505A"),Object(wt.c)()&&aa&&Me.can_edit&&(Me==null||((Zn=Me.user_permission)===null||Zn===void 0)?void 0:Zn.exercise_unpublish_count)>0&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault();var xa=Fe()(Me==null?void 0:Me.created_at,Wr),Vr=Fe()(un).diff(Fe()(xa),"days");if(Vr>0&&Me!==null&&Me!==void 0&&Me.is_random){Rn();return}Ir({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Er.categoryId],params:Er,disabled:(Me==null?void 0:Me.exercise_status)!==1,type:2,cb:oa}})}},t.a.createElement("span",{className:"iconfont icon-fabuzhiwei font14 mr5"}),"\u53D1\u5E03\u8003\u8BD5"),Object(wt.c)()&&aa&&Me.can_edit&&(Me==null||((An=Me.user_permission)===null||An===void 0)?void 0:An.exercise_publish_count)>0&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault(),Ir({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[Er.categoryId],params:Er,cb:oa}})}},t.a.createElement("span",{className:"iconfont icon-lijijiezhi mr5 font14"}),"\u7ED3\u675F\u8003\u8BD5"),Object(wt.s)()&&(Me==null||((rr=Me.user_permission)===null||rr===void 0)?void 0:rr.current_status)===2&&Me.exercise_status>1&&t.a.createElement(g.a,{style:{color:(vt==null||((ar=vt.exercise_types)===null||ar===void 0)?void 0:ar.is_redo)&&"red"},onClick:hn},t.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),vt!=null&&(Pr=vt.exercise_types)!==null&&Pr!==void 0&&Pr.is_redo?"\u91CD\u65B0\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5"),Object(wt.s)()&&(Me==null||((sa=Me.user_permission)===null||sa===void 0)?void 0:sa.current_status)===0&&Me.exercise_status>1&&t.a.createElement(g.a,{onClick:hn},t.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7EE7\u7EED\u8003\u8BD5"),Object(wt.c)()&&aa&&Me.can_edit&&(Object(wt.k)()&&(Me==null?void 0:Me.assistant_auth)||!Object(wt.k)())&&t.a.createElement(g.a,{onClick:function(){var Sr=Fe()(Me==null?void 0:Me.created_at,Wr),xa=Fe()(un).diff(Fe()(Sr),"days");if(xa>0&&Me!==null&&Me!==void 0&&Me.is_random){Rn();return}else o.d.push(Me!=null&&Me.is_random?"/classrooms/".concat(Er.coursesId,"/exercise/").concat(Er.categoryId,"/random/edit?random=true"):"/classrooms/".concat(Er.coursesId,"/exercise/").concat(Er.categoryId,"/edit?random=false"))}},t.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7F16\u8F91\u8BD5\u5377"),Object(wt.c)()&&aa&&t.a.createElement(U.a,{overlay:xr},t.a.createElement(g.a,null,t.a.createElement(c.a,null),"\u5BFC\u51FA",t.a.createElement(M.a,null)))),t.a.createElement(j.a,{activeKey:String(st),className:ga.a.tabs,onChange:function(Sr){var xa=Fe()(Me==null?void 0:Me.created_at,Wr),Vr=Fe()(un).diff(Fe()(xa),"days");if(Vr>0&&parseInt(Sr)===3&&Me!==null&&Me!==void 0&&Me.is_random){Rn();return}ct(Sr)}},_t.map(function(Nr,Sr){return t.a.createElement(j.a.TabPane,{tab:Nr.name,key:Nr.id})})),t.a.createElement("section",{className:Me!=null&&Me.is_random&&st==="2"?"":"pl25 pr25 bg-white"},(Qn=_t.filter(function(Nr){return Nr.id==st}))===null||Qn===void 0||((Hr=Qn[0])===null||Hr===void 0)?void 0:Hr.compontent))),t.a.createElement(Fn.a,null),t.a.createElement(ua,{onOk:Ca}),t.a.createElement(Yr.a,null),t.a.createElement(Jt,{cb:function(){return Lr()}})):""},Va=ie.default=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading,Or=tr.user,yr=tr.globalSetting;return{exercise:In,globalSetting:yr,user:Or,loading:En.effects}})(Fa)},JWDV:function(Ye,ie,_){Ye.exports=_.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Ye,ie,_){"use strict";_.d(ie,"c",function(){return j}),_.d(ie,"d",function(){return L}),_.d(ie,"f",function(){return S}),_.d(ie,"a",function(){return g}),_.d(ie,"b",function(){return s}),_.d(ie,"e",function(){return d});var Y=function(){var w=function(p,a){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,x){f.__proto__=x}||function(f,x){for(var b in x)x.hasOwnProperty(b)&&(f[b]=x[b])},w(p,a)};return function(p,a){w(p,a);function f(){this.constructor=p}p.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),j={done:!0,value:void 0},L;(function(w){var p={next:function(){return j}};function a(){return p}w.empty=a;function f(E){var t=!1;return{next:function(){return t?j:(t=!0,{done:!1,value:E})}}}w.single=f;function x(E,t,C){return t===void 0&&(t=0),C===void 0&&(C=E.length),{next:function(){return t>=C?j:{done:!1,value:E[t++]}}}}w.fromArray=x;function b(E){return{next:function(){var t=E.next();return t.done?j:{done:!1,value:t.value}}}}w.fromNativeIterator=b;function m(E){return E?Array.isArray(E)?w.fromArray(E):E:w.empty()}w.from=m;function O(E,t){return{next:function(){var C=E.next();return C.done?j:{done:!1,value:t(C.value)}}}}w.map=O;function i(E,t){return{next:function(){for(;;){var C=E.next();if(C.done)return j;if(t(C.value))return{done:!1,value:C.value}}}}}w.filter=i;function r(E,t){for(var C=E.next();!C.done;C=E.next())t(C.value)}w.forEach=r;function u(E,t){t===void 0&&(t=Number.POSITIVE_INFINITY);var C=[];if(t===0)return C;for(var A=0,v=E.next();!v.done&&!(C.push(v.value),++A>=t);v=E.next());return C}w.collect=u;function h(){for(var E=[],t=0;t=E.length)return j;var A=E[C],v=A.next();return v.done?(C++,this.next()):v}}}w.concat=h;function y(E){return new U(E)}w.chain=y})(L||(L={}));var U=function(){function w(p){this.it=p}return w.prototype.next=function(){return this.it.next()},w}();function S(w){return Array.isArray(w)?L.fromArray(w):w||L.empty()}var g=function(){function w(p,a,f,x){a===void 0&&(a=0),f===void 0&&(f=p.length),x===void 0&&(x=a-1),this.items=p,this.start=a,this.end=f,this.index=x}return w.prototype.first=function(){return this.index=this.start,this.current()},w.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},w.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},w}(),s=function(w){Y(p,w);function p(a,f,x,b){return f===void 0&&(f=0),x===void 0&&(x=a.length),b===void 0&&(b=f-1),w.call(this,a,f,x,b)||this}return p.prototype.current=function(){return w.prototype.current.call(this)},p.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},p.prototype.first=function(){return this.index=this.start,this.current()},p.prototype.last=function(){return this.index=this.end-1,this.current()},p.prototype.parent=function(){return null},p}(g),d=function(){function w(p,a){this.iterator=p,this.fn=a}return w.prototype.next=function(){return this.fn(this.iterator.next())},w}()},JeFH:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Ye,ie,_){Ye.exports=_.p+"static/qrcode.54870d9b.png"},K2GJ:function(Ye,ie,_){var Y=_("fW2E"),j=_("gut8"),L=j.ContextCachedBy,U=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],S=function(f){this.extendFrom(f,!1)};function g(f,x,b){var m=x.x==null?0:x.x,O=x.x2==null?1:x.x2,i=x.y==null?0:x.y,r=x.y2==null?0:x.y2;x.global||(m=m*b.width+b.x,O=O*b.width+b.x,i=i*b.height+b.y,r=r*b.height+b.y),m=isNaN(m)?0:m,O=isNaN(O)?1:O,i=isNaN(i)?0:i,r=isNaN(r)?0:r;var u=f.createLinearGradient(m,i,O,r);return u}function s(f,x,b){var m=b.width,O=b.height,i=Math.min(m,O),r=x.x==null?.5:x.x,u=x.y==null?.5:x.y,h=x.r==null?.5:x.r;x.global||(r=r*m+b.x,u=u*O+b.y,h=h*i);var y=f.createRadialGradient(r,u,0,r,u,h);return y}S.prototype={constructor:S,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(f,x,b){var m=this,O=b&&b.style,i=!O||f.__attrCachedBy!==L.STYLE_BIND;f.__attrCachedBy=L.STYLE_BIND;for(var r=0;r0},extendFrom:function(f,x){if(f)for(var b in f)f.hasOwnProperty(b)&&(x===!0||(x===!1?!this.hasOwnProperty(b):f[b]!=null))&&(this[b]=f[b])},set:function(f,x){typeof f=="string"?this[f]=x:this.extendFrom(f,!0)},clone:function(){var f=new this.constructor;return f.extendFrom(this,!0),f},getGradient:function(f,x,b){for(var m=x.type==="radial"?s:g,O=m(f,x,b),i=x.colorStops,r=0;r=0)continue;if(!Object.prototype.hasOwnProperty.call(f,m))continue;b[m]=f[m]}return b}function d(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function w(f,x){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:f}function p(f,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);f.prototype=Object.create(x&&x.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(f,x):f.__proto__=x)}var a=function(f){p(x,f);function x(b){d(this,x);var m=w(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,b));return m.scrollListener=m.scrollListener.bind(m),m.eventListenerOptions=m.eventListenerOptions.bind(m),m.mousewheelListener=m.mousewheelListener.bind(m),m}return Y(x,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var m=this.getParentElement(this.scrollComponent);m.scrollTop=m.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var m=!1,O={get passive(){m=!0}};try{document.addEventListener("test",null,O),document.removeEventListener("test",null,O)}catch(i){}return m}},{key:"eventListenerOptions",value:function(){var m=this.props.useCapture;return this.isPassiveSupported()&&(m={useCapture:this.props.useCapture,passive:!0}),m}},{key:"setDefaultLoader",value:function(m){this.defaultLoader=m}},{key:"detachMousewheelListener",value:function(){var m=window;this.props.useWindow===!1&&(m=this.scrollComponent.parentNode),m.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var m=window;this.props.useWindow===!1&&(m=this.getParentElement(this.scrollComponent)),m.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),m.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(m){var O=this.props.getScrollParent&&this.props.getScrollParent();return O!=null?O:m&&m.parentNode}},{key:"filterProps",value:function(m){return m}},{key:"attachScrollListener",value:function(){var m=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!m)return;var O=window;this.props.useWindow===!1&&(O=m),O.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),O.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),O.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(m){m.deltaY===1&&!this.isPassiveSupported()&&m.preventDefault()}},{key:"scrollListener",value:function(){var m=this.scrollComponent,O=window,i=this.getParentElement(m),r=void 0;if(this.props.useWindow){var u=document.documentElement||document.body.parentNode||document.body,h=O.pageYOffset!==void 0?O.pageYOffset:u.scrollTop;this.props.isReverse?r=h:r=this.calculateOffset(m,h)}else this.props.isReverse?r=i.scrollTop:r=m.scrollHeight-i.scrollTop-i.clientHeight;r1&&s.a.createElement("span",null,s.a.createElement(A.a,{checked:Pn,onChange:function(kr){return dn(kr.target.checked)},className:"".concat(ee.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),s.a.createElement("span",{className:"".concat(ee.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),s.a.createElement("p",{className:""},s.a.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:ue,max:1e4,min:0,onChange:function(kr){oe(kr)}})," \u5206 \xA0 ",!!ue&&!!Tn&&s.a.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(ue/Tn).toFixed(1),"\u5206)"),s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(y.a.Group,{value:On,onChange:function(kr){or(kr.target.value)}},s.a.createElement(y.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(y.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(y.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:Tr,selectvalues:yt==null?void 0:yt.tag_discipline_ids,onChange:Jn,subId:(ia=xt.editData)===null||ia===void 0||((Ea=ia.exercise)===null||Ea===void 0)?void 0:Ea.sub_discipline_id,knowledgeOptions:Kt,onAddKnowledgeFinish:Yt})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Gn,onChange:function(kr){se(kr)}}))),s.a.createElement("aside",{className:"tr"},(mn!==-1||yt.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Be(),Fn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){nn()}},"\u4FDD\u5B58")))},$n=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(vr){var lr,wr;return(xt==null||((lr=xt.editData)===null||lr===void 0||((wr=lr.exercise)===null||wr===void 0))?void 0:wr.exercise_status)===1?vr:vr.id!=="del"&&vr.id!=="add"}),Yn=function(){var vr=Object(M.a)(I.a.mark(function lr(wr){return I.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(!(mn!==-1)){sr.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),sr.abrupt("return");case 3:sr.t0=wr.id,sr.next=sr.t0==="del"?6:sr.t0==="up"||sr.t0==="down"?8:sr.t0==="edit"?12:sr.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Ea(){return I.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:return kr.next=2,Object(W.m)({id:yt.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},tt)});case 3:case"end":return kr.stop()}},Ea)}))()}}),sr.abrupt("break",17);case 8:return sr.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:yt.question_id,opr:wr.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},tt)}),sr.abrupt("break",17);case 12:return Gt(yt.dragKey),Fn(!0),sr.abrupt("break",17);case 15:return Xt({key:yt.key,insert_id:yt==null?void 0:yt.question_id,question_type:3}),sr.abrupt("break",17);case 17:case"end":return sr.stop()}},lr)}));return function(wr){return vr.apply(this,arguments)}}(),_r=function(){var lr;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(yt!=null&&yt.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},yt.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",yt.question_score,"\u5206\uFF09")),yt!=null&&yt.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},yt.key,"."),s.a.createElement(be.a,{value:yt.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",yt.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:yt.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},yt==null||((lr=yt.standard_answer)===null||lr===void 0)?void 0:lr.map(function(wr,Dr){return s.a.createElement(a.a,{key:Dr,align:"middle"},s.a.createElement(m.a,null,"\u7B54\u6848\uFF08\u586B\u7A7A",wr.choice_id,"\uFF09\uFF1A"),s.a.createElement(m.a,{flex:"1"},s.a.createElement(a.a,{align:"middle",gutter:[1,1]},wr.answer_text.map(function(sr,ia){return s.a.createElement(m.a,{span:24,key:ia},s.a.createElement(x.a,{key:Dr,checked:yt.standard_answer.includes(Dr),disabled:!0,value:sr}))}))))})),s.a.createElement("div",{className:ee.a.action},!yt.hideAction&&$n.map(function(wr,Dr){return wr.id==="up"&&yt.key===1||wr.id==="down"&&yt.key===yt.len?null:s.a.createElement(w.a,{key:Dr,placement:"bottom",title:wr.name},s.a.createElement("span",{onClick:function(){return Yn(wr)},className:wr.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},!Jt&&_r(),Jt&&Xn())},Ge=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(nt)),he=_("Ot1p"),ce=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ee=function(ye,Se){var dt=ye.problemset,et=ye.globalSetting,xt=ye.exercise,xn=ye.loading,Dt=ye.dispatch,yt=ye.onRef,mn=yt===void 0?function(){}:yt,pe=ye.editData,Gt=ye.editKey,Lt=ye.setEditKey,Be=Lt===void 0?function(){}:Lt,ot=ye.cancelAdd,Xt=ot===void 0?function(){}:ot,Pt=ye.addCallback,$t=Pt===void 0?function(){}:Pt,Zt=ye.setIsClaer,bt=Zt===void 0?function(){}:Zt,ft=Object(R.a)(ye,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","editKey","setEditKey","cancelAdd","addCallback","setIsClaer"]),Nt=Object(g.useState)(),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(""),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)(!1),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)([]),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)(1),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(!1),cr=Object(S.a)(Tn,2),Vt=cr[0],Et=cr[1],Jt=function(Tr){ae([].concat(Object(P.a)(H),[Object(Y.a)({},Tr)]))},Fn=Object(F.i)();Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){Mt(!0),re(""),an(2),Te("");return}Et(!(pe!=null&&pe.repeat_answer)),re(pe==null?void 0:pe.question_title),an(St||(pe==null?void 0:pe.question_score)),vn(pe==null?void 0:pe.difficulty),Te(pe.standard_answer[0]+""),Bn(pe.tag_discipline_ids)},[pe,it]),Object(g.useEffect)(function(){it&&Yr();function Yr(){return Tr.apply(this,arguments)}function Tr(){return Tr=Object(M.a)(I.a.mark(function Jn(){var fr,Sn,On;return I.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,Object(W.H)({sub_discipline_id:(fr=xt.editData)===null||fr===void 0||((Sn=fr.exercise)===null||Sn===void 0)?void 0:Sn.sub_discipline_id});case 2:On=Dn.sent,ae(On.tag_disciplines);case 4:case"end":return Dn.stop()}},Jn)})),Tr.apply(this,arguments)}},[it]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Vn,isEdit:it}}),Object(g.useEffect)(function(){var Yr,Tr=xt!=null&&(Yr=xt.tagDisciplineData)!==null&&Yr!==void 0&&Yr.tag_disciplines&&Array.isArray(xt.tagDisciplineData.tag_disciplines)?xt.tagDisciplineData.tag_disciplines:[];ae(Tr)},[xt.tagDisciplineData]);var Vn=function(){var Yr=Object(M.a)(I.a.mark(function Tr(){var Jn,fr,Sn,On,or,Dn;return I.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if($){Gn.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Gn.abrupt("return",!1);case 3:if(bn){Gn.next=6;break}return c.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),Gn.abrupt("return",!1);case 6:if(Jn=[{choice_text:"\u6B63\u786E",is_answer:bn==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:bn==="2"?2:0}],!pe.question_id){Gn.next=18;break}if(!((pe==null?void 0:pe.is_my)===1)){Gn.next=12;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var se=Object(M.a)(I.a.mark(function rt(){var ut,Kt;return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(nn){return nn.choice_text}),standard_answers:Jn.filter(function(nn){return nn.is_answer}).map(function(nn){return nn.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:ht,is_cover:1,repeat_answer:!Vt}});case 2:fr=Yt.sent,fr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 4:case"end":return Yt.stop()}},rt)}));function tt(){return se.apply(this,arguments)}return tt}(),onCancel:function(){var se=Object(M.a)(I.a.mark(function rt(){var ut,Kt;return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(nn){return nn.choice_text}),standard_answers:Jn.filter(function(nn){return nn.is_answer}).map(function(nn){return nn.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 2:fr=Yt.sent,fr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 4:case"end":return Yt.stop()}},rt)}));function tt(){return se.apply(this,arguments)}return tt}()}),Gn.next=16;break;case 12:return Gn.next=14,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(se){return se.choice_text}),standard_answers:Jn.filter(function(se){return se.is_answer}).map(function(se){return se.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(Sn=xt.editData)===null||Sn===void 0||((On=Sn.exercise)===null||On===void 0)?void 0:On.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 14:fr=Gn.sent,fr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 16:Gn.next=22;break;case 18:return Gn.next=20,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:Fn.categoryId,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(se){return se.choice_text}),standard_answers:Jn.filter(function(se){return se.is_answer}).map(function(se){return se.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(or=xt.editData)===null||or===void 0||((Dn=or.exercise)===null||Dn===void 0)?void 0:Dn.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 20:fr=Gn.sent,fr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 22:return Gn.abrupt("return",{name:$,choices:Jn});case 23:case"end":return Gn.stop()}},Tr)}));return function(){return Yr.apply(this,arguments)}}(),Kn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Yr){var Tr,Jn;return(xt==null||((Tr=xt.editData)===null||Tr===void 0||((Jn=Tr.exercise)===null||Jn===void 0))?void 0:Jn.exercise_status)===1?Yr:Yr.id!=="del"&&Yr.id!=="add"}),ir=function(){var Yr=Object(M.a)(I.a.mark(function Tr(Jn){return I.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(!(Gt!==-1)){Sn.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Sn.abrupt("return");case 3:Sn.t0=Jn.id,Sn.next=Sn.t0==="del"?6:Sn.t0==="up"||Sn.t0==="down"?8:Sn.t0==="edit"?12:Sn.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function or(){return I.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return pr.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)});case 3:case"end":return pr.stop()}},or)}))()}}),Sn.abrupt("break",17);case 8:return Sn.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:Jn.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}),Sn.abrupt("break",17);case 12:return Be(pe.dragKey),Mt(!0),Sn.abrupt("break",17);case 15:return $t({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:2}),Sn.abrupt("break",17);case 17:case"end":return Sn.stop()}},Tr)}));return function(Jn){return Yr.apply(this,arguments)}}(),jr=function(){var Tr;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},pe==null||((Tr=pe.question_choices)===null||Tr===void 0)?void 0:Tr.map(function(Jn,fr){return s.a.createElement(y.a,{key:fr,checked:pe.standard_answer.includes(fr+1),disabled:!0},ce[fr],". ",s.a.createElement("span",{className:"c-black font14"},Jn.choice_text))})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&Kn.map(function(Jn,fr){return Jn.id==="up"&&pe.key===1||Jn.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:fr,placement:"bottom",title:Jn.name},s.a.createElement("span",{onClick:function(){return ir(Jn)},className:Jn.icon}))})))},ua=function(){var Tr,Jn;return s.a.createElement("aside",null,s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:$,onChange:function(Sn){return re(Sn)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),s.a.createElement(y.a.Group,{buttonStyle:"solid",value:bn,onChange:function(Sn){return Te(Sn.target.value)}},s.a.createElement(y.a.Button,{value:"1",className:"".concat(ee.a.radio," mr40")},"\u6B63\u786E"),s.a.createElement(y.a.Button,{value:"2",className:ee.a.radio},"\u9519\u8BEF")),s.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:St,max:1e4,min:0,onChange:function(Sn){an(Sn)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(y.a.Group,{value:ht,onChange:function(Sn){vn(Sn.target.value)}},s.a.createElement(y.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(y.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(y.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:jn,selectvalues:pe==null?void 0:pe.tag_discipline_ids,onChange:Bn,subId:(Tr=xt.editData)===null||Tr===void 0||((Jn=Tr.exercise)===null||Jn===void 0)?void 0:Jn.sub_discipline_id,knowledgeOptions:H,onAddKnowledgeFinish:Jt})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vt,onChange:function(Sn){Et(Sn)}}))),s.a.createElement("aside",{className:"tr"},(Gt!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Xt(),Mt(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Vn()}},"\u4FDD\u5B58")))};return s.a.createElement("section",{className:ee.a.wrap},!it&&jr(),it&&ua())},fe=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Ee)),Ne=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ce=function(ye,Se){var dt=ye.problemset,et=ye.globalSetting,xt=ye.exercise,xn=ye.loading,Dt=ye.dispatch,yt=ye.onRef,mn=yt===void 0?function(){}:yt,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=ye.addCallback,bt=Zt===void 0?function(pr){}:Zt,ft=Object(R.a)(ye,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)([]),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(""),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)(!1),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)([]),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(1),cr=Object(S.a)(Tn,2),Vt=cr[0],Et=cr[1],Jt=Object(g.useState)(!1),Fn=Object(S.a)(Jt,2),Vn=Fn[0],Kn=Fn[1],ir=Object(g.useState)([]),jr=Object(S.a)(ir,2),ua=jr[0],Yr=jr[1],Tr=function(Gn){Yr([].concat(Object(P.a)(ua),[Object(Y.a)({},Gn)]))},Jn=Object(F.i)();Object(g.useEffect)(function(){Te(["","","",""])},[]),Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){ae(!0),an(""),Bn(5),Te(["","","",""]),Mt([]);return}an(pe==null?void 0:pe.question_title),Bn(jn||(pe==null?void 0:pe.question_score)),Kn(!(pe!=null&&pe.repeat_answer)),Et(pe==null?void 0:pe.difficulty),Te(pe==null?void 0:pe.question_choices.map(function(Gn){return Gn.choice_text}));var pr=[];pe==null||pe.standard_answer.map(function(Gn,se){pr.push(Gn-1)}),Mt(pr),vn(pe.tag_discipline_ids)},[pe,H]),Object(g.useEffect)(function(){H&&pr();function pr(){return Gn.apply(this,arguments)}function Gn(){return Gn=Object(M.a)(I.a.mark(function se(){var tt,rt,ut;return I.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(W.H)({sub_discipline_id:(tt=xt.editData)===null||tt===void 0||((rt=tt.exercise)===null||rt===void 0)?void 0:rt.sub_discipline_id});case 2:ut=Ct.sent,Yr(ut.tag_disciplines);case 4:case"end":return Ct.stop()}},se)})),Gn.apply(this,arguments)}},[H]),Object(g.useImperativeHandle)(Se,function(){return{onSave:fr,isEdit:H}}),Object(g.useEffect)(function(){var pr,Gn=xt!=null&&(pr=xt.tagDisciplineData)!==null&&pr!==void 0&&pr.tag_disciplines&&Array.isArray(xt.tagDisciplineData.tag_disciplines)?xt.tagDisciplineData.tag_disciplines:[];Yr(Gn)},[xt.tagDisciplineData]);var fr=function(){var pr=Object(M.a)(I.a.mark(function Gn(){var se,tt,rt,ut,Kt,Ct,Yt;return I.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:if(St){_n.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),_n.abrupt("return",!1);case 3:if(se=bn.findIndex(function(cn){return!cn}),!(se>-1)){_n.next=7;break}return c.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ne[se]," \u9009\u9879\u7684\u5185\u5BB9")),_n.abrupt("return",!1);case 7:if(it.length){_n.next=10;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),_n.abrupt("return",!1);case 10:if(!(it.length<1)){_n.next=13;break}return c.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),_n.abrupt("return",!1);case 13:if(tt=bn.map(function(cn,ur){return{choice_text:cn,is_answer:it.includes(ur)?ur+1:0}}),!pe.question_id){_n.next=25;break}if(!((pe==null?void 0:pe.is_my)===1)){_n.next=19;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var cn=Object(M.a)(I.a.mark(function Mn(){var fn,Hn;return I.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return $n.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(Yn){return Yn.choice_text}),standard_answers:tt.filter(function(Yn){return Yn.is_answer}).map(function(Yn){return Yn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(fn=xt.editData)===null||fn===void 0||((Hn=fn.exercise)===null||Hn===void 0)?void 0:Hn.sub_discipline_id,difficulty:Vt,is_cover:1,repeat_answer:!Vn}});case 2:rt=$n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 4:case"end":return $n.stop()}},Mn)}));function ur(){return cn.apply(this,arguments)}return ur}(),onCancel:function(){var cn=Object(M.a)(I.a.mark(function Mn(){var fn,Hn;return I.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return $n.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(Yn){return Yn.choice_text}),standard_answers:tt.filter(function(Yn){return Yn.is_answer}).map(function(Yn){return Yn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(fn=xt.editData)===null||fn===void 0||((Hn=fn.exercise)===null||Hn===void 0)?void 0:Hn.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 2:rt=$n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 4:case"end":return $n.stop()}},Mn)}));function ur(){return cn.apply(this,arguments)}return ur}()}),_n.next=23;break;case 19:return _n.next=21,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(cn){return cn.choice_text}),standard_answers:tt.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 21:rt=_n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 23:_n.next=29;break;case 25:return _n.next=27,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:Jn.categoryId,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(cn){return cn.choice_text}),standard_answers:tt.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(Ct=xt.editData)===null||Ct===void 0||((Yt=Ct.exercise)===null||Yt===void 0)?void 0:Yt.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 27:rt=_n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 29:case"end":return _n.stop()}},Gn)}));return function(){return pr.apply(this,arguments)}}(),Sn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(pr){var Gn,se;return(xt==null||((Gn=xt.editData)===null||Gn===void 0||((se=Gn.exercise)===null||se===void 0))?void 0:se.exercise_status)===1?pr:pr.id!=="del"&&pr.id!=="add"}),On=function(){var pr=Object(M.a)(I.a.mark(function Gn(se){return I.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!(Be!==-1)){rt.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),rt.abrupt("return");case 3:rt.t0=se.id,rt.next=rt.t0==="del"?6:rt.t0==="up"||rt.t0==="down"?8:rt.t0==="edit"?12:rt.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Kt(){return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)});case 3:case"end":return Yt.stop()}},Kt)}))()}}),rt.abrupt("break",17);case 8:return rt.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:se.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}),rt.abrupt("break",17);case 12:return Xt(pe.dragKey),ae(!0),rt.abrupt("break",17);case 15:return bt({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:1}),rt.abrupt("break",17);case 17:case"end":return rt.stop()}},Gn)}));return function(se){return pr.apply(this,arguments)}}(),or=function(){var Gn;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},pe==null||((Gn=pe.question_choices)===null||Gn===void 0)?void 0:Gn.map(function(se,tt){return s.a.createElement(a.a,null,s.a.createElement(m.a,null,s.a.createElement(A.a,{key:tt,checked:pe.standard_answer.includes(tt+1),disabled:!0},Ne[tt],".")),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:"c-black font14"},s.a.createElement(be.a,{value:se.choice_text}))))})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&Sn.map(function(se,tt){return se.id==="up"&&pe.key===1||se.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:tt,placement:"bottom",title:se.name},s.a.createElement("span",{onClick:function(){return On(se)},className:se.icon}))})))},Dn=function(){var Gn,se;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:St,onChange:function(rt){return an(rt)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),bn.map(function(tt,rt){var ut,Kt;return s.a.createElement("div",{className:ee.a.choiceWrap,key:rt},s.a.createElement(w.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},s.a.createElement("div",{className:"".concat(ee.a.answer," ").concat(it.includes(rt)?ee.a.activeAnswer:""),onClick:function(){it.includes(rt)?Mt(it.filter(function(Yt){return Yt!==rt})):Mt([].concat(Object(P.a)(it),[rt]))}},Ne[rt])),s.a.createElement("div",{className:ee.a.editorWrap},$===rt?s.a.createElement(he.a,{id:"single-question-option-".concat(rt),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:tt,onChange:function(Yt){bn[rt]=Yt,Te(bn)}}):s.a.createElement("div",{className:ee.a.htmlWrap,onClick:function(){return re(rt)}},s.a.createElement(be.a,{value:tt}))),((ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.exercise_status)===1&&s.a.createElement(s.a.Fragment,null,rt>1&&s.a.createElement(w.a,{title:"\u5220\u9664"},s.a.createElement("i",{className:"".concat(ee.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Te(bn.filter(function(Yt,nn){return nn!==rt}))}})),rt<7&&rt===bn.length-1&&s.a.createElement(w.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},s.a.createElement("i",{className:"".concat(ee.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Te([].concat(Object(P.a)(bn),[""]))}}))))}),s.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:jn,max:1e4,min:0,onChange:function(rt){Bn(rt)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(y.a.Group,{value:Vt,onChange:function(rt){Et(rt.target.value)}},s.a.createElement(y.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(y.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(y.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:ht,selectvalues:pe==null?void 0:pe.tag_discipline_ids,onChange:vn,subId:(Gn=xt.editData)===null||Gn===void 0||((se=Gn.exercise)===null||se===void 0)?void 0:se.sub_discipline_id,knowledgeOptions:ua,onAddKnowledgeFinish:Tr})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vn,onChange:function(rt){Kn(rt)}}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),ae(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){fr()}},"\u4FDD\u5B58")))};return s.a.createElement("section",{className:ee.a.wrap},!H&&or(),H&&Dn())},xe=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Ce)),ze=_("55Ip"),Le=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Fe=function(ye,Se){var dt=ye.problemset,et=ye.globalSetting,xt=ye.exercise,xn=ye.loading,Dt=ye.dispatch,yt=ye.editData,mn=ye.cancelAdd,pe=mn===void 0?function(){}:mn,Gt=ye.editKey,Lt=ye.setEditKey,Be=Lt===void 0?function(){}:Lt,ot=ye.addCallback,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=Object(R.a)(ye,["problemset","globalSetting","exercise","loading","dispatch","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),bt=Object(g.useState)(""),ft=Object(S.a)(bt,2),Nt=ft[0],jt=ft[1],bn=Object(g.useState)(""),Te=Object(S.a)(bn,2),ve=Te[0],Q=Te[1],$=Object(g.useState)(""),re=Object(S.a)($,2),de=re[0],Ue=re[1],it=Object(g.useState)([]),Mt=Object(S.a)(it,2),Ln=Mt[0],kn=Mt[1],St=Object(g.useState)(""),an=Object(S.a)(St,2),Pn=an[0],dn=an[1],jn=Object(g.useState)(),Bn=Object(S.a)(jn,2),ne=Bn[0],B=Bn[1],H=Object(g.useState)(!1),ae=Object(S.a)(H,2),ue=ae[0],oe=ae[1],ht=Object(g.useState)([]),vn=Object(S.a)(ht,2),Tn=vn[0],cr=vn[1],Vt=Object(g.useState)(!1),Et=Object(S.a)(Vt,2),Jt=Et[0],Fn=Et[1],Vn=Object(F.i)();Object(g.useEffect)(function(){var Tr;yt.edit&&(Fn(!0),Q(""),jt(""),cr([])),jt(yt.shixun_name),Q(yt.question_title);var Jn=[];(Tr=yt.shixun)===null||Tr===void 0||Tr.map(function(fr){Jn.push(fr.challenge_score)}),cr(Jn)},[yt]),Object(g.useEffect)(function(){oe(!1)},[Jt]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Kn,isEdit:Jt}});var Kn=function(){var Tr=Object(M.a)(I.a.mark(function Jn(){var fr,Sn,On;return I.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(fr=[],Sn=!1,!Sn){Dn.next=4;break}return Dn.abrupt("return",!1);case 4:if(!yt.question_id){Dn.next=10;break}return Dn.next=7,Dt({type:"exercise/editExerciseQuestion",payload:{id:yt.question_id,question_title:ve,shixun_name:Nt,shixun_id:yt.shixun_id,question_type:5,question_scores:Tn}});case 7:On=Dn.sent,Dn.next=13;break;case 10:return Dn.next=12,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:yt==null?void 0:yt.insert_id,categoryId:Vn.categoryId,question_title:ve,shixun_name:Nt,shixun_id:yt.shixun_id,question_type:5,question_scores:Tn}});case 12:On=Dn.sent;case 13:return On.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Fn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Vn)})),Dn.abrupt("return",{name:ve,analysis:de,standard_answers:fr,is_ordered:ne});case 15:case"end":return Dn.stop()}},Jn)}));return function(){return Tr.apply(this,arguments)}}(),ir=function(){var Jn;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),s.a.createElement("div",{className:"mt10"},s.a.createElement(x.a,{defaultValue:Nt,onChange:function(Sn){jt(Sn.target.value)}})),s.a.createElement("div",{className:"mt10"},s.a.createElement(he.a,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:ve,onChange:function(Sn){Q(Sn)}})),s.a.createElement("div",{className:"mt20"},(Jn=yt.shixun)===null||Jn===void 0?void 0:Jn.map(function(fr,Sn){return s.a.createElement(a.a,{gutter:[20,20]},s.a.createElement(m.a,{flex:"1"},Sn+1,".",fr.challenge_name),s.a.createElement(m.a,null,s.a.createElement(t.a,{defaultValue:Tn[Sn],onChange:function(or){Tn[Sn]=or,cr(Tn),console.log("srore:L",Tn[Sn])}})," \u5206"))})),s.a.createElement("div",{className:"mt20"},Ln.length>1&&s.a.createElement("span",null,s.a.createElement(A.a,{checked:ne,onChange:function(Sn){return B(Sn.target.checked)},className:"".concat(ee.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),s.a.createElement("span",{className:"".concat(ee.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),s.a.createElement("aside",{className:"tr"},(Gt!==-1||!(yt!=null&&yt.edit))&&s.a.createElement(i.a,{type:"default",onClick:function(){pe(),Fn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Kn()}},"\u4FDD\u5B58")))},jr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Tr){var Jn,fr;return(xt==null||((Jn=xt.editData)===null||Jn===void 0||((fr=Jn.exercise)===null||fr===void 0))?void 0:fr.exercise_status)===1?Tr:Tr.id!=="del"&&Tr.id!=="add"}),ua=function(){var Tr=Object(M.a)(I.a.mark(function Jn(fr){return I.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(!(Gt!==-1)){On.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),On.abrupt("return");case 3:On.t0=fr.id,On.next=On.t0==="del"?6:On.t0==="up"||On.t0==="down"?8:On.t0==="edit"?12:On.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Dn(){return I.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Gn.next=2,Object(W.m)({id:yt.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Vn)});case 3:case"end":return Gn.stop()}},Dn)}))()}}),On.abrupt("break",17);case 8:return On.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:yt.question_id,opr:fr.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Vn)}),On.abrupt("break",17);case 12:return Be(yt.dragKey),Fn(!0),On.abrupt("break",17);case 15:return Dt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:yt.key,insert_id:yt==null?void 0:yt.question_id,question_type:5}}}),On.abrupt("break",17);case 17:case"end":return On.stop()}},Jn)}));return function(fr){return Tr.apply(this,arguments)}}(),Yr=function(){var Jn,fr;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(yt!=null&&yt.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},yt.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",yt.question_score,"\u5206\uFF09")),yt!=null&&yt.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},yt.key,"."),s.a.createElement(be.a,{value:yt.shixun_name}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",yt.question_score,"\u5206\uFF09"),!!((Jn=yt.schools)!==null&&Jn!==void 0&&Jn.length)&&s.a.createElement(w.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},s.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"}))):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:yt.shixun_name})),s.a.createElement("div",{className:"mt30"}),(fr=yt.shixun)===null||fr===void 0?void 0:fr.map(function(Sn,On){return s.a.createElement("div",{key:On},"\u7B2C",On+1,"\u5173 ",s.a.createElement("span",{className:"ml10"},Sn.challenge_name)," ",s.a.createElement("span",{className:"ml10"},Sn.challenge_score," \u5206"))}),s.a.createElement("div",{className:ee.a.action},s.a.createElement(ze.a,{target:"_blank",to:"/shixuns/".concat(yt.shixun_identifier,"/challenges?exercise=true")},"\u5B9E\u8BAD\u8BE6\u60C5"),!yt.hideAction&&jr.map(function(Sn,On){return Sn.id==="up"&&yt.key===1||Sn.id==="down"&&yt.key===yt.len?null:s.a.createElement(w.a,{key:On,placement:"bottom",title:Sn.name},s.a.createElement("span",{onClick:function(){return ua(Sn)},className:Sn.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},!Jt&&Yr(),Jt&&ir())},Pe=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Fe)),Ve=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],at=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,yt=ye.onRef,mn=yt===void 0?function(){}:yt,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=ye.addCallback,bt=Zt===void 0?function(Gn){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)([]),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(""),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)(!1),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(1),cr=Object(S.a)(Tn,2),Vt=cr[0],Et=cr[1],Jt=Object(g.useState)(!1),Fn=Object(S.a)(Jt,2),Vn=Fn[0],Kn=Fn[1],ir=Object(F.i)(),jr=Object(g.useRef)(null),ua=Object(g.useState)([]),Yr=Object(S.a)(ua,2),Tr=Yr[0],Jn=Yr[1],fr=function(se){Jn([].concat(Object(P.a)(Tr),[Object(Y.a)({},se)]))};Object(g.useEffect)(function(){Te(["","","",""])},[]),Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){vn(!0),an(""),Bn(5),Te(["","","",""]),Mt([]);return}an(pe==null?void 0:pe.question_title),Bn(jn||(pe==null?void 0:pe.question_score)),Kn(!(pe!=null&&pe.repeat_answer)),Et(pe==null?void 0:pe.difficulty),Te(pe==null?void 0:pe.question_choices.map(function(se){return se.choice_text}));var Gn=[];pe==null||pe.standard_answer.map(function(se,tt){Gn.push(se-1)}),ae(pe.tag_discipline_ids),Mt(Gn)},[pe,ht]),Object(g.useEffect)(function(){ht&&Gn();function Gn(){return se.apply(this,arguments)}function se(){return se=Object(M.a)(I.a.mark(function tt(){var rt,ut,Kt;return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(W.H)({sub_discipline_id:(rt=et.editData)===null||rt===void 0||((ut=rt.exercise)===null||ut===void 0)?void 0:ut.sub_discipline_id});case 2:Kt=Yt.sent,Jn(Kt.tag_disciplines);case 4:case"end":return Yt.stop()}},tt)})),se.apply(this,arguments)}},[ht]),Object(g.useEffect)(function(){var Gn,se=et!=null&&(Gn=et.tagDisciplineData)!==null&&Gn!==void 0&&Gn.tag_disciplines&&Array.isArray(et.tagDisciplineData.tag_disciplines)?et.tagDisciplineData.tag_disciplines:[];Jn(se)},[et.tagDisciplineData]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Sn,isEdit:ht}});var Sn=function(){var Gn=Object(M.a)(I.a.mark(function se(){var tt,rt,ut,Kt,Ct,Yt,nn,_n,cn;return I.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:if(St){Mn.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),Mn.abrupt("return",!1);case 3:if(tt=bn.findIndex(function(fn){return!fn}),!(tt>-1)){Mn.next=7;break}return c.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ve[tt]," \u9009\u9879\u7684\u5185\u5BB9")),Mn.abrupt("return",!1);case 7:if(it.length){Mn.next=10;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),Mn.abrupt("return",!1);case 10:if(!(it.length<1)){Mn.next=13;break}return c.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),Mn.abrupt("return",!1);case 13:if(rt=bn.map(function(fn,Hn){return{choice_text:fn,is_answer:it.includes(Hn)?Hn+1:0}}),!pe.question_id){Mn.next=25;break}if(!((pe==null?void 0:pe.is_my)===1)){Mn.next=19;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var fn=Object(M.a)(I.a.mark(function Xn(){var $n,Yn,_r;return I.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(wr){return wr.choice_text}),standard_answers:rt.filter(function(wr){return wr.is_answer}).map(function(wr){return wr.is_answer}),tag_discipline_ids:H,sub_discipline_id:($n=et.editData)===null||$n===void 0||((Yn=$n.exercise)===null||Yn===void 0)?void 0:Yn.sub_discipline_id,difficulty:Vt,is_cover:1,repeat_answer:!Vn}});case 2:ut=lr.sent,((_r=ut)===null||_r===void 0?void 0:_r.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 4:case"end":return lr.stop()}},Xn)}));function Hn(){return fn.apply(this,arguments)}return Hn}(),onCancel:function(){var fn=Object(M.a)(I.a.mark(function Xn(){var $n,Yn,_r;return I.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(wr){return wr.choice_text}),standard_answers:rt.filter(function(wr){return wr.is_answer}).map(function(wr){return wr.is_answer}),tag_discipline_ids:H,sub_discipline_id:($n=et.editData)===null||$n===void 0||((Yn=$n.exercise)===null||Yn===void 0)?void 0:Yn.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 2:ut=lr.sent,((_r=ut)===null||_r===void 0?void 0:_r.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 4:case"end":return lr.stop()}},Xn)}));function Hn(){return fn.apply(this,arguments)}return Hn}()}),Mn.next=23;break;case 19:return Mn.next=21,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(fn){return fn.choice_text}),standard_answers:rt.filter(function(fn){return fn.is_answer}).map(function(fn){return fn.is_answer}),tag_discipline_ids:H,sub_discipline_id:(Kt=et.editData)===null||Kt===void 0||((Ct=Kt.exercise)===null||Ct===void 0)?void 0:Ct.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 21:ut=Mn.sent,((Yt=ut)===null||Yt===void 0?void 0:Yt.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 23:Mn.next=29;break;case 25:return Mn.next=27,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:ir.categoryId,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(fn){return fn.choice_text}),standard_answers:rt.filter(function(fn){return fn.is_answer}).map(function(fn){return fn.is_answer}),tag_discipline_ids:H,sub_discipline_id:(nn=et.editData)===null||nn===void 0||((_n=nn.exercise)===null||_n===void 0)?void 0:_n.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 27:ut=Mn.sent,((cn=ut)===null||cn===void 0?void 0:cn.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 29:case"end":return Mn.stop()}},se)}));return function(){return Gn.apply(this,arguments)}}(),On=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Gn){var se,tt;return(et==null||((se=et.editData)===null||se===void 0||((tt=se.exercise)===null||tt===void 0))?void 0:tt.exercise_status)===1?Gn:Gn.id!=="del"&&Gn.id!=="add"}),or=function(){var Gn=Object(M.a)(I.a.mark(function se(tt){return I.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!(Be!==-1)){ut.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ut.abrupt("return");case 3:ut.t0=tt.id,ut.next=ut.t0==="del"?6:ut.t0==="up"||ut.t0==="down"?8:ut.t0==="edit"?12:ut.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Ct(){return I.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)});case 3:case"end":return nn.stop()}},Ct)}))()}}),ut.abrupt("break",17);case 8:return ut.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:tt.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}),ut.abrupt("break",17);case 12:return Xt(pe.dragKey),vn(!0),ut.abrupt("break",17);case 15:return bt({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:0}),ut.abrupt("break",17);case 17:case"end":return ut.stop()}},se)}));return function(tt){return Gn.apply(this,arguments)}}(),Dn=function(){var se;return s.a.createElement("aside",{ref:jr},s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},pe==null||((se=pe.question_choices)===null||se===void 0)?void 0:se.map(function(tt,rt){return s.a.createElement(a.a,{key:rt},s.a.createElement(m.a,null,s.a.createElement(y.a,{key:rt,checked:pe.standard_answer.includes(rt+1),disabled:!0},Ve[rt],".")),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:"c-black font14"},s.a.createElement(be.a,{value:tt.choice_text}))))})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&On.map(function(tt,rt){return tt.id==="up"&&pe.key===1||tt.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:rt,placement:"bottom",title:tt.name},s.a.createElement("span",{onClick:function(){return or(tt)},className:tt.icon}))})))},pr=function(){var se,tt;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:St,onChange:function(ut){return an(ut)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),bn.map(function(rt,ut){var Kt,Ct;return s.a.createElement("div",{className:ee.a.choiceWrap,key:ut},s.a.createElement(w.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},s.a.createElement("div",{className:"".concat(ee.a.answer," ").concat(it.includes(ut)?ee.a.activeAnswer:""),onClick:function(){it.includes(ut)?Mt(it.filter(function(nn){return nn!==ut})):Mt([].concat(Object(P.a)(it),[ut]))}},Ve[ut])),s.a.createElement("div",{className:ee.a.editorWrap},$===ut?s.a.createElement(he.a,{id:"single-question-option-".concat(ut),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:rt,onChange:function(nn){bn[ut]=nn,Te(bn)}}):s.a.createElement("div",{className:ee.a.htmlWrap,onClick:function(){return re(ut)}},s.a.createElement(be.a,{value:rt}))),((Kt=et.editData)===null||Kt===void 0||((Ct=Kt.exercise)===null||Ct===void 0)?void 0:Ct.exercise_status)===1&&s.a.createElement(s.a.Fragment,null,ut>1&&s.a.createElement(w.a,{title:"\u5220\u9664"},s.a.createElement("i",{className:"".concat(ee.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Te(bn.filter(function(nn,_n){return _n!==ut}))}})),ut<7&&ut===bn.length-1&&s.a.createElement(w.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},s.a.createElement("i",{className:"".concat(ee.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Te([].concat(Object(P.a)(bn),[""]))}}))))}),s.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:jn,max:1e4,min:0,onChange:function(ut){Bn(ut)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(y.a.Group,{value:Vt,onChange:function(ut){Et(ut.target.value)}},s.a.createElement(y.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(y.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(y.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{selectvalues:pe==null?void 0:pe.tag_discipline_ids,value:H,onChange:ae,subId:(se=et.editData)===null||se===void 0||((tt=se.exercise)===null||tt===void 0)?void 0:tt.sub_discipline_id,knowledgeOptions:Tr,onAddKnowledgeFinish:fr})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vn,onChange:function(ut){Kn(ut)}}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),vn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Sn()}},"\u4FDD\u5B58")))};return s.a.createElement("section",{className:ee.a.wrap},!ht&&Dn(),ht&&pr())},At=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(at)),Rt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],tn=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,yt=ye.onRef,mn=yt===void 0?function(){}:yt,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.addCallback,$t=Pt===void 0?function(){}:Pt,Zt=ye.setIsClaer,bt=Zt===void 0?function(){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),Nt=Object(g.useState)(""),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(""),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)(""),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(!1),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)(1),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(!1),cr=Object(S.a)(Tn,2),Vt=cr[0],Et=cr[1],Jt=Object(F.i)(),Fn=Object(g.useState)([]),Vn=Object(S.a)(Fn,2),Kn=Vn[0],ir=Vn[1],jr=function(On){ir([].concat(Object(P.a)(Kn),[Object(Y.a)({},On)]))};Object(g.useEffect)(function(){var Sn;if(!(pe!=null&&pe.question_title)){Bn(!0),Te(""),Mt(""),an(10);return}Et(!(pe!=null&&pe.repeat_answer)),Te(pe==null?void 0:pe.question_title),Mt(pe==null||((Sn=pe.standard_answer)===null||Sn===void 0)?void 0:Sn[0]),an(St||(pe==null?void 0:pe.question_score)),ae(pe.tag_discipline_ids),vn(pe==null?void 0:pe.difficulty)},[dt.editData,jn]),Object(g.useEffect)(function(){var Sn,On=et!=null&&(Sn=et.tagDisciplineData)!==null&&Sn!==void 0&&Sn.tag_disciplines&&Array.isArray(et.tagDisciplineData.tag_disciplines)?et.tagDisciplineData.tag_disciplines:[];ir(On)},[et.tagDisciplineData]),Object(g.useEffect)(function(){jn&&Sn();function Sn(){return On.apply(this,arguments)}function On(){return On=Object(M.a)(I.a.mark(function or(){var Dn,pr,Gn;return I.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(W.H)({sub_discipline_id:(Dn=et.editData)===null||Dn===void 0||((pr=Dn.exercise)===null||pr===void 0)?void 0:pr.sub_discipline_id});case 2:Gn=tt.sent,ir(Gn.tag_disciplines);case 4:case"end":return tt.stop()}},or)})),On.apply(this,arguments)}},[jn]),Object(g.useImperativeHandle)(Se,function(){return{onSave:ua,isEdit:jn}});var ua=function(){var Sn=Object(M.a)(I.a.mark(function On(){var or,Dn,pr,Gn,se;return I.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(bn){rt.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),rt.abrupt("return",!1);case 3:if(!pe.question_id){rt.next=14;break}if(!((pe==null?void 0:pe.is_my)===1)){rt.next=8;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var ut=Object(M.a)(I.a.mark(function Ct(){var Yt,nn;return I.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Yt=et.editData)===null||Yt===void 0||((nn=Yt.exercise)===null||nn===void 0)?void 0:nn.sub_discipline_id,difficulty:ht,is_cover:1,repeat_answer:!Vt}});case 2:or=cn.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 4:case"end":return cn.stop()}},Ct)}));function Kt(){return ut.apply(this,arguments)}return Kt}(),onCancel:function(){var ut=Object(M.a)(I.a.mark(function Ct(){var Yt,nn;return I.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Yt=et.editData)===null||Yt===void 0||((nn=Yt.exercise)===null||nn===void 0)?void 0:nn.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 2:or=cn.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 4:case"end":return cn.stop()}},Ct)}));function Kt(){return ut.apply(this,arguments)}return Kt}()}),rt.next=12;break;case 8:return rt.next=10,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Dn=et.editData)===null||Dn===void 0||((pr=Dn.exercise)===null||pr===void 0)?void 0:pr.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 10:or=rt.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 12:rt.next=18;break;case 14:return rt.next=16,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:Jt.categoryId,exercise_bank_id:Jt.categoryId,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Gn=et.editData)===null||Gn===void 0||((se=Gn.exercise)===null||se===void 0)?void 0:se.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 16:or=rt.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 18:return rt.abrupt("return",{name:bn,answer_texts:[it],analysis:$});case 19:case"end":return rt.stop()}},On)}));return function(){return Sn.apply(this,arguments)}}(),Yr=function(){var On,or;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:bn,onChange:function(pr){return Te(pr)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),s.a.createElement(he.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:it,onChange:function(pr){return Mt(pr)}}),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:St,max:1e4,min:0,onChange:function(pr){an(pr)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(y.a.Group,{value:ht,onChange:function(pr){vn(pr.target.value)}},s.a.createElement(y.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(y.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(y.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:H,selectvalues:pe==null?void 0:pe.tag_discipline_ids,onChange:ae,subId:(On=et.editData)===null||On===void 0||((or=On.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,knowledgeOptions:Kn,onAddKnowledgeFinish:jr})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vt,onChange:function(pr){Et(pr)}}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),Bn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){ua()}},"\u4FDD\u5B58")))},Tr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Sn){var On,or;return(et==null||((On=et.editData)===null||On===void 0||((or=On.exercise)===null||or===void 0))?void 0:or.exercise_status)===1?Sn:Sn.id!=="del"&&Sn.id!=="add"}),Jn=function(){var Sn=Object(M.a)(I.a.mark(function On(or){return I.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(!(Be!==-1)){pr.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),pr.abrupt("return");case 3:pr.t0=or.id,pr.next=pr.t0==="del"?6:pr.t0==="up"||pr.t0==="down"?8:pr.t0==="edit"?12:pr.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function se(){return I.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)});case 3:case"end":return rt.stop()}},se)}))()}}),pr.abrupt("break",17);case 8:return pr.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:or.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}),pr.abrupt("break",17);case 12:return Xt(pe.dragKey),Bn(!0),pr.abrupt("break",17);case 15:return $t({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:4}),pr.abrupt("break",17);case 17:case"end":return pr.stop()}},On)}));return function(or){return Sn.apply(this,arguments)}}(),fr=function(){return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},s.a.createElement("p",null,s.a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),s.a.createElement(be.a,{value:it||""})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&Tr.map(function(On,or){return On.id==="up"&&pe.key===1||On.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:or,placement:"bottom",title:On.name},s.a.createElement("span",{onClick:function(){return Jn(On)},className:On.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},!jn&&fr(),jn&&Yr())},Qt=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(tn)),Cn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Un=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,yt=ye.onRef,mn=yt===void 0?function(){}:yt,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.addCallback,$t=Pt===void 0?function(){}:Pt,Zt=ye.setIsClaer,bt=Zt===void 0?function(){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)([]),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(""),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(5),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)(!1),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(F.g)(),oe=Object(F.i)();Object(g.useEffect)(function(){Te(["","","",""])},[]),Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){ae(!0),an(""),Bn(5),Te(["","","",""]),Mt([]);return}an(pe==null?void 0:pe.question_title),Bn(pe==null?void 0:pe.question_score),Te(pe==null?void 0:pe.question_choices.map(function(Jt){return Jt.choice_text}));var Et=[];pe==null||pe.standard_answer.map(function(Jt,Fn){Et.push(Jt-1)}),Mt(Et)},[pe]),Object(g.useImperativeHandle)(Se,function(){return{onSave:ht,isEdit:H}});var ht=function(){var Et=Object(M.a)(I.a.mark(function Jt(){var Fn,Vn,Kn;return I.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(St){jr.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),jr.abrupt("return",!1);case 3:if(Fn=bn.findIndex(function(ua){return!ua}),!(Fn>-1)){jr.next=7;break}return c.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Cn[Fn]," \u9009\u9879\u7684\u5185\u5BB9")),jr.abrupt("return",!1);case 7:if(it.length){jr.next=10;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),jr.abrupt("return",!1);case 10:if(!(it.length<1)){jr.next=13;break}return c.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),jr.abrupt("return",!1);case 13:if(Vn=bn.map(function(ua,Yr){return{choice_text:ua,is_answer:it.includes(Yr)?Yr+1:0}}),!pe.question_id){jr.next=20;break}return jr.next=17,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:Vn.map(function(ua){return ua.choice_text}),standard_answers:Vn.filter(function(ua){return ua.is_answer}).map(function(ua){return ua.is_answer})}});case 17:Kn=jr.sent,jr.next=23;break;case 20:return jr.next=22,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:oe.categoryId,question_title:St,question_type:1,question_score:"5.0",question_choices:Vn.map(function(ua){return ua.choice_text}),standard_answers:Vn.filter(function(ua){return ua.is_answer}).map(function(ua){return ua.is_answer})}});case 22:Kn=jr.sent;case 23:Kn.status===0&&(c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},oe)}));case 24:case"end":return jr.stop()}},Jt)}));return function(){return Et.apply(this,arguments)}}(),vn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Et){var Jt,Fn;return(et==null||((Jt=et.editData)===null||Jt===void 0||((Fn=Jt.exercise)===null||Fn===void 0))?void 0:Fn.exercise_status)===1?Et:Et.id!=="del"&&Et.id!=="add"}),Tn=function(){var Et=Object(M.a)(I.a.mark(function Jt(Fn){return I.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!(Be!==-1)){Kn.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kn.abrupt("return");case 3:Kn.t0=Fn.id,Kn.next=Kn.t0==="del"?6:Kn.t0==="up"||Kn.t0==="down"?8:Kn.t0==="edit"?12:Kn.t0==="add"?14:16;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function jr(){return I.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:return Yr.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},oe)});case 3:case"end":return Yr.stop()}},jr)}))()}}),Kn.abrupt("break",16);case 8:return Kn.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:Fn.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},oe)}),Kn.abrupt("break",16);case 12:return ue.push("/problems/".concat(pe==null?void 0:pe.hack_identifier,"/edit?type=exercises&express_id=").concat(oe.categoryId,"&question_id=").concat(pe==null?void 0:pe.question_id,"&score=").concat(pe==null?void 0:pe.question_score,"&exercise=true&callback_url=").concat(location.pathname)),Kn.abrupt("break",16);case 14:return $t({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:6}),Kn.abrupt("break",16);case 16:case"end":return Kn.stop()}},Jt)}));return function(Fn){return Et.apply(this,arguments)}}(),cr=function(){var Et=Object(M.a)(I.a.mark(function Jt(Fn){var Vn;return I.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return Fn.preventDefault(),ir.next=3,Object(W.X)({id:pe==null?void 0:pe.hack_identifier});case 3:Vn=ir.sent,Vn.status===0&&Object(X.O)("/myproblems/".concat(Vn==null?void 0:Vn.identifier));case 5:case"end":return ir.stop()}},Jt)}));return function(Fn){return Et.apply(this,arguments)}}(),Vt=function(){return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},s.a.createElement(be.a,{value:pe.description||""})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&vn.map(function(Jt,Fn){return Jt.id==="up"&&pe.key===1||Jt.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:Fn,placement:"bottom",title:Jt.name},s.a.createElement("span",{onClick:function(){return Tn(Jt)},className:Jt.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},Vt())},mt=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Un)),lt=_("LvDl"),Ht=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],sn=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,yt=ye.onRef,mn=yt===void 0?function(){}:yt,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=ye.addCallback,bt=Zt===void 0?function(fr){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(!1),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)(!0),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(1),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(!1),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(F.i)(),oe=Object(g.useRef)(null),ht=Object(g.useState)(""),vn=Object(S.a)(ht,2),Tn=vn[0],cr=vn[1],Vt=Object(g.useState)([]),Et=Object(S.a)(Vt,2),Jt=Et[0],Fn=Et[1],Vn=function(Sn){ae([].concat(Object(P.a)(H),[Object(Y.a)({},Sn)]))};Object(g.useEffect)(function(){var fr;if(!(pe!=null&&pe.question_title)){re(!0),cr("");return}cr(pe==null?void 0:pe.question_title),Bn(!(pe!=null&&pe.repeat_answer)),an(pe==null?void 0:pe.difficulty),Te(pe.tag_discipline_ids);var Sn=pe==null||((fr=pe.sub_exercise_questions)===null||fr===void 0)?void 0:fr.map(function(On){var or,Dn,pr;return Object(Y.a)(Object(Y.a)({},On),{},{id:On.question_id,name:On.question_title,open:!1,score:On.question_score,qusList:On==null||((or=On.question_choices)===null||or===void 0)?void 0:or.map(function(Gn){return Gn.choice_text}),activeQusEditor:null,qusAnswer:(Dn=[On==null||((pr=On.question_choices)===null||pr===void 0)?void 0:pr.findIndex(function(Gn){return Gn.standard_boolean})])===null||Dn===void 0?void 0:Dn.filter(function(Gn){return Gn!==-1})})});Fn(Sn)},[pe,$]),Object(g.useEffect)(function(){$&&fr();function fr(){return Sn.apply(this,arguments)}function Sn(){return Sn=Object(M.a)(I.a.mark(function On(){var or,Dn,pr;return I.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,Object(W.H)({sub_discipline_id:(or=et.editData)===null||or===void 0||((Dn=or.exercise)===null||Dn===void 0)?void 0:Dn.sub_discipline_id});case 2:pr=se.sent,ae(pr.tag_disciplines);case 4:case"end":return se.stop()}},On)})),Sn.apply(this,arguments)}},[$]),Object(g.useEffect)(function(){var fr,Sn=et!=null&&(fr=et.tagDisciplineData)!==null&&fr!==void 0&&fr.tag_disciplines&&Array.isArray(et.tagDisciplineData.tag_disciplines)?et.tagDisciplineData.tag_disciplines:[];ae(Sn)},[et.tagDisciplineData]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Kn,isEdit:$}});var Kn=function(){var fr=Object(M.a)(I.a.mark(function Sn(){var On,or,Dn,pr,Gn,se,tt,rt,ut;return I.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(Tn){Ct.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Ct.abrupt("return",!1);case 3:if(!(Jt.length===0)){Ct.next=6;break}return c.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),Ct.abrupt("return",!1);case 6:On=0;case 7:if(!(On-1)){Ct.next=19;break}return c.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(On+1,"\u5C0F\u9898").concat(Ht[pr],"\u9009\u9879\u7684\u5185\u5BB9")),Ct.abrupt("return",!1);case 19:if(Dn!=null&&Dn.qusAnswer.length){Ct.next=22;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(On+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),Ct.abrupt("return",!1);case 22:On++,Ct.next=7;break;case 25:if(Gn=Jt.map(function(Yt){var nn;return{id:Yt.id>1?Yt.id:null,question_title:Yt.name,question_type:1,question_choices:Yt.qusList,question_score:Yt.score,standard_answers:[((nn=Yt.qusAnswer)===null||nn===void 0?void 0:nn[0])+1]}}),!pe.question_id){Ct.next=35;break}if(!((pe==null?void 0:pe.is_my)===1)){Ct.next=31;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var Yt=Object(M.a)(I.a.mark(function _n(){var cn,ur,Mn;return I.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:Tn,question_type:7,sub_questions:Gn,tag_discipline_ids:bn,sub_discipline_id:(cn=et.editData)===null||cn===void 0||((ur=cn.exercise)===null||ur===void 0)?void 0:ur.sub_discipline_id,difficulty:St,is_cover:1,repeat_answer:!jn}});case 2:se=Hn.sent,((Mn=se)===null||Mn===void 0?void 0:Mn.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),re(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}));case 4:case"end":return Hn.stop()}},_n)}));function nn(){return Yt.apply(this,arguments)}return nn}(),onCancel:function(){var Yt=Object(M.a)(I.a.mark(function _n(){var cn,ur,Mn;return I.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:Tn,question_type:7,sub_questions:Gn,tag_discipline_ids:bn,sub_discipline_id:(cn=et.editData)===null||cn===void 0||((ur=cn.exercise)===null||ur===void 0)?void 0:ur.sub_discipline_id,difficulty:St,repeat_answer:!jn}});case 2:se=Hn.sent,((Mn=se)===null||Mn===void 0?void 0:Mn.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),re(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}));case 4:case"end":return Hn.stop()}},_n)}));function nn(){return Yt.apply(this,arguments)}return nn}()}),Ct.next=35;break;case 31:return Ct.next=33,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:Tn,question_type:7,sub_questions:Gn,tag_discipline_ids:bn,sub_discipline_id:(tt=et.editData)===null||tt===void 0||((rt=tt.exercise)===null||rt===void 0)?void 0:rt.sub_discipline_id,difficulty:St,repeat_answer:!jn}});case 33:se=Ct.sent,((ut=se)===null||ut===void 0?void 0:ut.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),re(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}));case 35:case"end":return Ct.stop()}},Sn)}));return function(){return fr.apply(this,arguments)}}(),ir=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(fr){var Sn,On;return(et==null||((Sn=et.editData)===null||Sn===void 0||((On=Sn.exercise)===null||On===void 0))?void 0:On.exercise_status)===1?fr:fr.id!=="del"&&fr.id!=="add"}),jr=function(){var fr=Object(M.a)(I.a.mark(function Sn(On){return I.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(!(Be!==-1)){Dn.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Dn.abrupt("return");case 3:Dn.t0=On.id,Dn.next=Dn.t0==="del"?6:Dn.t0==="up"||Dn.t0==="down"?8:Dn.t0==="edit"?12:Dn.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Gn(){return I.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)});case 3:case"end":return tt.stop()}},Gn)}))()}}),Dn.abrupt("break",17);case 8:return Dn.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:On.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}),Dn.abrupt("break",17);case 12:return Xt(pe.dragKey),re(!0),Dn.abrupt("break",17);case 15:return bt({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:0}),Dn.abrupt("break",17);case 17:case"end":return Dn.stop()}},Sn)}));return function(On){return fr.apply(this,arguments)}}(),ua=function(){var Sn;return s.a.createElement("aside",{ref:oe},s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",pe==null?void 0:pe.sub_q_count,"\u5C0F\u9898\uFF0C",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{style:{display:it?"block":"none"},className:ee.a.questionChoices},pe==null||((Sn=pe.sub_exercise_questions)===null||Sn===void 0)?void 0:Sn.map(function(On,or){var Dn;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,".",or+1,"\uFF08\u5355\u9009\u9898\uFF09"),s.a.createElement(be.a,{value:On.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",On.question_score,"\u5206\uFF09")),On==null||((Dn=On.question_choices)===null||Dn===void 0)?void 0:Dn.map(function(pr,Gn){return s.a.createElement(a.a,{key:Gn},s.a.createElement(m.a,null,s.a.createElement(y.a,{key:Gn,checked:On.standard_answer.includes(Gn+1),disabled:!0},Ht[Gn],".")),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:"c-black font14"},s.a.createElement(be.a,{value:pr.choice_text}))))}))})),s.a.createElement("div",{className:ee.a.action},s.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Mt(!it)},style:{}},it?"\u6536\u8D77":"\u5C55\u5F00"),!pe.hideAction&&ir.map(function(On,or){return On.id==="up"&&pe.key===1||On.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:or,placement:"bottom",title:On.name},s.a.createElement("span",{onClick:function(){return jr(On)},className:On.icon}))})))},Yr=function(){var Sn,On;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),s.a.createElement("section",{className:ee.a.wrap,style:{padding:0}},s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tn,onChange:function(Dn){return cr(Dn)}}),s.a.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",Jt==null?void 0:Jt.length),Jt==null?void 0:Jt.map(function(or,Dn){var pr;return s.a.createElement("div",{className:ee.a.fold,key:or.id},s.a.createElement("div",{onClick:function(){return Jn("open",Dn)},className:ee.a.head},s.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:or.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),s.a.createElement("span",null,"\u7B2C",Dn+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),s.a.createElement("b",{onClick:function(se){se.stopPropagation(),Jn("delete",Dn)},className:"iconfont icon-shanchu8"})),s.a.createElement("div",{className:"mb10",style:{display:or.open?"block":"none"}},s.a.createElement(he.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:or==null?void 0:or.name,onChange:function(se){return Jn("value",Dn,se)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),or==null||((pr=or.qusList)===null||pr===void 0)?void 0:pr.map(function(Gn,se){var tt,rt;return s.a.createElement("div",{className:ee.a.choiceWrap,key:se},s.a.createElement(w.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},s.a.createElement("div",{className:"".concat(ee.a.answer," ").concat(or!=null&&(tt=or.qusAnswer)!==null&&tt!==void 0&&tt.includes(se)?ee.a.activeAnswer:""),onClick:function(){return Jn("answer",Dn,se)}},Ht[se])),s.a.createElement("div",{className:ee.a.editorWrap},(or==null?void 0:or.activeQusEditor)===se?s.a.createElement(he.a,{id:"single-question-option-".concat(se),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Gn,onChange:function(Kt){return Jn("details",Dn,Kt)}}):s.a.createElement("div",{className:ee.a.htmlWrap,onClick:function(){return Jn("edit",Dn,se)}},s.a.createElement(be.a,{value:Gn}))),se>1&&s.a.createElement(w.a,{title:"\u5220\u9664"},s.a.createElement("i",{className:"".concat(ee.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Jn("deleteQus",Dn,se)}})),se<7&&se===(or==null||((rt=or.qusList)===null||rt===void 0)?void 0:rt.length)-1&&s.a.createElement(w.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},s.a.createElement("i",{className:"".concat(ee.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Jn("addQus",Dn)}})))}),s.a.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:or.score,max:1e4,min:0,onChange:function(se){return Jn("score",Dn,se)}})," \u5206")))}),Jt.length<20&&s.a.createElement(i.a,{type:"primary",onClick:Tr},s.a.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),s.a.createElement("p",{className:"mt10"},s.a.createElement("span",{className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(y.a.Group,{value:St,onChange:function(Dn){an(Dn.target.value)}},s.a.createElement(y.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(y.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(y.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{selectvalues:pe==null?void 0:pe.tag_discipline_ids,value:bn,onChange:Te,subId:(Sn=et.editData)===null||Sn===void 0||((On=Sn.exercise)===null||On===void 0)?void 0:On.sub_discipline_id,knowledgeOptions:H,onAddKnowledgeFinish:Vn}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),re(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Kn()}},"\u4FDD\u5B58")))},Tr=function(){var Sn={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};Fn(Jt.concat(Sn))},Jn=function(Sn,On,or){var Dn=Object(lt.cloneDeep)(Jt);if(Sn==="open"&&(Dn[On].open=!Dn[On].open),Sn==="delete"&&Dn.splice(On,1),Sn==="value"&&(Dn[On].name=or),Sn==="answer"&&(Dn[On].qusAnswer=[or]),Sn==="edit"&&(Dn[On].activeQusEditor=or),Sn==="details"&&(Dn[On].qusList[Dn[On].activeQusEditor]=or),Sn==="addQus"&&(Dn[On].qusList=Dn[On].qusList.concat("")),Sn==="deleteQus"){var pr;Dn[On].qusList=Dn[On].qusList.filter(function(Gn,se){return se!==or}),Dn[On].qusAnswer=(pr=Dn[On].qusAnswer)===null||pr===void 0?void 0:pr.filter(function(Gn){return Gn!==or})}Sn==="analysis"&&(Dn[On].analysis=or),Sn==="score"&&(Dn[On].score=or),Fn(Dn)};return s.a.createElement("section",{className:ee.a.wrap},!$&&ua(),$&&Yr())},Tt=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(sn)),wt=_("ngQI"),Qe=_("loLm"),Je=_.n(Qe),Xe=function(ye){var Se=ye.data,dt=ye.isDragDisabled,et=dt===void 0?!1:dt,xt=ye.editorProps,xn=xt===void 0?{}:xt,Dt=ye.onDragEnd,yt=Dt===void 0?function(){}:Dt,mn=function(){var $t,Zt,bt,ft,Nt,jt,bn,Te,ve,Q,$,re,de,Ue,it,Mt,Ln=[{name:"\u5355\u9009\u9898",type:0,count:Se==null||(($t=Se.exercise_types)===null||$t===void 0)?void 0:$t.q_singles,score:Se==null||((Zt=Se.exercise_types)===null||Zt===void 0)?void 0:Zt.q_singles_scores,items:[]},{name:"\u591A\u9009\u9898",type:1,count:Se==null||((bt=Se.exercise_types)===null||bt===void 0)?void 0:bt.q_doubles,score:Se==null||((ft=Se.exercise_types)===null||ft===void 0)?void 0:ft.q_doubles_scores,items:[]},{name:"\u5224\u65AD\u9898",type:2,count:Se==null||((Nt=Se.exercise_types)===null||Nt===void 0)?void 0:Nt.q_judges,score:Se==null||((jt=Se.exercise_types)===null||jt===void 0)?void 0:jt.q_judges_scores,items:[]},{name:"\u586B\u7A7A\u9898",type:3,count:Se==null||((bn=Se.exercise_types)===null||bn===void 0)?void 0:bn.q_nulls,score:Se==null||((Te=Se.exercise_types)===null||Te===void 0)?void 0:Te.q_nulls_scores,items:[]},{name:"\u7B80\u7B54\u9898",type:4,count:Se==null||((ve=Se.exercise_types)===null||ve===void 0)?void 0:ve.q_mains,score:Se==null||((Q=Se.exercise_types)===null||Q===void 0)?void 0:Q.q_mains_scores,items:[]},{name:"\u5B9E\u8BAD\u9898",type:5,count:Se==null||(($=Se.exercise_types)===null||$===void 0)?void 0:$.q_shixuns,score:Se==null||((re=Se.exercise_types)===null||re===void 0)?void 0:re.q_shixuns_scores,items:[]},{name:"\u7F16\u7A0B\u9898",type:6,count:Se==null||((de=Se.exercise_types)===null||de===void 0)?void 0:de.q_pros,score:Se==null||((Ue=Se.exercise_types)===null||Ue===void 0)?void 0:Ue.q_pros_scores,items:[]},{name:"\u7EC4\u5408\u9898",type:7,count:Se==null||((it=Se.exercise_types)===null||it===void 0)?void 0:it.q_combinations,score:Se==null||((Mt=Se.exercise_types)===null||Mt===void 0)?void 0:Mt.q_combination_scores,items:[]}];return Ln},pe=function($t,Zt,bt){var ft=Array.from($t),Nt=ft.splice(Zt,1),jt=Object(S.a)(Nt,1),bn=jt[0];return ft.splice(bt,0,bn),ft},Gt=function($t,Zt,bt){if(!$t.destination)return;var ft=pe(Zt,$t.source.index,$t.destination.index);yt(ft,bt)},Lt=function($t,Zt){if(Zt===0)return s.a.createElement(s.a.Fragment,null,s.a.createElement(At,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===1)return s.a.createElement(s.a.Fragment,null,s.a.createElement(xe,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===2)return s.a.createElement(s.a.Fragment,null,s.a.createElement(fe,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===3)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Ge,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===4)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Qt,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===5)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Pe,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===6)return s.a.createElement(s.a.Fragment,null,s.a.createElement(mt,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===7)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Tt,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null))},Be=function($t,Zt,bt){return s.a.createElement(wt.a,{onDragEnd:function(Nt){return Gt(Nt,$t,Zt)}},s.a.createElement(wt.c,{droppableId:"droppable"},function(ft,Nt){return s.a.createElement("div",Object(U.a)({ref:ft.innerRef},ft.droppableProps,{style:{width:"100%"}}),$t==null?void 0:$t.map(function(jt,bn){var Te,ve=Object(Y.a)(Object(Y.a)({},jt),{},{key:bn+1,hideAction:!0,isPreview:!0,dragKey:Zt+"-"+bn},xn);return s.a.createElement(wt.b,{key:ve==null?void 0:ve.question_id,draggableId:ve==null||((Te=ve.question_id)===null||Te===void 0)?void 0:Te.toString(),index:bn,isDragDisabled:et},function(Q,$){return s.a.createElement("aside",Object(U.a)({ref:Q.innerRef},Q.draggableProps,Q.dragHandleProps),s.a.createElement("div",{className:Je.a.posWarp,id:ve.dragKey},Lt(ve,Zt),!et&&s.a.createElement("div",{className:Je.a.pos},s.a.createElement("div",{className:Je.a.tips},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u8BD5\u9898\u663E\u793A\u987A\u5E8F"))))})}))}))},ot=function($t){var Zt=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],bt=["","\u5341","\u767E","\u5343","\u4E07"];$t=parseInt($t);var ft=function(Te){for(var ve=Te.toString().split("").reverse(),Q="",$=0;$0&&ve[$]==0&&ve[$-1]==0?"":Zt[ve[$]]+(ve[$]==0?bt[0]:bt[$]))+Q;return Q},Nt=Math.floor($t/1e4),jt=$t%1e4;return jt.toString().length<4&&(jt="0"+jt),Nt?ft(Nt)+"\u4E07"+ft(jt):ft($t)},Xt=function(){var $t,Zt=mn();Se==null||(($t=Se.exercise_questions)===null||$t===void 0)||$t.forEach(function(ft,Nt){if(ft.question_type===0){var jt,bn;(jt=Zt[ft.question_type])===null||jt===void 0||((bn=jt.items)===null||bn===void 0)||bn.push(ft)}if(ft.question_type===1){var Te,ve;(Te=Zt[ft.question_type])===null||Te===void 0||((ve=Te.items)===null||ve===void 0)||ve.push(ft)}if(ft.question_type===2){var Q,$;(Q=Zt[ft.question_type])===null||Q===void 0||(($=Q.items)===null||$===void 0)||$.push(ft)}if(ft.question_type===3){var re,de;(re=Zt[ft.question_type])===null||re===void 0||((de=re.items)===null||de===void 0)||de.push(ft)}if(ft.question_type===4){var Ue,it;(Ue=Zt[ft.question_type])===null||Ue===void 0||((it=Ue.items)===null||it===void 0)||it.push(ft)}if(ft.question_type===5){var Mt,Ln;(Mt=Zt[ft.question_type])===null||Mt===void 0||((Ln=Mt.items)===null||Ln===void 0)||Ln.push(ft)}if(ft.question_type===6){var kn,St;(kn=Zt[ft.question_type])===null||kn===void 0||((St=kn.items)===null||St===void 0)||St.push(ft)}if(ft.question_type===7){var an,Pn;(an=Zt[ft.question_type])===null||an===void 0||((Pn=an.items)===null||Pn===void 0)||Pn.push(ft)}});var bt=Se==null?void 0:Se.map(function(ft,Nt){return s.a.createElement(s.a.Fragment,{key:Nt},s.a.createElement("div",{className:"pl20"},s.a.createElement("span",{className:"font16 c-light-primary"},ot(Nt+1),"\u3001",ft.name),s.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ft.count,"\u9898",(ft==null?void 0:ft.question_type)===7?"\uFF0C\u5305\u542B".concat(ft.sub_count,"\u5C0F\u9898"):"","\uFF1B\u5171",ft.score,"\u5206\uFF09")),Be(ft.items,ft==null?void 0:ft.question_type,ft==null?void 0:ft.name))});return bt};return s.a.createElement("div",null," ",Xt()," ")},Oe=ie.a=Xe},LdHM:function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return h}),_.d(ie,"a",function(){return E});var Y=_("1OyB"),j=_("vuIU"),L=_("Ji7U"),U=_("LK+K"),S=_("q1tI"),g=_("rePB"),s=_("Ff2n"),d=_("ODXe"),w=_("4IlW"),p=_("bX4T"),a=_("YrtM"),f=_("TSYQ"),x=_.n(f),b=_("+nKL"),m=_("8OUc"),O=function(J,X){var te=J.prefixCls,ee=J.id,be=J.flattenOptions,ge=J.childrenAsData,je=J.values,He=J.searchValue,nt=J.multiple,Ge=J.defaultActiveFirstOption,he=J.height,ce=J.itemHeight,Ee=J.notFoundContent,fe=J.open,Ne=J.menuItemSelectedIcon,Ce=J.virtual,xe=J.onSelect,ze=J.onToggleOpen,Le=J.onActiveValue,Fe=J.onScroll,Pe=J.onMouseEnter,Ve="".concat(te,"-item"),at=Object(a.a)(function(){return be},[fe,be],function(wt,Qe){return Qe[0]&&wt[1]!==Qe[1]}),At=S.useRef(null),Rt=function(Qe){Qe.preventDefault()},tn=function(Qe){At.current&&At.current.scrollTo({index:Qe})},Qt=function(Qe){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xe=at.length,Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(C.a)(G).map(function(X,te){if(!S.isValidElement(X)||!X.type)return null;var ee=X.type.isSelectOptGroup,be=X.key,ge=X.props,je=ge.children,He=Object(s.a)(ge,["children"]);return J||!ee?A(X):Object(t.a)(Object(t.a)({key:"__RC_SELECT_GRP__".concat(be===null?te:be,"__"),label:be},He),{},{options:v(je)})}).filter(function(X){return X})}var o=_("2Qr1"),l=_("qNPg"),c=_("U8pU"),M=_("Kwbf"),P=_("WKfj");function R(G){var J=G.mode,X=G.options,te=G.children,ee=G.backfill,be=G.allowClear,ge=G.placeholder,je=G.getInputElement,He=G.showSearch,nt=G.onSearch,Ge=G.defaultOpen,he=G.autoFocus,ce=G.labelInValue,Ee=G.value,fe=G.inputValue,Ne=G.optionLabelProp,Ce=J==="multiple"||J==="tags",xe=He!==void 0?He:Ce||J==="combobox",ze=X||v(te);if(Object(M.a)(J!=="tags"||ze.every(function(Ve){return!Ve.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),J==="tags"||J==="combobox"){var Le=ze.some(function(Ve){return Ve.options?Ve.options.some(function(at){return typeof("value"in at?at.value:at.key)=="number"}):typeof("value"in Ve?Ve.value:Ve.key)=="number"});Object(M.a)(!Le,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(J!=="combobox"||!Ne,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(J==="combobox"||!ee,"`backfill` only works with `combobox` mode."),Object(M.a)(J==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),Object(M.b)(J!=="combobox"||!je||!be||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),nt&&!xe&&J!=="combobox"&&J!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!Ge||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ee!=null){var Fe=Object(P.d)(Ee);Object(M.a)(!ce||Fe.every(function(Ve){return Object(c.a)(Ve)==="object"&&("key"in Ve||"value"in Ve)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!Ce||Array.isArray(Ee),"`value` should be array when `mode` is `multiple` or `tags`")}if(te){var Pe=null;Object(C.a)(te).some(function(Ve){if(!S.isValidElement(Ve)||!Ve.type)return!1;var at=Ve.type;if(at.isSelectOption)return!1;if(at.isSelectOptGroup){var At=Object(C.a)(Ve.props.children).every(function(Rt){return!S.isValidElement(Rt)||!Ve.type||Rt.type.isSelectOption?!0:(Pe=Rt.type,!1)});return!At}return Pe=at,!0}),Pe&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Pe.displayName||Pe.name||Pe,"`.")),Object(M.a)(fe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var k=R,I=Object(l.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:v,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:k,fillOptionsWithMissingValue:o.a}),F=function(G){Object(L.a)(X,G);var J=Object(U.a)(X);function X(){var te;return Object(Y.a)(this,X),te=J.apply(this,arguments),te.selectRef=S.createRef(),te.focus=function(){te.selectRef.current.focus()},te.blur=function(){te.selectRef.current.blur()},te}return Object(j.a)(X,[{key:"render",value:function(){return S.createElement(I,Object.assign({ref:this.selectRef},this.props))}}]),X}(S.Component);F.Option=h,F.OptGroup=E;var V=F,W=ie.c=V},M8RZ:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return w});var Y=_("fWQN"),j=_("mtLc"),L=_("yKVA"),U=_("879j"),S=_("q1tI"),g=_.n(S),s=_("i8i4"),d=_.n(s),w=function(p){Object(L.a)(f,p);var a=Object(U.a)(f);function f(x){var b;Object(Y.a)(this,f),b=a.call(this,x);var m=window.document;return b.node=m.createElement("div"),m.body.appendChild(b.node),b}return Object(j.a)(f,[{key:"render",value:function(){var b=this.props.children;return Object(s.createPortal)(b,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),f}(g.a.Component)},MEGo:function(Ye,ie,_){var Y=_("4fz+"),j=_("Dagg"),L=_("dqUG"),U=_("2fw6"),S=_("x6Kt"),g=_("rmlV"),s=_("yxFR"),d=_("y+Vt"),w=_("h7HQ"),p=_("1Jh7"),a=_("SKnc"),f=_("K2GJ"),x=_("Fofx"),b=_("NC18"),m=b.createFromString,O=_("bYtY"),i=O.isString,r=O.extend,u=O.defaults,h=O.trim,y=O.each,E=/[\s,]+/;function t(X){if(i(X)){var te=new DOMParser;X=te.parseFromString(X,"text/xml")}for(X.nodeType===9&&(X=X.firstChild);X.nodeName.toLowerCase()!=="svg"||X.nodeType!==1;)X=X.nextSibling;return X}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(X,te){te=te||{};var ee=t(X);if(!ee)throw new Error("Illegal svg");var be=new Y;this._root=be;var ge=ee.getAttribute("viewBox")||"",je=parseFloat(ee.getAttribute("width")||te.width),He=parseFloat(ee.getAttribute("height")||te.height);isNaN(je)&&(je=null),isNaN(He)&&(He=null),P(ee,be,null,!0);for(var nt=ee.firstChild;nt;)this._parseNode(nt,be),nt=nt.nextSibling;var Ge,he;if(ge){var ce=h(ge).split(E);ce.length>=4&&(Ge={x:parseFloat(ce[0]||0),y:parseFloat(ce[1]||0),width:parseFloat(ce[2]),height:parseFloat(ce[3])})}if(Ge&&je!=null&&He!=null&&(he=G(Ge,je,He),!te.ignoreViewBox)){var Ee=be;be=new Y,be.add(Ee),Ee.scale=he.scale.slice(),Ee.position=he.position.slice()}return!te.ignoreRootClip&&je!=null&&He!=null&&be.setClipPath(new S({shape:{x:0,y:0,width:je,height:He}})),{root:be,width:je,height:He,viewBoxRect:Ge,viewBoxTransform:he}},C.prototype._parseNode=function(X,te){var ee=X.nodeName.toLowerCase();ee==="defs"?this._isDefine=!0:ee==="text"&&(this._isText=!0);var be;if(this._isDefine){var ge=v[ee];if(ge){var je=ge.call(this,X),He=X.getAttribute("id");He&&(this._defs[He]=je)}}else{var ge=A[ee];ge&&(be=ge.call(this,X,te),te.add(be))}for(var nt=X.firstChild;nt;)nt.nodeType===1&&this._parseNode(nt,be),nt.nodeType===3&&this._isText&&this._parseText(nt,be),nt=nt.nextSibling;ee==="defs"?this._isDefine=!1:ee==="text"&&(this._isText=!1)},C.prototype._parseText=function(X,te){if(X.nodeType===1){var ee=X.getAttribute("dx")||0,be=X.getAttribute("dy")||0;this._textX+=parseFloat(ee),this._textY+=parseFloat(be)}var ge=new L({style:{text:X.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});l(te,ge),P(X,ge,this._defs);var je=ge.style.fontSize;je&&je<9&&(ge.style.fontSize=9,ge.scale=ge.scale||[1,1],ge.scale[0]*=je/9,ge.scale[1]*=je/9);var He=ge.getBoundingRect();return this._textX+=He.width,te.add(ge),ge};var A={g:function(X,te){var ee=new Y;return l(te,ee),P(X,ee,this._defs),ee},rect:function(X,te){var ee=new S;return l(te,ee),P(X,ee,this._defs),ee.setShape({x:parseFloat(X.getAttribute("x")||0),y:parseFloat(X.getAttribute("y")||0),width:parseFloat(X.getAttribute("width")||0),height:parseFloat(X.getAttribute("height")||0)}),ee},circle:function(X,te){var ee=new U;return l(te,ee),P(X,ee,this._defs),ee.setShape({cx:parseFloat(X.getAttribute("cx")||0),cy:parseFloat(X.getAttribute("cy")||0),r:parseFloat(X.getAttribute("r")||0)}),ee},line:function(X,te){var ee=new s;return l(te,ee),P(X,ee,this._defs),ee.setShape({x1:parseFloat(X.getAttribute("x1")||0),y1:parseFloat(X.getAttribute("y1")||0),x2:parseFloat(X.getAttribute("x2")||0),y2:parseFloat(X.getAttribute("y2")||0)}),ee},ellipse:function(X,te){var ee=new g;return l(te,ee),P(X,ee,this._defs),ee.setShape({cx:parseFloat(X.getAttribute("cx")||0),cy:parseFloat(X.getAttribute("cy")||0),rx:parseFloat(X.getAttribute("rx")||0),ry:parseFloat(X.getAttribute("ry")||0)}),ee},polygon:function(X,te){var ee=X.getAttribute("points");ee&&(ee=c(ee));var be=new w({shape:{points:ee||[]}});return l(te,be),P(X,be,this._defs),be},polyline:function(X,te){var ee=new d;l(te,ee),P(X,ee,this._defs);var be=X.getAttribute("points");be&&(be=c(be));var ge=new p({shape:{points:be||[]}});return ge},image:function(X,te){var ee=new j;return l(te,ee),P(X,ee,this._defs),ee.setStyle({image:X.getAttribute("xlink:href"),x:X.getAttribute("x"),y:X.getAttribute("y"),width:X.getAttribute("width"),height:X.getAttribute("height")}),ee},text:function(X,te){var ee=X.getAttribute("x")||0,be=X.getAttribute("y")||0,ge=X.getAttribute("dx")||0,je=X.getAttribute("dy")||0;this._textX=parseFloat(ee)+parseFloat(ge),this._textY=parseFloat(be)+parseFloat(je);var He=new Y;return l(te,He),P(X,He,this._defs),He},tspan:function(X,te){var ee=X.getAttribute("x"),be=X.getAttribute("y");ee!=null&&(this._textX=parseFloat(ee)),be!=null&&(this._textY=parseFloat(be));var ge=X.getAttribute("dx")||0,je=X.getAttribute("dy")||0,He=new Y;return l(te,He),P(X,He,this._defs),this._textX+=ge,this._textY+=je,He},path:function(X,te){var ee=X.getAttribute("d")||"",be=m(ee);return l(te,be),P(X,be,this._defs),be}},v={lineargradient:function(X){var te=parseInt(X.getAttribute("x1")||0,10),ee=parseInt(X.getAttribute("y1")||0,10),be=parseInt(X.getAttribute("x2")||10,10),ge=parseInt(X.getAttribute("y2")||0,10),je=new a(te,ee,be,ge);return o(X,je),je},radialgradient:function(X){}};function o(X,te){for(var ee=X.firstChild;ee;){if(ee.nodeType===1){var be=ee.getAttribute("offset");be.indexOf("%")>0?be=parseInt(be,10)/100:be?be=parseFloat(be):be=0;var ge=ee.getAttribute("stop-color")||"#000000";te.addColorStop(be,ge)}ee=ee.nextSibling}}function l(X,te){X&&X.__inheritedStyle&&(te.__inheritedStyle||(te.__inheritedStyle={}),u(te.__inheritedStyle,X.__inheritedStyle))}function c(X){for(var te=h(X).split(E),ee=[],be=0;be0;je-=2){var He=ge[je],nt=ge[je-1];be=be||x.create();switch(nt){case"translate":He=h(He).split(E),x.translate(be,be,[parseFloat(He[0]),parseFloat(He[1]||0)]);break;case"scale":He=h(He).split(E),x.scale(be,be,[parseFloat(He[0]),parseFloat(He[1]||He[0])]);break;case"rotate":He=h(He).split(E),x.rotate(be,be,parseFloat(He[0]));break;case"skew":He=h(He).split(E),console.warn("Skew transform is not supported yet");break;case"matrix":var He=h(He).split(E);be[0]=parseFloat(He[0]),be[1]=parseFloat(He[1]),be[2]=parseFloat(He[2]),be[3]=parseFloat(He[3]),be[4]=parseFloat(He[4]),be[5]=parseFloat(He[5]);break}}te.setLocalTransform(be)}}var V=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(X){var te=X.getAttribute("style"),ee={};if(!te)return ee;var be={};V.lastIndex=0;for(var ge;(ge=V.exec(te))!=null;)be[ge[1]]=ge[2];for(var je in M)M.hasOwnProperty(je)&&be[je]!=null&&(ee[M[je]]=be[je]);return ee}function G(X,te,ee){var be=te/X.width,ge=ee/X.height,je=Math.min(be,ge),He=[je,je],nt=[-(X.x+X.width/2)*je+te/2,-(X.y+X.height/2)*je+ee/2];return{scale:He,position:nt}}function J(X,te){var ee=new C;return ee.parse(X,te)}ie.parseXML=t,ie.makeViewBoxTransform=G,ie.parseSVG=J},MI8n:function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return g}),_.d(ie,"a",function(){return w}),_.d(ie,"e",function(){return p}),_.d(ie,"d",function(){return a}),_.d(ie,"c",function(){return f}),_.d(ie,"f",function(){return x});var Y=_("/cxE"),j=_("C/vA"),L=_("pmY6"),U=_("24hK"),S=function(){var b=function(m,O){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var u in r)r.hasOwnProperty(u)&&(i[u]=r[u])},b(m,O)};return function(m,O){b(m,O);function i(){this.constructor=m}m.prototype=O===null?Object.create(O):(i.prototype=O.prototype,new i)}}(),g;(function(b){b.None=function(){return L.a.None};function m(k){return function(I,F,V){F===void 0&&(F=null);var W=!1,G;return G=k(function(J){return W?void 0:(G?G.dispose():W=!0,I.call(F,J))},null,V),W&&G.dispose(),G}}b.once=m;function O(k,I){return E(function(F,V,W){return V===void 0&&(V=null),k(function(G){return F.call(V,I(G))},null,W)})}b.map=O;function i(k,I){return E(function(F,V,W){return V===void 0&&(V=null),k(function(G){I(G),F.call(V,G)},null,W)})}b.forEach=i;function r(k,I){return E(function(F,V,W){return V===void 0&&(V=null),k(function(G){return I(G)&&F.call(V,G)},null,W)})}b.filter=r;function u(k){return k}b.signal=u;function h(){for(var k=[],I=0;I1)&&ee.fire(ge),te=0},F)})},onLastListenerRemove:function(){G.dispose()}});return ee.event}b.debounce=t;function C(k){var I=new Date().getTime();return O(m(k),function(F){return new Date().getTime()-I})}b.stopwatch=C;function A(k){var I=!0,F;return r(k,function(V){var W=I||V!==F;return I=!1,F=V,W})}b.latch=A;function v(k,I,F){I===void 0&&(I=!1),F===void 0&&(F=[]);var V=F.slice(),W=k(function(X){V?V.push(X):J.fire(X)}),G=function(){V&&V.forEach(function(X){return J.fire(X)}),V=null},J=new w({onFirstListenerAdd:function(){W||(W=k(function(X){return J.fire(X)}))},onFirstListenerDidAdd:function(){V&&(I?setTimeout(G):G())},onLastListenerRemove:function(){W&&W.dispose(),W=null}});return J.event}b.buffer=v;var o=function(){function k(I){this.event=I}return k.prototype.map=function(I){return new k(O(this.event,I))},k.prototype.forEach=function(I){return new k(i(this.event,I))},k.prototype.filter=function(I){return new k(r(this.event,I))},k.prototype.reduce=function(I,F){return new k(y(this.event,I,F))},k.prototype.latch=function(){return new k(A(this.event))},k.prototype.debounce=function(I,F,V,W){return F===void 0&&(F=100),V===void 0&&(V=!1),new k(t(this.event,I,F,V,W))},k.prototype.on=function(I,F,V){return this.event(I,F,V)},k.prototype.once=function(I,F,V){return m(this.event)(I,F,V)},k}();function l(k){return new o(k)}b.chain=l;function c(k,I,F){F===void 0&&(F=function(X){return X});var V=function(){for(var X=[],te=0;te`,triples:"",explode:"[]{}"},L=Y.Pos;Y.defineOption("autoCloseBrackets",!1,function(m,O,i){i&&i!=Y.Init&&(m.removeKeyMap(S),m.state.closeBrackets=null),O&&(g(U(O,"pairs")),m.state.closeBrackets=O,m.addKeyMap(S))});function U(m,O){return O=="pairs"&&typeof m=="string"?m:typeof m=="object"&&m[O]!=null?m[O]:j[O]}var S={Backspace:w,Enter:p};function g(m){for(var O=0;O=0;u--){var b=r[u].head;m.replaceRange("",L(b.line,b.ch-1),L(b.line,b.ch+1),"+delete")}}function p(m){var O=d(m),i=O&&U(O,"explode");if(!i||m.getOption("disableInput"))return Y.Pass;for(var r=m.listSelections(),u=0;u0;return{anchor:new L(m.anchor.line,m.anchor.ch+(O?-1:1)),head:new L(m.head.line,m.head.ch+(O?1:-1))}}function f(m,O){var i=d(m);if(!i||m.getOption("disableInput"))return Y.Pass;var r=U(i,"pairs"),u=r.indexOf(O);if(u==-1)return Y.Pass;for(var h=U(i,"closeBefore"),b=U(i,"triples"),E=r.charAt(u+1)==O,t=m.listSelections(),C=u%2==0,A,v=0;v=0&&m.getRange(l,L(l.line,l.ch+3))==O+O+O?c="skipThree":c="skip";else if(E&&l.ch>1&&b.indexOf(O)>=0&&m.getRange(L(l.line,l.ch-2),l)==O+O){if(l.ch>2&&/\bstring/.test(m.getTokenTypeAt(L(l.line,l.ch-2))))return Y.Pass;c="addFour"}else if(E){var P=l.ch==0?" ":m.getRange(L(l.line,l.ch-1),l);if(!Y.isWordChar(M)&&P!=O&&!Y.isWordChar(P))c="both";else return Y.Pass}else if(C&&(M.length===0||/\s/.test(M)||h.indexOf(M)>-1))c="both";else return Y.Pass;if(!A)A=c;else if(A!=c)return Y.Pass}var R=u%2?r.charAt(u-1):O,k=u%2?O:r.charAt(u+1);m.operation(function(){if(A=="skip")m.execCommand("goCharRight");else if(A=="skipThree")for(var I=0;I<3;I++)m.execCommand("goCharRight");else if(A=="surround"){for(var F=m.getSelections(),I=0;I0)){dt.next=4;break}return y.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),dt.abrupt("return");case 4:return lt(!0),Xe={check_ids:X.actionTabs.selectArrs,group_ids:Ve},tn||(Xe.end_time=o()(Je.end_time).format("YYYY-MM-DD HH:mm")),Xe.group_ids=Ve.map(function(et){return et.course_group_id}),dt.next=10,Object(l.a)("/api/courses/".concat(ee.coursesId,"/exercises/end_exercise.json"),{method:"post",body:Xe});case 10:Oe=dt.sent,Oe.status===0&&(y.b.success("\u64CD\u4F5C\u6210\u529F"),Object(c.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),te({type:"exercise/setActionTabs",payload:{}}),X!=null&&(Ae=X.actionTabs)!==null&&Ae!==void 0&&Ae.cb?X==null||((ye=X.actionTabs)===null||ye===void 0)||ye.cb():te({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},X.actionTabs.params)})),lt(!1);case 13:case"end":return dt.stop()}},Qe)}));return function(){return wt.apply(this,arguments)}}(),Tt=function(){he(1),Ne([]),at([]),Qt(!0)};return A.a.createElement(j.a,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",visible:X.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:sn,width:680,confirmLoading:mt||ze,onCancel:function(){Tt(),te({type:"exercise/setActionTabs",payload:{}})}},A.a.createElement(U.a,{spinning:ze},fe&&A.a.createElement(h.a,{form:je},A.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},A.a.createElement("img",{style:{marginRight:5},src:k.a}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),A.a.createElement(d.a,{className:"mt20 mb10"},A.a.createElement("span",{className:"mr10"},A.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),A.a.createElement(f.a.Group,{value:tn,onChange:function(Qe){Qt(Qe.target.value),at([])}},A.a.createElement(f.a,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),A.a.createElement(f.a,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),A.a.createElement(h.a.Item,{name:"end_time",style:{marginTop:-3,visibility:tn?"hidden":"visible"}},A.a.createElement(p.a,{style:{width:170},getPopupContainer:function(Qe){return Qe.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(c.d)(),"HH:mm")},disabledDate:function(Qe){return Qe&&Qe0&&A.a.createElement(d.a,{style:{marginBottom:"10px"}},A.a.createElement("span",{className:"mr10"},A.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),A.a.createElement("div",null,fe.length>0&&A.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},A.a.createElement("span",{style:{flex:1}},A.a.createElement(g.a,{checked:Ve.length===fe.length,onChange:function(Qe){Ve.length===fe.length?at([]):at(fe)}},"\u5168\u9009")," "),A.a.createElement("span",{style:{width:16}}),A.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ve.length||0,"\u4E2A\u5206\u73ED")),A.a.createElement(I.a,{data:fe,selectedRowKeys:Ve,setSelectedRowKeys:at}))))))};ie.a=Object(P.a)(function(G){var J=G.exercise;return{exercise:J}})(W)},GABl:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GUcZ:function(Ye,ie,_){"use strict";var Y=_("fWQN"),j=_("mtLc"),L=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Q,$){return Q.__proto__=$,Q},Object.assign=Object.assign||function(Q){if(Q==null)throw new TypeError("Cannot convert undefined or null to object");for(var $=Object(Q),re=1;re ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","error",re),!Te.ENABLE_ERROR)return;console.error?console.error(re):console.warn?console.warn(re):console.log(re)}},{key:"i",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","info",re),!Te.ENABLE_INFO)return;console.info?console.info(re):console.log(re)}},{key:"w",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","warn",re),!Te.ENABLE_WARN)return;console.warn?console.warn(re):console.log(re)}},{key:"d",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","debug",re),!Te.ENABLE_DEBUG)return;console.debug?console.debug(re):console.log(re)}},{key:"v",value:function(Q,$){(!Q||Te.FORCE_GLOBAL_TAG)&&(Q=Te.GLOBAL_TAG);var re="[".concat(Q,"] > ").concat($);if(Te.ENABLE_CALLBACK&&Te.emitter.emit("log","verbose",re),!Te.ENABLE_VERBOSE)return;console.log(re)}}]),Te}();s.GLOBAL_TAG="flv.js",s.FORCE_GLOBAL_TAG=!1,s.ENABLE_ERROR=!0,s.ENABLE_INFO=!0,s.ENABLE_WARN=!0,s.ENABLE_DEBUG=!0,s.ENABLE_VERBOSE=!0,s.ENABLE_CALLBACK=!1,s.emitter=new g.a;var d=s,w=function(){function Te(){Object(Y.a)(this,Te),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(j.a)(Te,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Q){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Q,this._totalBytes+=Q):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Q,this._totalBytes+=Q):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Q,this._totalBytes+=Q,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Q=(this._now()-this._lastCheckpoint)/1e3;return Q==0&&(Q=1),this._intervalBytes/Q/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var Q=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Q/1024}}]),Te}(),p=w,a=_("yKVA"),f=_("879j"),x=function(){function Te(ve){Object(Y.a)(this,Te),this._message=ve}return Object(j.a)(Te,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Te}(),y=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($){return Object(Y.a)(this,Q),ve.call(this,$)}return Object(j.a)(Q,[{key:"name",get:function(){return"IllegalStateException"}}]),Q}(x),m=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($){return Object(Y.a)(this,Q),ve.call(this,$)}return Object(j.a)(Q,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Q}(x),O=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($){return Object(Y.a)(this,Q),ve.call(this,$)}return Object(j.a)(Q,[{key:"name",get:function(){return"NotImplementedException"}}]),Q}(x),i={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},r={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},u=function(){function Te(ve){Object(Y.a)(this,Te),this._type=ve||"undefined",this._status=i.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(j.a)(Te,[{key:"destroy",value:function(){this._status=i.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===i.kConnecting||this._status===i.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(Q){this._onContentLengthKnown=Q}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Q){this._onURLRedirect=Q}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Q){this._onDataArrival=Q}},{key:"onError",get:function(){return this._onError},set:function(Q){this._onError=Q}},{key:"onComplete",get:function(){return this._onComplete},set:function(Q){this._onComplete=Q}},{key:"open",value:function(Q,$){throw new O("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new O("Unimplemented abstract function!")}}]),Te}(),h=_("oZsa");function b(Te,ve){for(;!Object.prototype.hasOwnProperty.call(Te,ve)&&!(Te=Object(h.a)(Te),Te===null););return Te}function E(Te,ve,Q){return typeof Reflect!="undefined"&&Reflect.get?E=Reflect.get:E=function(re,de,Ue){var it=b(re,de);if(!it)return;var Mt=Object.getOwnPropertyDescriptor(it,de);return Mt.get?Mt.get.call(Ue):Mt.value},E(Te,ve,Q||Te)}var t={};function C(){var Te=self.navigator.userAgent.toLowerCase(),ve=/(edge)\/([\w.]+)/.exec(Te)||/(opr)[\/]([\w.]+)/.exec(Te)||/(chrome)[ \/]([\w.]+)/.exec(Te)||/(iemobile)[\/]([\w.]+)/.exec(Te)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Te)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Te)||/(webkit)[ \/]([\w.]+)/.exec(Te)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Te)||/(msie) ([\w.]+)/.exec(Te)||Te.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Te)||Te.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Te)||[],Q=/(ipad)/.exec(Te)||/(ipod)/.exec(Te)||/(windows phone)/.exec(Te)||/(iphone)/.exec(Te)||/(kindle)/.exec(Te)||/(android)/.exec(Te)||/(windows)/.exec(Te)||/(mac)/.exec(Te)||/(linux)/.exec(Te)||/(cros)/.exec(Te)||[],$={browser:ve[5]||ve[3]||ve[1]||"",version:ve[2]||ve[4]||"0",majorVersion:ve[4]||ve[2]||"0",platform:Q[0]||""},re={};if($.browser){re[$.browser]=!0;var de=$.majorVersion.split(".");re.version={major:parseInt($.majorVersion,10),string:$.version},de.length>1&&(re.version.minor=parseInt(de[1],10)),de.length>2&&(re.version.build=parseInt(de[2],10))}if($.platform&&(re[$.platform]=!0),(re.chrome||re.opr||re.safari)&&(re.webkit=!0),re.rv||re.iemobile){re.rv&&delete re.rv;var Ue="msie";$.browser=Ue,re[Ue]=!0}if(re.edge){delete re.edge;var it="msedge";$.browser=it,re[it]=!0}if(re.opr){var Mt="opera";$.browser=Mt,re[Mt]=!0}if(re.safari&&re.android){var Ln="android";$.browser=Ln,re[Ln]=!0}re.name=$.browser,re.platform=$.platform;for(var kn in t)t.hasOwnProperty(kn)&&delete t[kn];Object.assign(t,re)}C();var A=t,v=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($,re){var de;return Object(Y.a)(this,Q),de=ve.call(this,"fetch-stream-loader"),de.TAG="FetchStreamLoader",de._seekHandler=$,de._config=re,de._needStash=!0,de._requestAbort=!1,de._contentLength=null,de._receivedLength=0,de}return Object(j.a)(Q,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),E(Object(h.a)(Q.prototype),"destroy",this).call(this)}},{key:"open",value:function(re,de){var Ue=this;this._dataSource=re,this._range=de;var it=re.url;this._config.reuseRedirectedURL&&re.redirectedURL!=null&&(it=re.redirectedURL);var Mt=this._seekHandler.getConfig(it,de),Ln=new self.Headers;if(typeof Mt.headers=="object"){var kn=Mt.headers;for(var St in kn)kn.hasOwnProperty(St)&&Ln.append(St,kn[St])}var an={method:"GET",headers:Ln,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Pn in this._config.headers)Ln.append(Pn,this._config.headers[Pn]);re.cors===!1&&(an.mode="same-origin"),re.withCredentials&&(an.credentials="include"),re.referrerPolicy&&(an.referrerPolicy=re.referrerPolicy),this._status=i.kConnecting,self.fetch(Mt.url,an).then(function(dn){if(Ue._requestAbort){Ue._requestAbort=!1,Ue._status=i.kIdle;return}if(dn.ok&&dn.status>=200&&dn.status<=299){if(dn.url!==Mt.url&&Ue._onURLRedirect){var jn=Ue._seekHandler.removeURLParameters(dn.url);Ue._onURLRedirect(jn)}var Bn=dn.headers.get("Content-Length");return Bn!=null&&(Ue._contentLength=parseInt(Bn),Ue._contentLength!==0&&(Ue._onContentLengthKnown&&Ue._onContentLengthKnown(Ue._contentLength))),Ue._pump.call(Ue,dn.body.getReader())}else if(Ue._status=i.kError,Ue._onError)Ue._onError(r.HTTP_STATUS_CODE_INVALID,{code:dn.status,msg:dn.statusText});else throw new x("FetchStreamLoader: Http code invalid, "+dn.status+" "+dn.statusText)}).catch(function(dn){if(Ue._status=i.kError,Ue._onError)Ue._onError(r.EXCEPTION,{code:-1,msg:dn.message});else throw dn})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(re){var de=this;return re.read().then(function(Ue){if(Ue.done)if(de._contentLength!==null&&de._receivedLength=15048,de=A.msedge?re:!0;return self.fetch&&self.ReadableStream&&de}catch(Ue){return!1}}}]),Q}(u),o=v,l=function(Te){Object(a.a)(Q,Te);var ve=Object(f.a)(Q);function Q($,re){var de;return Object(Y.a)(this,Q),de=ve.call(this,"xhr-moz-chunked-loader"),de.TAG="MozChunkedLoader",de._seekHandler=$,de._config=re,de._needStash=!0,de._xhr=null,de._requestAbort=!1,de._contentLength=null,de._receivedLength=0,de}return Object(j.a)(Q,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),E(Object(h.a)(Q.prototype),"destroy",this).call(this)}},{key:"open",value:function(re,de){this._dataSource=re,this._range=de;var Ue=re.url;this._config.reuseRedirectedURL&&re.redirectedURL!=null&&(Ue=re.redirectedURL);var it=this._seekHandler.getConfig(Ue,de);this._requestURL=it.url;var Mt=this._xhr=new XMLHttpRequest;if(Mt.open("GET",it.url,!0),Mt.responseType="moz-chunked-arraybuffer",Mt.onreadystatechange=this._onReadyStateChange.bind(this),Mt.onprogress=this._onProgress.bind(this),Mt.onloadend=this._onLoadEnd.bind(this),Mt.onerror=this._onXhrError.bind(this),re.withCredentials&&(Mt.withCredentials=!0),typeof it.headers=="object"){var Ln=it.headers;for(var kn in Ln)Ln.hasOwnProperty(kn)&&Mt.setRequestHeader(kn,Ln[kn])}if(typeof this._config.headers=="object"){var St=this._config.headers;for(var an in St)St.hasOwnProperty(an)&&Mt.setRequestHeader(an,St[an])}this._status=i.kConnecting,Mt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=i.kComplete}},{key:"_onReadyStateChange",value:function(re){var de=re.target;if(de.readyState===2){if(de.responseURL!=null&&de.responseURL!==this._requestURL&&this._onURLRedirect){var Ue=this._seekHandler.removeURLParameters(de.responseURL);this._onURLRedirect(Ue)}if(de.status!==0&&(de.status<200||de.status>299))if(this._status=i.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:de.status,msg:de.statusText});else throw new x("MozChunkedLoader: Http code invalid, "+de.status+" "+de.statusText);else this._status=i.kBuffering}}},{key:"_onProgress",value:function(re){if(this._status===i.kError)return;this._contentLength===null&&(re.total!==null&&re.total!==0&&(this._contentLength=re.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var de=re.target.response,Ue=this._range.from+this._receivedLength;this._receivedLength+=de.byteLength,this._onDataArrival&&this._onDataArrival(de,Ue,this._receivedLength)}},{key:"_onLoadEnd",value:function(re){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===i.kError)return;this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(re){this._status=i.kError;var de=0,Ue=null;if(this._contentLength&&re.loaded=200&&de.status<=299){if(this._status=i.kBuffering,de.responseURL!=null){var Ue=this._seekHandler.removeURLParameters(de.responseURL);de.responseURL!==this._currentRequestURL&&Ue!==this._currentRedirectedURL&&(this._currentRedirectedURL=Ue,this._onURLRedirect&&this._onURLRedirect(Ue))}var it=de.getResponseHeader("Content-Length");if(it!=null&&this._contentLength==null){var Mt=parseInt(it);Mt>0&&(this._contentLength=Mt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=i.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:de.status,msg:de.statusText});else throw new x("MSStreamLoader: Http code invalid, "+de.status+" "+de.statusText);else if(de.readyState===3&&(de.status>=200&&de.status<=299)){this._status=i.kBuffering;var Ln=de.response;this._reader.readAsArrayBuffer(Ln)}}},{key:"_xhrOnError",value:function(re){this._status=i.kError;var de=r.EXCEPTION,Ue={code:-1,msg:re.constructor.name+" "+re.type};if(this._onError)this._onError(de,Ue);else throw new x(Ue.msg)}},{key:"_msrOnProgress",value:function(re){var de=re.target,Ue=de.result;if(Ue==null){this._doReconnectIfNeeded();return}var it=Ue.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Ue.byteLength;var Mt=this._totalRange.from+this._receivedLength;this._receivedLength+=it.byteLength,this._onDataArrival&&this._onDataArrival(it,Mt,this._receivedLength),Ue.byteLength>=this._bufferLimit&&(d.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Mt+it.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Ue=this._range.from+this._contentLength-1)),this._currentRequestRange={from:de,to:Ue},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(re,de){this._lastTimeLoaded=0;var Ue=re.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Ue=this._currentRedirectedURL:re.redirectedURL!=null&&(Ue=re.redirectedURL));var it=this._seekHandler.getConfig(Ue,de);this._currentRequestURL=it.url;var Mt=this._xhr=new XMLHttpRequest;if(Mt.open("GET",it.url,!0),Mt.responseType="arraybuffer",Mt.onreadystatechange=this._onReadyStateChange.bind(this),Mt.onprogress=this._onProgress.bind(this),Mt.onload=this._onLoad.bind(this),Mt.onerror=this._onXhrError.bind(this),re.withCredentials&&(Mt.withCredentials=!0),typeof it.headers=="object"){var Ln=it.headers;for(var kn in Ln)Ln.hasOwnProperty(kn)&&Mt.setRequestHeader(kn,Ln[kn])}if(typeof this._config.headers=="object"){var St=this._config.headers;for(var an in St)St.hasOwnProperty(an)&&Mt.setRequestHeader(an,St[an])}Mt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=i.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(re){var de=re.target;if(de.readyState===2){if(de.responseURL!=null){var Ue=this._seekHandler.removeURLParameters(de.responseURL);de.responseURL!==this._currentRequestURL&&Ue!==this._currentRedirectedURL&&(this._currentRedirectedURL=Ue,this._onURLRedirect&&this._onURLRedirect(Ue))}if(de.status>=200&&de.status<=299){if(this._waitForTotalLength)return;this._status=i.kBuffering}else if(this._status=i.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:de.status,msg:de.statusText});else throw new x("RangeLoader: Http code invalid, "+de.status+" "+de.statusText)}}},{key:"_onProgress",value:function(re){if(this._status===i.kError)return;if(this._contentLength===null){var de=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,de=!0;var Ue=re.total;this._internalAbort(),Ue!=null&Ue!==0&&(this._totalLength=Ue)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,de){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var it=re.loaded-this._lastTimeLoaded;this._lastTimeLoaded=re.loaded,this._speedSampler.addBytes(it)}},{key:"_normalizeSpeed",value:function(re){var de=this._chunkSizeKBList,Ue=de.length-1,it=0,Mt=0,Ln=Ue;if(re=de[it]&&re=3&&(de=this._speedSampler.currentKBps)),de!==0){var Ue=this._normalizeSpeed(de);this._currentSpeedNormalized!==Ue&&(this._currentSpeedNormalized=Ue,this._currentChunkSizeKB=Ue)}var it=re.target.response,Mt=this._range.from+this._receivedLength;this._receivedLength+=it.byteLength;var Ln=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var it=re.split("&"),Mt=0;Mt0;Ln[0]!==this._startName&&Ln[0]!==this._endName&&(kn&&(Ue+="&"),Ue+=it[Mt])}return Ue.length===0?$:$+"?"+Ue}}]),Te}(),J=G,X=function(){function Te(ve,Q,$){Object(Y.a)(this,Te),this.TAG="IOController",this._config=Q,this._extraData=$,this._stashInitialSize=1024*384,Q.stashInitialSize!=null&&Q.stashInitialSize>0&&(this._stashInitialSize=Q.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,Q.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ve,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ve.url),this._refTotalLength=ve.filesize?ve.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new p,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(j.a)(Te,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(Q){this._extraData=Q}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Q){this._onDataArrival=Q}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Q){this._onSeeked=Q}},{key:"onError",get:function(){return this._onError},set:function(Q){this._onError=Q}},{key:"onComplete",get:function(){return this._onComplete},set:function(Q){this._onComplete=Q}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Q){this._onRedirect=Q}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Q){this._onRecoveredEarlyEof=Q}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===k?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Q=this._config;if(Q.seekType==="range")this._seekHandler=new W(this._config.rangeLoadZeroStart);else if(Q.seekType==="param"){var $=Q.seekParamStart||"bstart",re=Q.seekParamEnd||"bend";this._seekHandler=new J($,re)}else if(Q.seekType==="custom"){if(typeof Q.customSeekHandler!="function")throw new m("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Q.customSeekHandler}else throw new m("Invalid seekType in config: ".concat(Q.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=F;else if(o.isSupported())this._loaderClass=o;else if(c.isSupported())this._loaderClass=c;else if(k.isSupported())this._loaderClass=k;else throw new x("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(Q){this._currentRange={from:0,to:-1},Q&&(this._currentRange.from=Q),this._speedSampler.reset(),Q||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var Q=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Q,!0)}}},{key:"seek",value:function(Q){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Q,!0)}},{key:"_internalSeek",value:function(Q,$){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer($),this._loader.destroy(),this._loader=null;var re={from:Q,to:-1};this._currentRange={from:re.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,re),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Q){if(!Q||typeof Q!="string"||Q.length===0)throw new m("Url must be a non-empty string!");this._dataSource.url=Q}},{key:"_expandBuffer",value:function(Q){for(var $=this._stashSize;$+1024*1024*10){var de=new Uint8Array(this._stashBuffer,0,this._stashUsed),Ue=new Uint8Array(re,0,$);Ue.set(de,0)}this._stashBuffer=re,this._bufferSize=$}},{key:"_normalizeSpeed",value:function(Q){var $=this._speedNormalizeList,re=$.length-1,de=0,Ue=0,it=re;if(Q<$[0])return $[0];for(;Ue<=it;){if(de=Ue+Math.floor((it-Ue)/2),de===re||Q>=$[de]&&Q<$[de+1])return $[de];$[de]=512&&Q<=1024?$=Math.floor(Q*1.5):$=Q*2,$>8192&&($=8192);var re=$*1024+1024*1024*1;this._bufferSize0){var jn=this._stashBuffer.slice(0,this._stashUsed),Bn=this._dispatchChunks(jn,this._stashByteStart);if(Bn0){var ne=new Uint8Array(jn,Bn);dn.set(ne,0),this._stashUsed=ne.byteLength,this._stashByteStart+=Bn}}else this._stashUsed=0,this._stashByteStart+=Bn;this._stashUsed+Q.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Q.byteLength),dn=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dn.set(new Uint8Array(Q),this._stashUsed),this._stashUsed+=Q.byteLength}else{var B=this._dispatchChunks(Q,$);if(Bthis._bufferSize&&(this._expandBuffer(H),dn=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dn.set(new Uint8Array(Q,B),0),this._stashUsed+=H,this._stashByteStart=$+B}}}else if(this._stashUsed===0){var it=this._dispatchChunks(Q,$);if(itthis._bufferSize&&this._expandBuffer(Mt);var Ln=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ln.set(new Uint8Array(Q,it),0),this._stashUsed+=Mt,this._stashByteStart=$+it}}else{this._stashUsed+Q.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Q.byteLength);var kn=new Uint8Array(this._stashBuffer,0,this._bufferSize);kn.set(new Uint8Array(Q),this._stashUsed),this._stashUsed+=Q.byteLength;var St=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(St0){var an=new Uint8Array(this._stashBuffer,St);kn.set(an,0)}this._stashUsed-=St,this._stashByteStart+=St}}},{key:"_flushStashBuffer",value:function(Q){if(this._stashUsed>0){var $=this._stashBuffer.slice(0,this._stashUsed),re=this._dispatchChunks($,this._stashByteStart),de=$.byteLength-re;if(re<$.byteLength)if(Q)d.w(this.TAG,"".concat(de," bytes unconsumed data remain when flush buffer, dropped"));else{if(re>0){var Ue=new Uint8Array(this._stashBuffer,0,this._bufferSize),it=new Uint8Array($,re);Ue.set(it,0),this._stashUsed=it.byteLength,this._stashByteStart+=re}return 0}return this._stashUsed=0,this._stashByteStart=0,de}return 0}},{key:"_onLoaderComplete",value:function(Q,$){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Q,$){d.e(this.TAG,"Loader error, code = ".concat($.code,", msg = ").concat($.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Q=r.UNRECOVERABLE_EARLY_EOF);switch(Q){case r.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var re=this._currentRange.to+1;re0){var $=Te.getConfig();Q.emit("change",$)}}},{key:"registerListener",value:function(Q){Te.emitter.addListener("change",Q)}},{key:"removeListener",value:function(Q){Te.emitter.removeListener("change",Q)}},{key:"addLogListener",value:function(Q){d.emitter.addListener("log",Q),d.emitter.listenerCount("log")>0&&(d.ENABLE_CALLBACK=!0,Te._notifyChange())}},{key:"removeLogListener",value:function(Q){d.emitter.removeListener("log",Q),d.emitter.listenerCount("log")===0&&(d.ENABLE_CALLBACK=!1,Te._notifyChange())}}]),Te}();Ge.emitter=new g.a;var he=Ge,ce=function(){function Te(){Object(Y.a)(this,Te),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(j.a)(Te,[{key:"isComplete",value:function(){var Q=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,$=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&Q&&$}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Q){if(this.keyframesIndex==null)return null;var $=this.keyframesIndex,re=this._search($.times,Q);return{index:re,milliseconds:$.times[re],fileposition:$.filepositions[re]}}},{key:"_search",value:function(Q,$){var re=0,de=Q.length-1,Ue=0,it=0,Mt=de;for($=Q[Ue]&&$=128){ve.push(String.fromCharCode(de&65535)),$+=2;continue}}}else if(Q[$]<240){if(fe(Q,$,2)){var Ue=(Q[$]&15)<<12|(Q[$+1]&63)<<6|Q[$+2]&63;if(Ue>=2048&&(Ue&63488)!==55296){ve.push(String.fromCharCode(Ue&65535)),$+=3;continue}}}else if(Q[$]<248&&fe(Q,$,3)){var it=(Q[$]&7)<<18|(Q[$+1]&63)<<12|(Q[$+2]&63)<<6|Q[$+3]&63;if(it>65536&&it<1114112){it-=65536,ve.push(String.fromCharCode(it>>>10|55296)),ve.push(String.fromCharCode(it&1023|56320)),$+=4;continue}}}ve.push(String.fromCharCode(65533)),++$}return ve.join("")}var Ce=Ne,xe=function(){var Te=new ArrayBuffer(2);return new DataView(Te).setInt16(0,256,!0),new Int16Array(Te)[0]===256}(),ze=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"parseScriptData",value:function(Q,$,re){var de={};try{var Ue=Te.parseValue(Q,$,re),it=Te.parseValue(Q,$+Ue.size,re-Ue.size);de[Ue.data]=it.data}catch(Mt){d.e("AMF",Mt.toString())}return de}},{key:"parseObject",value:function(Q,$,re){if(re<3)throw new y("Data not enough when parse ScriptDataObject");var de=Te.parseString(Q,$,re),Ue=Te.parseValue(Q,$+de.size,re-de.size),it=Ue.objectEnd;return{data:{name:de.data,value:Ue.data},size:de.size+Ue.size,objectEnd:it}}},{key:"parseVariable",value:function(Q,$,re){return Te.parseObject(Q,$,re)}},{key:"parseString",value:function(Q,$,re){if(re<2)throw new y("Data not enough when parse String");var de=new DataView(Q,$,re),Ue=de.getUint16(0,!xe),it;return Ue>0?it=Ce(new Uint8Array(Q,$+2,Ue)):it="",{data:it,size:2+Ue}}},{key:"parseLongString",value:function(Q,$,re){if(re<4)throw new y("Data not enough when parse LongString");var de=new DataView(Q,$,re),Ue=de.getUint32(0,!xe),it;return Ue>0?it=Ce(new Uint8Array(Q,$+4,Ue)):it="",{data:it,size:4+Ue}}},{key:"parseDate",value:function(Q,$,re){if(re<10)throw new y("Data size invalid when parse Date");var de=new DataView(Q,$,re),Ue=de.getFloat64(0,!xe),it=de.getInt16(8,!xe);return Ue+=it*60*1e3,{data:new Date(Ue),size:8+2}}},{key:"parseValue",value:function(Q,$,re){if(re<1)throw new y("Data not enough when parse Value");var de=new DataView(Q,$,re),Ue=1,it=de.getUint8(0),Mt,Ln=!1;try{switch(it){case 0:Mt=de.getFloat64(1,!xe),Ue+=8;break;case 1:{var kn=de.getUint8(1);Mt=!!kn,Ue+=1;break}case 2:{var St=Te.parseString(Q,$+1,re-1);Mt=St.data,Ue+=St.size;break}case 3:{Mt={};var an=0;for((de.getUint32(re-4,!xe)&16777215)===9&&(an=3);Ue32)throw new m("ExpGolomb: readBits() bits exceeded max 32bits!");if(Q<=this._current_word_bits_left){var $=this._current_word>>>32-Q;return this._current_word<<=Q,this._current_word_bits_left-=Q,$}var re=this._current_word_bits_left?this._current_word:0;re=re>>>32-this._current_word_bits_left;var de=Q-this._current_word_bits_left;this._fillCurrentWord();var Ue=Math.min(de,this._current_word_bits_left),it=this._current_word>>>32-Ue;return this._current_word<<=Ue,this._current_word_bits_left-=Ue,re=re<>>Q)!==0)return this._current_word<<=Q,this._current_word_bits_left-=Q,Q;return this._fillCurrentWord(),Q+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Q=this._skipLeadingZero();return this.readBits(Q+1)-1}},{key:"readSEG",value:function(){var Q=this.readUEG();return Q&1?Q+1>>>1:-1*(Q>>>1)}}]),Te}(),Pe=Fe,Ve=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"_ebsp2rbsp",value:function(Q){for(var $=Q,re=$.byteLength,de=new Uint8Array(re),Ue=0,it=0;it=2&&($[it]===3&&$[it-1]===0&&$[it-2]===0))continue;de[Ue]=$[it],Ue++}return new Uint8Array(de.buffer,0,Ue)}},{key:"parseSPS",value:function(Q){var $=Te._ebsp2rbsp(Q),re=new Pe($);re.readByte();var de=re.readByte();re.readByte();var Ue=re.readByte();re.readUEG();var it=Te.getProfileString(de),Mt=Te.getLevelString(Ue),Ln=1,kn=420,St=[0,420,422,444],an=8;if((de===100||de===110||de===122||de===244||de===44||de===83||de===86||de===118||de===128||de===138||de===144)&&(Ln=re.readUEG(),Ln===3&&re.readBits(1),Ln<=3&&(kn=St[Ln]),an=re.readUEG()+8,re.readUEG(),re.readBits(1),re.readBool()))for(var Pn=Ln!==3?8:12,dn=0;dn0&&jr<16?(Vt=ua[jr-1],Et=Yr[jr-1]):jr===255&&(Vt=re.readByte()<<8|re.readByte(),Et=re.readByte()<<8|re.readByte())}if(re.readBool()&&re.readBool(),re.readBool()&&(re.readBits(4),re.readBool()&&re.readBits(24)),re.readBool()&&(re.readUEG(),re.readUEG()),re.readBool()){var Tr=re.readBits(32),Jn=re.readBits(32);Fn=re.readBool(),Vn=Jn,Kn=Tr*2,Jt=Vn/Kn}}var hr=1;(Vt!==1||Et!==1)&&(hr=Vt/Et);var Sn=0,On=0;if(Ln===0)Sn=1,On=2-ue;else{var or=Ln===3?1:2,Dn=Ln===1?2:1;Sn=or,On=Dn*(2-ue)}var pr=(H+1)*16,Gn=(2-ue)*((ae+1)*16);pr-=(oe+ht)*Sn,Gn-=(vn+Tn)*On;var se=Math.ceil(pr*hr);return re.destroy(),re=null,{profile_string:it,level_string:Mt,bit_depth:an,ref_frames:B,chroma_format:kn,chroma_format_string:Te.getChromaFormatString(kn),frame_rate:{fixed:Fn,fps:Jt,fps_den:Kn,fps_num:Vn},sar_ratio:{width:Vt,height:Et},codec_size:{width:pr,height:Gn},present_size:{width:se,height:Gn}}}},{key:"_skipScalingList",value:function(Q,$){for(var re=8,de=8,Ue=0,it=0;it<$;it++)de!==0&&(Ue=Q.readSEG(),de=(re+Ue+256)%256),re=de===0?re:de}},{key:"getProfileString",value:function(Q){switch(Q){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(Q){return(Q/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Q){switch(Q){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Te}(),at=Ve,At={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Rt=At;function tn(Te){return Te>>>8&255|(Te&255)<<8}function Qt(Te){return(Te&4278190080)>>>24|(Te&16711680)>>>8|(Te&65280)<<8|(Te&255)<<24}function Cn(Te,ve){return Te[ve]<<24|Te[ve+1]<<16|Te[ve+2]<<8|Te[ve+3]}var Un=function(){function Te(ve,Q){Object(Y.a)(this,Te),this.TAG="FLVDemuxer",this._config=Q,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ve.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ve.hasAudioTrack,this._hasVideo=ve.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ee,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var $=new ArrayBuffer(2);return new DataView($).setInt16(0,256,!0),new Int16Array($)[0]===256}()}return Object(j.a)(Te,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(Q){return Q.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Q){this._onTrackMetadata=Q}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Q){this._onMediaInfo=Q}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Q){this._onMetaDataArrived=Q}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Q){this._onScriptDataArrived=Q}},{key:"onError",get:function(){return this._onError},set:function(Q){this._onError=Q}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Q){this._onDataAvailable=Q}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Q){this._timestampBase=Q}},{key:"overridedDuration",get:function(){return this._duration},set:function(Q){this._durationOverrided=!0,this._duration=Q,this._mediaInfo.duration=Q}},{key:"overridedHasAudio",set:function(Q){this._hasAudioFlagOverrided=!0,this._hasAudio=Q,this._mediaInfo.hasAudio=Q}},{key:"overridedHasVideo",set:function(Q){this._hasVideoFlagOverrided=!0,this._hasVideo=Q,this._mediaInfo.hasVideo=Q}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ee}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(Q,$){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new y("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var re=0,de=this._littleEndian;if($===0)if(Q.byteLength>13){var Ue=Te.probe(Q);re=Ue.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,$+re!==this._dataOffset&&d.w(this.TAG,"First time parsing but chunk byteStart invalid!");var it=new DataView(Q,re),Mt=it.getUint32(0,!de);Mt!==0&&d.w(this.TAG,"PrevTagSize0 !== 0 !!!"),re+=4}for(;reQ.byteLength)break;var kn=Ln.getUint8(0),St=Ln.getUint32(0,!de)&16777215;if(re+11+St+4>Q.byteLength)break;if(kn!==8&&kn!==9&&kn!==18){d.w(this.TAG,"Unsupported tag type ".concat(kn,", skipped")),re+=11+St+4;continue}var an=Ln.getUint8(4),Pn=Ln.getUint8(5),dn=Ln.getUint8(6),jn=Ln.getUint8(7),Bn=dn|Pn<<8|an<<16|jn<<24,ne=Ln.getUint32(7,!de)&16777215;ne!==0&&d.w(this.TAG,"Meet tag which has StreamID != 0!");var B=re+11;switch(kn){case 8:this._parseAudioData(Q,B,St,Bn);break;case 9:this._parseVideoData(Q,B,St,Bn,$+re);break;case 18:this._parseScriptData(Q,B,St);break}var H=Ln.getUint32(11+St,!de);H!==11+St&&d.w(this.TAG,"Invalid PrevTagSize ".concat(H)),re+=11+St+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),re}},{key:"_parseScriptData",value:function(Q,$,re){var de=Le.parseScriptData(Q,$,re);if(de.hasOwnProperty("onMetaData")){if(de.onMetaData==null||typeof de.onMetaData!="object"){d.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.w(this.TAG,"Found another onMetaData tag!"),this._metadata=de;var Ue=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Ue)),typeof Ue.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=Ue.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof Ue.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=Ue.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof Ue.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Ue.audiodatarate),typeof Ue.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Ue.videodatarate),typeof Ue.width=="number"&&(this._mediaInfo.width=Ue.width),typeof Ue.height=="number"&&(this._mediaInfo.height=Ue.height),typeof Ue.duration=="number"){if(!this._durationOverrided){var it=Math.floor(Ue.duration*this._timescale);this._duration=it,this._mediaInfo.duration=it}}else this._mediaInfo.duration=0;if(typeof Ue.framerate=="number"){var Mt=Math.floor(Ue.framerate*1e3);if(Mt>0){var Ln=Mt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Ln,this._referenceFrameRate.fps_num=Mt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Ln}}if(typeof Ue.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var kn=Ue.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(kn),Ue.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Ue,d.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(de).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},de)))}},{key:"_parseKeyframesIndex",value:function(Q){for(var $=[],re=[],de=1;de>>4;if(Ln!==2&&Ln!==10){this._onError(Rt.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ln);return}var kn=0,St=(Mt&12)>>>2;if(St>=0&&St<=4)kn=this._flvSoundRateTable[St];else{this._onError(Rt.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+St);return}var an=(Mt&2)>>>1,Pn=Mt&1,dn=this._audioMetadata,jn=this._audioTrack;if(dn||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),dn=this._audioMetadata={},dn.type="audio",dn.id=jn.id,dn.timescale=this._timescale,dn.duration=this._duration,dn.audioSampleRate=kn,dn.channelCount=Pn===0?1:2),Ln===10){var Bn=this._parseAACAudioData(Q,$+1,re-1);if(Bn==null)return;if(Bn.packetType===0){dn.config&&d.w(this.TAG,"Found another AudioSpecificConfig!");var ne=Bn.data;dn.audioSampleRate=ne.samplingRate,dn.channelCount=ne.channelCount,dn.codec=ne.codec,dn.originalCodec=ne.originalCodec,dn.config=ne.config,dn.refSampleDuration=1024/dn.audioSampleRate*dn.timescale,d.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",dn);var B=this._mediaInfo;B.audioCodec=dn.originalCodec,B.audioSampleRate=dn.audioSampleRate,B.audioChannelCount=dn.channelCount,B.hasVideo?B.videoCodec!=null&&(B.mimeType='video/x-flv; codecs="'+B.videoCodec+","+B.audioCodec+'"'):B.mimeType='video/x-flv; codecs="'+B.audioCodec+'"',B.isComplete()&&this._onMediaInfo(B)}else if(Bn.packetType===1){var H=this._timestampBase+de,ae={unit:Bn.data,length:Bn.data.byteLength,dts:H,pts:H};jn.samples.push(ae),jn.length+=Bn.data.length}else d.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Bn.packetType))}else if(Ln===2){if(!dn.codec){var ue=this._parseMP3AudioData(Q,$+1,re-1,!0);if(ue==null)return;dn.audioSampleRate=ue.samplingRate,dn.channelCount=ue.channelCount,dn.codec=ue.codec,dn.originalCodec=ue.originalCodec,dn.refSampleDuration=1152/dn.audioSampleRate*dn.timescale,d.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",dn);var oe=this._mediaInfo;oe.audioCodec=dn.codec,oe.audioSampleRate=dn.audioSampleRate,oe.audioChannelCount=dn.channelCount,oe.audioDataRate=ue.bitRate,oe.hasVideo?oe.videoCodec!=null&&(oe.mimeType='video/x-flv; codecs="'+oe.videoCodec+","+oe.audioCodec+'"'):oe.mimeType='video/x-flv; codecs="'+oe.audioCodec+'"',oe.isComplete()&&this._onMediaInfo(oe)}var ht=this._parseMP3AudioData(Q,$+1,re-1,!1);if(ht==null)return;var vn=this._timestampBase+de,Tn={unit:ht,length:ht.byteLength,dts:vn,pts:vn};jn.samples.push(Tn),jn.length+=ht.length}}},{key:"_parseAACAudioData",value:function(Q,$,re){if(re<=1){d.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var de={},Ue=new Uint8Array(Q,$,re);return de.packetType=Ue[0],Ue[0]===0?de.data=this._parseAACAudioSpecificConfig(Q,$+1,re-1):de.data=Ue.subarray(1),de}},{key:"_parseAACAudioSpecificConfig",value:function(Q,$,re){var de=new Uint8Array(Q,$,re),Ue=null,it=0,Mt=0,Ln=null,kn=0,St=null;if(it=Mt=de[0]>>>3,kn=(de[0]&7)<<1|de[1]>>>7,kn<0||kn>=this._mpegSamplingRates.length){this._onError(Rt.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var an=this._mpegSamplingRates[kn],Pn=(de[1]&120)>>>3;if(Pn<0||Pn>=8){this._onError(Rt.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}it===5&&(St=(de[1]&7)<<1|de[2]>>>7,Ln=(de[2]&124)>>>2);var dn=self.navigator.userAgent.toLowerCase();return dn.indexOf("firefox")!==-1?kn>=6?(it=5,Ue=new Array(4),St=kn-3):(it=2,Ue=new Array(2),St=kn):dn.indexOf("android")!==-1?(it=2,Ue=new Array(2),St=kn):(it=5,St=kn,Ue=new Array(4),kn>=6?St=kn-3:Pn===1&&(it=2,Ue=new Array(2),St=kn)),Ue[0]=it<<3,Ue[0]|=(kn&15)>>>1,Ue[1]=(kn&15)<<7,Ue[1]|=(Pn&15)<<3,it===5&&(Ue[1]|=(St&15)>>>1,Ue[2]=(St&1)<<7,Ue[2]|=2<<2,Ue[3]=0),{config:Ue,samplingRate:an,channelCount:Pn,codec:"mp4a.40."+it,originalCodec:"mp4a.40."+Mt}}},{key:"_parseMP3AudioData",value:function(Q,$,re,de){if(re<4){d.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var Ue=this._littleEndian,it=new Uint8Array(Q,$,re),Mt=null;if(de){if(it[0]!==255)return;var Ln=it[1]>>>3&3,kn=(it[1]&6)>>1,St=(it[2]&240)>>>4,an=(it[2]&12)>>>2,Pn=it[3]>>>6&3,dn=Pn!==3?2:1,jn=0,Bn=0,ne=34,B="mp3";switch(Ln){case 0:jn=this._mpegAudioV25SampleRateTable[an];break;case 2:jn=this._mpegAudioV20SampleRateTable[an];break;case 3:jn=this._mpegAudioV10SampleRateTable[an];break}switch(kn){case 1:ne=34,St>>4,Ln=it&15;if(Ln!==7){this._onError(Rt.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Ln));return}this._parseAVCVideoPacket(Q,$+1,re-1,de,Ue,Mt)}},{key:"_parseAVCVideoPacket",value:function(Q,$,re,de,Ue,it){if(re<4){d.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Mt=this._littleEndian,Ln=new DataView(Q,$,re),kn=Ln.getUint8(0),St=Ln.getUint32(0,!Mt)&16777215,an=St<<8>>8;if(kn===0)this._parseAVCDecoderConfigurationRecord(Q,$+4,re-4);else if(kn===1)this._parseAVCVideoData(Q,$+4,re-4,de,Ue,it,an);else if(!(kn===2)){this._onError(Rt.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(kn));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Q,$,re){if(re<7){d.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var de=this._videoMetadata,Ue=this._videoTrack,it=this._littleEndian,Mt=new DataView(Q,$,re);de?typeof de.avcc!="undefined"&&d.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),de=this._videoMetadata={},de.type="video",de.id=Ue.id,de.timescale=this._timescale,de.duration=this._duration);var Ln=Mt.getUint8(0),kn=Mt.getUint8(1),St=Mt.getUint8(2),an=Mt.getUint8(3);if(Ln!==1||kn===0){this._onError(Rt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Mt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Rt.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Pn=Mt.getUint8(5)&31;if(Pn===0){this._onError(Rt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Pn>1&&d.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Pn));for(var dn=6,jn=0;jn1&&d.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(fr));dn++;for(var Vt=0;Vt=re){d.w(this.TAG,"Malformed Nalu near timestamp ".concat(jn,", offset = ").concat(Pn,", dataSize = ").concat(re));break}var ne=kn.getUint32(Pn,!Ln);if(dn===3&&(ne>>>=8),ne>re-dn){d.w(this.TAG,"Malformed Nalus near timestamp ".concat(jn,", NaluSize > DataSize!"));return}var B=kn.getUint8(Pn+dn)&31;B===5&&(Bn=!0);var H=new Uint8Array(Q,$+Pn,dn+ne),ae={type:B,data:H};St.push(ae),an+=H.byteLength,Pn+=dn+ne}if(St.length){var ue=this._videoTrack,oe={units:St,length:an,isKeyframe:Bn,dts:jn,cts:Mt,pts:jn+Mt};Bn&&(oe.fileposition=Ue),ue.samples.push(oe),ue.length+=an}}}],[{key:"probe",value:function(Q){var $=new Uint8Array(Q),re={match:!1};if($[0]!==70||$[1]!==76||$[2]!==86||$[3]!==1)return re;var de=($[4]&4)>>>2!==0,Ue=($[4]&1)!==0,it=Cn($,5);return it<9?re:{match:!0,consumed:it,dataOffset:it,hasAudioTrack:de,hasVideoTrack:Ue}}}]),Te}(),mt=Un,lt=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"init",value:function(){Te.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var Q in Te.types)Te.types.hasOwnProperty(Q)&&(Te.types[Q]=[Q.charCodeAt(0),Q.charCodeAt(1),Q.charCodeAt(2),Q.charCodeAt(3)]);var $=Te.constants={};$.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),$.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),$.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),$.STSC=$.STCO=$.STTS,$.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),$.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),$.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),$.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),$.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),$.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Q){for(var $=8,re=null,de=Array.prototype.slice.call(arguments,1),Ue=de.length,it=0;it>>24&255,re[1]=$>>>16&255,re[2]=$>>>8&255,re[3]=$&255,re.set(Q,4);for(var Mt=8,Ln=0;Ln>>24&255,Q>>>16&255,Q>>>8&255,Q&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(Q){return Te.box(Te.types.trak,Te.tkhd(Q),Te.mdia(Q))}},{key:"tkhd",value:function(Q){var $=Q.id,re=Q.duration,de=Q.presentWidth,Ue=Q.presentHeight;return Te.box(Te.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255,0,0,0,0,re>>>24&255,re>>>16&255,re>>>8&255,re&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,de>>>8&255,de&255,0,0,Ue>>>8&255,Ue&255,0,0]))}},{key:"mdia",value:function(Q){return Te.box(Te.types.mdia,Te.mdhd(Q),Te.hdlr(Q),Te.minf(Q))}},{key:"mdhd",value:function(Q){var $=Q.timescale,re=Q.duration;return Te.box(Te.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255,re>>>24&255,re>>>16&255,re>>>8&255,re&255,85,196,0,0]))}},{key:"hdlr",value:function(Q){var $=null;return Q.type==="audio"?$=Te.constants.HDLR_AUDIO:$=Te.constants.HDLR_VIDEO,Te.box(Te.types.hdlr,$)}},{key:"minf",value:function(Q){var $=null;return Q.type==="audio"?$=Te.box(Te.types.smhd,Te.constants.SMHD):$=Te.box(Te.types.vmhd,Te.constants.VMHD),Te.box(Te.types.minf,$,Te.dinf(),Te.stbl(Q))}},{key:"dinf",value:function(){var Q=Te.box(Te.types.dinf,Te.box(Te.types.dref,Te.constants.DREF));return Q}},{key:"stbl",value:function(Q){var $=Te.box(Te.types.stbl,Te.stsd(Q),Te.box(Te.types.stts,Te.constants.STTS),Te.box(Te.types.stsc,Te.constants.STSC),Te.box(Te.types.stsz,Te.constants.STSZ),Te.box(Te.types.stco,Te.constants.STCO));return $}},{key:"stsd",value:function(Q){return Q.type==="audio"?Q.codec==="mp3"?Te.box(Te.types.stsd,Te.constants.STSD_PREFIX,Te.mp3(Q)):Te.box(Te.types.stsd,Te.constants.STSD_PREFIX,Te.mp4a(Q)):Te.box(Te.types.stsd,Te.constants.STSD_PREFIX,Te.avc1(Q))}},{key:"mp3",value:function(Q){var $=Q.channelCount,re=Q.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,$,0,16,0,0,0,0,re>>>8&255,re&255,0,0]);return Te.box(Te.types[".mp3"],de)}},{key:"mp4a",value:function(Q){var $=Q.channelCount,re=Q.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,$,0,16,0,0,0,0,re>>>8&255,re&255,0,0]);return Te.box(Te.types.mp4a,de,Te.esds(Q))}},{key:"esds",value:function(Q){var $=Q.config||[],re=$.length,de=new Uint8Array([0,0,0,0,3,23+re,0,1,0,4,15+re,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([re]).concat($).concat([6,1,2]));return Te.box(Te.types.esds,de)}},{key:"avc1",value:function(Q){var $=Q.avcc,re=Q.codecWidth,de=Q.codecHeight,Ue=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,re>>>8&255,re&255,de>>>8&255,de&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Te.box(Te.types.avc1,Ue,Te.box(Te.types.avcC,$))}},{key:"mvex",value:function(Q){return Te.box(Te.types.mvex,Te.trex(Q))}},{key:"trex",value:function(Q){var $=Q.id,re=new Uint8Array([0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Te.box(Te.types.trex,re)}},{key:"moof",value:function(Q,$){return Te.box(Te.types.moof,Te.mfhd(Q.sequenceNumber),Te.traf(Q,$))}},{key:"mfhd",value:function(Q){var $=new Uint8Array([0,0,0,0,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q&255]);return Te.box(Te.types.mfhd,$)}},{key:"traf",value:function(Q,$){var re=Q.id,de=Te.box(Te.types.tfhd,new Uint8Array([0,0,0,0,re>>>24&255,re>>>16&255,re>>>8&255,re&255])),Ue=Te.box(Te.types.tfdt,new Uint8Array([0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255])),it=Te.sdtp(Q),Mt=Te.trun(Q,it.byteLength+16+16+8+16+8+8);return Te.box(Te.types.traf,de,Ue,Mt,it)}},{key:"sdtp",value:function(Q){for(var $=Q.samples||[],re=$.length,de=new Uint8Array(4+re),Ue=0;Ue>>24&255,de>>>16&255,de>>>8&255,de&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255],0);for(var Mt=0;Mt>>24&255,Ln>>>16&255,Ln>>>8&255,Ln&255,kn>>>24&255,kn>>>16&255,kn>>>8&255,kn&255,St.isLeading<<2|St.dependsOn,St.isDependedOn<<6|St.hasRedundancy<<4|St.isNonSync,0,0,an>>>24&255,an>>>16&255,an>>>8&255,an&255],12+16*Mt)}return Te.box(Te.types.trun,it)}},{key:"mdat",value:function(Q){return Te.box(Te.types.mdat,Q)}}]),Te}();lt.init();var Ht=lt,sn=function(){function Te(){Object(Y.a)(this,Te)}return Object(j.a)(Te,null,[{key:"getSilentFrame",value:function(Q,$){if(Q==="mp4a.40.2"){if($===1)return new Uint8Array([0,200,0,128,35,128]);if($===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if($===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if($===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if($===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if($===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if($===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if($===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if($===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Te}(),Tt=sn,wt=function Te(ve,Q,$,re,de){Object(Y.a)(this,Te),this.dts=ve,this.pts=Q,this.duration=$,this.originalDts=re,this.isSyncPoint=de,this.fileposition=null},Qe=function(){function Te(){Object(Y.a)(this,Te),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(j.a)(Te,[{key:"appendSyncPoint",value:function(Q){Q.isSyncPoint=!0,this.syncPoints.push(Q)}}]),Te}(),Je=function(){function Te(){Object(Y.a)(this,Te),this._list=[]}return Object(j.a)(Te,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Q){var $=this._list;if(Q.length===0)return;$.length>0&&Q[0].originalDts<$[$.length-1].originalDts&&this.clear(),Array.prototype.push.apply($,Q)}},{key:"getLastSyncPointBeforeDts",value:function(Q){if(this._list.length==0)return null;var $=this._list,re=0,de=$.length-1,Ue=0,it=0,Mt=de;for(Q<$[0].dts&&(re=0,it=Mt+1);it<=Mt;)if(Ue=it+Math.floor((Mt-it)/2),Ue===de||Q>=$[Ue].dts&&Q<$[Ue+1].dts){re=Ue;break}else $[Ue].dts$[de].lastSample.originalDts&&Q<$[de+1].originalBeginDts){Mt=de;break}else $[de].originalBeginDts=$[de].lastSample.originalDts&&(de===$.length-1||de<$.length-1&&re.originalBeginDts<$[de+1].originalBeginDts)?Ue=de+1:$.length>0&&(Ue=this._searchNearestSegmentBefore(re.originalBeginDts)+1),this._lastAppendLocation=Ue,this._list.splice(Ue,0,re)}},{key:"getLastSegmentBefore",value:function(Q){var $=this._searchNearestSegmentBefore(Q);return $>=0?this._list[$]:null}},{key:"getLastSampleBefore",value:function(Q){var $=this.getLastSegmentBefore(Q);return $!=null?$.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Q){for(var $=this._searchNearestSegmentBefore(Q),re=this._list[$].syncPoints;re.length===0&&$>0;)$--,re=this._list[$].syncPoints;return re.length>0?re[re.length-1]:null}}]),Te}(),Oe=function(){function Te(ve){Object(Y.a)(this,Te),this.TAG="MP4Remuxer",this._config=ve,this._isLive=ve.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Xe("audio"),this._videoSegmentInfoList=new Xe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(A.chrome&&(A.version.major<50||A.version.major===50&&A.version.build<2661)),this._fillSilentAfterSeek=A.msedge||A.msie,this._mp3UseMpegAudio=!A.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(j.a)(Te,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(Q){return Q.onDataAvailable=this.remux.bind(this),Q.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Q){this._onInitSegment=Q}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Q){this._onMediaSegment=Q}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Q){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Q,$){if(!this._onMediaSegment)throw new y("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Q,$),this._remuxVideo($),this._remuxAudio(Q)}},{key:"_onTrackMetadataReceived",value:function(Q,$){var re=null,de="mp4",Ue=$.codec;if(Q==="audio")this._audioMeta=$,$.codec==="mp3"&&this._mp3UseMpegAudio?(de="mpeg",Ue="",re=new Uint8Array):re=Ht.generateInitSegment($);else if(Q==="video")this._videoMeta=$,re=Ht.generateInitSegment($);else return;if(!this._onInitSegment)throw new y("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Q,{type:Q,data:re.buffer,codec:Ue,container:"".concat(Q,"/").concat(de),mediaDuration:$.duration})}},{key:"_calculateDtsBase",value:function(Q,$){if(this._dtsBaseInited)return;Q.samples&&Q.samples.length&&(this._audioDtsBase=Q.samples[0].dts),$.samples&&$.samples.length&&(this._videoDtsBase=$.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Q=this._videoStashedLastSample,$=this._audioStashedLastSample,re={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Q!=null&&(re.samples.push(Q),re.length=Q.length);var de={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};$!=null&&(de.samples.push($),de.length=$.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(re,!0),this._remuxAudio(de,!0)}},{key:"_remuxAudio",value:function(Q,$){if(this._audioMeta==null)return;var re=Q,de=re.samples,Ue=void 0,it=-1,Mt=-1,Ln=-1,kn=this._audioMeta.refSampleDuration,St=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,an=this._dtsBaseInited&&this._audioNextDts===void 0,Pn=!1;if(!de||de.length===0)return;if(de.length===1&&!$)return;var dn=0,jn=null,Bn=0;St?(dn=0,Bn=re.length):(dn=8,Bn=8+re.length);var ne=null;if(de.length>1&&(ne=de.pop(),Bn-=ne.length),this._audioStashedLastSample!=null){var B=this._audioStashedLastSample;this._audioStashedLastSample=null,de.unshift(B),Bn+=B.length}ne!=null&&(this._audioStashedLastSample=ne);var H=de[0].dts-this._dtsBase;if(this._audioNextDts)Ue=H-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ue=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Pn=!0));else{var ae=this._audioSegmentInfoList.getLastSampleBefore(H);if(ae!=null){var ue=H-(ae.originalDts+ae.duration);ue<=3&&(ue=0);var oe=ae.dts+ae.duration+ue;Ue=H-oe}else Ue=0}if(Pn){var ht=H-Ue,vn=this._videoSegmentInfoList.getLastSegmentBefore(H);if(vn!=null&&vn.beginDts=1?jr=Et[Et.length-1].duration:jr=Math.floor(kn);var Tr=!1,Jn=null;if(jr>kn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!A.safari){Tr=!0;var hr=Math.abs(jr-kn),Sn=Math.ceil(hr/kn),On=ir+kn;d.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. +`+"dts: ".concat(ir+jr," ms, expected: ").concat(ir+Math.round(kn)," ms, ")+"delta: ".concat(Math.round(hr)," ms, generate: ").concat(Sn," frames"));var or=Tt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);or==null&&(d.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),or=Vn),Jn=[];for(var Dn=0;Dn0){var Gn=Jn[Jn.length-1];Gn.duration=pr-Gn.dts}var se={dts:pr,pts:pr,cts:0,unit:or,size:or.byteLength,duration:0,originalDts:Kn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Jn.push(se),Bn+=se.size,On+=kn}var tt=Jn[Jn.length-1];tt.duration=ir+jr-tt.dts,jr=Math.round(kn)}Et.push({dts:ir,pts:ir,cts:0,unit:Fn.unit,size:Fn.unit.byteLength,duration:jr,originalDts:Kn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Tr&&Et.push.apply(Et,Jn)}St?jn=new Uint8Array(Bn):(jn=new Uint8Array(Bn),jn[0]=Bn>>>24&255,jn[1]=Bn>>>16&255,jn[2]=Bn>>>8&255,jn[3]=Bn&255,jn.set(Ht.types.mdat,4));for(var rt=0;rt1&&(dn=de.pop(),Pn-=dn.length),this._videoStashedLastSample!=null){var jn=this._videoStashedLastSample;this._videoStashedLastSample=null,de.unshift(jn),Pn+=jn.length}dn!=null&&(this._videoStashedLastSample=dn);var Bn=de[0].dts-this._dtsBase;if(this._videoNextDts)Ue=Bn-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ue=0;else{var ne=this._videoSegmentInfoList.getLastSampleBefore(Bn);if(ne!=null){var B=Bn-(ne.originalDts+ne.duration);B<=3&&(B=0);var H=ne.dts+ne.duration+B;Ue=Bn-H}else Ue=0}for(var ae=new Qe,ue=[],oe=0;oe=1?Jt=ue[ue.length-1].duration:Jt=Math.floor(this._videoMeta.refSampleDuration);if(Tn){var Kn=new wt(fr,Et,Jt,ht.dts,!0);Kn.fileposition=ht.fileposition,ae.appendSyncPoint(Kn)}ue.push({dts:fr,pts:Et,cts:Vt,units:ht.units,size:ht.length,isKeyframe:Tn,duration:Jt,originalDts:vn,flags:{isLeading:0,dependsOn:Tn?2:1,isDependedOn:Tn?1:0,hasRedundancy:0,isNonSync:Tn?0:1}})}an=new Uint8Array(Pn),an[0]=Pn>>>24&255,an[1]=Pn>>>16&255,an[2]=Pn>>>8&255,an[3]=Pn&255,an.set(Ht.types.mdat,4);for(var ir=0;ir0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Ue=this._demuxer.parseChunks(Q,$);else if((de=mt.probe(Q)).match){this._demuxer=new mt(de,this._config),this._remuxer||(this._remuxer=new Ae(this._config));var it=this._mediaDataSource;it.duration!=null&&!isNaN(it.duration)&&(this._demuxer.overridedDuration=it.duration),typeof it.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=it.hasAudio),typeof it.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=it.hasVideo),this._demuxer.timestampBase=it.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),Ue=this._demuxer.parseChunks(Q,$)}else de=null,d.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){re._internalAbort()}),this._emitter.emit(Se.DEMUX_ERROR,Rt.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Ue=0;return Ue}},{key:"_onMediaInfo",value:function(Q){var $=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Q),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ee.prototype));var re=Object.assign({},Q);Object.setPrototypeOf(re,Ee.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=re,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var de=$._pendingSeekTime;$._pendingSeekTime=null,$.seek(de)})}},{key:"_onMetaDataArrived",value:function(Q){this._emitter.emit(Se.METADATA_ARRIVED,Q)}},{key:"_onScriptDataArrived",value:function(Q){this._emitter.emit(Se.SCRIPTDATA_ARRIVED,Q)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Q){var $=Q,re=$+1;re0&&re[0].originalDts===de&&(de=re[0].pts),this._emitter.emit(Se.RECOMMEND_SEEKPOINT,de)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(Q){var $=this._mediaInfo.segments[Q],re=Object.assign({},$);re.duration=this._mediaInfo.duration,re.segmentCount=this._mediaInfo.segmentCount,delete re.segments,delete re.keyframesIndex,this._emitter.emit(Se.MEDIA_INFO,re)}},{key:"_reportStatisticsInfo",value:function(){var Q={};Q.url=this._ioctl.currentURL,Q.hasRedirect=this._ioctl.hasRedirect,Q.hasRedirect&&(Q.redirectedURL=this._ioctl.currentRedirectedURL),Q.speed=this._ioctl.currentSpeed,Q.loaderType=this._ioctl.loaderType,Q.currentSegmentIndex=this._currentSegmentIndex,Q.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Se.STATISTICS_INFO,Q)}}]),Te}(),et=dt,xt=function(ve){var Q="TransmuxingWorker",$=null,re=Bn.bind(this);U.install(),ve.addEventListener("message",function(ne){switch(ne.data.cmd){case"init":$=new et(ne.data.param[0],ne.data.param[1]),$.on(Se.IO_ERROR,Pn.bind(this)),$.on(Se.DEMUX_ERROR,dn.bind(this)),$.on(Se.INIT_SEGMENT,de.bind(this)),$.on(Se.MEDIA_SEGMENT,Ue.bind(this)),$.on(Se.LOADING_COMPLETE,it.bind(this)),$.on(Se.RECOVERED_EARLY_EOF,Mt.bind(this)),$.on(Se.MEDIA_INFO,Ln.bind(this)),$.on(Se.METADATA_ARRIVED,kn.bind(this)),$.on(Se.SCRIPTDATA_ARRIVED,St.bind(this)),$.on(Se.STATISTICS_INFO,an.bind(this)),$.on(Se.RECOMMEND_SEEKPOINT,jn.bind(this));break;case"destroy":$&&($.destroy(),$=null),ve.postMessage({msg:"destroyed"});break;case"start":$.start();break;case"stop":$.stop();break;case"seek":$.seek(ne.data.param);break;case"pause":$.pause();break;case"resume":$.resume();break;case"logging_config":{var B=ne.data.param;he.applyConfig(B),B.enableCallback===!0?he.addLogListener(re):he.removeLogListener(re);break}}});function de(ne,B){var H={msg:Se.INIT_SEGMENT,data:{type:ne,data:B}};ve.postMessage(H,[B.data])}function Ue(ne,B){var H={msg:Se.MEDIA_SEGMENT,data:{type:ne,data:B}};ve.postMessage(H,[B.data])}function it(){var ne={msg:Se.LOADING_COMPLETE};ve.postMessage(ne)}function Mt(){var ne={msg:Se.RECOVERED_EARLY_EOF};ve.postMessage(ne)}function Ln(ne){var B={msg:Se.MEDIA_INFO,data:ne};ve.postMessage(B)}function kn(ne){var B={msg:Se.METADATA_ARRIVED,data:ne};ve.postMessage(B)}function St(ne){var B={msg:Se.SCRIPTDATA_ARRIVED,data:ne};ve.postMessage(B)}function an(ne){var B={msg:Se.STATISTICS_INFO,data:ne};ve.postMessage(B)}function Pn(ne,B){ve.postMessage({msg:Se.IO_ERROR,data:{type:ne,info:B}})}function dn(ne,B){ve.postMessage({msg:Se.DEMUX_ERROR,data:{type:ne,info:B}})}function jn(ne){ve.postMessage({msg:Se.RECOMMEND_SEEKPOINT,data:ne})}function Bn(ne,B){ve.postMessage({msg:"logcat_callback",data:{type:ne,logcat:B}})}},xn=xt,Dt=function(){function Te(ve,Q){if(Object(Y.a)(this,Te),this.TAG="Transmuxer",this._emitter=new g.a,Q.enableWorker&&typeof Worker!="undefined")try{var $=_("0r65");this._worker=$(xn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ve,Q]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},he.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:he.getConfig()})}catch(de){d.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new et(ve,Q)}else this._controller=new et(ve,Q);if(this._controller){var re=this._controller;re.on(Se.IO_ERROR,this._onIOError.bind(this)),re.on(Se.DEMUX_ERROR,this._onDemuxError.bind(this)),re.on(Se.INIT_SEGMENT,this._onInitSegment.bind(this)),re.on(Se.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),re.on(Se.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),re.on(Se.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),re.on(Se.MEDIA_INFO,this._onMediaInfo.bind(this)),re.on(Se.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),re.on(Se.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),re.on(Se.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),re.on(Se.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(j.a)(Te,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),he.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Q,$){this._emitter.addListener(Q,$)}},{key:"off",value:function(Q,$){this._emitter.removeListener(Q,$)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(Q){this._worker?this._worker.postMessage({cmd:"seek",param:Q}):this._controller.seek(Q)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.INIT_SEGMENT,Q,$)})}},{key:"_onMediaSegment",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.MEDIA_SEGMENT,Q,$)})}},{key:"_onLoadingComplete",value:function(){var Q=this;Promise.resolve().then(function(){Q._emitter.emit(Se.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Q=this;Promise.resolve().then(function(){Q._emitter.emit(Se.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.MEDIA_INFO,Q)})}},{key:"_onMetaDataArrived",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.METADATA_ARRIVED,Q)})}},{key:"_onScriptDataArrived",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.SCRIPTDATA_ARRIVED,Q)})}},{key:"_onStatisticsInfo",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.STATISTICS_INFO,Q)})}},{key:"_onIOError",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.IO_ERROR,Q,$)})}},{key:"_onDemuxError",value:function(Q,$){var re=this;Promise.resolve().then(function(){re._emitter.emit(Se.DEMUX_ERROR,Q,$)})}},{key:"_onRecommendSeekpoint",value:function(Q){var $=this;Promise.resolve().then(function(){$._emitter.emit(Se.RECOMMEND_SEEKPOINT,Q)})}},{key:"_onLoggingConfigChanged",value:function(Q){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Q})}},{key:"_onWorkerMessage",value:function(Q){var $=Q.data,re=$.data;if($.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch($.msg){case Se.INIT_SEGMENT:case Se.MEDIA_SEGMENT:this._emitter.emit($.msg,re.type,re.data);break;case Se.LOADING_COMPLETE:case Se.RECOVERED_EARLY_EOF:this._emitter.emit($.msg);break;case Se.MEDIA_INFO:Object.setPrototypeOf(re,Ee.prototype),this._emitter.emit($.msg,re);break;case Se.METADATA_ARRIVED:case Se.SCRIPTDATA_ARRIVED:case Se.STATISTICS_INFO:this._emitter.emit($.msg,re);break;case Se.IO_ERROR:case Se.DEMUX_ERROR:this._emitter.emit($.msg,re.type,re.info);break;case Se.RECOMMEND_SEEKPOINT:this._emitter.emit($.msg,re);break;case"logcat_callback":d.emitter.emit("log",re.type,re.logcat);break;default:break}}}]),Te}(),_t=Dt,mn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},pe=mn,Gt=function(){function Te(ve){Object(Y.a)(this,Te),this.TAG="MSEController",this._config=ve,this._emitter=new g.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Je}return Object(j.a)(Te,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Q,$){this._emitter.addListener(Q,$)}},{key:"off",value:function(Q,$){this._emitter.removeListener(Q,$)}},{key:"attachMediaElement",value:function(Q){if(this._mediaSource)throw new y("MediaSource has been attached to an HTMLMediaElement!");var $=this._mediaSource=new window.MediaSource;$.addEventListener("sourceopen",this.e.onSourceOpen),$.addEventListener("sourceended",this.e.onSourceEnded),$.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Q,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Q.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Q=this._mediaSource;for(var $ in this._sourceBuffers){var re=this._pendingSegments[$];re.splice(0,re.length),this._pendingSegments[$]=null,this._pendingRemoveRanges[$]=null,this._lastInitSegments[$]=null;var de=this._sourceBuffers[$];if(de){if(Q.readyState!=="closed"){try{Q.removeSourceBuffer(de)}catch(Ue){d.e(this.TAG,Ue.message)}de.removeEventListener("error",this.e.onSourceBufferError),de.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[$]=null,this._sourceBuffers[$]=null}}if(Q.readyState==="open")try{Q.endOfStream()}catch(Ue){d.e(this.TAG,Ue.message)}Q.removeEventListener("sourceopen",this.e.onSourceOpen),Q.removeEventListener("sourceended",this.e.onSourceEnded),Q.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(Q,$){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Q),this._pendingSegments[Q.type].push(Q);return}var re=Q,de="".concat(re.container);re.codec&&re.codec.length>0&&(de+=";codecs=".concat(re.codec));var Ue=!1;if(d.v(this.TAG,"Received Initialization Segment, mimeType: "+de),this._lastInitSegments[re.type]=re,de!==this._mimeTypes[re.type]){if(this._mimeTypes[re.type])d.v(this.TAG,"Notice: ".concat(re.type," mimeType changed, origin: ").concat(this._mimeTypes[re.type],", target: ").concat(de));else{Ue=!0;try{var it=this._sourceBuffers[re.type]=this._mediaSource.addSourceBuffer(de);it.addEventListener("error",this.e.onSourceBufferError),it.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Mt){d.e(this.TAG,Mt.message),this._emitter.emit(pe.ERROR,{code:Mt.code,msg:Mt.message});return}}this._mimeTypes[re.type]=de}$||this._pendingSegments[re.type].push(re),Ue||this._sourceBuffers[re.type]&&!this._sourceBuffers[re.type].updating&&this._doAppendSegments(),A.safari&&re.container==="audio/mpeg"&&re.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=re.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Q){var $=Q;this._pendingSegments[$.type].push($),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var re=this._sourceBuffers[$.type];re&&!re.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Q){for(var $ in this._sourceBuffers){if(!this._sourceBuffers[$])continue;var re=this._sourceBuffers[$];if(this._mediaSource.readyState==="open")try{re.abort()}catch(kn){d.e(this.TAG,kn.message)}this._idrList.clear();var de=this._pendingSegments[$];if(de.splice(0,de.length),this._mediaSource.readyState==="closed")continue;for(var Ue=0;Ue=1&&Q-de.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Q=this._mediaElement.currentTime;for(var $ in this._sourceBuffers){var re=this._sourceBuffers[$];if(re){for(var de=re.buffered,Ue=!1,it=0;it=this._config.autoCleanupMaxBackwardDuration){Ue=!0;var kn=Q-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[$].push({start:Mt,end:kn})}}else Ln0&&(isNaN($)||re>$)&&(d.v(this.TAG,"Update MediaSource duration from ".concat($," to ").concat(re)),this._mediaSource.duration=re),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Q in this._pendingRemoveRanges){if(!this._sourceBuffers[Q]||this._sourceBuffers[Q].updating)continue;for(var $=this._sourceBuffers[Q],re=this._pendingRemoveRanges[Q];re.length&&!$.updating;){var de=re.shift();$.remove(de.start,de.end)}}}},{key:"_doAppendSegments",value:function(){var Q=this._pendingSegments;for(var $ in Q){if(!this._sourceBuffers[$]||this._sourceBuffers[$].updating)continue;if(Q[$].length>0){var re=Q[$].shift();if(re.timestampOffset){var de=this._sourceBuffers[$].timestampOffset,Ue=re.timestampOffset/1e3,it=Math.abs(de-Ue);it>.1&&(d.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(de," to ").concat(Ue)),this._sourceBuffers[$].timestampOffset=Ue),delete re.timestampOffset}if(!re.data||re.data.byteLength===0)continue;try{this._sourceBuffers[$].appendBuffer(re.data),this._isBufferFull=!1,$==="video"&&re.hasOwnProperty("info")&&this._idrList.appendArray(re.info.syncPoints)}catch(Mt){this._pendingSegments[$].unshift(re),Mt.code===22?(this._isBufferFull||this._emitter.emit(pe.BUFFER_FULL),this._isBufferFull=!0):(d.e(this.TAG,Mt.message),this._emitter.emit(pe.ERROR,{code:Mt.code,msg:Mt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(d.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Q=this._pendingSourceBufferInit;Q.length;){var $=Q.shift();this.appendInitSegment($,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(pe.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){d.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){d.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var Q=this._pendingSegments;return Q.video.length>0||Q.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Q=this._pendingRemoveRanges;return Q.video.length>0||Q.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(pe.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Q){d.e(this.TAG,"SourceBuffer Error: ".concat(Q))}}]),Te}(),Lt=Gt,Be={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},ot={NETWORK_EXCEPTION:r.EXCEPTION,NETWORK_STATUS_CODE_INVALID:r.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:r.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:r.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Rt.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Rt.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Rt.CODEC_UNSUPPORTED},Xt=function(){function Te(ve,Q){if(Object(Y.a)(this,Te),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new g.a,this._config=be(),typeof Q=="object"&&Object.assign(this._config,Q),ve.type.toLowerCase()!=="flv")throw new m("FlvPlayer requires an flv MediaDataSource input!");ve.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ve,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var $=A.chrome&&(A.version.major<50||A.version.major===50&&A.version.build<2661);this._alwaysSeekKeyframe=!!($||A.msedge||A.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(j.a)(Te,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Q,$){var re=this;Q===nt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){re._emitter.emit(nt.MEDIA_INFO,re.mediaInfo)}):Q===nt.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){re._emitter.emit(nt.STATISTICS_INFO,re.statisticsInfo)})),this._emitter.addListener(Q,$)}},{key:"off",value:function(Q,$){this._emitter.removeListener(Q,$)}},{key:"attachMediaElement",value:function(Q){var $=this;if(this._mediaElement=Q,Q.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Q.addEventListener("seeking",this.e.onvSeeking),Q.addEventListener("canplay",this.e.onvCanPlay),Q.addEventListener("stalled",this.e.onvStalled),Q.addEventListener("progress",this.e.onvProgress),this._msectl=new Lt(this._config),this._msectl.on(pe.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(pe.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(pe.SOURCE_OPEN,function(){$._mseSourceOpened=!0,$._hasPendingLoad&&($._hasPendingLoad=!1,$.load())}),this._msectl.on(pe.ERROR,function(re){$._emitter.emit(nt.ERROR,Be.MEDIA_ERROR,ot.MEDIA_MSE_ERROR,re)}),this._msectl.attachMediaElement(Q),this._pendingSeekTime!=null)try{Q.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(re){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var Q=this;if(!this._mediaElement)throw new y("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new y("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new _t(this._mediaDataSource,this._config),this._transmuxer.on(Se.INIT_SEGMENT,function($,re){Q._msectl.appendInitSegment(re)}),this._transmuxer.on(Se.MEDIA_SEGMENT,function($,re){if(Q._msectl.appendMediaSegment(re),Q._config.lazyLoad&&!Q._config.isLive){var de=Q._mediaElement.currentTime;re.info.endDts>=(de+Q._config.lazyLoadMaxDuration)*1e3&&(Q._progressChecker==null&&(d.v(Q.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Q._suspendTransmuxer()))}}),this._transmuxer.on(Se.LOADING_COMPLETE,function(){Q._msectl.endOfStream(),Q._emitter.emit(nt.LOADING_COMPLETE)}),this._transmuxer.on(Se.RECOVERED_EARLY_EOF,function(){Q._emitter.emit(nt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Se.IO_ERROR,function($,re){Q._emitter.emit(nt.ERROR,Be.NETWORK_ERROR,$,re)}),this._transmuxer.on(Se.DEMUX_ERROR,function($,re){Q._emitter.emit(nt.ERROR,Be.MEDIA_ERROR,$,{code:-1,msg:re})}),this._transmuxer.on(Se.MEDIA_INFO,function($){Q._mediaInfo=$,Q._emitter.emit(nt.MEDIA_INFO,Object.assign({},$))}),this._transmuxer.on(Se.METADATA_ARRIVED,function($){Q._emitter.emit(nt.METADATA_ARRIVED,$)}),this._transmuxer.on(Se.SCRIPTDATA_ARRIVED,function($){Q._emitter.emit(nt.SCRIPTDATA_ARRIVED,$)}),this._transmuxer.on(Se.STATISTICS_INFO,function($){Q._statisticsInfo=Q._fillStatisticsInfo($),Q._emitter.emit(nt.STATISTICS_INFO,Object.assign({},Q._statisticsInfo))}),this._transmuxer.on(Se.RECOMMEND_SEEKPOINT,function($){Q._mediaElement&&!Q._config.accurateSeek&&(Q._requestSetTime=!0,Q._mediaElement.currentTime=$/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Q){this._mediaElement.volume=Q}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Q){this._mediaElement.muted=Q}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Q){this._mediaElement?this._internalSeek(Q):this._pendingSeekTime=Q}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(Q){if(Q.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Q;var $=!0,re=0,de=0;if(this._mediaElement.getVideoPlaybackQuality){var Ue=this._mediaElement.getVideoPlaybackQuality();re=Ue.totalVideoFrames,de=Ue.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(re=this._mediaElement.webkitDecodedFrameCount,de=this._mediaElement.webkitDroppedFrameCount):$=!1;return $&&(Q.decodedFrames=re,Q.droppedFrames=de),Q}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Q=this._mediaElement.buffered,$=this._mediaElement.currentTime,re=0,de=0,Ue=0;Ue=$+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(d.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){d.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var Q=this._mediaElement.currentTime,$=this._mediaElement.buffered,re=!1,de=0;de<$.length;de++){var Ue=$.start(de),it=$.end(de);if(Q>=Ue&&Q=it-this._config.lazyLoadRecoverDuration&&(re=!0);break}}re&&(window.clearInterval(this._progressChecker),this._progressChecker=null,re&&(d.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Q){for(var $=this._mediaElement.buffered,re=0;re<$.length;re++){var de=$.start(re),Ue=$.end(re);if(Q>=de&&Q0){var Ue=this._mediaElement.buffered.start(0);(Ue<1&&Q0&&$.currentTime0){var de=re.start(0);if(de<1&&$0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Q){this._mediaElement.volume=Q}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Q){this._mediaElement.muted=Q}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Q){this._mediaElement?this._mediaElement.currentTime=Q:this._pendingSeekTime=Q}},{key:"mediaInfo",get:function(){var Q=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",$={mimeType:Q+this._mediaDataSource.type};return this._mediaElement&&($.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&($.width=this._mediaElement.videoWidth,$.height=this._mediaElement.videoHeight)),$}},{key:"statisticsInfo",get:function(){var Q={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Q;var $=!0,re=0,de=0;if(this._mediaElement.getVideoPlaybackQuality){var Ue=this._mediaElement.getVideoPlaybackQuality();re=Ue.totalVideoFrames,de=Ue.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(re=this._mediaElement.webkitDecodedFrameCount,de=this._mediaElement.webkitDroppedFrameCount):$=!1;return $&&(Q.decodedFrames=re,Q.droppedFrames=de),Q}},{key:"_onvLoadedMetadata",value:function(Q){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(nt.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(nt.STATISTICS_INFO,this.statisticsInfo)}}]),Te}(),Zt=$t;U.install();function bt(Te,ve){var Q=Te;if(Q==null||typeof Q!="object")throw new m("MediaDataSource must be an javascript object!");if(!Q.hasOwnProperty("type"))throw new m("MediaDataSource must has type field to indicate video file type!");switch(Q.type){case"flv":return new Pt(Q,ve);default:return new Zt(Q,ve)}}function ft(){return je.supportMSEH264Playback()}function Nt(){return je.getFeatureList()}var jt={};jt.createPlayer=bt,jt.isSupported=ft,jt.getFeatureList=Nt,jt.BaseLoader=u,jt.LoaderStatus=i,jt.LoaderErrors=r,jt.Events=nt,jt.ErrorTypes=Be,jt.ErrorDetails=ot,jt.FlvPlayer=Pt,jt.NativePlayer=Zt,jt.LoggingControl=he,Object.defineProperty(jt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var bn=ie.a=jt},Gev7:function(Ye,ie,_){var Y=_("bYtY"),j=_("K2GJ"),L=_("1bdT"),U=_("ni6a");function S(s){s=s||{},L.call(this,s);for(var d in s)s.hasOwnProperty(d)&&d!=="style"&&(this[d]=s[d]);this.style=new j(s.style,this),this._rect=null,this.__clipPaths=null}S.prototype={constructor:S,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(s){},afterBrush:function(s){},brush:function(s,d){},getBoundingRect:function(){},contain:function(s,d){return this.rectContain(s,d)},traverse:function(s,d){s.call(d,this)},rectContain:function(s,d){var w=this.transformCoordToLocal(s,d),p=this.getBoundingRect();return p.contain(w[0],w[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(s){return this.animate("style",s)},attrKV:function(s,d){s!=="style"?L.prototype.attrKV.call(this,s,d):this.style.set(d)},setStyle:function(s,d){return this.style.set(s,d),this.dirty(!1),this},useStyle:function(s){return this.style=new j(s,this),this.dirty(!1),this},calculateTextPosition:null},Y.inherits(S,L),Y.mixin(S,U);var g=S;Ye.exports=g},GfqC:function(Ye,ie,_){"use strict";var Y=_("q1tI"),j=_.n(Y),L=_("TSYQ"),U=_.n(L);function S(V,W){var G="cannot "+V.method+" "+V.action+" "+W.status+"'",J=new Error(G);return J.status=W.status,J.method=V.method,J.url=V.action,J}function g(V){var W=V.responseText||V.response;if(!W)return W;try{return JSON.parse(W)}catch(G){return W}}function s(V){var W=new XMLHttpRequest;V.onProgress&&W.upload&&(W.upload.onprogress=function(te){te.total>0&&(te.percent=te.loaded/te.total*100),V.onProgress(te)});var G=new FormData;V.data&&Object.keys(V.data).forEach(function(X){var te=V.data[X];if(Array.isArray(te)){te.forEach(function(ee){G.append(X+"[]",ee)});return}G.append(X,V.data[X])}),V.file instanceof Blob?G.append(V.filename,V.file,V.file.name):G.append(V.filename,V.file),W.onerror=function(te){V.onError(te)},W.onload=function(){return W.status<200||W.status>=300?V.onError(S(V,W),g(W)):V.onSuccess(g(W),W)},W.open(V.method,V.action,!0),V.withCredentials&&"withCredentials"in W&&(W.withCredentials=!0);var J=V.headers||{};return J["X-Requested-With"]!==null&&W.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(J).forEach(function(X){J[X]!==null&&W.setRequestHeader(X,J[X])}),W.send(G),{abort:function(){W.abort()}}}var d=+new Date,w=0;function p(){return"rc-upload-"+d+"-"+ ++w}function a(V,W){return V.indexOf(W,V.length-W.length)!==-1}var f=function(V,W){if(V&&W){var G=Array.isArray(W)?W:W.split(","),J=V.name||"",X=V.type||"",te=X.replace(/\/.*$/,"");return G.some(function(ee){var be=ee.trim();return be.charAt(0)==="."?a(J.toLowerCase(),be.toLowerCase()):/\/\*$/.test(be)?te===be.replace(/\/.*$/,""):X===be})}return!0};function x(V,W){var G=V.createReader(),J=[];function X(){G.readEntries(function(te){var ee=Array.prototype.slice.apply(te);J=J.concat(ee);var be=!ee.length;be?W(J):X()})}X()}var y=function(W,G,J){var X=function te(ee,be){be=be||"",ee.isFile?ee.file(function(ge){J(ge)&&(ee.fullPath&&!ge.webkitRelativePath&&(Object.defineProperties(ge,{webkitRelativePath:{writable:!0}}),ge.webkitRelativePath=ee.fullPath.replace(/^\//,""),Object.defineProperties(ge,{webkitRelativePath:{writable:!1}})),G([ge]))}):ee.isDirectory&&x(ee,function(ge){ge.forEach(function(je){te(je,""+be+ee.name+"/")})})};W.forEach(function(te){X(te.webkitGetAsEntry())})},m=y,O=Object.assign||function(V){for(var W=1;W=0)continue;if(!Object.prototype.hasOwnProperty.call(V,J))continue;G[J]=V[J]}return G}function b(V,W){if(!(V instanceof W))throw new TypeError("Cannot call a class as a function")}function E(V,W){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:V}function t(V,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);V.prototype=Object.create(W&&W.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(V,W):V.__proto__=W)}var C=function(W){return Object.keys(W).reduce(function(G,J){return(J.substr(0,5)==="data-"||J.substr(0,5)==="aria-"||J==="role")&&(G[J]=W[J]),G},{})},A=function(V){t(W,V);function W(){var G,J,X,te;b(this,W);for(var ee=arguments.length,be=Array(ee),ge=0;ge3&&(d=_.call(d,1));for(var p=g.length,a=0;a4&&(d=_.call(d,1,d.length-1));for(var p=d[d.length-1],a=g.length,f=0;fthis._ux||i(E-this._yi)>this._uy||this._len<5;return this.addData(s.L,b,E),this._ctx&&t&&(this._needsDash()?this._dashedLineTo(b,E):this._ctx.lineTo(b,E)),t&&(this._xi=b,this._yi=E),this},bezierCurveTo:function(b,E,t,C,A,v){return this.addData(s.C,b,E,t,C,A,v),this._ctx&&(this._needsDash()?this._dashedBezierTo(b,E,t,C,A,v):this._ctx.bezierCurveTo(b,E,t,C,A,v)),this._xi=A,this._yi=v,this},quadraticCurveTo:function(b,E,t,C){return this.addData(s.Q,b,E,t,C),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(b,E,t,C):this._ctx.quadraticCurveTo(b,E,t,C)),this._xi=t,this._yi=C,this},arc:function(b,E,t,C,A,v){return this.addData(s.A,b,E,t,t,C,A-C,0,v?0:1),this._ctx&&this._ctx.arc(b,E,t,C,A,v),this._xi=y(A)*t+b,this._yi=m(A)*t+E,this},arcTo:function(b,E,t,C,A){return this._ctx&&this._ctx.arcTo(b,E,t,C,A),this},rect:function(b,E,t,C){return this._ctx&&this._ctx.rect(b,E,t,C),this.addData(s.R,b,E,t,C),this},closePath:function(){this.addData(s.Z);var b=this._ctx,E=this._x0,t=this._y0;return b&&(this._needsDash()&&this._dashedLineTo(E,t),b.closePath()),this._xi=E,this._yi=t,this},fill:function(b){b&&b.fill(),this.toStatic()},stroke:function(b){b&&b.stroke(),this.toStatic()},setLineDash:function(b){if(b instanceof Array){this._lineDash=b,this._dashIdx=0;for(var E=0,t=0;tE.length&&(this._expandData(),E=this.data);for(var t=0;t0&&R<=b||c<0&&R>=b||c===0&&(M>0&&k<=E||M<0&&k>=E);){if(V=this._dashIdx,I=A[V],R+=c*I,k+=M*I,this._dashIdx=(V+1)%F,c>0&&Ro||M>0&&kl)continue;v[V%2?"moveTo":"lineTo"](c>=0?f(R,b):x(R,b),M>=0?f(k,E):x(k,E))}c=R-b,M=k-E,this._dashOffset=-O(c*c+M*M)},_dashedBezierTo:function(b,E,t,C,A,v){var o=this._dashSum,l=this._dashOffset,c=this._lineDash,M=this._ctx,P=this._xi,R=this._yi,k,I,F,V=Y.cubicAt,W=0,G=this._dashIdx,J=c.length,X,te,ee=0;for(l<0&&(l=o+l),l%=o,k=0;k<1;k+=.1)I=V(P,b,t,A,k+.1)-V(P,b,t,A,k),F=V(R,E,C,v,k+.1)-V(R,E,C,v,k),W+=O(I*I+F*F);for(;Gl);G++);for(k=(ee-l)/W;k<=1;)X=V(P,b,t,A,k),te=V(R,E,C,v,k),G%2?M.moveTo(X,te):M.lineTo(X,te),k+=c[G]/W,G=(G+1)%J;G%2!==0&&M.lineTo(A,v),I=A-X,F=v-te,this._dashOffset=-O(I*I+F*F)},_dashedQuadraticTo:function(b,E,t,C){var A=t,v=C;t=(t+2*b)/3,C=(C+2*E)/3,b=(this._xi+2*b)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(b,E,t,C,A,v)},toStatic:function(){var b=this.data;b instanceof Array&&(b.length=this._len,r&&(this.data=new Float32Array(b)))},getBoundingRect:function(){d[0]=d[1]=p[0]=p[1]=Number.MAX_VALUE,w[0]=w[1]=a[0]=a[1]=-Number.MAX_VALUE;for(var b=this.data,E=0,t=0,C=0,A=0,v=0;vc||i(l-v)>M||R===P-1)&&(b.lineTo(o,l),A=o,v=l);break;case s.C:b.bezierCurveTo(E[R++],E[R++],E[R++],E[R++],E[R++],E[R++]),A=E[R-2],v=E[R-1];break;case s.Q:b.quadraticCurveTo(E[R++],E[R++],E[R++],E[R++]),A=E[R-2],v=E[R-1];break;case s.A:var I=E[R++],F=E[R++],V=E[R++],W=E[R++],G=E[R++],J=E[R++],X=E[R++],te=E[R++],ee=V>W?V:W,be=V>W?1:V/W,ge=V>W?W/V:1,je=Math.abs(V-W)>.001,He=G+J;je?(b.translate(I,F),b.rotate(X),b.scale(be,ge),b.arc(0,0,ee,G,He,1-te),b.scale(1/be,1/ge),b.rotate(-X),b.translate(-I,-F)):b.arc(I,F,ee,G,He,1-te),R===1&&(t=y(G)*V+I,C=m(G)*W+F),A=y(He)*V+I,v=m(He)*W+F;break;case s.R:t=A=E[R],C=v=E[R+1],b.rect(E[R++],E[R++],E[R++],E[R++]);break;case s.Z:b.closePath(),A=t,v=C}}}},u.CMD=s;var h=u;Ye.exports=h},ItGF:function(Ye,ie){var _={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?_={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?_={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?_={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:_=j(navigator.userAgent);var Y=_;function j(L){var U={},S={},g=L.match(/Firefox\/([\d.]+)/),s=L.match(/MSIE\s([\d.]+)/)||L.match(/Trident\/.+?rv:(([\d.]+))/),d=L.match(/Edge\/([\d.]+)/),w=/micromessenger/i.test(L);return g&&(S.firefox=!0,S.version=g[1]),s&&(S.ie=!0,S.version=s[1]),d&&(S.edge=!0,S.version=d[1]),w&&(S.weChat=!0),{browser:S,os:U,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!S.ie&&!S.edge,pointerEventsSupported:"onpointerdown"in window&&(S.edge||S.ie&&S.version>=11),domSupported:typeof document!="undefined"}}Ye.exports=Y},JNOM:function(Ye,ie,_){"use strict";_.r(ie);var Y=_("Znn+"),j=_("ZTPi"),L=_("qVdP"),U=_("jsC+"),S=_("+L6B"),g=_("2/Rp"),s=_("sPJy"),d=_("bE4q"),w=_("miYZ"),p=_("tsqr"),a=_("lUTK"),f=_("BvKs"),x=_("9og8"),y=_("2qtc"),m=_("kLXV"),O=_("oBTY"),i=_("k1fw"),r=_("tJVT"),u=_("PpiC"),h=_("WmNS"),b=_.n(h),E=_("q1tI"),t=_.n(E),C=_("ErOA"),A=_("Ty5D"),v=_("55Ip"),o=_("9kvl"),l=_("jhfD"),c=_("Llu2"),M=_("0NbB"),P=_("V0Rq"),R=_("1vsH"),k=_("mgmH"),I=_("7Kak"),F=_("9yH6"),V=_("DjyN"),W=_("NUBc"),G=_("giR+"),J=_("fyUT"),X=_("5NDa"),te=_("5rEg"),ee=_("sRBo"),be=_("kaz8"),ge=_("g9YV"),je=_("wCAj"),He=_("BoS7"),nt=_("Sdc0"),Ge=_("14J3"),he=_("BMrR"),ce=_("jCWc"),Ee=_("kPKH"),fe=_("5Dmo"),Ne=_("3S7+"),Ce=_("jrin"),xe=_("y8nQ"),ze=_("Vl3Y"),Le=_("wd/R"),Fe=_.n(Le),Pe=function(In){var En=In.shixunHomeworks,Or=In.dispatch,yr=Object(A.i)();return t.a.createElement(m.a,{centered:!0,title:"\u63D0\u793A",visible:En.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(x.a)(b.a.mark(function zr(){var Zn;return b.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.next=2,Object(C.a)("/api/myshixuns/".concat(En.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"post",body:{course_id:yr.coursesId}});case 2:Zn=rr.sent,Zn.status===0&&(p.b.success("\u5220\u9664\u6210\u529F"),Or({type:"shixunHomeworks/setActionTabs",payload:{}}),Or({type:"shixunHomeworks/getWorkList",payload:Object(i.a)({},En.actionTabs.params)}));case 4:case"end":return rr.stop()}},zr)})),onCancel:function(){Or({type:"shixunHomeworks/setActionTabs",payload:{}})}},t.a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),t.a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))},Ve=Object(o.a)(function(tr){var In=tr.shixunHomeworks;return{shixunHomeworks:In}})(Pe),at=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr=In.exercise,sa=In.dispatch,Qn=Object(A.i)(),Hr=Object(E.useState)(!0),pa=Object(r.a)(Hr,2),Ma=pa[0],la=pa[1],Ir=ze.a.useForm(),mr=Object(r.a)(Ir,1),Kr=mr[0],ra=Pr.actionTabs;return Object(E.useEffect)(function(){if(Pr.actionTabs.key==="\u66F4\u6539\u8BC4\u9605"){var Er,wn,ma,Mr;Kr.resetFields(),Kr.setFieldsValue({subjective_score:ra==null||((Er=ra.selectArrs)===null||Er===void 0||((wn=Er.record)===null||wn===void 0))?void 0:wn.subjective_score,objective_score:ra==null||((ma=ra.selectArrs)===null||ma===void 0||((Mr=ma.record)===null||Mr===void 0))?void 0:Mr.objective_score})}},[Pr.actionTabs.key]),t.a.createElement(t.a.Fragment,null,t.a.createElement(m.a,{centered:!0,title:"\u8BC4\u9605",visible:Pr.actionTabs.key==="\u66F4\u6539\u8BC4\u9605",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(x.a)(b.a.mark(function Er(){var wn,ma,Mr,$e;return b.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return vt.next=2,Kr.validateFields();case 2:return Mr=Kr.getFieldValue(),vt.next=5,Object(P.O)(Object(i.a)(Object(i.a)({},Mr),{},{id:Qn.categoryId,user_id:ra==null||((wn=ra.selectArrs)===null||wn===void 0||((ma=wn.record)===null||ma===void 0))?void 0:ma.user_id}));case 5:$e=vt.sent,$e.status===0&&(p.b.success("\u8BC4\u9605\u6210\u529F"),Kr.resetFields(),sa({type:"exercise/setActionTabs",payload:{}}),sa({type:"exercise/getExerciseList",payload:Object(i.a)({},Pr.actionTabs.params)}));case 7:case"end":return vt.stop()}},Er)})),onCancel:function(){sa({type:"exercise/setActionTabs",payload:{}})}},t.a.createElement("div",{className:"pl30"},t.a.createElement(ze.a,{form:Kr},t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement(ze.a.Item,{name:"subjective_score",label:"\u4E3B\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},t.a.createElement(J.a,{min:0,max:(ra==null||((En=ra.selectArrs)===null||En===void 0||((Or=En.exercise_types)===null||Or===void 0))?void 0:Or.subjective_score)*1,style:{width:150},placeholder:"\u8BF7\u586B\u5199\u4E3B\u89C2\u9898\u6210\u7EE9"}))),t.a.createElement(Ee.a,{flex:1},t.a.createElement("div",null,t.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",ra==null||((yr=ra.selectArrs)===null||yr===void 0||((zr=yr.exercise_types)===null||zr===void 0))?void 0:zr.subjective_score,"\u5206")))),t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement(ze.a.Item,{name:"objective_score",label:"\u5BA2\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},t.a.createElement(J.a,{min:0,max:(ra==null||((Zn=ra.selectArrs)===null||Zn===void 0||((An=Zn.exercise_types)===null||An===void 0))?void 0:An.objective_score)*1,style:{width:150},width:150,placeholder:"\u8BF7\u586B\u5199\u5BA2\u89C2\u9898\u6210\u7EE9"}))),t.a.createElement(Ee.a,{flex:1},t.a.createElement("div",null,t.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",ra==null||((rr=ra.selectArrs)===null||rr===void 0||((ar=rr.exercise_types)===null||ar===void 0))?void 0:ar.objective_score,"\u5206"))))))))},At=Object(o.a)(function(tr){var In=tr.exercise;return{exercise:In}})(at),Rt=[{name:"\u672A\u8BC4\u9605",id:0,type:"unreview_counts"},{name:"\u8BC4\u9605\u4E2D",id:2,type:"reviewing_counts"},{name:"\u5DF2\u8BC4\u9605",id:1,type:"review_counts"}],tn=[{name:"\u672A\u5F00\u59CB",id:0,type:"unanswer_users"},{name:"\u8003\u8BD5\u4E2D",id:1,type:"answering_users"},{name:"\u5DF2\u4EA4\u5377",id:2,type:"answer_users"},{name:"\u5DF2\u4EA4\u5377/\u672A\u7B54",id:3,type:"commit_with_no_answers_users"}],Qt=[{name:"\u65E0\u9700\u8865\u8003",id:0,type:"unmake_up_users_count"},{name:"\u53C2\u52A0\u8865\u8003",id:1,type:"make_up_users_count"}],Cn=_("BdwD"),Un=_("iQDF"),mt=_("+eQT"),lt=function(In){var En,Or,yr=In.exercise,zr=In.dispatch,Zn=Object(A.i)(),An=Object(E.useState)(!0),rr=Object(r.a)(An,2),ar=rr[0],Pr=rr[1],sa=ze.a.useForm(),Qn=Object(r.a)(sa,1),Hr=Qn[0],pa=Object(E.useState)(!1),Ma=Object(r.a)(pa,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)({}),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=yr.actionTabs;Object(E.useEffect)(function(){if(yr.actionTabs.key==="\u5EF6\u65F6"){var pt,vt,Me,we;Ir(!1),Hr.resetFields(),Hr.setFieldsValue({subjective_score:wn==null||((pt=wn.selectArrs)===null||pt===void 0||((vt=pt.record)===null||vt===void 0))?void 0:vt.subjective_score,objective_score:wn==null||((Me=wn.selectArrs)===null||Me===void 0||((we=Me.record)===null||we===void 0))?void 0:we.objective_score})}},[yr.actionTabs.key]);var ma=function(vt){var Me,we;return console.log("current:",vt,Fe()(wn==null||((Me=wn.selectArrs)===null||Me===void 0)?void 0:Me.exercise_end_at).startOf("minute")),vt&&(vt>Fe()(wn==null||((we=wn.selectArrs)===null||we===void 0)?void 0:we.exercise_end_at).endOf("minute")||vt<=Fe()().startOf("day"))};function Mr(pt,vt){for(var Me=[],we=pt;weFe()(wn==null||((we=wn.selectArrs)===null||we===void 0)?void 0:we.exercise_end_at)){var Ke;Hr.setFieldsValue({time:Fe()(wn==null||((Ke=wn.selectArrs)===null||Ke===void 0)?void 0:Ke.exercise_end_at).format("YYYY-MM-DD HH:mm")})}}})))),t.a.createElement(he.a,{style:{marginLeft:78,marginTop:4}},t.a.createElement(ze.a.Item,{name:"is_clear",className:"ml10",initialValue:!1,valuePropName:"checked"},t.a.createElement(be.a,null,"\u786E\u8BA4\u6E05\u9664\u8BE5\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570")))))))},Ht=Object(o.a)(function(tr){var In=tr.exercise;return{exercise:In}})(lt),sn=_("kaH+"),Tt=_("dhSg"),wt=_("xKgJ"),Qe=_("hjlX"),Je=_.n(Qe),Xe=function(In){var En=In.item,Or=In.renderText,yr=Object(A.i)(),zr=Object(E.useState)(),Zn=Object(r.a)(zr,2),An=Zn[0],rr=Zn[1],ar=function(){var Pr=Object(x.a)(b.a.mark(function sa(){var Qn;return b.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:if(!An){pa.next=2;break}return pa.abrupt("return");case 2:return pa.next=4,Object(P.B)({id:yr.categoryId,user_id:En==null?void 0:En.user_id});case 4:Qn=pa.sent,Qn&&rr(Qn);case 6:case"end":return pa.stop()}},sa)}));return function(){return Pr.apply(this,arguments)}}();return t.a.createElement(Ne.a,{onVisibleChange:ar,title:t.a.createElement("div",null,"\u5355\u9009\u9898 ",An==null?void 0:An.single_question_score,"\u5206 ",t.a.createElement("br",null),"\u591A\u9009\u9898 ",An==null?void 0:An.multiple_question_score,"\u5206 ",t.a.createElement("br",null),"\u5224\u65AD\u9898 ",An==null?void 0:An.judgement_question_score,"\u5206 ",t.a.createElement("br",null),"\u586B\u7A7A\u9898 ",An==null?void 0:An.completion_question_score,"\u5206 ",t.a.createElement("br",null),"\u5B9E\u8BAD\u9898 ",An==null?void 0:An.shixun_question_score,"\u5206")},Or)},Oe=Xe,Ae=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa,Qn,Hr,pa,Ma,la,Ir,mr,Kr,ra,Er,wn,ma,Mr,$e,pt,vt,Me,we,Ke,De,st,ct,Bt,gt,zt,Ft,on=In.exercise,yn=In.loading,zn=In.dispatch,gr=In.globalSetting,Xr=In.checkDomainAuthority,Jr=In.getparams,aa=Object(u.a)(In,["exercise","loading","dispatch","globalSetting","checkDomainAuthority","getparams"]),hn=Object(A.h)(),Lr=Object(A.i)(),oa=Object(E.useState)(Object(i.a)({},Lr)),ya=Object(r.a)(oa,2),yt=ya[0],Fr=ya[1],un=on.exerciseList,Rn=on.commonHeader,xr=Object(E.useState)({}),Ca=Object(r.a)(xr,2),Nr=Ca[0],Sr=Ca[1],xa=Object(E.useState)(""),Vr=Object(r.a)(xa,2),nr=Vr[0],Wr=Vr[1],Wn=Object(E.useState)(0),pn=Object(r.a)(Wn,2),Rr=pn[0],qn=pn[1],Ar=Object(E.useState)({}),Da=Object(r.a)(Ar,2),Ia=Da[0],La=Da[1],Br=Object(E.useState)(!1),$r=Object(r.a)(Br,2),ka=$r[0],Na=$r[1],qa=Object(E.useState)("alert"),ri=Object(r.a)(qa,2),ni=ri[0],Ga=ri[1],Ai=Object(E.useState)(0),Di=Object(r.a)(Ai,2),$a=Di[0],Va=Di[1],di=Object(E.useState)(!1),Zi=Object(r.a)(di,2),Ao=Zi[0],Ui=Zi[1],qi=Object(E.useState)(!1),$i=Object(r.a)(qi,2),wi=$i[0],eo=$i[1],fo=ze.a.useForm(),ho=Object(r.a)(fo,1),Pi=ho[0],Ra=Object(E.useState)([]),Sa=Object(r.a)(Ra,2),wa=Sa[0],Ja=Sa[1],ai=Object(E.useState)(!0),yi=Object(r.a)(ai,2),oi=yi[0],ro=yi[1],mo=Object(E.useRef)(),pi=Object(E.useState)(1),Ki=Object(r.a)(pi,2),vi=Ki[0],Gi=Ki[1],Vi=Object(E.useState)(""),So=Object(r.a)(Vi,2),po=So[0],vo=So[1],go=Object(E.useState)(),Xi=Object(r.a)(go,2),oo=Xi[0],Ro=Xi[1],bo=Object(E.useState)(!1),so=Object(r.a)(bo,2),wo=so[0],To=so[1],Do=Object(E.useState)(10),Oi=Object(r.a)(Do,2),ti=Oi[0],_i=Oi[1];Object(E.useEffect)(function(){var ca;if(Object(wt.c)()){var dr;qn((dr=un.exercise_types)===null||dr===void 0?void 0:dr.total_users)}else if(un!=null&&(ca=un.exercise_types)!==null&&ca!==void 0&&ca.score_open){var cr;qn((cr=un.exercise_types)===null||cr===void 0?void 0:cr.unanswer_users)}},[un]),Object(E.useEffect)(function(){var ca,dr={};if(hn!=null&&(ca=hn.query)!==null&&ca!==void 0&&ca.exercise_group_id){var cr;if(dr={review:[0,2],commit_status:[2,3]},(hn==null||((cr=hn.query)===null||cr===void 0)?void 0:cr.exercise_group_id)!=="0"){var da;dr.exercise_group_id=[Number(hn==null||((da=hn.query)===null||da===void 0)?void 0:da.exercise_group_id)]}Pi.setFieldsValue(Object(i.a)({},dr))}yt=Object(i.a)(Object(i.a)(Object(i.a)({},yt),dr),{},{page:1,limit:ti}),Fr(Object(i.a)({},yt)),ui(),zn({type:"exercise/clearData",payload:{key:"reviewExercise"}})},[]);var ui=function(){var ca=Object(x.a)(b.a.mark(function dr(){return b.a.wrap(function(da){for(;;)switch(da.prev=da.next){case 0:zn({type:"exercise/getExerciseList",payload:yt});case 1:case"end":return da.stop()}},dr)}));return function(){return ca.apply(this,arguments)}}();function Ei(ca){return yo.apply(this,arguments)}function yo(){return yo=Object(x.a)(b.a.mark(function ca(dr){var cr,da,ja,Fa,Ha;return b.a.wrap(function(gi){for(;;)switch(gi.prev=gi.next){case 0:return Ro(dr==null?void 0:dr.exercise_user_id),To(dr.commit_status===2||dr.commit_status===3),Ui(!0),gi.next=5,Object(C.a)("/api/exercises/".concat(yt.categoryId,"/student_info.json"),{method:"get",params:{exercise_user_id:dr==null?void 0:dr.exercise_user_id}});case 5:Ha=gi.sent,(Ha==null||((cr=Ha.data)===null||cr===void 0||((da=cr.exercise_user_photos)===null||da===void 0))?void 0:da.length)>0?Na(!0):p.b.info("\u5F53\u524D\u6682\u65E0\u7167\u7247"),Ja(Ha==null||((ja=Ha.data)===null||ja===void 0)?void 0:ja.exercise_user_photos),Va(Ha==null||((Fa=Ha.data)===null||Fa===void 0)?void 0:Fa.alert_count),Ui(!1);case 10:case"end":return gi.stop()}},ca)})),yo.apply(this,arguments)}var ji=function(dr){yt.page=1;var cr=Object.assign({},Pi.getFieldValue());if(Object.keys(cr).map(function(da){if(da==="objective_score_gte"||da==="objective_score_lte")return;cr[da].includes("all")?(delete yt[da],Pi.setFieldsValue(Object(Ce.a)({},da,"all"))):(yt[da]=cr[da],cr[da]==""||!cr[da]?Pi.setFieldsValue(Object(Ce.a)({},da,"all")):Pi.setFieldsValue(Object(Ce.a)({},da,yt[da])))}),dr.objective_score_gte||dr.objective_score_lte){if(cr.objective_score_gte>cr.objective_score_lte)return Pi.setFieldsValue({objective_score_lte:cr.objective_score_gte}),!1;if(cr.objective_score_gte!=""&&cr.objective_score_lte!=""&&cr.objective_score_gte&&cr.objective_score_lte)yt.objective_score_lte=cr.objective_score_lte,yt.objective_score_gte=cr.objective_score_gte;else return delete yt.objective_score_lte,delete yt.objective_score_gte,!1}Fr(Object(i.a)({},yt)),Jr(Object(i.a)({},yt)),zn({type:"exercise/getExerciseList",payload:yt})},Po=function(dr,cr){yt.page=dr,yt.limit=cr,zn({type:"exercise/getExerciseList",payload:Object(i.a)({},yt)})},Oo=function(){var dr=yt;dr.limit=Number(ti),dr.page=Number(1),Fr(dr),ui()},Mi=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",width:80,align:"center",render:function(dr,cr,da){return t.a.createElement(Ne.a,{title:((yt.page||1)-1)*20+da+1},t.a.createElement("span",null,((yt.page||1)-1)*20+da+1))}},{title:"\u59D3\u540D",dataIndex:"user_name",fixed:"left",width:120,ellipsis:!0,align:"left",render:function(dr,cr){return t.a.createElement("div",null,dr||"--",!!(cr!=null&&cr.delayed_at)&&t.a.createElement(Ne.a,{title:t.a.createElement("div",null,"\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u8C03\u6574\u81F3",t.a.createElement("span",{className:"ml5"},Fe()(cr.delayed_at).format("YYYY-MM-DD HH:mm")))},t.a.createElement("span",{className:"iconfont icon-shizhong c-blue"})))}},!(un!=null&&(En=un.exercise_types)!==null&&En!==void 0&&En.is_excellent)&&{title:"\u5B66\u53F7",ellipsis:!0,dataIndex:"student_id",width:140,align:"left",sorter:!0,render:function(dr){return dr||"--"}},!(un!=null&&(Or=un.exercise_types)!==null&&Or!==void 0&&Or.is_excellent)&&(un==null||((yr=un.exercise_types)===null||yr===void 0)?void 0:yr.groups_count)!==0&&{title:"\u5206\u73ED",width:220,ellipsis:!0,dataIndex:"user_group_name",align:"left",render:function(dr){return dr||"--"}},{title:"\u6700\u7EC8\u6210\u7EE9",width:100,dataIndex:"score",align:"center",sorter:!0,render:function(dr,cr){return!cr.open_total_score&&Object(wt.s)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(dr=typeof dr=="number"?Number(dr):dr,dr===100?t.a.createElement("span",{className:"c-green"},dr||"--"):dr>60?t.a.createElement("span",{className:"c-orange"},dr||"--"):t.a.createElement("span",null,dr||"--"))}},!((un==null||((zr=un.exercise_types)===null||zr===void 0)?void 0:zr.objective)!==1||(un==null||((Zn=un.exercise_types)===null||Zn===void 0)?void 0:Zn.objective)===1&&(un==null||((An=un.exercise_types)===null||An===void 0)?void 0:An.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",width:100,render:function(dr,cr){if(!cr.open_total_score&&Object(wt.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";dr=typeof dr=="number"?Number(dr):dr;var da;return dr>=0&&dr<=60?da=t.a.createElement("span",null,dr):dr===100?da=t.a.createElement("span",{className:"c-green"},dr):dr>60?da=t.a.createElement("span",{className:"c-orange"},dr):da="--",t.a.createElement(Oe,{renderText:da,item:cr})}},!((un==null||((rr=un.exercise_types)===null||rr===void 0)?void 0:rr.subjective)!==1||(un==null||((ar=un.exercise_types)===null||ar===void 0)?void 0:ar.subjective)===1&&(un==null||((Pr=un.exercise_types)===null||Pr===void 0)?void 0:Pr.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",width:100,dataIndex:"subjective_score",align:"center",render:function(dr,cr){if(!cr.open_total_score&&Object(wt.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";dr=typeof dr=="number"?Number(dr):dr;var da;return dr===0?da=t.a.createElement("span",null,dr," ",t.a.createElement("span",{className:"c-red"}," (\u5F85\u8BC4\u5BA1)")):dr>0&&dr<=60?da=t.a.createElement("span",null,dr):dr===100?da=t.a.createElement("span",{className:"c-green"},dr):dr>60?da=t.a.createElement("span",{className:"c-orange"},dr):da="--",da}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",width:130,align:"left",render:function(dr,cr){return dr===0?t.a.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):dr===1?t.a.createElement("span",{style:{color:"#DF3042"}},!cr.is_make_up&&"\u8003\u8BD5\u4E2D",cr.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):dr===2?t.a.createElement("span",{style:{color:"#5AB891"}},!cr.is_make_up&&"\u5DF2\u4EA4\u5377",cr.is_make_up&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)"):t.a.createElement("span",{style:{color:"#5AB891"}},!cr.is_make_up&&"\u5DF2\u4EA4\u5377\uFF08\u672A\u7B54\uFF09",cr.is_make_up&&"\u5DF2\u4EA4\u5377/\u672A\u7B54\uFF08\u8865\u8003\uFF09")}},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(dr){return dr?Fe()(dr).format("YYYY-MM-DD HH:mm"):"--"}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(dr){return dr?Fe()(dr).format("YYYY-MM-DD HH:mm"):"--"}},(Rn==null?void 0:Rn.screen_open)&&{title:t.a.createElement("span",null,"\u5207\u5C4F\u6B21\u6570 ",t.a.createElement(Ne.a,{title:"\u7EA2\u8272\u4EE3\u8868\u5B66\u751F\u5207\u5C4F\u8D85\u8FC7\u89C4\u5B9A\u6B21\u6570\u88AB\u5F3A\u5236\u4EA4\u5377"},t.a.createElement("span",{className:"icon-xiaowenhao"}))),dataIndex:"screen_used_num",width:145,ellipsis:!0,align:"center",render:function(dr,cr){return t.a.createElement("span",{className:dr>(cr==null?void 0:cr.screen_total_num)&&"c-red"},dr,"/",cr==null?void 0:cr.screen_total_num)}},(Rn==null?void 0:Rn.exercise_status)>1&&(Rn==null?void 0:Rn.open_camera)&&Object(wt.c)()&&!((sa=gr.setting)!==null&&sa!==void 0&&sa.is_local)&&{title:"\u8003\u8BD5\u7167\u7247",dataIndex:"photo_count",align:"center",width:100,render:function(dr,cr){return cr.commit_status>0?t.a.createElement("a",{onClick:function(){Ei(cr)}},"".concat(dr||0,"/").concat(Rn==null?void 0:Rn.photo_count)):"--"}},(Rn==null?void 0:Rn.ip_bind)&&Object(wt.d)()&&{title:"\u8003\u8BD5IP",dataIndex:"last_ip",align:"center",width:100,render:function(dr,cr){return t.a.createElement(t.a.Fragment,null,dr||"--",cr.commit_status===1&&Rn.ip_bind&&cr.last_ip&&t.a.createElement(g.a,{type:"link",onClick:Object(x.a)(b.a.mark(function da(){var ja;return b.a.wrap(function(Ha){for(;;)switch(Ha.prev=Ha.next){case 0:ja=m.a.confirm({title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u89E3\u9664\u7ED1\u5B9A"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ja.destroy()}}))),width:500,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",className:"custom-modal-divider",content:t.a.createElement("div",null,"\u4E3A\u5B66\u751F\u89E3\u9664\u8003\u8BD5IP\u7ED1\u5B9A\u540E\uFF0C\u5B66\u751F\u53EF\u4EE5\u4F7F\u7528\u65B0\u7684IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002",t.a.createElement("span",{className:"c-red"},"\u5982\u679C\u8BE5\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u5C06\u65E0\u6CD5\u4F5C\u7B54\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u5165\u8003\u8BD5\u3002"),"\u60A8\u786E\u5B9A\u8981\u89E3\u9664\u8BE5\u5B66\u751F\u7684\u8003\u8BD5IP\u7ED1\u5B9A\uFF1F"),onOk:function(){var ci=Object(x.a)(b.a.mark(function Ri(){var ki;return b.a.wrap(function(li){for(;;)switch(li.prev=li.next){case 0:return li.next=2,Object(P.bb)({id:yt.categoryId,exercise_user_id:cr.exercise_user_id});case 2:ki=li.sent,ki.status===0&&(p.b.success("\u89E3\u7ED1\u6210\u529F"),zn({type:"exercise/getExerciseList",payload:yt}));case 4:case"end":return li.stop()}},Ri)}));function gi(){return ci.apply(this,arguments)}return gi}()});case 1:case"end":return Ha.stop()}},da)}))},"\u89E3\u7ED1"))}},(Rn==null?void 0:Rn.open_camera)&&Object(wt.d)()&&Rn.exercise_status<3&&!((Qn=gr.setting)!==null&&Qn!==void 0&&Qn.is_local)&&{title:"\u5141\u8BB8\u4E0D\u62CD\u6444",dataIndex:"close_camera",align:"center",width:100,render:function(dr,cr){return t.a.createElement(nt.a,{checked:dr,onClick:Object(x.a)(b.a.mark(function da(){return b.a.wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:dr?m.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",null,"\u4E0D\u5141\u8BB8\u4FEE\u6539"),okText:"\u786E\u8BA4"}):m.a.confirm({title:"\u5141\u8BB8\u4E0D\u6444\u50CF\u8B66\u544A",content:t.a.createElement("div",null,"\u4E3A\u4FDD\u8BC1\u8003\u8BD5\u516C\u5E73\uFF0C\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7684\u6444\u50CF\u5934\u3002\u5982\u5B66\u751F\u786C\u4EF6\u8BBE\u65BD\u786E\u6709\u95EE\u9898\uFF0C\u4E3A\u4FDD\u8BC1\u5B66\u751F\u8003\u8BD5\u6743\u5229\uFF0C\u6559\u5E08\u53EF\u4E34\u65F6\u53D6\u6D88\u9650\u5236\uFF0C\u5141\u8BB8\u5B66\u751F\u53C2\u8003\u3002 \u672C\u64CD\u4F5C\u4E0D\u53EF\u64A4\u56DE\uFF0C\u4E0D\u53EF\u4FEE\u6539\u3002 \u60A8\u786E\u8BA4\u540C\u610F\u8BE5\u5B66\u751F\u4E0D\u5F00\u542F\u6444\u50CF\u5934\u53C2\u52A0\u8003\u8BD5\u5417\uFF1F"),onOk:function(){var Ha=Object(x.a)(b.a.mark(function gi(){var Ri;return b.a.wrap(function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:return Ci.next=2,Object(P.c)(Object(i.a)(Object(i.a)({},yt),{},{exercise_user_id:cr.exercise_user_id}));case 2:Ri=Ci.sent,(Ri==null?void 0:Ri.status)===0&&(p.b.success("\u64CD\u4F5C\u6210\u529F"),zn({type:"exercise/getExerciseList",payload:Object(i.a)({},yt)}));case 4:case"end":return Ci.stop()}},gi)}));function ci(){return Ha.apply(this,arguments)}return ci}()});case 1:case"end":return Fa.stop()}},da)}))})}},Object(wt.c)()&&{title:"\u8BC4\u9605\u72B6\u6001",width:130,dataIndex:"has_comment",align:"center",render:function(dr,cr){return!dr&&cr.review_status?"\u8BC4\u9605\u4E2D":dr?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},((Rn==null?void 0:Rn.assistant_auth)||Object(wt.c)()||Object(wt.s)())&&Xr&&{title:"\u64CD\u4F5C",fixed:"right",dataInex:"action",align:"center",width:236,render:function(dr,cr){return t.a.createElement("div",null,Object(wt.c)()&&t.a.createElement(g.a,{ghost:!0,type:"primary",size:"small",disabled:cr.commit_status<2},t.a.createElement("a",{className:cr.commit_status>1?"c-blue":"c-black",href:cr.commit_status>1&&"/classrooms/".concat(yt.coursesId,"/exercise/").concat(yt.categoryId,"/review/").concat(cr.login),onClick:function(ja){cr.commit_status<2&&ja.preventDefault(),cr.commit_status===3&&(ja.preventDefault(),zn({type:"exercise/setActionTabs",payload:{key:"\u66F4\u6539\u8BC4\u9605",selectArrs:{record:Object(i.a)({},cr),exercise_types:Object(i.a)({},un==null?void 0:un.exercise_types)},params:Object(i.a)({},yt)}}))}},cr.has_comment&&"\u66F4\u6539\u8BC4\u9605",!cr.has_comment&&"\u8BC4\u9605")),!Object(wt.s)()&&["\u8003\u8BD5\u4E2D"].includes(R.c[Rn.exercise_status])&&t.a.createElement(g.a,{ghost:!0,type:"primary",disabled:(cr==null?void 0:cr.commit_status)>1,className:"ml10",size:"small",onClick:function(){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06\u8BE5\u5B66\u751F\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F",onOk:function(){m.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06".concat(cr==null?void 0:cr.user_name,"\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F"),onOk:function(){var Fa=Object(x.a)(b.a.mark(function ci(){var gi;return b.a.wrap(function(ki){for(;;)switch(ki.prev=ki.next){case 0:return ki.next=2,Object(C.a)("/api/exercises/".concat(yt.categoryId,"/commit_exercise_force.json"),{method:"post",body:{user_id:cr==null?void 0:cr.user_id}});case 2:gi=ki.sent,gi.status===0&&zn({type:"exercise/getExerciseList",payload:yt});case 4:case"end":return ki.stop()}},ci)}));function Ha(){return Fa.apply(this,arguments)}return Ha}()})}})}},"\u5F3A\u5236\u4EA4\u5377"),Object(wt.s)()&&cr.commit_status>1&&t.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var ja;if(!(un!=null&&(ja=un.exercise_types)!==null&&ja!==void 0&&ja.answered_open)){p.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}o.d.push("/classrooms/".concat(yt.coursesId,"/exercise/").concat(yt.categoryId,"/users/").concat(cr==null?void 0:cr.login,"?check=true"))}},"\u67E5\u770B"),(Rn==null?void 0:Rn.exercise_time)>0&&Object(wt.d)()&&t.a.createElement(Ne.a,{title:function(){return Object(wt.k)()?"\u60A8\u7684\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u7BA1\u7406\u5458":Rn.exercise_status===3?"\u672C\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u8BF7\u5148\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u4F7F\u672C\u8BD5\u5377\u5904\u4E8E\u201C\u8003\u8BD5\u4E2D\u201D":!1}()},t.a.createElement(g.a,{danger:!0,className:"c-red ml10",size:"small",disabled:function(){return Object(wt.k)()?!0:Rn.exercise_status===3}(),onClick:function(){Object(wt.i)()&&zn({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",selectArrs:cr,exercise_time:Rn.exercise_time,params:Object(i.a)({},yt)}})}},"\u5EF6\u65F6")))}}].filter(function(ca){return!!ca}),si=Object(O.a)(Mi);return si[0]=Object(i.a)({},si[0]),si[(si==null?void 0:si.length)-1]=Object(i.a)({},si[(si==null?void 0:si.length)-1]),si[0].render=function(){return"\u6211"},si[(si==null?void 0:si.length)-1].render=function(){var ca;return un!=null&&(ca=un.current_answer_user)!==null&&ca!==void 0&&ca.login?t.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var cr,da;if(!(un!=null&&(cr=un.exercise_types)!==null&&cr!==void 0&&cr.answered_open)){p.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}o.d.push("/classrooms/".concat(yt.coursesId,"/exercise/").concat(yt.categoryId,"/users/").concat(un==null||((da=un.current_answer_user)===null||da===void 0)?void 0:da.login))}},"\u67E5\u770B"):"--"},t.a.createElement("section",{className:"minH500 bg-white mb50 inline-block w100"},(un==null||((Hr=un.exercise_types)===null||Hr===void 0)?void 0:Hr.score_open)&&Object(wt.s)()&&t.a.createElement(je.a,{hideOnSinglePage:!0,pagination:!1,showHeader:!1,dataSource:[Object(i.a)({},un==null?void 0:un.current_answer_user)],columns:si,scroll:{x:(Mi==null?void 0:Mi.length)*120}}),!Object(wt.c)()&&t.a.createElement("div",{className:"bg-white pt10 pl25 mt15"},!!(un!=null&&(pa=un.exercise_types)!==null&&pa!==void 0&&pa.answer_users)&&t.a.createElement("span",{className:"mr10"},t.a.createElement("span",{style:{color:"#FF954C"}},un==null||((Ma=un.exercise_types)===null||Ma===void 0)?void 0:Ma.answer_users," "),"\u5DF2\u4EA4"),!!(un!=null&&(la=un.exercise_types)!==null&&la!==void 0&&la.unanswer_users)&&t.a.createElement("span",{className:"mr10"},un==null||((Ir=un.exercise_types)===null||Ir===void 0)?void 0:Ir.unanswer_users,"\u672A\u4EA4"),(un==null||((mr=un.exercise_types)===null||mr===void 0)?void 0:mr.exercise_end_time)!=="--"&&t.a.createElement("span",null,"\u5269\u4F59\u63D0\u4EA4\u65F6\u95F4\uFF1A",t.a.createElement("span",{style:{color:"#FF954C"}},un==null||((Kr=un.exercise_types)===null||Kr===void 0)?void 0:Kr.exercise_end_time))),!((ra=un.exercise_types)!==null&&ra!==void 0&&ra.exercise_all_users)&&!Object(wt.s)()&&t.a.createElement(Cn.a,null),(!!((Er=un.exercise_types)!==null&&Er!==void 0&&Er.exercise_all_users)||Object(wt.s)())&&t.a.createElement("aside",null,Object(wt.c)()&&t.a.createElement("aside",{className:"pt20"},t.a.createElement(ze.a,{form:Pi,onValuesChange:ji,initialValues:(wn={},Object(Ce.a)(wn,"commit_status","all"),Object(Ce.a)(wn,"exercise_group_id","all"),Object(Ce.a)(wn,"review","all"),Object(Ce.a)(wn,"is_make_up","all"),wn)},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u9009\u62E9\u73ED\u7EA7:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!((ma=Nr.course_group)!==null&&ma!==void 0&&ma.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},un.course_groups&&un.course_groups.map(function(ca,dr){return t.a.createElement(be.a,{value:ca.exercise_group_id,className:"ml0 mr8"},ca.exercise_group_name,"(",ca.exercise_group_students,")")}))))),t.a.createElement(ze.a.Item,{name:"commit_status"},t.a.createElement(be.a.Group,{value:[],style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u63D0\u4EA4\u72B6\u6001:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!((Mr=Nr.commit_status)!==null&&Mr!==void 0&&Mr.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},tn.map(function(ca,dr){var cr;return t.a.createElement(be.a,{name:"commit_status",value:ca.id},ca.name,"(",un==null||((cr=un.exercise_types)===null||cr===void 0)?void 0:cr[ca.type],")")}))))),t.a.createElement(ze.a.Item,{name:"review"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u8BC4\u9605\u72B6\u6001:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!(($e=Nr.review)!==null&&$e!==void 0&&$e.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},Rt==null?void 0:Rt.map(function(ca,dr){var cr;return t.a.createElement(be.a,{value:ca.id,key:dr},ca.name,"(",un==null||((cr=un.exercise_types)===null||cr===void 0)?void 0:cr[ca.type],")")}))))),(un==null||((pt=un.exercise_types)===null||pt===void 0)?void 0:pt.open_make_up)&&t.a.createElement(ze.a.Item,{name:"is_make_up"},t.a.createElement(be.a.Group,{value:[],style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px"},"\u8865\u8003\u72B6\u6001:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!((vt=Nr.is_make_up)!==null&&vt!==void 0&&vt.length)},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1"},Qt.map(function(ca,dr){var cr;return t.a.createElement(be.a,{name:"is_make_up",value:ca.id},ca.name,"(",un==null||((cr=un.exercise_types)===null||cr===void 0)?void 0:cr[ca.type],")")}))))),t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,null,t.a.createElement(te.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(dr){yt.search=dr,zn({type:"exercise/getExerciseList",payload:Object(i.a)(Object(i.a)({},yt),{},{page:1})})},style:{width:240}})))),!(Rn!=null&&Rn.is_random)&&t.a.createElement(Ee.a,{className:["tr",Je.a.rightFilter].join(" ")},((Me=un.exercise_types)===null||Me===void 0?void 0:Me.objective)===1&&((we=un.exercise_types)===null||we===void 0?void 0:we.subjective)===1&&t.a.createElement(t.a.Fragment,null,"\u6309\u5BA2\u89C2\u9898\u5F97\u5206\u5206\u7EC4",t.a.createElement("span",null,t.a.createElement(ze.a.Item,{name:"objective_score_gte"},t.a.createElement(J.a,{min:0,max:un==null||((Ke=un.exercise_types)===null||Ke===void 0)?void 0:Ke.objective_score,placeholder:"\u6700\u4F4E"}))),t.a.createElement("span",null,t.a.createElement(ze.a.Item,{name:"objective_score_lte"},t.a.createElement(J.a,{min:((De=yt)===null||De===void 0?void 0:De.objective_score_gte)||0,max:un==null||((st=un.exercise_types)===null||st===void 0)?void 0:st.objective_score,placeholder:"\u6700\u9AD8"})))),((ct=un.exercise_types)===null||ct===void 0?void 0:ct.subjective)===1&&Xr&&t.a.createElement(t.a.Fragment,null,t.a.createElement(g.a,{type:"default",disabled:(un==null||((Bt=un.total_exercise_users)===null||Bt===void 0)?void 0:Bt.length)<1},t.a.createElement(v.a,{to:"/classrooms/".concat(yt.coursesId,"/exercise/").concat(yt.categoryId,"/reviews/group")},t.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),t.a.createElement("span",null,"\u96C6\u4E2D\u6279\u91CF\u6279\u9605"))),t.a.createElement(g.a,{type:"default",disabled:(un==null||((gt=un.total_exercise_users)===null||gt===void 0)?void 0:gt.length)<1},t.a.createElement(v.a,{to:"/classrooms/".concat(yt.coursesId,"/exercise/").concat(yt.categoryId,"/review/").concat(un==null||((zt=un.total_exercise_users)===null||zt===void 0||((Ft=zt[0])===null||Ft===void 0))?void 0:Ft.user_login)},t.a.createElement("span",{className:"iconfont icon-filesync3x"}),t.a.createElement("span",null,"\u7EC4\u5185\u987A\u5E8F\u6279\u9605")))))))),t.a.createElement(je.a,{className:"mt30",loading:yn["exercise/getExerciseList"],hideOnSinglePage:!0,pagination:!1,dataSource:(un==null?void 0:un.exercise_users)||[],columns:Mi,scroll:{x:(Mi==null?void 0:Mi.length)*120},size:"large",onChange:function(dr,cr,da){yt.page=1,console.log(da,444),da.order===void 0?(yt.order_type=null,yt.order=null):(yt.order_type=da.order==="descend"?"desc":"asc",yt.order=da.field),zn({type:"exercise/getExerciseList",payload:Object(i.a)({},yt)})}}),Rr>0&&t.a.createElement("aside",{className:"tc mb50 pb30 mt30"},t.a.createElement("div",{style:{display:"flex",margin:"auto",textAlign:"center",justifyContent:"center"}},t.a.createElement(W.a,{onChange:Po,defaultCurrent:yt.page||1,current:yt.page||1,defaultPageSize:yt.limit||1,pageSize:yt.limit||1,total:Rr}),t.a.createElement(te.a,{suffix:"\u6761/\u9875",type:"number",value:ti,onChange:function(dr){return _i(dr.target.value)},min:1,onBlur:Oo,style:{width:"80px",height:"29px",lineHeight:"29px",marginLeft:"10px"}})))),t.a.createElement(At,null),t.a.createElement(Ve,null),t.a.createElement(Ht,null),ka&&t.a.createElement(m.a,{title:"\u9632\u4F5C\u5F0A\u5934\u50CF",visible:ka,centered:!0,onCancel:function(){Gi(1),Na(!1),Ja([]),Ga("alert"),vo("")},footer:t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("div",{style:{flex:1,textAlign:"left"}}," ",t.a.createElement(g.a,{onClick:Object(x.a)(b.a.mark(function ca(){var dr;return b.a.wrap(function(da){for(;;)switch(da.prev=da.next){case 0:if(po){da.next=3;break}return p.b.info("\u8F93\u5165\u6846\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),da.abrupt("return");case 3:return eo(!0),da.next=6,Object(C.a)("/api/exercises/".concat(yt.categoryId,"/send_alert.json"),{method:"post",body:{content:po,clazz:ni,exercise_user_id:oo}});case 6:dr=da.sent,(dr==null?void 0:dr.status)===0&&(p.b.info("\u53D1\u9001\u6210\u529F"),Gi(1),Na(!1),Ja([]),Ga("alert"),vo("")),eo(!1);case 9:case"end":return da.stop()}},ca)})),disabled:wo,loading:wi},"\u53D1\u9001")),t.a.createElement(g.a,{disabled:(wa==null?void 0:wa.length)===0,style:{marginRight:"10px"},onClick:Object(x.a)(b.a.mark(function ca(){return b.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,Gi(vi-1===0?wa==null?void 0:wa.length:vi-1);case 2:case"end":return cr.stop()}},ca)}))},"\u4E0A\u4E00\u5F20"),t.a.createElement(g.a,{disabled:(wa==null?void 0:wa.length)===0,type:"primary",onClick:Object(x.a)(b.a.mark(function ca(){return b.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,Gi(vi===(wa==null?void 0:wa.length)?1:vi+1);case 2:case"end":return cr.stop()}},ca)}))},"\u4E0B\u4E00\u5F20"))},t.a.createElement("img",{style:{width:"234px !important",height:"132px",borderRadius:"5px"},src:wa[vi-1]}),t.a.createElement("span",{onClick:function(){Tt.a.publish("preview-image",wa[vi-1]),console.log("src:",wa[vi-1],wa,vi-1)},style:{background:"#0152d9",color:"#fff",display:"inline-flex",width:"54px",height:"20px",borderRadius:"10px",justifyContent:"center",lineHeight:"20px",alignItems:"center",position:"absolute",top:"70px",left:"190px",zIndex:5,cursor:"pointer"}},"\u9884\u89C8"),t.a.createElement("span",{style:{color:"#0152d9",marginTop:"16px",width:"234px",justifyContent:"center",display:"flex"}},vi+"/"+(wa==null?void 0:wa.length)),t.a.createElement(F.a,{className:"mt20",checked:ni==="alert",onChange:function(){return Ga("alert")}},"\u53D1\u9001\u8B66\u544A",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement(F.a,{className:"mt10",checked:ni==="notice",onChange:function(){return Ga("notice")}},"\u53D1\u9001\u901A\u77E5",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement(te.a.TextArea,{className:"mt20",value:po,onChange:function(dr){return vo(dr.target.value)},placeholder:"\u8BF7\u8F93\u5165".concat(ni==="alert"?"\u8B66\u544A":"\u901A\u77E5","\u5185\u5BB9").concat(ni==="alert"?"\uFF0C\u5982\uFF1A\u626D\u5934\u4F4E\u5934\u5927\u5E45\u5EA6\u52A8\u4F5C\u68C0\u6D4B":"")}),t.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",$a,"\u6B21\u8B66\u544A")),t.a.createElement(sn.a,null))},ye=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading,Or=tr.globalSetting;return{exercise:In,loading:En.effects,globalSetting:Or}})(Ae),Se=_("OaEy"),dt=_("2fM7"),et=_("8Skl"),xt=_("y3Kf"),xn=_("mxOx"),Dt=_.n(xn),_t=_("LvDl"),mn=_.n(_t),pe=_("GUcZ"),Gt=_("ulZh"),Lt=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,Be=Object(E.forwardRef)(function(tr,In){var En,Or=tr.src,yr=tr.videoId,zr=tr.logWatchHistory,Zn=tr.courseId,An=Zn===void 0?null:Zn,rr=tr.startTime,ar=tr.handlePause,Pr=ar===void 0?function(){}:ar,sa=tr.handlePlay,Qn=sa===void 0?function(){}:sa,Hr=tr.handlePlayEnded,pa=Hr===void 0?function(){}:Hr,Ma=tr.videoSpeed,la=Ma===void 0?1:Ma,Ir=Or==null||((En=Or.split("."))===null||En===void 0)?void 0:En.pop(),mr=Ir==="flv",Kr=Object(E.useRef)(),ra=Object(E.useRef)(),Er=Object(E.useRef)(0),wn=Object(E.useRef)(0),ma=Object(E.useState)(0),Mr=Object(r.a)(ma,2),$e=Mr[0],pt=Mr[1],vt=navigator.userAgent.toLowerCase().match(Lt),Me=vt?vt[0]:"pc";Object(E.useImperativeHandle)(In,function(){return{getLastUpdatedTime:function(){return Kr.current.currentTime},getDuration:function(){return Kr.current.duration}}}),Object(E.useEffect)(function(){wn.current=void 0;try{pe.a.isSupported&&mr&&Or&&(Or==null?void 0:Or.indexOf(".m3u8"))<0?(wn.current=pe.a.createPlayer({type:"flv",volume:.8,cors:!0,url:Or+"?t="+Date.now(),muted:!1,isLive:!0}),wn.current.on("play",function(){console.log(21111)}),Kr.current&&(wn.current.detachMediaElement(Kr.current),wn.current.attachMediaElement(Kr.current),wn.current.load(),wn.current.play())):Kr.current.setAttribute("src",Or+"?t="+Date.now())}catch(Ke){setTimeout(function(){pt($e+1)},1e3)}return console.log("src:",Or),function(){if(wn.current){var Ke,De,st,ct,Bt,gt,zt,Ft;(Ke=wn.current)===null||Ke===void 0||((De=Ke.unload)===null||De===void 0)||De.call(Ke),(st=wn.current)===null||st===void 0||((ct=st.pause)===null||ct===void 0)||ct.call(st),(Bt=wn.current)===null||Bt===void 0||((gt=Bt.destroy)===null||gt===void 0)||gt.call(Bt),(zt=wn.current)===null||zt===void 0||((Ft=zt.detachMediaElement)===null||Ft===void 0)||Ft.call(zt,Kr.current),wn.current=void 0,Kr.current.src=""}}},[Kr,mr,Or,$e]),Object(E.useEffect)(function(){return ra.current=setInterval(function(){Er.current>0&&Er.current===Kr.current.currentTime&&(console.log("\u64AD\u653E\u4E00\u6B21"),pt($e+1)),Er.current=Kr.current.currentTime},3e3),function(){clearInterval(ra.current)}},[]);var we=function(De){setTimeout(function(){pt($e+1)},1e3)};return t.a.createElement("video",{ref:Kr,onerr:!0,onErrorCapture:function(){pt($e+1)},autoPlay:!0,muted:!0})}),ot=function(In){var En,Or=In.exercise,yr=In.dispatch,zr=In.user,Zn=Object(A.i)(),An=Object(E.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",save_name:"",exercise_id:Zn==null?void 0:Zn.categoryId}),rr=Object(r.a)(An,2),ar=rr[0],Pr=rr[1],sa=ze.a.useForm(),Qn=Object(r.a)(sa,1),Hr=Qn[0],pa=Object(E.useState)(),Ma=Object(r.a)(pa,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)(!1),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=Or.exerciseList,ma=Or.commonHeader,Mr=Object(E.useState)([]),$e=Object(r.a)(Mr,2),pt=$e[0],vt=$e[1],Me=Object(E.useState)([]),we=Object(r.a)(Me,2),Ke=we[0],De=we[1],st=Object(E.useState)(0),ct=Object(r.a)(st,2),Bt=ct[0],gt=ct[1],zt=Object(E.useState)(!0),Ft=Object(r.a)(zt,2),on=Ft[0],yn=Ft[1],zn=Object(E.useState)(!1),gr=Object(r.a)(zn,2),Xr=gr[0],Jr=gr[1],aa=Object(E.useRef)(null);Object(E.useEffect)(function(){hn(),Lr(ar)},[]),Object(E.useEffect)(function(){return clearInterval(aa.current),(ma==null?void 0:ma.exercise_status)===2&&(aa.current=setInterval(function(){Lr(ar)},3e4)),function(){clearInterval(aa.current)}},[ma==null?void 0:ma.exercise_status,ar]);var hn=function(){yr({type:"exercise/getExerciseList",payload:Zn})},Lr=function(){var Vr=Object(x.a)(b.a.mark(function nr(Wr){var Wn,pn;return b.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return Wn=mn.a.cloneDeep(Wr),console.log(Wn,"sendData"),yn(!0),vt([]),qn.next=6,Object(C.a)("/api/exercises/".concat(Wr==null?void 0:Wr.exercise_id,"/exercise_identity_photos.json"),{method:"get",params:Wn});case 6:pn=qn.sent,De([]),yn(!1),gt(pn==null?void 0:pn.count),vt((pn==null?void 0:pn.exercise_users)||[]);case 11:case"end":return qn.stop()}},nr)}));return function(Wr){return Vr.apply(this,arguments)}}(),oa=function(nr,Wr){ar.page=1,ar[Wr]=nr,Pr(Object(i.a)({},ar)),Lr(ar)},ya=function(nr){ar.page=1,ar.save_name=nr,Pr(Object(i.a)({},ar))},yt=function(){ar.page=1;var nr=Object.assign({},Hr.getFieldsValue());Object.keys(nr).map(function(Wr){switch(Wr){case"exercise_group_id":nr[Wr].includes("all")||!nr[Wr].length?(delete ar.course_group,Hr.setFieldsValue(Object(Ce.a)({},"exercise_group_id","all"))):(ar.course_group=nr[Wr],Hr.setFieldsValue(Object(Ce.a)({},"exercise_group_id",ar.course_group)));break}}),Pr(Object(i.a)({},ar)),Lr(ar)};Object(E.useEffect)(function(){if(document.getElementById("divhe")){var Vr=document.getElementById("divhe").scrollHeight;Vr>47&&(Ir(47),Er(!0))}},[document.getElementById("divhe"),wn]);var Fr=function(nr,Wr,Wn){ar.page=nr==null?void 0:nr.current,ar.limit=nr==null?void 0:nr.pageSize,Wn!=null&&Wn.order?(ar.sort_by=Wn==null?void 0:Wn.field,ar.sort_direction=(Wn==null?void 0:Wn.order)==="ascend"?"asc":"desc"):(ar.sort_by=null,ar.sort_direction=null),Pr(Object(i.a)({},ar)),Lr(ar)},un=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:function(nr,Wr,Wn){return ar.limit*(ar.page-1)+Wn+1}},{title:"\u59D3\u540D",dataIndex:"user_name",width:110,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement(Ne.a,{placement:"bottomLeft",title:nr},t.a.createElement("span",null,nr))}},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:140,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement(Ne.a,{placement:"bottomLeft",title:nr||"--"},t.a.createElement("span",null,nr||"--"))}},{title:"\u5206\u73ED",dataIndex:"user_group_name",ellipsis:{showTitle:!1},render:function(nr,Wr){return nr?t.a.createElement(Ne.a,{placement:"bottom",title:nr},t.a.createElement("span",{className:Dt.a.es},nr)):"--"}},{title:"\u4EBA\u8138\u7167\u7247",dataIndex:"photo_url",width:90,ellipsis:{showTitle:!1},render:function(nr,Wr){return t.a.createElement("img",{width:40,style:{maxHeight:30},src:nr,className:"current",onClick:function(){Sr(Wr)}})}},{title:"\u5BA1\u6838\u72B6\u6001",width:100,dataIndex:"exercise_identity_photo_state",ellipsis:{showTitle:!1},render:function(nr,Wr){return t.a.createElement(t.a.Fragment,null,nr==="passed"&&t.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),nr==="rejected"&&t.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),nr==="submitted"&&t.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:180,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement("span",null,nr||"--")}},{title:"\u5BA1\u6838\u7C7B\u578B",dataIndex:"audit_clazz",width:90,ellipsis:{showTitle:!1},render:function(nr){return t.a.createElement("span",null,nr||"--")}},{title:"\u64CD\u4F5C",dataIndex:"action",width:180,ellipsis:{showTitle:!1},render:function(nr,Wr){var Wn;return t.a.createElement(t.a.Fragment,null,(Wr==null?void 0:Wr.exercise_identity_photo_state)==="submitted"?t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Jr(Wr)}},"\u5BA1\u6838"):t.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u5BA1\u6838"),(Wr==null?void 0:Wr.exercise_identity_photo_state)!=="submitted"?t.a.createElement("span",{className:"c-light-primary current ml10 mr10",onClick:function(){return Ca(Wr)}},"\u5BA1\u6838\u8BB0\u5F55"):t.a.createElement("span",{className:"c-grey-999 ml10 mr10 cursorNotAllowed"},"\u5BA1\u6838\u8BB0\u5F55"),(Wr==null?void 0:Wr.exercise_identity_photo_state)==="passed"&&!!(Wr!=null&&(Wn=Wr.play_url)!==null&&Wn!==void 0&&Wn.length)?t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Nr(Wr)}},"\u6444\u50CF\u76D1\u63A7"):t.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u6444\u50CF\u76D1\u63A7"))}}],Rn=function(nr){De(nr)},xr=function(){Jr(!1),Lr(ar)},Ca=function(nr){var Wr=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:function(Rr,qn){return t.a.createElement("span",null,Rr||"--")}},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:function(Rr,qn){return t.a.createElement(t.a.Fragment,null,Rr==="passed"&&t.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Rr==="rejected"&&t.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Rr==="submitted"&&t.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:function(Rr,qn){return Rr?t.a.createElement(Ne.a,{placement:"bottom",title:Rr},t.a.createElement("span",null,Rr)):"--"}},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:function(Rr,qn){return t.a.createElement("span",{className:"current c-light-primary",onClick:function(){Tt.a.publish("preview-image",Rr)}},"\u67E5\u770B")}}],Wn=m.a.confirm({icon:null,width:700,className:"".concat(Dt.a.cusModal," custom-modal-divider"),centered:!0,title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return Wn.destroy()}}))),content:t.a.createElement("div",null,t.a.createElement(je.a,{className:Dt.a.customTable,dataSource:[Object(i.a)({},nr)],bordered:!1,columns:Wr,rowKey:"exercise_identity_photo_id",rowClassName:Dt.a.row,pagination:!1}))})},Nr=function(nr){var Wr,Wn,pn=m.a.confirm({icon:null,className:"".concat(Dt.a.cusModal," custom-modal-divider"),centered:!0,width:(nr==null||((Wr=nr.play_url)===null||Wr===void 0)?void 0:Wr.length)<6?724:744,title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u89C6\u9891"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return pn.destroy()}}))),content:t.a.createElement("ul",{className:Dt.a.sys},nr==null||((Wn=nr.play_url)===null||Wn===void 0)?void 0:Wn.map(function(Rr,qn){return t.a.createElement("li",{className:Dt.a.li,key:qn},t.a.createElement("div",{className:Dt.a.d1},t.a.createElement("div",{className:Dt.a.img},t.a.createElement(Be,{src:Rr==null?void 0:Rr.replace(".m3u8",".flv"),autoPlay:!0})),t.a.createElement("div",{className:Dt.a.btn},t.a.createElement("div",{className:Dt.a.b1},"\u56DE\u653E\u89C6\u9891",qn+1))))}))})},Sr=function(nr){var Wr=m.a.confirm({icon:null,className:"".concat(Dt.a.cusModal," custom-modal-divider"),centered:!0,width:710,title:t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return Wr.destroy()}}))),content:t.a.createElement(he.a,null,t.a.createElement("aside",{className:Dt.a.imgWrap,style:{marginBottom:40}},t.a.createElement("div",{className:Dt.a.img},t.a.createElement("img",{width:326,src:Object(R.g)(nr==null?void 0:nr.photo_url)}),t.a.createElement("div",{className:Dt.a.textP},"\u91C7\u96C6\u7167\u7247")),t.a.createElement("div",{className:Dt.a.img,style:{marginLeft:20}},nr!=null&&nr.identity_url?t.a.createElement("img",{width:326,src:Object(R.g)(nr==null?void 0:nr.identity_url)}):t.a.createElement("div",{className:Dt.a.no,style:{width:326}},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),t.a.createElement("div",{className:Dt.a.textP},"\u8BC1\u4EF6\u7167\u7247"))))})},xa={selectedRowKeys:Ke,columnWidth:40,onChange:Rn,getCheckboxProps:function(nr){return{disabled:!((nr==null?void 0:nr.exercise_identity_photo_state)!=="passed")}}};return t.a.createElement("section",{className:Dt.a.wrap},t.a.createElement(ze.a,{form:Hr,onChange:yt,initialValues:Object(Ce.a)({},"exercise_group_id","all")},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1",id:"divhe",style:{height:la+"px",overflow:"hidden"}},(En=wn.course_groups)===null||En===void 0?void 0:En.map(function(Vr,nr){return t.a.createElement(be.a,{key:nr,value:Vr.exercise_group_id,className:"ml0 mr8"},Vr.exercise_group_name,"(",Vr.exercise_group_students,")")})),ra&&t.a.createElement("span",{onClick:function(){var nr=document.getElementById("divhe").scrollHeight;la>47?Ir(47):Ir(nr)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},la===47?"\u5C55\u5F00":"\u6536\u8D77",la===47?t.a.createElement(et.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):t.a.createElement(xt.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),t.a.createElement("div",{className:Dt.a.control},t.a.createElement(te.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:ar==null?void 0:ar.save_name,onChange:function(nr){return ya(nr.target.value)},onSearch:function(){ar.page=1,ar.name=ar.save_name,Pr(Object(i.a)({},ar)),Lr(ar)}}),t.a.createElement(dt.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",value:ar==null?void 0:ar.state,onChange:function(nr){return oa(nr,"state")}},t.a.createElement(dt.a.Option,{value:null},"\u5168\u90E8"),t.a.createElement(dt.a.Option,{value:"submitted"},"\u5F85\u5BA1\u6838"),t.a.createElement(dt.a.Option,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),t.a.createElement(dt.a.Option,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7")),t.a.createElement(dt.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7C7B\u578B",value:ar==null?void 0:ar.audit,onChange:function(nr){return oa(nr,"audit")}},t.a.createElement(dt.a.Option,{value:null},"\u5168\u90E8"),t.a.createElement(dt.a.Option,{value:1},"\u81EA\u52A8\u5BA1\u6838"),t.a.createElement(dt.a.Option,{value:2},"\u4EBA\u5DE5\u5BA1\u6838")),t.a.createElement("span",{className:Dt.a.btn,style:{cursor:"pointer"},onClick:function(){if(!Ke.length){p.b.warn("\u8BF7\u9009\u62E9\u5B66\u751F");return}Jr(!0)}},t.a.createElement("i",{className:"iconfont icon-piliangcaozuo font14 mr5"}),"\u6279\u91CF\u5BA1\u6838")),t.a.createElement("div",{className:Dt.a.bgH}),t.a.createElement(je.a,{rowSelection:xa,className:Dt.a.customTable,dataSource:pt,bordered:!1,columns:un,rowKey:"exercise_identity_photo_id",rowClassName:Dt.a.row,loading:on,onChange:Fr,pagination:{pageSize:ar.limit,total:Bt,current:ar.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:function(nr){return t.a.createElement("span",{className:"mr10"},"\u5171",t.a.createElement("span",{className:"c-orange"},nr),"\u6761\u6570\u636E")}}}),t.a.createElement(Pt,{selectIds:Ke,visible:Xr,onCancel:function(){return Jr(!1)},onOk:xr,params:ar}),t.a.createElement(sn.a,null))},Xt=Object(o.a)(function(tr){var In=tr.exercise,En=tr.user;return{exercise:In,user:En}})(ot),Pt=function(In){var En=In.visible,Or=In.onOk,yr=In.onCancel,zr=In.selectIds,Zn=In.params,An=Object(E.useState)(!1),rr=Object(r.a)(An,2),ar=rr[0],Pr=rr[1],sa=Object(E.useState)({}),Qn=Object(r.a)(sa,2),Hr=Qn[0],pa=Qn[1],Ma=ze.a.useForm(),la=Object(r.a)(Ma,1),Ir=la[0],mr=function(){var Kr=Object(x.a)(b.a.mark(function ra(Er){var wn,ma;return b.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(Pr(!0),!(En===!0)){$e.next=7;break}return $e.next=4,Object(C.a)("/api/exercises/".concat(Zn==null?void 0:Zn.exercise_id,"/batch_audit_identity_photo.json"),{method:"post",body:Object(i.a)({identity_photo_ids:zr},Er)});case 4:ma=$e.sent,$e.next=10;break;case 7:return $e.next=9,Object(C.a)("/api/exercises/".concat(Zn==null?void 0:Zn.exercise_id,"/audit_identity_photo.json"),{method:"post",body:Object(i.a)({identity_photo_id:En==null?void 0:En.exercise_identity_photo_id},Er)});case 9:ma=$e.sent;case 10:((wn=ma)===null||wn===void 0?void 0:wn.status)===0&&Or(),Pr(!1);case 12:case"end":return $e.stop()}},ra)}));return function(Er){return Kr.apply(this,arguments)}}();return t.a.createElement(m.a,{title:En!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",visible:!!En,centered:!0,width:650,destroyOnClose:!0,onCancel:function(){yr()},afterClose:function(){Ir.resetFields(),pa({})},confirmLoading:ar,onOk:function(){return Ir.submit()}},t.a.createElement(ze.a,{className:Dt.a.formWrap,form:Ir,labelCol:{span:4},wrapperCol:{span:18},onFinish:mr,onValuesChange:function(){pa(Object(i.a)({},Ir.getFieldsValue()))}},En!==!0&&t.a.createElement(he.a,{style:{marginLeft:28,marginBottom:38}},t.a.createElement(Ee.a,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),t.a.createElement(Ee.a,null,t.a.createElement("aside",{className:Dt.a.imgWrap},t.a.createElement("div",{className:Dt.a.img},t.a.createElement("img",{width:234,src:Object(R.g)(En==null?void 0:En.photo_url)}),t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",En==null?void 0:En.photo_url)},className:Dt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:Dt.a.text},"\u91C7\u96C6\u7167\u7247")),t.a.createElement("div",{className:Dt.a.img,style:{marginLeft:20}},En!=null&&En.identity_url?t.a.createElement("img",{width:234,src:Object(R.g)(En==null?void 0:En.identity_url)}):t.a.createElement("div",{className:Dt.a.no,style:{width:326}},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(En!=null&&En.identity_url)&&t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",Object(R.g)(En==null?void 0:En.identity_url))},className:Dt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:Dt.a.text},"\u8BC1\u4EF6\u7167\u7247"))))),t.a.createElement(ze.a.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},t.a.createElement(F.a.Group,null,t.a.createElement(F.a,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),t.a.createElement(F.a,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(Hr==null?void 0:Hr.state)==="rejected"&&t.a.createElement(ze.a.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},t.a.createElement(te.a,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),t.a.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))},$t=_("cWXX"),Zt=_("/ezw"),bt=_("R9oj"),ft=_("ECub"),Nt=_("hZbv"),jt=_.n(Nt),bn=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa=In.exercise,Qn=In.dispatch,Hr=In.user,pa=Object(A.i)(),Ma=Object(E.useState)({page:1,limit:10,name:"",save_name:"",exercise_id:pa==null?void 0:pa.categoryId}),la=Object(r.a)(Ma,2),Ir=la[0],mr=la[1],Kr=ze.a.useForm(),ra=Object(r.a)(Kr,1),Er=ra[0],wn=Object(E.useState)(),ma=Object(r.a)(wn,2),Mr=ma[0],$e=ma[1],pt=Object(E.useState)(!1),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=sa.exerciseList,De=Object(E.useState)([]),st=Object(r.a)(De,2),ct=st[0],Bt=st[1],gt=Object(E.useState)(0),zt=Object(r.a)(gt,2),Ft=zt[0],on=zt[1],yn=Object(E.useState)(!0),zn=Object(r.a)(yn,2),gr=zn[0],Xr=zn[1],Jr=Object(E.useState)(!1),aa=Object(r.a)(Jr,2),hn=aa[0],Lr=aa[1],oa=Object(E.useState)("1"),ya=Object(r.a)(oa,2),yt=ya[0],Fr=ya[1],un=Object(E.useState)(1),Rn=Object(r.a)(un,2),xr=Rn[0],Ca=Rn[1],Nr=Object(E.useState)("alert"),Sr=Object(r.a)(Nr,2),xa=Sr[0],Vr=Sr[1],nr=Object(E.useState)(1),Wr=Object(r.a)(nr,2),Wn=Wr[0],pn=Wr[1],Rr=Object(E.useState)(""),qn=Object(r.a)(Rr,2),Ar=qn[0],Da=qn[1],Ia=Object(E.useState)(!1),La=Object(r.a)(Ia,2),Br=La[0],$r=La[1],ka=Object(E.useState)(!1),Na=Object(r.a)(ka,2),qa=Na[0],ri=Na[1],ni=Object(E.useState)([]),Ga=Object(r.a)(ni,2),Ai=Ga[0],Di=Ga[1];Object(E.useEffect)(function(){$a(),Va(Ir)},[]);var $a=function(){Qn({type:"exercise/getExerciseList",payload:pa})},Va=function(){var Ra=Object(x.a)(b.a.mark(function Sa(wa){var Ja,ai;return b.a.wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:return Ja=mn.a.cloneDeep(wa),Xr(!0),Bt([]),oi.next=5,Object(C.a)("/api/exercises/".concat(wa==null?void 0:wa.exercise_id,"/exercise_videos.json"),{method:"get",params:Ja});case 5:ai=oi.sent,Xr(!1),on(ai==null?void 0:ai.count),Bt((ai==null?void 0:ai.exercise_users)||[]);case 9:case"end":return oi.stop()}},Sa)}));return function(wa){return Ra.apply(this,arguments)}}(),di=function(Sa,wa){Ir.page=Sa,Ir.limit=wa,mr(Object(i.a)({},Ir)),Va(Ir)},Zi=function(Sa){Ir.page=1,Ir.save_name=Sa,mr(Object(i.a)({},Ir))},Ao=function(){Ir.page=1;var Sa=Object.assign({},Er.getFieldsValue());Object.keys(Sa).map(function(wa){switch(wa){case"exercise_group_id":Sa[wa].includes("all")||!Sa[wa].length?(delete Ir.course_group,Er.setFieldsValue(Object(Ce.a)({},"exercise_group_id","all"))):(Ir.course_group=Sa[wa],Er.setFieldsValue(Object(Ce.a)({},"exercise_group_id",Ir.course_group)));break}}),Va(Ir)};Object(E.useEffect)(function(){if(document.getElementById("divhe")){var Ra=document.getElementById("divhe").scrollHeight;Ra>47&&($e(47),we(!0))}},[document.getElementById("divhe"),Ke]);var Ui=function(){var Ra=Object(x.a)(b.a.mark(function Sa(wa){var Ja,ai;return b.a.wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:return $r(!0),Lr({}),oi.next=4,Object(C.a)("/api/exercises/".concat(Ir==null?void 0:Ir.exercise_id,"/student_info.json"),{method:"get",params:{exercise_user_id:wa==null?void 0:wa.exercise_user_id}});case 4:return Ja=oi.sent,oi.next=7,Object(C.a)("/api/exercises/".concat(Ir==null?void 0:Ir.exercise_id,"/video_push_logs.json"),{method:"get",params:{exercise_user_id:wa==null?void 0:wa.exercise_user_id}});case 7:ai=oi.sent,ai!=null&&ai.data&&Di((ai==null?void 0:ai.data)||[]),Ja!=null&&Ja.data&&Lr(Object(i.a)(Object(i.a)({},Ja==null?void 0:Ja.data),{},{exercise_user_id:wa==null?void 0:wa.exercise_user_id,datas:wa})),$r(!1);case 11:case"end":return oi.stop()}},Sa)}));return function(wa){return Ra.apply(this,arguments)}}(),qi=function(Sa){if(Sa==="prev"){var wa;Ca(xr-1===0?hn==null||((wa=hn.exercise_user_photos)===null||wa===void 0)?void 0:wa.length:xr-1)}else{var Ja;Ca(xr===(hn==null||((Ja=hn.exercise_user_photos)===null||Ja===void 0)?void 0:Ja.length)?1:xr+1)}},$i=function(){Ca(1),Vr("alert"),Da(""),Fr("1"),pn(1)},wi=function(Sa){pn(Sa)},eo=function(Sa){Vr(Sa),pn(1),Da("")},fo=[{key:1,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:2,value:"\u8BF7\u52FF\u79BB\u5F00\u76D1\u63A7\u8303\u56F4\uFF01"},{key:3,value:"\u8BF7\u4E0D\u8981\u4E0E\u5176\u4ED6\u4EBA\u4EA4\u8C08\uFF01"},{key:4,value:"\u8BF7\u4E0D\u8981\u505A\u4E0E\u8003\u8BD5\u65E0\u5173\u7684\u884C\u4E3A\uFF01"},{key:5,value:"\u8BF7\u52FF\u5207\u5C4F\uFF0C\u8D85\u8FC73\u6B21\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF01"},{key:6,value:"\u8BF7\u52FF\u906E\u6321\u6216\u5173\u95ED\u7535\u8111\u6444\u50CF\u76D1\u63A7\uFF01"},{key:0,value:"\u5176\u4ED6"}],ho=[{key:1,value:"\u8BF7\u5C06\u624B\u673A\u653E\u7F6E\u4E8E\u4FA7\u540E\u65B945\xB0\uFF0C\u79BB\u684C\u97621\u7C73\u5DE6\u53F3\uFF0C\u4FDD\u8BC1\u80FD\u62CD\u6444\u5230\u4E0A\u534A\u8EAB\u3001\u7535\u8111\u5C4F\u5E55\u548C\u684C\u9762\u3002"},{key:2,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:0,value:"\u5176\u4ED6"}],Pi=xa==="alert"?fo:ho;return t.a.createElement("section",{className:jt.a.wrap},t.a.createElement(ze.a,{form:Er,onChange:Ao,initialValues:Object(Ce.a)({},"exercise_group_id","all")},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1",id:"divhe",style:{height:Mr+"px",overflow:"hidden"}},(En=Ke.course_groups)===null||En===void 0?void 0:En.map(function(Ra,Sa){return t.a.createElement(be.a,{key:Sa,value:Ra.exercise_group_id,className:"ml0 mr8"},Ra.exercise_group_name,"(",Ra.exercise_group_students,")")})),Me&&t.a.createElement("span",{onClick:function(){var Sa=document.getElementById("divhe").scrollHeight;Mr>47?$e(47):$e(Sa)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Mr===47?"\u5C55\u5F00":"\u6536\u8D77",Mr===47?t.a.createElement(et.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):t.a.createElement(xt.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),t.a.createElement("div",{className:jt.a.control},t.a.createElement(te.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Ir==null?void 0:Ir.save_name,onChange:function(Sa){return Zi(Sa.target.value)},onSearch:function(){Ir.page=1,Ir.name=Ir.save_name,mr(Object(i.a)({},Ir)),Va(Ir)}})),t.a.createElement("div",{className:jt.a.bgH}),t.a.createElement("div",{className:jt.a.warpList},t.a.createElement(Zt.a,{loading:gr,active:!0,paragraph:{rows:5}},t.a.createElement("div",{className:"c-grey-666 mb20 mt20"},"\u5171",t.a.createElement("span",{className:"c-orange"},Ft),"\u540D\u5B66\u751F\u5DF2\u5F00\u542F\u624B\u673A\u6444\u5F71"),ct.length?t.a.createElement("ul",{className:jt.a.sys},ct.map(function(Ra,Sa){var wa=Ra.user_name,Ja=Ra.user_group_name,ai=Ra.video_url,yi=Ra.login,oi=Ra.student_id;return t.a.createElement("li",{className:jt.a.li,key:Sa},t.a.createElement("div",{className:jt.a.d1},t.a.createElement("div",{className:jt.a.img},t.a.createElement("iframe",{style:{height:340,width:"100%",border:"none"},src:"/live-play.html?key=".concat(Sa,"&video_url=").concat(ai==null?void 0:ai.replace(".m3u8",".flv"))})),t.a.createElement(Ne.a,{title:"\u59D3\u540D+\u5B66\u53F7"},t.a.createElement("div",{className:jt.a.btn,onClick:function(){return Object(R.s)("".concat(Ir.exercise_id,"-").concat(yi),!0)}},t.a.createElement("div",{title:wa,className:jt.a.b1},wa),t.a.createElement("div",{title:Ja,className:jt.a.b2},"(",oi,")"))),t.a.createElement("div",{onClick:function(){return Ui(Ra)},className:jt.a.big},"\u67E5\u770B")))})):t.a.createElement(ft.a,null)),t.a.createElement(W.a,{showTotal:function(Sa){return t.a.createElement("span",{className:"mr10"},"\u5171",t.a.createElement("span",{className:"c-orange"},Sa),"\u6761\u6570\u636E")},className:"tc",showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,onChange:di,pageSize:Ir==null?void 0:Ir.limit,current:Ir.page,total:Ft})),t.a.createElement(m.a,{title:"\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F",visible:hn,centered:!0,width:850,destroyOnClose:!0,onCancel:function(){Lr(!1)},afterClose:$i,footer:null},t.a.createElement(Zt.a,{loading:Br,active:!0,paragraph:{rows:5}},t.a.createElement("div",null,t.a.createElement("span",null,"\u59D3\u540D:",hn==null||((Or=hn.datas)===null||Or===void 0)?void 0:Or.user_name),t.a.createElement("span",{className:"ml20"},"\u5B66\u53F7:",hn==null||((yr=hn.datas)===null||yr===void 0)?void 0:yr.student_id),t.a.createElement("span",{className:"ml20"},"\u73ED\u7EA7:",hn==null||((zr=hn.datas)===null||zr===void 0)?void 0:zr.user_group_name)),t.a.createElement(j.a,{className:"mt10",defaultActiveKey:yt,onChange:function(Sa){Fr(Sa)}},t.a.createElement(j.a.TabPane,{tab:"\u9632\u4F5C\u5F0A\u5934\u50CF",key:"1"},t.a.createElement("aside",{className:jt.a.imgWrap},t.a.createElement("div",{className:jt.a.img,style:{width:234,marginLeft:30,textAlign:"center"}},hn!=null&&(Zn=hn.exercise_user_photos)!==null&&Zn!==void 0&&Zn.length?t.a.createElement(E.Fragment,null,t.a.createElement("img",{height:131,src:hn==null||((An=hn.exercise_user_photos)===null||An===void 0)?void 0:An[xr-1]}),t.a.createElement("div",{onClick:function(){var Sa;Tt.a.publish("preview-image",hn==null||((Sa=hn.exercise_user_photos)===null||Sa===void 0)?void 0:Sa[xr-1])},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u8003\u8BD5\u4E2D\u7167\u7247",t.a.createElement("span",{className:"c-light-primary"},xr,"/",hn==null||((rr=hn.exercise_user_photos)===null||rr===void 0)?void 0:rr.length)),xr===1?t.a.createElement("div",{style:{color:"#ccc",cursor:"not-allowed"},className:jt.a.l}," ",t.a.createElement("i",{className:"iconfont icon-fanhui2"})):t.a.createElement("div",{onClick:function(){return qi("prev")},className:jt.a.l}," ",t.a.createElement("i",{className:"iconfont icon-fanhui2"})),t.a.createElement("div",{onClick:function(){return qi("next")},className:jt.a.r},t.a.createElement("i",{className:"iconfont icon-lujing"}))):t.a.createElement("div",{className:jt.a.no},t.a.createElement("span",null,"\u6682\u65E0\u8003\u8BD5\u4E2D\u7167\u7247"))),t.a.createElement("div",{className:jt.a.img,style:{marginLeft:60,width:234,textAlign:"center"}},hn!=null&&hn.identity_url?t.a.createElement("img",{height:131,src:Object(R.g)(hn==null?void 0:hn.identity_url)}):t.a.createElement("div",{className:jt.a.no},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(hn!=null&&hn.identity_url)&&t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",Object(R.g)(hn==null?void 0:hn.identity_url))},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u8BC1\u4EF6\u7167\u7247")))),t.a.createElement(j.a.TabPane,{tab:"\u4EBA\u8138\u7167\u7247",key:"2"},t.a.createElement("aside",{className:jt.a.imgWrap,style:{marginLeft:70}},t.a.createElement("div",{className:jt.a.img},t.a.createElement("img",{width:234,src:hn==null?void 0:hn.exercise_identity_photo}),t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",hn==null?void 0:hn.exercise_identity_photo)},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u91C7\u96C6\u7167\u7247")),t.a.createElement("div",{className:jt.a.img,style:{marginLeft:20,width:234,textAlign:"center"}},hn!=null&&hn.identity_url?t.a.createElement("img",{height:131,src:Object(R.g)(hn==null?void 0:hn.identity_url)}):t.a.createElement("div",{className:jt.a.no},t.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(hn!=null&&hn.identity_url)&&t.a.createElement("div",{onClick:function(){Tt.a.publish("preview-image",Object(R.g)(hn==null?void 0:hn.identity_url))},className:jt.a.iBtn},"\u9884\u89C8"),t.a.createElement("div",{className:jt.a.text},"\u8BC1\u4EF6\u7167\u7247")))),t.a.createElement(j.a.TabPane,{tab:"\u8B66\u544A\u548C\u901A\u77E5",key:"3"},t.a.createElement("div",{className:jt.a.fo},t.a.createElement(F.a,{className:"mt20",checked:xa==="alert",onChange:function(){return eo("alert")}},"\u53D1\u9001\u8B66\u544A",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement(F.a,{className:"mt10",checked:xa==="notice",onChange:function(){return eo("notice")}},"\u53D1\u9001\u901A\u77E5",t.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),t.a.createElement("div",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u539F\u56E0:"),t.a.createElement(dt.a,{getPopupContainer:function(Sa){return Sa.parentNode.parentNode},style:{width:570},value:Wn,onChange:wi},Pi==null?void 0:Pi.map(function(Ra){return t.a.createElement(dt.a.Option,{key:Ra.key,value:Ra.key},Ra.value)}))),Wn===0&&t.a.createElement(te.a.TextArea,{className:"mt20",value:Ar,onChange:function(Sa){return Da(Sa.target.value)},placeholder:"\u8BF7\u586B\u5199\u5176\u4ED6\u539F\u56E0"}),t.a.createElement(he.a,{className:"mt10",align:"middle"},t.a.createElement("div",{className:"mr10"},"\u53D1\u9001\u8BB0\u5F55"),t.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",hn==null?void 0:hn.alert_count,"\u6B21\u8B66\u544A\u548C",(hn==null||((ar=hn.alerts)===null||ar===void 0)?void 0:ar.length)-(hn==null?void 0:hn.alert_count),"\u6B21\u901A\u77E5")),t.a.createElement(je.a,{dataSource:(hn==null?void 0:hn.alerts)||[],bordered:!1,scroll:(hn==null||((Pr=hn.alerts)===null||Pr===void 0)?void 0:Pr.length)>4?{y:200}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"created_at",width:164},{title:"\u53D1\u9001\u4EBA",dataIndex:"sender",width:100,ellipsis:{showTitle:!1},render:function(Sa){return Sa?t.a.createElement("span",{title:Sa},Sa):"--"}},{title:"\u53D1\u9001\u7C7B\u578B",dataIndex:"clazz",width:80,render:function(Sa){return Sa==="alert"?"\u8B66\u544A":"\u901A\u77E5"}},{title:"\u53D1\u9001\u5185\u5BB9",dataIndex:"content",ellipsis:!0}],pagination:!1}),t.a.createElement(g.a,{className:jt.a.b,onClick:Object(x.a)(b.a.mark(function Ra(){var Sa,wa,Ja;return b.a.wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:if(!(!Ar&&Wn===0)){yi.next=3;break}return p.b.info("\u8BF7\u8F93\u5165\u5176\u4ED6\u539F\u56E0"),yi.abrupt("return");case 3:return Sa=Ar,Wn&&(wa=xa==="alert"?fo:ho,Sa=wa.find(function(oi){return oi.key===Wn}).value),ri(!0),yi.next=8,Object(C.a)("/api/exercises/".concat(Ir.exercise_id,"/send_alert.json"),{method:"post",body:{content:Sa,clazz:xa,exercise_user_id:hn==null?void 0:hn.exercise_user_id}});case 8:Ja=yi.sent,(Ja==null?void 0:Ja.status)===0&&(p.b.info("\u53D1\u9001\u6210\u529F"),Lr(!1)),ri(!1);case 11:case"end":return yi.stop()}},Ra)})),loading:qa,type:"primary"},t.a.createElement("i",{className:"iconfont icon-fasongtongzhi mr5"}),"\u53D1\u9001"))),t.a.createElement(j.a.TabPane,{tab:"\u65AD\u6D41\u8BB0\u5F55",key:"4"},t.a.createElement(je.a,{dataSource:Ai,bordered:!1,scroll:Ai.length>7?{y:300}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_time",width:164},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:164,render:function(Sa){return Fe()(Sa).format("YYYY-MM-DD HH:mm:ss")||"--"}},{title:"\u63A8\u6D41\u65F6\u957F",dataIndex:"push_duration",ellipsis:!0,width:120,render:function(Sa){return Sa&&Object(R.X)(Number(Sa)/1e3)||0}},{title:"\u65AD\u6D41\u539F\u56E0",dataIndex:"msg",ellipsis:!0}]}))))),t.a.createElement(sn.a,null))},Te=Object(o.a)(function(tr){var In=tr.exercise,En=tr.user;return{exercise:In,user:En}})(bn),ve=_("wNxg"),Q=_.n(ve),$=_("b6Jr"),re=_.n($),de=function(In){var En=In.index,Or=In.bottomLine,yr=In.gather,zr=In.search,Zn=Object(E.useState)([]),An=Object(r.a)(Zn,2),rr=An[0],ar=An[1],Pr=Object(E.useState)(!1),sa=Object(r.a)(Pr,2),Qn=sa[0],Hr=sa[1],pa=Object(E.useState)(!1),Ma=Object(r.a)(pa,2),la=Ma[0],Ir=Ma[1],mr=Object(A.i)(),Kr=Object(A.h)(),ra=Object(E.useState)({page:1,limit:6,total:0}),Er=Object(r.a)(ra,2),wn=Er[0],ma=Er[1];Object(E.useEffect)(function(){console.log(yr,"gather"),En===0&&Ir(!0)},[]),Object(E.useEffect)(function(){la&&$e()},[la]);var Mr=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",align:"left",ellipsis:!0,render:function(we,Ke,De){return wn.limit*(wn.page-1)+De+1}},{title:"\u59D3\u540D",dataIndex:"username",key:"username",align:"left",ellipsis:!0},{title:"\u73ED\u7EA7",dataIndex:"user_group_name",key:"user_group_name",align:"left",render:function(we){return we||"--"}},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",align:"left"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",key:"code_rate",align:"left",render:function(we){return we+"%"}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",align:"left",render:function(we){var Ke,De="/classrooms/".concat(mr==null?void 0:mr.coursesId,"/exercise/").concat(mr==null?void 0:mr.categoryId,"/detail/").concat(we,"/review_detail");if(Kr!=null&&(Ke=Kr.query)!==null&&Ke!==void 0&&Ke.random){var st;De=De+"?random=".concat(Kr==null||((st=Kr.query)===null||st===void 0)?void 0:st.random)}return t.a.createElement(v.a,{to:De,target:"_blank"},"\u67E5\u770B")}}],$e=function(){var Me=Object(x.a)(b.a.mark(function we(Ke){var De,st,ct;return b.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return Hr(!0),De=Ke||{page:1,limit:10,total:0},st=Object(i.a)({id:mr==null?void 0:mr.categoryId,question_id:yr==null?void 0:yr.question_id,search:zr},De),gt.next=5,Object(C.a)("/api/courses/".concat(mr==null?void 0:mr.coursesId,"/exercises/code_review_users.json"),{method:"get",params:st});case 5:ct=gt.sent,ct&&(ar(ct==null?void 0:ct.users),Hr(!1),ma(Object(i.a)(Object(i.a)({},De),{},{total:(ct==null?void 0:ct.count)||0})));case 7:case"end":return gt.stop()}},we)}));return function(Ke){return Me.apply(this,arguments)}}(),pt=function(we){var Ke=Object(i.a)(Object(i.a)({},wn),{},{page:we});ma(Ke),$e(Ke)},vt=function(){Ir(!la)};return t.a.createElement("div",{className:re.a.subjectTable},t.a.createElement("aside",{className:re.a.title},t.a.createElement("span",{className:"c-light-primary"},En+1,"\u3001",(yr==null?void 0:yr.question_type)===5?"\u5B9E\u8BAD\u9898":"\u7F16\u7A0B\u9898"),t.a.createElement("span",{className:"c-grey-333"},"\uFF08",yr==null?void 0:yr.score,"\u5206\uFF09\uFF1A",yr==null?void 0:yr.question_title),t.a.createElement("span",{className:"ml40 c-grey-999"},t.a.createElement("b",{className:"c-red-ee4"},yr==null?void 0:yr.checked_count),"\xA0\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08\u5171",yr==null?void 0:yr.total_count,"\u4E2A\u4F5C\u54C1\uFF09"),t.a.createElement("span",{onClick:vt,style:{marginLeft:"auto",cursor:"pointer",color:"#0152d9"}},la?"\u6536\u8D77":"\u5C55\u5F00",la?t.a.createElement(xt.a,null):t.a.createElement(et.a,null)),(yr==null?void 0:yr.question_type)===5&&t.a.createElement("a",{style:{marginLeft:20},target:"_blank",href:"/shixuns/".concat(yr==null?void 0:yr.shixun_identifier,"/challenges")},"\u5B9E\u8BAD\u8BE6\u60C5")),t.a.createElement(je.a,{className:re.a.customTable,style:{display:la?"block":"none"},dataSource:rr,bordered:!1,rowKey:function(we){return we.id},rowClassName:re.a.row,columns:Mr,loading:Qn,pagination:{pageSize:wn.limit,total:wn.total,current:wn.page,onChange:pt,showQuickJumper:!0,showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomCenter"]}}),t.a.createElement("div",{className:re.a.line,style:{visibility:Or?"hidden":"visible"}}))},Ue=de,it=_("lzim"),Mt=function(In){var En=In.exercise,Or=In.globalSetting,yr=In.dispatch,zr=Object(E.useState)(""),Zn=Object(r.a)(zr,2),An=Zn[0],rr=Zn[1],ar=Object(E.useState)([]),Pr=Object(r.a)(ar,2),sa=Pr[0],Qn=Pr[1],Hr=Object(E.useState)(""),pa=Object(r.a)(Hr,2),Ma=pa[0],la=pa[1],Ir=Object(E.useState)(!1),mr=Object(r.a)(Ir,2),Kr=mr[0],ra=mr[1],Er=Object(A.i)();Object(E.useEffect)(function(){wn()},[]);var wn=function(){var $e=Object(x.a)(b.a.mark(function pt(vt){var Me;return b.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return ra(!0),Ke.next=3,Object(C.a)("/api/courses/".concat(Er==null?void 0:Er.coursesId,"/exercises/code_review_results.json"),{method:"get",params:{id:Er==null?void 0:Er.categoryId,search:An}});case 3:if(Me=Ke.sent,!((Me==null?void 0:Me.status)===-2)){Ke.next=7;break}return wn(),Ke.abrupt("return");case 7:Me&&(ra(!1),Qn((Me==null?void 0:Me.exercise_questions)||[]),la(Me==null?void 0:Me.last_review_time));case 8:case"end":return Ke.stop()}},pt)}));return function(vt){return $e.apply(this,arguments)}}(),ma=function(){wn()},Mr=function(){return t.a.createElement("div",{className:Q.a.empty},t.a.createElement("img",{src:it.l,width:"258"}),t.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E"))};return t.a.createElement("section",{className:Q.a.warp},t.a.createElement("aside",{className:Q.a.header},t.a.createElement("div",null,"\u67E5\u91CD\u65F6\u95F4\uFF1A",Ma||"--"),!!Ma&&t.a.createElement(te.a,{value:An,onChange:function(pt){return rr(pt.target.value)},suffix:t.a.createElement("i",{onClick:ma,className:"iconfont icon-sousuo2 c-grey-c"}),bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onPressEnter:ma})),t.a.createElement(Zt.a,{loading:Kr,active:!0,paragraph:{rows:5}},sa.length>0?t.a.createElement("aside",{className:Q.a.subject},sa.map(function($e,pt){return t.a.createElement(Ue,{key:pt,index:pt,bottomLine:pt===sa.length-1,gather:$e,search:An})})):Mr()))},Ln=Object(o.a)(function(tr){var In=tr.exercise,En=tr.globalSetting;return{exercise:In,globalSetting:En}})(Mt),kn=_("/zsF"),St=_("PArb"),an=_("LYsE"),Pn=_("k5F3"),dn=function(In){var En=In.exercise,Or=In.loading,yr=In.dispatch,zr=In.activeTabs,Zn=Object(A.i)(),An=Object(E.useState)(Object(i.a)(Object(i.a)({},Zn),{page:1,per_page:10})),rr=Object(r.a)(An,1),ar=rr[0],Pr=En.editData;Object(E.useEffect)(function(){zr==="2"&&sa()},[Zn.categoryId,zr]);var sa=function(){yr({type:"exercise/editExercise",payload:Object(i.a)({},ar)})};return Object(E.useEffect)(function(){return yr({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),yr({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){yr({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),yr({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[]),t.a.createElement("section",{className:"minH1050 mb20 pt30 pb30 pl60 bg-white relative"},t.a.createElement(Pn.a,{isPreview:!0,activeTabs:zr}),t.a.createElement(St.a,null),t.a.createElement(an.a,{data:Pr==null?void 0:Pr.exercise_question_types,isDragDisabled:!0}))},jn=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En.effects}})(dn),Bn=_("T2oS"),ne=_("W9HT"),B=_("Q9mQ"),H=_("diRs"),ae=_("CCdo"),ue=_.n(ae),oe=_("RotF"),ht=_.n(oe),vn=_("6K3P"),Tn=_.n(vn),fr=_("0owl"),Vt=_("ek7X"),Et=function(In){var En,Or,yr,zr=In.exercise,Zn=In.loading,An=In.dispatch,rr=In.cb,ar=Object(i.a)(Object(i.a)({},Object(A.i)()),{},{page:0,limit:50,one:null,two:null,save_one:null,save_two:null,sort:null,course_group:"",student_id:"",realname:"",save_course_group:"",save_student_id:"",save_realname:""}),Pr=Object(E.useState)(Object(i.a)({},ar)),sa=Object(r.a)(Pr,2),Qn=sa[0],Hr=sa[1],pa=Object(E.useState)([]),Ma=Object(r.a)(pa,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)(!0),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=Object(E.useState)(!0),ma=Object(r.a)(wn,2),Mr=ma[0],$e=ma[1],pt=Object(E.useState)(0),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=Object(E.useState)(!1),De=Object(r.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(E.useState)([]),gt=Object(r.a)(Bt,2),zt=gt[0],Ft=gt[1];Object(E.useEffect)(function(){zr.actionTabs.key==="\u6253\u56DE\u91CD\u505A"&&(la=[],on(1))},[zr.actionTabs.key]);var on=function(){var hn=Object(x.a)(b.a.mark(function Lr(oa){var ya,yt;return b.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return oa==1&&(la=[]),Er(!0),Qn.page=oa,$e(!0),un.next=6,An({type:"exercise/getRedoModal",payload:Object(i.a)(Object(i.a)({},Qn),{},{score:((Qn==null?void 0:Qn.one)||0)+"".concat(Qn!=null&&Qn.two?","+(Qn==null?void 0:Qn.two):"")})});case 6:yt=un.sent,(yt==null||((ya=yt.exercise_users)===null||ya===void 0)?void 0:ya.length)0?t.a.createElement("p",null,"\u9009\u62E9\u73ED\u7EA7\uFF1A"):t.a.createElement("p",null,"\u6682\u65E0\u5206\u73ED"),t.a.createElement(be.a.Group,{value:Qn,onChange:$e},rr.map(function(pt){return t.a.createElement(be.a,{key:pt.id,value:pt.id},pt.name)}))),t.a.createElement("p",{style:{marginBottom:40},className:"c-grey-999 mt40"},"\u8BF4\u660E\uFF1A\u5E73\u53F0\u76EE\u524D\u4EC5\u652F\u6301java\u3001python\u3001c\u3001c++\u8BED\u8A00\u7684\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u7684\u4EE3\u7801\u67E5\u91CD\u3002")),t.a.createElement("div",{className:ir.a.footer},t.a.createElement(be.a,{checked:ra,onChange:function(vt){var Me=vt.target.checked?rr.map(function(we){return we.id}):[];Hr(Me),Er(vt.target.checked)}},"\u5168\u9009"),t.a.createElement(g.a,{onClick:ma},"\u53D6\u6D88"),t.a.createElement(g.a,{onClick:Mr,type:"primary"},"\u786E\u8BA4"))))},ua=Object(o.a)(function(tr){var In=tr.exercise;return{exercise:In}})(jr),Yr=_("Fzz4"),Tr=_("DZo9"),Jn=_("8z0m"),hr=_("/MfK"),Sn=_("w5pM"),On=_("jN4g"),or=_("xvlK"),Dn=_("dfu6"),pr=j.a.TabPane,Gn=function(In){var En,Or=In.exercise,yr=In.loading,zr=In.dispatch,Zn=Object(A.i)(),An=Object(A.h)(),rr=ze.a.useForm(),ar=Object(r.a)(rr,1),Pr=ar[0],sa=Object(E.useState)({}),Qn=Object(r.a)(sa,2),Hr=Qn[0],pa=Qn[1],Ma=Object(E.useState)("1"),la=Object(r.a)(Ma,2),Ir=la[0],mr=la[1];return Object(E.useEffect)(function(){Or.actionTabs.key==="addIp"&&(Pr.resetFields(),mr("1"))},[Or.actionTabs]),t.a.createElement(m.a,{centered:!0,title:"\u6DFB\u52A0IP\u8303\u56F4",visible:Or.actionTabs.key==="addIp",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:600,bodyStyle:{minHeight:200},onOk:Object(x.a)(b.a.mark(function Kr(){var ra;return b.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Pr.validateFields();case 2:if(Hr.ip){wn.next=7;break}if(ra=Hr.startIP.split(".")[3],!(parseInt(ra)>parseInt(Hr.endIP))){wn.next=7;break}return p.b.warn("IP\u533A\u95F4\u6BB5\u4E0D\u5408\u6CD5"),wn.abrupt("return");case 7:zr({type:"exercise/setActionTabs",payload:{key:"insterIp",data:Object(i.a)({},Pr.getFieldValue()),type:Or.actionTabs.type}});case 8:case"end":return wn.stop()}},Kr)})),onCancel:function(){zr({type:"exercise/setActionTabs",payload:{}})}},t.a.createElement("section",{className:"pl10 pr10"},t.a.createElement(j.a,{activeKey:Ir,onChange:function(ra){mr(ra),Pr.resetFields()}},t.a.createElement(pr,{tab:"\u65B0\u589EIP\u5730\u5740",key:"1"}),t.a.createElement(pr,{tab:"\u65B0\u589EIP\u8303\u56F4",key:"2"})),t.a.createElement(ze.a,{form:Pr,className:"pt30",name:"form",layout:"vertical",onValuesChange:function(ra,Er){pa(Object(i.a)({},Er))}},Ir==="1"&&t.a.createElement(ze.a.Item,{name:"ip",rules:[{required:!0,message:"\u8BF7\u8F93\u5165IP\u5730\u5740"}],label:"IP\u5730\u5740"},t.a.createElement(dt.a,{open:!1,tokenSeparators:[";",",","\uFF1B"],size:"large",mode:"tags",style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165IP\u5730\u5740,\u53EF\u540C\u65F6\u6DFB\u52A0\u591A\u4E2AIP\u5730\u5740\uFF0C\u4E2D\u95F4\u7528\u82F1\u6587\u7684\u5206\u53F7\u95F4\u9694\u3002",onChange:function(ra){Pr.setFieldsValue({ip:Object(O.a)(ra.filter(function(Er){return Object(Dn.a)(Er)?!0:(p.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"),!1)}))})}})),Ir==="2"&&t.a.createElement(he.a,{gutter:[20,20]},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement(ze.a.Item,{name:"startIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740"}],label:"\u8D77\u59CBIP\u5730\u5740"},t.a.createElement(te.a,{maxLength:15,placeholder:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740",onBlur:function(ra){var Er="";Object(Dn.a)(ra.target.value)?Er=ra.target.value:(Er="",p.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165")),Pr.setFieldsValue({startIP:Er})}}))),t.a.createElement(Ee.a,{flex:"1"},t.a.createElement(ze.a.Item,{name:"endIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740"},{pattern:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,message:"\u8BF7\u8F93\u51650-255\u7684\u7F51\u6BB5"}],label:"\u7ED3\u675FIP\u5730\u5740"},t.a.createElement(te.a,{onBlur:function(ra){},prefix:t.a.createElement("span",{className:"font14"},(En=Hr.startIP)===null||En===void 0?void 0:En.substring(0,Hr.startIP.lastIndexOf("."))),maxLength:3,placeholder:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740\u7684\u540E\u4E09\u4F4D"})))))))},se=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En}})(Gn),tt=_("2JKx"),rt=_.n(tt),ut=_("Ot1p"),Kt=_("+BJd"),Ct=_("mr32"),Yt=j.a.TabPane,nn=dt.a.Option,_n=function(In){var En,Or,yr,zr=In.exercise,Zn=In.loading,An=In.data,rr=In.disabled,ar=In.updata,Pr=In.dispatch,sa=Object(A.i)(),Qn=Object(A.h)(),Hr=ze.a.useForm(),pa=Object(r.a)(Hr,1),Ma=pa[0],la=Object(E.useState)({}),Ir=Object(r.a)(la,2),mr=Ir[0],Kr=Ir[1],ra=Object(E.useState)("1"),Er=Object(r.a)(ra,2),wn=Er[0],ma=Er[1],Mr=zr.workSetting,$e=zr.commonHeader,pt=Object(E.useState)(!1),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=Object(E.useState)([]),De=Object(r.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(E.useState)([]),gt=Object(r.a)(Bt,2),zt=gt[0],Ft=gt[1],on=Object(E.useState)(!1),yn=Object(r.a)(on,2),zn=yn[0],gr=yn[1],Xr=Object(E.useState)([]),Jr=Object(r.a)(Xr,2),aa=Jr[0],hn=Jr[1],Lr=Object(E.useState)([]),oa=Object(r.a)(Lr,2),ya=oa[0],yt=oa[1],Fr=Object(E.useState)({id:sa.categoryId,exercise_group_id:[]}),un=Object(r.a)(Fr,2),Rn=un[0],xr=un[1],Ca=Object(E.useState)(0),Nr=Object(r.a)(Ca,2),Sr=Nr[0],xa=Nr[1];Object(E.useMemo)(function(){var qn,Ar,Da;if(Mr!=null&&(qn=Mr.published_course_groups)!==null&&qn!==void 0&&qn.length){var Ia,La=Object(O.a)(Mr==null||((Ia=Mr.published_course_groups)===null||Ia===void 0)?void 0:Ia.map(function(ri){return Object(O.a)(ri.course_group_id)}).flat());ct(Object(O.a)(La))}else if(Mr!=null&&Mr.published_course_groups){var Br;ct(Object(O.a)(Mr==null||((Br=Mr.course_groups)===null||Br===void 0)?void 0:Br.map(function(ri){return ri.course_group_id})))}if(Mr!=null&&(Ar=Mr.exercise)!==null&&Ar!==void 0&&Ar.group_make_ups||Mr!=null&&(Da=Mr.exercise)!==null&&Da!==void 0&&Da.unified_make_up){var $r;if(gr(!0),Mr!=null&&($r=Mr.exercise)!==null&&$r!==void 0&&$r.group_make_ups){var ka,Na,qa=zt;Mr==null||((ka=Mr.exercise)===null||ka===void 0||((Na=ka.group_make_ups)===null||Na===void 0))||Na.map(function(ri,ni){qa[ni]=ri.course_group_id||[]}),Ft(Object(O.a)(qa))}}},[Mr]),Object(E.useEffect)(function(){console.log("groupIds:",st)},[st]),Object(E.useEffect)(function(){console.log("selectGroupIds:",zt)},[zt]);var Vr=function(){var qn=Object(x.a)(b.a.mark(function Ar(Da){var Ia;return b.a.wrap(function(Br){for(;;)switch(Br.prev=Br.next){case 0:return Br.next=2,Object(P.K)(Object(i.a)({},Rn));case 2:Ia=Br.sent,yt(Object(O.a)(Ia.users.map(function($r){return $r.key=String($r.id),$r}).filter(function($r){var ka;return console.log("openKeys",An.group_make_ups[Sr].students,Sr),!((ka=An.group_make_ups[Sr].students)!==null&&ka!==void 0&&ka.some(function(Na){return Na.id===$r.id}))})));case 4:case"end":return Br.stop()}},Ar)}));return function(Da){return qn.apply(this,arguments)}}(),nr=[,{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"name"},{title:"\u5206\u73ED",dataIndex:"course_group_name"}],Wr={onChange:function(Ar,Da){hn(Object(O.a)(Da)),console.log("selectedRowKeys: ".concat(Ar),"selectedRows: ",Da)},getCheckboxProps:function(Ar){return{disabled:Ar.name==="Disabled User",name:Ar.name}}},Wn=function(Ar){return rr?!0:$e.exercise_status!==3},pn=function(Ar){var Da,Ia,La;return rr?!0:$e.exercise_status===2&&!(Mr!=null&&(Da=Mr.exercise)!==null&&Da!==void 0&&(Ia=Da.group_make_ups)!==null&&Ia!==void 0&&(La=Ia[Ar])!==null&&La!==void 0&&La.course_groups)?!1:$e.exercise_status!==3},Rr=function(Ar){if(rr)return!0;if($e.exercise_status===2){var Da,Ia,La;return Mr==null||((Da=Mr.exercise)===null||Da===void 0||((Ia=Da.group_make_ups)===null||Ia===void 0||((La=Ia[Ar])===null||La===void 0)))?void 0:La.is_all}return $e.exercise_status!==3};return t.a.createElement(t.a.Fragment,null,t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:24},t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement("h1",{className:"mt15"},"\u8865\u8003\u8BBE\u7F6E ",t.a.createElement("span",{className:"c-red font14"},"\uFF08\u6B63\u5F0F\u5F00\u59CB\u8865\u8003\u524D\uFF0C\u5207\u8BB0\u4FEE\u6539\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u5927\u4E8E\u5F53\u524D\u65F6\u95F4\uFF09"))))),t.a.createElement(Ee.a,{span:24,className:"mt10"},t.a.createElement(be.a,{checked:An.unified_make_up||((En=An.group_make_ups)===null||En===void 0?void 0:En.length),disabled:rr,onChange:function(Ar){Ar.target.checked?An.unified_make_up=!0:(An.unified_make_up=!1,delete An.group_make_ups),gr(Ar.target.checked)}},t.a.createElement("strong",null,"\u5F00\u542F\u8865\u8003")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u5F00\u542F\u540E\u53EF\u9488\u5BF9\u672A\u7B54\u5377\u7684\u5B66\u751F\u8BBE\u7F6E\u8865\u8003\uFF0C\u8865\u8003\u4E0E\u5EF6\u957F\u622A\u6B62\u65F6\u95F4\u4E0D\u53EF\u5171\u5B58\uFF09"))),zn&&t.a.createElement("section",{className:"ml40"},t.a.createElement(he.a,{align:"middle",className:"mt10"},t.a.createElement(Ee.a,null,t.a.createElement(F.a,{checked:An.unified_make_up,disabled:rr,onClick:function(){An.unified_make_up=!0,delete An.group_make_ups,ar(Object(i.a)({},An))}},"\u6240\u6709\u5206\u73ED\u7EDF\u4E00\u8865\u8003")),t.a.createElement(Ee.a,null,t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),t.a.createElement(Ee.a,{className:"ml10 mr10"},t.a.createElement(J.a,{min:0,max:100,placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:rr||$e.exercise_status!==3,onChange:function(Ar){An.make_up_score=Ar,ar(Object(i.a)({},An))},value:An.make_up_score,style:{width:150}})),t.a.createElement(Ee.a,null,"(\u5206)")))),((Or=Mr.course_groups)===null||Or===void 0?void 0:Or.length)>0&&t.a.createElement(he.a,{align:"middle",className:"mt10"},t.a.createElement(Ee.a,null,t.a.createElement(F.a,{disabled:rr||$e.exercise_status!==3,checked:An.group_make_ups,onClick:function(){var Ar;delete An.unified_make_up,An.group_make_ups=(Mr==null||((Ar=Mr.exercise)===null||Ar===void 0)?void 0:Ar.group_make_ups)||[{students:[],course_group_id:[],score:0}],ar(Object(i.a)({},An))}},"\u5404\u73ED\u5206\u522B\u8865\u8003"))),(yr=An.group_make_ups)===null||yr===void 0?void 0:yr.map(function(qn,Ar){var Da,Ia;return t.a.createElement("div",{key:Ar},t.a.createElement(he.a,{align:"middle",className:"mt10"},t.a.createElement(Ee.a,{flex:"100px"},"\u8865\u8003\u89C4\u5219",Ar+1),t.a.createElement(Ee.a,{className:"ml10"},t.a.createElement(dt.a,{style:{width:307},value:qn.course_group_id,mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",disabled:pn(Ar),onChange:function(Br,$r,ka){zt[Ar]=Br,An.group_make_ups[Ar].course_group_id=Br,ar(Object(i.a)({},An)),Ft(Object(O.a)(zt))}},Mr==null||((Da=Mr.course_groups)===null||Da===void 0)?void 0:Da.map(function(La,Br){var $r=[];return st.includes(La.course_group_id)?(zt.length&&($r=zt.filter(function(ka,Na){return Ar===Na?!1:!!ka.includes(La.course_group_id)})),$r.length?void 0:t.a.createElement(nn,{value:La.course_group_id,key:Br},La.course_group_name)):void 0}))),t.a.createElement(Ee.a,null,t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),t.a.createElement(Ee.a,{className:"ml10 mr10"},t.a.createElement(J.a,{value:qn.score,min:0,max:100,style:{width:150},placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:pn(Ar),onChange:function(Br){An.group_make_ups[Ar].score=Br,ar(Object(i.a)({},An))}})),t.a.createElement(Ee.a,null,"(\u5206)")))),t.a.createElement(he.a,{className:"mt20"},t.a.createElement(Ee.a,{flex:"220px"},t.a.createElement(F.a.Group,{name:"student",value:qn.is_all,disabled:Rr(Ar),onChange:function(Br){if(Br.target.value)delete An.group_make_ups[Ar].students;else{var $r,ka,Na;An.group_make_ups[Ar].students=(Mr==null||(($r=Mr.exercise)===null||$r===void 0||((ka=$r.group_make_ups)===null||ka===void 0||((Na=ka[Ar])===null||Na===void 0)))?void 0:Na.students)||[]}An.group_make_ups[Ar].is_all=Br.target.value,ar(Object(i.a)({},An))}},t.a.createElement(F.a,{value:!0},"\u5168\u90E8\u672A\u7B54\u5B66\u751F"),t.a.createElement(F.a,{value:!1},"\u6307\u5B9A\u5B66\u751F"))),t.a.createElement(Ee.a,{flex:"1"},!An.group_make_ups[Ar].is_all&&t.a.createElement("div",{onClick:function(){var Br;if(!((Br=zt[Ar])!==null&&Br!==void 0&&Br.length)){p.b.warn("\u8BF7\u5148\u9009\u62E9\u8865\u8003\u73ED\u7EA7");return}rr||(Rn.exercise_group_id=zt[Ar],we(!0),hn([]),xa(Ar),yt([]),Vr({page:1}))},className:"".concat(rr&&"disabledStyle"),style:{minHeight:28,border:"1px solid #ccc",padding:4}},(Ia=qn.students)===null||Ia===void 0?void 0:Ia.map(function(La,Br){return t.a.createElement(Ct.a,{key:Br,closable:La.add||$e.exercise_status>2,onClose:function(){qn.students.splice(Br,1),ar(Object(i.a)({},An))}},La.name)}))),t.a.createElement(Ee.a,{flex:"100px",className:"tr"},Ar>0&&$e.exercise_status===3&&t.a.createElement(hr.a,{onClick:function(){An.group_make_ups.splice(Ar,1),ar(Object(i.a)({},An))}}),t.a.createElement(Sn.a,{className:"c-green ml20",onClick:function(){An.group_make_ups.push({students:[],course_group_id:[],score:0,is_all:!0}),ar(Object(i.a)({},An))}}))))}),t.a.createElement(m.a,{title:"\u6307\u5B9A\u8865\u8003\u5B66\u751F",visible:Me,onCancel:function(){return we(!1)},destroyOnClose:!0,onOk:function(){An.group_make_ups[Sr].students=An.group_make_ups[Sr].students.concat(aa.map(function(Ar){return Ar.add=!0,Ar})),we(!1),console.log("data:",An),ar(Object(i.a)({},An))}},t.a.createElement(je.a,{columns:[].concat(nr),dataSource:Object(O.a)(ya),rowSelection:Object(i.a)({type:"checkbox"},Wr),pagination:{pageSize:10,defaultCurrent:1}}))))},cn=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En}})(_n),ur=_("m3rI"),Mn=te.a.TextArea,fn=mt.a.RangePicker,Hn=dt.a.Option,Xn=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa,Qn=In.exercise,Hr=In.globalSetting,pa=In.loading,Ma=In.dispatch,la=Object(A.i)(),Ir=Object(A.h)(),mr=Qn.workSetting,Kr=Qn.commonHeader,ra=Object(E.useState)(!0),Er=Object(r.a)(ra,2),wn=Er[0],ma=Er[1],Mr=Object(E.useState)([]),$e=Object(r.a)(Mr,2),pt=$e[0],vt=$e[1],Me=Object(E.useState)({}),we=Object(r.a)(Me,2),Ke=we[0],De=we[1],st=Object(E.useState)([]),ct=Object(r.a)(st,2),Bt=ct[0],gt=ct[1],zt=Object(E.useState)(),Ft=Object(r.a)(zt,2),on=Ft[0],yn=Ft[1],zn=ze.a.useForm(),gr=Object(r.a)(zn,1),Xr=gr[0],Jr=Object(E.useState)([]),aa=Object(r.a)(Jr,2),hn=aa[0],Lr=aa[1],oa=Object(E.useState)({ip_bind:!1,export_page_num:40,ip_limit:null,public_ip:[],inner_ip:[],screen_open:!1,screen_num:3,screen_sec:5,open_camera:!1,identity_verify:!1,open_phone_video_recording:!1,photo_count:5,open_make_up:!1,unified_setting:!1,publish_time:"",end_time:"",group_make_ups:[],unified_make_up:!1,make_up_score:0,time:"",choice_random:!1,question_random:!1,show_statistic:!1,assistant_auth:!1,answer_open:!1,score_open:!1,answered_open:!0,open_score:!0,open_total_score:!0,file_list:[],show_title:!1,show_body:!1,show_info:!1,show_table:!0,show_user:!1,show_no:!1,show_group:!0,show_desc:!1,description:"",attachment_id:"",part_score:!1}),ya=Object(r.a)(oa,2),yt=ya[0],Fr=ya[1];la.category=la.categoryId,Object(E.useEffect)(function(){xr()},[mr]),Object(E.useEffect)(function(){Ma({type:"exercise/getWorkSetting",payload:Object(i.a)({},la)}),Object(wt.s)()||un()},[]);function un(){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(x.a)(b.a.mark(function Wn(){var pn;return b.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qn.next=2,Object(C.a)("/api/courses/".concat(la==null?void 0:la.coursesId,"/exercises/overload_alert.json"),{method:"get",params:{course_id:la==null?void 0:la.coursesId}});case 2:pn=qn.sent,yn(pn==null?void 0:pn.alert);case 4:case"end":return qn.stop()}},Wn)})),Rn.apply(this,arguments)}Object(E.useEffect)(function(){Qn.actionTabs.key==="insterIp"&&(Qn.actionTabs.data.ip?yt[Qn.actionTabs.type]=[].concat(Object(O.a)(yt[Qn.actionTabs.type]||[]),Object(O.a)(Qn.actionTabs.data.ip)):yt[Qn.actionTabs.type]=[].concat(Object(O.a)(yt[Qn.actionTabs.type]||[]),["".concat(Qn.actionTabs.data.startIP,",").concat(Qn.actionTabs.data.startIP.substring(0,Qn.actionTabs.data.startIP.lastIndexOf("."))+"."+Qn.actionTabs.data.endIP)]),Fr(Object(i.a)({},yt)))},[Qn.actionTabs]);var xr=function(){var pn,Rr,qn,Ar,Da,Ia,La,Br=JSON.parse(JSON.stringify(mr));Object.keys(yt).map(function($r){var ka,Na,qa;if(yt[$r]=(Br==null||((ka=Br.exercise)===null||ka===void 0)?void 0:ka[$r])||(Br==null||((Na=Br.exercise_header)===null||Na===void 0)?void 0:Na[$r]),Br!=null&&(qa=Br.exercise_header)!==null&&qa!==void 0&&qa[$r]){var ri;yt[$r]=Br==null||((ri=Br.exercise_header)===null||ri===void 0)?void 0:ri[$r]}else{var ni;yt[$r]=Br==null||((ni=Br.exercise)===null||ni===void 0)?void 0:ni[$r]}}),yt.file_list=Br!=null&&(pn=Br.exercise_header)!==null&&pn!==void 0&&pn.attachment_id?[{uid:Br==null||((Rr=Br.exercise_header)===null||Rr===void 0)?void 0:Rr.attachment_id,id:Br==null||((qn=Br.exercise_header)===null||qn===void 0)?void 0:qn.attachment_id,url:Br==null||((Ar=Br.exercise_header)===null||Ar===void 0)?void 0:Ar.photo_url}]:[],hn=(Br==null||((Da=Br.published_course_groups)===null||Da===void 0)?void 0:Da.map(function($r){return{course_group_id:$r.course_group_id,end_time:$r.course_end_time,publish_time:$r.course_publish_time}}))||[{}],mr==null||((Ia=mr.course_groups)===null||Ia===void 0)||Ia.map(function($r,ka){$r.cilckkey="",$r.isselect=!1}),mr==null||((La=mr.course_groups)===null||La===void 0)||La.map(function($r,ka){var Na;mr==null||((Na=mr.published_course_groups)===null||Na===void 0)||Na.map(function(qa,ri){var ni;qa!=null&&(ni=qa.course_group_id)!==null&&ni!==void 0&&ni.includes($r==null?void 0:$r.course_group_id)&&($r.cilckkey=ri,$r.isselect=!0)})}),console.log("data:",yt,mr),Fr(yt),Lr(hn)},Ca=function(){var pn,Rr,qn,Ar,Da,Ia=JSON.parse(JSON.stringify(yt));if(Ia.categoryId=la.categoryId,Ia.publish_time_groups=hn,Ia.attachment_id=((pn=Ia.file_list)===null||pn===void 0||((Rr=pn[0])===null||Rr===void 0||((qn=Rr.response)===null||qn===void 0))?void 0:qn.id)||null,delete Ia.file_list,yt.unified_setting){if(!yt.publish_time||!yt.end_time)throw p.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")}else{if(!hn.length){p.b.warn("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}delete Ia.publish_time,delete Ia.end_time,hn.map(function(Br){var $r;if(!Br.course_group_id||!(($r=Br.course_group_id)!==null&&$r!==void 0&&$r.length))throw p.b.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!Br.publish_time||!Br.end_time)throw p.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}if(yt.open_camera&&yt.photo_count<1)throw p.b.error("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570"),new String("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570");if(yt.ip_limit!=="no"&&!((Ar=yt.public_ip)!==null&&Ar!==void 0&&Ar.length)&&!((Da=yt.inner_ip)!==null&&Da!==void 0&&Da.length))throw p.b.error("\u8BF7\u586B\u5199\u516C\u7F51IP\u6216\u5185\u7F51IP\u5730\u5740"),new String("\u8BF7\u586B\u5199\u5185\u7F51IP\u5730\u5740");if(yt.open_camera||yt.screen_open)var La=m.a.confirm({title:"\u8003\u8BD5\u8BF4\u660E",className:"custom-modal-divider",icon:null,width:750,content:t.a.createElement("div",{className:"font16 p20"},yt.open_camera&&t.a.createElement(he.a,{align:"",justify:"start",className:"mt20"},t.a.createElement(Ee.a,{flex:"24px"},t.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),t.a.createElement(Ee.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u6444\u50CF\u9632\u4F5C\u5F0A\u529F\u80FD\uFF0C",t.a.createElement("span",{className:"c-red"},"\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907"),"\u3002Educoder\u5E73\u53F0\u5C06\u4F1A\u4E25\u683C\u4FDD\u62A4\u6240\u6709\u5B66\u751F\u7684\u7167\u7247\u548C\u89C6\u9891\uFF0C\u5E76\u627F\u8BFA\u4E0D\u5728\u672C\u5E73\u53F0\u4EE5\u5916\u4F7F\u7528\u3002",t.a.createElement("br",null),"\u8BF7\u786E\u8BA4\uFF1A\u4E3A\u4E25\u683C\u76D1\u7763\u8003\u8BD5\u4EE5\u83B7\u5F97\u516C\u5E73\uFF0C\u60A8\u540C\u610F\u5E76\u548C\u8981\u6C42Educoder\u5E73\u53F0\u5728\u672C\u6B21\u8003\u8BD5\u4E2D\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907\u5E76\u83B7\u53D6\u5B66\u751F\u7684\u5F71\u50CF\u4FE1\u606F\u3002")),yt.screen_open&&t.a.createElement(he.a,{justify:"start",className:"mt20"},t.a.createElement(Ee.a,{flex:"24px",className:"mr20"},t.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),t.a.createElement(Ee.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u9632\u5207\u5C4F\u529F\u80FD\uFF0C\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u4EC5\u652F\u6301\u8C37\u6B4C\u3001\u706B\u72D0\u6D4F\u89C8\u5668\u3002 \u8BF7\u786E\u4FDD\uFF1A\u5728\u6B63\u5F0F\u5F00\u59CB\u8003\u8BD5\u524D\u901A\u77E5\u5168\u4F53\u5B66\u751F\uFF0C\u4F7F\u7528 ",t.a.createElement("img",{width:"26",src:it.g})," ",t.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C\u6D4F\u89C8\u5668"),"\u6216",t.a.createElement("img",{width:"26",src:it.p})," ",t.a.createElement("span",{className:"c-red"},"\u706B\u72D0\u6D4F\u89C8\u5668"),"\u8FDB\u884C\u8003\u8BD5\u3002")),t.a.createElement("p",{className:"ml40 mt40"},t.a.createElement(be.a,{onChange:function($r){return La.update({okButtonProps:{disabled:!$r.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){Nr(Ia)},okButtonProps:{disabled:!0}});else Nr(Ia)},Nr=function(pn){Object(P.db)(Object(i.a)({},pn)).then(function(Rr){Rr.status===0&&(p.b.success("\u66F4\u65B0\u6210\u529F"),Ma({type:"exercise/getCommonHeader",payload:Object(i.a)({},la)}),Ma({type:"exercise/getWorkSetting",payload:Object(i.a)({},la)}),ma(!0))})},Sr=function(pn){return pn&&pn1&&!(pn!=null&&pn.new)?!0:mr!=null&&(qn=mr.published_course_groups)!==null&&qn!==void 0&&qn.some(function(Ar){return Ar.course_group_id===pn.course_group_id})?wn:!1},nr=function(pn){var Rr,qn;if(wn)return[!0,!0];if((mr==null||((Rr=mr.exercise)===null||Rr===void 0)?void 0:Rr.exercise_status)>1)return pn!=null&&pn.new?[!1,!1]:[!0,!1];if(mr!=null&&(qn=mr.published_course_groups)!==null&&qn!==void 0&&qn.some(function(Da){return Da.course_group_id===pn.course_group_id})){var Ar;return wn||(mr==null||((Ar=mr.exercise)===null||Ar===void 0)?void 0:Ar.exercise_status)>1?[!0,!1]:[!1,!1]}else return[!1,!1]},Wr={disabled:wn,multiple:!1,listType:"picture-card",onPreview:function(pn){Tt.a.publish("preview-image",pn.thumbUrl)},withCredentials:!0,fileList:yt.file_list,beforeUpload:function(pn){var Rr=pn.size/1024;return Rr>200?(p.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),!1):!0},action:"".concat(ur.a.API_SERVER,"/api/attachments.json"),onChange:function(pn){var Rr=pn.fileList.filter(function(qn){return!!qn.status});yt.file_list=Rr,Fr(Object.assign({},yt))},onRemove:function(){var Wn=Object(x.a)(b.a.mark(function Rr(qn){return b.a.wrap(function(Da){for(;;)switch(Da.prev=Da.next){case 0:return yt.file_list=[],Fr(Object.assign({},yt)),Da.abrupt("return",!0);case 3:case"end":return Da.stop()}},Rr)}));function pn(Rr){return Wn.apply(this,arguments)}return pn}()};return t.a.createElement("section",{className:[rt.a.form,"mb50 bg-white"].join(" ")},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:24},t.a.createElement(he.a,{align:"middle"},t.a.createElement(Ee.a,{flex:"1"},t.a.createElement("h1",{className:"mt15"},"\u53D1\u5E03\u8BBE\u7F6E")),t.a.createElement(Ee.a,null,Object(wt.c)()&&Kr.can_edit&&wn&&t.a.createElement(g.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return ma(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),((En=mr.course_groups)===null||En===void 0?void 0:En.length)>0&&t.a.createElement(Ee.a,{span:24,className:"mt10"},t.a.createElement(be.a,{checked:yt.unified_setting,disabled:wn||(mr==null||((Or=mr.exercise)===null||Or===void 0)?void 0:Or.exercise_status)>1,onChange:function(){var pn;if((mr==null||((pn=mr.exercise)===null||pn===void 0)?void 0:pn.exercise_status)>1){p.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03");return}yt.unified_setting=!yt.unified_setting,yt.unified_setting===!1&&hn==""&&Lr(hn.concat({})),Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\u5219\u6240\u6709\u5206\u73ED\u4F7F\u7528\u76F8\u540C\u7684\u53D1\u5E03\u8BBE\u7F6E\uFF0C\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u53EF\u4FEE\u6539\uFF1B\u5426\u5219\u5404\u4E2A\u5206\u73ED\u5141\u8BB8\u5355\u72EC\u8BBE\u7F6E)")),t.a.createElement("span",{style:{color:"red"}},(mr==null||((yr=mr.exercise)===null||yr===void 0)?void 0:yr.exercise_status)>1&&on&&"\u5F53\u524D\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\uFF0C\u4E3A\u63D0\u4F9B\u66F4\u597D\u7684\u670D\u52A1\uFF0C\u6211\u4EEC\u5C06\u8FDB\u884C\u670D\u52A1\u5668\u6269\u5BB9\uFF0C\u5EFA\u8BAE\u60A8\u572830\u5206\u949F\u540E\u53D1\u8D77\u8003\u8BD5\u3002\u60A8\u4E5F\u53EF\u4EE5\u7ACB\u5373\u53D1\u5E03\u3002")),yt.unified_setting&&t.a.createElement("div",null,t.a.createElement(he.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(Ee.a,null,"\u53D1\u5E03\u65F6\u95F4:"),t.a.createElement(Ee.a,{className:"ml5"},t.a.createElement(Ne.a,{placement:"bottom",title:(mr==null||((zr=mr.exercise)===null||zr===void 0)?void 0:zr.exercise_status)>1&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u4FEE\u6539"},t.a.createElement(mt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Fe()(Object(R.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabledDate:Sr,disabled:wn||(mr==null||((Zn=mr.exercise)===null||Zn===void 0)?void 0:Zn.exercise_status)>1,value:yt.publish_time?Fe()(yt.publish_time):"",allowClear:!1,onChange:function(pn,Rr){yt.publish_time=Rr,yt.end_time||(yt.end_time=Fe()(pn).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),Fr(Object.assign({},yt))}}))),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"))),t.a.createElement(he.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(Ee.a,null,"\u622A\u6B62\u65F6\u95F4:"),t.a.createElement(Ee.a,{className:"ml5"},t.a.createElement(mt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Fe()(Object(R.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:wn,allowClear:!1,value:yt.end_time?Fe()(yt.end_time):"",disabledDate:xa,onChange:function(pn,Rr){yt.end_time=Rr,Fr(Object.assign({},yt))}})),t.a.createElement(Ee.a,null,t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)")))),!yt.unified_setting&&t.a.createElement(he.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},t.a.createElement(Ee.a,{span:24},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:10}),t.a.createElement(Ee.a,{span:9},t.a.createElement(he.a,{className:"c-grey-c"},t.a.createElement(Ee.a,{flex:"1"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"),t.a.createElement(Ee.a,{flex:"1"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)"))),t.a.createElement(Ee.a,{span:4}))),hn&&hn.map(function(Wn,pn){return t.a.createElement(Ee.a,{span:24,key:pn},t.a.createElement(he.a,{gutter:[8,16]},t.a.createElement(Ee.a,{span:9},t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,"\u53D1\u5E03\u89C4\u5219 ",pn+1),t.a.createElement(Ee.a,{style:{flexBasis:332}},t.a.createElement(dt.a,{allowClear:!0,disabled:Vr(Wn),className:"ml20",mode:"multiple",size:"large",style:{width:"100%"},value:Wn.course_group_id,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",optionFilterProp:"label",onChange:function(qn){hn[pn].course_group_id=qn,vt(hn.map(function(Ar){return Ar.course_group_id}).toString().split(",")),Lr(hn.slice()),mr.course_groups.map(function(Ar,Da){qn.map(function(Ia,La){Ar.course_group_id===Ia&&(Ar.cilckkey=pn,Ar.isselect=!0)})}),console.log(mr,"workSetting")},onDeselect:function(qn){mr.course_groups.map(function(Ar,Da){Ar.course_group_id===qn&&Ar.cilckkey===pn&&(Ar.cilckkey=pn,Ar.isselect=!1)})}},mr.course_groups&&mr.course_groups.map(function(Rr,qn){return t.a.createElement(Hn,Object(Ce.a)({key:qn,disabled:(Rr==null?void 0:Rr.isselect)&&Rr.cilckkey!=pn,label:Rr.course_group_name,value:Rr.course_group_id},"key",Rr.course_group_id),Rr.course_group_name)}))))),t.a.createElement(Ee.a,{span:1}),t.a.createElement(Ee.a,{span:9},t.a.createElement(fn,{disabled:nr(Wn),disabledDate:Sr,style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],showTime:{format:"HH:mm",defaultValue:[Fe()(Object(R.d)(),"HH:mm"),Fe()(Object(R.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",size:"large",value:Wn.publish_time&&[Fe()(Wn.publish_time),Wn.end_time&&Fe()(Wn.end_time)],onChange:function(qn,Ar){Vr(Wn)||(hn[pn].publish_time=Ar[0]),hn[pn].end_time=Ar[1],Lr(Object(O.a)(hn))}})),!wn&&t.a.createElement(Ee.a,{span:4},pn>0&&(Wn==null?void 0:Wn.new)&&t.a.createElement(hr.a,{onClick:function(){hn=hn.filter(function(qn,Ar){return pn!==Ar}),Lr(Object(O.a)(hn))}}),t.a.createElement(Sn.a,{className:"c-green ml20",onClick:function(){Lr(hn.concat({new:!0}))}}))))})),t.a.createElement(St.a,null),((Kr==null?void 0:Kr.exercise_status)===3||yt.open_make_up)&&t.a.createElement(t.a.Fragment,null,t.a.createElement(cn,{data:yt,disabled:wn,updata:Fr}),t.a.createElement(St.a,null)),t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u7B54\u9898\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("span",null,"\u7B54\u9898\u65F6\u957F\uFF1A"),t.a.createElement(J.a,{size:"large",disabled:wn,min:1,value:yt.time===-1?null:yt.time,onChange:function(pn){yt.time=pn,Fr(Object(i.a)({},yt))}}),t.a.createElement("span",{className:"ml10"},"\u5206\u949F"),t.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u7A7A\u503C\uFF0C\u4EE3\u8868\u4E0D\u9650\u65F6\u957F\uFF1B\u975E\u7A7A\u503C\uFF0C\u4EE3\u8868\u9650\u5236\u65F6\u957F\uFF0C\u4ECE\u5B66\u751F\u9996\u6B21\u7B54\u9898\u5F00\u59CB\u6301\u7EED\u8BA1\u65F6)")),!(Kr!=null&&Kr.is_random)&&t.a.createElement(t.a.Fragment,null,t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.question_random,disabled:wn,onChange:function(pn){yt.question_random=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9898\u76EE\u987A\u5E8F\u6309\u7167\u9898\u578B\u968F\u673A\u663E\u793A)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.choice_random,disabled:wn,onChange:function(pn){yt.choice_random=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9009\u9879\u987A\u5E8F\u968F\u673A\u663E\u793A)"))),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.part_score,disabled:wn,onChange:function(pn){yt.part_score=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u591A\u9009\u9898\u90E8\u5206\u5F97\u5206")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u90E8\u5206\u5F97\u5206=\uFF08\u7B54\u5BF9\u6570\u91CF/\u7B54\u6848\u603B\u6570\uFF09*\u8BD5\u9898\u5206\u503C\uFF0C\u5B58\u5728\u7B54\u9519\u4E0D\u5F97\u5206)"))),t.a.createElement(St.a,null),t.a.createElement(t.a.Fragment,null,t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u9632\u4F5C\u5F0A\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.identity_verify,disabled:!Object(wt.o)()||wn,onChange:function(pn){yt.identity_verify=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53C2\u52A0\u8003\u8BD5\u524D\u5C06\u4F1A\u8981\u6C42\u8C03\u7528\u6444\u50CF\u5934\u5E76\u5B8C\u6210\u62CD\u7167\u91C7\u96C6\uFF0C\u6559\u5E08/\u52A9\u6559\u5BA1\u6838\u901A\u8FC7\u540E\u5B66\u751F\u5E76\u5F00\u542F\u624B\u673A\u5F55\u5236\u89C6\u9891\u5219\u53EF\u4EE5\u5F00\u59CB\u8003\u8BD5)"),t.a.createElement("br",null),t.a.createElement("span",{className:"c-grey-c font12"},"\u5982\u5F00\u542F\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u4EE5\u5728\u8BE5\u8003\u8BD5\u4E2D\u7684\u8BE6\u60C5\u9875\u4E2D\u5BF9\u5B66\u751F\u4EBA\u8138\u8EAB\u4EFD\u8FDB\u884C\u5BA1\u6838\u3002")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.open_camera,disabled:wn,onChange:function(pn){if(!yt.time){p.b.error("\u4E0D\u9650\u65F6\u957F\u7684\u8003\u8BD5\u4E0D\u53EF\u5F00\u542F\u6444\u50CF\u5934\uFF0C\u8BF7\u586B\u5199\u8003\u8BD5\u65F6\u957F");return}yt.open_camera=pn.target.checked,yt.photo_count=yt.photo_count||5,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u76D1\u8003")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53C2\u52A0\u8003\u8BD5\u65F6\u5C06\u4F1A\u8981\u6C42\u8C03\u7528\u6444\u50CF\u5934)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("span",null,"\u672C\u573A\u8003\u8BD5\u6700\u591A\u62CD\u6444\uFF1A"),t.a.createElement(J.a,{size:"large",disabled:wn||!yt.open_camera,min:1,defaultValue:5,max:Object(wt.v)()?1e3:10,value:yt.photo_count,onChange:function(pn){yt.photo_count=pn,Fr(Object(i.a)({},yt))}}),t.a.createElement("span",{className:"ml10"},"(\u6B21)"),t.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u8BF7\u586B\u5199\u4E0D\u5927\u4E8E10\u7684\u6B63\u6574\u6570)")),t.a.createElement(Ee.a,{className:"c-grey-c font12 pl30 mt10"},"\u5982\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u5B66\u751F\u5FC5\u987B\u540C\u610F\u624D\u53EF\u4EE5\u53C2\u52A0\u8003\u8BD5\u3002"),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.screen_open,disabled:wn,onChange:function(pn){yt.screen_open=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"))),yt.screen_open&&t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 font14"},t.a.createElement("span",{className:"c-grey-333 mr10"},"\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u5207\u6362\u9875\u9762\u8D85\u8FC7"),t.a.createElement(J.a,{size:"large",disabled:wn,min:0,defaultValue:3,max:10,value:yt.screen_num,onChange:function(pn){yt.screen_num=pn,Fr(Object(i.a)({},yt))}}),t.a.createElement("span",{className:"c-grey-333 mr10"},"\uFF08\u6B21\uFF09\u540E\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF0C\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762"),t.a.createElement(J.a,{size:"large",disabled:wn,min:0,defaultValue:5,max:60,value:yt.screen_sec,onChange:function(pn){yt.screen_sec=pn,Fr(Object(i.a)({},yt))}}),t.a.createElement("span",{className:"c-grey-333"},"\uFF08\u79D2\uFF09\u540E\u5373\u5224\u5B9A\u4E3A\u5207\u5C4F\u3002")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.ip_limit!=="no",disabled:wn,onChange:function(pn){yt.ip_limit==="no"?yt.ip_limit="pub":yt.ip_limit="no",Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),t.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u4E0D\u5728IP\u8303\u56F4\u4E2D\u7684\u5C06\u65E0\u6CD5\u53C2\u52A0\u6B64\u8003\u8BD5\uFF09"))),yt.ip_limit!=="no"&&t.a.createElement(Ee.a,{className:"mt15 ml50"},t.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u8981\u6C42\u5B66\u751F\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),t.a.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),yt.ip_limit!=="no"&&t.a.createElement(t.a.Fragment,null,t.a.createElement(he.a,{className:"mt15 ml50 ".concat(rt.a.ipWrp)},t.a.createElement(Ee.a,null,t.a.createElement("span",null,"\u516C\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),t.a.createElement(Ee.a,null,!((An=yt.public_ip)!==null&&An!==void 0&&An.length)&&t.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(rr=yt.public_ip)===null||rr===void 0?void 0:rr.map(function(Wn,pn){return t.a.createElement("span",{className:rt.a.ipItem},t.a.createElement("i",null,Wn," "),!wn&&t.a.createElement(On.a,{onClick:function(){m.a.confirm({okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){yt.public_ip.splice(pn,1),Fr(Object(i.a)({},yt))}})},className:" c-grey-c",size:20}))}),Object(wt.c)()&&!wn&&t.a.createElement("span",{onClick:function(){Ma({type:"exercise/setActionTabs",payload:{key:"addIp",type:"public_ip"}})},className:"font14 c-blue ml10"}," ",t.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))),t.a.createElement(he.a,{className:"mt15 ml50 ".concat(rt.a.ipWrp)},t.a.createElement(Ee.a,null,t.a.createElement("span",null,"\u5185\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),t.a.createElement(Ee.a,null,!((ar=yt.inner_ip)!==null&&ar!==void 0&&ar.length)&&t.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(Pr=yt.inner_ip)===null||Pr===void 0?void 0:Pr.map(function(Wn,pn){return t.a.createElement("span",{className:rt.a.ipItem},t.a.createElement("i",null,Wn," "),!wn&&t.a.createElement(On.a,{onClick:function(){wn||m.a.confirm({title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){yt.inner_ip.splice(pn,1),Fr(Object(i.a)({},yt))}})},className:" c-grey-c",size:20}))}),Object(wt.c)()&&!wn&&t.a.createElement("span",{className:"font14 c-blue ml10",onClick:function(){Ma({type:"exercise/setActionTabs",payload:{key:"addIp",type:"inner_ip"}})}}," ",t.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0")))),t.a.createElement(he.a,null,t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.ip_bind,disabled:wn,onChange:function(pn){yt.ip_bind=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"IP\u7ED1\u5B9A"),t.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u8003\u8BD5\u5F00\u59CB\u540E\uFF0C\u5B66\u751F\u7684\u8D26\u53F7\u5C06\u81EA\u52A8\u4E0E\u673A\u5668IP\u7ED1\u5B9A\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u4EE5\u89E3\u9664\u5B66\u751F\u7684IP\u7ED1\u5B9A\uFF09")))),t.a.createElement(St.a,null)),t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u5C5E\u6027\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.score_open,disabled:wn,onChange:function(pn){yt.score_open=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9\uFF1B\u4F46\u672A\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D\u65F6\u81EA\u5DF1\u548C\u5176\u4ED6\u540C\u5B66\u6210\u7EE9\u5747\u4E0D\u53EF\u89C1)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.answer_open,disabled:wn,onChange:function(pn){yt.answer_open=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BD5\u5377\u9898\u76EE\u7684\u7B54\u6848\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 "},t.a.createElement(be.a,{checked:yt.show_statistic,disabled:wn,onChange:function(pn){yt.show_statistic=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u516C\u5F00\u7EDF\u8BA1")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u7B54\u9898\u7EDF\u8BA1\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.open_total_score,disabled:wn,onChange:function(pn){yt.open_total_score=pn.target.checked,pn.target.checked===!1&&(yt.open_score=pn.target.checked),Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u67E5\u770B\u603B\u6210\u7EE9")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u7684\u603B\u6210\u7EE9\u53CA\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\uFF0C\u5426\u5219\u603B\u6210\u7EE9\u548C\u5C0F\u9898\u5F97\u5206\u5747\u4E0D\u80FD\u67E5\u770B)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.open_score,disabled:yt.open_total_score?wn:!0,onChange:function(pn){yt.open_score=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u67E5\u770B\u5C0F\u9898\u5F97\u5206")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\u8BE6\u60C5\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B\u3002\u9009\u4E2D\u672C\u9879\u524D\u5FC5\u987B\u5148\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.answered_open,disabled:wn,onChange:function(pn){yt.answered_open=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u67E5\u770B\u5DF2\u7B54\u8BD5\u5377")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u67E5\u770B\u8BD5\u5377\u548C\u6210\u7EE9\uFF1B\u5426\u5219\u53EA\u80FD\u67E5\u770B\u6210\u7EE9\uFF0C\u4E0D\u80FD\u67E5\u770B\u8BD5\u5377)")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 pb40"},t.a.createElement(be.a,{checked:yt.assistant_auth,disabled:wn,onChange:function(pn){yt.assistant_auth=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u52A9\u6559\u67E5\u770B\u7B54\u6848")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u52A9\u6559\u67E5\u770B\u7B54\u6848)"))),t.a.createElement(St.a,null),Object(wt.c)()&&t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"600px"},t.a.createElement(he.a,null,t.a.createElement(Ee.a,null,t.a.createElement("strong",null,"\u8BD5\u5377\u5BFC\u51FA\u683C\u5F0F\u8BBE\u7F6E")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("strong",null,"\u5377\u5934\u5DE6\u89D2\u6807"),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u4F4D\u4E8E\u9996\u9875\u5DE6\u4E0A\u89D2\uFF0C\u8BF7\u4EE5\u56FE\u7247\u4E0A\u4F20\uFF1B\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k\uFF0C\u5C3A\u5BF8\u4E3A700x500\uFF09")),t.a.createElement("div",{className:"mt15 pl30"},t.a.createElement(Jn.a,Wr,!((sa=yt.file_list)!==null&&sa!==void 0&&sa.length)&&t.a.createElement("div",null,t.a.createElement(or.a,null),t.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")))),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.show_title,disabled:wn,onChange:function(pn){yt.show_title=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u5C55\u793A\u8BD5\u5377\u6807\u9898")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8BD5\u5377\u6807\u9898\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30 "},t.a.createElement(be.a,{checked:yt.show_body,disabled:wn,onChange:function(pn){yt.show_body=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u5C55\u793A\u8003\u8BD5\u5185\u5BB9")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF0C\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.show_info,disabled:wn,onChange:function(pn){yt.show_info=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F\u4FE1\u606F\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.show_table,disabled:wn,onChange:function(pn){yt.show_table=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u7ED9\u51FA\u5B66\u751F\u7684\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C\uFF09")),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("strong",null,"\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"),t.a.createElement(be.a,{className:"pl8",checked:yt.show_user,disabled:wn,onChange:function(pn){yt.show_user=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u59D3\u540D")),t.a.createElement(be.a,{checked:yt.show_no,disabled:wn,onChange:function(pn){yt.show_no=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u5B66\u53F7")),t.a.createElement(be.a,{checked:yt.show_group,disabled:wn,onChange:function(pn){yt.show_group=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u4E13\u4E1A\u73ED\u7EA7"))),Object(wt.o)()&&t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement("span",null,"\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"),t.a.createElement(J.a,{size:"large",min:1,value:yt.export_page_num?yt.export_page_num:40,onChange:function(pn){yt.export_page_num=pn,Fr(Object(i.a)({},yt))}}),t.a.createElement("span",{className:"ml10"},"\u9898")),t.a.createElement("span",{className:"c-grey-c font12 pl30 pt10"},"\uFF08\u52FE\u9009\u9879\u5C06\u4F1A\u51FA\u73B0\u5728\u9996\u9875\u5DE6\u4FA7\u5BC6\u5C01\u7EBF\u5185\uFF0C\u4E0D\u9009\u5219\u4EE3\u8868\u4E0D\u8BBE\u7F6E\u5BC6\u5C01\u533A\uFF09"),t.a.createElement(Ee.a,{span:24,className:"mt15 pl30"},t.a.createElement(be.a,{checked:yt.show_desc,disabled:wn,onChange:function(pn){yt.show_desc=pn.target.checked,Fr(Object.assign({},yt))}},t.a.createElement("strong",null,"\u8003\u8BD5\u8BF4\u660E")),t.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5F00\u542F\u6587\u672C\u7F16\u8F91\u5668\uFF0C\u53EF\u8F93\u5165500\u5B57\u4EE5\u5185\u7684\u8003\u8BD5\u8BF4\u660E\uFF09")),yt.show_desc&&t.a.createElement("div",{className:"mt15 pl30 pb40"},wn?t.a.createElement(Mn,{style:{height:150,width:550},disabled:!0,value:yt.description}):t.a.createElement(ut.a,{width:550,height:150,defaultValue:yt.description,id:"exercise-detail-config-exam-description-id",onChange:function(pn){yt.description=pn,Fr(Object.assign({},yt))}})))),t.a.createElement(Ee.a,{flex:1,className:"pt40 mb20"},t.a.createElement("div",{className:"pb10"},"\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"),t.a.createElement("img",{src:it.o}))),!wn&&t.a.createElement(Ee.a,{className:"mb50 pb10 btn-w120"},t.a.createElement(g.a,{type:"primary",size:"large",onClick:function(){return Ca()}},"\u63D0\u4EA4"),t.a.createElement(g.a,{onClick:function(){ma(!0),xr()},type:"primary",size:"large",ghost:!0,className:"ml20"},"\u53D6\u6D88")),t.a.createElement(sn.a,null),t.a.createElement(se,null))},$n=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading,Or=tr.globalSetting;return{exercise:In,loading:En.effects,globalSetting:Or}})(Xn),Yn=_("MXD1"),_r=_("CFYs"),vr=_("9Bee"),lr=_("51gm"),wr=_.n(lr),Dr={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u4E3B\u89C2\u9898",5:"\u5B9E\u8BAD\u9898",7:"\u7EC4\u5408\u9898"},sr={1:"\u6EE1\u5206\u4F5C\u7B54",2:"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54",3:"\u96F6\u5206\u4F5C\u7B54",4:"\u672A\u6279"},ia=function(In){var En,Or,yr=In.exercise,zr=In.loading,Zn=In.dispatch,An=Object(A.i)(),rr=Object(E.useState)(Object(i.a)(Object(i.a)({},An),{sort:"asc",page:1,limit:10})),ar=Object(r.a)(rr,2),Pr=ar[0],sa=ar[1],Qn=Object(A.h)(),Hr=yr.statisticsList,pa=Object(E.useState)({}),Ma=Object(r.a)(pa,2),la=Ma[0],Ir=Ma[1],mr=Object(E.useState)([]),Kr=Object(r.a)(mr,2),ra=Kr[0],Er=Kr[1],wn=Object(E.useState)(""),ma=Object(r.a)(wn,2),Mr=ma[0],$e=ma[1],pt=Object(E.useState)(""),vt=Object(r.a)(pt,2),Me=vt[0],we=vt[1],Ke=ze.a.useForm(),De=Object(r.a)(Ke,1),st=De[0],ct=function(){var on=Object.assign({},st.getFieldValue());Object.keys(on).map(function(yn){on[yn].includes("all")?(delete Pr[yn],st.setFieldsValue(Object(Ce.a)({},yn,"all"))):(Pr[yn]=on[yn],st.setFieldsValue(Object(Ce.a)({},yn,Pr[yn])))}),Pr.page=1,Pr.limit=10,zt()},Bt=function(on,yn){Pr.page=on,Pr.limit=20,Zn({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Pr)})},gt=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",align:"center",render:function(on){return t.a.createElement("span",null,on===0?0:(on*100).toFixed(2),"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",align:"center",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",align:"center",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",align:"center",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u4EBA")}}],zt=function(){var Ft=Object(x.a)(b.a.mark(function on(){var yn;return b.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return gr.next=2,Zn({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Pr)});case 2:yn=gr.sent,yn!=null&&yn.exercise_counts&&Er([yn.exercise_counts]);case 4:case"end":return gr.stop()}},on)}));return function(){return Ft.apply(this,arguments)}}();return Object(E.useEffect)(function(){zt()},[Pr.coursesId]),t.a.createElement(t.a.Fragment,null,t.a.createElement("section",{className:"minH500 bg-white"},t.a.createElement("aside",{className:"pt20"},t.a.createElement(ze.a,{form:st,onChange:ct,initialValues:(En={},Object(Ce.a)(En,"commit_status","all"),Object(Ce.a)(En,"exercise_group_id","all"),Object(Ce.a)(En,"review","all"),En)},t.a.createElement(ze.a.Item,{name:"exercise_group_id"},t.a.createElement(be.a.Group,{style:{width:"100%"}},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),t.a.createElement(Ee.a,{flex:"80px"},t.a.createElement(be.a,{value:"all",checked:!la.course_group},"\u5168\u90E8")),t.a.createElement(Ee.a,{flex:"1",className:wr.a.wrap},Hr.course_groups&&Hr.course_groups.map(function(Ft,on){return t.a.createElement(be.a,{value:Ft.exercise_group_id,key:on},Ft.exercise_group_name,"(",Ft.exercise_group_students,")")}))))))),t.a.createElement(je.a,{className:"mt30",loading:zr["exercise/getExerciseStatistics"],pagination:!1,dataSource:ra,columns:gt}),t.a.createElement("div",{className:wr.a.title},t.a.createElement(he.a,{align:"middle",style:{height:"100%"},className:"ml5 mr5"},t.a.createElement(Ee.a,{flex:1,className:"font16"},"\u7EDF\u8BA1\u8BE6\u60C5"),t.a.createElement(Ee.a,{className:"font16"},t.a.createElement("span",{className:"current",onClick:function(){Pr.sort=Pr.sort==="desc"?"asc":"desc",console.log("xx params.sort: ",Pr.sort),sa(Object(i.a)({},Pr)),zt()}},t.a.createElement("span",null,"\u6B63\u786E\u7387"),t.a.createElement("p",{className:"edu-sorter current ".concat(Pr.sort)},t.a.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),t.a.createElement("span",{className:"iconfont icon-sanjiaoxing-down"})))))),t.a.createElement(ne.a,{spinning:zr["exercise/getExerciseStatistics"]},t.a.createElement("div",{className:"minH200"},Hr==null||((Or=Hr.commit_results)===null||Or===void 0)?void 0:Or.map(function(Ft,on){var yn;return t.a.createElement("aside",{key:on,className:"font14 c-black mt30"},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:1},Ft.ques_position,".",Dr[Ft.ques_type]),t.a.createElement(Ee.a,null,"\u6B63\u786E\u7387 ",t.a.createElement("span",{className:"c-orange"},Ft.right_percent,"%"))),t.a.createElement("div",null,t.a.createElement(vr.a,{value:Ft.ques_title})),t.a.createElement("div",{className:"mt20",style:{display:Ft.ques_type===5?"none":""}},t.a.createElement(he.a,{className:"c-light-black ",gutter:[24,20]},t.a.createElement(Ee.a,{flex:1},"\u9009\u9879"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),t.a.createElement(Ee.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),t.a.createElement(St.a,{style:{margin:0,marginBottom:20,display:Ft.ques_type===5?"none":""}}),(Ft==null?void 0:Ft.ques_type)===7&&(Ft==null?void 0:Ft.sub_exercise_questions.map(function(zn,gr){var Xr;return t.a.createElement("div",null,t.a.createElement("div",{style:{marginBottom:10,display:"flex",justifyContent:"space-between"}},t.a.createElement(Ee.a,null,t.a.createElement("span",null,zn.ques_title)),t.a.createElement(Ee.a,null,"\u6B63\u786E\u7387 ",t.a.createElement("span",{className:"c-orange"},zn.right_percent,"%"))),zn==null||((Xr=zn.ques_details)===null||Xr===void 0)?void 0:Xr.map(function(Jr,aa){return t.a.createElement(he.a,{key:aa,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},t.a.createElement(he.a,{style:{alignItems:"center"}},Ft.ques_type===2||Ft.ques_type===3||Ft.ques_type===4?"":t.a.createElement(Ee.a,null,R.m[aa],". "),Ft.ques_type===4?t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:sr[Jr.choice_text]})):t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:Jr.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":Jr.choice_text})))),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},t.a.createElement("span",{className:Jr.choice_right_boolean&&"c-green"},Jr.choice_users_count||0)),t.a.createElement(Ee.a,{flex:"200px"},t.a.createElement(_r.a,{status:"active",strokeColor:"#2abd8b",percent:(Jr.choice_percent*100).toFixed(),width:200})))}),t.a.createElement(St.a,{style:{margin:0,marginBottom:20}}))})),(Ft==null?void 0:Ft.ques_type)<7&&(Ft==null||((yn=Ft.ques_details)===null||yn===void 0)?void 0:yn.map(function(zn,gr){return Ft.ques_type===5?t.a.createElement("div",{className:"mt20"},t.a.createElement(he.a,{key:gr,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},zn.challenge_position,".",zn.challenge_name),t.a.createElement(Ee.a,null,"\u6B63\u786E\u7387 ",t.a.createElement("span",{className:"c-orange"},zn.challenge_percent,"%"))),t.a.createElement("div",null,t.a.createElement(he.a,{className:"c-light-black ",gutter:[24,20]},t.a.createElement(Ee.a,{flex:1},"\u9009\u9879"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),t.a.createElement(Ee.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),t.a.createElement(St.a,{style:{margin:0,marginBottom:20}}),zn==null?void 0:zn.challenge_details.map(function(Xr){return t.a.createElement(he.a,{key:gr,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},t.a.createElement(he.a,null,t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:sr[Xr.choice_text]})))),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},t.a.createElement("span",{className:Xr.choice_right_boolean&&"c-green"},Xr.choice_users_count||0)),t.a.createElement(Ee.a,{flex:"200px"},t.a.createElement(_r.a,{status:"active",strokeColor:"#2abd8b",percent:(Xr.choice_percent*100).toFixed(),width:200})))}),t.a.createElement(he.a,{className:"",gutter:[24,20]},t.a.createElement(Ee.a,{className:"ml10",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},Ft.effictive_counts),t.a.createElement(Ee.a,{flex:"200px"})),t.a.createElement(St.a,{style:{margin:0,marginBottom:20}})):t.a.createElement(he.a,{key:gr,gutter:[24,24],className:"font14 c-black"},t.a.createElement(Ee.a,{flex:1},t.a.createElement(he.a,null,Ft.ques_type===2||Ft.ques_type===3||Ft.ques_type===4?"":t.a.createElement(Ee.a,null,R.m[gr],". "),Ft.ques_type===4?t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:sr[zn.choice_text]})):t.a.createElement(Ee.a,{flex:1,className:"ml10"},t.a.createElement(vr.a,{value:zn.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":zn.choice_text})))),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},t.a.createElement("span",{className:zn.choice_right_boolean&&"c-green"},zn.choice_users_count||0)),t.a.createElement(Ee.a,{flex:"200px"},t.a.createElement(_r.a,{status:"active",strokeColor:"#2abd8b",percent:(zn.choice_percent*100).toFixed(),width:200})))})),t.a.createElement(he.a,{style:{display:Ft.ques_type===5?"none":""},className:"",gutter:[24,20]},t.a.createElement(Ee.a,{className:Ft.ques_type===2||Ft.ques_type===3||Ft.ques_type===4?"ml10":"",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),t.a.createElement(Ee.a,{flex:"60px",className:"tc"},Ft.effictive_counts),t.a.createElement(Ee.a,{flex:"200px"})))})))),t.a.createElement("div",{className:"tc mt30 mb50"},t.a.createElement(W.a,{hideOnSinglePage:!1,total:Hr==null?void 0:Hr.questions_count,current:Pr.page||1,pageSize:Pr.limit,onChange:function(on,yn){Pr.page=on,Pr.limit=yn,zt()}})))},Ea=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En.effects}})(ia),Cr=_("cVA7"),kr=_.n(Cr),Zr={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898",5:"\u5B9E\u8BAD\u9898",6:"\u7F16\u7A0B\u9898",7:"\u7EC4\u5408\u9898"},Qr=function(In){var En,Or=In.exercise,yr=In.loading,zr=In.dispatch,Zn=Object(A.i)(),An=Object(A.h)(),rr=Or.statisticsList,ar=Object(E.useState)({}),Pr=Object(r.a)(ar,2),sa=Pr[0],Qn=Pr[1],Hr=Object(E.useState)([]),pa=Object(r.a)(Hr,2),Ma=pa[0],la=pa[1],Ir=Object(E.useState)(""),mr=Object(r.a)(Ir,2),Kr=mr[0],ra=mr[1],Er=Object(E.useState)(""),wn=Object(r.a)(Er,2),ma=wn[0],Mr=wn[1],$e=Object(E.useState)({}),pt=Object(r.a)($e,2),vt=pt[0],Me=pt[1],we=ze.a.useForm(),Ke=Object(r.a)(we,1),De=Ke[0];Zn.sort="asc";var st=function(on){return{title:{text:"\u300E \u5B66\u751F\u6B63\u786E\u7387\u5206\u5E03\u56FE \u300F",left:"center"},tooltip:{trigger:"item",formatter:"{b} : {c} \u4EBA"},legend:{bottom:0,icon:"circle",left:"center",itemWidth:6,itemHeight:6,data:["100%","90%-100%","70%-90%","60%-70%","60%\u4EE5\u4E0B"].reverse()},series:[{type:"pie",radius:"55%",minAngle:15,center:["50%","50%"],selectedMode:"single",label:{show:!0,position:"outer",normal:{formatter:`{b} + {c}\u4EBA`,color:"#5c5c5c",lineHeight:20}},labelLine:{normal:{length:20,length2:20,lineStyle:{color:"rgba(0,0,0,.45)"}}},data:[{value:on.details[0].full_count,name:"100%"},{value:on.details[0].best_count,name:"90%-100%"},{value:on.details[0].good_count,name:"70%-90%"},{value:on.details[0].pass_count,name:"60%-70%"},{value:on.details[0].fails_count,name:"60%\u4EE5\u4E0B"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},normal:{color:function(zn){var gr=["#99B8FB","#80E0B9","#8190AA","#F7C739","#EB7E65"];return gr[zn.dataIndex]}}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}},ct=function(){var on=Object.assign({},De.getFieldValue());Object.keys(on).map(function(yn){on[yn].includes("all")?(delete Zn[yn],De.setFieldsValue(Object(Ce.a)({},yn,"all"))):(Zn[yn]=on[yn],De.setFieldsValue(Object(Ce.a)({},yn,Zn[yn])))}),zr({type:"exercise/getExerciseStatistics",payload:Zn})},Bt=function(on,yn){Zn.page=on,Zn.limit=20,zr({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Zn)})},gt=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",render:function(on){return t.a.createElement("span",null,on*100,"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",render:function(on){return t.a.createElement("span",null,on,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",render:function(on){return t.a.createElement("span",null,on,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",render:function(on){return t.a.createElement("span",{className:"c-orange"},on,"\u4EBA")}}],zt=function(){var Ft=Object(x.a)(b.a.mark(function on(){var yn;return b.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return gr.next=2,zr({type:"exercise/getExerciseStatistics",payload:Object(i.a)({},Zn)});case 2:yn=gr.sent,yn!=null&&yn.exercise_counts&&la([yn.exercise_counts]);case 4:case"end":return gr.stop()}},on)}));return function(){return Ft.apply(this,arguments)}}();return Object(E.useEffect)(function(){zt()},[Zn.coursesId]),t.a.createElement("section",{className:"minH500 ",style:{padding:0}},t.a.createElement("aside",{className:"bg-white inline-block w100 th-bg-white"},t.a.createElement(je.a,{className:"mt10 bg-white",loading:yr["exercise/getExerciseStatistics"],pagination:!1,dataSource:Ma,columns:gt})),t.a.createElement("aside",{className:"mt20"},t.a.createElement("span",{className:"bold c-black font16 ml20"},"\u5DF2\u4EA4\u5377\u5B66\u751F\u7B54\u9898\u8BE6\u60C5")),t.a.createElement("aside",null,rr==null||((En=rr.commit_results)===null||En===void 0)?void 0:En.map(function(Ft,on){return t.a.createElement("div",{key:on,className:"bg-white pl20 pt20 pr20 pb20 mt20"},t.a.createElement("div",{style:{fontSize:14,color:"#0152d9",fontWeight:500}},on+1,"\u3001",Zr[Ft.question_type],t.a.createElement("span",{style:{color:"#999",paddingLeft:10}},"(\u5171",Ft.question_count,"\u5C0F\u9898\uFF0C",Ft.question_score,"\u5206)"),t.a.createElement("span",{style:{color:"#000",float:"right"}},"\u5168\u73ED\u6B63\u786E\u7387\uFF1A",Ft.right_percent*100,"%")),t.a.createElement(kr.a,{option:st(Ft),style:{height:370},opts:{renderer:"svg"}}))})))},Aa=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading;return{exercise:In,loading:En.effects}})(Qr),Ta=_("tf39"),ba=_.n(Ta),za=function(In){var En,Or,yr,zr,Zn,An,rr,ar,Pr,sa,Qn,Hr,pa=In.exercise,Ma=In.globalSetting,la=In.loading,Ir=In.dispatch,mr=In.user,Kr=In.match,ra=Object(u.a)(In,["exercise","globalSetting","loading","dispatch","user","match"]),Er=Object(A.i)(),wn=Object(A.h)(),ma=Object(E.useState)([]),Mr=Object(r.a)(ma,2),$e=Mr[0],pt=Mr[1],vt=pa.exerciseList,Me=pa.commonHeader,we=pa.checkDomain,Ke=Object(E.useState)(wn.query.tabs||0),De=Object(r.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(E.useState)(Fe()(new Date).valueOf()),gt=Object(r.a)(Bt,2),zt=gt[0],Ft=gt[1],on=Object(E.useState)(),yn=Object(r.a)(on,2),zn=yn[0],gr=yn[1],Xr=mr.userInfo,Jr=Object(A.g)();Er.category=wn.query.category_id;var aa=!we||we&&(Xr==null||((En=Xr.course)===null||En===void 0)?void 0:En.course_identity)<3;Object(E.useEffect)(function(){Ir({type:"exercise/getCommonHeader",payload:Object(i.a)({},Er)})},[Er.coursesId]);var hn=function(){var Sr;Object(R.W)({inner_ip:Me.inner_ip,public_ip:Me.public_ip,ip_limit:Me.ip_limit,ip_bind:Me.ip_bind,open_camera:Me.open_camera,exercise_tips:[Me.open_camera?"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A":""],exerciseId:Me.id,screen_open:Me.screen_open,screen_num:Me.screen_num,coursesId:Er.coursesId,login:Xr.login,history:ra.history,identity_verify:Me.identity_verify,current_status:Me==null||((Sr=Me.user_permission)===null||Sr===void 0)?void 0:Sr.current_status,open_phone_video_recording:Me==null?void 0:Me.open_phone_video_recording})},Lr=function(){Ir({type:"exercise/getExerciseList",payload:Object(i.a)({},Er)})},oa=function(){Ir({type:"exercise/getCommonHeader",payload:Object(i.a)({},Er)});var Sr={0:function(){Ir({type:"exercise/getExerciseList",payload:Object(i.a)({},Er)})},3:function(){Ir({type:"exercise/getWorkSetting",payload:Object(i.a)({},Er)})}};Sr[st]&&Sr[st]()};function ya(Nr){gr(Object(i.a)({},Nr))}var yt=[{name:"\u7B54\u9898\u5217\u8868",id:0,compontent:t.a.createElement(ye,{getparams:ya,checkDomainAuthority:aa})},{name:"\u8BD5\u5377\u9884\u89C8",id:2,compontent:t.a.createElement(jn,{activeTabs:st})},{name:"\u7EDF\u8BA1\u7ED3\u679C",id:1,compontent:t.a.createElement(Ea,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:4,compontent:t.a.createElement(Ln,{key:zt})},{name:"\u89C4\u5219\u8BBE\u7F6E",id:3,compontent:t.a.createElement($n,null)},{name:"\u4EBA\u8138\u5BA1\u6838",id:5,compontent:t.a.createElement(Xt,null)},{name:"\u6444\u50CF\u76D1\u63A7",id:6,compontent:t.a.createElement(Te,null)}].filter(function(Nr){return Me!=null&&Me.is_random&&(Nr.name==="\u7EDF\u8BA1\u7ED3\u679C"&&(Nr.compontent=t.a.createElement(Aa,null)),Nr.name==="\u8BD5\u5377\u9884\u89C8"&&(Nr.compontent=t.a.createElement(Vn.default,null))),!0}).filter(function(Nr){return Object(wt.k)()&&Me!==null&&Me!==void 0&&Me.assistant_auth||Object(wt.c)()?!0:Me!=null&&Me.show_statistic&&(Me==null?void 0:Me.exercise_status)===3?Nr.name!=="\u8BD5\u5377\u9884\u89C8":Nr.name==="\u7B54\u9898\u5217\u8868"||Nr.name==="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(Nr){return Object(wt.s)()||Me.exercise_status===1||!Me.exist_program?Nr.name!=="\u4EE3\u7801\u67E5\u91CD":!0}).filter(function(Nr){return Me.identity_verify?!0:Nr.name!=="\u4EBA\u8138\u5BA1\u6838"}).filter(function(Nr){return Me.open_phone_video_recording?!0:Nr.name!=="\u6444\u50CF\u76D1\u63A7"}).filter(function(Nr){return Object(R.I)()&&!Object(wt.o)()?Nr.name!=="\u8BD5\u5377\u9884\u89C8"&&Nr.name!=="\u7EDF\u8BA1\u7ED3\u679C":!0}).filter(function(Nr){return aa?!0:Nr.name!=="\u7EDF\u8BA1\u7ED3\u679C"&&Nr.name!=="\u8BD5\u5377\u9884\u89C8"&&Nr.name!=="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(Nr){return!!Nr});console.log(yt,"tabsArr"),(Me==null?void 0:Me.exercise_status)&&(Me==null?void 0:Me.exercise_status)===1&&yt.splice.apply(yt,[0,1].concat(Object(O.a)(yt.splice(1,1,yt[0])))),Object(E.useEffect)(function(){(Me==null?void 0:Me.exercise_status)&&(Me==null?void 0:Me.exercise_status)===1&&ct("2")},[Me==null?void 0:Me.exercise_status]);var Fr="YYYY-MM-DD",un=Fe()("2020-11-15",Fr),Rn=function(){return m.a.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:t.a.createElement(t.a.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")})},xr=function(){return t.a.createElement(f.a,{onClick:function(){var Sr=Object(x.a)(b.a.mark(function xa(Vr){var nr;return b.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:Wn.t0=Vr.key,Wn.next=Wn.t0==="1"?3:8;break;case 3:return Wn.next=5,Object(P.n)(Object(i.a)(Object(i.a)({},Er),zn));case 5:return nr=Wn.sent,nr.status===0&&Object(k.i)(Object(i.a)(Object(i.a)({},Er),zn)),Wn.abrupt("break",8);case 8:case"end":return Wn.stop()}},xa)}));return function(xa){return Sr.apply(this,arguments)}}()},t.a.createElement(f.a.Item,{key:"1"},"\u5B66\u751F\u6210\u7EE9"),t.a.createElement(f.a.Item,{key:"2"},t.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(Er.coursesId,"/exercise/").concat(Er.categoryId,"/export_blank")},"\u5BFC\u51FA\u8BD5\u5377")),t.a.createElement(f.a.Item,{key:"3"},t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exportlist/exercise_score")},"\u5386\u53F2\u5BFC\u51FA")))},Ca=function(){var Nr=Object(x.a)(b.a.mark(function Sr(xa){var Vr;return b.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Object(C.a)("/api/courses/".concat(Er==null?void 0:Er.coursesId,"/exercises/exercise_code_repeat.json"),{method:"post",body:{group_ids:xa,id:Er==null?void 0:Er.categoryId}});case 2:if(Vr=Wr.sent,!(Vr.status===0)){Wr.next=8;break}return ct(4),Ft(Fe()(new Date).valueOf()),Ir({type:"exercise/setActionTabs",payload:{}}),Wr.abrupt("return");case 8:Vr.status<-2&&p.b.error(Vr==null?void 0:Vr.message);case 9:case"end":return Wr.stop()}},Sr)}));return function(xa){return Nr.apply(this,arguments)}}();return Object(wt.h)()?t.a.createElement("section",{className:ba.a.bg},t.a.createElement("div",{className:"edu-container"},Xr.username&&t.a.createElement("section",{className:"animated fadeIn"},t.a.createElement("aside",{className:"mt10"},t.a.createElement(d.a,{separator:">"},t.a.createElement(d.a.Item,null,t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exercise")},mr==null||((Or=mr.userInfo)===null||Or===void 0||((yr=Or.course)===null||yr===void 0))?void 0:yr.course_name)),t.a.createElement(d.a.Item,null,t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exercise")},"\u5728\u7EBF\u8003\u8BD5")),t.a.createElement(d.a.Item,null,"\u8BD5\u5377\u8BE6\u60C5"))),t.a.createElement("aside",{className:[ba.a.title,"mt20"].join(" ")},t.a.createElement(v.a,{to:"/classrooms/".concat(Er.coursesId,"/exercise")},t.a.createElement(l.a,{className:"font16 c-black"})),Object(R.y)(Me==null?void 0:Me.exercise_status),t.a.createElement("strong",{className:"font20 ml5"},Me==null?void 0:Me.exercise_name))),t.a.createElement("aside",{className:"mt30 relative"},t.a.createElement("div",{className:ba.a.export},!Object(wt.s)()&&aa&&Me.exercise_status>1&&Me.exist_program&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault(),Ir({type:"exercise/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Er}})}},t.a.createElement("span",{className:"iconfont icon-daimachazhong font14 mr5"}),"\u4EE3\u7801\u67E5\u91CD"),Object(wt.c)()&&aa&&(Me==null||((zr=Me.user_permission)===null||zr===void 0)?void 0:zr.user_commit_counts)>0&&(Me==null?void 0:Me.exercise_status)===2&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault(),Ir({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",params:Er}})}},t.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x font14 mr5"}),"\u6253\u56DE\u91CD\u505A"),Object(wt.c)()&&aa&&Me.can_edit&&(Me==null||((Zn=Me.user_permission)===null||Zn===void 0)?void 0:Zn.exercise_unpublish_count)>0&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault();var xa=Fe()(Me==null?void 0:Me.created_at,Fr),Vr=Fe()(un).diff(Fe()(xa),"days");if(Vr>0&&Me!==null&&Me!==void 0&&Me.is_random){Rn();return}Ir({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Er.categoryId],params:Er,disabled:(Me==null?void 0:Me.exercise_status)!==1,type:2,cb:oa}})}},t.a.createElement("span",{className:"iconfont icon-fabuzhiwei font14 mr5"}),"\u53D1\u5E03\u8003\u8BD5"),Object(wt.c)()&&aa&&Me.can_edit&&(Me==null||((An=Me.user_permission)===null||An===void 0)?void 0:An.exercise_publish_count)>0&&t.a.createElement(g.a,{onClick:function(Sr){Sr.preventDefault(),Ir({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[Er.categoryId],params:Er,cb:oa}})}},t.a.createElement("span",{className:"iconfont icon-lijijiezhi mr5 font14"}),"\u7ED3\u675F\u8003\u8BD5"),Object(wt.s)()&&(Me==null||((rr=Me.user_permission)===null||rr===void 0)?void 0:rr.current_status)===2&&Me.exercise_status>1&&t.a.createElement(g.a,{style:{color:(vt==null||((ar=vt.exercise_types)===null||ar===void 0)?void 0:ar.is_redo)&&"red"},onClick:hn},t.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),vt!=null&&(Pr=vt.exercise_types)!==null&&Pr!==void 0&&Pr.is_redo?"\u91CD\u65B0\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5"),Object(wt.s)()&&(Me==null||((sa=Me.user_permission)===null||sa===void 0)?void 0:sa.current_status)===0&&Me.exercise_status>1&&t.a.createElement(g.a,{onClick:hn},t.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7EE7\u7EED\u8003\u8BD5"),Object(wt.c)()&&aa&&Me.can_edit&&(Object(wt.k)()&&(Me==null?void 0:Me.assistant_auth)||!Object(wt.k)())&&t.a.createElement(g.a,{onClick:function(){var Sr=Fe()(Me==null?void 0:Me.created_at,Fr),xa=Fe()(un).diff(Fe()(Sr),"days");if(xa>0&&Me!==null&&Me!==void 0&&Me.is_random){Rn();return}else o.d.push(Me!=null&&Me.is_random?"/classrooms/".concat(Er.coursesId,"/exercise/").concat(Er.categoryId,"/random/edit?random=true"):"/classrooms/".concat(Er.coursesId,"/exercise/").concat(Er.categoryId,"/edit?random=false"))}},t.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7F16\u8F91\u8BD5\u5377"),Object(wt.c)()&&aa&&t.a.createElement(U.a,{overlay:xr},t.a.createElement(g.a,null,t.a.createElement(c.a,null),"\u5BFC\u51FA",t.a.createElement(M.a,null)))),t.a.createElement(j.a,{activeKey:String(st),className:ba.a.tabs,onChange:function(Sr){var xa=Fe()(Me==null?void 0:Me.created_at,Fr),Vr=Fe()(un).diff(Fe()(xa),"days");if(Vr>0&&parseInt(Sr)===3&&Me!==null&&Me!==void 0&&Me.is_random){Rn();return}ct(Sr)}},yt.map(function(Nr,Sr){return t.a.createElement(j.a.TabPane,{tab:Nr.name,key:Nr.id})})),t.a.createElement("section",{className:Me!=null&&Me.is_random&&st==="2"?"":"pl25 pr25 bg-white"},(Qn=yt.filter(function(Nr){return Nr.id==st}))===null||Qn===void 0||((Hr=Qn[0])===null||Hr===void 0)?void 0:Hr.compontent))),t.a.createElement(Fn.a,null),t.a.createElement(ua,{onOk:Ca}),t.a.createElement(Yr.a,null),t.a.createElement(Jt,{cb:function(){return Lr()}})):""},Xa=ie.default=Object(o.a)(function(tr){var In=tr.exercise,En=tr.loading,Or=tr.user,yr=tr.globalSetting;return{exercise:In,globalSetting:yr,user:Or,loading:En.effects}})(za)},JWDV:function(Ye,ie,_){Ye.exports=_.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Ye,ie,_){"use strict";_.d(ie,"c",function(){return j}),_.d(ie,"d",function(){return L}),_.d(ie,"f",function(){return S}),_.d(ie,"a",function(){return g}),_.d(ie,"b",function(){return s}),_.d(ie,"e",function(){return d});var Y=function(){var w=function(p,a){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,x){f.__proto__=x}||function(f,x){for(var y in x)x.hasOwnProperty(y)&&(f[y]=x[y])},w(p,a)};return function(p,a){w(p,a);function f(){this.constructor=p}p.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),j={done:!0,value:void 0},L;(function(w){var p={next:function(){return j}};function a(){return p}w.empty=a;function f(E){var t=!1;return{next:function(){return t?j:(t=!0,{done:!1,value:E})}}}w.single=f;function x(E,t,C){return t===void 0&&(t=0),C===void 0&&(C=E.length),{next:function(){return t>=C?j:{done:!1,value:E[t++]}}}}w.fromArray=x;function y(E){return{next:function(){var t=E.next();return t.done?j:{done:!1,value:t.value}}}}w.fromNativeIterator=y;function m(E){return E?Array.isArray(E)?w.fromArray(E):E:w.empty()}w.from=m;function O(E,t){return{next:function(){var C=E.next();return C.done?j:{done:!1,value:t(C.value)}}}}w.map=O;function i(E,t){return{next:function(){for(;;){var C=E.next();if(C.done)return j;if(t(C.value))return{done:!1,value:C.value}}}}}w.filter=i;function r(E,t){for(var C=E.next();!C.done;C=E.next())t(C.value)}w.forEach=r;function u(E,t){t===void 0&&(t=Number.POSITIVE_INFINITY);var C=[];if(t===0)return C;for(var A=0,v=E.next();!v.done&&!(C.push(v.value),++A>=t);v=E.next());return C}w.collect=u;function h(){for(var E=[],t=0;t=E.length)return j;var A=E[C],v=A.next();return v.done?(C++,this.next()):v}}}w.concat=h;function b(E){return new U(E)}w.chain=b})(L||(L={}));var U=function(){function w(p){this.it=p}return w.prototype.next=function(){return this.it.next()},w}();function S(w){return Array.isArray(w)?L.fromArray(w):w||L.empty()}var g=function(){function w(p,a,f,x){a===void 0&&(a=0),f===void 0&&(f=p.length),x===void 0&&(x=a-1),this.items=p,this.start=a,this.end=f,this.index=x}return w.prototype.first=function(){return this.index=this.start,this.current()},w.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},w.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},w}(),s=function(w){Y(p,w);function p(a,f,x,y){return f===void 0&&(f=0),x===void 0&&(x=a.length),y===void 0&&(y=f-1),w.call(this,a,f,x,y)||this}return p.prototype.current=function(){return w.prototype.current.call(this)},p.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},p.prototype.first=function(){return this.index=this.start,this.current()},p.prototype.last=function(){return this.index=this.end-1,this.current()},p.prototype.parent=function(){return null},p}(g),d=function(){function w(p,a){this.iterator=p,this.fn=a}return w.prototype.next=function(){return this.fn(this.iterator.next())},w}()},JeFH:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Ye,ie,_){Ye.exports=_.p+"static/qrcode.54870d9b.png"},K2GJ:function(Ye,ie,_){var Y=_("fW2E"),j=_("gut8"),L=j.ContextCachedBy,U=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],S=function(f){this.extendFrom(f,!1)};function g(f,x,y){var m=x.x==null?0:x.x,O=x.x2==null?1:x.x2,i=x.y==null?0:x.y,r=x.y2==null?0:x.y2;x.global||(m=m*y.width+y.x,O=O*y.width+y.x,i=i*y.height+y.y,r=r*y.height+y.y),m=isNaN(m)?0:m,O=isNaN(O)?1:O,i=isNaN(i)?0:i,r=isNaN(r)?0:r;var u=f.createLinearGradient(m,i,O,r);return u}function s(f,x,y){var m=y.width,O=y.height,i=Math.min(m,O),r=x.x==null?.5:x.x,u=x.y==null?.5:x.y,h=x.r==null?.5:x.r;x.global||(r=r*m+y.x,u=u*O+y.y,h=h*i);var b=f.createRadialGradient(r,u,0,r,u,h);return b}S.prototype={constructor:S,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(f,x,y){var m=this,O=y&&y.style,i=!O||f.__attrCachedBy!==L.STYLE_BIND;f.__attrCachedBy=L.STYLE_BIND;for(var r=0;r0},extendFrom:function(f,x){if(f)for(var y in f)f.hasOwnProperty(y)&&(x===!0||(x===!1?!this.hasOwnProperty(y):f[y]!=null))&&(this[y]=f[y])},set:function(f,x){typeof f=="string"?this[f]=x:this.extendFrom(f,!0)},clone:function(){var f=new this.constructor;return f.extendFrom(this,!0),f},getGradient:function(f,x,y){for(var m=x.type==="radial"?s:g,O=m(f,x,y),i=x.colorStops,r=0;r=0)continue;if(!Object.prototype.hasOwnProperty.call(f,m))continue;y[m]=f[m]}return y}function d(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function w(f,x){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:f}function p(f,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);f.prototype=Object.create(x&&x.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(f,x):f.__proto__=x)}var a=function(f){p(x,f);function x(y){d(this,x);var m=w(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,y));return m.scrollListener=m.scrollListener.bind(m),m.eventListenerOptions=m.eventListenerOptions.bind(m),m.mousewheelListener=m.mousewheelListener.bind(m),m}return Y(x,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var m=this.getParentElement(this.scrollComponent);m.scrollTop=m.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var m=!1,O={get passive(){m=!0}};try{document.addEventListener("test",null,O),document.removeEventListener("test",null,O)}catch(i){}return m}},{key:"eventListenerOptions",value:function(){var m=this.props.useCapture;return this.isPassiveSupported()&&(m={useCapture:this.props.useCapture,passive:!0}),m}},{key:"setDefaultLoader",value:function(m){this.defaultLoader=m}},{key:"detachMousewheelListener",value:function(){var m=window;this.props.useWindow===!1&&(m=this.scrollComponent.parentNode),m.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var m=window;this.props.useWindow===!1&&(m=this.getParentElement(this.scrollComponent)),m.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),m.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(m){var O=this.props.getScrollParent&&this.props.getScrollParent();return O!=null?O:m&&m.parentNode}},{key:"filterProps",value:function(m){return m}},{key:"attachScrollListener",value:function(){var m=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!m)return;var O=window;this.props.useWindow===!1&&(O=m),O.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),O.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),O.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(m){m.deltaY===1&&!this.isPassiveSupported()&&m.preventDefault()}},{key:"scrollListener",value:function(){var m=this.scrollComponent,O=window,i=this.getParentElement(m),r=void 0;if(this.props.useWindow){var u=document.documentElement||document.body.parentNode||document.body,h=O.pageYOffset!==void 0?O.pageYOffset:u.scrollTop;this.props.isReverse?r=h:r=this.calculateOffset(m,h)}else this.props.isReverse?r=i.scrollTop:r=m.scrollHeight-i.scrollTop-i.clientHeight;r1&&s.a.createElement("span",null,s.a.createElement(A.a,{checked:Pn,onChange:function(kr){return dn(kr.target.checked)},className:"".concat(ee.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),s.a.createElement("span",{className:"".concat(ee.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),s.a.createElement("p",{className:""},s.a.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:ue,max:1e4,min:0,onChange:function(kr){oe(kr)}})," \u5206 \xA0 ",!!ue&&!!Tn&&s.a.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(ue/Tn).toFixed(1),"\u5206)"),s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(b.a.Group,{value:On,onChange:function(kr){or(kr.target.value)}},s.a.createElement(b.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(b.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(b.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:Tr,selectvalues:_t==null?void 0:_t.tag_discipline_ids,onChange:Jn,subId:(ia=xt.editData)===null||ia===void 0||((Ea=ia.exercise)===null||Ea===void 0)?void 0:Ea.sub_discipline_id,knowledgeOptions:Kt,onAddKnowledgeFinish:Yt})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Gn,onChange:function(kr){se(kr)}}))),s.a.createElement("aside",{className:"tr"},(mn!==-1||_t.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Be(),Fn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){nn()}},"\u4FDD\u5B58")))},$n=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(vr){var lr,wr;return(xt==null||((lr=xt.editData)===null||lr===void 0||((wr=lr.exercise)===null||wr===void 0))?void 0:wr.exercise_status)===1?vr:vr.id!=="del"&&vr.id!=="add"}),Yn=function(){var vr=Object(M.a)(I.a.mark(function lr(wr){return I.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(!(mn!==-1)){sr.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),sr.abrupt("return");case 3:sr.t0=wr.id,sr.next=sr.t0==="del"?6:sr.t0==="up"||sr.t0==="down"?8:sr.t0==="edit"?12:sr.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Ea(){return I.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:return kr.next=2,Object(W.m)({id:_t.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},tt)});case 3:case"end":return kr.stop()}},Ea)}))()}}),sr.abrupt("break",17);case 8:return sr.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:_t.question_id,opr:wr.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},tt)}),sr.abrupt("break",17);case 12:return Gt(_t.dragKey),Fn(!0),sr.abrupt("break",17);case 15:return Xt({key:_t.key,insert_id:_t==null?void 0:_t.question_id,question_type:3}),sr.abrupt("break",17);case 17:case"end":return sr.stop()}},lr)}));return function(wr){return vr.apply(this,arguments)}}(),_r=function(){var lr;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(_t!=null&&_t.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},_t.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",_t.question_score,"\u5206\uFF09")),_t!=null&&_t.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},_t.key,"."),s.a.createElement(be.a,{value:_t.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",_t.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:_t.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},_t==null||((lr=_t.standard_answer)===null||lr===void 0)?void 0:lr.map(function(wr,Dr){return s.a.createElement(a.a,{key:Dr,align:"middle"},s.a.createElement(m.a,null,"\u7B54\u6848\uFF08\u586B\u7A7A",wr.choice_id,"\uFF09\uFF1A"),s.a.createElement(m.a,{flex:"1"},s.a.createElement(a.a,{align:"middle",gutter:[1,1]},wr.answer_text.map(function(sr,ia){return s.a.createElement(m.a,{span:24,key:ia},s.a.createElement(x.a,{key:Dr,checked:_t.standard_answer.includes(Dr),disabled:!0,value:sr}))}))))})),s.a.createElement("div",{className:ee.a.action},!_t.hideAction&&$n.map(function(wr,Dr){return wr.id==="up"&&_t.key===1||wr.id==="down"&&_t.key===_t.len?null:s.a.createElement(w.a,{key:Dr,placement:"bottom",title:wr.name},s.a.createElement("span",{onClick:function(){return Yn(wr)},className:wr.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},!Jt&&_r(),Jt&&Xn())},Ge=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(nt)),he=_("Ot1p"),ce=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ee=function(ye,Se){var dt=ye.problemset,et=ye.globalSetting,xt=ye.exercise,xn=ye.loading,Dt=ye.dispatch,_t=ye.onRef,mn=_t===void 0?function(){}:_t,pe=ye.editData,Gt=ye.editKey,Lt=ye.setEditKey,Be=Lt===void 0?function(){}:Lt,ot=ye.cancelAdd,Xt=ot===void 0?function(){}:ot,Pt=ye.addCallback,$t=Pt===void 0?function(){}:Pt,Zt=ye.setIsClaer,bt=Zt===void 0?function(){}:Zt,ft=Object(R.a)(ye,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","editKey","setEditKey","cancelAdd","addCallback","setIsClaer"]),Nt=Object(g.useState)(),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(""),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)(!1),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)([]),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)(1),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(!1),fr=Object(S.a)(Tn,2),Vt=fr[0],Et=fr[1],Jt=function(Tr){ae([].concat(Object(P.a)(H),[Object(Y.a)({},Tr)]))},Fn=Object(F.i)();Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){Mt(!0),re(""),an(2),Te("");return}Et(!(pe!=null&&pe.repeat_answer)),re(pe==null?void 0:pe.question_title),an(St||(pe==null?void 0:pe.question_score)),vn(pe==null?void 0:pe.difficulty),Te(pe.standard_answer[0]+""),Bn(pe.tag_discipline_ids)},[pe,it]),Object(g.useEffect)(function(){it&&Yr();function Yr(){return Tr.apply(this,arguments)}function Tr(){return Tr=Object(M.a)(I.a.mark(function Jn(){var hr,Sn,On;return I.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,Object(W.H)({sub_discipline_id:(hr=xt.editData)===null||hr===void 0||((Sn=hr.exercise)===null||Sn===void 0)?void 0:Sn.sub_discipline_id});case 2:On=Dn.sent,ae(On.tag_disciplines);case 4:case"end":return Dn.stop()}},Jn)})),Tr.apply(this,arguments)}},[it]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Vn,isEdit:it}}),Object(g.useEffect)(function(){var Yr,Tr=xt!=null&&(Yr=xt.tagDisciplineData)!==null&&Yr!==void 0&&Yr.tag_disciplines&&Array.isArray(xt.tagDisciplineData.tag_disciplines)?xt.tagDisciplineData.tag_disciplines:[];ae(Tr)},[xt.tagDisciplineData]);var Vn=function(){var Yr=Object(M.a)(I.a.mark(function Tr(){var Jn,hr,Sn,On,or,Dn;return I.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if($){Gn.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Gn.abrupt("return",!1);case 3:if(bn){Gn.next=6;break}return c.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),Gn.abrupt("return",!1);case 6:if(Jn=[{choice_text:"\u6B63\u786E",is_answer:bn==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:bn==="2"?2:0}],!pe.question_id){Gn.next=18;break}if(!((pe==null?void 0:pe.is_my)===1)){Gn.next=12;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var se=Object(M.a)(I.a.mark(function rt(){var ut,Kt;return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(nn){return nn.choice_text}),standard_answers:Jn.filter(function(nn){return nn.is_answer}).map(function(nn){return nn.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:ht,is_cover:1,repeat_answer:!Vt}});case 2:hr=Yt.sent,hr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 4:case"end":return Yt.stop()}},rt)}));function tt(){return se.apply(this,arguments)}return tt}(),onCancel:function(){var se=Object(M.a)(I.a.mark(function rt(){var ut,Kt;return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(nn){return nn.choice_text}),standard_answers:Jn.filter(function(nn){return nn.is_answer}).map(function(nn){return nn.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 2:hr=Yt.sent,hr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 4:case"end":return Yt.stop()}},rt)}));function tt(){return se.apply(this,arguments)}return tt}()}),Gn.next=16;break;case 12:return Gn.next=14,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(se){return se.choice_text}),standard_answers:Jn.filter(function(se){return se.is_answer}).map(function(se){return se.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(Sn=xt.editData)===null||Sn===void 0||((On=Sn.exercise)===null||On===void 0)?void 0:On.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 14:hr=Gn.sent,hr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 16:Gn.next=22;break;case 18:return Gn.next=20,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:Fn.categoryId,question_title:$,question_type:2,question_score:St,question_choices:Jn.map(function(se){return se.choice_text}),standard_answers:Jn.filter(function(se){return se.is_answer}).map(function(se){return se.is_answer}),tag_discipline_ids:jn,sub_discipline_id:(or=xt.editData)===null||or===void 0||((Dn=or.exercise)===null||Dn===void 0)?void 0:Dn.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 20:hr=Gn.sent,hr.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}));case 22:return Gn.abrupt("return",{name:$,choices:Jn});case 23:case"end":return Gn.stop()}},Tr)}));return function(){return Yr.apply(this,arguments)}}(),Kn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Yr){var Tr,Jn;return(xt==null||((Tr=xt.editData)===null||Tr===void 0||((Jn=Tr.exercise)===null||Jn===void 0))?void 0:Jn.exercise_status)===1?Yr:Yr.id!=="del"&&Yr.id!=="add"}),ir=function(){var Yr=Object(M.a)(I.a.mark(function Tr(Jn){return I.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(!(Gt!==-1)){Sn.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Sn.abrupt("return");case 3:Sn.t0=Jn.id,Sn.next=Sn.t0==="del"?6:Sn.t0==="up"||Sn.t0==="down"?8:Sn.t0==="edit"?12:Sn.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function or(){return I.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return pr.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)});case 3:case"end":return pr.stop()}},or)}))()}}),Sn.abrupt("break",17);case 8:return Sn.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:Jn.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Fn)}),Sn.abrupt("break",17);case 12:return Be(pe.dragKey),Mt(!0),Sn.abrupt("break",17);case 15:return $t({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:2}),Sn.abrupt("break",17);case 17:case"end":return Sn.stop()}},Tr)}));return function(Jn){return Yr.apply(this,arguments)}}(),jr=function(){var Tr;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},pe==null||((Tr=pe.question_choices)===null||Tr===void 0)?void 0:Tr.map(function(Jn,hr){return s.a.createElement(b.a,{key:hr,checked:pe.standard_answer.includes(hr+1),disabled:!0},ce[hr],". ",s.a.createElement("span",{className:"c-black font14"},Jn.choice_text))})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&Kn.map(function(Jn,hr){return Jn.id==="up"&&pe.key===1||Jn.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:hr,placement:"bottom",title:Jn.name},s.a.createElement("span",{onClick:function(){return ir(Jn)},className:Jn.icon}))})))},ua=function(){var Tr,Jn;return s.a.createElement("aside",null,s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:$,onChange:function(Sn){return re(Sn)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),s.a.createElement(b.a.Group,{buttonStyle:"solid",value:bn,onChange:function(Sn){return Te(Sn.target.value)}},s.a.createElement(b.a.Button,{value:"1",className:"".concat(ee.a.radio," mr40")},"\u6B63\u786E"),s.a.createElement(b.a.Button,{value:"2",className:ee.a.radio},"\u9519\u8BEF")),s.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:St,max:1e4,min:0,onChange:function(Sn){an(Sn)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(b.a.Group,{value:ht,onChange:function(Sn){vn(Sn.target.value)}},s.a.createElement(b.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(b.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(b.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:jn,selectvalues:pe==null?void 0:pe.tag_discipline_ids,onChange:Bn,subId:(Tr=xt.editData)===null||Tr===void 0||((Jn=Tr.exercise)===null||Jn===void 0)?void 0:Jn.sub_discipline_id,knowledgeOptions:H,onAddKnowledgeFinish:Jt})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vt,onChange:function(Sn){Et(Sn)}}))),s.a.createElement("aside",{className:"tr"},(Gt!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Xt(),Mt(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Vn()}},"\u4FDD\u5B58")))};return s.a.createElement("section",{className:ee.a.wrap},!it&&jr(),it&&ua())},fe=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Ee)),Ne=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ce=function(ye,Se){var dt=ye.problemset,et=ye.globalSetting,xt=ye.exercise,xn=ye.loading,Dt=ye.dispatch,_t=ye.onRef,mn=_t===void 0?function(){}:_t,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=ye.addCallback,bt=Zt===void 0?function(pr){}:Zt,ft=Object(R.a)(ye,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)([]),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(""),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)(!1),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)([]),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(1),fr=Object(S.a)(Tn,2),Vt=fr[0],Et=fr[1],Jt=Object(g.useState)(!1),Fn=Object(S.a)(Jt,2),Vn=Fn[0],Kn=Fn[1],ir=Object(g.useState)([]),jr=Object(S.a)(ir,2),ua=jr[0],Yr=jr[1],Tr=function(Gn){Yr([].concat(Object(P.a)(ua),[Object(Y.a)({},Gn)]))},Jn=Object(F.i)();Object(g.useEffect)(function(){Te(["","","",""])},[]),Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){ae(!0),an(""),Bn(5),Te(["","","",""]),Mt([]);return}an(pe==null?void 0:pe.question_title),Bn(jn||(pe==null?void 0:pe.question_score)),Kn(!(pe!=null&&pe.repeat_answer)),Et(pe==null?void 0:pe.difficulty),Te(pe==null?void 0:pe.question_choices.map(function(Gn){return Gn.choice_text}));var pr=[];pe==null||pe.standard_answer.map(function(Gn,se){pr.push(Gn-1)}),Mt(pr),vn(pe.tag_discipline_ids)},[pe,H]),Object(g.useEffect)(function(){H&&pr();function pr(){return Gn.apply(this,arguments)}function Gn(){return Gn=Object(M.a)(I.a.mark(function se(){var tt,rt,ut;return I.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(W.H)({sub_discipline_id:(tt=xt.editData)===null||tt===void 0||((rt=tt.exercise)===null||rt===void 0)?void 0:rt.sub_discipline_id});case 2:ut=Ct.sent,Yr(ut.tag_disciplines);case 4:case"end":return Ct.stop()}},se)})),Gn.apply(this,arguments)}},[H]),Object(g.useImperativeHandle)(Se,function(){return{onSave:hr,isEdit:H}}),Object(g.useEffect)(function(){var pr,Gn=xt!=null&&(pr=xt.tagDisciplineData)!==null&&pr!==void 0&&pr.tag_disciplines&&Array.isArray(xt.tagDisciplineData.tag_disciplines)?xt.tagDisciplineData.tag_disciplines:[];Yr(Gn)},[xt.tagDisciplineData]);var hr=function(){var pr=Object(M.a)(I.a.mark(function Gn(){var se,tt,rt,ut,Kt,Ct,Yt;return I.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:if(St){_n.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),_n.abrupt("return",!1);case 3:if(se=bn.findIndex(function(cn){return!cn}),!(se>-1)){_n.next=7;break}return c.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ne[se]," \u9009\u9879\u7684\u5185\u5BB9")),_n.abrupt("return",!1);case 7:if(it.length){_n.next=10;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),_n.abrupt("return",!1);case 10:if(!(it.length<1)){_n.next=13;break}return c.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),_n.abrupt("return",!1);case 13:if(tt=bn.map(function(cn,ur){return{choice_text:cn,is_answer:it.includes(ur)?ur+1:0}}),!pe.question_id){_n.next=25;break}if(!((pe==null?void 0:pe.is_my)===1)){_n.next=19;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var cn=Object(M.a)(I.a.mark(function Mn(){var fn,Hn;return I.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return $n.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(Yn){return Yn.choice_text}),standard_answers:tt.filter(function(Yn){return Yn.is_answer}).map(function(Yn){return Yn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(fn=xt.editData)===null||fn===void 0||((Hn=fn.exercise)===null||Hn===void 0)?void 0:Hn.sub_discipline_id,difficulty:Vt,is_cover:1,repeat_answer:!Vn}});case 2:rt=$n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 4:case"end":return $n.stop()}},Mn)}));function ur(){return cn.apply(this,arguments)}return ur}(),onCancel:function(){var cn=Object(M.a)(I.a.mark(function Mn(){var fn,Hn;return I.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return $n.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(Yn){return Yn.choice_text}),standard_answers:tt.filter(function(Yn){return Yn.is_answer}).map(function(Yn){return Yn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(fn=xt.editData)===null||fn===void 0||((Hn=fn.exercise)===null||Hn===void 0)?void 0:Hn.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 2:rt=$n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 4:case"end":return $n.stop()}},Mn)}));function ur(){return cn.apply(this,arguments)}return ur}()}),_n.next=23;break;case 19:return _n.next=21,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(cn){return cn.choice_text}),standard_answers:tt.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 21:rt=_n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 23:_n.next=29;break;case 25:return _n.next=27,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:Jn.categoryId,question_title:St,question_type:1,question_score:jn,question_choices:tt.map(function(cn){return cn.choice_text}),standard_answers:tt.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer}),tag_discipline_ids:ht,sub_discipline_id:(Ct=xt.editData)===null||Ct===void 0||((Yt=Ct.exercise)===null||Yt===void 0)?void 0:Yt.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 27:rt=_n.sent,rt.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}));case 29:case"end":return _n.stop()}},Gn)}));return function(){return pr.apply(this,arguments)}}(),Sn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(pr){var Gn,se;return(xt==null||((Gn=xt.editData)===null||Gn===void 0||((se=Gn.exercise)===null||se===void 0))?void 0:se.exercise_status)===1?pr:pr.id!=="del"&&pr.id!=="add"}),On=function(){var pr=Object(M.a)(I.a.mark(function Gn(se){return I.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!(Be!==-1)){rt.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),rt.abrupt("return");case 3:rt.t0=se.id,rt.next=rt.t0==="del"?6:rt.t0==="up"||rt.t0==="down"?8:rt.t0==="edit"?12:rt.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Kt(){return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)});case 3:case"end":return Yt.stop()}},Kt)}))()}}),rt.abrupt("break",17);case 8:return rt.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:se.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jn)}),rt.abrupt("break",17);case 12:return Xt(pe.dragKey),ae(!0),rt.abrupt("break",17);case 15:return bt({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:1}),rt.abrupt("break",17);case 17:case"end":return rt.stop()}},Gn)}));return function(se){return pr.apply(this,arguments)}}(),or=function(){var Gn;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},pe==null||((Gn=pe.question_choices)===null||Gn===void 0)?void 0:Gn.map(function(se,tt){return s.a.createElement(a.a,null,s.a.createElement(m.a,null,s.a.createElement(A.a,{key:tt,checked:pe.standard_answer.includes(tt+1),disabled:!0},Ne[tt],".")),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:"c-black font14"},s.a.createElement(be.a,{value:se.choice_text}))))})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&Sn.map(function(se,tt){return se.id==="up"&&pe.key===1||se.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:tt,placement:"bottom",title:se.name},s.a.createElement("span",{onClick:function(){return On(se)},className:se.icon}))})))},Dn=function(){var Gn,se;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:St,onChange:function(rt){return an(rt)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),bn.map(function(tt,rt){var ut,Kt;return s.a.createElement("div",{className:ee.a.choiceWrap,key:rt},s.a.createElement(w.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},s.a.createElement("div",{className:"".concat(ee.a.answer," ").concat(it.includes(rt)?ee.a.activeAnswer:""),onClick:function(){it.includes(rt)?Mt(it.filter(function(Yt){return Yt!==rt})):Mt([].concat(Object(P.a)(it),[rt]))}},Ne[rt])),s.a.createElement("div",{className:ee.a.editorWrap},$===rt?s.a.createElement(he.a,{id:"single-question-option-".concat(rt),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:tt,onChange:function(Yt){bn[rt]=Yt,Te(bn)}}):s.a.createElement("div",{className:ee.a.htmlWrap,onClick:function(){return re(rt)}},s.a.createElement(be.a,{value:tt}))),((ut=xt.editData)===null||ut===void 0||((Kt=ut.exercise)===null||Kt===void 0)?void 0:Kt.exercise_status)===1&&s.a.createElement(s.a.Fragment,null,rt>1&&s.a.createElement(w.a,{title:"\u5220\u9664"},s.a.createElement("i",{className:"".concat(ee.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Te(bn.filter(function(Yt,nn){return nn!==rt}))}})),rt<7&&rt===bn.length-1&&s.a.createElement(w.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},s.a.createElement("i",{className:"".concat(ee.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Te([].concat(Object(P.a)(bn),[""]))}}))))}),s.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:jn,max:1e4,min:0,onChange:function(rt){Bn(rt)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(b.a.Group,{value:Vt,onChange:function(rt){Et(rt.target.value)}},s.a.createElement(b.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(b.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(b.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:ht,selectvalues:pe==null?void 0:pe.tag_discipline_ids,onChange:vn,subId:(Gn=xt.editData)===null||Gn===void 0||((se=Gn.exercise)===null||se===void 0)?void 0:se.sub_discipline_id,knowledgeOptions:ua,onAddKnowledgeFinish:Tr})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vn,onChange:function(rt){Kn(rt)}}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),ae(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){hr()}},"\u4FDD\u5B58")))};return s.a.createElement("section",{className:ee.a.wrap},!H&&or(),H&&Dn())},xe=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Ce)),ze=_("55Ip"),Le=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Fe=function(ye,Se){var dt=ye.problemset,et=ye.globalSetting,xt=ye.exercise,xn=ye.loading,Dt=ye.dispatch,_t=ye.editData,mn=ye.cancelAdd,pe=mn===void 0?function(){}:mn,Gt=ye.editKey,Lt=ye.setEditKey,Be=Lt===void 0?function(){}:Lt,ot=ye.addCallback,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=Object(R.a)(ye,["problemset","globalSetting","exercise","loading","dispatch","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),bt=Object(g.useState)(""),ft=Object(S.a)(bt,2),Nt=ft[0],jt=ft[1],bn=Object(g.useState)(""),Te=Object(S.a)(bn,2),ve=Te[0],Q=Te[1],$=Object(g.useState)(""),re=Object(S.a)($,2),de=re[0],Ue=re[1],it=Object(g.useState)([]),Mt=Object(S.a)(it,2),Ln=Mt[0],kn=Mt[1],St=Object(g.useState)(""),an=Object(S.a)(St,2),Pn=an[0],dn=an[1],jn=Object(g.useState)(),Bn=Object(S.a)(jn,2),ne=Bn[0],B=Bn[1],H=Object(g.useState)(!1),ae=Object(S.a)(H,2),ue=ae[0],oe=ae[1],ht=Object(g.useState)([]),vn=Object(S.a)(ht,2),Tn=vn[0],fr=vn[1],Vt=Object(g.useState)(!1),Et=Object(S.a)(Vt,2),Jt=Et[0],Fn=Et[1],Vn=Object(F.i)();Object(g.useEffect)(function(){var Tr;_t.edit&&(Fn(!0),Q(""),jt(""),fr([])),jt(_t.shixun_name),Q(_t.question_title);var Jn=[];(Tr=_t.shixun)===null||Tr===void 0||Tr.map(function(hr){Jn.push(hr.challenge_score)}),fr(Jn)},[_t]),Object(g.useEffect)(function(){oe(!1)},[Jt]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Kn,isEdit:Jt}});var Kn=function(){var Tr=Object(M.a)(I.a.mark(function Jn(){var hr,Sn,On;return I.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(hr=[],Sn=!1,!Sn){Dn.next=4;break}return Dn.abrupt("return",!1);case 4:if(!_t.question_id){Dn.next=10;break}return Dn.next=7,Dt({type:"exercise/editExerciseQuestion",payload:{id:_t.question_id,question_title:ve,shixun_name:Nt,shixun_id:_t.shixun_id,question_type:5,question_scores:Tn}});case 7:On=Dn.sent,Dn.next=13;break;case 10:return Dn.next=12,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:_t==null?void 0:_t.insert_id,categoryId:Vn.categoryId,question_title:ve,shixun_name:Nt,shixun_id:_t.shixun_id,question_type:5,question_scores:Tn}});case 12:On=Dn.sent;case 13:return On.status===0&&(Be(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Fn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Vn)})),Dn.abrupt("return",{name:ve,analysis:de,standard_answers:hr,is_ordered:ne});case 15:case"end":return Dn.stop()}},Jn)}));return function(){return Tr.apply(this,arguments)}}(),ir=function(){var Jn;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),s.a.createElement("div",{className:"mt10"},s.a.createElement(x.a,{defaultValue:Nt,onChange:function(Sn){jt(Sn.target.value)}})),s.a.createElement("div",{className:"mt10"},s.a.createElement(he.a,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:ve,onChange:function(Sn){Q(Sn)}})),s.a.createElement("div",{className:"mt20"},(Jn=_t.shixun)===null||Jn===void 0?void 0:Jn.map(function(hr,Sn){return s.a.createElement(a.a,{gutter:[20,20]},s.a.createElement(m.a,{flex:"1"},Sn+1,".",hr.challenge_name),s.a.createElement(m.a,null,s.a.createElement(t.a,{defaultValue:Tn[Sn],onChange:function(or){Tn[Sn]=or,fr(Tn),console.log("srore:L",Tn[Sn])}})," \u5206"))})),s.a.createElement("div",{className:"mt20"},Ln.length>1&&s.a.createElement("span",null,s.a.createElement(A.a,{checked:ne,onChange:function(Sn){return B(Sn.target.checked)},className:"".concat(ee.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),s.a.createElement("span",{className:"".concat(ee.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),s.a.createElement("aside",{className:"tr"},(Gt!==-1||!(_t!=null&&_t.edit))&&s.a.createElement(i.a,{type:"default",onClick:function(){pe(),Fn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Kn()}},"\u4FDD\u5B58")))},jr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Tr){var Jn,hr;return(xt==null||((Jn=xt.editData)===null||Jn===void 0||((hr=Jn.exercise)===null||hr===void 0))?void 0:hr.exercise_status)===1?Tr:Tr.id!=="del"&&Tr.id!=="add"}),ua=function(){var Tr=Object(M.a)(I.a.mark(function Jn(hr){return I.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(!(Gt!==-1)){On.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),On.abrupt("return");case 3:On.t0=hr.id,On.next=On.t0==="del"?6:On.t0==="up"||On.t0==="down"?8:On.t0==="edit"?12:On.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Dn(){return I.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Gn.next=2,Object(W.m)({id:_t.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Vn)});case 3:case"end":return Gn.stop()}},Dn)}))()}}),On.abrupt("break",17);case 8:return On.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:_t.question_id,opr:hr.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Vn)}),On.abrupt("break",17);case 12:return Be(_t.dragKey),Fn(!0),On.abrupt("break",17);case 15:return Dt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:_t.key,insert_id:_t==null?void 0:_t.question_id,question_type:5}}}),On.abrupt("break",17);case 17:case"end":return On.stop()}},Jn)}));return function(hr){return Tr.apply(this,arguments)}}(),Yr=function(){var Jn,hr;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(_t!=null&&_t.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},_t.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",_t.question_score,"\u5206\uFF09")),_t!=null&&_t.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},_t.key,"."),s.a.createElement(be.a,{value:_t.shixun_name}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",_t.question_score,"\u5206\uFF09"),!!((Jn=_t.schools)!==null&&Jn!==void 0&&Jn.length)&&s.a.createElement(w.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},s.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"}))):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:_t.shixun_name})),s.a.createElement("div",{className:"mt30"}),(hr=_t.shixun)===null||hr===void 0?void 0:hr.map(function(Sn,On){return s.a.createElement("div",{key:On},"\u7B2C",On+1,"\u5173 ",s.a.createElement("span",{className:"ml10"},Sn.challenge_name)," ",s.a.createElement("span",{className:"ml10"},Sn.challenge_score," \u5206"))}),s.a.createElement("div",{className:ee.a.action},s.a.createElement(ze.a,{target:"_blank",to:"/shixuns/".concat(_t.shixun_identifier,"/challenges?exercise=true")},"\u5B9E\u8BAD\u8BE6\u60C5"),!_t.hideAction&&jr.map(function(Sn,On){return Sn.id==="up"&&_t.key===1||Sn.id==="down"&&_t.key===_t.len?null:s.a.createElement(w.a,{key:On,placement:"bottom",title:Sn.name},s.a.createElement("span",{onClick:function(){return ua(Sn)},className:Sn.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},!Jt&&Yr(),Jt&&ir())},Pe=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Fe)),Ve=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],at=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,_t=ye.onRef,mn=_t===void 0?function(){}:_t,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=ye.addCallback,bt=Zt===void 0?function(Gn){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)([]),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(""),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)(!1),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(1),fr=Object(S.a)(Tn,2),Vt=fr[0],Et=fr[1],Jt=Object(g.useState)(!1),Fn=Object(S.a)(Jt,2),Vn=Fn[0],Kn=Fn[1],ir=Object(F.i)(),jr=Object(g.useRef)(null),ua=Object(g.useState)([]),Yr=Object(S.a)(ua,2),Tr=Yr[0],Jn=Yr[1],hr=function(se){Jn([].concat(Object(P.a)(Tr),[Object(Y.a)({},se)]))};Object(g.useEffect)(function(){Te(["","","",""])},[]),Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){vn(!0),an(""),Bn(5),Te(["","","",""]),Mt([]);return}an(pe==null?void 0:pe.question_title),Bn(jn||(pe==null?void 0:pe.question_score)),Kn(!(pe!=null&&pe.repeat_answer)),Et(pe==null?void 0:pe.difficulty),Te(pe==null?void 0:pe.question_choices.map(function(se){return se.choice_text}));var Gn=[];pe==null||pe.standard_answer.map(function(se,tt){Gn.push(se-1)}),ae(pe.tag_discipline_ids),Mt(Gn)},[pe,ht]),Object(g.useEffect)(function(){ht&&Gn();function Gn(){return se.apply(this,arguments)}function se(){return se=Object(M.a)(I.a.mark(function tt(){var rt,ut,Kt;return I.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(W.H)({sub_discipline_id:(rt=et.editData)===null||rt===void 0||((ut=rt.exercise)===null||ut===void 0)?void 0:ut.sub_discipline_id});case 2:Kt=Yt.sent,Jn(Kt.tag_disciplines);case 4:case"end":return Yt.stop()}},tt)})),se.apply(this,arguments)}},[ht]),Object(g.useEffect)(function(){var Gn,se=et!=null&&(Gn=et.tagDisciplineData)!==null&&Gn!==void 0&&Gn.tag_disciplines&&Array.isArray(et.tagDisciplineData.tag_disciplines)?et.tagDisciplineData.tag_disciplines:[];Jn(se)},[et.tagDisciplineData]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Sn,isEdit:ht}});var Sn=function(){var Gn=Object(M.a)(I.a.mark(function se(){var tt,rt,ut,Kt,Ct,Yt,nn,_n,cn;return I.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:if(St){Mn.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),Mn.abrupt("return",!1);case 3:if(tt=bn.findIndex(function(fn){return!fn}),!(tt>-1)){Mn.next=7;break}return c.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ve[tt]," \u9009\u9879\u7684\u5185\u5BB9")),Mn.abrupt("return",!1);case 7:if(it.length){Mn.next=10;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),Mn.abrupt("return",!1);case 10:if(!(it.length<1)){Mn.next=13;break}return c.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),Mn.abrupt("return",!1);case 13:if(rt=bn.map(function(fn,Hn){return{choice_text:fn,is_answer:it.includes(Hn)?Hn+1:0}}),!pe.question_id){Mn.next=25;break}if(!((pe==null?void 0:pe.is_my)===1)){Mn.next=19;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var fn=Object(M.a)(I.a.mark(function Xn(){var $n,Yn,_r;return I.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(wr){return wr.choice_text}),standard_answers:rt.filter(function(wr){return wr.is_answer}).map(function(wr){return wr.is_answer}),tag_discipline_ids:H,sub_discipline_id:($n=et.editData)===null||$n===void 0||((Yn=$n.exercise)===null||Yn===void 0)?void 0:Yn.sub_discipline_id,difficulty:Vt,is_cover:1,repeat_answer:!Vn}});case 2:ut=lr.sent,((_r=ut)===null||_r===void 0?void 0:_r.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 4:case"end":return lr.stop()}},Xn)}));function Hn(){return fn.apply(this,arguments)}return Hn}(),onCancel:function(){var fn=Object(M.a)(I.a.mark(function Xn(){var $n,Yn,_r;return I.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(wr){return wr.choice_text}),standard_answers:rt.filter(function(wr){return wr.is_answer}).map(function(wr){return wr.is_answer}),tag_discipline_ids:H,sub_discipline_id:($n=et.editData)===null||$n===void 0||((Yn=$n.exercise)===null||Yn===void 0)?void 0:Yn.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 2:ut=lr.sent,((_r=ut)===null||_r===void 0?void 0:_r.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 4:case"end":return lr.stop()}},Xn)}));function Hn(){return fn.apply(this,arguments)}return Hn}()}),Mn.next=23;break;case 19:return Mn.next=21,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(fn){return fn.choice_text}),standard_answers:rt.filter(function(fn){return fn.is_answer}).map(function(fn){return fn.is_answer}),tag_discipline_ids:H,sub_discipline_id:(Kt=et.editData)===null||Kt===void 0||((Ct=Kt.exercise)===null||Ct===void 0)?void 0:Ct.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 21:ut=Mn.sent,((Yt=ut)===null||Yt===void 0?void 0:Yt.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 23:Mn.next=29;break;case 25:return Mn.next=27,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:ir.categoryId,question_title:St,question_type:1,question_score:jn,question_choices:rt.map(function(fn){return fn.choice_text}),standard_answers:rt.filter(function(fn){return fn.is_answer}).map(function(fn){return fn.is_answer}),tag_discipline_ids:H,sub_discipline_id:(nn=et.editData)===null||nn===void 0||((_n=nn.exercise)===null||_n===void 0)?void 0:_n.sub_discipline_id,difficulty:Vt,repeat_answer:!Vn}});case 27:ut=Mn.sent,((cn=ut)===null||cn===void 0?void 0:cn.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),vn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}));case 29:case"end":return Mn.stop()}},se)}));return function(){return Gn.apply(this,arguments)}}(),On=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Gn){var se,tt;return(et==null||((se=et.editData)===null||se===void 0||((tt=se.exercise)===null||tt===void 0))?void 0:tt.exercise_status)===1?Gn:Gn.id!=="del"&&Gn.id!=="add"}),or=function(){var Gn=Object(M.a)(I.a.mark(function se(tt){return I.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(!(Be!==-1)){ut.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ut.abrupt("return");case 3:ut.t0=tt.id,ut.next=ut.t0==="del"?6:ut.t0==="up"||ut.t0==="down"?8:ut.t0==="edit"?12:ut.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Ct(){return I.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)});case 3:case"end":return nn.stop()}},Ct)}))()}}),ut.abrupt("break",17);case 8:return ut.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:tt.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ir)}),ut.abrupt("break",17);case 12:return Xt(pe.dragKey),vn(!0),ut.abrupt("break",17);case 15:return bt({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:0}),ut.abrupt("break",17);case 17:case"end":return ut.stop()}},se)}));return function(tt){return Gn.apply(this,arguments)}}(),Dn=function(){var se;return s.a.createElement("aside",{ref:jr},s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},pe==null||((se=pe.question_choices)===null||se===void 0)?void 0:se.map(function(tt,rt){return s.a.createElement(a.a,{key:rt},s.a.createElement(m.a,null,s.a.createElement(b.a,{key:rt,checked:pe.standard_answer.includes(rt+1),disabled:!0},Ve[rt],".")),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:"c-black font14"},s.a.createElement(be.a,{value:tt.choice_text}))))})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&On.map(function(tt,rt){return tt.id==="up"&&pe.key===1||tt.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:rt,placement:"bottom",title:tt.name},s.a.createElement("span",{onClick:function(){return or(tt)},className:tt.icon}))})))},pr=function(){var se,tt;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:St,onChange:function(ut){return an(ut)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),bn.map(function(rt,ut){var Kt,Ct;return s.a.createElement("div",{className:ee.a.choiceWrap,key:ut},s.a.createElement(w.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},s.a.createElement("div",{className:"".concat(ee.a.answer," ").concat(it.includes(ut)?ee.a.activeAnswer:""),onClick:function(){it.includes(ut)?Mt(it.filter(function(nn){return nn!==ut})):Mt([].concat(Object(P.a)(it),[ut]))}},Ve[ut])),s.a.createElement("div",{className:ee.a.editorWrap},$===ut?s.a.createElement(he.a,{id:"single-question-option-".concat(ut),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:rt,onChange:function(nn){bn[ut]=nn,Te(bn)}}):s.a.createElement("div",{className:ee.a.htmlWrap,onClick:function(){return re(ut)}},s.a.createElement(be.a,{value:rt}))),((Kt=et.editData)===null||Kt===void 0||((Ct=Kt.exercise)===null||Ct===void 0)?void 0:Ct.exercise_status)===1&&s.a.createElement(s.a.Fragment,null,ut>1&&s.a.createElement(w.a,{title:"\u5220\u9664"},s.a.createElement("i",{className:"".concat(ee.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Te(bn.filter(function(nn,_n){return _n!==ut}))}})),ut<7&&ut===bn.length-1&&s.a.createElement(w.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},s.a.createElement("i",{className:"".concat(ee.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Te([].concat(Object(P.a)(bn),[""]))}}))))}),s.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:jn,max:1e4,min:0,onChange:function(ut){Bn(ut)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(b.a.Group,{value:Vt,onChange:function(ut){Et(ut.target.value)}},s.a.createElement(b.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(b.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(b.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{selectvalues:pe==null?void 0:pe.tag_discipline_ids,value:H,onChange:ae,subId:(se=et.editData)===null||se===void 0||((tt=se.exercise)===null||tt===void 0)?void 0:tt.sub_discipline_id,knowledgeOptions:Tr,onAddKnowledgeFinish:hr})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vn,onChange:function(ut){Kn(ut)}}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),vn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Sn()}},"\u4FDD\u5B58")))};return s.a.createElement("section",{className:ee.a.wrap},!ht&&Dn(),ht&&pr())},At=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(at)),Rt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],tn=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,_t=ye.onRef,mn=_t===void 0?function(){}:_t,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.addCallback,$t=Pt===void 0?function(){}:Pt,Zt=ye.setIsClaer,bt=Zt===void 0?function(){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),Nt=Object(g.useState)(""),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(""),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)(""),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(!1),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(g.useState)(1),oe=Object(S.a)(ue,2),ht=oe[0],vn=oe[1],Tn=Object(g.useState)(!1),fr=Object(S.a)(Tn,2),Vt=fr[0],Et=fr[1],Jt=Object(F.i)(),Fn=Object(g.useState)([]),Vn=Object(S.a)(Fn,2),Kn=Vn[0],ir=Vn[1],jr=function(On){ir([].concat(Object(P.a)(Kn),[Object(Y.a)({},On)]))};Object(g.useEffect)(function(){var Sn;if(!(pe!=null&&pe.question_title)){Bn(!0),Te(""),Mt(""),an(10);return}Et(!(pe!=null&&pe.repeat_answer)),Te(pe==null?void 0:pe.question_title),Mt(pe==null||((Sn=pe.standard_answer)===null||Sn===void 0)?void 0:Sn[0]),an(St||(pe==null?void 0:pe.question_score)),ae(pe.tag_discipline_ids),vn(pe==null?void 0:pe.difficulty)},[dt.editData,jn]),Object(g.useEffect)(function(){var Sn,On=et!=null&&(Sn=et.tagDisciplineData)!==null&&Sn!==void 0&&Sn.tag_disciplines&&Array.isArray(et.tagDisciplineData.tag_disciplines)?et.tagDisciplineData.tag_disciplines:[];ir(On)},[et.tagDisciplineData]),Object(g.useEffect)(function(){jn&&Sn();function Sn(){return On.apply(this,arguments)}function On(){return On=Object(M.a)(I.a.mark(function or(){var Dn,pr,Gn;return I.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(W.H)({sub_discipline_id:(Dn=et.editData)===null||Dn===void 0||((pr=Dn.exercise)===null||pr===void 0)?void 0:pr.sub_discipline_id});case 2:Gn=tt.sent,ir(Gn.tag_disciplines);case 4:case"end":return tt.stop()}},or)})),On.apply(this,arguments)}},[jn]),Object(g.useImperativeHandle)(Se,function(){return{onSave:ua,isEdit:jn}});var ua=function(){var Sn=Object(M.a)(I.a.mark(function On(){var or,Dn,pr,Gn,se;return I.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(bn){rt.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),rt.abrupt("return",!1);case 3:if(!pe.question_id){rt.next=14;break}if(!((pe==null?void 0:pe.is_my)===1)){rt.next=8;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var ut=Object(M.a)(I.a.mark(function Ct(){var Yt,nn;return I.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Yt=et.editData)===null||Yt===void 0||((nn=Yt.exercise)===null||nn===void 0)?void 0:nn.sub_discipline_id,difficulty:ht,is_cover:1,repeat_answer:!Vt}});case 2:or=cn.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 4:case"end":return cn.stop()}},Ct)}));function Kt(){return ut.apply(this,arguments)}return Kt}(),onCancel:function(){var ut=Object(M.a)(I.a.mark(function Ct(){var Yt,nn;return I.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Yt=et.editData)===null||Yt===void 0||((nn=Yt.exercise)===null||nn===void 0)?void 0:nn.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 2:or=cn.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 4:case"end":return cn.stop()}},Ct)}));function Kt(){return ut.apply(this,arguments)}return Kt}()}),rt.next=12;break;case 8:return rt.next=10,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Dn=et.editData)===null||Dn===void 0||((pr=Dn.exercise)===null||pr===void 0)?void 0:pr.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 10:or=rt.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 12:rt.next=18;break;case 14:return rt.next=16,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:Jt.categoryId,exercise_bank_id:Jt.categoryId,question_title:bn,question_type:4,question_score:St,standard_answers:[it],tag_discipline_ids:H,sub_discipline_id:(Gn=et.editData)===null||Gn===void 0||((se=Gn.exercise)===null||se===void 0)?void 0:se.sub_discipline_id,difficulty:ht,repeat_answer:!Vt}});case 16:or=rt.sent,or.status===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),Bn(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}));case 18:return rt.abrupt("return",{name:bn,answer_texts:[it],analysis:$});case 19:case"end":return rt.stop()}},On)}));return function(){return Sn.apply(this,arguments)}}(),Yr=function(){var On,or;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),s.a.createElement(he.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:bn,onChange:function(pr){return Te(pr)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),s.a.createElement(he.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:it,onChange:function(pr){return Mt(pr)}}),s.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:St,max:1e4,min:0,onChange:function(pr){an(pr)}})," \u5206",s.a.createElement("span",{style:{marginLeft:"30px"},className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(b.a.Group,{value:ht,onChange:function(pr){vn(pr.target.value)}},s.a.createElement(b.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(b.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(b.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{value:H,selectvalues:pe==null?void 0:pe.tag_discipline_ids,onChange:ae,subId:(On=et.editData)===null||On===void 0||((or=On.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,knowledgeOptions:Kn,onAddKnowledgeFinish:jr})),s.a.createElement("div",{style:{marginTop:10}},s.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),s.a.createElement(u.a,{checked:Vt,onChange:function(pr){Et(pr)}}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),Bn(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){ua()}},"\u4FDD\u5B58")))},Tr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Sn){var On,or;return(et==null||((On=et.editData)===null||On===void 0||((or=On.exercise)===null||or===void 0))?void 0:or.exercise_status)===1?Sn:Sn.id!=="del"&&Sn.id!=="add"}),Jn=function(){var Sn=Object(M.a)(I.a.mark(function On(or){return I.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(!(Be!==-1)){pr.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),pr.abrupt("return");case 3:pr.t0=or.id,pr.next=pr.t0==="del"?6:pr.t0==="up"||pr.t0==="down"?8:pr.t0==="edit"?12:pr.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function se(){return I.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)});case 3:case"end":return rt.stop()}},se)}))()}}),pr.abrupt("break",17);case 8:return pr.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:or.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},Jt)}),pr.abrupt("break",17);case 12:return Xt(pe.dragKey),Bn(!0),pr.abrupt("break",17);case 15:return $t({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:4}),pr.abrupt("break",17);case 17:case"end":return pr.stop()}},On)}));return function(or){return Sn.apply(this,arguments)}}(),hr=function(){return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},s.a.createElement("p",null,s.a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),s.a.createElement(be.a,{value:it||""})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&Tr.map(function(On,or){return On.id==="up"&&pe.key===1||On.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:or,placement:"bottom",title:On.name},s.a.createElement("span",{onClick:function(){return Jn(On)},className:On.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},!jn&&hr(),jn&&Yr())},Qt=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.exercise,et=Ae.globalSetting;return{problemset:ye,globalSetting:et,exercise:dt,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(tn)),Cn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Un=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,_t=ye.onRef,mn=_t===void 0?function(){}:_t,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.addCallback,$t=Pt===void 0?function(){}:Pt,Zt=ye.setIsClaer,bt=Zt===void 0?function(){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)([]),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(""),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(5),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)(!1),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(F.g)(),oe=Object(F.i)();Object(g.useEffect)(function(){Te(["","","",""])},[]),Object(g.useEffect)(function(){if(!(pe!=null&&pe.question_choices)){ae(!0),an(""),Bn(5),Te(["","","",""]),Mt([]);return}an(pe==null?void 0:pe.question_title),Bn(pe==null?void 0:pe.question_score),Te(pe==null?void 0:pe.question_choices.map(function(Jt){return Jt.choice_text}));var Et=[];pe==null||pe.standard_answer.map(function(Jt,Fn){Et.push(Jt-1)}),Mt(Et)},[pe]),Object(g.useImperativeHandle)(Se,function(){return{onSave:ht,isEdit:H}});var ht=function(){var Et=Object(M.a)(I.a.mark(function Jt(){var Fn,Vn,Kn;return I.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(St){jr.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),jr.abrupt("return",!1);case 3:if(Fn=bn.findIndex(function(ua){return!ua}),!(Fn>-1)){jr.next=7;break}return c.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Cn[Fn]," \u9009\u9879\u7684\u5185\u5BB9")),jr.abrupt("return",!1);case 7:if(it.length){jr.next=10;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),jr.abrupt("return",!1);case 10:if(!(it.length<1)){jr.next=13;break}return c.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),jr.abrupt("return",!1);case 13:if(Vn=bn.map(function(ua,Yr){return{choice_text:ua,is_answer:it.includes(Yr)?Yr+1:0}}),!pe.question_id){jr.next=20;break}return jr.next=17,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:St,question_type:1,question_score:jn,question_choices:Vn.map(function(ua){return ua.choice_text}),standard_answers:Vn.filter(function(ua){return ua.is_answer}).map(function(ua){return ua.is_answer})}});case 17:Kn=jr.sent,jr.next=23;break;case 20:return jr.next=22,Dt({type:"exercise/addExerciseQuestion",payload:{insert_id:pe==null?void 0:pe.insert_id,categoryId:oe.categoryId,question_title:St,question_type:1,question_score:"5.0",question_choices:Vn.map(function(ua){return ua.choice_text}),standard_answers:Vn.filter(function(ua){return ua.is_answer}).map(function(ua){return ua.is_answer})}});case 22:Kn=jr.sent;case 23:Kn.status===0&&(c.b.success("\u4FDD\u5B58\u6210\u529F"),ae(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},oe)}));case 24:case"end":return jr.stop()}},Jt)}));return function(){return Et.apply(this,arguments)}}(),vn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Et){var Jt,Fn;return(et==null||((Jt=et.editData)===null||Jt===void 0||((Fn=Jt.exercise)===null||Fn===void 0))?void 0:Fn.exercise_status)===1?Et:Et.id!=="del"&&Et.id!=="add"}),Tn=function(){var Et=Object(M.a)(I.a.mark(function Jt(Fn){return I.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!(Be!==-1)){Kn.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kn.abrupt("return");case 3:Kn.t0=Fn.id,Kn.next=Kn.t0==="del"?6:Kn.t0==="up"||Kn.t0==="down"?8:Kn.t0==="edit"?12:Kn.t0==="add"?14:16;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function jr(){return I.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:return Yr.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},oe)});case 3:case"end":return Yr.stop()}},jr)}))()}}),Kn.abrupt("break",16);case 8:return Kn.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:Fn.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},oe)}),Kn.abrupt("break",16);case 12:return ue.push("/problems/".concat(pe==null?void 0:pe.hack_identifier,"/edit?type=exercises&express_id=").concat(oe.categoryId,"&question_id=").concat(pe==null?void 0:pe.question_id,"&score=").concat(pe==null?void 0:pe.question_score,"&exercise=true&callback_url=").concat(location.pathname)),Kn.abrupt("break",16);case 14:return $t({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:6}),Kn.abrupt("break",16);case 16:case"end":return Kn.stop()}},Jt)}));return function(Fn){return Et.apply(this,arguments)}}(),fr=function(){var Et=Object(M.a)(I.a.mark(function Jt(Fn){var Vn;return I.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return Fn.preventDefault(),ir.next=3,Object(W.X)({id:pe==null?void 0:pe.hack_identifier});case 3:Vn=ir.sent,Vn.status===0&&Object(X.O)("/myproblems/".concat(Vn==null?void 0:Vn.identifier));case 5:case"end":return ir.stop()}},Jt)}));return function(Fn){return Et.apply(this,arguments)}}(),Vt=function(){return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{className:ee.a.questionChoices},s.a.createElement(be.a,{value:pe.description||""})),s.a.createElement("div",{className:ee.a.action},!pe.hideAction&&vn.map(function(Jt,Fn){return Jt.id==="up"&&pe.key===1||Jt.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:Fn,placement:"bottom",title:Jt.name},s.a.createElement("span",{onClick:function(){return Tn(Jt)},className:Jt.icon}))})))};return s.a.createElement("section",{className:ee.a.wrap},Vt())},mt=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(Un)),lt=_("LvDl"),Ht=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],sn=function(ye,Se){var dt=ye.problemset,et=ye.exercise,xt=ye.globalSetting,xn=ye.loading,Dt=ye.dispatch,_t=ye.onRef,mn=_t===void 0?function(){}:_t,pe=ye.editData,Gt=ye.cancelAdd,Lt=Gt===void 0?function(){}:Gt,Be=ye.editKey,ot=ye.setEditKey,Xt=ot===void 0?function(){}:ot,Pt=ye.setIsClaer,$t=Pt===void 0?function(){}:Pt,Zt=ye.addCallback,bt=Zt===void 0?function(hr){}:Zt,ft=Object(R.a)(ye,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback"]),Nt=Object(g.useState)([]),jt=Object(S.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(g.useState)(!1),Q=Object(S.a)(ve,2),$=Q[0],re=Q[1],de=Object(g.useState)(!0),Ue=Object(S.a)(de,2),it=Ue[0],Mt=Ue[1],Ln=Object(g.useState)(1),kn=Object(S.a)(Ln,2),St=kn[0],an=kn[1],Pn=Object(g.useState)(!1),dn=Object(S.a)(Pn,2),jn=dn[0],Bn=dn[1],ne=Object(g.useState)([]),B=Object(S.a)(ne,2),H=B[0],ae=B[1],ue=Object(F.i)(),oe=Object(g.useRef)(null),ht=Object(g.useState)(""),vn=Object(S.a)(ht,2),Tn=vn[0],fr=vn[1],Vt=Object(g.useState)([]),Et=Object(S.a)(Vt,2),Jt=Et[0],Fn=Et[1],Vn=function(Sn){ae([].concat(Object(P.a)(H),[Object(Y.a)({},Sn)]))};Object(g.useEffect)(function(){var hr;if(!(pe!=null&&pe.question_title)){re(!0),fr("");return}fr(pe==null?void 0:pe.question_title),Bn(!(pe!=null&&pe.repeat_answer)),an(pe==null?void 0:pe.difficulty),Te(pe.tag_discipline_ids);var Sn=pe==null||((hr=pe.sub_exercise_questions)===null||hr===void 0)?void 0:hr.map(function(On){var or,Dn,pr;return Object(Y.a)(Object(Y.a)({},On),{},{id:On.question_id,name:On.question_title,open:!1,score:On.question_score,qusList:On==null||((or=On.question_choices)===null||or===void 0)?void 0:or.map(function(Gn){return Gn.choice_text}),activeQusEditor:null,qusAnswer:(Dn=[On==null||((pr=On.question_choices)===null||pr===void 0)?void 0:pr.findIndex(function(Gn){return Gn.standard_boolean})])===null||Dn===void 0?void 0:Dn.filter(function(Gn){return Gn!==-1})})});Fn(Sn)},[pe,$]),Object(g.useEffect)(function(){$&&hr();function hr(){return Sn.apply(this,arguments)}function Sn(){return Sn=Object(M.a)(I.a.mark(function On(){var or,Dn,pr;return I.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,Object(W.H)({sub_discipline_id:(or=et.editData)===null||or===void 0||((Dn=or.exercise)===null||Dn===void 0)?void 0:Dn.sub_discipline_id});case 2:pr=se.sent,ae(pr.tag_disciplines);case 4:case"end":return se.stop()}},On)})),Sn.apply(this,arguments)}},[$]),Object(g.useEffect)(function(){var hr,Sn=et!=null&&(hr=et.tagDisciplineData)!==null&&hr!==void 0&&hr.tag_disciplines&&Array.isArray(et.tagDisciplineData.tag_disciplines)?et.tagDisciplineData.tag_disciplines:[];ae(Sn)},[et.tagDisciplineData]),Object(g.useImperativeHandle)(Se,function(){return{onSave:Kn,isEdit:$}});var Kn=function(){var hr=Object(M.a)(I.a.mark(function Sn(){var On,or,Dn,pr,Gn,se,tt,rt,ut;return I.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(Tn){Ct.next=3;break}return c.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Ct.abrupt("return",!1);case 3:if(!(Jt.length===0)){Ct.next=6;break}return c.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),Ct.abrupt("return",!1);case 6:On=0;case 7:if(!(On-1)){Ct.next=19;break}return c.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(On+1,"\u5C0F\u9898").concat(Ht[pr],"\u9009\u9879\u7684\u5185\u5BB9")),Ct.abrupt("return",!1);case 19:if(Dn!=null&&Dn.qusAnswer.length){Ct.next=22;break}return c.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(On+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),Ct.abrupt("return",!1);case 22:On++,Ct.next=7;break;case 25:if(Gn=Jt.map(function(Yt){var nn;return{id:Yt.id>1?Yt.id:null,question_title:Yt.name,question_type:1,question_choices:Yt.qusList,question_score:Yt.score,standard_answers:[((nn=Yt.qusAnswer)===null||nn===void 0?void 0:nn[0])+1]}}),!pe.question_id){Ct.next=35;break}if(!((pe==null?void 0:pe.is_my)===1)){Ct.next=31;break}o.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:function(){var Yt=Object(M.a)(I.a.mark(function _n(){var cn,ur,Mn;return I.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:Tn,question_type:7,sub_questions:Gn,tag_discipline_ids:bn,sub_discipline_id:(cn=et.editData)===null||cn===void 0||((ur=cn.exercise)===null||ur===void 0)?void 0:ur.sub_discipline_id,difficulty:St,is_cover:1,repeat_answer:!jn}});case 2:se=Hn.sent,((Mn=se)===null||Mn===void 0?void 0:Mn.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),re(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}));case 4:case"end":return Hn.stop()}},_n)}));function nn(){return Yt.apply(this,arguments)}return nn}(),onCancel:function(){var Yt=Object(M.a)(I.a.mark(function _n(){var cn,ur,Mn;return I.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:Tn,question_type:7,sub_questions:Gn,tag_discipline_ids:bn,sub_discipline_id:(cn=et.editData)===null||cn===void 0||((ur=cn.exercise)===null||ur===void 0)?void 0:ur.sub_discipline_id,difficulty:St,repeat_answer:!jn}});case 2:se=Hn.sent,((Mn=se)===null||Mn===void 0?void 0:Mn.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),re(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}));case 4:case"end":return Hn.stop()}},_n)}));function nn(){return Yt.apply(this,arguments)}return nn}()}),Ct.next=35;break;case 31:return Ct.next=33,Dt({type:"exercise/editExerciseQuestion",payload:{id:pe.question_id,question_title:Tn,question_type:7,sub_questions:Gn,tag_discipline_ids:bn,sub_discipline_id:(tt=et.editData)===null||tt===void 0||((rt=tt.exercise)===null||rt===void 0)?void 0:rt.sub_discipline_id,difficulty:St,repeat_answer:!jn}});case 33:se=Ct.sent,((ut=se)===null||ut===void 0?void 0:ut.status)===0&&(Xt(-1),c.b.success("\u4FDD\u5B58\u6210\u529F"),re(!1),Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}));case 35:case"end":return Ct.stop()}},Sn)}));return function(){return hr.apply(this,arguments)}}(),ir=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(hr){var Sn,On;return(et==null||((Sn=et.editData)===null||Sn===void 0||((On=Sn.exercise)===null||On===void 0))?void 0:On.exercise_status)===1?hr:hr.id!=="del"&&hr.id!=="add"}),jr=function(){var hr=Object(M.a)(I.a.mark(function Sn(On){return I.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(!(Be!==-1)){Dn.next=3;break}return c.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Dn.abrupt("return");case 3:Dn.t0=On.id,Dn.next=Dn.t0==="del"?6:Dn.t0==="up"||Dn.t0==="down"?8:Dn.t0==="edit"?12:Dn.t0==="add"?15:17;break;case 6:return o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(M.a)(I.a.mark(function Gn(){return I.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(W.m)({id:pe.question_id});case 2:Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)});case 3:case"end":return tt.stop()}},Gn)}))()}}),Dn.abrupt("break",17);case 8:return Dn.next=10,Dt({type:"exercise/exeriseMoveUpDown",payload:{id:pe.question_id,opr:On.id}});case 10:return Dt({type:"exercise/editExercise",payload:Object(Y.a)({},ue)}),Dn.abrupt("break",17);case 12:return Xt(pe.dragKey),re(!0),Dn.abrupt("break",17);case 15:return bt({key:pe.key,insert_id:pe==null?void 0:pe.question_id,question_type:0}),Dn.abrupt("break",17);case 17:case"end":return Dn.stop()}},Sn)}));return function(On){return hr.apply(this,arguments)}}(),ua=function(){var Sn;return s.a.createElement("aside",{ref:oe},s.a.createElement("div",{className:ee.a.questionType},!(pe!=null&&pe.isPreview)&&s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},pe.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",pe.question_score,"\u5206\uFF09")),pe!=null&&pe.isPreview?s.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,"."),s.a.createElement(be.a,{value:pe.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",pe==null?void 0:pe.sub_q_count,"\u5C0F\u9898\uFF0C",pe.question_score,"\u5206\uFF09")):s.a.createElement("div",{className:"mt5"},s.a.createElement(be.a,{value:pe.question_title})),s.a.createElement("div",{style:{display:it?"block":"none"},className:ee.a.questionChoices},pe==null||((Sn=pe.sub_exercise_questions)===null||Sn===void 0)?void 0:Sn.map(function(On,or){var Dn;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},s.a.createElement("span",{style:{flexShrink:0},className:"font18"},pe.key,".",or+1,"\uFF08\u5355\u9009\u9898\uFF09"),s.a.createElement(be.a,{value:On.question_title}),s.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",On.question_score,"\u5206\uFF09")),On==null||((Dn=On.question_choices)===null||Dn===void 0)?void 0:Dn.map(function(pr,Gn){return s.a.createElement(a.a,{key:Gn},s.a.createElement(m.a,null,s.a.createElement(b.a,{key:Gn,checked:On.standard_answer.includes(Gn+1),disabled:!0},Ht[Gn],".")),s.a.createElement(m.a,{flex:"1"},s.a.createElement("span",{className:"c-black font14"},s.a.createElement(be.a,{value:pr.choice_text}))))}))})),s.a.createElement("div",{className:ee.a.action},s.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Mt(!it)},style:{}},it?"\u6536\u8D77":"\u5C55\u5F00"),!pe.hideAction&&ir.map(function(On,or){return On.id==="up"&&pe.key===1||On.id==="down"&&pe.key===pe.len?null:s.a.createElement(w.a,{key:or,placement:"bottom",title:On.name},s.a.createElement("span",{onClick:function(){return jr(On)},className:On.icon}))})))},Yr=function(){var Sn,On;return s.a.createElement("aside",null,s.a.createElement("div",{className:ee.a.questionType},s.a.createElement("div",null,s.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),s.a.createElement("section",{className:ee.a.wrap,style:{padding:0}},s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u9898\u5E72\uFF1A")),s.a.createElement(he.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tn,onChange:function(Dn){return fr(Dn)}}),s.a.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",Jt==null?void 0:Jt.length),Jt==null?void 0:Jt.map(function(or,Dn){var pr;return s.a.createElement("div",{className:ee.a.fold,key:or.id},s.a.createElement("div",{onClick:function(){return Jn("open",Dn)},className:ee.a.head},s.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:or.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),s.a.createElement("span",null,"\u7B2C",Dn+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),s.a.createElement("b",{onClick:function(se){se.stopPropagation(),Jn("delete",Dn)},className:"iconfont icon-shanchu8"})),s.a.createElement("div",{className:"mb10",style:{display:or.open?"block":"none"}},s.a.createElement(he.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:or==null?void 0:or.name,onChange:function(se){return Jn("value",Dn,se)}}),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:ee.a.required},"*"),s.a.createElement("span",{className:ee.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),or==null||((pr=or.qusList)===null||pr===void 0)?void 0:pr.map(function(Gn,se){var tt,rt;return s.a.createElement("div",{className:ee.a.choiceWrap,key:se},s.a.createElement(w.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},s.a.createElement("div",{className:"".concat(ee.a.answer," ").concat(or!=null&&(tt=or.qusAnswer)!==null&&tt!==void 0&&tt.includes(se)?ee.a.activeAnswer:""),onClick:function(){return Jn("answer",Dn,se)}},Ht[se])),s.a.createElement("div",{className:ee.a.editorWrap},(or==null?void 0:or.activeQusEditor)===se?s.a.createElement(he.a,{id:"single-question-option-".concat(se),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Gn,onChange:function(Kt){return Jn("details",Dn,Kt)}}):s.a.createElement("div",{className:ee.a.htmlWrap,onClick:function(){return Jn("edit",Dn,se)}},s.a.createElement(be.a,{value:Gn}))),se>1&&s.a.createElement(w.a,{title:"\u5220\u9664"},s.a.createElement("i",{className:"".concat(ee.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Jn("deleteQus",Dn,se)}})),se<7&&se===(or==null||((rt=or.qusList)===null||rt===void 0)?void 0:rt.length)-1&&s.a.createElement(w.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},s.a.createElement("i",{className:"".concat(ee.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Jn("addQus",Dn)}})))}),s.a.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",s.a.createElement(t.a,{value:or.score,max:1e4,min:0,onChange:function(se){return Jn("score",Dn,se)}})," \u5206")))}),Jt.length<20&&s.a.createElement(i.a,{type:"primary",onClick:Tr},s.a.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),s.a.createElement("p",{className:"mt10"},s.a.createElement("span",{className:ee.a.difficult},s.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",s.a.createElement(b.a.Group,{value:St,onChange:function(Dn){an(Dn.target.value)}},s.a.createElement(b.a.Button,{value:1},"\u7B80\u5355"),s.a.createElement(b.a.Button,{value:2},"\u9002\u4E2D"),s.a.createElement(b.a.Button,{value:3},"\u56F0\u96BE")))),s.a.createElement("p",{className:ee.a.titleWrap},s.a.createElement("span",{className:"".concat(ee.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",s.a.createElement("span",{className:ee.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),s.a.createElement("div",{className:"mt5"},s.a.createElement(ge.a,{selectvalues:pe==null?void 0:pe.tag_discipline_ids,value:bn,onChange:Te,subId:(Sn=et.editData)===null||Sn===void 0||((On=Sn.exercise)===null||On===void 0)?void 0:On.sub_discipline_id,knowledgeOptions:H,onAddKnowledgeFinish:Vn}))),s.a.createElement("aside",{className:"tr"},(Be!==-1||pe.question_id)&&s.a.createElement(i.a,{type:"default",onClick:function(){Lt(),re(!1)}},"\u53D6\u6D88"),s.a.createElement(i.a,{className:"ml20",type:"primary",onClick:function(){Kn()}},"\u4FDD\u5B58")))},Tr=function(){var Sn={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};Fn(Jt.concat(Sn))},Jn=function(Sn,On,or){var Dn=Object(lt.cloneDeep)(Jt);if(Sn==="open"&&(Dn[On].open=!Dn[On].open),Sn==="delete"&&Dn.splice(On,1),Sn==="value"&&(Dn[On].name=or),Sn==="answer"&&(Dn[On].qusAnswer=[or]),Sn==="edit"&&(Dn[On].activeQusEditor=or),Sn==="details"&&(Dn[On].qusList[Dn[On].activeQusEditor]=or),Sn==="addQus"&&(Dn[On].qusList=Dn[On].qusList.concat("")),Sn==="deleteQus"){var pr;Dn[On].qusList=Dn[On].qusList.filter(function(Gn,se){return se!==or}),Dn[On].qusAnswer=(pr=Dn[On].qusAnswer)===null||pr===void 0?void 0:pr.filter(function(Gn){return Gn!==or})}Sn==="analysis"&&(Dn[On].analysis=or),Sn==="score"&&(Dn[On].score=or),Fn(Dn)};return s.a.createElement("section",{className:ee.a.wrap},!$&&ua(),$&&Yr())},Tt=Object(V.a)(function(Ae){var ye=Ae.problemset,Se=Ae.loading,dt=Ae.globalSetting,et=Ae.exercise;return{problemset:ye,globalSetting:dt,exercise:et,loading:Se.effects}},null,null,{forwardRef:!0})(Object(g.forwardRef)(sn)),wt=_("ngQI"),Qe=_("loLm"),Je=_.n(Qe),Xe=function(ye){var Se=ye.data,dt=ye.isDragDisabled,et=dt===void 0?!1:dt,xt=ye.editorProps,xn=xt===void 0?{}:xt,Dt=ye.onDragEnd,_t=Dt===void 0?function(){}:Dt,mn=function(){var $t,Zt,bt,ft,Nt,jt,bn,Te,ve,Q,$,re,de,Ue,it,Mt,Ln=[{name:"\u5355\u9009\u9898",type:0,count:Se==null||(($t=Se.exercise_types)===null||$t===void 0)?void 0:$t.q_singles,score:Se==null||((Zt=Se.exercise_types)===null||Zt===void 0)?void 0:Zt.q_singles_scores,items:[]},{name:"\u591A\u9009\u9898",type:1,count:Se==null||((bt=Se.exercise_types)===null||bt===void 0)?void 0:bt.q_doubles,score:Se==null||((ft=Se.exercise_types)===null||ft===void 0)?void 0:ft.q_doubles_scores,items:[]},{name:"\u5224\u65AD\u9898",type:2,count:Se==null||((Nt=Se.exercise_types)===null||Nt===void 0)?void 0:Nt.q_judges,score:Se==null||((jt=Se.exercise_types)===null||jt===void 0)?void 0:jt.q_judges_scores,items:[]},{name:"\u586B\u7A7A\u9898",type:3,count:Se==null||((bn=Se.exercise_types)===null||bn===void 0)?void 0:bn.q_nulls,score:Se==null||((Te=Se.exercise_types)===null||Te===void 0)?void 0:Te.q_nulls_scores,items:[]},{name:"\u7B80\u7B54\u9898",type:4,count:Se==null||((ve=Se.exercise_types)===null||ve===void 0)?void 0:ve.q_mains,score:Se==null||((Q=Se.exercise_types)===null||Q===void 0)?void 0:Q.q_mains_scores,items:[]},{name:"\u5B9E\u8BAD\u9898",type:5,count:Se==null||(($=Se.exercise_types)===null||$===void 0)?void 0:$.q_shixuns,score:Se==null||((re=Se.exercise_types)===null||re===void 0)?void 0:re.q_shixuns_scores,items:[]},{name:"\u7F16\u7A0B\u9898",type:6,count:Se==null||((de=Se.exercise_types)===null||de===void 0)?void 0:de.q_pros,score:Se==null||((Ue=Se.exercise_types)===null||Ue===void 0)?void 0:Ue.q_pros_scores,items:[]},{name:"\u7EC4\u5408\u9898",type:7,count:Se==null||((it=Se.exercise_types)===null||it===void 0)?void 0:it.q_combinations,score:Se==null||((Mt=Se.exercise_types)===null||Mt===void 0)?void 0:Mt.q_combination_scores,items:[]}];return Ln},pe=function($t,Zt,bt){var ft=Array.from($t),Nt=ft.splice(Zt,1),jt=Object(S.a)(Nt,1),bn=jt[0];return ft.splice(bt,0,bn),ft},Gt=function($t,Zt,bt){if(!$t.destination)return;var ft=pe(Zt,$t.source.index,$t.destination.index);_t(ft,bt)},Lt=function($t,Zt){if(Zt===0)return s.a.createElement(s.a.Fragment,null,s.a.createElement(At,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===1)return s.a.createElement(s.a.Fragment,null,s.a.createElement(xe,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===2)return s.a.createElement(s.a.Fragment,null,s.a.createElement(fe,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===3)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Ge,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===4)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Qt,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===5)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Pe,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===6)return s.a.createElement(s.a.Fragment,null,s.a.createElement(mt,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null));if(Zt===7)return s.a.createElement(s.a.Fragment,null,s.a.createElement(Tt,Object(U.a)({editData:$t},$t)),s.a.createElement(L.a,null))},Be=function($t,Zt,bt){return s.a.createElement(wt.a,{onDragEnd:function(Nt){return Gt(Nt,$t,Zt)}},s.a.createElement(wt.c,{droppableId:"droppable"},function(ft,Nt){return s.a.createElement("div",Object(U.a)({ref:ft.innerRef},ft.droppableProps,{style:{width:"100%"}}),$t==null?void 0:$t.map(function(jt,bn){var Te,ve=Object(Y.a)(Object(Y.a)({},jt),{},{key:bn+1,hideAction:!0,isPreview:!0,dragKey:Zt+"-"+bn},xn);return s.a.createElement(wt.b,{key:ve==null?void 0:ve.question_id,draggableId:ve==null||((Te=ve.question_id)===null||Te===void 0)?void 0:Te.toString(),index:bn,isDragDisabled:et},function(Q,$){return s.a.createElement("aside",Object(U.a)({ref:Q.innerRef},Q.draggableProps,Q.dragHandleProps),s.a.createElement("div",{className:Je.a.posWarp,id:ve.dragKey},Lt(ve,Zt),!et&&s.a.createElement("div",{className:Je.a.pos},s.a.createElement("div",{className:Je.a.tips},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u8BD5\u9898\u663E\u793A\u987A\u5E8F"))))})}))}))},ot=function($t){var Zt=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],bt=["","\u5341","\u767E","\u5343","\u4E07"];$t=parseInt($t);var ft=function(Te){for(var ve=Te.toString().split("").reverse(),Q="",$=0;$0&&ve[$]==0&&ve[$-1]==0?"":Zt[ve[$]]+(ve[$]==0?bt[0]:bt[$]))+Q;return Q},Nt=Math.floor($t/1e4),jt=$t%1e4;return jt.toString().length<4&&(jt="0"+jt),Nt?ft(Nt)+"\u4E07"+ft(jt):ft($t)},Xt=function(){var $t,Zt=mn();Se==null||(($t=Se.exercise_questions)===null||$t===void 0)||$t.forEach(function(ft,Nt){if(ft.question_type===0){var jt,bn;(jt=Zt[ft.question_type])===null||jt===void 0||((bn=jt.items)===null||bn===void 0)||bn.push(ft)}if(ft.question_type===1){var Te,ve;(Te=Zt[ft.question_type])===null||Te===void 0||((ve=Te.items)===null||ve===void 0)||ve.push(ft)}if(ft.question_type===2){var Q,$;(Q=Zt[ft.question_type])===null||Q===void 0||(($=Q.items)===null||$===void 0)||$.push(ft)}if(ft.question_type===3){var re,de;(re=Zt[ft.question_type])===null||re===void 0||((de=re.items)===null||de===void 0)||de.push(ft)}if(ft.question_type===4){var Ue,it;(Ue=Zt[ft.question_type])===null||Ue===void 0||((it=Ue.items)===null||it===void 0)||it.push(ft)}if(ft.question_type===5){var Mt,Ln;(Mt=Zt[ft.question_type])===null||Mt===void 0||((Ln=Mt.items)===null||Ln===void 0)||Ln.push(ft)}if(ft.question_type===6){var kn,St;(kn=Zt[ft.question_type])===null||kn===void 0||((St=kn.items)===null||St===void 0)||St.push(ft)}if(ft.question_type===7){var an,Pn;(an=Zt[ft.question_type])===null||an===void 0||((Pn=an.items)===null||Pn===void 0)||Pn.push(ft)}});var bt=Se==null?void 0:Se.map(function(ft,Nt){return s.a.createElement(s.a.Fragment,{key:Nt},s.a.createElement("div",{className:"pl20"},s.a.createElement("span",{className:"font16 c-light-primary"},ot(Nt+1),"\u3001",ft.name),s.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ft.count,"\u9898",(ft==null?void 0:ft.question_type)===7?"\uFF0C\u5305\u542B".concat(ft.sub_count,"\u5C0F\u9898"):"","\uFF1B\u5171",ft.score,"\u5206\uFF09")),Be(ft.items,ft==null?void 0:ft.question_type,ft==null?void 0:ft.name))});return bt};return s.a.createElement("div",null," ",Xt()," ")},Oe=ie.a=Xe},LdHM:function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return h}),_.d(ie,"a",function(){return E});var Y=_("1OyB"),j=_("vuIU"),L=_("Ji7U"),U=_("LK+K"),S=_("q1tI"),g=_("rePB"),s=_("Ff2n"),d=_("ODXe"),w=_("4IlW"),p=_("bX4T"),a=_("YrtM"),f=_("TSYQ"),x=_.n(f),y=_("+nKL"),m=_("8OUc"),O=function(J,X){var te=J.prefixCls,ee=J.id,be=J.flattenOptions,ge=J.childrenAsData,je=J.values,He=J.searchValue,nt=J.multiple,Ge=J.defaultActiveFirstOption,he=J.height,ce=J.itemHeight,Ee=J.notFoundContent,fe=J.open,Ne=J.menuItemSelectedIcon,Ce=J.virtual,xe=J.onSelect,ze=J.onToggleOpen,Le=J.onActiveValue,Fe=J.onScroll,Pe=J.onMouseEnter,Ve="".concat(te,"-item"),at=Object(a.a)(function(){return be},[fe,be],function(wt,Qe){return Qe[0]&&wt[1]!==Qe[1]}),At=S.useRef(null),Rt=function(Qe){Qe.preventDefault()},tn=function(Qe){At.current&&At.current.scrollTo({index:Qe})},Qt=function(Qe){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xe=at.length,Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(C.a)(G).map(function(X,te){if(!S.isValidElement(X)||!X.type)return null;var ee=X.type.isSelectOptGroup,be=X.key,ge=X.props,je=ge.children,He=Object(s.a)(ge,["children"]);return J||!ee?A(X):Object(t.a)(Object(t.a)({key:"__RC_SELECT_GRP__".concat(be===null?te:be,"__"),label:be},He),{},{options:v(je)})}).filter(function(X){return X})}var o=_("2Qr1"),l=_("qNPg"),c=_("U8pU"),M=_("Kwbf"),P=_("WKfj");function R(G){var J=G.mode,X=G.options,te=G.children,ee=G.backfill,be=G.allowClear,ge=G.placeholder,je=G.getInputElement,He=G.showSearch,nt=G.onSearch,Ge=G.defaultOpen,he=G.autoFocus,ce=G.labelInValue,Ee=G.value,fe=G.inputValue,Ne=G.optionLabelProp,Ce=J==="multiple"||J==="tags",xe=He!==void 0?He:Ce||J==="combobox",ze=X||v(te);if(Object(M.a)(J!=="tags"||ze.every(function(Ve){return!Ve.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),J==="tags"||J==="combobox"){var Le=ze.some(function(Ve){return Ve.options?Ve.options.some(function(at){return typeof("value"in at?at.value:at.key)=="number"}):typeof("value"in Ve?Ve.value:Ve.key)=="number"});Object(M.a)(!Le,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(J!=="combobox"||!Ne,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(J==="combobox"||!ee,"`backfill` only works with `combobox` mode."),Object(M.a)(J==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),Object(M.b)(J!=="combobox"||!je||!be||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),nt&&!xe&&J!=="combobox"&&J!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!Ge||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ee!=null){var Fe=Object(P.d)(Ee);Object(M.a)(!ce||Fe.every(function(Ve){return Object(c.a)(Ve)==="object"&&("key"in Ve||"value"in Ve)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!Ce||Array.isArray(Ee),"`value` should be array when `mode` is `multiple` or `tags`")}if(te){var Pe=null;Object(C.a)(te).some(function(Ve){if(!S.isValidElement(Ve)||!Ve.type)return!1;var at=Ve.type;if(at.isSelectOption)return!1;if(at.isSelectOptGroup){var At=Object(C.a)(Ve.props.children).every(function(Rt){return!S.isValidElement(Rt)||!Ve.type||Rt.type.isSelectOption?!0:(Pe=Rt.type,!1)});return!At}return Pe=at,!0}),Pe&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Pe.displayName||Pe.name||Pe,"`.")),Object(M.a)(fe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var k=R,I=Object(l.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:v,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:k,fillOptionsWithMissingValue:o.a}),F=function(G){Object(L.a)(X,G);var J=Object(U.a)(X);function X(){var te;return Object(Y.a)(this,X),te=J.apply(this,arguments),te.selectRef=S.createRef(),te.focus=function(){te.selectRef.current.focus()},te.blur=function(){te.selectRef.current.blur()},te}return Object(j.a)(X,[{key:"render",value:function(){return S.createElement(I,Object.assign({ref:this.selectRef},this.props))}}]),X}(S.Component);F.Option=h,F.OptGroup=E;var V=F,W=ie.c=V},M8RZ:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return w});var Y=_("fWQN"),j=_("mtLc"),L=_("yKVA"),U=_("879j"),S=_("q1tI"),g=_.n(S),s=_("i8i4"),d=_.n(s),w=function(p){Object(L.a)(f,p);var a=Object(U.a)(f);function f(x){var y;Object(Y.a)(this,f),y=a.call(this,x);var m=window.document;return y.node=m.createElement("div"),m.body.appendChild(y.node),y}return Object(j.a)(f,[{key:"render",value:function(){var y=this.props.children;return Object(s.createPortal)(y,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),f}(g.a.Component)},MEGo:function(Ye,ie,_){var Y=_("4fz+"),j=_("Dagg"),L=_("dqUG"),U=_("2fw6"),S=_("x6Kt"),g=_("rmlV"),s=_("yxFR"),d=_("y+Vt"),w=_("h7HQ"),p=_("1Jh7"),a=_("SKnc"),f=_("K2GJ"),x=_("Fofx"),y=_("NC18"),m=y.createFromString,O=_("bYtY"),i=O.isString,r=O.extend,u=O.defaults,h=O.trim,b=O.each,E=/[\s,]+/;function t(X){if(i(X)){var te=new DOMParser;X=te.parseFromString(X,"text/xml")}for(X.nodeType===9&&(X=X.firstChild);X.nodeName.toLowerCase()!=="svg"||X.nodeType!==1;)X=X.nextSibling;return X}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(X,te){te=te||{};var ee=t(X);if(!ee)throw new Error("Illegal svg");var be=new Y;this._root=be;var ge=ee.getAttribute("viewBox")||"",je=parseFloat(ee.getAttribute("width")||te.width),He=parseFloat(ee.getAttribute("height")||te.height);isNaN(je)&&(je=null),isNaN(He)&&(He=null),P(ee,be,null,!0);for(var nt=ee.firstChild;nt;)this._parseNode(nt,be),nt=nt.nextSibling;var Ge,he;if(ge){var ce=h(ge).split(E);ce.length>=4&&(Ge={x:parseFloat(ce[0]||0),y:parseFloat(ce[1]||0),width:parseFloat(ce[2]),height:parseFloat(ce[3])})}if(Ge&&je!=null&&He!=null&&(he=G(Ge,je,He),!te.ignoreViewBox)){var Ee=be;be=new Y,be.add(Ee),Ee.scale=he.scale.slice(),Ee.position=he.position.slice()}return!te.ignoreRootClip&&je!=null&&He!=null&&be.setClipPath(new S({shape:{x:0,y:0,width:je,height:He}})),{root:be,width:je,height:He,viewBoxRect:Ge,viewBoxTransform:he}},C.prototype._parseNode=function(X,te){var ee=X.nodeName.toLowerCase();ee==="defs"?this._isDefine=!0:ee==="text"&&(this._isText=!0);var be;if(this._isDefine){var ge=v[ee];if(ge){var je=ge.call(this,X),He=X.getAttribute("id");He&&(this._defs[He]=je)}}else{var ge=A[ee];ge&&(be=ge.call(this,X,te),te.add(be))}for(var nt=X.firstChild;nt;)nt.nodeType===1&&this._parseNode(nt,be),nt.nodeType===3&&this._isText&&this._parseText(nt,be),nt=nt.nextSibling;ee==="defs"?this._isDefine=!1:ee==="text"&&(this._isText=!1)},C.prototype._parseText=function(X,te){if(X.nodeType===1){var ee=X.getAttribute("dx")||0,be=X.getAttribute("dy")||0;this._textX+=parseFloat(ee),this._textY+=parseFloat(be)}var ge=new L({style:{text:X.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});l(te,ge),P(X,ge,this._defs);var je=ge.style.fontSize;je&&je<9&&(ge.style.fontSize=9,ge.scale=ge.scale||[1,1],ge.scale[0]*=je/9,ge.scale[1]*=je/9);var He=ge.getBoundingRect();return this._textX+=He.width,te.add(ge),ge};var A={g:function(X,te){var ee=new Y;return l(te,ee),P(X,ee,this._defs),ee},rect:function(X,te){var ee=new S;return l(te,ee),P(X,ee,this._defs),ee.setShape({x:parseFloat(X.getAttribute("x")||0),y:parseFloat(X.getAttribute("y")||0),width:parseFloat(X.getAttribute("width")||0),height:parseFloat(X.getAttribute("height")||0)}),ee},circle:function(X,te){var ee=new U;return l(te,ee),P(X,ee,this._defs),ee.setShape({cx:parseFloat(X.getAttribute("cx")||0),cy:parseFloat(X.getAttribute("cy")||0),r:parseFloat(X.getAttribute("r")||0)}),ee},line:function(X,te){var ee=new s;return l(te,ee),P(X,ee,this._defs),ee.setShape({x1:parseFloat(X.getAttribute("x1")||0),y1:parseFloat(X.getAttribute("y1")||0),x2:parseFloat(X.getAttribute("x2")||0),y2:parseFloat(X.getAttribute("y2")||0)}),ee},ellipse:function(X,te){var ee=new g;return l(te,ee),P(X,ee,this._defs),ee.setShape({cx:parseFloat(X.getAttribute("cx")||0),cy:parseFloat(X.getAttribute("cy")||0),rx:parseFloat(X.getAttribute("rx")||0),ry:parseFloat(X.getAttribute("ry")||0)}),ee},polygon:function(X,te){var ee=X.getAttribute("points");ee&&(ee=c(ee));var be=new w({shape:{points:ee||[]}});return l(te,be),P(X,be,this._defs),be},polyline:function(X,te){var ee=new d;l(te,ee),P(X,ee,this._defs);var be=X.getAttribute("points");be&&(be=c(be));var ge=new p({shape:{points:be||[]}});return ge},image:function(X,te){var ee=new j;return l(te,ee),P(X,ee,this._defs),ee.setStyle({image:X.getAttribute("xlink:href"),x:X.getAttribute("x"),y:X.getAttribute("y"),width:X.getAttribute("width"),height:X.getAttribute("height")}),ee},text:function(X,te){var ee=X.getAttribute("x")||0,be=X.getAttribute("y")||0,ge=X.getAttribute("dx")||0,je=X.getAttribute("dy")||0;this._textX=parseFloat(ee)+parseFloat(ge),this._textY=parseFloat(be)+parseFloat(je);var He=new Y;return l(te,He),P(X,He,this._defs),He},tspan:function(X,te){var ee=X.getAttribute("x"),be=X.getAttribute("y");ee!=null&&(this._textX=parseFloat(ee)),be!=null&&(this._textY=parseFloat(be));var ge=X.getAttribute("dx")||0,je=X.getAttribute("dy")||0,He=new Y;return l(te,He),P(X,He,this._defs),this._textX+=ge,this._textY+=je,He},path:function(X,te){var ee=X.getAttribute("d")||"",be=m(ee);return l(te,be),P(X,be,this._defs),be}},v={lineargradient:function(X){var te=parseInt(X.getAttribute("x1")||0,10),ee=parseInt(X.getAttribute("y1")||0,10),be=parseInt(X.getAttribute("x2")||10,10),ge=parseInt(X.getAttribute("y2")||0,10),je=new a(te,ee,be,ge);return o(X,je),je},radialgradient:function(X){}};function o(X,te){for(var ee=X.firstChild;ee;){if(ee.nodeType===1){var be=ee.getAttribute("offset");be.indexOf("%")>0?be=parseInt(be,10)/100:be?be=parseFloat(be):be=0;var ge=ee.getAttribute("stop-color")||"#000000";te.addColorStop(be,ge)}ee=ee.nextSibling}}function l(X,te){X&&X.__inheritedStyle&&(te.__inheritedStyle||(te.__inheritedStyle={}),u(te.__inheritedStyle,X.__inheritedStyle))}function c(X){for(var te=h(X).split(E),ee=[],be=0;be0;je-=2){var He=ge[je],nt=ge[je-1];be=be||x.create();switch(nt){case"translate":He=h(He).split(E),x.translate(be,be,[parseFloat(He[0]),parseFloat(He[1]||0)]);break;case"scale":He=h(He).split(E),x.scale(be,be,[parseFloat(He[0]),parseFloat(He[1]||He[0])]);break;case"rotate":He=h(He).split(E),x.rotate(be,be,parseFloat(He[0]));break;case"skew":He=h(He).split(E),console.warn("Skew transform is not supported yet");break;case"matrix":var He=h(He).split(E);be[0]=parseFloat(He[0]),be[1]=parseFloat(He[1]),be[2]=parseFloat(He[2]),be[3]=parseFloat(He[3]),be[4]=parseFloat(He[4]),be[5]=parseFloat(He[5]);break}}te.setLocalTransform(be)}}var V=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(X){var te=X.getAttribute("style"),ee={};if(!te)return ee;var be={};V.lastIndex=0;for(var ge;(ge=V.exec(te))!=null;)be[ge[1]]=ge[2];for(var je in M)M.hasOwnProperty(je)&&be[je]!=null&&(ee[M[je]]=be[je]);return ee}function G(X,te,ee){var be=te/X.width,ge=ee/X.height,je=Math.min(be,ge),He=[je,je],nt=[-(X.x+X.width/2)*je+te/2,-(X.y+X.height/2)*je+ee/2];return{scale:He,position:nt}}function J(X,te){var ee=new C;return ee.parse(X,te)}ie.parseXML=t,ie.makeViewBoxTransform=G,ie.parseSVG=J},MI8n:function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return g}),_.d(ie,"a",function(){return w}),_.d(ie,"e",function(){return p}),_.d(ie,"d",function(){return a}),_.d(ie,"c",function(){return f}),_.d(ie,"f",function(){return x});var Y=_("/cxE"),j=_("C/vA"),L=_("pmY6"),U=_("24hK"),S=function(){var y=function(m,O){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var u in r)r.hasOwnProperty(u)&&(i[u]=r[u])},y(m,O)};return function(m,O){y(m,O);function i(){this.constructor=m}m.prototype=O===null?Object.create(O):(i.prototype=O.prototype,new i)}}(),g;(function(y){y.None=function(){return L.a.None};function m(k){return function(I,F,V){F===void 0&&(F=null);var W=!1,G;return G=k(function(J){return W?void 0:(G?G.dispose():W=!0,I.call(F,J))},null,V),W&&G.dispose(),G}}y.once=m;function O(k,I){return E(function(F,V,W){return V===void 0&&(V=null),k(function(G){return F.call(V,I(G))},null,W)})}y.map=O;function i(k,I){return E(function(F,V,W){return V===void 0&&(V=null),k(function(G){I(G),F.call(V,G)},null,W)})}y.forEach=i;function r(k,I){return E(function(F,V,W){return V===void 0&&(V=null),k(function(G){return I(G)&&F.call(V,G)},null,W)})}y.filter=r;function u(k){return k}y.signal=u;function h(){for(var k=[],I=0;I1)&&ee.fire(ge),te=0},F)})},onLastListenerRemove:function(){G.dispose()}});return ee.event}y.debounce=t;function C(k){var I=new Date().getTime();return O(m(k),function(F){return new Date().getTime()-I})}y.stopwatch=C;function A(k){var I=!0,F;return r(k,function(V){var W=I||V!==F;return I=!1,F=V,W})}y.latch=A;function v(k,I,F){I===void 0&&(I=!1),F===void 0&&(F=[]);var V=F.slice(),W=k(function(X){V?V.push(X):J.fire(X)}),G=function(){V&&V.forEach(function(X){return J.fire(X)}),V=null},J=new w({onFirstListenerAdd:function(){W||(W=k(function(X){return J.fire(X)}))},onFirstListenerDidAdd:function(){V&&(I?setTimeout(G):G())},onLastListenerRemove:function(){W&&W.dispose(),W=null}});return J.event}y.buffer=v;var o=function(){function k(I){this.event=I}return k.prototype.map=function(I){return new k(O(this.event,I))},k.prototype.forEach=function(I){return new k(i(this.event,I))},k.prototype.filter=function(I){return new k(r(this.event,I))},k.prototype.reduce=function(I,F){return new k(b(this.event,I,F))},k.prototype.latch=function(){return new k(A(this.event))},k.prototype.debounce=function(I,F,V,W){return F===void 0&&(F=100),V===void 0&&(V=!1),new k(t(this.event,I,F,V,W))},k.prototype.on=function(I,F,V){return this.event(I,F,V)},k.prototype.once=function(I,F,V){return m(this.event)(I,F,V)},k}();function l(k){return new o(k)}y.chain=l;function c(k,I,F){F===void 0&&(F=function(X){return X});var V=function(){for(var X=[],te=0;te0?new d(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(b.prototype,"event",{get:function(){var m=this;return this._event||(this._event=function(O,i,r){m._listeners||(m._listeners=new U.a);var u=m._listeners.isEmpty();u&&m._options&&m._options.onFirstListenerAdd&&m._options.onFirstListenerAdd(m);var h=m._listeners.push(i?[O,i]:O);u&&m._options&&m._options.onFirstListenerDidAdd&&m._options.onFirstListenerDidAdd(m),m._options&&m._options.onListenerDidAdd&&m._options.onListenerDidAdd(m,O,i);var y;m._leakageMon&&(y=m._leakageMon.check(m._listeners.size));var E;return E={dispose:function(){if(y&&y(),E.dispose=b._noop,!m._disposed&&(h(),m._options&&m._options.onLastListenerRemove)){var t=m._listeners&&!m._listeners.isEmpty();t||m._options.onLastListenerRemove(m)}}},r instanceof L.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),b.prototype.fire=function(m){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new U.a);for(var O=this._listeners.iterator(),i=O.next();!i.done;i=O.next())this._deliveryQueue.push([i.value,m]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),u=r[0],h=r[1];try{typeof u=="function"?u.call(void 0,h):u[0].call(u[1],h)}catch(y){Object(Y.e)(y)}}}},b.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},b._noop=function(){},b}(),p=function(b){S(m,b);function m(O){var i=b.call(this,O)||this;return i._isPaused=0,i._eventQueue=new U.a,i._mergeFn=O&&O.merge,i}return m.prototype.pause=function(){this._isPaused++},m.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var O=this._eventQueue.toArray();this._eventQueue.clear(),b.prototype.fire.call(this,this._mergeFn(O))}else for(;!this._isPaused&&this._eventQueue.size!==0;)b.prototype.fire.call(this,this._eventQueue.shift())},m.prototype.fire=function(O){this._listeners&&(this._isPaused!==0?this._eventQueue.push(O):b.prototype.fire.call(this,O))},m}(w),a=function(){function b(){var m=this;this.hasListeners=!1,this.events=[],this.emitter=new w({onFirstListenerAdd:function(){return m.onFirstListenerAdd()},onLastListenerRemove:function(){return m.onLastListenerRemove()}})}return Object.defineProperty(b.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),b.prototype.add=function(m){var O=this,i={event:m,listener:null};this.events.push(i),this.hasListeners&&this.hook(i);var r=function(){O.hasListeners&&O.unhook(i);var u=O.events.indexOf(i);O.events.splice(u,1)};return Object(L.h)(Object(j.a)(r))},b.prototype.onFirstListenerAdd=function(){var m=this;this.hasListeners=!0,this.events.forEach(function(O){return m.hook(O)})},b.prototype.onLastListenerRemove=function(){var m=this;this.hasListeners=!1,this.events.forEach(function(O){return m.unhook(O)})},b.prototype.hook=function(m){var O=this;m.listener=m.event(function(i){return O.emitter.fire(i)})},b.prototype.unhook=function(m){m.listener&&m.listener.dispose(),m.listener=null},b.prototype.dispose=function(){this.emitter.dispose()},b}(),f=function(){function b(){this.buffers=[]}return b.prototype.wrapEvent=function(m){var O=this;return function(i,r,u){return m(function(h){var y=O.buffers[O.buffers.length-1];y?y.push(function(){return i.call(r,h)}):i.call(r,h)},void 0,u)}},b.prototype.bufferEvents=function(m){var O=[];this.buffers.push(O);var i=m();return this.buffers.pop(),O.forEach(function(r){return r()}),i},b}(),x=function(){function b(){var m=this;this.listening=!1,this.inputEvent=g.None,this.inputEventListener=L.a.None,this.emitter=new w({onFirstListenerDidAdd:function(){m.listening=!0,m.inputEventListener=m.inputEvent(m.emitter.fire,m.emitter)},onLastListenerRemove:function(){m.listening=!1,m.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(b.prototype,"input",{set:function(m){this.inputEvent=m,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=m(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},b}()},MKOG:function(Ye,ie,_){var Y=_("bYtY"),j=_("YH21"),L=j.Dispatcher,U=_("mLcG"),S=_("Bq2U"),g=function(d){d=d||{},this.stage=d.stage||{},this.onframe=d.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,L.call(this)};g.prototype={constructor:g,addClip:function(d){this._clips.push(d)},addAnimator:function(d){d.animation=this;for(var w=d.getClips(),p=0;p=0&&this._clips.splice(w,1)},removeAnimator:function(d){for(var w=d.getClips(),p=0;p=xe.length?Le:xe[Pe]})}function S(Ce){return Ce.replace(/[<>&]/g,function(xe){switch(xe){case"<":return"<";case">":return">";case"&":return"&";default:return xe}})}function g(Ce){return Ce.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function s(Ce,xe){xe===void 0&&(xe=" ");var ze=d(Ce,xe);return w(ze,xe)}function d(Ce,xe){if(!Ce||!xe)return Ce;var ze=xe.length;if(ze===0||Ce.length===0)return Ce;for(var Le=0;Ce.indexOf(xe,Le)===Le;)Le=Le+ze;return Ce.substring(Le)}function w(Ce,xe){if(!Ce||!xe)return Ce;var ze=xe.length,Le=Ce.length;if(ze===0||Le===0)return Ce;for(var Fe=Le,Pe=-1;!(Pe=Ce.lastIndexOf(xe,Fe-1),Pe===-1||Pe+ze!==Fe);){if(Pe===0)return"";Fe=Pe}return Ce.substring(0,Fe)}function p(Ce){return Ce.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function a(Ce,xe){if(Ce.length0?Ce.indexOf(xe,ze)===ze:ze===0?Ce===xe:!1}function x(Ce,xe,ze){if(ze===void 0&&(ze={}),!Ce)throw new Error("Cannot create regex from empty string");xe||(Ce=g(Ce)),ze.wholeWord&&(/\B/.test(Ce.charAt(0))||(Ce="\\b"+Ce),/\B/.test(Ce.charAt(Ce.length-1))||(Ce=Ce+"\\b"));var Le="";return ze.global&&(Le+="g"),ze.matchCase||(Le+="i"),ze.multiline&&(Le+="m"),ze.unicode&&(Le+="u"),new RegExp(Ce,Le)}function b(Ce){if(Ce.source==="^"||Ce.source==="^$"||Ce.source==="$"||Ce.source==="^\\s*$")return!1;var xe=Ce.exec("");return!!(xe&&Ce.lastIndex===0)}function m(Ce){return(Ce.global?"g":"")+(Ce.ignoreCase?"i":"")+(Ce.multiline?"m":"")+(Ce.unicode?"u":"")}function O(Ce){for(var xe=0,ze=Ce.length;xe=0;ze--){var Le=Ce.charCodeAt(ze);if(Le!==32&&Le!==9)return ze}return-1}function u(Ce,xe){return Cexe?1:0}function h(Ce,xe){for(var ze=Math.min(Ce.length,xe.length),Le=0;Lexe.length?1:0}function y(Ce){return Ce>=97&&Ce<=122}function E(Ce){return Ce>=65&&Ce<=90}function t(Ce){return y(Ce)||E(Ce)}function C(Ce,xe){return Ce.length===xe.length&&A(Ce,xe)}function A(Ce,xe,ze){ze===void 0&&(ze=Ce.length);for(var Le=0;LeCe.length?!1:A(Ce,xe,ze)}function o(Ce,xe){var ze,Le=Math.min(Ce.length,xe.length);for(ze=0;ze1){var Le=Ce.charCodeAt(xe-2);if(c(Le))return(Le-55296<<10)+(ze-56320)+65536}return ze}function k(Ce,xe){var ze=fe.getInstance(),Le=xe,Fe=Ce.length,Pe=P(Ce,Fe,xe);xe+=Pe>=65536?2:1;for(var Ve=ze.getGraphemeBreakType(Pe);xe=65536?2:1,Ve=At}return xe-Le}function I(Ce,xe){var ze=fe.getInstance(),Le=xe,Fe=R(Ce,xe);xe-=Fe>=65536?2:1;for(var Pe=ze.getGraphemeBreakType(Fe);xe>0;){var Ve=R(Ce,xe),at=ze.getGraphemeBreakType(Ve);if(Ee(at,Pe))break;xe-=Ve>=65536?2:1,Pe=at}return Le-xe}var F=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function V(Ce){return F.test(Ce)}var W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function G(Ce){return W.test(Ce)}var J=/^[\t\n\r\x20-\x7E]*$/;function X(Ce){return J.test(Ce)}function te(Ce){for(var xe=0,ze=Ce.length;xe=11904&&Ce<=55215||Ce>=63744&&Ce<=64255||Ce>=65281&&Ce<=65374}function be(Ce){return Ce>=127462&&Ce<=127487||Ce>=9728&&Ce<=10175||Ce>=127744&&Ce<=128591||Ce>=128640&&Ce<=128764||Ce>=128992&&Ce<=129003||Ce>=129280&&Ce<=129535||Ce>=129648&&Ce<=129651||Ce>=129656&&Ce<=129666||Ce>=129680&&Ce<=129685}var ge=String.fromCharCode(65279);function je(Ce){return!!(Ce&&Ce.length>0&&Ce.charCodeAt(0)===65279)}function He(Ce){return btoa(encodeURIComponent(Ce))}function nt(Ce,xe){for(var ze="",Le=0;Leze[3*Fe+1])Fe=2*Fe+1;else return ze[3*Fe+2];return 0},Ce._INSTANCE=null,Ce}();function Ne(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NC18:function(Ye,ie,_){var Y=_("y+Vt"),j=_("IMiH"),L=_("7oTu"),U=Math.sqrt,S=Math.sin,g=Math.cos,s=Math.PI,d=function(u){return Math.sqrt(u[0]*u[0]+u[1]*u[1])},w=function(u,h){return(u[0]*h[0]+u[1]*h[1])/(d(u)*d(h))},p=function(u,h){return(u[0]*h[1]1&&(A*=U(k),v*=U(k));var I=(t===C?-1:1)*U((A*A*(v*v)-A*A*(R*R)-v*v*(P*P))/(A*A*(R*R)+v*v*(P*P)))||0,F=I*A*R/v,V=I*-v*P/A,W=(u+y)/2+g(M)*F-S(M)*V,G=(h+E)/2+S(M)*F+g(M)*V,J=p([1,0],[(P-F)/A,(R-V)/v]),X=[(P-F)/A,(R-V)/v],te=[(-1*P-F)/A,(-1*R-V)/v],ee=p(X,te);w(X,te)<=-1&&(ee=s),w(X,te)>=1&&(ee=0),C===0&&ee>0&&(ee=ee-2*s),C===1&&ee<0&&(ee=ee+2*s),c.addData(l,W,G,A,v,J,ee,M,C)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,x=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function b(u){if(!u)return new j;for(var h=0,y=0,E=h,t=y,C,A=new j,v=j.CMD,o=u.match(f),l=0;l1&&arguments[1]!==void 0?arguments[1]:60,S=null;return function(){for(var g=this,s=arguments.length,d=new Array(s),w=0;w=0;O-=1){var i=d.get(O)||new Set;i.forEach(function(r){var u=r.parent,h=r.node;if(p(h)||!r.parent||m.has(r.parent.key))return;if(p(r.parent.node)){m.add(u.key);return}var y=!0,E=!1;(u.children||[]).filter(function(t){return!p(t.node)}).forEach(function(t){var C=t.key,A=a.has(C);y&&!A&&(y=!1),!E&&(A||f.has(C))&&(E=!0)}),y&&a.add(u.key),E&&f.add(u.key),m.add(u.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(j(f,a))}}function S(s,d,w,p,a){for(var f=new Set(s),x=new Set(d),b=0;b<=p;b+=1){var m=w.get(b)||new Set;m.forEach(function(u){var h=u.key,y=u.node,E=u.children,t=E===void 0?[]:E;!f.has(h)&&!x.has(h)&&!a(y)&&t.filter(function(C){return!a(C.node)}).forEach(function(C){f.delete(C.key)})})}x=new Set;for(var O=new Set,i=p;i>=0;i-=1){var r=w.get(i)||new Set;r.forEach(function(u){var h=u.parent,y=u.node;if(a(y)||!u.parent||O.has(u.parent.key))return;if(a(u.parent.node)){O.add(h.key);return}var E=!0,t=!1;(h.children||[]).filter(function(C){return!a(C.node)}).forEach(function(C){var A=C.key,v=f.has(A);E&&!v&&(E=!1),!t&&(v||x.has(A))&&(t=!0)}),E||f.delete(h.key),t&&x.add(h.key),O.add(h.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(j(x,f))}}function g(s,d,w,p){var a=[],f;p?f=p:f=L;var x=new Set(s.filter(function(i){var r=!!w[i];return r||a.push(i),r})),b=new Map,m=0;Object.keys(w).forEach(function(i){var r=w[i],u=r.level,h=b.get(u);h||(h=new Set,b.set(u,h)),h.add(r),m=Math.max(m,u)}),Object(Y.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var O;return d===!0?O=U(x,b,m,f):O=S(x,d.halfCheckedKeys,b,m,f),O}},O2Wb:function(Ye,ie,_){Ye.exports={flex:"flex___2gmSR",flex1:"flex1___3Tu1g",color666:"color666___2uyGL",error:"error___yJ86W",deleteIcon:"deleteIcon___1D2tg",addIcon:"addIcon___2VIYB"}},OLES:function(Ye,ie,_){"use strict";var Y=_("U8pU"),j=_("VTBJ"),L=_("Ff2n"),U=_("q1tI"),S=_("uciX"),g=_("7ixt"),s=function(x){var b=x.overlay,m=x.prefixCls,O=x.id,i=x.overlayInnerStyle;return U.createElement("div",{className:"".concat(m,"-inner"),id:O,role:"tooltip",style:i},typeof b=="function"?b():b)},d=s,w=function(x,b){var m=x.overlayClassName,O=x.trigger,i=O===void 0?["hover"]:O,r=x.mouseEnterDelay,u=r===void 0?0:r,h=x.mouseLeaveDelay,y=h===void 0?.1:h,E=x.overlayStyle,t=x.prefixCls,C=t===void 0?"rc-tooltip":t,A=x.children,v=x.onVisibleChange,o=x.afterVisibleChange,l=x.transitionName,c=x.animation,M=x.placement,P=M===void 0?"right":M,R=x.align,k=R===void 0?{}:R,I=x.destroyTooltipOnHide,F=I===void 0?!1:I,V=x.defaultVisible,W=x.getTooltipContainer,G=x.overlayInnerStyle,J=Object(L.a)(x,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),X=Object(U.useRef)(null);Object(U.useImperativeHandle)(b,function(){return X.current});var te=Object(j.a)({},J);"visible"in x&&(te.popupVisible=x.visible);var ee=function(){var nt=x.arrowContent,Ge=nt===void 0?null:nt,he=x.overlay,ce=x.id;return[U.createElement("div",{className:"".concat(C,"-arrow"),key:"arrow"},Ge),U.createElement(d,{key:"content",prefixCls:C,id:ce,overlay:he,overlayInnerStyle:G})]},be=!1,ge=!1;if(typeof F=="boolean")be=F;else if(F&&Object(Y.a)(F)==="object"){var je=F.keepParent;be=je===!0,ge=je===!1}return U.createElement(S.a,Object.assign({popupClassName:m,prefixCls:C,popup:ee,action:i,builtinPlacements:g.a,popupPlacement:P,ref:X,popupAlign:k,getPopupContainer:W,onPopupVisibleChange:v,afterPopupVisibleChange:o,popupTransitionName:l,popupAnimation:c,defaultPopupVisible:V,destroyPopupOnHide:be,autoDestroy:ge,mouseLeaveDelay:y,popupStyle:E,mouseEnterDelay:u},te),A)},p=Object(U.forwardRef)(w),a=ie.a=p},OS9S:function(Ye,ie,_){var Y=_("bYtY"),j=Y.inherits,L=_("Gev7"),U=_("mFDi");function S(d){L.call(this,d),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}S.prototype.incremental=!0,S.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},S.prototype.addDisplayable=function(d,w){w?this._temporaryDisplayables.push(d):this._displayables.push(d),this.dirty()},S.prototype.addDisplayables=function(d,w){w=w||!1;for(var p=0;p=0&&A.splice(v,1),A}function a(t,C){var A=t.slice();return A.indexOf(C)===-1&&A.push(C),A}function f(t){return t.split("-")}function x(t,C){return"".concat(t,"-").concat(C)}function b(t){return t&&t.type&&t.type.isTreeNode}function m(t,C){var A=[t],v=C[t];function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var M=c.key,P=c.children;A.push(M),o(P)})}return o(v.children),A}function O(t,C){var A=t.clientY,v=C.selectHandle.getBoundingClientRect(),o=v.top,l=v.bottom,c=v.height,M=Math.max(c*d,w);return A<=o+M?-1:A>=l-M?1:0}function i(t,C){if(!t)return;var A=C.multiple;return A?t.slice():t.length?[t[0]]:t}var r=function(C){return C};function u(t,C){if(!t)return[];var A=C||{},v=A.processProps,o=v===void 0?r:v,l=Array.isArray(t)?t:[t];return l.map(function(c){var M=c.children,P=Object(L.a)(c,["children"]),R=u(M,C);return S.a.createElement(s.a,Object.assign({},o(P)),R)})}function h(t){if(!t)return null;var C;if(Array.isArray(t))C={checkedKeys:t,halfCheckedKeys:void 0};else if(Object(j.a)(t)==="object")C={checkedKeys:t.checked||void 0,halfCheckedKeys:t.halfChecked||void 0};else return Object(g.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function y(t,C){var A=new Set;function v(o){if(A.has(o))return;var l=C[o];if(!l)return;A.add(o);var c=l.parent,M=l.node;if(M.disabled)return;c&&v(c.key)}return(t||[]).forEach(function(o){v(o)}),Object(Y.a)(A)}function E(t){var C={};return Object.keys(t).forEach(function(A){(A.startsWith("data-")||A.startsWith("aria-"))&&(C[A]=t[A])}),C}},Ohmc:function(Ye,ie,_){Ye.exports=_.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(Ye,ie,_){"use strict";var Y=_("2qtc"),j=_("kLXV"),L=_("rAM+"),U=_("miYZ"),S=_("tsqr"),g=_("9og8"),s=_("tJVT"),d=_("jrin"),w=_("WmNS"),p=_.n(w),a=_("q1tI"),f=_.n(a),x=_("VrN/"),b=_.n(x),m=_("bdgK"),O=_("p77/"),i=_("Bd2K"),r=_("ELLl"),u=_("19Vz"),h=_("lZu9"),y=_("+NIl"),E=_("kSUc"),t=_("9Bee"),C=function(et){var xt=et.value,xn=xt===void 0?"":xt,Dt=et.className,yt=et.showTextOnly,mn=et.showLines,pe=et.style,Gt=pe===void 0?{}:pe,Lt=Object(a.useMemo)(function(){return""},[xn]);return f.a.createElement(f.a.Fragment,null,f.a.createElement("div",{dangerouslySetInnerHTML:{__html:Lt}}))},A=_("0Owb"),v=_("dejd"),o=_("C+DQ"),l=_("1vsH"),c=_("m3rI"),M=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function P(et){var xt=et.onActionCallback,xn=et.title,Dt=et.icon,yt=et.actionName,mn=et.className,pe=mn===void 0?"":mn,Gt=et.children;function Lt(){xt(yt)}return f.a.createElement("a",{title:xn,className:pe,onClick:Lt},f.a.createElement("i",{className:"md-iconfont ".concat(Dt)}),Gt)}var R=function(et){var xt=et.watch,xn=et.showNullButton,Dt=et.onActionCallback,yt=et.fullScreen,mn=et.insertTemp,pe=et.hidetoolBar,Gt=et.uuid,Lt=et.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(l.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(l.D)("_educoder_session"),"&key=").concat(Gt,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Be=[].concat(M,[{title:"".concat(xt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(xt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return f.a.createElement("ul",{className:"markdown-toolbar-container"},!pe&&Be.map(function(ot,Xt){return f.a.createElement("li",{key:Xt},ot.actionName?f.a.createElement(P,Object(A.a)({},ot,{onActionCallback:Dt})):f.a.createElement("span",{className:"v-line"}))}),xn?f.a.createElement("li",null,f.a.createElement(P,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Dt},f.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,mn&&f.a.createElement("li",null,f.a.createElement(P,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(mn),onActionCallback:Dt},f.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),f.a.createElement("li",{className:"btn-full-screen"},f.a.createElement(P,{icon:"".concat(yt?"icon-shrink":"icon-enlarge"),title:yt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Dt})))},k=_("M8RZ"),I=_("+L6B"),F=_("2/Rp"),V=_("y8nQ"),W=_("Vl3Y"),G=_("5NDa"),J=_("5rEg"),X={labelCol:{span:4},wrapperCol:{span:20}},te=function(et){var xt=et.callback,xn=et.onCancel;function Dt(yt){xt(yt)}return f.a.createElement(W.a,Object(A.a)({},X,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Dt}),f.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},f.a.createElement(J.a,null)),f.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},f.a.createElement(J.a,null)),f.a.createElement("div",{className:"flex-container flex-end"},f.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),f.a.createElement(F.a,{type:"ghost",onClick:xn},"\u53D6\u6D88")))},ee=_("7ahc"),be=_("k1fw"),ge=_("HmJG"),je=_("BjJ7"),He=W.a.useForm,nt={width:280,marginRight:10},Ge={labelCol:{span:5},wrapperCol:{span:19}},he=function(et){var xt=et.callback,xn=et.onCancel,Dt=He(),yt=Object(s.a)(Dt,1),mn=yt[0],pe=Object(a.useRef)();function Gt(ot){xt(Object(be.a)(Object(be.a)({},ot),{},{name:pe.current}))}function Lt(ot,Xt){mn.setFieldsValue({src:"/api/attachments/".concat(ot.id,"?type=").concat(ot.content_type),type:Xt.type})}function Be(ot){var Xt=ot.target.files[0];pe.current=Xt.name,Ee(Xt,Lt)}return f.a.createElement(W.a,Object(A.a)({form:mn},Ge,{className:"upload-image-panel",onFinish:Gt}),f.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},f.a.createElement("div",{className:"flex-container"},f.a.createElement(W.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},f.a.createElement(J.a,{style:nt})),f.a.createElement(ce,{onFileChange:Be}))),f.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},f.a.createElement(J.a,{style:{width:264}})),f.a.createElement(W.a.Item,{style:{textAlign:"right"}},f.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),f.a.createElement(F.a,{type:"ghost",onClick:xn},"\u53D6\u6D88")))};function ce(et){var xt=et.onFileChange;return f.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",f.a.createElement("input",{type:"file",onChange:xt}))}function Ee(et,xt){if(!et)throw new String("\u6CA1\u6709\u6587\u4EF6");var xn=new FormData;xn.append("editormd-image-file",et),xn.append("file_param_name","editormd-image-file"),xn.append("byxhr","true");var Dt=new window.XMLHttpRequest;Dt.withCredentials=!0,Dt.addEventListener("load",function(yt){xt(JSON.parse(yt.target.responseText),et)},!1),Dt.addEventListener("error",function(yt){console.error(yt)},!1),Dt.open("POST","".concat(je.a,"/api/attachments.json")),Dt.send(xn)}var fe=_("giR+"),Ne=_("fyUT"),Ce=_("7Kak"),xe=_("9yH6"),ze=xe.a.Group,Le={margin:"0 8px"},Fe=function(et){var xt=et.callback,xn=et.onCancel;function Dt(yt){xt(yt)}return f.a.createElement(W.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Dt},f.a.createElement("div",{className:"flex-container"},f.a.createElement("span",{style:Le},"\u5355\u5143\u683C\u6570\uFF1A"),f.a.createElement("span",{style:Le},"\u884C\u6570"),f.a.createElement(W.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},f.a.createElement(Ne.a,null)),f.a.createElement("span",{style:Le},"\u5217\u6570"),f.a.createElement(W.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},f.a.createElement(Ne.a,null))),f.a.createElement("div",{className:"flex-container",style:{marginTop:12}},f.a.createElement("span",{style:Le},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),f.a.createElement(W.a.Item,{name:"align"},f.a.createElement(ze,null,f.a.createElement(xe.a,{value:"default"},f.a.createElement("i",{className:"fa fa-align-justify"})),f.a.createElement(xe.a,{value:"left"},f.a.createElement("i",{className:"fa fa-align-left"})),f.a.createElement(xe.a,{value:"center"},f.a.createElement("i",{className:"fa fa-align-center"})),f.a.createElement(xe.a,{value:"right"},f.a.createElement("i",{className:"fa fa-align-right"}))))),f.a.createElement("div",{className:"flex-container flex-end"},f.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),f.a.createElement(F.a,{type:"ghost",onClick:xn},"\u53D6\u6D88")))},Pe=_("ErOA"),Ve=_("7Cbv"),at="link",At="upload-image",Rt="code-block",tn="add-table",Qt="------------",Cn={default:Qt,left:":".concat(Qt),center:":".concat(Qt,":"),right:"".concat(Qt,":")},Un=_("9VGf"),mt,lt;function Ht(){}var sn=0,Tt=1e4,wt="\u2581",Qe=` +`),u=this._stacks.get(r)||0;if(this._stacks.set(r,u+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;var h,b=0;this._stacks.forEach(function(E,t){(!h||b0?new d(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(y.prototype,"event",{get:function(){var m=this;return this._event||(this._event=function(O,i,r){m._listeners||(m._listeners=new U.a);var u=m._listeners.isEmpty();u&&m._options&&m._options.onFirstListenerAdd&&m._options.onFirstListenerAdd(m);var h=m._listeners.push(i?[O,i]:O);u&&m._options&&m._options.onFirstListenerDidAdd&&m._options.onFirstListenerDidAdd(m),m._options&&m._options.onListenerDidAdd&&m._options.onListenerDidAdd(m,O,i);var b;m._leakageMon&&(b=m._leakageMon.check(m._listeners.size));var E;return E={dispose:function(){if(b&&b(),E.dispose=y._noop,!m._disposed&&(h(),m._options&&m._options.onLastListenerRemove)){var t=m._listeners&&!m._listeners.isEmpty();t||m._options.onLastListenerRemove(m)}}},r instanceof L.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),y.prototype.fire=function(m){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new U.a);for(var O=this._listeners.iterator(),i=O.next();!i.done;i=O.next())this._deliveryQueue.push([i.value,m]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),u=r[0],h=r[1];try{typeof u=="function"?u.call(void 0,h):u[0].call(u[1],h)}catch(b){Object(Y.e)(b)}}}},y.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},y._noop=function(){},y}(),p=function(y){S(m,y);function m(O){var i=y.call(this,O)||this;return i._isPaused=0,i._eventQueue=new U.a,i._mergeFn=O&&O.merge,i}return m.prototype.pause=function(){this._isPaused++},m.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var O=this._eventQueue.toArray();this._eventQueue.clear(),y.prototype.fire.call(this,this._mergeFn(O))}else for(;!this._isPaused&&this._eventQueue.size!==0;)y.prototype.fire.call(this,this._eventQueue.shift())},m.prototype.fire=function(O){this._listeners&&(this._isPaused!==0?this._eventQueue.push(O):y.prototype.fire.call(this,O))},m}(w),a=function(){function y(){var m=this;this.hasListeners=!1,this.events=[],this.emitter=new w({onFirstListenerAdd:function(){return m.onFirstListenerAdd()},onLastListenerRemove:function(){return m.onLastListenerRemove()}})}return Object.defineProperty(y.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),y.prototype.add=function(m){var O=this,i={event:m,listener:null};this.events.push(i),this.hasListeners&&this.hook(i);var r=function(){O.hasListeners&&O.unhook(i);var u=O.events.indexOf(i);O.events.splice(u,1)};return Object(L.h)(Object(j.a)(r))},y.prototype.onFirstListenerAdd=function(){var m=this;this.hasListeners=!0,this.events.forEach(function(O){return m.hook(O)})},y.prototype.onLastListenerRemove=function(){var m=this;this.hasListeners=!1,this.events.forEach(function(O){return m.unhook(O)})},y.prototype.hook=function(m){var O=this;m.listener=m.event(function(i){return O.emitter.fire(i)})},y.prototype.unhook=function(m){m.listener&&m.listener.dispose(),m.listener=null},y.prototype.dispose=function(){this.emitter.dispose()},y}(),f=function(){function y(){this.buffers=[]}return y.prototype.wrapEvent=function(m){var O=this;return function(i,r,u){return m(function(h){var b=O.buffers[O.buffers.length-1];b?b.push(function(){return i.call(r,h)}):i.call(r,h)},void 0,u)}},y.prototype.bufferEvents=function(m){var O=[];this.buffers.push(O);var i=m();return this.buffers.pop(),O.forEach(function(r){return r()}),i},y}(),x=function(){function y(){var m=this;this.listening=!1,this.inputEvent=g.None,this.inputEventListener=L.a.None,this.emitter=new w({onFirstListenerDidAdd:function(){m.listening=!0,m.inputEventListener=m.inputEvent(m.emitter.fire,m.emitter)},onLastListenerRemove:function(){m.listening=!1,m.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(y.prototype,"input",{set:function(m){this.inputEvent=m,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=m(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),y.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},y}()},MKOG:function(Ye,ie,_){var Y=_("bYtY"),j=_("YH21"),L=j.Dispatcher,U=_("mLcG"),S=_("Bq2U"),g=function(d){d=d||{},this.stage=d.stage||{},this.onframe=d.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,L.call(this)};g.prototype={constructor:g,addClip:function(d){this._clips.push(d)},addAnimator:function(d){d.animation=this;for(var w=d.getClips(),p=0;p=0&&this._clips.splice(w,1)},removeAnimator:function(d){for(var w=d.getClips(),p=0;p=xe.length?Le:xe[Pe]})}function S(Ce){return Ce.replace(/[<>&]/g,function(xe){switch(xe){case"<":return"<";case">":return">";case"&":return"&";default:return xe}})}function g(Ce){return Ce.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function s(Ce,xe){xe===void 0&&(xe=" ");var ze=d(Ce,xe);return w(ze,xe)}function d(Ce,xe){if(!Ce||!xe)return Ce;var ze=xe.length;if(ze===0||Ce.length===0)return Ce;for(var Le=0;Ce.indexOf(xe,Le)===Le;)Le=Le+ze;return Ce.substring(Le)}function w(Ce,xe){if(!Ce||!xe)return Ce;var ze=xe.length,Le=Ce.length;if(ze===0||Le===0)return Ce;for(var Fe=Le,Pe=-1;!(Pe=Ce.lastIndexOf(xe,Fe-1),Pe===-1||Pe+ze!==Fe);){if(Pe===0)return"";Fe=Pe}return Ce.substring(0,Fe)}function p(Ce){return Ce.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function a(Ce,xe){if(Ce.length0?Ce.indexOf(xe,ze)===ze:ze===0?Ce===xe:!1}function x(Ce,xe,ze){if(ze===void 0&&(ze={}),!Ce)throw new Error("Cannot create regex from empty string");xe||(Ce=g(Ce)),ze.wholeWord&&(/\B/.test(Ce.charAt(0))||(Ce="\\b"+Ce),/\B/.test(Ce.charAt(Ce.length-1))||(Ce=Ce+"\\b"));var Le="";return ze.global&&(Le+="g"),ze.matchCase||(Le+="i"),ze.multiline&&(Le+="m"),ze.unicode&&(Le+="u"),new RegExp(Ce,Le)}function y(Ce){if(Ce.source==="^"||Ce.source==="^$"||Ce.source==="$"||Ce.source==="^\\s*$")return!1;var xe=Ce.exec("");return!!(xe&&Ce.lastIndex===0)}function m(Ce){return(Ce.global?"g":"")+(Ce.ignoreCase?"i":"")+(Ce.multiline?"m":"")+(Ce.unicode?"u":"")}function O(Ce){for(var xe=0,ze=Ce.length;xe=0;ze--){var Le=Ce.charCodeAt(ze);if(Le!==32&&Le!==9)return ze}return-1}function u(Ce,xe){return Cexe?1:0}function h(Ce,xe){for(var ze=Math.min(Ce.length,xe.length),Le=0;Lexe.length?1:0}function b(Ce){return Ce>=97&&Ce<=122}function E(Ce){return Ce>=65&&Ce<=90}function t(Ce){return b(Ce)||E(Ce)}function C(Ce,xe){return Ce.length===xe.length&&A(Ce,xe)}function A(Ce,xe,ze){ze===void 0&&(ze=Ce.length);for(var Le=0;LeCe.length?!1:A(Ce,xe,ze)}function o(Ce,xe){var ze,Le=Math.min(Ce.length,xe.length);for(ze=0;ze1){var Le=Ce.charCodeAt(xe-2);if(c(Le))return(Le-55296<<10)+(ze-56320)+65536}return ze}function k(Ce,xe){var ze=fe.getInstance(),Le=xe,Fe=Ce.length,Pe=P(Ce,Fe,xe);xe+=Pe>=65536?2:1;for(var Ve=ze.getGraphemeBreakType(Pe);xe=65536?2:1,Ve=At}return xe-Le}function I(Ce,xe){var ze=fe.getInstance(),Le=xe,Fe=R(Ce,xe);xe-=Fe>=65536?2:1;for(var Pe=ze.getGraphemeBreakType(Fe);xe>0;){var Ve=R(Ce,xe),at=ze.getGraphemeBreakType(Ve);if(Ee(at,Pe))break;xe-=Ve>=65536?2:1,Pe=at}return Le-xe}var F=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function V(Ce){return F.test(Ce)}var W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function G(Ce){return W.test(Ce)}var J=/^[\t\n\r\x20-\x7E]*$/;function X(Ce){return J.test(Ce)}function te(Ce){for(var xe=0,ze=Ce.length;xe=11904&&Ce<=55215||Ce>=63744&&Ce<=64255||Ce>=65281&&Ce<=65374}function be(Ce){return Ce>=127462&&Ce<=127487||Ce>=9728&&Ce<=10175||Ce>=127744&&Ce<=128591||Ce>=128640&&Ce<=128764||Ce>=128992&&Ce<=129003||Ce>=129280&&Ce<=129535||Ce>=129648&&Ce<=129651||Ce>=129656&&Ce<=129666||Ce>=129680&&Ce<=129685}var ge=String.fromCharCode(65279);function je(Ce){return!!(Ce&&Ce.length>0&&Ce.charCodeAt(0)===65279)}function He(Ce){return btoa(encodeURIComponent(Ce))}function nt(Ce,xe){for(var ze="",Le=0;Leze[3*Fe+1])Fe=2*Fe+1;else return ze[3*Fe+2];return 0},Ce._INSTANCE=null,Ce}();function Ne(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NC18:function(Ye,ie,_){var Y=_("y+Vt"),j=_("IMiH"),L=_("7oTu"),U=Math.sqrt,S=Math.sin,g=Math.cos,s=Math.PI,d=function(u){return Math.sqrt(u[0]*u[0]+u[1]*u[1])},w=function(u,h){return(u[0]*h[0]+u[1]*h[1])/(d(u)*d(h))},p=function(u,h){return(u[0]*h[1]1&&(A*=U(k),v*=U(k));var I=(t===C?-1:1)*U((A*A*(v*v)-A*A*(R*R)-v*v*(P*P))/(A*A*(R*R)+v*v*(P*P)))||0,F=I*A*R/v,V=I*-v*P/A,W=(u+b)/2+g(M)*F-S(M)*V,G=(h+E)/2+S(M)*F+g(M)*V,J=p([1,0],[(P-F)/A,(R-V)/v]),X=[(P-F)/A,(R-V)/v],te=[(-1*P-F)/A,(-1*R-V)/v],ee=p(X,te);w(X,te)<=-1&&(ee=s),w(X,te)>=1&&(ee=0),C===0&&ee>0&&(ee=ee-2*s),C===1&&ee<0&&(ee=ee+2*s),c.addData(l,W,G,A,v,J,ee,M,C)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,x=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y(u){if(!u)return new j;for(var h=0,b=0,E=h,t=b,C,A=new j,v=j.CMD,o=u.match(f),l=0;l1&&arguments[1]!==void 0?arguments[1]:60,S=null;return function(){for(var g=this,s=arguments.length,d=new Array(s),w=0;w=0;O-=1){var i=d.get(O)||new Set;i.forEach(function(r){var u=r.parent,h=r.node;if(p(h)||!r.parent||m.has(r.parent.key))return;if(p(r.parent.node)){m.add(u.key);return}var b=!0,E=!1;(u.children||[]).filter(function(t){return!p(t.node)}).forEach(function(t){var C=t.key,A=a.has(C);b&&!A&&(b=!1),!E&&(A||f.has(C))&&(E=!0)}),b&&a.add(u.key),E&&f.add(u.key),m.add(u.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(j(f,a))}}function S(s,d,w,p,a){for(var f=new Set(s),x=new Set(d),y=0;y<=p;y+=1){var m=w.get(y)||new Set;m.forEach(function(u){var h=u.key,b=u.node,E=u.children,t=E===void 0?[]:E;!f.has(h)&&!x.has(h)&&!a(b)&&t.filter(function(C){return!a(C.node)}).forEach(function(C){f.delete(C.key)})})}x=new Set;for(var O=new Set,i=p;i>=0;i-=1){var r=w.get(i)||new Set;r.forEach(function(u){var h=u.parent,b=u.node;if(a(b)||!u.parent||O.has(u.parent.key))return;if(a(u.parent.node)){O.add(h.key);return}var E=!0,t=!1;(h.children||[]).filter(function(C){return!a(C.node)}).forEach(function(C){var A=C.key,v=f.has(A);E&&!v&&(E=!1),!t&&(v||x.has(A))&&(t=!0)}),E||f.delete(h.key),t&&x.add(h.key),O.add(h.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(j(x,f))}}function g(s,d,w,p){var a=[],f;p?f=p:f=L;var x=new Set(s.filter(function(i){var r=!!w[i];return r||a.push(i),r})),y=new Map,m=0;Object.keys(w).forEach(function(i){var r=w[i],u=r.level,h=y.get(u);h||(h=new Set,y.set(u,h)),h.add(r),m=Math.max(m,u)}),Object(Y.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var O;return d===!0?O=U(x,y,m,f):O=S(x,d.halfCheckedKeys,y,m,f),O}},O2Wb:function(Ye,ie,_){Ye.exports={flex:"flex___2gmSR",flex1:"flex1___3Tu1g",color666:"color666___2uyGL",error:"error___yJ86W",deleteIcon:"deleteIcon___1D2tg",addIcon:"addIcon___2VIYB"}},OLES:function(Ye,ie,_){"use strict";var Y=_("U8pU"),j=_("VTBJ"),L=_("Ff2n"),U=_("q1tI"),S=_("uciX"),g=_("7ixt"),s=function(x){var y=x.overlay,m=x.prefixCls,O=x.id,i=x.overlayInnerStyle;return U.createElement("div",{className:"".concat(m,"-inner"),id:O,role:"tooltip",style:i},typeof y=="function"?y():y)},d=s,w=function(x,y){var m=x.overlayClassName,O=x.trigger,i=O===void 0?["hover"]:O,r=x.mouseEnterDelay,u=r===void 0?0:r,h=x.mouseLeaveDelay,b=h===void 0?.1:h,E=x.overlayStyle,t=x.prefixCls,C=t===void 0?"rc-tooltip":t,A=x.children,v=x.onVisibleChange,o=x.afterVisibleChange,l=x.transitionName,c=x.animation,M=x.placement,P=M===void 0?"right":M,R=x.align,k=R===void 0?{}:R,I=x.destroyTooltipOnHide,F=I===void 0?!1:I,V=x.defaultVisible,W=x.getTooltipContainer,G=x.overlayInnerStyle,J=Object(L.a)(x,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),X=Object(U.useRef)(null);Object(U.useImperativeHandle)(y,function(){return X.current});var te=Object(j.a)({},J);"visible"in x&&(te.popupVisible=x.visible);var ee=function(){var nt=x.arrowContent,Ge=nt===void 0?null:nt,he=x.overlay,ce=x.id;return[U.createElement("div",{className:"".concat(C,"-arrow"),key:"arrow"},Ge),U.createElement(d,{key:"content",prefixCls:C,id:ce,overlay:he,overlayInnerStyle:G})]},be=!1,ge=!1;if(typeof F=="boolean")be=F;else if(F&&Object(Y.a)(F)==="object"){var je=F.keepParent;be=je===!0,ge=je===!1}return U.createElement(S.a,Object.assign({popupClassName:m,prefixCls:C,popup:ee,action:i,builtinPlacements:g.a,popupPlacement:P,ref:X,popupAlign:k,getPopupContainer:W,onPopupVisibleChange:v,afterPopupVisibleChange:o,popupTransitionName:l,popupAnimation:c,defaultPopupVisible:V,destroyPopupOnHide:be,autoDestroy:ge,mouseLeaveDelay:b,popupStyle:E,mouseEnterDelay:u},te),A)},p=Object(U.forwardRef)(w),a=ie.a=p},OS9S:function(Ye,ie,_){var Y=_("bYtY"),j=Y.inherits,L=_("Gev7"),U=_("mFDi");function S(d){L.call(this,d),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}S.prototype.incremental=!0,S.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},S.prototype.addDisplayable=function(d,w){w?this._temporaryDisplayables.push(d):this._displayables.push(d),this.dirty()},S.prototype.addDisplayables=function(d,w){w=w||!1;for(var p=0;p=0&&A.splice(v,1),A}function a(t,C){var A=t.slice();return A.indexOf(C)===-1&&A.push(C),A}function f(t){return t.split("-")}function x(t,C){return"".concat(t,"-").concat(C)}function y(t){return t&&t.type&&t.type.isTreeNode}function m(t,C){var A=[t],v=C[t];function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var M=c.key,P=c.children;A.push(M),o(P)})}return o(v.children),A}function O(t,C){var A=t.clientY,v=C.selectHandle.getBoundingClientRect(),o=v.top,l=v.bottom,c=v.height,M=Math.max(c*d,w);return A<=o+M?-1:A>=l-M?1:0}function i(t,C){if(!t)return;var A=C.multiple;return A?t.slice():t.length?[t[0]]:t}var r=function(C){return C};function u(t,C){if(!t)return[];var A=C||{},v=A.processProps,o=v===void 0?r:v,l=Array.isArray(t)?t:[t];return l.map(function(c){var M=c.children,P=Object(L.a)(c,["children"]),R=u(M,C);return S.a.createElement(s.a,Object.assign({},o(P)),R)})}function h(t){if(!t)return null;var C;if(Array.isArray(t))C={checkedKeys:t,halfCheckedKeys:void 0};else if(Object(j.a)(t)==="object")C={checkedKeys:t.checked||void 0,halfCheckedKeys:t.halfChecked||void 0};else return Object(g.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function b(t,C){var A=new Set;function v(o){if(A.has(o))return;var l=C[o];if(!l)return;A.add(o);var c=l.parent,M=l.node;if(M.disabled)return;c&&v(c.key)}return(t||[]).forEach(function(o){v(o)}),Object(Y.a)(A)}function E(t){var C={};return Object.keys(t).forEach(function(A){(A.startsWith("data-")||A.startsWith("aria-"))&&(C[A]=t[A])}),C}},Ohmc:function(Ye,ie,_){Ye.exports=_.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(Ye,ie,_){"use strict";var Y=_("2qtc"),j=_("kLXV"),L=_("rAM+"),U=_("miYZ"),S=_("tsqr"),g=_("9og8"),s=_("tJVT"),d=_("jrin"),w=_("WmNS"),p=_.n(w),a=_("q1tI"),f=_.n(a),x=_("VrN/"),y=_.n(x),m=_("bdgK"),O=_("p77/"),i=_("Bd2K"),r=_("ELLl"),u=_("19Vz"),h=_("lZu9"),b=_("+NIl"),E=_("kSUc"),t=_("9Bee"),C=function(et){var xt=et.value,xn=xt===void 0?"":xt,Dt=et.className,_t=et.showTextOnly,mn=et.showLines,pe=et.style,Gt=pe===void 0?{}:pe,Lt=Object(a.useMemo)(function(){return""},[xn]);return f.a.createElement(f.a.Fragment,null,f.a.createElement("div",{dangerouslySetInnerHTML:{__html:Lt}}))},A=_("0Owb"),v=_("dejd"),o=_("C+DQ"),l=_("1vsH"),c=_("m3rI"),M=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function P(et){var xt=et.onActionCallback,xn=et.title,Dt=et.icon,_t=et.actionName,mn=et.className,pe=mn===void 0?"":mn,Gt=et.children;function Lt(){xt(_t)}return f.a.createElement("a",{title:xn,className:pe,onClick:Lt},f.a.createElement("i",{className:"md-iconfont ".concat(Dt)}),Gt)}var R=function(et){var xt=et.watch,xn=et.showNullButton,Dt=et.onActionCallback,_t=et.fullScreen,mn=et.insertTemp,pe=et.hidetoolBar,Gt=et.uuid,Lt=et.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(l.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(l.D)("_educoder_session"),"&key=").concat(Gt,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Be=[].concat(M,[{title:"".concat(xt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(xt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return f.a.createElement("ul",{className:"markdown-toolbar-container"},!pe&&Be.map(function(ot,Xt){return f.a.createElement("li",{key:Xt},ot.actionName?f.a.createElement(P,Object(A.a)({},ot,{onActionCallback:Dt})):f.a.createElement("span",{className:"v-line"}))}),xn?f.a.createElement("li",null,f.a.createElement(P,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Dt},f.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,mn&&f.a.createElement("li",null,f.a.createElement(P,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(mn),onActionCallback:Dt},f.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),f.a.createElement("li",{className:"btn-full-screen"},f.a.createElement(P,{icon:"".concat(_t?"icon-shrink":"icon-enlarge"),title:_t?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Dt})))},k=_("M8RZ"),I=_("+L6B"),F=_("2/Rp"),V=_("y8nQ"),W=_("Vl3Y"),G=_("5NDa"),J=_("5rEg"),X={labelCol:{span:4},wrapperCol:{span:20}},te=function(et){var xt=et.callback,xn=et.onCancel;function Dt(_t){xt(_t)}return f.a.createElement(W.a,Object(A.a)({},X,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Dt}),f.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},f.a.createElement(J.a,null)),f.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},f.a.createElement(J.a,null)),f.a.createElement("div",{className:"flex-container flex-end"},f.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),f.a.createElement(F.a,{type:"ghost",onClick:xn},"\u53D6\u6D88")))},ee=_("7ahc"),be=_("k1fw"),ge=_("HmJG"),je=_("BjJ7"),He=W.a.useForm,nt={width:280,marginRight:10},Ge={labelCol:{span:5},wrapperCol:{span:19}},he=function(et){var xt=et.callback,xn=et.onCancel,Dt=He(),_t=Object(s.a)(Dt,1),mn=_t[0],pe=Object(a.useRef)();function Gt(ot){xt(Object(be.a)(Object(be.a)({},ot),{},{name:pe.current}))}function Lt(ot,Xt){mn.setFieldsValue({src:"/api/attachments/".concat(ot.id,"?type=").concat(ot.content_type),type:Xt.type})}function Be(ot){var Xt=ot.target.files[0];pe.current=Xt.name,Ee(Xt,Lt)}return f.a.createElement(W.a,Object(A.a)({form:mn},Ge,{className:"upload-image-panel",onFinish:Gt}),f.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},f.a.createElement("div",{className:"flex-container"},f.a.createElement(W.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},f.a.createElement(J.a,{style:nt})),f.a.createElement(ce,{onFileChange:Be}))),f.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},f.a.createElement(J.a,{style:{width:264}})),f.a.createElement(W.a.Item,{style:{textAlign:"right"}},f.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),f.a.createElement(F.a,{type:"ghost",onClick:xn},"\u53D6\u6D88")))};function ce(et){var xt=et.onFileChange;return f.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",f.a.createElement("input",{type:"file",onChange:xt}))}function Ee(et,xt){if(!et)throw new String("\u6CA1\u6709\u6587\u4EF6");var xn=new FormData;xn.append("editormd-image-file",et),xn.append("file_param_name","editormd-image-file"),xn.append("byxhr","true");var Dt=new window.XMLHttpRequest;Dt.withCredentials=!0,Dt.addEventListener("load",function(_t){xt(JSON.parse(_t.target.responseText),et)},!1),Dt.addEventListener("error",function(_t){console.error(_t)},!1),Dt.open("POST","".concat(je.a,"/api/attachments.json")),Dt.send(xn)}var fe=_("giR+"),Ne=_("fyUT"),Ce=_("7Kak"),xe=_("9yH6"),ze=xe.a.Group,Le={margin:"0 8px"},Fe=function(et){var xt=et.callback,xn=et.onCancel;function Dt(_t){xt(_t)}return f.a.createElement(W.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Dt},f.a.createElement("div",{className:"flex-container"},f.a.createElement("span",{style:Le},"\u5355\u5143\u683C\u6570\uFF1A"),f.a.createElement("span",{style:Le},"\u884C\u6570"),f.a.createElement(W.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},f.a.createElement(Ne.a,null)),f.a.createElement("span",{style:Le},"\u5217\u6570"),f.a.createElement(W.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},f.a.createElement(Ne.a,null))),f.a.createElement("div",{className:"flex-container",style:{marginTop:12}},f.a.createElement("span",{style:Le},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),f.a.createElement(W.a.Item,{name:"align"},f.a.createElement(ze,null,f.a.createElement(xe.a,{value:"default"},f.a.createElement("i",{className:"fa fa-align-justify"})),f.a.createElement(xe.a,{value:"left"},f.a.createElement("i",{className:"fa fa-align-left"})),f.a.createElement(xe.a,{value:"center"},f.a.createElement("i",{className:"fa fa-align-center"})),f.a.createElement(xe.a,{value:"right"},f.a.createElement("i",{className:"fa fa-align-right"}))))),f.a.createElement("div",{className:"flex-container flex-end"},f.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),f.a.createElement(F.a,{type:"ghost",onClick:xn},"\u53D6\u6D88")))},Pe=_("ErOA"),Ve=_("7Cbv"),at="link",At="upload-image",Rt="code-block",tn="add-table",Qt="------------",Cn={default:Qt,left:":".concat(Qt),center:":".concat(Qt,":"),right:"".concat(Qt,":")},Un=_("9VGf"),mt,lt;function Ht(){}var sn=0,Tt=1e4,wt="\u2581",Qe=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Je(et){return/^\d+$/.test(et)?"".concat(et,"px"):et}var Xe=navigator.platform.toUpperCase().indexOf("MAC")>=0,Oe=Xe?"Cmd":"Ctrl",Ae=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ye=(mt={},Object(d.a)(mt,Oe+"-B","bold"),Object(d.a)(mt,Oe+"-I","italic"),mt),Se=(lt={},Object(d.a)(lt,at,"\u6DFB\u52A0\u94FE\u63A5"),Object(d.a)(lt,Rt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(d.a)(lt,At,"\u6DFB\u52A0\u6587\u4EF6"),Object(d.a)(lt,tn,"\u6DFB\u52A0\u8868\u683C"),lt),dt=ie.a=function(et){var xt=et.defaultValue,xn=xt===void 0?"":xt,Dt=et.onChange,yt=et.width,mn=yt===void 0?"100%":yt,pe=et.height,Gt=pe===void 0?400:pe,Lt=et.miniToolbar,Be=Lt===void 0?!1:Lt,ot=et.isFocus,Xt=ot===void 0?!1:ot,Pt=et.watch,$t=et.insertTemp,Zt=et.mode,bt=Zt===void 0?"markdown":Zt,ft=et.id,Nt=ft===void 0?"markdown-editor-id":ft,jt=et.showResizeBar,bn=jt===void 0?!1:jt,Te=et.noStorage,ve=Te===void 0?!1:Te,Q=et.showNullButton,$=Q===void 0?!1:Q,re=et.hidetoolBar,de=re===void 0?!1:re,Ue=et.fullScreen,it=Ue===void 0?!1:Ue,Mt=et.onBlur,Ln=et.onCMBeforeChange,kn=et.onFullScreen,St=et.className,an=St===void 0?"":St,Pn=et.disablePaste,dn=Pn===void 0?!1:Pn,jn=et.placeholder,Bn=jn===void 0?"":jn,ne=et.values,B=ne===void 0?"":ne,H=Object(a.useState)(null),ae=Object(s.a)(H,2),ue=ae[0],oe=ae[1],ht=Object(a.useState)(xn),vn=Object(s.a)(ht,2),Tn=vn[0],cr=vn[1],Vt=Object(a.useState)(Pt),Et=Object(s.a)(Vt,2),Jt=Et[0],Fn=Et[1],Vn=Object(a.useState)(it),Kn=Object(s.a)(Vn,2),ir=Kn[0],jr=Kn[1],ua=Object(a.useState)(""),Yr=Object(s.a)(ua,2),Tr=Yr[0],Jn=Yr[1],fr=Object(a.useState)(0),Sn=Object(s.a)(fr,2),On=Sn[0],or=Sn[1],Dn=Object(a.useState)(Gt),pr=Object(s.a)(Dn,2),Gn=pr[0],se=pr[1],tt=Object(a.useState)(!1),rt=Object(s.a)(tt,2),ut=rt[0],Kt=rt[1],Ct=Object(a.useRef)(Object(Ve.a)()),Yt=Object(a.useRef)(!1),nn=Object(a.useRef)(),_n=Object(a.useRef)(),cn=Object(a.useRef)(),ur=Object(a.useRef)(),Mn=Object(a.useRef)(),fn=function(){var Cr=Object(g.a)(p.a.mark(function kr(){var Zr,Qr;return p.a.wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:return Ta.next=2,Object(Pe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ct.current}});case 2:Qr=Ta.sent,Qr!=null&&(Zr=Qr.attachments)!==null&&Zr!==void 0&&Zr.length&&(console.log("cm:",ue,_n),Qr.attachments.map(function(ga){ga.content_type.indexOf("image")>-1?ue.replaceSelection("![,](/api/attachments/".concat(ga.id,"?type=").concat(ga.content_type,")")):ga.content_type.indexOf("video")>-1?ue.replaceSelection('')):ga.content_type.indexOf("pdf")>-1?ue.replaceSelection('
        ').concat(ga.name,"")):ue.replaceSelection("[".concat(ga.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(ga.id,"?type=").concat(ga.content_type,")"))}));case 4:case"end":return Ta.stop()}},kr)}));return function(){return Cr.apply(this,arguments)}}();Object(a.useEffect)(function(){cr(B),ue==null||ue.setValue(B)},[B]),Object(a.useEffect)(function(){kn==null||kn(ir)},[ir]),Object(a.useEffect)(function(){if(_n.current){var Cr=b.a.fromTextArea(_n.current,{mode:bt,lineNumbers:!Be,lineWrapping:!0,value:xn,autoCloseTags:!0,autoCloseBrackets:!0});Xt&&Cr.focus();function kr(Zr,Qr){if(dn){Qr.preventDefault();return}var Aa=Qr.clipboardData;if(Aa){var Ta=Aa.types.toString(),ga=Aa.items;if(Ta==="Files"||Aa.types.indexOf("Files")>-1){if(Qr.preventDefault(),bt=="stex")return;try{var Fa,Va=ga[1];((Fa=ga[0])===null||Fa===void 0?void 0:Fa.kind)==="file"&&(Va=ga[0]);var tr=Va.getAsFile(),In=tr.name.split(".").pop();Ee(tr,function(En){if(En.id){var Or,yr,zr;(tr==null||((Or=tr.type)===null||Or===void 0)?void 0:Or.indexOf("image"))>-1?Cr.replaceSelection("![,](/api/attachments/".concat(En.id,"?type=").concat(En.content_type,")")):(tr==null||((yr=tr.type)===null||yr===void 0)?void 0:yr.indexOf("video"))>-1?Cr.replaceSelection('')):(tr==null||((zr=tr.type)===null||zr===void 0)?void 0:zr.indexOf("pdf"))>-1?Cr.replaceSelection('').concat(tr.name,"")):Ae.includes(In)?Cr.replaceSelection('').concat(tr.name,"")):Cr.replaceSelection("[".concat(tr.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(En.id,"?type=").concat(En.content_type,")"))}else(En==null?void 0:En.status)===401&&(document.location.href="/user/login")})}catch(En){S.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Cr.on("paste",kr),Cr.on("dragleave",function(Zr,Qr){cn.current.classList.remove("mouse-hover-md")}),Cr.on("dragover",function(Zr,Qr){cn.current.classList.add("mouse-hover-md")}),Cr.on("drop",function(Zr,Qr){cn.current.classList.add("mouse-hover-md");var Aa;if(Aa=Qr.dataTransfer.files,Aa.length>0){Qr.preventDefault(),Qr.stopPropagation();for(var Ta=function(Va){var tr=Aa[Va],In=tr.name.split(".").pop();Ee(tr,function(En){if(En.id){var Or,yr,zr;(tr==null||((Or=tr.type)===null||Or===void 0)?void 0:Or.indexOf("image"))>-1?Cr.replaceSelection("![,](/api/attachments/".concat(En.id,"?type=").concat(En.content_type,")")):(tr==null||((yr=tr.type)===null||yr===void 0)?void 0:yr.indexOf("video"))>-1?Cr.replaceSelection('')):(tr==null||((zr=tr.type)===null||zr===void 0)?void 0:zr.indexOf("pdf"))>-1?Cr.replaceSelection('').concat(tr.name,"")):Ae.includes(In)?Cr.replaceSelection('').concat(tr.name,"")):Cr.replaceSelection("[".concat(tr.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(En.id,"?type=").concat(En.content_type,")"))}else(En==null?void 0:En.status)===401&&(document.location.href="/user/login")})},ga=0;ga0||ga.target.offsetWidth>0)&&(Hn(),ue.setSize("100%","100%"),ue.refresh())}}catch(Fa){Aa.e(Fa)}finally{Aa.f()}});return Zr.observe(_n.current.parentElement),Zr}if(ue){var kr=Cr();return function(){kr.unobserve(_n.current.parentElement)}}},[ue,Hn]),Object(a.useEffect)(function(){if(ue){for(var Cr=[],kr=function(){var ga=Qr[Zr];Aa=Object(s.a)(ga,2);var Fa=Aa[0],Va=Aa[1],tr=Object(d.a)({},Fa,function(){Xn(Va)});Cr.push(tr),ue.addKeyMap(tr)},Zr=0,Qr=Object.entries(ye);Zr0){var Cr=new Date().getTime(),kr=window.sessionStorage.getItem(Nt);Cr>=On+Tt&&(!kr||kr!==Tn)&&(window.sessionStorage.setItem(Nt,Tn),Kt(!0))}},Tt),Object(a.useEffect)(function(){Fn(Pt)},[ue,Pt]),Object(a.useEffect)(function(){ue&&(Xt&&ue.focus())},[ue,Xt]),Object(a.useEffect)(function(){if(Jt&&ue){var Cr=ue.getScrollerElement();function kr(Zr){var Qr=Zr.target;if(Mn.current){var Aa=Qr.scrollTop/Qr.scrollHeight;Mn.current.scrollTop=Mn.current.scrollHeight*Aa}}return Cr.addEventListener("scroll",kr),function(){Cr.removeEventListener("scroll",kr)}}},[ue,Jt]),Object(a.useEffect)(function(){if(ue&&Ln){function Cr(kr,Zr){Ln(kr,Zr)}return ue.on("beforeChange",Cr),function(){ue.off("beforeChange",Cr)}}},[ue,Ln]),Object(a.useEffect)(function(){if(ue&&Mt){function Cr(){Mt(ue.getValue())}return ue.on("blur",Cr),function(){ue.off("blur",Cr)}}},[ue,Mt]),Object(a.useEffect)(function(){if(ue){function Cr(kr){var Zr=kr.getValue();cr(Zr),or(new Date().getTime()),kr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Dt&&Dt(Zr)}return ue.on("change",Cr),function(){ue.off("change",Cr)}}},[ue,Dt]),Object(a.useEffect)(function(){ue&&(xn==null?(ue.setValue(""),cr("")):xn!==ue.getValue()&&(ue.setValue(xn),cr(xn),ue.setCursor(ue.lineCount(),0)))},[ue,xn]);var Xn=Object(a.useCallback)(function(Cr){var kr=ue.getCursor(),Zr=ue.getSelection(),Qr=Zr.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Je(et){return/^\d+$/.test(et)?"".concat(et,"px"):et}var Xe=navigator.platform.toUpperCase().indexOf("MAC")>=0,Oe=Xe?"Cmd":"Ctrl",Ae=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ye=(mt={},Object(d.a)(mt,Oe+"-B","bold"),Object(d.a)(mt,Oe+"-I","italic"),mt),Se=(lt={},Object(d.a)(lt,at,"\u6DFB\u52A0\u94FE\u63A5"),Object(d.a)(lt,Rt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(d.a)(lt,At,"\u6DFB\u52A0\u6587\u4EF6"),Object(d.a)(lt,tn,"\u6DFB\u52A0\u8868\u683C"),lt),dt=ie.a=function(et){var xt=et.defaultValue,xn=xt===void 0?"":xt,Dt=et.onChange,_t=et.width,mn=_t===void 0?"100%":_t,pe=et.height,Gt=pe===void 0?400:pe,Lt=et.miniToolbar,Be=Lt===void 0?!1:Lt,ot=et.isFocus,Xt=ot===void 0?!1:ot,Pt=et.watch,$t=et.insertTemp,Zt=et.mode,bt=Zt===void 0?"markdown":Zt,ft=et.id,Nt=ft===void 0?"markdown-editor-id":ft,jt=et.showResizeBar,bn=jt===void 0?!1:jt,Te=et.noStorage,ve=Te===void 0?!1:Te,Q=et.showNullButton,$=Q===void 0?!1:Q,re=et.hidetoolBar,de=re===void 0?!1:re,Ue=et.fullScreen,it=Ue===void 0?!1:Ue,Mt=et.onBlur,Ln=et.onCMBeforeChange,kn=et.onFullScreen,St=et.className,an=St===void 0?"":St,Pn=et.disablePaste,dn=Pn===void 0?!1:Pn,jn=et.placeholder,Bn=jn===void 0?"":jn,ne=et.values,B=ne===void 0?"":ne,H=Object(a.useState)(null),ae=Object(s.a)(H,2),ue=ae[0],oe=ae[1],ht=Object(a.useState)(xn),vn=Object(s.a)(ht,2),Tn=vn[0],fr=vn[1],Vt=Object(a.useState)(Pt),Et=Object(s.a)(Vt,2),Jt=Et[0],Fn=Et[1],Vn=Object(a.useState)(it),Kn=Object(s.a)(Vn,2),ir=Kn[0],jr=Kn[1],ua=Object(a.useState)(""),Yr=Object(s.a)(ua,2),Tr=Yr[0],Jn=Yr[1],hr=Object(a.useState)(0),Sn=Object(s.a)(hr,2),On=Sn[0],or=Sn[1],Dn=Object(a.useState)(Gt),pr=Object(s.a)(Dn,2),Gn=pr[0],se=pr[1],tt=Object(a.useState)(!1),rt=Object(s.a)(tt,2),ut=rt[0],Kt=rt[1],Ct=Object(a.useRef)(Object(Ve.a)()),Yt=Object(a.useRef)(!1),nn=Object(a.useRef)(),_n=Object(a.useRef)(),cn=Object(a.useRef)(),ur=Object(a.useRef)(),Mn=Object(a.useRef)(),fn=function(){var Cr=Object(g.a)(p.a.mark(function kr(){var Zr,Qr;return p.a.wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:return Ta.next=2,Object(Pe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ct.current}});case 2:Qr=Ta.sent,Qr!=null&&(Zr=Qr.attachments)!==null&&Zr!==void 0&&Zr.length&&(console.log("cm:",ue,_n),Qr.attachments.map(function(ba){ba.content_type.indexOf("image")>-1?ue.replaceSelection("![,](/api/attachments/".concat(ba.id,"?type=").concat(ba.content_type,")")):ba.content_type.indexOf("video")>-1?ue.replaceSelection('')):ba.content_type.indexOf("pdf")>-1?ue.replaceSelection('').concat(ba.name,"")):ue.replaceSelection("[".concat(ba.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(ba.id,"?type=").concat(ba.content_type,")"))}));case 4:case"end":return Ta.stop()}},kr)}));return function(){return Cr.apply(this,arguments)}}();Object(a.useEffect)(function(){fr(B),ue==null||ue.setValue(B)},[B]),Object(a.useEffect)(function(){kn==null||kn(ir)},[ir]),Object(a.useEffect)(function(){if(_n.current){var Cr=y.a.fromTextArea(_n.current,{mode:bt,lineNumbers:!Be,lineWrapping:!0,value:xn,autoCloseTags:!0,autoCloseBrackets:!0});Xt&&Cr.focus();function kr(Zr,Qr){if(dn){Qr.preventDefault();return}var Aa=Qr.clipboardData;if(Aa){var Ta=Aa.types.toString(),ba=Aa.items;if(Ta==="Files"||Aa.types.indexOf("Files")>-1){if(Qr.preventDefault(),bt=="stex")return;try{var za,Xa=ba[1];((za=ba[0])===null||za===void 0?void 0:za.kind)==="file"&&(Xa=ba[0]);var tr=Xa.getAsFile(),In=tr.name.split(".").pop();Ee(tr,function(En){if(En.id){var Or,yr,zr;(tr==null||((Or=tr.type)===null||Or===void 0)?void 0:Or.indexOf("image"))>-1?Cr.replaceSelection("![,](/api/attachments/".concat(En.id,"?type=").concat(En.content_type,")")):(tr==null||((yr=tr.type)===null||yr===void 0)?void 0:yr.indexOf("video"))>-1?Cr.replaceSelection('')):(tr==null||((zr=tr.type)===null||zr===void 0)?void 0:zr.indexOf("pdf"))>-1?Cr.replaceSelection('').concat(tr.name,"")):Ae.includes(In)?Cr.replaceSelection('').concat(tr.name,"")):Cr.replaceSelection("[".concat(tr.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(En.id,"?type=").concat(En.content_type,")"))}else(En==null?void 0:En.status)===401&&(document.location.href="/user/login")})}catch(En){S.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Cr.on("paste",kr),Cr.on("dragleave",function(Zr,Qr){cn.current.classList.remove("mouse-hover-md")}),Cr.on("dragover",function(Zr,Qr){cn.current.classList.add("mouse-hover-md")}),Cr.on("drop",function(Zr,Qr){cn.current.classList.add("mouse-hover-md");var Aa;if(Aa=Qr.dataTransfer.files,Aa.length>0){Qr.preventDefault(),Qr.stopPropagation();for(var Ta=function(Xa){var tr=Aa[Xa],In=tr.name.split(".").pop();Ee(tr,function(En){if(En.id){var Or,yr,zr;(tr==null||((Or=tr.type)===null||Or===void 0)?void 0:Or.indexOf("image"))>-1?Cr.replaceSelection("![,](/api/attachments/".concat(En.id,"?type=").concat(En.content_type,")")):(tr==null||((yr=tr.type)===null||yr===void 0)?void 0:yr.indexOf("video"))>-1?Cr.replaceSelection('')):(tr==null||((zr=tr.type)===null||zr===void 0)?void 0:zr.indexOf("pdf"))>-1?Cr.replaceSelection('').concat(tr.name,"")):Ae.includes(In)?Cr.replaceSelection('').concat(tr.name,"")):Cr.replaceSelection("[".concat(tr.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(En.id,"?type=").concat(En.content_type,")"))}else(En==null?void 0:En.status)===401&&(document.location.href="/user/login")})},ba=0;ba0||ba.target.offsetWidth>0)&&(Hn(),ue.setSize("100%","100%"),ue.refresh())}}catch(za){Aa.e(za)}finally{Aa.f()}});return Zr.observe(_n.current.parentElement),Zr}if(ue){var kr=Cr();return function(){kr.unobserve(_n.current.parentElement)}}},[ue,Hn]),Object(a.useEffect)(function(){if(ue){for(var Cr=[],kr=function(){var ba=Qr[Zr];Aa=Object(s.a)(ba,2);var za=Aa[0],Xa=Aa[1],tr=Object(d.a)({},za,function(){Xn(Xa)});Cr.push(tr),ue.addKeyMap(tr)},Zr=0,Qr=Object.entries(ye);Zr0){var Cr=new Date().getTime(),kr=window.sessionStorage.getItem(Nt);Cr>=On+Tt&&(!kr||kr!==Tn)&&(window.sessionStorage.setItem(Nt,Tn),Kt(!0))}},Tt),Object(a.useEffect)(function(){Fn(Pt)},[ue,Pt]),Object(a.useEffect)(function(){ue&&(Xt&&ue.focus())},[ue,Xt]),Object(a.useEffect)(function(){if(Jt&&ue){var Cr=ue.getScrollerElement();function kr(Zr){var Qr=Zr.target;if(Mn.current){var Aa=Qr.scrollTop/Qr.scrollHeight;Mn.current.scrollTop=Mn.current.scrollHeight*Aa}}return Cr.addEventListener("scroll",kr),function(){Cr.removeEventListener("scroll",kr)}}},[ue,Jt]),Object(a.useEffect)(function(){if(ue&&Ln){function Cr(kr,Zr){Ln(kr,Zr)}return ue.on("beforeChange",Cr),function(){ue.off("beforeChange",Cr)}}},[ue,Ln]),Object(a.useEffect)(function(){if(ue&&Mt){function Cr(){Mt(ue.getValue())}return ue.on("blur",Cr),function(){ue.off("blur",Cr)}}},[ue,Mt]),Object(a.useEffect)(function(){if(ue){function Cr(kr){var Zr=kr.getValue();fr(Zr),or(new Date().getTime()),kr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Dt&&Dt(Zr)}return ue.on("change",Cr),function(){ue.off("change",Cr)}}},[ue,Dt]),Object(a.useEffect)(function(){ue&&(xn==null?(ue.setValue(""),fr("")):xn!==ue.getValue()&&(ue.setValue(xn),fr(xn),ue.setCursor(ue.lineCount(),0)))},[ue,xn]);var Xn=Object(a.useCallback)(function(Cr){var kr=ue.getCursor(),Zr=ue.getSelection(),Qr=Zr.split(` `);switch(Cr){case"bold":return ue.replaceSelection("**"+Zr+"**"),Zr===""&&ue.setCursor(kr.line,kr.ch+2),ue.focus();case"italic":return ue.replaceSelection("*"+Zr+"*"),Zr===""&&ue.setCursor(kr.line,kr.ch+1),ue.focus();case"code":return ue.replaceSelection("`"+Zr+"`"),Zr===""&&ue.setCursor(kr.line,kr.ch+1),ue.focus();case"inline-latex":return ue.replaceSelection("`$$"+Zr+"$$`"),Zr===""&&ue.setCursor(kr.line,kr.ch+3),ue.focus();case"latex":return ue.replaceSelection("```latex\n"+Zr+"\n```"),ue.setCursor(kr.line+1,Zr.length+1),ue.focus();case"line-break":return ue.replaceSelection(`
        `),ue.focus();case"list-ul":return Zr===""?ue.replaceSelection("- "+Zr):ue.replaceSelection(Qr.map(function(Aa){return Aa===""?"":"- ".concat(Aa)}).join(` `)),ue.focus();case"list-ol":return Zr===""?ue.replaceSelection("1. "+Zr):ue.replaceSelection(Qr.map(function(Aa,Ta){return Aa===""?"":"".concat(Ta+1,". ").concat(Aa)}).join(` `)),ue.focus();case"add-null-ch":return Zr===""&&ue.setCursor(kr.line,kr.ch+1),ue.replaceSelection(wt),ue.focus();case"inster-template-1":return Zr===""&&ue.setCursor(kr.line,kr.ch),ue.replaceSelection(Qe),ue.focus();case"eraser":return ue.setValue(""),ue.focus();case"trigger-watch":return Fn(!Jt),ue.focus();case"trigger-full-screen":return jr(!ir),ue.focus();case at:Jn(at);return;case Rt:Jn(Rt);return;case At:Jn(At);return;case tn:Jn(tn);return;default:throw new Error}},[ue,Jt,ir]),$n=Object(a.useCallback)(function(Cr){Jn("");switch(Tr){case at:var kr=Cr.title,Zr=Cr.link;return ue.replaceSelection("[".concat(kr,"](").concat(Zr,")")),ue.focus();case Rt:var Qr=Cr.language,Aa=Cr.content;return ue.replaceSelection(["```"+Qr,Aa,"```"].join(` -`)),ue.focus();case At:var Ta=Cr.src,ga=Cr.alt,Fa=Cr.name;return Ta.indexOf("type=image")>-1?ue.replaceSelection("![ ".concat(ga||""," ]( ").concat(Ta,' "').concat(ga||"",'" )')):Ta.indexOf("type=application/pdf")>-1?ue.replaceSelection('').concat(Fa,"")):ue.replaceSelection('').concat(Fa,"")),ue.focus();case tn:for(var Va=Cr.row,tr=Cr.col,In=Cr.align,En=` -`,Or=0;Or-1?ue.replaceSelection("![ ".concat(ba||""," ]( ").concat(Ta,' "').concat(ba||"",'" )')):Ta.indexOf("type=application/pdf")>-1?ue.replaceSelection('').concat(za,"")):ue.replaceSelection('').concat(za,"")),ue.focus();case tn:for(var Xa=Cr.row,tr=Cr.col,In=Cr.align,En=` +`,Or=0;Or300&&(Fa=300);var Va=Gt+Fa+"px";se(Va)}}return Cr.addEventListener("mousedown",Qr),document.addEventListener("mousemove",Ta),document.addEventListener("mouseup",Aa),function(){Cr.removeEventListener("mousedown",Qr),document.removeEventListener("mousemove",Ta),document.removeEventListener("mouseup",Aa)}}},[ue,ur]),Object(a.useEffect)(function(){se(Gt)},[Gt]);var vr=Je(mn),lr=Je(Gn),wr={width:vr,height:lr},Dr=Object(a.useMemo)(function(){if(On){var Cr=new Date(On),kr=Cr.getHours(),Zr=Cr.getMinutes(),Qr=Cr.getSeconds();return kr=kr<10?"0"+kr:kr,Zr=Zr<10?"0"+Zr:Zr,Qr=Qr<10?"0"+Qr:Qr,"".concat(kr,":").concat(Zr,":").concat(Qr)}return 0},[On]);function sr(){window.sessionStorage.removeItem(Nt),Kt(!1),or(0)}function ia(){Kt(!1),or(0),ue.setValue(window.sessionStorage.getItem(Nt))}function Ea(Cr,kr){var Zr=ue.getValue();Zr=Zr.replace(Cr,kr),cr(Zr),ue==null||ue.setValue(Zr)}return f.a.createElement(a.Fragment,null,f.a.createElement("div",{className:"markdown-editor-wrapper",ref:cn},f.a.createElement("div",{className:"markdown-editor-container ".concat(an," ").concat(Jt?"on-preview":""," ").concat(Be?"mini":""," ").concat(ir?"full-screen":""),style:wr},f.a.createElement(R,{insertTemp:$t,watch:Jt,fullScreen:ir,showNullButton:$,onActionCallback:Xn,hidetoolBar:de,uuid:Ct.current,setOpenPhones:function(){Yt.current=!0}}),f.a.createElement("div",{className:"markdown-editor-body"},f.a.createElement("div",{className:"codemirror-container"},f.a.createElement("textarea",{ref:_n,placeholder:Bn})),Jt?f.a.createElement("div",{ref:Mn,className:"preview-container"},bt==="stex"&&f.a.createElement(C,{value:Tn}),bt!=="stex"&&f.a.createElement(t.a,{edit:!0,value:Tn,replaces:Ea})):null))),bn?f.a.createElement("a",{ref:ur,className:"editor-resize"}):null,f.a.createElement(k.a,null,Se[Tr]?f.a.createElement(j.a,{centered:!0,title:Se[Tr],visible:!0,onCancel:_r,footer:null},Yn):null))}},P47w:function(Ye,ie,_){var Y=_("hydK"),j=Y.createElement,L=_("IMiH"),U=_("mFDi"),S=_("Fofx"),g=_("6GrX"),s=_("pzxd"),d=_("dqUG"),w=L.CMD,p=Array.prototype.join,a="none",f=Math.round,x=Math.sin,b=Math.cos,m=Math.PI,O=Math.PI*2,i=180/m,r=1e-4;function u(X){return f(X*1e4)/1e4}function h(X){return X-r}function y(X,te){var ee=te?X.textFill:X.fill;return ee!=null&&ee!==a}function E(X,te){var ee=te?X.textStroke:X.stroke;return ee!=null&&ee!==a}function t(X,te){te&&C(X,"transform","matrix("+p.call(te,",")+")")}function C(X,te,ee){(!ee||ee.type!=="linear"&&ee.type!=="radial")&&X.setAttribute(te,ee)}function A(X,te,ee){X.setAttributeNS("http://www.w3.org/1999/xlink",te,ee)}function v(X,te,ee,be){if(y(te,ee)){var ge=ee?te.textFill:te.fill;ge=ge==="transparent"?a:ge,C(X,"fill",ge),C(X,"fill-opacity",te.fillOpacity!=null?te.fillOpacity*te.opacity:te.opacity)}else C(X,"fill",a);if(E(te,ee)){var je=ee?te.textStroke:te.stroke;je=je==="transparent"?a:je,C(X,"stroke",je);var He=ee?te.textStrokeWidth:te.lineWidth,nt=!ee&&te.strokeNoScale?be.getLineScale():1;C(X,"stroke-width",He/nt),C(X,"paint-order",ee?"stroke":"fill"),C(X,"stroke-opacity",te.strokeOpacity!=null?te.strokeOpacity:te.opacity);var Ge=te.lineDash;Ge?(C(X,"stroke-dasharray",te.lineDash.join(",")),C(X,"stroke-dashoffset",f(te.lineDashOffset||0))):C(X,"stroke-dasharray",""),te.lineCap&&C(X,"stroke-linecap",te.lineCap),te.lineJoin&&C(X,"stroke-linejoin",te.lineJoin),te.miterLimit&&C(X,"stroke-miterlimit",te.miterLimit)}else C(X,"stroke",a)}function o(X){for(var te=[],ee=X.data,be=X.len(),ge=0;ge=O:-Ne>=O),Fe=Ne>0?Ne%O:Ne%O+O,Pe=!1;Le?Pe=!0:h(ze)?Pe=!1:Pe=Fe>=m===!!xe;var Ve=u(Ge+ce*b(fe)),at=u(he+Ee*x(fe));Le&&(xe?Ne=O-1e-4:Ne=-O+1e-4,Pe=!0,ge===9&&te.push("M",Ve,at));var At=u(Ge+ce*b(fe+Ne)),Rt=u(he+Ee*x(fe+Ne));te.push("A",u(ce),u(Ee),f(Ce*i),+Pe,+xe,At,Rt);break;case w.Z:He="Z";break;case w.R:var At=u(ee[ge++]),Rt=u(ee[ge++]),tn=u(ee[ge++]),Qt=u(ee[ge++]);te.push("M",At,Rt,"L",At+tn,Rt,"L",At+tn,Rt+Qt,"L",At,Rt+Qt,"L",At,Rt);break}He&&te.push(He);for(var Cn=0;CnUn){for(;Qt0)m.left||(m.left=new g,m.left.segment=b.value()),m=m.left;else if(O<0)m.right||(m.right=new g,m.right.segment=b.value()),m=m.right;else if(b.hasNext())b.next(),m.mid||(m.mid=new g,m.mid.segment=b.value()),m=m.mid;else break}var i=m.value;return m.value=x,m.key=f,i},a.prototype.get=function(f){for(var x=this._iter.reset(f),b=this._root;b;){var m=x.cmp(b.segment);if(m>0)b=b.left;else if(m<0)b=b.right;else if(x.hasNext())x.next(),b=b.mid;else break}return b?b.value:void 0},a.prototype.findSubstr=function(f){for(var x=this._iter.reset(f),b=this._root,m=void 0;b;){var O=x.cmp(b.segment);if(O>0)b=b.left;else if(O<0)b=b.right;else if(x.hasNext())x.next(),m=b.value||m,b=b.mid;else break}return b&&b.value||m},a.prototype.forEach=function(f){this._forEach(this._root,f)},a.prototype._forEach=function(f,x){f&&(this._forEach(f.left,x),f.value&&x(f.value,f.key),this._forEach(f.mid,x),this._forEach(f.right,x))},a}(),d=function(){function a(){this.map=new Map,this.ignoreCase=!1}return a.prototype.set=function(f,x){this.map.set(this.toKey(f),x)},a.prototype.get=function(f){return this.map.get(this.toKey(f))},a.prototype.toKey=function(f){var x=f.toString();return this.ignoreCase&&(x=x.toLowerCase()),x},a}(),w=function(){function a(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return a.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(a.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),a.prototype.get=function(f,x){x===void 0&&(x=0);var b=this._map.get(f);return b?(x!==0&&this.touch(b,x),b.value):void 0},a.prototype.set=function(f,x,b){b===void 0&&(b=0);var m=this._map.get(f);if(m)m.value=x,b!==0&&this.touch(m,b);else{m={key:f,value:x,next:void 0,previous:void 0};switch(b){case 0:this.addItemLast(m);break;case 1:this.addItemFirst(m);break;case 2:this.addItemLast(m);break;default:this.addItemLast(m);break}this._map.set(f,m),this._size++}},a.prototype.delete=function(f){return!!this.remove(f)},a.prototype.remove=function(f){var x=this._map.get(f);return x?(this._map.delete(f),this.removeItem(x),this._size--,x.value):void 0},a.prototype.forEach=function(f,x){for(var b=this._head;b;)x?f.bind(x)(b.value,b.key,this):f(b.value,b.key,this),b=b.next},a.prototype.trimOld=function(f){if(f>=this.size)return;if(f===0){this.clear();return}for(var x=this._head,b=this.size;x&&b>f;)this._map.delete(x.key),x=x.next,b--;this._head=x,this._size=b,x&&(x.previous=void 0)},a.prototype.addItemFirst=function(f){if(!this._head&&!this._tail)this._tail=f;else if(this._head)f.next=this._head,this._head.previous=f;else throw new Error("Invalid list");this._head=f},a.prototype.addItemLast=function(f){if(!this._head&&!this._tail)this._head=f;else if(this._tail)f.previous=this._tail,this._tail.next=f;else throw new Error("Invalid list");this._tail=f},a.prototype.removeItem=function(f){if(f===this._head&&f===this._tail)this._head=void 0,this._tail=void 0;else if(f===this._head){if(!f.next)throw new Error("Invalid list");f.next.previous=void 0,this._head=f.next}else if(f===this._tail){if(!f.previous)throw new Error("Invalid list");f.previous.next=void 0,this._tail=f.previous}else{var x=f.next,b=f.previous;if(!x||!b)throw new Error("Invalid list");x.previous=b,b.next=x}f.next=void 0,f.previous=void 0},a.prototype.touch=function(f,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(x!==1&&x!==2)return;if(x===1){if(f===this._head)return;var b=f.next,m=f.previous;f===this._tail?(m.next=void 0,this._tail=m):(b.previous=m,m.next=b),f.previous=void 0,f.next=this._head,this._head.previous=f,this._head=f}else if(x===2){if(f===this._tail)return;var b=f.next,m=f.previous;f===this._head?(b.previous=void 0,this._head=b):(b.previous=m,m.next=b),f.next=void 0,f.previous=this._tail,this._tail.next=f,this._tail=f}},a.prototype.toJSON=function(){var f=[];return this.forEach(function(x,b){f.push([b,x])}),f},a}(),p=function(a){Y(f,a);function f(x,b){b===void 0&&(b=1);var m=a.call(this)||this;return m._limit=x,m._ratio=Math.min(Math.max(0,b),1),m}return f.prototype.get=function(x){return a.prototype.get.call(this,x,2)},f.prototype.peek=function(x){return a.prototype.get.call(this,x,0)},f.prototype.set=function(x,b){a.prototype.set.call(this,x,b,2),this.checkTrim()},f.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},f}(w)},"QO+J":function(Ye,ie,_){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.createSensor=void 0;var Y=L(_("NohK")),j=_("24YM");function L(S){return S&&S.__esModule?S:{default:S}}var U=function(g){var s=void 0,d=[],w=function(){getComputedStyle(g).position==="static"&&(g.style.position="relative");var m=document.createElement("object");return m.onload=function(){m.contentDocument.defaultView.addEventListener("resize",p),p()},m.style.display="block",m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.height="100%",m.style.width="100%",m.style.overflow="hidden",m.style.pointerEvents="none",m.style.zIndex="-1",m.style.opacity="0",m.setAttribute("class",j.SensorClassName),m.setAttribute("tabindex",j.SensorTabIndex),m.type="text/html",g.appendChild(m),m.data="about:blank",m},p=(0,Y.default)(function(){d.forEach(function(b){b(g)})}),a=function(m){s||(s=w()),d.indexOf(m)===-1&&d.push(m)},f=function(){s&&s.parentNode&&(s.contentDocument&&s.contentDocument.defaultView.removeEventListener("resize",p),s.parentNode.removeChild(s),s=void 0,d=[])},x=function(m){var O=d.indexOf(m);O!==-1&&d.splice(O,1),d.length===0&&s&&f()};return{element:g,bind:a,destroy:f,unbind:x}};ie.createSensor=U},Qe9p:function(Ye,ie,_){var Y=_("1RvN"),j={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function L(o){return o=Math.round(o),o<0?0:o>255?255:o}function U(o){return o=Math.round(o),o<0?0:o>360?360:o}function S(o){return o<0?0:o>1?1:o}function g(o){return o.length&&o.charAt(o.length-1)==="%"?L(parseFloat(o)/100*255):L(parseInt(o,10))}function s(o){return o.length&&o.charAt(o.length-1)==="%"?S(parseFloat(o)/100):S(parseFloat(o))}function d(o,l,c){return c<0?c+=1:c>1&&(c-=1),c*6<1?o+(l-o)*c*6:c*2<1?l:c*3<2?o+(l-o)*(2/3-c)*6:o}function w(o,l,c){return o+(l-o)*c}function p(o,l,c,M,P){return o[0]=l,o[1]=c,o[2]=M,o[3]=P,o}function a(o,l){return o[0]=l[0],o[1]=l[1],o[2]=l[2],o[3]=l[3],o}var f=new Y(20),x=null;function b(o,l){x&&a(x,l),x=f.put(o,x||l.slice())}function m(o,l){if(!o)return;l=l||[];var c=f.get(o);if(c)return a(l,c);o=o+"";var M=o.replace(/ /g,"").toLowerCase();if(M in j)return a(l,j[M]),b(o,l),l;if(M.charAt(0)==="#"){if(M.length===4){var P=parseInt(M.substr(1),16);if(!(P>=0&&P<=4095)){p(l,0,0,0,1);return}return p(l,(P&3840)>>4|(P&3840)>>8,P&240|(P&240)>>4,P&15|(P&15)<<4,1),b(o,l),l}else if(M.length===7){var P=parseInt(M.substr(1),16);if(!(P>=0&&P<=16777215)){p(l,0,0,0,1);return}return p(l,(P&16711680)>>16,(P&65280)>>8,P&255,1),b(o,l),l}return}var R=M.indexOf("("),k=M.indexOf(")");if(R!==-1&&k+1===M.length){var I=M.substr(0,R),F=M.substr(R+1,k-(R+1)).split(","),V=1;switch(I){case"rgba":if(F.length!==4){p(l,0,0,0,1);return}V=s(F.pop());case"rgb":if(F.length!==3){p(l,0,0,0,1);return}return p(l,g(F[0]),g(F[1]),g(F[2]),V),b(o,l),l;case"hsla":if(F.length!==4){p(l,0,0,0,1);return}return F[3]=s(F[3]),O(F,l),b(o,l),l;case"hsl":if(F.length!==3){p(l,0,0,0,1);return}return O(F,l),b(o,l),l;default:return}}p(l,0,0,0,1);return}function O(o,l){var c=(parseFloat(o[0])%360+360)%360/360,M=s(o[1]),P=s(o[2]),R=P<=.5?P*(M+1):P+M-P*M,k=P*2-R;return l=l||[],p(l,L(d(k,R,c+1/3)*255),L(d(k,R,c)*255),L(d(k,R,c-1/3)*255),1),o.length===4&&(l[3]=o[3]),l}function i(o){if(!o)return;var l=o[0]/255,c=o[1]/255,M=o[2]/255,P=Math.min(l,c,M),R=Math.max(l,c,M),k=R-P,I=(R+P)/2,F,V;if(k===0)F=0,V=0;else{I<.5?V=k/(R+P):V=k/(2-R-P);var W=((R-l)/6+k/2)/k,G=((R-c)/6+k/2)/k,J=((R-M)/6+k/2)/k;l===R?F=J-G:c===R?F=1/3+W-J:M===R&&(F=2/3+G-W),F<0&&(F+=1),F>1&&(F-=1)}var X=[F*360,V,I];return o[3]!=null&&X.push(o[3]),X}function r(o,l){var c=m(o);if(c){for(var M=0;M<3;M++)l<0?c[M]=c[M]*(1-l)|0:c[M]=(255-c[M])*l+c[M]|0,c[M]>255?c[M]=255:o[M]<0&&(c[M]=0);return v(c,c.length===4?"rgba":"rgb")}}function u(o){var l=m(o);if(l)return((1<<24)+(l[0]<<16)+(l[1]<<8)+ +l[2]).toString(16).slice(1)}function h(o,l,c){if(!(l&&l.length)||!(o>=0&&o<=1))return;c=c||[];var M=o*(l.length-1),P=Math.floor(M),R=Math.ceil(M),k=l[P],I=l[R],F=M-P;return c[0]=L(w(k[0],I[0],F)),c[1]=L(w(k[1],I[1],F)),c[2]=L(w(k[2],I[2],F)),c[3]=S(w(k[3],I[3],F)),c}var y=h;function E(o,l,c){if(!(l&&l.length)||!(o>=0&&o<=1))return;var M=o*(l.length-1),P=Math.floor(M),R=Math.ceil(M),k=m(l[P]),I=m(l[R]),F=M-P,V=v([L(w(k[0],I[0],F)),L(w(k[1],I[1],F)),L(w(k[2],I[2],F)),S(w(k[3],I[3],F))],"rgba");return c?{color:V,leftIndex:P,rightIndex:R,value:M}:V}var t=E;function C(o,l,c,M){if(o=m(o),o)return o=i(o),l!=null&&(o[0]=U(l)),c!=null&&(o[1]=s(c)),M!=null&&(o[2]=s(M)),v(O(o),"rgba")}function A(o,l){if(o=m(o),o&&l!=null)return o[3]=S(l),v(o,"rgba")}function v(o,l){if(!o||!o.length)return;var c=o[0]+","+o[1]+","+o[2];return(l==="rgba"||l==="hsva"||l==="hsla")&&(c+=","+o[3]),l+"("+c+")"}ie.parse=m,ie.lift=r,ie.toHex=u,ie.fastLerp=h,ie.fastMapToColor=y,ie.lerp=E,ie.mapToColor=t,ie.modifyHSL=C,ie.modifyAlpha=A,ie.stringify=v},QuXc:function(Ye,ie){var _=function(j){this.colorStops=j||[]};_.prototype={constructor:_,addColorStop:function(j,L){this.colorStops.push({offset:j,color:L})}};var Y=_;Ye.exports=Y},RDYZ:function(Ye,ie,_){var Y=_("dMvE");function j(U){this._target=U.target,this._life=U.life||1e3,this._delay=U.delay||0,this._initialized=!1,this.loop=U.loop==null?!1:U.loop,this.gap=U.gap||0,this.easing=U.easing||"Linear",this.onframe=U.onframe,this.ondestroy=U.ondestroy,this.onrestart=U.onrestart,this._pausedTime=0,this._paused=!1}j.prototype={constructor:j,step:function(U,S){if(this._initialized||(this._startTime=U+this._delay,this._initialized=!0),this._paused){this._pausedTime+=S;return}var g=(U-this._startTime-this._pausedTime)/this._life;if(g<0)return;g=Math.min(g,1);var s=this.easing,d=typeof s=="string"?Y[s]:s,w=typeof d=="function"?d(g):g;return this.fire("frame",w),g===1?this.loop?(this.restart(U),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(U){var S=(U-this._startTime-this._pausedTime)%this._life;this._startTime=U-S+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(U,S){U="on"+U,this[U]&&this[U](this._target,S)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var L=j;Ye.exports=L},RMFE:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(Ye,ie,_){var Y=_("y+Vt"),j=Y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(L,U){var S=U.cx,g=U.cy,s=Math.PI*2;L.moveTo(S+U.r,g),L.arc(S,g,U.r,0,s,!1),L.moveTo(S+U.r0,g),L.arc(S,g,U.r0,0,s,!0)}});Ye.exports=j},"RZ/O":function(Ye,ie,_){Ye.exports=_.p+"static/bi.9c9b0364.svg"},RotF:function(Ye,ie,_){Ye.exports=_("LSTS")},"SA+Z":function(Ye,ie,_){var Y=_("wTVA"),j=_("EbDI"),L=_("ZhPi"),U=_("wkBT");function S(g){return Y(g)||j(g)||L(g)||U()}Ye.exports=S,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports},SJMd:function(Ye,ie){/** +`),ue.focus();default:throw new Error}},[ue,Tr]),Yn=Object(a.useMemo)(function(){switch(Tr){case at:return f.a.createElement(te,{callback:$n,onCancel:_r});case Rt:return f.a.createElement(ee.b,{callback:$n,onCancel:_r});case At:return f.a.createElement(he,{callback:$n,onCancel:_r});case tn:return f.a.createElement(Fe,{callback:$n,onCancel:_r});default:return null}},[Tr]);function _r(){Jn("")}Object(a.useEffect)(function(){if(ur.current){var Cr=ur.current,kr=!1,Zr=0;function Qr(ba){kr=!0,Zr=ba.pageY}function Aa(){kr=!1}function Ta(ba){if(kr){var za=ba.pageY-Zr;za<0&&(za=0),za>300&&(za=300);var Xa=Gt+za+"px";se(Xa)}}return Cr.addEventListener("mousedown",Qr),document.addEventListener("mousemove",Ta),document.addEventListener("mouseup",Aa),function(){Cr.removeEventListener("mousedown",Qr),document.removeEventListener("mousemove",Ta),document.removeEventListener("mouseup",Aa)}}},[ue,ur]),Object(a.useEffect)(function(){se(Gt)},[Gt]);var vr=Je(mn),lr=Je(Gn),wr={width:vr,height:lr},Dr=Object(a.useMemo)(function(){if(On){var Cr=new Date(On),kr=Cr.getHours(),Zr=Cr.getMinutes(),Qr=Cr.getSeconds();return kr=kr<10?"0"+kr:kr,Zr=Zr<10?"0"+Zr:Zr,Qr=Qr<10?"0"+Qr:Qr,"".concat(kr,":").concat(Zr,":").concat(Qr)}return 0},[On]);function sr(){window.sessionStorage.removeItem(Nt),Kt(!1),or(0)}function ia(){Kt(!1),or(0),ue.setValue(window.sessionStorage.getItem(Nt))}function Ea(Cr,kr){var Zr=ue.getValue();Zr=Zr.replace(Cr,kr),fr(Zr),ue==null||ue.setValue(Zr)}return f.a.createElement(a.Fragment,null,f.a.createElement("div",{className:"markdown-editor-wrapper",ref:cn},f.a.createElement("div",{className:"markdown-editor-container ".concat(an," ").concat(Jt?"on-preview":""," ").concat(Be?"mini":""," ").concat(ir?"full-screen":""),style:wr},f.a.createElement(R,{insertTemp:$t,watch:Jt,fullScreen:ir,showNullButton:$,onActionCallback:Xn,hidetoolBar:de,uuid:Ct.current,setOpenPhones:function(){Yt.current=!0}}),f.a.createElement("div",{className:"markdown-editor-body"},f.a.createElement("div",{className:"codemirror-container"},f.a.createElement("textarea",{ref:_n,placeholder:Bn})),Jt?f.a.createElement("div",{ref:Mn,className:"preview-container"},bt==="stex"&&f.a.createElement(C,{value:Tn}),bt!=="stex"&&f.a.createElement(t.a,{edit:!0,value:Tn,replaces:Ea})):null))),bn?f.a.createElement("a",{ref:ur,className:"editor-resize"}):null,f.a.createElement(k.a,null,Se[Tr]?f.a.createElement(j.a,{centered:!0,title:Se[Tr],visible:!0,onCancel:_r,footer:null},Yn):null))}},P47w:function(Ye,ie,_){var Y=_("hydK"),j=Y.createElement,L=_("IMiH"),U=_("mFDi"),S=_("Fofx"),g=_("6GrX"),s=_("pzxd"),d=_("dqUG"),w=L.CMD,p=Array.prototype.join,a="none",f=Math.round,x=Math.sin,y=Math.cos,m=Math.PI,O=Math.PI*2,i=180/m,r=1e-4;function u(X){return f(X*1e4)/1e4}function h(X){return X-r}function b(X,te){var ee=te?X.textFill:X.fill;return ee!=null&&ee!==a}function E(X,te){var ee=te?X.textStroke:X.stroke;return ee!=null&&ee!==a}function t(X,te){te&&C(X,"transform","matrix("+p.call(te,",")+")")}function C(X,te,ee){(!ee||ee.type!=="linear"&&ee.type!=="radial")&&X.setAttribute(te,ee)}function A(X,te,ee){X.setAttributeNS("http://www.w3.org/1999/xlink",te,ee)}function v(X,te,ee,be){if(b(te,ee)){var ge=ee?te.textFill:te.fill;ge=ge==="transparent"?a:ge,C(X,"fill",ge),C(X,"fill-opacity",te.fillOpacity!=null?te.fillOpacity*te.opacity:te.opacity)}else C(X,"fill",a);if(E(te,ee)){var je=ee?te.textStroke:te.stroke;je=je==="transparent"?a:je,C(X,"stroke",je);var He=ee?te.textStrokeWidth:te.lineWidth,nt=!ee&&te.strokeNoScale?be.getLineScale():1;C(X,"stroke-width",He/nt),C(X,"paint-order",ee?"stroke":"fill"),C(X,"stroke-opacity",te.strokeOpacity!=null?te.strokeOpacity:te.opacity);var Ge=te.lineDash;Ge?(C(X,"stroke-dasharray",te.lineDash.join(",")),C(X,"stroke-dashoffset",f(te.lineDashOffset||0))):C(X,"stroke-dasharray",""),te.lineCap&&C(X,"stroke-linecap",te.lineCap),te.lineJoin&&C(X,"stroke-linejoin",te.lineJoin),te.miterLimit&&C(X,"stroke-miterlimit",te.miterLimit)}else C(X,"stroke",a)}function o(X){for(var te=[],ee=X.data,be=X.len(),ge=0;ge=O:-Ne>=O),Fe=Ne>0?Ne%O:Ne%O+O,Pe=!1;Le?Pe=!0:h(ze)?Pe=!1:Pe=Fe>=m===!!xe;var Ve=u(Ge+ce*y(fe)),at=u(he+Ee*x(fe));Le&&(xe?Ne=O-1e-4:Ne=-O+1e-4,Pe=!0,ge===9&&te.push("M",Ve,at));var At=u(Ge+ce*y(fe+Ne)),Rt=u(he+Ee*x(fe+Ne));te.push("A",u(ce),u(Ee),f(Ce*i),+Pe,+xe,At,Rt);break;case w.Z:He="Z";break;case w.R:var At=u(ee[ge++]),Rt=u(ee[ge++]),tn=u(ee[ge++]),Qt=u(ee[ge++]);te.push("M",At,Rt,"L",At+tn,Rt,"L",At+tn,Rt+Qt,"L",At,Rt+Qt,"L",At,Rt);break}He&&te.push(He);for(var Cn=0;CnUn){for(;Qt0)m.left||(m.left=new g,m.left.segment=y.value()),m=m.left;else if(O<0)m.right||(m.right=new g,m.right.segment=y.value()),m=m.right;else if(y.hasNext())y.next(),m.mid||(m.mid=new g,m.mid.segment=y.value()),m=m.mid;else break}var i=m.value;return m.value=x,m.key=f,i},a.prototype.get=function(f){for(var x=this._iter.reset(f),y=this._root;y;){var m=x.cmp(y.segment);if(m>0)y=y.left;else if(m<0)y=y.right;else if(x.hasNext())x.next(),y=y.mid;else break}return y?y.value:void 0},a.prototype.findSubstr=function(f){for(var x=this._iter.reset(f),y=this._root,m=void 0;y;){var O=x.cmp(y.segment);if(O>0)y=y.left;else if(O<0)y=y.right;else if(x.hasNext())x.next(),m=y.value||m,y=y.mid;else break}return y&&y.value||m},a.prototype.forEach=function(f){this._forEach(this._root,f)},a.prototype._forEach=function(f,x){f&&(this._forEach(f.left,x),f.value&&x(f.value,f.key),this._forEach(f.mid,x),this._forEach(f.right,x))},a}(),d=function(){function a(){this.map=new Map,this.ignoreCase=!1}return a.prototype.set=function(f,x){this.map.set(this.toKey(f),x)},a.prototype.get=function(f){return this.map.get(this.toKey(f))},a.prototype.toKey=function(f){var x=f.toString();return this.ignoreCase&&(x=x.toLowerCase()),x},a}(),w=function(){function a(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return a.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(a.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),a.prototype.get=function(f,x){x===void 0&&(x=0);var y=this._map.get(f);return y?(x!==0&&this.touch(y,x),y.value):void 0},a.prototype.set=function(f,x,y){y===void 0&&(y=0);var m=this._map.get(f);if(m)m.value=x,y!==0&&this.touch(m,y);else{m={key:f,value:x,next:void 0,previous:void 0};switch(y){case 0:this.addItemLast(m);break;case 1:this.addItemFirst(m);break;case 2:this.addItemLast(m);break;default:this.addItemLast(m);break}this._map.set(f,m),this._size++}},a.prototype.delete=function(f){return!!this.remove(f)},a.prototype.remove=function(f){var x=this._map.get(f);return x?(this._map.delete(f),this.removeItem(x),this._size--,x.value):void 0},a.prototype.forEach=function(f,x){for(var y=this._head;y;)x?f.bind(x)(y.value,y.key,this):f(y.value,y.key,this),y=y.next},a.prototype.trimOld=function(f){if(f>=this.size)return;if(f===0){this.clear();return}for(var x=this._head,y=this.size;x&&y>f;)this._map.delete(x.key),x=x.next,y--;this._head=x,this._size=y,x&&(x.previous=void 0)},a.prototype.addItemFirst=function(f){if(!this._head&&!this._tail)this._tail=f;else if(this._head)f.next=this._head,this._head.previous=f;else throw new Error("Invalid list");this._head=f},a.prototype.addItemLast=function(f){if(!this._head&&!this._tail)this._head=f;else if(this._tail)f.previous=this._tail,this._tail.next=f;else throw new Error("Invalid list");this._tail=f},a.prototype.removeItem=function(f){if(f===this._head&&f===this._tail)this._head=void 0,this._tail=void 0;else if(f===this._head){if(!f.next)throw new Error("Invalid list");f.next.previous=void 0,this._head=f.next}else if(f===this._tail){if(!f.previous)throw new Error("Invalid list");f.previous.next=void 0,this._tail=f.previous}else{var x=f.next,y=f.previous;if(!x||!y)throw new Error("Invalid list");x.previous=y,y.next=x}f.next=void 0,f.previous=void 0},a.prototype.touch=function(f,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(x!==1&&x!==2)return;if(x===1){if(f===this._head)return;var y=f.next,m=f.previous;f===this._tail?(m.next=void 0,this._tail=m):(y.previous=m,m.next=y),f.previous=void 0,f.next=this._head,this._head.previous=f,this._head=f}else if(x===2){if(f===this._tail)return;var y=f.next,m=f.previous;f===this._head?(y.previous=void 0,this._head=y):(y.previous=m,m.next=y),f.next=void 0,f.previous=this._tail,this._tail.next=f,this._tail=f}},a.prototype.toJSON=function(){var f=[];return this.forEach(function(x,y){f.push([y,x])}),f},a}(),p=function(a){Y(f,a);function f(x,y){y===void 0&&(y=1);var m=a.call(this)||this;return m._limit=x,m._ratio=Math.min(Math.max(0,y),1),m}return f.prototype.get=function(x){return a.prototype.get.call(this,x,2)},f.prototype.peek=function(x){return a.prototype.get.call(this,x,0)},f.prototype.set=function(x,y){a.prototype.set.call(this,x,y,2),this.checkTrim()},f.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},f}(w)},"QO+J":function(Ye,ie,_){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.createSensor=void 0;var Y=L(_("NohK")),j=_("24YM");function L(S){return S&&S.__esModule?S:{default:S}}var U=function(g){var s=void 0,d=[],w=function(){getComputedStyle(g).position==="static"&&(g.style.position="relative");var m=document.createElement("object");return m.onload=function(){m.contentDocument.defaultView.addEventListener("resize",p),p()},m.style.display="block",m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.height="100%",m.style.width="100%",m.style.overflow="hidden",m.style.pointerEvents="none",m.style.zIndex="-1",m.style.opacity="0",m.setAttribute("class",j.SensorClassName),m.setAttribute("tabindex",j.SensorTabIndex),m.type="text/html",g.appendChild(m),m.data="about:blank",m},p=(0,Y.default)(function(){d.forEach(function(y){y(g)})}),a=function(m){s||(s=w()),d.indexOf(m)===-1&&d.push(m)},f=function(){s&&s.parentNode&&(s.contentDocument&&s.contentDocument.defaultView.removeEventListener("resize",p),s.parentNode.removeChild(s),s=void 0,d=[])},x=function(m){var O=d.indexOf(m);O!==-1&&d.splice(O,1),d.length===0&&s&&f()};return{element:g,bind:a,destroy:f,unbind:x}};ie.createSensor=U},Qe9p:function(Ye,ie,_){var Y=_("1RvN"),j={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function L(o){return o=Math.round(o),o<0?0:o>255?255:o}function U(o){return o=Math.round(o),o<0?0:o>360?360:o}function S(o){return o<0?0:o>1?1:o}function g(o){return o.length&&o.charAt(o.length-1)==="%"?L(parseFloat(o)/100*255):L(parseInt(o,10))}function s(o){return o.length&&o.charAt(o.length-1)==="%"?S(parseFloat(o)/100):S(parseFloat(o))}function d(o,l,c){return c<0?c+=1:c>1&&(c-=1),c*6<1?o+(l-o)*c*6:c*2<1?l:c*3<2?o+(l-o)*(2/3-c)*6:o}function w(o,l,c){return o+(l-o)*c}function p(o,l,c,M,P){return o[0]=l,o[1]=c,o[2]=M,o[3]=P,o}function a(o,l){return o[0]=l[0],o[1]=l[1],o[2]=l[2],o[3]=l[3],o}var f=new Y(20),x=null;function y(o,l){x&&a(x,l),x=f.put(o,x||l.slice())}function m(o,l){if(!o)return;l=l||[];var c=f.get(o);if(c)return a(l,c);o=o+"";var M=o.replace(/ /g,"").toLowerCase();if(M in j)return a(l,j[M]),y(o,l),l;if(M.charAt(0)==="#"){if(M.length===4){var P=parseInt(M.substr(1),16);if(!(P>=0&&P<=4095)){p(l,0,0,0,1);return}return p(l,(P&3840)>>4|(P&3840)>>8,P&240|(P&240)>>4,P&15|(P&15)<<4,1),y(o,l),l}else if(M.length===7){var P=parseInt(M.substr(1),16);if(!(P>=0&&P<=16777215)){p(l,0,0,0,1);return}return p(l,(P&16711680)>>16,(P&65280)>>8,P&255,1),y(o,l),l}return}var R=M.indexOf("("),k=M.indexOf(")");if(R!==-1&&k+1===M.length){var I=M.substr(0,R),F=M.substr(R+1,k-(R+1)).split(","),V=1;switch(I){case"rgba":if(F.length!==4){p(l,0,0,0,1);return}V=s(F.pop());case"rgb":if(F.length!==3){p(l,0,0,0,1);return}return p(l,g(F[0]),g(F[1]),g(F[2]),V),y(o,l),l;case"hsla":if(F.length!==4){p(l,0,0,0,1);return}return F[3]=s(F[3]),O(F,l),y(o,l),l;case"hsl":if(F.length!==3){p(l,0,0,0,1);return}return O(F,l),y(o,l),l;default:return}}p(l,0,0,0,1);return}function O(o,l){var c=(parseFloat(o[0])%360+360)%360/360,M=s(o[1]),P=s(o[2]),R=P<=.5?P*(M+1):P+M-P*M,k=P*2-R;return l=l||[],p(l,L(d(k,R,c+1/3)*255),L(d(k,R,c)*255),L(d(k,R,c-1/3)*255),1),o.length===4&&(l[3]=o[3]),l}function i(o){if(!o)return;var l=o[0]/255,c=o[1]/255,M=o[2]/255,P=Math.min(l,c,M),R=Math.max(l,c,M),k=R-P,I=(R+P)/2,F,V;if(k===0)F=0,V=0;else{I<.5?V=k/(R+P):V=k/(2-R-P);var W=((R-l)/6+k/2)/k,G=((R-c)/6+k/2)/k,J=((R-M)/6+k/2)/k;l===R?F=J-G:c===R?F=1/3+W-J:M===R&&(F=2/3+G-W),F<0&&(F+=1),F>1&&(F-=1)}var X=[F*360,V,I];return o[3]!=null&&X.push(o[3]),X}function r(o,l){var c=m(o);if(c){for(var M=0;M<3;M++)l<0?c[M]=c[M]*(1-l)|0:c[M]=(255-c[M])*l+c[M]|0,c[M]>255?c[M]=255:o[M]<0&&(c[M]=0);return v(c,c.length===4?"rgba":"rgb")}}function u(o){var l=m(o);if(l)return((1<<24)+(l[0]<<16)+(l[1]<<8)+ +l[2]).toString(16).slice(1)}function h(o,l,c){if(!(l&&l.length)||!(o>=0&&o<=1))return;c=c||[];var M=o*(l.length-1),P=Math.floor(M),R=Math.ceil(M),k=l[P],I=l[R],F=M-P;return c[0]=L(w(k[0],I[0],F)),c[1]=L(w(k[1],I[1],F)),c[2]=L(w(k[2],I[2],F)),c[3]=S(w(k[3],I[3],F)),c}var b=h;function E(o,l,c){if(!(l&&l.length)||!(o>=0&&o<=1))return;var M=o*(l.length-1),P=Math.floor(M),R=Math.ceil(M),k=m(l[P]),I=m(l[R]),F=M-P,V=v([L(w(k[0],I[0],F)),L(w(k[1],I[1],F)),L(w(k[2],I[2],F)),S(w(k[3],I[3],F))],"rgba");return c?{color:V,leftIndex:P,rightIndex:R,value:M}:V}var t=E;function C(o,l,c,M){if(o=m(o),o)return o=i(o),l!=null&&(o[0]=U(l)),c!=null&&(o[1]=s(c)),M!=null&&(o[2]=s(M)),v(O(o),"rgba")}function A(o,l){if(o=m(o),o&&l!=null)return o[3]=S(l),v(o,"rgba")}function v(o,l){if(!o||!o.length)return;var c=o[0]+","+o[1]+","+o[2];return(l==="rgba"||l==="hsva"||l==="hsla")&&(c+=","+o[3]),l+"("+c+")"}ie.parse=m,ie.lift=r,ie.toHex=u,ie.fastLerp=h,ie.fastMapToColor=b,ie.lerp=E,ie.mapToColor=t,ie.modifyHSL=C,ie.modifyAlpha=A,ie.stringify=v},QuXc:function(Ye,ie){var _=function(j){this.colorStops=j||[]};_.prototype={constructor:_,addColorStop:function(j,L){this.colorStops.push({offset:j,color:L})}};var Y=_;Ye.exports=Y},RDYZ:function(Ye,ie,_){var Y=_("dMvE");function j(U){this._target=U.target,this._life=U.life||1e3,this._delay=U.delay||0,this._initialized=!1,this.loop=U.loop==null?!1:U.loop,this.gap=U.gap||0,this.easing=U.easing||"Linear",this.onframe=U.onframe,this.ondestroy=U.ondestroy,this.onrestart=U.onrestart,this._pausedTime=0,this._paused=!1}j.prototype={constructor:j,step:function(U,S){if(this._initialized||(this._startTime=U+this._delay,this._initialized=!0),this._paused){this._pausedTime+=S;return}var g=(U-this._startTime-this._pausedTime)/this._life;if(g<0)return;g=Math.min(g,1);var s=this.easing,d=typeof s=="string"?Y[s]:s,w=typeof d=="function"?d(g):g;return this.fire("frame",w),g===1?this.loop?(this.restart(U),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(U){var S=(U-this._startTime-this._pausedTime)%this._life;this._startTime=U-S+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(U,S){U="on"+U,this[U]&&this[U](this._target,S)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var L=j;Ye.exports=L},RMFE:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(Ye,ie,_){var Y=_("y+Vt"),j=Y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(L,U){var S=U.cx,g=U.cy,s=Math.PI*2;L.moveTo(S+U.r,g),L.arc(S,g,U.r,0,s,!1),L.moveTo(S+U.r0,g),L.arc(S,g,U.r0,0,s,!0)}});Ye.exports=j},"RZ/O":function(Ye,ie,_){Ye.exports=_.p+"static/bi.9c9b0364.svg"},RotF:function(Ye,ie,_){Ye.exports=_("LSTS")},"SA+Z":function(Ye,ie,_){var Y=_("wTVA"),j=_("EbDI"),L=_("ZhPi"),U=_("wkBT");function S(g){return Y(g)||j(g)||L(g)||U()}Ye.exports=S,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports},SJMd:function(Ye,ie){/** * @license * Copyright (C) 2006 Google Inc. * @@ -316,35 +316,35 @@ Please report this to https://github.com/markedjs/marked.`,Je.silent)return"

        A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var _,Y,j,L=!1,U,S;window.PR_SHOULD_USE_CONTINUATION=!0;var g,s;(function(){var d=window,w=["break,continue,do,else,for,if,return,while"],p=[w,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],a=[p,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],f=[a,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],x=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],b=[a,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],m="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",O=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],i="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",r=[w,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],u=[w,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],h=[w,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],y=[f,b,x,O,i,r,u,h],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,t="str",C="kwd",A="com",v="typ",o="lit",l="pun",c="pln",M="tag",P="dec",R="src",k="atn",I="atv",F="nocode",V="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(xe){for(var ze=0,Le=!1,Fe=!1,Pe=0,Ve=xe.length;Pe122||(Oe<65||Xe>90||Ht.push([Math.max(65,Xe)|32,Math.min(Oe,90)|32]),Oe<97||Xe>122||Ht.push([Math.max(97,Xe)&~32,Math.min(Oe,122)&~32]))}}Ht.sort(function(dt,et){return dt[0]-et[0]||et[1]-dt[1]});for(var Ae=[],ye=[],wt=0;wtSe[0]&&(Se[1]+1>Se[0]&&Tt.push("-"),Tt.push(tn(Se[1])))}return Tt.push("]"),Tt.join("")}function Cn(mt){for(var lt=mt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Ht=lt.length,sn=[],Tt=0,wt=0;Tt=2&&Xe==="["?lt[Tt]=Qt(Qe):Xe!=="\\"&&(lt[Tt]=Qe.replace(/[a-zA-Z]/g,function(ye){var Se=ye.charCodeAt(0);return"["+String.fromCharCode(Se&~32,Se|32)+"]"}))}return lt.join("")}for(var Un=[],Pe=0,Ve=xe.length;Pe|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(xe){for(var ze=0,Le=!1,Fe=!1,Pe=0,Ve=xe.length;Pe122||(Oe<65||Xe>90||Ht.push([Math.max(65,Xe)|32,Math.min(Oe,90)|32]),Oe<97||Xe>122||Ht.push([Math.max(97,Xe)&~32,Math.min(Oe,122)&~32]))}}Ht.sort(function(dt,et){return dt[0]-et[0]||et[1]-dt[1]});for(var Ae=[],ye=[],wt=0;wtSe[0]&&(Se[1]+1>Se[0]&&Tt.push("-"),Tt.push(tn(Se[1])))}return Tt.push("]"),Tt.join("")}function Cn(mt){for(var lt=mt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Ht=lt.length,sn=[],Tt=0,wt=0;Tt=2&&Xe==="["?lt[Tt]=Qt(Qe):Xe!=="\\"&&(lt[Tt]=Qe.replace(/[a-zA-Z]/g,function(ye){var Se=ye.charCodeAt(0);return"["+String.fromCharCode(Se&~32,Se|32)+"]"}))}return lt.join("")}for(var Un=[],Pe=0,Ve=xe.length;Pe=0;)Le[Un.charAt(mt)]=Cn;var lt=Cn[1],Ht=""+lt;Rt.hasOwnProperty(Ht)||(At.push(lt),Rt[Ht]=null)}At.push(/[\0-\uffff]/),Fe=W(At)})();var Pe=ze.length,Ve=function(at){for(var At=at.sourceCode,Rt=at.basePos,tn=at.sourceNode,Qt=[Rt,c],Cn=0,Un=At.match(Fe)||[],mt={},lt=0,Ht=Un.length;lt=5&&Tt.substring(0,5)==="lang-",Qe&&!(wt&&typeof wt[1]=="string")&&(Qe=!1,Tt=R),Qe||(mt[sn]=Tt)}var Oe=Cn;if(Cn+=sn.length,!Qe)Qt.push(Rt+Oe,Tt);else{var Ae=wt[1],ye=sn.indexOf(Ae),Se=ye+Ae.length;wt[2]&&(Se=sn.length-wt[2].length,ye=Se-Ae.length);var dt=Tt.substring(5);J(tn,Rt+Oe,sn.substring(0,ye),Ve,Qt),J(tn,Rt+Oe+ye,Ae,he(dt,Ae),Qt),J(tn,Rt+Oe+Se,sn.substring(Se),Ve,Qt)}}at.decorations=Qt};return Ve}function be(xe){var ze=[],Le=[];xe.tripleQuotedStrings?ze.push([t,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):xe.multiLineStrings?ze.push([t,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ze.push([t,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),xe.verbatimStrings&&Le.push([t,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Fe=xe.hashComments;Fe&&(xe.cStyleComments?(Fe>1?ze.push([A,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ze.push([A,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Le.push([t,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ze.push([A,/^#[^\r\n]*/,null,"#"])),xe.cStyleComments&&(Le.push([A,/^\/\/[^\r\n]*/,null]),Le.push([A,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Pe=xe.regexLiterals;if(Pe){var Ve=Pe>1?"":` \r`,at=Ve?".":"[\\S\\s]",At="/(?=[^/*"+Ve+"])(?:[^/\\x5B\\x5C"+Ve+"]|\\x5C"+at+"|\\x5B(?:[^\\x5C\\x5D"+Ve+"]|\\x5C"+at+")*(?:\\x5D|$))+/";Le.push(["lang-regex",RegExp("^"+V+"("+At+")")])}var Rt=xe.types;Rt&&Le.push([v,Rt]);var tn=(""+xe.keywords).replace(/^ | $/g,"");tn.length&&Le.push([C,new RegExp("^(?:"+tn.replace(/[\s,]+/g,"|")+")\\b"),null]),ze.push([c,/^\s+/,null,` \r - \xA0`]);var Qt="^.[^\\s\\w.$@'\"`/\\\\]*";return xe.regexLiterals&&(Qt+="(?!s*/)"),Le.push([o,/^@[a-z_$][a-z_$@0-9]*/i,null],[v,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[o,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[l,new RegExp(Qt),null]),ee(ze,Le)}var ge=be({keywords:y,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(xe,ze,Le){for(var Fe=/(?:^|\s)nocode(?:\s|$)/,Pe=/\r\n?|\n/,Ve=xe.ownerDocument,at=Ve.createElement("li");xe.firstChild;)at.appendChild(xe.firstChild);var At=[at];function Rt(lt){var Ht=lt.nodeType;if(Ht==1&&!Fe.test(lt.className))if(lt.nodeName==="br")tn(lt),lt.parentNode&<.parentNode.removeChild(lt);else for(var sn=lt.firstChild;sn;sn=sn.nextSibling)Rt(sn);else if((Ht==3||Ht==4)&&Le){var Tt=lt.nodeValue,wt=Tt.match(Pe);if(wt){var Qe=Tt.substring(0,wt.index);lt.nodeValue=Qe;var Je=Tt.substring(wt.index+wt[0].length);if(Je){var Xe=lt.parentNode;Xe.insertBefore(Ve.createTextNode(Je),lt.nextSibling)}tn(lt),Qe||lt.parentNode.removeChild(lt)}}}function tn(lt){for(;!lt.nextSibling;)if(lt=lt.parentNode,!lt)return;function Ht(wt,Qe){var Je=Qe?wt.cloneNode(!1):wt,Xe=wt.parentNode;if(Xe){var Oe=Ht(Xe,1),Ae=wt.nextSibling;Oe.appendChild(Je);for(var ye=Ae;ye;ye=Ae)Ae=ye.nextSibling,Oe.appendChild(ye)}return Je}for(var sn=Ht(lt.nextSibling,0),Tt;(Tt=sn.parentNode)&&Tt.nodeType===1;)sn=Tt;At.push(sn)}for(var Qt=0;Qt=Xe&&(Rt+=2),Ve>=Oe&&(Cn+=2)}}finally{Tt&&(Tt.style.display=wt)}}var nt={};function Ge(xe,ze){for(var Le=ze.length;--Le>=0;){var Fe=ze[Le];nt.hasOwnProperty(Fe)?d.console&&console.warn("cannot override language handler %s",Fe):nt[Fe]=xe}}function he(xe,ze){return xe&&nt.hasOwnProperty(xe)||(xe=/^\s*]*(?:>|$)/],[A,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ge(ee([[c,/^[\s]+/,null,` \r -`],[I,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[M,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[l,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ge(ee([],[[I,/^[\s\S]+/]]),["uq.val"]),Ge(be({keywords:f,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),Ge(be({keywords:"null,true,false"}),["json"]),Ge(be({keywords:b,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),Ge(be({keywords:x,cStyleComments:!0}),["java"]),Ge(be({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ge(be({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ge(be({keywords:i,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ge(be({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ge(be({keywords:O,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ge(be({keywords:m,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ge(ee([],[[t,/^[\s\S]+/]]),["regex"]);function ce(xe){var ze=xe.langExtension;try{var Le=G(xe.sourceNode,xe.pre),Fe=Le.sourceCode;xe.sourceCode=Fe,xe.spans=Le.spans,xe.basePos=0,he(ze,Fe)(xe),He(xe)}catch(Pe){d.console&&console.log(Pe&&Pe.stack||Pe)}}function Ee(xe,ze,Le){var Fe=Le||!1,Pe=ze||null,Ve=document.createElement("div");Ve.innerHTML="

        "+xe+"
        ",Ve=Ve.firstChild,Fe&&je(Ve,Fe,!0);var at={langExtension:Pe,numberLines:Fe,sourceNode:Ve,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ce(at),Ve.innerHTML}function fe(xe,ze){var Le=ze||document.body,Fe=Le.ownerDocument||document;function Pe(Je){return Le.getElementsByTagName(Je)}for(var Ve=[Pe("pre"),Pe("code"),Pe("xmp")],at=[],At=0;At-g&&og||o<-g}function m(o,l,c,M,P){var R=1-P;return R*R*(R*o+3*P*l)+P*P*(P*M+3*R*c)}function O(o,l,c,M,P){var R=1-P;return 3*(((l-o)*R+2*(c-l)*P)*R+(M-c)*P*P)}function i(o,l,c,M,P,R){var k=M+3*(l-c)-o,I=3*(c-l*2+o),F=3*(l-o),V=o-P,W=I*I-3*k*F,G=I*F-9*k*V,J=F*F-3*I*V,X=0;if(x(W)&&x(G))if(x(I))R[0]=0;else{var te=-F/I;te>=0&&te<=1&&(R[X++]=te)}else{var ee=G*G-4*W*J;if(x(ee)){var be=G/W,te=-I/k+be,ge=-be/2;te>=0&&te<=1&&(R[X++]=te),ge>=0&&ge<=1&&(R[X++]=ge)}else if(ee>0){var je=S(ee),He=W*I+1.5*k*(-G+je),nt=W*I+1.5*k*(-G-je);He<0?He=-U(-He,w):He=U(He,w),nt<0?nt=-U(-nt,w):nt=U(nt,w);var te=(-I-(He+nt))/(3*k);te>=0&&te<=1&&(R[X++]=te)}else{var Ge=(2*W*I-3*k*G)/(2*S(W*W*W)),he=Math.acos(Ge)/3,ce=S(W),Ee=Math.cos(he),te=(-I-2*ce*Ee)/(3*k),ge=(-I+ce*(Ee+d*Math.sin(he)))/(3*k),fe=(-I+ce*(Ee-d*Math.sin(he)))/(3*k);te>=0&&te<=1&&(R[X++]=te),ge>=0&&ge<=1&&(R[X++]=ge),fe>=0&&fe<=1&&(R[X++]=fe)}}return X}function r(o,l,c,M,P){var R=6*c-12*l+6*o,k=9*l+3*M-3*o-9*c,I=3*l-3*o,F=0;if(x(k)){if(b(R)){var V=-I/R;V>=0&&V<=1&&(P[F++]=V)}}else{var W=R*R-4*k*I;if(x(W))P[0]=-R/(2*k);else if(W>0){var G=S(W),V=(-R+G)/(2*k),J=(-R-G)/(2*k);V>=0&&V<=1&&(P[F++]=V),J>=0&&J<=1&&(P[F++]=J)}}return F}function u(o,l,c,M,P,R){var k=(l-o)*P+o,I=(c-l)*P+l,F=(M-c)*P+c,V=(I-k)*P+k,W=(F-I)*P+I,G=(W-V)*P+V;R[0]=o,R[1]=k,R[2]=V,R[3]=G,R[4]=G,R[5]=W,R[6]=F,R[7]=M}function h(o,l,c,M,P,R,k,I,F,V,W){var G,J=.005,X=Infinity,te,ee,be,ge;p[0]=F,p[1]=V;for(var je=0;je<1;je+=.05)a[0]=m(o,c,P,k,je),a[1]=m(l,M,R,I,je),be=L(p,a),be=0&&be=0&&V<=1&&(P[F++]=V)}}else{var W=k*k-4*R*I;if(x(W)){var V=-k/(2*R);V>=0&&V<=1&&(P[F++]=V)}else if(W>0){var G=S(W),V=(-k+G)/(2*R),J=(-k-G)/(2*R);V>=0&&V<=1&&(P[F++]=V),J>=0&&J<=1&&(P[F++]=J)}}return F}function C(o,l,c){var M=o+c-2*l;return M===0?.5:(o-l)/M}function A(o,l,c,M,P){var R=(l-o)*M+o,k=(c-l)*M+l,I=(k-R)*M+R;P[0]=o,P[1]=R,P[2]=I,P[3]=I,P[4]=k,P[5]=c}function v(o,l,c,M,P,R,k,I,F){var V,W=.005,G=Infinity;p[0]=k,p[1]=I;for(var J=0;J<1;J+=.05){a[0]=y(o,c,P,J),a[1]=y(l,M,R,J);var X=L(p,a);X=0&&X=0;--h)if(u[h]===r)return!0;return!1}),i):null:i[0]},x.prototype.update=function(m,O){if(!m)return;var i=this.getDefs(!1);if(m[this._domName]&&i.contains(m[this._domName]))typeof O=="function"&&O(m);else{var r=this.add(m);r&&(m[this._domName]=r)}},x.prototype.addDom=function(m){var O=this.getDefs(!0);O.appendChild(m)},x.prototype.removeDom=function(m){var O=this.getDefs(!1);O&&m[this._domName]&&(O.removeChild(m[this._domName]),m[this._domName]=null)},x.prototype.getDoms=function(){var m=this.getDefs(!1);if(!m)return[];var O=[];return L.each(this._tagNames,function(i){var r=m.getElementsByTagName(i);O=O.concat([].slice.call(r))}),O},x.prototype.markAllUnused=function(){var m=this.getDoms(),O=this;L.each(m,function(i){i[O._markLabel]=a})},x.prototype.markUsed=function(m){m&&(m[this._markLabel]=f)},x.prototype.removeUnused=function(){var m=this.getDefs(!1);if(!m)return;var O=this.getDoms(),i=this;L.each(O,function(r){r[i._markLabel]!==f&&m.removeChild(r)})},x.prototype.getSvgProxy=function(m){return m instanceof U?d:m instanceof S?w:m instanceof g?p:d},x.prototype.getTextSvgElement=function(m){return m.__textSvgEl},x.prototype.getSvgElement=function(m){return m.__svgEl};var b=x;Ye.exports=b},T1X5:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAALdklEQVR4Xu2dC2wc1RVAzx1nDXFiO4SEhqxtxS0JHzX94TS0FEKLALX8WkKbqrRVKQrh15Zfq0IqIaSGSOXb8ktANFJbKqUFWigEAUohfFRQDC1KxS8UR/7wDbZ3TRxix3urN951No7Xnt15M7Mbz0hRImXevffds/PmzXv33StU0KWqTlcfh6mwkCHmq8M8B5oUZosyS6EeOCD7x/Rsl/kjkFJhu8AHGWiXDNuoYqsoW5K1vCkimUpxg5SzoW+r1gylOUGErygci9IC1Fi2uR+hVeA5VZ6tquOpuSL9lnVYE1d2wNo+0jnVylLNcKYKx6EcaK23XgQJH4vyjDg8OCDc3zxd3vXSLKx7ygJYW5seOGUmZ6GcJ8IShaqwHDCeHoEhVTYh3LO7mweam+XjqO2KFNjWPp09VblUlQuAmVE7YwL93SKs2SncMr9WPojK1kiAdWzXpCa40oHlCtOi6nwpegV2ZOBuGeSGxlnSVYoMP21CBfZmnx5SneFagXPzZnJ+7I+y7S6FdQMO1xxWK++HZUgowNzpeIoVKqwCDgqrcyHp6RFlZbKetWF8HgQOrD2liwTuAHdKvj9frVVTuHDuNGkNspOBAWtt1cShC1ilcLlqecz6gnSkkS3CkMBN77zBypYWGQxCXyDAuvq1KTPIeuCYIIyuAJnPOwmWJWuk3bat1oF1pfWMjLKuAqbptn05Wl63I5ybrJOHbCqyCqw9ratEucqMDjaNrGBZqsLqpjpZaasPVhyrqlVdKe5Wcafr8TXKA6KsS9azXESG/DrHN7CODp0qdaxXON2vMftze4F/aJpljY2y008/fQFr69EZCYeH3ZX0+JrQA2ZHYDDDac0HSe+ENxe4oWRg2SfriRhWca53t3HSnFTqk1YSMPedleZv8TBYHKzc3WZ4TNbxrVLeaSUB6+zV38cTjNJgjUBT1jXMkB8XK6VoYNmp+9XFKorv39cDKlxX7JS/KGDZj+K/x99Z1n5+6gjfLObj2jOw7HLTv+MVDGuwcoK6nQSf97qM5QmYWcj9xHyensRrg9YpjRL4/HtbOd7LgrEnYF1p/U1G+XnQVk9m+Y5wfbJOfjGRDyYEZvazHOFfk2WLZCKHBfX/Zmsmo3ypqV42j6djXGBmp7gzzQuTYPMxKA7Fym1tqGPxeDvX4wLr7NULVdzd4vgKyQOiXNQwQ+4spK4gMBMwc0CG1/bDGIyQXF+ymp5dDkcUCuwpCKwzpXcqbrxgfIXsAYU1TfVy4VhqxwRm4gZJ8L/9IBQtZFdbU7eLQT41VtzjmMDaU3qzwKXW1MeCivaAwi1N9XLZ6Ib7AHPDpzO0hRmR+/L78Ict8J93IT1QdN+sN6irhs/NgR8uhM8eYl28J4EmwninQ/PosPB9gHWmdZUqoS3u/uUVuPEFKMcDWg5wxWL4zlGefGz9JhGuaxgVD7IXsOwpEhMvHsrBBPNknf9IecLKed9Au+vUyJ607t3dJPNPzewFrCOl3wPutf5TKSDwio3wdF7k3imfhMNnugGZkV2q8Ho3PPbWHhOOb4IbT4zMpHMa6+XPOe17A+vVjQhfC8u0E+/d884ysH69JCzNE+v51aY90Mw7beM5E7cJ5A7ln40zZOTnMgLMnHxMDNEZ5mG6RSbcNHv9tAV+sDCQLpck9I9b4Hd5UfKbIwrgM4cKB6toyJ0EHQHWkdJLgFtL6l2JjfKB/WwRfP/TJQoKoNmf/gu/zVuGjQqY6ZrjcEmyVm43/x4B1pnSxxVOCqDvBUXGwLx5W+CJhno5eQSYe1q/jw/DPgAeA/MGDOHjqloONtkN3CesI6XfAB7x2NzabV6B3fca3LoZ+ndbU+0KmpaAn7TA0iP2lVtOQ2LWulMb62WDC6wzrdfp8CGGUC+vwL56L3wU0ArI9Gp4cowZYLkBE2F1Q51cPfyEpXUTyvGh0gK8ArvgUXgxoGwZX5gDa79eAU+Y8HRjnSyR7K5yXwAZZibk7xXYjkHY2Abmb5uXGRJPnAfTqisAGPQ31FErnWldoMrrNh3hVZZXYF7l2byv3IZEd4YoHC4dfbqUDPfZ7KxXWTEwr57K3udwtnT06i8RVhfZ1MrtMbAi3ahcJe1pXSPKiiKbWrk9BlacG1VYa95hG1QZY55UnLBS7vYK7JXtwxuc/ZYnHTWJ4U3Ko2ZVxKTDvMMelY60bs7mISzF577aeAV25l/h7Y98qSrYeO50ePDblQHMzevYmVITDjAvGHeMLzUGVpzXBbZJR0p7gBnFNbVzt1dgr+aGRMtLUzVThofEI8cYEh9/C1ZuGu7n7BrYsMxOn31K6TXAdkTx0WwM9wrMZydLaj6UgTtegje64UefgaPnlCTGdqN+A8z8biPJAFrOwGx72pK8oRiYJU+GJMYFFg+JIXnbghp3SOyO6sCD1yFxxwBs3BbA4m91dvE3YcGV4YjoqYhp/YpH4aWAtlfMZGJNJMsGxRMentZXwIdzFBuYxbszhBbuh3MFLE25IQKtwSxNmRCBs8cIEQjB/UWrcJem4sXfvf32Qhdc8jjcdjIsThbt00AbuIu/8fZK5QDDbK/EG5gVBMxsYMYhApUDzA0RqIQgnEBfDKOEl/E7bDgIx9hb7mFuMTA3qH44zM04o9wDSWNgbsRUXiBpmYdq2wZmhr1C16sfwu0vwsVHw5EHF74vgin/nlDtcjgMEeb5sPw1zFJ/DKEePxp9GMIdFiM4bhTVCUyvT9gR4zxhx4T4Ub3PcSMDrKtPL85kuK3UX1wp7fyccTaHGE5uBhP5ZPMqx1nimAf6ojgy+/J7cP6G0rMILJ4Lt51iExeUG7CCR2bd6X3Ih9KNTj95OmZOhce+u38Do9ChdBdYyGkfcq4uJRPO9ARc9kU4Y8F+DgwKp30IO7GKXVfbkVZmQ+L4iVWyH9Ghpi6y42Z7UsoJ2ISpi0y3o0gOZs/d/iWVCzDPycFMl+P0e/7B+5XgOf2eO/mIE1z69bff9sUluMw+ZXdKnELWr+NLal90ClmjJU7SXJKvbTQqLUmzO2OM06DbAFCUjJLToBstcaGBonxt42Z/hQay77K4lIcNFBPIsFLKI6cjLpYTBjGub7RRLMeYGpejChyY3XJUxty44Ftg0OwXfMsbGs/IKHFJRXvsgiupmLMxLlpqkVbQRUtzpsZlgf1Dk7DKAme/z+LC2z6YhV54210g7tCpUkdc2r5IcJGUts/Z2NajMxIODyscW6Tdk/J2A2sww2nNB0lvqQ7wXTQj+6StVzi9VCMmQzszDGqaZY2NstNPf30DM8qfVJ0yP8VdKkRUP8GPC4JvayYYyXqWi8iQX21WgI2a8pvs3Fbl+u1khO1VhdVNo0pK+bHHumO70mo+rk1VlVBKWvnpfMBtux3h3GSdPGRTj3VgectY64FjbBpbQbKedxIsS9ZIXrEtO9YHAsyYZhaMD13AKoXLJ0uVdbNFInDTO2+wsqVFLOdPHQYeGLCR91pKFwlu8e4WO7+xspXSqnDRRKXp/VofODBjoNm57kqxQoVVUeW18uuocdr3iLIyWc/a8UrS29IfCrCcsSawpzrDtYI7/T/AVicikrNLYd2AwzWFqpoHYVeowHIdMHGPmuBKB5aHWX7YhgNNRG4G7pZBbhirMLYNHePJiARYziA3LFy5VJULKuAzoFuENTuFW0bXVg4aUr78SIHlDMmemjkL5TwRloRZh3OCX/OQKpsQ7tndzQP55XnDhFR2wPINMidBq5WlmuFMFY4Lu2qgqYYnyjPi8OCAcH+uWGhUgEbrLYsnrJAz3OwGaU5AOQ6HL2cLItRYdl6/m8AfnlPl2ao6njKlCy3rsCaurIGN7qX7edDHYSosZIj56jDPgSaF2aLM0uH8+6YaWG4GugsYEOhVYbvABxlolwzbqGKrKFuStbwZxnTcFrH/A8wNv8JI/KKJAAAAAElFTkSuQmCC"},T6xi:function(Ye,ie,_){var Y=_("YgsL"),j=_("nCxF");function L(U,S,g){var s=S.points,d=S.smooth;if(s&&s.length>=2){if(d&&d!=="spline"){var w=j(s,d,g,S.smoothConstraint);U.moveTo(s[0][0],s[0][1]);for(var p=s.length,a=0;a<(g?p:p-1);a++){var f=w[a*2],x=w[a*2+1],b=s[(a+1)%p];U.bezierCurveTo(f[0],f[1],x[0],x[1],b[0],b[1])}}else{d==="spline"&&(s=Y(s,g)),U.moveTo(s[0][0],s[0][1]);for(var a=1,m=s.length;a=0){var h=r.split("!=");return d.create(h[0].trim(),this._deserializeValue(h[1],u))}if(r.indexOf("==")>=0){var h=r.split("==");return s.create(h[0].trim(),this._deserializeValue(h[1],u))}if(r.indexOf("=~")>=0){var h=r.split("=~");return p.create(h[0].trim(),this._deserializeRegexValue(h[1],u))}return/^\!\s*/.test(r)?w.create(r.substr(1).trim()):g.create(r)},i._deserializeValue=function(r,u){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var h=/^'([^']*)'$/.exec(r);return h?h[1].trim():r},i._deserializeRegexValue=function(r,u){if(Object(Y.x)(r)){if(u)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var h=r.indexOf("/"),y=r.lastIndexOf("/");if(h===y||h<0){if(u)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(h+1,y),t=r[y+1]==="i"?"i":"";try{return new RegExp(E,t)}catch(C){if(u)throw new Error("bad regexp-value '"+r+"', parse error: "+C);return console.warn("bad regexp-value '"+r+"', parse error: "+C),null}},i}();function S(i,r){var u=i.getType(),h=r.getType();if(u!==h)return u-h;switch(u){case 1:return i.cmp(r);case 2:return i.cmp(r);case 3:return i.cmp(r);case 4:return i.cmp(r);case 6:return i.cmp(r);case 7:return i.cmp(r);case 5:return i.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var g=function(){function i(r){this.key=r}return i.create=function(r){return new i(r)},i.prototype.getType=function(){return 1},i.prototype.cmp=function(r){return this.keyr.key?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key:!1},i.prototype.evaluate=function(r){return!!r.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return w.create(this.key)},i}(),s=function(){function i(r,u){this.key=r,this.value=u}return i.create=function(r,u){return typeof u=="boolean"?u?g.create(r):w.create(r):new i(r,u)},i.prototype.getType=function(){return 3},i.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key&&this.value===r.value:!1},i.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return d.create(this.key,this.value)},i}(),d=function(){function i(r,u){this.key=r,this.value=u}return i.create=function(r,u){return typeof u=="boolean"?u?w.create(r):g.create(r):new i(r,u)},i.prototype.getType=function(){return 4},i.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key&&this.value===r.value:!1},i.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return s.create(this.key,this.value)},i}(),w=function(){function i(r){this.key=r}return i.create=function(r){return new i(r)},i.prototype.getType=function(){return 2},i.prototype.cmp=function(r){return this.keyr.key?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key:!1},i.prototype.evaluate=function(r){return!r.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return g.create(this.key)},i}(),p=function(){function i(r,u){this.key=r,this.regexp=u}return i.create=function(r,u){return new i(r,u)},i.prototype.getType=function(){return 6},i.prototype.cmp=function(r){if(this.keyr.key)return 1;var u=this.regexp?this.regexp.source:"",h=r.regexp?r.regexp.source:"";return uh?1:0},i.prototype.equals=function(r){if(r instanceof i){var u=this.regexp?this.regexp.source:"",h=r.regexp?r.regexp.source:"";return this.key===r.key&&u===h}return!1},i.prototype.evaluate=function(r){var u=r.getValue(this.key);return this.regexp?this.regexp.test(u):!1},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return a.create(this)},i}(),a=function(){function i(r){this._actual=r}return i.create=function(r){return new i(r)},i.prototype.getType=function(){return 7},i.prototype.cmp=function(r){return this._actual.cmp(r._actual)},i.prototype.equals=function(r){return r instanceof i?this._actual.equals(r._actual):!1},i.prototype.evaluate=function(r){return!this._actual.evaluate(r)},i.prototype.keys=function(){return this._actual.keys()},i.prototype.negate=function(){return this._actual},i}(),f=function(){function i(r){this.expr=r}return i.create=function(r){var u=i._normalizeArr(r);return u.length===0?void 0:u.length===1?u[0]:new i(u)},i.prototype.getType=function(){return 5},i.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var u=0,h=this.expr.length;u1;){for(var t=r.shift(),C=r.shift(),A=[],v=0,o=E(t);vS&&(f=d+w,d*=S/f,w*=S/f),p+a>S&&(f=p+a,p*=S/f,a*=S/f),w+p>g&&(f=w+p,w*=g/f,p*=g/f),d+a>g&&(f=d+a,d*=g/f,a*=g/f),Y.moveTo(L+d,U),Y.lineTo(L+S-w,U),w!==0&&Y.arc(L+S-w,U+w,w,-Math.PI/2,0),Y.lineTo(L+S,U+g-p),p!==0&&Y.arc(L+S-p,U+g-p,p,0,Math.PI/2),Y.lineTo(L+a,U+g),a!==0&&Y.arc(L+a,U+g-a,a,Math.PI/2,Math.PI),Y.lineTo(L,U+d),d!==0&&Y.arc(L+d,U+d,d,Math.PI,Math.PI*1.5)}ie.buildPath=_},"VrN/":function(Ye,ie,_){(function(Y,j){Ye.exports=j()})(this,function(){"use strict";var Y=navigator.userAgent,j=navigator.platform,L=/gecko\/\d/i.test(Y),U=/MSIE \d/.test(Y),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Y),g=/Edge\/(\d+)/.exec(Y),s=U||S||g,d=s&&(U?document.documentMode||6:+(g||S)[1]),w=!g&&/WebKit\//.test(Y),p=w&&/Qt\/\d+\.\d+/.test(Y),a=!g&&/Chrome\//.test(Y),f=/Opera\//.test(Y),x=/Apple Computer/.test(navigator.vendor),b=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Y),m=/PhantomJS/.test(Y),O=!g&&/AppleWebKit/.test(Y)&&/Mobile\/\w+/.test(Y),i=/Android/.test(Y),r=O||i||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Y),u=O||/Mac/.test(j),h=/\bCrOS\b/.test(Y),y=/win/i.test(j),E=f&&Y.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,w=!0);var t=u&&(p||f&&(E==null||E<12.11)),C=L||s&&d>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var v=function(e,n){var D=e.className,T=A(n).exec(D);if(T){var N=D.slice(T.index+T[0].length);e.className=D.slice(0,T.index)+(N?T[1]+N:"")}};function o(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function l(e,n){return o(e).appendChild(n)}function c(e,n,D,T){var N=document.createElement(e);if(D&&(N.className=D),T&&(N.style.cssText=T),typeof n=="string")N.appendChild(document.createTextNode(n));else if(n)for(var Z=0;Z=n)return le+(n-Z);le+=_e-Z,le+=D-le%D,Z=_e+1}}var X=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};X.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},X.prototype.set=function(e,n){this.f=n;var D=+new Date+e;(!this.id||D=n)return T+Math.min(le,n-N);if(N+=Z-T,N+=D-N%D,T=Z+1,N>=n)return T}}var Ge=[""];function he(e){for(;Ge.length<=e;)Ge.push(ce(Ge)+" ");return Ge[e]}function ce(e){return e[e.length-1]}function Ee(e,n){for(var D=[],T=0;T"\x80"&&(e.toUpperCase()!=e.toLowerCase()||xe.test(e))}function Le(e,n){return n?n.source.indexOf("\\w")>-1&&ze(e)?!0:n.test(e):ze(e)}function Fe(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Pe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ve(e){return e.charCodeAt(0)>=768&&Pe.test(e)}function at(e,n,D){for(;(D<0?n>0:nD?-1:1;;){if(n==D)return n;var N=(n+D)/2,Z=T<0?Math.ceil(N):Math.floor(N);if(Z==n)return e(Z)?n:D;e(Z)?D=Z:n=Z+T}}function Rt(e,n,D,T){if(!e)return T(n,D,"ltr",0);for(var N=!1,Z=0;Zn||n==D&&le.to==n)&&(T(Math.max(le.from,n),Math.min(le.to,D),le.level==1?"rtl":"ltr",Z),N=!0)}N||T(n,D,"ltr")}var tn=null;function Qt(e,n,D){var T;tn=null;for(var N=0;Nn)return N;Z.to==n&&(Z.from!=Z.to&&D=="before"?T=N:tn=N),Z.from==n&&(Z.from!=Z.to&&D!="before"?T=N:tn=N)}return T!=null?T:tn}var Cn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function D(We){return We<=247?e.charAt(We):1424<=We&&We<=1524?"R":1536<=We&&We<=1785?n.charAt(We-1536):1774<=We&&We<=2220?"r":8192<=We&&We<=8203?"w":We==8204?"b":"L"}var T=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,N=/[stwN]/,Z=/[LRr]/,le=/[Lb1n]/,_e=/[1n]/;function Re(We,Ot,Wt){this.level=We,this.from=Ot,this.to=Wt}return function(We,Ot){var Wt=Ot=="ltr"?"L":"R";if(We.length==0||Ot=="ltr"&&!T.test(We))return!1;for(var gn=We.length,ln=[],er=0;er-1&&(T[n]=N.slice(0,Z).concat(N.slice(Z+1)))}}}function Tt(e,n){var D=Ht(e,n);if(!D.length)return;for(var T=Array.prototype.slice.call(arguments,2),N=0;N0}function Xe(e){e.prototype.on=function(n,D){lt(this,n,D)},e.prototype.off=function(n,D){sn(this,n,D)}}function Oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ae(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ye(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Se(e){Oe(e),Ae(e)}function dt(e){return e.target||e.srcElement}function et(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),u&&e.ctrlKey&&n==1&&(n=3),n}var xt=function(){if(s&&d<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),xn;function Dt(e){if(xn==null){var n=c("span","\u200B");l(e,c("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(xn=n.offsetWidth<=1&&n.offsetHeight>2&&!(s&&d<8))}var D=xn?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return D.setAttribute("cm-text",""),D}var yt;function mn(e){if(yt!=null)return yt;var n=l(e,document.createTextNode("A\u062EA")),D=P(n,0,1).getBoundingClientRect(),T=P(n,1,2).getBoundingClientRect();return o(e),!D||D.left==D.right?!1:yt=T.right-D.right<3}var pe=` + \xA0`]);var Qt="^.[^\\s\\w.$@'\"`/\\\\]*";return xe.regexLiterals&&(Qt+="(?!s*/)"),Le.push([o,/^@[a-z_$][a-z_$@0-9]*/i,null],[v,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[o,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[l,new RegExp(Qt),null]),ee(ze,Le)}var ge=be({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(xe,ze,Le){for(var Fe=/(?:^|\s)nocode(?:\s|$)/,Pe=/\r\n?|\n/,Ve=xe.ownerDocument,at=Ve.createElement("li");xe.firstChild;)at.appendChild(xe.firstChild);var At=[at];function Rt(lt){var Ht=lt.nodeType;if(Ht==1&&!Fe.test(lt.className))if(lt.nodeName==="br")tn(lt),lt.parentNode&<.parentNode.removeChild(lt);else for(var sn=lt.firstChild;sn;sn=sn.nextSibling)Rt(sn);else if((Ht==3||Ht==4)&&Le){var Tt=lt.nodeValue,wt=Tt.match(Pe);if(wt){var Qe=Tt.substring(0,wt.index);lt.nodeValue=Qe;var Je=Tt.substring(wt.index+wt[0].length);if(Je){var Xe=lt.parentNode;Xe.insertBefore(Ve.createTextNode(Je),lt.nextSibling)}tn(lt),Qe||lt.parentNode.removeChild(lt)}}}function tn(lt){for(;!lt.nextSibling;)if(lt=lt.parentNode,!lt)return;function Ht(wt,Qe){var Je=Qe?wt.cloneNode(!1):wt,Xe=wt.parentNode;if(Xe){var Oe=Ht(Xe,1),Ae=wt.nextSibling;Oe.appendChild(Je);for(var ye=Ae;ye;ye=Ae)Ae=ye.nextSibling,Oe.appendChild(ye)}return Je}for(var sn=Ht(lt.nextSibling,0),Tt;(Tt=sn.parentNode)&&Tt.nodeType===1;)sn=Tt;At.push(sn)}for(var Qt=0;Qt=Xe&&(Rt+=2),Ve>=Oe&&(Cn+=2)}}finally{Tt&&(Tt.style.display=wt)}}var nt={};function Ge(xe,ze){for(var Le=ze.length;--Le>=0;){var Fe=ze[Le];nt.hasOwnProperty(Fe)?d.console&&console.warn("cannot override language handler %s",Fe):nt[Fe]=xe}}function he(xe,ze){return xe&&nt.hasOwnProperty(xe)||(xe=/^\s*]*(?:>|$)/],[A,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ge(ee([[c,/^[\s]+/,null,` \r +`],[I,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[M,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[l,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ge(ee([],[[I,/^[\s\S]+/]]),["uq.val"]),Ge(be({keywords:f,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),Ge(be({keywords:"null,true,false"}),["json"]),Ge(be({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),Ge(be({keywords:x,cStyleComments:!0}),["java"]),Ge(be({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ge(be({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ge(be({keywords:i,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ge(be({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ge(be({keywords:O,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ge(be({keywords:m,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ge(ee([],[[t,/^[\s\S]+/]]),["regex"]);function ce(xe){var ze=xe.langExtension;try{var Le=G(xe.sourceNode,xe.pre),Fe=Le.sourceCode;xe.sourceCode=Fe,xe.spans=Le.spans,xe.basePos=0,he(ze,Fe)(xe),He(xe)}catch(Pe){d.console&&console.log(Pe&&Pe.stack||Pe)}}function Ee(xe,ze,Le){var Fe=Le||!1,Pe=ze||null,Ve=document.createElement("div");Ve.innerHTML="
        "+xe+"
        ",Ve=Ve.firstChild,Fe&&je(Ve,Fe,!0);var at={langExtension:Pe,numberLines:Fe,sourceNode:Ve,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ce(at),Ve.innerHTML}function fe(xe,ze){var Le=ze||document.body,Fe=Le.ownerDocument||document;function Pe(Je){return Le.getElementsByTagName(Je)}for(var Ve=[Pe("pre"),Pe("code"),Pe("xmp")],at=[],At=0;At-g&&og||o<-g}function m(o,l,c,M,P){var R=1-P;return R*R*(R*o+3*P*l)+P*P*(P*M+3*R*c)}function O(o,l,c,M,P){var R=1-P;return 3*(((l-o)*R+2*(c-l)*P)*R+(M-c)*P*P)}function i(o,l,c,M,P,R){var k=M+3*(l-c)-o,I=3*(c-l*2+o),F=3*(l-o),V=o-P,W=I*I-3*k*F,G=I*F-9*k*V,J=F*F-3*I*V,X=0;if(x(W)&&x(G))if(x(I))R[0]=0;else{var te=-F/I;te>=0&&te<=1&&(R[X++]=te)}else{var ee=G*G-4*W*J;if(x(ee)){var be=G/W,te=-I/k+be,ge=-be/2;te>=0&&te<=1&&(R[X++]=te),ge>=0&&ge<=1&&(R[X++]=ge)}else if(ee>0){var je=S(ee),He=W*I+1.5*k*(-G+je),nt=W*I+1.5*k*(-G-je);He<0?He=-U(-He,w):He=U(He,w),nt<0?nt=-U(-nt,w):nt=U(nt,w);var te=(-I-(He+nt))/(3*k);te>=0&&te<=1&&(R[X++]=te)}else{var Ge=(2*W*I-3*k*G)/(2*S(W*W*W)),he=Math.acos(Ge)/3,ce=S(W),Ee=Math.cos(he),te=(-I-2*ce*Ee)/(3*k),ge=(-I+ce*(Ee+d*Math.sin(he)))/(3*k),fe=(-I+ce*(Ee-d*Math.sin(he)))/(3*k);te>=0&&te<=1&&(R[X++]=te),ge>=0&&ge<=1&&(R[X++]=ge),fe>=0&&fe<=1&&(R[X++]=fe)}}return X}function r(o,l,c,M,P){var R=6*c-12*l+6*o,k=9*l+3*M-3*o-9*c,I=3*l-3*o,F=0;if(x(k)){if(y(R)){var V=-I/R;V>=0&&V<=1&&(P[F++]=V)}}else{var W=R*R-4*k*I;if(x(W))P[0]=-R/(2*k);else if(W>0){var G=S(W),V=(-R+G)/(2*k),J=(-R-G)/(2*k);V>=0&&V<=1&&(P[F++]=V),J>=0&&J<=1&&(P[F++]=J)}}return F}function u(o,l,c,M,P,R){var k=(l-o)*P+o,I=(c-l)*P+l,F=(M-c)*P+c,V=(I-k)*P+k,W=(F-I)*P+I,G=(W-V)*P+V;R[0]=o,R[1]=k,R[2]=V,R[3]=G,R[4]=G,R[5]=W,R[6]=F,R[7]=M}function h(o,l,c,M,P,R,k,I,F,V,W){var G,J=.005,X=Infinity,te,ee,be,ge;p[0]=F,p[1]=V;for(var je=0;je<1;je+=.05)a[0]=m(o,c,P,k,je),a[1]=m(l,M,R,I,je),be=L(p,a),be=0&&be=0&&V<=1&&(P[F++]=V)}}else{var W=k*k-4*R*I;if(x(W)){var V=-k/(2*R);V>=0&&V<=1&&(P[F++]=V)}else if(W>0){var G=S(W),V=(-k+G)/(2*R),J=(-k-G)/(2*R);V>=0&&V<=1&&(P[F++]=V),J>=0&&J<=1&&(P[F++]=J)}}return F}function C(o,l,c){var M=o+c-2*l;return M===0?.5:(o-l)/M}function A(o,l,c,M,P){var R=(l-o)*M+o,k=(c-l)*M+l,I=(k-R)*M+R;P[0]=o,P[1]=R,P[2]=I,P[3]=I,P[4]=k,P[5]=c}function v(o,l,c,M,P,R,k,I,F){var V,W=.005,G=Infinity;p[0]=k,p[1]=I;for(var J=0;J<1;J+=.05){a[0]=b(o,c,P,J),a[1]=b(l,M,R,J);var X=L(p,a);X=0&&X=0;--h)if(u[h]===r)return!0;return!1}),i):null:i[0]},x.prototype.update=function(m,O){if(!m)return;var i=this.getDefs(!1);if(m[this._domName]&&i.contains(m[this._domName]))typeof O=="function"&&O(m);else{var r=this.add(m);r&&(m[this._domName]=r)}},x.prototype.addDom=function(m){var O=this.getDefs(!0);O.appendChild(m)},x.prototype.removeDom=function(m){var O=this.getDefs(!1);O&&m[this._domName]&&(O.removeChild(m[this._domName]),m[this._domName]=null)},x.prototype.getDoms=function(){var m=this.getDefs(!1);if(!m)return[];var O=[];return L.each(this._tagNames,function(i){var r=m.getElementsByTagName(i);O=O.concat([].slice.call(r))}),O},x.prototype.markAllUnused=function(){var m=this.getDoms(),O=this;L.each(m,function(i){i[O._markLabel]=a})},x.prototype.markUsed=function(m){m&&(m[this._markLabel]=f)},x.prototype.removeUnused=function(){var m=this.getDefs(!1);if(!m)return;var O=this.getDoms(),i=this;L.each(O,function(r){r[i._markLabel]!==f&&m.removeChild(r)})},x.prototype.getSvgProxy=function(m){return m instanceof U?d:m instanceof S?w:m instanceof g?p:d},x.prototype.getTextSvgElement=function(m){return m.__textSvgEl},x.prototype.getSvgElement=function(m){return m.__svgEl};var y=x;Ye.exports=y},T1X5:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAALdklEQVR4Xu2dC2wc1RVAzx1nDXFiO4SEhqxtxS0JHzX94TS0FEKLALX8WkKbqrRVKQrh15Zfq0IqIaSGSOXb8ktANFJbKqUFWigEAUohfFRQDC1KxS8UR/7wDbZ3TRxix3urN951No7Xnt15M7Mbz0hRImXevffds/PmzXv33StU0KWqTlcfh6mwkCHmq8M8B5oUZosyS6EeOCD7x/Rsl/kjkFJhu8AHGWiXDNuoYqsoW5K1vCkimUpxg5SzoW+r1gylOUGErygci9IC1Fi2uR+hVeA5VZ6tquOpuSL9lnVYE1d2wNo+0jnVylLNcKYKx6EcaK23XgQJH4vyjDg8OCDc3zxd3vXSLKx7ygJYW5seOGUmZ6GcJ8IShaqwHDCeHoEhVTYh3LO7mweam+XjqO2KFNjWPp09VblUlQuAmVE7YwL93SKs2SncMr9WPojK1kiAdWzXpCa40oHlCtOi6nwpegV2ZOBuGeSGxlnSVYoMP21CBfZmnx5SneFagXPzZnJ+7I+y7S6FdQMO1xxWK++HZUgowNzpeIoVKqwCDgqrcyHp6RFlZbKetWF8HgQOrD2liwTuAHdKvj9frVVTuHDuNGkNspOBAWtt1cShC1ilcLlqecz6gnSkkS3CkMBN77zBypYWGQxCXyDAuvq1KTPIeuCYIIyuAJnPOwmWJWuk3bat1oF1pfWMjLKuAqbptn05Wl63I5ybrJOHbCqyCqw9ratEucqMDjaNrGBZqsLqpjpZaasPVhyrqlVdKe5Wcafr8TXKA6KsS9azXESG/DrHN7CODp0qdaxXON2vMftze4F/aJpljY2y008/fQFr69EZCYeH3ZX0+JrQA2ZHYDDDac0HSe+ENxe4oWRg2SfriRhWca53t3HSnFTqk1YSMPedleZv8TBYHKzc3WZ4TNbxrVLeaSUB6+zV38cTjNJgjUBT1jXMkB8XK6VoYNmp+9XFKorv39cDKlxX7JS/KGDZj+K/x99Z1n5+6gjfLObj2jOw7HLTv+MVDGuwcoK6nQSf97qM5QmYWcj9xHyensRrg9YpjRL4/HtbOd7LgrEnYF1p/U1G+XnQVk9m+Y5wfbJOfjGRDyYEZvazHOFfk2WLZCKHBfX/Zmsmo3ypqV42j6djXGBmp7gzzQuTYPMxKA7Fym1tqGPxeDvX4wLr7NULVdzd4vgKyQOiXNQwQ+4spK4gMBMwc0CG1/bDGIyQXF+ymp5dDkcUCuwpCKwzpXcqbrxgfIXsAYU1TfVy4VhqxwRm4gZJ8L/9IBQtZFdbU7eLQT41VtzjmMDaU3qzwKXW1MeCivaAwi1N9XLZ6Ib7AHPDpzO0hRmR+/L78Ict8J93IT1QdN+sN6irhs/NgR8uhM8eYl28J4EmwninQ/PosPB9gHWmdZUqoS3u/uUVuPEFKMcDWg5wxWL4zlGefGz9JhGuaxgVD7IXsOwpEhMvHsrBBPNknf9IecLKed9Au+vUyJ607t3dJPNPzewFrCOl3wPutf5TKSDwio3wdF7k3imfhMNnugGZkV2q8Ho3PPbWHhOOb4IbT4zMpHMa6+XPOe17A+vVjQhfC8u0E+/d884ysH69JCzNE+v51aY90Mw7beM5E7cJ5A7ln40zZOTnMgLMnHxMDNEZ5mG6RSbcNHv9tAV+sDCQLpck9I9b4Hd5UfKbIwrgM4cKB6toyJ0EHQHWkdJLgFtL6l2JjfKB/WwRfP/TJQoKoNmf/gu/zVuGjQqY6ZrjcEmyVm43/x4B1pnSxxVOCqDvBUXGwLx5W+CJhno5eQSYe1q/jw/DPgAeA/MGDOHjqloONtkN3CesI6XfAB7x2NzabV6B3fca3LoZ+ndbU+0KmpaAn7TA0iP2lVtOQ2LWulMb62WDC6wzrdfp8CGGUC+vwL56L3wU0ArI9Gp4cowZYLkBE2F1Q51cPfyEpXUTyvGh0gK8ArvgUXgxoGwZX5gDa79eAU+Y8HRjnSyR7K5yXwAZZibk7xXYjkHY2Abmb5uXGRJPnAfTqisAGPQ31FErnWldoMrrNh3hVZZXYF7l2byv3IZEd4YoHC4dfbqUDPfZ7KxXWTEwr57K3udwtnT06i8RVhfZ1MrtMbAi3ahcJe1pXSPKiiKbWrk9BlacG1VYa95hG1QZY55UnLBS7vYK7JXtwxuc/ZYnHTWJ4U3Ko2ZVxKTDvMMelY60bs7mISzF577aeAV25l/h7Y98qSrYeO50ePDblQHMzevYmVITDjAvGHeMLzUGVpzXBbZJR0p7gBnFNbVzt1dgr+aGRMtLUzVThofEI8cYEh9/C1ZuGu7n7BrYsMxOn31K6TXAdkTx0WwM9wrMZydLaj6UgTtegje64UefgaPnlCTGdqN+A8z8biPJAFrOwGx72pK8oRiYJU+GJMYFFg+JIXnbghp3SOyO6sCD1yFxxwBs3BbA4m91dvE3YcGV4YjoqYhp/YpH4aWAtlfMZGJNJMsGxRMentZXwIdzFBuYxbszhBbuh3MFLE25IQKtwSxNmRCBs8cIEQjB/UWrcJem4sXfvf32Qhdc8jjcdjIsThbt00AbuIu/8fZK5QDDbK/EG5gVBMxsYMYhApUDzA0RqIQgnEBfDKOEl/E7bDgIx9hb7mFuMTA3qH44zM04o9wDSWNgbsRUXiBpmYdq2wZmhr1C16sfwu0vwsVHw5EHF74vgin/nlDtcjgMEeb5sPw1zFJ/DKEePxp9GMIdFiM4bhTVCUyvT9gR4zxhx4T4Ub3PcSMDrKtPL85kuK3UX1wp7fyccTaHGE5uBhP5ZPMqx1nimAf6ojgy+/J7cP6G0rMILJ4Lt51iExeUG7CCR2bd6X3Ih9KNTj95OmZOhce+u38Do9ChdBdYyGkfcq4uJRPO9ARc9kU4Y8F+DgwKp30IO7GKXVfbkVZmQ+L4iVWyH9Ghpi6y42Z7UsoJ2ISpi0y3o0gOZs/d/iWVCzDPycFMl+P0e/7B+5XgOf2eO/mIE1z69bff9sUluMw+ZXdKnELWr+NLal90ClmjJU7SXJKvbTQqLUmzO2OM06DbAFCUjJLToBstcaGBonxt42Z/hQay77K4lIcNFBPIsFLKI6cjLpYTBjGub7RRLMeYGpejChyY3XJUxty44Ftg0OwXfMsbGs/IKHFJRXvsgiupmLMxLlpqkVbQRUtzpsZlgf1Dk7DKAme/z+LC2z6YhV54210g7tCpUkdc2r5IcJGUts/Z2NajMxIODyscW6Tdk/J2A2sww2nNB0lvqQ7wXTQj+6StVzi9VCMmQzszDGqaZY2NstNPf30DM8qfVJ0yP8VdKkRUP8GPC4JvayYYyXqWi8iQX21WgI2a8pvs3Fbl+u1khO1VhdVNo0pK+bHHumO70mo+rk1VlVBKWvnpfMBtux3h3GSdPGRTj3VgectY64FjbBpbQbKedxIsS9ZIXrEtO9YHAsyYZhaMD13AKoXLJ0uVdbNFInDTO2+wsqVFLOdPHQYeGLCR91pKFwlu8e4WO7+xspXSqnDRRKXp/VofODBjoNm57kqxQoVVUeW18uuocdr3iLIyWc/a8UrS29IfCrCcsSawpzrDtYI7/T/AVicikrNLYd2AwzWFqpoHYVeowHIdMHGPmuBKB5aHWX7YhgNNRG4G7pZBbhirMLYNHePJiARYziA3LFy5VJULKuAzoFuENTuFW0bXVg4aUr78SIHlDMmemjkL5TwRloRZh3OCX/OQKpsQ7tndzQP55XnDhFR2wPINMidBq5WlmuFMFY4Lu2qgqYYnyjPi8OCAcH+uWGhUgEbrLYsnrJAz3OwGaU5AOQ6HL2cLItRYdl6/m8AfnlPl2ao6njKlCy3rsCaurIGN7qX7edDHYSosZIj56jDPgSaF2aLM0uH8+6YaWG4GugsYEOhVYbvABxlolwzbqGKrKFuStbwZxnTcFrH/A8wNv8JI/KKJAAAAAElFTkSuQmCC"},T6xi:function(Ye,ie,_){var Y=_("YgsL"),j=_("nCxF");function L(U,S,g){var s=S.points,d=S.smooth;if(s&&s.length>=2){if(d&&d!=="spline"){var w=j(s,d,g,S.smoothConstraint);U.moveTo(s[0][0],s[0][1]);for(var p=s.length,a=0;a<(g?p:p-1);a++){var f=w[a*2],x=w[a*2+1],y=s[(a+1)%p];U.bezierCurveTo(f[0],f[1],x[0],x[1],y[0],y[1])}}else{d==="spline"&&(s=Y(s,g)),U.moveTo(s[0][0],s[0][1]);for(var a=1,m=s.length;a=0){var h=r.split("!=");return d.create(h[0].trim(),this._deserializeValue(h[1],u))}if(r.indexOf("==")>=0){var h=r.split("==");return s.create(h[0].trim(),this._deserializeValue(h[1],u))}if(r.indexOf("=~")>=0){var h=r.split("=~");return p.create(h[0].trim(),this._deserializeRegexValue(h[1],u))}return/^\!\s*/.test(r)?w.create(r.substr(1).trim()):g.create(r)},i._deserializeValue=function(r,u){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var h=/^'([^']*)'$/.exec(r);return h?h[1].trim():r},i._deserializeRegexValue=function(r,u){if(Object(Y.x)(r)){if(u)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var h=r.indexOf("/"),b=r.lastIndexOf("/");if(h===b||h<0){if(u)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(h+1,b),t=r[b+1]==="i"?"i":"";try{return new RegExp(E,t)}catch(C){if(u)throw new Error("bad regexp-value '"+r+"', parse error: "+C);return console.warn("bad regexp-value '"+r+"', parse error: "+C),null}},i}();function S(i,r){var u=i.getType(),h=r.getType();if(u!==h)return u-h;switch(u){case 1:return i.cmp(r);case 2:return i.cmp(r);case 3:return i.cmp(r);case 4:return i.cmp(r);case 6:return i.cmp(r);case 7:return i.cmp(r);case 5:return i.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var g=function(){function i(r){this.key=r}return i.create=function(r){return new i(r)},i.prototype.getType=function(){return 1},i.prototype.cmp=function(r){return this.keyr.key?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key:!1},i.prototype.evaluate=function(r){return!!r.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return w.create(this.key)},i}(),s=function(){function i(r,u){this.key=r,this.value=u}return i.create=function(r,u){return typeof u=="boolean"?u?g.create(r):w.create(r):new i(r,u)},i.prototype.getType=function(){return 3},i.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key&&this.value===r.value:!1},i.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return d.create(this.key,this.value)},i}(),d=function(){function i(r,u){this.key=r,this.value=u}return i.create=function(r,u){return typeof u=="boolean"?u?w.create(r):g.create(r):new i(r,u)},i.prototype.getType=function(){return 4},i.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key&&this.value===r.value:!1},i.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return s.create(this.key,this.value)},i}(),w=function(){function i(r){this.key=r}return i.create=function(r){return new i(r)},i.prototype.getType=function(){return 2},i.prototype.cmp=function(r){return this.keyr.key?1:0},i.prototype.equals=function(r){return r instanceof i?this.key===r.key:!1},i.prototype.evaluate=function(r){return!r.getValue(this.key)},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return g.create(this.key)},i}(),p=function(){function i(r,u){this.key=r,this.regexp=u}return i.create=function(r,u){return new i(r,u)},i.prototype.getType=function(){return 6},i.prototype.cmp=function(r){if(this.keyr.key)return 1;var u=this.regexp?this.regexp.source:"",h=r.regexp?r.regexp.source:"";return uh?1:0},i.prototype.equals=function(r){if(r instanceof i){var u=this.regexp?this.regexp.source:"",h=r.regexp?r.regexp.source:"";return this.key===r.key&&u===h}return!1},i.prototype.evaluate=function(r){var u=r.getValue(this.key);return this.regexp?this.regexp.test(u):!1},i.prototype.keys=function(){return[this.key]},i.prototype.negate=function(){return a.create(this)},i}(),a=function(){function i(r){this._actual=r}return i.create=function(r){return new i(r)},i.prototype.getType=function(){return 7},i.prototype.cmp=function(r){return this._actual.cmp(r._actual)},i.prototype.equals=function(r){return r instanceof i?this._actual.equals(r._actual):!1},i.prototype.evaluate=function(r){return!this._actual.evaluate(r)},i.prototype.keys=function(){return this._actual.keys()},i.prototype.negate=function(){return this._actual},i}(),f=function(){function i(r){this.expr=r}return i.create=function(r){var u=i._normalizeArr(r);return u.length===0?void 0:u.length===1?u[0]:new i(u)},i.prototype.getType=function(){return 5},i.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var u=0,h=this.expr.length;u1;){for(var t=r.shift(),C=r.shift(),A=[],v=0,o=E(t);vS&&(f=d+w,d*=S/f,w*=S/f),p+a>S&&(f=p+a,p*=S/f,a*=S/f),w+p>g&&(f=w+p,w*=g/f,p*=g/f),d+a>g&&(f=d+a,d*=g/f,a*=g/f),Y.moveTo(L+d,U),Y.lineTo(L+S-w,U),w!==0&&Y.arc(L+S-w,U+w,w,-Math.PI/2,0),Y.lineTo(L+S,U+g-p),p!==0&&Y.arc(L+S-p,U+g-p,p,0,Math.PI/2),Y.lineTo(L+a,U+g),a!==0&&Y.arc(L+a,U+g-a,a,Math.PI/2,Math.PI),Y.lineTo(L,U+d),d!==0&&Y.arc(L+d,U+d,d,Math.PI,Math.PI*1.5)}ie.buildPath=_},"VrN/":function(Ye,ie,_){(function(Y,j){Ye.exports=j()})(this,function(){"use strict";var Y=navigator.userAgent,j=navigator.platform,L=/gecko\/\d/i.test(Y),U=/MSIE \d/.test(Y),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Y),g=/Edge\/(\d+)/.exec(Y),s=U||S||g,d=s&&(U?document.documentMode||6:+(g||S)[1]),w=!g&&/WebKit\//.test(Y),p=w&&/Qt\/\d+\.\d+/.test(Y),a=!g&&/Chrome\//.test(Y),f=/Opera\//.test(Y),x=/Apple Computer/.test(navigator.vendor),y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Y),m=/PhantomJS/.test(Y),O=!g&&/AppleWebKit/.test(Y)&&/Mobile\/\w+/.test(Y),i=/Android/.test(Y),r=O||i||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Y),u=O||/Mac/.test(j),h=/\bCrOS\b/.test(Y),b=/win/i.test(j),E=f&&Y.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,w=!0);var t=u&&(p||f&&(E==null||E<12.11)),C=L||s&&d>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var v=function(e,n){var D=e.className,T=A(n).exec(D);if(T){var N=D.slice(T.index+T[0].length);e.className=D.slice(0,T.index)+(N?T[1]+N:"")}};function o(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function l(e,n){return o(e).appendChild(n)}function c(e,n,D,T){var N=document.createElement(e);if(D&&(N.className=D),T&&(N.style.cssText=T),typeof n=="string")N.appendChild(document.createTextNode(n));else if(n)for(var Z=0;Z=n)return le+(n-Z);le+=_e-Z,le+=D-le%D,Z=_e+1}}var X=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};X.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},X.prototype.set=function(e,n){this.f=n;var D=+new Date+e;(!this.id||D=n)return T+Math.min(le,n-N);if(N+=Z-T,N+=D-N%D,T=Z+1,N>=n)return T}}var Ge=[""];function he(e){for(;Ge.length<=e;)Ge.push(ce(Ge)+" ");return Ge[e]}function ce(e){return e[e.length-1]}function Ee(e,n){for(var D=[],T=0;T"\x80"&&(e.toUpperCase()!=e.toLowerCase()||xe.test(e))}function Le(e,n){return n?n.source.indexOf("\\w")>-1&&ze(e)?!0:n.test(e):ze(e)}function Fe(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Pe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ve(e){return e.charCodeAt(0)>=768&&Pe.test(e)}function at(e,n,D){for(;(D<0?n>0:nD?-1:1;;){if(n==D)return n;var N=(n+D)/2,Z=T<0?Math.ceil(N):Math.floor(N);if(Z==n)return e(Z)?n:D;e(Z)?D=Z:n=Z+T}}function Rt(e,n,D,T){if(!e)return T(n,D,"ltr",0);for(var N=!1,Z=0;Zn||n==D&&le.to==n)&&(T(Math.max(le.from,n),Math.min(le.to,D),le.level==1?"rtl":"ltr",Z),N=!0)}N||T(n,D,"ltr")}var tn=null;function Qt(e,n,D){var T;tn=null;for(var N=0;Nn)return N;Z.to==n&&(Z.from!=Z.to&&D=="before"?T=N:tn=N),Z.from==n&&(Z.from!=Z.to&&D!="before"?T=N:tn=N)}return T!=null?T:tn}var Cn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function D(We){return We<=247?e.charAt(We):1424<=We&&We<=1524?"R":1536<=We&&We<=1785?n.charAt(We-1536):1774<=We&&We<=2220?"r":8192<=We&&We<=8203?"w":We==8204?"b":"L"}var T=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,N=/[stwN]/,Z=/[LRr]/,le=/[Lb1n]/,_e=/[1n]/;function Re(We,Ot,Wt){this.level=We,this.from=Ot,this.to=Wt}return function(We,Ot){var Wt=Ot=="ltr"?"L":"R";if(We.length==0||Ot=="ltr"&&!T.test(We))return!1;for(var gn=We.length,ln=[],er=0;er-1&&(T[n]=N.slice(0,Z).concat(N.slice(Z+1)))}}}function Tt(e,n){var D=Ht(e,n);if(!D.length)return;for(var T=Array.prototype.slice.call(arguments,2),N=0;N0}function Xe(e){e.prototype.on=function(n,D){lt(this,n,D)},e.prototype.off=function(n,D){sn(this,n,D)}}function Oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ae(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ye(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Se(e){Oe(e),Ae(e)}function dt(e){return e.target||e.srcElement}function et(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),u&&e.ctrlKey&&n==1&&(n=3),n}var xt=function(){if(s&&d<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),xn;function Dt(e){if(xn==null){var n=c("span","\u200B");l(e,c("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(xn=n.offsetWidth<=1&&n.offsetHeight>2&&!(s&&d<8))}var D=xn?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return D.setAttribute("cm-text",""),D}var _t;function mn(e){if(_t!=null)return _t;var n=l(e,document.createTextNode("A\u062EA")),D=P(n,0,1).getBoundingClientRect(),T=P(n,1,2).getBoundingClientRect();return o(e),!D||D.left==D.right?!1:_t=T.right-D.right<3}var pe=` b`.split(/\n/).length!=3?function(e){for(var n=0,D=[],T=e.length;n<=T;){var N=e.indexOf(` -`,n);N==-1&&(N=e.length);var Z=e.slice(n,e.charAt(N-1)=="\r"?N-1:N),le=Z.indexOf("\r");le!=-1?(D.push(Z.slice(0,le)),n+=le+1):(D.push(Z),n=N+1)}return D}:function(e){return e.split(/\r\n?|\n/)},Gt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(D){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Lt=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Be=null;function ot(e){if(Be!=null)return Be;var n=l(e,c("span","x")),D=n.getBoundingClientRect(),T=P(n,0,1).getBoundingClientRect();return Be=Math.abs(D.left-T.left)>1}var Xt={},Pt={};function $t(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Xt[e]=n}function Zt(e,n){Pt[e]=n}function bt(e){if(typeof e=="string"&&Pt.hasOwnProperty(e))e=Pt[e];else if(e&&typeof e.name=="string"&&Pt.hasOwnProperty(e.name)){var n=Pt[e.name];typeof n=="string"&&(n={name:n}),e=Ce(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return bt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return bt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ft(e,n){n=bt(n);var D=Xt[n.name];if(!D)return ft(e,"text/plain");var T=D(e,n);if(Nt.hasOwnProperty(n.name)){var N=Nt[n.name];for(var Z in N){if(!N.hasOwnProperty(Z))continue;T.hasOwnProperty(Z)&&(T["_"+Z]=T[Z]),T[Z]=N[Z]}}if(T.name=n.name,n.helperType&&(T.helperType=n.helperType),n.modeProps)for(var le in n.modeProps)T[le]=n.modeProps[le];return T}var Nt={};function jt(e,n){var D=Nt.hasOwnProperty(e)?Nt[e]:Nt[e]={};G(n,D)}function bn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var D={};for(var T in n){var N=n[T];N instanceof Array&&(N=N.concat([])),D[T]=N}return D}function Te(e,n){for(var D;e.innerMode&&!(D=e.innerMode(n),!D||D.mode==e);)n=D.state,e=D.mode;return D||{mode:e,state:n}}function ve(e,n,D){return e.startState?e.startState(n,D):!0}var Q=function(e,n,D){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=D};Q.prototype.eol=function(){return this.pos>=this.string.length},Q.prototype.sol=function(){return this.pos==this.lineStart},Q.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Q.prototype.next=function(){if(this.posn},Q.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Q.prototype.skipToEnd=function(){this.pos=this.string.length},Q.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},Q.prototype.backUp=function(e){this.pos-=e},Q.prototype.column=function(){return this.lastColumnPos0?null:(Z&&n!==!1&&(this.pos+=Z[0].length),Z)}},Q.prototype.current=function(){return this.string.slice(this.start,this.pos)},Q.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},Q.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},Q.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function $(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var D=e;!D.lines;)for(var T=0;;++T){var N=D.children[T],Z=N.chunkSize();if(n=e.first&&nD?St(D,$(e,D).text.length):H(n,$(e,n.line).text.length)}function H(e,n){var D=e.ch;return D==null||D>n?St(e.line,n):D<0?St(e.line,0):e}function ae(e,n){for(var D=[],T=0;Tthis.maxLookAhead&&(this.maxLookAhead=e),n},oe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},oe.fromSaved=function(e,n,D){return n instanceof ue?new oe(e,bn(e.mode,n.state),D,n.lookAhead):new oe(e,bn(e.mode,n),D)},oe.prototype.save=function(e){var n=e!==!1?bn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(n,this.maxLookAhead):n};function ht(e,n,D,T){var N=[e.state.modeGen],Z={};Kn(e,n.text,e.doc.mode,D,function(We,Ot){return N.push(We,Ot)},Z,T);for(var le=D.state,_e=function(We){D.baseTokens=N;var Ot=e.state.overlays[We],Wt=1,gn=0;D.state=!0,Kn(e,n.text,Ot.mode,D,function(ln,er){for(var br=Wt;gnln&&N.splice(Wt,1,ln,N[Wt+1],Ur),Wt+=2,gn=Math.min(ln,Ur)}if(!er)return;if(Ot.opaque)N.splice(br,Wt-br,ln,"overlay "+er),Wt=br+2;else for(;bre.options.maxHighlightLength&&bn(e.doc.mode,T.state),Z=ht(e,n,T);N&&(T.state=N),n.stateAfter=T.save(!N),n.styles=Z.styles,Z.classes?n.styleClasses=Z.classes:n.styleClasses&&(n.styleClasses=null),D===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function Tn(e,n,D){var T=e.doc,N=e.display;if(!T.mode.startState)return new oe(T,!0,n);var Z=ir(e,n,D),le=Z>T.first&&$(T,Z-1).stateAfter,_e=le?oe.fromSaved(T,le,Z):new oe(T,ve(T.mode),Z);return T.iter(Z,n,function(Re){cr(e,Re.text,_e);var We=_e.line;Re.stateAfter=We==n-1||We%5==0||We>=N.viewFrom&&Wen.start)return Z}throw new Error("Mode "+e.name+" failed to advance stream.")}var Jt=function(e,n,D){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=D};function Fn(e,n,D,T){var N=e.doc,Z=N.mode,le;n=B(N,n);var _e=$(N,n.line),Re=Tn(e,n.line,D),We=new Q(_e.text,e.options.tabSize,Re),Ot;for(T&&(Ot=[]);(T||We.pose.options.maxHighlightLength?(_e=!1,le&&cr(e,n,T,Ot.pos),Ot.pos=n.length,Wt=null):Wt=Vn(Et(D,Ot,T.state,gn),Z),gn){var ln=gn[0].name;ln&&(Wt="m-"+(Wt?ln+" "+Wt:ln))}if(!_e||We!=Wt){for(;Rele;--_e){if(_e<=Z.first)return Z.first;var Re=$(Z,_e-1),We=Re.stateAfter;if(We&&(!D||_e+(We instanceof ue?We.lookAhead:0)<=Z.modeFrontier))return _e;var Ot=J(Re.text,null,e.options.tabSize);(N==null||T>Ot)&&(N=_e-1,T=Ot)}return N}function jr(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),e.highlightFrontierD;T--){var N=$(e,T).stateAfter;if(N&&(!(N instanceof ue)||T+N.lookAhead=n:Z.to>n);(T||(T=[])).push(new fr(le,Z.from,Re?null:Z.to))}}return T}function pr(e,n,D){var T;if(e)for(var N=0;N=n:Z.to>n);if(_e||Z.from==n&&le.type=="bookmark"&&(!D||Z.marker.insertLeft)){var Re=Z.from==null||(le.inclusiveLeft?Z.from<=n:Z.from0&&_e)for(var _a=0;_a<_e.length;++_a)_e[_a].to==null&&(ta||(ta=[])).push(new fr(_e[_a].marker,null,null));for(var ja=0;ja0)continue;var Ot=[Re,1],Wt=an(We.from,_e.from),gn=an(We.to,_e.to);(Wt<0||!le.inclusiveLeft&&!Wt)&&Ot.push({from:We.from,to:_e.from}),(gn>0||!le.inclusiveRight&&!gn)&&Ot.push({from:_e.to,to:We.to}),N.splice.apply(N,Ot),Re+=Ot.length-3}return N}function rt(e){var n=e.markedSpans;if(!n)return;for(var D=0;Dn)&&(!T||Yt(T,Z.marker)<0)&&(T=Z.marker)}return T}function Mn(e,n,D,T,N){var Z=$(e,n),le=Yr&&Z.markedSpans;if(le)for(var _e=0;_e=0&&Wt<=0||Ot<=0&&Wt>=0)continue;if(Ot<=0&&(Re.marker.inclusiveRight&&N.inclusiveLeft?an(We.to,D)>=0:an(We.to,D)>0)||Ot>=0&&(Re.marker.inclusiveRight&&N.inclusiveLeft?an(We.from,T)<=0:an(We.from,T)<0))return!0}}function fn(e){for(var n;n=_n(e);)e=n.find(-1,!0).line;return e}function Hn(e){for(var n;n=cn(e);)e=n.find(1,!0).line;return e}function Xn(e){for(var n,D;n=cn(e);)e=n.find(1,!0).line,(D||(D=[])).push(e);return D}function $n(e,n){var D=$(e,n),T=fn(D);return D==T?n:it(T)}function Yn(e,n){if(n>e.lastLine())return n;var D=$(e,n),T;if(!_r(e,D))return n;for(;T=cn(D);)D=T.find(1,!0).line;return it(D)+1}function _r(e,n){var D=Yr&&n.markedSpans;if(D)for(var T=void 0,N=0;Nn.maxLineLength&&(n.maxLineLength=N,n.maxLine=T)})}var sr=function(e,n,D){this.text=e,ut(this,n),this.height=D?D(this):1};sr.prototype.lineNo=function(){return it(this)},Xe(sr);function ia(e,n,D,T){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),rt(e),ut(e,D);var N=T?T(e):1;N!=e.height&&Ue(e,N)}function Ea(e){e.parent=null,rt(e)}var Cr={},kr={};function Zr(e,n){if(!e||/^\s*$/.test(e))return null;var D=n.addModeClass?kr:Cr;return D[e]||(D[e]=e.replace(/\S+/g,"cm-$&"))}function Qr(e,n){var D=M("span",null,null,w?"padding-right: .1px":null),T={pre:M("pre",[D],"CodeMirror-line"),content:D,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var N=0;N<=(n.rest?n.rest.length:0);N++){var Z=N?n.rest[N-1]:n.line,le=void 0;T.pos=0,T.addToken=Ta,mn(e.display.measure)&&(le=Un(Z,e.doc.direction))&&(T.addToken=Fa(T.addToken,le)),T.map=[];var _e=n!=e.display.externalMeasured&&it(Z);tr(Z,T,vn(e,Z,_e)),Z.styleClasses&&(Z.styleClasses.bgClass&&(T.bgClass=F(Z.styleClasses.bgClass,T.bgClass||"")),Z.styleClasses.textClass&&(T.textClass=F(Z.styleClasses.textClass,T.textClass||""))),T.map.length==0&&T.map.push(0,0,T.content.appendChild(Dt(e.display.measure))),N==0?(n.measure.map=T.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(T.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(w){var Re=T.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(T.content.className="cm-tab-wrap-hack")}return Tt(e,"renderLine",e,n.line,T.pre),T.pre.className&&(T.textClass=F(T.pre.className,T.textClass||"")),T}function Aa(e){var n=c("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ta(e,n,D,T,N,Z,le){if(!n)return;var _e=e.splitSpaces?ga(n,e.trailingSpace):n,Re=e.cm.state.specialChars,We=!1,Ot;if(!Re.test(n))e.col+=n.length,Ot=document.createTextNode(_e),e.map.push(e.pos,e.pos+n.length,Ot),s&&d<9&&(We=!0),e.pos+=n.length;else{Ot=document.createDocumentFragment();for(var Wt=0;;){Re.lastIndex=Wt;var gn=Re.exec(n),ln=gn?gn.index-Wt:n.length-Wt;if(ln){var er=document.createTextNode(_e.slice(Wt,Wt+ln));s&&d<9?Ot.appendChild(c("span",[er])):Ot.appendChild(er),e.map.push(e.pos,e.pos+ln,er),e.col+=ln,e.pos+=ln}if(!gn)break;Wt+=ln+1;var br=void 0;if(gn[0]==" "){var Ur=e.cm.options.tabSize,ea=Ur-e.col%Ur;br=Ot.appendChild(c("span",he(ea),"cm-tab")),br.setAttribute("role","presentation"),br.setAttribute("cm-text"," "),e.col+=ea}else gn[0]=="\r"||gn[0]==` -`?(br=Ot.appendChild(c("span",gn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),br.setAttribute("cm-text",gn[0]),e.col+=1):(br=e.cm.options.specialCharPlaceholder(gn[0]),br.setAttribute("cm-text",gn[0]),s&&d<9?Ot.appendChild(c("span",[br])):Ot.appendChild(br),e.col+=1);e.map.push(e.pos,e.pos+1,br),e.pos++}}if(e.trailingSpace=_e.charCodeAt(n.length-1)==32,D||T||N||We||Z||le){var ca=D||"";T&&(ca+=T),N&&(ca+=N);var ta=c("span",[Ot],ca,Z);if(le)for(var _a in le)le.hasOwnProperty(_a)&&_a!="style"&&_a!="class"&&ta.setAttribute(_a,le[_a]);return e.content.appendChild(ta)}e.content.appendChild(Ot)}function ga(e,n){if(e.length>1&&!/ /.test(e))return e;for(var D=n,T="",N=0;NWe&&Wt.from<=We);gn++);if(Wt.to>=Ot)return e(D,T,N,Z,le,_e,Re);e(D,T.slice(0,Wt.to-We),N,Z,null,_e,Re),Z=null,T=T.slice(Wt.to-We),We=Wt.to}}}function Va(e,n,D,T){var N=!T&&D.widgetNode;N&&e.map.push(e.pos,e.pos+n,N),!T&&e.cm.display.input.needsContentAttribute&&(N||(N=e.content.appendChild(document.createElement("span"))),N.setAttribute("cm-marker",D.id)),N&&(e.cm.display.input.setUneditable(N),e.content.appendChild(N)),e.pos+=n,e.trailingSpace=!1}function tr(e,n,D){var T=e.markedSpans,N=e.text,Z=0;if(!T){for(var le=1;leRe||Xa.collapsed&&Pa.to==Re&&Pa.from==Re)){if(Pa.to!=null&&Pa.to!=Re&&ln>Pa.to&&(ln=Pa.to,br=""),Xa.className&&(er+=" "+Xa.className),Xa.css&&(gn=(gn?gn+";":"")+Xa.css),Xa.startStyle&&Pa.from==Re&&(Ur+=" "+Xa.startStyle),Xa.endStyle&&Pa.to==ln&&(_a||(_a=[])).push(Xa.endStyle,Pa.to),Xa.title&&((ca||(ca={})).title=Xa.title),Xa.attributes)for(var hi in Xa.attributes)(ca||(ca={}))[hi]=Xa.attributes[hi];Xa.collapsed&&(!ea||Yt(ea.marker,Xa)<0)&&(ea=Pa)}else Pa.from>Re&&ln>Pa.from&&(ln=Pa.from)}if(_a)for(var Wi=0;Wi<_a.length;Wi+=2)_a[Wi+1]==ln&&(br+=" "+_a[Wi]);if(!ea||ea.from==Re)for(var Si=0;Si=_e)break;for(var Co=Math.min(_e,ln);;){if(Ot){var uo=Re+Ot.length;if(!ea){var Li=uo>Co?Ot.slice(0,Co-Re):Ot;n.addToken(n,Li,Wt?Wt+er:er,Ur,Re+Li.length==ln?br:"",gn,ca)}if(uo>=Co){Ot=Ot.slice(Co-Re),Re=Co;break}Re=uo,Ur=""}Ot=N.slice(Z,Z=D[We++]),Wt=Zr(D[We++],n.cm.options)}}}function In(e,n,D){this.line=n,this.rest=Xn(n),this.size=this.rest?it(ce(this.rest))-D+1:1,this.node=this.text=null,this.hidden=_r(e,n)}function En(e,n,D){for(var T=[],N,Z=n;Z2&&Z.push((Re.bottom+We.top)/2-D.top)}}Z.push(D.bottom-D.top)}}function De(e,n,D){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};for(var T=0;TD)return{map:e.measure.maps[N],cache:e.measure.caches[N],before:!0}}function st(e,n){n=fn(n);var D=it(n),T=e.display.externalMeasured=new In(e.doc,n,D);T.lineN=D;var N=T.built=Qr(e,T);return T.text=N.pre,l(e.display.lineMeasure,N.pre),T}function ct(e,n,D,T){return zt(e,gt(e,n),D,T)}function Bt(e,n){if(n>=e.display.viewFrom&&n=D.lineN&&nn)&&(Z=Re-_e,N=Z-1,n>=Re&&(le="right")),N!=null){if(T=e[We+2],_e==Re&&D==(T.insertLeft?"left":"right")&&(le=D),D=="left"&&N==0)for(;We&&e[We-2]==e[We-3]&&e[We-1].insertLeft;)T=e[(We-=3)+2],le="left";if(D=="right"&&N==Re-_e)for(;We=0&&!((D=e[N]).left!=D.right);N--);return D}function zn(e,n,D,T){var N=on(n.map,D,T),Z=N.node,le=N.start,_e=N.end,Re=N.collapse,We;if(Z.nodeType==3){for(var Ot=0;Ot<4;Ot++){for(;le&&Ve(n.line.text.charAt(N.coverStart+le));)--le;for(;N.coverStart+_e0&&(Re=T="right");var Wt;e.options.lineWrapping&&(Wt=Z.getClientRects()).length>1?We=Wt[T=="right"?Wt.length-1:0]:We=Z.getBoundingClientRect()}if(s&&d<9&&!le&&(!We||!We.left&&!We.right)){var gn=Z.parentNode.getClientRects()[0];gn?We={left:gn.left,right:gn.left+Rr(e.display),top:gn.top,bottom:gn.bottom}:We=Ft}for(var ln=We.top-n.rect.top,er=We.bottom-n.rect.top,br=(ln+er)/2,Ur=n.view.measure.heights,ea=0;ea=T.text.length?(Re=T.text.length,We="before"):Re<=0&&(Re=0,We="after"),!_e)return le(We=="before"?Re-1:Re,We=="before");function Ot(er,br,Ur){var ea=_e[br],ca=ea.level==1;return le(Ur?er-1:er,ca!=Ur)}var Wt=Qt(_e,Re,We),gn=tn,ln=Ot(Re,Wt,We=="before");return gn!=null&&(ln.other=Ot(Re,gn,We!="before")),ln}function Rn(e,n){var D=0;n=B(e.doc,n),e.options.lineWrapping||(D=Rr(e.display)*n.ch);var T=$(e.doc,n.line),N=lr(T)+Mr(e.display);return{left:D,right:D,top:N,bottom:N+T.height}}function xr(e,n,D,T,N){var Z=St(e,n,D);return Z.xRel=N,T&&(Z.outside=T),Z}function Ca(e,n,D){var T=e.doc;if(D+=e.display.viewOffset,D<0)return xr(T.first,0,null,-1,-1);var N=Mt(T,D),Z=T.first+T.size-1;if(N>Z)return xr(T.first+T.size-1,$(T,Z).text.length,null,1,1);n<0&&(n=0);for(var le=$(T,N);;){var _e=Vr(e,le,N,n,D),Re=ur(le,_e.ch+(_e.xRel>0||_e.outside>0?1:0));if(!Re)return _e;var We=Re.find(1);if(We.line==N)return We;le=$(T,N=We.line)}}function Nr(e,n,D,T){T-=oa(n);var N=n.text.length,Z=At(function(le){return zt(e,D,le-1).bottom<=T},N,0);return N=At(function(le){return zt(e,D,le).top>T},Z,N),{begin:Z,end:N}}function Sr(e,n,D,T){D||(D=gt(e,n));var N=ba(e,n,zt(e,D,T),"line").top;return Nr(e,n,D,N)}function xa(e,n,D,T){return e.bottom<=D?!1:e.top>D?!0:(T?e.left:e.right)>n}function Vr(e,n,D,T,N){N-=lr(n);var Z=gt(e,n),le=oa(n),_e=0,Re=n.text.length,We=!0,Ot=Un(n,e.doc.direction);if(Ot){var Wt=(e.options.lineWrapping?Fr:nr)(e,n,D,Z,Ot,T,N);We=Wt.level!=1,_e=We?Wt.from:Wt.to-1,Re=We?Wt.to:Wt.from-1}var gn=null,ln=null,er=At(function(ja){var Pa=zt(e,Z,ja);return Pa.top+=le,Pa.bottom+=le,xa(Pa,T,N,!1)?(Pa.top<=N&&Pa.left<=T&&(gn=ja,ln=Pa),!0):!1},_e,Re),br,Ur,ea=!1;if(ln){var ca=T-ln.left=_a.bottom?1:0}return er=at(n.text,er,1),xr(D,er,Ur,ea,T-br)}function nr(e,n,D,T,N,Z,le){var _e=At(function(Wt){var gn=N[Wt],ln=gn.level!=1;return xa(un(e,St(D,ln?gn.to:gn.from,ln?"before":"after"),"line",n,T),Z,le,!0)},0,N.length-1),Re=N[_e];if(_e>0){var We=Re.level!=1,Ot=un(e,St(D,We?Re.from:Re.to,We?"after":"before"),"line",n,T);xa(Ot,Z,le,!0)&&Ot.top>le&&(Re=N[_e-1])}return Re}function Fr(e,n,D,T,N,Z,le){var _e=Nr(e,n,T,le),Re=_e.begin,We=_e.end;/\s/.test(n.text.charAt(We-1))&&We--;for(var Ot=null,Wt=null,gn=0;gn=We||ln.to<=Re)continue;var er=ln.level!=1,br=zt(e,T,er?Math.min(We,ln.to)-1:Math.max(Re,ln.from)).right,Ur=brUr)&&(Ot=ln,Wt=Ur)}return Ot||(Ot=N[N.length-1]),Ot.fromWe&&(Ot={from:Ot.from,to:We,level:Ot.level}),Ot}var Wn;function pn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Wn==null){Wn=c("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Wn.appendChild(document.createTextNode("x")),Wn.appendChild(c("br"));Wn.appendChild(document.createTextNode("x"))}l(e.measure,Wn);var D=Wn.offsetHeight/50;return D>3&&(e.cachedTextHeight=D),o(e.measure),D||1}function Rr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=c("span","xxxxxxxxxx"),D=c("pre",[n],"CodeMirror-line-like");l(e.measure,D);var T=n.getBoundingClientRect(),N=(T.right-T.left)/10;return N>2&&(e.cachedCharWidth=N),N||10}function qn(e){for(var n=e.display,D={},T={},N=n.gutters.clientLeft,Z=n.gutters.firstChild,le=0;Z;Z=Z.nextSibling,++le){var _e=e.display.gutterSpecs[le].className;D[_e]=Z.offsetLeft+Z.clientLeft+N,T[_e]=Z.clientWidth}return{fixedPos:Ar(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:D,gutterWidth:T,wrapperWidth:n.wrapper.clientWidth}}function Ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Da(e){var n=pn(e.display),D=e.options.lineWrapping,T=D&&Math.max(5,e.display.scroller.clientWidth/Rr(e.display)-3);return function(N){if(_r(e.doc,N))return 0;var Z=0;if(N.widgets)for(var le=0;le0&&(We=$(e.doc,Re.line).text).length==Re.ch){var Ot=J(We,We.length,e.options.tabSize)-We.length;Re=St(Re.line,Math.max(0,Math.round((Z-pt(e.display).left)/Rr(e.display))-Ot))}return Re}function Br(e,n){if(n>=e.display.viewTo)return null;if(n-=e.display.viewFrom,n<0)return null;for(var D=e.display.view,T=0;Tn)&&(N.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=N.viewTo)Yr&&$n(e.doc,n)N.viewFrom?Na(e):(N.viewFrom+=T,N.viewTo+=T);else if(n<=N.viewFrom&&D>=N.viewTo)Na(e);else if(n<=N.viewFrom){var Z=qa(e,D,D+T,1);Z?(N.view=N.view.slice(Z.index),N.viewFrom=Z.lineN,N.viewTo+=T):Na(e)}else if(D>=N.viewTo){var le=qa(e,n,n,-1);le?(N.view=N.view.slice(0,le.index),N.viewTo=le.lineN):Na(e)}else{var _e=qa(e,n,n,-1),Re=qa(e,D,D+T,1);_e&&Re?(N.view=N.view.slice(0,_e.index).concat(En(e,_e.lineN,Re.lineN)).concat(N.view.slice(Re.index)),N.viewTo+=T):Na(e)}var We=N.externalMeasured;We&&(D=N.lineN&&n=T.viewTo)return;var Z=T.view[Br(e,n)];if(Z.node==null)return;var le=Z.changes||(Z.changes=[]);te(le,D)==-1&&le.push(D)}function Na(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qa(e,n,D,T){var N=Br(e,n),Z,le=e.display.view;if(!Yr||D==e.doc.first+e.doc.size)return{index:N,lineN:D};for(var _e=e.display.viewFrom,Re=0;Re0){if(N==le.length-1)return null;Z=_e+le[N].size-n,N++}else Z=_e-n;n+=Z,D+=Z}for(;$n(e.doc,D)!=D;){if(N==(T<0?0:le.length-1))return null;D+=T*le[N-(T<0?1:0)].size,N+=T}return{index:N,lineN:D}}function ii(e,n,D){var T=e.display,N=T.view;N.length==0||n>=T.viewTo||D<=T.viewFrom?(T.view=En(e,n,D),T.viewFrom=n):(T.viewFrom>n?T.view=En(e,n,T.viewFrom).concat(T.view):T.viewFromD&&(T.view=T.view.slice(0,Br(e,D)))),T.viewTo=D}function ri(e){for(var n=e.display.view,D=0,T=0;T=e.display.viewTo||_e.to().line0?n.blinker=setInterval(function(){e.hasFocus()||Zi(e),n.cursorDiv.style.visibility=(D=!D)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}function Ji(e){e.state.focused||(e.display.input.focus(),Ii(e))}function wo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zi(e))},100)}function Ii(e,n){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Tt(e,"focus",e,n),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),w&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ui(e)}function Zi(e,n){if(e.state.delayingBlurEvent)return;e.state.focused&&(Tt(e,"blur",e,n),e.state.focused=!1,v(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function qi(e){for(var n=e.display,D=n.lineDiv.offsetTop,T=0;T.005||Ot<-.005)&&(Ue(N.line,le),wi(N.line),N.rest))for(var Wt=0;Wte.display.sizerWidth){var gn=Math.ceil(_e/Rr(e.display));gn>e.display.maxLineLength&&(e.display.maxLineLength=gn,e.display.maxLine=N.line,e.display.maxLineChanged=!0)}}}function wi(e){if(e.widgets)for(var n=0;n=le&&(Z=Mt(n,lr($(n,Re))-e.wrapper.clientHeight),le=Re)}return{from:Z,to:Math.max(le,Z+1)}}function ho(e,n){if(wt(e,"scrollCursorIntoView"))return;var D=e.display,T=D.sizer.getBoundingClientRect(),N=null;if(n.top+T.top<0?N=!0:n.bottom+T.top>(window.innerHeight||document.documentElement.clientHeight)&&(N=!1),N!=null&&!m){var Z=c("div","\u200B",null,`position: absolute; +`,n);N==-1&&(N=e.length);var Z=e.slice(n,e.charAt(N-1)=="\r"?N-1:N),le=Z.indexOf("\r");le!=-1?(D.push(Z.slice(0,le)),n+=le+1):(D.push(Z),n=N+1)}return D}:function(e){return e.split(/\r\n?|\n/)},Gt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(D){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Lt=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Be=null;function ot(e){if(Be!=null)return Be;var n=l(e,c("span","x")),D=n.getBoundingClientRect(),T=P(n,0,1).getBoundingClientRect();return Be=Math.abs(D.left-T.left)>1}var Xt={},Pt={};function $t(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Xt[e]=n}function Zt(e,n){Pt[e]=n}function bt(e){if(typeof e=="string"&&Pt.hasOwnProperty(e))e=Pt[e];else if(e&&typeof e.name=="string"&&Pt.hasOwnProperty(e.name)){var n=Pt[e.name];typeof n=="string"&&(n={name:n}),e=Ce(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return bt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return bt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ft(e,n){n=bt(n);var D=Xt[n.name];if(!D)return ft(e,"text/plain");var T=D(e,n);if(Nt.hasOwnProperty(n.name)){var N=Nt[n.name];for(var Z in N){if(!N.hasOwnProperty(Z))continue;T.hasOwnProperty(Z)&&(T["_"+Z]=T[Z]),T[Z]=N[Z]}}if(T.name=n.name,n.helperType&&(T.helperType=n.helperType),n.modeProps)for(var le in n.modeProps)T[le]=n.modeProps[le];return T}var Nt={};function jt(e,n){var D=Nt.hasOwnProperty(e)?Nt[e]:Nt[e]={};G(n,D)}function bn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var D={};for(var T in n){var N=n[T];N instanceof Array&&(N=N.concat([])),D[T]=N}return D}function Te(e,n){for(var D;e.innerMode&&!(D=e.innerMode(n),!D||D.mode==e);)n=D.state,e=D.mode;return D||{mode:e,state:n}}function ve(e,n,D){return e.startState?e.startState(n,D):!0}var Q=function(e,n,D){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=D};Q.prototype.eol=function(){return this.pos>=this.string.length},Q.prototype.sol=function(){return this.pos==this.lineStart},Q.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Q.prototype.next=function(){if(this.posn},Q.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Q.prototype.skipToEnd=function(){this.pos=this.string.length},Q.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},Q.prototype.backUp=function(e){this.pos-=e},Q.prototype.column=function(){return this.lastColumnPos0?null:(Z&&n!==!1&&(this.pos+=Z[0].length),Z)}},Q.prototype.current=function(){return this.string.slice(this.start,this.pos)},Q.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},Q.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},Q.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function $(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var D=e;!D.lines;)for(var T=0;;++T){var N=D.children[T],Z=N.chunkSize();if(n=e.first&&nD?St(D,$(e,D).text.length):H(n,$(e,n.line).text.length)}function H(e,n){var D=e.ch;return D==null||D>n?St(e.line,n):D<0?St(e.line,0):e}function ae(e,n){for(var D=[],T=0;Tthis.maxLookAhead&&(this.maxLookAhead=e),n},oe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},oe.fromSaved=function(e,n,D){return n instanceof ue?new oe(e,bn(e.mode,n.state),D,n.lookAhead):new oe(e,bn(e.mode,n),D)},oe.prototype.save=function(e){var n=e!==!1?bn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(n,this.maxLookAhead):n};function ht(e,n,D,T){var N=[e.state.modeGen],Z={};Kn(e,n.text,e.doc.mode,D,function(We,Ot){return N.push(We,Ot)},Z,T);for(var le=D.state,_e=function(We){D.baseTokens=N;var Ot=e.state.overlays[We],Wt=1,gn=0;D.state=!0,Kn(e,n.text,Ot.mode,D,function(ln,er){for(var br=Wt;gnln&&N.splice(Wt,1,ln,N[Wt+1],Ur),Wt+=2,gn=Math.min(ln,Ur)}if(!er)return;if(Ot.opaque)N.splice(br,Wt-br,ln,"overlay "+er),Wt=br+2;else for(;bre.options.maxHighlightLength&&bn(e.doc.mode,T.state),Z=ht(e,n,T);N&&(T.state=N),n.stateAfter=T.save(!N),n.styles=Z.styles,Z.classes?n.styleClasses=Z.classes:n.styleClasses&&(n.styleClasses=null),D===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function Tn(e,n,D){var T=e.doc,N=e.display;if(!T.mode.startState)return new oe(T,!0,n);var Z=ir(e,n,D),le=Z>T.first&&$(T,Z-1).stateAfter,_e=le?oe.fromSaved(T,le,Z):new oe(T,ve(T.mode),Z);return T.iter(Z,n,function(Re){fr(e,Re.text,_e);var We=_e.line;Re.stateAfter=We==n-1||We%5==0||We>=N.viewFrom&&Wen.start)return Z}throw new Error("Mode "+e.name+" failed to advance stream.")}var Jt=function(e,n,D){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=D};function Fn(e,n,D,T){var N=e.doc,Z=N.mode,le;n=B(N,n);var _e=$(N,n.line),Re=Tn(e,n.line,D),We=new Q(_e.text,e.options.tabSize,Re),Ot;for(T&&(Ot=[]);(T||We.pose.options.maxHighlightLength?(_e=!1,le&&fr(e,n,T,Ot.pos),Ot.pos=n.length,Wt=null):Wt=Vn(Et(D,Ot,T.state,gn),Z),gn){var ln=gn[0].name;ln&&(Wt="m-"+(Wt?ln+" "+Wt:ln))}if(!_e||We!=Wt){for(;Rele;--_e){if(_e<=Z.first)return Z.first;var Re=$(Z,_e-1),We=Re.stateAfter;if(We&&(!D||_e+(We instanceof ue?We.lookAhead:0)<=Z.modeFrontier))return _e;var Ot=J(Re.text,null,e.options.tabSize);(N==null||T>Ot)&&(N=_e-1,T=Ot)}return N}function jr(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),e.highlightFrontierD;T--){var N=$(e,T).stateAfter;if(N&&(!(N instanceof ue)||T+N.lookAhead=n:Z.to>n);(T||(T=[])).push(new hr(le,Z.from,Re?null:Z.to))}}return T}function pr(e,n,D){var T;if(e)for(var N=0;N=n:Z.to>n);if(_e||Z.from==n&&le.type=="bookmark"&&(!D||Z.marker.insertLeft)){var Re=Z.from==null||(le.inclusiveLeft?Z.from<=n:Z.from0&&_e)for(var _a=0;_a<_e.length;++_a)_e[_a].to==null&&(ta||(ta=[])).push(new hr(_e[_a].marker,null,null));for(var Ba=0;Ba0)continue;var Ot=[Re,1],Wt=an(We.from,_e.from),gn=an(We.to,_e.to);(Wt<0||!le.inclusiveLeft&&!Wt)&&Ot.push({from:We.from,to:_e.from}),(gn>0||!le.inclusiveRight&&!gn)&&Ot.push({from:_e.to,to:We.to}),N.splice.apply(N,Ot),Re+=Ot.length-3}return N}function rt(e){var n=e.markedSpans;if(!n)return;for(var D=0;Dn)&&(!T||Yt(T,Z.marker)<0)&&(T=Z.marker)}return T}function Mn(e,n,D,T,N){var Z=$(e,n),le=Yr&&Z.markedSpans;if(le)for(var _e=0;_e=0&&Wt<=0||Ot<=0&&Wt>=0)continue;if(Ot<=0&&(Re.marker.inclusiveRight&&N.inclusiveLeft?an(We.to,D)>=0:an(We.to,D)>0)||Ot>=0&&(Re.marker.inclusiveRight&&N.inclusiveLeft?an(We.from,T)<=0:an(We.from,T)<0))return!0}}function fn(e){for(var n;n=_n(e);)e=n.find(-1,!0).line;return e}function Hn(e){for(var n;n=cn(e);)e=n.find(1,!0).line;return e}function Xn(e){for(var n,D;n=cn(e);)e=n.find(1,!0).line,(D||(D=[])).push(e);return D}function $n(e,n){var D=$(e,n),T=fn(D);return D==T?n:it(T)}function Yn(e,n){if(n>e.lastLine())return n;var D=$(e,n),T;if(!_r(e,D))return n;for(;T=cn(D);)D=T.find(1,!0).line;return it(D)+1}function _r(e,n){var D=Yr&&n.markedSpans;if(D)for(var T=void 0,N=0;Nn.maxLineLength&&(n.maxLineLength=N,n.maxLine=T)})}var sr=function(e,n,D){this.text=e,ut(this,n),this.height=D?D(this):1};sr.prototype.lineNo=function(){return it(this)},Xe(sr);function ia(e,n,D,T){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),rt(e),ut(e,D);var N=T?T(e):1;N!=e.height&&Ue(e,N)}function Ea(e){e.parent=null,rt(e)}var Cr={},kr={};function Zr(e,n){if(!e||/^\s*$/.test(e))return null;var D=n.addModeClass?kr:Cr;return D[e]||(D[e]=e.replace(/\S+/g,"cm-$&"))}function Qr(e,n){var D=M("span",null,null,w?"padding-right: .1px":null),T={pre:M("pre",[D],"CodeMirror-line"),content:D,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var N=0;N<=(n.rest?n.rest.length:0);N++){var Z=N?n.rest[N-1]:n.line,le=void 0;T.pos=0,T.addToken=Ta,mn(e.display.measure)&&(le=Un(Z,e.doc.direction))&&(T.addToken=za(T.addToken,le)),T.map=[];var _e=n!=e.display.externalMeasured&&it(Z);tr(Z,T,vn(e,Z,_e)),Z.styleClasses&&(Z.styleClasses.bgClass&&(T.bgClass=F(Z.styleClasses.bgClass,T.bgClass||"")),Z.styleClasses.textClass&&(T.textClass=F(Z.styleClasses.textClass,T.textClass||""))),T.map.length==0&&T.map.push(0,0,T.content.appendChild(Dt(e.display.measure))),N==0?(n.measure.map=T.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(T.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(w){var Re=T.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(T.content.className="cm-tab-wrap-hack")}return Tt(e,"renderLine",e,n.line,T.pre),T.pre.className&&(T.textClass=F(T.pre.className,T.textClass||"")),T}function Aa(e){var n=c("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ta(e,n,D,T,N,Z,le){if(!n)return;var _e=e.splitSpaces?ba(n,e.trailingSpace):n,Re=e.cm.state.specialChars,We=!1,Ot;if(!Re.test(n))e.col+=n.length,Ot=document.createTextNode(_e),e.map.push(e.pos,e.pos+n.length,Ot),s&&d<9&&(We=!0),e.pos+=n.length;else{Ot=document.createDocumentFragment();for(var Wt=0;;){Re.lastIndex=Wt;var gn=Re.exec(n),ln=gn?gn.index-Wt:n.length-Wt;if(ln){var er=document.createTextNode(_e.slice(Wt,Wt+ln));s&&d<9?Ot.appendChild(c("span",[er])):Ot.appendChild(er),e.map.push(e.pos,e.pos+ln,er),e.col+=ln,e.pos+=ln}if(!gn)break;Wt+=ln+1;var br=void 0;if(gn[0]==" "){var Ur=e.cm.options.tabSize,ea=Ur-e.col%Ur;br=Ot.appendChild(c("span",he(ea),"cm-tab")),br.setAttribute("role","presentation"),br.setAttribute("cm-text"," "),e.col+=ea}else gn[0]=="\r"||gn[0]==` +`?(br=Ot.appendChild(c("span",gn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),br.setAttribute("cm-text",gn[0]),e.col+=1):(br=e.cm.options.specialCharPlaceholder(gn[0]),br.setAttribute("cm-text",gn[0]),s&&d<9?Ot.appendChild(c("span",[br])):Ot.appendChild(br),e.col+=1);e.map.push(e.pos,e.pos+1,br),e.pos++}}if(e.trailingSpace=_e.charCodeAt(n.length-1)==32,D||T||N||We||Z||le){var ha=D||"";T&&(ha+=T),N&&(ha+=N);var ta=c("span",[Ot],ha,Z);if(le)for(var _a in le)le.hasOwnProperty(_a)&&_a!="style"&&_a!="class"&&ta.setAttribute(_a,le[_a]);return e.content.appendChild(ta)}e.content.appendChild(Ot)}function ba(e,n){if(e.length>1&&!/ /.test(e))return e;for(var D=n,T="",N=0;NWe&&Wt.from<=We);gn++);if(Wt.to>=Ot)return e(D,T,N,Z,le,_e,Re);e(D,T.slice(0,Wt.to-We),N,Z,null,_e,Re),Z=null,T=T.slice(Wt.to-We),We=Wt.to}}}function Xa(e,n,D,T){var N=!T&&D.widgetNode;N&&e.map.push(e.pos,e.pos+n,N),!T&&e.cm.display.input.needsContentAttribute&&(N||(N=e.content.appendChild(document.createElement("span"))),N.setAttribute("cm-marker",D.id)),N&&(e.cm.display.input.setUneditable(N),e.content.appendChild(N)),e.pos+=n,e.trailingSpace=!1}function tr(e,n,D){var T=e.markedSpans,N=e.text,Z=0;if(!T){for(var le=1;leRe||Ya.collapsed&&Pa.to==Re&&Pa.from==Re)){if(Pa.to!=null&&Pa.to!=Re&&ln>Pa.to&&(ln=Pa.to,br=""),Ya.className&&(er+=" "+Ya.className),Ya.css&&(gn=(gn?gn+";":"")+Ya.css),Ya.startStyle&&Pa.from==Re&&(Ur+=" "+Ya.startStyle),Ya.endStyle&&Pa.to==ln&&(_a||(_a=[])).push(Ya.endStyle,Pa.to),Ya.title&&((ha||(ha={})).title=Ya.title),Ya.attributes)for(var hi in Ya.attributes)(ha||(ha={}))[hi]=Ya.attributes[hi];Ya.collapsed&&(!ea||Yt(ea.marker,Ya)<0)&&(ea=Pa)}else Pa.from>Re&&ln>Pa.from&&(ln=Pa.from)}if(_a)for(var zi=0;zi<_a.length;zi+=2)_a[zi+1]==ln&&(br+=" "+_a[zi]);if(!ea||ea.from==Re)for(var Si=0;Si=_e)break;for(var Co=Math.min(_e,ln);;){if(Ot){var lo=Re+Ot.length;if(!ea){var Ii=lo>Co?Ot.slice(0,Co-Re):Ot;n.addToken(n,Ii,Wt?Wt+er:er,Ur,Re+Ii.length==ln?br:"",gn,ha)}if(lo>=Co){Ot=Ot.slice(Co-Re),Re=Co;break}Re=lo,Ur=""}Ot=N.slice(Z,Z=D[We++]),Wt=Zr(D[We++],n.cm.options)}}}function In(e,n,D){this.line=n,this.rest=Xn(n),this.size=this.rest?it(ce(this.rest))-D+1:1,this.node=this.text=null,this.hidden=_r(e,n)}function En(e,n,D){for(var T=[],N,Z=n;Z2&&Z.push((Re.bottom+We.top)/2-D.top)}}Z.push(D.bottom-D.top)}}function De(e,n,D){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};for(var T=0;TD)return{map:e.measure.maps[N],cache:e.measure.caches[N],before:!0}}function st(e,n){n=fn(n);var D=it(n),T=e.display.externalMeasured=new In(e.doc,n,D);T.lineN=D;var N=T.built=Qr(e,T);return T.text=N.pre,l(e.display.lineMeasure,N.pre),T}function ct(e,n,D,T){return zt(e,gt(e,n),D,T)}function Bt(e,n){if(n>=e.display.viewFrom&&n=D.lineN&&nn)&&(Z=Re-_e,N=Z-1,n>=Re&&(le="right")),N!=null){if(T=e[We+2],_e==Re&&D==(T.insertLeft?"left":"right")&&(le=D),D=="left"&&N==0)for(;We&&e[We-2]==e[We-3]&&e[We-1].insertLeft;)T=e[(We-=3)+2],le="left";if(D=="right"&&N==Re-_e)for(;We=0&&!((D=e[N]).left!=D.right);N--);return D}function zn(e,n,D,T){var N=on(n.map,D,T),Z=N.node,le=N.start,_e=N.end,Re=N.collapse,We;if(Z.nodeType==3){for(var Ot=0;Ot<4;Ot++){for(;le&&Ve(n.line.text.charAt(N.coverStart+le));)--le;for(;N.coverStart+_e0&&(Re=T="right");var Wt;e.options.lineWrapping&&(Wt=Z.getClientRects()).length>1?We=Wt[T=="right"?Wt.length-1:0]:We=Z.getBoundingClientRect()}if(s&&d<9&&!le&&(!We||!We.left&&!We.right)){var gn=Z.parentNode.getClientRects()[0];gn?We={left:gn.left,right:gn.left+Rr(e.display),top:gn.top,bottom:gn.bottom}:We=Ft}for(var ln=We.top-n.rect.top,er=We.bottom-n.rect.top,br=(ln+er)/2,Ur=n.view.measure.heights,ea=0;ea=T.text.length?(Re=T.text.length,We="before"):Re<=0&&(Re=0,We="after"),!_e)return le(We=="before"?Re-1:Re,We=="before");function Ot(er,br,Ur){var ea=_e[br],ha=ea.level==1;return le(Ur?er-1:er,ha!=Ur)}var Wt=Qt(_e,Re,We),gn=tn,ln=Ot(Re,Wt,We=="before");return gn!=null&&(ln.other=Ot(Re,gn,We!="before")),ln}function Rn(e,n){var D=0;n=B(e.doc,n),e.options.lineWrapping||(D=Rr(e.display)*n.ch);var T=$(e.doc,n.line),N=lr(T)+Mr(e.display);return{left:D,right:D,top:N,bottom:N+T.height}}function xr(e,n,D,T,N){var Z=St(e,n,D);return Z.xRel=N,T&&(Z.outside=T),Z}function Ca(e,n,D){var T=e.doc;if(D+=e.display.viewOffset,D<0)return xr(T.first,0,null,-1,-1);var N=Mt(T,D),Z=T.first+T.size-1;if(N>Z)return xr(T.first+T.size-1,$(T,Z).text.length,null,1,1);n<0&&(n=0);for(var le=$(T,N);;){var _e=Vr(e,le,N,n,D),Re=ur(le,_e.ch+(_e.xRel>0||_e.outside>0?1:0));if(!Re)return _e;var We=Re.find(1);if(We.line==N)return We;le=$(T,N=We.line)}}function Nr(e,n,D,T){T-=oa(n);var N=n.text.length,Z=At(function(le){return zt(e,D,le-1).bottom<=T},N,0);return N=At(function(le){return zt(e,D,le).top>T},Z,N),{begin:Z,end:N}}function Sr(e,n,D,T){D||(D=gt(e,n));var N=ya(e,n,zt(e,D,T),"line").top;return Nr(e,n,D,N)}function xa(e,n,D,T){return e.bottom<=D?!1:e.top>D?!0:(T?e.left:e.right)>n}function Vr(e,n,D,T,N){N-=lr(n);var Z=gt(e,n),le=oa(n),_e=0,Re=n.text.length,We=!0,Ot=Un(n,e.doc.direction);if(Ot){var Wt=(e.options.lineWrapping?Wr:nr)(e,n,D,Z,Ot,T,N);We=Wt.level!=1,_e=We?Wt.from:Wt.to-1,Re=We?Wt.to:Wt.from-1}var gn=null,ln=null,er=At(function(Ba){var Pa=zt(e,Z,Ba);return Pa.top+=le,Pa.bottom+=le,xa(Pa,T,N,!1)?(Pa.top<=N&&Pa.left<=T&&(gn=Ba,ln=Pa),!0):!1},_e,Re),br,Ur,ea=!1;if(ln){var ha=T-ln.left=_a.bottom?1:0}return er=at(n.text,er,1),xr(D,er,Ur,ea,T-br)}function nr(e,n,D,T,N,Z,le){var _e=At(function(Wt){var gn=N[Wt],ln=gn.level!=1;return xa(un(e,St(D,ln?gn.to:gn.from,ln?"before":"after"),"line",n,T),Z,le,!0)},0,N.length-1),Re=N[_e];if(_e>0){var We=Re.level!=1,Ot=un(e,St(D,We?Re.from:Re.to,We?"after":"before"),"line",n,T);xa(Ot,Z,le,!0)&&Ot.top>le&&(Re=N[_e-1])}return Re}function Wr(e,n,D,T,N,Z,le){var _e=Nr(e,n,T,le),Re=_e.begin,We=_e.end;/\s/.test(n.text.charAt(We-1))&&We--;for(var Ot=null,Wt=null,gn=0;gn=We||ln.to<=Re)continue;var er=ln.level!=1,br=zt(e,T,er?Math.min(We,ln.to)-1:Math.max(Re,ln.from)).right,Ur=brUr)&&(Ot=ln,Wt=Ur)}return Ot||(Ot=N[N.length-1]),Ot.fromWe&&(Ot={from:Ot.from,to:We,level:Ot.level}),Ot}var Wn;function pn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Wn==null){Wn=c("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Wn.appendChild(document.createTextNode("x")),Wn.appendChild(c("br"));Wn.appendChild(document.createTextNode("x"))}l(e.measure,Wn);var D=Wn.offsetHeight/50;return D>3&&(e.cachedTextHeight=D),o(e.measure),D||1}function Rr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=c("span","xxxxxxxxxx"),D=c("pre",[n],"CodeMirror-line-like");l(e.measure,D);var T=n.getBoundingClientRect(),N=(T.right-T.left)/10;return N>2&&(e.cachedCharWidth=N),N||10}function qn(e){for(var n=e.display,D={},T={},N=n.gutters.clientLeft,Z=n.gutters.firstChild,le=0;Z;Z=Z.nextSibling,++le){var _e=e.display.gutterSpecs[le].className;D[_e]=Z.offsetLeft+Z.clientLeft+N,T[_e]=Z.clientWidth}return{fixedPos:Ar(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:D,gutterWidth:T,wrapperWidth:n.wrapper.clientWidth}}function Ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Da(e){var n=pn(e.display),D=e.options.lineWrapping,T=D&&Math.max(5,e.display.scroller.clientWidth/Rr(e.display)-3);return function(N){if(_r(e.doc,N))return 0;var Z=0;if(N.widgets)for(var le=0;le0&&(We=$(e.doc,Re.line).text).length==Re.ch){var Ot=J(We,We.length,e.options.tabSize)-We.length;Re=St(Re.line,Math.max(0,Math.round((Z-pt(e.display).left)/Rr(e.display))-Ot))}return Re}function Br(e,n){if(n>=e.display.viewTo)return null;if(n-=e.display.viewFrom,n<0)return null;for(var D=e.display.view,T=0;Tn)&&(N.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=N.viewTo)Yr&&$n(e.doc,n)N.viewFrom?Na(e):(N.viewFrom+=T,N.viewTo+=T);else if(n<=N.viewFrom&&D>=N.viewTo)Na(e);else if(n<=N.viewFrom){var Z=qa(e,D,D+T,1);Z?(N.view=N.view.slice(Z.index),N.viewFrom=Z.lineN,N.viewTo+=T):Na(e)}else if(D>=N.viewTo){var le=qa(e,n,n,-1);le?(N.view=N.view.slice(0,le.index),N.viewTo=le.lineN):Na(e)}else{var _e=qa(e,n,n,-1),Re=qa(e,D,D+T,1);_e&&Re?(N.view=N.view.slice(0,_e.index).concat(En(e,_e.lineN,Re.lineN)).concat(N.view.slice(Re.index)),N.viewTo+=T):Na(e)}var We=N.externalMeasured;We&&(D=N.lineN&&n=T.viewTo)return;var Z=T.view[Br(e,n)];if(Z.node==null)return;var le=Z.changes||(Z.changes=[]);te(le,D)==-1&&le.push(D)}function Na(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qa(e,n,D,T){var N=Br(e,n),Z,le=e.display.view;if(!Yr||D==e.doc.first+e.doc.size)return{index:N,lineN:D};for(var _e=e.display.viewFrom,Re=0;Re0){if(N==le.length-1)return null;Z=_e+le[N].size-n,N++}else Z=_e-n;n+=Z,D+=Z}for(;$n(e.doc,D)!=D;){if(N==(T<0?0:le.length-1))return null;D+=T*le[N-(T<0?1:0)].size,N+=T}return{index:N,lineN:D}}function ri(e,n,D){var T=e.display,N=T.view;N.length==0||n>=T.viewTo||D<=T.viewFrom?(T.view=En(e,n,D),T.viewFrom=n):(T.viewFrom>n?T.view=En(e,n,T.viewFrom).concat(T.view):T.viewFromD&&(T.view=T.view.slice(0,Br(e,D)))),T.viewTo=D}function ni(e){for(var n=e.display.view,D=0,T=0;T=e.display.viewTo||_e.to().line0?n.blinker=setInterval(function(){e.hasFocus()||qi(e),n.cursorDiv.style.visibility=(D=!D)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}function Zi(e){e.state.focused||(e.display.input.focus(),Ui(e))}function Ao(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,qi(e))},100)}function Ui(e,n){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Tt(e,"focus",e,n),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),w&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),di(e)}function qi(e,n){if(e.state.delayingBlurEvent)return;e.state.focused&&(Tt(e,"blur",e,n),e.state.focused=!1,v(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function $i(e){for(var n=e.display,D=n.lineDiv.offsetTop,T=0;T.005||Ot<-.005)&&(Ue(N.line,le),wi(N.line),N.rest))for(var Wt=0;Wte.display.sizerWidth){var gn=Math.ceil(_e/Rr(e.display));gn>e.display.maxLineLength&&(e.display.maxLineLength=gn,e.display.maxLine=N.line,e.display.maxLineChanged=!0)}}}function wi(e){if(e.widgets)for(var n=0;n=le&&(Z=Mt(n,lr($(n,Re))-e.wrapper.clientHeight),le=Re)}return{from:Z,to:Math.max(le,Z+1)}}function fo(e,n){if(wt(e,"scrollCursorIntoView"))return;var D=e.display,T=D.sizer.getBoundingClientRect(),N=null;if(n.top+T.top<0?N=!0:n.bottom+T.top>(window.innerHeight||document.documentElement.clientHeight)&&(N=!1),N!=null&&!m){var Z=c("div","\u200B",null,`position: absolute; top: `+(n.top-D.viewOffset-Mr(e.display))+`px; height: `+(n.bottom-n.top+vt(e)+D.barHeight)+`px; - left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(Z),Z.scrollIntoView(N),e.display.lineSpace.removeChild(Z)}}function mo(e,n,D,T){T==null&&(T=0);var N;!e.options.lineWrapping&&n==D&&(n=n.ch?St(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n,D=n.sticky=="before"?St(n.line,n.ch+1,"before"):n);for(var Z=0;Z<5;Z++){var le=!1,_e=un(e,n),Re=!D||D==n?_e:un(e,D);N={left:Math.min(_e.left,Re.left),top:Math.min(_e.top,Re.top)-T,right:Math.max(_e.left,Re.left),bottom:Math.max(_e.bottom,Re.bottom)+T};var We=Ra(e,N),Ot=e.doc.scrollTop,Wt=e.doc.scrollLeft;if(We.scrollTop!=null&&(ro(e,We.scrollTop),Math.abs(e.doc.scrollTop-Ot)>1&&(le=!0)),We.scrollLeft!=null&&(pi(e,We.scrollLeft),Math.abs(e.doc.scrollLeft-Wt)>1&&(le=!0)),!le)break}return N}function Ti(e,n){var D=Ra(e,n);D.scrollTop!=null&&ro(e,D.scrollTop),D.scrollLeft!=null&&pi(e,D.scrollLeft)}function Ra(e,n){var D=e.display,T=pn(e.display);n.top<0&&(n.top=0);var N=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:D.scroller.scrollTop,Z=we(e),le={};n.bottom-n.top>Z&&(n.bottom=n.top+Z);var _e=e.doc.height+$e(D),Re=n.top_e-T;if(n.topN+Z){var Ot=Math.min(n.top,(We?_e:n.bottom)-Z);Ot!=N&&(le.scrollTop=Ot)}var Wt=e.options.fixedGutter?0:D.gutters.offsetWidth,gn=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:D.scroller.scrollLeft-Wt,ln=Me(e)-D.gutters.offsetWidth,er=n.right-n.left>ln;return er&&(n.right=n.left+ln),n.left<10?le.scrollLeft=0:n.leftln+gn-3&&(le.scrollLeft=n.right+(er?0:10)-ln),le}function Sa(e,n){if(n==null)return;bi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n}function wa(e){bi(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Ja(e,n,D){(n!=null||D!=null)&&bi(e),n!=null&&(e.curOp.scrollLeft=n),D!=null&&(e.curOp.scrollTop=D)}function oi(e,n){bi(e),e.curOp.scrollToPos=n}function bi(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var D=Rn(e,n.from),T=Rn(e,n.to);li(e,D,T,n.margin)}}function li(e,n,D,T){var N=Ra(e,{left:Math.min(n.left,D.left),top:Math.min(n.top,D.top)-T,right:Math.max(n.right,D.right),bottom:Math.max(n.bottom,D.bottom)+T});Ja(e,N.scrollLeft,N.scrollTop)}function ro(e,n){if(Math.abs(e.doc.scrollTop-n)<2)return;L||Bi(e,{top:n}),po(e,n,!0),L&&Bi(e),Qa(e,100)}function po(e,n,D){if(n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),e.display.scroller.scrollTop==n&&!D)return;e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n)}function pi(e,n,D,T){if(n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(D?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!T)return;e.doc.scrollLeft=n,Wa(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n)}function Hi(e){var n=e.display,D=n.gutters.offsetWidth,T=Math.round(e.doc.height+$e(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?D:0,docHeight:T,scrollHeight:T+vt(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:D}}var vi=function(e,n,D){this.cm=D;var T=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),N=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");T.tabIndex=N.tabIndex=-1,e(T),e(N),lt(T,"scroll",function(){T.clientHeight&&n(T.scrollTop,"vertical")}),lt(N,"scroll",function(){N.clientWidth&&n(N.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,D=e.scrollHeight>e.clientHeight+1,T=e.nativeBarWidth;if(D){this.vert.style.display="block",this.vert.style.bottom=n?T+"px":"0";var N=e.viewHeight-(n?T:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+N)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=D?T+"px":"0",this.horiz.style.left=e.barLeft+"px";var Z=e.viewWidth-e.barLeft-(D?T:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(T==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:D?T:0,bottom:n?T:0}},vi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var e=u&&!b?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new X,this.disableVert=new X},vi.prototype.enableZeroWidthBar=function(e,n,D){e.style.pointerEvents="auto";function T(){var N=e.getBoundingClientRect(),Z=D=="vert"?document.elementFromPoint(N.right-1,(N.top+N.bottom)/2):document.elementFromPoint((N.right+N.left)/2,N.bottom-1);Z!=e?e.style.pointerEvents="none":n.set(1e3,T)}n.set(1e3,T)},vi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ki=function(){};Ki.prototype.update=function(){return{bottom:0,right:0}},Ki.prototype.setScrollLeft=function(){},Ki.prototype.setScrollTop=function(){},Ki.prototype.clear=function(){};function Gi(e,n){n||(n=Hi(e));var D=e.display.barWidth,T=e.display.barHeight;So(e,n);for(var N=0;N<4&&D!=e.display.barWidth||T!=e.display.barHeight;N++)D!=e.display.barWidth&&e.options.lineWrapping&&qi(e),So(e,Hi(e)),D=e.display.barWidth,T=e.display.barHeight}function So(e,n){var D=e.display,T=D.scrollbars.update(n);D.sizer.style.paddingRight=(D.barWidth=T.right)+"px",D.sizer.style.paddingBottom=(D.barHeight=T.bottom)+"px",D.heightForcer.style.borderBottom=T.bottom+"px solid transparent",T.right&&T.bottom?(D.scrollbarFiller.style.display="block",D.scrollbarFiller.style.height=T.bottom+"px",D.scrollbarFiller.style.width=T.right+"px"):D.scrollbarFiller.style.display="",T.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(D.gutterFiller.style.display="block",D.gutterFiller.style.height=T.bottom+"px",D.gutterFiller.style.width=n.gutterWidth+"px"):D.gutterFiller.style.display=""}var vo={native:vi,null:Ki};function go(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&v(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new vo[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),lt(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,D){D=="horizontal"?pi(e,n):ro(e,n)},e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var bo=0;function Vi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++bo},yr(e.curOp)}function oo(e){var n=e.curOp;n&&Zn(n,function(D){for(var T=0;T=D.viewTo)||D.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new dr(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function so(e){e.updatedDisplay=e.mustUpdate&&_i(e.cm,e.update)}function Oo(e){var n=e.cm,D=n.display;e.updatedDisplay&&qi(n),e.barMeasure=Hi(n),D.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=ct(n,D.maxLine,D.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(D.scroller.clientWidth,D.sizer.offsetLeft+e.adjustWidthTo+vt(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,D.sizer.offsetLeft+e.adjustWidthTo-Me(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=D.input.prepareSelection())}function To(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var D=+new Date+e.options.workTime,T=Tn(e,n.highlightFrontier),N=[];n.iter(T.line,Math.min(n.first+n.size,e.display.viewTo+500),function(Z){if(T.line>=e.display.viewFrom){var le=Z.styles,_e=Z.text.length>e.options.maxHighlightLength?bn(n.mode,T.state):null,Re=ht(e,Z,T,!0);_e&&(T.state=_e),Z.styles=Re.styles;var We=Z.styleClasses,Ot=Re.classes;Ot?Z.styleClasses=Ot:We&&(Z.styleClasses=null);for(var Wt=!le||le.length!=Z.styles.length||We!=Ot&&(!We||!Ot||We.bgClass!=Ot.bgClass||We.textClass!=Ot.textClass),gn=0;!Wt&&gnD)return Qa(e,e.options.workDelay),!0}),n.highlightFrontier=T.line,n.modeFrontier=Math.max(n.modeFrontier,T.line),N.length&&Ci(e,function(){for(var Z=0;Z=D.viewFrom&&n.visible.to<=D.viewTo&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo)&&D.renderedView==D.view&&ri(e)==0)return!1;ni(e)&&(Na(e),n.dims=qn(e));var N=T.first+T.size,Z=Math.max(n.visible.from-e.options.viewportMargin,T.first),le=Math.min(N,n.visible.to+e.options.viewportMargin);D.viewFromle&&D.viewTo-le<20&&(le=Math.min(N,D.viewTo)),Yr&&(Z=$n(e.doc,Z),le=Yn(e.doc,le));var _e=Z!=D.viewFrom||le!=D.viewTo||D.lastWrapHeight!=n.wrapperHeight||D.lastWrapWidth!=n.wrapperWidth;ii(e,Z,le),D.viewOffset=lr($(e.doc,D.viewFrom)),e.display.mover.style.top=D.viewOffset+"px";var Re=ri(e);if(!_e&&Re==0&&!n.force&&D.renderedView==D.view&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo))return!1;var We=ya(e);return Re>4&&(D.lineDiv.style.display="none"),Pi(e,D.updateLineNumbers,n.dims),Re>4&&(D.lineDiv.style.display=""),D.renderedView=D.view,di(We),o(D.cursorDiv),o(D.selectionDiv),D.gutters.style.height=D.sizer.style.minHeight=0,_e&&(D.lastWrapHeight=n.wrapperHeight,D.lastWrapWidth=n.wrapperWidth,Qa(e,400)),D.updateLineNumbers=null,!0}function ci(e,n){for(var D=n.viewport,T=!0;;T=!1){if(!T||!e.options.lineWrapping||n.oldDisplayWidth==Me(e)){if(D&&D.top!=null&&(D={top:Math.min(e.doc.height+$e(e.display)-we(e),D.top)}),n.visible=$i(e.display,e.doc,D),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else T&&(n.visible=$i(e.display,e.doc,D));if(!_i(e,n))break;qi(e);var N=Hi(e);Ka(e),Gi(e,N),za(e,N),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Bi(e,n){var D=new dr(e,n);if(_i(e,D)){qi(e),ci(e,D);var T=Hi(e);Ka(e),Gi(e,T),za(e,T),D.finish()}}function Pi(e,n,D){var T=e.display,N=e.options.lineNumbers,Z=T.lineDiv,le=Z.firstChild;function _e(er){var br=er.nextSibling;return w&&u&&e.display.currentWheelTarget==er?er.style.display="none":er.parentNode.removeChild(er),br}for(var Re=T.view,We=T.viewFrom,Ot=0;Ot-1&&(ln=!1),Pr(e,Wt,We,D)),ln&&(o(Wt.lineNumber),Wt.lineNumber.appendChild(document.createTextNode(kn(e.options,We)))),le=Wt.node.nextSibling}We+=Wt.size}for(;le;)le=_e(le)}function Ni(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px"}function za(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+vt(e)+"px"}function Wa(e){var n=e.display,D=n.view;if(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))return;for(var T=Ar(n)-n.scroller.scrollLeft+e.doc.scrollLeft,N=n.gutters.offsetWidth,Z=T+"px",le=0;lele.clientWidth,Re=le.scrollHeight>le.clientHeight;if(!(T&&_e||N&&Re))return;if(N&&u&&w){e:for(var We=n.target,Ot=Z.view;We!=le;We=We.parentNode)for(var Wt=0;Wt=0&&an(e,T.to())<=0)return D}return-1};var Za=function(e,n){this.anchor=e,this.head=n};Za.prototype.from=function(){return Bn(this.anchor,this.head)},Za.prototype.to=function(){return jn(this.anchor,this.head)},Za.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ba(e,n,D){var T=e&&e.options.selectionsMayTouch,N=n[D];n.sort(function(gn,ln){return an(gn.from(),ln.from())}),D=te(n,N);for(var Z=1;Z0:Re>=0){var We=Bn(_e.from(),le.from()),Ot=jn(_e.to(),le.to()),Wt=_e.empty()?le.from()==le.head:_e.from()==_e.head;Z<=D&&--D,n.splice(--Z,2,new Za(Wt?Ot:We,Wt?We:Ot))}}return new Ui(n,D)}function na(e,n){return new Ui([new Za(e,n||e)],0)}function Oa(e){return e.text?St(e.from.line+e.text.length-1,ce(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ha(e,n){if(an(e,n.from)<0)return e;if(an(e,n.to)<=0)return Oa(n);var D=e.line+n.text.length-(n.to.line-n.from.line)-1,T=e.ch;return e.line==n.to.line&&(T+=Oa(n).ch-n.to.ch),St(D,T)}function si(e,n){for(var D=[],T=0;T1&&e.remove(_e.line+1,er-1),e.insert(_e.line+1,ea)}rr(e,"change",e,n)}function gi(e,n,D){function T(N,Z,le){if(N.linked)for(var _e=0;_e1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ce(e.done)}function Js(e,n,D,T){var N=e.history;N.undone.length=0;var Z=+new Date,le,_e;if((N.lastOp==T||N.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&N.lastModTime>Z-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(le=Pl(N,N.lastOp==T)))_e=ce(le.changes),an(n.from,n.to)==0&&an(n.from,_e.to)==0?_e.to=Oa(n):le.changes.push(Ts(e,n));else{var Re=ce(N.done);for((!Re||!Re.ranges)&&ps(e.sel,N.done),le={changes:[Ts(e,n)],generation:N.generation},N.done.push(le);N.done.length>N.undoDepth;)N.done.shift(),N.done[0].ranges||N.done.shift()}N.done.push(D),N.generation=++N.maxGeneration,N.lastModTime=N.lastSelTime=Z,N.lastOp=N.lastSelOp=T,N.lastOrigin=N.lastSelOrigin=n.origin,_e||Tt(e,"historyAdded")}function Ml(e,n,D,T){var N=n.charAt(0);return N=="*"||N=="+"&&D.ranges.length==T.ranges.length&&D.somethingSelected()==T.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ms(e,n,D,T){var N=e.history,Z=T&&T.origin;D==N.lastSelOp||Z&&N.lastSelOrigin==Z&&(N.lastModTime==N.lastSelTime&&N.lastOrigin==Z||Ml(e,Z,ce(N.done),n))?N.done[N.done.length-1]=n:ps(n,N.done),N.lastSelTime=+new Date,N.lastSelOrigin=Z,N.lastSelOp=D,T&&T.clearRedo!==!1&&Qs(N.undone)}function ps(e,n){var D=ce(n);D&&D.ranges&&D.equals(e)||n.push(e)}function Ds(e,n,D,T){var N=n["spans_"+e.id],Z=0;e.iter(Math.max(e.first,D),Math.min(e.first+e.size,T),function(le){le.markedSpans&&((N||(N=n["spans_"+e.id]={}))[Z]=le.markedSpans),++Z})}function vs(e){if(!e)return null;for(var n,D=0;D-1&&(ce(_e)[Wt]=We[Wt],delete We[Wt]))}}return T}function gs(e,n,D,T){if(T){var N=e.anchor;if(D){var Z=an(n,N)<0;Z!=an(D,N)<0?(N=n,n=D):Z!=an(n,D)<0&&(n=D)}return new Za(N,n)}else return new Za(D||n,n)}function bs(e,n,D,T,N){N==null&&(N=e.cm&&(e.cm.display.shift||e.extend)),Fi(e,new Ui([gs(e.sel.primary(),n,D,N)],0),T)}function qs(e,n,D){for(var T=[],N=e.cm&&(e.cm.display.shift||e.extend),Z=0;Z=n.ch:_e.to>n.ch))){if(N&&(Tt(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(Z.markedSpans){--le;continue}else break;if(!Re.atomic)continue;if(D){var Wt=Re.find(T<0?1:-1),gn=void 0;if((T<0?Ot:We)&&(Wt=al(e,Wt,-T,Wt&&Wt.line==n.line?Z:null)),Wt&&Wt.line==n.line&&(gn=an(Wt,D))&&(T<0?gn<0:gn>0))return Ko(e,Wt,n,T,N)}var ln=Re.find(T<0?-1:1);return(T<0?We:Ot)&&(ln=al(e,ln,T,ln.line==n.line?Z:null)),ln?Ko(e,ln,n,T,N):null}}return n}function ys(e,n,D,T,N){var Z=T||1,le=Ko(e,n,D,Z,N)||!N&&Ko(e,n,D,Z,!0)||Ko(e,n,D,-Z,N)||!N&&Ko(e,n,D,-Z,!0);return le||(e.cantEdit=!0,St(e.first,0))}function al(e,n,D,T){return D<0&&n.ch==0?n.line>e.first?B(e,St(n.line-1)):null:D>0&&n.ch==(T||$(e,n.line)).text.length?n.line=0;--N)ol(e,{from:T[N].from,to:T[N].to,text:N?[""]:n.text,origin:n.origin});else ol(e,n)}function ol(e,n){if(n.text.length==1&&n.text[0]==""&&an(n.from,n.to)==0)return;var D=si(e,n);Js(e,n,D,e.cm?e.cm.curOp.id:NaN),Vo(e,n,D,Gn(e,n));var T=[];gi(e,function(N,Z){!Z&&te(T,N.history)==-1&&(dl(N.history,n),T.push(N.history)),Vo(N,n,null,Gn(N,n))})}function _s(e,n,D){var T=e.cm&&e.cm.state.suppressEdits;if(T&&!D)return;for(var N=e.history,Z,le=e.sel,_e=n=="undo"?N.done:N.undone,Re=n=="undo"?N.undone:N.done,We=0;We<_e.length&&!(Z=_e[We],D?Z.ranges&&!Z.equals(e.sel):!Z.ranges);We++);if(We==_e.length)return;for(N.lastOrigin=N.lastSelOrigin=null;;)if(Z=_e.pop(),Z.ranges){if(ps(Z,Re),D&&!Z.equals(e.sel)){Fi(e,Z,{clearRedo:!1});return}le=Z}else if(T){_e.push(Z);return}else break;var Ot=[];ps(le,Re),Re.push({changes:Ot,generation:N.generation}),N.generation=Z.generation||++N.maxGeneration;for(var Wt=Je(e,"beforeChange")||e.cm&&Je(e.cm,"beforeChange"),gn=function(br){var Ur=Z.changes[br];if(Ur.origin=n,Wt&&!Ms(e,Ur,!1))return _e.length=0,{};Ot.push(Ts(e,Ur));var ea=br?si(e,Ur):ce(_e);Vo(e,Ur,ea,Ps(e,Ur)),!br&&e.cm&&e.cm.scrollIntoView({from:Ur.from,to:Oa(Ur)});var ca=[];gi(e,function(ta,_a){!_a&&te(ca,ta.history)==-1&&(dl(ta.history,Ur),ca.push(ta.history)),Vo(ta,Ur,null,Ps(ta,Ur))})},ln=Z.changes.length-1;ln>=0;--ln){var er=gn(ln);if(er)return er.v}}function sl(e,n){if(n==0)return;if(e.first+=n,e.sel=new Ui(Ee(e.sel.ranges,function(N){return new Za(St(N.anchor.line+n,N.anchor.ch),St(N.head.line+n,N.head.ch))}),e.sel.primIndex),e.cm){$r(e.cm,e.first,e.first-n,n);for(var D=e.cm.display,T=D.viewFrom;Te.lastLine())return;if(n.from.lineZ&&(n={from:n.from,to:St(Z,$(e,Z).text.length),text:[n.text[0]],origin:n.origin}),n.removed=re(e,n.from,n.to),D||(D=si(e,n)),e.cm?kl(e.cm,n,T):ko(e,n,T),Ho(e,D,ge),e.cantEdit&&ys(e,St(e.firstLine(),0))&&(e.cantEdit=!1)}function kl(e,n,D){var T=e.doc,N=e.display,Z=n.from,le=n.to,_e=!1,Re=Z.line;e.options.lineWrapping||(Re=it(fn($(T,Z.line))),T.iter(Re,le.line+1,function(ln){if(ln==N.maxLine)return _e=!0,!0})),T.sel.contains(n.from,n.to)>-1&&Qe(e),ko(T,n,D,Da(e)),e.options.lineWrapping||(T.iter(Re,Z.line+n.text.length,function(ln){var er=wr(ln);er>N.maxLineLength&&(N.maxLine=ln,N.maxLineLength=er,N.maxLineChanged=!0,_e=!1)}),_e&&(e.curOp.updateMaxLine=!0)),jr(T,Z.line),Qa(e,400);var We=n.text.length-(le.line-Z.line)-1;n.full?$r(e):Z.line==le.line&&n.text.length==1&&!Eo(e.doc,n)?ka(e,Z.line,"text"):$r(e,Z.line,le.line+1,We);var Ot=Je(e,"changes"),Wt=Je(e,"change");if(Wt||Ot){var gn={from:Z,to:le,text:n.text,removed:n.removed,origin:n.origin};Wt&&rr(e,"change",e,gn),Ot&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(gn)}e.display.selForContextMenu=null}function Xo(e,n,D,T,N){var Z;T||(T=D),an(T,D)<0&&(Z=[T,D],D=Z[0],T=Z[1]),typeof n=="string"&&(n=e.splitLines(n)),Go(e,{from:D,to:T,text:n,origin:N})}function ll(e,n,D,T){D1||!(this.children[0]instanceof jo))){var _e=[];this.collapse(_e),this.children=[new jo(_e)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n50){for(var le=N.lines.length%25+25,_e=le;_e10);e.parent.maybeSpill()},iterN:function(e,n,D){for(var T=0;Te.display.maxLineLength&&(e.display.maxLine=We,e.display.maxLineLength=Ot,e.display.maxLineChanged=!0)}T!=null&&e&&this.collapsed&&$r(e,T,N+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&nl(e.doc)),e&&rr(e,"markerCleared",e,this,T,N),n&&oo(e),this.parent&&this.parent.clear()},xo.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var D,T,N=0;N0||le==0&&Z.clearWhenEmpty!==!1)return Z;if(Z.replacedWith&&(Z.collapsed=!0,Z.widgetNode=M("span",[Z.replacedWith],"CodeMirror-widget"),T.handleMouseEvents||Z.widgetNode.setAttribute("cm-ignore-events","true"),T.insertLeft&&(Z.widgetNode.insertLeft=!0)),Z.collapsed){if(Mn(e,n.line,n,D,Z)||n.line!=D.line&&Mn(e,D.line,n,D,Z))throw new Error("Inserting collapsed marker partially overlapping an existing one");Jn()}Z.addToHistory&&Js(e,{from:n,to:D,origin:"markText"},e.sel,NaN);var _e=n.line,Re=e.cm,We;if(e.iter(_e,D.line+1,function(Wt){Re&&Z.collapsed&&!Re.options.lineWrapping&&fn(Wt)==Re.display.maxLine&&(We=!0),Z.collapsed&&_e!=n.line&&Ue(Wt,0),or(Wt,new fr(Z,_e==n.line?n.ch:null,_e==D.line?D.ch:null)),++_e}),Z.collapsed&&e.iter(n.line,D.line+1,function(Wt){_r(e,Wt)&&Ue(Wt,0)}),Z.clearOnEnter&<(Z,"beforeCursorEnter",function(){return Z.clear()}),Z.readOnly&&(Tr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),Z.collapsed&&(Z.id=++fl,Z.atomic=!0),Re){if(We&&(Re.curOp.updateMaxLine=!0),Z.collapsed)$r(Re,n.line,D.line+1);else if(Z.className||Z.startStyle||Z.endStyle||Z.css||Z.attributes||Z.title)for(var Ot=n.line;Ot<=D.line;Ot++)ka(Re,Ot,"text");Z.atomic&&nl(Re.doc),rr(Re,"markerAdded",Re,Z)}return Z}var Jo=function(e,n){this.markers=e,this.primary=n;for(var D=0;D=0;Re--)Go(this,T[Re]);_e?el(this,_e):this.cm&&wa(this.cm)}),undo:ti(function(){_s(this,"undo")}),redo:ti(function(){_s(this,"redo")}),undoSelection:ti(function(){_s(this,"undo",!0)}),redoSelection:ti(function(){_s(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,D=0,T=0;T=e.ch)&&n.push(N.marker.parent||N.marker)}return n},findMarks:function(e,n,D){e=B(this,e),n=B(this,n);var T=[],N=e.line;return this.iter(e.line,n.line+1,function(Z){var le=Z.markedSpans;if(le)for(var _e=0;_e=Re.to||Re.from==null&&N!=e.line||Re.from!=null&&N==n.line&&Re.from>=n.ch)&&(!D||D(Re.marker))&&T.push(Re.marker.parent||Re.marker)}++N}),T},getAllMarks:function(){var e=[];return this.iter(function(n){var D=n.markedSpans;if(D)for(var T=0;Te)return n=e,!0;e-=Z,++D}),B(this,St(D,n))},indexFromPos:function(e){e=B(this,e);var n=e.ch;if(e.linen&&(n=e.from),e.to!=null&&e.to-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var Ot=e.dataTransfer.getData("Text");if(Ot){var Wt;if(n.state.draggingText&&!n.state.draggingText.copy&&(Wt=n.listSelections()),Ho(n.doc,na(D,D)),Wt)for(var gn=0;gn=0;_e--)Xo(e.doc,"",T[_e].from,T[_e].to,"+delete");wa(e)})}function Us(e,n,D){var T=at(e.text,n+D,D);return T<0||T>e.text.length?null:T}function js(e,n,D){var T=Us(e,n.ch,D);return T==null?null:new St(n.line,T,D<0?"after":"before")}function Bs(e,n,D,T,N){if(e){n.doc.direction=="rtl"&&(N=-N);var Z=Un(D,n.doc.direction);if(Z){var le=N<0?ce(Z):Z[0],_e=N<0==(le.level==1),Re=_e?"after":"before",We;if(le.level>0||n.doc.direction=="rtl"){var Ot=gt(n,D);We=N<0?D.text.length-1:0;var Wt=zt(n,Ot,We).top;We=At(function(gn){return zt(n,Ot,gn).top==Wt},N<0==(le.level==1)?le.from:le.to-1,We),Re=="before"&&(We=Us(D,We,1))}else We=N<0?le.to:le.from;return new St(T,We,Re)}}return new St(T,N<0?D.text.length:0,N<0?"before":"after")}function Fs(e,n,D,T){var N=Un(n,e.doc.direction);if(!N)return js(n,D,T);D.ch>=n.text.length?(D.ch=n.text.length,D.sticky="before"):D.ch<=0&&(D.ch=0,D.sticky="after");var Z=Qt(N,D.ch,D.sticky),le=N[Z];if(e.doc.direction=="ltr"&&le.level%2==0&&(T>0?le.to>D.ch:le.from=le.from&&gn>=Ot.begin)){var ln=Wt?"before":"after";return new St(D.line,gn,ln)}}var er=function(ea,ca,ta){for(var _a=function(hi,Wi){return Wi?new St(D.line,_e(hi,1),"before"):new St(D.line,hi,"after")};ea>=0&&ea0==(ja.level!=1),Xa=Pa?ta.begin:_e(ta.end,-1);if(ja.from<=Xa&&Xa0?Ot.end:_e(Ot.begin,-1);return Ur!=null&&!(T>0&&Ur==n.text.length)&&(br=er(T>0?0:N.length-1,T,We(Ur)),br)?br:null}var qo={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ge)},killLine:function(e){return Zo(e,function(n){if(n.empty()){var D=$(e.doc,n.head.line).text.length;return n.head.ch==D&&n.head.line0)N=new St(N.line,N.ch+1),e.replaceRange(Z.charAt(N.ch-1)+Z.charAt(N.ch-2),St(N.line,N.ch-2),N,"+transpose");else if(N.line>e.doc.first){var le=$(e.doc,N.line-1).text;le&&(N=new St(N.line,1),e.replaceRange(Z.charAt(0)+e.doc.lineSeparator()+le.charAt(le.length-1),St(N.line-1,le.length-1),N,"+transpose"))}}D.push(new Za(N,N))}e.setSelections(D)})},newlineAndIndent:function(e){return Ci(e,function(){for(var n=e.listSelections(),D=n.length-1;D>=0;D--)e.replaceRange(e.doc.lineSeparator(),n[D].anchor,n[D].head,"+input");n=e.listSelections();for(var T=0;Te&&an(n,this.pos)==0&&D==this.button};var ls,us;function Xl(e,n){var D=+new Date;return us&&us.compare(D,e,n)?(ls=us=null,"triple"):ls&&ls.compare(D,e,n)?(us=new Ks(D,e,n),ls=null,"double"):(ls=new Ks(D,e,n),us=null,"single")}function Gs(e){var n=this,D=n.display;if(wt(n,e)||D.activeTouch&&D.input.supportsTouch())return;if(D.input.ensurePolled(),D.shift=e.shiftKey,fa(D,e)){w||(D.scroller.draggable=!1,setTimeout(function(){return D.scroller.draggable=!0},100));return}if(Xs(n,e))return;var T=La(n,e),N=et(e),Z=T?Xl(T,N):"single";if(window.focus(),N==1&&n.state.selectingText&&n.state.selectingText(e),T&&Sl(n,N,T,Z,e))return;N==1?T?Ql(n,T,Z,e):dt(e)==D.scroller&&Oe(e):N==2?(T&&bs(n.doc,T),setTimeout(function(){return D.input.focus()},20)):N==3&&(C?n.display.input.onContextMenu(e):wo(n))}function Sl(e,n,D,T,N){var Z="Click";return T=="double"?Z="Double"+Z:T=="triple"&&(Z="Triple"+Z),Z=(n==1?"Left":n==2?"Middle":"Right")+Z,ss(e,bl(Z,N),N,function(le){if(typeof le=="string"&&(le=qo[le]),!le)return!1;var _e=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),_e=le(e,D)!=be}finally{e.state.suppressEdits=!1}return _e})}function Yl(e,n,D){var T=e.getOption("configureMouse"),N=T?T(e,n,D):{};if(N.unit==null){var Z=h?D.shiftKey&&D.metaKey:D.altKey;N.unit=Z?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(N.extend==null||e.doc.extend)&&(N.extend=e.doc.extend||D.shiftKey),N.addNew==null&&(N.addNew=u?D.metaKey:D.ctrlKey),N.moveOnDrag==null&&(N.moveOnDrag=!(u?D.altKey:D.ctrlKey)),N}function Ql(e,n,D,T){s?setTimeout(W(Ji,e),0):e.curOp.focus=k();var N=Yl(e,D,T),Z=e.doc.sel,le;e.options.dragDrop&&xt&&!e.isReadOnly()&&D=="single"&&(le=Z.contains(n))>-1&&(an((le=Z.ranges[le]).from(),n)<0||n.xRel>0)&&(an(le.to(),n)>0||n.xRel<0)?Jl(e,T,n,N):Zl(e,T,n,N)}function Jl(e,n,D,T){var N=e.display,Z=!1,le=ai(e,function(We){w&&(N.scroller.draggable=!1),e.state.draggingText=!1,sn(N.wrapper.ownerDocument,"mouseup",le),sn(N.wrapper.ownerDocument,"mousemove",_e),sn(N.scroller,"dragstart",Re),sn(N.scroller,"drop",le),Z||(Oe(We),T.addNew||bs(e.doc,D,null,null,T.extend),w&&!x||s&&d==9?setTimeout(function(){N.wrapper.ownerDocument.body.focus({preventScroll:!0}),N.input.focus()},20):N.input.focus())}),_e=function(We){Z=Z||Math.abs(n.clientX-We.clientX)+Math.abs(n.clientY-We.clientY)>=10},Re=function(){return Z=!0};w&&(N.scroller.draggable=!0),e.state.draggingText=le,le.copy=!T.moveOnDrag,N.scroller.dragDrop&&N.scroller.dragDrop(),lt(N.wrapper.ownerDocument,"mouseup",le),lt(N.wrapper.ownerDocument,"mousemove",_e),lt(N.scroller,"dragstart",Re),lt(N.scroller,"drop",le),wo(e),setTimeout(function(){return N.input.focus()},20)}function Vs(e,n,D){if(D=="char")return new Za(n,n);if(D=="word")return e.findWordAt(n);if(D=="line")return new Za(St(n.line,0),B(e.doc,St(n.line+1,0)));var T=D(e,n);return new Za(T.from,T.to)}function Zl(e,n,D,T){var N=e.display,Z=e.doc;Oe(n);var le,_e,Re=Z.sel,We=Re.ranges;if(T.addNew&&!T.extend?(_e=Z.sel.contains(D),_e>-1?le=We[_e]:le=new Za(D,D)):(le=Z.sel.primary(),_e=Z.sel.primIndex),T.unit=="rectangle")T.addNew||(le=new Za(D,D)),D=La(e,n,!0,!0),_e=-1;else{var Ot=Vs(e,D,T.unit);T.extend?le=gs(le,Ot.anchor,Ot.head,T.extend):le=Ot}T.addNew?_e==-1?(_e=We.length,Fi(Z,Ba(e,We.concat([le]),_e),{scroll:!1,origin:"*mouse"})):We.length>1&&We[_e].empty()&&T.unit=="char"&&!T.extend?(Fi(Z,Ba(e,We.slice(0,_e).concat(We.slice(_e+1)),0),{scroll:!1,origin:"*mouse"}),Re=Z.sel):Uo(Z,_e,le,je):(_e=0,Fi(Z,new Ui([le],0),je),Re=Z.sel);var Wt=D;function gn(ta){if(an(Wt,ta)==0)return;if(Wt=ta,T.unit=="rectangle"){for(var _a=[],ja=e.options.tabSize,Pa=J($(Z,D.line).text,D.ch,ja),Xa=J($(Z,ta.line).text,ta.ch,ja),hi=Math.min(Pa,Xa),Wi=Math.max(Pa,Xa),Si=Math.min(D.line,ta.line),Co=Math.min(e.lastLine(),Math.max(D.line,ta.line));Si<=Co;Si++){var uo=$(Z,Si).text,Li=nt(uo,hi,ja);hi==Wi?_a.push(new Za(St(Si,Li),St(Si,Li))):uo.length>Li&&_a.push(new Za(St(Si,Li),St(Si,nt(uo,Wi,ja))))}_a.length||_a.push(new Za(D,D)),Fi(Z,Ba(e,Re.ranges.slice(0,_e).concat(_a),_e),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ta)}else{var co=le,Qi=Vs(e,ta,T.unit),ji=co.anchor,ki;an(Qi.anchor,ji)>0?(ki=Qi.head,ji=Bn(co.from(),Qi.anchor)):(ki=Qi.anchor,ji=jn(co.to(),Qi.head));var Oi=Re.ranges.slice(0);Oi[_e]=ql(e,new Za(B(Z,ji),ki)),Fi(Z,Ba(e,Oi,_e),je)}}var ln=N.wrapper.getBoundingClientRect(),er=0;function br(ta){var _a=++er,ja=La(e,ta,!0,T.unit=="rectangle");if(!ja)return;if(an(ja,Wt)!=0){e.curOp.focus=k(),gn(ja);var Pa=$i(N,Z);(ja.line>=Pa.to||ja.lineln.bottom?20:0;Xa&&setTimeout(ai(e,function(){if(er!=_a)return;N.scroller.scrollTop+=Xa,br(ta)}),50)}}function Ur(ta){e.state.selectingText=!1,er=Infinity,ta&&(Oe(ta),N.input.focus()),sn(N.wrapper.ownerDocument,"mousemove",ea),sn(N.wrapper.ownerDocument,"mouseup",ca),Z.history.lastSelOrigin=null}var ea=ai(e,function(ta){ta.buttons===0||!et(ta)?Ur(ta):br(ta)}),ca=ai(e,Ur);e.state.selectingText=ca,lt(N.wrapper.ownerDocument,"mousemove",ea),lt(N.wrapper.ownerDocument,"mouseup",ca)}function ql(e,n){var D=n.anchor,T=n.head,N=$(e.doc,D.line);if(an(D,T)==0&&D.sticky==T.sticky)return n;var Z=Un(N);if(!Z)return n;var le=Qt(Z,D.ch,D.sticky),_e=Z[le];if(_e.from!=D.ch&&_e.to!=D.ch)return n;var Re=le+(_e.from==D.ch==(_e.level!=1)?0:1);if(Re==0||Re==Z.length)return n;var We;if(T.line!=D.line)We=(T.line-D.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ot=Qt(Z,T.ch,T.sticky),Wt=Ot-le||(T.ch-D.ch)*(_e.level==1?-1:1);Ot==Re-1||Ot==Re?We=Wt<0:We=Wt>0}var gn=Z[Re+(We?-1:0)],ln=We==(gn.level==1),er=ln?gn.from:gn.to,br=ln?"after":"before";return D.ch==er&&D.sticky==br?n:new Za(new St(D.line,er,br),T)}function Al(e,n,D,T){var N,Z;if(n.touches)N=n.touches[0].clientX,Z=n.touches[0].clientY;else try{N=n.clientX,Z=n.clientY}catch(gn){return!1}if(N>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;T&&Oe(n);var le=e.display,_e=le.lineDiv.getBoundingClientRect();if(Z>_e.bottom||!Je(e,D))return ye(n);Z-=_e.top-le.viewOffset;for(var Re=0;Re=N){var Ot=Mt(e.doc,Z),Wt=e.display.gutterSpecs[Re];return Tt(e,D,e,Ot,Wt.className,n),ye(n)}}}function Xs(e,n){return Al(e,n,"gutterClick",!0)}function wl(e,n){if(fa(e.display,n)||Ol(e,n))return;if(wt(e,n,"contextmenu"))return;C||e.display.input.onContextMenu(n)}function Ol(e,n){return Je(e,"gutterContextMenu")?Al(e,n,"gutterContextMenu",!1):!1}function Rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),aa(e)}var $o={toString:function(){return"CodeMirror.Init"}},As={},ds={};function $l(e){var n=e.optionHandlers;function D(T,N,Z,le){e.defaults[T]=N,Z&&(n[T]=le?function(_e,Re,We){We!=$o&&Z(_e,Re,We)}:Z)}e.defineOption=D,e.Init=$o,D("value","",function(T,N){return T.setValue(N)},!0),D("mode",null,function(T,N){T.doc.modeOption=N,xi(T)},!0),D("indentUnit",2,xi,!0),D("indentWithTabs",!1),D("smartIndent",!0),D("tabSize",4,function(T){Yi(T),aa(T),$r(T)},!0),D("lineSeparator",null,function(T,N){if(T.doc.lineSep=N,!N)return;var Z=[],le=T.doc.first;T.doc.iter(function(Re){for(var We=0;;){var Ot=Re.text.indexOf(N,We);if(Ot==-1)break;We=Ot+N.length,Z.push(St(le,Ot))}le++});for(var _e=Z.length-1;_e>=0;_e--)Xo(T.doc,N,Z[_e],St(Z[_e].line,Z[_e].ch+N.length))}),D("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(T,N,Z){T.state.specialChars=new RegExp(N.source+(N.test(" ")?"":"| "),"g"),Z!=$o&&T.refresh()}),D("specialCharPlaceholder",Aa,function(T){return T.refresh()},!0),D("electricChars",!0),D("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),D("spellcheck",!1,function(T,N){return T.getInputField().spellcheck=N},!0),D("autocorrect",!1,function(T,N){return T.getInputField().autocorrect=N},!0),D("autocapitalize",!1,function(T,N){return T.getInputField().autocapitalize=N},!0),D("rtlMoveVisually",!y),D("wholeLineUpdateBefore",!0),D("theme","default",function(T){Rl(T),lo(T)},!0),D("keyMap","default",function(T,N,Z){var le=os(N),_e=Z!=$o&&os(Z);_e&&_e.detach&&_e.detach(T,le),le.attach&&le.attach(T,_e||null)}),D("extraKeys",null),D("configureMouse",null),D("lineWrapping",!1,tu,!0),D("gutters",[],function(T,N){T.display.gutterSpecs=Mi(N,T.options.lineNumbers),lo(T)},!0),D("fixedGutter",!0,function(T,N){T.display.gutters.style.left=N?Ar(T.display)+"px":"0",T.refresh()},!0),D("coverGutterNextToScrollbar",!1,function(T){return Gi(T)},!0),D("scrollbarStyle","native",function(T){go(T),Gi(T),T.display.scrollbars.setScrollTop(T.doc.scrollTop),T.display.scrollbars.setScrollLeft(T.doc.scrollLeft)},!0),D("lineNumbers",!1,function(T,N){T.display.gutterSpecs=Mi(T.options.gutters,N),lo(T)},!0),D("firstLineNumber",1,lo,!0),D("lineNumberFormatter",function(T){return T},lo,!0),D("showCursorWhenSelecting",!1,Ka,!0),D("resetSelectionOnContextMenu",!0),D("lineWiseCopyCut",!0),D("pasteLinesPerSelection",!0),D("selectionsMayTouch",!1),D("readOnly",!1,function(T,N){N=="nocursor"&&(Zi(T),T.display.input.blur()),T.display.input.readOnlyChanged(N)}),D("screenReaderLabel",null,function(T,N){N=N===""?null:N,T.display.input.screenReaderLabelChanged(N)}),D("disableInput",!1,function(T,N){N||T.display.input.reset()},!0),D("dragDrop",!0,eu),D("allowDropFileTypes",null),D("cursorBlinkRate",530),D("cursorScrollMargin",0),D("cursorHeight",1,Ka,!0),D("singleCursorHeightPerLine",!0,Ka,!0),D("workTime",100),D("workDelay",100),D("flattenSpans",!0,Yi,!0),D("addModeClass",!1,Yi,!0),D("pollInterval",100),D("undoDepth",200,function(T,N){return T.doc.history.undoDepth=N}),D("historyEventDelay",1250),D("viewportMargin",10,function(T){return T.refresh()},!0),D("maxHighlightLength",1e4,Yi,!0),D("moveInputWithCursor",!0,function(T,N){N||T.display.input.resetPosition()}),D("tabindex",null,function(T,N){return T.display.input.getField().tabIndex=N||""}),D("autofocus",null),D("direction","ltr",function(T,N){return T.doc.setDirection(N)},!0),D("phrases",null)}function eu(e,n,D){var T=D&&D!=$o;if(!n!=!T){var N=e.display.dragFunctions,Z=n?lt:sn;Z(e.display.scroller,"dragstart",N.start),Z(e.display.scroller,"dragenter",N.enter),Z(e.display.scroller,"dragover",N.over),Z(e.display.scroller,"dragleave",N.leave),Z(e.display.scroller,"drop",N.drop)}}function tu(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(v(e.display.wrapper,"CodeMirror-wrap"),Dr(e)),Ia(e),$r(e),aa(e),setTimeout(function(){return Gi(e)},100)}function mi(e,n){var D=this;if(!(this instanceof mi))return new mi(e,n);this.options=n=n?G(n):{},G(As,n,!1);var T=n.value;typeof T=="string"?T=new to(T,n.mode,null,n.lineSeparator,n.direction):n.mode&&(T.modeOption=n.mode),this.doc=T;var N=new mi.inputStyles[n.inputStyle](this),Z=this.display=new Po(e,T,N,n);Z.wrapper.CodeMirror=this,Rl(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),go(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new X,keySeq:null,specialChars:null},n.autofocus&&!r&&Z.input.focus(),s&&d<11&&setTimeout(function(){return D.display.input.reset(!0)},20),Tl(this),iu(),Vi(this),this.curOp.forceUpdate=!0,Rs(this,T),n.autofocus&&!r||this.hasFocus()?setTimeout(function(){D.hasFocus()&&!D.state.focused&&Ii(D)},20):Zi(this);for(var le in ds)ds.hasOwnProperty(le)&&ds[le](this,n[le],$o);ni(this),n.finishInit&&n.finishInit(this);for(var _e=0;_e20*20}lt(n.scroller,"touchstart",function(Re){if(!wt(e,Re)&&!Z(Re)&&!Xs(e,Re)){n.input.ensurePolled(),clearTimeout(D);var We=+new Date;n.activeTouch={start:We,moved:!1,prev:We-T.end<=300?T:null},Re.touches.length==1&&(n.activeTouch.left=Re.touches[0].pageX,n.activeTouch.top=Re.touches[0].pageY)}}),lt(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),lt(n.scroller,"touchend",function(Re){var We=n.activeTouch;if(We&&!fa(n,Re)&&We.left!=null&&!We.moved&&new Date-We.start<300){var Ot=e.coordsChar(n.activeTouch,"page"),Wt;!We.prev||le(We,We.prev)?Wt=new Za(Ot,Ot):!We.prev.prev||le(We,We.prev.prev)?Wt=e.findWordAt(Ot):Wt=new Za(St(Ot.line,0),B(e.doc,St(Ot.line+1,0))),e.setSelection(Wt.anchor,Wt.head),e.focus(),Oe(Re)}N()}),lt(n.scroller,"touchcancel",N),lt(n.scroller,"scroll",function(){n.scroller.clientHeight&&(ro(e,n.scroller.scrollTop),pi(e,n.scroller.scrollLeft,!0),Tt(e,"scroll",e))}),lt(n.scroller,"mousewheel",function(Re){return Lo(e,Re)}),lt(n.scroller,"DOMMouseScroll",function(Re){return Lo(e,Re)}),lt(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(Re){wt(e,Re)||Se(Re)},over:function(Re){wt(e,Re)||(Bl(e,Re),Se(Re))},start:function(Re){return pl(e,Re)},drop:ai(e,jl),leave:function(Re){wt(e,Re)||ks(e)}};var _e=n.input.getField();lt(_e,"keyup",function(Re){return xl.call(e,Re)}),lt(_e,"keydown",ai(e,El)),lt(_e,"keypress",ai(e,Cl)),lt(_e,"focus",function(Re){return Ii(e,Re)}),lt(_e,"blur",function(Re){return Zi(e,Re)})}var z=[];mi.defineInitHook=function(e){return z.push(e)};function K(e,n,D,T){var N=e.doc,Z;D==null&&(D="add"),D=="smart"&&(N.mode.indent?Z=Tn(e,n).state:D="prev");var le=e.options.tabSize,_e=$(N,n),Re=J(_e.text,null,le);_e.stateAfter&&(_e.stateAfter=null);var We=_e.text.match(/^\s*/)[0],Ot;if(!T&&!/\S/.test(_e.text))Ot=0,D="not";else if(D=="smart"&&(Ot=N.mode.indent(Z,_e.text.slice(We.length),_e.text),Ot==be||Ot>150)){if(!T)return;D="prev"}D=="prev"?n>N.first?Ot=J($(N,n-1).text,null,le):Ot=0:D=="add"?Ot=Re+e.options.indentUnit:D=="subtract"?Ot=Re-e.options.indentUnit:typeof D=="number"&&(Ot=Re+D),Ot=Math.max(0,Ot);var Wt="",gn=0;if(e.options.indentWithTabs)for(var ln=Math.floor(Ot/le);ln;--ln)gn+=le,Wt+=" ";if(gnle,Re=pe(n),We=null;if(_e&&T.ranges.length>1)if(q&&q.text.join(` + left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(Z),Z.scrollIntoView(N),e.display.lineSpace.removeChild(Z)}}function ho(e,n,D,T){T==null&&(T=0);var N;!e.options.lineWrapping&&n==D&&(n=n.ch?St(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n,D=n.sticky=="before"?St(n.line,n.ch+1,"before"):n);for(var Z=0;Z<5;Z++){var le=!1,_e=un(e,n),Re=!D||D==n?_e:un(e,D);N={left:Math.min(_e.left,Re.left),top:Math.min(_e.top,Re.top)-T,right:Math.max(_e.left,Re.left),bottom:Math.max(_e.bottom,Re.bottom)+T};var We=Ra(e,N),Ot=e.doc.scrollTop,Wt=e.doc.scrollLeft;if(We.scrollTop!=null&&(ro(e,We.scrollTop),Math.abs(e.doc.scrollTop-Ot)>1&&(le=!0)),We.scrollLeft!=null&&(pi(e,We.scrollLeft),Math.abs(e.doc.scrollLeft-Wt)>1&&(le=!0)),!le)break}return N}function Pi(e,n){var D=Ra(e,n);D.scrollTop!=null&&ro(e,D.scrollTop),D.scrollLeft!=null&&pi(e,D.scrollLeft)}function Ra(e,n){var D=e.display,T=pn(e.display);n.top<0&&(n.top=0);var N=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:D.scroller.scrollTop,Z=we(e),le={};n.bottom-n.top>Z&&(n.bottom=n.top+Z);var _e=e.doc.height+$e(D),Re=n.top_e-T;if(n.topN+Z){var Ot=Math.min(n.top,(We?_e:n.bottom)-Z);Ot!=N&&(le.scrollTop=Ot)}var Wt=e.options.fixedGutter?0:D.gutters.offsetWidth,gn=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:D.scroller.scrollLeft-Wt,ln=Me(e)-D.gutters.offsetWidth,er=n.right-n.left>ln;return er&&(n.right=n.left+ln),n.left<10?le.scrollLeft=0:n.leftln+gn-3&&(le.scrollLeft=n.right+(er?0:10)-ln),le}function Sa(e,n){if(n==null)return;yi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n}function wa(e){yi(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Ja(e,n,D){(n!=null||D!=null)&&yi(e),n!=null&&(e.curOp.scrollLeft=n),D!=null&&(e.curOp.scrollTop=D)}function ai(e,n){yi(e),e.curOp.scrollToPos=n}function yi(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var D=Rn(e,n.from),T=Rn(e,n.to);oi(e,D,T,n.margin)}}function oi(e,n,D,T){var N=Ra(e,{left:Math.min(n.left,D.left),top:Math.min(n.top,D.top)-T,right:Math.max(n.right,D.right),bottom:Math.max(n.bottom,D.bottom)+T});Ja(e,N.scrollLeft,N.scrollTop)}function ro(e,n){if(Math.abs(e.doc.scrollTop-n)<2)return;L||dr(e,{top:n}),mo(e,n,!0),L&&dr(e),Ei(e,100)}function mo(e,n,D){if(n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),e.display.scroller.scrollTop==n&&!D)return;e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n)}function pi(e,n,D,T){if(n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(D?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!T)return;e.doc.scrollLeft=n,Fa(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n)}function Ki(e){var n=e.display,D=n.gutters.offsetWidth,T=Math.round(e.doc.height+$e(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?D:0,docHeight:T,scrollHeight:T+vt(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:D}}var vi=function(e,n,D){this.cm=D;var T=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),N=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");T.tabIndex=N.tabIndex=-1,e(T),e(N),lt(T,"scroll",function(){T.clientHeight&&n(T.scrollTop,"vertical")}),lt(N,"scroll",function(){N.clientWidth&&n(N.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,D=e.scrollHeight>e.clientHeight+1,T=e.nativeBarWidth;if(D){this.vert.style.display="block",this.vert.style.bottom=n?T+"px":"0";var N=e.viewHeight-(n?T:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+N)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=D?T+"px":"0",this.horiz.style.left=e.barLeft+"px";var Z=e.viewWidth-e.barLeft-(D?T:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(T==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:D?T:0,bottom:n?T:0}},vi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var e=u&&!y?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new X,this.disableVert=new X},vi.prototype.enableZeroWidthBar=function(e,n,D){e.style.pointerEvents="auto";function T(){var N=e.getBoundingClientRect(),Z=D=="vert"?document.elementFromPoint(N.right-1,(N.top+N.bottom)/2):document.elementFromPoint((N.right+N.left)/2,N.bottom-1);Z!=e?e.style.pointerEvents="none":n.set(1e3,T)}n.set(1e3,T)},vi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Gi=function(){};Gi.prototype.update=function(){return{bottom:0,right:0}},Gi.prototype.setScrollLeft=function(){},Gi.prototype.setScrollTop=function(){},Gi.prototype.clear=function(){};function Vi(e,n){n||(n=Ki(e));var D=e.display.barWidth,T=e.display.barHeight;So(e,n);for(var N=0;N<4&&D!=e.display.barWidth||T!=e.display.barHeight;N++)D!=e.display.barWidth&&e.options.lineWrapping&&$i(e),So(e,Ki(e)),D=e.display.barWidth,T=e.display.barHeight}function So(e,n){var D=e.display,T=D.scrollbars.update(n);D.sizer.style.paddingRight=(D.barWidth=T.right)+"px",D.sizer.style.paddingBottom=(D.barHeight=T.bottom)+"px",D.heightForcer.style.borderBottom=T.bottom+"px solid transparent",T.right&&T.bottom?(D.scrollbarFiller.style.display="block",D.scrollbarFiller.style.height=T.bottom+"px",D.scrollbarFiller.style.width=T.right+"px"):D.scrollbarFiller.style.display="",T.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(D.gutterFiller.style.display="block",D.gutterFiller.style.height=T.bottom+"px",D.gutterFiller.style.width=n.gutterWidth+"px"):D.gutterFiller.style.display=""}var po={native:vi,null:Gi};function vo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&v(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new po[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),lt(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,D){D=="horizontal"?pi(e,n):ro(e,n)},e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var go=0;function Xi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++go},yr(e.curOp)}function oo(e){var n=e.curOp;n&&Zn(n,function(D){for(var T=0;T=D.viewTo)||D.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new ji(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function so(e){e.updatedDisplay=e.mustUpdate&&si(e.cm,e.update)}function wo(e){var n=e.cm,D=n.display;e.updatedDisplay&&$i(n),e.barMeasure=Ki(n),D.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=ct(n,D.maxLine,D.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(D.scroller.clientWidth,D.sizer.offsetLeft+e.adjustWidthTo+vt(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,D.sizer.offsetLeft+e.adjustWidthTo-Me(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=D.input.prepareSelection())}function To(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var D=+new Date+e.options.workTime,T=Tn(e,n.highlightFrontier),N=[];n.iter(T.line,Math.min(n.first+n.size,e.display.viewTo+500),function(Z){if(T.line>=e.display.viewFrom){var le=Z.styles,_e=Z.text.length>e.options.maxHighlightLength?bn(n.mode,T.state):null,Re=ht(e,Z,T,!0);_e&&(T.state=_e),Z.styles=Re.styles;var We=Z.styleClasses,Ot=Re.classes;Ot?Z.styleClasses=Ot:We&&(Z.styleClasses=null);for(var Wt=!le||le.length!=Z.styles.length||We!=Ot&&(!We||!Ot||We.bgClass!=Ot.bgClass||We.textClass!=Ot.textClass),gn=0;!Wt&&gnD)return Ei(e,e.options.workDelay),!0}),n.highlightFrontier=T.line,n.modeFrontier=Math.max(n.modeFrontier,T.line),N.length&&Oi(e,function(){for(var Z=0;Z=D.viewFrom&&n.visible.to<=D.viewTo&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo)&&D.renderedView==D.view&&ni(e)==0)return!1;Ha(e)&&(Na(e),n.dims=qn(e));var N=T.first+T.size,Z=Math.max(n.visible.from-e.options.viewportMargin,T.first),le=Math.min(N,n.visible.to+e.options.viewportMargin);D.viewFromle&&D.viewTo-le<20&&(le=Math.min(N,D.viewTo)),Yr&&(Z=$n(e.doc,Z),le=Yn(e.doc,le));var _e=Z!=D.viewFrom||le!=D.viewTo||D.lastWrapHeight!=n.wrapperHeight||D.lastWrapWidth!=n.wrapperWidth;ri(e,Z,le),D.viewOffset=lr($(e.doc,D.viewFrom)),e.display.mover.style.top=D.viewOffset+"px";var Re=ni(e);if(!_e&&Re==0&&!n.force&&D.renderedView==D.view&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo))return!1;var We=Oo(e);return Re>4&&(D.lineDiv.style.display="none"),cr(e,D.updateLineNumbers,n.dims),Re>4&&(D.lineDiv.style.display=""),D.renderedView=D.view,Mi(We),o(D.cursorDiv),o(D.selectionDiv),D.gutters.style.height=D.sizer.style.minHeight=0,_e&&(D.lastWrapHeight=n.wrapperHeight,D.lastWrapWidth=n.wrapperWidth,Ei(e,400)),D.updateLineNumbers=null,!0}function ca(e,n){for(var D=n.viewport,T=!0;;T=!1){if(!T||!e.options.lineWrapping||n.oldDisplayWidth==Me(e)){if(D&&D.top!=null&&(D={top:Math.min(e.doc.height+$e(e.display)-we(e),D.top)}),n.visible=eo(e.display,e.doc,D),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else T&&(n.visible=eo(e.display,e.doc,D));if(!si(e,n))break;$i(e);var N=Ki(e);Ga(e),Vi(e,N),ja(e,N),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function dr(e,n){var D=new ji(e,n);if(si(e,D)){$i(e),ca(e,D);var T=Ki(e);Ga(e),Vi(e,T),ja(e,T),D.finish()}}function cr(e,n,D){var T=e.display,N=e.options.lineNumbers,Z=T.lineDiv,le=Z.firstChild;function _e(er){var br=er.nextSibling;return w&&u&&e.display.currentWheelTarget==er?er.style.display="none":er.parentNode.removeChild(er),br}for(var Re=T.view,We=T.viewFrom,Ot=0;Ot-1&&(ln=!1),Pr(e,Wt,We,D)),ln&&(o(Wt.lineNumber),Wt.lineNumber.appendChild(document.createTextNode(kn(e.options,We)))),le=Wt.node.nextSibling}We+=Wt.size}for(;le;)le=_e(le)}function da(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px"}function ja(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+vt(e)+"px"}function Fa(e){var n=e.display,D=n.view;if(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))return;for(var T=Ar(n)-n.scroller.scrollLeft+e.doc.scrollLeft,N=n.gutters.offsetWidth,Z=T+"px",le=0;lele.clientWidth,Re=le.scrollHeight>le.clientHeight;if(!(T&&_e||N&&Re))return;if(N&&u&&w){e:for(var We=n.target,Ot=Z.view;We!=le;We=We.parentNode)for(var Wt=0;Wt=0&&an(e,T.to())<=0)return D}return-1};var Za=function(e,n){this.anchor=e,this.head=n};Za.prototype.from=function(){return Bn(this.anchor,this.head)},Za.prototype.to=function(){return jn(this.anchor,this.head)},Za.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wa(e,n,D){var T=e&&e.options.selectionsMayTouch,N=n[D];n.sort(function(gn,ln){return an(gn.from(),ln.from())}),D=te(n,N);for(var Z=1;Z0:Re>=0){var We=Bn(_e.from(),le.from()),Ot=jn(_e.to(),le.to()),Wt=_e.empty()?le.from()==le.head:_e.from()==_e.head;Z<=D&&--D,n.splice(--Z,2,new Za(Wt?Ot:We,Wt?We:Ot))}}return new Bi(n,D)}function na(e,n){return new Bi([new Za(e,n||e)],0)}function Oa(e){return e.text?St(e.from.line+e.text.length-1,ce(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ka(e,n){if(an(e,n.from)<0)return e;if(an(e,n.to)<=0)return Oa(n);var D=e.line+n.text.length-(n.to.line-n.from.line)-1,T=e.ch;return e.line==n.to.line&&(T+=Oa(n).ch-n.to.ch),St(D,T)}function ii(e,n){for(var D=[],T=0;T1&&e.remove(_e.line+1,er-1),e.insert(_e.line+1,ea)}rr(e,"change",e,n)}function bi(e,n,D){function T(N,Z,le){if(N.linked)for(var _e=0;_e1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ce(e.done)}function Js(e,n,D,T){var N=e.history;N.undone.length=0;var Z=+new Date,le,_e;if((N.lastOp==T||N.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&N.lastModTime>Z-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(le=Pl(N,N.lastOp==T)))_e=ce(le.changes),an(n.from,n.to)==0&&an(n.from,_e.to)==0?_e.to=Oa(n):le.changes.push(Ts(e,n));else{var Re=ce(N.done);for((!Re||!Re.ranges)&&ps(e.sel,N.done),le={changes:[Ts(e,n)],generation:N.generation},N.done.push(le);N.done.length>N.undoDepth;)N.done.shift(),N.done[0].ranges||N.done.shift()}N.done.push(D),N.generation=++N.maxGeneration,N.lastModTime=N.lastSelTime=Z,N.lastOp=N.lastSelOp=T,N.lastOrigin=N.lastSelOrigin=n.origin,_e||Tt(e,"historyAdded")}function Ml(e,n,D,T){var N=n.charAt(0);return N=="*"||N=="+"&&D.ranges.length==T.ranges.length&&D.somethingSelected()==T.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ms(e,n,D,T){var N=e.history,Z=T&&T.origin;D==N.lastSelOp||Z&&N.lastSelOrigin==Z&&(N.lastModTime==N.lastSelTime&&N.lastOrigin==Z||Ml(e,Z,ce(N.done),n))?N.done[N.done.length-1]=n:ps(n,N.done),N.lastSelTime=+new Date,N.lastSelOrigin=Z,N.lastSelOp=D,T&&T.clearRedo!==!1&&Qs(N.undone)}function ps(e,n){var D=ce(n);D&&D.ranges&&D.equals(e)||n.push(e)}function Ds(e,n,D,T){var N=n["spans_"+e.id],Z=0;e.iter(Math.max(e.first,D),Math.min(e.first+e.size,T),function(le){le.markedSpans&&((N||(N=n["spans_"+e.id]={}))[Z]=le.markedSpans),++Z})}function vs(e){if(!e)return null;for(var n,D=0;D-1&&(ce(_e)[Wt]=We[Wt],delete We[Wt]))}}return T}function gs(e,n,D,T){if(T){var N=e.anchor;if(D){var Z=an(n,N)<0;Z!=an(D,N)<0?(N=n,n=D):Z!=an(n,D)<0&&(n=D)}return new Za(N,n)}else return new Za(D||n,n)}function bs(e,n,D,T,N){N==null&&(N=e.cm&&(e.cm.display.shift||e.extend)),Wi(e,new Bi([gs(e.sel.primary(),n,D,N)],0),T)}function qs(e,n,D){for(var T=[],N=e.cm&&(e.cm.display.shift||e.extend),Z=0;Z=n.ch:_e.to>n.ch))){if(N&&(Tt(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(Z.markedSpans){--le;continue}else break;if(!Re.atomic)continue;if(D){var Wt=Re.find(T<0?1:-1),gn=void 0;if((T<0?Ot:We)&&(Wt=al(e,Wt,-T,Wt&&Wt.line==n.line?Z:null)),Wt&&Wt.line==n.line&&(gn=an(Wt,D))&&(T<0?gn<0:gn>0))return Ko(e,Wt,n,T,N)}var ln=Re.find(T<0?-1:1);return(T<0?We:Ot)&&(ln=al(e,ln,T,ln.line==n.line?Z:null)),ln?Ko(e,ln,n,T,N):null}}return n}function ys(e,n,D,T,N){var Z=T||1,le=Ko(e,n,D,Z,N)||!N&&Ko(e,n,D,Z,!0)||Ko(e,n,D,-Z,N)||!N&&Ko(e,n,D,-Z,!0);return le||(e.cantEdit=!0,St(e.first,0))}function al(e,n,D,T){return D<0&&n.ch==0?n.line>e.first?B(e,St(n.line-1)):null:D>0&&n.ch==(T||$(e,n.line)).text.length?n.line=0;--N)ol(e,{from:T[N].from,to:T[N].to,text:N?[""]:n.text,origin:n.origin});else ol(e,n)}function ol(e,n){if(n.text.length==1&&n.text[0]==""&&an(n.from,n.to)==0)return;var D=ii(e,n);Js(e,n,D,e.cm?e.cm.curOp.id:NaN),Vo(e,n,D,Gn(e,n));var T=[];bi(e,function(N,Z){!Z&&te(T,N.history)==-1&&(dl(N.history,n),T.push(N.history)),Vo(N,n,null,Gn(N,n))})}function _s(e,n,D){var T=e.cm&&e.cm.state.suppressEdits;if(T&&!D)return;for(var N=e.history,Z,le=e.sel,_e=n=="undo"?N.done:N.undone,Re=n=="undo"?N.undone:N.done,We=0;We<_e.length&&!(Z=_e[We],D?Z.ranges&&!Z.equals(e.sel):!Z.ranges);We++);if(We==_e.length)return;for(N.lastOrigin=N.lastSelOrigin=null;;)if(Z=_e.pop(),Z.ranges){if(ps(Z,Re),D&&!Z.equals(e.sel)){Wi(e,Z,{clearRedo:!1});return}le=Z}else if(T){_e.push(Z);return}else break;var Ot=[];ps(le,Re),Re.push({changes:Ot,generation:N.generation}),N.generation=Z.generation||++N.maxGeneration;for(var Wt=Je(e,"beforeChange")||e.cm&&Je(e.cm,"beforeChange"),gn=function(br){var Ur=Z.changes[br];if(Ur.origin=n,Wt&&!Ms(e,Ur,!1))return _e.length=0,{};Ot.push(Ts(e,Ur));var ea=br?ii(e,Ur):ce(_e);Vo(e,Ur,ea,Ps(e,Ur)),!br&&e.cm&&e.cm.scrollIntoView({from:Ur.from,to:Oa(Ur)});var ha=[];bi(e,function(ta,_a){!_a&&te(ha,ta.history)==-1&&(dl(ta.history,Ur),ha.push(ta.history)),Vo(ta,Ur,null,Ps(ta,Ur))})},ln=Z.changes.length-1;ln>=0;--ln){var er=gn(ln);if(er)return er.v}}function sl(e,n){if(n==0)return;if(e.first+=n,e.sel=new Bi(Ee(e.sel.ranges,function(N){return new Za(St(N.anchor.line+n,N.anchor.ch),St(N.head.line+n,N.head.ch))}),e.sel.primIndex),e.cm){$r(e.cm,e.first,e.first-n,n);for(var D=e.cm.display,T=D.viewFrom;Te.lastLine())return;if(n.from.lineZ&&(n={from:n.from,to:St(Z,$(e,Z).text.length),text:[n.text[0]],origin:n.origin}),n.removed=re(e,n.from,n.to),D||(D=ii(e,n)),e.cm?kl(e.cm,n,T):ko(e,n,T),Ho(e,D,ge),e.cantEdit&&ys(e,St(e.firstLine(),0))&&(e.cantEdit=!1)}function kl(e,n,D){var T=e.doc,N=e.display,Z=n.from,le=n.to,_e=!1,Re=Z.line;e.options.lineWrapping||(Re=it(fn($(T,Z.line))),T.iter(Re,le.line+1,function(ln){if(ln==N.maxLine)return _e=!0,!0})),T.sel.contains(n.from,n.to)>-1&&Qe(e),ko(T,n,D,Da(e)),e.options.lineWrapping||(T.iter(Re,Z.line+n.text.length,function(ln){var er=wr(ln);er>N.maxLineLength&&(N.maxLine=ln,N.maxLineLength=er,N.maxLineChanged=!0,_e=!1)}),_e&&(e.curOp.updateMaxLine=!0)),jr(T,Z.line),Ei(e,400);var We=n.text.length-(le.line-Z.line)-1;n.full?$r(e):Z.line==le.line&&n.text.length==1&&!Eo(e.doc,n)?ka(e,Z.line,"text"):$r(e,Z.line,le.line+1,We);var Ot=Je(e,"changes"),Wt=Je(e,"change");if(Wt||Ot){var gn={from:Z,to:le,text:n.text,removed:n.removed,origin:n.origin};Wt&&rr(e,"change",e,gn),Ot&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(gn)}e.display.selForContextMenu=null}function Xo(e,n,D,T,N){var Z;T||(T=D),an(T,D)<0&&(Z=[T,D],D=Z[0],T=Z[1]),typeof n=="string"&&(n=e.splitLines(n)),Go(e,{from:D,to:T,text:n,origin:N})}function ll(e,n,D,T){D1||!(this.children[0]instanceof jo))){var _e=[];this.collapse(_e),this.children=[new jo(_e)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n50){for(var le=N.lines.length%25+25,_e=le;_e10);e.parent.maybeSpill()},iterN:function(e,n,D){for(var T=0;Te.display.maxLineLength&&(e.display.maxLine=We,e.display.maxLineLength=Ot,e.display.maxLineChanged=!0)}T!=null&&e&&this.collapsed&&$r(e,T,N+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&nl(e.doc)),e&&rr(e,"markerCleared",e,this,T,N),n&&oo(e),this.parent&&this.parent.clear()},xo.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var D,T,N=0;N0||le==0&&Z.clearWhenEmpty!==!1)return Z;if(Z.replacedWith&&(Z.collapsed=!0,Z.widgetNode=M("span",[Z.replacedWith],"CodeMirror-widget"),T.handleMouseEvents||Z.widgetNode.setAttribute("cm-ignore-events","true"),T.insertLeft&&(Z.widgetNode.insertLeft=!0)),Z.collapsed){if(Mn(e,n.line,n,D,Z)||n.line!=D.line&&Mn(e,D.line,n,D,Z))throw new Error("Inserting collapsed marker partially overlapping an existing one");Jn()}Z.addToHistory&&Js(e,{from:n,to:D,origin:"markText"},e.sel,NaN);var _e=n.line,Re=e.cm,We;if(e.iter(_e,D.line+1,function(Wt){Re&&Z.collapsed&&!Re.options.lineWrapping&&fn(Wt)==Re.display.maxLine&&(We=!0),Z.collapsed&&_e!=n.line&&Ue(Wt,0),or(Wt,new hr(Z,_e==n.line?n.ch:null,_e==D.line?D.ch:null)),++_e}),Z.collapsed&&e.iter(n.line,D.line+1,function(Wt){_r(e,Wt)&&Ue(Wt,0)}),Z.clearOnEnter&<(Z,"beforeCursorEnter",function(){return Z.clear()}),Z.readOnly&&(Tr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),Z.collapsed&&(Z.id=++fl,Z.atomic=!0),Re){if(We&&(Re.curOp.updateMaxLine=!0),Z.collapsed)$r(Re,n.line,D.line+1);else if(Z.className||Z.startStyle||Z.endStyle||Z.css||Z.attributes||Z.title)for(var Ot=n.line;Ot<=D.line;Ot++)ka(Re,Ot,"text");Z.atomic&&nl(Re.doc),rr(Re,"markerAdded",Re,Z)}return Z}var Jo=function(e,n){this.markers=e,this.primary=n;for(var D=0;D=0;Re--)Go(this,T[Re]);_e?el(this,_e):this.cm&&wa(this.cm)}),undo:ui(function(){_s(this,"undo")}),redo:ui(function(){_s(this,"redo")}),undoSelection:ui(function(){_s(this,"undo",!0)}),redoSelection:ui(function(){_s(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,D=0,T=0;T=e.ch)&&n.push(N.marker.parent||N.marker)}return n},findMarks:function(e,n,D){e=B(this,e),n=B(this,n);var T=[],N=e.line;return this.iter(e.line,n.line+1,function(Z){var le=Z.markedSpans;if(le)for(var _e=0;_e=Re.to||Re.from==null&&N!=e.line||Re.from!=null&&N==n.line&&Re.from>=n.ch)&&(!D||D(Re.marker))&&T.push(Re.marker.parent||Re.marker)}++N}),T},getAllMarks:function(){var e=[];return this.iter(function(n){var D=n.markedSpans;if(D)for(var T=0;Te)return n=e,!0;e-=Z,++D}),B(this,St(D,n))},indexFromPos:function(e){e=B(this,e);var n=e.ch;if(e.linen&&(n=e.from),e.to!=null&&e.to-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var Ot=e.dataTransfer.getData("Text");if(Ot){var Wt;if(n.state.draggingText&&!n.state.draggingText.copy&&(Wt=n.listSelections()),Ho(n.doc,na(D,D)),Wt)for(var gn=0;gn=0;_e--)Xo(e.doc,"",T[_e].from,T[_e].to,"+delete");wa(e)})}function Us(e,n,D){var T=at(e.text,n+D,D);return T<0||T>e.text.length?null:T}function js(e,n,D){var T=Us(e,n.ch,D);return T==null?null:new St(n.line,T,D<0?"after":"before")}function Bs(e,n,D,T,N){if(e){n.doc.direction=="rtl"&&(N=-N);var Z=Un(D,n.doc.direction);if(Z){var le=N<0?ce(Z):Z[0],_e=N<0==(le.level==1),Re=_e?"after":"before",We;if(le.level>0||n.doc.direction=="rtl"){var Ot=gt(n,D);We=N<0?D.text.length-1:0;var Wt=zt(n,Ot,We).top;We=At(function(gn){return zt(n,Ot,gn).top==Wt},N<0==(le.level==1)?le.from:le.to-1,We),Re=="before"&&(We=Us(D,We,1))}else We=N<0?le.to:le.from;return new St(T,We,Re)}}return new St(T,N<0?D.text.length:0,N<0?"before":"after")}function Fs(e,n,D,T){var N=Un(n,e.doc.direction);if(!N)return js(n,D,T);D.ch>=n.text.length?(D.ch=n.text.length,D.sticky="before"):D.ch<=0&&(D.ch=0,D.sticky="after");var Z=Qt(N,D.ch,D.sticky),le=N[Z];if(e.doc.direction=="ltr"&&le.level%2==0&&(T>0?le.to>D.ch:le.from=le.from&&gn>=Ot.begin)){var ln=Wt?"before":"after";return new St(D.line,gn,ln)}}var er=function(ea,ha,ta){for(var _a=function(hi,zi){return zi?new St(D.line,_e(hi,1),"before"):new St(D.line,hi,"after")};ea>=0&&ea0==(Ba.level!=1),Ya=Pa?ta.begin:_e(ta.end,-1);if(Ba.from<=Ya&&Ya0?Ot.end:_e(Ot.begin,-1);return Ur!=null&&!(T>0&&Ur==n.text.length)&&(br=er(T>0?0:N.length-1,T,We(Ur)),br)?br:null}var qo={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ge)},killLine:function(e){return Zo(e,function(n){if(n.empty()){var D=$(e.doc,n.head.line).text.length;return n.head.ch==D&&n.head.line0)N=new St(N.line,N.ch+1),e.replaceRange(Z.charAt(N.ch-1)+Z.charAt(N.ch-2),St(N.line,N.ch-2),N,"+transpose");else if(N.line>e.doc.first){var le=$(e.doc,N.line-1).text;le&&(N=new St(N.line,1),e.replaceRange(Z.charAt(0)+e.doc.lineSeparator()+le.charAt(le.length-1),St(N.line-1,le.length-1),N,"+transpose"))}}D.push(new Za(N,N))}e.setSelections(D)})},newlineAndIndent:function(e){return Oi(e,function(){for(var n=e.listSelections(),D=n.length-1;D>=0;D--)e.replaceRange(e.doc.lineSeparator(),n[D].anchor,n[D].head,"+input");n=e.listSelections();for(var T=0;Te&&an(n,this.pos)==0&&D==this.button};var ls,us;function Xl(e,n){var D=+new Date;return us&&us.compare(D,e,n)?(ls=us=null,"triple"):ls&&ls.compare(D,e,n)?(us=new Ks(D,e,n),ls=null,"double"):(ls=new Ks(D,e,n),us=null,"single")}function Gs(e){var n=this,D=n.display;if(wt(n,e)||D.activeTouch&&D.input.supportsTouch())return;if(D.input.ensurePolled(),D.shift=e.shiftKey,ma(D,e)){w||(D.scroller.draggable=!1,setTimeout(function(){return D.scroller.draggable=!0},100));return}if(Xs(n,e))return;var T=La(n,e),N=et(e),Z=T?Xl(T,N):"single";if(window.focus(),N==1&&n.state.selectingText&&n.state.selectingText(e),T&&Sl(n,N,T,Z,e))return;N==1?T?Ql(n,T,Z,e):dt(e)==D.scroller&&Oe(e):N==2?(T&&bs(n.doc,T),setTimeout(function(){return D.input.focus()},20)):N==3&&(C?n.display.input.onContextMenu(e):Ao(n))}function Sl(e,n,D,T,N){var Z="Click";return T=="double"?Z="Double"+Z:T=="triple"&&(Z="Triple"+Z),Z=(n==1?"Left":n==2?"Middle":"Right")+Z,ss(e,bl(Z,N),N,function(le){if(typeof le=="string"&&(le=qo[le]),!le)return!1;var _e=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),_e=le(e,D)!=be}finally{e.state.suppressEdits=!1}return _e})}function Yl(e,n,D){var T=e.getOption("configureMouse"),N=T?T(e,n,D):{};if(N.unit==null){var Z=h?D.shiftKey&&D.metaKey:D.altKey;N.unit=Z?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(N.extend==null||e.doc.extend)&&(N.extend=e.doc.extend||D.shiftKey),N.addNew==null&&(N.addNew=u?D.metaKey:D.ctrlKey),N.moveOnDrag==null&&(N.moveOnDrag=!(u?D.altKey:D.ctrlKey)),N}function Ql(e,n,D,T){s?setTimeout(W(Zi,e),0):e.curOp.focus=k();var N=Yl(e,D,T),Z=e.doc.sel,le;e.options.dragDrop&&xt&&!e.isReadOnly()&&D=="single"&&(le=Z.contains(n))>-1&&(an((le=Z.ranges[le]).from(),n)<0||n.xRel>0)&&(an(le.to(),n)>0||n.xRel<0)?Jl(e,T,n,N):Zl(e,T,n,N)}function Jl(e,n,D,T){var N=e.display,Z=!1,le=ti(e,function(We){w&&(N.scroller.draggable=!1),e.state.draggingText=!1,sn(N.wrapper.ownerDocument,"mouseup",le),sn(N.wrapper.ownerDocument,"mousemove",_e),sn(N.scroller,"dragstart",Re),sn(N.scroller,"drop",le),Z||(Oe(We),T.addNew||bs(e.doc,D,null,null,T.extend),w&&!x||s&&d==9?setTimeout(function(){N.wrapper.ownerDocument.body.focus({preventScroll:!0}),N.input.focus()},20):N.input.focus())}),_e=function(We){Z=Z||Math.abs(n.clientX-We.clientX)+Math.abs(n.clientY-We.clientY)>=10},Re=function(){return Z=!0};w&&(N.scroller.draggable=!0),e.state.draggingText=le,le.copy=!T.moveOnDrag,N.scroller.dragDrop&&N.scroller.dragDrop(),lt(N.wrapper.ownerDocument,"mouseup",le),lt(N.wrapper.ownerDocument,"mousemove",_e),lt(N.scroller,"dragstart",Re),lt(N.scroller,"drop",le),Ao(e),setTimeout(function(){return N.input.focus()},20)}function Vs(e,n,D){if(D=="char")return new Za(n,n);if(D=="word")return e.findWordAt(n);if(D=="line")return new Za(St(n.line,0),B(e.doc,St(n.line+1,0)));var T=D(e,n);return new Za(T.from,T.to)}function Zl(e,n,D,T){var N=e.display,Z=e.doc;Oe(n);var le,_e,Re=Z.sel,We=Re.ranges;if(T.addNew&&!T.extend?(_e=Z.sel.contains(D),_e>-1?le=We[_e]:le=new Za(D,D)):(le=Z.sel.primary(),_e=Z.sel.primIndex),T.unit=="rectangle")T.addNew||(le=new Za(D,D)),D=La(e,n,!0,!0),_e=-1;else{var Ot=Vs(e,D,T.unit);T.extend?le=gs(le,Ot.anchor,Ot.head,T.extend):le=Ot}T.addNew?_e==-1?(_e=We.length,Wi(Z,Wa(e,We.concat([le]),_e),{scroll:!1,origin:"*mouse"})):We.length>1&&We[_e].empty()&&T.unit=="char"&&!T.extend?(Wi(Z,Wa(e,We.slice(0,_e).concat(We.slice(_e+1)),0),{scroll:!1,origin:"*mouse"}),Re=Z.sel):Uo(Z,_e,le,je):(_e=0,Wi(Z,new Bi([le],0),je),Re=Z.sel);var Wt=D;function gn(ta){if(an(Wt,ta)==0)return;if(Wt=ta,T.unit=="rectangle"){for(var _a=[],Ba=e.options.tabSize,Pa=J($(Z,D.line).text,D.ch,Ba),Ya=J($(Z,ta.line).text,ta.ch,Ba),hi=Math.min(Pa,Ya),zi=Math.max(Pa,Ya),Si=Math.min(D.line,ta.line),Co=Math.min(e.lastLine(),Math.max(D.line,ta.line));Si<=Co;Si++){var lo=$(Z,Si).text,Ii=nt(lo,hi,Ba);hi==zi?_a.push(new Za(St(Si,Ii),St(Si,Ii))):lo.length>Ii&&_a.push(new Za(St(Si,Ii),St(Si,nt(lo,zi,Ba))))}_a.length||_a.push(new Za(D,D)),Wi(Z,Wa(e,Re.ranges.slice(0,_e).concat(_a),_e),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ta)}else{var uo=le,Ji=Vs(e,ta,T.unit),Fi=uo.anchor,Ni;an(Ji.anchor,Fi)>0?(Ni=Ji.head,Fi=Bn(uo.from(),Ji.anchor)):(Ni=Ji.anchor,Fi=jn(uo.to(),Ji.head));var Ti=Re.ranges.slice(0);Ti[_e]=ql(e,new Za(B(Z,Fi),Ni)),Wi(Z,Wa(e,Ti,_e),je)}}var ln=N.wrapper.getBoundingClientRect(),er=0;function br(ta){var _a=++er,Ba=La(e,ta,!0,T.unit=="rectangle");if(!Ba)return;if(an(Ba,Wt)!=0){e.curOp.focus=k(),gn(Ba);var Pa=eo(N,Z);(Ba.line>=Pa.to||Ba.lineln.bottom?20:0;Ya&&setTimeout(ti(e,function(){if(er!=_a)return;N.scroller.scrollTop+=Ya,br(ta)}),50)}}function Ur(ta){e.state.selectingText=!1,er=Infinity,ta&&(Oe(ta),N.input.focus()),sn(N.wrapper.ownerDocument,"mousemove",ea),sn(N.wrapper.ownerDocument,"mouseup",ha),Z.history.lastSelOrigin=null}var ea=ti(e,function(ta){ta.buttons===0||!et(ta)?Ur(ta):br(ta)}),ha=ti(e,Ur);e.state.selectingText=ha,lt(N.wrapper.ownerDocument,"mousemove",ea),lt(N.wrapper.ownerDocument,"mouseup",ha)}function ql(e,n){var D=n.anchor,T=n.head,N=$(e.doc,D.line);if(an(D,T)==0&&D.sticky==T.sticky)return n;var Z=Un(N);if(!Z)return n;var le=Qt(Z,D.ch,D.sticky),_e=Z[le];if(_e.from!=D.ch&&_e.to!=D.ch)return n;var Re=le+(_e.from==D.ch==(_e.level!=1)?0:1);if(Re==0||Re==Z.length)return n;var We;if(T.line!=D.line)We=(T.line-D.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ot=Qt(Z,T.ch,T.sticky),Wt=Ot-le||(T.ch-D.ch)*(_e.level==1?-1:1);Ot==Re-1||Ot==Re?We=Wt<0:We=Wt>0}var gn=Z[Re+(We?-1:0)],ln=We==(gn.level==1),er=ln?gn.from:gn.to,br=ln?"after":"before";return D.ch==er&&D.sticky==br?n:new Za(new St(D.line,er,br),T)}function Al(e,n,D,T){var N,Z;if(n.touches)N=n.touches[0].clientX,Z=n.touches[0].clientY;else try{N=n.clientX,Z=n.clientY}catch(gn){return!1}if(N>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;T&&Oe(n);var le=e.display,_e=le.lineDiv.getBoundingClientRect();if(Z>_e.bottom||!Je(e,D))return ye(n);Z-=_e.top-le.viewOffset;for(var Re=0;Re=N){var Ot=Mt(e.doc,Z),Wt=e.display.gutterSpecs[Re];return Tt(e,D,e,Ot,Wt.className,n),ye(n)}}}function Xs(e,n){return Al(e,n,"gutterClick",!0)}function wl(e,n){if(ma(e.display,n)||Ol(e,n))return;if(wt(e,n,"contextmenu"))return;C||e.display.input.onContextMenu(n)}function Ol(e,n){return Je(e,"gutterContextMenu")?Al(e,n,"gutterContextMenu",!1):!1}function Rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),aa(e)}var $o={toString:function(){return"CodeMirror.Init"}},As={},ds={};function $l(e){var n=e.optionHandlers;function D(T,N,Z,le){e.defaults[T]=N,Z&&(n[T]=le?function(_e,Re,We){We!=$o&&Z(_e,Re,We)}:Z)}e.defineOption=D,e.Init=$o,D("value","",function(T,N){return T.setValue(N)},!0),D("mode",null,function(T,N){T.doc.modeOption=N,xi(T)},!0),D("indentUnit",2,xi,!0),D("indentWithTabs",!1),D("smartIndent",!0),D("tabSize",4,function(T){Qi(T),aa(T),$r(T)},!0),D("lineSeparator",null,function(T,N){if(T.doc.lineSep=N,!N)return;var Z=[],le=T.doc.first;T.doc.iter(function(Re){for(var We=0;;){var Ot=Re.text.indexOf(N,We);if(Ot==-1)break;We=Ot+N.length,Z.push(St(le,Ot))}le++});for(var _e=Z.length-1;_e>=0;_e--)Xo(T.doc,N,Z[_e],St(Z[_e].line,Z[_e].ch+N.length))}),D("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(T,N,Z){T.state.specialChars=new RegExp(N.source+(N.test(" ")?"":"| "),"g"),Z!=$o&&T.refresh()}),D("specialCharPlaceholder",Aa,function(T){return T.refresh()},!0),D("electricChars",!0),D("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),D("spellcheck",!1,function(T,N){return T.getInputField().spellcheck=N},!0),D("autocorrect",!1,function(T,N){return T.getInputField().autocorrect=N},!0),D("autocapitalize",!1,function(T,N){return T.getInputField().autocapitalize=N},!0),D("rtlMoveVisually",!b),D("wholeLineUpdateBefore",!0),D("theme","default",function(T){Rl(T),Ri(T)},!0),D("keyMap","default",function(T,N,Z){var le=os(N),_e=Z!=$o&&os(Z);_e&&_e.detach&&_e.detach(T,le),le.attach&&le.attach(T,_e||null)}),D("extraKeys",null),D("configureMouse",null),D("lineWrapping",!1,tu,!0),D("gutters",[],function(T,N){T.display.gutterSpecs=ci(N,T.options.lineNumbers),Ri(T)},!0),D("fixedGutter",!0,function(T,N){T.display.gutters.style.left=N?Ar(T.display)+"px":"0",T.refresh()},!0),D("coverGutterNextToScrollbar",!1,function(T){return Vi(T)},!0),D("scrollbarStyle","native",function(T){vo(T),Vi(T),T.display.scrollbars.setScrollTop(T.doc.scrollTop),T.display.scrollbars.setScrollLeft(T.doc.scrollLeft)},!0),D("lineNumbers",!1,function(T,N){T.display.gutterSpecs=ci(T.options.gutters,N),Ri(T)},!0),D("firstLineNumber",1,Ri,!0),D("lineNumberFormatter",function(T){return T},Ri,!0),D("showCursorWhenSelecting",!1,Ga,!0),D("resetSelectionOnContextMenu",!0),D("lineWiseCopyCut",!0),D("pasteLinesPerSelection",!0),D("selectionsMayTouch",!1),D("readOnly",!1,function(T,N){N=="nocursor"&&(qi(T),T.display.input.blur()),T.display.input.readOnlyChanged(N)}),D("screenReaderLabel",null,function(T,N){N=N===""?null:N,T.display.input.screenReaderLabelChanged(N)}),D("disableInput",!1,function(T,N){N||T.display.input.reset()},!0),D("dragDrop",!0,eu),D("allowDropFileTypes",null),D("cursorBlinkRate",530),D("cursorScrollMargin",0),D("cursorHeight",1,Ga,!0),D("singleCursorHeightPerLine",!0,Ga,!0),D("workTime",100),D("workDelay",100),D("flattenSpans",!0,Qi,!0),D("addModeClass",!1,Qi,!0),D("pollInterval",100),D("undoDepth",200,function(T,N){return T.doc.history.undoDepth=N}),D("historyEventDelay",1250),D("viewportMargin",10,function(T){return T.refresh()},!0),D("maxHighlightLength",1e4,Qi,!0),D("moveInputWithCursor",!0,function(T,N){N||T.display.input.resetPosition()}),D("tabindex",null,function(T,N){return T.display.input.getField().tabIndex=N||""}),D("autofocus",null),D("direction","ltr",function(T,N){return T.doc.setDirection(N)},!0),D("phrases",null)}function eu(e,n,D){var T=D&&D!=$o;if(!n!=!T){var N=e.display.dragFunctions,Z=n?lt:sn;Z(e.display.scroller,"dragstart",N.start),Z(e.display.scroller,"dragenter",N.enter),Z(e.display.scroller,"dragover",N.over),Z(e.display.scroller,"dragleave",N.leave),Z(e.display.scroller,"drop",N.drop)}}function tu(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(v(e.display.wrapper,"CodeMirror-wrap"),Dr(e)),Ia(e),$r(e),aa(e),setTimeout(function(){return Vi(e)},100)}function mi(e,n){var D=this;if(!(this instanceof mi))return new mi(e,n);this.options=n=n?G(n):{},G(As,n,!1);var T=n.value;typeof T=="string"?T=new to(T,n.mode,null,n.lineSeparator,n.direction):n.mode&&(T.modeOption=n.mode),this.doc=T;var N=new mi.inputStyles[n.inputStyle](this),Z=this.display=new ki(e,T,N,n);Z.wrapper.CodeMirror=this,Rl(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new X,keySeq:null,specialChars:null},n.autofocus&&!r&&Z.input.focus(),s&&d<11&&setTimeout(function(){return D.display.input.reset(!0)},20),Tl(this),iu(),Xi(this),this.curOp.forceUpdate=!0,Rs(this,T),n.autofocus&&!r||this.hasFocus()?setTimeout(function(){D.hasFocus()&&!D.state.focused&&Ui(D)},20):qi(this);for(var le in ds)ds.hasOwnProperty(le)&&ds[le](this,n[le],$o);Ha(this),n.finishInit&&n.finishInit(this);for(var _e=0;_e20*20}lt(n.scroller,"touchstart",function(Re){if(!wt(e,Re)&&!Z(Re)&&!Xs(e,Re)){n.input.ensurePolled(),clearTimeout(D);var We=+new Date;n.activeTouch={start:We,moved:!1,prev:We-T.end<=300?T:null},Re.touches.length==1&&(n.activeTouch.left=Re.touches[0].pageX,n.activeTouch.top=Re.touches[0].pageY)}}),lt(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),lt(n.scroller,"touchend",function(Re){var We=n.activeTouch;if(We&&!ma(n,Re)&&We.left!=null&&!We.moved&&new Date-We.start<300){var Ot=e.coordsChar(n.activeTouch,"page"),Wt;!We.prev||le(We,We.prev)?Wt=new Za(Ot,Ot):!We.prev.prev||le(We,We.prev.prev)?Wt=e.findWordAt(Ot):Wt=new Za(St(Ot.line,0),B(e.doc,St(Ot.line+1,0))),e.setSelection(Wt.anchor,Wt.head),e.focus(),Oe(Re)}N()}),lt(n.scroller,"touchcancel",N),lt(n.scroller,"scroll",function(){n.scroller.clientHeight&&(ro(e,n.scroller.scrollTop),pi(e,n.scroller.scrollLeft,!0),Tt(e,"scroll",e))}),lt(n.scroller,"mousewheel",function(Re){return Lo(e,Re)}),lt(n.scroller,"DOMMouseScroll",function(Re){return Lo(e,Re)}),lt(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(Re){wt(e,Re)||Se(Re)},over:function(Re){wt(e,Re)||(Bl(e,Re),Se(Re))},start:function(Re){return pl(e,Re)},drop:ti(e,jl),leave:function(Re){wt(e,Re)||ks(e)}};var _e=n.input.getField();lt(_e,"keyup",function(Re){return xl.call(e,Re)}),lt(_e,"keydown",ti(e,El)),lt(_e,"keypress",ti(e,Cl)),lt(_e,"focus",function(Re){return Ui(e,Re)}),lt(_e,"blur",function(Re){return qi(e,Re)})}var z=[];mi.defineInitHook=function(e){return z.push(e)};function K(e,n,D,T){var N=e.doc,Z;D==null&&(D="add"),D=="smart"&&(N.mode.indent?Z=Tn(e,n).state:D="prev");var le=e.options.tabSize,_e=$(N,n),Re=J(_e.text,null,le);_e.stateAfter&&(_e.stateAfter=null);var We=_e.text.match(/^\s*/)[0],Ot;if(!T&&!/\S/.test(_e.text))Ot=0,D="not";else if(D=="smart"&&(Ot=N.mode.indent(Z,_e.text.slice(We.length),_e.text),Ot==be||Ot>150)){if(!T)return;D="prev"}D=="prev"?n>N.first?Ot=J($(N,n-1).text,null,le):Ot=0:D=="add"?Ot=Re+e.options.indentUnit:D=="subtract"?Ot=Re-e.options.indentUnit:typeof D=="number"&&(Ot=Re+D),Ot=Math.max(0,Ot);var Wt="",gn=0;if(e.options.indentWithTabs)for(var ln=Math.floor(Ot/le);ln;--ln)gn+=le,Wt+=" ";if(gnle,Re=pe(n),We=null;if(_e&&T.ranges.length>1)if(q&&q.text.join(` `)==n){if(T.ranges.length%q.text.length==0){We=[];for(var Ot=0;Ot=0;gn--){var ln=T.ranges[gn],er=ln.from(),br=ln.to();ln.empty()&&(D&&D>0?er=St(er.line,er.ch-D):e.state.overwrite&&!_e?br=St(br.line,Math.min($(Z,br.line).text.length,br.ch+ce(Re).length)):_e&&q&&q.lineWise&&q.text.join(` `)==Re.join(` -`)&&(er=br=St(er.line,0)));var Ur={from:er,to:br,text:We?We[gn%We.length]:Re,origin:N||(_e?"paste":e.state.cutIncoming>le?"cut":"+input")};Go(e.doc,Ur),rr(e,"inputRead",e,Ur)}n&&!_e&&Ze(e,n),wa(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Wt),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ie(e,n){var D=e.clipboardData&&e.clipboardData.getData("Text");if(D)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Ci(n,function(){return ke(n,D,0,null,"paste")}),!0}function Ze(e,n){if(!e.options.electricChars||!e.options.smartIndent)return;for(var D=e.doc.sel,T=D.ranges.length-1;T>=0;T--){var N=D.ranges[T];if(N.head.ch>100||T&&D.ranges[T-1].head.line==N.head.line)continue;var Z=e.getModeAt(N.head),le=!1;if(Z.electricChars){for(var _e=0;_e-1){le=K(e,N.head.line,"smart");break}}else Z.electricInput&&(Z.electricInput.test($(e.doc,N.head.line).text.slice(0,N.head.ch))&&(le=K(e,N.head.line,"smart")));le&&rr(e,"electricInput",e,N.head.line)}}function qe(e){for(var n=[],D=[],T=0;TZ&&(K(this,_e.head.line,T,!0),Z=_e.head.line,le==this.doc.sel.primIndex&&wa(this));else{var Re=_e.from(),We=_e.to(),Ot=Math.max(Z,Re.line);Z=Math.min(this.lastLine(),We.line-(We.ch?0:1))+1;for(var Wt=Ot;Wt0&&Uo(this.doc,le,new Za(Re,gn[le].to()),ge)}}}),getTokenAt:function(T,N){return Fn(this,T,N)},getLineTokens:function(T,N){return Fn(this,St(T),N,!0)},getTokenTypeAt:function(T){T=B(this.doc,T);var N=vn(this,$(this.doc,T.line)),Z=0,le=(N.length-1)/2,_e=T.ch,Re;if(_e==0)Re=N[2];else for(;;){var We=Z+le>>1;if((We?N[We*2-1]:0)>=_e)le=We;else if(N[We*2+1]<_e)Z=We+1;else{Re=N[We*2+2];break}}var Ot=Re?Re.indexOf("overlay "):-1;return Ot<0?Re:Ot==0?null:Re.slice(0,Ot-1)},getModeAt:function(T){var N=this.doc.mode;return N.innerMode?e.innerMode(N,this.getTokenAt(T).state).mode:N},getHelper:function(T,N){return this.getHelpers(T,N)[0]},getHelpers:function(T,N){var Z=[];if(!D.hasOwnProperty(N))return Z;var le=D[N],_e=this.getModeAt(T);if(typeof _e[N]=="string")le[_e[N]]&&Z.push(le[_e[N]]);else if(_e[N])for(var Re=0;Re<_e[N].length;Re++){var We=le[_e[N][Re]];We&&Z.push(We)}else _e.helperType&&le[_e.helperType]?Z.push(le[_e.helperType]):le[_e.name]&&Z.push(le[_e.name]);for(var Ot=0;OtRe&&(T=Re,le=!0),_e=$(this.doc,T)}else _e=T;return ba(this,_e,{top:0,left:0},N||"page",Z||le).top+(le?this.doc.height-lr(_e):0)},defaultTextHeight:function(){return pn(this.display)},defaultCharWidth:function(){return Rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(T,N,Z,le,_e){var Re=this.display;T=un(this,B(this.doc,T));var We=T.bottom,Ot=T.left;if(N.style.position="absolute",N.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(N),Re.sizer.appendChild(N),le=="over")We=T.top;else if(le=="above"||le=="near"){var Wt=Math.max(Re.wrapper.clientHeight,this.doc.height),gn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(le=="above"||T.bottom+N.offsetHeight>Wt)&&T.top>N.offsetHeight?We=T.top-N.offsetHeight:T.bottom+N.offsetHeight<=Wt&&(We=T.bottom),Ot+N.offsetWidth>gn&&(Ot=gn-N.offsetWidth)}N.style.top=We+"px",N.style.left=N.style.right="",_e=="right"?(Ot=Re.sizer.clientWidth-N.offsetWidth,N.style.right="0px"):(_e=="left"?Ot=0:_e=="middle"&&(Ot=(Re.sizer.clientWidth-N.offsetWidth)/2),N.style.left=Ot+"px"),Z&&Ti(this,{left:Ot,top:We,right:Ot+N.offsetWidth,bottom:We+N.offsetHeight})},triggerOnKeyDown:yi(El),triggerOnKeyPress:yi(Cl),triggerOnKeyUp:xl,triggerOnMouseDown:yi(Gs),execCommand:function(T){if(qo.hasOwnProperty(T))return qo[T].call(null,this)},triggerElectric:yi(function(T){Ze(this,T)}),findPosH:function(T,N,Z,le){var _e=1;N<0&&(_e=-1,N=-N);for(var Re=B(this.doc,T),We=0;We0&&Ot(Z.charAt(le-1));)--le;for(;_e.5||this.options.lineWrapping)&&Ia(this),Tt(this,"refresh",this)}),swapDoc:yi(function(T){var N=this.doc;return N.cm=null,this.state.selectingText&&this.state.selectingText(),Rs(this,T),aa(this),this.display.input.reset(),Ja(this,T.scrollLeft,T.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,N),N}),phrase:function(T){var N=this.options.phrases;return N&&Object.prototype.hasOwnProperty.call(N,T)?N[T]:T},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Xe(e),e.registerHelper=function(T,N,Z){D.hasOwnProperty(T)||(D[T]=e[T]={_global:[]}),D[T][N]=Z},e.registerGlobalHelper=function(T,N,Z,le){e.registerHelper(T,N,le),D[T]._global.push({pred:Z,val:le})}}function Ut(e,n,D,T,N){var Z=n,le=D,_e=$(e,n.line),Re=N&&e.direction=="rtl"?-D:D;function We(){var ca=n.line+Re;return ca=e.first+e.size?!1:(n=new St(ca,n.ch,n.sticky),_e=$(e,ca))}function Ot(ca){var ta;if(T=="codepoint"){var _a=_e.text.charCodeAt(n.ch+(T>0?0:-1));isNaN(_a)?ta=null:ta=new St(n.line,Math.max(0,Math.min(_e.text.length,n.ch+D*(_a>=55296&&_a<56320?2:1))),-D)}else N?ta=Fs(e.cm,_e,n,D):ta=js(_e,n,D);if(ta==null)if(!ca&&We())n=Bs(N,e.cm,_e,n.line,Re);else return!1;else n=ta;return!0}if(T=="char"||T=="codepoint")Ot();else if(T=="column")Ot(!0);else if(T=="word"||T=="group")for(var Wt=null,gn=T=="group",ln=e.cm&&e.cm.getHelper(n,"wordChars"),er=!0;!(D<0&&!Ot(!er));er=!1){var br=_e.text.charAt(n.ch)||` +`)&&(er=br=St(er.line,0)));var Ur={from:er,to:br,text:We?We[gn%We.length]:Re,origin:N||(_e?"paste":e.state.cutIncoming>le?"cut":"+input")};Go(e.doc,Ur),rr(e,"inputRead",e,Ur)}n&&!_e&&Ze(e,n),wa(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Wt),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ie(e,n){var D=e.clipboardData&&e.clipboardData.getData("Text");if(D)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Oi(n,function(){return ke(n,D,0,null,"paste")}),!0}function Ze(e,n){if(!e.options.electricChars||!e.options.smartIndent)return;for(var D=e.doc.sel,T=D.ranges.length-1;T>=0;T--){var N=D.ranges[T];if(N.head.ch>100||T&&D.ranges[T-1].head.line==N.head.line)continue;var Z=e.getModeAt(N.head),le=!1;if(Z.electricChars){for(var _e=0;_e-1){le=K(e,N.head.line,"smart");break}}else Z.electricInput&&(Z.electricInput.test($(e.doc,N.head.line).text.slice(0,N.head.ch))&&(le=K(e,N.head.line,"smart")));le&&rr(e,"electricInput",e,N.head.line)}}function qe(e){for(var n=[],D=[],T=0;TZ&&(K(this,_e.head.line,T,!0),Z=_e.head.line,le==this.doc.sel.primIndex&&wa(this));else{var Re=_e.from(),We=_e.to(),Ot=Math.max(Z,Re.line);Z=Math.min(this.lastLine(),We.line-(We.ch?0:1))+1;for(var Wt=Ot;Wt0&&Uo(this.doc,le,new Za(Re,gn[le].to()),ge)}}}),getTokenAt:function(T,N){return Fn(this,T,N)},getLineTokens:function(T,N){return Fn(this,St(T),N,!0)},getTokenTypeAt:function(T){T=B(this.doc,T);var N=vn(this,$(this.doc,T.line)),Z=0,le=(N.length-1)/2,_e=T.ch,Re;if(_e==0)Re=N[2];else for(;;){var We=Z+le>>1;if((We?N[We*2-1]:0)>=_e)le=We;else if(N[We*2+1]<_e)Z=We+1;else{Re=N[We*2+2];break}}var Ot=Re?Re.indexOf("overlay "):-1;return Ot<0?Re:Ot==0?null:Re.slice(0,Ot-1)},getModeAt:function(T){var N=this.doc.mode;return N.innerMode?e.innerMode(N,this.getTokenAt(T).state).mode:N},getHelper:function(T,N){return this.getHelpers(T,N)[0]},getHelpers:function(T,N){var Z=[];if(!D.hasOwnProperty(N))return Z;var le=D[N],_e=this.getModeAt(T);if(typeof _e[N]=="string")le[_e[N]]&&Z.push(le[_e[N]]);else if(_e[N])for(var Re=0;Re<_e[N].length;Re++){var We=le[_e[N][Re]];We&&Z.push(We)}else _e.helperType&&le[_e.helperType]?Z.push(le[_e.helperType]):le[_e.name]&&Z.push(le[_e.name]);for(var Ot=0;OtRe&&(T=Re,le=!0),_e=$(this.doc,T)}else _e=T;return ya(this,_e,{top:0,left:0},N||"page",Z||le).top+(le?this.doc.height-lr(_e):0)},defaultTextHeight:function(){return pn(this.display)},defaultCharWidth:function(){return Rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(T,N,Z,le,_e){var Re=this.display;T=un(this,B(this.doc,T));var We=T.bottom,Ot=T.left;if(N.style.position="absolute",N.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(N),Re.sizer.appendChild(N),le=="over")We=T.top;else if(le=="above"||le=="near"){var Wt=Math.max(Re.wrapper.clientHeight,this.doc.height),gn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(le=="above"||T.bottom+N.offsetHeight>Wt)&&T.top>N.offsetHeight?We=T.top-N.offsetHeight:T.bottom+N.offsetHeight<=Wt&&(We=T.bottom),Ot+N.offsetWidth>gn&&(Ot=gn-N.offsetWidth)}N.style.top=We+"px",N.style.left=N.style.right="",_e=="right"?(Ot=Re.sizer.clientWidth-N.offsetWidth,N.style.right="0px"):(_e=="left"?Ot=0:_e=="middle"&&(Ot=(Re.sizer.clientWidth-N.offsetWidth)/2),N.style.left=Ot+"px"),Z&&Pi(this,{left:Ot,top:We,right:Ot+N.offsetWidth,bottom:We+N.offsetHeight})},triggerOnKeyDown:_i(El),triggerOnKeyPress:_i(Cl),triggerOnKeyUp:xl,triggerOnMouseDown:_i(Gs),execCommand:function(T){if(qo.hasOwnProperty(T))return qo[T].call(null,this)},triggerElectric:_i(function(T){Ze(this,T)}),findPosH:function(T,N,Z,le){var _e=1;N<0&&(_e=-1,N=-N);for(var Re=B(this.doc,T),We=0;We0&&Ot(Z.charAt(le-1));)--le;for(;_e.5||this.options.lineWrapping)&&Ia(this),Tt(this,"refresh",this)}),swapDoc:_i(function(T){var N=this.doc;return N.cm=null,this.state.selectingText&&this.state.selectingText(),Rs(this,T),aa(this),this.display.input.reset(),Ja(this,T.scrollLeft,T.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,N),N}),phrase:function(T){var N=this.options.phrases;return N&&Object.prototype.hasOwnProperty.call(N,T)?N[T]:T},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Xe(e),e.registerHelper=function(T,N,Z){D.hasOwnProperty(T)||(D[T]=e[T]={_global:[]}),D[T][N]=Z},e.registerGlobalHelper=function(T,N,Z,le){e.registerHelper(T,N,le),D[T]._global.push({pred:Z,val:le})}}function Ut(e,n,D,T,N){var Z=n,le=D,_e=$(e,n.line),Re=N&&e.direction=="rtl"?-D:D;function We(){var ha=n.line+Re;return ha=e.first+e.size?!1:(n=new St(ha,n.ch,n.sticky),_e=$(e,ha))}function Ot(ha){var ta;if(T=="codepoint"){var _a=_e.text.charCodeAt(n.ch+(T>0?0:-1));isNaN(_a)?ta=null:ta=new St(n.line,Math.max(0,Math.min(_e.text.length,n.ch+D*(_a>=55296&&_a<56320?2:1))),-D)}else N?ta=Fs(e.cm,_e,n,D):ta=js(_e,n,D);if(ta==null)if(!ha&&We())n=Bs(N,e.cm,_e,n.line,Re);else return!1;else n=ta;return!0}if(T=="char"||T=="codepoint")Ot();else if(T=="column")Ot(!0);else if(T=="word"||T=="group")for(var Wt=null,gn=T=="group",ln=e.cm&&e.cm.getHelper(n,"wordChars"),er=!0;!(D<0&&!Ot(!er));er=!1){var br=_e.text.charAt(n.ch)||` `,Ur=Le(br,ln)?"w":gn&&br==` -`?"n":!gn||/\s/.test(br)?null:"p";if(gn&&!er&&!Ur&&(Ur="s"),Wt&&Wt!=Ur){D<0&&(D=1,Ot(),n.sticky="after");break}if(Ur&&(Wt=Ur),D>0&&!Ot(!er))break}var ea=ys(e,n,Z,le,!0);return Pn(Z,ea)&&(ea.hitSide=!0),ea}function It(e,n,D,T){var N=e.doc,Z=n.left,le;if(T=="page"){var _e=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(_e-.5*pn(e.display),3);le=(D>0?n.bottom:n.top)+D*Re}else T=="line"&&(le=D>0?n.bottom+3:n.top-3);for(var We;!(We=Ca(e,Z,le),!We.outside);){if(D<0?le<=0:le>=N.height){We.hitSide=!0;break}le+=D*5}return We}var qt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new X,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qt.prototype.init=function(e){var n=this,D=this,T=D.cm,N=D.div=e.lineDiv;kt(N,T.options.spellcheck,T.options.autocorrect,T.options.autocapitalize);function Z(_e){for(var Re=_e.target;Re;Re=Re.parentNode){if(Re==N)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}lt(N,"paste",function(_e){if(!Z(_e)||wt(T,_e)||Ie(_e,T))return;d<=11&&setTimeout(ai(T,function(){return n.updateFromDOM()}),20)}),lt(N,"compositionstart",function(_e){n.composing={data:_e.data,done:!1}}),lt(N,"compositionupdate",function(_e){n.composing||(n.composing={data:_e.data,done:!1})}),lt(N,"compositionend",function(_e){n.composing&&(_e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),lt(N,"touchstart",function(){return D.forceCompositionEnd()}),lt(N,"input",function(){n.composing||n.readFromDOMSoon()});function le(_e){if(!Z(_e)||wt(T,_e))return;if(T.somethingSelected())me({lineWise:!1,text:T.getSelections()}),_e.type=="cut"&&T.replaceSelection("",null,"cut");else if(T.options.lineWiseCopyCut){var Re=qe(T);me({lineWise:!0,text:Re.text}),_e.type=="cut"&&T.operation(function(){T.setSelections(Re.ranges,0,ge),T.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var We=q.text.join(` +`?"n":!gn||/\s/.test(br)?null:"p";if(gn&&!er&&!Ur&&(Ur="s"),Wt&&Wt!=Ur){D<0&&(D=1,Ot(),n.sticky="after");break}if(Ur&&(Wt=Ur),D>0&&!Ot(!er))break}var ea=ys(e,n,Z,le,!0);return Pn(Z,ea)&&(ea.hitSide=!0),ea}function It(e,n,D,T){var N=e.doc,Z=n.left,le;if(T=="page"){var _e=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(_e-.5*pn(e.display),3);le=(D>0?n.bottom:n.top)+D*Re}else T=="line"&&(le=D>0?n.bottom+3:n.top-3);for(var We;!(We=Ca(e,Z,le),!We.outside);){if(D<0?le<=0:le>=N.height){We.hitSide=!0;break}le+=D*5}return We}var qt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new X,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qt.prototype.init=function(e){var n=this,D=this,T=D.cm,N=D.div=e.lineDiv;kt(N,T.options.spellcheck,T.options.autocorrect,T.options.autocapitalize);function Z(_e){for(var Re=_e.target;Re;Re=Re.parentNode){if(Re==N)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}lt(N,"paste",function(_e){if(!Z(_e)||wt(T,_e)||Ie(_e,T))return;d<=11&&setTimeout(ti(T,function(){return n.updateFromDOM()}),20)}),lt(N,"compositionstart",function(_e){n.composing={data:_e.data,done:!1}}),lt(N,"compositionupdate",function(_e){n.composing||(n.composing={data:_e.data,done:!1})}),lt(N,"compositionend",function(_e){n.composing&&(_e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),lt(N,"touchstart",function(){return D.forceCompositionEnd()}),lt(N,"input",function(){n.composing||n.readFromDOMSoon()});function le(_e){if(!Z(_e)||wt(T,_e))return;if(T.somethingSelected())me({lineWise:!1,text:T.getSelections()}),_e.type=="cut"&&T.replaceSelection("",null,"cut");else if(T.options.lineWiseCopyCut){var Re=qe(T);me({lineWise:!0,text:Re.text}),_e.type=="cut"&&T.operation(function(){T.setSelections(Re.ranges,0,ge),T.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var We=q.text.join(` `);if(_e.clipboardData.setData("Text",We),_e.clipboardData.getData("Text")==We){_e.preventDefault();return}}var Ot=en(),Wt=Ot.firstChild;T.display.lineSpace.insertBefore(Ot,T.display.lineSpace.firstChild),Wt.value=q.text.join(` -`);var gn=document.activeElement;V(Wt),setTimeout(function(){T.display.lineSpace.removeChild(Ot),gn.focus(),gn==N&&D.showPrimarySelection()},50)}lt(N,"copy",le),lt(N,"cut",le)},qt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},qt.prototype.prepareSelection=function(){var e=Ai(this.cm,!1);return e.focus=document.activeElement==this.div,e},qt.prototype.showSelection=function(e,n){if(!e||!this.cm.display.view.length)return;(e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e)},qt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qt.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,D=n.doc.sel.primary(),T=D.from(),N=D.to();if(n.display.viewTo==n.display.viewFrom||T.line>=n.display.viewTo||N.line=n.display.viewFrom&&Nn(n,T)||{node:_e[0].measure.map[2],offset:0},We=N.linee.firstLine()&&(T=St(T.line-1,$(e.doc,T.line-1).length)),N.ch==$(e.doc,N.line).text.length&&N.linen.viewTo-1)return!1;var Z,le,_e;T.line==n.viewFrom||(Z=Br(e,T.line))==0?(le=it(n.view[0].line),_e=n.view[0].node):(le=it(n.view[Z].line),_e=n.view[Z-1].node.nextSibling);var Re=Br(e,N.line),We,Ot;if(Re==n.view.length-1?(We=n.viewTo-1,Ot=n.lineDiv.lastChild):(We=it(n.view[Re+1].line)-1,Ot=n.view[Re+1].node.previousSibling),!_e)return!1;for(var Wt=e.doc.splitLines(da(e,_e,Ot,le,We)),gn=re(e.doc,St(le,0),St(We,$(e.doc,We).text.length));Wt.length>1&&gn.length>1;)if(ce(Wt)==ce(gn))Wt.pop(),gn.pop(),We--;else if(Wt[0]==gn[0])Wt.shift(),gn.shift(),le++;else break;for(var ln=0,er=0,br=Wt[0],Ur=gn[0],ea=Math.min(br.length,Ur.length);lnT.ch&&ca.charCodeAt(ca.length-er-1)==ta.charCodeAt(ta.length-er-1);)ln--,er++;Wt[Wt.length-1]=ca.slice(0,ca.length-er).replace(/^\u200b+/,""),Wt[0]=Wt[0].slice(ln).replace(/\u200b+$/,"");var ja=St(le,ln),Pa=St(We,gn.length?ce(gn).length-er:0);if(Wt.length>1||Wt[0]||an(ja,Pa))return Xo(e.doc,Wt,ja,Pa,"+input"),!0},qt.prototype.ensurePolled=function(){this.forceCompositionEnd()},qt.prototype.reset=function(){this.forceCompositionEnd()},qt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},qt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},qt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ci(this.cm,function(){return $r(e.cm)})},qt.prototype.setUneditable=function(e){e.contentEditable="false"},qt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ai(this.cm,ke)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},qt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},qt.prototype.onContextMenu=function(){},qt.prototype.resetPosition=function(){},qt.prototype.needsContentAttribute=!0;function Nn(e,n){var D=Bt(e,n.line);if(!D||D.hidden)return null;var T=$(e.doc,n.line),N=De(D,T,n.line),Z=Un(T,e.doc.direction),le="left";if(Z){var _e=Qt(Z,n.ch);le=_e%2?"right":"left"}var Re=on(N.map,n.ch,le);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function Gr(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function qr(e,n){return n&&(e.bad=!0),e}function da(e,n,D,T,N){var Z="",le=!1,_e=e.doc.lineSeparator(),Re=!1;function We(ln){return function(er){return er.id==ln}}function Ot(){le&&(Z+=_e,Re&&(Z+=_e),le=Re=!1)}function Wt(ln){ln&&(Ot(),Z+=ln)}function gn(ln){if(ln.nodeType==1){var er=ln.getAttribute("cm-text");if(er){Wt(er);return}var br=ln.getAttribute("cm-marker"),Ur;if(br){var ea=e.findMarks(St(T,0),St(N+1,0),We(+br));ea.length&&(Ur=ea[0].find(0))&&Wt(re(e.doc,Ur.from,Ur.to).join(_e));return}if(ln.getAttribute("contenteditable")=="false")return;var ca=/^(pre|div|p|li|table|br)$/i.test(ln.nodeName);if(!/^br$/i.test(ln.nodeName)&&ln.textContent.length==0)return;ca&&Ot();for(var ta=0;ta=9&&n.hasSelection&&(n.hasSelection=null),D.poll()}),lt(N,"paste",function(le){if(wt(T,le)||Ie(le,T))return;T.state.pasteIncoming=+new Date,D.fastPoll()});function Z(le){if(wt(T,le))return;if(T.somethingSelected())me({lineWise:!1,text:T.getSelections()});else if(T.options.lineWiseCopyCut){var _e=qe(T);me({lineWise:!0,text:_e.text}),le.type=="cut"?T.setSelections(_e.ranges,null,ge):(D.prevInput="",N.value=_e.text.join(` -`),V(N))}else return;le.type=="cut"&&(T.state.cutIncoming=+new Date)}lt(N,"cut",Z),lt(N,"copy",Z),lt(e.scroller,"paste",function(le){if(fa(e,le)||wt(T,le))return;if(!N.dispatchEvent){T.state.pasteIncoming=+new Date,D.focus();return}var _e=new Event("paste");_e.clipboardData=le.clipboardData,N.dispatchEvent(_e)}),lt(e.lineSpace,"selectstart",function(le){fa(e,le)||Oe(le)}),lt(N,"compositionstart",function(){var le=T.getCursor("from");D.composing&&D.composing.range.clear(),D.composing={start:le,range:T.markText(le,T.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(N,"compositionend",function(){D.composing&&(D.poll(),D.composing.range.clear(),D.composing=null)})},pa.prototype.createField=function(e){this.wrapper=en(),this.textarea=this.wrapper.firstChild},pa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},pa.prototype.prepareSelection=function(){var e=this.cm,n=e.display,D=e.doc,T=Ai(e);if(e.options.moveInputWithCursor){var N=un(e,D.sel.primary().head,"div"),Z=n.wrapper.getBoundingClientRect(),le=n.lineDiv.getBoundingClientRect();T.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,N.top+le.top-Z.top)),T.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,N.left+le.left-Z.left))}return T},pa.prototype.showSelection=function(e){var n=this.cm,D=n.display;l(D.cursorDiv,e.cursors),l(D.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},pa.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var n=this.cm;if(n.somethingSelected()){this.prevInput="";var D=n.getSelection();this.textarea.value=D,n.state.focused&&V(this.textarea),s&&d>=9&&(this.hasSelection=D)}else e||(this.prevInput=this.textarea.value="",s&&d>=9&&(this.hasSelection=null))},pa.prototype.getField=function(){return this.textarea},pa.prototype.supportsTouch=function(){return!1},pa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||k()!=this.textarea))try{this.textarea.focus()}catch(e){}},pa.prototype.blur=function(){this.textarea.blur()},pa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},pa.prototype.receivedFocus=function(){this.slowPoll()},pa.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},pa.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function D(){var T=n.poll();!T&&!e?(e=!0,n.polling.set(60,D)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,D)},pa.prototype.poll=function(){var e=this,n=this.cm,D=this.textarea,T=this.prevInput;if(this.contextMenuPending||!n.state.focused||Gt(D)&&!T&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var N=D.value;if(N==T&&!n.somethingSelected())return!1;if(s&&d>=9&&this.hasSelection===N||u&&/[\uf700-\uf7ff]/.test(N))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var Z=N.charCodeAt(0);if(Z==8203&&!T&&(T="\u200B"),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,_e=Math.min(T.length,N.length);le<_e&&T.charCodeAt(le)==N.charCodeAt(le);)++le;return Ci(n,function(){ke(n,N.slice(le),T.length-le,null,e.composing?"*compose":null),N.length>1e3||N.indexOf(` -`)>-1?D.value=e.prevInput="":e.prevInput=N,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},pa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},pa.prototype.onKeyPress=function(){s&&d>=9&&(this.hasSelection=null),this.fastPoll()},pa.prototype.onContextMenu=function(e){var n=this,D=n.cm,T=D.display,N=n.textarea;n.contextMenuPending&&n.contextMenuPending();var Z=La(D,e),le=T.scroller.scrollTop;if(!Z||f)return;var _e=D.options.resetSelectionOnContextMenu;_e&&D.doc.sel.contains(Z)==-1&&ai(D,Fi)(D.doc,na(Z),ge);var Re=N.style.cssText,We=n.wrapper.style.cssText,Ot=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",N.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var gn=document.activeElement;V(Wt),setTimeout(function(){T.display.lineSpace.removeChild(Ot),gn.focus(),gn==N&&D.showPrimarySelection()},50)}lt(N,"copy",le),lt(N,"cut",le)},qt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},qt.prototype.prepareSelection=function(){var e=Ai(this.cm,!1);return e.focus=document.activeElement==this.div,e},qt.prototype.showSelection=function(e,n){if(!e||!this.cm.display.view.length)return;(e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e)},qt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qt.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,D=n.doc.sel.primary(),T=D.from(),N=D.to();if(n.display.viewTo==n.display.viewFrom||T.line>=n.display.viewTo||N.line=n.display.viewFrom&&Nn(n,T)||{node:_e[0].measure.map[2],offset:0},We=N.linee.firstLine()&&(T=St(T.line-1,$(e.doc,T.line-1).length)),N.ch==$(e.doc,N.line).text.length&&N.linen.viewTo-1)return!1;var Z,le,_e;T.line==n.viewFrom||(Z=Br(e,T.line))==0?(le=it(n.view[0].line),_e=n.view[0].node):(le=it(n.view[Z].line),_e=n.view[Z-1].node.nextSibling);var Re=Br(e,N.line),We,Ot;if(Re==n.view.length-1?(We=n.viewTo-1,Ot=n.lineDiv.lastChild):(We=it(n.view[Re+1].line)-1,Ot=n.view[Re+1].node.previousSibling),!_e)return!1;for(var Wt=e.doc.splitLines(fa(e,_e,Ot,le,We)),gn=re(e.doc,St(le,0),St(We,$(e.doc,We).text.length));Wt.length>1&&gn.length>1;)if(ce(Wt)==ce(gn))Wt.pop(),gn.pop(),We--;else if(Wt[0]==gn[0])Wt.shift(),gn.shift(),le++;else break;for(var ln=0,er=0,br=Wt[0],Ur=gn[0],ea=Math.min(br.length,Ur.length);lnT.ch&&ha.charCodeAt(ha.length-er-1)==ta.charCodeAt(ta.length-er-1);)ln--,er++;Wt[Wt.length-1]=ha.slice(0,ha.length-er).replace(/^\u200b+/,""),Wt[0]=Wt[0].slice(ln).replace(/\u200b+$/,"");var Ba=St(le,ln),Pa=St(We,gn.length?ce(gn).length-er:0);if(Wt.length>1||Wt[0]||an(Ba,Pa))return Xo(e.doc,Wt,Ba,Pa,"+input"),!0},qt.prototype.ensurePolled=function(){this.forceCompositionEnd()},qt.prototype.reset=function(){this.forceCompositionEnd()},qt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},qt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},qt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Oi(this.cm,function(){return $r(e.cm)})},qt.prototype.setUneditable=function(e){e.contentEditable="false"},qt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ti(this.cm,ke)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},qt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},qt.prototype.onContextMenu=function(){},qt.prototype.resetPosition=function(){},qt.prototype.needsContentAttribute=!0;function Nn(e,n){var D=Bt(e,n.line);if(!D||D.hidden)return null;var T=$(e.doc,n.line),N=De(D,T,n.line),Z=Un(T,e.doc.direction),le="left";if(Z){var _e=Qt(Z,n.ch);le=_e%2?"right":"left"}var Re=on(N.map,n.ch,le);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function Gr(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function qr(e,n){return n&&(e.bad=!0),e}function fa(e,n,D,T,N){var Z="",le=!1,_e=e.doc.lineSeparator(),Re=!1;function We(ln){return function(er){return er.id==ln}}function Ot(){le&&(Z+=_e,Re&&(Z+=_e),le=Re=!1)}function Wt(ln){ln&&(Ot(),Z+=ln)}function gn(ln){if(ln.nodeType==1){var er=ln.getAttribute("cm-text");if(er){Wt(er);return}var br=ln.getAttribute("cm-marker"),Ur;if(br){var ea=e.findMarks(St(T,0),St(N+1,0),We(+br));ea.length&&(Ur=ea[0].find(0))&&Wt(re(e.doc,Ur.from,Ur.to).join(_e));return}if(ln.getAttribute("contenteditable")=="false")return;var ha=/^(pre|div|p|li|table|br)$/i.test(ln.nodeName);if(!/^br$/i.test(ln.nodeName)&&ln.textContent.length==0)return;ha&&Ot();for(var ta=0;ta=9&&n.hasSelection&&(n.hasSelection=null),D.poll()}),lt(N,"paste",function(le){if(wt(T,le)||Ie(le,T))return;T.state.pasteIncoming=+new Date,D.fastPoll()});function Z(le){if(wt(T,le))return;if(T.somethingSelected())me({lineWise:!1,text:T.getSelections()});else if(T.options.lineWiseCopyCut){var _e=qe(T);me({lineWise:!0,text:_e.text}),le.type=="cut"?T.setSelections(_e.ranges,null,ge):(D.prevInput="",N.value=_e.text.join(` +`),V(N))}else return;le.type=="cut"&&(T.state.cutIncoming=+new Date)}lt(N,"cut",Z),lt(N,"copy",Z),lt(e.scroller,"paste",function(le){if(ma(e,le)||wt(T,le))return;if(!N.dispatchEvent){T.state.pasteIncoming=+new Date,D.focus();return}var _e=new Event("paste");_e.clipboardData=le.clipboardData,N.dispatchEvent(_e)}),lt(e.lineSpace,"selectstart",function(le){ma(e,le)||Oe(le)}),lt(N,"compositionstart",function(){var le=T.getCursor("from");D.composing&&D.composing.range.clear(),D.composing={start:le,range:T.markText(le,T.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(N,"compositionend",function(){D.composing&&(D.poll(),D.composing.range.clear(),D.composing=null)})},va.prototype.createField=function(e){this.wrapper=en(),this.textarea=this.wrapper.firstChild},va.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},va.prototype.prepareSelection=function(){var e=this.cm,n=e.display,D=e.doc,T=Ai(e);if(e.options.moveInputWithCursor){var N=un(e,D.sel.primary().head,"div"),Z=n.wrapper.getBoundingClientRect(),le=n.lineDiv.getBoundingClientRect();T.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,N.top+le.top-Z.top)),T.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,N.left+le.left-Z.left))}return T},va.prototype.showSelection=function(e){var n=this.cm,D=n.display;l(D.cursorDiv,e.cursors),l(D.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},va.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var n=this.cm;if(n.somethingSelected()){this.prevInput="";var D=n.getSelection();this.textarea.value=D,n.state.focused&&V(this.textarea),s&&d>=9&&(this.hasSelection=D)}else e||(this.prevInput=this.textarea.value="",s&&d>=9&&(this.hasSelection=null))},va.prototype.getField=function(){return this.textarea},va.prototype.supportsTouch=function(){return!1},va.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||k()!=this.textarea))try{this.textarea.focus()}catch(e){}},va.prototype.blur=function(){this.textarea.blur()},va.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},va.prototype.receivedFocus=function(){this.slowPoll()},va.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},va.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function D(){var T=n.poll();!T&&!e?(e=!0,n.polling.set(60,D)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,D)},va.prototype.poll=function(){var e=this,n=this.cm,D=this.textarea,T=this.prevInput;if(this.contextMenuPending||!n.state.focused||Gt(D)&&!T&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var N=D.value;if(N==T&&!n.somethingSelected())return!1;if(s&&d>=9&&this.hasSelection===N||u&&/[\uf700-\uf7ff]/.test(N))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var Z=N.charCodeAt(0);if(Z==8203&&!T&&(T="\u200B"),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,_e=Math.min(T.length,N.length);le<_e&&T.charCodeAt(le)==N.charCodeAt(le);)++le;return Oi(n,function(){ke(n,N.slice(le),T.length-le,null,e.composing?"*compose":null),N.length>1e3||N.indexOf(` +`)>-1?D.value=e.prevInput="":e.prevInput=N,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},va.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},va.prototype.onKeyPress=function(){s&&d>=9&&(this.hasSelection=null),this.fastPoll()},va.prototype.onContextMenu=function(e){var n=this,D=n.cm,T=D.display,N=n.textarea;n.contextMenuPending&&n.contextMenuPending();var Z=La(D,e),le=T.scroller.scrollTop;if(!Z||f)return;var _e=D.options.resetSelectionOnContextMenu;_e&&D.doc.sel.contains(Z)==-1&&ti(D,Wi)(D.doc,na(Z),ge);var Re=N.style.cssText,We=n.wrapper.style.cssText,Ot=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",N.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Ot.top-5)+"px; left: "+(e.clientX-Ot.left-5)+`px; z-index: 1000; background: `+(s?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Wt;w&&(Wt=window.scrollY),T.input.focus(),w&&window.scrollTo(null,Wt),T.input.reset(),D.somethingSelected()||(N.value=n.prevInput=" "),n.contextMenuPending=ln,T.selForContextMenu=D.doc.sel,clearTimeout(T.detectingSelectAll);function gn(){if(N.selectionStart!=null){var br=D.somethingSelected(),Ur="\u200B"+(br?N.value:"");N.value="\u21DA",N.value=Ur,n.prevInput=br?"":"\u200B",N.selectionStart=1,N.selectionEnd=Ur.length,T.selForContextMenu=D.doc.sel}}function ln(){if(n.contextMenuPending!=ln)return;if(n.contextMenuPending=!1,n.wrapper.style.cssText=We,N.style.cssText=Re,s&&d<9&&T.scrollbars.setScrollTop(T.scroller.scrollTop=le),N.selectionStart!=null){(!s||s&&d<9)&&gn();var br=0,Ur=function(){T.selForContextMenu==D.doc.sel&&N.selectionStart==0&&N.selectionEnd>0&&n.prevInput=="\u200B"?ai(D,il)(D):br++<10?T.detectingSelectAll=setTimeout(Ur,500):(T.selForContextMenu=null,T.input.reset())};T.detectingSelectAll=setTimeout(Ur,200)}}if(s&&d>=9&&gn(),C){Se(e);var er=function(){sn(window,"mouseup",er),setTimeout(ln,20)};lt(window,"mouseup",er)}else setTimeout(ln,50)},pa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},pa.prototype.setUneditable=function(){},pa.prototype.needsContentAttribute=!1;function ei(e,n){if(n=n?G(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var D=k();n.autofocus=D==e||e.getAttribute("autofocus")!=null&&D==document.body}function T(){e.value=_e.getValue()}var N;if(e.form&&(lt(e.form,"submit",T),!n.leaveSubmitMethodAlone)){var Z=e.form;N=Z.submit;try{var le=Z.submit=function(){T(),Z.submit=N,Z.submit(),Z.submit=le}}catch(Re){}}n.finishInit=function(Re){Re.save=T,Re.getTextArea=function(){return e},Re.toTextArea=function(){Re.toTextArea=isNaN,T(),e.parentNode.removeChild(Re.getWrapperElement()),e.style.display="",e.form&&(sn(e.form,"submit",T),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=N))}},e.style.display="none";var _e=mi(function(Re){return e.parentNode.insertBefore(Re,e.nextSibling)},n);return _e}function Ya(e){e.off=sn,e.on=lt,e.wheelEventPixels=_o,e.Doc=to,e.splitLines=pe,e.countColumn=J,e.findColumn=nt,e.isWordChar=ze,e.Pass=be,e.signal=Tt,e.Line=sr,e.changeEnd=Oa,e.scrollbarModel=vo,e.Pos=St,e.cmpPos=an,e.modes=Xt,e.mimeModes=Pt,e.resolveMode=bt,e.getMode=ft,e.modeExtensions=Nt,e.extendMode=jt,e.copyState=bn,e.startState=ve,e.innerMode=Te,e.commands=qo,e.keyMap=Io,e.keyName=xs,e.isModifierKey=is,e.lookupKey=No,e.normalizeKeyMap=gl,e.StringStream=Q,e.SharedTextMarker=Jo,e.TextMarker=xo,e.LineWidget=ns,e.e_preventDefault=Oe,e.e_stopPropagation=Ae,e.e_stop=Se,e.addClass=I,e.contains=R,e.rmClass=v,e.keyNames=Bo}$l(mi),rn(mi);var fi="iter insert remove copy getEditor constructor".split(" ");for(var Di in to.prototype)to.prototype.hasOwnProperty(Di)&&te(fi,Di)<0&&(mi.prototype[Di]=function(e){return function(){return e.apply(this.doc,arguments)}}(to.prototype[Di]));return Xe(to),mi.inputStyles={textarea:pa,contenteditable:qt},mi.defineMode=function(e){!mi.defaults.mode&&e!="null"&&(mi.defaults.mode=e),$t.apply(this,arguments)},mi.defineMIME=Zt,mi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),mi.defineMIME("text/plain","null"),mi.defineExtension=function(e,n){mi.prototype[e]=n},mi.defineDocExtension=function(e,n){to.prototype[e]=n},mi.fromTextArea=ei,Ya(mi),mi.version="5.58.2",mi})},W6BS:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(Ye,ie,_){"use strict";var Y=_("rePB"),j=_("Ff2n"),L=_("VTBJ"),U=_("1OyB"),S=_("vuIU"),g=_("JX7q"),s=_("Ji7U"),d=_("LK+K"),w=_("q1tI"),p=_("TSYQ"),a=_.n(p),f=_("sboe"),x=_("OZM5"),b=function(C){var A=C.prefixCls,v=C.level,o=C.isStart,l=C.isEnd;if(!v)return null;for(var c="".concat(A,"-indent-unit"),M=[],P=0;P0&&n.prevInput=="\u200B"?ti(D,il)(D):br++<10?T.detectingSelectAll=setTimeout(Ur,500):(T.selForContextMenu=null,T.input.reset())};T.detectingSelectAll=setTimeout(Ur,200)}}if(s&&d>=9&&gn(),C){Se(e);var er=function(){sn(window,"mouseup",er),setTimeout(ln,20)};lt(window,"mouseup",er)}else setTimeout(ln,50)},va.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},va.prototype.setUneditable=function(){},va.prototype.needsContentAttribute=!1;function ei(e,n){if(n=n?G(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var D=k();n.autofocus=D==e||e.getAttribute("autofocus")!=null&&D==document.body}function T(){e.value=_e.getValue()}var N;if(e.form&&(lt(e.form,"submit",T),!n.leaveSubmitMethodAlone)){var Z=e.form;N=Z.submit;try{var le=Z.submit=function(){T(),Z.submit=N,Z.submit(),Z.submit=le}}catch(Re){}}n.finishInit=function(Re){Re.save=T,Re.getTextArea=function(){return e},Re.toTextArea=function(){Re.toTextArea=isNaN,T(),e.parentNode.removeChild(Re.getWrapperElement()),e.style.display="",e.form&&(sn(e.form,"submit",T),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=N))}},e.style.display="none";var _e=mi(function(Re){return e.parentNode.insertBefore(Re,e.nextSibling)},n);return _e}function Qa(e){e.off=sn,e.on=lt,e.wheelEventPixels=_o,e.Doc=to,e.splitLines=pe,e.countColumn=J,e.findColumn=nt,e.isWordChar=ze,e.Pass=be,e.signal=Tt,e.Line=sr,e.changeEnd=Oa,e.scrollbarModel=po,e.Pos=St,e.cmpPos=an,e.modes=Xt,e.mimeModes=Pt,e.resolveMode=bt,e.getMode=ft,e.modeExtensions=Nt,e.extendMode=jt,e.copyState=bn,e.startState=ve,e.innerMode=Te,e.commands=qo,e.keyMap=Io,e.keyName=xs,e.isModifierKey=is,e.lookupKey=No,e.normalizeKeyMap=gl,e.StringStream=Q,e.SharedTextMarker=Jo,e.TextMarker=xo,e.LineWidget=ns,e.e_preventDefault=Oe,e.e_stopPropagation=Ae,e.e_stop=Se,e.addClass=I,e.contains=R,e.rmClass=v,e.keyNames=Bo}$l(mi),rn(mi);var fi="iter insert remove copy getEditor constructor".split(" ");for(var Li in to.prototype)to.prototype.hasOwnProperty(Li)&&te(fi,Li)<0&&(mi.prototype[Li]=function(e){return function(){return e.apply(this.doc,arguments)}}(to.prototype[Li]));return Xe(to),mi.inputStyles={textarea:va,contenteditable:qt},mi.defineMode=function(e){!mi.defaults.mode&&e!="null"&&(mi.defaults.mode=e),$t.apply(this,arguments)},mi.defineMIME=Zt,mi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),mi.defineMIME("text/plain","null"),mi.defineExtension=function(e,n){mi.prototype[e]=n},mi.defineDocExtension=function(e,n){to.prototype[e]=n},mi.fromTextArea=ei,Qa(mi),mi.version="5.58.2",mi})},W6BS:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(Ye,ie,_){"use strict";var Y=_("rePB"),j=_("Ff2n"),L=_("VTBJ"),U=_("1OyB"),S=_("vuIU"),g=_("JX7q"),s=_("Ji7U"),d=_("LK+K"),w=_("q1tI"),p=_("TSYQ"),a=_.n(p),f=_("sboe"),x=_("OZM5"),y=function(C){var A=C.prefixCls,v=C.level,o=C.isStart,l=C.isEnd;if(!v)return null;for(var c="".concat(A,"-indent-unit"),M=[],P=0;P1&&arguments[1]!==void 0?arguments[1]:!1,He=ge.getAttribute("id")||ge.getAttribute("data-reactid")||ge.getAttribute("name");if(je&&k[He])return k[He];var nt=window.getComputedStyle(ge),Ge=nt.getPropertyValue("box-sizing")||nt.getPropertyValue("-moz-box-sizing")||nt.getPropertyValue("-webkit-box-sizing"),he=parseFloat(nt.getPropertyValue("padding-bottom"))+parseFloat(nt.getPropertyValue("padding-top")),ce=parseFloat(nt.getPropertyValue("border-bottom-width"))+parseFloat(nt.getPropertyValue("border-top-width")),Ee=R.map(function(Ne){return"".concat(Ne,":").concat(nt.getPropertyValue(Ne))}).join(";"),fe={sizingStyle:Ee,paddingSize:he,borderSize:ce,boxSizing:Ge};return je&&He&&(k[He]=fe),fe}function V(ge){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;I||(I=document.createElement("textarea"),I.setAttribute("tab-index","-1"),I.setAttribute("aria-hidden","true"),document.body.appendChild(I)),ge.getAttribute("wrap")?I.setAttribute("wrap",ge.getAttribute("wrap")):I.removeAttribute("wrap");var Ge=F(ge,je),he=Ge.paddingSize,ce=Ge.borderSize,Ee=Ge.boxSizing,fe=Ge.sizingStyle;I.setAttribute("style","".concat(fe,";").concat(P)),I.value=ge.value||ge.placeholder||"";var Ne=Number.MIN_SAFE_INTEGER,Ce=Number.MAX_SAFE_INTEGER,xe=I.scrollHeight,ze;if(Ee==="border-box"?xe+=ce:Ee==="content-box"&&(xe-=he),He!==null||nt!==null){I.value=" ";var Le=I.scrollHeight-he;He!==null&&(Ne=Le*He,Ee==="border-box"&&(Ne=Ne+he+ce),xe=Math.max(Ne,xe)),nt!==null&&(Ce=Le*nt,Ee==="border-box"&&(Ce=Ce+he+ce),ze=xe>Ce?"":"hidden",xe=Math.min(Ce,xe))}return{height:xe,minHeight:Ne,maxHeight:Ce,overflowY:ze,resize:"none"}}var W=_("Gytx"),G=_.n(W),J;(function(ge){ge[ge.NONE=0]="NONE",ge[ge.RESIZING=1]="RESIZING",ge[ge.RESIZED=2]="RESIZED"})(J||(J={}));var X=function(ge){Object(U.a)(He,ge);var je=Object(S.a)(He);function He(nt){var Ge;return Object(j.a)(this,He),Ge=je.call(this,nt),Ge.nextFrameActionId=void 0,Ge.resizeFrameId=void 0,Ge.textArea=void 0,Ge.saveTextArea=function(he){Ge.textArea=he},Ge.handleResize=function(he){var ce=Ge.state.resizeStatus,Ee=Ge.props,fe=Ee.autoSize,Ne=Ee.onResize;if(ce!==J.NONE)return;typeof Ne=="function"&&Ne(he),fe&&Ge.resizeOnNextFrame()},Ge.resizeOnNextFrame=function(){cancelAnimationFrame(Ge.nextFrameActionId),Ge.nextFrameActionId=requestAnimationFrame(Ge.resizeTextarea)},Ge.resizeTextarea=function(){var he=Ge.props.autoSize;if(!he||!Ge.textArea)return;var ce=he.minRows,Ee=he.maxRows,fe=V(Ge.textArea,!1,ce,Ee);Ge.setState({textareaStyles:fe,resizeStatus:J.RESIZING},function(){cancelAnimationFrame(Ge.resizeFrameId),Ge.resizeFrameId=requestAnimationFrame(function(){Ge.setState({resizeStatus:J.RESIZED},function(){Ge.resizeFrameId=requestAnimationFrame(function(){Ge.setState({resizeStatus:J.NONE}),Ge.fixFirefoxAutoScroll()})})})})},Ge.renderTextArea=function(){var he=Ge.props,ce=he.prefixCls,Ee=ce===void 0?"rc-textarea":ce,fe=he.autoSize,Ne=he.onResize,Ce=he.className,xe=he.disabled,ze=Ge.state,Le=ze.textareaStyles,Fe=ze.resizeStatus,Pe=Object(l.a)(Ge.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ve=M()(Ee,Ce,Object(d.a)({},"".concat(Ee,"-disabled"),xe));"value"in Pe&&(Pe.value=Pe.value||"");var at=Object(s.a)(Object(s.a)(Object(s.a)({},Ge.props.style),Le),Fe===J.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return g.createElement(o,{onResize:Ge.handleResize,disabled:!(fe||Ne)},g.createElement("textarea",Object(Y.a)({},Pe,{className:Ve,style:at,ref:Ge.saveTextArea})))},Ge.state={textareaStyles:{},resizeStatus:J.NONE},Ge}return Object(L.a)(He,[{key:"componentDidUpdate",value:function(Ge){(Ge.value!==this.props.value||!G()(Ge.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var Ge=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ge,he)}}catch(ce){}}},{key:"render",value:function(){return this.renderTextArea()}}]),He}(g.Component),te=X,ee=function(ge){Object(U.a)(He,ge);var je=Object(S.a)(He);function He(nt){var Ge;Object(j.a)(this,He),Ge=je.call(this,nt),Ge.resizableTextArea=void 0,Ge.focus=function(){Ge.resizableTextArea.textArea.focus()},Ge.saveTextArea=function(ce){Ge.resizableTextArea=ce},Ge.handleChange=function(ce){var Ee=Ge.props.onChange;Ge.setValue(ce.target.value,function(){Ge.resizableTextArea.resizeTextarea()}),Ee&&Ee(ce)},Ge.handleKeyDown=function(ce){var Ee=Ge.props,fe=Ee.onPressEnter,Ne=Ee.onKeyDown;ce.keyCode===13&&fe&&fe(ce),Ne&&Ne(ce)};var he=typeof nt.value=="undefined"||nt.value===null?nt.defaultValue:nt.value;return Ge.state={value:he},Ge}return Object(L.a)(He,[{key:"setValue",value:function(Ge,he){"value"in this.props||this.setState({value:Ge},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return g.createElement(te,Object(Y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ge){return"value"in Ge?{value:Ge.value}:null}}]),He}(g.Component),be=ie.default=ee},YH21:function(Ye,ie,_){var Y=_("H6uX");ie.Dispatcher=Y;var j=_("ItGF"),L=_("Ze12"),U=L.isCanvasEl,S=L.transformCoordWithViewport,g=typeof window!="undefined"&&!!window.addEventListener,s=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,d=[];function w(r,u,h,y){return h=h||{},y||!j.canvasSupported?p(r,u,h):j.browser.firefox&&u.layerX!=null&&u.layerX!==u.offsetX?(h.zrX=u.layerX,h.zrY=u.layerY):u.offsetX!=null?(h.zrX=u.offsetX,h.zrY=u.offsetY):p(r,u,h),h}function p(r,u,h){if(j.domSupported&&r.getBoundingClientRect){var y=u.clientX,E=u.clientY;if(U(r)){var t=r.getBoundingClientRect();h.zrX=y-t.left,h.zrY=E-t.top;return}else if(S(d,r,y,E)){h.zrX=d[0],h.zrY=d[1];return}}h.zrX=h.zrY=0}function a(r){return r||window.event}function f(r,u,h){if(u=a(u),u.zrX!=null)return u;var y=u.type,E=y&&y.indexOf("touch")>=0;if(!E)w(r,u,u,h),u.zrDelta=u.wheelDelta?u.wheelDelta/120:-(u.detail||0)/3;else{var t=y!=="touchend"?u.targetTouches[0]:u.changedTouches[0];t&&w(r,t,u,h)}var C=u.button;return u.which==null&&C!==void 0&&s.test(u.type)&&(u.which=C&1?1:C&2?3:C&4?2:0),u}function x(r,u,h,y){g?r.addEventListener(u,h,y):r.attachEvent("on"+u,h)}function b(r,u,h,y){g?r.removeEventListener(u,h,y):r.detachEvent("on"+u,h)}var m=g?function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0}:function(r){r.returnValue=!1,r.cancelBubble=!0};function O(r){return r.which===2||r.which===3}function i(r){return r.which>1}ie.clientToLocal=w,ie.getNativeEvent=a,ie.normalizeEvent=f,ie.addEventListener=x,ie.removeEventListener=b,ie.stop=m,ie.isMiddleOrRightButtonOnMouseUpDown=O,ie.notLeftMouse=i},"YJx+":function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___TKIS5",flex_space_between:"flex_space_between___3ITJg",flex_box_vertical_center:"flex_box_vertical_center___pGLbk",flex_box_center_end:"flex_box_center_end___3-z2A",flex_box_column:"flex_box_column___1SlIq",wrap:"wrap___2TxDh",modal:"modal___jkvmI",titleWrap:"titleWrap___386Y5",required:"required___3ddar",title:"title___2scfU",colorGray:"colorGray___10JDh",choiceWrap:"choiceWrap___3UMox",answer:"answer___1kvCr",activeAnswer:"activeAnswer___1tun2",deleteIcon:"deleteIcon___2_EJk",addIcon:"addIcon___b404_",editorWrap:"editorWrap___1qDS7",htmlWrap:"htmlWrap___2ear6",radio:"radio___3EFAB",color333:"color333___lt3ql",color999:"color999___11Mt_",questionType:"questionType___1yIj7",questionChoices:"questionChoices___1n3A7",action:"action___3PqBm",difficult:"difficult___1L4Zj",fold:"fold___3zBy6",head:"head___1dsW5"}},YgsL:function(Ye,ie,_){var Y=_("QBsz"),j=Y.distance;function L(S,g,s,d,w,p,a){var f=(s-S)*.5,x=(d-g)*.5;return(2*(g-s)+f+x)*a+(-3*(g-s)-2*f-x)*p+f*w+g}function U(S,g){for(var s=S.length,d=[],w=0,p=1;ps-2?s-1:x+1],r=S[x>s-3?s-1:x+2]);var u=b*b,h=b*u;d.push([L(m[0],O[0],i[0],r[0],b,u,h),L(m[1],O[1],i[1],r[1],b,u,h)])}return d}Ye.exports=U},ZW9T:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return o});var Y=_("k1fw"),j=_("oBTY"),L=_("9og8"),U=_("miYZ"),S=_("tsqr"),g=_("rAM+"),s=_("tJVT"),d=_("PpiC"),w=_("WmNS"),p=_.n(w),a=_("q1tI"),f=_.n(a),x=_("bdgK");function b(l,c,M,P,R){var k=c.getWordUntilPosition(M),I={startLineNumber:M.lineNumber,endLineNumber:M.lineNumber,startColumn:k.startColumn,endColumn:k.endColumn},F=P.map(function(V){return{label:V,kind:l.languages.CompletionItemKind.Keyword,insertText:V,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:I}});return R.map(function(V){F.push(Object(Y.a)(Object(Y.a)({},V),{},{range:I}))}),F}var m=function(l){var c={label:"ifelse",kind:l.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` -`),insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet},M=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];l.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(I,F){var V=b(l,I,F,M,[c]);return{suggestions:V}}});var P=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];l.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(I,F){var V=[{label:"print",kind:l.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` -`),insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet}],W=b(l,I,F,P,V);return{suggestions:W}}});var R=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];l.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(I,F){var V=[c,{label:"main",kind:l.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` +`,R=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],k={},I;function F(ge){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He=ge.getAttribute("id")||ge.getAttribute("data-reactid")||ge.getAttribute("name");if(je&&k[He])return k[He];var nt=window.getComputedStyle(ge),Ge=nt.getPropertyValue("box-sizing")||nt.getPropertyValue("-moz-box-sizing")||nt.getPropertyValue("-webkit-box-sizing"),he=parseFloat(nt.getPropertyValue("padding-bottom"))+parseFloat(nt.getPropertyValue("padding-top")),ce=parseFloat(nt.getPropertyValue("border-bottom-width"))+parseFloat(nt.getPropertyValue("border-top-width")),Ee=R.map(function(Ne){return"".concat(Ne,":").concat(nt.getPropertyValue(Ne))}).join(";"),fe={sizingStyle:Ee,paddingSize:he,borderSize:ce,boxSizing:Ge};return je&&He&&(k[He]=fe),fe}function V(ge){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;I||(I=document.createElement("textarea"),I.setAttribute("tab-index","-1"),I.setAttribute("aria-hidden","true"),document.body.appendChild(I)),ge.getAttribute("wrap")?I.setAttribute("wrap",ge.getAttribute("wrap")):I.removeAttribute("wrap");var Ge=F(ge,je),he=Ge.paddingSize,ce=Ge.borderSize,Ee=Ge.boxSizing,fe=Ge.sizingStyle;I.setAttribute("style","".concat(fe,";").concat(P)),I.value=ge.value||ge.placeholder||"";var Ne=Number.MIN_SAFE_INTEGER,Ce=Number.MAX_SAFE_INTEGER,xe=I.scrollHeight,ze;if(Ee==="border-box"?xe+=ce:Ee==="content-box"&&(xe-=he),He!==null||nt!==null){I.value=" ";var Le=I.scrollHeight-he;He!==null&&(Ne=Le*He,Ee==="border-box"&&(Ne=Ne+he+ce),xe=Math.max(Ne,xe)),nt!==null&&(Ce=Le*nt,Ee==="border-box"&&(Ce=Ce+he+ce),ze=xe>Ce?"":"hidden",xe=Math.min(Ce,xe))}return{height:xe,minHeight:Ne,maxHeight:Ce,overflowY:ze,resize:"none"}}var W=_("Gytx"),G=_.n(W),J;(function(ge){ge[ge.NONE=0]="NONE",ge[ge.RESIZING=1]="RESIZING",ge[ge.RESIZED=2]="RESIZED"})(J||(J={}));var X=function(ge){Object(U.a)(He,ge);var je=Object(S.a)(He);function He(nt){var Ge;return Object(j.a)(this,He),Ge=je.call(this,nt),Ge.nextFrameActionId=void 0,Ge.resizeFrameId=void 0,Ge.textArea=void 0,Ge.saveTextArea=function(he){Ge.textArea=he},Ge.handleResize=function(he){var ce=Ge.state.resizeStatus,Ee=Ge.props,fe=Ee.autoSize,Ne=Ee.onResize;if(ce!==J.NONE)return;typeof Ne=="function"&&Ne(he),fe&&Ge.resizeOnNextFrame()},Ge.resizeOnNextFrame=function(){cancelAnimationFrame(Ge.nextFrameActionId),Ge.nextFrameActionId=requestAnimationFrame(Ge.resizeTextarea)},Ge.resizeTextarea=function(){var he=Ge.props.autoSize;if(!he||!Ge.textArea)return;var ce=he.minRows,Ee=he.maxRows,fe=V(Ge.textArea,!1,ce,Ee);Ge.setState({textareaStyles:fe,resizeStatus:J.RESIZING},function(){cancelAnimationFrame(Ge.resizeFrameId),Ge.resizeFrameId=requestAnimationFrame(function(){Ge.setState({resizeStatus:J.RESIZED},function(){Ge.resizeFrameId=requestAnimationFrame(function(){Ge.setState({resizeStatus:J.NONE}),Ge.fixFirefoxAutoScroll()})})})})},Ge.renderTextArea=function(){var he=Ge.props,ce=he.prefixCls,Ee=ce===void 0?"rc-textarea":ce,fe=he.autoSize,Ne=he.onResize,Ce=he.className,xe=he.disabled,ze=Ge.state,Le=ze.textareaStyles,Fe=ze.resizeStatus,Pe=Object(l.a)(Ge.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ve=M()(Ee,Ce,Object(d.a)({},"".concat(Ee,"-disabled"),xe));"value"in Pe&&(Pe.value=Pe.value||"");var at=Object(s.a)(Object(s.a)(Object(s.a)({},Ge.props.style),Le),Fe===J.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return g.createElement(o,{onResize:Ge.handleResize,disabled:!(fe||Ne)},g.createElement("textarea",Object(Y.a)({},Pe,{className:Ve,style:at,ref:Ge.saveTextArea})))},Ge.state={textareaStyles:{},resizeStatus:J.NONE},Ge}return Object(L.a)(He,[{key:"componentDidUpdate",value:function(Ge){(Ge.value!==this.props.value||!G()(Ge.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var Ge=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ge,he)}}catch(ce){}}},{key:"render",value:function(){return this.renderTextArea()}}]),He}(g.Component),te=X,ee=function(ge){Object(U.a)(He,ge);var je=Object(S.a)(He);function He(nt){var Ge;Object(j.a)(this,He),Ge=je.call(this,nt),Ge.resizableTextArea=void 0,Ge.focus=function(){Ge.resizableTextArea.textArea.focus()},Ge.saveTextArea=function(ce){Ge.resizableTextArea=ce},Ge.handleChange=function(ce){var Ee=Ge.props.onChange;Ge.setValue(ce.target.value,function(){Ge.resizableTextArea.resizeTextarea()}),Ee&&Ee(ce)},Ge.handleKeyDown=function(ce){var Ee=Ge.props,fe=Ee.onPressEnter,Ne=Ee.onKeyDown;ce.keyCode===13&&fe&&fe(ce),Ne&&Ne(ce)};var he=typeof nt.value=="undefined"||nt.value===null?nt.defaultValue:nt.value;return Ge.state={value:he},Ge}return Object(L.a)(He,[{key:"setValue",value:function(Ge,he){"value"in this.props||this.setState({value:Ge},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return g.createElement(te,Object(Y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ge){return"value"in Ge?{value:Ge.value}:null}}]),He}(g.Component),be=ie.default=ee},YH21:function(Ye,ie,_){var Y=_("H6uX");ie.Dispatcher=Y;var j=_("ItGF"),L=_("Ze12"),U=L.isCanvasEl,S=L.transformCoordWithViewport,g=typeof window!="undefined"&&!!window.addEventListener,s=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,d=[];function w(r,u,h,b){return h=h||{},b||!j.canvasSupported?p(r,u,h):j.browser.firefox&&u.layerX!=null&&u.layerX!==u.offsetX?(h.zrX=u.layerX,h.zrY=u.layerY):u.offsetX!=null?(h.zrX=u.offsetX,h.zrY=u.offsetY):p(r,u,h),h}function p(r,u,h){if(j.domSupported&&r.getBoundingClientRect){var b=u.clientX,E=u.clientY;if(U(r)){var t=r.getBoundingClientRect();h.zrX=b-t.left,h.zrY=E-t.top;return}else if(S(d,r,b,E)){h.zrX=d[0],h.zrY=d[1];return}}h.zrX=h.zrY=0}function a(r){return r||window.event}function f(r,u,h){if(u=a(u),u.zrX!=null)return u;var b=u.type,E=b&&b.indexOf("touch")>=0;if(!E)w(r,u,u,h),u.zrDelta=u.wheelDelta?u.wheelDelta/120:-(u.detail||0)/3;else{var t=b!=="touchend"?u.targetTouches[0]:u.changedTouches[0];t&&w(r,t,u,h)}var C=u.button;return u.which==null&&C!==void 0&&s.test(u.type)&&(u.which=C&1?1:C&2?3:C&4?2:0),u}function x(r,u,h,b){g?r.addEventListener(u,h,b):r.attachEvent("on"+u,h)}function y(r,u,h,b){g?r.removeEventListener(u,h,b):r.detachEvent("on"+u,h)}var m=g?function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0}:function(r){r.returnValue=!1,r.cancelBubble=!0};function O(r){return r.which===2||r.which===3}function i(r){return r.which>1}ie.clientToLocal=w,ie.getNativeEvent=a,ie.normalizeEvent=f,ie.addEventListener=x,ie.removeEventListener=y,ie.stop=m,ie.isMiddleOrRightButtonOnMouseUpDown=O,ie.notLeftMouse=i},"YJx+":function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___TKIS5",flex_space_between:"flex_space_between___3ITJg",flex_box_vertical_center:"flex_box_vertical_center___pGLbk",flex_box_center_end:"flex_box_center_end___3-z2A",flex_box_column:"flex_box_column___1SlIq",wrap:"wrap___2TxDh",modal:"modal___jkvmI",titleWrap:"titleWrap___386Y5",required:"required___3ddar",title:"title___2scfU",colorGray:"colorGray___10JDh",choiceWrap:"choiceWrap___3UMox",answer:"answer___1kvCr",activeAnswer:"activeAnswer___1tun2",deleteIcon:"deleteIcon___2_EJk",addIcon:"addIcon___b404_",editorWrap:"editorWrap___1qDS7",htmlWrap:"htmlWrap___2ear6",radio:"radio___3EFAB",color333:"color333___lt3ql",color999:"color999___11Mt_",questionType:"questionType___1yIj7",questionChoices:"questionChoices___1n3A7",action:"action___3PqBm",difficult:"difficult___1L4Zj",fold:"fold___3zBy6",head:"head___1dsW5"}},YgsL:function(Ye,ie,_){var Y=_("QBsz"),j=Y.distance;function L(S,g,s,d,w,p,a){var f=(s-S)*.5,x=(d-g)*.5;return(2*(g-s)+f+x)*a+(-3*(g-s)-2*f-x)*p+f*w+g}function U(S,g){for(var s=S.length,d=[],w=0,p=1;ps-2?s-1:x+1],r=S[x>s-3?s-1:x+2]);var u=y*y,h=y*u;d.push([L(m[0],O[0],i[0],r[0],y,u,h),L(m[1],O[1],i[1],r[1],y,u,h)])}return d}Ye.exports=U},ZW9T:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return o});var Y=_("k1fw"),j=_("oBTY"),L=_("9og8"),U=_("miYZ"),S=_("tsqr"),g=_("rAM+"),s=_("tJVT"),d=_("PpiC"),w=_("WmNS"),p=_.n(w),a=_("q1tI"),f=_.n(a),x=_("bdgK");function y(l,c,M,P,R){var k=c.getWordUntilPosition(M),I={startLineNumber:M.lineNumber,endLineNumber:M.lineNumber,startColumn:k.startColumn,endColumn:k.endColumn},F=P.map(function(V){return{label:V,kind:l.languages.CompletionItemKind.Keyword,insertText:V,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:I}});return R.map(function(V){F.push(Object(Y.a)(Object(Y.a)({},V),{},{range:I}))}),F}var m=function(l){var c={label:"ifelse",kind:l.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`),insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet},M=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];l.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(I,F){var V=y(l,I,F,M,[c]);return{suggestions:V}}});var P=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];l.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(I,F){var V=[{label:"print",kind:l.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` +`),insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet}],W=y(l,I,F,P,V);return{suggestions:W}}});var R=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];l.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(I,F){var V=[c,{label:"main",kind:l.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:l.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet}],W=b(l,I,F,R,V);return{suggestions:W}}})},O="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",i=_("fjLI"),r=_("LvDl"),u=_("+ua5");function h(l){return/^\d+$/.test(l)?"".concat(l,"px"):l}function y(){}var E=!1,t={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function C(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=l;if(Array.isArray(l)){for(var M=0;M0||Te.target.offsetWidth>0)&&Ht.current.instance.layout()}}catch(ve){jt.e(ve)}finally{jt.f()}}),ft.observe(lt.current)),ft}function dt(){S.b.warn({content:decodeURIComponent(O),key:"monaco-editor-tip"})}var et=function(){var Nt=Ht.current.instance;if(k!=null&&Nt&&Ae){var jt=Nt.getModel();jt&&k!==jt.getValue()&&(E=!0,jt.setValue(k),Nt.layout(),E=!1)}};Object(a.useEffect)(function(){try{var ft,Nt=Ht.current.instance;Tt.current&&clearTimeout(Tt.current),Tt.current=setTimeout(function(){et()},500),Nt==null||((ft=Nt.updateOptions)===null||ft===void 0)||ft.call(Nt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(k.split(/\r\n|\r|\n/g).length))+3,5)})}catch(jt){debugger}},[k,Ae,Ht.current]),Object(a.useEffect)(function(){try{if(At&&Ht.current&&Ht.current.instance){var ft=Ht.current.instance;ft.changeViewZones(function(jt){var bn=document.createElement("div");bn.style.padding="10px 20px",bn.style.width="calc(100% - 20px)",bn.className="my-error-line-wrp",bn.innerHTML=tn,jt.addZone({afterLineNumber:At||11,heightInLines:3,domNode:bn})});var Nt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ft.addOverlayWidget(Nt),ft.revealPositionInCenter({lineNumber:20,column:1})}}catch(jt){debugger}},[At,Ht.current,Ae]),Object(a.useEffect)(function(){var ft;if((ft=Ht.current)!==null&&ft!==void 0&&ft.instance&&Ae&&Un){var Nt=Ht.current.instance,jt=Nt.getModel();if(!jt)return;var bn=function(){var an=[],Pn=[],dn=jt.getAllDecorations(),jn=Object(g.a)(dn),Bn;try{for(jn.s();!(Bn=jn.n()).done;){var ne=Bn.value;if(ne.options.className==="highlighted-line"){var B;an.push(ne==null||((B=ne.range)===null||B===void 0)?void 0:B.startLineNumber),Pn.push(ne==null?void 0:ne.id)}}}catch(ae){jn.e(ae)}finally{jn.f()}jt.deltaDecorations(Pn,[]);var H=jt.getLineCount();!!Qt&&Qt<=H&&(Nt.deltaDecorations([],[{range:new A.Range(Qt,1,Qt,jt.getLineMaxColumn(Qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Nt.revealLineInCenter(Qt))};bn();var Te=function(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Pn=[],dn=[],jn=jt.getAllDecorations(),Bn=Object(g.a)(jn),ne;try{for(Bn.s();!(ne=Bn.n()).done;){var B=ne.value;if(B.options.linesDecorationsClassName==="breakpoints"){var H;Pn.push(B==null||((H=B.range)===null||H===void 0)?void 0:H.startLineNumber),dn.push(B==null?void 0:B.id)}}}catch(ae){Bn.e(ae)}finally{Bn.f()}if(an)return{lines:Pn,ids:dn};Le(Pn)},ve=function(){var St=Object(L.a)(p.a.mark(function an(Pn){var dn;return p.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return dn={range:new A.Range(Pn,1,Pn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Bn.next=3,jt.deltaDecorations([],[dn]);case 3:Te();case 4:case"end":return Bn.stop()}},an)}));return function(Pn){return St.apply(this,arguments)}}(),Q=function(){var St=Object(L.a)(p.a.mark(function an(Pn){var dn,jn,Bn,ne,B;return p.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:dn=[],jn=Nt.getLineDecorations(Pn),Bn=Object(g.a)(jn);try{for(Bn.s();!(ne=Bn.n()).done;)B=ne.value,B.options.linesDecorationsClassName==="breakpoints"&&dn.push(B.id)}catch(ue){Bn.e(ue)}finally{Bn.f()}return ae.next=6,jt.deltaDecorations(dn,[]);case 6:Te();case 7:case"end":return ae.stop()}},an)}));return function(Pn){return St.apply(this,arguments)}}(),$=function(an){var Pn=Nt.getLineDecorations(an),dn=Object(g.a)(Pn),jn;try{for(dn.s();!(jn=dn.n()).done;){var Bn=jn.value;if(Bn.options.linesDecorationsClassName==="breakpoints")return!0}}catch(ne){dn.e(ne)}finally{dn.f()}return!1};if(!Object(r.isEqual)(Pe,Te(!0).lines)){jt.deltaDecorations(Te(!0).ids,[]);var re=Pe.map(function(St){return{range:new A.Range(St,1,St,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});jt.deltaDecorations([],re)}var de=Nt.onDidChangeModelContent(function(St){var an=Nt.getPosition();if(an){var Pn=an.lineNumber;jt.getLineContent(Pn).trim()===""?Q(Pn):$(Pn)&&(Q(Pn),ve(Pn))}}),Ue=Nt.onMouseDown(function(St){var an,Pn,dn;if(St.target.detail&&(an=St.target)!==null&&an!==void 0&&(Pn=an.element)!==null&&Pn!==void 0&&(dn=Pn.className)!==null&&dn!==void 0&&dn.includes("line-numbers")){var jn=St.target.position.lineNumber;if(jt.getLineContent(jn).trim()==="")return;$(jn)?Q(jn):ve(jn)}}),it=function(an){var Pn={range:new A.Range(an,1,an,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};wt.current=Nt.deltaDecorations(wt.current,[Pn])},Mt=function(){wt.current=Nt.deltaDecorations(wt.current,[])},Ln=Nt.onMouseMove(function(St){var an,Pn,dn;if(Mt(),St.target.detail&&(an=St.target)!==null&&an!==void 0&&(Pn=an.element)!==null&&Pn!==void 0&&(dn=Pn.className)!==null&&dn!==void 0&&dn.includes("line-numbers")){var jn=St.target.position.lineNumber;if(jt.getLineContent(jn).trim()==="")return;it(jn)}}),kn=Nt.onMouseLeave(function(){Mt()});return function(){de.dispose(),Ue.dispose(),Ln.dispose(),kn.dispose()}}},[Ht.current,Ae,Pe,Qt,Un]);function xt(){var ft=Ht.current.instance;if(ft){var Nt=ft.getSelection(),jt=Ht.current.pastePos||{},bn=new A.Range(jt.startLineNumber||Nt.endLineNumber,jt.startColumn||Nt.endColumn,jt.endLineNumber||Nt.endLineNumber,jt.endColumn||Nt.endColumn);setTimeout(function(){ft.executeEdits("",[{range:bn,text:""}])},300)}}function xn(ft){(window.navigator.platform.match("Mac")?ft.metaKey:ft.ctrlKey)&&ft.keyCode==83&&(ft.preventDefault(),je())}var Dt=function(){if(nt&&Ht.current.instance){var Nt=Ht.current.instance.getContentHeight();Zt(Nt0||fe.target.offsetWidth>0)&&nt.layout()}}catch(Ne){ce.e(Ne)}finally{ce.f()}}),Ge.observe(G.current)),Ge}Object(a.useEffect)(function(){return G.current&&_.e(27).then(_.t.bind(null,"M/lh",7)).then(function(nt){A=nt;var Ge=A.editor.createDiffEditor(G.current,Object(Y.a)(Object(Y.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},W),{},{wordWrap:!0}));ee(Ge);var he=be(Ge);return function(){Ge.dispose();var ce=Ge.getModel();ce&&ce.dispose(),he.unobserve(G.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(a.useEffect)(function(){te&&te.setModel({original:A.editor.createModel(k,F),modified:A.editor.createModel(I,F)})},[k,I,F,te]);var ge=h(M),je=h(R),He={width:ge,height:je};return f.a.createElement("div",{className:"my-diff-editor",ref:G,style:He})}},Ze12:function(Ye,ie,_){var Y=_("ItGF"),j=_("hOwI"),L=j.buildTransformer,U="___zrEVENTSAVED",S=[];function g(a,f,x,b,m){return s(S,f,b,m,!0)&&s(a,x,S[0],S[1])}function s(a,f,x,b,m){if(f.getBoundingClientRect&&Y.domSupported&&!p(f)){var O=f[U]||(f[U]={}),i=d(f,O),r=w(i,O,m);if(r)return r(a,x,b),!0}return!1}function d(a,f){var x=f.markers;if(x)return x;x=f.markers=[];for(var b=["left","right"],m=["top","bottom"],O=0;O<4;O++){var i=document.createElement("div"),r=i.style,u=O%2,h=(O>>1)%2;r.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",b[u]+":0",m[h]+":0",b[1-u]+":auto",m[1-h]+":auto",""].join("!important;"),a.appendChild(i),x.push(i)}return x}function w(a,f,x){for(var b=x?"invTrans":"trans",m=f[b],O=f.srcCoords,i=!0,r=[],u=[],h=0;h<4;h++){var y=a[h].getBoundingClientRect(),E=2*h,t=y.left,C=y.top;r.push(t,C),i=i&&O&&t===O[E]&&C===O[E+1],u.push(a[h].offsetLeft,a[h].offsetTop)}return i&&m?m:(f.srcCoords=r,f[b]=x?L(u,r):L(r,u))}function p(a){return a.nodeName.toUpperCase()==="CANVAS"}ie.transformLocalCoord=g,ie.transformCoordWithViewport=s,ie.isCanvasEl=p},ZpRC:function(Ye,ie,_){"use strict";function Y(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function j(a,f){return(!f||a!=="hidden")&&a!=="visible"&&a!=="clip"}function L(a,f){if(a.clientHeightf||O>a&&i=f&&r>=x?O-a-b:i>f&&rx?i-f+m:0}var S=function(a,f){var x=window,b=f.scrollMode,m=f.block,O=f.inline,i=f.boundary,r=f.skipOverflowHiddenElements,u=typeof i=="function"?i:function(Le){return Le!==i};if(!Y(a))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,y=[],E=a;Y(E)&&u(E);){if((E=E.parentElement)===h){y.push(E);break}E!=null&&E===document.body&&L(E)&&!L(document.documentElement)||E!=null&&L(E,r)&&y.push(E)}for(var t=x.visualViewport?x.visualViewport.width:innerWidth,C=x.visualViewport?x.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,o=a.getBoundingClientRect(),l=o.height,c=o.width,M=o.top,P=o.right,R=o.bottom,k=o.left,I=m==="start"||m==="nearest"?M:m==="end"?R:M+l/2,F=O==="center"?k+c/2:O==="end"?P:k,V=[],W=0;W=0&&k>=0&&R<=C&&P<=t&&M>=ee&&R<=ge&&k>=je&&P<=be)return V;var He=getComputedStyle(G),nt=parseInt(He.borderLeftWidth,10),Ge=parseInt(He.borderTopWidth,10),he=parseInt(He.borderRightWidth,10),ce=parseInt(He.borderBottomWidth,10),Ee=0,fe=0,Ne="offsetWidth"in G?G.offsetWidth-G.clientWidth-nt-he:0,Ce="offsetHeight"in G?G.offsetHeight-G.clientHeight-Ge-ce:0;if(h===G)Ee=m==="start"?I:m==="end"?I-C:m==="nearest"?U(v,v+C,C,Ge,ce,v+I,v+I+l,l):I-C/2,fe=O==="start"?F:O==="center"?F-t/2:O==="end"?F-t:U(A,A+t,t,nt,he,A+F,A+F+c,c),Ee=Math.max(0,Ee+v),fe=Math.max(0,fe+A);else{Ee=m==="start"?I-ee-Ge:m==="end"?I-ge+ce+Ce:m==="nearest"?U(ee,ge,X,Ge,ce+Ce,I,I+l,l):I-(ee+X/2)+Ce/2,fe=O==="start"?F-je-nt:O==="center"?F-(je+te/2)+Ne/2:O==="end"?F-be+he+Ne:U(je,be,te,nt,he+Ne,F,F+c,c);var xe=G.scrollLeft,ze=G.scrollTop;I+=ze-(Ee=Math.max(0,Math.min(ze+Ee,G.scrollHeight-X+Ce))),F+=xe-(fe=Math.max(0,Math.min(xe+fe,G.scrollWidth-te+Ne)))}V.push({el:G,top:Ee,left:fe})}return V};function g(a){return a===Object(a)&&Object.keys(a).length!==0}function s(a,f){f===void 0&&(f="auto");var x="scrollBehavior"in document.body.style;a.forEach(function(b){var m=b.el,O=b.top,i=b.left;m.scroll&&x?m.scroll({top:O,left:i,behavior:f}):(m.scrollTop=O,m.scrollLeft=i)})}function d(a){return a===!1?{block:"end",inline:"nearest"}:g(a)?a:{block:"start",inline:"nearest"}}function w(a,f){var x=!a.ownerDocument.documentElement.contains(a);if(g(f)&&typeof f.behavior=="function")return f.behavior(x?[]:S(a,f));if(x)return;var b=d(f);return s(S(a,b),b.behavior)}var p=ie.a=w},Zss7:function(Ye,ie,_){var Y;(function(j){var L=/^\s+/,U=/\s+$/,S=0,g=j.round,s=j.min,d=j.max,w=j.random;function p(ce,Ee){if(ce=ce||"",Ee=Ee||{},ce instanceof p)return ce;if(!(this instanceof p))return new p(ce,Ee);var fe=a(ce);this._originalInput=ce,this._r=fe.r,this._g=fe.g,this._b=fe.b,this._a=fe.a,this._roundA=g(100*this._a)/100,this._format=Ee.format||fe.format,this._gradientType=Ee.gradientType,this._r<1&&(this._r=g(this._r)),this._g<1&&(this._g=g(this._g)),this._b<1&&(this._b=g(this._b)),this._ok=fe.ok,this._tc_id=S++}p.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 ce=this.toRgb();return(ce.r*299+ce.g*587+ce.b*114)/1e3},getLuminance:function(){var ce=this.toRgb(),Ee,fe,Ne,Ce,xe,ze;return Ee=ce.r/255,fe=ce.g/255,Ne=ce.b/255,Ee<=.03928?Ce=Ee/12.92:Ce=j.pow((Ee+.055)/1.055,2.4),fe<=.03928?xe=fe/12.92:xe=j.pow((fe+.055)/1.055,2.4),Ne<=.03928?ze=Ne/12.92:ze=j.pow((Ne+.055)/1.055,2.4),.2126*Ce+.7152*xe+.0722*ze},setAlpha:function(ce){return this._a=V(ce),this._roundA=g(100*this._a)/100,this},toHsv:function(){var ce=m(this._r,this._g,this._b);return{h:ce.h*360,s:ce.s,v:ce.v,a:this._a}},toHsvString:function(){var ce=m(this._r,this._g,this._b),Ee=g(ce.h*360),fe=g(ce.s*100),Ne=g(ce.v*100);return this._a==1?"hsv("+Ee+", "+fe+"%, "+Ne+"%)":"hsva("+Ee+", "+fe+"%, "+Ne+"%, "+this._roundA+")"},toHsl:function(){var ce=x(this._r,this._g,this._b);return{h:ce.h*360,s:ce.s,l:ce.l,a:this._a}},toHslString:function(){var ce=x(this._r,this._g,this._b),Ee=g(ce.h*360),fe=g(ce.s*100),Ne=g(ce.l*100);return this._a==1?"hsl("+Ee+", "+fe+"%, "+Ne+"%)":"hsla("+Ee+", "+fe+"%, "+Ne+"%, "+this._roundA+")"},toHex:function(ce){return i(this._r,this._g,this._b,ce)},toHexString:function(ce){return"#"+this.toHex(ce)},toHex8:function(ce){return r(this._r,this._g,this._b,this._a,ce)},toHex8String:function(ce){return"#"+this.toHex8(ce)},toRgb:function(){return{r:g(this._r),g:g(this._g),b:g(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+g(this._r)+", "+g(this._g)+", "+g(this._b)+")":"rgba("+g(this._r)+", "+g(this._g)+", "+g(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:g(W(this._r,255)*100)+"%",g:g(W(this._g,255)*100)+"%",b:g(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+g(W(this._r,255)*100)+"%, "+g(W(this._g,255)*100)+"%, "+g(W(this._b,255)*100)+"%)":"rgba("+g(W(this._r,255)*100)+"%, "+g(W(this._g,255)*100)+"%, "+g(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[i(this._r,this._g,this._b,!0)]||!1},toFilter:function(ce){var Ee="#"+u(this._r,this._g,this._b,this._a),fe=Ee,Ne=this._gradientType?"GradientType = 1, ":"";if(ce){var Ce=p(ce);fe="#"+u(Ce._r,Ce._g,Ce._b,Ce._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ne+"startColorstr="+Ee+",endColorstr="+fe+")"},toString:function(ce){var Ee=!!ce;ce=ce||this._format;var fe=!1,Ne=this._a<1&&this._a>=0,Ce=!Ee&&Ne&&(ce==="hex"||ce==="hex6"||ce==="hex3"||ce==="hex4"||ce==="hex8"||ce==="name");return Ce?ce==="name"&&this._a===0?this.toName():this.toRgbString():(ce==="rgb"&&(fe=this.toRgbString()),ce==="prgb"&&(fe=this.toPercentageRgbString()),(ce==="hex"||ce==="hex6")&&(fe=this.toHexString()),ce==="hex3"&&(fe=this.toHexString(!0)),ce==="hex4"&&(fe=this.toHex8String(!0)),ce==="hex8"&&(fe=this.toHex8String()),ce==="name"&&(fe=this.toName()),ce==="hsl"&&(fe=this.toHslString()),ce==="hsv"&&(fe=this.toHsvString()),fe||this.toHexString())},clone:function(){return p(this.toString())},_applyModification:function(ce,Ee){var fe=ce.apply(null,[this].concat([].slice.call(Ee)));return this._r=fe._r,this._g=fe._g,this._b=fe._b,this.setAlpha(fe._a),this},lighten:function(){return this._applyModification(t,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(ce,Ee){return ce.apply(null,[this].concat([].slice.call(Ee)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(l,arguments)},tetrad:function(){return this._applyCombination(c,arguments)}},p.fromRatio=function(ce,Ee){if(typeof ce=="object"){var fe={};for(var Ne in ce)ce.hasOwnProperty(Ne)&&(Ne==="a"?fe[Ne]=ce[Ne]:fe[Ne]=be(ce[Ne]));ce=fe}return p(ce,Ee)};function a(ce){var Ee={r:0,g:0,b:0},fe=1,Ne=null,Ce=null,xe=null,ze=!1,Le=!1;return typeof ce=="string"&&(ce=Ge(ce)),typeof ce=="object"&&(nt(ce.r)&&nt(ce.g)&&nt(ce.b)?(Ee=f(ce.r,ce.g,ce.b),ze=!0,Le=String(ce.r).substr(-1)==="%"?"prgb":"rgb"):nt(ce.h)&&nt(ce.s)&&nt(ce.v)?(Ne=be(ce.s),Ce=be(ce.v),Ee=O(ce.h,Ne,Ce),ze=!0,Le="hsv"):nt(ce.h)&&nt(ce.s)&&nt(ce.l)&&(Ne=be(ce.s),xe=be(ce.l),Ee=b(ce.h,Ne,xe),ze=!0,Le="hsl"),ce.hasOwnProperty("a")&&(fe=ce.a)),fe=V(fe),{ok:ze,format:ce.format||Le,r:s(255,d(Ee.r,0)),g:s(255,d(Ee.g,0)),b:s(255,d(Ee.b,0)),a:fe}}function f(ce,Ee,fe){return{r:W(ce,255)*255,g:W(Ee,255)*255,b:W(fe,255)*255}}function x(ce,Ee,fe){ce=W(ce,255),Ee=W(Ee,255),fe=W(fe,255);var Ne=d(ce,Ee,fe),Ce=s(ce,Ee,fe),xe,ze,Le=(Ne+Ce)/2;if(Ne==Ce)xe=ze=0;else{var Fe=Ne-Ce;ze=Le>.5?Fe/(2-Ne-Ce):Fe/(Ne+Ce);switch(Ne){case ce:xe=(Ee-fe)/Fe+(Ee1&&(at-=1),at<1/6?Pe+(Ve-Pe)*6*at:at<1/2?Ve:at<2/3?Pe+(Ve-Pe)*(2/3-at)*6:Pe}if(Ee===0)Ne=Ce=xe=fe;else{var Le=fe<.5?fe*(1+Ee):fe+Ee-fe*Ee,Fe=2*fe-Le;Ne=ze(Fe,Le,ce+1/3),Ce=ze(Fe,Le,ce),xe=ze(Fe,Le,ce-1/3)}return{r:Ne*255,g:Ce*255,b:xe*255}}function m(ce,Ee,fe){ce=W(ce,255),Ee=W(Ee,255),fe=W(fe,255);var Ne=d(ce,Ee,fe),Ce=s(ce,Ee,fe),xe,ze,Le=Ne,Fe=Ne-Ce;if(ze=Ne===0?0:Fe/Ne,Ne==Ce)xe=0;else{switch(Ne){case ce:xe=(Ee-fe)/Fe+(Ee>1)+720)%360;--Ee;)Ne.h=(Ne.h+Ce)%360,xe.push(p(Ne));return xe}function R(ce,Ee){Ee=Ee||6;for(var fe=p(ce).toHsv(),Ne=fe.h,Ce=fe.s,xe=fe.v,ze=[],Le=1/Ee;Ee--;)ze.push(p({h:Ne,s:Ce,v:xe})),xe=(xe+Le)%1;return ze}p.mix=function(ce,Ee,fe){fe=fe===0?0:fe||50;var Ne=p(ce).toRgb(),Ce=p(Ee).toRgb(),xe=fe/100,ze={r:(Ce.r-Ne.r)*xe+Ne.r,g:(Ce.g-Ne.g)*xe+Ne.g,b:(Ce.b-Ne.b)*xe+Ne.b,a:(Ce.a-Ne.a)*xe+Ne.a};return p(ze)},p.readability=function(ce,Ee){var fe=p(ce),Ne=p(Ee);return(j.max(fe.getLuminance(),Ne.getLuminance())+.05)/(j.min(fe.getLuminance(),Ne.getLuminance())+.05)},p.isReadable=function(ce,Ee,fe){var Ne=p.readability(ce,Ee),Ce,xe;xe=!1,Ce=he(fe);switch(Ce.level+Ce.size){case"AAsmall":case"AAAlarge":xe=Ne>=4.5;break;case"AAlarge":xe=Ne>=3;break;case"AAAsmall":xe=Ne>=7;break}return xe},p.mostReadable=function(ce,Ee,fe){var Ne=null,Ce=0,xe,ze,Le,Fe;fe=fe||{},ze=fe.includeFallbackColors,Le=fe.level,Fe=fe.size;for(var Pe=0;PeCe&&(Ce=xe,Ne=p(Ee[Pe]));return p.isReadable(ce,Ne,{level:Le,size:Fe})||!ze?Ne:(fe.includeFallbackColors=!1,p.mostReadable(ce,["#fff","#000"],fe))};var k=p.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"},I=p.hexNames=F(k);function F(ce){var Ee={};for(var fe in ce)ce.hasOwnProperty(fe)&&(Ee[ce[fe]]=fe);return Ee}function V(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function W(ce,Ee){X(ce)&&(ce="100%");var fe=te(ce);return ce=s(Ee,d(0,parseFloat(ce))),fe&&(ce=parseInt(ce*Ee,10)/100),j.abs(ce-Ee)<1e-6?1:ce%Ee/parseFloat(Ee)}function G(ce){return s(1,d(0,ce))}function J(ce){return parseInt(ce,16)}function X(ce){return typeof ce=="string"&&ce.indexOf(".")!=-1&&parseFloat(ce)===1}function te(ce){return typeof ce=="string"&&ce.indexOf("%")!=-1}function ee(ce){return ce.length==1?"0"+ce:""+ce}function be(ce){return ce<=1&&(ce=ce*100+"%"),ce}function ge(ce){return j.round(parseFloat(ce)*255).toString(16)}function je(ce){return J(ce)/255}var He=function(){var ce="[-\\+]?\\d+%?",Ee="[-\\+]?\\d*\\.\\d+%?",fe="(?:"+Ee+")|(?:"+ce+")",Ne="[\\s|\\(]+("+fe+")[,|\\s]+("+fe+")[,|\\s]+("+fe+")\\s*\\)?",Ce="[\\s|\\(]+("+fe+")[,|\\s]+("+fe+")[,|\\s]+("+fe+")[,|\\s]+("+fe+")\\s*\\)?";return{CSS_UNIT:new RegExp(fe),rgb:new RegExp("rgb"+Ne),rgba:new RegExp("rgba"+Ce),hsl:new RegExp("hsl"+Ne),hsla:new RegExp("hsla"+Ce),hsv:new RegExp("hsv"+Ne),hsva:new RegExp("hsva"+Ce),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 nt(ce){return!!He.CSS_UNIT.exec(ce)}function Ge(ce){ce=ce.replace(L,"").replace(U,"").toLowerCase();var Ee=!1;if(k[ce])ce=k[ce],Ee=!0;else if(ce=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var fe;return(fe=He.rgb.exec(ce))?{r:fe[1],g:fe[2],b:fe[3]}:(fe=He.rgba.exec(ce))?{r:fe[1],g:fe[2],b:fe[3],a:fe[4]}:(fe=He.hsl.exec(ce))?{h:fe[1],s:fe[2],l:fe[3]}:(fe=He.hsla.exec(ce))?{h:fe[1],s:fe[2],l:fe[3],a:fe[4]}:(fe=He.hsv.exec(ce))?{h:fe[1],s:fe[2],v:fe[3]}:(fe=He.hsva.exec(ce))?{h:fe[1],s:fe[2],v:fe[3],a:fe[4]}:(fe=He.hex8.exec(ce))?{r:J(fe[1]),g:J(fe[2]),b:J(fe[3]),a:je(fe[4]),format:Ee?"name":"hex8"}:(fe=He.hex6.exec(ce))?{r:J(fe[1]),g:J(fe[2]),b:J(fe[3]),format:Ee?"name":"hex"}:(fe=He.hex4.exec(ce))?{r:J(fe[1]+""+fe[1]),g:J(fe[2]+""+fe[2]),b:J(fe[3]+""+fe[3]),a:je(fe[4]+""+fe[4]),format:Ee?"name":"hex8"}:(fe=He.hex3.exec(ce))?{r:J(fe[1]+""+fe[1]),g:J(fe[2]+""+fe[2]),b:J(fe[3]+""+fe[3]),format:Ee?"name":"hex"}:!1}function he(ce){var Ee,fe;return ce=ce||{level:"AA",size:"small"},Ee=(ce.level||"AA").toUpperCase(),fe=(ce.size||"small").toLowerCase(),Ee!=="AA"&&Ee!=="AAA"&&(Ee="AA"),fe!=="small"&&fe!=="large"&&(fe="small"),{level:Ee,size:fe}}Ye.exports?Ye.exports=p:!(Y=function(){return p}.call(ie,_,ie,Ye),Y!==void 0&&(Ye.exports=Y))})(Math)},aKvl:function(Ye,ie,_){var Y=_("Sj9i"),j=Y.quadraticProjectPoint;function L(U,S,g,s,d,w,p,a,f){if(p===0)return!1;var x=p;if(f>S+x&&f>s+x&&f>w+x||fU+x&&a>g+x&&a>d+x||a0&&arguments[0]!==void 0?arguments[0]:[],c=l;if(Array.isArray(l)){for(var M=0;M0||Te.target.offsetWidth>0)&&Ht.current.instance.layout()}}catch(ve){jt.e(ve)}finally{jt.f()}}),ft.observe(lt.current)),ft}function dt(){S.b.warn({content:decodeURIComponent(O),key:"monaco-editor-tip"})}var et=function(){var Nt=Ht.current.instance;if(k!=null&&Nt&&Ae){var jt=Nt.getModel();jt&&k!==jt.getValue()&&(E=!0,jt.setValue(k),Nt.layout(),E=!1)}};Object(a.useEffect)(function(){try{var ft,Nt=Ht.current.instance;Tt.current&&clearTimeout(Tt.current),Tt.current=setTimeout(function(){et()},500),Nt==null||((ft=Nt.updateOptions)===null||ft===void 0)||ft.call(Nt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(k.split(/\r\n|\r|\n/g).length))+3,5)})}catch(jt){debugger}},[k,Ae,Ht.current]),Object(a.useEffect)(function(){try{if(At&&Ht.current&&Ht.current.instance){var ft=Ht.current.instance;ft.changeViewZones(function(jt){var bn=document.createElement("div");bn.style.padding="10px 20px",bn.style.width="calc(100% - 20px)",bn.className="my-error-line-wrp",bn.innerHTML=tn,jt.addZone({afterLineNumber:At||11,heightInLines:3,domNode:bn})});var Nt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ft.addOverlayWidget(Nt),ft.revealPositionInCenter({lineNumber:20,column:1})}}catch(jt){debugger}},[At,Ht.current,Ae]),Object(a.useEffect)(function(){var ft;if((ft=Ht.current)!==null&&ft!==void 0&&ft.instance&&Ae&&Un){var Nt=Ht.current.instance,jt=Nt.getModel();if(!jt)return;var bn=function(){var an=[],Pn=[],dn=jt.getAllDecorations(),jn=Object(g.a)(dn),Bn;try{for(jn.s();!(Bn=jn.n()).done;){var ne=Bn.value;if(ne.options.className==="highlighted-line"){var B;an.push(ne==null||((B=ne.range)===null||B===void 0)?void 0:B.startLineNumber),Pn.push(ne==null?void 0:ne.id)}}}catch(ae){jn.e(ae)}finally{jn.f()}jt.deltaDecorations(Pn,[]);var H=jt.getLineCount();!!Qt&&Qt<=H&&(Nt.deltaDecorations([],[{range:new A.Range(Qt,1,Qt,jt.getLineMaxColumn(Qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Nt.revealLineInCenter(Qt))};bn();var Te=function(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Pn=[],dn=[],jn=jt.getAllDecorations(),Bn=Object(g.a)(jn),ne;try{for(Bn.s();!(ne=Bn.n()).done;){var B=ne.value;if(B.options.linesDecorationsClassName==="breakpoints"){var H;Pn.push(B==null||((H=B.range)===null||H===void 0)?void 0:H.startLineNumber),dn.push(B==null?void 0:B.id)}}}catch(ae){Bn.e(ae)}finally{Bn.f()}if(an)return{lines:Pn,ids:dn};Le(Pn)},ve=function(){var St=Object(L.a)(p.a.mark(function an(Pn){var dn;return p.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return dn={range:new A.Range(Pn,1,Pn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Bn.next=3,jt.deltaDecorations([],[dn]);case 3:Te();case 4:case"end":return Bn.stop()}},an)}));return function(Pn){return St.apply(this,arguments)}}(),Q=function(){var St=Object(L.a)(p.a.mark(function an(Pn){var dn,jn,Bn,ne,B;return p.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:dn=[],jn=Nt.getLineDecorations(Pn),Bn=Object(g.a)(jn);try{for(Bn.s();!(ne=Bn.n()).done;)B=ne.value,B.options.linesDecorationsClassName==="breakpoints"&&dn.push(B.id)}catch(ue){Bn.e(ue)}finally{Bn.f()}return ae.next=6,jt.deltaDecorations(dn,[]);case 6:Te();case 7:case"end":return ae.stop()}},an)}));return function(Pn){return St.apply(this,arguments)}}(),$=function(an){var Pn=Nt.getLineDecorations(an),dn=Object(g.a)(Pn),jn;try{for(dn.s();!(jn=dn.n()).done;){var Bn=jn.value;if(Bn.options.linesDecorationsClassName==="breakpoints")return!0}}catch(ne){dn.e(ne)}finally{dn.f()}return!1};if(!Object(r.isEqual)(Pe,Te(!0).lines)){jt.deltaDecorations(Te(!0).ids,[]);var re=Pe.map(function(St){return{range:new A.Range(St,1,St,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});jt.deltaDecorations([],re)}var de=Nt.onDidChangeModelContent(function(St){var an=Nt.getPosition();if(an){var Pn=an.lineNumber;jt.getLineContent(Pn).trim()===""?Q(Pn):$(Pn)&&(Q(Pn),ve(Pn))}}),Ue=Nt.onMouseDown(function(St){var an,Pn,dn;if(St.target.detail&&(an=St.target)!==null&&an!==void 0&&(Pn=an.element)!==null&&Pn!==void 0&&(dn=Pn.className)!==null&&dn!==void 0&&dn.includes("line-numbers")){var jn=St.target.position.lineNumber;if(jt.getLineContent(jn).trim()==="")return;$(jn)?Q(jn):ve(jn)}}),it=function(an){var Pn={range:new A.Range(an,1,an,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};wt.current=Nt.deltaDecorations(wt.current,[Pn])},Mt=function(){wt.current=Nt.deltaDecorations(wt.current,[])},Ln=Nt.onMouseMove(function(St){var an,Pn,dn;if(Mt(),St.target.detail&&(an=St.target)!==null&&an!==void 0&&(Pn=an.element)!==null&&Pn!==void 0&&(dn=Pn.className)!==null&&dn!==void 0&&dn.includes("line-numbers")){var jn=St.target.position.lineNumber;if(jt.getLineContent(jn).trim()==="")return;it(jn)}}),kn=Nt.onMouseLeave(function(){Mt()});return function(){de.dispose(),Ue.dispose(),Ln.dispose(),kn.dispose()}}},[Ht.current,Ae,Pe,Qt,Un]);function xt(){var ft=Ht.current.instance;if(ft){var Nt=ft.getSelection(),jt=Ht.current.pastePos||{},bn=new A.Range(jt.startLineNumber||Nt.endLineNumber,jt.startColumn||Nt.endColumn,jt.endLineNumber||Nt.endLineNumber,jt.endColumn||Nt.endColumn);setTimeout(function(){ft.executeEdits("",[{range:bn,text:""}])},300)}}function xn(ft){(window.navigator.platform.match("Mac")?ft.metaKey:ft.ctrlKey)&&ft.keyCode==83&&(ft.preventDefault(),je())}var Dt=function(){if(nt&&Ht.current.instance){var Nt=Ht.current.instance.getContentHeight();Zt(Nt0||fe.target.offsetWidth>0)&&nt.layout()}}catch(Ne){ce.e(Ne)}finally{ce.f()}}),Ge.observe(G.current)),Ge}Object(a.useEffect)(function(){return G.current&&_.e(27).then(_.t.bind(null,"M/lh",7)).then(function(nt){A=nt;var Ge=A.editor.createDiffEditor(G.current,Object(Y.a)(Object(Y.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},W),{},{wordWrap:!0}));ee(Ge);var he=be(Ge);return function(){Ge.dispose();var ce=Ge.getModel();ce&&ce.dispose(),he.unobserve(G.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(a.useEffect)(function(){te&&te.setModel({original:A.editor.createModel(k,F),modified:A.editor.createModel(I,F)})},[k,I,F,te]);var ge=h(M),je=h(R),He={width:ge,height:je};return f.a.createElement("div",{className:"my-diff-editor",ref:G,style:He})}},Ze12:function(Ye,ie,_){var Y=_("ItGF"),j=_("hOwI"),L=j.buildTransformer,U="___zrEVENTSAVED",S=[];function g(a,f,x,y,m){return s(S,f,y,m,!0)&&s(a,x,S[0],S[1])}function s(a,f,x,y,m){if(f.getBoundingClientRect&&Y.domSupported&&!p(f)){var O=f[U]||(f[U]={}),i=d(f,O),r=w(i,O,m);if(r)return r(a,x,y),!0}return!1}function d(a,f){var x=f.markers;if(x)return x;x=f.markers=[];for(var y=["left","right"],m=["top","bottom"],O=0;O<4;O++){var i=document.createElement("div"),r=i.style,u=O%2,h=(O>>1)%2;r.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",y[u]+":0",m[h]+":0",y[1-u]+":auto",m[1-h]+":auto",""].join("!important;"),a.appendChild(i),x.push(i)}return x}function w(a,f,x){for(var y=x?"invTrans":"trans",m=f[y],O=f.srcCoords,i=!0,r=[],u=[],h=0;h<4;h++){var b=a[h].getBoundingClientRect(),E=2*h,t=b.left,C=b.top;r.push(t,C),i=i&&O&&t===O[E]&&C===O[E+1],u.push(a[h].offsetLeft,a[h].offsetTop)}return i&&m?m:(f.srcCoords=r,f[y]=x?L(u,r):L(r,u))}function p(a){return a.nodeName.toUpperCase()==="CANVAS"}ie.transformLocalCoord=g,ie.transformCoordWithViewport=s,ie.isCanvasEl=p},ZpRC:function(Ye,ie,_){"use strict";function Y(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function j(a,f){return(!f||a!=="hidden")&&a!=="visible"&&a!=="clip"}function L(a,f){if(a.clientHeightf||O>a&&i=f&&r>=x?O-a-y:i>f&&rx?i-f+m:0}var S=function(a,f){var x=window,y=f.scrollMode,m=f.block,O=f.inline,i=f.boundary,r=f.skipOverflowHiddenElements,u=typeof i=="function"?i:function(Le){return Le!==i};if(!Y(a))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,b=[],E=a;Y(E)&&u(E);){if((E=E.parentElement)===h){b.push(E);break}E!=null&&E===document.body&&L(E)&&!L(document.documentElement)||E!=null&&L(E,r)&&b.push(E)}for(var t=x.visualViewport?x.visualViewport.width:innerWidth,C=x.visualViewport?x.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,o=a.getBoundingClientRect(),l=o.height,c=o.width,M=o.top,P=o.right,R=o.bottom,k=o.left,I=m==="start"||m==="nearest"?M:m==="end"?R:M+l/2,F=O==="center"?k+c/2:O==="end"?P:k,V=[],W=0;W=0&&k>=0&&R<=C&&P<=t&&M>=ee&&R<=ge&&k>=je&&P<=be)return V;var He=getComputedStyle(G),nt=parseInt(He.borderLeftWidth,10),Ge=parseInt(He.borderTopWidth,10),he=parseInt(He.borderRightWidth,10),ce=parseInt(He.borderBottomWidth,10),Ee=0,fe=0,Ne="offsetWidth"in G?G.offsetWidth-G.clientWidth-nt-he:0,Ce="offsetHeight"in G?G.offsetHeight-G.clientHeight-Ge-ce:0;if(h===G)Ee=m==="start"?I:m==="end"?I-C:m==="nearest"?U(v,v+C,C,Ge,ce,v+I,v+I+l,l):I-C/2,fe=O==="start"?F:O==="center"?F-t/2:O==="end"?F-t:U(A,A+t,t,nt,he,A+F,A+F+c,c),Ee=Math.max(0,Ee+v),fe=Math.max(0,fe+A);else{Ee=m==="start"?I-ee-Ge:m==="end"?I-ge+ce+Ce:m==="nearest"?U(ee,ge,X,Ge,ce+Ce,I,I+l,l):I-(ee+X/2)+Ce/2,fe=O==="start"?F-je-nt:O==="center"?F-(je+te/2)+Ne/2:O==="end"?F-be+he+Ne:U(je,be,te,nt,he+Ne,F,F+c,c);var xe=G.scrollLeft,ze=G.scrollTop;I+=ze-(Ee=Math.max(0,Math.min(ze+Ee,G.scrollHeight-X+Ce))),F+=xe-(fe=Math.max(0,Math.min(xe+fe,G.scrollWidth-te+Ne)))}V.push({el:G,top:Ee,left:fe})}return V};function g(a){return a===Object(a)&&Object.keys(a).length!==0}function s(a,f){f===void 0&&(f="auto");var x="scrollBehavior"in document.body.style;a.forEach(function(y){var m=y.el,O=y.top,i=y.left;m.scroll&&x?m.scroll({top:O,left:i,behavior:f}):(m.scrollTop=O,m.scrollLeft=i)})}function d(a){return a===!1?{block:"end",inline:"nearest"}:g(a)?a:{block:"start",inline:"nearest"}}function w(a,f){var x=!a.ownerDocument.documentElement.contains(a);if(g(f)&&typeof f.behavior=="function")return f.behavior(x?[]:S(a,f));if(x)return;var y=d(f);return s(S(a,y),y.behavior)}var p=ie.a=w},Zss7:function(Ye,ie,_){var Y;(function(j){var L=/^\s+/,U=/\s+$/,S=0,g=j.round,s=j.min,d=j.max,w=j.random;function p(ce,Ee){if(ce=ce||"",Ee=Ee||{},ce instanceof p)return ce;if(!(this instanceof p))return new p(ce,Ee);var fe=a(ce);this._originalInput=ce,this._r=fe.r,this._g=fe.g,this._b=fe.b,this._a=fe.a,this._roundA=g(100*this._a)/100,this._format=Ee.format||fe.format,this._gradientType=Ee.gradientType,this._r<1&&(this._r=g(this._r)),this._g<1&&(this._g=g(this._g)),this._b<1&&(this._b=g(this._b)),this._ok=fe.ok,this._tc_id=S++}p.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 ce=this.toRgb();return(ce.r*299+ce.g*587+ce.b*114)/1e3},getLuminance:function(){var ce=this.toRgb(),Ee,fe,Ne,Ce,xe,ze;return Ee=ce.r/255,fe=ce.g/255,Ne=ce.b/255,Ee<=.03928?Ce=Ee/12.92:Ce=j.pow((Ee+.055)/1.055,2.4),fe<=.03928?xe=fe/12.92:xe=j.pow((fe+.055)/1.055,2.4),Ne<=.03928?ze=Ne/12.92:ze=j.pow((Ne+.055)/1.055,2.4),.2126*Ce+.7152*xe+.0722*ze},setAlpha:function(ce){return this._a=V(ce),this._roundA=g(100*this._a)/100,this},toHsv:function(){var ce=m(this._r,this._g,this._b);return{h:ce.h*360,s:ce.s,v:ce.v,a:this._a}},toHsvString:function(){var ce=m(this._r,this._g,this._b),Ee=g(ce.h*360),fe=g(ce.s*100),Ne=g(ce.v*100);return this._a==1?"hsv("+Ee+", "+fe+"%, "+Ne+"%)":"hsva("+Ee+", "+fe+"%, "+Ne+"%, "+this._roundA+")"},toHsl:function(){var ce=x(this._r,this._g,this._b);return{h:ce.h*360,s:ce.s,l:ce.l,a:this._a}},toHslString:function(){var ce=x(this._r,this._g,this._b),Ee=g(ce.h*360),fe=g(ce.s*100),Ne=g(ce.l*100);return this._a==1?"hsl("+Ee+", "+fe+"%, "+Ne+"%)":"hsla("+Ee+", "+fe+"%, "+Ne+"%, "+this._roundA+")"},toHex:function(ce){return i(this._r,this._g,this._b,ce)},toHexString:function(ce){return"#"+this.toHex(ce)},toHex8:function(ce){return r(this._r,this._g,this._b,this._a,ce)},toHex8String:function(ce){return"#"+this.toHex8(ce)},toRgb:function(){return{r:g(this._r),g:g(this._g),b:g(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+g(this._r)+", "+g(this._g)+", "+g(this._b)+")":"rgba("+g(this._r)+", "+g(this._g)+", "+g(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:g(W(this._r,255)*100)+"%",g:g(W(this._g,255)*100)+"%",b:g(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+g(W(this._r,255)*100)+"%, "+g(W(this._g,255)*100)+"%, "+g(W(this._b,255)*100)+"%)":"rgba("+g(W(this._r,255)*100)+"%, "+g(W(this._g,255)*100)+"%, "+g(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[i(this._r,this._g,this._b,!0)]||!1},toFilter:function(ce){var Ee="#"+u(this._r,this._g,this._b,this._a),fe=Ee,Ne=this._gradientType?"GradientType = 1, ":"";if(ce){var Ce=p(ce);fe="#"+u(Ce._r,Ce._g,Ce._b,Ce._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ne+"startColorstr="+Ee+",endColorstr="+fe+")"},toString:function(ce){var Ee=!!ce;ce=ce||this._format;var fe=!1,Ne=this._a<1&&this._a>=0,Ce=!Ee&&Ne&&(ce==="hex"||ce==="hex6"||ce==="hex3"||ce==="hex4"||ce==="hex8"||ce==="name");return Ce?ce==="name"&&this._a===0?this.toName():this.toRgbString():(ce==="rgb"&&(fe=this.toRgbString()),ce==="prgb"&&(fe=this.toPercentageRgbString()),(ce==="hex"||ce==="hex6")&&(fe=this.toHexString()),ce==="hex3"&&(fe=this.toHexString(!0)),ce==="hex4"&&(fe=this.toHex8String(!0)),ce==="hex8"&&(fe=this.toHex8String()),ce==="name"&&(fe=this.toName()),ce==="hsl"&&(fe=this.toHslString()),ce==="hsv"&&(fe=this.toHsvString()),fe||this.toHexString())},clone:function(){return p(this.toString())},_applyModification:function(ce,Ee){var fe=ce.apply(null,[this].concat([].slice.call(Ee)));return this._r=fe._r,this._g=fe._g,this._b=fe._b,this.setAlpha(fe._a),this},lighten:function(){return this._applyModification(t,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(ce,Ee){return ce.apply(null,[this].concat([].slice.call(Ee)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(l,arguments)},tetrad:function(){return this._applyCombination(c,arguments)}},p.fromRatio=function(ce,Ee){if(typeof ce=="object"){var fe={};for(var Ne in ce)ce.hasOwnProperty(Ne)&&(Ne==="a"?fe[Ne]=ce[Ne]:fe[Ne]=be(ce[Ne]));ce=fe}return p(ce,Ee)};function a(ce){var Ee={r:0,g:0,b:0},fe=1,Ne=null,Ce=null,xe=null,ze=!1,Le=!1;return typeof ce=="string"&&(ce=Ge(ce)),typeof ce=="object"&&(nt(ce.r)&&nt(ce.g)&&nt(ce.b)?(Ee=f(ce.r,ce.g,ce.b),ze=!0,Le=String(ce.r).substr(-1)==="%"?"prgb":"rgb"):nt(ce.h)&&nt(ce.s)&&nt(ce.v)?(Ne=be(ce.s),Ce=be(ce.v),Ee=O(ce.h,Ne,Ce),ze=!0,Le="hsv"):nt(ce.h)&&nt(ce.s)&&nt(ce.l)&&(Ne=be(ce.s),xe=be(ce.l),Ee=y(ce.h,Ne,xe),ze=!0,Le="hsl"),ce.hasOwnProperty("a")&&(fe=ce.a)),fe=V(fe),{ok:ze,format:ce.format||Le,r:s(255,d(Ee.r,0)),g:s(255,d(Ee.g,0)),b:s(255,d(Ee.b,0)),a:fe}}function f(ce,Ee,fe){return{r:W(ce,255)*255,g:W(Ee,255)*255,b:W(fe,255)*255}}function x(ce,Ee,fe){ce=W(ce,255),Ee=W(Ee,255),fe=W(fe,255);var Ne=d(ce,Ee,fe),Ce=s(ce,Ee,fe),xe,ze,Le=(Ne+Ce)/2;if(Ne==Ce)xe=ze=0;else{var Fe=Ne-Ce;ze=Le>.5?Fe/(2-Ne-Ce):Fe/(Ne+Ce);switch(Ne){case ce:xe=(Ee-fe)/Fe+(Ee1&&(at-=1),at<1/6?Pe+(Ve-Pe)*6*at:at<1/2?Ve:at<2/3?Pe+(Ve-Pe)*(2/3-at)*6:Pe}if(Ee===0)Ne=Ce=xe=fe;else{var Le=fe<.5?fe*(1+Ee):fe+Ee-fe*Ee,Fe=2*fe-Le;Ne=ze(Fe,Le,ce+1/3),Ce=ze(Fe,Le,ce),xe=ze(Fe,Le,ce-1/3)}return{r:Ne*255,g:Ce*255,b:xe*255}}function m(ce,Ee,fe){ce=W(ce,255),Ee=W(Ee,255),fe=W(fe,255);var Ne=d(ce,Ee,fe),Ce=s(ce,Ee,fe),xe,ze,Le=Ne,Fe=Ne-Ce;if(ze=Ne===0?0:Fe/Ne,Ne==Ce)xe=0;else{switch(Ne){case ce:xe=(Ee-fe)/Fe+(Ee>1)+720)%360;--Ee;)Ne.h=(Ne.h+Ce)%360,xe.push(p(Ne));return xe}function R(ce,Ee){Ee=Ee||6;for(var fe=p(ce).toHsv(),Ne=fe.h,Ce=fe.s,xe=fe.v,ze=[],Le=1/Ee;Ee--;)ze.push(p({h:Ne,s:Ce,v:xe})),xe=(xe+Le)%1;return ze}p.mix=function(ce,Ee,fe){fe=fe===0?0:fe||50;var Ne=p(ce).toRgb(),Ce=p(Ee).toRgb(),xe=fe/100,ze={r:(Ce.r-Ne.r)*xe+Ne.r,g:(Ce.g-Ne.g)*xe+Ne.g,b:(Ce.b-Ne.b)*xe+Ne.b,a:(Ce.a-Ne.a)*xe+Ne.a};return p(ze)},p.readability=function(ce,Ee){var fe=p(ce),Ne=p(Ee);return(j.max(fe.getLuminance(),Ne.getLuminance())+.05)/(j.min(fe.getLuminance(),Ne.getLuminance())+.05)},p.isReadable=function(ce,Ee,fe){var Ne=p.readability(ce,Ee),Ce,xe;xe=!1,Ce=he(fe);switch(Ce.level+Ce.size){case"AAsmall":case"AAAlarge":xe=Ne>=4.5;break;case"AAlarge":xe=Ne>=3;break;case"AAAsmall":xe=Ne>=7;break}return xe},p.mostReadable=function(ce,Ee,fe){var Ne=null,Ce=0,xe,ze,Le,Fe;fe=fe||{},ze=fe.includeFallbackColors,Le=fe.level,Fe=fe.size;for(var Pe=0;PeCe&&(Ce=xe,Ne=p(Ee[Pe]));return p.isReadable(ce,Ne,{level:Le,size:Fe})||!ze?Ne:(fe.includeFallbackColors=!1,p.mostReadable(ce,["#fff","#000"],fe))};var k=p.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"},I=p.hexNames=F(k);function F(ce){var Ee={};for(var fe in ce)ce.hasOwnProperty(fe)&&(Ee[ce[fe]]=fe);return Ee}function V(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function W(ce,Ee){X(ce)&&(ce="100%");var fe=te(ce);return ce=s(Ee,d(0,parseFloat(ce))),fe&&(ce=parseInt(ce*Ee,10)/100),j.abs(ce-Ee)<1e-6?1:ce%Ee/parseFloat(Ee)}function G(ce){return s(1,d(0,ce))}function J(ce){return parseInt(ce,16)}function X(ce){return typeof ce=="string"&&ce.indexOf(".")!=-1&&parseFloat(ce)===1}function te(ce){return typeof ce=="string"&&ce.indexOf("%")!=-1}function ee(ce){return ce.length==1?"0"+ce:""+ce}function be(ce){return ce<=1&&(ce=ce*100+"%"),ce}function ge(ce){return j.round(parseFloat(ce)*255).toString(16)}function je(ce){return J(ce)/255}var He=function(){var ce="[-\\+]?\\d+%?",Ee="[-\\+]?\\d*\\.\\d+%?",fe="(?:"+Ee+")|(?:"+ce+")",Ne="[\\s|\\(]+("+fe+")[,|\\s]+("+fe+")[,|\\s]+("+fe+")\\s*\\)?",Ce="[\\s|\\(]+("+fe+")[,|\\s]+("+fe+")[,|\\s]+("+fe+")[,|\\s]+("+fe+")\\s*\\)?";return{CSS_UNIT:new RegExp(fe),rgb:new RegExp("rgb"+Ne),rgba:new RegExp("rgba"+Ce),hsl:new RegExp("hsl"+Ne),hsla:new RegExp("hsla"+Ce),hsv:new RegExp("hsv"+Ne),hsva:new RegExp("hsva"+Ce),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 nt(ce){return!!He.CSS_UNIT.exec(ce)}function Ge(ce){ce=ce.replace(L,"").replace(U,"").toLowerCase();var Ee=!1;if(k[ce])ce=k[ce],Ee=!0;else if(ce=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var fe;return(fe=He.rgb.exec(ce))?{r:fe[1],g:fe[2],b:fe[3]}:(fe=He.rgba.exec(ce))?{r:fe[1],g:fe[2],b:fe[3],a:fe[4]}:(fe=He.hsl.exec(ce))?{h:fe[1],s:fe[2],l:fe[3]}:(fe=He.hsla.exec(ce))?{h:fe[1],s:fe[2],l:fe[3],a:fe[4]}:(fe=He.hsv.exec(ce))?{h:fe[1],s:fe[2],v:fe[3]}:(fe=He.hsva.exec(ce))?{h:fe[1],s:fe[2],v:fe[3],a:fe[4]}:(fe=He.hex8.exec(ce))?{r:J(fe[1]),g:J(fe[2]),b:J(fe[3]),a:je(fe[4]),format:Ee?"name":"hex8"}:(fe=He.hex6.exec(ce))?{r:J(fe[1]),g:J(fe[2]),b:J(fe[3]),format:Ee?"name":"hex"}:(fe=He.hex4.exec(ce))?{r:J(fe[1]+""+fe[1]),g:J(fe[2]+""+fe[2]),b:J(fe[3]+""+fe[3]),a:je(fe[4]+""+fe[4]),format:Ee?"name":"hex8"}:(fe=He.hex3.exec(ce))?{r:J(fe[1]+""+fe[1]),g:J(fe[2]+""+fe[2]),b:J(fe[3]+""+fe[3]),format:Ee?"name":"hex"}:!1}function he(ce){var Ee,fe;return ce=ce||{level:"AA",size:"small"},Ee=(ce.level||"AA").toUpperCase(),fe=(ce.size||"small").toLowerCase(),Ee!=="AA"&&Ee!=="AAA"&&(Ee="AA"),fe!=="small"&&fe!=="large"&&(fe="small"),{level:Ee,size:fe}}Ye.exports?Ye.exports=p:!(Y=function(){return p}.call(ie,_,ie,Ye),Y!==void 0&&(Ye.exports=Y))})(Math)},aKvl:function(Ye,ie,_){var Y=_("Sj9i"),j=Y.quadraticProjectPoint;function L(U,S,g,s,d,w,p,a,f){if(p===0)return!1;var x=p;if(f>S+x&&f>s+x&&f>w+x||fU+x&&a>g+x&&a>d+x||a1?te-1:0),be=1;be1?W-1:0),J=1;J=0)return parseInt(V.slice(V.indexOf("e-")+2),10);var W=0;return V.indexOf(".")>=0&&(W=V.length-V.indexOf(".")-1),W},R.getInputDisplayValue=function(F){var V=F||R.state,W=V.focused,G=V.inputValue,J=V.value,X;W?X=G:X=R.toPrecisionAsStep(J),X==null&&(X="");var te=R.formatWrapper(X);return t(R.props.decimalSeparator)&&(te=te.toString().replace(".",R.props.decimalSeparator)),te},R.recordCursorPosition=function(){try{R.cursorStart=R.input.selectionStart,R.cursorEnd=R.input.selectionEnd,R.currentValue=R.input.value,R.cursorBefore=R.input.value.substring(0,R.cursorStart),R.cursorAfter=R.input.value.substring(R.cursorEnd)}catch(F){}},R.restoreByAfter=function(F){if(F===void 0)return!1;var V=R.input.value,W=V.lastIndexOf(F);if(W===-1)return!1;var G=R.cursorBefore.length;return R.lastKeyCode===f.a.DELETE&&R.cursorBefore.charAt(G-1)===F[0]?(R.fixCaret(G,G),!0):W+F.length===V.length?(R.fixCaret(W,W),!0):!1},R.partRestoreByAfter=function(F){return F===void 0?!1:Array.prototype.some.call(F,function(V,W){var G=F.substring(W);return R.restoreByAfter(G)})},R.isNotCompleteNumber=function(F){return isNaN(F)||F===""||F===null||F&&F.toString().indexOf(".")===F.toString().length-1},R.stop=function(){R.autoStepTimer&&clearTimeout(R.autoStepTimer)},R.down=function(F,V,W){R.pressingUpOrDown=!0,R.step("down",F,V,W)},R.up=function(F,V,W){R.pressingUpOrDown=!0,R.step("up",F,V,W)},R.saveInput=function(F){R.input=F};var k=P.value;k===void 0&&(k=P.defaultValue),R.state={focused:P.autoFocus};var I=R.getValidValue(R.toNumber(k));return R.state=b(b({},R.state),{},{inputValue:R.toPrecisionAsStep(I),value:I}),R}return Object(U.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(R){var k=this.props,I=k.value,F=k.onChange,V=k.max,W=k.min,G=this.state.focused;if(R){if(!C(R.value,I)||!C(R.max,V)||!C(R.min,W)){var J=G?I:this.getValidValue(I),X;this.pressingUpOrDown?X=J:this.inputting?X=this.rawInput:X=this.toPrecisionAsStep(J),this.setState({value:J,inputValue:X})}var te="value"in this.props?I:this.state.value;"max"in this.props&&R.max!==V&&typeof te=="number"&&te>V&&F&&F(V),"min"in this.props&&R.min!==W&&typeof te=="number"&&te1&&arguments[1]!==void 0?arguments[1]:this.props.min,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,F=parseFloat(R);return isNaN(F)?R:(FI&&(F=I),F)}},{key:"setValue",value:function(R,k){var I=this.props.precision,F=this.isNotCompleteNumber(parseFloat(R))?null:parseFloat(R),V=this.state.value,W=V===void 0?null:V,G=this.state.inputValue,J=G===void 0?null:G,X=typeof F=="number"?F.toFixed(I):"".concat(F),te=F!==W||X!=="".concat(J);return"value"in this.props?(J=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:J},k)):this.setState({value:F,inputValue:this.toPrecisionAsStep(R)},k),te&&this.props.onChange(F),F}},{key:"getMaxPrecision",value:function(R){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.props,F=I.precision,V=I.step;if(t(F))return F;var W=this.getPrecision(k),G=this.getPrecision(V),J=this.getPrecision(R);return R?Math.max(J,W+G):W+G}},{key:"getPrecisionFactor",value:function(R){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.getMaxPrecision(R,k);return Math.pow(10,I)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(R){return this.props.formatter?this.props.formatter(R):R}},{key:"toPrecisionAsStep",value:function(R){if(this.isNotCompleteNumber(R)||R==="")return R;var k=Math.abs(this.getMaxPrecision(R));return isNaN(k)?R.toString():Number(R).toFixed(k)}},{key:"toNumber",value:function(R){var k=this.props.precision,I=this.state.focused,F=R&&R.length>16&&I;return this.isNotCompleteNumber(R)||F?R:t(k)?Math.round(R*Math.pow(10,k))/Math.pow(10,k):Number(R)}},{key:"upStep",value:function(R,k){var I=this.props.step,F=this.getPrecisionFactor(R,k),V=Math.abs(this.getMaxPrecision(R,k)),W=((F*R+F*I*k)/F).toFixed(V);return this.toNumber(W)}},{key:"downStep",value:function(R,k){var I=this.props.step,F=this.getPrecisionFactor(R,k),V=Math.abs(this.getMaxPrecision(R,k)),W=((F*R-F*I*k)/F).toFixed(V);return this.toNumber(W)}},{key:"step",value:function(R,k){var I=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,V=arguments.length>3?arguments[3]:void 0;this.stop(),k&&(k.persist(),k.preventDefault());var W=this.props;if(W.disabled)return;var G=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(G))return;var J=this["".concat(R,"Step")](G,F),X=J>W.max||JW.max?J=W.max:J=ee),wt=(Cn||Cn===0)&&(isNaN(Cn)||Number(Cn)<=be),Qe=Tt||F||V,Je=wt||F||V,Xe=a()("".concat(I,"-handler"),"".concat(I,"-handler-up"),Object(j.a)({},"".concat(I,"-handler-up-disabled"),Qe)),Oe=a()("".concat(I,"-handler"),"".concat(I,"-handler-down"),Object(j.a)({},"".concat(I,"-handler-down-disabled"),Je)),Ae=W?{onTouchStart:Qe?i:this.up,onTouchEnd:this.stop}:{onMouseDown:Qe?i:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ye=W?{onTouchStart:Je?i:this.down,onTouchEnd:this.stop}:{onMouseDown:Je?i:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return w.a.createElement("div",{className:mt,style:ge,title:je,onMouseEnter:He,onMouseLeave:nt,onMouseOver:Ge,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},w.a.createElement("div",{className:"".concat(I,"-handler-wrap")},w.a.createElement("span",Object.assign({unselectable:"on"},Ae,{role:"button","aria-label":"Increase Value","aria-disabled":Qe,className:Xe}),J||w.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-up-inner"),onClick:r})),w.a.createElement("span",Object.assign({unselectable:"on"},ye,{role:"button","aria-label":"Decrease Value","aria-disabled":Je,className:Oe}),X||w.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-down-inner"),onClick:r}))),w.a.createElement("div",{className:"".concat(I,"-input-wrap")},w.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":be,"aria-valuemax":ee,"aria-valuenow":Cn,required:ce,type:Ne,placeholder:Ce,onPaste:At,onClick:Ee,onMouseUp:this.onMouseUp,className:"".concat(I,"-input"),tabIndex:fe,autoComplete:G,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ht?this.onKeyDown:i,onKeyUp:Ht?this.onKeyUp:i,autoFocus:Ve,maxLength:Pe,readOnly:V,disabled:F,max:ee,min:be,step:Fe,name:at,title:je,id:xe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(sn),pattern:Le,inputMode:ze,onInput:Rt},lt))))}}]),M}(w.a.Component);A.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:i,onKeyDown:i,onPressEnter:i,onFocus:i,onBlur:i,parser:u,required:!1,autoComplete:"off"};var v=A,o=ie.a=v},dqUG:function(Ye,ie,_){var Y=_("Gev7"),j=_("bYtY"),L=_("6GrX"),U=_("pzxd"),S=_("gut8"),g=S.ContextCachedBy,s=function(w){Y.call(this,w)};s.prototype={constructor:s,type:"text",brush:function(w,p){var a=this.style;this.__dirty&&U.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var f=a.text;if(f!=null&&(f+=""),!U.needDrawText(f,a)){w.__attrCachedBy=g.NONE;return}this.setTransform(w),U.renderText(this,w,f,a,null,p),this.restoreTransform(w)},getBoundingRect:function(){var w=this.style;if(this.__dirty&&U.normalizeTextStyle(w,!0),!this._rect){var p=w.text;p!=null?p+="":p="";var a=L.getBoundingRect(w.text+"",w.font,w.textAlign,w.textVerticalAlign,w.textPadding,w.textLineHeight,w.rich);if(a.x+=w.x||0,a.y+=w.y||0,U.getStroke(w.textStroke,w.textStrokeWidth)){var f=w.textStrokeWidth;a.x-=f/2,a.y-=f/2,a.width+=f,a.height+=f}this._rect=a}return this._rect}},j.inherits(s,Y);var d=s;Ye.exports=d},fW2E:function(Ye,ie){var _={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Y(j,L,U){return _.hasOwnProperty(L)?U*=j.dpr:U}Ye.exports=Y},fjLI:function(Ye,ie,_){"use strict";_.d(ie,"e",function(){return p}),_.d(ie,"a",function(){return a}),_.d(ie,"c",function(){return f}),_.d(ie,"d",function(){return b}),_.d(ie,"b",function(){return m});var Y=_("8HAY"),j=_("Cg/j"),L=_("T8No"),U=_("nnTU"),S=_("MI8n"),g=function(){var O=function(i,r){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var y in h)h.hasOwnProperty(y)&&(u[y]=h[y])},O(i,r)};return function(i,r){O(i,r);function u(){this.constructor=i}i.prototype=r===null?Object.create(r):(u.prototype=r.prototype,new u)}}(),s=function(O,i,r,u){var h=arguments.length,y=h<3?i:u===null?u=Object.getOwnPropertyDescriptor(i,r):u,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(O,i,r,u);else for(var t=O.length-1;t>=0;t--)(E=O[t])&&(y=(h<3?E(y):h>3?E(i,r,y):E(i,r))||y);return h>3&&y&&Object.defineProperty(i,r,y),y},d=function(O,i){return function(r,u){i(r,u,O)}},w=function(){for(var O=0,i=0,r=arguments.length;i=0&&(h.splice(y,1),u._onDidChangeMenu.fire(i))}}},O.prototype.getMenuItems=function(i){var r=(this._menuItems.get(i)||[]).slice(0);return i===0&&this._appendImplicitItems(r),r},O.prototype._appendImplicitItems=function(i){for(var r=new Set,u=i.filter(function(A){return p(A)}),h=0,y=u;hI.length)&&(F=I.length);for(var V=0,W=new Array(F);V=0)continue;if(!Object.prototype.propertyIsEnumerable.call(I,W))continue;V[W]=I[W]}}return V}function m(I,F){if(I==null)return{};var V={},W=Object.keys(I),G,J;for(J=0;J=0)continue;V[G]=I[G]}return V}var O=function(F){var V=F.className,W=F.percent,G=F.prefixCls,J=F.strokeColor,X=F.strokeLinecap,te=F.strokeWidth,ee=F.style,be=F.trailColor,ge=F.trailWidth,je=F.transition,He=b(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete He.gapPosition;var nt=Array.isArray(W)?W:[W],Ge=Array.isArray(J)?J:[J],he=g(nt),ce=d(he,1),Ee=ce[0],fe=te/2,Ne=100-te/2,Ce="M ".concat(X==="round"?fe:0,",").concat(fe,` - L `).concat(X==="round"?Ne:100,",").concat(fe),xe="0 0 100 ".concat(te),ze=0;return j.a.createElement("svg",s({className:U()("".concat(G,"-line"),V),viewBox:xe,preserveAspectRatio:"none",style:ee},He),j.a.createElement("path",{className:"".concat(G,"-line-trail"),d:Ce,strokeLinecap:X,stroke:be,strokeWidth:ge||te,fillOpacity:"0"}),nt.map(function(Le,Fe){var Pe={strokeDasharray:"".concat(Le,"px, 100px"),strokeDashoffset:"-".concat(ze,"px"),transition:je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ve=Ge[Fe]||Ge[Ge.length-1];return ze+=Le,j.a.createElement("path",{key:Fe,className:"".concat(G,"-line-path"),d:Ce,strokeLinecap:X,stroke:Ve,strokeWidth:te,fillOpacity:"0",ref:Ee[Fe],style:Pe})}))};O.defaultProps=S;var i=O;function r(){return r=Object.assign||function(I){for(var F=1;FI.length)&&(F=I.length);for(var V=0,W=new Array(F);V=0)continue;if(!Object.prototype.propertyIsEnumerable.call(I,W))continue;V[W]=I[W]}}return V}function v(I,F){if(I==null)return{};var V={},W=Object.keys(I),G,J;for(J=0;J=0)continue;V[G]=I[G]}return V}var o=0;function l(I){return+I.replace("%","")}function c(I){return Array.isArray(I)?I:[I]}function M(I,F,V,W){var G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,J=arguments.length>5?arguments[5]:void 0,X=50-W/2,te=0,ee=-X,be=0,ge=-2*X;switch(J){case"left":te=-X,ee=0,be=2*X,ge=0;break;case"right":te=X,ee=0,be=-2*X,ge=0;break;case"bottom":ee=X,ge=2*X;break;default:}var je="M 50,50 m ".concat(te,",").concat(ee,` +*/var w=!j.canvasSupported,p={canvas:g},a={},f="4.3.1";function x(u,h){var b=new r(Y(),u,h);return a[b.id]=b,b}function y(u){if(u)u.dispose();else{for(var h in a)a.hasOwnProperty(h)&&a[h].dispose();a={}}return this}function m(u){return a[u]}function O(u,h){p[u]=h}function i(u){delete a[u]}var r=function(u,h,b){b=b||{},this.dom=h,this.id=u;var E=this,t=new S,C=b.renderer;if(w){if(!p.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");C="vml"}else(!C||!p[C])&&(C="canvas");var A=new p[C](h,t,b,u);this.storage=t,this.painter=A;var v=!j.node&&!j.worker?new d(A.getViewportRoot(),A.root):null;this.handler=new U(t,A,v,A.root),this.animation=new s({stage:{update:L.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var o=t.delFromStorage,l=t.addToStorage;t.delFromStorage=function(c){o.call(t,c),c&&c.removeSelfFromZr(E)},t.addToStorage=function(c){l.call(t,c),c.addSelfToZr(E)}};r.prototype={constructor:r,getId:function(){return this.id},add:function(u){this.storage.addRoot(u),this._needsRefresh=!0},remove:function(u){this.storage.delRoot(u),this._needsRefresh=!0},configLayer:function(u,h){this.painter.configLayer&&this.painter.configLayer(u,h),this._needsRefresh=!0},setBackgroundColor:function(u){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(u),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var u;this._needsRefresh&&(u=!0,this.refreshImmediately()),this._needsRefreshHover&&(u=!0,this.refreshHoverImmediately()),u&&this.trigger("rendered")},addHover:function(u,h){if(this.painter.addHover){var b=this.painter.addHover(u,h);return this.refreshHover(),b}},removeHover:function(u){this.painter.removeHover&&(this.painter.removeHover(u),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(u){u=u||{},this.painter.resize(u.width,u.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(u,h){return this.painter.pathToImage(u,h)},setCursorStyle:function(u){this.handler.setCursorStyle(u)},findHover:function(u,h){return this.handler.findHover(u,h)},on:function(u,h,b){this.handler.on(u,h,b)},off:function(u,h){this.handler.off(u,h)},trigger:function(u,h){this.handler.trigger(u,h)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,i(this.id)}},ie.version=f,ie.init=x,ie.dispose=y,ie.getInstance=m,ie.registerPainter=O},b6Jr:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___cC3Lp",flex_space_between:"flex_space_between___2W9GQ",flex_box_vertical_center:"flex_box_vertical_center___2L7-n",flex_box_center_end:"flex_box_center_end___2GJdf",flex_box_column:"flex_box_column___3xK7a",subjectTable:"subjectTable___3Mhzq",title:"title___1p9nz",customTable:"customTable___38s3v",row:"row___2AxLA",line:"line___2V4Vj"}},bT9E:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return j});var Y=_("VTBJ");function j(L,U){var S=Object(Y.a)({},L);return Array.isArray(U)&&U.forEach(function(g){delete S[g]}),S}},bYtY:function(Ye,ie){var _={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Y={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},j=Object.prototype.toString,L=Array.prototype,U=L.forEach,S=L.filter,g=L.slice,s=L.map,d=L.reduce,w={};function p(fe,Ne){fe==="createCanvas"&&(i=null),w[fe]=Ne}function a(fe){if(fe==null||typeof fe!="object")return fe;var Ne=fe,Ce=j.call(fe);if(Ce==="[object Array]"){if(!nt(fe)){Ne=[];for(var xe=0,ze=fe.length;xe1?te-1:0),be=1;be1?W-1:0),J=1;J=0)return parseInt(V.slice(V.indexOf("e-")+2),10);var W=0;return V.indexOf(".")>=0&&(W=V.length-V.indexOf(".")-1),W},R.getInputDisplayValue=function(F){var V=F||R.state,W=V.focused,G=V.inputValue,J=V.value,X;W?X=G:X=R.toPrecisionAsStep(J),X==null&&(X="");var te=R.formatWrapper(X);return t(R.props.decimalSeparator)&&(te=te.toString().replace(".",R.props.decimalSeparator)),te},R.recordCursorPosition=function(){try{R.cursorStart=R.input.selectionStart,R.cursorEnd=R.input.selectionEnd,R.currentValue=R.input.value,R.cursorBefore=R.input.value.substring(0,R.cursorStart),R.cursorAfter=R.input.value.substring(R.cursorEnd)}catch(F){}},R.restoreByAfter=function(F){if(F===void 0)return!1;var V=R.input.value,W=V.lastIndexOf(F);if(W===-1)return!1;var G=R.cursorBefore.length;return R.lastKeyCode===f.a.DELETE&&R.cursorBefore.charAt(G-1)===F[0]?(R.fixCaret(G,G),!0):W+F.length===V.length?(R.fixCaret(W,W),!0):!1},R.partRestoreByAfter=function(F){return F===void 0?!1:Array.prototype.some.call(F,function(V,W){var G=F.substring(W);return R.restoreByAfter(G)})},R.isNotCompleteNumber=function(F){return isNaN(F)||F===""||F===null||F&&F.toString().indexOf(".")===F.toString().length-1},R.stop=function(){R.autoStepTimer&&clearTimeout(R.autoStepTimer)},R.down=function(F,V,W){R.pressingUpOrDown=!0,R.step("down",F,V,W)},R.up=function(F,V,W){R.pressingUpOrDown=!0,R.step("up",F,V,W)},R.saveInput=function(F){R.input=F};var k=P.value;k===void 0&&(k=P.defaultValue),R.state={focused:P.autoFocus};var I=R.getValidValue(R.toNumber(k));return R.state=y(y({},R.state),{},{inputValue:R.toPrecisionAsStep(I),value:I}),R}return Object(U.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(R){var k=this.props,I=k.value,F=k.onChange,V=k.max,W=k.min,G=this.state.focused;if(R){if(!C(R.value,I)||!C(R.max,V)||!C(R.min,W)){var J=G?I:this.getValidValue(I),X;this.pressingUpOrDown?X=J:this.inputting?X=this.rawInput:X=this.toPrecisionAsStep(J),this.setState({value:J,inputValue:X})}var te="value"in this.props?I:this.state.value;"max"in this.props&&R.max!==V&&typeof te=="number"&&te>V&&F&&F(V),"min"in this.props&&R.min!==W&&typeof te=="number"&&te1&&arguments[1]!==void 0?arguments[1]:this.props.min,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,F=parseFloat(R);return isNaN(F)?R:(FI&&(F=I),F)}},{key:"setValue",value:function(R,k){var I=this.props.precision,F=this.isNotCompleteNumber(parseFloat(R))?null:parseFloat(R),V=this.state.value,W=V===void 0?null:V,G=this.state.inputValue,J=G===void 0?null:G,X=typeof F=="number"?F.toFixed(I):"".concat(F),te=F!==W||X!=="".concat(J);return"value"in this.props?(J=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:J},k)):this.setState({value:F,inputValue:this.toPrecisionAsStep(R)},k),te&&this.props.onChange(F),F}},{key:"getMaxPrecision",value:function(R){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.props,F=I.precision,V=I.step;if(t(F))return F;var W=this.getPrecision(k),G=this.getPrecision(V),J=this.getPrecision(R);return R?Math.max(J,W+G):W+G}},{key:"getPrecisionFactor",value:function(R){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.getMaxPrecision(R,k);return Math.pow(10,I)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(R){return this.props.formatter?this.props.formatter(R):R}},{key:"toPrecisionAsStep",value:function(R){if(this.isNotCompleteNumber(R)||R==="")return R;var k=Math.abs(this.getMaxPrecision(R));return isNaN(k)?R.toString():Number(R).toFixed(k)}},{key:"toNumber",value:function(R){var k=this.props.precision,I=this.state.focused,F=R&&R.length>16&&I;return this.isNotCompleteNumber(R)||F?R:t(k)?Math.round(R*Math.pow(10,k))/Math.pow(10,k):Number(R)}},{key:"upStep",value:function(R,k){var I=this.props.step,F=this.getPrecisionFactor(R,k),V=Math.abs(this.getMaxPrecision(R,k)),W=((F*R+F*I*k)/F).toFixed(V);return this.toNumber(W)}},{key:"downStep",value:function(R,k){var I=this.props.step,F=this.getPrecisionFactor(R,k),V=Math.abs(this.getMaxPrecision(R,k)),W=((F*R-F*I*k)/F).toFixed(V);return this.toNumber(W)}},{key:"step",value:function(R,k){var I=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,V=arguments.length>3?arguments[3]:void 0;this.stop(),k&&(k.persist(),k.preventDefault());var W=this.props;if(W.disabled)return;var G=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(G))return;var J=this["".concat(R,"Step")](G,F),X=J>W.max||JW.max?J=W.max:J=ee),wt=(Cn||Cn===0)&&(isNaN(Cn)||Number(Cn)<=be),Qe=Tt||F||V,Je=wt||F||V,Xe=a()("".concat(I,"-handler"),"".concat(I,"-handler-up"),Object(j.a)({},"".concat(I,"-handler-up-disabled"),Qe)),Oe=a()("".concat(I,"-handler"),"".concat(I,"-handler-down"),Object(j.a)({},"".concat(I,"-handler-down-disabled"),Je)),Ae=W?{onTouchStart:Qe?i:this.up,onTouchEnd:this.stop}:{onMouseDown:Qe?i:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ye=W?{onTouchStart:Je?i:this.down,onTouchEnd:this.stop}:{onMouseDown:Je?i:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return w.a.createElement("div",{className:mt,style:ge,title:je,onMouseEnter:He,onMouseLeave:nt,onMouseOver:Ge,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},w.a.createElement("div",{className:"".concat(I,"-handler-wrap")},w.a.createElement("span",Object.assign({unselectable:"on"},Ae,{role:"button","aria-label":"Increase Value","aria-disabled":Qe,className:Xe}),J||w.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-up-inner"),onClick:r})),w.a.createElement("span",Object.assign({unselectable:"on"},ye,{role:"button","aria-label":"Decrease Value","aria-disabled":Je,className:Oe}),X||w.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-down-inner"),onClick:r}))),w.a.createElement("div",{className:"".concat(I,"-input-wrap")},w.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":be,"aria-valuemax":ee,"aria-valuenow":Cn,required:ce,type:Ne,placeholder:Ce,onPaste:At,onClick:Ee,onMouseUp:this.onMouseUp,className:"".concat(I,"-input"),tabIndex:fe,autoComplete:G,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ht?this.onKeyDown:i,onKeyUp:Ht?this.onKeyUp:i,autoFocus:Ve,maxLength:Pe,readOnly:V,disabled:F,max:ee,min:be,step:Fe,name:at,title:je,id:xe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(sn),pattern:Le,inputMode:ze,onInput:Rt},lt))))}}]),M}(w.a.Component);A.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:i,onKeyDown:i,onPressEnter:i,onFocus:i,onBlur:i,parser:u,required:!1,autoComplete:"off"};var v=A,o=ie.a=v},dqUG:function(Ye,ie,_){var Y=_("Gev7"),j=_("bYtY"),L=_("6GrX"),U=_("pzxd"),S=_("gut8"),g=S.ContextCachedBy,s=function(w){Y.call(this,w)};s.prototype={constructor:s,type:"text",brush:function(w,p){var a=this.style;this.__dirty&&U.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var f=a.text;if(f!=null&&(f+=""),!U.needDrawText(f,a)){w.__attrCachedBy=g.NONE;return}this.setTransform(w),U.renderText(this,w,f,a,null,p),this.restoreTransform(w)},getBoundingRect:function(){var w=this.style;if(this.__dirty&&U.normalizeTextStyle(w,!0),!this._rect){var p=w.text;p!=null?p+="":p="";var a=L.getBoundingRect(w.text+"",w.font,w.textAlign,w.textVerticalAlign,w.textPadding,w.textLineHeight,w.rich);if(a.x+=w.x||0,a.y+=w.y||0,U.getStroke(w.textStroke,w.textStrokeWidth)){var f=w.textStrokeWidth;a.x-=f/2,a.y-=f/2,a.width+=f,a.height+=f}this._rect=a}return this._rect}},j.inherits(s,Y);var d=s;Ye.exports=d},fW2E:function(Ye,ie){var _={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Y(j,L,U){return _.hasOwnProperty(L)?U*=j.dpr:U}Ye.exports=Y},fjLI:function(Ye,ie,_){"use strict";_.d(ie,"e",function(){return p}),_.d(ie,"a",function(){return a}),_.d(ie,"c",function(){return f}),_.d(ie,"d",function(){return y}),_.d(ie,"b",function(){return m});var Y=_("8HAY"),j=_("Cg/j"),L=_("T8No"),U=_("nnTU"),S=_("MI8n"),g=function(){var O=function(i,r){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var b in h)h.hasOwnProperty(b)&&(u[b]=h[b])},O(i,r)};return function(i,r){O(i,r);function u(){this.constructor=i}i.prototype=r===null?Object.create(r):(u.prototype=r.prototype,new u)}}(),s=function(O,i,r,u){var h=arguments.length,b=h<3?i:u===null?u=Object.getOwnPropertyDescriptor(i,r):u,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(O,i,r,u);else for(var t=O.length-1;t>=0;t--)(E=O[t])&&(b=(h<3?E(b):h>3?E(i,r,b):E(i,r))||b);return h>3&&b&&Object.defineProperty(i,r,b),b},d=function(O,i){return function(r,u){i(r,u,O)}},w=function(){for(var O=0,i=0,r=arguments.length;i=0&&(h.splice(b,1),u._onDidChangeMenu.fire(i))}}},O.prototype.getMenuItems=function(i){var r=(this._menuItems.get(i)||[]).slice(0);return i===0&&this._appendImplicitItems(r),r},O.prototype._appendImplicitItems=function(i){for(var r=new Set,u=i.filter(function(A){return p(A)}),h=0,b=u;hI.length)&&(F=I.length);for(var V=0,W=new Array(F);V=0)continue;if(!Object.prototype.propertyIsEnumerable.call(I,W))continue;V[W]=I[W]}}return V}function m(I,F){if(I==null)return{};var V={},W=Object.keys(I),G,J;for(J=0;J=0)continue;V[G]=I[G]}return V}var O=function(F){var V=F.className,W=F.percent,G=F.prefixCls,J=F.strokeColor,X=F.strokeLinecap,te=F.strokeWidth,ee=F.style,be=F.trailColor,ge=F.trailWidth,je=F.transition,He=y(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete He.gapPosition;var nt=Array.isArray(W)?W:[W],Ge=Array.isArray(J)?J:[J],he=g(nt),ce=d(he,1),Ee=ce[0],fe=te/2,Ne=100-te/2,Ce="M ".concat(X==="round"?fe:0,",").concat(fe,` + L `).concat(X==="round"?Ne:100,",").concat(fe),xe="0 0 100 ".concat(te),ze=0;return j.a.createElement("svg",s({className:U()("".concat(G,"-line"),V),viewBox:xe,preserveAspectRatio:"none",style:ee},He),j.a.createElement("path",{className:"".concat(G,"-line-trail"),d:Ce,strokeLinecap:X,stroke:be,strokeWidth:ge||te,fillOpacity:"0"}),nt.map(function(Le,Fe){var Pe={strokeDasharray:"".concat(Le,"px, 100px"),strokeDashoffset:"-".concat(ze,"px"),transition:je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ve=Ge[Fe]||Ge[Ge.length-1];return ze+=Le,j.a.createElement("path",{key:Fe,className:"".concat(G,"-line-path"),d:Ce,strokeLinecap:X,stroke:Ve,strokeWidth:te,fillOpacity:"0",ref:Ee[Fe],style:Pe})}))};O.defaultProps=S;var i=O;function r(){return r=Object.assign||function(I){for(var F=1;FI.length)&&(F=I.length);for(var V=0,W=new Array(F);V=0)continue;if(!Object.prototype.propertyIsEnumerable.call(I,W))continue;V[W]=I[W]}}return V}function v(I,F){if(I==null)return{};var V={},W=Object.keys(I),G,J;for(J=0;J=0)continue;V[G]=I[G]}return V}var o=0;function l(I){return+I.replace("%","")}function c(I){return Array.isArray(I)?I:[I]}function M(I,F,V,W){var G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,J=arguments.length>5?arguments[5]:void 0,X=50-W/2,te=0,ee=-X,be=0,ge=-2*X;switch(J){case"left":te=-X,ee=0,be=2*X,ge=0;break;case"right":te=X,ee=0,be=-2*X,ge=0;break;case"bottom":ee=X,ge=2*X;break;default:}var je="M 50,50 m ".concat(te,",").concat(ee,` a `).concat(X,",").concat(X," 0 1 1 ").concat(be,",").concat(-ge,` - a `).concat(X,",").concat(X," 0 1 1 ").concat(-be,",").concat(ge),He=Math.PI*2*X,nt={stroke:V,strokeDasharray:"".concat(F/100*(He-G),"px ").concat(He,"px"),strokeDashoffset:"-".concat(G/2+I/100*(He-G),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:je,pathStyle:nt}}var P=function(F){var V=F.prefixCls,W=F.strokeWidth,G=F.trailWidth,J=F.gapDegree,X=F.gapPosition,te=F.trailColor,ee=F.strokeLinecap,be=F.style,ge=F.className,je=F.strokeColor,He=F.percent,nt=A(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ge=Object(Y.useMemo)(function(){return o+=1,o},[]),he=M(0,100,te,W,J,X),ce=he.pathString,Ee=he.pathStyle,fe=c(He),Ne=c(je),Ce=Ne.find(function(Pe){return Object.prototype.toString.call(Pe)==="[object Object]"}),xe=g(fe),ze=u(xe,1),Le=ze[0],Fe=function(){var Ve=0;return fe.map(function(at,At){var Rt=Ne[At]||Ne[Ne.length-1],tn=Object.prototype.toString.call(Rt)==="[object Object]"?"url(#".concat(V,"-gradient-").concat(Ge,")"):"",Qt=M(Ve,at,Rt,W,J,X);return Ve+=at,j.a.createElement("path",{key:At,className:"".concat(V,"-circle-path"),d:Qt.pathString,stroke:tn,strokeLinecap:ee,strokeWidth:W,opacity:at===0?0:1,fillOpacity:"0",style:Qt.pathStyle,ref:Le[At]})})};return j.a.createElement("svg",r({className:U()("".concat(V,"-circle"),ge),viewBox:"0 0 100 100",style:be},nt),Ce&&j.a.createElement("defs",null,j.a.createElement("linearGradient",{id:"".concat(V,"-gradient-").concat(Ge),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Ce).sort(function(Pe,Ve){return l(Pe)-l(Ve)}).map(function(Pe,Ve){return j.a.createElement("stop",{key:Ve,offset:Pe,stopColor:Ce[Pe]})}))),j.a.createElement("path",{className:"".concat(V,"-circle-trail"),d:ce,stroke:te,strokeLinecap:ee,strokeWidth:G||W,fillOpacity:"0",style:Ee}),Fe().reverse())};P.defaultProps=S;var R=P,k={Line:i,Circle:R}},h7HQ:function(Ye,ie,_){var Y=_("y+Vt"),j=_("T6xi"),L=Y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(U,S){j.buildPath(U,S,!0)}});Ye.exports=L},hOwI:function(Ye,ie){var _=Math.log(2);function Y(L,U,S,g,s,d){var w=g+"-"+s,p=L.length;if(d.hasOwnProperty(w))return d[w];if(U===1){var a=Math.round(Math.log((1<j&&g>U||gS?s:0}Ye.exports=_},i58Z:function(Ye,ie,_){Ye.exports={wrap:"wrap___Yg2Z9",addKnowledge:"addKnowledge___2FlI0",disabled:"disabled___1_wxN"}},iXp4:function(Ye,ie,_){var Y=_("ItGF"),j=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function L(U){return Y.browser.ie&&Y.browser.version>=11?function(){var S=this.__clipPaths,g=this.style,s;if(S)for(var d=0;d0&&f.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},f.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},J.map(function(he,ce){return f.a.createElement(j.a,{justify:"space-between",style:{marginTop:"10px"},key:he.course_group_id},f.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},he.name),f.a.createElement("img",{src:O.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){A(F.filter(function(fe){return"".concat(fe.course_group_name)!="".concat(he.course_group_name)}))}}))})))))};ie.a=r},juDX:function(Ye,ie,_){_("P47w");var Y=_("aX58"),j=Y.registerPainter,L=_("3CBa");j("svg",L)},k3GJ:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return mr});var Y=_("rePB"),j=_("ODXe"),L=_("Ff2n"),U=_("VTBJ"),S=_("q1tI"),g=_("TSYQ"),s=_.n(g),d=_("Zm9Q"),w=_("6cGi"),p=_("KQm4"),a=_("xEkU"),f=_.n(a),x=_("t23M");function b($e){var pt=Object(S.useRef)(),vt=Object(S.useRef)(!1);function Me(){for(var we=arguments.length,Ke=new Array(we),De=0;Dezt&&(yn=zt-on),Object(S.useMemo)(function(){if(!Ke.length)return[0,0];for(var zn=Ke.length,gr=zn,Xr=0;Xrgt+yn){gr=Xr-1;break}}for(var aa=0,hn=zn-1;hn>=0;hn-=1){var Lr=$e.get(Ke[hn].key)||y;if(Lr[Bt]1&&arguments[1]!==void 0?arguments[1]:!1,Me=pt&&typeof pt.getBoundingClientRect=="function"&&pt.getBoundingClientRect().width;if(Me){if(vt){var we=getComputedStyle(pt),Ke=we.marginLeft,De=we.marginRight;Me+=+Ke.replace("px","")+ +De.replace("px","")}Me=+Me.toFixed(6)}return Me||0},Ve=function(pt,vt,Me){pt&&Object(I.a)(pt.style)==="object"&&(pt.style[vt]=Me)},at=function(){return fe.any},At=_("bdgK"),Rt=_("i8i4"),tn=_.n(Rt),Qt=_("wgJM"),Cn=_("l4aY"),Un=_("m+aA"),mt=_("c+Xe"),lt=_("zT1h"),Ht=_("QC+M");function sn($e,pt,vt){return vt?$e[0]===pt[0]:$e[0]===pt[0]&&$e[1]===pt[1]}function Tt($e,pt,vt){var Me=$e[pt]||{};return Object(U.a)(Object(U.a)({},Me),vt)}function wt($e,pt,vt,Me){for(var we=vt.points,Ke=Object.keys($e),De=0;De1&&arguments[1]!==void 0?arguments[1]:2;pt();var Ke=Object(Qt.a)(function(){we<=1?Me({isCanceled:function(){return Ke!==$e.current}}):vt(Me,we-1)});$e.current=Ke}return S.useEffect(function(){return function(){pt()}},[]),[vt,pt]},Te=[Pt,$t,Zt,bt],ve=!1,Q=!0;function $($e){return $e===Zt||$e===bt}var re=function($e,pt){var vt=S.useState(Xt),Me=Object(j.a)(vt,2),we=Me[0],Ke=Me[1],De=bn(),st=Object(j.a)(De,2),ct=st[0],Bt=st[1];function gt(){Ke(Pt)}return jt(function(){if(we!==Xt&&we!==bt){var zt=Te.indexOf(we),Ft=Te[zt+1],on=pt(we);on===ve?Ke(Ft):ct(function(yn){function zn(){if(yn.isCanceled())return;Ke(Ft)}on===!0?zn():Promise.resolve(on).then(zn)})}},[$e,we]),S.useEffect(function(){return function(){Bt()}},[]),[gt,we]},de=function($e){var pt=Object(S.useRef)(),vt=Object(S.useRef)($e);vt.current=$e;var Me=S.useCallback(function(De){vt.current(De)},[]);function we(De){De&&(De.removeEventListener(mn,Me),De.removeEventListener(yt,Me))}function Ke(De){pt.current&&pt.current!==De&&we(pt.current),De&&De!==pt.current&&(De.addEventListener(mn,Me),De.addEventListener(yt,Me),pt.current=De)}return S.useEffect(function(){return function(){we(pt.current)}},[]),[Ke,we]};function Ue($e,pt,vt,Me){var we=Me.motionEnter,Ke=we===void 0?!0:we,De=Me.motionAppear,st=De===void 0?!0:De,ct=Me.motionLeave,Bt=ct===void 0?!0:ct,gt=Me.motionDeadline,zt=Me.motionLeaveImmediately,Ft=Me.onAppearPrepare,on=Me.onEnterPrepare,yn=Me.onLeavePrepare,zn=Me.onAppearStart,gr=Me.onEnterStart,Xr=Me.onLeaveStart,Jr=Me.onAppearActive,aa=Me.onEnterActive,hn=Me.onLeaveActive,Lr=Me.onAppearEnd,oa=Me.onEnterEnd,ba=Me.onLeaveEnd,_t=Me.onVisibleChanged,Wr=ft(),un=Object(j.a)(Wr,2),Rn=un[0],xr=un[1],Ca=ft(Gt),Nr=Object(j.a)(Ca,2),Sr=Nr[0],xa=Nr[1],Vr=ft(null),nr=Object(j.a)(Vr,2),Fr=nr[0],Wn=nr[1],pn=Object(S.useRef)(!1),Rr=Object(S.useRef)(null),qn=Object(S.useRef)(!1),Ar=Object(S.useRef)(null);function Da(){var $a=vt();return $a||Ar.current}var Ia=Object(S.useRef)(!1);function La($a){var Ga=Da();if($a&&!$a.deadline&&$a.target!==Ga)return;var ui;Sr===Lt&&Ia.current?ui=Lr==null?void 0:Lr(Ga,$a):Sr===Be&&Ia.current?ui=oa==null?void 0:oa(Ga,$a):Sr===ot&&Ia.current&&(ui=ba==null?void 0:ba(Ga,$a)),ui!==!1&&!qn.current&&(xa(Gt),Wn(null))}var Br=de(La),$r=Object(j.a)(Br,1),ka=$r[0],Na=S.useMemo(function(){var $a,Ga,ui;switch(Sr){case"appear":return $a={},Object(Y.a)($a,Pt,Ft),Object(Y.a)($a,$t,zn),Object(Y.a)($a,Zt,Jr),$a;case"enter":return Ga={},Object(Y.a)(Ga,Pt,on),Object(Y.a)(Ga,$t,gr),Object(Y.a)(Ga,Zt,aa),Ga;case"leave":return ui={},Object(Y.a)(ui,Pt,yn),Object(Y.a)(ui,$t,Xr),Object(Y.a)(ui,Zt,hn),ui;default:return{}}},[Sr]),qa=re(Sr,function($a){if($a===Pt){var Ga=Na[Pt];return Ga?Ga(Da()):ve}if(Ka in Na){var ui;Wn(((ui=Na[Ka])===null||ui===void 0?void 0:ui.call(Na,Da(),null))||null)}return Ka===Zt&&(ka(Da()),gt>0&&(clearTimeout(Rr.current),Rr.current=setTimeout(function(){La({deadline:!0})},gt))),Q}),ii=Object(j.a)(qa,2),ri=ii[0],Ka=ii[1],Ai=$(Ka);Ia.current=Ai,jt(function(){xr(pt);var $a=pn.current;if(pn.current=!0,!$e)return;var Ga;!$a&&pt&&st&&(Ga=Lt),$a&&pt&&Ke&&(Ga=Be),($a&&!pt&&Bt||!$a&&zt&&!pt&&Bt)&&(Ga=ot),Ga&&(xa(Ga),ri())},[pt]),Object(S.useEffect)(function(){(Sr===Lt&&!st||Sr===Be&&!Ke||Sr===ot&&!Bt)&&xa(Gt)},[st,Ke,Bt]),Object(S.useEffect)(function(){return function(){clearTimeout(Rr.current),qn.current=!0}},[]),Object(S.useEffect)(function(){Rn!==void 0&&Sr===Gt&&(_t==null||_t(Rn))},[Rn,Sr]);var Ri=Fr;return Na[Pt]&&Ka===$t&&(Ri=Object(U.a)({transition:"none"},Ri)),[Sr,Ka,Ri,Rn!=null?Rn:pt]}var it=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){return Object(C.a)(this,vt),pt.apply(this,arguments)}return Object(A.a)(vt,[{key:"render",value:function(){return this.props.children}}]),vt}(S.Component),Mt=it;function Ln($e){var pt=$e;Object(I.a)($e)==="object"&&(pt=$e.transitionSupport);function vt(we){return!!(we.motionName&&pt)}var Me=S.forwardRef(function(we,Ke){var De=we.visible,st=De===void 0?!0:De,ct=we.removeOnLeave,Bt=ct===void 0?!0:ct,gt=we.forceRender,zt=we.children,Ft=we.motionName,on=we.leavedClassName,yn=we.eventProps,zn=vt(we),gr=Object(S.useRef)(),Xr=Object(S.useRef)();function Jr(){try{return Object(Un.a)(gr.current||Xr.current)}catch(xa){return null}}var aa=Ue(zn,st,Jr,we),hn=Object(j.a)(aa,4),Lr=hn[0],oa=hn[1],ba=hn[2],_t=hn[3],Wr=S.useRef(_t);_t&&(Wr.current=!0);var un=Object(S.useRef)(Ke);un.current=Ke;var Rn=S.useCallback(function(xa){gr.current=xa,Object(mt.b)(un.current,xa)},[]),xr,Ca=Object(U.a)(Object(U.a)({},yn),{},{visible:st});if(!zt)xr=null;else if(Lr===Gt||!vt(we))_t?xr=zt(Object(U.a)({},Ca),Rn):!Bt&&Wr.current?xr=zt(Object(U.a)(Object(U.a)({},Ca),{},{className:on}),Rn):gt?xr=zt(Object(U.a)(Object(U.a)({},Ca),{},{style:{display:"none"}}),Rn):xr=null;else{var Nr,Sr;oa===Pt?Sr="prepare":$(oa)?Sr="active":oa===$t&&(Sr="start"),xr=zt(Object(U.a)(Object(U.a)({},Ca),{},{className:s()(pe(Ft,Lr),(Nr={},Object(Y.a)(Nr,pe(Ft,"".concat(Lr,"-").concat(Sr)),Sr),Object(Y.a)(Nr,Ft,typeof Ft=="string"),Nr)),style:ba}),Rn)}return S.createElement(Mt,{ref:Xr},xr)});return Me.displayName="CSSMotion",Me}var kn=Ln(Dt),St="add",an="keep",Pn="remove",dn="removed";function jn($e){var pt;return $e&&Object(I.a)($e)==="object"&&"key"in $e?pt=$e:pt={key:$e},Object(U.a)(Object(U.a)({},pt),{},{key:String(pt.key)})}function Bn(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(jn)}function ne(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],vt=[],Me=0,we=pt.length,Ke=Bn($e),De=Bn(pt);Ke.forEach(function(Bt){for(var gt=!1,zt=Me;zt1});return ct.forEach(function(Bt){vt=vt.filter(function(gt){var zt=gt.key,Ft=gt.status;return zt!==Bt||Ft!==Pn}),vt.forEach(function(gt){gt.key===Bt&&(gt.status=an)})}),vt}var B=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function H($e){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kn,vt=function(Me){Object(o.a)(Ke,Me);var we=Object(l.a)(Ke);function Ke(){var De;return Object(C.a)(this,Ke),De=we.apply(this,arguments),De.state={keyEntities:[]},De.removeKey=function(st){De.setState(function(ct){var Bt=ct.keyEntities;return{keyEntities:Bt.map(function(gt){return gt.key!==st?gt:Object(U.a)(Object(U.a)({},gt),{},{status:dn})})}})},De}return Object(A.a)(Ke,[{key:"render",value:function(){var st=this,ct=this.state.keyEntities,Bt=this.props,gt=Bt.component,zt=Bt.children,Ft=Bt.onVisibleChanged,on=Object(L.a)(Bt,["component","children","onVisibleChanged"]),yn=gt||S.Fragment,zn={};return B.forEach(function(gr){zn[gr]=on[gr],delete on[gr]}),delete on.keys,S.createElement(yn,on,ct.map(function(gr){var Xr=gr.status,Jr=Object(L.a)(gr,["status"]),aa=Xr===St||Xr===an;return S.createElement(pt,Object(t.a)({},zn,{key:Jr.key,visible:aa,eventProps:Jr,onVisibleChanged:function(Lr){Ft==null||Ft(Lr,{key:Jr.key}),Lr||st.removeKey(Jr.key)}}),zt)}))}}],[{key:"getDerivedStateFromProps",value:function(st,ct){var Bt=st.keys,gt=ct.keyEntities,zt=Bn(Bt),Ft=ne(gt,zt);return{keyEntities:Ft.filter(function(on){var yn=gt.find(function(zn){var gr=zn.key;return on.key===gr});return!(yn&&yn.status===dn&&on.status===Pn)})}}}]),Ke}(S.Component);return vt.defaultProps={component:"div"},vt}var ae=H(Dt),ue=kn;function oe($e){var pt=$e.prefixCls,vt=$e.motion,Me=$e.animation,we=$e.transitionName;return vt||(Me?{motionName:"".concat(pt,"-").concat(Me)}:we?{motionName:we}:null)}function ht($e){var pt=$e.prefixCls,vt=$e.visible,Me=$e.zIndex,we=$e.mask,Ke=$e.maskMotion,De=$e.maskAnimation,st=$e.maskTransitionName;if(!we)return null;var ct={};return(Ke||st||De)&&(ct=Object(U.a)({motionAppear:!0},oe({motion:Ke,prefixCls:pt,transitionName:st,animation:De}))),S.createElement(ue,Object(t.a)({},ct,{visible:vt,removeOnLeave:!0}),function(Bt){var gt=Bt.className;return S.createElement("div",{style:{zIndex:Me},className:s()("".concat(pt,"-mask"),gt)})})}var vn=_("9mu1"),Tn=_("o0o1"),cr=_.n(Tn),Vt=_("HaE+"),Et=["measure","align",null,"motion"],Jt=function($e,pt){var vt=Object(S.useState)(null),Me=Object(j.a)(vt,2),we=Me[0],Ke=Me[1],De=Object(S.useRef)(),st=Object(S.useRef)(!1);function ct(zt){st.current||Ke(zt)}function Bt(){Qt.a.cancel(De.current)}function gt(zt){Bt(),De.current=Object(Qt.a)(function(){ct(function(Ft){switch(we){case"align":return"motion";case"motion":return"stable";default:}return Ft}),zt==null||zt()})}return Object(S.useEffect)(function(){ct("measure")},[$e]),Object(S.useEffect)(function(){switch(we){case"measure":pt();break;default:}we&&(De.current=Object(Qt.a)(Object(Vt.a)(cr.a.mark(function zt(){var Ft,on;return cr.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:Ft=Et.indexOf(we),on=Et[Ft+1],on&&Ft!==-1&&ct(on);case 3:case"end":return zn.stop()}},zt)}))))},[we]),Object(S.useEffect)(function(){return function(){st.current=!0,Bt()}},[]),[we,gt]},Fn=function($e){var pt=S.useState({width:0,height:0}),vt=Object(j.a)(pt,2),Me=vt[0],we=vt[1];function Ke(st){we({width:st.offsetWidth,height:st.offsetHeight})}var De=S.useMemo(function(){var st={};if($e){var ct=Me.width,Bt=Me.height;$e.indexOf("height")!==-1&&Bt?st.height=Bt:$e.indexOf("minHeight")!==-1&&Bt&&(st.minHeight=Bt),$e.indexOf("width")!==-1&&ct?st.width=ct:$e.indexOf("minWidth")!==-1&&ct&&(st.minWidth=ct)}return st},[$e,Me]);return[De,Ke]},Vn=S.forwardRef(function($e,pt){var vt=$e.visible,Me=$e.prefixCls,we=$e.className,Ke=$e.style,De=$e.children,st=$e.zIndex,ct=$e.stretch,Bt=$e.destroyPopupOnHide,gt=$e.forceRender,zt=$e.align,Ft=$e.point,on=$e.getRootDomNode,yn=$e.getClassNameFromAlign,zn=$e.onAlign,gr=$e.onMouseEnter,Xr=$e.onMouseLeave,Jr=$e.onMouseDown,aa=$e.onTouchStart,hn=Object(S.useRef)(),Lr=Object(S.useRef)(),oa=Object(S.useState)(),ba=Object(j.a)(oa,2),_t=ba[0],Wr=ba[1],un=Fn(ct),Rn=Object(j.a)(un,2),xr=Rn[0],Ca=Rn[1];function Nr(){ct&&Ca(on())}var Sr=Jt(vt,Nr),xa=Object(j.a)(Sr,2),Vr=xa[0],nr=xa[1],Fr=Object(S.useRef)();function Wn(){return Ft||on}function pn(){var Br;(Br=hn.current)===null||Br===void 0||Br.forceAlign()}function Rr(Br,$r){var ka=yn($r);_t!==ka&&Wr(ka),Vr==="align"&&(_t!==ka?Promise.resolve().then(function(){pn()}):nr(function(){var Na;(Na=Fr.current)===null||Na===void 0||Na.call(Fr)}),zn==null||zn(Br,$r))}var qn=Object(U.a)({},oe($e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Br){var $r=qn[Br];qn[Br]=function(ka,Na){return nr(),$r==null?void 0:$r(ka,Na)}});function Ar(){return new Promise(function(Br){Fr.current=Br})}S.useEffect(function(){!qn.motionName&&Vr==="motion"&&nr()},[qn.motionName,Vr]),S.useImperativeHandle(pt,function(){return{forceAlign:pn,getElement:function(){return Lr.current}}});var Da=Object(U.a)(Object(U.a)({},xr),{},{zIndex:st,opacity:Vr==="motion"||Vr==="stable"||!vt?void 0:0,pointerEvents:Vr==="stable"?void 0:"none"},Ke),Ia=!0;(zt==null?void 0:zt.points)&&(Vr==="align"||Vr==="stable")&&(Ia=!1);var La=De;return S.Children.count(De)>1&&(La=S.createElement("div",{className:"".concat(Me,"-content")},De)),S.createElement(ue,Object(t.a)({visible:vt,ref:Lr,leavedClassName:"".concat(Me,"-hidden")},qn,{onAppearPrepare:Ar,onEnterPrepare:Ar,removeOnLeave:Bt,forceRender:gt}),function(Br,$r){var ka=Br.className,Na=Br.style,qa=s()(Me,we,_t,ka);return S.createElement(vn.a,{target:Wn(),key:"popup",ref:hn,monitorWindowResize:!0,disabled:Ia,align:zt,onAlign:Rr},S.createElement("div",{ref:$r,className:qa,onMouseEnter:gr,onMouseLeave:Xr,onMouseDownCapture:Jr,onTouchStartCapture:aa,style:Object(U.a)(Object(U.a)({},Na),Da)},La))})});Vn.displayName="PopupInner";var Kn=Vn,ir=S.forwardRef(function($e,pt){var vt=$e.prefixCls,Me=$e.visible,we=$e.zIndex,Ke=$e.children,De=$e.mobile;De=De===void 0?{}:De;var st=De.popupClassName,ct=De.popupStyle,Bt=De.popupMotion,gt=Bt===void 0?{}:Bt,zt=De.popupRender,Ft=S.useRef();S.useImperativeHandle(pt,function(){return{forceAlign:function(){},getElement:function(){return Ft.current}}});var on=Object(U.a)({zIndex:we},ct),yn=Ke;return S.Children.count(Ke)>1&&(yn=S.createElement("div",{className:"".concat(vt,"-content")},Ke)),zt&&(yn=zt(yn)),S.createElement(ue,Object(t.a)({visible:Me,ref:Ft,removeOnLeave:!0},gt),function(zn,gr){var Xr=zn.className,Jr=zn.style,aa=s()(vt,st,Xr);return S.createElement("div",{ref:gr,className:aa,style:Object(U.a)(Object(U.a)({},Jr),on)},yn)})});ir.displayName="MobilePopupInner";var jr=ir,ua=["visible","mobile"],Yr=S.forwardRef(function($e,pt){var vt=$e.visible,Me=$e.mobile,we=Object(L.a)($e,ua),Ke=Object(S.useState)(vt),De=Object(j.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(S.useState)(!1),gt=Object(j.a)(Bt,2),zt=gt[0],Ft=gt[1],on=Object(U.a)(Object(U.a)({},we),{},{visible:st});Object(S.useEffect)(function(){ct(vt),vt&&Me&&Ft(Qe())},[vt,Me]);var yn=zt?S.createElement(jr,Object(t.a)({},on,{mobile:Me,ref:pt})):S.createElement(Kn,Object(t.a)({},on,{ref:pt}));return S.createElement("div",null,S.createElement(ht,on),yn)});Yr.displayName="Popup";var Tr=Yr,Jn=S.createContext(null),fr=Jn;function Sn(){}function On(){return""}function or($e){return $e?$e.ownerDocument:window.document}var Dn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function pr($e){var pt=function(vt){Object(o.a)(we,vt);var Me=Object(l.a)(we);function we(Ke){var De;Object(C.a)(this,we),De=Me.call(this,Ke),De.popupRef=S.createRef(),De.triggerRef=S.createRef(),De.attachId=void 0,De.clickOutsideHandler=void 0,De.touchOutsideHandler=void 0,De.contextMenuOutsideHandler1=void 0,De.contextMenuOutsideHandler2=void 0,De.mouseDownTimeout=void 0,De.focusTime=void 0,De.preClickTime=void 0,De.preTouchTime=void 0,De.delayTimer=void 0,De.hasPopupMouseDown=void 0,De.onMouseEnter=function(ct){var Bt=De.props.mouseEnterDelay;De.fireEvents("onMouseEnter",ct),De.delaySetPopupVisible(!0,Bt,Bt?null:ct)},De.onMouseMove=function(ct){De.fireEvents("onMouseMove",ct),De.setPoint(ct)},De.onMouseLeave=function(ct){De.fireEvents("onMouseLeave",ct),De.delaySetPopupVisible(!1,De.props.mouseLeaveDelay)},De.onPopupMouseEnter=function(){De.clearDelayTimer()},De.onPopupMouseLeave=function(ct){var Bt;if(ct.relatedTarget&&!ct.relatedTarget.setTimeout&&Object(Cn.a)((Bt=De.popupRef.current)===null||Bt===void 0?void 0:Bt.getElement(),ct.relatedTarget))return;De.delaySetPopupVisible(!1,De.props.mouseLeaveDelay)},De.onFocus=function(ct){De.fireEvents("onFocus",ct),De.clearDelayTimer(),De.isFocusToShow()&&(De.focusTime=Date.now(),De.delaySetPopupVisible(!0,De.props.focusDelay))},De.onMouseDown=function(ct){De.fireEvents("onMouseDown",ct),De.preClickTime=Date.now()},De.onTouchStart=function(ct){De.fireEvents("onTouchStart",ct),De.preTouchTime=Date.now()},De.onBlur=function(ct){De.fireEvents("onBlur",ct),De.clearDelayTimer(),De.isBlurToHide()&&De.delaySetPopupVisible(!1,De.props.blurDelay)},De.onContextMenu=function(ct){ct.preventDefault(),De.fireEvents("onContextMenu",ct),De.setPopupVisible(!0,ct)},De.onContextMenuClose=function(){De.isContextMenuToShow()&&De.close()},De.onClick=function(ct){if(De.fireEvents("onClick",ct),De.focusTime){var Bt;if(De.preClickTime&&De.preTouchTime?Bt=Math.min(De.preClickTime,De.preTouchTime):De.preClickTime?Bt=De.preClickTime:De.preTouchTime&&(Bt=De.preTouchTime),Math.abs(Bt-De.focusTime)<20)return;De.focusTime=0}De.preClickTime=0,De.preTouchTime=0,De.isClickToShow()&&(De.isClickToHide()||De.isBlurToHide())&&ct&&ct.preventDefault&&ct.preventDefault();var gt=!De.state.popupVisible;(De.isClickToHide()&&!gt||gt&&De.isClickToShow())&&De.setPopupVisible(!De.state.popupVisible,ct)},De.onPopupMouseDown=function(){if(De.hasPopupMouseDown=!0,clearTimeout(De.mouseDownTimeout),De.mouseDownTimeout=window.setTimeout(function(){De.hasPopupMouseDown=!1},0),De.context){var ct;(ct=De.context).onPopupMouseDown.apply(ct,arguments)}},De.onDocumentClick=function(ct){if(De.props.mask&&!De.props.maskClosable)return;var Bt=ct.target,gt=De.getRootDomNode(),zt=De.getPopupDomNode();(!Object(Cn.a)(gt,Bt)||De.isContextMenuOnly())&&!Object(Cn.a)(zt,Bt)&&!De.hasPopupMouseDown&&De.close()},De.getRootDomNode=function(){var ct=De.props.getTriggerDOMNode;if(ct)return ct(De.triggerRef.current);try{var Bt=Object(Un.a)(De.triggerRef.current);if(Bt)return Bt}catch(gt){}return tn.a.findDOMNode(Object(v.a)(De))},De.getPopupClassNameFromAlign=function(ct){var Bt=[],gt=De.props,zt=gt.popupPlacement,Ft=gt.builtinPlacements,on=gt.prefixCls,yn=gt.alignPoint,zn=gt.getPopupClassNameFromAlign;return zt&&Ft&&Bt.push(wt(Ft,on,ct,yn)),zn&&Bt.push(zn(ct)),Bt.join(" ")},De.getComponent=function(){var ct=De.props,Bt=ct.prefixCls,gt=ct.destroyPopupOnHide,zt=ct.popupClassName,Ft=ct.onPopupAlign,on=ct.popupMotion,yn=ct.popupAnimation,zn=ct.popupTransitionName,gr=ct.popupStyle,Xr=ct.mask,Jr=ct.maskAnimation,aa=ct.maskTransitionName,hn=ct.maskMotion,Lr=ct.zIndex,oa=ct.popup,ba=ct.stretch,_t=ct.alignPoint,Wr=ct.mobile,un=ct.forceRender,Rn=De.state,xr=Rn.popupVisible,Ca=Rn.point,Nr=De.getPopupAlign(),Sr={};return De.isMouseEnterToShow()&&(Sr.onMouseEnter=De.onPopupMouseEnter),De.isMouseLeaveToHide()&&(Sr.onMouseLeave=De.onPopupMouseLeave),Sr.onMouseDown=De.onPopupMouseDown,Sr.onTouchStart=De.onPopupMouseDown,S.createElement(Tr,Object(t.a)({prefixCls:Bt,destroyPopupOnHide:gt,visible:xr,point:_t&&Ca,className:zt,align:Nr,onAlign:Ft,animation:yn,getClassNameFromAlign:De.getPopupClassNameFromAlign},Sr,{stretch:ba,getRootDomNode:De.getRootDomNode,style:gr,mask:Xr,zIndex:Lr,transitionName:zn,maskAnimation:Jr,maskTransitionName:aa,maskMotion:hn,ref:De.popupRef,motion:on,mobile:Wr,forceRender:un}),typeof oa=="function"?oa():oa)},De.attachParent=function(ct){Qt.a.cancel(De.attachId);var Bt=De.props,gt=Bt.getPopupContainer,zt=Bt.getDocument,Ft=De.getRootDomNode(),on;gt?(Ft||gt.length===0)&&(on=gt(Ft)):on=zt(De.getRootDomNode()).body,on?on.appendChild(ct):De.attachId=Object(Qt.a)(function(){De.attachParent(ct)})},De.getContainer=function(){var ct=De.props.getDocument,Bt=ct(De.getRootDomNode()).createElement("div");return Bt.style.position="absolute",Bt.style.top="0",Bt.style.left="0",Bt.style.width="100%",De.attachParent(Bt),Bt},De.setPoint=function(ct){var Bt=De.props.alignPoint;if(!Bt||!ct)return;De.setState({point:{pageX:ct.pageX,pageY:ct.pageY}})},De.handlePortalUpdate=function(){De.state.prevPopupVisible!==De.state.popupVisible&&De.props.afterPopupVisibleChange(De.state.popupVisible)},De.triggerContextValue={onPopupMouseDown:De.onPopupMouseDown};var st;return"popupVisible"in Ke?st=!!Ke.popupVisible:st=!!Ke.defaultPopupVisible,De.state={prevPopupVisible:st,popupVisible:st},Dn.forEach(function(ct){De["fire".concat(ct)]=function(Bt){De.fireEvents(ct,Bt)}}),De}return Object(A.a)(we,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var De=this.props,st=this.state;if(st.popupVisible){var ct;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ct=De.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(lt.a)(ct,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ct=ct||De.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(lt.a)(ct,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ct=ct||De.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(lt.a)(ct,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(lt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Qt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var De;return((De=this.popupRef.current)===null||De===void 0?void 0:De.getElement())||null}},{key:"getPopupAlign",value:function(){var De=this.props,st=De.popupPlacement,ct=De.popupAlign,Bt=De.builtinPlacements;return st&&Bt?Tt(Bt,st,ct):ct}},{key:"setPopupVisible",value:function(De,st){var ct=this.props.alignPoint,Bt=this.state.popupVisible;this.clearDelayTimer(),Bt!==De&&("popupVisible"in this.props||this.setState({popupVisible:De,prevPopupVisible:Bt}),this.props.onPopupVisibleChange(De)),ct&&st&&De&&this.setPoint(st)}},{key:"delaySetPopupVisible",value:function(De,st,ct){var Bt=this,gt=st*1e3;if(this.clearDelayTimer(),gt){var zt=ct?{pageX:ct.pageX,pageY:ct.pageY}:null;this.delayTimer=window.setTimeout(function(){Bt.setPopupVisible(De,zt),Bt.clearDelayTimer()},gt)}else this.setPopupVisible(De,ct)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(De){var st=this.props.children.props,ct=this.props;return st[De]&&ct[De]?this["fire".concat(De)]:st[De]||ct[De]}},{key:"isClickToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("click")!==-1||ct.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var De=this.props.action;return De==="contextMenu"||De.length===1&&De[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("contextMenu")!==-1||ct.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var De=this.props,st=De.action,ct=De.hideAction;return st.indexOf("click")!==-1||ct.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("hover")!==-1||ct.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var De=this.props,st=De.action,ct=De.hideAction;return st.indexOf("hover")!==-1||ct.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("focus")!==-1||ct.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var De=this.props,st=De.action,ct=De.hideAction;return st.indexOf("focus")!==-1||ct.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var De;(De=this.popupRef.current)===null||De===void 0||De.forceAlign()}}},{key:"fireEvents",value:function(De,st){var ct=this.props.children.props[De];ct&&ct(st);var Bt=this.props[De];Bt&&Bt(st)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var De=this.state.popupVisible,st=this.props,ct=st.children,Bt=st.forceRender,gt=st.alignPoint,zt=st.className,Ft=st.autoDestroy,on=S.Children.only(ct),yn={key:"trigger"};this.isContextMenuToShow()?yn.onContextMenu=this.onContextMenu:yn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(yn.onClick=this.onClick,yn.onMouseDown=this.onMouseDown,yn.onTouchStart=this.onTouchStart):(yn.onClick=this.createTwoChains("onClick"),yn.onMouseDown=this.createTwoChains("onMouseDown"),yn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(yn.onMouseEnter=this.onMouseEnter,gt&&(yn.onMouseMove=this.onMouseMove)):yn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?yn.onMouseLeave=this.onMouseLeave:yn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(yn.onFocus=this.onFocus,yn.onBlur=this.onBlur):(yn.onFocus=this.createTwoChains("onFocus"),yn.onBlur=this.createTwoChains("onBlur"));var zn=s()(on&&on.props&&on.props.className,zt);zn&&(yn.className=zn);var gr=Object(U.a)({},yn);Object(mt.c)(on)&&(gr.ref=Object(mt.a)(this.triggerRef,on.ref));var Xr=S.cloneElement(on,gr),Jr;return(De||this.popupRef.current||Bt)&&(Jr=S.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!De&&Ft&&(Jr=null),S.createElement(fr.Provider,{value:this.triggerContextValue},Xr,Jr)}}],[{key:"getDerivedStateFromProps",value:function(De,st){var ct=De.popupVisible,Bt={};return ct!==void 0&&st.popupVisible!==ct&&(Bt.popupVisible=ct,Bt.prevPopupVisible=st.popupVisible),Bt}}]),we}(S.Component);return pt.contextType=fr,pt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:On,getDocument:or,onPopupVisibleChange:Sn,afterPopupVisibleChange:Sn,onPopupAlign:Sn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},pt}var Gn=pr(Ht.a),se={adjustX:1,adjustY:1},tt={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:se,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:se,offset:[4,0]}},rt={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:se,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:se,offset:[4,0]}},ut=tt,Kt=0,Ct={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Yt=function(pt,vt,Me){var we=xe(vt),Ke=pt.getState();pt.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},Ke.defaultActiveFirst),{},Object(Y.a)({},we,Me))})},nn=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(Me){var we;Object(C.a)(this,vt),we=pt.call(this,Me),we.onDestroy=function(gt){we.props.onDestroy(gt)},we.onKeyDown=function(gt){var zt=gt.keyCode,Ft=we.menuInstance,on=we.props.store,yn=we.getVisible();if(zt===O.a.ENTER)return we.onTitleClick(gt),Yt(on,we.props.eventKey,!0),!0;if(zt===O.a.RIGHT)return yn?Ft.onKeyDown(gt):(we.triggerOpenChange(!0),Yt(on,we.props.eventKey,!0)),!0;if(zt===O.a.LEFT){var zn;if(yn)zn=Ft.onKeyDown(gt);else return;return zn||(we.triggerOpenChange(!1),zn=!0),zn}return yn&&(zt===O.a.UP||zt===O.a.DOWN)?Ft.onKeyDown(gt):void 0},we.onOpenChange=function(gt){we.props.onOpenChange(gt)},we.onPopupVisibleChange=function(gt){we.triggerOpenChange(gt,gt?"mouseenter":"mouseleave")},we.onMouseEnter=function(gt){var zt=we.props,Ft=zt.eventKey,on=zt.onMouseEnter,yn=zt.store;Yt(yn,we.props.eventKey,!1),on({key:Ft,domEvent:gt})},we.onMouseLeave=function(gt){var zt=we.props,Ft=zt.parentMenu,on=zt.eventKey,yn=zt.onMouseLeave;Ft.subMenuInstance=Object(v.a)(we),yn({key:on,domEvent:gt})},we.onTitleMouseEnter=function(gt){var zt=we.props,Ft=zt.eventKey,on=zt.onItemHover,yn=zt.onTitleMouseEnter;on({key:Ft,hover:!0}),yn({key:Ft,domEvent:gt})},we.onTitleMouseLeave=function(gt){var zt=we.props,Ft=zt.parentMenu,on=zt.eventKey,yn=zt.onItemHover,zn=zt.onTitleMouseLeave;Ft.subMenuInstance=Object(v.a)(we),yn({key:on,hover:!1}),zn({key:on,domEvent:gt})},we.onTitleClick=function(gt){var zt=Object(v.a)(we),Ft=zt.props;if(Ft.onTitleClick({key:Ft.eventKey,domEvent:gt}),Ft.triggerSubMenuAction==="hover")return;we.triggerOpenChange(!we.getVisible(),"click"),Yt(Ft.store,we.props.eventKey,!1)},we.onSubMenuClick=function(gt){typeof we.props.onClick=="function"&&we.props.onClick(we.addKeyPath(gt))},we.onSelect=function(gt){we.props.onSelect(gt)},we.onDeselect=function(gt){we.props.onDeselect(gt)},we.getPrefixCls=function(){return"".concat(we.props.rootPrefixCls,"-submenu")},we.getActiveClassName=function(){return"".concat(we.getPrefixCls(),"-active")},we.getDisabledClassName=function(){return"".concat(we.getPrefixCls(),"-disabled")},we.getSelectedClassName=function(){return"".concat(we.getPrefixCls(),"-selected")},we.getOpenClassName=function(){return"".concat(we.props.rootPrefixCls,"-submenu-open")},we.getVisible=function(){return we.state.isOpen},we.getMode=function(){return we.state.mode},we.saveMenuInstance=function(gt){we.menuInstance=gt},we.addKeyPath=function(gt){return Object(U.a)(Object(U.a)({},gt),{},{keyPath:(gt.keyPath||[]).concat(we.props.eventKey)})},we.triggerOpenChange=function(gt,zt){var Ft=we.props.eventKey,on=function(){we.onOpenChange({key:Ft,item:Object(v.a)(we),trigger:zt,open:gt})};zt==="mouseenter"?we.mouseenterTimeout=setTimeout(function(){on()},0):on()},we.isChildrenSelected=function(){var gt={find:!1};return Le(we.props.children,we.props.selectedKeys,gt),gt.find},we.isInlineMode=function(){return we.getMode()==="inline"},we.adjustWidth=function(){if(!we.subMenuTitle||!we.menuInstance)return;var gt=Rt.findDOMNode(we.menuInstance);if(gt.offsetWidth>=we.subMenuTitle.offsetWidth)return;gt.style.minWidth="".concat(we.subMenuTitle.offsetWidth,"px")},we.saveSubMenuTitle=function(gt){we.subMenuTitle=gt},we.getBaseProps=function(){var gt=Object(v.a)(we),zt=gt.props,Ft=we.getMode();return{mode:Ft==="horizontal"?"vertical":Ft,visible:we.getVisible(),level:zt.level+1,inlineIndent:zt.inlineIndent,focusable:!1,onClick:we.onSubMenuClick,onSelect:we.onSelect,onDeselect:we.onDeselect,onDestroy:we.onDestroy,selectedKeys:zt.selectedKeys,eventKey:"".concat(zt.eventKey,"-menu-"),openKeys:zt.openKeys,motion:zt.motion,onOpenChange:we.onOpenChange,subMenuOpenDelay:zt.subMenuOpenDelay,parentMenu:Object(v.a)(we),subMenuCloseDelay:zt.subMenuCloseDelay,forceSubMenuRender:zt.forceSubMenuRender,triggerSubMenuAction:zt.triggerSubMenuAction,builtinPlacements:zt.builtinPlacements,defaultActiveFirst:zt.store.getState().defaultActiveFirst[xe(zt.eventKey)],multiple:zt.multiple,prefixCls:zt.rootPrefixCls,id:we.internalMenuId,manualRef:we.saveMenuInstance,itemIcon:zt.itemIcon,expandIcon:zt.expandIcon,direction:zt.direction}},we.getMotion=function(gt,zt){var Ft=Object(v.a)(we),on=Ft.haveRendered,yn=we.props,zn=yn.motion,gr=yn.rootPrefixCls,Xr=Object(U.a)(Object(U.a)({},zn),{},{leavedClassName:"".concat(gr,"-hidden"),removeOnLeave:!1,motionAppear:on||!zt||gt!=="inline"});return Xr};var Ke=Me.store,De=Me.eventKey,st=Ke.getState(),ct=st.defaultActiveFirst;we.isRootMenu=!1;var Bt=!1;return ct&&(Bt=ct[De]),Yt(Ke,De,Bt),we.state={mode:Me.mode,isOpen:Me.isOpen},we}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var we=this,Ke=this.props,De=Ke.mode,st=Ke.parentMenu,ct=Ke.manualRef,Bt=Ke.isOpen,gt=function(){we.setState({mode:De,isOpen:Bt})},zt=Bt!==this.state.isOpen,Ft=De!==this.state.mode;if((Ft||zt)&&(Qt.a.cancel(this.updateStateRaf),Ft?this.updateStateRaf=Object(Qt.a)(gt):gt()),ct&&ct(this),De!=="horizontal"||!(st==null?void 0:st.isRootMenu)||!Bt)return;this.minWidthTimeout=setTimeout(function(){return we.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var we=this.props,Ke=we.onDestroy,De=we.eventKey;Ke&&Ke(De),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Qt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(we,Ke){var De=this.getBaseProps();return S.createElement(Dr,Object(t.a)({},De,{id:this.internalMenuId,className:we,style:Ke}),this.props.children)}},{key:"renderChildren",value:function(){var we=this,Ke=this.getBaseProps(),De=Ke.mode,st=Ke.visible,ct=Ke.forceSubMenuRender,Bt=Ke.direction,gt=this.getMotion(De,st);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||st||ct,!this.haveOpened)return S.createElement("div",null);var zt=s()("".concat(Ke.prefixCls,"-sub"),Object(Y.a)({},"".concat(Ke.prefixCls,"-rtl"),Bt==="rtl"));return this.isInlineMode()?S.createElement(ue,Object(t.a)({visible:Ke.visible,forceRender:ct},gt),function(Ft){var on=Ft.className,yn=Ft.style,zn=s()(zt,on);return we.renderPopupMenu(zn,yn)}):this.renderPopupMenu(zt)}},{key:"render",value:function(){var we,Ke,De,st=Object(U.a)({},this.props),ct=this.getVisible(),Bt=this.getPrefixCls(),gt=this.isInlineMode(),zt=this.getMode(),Ft=s()(Bt,"".concat(Bt,"-").concat(zt),(we={},Object(Y.a)(we,st.className,!!st.className),Object(Y.a)(we,this.getOpenClassName(),ct),Object(Y.a)(we,this.getActiveClassName(),st.active||ct&&!gt),Object(Y.a)(we,this.getDisabledClassName(),st.disabled),Object(Y.a)(we,this.getSelectedClassName(),this.isChildrenSelected()),we));this.internalMenuId||(st.eventKey?this.internalMenuId="".concat(st.eventKey,"$Menu"):(Kt+=1,this.internalMenuId="$__$".concat(Kt,"$Menu")));var on={},yn={},zn={};st.disabled||(on={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},yn={onClick:this.onTitleClick},zn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var gr={},Xr=st.direction,Jr=Xr==="rtl";gt&&(Jr?gr.paddingRight=st.inlineIndent*st.level:gr.paddingLeft=st.inlineIndent*st.level);var aa={};this.getVisible()&&(aa={"aria-owns":this.internalMenuId});var hn=null;zt!=="horizontal"&&(hn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(hn=S.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var Lr=S.createElement("div",Object(t.a)({ref:this.saveSubMenuTitle,style:gr,className:"".concat(Bt,"-title"),role:"button"},zn,yn,{"aria-expanded":ct},aa,{"aria-haspopup":"true",title:typeof st.title=="string"?st.title:void 0}),st.title,hn||S.createElement("i",{className:"".concat(Bt,"-arrow")})),oa=this.renderChildren(),ba=((Ke=st.parentMenu)===null||Ke===void 0?void 0:Ke.isRootMenu)?st.parentMenu.props.getPopupContainer:function(Wn){return Wn.parentNode},_t=Ct[zt],Wr=st.popupOffset?{offset:st.popupOffset}:{},un=s()((De={},Object(Y.a)(De,st.popupClassName,st.popupClassName&&!gt),Object(Y.a)(De,"".concat(Bt,"-rtl"),Jr),De)),Rn=st.disabled,xr=st.triggerSubMenuAction,Ca=st.subMenuOpenDelay,Nr=st.forceSubMenuRender,Sr=st.subMenuCloseDelay,xa=st.builtinPlacements;Fe.forEach(function(Wn){return delete st[Wn]}),delete st.onClick;var Vr=Jr?Object(U.a)(Object(U.a)({},rt),xa):Object(U.a)(Object(U.a)({},tt),xa);delete st.direction;var nr=this.getBaseProps(),Fr=gt?null:this.getMotion(nr.mode,nr.visible);return S.createElement("li",Object(t.a)({},st,on,{className:Ft,role:"menuitem"}),S.createElement(Gn,{prefixCls:Bt,popupClassName:s()("".concat(Bt,"-popup"),un),getPopupContainer:ba,builtinPlacements:Vr,popupPlacement:_t,popupVisible:gt?!1:ct,popupAlign:Wr,popup:gt?null:oa,action:Rn||gt?[]:[xr],mouseEnterDelay:Ca,mouseLeaveDelay:Sr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Nr,popupMotion:Fr},Lr),gt?oa:null)}}]),vt}(S.Component);nn.defaultProps={onMouseEnter:Ne,onMouseLeave:Ne,onTitleMouseEnter:Ne,onTitleMouseLeave:Ne,onTitleClick:Ne,manualRef:Ne,mode:"vertical",title:""};var _n=Object(c.b)(function($e,pt){var vt=$e.openKeys,Me=$e.activeKey,we=$e.selectedKeys,Ke=pt.eventKey,De=pt.subMenuKey;return{isOpen:vt.indexOf(Ke)>-1,active:Me[De]===Ke,selectedKeys:we}})(nn);_n.isSubMenu=!0;var cn=_n,ur="menuitem-overflowed",Mn=.5,fn=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){var Me;return Object(C.a)(this,vt),Me=pt.apply(this,arguments),Me.resizeObserver=null,Me.mutationObserver=null,Me.originalTotalWidth=0,Me.overflowedItems=[],Me.menuItemSizes=[],Me.cancelFrameId=null,Me.state={lastVisibleIndex:void 0},Me.childRef=S.createRef(),Me.getMenuItemNodes=function(){var we=Me.props.prefixCls,Ke=Me.childRef.current;return Ke?[].slice.call(Ke.children).filter(function(De){return De.className.split(" ").indexOf("".concat(we,"-overflowed-submenu"))<0}):[]},Me.getOverflowedSubMenuItem=function(we,Ke,De){var st=Me.props,ct=st.overflowedIndicator,Bt=st.level,gt=st.mode,zt=st.prefixCls,Ft=st.theme;if(Bt!==1||gt!=="horizontal")return null;var on=Me.props.children[0],yn=on.props,zn=yn.children,gr=yn.title,Xr=yn.style,Jr=Object(L.a)(yn,["children","title","style"]),aa=Object(U.a)({},Xr),hn="".concat(we,"-overflowed-indicator"),Lr="".concat(we,"-overflowed-indicator");Ke.length===0&&De!==!0?aa=Object(U.a)(Object(U.a)({},aa),{},{display:"none"}):De&&(aa=Object(U.a)(Object(U.a)({},aa),{},{visibility:"hidden",position:"absolute"}),hn="".concat(hn,"-placeholder"),Lr="".concat(Lr,"-placeholder"));var oa=Ft?"".concat(zt,"-").concat(Ft):"",ba={};return Fe.forEach(function(_t){Jr[_t]!==void 0&&(ba[_t]=Jr[_t])}),S.createElement(cn,Object(t.a)({title:ct,className:"".concat(zt,"-overflowed-submenu"),popupClassName:oa},ba,{key:hn,eventKey:Lr,disabled:!1,style:aa}),Ke)},Me.setChildrenWidthAndResize=function(){if(Me.props.mode!=="horizontal")return;var we=Me.childRef.current;if(!we)return;var Ke=we.children;if(!Ke||Ke.length===0)return;var De=we.children[Ke.length-1];Ve(De,"display","inline-block");var st=Me.getMenuItemNodes(),ct=st.filter(function(Bt){return Bt.className.split(" ").indexOf(ur)>=0});ct.forEach(function(Bt){Ve(Bt,"display","inline-block")}),Me.menuItemSizes=st.map(function(Bt){return Pe(Bt,!0)}),ct.forEach(function(Bt){Ve(Bt,"display","none")}),Me.overflowedIndicatorWidth=Pe(we.children[we.children.length-1],!0),Me.originalTotalWidth=Me.menuItemSizes.reduce(function(Bt,gt){return Bt+gt},0),Me.handleResize(),Ve(De,"display","none")},Me.handleResize=function(){if(Me.props.mode!=="horizontal")return;var we=Me.childRef.current;if(!we)return;var Ke=Pe(we);Me.overflowedItems=[];var De=0,st;Me.originalTotalWidth>Ke+Mn&&(st=-1,Me.menuItemSizes.forEach(function(ct){De+=ct,De+Me.overflowedIndicatorWidth<=Ke&&(st+=1)})),Me.setState({lastVisibleIndex:st})},Me}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){var we=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ke=this.childRef.current;if(!Ke)return;this.resizeObserver=new At.default(function(De){De.forEach(function(){var st=we.cancelFrameId;cancelAnimationFrame(st),we.cancelFrameId=requestAnimationFrame(we.setChildrenWidthAndResize)})}),[].slice.call(Ke.children).concat(Ke).forEach(function(De){we.resizeObserver.observe(De)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){we.resizeObserver.disconnect(),[].slice.call(Ke.children).concat(Ke).forEach(function(De){we.resizeObserver.observe(De)}),we.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ke,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(we){var Ke=this,De=this.state.lastVisibleIndex;return(we||[]).reduce(function(st,ct,Bt){var gt=ct;if(Ke.props.mode==="horizontal"){var zt=Ke.getOverflowedSubMenuItem(ct.props.eventKey,[]);De!==void 0&&Ke.props.className.indexOf("".concat(Ke.props.prefixCls,"-root"))!==-1&&(Bt>De&&(gt=S.cloneElement(ct,{style:{display:"none"},eventKey:"".concat(ct.props.eventKey,"-hidden"),className:"".concat(ur)})),Bt===De+1&&(Ke.overflowedItems=we.slice(De+1).map(function(on){return S.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),zt=Ke.getOverflowedSubMenuItem(ct.props.eventKey,Ke.overflowedItems)));var Ft=[].concat(Object(p.a)(st),[zt,gt]);return Bt===we.length-1&&Ft.push(Ke.getOverflowedSubMenuItem(ct.props.eventKey,[],!0)),Ft}return[].concat(Object(p.a)(st),[gt])},[])}},{key:"render",value:function(){var we=this.props,Ke=we.visible,De=we.prefixCls,st=we.overflowedIndicator,ct=we.mode,Bt=we.level,gt=we.tag,zt=we.children,Ft=we.theme,on=Object(L.a)(we,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),yn=gt;return S.createElement(yn,Object(t.a)({ref:this.childRef},on),this.renderChildren(zt))}}]),vt}(S.Component);fn.defaultProps={tag:"div",className:""};var Hn=fn;function Xn($e){return $e.length?$e.every(function(pt){return!!pt.props.disabled}):!0}function $n($e,pt,vt){var Me=$e.getState();$e.setState({activeKey:Object(U.a)(Object(U.a)({},Me.activeKey),{},Object(Y.a)({},pt,vt))})}function Yn($e){return $e.eventKey||"0-menu-"}function _r($e,pt){var vt=pt,Me=$e.children,we=$e.eventKey;if(vt){var Ke;if(ze(Me,function(De,st){De&&De.props&&!De.props.disabled&&vt===Ce(De,we,st)&&(Ke=!0)}),Ke)return vt}return vt=null,$e.defaultActiveFirst&&ze(Me,function(De,st){!vt&&De&&!De.props.disabled&&(vt=Ce(De,we,st))}),vt}function vr($e){if(!$e)return;var pt=this.instanceArray.indexOf($e);pt!==-1?this.instanceArray[pt]=$e:this.instanceArray.push($e)}var lr=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(Me){var we;return Object(C.a)(this,vt),we=pt.call(this,Me),we.onKeyDown=function(Ke,De){var st=Ke.keyCode,ct;if(we.getFlatInstanceArray().forEach(function(gt){gt&>.props.active&>.onKeyDown&&(ct=gt.onKeyDown(Ke))}),ct)return 1;var Bt=null;return(st===O.a.UP||st===O.a.DOWN)&&(Bt=we.step(st===O.a.UP?-1:1)),Bt?(Ke.preventDefault(),$n(we.props.store,Yn(we.props),Bt.props.eventKey),typeof De=="function"&&De(Bt),1):void 0},we.onItemHover=function(Ke){var De=Ke.key,st=Ke.hover;$n(we.props.store,Yn(we.props),st?De:null)},we.onDeselect=function(Ke){we.props.onDeselect(Ke)},we.onSelect=function(Ke){we.props.onSelect(Ke)},we.onClick=function(Ke){we.props.onClick(Ke)},we.onOpenChange=function(Ke){we.props.onOpenChange(Ke)},we.onDestroy=function(Ke){we.props.onDestroy(Ke)},we.getFlatInstanceArray=function(){return we.instanceArray},we.step=function(Ke){var De=we.getFlatInstanceArray(),st=we.props.store.getState().activeKey[Yn(we.props)],ct=De.length;if(!ct)return null;Ke<0&&(De=De.concat().reverse());var Bt=-1;if(De.every(function(on,yn){return on&&on.props.eventKey===st?(Bt=yn,!1):!0}),!we.props.defaultActiveFirst&&Bt!==-1&&Xn(De.slice(Bt,ct-1)))return;var gt=(Bt+1)%ct,zt=gt;do{var Ft=De[zt];if(!Ft||Ft.props.disabled)zt=(zt+1)%ct;else return Ft}while(zt!==gt);return null},we.renderCommonMenuItem=function(Ke,De,st){var ct=we.props.store.getState(),Bt=Object(v.a)(we),gt=Bt.props,zt=Ce(Ke,gt.eventKey,De),Ft=Ke.props;if(!Ft||typeof Ke.type=="string")return Ke;var on=zt===ct.activeKey,yn=Object(U.a)(Object(U.a)({mode:Ft.mode||gt.mode,level:gt.level,inlineIndent:gt.inlineIndent,renderMenuItem:we.renderMenuItem,rootPrefixCls:gt.prefixCls,index:De,parentMenu:gt.parentMenu,manualRef:Ft.disabled?void 0:Object(P.a)(Ke.ref,vr.bind(Object(v.a)(we))),eventKey:zt,active:!Ft.disabled&&on,multiple:gt.multiple,onClick:function(gr){(Ft.onClick||Ne)(gr),we.onClick(gr)},onItemHover:we.onItemHover,motion:gt.motion,subMenuOpenDelay:gt.subMenuOpenDelay,subMenuCloseDelay:gt.subMenuCloseDelay,forceSubMenuRender:gt.forceSubMenuRender,onOpenChange:we.onOpenChange,onDeselect:we.onDeselect,onSelect:we.onSelect,builtinPlacements:gt.builtinPlacements,itemIcon:Ft.itemIcon||we.props.itemIcon,expandIcon:Ft.expandIcon||we.props.expandIcon},st),{},{direction:gt.direction});return(gt.mode==="inline"||at())&&(yn.triggerSubMenuAction="click"),S.cloneElement(Ke,Object(U.a)(Object(U.a)({},yn),{},{key:zt||De}))},we.renderMenuItem=function(Ke,De,st){if(!Ke)return null;var ct=we.props.store.getState(),Bt={openKeys:ct.openKeys,selectedKeys:ct.selectedKeys,triggerSubMenuAction:we.props.triggerSubMenuAction,subMenuKey:st};return we.renderCommonMenuItem(Ke,De,Bt)},Me.store.setState({activeKey:Object(U.a)(Object(U.a)({},Me.store.getState().activeKey),{},Object(Y.a)({},Me.eventKey,_r(Me,Me.activeKey)))}),we.instanceArray=[],we}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(we){return this.props.visible||we.visible||this.props.className!==we.className||!k()(this.props.style,we.style)}},{key:"componentDidUpdate",value:function(we){var Ke=this.props,De="activeKey"in Ke?Ke.activeKey:Ke.store.getState().activeKey[Yn(Ke)],st=_r(Ke,De);if(st!==De)$n(Ke.store,Yn(Ke),st);else if("activeKey"in we){var ct=_r(we,we.activeKey);st!==ct&&$n(Ke.store,Yn(Ke),st)}}},{key:"render",value:function(){var we=this,Ke=Object(t.a)({},this.props);this.instanceArray=[];var De=s()(Ke.prefixCls,Ke.className,"".concat(Ke.prefixCls,"-").concat(Ke.mode)),st={className:De,role:Ke.role||"menu"};Ke.id&&(st.id=Ke.id),Ke.focusable&&(st.tabIndex=0,st.onKeyDown=this.onKeyDown);var ct=Ke.prefixCls,Bt=Ke.eventKey,gt=Ke.visible,zt=Ke.level,Ft=Ke.mode,on=Ke.overflowedIndicator,yn=Ke.theme;return Fe.forEach(function(zn){return delete Ke[zn]}),delete Ke.onClick,S.createElement(Hn,Object(t.a)({},Ke,{prefixCls:ct,mode:Ft,tag:"ul",level:zt,theme:yn,visible:gt,overflowedIndicator:on},st),Object(d.a)(Ke.children).map(function(zn,gr){return we.renderMenuItem(zn,gr,Bt||"0-menu-")}))}}]),vt}(S.Component);lr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ne};var wr=Object(c.b)()(lr),Dr=wr,sr=_("Kwbf");function ia($e,pt,vt){var Me=$e.prefixCls,we=$e.motion,Ke=$e.defaultMotions,De=Ke===void 0?{}:Ke,st=$e.openAnimation,ct=$e.openTransitionName,Bt=pt.switchingModeFromInline;if(we)return we;if(Object(I.a)(st)==="object"&&st)Object(sr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof st=="string")return{motionName:"".concat(Me,"-open-").concat(st)};if(ct)return{motionName:ct};var gt=De[vt];return gt||(Bt?null:De.other)}var Ea=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(Me){var we;Object(C.a)(this,vt),we=pt.call(this,Me),we.onSelect=function(st){var ct=Object(v.a)(we),Bt=ct.props;if(Bt.selectable){var gt=we.store.getState(),zt=gt.selectedKeys,Ft=st.key;Bt.multiple?zt=zt.concat([Ft]):zt=[Ft],"selectedKeys"in Bt||we.store.setState({selectedKeys:zt}),Bt.onSelect(Object(U.a)(Object(U.a)({},st),{},{selectedKeys:zt}))}},we.onClick=function(st){var ct=we.getRealMenuMode(),Bt=Object(v.a)(we),gt=Bt.store,zt=Bt.props.onOpenChange;ct!=="inline"&&!("openKeys"in we.props)&&(gt.setState({openKeys:[]}),zt([])),we.props.onClick(st)},we.onKeyDown=function(st,ct){we.innerMenu.getWrappedInstance().onKeyDown(st,ct)},we.onOpenChange=function(st){var ct=Object(v.a)(we),Bt=ct.props,gt=we.store.getState().openKeys.concat(),zt=!1,Ft=function(yn){var zn=!1;if(yn.open)zn=gt.indexOf(yn.key)===-1,zn&>.push(yn.key);else{var gr=gt.indexOf(yn.key);zn=gr!==-1,zn&>.splice(gr,1)}zt=zt||zn};Array.isArray(st)?st.forEach(Ft):Ft(st),zt&&("openKeys"in we.props||we.store.setState({openKeys:gt}),Bt.onOpenChange(gt))},we.onDeselect=function(st){var ct=Object(v.a)(we),Bt=ct.props;if(Bt.selectable){var gt=we.store.getState().selectedKeys.concat(),zt=st.key,Ft=gt.indexOf(zt);Ft!==-1&>.splice(Ft,1),"selectedKeys"in Bt||we.store.setState({selectedKeys:gt}),Bt.onDeselect(Object(U.a)(Object(U.a)({},st),{},{selectedKeys:gt}))}},we.onMouseEnter=function(st){we.restoreModeVerticalFromInline();var ct=we.props.onMouseEnter;ct&&ct(st)},we.onTransitionEnd=function(st){var ct=st.propertyName==="width"&&st.target===st.currentTarget,Bt=st.target.className,gt=Object.prototype.toString.call(Bt)==="[object SVGAnimatedString]"?Bt.animVal:Bt,zt=st.propertyName==="font-size"&>.indexOf("anticon")>=0;(ct||zt)&&we.restoreModeVerticalFromInline()},we.setInnerMenu=function(st){we.innerMenu=st},we.isRootMenu=!0;var Ke=Me.defaultSelectedKeys,De=Me.defaultOpenKeys;return"selectedKeys"in Me&&(Ke=Me.selectedKeys||[]),"openKeys"in Me&&(De=Me.openKeys||[]),we.store=Object(c.c)({selectedKeys:Ke,openKeys:De,activeKey:{"0-menu-":_r(Me,Me.activeKey)}}),we.state={switchingModeFromInline:!1,prevProps:Me,inlineOpenKeys:[],store:we.store},we}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(we){var Ke=this.props,De=Ke.siderCollapsed,st=Ke.inlineCollapsed,ct=Ke.onOpenChange;(!we.inlineCollapsed&&st||!we.siderCollapsed&&De)&&ct([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var we=this.props.collapsedWidth,Ke=this.store,De=this.prevOpenKeys,st=this.getInlineCollapsed()&&(we===0||we==="0"||we==="0px");st?(this.prevOpenKeys=Ke.getState().openKeys.concat(),this.store.setState({openKeys:[]})):De&&(this.store.setState({openKeys:De}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var we=this.props.mode,Ke=this.state.switchingModeFromInline,De=this.getInlineCollapsed();return Ke&&De?"inline":De?"vertical":we}},{key:"getInlineCollapsed",value:function(){var we=this.props,Ke=we.inlineCollapsed,De=we.siderCollapsed;return De!==void 0?De:Ke}},{key:"restoreModeVerticalFromInline",value:function(){var we=this.state.switchingModeFromInline;we&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var we=Object(U.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ke=this.getRealMenuMode();return we.className+=" ".concat(we.prefixCls,"-root"),we.direction==="rtl"&&(we.className+=" ".concat(we.prefixCls,"-rtl")),we=Object(U.a)(Object(U.a)({},we),{},{mode:Ke,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ia(this.props,this.state,Ke)}),delete we.openAnimation,delete we.openTransitionName,S.createElement(c.a,{store:this.store},S.createElement(Dr,Object(t.a)({},we,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(we,Ke){var De=Ke.prevProps,st=Ke.store,ct=st.getState(),Bt={},gt={prevProps:we};return De.mode==="inline"&&we.mode!=="inline"&&(gt.switchingModeFromInline=!0),"openKeys"in we?Bt.openKeys=we.openKeys||[]:((we.inlineCollapsed&&!De.inlineCollapsed||we.siderCollapsed&&!De.siderCollapsed)&&(gt.switchingModeFromInline=!0,gt.inlineOpenKeys=ct.openKeys,Bt.openKeys=[]),(!we.inlineCollapsed&&De.inlineCollapsed||!we.siderCollapsed&&De.siderCollapsed)&&(Bt.openKeys=Ke.inlineOpenKeys,gt.inlineOpenKeys=[])),Object.keys(Bt).length&&st.setState(Bt),gt}}]),vt}(S.Component);Ea.defaultProps={selectable:!0,onClick:Ne,onSelect:Ne,onOpenChange:Ne,onDeselect:Ne,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:S.createElement("span",null,"\xB7\xB7\xB7")};var Cr=Ea,kr=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){var Me;return Object(C.a)(this,vt),Me=pt.apply(this,arguments),Me.onKeyDown=function(we){var Ke=we.keyCode;return Ke===O.a.ENTER?(Me.onClick(we),!0):void 0},Me.onMouseLeave=function(we){var Ke=Me.props,De=Ke.eventKey,st=Ke.onItemHover,ct=Ke.onMouseLeave;st({key:De,hover:!1}),ct({key:De,domEvent:we})},Me.onMouseEnter=function(we){var Ke=Me.props,De=Ke.eventKey,st=Ke.onItemHover,ct=Ke.onMouseEnter;st({key:De,hover:!0}),ct({key:De,domEvent:we})},Me.onClick=function(we){var Ke=Me.props,De=Ke.eventKey,st=Ke.multiple,ct=Ke.onClick,Bt=Ke.onSelect,gt=Ke.onDeselect,zt=Ke.isSelected,Ft={key:De,keyPath:[De],item:Object(v.a)(Me),domEvent:we};ct(Ft),st?zt?gt(Ft):Bt(Ft):zt||Bt(Ft)},Me.saveNode=function(we){Me.node=we},Me}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var we=this.props;we.onDestroy&&we.onDestroy(we.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var we,Ke=Object(U.a)({},this.props),De=s()(this.getPrefixCls(),Ke.className,(we={},Object(Y.a)(we,this.getActiveClassName(),!Ke.disabled&&Ke.active),Object(Y.a)(we,this.getSelectedClassName(),Ke.isSelected),Object(Y.a)(we,this.getDisabledClassName(),Ke.disabled),we)),st=Object(U.a)(Object(U.a)({},Ke.attribute),{},{title:typeof Ke.title=="string"?Ke.title:void 0,className:De,role:Ke.role||"menuitem","aria-disabled":Ke.disabled});Ke.role==="option"?st=Object(U.a)(Object(U.a)({},st),{},{role:"option","aria-selected":Ke.isSelected}):(Ke.role===null||Ke.role==="none")&&(st.role="none");var ct={onClick:Ke.disabled?null:this.onClick,onMouseLeave:Ke.disabled?null:this.onMouseLeave,onMouseEnter:Ke.disabled?null:this.onMouseEnter},Bt=Object(U.a)({},Ke.style);Ke.mode==="inline"&&(Ke.direction==="rtl"?Bt.paddingRight=Ke.inlineIndent*Ke.level:Bt.paddingLeft=Ke.inlineIndent*Ke.level),Fe.forEach(function(zt){return delete Ke[zt]}),delete Ke.direction;var gt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(gt=S.createElement(this.props.itemIcon,this.props)),S.createElement("li",Object(t.a)({},Object(M.a)(Ke,["onClick","onMouseEnter","onMouseLeave","onSelect"]),st,ct,{style:Bt,ref:this.saveNode}),Ke.children,gt)}}]),vt}(S.Component);kr.isMenuItem=!0,kr.defaultProps={onSelect:Ne,onMouseEnter:Ne,onMouseLeave:Ne,manualRef:Ne};var Zr=Object(c.b)(function($e,pt){var vt=$e.activeKey,Me=$e.selectedKeys,we=pt.eventKey,Ke=pt.subMenuKey;return{active:vt[Ke]===we,isSelected:Array.isArray(Me)?Me.indexOf(we)!==-1:Me===we}})(kr),Qr=Zr,Aa=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){var Me;return Object(C.a)(this,vt),Me=pt.apply(this,arguments),Me.renderInnerMenuItem=function(we){var Ke=Me.props,De=Ke.renderMenuItem,st=Ke.index;return De(we,st,Me.props.subMenuKey)},Me}return Object(A.a)(vt,[{key:"render",value:function(){var we=Object(t.a)({},this.props),Ke=we.className,De=Ke===void 0?"":Ke,st=we.rootPrefixCls,ct="".concat(st,"-item-group-title"),Bt="".concat(st,"-item-group-list"),gt=we.title,zt=we.children;return Fe.forEach(function(Ft){return delete we[Ft]}),delete we.direction,S.createElement("li",Object(t.a)({},we,{onClick:function(on){return on.stopPropagation()},className:"".concat(De," ").concat(st,"-item-group")}),S.createElement("div",{className:ct,title:typeof gt=="string"?gt:void 0},gt),S.createElement("ul",{className:Bt},S.Children.map(zt,this.renderInnerMenuItem)))}}]),vt}(S.Component);Aa.isMenuItemGroup=!0,Aa.defaultProps={disabled:!0};var Ta=Aa,ga=function(pt){var vt=pt.className,Me=pt.rootPrefixCls,we=pt.style;return S.createElement("li",{className:"".concat(vt," ").concat(Me,"-item-divider"),style:we})};ga.defaultProps={disabled:!0,className:"",style:{}};var Fa=ga,Va=Cr,tr=_("eDIo");function In($e,pt){var vt=$e.prefixCls,Me=$e.editable,we=$e.locale,Ke=$e.style;return!Me||Me.showAdd===!1?null:S.createElement("button",{ref:pt,type:"button",className:"".concat(vt,"-nav-add"),style:Ke,"aria-label":(we==null?void 0:we.addAriaLabel)||"Add tab",onClick:function(st){Me.onEdit("add",{event:st})}},Me.addIcon||"+")}var En=S.forwardRef(In);function Or($e,pt){var vt=$e.prefixCls,Me=$e.id,we=$e.tabs,Ke=$e.locale,De=$e.mobile,st=$e.moreIcon,ct=st===void 0?"More":st,Bt=$e.moreTransitionName,gt=$e.style,zt=$e.className,Ft=$e.editable,on=$e.tabBarGutter,yn=$e.rtl,zn=$e.onTabClick,gr=Object(S.useState)(!1),Xr=Object(j.a)(gr,2),Jr=Xr[0],aa=Xr[1],hn=Object(S.useState)(null),Lr=Object(j.a)(hn,2),oa=Lr[0],ba=Lr[1],_t="".concat(Me,"-more-popup"),Wr="".concat(vt,"-dropdown"),un=oa!==null?"".concat(_t,"-").concat(oa):null,Rn=Ke==null?void 0:Ke.dropdownAriaLabel,xr=S.createElement(Va,{onClick:function(Fr){var Wn=Fr.key,pn=Fr.domEvent;zn(Wn,pn),aa(!1)},id:_t,tabIndex:-1,role:"listbox","aria-activedescendant":un,selectedKeys:[oa],"aria-label":Rn!==void 0?Rn:"expanded dropdown"},we.map(function(nr){return S.createElement(Qr,{key:nr.key,id:"".concat(_t,"-").concat(nr.key),role:"option","aria-controls":Me&&"".concat(Me,"-panel-").concat(nr.key),disabled:nr.disabled},nr.tab)}));function Ca(nr){for(var Fr=we.filter(function(Ar){return!Ar.disabled}),Wn=Fr.findIndex(function(Ar){return Ar.key===oa})||0,pn=Fr.length,Rr=0;Rrxa?(Nr=xr,_t.current="x"):(Nr=Ca,_t.current="y");var Vr=Date.now();Vr-oa.current>100&&(ba.current=!1),(pt(-Nr,-Nr)||ba.current)&&(Rn.preventDefault(),ba.current=!0),oa.current=Vr}var un=Object(S.useRef)(null);un.current={onTouchStart:aa,onTouchMove:hn,onTouchEnd:Lr,onWheel:Wr},S.useEffect(function(){function Rn(Sr){un.current.onTouchStart(Sr)}function xr(Sr){un.current.onTouchMove(Sr)}function Ca(Sr){un.current.onTouchEnd(Sr)}function Nr(Sr){un.current.onWheel(Sr)}return document.addEventListener("touchmove",xr,{passive:!1}),document.addEventListener("touchend",Ca,{passive:!1}),$e.current.addEventListener("touchstart",Rn,{passive:!1}),$e.current.addEventListener("wheel",Nr),function(){document.removeEventListener("touchmove",xr),document.removeEventListener("touchend",Ca)}},[])}function Qn(){var $e=Object(S.useRef)(new Map);function pt(Me){return $e.current.has(Me)||$e.current.set(Me,S.createRef()),$e.current.get(Me)}function vt(Me){$e.current.delete(Me)}return[pt,vt]}function Hr($e,pt){var vt=S.useRef($e),Me=S.useState({}),we=Object(j.a)(Me,2),Ke=we[1];function De(st){var ct=typeof st=="function"?st(vt.current):st;ct!==vt.current&&pt(ct,vt.current),vt.current=ct,Ke({})}return[vt.current,De]}var ha=function(pt){var vt=pt.position,Me=pt.prefixCls,we=pt.extra;if(!we)return null;var Ke,De=we;return vt==="right"&&(Ke=De.right||!De.left&&De||null),vt==="left"&&(Ke=De.left||null),Ke?S.createElement("div",{className:"".concat(Me,"-extra-content")},Ke):null};function Ma($e,pt){var vt,Me=S.useContext(zr),we=Me.prefixCls,Ke=Me.tabs,De=$e.className,st=$e.style,ct=$e.id,Bt=$e.animated,gt=$e.activeKey,zt=$e.rtl,Ft=$e.extra,on=$e.editable,yn=$e.locale,zn=$e.tabPosition,gr=$e.tabBarGutter,Xr=$e.children,Jr=$e.onTabClick,aa=$e.onTabScroll,hn=Object(S.useRef)(),Lr=Object(S.useRef)(),oa=Object(S.useRef)(),ba=Object(S.useRef)(),_t=Qn(),Wr=Object(j.a)(_t,2),un=Wr[0],Rn=Wr[1],xr=zn==="top"||zn==="bottom",Ca=Hr(0,function(za,Wa){xr&&aa&&aa({direction:za>Wa?"left":"right"})}),Nr=Object(j.a)(Ca,2),Sr=Nr[0],xa=Nr[1],Vr=Hr(0,function(za,Wa){!xr&&aa&&aa({direction:za>Wa?"top":"bottom"})}),nr=Object(j.a)(Vr,2),Fr=nr[0],Wn=nr[1],pn=Object(S.useState)(0),Rr=Object(j.a)(pn,2),qn=Rr[0],Ar=Rr[1],Da=Object(S.useState)(0),Ia=Object(j.a)(Da,2),La=Ia[0],Br=Ia[1],$r=Object(S.useState)(0),ka=Object(j.a)($r,2),Na=ka[0],qa=ka[1],ii=Object(S.useState)(0),ri=Object(j.a)(ii,2),Ka=ri[0],Ai=ri[1],Ri=Object(S.useState)(null),$a=Object(j.a)(Ri,2),Ga=$a[0],ui=$a[1],Ji=Object(S.useState)(null),wo=Object(j.a)(Ji,2),Ii=wo[0],Zi=wo[1],qi=Object(S.useState)(0),wi=Object(j.a)(qi,2),$i=wi[0],ho=wi[1],mo=Object(S.useState)(0),Ti=Object(j.a)(mo,2),Ra=Ti[0],Sa=Ti[1],wa=m(new Map),Ja=Object(j.a)(wa,2),oi=Ja[0],bi=Ja[1],li=h(Ke,oi,qn),ro="".concat(we,"-nav-operations-hidden"),po=0,pi=0;xr?zt?(po=0,pi=Math.max(0,qn-Ga)):(po=Math.min(0,Ga-qn),pi=0):(po=Math.min(0,Ii-La),pi=0);function Hi(za){return zapi?[pi,!1]:[za,!0]}var vi=Object(S.useRef)(),Ki=Object(S.useState)(),Gi=Object(j.a)(Ki,2),So=Gi[0],vo=Gi[1];function go(){vo(Date.now())}function bo(){window.clearTimeout(vi.current)}sa(hn,function(za,Wa){var ni=!1;function Mi(Ao,lo){Ao(function(Po){var eo=Hi(Po+lo),Ei=Object(j.a)(eo,2),Mo=Ei[0],_o=Ei[1];return ni=_o,Mo})}if(xr){if(Ga>=qn)return ni;Mi(xa,za)}else{if(Ii>=La)return ni;Mi(Wn,Wa)}return bo(),go(),ni}),Object(S.useEffect)(function(){return bo(),So&&(vi.current=window.setTimeout(function(){vo(0)},100)),bo},[So]);function Vi(){var za=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt,Wa=li.get(za);if(!Wa)return;if(xr){var ni=Sr;zt?Wa.rightSr+Ga&&(ni=Wa.right+Wa.width-Ga):Wa.left<-Sr?ni=-Wa.left:Wa.left+Wa.width>-Sr+Ga&&(ni=-(Wa.left+Wa.width-Ga)),Wn(0),xa(Hi(ni)[0])}else{var Mi=Fr;Wa.top<-Fr?Mi=-Wa.top:Wa.top+Wa.height>-Fr+Ii&&(Mi=-(Wa.top+Wa.height-Ii)),xa(0),Wn(Hi(Mi)[0])}}var oo=E(li,{width:Ga,height:Ii,left:Sr,top:Fr},{width:Na,height:Ka},{width:$i,height:Ra},Object(U.a)(Object(U.a)({},$e),{},{tabs:Ke})),Ro=Object(j.a)(oo,2),yo=Ro[0],so=Ro[1],Oo=Ke.map(function(za){var Wa=za.key;return S.createElement(r,{id:ct,prefixCls:we,key:Wa,rtl:zt,tab:za,closable:za.closable,editable:on,active:Wa===gt,tabPosition:zn,tabBarGutter:gr,renderWrapper:Xr,removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,ref:un(Wa),onClick:function(Mi){Jr(Wa,Mi)},onRemove:function(){Rn(Wa)},onFocus:function(){Vi(Wa),go(),zt||(hn.current.scrollLeft=0),hn.current.scrollTop=0}})}),To=b(function(){var za,Wa,ni,Mi,Ao,lo,Po,eo,Ei,Mo=((za=hn.current)===null||za===void 0?void 0:za.offsetWidth)||0,_o=((Wa=hn.current)===null||Wa===void 0?void 0:Wa.offsetHeight)||0,Lo=((ni=ba.current)===null||ni===void 0?void 0:ni.offsetWidth)||0,Ui=((Mi=ba.current)===null||Mi===void 0?void 0:Mi.offsetHeight)||0,Za=((Ao=oa.current)===null||Ao===void 0?void 0:Ao.offsetWidth)||0,Ba=((lo=oa.current)===null||lo===void 0?void 0:lo.offsetHeight)||0;ui(Mo),Zi(_o),ho(Lo),Sa(Ui);var na=(((Po=Lr.current)===null||Po===void 0?void 0:Po.offsetWidth)||0)-Lo,Oa=(((eo=Lr.current)===null||eo===void 0?void 0:eo.offsetHeight)||0)-Ui;Ar(na),Br(Oa);var Ha=(Ei=oa.current)===null||Ei===void 0?void 0:Ei.className.includes(ro);qa(na-(Ha?0:Za)),Ai(Oa-(Ha?0:Ba)),bi(function(){var si=new Map;return Ke.forEach(function(Xi){var ao=Xi.key,xi=un(ao).current;xi&&si.set(ao,{width:xi.offsetWidth,height:xi.offsetHeight,left:xi.offsetLeft,top:xi.offsetTop})}),si})}),Do=Ke.slice(0,yo),Ci=Ke.slice(so+1),ai=[].concat(Object(p.a)(Do),Object(p.a)(Ci)),yi=Object(S.useState)(),ti=Object(j.a)(yi,2),Qa=ti[0],ma=ti[1],dr=li.get(gt),hr=Object(S.useRef)();function ya(){f.a.cancel(hr.current)}Object(S.useEffect)(function(){var za={};return dr&&(xr?(zt?za.right=dr.right:za.left=dr.left,za.width=dr.width):(za.top=dr.top,za.height=dr.height)),ya(),hr.current=f()(function(){ma(za)}),ya},[dr,xr,zt]),Object(S.useEffect)(function(){Vi()},[gt,dr,li,xr]),Object(S.useEffect)(function(){To()},[zt,gr,gt,Ke.map(function(za){return za.key}).join("_")]);var di=!!ai.length,_i="".concat(we,"-nav-wrap"),ci,Bi,Pi,Ni;return xr?zt?(Bi=Sr>0,ci=Sr+Ga-1?"".concat(J==null?void 0:J.time,"\u5206\u949F"):"\u4E0D\u9650","\u3011"),(Ne==null?void 0:Ne.show_desc)&&p.a.createElement("div",{className:"mt10"},p.a.createElement("p",{className:"font16"},"\u8003\u8BD5\u8BF4\u660E\uFF1A"),p.a.createElement(O.a,{value:J==null?void 0:J.description})),(Ne==null?void 0:Ne.show_table)&&p.a.createElement("div",{className:"mt10"},p.a.createElement(j.a,{className:b.a.table,columns:Ee,dataSource:Object(U.a)(be||[]),bordered:!0,pagination:!1}))))};ie.a=Object(f.a)(function(u){var h=u.exercise,y=u.loading,E=u.user,t=u.globalSetting;return{exercise:h,globalSetting:t,user:E,loading:y.effects}})(r)},kPWJ:function(Ye,ie,_){Ye.exports=_.p+"static/question.cb52bef9.gif"},kPYp:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(Ye,ie,_){},"kaH+":function(Ye,ie,_){"use strict";var Y=_("+L6B"),j=_("2/Rp"),L=_("tJVT"),U=_("q1tI"),S=_.n(U),g=_("XFxt"),s=_.n(g),d=_("dhSg"),w=_("rLCj"),p=_("dF/Y"),a=_("4i/N");ie.a=function(){var f=Object(U.useState)(""),x=Object(L.a)(f,2),b=x[0],m=x[1],O=Object(U.useState)(0),i=Object(L.a)(O,2),r=i[0],u=i[1],h=Object(U.useRef)("");Object(U.useEffect)(function(){var C=d.a.subscribe("preview-image",function(A){m(A),document.body.style.overflow="hidden"});return C},[]),Object(U.useEffect)(function(){return document.addEventListener("keydown",y),function(){document.removeEventListener("keydown",y)}},[]),Object(U.useEffect)(function(){h.current=b},[b]);function y(C){C.keyCode==27&&h.current&&E()}function E(){document.body.style.overflow="auto",m("")}function t(){u(r+90)}return S.a.createElement(U.Fragment,null,b?S.a.createElement("div",{className:s.a["image-preview-container"]},S.a.createElement("div",{className:s.a["button-group"]},S.a.createElement(j.a,{onClick:t},"\u65CB\u8F6C",S.a.createElement(w.a,null)),S.a.createElement(j.a,{href:b},"\u4E0B\u8F7D",S.a.createElement(p.a,null)),S.a.createElement(j.a,{onClick:E},"\u5173\u95ED",S.a.createElement(a.a,null))),S.a.createElement("div",{className:s.a["preview-wrp-group"]},S.a.createElement("img",{className:s.a["image-preview"],src:b,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(r,"deg)")}}))):null)}},kqOp:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return p});var Y=_("0Owb"),j=_("fWQN"),L=_("mtLc"),U=_("yKVA"),S=_("879j"),g=_("q1tI"),s=_.n(g),d=_("Ot1p"),w="\u2581",p=function(a){Object(U.a)(x,a);var f=Object(S.a)(x);function x(){var b;Object(j.a)(this,x);for(var m=arguments.length,O=new Array(m),i=0;i` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,O=/^\s*\[[^\]]+?\]:.*$/,i=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function u(W,G,J){return G.f=G.inline=J,J(W,G)}function h(W,G,J){return G.f=G.block=J,J(W,G)}function y(W){return!W||!/\S/.test(W.string)}function E(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==C){var G=S;if(!G){var J=Y.innerMode(U,W.htmlState);G=J.mode.name=="xml"&&J.state.tagStart===null&&!J.state.context&&J.state.tokenize.isInText}G&&(W.f=l,W.block=t,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function t(W,G){var J=W.column()===G.indentation,X=y(G.prevLine.stream),te=G.indentedCode,ee=G.prevLine.hr,be=G.list!==!1,ge=(G.listStack[G.listStack.length-1]||0)+3;G.indentedCode=!1;var je=G.indentation;if(G.indentationDiff===null&&(G.indentationDiff=G.indentation,be)){for(G.list=null;je=4&&(te||G.prevLine.fencedCodeEnd||G.prevLine.header||X))return W.skipToEnd(),G.indentedCode=!0,s.code;if(W.eatSpace())return null;if(J&&G.indentation<=ge&&(Ge=W.match(f))&&Ge[1].length<=6)return G.quote=0,G.header=Ge[1].length,G.thisLine.header=!0,L.highlightFormatting&&(G.formatting="header"),G.f=G.inline,v(G);if(G.indentation<=ge&&W.eat(">"))return G.quote=J?1:G.quote+1,L.highlightFormatting&&(G.formatting="quote"),W.eatSpace(),v(G);if(!nt&&!G.setext&&J&&G.indentation<=ge&&(Ge=W.match(p))){var he=Ge[1]?"ol":"ul";return G.indentation=je+W.current().length,G.list=!0,G.quote=0,G.listStack.push(G.indentation),G.em=!1,G.strong=!1,G.code=!1,G.strikethrough=!1,L.taskLists&&W.match(a,!1)&&(G.taskList=!0),G.f=G.inline,L.highlightFormatting&&(G.formatting=["list","list-"+he]),v(G)}else{if(J&&G.indentation<=ge&&(Ge=W.match(m,!0)))return G.quote=0,G.fencedEndRE=new RegExp(Ge[1]+"+ *$"),G.localMode=L.fencedCodeBlockHighlighting&&g(Ge[2]||L.fencedCodeBlockDefaultMode),G.localMode&&(G.localState=Y.startState(G.localMode)),G.f=G.block=A,L.highlightFormatting&&(G.formatting="code-block"),G.code=-1,v(G);if(G.setext||(!He||!be)&&!G.quote&&G.list===!1&&!G.code&&!nt&&!O.test(W.string)&&(Ge=W.lookAhead(1))&&(Ge=Ge.match(x)))return G.setext?(G.header=G.setext,G.setext=0,W.skipToEnd(),L.highlightFormatting&&(G.formatting="header")):(G.header=Ge[0].charAt(0)=="="?1:2,G.setext=G.header),G.thisLine.header=!0,G.f=G.inline,v(G);if(nt)return W.skipToEnd(),G.hr=!0,G.thisLine.hr=!0,s.hr;if(W.peek()==="[")return u(W,G,k)}return u(W,G,G.inline)}function C(W,G){var J=U.token(W,G.htmlState);if(!S){var X=Y.innerMode(U,G.htmlState);(X.mode.name=="xml"&&X.state.tagStart===null&&!X.state.context&&X.state.tokenize.isInText||G.md_inside&&W.current().indexOf(">")>-1)&&(G.f=l,G.block=t,G.htmlState=null)}return J}function A(W,G){var J=G.listStack[G.listStack.length-1]||0,X=G.indentation=W.quote?G.push(s.formatting+"-"+W.formatting[J]+"-"+W.quote):G.push("error"))}if(W.taskOpen)return G.push("meta"),G.length?G.join(" "):null;if(W.taskClosed)return G.push("property"),G.length?G.join(" "):null;if(W.linkHref?G.push(s.linkHref,"url"):(W.strong&&G.push(s.strong),W.em&&G.push(s.em),W.strikethrough&&G.push(s.strikethrough),W.emoji&&G.push(s.emoji),W.linkText&&G.push(s.linkText),W.code&&G.push(s.code),W.image&&G.push(s.image),W.imageAltText&&G.push(s.imageAltText,"link"),W.imageMarker&&G.push(s.imageMarker)),W.header&&G.push(s.header,s.header+"-"+W.header),W.quote&&(G.push(s.quote),!L.maxBlockquoteDepth||L.maxBlockquoteDepth>=W.quote?G.push(s.quote+"-"+W.quote):G.push(s.quote+"-"+L.maxBlockquoteDepth)),W.list!==!1){var X=(W.listStack.length-1)%3;X?X===1?G.push(s.list2):G.push(s.list3):G.push(s.list1)}return W.trailingSpaceNewLine?G.push("trailing-space-new-line"):W.trailingSpace&&G.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),G.length?G.join(" "):null}function o(W,G){return W.match(b,!0)?v(G):void 0}function l(W,G){var J=G.text(W,G);if(typeof J!="undefined")return J;if(G.list)return G.list=null,v(G);if(G.taskList){var X=W.match(a,!0)[1]===" ";return X?G.taskOpen=!0:G.taskClosed=!0,L.highlightFormatting&&(G.formatting="task"),G.taskList=!1,v(G)}if(G.taskOpen=!1,G.taskClosed=!1,G.header&&W.match(/^#+$/,!0))return L.highlightFormatting&&(G.formatting="header"),v(G);var te=W.next();if(G.linkTitle){G.linkTitle=!1;var ee=te;te==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var be="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(W.match(new RegExp(be),!0))return s.linkHref}if(te==="`"){var ge=G.formatting;L.highlightFormatting&&(G.formatting="code"),W.eatWhile("`");var je=W.current().length;if(G.code==0&&(!G.quote||je==1))return G.code=je,v(G);if(je==G.code){var He=v(G);return G.code=0,He}else return G.formatting=ge,v(G)}else if(G.code)return v(G);if(te==="\\"&&(W.next(),L.highlightFormatting)){var nt=v(G),Ge=s.formatting+"-escape";return nt?nt+" "+Ge:Ge}if(te==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return G.imageMarker=!0,G.image=!0,L.highlightFormatting&&(G.formatting="image"),v(G);if(te==="["&&G.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return G.imageMarker=!1,G.imageAltText=!0,L.highlightFormatting&&(G.formatting="image"),v(G);if(te==="]"&&G.imageAltText){L.highlightFormatting&&(G.formatting="image");var nt=v(G);return G.imageAltText=!1,G.image=!1,G.inline=G.f=M,nt}if(te==="["&&!G.image)return G.linkText&&W.match(/^.*?\]/)||(G.linkText=!0,L.highlightFormatting&&(G.formatting="link")),v(G);if(te==="]"&&G.linkText){L.highlightFormatting&&(G.formatting="link");var nt=v(G);return G.linkText=!1,G.inline=G.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?M:l,nt}if(te==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){G.f=G.inline=c,L.highlightFormatting&&(G.formatting="link");var nt=v(G);return nt?nt+=" ":nt="",nt+s.linkInline}if(te==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){G.f=G.inline=c,L.highlightFormatting&&(G.formatting="link");var nt=v(G);return nt?nt+=" ":nt="",nt+s.linkEmail}if(L.xml&&te==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=W.string.indexOf(">",W.pos);if(he!=-1){var ce=W.string.substring(W.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ce)&&(G.md_inside=!0)}return W.backUp(1),G.htmlState=Y.startState(U),h(W,G,C)}if(L.xml&&te==="<"&&W.match(/^\/\w*?>/))return G.md_inside=!1,"tag";if(te==="*"||te==="_"){for(var Ee=1,fe=W.pos==1?" ":W.string.charAt(W.pos-2);Ee<3&&W.eat(te);)Ee++;var Ne=W.peek()||" ",Ce=!/\s/.test(Ne)&&(!i.test(Ne)||/\s/.test(fe)||i.test(fe)),xe=!/\s/.test(fe)&&(!i.test(fe)||/\s/.test(Ne)||i.test(Ne)),ze=null,Le=null;if(Ee%2&&(!G.em&&Ce&&(te==="*"||!xe||i.test(fe))?ze=!0:G.em==te&&xe&&(te==="*"||!Ce||i.test(Ne))&&(ze=!1)),Ee>1&&(!G.strong&&Ce&&(te==="*"||!xe||i.test(fe))?Le=!0:G.strong==te&&xe&&(te==="*"||!Ce||i.test(Ne))&&(Le=!1)),Le!=null||ze!=null){L.highlightFormatting&&(G.formatting=ze==null?"strong":Le==null?"em":"strong em"),ze===!0&&(G.em=te),Le===!0&&(G.strong=te);var He=v(G);return ze===!1&&(G.em=!1),Le===!1&&(G.strong=!1),He}}else if(te===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return v(G);W.backUp(1)}if(L.strikethrough){if(te==="~"&&W.eatWhile(te)){if(G.strikethrough){L.highlightFormatting&&(G.formatting="strikethrough");var He=v(G);return G.strikethrough=!1,He}else if(W.match(/^[^\s]/,!1))return G.strikethrough=!0,L.highlightFormatting&&(G.formatting="strikethrough"),v(G)}else if(te===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return v(G);W.backUp(2)}}if(L.emoji&&te===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){G.emoji=!0,L.highlightFormatting&&(G.formatting="emoji");var Fe=v(G);return G.emoji=!1,Fe}return te===" "&&(W.match(/^ +$/,!1)?G.trailingSpace++:G.trailingSpace&&(G.trailingSpaceNewLine=!0)),v(G)}function c(W,G){var J=W.next();if(J===">"){G.f=G.inline=l,L.highlightFormatting&&(G.formatting="link");var X=v(G);return X?X+=" ":X="",X+s.linkInline}return W.match(/^[^>]+/,!0),s.linkInline}function M(W,G){if(W.eatSpace())return null;var J=W.next();return J==="("||J==="["?(G.f=G.inline=R(J==="("?")":"]"),L.highlightFormatting&&(G.formatting="link-string"),G.linkHref=!0,v(G)):"error"}var P={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function R(W){return function(G,J){var X=G.next();if(X===W){J.f=J.inline=l,L.highlightFormatting&&(J.formatting="link-string");var te=v(J);return J.linkHref=!1,te}return G.match(P[W]),J.linkHref=!0,v(J)}}function k(W,G){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(G.f=I,W.next(),L.highlightFormatting&&(G.formatting="link"),G.linkText=!0,v(G)):u(W,G,l)}function I(W,G){if(W.match(/^\]:/,!0)){G.f=G.inline=F,L.highlightFormatting&&(G.formatting="link");var J=v(G);return G.linkText=!1,J}return W.match(/^([^\]\\]|\\.)+/,!0),s.linkText}function F(W,G){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?G.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),G.f=G.inline=l,s.linkHref+" url")}var V={startState:function(){return{f:t,prevLine:{stream:null},thisLine:{stream:null},block:t,htmlState:null,indentation:0,inline:l,text:o,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(W){return{f:W.f,prevLine:W.prevLine,thisLine:W.thisLine,block:W.block,htmlState:W.htmlState&&Y.copyState(U,W.htmlState),indentation:W.indentation,localMode:W.localMode,localState:W.localMode?Y.copyState(W.localMode,W.localState):null,inline:W.inline,text:W.text,formatting:!1,linkText:W.linkText,linkTitle:W.linkTitle,linkHref:W.linkHref,code:W.code,em:W.em,strong:W.strong,strikethrough:W.strikethrough,emoji:W.emoji,header:W.header,setext:W.setext,hr:W.hr,taskList:W.taskList,list:W.list,listStack:W.listStack.slice(0),quote:W.quote,indentedCode:W.indentedCode,trailingSpace:W.trailingSpace,trailingSpaceNewLine:W.trailingSpaceNewLine,md_inside:W.md_inside,fencedEndRE:W.fencedEndRE}},token:function(W,G){if(G.formatting=!1,W!=G.thisLine.stream){if(G.header=0,G.hr=!1,W.match(/^\s*$/,!0))return E(G),null;if(G.prevLine=G.thisLine,G.thisLine={stream:W},G.taskList=!1,G.trailingSpace=0,G.trailingSpaceNewLine=!1,!G.localState&&(G.f=G.block,G.f!=C)){var J=W.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(G.indentation=J,G.indentationDiff=null,J>0)return null}}return G.f(W,G)},innerMode:function(W){return W.block==C?{state:W.htmlState,mode:U}:W.localState?{state:W.localState,mode:W.localMode}:{state:W,mode:V}},indent:function(W,G,J){return W.block==C&&U.indent?U.indent(W.htmlState,G,J):W.localState&&W.localMode.indent?W.localMode.indent(W.localState,G,J):Y.Pass},blankLine:E,getType:v,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return V},"xml"),Y.defineMIME("text/markdown","markdown"),Y.defineMIME("text/x-markdown","markdown")})},loD1:function(Ye,ie){function _(Y,j,L,U,S,g,s){if(S===0)return!1;var d=S,w=0,p=Y;if(s>j+d&&s>U+d||sY+d&&g>L+d||g=p.x&&d<=p.x+p.width&&w>=p.y&&w<=p.y+p.height},clone:function(){return new g(this.x,this.y,this.width,this.height)},copy:function(d){this.x=d.x,this.y=d.y,this.width=d.width,this.height=d.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},g.create=function(d){return new g(d.x,d.y,d.width,d.height)};var s=g;Ye.exports=s},mLcG:function(Ye,ie){var _=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Y){setTimeout(Y,16)};Ye.exports=_},mgmH:function(Ye,ie,_){"use strict";_.d(ie,"d",function(){return x}),_.d(ie,"b",function(){return b}),_.d(ie,"e",function(){return m}),_.d(ie,"c",function(){return O}),_.d(ie,"n",function(){return i}),_.d(ie,"g",function(){return r}),_.d(ie,"h",function(){return u}),_.d(ie,"j",function(){return y}),_.d(ie,"a",function(){return E}),_.d(ie,"l",function(){return t}),_.d(ie,"f",function(){return C}),_.d(ie,"k",function(){return A}),_.d(ie,"m",function(){return v}),_.d(ie,"i",function(){return o}),_.d(ie,"o",function(){return l}),_.d(ie,"r",function(){return c}),_.d(ie,"q",function(){return M}),_.d(ie,"p",function(){return P});var Y=_("miYZ"),j=_("tsqr"),L=_("k1fw"),U=_("9og8"),S=_("WmNS"),g=_.n(S),s=_("oUNq"),d=_("9kvl"),w=_("1vsH"),p=_("m3rI"),a=function(){Object(d.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},f=function(){Object(d.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},x=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return a(),W.next=3,Object(s.s)(Object(L.a)({},I));case 3:if(F=W.sent,!(F.status===0)){W.next=7;break}return W.next=7,Object(w.u)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/export_couser_info.json"),query:I}));case 7:f();case 8:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),b=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.q)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_member_act_score")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),m=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.t)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_score")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_score")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),O=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.r)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),i=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.y)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),r=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.u)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_homework")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),u=function(){var R=Object(U.a)(g.a.mark(function k(I,F){var V;return g.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(s.w)(Object(L.a)({},I));case 2:V=G.sent,V.status===0?(j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/").concat(F))):V.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/").concat(F)));case 4:case"end":return G.stop()}},k)}));return function(I,F){return R.apply(this,arguments)}}(),h=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return a(),W.next=3,Object(s.v)(Object(L.a)({},I));case 3:if(F=W.sent,!(F.status===0)){W.next=7;break}return W.next=7,Object(w.u)("",Object(w.U)({url:p.a.API_SERVER+"/api/homework_commons/".concat(I.categoryId,"/works_list.zip"),query:I}));case 7:f();case 8:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),y=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return a(),W.next=3,Object(s.z)(Object(L.a)({},I));case 3:if(F=W.sent,!(F.status===0)){W.next=7;break}return W.next=7,Object(w.u)("",Object(w.U)({url:p.a.API_SERVER+"/api/polls/".concat(I.categoryId,"/commit_result.xlsx"),query:I}));case 7:f();case 8:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),E=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/attendances/export_xlsx_data.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),t=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/video_study_statics.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),C=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/export_course_students_info.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),A=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/item_banks/export.xlsx",query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),v=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),o=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.x)(Object(L.a)({},I));case 2:F=W.sent,F.status===0?(j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/exercise_score"))):F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/exercise_score")));case 4:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),l=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),V.next=3,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/export_records/".concat(I.id,".xlsx"),query:I}));case 3:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),c=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),M=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/ec_years/".concat(I==null?void 0:I.ec_year_id,"/ec_training_objectives.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),P=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/ec_years/".concat(I==null?void 0:I.ec_year_id,"/ec_graduation_requirements.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}()},mxOx:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___1OKqY",flex_space_between:"flex_space_between___9LtA4",flex_box_vertical_center:"flex_box_vertical_center___1eoO3",flex_box_center_end:"flex_box_center_end___2z5cA",flex_box_column:"flex_box_column___EmE-R",wrap:"wrap___1KKiW",control:"control___1QLLH",btn:"btn___2uv5p",customTable:"customTable___1j8g4",bgH:"bgH___38VTN",cusModal:"cusModal___3m_hn",imgWrap:"imgWrap___1V_Vd",img:"img___3YaEG",iBtn:"iBtn___2kloF",text:"text___3R4ja",no:"no___1ION1",textP:"textP___1nOEX",video:"video___TW5nF",sys:"sys___lyOTD",li:"li___1BzVB",d1:"d1___fIaVJ",b1:"b1____gBjv",es:"es___2kUwZ"}},n1HI:function(Ye,ie,_){var Y=_("hX1E"),j=Y.normalizeRadian,L=Math.PI*2;function U(S,g,s,d,w,p,a,f,x){if(a===0)return!1;var b=a;f-=S,x-=g;var m=Math.sqrt(f*f+x*x);if(m-b>s||m+bw&&(w+=L);var i=Math.atan2(x,f);return i<0&&(i+=L),i>=d&&i<=w||i+L>=d&&i+L<=w}ie.containStroke=U},n6Mw:function(Ye,ie,_){var Y=_("SrGk"),j=_("bYtY"),L=_("Fofx");function U(g,s){Y.call(this,g,s,"clipPath","__clippath_in_use__")}j.inherits(U,Y),U.prototype.update=function(g){var s=this.getSvgElement(g);s&&this.updateDom(s,g.__clipPaths,!1);var d=this.getTextSvgElement(g);d&&this.updateDom(d,g.__clipPaths,!0),this.markUsed(g)},U.prototype.updateDom=function(g,s,d){if(s&&s.length>0){var w=this.getDefs(!0),p=s[0],a,f,x=d?"_textDom":"_dom";p[x]?(f=p[x].getAttribute("id"),a=p[x],w.contains(a)||w.appendChild(a)):(f="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",f),w.appendChild(a),p[x]=a);var b=this.getSvgProxy(p);if(p.transform&&p.parent.invTransform&&!d){var m=Array.prototype.slice.call(p.transform);L.mul(p.transform,p.parent.invTransform,p.transform),b.brush(p),p.transform=m}else b.brush(p);var O=this.getSvgElement(p);a.innerHTML="",a.appendChild(O.cloneNode()),g.setAttribute("clip-path","url(#"+f+")"),s.length>1&&this.updateDom(a,s.slice(1),d)}else g&&g.setAttribute("clip-path","none")},U.prototype.markUsed=function(g){var s=this;g.__clipPaths&&j.each(g.__clipPaths,function(d){d._dom&&Y.prototype.markUsed.call(s,d._dom),d._textDom&&Y.prototype.markUsed.call(s,d._textDom)})};var S=U;Ye.exports=S},n6Qo:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return d});var Y=_("q1tI"),j=_("biw7"),L=_("fyJ8");function U(w){var p=w.className,a=w.index,f=w.children,x=w.colSpan,b=w.rowSpan,m=Y.useContext(j.a),O=m.prefixCls,i=m.fixedInfoList,r=i[a];return Y.createElement(L.a,Object.assign({className:p,index:a,component:"td",prefixCls:O,record:null,dataIndex:null,render:function(){return{children:f,props:{colSpan:x,rowSpan:b}}}},r))}function S(w){return Y.createElement("tr",Object.assign({},w))}function g(w){var p=w.children,a=Y.useContext(j.a),f=a.prefixCls;return Y.createElement("tfoot",{className:"".concat(f,"-summary")},p)}var s=ie.b=g,d={Cell:U,Row:S}},nCxF:function(Ye,ie,_){var Y=_("QBsz"),j=Y.min,L=Y.max,U=Y.scale,S=Y.distance,g=Y.add,s=Y.clone,d=Y.sub;function w(p,a,f,x){var b=[],m=[],O=[],i=[],r,u,h,y;if(x){h=[Infinity,Infinity],y=[-Infinity,-Infinity];for(var E=0,t=p.length;Ej&&g>U||gS?s:0}Ye.exports=_},i58Z:function(Ye,ie,_){Ye.exports={wrap:"wrap___Yg2Z9",addKnowledge:"addKnowledge___2FlI0",disabled:"disabled___1_wxN"}},iXp4:function(Ye,ie,_){var Y=_("ItGF"),j=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function L(U){return Y.browser.ie&&Y.browser.version>=11?function(){var S=this.__clipPaths,g=this.style,s;if(S)for(var d=0;d0&&f.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},f.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},J.map(function(he,ce){return f.a.createElement(j.a,{justify:"space-between",style:{marginTop:"10px"},key:he.course_group_id},f.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},he.name),f.a.createElement("img",{src:O.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){A(F.filter(function(fe){return"".concat(fe.course_group_name)!="".concat(he.course_group_name)}))}}))})))))};ie.a=r},juDX:function(Ye,ie,_){_("P47w");var Y=_("aX58"),j=Y.registerPainter,L=_("3CBa");j("svg",L)},k3GJ:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return mr});var Y=_("rePB"),j=_("ODXe"),L=_("Ff2n"),U=_("VTBJ"),S=_("q1tI"),g=_("TSYQ"),s=_.n(g),d=_("Zm9Q"),w=_("6cGi"),p=_("KQm4"),a=_("xEkU"),f=_.n(a),x=_("t23M");function y($e){var pt=Object(S.useRef)(),vt=Object(S.useRef)(!1);function Me(){for(var we=arguments.length,Ke=new Array(we),De=0;Dezt&&(yn=zt-on),Object(S.useMemo)(function(){if(!Ke.length)return[0,0];for(var zn=Ke.length,gr=zn,Xr=0;Xrgt+yn){gr=Xr-1;break}}for(var aa=0,hn=zn-1;hn>=0;hn-=1){var Lr=$e.get(Ke[hn].key)||b;if(Lr[Bt]1&&arguments[1]!==void 0?arguments[1]:!1,Me=pt&&typeof pt.getBoundingClientRect=="function"&&pt.getBoundingClientRect().width;if(Me){if(vt){var we=getComputedStyle(pt),Ke=we.marginLeft,De=we.marginRight;Me+=+Ke.replace("px","")+ +De.replace("px","")}Me=+Me.toFixed(6)}return Me||0},Ve=function(pt,vt,Me){pt&&Object(I.a)(pt.style)==="object"&&(pt.style[vt]=Me)},at=function(){return fe.any},At=_("bdgK"),Rt=_("i8i4"),tn=_.n(Rt),Qt=_("wgJM"),Cn=_("l4aY"),Un=_("m+aA"),mt=_("c+Xe"),lt=_("zT1h"),Ht=_("QC+M");function sn($e,pt,vt){return vt?$e[0]===pt[0]:$e[0]===pt[0]&&$e[1]===pt[1]}function Tt($e,pt,vt){var Me=$e[pt]||{};return Object(U.a)(Object(U.a)({},Me),vt)}function wt($e,pt,vt,Me){for(var we=vt.points,Ke=Object.keys($e),De=0;De1&&arguments[1]!==void 0?arguments[1]:2;pt();var Ke=Object(Qt.a)(function(){we<=1?Me({isCanceled:function(){return Ke!==$e.current}}):vt(Me,we-1)});$e.current=Ke}return S.useEffect(function(){return function(){pt()}},[]),[vt,pt]},Te=[Pt,$t,Zt,bt],ve=!1,Q=!0;function $($e){return $e===Zt||$e===bt}var re=function($e,pt){var vt=S.useState(Xt),Me=Object(j.a)(vt,2),we=Me[0],Ke=Me[1],De=bn(),st=Object(j.a)(De,2),ct=st[0],Bt=st[1];function gt(){Ke(Pt)}return jt(function(){if(we!==Xt&&we!==bt){var zt=Te.indexOf(we),Ft=Te[zt+1],on=pt(we);on===ve?Ke(Ft):ct(function(yn){function zn(){if(yn.isCanceled())return;Ke(Ft)}on===!0?zn():Promise.resolve(on).then(zn)})}},[$e,we]),S.useEffect(function(){return function(){Bt()}},[]),[gt,we]},de=function($e){var pt=Object(S.useRef)(),vt=Object(S.useRef)($e);vt.current=$e;var Me=S.useCallback(function(De){vt.current(De)},[]);function we(De){De&&(De.removeEventListener(mn,Me),De.removeEventListener(_t,Me))}function Ke(De){pt.current&&pt.current!==De&&we(pt.current),De&&De!==pt.current&&(De.addEventListener(mn,Me),De.addEventListener(_t,Me),pt.current=De)}return S.useEffect(function(){return function(){we(pt.current)}},[]),[Ke,we]};function Ue($e,pt,vt,Me){var we=Me.motionEnter,Ke=we===void 0?!0:we,De=Me.motionAppear,st=De===void 0?!0:De,ct=Me.motionLeave,Bt=ct===void 0?!0:ct,gt=Me.motionDeadline,zt=Me.motionLeaveImmediately,Ft=Me.onAppearPrepare,on=Me.onEnterPrepare,yn=Me.onLeavePrepare,zn=Me.onAppearStart,gr=Me.onEnterStart,Xr=Me.onLeaveStart,Jr=Me.onAppearActive,aa=Me.onEnterActive,hn=Me.onLeaveActive,Lr=Me.onAppearEnd,oa=Me.onEnterEnd,ya=Me.onLeaveEnd,yt=Me.onVisibleChanged,Fr=ft(),un=Object(j.a)(Fr,2),Rn=un[0],xr=un[1],Ca=ft(Gt),Nr=Object(j.a)(Ca,2),Sr=Nr[0],xa=Nr[1],Vr=ft(null),nr=Object(j.a)(Vr,2),Wr=nr[0],Wn=nr[1],pn=Object(S.useRef)(!1),Rr=Object(S.useRef)(null),qn=Object(S.useRef)(!1),Ar=Object(S.useRef)(null);function Da(){var $a=vt();return $a||Ar.current}var Ia=Object(S.useRef)(!1);function La($a){var Va=Da();if($a&&!$a.deadline&&$a.target!==Va)return;var di;Sr===Lt&&Ia.current?di=Lr==null?void 0:Lr(Va,$a):Sr===Be&&Ia.current?di=oa==null?void 0:oa(Va,$a):Sr===ot&&Ia.current&&(di=ya==null?void 0:ya(Va,$a)),di!==!1&&!qn.current&&(xa(Gt),Wn(null))}var Br=de(La),$r=Object(j.a)(Br,1),ka=$r[0],Na=S.useMemo(function(){var $a,Va,di;switch(Sr){case"appear":return $a={},Object(Y.a)($a,Pt,Ft),Object(Y.a)($a,$t,zn),Object(Y.a)($a,Zt,Jr),$a;case"enter":return Va={},Object(Y.a)(Va,Pt,on),Object(Y.a)(Va,$t,gr),Object(Y.a)(Va,Zt,aa),Va;case"leave":return di={},Object(Y.a)(di,Pt,yn),Object(Y.a)(di,$t,Xr),Object(Y.a)(di,Zt,hn),di;default:return{}}},[Sr]),qa=re(Sr,function($a){if($a===Pt){var Va=Na[Pt];return Va?Va(Da()):ve}if(Ga in Na){var di;Wn(((di=Na[Ga])===null||di===void 0?void 0:di.call(Na,Da(),null))||null)}return Ga===Zt&&(ka(Da()),gt>0&&(clearTimeout(Rr.current),Rr.current=setTimeout(function(){La({deadline:!0})},gt))),Q}),ri=Object(j.a)(qa,2),ni=ri[0],Ga=ri[1],Ai=$(Ga);Ia.current=Ai,jt(function(){xr(pt);var $a=pn.current;if(pn.current=!0,!$e)return;var Va;!$a&&pt&&st&&(Va=Lt),$a&&pt&&Ke&&(Va=Be),($a&&!pt&&Bt||!$a&&zt&&!pt&&Bt)&&(Va=ot),Va&&(xa(Va),ni())},[pt]),Object(S.useEffect)(function(){(Sr===Lt&&!st||Sr===Be&&!Ke||Sr===ot&&!Bt)&&xa(Gt)},[st,Ke,Bt]),Object(S.useEffect)(function(){return function(){clearTimeout(Rr.current),qn.current=!0}},[]),Object(S.useEffect)(function(){Rn!==void 0&&Sr===Gt&&(yt==null||yt(Rn))},[Rn,Sr]);var Di=Wr;return Na[Pt]&&Ga===$t&&(Di=Object(U.a)({transition:"none"},Di)),[Sr,Ga,Di,Rn!=null?Rn:pt]}var it=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){return Object(C.a)(this,vt),pt.apply(this,arguments)}return Object(A.a)(vt,[{key:"render",value:function(){return this.props.children}}]),vt}(S.Component),Mt=it;function Ln($e){var pt=$e;Object(I.a)($e)==="object"&&(pt=$e.transitionSupport);function vt(we){return!!(we.motionName&&pt)}var Me=S.forwardRef(function(we,Ke){var De=we.visible,st=De===void 0?!0:De,ct=we.removeOnLeave,Bt=ct===void 0?!0:ct,gt=we.forceRender,zt=we.children,Ft=we.motionName,on=we.leavedClassName,yn=we.eventProps,zn=vt(we),gr=Object(S.useRef)(),Xr=Object(S.useRef)();function Jr(){try{return Object(Un.a)(gr.current||Xr.current)}catch(xa){return null}}var aa=Ue(zn,st,Jr,we),hn=Object(j.a)(aa,4),Lr=hn[0],oa=hn[1],ya=hn[2],yt=hn[3],Fr=S.useRef(yt);yt&&(Fr.current=!0);var un=Object(S.useRef)(Ke);un.current=Ke;var Rn=S.useCallback(function(xa){gr.current=xa,Object(mt.b)(un.current,xa)},[]),xr,Ca=Object(U.a)(Object(U.a)({},yn),{},{visible:st});if(!zt)xr=null;else if(Lr===Gt||!vt(we))yt?xr=zt(Object(U.a)({},Ca),Rn):!Bt&&Fr.current?xr=zt(Object(U.a)(Object(U.a)({},Ca),{},{className:on}),Rn):gt?xr=zt(Object(U.a)(Object(U.a)({},Ca),{},{style:{display:"none"}}),Rn):xr=null;else{var Nr,Sr;oa===Pt?Sr="prepare":$(oa)?Sr="active":oa===$t&&(Sr="start"),xr=zt(Object(U.a)(Object(U.a)({},Ca),{},{className:s()(pe(Ft,Lr),(Nr={},Object(Y.a)(Nr,pe(Ft,"".concat(Lr,"-").concat(Sr)),Sr),Object(Y.a)(Nr,Ft,typeof Ft=="string"),Nr)),style:ya}),Rn)}return S.createElement(Mt,{ref:Xr},xr)});return Me.displayName="CSSMotion",Me}var kn=Ln(Dt),St="add",an="keep",Pn="remove",dn="removed";function jn($e){var pt;return $e&&Object(I.a)($e)==="object"&&"key"in $e?pt=$e:pt={key:$e},Object(U.a)(Object(U.a)({},pt),{},{key:String(pt.key)})}function Bn(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(jn)}function ne(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],vt=[],Me=0,we=pt.length,Ke=Bn($e),De=Bn(pt);Ke.forEach(function(Bt){for(var gt=!1,zt=Me;zt1});return ct.forEach(function(Bt){vt=vt.filter(function(gt){var zt=gt.key,Ft=gt.status;return zt!==Bt||Ft!==Pn}),vt.forEach(function(gt){gt.key===Bt&&(gt.status=an)})}),vt}var B=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function H($e){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kn,vt=function(Me){Object(o.a)(Ke,Me);var we=Object(l.a)(Ke);function Ke(){var De;return Object(C.a)(this,Ke),De=we.apply(this,arguments),De.state={keyEntities:[]},De.removeKey=function(st){De.setState(function(ct){var Bt=ct.keyEntities;return{keyEntities:Bt.map(function(gt){return gt.key!==st?gt:Object(U.a)(Object(U.a)({},gt),{},{status:dn})})}})},De}return Object(A.a)(Ke,[{key:"render",value:function(){var st=this,ct=this.state.keyEntities,Bt=this.props,gt=Bt.component,zt=Bt.children,Ft=Bt.onVisibleChanged,on=Object(L.a)(Bt,["component","children","onVisibleChanged"]),yn=gt||S.Fragment,zn={};return B.forEach(function(gr){zn[gr]=on[gr],delete on[gr]}),delete on.keys,S.createElement(yn,on,ct.map(function(gr){var Xr=gr.status,Jr=Object(L.a)(gr,["status"]),aa=Xr===St||Xr===an;return S.createElement(pt,Object(t.a)({},zn,{key:Jr.key,visible:aa,eventProps:Jr,onVisibleChanged:function(Lr){Ft==null||Ft(Lr,{key:Jr.key}),Lr||st.removeKey(Jr.key)}}),zt)}))}}],[{key:"getDerivedStateFromProps",value:function(st,ct){var Bt=st.keys,gt=ct.keyEntities,zt=Bn(Bt),Ft=ne(gt,zt);return{keyEntities:Ft.filter(function(on){var yn=gt.find(function(zn){var gr=zn.key;return on.key===gr});return!(yn&&yn.status===dn&&on.status===Pn)})}}}]),Ke}(S.Component);return vt.defaultProps={component:"div"},vt}var ae=H(Dt),ue=kn;function oe($e){var pt=$e.prefixCls,vt=$e.motion,Me=$e.animation,we=$e.transitionName;return vt||(Me?{motionName:"".concat(pt,"-").concat(Me)}:we?{motionName:we}:null)}function ht($e){var pt=$e.prefixCls,vt=$e.visible,Me=$e.zIndex,we=$e.mask,Ke=$e.maskMotion,De=$e.maskAnimation,st=$e.maskTransitionName;if(!we)return null;var ct={};return(Ke||st||De)&&(ct=Object(U.a)({motionAppear:!0},oe({motion:Ke,prefixCls:pt,transitionName:st,animation:De}))),S.createElement(ue,Object(t.a)({},ct,{visible:vt,removeOnLeave:!0}),function(Bt){var gt=Bt.className;return S.createElement("div",{style:{zIndex:Me},className:s()("".concat(pt,"-mask"),gt)})})}var vn=_("9mu1"),Tn=_("o0o1"),fr=_.n(Tn),Vt=_("HaE+"),Et=["measure","align",null,"motion"],Jt=function($e,pt){var vt=Object(S.useState)(null),Me=Object(j.a)(vt,2),we=Me[0],Ke=Me[1],De=Object(S.useRef)(),st=Object(S.useRef)(!1);function ct(zt){st.current||Ke(zt)}function Bt(){Qt.a.cancel(De.current)}function gt(zt){Bt(),De.current=Object(Qt.a)(function(){ct(function(Ft){switch(we){case"align":return"motion";case"motion":return"stable";default:}return Ft}),zt==null||zt()})}return Object(S.useEffect)(function(){ct("measure")},[$e]),Object(S.useEffect)(function(){switch(we){case"measure":pt();break;default:}we&&(De.current=Object(Qt.a)(Object(Vt.a)(fr.a.mark(function zt(){var Ft,on;return fr.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:Ft=Et.indexOf(we),on=Et[Ft+1],on&&Ft!==-1&&ct(on);case 3:case"end":return zn.stop()}},zt)}))))},[we]),Object(S.useEffect)(function(){return function(){st.current=!0,Bt()}},[]),[we,gt]},Fn=function($e){var pt=S.useState({width:0,height:0}),vt=Object(j.a)(pt,2),Me=vt[0],we=vt[1];function Ke(st){we({width:st.offsetWidth,height:st.offsetHeight})}var De=S.useMemo(function(){var st={};if($e){var ct=Me.width,Bt=Me.height;$e.indexOf("height")!==-1&&Bt?st.height=Bt:$e.indexOf("minHeight")!==-1&&Bt&&(st.minHeight=Bt),$e.indexOf("width")!==-1&&ct?st.width=ct:$e.indexOf("minWidth")!==-1&&ct&&(st.minWidth=ct)}return st},[$e,Me]);return[De,Ke]},Vn=S.forwardRef(function($e,pt){var vt=$e.visible,Me=$e.prefixCls,we=$e.className,Ke=$e.style,De=$e.children,st=$e.zIndex,ct=$e.stretch,Bt=$e.destroyPopupOnHide,gt=$e.forceRender,zt=$e.align,Ft=$e.point,on=$e.getRootDomNode,yn=$e.getClassNameFromAlign,zn=$e.onAlign,gr=$e.onMouseEnter,Xr=$e.onMouseLeave,Jr=$e.onMouseDown,aa=$e.onTouchStart,hn=Object(S.useRef)(),Lr=Object(S.useRef)(),oa=Object(S.useState)(),ya=Object(j.a)(oa,2),yt=ya[0],Fr=ya[1],un=Fn(ct),Rn=Object(j.a)(un,2),xr=Rn[0],Ca=Rn[1];function Nr(){ct&&Ca(on())}var Sr=Jt(vt,Nr),xa=Object(j.a)(Sr,2),Vr=xa[0],nr=xa[1],Wr=Object(S.useRef)();function Wn(){return Ft||on}function pn(){var Br;(Br=hn.current)===null||Br===void 0||Br.forceAlign()}function Rr(Br,$r){var ka=yn($r);yt!==ka&&Fr(ka),Vr==="align"&&(yt!==ka?Promise.resolve().then(function(){pn()}):nr(function(){var Na;(Na=Wr.current)===null||Na===void 0||Na.call(Wr)}),zn==null||zn(Br,$r))}var qn=Object(U.a)({},oe($e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Br){var $r=qn[Br];qn[Br]=function(ka,Na){return nr(),$r==null?void 0:$r(ka,Na)}});function Ar(){return new Promise(function(Br){Wr.current=Br})}S.useEffect(function(){!qn.motionName&&Vr==="motion"&&nr()},[qn.motionName,Vr]),S.useImperativeHandle(pt,function(){return{forceAlign:pn,getElement:function(){return Lr.current}}});var Da=Object(U.a)(Object(U.a)({},xr),{},{zIndex:st,opacity:Vr==="motion"||Vr==="stable"||!vt?void 0:0,pointerEvents:Vr==="stable"?void 0:"none"},Ke),Ia=!0;(zt==null?void 0:zt.points)&&(Vr==="align"||Vr==="stable")&&(Ia=!1);var La=De;return S.Children.count(De)>1&&(La=S.createElement("div",{className:"".concat(Me,"-content")},De)),S.createElement(ue,Object(t.a)({visible:vt,ref:Lr,leavedClassName:"".concat(Me,"-hidden")},qn,{onAppearPrepare:Ar,onEnterPrepare:Ar,removeOnLeave:Bt,forceRender:gt}),function(Br,$r){var ka=Br.className,Na=Br.style,qa=s()(Me,we,yt,ka);return S.createElement(vn.a,{target:Wn(),key:"popup",ref:hn,monitorWindowResize:!0,disabled:Ia,align:zt,onAlign:Rr},S.createElement("div",{ref:$r,className:qa,onMouseEnter:gr,onMouseLeave:Xr,onMouseDownCapture:Jr,onTouchStartCapture:aa,style:Object(U.a)(Object(U.a)({},Na),Da)},La))})});Vn.displayName="PopupInner";var Kn=Vn,ir=S.forwardRef(function($e,pt){var vt=$e.prefixCls,Me=$e.visible,we=$e.zIndex,Ke=$e.children,De=$e.mobile;De=De===void 0?{}:De;var st=De.popupClassName,ct=De.popupStyle,Bt=De.popupMotion,gt=Bt===void 0?{}:Bt,zt=De.popupRender,Ft=S.useRef();S.useImperativeHandle(pt,function(){return{forceAlign:function(){},getElement:function(){return Ft.current}}});var on=Object(U.a)({zIndex:we},ct),yn=Ke;return S.Children.count(Ke)>1&&(yn=S.createElement("div",{className:"".concat(vt,"-content")},Ke)),zt&&(yn=zt(yn)),S.createElement(ue,Object(t.a)({visible:Me,ref:Ft,removeOnLeave:!0},gt),function(zn,gr){var Xr=zn.className,Jr=zn.style,aa=s()(vt,st,Xr);return S.createElement("div",{ref:gr,className:aa,style:Object(U.a)(Object(U.a)({},Jr),on)},yn)})});ir.displayName="MobilePopupInner";var jr=ir,ua=["visible","mobile"],Yr=S.forwardRef(function($e,pt){var vt=$e.visible,Me=$e.mobile,we=Object(L.a)($e,ua),Ke=Object(S.useState)(vt),De=Object(j.a)(Ke,2),st=De[0],ct=De[1],Bt=Object(S.useState)(!1),gt=Object(j.a)(Bt,2),zt=gt[0],Ft=gt[1],on=Object(U.a)(Object(U.a)({},we),{},{visible:st});Object(S.useEffect)(function(){ct(vt),vt&&Me&&Ft(Qe())},[vt,Me]);var yn=zt?S.createElement(jr,Object(t.a)({},on,{mobile:Me,ref:pt})):S.createElement(Kn,Object(t.a)({},on,{ref:pt}));return S.createElement("div",null,S.createElement(ht,on),yn)});Yr.displayName="Popup";var Tr=Yr,Jn=S.createContext(null),hr=Jn;function Sn(){}function On(){return""}function or($e){return $e?$e.ownerDocument:window.document}var Dn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function pr($e){var pt=function(vt){Object(o.a)(we,vt);var Me=Object(l.a)(we);function we(Ke){var De;Object(C.a)(this,we),De=Me.call(this,Ke),De.popupRef=S.createRef(),De.triggerRef=S.createRef(),De.attachId=void 0,De.clickOutsideHandler=void 0,De.touchOutsideHandler=void 0,De.contextMenuOutsideHandler1=void 0,De.contextMenuOutsideHandler2=void 0,De.mouseDownTimeout=void 0,De.focusTime=void 0,De.preClickTime=void 0,De.preTouchTime=void 0,De.delayTimer=void 0,De.hasPopupMouseDown=void 0,De.onMouseEnter=function(ct){var Bt=De.props.mouseEnterDelay;De.fireEvents("onMouseEnter",ct),De.delaySetPopupVisible(!0,Bt,Bt?null:ct)},De.onMouseMove=function(ct){De.fireEvents("onMouseMove",ct),De.setPoint(ct)},De.onMouseLeave=function(ct){De.fireEvents("onMouseLeave",ct),De.delaySetPopupVisible(!1,De.props.mouseLeaveDelay)},De.onPopupMouseEnter=function(){De.clearDelayTimer()},De.onPopupMouseLeave=function(ct){var Bt;if(ct.relatedTarget&&!ct.relatedTarget.setTimeout&&Object(Cn.a)((Bt=De.popupRef.current)===null||Bt===void 0?void 0:Bt.getElement(),ct.relatedTarget))return;De.delaySetPopupVisible(!1,De.props.mouseLeaveDelay)},De.onFocus=function(ct){De.fireEvents("onFocus",ct),De.clearDelayTimer(),De.isFocusToShow()&&(De.focusTime=Date.now(),De.delaySetPopupVisible(!0,De.props.focusDelay))},De.onMouseDown=function(ct){De.fireEvents("onMouseDown",ct),De.preClickTime=Date.now()},De.onTouchStart=function(ct){De.fireEvents("onTouchStart",ct),De.preTouchTime=Date.now()},De.onBlur=function(ct){De.fireEvents("onBlur",ct),De.clearDelayTimer(),De.isBlurToHide()&&De.delaySetPopupVisible(!1,De.props.blurDelay)},De.onContextMenu=function(ct){ct.preventDefault(),De.fireEvents("onContextMenu",ct),De.setPopupVisible(!0,ct)},De.onContextMenuClose=function(){De.isContextMenuToShow()&&De.close()},De.onClick=function(ct){if(De.fireEvents("onClick",ct),De.focusTime){var Bt;if(De.preClickTime&&De.preTouchTime?Bt=Math.min(De.preClickTime,De.preTouchTime):De.preClickTime?Bt=De.preClickTime:De.preTouchTime&&(Bt=De.preTouchTime),Math.abs(Bt-De.focusTime)<20)return;De.focusTime=0}De.preClickTime=0,De.preTouchTime=0,De.isClickToShow()&&(De.isClickToHide()||De.isBlurToHide())&&ct&&ct.preventDefault&&ct.preventDefault();var gt=!De.state.popupVisible;(De.isClickToHide()&&!gt||gt&&De.isClickToShow())&&De.setPopupVisible(!De.state.popupVisible,ct)},De.onPopupMouseDown=function(){if(De.hasPopupMouseDown=!0,clearTimeout(De.mouseDownTimeout),De.mouseDownTimeout=window.setTimeout(function(){De.hasPopupMouseDown=!1},0),De.context){var ct;(ct=De.context).onPopupMouseDown.apply(ct,arguments)}},De.onDocumentClick=function(ct){if(De.props.mask&&!De.props.maskClosable)return;var Bt=ct.target,gt=De.getRootDomNode(),zt=De.getPopupDomNode();(!Object(Cn.a)(gt,Bt)||De.isContextMenuOnly())&&!Object(Cn.a)(zt,Bt)&&!De.hasPopupMouseDown&&De.close()},De.getRootDomNode=function(){var ct=De.props.getTriggerDOMNode;if(ct)return ct(De.triggerRef.current);try{var Bt=Object(Un.a)(De.triggerRef.current);if(Bt)return Bt}catch(gt){}return tn.a.findDOMNode(Object(v.a)(De))},De.getPopupClassNameFromAlign=function(ct){var Bt=[],gt=De.props,zt=gt.popupPlacement,Ft=gt.builtinPlacements,on=gt.prefixCls,yn=gt.alignPoint,zn=gt.getPopupClassNameFromAlign;return zt&&Ft&&Bt.push(wt(Ft,on,ct,yn)),zn&&Bt.push(zn(ct)),Bt.join(" ")},De.getComponent=function(){var ct=De.props,Bt=ct.prefixCls,gt=ct.destroyPopupOnHide,zt=ct.popupClassName,Ft=ct.onPopupAlign,on=ct.popupMotion,yn=ct.popupAnimation,zn=ct.popupTransitionName,gr=ct.popupStyle,Xr=ct.mask,Jr=ct.maskAnimation,aa=ct.maskTransitionName,hn=ct.maskMotion,Lr=ct.zIndex,oa=ct.popup,ya=ct.stretch,yt=ct.alignPoint,Fr=ct.mobile,un=ct.forceRender,Rn=De.state,xr=Rn.popupVisible,Ca=Rn.point,Nr=De.getPopupAlign(),Sr={};return De.isMouseEnterToShow()&&(Sr.onMouseEnter=De.onPopupMouseEnter),De.isMouseLeaveToHide()&&(Sr.onMouseLeave=De.onPopupMouseLeave),Sr.onMouseDown=De.onPopupMouseDown,Sr.onTouchStart=De.onPopupMouseDown,S.createElement(Tr,Object(t.a)({prefixCls:Bt,destroyPopupOnHide:gt,visible:xr,point:yt&&Ca,className:zt,align:Nr,onAlign:Ft,animation:yn,getClassNameFromAlign:De.getPopupClassNameFromAlign},Sr,{stretch:ya,getRootDomNode:De.getRootDomNode,style:gr,mask:Xr,zIndex:Lr,transitionName:zn,maskAnimation:Jr,maskTransitionName:aa,maskMotion:hn,ref:De.popupRef,motion:on,mobile:Fr,forceRender:un}),typeof oa=="function"?oa():oa)},De.attachParent=function(ct){Qt.a.cancel(De.attachId);var Bt=De.props,gt=Bt.getPopupContainer,zt=Bt.getDocument,Ft=De.getRootDomNode(),on;gt?(Ft||gt.length===0)&&(on=gt(Ft)):on=zt(De.getRootDomNode()).body,on?on.appendChild(ct):De.attachId=Object(Qt.a)(function(){De.attachParent(ct)})},De.getContainer=function(){var ct=De.props.getDocument,Bt=ct(De.getRootDomNode()).createElement("div");return Bt.style.position="absolute",Bt.style.top="0",Bt.style.left="0",Bt.style.width="100%",De.attachParent(Bt),Bt},De.setPoint=function(ct){var Bt=De.props.alignPoint;if(!Bt||!ct)return;De.setState({point:{pageX:ct.pageX,pageY:ct.pageY}})},De.handlePortalUpdate=function(){De.state.prevPopupVisible!==De.state.popupVisible&&De.props.afterPopupVisibleChange(De.state.popupVisible)},De.triggerContextValue={onPopupMouseDown:De.onPopupMouseDown};var st;return"popupVisible"in Ke?st=!!Ke.popupVisible:st=!!Ke.defaultPopupVisible,De.state={prevPopupVisible:st,popupVisible:st},Dn.forEach(function(ct){De["fire".concat(ct)]=function(Bt){De.fireEvents(ct,Bt)}}),De}return Object(A.a)(we,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var De=this.props,st=this.state;if(st.popupVisible){var ct;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ct=De.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(lt.a)(ct,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ct=ct||De.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(lt.a)(ct,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ct=ct||De.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(lt.a)(ct,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(lt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Qt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var De;return((De=this.popupRef.current)===null||De===void 0?void 0:De.getElement())||null}},{key:"getPopupAlign",value:function(){var De=this.props,st=De.popupPlacement,ct=De.popupAlign,Bt=De.builtinPlacements;return st&&Bt?Tt(Bt,st,ct):ct}},{key:"setPopupVisible",value:function(De,st){var ct=this.props.alignPoint,Bt=this.state.popupVisible;this.clearDelayTimer(),Bt!==De&&("popupVisible"in this.props||this.setState({popupVisible:De,prevPopupVisible:Bt}),this.props.onPopupVisibleChange(De)),ct&&st&&De&&this.setPoint(st)}},{key:"delaySetPopupVisible",value:function(De,st,ct){var Bt=this,gt=st*1e3;if(this.clearDelayTimer(),gt){var zt=ct?{pageX:ct.pageX,pageY:ct.pageY}:null;this.delayTimer=window.setTimeout(function(){Bt.setPopupVisible(De,zt),Bt.clearDelayTimer()},gt)}else this.setPopupVisible(De,ct)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(De){var st=this.props.children.props,ct=this.props;return st[De]&&ct[De]?this["fire".concat(De)]:st[De]||ct[De]}},{key:"isClickToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("click")!==-1||ct.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var De=this.props.action;return De==="contextMenu"||De.length===1&&De[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("contextMenu")!==-1||ct.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var De=this.props,st=De.action,ct=De.hideAction;return st.indexOf("click")!==-1||ct.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("hover")!==-1||ct.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var De=this.props,st=De.action,ct=De.hideAction;return st.indexOf("hover")!==-1||ct.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var De=this.props,st=De.action,ct=De.showAction;return st.indexOf("focus")!==-1||ct.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var De=this.props,st=De.action,ct=De.hideAction;return st.indexOf("focus")!==-1||ct.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var De;(De=this.popupRef.current)===null||De===void 0||De.forceAlign()}}},{key:"fireEvents",value:function(De,st){var ct=this.props.children.props[De];ct&&ct(st);var Bt=this.props[De];Bt&&Bt(st)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var De=this.state.popupVisible,st=this.props,ct=st.children,Bt=st.forceRender,gt=st.alignPoint,zt=st.className,Ft=st.autoDestroy,on=S.Children.only(ct),yn={key:"trigger"};this.isContextMenuToShow()?yn.onContextMenu=this.onContextMenu:yn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(yn.onClick=this.onClick,yn.onMouseDown=this.onMouseDown,yn.onTouchStart=this.onTouchStart):(yn.onClick=this.createTwoChains("onClick"),yn.onMouseDown=this.createTwoChains("onMouseDown"),yn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(yn.onMouseEnter=this.onMouseEnter,gt&&(yn.onMouseMove=this.onMouseMove)):yn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?yn.onMouseLeave=this.onMouseLeave:yn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(yn.onFocus=this.onFocus,yn.onBlur=this.onBlur):(yn.onFocus=this.createTwoChains("onFocus"),yn.onBlur=this.createTwoChains("onBlur"));var zn=s()(on&&on.props&&on.props.className,zt);zn&&(yn.className=zn);var gr=Object(U.a)({},yn);Object(mt.c)(on)&&(gr.ref=Object(mt.a)(this.triggerRef,on.ref));var Xr=S.cloneElement(on,gr),Jr;return(De||this.popupRef.current||Bt)&&(Jr=S.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!De&&Ft&&(Jr=null),S.createElement(hr.Provider,{value:this.triggerContextValue},Xr,Jr)}}],[{key:"getDerivedStateFromProps",value:function(De,st){var ct=De.popupVisible,Bt={};return ct!==void 0&&st.popupVisible!==ct&&(Bt.popupVisible=ct,Bt.prevPopupVisible=st.popupVisible),Bt}}]),we}(S.Component);return pt.contextType=hr,pt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:On,getDocument:or,onPopupVisibleChange:Sn,afterPopupVisibleChange:Sn,onPopupAlign:Sn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},pt}var Gn=pr(Ht.a),se={adjustX:1,adjustY:1},tt={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:se,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:se,offset:[4,0]}},rt={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:se,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:se,offset:[4,0]}},ut=tt,Kt=0,Ct={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Yt=function(pt,vt,Me){var we=xe(vt),Ke=pt.getState();pt.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},Ke.defaultActiveFirst),{},Object(Y.a)({},we,Me))})},nn=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(Me){var we;Object(C.a)(this,vt),we=pt.call(this,Me),we.onDestroy=function(gt){we.props.onDestroy(gt)},we.onKeyDown=function(gt){var zt=gt.keyCode,Ft=we.menuInstance,on=we.props.store,yn=we.getVisible();if(zt===O.a.ENTER)return we.onTitleClick(gt),Yt(on,we.props.eventKey,!0),!0;if(zt===O.a.RIGHT)return yn?Ft.onKeyDown(gt):(we.triggerOpenChange(!0),Yt(on,we.props.eventKey,!0)),!0;if(zt===O.a.LEFT){var zn;if(yn)zn=Ft.onKeyDown(gt);else return;return zn||(we.triggerOpenChange(!1),zn=!0),zn}return yn&&(zt===O.a.UP||zt===O.a.DOWN)?Ft.onKeyDown(gt):void 0},we.onOpenChange=function(gt){we.props.onOpenChange(gt)},we.onPopupVisibleChange=function(gt){we.triggerOpenChange(gt,gt?"mouseenter":"mouseleave")},we.onMouseEnter=function(gt){var zt=we.props,Ft=zt.eventKey,on=zt.onMouseEnter,yn=zt.store;Yt(yn,we.props.eventKey,!1),on({key:Ft,domEvent:gt})},we.onMouseLeave=function(gt){var zt=we.props,Ft=zt.parentMenu,on=zt.eventKey,yn=zt.onMouseLeave;Ft.subMenuInstance=Object(v.a)(we),yn({key:on,domEvent:gt})},we.onTitleMouseEnter=function(gt){var zt=we.props,Ft=zt.eventKey,on=zt.onItemHover,yn=zt.onTitleMouseEnter;on({key:Ft,hover:!0}),yn({key:Ft,domEvent:gt})},we.onTitleMouseLeave=function(gt){var zt=we.props,Ft=zt.parentMenu,on=zt.eventKey,yn=zt.onItemHover,zn=zt.onTitleMouseLeave;Ft.subMenuInstance=Object(v.a)(we),yn({key:on,hover:!1}),zn({key:on,domEvent:gt})},we.onTitleClick=function(gt){var zt=Object(v.a)(we),Ft=zt.props;if(Ft.onTitleClick({key:Ft.eventKey,domEvent:gt}),Ft.triggerSubMenuAction==="hover")return;we.triggerOpenChange(!we.getVisible(),"click"),Yt(Ft.store,we.props.eventKey,!1)},we.onSubMenuClick=function(gt){typeof we.props.onClick=="function"&&we.props.onClick(we.addKeyPath(gt))},we.onSelect=function(gt){we.props.onSelect(gt)},we.onDeselect=function(gt){we.props.onDeselect(gt)},we.getPrefixCls=function(){return"".concat(we.props.rootPrefixCls,"-submenu")},we.getActiveClassName=function(){return"".concat(we.getPrefixCls(),"-active")},we.getDisabledClassName=function(){return"".concat(we.getPrefixCls(),"-disabled")},we.getSelectedClassName=function(){return"".concat(we.getPrefixCls(),"-selected")},we.getOpenClassName=function(){return"".concat(we.props.rootPrefixCls,"-submenu-open")},we.getVisible=function(){return we.state.isOpen},we.getMode=function(){return we.state.mode},we.saveMenuInstance=function(gt){we.menuInstance=gt},we.addKeyPath=function(gt){return Object(U.a)(Object(U.a)({},gt),{},{keyPath:(gt.keyPath||[]).concat(we.props.eventKey)})},we.triggerOpenChange=function(gt,zt){var Ft=we.props.eventKey,on=function(){we.onOpenChange({key:Ft,item:Object(v.a)(we),trigger:zt,open:gt})};zt==="mouseenter"?we.mouseenterTimeout=setTimeout(function(){on()},0):on()},we.isChildrenSelected=function(){var gt={find:!1};return Le(we.props.children,we.props.selectedKeys,gt),gt.find},we.isInlineMode=function(){return we.getMode()==="inline"},we.adjustWidth=function(){if(!we.subMenuTitle||!we.menuInstance)return;var gt=Rt.findDOMNode(we.menuInstance);if(gt.offsetWidth>=we.subMenuTitle.offsetWidth)return;gt.style.minWidth="".concat(we.subMenuTitle.offsetWidth,"px")},we.saveSubMenuTitle=function(gt){we.subMenuTitle=gt},we.getBaseProps=function(){var gt=Object(v.a)(we),zt=gt.props,Ft=we.getMode();return{mode:Ft==="horizontal"?"vertical":Ft,visible:we.getVisible(),level:zt.level+1,inlineIndent:zt.inlineIndent,focusable:!1,onClick:we.onSubMenuClick,onSelect:we.onSelect,onDeselect:we.onDeselect,onDestroy:we.onDestroy,selectedKeys:zt.selectedKeys,eventKey:"".concat(zt.eventKey,"-menu-"),openKeys:zt.openKeys,motion:zt.motion,onOpenChange:we.onOpenChange,subMenuOpenDelay:zt.subMenuOpenDelay,parentMenu:Object(v.a)(we),subMenuCloseDelay:zt.subMenuCloseDelay,forceSubMenuRender:zt.forceSubMenuRender,triggerSubMenuAction:zt.triggerSubMenuAction,builtinPlacements:zt.builtinPlacements,defaultActiveFirst:zt.store.getState().defaultActiveFirst[xe(zt.eventKey)],multiple:zt.multiple,prefixCls:zt.rootPrefixCls,id:we.internalMenuId,manualRef:we.saveMenuInstance,itemIcon:zt.itemIcon,expandIcon:zt.expandIcon,direction:zt.direction}},we.getMotion=function(gt,zt){var Ft=Object(v.a)(we),on=Ft.haveRendered,yn=we.props,zn=yn.motion,gr=yn.rootPrefixCls,Xr=Object(U.a)(Object(U.a)({},zn),{},{leavedClassName:"".concat(gr,"-hidden"),removeOnLeave:!1,motionAppear:on||!zt||gt!=="inline"});return Xr};var Ke=Me.store,De=Me.eventKey,st=Ke.getState(),ct=st.defaultActiveFirst;we.isRootMenu=!1;var Bt=!1;return ct&&(Bt=ct[De]),Yt(Ke,De,Bt),we.state={mode:Me.mode,isOpen:Me.isOpen},we}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var we=this,Ke=this.props,De=Ke.mode,st=Ke.parentMenu,ct=Ke.manualRef,Bt=Ke.isOpen,gt=function(){we.setState({mode:De,isOpen:Bt})},zt=Bt!==this.state.isOpen,Ft=De!==this.state.mode;if((Ft||zt)&&(Qt.a.cancel(this.updateStateRaf),Ft?this.updateStateRaf=Object(Qt.a)(gt):gt()),ct&&ct(this),De!=="horizontal"||!(st==null?void 0:st.isRootMenu)||!Bt)return;this.minWidthTimeout=setTimeout(function(){return we.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var we=this.props,Ke=we.onDestroy,De=we.eventKey;Ke&&Ke(De),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Qt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(we,Ke){var De=this.getBaseProps();return S.createElement(Dr,Object(t.a)({},De,{id:this.internalMenuId,className:we,style:Ke}),this.props.children)}},{key:"renderChildren",value:function(){var we=this,Ke=this.getBaseProps(),De=Ke.mode,st=Ke.visible,ct=Ke.forceSubMenuRender,Bt=Ke.direction,gt=this.getMotion(De,st);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||st||ct,!this.haveOpened)return S.createElement("div",null);var zt=s()("".concat(Ke.prefixCls,"-sub"),Object(Y.a)({},"".concat(Ke.prefixCls,"-rtl"),Bt==="rtl"));return this.isInlineMode()?S.createElement(ue,Object(t.a)({visible:Ke.visible,forceRender:ct},gt),function(Ft){var on=Ft.className,yn=Ft.style,zn=s()(zt,on);return we.renderPopupMenu(zn,yn)}):this.renderPopupMenu(zt)}},{key:"render",value:function(){var we,Ke,De,st=Object(U.a)({},this.props),ct=this.getVisible(),Bt=this.getPrefixCls(),gt=this.isInlineMode(),zt=this.getMode(),Ft=s()(Bt,"".concat(Bt,"-").concat(zt),(we={},Object(Y.a)(we,st.className,!!st.className),Object(Y.a)(we,this.getOpenClassName(),ct),Object(Y.a)(we,this.getActiveClassName(),st.active||ct&&!gt),Object(Y.a)(we,this.getDisabledClassName(),st.disabled),Object(Y.a)(we,this.getSelectedClassName(),this.isChildrenSelected()),we));this.internalMenuId||(st.eventKey?this.internalMenuId="".concat(st.eventKey,"$Menu"):(Kt+=1,this.internalMenuId="$__$".concat(Kt,"$Menu")));var on={},yn={},zn={};st.disabled||(on={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},yn={onClick:this.onTitleClick},zn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var gr={},Xr=st.direction,Jr=Xr==="rtl";gt&&(Jr?gr.paddingRight=st.inlineIndent*st.level:gr.paddingLeft=st.inlineIndent*st.level);var aa={};this.getVisible()&&(aa={"aria-owns":this.internalMenuId});var hn=null;zt!=="horizontal"&&(hn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(hn=S.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var Lr=S.createElement("div",Object(t.a)({ref:this.saveSubMenuTitle,style:gr,className:"".concat(Bt,"-title"),role:"button"},zn,yn,{"aria-expanded":ct},aa,{"aria-haspopup":"true",title:typeof st.title=="string"?st.title:void 0}),st.title,hn||S.createElement("i",{className:"".concat(Bt,"-arrow")})),oa=this.renderChildren(),ya=((Ke=st.parentMenu)===null||Ke===void 0?void 0:Ke.isRootMenu)?st.parentMenu.props.getPopupContainer:function(Wn){return Wn.parentNode},yt=Ct[zt],Fr=st.popupOffset?{offset:st.popupOffset}:{},un=s()((De={},Object(Y.a)(De,st.popupClassName,st.popupClassName&&!gt),Object(Y.a)(De,"".concat(Bt,"-rtl"),Jr),De)),Rn=st.disabled,xr=st.triggerSubMenuAction,Ca=st.subMenuOpenDelay,Nr=st.forceSubMenuRender,Sr=st.subMenuCloseDelay,xa=st.builtinPlacements;Fe.forEach(function(Wn){return delete st[Wn]}),delete st.onClick;var Vr=Jr?Object(U.a)(Object(U.a)({},rt),xa):Object(U.a)(Object(U.a)({},tt),xa);delete st.direction;var nr=this.getBaseProps(),Wr=gt?null:this.getMotion(nr.mode,nr.visible);return S.createElement("li",Object(t.a)({},st,on,{className:Ft,role:"menuitem"}),S.createElement(Gn,{prefixCls:Bt,popupClassName:s()("".concat(Bt,"-popup"),un),getPopupContainer:ya,builtinPlacements:Vr,popupPlacement:yt,popupVisible:gt?!1:ct,popupAlign:Fr,popup:gt?null:oa,action:Rn||gt?[]:[xr],mouseEnterDelay:Ca,mouseLeaveDelay:Sr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Nr,popupMotion:Wr},Lr),gt?oa:null)}}]),vt}(S.Component);nn.defaultProps={onMouseEnter:Ne,onMouseLeave:Ne,onTitleMouseEnter:Ne,onTitleMouseLeave:Ne,onTitleClick:Ne,manualRef:Ne,mode:"vertical",title:""};var _n=Object(c.b)(function($e,pt){var vt=$e.openKeys,Me=$e.activeKey,we=$e.selectedKeys,Ke=pt.eventKey,De=pt.subMenuKey;return{isOpen:vt.indexOf(Ke)>-1,active:Me[De]===Ke,selectedKeys:we}})(nn);_n.isSubMenu=!0;var cn=_n,ur="menuitem-overflowed",Mn=.5,fn=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){var Me;return Object(C.a)(this,vt),Me=pt.apply(this,arguments),Me.resizeObserver=null,Me.mutationObserver=null,Me.originalTotalWidth=0,Me.overflowedItems=[],Me.menuItemSizes=[],Me.cancelFrameId=null,Me.state={lastVisibleIndex:void 0},Me.childRef=S.createRef(),Me.getMenuItemNodes=function(){var we=Me.props.prefixCls,Ke=Me.childRef.current;return Ke?[].slice.call(Ke.children).filter(function(De){return De.className.split(" ").indexOf("".concat(we,"-overflowed-submenu"))<0}):[]},Me.getOverflowedSubMenuItem=function(we,Ke,De){var st=Me.props,ct=st.overflowedIndicator,Bt=st.level,gt=st.mode,zt=st.prefixCls,Ft=st.theme;if(Bt!==1||gt!=="horizontal")return null;var on=Me.props.children[0],yn=on.props,zn=yn.children,gr=yn.title,Xr=yn.style,Jr=Object(L.a)(yn,["children","title","style"]),aa=Object(U.a)({},Xr),hn="".concat(we,"-overflowed-indicator"),Lr="".concat(we,"-overflowed-indicator");Ke.length===0&&De!==!0?aa=Object(U.a)(Object(U.a)({},aa),{},{display:"none"}):De&&(aa=Object(U.a)(Object(U.a)({},aa),{},{visibility:"hidden",position:"absolute"}),hn="".concat(hn,"-placeholder"),Lr="".concat(Lr,"-placeholder"));var oa=Ft?"".concat(zt,"-").concat(Ft):"",ya={};return Fe.forEach(function(yt){Jr[yt]!==void 0&&(ya[yt]=Jr[yt])}),S.createElement(cn,Object(t.a)({title:ct,className:"".concat(zt,"-overflowed-submenu"),popupClassName:oa},ya,{key:hn,eventKey:Lr,disabled:!1,style:aa}),Ke)},Me.setChildrenWidthAndResize=function(){if(Me.props.mode!=="horizontal")return;var we=Me.childRef.current;if(!we)return;var Ke=we.children;if(!Ke||Ke.length===0)return;var De=we.children[Ke.length-1];Ve(De,"display","inline-block");var st=Me.getMenuItemNodes(),ct=st.filter(function(Bt){return Bt.className.split(" ").indexOf(ur)>=0});ct.forEach(function(Bt){Ve(Bt,"display","inline-block")}),Me.menuItemSizes=st.map(function(Bt){return Pe(Bt,!0)}),ct.forEach(function(Bt){Ve(Bt,"display","none")}),Me.overflowedIndicatorWidth=Pe(we.children[we.children.length-1],!0),Me.originalTotalWidth=Me.menuItemSizes.reduce(function(Bt,gt){return Bt+gt},0),Me.handleResize(),Ve(De,"display","none")},Me.handleResize=function(){if(Me.props.mode!=="horizontal")return;var we=Me.childRef.current;if(!we)return;var Ke=Pe(we);Me.overflowedItems=[];var De=0,st;Me.originalTotalWidth>Ke+Mn&&(st=-1,Me.menuItemSizes.forEach(function(ct){De+=ct,De+Me.overflowedIndicatorWidth<=Ke&&(st+=1)})),Me.setState({lastVisibleIndex:st})},Me}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){var we=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ke=this.childRef.current;if(!Ke)return;this.resizeObserver=new At.default(function(De){De.forEach(function(){var st=we.cancelFrameId;cancelAnimationFrame(st),we.cancelFrameId=requestAnimationFrame(we.setChildrenWidthAndResize)})}),[].slice.call(Ke.children).concat(Ke).forEach(function(De){we.resizeObserver.observe(De)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){we.resizeObserver.disconnect(),[].slice.call(Ke.children).concat(Ke).forEach(function(De){we.resizeObserver.observe(De)}),we.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ke,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(we){var Ke=this,De=this.state.lastVisibleIndex;return(we||[]).reduce(function(st,ct,Bt){var gt=ct;if(Ke.props.mode==="horizontal"){var zt=Ke.getOverflowedSubMenuItem(ct.props.eventKey,[]);De!==void 0&&Ke.props.className.indexOf("".concat(Ke.props.prefixCls,"-root"))!==-1&&(Bt>De&&(gt=S.cloneElement(ct,{style:{display:"none"},eventKey:"".concat(ct.props.eventKey,"-hidden"),className:"".concat(ur)})),Bt===De+1&&(Ke.overflowedItems=we.slice(De+1).map(function(on){return S.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),zt=Ke.getOverflowedSubMenuItem(ct.props.eventKey,Ke.overflowedItems)));var Ft=[].concat(Object(p.a)(st),[zt,gt]);return Bt===we.length-1&&Ft.push(Ke.getOverflowedSubMenuItem(ct.props.eventKey,[],!0)),Ft}return[].concat(Object(p.a)(st),[gt])},[])}},{key:"render",value:function(){var we=this.props,Ke=we.visible,De=we.prefixCls,st=we.overflowedIndicator,ct=we.mode,Bt=we.level,gt=we.tag,zt=we.children,Ft=we.theme,on=Object(L.a)(we,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),yn=gt;return S.createElement(yn,Object(t.a)({ref:this.childRef},on),this.renderChildren(zt))}}]),vt}(S.Component);fn.defaultProps={tag:"div",className:""};var Hn=fn;function Xn($e){return $e.length?$e.every(function(pt){return!!pt.props.disabled}):!0}function $n($e,pt,vt){var Me=$e.getState();$e.setState({activeKey:Object(U.a)(Object(U.a)({},Me.activeKey),{},Object(Y.a)({},pt,vt))})}function Yn($e){return $e.eventKey||"0-menu-"}function _r($e,pt){var vt=pt,Me=$e.children,we=$e.eventKey;if(vt){var Ke;if(ze(Me,function(De,st){De&&De.props&&!De.props.disabled&&vt===Ce(De,we,st)&&(Ke=!0)}),Ke)return vt}return vt=null,$e.defaultActiveFirst&&ze(Me,function(De,st){!vt&&De&&!De.props.disabled&&(vt=Ce(De,we,st))}),vt}function vr($e){if(!$e)return;var pt=this.instanceArray.indexOf($e);pt!==-1?this.instanceArray[pt]=$e:this.instanceArray.push($e)}var lr=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(Me){var we;return Object(C.a)(this,vt),we=pt.call(this,Me),we.onKeyDown=function(Ke,De){var st=Ke.keyCode,ct;if(we.getFlatInstanceArray().forEach(function(gt){gt&>.props.active&>.onKeyDown&&(ct=gt.onKeyDown(Ke))}),ct)return 1;var Bt=null;return(st===O.a.UP||st===O.a.DOWN)&&(Bt=we.step(st===O.a.UP?-1:1)),Bt?(Ke.preventDefault(),$n(we.props.store,Yn(we.props),Bt.props.eventKey),typeof De=="function"&&De(Bt),1):void 0},we.onItemHover=function(Ke){var De=Ke.key,st=Ke.hover;$n(we.props.store,Yn(we.props),st?De:null)},we.onDeselect=function(Ke){we.props.onDeselect(Ke)},we.onSelect=function(Ke){we.props.onSelect(Ke)},we.onClick=function(Ke){we.props.onClick(Ke)},we.onOpenChange=function(Ke){we.props.onOpenChange(Ke)},we.onDestroy=function(Ke){we.props.onDestroy(Ke)},we.getFlatInstanceArray=function(){return we.instanceArray},we.step=function(Ke){var De=we.getFlatInstanceArray(),st=we.props.store.getState().activeKey[Yn(we.props)],ct=De.length;if(!ct)return null;Ke<0&&(De=De.concat().reverse());var Bt=-1;if(De.every(function(on,yn){return on&&on.props.eventKey===st?(Bt=yn,!1):!0}),!we.props.defaultActiveFirst&&Bt!==-1&&Xn(De.slice(Bt,ct-1)))return;var gt=(Bt+1)%ct,zt=gt;do{var Ft=De[zt];if(!Ft||Ft.props.disabled)zt=(zt+1)%ct;else return Ft}while(zt!==gt);return null},we.renderCommonMenuItem=function(Ke,De,st){var ct=we.props.store.getState(),Bt=Object(v.a)(we),gt=Bt.props,zt=Ce(Ke,gt.eventKey,De),Ft=Ke.props;if(!Ft||typeof Ke.type=="string")return Ke;var on=zt===ct.activeKey,yn=Object(U.a)(Object(U.a)({mode:Ft.mode||gt.mode,level:gt.level,inlineIndent:gt.inlineIndent,renderMenuItem:we.renderMenuItem,rootPrefixCls:gt.prefixCls,index:De,parentMenu:gt.parentMenu,manualRef:Ft.disabled?void 0:Object(P.a)(Ke.ref,vr.bind(Object(v.a)(we))),eventKey:zt,active:!Ft.disabled&&on,multiple:gt.multiple,onClick:function(gr){(Ft.onClick||Ne)(gr),we.onClick(gr)},onItemHover:we.onItemHover,motion:gt.motion,subMenuOpenDelay:gt.subMenuOpenDelay,subMenuCloseDelay:gt.subMenuCloseDelay,forceSubMenuRender:gt.forceSubMenuRender,onOpenChange:we.onOpenChange,onDeselect:we.onDeselect,onSelect:we.onSelect,builtinPlacements:gt.builtinPlacements,itemIcon:Ft.itemIcon||we.props.itemIcon,expandIcon:Ft.expandIcon||we.props.expandIcon},st),{},{direction:gt.direction});return(gt.mode==="inline"||at())&&(yn.triggerSubMenuAction="click"),S.cloneElement(Ke,Object(U.a)(Object(U.a)({},yn),{},{key:zt||De}))},we.renderMenuItem=function(Ke,De,st){if(!Ke)return null;var ct=we.props.store.getState(),Bt={openKeys:ct.openKeys,selectedKeys:ct.selectedKeys,triggerSubMenuAction:we.props.triggerSubMenuAction,subMenuKey:st};return we.renderCommonMenuItem(Ke,De,Bt)},Me.store.setState({activeKey:Object(U.a)(Object(U.a)({},Me.store.getState().activeKey),{},Object(Y.a)({},Me.eventKey,_r(Me,Me.activeKey)))}),we.instanceArray=[],we}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(we){return this.props.visible||we.visible||this.props.className!==we.className||!k()(this.props.style,we.style)}},{key:"componentDidUpdate",value:function(we){var Ke=this.props,De="activeKey"in Ke?Ke.activeKey:Ke.store.getState().activeKey[Yn(Ke)],st=_r(Ke,De);if(st!==De)$n(Ke.store,Yn(Ke),st);else if("activeKey"in we){var ct=_r(we,we.activeKey);st!==ct&&$n(Ke.store,Yn(Ke),st)}}},{key:"render",value:function(){var we=this,Ke=Object(t.a)({},this.props);this.instanceArray=[];var De=s()(Ke.prefixCls,Ke.className,"".concat(Ke.prefixCls,"-").concat(Ke.mode)),st={className:De,role:Ke.role||"menu"};Ke.id&&(st.id=Ke.id),Ke.focusable&&(st.tabIndex=0,st.onKeyDown=this.onKeyDown);var ct=Ke.prefixCls,Bt=Ke.eventKey,gt=Ke.visible,zt=Ke.level,Ft=Ke.mode,on=Ke.overflowedIndicator,yn=Ke.theme;return Fe.forEach(function(zn){return delete Ke[zn]}),delete Ke.onClick,S.createElement(Hn,Object(t.a)({},Ke,{prefixCls:ct,mode:Ft,tag:"ul",level:zt,theme:yn,visible:gt,overflowedIndicator:on},st),Object(d.a)(Ke.children).map(function(zn,gr){return we.renderMenuItem(zn,gr,Bt||"0-menu-")}))}}]),vt}(S.Component);lr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ne};var wr=Object(c.b)()(lr),Dr=wr,sr=_("Kwbf");function ia($e,pt,vt){var Me=$e.prefixCls,we=$e.motion,Ke=$e.defaultMotions,De=Ke===void 0?{}:Ke,st=$e.openAnimation,ct=$e.openTransitionName,Bt=pt.switchingModeFromInline;if(we)return we;if(Object(I.a)(st)==="object"&&st)Object(sr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof st=="string")return{motionName:"".concat(Me,"-open-").concat(st)};if(ct)return{motionName:ct};var gt=De[vt];return gt||(Bt?null:De.other)}var Ea=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(Me){var we;Object(C.a)(this,vt),we=pt.call(this,Me),we.onSelect=function(st){var ct=Object(v.a)(we),Bt=ct.props;if(Bt.selectable){var gt=we.store.getState(),zt=gt.selectedKeys,Ft=st.key;Bt.multiple?zt=zt.concat([Ft]):zt=[Ft],"selectedKeys"in Bt||we.store.setState({selectedKeys:zt}),Bt.onSelect(Object(U.a)(Object(U.a)({},st),{},{selectedKeys:zt}))}},we.onClick=function(st){var ct=we.getRealMenuMode(),Bt=Object(v.a)(we),gt=Bt.store,zt=Bt.props.onOpenChange;ct!=="inline"&&!("openKeys"in we.props)&&(gt.setState({openKeys:[]}),zt([])),we.props.onClick(st)},we.onKeyDown=function(st,ct){we.innerMenu.getWrappedInstance().onKeyDown(st,ct)},we.onOpenChange=function(st){var ct=Object(v.a)(we),Bt=ct.props,gt=we.store.getState().openKeys.concat(),zt=!1,Ft=function(yn){var zn=!1;if(yn.open)zn=gt.indexOf(yn.key)===-1,zn&>.push(yn.key);else{var gr=gt.indexOf(yn.key);zn=gr!==-1,zn&>.splice(gr,1)}zt=zt||zn};Array.isArray(st)?st.forEach(Ft):Ft(st),zt&&("openKeys"in we.props||we.store.setState({openKeys:gt}),Bt.onOpenChange(gt))},we.onDeselect=function(st){var ct=Object(v.a)(we),Bt=ct.props;if(Bt.selectable){var gt=we.store.getState().selectedKeys.concat(),zt=st.key,Ft=gt.indexOf(zt);Ft!==-1&>.splice(Ft,1),"selectedKeys"in Bt||we.store.setState({selectedKeys:gt}),Bt.onDeselect(Object(U.a)(Object(U.a)({},st),{},{selectedKeys:gt}))}},we.onMouseEnter=function(st){we.restoreModeVerticalFromInline();var ct=we.props.onMouseEnter;ct&&ct(st)},we.onTransitionEnd=function(st){var ct=st.propertyName==="width"&&st.target===st.currentTarget,Bt=st.target.className,gt=Object.prototype.toString.call(Bt)==="[object SVGAnimatedString]"?Bt.animVal:Bt,zt=st.propertyName==="font-size"&>.indexOf("anticon")>=0;(ct||zt)&&we.restoreModeVerticalFromInline()},we.setInnerMenu=function(st){we.innerMenu=st},we.isRootMenu=!0;var Ke=Me.defaultSelectedKeys,De=Me.defaultOpenKeys;return"selectedKeys"in Me&&(Ke=Me.selectedKeys||[]),"openKeys"in Me&&(De=Me.openKeys||[]),we.store=Object(c.c)({selectedKeys:Ke,openKeys:De,activeKey:{"0-menu-":_r(Me,Me.activeKey)}}),we.state={switchingModeFromInline:!1,prevProps:Me,inlineOpenKeys:[],store:we.store},we}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(we){var Ke=this.props,De=Ke.siderCollapsed,st=Ke.inlineCollapsed,ct=Ke.onOpenChange;(!we.inlineCollapsed&&st||!we.siderCollapsed&&De)&&ct([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var we=this.props.collapsedWidth,Ke=this.store,De=this.prevOpenKeys,st=this.getInlineCollapsed()&&(we===0||we==="0"||we==="0px");st?(this.prevOpenKeys=Ke.getState().openKeys.concat(),this.store.setState({openKeys:[]})):De&&(this.store.setState({openKeys:De}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var we=this.props.mode,Ke=this.state.switchingModeFromInline,De=this.getInlineCollapsed();return Ke&&De?"inline":De?"vertical":we}},{key:"getInlineCollapsed",value:function(){var we=this.props,Ke=we.inlineCollapsed,De=we.siderCollapsed;return De!==void 0?De:Ke}},{key:"restoreModeVerticalFromInline",value:function(){var we=this.state.switchingModeFromInline;we&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var we=Object(U.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ke=this.getRealMenuMode();return we.className+=" ".concat(we.prefixCls,"-root"),we.direction==="rtl"&&(we.className+=" ".concat(we.prefixCls,"-rtl")),we=Object(U.a)(Object(U.a)({},we),{},{mode:Ke,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ia(this.props,this.state,Ke)}),delete we.openAnimation,delete we.openTransitionName,S.createElement(c.a,{store:this.store},S.createElement(Dr,Object(t.a)({},we,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(we,Ke){var De=Ke.prevProps,st=Ke.store,ct=st.getState(),Bt={},gt={prevProps:we};return De.mode==="inline"&&we.mode!=="inline"&&(gt.switchingModeFromInline=!0),"openKeys"in we?Bt.openKeys=we.openKeys||[]:((we.inlineCollapsed&&!De.inlineCollapsed||we.siderCollapsed&&!De.siderCollapsed)&&(gt.switchingModeFromInline=!0,gt.inlineOpenKeys=ct.openKeys,Bt.openKeys=[]),(!we.inlineCollapsed&&De.inlineCollapsed||!we.siderCollapsed&&De.siderCollapsed)&&(Bt.openKeys=Ke.inlineOpenKeys,gt.inlineOpenKeys=[])),Object.keys(Bt).length&&st.setState(Bt),gt}}]),vt}(S.Component);Ea.defaultProps={selectable:!0,onClick:Ne,onSelect:Ne,onOpenChange:Ne,onDeselect:Ne,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:S.createElement("span",null,"\xB7\xB7\xB7")};var Cr=Ea,kr=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){var Me;return Object(C.a)(this,vt),Me=pt.apply(this,arguments),Me.onKeyDown=function(we){var Ke=we.keyCode;return Ke===O.a.ENTER?(Me.onClick(we),!0):void 0},Me.onMouseLeave=function(we){var Ke=Me.props,De=Ke.eventKey,st=Ke.onItemHover,ct=Ke.onMouseLeave;st({key:De,hover:!1}),ct({key:De,domEvent:we})},Me.onMouseEnter=function(we){var Ke=Me.props,De=Ke.eventKey,st=Ke.onItemHover,ct=Ke.onMouseEnter;st({key:De,hover:!0}),ct({key:De,domEvent:we})},Me.onClick=function(we){var Ke=Me.props,De=Ke.eventKey,st=Ke.multiple,ct=Ke.onClick,Bt=Ke.onSelect,gt=Ke.onDeselect,zt=Ke.isSelected,Ft={key:De,keyPath:[De],item:Object(v.a)(Me),domEvent:we};ct(Ft),st?zt?gt(Ft):Bt(Ft):zt||Bt(Ft)},Me.saveNode=function(we){Me.node=we},Me}return Object(A.a)(vt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var we=this.props;we.onDestroy&&we.onDestroy(we.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var we,Ke=Object(U.a)({},this.props),De=s()(this.getPrefixCls(),Ke.className,(we={},Object(Y.a)(we,this.getActiveClassName(),!Ke.disabled&&Ke.active),Object(Y.a)(we,this.getSelectedClassName(),Ke.isSelected),Object(Y.a)(we,this.getDisabledClassName(),Ke.disabled),we)),st=Object(U.a)(Object(U.a)({},Ke.attribute),{},{title:typeof Ke.title=="string"?Ke.title:void 0,className:De,role:Ke.role||"menuitem","aria-disabled":Ke.disabled});Ke.role==="option"?st=Object(U.a)(Object(U.a)({},st),{},{role:"option","aria-selected":Ke.isSelected}):(Ke.role===null||Ke.role==="none")&&(st.role="none");var ct={onClick:Ke.disabled?null:this.onClick,onMouseLeave:Ke.disabled?null:this.onMouseLeave,onMouseEnter:Ke.disabled?null:this.onMouseEnter},Bt=Object(U.a)({},Ke.style);Ke.mode==="inline"&&(Ke.direction==="rtl"?Bt.paddingRight=Ke.inlineIndent*Ke.level:Bt.paddingLeft=Ke.inlineIndent*Ke.level),Fe.forEach(function(zt){return delete Ke[zt]}),delete Ke.direction;var gt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(gt=S.createElement(this.props.itemIcon,this.props)),S.createElement("li",Object(t.a)({},Object(M.a)(Ke,["onClick","onMouseEnter","onMouseLeave","onSelect"]),st,ct,{style:Bt,ref:this.saveNode}),Ke.children,gt)}}]),vt}(S.Component);kr.isMenuItem=!0,kr.defaultProps={onSelect:Ne,onMouseEnter:Ne,onMouseLeave:Ne,manualRef:Ne};var Zr=Object(c.b)(function($e,pt){var vt=$e.activeKey,Me=$e.selectedKeys,we=pt.eventKey,Ke=pt.subMenuKey;return{active:vt[Ke]===we,isSelected:Array.isArray(Me)?Me.indexOf(we)!==-1:Me===we}})(kr),Qr=Zr,Aa=function($e){Object(o.a)(vt,$e);var pt=Object(l.a)(vt);function vt(){var Me;return Object(C.a)(this,vt),Me=pt.apply(this,arguments),Me.renderInnerMenuItem=function(we){var Ke=Me.props,De=Ke.renderMenuItem,st=Ke.index;return De(we,st,Me.props.subMenuKey)},Me}return Object(A.a)(vt,[{key:"render",value:function(){var we=Object(t.a)({},this.props),Ke=we.className,De=Ke===void 0?"":Ke,st=we.rootPrefixCls,ct="".concat(st,"-item-group-title"),Bt="".concat(st,"-item-group-list"),gt=we.title,zt=we.children;return Fe.forEach(function(Ft){return delete we[Ft]}),delete we.direction,S.createElement("li",Object(t.a)({},we,{onClick:function(on){return on.stopPropagation()},className:"".concat(De," ").concat(st,"-item-group")}),S.createElement("div",{className:ct,title:typeof gt=="string"?gt:void 0},gt),S.createElement("ul",{className:Bt},S.Children.map(zt,this.renderInnerMenuItem)))}}]),vt}(S.Component);Aa.isMenuItemGroup=!0,Aa.defaultProps={disabled:!0};var Ta=Aa,ba=function(pt){var vt=pt.className,Me=pt.rootPrefixCls,we=pt.style;return S.createElement("li",{className:"".concat(vt," ").concat(Me,"-item-divider"),style:we})};ba.defaultProps={disabled:!0,className:"",style:{}};var za=ba,Xa=Cr,tr=_("eDIo");function In($e,pt){var vt=$e.prefixCls,Me=$e.editable,we=$e.locale,Ke=$e.style;return!Me||Me.showAdd===!1?null:S.createElement("button",{ref:pt,type:"button",className:"".concat(vt,"-nav-add"),style:Ke,"aria-label":(we==null?void 0:we.addAriaLabel)||"Add tab",onClick:function(st){Me.onEdit("add",{event:st})}},Me.addIcon||"+")}var En=S.forwardRef(In);function Or($e,pt){var vt=$e.prefixCls,Me=$e.id,we=$e.tabs,Ke=$e.locale,De=$e.mobile,st=$e.moreIcon,ct=st===void 0?"More":st,Bt=$e.moreTransitionName,gt=$e.style,zt=$e.className,Ft=$e.editable,on=$e.tabBarGutter,yn=$e.rtl,zn=$e.onTabClick,gr=Object(S.useState)(!1),Xr=Object(j.a)(gr,2),Jr=Xr[0],aa=Xr[1],hn=Object(S.useState)(null),Lr=Object(j.a)(hn,2),oa=Lr[0],ya=Lr[1],yt="".concat(Me,"-more-popup"),Fr="".concat(vt,"-dropdown"),un=oa!==null?"".concat(yt,"-").concat(oa):null,Rn=Ke==null?void 0:Ke.dropdownAriaLabel,xr=S.createElement(Xa,{onClick:function(Wr){var Wn=Wr.key,pn=Wr.domEvent;zn(Wn,pn),aa(!1)},id:yt,tabIndex:-1,role:"listbox","aria-activedescendant":un,selectedKeys:[oa],"aria-label":Rn!==void 0?Rn:"expanded dropdown"},we.map(function(nr){return S.createElement(Qr,{key:nr.key,id:"".concat(yt,"-").concat(nr.key),role:"option","aria-controls":Me&&"".concat(Me,"-panel-").concat(nr.key),disabled:nr.disabled},nr.tab)}));function Ca(nr){for(var Wr=we.filter(function(Ar){return!Ar.disabled}),Wn=Wr.findIndex(function(Ar){return Ar.key===oa})||0,pn=Wr.length,Rr=0;Rrxa?(Nr=xr,yt.current="x"):(Nr=Ca,yt.current="y");var Vr=Date.now();Vr-oa.current>100&&(ya.current=!1),(pt(-Nr,-Nr)||ya.current)&&(Rn.preventDefault(),ya.current=!0),oa.current=Vr}var un=Object(S.useRef)(null);un.current={onTouchStart:aa,onTouchMove:hn,onTouchEnd:Lr,onWheel:Fr},S.useEffect(function(){function Rn(Sr){un.current.onTouchStart(Sr)}function xr(Sr){un.current.onTouchMove(Sr)}function Ca(Sr){un.current.onTouchEnd(Sr)}function Nr(Sr){un.current.onWheel(Sr)}return document.addEventListener("touchmove",xr,{passive:!1}),document.addEventListener("touchend",Ca,{passive:!1}),$e.current.addEventListener("touchstart",Rn,{passive:!1}),$e.current.addEventListener("wheel",Nr),function(){document.removeEventListener("touchmove",xr),document.removeEventListener("touchend",Ca)}},[])}function Qn(){var $e=Object(S.useRef)(new Map);function pt(Me){return $e.current.has(Me)||$e.current.set(Me,S.createRef()),$e.current.get(Me)}function vt(Me){$e.current.delete(Me)}return[pt,vt]}function Hr($e,pt){var vt=S.useRef($e),Me=S.useState({}),we=Object(j.a)(Me,2),Ke=we[1];function De(st){var ct=typeof st=="function"?st(vt.current):st;ct!==vt.current&&pt(ct,vt.current),vt.current=ct,Ke({})}return[vt.current,De]}var pa=function(pt){var vt=pt.position,Me=pt.prefixCls,we=pt.extra;if(!we)return null;var Ke,De=we;return vt==="right"&&(Ke=De.right||!De.left&&De||null),vt==="left"&&(Ke=De.left||null),Ke?S.createElement("div",{className:"".concat(Me,"-extra-content")},Ke):null};function Ma($e,pt){var vt,Me=S.useContext(zr),we=Me.prefixCls,Ke=Me.tabs,De=$e.className,st=$e.style,ct=$e.id,Bt=$e.animated,gt=$e.activeKey,zt=$e.rtl,Ft=$e.extra,on=$e.editable,yn=$e.locale,zn=$e.tabPosition,gr=$e.tabBarGutter,Xr=$e.children,Jr=$e.onTabClick,aa=$e.onTabScroll,hn=Object(S.useRef)(),Lr=Object(S.useRef)(),oa=Object(S.useRef)(),ya=Object(S.useRef)(),yt=Qn(),Fr=Object(j.a)(yt,2),un=Fr[0],Rn=Fr[1],xr=zn==="top"||zn==="bottom",Ca=Hr(0,function(ja,Fa){xr&&aa&&aa({direction:ja>Fa?"left":"right"})}),Nr=Object(j.a)(Ca,2),Sr=Nr[0],xa=Nr[1],Vr=Hr(0,function(ja,Fa){!xr&&aa&&aa({direction:ja>Fa?"top":"bottom"})}),nr=Object(j.a)(Vr,2),Wr=nr[0],Wn=nr[1],pn=Object(S.useState)(0),Rr=Object(j.a)(pn,2),qn=Rr[0],Ar=Rr[1],Da=Object(S.useState)(0),Ia=Object(j.a)(Da,2),La=Ia[0],Br=Ia[1],$r=Object(S.useState)(0),ka=Object(j.a)($r,2),Na=ka[0],qa=ka[1],ri=Object(S.useState)(0),ni=Object(j.a)(ri,2),Ga=ni[0],Ai=ni[1],Di=Object(S.useState)(null),$a=Object(j.a)(Di,2),Va=$a[0],di=$a[1],Zi=Object(S.useState)(null),Ao=Object(j.a)(Zi,2),Ui=Ao[0],qi=Ao[1],$i=Object(S.useState)(0),wi=Object(j.a)($i,2),eo=wi[0],fo=wi[1],ho=Object(S.useState)(0),Pi=Object(j.a)(ho,2),Ra=Pi[0],Sa=Pi[1],wa=m(new Map),Ja=Object(j.a)(wa,2),ai=Ja[0],yi=Ja[1],oi=h(Ke,ai,qn),ro="".concat(we,"-nav-operations-hidden"),mo=0,pi=0;xr?zt?(mo=0,pi=Math.max(0,qn-Va)):(mo=Math.min(0,Va-qn),pi=0):(mo=Math.min(0,Ui-La),pi=0);function Ki(ja){return japi?[pi,!1]:[ja,!0]}var vi=Object(S.useRef)(),Gi=Object(S.useState)(),Vi=Object(j.a)(Gi,2),So=Vi[0],po=Vi[1];function vo(){po(Date.now())}function go(){window.clearTimeout(vi.current)}sa(hn,function(ja,Fa){var Ha=!1;function ci(gi,Ri){gi(function(ki){var Ci=Ki(ki+Ri),li=Object(j.a)(Ci,2),Mo=li[0],_o=li[1];return Ha=_o,Mo})}if(xr){if(Va>=qn)return Ha;ci(xa,ja)}else{if(Ui>=La)return Ha;ci(Wn,Fa)}return go(),vo(),Ha}),Object(S.useEffect)(function(){return go(),So&&(vi.current=window.setTimeout(function(){po(0)},100)),go},[So]);function Xi(){var ja=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt,Fa=oi.get(ja);if(!Fa)return;if(xr){var Ha=Sr;zt?Fa.rightSr+Va&&(Ha=Fa.right+Fa.width-Va):Fa.left<-Sr?Ha=-Fa.left:Fa.left+Fa.width>-Sr+Va&&(Ha=-(Fa.left+Fa.width-Va)),Wn(0),xa(Ki(Ha)[0])}else{var ci=Wr;Fa.top<-Wr?ci=-Fa.top:Fa.top+Fa.height>-Wr+Ui&&(ci=-(Fa.top+Fa.height-Ui)),xa(0),Wn(Ki(ci)[0])}}var oo=E(oi,{width:Va,height:Ui,left:Sr,top:Wr},{width:Na,height:Ga},{width:eo,height:Ra},Object(U.a)(Object(U.a)({},$e),{},{tabs:Ke})),Ro=Object(j.a)(oo,2),bo=Ro[0],so=Ro[1],wo=Ke.map(function(ja){var Fa=ja.key;return S.createElement(r,{id:ct,prefixCls:we,key:Fa,rtl:zt,tab:ja,closable:ja.closable,editable:on,active:Fa===gt,tabPosition:zn,tabBarGutter:gr,renderWrapper:Xr,removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,ref:un(Fa),onClick:function(ci){Jr(Fa,ci)},onRemove:function(){Rn(Fa)},onFocus:function(){Xi(Fa),vo(),zt||(hn.current.scrollLeft=0),hn.current.scrollTop=0}})}),To=y(function(){var ja,Fa,Ha,ci,gi,Ri,ki,Ci,li,Mo=((ja=hn.current)===null||ja===void 0?void 0:ja.offsetWidth)||0,_o=((Fa=hn.current)===null||Fa===void 0?void 0:Fa.offsetHeight)||0,Lo=((Ha=ya.current)===null||Ha===void 0?void 0:Ha.offsetWidth)||0,Bi=((ci=ya.current)===null||ci===void 0?void 0:ci.offsetHeight)||0,Za=((gi=oa.current)===null||gi===void 0?void 0:gi.offsetWidth)||0,Wa=((Ri=oa.current)===null||Ri===void 0?void 0:Ri.offsetHeight)||0;di(Mo),qi(_o),fo(Lo),Sa(Bi);var na=(((ki=Lr.current)===null||ki===void 0?void 0:ki.offsetWidth)||0)-Lo,Oa=(((Ci=Lr.current)===null||Ci===void 0?void 0:Ci.offsetHeight)||0)-Bi;Ar(na),Br(Oa);var Ka=(li=oa.current)===null||li===void 0?void 0:li.className.includes(ro);qa(na-(Ka?0:Za)),Ai(Oa-(Ka?0:Wa)),yi(function(){var ii=new Map;return Ke.forEach(function(Yi){var ao=Yi.key,xi=un(ao).current;xi&&ii.set(ao,{width:xi.offsetWidth,height:xi.offsetHeight,left:xi.offsetLeft,top:xi.offsetTop})}),ii})}),Do=Ke.slice(0,bo),Oi=Ke.slice(so+1),ti=[].concat(Object(p.a)(Do),Object(p.a)(Oi)),_i=Object(S.useState)(),ui=Object(j.a)(_i,2),Ei=ui[0],yo=ui[1],ji=oi.get(gt),Po=Object(S.useRef)();function Oo(){f.a.cancel(Po.current)}Object(S.useEffect)(function(){var ja={};return ji&&(xr?(zt?ja.right=ji.right:ja.left=ji.left,ja.width=ji.width):(ja.top=ji.top,ja.height=ji.height)),Oo(),Po.current=f()(function(){yo(ja)}),Oo},[ji,xr,zt]),Object(S.useEffect)(function(){Xi()},[gt,ji,oi,xr]),Object(S.useEffect)(function(){To()},[zt,gr,gt,Ke.map(function(ja){return ja.key}).join("_")]);var Mi=!!ti.length,si="".concat(we,"-nav-wrap"),ca,dr,cr,da;return xr?zt?(dr=Sr>0,ca=Sr+Va-1?"".concat(J==null?void 0:J.time,"\u5206\u949F"):"\u4E0D\u9650","\u3011"),(Ne==null?void 0:Ne.show_desc)&&p.a.createElement("div",{className:"mt10"},p.a.createElement("p",{className:"font16"},"\u8003\u8BD5\u8BF4\u660E\uFF1A"),p.a.createElement(O.a,{value:J==null?void 0:J.description})),(Ne==null?void 0:Ne.show_table)&&p.a.createElement("div",{className:"mt10"},p.a.createElement(j.a,{className:y.a.table,columns:Ee,dataSource:Object(U.a)(be||[]),bordered:!0,pagination:!1}))))};ie.a=Object(f.a)(function(u){var h=u.exercise,b=u.loading,E=u.user,t=u.globalSetting;return{exercise:h,globalSetting:t,user:E,loading:b.effects}})(r)},kPWJ:function(Ye,ie,_){Ye.exports=_.p+"static/question.cb52bef9.gif"},kPYp:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(Ye,ie,_){},"kaH+":function(Ye,ie,_){"use strict";var Y=_("+L6B"),j=_("2/Rp"),L=_("tJVT"),U=_("q1tI"),S=_.n(U),g=_("XFxt"),s=_.n(g),d=_("dhSg"),w=_("rLCj"),p=_("dF/Y"),a=_("4i/N");ie.a=function(){var f=Object(U.useState)(""),x=Object(L.a)(f,2),y=x[0],m=x[1],O=Object(U.useState)(0),i=Object(L.a)(O,2),r=i[0],u=i[1],h=Object(U.useRef)("");Object(U.useEffect)(function(){var C=d.a.subscribe("preview-image",function(A){m(A),document.body.style.overflow="hidden"});return C},[]),Object(U.useEffect)(function(){return document.addEventListener("keydown",b),function(){document.removeEventListener("keydown",b)}},[]),Object(U.useEffect)(function(){h.current=y},[y]);function b(C){C.keyCode==27&&h.current&&E()}function E(){document.body.style.overflow="auto",m("")}function t(){u(r+90)}return S.a.createElement(U.Fragment,null,y?S.a.createElement("div",{className:s.a["image-preview-container"]},S.a.createElement("div",{className:s.a["button-group"]},S.a.createElement(j.a,{onClick:t},"\u65CB\u8F6C",S.a.createElement(w.a,null)),S.a.createElement(j.a,{href:y},"\u4E0B\u8F7D",S.a.createElement(p.a,null)),S.a.createElement(j.a,{onClick:E},"\u5173\u95ED",S.a.createElement(a.a,null))),S.a.createElement("div",{className:s.a["preview-wrp-group"]},S.a.createElement("img",{className:s.a["image-preview"],src:y,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(r,"deg)")}}))):null)}},kqOp:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return p});var Y=_("0Owb"),j=_("fWQN"),L=_("mtLc"),U=_("yKVA"),S=_("879j"),g=_("q1tI"),s=_.n(g),d=_("Ot1p"),w="\u2581",p=function(a){Object(U.a)(x,a);var f=Object(S.a)(x);function x(){var y;Object(j.a)(this,x);for(var m=arguments.length,O=new Array(m),i=0;i` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,O=/^\s*\[[^\]]+?\]:.*$/,i=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function u(W,G,J){return G.f=G.inline=J,J(W,G)}function h(W,G,J){return G.f=G.block=J,J(W,G)}function b(W){return!W||!/\S/.test(W.string)}function E(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==C){var G=S;if(!G){var J=Y.innerMode(U,W.htmlState);G=J.mode.name=="xml"&&J.state.tagStart===null&&!J.state.context&&J.state.tokenize.isInText}G&&(W.f=l,W.block=t,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function t(W,G){var J=W.column()===G.indentation,X=b(G.prevLine.stream),te=G.indentedCode,ee=G.prevLine.hr,be=G.list!==!1,ge=(G.listStack[G.listStack.length-1]||0)+3;G.indentedCode=!1;var je=G.indentation;if(G.indentationDiff===null&&(G.indentationDiff=G.indentation,be)){for(G.list=null;je=4&&(te||G.prevLine.fencedCodeEnd||G.prevLine.header||X))return W.skipToEnd(),G.indentedCode=!0,s.code;if(W.eatSpace())return null;if(J&&G.indentation<=ge&&(Ge=W.match(f))&&Ge[1].length<=6)return G.quote=0,G.header=Ge[1].length,G.thisLine.header=!0,L.highlightFormatting&&(G.formatting="header"),G.f=G.inline,v(G);if(G.indentation<=ge&&W.eat(">"))return G.quote=J?1:G.quote+1,L.highlightFormatting&&(G.formatting="quote"),W.eatSpace(),v(G);if(!nt&&!G.setext&&J&&G.indentation<=ge&&(Ge=W.match(p))){var he=Ge[1]?"ol":"ul";return G.indentation=je+W.current().length,G.list=!0,G.quote=0,G.listStack.push(G.indentation),G.em=!1,G.strong=!1,G.code=!1,G.strikethrough=!1,L.taskLists&&W.match(a,!1)&&(G.taskList=!0),G.f=G.inline,L.highlightFormatting&&(G.formatting=["list","list-"+he]),v(G)}else{if(J&&G.indentation<=ge&&(Ge=W.match(m,!0)))return G.quote=0,G.fencedEndRE=new RegExp(Ge[1]+"+ *$"),G.localMode=L.fencedCodeBlockHighlighting&&g(Ge[2]||L.fencedCodeBlockDefaultMode),G.localMode&&(G.localState=Y.startState(G.localMode)),G.f=G.block=A,L.highlightFormatting&&(G.formatting="code-block"),G.code=-1,v(G);if(G.setext||(!He||!be)&&!G.quote&&G.list===!1&&!G.code&&!nt&&!O.test(W.string)&&(Ge=W.lookAhead(1))&&(Ge=Ge.match(x)))return G.setext?(G.header=G.setext,G.setext=0,W.skipToEnd(),L.highlightFormatting&&(G.formatting="header")):(G.header=Ge[0].charAt(0)=="="?1:2,G.setext=G.header),G.thisLine.header=!0,G.f=G.inline,v(G);if(nt)return W.skipToEnd(),G.hr=!0,G.thisLine.hr=!0,s.hr;if(W.peek()==="[")return u(W,G,k)}return u(W,G,G.inline)}function C(W,G){var J=U.token(W,G.htmlState);if(!S){var X=Y.innerMode(U,G.htmlState);(X.mode.name=="xml"&&X.state.tagStart===null&&!X.state.context&&X.state.tokenize.isInText||G.md_inside&&W.current().indexOf(">")>-1)&&(G.f=l,G.block=t,G.htmlState=null)}return J}function A(W,G){var J=G.listStack[G.listStack.length-1]||0,X=G.indentation=W.quote?G.push(s.formatting+"-"+W.formatting[J]+"-"+W.quote):G.push("error"))}if(W.taskOpen)return G.push("meta"),G.length?G.join(" "):null;if(W.taskClosed)return G.push("property"),G.length?G.join(" "):null;if(W.linkHref?G.push(s.linkHref,"url"):(W.strong&&G.push(s.strong),W.em&&G.push(s.em),W.strikethrough&&G.push(s.strikethrough),W.emoji&&G.push(s.emoji),W.linkText&&G.push(s.linkText),W.code&&G.push(s.code),W.image&&G.push(s.image),W.imageAltText&&G.push(s.imageAltText,"link"),W.imageMarker&&G.push(s.imageMarker)),W.header&&G.push(s.header,s.header+"-"+W.header),W.quote&&(G.push(s.quote),!L.maxBlockquoteDepth||L.maxBlockquoteDepth>=W.quote?G.push(s.quote+"-"+W.quote):G.push(s.quote+"-"+L.maxBlockquoteDepth)),W.list!==!1){var X=(W.listStack.length-1)%3;X?X===1?G.push(s.list2):G.push(s.list3):G.push(s.list1)}return W.trailingSpaceNewLine?G.push("trailing-space-new-line"):W.trailingSpace&&G.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),G.length?G.join(" "):null}function o(W,G){return W.match(y,!0)?v(G):void 0}function l(W,G){var J=G.text(W,G);if(typeof J!="undefined")return J;if(G.list)return G.list=null,v(G);if(G.taskList){var X=W.match(a,!0)[1]===" ";return X?G.taskOpen=!0:G.taskClosed=!0,L.highlightFormatting&&(G.formatting="task"),G.taskList=!1,v(G)}if(G.taskOpen=!1,G.taskClosed=!1,G.header&&W.match(/^#+$/,!0))return L.highlightFormatting&&(G.formatting="header"),v(G);var te=W.next();if(G.linkTitle){G.linkTitle=!1;var ee=te;te==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var be="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(W.match(new RegExp(be),!0))return s.linkHref}if(te==="`"){var ge=G.formatting;L.highlightFormatting&&(G.formatting="code"),W.eatWhile("`");var je=W.current().length;if(G.code==0&&(!G.quote||je==1))return G.code=je,v(G);if(je==G.code){var He=v(G);return G.code=0,He}else return G.formatting=ge,v(G)}else if(G.code)return v(G);if(te==="\\"&&(W.next(),L.highlightFormatting)){var nt=v(G),Ge=s.formatting+"-escape";return nt?nt+" "+Ge:Ge}if(te==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return G.imageMarker=!0,G.image=!0,L.highlightFormatting&&(G.formatting="image"),v(G);if(te==="["&&G.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return G.imageMarker=!1,G.imageAltText=!0,L.highlightFormatting&&(G.formatting="image"),v(G);if(te==="]"&&G.imageAltText){L.highlightFormatting&&(G.formatting="image");var nt=v(G);return G.imageAltText=!1,G.image=!1,G.inline=G.f=M,nt}if(te==="["&&!G.image)return G.linkText&&W.match(/^.*?\]/)||(G.linkText=!0,L.highlightFormatting&&(G.formatting="link")),v(G);if(te==="]"&&G.linkText){L.highlightFormatting&&(G.formatting="link");var nt=v(G);return G.linkText=!1,G.inline=G.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?M:l,nt}if(te==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){G.f=G.inline=c,L.highlightFormatting&&(G.formatting="link");var nt=v(G);return nt?nt+=" ":nt="",nt+s.linkInline}if(te==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){G.f=G.inline=c,L.highlightFormatting&&(G.formatting="link");var nt=v(G);return nt?nt+=" ":nt="",nt+s.linkEmail}if(L.xml&&te==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=W.string.indexOf(">",W.pos);if(he!=-1){var ce=W.string.substring(W.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ce)&&(G.md_inside=!0)}return W.backUp(1),G.htmlState=Y.startState(U),h(W,G,C)}if(L.xml&&te==="<"&&W.match(/^\/\w*?>/))return G.md_inside=!1,"tag";if(te==="*"||te==="_"){for(var Ee=1,fe=W.pos==1?" ":W.string.charAt(W.pos-2);Ee<3&&W.eat(te);)Ee++;var Ne=W.peek()||" ",Ce=!/\s/.test(Ne)&&(!i.test(Ne)||/\s/.test(fe)||i.test(fe)),xe=!/\s/.test(fe)&&(!i.test(fe)||/\s/.test(Ne)||i.test(Ne)),ze=null,Le=null;if(Ee%2&&(!G.em&&Ce&&(te==="*"||!xe||i.test(fe))?ze=!0:G.em==te&&xe&&(te==="*"||!Ce||i.test(Ne))&&(ze=!1)),Ee>1&&(!G.strong&&Ce&&(te==="*"||!xe||i.test(fe))?Le=!0:G.strong==te&&xe&&(te==="*"||!Ce||i.test(Ne))&&(Le=!1)),Le!=null||ze!=null){L.highlightFormatting&&(G.formatting=ze==null?"strong":Le==null?"em":"strong em"),ze===!0&&(G.em=te),Le===!0&&(G.strong=te);var He=v(G);return ze===!1&&(G.em=!1),Le===!1&&(G.strong=!1),He}}else if(te===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return v(G);W.backUp(1)}if(L.strikethrough){if(te==="~"&&W.eatWhile(te)){if(G.strikethrough){L.highlightFormatting&&(G.formatting="strikethrough");var He=v(G);return G.strikethrough=!1,He}else if(W.match(/^[^\s]/,!1))return G.strikethrough=!0,L.highlightFormatting&&(G.formatting="strikethrough"),v(G)}else if(te===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return v(G);W.backUp(2)}}if(L.emoji&&te===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){G.emoji=!0,L.highlightFormatting&&(G.formatting="emoji");var Fe=v(G);return G.emoji=!1,Fe}return te===" "&&(W.match(/^ +$/,!1)?G.trailingSpace++:G.trailingSpace&&(G.trailingSpaceNewLine=!0)),v(G)}function c(W,G){var J=W.next();if(J===">"){G.f=G.inline=l,L.highlightFormatting&&(G.formatting="link");var X=v(G);return X?X+=" ":X="",X+s.linkInline}return W.match(/^[^>]+/,!0),s.linkInline}function M(W,G){if(W.eatSpace())return null;var J=W.next();return J==="("||J==="["?(G.f=G.inline=R(J==="("?")":"]"),L.highlightFormatting&&(G.formatting="link-string"),G.linkHref=!0,v(G)):"error"}var P={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function R(W){return function(G,J){var X=G.next();if(X===W){J.f=J.inline=l,L.highlightFormatting&&(J.formatting="link-string");var te=v(J);return J.linkHref=!1,te}return G.match(P[W]),J.linkHref=!0,v(J)}}function k(W,G){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(G.f=I,W.next(),L.highlightFormatting&&(G.formatting="link"),G.linkText=!0,v(G)):u(W,G,l)}function I(W,G){if(W.match(/^\]:/,!0)){G.f=G.inline=F,L.highlightFormatting&&(G.formatting="link");var J=v(G);return G.linkText=!1,J}return W.match(/^([^\]\\]|\\.)+/,!0),s.linkText}function F(W,G){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?G.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),G.f=G.inline=l,s.linkHref+" url")}var V={startState:function(){return{f:t,prevLine:{stream:null},thisLine:{stream:null},block:t,htmlState:null,indentation:0,inline:l,text:o,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(W){return{f:W.f,prevLine:W.prevLine,thisLine:W.thisLine,block:W.block,htmlState:W.htmlState&&Y.copyState(U,W.htmlState),indentation:W.indentation,localMode:W.localMode,localState:W.localMode?Y.copyState(W.localMode,W.localState):null,inline:W.inline,text:W.text,formatting:!1,linkText:W.linkText,linkTitle:W.linkTitle,linkHref:W.linkHref,code:W.code,em:W.em,strong:W.strong,strikethrough:W.strikethrough,emoji:W.emoji,header:W.header,setext:W.setext,hr:W.hr,taskList:W.taskList,list:W.list,listStack:W.listStack.slice(0),quote:W.quote,indentedCode:W.indentedCode,trailingSpace:W.trailingSpace,trailingSpaceNewLine:W.trailingSpaceNewLine,md_inside:W.md_inside,fencedEndRE:W.fencedEndRE}},token:function(W,G){if(G.formatting=!1,W!=G.thisLine.stream){if(G.header=0,G.hr=!1,W.match(/^\s*$/,!0))return E(G),null;if(G.prevLine=G.thisLine,G.thisLine={stream:W},G.taskList=!1,G.trailingSpace=0,G.trailingSpaceNewLine=!1,!G.localState&&(G.f=G.block,G.f!=C)){var J=W.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(G.indentation=J,G.indentationDiff=null,J>0)return null}}return G.f(W,G)},innerMode:function(W){return W.block==C?{state:W.htmlState,mode:U}:W.localState?{state:W.localState,mode:W.localMode}:{state:W,mode:V}},indent:function(W,G,J){return W.block==C&&U.indent?U.indent(W.htmlState,G,J):W.localState&&W.localMode.indent?W.localMode.indent(W.localState,G,J):Y.Pass},blankLine:E,getType:v,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return V},"xml"),Y.defineMIME("text/markdown","markdown"),Y.defineMIME("text/x-markdown","markdown")})},loD1:function(Ye,ie){function _(Y,j,L,U,S,g,s){if(S===0)return!1;var d=S,w=0,p=Y;if(s>j+d&&s>U+d||sY+d&&g>L+d||g=p.x&&d<=p.x+p.width&&w>=p.y&&w<=p.y+p.height},clone:function(){return new g(this.x,this.y,this.width,this.height)},copy:function(d){this.x=d.x,this.y=d.y,this.width=d.width,this.height=d.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},g.create=function(d){return new g(d.x,d.y,d.width,d.height)};var s=g;Ye.exports=s},mLcG:function(Ye,ie){var _=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Y){setTimeout(Y,16)};Ye.exports=_},mgmH:function(Ye,ie,_){"use strict";_.d(ie,"d",function(){return x}),_.d(ie,"b",function(){return y}),_.d(ie,"e",function(){return m}),_.d(ie,"c",function(){return O}),_.d(ie,"n",function(){return i}),_.d(ie,"g",function(){return r}),_.d(ie,"h",function(){return u}),_.d(ie,"j",function(){return b}),_.d(ie,"a",function(){return E}),_.d(ie,"l",function(){return t}),_.d(ie,"f",function(){return C}),_.d(ie,"k",function(){return A}),_.d(ie,"m",function(){return v}),_.d(ie,"i",function(){return o}),_.d(ie,"o",function(){return l}),_.d(ie,"r",function(){return c}),_.d(ie,"q",function(){return M}),_.d(ie,"p",function(){return P});var Y=_("miYZ"),j=_("tsqr"),L=_("k1fw"),U=_("9og8"),S=_("WmNS"),g=_.n(S),s=_("oUNq"),d=_("9kvl"),w=_("1vsH"),p=_("m3rI"),a=function(){Object(d.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},f=function(){Object(d.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},x=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return a(),W.next=3,Object(s.s)(Object(L.a)({},I));case 3:if(F=W.sent,!(F.status===0)){W.next=7;break}return W.next=7,Object(w.u)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/export_couser_info.json"),query:I}));case 7:f();case 8:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),y=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.q)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_member_act_score")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),m=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.t)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_score")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_score")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),O=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.r)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),i=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.y)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),r=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.u)(Object(L.a)({},I));case 2:if(F=W.sent,!(F.status===0)){W.next=8;break}j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_homework")),W.next=13;break;case 8:if(!(F.status===-2)){W.next=12;break}return W.abrupt("return",F);case 12:F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),u=function(){var R=Object(U.a)(g.a.mark(function k(I,F){var V;return g.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(s.w)(Object(L.a)({},I));case 2:V=G.sent,V.status===0?(j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/").concat(F))):V.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/").concat(F)));case 4:case"end":return G.stop()}},k)}));return function(I,F){return R.apply(this,arguments)}}(),h=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return a(),W.next=3,Object(s.v)(Object(L.a)({},I));case 3:if(F=W.sent,!(F.status===0)){W.next=7;break}return W.next=7,Object(w.u)("",Object(w.U)({url:p.a.API_SERVER+"/api/homework_commons/".concat(I.categoryId,"/works_list.zip"),query:I}));case 7:f();case 8:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),b=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return a(),W.next=3,Object(s.z)(Object(L.a)({},I));case 3:if(F=W.sent,!(F.status===0)){W.next=7;break}return W.next=7,Object(w.u)("",Object(w.U)({url:p.a.API_SERVER+"/api/polls/".concat(I.categoryId,"/commit_result.xlsx"),query:I}));case 7:f();case 8:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),E=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/attendances/export_xlsx_data.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),t=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/video_study_statics.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),C=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/courses/".concat(I.coursesId,"/export_course_students_info.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),A=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/item_banks/export.xlsx",query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),v=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),o=function(){var R=Object(U.a)(g.a.mark(function k(I){var F;return g.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(s.x)(Object(L.a)({},I));case 2:F=W.sent,F.status===0?(j.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/exercise_score"))):F.status===-3&&(Object(d.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),d.d.push("/classrooms/".concat(I.coursesId,"/exportlist/exercise_score")));case 4:case"end":return W.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),l=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),V.next=3,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/export_records/".concat(I.id,".xlsx"),query:I}));case 3:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),c=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),M=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/ec_years/".concat(I==null?void 0:I.ec_year_id,"/ec_training_objectives.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}(),P=function(){var R=Object(U.a)(g.a.mark(function k(I){return g.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(w.t)("",Object(w.U)({url:p.a.API_SERVER+"/api/ec_years/".concat(I==null?void 0:I.ec_year_id,"/ec_graduation_requirements.xlsx"),query:I}));case 2:case"end":return V.stop()}},k)}));return function(I){return R.apply(this,arguments)}}()},mxOx:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___1OKqY",flex_space_between:"flex_space_between___9LtA4",flex_box_vertical_center:"flex_box_vertical_center___1eoO3",flex_box_center_end:"flex_box_center_end___2z5cA",flex_box_column:"flex_box_column___EmE-R",wrap:"wrap___1KKiW",control:"control___1QLLH",btn:"btn___2uv5p",customTable:"customTable___1j8g4",bgH:"bgH___38VTN",cusModal:"cusModal___3m_hn",imgWrap:"imgWrap___1V_Vd",img:"img___3YaEG",iBtn:"iBtn___2kloF",text:"text___3R4ja",no:"no___1ION1",textP:"textP___1nOEX",video:"video___TW5nF",sys:"sys___lyOTD",li:"li___1BzVB",d1:"d1___fIaVJ",b1:"b1____gBjv",es:"es___2kUwZ"}},n1HI:function(Ye,ie,_){var Y=_("hX1E"),j=Y.normalizeRadian,L=Math.PI*2;function U(S,g,s,d,w,p,a,f,x){if(a===0)return!1;var y=a;f-=S,x-=g;var m=Math.sqrt(f*f+x*x);if(m-y>s||m+yw&&(w+=L);var i=Math.atan2(x,f);return i<0&&(i+=L),i>=d&&i<=w||i+L>=d&&i+L<=w}ie.containStroke=U},n6Mw:function(Ye,ie,_){var Y=_("SrGk"),j=_("bYtY"),L=_("Fofx");function U(g,s){Y.call(this,g,s,"clipPath","__clippath_in_use__")}j.inherits(U,Y),U.prototype.update=function(g){var s=this.getSvgElement(g);s&&this.updateDom(s,g.__clipPaths,!1);var d=this.getTextSvgElement(g);d&&this.updateDom(d,g.__clipPaths,!0),this.markUsed(g)},U.prototype.updateDom=function(g,s,d){if(s&&s.length>0){var w=this.getDefs(!0),p=s[0],a,f,x=d?"_textDom":"_dom";p[x]?(f=p[x].getAttribute("id"),a=p[x],w.contains(a)||w.appendChild(a)):(f="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",f),w.appendChild(a),p[x]=a);var y=this.getSvgProxy(p);if(p.transform&&p.parent.invTransform&&!d){var m=Array.prototype.slice.call(p.transform);L.mul(p.transform,p.parent.invTransform,p.transform),y.brush(p),p.transform=m}else y.brush(p);var O=this.getSvgElement(p);a.innerHTML="",a.appendChild(O.cloneNode()),g.setAttribute("clip-path","url(#"+f+")"),s.length>1&&this.updateDom(a,s.slice(1),d)}else g&&g.setAttribute("clip-path","none")},U.prototype.markUsed=function(g){var s=this;g.__clipPaths&&j.each(g.__clipPaths,function(d){d._dom&&Y.prototype.markUsed.call(s,d._dom),d._textDom&&Y.prototype.markUsed.call(s,d._textDom)})};var S=U;Ye.exports=S},n6Qo:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return d});var Y=_("q1tI"),j=_("biw7"),L=_("fyJ8");function U(w){var p=w.className,a=w.index,f=w.children,x=w.colSpan,y=w.rowSpan,m=Y.useContext(j.a),O=m.prefixCls,i=m.fixedInfoList,r=i[a];return Y.createElement(L.a,Object.assign({className:p,index:a,component:"td",prefixCls:O,record:null,dataIndex:null,render:function(){return{children:f,props:{colSpan:x,rowSpan:y}}}},r))}function S(w){return Y.createElement("tr",Object.assign({},w))}function g(w){var p=w.children,a=Y.useContext(j.a),f=a.prefixCls;return Y.createElement("tfoot",{className:"".concat(f,"-summary")},p)}var s=ie.b=g,d={Cell:U,Row:S}},nCxF:function(Ye,ie,_){var Y=_("QBsz"),j=Y.min,L=Y.max,U=Y.scale,S=Y.distance,g=Y.add,s=Y.clone,d=Y.sub;function w(p,a,f,x){var y=[],m=[],O=[],i=[],r,u,h,b;if(x){h=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var E=0,t=p.length;Ez.bottom,en=me.leftz.right,rn=kt&&en;if(rn)return!0;var Ut=kt&&Ze||en&&Ie;return Ut}},Nt=function(z){var K=bt(z.top,z.bottom),q=bt(z.left,z.right);return function(me){var ke=K(me.top)&&K(me.bottom)&&q(me.left)&&q(me.right);return ke}},jt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},bn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Te=function(z){return function(K){var q=bt(K.top,K.bottom),me=bt(K.left,K.right);return function(ke){return z===jt?q(ke.top)&&q(ke.bottom):me(ke.left)&&me(ke.right)}}},ve=function(K,q){var me=q.frame?q.frame.scroll.diff.displacement:at;return sn(K,me)},Q=function(K,q,me){return q.subject.active?me(q.subject.active)(K):!1},$=function(K,q,me){return me(q)(K)},re=function(K){var q=K.target,me=K.destination,ke=K.viewport,Ie=K.withDroppableDisplacement,Ze=K.isVisibleThroughFrameFn,qe=Ie?ve(q,me):q;return Q(qe,me,Ze)&&$(qe,ke,Ze)},de=function(K){return re(Object(U.a)({},K,{isVisibleThroughFrameFn:ft}))},Ue=function(K){return re(Object(U.a)({},K,{isVisibleThroughFrameFn:Nt}))},it=function(K){return re(Object(U.a)({},K,{isVisibleThroughFrameFn:Te(K.destination.axis)}))},Mt=function(K,q,me){if(typeof me=="boolean")return me;if(!q)return!0;var ke=q.invisible,Ie=q.visible;if(ke[K])return!1;var Ze=Ie[K];return Ze?Ze.shouldAnimate:!0};function Ln(z,K){var q=z.page.marginBox,me={top:K.point.y,right:0,bottom:0,left:K.point.x};return x(b(q,me))}function kn(z){var K=z.afterDragging,q=z.destination,me=z.displacedBy,ke=z.viewport,Ie=z.forceShouldAnimate,Ze=z.last;return K.reduce(function(kt,en){var rn=Ln(en,me),Ut=en.descriptor.id;kt.all.push(Ut);var It=de({target:rn,destination:q,viewport:ke,withDroppableDisplacement:!0});if(!It)return kt.invisible[en.descriptor.id]=!0,kt;var qt=Mt(Ut,Ze,Ie),Nn={draggableId:Ut,shouldAnimate:qt};return kt.visible[Ut]=Nn,kt},{all:[],visible:{},invisible:{}})}function St(z,K){if(!z.length)return 0;var q=z[z.length-1].descriptor.index;return K.inHomeList?q:q+1}function an(z){var K=z.insideDestination,q=z.inHomeList,me=z.displacedBy,ke=z.destination,Ie=St(K,{inHomeList:q});return{displaced:$t,displacedBy:me,at:{type:"REORDER",destination:{droppableId:ke.descriptor.id,index:Ie}}}}function Pn(z){var K=z.draggable,q=z.insideDestination,me=z.destination,ke=z.viewport,Ie=z.displacedBy,Ze=z.last,qe=z.index,kt=z.forceShouldAnimate,en=Xt(K,me);if(qe==null)return an({insideDestination:q,inHomeList:en,displacedBy:Ie,destination:me});var rn=et(q,function(Gr){return Gr.descriptor.index===qe});if(!rn)return an({insideDestination:q,inHomeList:en,displacedBy:Ie,destination:me});var Ut=Be(K,q),It=q.indexOf(rn),qt=Ut.slice(It),Nn=kn({afterDragging:qt,destination:me,displacedBy:Ie,last:Ze,viewport:ke.frame,forceShouldAnimate:kt});return{displaced:Nn,displacedBy:Ie,at:{type:"REORDER",destination:{droppableId:me.descriptor.id,index:qe}}}}function dn(z,K){return Boolean(K.effected[z])}var jn=function(z){var K=z.isMovingForward,q=z.destination,me=z.draggables,ke=z.combine,Ie=z.afterCritical;if(!q.isCombineEnabled)return null;var Ze=ke.draggableId,qe=me[Ze],kt=qe.descriptor.index,en=dn(Ze,Ie);return en?K?kt:kt-1:K?kt+1:kt},Bn=function(z){var K=z.isMovingForward,q=z.isInHomeList,me=z.insideDestination,ke=z.location;if(!me.length)return null;var Ie=ke.index,Ze=K?Ie+1:Ie-1,qe=me[0].descriptor.index,kt=me[me.length-1].descriptor.index,en=q?kt:kt+1;return Zeen?null:Ze},ne=function(z){var K=z.isMovingForward,q=z.isInHomeList,me=z.draggable,ke=z.draggables,Ie=z.destination,Ze=z.insideDestination,qe=z.previousImpact,kt=z.viewport,en=z.afterCritical,rn=qe.at;if(rn||ce(!1),rn.type==="REORDER"){var Ut=Bn({isMovingForward:K,isInHomeList:q,location:rn.destination,insideDestination:Ze});return Ut==null?null:Pn({draggable:me,insideDestination:Ze,destination:Ie,viewport:kt,last:qe.displaced,displacedBy:qe.displacedBy,index:Ut})}var It=jn({isMovingForward:K,destination:Ie,displaced:qe.displaced,draggables:ke,combine:rn.combine,afterCritical:en});return It==null?null:Pn({draggable:me,insideDestination:Ze,destination:Ie,viewport:kt,last:qe.displaced,displacedBy:qe.displacedBy,index:It})},B=function(z){var K=z.displaced,q=z.afterCritical,me=z.combineWith,ke=z.displacedBy,Ie=Boolean(K.visible[me]||K.invisible[me]);return dn(me,q)?Ie?at:Qt(ke.point):Ie?ke.point:at},H=function(z){var K=z.afterCritical,q=z.impact,me=z.draggables,ke=Lt(q);ke||ce(!1);var Ie=ke.draggableId,Ze=me[Ie].page.borderBox.center,qe=B({displaced:q.displaced,afterCritical:K,combineWith:Ie,displacedBy:q.displacedBy});return At(Ze,qe)},ae=function(K,q){return q.margin[K.start]+q.borderBox[K.size]/2},ue=function(K,q){return q.margin[K.end]+q.borderBox[K.size]/2},oe=function(K,q,me){return q[K.crossAxisStart]+me.margin[K.crossAxisStart]+me.borderBox[K.crossAxisSize]/2},ht=function(K){var q=K.axis,me=K.moveRelativeTo,ke=K.isMoving;return Cn(q.line,me.marginBox[q.end]+ae(q,ke),oe(q,me.marginBox,ke))},vn=function(K){var q=K.axis,me=K.moveRelativeTo,ke=K.isMoving;return Cn(q.line,me.marginBox[q.start]-ue(q,ke),oe(q,me.marginBox,ke))},Tn=function(K){var q=K.axis,me=K.moveInto,ke=K.isMoving;return Cn(q.line,me.contentBox[q.start]+ae(q,ke),oe(q,me.contentBox,ke))},cr=function(z){var K=z.impact,q=z.draggable,me=z.draggables,ke=z.droppable,Ie=z.afterCritical,Ze=pe(ke.descriptor.id,me),qe=q.page,kt=ke.axis;if(!Ze.length)return Tn({axis:kt,moveInto:ke.page,isMoving:qe});var en=K.displaced,rn=K.displacedBy,Ut=en.all[0];if(Ut){var It=me[Ut];if(dn(Ut,Ie))return vn({axis:kt,moveRelativeTo:It.page,isMoving:qe});var qt=y(It.page,rn.point);return vn({axis:kt,moveRelativeTo:qt,isMoving:qe})}var Nn=Ze[Ze.length-1];if(Nn.descriptor.id===q.descriptor.id)return qe.borderBox.center;if(dn(Nn.descriptor.id,Ie)){var Gr=y(Nn.page,Qt(Ie.displacedBy.point));return ht({axis:kt,moveRelativeTo:Gr,isMoving:qe})}return ht({axis:kt,moveRelativeTo:Nn.page,isMoving:qe})},Vt=function(z,K){var q=z.frame;return q?At(K,q.scroll.diff.displacement):K},Et=function(K){var q=K.impact,me=K.draggable,ke=K.droppable,Ie=K.draggables,Ze=K.afterCritical,qe=me.page.borderBox.center,kt=q.at;return ke&&kt?kt.type==="REORDER"?cr({impact:q,draggable:me,draggables:Ie,droppable:ke,afterCritical:Ze}):H({impact:q,draggables:Ie,afterCritical:Ze}):qe},Jt=function(z){var K=Et(z),q=z.droppable,me=q?Vt(q,K):K;return me},Fn=function(z,K){var q=Rt(K,z.scroll.initial),me=Qt(q),ke=x({top:K.y,bottom:K.y+z.frame.height,left:K.x,right:K.x+z.frame.width}),Ie={frame:ke,scroll:{initial:z.scroll.initial,max:z.scroll.max,current:K,diff:{value:q,displacement:me}}};return Ie};function Vn(z,K){return z.map(function(q){return K[q]})}function Kn(z,K){for(var q=0;q1?rn.sort(function(Ut,It){return Jn(Ut)[qe.start]-Jn(It)[qe.start]})[0]:en.sort(function(Ut,It){var qt=mt(q,Tt(Jn(Ut))),Nn=mt(q,Tt(Jn(It)));return qt!==Nn?qt-Nn:Jn(Ut)[qe.start]-Jn(It)[qe.start]})[0]},Sn=function(K,q){var me=K.page.borderBox.center;return dn(K.descriptor.id,q)?Rt(me,q.displacedBy.point):me},On=function(K,q){var me=K.page.borderBox;return dn(K.descriptor.id,q)?sn(me,Qt(q.displacedBy.point)):me},or=function(z){var K=z.pageBorderBoxCenter,q=z.viewport,me=z.destination,ke=z.insideDestination,Ie=z.afterCritical,Ze=ke.filter(function(qe){return Ue({target:On(qe,Ie),destination:me,viewport:q.frame,withDroppableDisplacement:!0})}).sort(function(qe,kt){var en=Un(K,Vt(me,Sn(qe,Ie))),rn=Un(K,Vt(me,Sn(kt,Ie)));return enK.left&&z.topK.top}function ur(z){var K=z.pageBorderBox,q=z.draggable,me=z.candidates,ke=q.page.borderBox.center,Ie=me.map(function(Ze){var qe=Ze.axis,kt=Cn(Ze.axis.line,K.center[qe.line],Ze.page.borderBox.center[qe.crossAxisLine]);return{id:Ze.descriptor.id,distance:Un(ke,kt)}}).sort(function(Ze,qe){return qe.distance-Ze.distance});return Ie[0]?Ie[0].id:null}function Mn(z){var K=z.pageBorderBox,q=z.draggable,me=z.droppables,ke=yt(me).filter(function(Ie){if(!Ie.isEnabled)return!1;var Ze=Ie.subject.active;if(!Ze)return!1;if(!cn(K,Ze))return!1;if(_n(Ze)(K.center))return!0;var qe=Ie.axis,kt=Ze.center[qe.crossAxisLine],en=K[qe.crossAxisStart],rn=K[qe.crossAxisEnd],Ut=bt(Ze[qe.crossAxisStart],Ze[qe.crossAxisEnd]),It=Ut(en),qt=Ut(rn);return!It&&!qt?!0:It?enkt});return ke.length?ke.length===1?ke[0].descriptor.id:ur({pageBorderBox:K,draggable:q,candidates:ke}):null}var fn=function(K,q){return x(sn(K,q))},Hn=function(z,K){var q=z.frame;return q?fn(K,q.scroll.diff.value):K};function Xn(z){var K=z.displaced,q=z.id;return Boolean(K.visible[q]||K.invisible[q])}function $n(z){var K=z.draggable,q=z.closest,me=z.inHomeList;return q?me&&q.descriptor.index>K.descriptor.index?q.descriptor.index-1:q.descriptor.index:null}var Yn=function(z){var K=z.pageBorderBoxWithDroppableScroll,q=z.draggable,me=z.destination,ke=z.insideDestination,Ie=z.last,Ze=z.viewport,qe=z.afterCritical,kt=me.axis,en=Dn(me.axis,q.displaceBy),rn=en.value,Ut=K[kt.start],It=K[kt.end],qt=Be(q,ke),Nn=et(qt,function(qr){var da=qr.descriptor.id,va=qr.page.borderBox.center[kt.line],Ua=dn(da,qe),pa=Xn({displaced:Ie,id:da});return Ua?pa?It<=va:Utda[qe.start]+Ua&&Utda[qe.start]-en+Ua&&rnda[qe.start]+en+Ua&&Utda[qe.start]+Ua&&rn=Jr)return gr;var Ie=ke/Jr,Ze=zn+Xr*Ie,qe=me==="CANCEL"?Ze*aa:Ze;return Number(qe.toFixed(2))},Lr=function(z){var K=z.impact,q=z.draggable,me=z.dimensions,ke=z.viewport,Ie=z.afterCritical,Ze=me.draggables,qe=me.droppables,kt=Kt(K),en=kt?qe[kt]:null,rn=qe[q.descriptor.droppableId],Ut=kr({impact:K,draggable:q,draggables:Ze,afterCritical:Ie,droppable:en||rn,viewport:ke}),It=Rt(Ut,q.client.borderBox.center);return It},oa=function(z){var K=z.draggables,q=z.reason,me=z.lastImpact,ke=z.home,Ie=z.viewport,Ze=z.onLiftImpact;if(!me.at||q!=="DROP"){var qe=Cr({draggables:K,impact:Ze,destination:ke,viewport:Ie,forceShouldAnimate:!0});return{impact:qe,didDropInsideDroppable:!1}}if(me.at.type==="REORDER")return{impact:me,didDropInsideDroppable:!0};var kt=Object(U.a)({},me,{displaced:$t});return{impact:kt,didDropInsideDroppable:!0}},ba=function(z){var K=z.getState,q=z.dispatch;return function(me){return function(ke){if(ke.type!=="DROP"){me(ke);return}var Ie=K(),Ze=ke.payload.reason;if(Ie.phase==="COLLECTING"){q(vt({reason:Ze}));return}if(Ie.phase==="IDLE")return;var qe=Ie.phase==="DROP_PENDING"&&Ie.isWaiting;qe&&ce(!1),Ie.phase==="DRAGGING"||Ie.phase==="DROP_PENDING"||ce(!1);var kt=Ie.critical,en=Ie.dimensions,rn=en.draggables[Ie.critical.draggable.id],Ut=oa({reason:Ze,lastImpact:Ie.impact,afterCritical:Ie.afterCritical,onLiftImpact:Ie.onLiftImpact,home:Ie.dimensions.droppables[Ie.critical.droppable.id],viewport:Ie.viewport,draggables:Ie.dimensions.draggables}),It=Ut.impact,qt=Ut.didDropInsideDroppable,Nn=qt?Gt(It):null,Gr=qt?Lt(It):null,qr={index:kt.draggable.index,droppableId:kt.droppable.id},da={draggableId:rn.descriptor.id,type:rn.descriptor.type,source:qr,reason:Ze,mode:Ie.movementMode,destination:Nn,combine:Gr},va=Lr({impact:It,draggable:rn,dimensions:en,viewport:Ie.viewport,afterCritical:Ie.afterCritical}),Ua={critical:Ie.critical,afterCritical:Ie.afterCritical,result:da,impact:It},pa=!tn(Ie.current.client.offset,va)||Boolean(da.combine);if(!pa){q($e({completed:Ua}));return}var ei=hn({current:Ie.current.client.offset,destination:va,reason:Ze}),Ya={newHomeClientOffset:va,dropDuration:ei,completed:Ua};q(Mr(Ya))}}},_t=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Wr(z){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(q){if(q.target!==window&&q.target!==window.document)return;z()}}}function un(z){var K=z.onWindowScroll;function q(){K(_t())}var me=P(q),ke=Wr(me),Ie=ge;function Ze(){return Ie!==ge}function qe(){Ze()&&ce(!1),Ie=He(window,[ke])}function kt(){Ze()||ce(!1),me.cancel(),Ie(),Ie=ge}return{start:qe,stop:kt,isActive:Ze}}var Rn=function(K){return K.type==="DROP_COMPLETE"||K.type==="DROP_ANIMATE"||K.type==="FLUSH"},xr=function(z){var K=un({onWindowScroll:function(me){z.dispatch(Ir({newScroll:me}))}});return function(q){return function(me){!K.isActive()&&me.type==="INITIAL_PUBLISH"&&K.start(),K.isActive()&&Rn(me)&&K.stop(),q(me)}}},Ca=function(z){var K=!1,q=!1,me=setTimeout(function(){q=!0}),ke=function(Ze){if(K)return;if(q)return;K=!0,z(Ze),clearTimeout(me)};return ke.wasCalled=function(){return K},ke},Nr=function(){var z=[],K=function(Ie){var Ze=dt(z,function(en){return en.timerId===Ie});Ze!==-1||ce(!1);var qe=z.splice(Ze,1),kt=qe[0];kt.callback()},q=function(Ie){var Ze=setTimeout(function(){return K(Ze)}),qe={timerId:Ze,callback:Ie};z.push(qe)},me=function(){if(!z.length)return;var Ie=[].concat(z);z.length=0,Ie.forEach(function(Ze){clearTimeout(Ze.timerId),Ze.callback()})};return{add:q,flush:me}},Sr=function(K,q){return K==null&&q==null?!0:K==null||q==null?!1:K.droppableId===q.droppableId&&K.index===q.index},xa=function(K,q){return K==null&&q==null?!0:K==null||q==null?!1:K.draggableId===q.draggableId&&K.droppableId===q.droppableId},Vr=function(K,q){if(K===q)return!0;var me=K.draggable.id===q.draggable.id&&K.draggable.droppableId===q.draggable.droppableId&&K.draggable.type===q.draggable.type&&K.draggable.index===q.draggable.index,ke=K.droppable.id===q.droppable.id&&K.droppable.type===q.droppable.type;return me&&ke},nr=function(K,q){ga(),q(),Fa()},Fr=function(K,q){return{draggableId:K.draggable.id,type:K.droppable.type,source:{droppableId:K.droppable.id,index:K.draggable.index},mode:q}},Wn=function(K,q,me,ke){if(!K){me(ke(q));return}var Ie=Ca(me),Ze={announce:Ie};K(q,Ze),Ie.wasCalled()||me(ke(q))},pn=function(z,K){var q=Nr(),me=null,ke=function(It,qt){me&&ce(!1),nr("onBeforeCapture",function(){var Nn=z().onBeforeCapture;if(Nn){var Gr={draggableId:It,mode:qt};Nn(Gr)}})},Ie=function(It,qt){me&&ce(!1),nr("onBeforeDragStart",function(){var Nn=z().onBeforeDragStart;Nn&&Nn(Fr(It,qt))})},Ze=function(It,qt){me&&ce(!1);var Nn=Fr(It,qt);me={mode:qt,lastCritical:It,lastLocation:Nn.source,lastCombine:null},q.add(function(){nr("onDragStart",function(){return Wn(z().onDragStart,Nn,K,Ve.onDragStart)})})},qe=function(It,qt){var Nn=Gt(qt),Gr=Lt(qt);me||ce(!1);var qr=!Vr(It,me.lastCritical);qr&&(me.lastCritical=It);var da=!Sr(me.lastLocation,Nn);da&&(me.lastLocation=Nn);var va=!xa(me.lastCombine,Gr);if(va&&(me.lastCombine=Gr),!qr&&!da&&!va)return;var Ua=Object(U.a)({},Fr(It,me.mode),{combine:Gr,destination:Nn});q.add(function(){nr("onDragUpdate",function(){return Wn(z().onDragUpdate,Ua,K,Ve.onDragUpdate)})})},kt=function(){me||ce(!1),q.flush()},en=function(It){me||ce(!1),me=null,nr("onDragEnd",function(){return Wn(z().onDragEnd,It,K,Ve.onDragEnd)})},rn=function(){if(!me)return;var It=Object(U.a)({},Fr(me.lastCritical,me.mode),{combine:null,destination:null,reason:"CANCEL"});en(It)};return{beforeCapture:ke,beforeStart:Ie,start:Ze,update:qe,flush:kt,drop:en,abort:rn}},Rr=function(z,K){var q=pn(z,K);return function(me){return function(ke){return function(Ie){if(Ie.type==="BEFORE_INITIAL_CAPTURE"){q.beforeCapture(Ie.payload.draggableId,Ie.payload.movementMode);return}if(Ie.type==="INITIAL_PUBLISH"){var Ze=Ie.payload.critical;q.beforeStart(Ze,Ie.payload.movementMode),ke(Ie),q.start(Ze,Ie.payload.movementMode);return}if(Ie.type==="DROP_COMPLETE"){var qe=Ie.payload.completed.result;q.flush(),ke(Ie),q.drop(qe);return}if(ke(Ie),Ie.type==="FLUSH"){q.abort();return}var kt=me.getState();kt.phase==="DRAGGING"&&q.update(kt.critical,kt.impact)}}}},qn=function(z){return function(K){return function(q){if(q.type!=="DROP_ANIMATION_FINISHED"){K(q);return}var me=z.getState();me.phase==="DROP_ANIMATING"||ce(!1),z.dispatch($e({completed:me.completed}))}}},Ar=function(z){var K=null,q=null;function me(){q&&(cancelAnimationFrame(q),q=null),K&&(K(),K=null)}return function(ke){return function(Ie){if((Ie.type==="FLUSH"||Ie.type==="DROP_COMPLETE"||Ie.type==="DROP_ANIMATION_FINISHED")&&me(),ke(Ie),Ie.type!=="DROP_ANIMATE")return;var Ze={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var kt=z.getState();kt.phase==="DROP_ANIMATING"&&z.dispatch(Me())}};q=requestAnimationFrame(function(){q=null,K=He(window,[Ze])})}}},Da=function(z){return function(){return function(K){return function(q){(q.type==="DROP_COMPLETE"||q.type==="FLUSH"||q.type==="DROP_ANIMATE")&&z.stopPublishing(),K(q)}}}},Ia=function(z){var K=!1;return function(){return function(q){return function(me){if(me.type==="INITIAL_PUBLISH"){K=!0,z.tryRecordFocus(me.payload.critical.draggable.id),q(me),z.tryRestoreFocusRecorded();return}if(q(me),!K)return;if(me.type==="FLUSH"){K=!1,z.tryRestoreFocusRecorded();return}if(me.type==="DROP_COMPLETE"){K=!1;var ke=me.payload.completed.result;ke.combine&&z.tryShiftRecord(ke.draggableId,ke.combine.draggableId),z.tryRestoreFocusRecorded()}}}}},La=function(K){return K.type==="DROP_COMPLETE"||K.type==="DROP_ANIMATE"||K.type==="FLUSH"},Br=function(z){return function(K){return function(q){return function(me){if(La(me)){z.stop(),q(me);return}if(me.type==="INITIAL_PUBLISH"){q(me);var ke=K.getState();ke.phase==="DRAGGING"||ce(!1),z.start(ke);return}q(me),z.scroll(K.getState())}}}},$r=function(z){return function(K){return function(q){if(K(q),q.type!=="PUBLISH_WHILE_DRAGGING")return;var me=z.getState();if(me.phase!=="DROP_PENDING")return;if(me.isWaiting)return;z.dispatch(pt({reason:me.reason}))}}},ka=S.d,Na=function(z){var K=z.dimensionMarshal,q=z.focusMarshal,me=z.styleMarshal,ke=z.getResponders,Ie=z.announce,Ze=z.autoScroller;return Object(S.e)(An,ka(Object(S.a)(st(me),Da(K),De(K),ba,qn,Ar,$r,Br(Ze),xr,Ia(q),Rr(ke,Ie))))},qa=function(){return{additions:{},removals:{},modified:{}}};function ii(z){var K=z.registry,q=z.callbacks,me=qa(),ke=null,Ie=function(){if(ke)return;q.collectionStarting(),ke=requestAnimationFrame(function(){ke=null,ga();var rn=me,Ut=rn.additions,It=rn.removals,qt=rn.modified,Nn=Object.keys(Ut).map(function(da){return K.draggable.getById(da).getDimension(at)}).sort(function(da,va){return da.descriptor.index-va.descriptor.index}),Gr=Object.keys(qt).map(function(da){var va=K.droppable.getById(da),Ua=va.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Ua}}),qr={additions:Nn,removals:Object.keys(It),modified:Gr};me=qa(),Fa(),q.publish(qr)})},Ze=function(rn){var Ut=rn.descriptor.id;me.additions[Ut]=rn,me.modified[rn.descriptor.droppableId]=!0,me.removals[Ut]&&delete me.removals[Ut],Ie()},qe=function(rn){var Ut=rn.descriptor;me.removals[Ut.id]=!0,me.modified[Ut.droppableId]=!0,me.additions[Ut.id]&&delete me.additions[Ut.id],Ie()},kt=function(){if(!ke)return;cancelAnimationFrame(ke),ke=null,me=qa()};return{add:Ze,remove:qe,stop:kt}}var ri=function(z){var K=z.scrollHeight,q=z.scrollWidth,me=z.height,ke=z.width,Ie=Rt({x:q,y:K},{x:ke,y:me}),Ze={x:Math.max(0,Ie.x),y:Math.max(0,Ie.y)};return Ze},Ka=function(){var z=document.documentElement;return z||ce(!1),z},Ai=function(){var z=Ka(),K=ri({scrollHeight:z.scrollHeight,scrollWidth:z.scrollWidth,width:z.clientWidth,height:z.clientHeight});return K},Ri=function(){var z=_t(),K=Ai(),q=z.y,me=z.x,ke=Ka(),Ie=ke.clientWidth,Ze=ke.clientHeight,qe=me+Ie,kt=q+Ze,en=x({top:q,left:me,right:qe,bottom:kt}),rn={frame:en,scroll:{initial:z,current:z,max:K,diff:{value:at,displacement:at}}};return rn},$a=function(z){var K=z.critical,q=z.scrollOptions,me=z.registry;ga();var ke=Ri(),Ie=ke.scroll.current,Ze=K.droppable,qe=me.droppable.getAllByType(Ze.type).map(function(Ut){return Ut.callbacks.getDimensionAndWatchScroll(Ie,q)}),kt=me.draggable.getAllByType(K.draggable.type).map(function(Ut){return Ut.getDimension(Ie)}),en={draggables:Dt(kt),droppables:xn(qe)};Fa();var rn={dimensions:en,critical:K,viewport:ke};return rn};function Ga(z,K,q){if(q.descriptor.id===K.id)return!1;if(q.descriptor.type!==K.type)return!1;var me=z.droppable.getById(q.descriptor.droppableId);return!(me.descriptor.mode!=="virtual")}var ui=function(z,K){var q=null,me=ii({callbacks:{publish:K.publishWhileDragging,collectionStarting:K.collectionStarting},registry:z}),ke=function(qt,Nn){if(z.droppable.exists(qt)||ce(!1),!q)return;K.updateDroppableIsEnabled({id:qt,isEnabled:Nn})},Ie=function(qt,Nn){if(!q)return;z.droppable.exists(qt)||ce(!1),K.updateDroppableIsCombineEnabled({id:qt,isCombineEnabled:Nn})},Ze=function(qt,Nn){if(!q)return;z.droppable.exists(qt)||ce(!1),K.updateDroppableScroll({id:qt,newScroll:Nn})},qe=function(qt,Nn){if(!q)return;z.droppable.getById(qt).callbacks.scroll(Nn)},kt=function(){if(!q)return;me.stop();var qt=q.critical.droppable;z.droppable.getAllByType(qt.type).forEach(function(Nn){return Nn.callbacks.dragStopped()}),q.unsubscribe(),q=null},en=function(qt){q||ce(!1);var Nn=q.critical.draggable;qt.type==="ADDITION"&&(Ga(z,Nn,qt.value)&&me.add(qt.value)),qt.type==="REMOVAL"&&(Ga(z,Nn,qt.value)&&me.remove(qt.value))},rn=function(qt){q&&ce(!1);var Nn=z.draggable.getById(qt.draggableId),Gr=z.droppable.getById(Nn.descriptor.droppableId),qr={draggable:Nn.descriptor,droppable:Gr.descriptor},da=z.subscribe(en);return q={critical:qr,unsubscribe:da},$a({critical:qr,registry:z,scrollOptions:qt.scrollOptions})},Ut={updateDroppableIsEnabled:ke,updateDroppableIsCombineEnabled:Ie,scrollDroppable:qe,updateDroppableScroll:Ze,startPublishing:rn,stopPublishing:kt};return Ut},Ji=function(z,K){return z.phase==="IDLE"?!0:z.phase!=="DROP_ANIMATING"||z.completed.result.draggableId===K?!1:z.completed.result.reason==="DROP"},wo=function(z){window.scrollBy(z.x,z.y)},Ii=c(function(z){return yt(z).filter(function(K){return K.isEnabled?!!K.frame:!1})}),Zi=function(K,q){var me=et(Ii(q),function(ke){return ke.frame||ce(!1),_n(ke.frame.pageMarginBox)(K)});return me},qi=function(z){var K=z.center,q=z.destination,me=z.droppables;if(q){var ke=me[q];return ke.frame?ke:null}var Ie=Zi(K,me);return Ie},wi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(K){return Math.pow(K,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},$i=function(z,K){var q=z[K.size]*wi.startFromPercentage,me=z[K.size]*wi.maxScrollAtPercentage,ke={startScrollingFrom:q,maxScrollValueAt:me};return ke},ho=function(z){var K=z.startOfRange,q=z.endOfRange,me=z.current,ke=q-K;if(ke===0)return 0;var Ie=me-K,Ze=Ie/ke;return Ze},mo=1,Ti=function(z,K){if(z>K.startScrollingFrom)return 0;if(z<=K.maxScrollValueAt)return wi.maxPixelScroll;if(z===K.startScrollingFrom)return mo;var q=ho({startOfRange:K.maxScrollValueAt,endOfRange:K.startScrollingFrom,current:z}),me=1-q,ke=wi.maxPixelScroll*wi.ease(me);return Math.ceil(ke)},Ra=wi.durationDampening.accelerateAt,Sa=wi.durationDampening.stopDampeningAt,wa=function(z,K){var q=K,me=Sa,ke=Date.now(),Ie=ke-q;if(Ie>=Sa)return z;if(IeK.height,Ie=q.width>K.width;return!Ie&&!ke?me:Ie&&ke?null:{x:Ie?0:me.x,y:ke?0:me.y}},li=lt(function(z){return z===0?0:z}),ro=function(z){var K=z.dragStartTime,q=z.container,me=z.subject,ke=z.center,Ie=z.shouldUseTimeDampening,Ze={top:ke.y-q.top,right:q.right-ke.x,bottom:q.bottom-ke.y,left:ke.x-q.left},qe=oi({container:q,distanceToEdges:Ze,dragStartTime:K,axis:jt,shouldUseTimeDampening:Ie}),kt=oi({container:q,distanceToEdges:Ze,dragStartTime:K,axis:bn,shouldUseTimeDampening:Ie}),en=li({x:kt,y:qe});if(tn(en,at))return null;var rn=bi({container:q,subject:me,proposedScroll:en});return rn?tn(rn,at)?null:rn:null},po=lt(function(z){return z===0?0:z>0?1:-1}),pi=function(){var z=function(q,me){return q<0?q:q>me?q-me:0};return function(K){var q=K.current,me=K.max,ke=K.change,Ie=At(q,ke),Ze={x:z(Ie.x,me.x),y:z(Ie.y,me.y)};return tn(Ze,at)?null:Ze}}(),Hi=function(K){var q=K.max,me=K.current,ke=K.change,Ie={x:Math.max(me.x,q.x),y:Math.max(me.y,q.y)},Ze=po(ke),qe=pi({max:Ie,current:me,change:Ze});return qe?Ze.x!==0&&qe.x===0?!0:Ze.y!==0&&qe.y===0:!0},vi=function(K,q){return Hi({current:K.scroll.current,max:K.scroll.max,change:q})},Ki=function(K,q){if(!vi(K,q))return null;var me=K.scroll.max,ke=K.scroll.current;return pi({current:ke,max:me,change:q})},Gi=function(K,q){var me=K.frame;return me?Hi({current:me.scroll.current,max:me.scroll.max,change:q}):!1},So=function(K,q){var me=K.frame;return me&&Gi(K,q)?pi({current:me.scroll.current,max:me.scroll.max,change:q}):null},vo=function(z){var K=z.viewport,q=z.subject,me=z.center,ke=z.dragStartTime,Ie=z.shouldUseTimeDampening,Ze=ro({dragStartTime:ke,container:K.frame,subject:q,center:me,shouldUseTimeDampening:Ie});return Ze&&vi(K,Ze)?Ze:null},go=function(z){var K=z.droppable,q=z.subject,me=z.center,ke=z.dragStartTime,Ie=z.shouldUseTimeDampening,Ze=K.frame;if(!Ze)return null;var qe=ro({dragStartTime:ke,container:Ze.pageMarginBox,subject:q,center:me,shouldUseTimeDampening:Ie});return qe&&Gi(K,qe)?qe:null},bo=function(z){var K=z.state,q=z.dragStartTime,me=z.shouldUseTimeDampening,ke=z.scrollWindow,Ie=z.scrollDroppable,Ze=K.current.page.borderBoxCenter,qe=K.dimensions.draggables[K.critical.draggable.id],kt=qe.page.marginBox;if(K.isWindowScrollAllowed){var en=K.viewport,rn=vo({dragStartTime:q,viewport:en,subject:kt,center:Ze,shouldUseTimeDampening:me});if(rn){ke(rn);return}}var Ut=qi({center:Ze,destination:Kt(K.impact),droppables:K.dimensions.droppables});if(!Ut)return;var It=go({dragStartTime:q,droppable:Ut,subject:kt,center:Ze,shouldUseTimeDampening:me});It&&Ie(Ut.descriptor.id,It)},Vi=function(z){var K=z.scrollWindow,q=z.scrollDroppable,me=P(K),ke=P(q),Ie=null,Ze=function(rn){Ie||ce(!1);var Ut=Ie,It=Ut.shouldUseTimeDampening,qt=Ut.dragStartTime;bo({state:rn,scrollWindow:me,scrollDroppable:ke,dragStartTime:qt,shouldUseTimeDampening:It})},qe=function(rn){ga(),Ie&&ce(!1);var Ut=Date.now(),It=!1,qt=function(){It=!0};bo({state:rn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:qt,scrollDroppable:qt}),Ie={dragStartTime:Ut,shouldUseTimeDampening:It},Fa(),It&&Ze(rn)},kt=function(){if(!Ie)return;me.cancel(),ke.cancel(),Ie=null};return{start:qe,stop:kt,scroll:Ze}},oo=function(z){var K=z.move,q=z.scrollDroppable,me=z.scrollWindow,ke=function(en,rn){var Ut=At(en.current.client.selection,rn);K({client:Ut})},Ie=function(en,rn){if(!Gi(en,rn))return rn;var Ut=So(en,rn);if(!Ut)return q(en.descriptor.id,rn),null;var It=Rt(rn,Ut);q(en.descriptor.id,It);var qt=Rt(rn,It);return qt},Ze=function(en,rn,Ut){if(!en)return Ut;if(!vi(rn,Ut))return Ut;var It=Ki(rn,Ut);if(!It)return me(Ut),null;var qt=Rt(Ut,It);me(qt);var Nn=Rt(Ut,qt);return Nn},qe=function(en){var rn=en.scrollJumpRequest;if(!rn)return;var Ut=Kt(en.impact);Ut||ce(!1);var It=Ie(en.dimensions.droppables[Ut],rn);if(!It)return;var qt=en.viewport,Nn=Ze(en.isWindowScrollAllowed,qt,It);if(!Nn)return;ke(en,Nn)};return qe},Ro=function(z){var K=z.scrollDroppable,q=z.scrollWindow,me=z.move,ke=Vi({scrollWindow:q,scrollDroppable:K}),Ie=oo({move:me,scrollWindow:q,scrollDroppable:K}),Ze=function(en){if(en.phase!=="DRAGGING")return;if(en.movementMode==="FLUID"){ke.scroll(en);return}if(!en.scrollJumpRequest)return;Ie(en)},qe={scroll:Ze,start:ke.start,stop:ke.stop};return qe},yo="data-rbd",so=function(){var z=yo+"-drag-handle";return{base:z,draggableId:z+"-draggable-id",contextId:z+"-context-id"}}(),Oo=function(){var z=yo+"-draggable";return{base:z,contextId:z+"-context-id",id:z+"-id"}}(),To=function(){var z=yo+"-droppable";return{base:z,contextId:z+"-context-id",id:z+"-id"}}(),Do={contextId:yo+"-scroll-container-context-id"},Ci=function(K){return function(q){return"["+q+'="'+K+'"]'}},ai=function(K,q){return K.map(function(me){var ke=me.styles[q];return ke?me.selector+" { "+ke+" }":""}).join(" ")},yi="pointer-events: none;",ti=function(z){var K=Ci(z),q=function(){var qe=` + `},Ve={dragHandleUsageInstructions:fe,onDragStart:Ce,onDragUpdate:Le,onDragEnd:Pe},at={x:0,y:0},At=function(K,q){return{x:K.x+q.x,y:K.y+q.y}},Rt=function(K,q){return{x:K.x-q.x,y:K.y-q.y}},tn=function(K,q){return K.x===q.x&&K.y===q.y},Qt=function(K){return{x:K.x!==0?-K.x:0,y:K.y!==0?-K.y:0}},Cn=function(K,q,me){var ke;return me===void 0&&(me=0),ke={},ke[K]=q,ke[K==="x"?"y":"x"]=me,ke},Un=function(K,q){return Math.sqrt(Math.pow(q.x-K.x,2)+Math.pow(q.y-K.y,2))},mt=function(K,q){return Math.min.apply(Math,q.map(function(me){return Un(K,me)}))},lt=function(K){return function(q){return{x:K(q.x),y:K(q.y)}}},Ht=function(z,K){var q=x({top:Math.max(K.top,z.top),right:Math.min(K.right,z.right),bottom:Math.min(K.bottom,z.bottom),left:Math.max(K.left,z.left)});return q.width<=0||q.height<=0?null:q},sn=function(K,q){return{top:K.top+q.y,left:K.left+q.x,bottom:K.bottom+q.y,right:K.right+q.x}},Tt=function(K){return[{x:K.left,y:K.top},{x:K.right,y:K.top},{x:K.left,y:K.bottom},{x:K.right,y:K.bottom}]},wt={top:0,right:0,bottom:0,left:0},Qe=function(K,q){return q?sn(K,q.scroll.diff.displacement):K},Je=function(K,q,me){if(me&&me.increasedBy){var ke;return Object(U.a)({},K,(ke={},ke[q.end]=K[q.end]+me.increasedBy[q.line],ke))}return K},Xe=function(K,q){return q&&q.shouldClipSubject?Ht(q.pageMarginBox,K):x(K)},Oe=function(z){var K=z.page,q=z.withPlaceholder,me=z.axis,ke=z.frame,Ie=Qe(K.marginBox,ke),Ze=Je(Ie,me,q),qe=Xe(Ze,ke);return{page:K,withPlaceholder:q,active:qe}},Ae=function(z,K){z.frame||ce(!1);var q=z.frame,me=Rt(K,q.scroll.initial),ke=Qt(me),Ie=Object(U.a)({},q,{scroll:{initial:q.scroll.initial,current:K,diff:{value:me,displacement:ke},max:q.scroll.max}}),Ze=Oe({page:z.subject.page,withPlaceholder:z.subject.withPlaceholder,axis:z.axis,frame:Ie}),qe=Object(U.a)({},z,{frame:Ie,subject:Ze});return qe};function ye(z){return Number.isInteger?Number.isInteger(z):typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function Se(z){return Object.values?Object.values(z):Object.keys(z).map(function(K){return z[K]})}function dt(z,K){if(z.findIndex)return z.findIndex(K);for(var q=0;qz.bottom,en=me.leftz.right,rn=kt&&en;if(rn)return!0;var Ut=kt&&Ze||en&&Ie;return Ut}},Nt=function(z){var K=bt(z.top,z.bottom),q=bt(z.left,z.right);return function(me){var ke=K(me.top)&&K(me.bottom)&&q(me.left)&&q(me.right);return ke}},jt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},bn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Te=function(z){return function(K){var q=bt(K.top,K.bottom),me=bt(K.left,K.right);return function(ke){return z===jt?q(ke.top)&&q(ke.bottom):me(ke.left)&&me(ke.right)}}},ve=function(K,q){var me=q.frame?q.frame.scroll.diff.displacement:at;return sn(K,me)},Q=function(K,q,me){return q.subject.active?me(q.subject.active)(K):!1},$=function(K,q,me){return me(q)(K)},re=function(K){var q=K.target,me=K.destination,ke=K.viewport,Ie=K.withDroppableDisplacement,Ze=K.isVisibleThroughFrameFn,qe=Ie?ve(q,me):q;return Q(qe,me,Ze)&&$(qe,ke,Ze)},de=function(K){return re(Object(U.a)({},K,{isVisibleThroughFrameFn:ft}))},Ue=function(K){return re(Object(U.a)({},K,{isVisibleThroughFrameFn:Nt}))},it=function(K){return re(Object(U.a)({},K,{isVisibleThroughFrameFn:Te(K.destination.axis)}))},Mt=function(K,q,me){if(typeof me=="boolean")return me;if(!q)return!0;var ke=q.invisible,Ie=q.visible;if(ke[K])return!1;var Ze=Ie[K];return Ze?Ze.shouldAnimate:!0};function Ln(z,K){var q=z.page.marginBox,me={top:K.point.y,right:0,bottom:0,left:K.point.x};return x(y(q,me))}function kn(z){var K=z.afterDragging,q=z.destination,me=z.displacedBy,ke=z.viewport,Ie=z.forceShouldAnimate,Ze=z.last;return K.reduce(function(kt,en){var rn=Ln(en,me),Ut=en.descriptor.id;kt.all.push(Ut);var It=de({target:rn,destination:q,viewport:ke,withDroppableDisplacement:!0});if(!It)return kt.invisible[en.descriptor.id]=!0,kt;var qt=Mt(Ut,Ze,Ie),Nn={draggableId:Ut,shouldAnimate:qt};return kt.visible[Ut]=Nn,kt},{all:[],visible:{},invisible:{}})}function St(z,K){if(!z.length)return 0;var q=z[z.length-1].descriptor.index;return K.inHomeList?q:q+1}function an(z){var K=z.insideDestination,q=z.inHomeList,me=z.displacedBy,ke=z.destination,Ie=St(K,{inHomeList:q});return{displaced:$t,displacedBy:me,at:{type:"REORDER",destination:{droppableId:ke.descriptor.id,index:Ie}}}}function Pn(z){var K=z.draggable,q=z.insideDestination,me=z.destination,ke=z.viewport,Ie=z.displacedBy,Ze=z.last,qe=z.index,kt=z.forceShouldAnimate,en=Xt(K,me);if(qe==null)return an({insideDestination:q,inHomeList:en,displacedBy:Ie,destination:me});var rn=et(q,function(Gr){return Gr.descriptor.index===qe});if(!rn)return an({insideDestination:q,inHomeList:en,displacedBy:Ie,destination:me});var Ut=Be(K,q),It=q.indexOf(rn),qt=Ut.slice(It),Nn=kn({afterDragging:qt,destination:me,displacedBy:Ie,last:Ze,viewport:ke.frame,forceShouldAnimate:kt});return{displaced:Nn,displacedBy:Ie,at:{type:"REORDER",destination:{droppableId:me.descriptor.id,index:qe}}}}function dn(z,K){return Boolean(K.effected[z])}var jn=function(z){var K=z.isMovingForward,q=z.destination,me=z.draggables,ke=z.combine,Ie=z.afterCritical;if(!q.isCombineEnabled)return null;var Ze=ke.draggableId,qe=me[Ze],kt=qe.descriptor.index,en=dn(Ze,Ie);return en?K?kt:kt-1:K?kt+1:kt},Bn=function(z){var K=z.isMovingForward,q=z.isInHomeList,me=z.insideDestination,ke=z.location;if(!me.length)return null;var Ie=ke.index,Ze=K?Ie+1:Ie-1,qe=me[0].descriptor.index,kt=me[me.length-1].descriptor.index,en=q?kt:kt+1;return Zeen?null:Ze},ne=function(z){var K=z.isMovingForward,q=z.isInHomeList,me=z.draggable,ke=z.draggables,Ie=z.destination,Ze=z.insideDestination,qe=z.previousImpact,kt=z.viewport,en=z.afterCritical,rn=qe.at;if(rn||ce(!1),rn.type==="REORDER"){var Ut=Bn({isMovingForward:K,isInHomeList:q,location:rn.destination,insideDestination:Ze});return Ut==null?null:Pn({draggable:me,insideDestination:Ze,destination:Ie,viewport:kt,last:qe.displaced,displacedBy:qe.displacedBy,index:Ut})}var It=jn({isMovingForward:K,destination:Ie,displaced:qe.displaced,draggables:ke,combine:rn.combine,afterCritical:en});return It==null?null:Pn({draggable:me,insideDestination:Ze,destination:Ie,viewport:kt,last:qe.displaced,displacedBy:qe.displacedBy,index:It})},B=function(z){var K=z.displaced,q=z.afterCritical,me=z.combineWith,ke=z.displacedBy,Ie=Boolean(K.visible[me]||K.invisible[me]);return dn(me,q)?Ie?at:Qt(ke.point):Ie?ke.point:at},H=function(z){var K=z.afterCritical,q=z.impact,me=z.draggables,ke=Lt(q);ke||ce(!1);var Ie=ke.draggableId,Ze=me[Ie].page.borderBox.center,qe=B({displaced:q.displaced,afterCritical:K,combineWith:Ie,displacedBy:q.displacedBy});return At(Ze,qe)},ae=function(K,q){return q.margin[K.start]+q.borderBox[K.size]/2},ue=function(K,q){return q.margin[K.end]+q.borderBox[K.size]/2},oe=function(K,q,me){return q[K.crossAxisStart]+me.margin[K.crossAxisStart]+me.borderBox[K.crossAxisSize]/2},ht=function(K){var q=K.axis,me=K.moveRelativeTo,ke=K.isMoving;return Cn(q.line,me.marginBox[q.end]+ae(q,ke),oe(q,me.marginBox,ke))},vn=function(K){var q=K.axis,me=K.moveRelativeTo,ke=K.isMoving;return Cn(q.line,me.marginBox[q.start]-ue(q,ke),oe(q,me.marginBox,ke))},Tn=function(K){var q=K.axis,me=K.moveInto,ke=K.isMoving;return Cn(q.line,me.contentBox[q.start]+ae(q,ke),oe(q,me.contentBox,ke))},fr=function(z){var K=z.impact,q=z.draggable,me=z.draggables,ke=z.droppable,Ie=z.afterCritical,Ze=pe(ke.descriptor.id,me),qe=q.page,kt=ke.axis;if(!Ze.length)return Tn({axis:kt,moveInto:ke.page,isMoving:qe});var en=K.displaced,rn=K.displacedBy,Ut=en.all[0];if(Ut){var It=me[Ut];if(dn(Ut,Ie))return vn({axis:kt,moveRelativeTo:It.page,isMoving:qe});var qt=b(It.page,rn.point);return vn({axis:kt,moveRelativeTo:qt,isMoving:qe})}var Nn=Ze[Ze.length-1];if(Nn.descriptor.id===q.descriptor.id)return qe.borderBox.center;if(dn(Nn.descriptor.id,Ie)){var Gr=b(Nn.page,Qt(Ie.displacedBy.point));return ht({axis:kt,moveRelativeTo:Gr,isMoving:qe})}return ht({axis:kt,moveRelativeTo:Nn.page,isMoving:qe})},Vt=function(z,K){var q=z.frame;return q?At(K,q.scroll.diff.displacement):K},Et=function(K){var q=K.impact,me=K.draggable,ke=K.droppable,Ie=K.draggables,Ze=K.afterCritical,qe=me.page.borderBox.center,kt=q.at;return ke&&kt?kt.type==="REORDER"?fr({impact:q,draggable:me,draggables:Ie,droppable:ke,afterCritical:Ze}):H({impact:q,draggables:Ie,afterCritical:Ze}):qe},Jt=function(z){var K=Et(z),q=z.droppable,me=q?Vt(q,K):K;return me},Fn=function(z,K){var q=Rt(K,z.scroll.initial),me=Qt(q),ke=x({top:K.y,bottom:K.y+z.frame.height,left:K.x,right:K.x+z.frame.width}),Ie={frame:ke,scroll:{initial:z.scroll.initial,max:z.scroll.max,current:K,diff:{value:q,displacement:me}}};return Ie};function Vn(z,K){return z.map(function(q){return K[q]})}function Kn(z,K){for(var q=0;q1?rn.sort(function(Ut,It){return Jn(Ut)[qe.start]-Jn(It)[qe.start]})[0]:en.sort(function(Ut,It){var qt=mt(q,Tt(Jn(Ut))),Nn=mt(q,Tt(Jn(It)));return qt!==Nn?qt-Nn:Jn(Ut)[qe.start]-Jn(It)[qe.start]})[0]},Sn=function(K,q){var me=K.page.borderBox.center;return dn(K.descriptor.id,q)?Rt(me,q.displacedBy.point):me},On=function(K,q){var me=K.page.borderBox;return dn(K.descriptor.id,q)?sn(me,Qt(q.displacedBy.point)):me},or=function(z){var K=z.pageBorderBoxCenter,q=z.viewport,me=z.destination,ke=z.insideDestination,Ie=z.afterCritical,Ze=ke.filter(function(qe){return Ue({target:On(qe,Ie),destination:me,viewport:q.frame,withDroppableDisplacement:!0})}).sort(function(qe,kt){var en=Un(K,Vt(me,Sn(qe,Ie))),rn=Un(K,Vt(me,Sn(kt,Ie)));return enK.left&&z.topK.top}function ur(z){var K=z.pageBorderBox,q=z.draggable,me=z.candidates,ke=q.page.borderBox.center,Ie=me.map(function(Ze){var qe=Ze.axis,kt=Cn(Ze.axis.line,K.center[qe.line],Ze.page.borderBox.center[qe.crossAxisLine]);return{id:Ze.descriptor.id,distance:Un(ke,kt)}}).sort(function(Ze,qe){return qe.distance-Ze.distance});return Ie[0]?Ie[0].id:null}function Mn(z){var K=z.pageBorderBox,q=z.draggable,me=z.droppables,ke=_t(me).filter(function(Ie){if(!Ie.isEnabled)return!1;var Ze=Ie.subject.active;if(!Ze)return!1;if(!cn(K,Ze))return!1;if(_n(Ze)(K.center))return!0;var qe=Ie.axis,kt=Ze.center[qe.crossAxisLine],en=K[qe.crossAxisStart],rn=K[qe.crossAxisEnd],Ut=bt(Ze[qe.crossAxisStart],Ze[qe.crossAxisEnd]),It=Ut(en),qt=Ut(rn);return!It&&!qt?!0:It?enkt});return ke.length?ke.length===1?ke[0].descriptor.id:ur({pageBorderBox:K,draggable:q,candidates:ke}):null}var fn=function(K,q){return x(sn(K,q))},Hn=function(z,K){var q=z.frame;return q?fn(K,q.scroll.diff.value):K};function Xn(z){var K=z.displaced,q=z.id;return Boolean(K.visible[q]||K.invisible[q])}function $n(z){var K=z.draggable,q=z.closest,me=z.inHomeList;return q?me&&q.descriptor.index>K.descriptor.index?q.descriptor.index-1:q.descriptor.index:null}var Yn=function(z){var K=z.pageBorderBoxWithDroppableScroll,q=z.draggable,me=z.destination,ke=z.insideDestination,Ie=z.last,Ze=z.viewport,qe=z.afterCritical,kt=me.axis,en=Dn(me.axis,q.displaceBy),rn=en.value,Ut=K[kt.start],It=K[kt.end],qt=Be(q,ke),Nn=et(qt,function(qr){var fa=qr.descriptor.id,ga=qr.page.borderBox.center[kt.line],Ua=dn(fa,qe),va=Xn({displaced:Ie,id:fa});return Ua?va?It<=ga:Utfa[qe.start]+Ua&&Utfa[qe.start]-en+Ua&&rnfa[qe.start]+en+Ua&&Utfa[qe.start]+Ua&&rn=Jr)return gr;var Ie=ke/Jr,Ze=zn+Xr*Ie,qe=me==="CANCEL"?Ze*aa:Ze;return Number(qe.toFixed(2))},Lr=function(z){var K=z.impact,q=z.draggable,me=z.dimensions,ke=z.viewport,Ie=z.afterCritical,Ze=me.draggables,qe=me.droppables,kt=Kt(K),en=kt?qe[kt]:null,rn=qe[q.descriptor.droppableId],Ut=kr({impact:K,draggable:q,draggables:Ze,afterCritical:Ie,droppable:en||rn,viewport:ke}),It=Rt(Ut,q.client.borderBox.center);return It},oa=function(z){var K=z.draggables,q=z.reason,me=z.lastImpact,ke=z.home,Ie=z.viewport,Ze=z.onLiftImpact;if(!me.at||q!=="DROP"){var qe=Cr({draggables:K,impact:Ze,destination:ke,viewport:Ie,forceShouldAnimate:!0});return{impact:qe,didDropInsideDroppable:!1}}if(me.at.type==="REORDER")return{impact:me,didDropInsideDroppable:!0};var kt=Object(U.a)({},me,{displaced:$t});return{impact:kt,didDropInsideDroppable:!0}},ya=function(z){var K=z.getState,q=z.dispatch;return function(me){return function(ke){if(ke.type!=="DROP"){me(ke);return}var Ie=K(),Ze=ke.payload.reason;if(Ie.phase==="COLLECTING"){q(vt({reason:Ze}));return}if(Ie.phase==="IDLE")return;var qe=Ie.phase==="DROP_PENDING"&&Ie.isWaiting;qe&&ce(!1),Ie.phase==="DRAGGING"||Ie.phase==="DROP_PENDING"||ce(!1);var kt=Ie.critical,en=Ie.dimensions,rn=en.draggables[Ie.critical.draggable.id],Ut=oa({reason:Ze,lastImpact:Ie.impact,afterCritical:Ie.afterCritical,onLiftImpact:Ie.onLiftImpact,home:Ie.dimensions.droppables[Ie.critical.droppable.id],viewport:Ie.viewport,draggables:Ie.dimensions.draggables}),It=Ut.impact,qt=Ut.didDropInsideDroppable,Nn=qt?Gt(It):null,Gr=qt?Lt(It):null,qr={index:kt.draggable.index,droppableId:kt.droppable.id},fa={draggableId:rn.descriptor.id,type:rn.descriptor.type,source:qr,reason:Ze,mode:Ie.movementMode,destination:Nn,combine:Gr},ga=Lr({impact:It,draggable:rn,dimensions:en,viewport:Ie.viewport,afterCritical:Ie.afterCritical}),Ua={critical:Ie.critical,afterCritical:Ie.afterCritical,result:fa,impact:It},va=!tn(Ie.current.client.offset,ga)||Boolean(fa.combine);if(!va){q($e({completed:Ua}));return}var ei=hn({current:Ie.current.client.offset,destination:ga,reason:Ze}),Qa={newHomeClientOffset:ga,dropDuration:ei,completed:Ua};q(Mr(Qa))}}},yt=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Fr(z){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(q){if(q.target!==window&&q.target!==window.document)return;z()}}}function un(z){var K=z.onWindowScroll;function q(){K(yt())}var me=P(q),ke=Fr(me),Ie=ge;function Ze(){return Ie!==ge}function qe(){Ze()&&ce(!1),Ie=He(window,[ke])}function kt(){Ze()||ce(!1),me.cancel(),Ie(),Ie=ge}return{start:qe,stop:kt,isActive:Ze}}var Rn=function(K){return K.type==="DROP_COMPLETE"||K.type==="DROP_ANIMATE"||K.type==="FLUSH"},xr=function(z){var K=un({onWindowScroll:function(me){z.dispatch(Ir({newScroll:me}))}});return function(q){return function(me){!K.isActive()&&me.type==="INITIAL_PUBLISH"&&K.start(),K.isActive()&&Rn(me)&&K.stop(),q(me)}}},Ca=function(z){var K=!1,q=!1,me=setTimeout(function(){q=!0}),ke=function(Ze){if(K)return;if(q)return;K=!0,z(Ze),clearTimeout(me)};return ke.wasCalled=function(){return K},ke},Nr=function(){var z=[],K=function(Ie){var Ze=dt(z,function(en){return en.timerId===Ie});Ze!==-1||ce(!1);var qe=z.splice(Ze,1),kt=qe[0];kt.callback()},q=function(Ie){var Ze=setTimeout(function(){return K(Ze)}),qe={timerId:Ze,callback:Ie};z.push(qe)},me=function(){if(!z.length)return;var Ie=[].concat(z);z.length=0,Ie.forEach(function(Ze){clearTimeout(Ze.timerId),Ze.callback()})};return{add:q,flush:me}},Sr=function(K,q){return K==null&&q==null?!0:K==null||q==null?!1:K.droppableId===q.droppableId&&K.index===q.index},xa=function(K,q){return K==null&&q==null?!0:K==null||q==null?!1:K.draggableId===q.draggableId&&K.droppableId===q.droppableId},Vr=function(K,q){if(K===q)return!0;var me=K.draggable.id===q.draggable.id&&K.draggable.droppableId===q.draggable.droppableId&&K.draggable.type===q.draggable.type&&K.draggable.index===q.draggable.index,ke=K.droppable.id===q.droppable.id&&K.droppable.type===q.droppable.type;return me&&ke},nr=function(K,q){ba(),q(),za()},Wr=function(K,q){return{draggableId:K.draggable.id,type:K.droppable.type,source:{droppableId:K.droppable.id,index:K.draggable.index},mode:q}},Wn=function(K,q,me,ke){if(!K){me(ke(q));return}var Ie=Ca(me),Ze={announce:Ie};K(q,Ze),Ie.wasCalled()||me(ke(q))},pn=function(z,K){var q=Nr(),me=null,ke=function(It,qt){me&&ce(!1),nr("onBeforeCapture",function(){var Nn=z().onBeforeCapture;if(Nn){var Gr={draggableId:It,mode:qt};Nn(Gr)}})},Ie=function(It,qt){me&&ce(!1),nr("onBeforeDragStart",function(){var Nn=z().onBeforeDragStart;Nn&&Nn(Wr(It,qt))})},Ze=function(It,qt){me&&ce(!1);var Nn=Wr(It,qt);me={mode:qt,lastCritical:It,lastLocation:Nn.source,lastCombine:null},q.add(function(){nr("onDragStart",function(){return Wn(z().onDragStart,Nn,K,Ve.onDragStart)})})},qe=function(It,qt){var Nn=Gt(qt),Gr=Lt(qt);me||ce(!1);var qr=!Vr(It,me.lastCritical);qr&&(me.lastCritical=It);var fa=!Sr(me.lastLocation,Nn);fa&&(me.lastLocation=Nn);var ga=!xa(me.lastCombine,Gr);if(ga&&(me.lastCombine=Gr),!qr&&!fa&&!ga)return;var Ua=Object(U.a)({},Wr(It,me.mode),{combine:Gr,destination:Nn});q.add(function(){nr("onDragUpdate",function(){return Wn(z().onDragUpdate,Ua,K,Ve.onDragUpdate)})})},kt=function(){me||ce(!1),q.flush()},en=function(It){me||ce(!1),me=null,nr("onDragEnd",function(){return Wn(z().onDragEnd,It,K,Ve.onDragEnd)})},rn=function(){if(!me)return;var It=Object(U.a)({},Wr(me.lastCritical,me.mode),{combine:null,destination:null,reason:"CANCEL"});en(It)};return{beforeCapture:ke,beforeStart:Ie,start:Ze,update:qe,flush:kt,drop:en,abort:rn}},Rr=function(z,K){var q=pn(z,K);return function(me){return function(ke){return function(Ie){if(Ie.type==="BEFORE_INITIAL_CAPTURE"){q.beforeCapture(Ie.payload.draggableId,Ie.payload.movementMode);return}if(Ie.type==="INITIAL_PUBLISH"){var Ze=Ie.payload.critical;q.beforeStart(Ze,Ie.payload.movementMode),ke(Ie),q.start(Ze,Ie.payload.movementMode);return}if(Ie.type==="DROP_COMPLETE"){var qe=Ie.payload.completed.result;q.flush(),ke(Ie),q.drop(qe);return}if(ke(Ie),Ie.type==="FLUSH"){q.abort();return}var kt=me.getState();kt.phase==="DRAGGING"&&q.update(kt.critical,kt.impact)}}}},qn=function(z){return function(K){return function(q){if(q.type!=="DROP_ANIMATION_FINISHED"){K(q);return}var me=z.getState();me.phase==="DROP_ANIMATING"||ce(!1),z.dispatch($e({completed:me.completed}))}}},Ar=function(z){var K=null,q=null;function me(){q&&(cancelAnimationFrame(q),q=null),K&&(K(),K=null)}return function(ke){return function(Ie){if((Ie.type==="FLUSH"||Ie.type==="DROP_COMPLETE"||Ie.type==="DROP_ANIMATION_FINISHED")&&me(),ke(Ie),Ie.type!=="DROP_ANIMATE")return;var Ze={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var kt=z.getState();kt.phase==="DROP_ANIMATING"&&z.dispatch(Me())}};q=requestAnimationFrame(function(){q=null,K=He(window,[Ze])})}}},Da=function(z){return function(){return function(K){return function(q){(q.type==="DROP_COMPLETE"||q.type==="FLUSH"||q.type==="DROP_ANIMATE")&&z.stopPublishing(),K(q)}}}},Ia=function(z){var K=!1;return function(){return function(q){return function(me){if(me.type==="INITIAL_PUBLISH"){K=!0,z.tryRecordFocus(me.payload.critical.draggable.id),q(me),z.tryRestoreFocusRecorded();return}if(q(me),!K)return;if(me.type==="FLUSH"){K=!1,z.tryRestoreFocusRecorded();return}if(me.type==="DROP_COMPLETE"){K=!1;var ke=me.payload.completed.result;ke.combine&&z.tryShiftRecord(ke.draggableId,ke.combine.draggableId),z.tryRestoreFocusRecorded()}}}}},La=function(K){return K.type==="DROP_COMPLETE"||K.type==="DROP_ANIMATE"||K.type==="FLUSH"},Br=function(z){return function(K){return function(q){return function(me){if(La(me)){z.stop(),q(me);return}if(me.type==="INITIAL_PUBLISH"){q(me);var ke=K.getState();ke.phase==="DRAGGING"||ce(!1),z.start(ke);return}q(me),z.scroll(K.getState())}}}},$r=function(z){return function(K){return function(q){if(K(q),q.type!=="PUBLISH_WHILE_DRAGGING")return;var me=z.getState();if(me.phase!=="DROP_PENDING")return;if(me.isWaiting)return;z.dispatch(pt({reason:me.reason}))}}},ka=S.d,Na=function(z){var K=z.dimensionMarshal,q=z.focusMarshal,me=z.styleMarshal,ke=z.getResponders,Ie=z.announce,Ze=z.autoScroller;return Object(S.e)(An,ka(Object(S.a)(st(me),Da(K),De(K),ya,qn,Ar,$r,Br(Ze),xr,Ia(q),Rr(ke,Ie))))},qa=function(){return{additions:{},removals:{},modified:{}}};function ri(z){var K=z.registry,q=z.callbacks,me=qa(),ke=null,Ie=function(){if(ke)return;q.collectionStarting(),ke=requestAnimationFrame(function(){ke=null,ba();var rn=me,Ut=rn.additions,It=rn.removals,qt=rn.modified,Nn=Object.keys(Ut).map(function(fa){return K.draggable.getById(fa).getDimension(at)}).sort(function(fa,ga){return fa.descriptor.index-ga.descriptor.index}),Gr=Object.keys(qt).map(function(fa){var ga=K.droppable.getById(fa),Ua=ga.callbacks.getScrollWhileDragging();return{droppableId:fa,scroll:Ua}}),qr={additions:Nn,removals:Object.keys(It),modified:Gr};me=qa(),za(),q.publish(qr)})},Ze=function(rn){var Ut=rn.descriptor.id;me.additions[Ut]=rn,me.modified[rn.descriptor.droppableId]=!0,me.removals[Ut]&&delete me.removals[Ut],Ie()},qe=function(rn){var Ut=rn.descriptor;me.removals[Ut.id]=!0,me.modified[Ut.droppableId]=!0,me.additions[Ut.id]&&delete me.additions[Ut.id],Ie()},kt=function(){if(!ke)return;cancelAnimationFrame(ke),ke=null,me=qa()};return{add:Ze,remove:qe,stop:kt}}var ni=function(z){var K=z.scrollHeight,q=z.scrollWidth,me=z.height,ke=z.width,Ie=Rt({x:q,y:K},{x:ke,y:me}),Ze={x:Math.max(0,Ie.x),y:Math.max(0,Ie.y)};return Ze},Ga=function(){var z=document.documentElement;return z||ce(!1),z},Ai=function(){var z=Ga(),K=ni({scrollHeight:z.scrollHeight,scrollWidth:z.scrollWidth,width:z.clientWidth,height:z.clientHeight});return K},Di=function(){var z=yt(),K=Ai(),q=z.y,me=z.x,ke=Ga(),Ie=ke.clientWidth,Ze=ke.clientHeight,qe=me+Ie,kt=q+Ze,en=x({top:q,left:me,right:qe,bottom:kt}),rn={frame:en,scroll:{initial:z,current:z,max:K,diff:{value:at,displacement:at}}};return rn},$a=function(z){var K=z.critical,q=z.scrollOptions,me=z.registry;ba();var ke=Di(),Ie=ke.scroll.current,Ze=K.droppable,qe=me.droppable.getAllByType(Ze.type).map(function(Ut){return Ut.callbacks.getDimensionAndWatchScroll(Ie,q)}),kt=me.draggable.getAllByType(K.draggable.type).map(function(Ut){return Ut.getDimension(Ie)}),en={draggables:Dt(kt),droppables:xn(qe)};za();var rn={dimensions:en,critical:K,viewport:ke};return rn};function Va(z,K,q){if(q.descriptor.id===K.id)return!1;if(q.descriptor.type!==K.type)return!1;var me=z.droppable.getById(q.descriptor.droppableId);return!(me.descriptor.mode!=="virtual")}var di=function(z,K){var q=null,me=ri({callbacks:{publish:K.publishWhileDragging,collectionStarting:K.collectionStarting},registry:z}),ke=function(qt,Nn){if(z.droppable.exists(qt)||ce(!1),!q)return;K.updateDroppableIsEnabled({id:qt,isEnabled:Nn})},Ie=function(qt,Nn){if(!q)return;z.droppable.exists(qt)||ce(!1),K.updateDroppableIsCombineEnabled({id:qt,isCombineEnabled:Nn})},Ze=function(qt,Nn){if(!q)return;z.droppable.exists(qt)||ce(!1),K.updateDroppableScroll({id:qt,newScroll:Nn})},qe=function(qt,Nn){if(!q)return;z.droppable.getById(qt).callbacks.scroll(Nn)},kt=function(){if(!q)return;me.stop();var qt=q.critical.droppable;z.droppable.getAllByType(qt.type).forEach(function(Nn){return Nn.callbacks.dragStopped()}),q.unsubscribe(),q=null},en=function(qt){q||ce(!1);var Nn=q.critical.draggable;qt.type==="ADDITION"&&(Va(z,Nn,qt.value)&&me.add(qt.value)),qt.type==="REMOVAL"&&(Va(z,Nn,qt.value)&&me.remove(qt.value))},rn=function(qt){q&&ce(!1);var Nn=z.draggable.getById(qt.draggableId),Gr=z.droppable.getById(Nn.descriptor.droppableId),qr={draggable:Nn.descriptor,droppable:Gr.descriptor},fa=z.subscribe(en);return q={critical:qr,unsubscribe:fa},$a({critical:qr,registry:z,scrollOptions:qt.scrollOptions})},Ut={updateDroppableIsEnabled:ke,updateDroppableIsCombineEnabled:Ie,scrollDroppable:qe,updateDroppableScroll:Ze,startPublishing:rn,stopPublishing:kt};return Ut},Zi=function(z,K){return z.phase==="IDLE"?!0:z.phase!=="DROP_ANIMATING"||z.completed.result.draggableId===K?!1:z.completed.result.reason==="DROP"},Ao=function(z){window.scrollBy(z.x,z.y)},Ui=c(function(z){return _t(z).filter(function(K){return K.isEnabled?!!K.frame:!1})}),qi=function(K,q){var me=et(Ui(q),function(ke){return ke.frame||ce(!1),_n(ke.frame.pageMarginBox)(K)});return me},$i=function(z){var K=z.center,q=z.destination,me=z.droppables;if(q){var ke=me[q];return ke.frame?ke:null}var Ie=qi(K,me);return Ie},wi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(K){return Math.pow(K,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},eo=function(z,K){var q=z[K.size]*wi.startFromPercentage,me=z[K.size]*wi.maxScrollAtPercentage,ke={startScrollingFrom:q,maxScrollValueAt:me};return ke},fo=function(z){var K=z.startOfRange,q=z.endOfRange,me=z.current,ke=q-K;if(ke===0)return 0;var Ie=me-K,Ze=Ie/ke;return Ze},ho=1,Pi=function(z,K){if(z>K.startScrollingFrom)return 0;if(z<=K.maxScrollValueAt)return wi.maxPixelScroll;if(z===K.startScrollingFrom)return ho;var q=fo({startOfRange:K.maxScrollValueAt,endOfRange:K.startScrollingFrom,current:z}),me=1-q,ke=wi.maxPixelScroll*wi.ease(me);return Math.ceil(ke)},Ra=wi.durationDampening.accelerateAt,Sa=wi.durationDampening.stopDampeningAt,wa=function(z,K){var q=K,me=Sa,ke=Date.now(),Ie=ke-q;if(Ie>=Sa)return z;if(IeK.height,Ie=q.width>K.width;return!Ie&&!ke?me:Ie&&ke?null:{x:Ie?0:me.x,y:ke?0:me.y}},oi=lt(function(z){return z===0?0:z}),ro=function(z){var K=z.dragStartTime,q=z.container,me=z.subject,ke=z.center,Ie=z.shouldUseTimeDampening,Ze={top:ke.y-q.top,right:q.right-ke.x,bottom:q.bottom-ke.y,left:ke.x-q.left},qe=ai({container:q,distanceToEdges:Ze,dragStartTime:K,axis:jt,shouldUseTimeDampening:Ie}),kt=ai({container:q,distanceToEdges:Ze,dragStartTime:K,axis:bn,shouldUseTimeDampening:Ie}),en=oi({x:kt,y:qe});if(tn(en,at))return null;var rn=yi({container:q,subject:me,proposedScroll:en});return rn?tn(rn,at)?null:rn:null},mo=lt(function(z){return z===0?0:z>0?1:-1}),pi=function(){var z=function(q,me){return q<0?q:q>me?q-me:0};return function(K){var q=K.current,me=K.max,ke=K.change,Ie=At(q,ke),Ze={x:z(Ie.x,me.x),y:z(Ie.y,me.y)};return tn(Ze,at)?null:Ze}}(),Ki=function(K){var q=K.max,me=K.current,ke=K.change,Ie={x:Math.max(me.x,q.x),y:Math.max(me.y,q.y)},Ze=mo(ke),qe=pi({max:Ie,current:me,change:Ze});return qe?Ze.x!==0&&qe.x===0?!0:Ze.y!==0&&qe.y===0:!0},vi=function(K,q){return Ki({current:K.scroll.current,max:K.scroll.max,change:q})},Gi=function(K,q){if(!vi(K,q))return null;var me=K.scroll.max,ke=K.scroll.current;return pi({current:ke,max:me,change:q})},Vi=function(K,q){var me=K.frame;return me?Ki({current:me.scroll.current,max:me.scroll.max,change:q}):!1},So=function(K,q){var me=K.frame;return me&&Vi(K,q)?pi({current:me.scroll.current,max:me.scroll.max,change:q}):null},po=function(z){var K=z.viewport,q=z.subject,me=z.center,ke=z.dragStartTime,Ie=z.shouldUseTimeDampening,Ze=ro({dragStartTime:ke,container:K.frame,subject:q,center:me,shouldUseTimeDampening:Ie});return Ze&&vi(K,Ze)?Ze:null},vo=function(z){var K=z.droppable,q=z.subject,me=z.center,ke=z.dragStartTime,Ie=z.shouldUseTimeDampening,Ze=K.frame;if(!Ze)return null;var qe=ro({dragStartTime:ke,container:Ze.pageMarginBox,subject:q,center:me,shouldUseTimeDampening:Ie});return qe&&Vi(K,qe)?qe:null},go=function(z){var K=z.state,q=z.dragStartTime,me=z.shouldUseTimeDampening,ke=z.scrollWindow,Ie=z.scrollDroppable,Ze=K.current.page.borderBoxCenter,qe=K.dimensions.draggables[K.critical.draggable.id],kt=qe.page.marginBox;if(K.isWindowScrollAllowed){var en=K.viewport,rn=po({dragStartTime:q,viewport:en,subject:kt,center:Ze,shouldUseTimeDampening:me});if(rn){ke(rn);return}}var Ut=$i({center:Ze,destination:Kt(K.impact),droppables:K.dimensions.droppables});if(!Ut)return;var It=vo({dragStartTime:q,droppable:Ut,subject:kt,center:Ze,shouldUseTimeDampening:me});It&&Ie(Ut.descriptor.id,It)},Xi=function(z){var K=z.scrollWindow,q=z.scrollDroppable,me=P(K),ke=P(q),Ie=null,Ze=function(rn){Ie||ce(!1);var Ut=Ie,It=Ut.shouldUseTimeDampening,qt=Ut.dragStartTime;go({state:rn,scrollWindow:me,scrollDroppable:ke,dragStartTime:qt,shouldUseTimeDampening:It})},qe=function(rn){ba(),Ie&&ce(!1);var Ut=Date.now(),It=!1,qt=function(){It=!0};go({state:rn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:qt,scrollDroppable:qt}),Ie={dragStartTime:Ut,shouldUseTimeDampening:It},za(),It&&Ze(rn)},kt=function(){if(!Ie)return;me.cancel(),ke.cancel(),Ie=null};return{start:qe,stop:kt,scroll:Ze}},oo=function(z){var K=z.move,q=z.scrollDroppable,me=z.scrollWindow,ke=function(en,rn){var Ut=At(en.current.client.selection,rn);K({client:Ut})},Ie=function(en,rn){if(!Vi(en,rn))return rn;var Ut=So(en,rn);if(!Ut)return q(en.descriptor.id,rn),null;var It=Rt(rn,Ut);q(en.descriptor.id,It);var qt=Rt(rn,It);return qt},Ze=function(en,rn,Ut){if(!en)return Ut;if(!vi(rn,Ut))return Ut;var It=Gi(rn,Ut);if(!It)return me(Ut),null;var qt=Rt(Ut,It);me(qt);var Nn=Rt(Ut,qt);return Nn},qe=function(en){var rn=en.scrollJumpRequest;if(!rn)return;var Ut=Kt(en.impact);Ut||ce(!1);var It=Ie(en.dimensions.droppables[Ut],rn);if(!It)return;var qt=en.viewport,Nn=Ze(en.isWindowScrollAllowed,qt,It);if(!Nn)return;ke(en,Nn)};return qe},Ro=function(z){var K=z.scrollDroppable,q=z.scrollWindow,me=z.move,ke=Xi({scrollWindow:q,scrollDroppable:K}),Ie=oo({move:me,scrollWindow:q,scrollDroppable:K}),Ze=function(en){if(en.phase!=="DRAGGING")return;if(en.movementMode==="FLUID"){ke.scroll(en);return}if(!en.scrollJumpRequest)return;Ie(en)},qe={scroll:Ze,start:ke.start,stop:ke.stop};return qe},bo="data-rbd",so=function(){var z=bo+"-drag-handle";return{base:z,draggableId:z+"-draggable-id",contextId:z+"-context-id"}}(),wo=function(){var z=bo+"-draggable";return{base:z,contextId:z+"-context-id",id:z+"-id"}}(),To=function(){var z=bo+"-droppable";return{base:z,contextId:z+"-context-id",id:z+"-id"}}(),Do={contextId:bo+"-scroll-container-context-id"},Oi=function(K){return function(q){return"["+q+'="'+K+'"]'}},ti=function(K,q){return K.map(function(me){var ke=me.styles[q];return ke?me.selector+" { "+ke+" }":""}).join(" ")},_i="pointer-events: none;",ui=function(z){var K=Oi(z),q=function(){var qe=` cursor: -webkit-grab; cursor: grab; `;return{selector:K(so.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:qe,dragging:yi,dropAnimating:qe}}}(),me=function(){var qe=` + `,resting:qe,dragging:_i,dropAnimating:qe}}}(),me=function(){var qe=` transition: `+Ft.outOfTheWay+`; - `;return{selector:K(Oo.contextId),styles:{dragging:qe,dropAnimating:qe,userCancel:qe}}}(),ke={selector:K(To.contextId),styles:{always:"overflow-anchor: none;"}},Ie={selector:"body",styles:{dragging:` + `;return{selector:K(wo.contextId),styles:{dragging:qe,dropAnimating:qe,userCancel:qe}}}(),ke={selector:K(To.contextId),styles:{always:"overflow-anchor: none;"}},Ie={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -430,37 +430,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},Ze=[me,q,ke,Ie];return{always:ai(Ze,"always"),resting:ai(Ze,"resting"),dragging:ai(Ze,"dragging"),dropAnimating:ai(Ze,"dropAnimating"),userCancel:ai(Ze,"userCancel")}},Qa=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?Y.useLayoutEffect:Y.useEffect,ma=function(){var K=document.querySelector("head");return K||ce(!1),K},dr=function(K){var q=document.createElement("style");return K&&q.setAttribute("nonce",K),q.type="text/css",q};function hr(z,K){var q=p(function(){return ti(z)},[z]),me=Object(Y.useRef)(null),ke=Object(Y.useRef)(null),Ie=a(c(function(Ut){var It=ke.current;It||ce(!1),It.textContent=Ut}),[]),Ze=a(function(Ut){var It=me.current;It||ce(!1),It.textContent=Ut},[]);Qa(function(){!me.current&&!ke.current||ce(!1);var Ut=dr(K),It=dr(K);return me.current=Ut,ke.current=It,Ut.setAttribute(yo+"-always",z),It.setAttribute(yo+"-dynamic",z),ma().appendChild(Ut),ma().appendChild(It),Ze(q.always),Ie(q.resting),function(){var qt=function(Gr){var qr=Gr.current;qr||ce(!1),ma().removeChild(qr),Gr.current=null};qt(me),qt(ke)}},[K,Ze,Ie,q.always,q.resting,z]);var qe=a(function(){return Ie(q.dragging)},[Ie,q.dragging]),kt=a(function(Ut){if(Ut==="DROP"){Ie(q.dropAnimating);return}Ie(q.userCancel)},[Ie,q.dropAnimating,q.userCancel]),en=a(function(){if(!ke.current)return;Ie(q.resting)},[Ie,q.resting]),rn=p(function(){return{dragging:qe,dropping:kt,resting:en}},[qe,kt,en]);return rn}var ya=function(z){return z&&z.ownerDocument?z.ownerDocument.defaultView:window};function di(z){return z instanceof ya(z).HTMLElement}function _i(z,K){var q="["+so.contextId+'="'+z+'"]',me=xt(document.querySelectorAll(q));if(!me.length)return null;var ke=et(me,function(Ie){return Ie.getAttribute(so.draggableId)===K});return ke&&di(ke)?ke:null}function ci(z){var K=Object(Y.useRef)({}),q=Object(Y.useRef)(null),me=Object(Y.useRef)(null),ke=Object(Y.useRef)(!1),Ie=a(function(It,qt){var Nn={id:It,focus:qt};return K.current[It]=Nn,function(){var qr=K.current,da=qr[It];da!==Nn&&delete qr[It]}},[]),Ze=a(function(It){var qt=_i(z,It);qt&&qt!==document.activeElement&&qt.focus()},[z]),qe=a(function(It,qt){q.current===It&&(q.current=qt)},[]),kt=a(function(){if(me.current)return;if(!ke.current)return;me.current=requestAnimationFrame(function(){me.current=null;var It=q.current;It&&Ze(It)})},[Ze]),en=a(function(It){q.current=null;var qt=document.activeElement;if(!qt)return;if(qt.getAttribute(so.draggableId)!==It)return;q.current=It},[]);Qa(function(){return ke.current=!0,function(){ke.current=!1;var It=me.current;It&&cancelAnimationFrame(It)}},[]);var rn=p(function(){return{register:Ie,tryRecordFocus:en,tryRestoreFocusRecorded:kt,tryShiftRecord:qe}},[Ie,en,kt,qe]);return rn}function Bi(){var z={draggables:{},droppables:{}},K=[];function q(Ut){return K.push(Ut),function(){var qt=K.indexOf(Ut);if(qt===-1)return;K.splice(qt,1)}}function me(Ut){K.length&&K.forEach(function(It){return It(Ut)})}function ke(Ut){return z.draggables[Ut]||null}function Ie(Ut){var It=ke(Ut);return It||ce(!1),It}var Ze={register:function(It){z.draggables[It.descriptor.id]=It,me({type:"ADDITION",value:It})},update:function(It,qt){var Nn=z.draggables[qt.descriptor.id];if(!Nn)return;if(Nn.uniqueId!==It.uniqueId)return;delete z.draggables[qt.descriptor.id],z.draggables[It.descriptor.id]=It},unregister:function(It){var qt=It.descriptor.id,Nn=ke(qt);if(!Nn)return;if(It.uniqueId!==Nn.uniqueId)return;delete z.draggables[qt],me({type:"REMOVAL",value:It})},getById:Ie,findById:ke,exists:function(It){return Boolean(ke(It))},getAllByType:function(It){return Se(z.draggables).filter(function(qt){return qt.descriptor.type===It})}};function qe(Ut){return z.droppables[Ut]||null}function kt(Ut){var It=qe(Ut);return It||ce(!1),It}var en={register:function(It){z.droppables[It.descriptor.id]=It},unregister:function(It){var qt=qe(It.descriptor.id);if(!qt)return;if(It.uniqueId!==qt.uniqueId)return;delete z.droppables[It.descriptor.id]},getById:kt,findById:qe,exists:function(It){return Boolean(qe(It))},getAllByType:function(It){return Se(z.droppables).filter(function(qt){return qt.descriptor.type===It})}};function rn(){z.draggables={},z.droppables={},K.length=0}return{draggable:Ze,droppable:en,subscribe:q,clean:rn}}function Pi(){var z=p(Bi,[]);return Object(Y.useEffect)(function(){return function(){requestAnimationFrame(z.clean)}},[z]),z}var Ni=j.a.createContext(null),za=function(){var z=document.body;return z||ce(!1),z},Wa={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ni=function(K){return"rbd-announcement-"+K};function Mi(z){var K=p(function(){return ni(z)},[z]),q=Object(Y.useRef)(null);Object(Y.useEffect)(function(){var Ie=document.createElement("div");return q.current=Ie,Ie.id=K,Ie.setAttribute("aria-live","assertive"),Ie.setAttribute("aria-atomic","true"),Object(U.a)(Ie.style,Wa),za().appendChild(Ie),function(){setTimeout(function(){var kt=za();kt.contains(Ie)&&kt.removeChild(Ie),Ie===q.current&&(q.current=null)})}},[K]);var me=a(function(ke){var Ie=q.current;if(Ie){Ie.textContent=ke;return}},[]);return me}var Ao=0,lo={separator:"::"};function Po(){Ao=0}function eo(z,K){return K===void 0&&(K=lo),p(function(){return""+z+K.separator+Ao++},[K.separator,z])}function Ei(z){var K=z.contextId,q=z.uniqueId;return"rbd-hidden-text-"+K+"-"+q}function Mo(z){var K=z.contextId,q=z.text,me=eo("hidden-text",{separator:"-"}),ke=p(function(){return Ei({contextId:K,uniqueId:me})},[me,K]);return Object(Y.useEffect)(function(){var Ze=document.createElement("div");return Ze.id=ke,Ze.textContent=q,Ze.style.display="none",za().appendChild(Ze),function(){var kt=za();kt.contains(Ze)&&kt.removeChild(Ze)}},[ke,q]),ke}var _o=j.a.createContext(null),Lo={react:"^16.8.5","react-dom":"^16.8.5"},Ui=/(\d+)\.(\d+)\.(\d+)/,Za=function(K){var q=Ui.exec(K);q!=null||ce(!1);var me=Number(q[1]),ke=Number(q[2]),Ie=Number(q[3]);return{major:me,minor:ke,patch:Ie,raw:K}},Ba=function(K,q){return q.major>K.major?!0:q.majorK.minor?!0:q.minor=K.patch},na=function(z,K){var q=Za(z),me=Za(K);if(Ba(q,me))return},Oa=` + `}},Ze=[me,q,ke,Ie];return{always:ti(Ze,"always"),resting:ti(Ze,"resting"),dragging:ti(Ze,"dragging"),dropAnimating:ti(Ze,"dropAnimating"),userCancel:ti(Ze,"userCancel")}},Ei=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?Y.useLayoutEffect:Y.useEffect,yo=function(){var K=document.querySelector("head");return K||ce(!1),K},ji=function(K){var q=document.createElement("style");return K&&q.setAttribute("nonce",K),q.type="text/css",q};function Po(z,K){var q=p(function(){return ui(z)},[z]),me=Object(Y.useRef)(null),ke=Object(Y.useRef)(null),Ie=a(c(function(Ut){var It=ke.current;It||ce(!1),It.textContent=Ut}),[]),Ze=a(function(Ut){var It=me.current;It||ce(!1),It.textContent=Ut},[]);Ei(function(){!me.current&&!ke.current||ce(!1);var Ut=ji(K),It=ji(K);return me.current=Ut,ke.current=It,Ut.setAttribute(bo+"-always",z),It.setAttribute(bo+"-dynamic",z),yo().appendChild(Ut),yo().appendChild(It),Ze(q.always),Ie(q.resting),function(){var qt=function(Gr){var qr=Gr.current;qr||ce(!1),yo().removeChild(qr),Gr.current=null};qt(me),qt(ke)}},[K,Ze,Ie,q.always,q.resting,z]);var qe=a(function(){return Ie(q.dragging)},[Ie,q.dragging]),kt=a(function(Ut){if(Ut==="DROP"){Ie(q.dropAnimating);return}Ie(q.userCancel)},[Ie,q.dropAnimating,q.userCancel]),en=a(function(){if(!ke.current)return;Ie(q.resting)},[Ie,q.resting]),rn=p(function(){return{dragging:qe,dropping:kt,resting:en}},[qe,kt,en]);return rn}var Oo=function(z){return z&&z.ownerDocument?z.ownerDocument.defaultView:window};function Mi(z){return z instanceof Oo(z).HTMLElement}function si(z,K){var q="["+so.contextId+'="'+z+'"]',me=xt(document.querySelectorAll(q));if(!me.length)return null;var ke=et(me,function(Ie){return Ie.getAttribute(so.draggableId)===K});return ke&&Mi(ke)?ke:null}function ca(z){var K=Object(Y.useRef)({}),q=Object(Y.useRef)(null),me=Object(Y.useRef)(null),ke=Object(Y.useRef)(!1),Ie=a(function(It,qt){var Nn={id:It,focus:qt};return K.current[It]=Nn,function(){var qr=K.current,fa=qr[It];fa!==Nn&&delete qr[It]}},[]),Ze=a(function(It){var qt=si(z,It);qt&&qt!==document.activeElement&&qt.focus()},[z]),qe=a(function(It,qt){q.current===It&&(q.current=qt)},[]),kt=a(function(){if(me.current)return;if(!ke.current)return;me.current=requestAnimationFrame(function(){me.current=null;var It=q.current;It&&Ze(It)})},[Ze]),en=a(function(It){q.current=null;var qt=document.activeElement;if(!qt)return;if(qt.getAttribute(so.draggableId)!==It)return;q.current=It},[]);Ei(function(){return ke.current=!0,function(){ke.current=!1;var It=me.current;It&&cancelAnimationFrame(It)}},[]);var rn=p(function(){return{register:Ie,tryRecordFocus:en,tryRestoreFocusRecorded:kt,tryShiftRecord:qe}},[Ie,en,kt,qe]);return rn}function dr(){var z={draggables:{},droppables:{}},K=[];function q(Ut){return K.push(Ut),function(){var qt=K.indexOf(Ut);if(qt===-1)return;K.splice(qt,1)}}function me(Ut){K.length&&K.forEach(function(It){return It(Ut)})}function ke(Ut){return z.draggables[Ut]||null}function Ie(Ut){var It=ke(Ut);return It||ce(!1),It}var Ze={register:function(It){z.draggables[It.descriptor.id]=It,me({type:"ADDITION",value:It})},update:function(It,qt){var Nn=z.draggables[qt.descriptor.id];if(!Nn)return;if(Nn.uniqueId!==It.uniqueId)return;delete z.draggables[qt.descriptor.id],z.draggables[It.descriptor.id]=It},unregister:function(It){var qt=It.descriptor.id,Nn=ke(qt);if(!Nn)return;if(It.uniqueId!==Nn.uniqueId)return;delete z.draggables[qt],me({type:"REMOVAL",value:It})},getById:Ie,findById:ke,exists:function(It){return Boolean(ke(It))},getAllByType:function(It){return Se(z.draggables).filter(function(qt){return qt.descriptor.type===It})}};function qe(Ut){return z.droppables[Ut]||null}function kt(Ut){var It=qe(Ut);return It||ce(!1),It}var en={register:function(It){z.droppables[It.descriptor.id]=It},unregister:function(It){var qt=qe(It.descriptor.id);if(!qt)return;if(It.uniqueId!==qt.uniqueId)return;delete z.droppables[It.descriptor.id]},getById:kt,findById:qe,exists:function(It){return Boolean(qe(It))},getAllByType:function(It){return Se(z.droppables).filter(function(qt){return qt.descriptor.type===It})}};function rn(){z.draggables={},z.droppables={},K.length=0}return{draggable:Ze,droppable:en,subscribe:q,clean:rn}}function cr(){var z=p(dr,[]);return Object(Y.useEffect)(function(){return function(){requestAnimationFrame(z.clean)}},[z]),z}var da=j.a.createContext(null),ja=function(){var z=document.body;return z||ce(!1),z},Fa={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ha=function(K){return"rbd-announcement-"+K};function ci(z){var K=p(function(){return Ha(z)},[z]),q=Object(Y.useRef)(null);Object(Y.useEffect)(function(){var Ie=document.createElement("div");return q.current=Ie,Ie.id=K,Ie.setAttribute("aria-live","assertive"),Ie.setAttribute("aria-atomic","true"),Object(U.a)(Ie.style,Fa),ja().appendChild(Ie),function(){setTimeout(function(){var kt=ja();kt.contains(Ie)&&kt.removeChild(Ie),Ie===q.current&&(q.current=null)})}},[K]);var me=a(function(ke){var Ie=q.current;if(Ie){Ie.textContent=ke;return}},[]);return me}var gi=0,Ri={separator:"::"};function ki(){gi=0}function Ci(z,K){return K===void 0&&(K=Ri),p(function(){return""+z+K.separator+gi++},[K.separator,z])}function li(z){var K=z.contextId,q=z.uniqueId;return"rbd-hidden-text-"+K+"-"+q}function Mo(z){var K=z.contextId,q=z.text,me=Ci("hidden-text",{separator:"-"}),ke=p(function(){return li({contextId:K,uniqueId:me})},[me,K]);return Object(Y.useEffect)(function(){var Ze=document.createElement("div");return Ze.id=ke,Ze.textContent=q,Ze.style.display="none",ja().appendChild(Ze),function(){var kt=ja();kt.contains(Ze)&&kt.removeChild(Ze)}},[ke,q]),ke}var _o=j.a.createContext(null),Lo={react:"^16.8.5","react-dom":"^16.8.5"},Bi=/(\d+)\.(\d+)\.(\d+)/,Za=function(K){var q=Bi.exec(K);q!=null||ce(!1);var me=Number(q[1]),ke=Number(q[2]),Ie=Number(q[3]);return{major:me,minor:ke,patch:Ie,raw:K}},Wa=function(K,q){return q.major>K.major?!0:q.majorK.minor?!0:q.minor=K.patch},na=function(z,K){var q=Za(z),me=Za(K);if(Wa(q,me))return},Oa=` We expect a html5 doctype: This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md -`,Ha=function(z){var K=z.doctype;if(!K)return;K.name.toLowerCase()!=="html",K.publicId!==""};function si(z){}function Xi(z,K){si(function(){Object(Y.useEffect)(function(){try{z()}catch(q){be(` +`,Ka=function(z){var K=z.doctype;if(!K)return;K.name.toLowerCase()!=="html",K.publicId!==""};function ii(z){}function Yi(z,K){ii(function(){Object(Y.useEffect)(function(){try{z()}catch(q){be(` A setup problem was encountered. > `+q.message+` - `)}},K)})}function ao(){Xi(function(){na(Lo.react,j.a.version),Ha(document)},[])}function xi(z){var K=Object(Y.useRef)(z);return Object(Y.useEffect)(function(){K.current=z}),K}function Yi(){var z=null;function K(){return Boolean(z)}function q(Ze){return Ze===z}function me(Ze){z&&ce(!1);var qe={abandon:Ze};return z=qe,qe}function ke(){z||ce(!1),z=null}function Ie(){z&&(z.abandon(),ke())}return{isClaimed:K,isActive:q,claim:me,release:ke,tryAbandon:Ie}}var Eo=9,ko=13,gi=27,Rs=32,Ys=33,Dl=34,hs=35,Ts=36,Qs=37,Pl=38,Js=39,Ml=40,ms,ps=(ms={},ms[ko]=!0,ms[Eo]=!0,ms),Ds=function(z){ps[z.keyCode]&&z.preventDefault()},vs=function(){var z="visibilitychange";if(typeof document=="undefined")return z;var K=[z,"ms"+z,"webkit"+z,"moz"+z,"o"+z],q=et(K,function(me){return"on"+me in document});return q||z}(),Zs=0,Ps=5;function zo(z,K){return Math.abs(K.x-z.x)>=Ps||Math.abs(K.y-z.y)>=Ps}var gs={type:"IDLE"};function bs(z){var K=z.cancel,q=z.completed,me=z.getPhase,ke=z.setPhase;return[{eventName:"mousemove",fn:function(Ze){var qe=Ze.button,kt=Ze.clientX,en=Ze.clientY;if(qe!==Zs)return;var rn={x:kt,y:en},Ut=me();if(Ut.type==="DRAGGING"){Ze.preventDefault(),Ut.actions.move(rn);return}Ut.type==="PENDING"||ce(!1);var It=Ut.point;if(!zo(It,rn))return;Ze.preventDefault();var qt=Ut.actions.fluidLift(rn);ke({type:"DRAGGING",actions:qt})}},{eventName:"mouseup",fn:function(Ze){var qe=me();if(qe.type!=="DRAGGING"){K();return}Ze.preventDefault(),qe.actions.drop({shouldBlockNextClick:!0}),q()}},{eventName:"mousedown",fn:function(Ze){me().type==="DRAGGING"&&Ze.preventDefault(),K()}},{eventName:"keydown",fn:function(Ze){var qe=me();if(qe.type==="PENDING"){K();return}if(Ze.keyCode===gi){Ze.preventDefault(),K();return}Ds(Ze)}},{eventName:"resize",fn:K},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){me().type==="PENDING"&&K()}},{eventName:"webkitmouseforcedown",fn:function(Ze){var qe=me();if(qe.type!=="IDLE"||ce(!1),qe.actions.shouldRespectForcePress()){K();return}Ze.preventDefault()}},{eventName:vs,fn:K}]}function qs(z){var K=Object(Y.useRef)(gs),q=Object(Y.useRef)(ge),me=p(function(){return{eventName:"mousedown",fn:function(Ut){if(Ut.defaultPrevented)return;if(Ut.button!==Zs)return;if(Ut.ctrlKey||Ut.metaKey||Ut.shiftKey||Ut.altKey)return;var It=z.findClosestDraggableId(Ut);if(!It)return;var qt=z.tryGetLock(It,Ze,{sourceEvent:Ut});if(!qt)return;Ut.preventDefault();var Nn={x:Ut.clientX,y:Ut.clientY};q.current(),en(qt,Nn)}}},[z]),ke=p(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ut){if(Ut.defaultPrevented)return;var It=z.findClosestDraggableId(Ut);if(!It)return;var qt=z.findOptionsForDraggable(It);if(!qt)return;if(qt.shouldRespectForcePress)return;if(!z.canGetLock(It))return;Ut.preventDefault()}}},[z]),Ie=a(function(){var Ut={passive:!1,capture:!0};q.current=He(window,[ke,me],Ut)},[ke,me]),Ze=a(function(){var rn=K.current;if(rn.type==="IDLE")return;K.current=gs,q.current(),Ie()},[Ie]),qe=a(function(){var rn=K.current;Ze(),rn.type==="DRAGGING"&&rn.actions.cancel({shouldBlockNextClick:!0}),rn.type==="PENDING"&&rn.actions.abort()},[Ze]),kt=a(function(){var Ut={capture:!0,passive:!1},It=bs({cancel:qe,completed:Ze,getPhase:function(){return K.current},setPhase:function(Nn){K.current=Nn}});q.current=He(window,It,Ut)},[qe,Ze]),en=a(function(Ut,It){K.current.type==="IDLE"||ce(!1),K.current={type:"PENDING",point:It,actions:Ut},kt()},[kt]);Qa(function(){return Ie(),function(){q.current()}},[Ie])}var Uo;function $s(){}var Ll=(Uo={},Uo[Dl]=!0,Uo[Ys]=!0,Uo[Ts]=!0,Uo[hs]=!0,Uo);function el(z,K){function q(){K(),z.cancel()}function me(){K(),z.drop()}return[{eventName:"keydown",fn:function(Ie){if(Ie.keyCode===gi){Ie.preventDefault(),q();return}if(Ie.keyCode===Rs){Ie.preventDefault(),me();return}if(Ie.keyCode===Ml){Ie.preventDefault(),z.moveDown();return}if(Ie.keyCode===Pl){Ie.preventDefault(),z.moveUp();return}if(Ie.keyCode===Js){Ie.preventDefault(),z.moveRight();return}if(Ie.keyCode===Qs){Ie.preventDefault(),z.moveLeft();return}if(Ll[Ie.keyCode]){Ie.preventDefault();return}Ds(Ie)}},{eventName:"mousedown",fn:q},{eventName:"mouseup",fn:q},{eventName:"click",fn:q},{eventName:"touchstart",fn:q},{eventName:"resize",fn:q},{eventName:"wheel",fn:q,options:{passive:!0}},{eventName:vs,fn:q}]}function Fi(z){var K=Object(Y.useRef)($s),q=p(function(){return{eventName:"keydown",fn:function(Ie){if(Ie.defaultPrevented)return;if(Ie.keyCode!==Rs)return;var Ze=z.findClosestDraggableId(Ie);if(!Ze)return;var qe=z.tryGetLock(Ze,rn,{sourceEvent:Ie});if(!qe)return;Ie.preventDefault();var kt=!0,en=qe.snapLift();K.current();function rn(){kt||ce(!1),kt=!1,K.current(),me()}K.current=He(window,el(en,rn),{capture:!0,passive:!1})}}},[z]),me=a(function(){var Ie={passive:!1,capture:!0};K.current=He(window,[q],Ie)},[q]);Qa(function(){return me(),function(){K.current()}},[me])}var Ho={type:"IDLE"},tl=120,nl=.15;function rl(z){var K=z.cancel,q=z.getPhase;return[{eventName:"orientationchange",fn:K},{eventName:"resize",fn:K},{eventName:"contextmenu",fn:function(ke){ke.preventDefault()}},{eventName:"keydown",fn:function(ke){if(q().type!=="DRAGGING"){K();return}ke.keyCode===gi&&ke.preventDefault(),K()}},{eventName:vs,fn:K}]}function Ko(z){var K=z.cancel,q=z.completed,me=z.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ie){var Ze=me();if(Ze.type!=="DRAGGING"){K();return}Ze.hasMoved=!0;var qe=Ie.touches[0],kt=qe.clientX,en=qe.clientY,rn={x:kt,y:en};Ie.preventDefault(),Ze.actions.move(rn)}},{eventName:"touchend",fn:function(Ie){var Ze=me();if(Ze.type!=="DRAGGING"){K();return}Ie.preventDefault(),Ze.actions.drop({shouldBlockNextClick:!0}),q()}},{eventName:"touchcancel",fn:function(Ie){if(me().type!=="DRAGGING"){K();return}Ie.preventDefault(),K()}},{eventName:"touchforcechange",fn:function(Ie){var Ze=me();Ze.type!=="IDLE"||ce(!1);var qe=Ie.touches[0];if(!qe)return;var kt=qe.force>=nl;if(!kt)return;var en=Ze.actions.shouldRespectForcePress();if(Ze.type==="PENDING"){en&&K();return}if(en){if(Ze.hasMoved){Ie.preventDefault();return}K();return}Ie.preventDefault()}},{eventName:vs,fn:K}]}function ys(z){var K=Object(Y.useRef)(Ho),q=Object(Y.useRef)(ge),me=a(function(){return K.current},[]),ke=a(function(qt){K.current=qt},[]),Ie=p(function(){return{eventName:"touchstart",fn:function(qt){if(qt.defaultPrevented)return;var Nn=z.findClosestDraggableId(qt);if(!Nn)return;var Gr=z.tryGetLock(Nn,qe,{sourceEvent:qt});if(!Gr)return;var qr=qt.touches[0],da=qr.clientX,va=qr.clientY,Ua={x:da,y:va};q.current(),Ut(Gr,Ua)}}},[z]),Ze=a(function(){var qt={capture:!0,passive:!1};q.current=He(window,[Ie],qt)},[Ie]),qe=a(function(){var It=K.current;if(It.type==="IDLE")return;It.type==="PENDING"&&clearTimeout(It.longPressTimerId),ke(Ho),q.current(),Ze()},[Ze,ke]),kt=a(function(){var It=K.current;qe(),It.type==="DRAGGING"&&It.actions.cancel({shouldBlockNextClick:!0}),It.type==="PENDING"&&It.actions.abort()},[qe]),en=a(function(){var qt={capture:!0,passive:!1},Nn={cancel:kt,completed:qe,getPhase:me},Gr=He(window,Ko(Nn),qt),qr=He(window,rl(Nn),qt);q.current=function(){Gr(),qr()}},[kt,me,qe]),rn=a(function(){var qt=me();qt.type==="PENDING"||ce(!1);var Nn=qt.actions.fluidLift(qt.point);ke({type:"DRAGGING",actions:Nn,hasMoved:!1})},[me,ke]),Ut=a(function(qt,Nn){me().type==="IDLE"||ce(!1);var Gr=setTimeout(rn,tl);ke({type:"PENDING",point:Nn,actions:qt,longPressTimerId:Gr}),en()},[en,me,ke,rn]);Qa(function(){return Ze(),function(){q.current();var Nn=me();Nn.type==="PENDING"&&(clearTimeout(Nn.longPressTimerId),ke(Ho))}},[me,Ze,ke]),Qa(function(){var qt=He(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qt},[])}function al(z){si(function(){var K=xi(z);Xi(function(){K.current.length===z.length||ce(!1)})})}var il={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(z,K){if(K==null)return!1;var q=Boolean(il[K.tagName.toLowerCase()]);if(q)return!0;var me=K.getAttribute("contenteditable");return me==="true"||me===""?!0:K===z?!1:Ms(z,K.parentElement)}function Go(z,K){var q=K.target;return di(q)?Ms(z,q):!1}var ol=function(z){return x(z.getBoundingClientRect()).center};function _s(z){return z instanceof ya(z).Element}var sl=function(){var z="matches";if(typeof document=="undefined")return z;var K=[z,"msMatchesSelector","webkitMatchesSelector"],q=et(K,function(me){return me in Element.prototype});return q||z}();function Vo(z,K){return z==null?null:z[sl](K)?z:Vo(z.parentElement,K)}function kl(z,K){return z.closest?z.closest(K):Vo(z,K)}function Xo(z){return"["+so.contextId+'="'+z+'"]'}function ll(z,K){var q=K.target;if(!_s(q))return null;var me=Xo(z),ke=kl(q,me);return ke&&di(ke)?ke:null}function ul(z,K){var q=ll(z,K);return q?q.getAttribute(so.draggableId):null}function dl(z,K){var q="["+Oo.contextId+'="'+z+'"]',me=xt(document.querySelectorAll(q)),ke=et(me,function(Ie){return Ie.getAttribute(Oo.id)===K});return ke&&di(ke)?ke:null}function ts(z){z.preventDefault()}function jo(z){var K=z.expected,q=z.phase,me=z.isLockActive,ke=z.shouldWarn;return me()?!(K!==q):!1}function Yo(z){var K=z.lockAPI,q=z.store,me=z.registry,ke=z.draggableId;if(K.isClaimed())return!1;var Ie=me.draggable.findById(ke);return Ie&&Ie.options.isEnabled?!!Ji(q.getState(),ke):!1}function ns(z){var K=z.lockAPI,q=z.contextId,me=z.store,ke=z.registry,Ie=z.draggableId,Ze=z.forceSensorStop,qe=z.sourceEvent,kt=Yo({lockAPI:K,store:me,registry:ke,draggableId:Ie});if(!kt)return null;var en=ke.draggable.getById(Ie),rn=dl(q,en.descriptor.id);if(!rn)return null;if(qe&&!en.options.canDragInteractiveElements&&Go(rn,qe))return null;var Ut=K.claim(Ze||ge),It="PRE_DRAG";function qt(){return en.options.shouldRespectForcePress}function Nn(){return K.isActive(Ut)}function Gr(Ya,fi){jo({expected:Ya,phase:It,isLockActive:Nn,shouldWarn:!0})&&me.dispatch(fi())}var qr=Gr.bind(null,"DRAGGING");function da(Ya){function fi(){K.release(),It="COMPLETED"}It!=="PRE_DRAG"&&(fi(),It==="PRE_DRAG"||ce(!1)),me.dispatch(ar(Ya.liftActionArgs)),It="DRAGGING";function Di(e,n){if(n===void 0&&(n={shouldBlockNextClick:!1}),Ya.cleanup(),n.shouldBlockNextClick){var D=He(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(D)}fi(),me.dispatch(pt({reason:e}))}return Object(U.a)({isActive:function(){return jo({expected:"DRAGGING",phase:It,isLockActive:Nn,shouldWarn:!1})},shouldRespectForcePress:qt,drop:function(n){return Di("DROP",n)},cancel:function(n){return Di("CANCEL",n)}},Ya.actions)}function va(Ya){var fi=P(function(e){qr(function(){return la({client:e})})}),Di=da({liftActionArgs:{id:Ie,clientSelection:Ya,movementMode:"FLUID"},cleanup:function(){return fi.cancel()},actions:{move:fi}});return Object(U.a)({},Di,{move:fi})}function Ua(){var Ya={moveUp:function(){return qr(Kr)},moveRight:function(){return qr(Er)},moveDown:function(){return qr(ra)},moveLeft:function(){return qr(wn)}};return da({liftActionArgs:{id:Ie,clientSelection:ol(rn),movementMode:"SNAP"},cleanup:ge,actions:Ya})}function pa(){var Ya=jo({expected:"PRE_DRAG",phase:It,isLockActive:Nn,shouldWarn:!0});Ya&&K.release()}var ei={isActive:function(){return jo({expected:"PRE_DRAG",phase:It,isLockActive:Nn,shouldWarn:!1})},shouldRespectForcePress:qt,fluidLift:va,snapLift:Ua,abort:pa};return ei}var cl=[qs,Fi,ys];function Il(z){var K=z.contextId,q=z.store,me=z.registry,ke=z.customSensors,Ie=z.enableDefaultSensors,Ze=[].concat(Ie?cl:[],ke||[]),qe=Object(Y.useState)(function(){return Yi()})[0],kt=a(function(va,Ua){va.isDragging&&!Ua.isDragging&&qe.tryAbandon()},[qe]);Qa(function(){var va=q.getState(),Ua=q.subscribe(function(){var pa=q.getState();kt(va,pa),va=pa});return Ua},[qe,q,kt]),Qa(function(){return qe.tryAbandon},[qe.tryAbandon]);var en=a(function(da){return Yo({lockAPI:qe,registry:me,store:q,draggableId:da})},[qe,me,q]),rn=a(function(da,va,Ua){return ns({lockAPI:qe,registry:me,contextId:K,store:q,draggableId:da,forceSensorStop:va,sourceEvent:Ua&&Ua.sourceEvent?Ua.sourceEvent:null})},[K,qe,me,q]),Ut=a(function(da){return ul(K,da)},[K]),It=a(function(da){var va=me.draggable.findById(da);return va?va.options:null},[me.draggable]),qt=a(function(){if(!qe.isClaimed())return;qe.tryAbandon(),q.getState().phase!=="IDLE"&&q.dispatch(fa())},[qe,q]),Nn=a(qe.isClaimed,[qe]),Gr=p(function(){return{canGetLock:en,tryGetLock:rn,findClosestDraggableId:Ut,findOptionsForDraggable:It,tryReleaseLock:qt,isLockClaimed:Nn}},[en,rn,Ut,It,qt,Nn]);al(Ze);for(var qr=0;qr2&&arguments[2]!==void 0?arguments[2]:"0",ut=String(se);ut.length=12,Cr%=12);var ga=d.useMemo(function(){if(!cn)return[!1,!1];var Zn=[!0,!0];return Ta.forEach(function(An){var rr=An.disabled,ar=An.value;if(rr)return;ar>=12?Zn[1]=!1:Zn[0]=!1}),Zn},[cn,Ta]),Fa=Object(s.a)(ga,2),Va=Fa[0],tr=Fa[1],In=d.useMemo(function(){return cn?Ta.filter(Ea?function(Zn){return Zn.value>=12}:function(Zn){return Zn.value<12}).map(function(Zn){var An=Zn.value%12,rr=An===0?"12":X(An,2);return Object(g.a)(Object(g.a)({},Zn),{},{label:rr,value:An})}):Ta},[cn,Ta]),En=he(0,59,Hn,_r&&_r(Cr)),Or=he(0,59,$n,vr&&vr(Cr,kr));ut.current={onUpDown:function(An){var rr=Dr[Kt];if(rr)for(var ar=rr.units.findIndex(function(Hr){return Hr.value===rr.value}),Pr=rr.units.length,sa=1;sa1&&(Yt=tt.addDate(Yt,-7)),Yt}function mt(se,tt,rt){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(tt){case"year":return rt.addYear(se,ut*10);case"quarter":case"month":return rt.addYear(se,ut);default:return rt.addMonth(se,ut)}}var lt=d.createContext({}),Ht=lt;function sn(se){var tt=se.cellPrefixCls,rt=se.generateConfig,ut=se.rangedValue,Kt=se.hoverRangedValue,Ct=se.isInView,Yt=se.isSameCell,nn=se.offsetCell,_n=se.today,cn=se.value;function ur(Mn){var fn,Hn=nn(Mn,-1),Xn=nn(Mn,1),$n=ge(ut,0),Yn=ge(ut,1),_r=ge(Kt,0),vr=ge(Kt,1),lr=Cn(rt,_r,vr,Mn);function wr(kr){return Yt($n,kr)}function Dr(kr){return Yt(Yn,kr)}var sr=Yt(_r,Mn),ia=Yt(vr,Mn),Ea=(lr||ia)&&(!Ct(Hn)||Dr(Hn)),Cr=(lr||sr)&&(!Ct(Xn)||wr(Xn));return fn={},Object(S.a)(fn,"".concat(tt,"-in-view"),Ct(Mn)),Object(S.a)(fn,"".concat(tt,"-in-range"),Cn(rt,$n,Yn,Mn)),Object(S.a)(fn,"".concat(tt,"-range-start"),wr(Mn)),Object(S.a)(fn,"".concat(tt,"-range-end"),Dr(Mn)),Object(S.a)(fn,"".concat(tt,"-range-start-single"),wr(Mn)&&!Yn),Object(S.a)(fn,"".concat(tt,"-range-end-single"),Dr(Mn)&&!$n),Object(S.a)(fn,"".concat(tt,"-range-start-near-hover"),wr(Mn)&&(Yt(Hn,_r)||Cn(rt,_r,vr,Hn))),Object(S.a)(fn,"".concat(tt,"-range-end-near-hover"),Dr(Mn)&&(Yt(Xn,vr)||Cn(rt,_r,vr,Xn))),Object(S.a)(fn,"".concat(tt,"-range-hover"),lr),Object(S.a)(fn,"".concat(tt,"-range-hover-start"),sr),Object(S.a)(fn,"".concat(tt,"-range-hover-end"),ia),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-start"),Ea),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-end"),Cr),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-start-near-range"),Ea&&Yt(Hn,Yn)),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-end-near-range"),Cr&&Yt(Xn,$n)),Object(S.a)(fn,"".concat(tt,"-today"),Yt(_n,Mn)),Object(S.a)(fn,"".concat(tt,"-selected"),Yt(cn,Mn)),fn}return ur}function Tt(se){for(var tt=se.prefixCls,rt=se.disabledDate,ut=se.onSelect,Kt=se.rowNum,Ct=se.colNum,Yt=se.prefixColumn,nn=se.rowClassName,_n=se.baseDate,cn=se.getCellClassName,ur=se.getCellText,Mn=se.getCellNode,fn=se.getCellDate,Hn=se.titleCell,Xn=se.headerCells,$n=d.useContext(O),Yn=$n.onDateMouseEnter,_r=$n.onDateMouseLeave,vr="".concat(tt,"-cell"),lr=[],wr=0;wr2&&arguments[2]!==void 0?arguments[2]:!1;(st===$n||Ca)&&(fa(Rn),ia&&ia(Rn),Pr&&Pr(Rn,xr),Ea&&!Qt(nn,Rn,wn)&&Ea(Rn))},zn=function(Rn){return mr.current&&mr.current.onKeyDown?([b.a.LEFT,b.a.RIGHT,b.a.UP,b.a.DOWN,b.a.PAGE_UP,b.a.PAGE_DOWN,b.a.ENTER].includes(Rn.which)&&Rn.preventDefault(),mr.current.onKeyDown(Rn)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},gr=function(Rn){mr.current&&mr.current.onBlur&&mr.current.onBlur(Rn)};rr&&Ma!=="right"&&(rr.current={onKeyDown:zn,onClose:function(){mr.current&&mr.current.onClose&&mr.current.onClose()}}),d.useEffect(function(){_n&&!Kr.current&&vt(_n)},[_n]),d.useEffect(function(){Kr.current=!1},[]);var Xr,Jr=Object(g.a)(Object(g.a)({},se),{},{operationRef:mr,prefixCls:ut,viewDate:pt,value:wn,onViewDateChange:Me,sourceMode:zt,onPanelChange:on,disabledDate:st!=="decade"?fn:void 0});delete Jr.onChange,delete Jr.onSelect;switch(st){case"decade":Xr=d.createElement(B,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"year":Xr=d.createElement(Mt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"month":Xr=d.createElement(Xt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"quarter":Xr=d.createElement(bn,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"week":Xr=d.createElement(Dt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"time":delete Jr.showTime,Xr=d.createElement(Ce,Object.assign({},Jr,Object(x.a)(lr)==="object"?lr:null,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;default:lr?Xr=d.createElement(xt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}})):Xr=d.createElement(ye,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}))}var aa,hn,Lr=function(){var Rn=nn.getNow(),xr=nt(nn.getHour(Rn),nn.getMinute(Rn),nn.getSecond(Rn),yr?Fa:1,zr?tr:1,Zn?En:1),Ca=He(nn,Rn,xr[0],xr[1],xr[2]);yn(Ca,"submit")};sa||(aa=H(ut,st,Dr),hn=ae({prefixCls:ut,components:Aa,needConfirmButton:Or,okDisabled:!wn||fn&&fn(wn),locale:Yt,showNow:vr,onNow:Or&&Lr,onOk:function(){wn&&(yn(wn,"submit",!0),Qr&&Qr(wn))}}));var oa;if(wr&&st==="date"&&$n==="date"&&!lr){var ba=nn.getNow(),_t="".concat(ut,"-today-btn"),Wr=fn&&fn(ba);oa=d.createElement("a",{className:p()(_t,Wr&&"".concat(_t,"-disabled")),"aria-disabled":Wr,onClick:function(){Wr||yn(ba,"mouse",!0)}},Yt.today)}return d.createElement(O.Provider,{value:Object(g.a)(Object(g.a)({},An),{},{hideHeader:"hideHeader"in se?sr:An.hideHeader,hidePrevBtn:ha&&Ma==="right",hideNextBtn:ha&&Ma==="left"})},d.createElement("div",{tabIndex:_r,className:p()("".concat(ut,"-panel"),Kt,(tt={},Object(S.a)(tt,"".concat(ut,"-panel-has-range"),la&&la[0]&&la[1]),Object(S.a)(tt,"".concat(ut,"-panel-has-range-hover"),Ir&&Ir[0]&&Ir[1]),Object(S.a)(tt,"".concat(ut,"-panel-rtl"),Ta==="rtl"),tt)),style:Ct,onKeyDown:zn,onBlur:gr,onMouseDown:kr,ref:ar},Xr,aa||hn||oa?d.createElement("div",{className:"".concat(ut,"-footer")},aa,hn,oa):null))}var oe=ue,ht=_("uciX"),vn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Tn(se){var tt,rt=se.prefixCls,ut=se.popupElement,Kt=se.popupStyle,Ct=se.visible,Yt=se.dropdownClassName,nn=se.dropdownAlign,_n=se.transitionName,cn=se.getPopupContainer,ur=se.children,Mn=se.range,fn=se.popupPlacement,Hn=se.direction,Xn="".concat(rt,"-dropdown"),$n=function(){return fn!==void 0?fn:Hn==="rtl"?"bottomRight":"bottomLeft"};return d.createElement(ht.a,{showAction:[],hideAction:[],popupPlacement:$n(),builtinPlacements:vn,prefixCls:Xn,popupTransitionName:_n,popup:ut,popupAlign:nn,popupVisible:Ct,popupClassName:p()(Yt,(tt={},Object(S.a)(tt,"".concat(Xn,"-range"),Mn),Object(S.a)(tt,"".concat(Xn,"-rtl"),Hn==="rtl"),tt)),popupStyle:Kt,getPopupContainer:cn},ur)}var cr=Tn;function Vt(se){var tt=se.open,rt=se.value,ut=se.isClickOutside,Kt=se.triggerOpen,Ct=se.forwardKeyDown,Yt=se.blurToCancel,nn=se.onSubmit,_n=se.onCancel,cn=se.onFocus,ur=se.onBlur,Mn=Object(d.useState)(!1),fn=Object(s.a)(Mn,2),Hn=fn[0],Xn=fn[1],$n=Object(d.useState)(!1),Yn=Object(s.a)($n,2),_r=Yn[0],vr=Yn[1],lr=Object(d.useRef)(!1),wr=Object(d.useRef)(!1),Dr={onMouseDown:function(){Xn(!0),Kt(!0)},onKeyDown:function(ia){switch(ia.which){case b.a.ENTER:{tt?nn()!==!1&&Xn(!0):Kt(!0),ia.preventDefault();return}case b.a.TAB:{Hn&&tt&&!ia.shiftKey?(Xn(!1),ia.preventDefault()):!Hn&&tt&&(!Ct(ia)&&ia.shiftKey&&(Xn(!0),ia.preventDefault()));return}case b.a.ESC:{Xn(!0),_n();return}}!tt&&![b.a.SHIFT].includes(ia.which)?Kt(!0):Hn||Ct(ia)},onFocus:function(ia){Xn(!0),vr(!0),cn&&cn(ia)},onBlur:function(ia){if(lr.current||!ut(document.activeElement)){lr.current=!1;return}Yt?setTimeout(function(){ut(document.activeElement)&&_n()},0):tt&&(Kt(!1),wr.current&&nn()),vr(!1),ur&&ur(ia)}};return Object(d.useEffect)(function(){wr.current=!1},[tt]),Object(d.useEffect)(function(){wr.current=!0},[rt]),Object(d.useEffect)(function(){return P(function(sr){var ia=sr.target;tt&&(ut(ia)?_r||Kt(!1):(lr.current=!0,requestAnimationFrame(function(){lr.current=!1})))})}),[Dr,{focused:_r,typing:Hn}]}function Et(se){var tt=se.valueTexts,rt=se.onTextChange,ut=d.useState(""),Kt=Object(s.a)(ut,2),Ct=Kt[0],Yt=Kt[1],nn=d.useRef([]);nn.current=tt;function _n(ur){Yt(ur),rt(ur)}function cn(){Yt(nn.current[0])}return d.useEffect(function(){tt.every(function(ur){return ur!==Ct})&&cn()},[tt.join("||")]),[Ct,_n,cn]}var Jt=_("Gytx"),Fn=_.n(Jt);function Vn(se,tt){var rt=tt.formatList,ut=tt.generateConfig,Kt=tt.locale;return Object(E.a)(function(){if(!se)return[[""],""];for(var Ct="",Yt=[],nn=0;nn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(cn.current),_r){_n(Yn);return}cn.current=requestAnimationFrame(function(){_n(Yn)})}var Mn=Vn(nn,{formatList:rt,generateConfig:ut,locale:Kt}),fn=Object(s.a)(Mn,2),Hn=fn[1];function Xn(Yn){ur(Yn)}function $n(){var Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ur(null,Yn)}return Object(d.useEffect)(function(){$n(!0)},[se]),Object(d.useEffect)(function(){return function(){return cancelAnimationFrame(cn.current)}},[]),[Hn,Xn,$n]}function ir(se){var tt,rt=se.prefixCls,ut=rt===void 0?"rc-picker":rt,Kt=se.id,Ct=se.tabIndex,Yt=se.style,nn=se.className,_n=se.dropdownClassName,cn=se.dropdownAlign,ur=se.popupStyle,Mn=se.transitionName,fn=se.generateConfig,Hn=se.locale,Xn=se.inputReadOnly,$n=se.allowClear,Yn=se.autoFocus,_r=se.showTime,vr=se.picker,lr=vr===void 0?"date":vr,wr=se.format,Dr=se.use12Hours,sr=se.value,ia=se.defaultValue,Ea=se.open,Cr=se.defaultOpen,kr=se.defaultOpenValue,Zr=se.suffixIcon,Qr=se.clearIcon,Aa=se.disabled,Ta=se.disabledDate,ga=se.placeholder,Fa=se.getPopupContainer,Va=se.pickerRef,tr=se.panelRender,In=se.onChange,En=se.onOpenChange,Or=se.onFocus,yr=se.onBlur,zr=se.onMouseDown,Zn=se.onMouseUp,An=se.onMouseEnter,rr=se.onMouseLeave,ar=se.onContextMenu,Pr=se.onClick,sa=se.direction,Qn=se.autoComplete,Hr=Qn===void 0?"off":Qn,ha=d.useRef(null),Ma=lr==="date"&&!!_r||lr==="time",la=ee(o(wr,lr,_r,Dr)),Ir=d.useRef(null),mr=d.useRef(null),Kr=Object(f.a)(null,{value:sr,defaultValue:ia}),ra=Object(s.a)(Kr,2),Er=ra[0],wn=ra[1],fa=d.useState(Er),Mr=Object(s.a)(fa,2),$e=Mr[0],pt=Mr[1],vt=d.useRef(null),Me=Object(f.a)(!1,{value:Ea,defaultValue:Cr,postState:function(qn){return Aa?!1:qn},onChange:function(qn){En&&En(qn),!qn&&vt.current&&vt.current.onClose&&vt.current.onClose()}}),we=Object(s.a)(Me,2),Ke=we[0],De=we[1],st=Vn($e,{formatList:la,generateConfig:fn,locale:Hn}),ct=Object(s.a)(st,2),Bt=ct[0],gt=ct[1],zt=Et({valueTexts:Bt,onTextChange:function(qn){var Ar=fn.locale.parse(Hn.locale,qn,la);Ar&&(!Ta||!Ta(Ar))&&pt(Ar)}}),Ft=Object(s.a)(zt,3),on=Ft[0],yn=Ft[1],zn=Ft[2],gr=function(qn){pt(qn),wn(qn),In&&!Qt(fn,Er,qn)&&In(qn,qn?fn.locale.format(Hn.locale,qn,la[0]):"")},Xr=function(qn){if(Aa&&qn)return;De(qn)},Jr=function(qn){return Ke&&vt.current&&vt.current.onKeyDown?vt.current.onKeyDown(qn):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},aa=function(){Zn&&Zn.apply(void 0,arguments),ha.current&&(ha.current.focus(),Xr(!0))},hn=Vt({blurToCancel:Ma,open:Ke,value:on,triggerOpen:Xr,forwardKeyDown:Jr,isClickOutside:function(qn){return!W([Ir.current,mr.current],qn)},onSubmit:function(){return Ta&&Ta($e)?!1:(gr($e),Xr(!1),zn(),!0)},onCancel:function(){Xr(!1),pt(Er),zn()},onFocus:Or,onBlur:yr}),Lr=Object(s.a)(hn,2),oa=Lr[0],ba=Lr[1],_t=ba.focused,Wr=ba.typing;d.useEffect(function(){Ke||(pt(Er),!Bt.length||Bt[0]===""?yn(""):gt!==on&&zn())},[Ke,Bt]),d.useEffect(function(){Ke||zn()},[lr]),d.useEffect(function(){pt(Er)},[Er]),Va&&(Va.current={focus:function(){ha.current&&ha.current.focus()},blur:function(){ha.current&&ha.current.blur()}});var un=Object(g.a)(Object(g.a)({},se),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Rn=d.createElement(oe,Object.assign({},un,{generateConfig:fn,className:p()(Object(S.a)({},"".concat(ut,"-panel-focused"),!Wr)),value:$e,locale:Hn,tabIndex:-1,onChange:pt,direction:sa}));tr&&(Rn=tr(Rn));var xr=d.createElement("div",{className:"".concat(ut,"-panel-container"),onMouseDown:function(qn){qn.preventDefault()}},Rn),Ca;Zr&&(Ca=d.createElement("span",{className:"".concat(ut,"-suffix")},Zr));var Nr;$n&&Er&&!Aa&&(Nr=d.createElement("span",{onMouseDown:function(qn){qn.preventDefault(),qn.stopPropagation()},onMouseUp:function(qn){qn.preventDefault(),qn.stopPropagation(),gr(null),Xr(!1)},className:"".concat(ut,"-clear")},Qr||d.createElement("span",{className:"".concat(ut,"-clear-btn")})));var Sr=function(qn,Ar){(Ar==="submit"||Ar!=="key"&&!Ma)&&(gr(qn),Xr(!1))},xa=sa==="rtl"?"bottomRight":"bottomLeft",Vr=Kn(on,{formatList:la,generateConfig:fn,locale:Hn}),nr=Object(s.a)(Vr,3),Fr=nr[0],Wn=nr[1],pn=nr[2];return d.createElement(O.Provider,{value:{operationRef:vt,hideHeader:lr==="time",panelRef:Ir,onSelect:Sr,open:Ke,defaultOpenValue:kr,onDateMouseEnter:Wn,onDateMouseLeave:pn}},d.createElement(cr,{visible:Ke,popupElement:xr,popupStyle:ur,prefixCls:ut,dropdownClassName:_n,dropdownAlign:cn,getPopupContainer:Fa,transitionName:Mn,popupPlacement:xa,direction:sa},d.createElement("div",{className:p()(ut,nn,(tt={},Object(S.a)(tt,"".concat(ut,"-disabled"),Aa),Object(S.a)(tt,"".concat(ut,"-focused"),_t),Object(S.a)(tt,"".concat(ut,"-rtl"),sa==="rtl"),tt)),style:Yt,onMouseDown:zr,onMouseUp:aa,onMouseEnter:An,onMouseLeave:rr,onContextMenu:ar,onClick:Pr},d.createElement("div",{className:p()("".concat(ut,"-input"),Object(S.a)({},"".concat(ut,"-input-placeholder"),!!Fr)),ref:mr},d.createElement("input",Object.assign({id:Kt,tabIndex:Ct,disabled:Aa,readOnly:Xn||!Wr,value:Fr||on,onChange:function(qn){yn(qn.target.value)},autoFocus:Yn,placeholder:ga,ref:ha,title:on},oa,{size:l(lr,la[0])},be(se),{autoComplete:Hr})),Ca,Nr))))}var jr=function(se){Object(L.a)(rt,se);var tt=Object(U.a)(rt);function rt(){var ut;return Object(Y.a)(this,rt),ut=tt.apply(this,arguments),ut.pickerRef=d.createRef(),ut.focus=function(){ut.pickerRef.current&&ut.pickerRef.current.focus()},ut.blur=function(){ut.pickerRef.current&&ut.pickerRef.current.blur()},ut}return Object(j.a)(rt,[{key:"render",value:function(){return d.createElement(ir,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),rt}(d.Component),ua=jr;function Yr(se,tt,rt){var ut=se.picker,Kt=se.locale,Ct=se.selectedValue,Yt=se.disabledDate,nn=se.disabled,_n=se.generateConfig,cn=ge(Ct,0),ur=ge(Ct,1);function Mn(Yn){var _r=_n.getYear(Yn),vr=_n.locale.getWeek(Kt.locale,Yn);return _r*100+vr}function fn(Yn){var _r=_n.getYear(Yn),vr=_n.getMonth(Yn);return _r*100+vr}function Hn(Yn){var _r=_n.getYear(Yn),vr=Pe(_n,Yn);return _r*10+vr}var Xn=d.useCallback(function(Yn){if(Yt&&Yt(Yn))return!0;if(nn[1]&&ur)return!At(_n,Yn,ur)&&_n.isAfter(Yn,ur);if(tt&&ur)switch(ut){case"quarter":return Hn(Yn)>Hn(ur);case"month":return fn(Yn)>fn(ur);case"week":return Mn(Yn)>Mn(ur);default:return!At(_n,Yn,ur)&&_n.isAfter(Yn,ur)}return!1},[Yt,nn[1],ur,tt]),$n=d.useCallback(function(Yn){if(Yt&&Yt(Yn))return!0;if(nn[0]&&cn)return!At(_n,Yn,ur)&&_n.isAfter(cn,Yn);if(rt&&cn)switch(ut){case"quarter":return Hn(Yn)0&&arguments[0]!==void 0?arguments[0]:!1,na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oa=null;pn&&pi&&pi[0]&&pi[1]&&Xn.isAfter(pi[1],pi[0])&&(Oa=pi);var Ha=sr;if(sr&&Object(x.a)(sr)==="object"&&sr.defaultValue){var si=sr.defaultValue;Ha=Object(g.a)(Object(g.a)({},sr),{},{defaultValue:ge(si,gt)||void 0})}var Xi=null;return Va&&(Xi=function(xi,Yi){return Va(xi,Yi,{range:gt?"end":"start"})}),d.createElement(Ht.Provider,{value:{inRange:!0,panelPosition:Ba,rangedValue:bi||_t,hoverRangedValue:Oa}},d.createElement(oe,Object.assign({},se,na,{dateRender:Xi,showTime:Ha,mode:xr[gt],generateConfig:Xn,style:void 0,direction:Kr,disabledDate:gt===0?Vr:nr,disabledTime:function(xi){return Fa?Fa(xi,gt===0?"start":"end"):!1},className:p()(Object(S.a)({},"".concat(Ct,"-panel-focused"),gt===0?!ti:!di)),value:ge(_t,gt),locale:$n,tabIndex:-1,onPanelChange:function(xi,Yi){Nr(je(xr,Yi,gt),je(_t,xi,gt));var Eo=xi;Ba==="right"&&xr[gt]===Yi&&(Eo=mt(Eo,Yi,Xn,-1)),Lr(Eo,gt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var ni=0,Mi=0;gt&&vt.current&&we.current&&pt.current&&(ni=vt.current.offsetWidth+we.current.offsetWidth,pt.current.offsetWidth&&ni>pt.current.offsetWidth&&(Mi=ni));var Ao=Kr==="rtl"?{right:ni}:{left:ni};function lo(){var Ba,na=H(Ct,xr[gt],ar),Oa=ae({prefixCls:Ct,components:Ir,needConfirmButton:fa,okDisabled:!ge(_t,gt)||ga&&ga(_t[gt]),locale:$n,rangeList:za,onOk:function(){ge(_t,gt)&&(qa(_t,gt),la&&la(_t))}});if(Dr!=="time"&&!sr){var Ha=hn(gt),si=mt(Ha,Dr,Xn),Xi=xr[gt],ao=Xi===Dr,xi=Wa(ao?"left":!1,{pickerValue:Ha,onPickerValueChange:function(gi){Lr(gi,gt)}}),Yi=Wa("right",{pickerValue:si,onPickerValueChange:function(gi){Lr(mt(gi,Dr,Xn,-1),gt)}});Kr==="rtl"?Ba=d.createElement(d.Fragment,null,Yi,ao&&xi):Ba=d.createElement(d.Fragment,null,xi,ao&&Yi)}else Ba=Wa();var Eo=d.createElement(d.Fragment,null,d.createElement("div",{className:"".concat(Ct,"-panels")},Ba),(na||Oa)&&d.createElement("div",{className:"".concat(Ct,"-footer")},na,Oa));return tr&&(Eo=tr(Eo)),d.createElement("div",{className:"".concat(Ct,"-panel-container"),style:{marginLeft:Mi},ref:pt,onMouseDown:function(gi){gi.preventDefault()}},Eo)}var Po=d.createElement("div",{className:p()("".concat(Ct,"-range-wrapper"),"".concat(Ct,"-").concat(Dr,"-range-wrapper")),style:{minWidth:La}},d.createElement("div",{className:"".concat(Ct,"-range-arrow"),style:Ao}),lo()),eo;yr&&(eo=d.createElement("span",{className:"".concat(Ct,"-suffix")},yr));var Ei;Or&&(ge(gr,0)&&!on[0]||ge(gr,1)&&!on[1])&&(Ei=d.createElement("span",{onMouseDown:function(na){na.preventDefault(),na.stopPropagation()},onMouseUp:function(na){na.preventDefault(),na.stopPropagation();var Oa=gr;on[0]||(Oa=je(Oa,null,0)),on[1]||(Oa=je(Oa,null,1)),qa(Oa,null),ka(!1,gt)},className:"".concat(Ct,"-clear")},zr||d.createElement("span",{className:"".concat(Ct,"-clear-btn")})));var Mo={size:l(Dr,st[0])},_o=0,Lo=0;vt.current&&Me.current&&we.current&&(gt===0?Lo=vt.current.offsetWidth:(_o=ni,Lo=Me.current.offsetWidth));var Ui=Kr==="rtl"?{right:_o}:{left:_o},Za=function(na,Oa){var Ha=je(_t,na,gt);Oa==="submit"||Oa!=="key"&&!fa?(qa(Ha,gt),gt===0?vo():Ro()):Wr(Ha)};return d.createElement(O.Provider,{value:{operationRef:Ft,hideHeader:Dr==="time",onDateMouseEnter:yo,onDateMouseLeave:so,hideRanges:!0,onSelect:Za,open:pn}},d.createElement(cr,{visible:pn,popupElement:Po,popupStyle:cn,prefixCls:Ct,dropdownClassName:ur,dropdownAlign:fn,getPopupContainer:Hn,transitionName:Mn,range:!0,direction:Kr},d.createElement("div",Object.assign({ref:$e,className:p()(Ct,"".concat(Ct,"-range"),_n,(tt={},Object(S.a)(tt,"".concat(Ct,"-disabled"),on[0]&&on[1]),Object(S.a)(tt,"".concat(Ct,"-focused"),gt===0?yi:ya),Object(S.a)(tt,"".concat(Ct,"-rtl"),Kr==="rtl"),tt)),style:nn,onClick:_i,onMouseDown:ci},be(se)),d.createElement("div",{className:p()("".concat(Ct,"-input"),(rt={},Object(S.a)(rt,"".concat(Ct,"-input-active"),gt===0),Object(S.a)(rt,"".concat(Ct,"-input-placeholder"),!!Gi),rt)),ref:vt},d.createElement("input",Object.assign({id:Yt,disabled:on[0],readOnly:An||!ti,value:Gi||wi,onChange:function(na){$i(na.target.value)},autoFocus:_r,placeholder:ge(Yn,0)||"",ref:Ke},Ci,Mo,{autoComplete:wn}))),d.createElement("div",{className:"".concat(Ct,"-range-separator"),ref:we},Cr),d.createElement("div",{className:p()("".concat(Ct,"-input"),(ut={},Object(S.a)(ut,"".concat(Ct,"-input-active"),gt===1),Object(S.a)(ut,"".concat(Ct,"-input-placeholder"),!!Vi),ut)),ref:Me},d.createElement("input",Object.assign({disabled:on[1],readOnly:An||!di,value:Vi||Ra,onChange:function(na){Sa(na.target.value)},placeholder:ge(Yn,1)||"",ref:De},dr,Mo,{autoComplete:wn}))),d.createElement("div",{className:"".concat(Ct,"-active-bar"),style:Object(g.a)(Object(g.a)({},Ui),{},{width:Lo,position:"absolute"})}),eo,Ei)))}var Dn=function(se){Object(L.a)(rt,se);var tt=Object(U.a)(rt);function rt(){var ut;return Object(Y.a)(this,rt),ut=tt.apply(this,arguments),ut.pickerRef=d.createRef(),ut.focus=function(){ut.pickerRef.current&&ut.pickerRef.current.focus()},ut.blur=function(){ut.pickerRef.current&&ut.pickerRef.current.blur()},ut}return Object(j.a)(rt,[{key:"render",value:function(){return d.createElement(or,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),rt}(d.Component),pr=Dn,Gn=ie.b=ua},onxn:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){"use strict";var j=Y.Pos;function L(i,r){return i.line-r.line||i.ch-r.ch}var U="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",S=U+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+U+"]["+S+"]*)","g");function s(i,r,u,h){this.line=r,this.ch=u,this.cm=i,this.text=i.getLine(r),this.min=h?Math.max(h.from,i.firstLine()):i.firstLine(),this.max=h?Math.min(h.to-1,i.lastLine()):i.lastLine()}function d(i,r){var u=i.cm.getTokenTypeAt(j(i.line,r));return u&&/\btag\b/.test(u)}function w(i){return i.line>=i.max?void 0:(i.ch=0,i.text=i.cm.getLine(++i.line),!0)}function p(i){return i.line<=i.min?void 0:(i.text=i.cm.getLine(--i.line),i.ch=i.text.length,!0)}function a(i){for(;;){var r=i.text.indexOf(">",i.ch);if(r==-1){if(w(i))continue;return}if(!d(i,r+1)){i.ch=r+1;continue}var u=i.text.lastIndexOf("/",r),h=u>-1&&!/\S/.test(i.text.slice(u+1,r));return i.ch=r+1,h?"selfClose":"regular"}}function f(i){for(;;){var r=i.ch?i.text.lastIndexOf("<",i.ch-1):-1;if(r==-1){if(p(i))continue;return}if(!d(i,r+1)){i.ch=r;continue}g.lastIndex=r,i.ch=r;var u=g.exec(i.text);if(u&&u.index==r)return u}}function x(i){for(;;){g.lastIndex=i.ch;var r=g.exec(i.text);if(!r){if(w(i))continue;return}if(!d(i,r.index+1)){i.ch=r.index+1;continue}return i.ch=r.index+r[0].length,r}}function b(i){for(;;){var r=i.ch?i.text.lastIndexOf(">",i.ch-1):-1;if(r==-1){if(p(i))continue;return}if(!d(i,r+1)){i.ch=r;continue}var u=i.text.lastIndexOf("/",r),h=u>-1&&!/\S/.test(i.text.slice(u+1,r));return i.ch=r+1,h?"selfClose":"regular"}}function m(i,r){for(var u=[];;){var h=x(i),y,E=i.line,t=i.ch-(h?h[0].length:0);if(!h||!(y=a(i)))return;if(y=="selfClose")continue;if(h[1]){for(var C=u.length-1;C>=0;--C)if(u[C]==h[2]){u.length=C;break}if(C<0&&(!r||r==h[2]))return{tag:h[2],from:j(E,t),to:j(i.line,i.ch)}}else u.push(h[2])}}function O(i,r){for(var u=[];;){var h=b(i);if(!h)return;if(h=="selfClose"){f(i);continue}var y=i.line,E=i.ch,t=f(i);if(!t)return;if(t[1])u.push(t[2]);else{for(var C=u.length-1;C>=0;--C)if(u[C]==t[2]){u.length=C;break}if(C<0&&(!r||r==t[2]))return{tag:t[2],from:j(i.line,i.ch),to:j(y,E)}}}}Y.registerHelper("fold","xml",function(i,r){for(var u=new s(i,r.line,0);;){var h=x(u);if(!h||u.line!=r.line)return;var y=a(u);if(!y)return;if(!h[1]&&y!="selfClose"){var E=j(u.line,u.ch),t=m(u,h[2]);return t&&L(t.from,E)>0?{from:E,to:t.from}:null}}}),Y.findMatchingTag=function(i,r,u){var h=new s(i,r.line,r.ch,u);if(h.text.indexOf(">")==-1&&h.text.indexOf("<")==-1)return;var y=a(h),E=y&&j(h.line,h.ch),t=y&&f(h);if(!y||!t||L(h,r)>0)return;var C={from:j(h.line,h.ch),to:E,tag:t[2]};return y=="selfClose"?{open:C,close:null,at:"open"}:t[1]?{open:O(h,t[2]),close:C,at:"close"}:(h=new s(i,E.line,E.ch,u),{open:C,close:m(h,t[2]),at:"open"})},Y.findEnclosingTag=function(i,r,u,h){for(var y=new s(i,r.line,r.ch,u);;){var E=O(y,h);if(!E)break;var t=new s(i,r.line,r.ch,u),C=m(t,E.tag);if(C)return{open:E,close:C}}},Y.scanForClosingTag=function(i,r,u,h){var y=new s(i,r.line,r.ch,h?{from:0,to:h}:null);return m(y,u)}})},p5ED:function(Ye,ie,_){"use strict";var Y=_("+L6B"),j=_("2/Rp"),L=_("5Dmo"),U=_("3S7+"),S=_("k1fw"),g=_("9og8"),s=_("tJVT"),d=_("WmNS"),w=_.n(d),p=_("q1tI"),a=_.n(p),f=_("vHTk"),x=_.n(f),b=_("yEEn"),m=_("ZW9T"),O=_("1vsH"),i=_("V0Rq"),r=_("m3rI");ie.a=function(u){var h,y,E,t,C,A,v=u.editOffice,o=v===void 0?"view":v,l=u.name,c=u.data,M=u.theme,P=u.type,R=u.filename,k=u.monacoEditor,I=u.className,F=u.style,V=u.close,W=u.onClose,G=u.hasMask,J=u.disabledDownload,X=u.onImgDimensions,te=u.otherData,ee=Object(p.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),be=Object(s.a)(ee,2),ge=be[0],je=be[1],He=Object(p.useState)(""),nt=Object(s.a)(He,2),Ge=nt[0],he=nt[1],ce=Object(p.useState)(),Ee=Object(s.a)(ce,2),fe=Ee[0],Ne=Ee[1],Ce=window.ENV==="build"?"/react/build":"",xe=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,ze,Le=1024*1024,Fe=10*Le,Pe=Object(p.useRef)();(h=c)!==null&&h!==void 0&&h.startsWith("/api")&&P!=="txt"&&(c=r.a.API_SERVER+c),P==="office"&&(ze=Object(O.P)(c).filesize,ze>Fe&&(P="other")),R&&(k.filename=R),Object(p.useEffect)(function(){var Rt,tn,Qt=(Rt=document.cookie)===null||Rt===void 0||((tn=Rt.replace(/\s/g,""))===null||tn===void 0)?void 0:tn.split(";");Qt==null||Qt.map(function(Cn){var Un=Cn.split("=");Un[0]==="_educoder_session"&&he(Un[1])})},[]),Object(p.useEffect)(function(){P==="office"&&Ve()},[P,c]);var Ve=function(){var Rt=Object(g.a)(w.a.mark(function tn(){var Qt,Cn,Un;return w.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return console.log("data:",c),Qt=c,c.startsWith("http")||(Qt=location.origin+Qt),Cn=new URL(Qt).pathname.split("/").pop(),lt.next=6,Object(i.U)({attachment_id:Cn});case 6:Un=lt.sent,Ne(Un);case 8:case"end":return lt.stop()}},tn)}));return function(){return Rt.apply(this,arguments)}}(),at=function(){if(c.startsWith("http")||c.startsWith("blob:")){At();return}Object(O.x)(R||"educoder",c,R)},At=function(){Object(O.v)(R||"educoder",decodeURIComponent(c))};return a.a.createElement("div",{style:Object(S.a)({},F||{}),className:"".concat(G&&x.a.bgBlack," ").concat(P?x.a.wrp:"hide")},V&&a.a.createElement("div",{className:x.a.close,ref:Pe},!!X&&a.a.createElement(U.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Pe.current}},a.a.createElement("span",{onClick:function(){W(),X()}},a.a.createElement("i",{className:"icon-yulanpizhu"}))),!J&&a.a.createElement(U.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Pe.current}},a.a.createElement("span",{onClick:At},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(U.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Pe.current}},a.a.createElement("span",{className:"",onClick:W},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(x.a[I]," ").concat(I," ").concat(x.a.monaco," ").concat(P==="txt"?"show":"hide")},P==="txt"&&a.a.createElement(m.b,k)),P==="audio"&&a.a.createElement("audio",{src:"".concat(((y=c)===null||y===void 0?void 0:y.indexOf("http://"))>-1||((E=c)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),P==="video"&&a.a.createElement(a.a.Fragment,null,((t=c)===null||t===void 0?void 0:t.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),P==="office"&&fe&&a.a.createElement("iframe",{src:"".concat(Ce,"/office.html?key=").concat(fe.key,"&url=").concat(xe+fe.url,"&callbackUrl=").concat(xe+fe.callbackUrl,"&fileType=").concat(fe.fileType,"&title=").concat(fe.title,"&model=").concat(o,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!J)}),(P==="xlsx"||P==="doc"||P==="pptx"||P==="docx")&&a.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(te.key,"&url=").concat(r.a.API_SERVER+te.url,"&callbackUrl=").concat(r.a.API_SERVER+te.callbackUrl,"&fileType=").concat(te.fileType,"&title=").concat(te.title,"&model=").concat(te.model)}),P==="html"&&a.a.createElement("iframe",{src:c+"&disposition=inline"}),P==="pdf"&&a.a.createElement("embed",{className:x.a.embed,src:c}),P==="image"&&a.a.createElement("img",{src:"".concat(((C=c)===null||C===void 0?void 0:C.indexOf("http://"))>-1||((A=c)===null||A===void 0?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(c)}),P==="other"&&a.a.createElement("div",null,a.a.createElement(j.a,{type:"primary",size:"large",onClick:at},a.a.createElement(b.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),P==="download"&&a.a.createElement(j.a,{type:"primary",size:"large",onClick:at},a.a.createElement(b.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Ye,ie,_){},pmY6:function(Ye,ie,_){"use strict";_.d(ie,"g",function(){return S}),_.d(ie,"f",function(){return g}),_.d(ie,"e",function(){return s}),_.d(ie,"h",function(){return d}),_.d(ie,"b",function(){return w}),_.d(ie,"a",function(){return p}),_.d(ie,"d",function(){return a}),_.d(ie,"c",function(){return f});var Y=!1,j="__is_disposable_tracked__";function L(x){if(!Y)return;if(x&&x!==p.None)try{x[j]=!0}catch(b){}}function U(x){if(!Y)return x;var b=new Error("Potentially leaked disposable").stack;return setTimeout(function(){x[j]||console.log(b)},3e3),x}function S(x){return typeof x.dispose=="function"&&x.dispose.length===0}function g(x){return Array.isArray(x)?(x.forEach(function(b){b&&(L(b),b.dispose())}),[]):x?(L(x),x.dispose(),x):void 0}function s(){for(var x=[],b=0;b=0&&(mt=Ve[Un],mt.textAlign==="right");)l(J,X,mt,ee,At,ze,Cn,"right"),Rt-=mt.width,Cn-=mt.width,Un--;for(Qt+=(ge-(Qt-xe)-(Le-Cn)-Rt)/2;tn<=Un;)mt=Ve[tn],l(J,X,mt,ee,At,ze,Qt+mt.width/2,"center"),Qt+=mt.width,tn++;ze+=At}}function o(J,X,te,ee,be){if(te&&X.textRotation){var ge=X.textOrigin;ge==="center"?(ee=te.width/2+te.x,be=te.height/2+te.y):ge&&(ee=ge[0]+te.x,be=ge[1]+te.y),J.translate(ee,be),J.rotate(-X.textRotation),J.translate(-ee,-be)}}function l(J,X,te,ee,be,ge,je,He){var nt=ee.rich[te.styleName]||{};nt.text=te.text;var Ge=te.textVerticalAlign,he=ge+be/2;Ge==="top"?he=ge+te.height/2:Ge==="bottom"&&(he=ge+be-te.height/2),!te.isLineHolder&&c(nt)&&M(J,X,nt,He==="right"?je-te.width:He==="center"?je-te.width/2:je,he-te.height/2,te.width,te.height);var ce=te.textPadding;ce&&(je=W(je,He,ce),he-=te.height/2-ce[2]-te.textHeight/2),k(X,"shadowBlur",L(nt.textShadowBlur,ee.textShadowBlur,0)),k(X,"shadowColor",nt.textShadowColor||ee.textShadowColor||"transparent"),k(X,"shadowOffsetX",L(nt.textShadowOffsetX,ee.textShadowOffsetX,0)),k(X,"shadowOffsetY",L(nt.textShadowOffsetY,ee.textShadowOffsetY,0)),k(X,"textAlign",He),k(X,"textBaseline","middle"),k(X,"font",te.font||m);var Ee=I(nt.textStroke||ee.textStroke,Ne),fe=F(nt.textFill||ee.textFill),Ne=j(nt.textStrokeWidth,ee.textStrokeWidth);Ee&&(k(X,"lineWidth",Ne),k(X,"strokeStyle",Ee),X.strokeText(te.text,je,he)),fe&&(k(X,"fillStyle",fe),X.fillText(te.text,je,he))}function c(J){return!!(J.textBackgroundColor||J.textBorderWidth&&J.textBorderColor)}function M(J,X,te,ee,be,ge,je){var He=te.textBackgroundColor,nt=te.textBorderWidth,Ge=te.textBorderColor,he=g(He);if(k(X,"shadowBlur",te.textBoxShadowBlur||0),k(X,"shadowColor",te.textBoxShadowColor||"transparent"),k(X,"shadowOffsetX",te.textBoxShadowOffsetX||0),k(X,"shadowOffsetY",te.textBoxShadowOffsetY||0),he||nt&&Ge){X.beginPath();var ce=te.textBorderRadius;ce?w.buildPath(X,{x:ee,y:be,width:ge,height:je,r:ce}):X.rect(ee,be,ge,je),X.closePath()}if(he)if(k(X,"fillStyle",He),te.fillOpacity!=null){var Ee=X.globalAlpha;X.globalAlpha=te.fillOpacity*te.opacity,X.fill(),X.globalAlpha=Ee}else X.fill();else if(s(He)){var fe=He.image;fe=p.createOrUpdateImage(fe,null,J,P,He),fe&&p.isImageReady(fe)&&X.drawImage(fe,ee,be,ge,je)}if(nt&&Ge)if(k(X,"lineWidth",nt),k(X,"strokeStyle",Ge),te.strokeOpacity!=null){var Ee=X.globalAlpha;X.globalAlpha=te.strokeOpacity*te.opacity,X.stroke(),X.globalAlpha=Ee}else X.stroke()}function P(J,X){X.image=J}function R(J,X,te,ee){var be=te.x||0,ge=te.y||0,je=te.textAlign,He=te.textVerticalAlign;if(ee){var nt=te.textPosition;if(nt instanceof Array)be=ee.x+V(nt[0],ee.width),ge=ee.y+V(nt[1],ee.height);else{var Ge=X&&X.calculateTextPosition?X.calculateTextPosition(u,te,ee):d.calculateTextPosition(u,te,ee);be=Ge.x,ge=Ge.y,je=je||Ge.textAlign,He=He||Ge.textVerticalAlign}var he=te.textOffset;he&&(be+=he[0],ge+=he[1])}return J=J||{},J.baseX=be,J.baseY=ge,J.textAlign=je,J.textVerticalAlign=He,J}function k(J,X,te){return J[X]=a(J,X,te),J[X]}function I(J,X){return J==null||X<=0||J==="transparent"||J==="none"?null:J.image||J.colorStops?"#000":J}function F(J){return J==null||J==="none"?null:J.image||J.colorStops?"#000":J}function V(J,X){return typeof J=="string"?J.lastIndexOf("%")>=0?parseFloat(J)/100*X:parseFloat(J):J}function W(J,X,te){return X==="right"?J-te[1]:X==="center"?J+te[3]/2-te[1]/2:J+te[3]}function G(J,X){return J!=null&&(J||X.textBackgroundColor||X.textBorderWidth&&X.textBorderColor||X.textPadding)}ie.normalizeTextStyle=y,ie.renderText=t,ie.getBoxPosition=R,ie.getStroke=I,ie.getFill=F,ie.parsePercent=V,ie.needDrawText=G},qH13:function(Ye,ie,_){var Y=_("ItGF"),j=_("QBsz"),L=j.applyTransform,U=_("mFDi"),S=_("Qe9p"),g=_("6GrX"),s=_("pzxd"),d=_("ni6a"),w=_("Gev7"),p=_("Dagg"),a=_("dqUG"),f=_("y+Vt"),x=_("IMiH"),b=_("QuXc"),m=_("06Qe"),O=x.CMD,i=Math.round,r=Math.sqrt,u=Math.abs,h=Math.cos,y=Math.sin,E=Math.max;if(!Y.canvasSupported){var t=",",C="progid:DXImageTransform.Microsoft",A=21600,v=A/2,o=1e5,l=1e3,c=function(Fe){Fe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Fe.coordsize=A+","+A,Fe.coordorigin="0,0"},M=function(Fe){return String(Fe).replace(/&/g,"&").replace(/"/g,""")},P=function(Fe,Pe,Ve){return"rgb("+[Fe,Pe,Ve].join(",")+")"},R=function(Fe,Pe){Pe&&Fe&&Pe.parentNode!==Fe&&Fe.appendChild(Pe)},k=function(Fe,Pe){Pe&&Fe&&Pe.parentNode===Fe&&Fe.removeChild(Pe)},I=function(Fe,Pe,Ve){return(parseFloat(Fe)||0)*o+(parseFloat(Pe)||0)*l+Ve},F=s.parsePercent,V=function(Fe,Pe,Ve){var at=S.parse(Pe);Ve=+Ve,isNaN(Ve)&&(Ve=1),at&&(Fe.color=P(at[0],at[1],at[2]),Fe.opacity=Ve*at[3])},W=function(Fe){var Pe=S.parse(Fe);return[P(Pe[0],Pe[1],Pe[2]),Pe[3]]},G=function(Fe,Pe,Ve){var at=Pe.fill;if(at!=null)if(at instanceof b){var At,Rt=0,tn=[0,0],Qt=0,Cn=1,Un=Ve.getBoundingRect(),mt=Un.width,lt=Un.height;if(at.type==="linear"){At="gradient";var Ht=Ve.transform,sn=[at.x*mt,at.y*lt],Tt=[at.x2*mt,at.y2*lt];Ht&&(L(sn,sn,Ht),L(Tt,Tt,Ht));var wt=Tt[0]-sn[0],Qe=Tt[1]-sn[1];Rt=Math.atan2(wt,Qe)*180/Math.PI,Rt<0&&(Rt+=360),Rt<1e-6&&(Rt=0)}else{At="gradientradial";var sn=[at.x*mt,at.y*lt],Ht=Ve.transform,Je=Ve.scale,Xe=mt,Oe=lt;tn=[(sn[0]-Un.x)/Xe,(sn[1]-Un.y)/Oe],Ht&&L(sn,sn,Ht),Xe/=Je[0]*A,Oe/=Je[1]*A;var Ae=E(Xe,Oe);Qt=2*0/Ae,Cn=2*at.r/Ae-Qt}var ye=at.colorStops.slice();ye.sort(function(Lt,Be){return Lt.offset-Be.offset});for(var Se=ye.length,dt=[],et=[],xt=0;xt=2){var yt=dt[0][0],mn=dt[1][0],pe=dt[0][1]*Pe.opacity,Gt=dt[1][1]*Pe.opacity;Fe.type=At,Fe.method="none",Fe.focus="100%",Fe.angle=Rt,Fe.color=yt,Fe.color2=mn,Fe.colors=et.join(","),Fe.opacity=Gt,Fe.opacity2=pe}At==="radial"&&(Fe.focusposition=tn.join(","))}else V(Fe,at,Pe.opacity)},J=function(Fe,Pe){Pe.lineDash&&(Fe.dashstyle=Pe.lineDash.join(" ")),Pe.stroke!=null&&!(Pe.stroke instanceof b)&&V(Fe,Pe.stroke,Pe.opacity)},X=function(Fe,Pe,Ve,at){var At=Pe==="fill",Rt=Fe.getElementsByTagName(Pe)[0];Ve[Pe]!=null&&Ve[Pe]!=="none"&&(At||!At&&Ve.lineWidth)?(Fe[At?"filled":"stroked"]="true",Ve[Pe]instanceof b&&k(Fe,Rt),Rt||(Rt=m.createNode(Pe)),At?G(Rt,Ve,at):J(Rt,Ve),R(Fe,Rt)):(Fe[At?"filled":"stroked"]="false",k(Fe,Rt))},te=[[],[],[]],ee=function(Fe,Pe){var Ve=O.M,at=O.C,At=O.L,Rt=O.A,tn=O.Q,Qt=[],Cn,Un,mt,lt,Ht,sn,Tt=Fe.data,wt=Fe.len();for(lt=0;lt.01?Be&&(ot+=270/A):Math.abs(Xt-yt)<1e-4?Be&&otDt?Je-=270/A:Je+=270/A:Be&&Xtyt?Qe+=270/A:Qe-=270/A),Qt.push(Pt,i(((Dt-mn)*et+Se)*A-v),t,i(((yt-pe)*xt+dt)*A-v),t,i(((Dt+mn)*et+Se)*A-v),t,i(((yt+pe)*xt+dt)*A-v),t,i((ot*et+Se)*A-v),t,i((Xt*xt+dt)*A-v),t,i((Qe*et+Se)*A-v),t,i((Je*xt+dt)*A-v)),Ht=Qe,sn=Je;break;case O.R:var $t=te[0],Zt=te[1];$t[0]=Tt[lt++],$t[1]=Tt[lt++],Zt[0]=$t[0]+Tt[lt++],Zt[1]=$t[1]+Tt[lt++],Pe&&(L($t,$t,Pe),L(Zt,Zt,Pe)),$t[0]=i($t[0]*A-v),Zt[0]=i(Zt[0]*A-v),$t[1]=i($t[1]*A-v),Zt[1]=i(Zt[1]*A-v),Qt.push(" m ",$t[0],t,$t[1]," l ",Zt[0],t,$t[1]," l ",Zt[0],t,Zt[1]," l ",$t[0],t,Zt[1]);break;case O.Z:Qt.push(" x ")}if(Cn>0){Qt.push(Un);for(var bt=0;btnt&&(He=0,je={});var Ve=Ge.style,at;try{Ve.font=Fe,at=Ve.fontFamily.split(",")[0]}catch(At){}Pe={style:Ve.fontStyle||ge,variant:Ve.fontVariant||ge,weight:Ve.fontWeight||ge,size:parseFloat(Ve.fontSize||12)|0,family:at||"Microsoft YaHei"},je[Fe]=Pe,He++}return Pe},ce;g.$override("measureText",function(Fe,Pe){var Ve=m.doc;ce||(ce=Ve.createElement("div"),ce.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(ce));try{ce.style.font=Pe}catch(at){}return ce.innerHTML="",ce.appendChild(Ve.createTextNode(Fe)),{width:ce.offsetWidth}});for(var Ee=new U,fe=function(Fe,Pe,Ve,at){var At=this.style;this.__dirty&&s.normalizeTextStyle(At,!0);var Rt=At.text;if(Rt!=null&&(Rt+=""),!Rt)return;if(At.rich){var tn=g.parseRichText(Rt,At);Rt=[];for(var Qt=0;Qt=0&&(this.delFromStorage(d),this._roots.splice(f,1),d instanceof L&&d.delChildrenFromStorage(this))},addToStorage:function(d){return d&&(d.__storage=this,d.dirty(!1)),this},delFromStorage:function(d){return d&&(d.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:S};var s=g;Ye.exports=s},rA99:function(Ye,ie,_){var Y=_("y+Vt"),j=_("QBsz"),L=_("Sj9i"),U=L.quadraticSubdivide,S=L.cubicSubdivide,g=L.quadraticAt,s=L.cubicAt,d=L.quadraticDerivativeAt,w=L.cubicDerivativeAt,p=[];function a(x,b,m){var O=x.cpx2,i=x.cpy2;return O===null||i===null?[(m?w:s)(x.x1,x.cpx1,x.cpx2,x.x2,b),(m?w:s)(x.y1,x.cpy1,x.cpy2,x.y2,b)]:[(m?d:g)(x.x1,x.cpx1,x.x2,b),(m?d:g)(x.y1,x.cpy1,x.y2,b)]}var f=Y.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(x,b){var m=b.x1,O=b.y1,i=b.x2,r=b.y2,u=b.cpx1,h=b.cpy1,y=b.cpx2,E=b.cpy2,t=b.percent;if(t===0)return;x.moveTo(m,O),y==null||E==null?(t<1&&(U(m,u,i,t,p),u=p[1],i=p[2],U(O,h,r,t,p),h=p[1],r=p[2]),x.quadraticCurveTo(u,h,i,r)):(t<1&&(S(m,u,y,i,t,p),u=p[1],y=p[2],i=p[3],S(O,h,E,r,t,p),h=p[1],E=p[2],r=p[3]),x.bezierCurveTo(u,h,y,E,i,r))},pointAt:function(x){return a(this.shape,x,!1)},tangentAt:function(x){var b=a(this.shape,x,!0);return j.normalize(b,b)}});Ye.exports=f},"rAM+":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return j});var Y=_("Qw5x");function j(L,U){var S;if(typeof Symbol=="undefined"||L[Symbol.iterator]==null){if(Array.isArray(L)||(S=Object(Y.a)(L))||U&&L&&typeof L.length=="number"){S&&(L=S);var g=0,s=function(){};return{s,n:function(){return g>=L.length?{done:!0}:{done:!1,value:L[g++]}},e:function(f){throw f},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,w=!1,p;return{s:function(){S=L[Symbol.iterator]()},n:function(){var f=S.next();return d=f.done,f},e:function(f){w=!0,p=f},f:function(){try{!d&&S.return!=null&&S.return()}finally{if(w)throw p}}}}},rUJ1:function(Ye,ie){const _=/[&<>"']/,Y=/[&<>"']/g,j=/[<>"']|&(?!#?\w+;)/,L=/[<>"']|&(?!#?\w+;)/g,U={"&":"&","<":"<",">":">",'"':""","'":"'"},S=A=>U[A];function g(A,v){if(v){if(_.test(A))return A.replace(Y,S)}else if(j.test(A))return A.replace(L,S);return A}const s=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function d(A){return A.replace(s,(v,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const w=/(^|[^\[])\^/g;function p(A,v){A=A.source||A,v=v||"";const o={replace:(l,c)=>(c=c.source||c,c=c.replace(w,"$1"),A=A.replace(l,c),o),getRegex:()=>new RegExp(A,v)};return o}const a=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(A,v,o){if(A){let l;try{l=decodeURIComponent(d(o)).replace(a,"").toLowerCase()}catch(c){return null}if(l.indexOf("javascript:")===0||l.indexOf("vbscript:")===0||l.indexOf("data:")===0)return null}v&&!f.test(o)&&(o=r(v,o));try{o=encodeURI(o).replace(/%25/g,"%")}catch(l){return null}return o}const b={},m=/^[^:]+:\/*[^/]*$/,O=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(A,v){b[" "+A]||(m.test(A)?b[" "+A]=A+"/":b[" "+A]=E(A,"/",!0)),A=b[" "+A];const o=A.indexOf(":")===-1;return v.substring(0,2)==="//"?o?v:A.replace(O,"$1")+v:v.charAt(0)==="/"?o?v:A.replace(i,"$1")+v:A+v}const u={exec:function(){}};function h(A){let v=1,o,l;for(;v{let k=!1,I=P;for(;--I>=0&&R[I]==="\\";)k=!k;return k?"|":" |"}),l=o.split(/ \|/);let c=0;if(l.length>v)l.splice(v);else for(;l.length0&&Pe[0]!==void 0?Pe[0]:0,console.log(nt),at.next=4,Object(m.a)("/api/exercises/".concat(nt.categoryId,"/preview_random_exercise.json"),{method:"get",params:{num:Le}});case 4:Fe=at.sent,G(!1),He(ce(Fe));case 7:case"end":return at.stop()}},ze)}));return function(){return xe.apply(this,arguments)}}(),ce=function(ze){var Le={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!ze)return;var Fe=ze||{},Pe=Fe.exam,Ve=Fe.single_questions,at=Fe.multiple_questions,At=Fe.judgement_questions,Rt=Fe.program_questions,tn=Fe.completion_questions,Qt=Fe.subjective_questions,Cn=Fe.practical_questions,Un=Fe.combination_questions,mt=[Object(L.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},Ve),Object(L.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},at),Object(L.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},tn),Object(L.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},At),Object(L.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},Qt),Object(L.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},Rt),Object(L.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},Cn),Object(L.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},Un)],lt=[],Ht=0,sn=0,Tt=mt.filter(function(wt){return wt.questions_count>0}).map(function(wt,Qe){var Je;return(Je=wt.questions)===null||Je===void 0||Je.forEach(function(Xe){lt.push(Xe.id),Ht=Ht+Xe.score,sn=sn+1}),Object(L.a)(Object(L.a)({},wt),{number:Le[Qe+1]})});return{all_questions_count:sn,all_score:Ht,questionList:Tt,ids:lt,exam:Pe}},Ee=function(){a.d.push("/classrooms/".concat(nt.coursesId,"/exercise"))},fe=function(){alert("\u4FDD\u5B58")},Ne=function(){var xe=Object(U.a)(s.a.mark(function ze(Le,Fe){var Pe,Ve,at;return s.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(m.a)("/api/exercises/".concat(nt.categoryId,"/toggle_random_question.json"),{method:"post",body:{question_id:Le==null?void 0:Le.single_question_id}});case 2:Pe=Rt.sent,Pe!=null&&Pe.question&&(at=Object(O.cloneDeep)(je),at.questionList=at==null||((Ve=at.questionList)===null||Ve===void 0)?void 0:Ve.map(function(tn){if(tn.type===Fe.type){var Qt=Object(O.cloneDeep)(tn==null?void 0:tn.questions);return Qt.splice(Fe.index,1,Pe==null?void 0:Pe.question),Object(L.a)(Object(L.a)({},tn),{},{questions:Qt})}return tn}),He(at));case 4:case"end":return Rt.stop()}},ze)}));return function(Le,Fe){return xe.apply(this,arguments)}}(),Ce=function(){var xe=Object(U.a)(s.a.mark(function ze(Le){return s.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:document.body.scrollIntoView(),he(Le),ee(Le);case 3:case"end":return Pe.stop()}},ze)}));return function(Le){return xe.apply(this,arguments)}}();return console.log(Object(p.h)(),"location333"),w.a.createElement("section",{className:x.a.wrap},w.a.createElement(j.a,{loading:W,active:!0,paragraph:{rows:5}},((E=Object(p.h)())===null||E===void 0||((t=E.pathname)===null||t===void 0)?void 0:t.includes("preview"))&&w.a.createElement("div",{className:x.a.crumbs},w.a.createElement("b",null),w.a.createElement("span",{className:"current",onClick:function(){return a.d.push("/classrooms/".concat(nt.coursesId,"/exercise"))}},"".concat(Ge==null||((C=Ge.course)===null||C===void 0)?void 0:C.course_name,">")),w.a.createElement("span",{className:"current",onClick:function(){return a.d.push("/classrooms/".concat(nt.coursesId,"/exercise"))}},"\u8BD5\u5377\u5217\u8868>"),w.a.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),w.a.createElement(b.a,{loading:k,submit:fe,goBack:Ee,data:je,selectValue:te,editPreview:!0,onExchange:Ne,onSkipExamination:Ce})))};ie.default=Object(a.a)(function(u){var h=u.paperlibrary,y=u.user,E=u.globalSetting;return{paperlibrary:h,user:y,globalSetting:E}})(r)},sR1s:function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return U}),_.d(ie,"a",function(){return S}),_.d(ie,"c",function(){return g}),_.d(ie,"d",function(){return s});var Y=_("U8pU"),j="RC_TABLE_KEY";function L(d){return d==null?[]:Array.isArray(d)?d:[d]}function U(d,w){if(!w&&typeof w!="number")return d;for(var p=L(w),a=d,f=0;f-1)){var b=U.parse(x)[3],m=U.toHex(x);f.setAttribute("stop-color","#"+m),f.setAttribute("stop-opacity",b)}else f.setAttribute("stop-color",w[p].color);d.appendChild(f)}s._dom=d},S.prototype.markUsed=function(s){if(s.style){var d=s.style.fill;d&&d._dom&&Y.prototype.markUsed.call(this,d._dom),d=s.style.stroke,d&&d._dom&&Y.prototype.markUsed.call(this,d._dom)}};var g=S;Ye.exports=g},sbIO:function(Ye,ie,_){"use strict";var Y=_("DjyN"),j=_("NUBc"),L=_("5Dmo"),U=_("3S7+"),S=_("/zsF"),g=_("PArb"),s=_("Q9mQ"),d=_("diRs"),w=_("+L6B"),p=_("2/Rp"),a=_("5NDa"),f=_("5rEg"),x=_("miYZ"),b=_("tsqr"),m=_("9og8"),O=_("giR+"),i=_("fyUT"),r=_("2qtc"),u=_("kLXV"),h=_("tJVT"),y=_("WmNS"),E=_.n(y),t=_("q1tI"),C=_.n(t),A=_("PsQE"),v=_.n(A),o=_("0eGx"),l=_.n(o),c=_("9Bee"),M=_("Ty5D"),P=_("9kvl"),R=_("ErOA"),k=_("+yhJ"),I=_.n(k),F=_("RZ/O"),V=_.n(F),W=_("LvDl"),G=_("6K3P"),J=_.n(G),X=_("sRBo"),te=_("kaz8"),ee=_("oBTY"),be=_("PpiC"),ge=_("Ot1p"),je=_("kqOp"),He=_("7qnI"),nt=_("1vsH"),Ge=_("PGNT"),he=_.n(Ge),ce=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ee=function(Qe,Je){var Xe=Qe.globalSetting,Oe=Qe.loading,Ae=Qe.dispatch,ye=Qe.isEdit,Se=Qe.editData,dt=Object(be.a)(Qe,["globalSetting","loading","dispatch","isEdit","editData"]),et=Object(t.useState)(""),xt=Object(h.a)(et,2),xn=xt[0],Dt=xt[1],yt=Object(t.useState)(""),mn=Object(h.a)(yt,2),pe=mn[0],Gt=mn[1],Lt=Object(t.useState)([]),Be=Object(h.a)(Lt,2),ot=Be[0],Xt=Be[1],Pt=Object(t.useState)(""),$t=Object(h.a)(Pt,2),Zt=$t[0],bt=$t[1],ft=Object(t.useState)(),Nt=Object(h.a)(ft,2),jt=Nt[0],bn=Nt[1],Te=Object(t.useState)(!1),ve=Object(h.a)(Te,2),Q=ve[0],$=ve[1];Object(t.useEffect)(function(){if(!Se||!ye)return;Dt(Se==null?void 0:Se.name),Gt(Se==null?void 0:Se.analysis),bn(Se==null?void 0:Se.is_ordered),$(!0)},[Se]),Object(t.useEffect)(function(){if(!Q)return;var St=Se==null?void 0:Se.standard_answer.map(function(an){return an.answer_text});Xt(St),$(!1)},[Q]),Object(t.useImperativeHandle)(Je,function(){return{onSave:re,Clear:de}});var re=function(){var an=[],Pn=!1;return xn?(ot.forEach(function(dn,jn){an.push({position:jn+1,answer_text:[]}),dn.forEach(function(Bn,ne){an[jn].answer_text.push(Bn),(!Bn||!Object(nt.Z)(Bn,1e4))&&(bt("".concat(jn,"-").concat(ne)),b.b.info(Bn?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Pn=!0)})}),Pn?!1:(an==null?void 0:an.length)>20?(b.b.warn("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:xn,analysis:pe,standard_answers:an,is_ordered:jt}):(b.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},de=function(){Dt(""),Gt(""),Xt([]),bn(!1)},Ue=function(an,Pn,dn){var jn=ot.slice();if(Pn&&jn.splice(an,Pn),dn)for(var Bn=0;Bn1&&C.a.createElement("span",null,C.a.createElement(te.a,{checked:jt,onChange:function(an){return bn(an.target.checked)},className:"".concat(he.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),C.a.createElement("span",{className:"".concat(he.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pe,onChange:function(an){return Gt(an)}}))},fe=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(Ee)),Ne=_("7Kak"),Ce=_("9yH6"),xe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ze=function(Qe,Je){var Xe=Qe.globalSetting,Oe=Qe.loading,Ae=Qe.editData,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["globalSetting","loading","editData","dispatch","onRef","isEdit"]),xn=Object(t.useState)(),Dt=Object(h.a)(xn,2),yt=Dt[0],mn=Dt[1],pe=Object(t.useState)(""),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)(""),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1];Object(t.useEffect)(function(){if(!Ae||!et)return;Be(Ae==null?void 0:Ae.name),$t(Ae==null?void 0:Ae.analysis);var ft=Ae==null?void 0:Ae.choices.find(function(Nt){return Nt.is_answer});mn(ft.choice_text==="\u6B63\u786E"?"0":"1")},[Ae]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Zt,Clear:bt}});var Zt=function(){if(!Lt)return b.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!yt)return b.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;var Nt=[{choice_text:"\u6B63\u786E",is_answer:yt==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:yt==="1"?1:0}];return{name:Lt,choices:Nt,analysis:Pt}},bt=function(){Be(""),$t(""),mn("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Lt,onChange:function(Nt){return Be(Nt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),C.a.createElement(Ce.a.Group,{buttonStyle:"solid",value:yt,onChange:function(Nt){return mn(Nt.target.value)}},C.a.createElement(Ce.a.Button,{value:"0",className:"".concat(he.a.radio," mr40")},"\u6B63\u786E"),C.a.createElement(Ce.a.Button,{value:"1",className:he.a.radio},"\u9519\u8BEF")),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Pt,onChange:function(Nt){return $t(Nt)}}))},Le=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(ze)),Fe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pe=function(Qe,Je){var Xe=Qe.editData,Oe=Qe.globalSetting,Ae=Qe.loading,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),xn=Object(t.useState)([]),Dt=Object(h.a)(xn,2),yt=Dt[0],mn=Dt[1],pe=Object(t.useState)(),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)([]),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1],Zt=Object(t.useState)(""),bt=Object(h.a)(Zt,2),ft=bt[0],Nt=bt[1],jt=Object(t.useState)(""),bn=Object(h.a)(jt,2),Te=bn[0],ve=bn[1];Object(t.useEffect)(function(){mn(["","","",""])},[]),Object(t.useEffect)(function(){if(!Xe||!et)return;Nt(Xe==null?void 0:Xe.name),ve(Xe==null?void 0:Xe.analysis),mn(Xe==null?void 0:Xe.choices.map(function(de){return de.choice_text}));var re=[];Xe==null||Xe.choices.map(function(de,Ue){de.is_answer&&re.push(Ue)}),$t(re)},[Xe]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Q,Clear:$}});var Q=function(){if(!ft)return b.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var de=yt.findIndex(function(it){return!it});if(de>-1)return b.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Fe[de]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(!Pt.length)return b.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Pt.length<2)return b.b.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;var Ue=yt.map(function(it,Mt){return{choice_text:it,is_answer:Pt.includes(Mt)?1:0}});return{name:ft,choices:Ue,analysis:Te}},$=function(){mn(["","","",""]),Nt(""),ve(""),$t("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ft,onChange:function(de){return Nt(de)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),yt.map(function(re,de){return C.a.createElement("div",{className:he.a.choiceWrap,key:de},C.a.createElement(U.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},C.a.createElement("div",{className:"".concat(he.a.answer," ").concat(Pt.includes(de)?he.a.activeAnswer:""),onClick:function(){Pt.includes(de)?$t(Pt.filter(function(it){return it!==de})):$t([].concat(Object(ee.a)(Pt),[de]))}},Fe[de])),C.a.createElement("div",{className:he.a.editorWrap},Lt===de?C.a.createElement(ge.a,{id:"single-question-option-".concat(de),watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:re,onChange:function(it){yt[de]=it,mn(yt)}}):C.a.createElement("div",{className:he.a.htmlWrap,onClick:function(){return Be(de)}},C.a.createElement(c.a,{value:re}))),de>1&&C.a.createElement(U.a,{title:"\u5220\u9664"},C.a.createElement("i",{className:"".concat(he.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){mn(yt.filter(function(it,Mt){return Mt!==de})),Pt.includes(de)?$t(Pt.filter(function(it){return it!==de})):$t([].concat(Object(ee.a)(Pt),[de]))}})),de<7&&de===yt.length-1&&C.a.createElement(U.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},C.a.createElement("i",{className:"".concat(he.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return mn([].concat(Object(ee.a)(yt),[""]))}})))}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Te,onChange:function(de){return ve(de)}}))},Ve=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(Pe)),at=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],At=function(Qe,Je){var Xe=Qe.editData,Oe=Qe.globalSetting,Ae=Qe.loading,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),xn=Object(t.useState)([]),Dt=Object(h.a)(xn,2),yt=Dt[0],mn=Dt[1],pe=Object(t.useState)(),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)(),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1],Zt=Object(t.useState)(""),bt=Object(h.a)(Zt,2),ft=bt[0],Nt=bt[1],jt=Object(t.useState)(""),bn=Object(h.a)(jt,2),Te=bn[0],ve=bn[1];Object(t.useEffect)(function(){mn(["","","",""])},[]),Object(t.useEffect)(function(){if(!Xe||!et)return;Nt(Xe==null?void 0:Xe.name),ve(Xe==null?void 0:Xe.analysis),mn(Xe==null?void 0:Xe.choices.map(function(re){return re.choice_text})),$t(Xe==null?void 0:Xe.choices.findIndex(function(re){return re.is_answer}))},[Xe]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Q,Clear:$}});var Q=function(){if(!ft)return b.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var de=yt.findIndex(function(it){return!it});if(de>-1)return b.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(at[de]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(console.log("activeAnswer: ",Pt),!(typeof Pt=="number"))return b.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;var Ue=yt.map(function(it,Mt){return{choice_text:it,is_answer:Pt===Mt?1:0}});return{name:ft,choices:Ue,analysis:Te}},$=function(){mn(["","","",""]),Nt(""),ve(""),$t("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ft,onChange:function(de){return Nt(de)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),yt.map(function(re,de){return C.a.createElement("div",{className:he.a.choiceWrap,key:de},C.a.createElement(U.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},C.a.createElement("div",{className:"".concat(he.a.answer," ").concat(Pt===de?he.a.activeAnswer:""),onClick:function(){return $t(de)}},at[de])),C.a.createElement("div",{className:he.a.editorWrap},Lt===de?C.a.createElement(ge.a,{id:"single-question-option-".concat(de),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:re,onChange:function(it){yt[de]=it,mn(yt)}}):C.a.createElement("div",{className:he.a.htmlWrap,onClick:function(){return Be(de)}},C.a.createElement(c.a,{value:re}))),de>1&&C.a.createElement(U.a,{title:"\u5220\u9664"},C.a.createElement("i",{className:"".concat(he.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){mn(yt.filter(function(it,Mt){return Mt!==de})),de===Pt&&$t(null)}})),de<7&&de===yt.length-1&&C.a.createElement(U.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},C.a.createElement("i",{className:"".concat(he.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return mn([].concat(Object(ee.a)(yt),[""]))}})))}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Te,onChange:function(de){return ve(de)}}))},Rt=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(At)),tn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Qt=function(Qe,Je){var Xe=Qe.editData,Oe=Qe.globalSetting,Ae=Qe.loading,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),xn=Object(t.useState)(""),Dt=Object(h.a)(xn,2),yt=Dt[0],mn=Dt[1],pe=Object(t.useState)(""),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)(""),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1];Object(t.useEffect)(function(){var ft;if(!Xe||!et)return;mn(Xe==null?void 0:Xe.name),Be(Xe==null?void 0:Xe.analysis),$t(Xe==null||((ft=Xe.answer_texts)===null||ft===void 0)?void 0:ft[0])},[Xe]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Zt,Clear:bt}});var Zt=function(){return yt?Pt?{name:yt,answer_texts:[Pt],analysis:Lt}:(b.b.info("\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848"),!1):(b.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},bt=function(){mn(""),Be(""),$t("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:yt,onChange:function(Nt){return mn(Nt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),C.a.createElement(ge.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Pt,onChange:function(Nt){return $t(Nt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Lt,onChange:function(Nt){return Be(Nt)}}))},Cn=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(Qt)),Un=_("k1fw"),mt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],lt=function(Qe,Je){var Xe=Qe.globalSetting,Oe=Qe.loading,Ae=Qe.dispatch,ye=Qe.editData,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["globalSetting","loading","dispatch","editData","onRef","isEdit"]),xn=Object(t.useState)(""),Dt=Object(h.a)(xn,2),yt=Dt[0],mn=Dt[1],pe=Object(t.useState)([]),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1];console.log(Lt),Object(t.useEffect)(function(){var Zt;if(!ye||!et)return;mn(ye==null?void 0:ye.name);var bt=ye==null||((Zt=ye.sub_item_banks)===null||Zt===void 0)?void 0:Zt.map(function(ft){var Nt,jt,bn;return Object(Un.a)(Object(Un.a)({},ft),{},{id:ft.id,open:!1,qusList:ft==null||((Nt=ft.choices)===null||Nt===void 0)?void 0:Nt.map(function(Te){return Te.choice_text}),activeQusEditor:null,qusAnswer:(jt=[ft==null||((bn=ft.choices)===null||bn===void 0)?void 0:bn.findIndex(function(Te){return Te.is_answer})])===null||jt===void 0?void 0:jt.filter(function(Te){return Te!==-1})})});Be(bt)},[ye]),Object(t.useImperativeHandle)(Je,function(){return{onSave:ot,Clear:Xt}});var ot=function(){if(!yt)return b.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(Lt.length===0)return b.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),!1;for(var bt=0;bt-1)return b.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(bt+1,"\u5C0F\u9898").concat(mt[jt],"\u9009\u9879\u7684\u5185\u5BB9")),!1;if(!(Nt!=null&&Nt.qusAnswer.length))return b.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(bt+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),!1}var bn=Lt.map(function(Te){return{id:Te.id>1?Te.id:null,name:Te.name,item_type:Te.item_type,analysis:Te.analysis,choices:Te.qusList.map(function(ve,Q){return{choice_text:ve,is_answer:Te.qusAnswer[0]===Q?1:0}})}});return{name:yt,sub_item_banks:bn}},Xt=function(){mn(""),Be([])},Pt=function(){var bt={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};Be(Lt.concat(bt))},$t=function(bt,ft,Nt){var jt=Object(W.cloneDeep)(Lt);if(bt==="open"&&(jt[ft].open=!jt[ft].open),bt==="delete"&&jt.splice(ft,1),bt==="value"&&(jt[ft].name=Nt),bt==="answer"&&(jt[ft].qusAnswer=[Nt]),bt==="edit"&&(jt[ft].activeQusEditor=Nt),bt==="details"&&(jt[ft].qusList[jt[ft].activeQusEditor]=Nt),bt==="addQus"&&(jt[ft].qusList=jt[ft].qusList.concat("")),bt==="deleteQus"){var bn;jt[ft].qusList=jt[ft].qusList.filter(function(Te,ve){return ve!==Nt}),jt[ft].qusAnswer=(bn=jt[ft].qusAnswer)===null||bn===void 0?void 0:bn.filter(function(Te){return Te!==Nt})}bt==="analysis"&&(jt[ft].analysis=Nt),Be(jt)};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:yt,onChange:function(bt){return mn(bt)}}),Lt==null?void 0:Lt.map(function(Zt,bt){var ft;return C.a.createElement("div",{className:he.a.fold,key:Zt.id},C.a.createElement("div",{onClick:function(){return $t("open",bt)},className:he.a.head},C.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Zt.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),C.a.createElement("span",null,"\u7B2C",bt+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),C.a.createElement("b",{style:{visibility:"hidden"},onClick:function(jt){jt.stopPropagation(),$t("delete",bt)},className:"iconfont icon-shanchu8"})),C.a.createElement("div",{className:"mb10",style:{display:Zt.open?"block":"none"}},C.a.createElement(ge.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Zt==null?void 0:Zt.name,onChange:function(jt){return $t("value",bt,jt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Zt==null||((ft=Zt.qusList)===null||ft===void 0)?void 0:ft.map(function(Nt,jt){var bn,Te;return C.a.createElement("div",{className:he.a.choiceWrap,key:jt},C.a.createElement(U.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},C.a.createElement("div",{className:"".concat(he.a.answer," ").concat(Zt!=null&&(bn=Zt.qusAnswer)!==null&&bn!==void 0&&bn.includes(jt)?he.a.activeAnswer:""),onClick:function(){return $t("answer",bt,jt)}},mt[jt])),C.a.createElement("div",{className:he.a.editorWrap},(Zt==null?void 0:Zt.activeQusEditor)===jt?C.a.createElement(ge.a,{id:"single-question-option-".concat(jt),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Nt,onChange:function(Q){return $t("details",bt,Q)}}):C.a.createElement("div",{className:he.a.htmlWrap,onClick:function(){return $t("edit",bt,jt)}},C.a.createElement(c.a,{value:Nt}))),jt>1&&C.a.createElement(U.a,{title:"\u5220\u9664"},C.a.createElement("i",{className:"".concat(he.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return $t("deleteQus",bt,jt)}})),jt<7&&jt===(Zt==null||((Te=Zt.qusList)===null||Te===void 0)?void 0:Te.length)-1&&C.a.createElement(U.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},C.a.createElement("i",{className:"".concat(he.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return $t("addQus",bt)}})))}),C.a.createElement("p",{className:"mb10 mt10"},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Zt.analysis,onChange:function(jt){return $t("analysis",bt,jt)}})))}))},Ht=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(lt)),sn=function(Qe){var Je,Xe,Oe,Ae,ye,Se,dt,et,xt=Qe.data,xn=Qe.submit,Dt=Qe.goBack,yt=Qe.loading,mn=Qe.onTypeScore,pe=Qe.editPreview,Gt=pe===void 0?!1:pe,Lt=Qe.onSkipExamination,Be=Qe.selectValue,ot=Qe.onExchange,Xt=Object(t.useRef)(),Pt=Object(t.useRef)(Object(W.debounce)(function(){return Ue()},100,{leading:!0,trailing:!0})),$t=Object(t.useState)(null),Zt=Object(h.a)($t,2),bt=Zt[0],ft=Zt[1],Nt=Object(t.useState)(!1),jt=Object(h.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(M.i)();Object(t.useEffect)(function(){return window.addEventListener("scroll",Pt==null?void 0:Pt.current),function(){window.removeEventListener("scroll",Pt==null?void 0:Pt.current)}},[]),Object(t.useEffect)(function(){Te(!0)},[]),Object(t.useEffect)(function(){var Vt,Et,Jt,Fn,Vn=(Vt=document.getElementById("examName"))===null||Vt===void 0||((Et=Vt.getElementsByClassName("ant-pagination-options-quick-jumper"))===null||Et===void 0||((Jt=Et[0])===null||Jt===void 0||((Fn=Jt.childNodes)===null||Fn===void 0)))?void 0:Fn[2];Vn&&(Vn.nodeValue="\u4EFD")},[xt]);var Q=function(Et){var Jt=parseInt(Et);return isNaN(Jt)?"":Jt};function $(){var Vt=0,Et=0,Jt=0;return document.body&&(Et=document.body.scrollTop),document.documentElement&&(Jt=document.documentElement.scrollTop),Vt=Et-Jt>0?Et:Jt,Vt}function re(){var Vt=0,Et=0,Jt=0;return document.body&&(Et=document.body.scrollHeight),document.documentElement&&(Jt=document.documentElement.scrollHeight),Vt=Et-Jt>0?Et:Jt,Vt}function de(){var Vt=0;return document.compatMode=="CSS1Compat"?Vt=document.documentElement.clientHeight:Vt=document.body.clientHeight,Vt}var Ue=function(){var Et=document.getElementById("preview_btns"),Jt=document.getElementById("preview_btns_else");$()+de()>=re()-68?(Et.style.visibility="hidden",Jt.style.visibility="visible"):(Et.style.visibility="visible",Jt.style.visibility="hidden")},it=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Mt=function(Et){var Jt,Fn=[];return C.a.createElement(C.a.Fragment,null,C.a.createElement("aside",{className:v.a.single},Et==null||((Jt=Et.choices)===null||Jt===void 0)?void 0:Jt.map(function(Vn,Kn){return Vn.is_answer&&Fn.push(Pn[Kn]),C.a.createElement("ul",{key:Kn},C.a.createElement("li",null,Pn[Kn],"\u3001"),C.a.createElement("li",null,C.a.createElement(c.a,{value:Vn.choice_text})))})),C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Fn.join(""),C.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",it[Et.difficulty])),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Et.analysis?Et.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name))))},Ln=function(Et){var Jt,Fn=Et==null||((Jt=Et.standard_answer)===null||Jt===void 0)?void 0:Jt.map(function(Vn){var Kn;return"\u7B54\u6848\uFF08\u586B\u7A7A".concat(Vn.position,"\uFF09\uFF1A").concat(Vn==null||((Kn=Vn.answer_text)===null||Kn===void 0)?void 0:Kn.join("\u3001"))});return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Fn),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Et.analysis?Et.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name))))},kn=function(Et){var Jt;return C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Et==null||((Jt=Et.answer_texts)===null||Jt===void 0)?void 0:Jt[0]),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Et.analysis?Et.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name)))},St=function(Et){var Jt;return C.a.createElement("div",{className:v.a.analysis},C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u9884\u671F\u8F93\u51FA:"),C.a.createElement(c.a,{value:Et==null||((Jt=Et.program_attr)===null||Jt===void 0)?void 0:Jt.description})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name)))},an=function(Et,Jt){var Fn;return C.a.createElement("div",null,Et==null||((Fn=Et.sub_item_banks)===null||Fn===void 0)?void 0:Fn.map(function(Vn,Kn){var ir,jr=[];return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333"}},Jt+1+"."+(Kn+1),"\uFF08\u5355\u9009\u9898\uFF09",Vn.name),C.a.createElement("aside",{className:v.a.single},Vn==null||((ir=Vn.choices)===null||ir===void 0)?void 0:ir.map(function(ua,Yr){return ua.is_answer&&jr.push(Pn[Yr]),C.a.createElement("ul",{key:Yr},C.a.createElement("li",null,Pn[Yr],"\u3001"),C.a.createElement("li",null,C.a.createElement(c.a,{value:ua.choice_text})))})),C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",jr.join(""),C.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",it[Vn.difficulty])),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Vn.analysis?Vn.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name))))}))},Pn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],dn=function(Et){console.log("---",Et);var Jt=[];Et.questions.map(function(Vn){return Vn==null?void 0:Vn.sub_item_banks.map(function(Kn){Jt.push(Kn)})});var Fn=0;Et.type==="COMBINATION"?Fn=Et.questions_score/Jt.length:Fn=Et.questions_score/Et.questions_count,u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:C.a.createElement("div",{className:v.a.modalColumn},C.a.createElement("div",{className:v.a.modalRow,style:{justifyContent:"flex-start"}},C.a.createElement("sup",{className:v.a.sup},"*"),C.a.createElement("span",null,Et==null?void 0:Et.name,(Et==null?void 0:Et.type)==="COMBINATION"&&"\u4E2D\u7684\u6BCF\u5C0F\u9898","\uFF1A"),C.a.createElement(i.a,{min:1,parser:Q,defaultValue:Fn,onChange:function(Kn){Fn=Kn}}),C.a.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Vn=Object(m.a)(E.a.mark(function ir(){var jr,ua;return E.a.wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:if(Fn){Tr.next=3;break}return b.b.warn("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Tr.abrupt("return",Promise.reject());case 3:Et.type==="COMBINATION"?(jr={type:Et==null?void 0:Et.type,score:Fn,scoreTotal:Fn*(Jt==null?void 0:Jt.length)},mn(jr)):(ua={type:Et==null?void 0:Et.type,score:Fn,scoreTotal:Fn*Et.questions_count},mn(ua));case 4:case"end":return Tr.stop()}},ir)}));function Kn(){return Vn.apply(this,arguments)}return Kn}()})},jn=function(){var Et="";u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:C.a.createElement("div",{className:v.a.modalColumn},C.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20"},C.a.createElement("img",{style:{marginRight:5},src:J.a}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),C.a.createElement("div",{className:v.a.modalRow,style:{marginTop:20}},C.a.createElement("sup",{className:v.a.sup},"*"),C.a.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),C.a.createElement(f.a,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Et,onChange:function(Fn){Et=Fn.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Jt=Object(m.a)(E.a.mark(function Vn(){var Kn,ir,jr,ua,Yr;return E.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(Et){Jn.next=3;break}return b.b.warn("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Jn.abrupt("return",Promise.reject());case 3:return ir=[],jr=[],ua=[],xt==null||((Kn=xt.questionList)===null||Kn===void 0)||Kn.forEach(function(fr){var Sn;(Sn=fr.questions)===null||Sn===void 0||Sn.forEach(function(On){ir.push(On.id),jr.push(fr.questions_score/fr.questions_count),fr.type==="COMBINATION"&&ua.push({id:On.id,sub_item_bank_ids:On.sub_item_banks.map(function(or){return or.id})})})}),console.log("-----",ua),Yr={item_bank_ids:ir,item_bank_scores:jr,name:Et,combination_item_banks:ua},Jn.next=11,xn(Yr);case 11:case"end":return Jn.stop()}},Vn)}));function Fn(){return Jt.apply(this,arguments)}return Fn}()})},Bn=function(Et,Jt,Fn,Vn){var Kn,ir=(Kn=Vn.questions)===null||Kn===void 0?void 0:Kn.map(function(ua){return ua.id}),jr=u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var ua=Object(m.a)(E.a.mark(function Tr(){return E.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return jr.update({cancelButtonProps:{disabled:!0}}),fr.next=3,ot({single_question_id:Et,seleted_item_bank_ids:ir},{type:Jt,index:Fn});case 3:jr.update({cancelButtonProps:{disabled:!1}}),b.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898");case 5:case"end":return fr.stop()}},Tr)}));function Yr(){return ua.apply(this,arguments)}return Yr}()})},ne=function(Et){var Jt,Fn=(Jt=Et.questions)===null||Jt===void 0?void 0:Jt.map(function(ir){return ir.id}),Vn=Et.name,Kn=u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362".concat(Vn,"\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F"),cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var ir=Object(m.a)(E.a.mark(function ua(){return E.a.wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:return Kn.update({cancelButtonProps:{disabled:!0}}),Tr.next=3,ot({seleted_item_bank_ids:Fn},{type:Et.type});case 3:Kn.update({cancelButtonProps:{disabled:!1}}),b.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210".concat(Vn,"\u8BD5\u9898"));case 5:case"end":return Tr.stop()}},ua)}));function jr(){return ir.apply(this,arguments)}return jr}()})},B=function(){var Et=u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Jt=Object(m.a)(E.a.mark(function Vn(){return E.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return Et.update({cancelButtonProps:{disabled:!0}}),ir.next=3,ot();case 3:Et.update({cancelButtonProps:{disabled:!1}}),b.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898");case 5:case"end":return ir.stop()}},Vn)}));function Fn(){return Jt.apply(this,arguments)}return Fn}()})},H=function(Et){console.log(Et,"key"),Lt(Et-1)},ae=function(){return C.a.createElement(C.a.Fragment,null,C.a.createElement(d.a,{color:"#55575D",overlayClassName:v.a.popover,visible:bn,getPopupContainer:function(Jt){return Jt==null?void 0:Jt.parentNode},content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},C.a.createElement(p.a,{onMouseEnter:function(){return Te(!0)},onMouseLeave:function(){return Te(!1)},onClick:function(){jn()}},"\u4FDD\u5B58")),C.a.createElement(p.a,{onClick:function(){document.body.scrollIntoView(),Dt()}},"\u8FD4\u56DE"),C.a.createElement(p.a,{loading:yt,onClick:function(){return xn()},type:"primary"},"\u63D0\u4EA4"))},ue=function(){var Et;return C.a.createElement(C.a.Fragment,null,C.a.createElement(p.a,{onClick:Dt},"\u8FD4\u56DE"),Be>0&&C.a.createElement(p.a,{onClick:function(){return H(Be)},type:"primary"},"\u4E0A\u4E00\u4EFD"),Be<(xt==null||((Et=xt.exam)===null||Et===void 0)?void 0:Et.total_num)-1&&C.a.createElement(p.a,{onClick:function(){return H(Be+2)}},"\u4E0B\u4E00\u4EFD"))},oe=function(Et,Jt){if(console.log(Et,222),Jt==="SINGLE")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Rt,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="MULTIPLE")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Ve,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="JUDGMENT")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Le,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="COMPLETION")return C.a.createElement(C.a.Fragment,null,C.a.createElement(fe,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="SUBJECTIVE")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Cn,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="COMBINATION")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Ht,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="PROGRAM"){var Fn;P.d.push("/problems/".concat(Et==null||((Fn=Et.program_attr)===null||Fn===void 0)?void 0:Fn.identifier,"/edit?type=exercises&express_id=").concat(ve.categoryId,"&question_id=").concat(Et==null?void 0:Et.id,"&score=").concat(Et==null?void 0:Et.score,"&callback_url=").concat(location.pathname,"&select=").concat(Be,"&exercise=true"))}},ht=function(){var Vt=Object(m.a)(E.a.mark(function Et(Jt,Fn){var Vn,Kn,ir,jr,ua,Yr,Tr,Jn,fr,Sn;return E.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,(Vn=Xt.current)===null||Vn===void 0?void 0:Vn.onSave();case 2:if(Kn=or.sent,Kn){or.next=5;break}return or.abrupt("return");case 5:return ir={question_score:Fn.score,analysis:Kn.analysis},console.log(Kn,"editorData"),(Jt==="SINGLE"||Jt==="MULTIPLE"||Jt==="JUDGMENT")&&(ua=[],Yr=[],ir.question_type=Jt==="JUDGMENT"?2:1,ir.question_title=Kn==null?void 0:Kn.name,Kn==null||((jr=Kn.choices)===null||jr===void 0)||jr.forEach(function(Dn,pr){ua.push(Dn.choice_text),Dn!=null&&Dn.is_answer&&Yr.push(pr+1)}),ir.question_choices=ua,ir.standard_answers=Yr),Jt==="COMPLETION"&&(ir.is_ordered=Kn.is_ordered,ir.question_title=Kn==null?void 0:Kn.name,ir.question_type=3,Jn=[],Kn==null||((Tr=Kn.standard_answers)===null||Tr===void 0)||Tr.forEach(function(Dn,pr){Jn.push({choice_id:Dn.position,answer_text:Dn.answer_text})}),ir.standard_answers=Jn),Jt==="SUBJECTIVE"&&(ir.question_title=Kn==null?void 0:Kn.name,ir.question_type=3,ir.standard_answers=Kn==null?void 0:Kn.answer_texts),Jt==="COMBINATION"&&(ir.question_title=Kn==null?void 0:Kn.name,ir.question_type=7,ir.sub_questions=Kn==null||((fr=Kn.sub_item_banks)===null||fr===void 0)?void 0:fr.map(function(Dn,pr){return{id:Dn.id,question_title:Dn.name,question_type:1,question_choices:Dn.choices.map(function(Gn){return Gn.choice_text}),standard_answers:[Dn.choices.findIndex(function(Gn){return Gn.is_answer})+1],analysis:Dn.analysis}}),delete ir.analysis),or.next=13,Object(R.a)("/api/exercise_questions/".concat(Fn.id,".json"),{method:"put",body:ir});case 13:Sn=or.sent,(Sn==null?void 0:Sn.status)===0&&(b.b.success("\u7F16\u8F91\u6210\u529F"),H(Be+1)),ft(null);case 16:case"end":return or.stop()}},Et)}));return function(Jt,Fn){return Vt.apply(this,arguments)}}(),vn=function(){for(var Et=[],Jt=0;Jt<(xt==null||((Fn=xt.exam)===null||Fn===void 0)?void 0:Fn.total_num);Jt++){var Fn;Et.push({})}return Et};console.log(vn(),"data");var Tn=xt==null||((Je=xt.questionList)===null||Je===void 0)?void 0:Je.reduce(function(Vt,Et){return Vt+Et.questions_score},0),cr=Gt&&(xt==null||((Xe=xt.exam)===null||Xe===void 0)?void 0:Xe.exercise_status)!==1;return C.a.createElement("section",{className:v.a.wrap},C.a.createElement("div",{id:"id_left_preview",className:v.a.left,onMouseEnter:function(Et){var Jt=document.getElementById("id_left_preview");Jt.style.overflowY="auto"},onMouseLeave:function(Et){var Jt=document.getElementById("id_left_preview");Jt.style.overflowY="hidden"}},C.a.createElement("div",{className:v.a.title},C.a.createElement("div",null,C.a.createElement("b",null),C.a.createElement("span",null,"\u7B54\u9898\u5361"))),C.a.createElement("div",{className:v.a.total},C.a.createElement("div",null,C.a.createElement("img",{src:I.a}),C.a.createElement("span",null,"\u9898\u6570(\u9053)"),C.a.createElement("aside",null,xt==null?void 0:xt.all_questions_count)),C.a.createElement("div",{className:"mr30 ml30"},C.a.createElement("img",{src:V.a}),C.a.createElement("span",null,"\u603B\u5206(\u5206)"),C.a.createElement("aside",null,Tn)),C.a.createElement("div",null,C.a.createElement("img",{src:l.a}),C.a.createElement("span",null,"\u65F6\u957F(\u5206)"),C.a.createElement("aside",null,xt==null||((Oe=xt.exam)===null||Oe===void 0)?void 0:Oe.time))),xt==null||((Ae=xt.questionList)===null||Ae===void 0)?void 0:Ae.map(function(Vt,Et){var Jt;return C.a.createElement("div",{className:v.a.list,key:Et},C.a.createElement("div",{className:v.a.name},C.a.createElement("b",null),C.a.createElement("span",null,Vt.name)),C.a.createElement("aside",null,C.a.createElement("div",null,"\u5171",C.a.createElement("span",{className:v.a.b},Vt.questions_count),"\u9898 ",C.a.createElement("span",{className:v.a.l},"|"),"\u5171",C.a.createElement("span",{className:v.a.r},Vt.questions_score),"\u5206"),C.a.createElement("div",{className:v.a.answerSheet},Vt==null||((Jt=Vt.questions)===null||Jt===void 0)?void 0:Jt.map(function(Fn,Vn){return C.a.createElement("div",{onClick:function(){var ir="Anchor_".concat(Fn.id),jr=document.getElementById(ir);jr&&setTimeout(function(){return jr.scrollIntoView({block:"center",behavior:"smooth"})})},key:Fn.id,className:v.a.tag},Vn+1)}))))})),C.a.createElement("div",{className:v.a.right},C.a.createElement("div",{className:v.a.examName,id:"examName"},C.a.createElement("div",{className:v.a.name},C.a.createElement(U.a,{title:xt==null||((ye=xt.exam)===null||ye===void 0)?void 0:ye.name,getPopupContainer:function(Et){return Et.parentNode}},C.a.createElement("span",{className:v.a.t},xt==null||((Se=xt.exam)===null||Se===void 0)?void 0:Se.name))),Gt?C.a.createElement(j.a,{showTotal:function(Et){return C.a.createElement("span",{style:{color:"#656F87",fontSize:14}},"\u5171\u8BA1",C.a.createElement("span",{className:"c-light-primary"},Et),"\u4EFD\u8BD5\u5377")},total:xt==null||((dt=xt.exam)===null||dt===void 0)?void 0:dt.total_num,pageSize:1,current:Be+1,showSizeChanger:!1,onChange:H,showQuickJumper:!0,hideOnSinglePage:!1}):C.a.createElement(p.a,{onClick:B,type:"primary"},"\u968F\u673A\u66F4\u6362")),C.a.createElement("div",{className:v.a.topWarp},xt==null||((et=xt.questionList)===null||et===void 0)?void 0:et.map(function(Vt,Et){var Jt,Fn;return C.a.createElement(C.a.Fragment,{key:Et},C.a.createElement("div",{className:v.a.head,style:Et===0?{border:0,marginTop:-16}:{}},C.a.createElement("div",{className:v.a.name},C.a.createElement("b",null),C.a.createElement("span",null,Vt.name)),C.a.createElement("div",{className:v.a.so},"\u5171",C.a.createElement("span",{className:v.a.b},Vt.questions_count," "),"\u9898 ",Vt.type==="COMBINATION"&&"\uFF08\u5305\u542B".concat(Vt==null||((Jt=Vt.questions)===null||Jt===void 0)?void 0:Jt.map(function(Vn){var Kn;return Vn==null||((Kn=Vn.sub_item_banks)===null||Kn===void 0)?void 0:Kn.length}).reduce(function(Vn,Kn){return Vn+Kn}),"\u5C0F\u9898\uFF09"),C.a.createElement("span",{className:v.a.l},"|"),"\u5171",C.a.createElement("span",{className:v.a.r},Vt.questions_score),"\u5206"),!Gt&&C.a.createElement("div",{className:v.a.btn},C.a.createElement(p.a,{onClick:function(){dn(Vt)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),C.a.createElement(p.a,{onClick:function(){return ne(Vt)},type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),Vt==null||((Fn=Vt.questions)===null||Fn===void 0)?void 0:Fn.map(function(Vn,Kn){return bt===Vn.id?C.a.createElement("div",{id:"Anchor_".concat(Vn.id),className:v.a.content,style:{padding:0,marginTop:10},key:Vn.id},C.a.createElement("div",{style:{float:"right",marginTop:-6}},C.a.createElement(p.a,{onClick:function(){return ft(null)},className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),C.a.createElement(p.a,{onClick:function(){return ht(Vt==null?void 0:Vt.type,Vn)},type:"primary"},"\u4FDD\u5B58")),oe(Vn,Vt.type)):C.a.createElement("div",{id:"Anchor_".concat(Vn.id),className:v.a.content,key:Vn.id},C.a.createElement("div",{className:v.a.titleWrap},C.a.createElement(c.a,{style:{paddingRight:10},className:v.a.titleHtml,value:Kn+1+"\u3001"+"".concat((Vn==null?void 0:Vn.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":"")+Vn.name}),Gt&&C.a.createElement(p.a,{disabled:cr,onClick:function(){if(bt){b.b.warn("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}ft(Vn.id)},type:"primary",className:"mr20",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),C.a.createElement(p.a,{disabled:cr,onClick:function(){return Bn(Vn.id,Vt.type,Kn,Vt)},type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Vt.type==="SINGLE"||Vt.type==="JUDGMENT"||Vt.type==="MULTIPLE")&&Mt(Vn),Vt.type==="COMPLETION"&&Ln(Vn),Vt.type==="SUBJECTIVE"&&kn(Vn),Vt.type==="PROGRAM"&&St(Vn),Vt.type==="COMBINATION"&&an(Vn,Kn),C.a.createElement("div",null))}))})),C.a.createElement("div",{className:v.a.btnsElse,id:"preview_btns_else"},Gt?ue():ae()),C.a.createElement("div",{className:v.a.btnsWrap,id:"preview_btns"},C.a.createElement("div",{className:v.a.btns},Gt?ue():ae()))))},Tt=ie.a=sn},sboe:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return L});var Y=_("q1tI"),j=_.n(Y),L=Y.createContext(null)},t23M:function(Ye,ie,_){"use strict";var Y=_("VTBJ"),j=_("1OyB"),L=_("vuIU"),U=_("Ji7U"),S=_("LK+K"),g=_("q1tI"),s=_.n(g),d=_("m+aA"),w=_("Zm9Q"),p=_("Kwbf"),a=_("c+Xe"),f=_("bdgK"),x="rc-observer-key",b=function(m){Object(U.a)(i,m);var O=Object(S.a)(i);function i(){var r;return Object(j.a)(this,i),r=O.apply(this,arguments),r.resizeObserver=null,r.childNode=null,r.currentElement=null,r.state={width:0,height:0,offsetHeight:0,offsetWidth:0},r.onResize=function(u){var h=r.props.onResize,y=u[0].target,E=y.getBoundingClientRect(),t=E.width,C=E.height,A=y.offsetWidth,v=y.offsetHeight,o=Math.floor(t),l=Math.floor(C);if(r.state.width!==o||r.state.height!==l||r.state.offsetWidth!==A||r.state.offsetHeight!==v){var c={width:o,height:l,offsetWidth:A,offsetHeight:v};r.setState(c),h&&Promise.resolve().then(function(){h(Object(Y.a)(Object(Y.a)({},c),{},{offsetWidth:A,offsetHeight:v}))})}},r.setChildNode=function(u){r.childNode=u},r}return Object(L.a)(i,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var u=this.props.disabled;if(u){this.destroyObserver();return}var h=Object(d.a)(this.childNode||this),y=h!==this.currentElement;y&&(this.destroyObserver(),this.currentElement=h),!this.resizeObserver&&h&&(this.resizeObserver=new f.default(this.onResize),this.resizeObserver.observe(h))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var u=this.props.children,h=Object(w.a)(u);if(h.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(h.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var y=h[0];if(g.isValidElement(y)&&Object(a.c)(y)){var E=y.ref;h[0]=g.cloneElement(y,{ref:Object(a.a)(E,this.setChildNode)})}return h.length===1?h[0]:h.map(function(t,C){return!g.isValidElement(t)||"key"in t&&t.key!==null?t:g.cloneElement(t,{key:"".concat(x,"-").concat(C)})})}}]),i}(g.Component);b.displayName="ResizeObserver",ie.a=b},tWlo:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},tf39:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___15tXk",flex_space_between:"flex_space_between___2JIaf",flex_box_vertical_center:"flex_box_vertical_center___3168W",flex_box_center_end:"flex_box_center_end___16myc",flex_box_column:"flex_box_column___Ye8vh",title:"title___z0esv",export:"export___1cim9",bg:"bg___1nEgJ",tabs:"tabs___1HwEE"}},u2Z1:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return E});var Y=_("miYZ"),j=_("tsqr"),L=_("9og8"),U=_("5NDa"),S=_("5rEg"),g=_("2qtc"),s=_("kLXV"),d=_("oBTY"),w=_("tJVT"),p=_("OaEy"),a=_("2fM7"),f=_("WmNS"),x=_.n(f),b=_("q1tI"),m=_.n(b),O=_("ErOA"),i=_("i58Z"),r=_.n(i),u=_("T1X5"),h=_.n(u),y=a.a.Option,E=function(C){var A=C.subId,v=C.value,o=C.selectvalues,l=C.disabled,c=C.knowledgeOptions,M=c===void 0?[]:c,P=C.onChange,R=P===void 0?function(){}:P,k=C.onAddKnowledgeFinish,I=k===void 0?function(){}:k,F=Object(b.useRef)(),V=Object(b.useState)([]),W=Object(w.a)(V,2),G=W[0],J=W[1];v=v||[];var X=function(be,ge){be?(J([ge.key]),R([ge.key])):(J([]),R([]))};Object(b.useEffect)(function(){(o==null?void 0:o.length)>0&&(J(Object(d.a)(o)),R(Object(d.a)(o)))},[M]),Object(b.useEffect)(function(){var ee;((ee=v)===null||ee===void 0?void 0:ee.length)>0&&R(Object(d.a)(v))},[M]);var te=function(be){be.preventDefault(),F.current="",s.a.confirm({centered:!0,width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:m.a.createElement("div",{className:"font14"},m.a.createElement("div",{style:{display:"flex",marginTop:"48px",marginBottom:"36px"}},m.a.createElement("img",{src:h.a,style:{width:"108px",height:"108px",marginRight:"29px"}}),"\u60A8\u586B\u5199\u7684\u77E5\u8BC6\u70B9\u6682\u65F6\u4EC5\u5BF9\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u540E\u5C06\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF1B",m.a.createElement("br",null),"\u5E73\u53F0\u5BA1\u6838\u8FC7\u7A0B\u4E2D\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF08\u5305\u62EC\u4F46\u4E0D\u9650\u4E8E\u9519\u8BEF\u3001\u975E\u6CD5\u3001\u4E0D\u96C5\u3001\u4E0D\u5339\u914D\u5F53\u524D\u8BFE\u7A0B\u7B49\u60C5\u5F62\uFF09\uFF0C\u5220\u9664\u540E\u53EF\u80FD\u5F71\u54CD\u60A8\u7684\u8BD5\u9898\u7684\u6B63\u5E38\u4F7F\u7528\u3002",m.a.createElement("br",null),"\u8BF7\u8BA4\u771F\u586B\u5199\u4E0E\u6559\u5B66\u5185\u5BB9\u76F8\u5173\u7684\u771F\u5B9E\u77E5\u8BC6\u70B9 ",m.a.createElement("br",null)),m.a.createElement(S.a,{className:"mt5",maxLength:20,style:{marginBottom:"42px"},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:F.current,onChange:function(je){F.current=je.target.value}})),onOk:function(){return new Promise(function(){var je=Object(L.a)(x.a.mark(function He(nt,Ge){var he,ce;return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(F.current){fe.next=3;break}return j.b.warn("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),fe.abrupt("return",Ge());case 3:if(!(F.current.length>20)){fe.next=6;break}return j.b.warn("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),fe.abrupt("return",Ge());case 6:return fe.next=8,Object(O.a)("/api/tag_disciplines.json",{method:"post",body:{name:F.current,sub_discipline_id:A}});case 8:return he=fe.sent,(he==null?void 0:he.status)===0&&(I({id:he.tag_discipline_id,name:F.current,type:"personal"}),ce=[],ce.push(he.tag_discipline_id),R([].concat(ce)),J([he.tag_discipline_id]),R([].concat(ce))),fe.abrupt("return",nt());case 11:case"end":return fe.stop()}},He)}));return function(He,nt){return je.apply(this,arguments)}}())}})};return m.a.createElement("div",{className:r.a.wrap},m.a.createElement(a.a,{disabled:!A||l,className:"mr5",style:{width:"242px"},onChange:X,showSearch:!0,allowClear:!0,value:M==null?void 0:M.filter(function(ee){return(G==null?void 0:G.includes(ee==null?void 0:ee.id))||(G==null?void 0:G.includes((ee==null?void 0:ee.id)+""))}).map(function(ee){return ee.name})},M==null?void 0:M.map(function(ee){return m.a.createElement(y,{key:ee.id,value:ee.name},m.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},m.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.name),m.a.createElement("span",null,ee.type==="personal"?"\uFF08\u81EA\u7528\uFF09":"")))})),m.a.createElement("button",{disabled:!A,className:"".concat(r.a.addKnowledge," ").concat(A?"":r.a.disabled),onClick:te},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))}},u3os:function(Ye,ie,_){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.ver=ie.clear=ie.bind=void 0;var Y=_("P4Qj"),j=function(g,s){var d=(0,Y.getSensor)(g);return d.bind(s),function(){d.unbind(s)}};ie.bind=j;var L=function(g){var s=(0,Y.getSensor)(g);(0,Y.removeSensor)(s)};ie.clear=L;var U="1.0.1";ie.ver=U},uJ6K:function(Ye,ie,_){Ye.exports={wrap:"wrap___1AALq",img:"img___20GEO",table:"table___26NT5",totalScore:"totalScore___1t1Bx",people:"people___BMR7K",glassSeal:"glassSeal___2woZ-"}},ueOF:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___3u1kD",flex_space_between:"flex_space_between___1iSrL",flex_box_vertical_center:"flex_box_vertical_center___18buA",flex_box_center_end:"flex_box_center_end___35UIs",flex_box_column:"flex_box_column___2UKLk",customModal:"customModal___ppNnJ",checking:"checking___3Jkqo",content:"content___1lP2Z",group:"group___29dCl",footer:"footer___3jXcc"}},ulZh:function(Ye,ie,_){typeof window!="undefined"&&function(j,L){Ye.exports=L()}(this,function(){return function(Y){var j={};function L(U){if(j[U])return j[U].exports;var S=j[U]={i:U,l:!1,exports:{}};return Y[U].call(S.exports,S,S.exports,L),S.l=!0,S.exports}return L.m=Y,L.c=j,L.d=function(U,S,g){L.o(U,S)||Object.defineProperty(U,S,{enumerable:!0,get:g})},L.r=function(U){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},L.t=function(U,S){if(S&1&&(U=L(U)),S&8)return U;if(S&4&&typeof U=="object"&&U&&U.__esModule)return U;var g=Object.create(null);if(L.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:U}),S&2&&typeof U!="string")for(var s in U)L.d(g,s,function(d){return U[d]}.bind(null,s));return g},L.n=function(U){var S=U&&U.__esModule?function(){return U.default}:function(){return U};return L.d(S,"a",S),S},L.o=function(U,S){return Object.prototype.hasOwnProperty.call(U,S)},L.p="/dist/",L(L.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Y,j,L){"use strict";var U=Object.prototype.hasOwnProperty,S="~";function g(){}Object.create&&(g.prototype=Object.create(null),new g().__proto__||(S=!1));function s(a,f,x){this.fn=a,this.context=f,this.once=x||!1}function d(a,f,x,b,m){if(typeof x!="function")throw new TypeError("The listener must be a function");var O=new s(x,b||a,m),i=S?S+f:f;return a._events[i]?a._events[i].fn?a._events[i]=[a._events[i],O]:a._events[i].push(O):(a._events[i]=O,a._eventsCount++),a}function w(a,f){--a._eventsCount===0?a._events=new g:delete a._events[f]}function p(){this._events=new g,this._eventsCount=0}p.prototype.eventNames=function(){var f=[],x,b;if(this._eventsCount===0)return f;for(b in x=this._events)U.call(x,b)&&f.push(S?b.slice(1):b);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(x)):f},p.prototype.listeners=function(f){var x=S?S+f:f,b=this._events[x];if(!b)return[];if(b.fn)return[b.fn];for(var m=0,O=b.length,i=new Array(O);m0},!1)}function a(f,x){for(var b={main:[x]},m={main:[]},O={main:{}};p(b);)for(var i=Object.keys(b),r=0;r=2*C/v||R<=I)return;var F=Number.POSITIVE_INFINITY,V;for(V=i.level-1;V>l;V--){var W=o[V].maxBitrate;if(F=C*W/(8*.8*P),F=R)return;var G=this.bwEstimator.getEstimate();p.logger.warn("Fragment "+i.sn+(r?" part "+r.index:"")+" of level "+i.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+V+` + `)}},K)})}function ao(){Yi(function(){na(Lo.react,j.a.version),Ka(document)},[])}function xi(z){var K=Object(Y.useRef)(z);return Object(Y.useEffect)(function(){K.current=z}),K}function Qi(){var z=null;function K(){return Boolean(z)}function q(Ze){return Ze===z}function me(Ze){z&&ce(!1);var qe={abandon:Ze};return z=qe,qe}function ke(){z||ce(!1),z=null}function Ie(){z&&(z.abandon(),ke())}return{isClaimed:K,isActive:q,claim:me,release:ke,tryAbandon:Ie}}var Eo=9,ko=13,bi=27,Rs=32,Ys=33,Dl=34,hs=35,Ts=36,Qs=37,Pl=38,Js=39,Ml=40,ms,ps=(ms={},ms[ko]=!0,ms[Eo]=!0,ms),Ds=function(z){ps[z.keyCode]&&z.preventDefault()},vs=function(){var z="visibilitychange";if(typeof document=="undefined")return z;var K=[z,"ms"+z,"webkit"+z,"moz"+z,"o"+z],q=et(K,function(me){return"on"+me in document});return q||z}(),Zs=0,Ps=5;function zo(z,K){return Math.abs(K.x-z.x)>=Ps||Math.abs(K.y-z.y)>=Ps}var gs={type:"IDLE"};function bs(z){var K=z.cancel,q=z.completed,me=z.getPhase,ke=z.setPhase;return[{eventName:"mousemove",fn:function(Ze){var qe=Ze.button,kt=Ze.clientX,en=Ze.clientY;if(qe!==Zs)return;var rn={x:kt,y:en},Ut=me();if(Ut.type==="DRAGGING"){Ze.preventDefault(),Ut.actions.move(rn);return}Ut.type==="PENDING"||ce(!1);var It=Ut.point;if(!zo(It,rn))return;Ze.preventDefault();var qt=Ut.actions.fluidLift(rn);ke({type:"DRAGGING",actions:qt})}},{eventName:"mouseup",fn:function(Ze){var qe=me();if(qe.type!=="DRAGGING"){K();return}Ze.preventDefault(),qe.actions.drop({shouldBlockNextClick:!0}),q()}},{eventName:"mousedown",fn:function(Ze){me().type==="DRAGGING"&&Ze.preventDefault(),K()}},{eventName:"keydown",fn:function(Ze){var qe=me();if(qe.type==="PENDING"){K();return}if(Ze.keyCode===bi){Ze.preventDefault(),K();return}Ds(Ze)}},{eventName:"resize",fn:K},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){me().type==="PENDING"&&K()}},{eventName:"webkitmouseforcedown",fn:function(Ze){var qe=me();if(qe.type!=="IDLE"||ce(!1),qe.actions.shouldRespectForcePress()){K();return}Ze.preventDefault()}},{eventName:vs,fn:K}]}function qs(z){var K=Object(Y.useRef)(gs),q=Object(Y.useRef)(ge),me=p(function(){return{eventName:"mousedown",fn:function(Ut){if(Ut.defaultPrevented)return;if(Ut.button!==Zs)return;if(Ut.ctrlKey||Ut.metaKey||Ut.shiftKey||Ut.altKey)return;var It=z.findClosestDraggableId(Ut);if(!It)return;var qt=z.tryGetLock(It,Ze,{sourceEvent:Ut});if(!qt)return;Ut.preventDefault();var Nn={x:Ut.clientX,y:Ut.clientY};q.current(),en(qt,Nn)}}},[z]),ke=p(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ut){if(Ut.defaultPrevented)return;var It=z.findClosestDraggableId(Ut);if(!It)return;var qt=z.findOptionsForDraggable(It);if(!qt)return;if(qt.shouldRespectForcePress)return;if(!z.canGetLock(It))return;Ut.preventDefault()}}},[z]),Ie=a(function(){var Ut={passive:!1,capture:!0};q.current=He(window,[ke,me],Ut)},[ke,me]),Ze=a(function(){var rn=K.current;if(rn.type==="IDLE")return;K.current=gs,q.current(),Ie()},[Ie]),qe=a(function(){var rn=K.current;Ze(),rn.type==="DRAGGING"&&rn.actions.cancel({shouldBlockNextClick:!0}),rn.type==="PENDING"&&rn.actions.abort()},[Ze]),kt=a(function(){var Ut={capture:!0,passive:!1},It=bs({cancel:qe,completed:Ze,getPhase:function(){return K.current},setPhase:function(Nn){K.current=Nn}});q.current=He(window,It,Ut)},[qe,Ze]),en=a(function(Ut,It){K.current.type==="IDLE"||ce(!1),K.current={type:"PENDING",point:It,actions:Ut},kt()},[kt]);Ei(function(){return Ie(),function(){q.current()}},[Ie])}var Uo;function $s(){}var Ll=(Uo={},Uo[Dl]=!0,Uo[Ys]=!0,Uo[Ts]=!0,Uo[hs]=!0,Uo);function el(z,K){function q(){K(),z.cancel()}function me(){K(),z.drop()}return[{eventName:"keydown",fn:function(Ie){if(Ie.keyCode===bi){Ie.preventDefault(),q();return}if(Ie.keyCode===Rs){Ie.preventDefault(),me();return}if(Ie.keyCode===Ml){Ie.preventDefault(),z.moveDown();return}if(Ie.keyCode===Pl){Ie.preventDefault(),z.moveUp();return}if(Ie.keyCode===Js){Ie.preventDefault(),z.moveRight();return}if(Ie.keyCode===Qs){Ie.preventDefault(),z.moveLeft();return}if(Ll[Ie.keyCode]){Ie.preventDefault();return}Ds(Ie)}},{eventName:"mousedown",fn:q},{eventName:"mouseup",fn:q},{eventName:"click",fn:q},{eventName:"touchstart",fn:q},{eventName:"resize",fn:q},{eventName:"wheel",fn:q,options:{passive:!0}},{eventName:vs,fn:q}]}function Wi(z){var K=Object(Y.useRef)($s),q=p(function(){return{eventName:"keydown",fn:function(Ie){if(Ie.defaultPrevented)return;if(Ie.keyCode!==Rs)return;var Ze=z.findClosestDraggableId(Ie);if(!Ze)return;var qe=z.tryGetLock(Ze,rn,{sourceEvent:Ie});if(!qe)return;Ie.preventDefault();var kt=!0,en=qe.snapLift();K.current();function rn(){kt||ce(!1),kt=!1,K.current(),me()}K.current=He(window,el(en,rn),{capture:!0,passive:!1})}}},[z]),me=a(function(){var Ie={passive:!1,capture:!0};K.current=He(window,[q],Ie)},[q]);Ei(function(){return me(),function(){K.current()}},[me])}var Ho={type:"IDLE"},tl=120,nl=.15;function rl(z){var K=z.cancel,q=z.getPhase;return[{eventName:"orientationchange",fn:K},{eventName:"resize",fn:K},{eventName:"contextmenu",fn:function(ke){ke.preventDefault()}},{eventName:"keydown",fn:function(ke){if(q().type!=="DRAGGING"){K();return}ke.keyCode===bi&&ke.preventDefault(),K()}},{eventName:vs,fn:K}]}function Ko(z){var K=z.cancel,q=z.completed,me=z.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ie){var Ze=me();if(Ze.type!=="DRAGGING"){K();return}Ze.hasMoved=!0;var qe=Ie.touches[0],kt=qe.clientX,en=qe.clientY,rn={x:kt,y:en};Ie.preventDefault(),Ze.actions.move(rn)}},{eventName:"touchend",fn:function(Ie){var Ze=me();if(Ze.type!=="DRAGGING"){K();return}Ie.preventDefault(),Ze.actions.drop({shouldBlockNextClick:!0}),q()}},{eventName:"touchcancel",fn:function(Ie){if(me().type!=="DRAGGING"){K();return}Ie.preventDefault(),K()}},{eventName:"touchforcechange",fn:function(Ie){var Ze=me();Ze.type!=="IDLE"||ce(!1);var qe=Ie.touches[0];if(!qe)return;var kt=qe.force>=nl;if(!kt)return;var en=Ze.actions.shouldRespectForcePress();if(Ze.type==="PENDING"){en&&K();return}if(en){if(Ze.hasMoved){Ie.preventDefault();return}K();return}Ie.preventDefault()}},{eventName:vs,fn:K}]}function ys(z){var K=Object(Y.useRef)(Ho),q=Object(Y.useRef)(ge),me=a(function(){return K.current},[]),ke=a(function(qt){K.current=qt},[]),Ie=p(function(){return{eventName:"touchstart",fn:function(qt){if(qt.defaultPrevented)return;var Nn=z.findClosestDraggableId(qt);if(!Nn)return;var Gr=z.tryGetLock(Nn,qe,{sourceEvent:qt});if(!Gr)return;var qr=qt.touches[0],fa=qr.clientX,ga=qr.clientY,Ua={x:fa,y:ga};q.current(),Ut(Gr,Ua)}}},[z]),Ze=a(function(){var qt={capture:!0,passive:!1};q.current=He(window,[Ie],qt)},[Ie]),qe=a(function(){var It=K.current;if(It.type==="IDLE")return;It.type==="PENDING"&&clearTimeout(It.longPressTimerId),ke(Ho),q.current(),Ze()},[Ze,ke]),kt=a(function(){var It=K.current;qe(),It.type==="DRAGGING"&&It.actions.cancel({shouldBlockNextClick:!0}),It.type==="PENDING"&&It.actions.abort()},[qe]),en=a(function(){var qt={capture:!0,passive:!1},Nn={cancel:kt,completed:qe,getPhase:me},Gr=He(window,Ko(Nn),qt),qr=He(window,rl(Nn),qt);q.current=function(){Gr(),qr()}},[kt,me,qe]),rn=a(function(){var qt=me();qt.type==="PENDING"||ce(!1);var Nn=qt.actions.fluidLift(qt.point);ke({type:"DRAGGING",actions:Nn,hasMoved:!1})},[me,ke]),Ut=a(function(qt,Nn){me().type==="IDLE"||ce(!1);var Gr=setTimeout(rn,tl);ke({type:"PENDING",point:Nn,actions:qt,longPressTimerId:Gr}),en()},[en,me,ke,rn]);Ei(function(){return Ze(),function(){q.current();var Nn=me();Nn.type==="PENDING"&&(clearTimeout(Nn.longPressTimerId),ke(Ho))}},[me,Ze,ke]),Ei(function(){var qt=He(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qt},[])}function al(z){ii(function(){var K=xi(z);Yi(function(){K.current.length===z.length||ce(!1)})})}var il={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(z,K){if(K==null)return!1;var q=Boolean(il[K.tagName.toLowerCase()]);if(q)return!0;var me=K.getAttribute("contenteditable");return me==="true"||me===""?!0:K===z?!1:Ms(z,K.parentElement)}function Go(z,K){var q=K.target;return Mi(q)?Ms(z,q):!1}var ol=function(z){return x(z.getBoundingClientRect()).center};function _s(z){return z instanceof Oo(z).Element}var sl=function(){var z="matches";if(typeof document=="undefined")return z;var K=[z,"msMatchesSelector","webkitMatchesSelector"],q=et(K,function(me){return me in Element.prototype});return q||z}();function Vo(z,K){return z==null?null:z[sl](K)?z:Vo(z.parentElement,K)}function kl(z,K){return z.closest?z.closest(K):Vo(z,K)}function Xo(z){return"["+so.contextId+'="'+z+'"]'}function ll(z,K){var q=K.target;if(!_s(q))return null;var me=Xo(z),ke=kl(q,me);return ke&&Mi(ke)?ke:null}function ul(z,K){var q=ll(z,K);return q?q.getAttribute(so.draggableId):null}function dl(z,K){var q="["+wo.contextId+'="'+z+'"]',me=xt(document.querySelectorAll(q)),ke=et(me,function(Ie){return Ie.getAttribute(wo.id)===K});return ke&&Mi(ke)?ke:null}function ts(z){z.preventDefault()}function jo(z){var K=z.expected,q=z.phase,me=z.isLockActive,ke=z.shouldWarn;return me()?!(K!==q):!1}function Yo(z){var K=z.lockAPI,q=z.store,me=z.registry,ke=z.draggableId;if(K.isClaimed())return!1;var Ie=me.draggable.findById(ke);return Ie&&Ie.options.isEnabled?!!Zi(q.getState(),ke):!1}function ns(z){var K=z.lockAPI,q=z.contextId,me=z.store,ke=z.registry,Ie=z.draggableId,Ze=z.forceSensorStop,qe=z.sourceEvent,kt=Yo({lockAPI:K,store:me,registry:ke,draggableId:Ie});if(!kt)return null;var en=ke.draggable.getById(Ie),rn=dl(q,en.descriptor.id);if(!rn)return null;if(qe&&!en.options.canDragInteractiveElements&&Go(rn,qe))return null;var Ut=K.claim(Ze||ge),It="PRE_DRAG";function qt(){return en.options.shouldRespectForcePress}function Nn(){return K.isActive(Ut)}function Gr(Qa,fi){jo({expected:Qa,phase:It,isLockActive:Nn,shouldWarn:!0})&&me.dispatch(fi())}var qr=Gr.bind(null,"DRAGGING");function fa(Qa){function fi(){K.release(),It="COMPLETED"}It!=="PRE_DRAG"&&(fi(),It==="PRE_DRAG"||ce(!1)),me.dispatch(ar(Qa.liftActionArgs)),It="DRAGGING";function Li(e,n){if(n===void 0&&(n={shouldBlockNextClick:!1}),Qa.cleanup(),n.shouldBlockNextClick){var D=He(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(D)}fi(),me.dispatch(pt({reason:e}))}return Object(U.a)({isActive:function(){return jo({expected:"DRAGGING",phase:It,isLockActive:Nn,shouldWarn:!1})},shouldRespectForcePress:qt,drop:function(n){return Li("DROP",n)},cancel:function(n){return Li("CANCEL",n)}},Qa.actions)}function ga(Qa){var fi=P(function(e){qr(function(){return la({client:e})})}),Li=fa({liftActionArgs:{id:Ie,clientSelection:Qa,movementMode:"FLUID"},cleanup:function(){return fi.cancel()},actions:{move:fi}});return Object(U.a)({},Li,{move:fi})}function Ua(){var Qa={moveUp:function(){return qr(Kr)},moveRight:function(){return qr(Er)},moveDown:function(){return qr(ra)},moveLeft:function(){return qr(wn)}};return fa({liftActionArgs:{id:Ie,clientSelection:ol(rn),movementMode:"SNAP"},cleanup:ge,actions:Qa})}function va(){var Qa=jo({expected:"PRE_DRAG",phase:It,isLockActive:Nn,shouldWarn:!0});Qa&&K.release()}var ei={isActive:function(){return jo({expected:"PRE_DRAG",phase:It,isLockActive:Nn,shouldWarn:!1})},shouldRespectForcePress:qt,fluidLift:ga,snapLift:Ua,abort:va};return ei}var cl=[qs,Wi,ys];function Il(z){var K=z.contextId,q=z.store,me=z.registry,ke=z.customSensors,Ie=z.enableDefaultSensors,Ze=[].concat(Ie?cl:[],ke||[]),qe=Object(Y.useState)(function(){return Qi()})[0],kt=a(function(ga,Ua){ga.isDragging&&!Ua.isDragging&&qe.tryAbandon()},[qe]);Ei(function(){var ga=q.getState(),Ua=q.subscribe(function(){var va=q.getState();kt(ga,va),ga=va});return Ua},[qe,q,kt]),Ei(function(){return qe.tryAbandon},[qe.tryAbandon]);var en=a(function(fa){return Yo({lockAPI:qe,registry:me,store:q,draggableId:fa})},[qe,me,q]),rn=a(function(fa,ga,Ua){return ns({lockAPI:qe,registry:me,contextId:K,store:q,draggableId:fa,forceSensorStop:ga,sourceEvent:Ua&&Ua.sourceEvent?Ua.sourceEvent:null})},[K,qe,me,q]),Ut=a(function(fa){return ul(K,fa)},[K]),It=a(function(fa){var ga=me.draggable.findById(fa);return ga?ga.options:null},[me.draggable]),qt=a(function(){if(!qe.isClaimed())return;qe.tryAbandon(),q.getState().phase!=="IDLE"&&q.dispatch(ma())},[qe,q]),Nn=a(qe.isClaimed,[qe]),Gr=p(function(){return{canGetLock:en,tryGetLock:rn,findClosestDraggableId:Ut,findOptionsForDraggable:It,tryReleaseLock:qt,isLockClaimed:Nn}},[en,rn,Ut,It,qt,Nn]);al(Ze);for(var qr=0;qr2&&arguments[2]!==void 0?arguments[2]:"0",ut=String(se);ut.length=12,Cr%=12);var ba=d.useMemo(function(){if(!cn)return[!1,!1];var Zn=[!0,!0];return Ta.forEach(function(An){var rr=An.disabled,ar=An.value;if(rr)return;ar>=12?Zn[1]=!1:Zn[0]=!1}),Zn},[cn,Ta]),za=Object(s.a)(ba,2),Xa=za[0],tr=za[1],In=d.useMemo(function(){return cn?Ta.filter(Ea?function(Zn){return Zn.value>=12}:function(Zn){return Zn.value<12}).map(function(Zn){var An=Zn.value%12,rr=An===0?"12":X(An,2);return Object(g.a)(Object(g.a)({},Zn),{},{label:rr,value:An})}):Ta},[cn,Ta]),En=he(0,59,Hn,_r&&_r(Cr)),Or=he(0,59,$n,vr&&vr(Cr,kr));ut.current={onUpDown:function(An){var rr=Dr[Kt];if(rr)for(var ar=rr.units.findIndex(function(Hr){return Hr.value===rr.value}),Pr=rr.units.length,sa=1;sa1&&(Yt=tt.addDate(Yt,-7)),Yt}function mt(se,tt,rt){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(tt){case"year":return rt.addYear(se,ut*10);case"quarter":case"month":return rt.addYear(se,ut);default:return rt.addMonth(se,ut)}}var lt=d.createContext({}),Ht=lt;function sn(se){var tt=se.cellPrefixCls,rt=se.generateConfig,ut=se.rangedValue,Kt=se.hoverRangedValue,Ct=se.isInView,Yt=se.isSameCell,nn=se.offsetCell,_n=se.today,cn=se.value;function ur(Mn){var fn,Hn=nn(Mn,-1),Xn=nn(Mn,1),$n=ge(ut,0),Yn=ge(ut,1),_r=ge(Kt,0),vr=ge(Kt,1),lr=Cn(rt,_r,vr,Mn);function wr(kr){return Yt($n,kr)}function Dr(kr){return Yt(Yn,kr)}var sr=Yt(_r,Mn),ia=Yt(vr,Mn),Ea=(lr||ia)&&(!Ct(Hn)||Dr(Hn)),Cr=(lr||sr)&&(!Ct(Xn)||wr(Xn));return fn={},Object(S.a)(fn,"".concat(tt,"-in-view"),Ct(Mn)),Object(S.a)(fn,"".concat(tt,"-in-range"),Cn(rt,$n,Yn,Mn)),Object(S.a)(fn,"".concat(tt,"-range-start"),wr(Mn)),Object(S.a)(fn,"".concat(tt,"-range-end"),Dr(Mn)),Object(S.a)(fn,"".concat(tt,"-range-start-single"),wr(Mn)&&!Yn),Object(S.a)(fn,"".concat(tt,"-range-end-single"),Dr(Mn)&&!$n),Object(S.a)(fn,"".concat(tt,"-range-start-near-hover"),wr(Mn)&&(Yt(Hn,_r)||Cn(rt,_r,vr,Hn))),Object(S.a)(fn,"".concat(tt,"-range-end-near-hover"),Dr(Mn)&&(Yt(Xn,vr)||Cn(rt,_r,vr,Xn))),Object(S.a)(fn,"".concat(tt,"-range-hover"),lr),Object(S.a)(fn,"".concat(tt,"-range-hover-start"),sr),Object(S.a)(fn,"".concat(tt,"-range-hover-end"),ia),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-start"),Ea),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-end"),Cr),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-start-near-range"),Ea&&Yt(Hn,Yn)),Object(S.a)(fn,"".concat(tt,"-range-hover-edge-end-near-range"),Cr&&Yt(Xn,$n)),Object(S.a)(fn,"".concat(tt,"-today"),Yt(_n,Mn)),Object(S.a)(fn,"".concat(tt,"-selected"),Yt(cn,Mn)),fn}return ur}function Tt(se){for(var tt=se.prefixCls,rt=se.disabledDate,ut=se.onSelect,Kt=se.rowNum,Ct=se.colNum,Yt=se.prefixColumn,nn=se.rowClassName,_n=se.baseDate,cn=se.getCellClassName,ur=se.getCellText,Mn=se.getCellNode,fn=se.getCellDate,Hn=se.titleCell,Xn=se.headerCells,$n=d.useContext(O),Yn=$n.onDateMouseEnter,_r=$n.onDateMouseLeave,vr="".concat(tt,"-cell"),lr=[],wr=0;wr2&&arguments[2]!==void 0?arguments[2]:!1;(st===$n||Ca)&&(ma(Rn),ia&&ia(Rn),Pr&&Pr(Rn,xr),Ea&&!Qt(nn,Rn,wn)&&Ea(Rn))},zn=function(Rn){return mr.current&&mr.current.onKeyDown?([y.a.LEFT,y.a.RIGHT,y.a.UP,y.a.DOWN,y.a.PAGE_UP,y.a.PAGE_DOWN,y.a.ENTER].includes(Rn.which)&&Rn.preventDefault(),mr.current.onKeyDown(Rn)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},gr=function(Rn){mr.current&&mr.current.onBlur&&mr.current.onBlur(Rn)};rr&&Ma!=="right"&&(rr.current={onKeyDown:zn,onClose:function(){mr.current&&mr.current.onClose&&mr.current.onClose()}}),d.useEffect(function(){_n&&!Kr.current&&vt(_n)},[_n]),d.useEffect(function(){Kr.current=!1},[]);var Xr,Jr=Object(g.a)(Object(g.a)({},se),{},{operationRef:mr,prefixCls:ut,viewDate:pt,value:wn,onViewDateChange:Me,sourceMode:zt,onPanelChange:on,disabledDate:st!=="decade"?fn:void 0});delete Jr.onChange,delete Jr.onSelect;switch(st){case"decade":Xr=d.createElement(B,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"year":Xr=d.createElement(Mt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"month":Xr=d.createElement(Xt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"quarter":Xr=d.createElement(bn,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"week":Xr=d.createElement(Dt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;case"time":delete Jr.showTime,Xr=d.createElement(Ce,Object.assign({},Jr,Object(x.a)(lr)==="object"?lr:null,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}));break;default:lr?Xr=d.createElement(xt,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}})):Xr=d.createElement(ye,Object.assign({},Jr,{onSelect:function(Rn,xr){Me(Rn),yn(Rn,xr)}}))}var aa,hn,Lr=function(){var Rn=nn.getNow(),xr=nt(nn.getHour(Rn),nn.getMinute(Rn),nn.getSecond(Rn),yr?za:1,zr?tr:1,Zn?En:1),Ca=He(nn,Rn,xr[0],xr[1],xr[2]);yn(Ca,"submit")};sa||(aa=H(ut,st,Dr),hn=ae({prefixCls:ut,components:Aa,needConfirmButton:Or,okDisabled:!wn||fn&&fn(wn),locale:Yt,showNow:vr,onNow:Or&&Lr,onOk:function(){wn&&(yn(wn,"submit",!0),Qr&&Qr(wn))}}));var oa;if(wr&&st==="date"&&$n==="date"&&!lr){var ya=nn.getNow(),yt="".concat(ut,"-today-btn"),Fr=fn&&fn(ya);oa=d.createElement("a",{className:p()(yt,Fr&&"".concat(yt,"-disabled")),"aria-disabled":Fr,onClick:function(){Fr||yn(ya,"mouse",!0)}},Yt.today)}return d.createElement(O.Provider,{value:Object(g.a)(Object(g.a)({},An),{},{hideHeader:"hideHeader"in se?sr:An.hideHeader,hidePrevBtn:pa&&Ma==="right",hideNextBtn:pa&&Ma==="left"})},d.createElement("div",{tabIndex:_r,className:p()("".concat(ut,"-panel"),Kt,(tt={},Object(S.a)(tt,"".concat(ut,"-panel-has-range"),la&&la[0]&&la[1]),Object(S.a)(tt,"".concat(ut,"-panel-has-range-hover"),Ir&&Ir[0]&&Ir[1]),Object(S.a)(tt,"".concat(ut,"-panel-rtl"),Ta==="rtl"),tt)),style:Ct,onKeyDown:zn,onBlur:gr,onMouseDown:kr,ref:ar},Xr,aa||hn||oa?d.createElement("div",{className:"".concat(ut,"-footer")},aa,hn,oa):null))}var oe=ue,ht=_("uciX"),vn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Tn(se){var tt,rt=se.prefixCls,ut=se.popupElement,Kt=se.popupStyle,Ct=se.visible,Yt=se.dropdownClassName,nn=se.dropdownAlign,_n=se.transitionName,cn=se.getPopupContainer,ur=se.children,Mn=se.range,fn=se.popupPlacement,Hn=se.direction,Xn="".concat(rt,"-dropdown"),$n=function(){return fn!==void 0?fn:Hn==="rtl"?"bottomRight":"bottomLeft"};return d.createElement(ht.a,{showAction:[],hideAction:[],popupPlacement:$n(),builtinPlacements:vn,prefixCls:Xn,popupTransitionName:_n,popup:ut,popupAlign:nn,popupVisible:Ct,popupClassName:p()(Yt,(tt={},Object(S.a)(tt,"".concat(Xn,"-range"),Mn),Object(S.a)(tt,"".concat(Xn,"-rtl"),Hn==="rtl"),tt)),popupStyle:Kt,getPopupContainer:cn},ur)}var fr=Tn;function Vt(se){var tt=se.open,rt=se.value,ut=se.isClickOutside,Kt=se.triggerOpen,Ct=se.forwardKeyDown,Yt=se.blurToCancel,nn=se.onSubmit,_n=se.onCancel,cn=se.onFocus,ur=se.onBlur,Mn=Object(d.useState)(!1),fn=Object(s.a)(Mn,2),Hn=fn[0],Xn=fn[1],$n=Object(d.useState)(!1),Yn=Object(s.a)($n,2),_r=Yn[0],vr=Yn[1],lr=Object(d.useRef)(!1),wr=Object(d.useRef)(!1),Dr={onMouseDown:function(){Xn(!0),Kt(!0)},onKeyDown:function(ia){switch(ia.which){case y.a.ENTER:{tt?nn()!==!1&&Xn(!0):Kt(!0),ia.preventDefault();return}case y.a.TAB:{Hn&&tt&&!ia.shiftKey?(Xn(!1),ia.preventDefault()):!Hn&&tt&&(!Ct(ia)&&ia.shiftKey&&(Xn(!0),ia.preventDefault()));return}case y.a.ESC:{Xn(!0),_n();return}}!tt&&![y.a.SHIFT].includes(ia.which)?Kt(!0):Hn||Ct(ia)},onFocus:function(ia){Xn(!0),vr(!0),cn&&cn(ia)},onBlur:function(ia){if(lr.current||!ut(document.activeElement)){lr.current=!1;return}Yt?setTimeout(function(){ut(document.activeElement)&&_n()},0):tt&&(Kt(!1),wr.current&&nn()),vr(!1),ur&&ur(ia)}};return Object(d.useEffect)(function(){wr.current=!1},[tt]),Object(d.useEffect)(function(){wr.current=!0},[rt]),Object(d.useEffect)(function(){return P(function(sr){var ia=sr.target;tt&&(ut(ia)?_r||Kt(!1):(lr.current=!0,requestAnimationFrame(function(){lr.current=!1})))})}),[Dr,{focused:_r,typing:Hn}]}function Et(se){var tt=se.valueTexts,rt=se.onTextChange,ut=d.useState(""),Kt=Object(s.a)(ut,2),Ct=Kt[0],Yt=Kt[1],nn=d.useRef([]);nn.current=tt;function _n(ur){Yt(ur),rt(ur)}function cn(){Yt(nn.current[0])}return d.useEffect(function(){tt.every(function(ur){return ur!==Ct})&&cn()},[tt.join("||")]),[Ct,_n,cn]}var Jt=_("Gytx"),Fn=_.n(Jt);function Vn(se,tt){var rt=tt.formatList,ut=tt.generateConfig,Kt=tt.locale;return Object(E.a)(function(){if(!se)return[[""],""];for(var Ct="",Yt=[],nn=0;nn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(cn.current),_r){_n(Yn);return}cn.current=requestAnimationFrame(function(){_n(Yn)})}var Mn=Vn(nn,{formatList:rt,generateConfig:ut,locale:Kt}),fn=Object(s.a)(Mn,2),Hn=fn[1];function Xn(Yn){ur(Yn)}function $n(){var Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ur(null,Yn)}return Object(d.useEffect)(function(){$n(!0)},[se]),Object(d.useEffect)(function(){return function(){return cancelAnimationFrame(cn.current)}},[]),[Hn,Xn,$n]}function ir(se){var tt,rt=se.prefixCls,ut=rt===void 0?"rc-picker":rt,Kt=se.id,Ct=se.tabIndex,Yt=se.style,nn=se.className,_n=se.dropdownClassName,cn=se.dropdownAlign,ur=se.popupStyle,Mn=se.transitionName,fn=se.generateConfig,Hn=se.locale,Xn=se.inputReadOnly,$n=se.allowClear,Yn=se.autoFocus,_r=se.showTime,vr=se.picker,lr=vr===void 0?"date":vr,wr=se.format,Dr=se.use12Hours,sr=se.value,ia=se.defaultValue,Ea=se.open,Cr=se.defaultOpen,kr=se.defaultOpenValue,Zr=se.suffixIcon,Qr=se.clearIcon,Aa=se.disabled,Ta=se.disabledDate,ba=se.placeholder,za=se.getPopupContainer,Xa=se.pickerRef,tr=se.panelRender,In=se.onChange,En=se.onOpenChange,Or=se.onFocus,yr=se.onBlur,zr=se.onMouseDown,Zn=se.onMouseUp,An=se.onMouseEnter,rr=se.onMouseLeave,ar=se.onContextMenu,Pr=se.onClick,sa=se.direction,Qn=se.autoComplete,Hr=Qn===void 0?"off":Qn,pa=d.useRef(null),Ma=lr==="date"&&!!_r||lr==="time",la=ee(o(wr,lr,_r,Dr)),Ir=d.useRef(null),mr=d.useRef(null),Kr=Object(f.a)(null,{value:sr,defaultValue:ia}),ra=Object(s.a)(Kr,2),Er=ra[0],wn=ra[1],ma=d.useState(Er),Mr=Object(s.a)(ma,2),$e=Mr[0],pt=Mr[1],vt=d.useRef(null),Me=Object(f.a)(!1,{value:Ea,defaultValue:Cr,postState:function(qn){return Aa?!1:qn},onChange:function(qn){En&&En(qn),!qn&&vt.current&&vt.current.onClose&&vt.current.onClose()}}),we=Object(s.a)(Me,2),Ke=we[0],De=we[1],st=Vn($e,{formatList:la,generateConfig:fn,locale:Hn}),ct=Object(s.a)(st,2),Bt=ct[0],gt=ct[1],zt=Et({valueTexts:Bt,onTextChange:function(qn){var Ar=fn.locale.parse(Hn.locale,qn,la);Ar&&(!Ta||!Ta(Ar))&&pt(Ar)}}),Ft=Object(s.a)(zt,3),on=Ft[0],yn=Ft[1],zn=Ft[2],gr=function(qn){pt(qn),wn(qn),In&&!Qt(fn,Er,qn)&&In(qn,qn?fn.locale.format(Hn.locale,qn,la[0]):"")},Xr=function(qn){if(Aa&&qn)return;De(qn)},Jr=function(qn){return Ke&&vt.current&&vt.current.onKeyDown?vt.current.onKeyDown(qn):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},aa=function(){Zn&&Zn.apply(void 0,arguments),pa.current&&(pa.current.focus(),Xr(!0))},hn=Vt({blurToCancel:Ma,open:Ke,value:on,triggerOpen:Xr,forwardKeyDown:Jr,isClickOutside:function(qn){return!W([Ir.current,mr.current],qn)},onSubmit:function(){return Ta&&Ta($e)?!1:(gr($e),Xr(!1),zn(),!0)},onCancel:function(){Xr(!1),pt(Er),zn()},onFocus:Or,onBlur:yr}),Lr=Object(s.a)(hn,2),oa=Lr[0],ya=Lr[1],yt=ya.focused,Fr=ya.typing;d.useEffect(function(){Ke||(pt(Er),!Bt.length||Bt[0]===""?yn(""):gt!==on&&zn())},[Ke,Bt]),d.useEffect(function(){Ke||zn()},[lr]),d.useEffect(function(){pt(Er)},[Er]),Xa&&(Xa.current={focus:function(){pa.current&&pa.current.focus()},blur:function(){pa.current&&pa.current.blur()}});var un=Object(g.a)(Object(g.a)({},se),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Rn=d.createElement(oe,Object.assign({},un,{generateConfig:fn,className:p()(Object(S.a)({},"".concat(ut,"-panel-focused"),!Fr)),value:$e,locale:Hn,tabIndex:-1,onChange:pt,direction:sa}));tr&&(Rn=tr(Rn));var xr=d.createElement("div",{className:"".concat(ut,"-panel-container"),onMouseDown:function(qn){qn.preventDefault()}},Rn),Ca;Zr&&(Ca=d.createElement("span",{className:"".concat(ut,"-suffix")},Zr));var Nr;$n&&Er&&!Aa&&(Nr=d.createElement("span",{onMouseDown:function(qn){qn.preventDefault(),qn.stopPropagation()},onMouseUp:function(qn){qn.preventDefault(),qn.stopPropagation(),gr(null),Xr(!1)},className:"".concat(ut,"-clear")},Qr||d.createElement("span",{className:"".concat(ut,"-clear-btn")})));var Sr=function(qn,Ar){(Ar==="submit"||Ar!=="key"&&!Ma)&&(gr(qn),Xr(!1))},xa=sa==="rtl"?"bottomRight":"bottomLeft",Vr=Kn(on,{formatList:la,generateConfig:fn,locale:Hn}),nr=Object(s.a)(Vr,3),Wr=nr[0],Wn=nr[1],pn=nr[2];return d.createElement(O.Provider,{value:{operationRef:vt,hideHeader:lr==="time",panelRef:Ir,onSelect:Sr,open:Ke,defaultOpenValue:kr,onDateMouseEnter:Wn,onDateMouseLeave:pn}},d.createElement(fr,{visible:Ke,popupElement:xr,popupStyle:ur,prefixCls:ut,dropdownClassName:_n,dropdownAlign:cn,getPopupContainer:za,transitionName:Mn,popupPlacement:xa,direction:sa},d.createElement("div",{className:p()(ut,nn,(tt={},Object(S.a)(tt,"".concat(ut,"-disabled"),Aa),Object(S.a)(tt,"".concat(ut,"-focused"),yt),Object(S.a)(tt,"".concat(ut,"-rtl"),sa==="rtl"),tt)),style:Yt,onMouseDown:zr,onMouseUp:aa,onMouseEnter:An,onMouseLeave:rr,onContextMenu:ar,onClick:Pr},d.createElement("div",{className:p()("".concat(ut,"-input"),Object(S.a)({},"".concat(ut,"-input-placeholder"),!!Wr)),ref:mr},d.createElement("input",Object.assign({id:Kt,tabIndex:Ct,disabled:Aa,readOnly:Xn||!Fr,value:Wr||on,onChange:function(qn){yn(qn.target.value)},autoFocus:Yn,placeholder:ba,ref:pa,title:on},oa,{size:l(lr,la[0])},be(se),{autoComplete:Hr})),Ca,Nr))))}var jr=function(se){Object(L.a)(rt,se);var tt=Object(U.a)(rt);function rt(){var ut;return Object(Y.a)(this,rt),ut=tt.apply(this,arguments),ut.pickerRef=d.createRef(),ut.focus=function(){ut.pickerRef.current&&ut.pickerRef.current.focus()},ut.blur=function(){ut.pickerRef.current&&ut.pickerRef.current.blur()},ut}return Object(j.a)(rt,[{key:"render",value:function(){return d.createElement(ir,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),rt}(d.Component),ua=jr;function Yr(se,tt,rt){var ut=se.picker,Kt=se.locale,Ct=se.selectedValue,Yt=se.disabledDate,nn=se.disabled,_n=se.generateConfig,cn=ge(Ct,0),ur=ge(Ct,1);function Mn(Yn){var _r=_n.getYear(Yn),vr=_n.locale.getWeek(Kt.locale,Yn);return _r*100+vr}function fn(Yn){var _r=_n.getYear(Yn),vr=_n.getMonth(Yn);return _r*100+vr}function Hn(Yn){var _r=_n.getYear(Yn),vr=Pe(_n,Yn);return _r*10+vr}var Xn=d.useCallback(function(Yn){if(Yt&&Yt(Yn))return!0;if(nn[1]&&ur)return!At(_n,Yn,ur)&&_n.isAfter(Yn,ur);if(tt&&ur)switch(ut){case"quarter":return Hn(Yn)>Hn(ur);case"month":return fn(Yn)>fn(ur);case"week":return Mn(Yn)>Mn(ur);default:return!At(_n,Yn,ur)&&_n.isAfter(Yn,ur)}return!1},[Yt,nn[1],ur,tt]),$n=d.useCallback(function(Yn){if(Yt&&Yt(Yn))return!0;if(nn[0]&&cn)return!At(_n,Yn,ur)&&_n.isAfter(cn,Yn);if(rt&&cn)switch(ut){case"quarter":return Hn(Yn)0&&arguments[0]!==void 0?arguments[0]:!1,na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oa=null;pn&&pi&&pi[0]&&pi[1]&&Xn.isAfter(pi[1],pi[0])&&(Oa=pi);var Ka=sr;if(sr&&Object(x.a)(sr)==="object"&&sr.defaultValue){var ii=sr.defaultValue;Ka=Object(g.a)(Object(g.a)({},sr),{},{defaultValue:ge(ii,gt)||void 0})}var Yi=null;return Xa&&(Yi=function(xi,Qi){return Xa(xi,Qi,{range:gt?"end":"start"})}),d.createElement(Ht.Provider,{value:{inRange:!0,panelPosition:Wa,rangedValue:yi||yt,hoverRangedValue:Oa}},d.createElement(oe,Object.assign({},se,na,{dateRender:Yi,showTime:Ka,mode:xr[gt],generateConfig:Xn,style:void 0,direction:Kr,disabledDate:gt===0?Vr:nr,disabledTime:function(xi){return za?za(xi,gt===0?"start":"end"):!1},className:p()(Object(S.a)({},"".concat(Ct,"-panel-focused"),gt===0?!ui:!Mi)),value:ge(yt,gt),locale:$n,tabIndex:-1,onPanelChange:function(xi,Qi){Nr(je(xr,Qi,gt),je(yt,xi,gt));var Eo=xi;Wa==="right"&&xr[gt]===Qi&&(Eo=mt(Eo,Qi,Xn,-1)),Lr(Eo,gt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ha=0,ci=0;gt&&vt.current&&we.current&&pt.current&&(Ha=vt.current.offsetWidth+we.current.offsetWidth,pt.current.offsetWidth&&Ha>pt.current.offsetWidth&&(ci=Ha));var gi=Kr==="rtl"?{right:Ha}:{left:Ha};function Ri(){var Wa,na=H(Ct,xr[gt],ar),Oa=ae({prefixCls:Ct,components:Ir,needConfirmButton:ma,okDisabled:!ge(yt,gt)||ba&&ba(yt[gt]),locale:$n,rangeList:ja,onOk:function(){ge(yt,gt)&&(qa(yt,gt),la&&la(yt))}});if(Dr!=="time"&&!sr){var Ka=hn(gt),ii=mt(Ka,Dr,Xn),Yi=xr[gt],ao=Yi===Dr,xi=Fa(ao?"left":!1,{pickerValue:Ka,onPickerValueChange:function(bi){Lr(bi,gt)}}),Qi=Fa("right",{pickerValue:ii,onPickerValueChange:function(bi){Lr(mt(bi,Dr,Xn,-1),gt)}});Kr==="rtl"?Wa=d.createElement(d.Fragment,null,Qi,ao&&xi):Wa=d.createElement(d.Fragment,null,xi,ao&&Qi)}else Wa=Fa();var Eo=d.createElement(d.Fragment,null,d.createElement("div",{className:"".concat(Ct,"-panels")},Wa),(na||Oa)&&d.createElement("div",{className:"".concat(Ct,"-footer")},na,Oa));return tr&&(Eo=tr(Eo)),d.createElement("div",{className:"".concat(Ct,"-panel-container"),style:{marginLeft:ci},ref:pt,onMouseDown:function(bi){bi.preventDefault()}},Eo)}var ki=d.createElement("div",{className:p()("".concat(Ct,"-range-wrapper"),"".concat(Ct,"-").concat(Dr,"-range-wrapper")),style:{minWidth:La}},d.createElement("div",{className:"".concat(Ct,"-range-arrow"),style:gi}),Ri()),Ci;yr&&(Ci=d.createElement("span",{className:"".concat(Ct,"-suffix")},yr));var li;Or&&(ge(gr,0)&&!on[0]||ge(gr,1)&&!on[1])&&(li=d.createElement("span",{onMouseDown:function(na){na.preventDefault(),na.stopPropagation()},onMouseUp:function(na){na.preventDefault(),na.stopPropagation();var Oa=gr;on[0]||(Oa=je(Oa,null,0)),on[1]||(Oa=je(Oa,null,1)),qa(Oa,null),ka(!1,gt)},className:"".concat(Ct,"-clear")},zr||d.createElement("span",{className:"".concat(Ct,"-clear-btn")})));var Mo={size:l(Dr,st[0])},_o=0,Lo=0;vt.current&&Me.current&&we.current&&(gt===0?Lo=vt.current.offsetWidth:(_o=Ha,Lo=Me.current.offsetWidth));var Bi=Kr==="rtl"?{right:_o}:{left:_o},Za=function(na,Oa){var Ka=je(yt,na,gt);Oa==="submit"||Oa!=="key"&&!ma?(qa(Ka,gt),gt===0?po():Ro()):Fr(Ka)};return d.createElement(O.Provider,{value:{operationRef:Ft,hideHeader:Dr==="time",onDateMouseEnter:bo,onDateMouseLeave:so,hideRanges:!0,onSelect:Za,open:pn}},d.createElement(fr,{visible:pn,popupElement:ki,popupStyle:cn,prefixCls:Ct,dropdownClassName:ur,dropdownAlign:fn,getPopupContainer:Hn,transitionName:Mn,range:!0,direction:Kr},d.createElement("div",Object.assign({ref:$e,className:p()(Ct,"".concat(Ct,"-range"),_n,(tt={},Object(S.a)(tt,"".concat(Ct,"-disabled"),on[0]&&on[1]),Object(S.a)(tt,"".concat(Ct,"-focused"),gt===0?_i:Oo),Object(S.a)(tt,"".concat(Ct,"-rtl"),Kr==="rtl"),tt)),style:nn,onClick:si,onMouseDown:ca},be(se)),d.createElement("div",{className:p()("".concat(Ct,"-input"),(rt={},Object(S.a)(rt,"".concat(Ct,"-input-active"),gt===0),Object(S.a)(rt,"".concat(Ct,"-input-placeholder"),!!Vi),rt)),ref:vt},d.createElement("input",Object.assign({id:Yt,disabled:on[0],readOnly:An||!ui,value:Vi||wi,onChange:function(na){eo(na.target.value)},autoFocus:_r,placeholder:ge(Yn,0)||"",ref:Ke},Oi,Mo,{autoComplete:wn}))),d.createElement("div",{className:"".concat(Ct,"-range-separator"),ref:we},Cr),d.createElement("div",{className:p()("".concat(Ct,"-input"),(ut={},Object(S.a)(ut,"".concat(Ct,"-input-active"),gt===1),Object(S.a)(ut,"".concat(Ct,"-input-placeholder"),!!Xi),ut)),ref:Me},d.createElement("input",Object.assign({disabled:on[1],readOnly:An||!Mi,value:Xi||Ra,onChange:function(na){Sa(na.target.value)},placeholder:ge(Yn,1)||"",ref:De},ji,Mo,{autoComplete:wn}))),d.createElement("div",{className:"".concat(Ct,"-active-bar"),style:Object(g.a)(Object(g.a)({},Bi),{},{width:Lo,position:"absolute"})}),Ci,li)))}var Dn=function(se){Object(L.a)(rt,se);var tt=Object(U.a)(rt);function rt(){var ut;return Object(Y.a)(this,rt),ut=tt.apply(this,arguments),ut.pickerRef=d.createRef(),ut.focus=function(){ut.pickerRef.current&&ut.pickerRef.current.focus()},ut.blur=function(){ut.pickerRef.current&&ut.pickerRef.current.blur()},ut}return Object(j.a)(rt,[{key:"render",value:function(){return d.createElement(or,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),rt}(d.Component),pr=Dn,Gn=ie.b=ua},onxn:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Ye,ie,_){(function(Y){Y(_("VrN/"))})(function(Y){"use strict";var j=Y.Pos;function L(i,r){return i.line-r.line||i.ch-r.ch}var U="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",S=U+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+U+"]["+S+"]*)","g");function s(i,r,u,h){this.line=r,this.ch=u,this.cm=i,this.text=i.getLine(r),this.min=h?Math.max(h.from,i.firstLine()):i.firstLine(),this.max=h?Math.min(h.to-1,i.lastLine()):i.lastLine()}function d(i,r){var u=i.cm.getTokenTypeAt(j(i.line,r));return u&&/\btag\b/.test(u)}function w(i){return i.line>=i.max?void 0:(i.ch=0,i.text=i.cm.getLine(++i.line),!0)}function p(i){return i.line<=i.min?void 0:(i.text=i.cm.getLine(--i.line),i.ch=i.text.length,!0)}function a(i){for(;;){var r=i.text.indexOf(">",i.ch);if(r==-1){if(w(i))continue;return}if(!d(i,r+1)){i.ch=r+1;continue}var u=i.text.lastIndexOf("/",r),h=u>-1&&!/\S/.test(i.text.slice(u+1,r));return i.ch=r+1,h?"selfClose":"regular"}}function f(i){for(;;){var r=i.ch?i.text.lastIndexOf("<",i.ch-1):-1;if(r==-1){if(p(i))continue;return}if(!d(i,r+1)){i.ch=r;continue}g.lastIndex=r,i.ch=r;var u=g.exec(i.text);if(u&&u.index==r)return u}}function x(i){for(;;){g.lastIndex=i.ch;var r=g.exec(i.text);if(!r){if(w(i))continue;return}if(!d(i,r.index+1)){i.ch=r.index+1;continue}return i.ch=r.index+r[0].length,r}}function y(i){for(;;){var r=i.ch?i.text.lastIndexOf(">",i.ch-1):-1;if(r==-1){if(p(i))continue;return}if(!d(i,r+1)){i.ch=r;continue}var u=i.text.lastIndexOf("/",r),h=u>-1&&!/\S/.test(i.text.slice(u+1,r));return i.ch=r+1,h?"selfClose":"regular"}}function m(i,r){for(var u=[];;){var h=x(i),b,E=i.line,t=i.ch-(h?h[0].length:0);if(!h||!(b=a(i)))return;if(b=="selfClose")continue;if(h[1]){for(var C=u.length-1;C>=0;--C)if(u[C]==h[2]){u.length=C;break}if(C<0&&(!r||r==h[2]))return{tag:h[2],from:j(E,t),to:j(i.line,i.ch)}}else u.push(h[2])}}function O(i,r){for(var u=[];;){var h=y(i);if(!h)return;if(h=="selfClose"){f(i);continue}var b=i.line,E=i.ch,t=f(i);if(!t)return;if(t[1])u.push(t[2]);else{for(var C=u.length-1;C>=0;--C)if(u[C]==t[2]){u.length=C;break}if(C<0&&(!r||r==t[2]))return{tag:t[2],from:j(i.line,i.ch),to:j(b,E)}}}}Y.registerHelper("fold","xml",function(i,r){for(var u=new s(i,r.line,0);;){var h=x(u);if(!h||u.line!=r.line)return;var b=a(u);if(!b)return;if(!h[1]&&b!="selfClose"){var E=j(u.line,u.ch),t=m(u,h[2]);return t&&L(t.from,E)>0?{from:E,to:t.from}:null}}}),Y.findMatchingTag=function(i,r,u){var h=new s(i,r.line,r.ch,u);if(h.text.indexOf(">")==-1&&h.text.indexOf("<")==-1)return;var b=a(h),E=b&&j(h.line,h.ch),t=b&&f(h);if(!b||!t||L(h,r)>0)return;var C={from:j(h.line,h.ch),to:E,tag:t[2]};return b=="selfClose"?{open:C,close:null,at:"open"}:t[1]?{open:O(h,t[2]),close:C,at:"close"}:(h=new s(i,E.line,E.ch,u),{open:C,close:m(h,t[2]),at:"open"})},Y.findEnclosingTag=function(i,r,u,h){for(var b=new s(i,r.line,r.ch,u);;){var E=O(b,h);if(!E)break;var t=new s(i,r.line,r.ch,u),C=m(t,E.tag);if(C)return{open:E,close:C}}},Y.scanForClosingTag=function(i,r,u,h){var b=new s(i,r.line,r.ch,h?{from:0,to:h}:null);return m(b,u)}})},p5ED:function(Ye,ie,_){"use strict";var Y=_("+L6B"),j=_("2/Rp"),L=_("5Dmo"),U=_("3S7+"),S=_("k1fw"),g=_("9og8"),s=_("tJVT"),d=_("WmNS"),w=_.n(d),p=_("q1tI"),a=_.n(p),f=_("vHTk"),x=_.n(f),y=_("yEEn"),m=_("ZW9T"),O=_("1vsH"),i=_("V0Rq"),r=_("m3rI");ie.a=function(u){var h,b,E,t,C,A,v=u.editOffice,o=v===void 0?"view":v,l=u.name,c=u.data,M=u.theme,P=u.type,R=u.filename,k=u.monacoEditor,I=u.className,F=u.style,V=u.close,W=u.onClose,G=u.hasMask,J=u.disabledDownload,X=u.onImgDimensions,te=u.otherData,ee=Object(p.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),be=Object(s.a)(ee,2),ge=be[0],je=be[1],He=Object(p.useState)(""),nt=Object(s.a)(He,2),Ge=nt[0],he=nt[1],ce=Object(p.useState)(),Ee=Object(s.a)(ce,2),fe=Ee[0],Ne=Ee[1],Ce=window.ENV==="build"?"/react/build":"",xe=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,ze,Le=1024*1024,Fe=10*Le,Pe=Object(p.useRef)();(h=c)!==null&&h!==void 0&&h.startsWith("/api")&&P!=="txt"&&(c=r.a.API_SERVER+c),P==="office"&&(ze=Object(O.P)(c).filesize,ze>Fe&&(P="other")),R&&(k.filename=R),Object(p.useEffect)(function(){var Rt,tn,Qt=(Rt=document.cookie)===null||Rt===void 0||((tn=Rt.replace(/\s/g,""))===null||tn===void 0)?void 0:tn.split(";");Qt==null||Qt.map(function(Cn){var Un=Cn.split("=");Un[0]==="_educoder_session"&&he(Un[1])})},[]),Object(p.useEffect)(function(){P==="office"&&Ve()},[P,c]);var Ve=function(){var Rt=Object(g.a)(w.a.mark(function tn(){var Qt,Cn,Un;return w.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return console.log("data:",c),Qt=c,c.startsWith("http")||(Qt=location.origin+Qt),Cn=new URL(Qt).pathname.split("/").pop(),lt.next=6,Object(i.U)({attachment_id:Cn});case 6:Un=lt.sent,Ne(Un);case 8:case"end":return lt.stop()}},tn)}));return function(){return Rt.apply(this,arguments)}}(),at=function(){if(c.startsWith("http")||c.startsWith("blob:")){At();return}Object(O.x)(R||"educoder",c,R)},At=function(){Object(O.v)(R||"educoder",decodeURIComponent(c))};return a.a.createElement("div",{style:Object(S.a)({},F||{}),className:"".concat(G&&x.a.bgBlack," ").concat(P?x.a.wrp:"hide")},V&&a.a.createElement("div",{className:x.a.close,ref:Pe},!!X&&a.a.createElement(U.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Pe.current}},a.a.createElement("span",{onClick:function(){W(),X()}},a.a.createElement("i",{className:"icon-yulanpizhu"}))),!J&&a.a.createElement(U.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Pe.current}},a.a.createElement("span",{onClick:At},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(U.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Pe.current}},a.a.createElement("span",{className:"",onClick:W},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(x.a[I]," ").concat(I," ").concat(x.a.monaco," ").concat(P==="txt"?"show":"hide")},P==="txt"&&a.a.createElement(m.b,k)),P==="audio"&&a.a.createElement("audio",{src:"".concat(((b=c)===null||b===void 0?void 0:b.indexOf("http://"))>-1||((E=c)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),P==="video"&&a.a.createElement(a.a.Fragment,null,((t=c)===null||t===void 0?void 0:t.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),P==="office"&&fe&&a.a.createElement("iframe",{src:"".concat(Ce,"/office.html?key=").concat(fe.key,"&url=").concat(xe+fe.url,"&callbackUrl=").concat(xe+fe.callbackUrl,"&fileType=").concat(fe.fileType,"&title=").concat(fe.title,"&model=").concat(o,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!J)}),(P==="xlsx"||P==="doc"||P==="pptx"||P==="docx")&&a.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(te.key,"&url=").concat(r.a.API_SERVER+te.url,"&callbackUrl=").concat(r.a.API_SERVER+te.callbackUrl,"&fileType=").concat(te.fileType,"&title=").concat(te.title,"&model=").concat(te.model)}),P==="html"&&a.a.createElement("iframe",{src:c+"&disposition=inline"}),P==="pdf"&&a.a.createElement("embed",{className:x.a.embed,src:c}),P==="image"&&a.a.createElement("img",{src:"".concat(((C=c)===null||C===void 0?void 0:C.indexOf("http://"))>-1||((A=c)===null||A===void 0?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(c)}),P==="other"&&a.a.createElement("div",null,a.a.createElement(j.a,{type:"primary",size:"large",onClick:at},a.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),P==="download"&&a.a.createElement(j.a,{type:"primary",size:"large",onClick:at},a.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Ye,ie,_){},pmY6:function(Ye,ie,_){"use strict";_.d(ie,"g",function(){return S}),_.d(ie,"f",function(){return g}),_.d(ie,"e",function(){return s}),_.d(ie,"h",function(){return d}),_.d(ie,"b",function(){return w}),_.d(ie,"a",function(){return p}),_.d(ie,"d",function(){return a}),_.d(ie,"c",function(){return f});var Y=!1,j="__is_disposable_tracked__";function L(x){if(!Y)return;if(x&&x!==p.None)try{x[j]=!0}catch(y){}}function U(x){if(!Y)return x;var y=new Error("Potentially leaked disposable").stack;return setTimeout(function(){x[j]||console.log(y)},3e3),x}function S(x){return typeof x.dispose=="function"&&x.dispose.length===0}function g(x){return Array.isArray(x)?(x.forEach(function(y){y&&(L(y),y.dispose())}),[]):x?(L(x),x.dispose(),x):void 0}function s(){for(var x=[],y=0;y=0&&(mt=Ve[Un],mt.textAlign==="right");)l(J,X,mt,ee,At,ze,Cn,"right"),Rt-=mt.width,Cn-=mt.width,Un--;for(Qt+=(ge-(Qt-xe)-(Le-Cn)-Rt)/2;tn<=Un;)mt=Ve[tn],l(J,X,mt,ee,At,ze,Qt+mt.width/2,"center"),Qt+=mt.width,tn++;ze+=At}}function o(J,X,te,ee,be){if(te&&X.textRotation){var ge=X.textOrigin;ge==="center"?(ee=te.width/2+te.x,be=te.height/2+te.y):ge&&(ee=ge[0]+te.x,be=ge[1]+te.y),J.translate(ee,be),J.rotate(-X.textRotation),J.translate(-ee,-be)}}function l(J,X,te,ee,be,ge,je,He){var nt=ee.rich[te.styleName]||{};nt.text=te.text;var Ge=te.textVerticalAlign,he=ge+be/2;Ge==="top"?he=ge+te.height/2:Ge==="bottom"&&(he=ge+be-te.height/2),!te.isLineHolder&&c(nt)&&M(J,X,nt,He==="right"?je-te.width:He==="center"?je-te.width/2:je,he-te.height/2,te.width,te.height);var ce=te.textPadding;ce&&(je=W(je,He,ce),he-=te.height/2-ce[2]-te.textHeight/2),k(X,"shadowBlur",L(nt.textShadowBlur,ee.textShadowBlur,0)),k(X,"shadowColor",nt.textShadowColor||ee.textShadowColor||"transparent"),k(X,"shadowOffsetX",L(nt.textShadowOffsetX,ee.textShadowOffsetX,0)),k(X,"shadowOffsetY",L(nt.textShadowOffsetY,ee.textShadowOffsetY,0)),k(X,"textAlign",He),k(X,"textBaseline","middle"),k(X,"font",te.font||m);var Ee=I(nt.textStroke||ee.textStroke,Ne),fe=F(nt.textFill||ee.textFill),Ne=j(nt.textStrokeWidth,ee.textStrokeWidth);Ee&&(k(X,"lineWidth",Ne),k(X,"strokeStyle",Ee),X.strokeText(te.text,je,he)),fe&&(k(X,"fillStyle",fe),X.fillText(te.text,je,he))}function c(J){return!!(J.textBackgroundColor||J.textBorderWidth&&J.textBorderColor)}function M(J,X,te,ee,be,ge,je){var He=te.textBackgroundColor,nt=te.textBorderWidth,Ge=te.textBorderColor,he=g(He);if(k(X,"shadowBlur",te.textBoxShadowBlur||0),k(X,"shadowColor",te.textBoxShadowColor||"transparent"),k(X,"shadowOffsetX",te.textBoxShadowOffsetX||0),k(X,"shadowOffsetY",te.textBoxShadowOffsetY||0),he||nt&&Ge){X.beginPath();var ce=te.textBorderRadius;ce?w.buildPath(X,{x:ee,y:be,width:ge,height:je,r:ce}):X.rect(ee,be,ge,je),X.closePath()}if(he)if(k(X,"fillStyle",He),te.fillOpacity!=null){var Ee=X.globalAlpha;X.globalAlpha=te.fillOpacity*te.opacity,X.fill(),X.globalAlpha=Ee}else X.fill();else if(s(He)){var fe=He.image;fe=p.createOrUpdateImage(fe,null,J,P,He),fe&&p.isImageReady(fe)&&X.drawImage(fe,ee,be,ge,je)}if(nt&&Ge)if(k(X,"lineWidth",nt),k(X,"strokeStyle",Ge),te.strokeOpacity!=null){var Ee=X.globalAlpha;X.globalAlpha=te.strokeOpacity*te.opacity,X.stroke(),X.globalAlpha=Ee}else X.stroke()}function P(J,X){X.image=J}function R(J,X,te,ee){var be=te.x||0,ge=te.y||0,je=te.textAlign,He=te.textVerticalAlign;if(ee){var nt=te.textPosition;if(nt instanceof Array)be=ee.x+V(nt[0],ee.width),ge=ee.y+V(nt[1],ee.height);else{var Ge=X&&X.calculateTextPosition?X.calculateTextPosition(u,te,ee):d.calculateTextPosition(u,te,ee);be=Ge.x,ge=Ge.y,je=je||Ge.textAlign,He=He||Ge.textVerticalAlign}var he=te.textOffset;he&&(be+=he[0],ge+=he[1])}return J=J||{},J.baseX=be,J.baseY=ge,J.textAlign=je,J.textVerticalAlign=He,J}function k(J,X,te){return J[X]=a(J,X,te),J[X]}function I(J,X){return J==null||X<=0||J==="transparent"||J==="none"?null:J.image||J.colorStops?"#000":J}function F(J){return J==null||J==="none"?null:J.image||J.colorStops?"#000":J}function V(J,X){return typeof J=="string"?J.lastIndexOf("%")>=0?parseFloat(J)/100*X:parseFloat(J):J}function W(J,X,te){return X==="right"?J-te[1]:X==="center"?J+te[3]/2-te[1]/2:J+te[3]}function G(J,X){return J!=null&&(J||X.textBackgroundColor||X.textBorderWidth&&X.textBorderColor||X.textPadding)}ie.normalizeTextStyle=b,ie.renderText=t,ie.getBoxPosition=R,ie.getStroke=I,ie.getFill=F,ie.parsePercent=V,ie.needDrawText=G},qH13:function(Ye,ie,_){var Y=_("ItGF"),j=_("QBsz"),L=j.applyTransform,U=_("mFDi"),S=_("Qe9p"),g=_("6GrX"),s=_("pzxd"),d=_("ni6a"),w=_("Gev7"),p=_("Dagg"),a=_("dqUG"),f=_("y+Vt"),x=_("IMiH"),y=_("QuXc"),m=_("06Qe"),O=x.CMD,i=Math.round,r=Math.sqrt,u=Math.abs,h=Math.cos,b=Math.sin,E=Math.max;if(!Y.canvasSupported){var t=",",C="progid:DXImageTransform.Microsoft",A=21600,v=A/2,o=1e5,l=1e3,c=function(Fe){Fe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Fe.coordsize=A+","+A,Fe.coordorigin="0,0"},M=function(Fe){return String(Fe).replace(/&/g,"&").replace(/"/g,""")},P=function(Fe,Pe,Ve){return"rgb("+[Fe,Pe,Ve].join(",")+")"},R=function(Fe,Pe){Pe&&Fe&&Pe.parentNode!==Fe&&Fe.appendChild(Pe)},k=function(Fe,Pe){Pe&&Fe&&Pe.parentNode===Fe&&Fe.removeChild(Pe)},I=function(Fe,Pe,Ve){return(parseFloat(Fe)||0)*o+(parseFloat(Pe)||0)*l+Ve},F=s.parsePercent,V=function(Fe,Pe,Ve){var at=S.parse(Pe);Ve=+Ve,isNaN(Ve)&&(Ve=1),at&&(Fe.color=P(at[0],at[1],at[2]),Fe.opacity=Ve*at[3])},W=function(Fe){var Pe=S.parse(Fe);return[P(Pe[0],Pe[1],Pe[2]),Pe[3]]},G=function(Fe,Pe,Ve){var at=Pe.fill;if(at!=null)if(at instanceof y){var At,Rt=0,tn=[0,0],Qt=0,Cn=1,Un=Ve.getBoundingRect(),mt=Un.width,lt=Un.height;if(at.type==="linear"){At="gradient";var Ht=Ve.transform,sn=[at.x*mt,at.y*lt],Tt=[at.x2*mt,at.y2*lt];Ht&&(L(sn,sn,Ht),L(Tt,Tt,Ht));var wt=Tt[0]-sn[0],Qe=Tt[1]-sn[1];Rt=Math.atan2(wt,Qe)*180/Math.PI,Rt<0&&(Rt+=360),Rt<1e-6&&(Rt=0)}else{At="gradientradial";var sn=[at.x*mt,at.y*lt],Ht=Ve.transform,Je=Ve.scale,Xe=mt,Oe=lt;tn=[(sn[0]-Un.x)/Xe,(sn[1]-Un.y)/Oe],Ht&&L(sn,sn,Ht),Xe/=Je[0]*A,Oe/=Je[1]*A;var Ae=E(Xe,Oe);Qt=2*0/Ae,Cn=2*at.r/Ae-Qt}var ye=at.colorStops.slice();ye.sort(function(Lt,Be){return Lt.offset-Be.offset});for(var Se=ye.length,dt=[],et=[],xt=0;xt=2){var _t=dt[0][0],mn=dt[1][0],pe=dt[0][1]*Pe.opacity,Gt=dt[1][1]*Pe.opacity;Fe.type=At,Fe.method="none",Fe.focus="100%",Fe.angle=Rt,Fe.color=_t,Fe.color2=mn,Fe.colors=et.join(","),Fe.opacity=Gt,Fe.opacity2=pe}At==="radial"&&(Fe.focusposition=tn.join(","))}else V(Fe,at,Pe.opacity)},J=function(Fe,Pe){Pe.lineDash&&(Fe.dashstyle=Pe.lineDash.join(" ")),Pe.stroke!=null&&!(Pe.stroke instanceof y)&&V(Fe,Pe.stroke,Pe.opacity)},X=function(Fe,Pe,Ve,at){var At=Pe==="fill",Rt=Fe.getElementsByTagName(Pe)[0];Ve[Pe]!=null&&Ve[Pe]!=="none"&&(At||!At&&Ve.lineWidth)?(Fe[At?"filled":"stroked"]="true",Ve[Pe]instanceof y&&k(Fe,Rt),Rt||(Rt=m.createNode(Pe)),At?G(Rt,Ve,at):J(Rt,Ve),R(Fe,Rt)):(Fe[At?"filled":"stroked"]="false",k(Fe,Rt))},te=[[],[],[]],ee=function(Fe,Pe){var Ve=O.M,at=O.C,At=O.L,Rt=O.A,tn=O.Q,Qt=[],Cn,Un,mt,lt,Ht,sn,Tt=Fe.data,wt=Fe.len();for(lt=0;lt.01?Be&&(ot+=270/A):Math.abs(Xt-_t)<1e-4?Be&&otDt?Je-=270/A:Je+=270/A:Be&&Xt<_t||!Be&&Xt>_t?Qe+=270/A:Qe-=270/A),Qt.push(Pt,i(((Dt-mn)*et+Se)*A-v),t,i(((_t-pe)*xt+dt)*A-v),t,i(((Dt+mn)*et+Se)*A-v),t,i(((_t+pe)*xt+dt)*A-v),t,i((ot*et+Se)*A-v),t,i((Xt*xt+dt)*A-v),t,i((Qe*et+Se)*A-v),t,i((Je*xt+dt)*A-v)),Ht=Qe,sn=Je;break;case O.R:var $t=te[0],Zt=te[1];$t[0]=Tt[lt++],$t[1]=Tt[lt++],Zt[0]=$t[0]+Tt[lt++],Zt[1]=$t[1]+Tt[lt++],Pe&&(L($t,$t,Pe),L(Zt,Zt,Pe)),$t[0]=i($t[0]*A-v),Zt[0]=i(Zt[0]*A-v),$t[1]=i($t[1]*A-v),Zt[1]=i(Zt[1]*A-v),Qt.push(" m ",$t[0],t,$t[1]," l ",Zt[0],t,$t[1]," l ",Zt[0],t,Zt[1]," l ",$t[0],t,Zt[1]);break;case O.Z:Qt.push(" x ")}if(Cn>0){Qt.push(Un);for(var bt=0;btnt&&(He=0,je={});var Ve=Ge.style,at;try{Ve.font=Fe,at=Ve.fontFamily.split(",")[0]}catch(At){}Pe={style:Ve.fontStyle||ge,variant:Ve.fontVariant||ge,weight:Ve.fontWeight||ge,size:parseFloat(Ve.fontSize||12)|0,family:at||"Microsoft YaHei"},je[Fe]=Pe,He++}return Pe},ce;g.$override("measureText",function(Fe,Pe){var Ve=m.doc;ce||(ce=Ve.createElement("div"),ce.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(ce));try{ce.style.font=Pe}catch(at){}return ce.innerHTML="",ce.appendChild(Ve.createTextNode(Fe)),{width:ce.offsetWidth}});for(var Ee=new U,fe=function(Fe,Pe,Ve,at){var At=this.style;this.__dirty&&s.normalizeTextStyle(At,!0);var Rt=At.text;if(Rt!=null&&(Rt+=""),!Rt)return;if(At.rich){var tn=g.parseRichText(Rt,At);Rt=[];for(var Qt=0;Qt=0&&(this.delFromStorage(d),this._roots.splice(f,1),d instanceof L&&d.delChildrenFromStorage(this))},addToStorage:function(d){return d&&(d.__storage=this,d.dirty(!1)),this},delFromStorage:function(d){return d&&(d.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:S};var s=g;Ye.exports=s},rA99:function(Ye,ie,_){var Y=_("y+Vt"),j=_("QBsz"),L=_("Sj9i"),U=L.quadraticSubdivide,S=L.cubicSubdivide,g=L.quadraticAt,s=L.cubicAt,d=L.quadraticDerivativeAt,w=L.cubicDerivativeAt,p=[];function a(x,y,m){var O=x.cpx2,i=x.cpy2;return O===null||i===null?[(m?w:s)(x.x1,x.cpx1,x.cpx2,x.x2,y),(m?w:s)(x.y1,x.cpy1,x.cpy2,x.y2,y)]:[(m?d:g)(x.x1,x.cpx1,x.x2,y),(m?d:g)(x.y1,x.cpy1,x.y2,y)]}var f=Y.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(x,y){var m=y.x1,O=y.y1,i=y.x2,r=y.y2,u=y.cpx1,h=y.cpy1,b=y.cpx2,E=y.cpy2,t=y.percent;if(t===0)return;x.moveTo(m,O),b==null||E==null?(t<1&&(U(m,u,i,t,p),u=p[1],i=p[2],U(O,h,r,t,p),h=p[1],r=p[2]),x.quadraticCurveTo(u,h,i,r)):(t<1&&(S(m,u,b,i,t,p),u=p[1],b=p[2],i=p[3],S(O,h,E,r,t,p),h=p[1],E=p[2],r=p[3]),x.bezierCurveTo(u,h,b,E,i,r))},pointAt:function(x){return a(this.shape,x,!1)},tangentAt:function(x){var y=a(this.shape,x,!0);return j.normalize(y,y)}});Ye.exports=f},"rAM+":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return j});var Y=_("Qw5x");function j(L,U){var S;if(typeof Symbol=="undefined"||L[Symbol.iterator]==null){if(Array.isArray(L)||(S=Object(Y.a)(L))||U&&L&&typeof L.length=="number"){S&&(L=S);var g=0,s=function(){};return{s,n:function(){return g>=L.length?{done:!0}:{done:!1,value:L[g++]}},e:function(f){throw f},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,w=!1,p;return{s:function(){S=L[Symbol.iterator]()},n:function(){var f=S.next();return d=f.done,f},e:function(f){w=!0,p=f},f:function(){try{!d&&S.return!=null&&S.return()}finally{if(w)throw p}}}}},rUJ1:function(Ye,ie){const _=/[&<>"']/,Y=/[&<>"']/g,j=/[<>"']|&(?!#?\w+;)/,L=/[<>"']|&(?!#?\w+;)/g,U={"&":"&","<":"<",">":">",'"':""","'":"'"},S=A=>U[A];function g(A,v){if(v){if(_.test(A))return A.replace(Y,S)}else if(j.test(A))return A.replace(L,S);return A}const s=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function d(A){return A.replace(s,(v,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const w=/(^|[^\[])\^/g;function p(A,v){A=A.source||A,v=v||"";const o={replace:(l,c)=>(c=c.source||c,c=c.replace(w,"$1"),A=A.replace(l,c),o),getRegex:()=>new RegExp(A,v)};return o}const a=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(A,v,o){if(A){let l;try{l=decodeURIComponent(d(o)).replace(a,"").toLowerCase()}catch(c){return null}if(l.indexOf("javascript:")===0||l.indexOf("vbscript:")===0||l.indexOf("data:")===0)return null}v&&!f.test(o)&&(o=r(v,o));try{o=encodeURI(o).replace(/%25/g,"%")}catch(l){return null}return o}const y={},m=/^[^:]+:\/*[^/]*$/,O=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(A,v){y[" "+A]||(m.test(A)?y[" "+A]=A+"/":y[" "+A]=E(A,"/",!0)),A=y[" "+A];const o=A.indexOf(":")===-1;return v.substring(0,2)==="//"?o?v:A.replace(O,"$1")+v:v.charAt(0)==="/"?o?v:A.replace(i,"$1")+v:A+v}const u={exec:function(){}};function h(A){let v=1,o,l;for(;v{let k=!1,I=P;for(;--I>=0&&R[I]==="\\";)k=!k;return k?"|":" |"}),l=o.split(/ \|/);let c=0;if(l.length>v)l.splice(v);else for(;l.length0&&Pe[0]!==void 0?Pe[0]:0,console.log(nt),at.next=4,Object(m.a)("/api/exercises/".concat(nt.categoryId,"/preview_random_exercise.json"),{method:"get",params:{num:Le}});case 4:Fe=at.sent,G(!1),He(ce(Fe));case 7:case"end":return at.stop()}},ze)}));return function(){return xe.apply(this,arguments)}}(),ce=function(ze){var Le={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!ze)return;var Fe=ze||{},Pe=Fe.exam,Ve=Fe.single_questions,at=Fe.multiple_questions,At=Fe.judgement_questions,Rt=Fe.program_questions,tn=Fe.completion_questions,Qt=Fe.subjective_questions,Cn=Fe.practical_questions,Un=Fe.combination_questions,mt=[Object(L.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},Ve),Object(L.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},at),Object(L.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},tn),Object(L.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},At),Object(L.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},Qt),Object(L.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},Rt),Object(L.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},Cn),Object(L.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},Un)],lt=[],Ht=0,sn=0,Tt=mt.filter(function(wt){return wt.questions_count>0}).map(function(wt,Qe){var Je;return(Je=wt.questions)===null||Je===void 0||Je.forEach(function(Xe){lt.push(Xe.id),Ht=Ht+Xe.score,sn=sn+1}),Object(L.a)(Object(L.a)({},wt),{number:Le[Qe+1]})});return{all_questions_count:sn,all_score:Ht,questionList:Tt,ids:lt,exam:Pe}},Ee=function(){a.d.push("/classrooms/".concat(nt.coursesId,"/exercise"))},fe=function(){alert("\u4FDD\u5B58")},Ne=function(){var xe=Object(U.a)(s.a.mark(function ze(Le,Fe){var Pe,Ve,at;return s.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(m.a)("/api/exercises/".concat(nt.categoryId,"/toggle_random_question.json"),{method:"post",body:{question_id:Le==null?void 0:Le.single_question_id}});case 2:Pe=Rt.sent,Pe!=null&&Pe.question&&(at=Object(O.cloneDeep)(je),at.questionList=at==null||((Ve=at.questionList)===null||Ve===void 0)?void 0:Ve.map(function(tn){if(tn.type===Fe.type){var Qt=Object(O.cloneDeep)(tn==null?void 0:tn.questions);return Qt.splice(Fe.index,1,Pe==null?void 0:Pe.question),Object(L.a)(Object(L.a)({},tn),{},{questions:Qt})}return tn}),He(at));case 4:case"end":return Rt.stop()}},ze)}));return function(Le,Fe){return xe.apply(this,arguments)}}(),Ce=function(){var xe=Object(U.a)(s.a.mark(function ze(Le){return s.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:document.body.scrollIntoView(),he(Le),ee(Le);case 3:case"end":return Pe.stop()}},ze)}));return function(Le){return xe.apply(this,arguments)}}();return console.log(Object(p.h)(),"location333"),w.a.createElement("section",{className:x.a.wrap},w.a.createElement(j.a,{loading:W,active:!0,paragraph:{rows:5}},((E=Object(p.h)())===null||E===void 0||((t=E.pathname)===null||t===void 0)?void 0:t.includes("preview"))&&w.a.createElement("div",{className:x.a.crumbs},w.a.createElement("b",null),w.a.createElement("span",{className:"current",onClick:function(){return a.d.push("/classrooms/".concat(nt.coursesId,"/exercise"))}},"".concat(Ge==null||((C=Ge.course)===null||C===void 0)?void 0:C.course_name,">")),w.a.createElement("span",{className:"current",onClick:function(){return a.d.push("/classrooms/".concat(nt.coursesId,"/exercise"))}},"\u8BD5\u5377\u5217\u8868>"),w.a.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),w.a.createElement(y.a,{loading:k,submit:fe,goBack:Ee,data:je,selectValue:te,editPreview:!0,onExchange:Ne,onSkipExamination:Ce})))};ie.default=Object(a.a)(function(u){var h=u.paperlibrary,b=u.user,E=u.globalSetting;return{paperlibrary:h,user:b,globalSetting:E}})(r)},sR1s:function(Ye,ie,_){"use strict";_.d(ie,"b",function(){return U}),_.d(ie,"a",function(){return S}),_.d(ie,"c",function(){return g}),_.d(ie,"d",function(){return s});var Y=_("U8pU"),j="RC_TABLE_KEY";function L(d){return d==null?[]:Array.isArray(d)?d:[d]}function U(d,w){if(!w&&typeof w!="number")return d;for(var p=L(w),a=d,f=0;f-1)){var y=U.parse(x)[3],m=U.toHex(x);f.setAttribute("stop-color","#"+m),f.setAttribute("stop-opacity",y)}else f.setAttribute("stop-color",w[p].color);d.appendChild(f)}s._dom=d},S.prototype.markUsed=function(s){if(s.style){var d=s.style.fill;d&&d._dom&&Y.prototype.markUsed.call(this,d._dom),d=s.style.stroke,d&&d._dom&&Y.prototype.markUsed.call(this,d._dom)}};var g=S;Ye.exports=g},sbIO:function(Ye,ie,_){"use strict";var Y=_("DjyN"),j=_("NUBc"),L=_("5Dmo"),U=_("3S7+"),S=_("/zsF"),g=_("PArb"),s=_("Q9mQ"),d=_("diRs"),w=_("+L6B"),p=_("2/Rp"),a=_("5NDa"),f=_("5rEg"),x=_("miYZ"),y=_("tsqr"),m=_("9og8"),O=_("giR+"),i=_("fyUT"),r=_("2qtc"),u=_("kLXV"),h=_("tJVT"),b=_("WmNS"),E=_.n(b),t=_("q1tI"),C=_.n(t),A=_("PsQE"),v=_.n(A),o=_("0eGx"),l=_.n(o),c=_("9Bee"),M=_("Ty5D"),P=_("9kvl"),R=_("ErOA"),k=_("+yhJ"),I=_.n(k),F=_("RZ/O"),V=_.n(F),W=_("LvDl"),G=_("6K3P"),J=_.n(G),X=_("sRBo"),te=_("kaz8"),ee=_("oBTY"),be=_("PpiC"),ge=_("Ot1p"),je=_("kqOp"),He=_("7qnI"),nt=_("1vsH"),Ge=_("PGNT"),he=_.n(Ge),ce=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ee=function(Qe,Je){var Xe=Qe.globalSetting,Oe=Qe.loading,Ae=Qe.dispatch,ye=Qe.isEdit,Se=Qe.editData,dt=Object(be.a)(Qe,["globalSetting","loading","dispatch","isEdit","editData"]),et=Object(t.useState)(""),xt=Object(h.a)(et,2),xn=xt[0],Dt=xt[1],_t=Object(t.useState)(""),mn=Object(h.a)(_t,2),pe=mn[0],Gt=mn[1],Lt=Object(t.useState)([]),Be=Object(h.a)(Lt,2),ot=Be[0],Xt=Be[1],Pt=Object(t.useState)(""),$t=Object(h.a)(Pt,2),Zt=$t[0],bt=$t[1],ft=Object(t.useState)(),Nt=Object(h.a)(ft,2),jt=Nt[0],bn=Nt[1],Te=Object(t.useState)(!1),ve=Object(h.a)(Te,2),Q=ve[0],$=ve[1];Object(t.useEffect)(function(){if(!Se||!ye)return;Dt(Se==null?void 0:Se.name),Gt(Se==null?void 0:Se.analysis),bn(Se==null?void 0:Se.is_ordered),$(!0)},[Se]),Object(t.useEffect)(function(){if(!Q)return;var St=Se==null?void 0:Se.standard_answer.map(function(an){return an.answer_text});Xt(St),$(!1)},[Q]),Object(t.useImperativeHandle)(Je,function(){return{onSave:re,Clear:de}});var re=function(){var an=[],Pn=!1;return xn?(ot.forEach(function(dn,jn){an.push({position:jn+1,answer_text:[]}),dn.forEach(function(Bn,ne){an[jn].answer_text.push(Bn),(!Bn||!Object(nt.Z)(Bn,1e4))&&(bt("".concat(jn,"-").concat(ne)),y.b.info(Bn?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Pn=!0)})}),Pn?!1:(an==null?void 0:an.length)>20?(y.b.warn("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:xn,analysis:pe,standard_answers:an,is_ordered:jt}):(y.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},de=function(){Dt(""),Gt(""),Xt([]),bn(!1)},Ue=function(an,Pn,dn){var jn=ot.slice();if(Pn&&jn.splice(an,Pn),dn)for(var Bn=0;Bn1&&C.a.createElement("span",null,C.a.createElement(te.a,{checked:jt,onChange:function(an){return bn(an.target.checked)},className:"".concat(he.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),C.a.createElement("span",{className:"".concat(he.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pe,onChange:function(an){return Gt(an)}}))},fe=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(Ee)),Ne=_("7Kak"),Ce=_("9yH6"),xe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ze=function(Qe,Je){var Xe=Qe.globalSetting,Oe=Qe.loading,Ae=Qe.editData,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["globalSetting","loading","editData","dispatch","onRef","isEdit"]),xn=Object(t.useState)(),Dt=Object(h.a)(xn,2),_t=Dt[0],mn=Dt[1],pe=Object(t.useState)(""),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)(""),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1];Object(t.useEffect)(function(){if(!Ae||!et)return;Be(Ae==null?void 0:Ae.name),$t(Ae==null?void 0:Ae.analysis);var ft=Ae==null?void 0:Ae.choices.find(function(Nt){return Nt.is_answer});mn(ft.choice_text==="\u6B63\u786E"?"0":"1")},[Ae]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Zt,Clear:bt}});var Zt=function(){if(!Lt)return y.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!_t)return y.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;var Nt=[{choice_text:"\u6B63\u786E",is_answer:_t==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:_t==="1"?1:0}];return{name:Lt,choices:Nt,analysis:Pt}},bt=function(){Be(""),$t(""),mn("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Lt,onChange:function(Nt){return Be(Nt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),C.a.createElement(Ce.a.Group,{buttonStyle:"solid",value:_t,onChange:function(Nt){return mn(Nt.target.value)}},C.a.createElement(Ce.a.Button,{value:"0",className:"".concat(he.a.radio," mr40")},"\u6B63\u786E"),C.a.createElement(Ce.a.Button,{value:"1",className:he.a.radio},"\u9519\u8BEF")),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Pt,onChange:function(Nt){return $t(Nt)}}))},Le=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(ze)),Fe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pe=function(Qe,Je){var Xe=Qe.editData,Oe=Qe.globalSetting,Ae=Qe.loading,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),xn=Object(t.useState)([]),Dt=Object(h.a)(xn,2),_t=Dt[0],mn=Dt[1],pe=Object(t.useState)(),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)([]),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1],Zt=Object(t.useState)(""),bt=Object(h.a)(Zt,2),ft=bt[0],Nt=bt[1],jt=Object(t.useState)(""),bn=Object(h.a)(jt,2),Te=bn[0],ve=bn[1];Object(t.useEffect)(function(){mn(["","","",""])},[]),Object(t.useEffect)(function(){if(!Xe||!et)return;Nt(Xe==null?void 0:Xe.name),ve(Xe==null?void 0:Xe.analysis),mn(Xe==null?void 0:Xe.choices.map(function(de){return de.choice_text}));var re=[];Xe==null||Xe.choices.map(function(de,Ue){de.is_answer&&re.push(Ue)}),$t(re)},[Xe]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Q,Clear:$}});var Q=function(){if(!ft)return y.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var de=_t.findIndex(function(it){return!it});if(de>-1)return y.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Fe[de]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(!Pt.length)return y.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Pt.length<2)return y.b.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;var Ue=_t.map(function(it,Mt){return{choice_text:it,is_answer:Pt.includes(Mt)?1:0}});return{name:ft,choices:Ue,analysis:Te}},$=function(){mn(["","","",""]),Nt(""),ve(""),$t("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ft,onChange:function(de){return Nt(de)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),_t.map(function(re,de){return C.a.createElement("div",{className:he.a.choiceWrap,key:de},C.a.createElement(U.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},C.a.createElement("div",{className:"".concat(he.a.answer," ").concat(Pt.includes(de)?he.a.activeAnswer:""),onClick:function(){Pt.includes(de)?$t(Pt.filter(function(it){return it!==de})):$t([].concat(Object(ee.a)(Pt),[de]))}},Fe[de])),C.a.createElement("div",{className:he.a.editorWrap},Lt===de?C.a.createElement(ge.a,{id:"single-question-option-".concat(de),watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:re,onChange:function(it){_t[de]=it,mn(_t)}}):C.a.createElement("div",{className:he.a.htmlWrap,onClick:function(){return Be(de)}},C.a.createElement(c.a,{value:re}))),de>1&&C.a.createElement(U.a,{title:"\u5220\u9664"},C.a.createElement("i",{className:"".concat(he.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){mn(_t.filter(function(it,Mt){return Mt!==de})),Pt.includes(de)?$t(Pt.filter(function(it){return it!==de})):$t([].concat(Object(ee.a)(Pt),[de]))}})),de<7&&de===_t.length-1&&C.a.createElement(U.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},C.a.createElement("i",{className:"".concat(he.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return mn([].concat(Object(ee.a)(_t),[""]))}})))}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Te,onChange:function(de){return ve(de)}}))},Ve=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(Pe)),at=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],At=function(Qe,Je){var Xe=Qe.editData,Oe=Qe.globalSetting,Ae=Qe.loading,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),xn=Object(t.useState)([]),Dt=Object(h.a)(xn,2),_t=Dt[0],mn=Dt[1],pe=Object(t.useState)(),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)(),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1],Zt=Object(t.useState)(""),bt=Object(h.a)(Zt,2),ft=bt[0],Nt=bt[1],jt=Object(t.useState)(""),bn=Object(h.a)(jt,2),Te=bn[0],ve=bn[1];Object(t.useEffect)(function(){mn(["","","",""])},[]),Object(t.useEffect)(function(){if(!Xe||!et)return;Nt(Xe==null?void 0:Xe.name),ve(Xe==null?void 0:Xe.analysis),mn(Xe==null?void 0:Xe.choices.map(function(re){return re.choice_text})),$t(Xe==null?void 0:Xe.choices.findIndex(function(re){return re.is_answer}))},[Xe]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Q,Clear:$}});var Q=function(){if(!ft)return y.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var de=_t.findIndex(function(it){return!it});if(de>-1)return y.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(at[de]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(console.log("activeAnswer: ",Pt),!(typeof Pt=="number"))return y.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;var Ue=_t.map(function(it,Mt){return{choice_text:it,is_answer:Pt===Mt?1:0}});return{name:ft,choices:Ue,analysis:Te}},$=function(){mn(["","","",""]),Nt(""),ve(""),$t("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ft,onChange:function(de){return Nt(de)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),_t.map(function(re,de){return C.a.createElement("div",{className:he.a.choiceWrap,key:de},C.a.createElement(U.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},C.a.createElement("div",{className:"".concat(he.a.answer," ").concat(Pt===de?he.a.activeAnswer:""),onClick:function(){return $t(de)}},at[de])),C.a.createElement("div",{className:he.a.editorWrap},Lt===de?C.a.createElement(ge.a,{id:"single-question-option-".concat(de),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:re,onChange:function(it){_t[de]=it,mn(_t)}}):C.a.createElement("div",{className:he.a.htmlWrap,onClick:function(){return Be(de)}},C.a.createElement(c.a,{value:re}))),de>1&&C.a.createElement(U.a,{title:"\u5220\u9664"},C.a.createElement("i",{className:"".concat(he.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){mn(_t.filter(function(it,Mt){return Mt!==de})),de===Pt&&$t(null)}})),de<7&&de===_t.length-1&&C.a.createElement(U.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},C.a.createElement("i",{className:"".concat(he.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return mn([].concat(Object(ee.a)(_t),[""]))}})))}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Te,onChange:function(de){return ve(de)}}))},Rt=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(At)),tn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Qt=function(Qe,Je){var Xe=Qe.editData,Oe=Qe.globalSetting,Ae=Qe.loading,ye=Qe.dispatch,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),xn=Object(t.useState)(""),Dt=Object(h.a)(xn,2),_t=Dt[0],mn=Dt[1],pe=Object(t.useState)(""),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1],ot=Object(t.useState)(""),Xt=Object(h.a)(ot,2),Pt=Xt[0],$t=Xt[1];Object(t.useEffect)(function(){var ft;if(!Xe||!et)return;mn(Xe==null?void 0:Xe.name),Be(Xe==null?void 0:Xe.analysis),$t(Xe==null||((ft=Xe.answer_texts)===null||ft===void 0)?void 0:ft[0])},[Xe]),Object(t.useImperativeHandle)(Je,function(){return{onSave:Zt,Clear:bt}});var Zt=function(){return _t?Pt?{name:_t,answer_texts:[Pt],analysis:Lt}:(y.b.info("\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848"),!1):(y.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},bt=function(){mn(""),Be(""),$t("")};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:_t,onChange:function(Nt){return mn(Nt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),C.a.createElement(ge.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Pt,onChange:function(Nt){return $t(Nt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Lt,onChange:function(Nt){return Be(Nt)}}))},Cn=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(Qt)),Un=_("k1fw"),mt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],lt=function(Qe,Je){var Xe=Qe.globalSetting,Oe=Qe.loading,Ae=Qe.dispatch,ye=Qe.editData,Se=Qe.onRef,dt=Se===void 0?function(){}:Se,et=Qe.isEdit,xt=Object(be.a)(Qe,["globalSetting","loading","dispatch","editData","onRef","isEdit"]),xn=Object(t.useState)(""),Dt=Object(h.a)(xn,2),_t=Dt[0],mn=Dt[1],pe=Object(t.useState)([]),Gt=Object(h.a)(pe,2),Lt=Gt[0],Be=Gt[1];console.log(Lt),Object(t.useEffect)(function(){var Zt;if(!ye||!et)return;mn(ye==null?void 0:ye.name);var bt=ye==null||((Zt=ye.sub_item_banks)===null||Zt===void 0)?void 0:Zt.map(function(ft){var Nt,jt,bn;return Object(Un.a)(Object(Un.a)({},ft),{},{id:ft.id,open:!1,qusList:ft==null||((Nt=ft.choices)===null||Nt===void 0)?void 0:Nt.map(function(Te){return Te.choice_text}),activeQusEditor:null,qusAnswer:(jt=[ft==null||((bn=ft.choices)===null||bn===void 0)?void 0:bn.findIndex(function(Te){return Te.is_answer})])===null||jt===void 0?void 0:jt.filter(function(Te){return Te!==-1})})});Be(bt)},[ye]),Object(t.useImperativeHandle)(Je,function(){return{onSave:ot,Clear:Xt}});var ot=function(){if(!_t)return y.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(Lt.length===0)return y.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),!1;for(var bt=0;bt-1)return y.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(bt+1,"\u5C0F\u9898").concat(mt[jt],"\u9009\u9879\u7684\u5185\u5BB9")),!1;if(!(Nt!=null&&Nt.qusAnswer.length))return y.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(bt+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),!1}var bn=Lt.map(function(Te){return{id:Te.id>1?Te.id:null,name:Te.name,item_type:Te.item_type,analysis:Te.analysis,choices:Te.qusList.map(function(ve,Q){return{choice_text:ve,is_answer:Te.qusAnswer[0]===Q?1:0}})}});return{name:_t,sub_item_banks:bn}},Xt=function(){mn(""),Be([])},Pt=function(){var bt={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};Be(Lt.concat(bt))},$t=function(bt,ft,Nt){var jt=Object(W.cloneDeep)(Lt);if(bt==="open"&&(jt[ft].open=!jt[ft].open),bt==="delete"&&jt.splice(ft,1),bt==="value"&&(jt[ft].name=Nt),bt==="answer"&&(jt[ft].qusAnswer=[Nt]),bt==="edit"&&(jt[ft].activeQusEditor=Nt),bt==="details"&&(jt[ft].qusList[jt[ft].activeQusEditor]=Nt),bt==="addQus"&&(jt[ft].qusList=jt[ft].qusList.concat("")),bt==="deleteQus"){var bn;jt[ft].qusList=jt[ft].qusList.filter(function(Te,ve){return ve!==Nt}),jt[ft].qusAnswer=(bn=jt[ft].qusAnswer)===null||bn===void 0?void 0:bn.filter(function(Te){return Te!==Nt})}bt==="analysis"&&(jt[ft].analysis=Nt),Be(jt)};return C.a.createElement("section",{className:he.a.wrap},C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u9898\u5E72\uFF1A")),C.a.createElement(ge.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:_t,onChange:function(bt){return mn(bt)}}),Lt==null?void 0:Lt.map(function(Zt,bt){var ft;return C.a.createElement("div",{className:he.a.fold,key:Zt.id},C.a.createElement("div",{onClick:function(){return $t("open",bt)},className:he.a.head},C.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Zt.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),C.a.createElement("span",null,"\u7B2C",bt+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),C.a.createElement("b",{style:{visibility:"hidden"},onClick:function(jt){jt.stopPropagation(),$t("delete",bt)},className:"iconfont icon-shanchu8"})),C.a.createElement("div",{className:"mb10",style:{display:Zt.open?"block":"none"}},C.a.createElement(ge.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Zt==null?void 0:Zt.name,onChange:function(jt){return $t("value",bt,jt)}}),C.a.createElement("p",{className:he.a.titleWrap},C.a.createElement("span",{className:he.a.required},"*"),C.a.createElement("span",{className:he.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",C.a.createElement("span",{className:he.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Zt==null||((ft=Zt.qusList)===null||ft===void 0)?void 0:ft.map(function(Nt,jt){var bn,Te;return C.a.createElement("div",{className:he.a.choiceWrap,key:jt},C.a.createElement(U.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},C.a.createElement("div",{className:"".concat(he.a.answer," ").concat(Zt!=null&&(bn=Zt.qusAnswer)!==null&&bn!==void 0&&bn.includes(jt)?he.a.activeAnswer:""),onClick:function(){return $t("answer",bt,jt)}},mt[jt])),C.a.createElement("div",{className:he.a.editorWrap},(Zt==null?void 0:Zt.activeQusEditor)===jt?C.a.createElement(ge.a,{id:"single-question-option-".concat(jt),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Nt,onChange:function(Q){return $t("details",bt,Q)}}):C.a.createElement("div",{className:he.a.htmlWrap,onClick:function(){return $t("edit",bt,jt)}},C.a.createElement(c.a,{value:Nt}))),jt>1&&C.a.createElement(U.a,{title:"\u5220\u9664"},C.a.createElement("i",{className:"".concat(he.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return $t("deleteQus",bt,jt)}})),jt<7&&jt===(Zt==null||((Te=Zt.qusList)===null||Te===void 0)?void 0:Te.length)-1&&C.a.createElement(U.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},C.a.createElement("i",{className:"".concat(he.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return $t("addQus",bt)}})))}),C.a.createElement("p",{className:"mb10 mt10"},C.a.createElement("span",{className:he.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),C.a.createElement(ge.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Zt.analysis,onChange:function(jt){return $t("analysis",bt,jt)}})))}))},Ht=Object(P.a)(function(wt){var Qe=wt.loading,Je=wt.globalSetting;return{globalSetting:Je,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(t.forwardRef)(lt)),sn=function(Qe){var Je,Xe,Oe,Ae,ye,Se,dt,et,xt=Qe.data,xn=Qe.submit,Dt=Qe.goBack,_t=Qe.loading,mn=Qe.onTypeScore,pe=Qe.editPreview,Gt=pe===void 0?!1:pe,Lt=Qe.onSkipExamination,Be=Qe.selectValue,ot=Qe.onExchange,Xt=Object(t.useRef)(),Pt=Object(t.useRef)(Object(W.debounce)(function(){return Ue()},100,{leading:!0,trailing:!0})),$t=Object(t.useState)(null),Zt=Object(h.a)($t,2),bt=Zt[0],ft=Zt[1],Nt=Object(t.useState)(!1),jt=Object(h.a)(Nt,2),bn=jt[0],Te=jt[1],ve=Object(M.i)();Object(t.useEffect)(function(){return window.addEventListener("scroll",Pt==null?void 0:Pt.current),function(){window.removeEventListener("scroll",Pt==null?void 0:Pt.current)}},[]),Object(t.useEffect)(function(){Te(!0)},[]),Object(t.useEffect)(function(){var Vt,Et,Jt,Fn,Vn=(Vt=document.getElementById("examName"))===null||Vt===void 0||((Et=Vt.getElementsByClassName("ant-pagination-options-quick-jumper"))===null||Et===void 0||((Jt=Et[0])===null||Jt===void 0||((Fn=Jt.childNodes)===null||Fn===void 0)))?void 0:Fn[2];Vn&&(Vn.nodeValue="\u4EFD")},[xt]);var Q=function(Et){var Jt=parseInt(Et);return isNaN(Jt)?"":Jt};function $(){var Vt=0,Et=0,Jt=0;return document.body&&(Et=document.body.scrollTop),document.documentElement&&(Jt=document.documentElement.scrollTop),Vt=Et-Jt>0?Et:Jt,Vt}function re(){var Vt=0,Et=0,Jt=0;return document.body&&(Et=document.body.scrollHeight),document.documentElement&&(Jt=document.documentElement.scrollHeight),Vt=Et-Jt>0?Et:Jt,Vt}function de(){var Vt=0;return document.compatMode=="CSS1Compat"?Vt=document.documentElement.clientHeight:Vt=document.body.clientHeight,Vt}var Ue=function(){var Et=document.getElementById("preview_btns"),Jt=document.getElementById("preview_btns_else");$()+de()>=re()-68?(Et.style.visibility="hidden",Jt.style.visibility="visible"):(Et.style.visibility="visible",Jt.style.visibility="hidden")},it=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Mt=function(Et){var Jt,Fn=[];return C.a.createElement(C.a.Fragment,null,C.a.createElement("aside",{className:v.a.single},Et==null||((Jt=Et.choices)===null||Jt===void 0)?void 0:Jt.map(function(Vn,Kn){return Vn.is_answer&&Fn.push(Pn[Kn]),C.a.createElement("ul",{key:Kn},C.a.createElement("li",null,Pn[Kn],"\u3001"),C.a.createElement("li",null,C.a.createElement(c.a,{value:Vn.choice_text})))})),C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Fn.join(""),C.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",it[Et.difficulty])),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Et.analysis?Et.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name))))},Ln=function(Et){var Jt,Fn=Et==null||((Jt=Et.standard_answer)===null||Jt===void 0)?void 0:Jt.map(function(Vn){var Kn;return"\u7B54\u6848\uFF08\u586B\u7A7A".concat(Vn.position,"\uFF09\uFF1A").concat(Vn==null||((Kn=Vn.answer_text)===null||Kn===void 0)?void 0:Kn.join("\u3001"))});return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Fn),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Et.analysis?Et.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name))))},kn=function(Et){var Jt;return C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Et==null||((Jt=Et.answer_texts)===null||Jt===void 0)?void 0:Jt[0]),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Et.analysis?Et.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name)))},St=function(Et){var Jt;return C.a.createElement("div",{className:v.a.analysis},C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u9884\u671F\u8F93\u51FA:"),C.a.createElement(c.a,{value:Et==null||((Jt=Et.program_attr)===null||Jt===void 0)?void 0:Jt.description})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name)))},an=function(Et,Jt){var Fn;return C.a.createElement("div",null,Et==null||((Fn=Et.sub_item_banks)===null||Fn===void 0)?void 0:Fn.map(function(Vn,Kn){var ir,jr=[];return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333"}},Jt+1+"."+(Kn+1),"\uFF08\u5355\u9009\u9898\uFF09",Vn.name),C.a.createElement("aside",{className:v.a.single},Vn==null||((ir=Vn.choices)===null||ir===void 0)?void 0:ir.map(function(ua,Yr){return ua.is_answer&&jr.push(Pn[Yr]),C.a.createElement("ul",{key:Yr},C.a.createElement("li",null,Pn[Yr],"\u3001"),C.a.createElement("li",null,C.a.createElement(c.a,{value:ua.choice_text})))})),C.a.createElement("div",{className:v.a.analysis},C.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",jr.join(""),C.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",it[Vn.difficulty])),C.a.createElement("aside",null,C.a.createElement("span",{className:v.a.text},"\u89E3\u6790:"),C.a.createElement(c.a,{value:Vn.analysis?Vn.analysis:"\u6682\u65E0\u89E3\u6790"})),C.a.createElement("ul",null,C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Et==null?void 0:Et.discipline_name,"/").concat(Et==null?void 0:Et.sub_discipline_name)),C.a.createElement("li",null,C.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Et==null?void 0:Et.tag_discipline_name))))}))},Pn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],dn=function(Et){console.log("---",Et);var Jt=[];Et.questions.map(function(Vn){return Vn==null?void 0:Vn.sub_item_banks.map(function(Kn){Jt.push(Kn)})});var Fn=0;Et.type==="COMBINATION"?Fn=Et.questions_score/Jt.length:Fn=Et.questions_score/Et.questions_count,u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:C.a.createElement("div",{className:v.a.modalColumn},C.a.createElement("div",{className:v.a.modalRow,style:{justifyContent:"flex-start"}},C.a.createElement("sup",{className:v.a.sup},"*"),C.a.createElement("span",null,Et==null?void 0:Et.name,(Et==null?void 0:Et.type)==="COMBINATION"&&"\u4E2D\u7684\u6BCF\u5C0F\u9898","\uFF1A"),C.a.createElement(i.a,{min:1,parser:Q,defaultValue:Fn,onChange:function(Kn){Fn=Kn}}),C.a.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Vn=Object(m.a)(E.a.mark(function ir(){var jr,ua;return E.a.wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:if(Fn){Tr.next=3;break}return y.b.warn("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Tr.abrupt("return",Promise.reject());case 3:Et.type==="COMBINATION"?(jr={type:Et==null?void 0:Et.type,score:Fn,scoreTotal:Fn*(Jt==null?void 0:Jt.length)},mn(jr)):(ua={type:Et==null?void 0:Et.type,score:Fn,scoreTotal:Fn*Et.questions_count},mn(ua));case 4:case"end":return Tr.stop()}},ir)}));function Kn(){return Vn.apply(this,arguments)}return Kn}()})},jn=function(){var Et="";u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:C.a.createElement("div",{className:v.a.modalColumn},C.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20"},C.a.createElement("img",{style:{marginRight:5},src:J.a}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),C.a.createElement("div",{className:v.a.modalRow,style:{marginTop:20}},C.a.createElement("sup",{className:v.a.sup},"*"),C.a.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),C.a.createElement(f.a,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Et,onChange:function(Fn){Et=Fn.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Jt=Object(m.a)(E.a.mark(function Vn(){var Kn,ir,jr,ua,Yr;return E.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(Et){Jn.next=3;break}return y.b.warn("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Jn.abrupt("return",Promise.reject());case 3:return ir=[],jr=[],ua=[],xt==null||((Kn=xt.questionList)===null||Kn===void 0)||Kn.forEach(function(hr){var Sn;(Sn=hr.questions)===null||Sn===void 0||Sn.forEach(function(On){ir.push(On.id),jr.push(hr.questions_score/hr.questions_count),hr.type==="COMBINATION"&&ua.push({id:On.id,sub_item_bank_ids:On.sub_item_banks.map(function(or){return or.id})})})}),console.log("-----",ua),Yr={item_bank_ids:ir,item_bank_scores:jr,name:Et,combination_item_banks:ua},Jn.next=11,xn(Yr);case 11:case"end":return Jn.stop()}},Vn)}));function Fn(){return Jt.apply(this,arguments)}return Fn}()})},Bn=function(Et,Jt,Fn,Vn){var Kn,ir=(Kn=Vn.questions)===null||Kn===void 0?void 0:Kn.map(function(ua){return ua.id}),jr=u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var ua=Object(m.a)(E.a.mark(function Tr(){return E.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return jr.update({cancelButtonProps:{disabled:!0}}),hr.next=3,ot({single_question_id:Et,seleted_item_bank_ids:ir},{type:Jt,index:Fn});case 3:jr.update({cancelButtonProps:{disabled:!1}}),y.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898");case 5:case"end":return hr.stop()}},Tr)}));function Yr(){return ua.apply(this,arguments)}return Yr}()})},ne=function(Et){var Jt,Fn=(Jt=Et.questions)===null||Jt===void 0?void 0:Jt.map(function(ir){return ir.id}),Vn=Et.name,Kn=u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362".concat(Vn,"\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F"),cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var ir=Object(m.a)(E.a.mark(function ua(){return E.a.wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:return Kn.update({cancelButtonProps:{disabled:!0}}),Tr.next=3,ot({seleted_item_bank_ids:Fn},{type:Et.type});case 3:Kn.update({cancelButtonProps:{disabled:!1}}),y.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210".concat(Vn,"\u8BD5\u9898"));case 5:case"end":return Tr.stop()}},ua)}));function jr(){return ir.apply(this,arguments)}return jr}()})},B=function(){var Et=u.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Jt=Object(m.a)(E.a.mark(function Vn(){return E.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return Et.update({cancelButtonProps:{disabled:!0}}),ir.next=3,ot();case 3:Et.update({cancelButtonProps:{disabled:!1}}),y.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898");case 5:case"end":return ir.stop()}},Vn)}));function Fn(){return Jt.apply(this,arguments)}return Fn}()})},H=function(Et){console.log(Et,"key"),Lt(Et-1)},ae=function(){return C.a.createElement(C.a.Fragment,null,C.a.createElement(d.a,{color:"#55575D",overlayClassName:v.a.popover,visible:bn,getPopupContainer:function(Jt){return Jt==null?void 0:Jt.parentNode},content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},C.a.createElement(p.a,{onMouseEnter:function(){return Te(!0)},onMouseLeave:function(){return Te(!1)},onClick:function(){jn()}},"\u4FDD\u5B58")),C.a.createElement(p.a,{onClick:function(){document.body.scrollIntoView(),Dt()}},"\u8FD4\u56DE"),C.a.createElement(p.a,{loading:_t,onClick:function(){return xn()},type:"primary"},"\u63D0\u4EA4"))},ue=function(){var Et;return C.a.createElement(C.a.Fragment,null,C.a.createElement(p.a,{onClick:Dt},"\u8FD4\u56DE"),Be>0&&C.a.createElement(p.a,{onClick:function(){return H(Be)},type:"primary"},"\u4E0A\u4E00\u4EFD"),Be<(xt==null||((Et=xt.exam)===null||Et===void 0)?void 0:Et.total_num)-1&&C.a.createElement(p.a,{onClick:function(){return H(Be+2)}},"\u4E0B\u4E00\u4EFD"))},oe=function(Et,Jt){if(console.log(Et,222),Jt==="SINGLE")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Rt,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="MULTIPLE")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Ve,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="JUDGMENT")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Le,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="COMPLETION")return C.a.createElement(C.a.Fragment,null,C.a.createElement(fe,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="SUBJECTIVE")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Cn,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="COMBINATION")return C.a.createElement(C.a.Fragment,null,C.a.createElement(Ht,{ref:Xt,editData:Et,isEdit:!0}),C.a.createElement(g.a,null));if(Jt==="PROGRAM"){var Fn;P.d.push("/problems/".concat(Et==null||((Fn=Et.program_attr)===null||Fn===void 0)?void 0:Fn.identifier,"/edit?type=exercises&express_id=").concat(ve.categoryId,"&question_id=").concat(Et==null?void 0:Et.id,"&score=").concat(Et==null?void 0:Et.score,"&callback_url=").concat(location.pathname,"&select=").concat(Be,"&exercise=true"))}},ht=function(){var Vt=Object(m.a)(E.a.mark(function Et(Jt,Fn){var Vn,Kn,ir,jr,ua,Yr,Tr,Jn,hr,Sn;return E.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,(Vn=Xt.current)===null||Vn===void 0?void 0:Vn.onSave();case 2:if(Kn=or.sent,Kn){or.next=5;break}return or.abrupt("return");case 5:return ir={question_score:Fn.score,analysis:Kn.analysis},console.log(Kn,"editorData"),(Jt==="SINGLE"||Jt==="MULTIPLE"||Jt==="JUDGMENT")&&(ua=[],Yr=[],ir.question_type=Jt==="JUDGMENT"?2:1,ir.question_title=Kn==null?void 0:Kn.name,Kn==null||((jr=Kn.choices)===null||jr===void 0)||jr.forEach(function(Dn,pr){ua.push(Dn.choice_text),Dn!=null&&Dn.is_answer&&Yr.push(pr+1)}),ir.question_choices=ua,ir.standard_answers=Yr),Jt==="COMPLETION"&&(ir.is_ordered=Kn.is_ordered,ir.question_title=Kn==null?void 0:Kn.name,ir.question_type=3,Jn=[],Kn==null||((Tr=Kn.standard_answers)===null||Tr===void 0)||Tr.forEach(function(Dn,pr){Jn.push({choice_id:Dn.position,answer_text:Dn.answer_text})}),ir.standard_answers=Jn),Jt==="SUBJECTIVE"&&(ir.question_title=Kn==null?void 0:Kn.name,ir.question_type=3,ir.standard_answers=Kn==null?void 0:Kn.answer_texts),Jt==="COMBINATION"&&(ir.question_title=Kn==null?void 0:Kn.name,ir.question_type=7,ir.sub_questions=Kn==null||((hr=Kn.sub_item_banks)===null||hr===void 0)?void 0:hr.map(function(Dn,pr){return{id:Dn.id,question_title:Dn.name,question_type:1,question_choices:Dn.choices.map(function(Gn){return Gn.choice_text}),standard_answers:[Dn.choices.findIndex(function(Gn){return Gn.is_answer})+1],analysis:Dn.analysis}}),delete ir.analysis),or.next=13,Object(R.a)("/api/exercise_questions/".concat(Fn.id,".json"),{method:"put",body:ir});case 13:Sn=or.sent,(Sn==null?void 0:Sn.status)===0&&(y.b.success("\u7F16\u8F91\u6210\u529F"),H(Be+1)),ft(null);case 16:case"end":return or.stop()}},Et)}));return function(Jt,Fn){return Vt.apply(this,arguments)}}(),vn=function(){for(var Et=[],Jt=0;Jt<(xt==null||((Fn=xt.exam)===null||Fn===void 0)?void 0:Fn.total_num);Jt++){var Fn;Et.push({})}return Et};console.log(vn(),"data");var Tn=xt==null||((Je=xt.questionList)===null||Je===void 0)?void 0:Je.reduce(function(Vt,Et){return Vt+Et.questions_score},0),fr=Gt&&(xt==null||((Xe=xt.exam)===null||Xe===void 0)?void 0:Xe.exercise_status)!==1;return C.a.createElement("section",{className:v.a.wrap},C.a.createElement("div",{id:"id_left_preview",className:v.a.left,onMouseEnter:function(Et){var Jt=document.getElementById("id_left_preview");Jt.style.overflowY="auto"},onMouseLeave:function(Et){var Jt=document.getElementById("id_left_preview");Jt.style.overflowY="hidden"}},C.a.createElement("div",{className:v.a.title},C.a.createElement("div",null,C.a.createElement("b",null),C.a.createElement("span",null,"\u7B54\u9898\u5361"))),C.a.createElement("div",{className:v.a.total},C.a.createElement("div",null,C.a.createElement("img",{src:I.a}),C.a.createElement("span",null,"\u9898\u6570(\u9053)"),C.a.createElement("aside",null,xt==null?void 0:xt.all_questions_count)),C.a.createElement("div",{className:"mr30 ml30"},C.a.createElement("img",{src:V.a}),C.a.createElement("span",null,"\u603B\u5206(\u5206)"),C.a.createElement("aside",null,Tn)),C.a.createElement("div",null,C.a.createElement("img",{src:l.a}),C.a.createElement("span",null,"\u65F6\u957F(\u5206)"),C.a.createElement("aside",null,xt==null||((Oe=xt.exam)===null||Oe===void 0)?void 0:Oe.time))),xt==null||((Ae=xt.questionList)===null||Ae===void 0)?void 0:Ae.map(function(Vt,Et){var Jt;return C.a.createElement("div",{className:v.a.list,key:Et},C.a.createElement("div",{className:v.a.name},C.a.createElement("b",null),C.a.createElement("span",null,Vt.name)),C.a.createElement("aside",null,C.a.createElement("div",null,"\u5171",C.a.createElement("span",{className:v.a.b},Vt.questions_count),"\u9898 ",C.a.createElement("span",{className:v.a.l},"|"),"\u5171",C.a.createElement("span",{className:v.a.r},Vt.questions_score),"\u5206"),C.a.createElement("div",{className:v.a.answerSheet},Vt==null||((Jt=Vt.questions)===null||Jt===void 0)?void 0:Jt.map(function(Fn,Vn){return C.a.createElement("div",{onClick:function(){var ir="Anchor_".concat(Fn.id),jr=document.getElementById(ir);jr&&setTimeout(function(){return jr.scrollIntoView({block:"center",behavior:"smooth"})})},key:Fn.id,className:v.a.tag},Vn+1)}))))})),C.a.createElement("div",{className:v.a.right},C.a.createElement("div",{className:v.a.examName,id:"examName"},C.a.createElement("div",{className:v.a.name},C.a.createElement(U.a,{title:xt==null||((ye=xt.exam)===null||ye===void 0)?void 0:ye.name,getPopupContainer:function(Et){return Et.parentNode}},C.a.createElement("span",{className:v.a.t},xt==null||((Se=xt.exam)===null||Se===void 0)?void 0:Se.name))),Gt?C.a.createElement(j.a,{showTotal:function(Et){return C.a.createElement("span",{style:{color:"#656F87",fontSize:14}},"\u5171\u8BA1",C.a.createElement("span",{className:"c-light-primary"},Et),"\u4EFD\u8BD5\u5377")},total:xt==null||((dt=xt.exam)===null||dt===void 0)?void 0:dt.total_num,pageSize:1,current:Be+1,showSizeChanger:!1,onChange:H,showQuickJumper:!0,hideOnSinglePage:!1}):C.a.createElement(p.a,{onClick:B,type:"primary"},"\u968F\u673A\u66F4\u6362")),C.a.createElement("div",{className:v.a.topWarp},xt==null||((et=xt.questionList)===null||et===void 0)?void 0:et.map(function(Vt,Et){var Jt,Fn;return C.a.createElement(C.a.Fragment,{key:Et},C.a.createElement("div",{className:v.a.head,style:Et===0?{border:0,marginTop:-16}:{}},C.a.createElement("div",{className:v.a.name},C.a.createElement("b",null),C.a.createElement("span",null,Vt.name)),C.a.createElement("div",{className:v.a.so},"\u5171",C.a.createElement("span",{className:v.a.b},Vt.questions_count," "),"\u9898 ",Vt.type==="COMBINATION"&&"\uFF08\u5305\u542B".concat(Vt==null||((Jt=Vt.questions)===null||Jt===void 0)?void 0:Jt.map(function(Vn){var Kn;return Vn==null||((Kn=Vn.sub_item_banks)===null||Kn===void 0)?void 0:Kn.length}).reduce(function(Vn,Kn){return Vn+Kn}),"\u5C0F\u9898\uFF09"),C.a.createElement("span",{className:v.a.l},"|"),"\u5171",C.a.createElement("span",{className:v.a.r},Vt.questions_score),"\u5206"),!Gt&&C.a.createElement("div",{className:v.a.btn},C.a.createElement(p.a,{onClick:function(){dn(Vt)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),C.a.createElement(p.a,{onClick:function(){return ne(Vt)},type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),Vt==null||((Fn=Vt.questions)===null||Fn===void 0)?void 0:Fn.map(function(Vn,Kn){return bt===Vn.id?C.a.createElement("div",{id:"Anchor_".concat(Vn.id),className:v.a.content,style:{padding:0,marginTop:10},key:Vn.id},C.a.createElement("div",{style:{float:"right",marginTop:-6}},C.a.createElement(p.a,{onClick:function(){return ft(null)},className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),C.a.createElement(p.a,{onClick:function(){return ht(Vt==null?void 0:Vt.type,Vn)},type:"primary"},"\u4FDD\u5B58")),oe(Vn,Vt.type)):C.a.createElement("div",{id:"Anchor_".concat(Vn.id),className:v.a.content,key:Vn.id},C.a.createElement("div",{className:v.a.titleWrap},C.a.createElement(c.a,{style:{paddingRight:10},className:v.a.titleHtml,value:Kn+1+"\u3001"+"".concat((Vn==null?void 0:Vn.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":"")+Vn.name}),Gt&&C.a.createElement(p.a,{disabled:fr,onClick:function(){if(bt){y.b.warn("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}ft(Vn.id)},type:"primary",className:"mr20",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),C.a.createElement(p.a,{disabled:fr,onClick:function(){return Bn(Vn.id,Vt.type,Kn,Vt)},type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Vt.type==="SINGLE"||Vt.type==="JUDGMENT"||Vt.type==="MULTIPLE")&&Mt(Vn),Vt.type==="COMPLETION"&&Ln(Vn),Vt.type==="SUBJECTIVE"&&kn(Vn),Vt.type==="PROGRAM"&&St(Vn),Vt.type==="COMBINATION"&&an(Vn,Kn),C.a.createElement("div",null))}))})),C.a.createElement("div",{className:v.a.btnsElse,id:"preview_btns_else"},Gt?ue():ae()),C.a.createElement("div",{className:v.a.btnsWrap,id:"preview_btns"},C.a.createElement("div",{className:v.a.btns},Gt?ue():ae()))))},Tt=ie.a=sn},sboe:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return L});var Y=_("q1tI"),j=_.n(Y),L=Y.createContext(null)},t23M:function(Ye,ie,_){"use strict";var Y=_("VTBJ"),j=_("1OyB"),L=_("vuIU"),U=_("Ji7U"),S=_("LK+K"),g=_("q1tI"),s=_.n(g),d=_("m+aA"),w=_("Zm9Q"),p=_("Kwbf"),a=_("c+Xe"),f=_("bdgK"),x="rc-observer-key",y=function(m){Object(U.a)(i,m);var O=Object(S.a)(i);function i(){var r;return Object(j.a)(this,i),r=O.apply(this,arguments),r.resizeObserver=null,r.childNode=null,r.currentElement=null,r.state={width:0,height:0,offsetHeight:0,offsetWidth:0},r.onResize=function(u){var h=r.props.onResize,b=u[0].target,E=b.getBoundingClientRect(),t=E.width,C=E.height,A=b.offsetWidth,v=b.offsetHeight,o=Math.floor(t),l=Math.floor(C);if(r.state.width!==o||r.state.height!==l||r.state.offsetWidth!==A||r.state.offsetHeight!==v){var c={width:o,height:l,offsetWidth:A,offsetHeight:v};r.setState(c),h&&Promise.resolve().then(function(){h(Object(Y.a)(Object(Y.a)({},c),{},{offsetWidth:A,offsetHeight:v}))})}},r.setChildNode=function(u){r.childNode=u},r}return Object(L.a)(i,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var u=this.props.disabled;if(u){this.destroyObserver();return}var h=Object(d.a)(this.childNode||this),b=h!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=h),!this.resizeObserver&&h&&(this.resizeObserver=new f.default(this.onResize),this.resizeObserver.observe(h))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var u=this.props.children,h=Object(w.a)(u);if(h.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(h.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=h[0];if(g.isValidElement(b)&&Object(a.c)(b)){var E=b.ref;h[0]=g.cloneElement(b,{ref:Object(a.a)(E,this.setChildNode)})}return h.length===1?h[0]:h.map(function(t,C){return!g.isValidElement(t)||"key"in t&&t.key!==null?t:g.cloneElement(t,{key:"".concat(x,"-").concat(C)})})}}]),i}(g.Component);y.displayName="ResizeObserver",ie.a=y},tWlo:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},tf39:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___15tXk",flex_space_between:"flex_space_between___2JIaf",flex_box_vertical_center:"flex_box_vertical_center___3168W",flex_box_center_end:"flex_box_center_end___16myc",flex_box_column:"flex_box_column___Ye8vh",title:"title___z0esv",export:"export___1cim9",bg:"bg___1nEgJ",tabs:"tabs___1HwEE"}},u2Z1:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return E});var Y=_("miYZ"),j=_("tsqr"),L=_("9og8"),U=_("5NDa"),S=_("5rEg"),g=_("2qtc"),s=_("kLXV"),d=_("oBTY"),w=_("tJVT"),p=_("OaEy"),a=_("2fM7"),f=_("WmNS"),x=_.n(f),y=_("q1tI"),m=_.n(y),O=_("ErOA"),i=_("i58Z"),r=_.n(i),u=_("T1X5"),h=_.n(u),b=a.a.Option,E=function(C){var A=C.subId,v=C.value,o=C.selectvalues,l=C.disabled,c=C.knowledgeOptions,M=c===void 0?[]:c,P=C.onChange,R=P===void 0?function(){}:P,k=C.onAddKnowledgeFinish,I=k===void 0?function(){}:k,F=Object(y.useRef)(),V=Object(y.useState)([]),W=Object(w.a)(V,2),G=W[0],J=W[1];v=v||[];var X=function(be,ge){be?(J([ge.key]),R([ge.key])):(J([]),R([]))};Object(y.useEffect)(function(){(o==null?void 0:o.length)>0&&(J(Object(d.a)(o)),R(Object(d.a)(o)))},[M]),Object(y.useEffect)(function(){var ee;((ee=v)===null||ee===void 0?void 0:ee.length)>0&&R(Object(d.a)(v))},[M]);var te=function(be){be.preventDefault(),F.current="",s.a.confirm({centered:!0,width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:m.a.createElement("div",{className:"font14"},m.a.createElement("div",{style:{display:"flex",marginTop:"48px",marginBottom:"36px"}},m.a.createElement("img",{src:h.a,style:{width:"108px",height:"108px",marginRight:"29px"}}),"\u60A8\u586B\u5199\u7684\u77E5\u8BC6\u70B9\u6682\u65F6\u4EC5\u5BF9\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u540E\u5C06\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF1B",m.a.createElement("br",null),"\u5E73\u53F0\u5BA1\u6838\u8FC7\u7A0B\u4E2D\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF08\u5305\u62EC\u4F46\u4E0D\u9650\u4E8E\u9519\u8BEF\u3001\u975E\u6CD5\u3001\u4E0D\u96C5\u3001\u4E0D\u5339\u914D\u5F53\u524D\u8BFE\u7A0B\u7B49\u60C5\u5F62\uFF09\uFF0C\u5220\u9664\u540E\u53EF\u80FD\u5F71\u54CD\u60A8\u7684\u8BD5\u9898\u7684\u6B63\u5E38\u4F7F\u7528\u3002",m.a.createElement("br",null),"\u8BF7\u8BA4\u771F\u586B\u5199\u4E0E\u6559\u5B66\u5185\u5BB9\u76F8\u5173\u7684\u771F\u5B9E\u77E5\u8BC6\u70B9 ",m.a.createElement("br",null)),m.a.createElement(S.a,{className:"mt5",maxLength:20,style:{marginBottom:"42px"},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:F.current,onChange:function(je){F.current=je.target.value}})),onOk:function(){return new Promise(function(){var je=Object(L.a)(x.a.mark(function He(nt,Ge){var he,ce;return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(F.current){fe.next=3;break}return j.b.warn("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),fe.abrupt("return",Ge());case 3:if(!(F.current.length>20)){fe.next=6;break}return j.b.warn("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),fe.abrupt("return",Ge());case 6:return fe.next=8,Object(O.a)("/api/tag_disciplines.json",{method:"post",body:{name:F.current,sub_discipline_id:A}});case 8:return he=fe.sent,(he==null?void 0:he.status)===0&&(I({id:he.tag_discipline_id,name:F.current,type:"personal"}),ce=[],ce.push(he.tag_discipline_id),R([].concat(ce)),J([he.tag_discipline_id]),R([].concat(ce))),fe.abrupt("return",nt());case 11:case"end":return fe.stop()}},He)}));return function(He,nt){return je.apply(this,arguments)}}())}})};return m.a.createElement("div",{className:r.a.wrap},m.a.createElement(a.a,{disabled:!A||l,className:"mr5",style:{width:"242px"},onChange:X,showSearch:!0,allowClear:!0,value:M==null?void 0:M.filter(function(ee){return(G==null?void 0:G.includes(ee==null?void 0:ee.id))||(G==null?void 0:G.includes((ee==null?void 0:ee.id)+""))}).map(function(ee){return ee.name})},M==null?void 0:M.map(function(ee){return m.a.createElement(b,{key:ee.id,value:ee.name},m.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},m.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.name),m.a.createElement("span",null,ee.type==="personal"?"\uFF08\u81EA\u7528\uFF09":"")))})),m.a.createElement("button",{disabled:!A,className:"".concat(r.a.addKnowledge," ").concat(A?"":r.a.disabled),onClick:te},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))}},u3os:function(Ye,ie,_){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.ver=ie.clear=ie.bind=void 0;var Y=_("P4Qj"),j=function(g,s){var d=(0,Y.getSensor)(g);return d.bind(s),function(){d.unbind(s)}};ie.bind=j;var L=function(g){var s=(0,Y.getSensor)(g);(0,Y.removeSensor)(s)};ie.clear=L;var U="1.0.1";ie.ver=U},uJ6K:function(Ye,ie,_){Ye.exports={wrap:"wrap___1AALq",img:"img___20GEO",table:"table___26NT5",totalScore:"totalScore___1t1Bx",people:"people___BMR7K",glassSeal:"glassSeal___2woZ-"}},ueOF:function(Ye,ie,_){Ye.exports={flex_box_center:"flex_box_center___3u1kD",flex_space_between:"flex_space_between___1iSrL",flex_box_vertical_center:"flex_box_vertical_center___18buA",flex_box_center_end:"flex_box_center_end___35UIs",flex_box_column:"flex_box_column___2UKLk",customModal:"customModal___ppNnJ",checking:"checking___3Jkqo",content:"content___1lP2Z",group:"group___29dCl",footer:"footer___3jXcc"}},ulZh:function(Ye,ie,_){typeof window!="undefined"&&function(j,L){Ye.exports=L()}(this,function(){return function(Y){var j={};function L(U){if(j[U])return j[U].exports;var S=j[U]={i:U,l:!1,exports:{}};return Y[U].call(S.exports,S,S.exports,L),S.l=!0,S.exports}return L.m=Y,L.c=j,L.d=function(U,S,g){L.o(U,S)||Object.defineProperty(U,S,{enumerable:!0,get:g})},L.r=function(U){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},L.t=function(U,S){if(S&1&&(U=L(U)),S&8)return U;if(S&4&&typeof U=="object"&&U&&U.__esModule)return U;var g=Object.create(null);if(L.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:U}),S&2&&typeof U!="string")for(var s in U)L.d(g,s,function(d){return U[d]}.bind(null,s));return g},L.n=function(U){var S=U&&U.__esModule?function(){return U.default}:function(){return U};return L.d(S,"a",S),S},L.o=function(U,S){return Object.prototype.hasOwnProperty.call(U,S)},L.p="/dist/",L(L.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Y,j,L){"use strict";var U=Object.prototype.hasOwnProperty,S="~";function g(){}Object.create&&(g.prototype=Object.create(null),new g().__proto__||(S=!1));function s(a,f,x){this.fn=a,this.context=f,this.once=x||!1}function d(a,f,x,y,m){if(typeof x!="function")throw new TypeError("The listener must be a function");var O=new s(x,y||a,m),i=S?S+f:f;return a._events[i]?a._events[i].fn?a._events[i]=[a._events[i],O]:a._events[i].push(O):(a._events[i]=O,a._eventsCount++),a}function w(a,f){--a._eventsCount===0?a._events=new g:delete a._events[f]}function p(){this._events=new g,this._eventsCount=0}p.prototype.eventNames=function(){var f=[],x,y;if(this._eventsCount===0)return f;for(y in x=this._events)U.call(x,y)&&f.push(S?y.slice(1):y);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(x)):f},p.prototype.listeners=function(f){var x=S?S+f:f,y=this._events[x];if(!y)return[];if(y.fn)return[y.fn];for(var m=0,O=y.length,i=new Array(O);m0},!1)}function a(f,x){for(var y={main:[x]},m={main:[]},O={main:{}};p(y);)for(var i=Object.keys(y),r=0;r=2*C/v||R<=I)return;var F=Number.POSITIVE_INFINITY,V;for(V=i.level-1;V>l;V--){var W=o[V].maxBitrate;if(F=C*W/(8*.8*P),F=R)return;var G=this.bwEstimator.getEstimate();p.logger.warn("Fragment "+i.sn+(r?" part "+r.index:"")+" of level "+i.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+V+` Current BW estimate: `+(Object(U.isFiniteNumber)(G)?(G/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+R.toFixed(3)+` s Estimated load time for the next fragment: `+F.toFixed(3)+` s - Time to underbuffer: `+I.toFixed(3)+" s"),u.nextLoadLevel=V,this.bwEstimator.sample(A,t.loaded),this.clearTimer(),i.loader&&(this.fragCurrent=this.partCurrent=null,i.loader.abort()),u.trigger(g.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:r,stats:t})},m.onFragLoaded=function(i,r){var u=r.frag,h=r.part;if(u.type===w.PlaylistLevelType.MAIN&&Object(U.isFiniteNumber)(u.sn)){var y=h?h.stats:u.stats,E=h?h.duration:u.duration;if(this.clearTimer(),this.lastLoadedFragLevel=u.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var t=this.hls.levels[u.level],C=(t.loaded?t.loaded.bytes:0)+y.loaded,A=(t.loaded?t.loaded.duration:0)+E;t.loaded={bytes:C,duration:A},t.realBitrate=Math.round(8*C/A)}if(u.bitrateTest){var v={stats:y,frag:u,part:h,id:u.type};this.onFragBuffered(g.Events.FRAG_BUFFERED,v),u.bitrateTest=!1}}},m.onFragBuffered=function(i,r){var u=r.frag,h=r.part,y=h?h.stats:u.stats;if(y.aborted)return;if(u.type!==w.PlaylistLevelType.MAIN||u.sn==="initSegment")return;var E=y.parsing.end-y.loading.start;this.bwEstimator.sample(E,y.loaded),y.bwEstimate=this.bwEstimator.getEstimate(),u.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},m.onError=function(i,r){switch(r.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},m.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},m.getNextABRAutoLevel=function(){var i=this.fragCurrent,r=this.partCurrent,u=this.hls,h=u.maxAutoLevel,y=u.config,E=u.minAutoLevel,t=u.media,C=r?r.duration:i?i.duration:0,A=t?t.currentTime:0,v=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,o=this.bwEstimator?this.bwEstimator.getEstimate():y.abrEwmaDefaultEstimate,l=(s.BufferHelper.bufferInfo(t,A,y.maxBufferHole).end-A)/v,c=this.findBestLevel(o,E,h,l,y.abrBandWidthFactor,y.abrBandWidthUpFactor);if(c>=0)return c;p.logger.trace((l?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var M=C?Math.min(C,y.maxStarvationDelay):y.maxStarvationDelay,P=y.abrBandWidthFactor,R=y.abrBandWidthUpFactor;if(!l){var k=this.bitrateTestDelay;if(k){var I=C?Math.min(C,y.maxLoadingDelay):y.maxLoadingDelay;M=I-k,p.logger.trace("bitrate test took "+Math.round(1e3*k)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*M)+" ms"),P=R=1}}return c=this.findBestLevel(o,E,h,l+M,P,R),Math.max(c,0)},m.findBestLevel=function(i,r,u,h,y,E){for(var t,C=this.fragCurrent,A=this.partCurrent,v=this.lastLoadedFragLevel,o=this.hls.levels,l=o[v],c=!!(l!=null&&(t=l.details)!==null&&t!==void 0&&t.live),M=l==null?void 0:l.codecSet,P=A?A.duration:C?C.duration:0,R=u;R>=r;R--){var k=o[R];if(!k||M&&k.codecSet!==M)continue;var I=k.details,F=(A?I==null?void 0:I.partTarget:I==null?void 0:I.averagetargetduration)||P,V=void 0;R<=v?V=y*i:V=E*i;var W=o[R].maxBitrate,G=W*F/V;if(p.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+R+"/"+Math.round(V)+"/"+W+"/"+F+"/"+h+"/"+G),V>W&&(!G||c&&!this.bitrateTestDelay||G0&&l===-1?(this.log("Override startPosition with lastCurrentTime @"+c.toFixed(3)),this.state=S.State.IDLE):(this.loadedmetadata=!1,this.state=S.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()},v.doTick=function(){switch(this.state){case S.State.IDLE:this.doTickIdle();break;case S.State.WAITING_TRACK:{var l,c=this.levels,M=this.trackId,P=c==null||((l=c[M])===null||l===void 0)?void 0:l.details;if(P){if(this.waitForCdnTuneIn(P))break;this.state=S.State.WAITING_INIT_PTS}break}case S.State.FRAG_LOADING_WAITING_RETRY:{var R,k=performance.now(),I=this.retryDate;(!I||k>=I||(R=this.media)!==null&&R!==void 0&&R.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=S.State.IDLE);break}case S.State.WAITING_INIT_PTS:{var F=this.waitingData;if(F){var V=F.frag,W=F.part,G=F.cache,J=F.complete;if(this.initPTS[V.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=S.State.FRAG_LOADING;var X=G.flush(),te={frag:V,part:W,payload:X,networkDetails:null};this._handleFragmentLoadProgress(te),J&&C.prototype._handleFragmentLoadComplete.call(this,te)}else if(this.videoTrackCC!==this.waitingVideoCC)r.logger.log("Waiting fragment cc ("+V.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ee=this.getLoadPosition(),be=s.BufferHelper.bufferInfo(this.mediaBuffer,ee,this.config.maxBufferHole),ge=Object(m.fragmentWithinToleranceTest)(be.end,this.config.maxFragLookUpTolerance,V);ge<0&&(r.logger.log("Waiting fragment cc ("+V.cc+") @ "+V.start+" cancelled because another fragment at "+be.end+" is needed"),this.clearWaitingFragment())}}else this.state=S.State.IDLE}}this.onTickEnd()},v.clearWaitingFragment=function(){var l=this.waitingData;l&&(this.fragmentTracker.removeFragment(l.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=S.State.IDLE)},v.onTickEnd=function(){var l=this.media;if(!l||!l.readyState)return;var c=this.mediaBuffer?this.mediaBuffer:l,M=c.buffered;!this.loadedmetadata&&M.length&&(this.loadedmetadata=!0),this.lastCurrentTime=l.currentTime},v.doTickIdle=function(){var l,c,M=this.hls,P=this.levels,R=this.media,k=this.trackId,I=M.config;if(!P||!P[k])return;if(!R&&(this.startFragRequested||!I.startFragPrefetch))return;var F=P[k],V=F.details;if(!V||V.live&&this.levelLastLoaded!==k||this.waitForCdnTuneIn(V)){this.state=S.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,p.PlaylistLevelType.AUDIO));var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,p.PlaylistLevelType.AUDIO);if(W===null)return;var G=W.len,J=this.getMaxBufferLength(),X=this.audioSwitch;if(G>=J&&!X)return;if(!X&&this._streamEnded(W,V)){M.trigger(g.Events.BUFFER_EOS,{type:"audio"}),this.state=S.State.ENDED;return}var te=V.fragments,ee=te[0].start,be=W.end;if(X){var ge=this.getLoadPosition();be=ge,V.PTSKnown&&geee||W.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),R.currentTime=ee+.05))}var je=this.getNextFragment(be,V);if(!je){this.bufferFlushed=!0;return}((l=je.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((c=je.decryptdata)!==null&&c!==void 0&&c.key)?this.loadKey(je,V):this.loadFragment(je,V,be)},v.getMaxBufferLength=function(){var l=C.prototype.getMaxBufferLength.call(this),c=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,p.PlaylistLevelType.MAIN);return c===null?l:Math.max(l,c.len)},v.onMediaDetaching=function(){this.videoBuffer=null,C.prototype.onMediaDetaching.call(this)},v.onAudioTracksUpdated=function(l,c){var M=c.audioTracks;this.resetTransmuxer(),this.levels=M.map(function(P){return new w.Level(P)})},v.onAudioTrackSwitching=function(l,c){var M=!!c.url;this.trackId=c.id;var P=this.fragCurrent;P!=null&&P.loader&&P.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),M?this.setInterval(E):this.resetTransmuxer(),M?(this.audioSwitch=!0,this.state=S.State.IDLE):this.state=S.State.STOPPED,this.tick()},v.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},v.onLevelLoaded=function(l,c){this.mainDetails=c.details},v.onAudioTrackLoaded=function(l,c){var M,P=this.levels,R=c.details,k=c.id;if(!P){this.warn("Audio tracks were reset while loading level "+k);return}this.log("Track "+k+" loaded ["+R.startSN+","+R.endSN+"],duration:"+R.totalduration);var I=P[k],F=0;if(R.live||(M=I.details)!==null&&M!==void 0&&M.live){var V=this.mainDetails;if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed||!V)return;!I.details&&R.hasProgramDateTime&&V.hasProgramDateTime?(Object(O.alignMediaPlaylistByPDT)(R,V),F=R.fragments[0].start):F=this.alignPlaylists(R,I.details)}I.details=R,this.levelLastLoaded=k,!this.startFragRequested&&(this.mainDetails||!R.live)&&this.setStartPosition(I.details,F),this.state===S.State.WAITING_TRACK&&!this.waitForCdnTuneIn(R)&&(this.state=S.State.IDLE),this.tick()},v._handleFragmentLoadProgress=function(l){var c,M=l.frag,P=l.part,R=l.payload,k=this.config,I=this.trackId,F=this.levels;if(!F){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+M.sn+" of level "+M.level+" will not be buffered");return}var V=F[I];console.assert(V,"Audio track is defined on fragment load progress");var W=V.details;console.assert(W,"Audio track details are defined on fragment load progress");var G=k.defaultAudioCodec||V.audioCodec||"mp4a.40.2",J=this.transmuxer;J||(J=this.transmuxer=new x.default(this.hls,p.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var X=this.initPTS[M.cc],te=(c=M.initSegment)===null||c===void 0?void 0:c.data;if(X!==void 0){var ee=!1,be=P?P.index:-1,ge=be!==-1,je=new b.ChunkMetadata(M.level,M.sn,M.stats.chunkCount,R.byteLength,be,ge);J.push(R,te,G,"",M,P,W.totalduration,ee,je,X)}else{r.logger.log("Unknown video PTS for cc "+M.cc+", waiting for video PTS before demuxing audio frag "+M.sn+" of ["+W.startSN+" ,"+W.endSN+"],track "+I);var He=this.waitingData=this.waitingData||{frag:M,part:P,cache:new f.default,complete:!1},nt=He.cache;nt.push(new Uint8Array(R)),this.waitingVideoCC=this.videoTrackCC,this.state=S.State.WAITING_INIT_PTS}},v._handleFragmentLoadComplete=function(l){if(this.waitingData){this.waitingData.complete=!0;return}C.prototype._handleFragmentLoadComplete.call(this,l)},v.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},v.onBufferCreated=function(l,c){var M=c.tracks.audio;M&&(this.mediaBuffer=M.buffer),c.tracks.video&&(this.videoBuffer=c.tracks.video.buffer)},v.onFragBuffered=function(l,c){var M=c.frag,P=c.part;if(M.type!==p.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(M)){this.warn("Fragment "+M.sn+(P?" p: "+P.index:"")+" of level "+M.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}M.sn!=="initSegment"&&(this.fragPrevious=M,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(g.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(M,P)},v.onError=function(l,c){switch(c.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.AUDIO,c);break;case i.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case i.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==S.State.ERROR&&this.state!==S.State.STOPPED&&(this.state=c.fatal?S.State.ERROR:S.State.IDLE,this.warn(c.details+" while loading frag, switching to "+this.state+" state"));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(c.parent==="audio"&&(this.state===S.State.PARSING||this.state===S.State.PARSED)){var M=!0,P=this.getFwdBufferInfo(this.mediaBuffer,p.PlaylistLevelType.AUDIO);P&&P.len>.5&&(M=!this.reduceMaxBufferLength(P.len)),M&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},v.onBufferFlushed=function(l,c){var M=c.type;M===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},v._handleTransmuxComplete=function(l){var c,M="audio",P=this.hls,R=l.remuxResult,k=l.chunkMeta,I=this.getCurrentContext(k);if(!I){this.warn("The loading context changed while buffering fragment "+k.sn+" of level "+k.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(k.level);return}var F=I.frag,V=I.part,W=R.audio,G=R.text,J=R.id3,X=R.initSegment;if(this.fragContextChanged(F))return;if(this.state=S.State.PARSING,this.audioSwitch&&W&&this.completeAudioSwitch(),X!=null&&X.tracks&&(this._bufferInitSegment(X.tracks,F,k),P.trigger(g.Events.FRAG_PARSING_INIT_SEGMENT,{frag:F,id:M,tracks:X.tracks})),W){var te=W.startPTS,ee=W.endPTS,be=W.startDTS,ge=W.endDTS;V&&(V.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:te,endPTS:ee,startDTS:be,endDTS:ge}),F.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,te,ee,be,ge),this.bufferFragmentData(W,F,V,k)}if(J!=null&&(c=J.samples)!==null&&c!==void 0&&c.length){var je=u({frag:F,id:M},J);P.trigger(g.Events.FRAG_PARSING_METADATA,je)}if(G){var He=u({frag:F,id:M},G);P.trigger(g.Events.FRAG_PARSING_USERDATA,He)}},v._bufferInitSegment=function(l,c,M){if(this.state!==S.State.PARSING)return;l.video&&delete l.video;var P=l.audio;if(!P)return;P.levelCodec=P.codec,P.id="audio",this.log("Init audio buffer, container:"+P.container+", codecs[parsed]=["+P.codec+"]"),this.hls.trigger(g.Events.BUFFER_CODECS,l);var R=P.initSegment;if(R!=null&&R.byteLength){var k={type:"audio",frag:c,part:null,chunkMeta:M,parent:c.type,data:R};this.hls.trigger(g.Events.BUFFER_APPENDING,k)}this.tick()},v.loadFragment=function(l,c,M){var P=this.fragmentTracker.getState(l);this.fragCurrent=l,(this.audioSwitch||P===d.FragmentState.NOT_LOADED||P===d.FragmentState.PARTIAL)&&(l.sn==="initSegment"?this._loadInitSegment(l):c.live&&!Object(U.isFiniteNumber)(this.initPTS[l.cc])?(this.log("Waiting for video PTS in continuity counter "+l.cc+" of live stream before loading audio fragment "+l.sn+" of level "+this.trackId),this.state=S.State.WAITING_INIT_PTS):(this.startFragRequested=!0,C.prototype.loadFragment.call(this,l,c,M)))},v.completeAudioSwitch=function(){var l=this.hls,c=this.media,M=this.trackId;c&&(this.log("Switching audio track : flushing all audio"),C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,l.trigger(g.Events.AUDIO_TRACK_SWITCHED,{id:M})},A}(S.default);j.default=t},"./src/controller/audio-track-controller.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/events.ts"),S=L("./src/errors.ts"),g=L("./src/controller/base-playlist-controller.ts"),s=L("./src/types/loader.ts");function d(x,b){for(var m=0;m=r.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var u=r[this.trackId];this.log("Now switching to audio-track index "+i);var h=r[i],y=h.id,E=h.groupId,t=E===void 0?"":E,C=h.name,A=h.type,v=h.url;if(this.trackId=i,this.trackName=C,this.selectDefaultTrack=!1,this.hls.trigger(U.Events.AUDIO_TRACK_SWITCHING,{id:y,groupId:t,name:C,type:A,url:v}),h.details&&!h.details.live)return;var o=this.switchParams(h.url,u==null?void 0:u.details);this.loadPlaylist(o)},m.selectInitialTrack=function(){var i=this.tracksInGroup;console.assert(i.length,"Initial audio track should be selected when tracks are known");var r=this.trackName,u=this.findTrackId(r)||this.findTrackId();u!==-1?this.setAudioTrack(u):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},m.findTrackId=function(i){for(var r=this.tracksInGroup,u=0;ub.partTarget&&(h+=1)}if(Object(U.isFiniteNumber)(u))return new S.HlsUrlParameters(u,Object(U.isFiniteNumber)(h)?h:void 0,S.HlsSkip.No)}}},a.loadPlaylist=function(x){},a.shouldLoadTrack=function(x){return this.canLoad&&x&&!!x.url&&(!x.details||x.details.live)},a.playlistLoaded=function(x,b,m){var O=this,i=b.details,r=b.stats,u=r.loading.end?Math.max(0,self.performance.now()-r.loading.end):0;if(i.advancedDateTime=Date.now()-u,i.live||m!=null&&m.live){if(i.reloaded(m),m&&this.log("live playlist "+x+" "+(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:"MISSED")),m&&i.fragments.length>0&&Object(g.mergeDetails)(m,i),!this.canLoad||!i.live)return;var h,y=void 0,E=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var t=this.hls.config.lowLatencyMode,C=i.lastPartSn,A=i.endSN,v=i.lastPartIndex,o=v!==-1,l=C===A,c=t?0:v;o?(y=l?A+1:C,E=l?c:v+1):y=A+1;var M=i.age,P=M+i.ageHeader,R=Math.min(P-i.partTarget,i.targetduration*1.5);if(R>0){if(m&&R>m.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+m.tuneInGoal+" to: "+R+" with playlist age: "+i.age),R=0;else{var k=Math.floor(R/i.targetduration);if(y+=k,E!==void 0){var I=Math.round(R%i.targetduration/i.partTarget);E+=I}this.log("CDN Tune-in age: "+i.ageHeader+"s last advanced "+M.toFixed(2)+"s goal: "+R+" skip sn "+k+" to part "+E)}i.tuneInGoal=R}if(h=this.getDeliveryDirectives(i,b.deliveryDirectives,y,E),t||!l){this.loadPlaylist(h);return}}else h=this.getDeliveryDirectives(i,b.deliveryDirectives,y,E);var F=Object(g.computeReloadInterval)(i,r);y!==void 0&&i.canBlockReload&&(F-=i.partTarget||1),this.log("reload live playlist "+x+" in "+Math.round(F)+" ms"),this.timer=self.setTimeout(function(){return O.loadPlaylist(h)},F)}else this.clearTimer()},a.getDeliveryDirectives=function(x,b,m,O){var i=Object(S.getSkipValue)(x,m);return b!=null&&b.skip&&x.deltaUpdateFailed&&(m=b.msn,O=b.part,i=S.HlsSkip.No),new S.HlsUrlParameters(m,O,i)},a.retryLoadingOrFail=function(x){var b=this,m=this.hls.config,O=this.retryCount-1&&(i=x.context)!==null&&i!==void 0&&i.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+x.details+'"'),this.loadPlaylist();else{var r=Math.min(Math.pow(2,this.retryCount)*m.levelLoadingRetryDelay,m.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return b.loadPlaylist()},r),this.warn("retry playlist loading #"+this.retryCount+" in "+r+' ms after "'+x.details+'"')}}else this.warn('cannot recover from error "'+x.details+'"'),this.clearTimer(),x.fatal=!0;return O},p}()},"./src/controller/base-stream-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"State",function(){return A}),L.d(j,"default",function(){return v});var U=L("./src/polyfills/number.ts"),S=L("./src/task-loop.ts"),g=L("./src/controller/fragment-tracker.ts"),s=L("./src/utils/buffer-helper.ts"),d=L("./src/utils/logger.ts"),w=L("./src/events.ts"),p=L("./src/errors.ts"),a=L("./src/types/transmuxer.ts"),f=L("./src/utils/mp4-tools.ts"),x=L("./src/utils/discontinuities.ts"),b=L("./src/controller/fragment-finders.ts"),m=L("./src/controller/level-helper.ts"),O=L("./src/loader/fragment-loader.ts"),i=L("./src/crypt/decrypter.ts"),r=L("./src/utils/time-ranges.ts"),u=L("./src/types/loader.ts");function h(o,l){for(var c=0;cX;(V0&&V&&V.key&&V.iv&&V.method==="AES-128"){var W=self.performance.now();return R.decrypter.webCryptoDecrypt(new Uint8Array(F),V.key.buffer,V.iv.buffer).then(function(G){var J=self.performance.now();return I.trigger(w.Events.FRAG_DECRYPTED,{frag:P,payload:G,stats:{tstart:W,tdecrypt:J}}),k.payload=G,k})}return k}).then(function(k){var I=R.fragCurrent,F=R.hls,V=R.levels;if(!V)throw new Error("init load aborted, missing levels");var W=V[P.level].details;console.assert(W,"Level details are defined when init segment is loaded");var G=P.stats;R.state=A.IDLE,R.fragLoadError=0,P.data=new Uint8Array(k.payload),G.parsing.start=G.buffering.start=self.performance.now(),G.parsing.end=G.buffering.end=self.performance.now(),k.frag===I&&F.trigger(w.Events.FRAG_BUFFERED,{stats:G,frag:I,part:null,id:P.type}),R.tick()}).catch(function(k){R.warn(k),R.resetFragmentLoading(P)})},c.fragContextChanged=function(P){var R=this.fragCurrent;return!P||!R||P.level!==R.level||P.sn!==R.sn||P.urlId!==R.urlId},c.fragBufferedComplete=function(P,R){var k=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+P.type+" sn: "+P.sn+(R?" part: "+R.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+P.level+" "+r.default.toString(s.BufferHelper.getBuffered(k))),this.state=A.IDLE,this.tick()},c._handleFragmentLoadComplete=function(P){var R=this.transmuxer;if(!R)return;var k=P.frag,I=P.part,F=P.partsLoaded,V=!F||F.length===0||F.some(function(G){return!G}),W=new a.ChunkMetadata(k.level,k.sn,k.stats.chunkCount+1,0,I?I.index:-1,!V);R.flush(W)},c._handleFragmentLoadProgress=function(P){},c._doFragLoad=function(P,R,k,I){var F=this;if(k===void 0&&(k=null),!this.levels)throw new Error("frag load aborted, missing levels");if(k=Math.max(P.start,k||0),this.config.lowLatencyMode&&R){var V=R.partList;if(V&&I){k>P.end&&R.fragmentHint&&(P=R.fragmentHint);var W=this.getNextPart(V,P,k);if(W>-1){var G=V[W];return this.log("Loading part sn: "+P.sn+" p: "+G.index+" cc: "+P.cc+" of playlist ["+R.startSN+"-"+R.endSN+"] parts [0-"+W+"-"+(V.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+P.level+", target: "+parseFloat(k.toFixed(3))),this.nextLoadPosition=G.start+G.duration,this.state=A.FRAG_LOADING,this.hls.trigger(w.Events.FRAG_LOADING,{frag:P,part:V[W],targetBufferTime:k}),this.doFragPartsLoad(P,V,W,I).catch(function(J){return F.handleFragLoadError(J)})}else if(!P.url||this.loadedEndOfParts(V,k))return Promise.resolve(null)}}return this.log("Loading fragment "+P.sn+" cc: "+P.cc+" "+(R?"of ["+R.startSN+"-"+R.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+P.level+", target: "+parseFloat(k.toFixed(3))),Object(U.isFiniteNumber)(P.sn)&&!this.bitrateTest&&(this.nextLoadPosition=P.start+P.duration),this.state=A.FRAG_LOADING,this.hls.trigger(w.Events.FRAG_LOADING,{frag:P,targetBufferTime:k}),this.fragmentLoader.load(P,I).catch(function(J){return F.handleFragLoadError(J)})},c.doFragPartsLoad=function(P,R,k,I){var F=this;return new Promise(function(V,W){var G=[],J=function X(te){var ee=R[te];F.fragmentLoader.loadPart(P,ee,I).then(function(be){G[ee.index]=be;var ge=be.part;F.hls.trigger(w.Events.FRAG_LOADED,be);var je=R[te+1];if(je&&je.fragment===P)X(te+1);else return V({frag:P,part:ge,partsLoaded:G})}).catch(W)};J(k)})},c.handleFragLoadError=function(P){var R=P.data;return R&&R.details===p.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(R.frag,R.part):this.hls.trigger(w.Events.ERROR,R),null},c._handleTransmuxerFlush=function(P){var R=this.getCurrentContext(P);if(!R||this.state!==A.PARSING){this.fragCurrent||(this.state=A.IDLE);return}var k=R.frag,I=R.part,F=R.level,V=self.performance.now();k.stats.parsing.end=V,I&&(I.stats.parsing.end=V),this.updateLevelTiming(k,I,F,P.partial)},c.getCurrentContext=function(P){var R=this.levels,k=P.level,I=P.sn,F=P.part;if(!R||!R[k])return this.warn("Levels object was unset while buffering fragment "+I+" of level "+k+". The current chunk will not be buffered."),null;var V=R[k],W=F>-1?Object(m.getPartWith)(V,I,F):null,G=W?W.fragment:Object(m.getFragmentWithSN)(V,I,this.fragCurrent);return G?{frag:G,part:W,level:V}:null},c.bufferFragmentData=function(P,R,k,I){if(!P||this.state!==A.PARSING)return;var F=P.data1,V=P.data2,W=F;if(F&&V&&(W=Object(f.appendUint8Array)(F,V)),!W||!W.length)return;var G={type:P.type,frag:R,part:k,chunkMeta:I,parent:R.type,data:W};this.hls.trigger(w.Events.BUFFER_APPENDING,G),P.dropped&&P.independent&&!k&&this.flushBufferGap(R)},c.flushBufferGap=function(P){var R=this.media;if(!R)return;if(!s.BufferHelper.isBuffered(R,R.currentTime)){this.flushMainBuffer(0,P.start);return}var k=R.currentTime,I=s.BufferHelper.bufferInfo(R,k,0),F=P.duration,V=Math.min(this.config.maxFragLookUpTolerance*2,F*.25),W=Math.max(Math.min(P.start-V,I.end-V),k+V);P.start-W>V&&this.flushMainBuffer(W,P.start)},c.getFwdBufferInfo=function(P,R){var k=this.config,I=this.getLoadPosition();if(!Object(U.isFiniteNumber)(I))return null;var F=s.BufferHelper.bufferInfo(P,I,k.maxBufferHole);if(F.len===0&&F.nextStart!==void 0){var V=this.fragmentTracker.getBufferedFrag(I,R);if(V&&F.nextStart=k?(R.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+R.maxMaxBufferLength+"s"),!0):!1},c.getNextFragment=function(P,R){var k,I,F=R.fragments,V=F.length;if(!V)return null;var W=this.config,G=F[0].start,J;if(R.live){var X=W.initialLiveManifestSize;if(V-1&&kk.start&&k.loaded},c.getInitialLiveFragment=function(P,R){var k=this.fragPrevious,I=null;if(k){if(P.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+k.programDateTime),I=Object(b.findFragmentByPDT)(R,k.endProgramDateTime,this.config.maxFragLookUpTolerance)),!I){var F=k.sn+1;if(F>=P.startSN&&F<=P.endSN){var V=R[F-P.startSN];k.cc===V.cc&&(I=V,this.log("Live playlist, switching playlist, load frag with next SN: "+I.sn))}I||(I=Object(b.findFragWithCC)(R,k.cc),I&&this.log("Live playlist, switching playlist, load frag with same CC: "+I.sn))}}else{var W=this.hls.liveSyncPosition;W!==null&&(I=this.getFragmentAtPosition(W,this.bitrateTest?P.fragmentEnd:P.edge,P))}return I},c.getFragmentAtPosition=function(P,R,k){var I=this.config,F=this.fragPrevious,V=k.fragments,W=k.endSN,G=k.fragmentHint,J=I.maxFragLookUpTolerance,X=!!(I.lowLatencyMode&&k.partList&&G);X&&G&&!this.bitrateTest&&(V=V.concat(G),W=G.sn);var te;if(PR-J?0:J;te=Object(b.findFragmentByPTS)(F,V,P,ee)}else te=V[V.length-1];if(te){var be=te.sn-k.startSN,ge=F&&te.level===F.level,je=V[be+1],He=this.fragmentTracker.getState(te);if(He===g.FragmentState.BACKTRACKED){te=null;for(var nt=be;V[nt]&&this.fragmentTracker.getState(V[nt])===g.FragmentState.BACKTRACKED;)F?te=V[nt--]:te=V[--nt];te||(te=je)}else F&&te.sn===F.sn&&!X&&(ge&&(te.sn=V-R.maxFragLookUpTolerance&&F<=W;if(I!==null&&k.duration>I&&(F"+P.startSN+" prev-sn: "+(F?F.sn:"na")+" fragments: "+W),te}return G},c.waitForCdnTuneIn=function(P){var R=3;return P.live&&P.canBlockReload&&P.tuneInGoal>Math.max(P.partHoldBack,P.partTarget*R)},c.setStartPosition=function(P,R){var k=this.startPosition;if(k"+P))}}]),l}(S.default)},"./src/controller/buffer-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return b});var U=L("./src/polyfills/number.ts"),S=L("./src/events.ts"),g=L("./src/utils/logger.ts"),s=L("./src/errors.ts"),d=L("./src/utils/buffer-helper.ts"),w=L("./src/utils/mediasource-helper.ts"),p=L("./src/loader/fragment.ts"),a=L("./src/controller/buffer-operation-queue.ts"),f=Object(w.getMediaSource)(),x=/([ha]vc.)(?:\.[^.,]+)+/,b=function(){function m(i){var r=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var u=r.hls,h=r.media,y=r.mediaSource;g.logger.log("[buffer-controller]: Media source opened"),h&&(r.updateMediaElementDuration(),u.trigger(S.Events.MEDIA_ATTACHED,{media:h})),y&&y.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},this._onMediaSourceClose=function(){g.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){g.logger.log("[buffer-controller]: Media source ended")},this.hls=i,this._initSourceBuffer(),this.registerListeners()}var O=m.prototype;return O.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},O.destroy=function(){this.unregisterListeners(),this.details=null},O.registerListeners=function(){var r=this.hls;r.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(S.Events.BUFFER_RESET,this.onBufferReset,this),r.on(S.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.on(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(S.Events.BUFFER_EOS,this.onBufferEos,this),r.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(S.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(S.Events.FRAG_PARSED,this.onFragParsed,this),r.on(S.Events.FRAG_CHANGED,this.onFragChanged,this)},O.unregisterListeners=function(){var r=this.hls;r.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(S.Events.BUFFER_RESET,this.onBufferReset,this),r.off(S.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.off(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(S.Events.BUFFER_EOS,this.onBufferEos,this),r.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(S.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(S.Events.FRAG_PARSED,this.onFragParsed,this),r.off(S.Events.FRAG_CHANGED,this.onFragChanged,this)},O._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},O.onManifestParsed=function(r,u){var h=2;(u.audio&&!u.video||!u.altAudio)&&(h=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=h,this.details=null,g.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},O.onMediaAttaching=function(r,u){var h=this.media=u.media;if(h&&f){var y=this.mediaSource=new f;y.addEventListener("sourceopen",this._onMediaSourceOpen),y.addEventListener("sourceended",this._onMediaSourceEnded),y.addEventListener("sourceclose",this._onMediaSourceClose),h.src=self.URL.createObjectURL(y),this._objectUrl=h.src}},O.onMediaDetaching=function(){var r=this.media,u=this.mediaSource,h=this._objectUrl;if(u){if(g.logger.log("[buffer-controller]: media source detaching"),u.readyState==="open")try{u.endOfStream()}catch(y){g.logger.warn("[buffer-controller]: onMediaDetaching: "+y.message+" while calling endOfStream")}this.onBufferReset(),u.removeEventListener("sourceopen",this._onMediaSourceOpen),u.removeEventListener("sourceended",this._onMediaSourceEnded),u.removeEventListener("sourceclose",this._onMediaSourceClose),r&&(h&&self.URL.revokeObjectURL(h),r.src===h?(r.removeAttribute("src"),r.load()):g.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(S.Events.MEDIA_DETACHED,void 0)},O.onBufferReset=function(){var r=this;this.getSourceBufferTypes().forEach(function(u){var h=r.sourceBuffer[u];try{h&&(r.removeBufferListeners(u),r.mediaSource&&r.mediaSource.removeSourceBuffer(h),r.sourceBuffer[u]=void 0)}catch(y){g.logger.warn("[buffer-controller]: Failed to reset the "+u+" buffer",y)}}),this._initSourceBuffer()},O.onBufferCodecs=function(r,u){var h=this,y=this.getSourceBufferTypes().length;if(Object.keys(u).forEach(function(E){if(y){var t=h.tracks[E];if(t&&typeof t.buffer.changeType=="function"){var C=u[E],A=C.codec,v=C.levelCodec,o=C.container,l=(t.levelCodec||t.codec).replace(x,"$1"),c=(v||A).replace(x,"$1");if(l!==c){var M=o+";codecs="+(v||A);h.appendChangeType(E,M)}}}else h.pendingTracks[E]=u[E]}),y)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},O.appendChangeType=function(r,u){var h=this,y=this.operationQueue,E={execute:function(){var C=h.sourceBuffer[r];C&&(g.logger.log("[buffer-controller]: changing "+r+" sourceBuffer type to "+u),C.changeType(u)),y.shiftAndExecuteNext(r)},onStart:function(){},onComplete:function(){},onError:function(C){g.logger.warn("[buffer-controller]: Failed to change "+r+" SourceBuffer type",C)}};y.append(E,r)},O.onBufferAppending=function(r,u){var h=this,y=this.hls,E=this.operationQueue,t=this.tracks,C=u.data,A=u.type,v=u.frag,o=u.part,l=u.chunkMeta,c=l.buffering[A],M=self.performance.now();c.start=M;var P=v.stats.buffering,R=o?o.stats.buffering:null;P.start===0&&(P.start=M),R&&R.start===0&&(R.start=M);var k=t.audio,I=A==="audio"&&l.id===1&&(k==null?void 0:k.container)==="audio/mpeg",F={execute:function(){if(c.executeStart=self.performance.now(),I){var W=h.sourceBuffer[A];if(W){var G=v.start-W.timestampOffset;Math.abs(G)>=.1&&(g.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+v.start+" (delta: "+G+") sn: "+v.sn+")"),W.timestampOffset=v.start)}}h.appendExecutor(C,A)},onStart:function(){},onComplete:function(){var W=self.performance.now();c.executeEnd=c.end=W,P.first===0&&(P.first=W),R&&R.first===0&&(R.first=W);var G=h.sourceBuffer,J={};for(var X in G)J[X]=d.BufferHelper.getBuffered(G[X]);h.appendError=0,h.hls.trigger(S.Events.BUFFER_APPENDED,{type:A,frag:v,part:o,chunkMeta:l,parent:v.type,timeRanges:J})},onError:function(W){g.logger.error("[buffer-controller]: Error encountered while trying to append to the "+A+" SourceBuffer",W);var G={type:s.ErrorTypes.MEDIA_ERROR,parent:v.type,details:s.ErrorDetails.BUFFER_APPEND_ERROR,err:W,fatal:!1};W.code===DOMException.QUOTA_EXCEEDED_ERR?G.details=s.ErrorDetails.BUFFER_FULL_ERROR:(h.appendError++,G.details=s.ErrorDetails.BUFFER_APPEND_ERROR,h.appendError>y.config.appendErrorMaxRetry&&(g.logger.error("[buffer-controller]: Failed "+y.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),G.fatal=!0)),y.trigger(S.Events.ERROR,G)}};E.append(F,A)},O.onBufferFlushing=function(r,u){var h=this,y=this.operationQueue,E=function(C){return{execute:h.removeExecutor.bind(h,C,u.startOffset,u.endOffset),onStart:function(){},onComplete:function(){h.hls.trigger(S.Events.BUFFER_FLUSHED,{type:C})},onError:function(v){g.logger.warn("[buffer-controller]: Failed to remove from "+C+" SourceBuffer",v)}}};u.type?y.append(E(u.type),u.type):this.getSourceBufferTypes().forEach(function(t){y.append(E(t),t)})},O.onFragParsed=function(r,u){var h=this,y=u.frag,E=u.part,t=[],C=E?E.elementaryStreams:y.elementaryStreams;C[p.ElementaryStreamTypes.AUDIOVIDEO]?t.push("audiovideo"):(C[p.ElementaryStreamTypes.AUDIO]&&t.push("audio"),C[p.ElementaryStreamTypes.VIDEO]&&t.push("video"));var A=function(){var o=self.performance.now();y.stats.buffering.end=o,E&&(E.stats.buffering.end=o);var l=E?E.stats:y.stats;h.hls.trigger(S.Events.FRAG_BUFFERED,{frag:y,part:E,stats:l,id:y.type})};t.length===0&&g.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+y.type+" level: "+y.level+" sn: "+y.sn),this.blockBuffers(A,t)},O.onFragChanged=function(r,u){this.flushBackBuffer()},O.onBufferEos=function(r,u){var h=this,y=this.getSourceBufferTypes().reduce(function(E,t){var C=h.sourceBuffer[t];return(!u.type||u.type===t)&&(C&&!C.ended&&(C.ended=!0,g.logger.log("[buffer-controller]: "+t+" sourceBuffer now EOS"))),E&&!!(!C||C.ended)},!0);y&&this.blockBuffers(function(){var E=h.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},O.onLevelUpdated=function(r,u){var h=u.details;if(!h.fragments.length)return;this.details=h,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},O.flushBackBuffer=function(){var r=this.hls,u=this.details,h=this.media,y=this.sourceBuffer;if(!h||u===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var t=u.live&&r.config.liveBackBufferLength!==null?r.config.liveBackBufferLength:r.config.backBufferLength;if(!Object(U.isFiniteNumber)(t)||t<0)return;var C=h.currentTime,A=u.levelTargetDuration,v=Math.max(t,A),o=Math.floor(C/A)*A-v;E.forEach(function(l){var c=y[l];if(c){var M=d.BufferHelper.getBuffered(c);M.length>0&&o>M.start(0)&&(r.trigger(S.Events.BACK_BUFFER_REACHED,{bufferEnd:o}),u.live&&r.trigger(S.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:o}),r.trigger(S.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:o,type:l}))}})},O.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var r=this.details,u=this.hls,h=this.media,y=this.mediaSource,E=r.fragments[0].start+r.totalduration,t=h.duration,C=Object(U.isFiniteNumber)(y.duration)?y.duration:0;r.live&&u.config.liveDurationInfinity?(g.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),y.duration=Infinity,this.updateSeekableRange(r)):(E>C&&E>t||!Object(U.isFiniteNumber)(t))&&(g.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),y.duration=E)},O.updateSeekableRange=function(r){var u=this.mediaSource,h=r.fragments,y=h.length;if(y&&r.live&&u!==null&&u!==void 0&&u.setLiveSeekableRange){var E=Math.max(0,h[0].start),t=Math.max(E,E+r.totalduration);u.setLiveSeekableRange(E,t)}},O.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,u=this.operationQueue,h=this.pendingTracks,y=Object.keys(h).length;if(y&&!r||y===2){this.createSourceBuffers(h),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(S.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(t){u.executeNext(t)})}},O.createSourceBuffers=function(r){var u=this.sourceBuffer,h=this.mediaSource;if(!h)throw Error("createSourceBuffers called when mediaSource was null");var y=0;for(var E in r)if(!u[E]){var t=r[E];if(!t)throw Error("source buffer exists for track "+E+", however track does not");var C=t.levelCodec||t.codec,A=t.container+";codecs="+C;g.logger.log("[buffer-controller]: creating sourceBuffer("+A+")");try{var v=u[E]=h.addSourceBuffer(A),o=E;this.addBufferListener(o,"updatestart",this._onSBUpdateStart),this.addBufferListener(o,"updateend",this._onSBUpdateEnd),this.addBufferListener(o,"error",this._onSBUpdateError),this.tracks[E]={buffer:v,codec:C,container:t.container,levelCodec:t.levelCodec,id:t.id},y++}catch(l){g.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+l.message),this.hls.trigger(S.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:l,mimeType:A})}}y&&this.hls.trigger(S.Events.BUFFER_CREATED,{tracks:this.tracks})},O._onSBUpdateStart=function(r){var u=this.operationQueue,h=u.current(r);h.onStart()},O._onSBUpdateEnd=function(r){var u=this.operationQueue,h=u.current(r);h.onComplete(),u.shiftAndExecuteNext(r)},O._onSBUpdateError=function(r,u){g.logger.error("[buffer-controller]: "+r+" SourceBuffer error",u),this.hls.trigger(S.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var h=this.operationQueue.current(r);h&&h.onError(u)},O.removeExecutor=function(r,u,h){var y=this.media,E=this.mediaSource,t=this.operationQueue,C=this.sourceBuffer,A=C[r];if(!y||!E||!A){g.logger.warn("[buffer-controller]: Attempting to remove from the "+r+" SourceBuffer, but it does not exist"),t.shiftAndExecuteNext(r);return}var v=Object(U.isFiniteNumber)(y.duration)?y.duration:Infinity,o=Object(U.isFiniteNumber)(E.duration)?E.duration:Infinity,l=Math.max(0,u),c=Math.min(h,v,o);c>l?(g.logger.log("[buffer-controller]: Removing ["+l+","+c+"] from the "+r+" SourceBuffer"),console.assert(!A.updating,r+" sourceBuffer must not be updating"),A.remove(l,c)):t.shiftAndExecuteNext(r)},O.appendExecutor=function(r,u){var h=this.operationQueue,y=this.sourceBuffer,E=y[u];if(!E){g.logger.warn("[buffer-controller]: Attempting to append to the "+u+" SourceBuffer, but it does not exist"),h.shiftAndExecuteNext(u);return}E.ended=!1,console.assert(!E.updating,u+" sourceBuffer must not be updating"),E.appendBuffer(r)},O.blockBuffers=function(r,u){var h=this;if(u===void 0&&(u=this.getSourceBufferTypes()),!u.length){g.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(r);return}var y=this.operationQueue,E=u.map(function(t){return y.appendBlocker(t)});Promise.all(E).then(function(){r(),u.forEach(function(t){var C=h.sourceBuffer[t];(!C||!C.updating)&&y.shiftAndExecuteNext(t)})})},O.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},O.addBufferListener=function(r,u,h){var y=this.sourceBuffer[r];if(!y)return;var E=h.bind(this,r);this.listeners[r].push({event:u,listener:E}),y.addEventListener(u,E)},O.removeBufferListeners=function(r){var u=this.sourceBuffer[r];if(!u)return;this.listeners[r].forEach(function(h){u.removeEventListener(h.event,h.listener)})},m}()},"./src/controller/buffer-operation-queue.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return S});var U=L("./src/utils/logger.ts"),S=function(){function g(d){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=d}var s=g.prototype;return s.append=function(w,p){var a=this.queues[p];a.push(w),a.length===1&&this.buffers[p]&&this.executeNext(p)},s.insertAbort=function(w,p){var a=this.queues[p];a.unshift(w),this.executeNext(p)},s.appendBlocker=function(w){var p,a=new Promise(function(x){p=x}),f={execute:p,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(f,w),a},s.executeNext=function(w){var p=this.buffers,a=this.queues,f=p[w],x=a[w];if(x.length){var b=x[0];try{b.execute()}catch(m){U.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),b.onError(m),(!f||!f.updating)&&(x.shift(),this.executeNext(w))}}},s.shiftAndExecuteNext=function(w){this.queues[w].shift(),this.executeNext(w)},s.current=function(w){return this.queues[w][0]},g}()},"./src/controller/cap-level-controller.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/events.ts");function S(d,w){for(var p=0;p0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var f=this.hls;f.autoLevelCapping=this.getMaxLevel(a.length-1),f.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=f.autoLevelCapping}}},w.getMaxLevel=function(a){var f=this,x=this.hls.levels;if(!x.length)return-1;var b=x.filter(function(m,O){return d.isLevelAllowed(O,f.restrictedLevels)&&O<=a});return this.clientRect=null,d.getMaxLevelByMediaSize(b,this.mediaWidth,this.mediaHeight)},w.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},w.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},w.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,f={width:0,height:0};if(a){var x=a.getBoundingClientRect();f.width=x.width,f.height=x.height,!f.width&&!f.height&&(f.width=x.right-x.left||a.width||0,f.height=x.bottom-x.top||a.height||0)}return this.clientRect=f,f},d.isLevelAllowed=function(a,f){return f===void 0&&(f=[]),f.indexOf(a)===-1},d.getMaxLevelByMediaSize=function(a,f,x){if(!a||!a.length)return-1;for(var b=function(u,h){return h?u.width!==h.width||u.height!==h.height:!0},m=a.length-1,O=0;O=f||i.height>=x)&&b(i,a[O+1])){m=O;break}}return m},g(d,[{key:"mediaWidth",get:function(){return this.getDimensions().width*d.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*d.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(f){}return a}}]),d}();j.default=s},"./src/controller/cmcd-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return b});var U=L("./src/events.ts"),S=L("./src/types/cmcd.ts"),g=L("./src/utils/buffer-helper.ts"),s=L("./src/utils/logger.ts");function d(m,O){for(var i=0;i=m.length?{done:!0}:{done:!1,value:m[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(m,O){if(!m)return;if(typeof m=="string")return f(m,O);var i=Object.prototype.toString.call(m).slice(8,-1);if(i==="Object"&&m.constructor&&(i=m.constructor.name),i==="Map"||i==="Set")return Array.from(m);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return f(m,O)}function f(m,O){(O==null||O>m.length)&&(O=m.length);for(var i=0,r=new Array(O);iu&&(u=t.bitrate)}return u>0?u:NaN},O.getBufferLength=function(r){var u=this.hls.media,h=r===S.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!h||!u)return NaN;var y=g.BufferHelper.bufferInfo(h,u.currentTime,this.config.maxBufferHole);return y.len*1e3},O.createPlaylistLoader=function(){var r=this.config.pLoader,u=this.applyPlaylistData,h=r||this.config.loader;return function(){function y(t){this.loader=void 0,this.loader=new h(t)}var E=y.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(C,A,v){u(C),this.loader.load(C,A,v)},w(y,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),y}()},O.createFragmentLoader=function(){var r=this.config.fLoader,u=this.applyFragmentData,h=r||this.config.loader;return function(){function y(t){this.loader=void 0,this.loader=new h(t)}var E=y.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(C,A,v){u(C),this.loader.load(C,A,v)},w(y,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),y}()},m.uuid=function(){var r=URL.createObjectURL(new Blob),u=r.toString();return URL.revokeObjectURL(r),u.substr(u.lastIndexOf("/")+1)},m.serialize=function(r){for(var u=[],h=function(I){return!Number.isNaN(I)&&I!=null&&I!==""&&I!==!1},y=function(I){return Math.round(I)},E=function(I){return y(I/100)*100},t=function(I){return encodeURIComponent(I)},C={br:y,d:y,bl:E,dl:E,mtp:E,nor:t,rtp:E,tb:y},A=Object.keys(r||{}).sort(),v=p(A),o;!(o=v()).done;){var l=o.value,c=r[l];if(!h(c))continue;if(l==="v"&&c===1)continue;if(l=="pr"&&c===1)continue;var M=C[l];M&&(c=M(c));var P=typeof c,R=void 0;l==="ot"||l==="sf"||l==="st"?R=l+"="+c:P==="boolean"?R=l:P==="number"?R=l+"="+c:R=l+"="+JSON.stringify(c),u.push(R)}return u.join(",")},m.toHeaders=function(r){for(var u=Object.keys(r),h={},y=["Object","Request","Session","Status"],E=[{},{},{},{}],t={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},C=0,A=u;Cp){this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.KEY_SYSTEM_ERROR,details:S.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var t=p-this._requestLicenseFailureCount+1;g.logger.warn("Retrying license request, "+t+" attempts left"),this._requestLicense(u,h)}break}},m._generateLicenseRequestChallenge=function(i,r){switch(i.mediaKeySystemDomain){case s.KeySystems.WIDEVINE:return r}throw new Error("unsupported key-system: "+i.mediaKeySystemDomain)},m._requestLicense=function(i,r){g.logger.log("Requesting content license for key-system");var u=this._mediaKeysList[0];if(!u){g.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.KEY_SYSTEM_ERROR,details:S.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var h=this.getLicenseServerUrl(u.mediaKeySystemDomain),y=this._createLicenseXhr(h,i,r);g.logger.log("Sending license request to URL: "+h);var E=this._generateLicenseRequestChallenge(u,i);y.send(E)}catch(t){g.logger.error("Failure requesting DRM license: "+t),this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.KEY_SYSTEM_ERROR,details:S.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},m.onMediaAttached=function(i,r){if(!this._emeEnabled)return;var u=r.media;this._media=u,u.addEventListener("encrypted",this._onMediaEncrypted)},m.onMediaDetached=function(){var i=this._media,r=this._mediaKeysList;if(!i)return;i.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(r.map(function(u){if(u.mediaKeysSession)return u.mediaKeysSession.close().catch(function(){})})).then(function(){return i.setMediaKeys(null)}).catch(function(){})},m.onManifestParsed=function(i,r){if(!this._emeEnabled)return;var u=r.levels.map(function(y){return y.audioCodec}).filter(function(y){return!!y}),h=r.levels.map(function(y){return y.videoCodec}).filter(function(y){return!!y});this._attemptKeySystemAccess(s.KeySystems.WIDEVINE,u,h)},w(b,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),b}();j.default=x},"./src/controller/fps-controller.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/events.ts"),S=L("./src/utils/logger.ts"),g=function(){function s(w){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=w,this.registerListeners()}var d=s.prototype;return d.setStreamController=function(p){this.streamController=p},d.registerListeners=function(){this.hls.on(U.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},d.unregisterListeners=function(){this.hls.off(U.Events.MEDIA_ATTACHING,this.onMediaAttaching)},d.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},d.onMediaAttaching=function(p,a){var f=this.hls.config;if(f.capLevelOnFPSDrop){var x=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=x,x&&typeof x.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),f.fpsDroppedMonitoringPeriod)}},d.checkFPS=function(p,a,f){var x=performance.now();if(a){if(this.lastTime){var b=x-this.lastTime,m=f-this.lastDroppedFrames,O=a-this.lastDecodedFrames,i=1e3*m/b,r=this.hls;if(r.trigger(U.Events.FPS_DROP,{currentDropped:m,currentDecoded:O,totalDroppedFrames:f}),i>0&&m>r.config.fpsDroppedMonitoringThreshold*O){var u=r.currentLevel;S.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(r.autoLevelCapping===-1||r.autoLevelCapping>=u)&&(u=u-1,r.trigger(U.Events.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:r.currentLevel}),r.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=x,this.lastDroppedFrames=f,this.lastDecodedFrames=a}},d.checkFPSInterval=function(){var p=this.media;if(p)if(this.isVideoPlaybackQualityAvailable){var a=p.getVideoPlaybackQuality();this.checkFPS(p,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(p,p.webkitDecodedFrameCount,p.webkitDroppedFrameCount)},s}();j.default=g},"./src/controller/fragment-finders.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"findFragmentByPDT",function(){return g}),L.d(j,"findFragmentByPTS",function(){return s}),L.d(j,"fragmentWithinToleranceTest",function(){return d}),L.d(j,"pdtWithinToleranceTest",function(){return w}),L.d(j,"findFragWithCC",function(){return p});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/binary-search.ts");function g(a,f,x){if(f===null||!Array.isArray(a)||!a.length||!Object(U.isFiniteNumber)(f))return null;var b=a[0].programDateTime;if(f<(b||0))return null;var m=a[a.length-1].endProgramDateTime;if(f>=(m||0))return null;x=x||0;for(var O=0;Oa&&x.start?-1:0}function w(a,f,x){var b=Math.min(f,x.duration+(x.deltaPTS?x.deltaPTS:0))*1e3,m=x.endProgramDateTime||0;return m-b>a}function p(a,f){return S.default.search(a,function(x){return x.ccf?-1:0})}},"./src/controller/fragment-tracker.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"FragmentState",function(){return g}),L.d(j,"FragmentTracker",function(){return s});var U=L("./src/events.ts"),S=L("./src/types/loader.ts"),g;(function(p){p.NOT_LOADED="NOT_LOADED",p.BACKTRACKED="BACKTRACKED",p.APPENDING="APPENDING",p.PARTIAL="PARTIAL",p.OK="OK"})(g||(g={}));var s=function(){function p(f){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=f,this._registerListeners()}var a=p.prototype;return a._registerListeners=function(){var x=this.hls;x.on(U.Events.BUFFER_APPENDED,this.onBufferAppended,this),x.on(U.Events.FRAG_BUFFERED,this.onFragBuffered,this),x.on(U.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var x=this.hls;x.off(U.Events.BUFFER_APPENDED,this.onBufferAppended,this),x.off(U.Events.FRAG_BUFFERED,this.onFragBuffered,this),x.off(U.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(x,b){if(b===S.PlaylistLevelType.MAIN){var m=this.activeFragment,O=this.activeParts;if(!m)return null;if(O)for(var i=O.length;i--;){var r=O[i],u=r?r.end:m.appendedPTS;if(r.start<=x&&u!==void 0&&x<=u)return i>9&&(this.activeParts=O.slice(i-9)),r}else if(m.start<=x&&m.appendedPTS!==void 0&&x<=m.appendedPTS)return m}return this.getBufferedFrag(x,b)},a.getBufferedFrag=function(x,b){for(var m=this.fragments,O=Object.keys(m),i=O.length;i--;){var r=m[O[i]];if((r==null?void 0:r.body.type)===b&&r.buffered){var u=r.body;if(u.start<=x&&x<=u.end)return u}}return null},a.detectEvictedFragments=function(x,b,m){var O=this;Object.keys(this.fragments).forEach(function(i){var r=O.fragments[i];if(!r)return;if(!r.buffered){r.body.type===m&&O.removeFragment(r.body);return}var u=r.range[x];if(!u)return;u.time.some(function(h){var y=!O.isTimeBuffered(h.startPTS,h.endPTS,b);return y&&O.removeFragment(r.body),y})})},a.detectPartialFragments=function(x){var b=this,m=this.timeRanges,O=x.frag,i=x.part;if(!m||O.sn==="initSegment")return;var r=w(O),u=this.fragments[r];if(!u)return;Object.keys(m).forEach(function(h){var y=O.elementaryStreams[h];if(!y)return;var E=m[h],t=i!==null||y.partial===!0;u.range[h]=b.getBufferedTimes(O,i,t,E)}),u.backtrack=u.loaded=null,Object.keys(u.range).length?u.buffered=!0:this.removeFragment(u.body)},a.fragBuffered=function(x){var b=w(x),m=this.fragments[b];m&&(m.backtrack=m.loaded=null,m.buffered=!0)},a.getBufferedTimes=function(x,b,m,O){for(var i={time:[],partial:m},r=b?b.start:x.start,u=b?b.end:x.end,h=x.minEndPTS||u,y=x.maxStartPTS||r,E=0;E=t&&h<=C){i.time.push({startPTS:Math.max(r,O.start(E)),endPTS:Math.min(u,O.end(E))});break}else if(rt)i.partial=!0,i.time.push({startPTS:Math.max(r,O.start(E)),endPTS:Math.min(u,O.end(E))});else if(u<=t)break}return i},a.getPartialFragment=function(x){var b=null,m,O,i,r=0,u=this.bufferPadding,h=this.fragments;return Object.keys(h).forEach(function(y){var E=h[y];if(!E)return;d(E)&&(O=E.body.start-u,i=E.body.end+u,x>=O&&x<=i&&(m=Math.min(x-O,i-x),r<=m&&(b=E.body,r=m)))}),b},a.getState=function(x){var b=w(x),m=this.fragments[b];return m?m.buffered?d(m)?g.PARTIAL:g.OK:m.backtrack?g.BACKTRACKED:g.APPENDING:g.NOT_LOADED},a.backtrack=function(x,b){var m=w(x),O=this.fragments[m];if(!O||O.backtrack)return null;var i=O.backtrack=b||O.loaded;return O.loaded=null,i},a.getBacktrackData=function(x){var b=w(x),m=this.fragments[b];if(m){var O,i=m.backtrack;if(i!=null&&(O=i.payload)!==null&&O!==void 0&&O.byteLength)return i;this.removeFragment(x)}return null},a.isTimeBuffered=function(x,b,m){for(var O,i,r=0;r=O&&b<=i)return!0;if(b<=O)return!1}return!1},a.onFragLoaded=function(x,b){var m=b.frag,O=b.part;if(m.sn==="initSegment"||m.bitrateTest||O)return;var i=w(m);this.fragments[i]={body:m,loaded:b,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(x,b){var m=this,O=b.frag,i=b.part,r=b.timeRanges;if(O.type===S.PlaylistLevelType.MAIN)if(this.activeFragment=O,i){var u=this.activeParts;u||(this.activeParts=u=[]),u.push(i)}else this.activeParts=null;this.timeRanges=r,Object.keys(r).forEach(function(h){var y=r[h];if(m.detectEvictedFragments(h,y),!i)for(var E=0;Ex&&O.removeFragment(u)}})},a.removeFragment=function(x){var b=w(x);x.stats.loaded=0,x.clearElementaryStreamInfo(),delete this.fragments[b]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},p}();function d(p){var a,f;return p.buffered&&(((a=p.range.video)===null||a===void 0?void 0:a.partial)||((f=p.range.audio)===null||f===void 0?void 0:f.partial))}function w(p){return p.type+"_"+p.level+"_"+p.urlId+"_"+p.sn}},"./src/controller/gap-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"STALL_MINIMUM_DURATION_MS",function(){return d}),L.d(j,"MAX_START_GAP_JUMP",function(){return w}),L.d(j,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return p}),L.d(j,"SKIP_BUFFER_RANGE_START",function(){return a}),L.d(j,"default",function(){return f});var U=L("./src/utils/buffer-helper.ts"),S=L("./src/errors.ts"),g=L("./src/events.ts"),s=L("./src/utils/logger.ts"),d=250,w=2,p=.1,a=.05,f=function(){function x(m,O,i,r){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=m,this.media=O,this.fragmentTracker=i,this.hls=r}var b=x.prototype;return b.destroy=function(){this.hls=this.fragmentTracker=this.media=null},b.poll=function(O){var i=this.config,r=this.media,u=this.stalled,h=r.currentTime,y=r.seeking,E=this.seeking&&!y,t=!this.seeking&&y;if(this.seeking=y,h!==O){if(this.moved=!0,u!==null){if(this.stallReported){var C=self.performance.now()-u;s.logger.warn("playback not stuck anymore @"+h+", after "+Math.round(C)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((t||E)&&(this.stalled=null),r.paused||r.ended||r.playbackRate===0||!U.BufferHelper.getBuffered(r).length)return;var A=U.BufferHelper.bufferInfo(r,h,0),v=A.len>0,o=A.nextStart||0;if(!v&&!o)return;if(y){var l=A.len>w,c=!o||o-h>w&&!this.fragmentTracker.getPartialFragment(h);if(l||c)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var M,P=Math.max(o,A.start||0)-h,R=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,k=R==null||((M=R.details)===null||M===void 0)?void 0:M.live,I=k?R.details.targetduration*2:w;if(P>0&&P<=I){this._trySkipBufferHole(null);return}}var F=self.performance.now();if(u===null){this.stalled=F;return}var V=F-u;!y&&V>=d&&this._reportStall(A.len);var W=U.BufferHelper.bufferInfo(r,h,i.maxBufferHole);this._tryFixBufferStall(W,V)},b._tryFixBufferStall=function(O,i){var r=this.config,u=this.fragmentTracker,h=this.media,y=h.currentTime,E=u.getPartialFragment(y);if(E){var t=this._trySkipBufferHole(E);if(t)return}O.len>r.maxBufferHole&&i>r.highBufferWatchdogPeriod*1e3&&(s.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},b._reportStall=function(O){var i=this.hls,r=this.media,u=this.stallReported;u||(this.stallReported=!0,s.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+O+")"),i.trigger(g.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:O}))},b._trySkipBufferHole=function(O){for(var i=this.config,r=this.hls,u=this.media,h=u.currentTime,y=0,E=U.BufferHelper.getBuffered(u),t=0;t=y&&h.05&&this.forwardBufferLength>1){var t=Math.min(2,Math.max(1,r)),C=Math.round(2/(1+Math.exp(-.75*h-this.edgeStalled))*20)/20;x.playbackRate=Math.min(t,Math.max(1,C))}else x.playbackRate!==1&&x.playbackRate!==0&&(x.playbackRate=1)},a.estimateLiveEdge=function(){var x=this.levelDetails;return x===null?null:x.edge+x.age},a.computeLatency=function(){var x=this.estimateLiveEdge();return x===null?null:x-this.currentTime},d(p,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var x=this.config,b=this.levelDetails;return x.liveMaxLatencyDuration!==void 0?x.liveMaxLatencyDuration:b?x.liveMaxLatencyDurationCount*b.targetduration:0}},{key:"targetLatency",get:function(){var x=this.levelDetails;if(x===null)return null;var b=x.holdBack,m=x.partHoldBack,O=x.targetduration,i=this.config,r=i.liveSyncDuration,u=i.liveSyncDurationCount,h=i.lowLatencyMode,y=this.hls.userConfig,E=h&&m||b;(y.liveSyncDuration||y.liveSyncDurationCount||E===0)&&(E=r!==void 0?r:u*O);var t=O,C=1;return E+Math.min(this.stallCount*C,t)}},{key:"liveSyncPosition",get:function(){var x=this.estimateLiveEdge(),b=this.targetLatency,m=this.levelDetails;if(x===null||b===null||m===null)return null;var O=m.edge,i=x-b-this.edgeStalled,r=O-m.totalduration,u=O-(this.config.lowLatencyMode&&m.partTarget||m.targetduration);return Math.min(Math.max(r,i),u)}},{key:"drift",get:function(){var x=this.levelDetails;return x===null?1:x.drift}},{key:"edgeStalled",get:function(){var x=this.levelDetails;if(x===null)return 0;var b=(this.config.lowLatencyMode&&x.partTarget||x.targetduration)*3;return Math.max(x.age-b,0)}},{key:"forwardBufferLength",get:function(){var x=this.media,b=this.levelDetails;if(!x||!b)return 0;var m=x.buffered.length;return m?x.buffered.end(m-1):b.edge-this.currentTime}}]),p}()},"./src/controller/level-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return i});var U=L("./src/types/level.ts"),S=L("./src/events.ts"),g=L("./src/errors.ts"),s=L("./src/utils/codecs.ts"),d=L("./src/controller/level-helper.ts"),w=L("./src/controller/base-playlist-controller.ts"),p=L("./src/types/loader.ts");function a(){return a=Object.assign||function(r){for(var u=1;u0){o=C[0].bitrate,C.sort(function(V,W){return V.bitrate-W.bitrate}),this._levels=C;for(var k=0;kthis.hls.config.fragLoadingMaxRetry&&(l=t.frag.level)):l=t.frag.level}break;case g.ErrorDetails.LEVEL_LOAD_ERROR:case g.ErrorDetails.LEVEL_LOAD_TIMEOUT:C&&(C.deliveryDirectives&&(o=!1),l=C.level),v=!0;break;case g.ErrorDetails.REMUX_ALLOC_ERROR:l=t.level,v=!0;break}l!==void 0&&this.recoverLevel(t,l,v,o)},h.recoverLevel=function(E,t,C,A){var v=E.details,o=this._levels[t];if(o.loadError++,C){var l=this.retryLoadingOrFail(E);if(l)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(A){var c=o.url.length;if(c>1&&o.loadError1){var A=(t.urlId+1)%C;this.warn("Switching to redundant URL-id "+A),this._levels.forEach(function(v){v.urlId=A}),this.level=E}},h.onFragLoaded=function(E,t){var C=t.frag;if(C!==void 0&&C.type===p.PlaylistLevelType.MAIN){var A=this._levels[C.level];A!==void 0&&(A.fragmentError=0,A.loadError=0)}},h.onLevelLoaded=function(E,t){var C,A=t.level,v=t.details,o=this._levels[A];if(!o){var l;this.warn("Invalid level index "+A),(l=t.deliveryDirectives)!==null&&l!==void 0&&l.skip&&(v.deltaUpdateFailed=!0);return}A===this.currentLevelIndex?(o.fragmentError===0&&(o.loadError=0,this.retryCount=0),this.playlistLoaded(A,t,o.details)):(C=t.deliveryDirectives)!==null&&C!==void 0&&C.skip&&(v.deltaUpdateFailed=!0)},h.onAudioTrackSwitched=function(E,t){var C=this.hls.levels[this.currentLevelIndex];if(!C)return;if(C.audioGroupIds){for(var A=-1,v=this.hls.audioTracks[t.id].groupId,o=0;o0){var A=C.urlId,v=C.url[A];if(E)try{v=E.addDirectives(v)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("Attempt loading level index "+t+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+A+" "+v),this.clearTimer(),this.hls.trigger(S.Events.LEVEL_LOADING,{url:v,level:t,id:A,deliveryDirectives:E||null})}},h.removeLevel=function(E,t){var C=function(o,l){return l!==t},A=this._levels.filter(function(v,o){return o!==E?!0:v.url.length>1&&t!==void 0?(v.url=v.url.filter(C),v.audioGroupIds&&(v.audioGroupIds=v.audioGroupIds.filter(C)),v.textGroupIds&&(v.textGroupIds=v.textGroupIds.filter(C)),v.urlId=0,!0):!1}).map(function(v,o){var l=v.details;return l!=null&&l.fragments&&l.fragments.forEach(function(c){c.level=o}),v});this._levels=A,this.hls.trigger(S.Events.LEVELS_UPDATED,{levels:A})},x(u,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var t,C=this._levels;if(C.length===0)return;if(this.currentLevelIndex===E&&(t=C[E])!==null&&t!==void 0&&t.details)return;if(E<0||E>=C.length){var A=E<0;if(this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.OTHER_ERROR,details:g.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:A,reason:"invalid level idx"}),A)return;E=Math.min(E,C.length-1)}this.clearTimer();var v=this.currentLevelIndex,o=C[v],l=C[E];this.log("switching to level "+E+" from "+v),this.currentLevelIndex=E;var c=a({},l,{level:E,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete c._urlId,this.hls.trigger(S.Events.LEVEL_SWITCHING,c);var M=l.details;if(!M||M.live){var P=this.switchParams(l.uri,o==null?void 0:o.details);this.loadPlaylist(P)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),u}(w.default)},"./src/controller/level-helper.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"addGroupId",function(){return g}),L.d(j,"assignTrackIdsByGroup",function(){return s}),L.d(j,"updatePTS",function(){return d}),L.d(j,"updateFragPTSDTS",function(){return p}),L.d(j,"mergeDetails",function(){return a}),L.d(j,"mapPartIntersection",function(){return f}),L.d(j,"mapFragmentIntersection",function(){return x}),L.d(j,"adjustSliding",function(){return b}),L.d(j,"addSliding",function(){return m}),L.d(j,"computeReloadInterval",function(){return O}),L.d(j,"getFragmentWithSN",function(){return i}),L.d(j,"getPartWith",function(){return r});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/logger.ts");function g(u,h,y){switch(h){case"audio":u.audioGroupIds||(u.audioGroupIds=[]),u.audioGroupIds.push(y);break;case"text":u.textGroupIds||(u.textGroupIds=[]),u.textGroupIds.push(y);break}}function s(u){var h={};u.forEach(function(y){var E=y.groupId||"";y.id=h[E]=h[E]||0,h[E]++})}function d(u,h,y){var E=u[h],t=u[y];w(E,t)}function w(u,h){var y=h.startPTS;if(Object(U.isFiniteNumber)(y)){var E=0,t;h.sn>u.sn?(E=y-u.start,t=u):(E=u.start-y,t=h),t.duration!==E&&(t.duration=E)}else if(h.sn>u.sn){var C=u.cc===h.cc;C&&u.minEndPTS?h.start=u.start+(u.minEndPTS-u.start):h.start=u.start+u.duration}else h.start=Math.max(u.start-h.duration,0)}function p(u,h,y,E,t,C){var A=E-y;A<=0&&(S.logger.warn("Fragment should have a positive duration",h),E=y+h.duration,C=t+h.duration);var v=y,o=E,l=h.startPTS,c=h.endPTS;if(Object(U.isFiniteNumber)(l)){var M=Math.abs(l-y);Object(U.isFiniteNumber)(h.deltaPTS)?h.deltaPTS=Math.max(M,h.deltaPTS):h.deltaPTS=M,v=Math.max(y,l),y=Math.min(y,l),t=Math.min(t,h.startDTS),o=Math.min(E,c),E=Math.max(E,c),C=Math.max(C,h.endDTS)}h.duration=E-y;var P=y-h.start;h.appendedPTS=E,h.start=h.startPTS=y,h.maxStartPTS=v,h.startDTS=t,h.endPTS=E,h.minEndPTS=o,h.endDTS=C;var R=h.sn;if(!u||Ru.endSN)return 0;var k,I=R-u.startSN,F=u.fragments;for(F[I]=h,k=I;k>0;k--)w(F[k],F[k-1]);for(k=I;k=0;t--){var C=E[t].initSegment;if(C){y=C;break}}u.fragmentHint&&delete u.fragmentHint.endPTS;var A=0,v;if(x(u,h,function(k,I){k.relurl&&(A=k.cc-I.cc),Object(U.isFiniteNumber)(k.startPTS)&&Object(U.isFiniteNumber)(k.endPTS)&&(I.start=I.startPTS=k.startPTS,I.startDTS=k.startDTS,I.appendedPTS=k.appendedPTS,I.maxStartPTS=k.maxStartPTS,I.endPTS=k.endPTS,I.endDTS=k.endDTS,I.minEndPTS=k.minEndPTS,I.duration=k.endPTS-k.startPTS,I.duration&&(v=I),h.PTSKnown=h.alignedSliding=!0),I.elementaryStreams=k.elementaryStreams,I.loader=k.loader,I.stats=k.stats,I.urlId=k.urlId,k.initSegment&&(I.initSegment=k.initSegment,y=k.initSegment)}),y){var o=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments;o.forEach(function(k){var I;(!k.initSegment||k.initSegment.relurl===((I=y)===null||I===void 0?void 0:I.relurl))&&(k.initSegment=y)})}if(h.skippedSegments&&(h.deltaUpdateFailed=h.fragments.some(function(k){return!k}),h.deltaUpdateFailed)){S.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var l=h.skippedSegments;l--;)h.fragments.shift();h.startSN=h.fragments[0].sn,h.startCC=h.fragments[0].cc}var c=h.fragments;if(A){S.logger.warn("discontinuity sliding from playlist, take drift into account");for(var M=0;M=E.length)return;m(h,E[y].start)}function m(u,h){if(h){for(var y=u.fragments,E=u.skippedSegments;E0&&t0&&o===-1&&(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),o=l),this.state=S.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=o,this.tick()}else this._forceStartLoad=!0,this.state=S.State.STOPPED},A.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},A.doTick=function(){switch(this.state){case S.State.IDLE:this.doTickIdle();break;case S.State.WAITING_LEVEL:{var o,l=this.levels,c=this.level,M=l==null||((o=l[c])===null||o===void 0)?void 0:o.details;if(M&&(!M.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(M))break;this.state=S.State.IDLE;break}break}case S.State.FRAG_LOADING_WAITING_RETRY:{var P,R=self.performance.now(),k=this.retryDate;(!k||R>=k||(P=this.media)!==null&&P!==void 0&&P.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=S.State.IDLE)}break;default:break}this.onTickEnd()},A.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},A.doTickIdle=function(){var o,l,c=this.hls,M=this.levelLastLoaded,P=this.levels,R=this.media,k=c.config,I=c.nextLoadLevel;if(M===null||!R&&(this.startFragRequested||!k.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!P||!P[I])return;var F=P[I];this.level=c.nextLoadLevel=I;var V=F.details;if(!V||this.state===S.State.WAITING_LEVEL||V.live&&this.levelLastLoaded!==I){this.state=S.State.WAITING_LEVEL;return}var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:R,p.PlaylistLevelType.MAIN);if(W===null)return;var G=W.len,J=this.getMaxBufferLength(F.maxBitrate);if(G>=J)return;if(this._streamEnded(W,V)){var X={};this.altAudio&&(X.type="video"),this.hls.trigger(s.Events.BUFFER_EOS,X),this.state=S.State.ENDED;return}var te=W.end,ee=this.getNextFragment(te,V);if(this.couldBacktrack&&!this.fragPrevious&&ee&&ee.sn!=="initSegment"){var be=ee.sn-V.startSN;be>1&&(ee=V.fragments[be-1],this.fragmentTracker.removeFragment(ee))}if(ee&&this.fragmentTracker.getState(ee)===w.FragmentState.OK&&this.nextLoadPosition>te){var ge=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(R,ge,p.PlaylistLevelType.MAIN),ee=this.getNextFragment(this.nextLoadPosition,V)}if(!ee)return;ee.initSegment&&!ee.initSegment.data&&!this.bitrateTest&&(ee=ee.initSegment),((o=ee.decryptdata)===null||o===void 0?void 0:o.keyFormat)==="identity"&&!((l=ee.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(ee,V):this.loadFragment(ee,V,te)},A.loadFragment=function(o,l,c){var M,P=this.fragmentTracker.getState(o);if(this.fragCurrent=o,P===w.FragmentState.BACKTRACKED){var R=this.fragmentTracker.getBacktrackData(o);if(R){this._handleFragmentLoadProgress(R),this._handleFragmentLoadComplete(R);return}else P=w.FragmentState.NOT_LOADED}P===w.FragmentState.NOT_LOADED||P===w.FragmentState.PARTIAL?o.sn==="initSegment"?this._loadInitSegment(o):this.bitrateTest?(o.bitrateTest=!0,this.log("Fragment "+o.sn+" of level "+o.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(o)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,o,l,c)):P===w.FragmentState.APPENDING?this.reduceMaxBufferLength(o.duration)&&this.fragmentTracker.removeFragment(o):((M=this.media)===null||M===void 0?void 0:M.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},A.getAppendedFrag=function(o){var l=this.fragmentTracker.getAppendedFrag(o,p.PlaylistLevelType.MAIN);return l&&"fragment"in l?l.fragment:l},A.getBufferedFrag=function(o){return this.fragmentTracker.getBufferedFrag(o,p.PlaylistLevelType.MAIN)},A.followingBufferedFrag=function(o){return o?this.getBufferedFrag(o.end+.5):null},A.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},A.nextLevelSwitch=function(){var o=this.levels,l=this.media;if(l!=null&&l.readyState){var c,M=this.getAppendedFrag(l.currentTime);if(M&&M.start>1&&this.flushMainBuffer(0,M.start-1),!l.paused&&o){var P=this.hls.nextLoadLevel,R=o[P],k=this.fragLastKbps;k&&this.fragCurrent?c=this.fragCurrent.duration*R.maxBitrate/(1e3*k)+1:c=0}else c=0;var I=this.getBufferedFrag(l.currentTime+c);if(I){var F=this.followingBufferedFrag(I);if(F){this.abortCurrentFrag();var V=F.maxStartPTS?F.maxStartPTS:F.start,W=F.duration,G=Math.max(I.end,V+Math.min(Math.max(W-this.config.maxFragLookUpTolerance,W*.5),W*.75));this.flushMainBuffer(G,Number.POSITIVE_INFINITY)}}}},A.abortCurrentFrag=function(){var o=this.fragCurrent;this.fragCurrent=null,o!=null&&o.loader&&o.loader.abort(),this.state===S.State.KEY_LOADING&&(this.state=S.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},A.flushMainBuffer=function(o,l){t.prototype.flushMainBuffer.call(this,o,l,this.altAudio?"video":null)},A.onMediaAttached=function(o,l){t.prototype.onMediaAttached.call(this,o,l);var c=l.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),c.addEventListener("playing",this.onvplaying),c.addEventListener("seeked",this.onvseeked),this.gapController=new b.default(this.config,c,this.fragmentTracker,this.hls)},A.onMediaDetaching=function(){var o=this.media;o&&(o.removeEventListener("playing",this.onvplaying),o.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},A.onMediaPlaying=function(){this.tick()},A.onMediaSeeked=function(){var o=this.media,l=o?o.currentTime:null;Object(U.isFiniteNumber)(l)&&this.log("Media seeked to "+l.toFixed(3)),this.tick()},A.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(s.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},A.onManifestParsed=function(o,l){var c=!1,M=!1,P;l.levels.forEach(function(R){P=R.audioCodec,P&&(P.indexOf("mp4a.40.2")!==-1&&(c=!0),P.indexOf("mp4a.40.5")!==-1&&(M=!0))}),this.audioCodecSwitch=c&&M&&!Object(g.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=l.levels,this.startFragRequested=!1},A.onLevelLoading=function(o,l){var c=this.levels;if(!c||this.state!==S.State.IDLE)return;var M=c[l.level];(!M.details||M.details.live&&this.levelLastLoaded!==l.level||this.waitForCdnTuneIn(M.details))&&(this.state=S.State.WAITING_LEVEL)},A.onLevelLoaded=function(o,l){var c,M=this.levels,P=l.level,R=l.details,k=R.totalduration;if(!M){this.warn("Levels were reset while loading level "+P);return}this.log("Level "+P+" loaded ["+R.startSN+","+R.endSN+"], cc ["+R.startCC+", "+R.endCC+"] duration:"+k);var I=this.fragCurrent;I&&(this.state===S.State.FRAG_LOADING||this.state===S.State.FRAG_LOADING_WAITING_RETRY)&&(I.level!==l.level&&I.loader&&(this.state=S.State.IDLE,I.loader.abort()));var F=M[P],V=0;if(R.live||(c=F.details)!==null&&c!==void 0&&c.live){if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed)return;V=this.alignPlaylists(R,F.details)}if(F.details=R,this.levelLastLoaded=P,this.hls.trigger(s.Events.LEVEL_UPDATED,{details:R,level:P}),this.state===S.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(R))return;this.state=S.State.IDLE}this.startFragRequested?R.live&&this.synchronizeToLiveEdge(R):this.setStartPosition(R,V),this.tick()},A._handleFragmentLoadProgress=function(o){var l,c=o.frag,M=o.part,P=o.payload,R=this.levels;if(!R){this.warn("Levels were reset while fragment load was in progress. Fragment "+c.sn+" of level "+c.level+" will not be buffered");return}var k=R[c.level],I=k.details;if(!I){this.warn("Dropping fragment "+c.sn+" of level "+c.level+" after level details were reset");return}var F=k.videoCodec,V=I.PTSKnown||!I.live,W=(l=c.initSegment)===null||l===void 0?void 0:l.data,G=this._getAudioCodec(k),J=this.transmuxer=this.transmuxer||new f.default(this.hls,p.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),X=M?M.index:-1,te=X!==-1,ee=new x.ChunkMetadata(c.level,c.sn,c.stats.chunkCount,P.byteLength,X,te),be=this.initPTS[c.cc];J.push(P,W,G,F,c,M,I.totalduration,V,ee,be)},A.onAudioTrackSwitching=function(o,l){var c=this.altAudio,M=!!l.url,P=l.id;if(!M){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var R=this.fragCurrent;R!=null&&R.loader&&(this.log("Switching to main audio track, cancel main fragment load"),R.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var k=this.hls;c&&k.trigger(s.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),k.trigger(s.Events.AUDIO_TRACK_SWITCHED,{id:P})}},A.onAudioTrackSwitched=function(o,l){var c=l.id,M=!!this.hls.audioTracks[c].url;if(M){var P=this.videoBuffer;P&&this.mediaBuffer!==P&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=P)}this.altAudio=M,this.tick()},A.onBufferCreated=function(o,l){var c=l.tracks,M,P,R=!1;for(var k in c){var I=c[k];if(I.id==="main"){if(P=k,M=I,k==="video"){var F=c[k];F&&(this.videoBuffer=F.buffer)}}else R=!0}R&&M?(this.log("Alternate track found, use "+P+".buffered to schedule main fragment loading"),this.mediaBuffer=M.buffer):this.mediaBuffer=this.media},A.onFragBuffered=function(o,l){var c=l.frag,M=l.part;if(c&&c.type!==p.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(c)){this.warn("Fragment "+c.sn+(M?" p: "+M.index:"")+" of level "+c.level+" finished buffering, but was aborted. state: "+this.state),this.state===S.State.PARSED&&(this.state=S.State.IDLE);return}var P=M?M.stats:c.stats;this.fragLastKbps=Math.round(8*P.total/(P.buffering.end-P.loading.first)),c.sn!=="initSegment"&&(this.fragPrevious=c),this.fragBufferedComplete(c,M)},A.onError=function(o,l){switch(l.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:case m.ErrorDetails.KEY_LOAD_ERROR:case m.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.MAIN,l);break;case m.ErrorDetails.LEVEL_LOAD_ERROR:case m.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==S.State.ERROR&&(l.fatal?(this.warn(""+l.details),this.state=S.State.ERROR):!l.levelRetry&&this.state===S.State.WAITING_LEVEL&&(this.state=S.State.IDLE));break;case m.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="main"&&(this.state===S.State.PARSING||this.state===S.State.PARSED)){var c=!0,M=this.getFwdBufferInfo(this.media,p.PlaylistLevelType.MAIN);M&&M.len>.5&&(c=!this.reduceMaxBufferLength(M.len)),c&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},A.checkBuffer=function(){var o=this.media,l=this.gapController;if(!o||!l||!o.readyState)return;var c=d.BufferHelper.getBuffered(o);!this.loadedmetadata&&c.length?(this.loadedmetadata=!0,this.seekToStartPos()):l.poll(this.lastCurrentTime),this.lastCurrentTime=o.currentTime},A.onFragLoadEmergencyAborted=function(){this.state=S.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},A.onBufferFlushed=function(o,l){var c=l.type;if(c!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var M=(c===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(M,c,p.PlaylistLevelType.MAIN)}},A.onLevelsUpdated=function(o,l){this.levels=l.levels},A.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},A.seekToStartPos=function(){var o=this.media,l=o.currentTime,c=this.startPosition;if(c>=0&&l0&&(R1&&o.seeking===!1){var c=o.currentTime;if(d.BufferHelper.isBuffered(o,c)?l=this.getAppendedFrag(c):d.BufferHelper.isBuffered(o,c+.1)&&(l=this.getAppendedFrag(c+.1)),l){var M=this.fragPlaying,P=l.level;(!M||l.sn!==M.sn||M.level!==P||l.urlId!==M.urlId)&&(this.hls.trigger(s.Events.FRAG_CHANGED,{frag:l}),(!M||M.level!==P)&&this.hls.trigger(s.Events.LEVEL_SWITCHED,{level:P}),this.fragPlaying=l)}}},r(C,[{key:"nextLevel",get:function(){var o=this.nextBufferedFrag;return o?o.level:-1}},{key:"currentLevel",get:function(){var o=this.media;if(o){var l=this.getAppendedFrag(o.currentTime);if(l)return l.level}return-1}},{key:"nextBufferedFrag",get:function(){var o=this.media;if(o){var l=this.getAppendedFrag(o.currentTime);return this.followingBufferedFrag(l)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),C}(S.default)},"./src/controller/subtitle-stream-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"SubtitleStreamController",function(){return u});var U=L("./src/events.ts"),S=L("./src/utils/logger.ts"),g=L("./src/utils/buffer-helper.ts"),s=L("./src/controller/fragment-finders.ts"),d=L("./src/utils/discontinuities.ts"),w=L("./src/controller/level-helper.ts"),p=L("./src/controller/fragment-tracker.ts"),a=L("./src/controller/base-stream-controller.ts"),f=L("./src/types/loader.ts"),x=L("./src/types/level.ts");function b(h,y){for(var E=0;E=l[P].start&&M<=l[P].end){c=l[P];break}var R=v.start+v.duration;c?c.end=R:(c={start:M,end:R},l.push(c)),this.fragmentTracker.fragBuffered(v)},E.onBufferFlushing=function(C,A){var v=A.startOffset,o=A.endOffset;if(v===0&&o!==Number.POSITIVE_INFINITY){var l=this.currentTrackId,c=this.levels;if(!c.length||!c[l]||!c[l].details)return;var M=c[l].details,P=M.targetduration,R=o-P;if(R<=0)return;A.endOffsetSubtitles=Math.max(0,R),this.tracksBuffered.forEach(function(k){for(var I=0;I=M.length||l!==c||!P)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,o.live||(v=P.details)!==null&&v!==void 0&&v.live){var R=this.mainDetails;if(o.deltaUpdateFailed||!R)return;var k=R.fragments[0];if(!P.details)o.hasProgramDateTime&&R.hasProgramDateTime?Object(d.alignMediaPlaylistByPDT)(o,R):k&&Object(w.addSliding)(o,k.start);else{var I=this.alignPlaylists(o,P.details);I===0&&k&&Object(w.addSliding)(o,k.start)}}if(P.details=o,this.levelLastLoaded=l,this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var F=Object(s.findFragmentByPTS)(null,o.fragments,this.media.currentTime,0);F||(this.warn("Subtitle playlist not aligned with playback"),P.details=void 0)}},E._handleFragmentLoadComplete=function(C){var A=C.frag,v=C.payload,o=A.decryptdata,l=this.hls;if(this.fragContextChanged(A))return;if(v&&v.byteLength>0&&o&&o.key&&o.iv&&o.method==="AES-128"){var c=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(v),o.key.buffer,o.iv.buffer).then(function(M){var P=performance.now();l.trigger(U.Events.FRAG_DECRYPTED,{frag:A,payload:M,stats:{tstart:c,tdecrypt:P}})})}},E.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var C,A=this.currentTrackId,v=this.levels;if(!v.length||!v[A]||!v[A].details)return;var o=v[A].details,l=o.targetduration,c=this.config,M=this.media,P=g.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,M.currentTime-l,c.maxBufferHole),R=P.end,k=P.len,I=this.getMaxBufferLength()+l;if(k>I)return;console.assert(o,"Subtitle track details are defined on idle subtitle stream controller tick");var F=o.fragments,V=F.length,W=o.edge,G,J=this.fragPrevious;if(R-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},O.pollTrackChange=function(r){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,r)},O.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var r=x(this.media.textTracks);r.forEach(function(u){Object(S.clearCurrentCues)(u)}),this.subtitleTrack=-1,this.media=null},O.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},O.onManifestParsed=function(r,u){this.tracks=u.subtitleTracks},O.onSubtitleTrackLoaded=function(r,u){var h=u.id,y=u.details,E=this.trackId,t=this.tracksInGroup[E];if(!t){this.warn("Invalid subtitle track id "+h);return}var C=t.details;t.details=u.details,this.log("subtitle track "+h+" loaded ["+y.startSN+"-"+y.endSN+"]"),h===this.trackId&&(this.retryCount=0,this.playlistLoaded(h,u,C))},O.onLevelLoading=function(r,u){this.switchLevel(u.level)},O.onLevelSwitching=function(r,u){this.switchLevel(u.level)},O.switchLevel=function(r){var u=this.hls.levels[r];if(!(u!=null&&u.textGroupIds))return;var h=u.textGroupIds[u.urlId];if(this.groupId!==h){var y=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(A){return!h||A.groupId===h});this.tracksInGroup=E;var t=this.findTrackId(y==null?void 0:y.name)||this.findTrackId();this.groupId=h;var C={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+h+'" group-id'),this.hls.trigger(U.Events.SUBTITLE_TRACKS_UPDATED,C),t!==-1&&this.setSubtitleTrack(t,y)}},O.findTrackId=function(r){for(var u=this.tracksInGroup,h=0;h=y.length)return;this.clearTimer();var E=y[r];if(this.log("Switching to subtitle track "+r),this.trackId=r,E){var t=E.id,C=E.groupId,A=C===void 0?"":C,v=E.name,o=E.type,l=E.url;this.hls.trigger(U.Events.SUBTITLE_TRACK_SWITCH,{id:t,groupId:A,name:v,type:o,url:l});var c=this.switchParams(E.url,u==null?void 0:u.details);this.loadPlaylist(c)}else this.hls.trigger(U.Events.SUBTITLE_TRACK_SWITCH,{id:r})},O.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var r=-1,u=x(this.media.textTracks),h=0;h=0&&(o[0]=Math.min(o[0],y),o[1]=Math.max(o[1],E),A=!0,l/(E-y)>.5))return}if(A||C.push([y,E]),this.config.renderTextTracksNatively){var c=this.captionsTracks[h];this.Cues.newCue(c,y,E,t)}else{var M=this.Cues.newCue(null,y,E,t);this.hls.trigger(S.Events.CUES_PARSED,{type:"captions",cues:M,track:h})}},r.onInitPtsFound=function(h,y){var E=this,t=y.frag,C=y.id,A=y.initPTS,v=y.timescale,o=this.unparsedVttFrags;C==="main"&&(this.initPTS[t.cc]=A,this.timescale[t.cc]=v),o.length&&(this.unparsedVttFrags=[],o.forEach(function(l){E.onFragLoaded(S.Events.FRAG_LOADED,l)}))},r.getExistingTrack=function(h){var y=this.media;if(y)for(var E=0;E>>8^v&255^99,p[t]=v,a[v]=t;var o=E[t],l=E[o],c=E[l],M=E[v]*257^v*16843008;x[t]=M<<24|M>>>8,b[t]=M<<16|M>>>16,m[t]=M<<8|M>>>24,O[t]=M,M=c*16843009^l*65537^o*257^t*16843008,r[v]=M<<24|M>>>8,u[v]=M<<16|M>>>16,h[v]=M<<8|M>>>24,y[v]=M,t?(t=o^E[E[E[c^o]]],C^=E[E[C]]):t=C=1}},d.expandKey=function(p){for(var a=this.uint8ArrayToUint32Array_(p),f=!0,x=0;x>>6)+1;var M=(h[y+2]&60)>>>2;if(M>c.length-1){u.trigger(g.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+M});return}return A=(h[y+2]&1)<<2,A|=(h[y+3]&192)>>>6,U.logger.log("manifest codec:"+E+", ADTS type:"+t+", samplingIndex:"+M),/firefox/i.test(o)?M>=6?(t=5,v=new Array(4),C=M-3):(t=2,v=new Array(2),C=M):o.indexOf("android")!==-1?(t=2,v=new Array(2),C=M):(t=5,v=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&M>=6?C=M-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(M>=6&&A===1||/vivaldi/i.test(o))||!E&&A===1)&&(t=2,v=new Array(2)),C=M)),v[0]=t<<3,v[0]|=(M&14)>>1,v[1]|=(M&1)<<7,v[1]|=A<<3,t===5&&(v[1]|=(C&14)>>1,v[2]=(C&1)<<7,v[2]|=2<<2,v[3]=0),{config:v,samplerate:c[M],channelCount:A,codec:"mp4a.40."+t,manifestCodec:l}}function d(u,h){return u[h]===255&&(u[h+1]&246)===240}function w(u,h){return u[h+1]&1?7:9}function p(u,h){return(u[h+3]&3)<<11|u[h+4]<<3|(u[h+5]&224)>>>5}function a(u,h){return h+5=u.length)return!1;var E=p(u,h);if(E<=y)return!1;var t=h+E;return t===u.length||f(u,t)}return!1}function m(u,h,y,E,t){if(!u.samplerate){var C=s(h,y,E,t);if(!C)return;u.config=C.config,u.samplerate=C.samplerate,u.channelCount=C.channelCount,u.codec=C.codec,u.manifestCodec=C.manifestCodec,U.logger.log("parsed codec:"+u.codec+", rate:"+C.samplerate+", channels:"+C.channelCount)}}function O(u){return 1024*9e4/u}function i(u,h,y,E,t){var C=w(u,h),A=p(u,h);if(A-=C,A>0){var v=y+E*t;return{headerLength:C,frameLength:A,stamp:v}}}function r(u,h,y,E,t){var C=O(u.samplerate),A=i(h,y,E,t,C);if(A){var v=A.frameLength,o=A.headerLength,l=A.stamp,c=o+v,M=Math.max(0,y+c-h.length),P;M?(P=new Uint8Array(c-o),P.set(h.subarray(y+o,h.length),0)):P=h.subarray(y+o,y+c);var R={unit:P,pts:l};return M||u.samples.push(R),{sample:R,length:c,missing:M}}}},"./src/demux/base-audio-demuxer.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"initPTSFn",function(){return p});var U=L("./src/polyfills/number.ts"),S=L("./src/demux/id3.ts"),g=L("./src/demux/dummy-demuxed-track.ts"),s=L("./src/utils/mp4-tools.ts"),d=L("./src/utils/typed-array.ts"),w=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var f=a.prototype;return f.resetInitSegment=function(b,m,O){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},f.resetTimeStamp=function(){},f.resetContiguity=function(){},f.canParse=function(b,m){return!1},f.appendFrame=function(b,m,O){},f.demux=function(b,m){this.cachedData&&(b=Object(s.appendUint8Array)(this.cachedData,b),this.cachedData=null);var O=S.getID3Data(b,0),i=O?O.length:0,r,u,h=this._audioTrack,y=this._id3Track,E=O?S.getTimeStamp(O):void 0,t=b.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=p(E,m)),O&&O.length>0&&y.samples.push({pts:this.initPTS,dts:this.initPTS,data:O}),u=this.initPTS;iw?(this.word<<=w,this.bitsAvailable-=w):(w-=this.bitsAvailable,p=w>>3,w-=p>>3,this.bytesAvailable-=p,this.loadWord(),this.word<<=w,this.bitsAvailable-=w)},s.readBits=function(w){var p=Math.min(this.bitsAvailable,w),a=this.word>>>32-p;return w>32&&U.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=p,this.bitsAvailable>0?this.word<<=p:this.bytesAvailable>0&&this.loadWord(),p=w-p,p>0&&this.bitsAvailable?a<>>w)!==0)return this.word<<=w,this.bitsAvailable-=w,w;return this.loadWord(),w+this.skipLZ()},s.skipUEG=function(){this.skipBits(1+this.skipLZ())},s.skipEG=function(){this.skipBits(1+this.skipLZ())},s.readUEG=function(){var w=this.skipLZ();return this.readBits(w+1)-1},s.readEG=function(){var w=this.readUEG();return 1&w?1+w>>>1:-1*(w>>>1)},s.readBoolean=function(){return this.readBits(1)===1},s.readUByte=function(){return this.readBits(8)},s.readUShort=function(){return this.readBits(16)},s.readUInt=function(){return this.readBits(32)},s.skipScalingList=function(w){for(var p=8,a=8,f,x=0;x0?t.subarray(A,A+v):void 0},s=function(t,C){var A=0;return A=(t[C]&127)<<21,A|=(t[C+1]&127)<<14,A|=(t[C+2]&127)<<7,A|=t[C+3]&127,A},d=function(t,C){return U(t,C)&&s(t,C+6)+10<=t.length-C},w=function(t){for(var C=f(t),A=0;A>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:R+=String.fromCharCode(c);break;case 12:case 13:M=t[k++],R+=String.fromCharCode((c&31)<<6|M&63);break;case 14:M=t[k++],P=t[k++],R+=String.fromCharCode((c&15)<<12|(M&63)<<6|(P&63)<<0);break;default:}}return R},u={decodeTextFrame:m},h;function y(){return!h&&typeof self.TextDecoder!="undefined"&&(h=new self.TextDecoder("utf-8")),h}},"./src/demux/mp3demuxer.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/demux/base-audio-demuxer.ts"),S=L("./src/demux/id3.ts"),g=L("./src/utils/logger.ts"),s=L("./src/demux/mpegaudio.ts");function d(a,f){a.prototype=Object.create(f.prototype),a.prototype.constructor=a,w(a,f)}function w(a,f){return w=Object.setPrototypeOf||function(b,m){return b.__proto__=m,b},w(a,f)}var p=function(a){d(f,a);function f(){return a.apply(this,arguments)||this}var x=f.prototype;return x.resetInitSegment=function(m,O,i){a.prototype.resetInitSegment.call(this,m,O,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:m,duration:i,inputTimeScale:9e4,dropped:0}},f.probe=function(m){if(!m)return!1;for(var O=S.getID3Data(m,0)||[],i=O.length,r=m.length;i0},d.demux=function(p){var a=p,f=Object(S.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(U.appendUint8Array)(this.remainderData,p));var x=Object(U.segmentValidRange)(a);this.remainderData=x.remainder,f.samples=x.valid||new Uint8Array}else f.samples=a;return{audioTrack:Object(S.dummyTrack)(),avcTrack:f,id3Track:Object(S.dummyTrack)(),textTrack:Object(S.dummyTrack)()}},d.flush=function(){var p=Object(S.dummyTrack)();return p.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(S.dummyTrack)(),avcTrack:p,id3Track:Object(S.dummyTrack)(),textTrack:Object(S.dummyTrack)()}},d.demuxSampleAes=function(p,a,f){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},d.destroy=function(){},s}();g.minProbeByteLength=1024,j.default=g},"./src/demux/mpegaudio.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"appendFrame",function(){return w}),L.d(j,"parseHeader",function(){return p}),L.d(j,"isHeaderPattern",function(){return a}),L.d(j,"isHeader",function(){return f}),L.d(j,"canParse",function(){return x}),L.d(j,"probe",function(){return b});var U=null,S=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],g=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],s=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],d=[0,1,1,4];function w(m,O,i,r,u){if(i+24>O.length)return;var h=p(O,i);if(h&&i+h.frameLength<=O.length){var y=h.samplesPerFrame*9e4/h.sampleRate,E=r+u*y,t={unit:O.subarray(i,i+h.frameLength),pts:E,dts:E};return m.config=[],m.channelCount=h.channelCount,m.samplerate=h.sampleRate,m.samples.push(t),{sample:t,length:h.frameLength,missing:0}}}function p(m,O){var i=m[O+1]>>3&3,r=m[O+1]>>1&3,u=m[O+2]>>4&15,h=m[O+2]>>2&3;if(i!==1&&u!==0&&u!==15&&h!==3){var y=m[O+2]>>1&1,E=m[O+3]>>6,t=i===3?3-r:r===3?3:4,C=S[t*14+u-1]*1e3,A=i===3?0:i===2?1:2,v=g[A*3+h],o=E===3?1:2,l=s[i][r],c=d[r],M=l*8*c,P=Math.floor(l*C/v+y)*c;if(U===null){var R=navigator.userAgent||"",k=R.match(/Chrome\/(\d+)/i);U=k?parseInt(k[1]):0}var I=!!U&&U<=87;return I&&r===2&&C>=224e3&&E===0&&(m[O+3]=m[O+3]|128),{sampleRate:v,channelCount:o,frameLength:P,samplesPerFrame:M}}}function a(m,O){return m[O]===255&&(m[O+1]&224)===224&&(m[O+1]&6)!==0}function f(m,O){return O+1=p.length){f();return}if(p[a].unit.length<32)continue;var x=this.decrypter.isSync();if(this.decryptAacSample(p,a,f,x),!x)return}},d.getAvcEncryptedData=function(p){for(var a=Math.floor((p.length-48)/160)*16+16,f=new Int8Array(a),x=0,b=32;b<=p.length-16;b+=160,x+=16)f.set(p.subarray(b,b+16),x);return f},d.getAvcDecryptedUnit=function(p,a){for(var f=new Uint8Array(a),x=0,b=32;b<=p.length-16;b+=160,x+=16)p.set(f.subarray(x,x+16),b);return p},d.decryptAvcSample=function(p,a,f,x,b,m){var O=Object(S.discardEPB)(b.data),i=this.getAvcEncryptedData(O),r=this;this.decryptBuffer(i.buffer,function(u){b.data=r.getAvcDecryptedUnit(O,u),m||r.decryptAvcSamples(p,a,f+1,x)})},d.decryptAvcSamples=function(p,a,f,x){if(p instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,f=0){if(a>=p.length){x();return}for(var b=p[a].units;!(f>=b.length);f++){var m=b[f];if(m.data.length<=48||m.type!==1&&m.type!==5)continue;var O=this.decrypter.isSync();if(this.decryptAvcSample(p,a,f,x,m,O),!O)return}}},s}();j.default=g},"./src/demux/transmuxer-interface.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return b});var U=L("./node_modules/webworkify-webpack/index.js"),S=L.n(U),g=L("./src/events.ts"),s=L("./src/demux/transmuxer.ts"),d=L("./src/utils/logger.ts"),w=L("./src/errors.ts"),p=L("./src/utils/mediasource-helper.ts"),a=L("./node_modules/eventemitter3/index.js"),f=L.n(a),x=Object(p.getMediaSource)()||{isTypeSupported:function(){return!1}},b=function(){function m(i,r,u,h){var y=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=i,this.id=r,this.onTransmuxComplete=u,this.onFlush=h;var E=i.config,t=function(l,c){c=c||{},c.frag=y.frag,c.id=y.id,i.trigger(l,c)};this.observer=new a.EventEmitter,this.observer.on(g.Events.FRAG_DECRYPTED,t),this.observer.on(g.Events.ERROR,t);var C={mp4:x.isTypeSupported("video/mp4"),mpeg:x.isTypeSupported("audio/mpeg"),mp3:x.isTypeSupported('audio/mp4; codecs="mp3"')},A=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){d.logger.log("demuxing in webworker");var v;try{v=this.worker=U("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),v.addEventListener("message",this.onwmsg),v.onerror=function(o){i.trigger(g.Events.ERROR,{type:w.ErrorTypes.OTHER_ERROR,details:w.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(o.message+" ("+o.filename+":"+o.lineno+")")})},v.postMessage({cmd:"init",typeSupported:C,vendor:A,id:r,config:JSON.stringify(E)})}catch(o){d.logger.warn("Error in worker:",o),d.logger.error("Error while initializing DemuxerWorker, fallback to inline"),v&&self.URL.revokeObjectURL(v.objectURL),this.transmuxer=new s.default(this.observer,C,E,A,r),this.worker=null}}else this.transmuxer=new s.default(this.observer,C,E,A,r)}var O=m.prototype;return O.destroy=function(){var r=this.worker;if(r)r.removeEventListener("message",this.onwmsg),r.terminate(),this.worker=null;else{var u=this.transmuxer;u&&(u.destroy(),this.transmuxer=null)}var h=this.observer;h&&h.removeAllListeners(),this.observer=null},O.push=function(r,u,h,y,E,t,C,A,v,o){var l=this;v.transmuxing.start=self.performance.now();var c=this.transmuxer,M=this.worker,P=t?t.start:E.start,R=E.decryptdata,k=this.frag,I=!(k&&E.cc===k.cc),F=!(k&&v.level===k.level),V=k?v.sn-k.sn:-1,W=this.part?v.part-this.part.index:1,G=!F&&(V===1||V===0&&W===1),J=self.performance.now();(F||V||E.stats.parsing.start===0)&&(E.stats.parsing.start=J),t&&(W||!G)&&(t.stats.parsing.start=J);var X=new s.TransmuxState(I,G,A,F,P);if(!G||I){d.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+v.sn+" p: "+v.part+" level: "+v.level+" id: "+v.id+` + Time to underbuffer: `+I.toFixed(3)+" s"),u.nextLoadLevel=V,this.bwEstimator.sample(A,t.loaded),this.clearTimer(),i.loader&&(this.fragCurrent=this.partCurrent=null,i.loader.abort()),u.trigger(g.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:r,stats:t})},m.onFragLoaded=function(i,r){var u=r.frag,h=r.part;if(u.type===w.PlaylistLevelType.MAIN&&Object(U.isFiniteNumber)(u.sn)){var b=h?h.stats:u.stats,E=h?h.duration:u.duration;if(this.clearTimer(),this.lastLoadedFragLevel=u.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var t=this.hls.levels[u.level],C=(t.loaded?t.loaded.bytes:0)+b.loaded,A=(t.loaded?t.loaded.duration:0)+E;t.loaded={bytes:C,duration:A},t.realBitrate=Math.round(8*C/A)}if(u.bitrateTest){var v={stats:b,frag:u,part:h,id:u.type};this.onFragBuffered(g.Events.FRAG_BUFFERED,v),u.bitrateTest=!1}}},m.onFragBuffered=function(i,r){var u=r.frag,h=r.part,b=h?h.stats:u.stats;if(b.aborted)return;if(u.type!==w.PlaylistLevelType.MAIN||u.sn==="initSegment")return;var E=b.parsing.end-b.loading.start;this.bwEstimator.sample(E,b.loaded),b.bwEstimate=this.bwEstimator.getEstimate(),u.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},m.onError=function(i,r){switch(r.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},m.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},m.getNextABRAutoLevel=function(){var i=this.fragCurrent,r=this.partCurrent,u=this.hls,h=u.maxAutoLevel,b=u.config,E=u.minAutoLevel,t=u.media,C=r?r.duration:i?i.duration:0,A=t?t.currentTime:0,v=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,o=this.bwEstimator?this.bwEstimator.getEstimate():b.abrEwmaDefaultEstimate,l=(s.BufferHelper.bufferInfo(t,A,b.maxBufferHole).end-A)/v,c=this.findBestLevel(o,E,h,l,b.abrBandWidthFactor,b.abrBandWidthUpFactor);if(c>=0)return c;p.logger.trace((l?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var M=C?Math.min(C,b.maxStarvationDelay):b.maxStarvationDelay,P=b.abrBandWidthFactor,R=b.abrBandWidthUpFactor;if(!l){var k=this.bitrateTestDelay;if(k){var I=C?Math.min(C,b.maxLoadingDelay):b.maxLoadingDelay;M=I-k,p.logger.trace("bitrate test took "+Math.round(1e3*k)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*M)+" ms"),P=R=1}}return c=this.findBestLevel(o,E,h,l+M,P,R),Math.max(c,0)},m.findBestLevel=function(i,r,u,h,b,E){for(var t,C=this.fragCurrent,A=this.partCurrent,v=this.lastLoadedFragLevel,o=this.hls.levels,l=o[v],c=!!(l!=null&&(t=l.details)!==null&&t!==void 0&&t.live),M=l==null?void 0:l.codecSet,P=A?A.duration:C?C.duration:0,R=u;R>=r;R--){var k=o[R];if(!k||M&&k.codecSet!==M)continue;var I=k.details,F=(A?I==null?void 0:I.partTarget:I==null?void 0:I.averagetargetduration)||P,V=void 0;R<=v?V=b*i:V=E*i;var W=o[R].maxBitrate,G=W*F/V;if(p.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+R+"/"+Math.round(V)+"/"+W+"/"+F+"/"+h+"/"+G),V>W&&(!G||c&&!this.bitrateTestDelay||G0&&l===-1?(this.log("Override startPosition with lastCurrentTime @"+c.toFixed(3)),this.state=S.State.IDLE):(this.loadedmetadata=!1,this.state=S.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()},v.doTick=function(){switch(this.state){case S.State.IDLE:this.doTickIdle();break;case S.State.WAITING_TRACK:{var l,c=this.levels,M=this.trackId,P=c==null||((l=c[M])===null||l===void 0)?void 0:l.details;if(P){if(this.waitForCdnTuneIn(P))break;this.state=S.State.WAITING_INIT_PTS}break}case S.State.FRAG_LOADING_WAITING_RETRY:{var R,k=performance.now(),I=this.retryDate;(!I||k>=I||(R=this.media)!==null&&R!==void 0&&R.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=S.State.IDLE);break}case S.State.WAITING_INIT_PTS:{var F=this.waitingData;if(F){var V=F.frag,W=F.part,G=F.cache,J=F.complete;if(this.initPTS[V.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=S.State.FRAG_LOADING;var X=G.flush(),te={frag:V,part:W,payload:X,networkDetails:null};this._handleFragmentLoadProgress(te),J&&C.prototype._handleFragmentLoadComplete.call(this,te)}else if(this.videoTrackCC!==this.waitingVideoCC)r.logger.log("Waiting fragment cc ("+V.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ee=this.getLoadPosition(),be=s.BufferHelper.bufferInfo(this.mediaBuffer,ee,this.config.maxBufferHole),ge=Object(m.fragmentWithinToleranceTest)(be.end,this.config.maxFragLookUpTolerance,V);ge<0&&(r.logger.log("Waiting fragment cc ("+V.cc+") @ "+V.start+" cancelled because another fragment at "+be.end+" is needed"),this.clearWaitingFragment())}}else this.state=S.State.IDLE}}this.onTickEnd()},v.clearWaitingFragment=function(){var l=this.waitingData;l&&(this.fragmentTracker.removeFragment(l.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=S.State.IDLE)},v.onTickEnd=function(){var l=this.media;if(!l||!l.readyState)return;var c=this.mediaBuffer?this.mediaBuffer:l,M=c.buffered;!this.loadedmetadata&&M.length&&(this.loadedmetadata=!0),this.lastCurrentTime=l.currentTime},v.doTickIdle=function(){var l,c,M=this.hls,P=this.levels,R=this.media,k=this.trackId,I=M.config;if(!P||!P[k])return;if(!R&&(this.startFragRequested||!I.startFragPrefetch))return;var F=P[k],V=F.details;if(!V||V.live&&this.levelLastLoaded!==k||this.waitForCdnTuneIn(V)){this.state=S.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,p.PlaylistLevelType.AUDIO));var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,p.PlaylistLevelType.AUDIO);if(W===null)return;var G=W.len,J=this.getMaxBufferLength(),X=this.audioSwitch;if(G>=J&&!X)return;if(!X&&this._streamEnded(W,V)){M.trigger(g.Events.BUFFER_EOS,{type:"audio"}),this.state=S.State.ENDED;return}var te=V.fragments,ee=te[0].start,be=W.end;if(X){var ge=this.getLoadPosition();be=ge,V.PTSKnown&&geee||W.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),R.currentTime=ee+.05))}var je=this.getNextFragment(be,V);if(!je){this.bufferFlushed=!0;return}((l=je.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((c=je.decryptdata)!==null&&c!==void 0&&c.key)?this.loadKey(je,V):this.loadFragment(je,V,be)},v.getMaxBufferLength=function(){var l=C.prototype.getMaxBufferLength.call(this),c=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,p.PlaylistLevelType.MAIN);return c===null?l:Math.max(l,c.len)},v.onMediaDetaching=function(){this.videoBuffer=null,C.prototype.onMediaDetaching.call(this)},v.onAudioTracksUpdated=function(l,c){var M=c.audioTracks;this.resetTransmuxer(),this.levels=M.map(function(P){return new w.Level(P)})},v.onAudioTrackSwitching=function(l,c){var M=!!c.url;this.trackId=c.id;var P=this.fragCurrent;P!=null&&P.loader&&P.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),M?this.setInterval(E):this.resetTransmuxer(),M?(this.audioSwitch=!0,this.state=S.State.IDLE):this.state=S.State.STOPPED,this.tick()},v.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},v.onLevelLoaded=function(l,c){this.mainDetails=c.details},v.onAudioTrackLoaded=function(l,c){var M,P=this.levels,R=c.details,k=c.id;if(!P){this.warn("Audio tracks were reset while loading level "+k);return}this.log("Track "+k+" loaded ["+R.startSN+","+R.endSN+"],duration:"+R.totalduration);var I=P[k],F=0;if(R.live||(M=I.details)!==null&&M!==void 0&&M.live){var V=this.mainDetails;if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed||!V)return;!I.details&&R.hasProgramDateTime&&V.hasProgramDateTime?(Object(O.alignMediaPlaylistByPDT)(R,V),F=R.fragments[0].start):F=this.alignPlaylists(R,I.details)}I.details=R,this.levelLastLoaded=k,!this.startFragRequested&&(this.mainDetails||!R.live)&&this.setStartPosition(I.details,F),this.state===S.State.WAITING_TRACK&&!this.waitForCdnTuneIn(R)&&(this.state=S.State.IDLE),this.tick()},v._handleFragmentLoadProgress=function(l){var c,M=l.frag,P=l.part,R=l.payload,k=this.config,I=this.trackId,F=this.levels;if(!F){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+M.sn+" of level "+M.level+" will not be buffered");return}var V=F[I];console.assert(V,"Audio track is defined on fragment load progress");var W=V.details;console.assert(W,"Audio track details are defined on fragment load progress");var G=k.defaultAudioCodec||V.audioCodec||"mp4a.40.2",J=this.transmuxer;J||(J=this.transmuxer=new x.default(this.hls,p.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var X=this.initPTS[M.cc],te=(c=M.initSegment)===null||c===void 0?void 0:c.data;if(X!==void 0){var ee=!1,be=P?P.index:-1,ge=be!==-1,je=new y.ChunkMetadata(M.level,M.sn,M.stats.chunkCount,R.byteLength,be,ge);J.push(R,te,G,"",M,P,W.totalduration,ee,je,X)}else{r.logger.log("Unknown video PTS for cc "+M.cc+", waiting for video PTS before demuxing audio frag "+M.sn+" of ["+W.startSN+" ,"+W.endSN+"],track "+I);var He=this.waitingData=this.waitingData||{frag:M,part:P,cache:new f.default,complete:!1},nt=He.cache;nt.push(new Uint8Array(R)),this.waitingVideoCC=this.videoTrackCC,this.state=S.State.WAITING_INIT_PTS}},v._handleFragmentLoadComplete=function(l){if(this.waitingData){this.waitingData.complete=!0;return}C.prototype._handleFragmentLoadComplete.call(this,l)},v.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},v.onBufferCreated=function(l,c){var M=c.tracks.audio;M&&(this.mediaBuffer=M.buffer),c.tracks.video&&(this.videoBuffer=c.tracks.video.buffer)},v.onFragBuffered=function(l,c){var M=c.frag,P=c.part;if(M.type!==p.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(M)){this.warn("Fragment "+M.sn+(P?" p: "+P.index:"")+" of level "+M.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}M.sn!=="initSegment"&&(this.fragPrevious=M,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(g.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(M,P)},v.onError=function(l,c){switch(c.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.AUDIO,c);break;case i.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case i.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==S.State.ERROR&&this.state!==S.State.STOPPED&&(this.state=c.fatal?S.State.ERROR:S.State.IDLE,this.warn(c.details+" while loading frag, switching to "+this.state+" state"));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(c.parent==="audio"&&(this.state===S.State.PARSING||this.state===S.State.PARSED)){var M=!0,P=this.getFwdBufferInfo(this.mediaBuffer,p.PlaylistLevelType.AUDIO);P&&P.len>.5&&(M=!this.reduceMaxBufferLength(P.len)),M&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},v.onBufferFlushed=function(l,c){var M=c.type;M===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},v._handleTransmuxComplete=function(l){var c,M="audio",P=this.hls,R=l.remuxResult,k=l.chunkMeta,I=this.getCurrentContext(k);if(!I){this.warn("The loading context changed while buffering fragment "+k.sn+" of level "+k.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(k.level);return}var F=I.frag,V=I.part,W=R.audio,G=R.text,J=R.id3,X=R.initSegment;if(this.fragContextChanged(F))return;if(this.state=S.State.PARSING,this.audioSwitch&&W&&this.completeAudioSwitch(),X!=null&&X.tracks&&(this._bufferInitSegment(X.tracks,F,k),P.trigger(g.Events.FRAG_PARSING_INIT_SEGMENT,{frag:F,id:M,tracks:X.tracks})),W){var te=W.startPTS,ee=W.endPTS,be=W.startDTS,ge=W.endDTS;V&&(V.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:te,endPTS:ee,startDTS:be,endDTS:ge}),F.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,te,ee,be,ge),this.bufferFragmentData(W,F,V,k)}if(J!=null&&(c=J.samples)!==null&&c!==void 0&&c.length){var je=u({frag:F,id:M},J);P.trigger(g.Events.FRAG_PARSING_METADATA,je)}if(G){var He=u({frag:F,id:M},G);P.trigger(g.Events.FRAG_PARSING_USERDATA,He)}},v._bufferInitSegment=function(l,c,M){if(this.state!==S.State.PARSING)return;l.video&&delete l.video;var P=l.audio;if(!P)return;P.levelCodec=P.codec,P.id="audio",this.log("Init audio buffer, container:"+P.container+", codecs[parsed]=["+P.codec+"]"),this.hls.trigger(g.Events.BUFFER_CODECS,l);var R=P.initSegment;if(R!=null&&R.byteLength){var k={type:"audio",frag:c,part:null,chunkMeta:M,parent:c.type,data:R};this.hls.trigger(g.Events.BUFFER_APPENDING,k)}this.tick()},v.loadFragment=function(l,c,M){var P=this.fragmentTracker.getState(l);this.fragCurrent=l,(this.audioSwitch||P===d.FragmentState.NOT_LOADED||P===d.FragmentState.PARTIAL)&&(l.sn==="initSegment"?this._loadInitSegment(l):c.live&&!Object(U.isFiniteNumber)(this.initPTS[l.cc])?(this.log("Waiting for video PTS in continuity counter "+l.cc+" of live stream before loading audio fragment "+l.sn+" of level "+this.trackId),this.state=S.State.WAITING_INIT_PTS):(this.startFragRequested=!0,C.prototype.loadFragment.call(this,l,c,M)))},v.completeAudioSwitch=function(){var l=this.hls,c=this.media,M=this.trackId;c&&(this.log("Switching audio track : flushing all audio"),C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,l.trigger(g.Events.AUDIO_TRACK_SWITCHED,{id:M})},A}(S.default);j.default=t},"./src/controller/audio-track-controller.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/events.ts"),S=L("./src/errors.ts"),g=L("./src/controller/base-playlist-controller.ts"),s=L("./src/types/loader.ts");function d(x,y){for(var m=0;m=r.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var u=r[this.trackId];this.log("Now switching to audio-track index "+i);var h=r[i],b=h.id,E=h.groupId,t=E===void 0?"":E,C=h.name,A=h.type,v=h.url;if(this.trackId=i,this.trackName=C,this.selectDefaultTrack=!1,this.hls.trigger(U.Events.AUDIO_TRACK_SWITCHING,{id:b,groupId:t,name:C,type:A,url:v}),h.details&&!h.details.live)return;var o=this.switchParams(h.url,u==null?void 0:u.details);this.loadPlaylist(o)},m.selectInitialTrack=function(){var i=this.tracksInGroup;console.assert(i.length,"Initial audio track should be selected when tracks are known");var r=this.trackName,u=this.findTrackId(r)||this.findTrackId();u!==-1?this.setAudioTrack(u):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},m.findTrackId=function(i){for(var r=this.tracksInGroup,u=0;uy.partTarget&&(h+=1)}if(Object(U.isFiniteNumber)(u))return new S.HlsUrlParameters(u,Object(U.isFiniteNumber)(h)?h:void 0,S.HlsSkip.No)}}},a.loadPlaylist=function(x){},a.shouldLoadTrack=function(x){return this.canLoad&&x&&!!x.url&&(!x.details||x.details.live)},a.playlistLoaded=function(x,y,m){var O=this,i=y.details,r=y.stats,u=r.loading.end?Math.max(0,self.performance.now()-r.loading.end):0;if(i.advancedDateTime=Date.now()-u,i.live||m!=null&&m.live){if(i.reloaded(m),m&&this.log("live playlist "+x+" "+(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:"MISSED")),m&&i.fragments.length>0&&Object(g.mergeDetails)(m,i),!this.canLoad||!i.live)return;var h,b=void 0,E=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var t=this.hls.config.lowLatencyMode,C=i.lastPartSn,A=i.endSN,v=i.lastPartIndex,o=v!==-1,l=C===A,c=t?0:v;o?(b=l?A+1:C,E=l?c:v+1):b=A+1;var M=i.age,P=M+i.ageHeader,R=Math.min(P-i.partTarget,i.targetduration*1.5);if(R>0){if(m&&R>m.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+m.tuneInGoal+" to: "+R+" with playlist age: "+i.age),R=0;else{var k=Math.floor(R/i.targetduration);if(b+=k,E!==void 0){var I=Math.round(R%i.targetduration/i.partTarget);E+=I}this.log("CDN Tune-in age: "+i.ageHeader+"s last advanced "+M.toFixed(2)+"s goal: "+R+" skip sn "+k+" to part "+E)}i.tuneInGoal=R}if(h=this.getDeliveryDirectives(i,y.deliveryDirectives,b,E),t||!l){this.loadPlaylist(h);return}}else h=this.getDeliveryDirectives(i,y.deliveryDirectives,b,E);var F=Object(g.computeReloadInterval)(i,r);b!==void 0&&i.canBlockReload&&(F-=i.partTarget||1),this.log("reload live playlist "+x+" in "+Math.round(F)+" ms"),this.timer=self.setTimeout(function(){return O.loadPlaylist(h)},F)}else this.clearTimer()},a.getDeliveryDirectives=function(x,y,m,O){var i=Object(S.getSkipValue)(x,m);return y!=null&&y.skip&&x.deltaUpdateFailed&&(m=y.msn,O=y.part,i=S.HlsSkip.No),new S.HlsUrlParameters(m,O,i)},a.retryLoadingOrFail=function(x){var y=this,m=this.hls.config,O=this.retryCount-1&&(i=x.context)!==null&&i!==void 0&&i.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+x.details+'"'),this.loadPlaylist();else{var r=Math.min(Math.pow(2,this.retryCount)*m.levelLoadingRetryDelay,m.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return y.loadPlaylist()},r),this.warn("retry playlist loading #"+this.retryCount+" in "+r+' ms after "'+x.details+'"')}}else this.warn('cannot recover from error "'+x.details+'"'),this.clearTimer(),x.fatal=!0;return O},p}()},"./src/controller/base-stream-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"State",function(){return A}),L.d(j,"default",function(){return v});var U=L("./src/polyfills/number.ts"),S=L("./src/task-loop.ts"),g=L("./src/controller/fragment-tracker.ts"),s=L("./src/utils/buffer-helper.ts"),d=L("./src/utils/logger.ts"),w=L("./src/events.ts"),p=L("./src/errors.ts"),a=L("./src/types/transmuxer.ts"),f=L("./src/utils/mp4-tools.ts"),x=L("./src/utils/discontinuities.ts"),y=L("./src/controller/fragment-finders.ts"),m=L("./src/controller/level-helper.ts"),O=L("./src/loader/fragment-loader.ts"),i=L("./src/crypt/decrypter.ts"),r=L("./src/utils/time-ranges.ts"),u=L("./src/types/loader.ts");function h(o,l){for(var c=0;cX;(V0&&V&&V.key&&V.iv&&V.method==="AES-128"){var W=self.performance.now();return R.decrypter.webCryptoDecrypt(new Uint8Array(F),V.key.buffer,V.iv.buffer).then(function(G){var J=self.performance.now();return I.trigger(w.Events.FRAG_DECRYPTED,{frag:P,payload:G,stats:{tstart:W,tdecrypt:J}}),k.payload=G,k})}return k}).then(function(k){var I=R.fragCurrent,F=R.hls,V=R.levels;if(!V)throw new Error("init load aborted, missing levels");var W=V[P.level].details;console.assert(W,"Level details are defined when init segment is loaded");var G=P.stats;R.state=A.IDLE,R.fragLoadError=0,P.data=new Uint8Array(k.payload),G.parsing.start=G.buffering.start=self.performance.now(),G.parsing.end=G.buffering.end=self.performance.now(),k.frag===I&&F.trigger(w.Events.FRAG_BUFFERED,{stats:G,frag:I,part:null,id:P.type}),R.tick()}).catch(function(k){R.warn(k),R.resetFragmentLoading(P)})},c.fragContextChanged=function(P){var R=this.fragCurrent;return!P||!R||P.level!==R.level||P.sn!==R.sn||P.urlId!==R.urlId},c.fragBufferedComplete=function(P,R){var k=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+P.type+" sn: "+P.sn+(R?" part: "+R.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+P.level+" "+r.default.toString(s.BufferHelper.getBuffered(k))),this.state=A.IDLE,this.tick()},c._handleFragmentLoadComplete=function(P){var R=this.transmuxer;if(!R)return;var k=P.frag,I=P.part,F=P.partsLoaded,V=!F||F.length===0||F.some(function(G){return!G}),W=new a.ChunkMetadata(k.level,k.sn,k.stats.chunkCount+1,0,I?I.index:-1,!V);R.flush(W)},c._handleFragmentLoadProgress=function(P){},c._doFragLoad=function(P,R,k,I){var F=this;if(k===void 0&&(k=null),!this.levels)throw new Error("frag load aborted, missing levels");if(k=Math.max(P.start,k||0),this.config.lowLatencyMode&&R){var V=R.partList;if(V&&I){k>P.end&&R.fragmentHint&&(P=R.fragmentHint);var W=this.getNextPart(V,P,k);if(W>-1){var G=V[W];return this.log("Loading part sn: "+P.sn+" p: "+G.index+" cc: "+P.cc+" of playlist ["+R.startSN+"-"+R.endSN+"] parts [0-"+W+"-"+(V.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+P.level+", target: "+parseFloat(k.toFixed(3))),this.nextLoadPosition=G.start+G.duration,this.state=A.FRAG_LOADING,this.hls.trigger(w.Events.FRAG_LOADING,{frag:P,part:V[W],targetBufferTime:k}),this.doFragPartsLoad(P,V,W,I).catch(function(J){return F.handleFragLoadError(J)})}else if(!P.url||this.loadedEndOfParts(V,k))return Promise.resolve(null)}}return this.log("Loading fragment "+P.sn+" cc: "+P.cc+" "+(R?"of ["+R.startSN+"-"+R.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+P.level+", target: "+parseFloat(k.toFixed(3))),Object(U.isFiniteNumber)(P.sn)&&!this.bitrateTest&&(this.nextLoadPosition=P.start+P.duration),this.state=A.FRAG_LOADING,this.hls.trigger(w.Events.FRAG_LOADING,{frag:P,targetBufferTime:k}),this.fragmentLoader.load(P,I).catch(function(J){return F.handleFragLoadError(J)})},c.doFragPartsLoad=function(P,R,k,I){var F=this;return new Promise(function(V,W){var G=[],J=function X(te){var ee=R[te];F.fragmentLoader.loadPart(P,ee,I).then(function(be){G[ee.index]=be;var ge=be.part;F.hls.trigger(w.Events.FRAG_LOADED,be);var je=R[te+1];if(je&&je.fragment===P)X(te+1);else return V({frag:P,part:ge,partsLoaded:G})}).catch(W)};J(k)})},c.handleFragLoadError=function(P){var R=P.data;return R&&R.details===p.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(R.frag,R.part):this.hls.trigger(w.Events.ERROR,R),null},c._handleTransmuxerFlush=function(P){var R=this.getCurrentContext(P);if(!R||this.state!==A.PARSING){this.fragCurrent||(this.state=A.IDLE);return}var k=R.frag,I=R.part,F=R.level,V=self.performance.now();k.stats.parsing.end=V,I&&(I.stats.parsing.end=V),this.updateLevelTiming(k,I,F,P.partial)},c.getCurrentContext=function(P){var R=this.levels,k=P.level,I=P.sn,F=P.part;if(!R||!R[k])return this.warn("Levels object was unset while buffering fragment "+I+" of level "+k+". The current chunk will not be buffered."),null;var V=R[k],W=F>-1?Object(m.getPartWith)(V,I,F):null,G=W?W.fragment:Object(m.getFragmentWithSN)(V,I,this.fragCurrent);return G?{frag:G,part:W,level:V}:null},c.bufferFragmentData=function(P,R,k,I){if(!P||this.state!==A.PARSING)return;var F=P.data1,V=P.data2,W=F;if(F&&V&&(W=Object(f.appendUint8Array)(F,V)),!W||!W.length)return;var G={type:P.type,frag:R,part:k,chunkMeta:I,parent:R.type,data:W};this.hls.trigger(w.Events.BUFFER_APPENDING,G),P.dropped&&P.independent&&!k&&this.flushBufferGap(R)},c.flushBufferGap=function(P){var R=this.media;if(!R)return;if(!s.BufferHelper.isBuffered(R,R.currentTime)){this.flushMainBuffer(0,P.start);return}var k=R.currentTime,I=s.BufferHelper.bufferInfo(R,k,0),F=P.duration,V=Math.min(this.config.maxFragLookUpTolerance*2,F*.25),W=Math.max(Math.min(P.start-V,I.end-V),k+V);P.start-W>V&&this.flushMainBuffer(W,P.start)},c.getFwdBufferInfo=function(P,R){var k=this.config,I=this.getLoadPosition();if(!Object(U.isFiniteNumber)(I))return null;var F=s.BufferHelper.bufferInfo(P,I,k.maxBufferHole);if(F.len===0&&F.nextStart!==void 0){var V=this.fragmentTracker.getBufferedFrag(I,R);if(V&&F.nextStart=k?(R.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+R.maxMaxBufferLength+"s"),!0):!1},c.getNextFragment=function(P,R){var k,I,F=R.fragments,V=F.length;if(!V)return null;var W=this.config,G=F[0].start,J;if(R.live){var X=W.initialLiveManifestSize;if(V-1&&kk.start&&k.loaded},c.getInitialLiveFragment=function(P,R){var k=this.fragPrevious,I=null;if(k){if(P.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+k.programDateTime),I=Object(y.findFragmentByPDT)(R,k.endProgramDateTime,this.config.maxFragLookUpTolerance)),!I){var F=k.sn+1;if(F>=P.startSN&&F<=P.endSN){var V=R[F-P.startSN];k.cc===V.cc&&(I=V,this.log("Live playlist, switching playlist, load frag with next SN: "+I.sn))}I||(I=Object(y.findFragWithCC)(R,k.cc),I&&this.log("Live playlist, switching playlist, load frag with same CC: "+I.sn))}}else{var W=this.hls.liveSyncPosition;W!==null&&(I=this.getFragmentAtPosition(W,this.bitrateTest?P.fragmentEnd:P.edge,P))}return I},c.getFragmentAtPosition=function(P,R,k){var I=this.config,F=this.fragPrevious,V=k.fragments,W=k.endSN,G=k.fragmentHint,J=I.maxFragLookUpTolerance,X=!!(I.lowLatencyMode&&k.partList&&G);X&&G&&!this.bitrateTest&&(V=V.concat(G),W=G.sn);var te;if(PR-J?0:J;te=Object(y.findFragmentByPTS)(F,V,P,ee)}else te=V[V.length-1];if(te){var be=te.sn-k.startSN,ge=F&&te.level===F.level,je=V[be+1],He=this.fragmentTracker.getState(te);if(He===g.FragmentState.BACKTRACKED){te=null;for(var nt=be;V[nt]&&this.fragmentTracker.getState(V[nt])===g.FragmentState.BACKTRACKED;)F?te=V[nt--]:te=V[--nt];te||(te=je)}else F&&te.sn===F.sn&&!X&&(ge&&(te.sn=V-R.maxFragLookUpTolerance&&F<=W;if(I!==null&&k.duration>I&&(F"+P.startSN+" prev-sn: "+(F?F.sn:"na")+" fragments: "+W),te}return G},c.waitForCdnTuneIn=function(P){var R=3;return P.live&&P.canBlockReload&&P.tuneInGoal>Math.max(P.partHoldBack,P.partTarget*R)},c.setStartPosition=function(P,R){var k=this.startPosition;if(k"+P))}}]),l}(S.default)},"./src/controller/buffer-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return y});var U=L("./src/polyfills/number.ts"),S=L("./src/events.ts"),g=L("./src/utils/logger.ts"),s=L("./src/errors.ts"),d=L("./src/utils/buffer-helper.ts"),w=L("./src/utils/mediasource-helper.ts"),p=L("./src/loader/fragment.ts"),a=L("./src/controller/buffer-operation-queue.ts"),f=Object(w.getMediaSource)(),x=/([ha]vc.)(?:\.[^.,]+)+/,y=function(){function m(i){var r=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var u=r.hls,h=r.media,b=r.mediaSource;g.logger.log("[buffer-controller]: Media source opened"),h&&(r.updateMediaElementDuration(),u.trigger(S.Events.MEDIA_ATTACHED,{media:h})),b&&b.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},this._onMediaSourceClose=function(){g.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){g.logger.log("[buffer-controller]: Media source ended")},this.hls=i,this._initSourceBuffer(),this.registerListeners()}var O=m.prototype;return O.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},O.destroy=function(){this.unregisterListeners(),this.details=null},O.registerListeners=function(){var r=this.hls;r.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(S.Events.BUFFER_RESET,this.onBufferReset,this),r.on(S.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.on(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(S.Events.BUFFER_EOS,this.onBufferEos,this),r.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(S.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(S.Events.FRAG_PARSED,this.onFragParsed,this),r.on(S.Events.FRAG_CHANGED,this.onFragChanged,this)},O.unregisterListeners=function(){var r=this.hls;r.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(S.Events.BUFFER_RESET,this.onBufferReset,this),r.off(S.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.off(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(S.Events.BUFFER_EOS,this.onBufferEos,this),r.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(S.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(S.Events.FRAG_PARSED,this.onFragParsed,this),r.off(S.Events.FRAG_CHANGED,this.onFragChanged,this)},O._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},O.onManifestParsed=function(r,u){var h=2;(u.audio&&!u.video||!u.altAudio)&&(h=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=h,this.details=null,g.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},O.onMediaAttaching=function(r,u){var h=this.media=u.media;if(h&&f){var b=this.mediaSource=new f;b.addEventListener("sourceopen",this._onMediaSourceOpen),b.addEventListener("sourceended",this._onMediaSourceEnded),b.addEventListener("sourceclose",this._onMediaSourceClose),h.src=self.URL.createObjectURL(b),this._objectUrl=h.src}},O.onMediaDetaching=function(){var r=this.media,u=this.mediaSource,h=this._objectUrl;if(u){if(g.logger.log("[buffer-controller]: media source detaching"),u.readyState==="open")try{u.endOfStream()}catch(b){g.logger.warn("[buffer-controller]: onMediaDetaching: "+b.message+" while calling endOfStream")}this.onBufferReset(),u.removeEventListener("sourceopen",this._onMediaSourceOpen),u.removeEventListener("sourceended",this._onMediaSourceEnded),u.removeEventListener("sourceclose",this._onMediaSourceClose),r&&(h&&self.URL.revokeObjectURL(h),r.src===h?(r.removeAttribute("src"),r.load()):g.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(S.Events.MEDIA_DETACHED,void 0)},O.onBufferReset=function(){var r=this;this.getSourceBufferTypes().forEach(function(u){var h=r.sourceBuffer[u];try{h&&(r.removeBufferListeners(u),r.mediaSource&&r.mediaSource.removeSourceBuffer(h),r.sourceBuffer[u]=void 0)}catch(b){g.logger.warn("[buffer-controller]: Failed to reset the "+u+" buffer",b)}}),this._initSourceBuffer()},O.onBufferCodecs=function(r,u){var h=this,b=this.getSourceBufferTypes().length;if(Object.keys(u).forEach(function(E){if(b){var t=h.tracks[E];if(t&&typeof t.buffer.changeType=="function"){var C=u[E],A=C.codec,v=C.levelCodec,o=C.container,l=(t.levelCodec||t.codec).replace(x,"$1"),c=(v||A).replace(x,"$1");if(l!==c){var M=o+";codecs="+(v||A);h.appendChangeType(E,M)}}}else h.pendingTracks[E]=u[E]}),b)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},O.appendChangeType=function(r,u){var h=this,b=this.operationQueue,E={execute:function(){var C=h.sourceBuffer[r];C&&(g.logger.log("[buffer-controller]: changing "+r+" sourceBuffer type to "+u),C.changeType(u)),b.shiftAndExecuteNext(r)},onStart:function(){},onComplete:function(){},onError:function(C){g.logger.warn("[buffer-controller]: Failed to change "+r+" SourceBuffer type",C)}};b.append(E,r)},O.onBufferAppending=function(r,u){var h=this,b=this.hls,E=this.operationQueue,t=this.tracks,C=u.data,A=u.type,v=u.frag,o=u.part,l=u.chunkMeta,c=l.buffering[A],M=self.performance.now();c.start=M;var P=v.stats.buffering,R=o?o.stats.buffering:null;P.start===0&&(P.start=M),R&&R.start===0&&(R.start=M);var k=t.audio,I=A==="audio"&&l.id===1&&(k==null?void 0:k.container)==="audio/mpeg",F={execute:function(){if(c.executeStart=self.performance.now(),I){var W=h.sourceBuffer[A];if(W){var G=v.start-W.timestampOffset;Math.abs(G)>=.1&&(g.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+v.start+" (delta: "+G+") sn: "+v.sn+")"),W.timestampOffset=v.start)}}h.appendExecutor(C,A)},onStart:function(){},onComplete:function(){var W=self.performance.now();c.executeEnd=c.end=W,P.first===0&&(P.first=W),R&&R.first===0&&(R.first=W);var G=h.sourceBuffer,J={};for(var X in G)J[X]=d.BufferHelper.getBuffered(G[X]);h.appendError=0,h.hls.trigger(S.Events.BUFFER_APPENDED,{type:A,frag:v,part:o,chunkMeta:l,parent:v.type,timeRanges:J})},onError:function(W){g.logger.error("[buffer-controller]: Error encountered while trying to append to the "+A+" SourceBuffer",W);var G={type:s.ErrorTypes.MEDIA_ERROR,parent:v.type,details:s.ErrorDetails.BUFFER_APPEND_ERROR,err:W,fatal:!1};W.code===DOMException.QUOTA_EXCEEDED_ERR?G.details=s.ErrorDetails.BUFFER_FULL_ERROR:(h.appendError++,G.details=s.ErrorDetails.BUFFER_APPEND_ERROR,h.appendError>b.config.appendErrorMaxRetry&&(g.logger.error("[buffer-controller]: Failed "+b.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),G.fatal=!0)),b.trigger(S.Events.ERROR,G)}};E.append(F,A)},O.onBufferFlushing=function(r,u){var h=this,b=this.operationQueue,E=function(C){return{execute:h.removeExecutor.bind(h,C,u.startOffset,u.endOffset),onStart:function(){},onComplete:function(){h.hls.trigger(S.Events.BUFFER_FLUSHED,{type:C})},onError:function(v){g.logger.warn("[buffer-controller]: Failed to remove from "+C+" SourceBuffer",v)}}};u.type?b.append(E(u.type),u.type):this.getSourceBufferTypes().forEach(function(t){b.append(E(t),t)})},O.onFragParsed=function(r,u){var h=this,b=u.frag,E=u.part,t=[],C=E?E.elementaryStreams:b.elementaryStreams;C[p.ElementaryStreamTypes.AUDIOVIDEO]?t.push("audiovideo"):(C[p.ElementaryStreamTypes.AUDIO]&&t.push("audio"),C[p.ElementaryStreamTypes.VIDEO]&&t.push("video"));var A=function(){var o=self.performance.now();b.stats.buffering.end=o,E&&(E.stats.buffering.end=o);var l=E?E.stats:b.stats;h.hls.trigger(S.Events.FRAG_BUFFERED,{frag:b,part:E,stats:l,id:b.type})};t.length===0&&g.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+b.type+" level: "+b.level+" sn: "+b.sn),this.blockBuffers(A,t)},O.onFragChanged=function(r,u){this.flushBackBuffer()},O.onBufferEos=function(r,u){var h=this,b=this.getSourceBufferTypes().reduce(function(E,t){var C=h.sourceBuffer[t];return(!u.type||u.type===t)&&(C&&!C.ended&&(C.ended=!0,g.logger.log("[buffer-controller]: "+t+" sourceBuffer now EOS"))),E&&!!(!C||C.ended)},!0);b&&this.blockBuffers(function(){var E=h.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},O.onLevelUpdated=function(r,u){var h=u.details;if(!h.fragments.length)return;this.details=h,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},O.flushBackBuffer=function(){var r=this.hls,u=this.details,h=this.media,b=this.sourceBuffer;if(!h||u===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var t=u.live&&r.config.liveBackBufferLength!==null?r.config.liveBackBufferLength:r.config.backBufferLength;if(!Object(U.isFiniteNumber)(t)||t<0)return;var C=h.currentTime,A=u.levelTargetDuration,v=Math.max(t,A),o=Math.floor(C/A)*A-v;E.forEach(function(l){var c=b[l];if(c){var M=d.BufferHelper.getBuffered(c);M.length>0&&o>M.start(0)&&(r.trigger(S.Events.BACK_BUFFER_REACHED,{bufferEnd:o}),u.live&&r.trigger(S.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:o}),r.trigger(S.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:o,type:l}))}})},O.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var r=this.details,u=this.hls,h=this.media,b=this.mediaSource,E=r.fragments[0].start+r.totalduration,t=h.duration,C=Object(U.isFiniteNumber)(b.duration)?b.duration:0;r.live&&u.config.liveDurationInfinity?(g.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),b.duration=Infinity,this.updateSeekableRange(r)):(E>C&&E>t||!Object(U.isFiniteNumber)(t))&&(g.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),b.duration=E)},O.updateSeekableRange=function(r){var u=this.mediaSource,h=r.fragments,b=h.length;if(b&&r.live&&u!==null&&u!==void 0&&u.setLiveSeekableRange){var E=Math.max(0,h[0].start),t=Math.max(E,E+r.totalduration);u.setLiveSeekableRange(E,t)}},O.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,u=this.operationQueue,h=this.pendingTracks,b=Object.keys(h).length;if(b&&!r||b===2){this.createSourceBuffers(h),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(S.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(t){u.executeNext(t)})}},O.createSourceBuffers=function(r){var u=this.sourceBuffer,h=this.mediaSource;if(!h)throw Error("createSourceBuffers called when mediaSource was null");var b=0;for(var E in r)if(!u[E]){var t=r[E];if(!t)throw Error("source buffer exists for track "+E+", however track does not");var C=t.levelCodec||t.codec,A=t.container+";codecs="+C;g.logger.log("[buffer-controller]: creating sourceBuffer("+A+")");try{var v=u[E]=h.addSourceBuffer(A),o=E;this.addBufferListener(o,"updatestart",this._onSBUpdateStart),this.addBufferListener(o,"updateend",this._onSBUpdateEnd),this.addBufferListener(o,"error",this._onSBUpdateError),this.tracks[E]={buffer:v,codec:C,container:t.container,levelCodec:t.levelCodec,id:t.id},b++}catch(l){g.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+l.message),this.hls.trigger(S.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:l,mimeType:A})}}b&&this.hls.trigger(S.Events.BUFFER_CREATED,{tracks:this.tracks})},O._onSBUpdateStart=function(r){var u=this.operationQueue,h=u.current(r);h.onStart()},O._onSBUpdateEnd=function(r){var u=this.operationQueue,h=u.current(r);h.onComplete(),u.shiftAndExecuteNext(r)},O._onSBUpdateError=function(r,u){g.logger.error("[buffer-controller]: "+r+" SourceBuffer error",u),this.hls.trigger(S.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var h=this.operationQueue.current(r);h&&h.onError(u)},O.removeExecutor=function(r,u,h){var b=this.media,E=this.mediaSource,t=this.operationQueue,C=this.sourceBuffer,A=C[r];if(!b||!E||!A){g.logger.warn("[buffer-controller]: Attempting to remove from the "+r+" SourceBuffer, but it does not exist"),t.shiftAndExecuteNext(r);return}var v=Object(U.isFiniteNumber)(b.duration)?b.duration:Infinity,o=Object(U.isFiniteNumber)(E.duration)?E.duration:Infinity,l=Math.max(0,u),c=Math.min(h,v,o);c>l?(g.logger.log("[buffer-controller]: Removing ["+l+","+c+"] from the "+r+" SourceBuffer"),console.assert(!A.updating,r+" sourceBuffer must not be updating"),A.remove(l,c)):t.shiftAndExecuteNext(r)},O.appendExecutor=function(r,u){var h=this.operationQueue,b=this.sourceBuffer,E=b[u];if(!E){g.logger.warn("[buffer-controller]: Attempting to append to the "+u+" SourceBuffer, but it does not exist"),h.shiftAndExecuteNext(u);return}E.ended=!1,console.assert(!E.updating,u+" sourceBuffer must not be updating"),E.appendBuffer(r)},O.blockBuffers=function(r,u){var h=this;if(u===void 0&&(u=this.getSourceBufferTypes()),!u.length){g.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(r);return}var b=this.operationQueue,E=u.map(function(t){return b.appendBlocker(t)});Promise.all(E).then(function(){r(),u.forEach(function(t){var C=h.sourceBuffer[t];(!C||!C.updating)&&b.shiftAndExecuteNext(t)})})},O.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},O.addBufferListener=function(r,u,h){var b=this.sourceBuffer[r];if(!b)return;var E=h.bind(this,r);this.listeners[r].push({event:u,listener:E}),b.addEventListener(u,E)},O.removeBufferListeners=function(r){var u=this.sourceBuffer[r];if(!u)return;this.listeners[r].forEach(function(h){u.removeEventListener(h.event,h.listener)})},m}()},"./src/controller/buffer-operation-queue.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return S});var U=L("./src/utils/logger.ts"),S=function(){function g(d){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=d}var s=g.prototype;return s.append=function(w,p){var a=this.queues[p];a.push(w),a.length===1&&this.buffers[p]&&this.executeNext(p)},s.insertAbort=function(w,p){var a=this.queues[p];a.unshift(w),this.executeNext(p)},s.appendBlocker=function(w){var p,a=new Promise(function(x){p=x}),f={execute:p,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(f,w),a},s.executeNext=function(w){var p=this.buffers,a=this.queues,f=p[w],x=a[w];if(x.length){var y=x[0];try{y.execute()}catch(m){U.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),y.onError(m),(!f||!f.updating)&&(x.shift(),this.executeNext(w))}}},s.shiftAndExecuteNext=function(w){this.queues[w].shift(),this.executeNext(w)},s.current=function(w){return this.queues[w][0]},g}()},"./src/controller/cap-level-controller.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/events.ts");function S(d,w){for(var p=0;p0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var f=this.hls;f.autoLevelCapping=this.getMaxLevel(a.length-1),f.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=f.autoLevelCapping}}},w.getMaxLevel=function(a){var f=this,x=this.hls.levels;if(!x.length)return-1;var y=x.filter(function(m,O){return d.isLevelAllowed(O,f.restrictedLevels)&&O<=a});return this.clientRect=null,d.getMaxLevelByMediaSize(y,this.mediaWidth,this.mediaHeight)},w.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},w.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},w.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,f={width:0,height:0};if(a){var x=a.getBoundingClientRect();f.width=x.width,f.height=x.height,!f.width&&!f.height&&(f.width=x.right-x.left||a.width||0,f.height=x.bottom-x.top||a.height||0)}return this.clientRect=f,f},d.isLevelAllowed=function(a,f){return f===void 0&&(f=[]),f.indexOf(a)===-1},d.getMaxLevelByMediaSize=function(a,f,x){if(!a||!a.length)return-1;for(var y=function(u,h){return h?u.width!==h.width||u.height!==h.height:!0},m=a.length-1,O=0;O=f||i.height>=x)&&y(i,a[O+1])){m=O;break}}return m},g(d,[{key:"mediaWidth",get:function(){return this.getDimensions().width*d.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*d.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(f){}return a}}]),d}();j.default=s},"./src/controller/cmcd-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return y});var U=L("./src/events.ts"),S=L("./src/types/cmcd.ts"),g=L("./src/utils/buffer-helper.ts"),s=L("./src/utils/logger.ts");function d(m,O){for(var i=0;i=m.length?{done:!0}:{done:!1,value:m[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(m,O){if(!m)return;if(typeof m=="string")return f(m,O);var i=Object.prototype.toString.call(m).slice(8,-1);if(i==="Object"&&m.constructor&&(i=m.constructor.name),i==="Map"||i==="Set")return Array.from(m);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return f(m,O)}function f(m,O){(O==null||O>m.length)&&(O=m.length);for(var i=0,r=new Array(O);iu&&(u=t.bitrate)}return u>0?u:NaN},O.getBufferLength=function(r){var u=this.hls.media,h=r===S.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!h||!u)return NaN;var b=g.BufferHelper.bufferInfo(h,u.currentTime,this.config.maxBufferHole);return b.len*1e3},O.createPlaylistLoader=function(){var r=this.config.pLoader,u=this.applyPlaylistData,h=r||this.config.loader;return function(){function b(t){this.loader=void 0,this.loader=new h(t)}var E=b.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(C,A,v){u(C),this.loader.load(C,A,v)},w(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},O.createFragmentLoader=function(){var r=this.config.fLoader,u=this.applyFragmentData,h=r||this.config.loader;return function(){function b(t){this.loader=void 0,this.loader=new h(t)}var E=b.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(C,A,v){u(C),this.loader.load(C,A,v)},w(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},m.uuid=function(){var r=URL.createObjectURL(new Blob),u=r.toString();return URL.revokeObjectURL(r),u.substr(u.lastIndexOf("/")+1)},m.serialize=function(r){for(var u=[],h=function(I){return!Number.isNaN(I)&&I!=null&&I!==""&&I!==!1},b=function(I){return Math.round(I)},E=function(I){return b(I/100)*100},t=function(I){return encodeURIComponent(I)},C={br:b,d:b,bl:E,dl:E,mtp:E,nor:t,rtp:E,tb:b},A=Object.keys(r||{}).sort(),v=p(A),o;!(o=v()).done;){var l=o.value,c=r[l];if(!h(c))continue;if(l==="v"&&c===1)continue;if(l=="pr"&&c===1)continue;var M=C[l];M&&(c=M(c));var P=typeof c,R=void 0;l==="ot"||l==="sf"||l==="st"?R=l+"="+c:P==="boolean"?R=l:P==="number"?R=l+"="+c:R=l+"="+JSON.stringify(c),u.push(R)}return u.join(",")},m.toHeaders=function(r){for(var u=Object.keys(r),h={},b=["Object","Request","Session","Status"],E=[{},{},{},{}],t={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},C=0,A=u;Cp){this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.KEY_SYSTEM_ERROR,details:S.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var t=p-this._requestLicenseFailureCount+1;g.logger.warn("Retrying license request, "+t+" attempts left"),this._requestLicense(u,h)}break}},m._generateLicenseRequestChallenge=function(i,r){switch(i.mediaKeySystemDomain){case s.KeySystems.WIDEVINE:return r}throw new Error("unsupported key-system: "+i.mediaKeySystemDomain)},m._requestLicense=function(i,r){g.logger.log("Requesting content license for key-system");var u=this._mediaKeysList[0];if(!u){g.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.KEY_SYSTEM_ERROR,details:S.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var h=this.getLicenseServerUrl(u.mediaKeySystemDomain),b=this._createLicenseXhr(h,i,r);g.logger.log("Sending license request to URL: "+h);var E=this._generateLicenseRequestChallenge(u,i);b.send(E)}catch(t){g.logger.error("Failure requesting DRM license: "+t),this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.KEY_SYSTEM_ERROR,details:S.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},m.onMediaAttached=function(i,r){if(!this._emeEnabled)return;var u=r.media;this._media=u,u.addEventListener("encrypted",this._onMediaEncrypted)},m.onMediaDetached=function(){var i=this._media,r=this._mediaKeysList;if(!i)return;i.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(r.map(function(u){if(u.mediaKeysSession)return u.mediaKeysSession.close().catch(function(){})})).then(function(){return i.setMediaKeys(null)}).catch(function(){})},m.onManifestParsed=function(i,r){if(!this._emeEnabled)return;var u=r.levels.map(function(b){return b.audioCodec}).filter(function(b){return!!b}),h=r.levels.map(function(b){return b.videoCodec}).filter(function(b){return!!b});this._attemptKeySystemAccess(s.KeySystems.WIDEVINE,u,h)},w(y,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),y}();j.default=x},"./src/controller/fps-controller.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/events.ts"),S=L("./src/utils/logger.ts"),g=function(){function s(w){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=w,this.registerListeners()}var d=s.prototype;return d.setStreamController=function(p){this.streamController=p},d.registerListeners=function(){this.hls.on(U.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},d.unregisterListeners=function(){this.hls.off(U.Events.MEDIA_ATTACHING,this.onMediaAttaching)},d.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},d.onMediaAttaching=function(p,a){var f=this.hls.config;if(f.capLevelOnFPSDrop){var x=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=x,x&&typeof x.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),f.fpsDroppedMonitoringPeriod)}},d.checkFPS=function(p,a,f){var x=performance.now();if(a){if(this.lastTime){var y=x-this.lastTime,m=f-this.lastDroppedFrames,O=a-this.lastDecodedFrames,i=1e3*m/y,r=this.hls;if(r.trigger(U.Events.FPS_DROP,{currentDropped:m,currentDecoded:O,totalDroppedFrames:f}),i>0&&m>r.config.fpsDroppedMonitoringThreshold*O){var u=r.currentLevel;S.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(r.autoLevelCapping===-1||r.autoLevelCapping>=u)&&(u=u-1,r.trigger(U.Events.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:r.currentLevel}),r.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=x,this.lastDroppedFrames=f,this.lastDecodedFrames=a}},d.checkFPSInterval=function(){var p=this.media;if(p)if(this.isVideoPlaybackQualityAvailable){var a=p.getVideoPlaybackQuality();this.checkFPS(p,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(p,p.webkitDecodedFrameCount,p.webkitDroppedFrameCount)},s}();j.default=g},"./src/controller/fragment-finders.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"findFragmentByPDT",function(){return g}),L.d(j,"findFragmentByPTS",function(){return s}),L.d(j,"fragmentWithinToleranceTest",function(){return d}),L.d(j,"pdtWithinToleranceTest",function(){return w}),L.d(j,"findFragWithCC",function(){return p});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/binary-search.ts");function g(a,f,x){if(f===null||!Array.isArray(a)||!a.length||!Object(U.isFiniteNumber)(f))return null;var y=a[0].programDateTime;if(f<(y||0))return null;var m=a[a.length-1].endProgramDateTime;if(f>=(m||0))return null;x=x||0;for(var O=0;Oa&&x.start?-1:0}function w(a,f,x){var y=Math.min(f,x.duration+(x.deltaPTS?x.deltaPTS:0))*1e3,m=x.endProgramDateTime||0;return m-y>a}function p(a,f){return S.default.search(a,function(x){return x.ccf?-1:0})}},"./src/controller/fragment-tracker.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"FragmentState",function(){return g}),L.d(j,"FragmentTracker",function(){return s});var U=L("./src/events.ts"),S=L("./src/types/loader.ts"),g;(function(p){p.NOT_LOADED="NOT_LOADED",p.BACKTRACKED="BACKTRACKED",p.APPENDING="APPENDING",p.PARTIAL="PARTIAL",p.OK="OK"})(g||(g={}));var s=function(){function p(f){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=f,this._registerListeners()}var a=p.prototype;return a._registerListeners=function(){var x=this.hls;x.on(U.Events.BUFFER_APPENDED,this.onBufferAppended,this),x.on(U.Events.FRAG_BUFFERED,this.onFragBuffered,this),x.on(U.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var x=this.hls;x.off(U.Events.BUFFER_APPENDED,this.onBufferAppended,this),x.off(U.Events.FRAG_BUFFERED,this.onFragBuffered,this),x.off(U.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(x,y){if(y===S.PlaylistLevelType.MAIN){var m=this.activeFragment,O=this.activeParts;if(!m)return null;if(O)for(var i=O.length;i--;){var r=O[i],u=r?r.end:m.appendedPTS;if(r.start<=x&&u!==void 0&&x<=u)return i>9&&(this.activeParts=O.slice(i-9)),r}else if(m.start<=x&&m.appendedPTS!==void 0&&x<=m.appendedPTS)return m}return this.getBufferedFrag(x,y)},a.getBufferedFrag=function(x,y){for(var m=this.fragments,O=Object.keys(m),i=O.length;i--;){var r=m[O[i]];if((r==null?void 0:r.body.type)===y&&r.buffered){var u=r.body;if(u.start<=x&&x<=u.end)return u}}return null},a.detectEvictedFragments=function(x,y,m){var O=this;Object.keys(this.fragments).forEach(function(i){var r=O.fragments[i];if(!r)return;if(!r.buffered){r.body.type===m&&O.removeFragment(r.body);return}var u=r.range[x];if(!u)return;u.time.some(function(h){var b=!O.isTimeBuffered(h.startPTS,h.endPTS,y);return b&&O.removeFragment(r.body),b})})},a.detectPartialFragments=function(x){var y=this,m=this.timeRanges,O=x.frag,i=x.part;if(!m||O.sn==="initSegment")return;var r=w(O),u=this.fragments[r];if(!u)return;Object.keys(m).forEach(function(h){var b=O.elementaryStreams[h];if(!b)return;var E=m[h],t=i!==null||b.partial===!0;u.range[h]=y.getBufferedTimes(O,i,t,E)}),u.backtrack=u.loaded=null,Object.keys(u.range).length?u.buffered=!0:this.removeFragment(u.body)},a.fragBuffered=function(x){var y=w(x),m=this.fragments[y];m&&(m.backtrack=m.loaded=null,m.buffered=!0)},a.getBufferedTimes=function(x,y,m,O){for(var i={time:[],partial:m},r=y?y.start:x.start,u=y?y.end:x.end,h=x.minEndPTS||u,b=x.maxStartPTS||r,E=0;E=t&&h<=C){i.time.push({startPTS:Math.max(r,O.start(E)),endPTS:Math.min(u,O.end(E))});break}else if(rt)i.partial=!0,i.time.push({startPTS:Math.max(r,O.start(E)),endPTS:Math.min(u,O.end(E))});else if(u<=t)break}return i},a.getPartialFragment=function(x){var y=null,m,O,i,r=0,u=this.bufferPadding,h=this.fragments;return Object.keys(h).forEach(function(b){var E=h[b];if(!E)return;d(E)&&(O=E.body.start-u,i=E.body.end+u,x>=O&&x<=i&&(m=Math.min(x-O,i-x),r<=m&&(y=E.body,r=m)))}),y},a.getState=function(x){var y=w(x),m=this.fragments[y];return m?m.buffered?d(m)?g.PARTIAL:g.OK:m.backtrack?g.BACKTRACKED:g.APPENDING:g.NOT_LOADED},a.backtrack=function(x,y){var m=w(x),O=this.fragments[m];if(!O||O.backtrack)return null;var i=O.backtrack=y||O.loaded;return O.loaded=null,i},a.getBacktrackData=function(x){var y=w(x),m=this.fragments[y];if(m){var O,i=m.backtrack;if(i!=null&&(O=i.payload)!==null&&O!==void 0&&O.byteLength)return i;this.removeFragment(x)}return null},a.isTimeBuffered=function(x,y,m){for(var O,i,r=0;r=O&&y<=i)return!0;if(y<=O)return!1}return!1},a.onFragLoaded=function(x,y){var m=y.frag,O=y.part;if(m.sn==="initSegment"||m.bitrateTest||O)return;var i=w(m);this.fragments[i]={body:m,loaded:y,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(x,y){var m=this,O=y.frag,i=y.part,r=y.timeRanges;if(O.type===S.PlaylistLevelType.MAIN)if(this.activeFragment=O,i){var u=this.activeParts;u||(this.activeParts=u=[]),u.push(i)}else this.activeParts=null;this.timeRanges=r,Object.keys(r).forEach(function(h){var b=r[h];if(m.detectEvictedFragments(h,b),!i)for(var E=0;Ex&&O.removeFragment(u)}})},a.removeFragment=function(x){var y=w(x);x.stats.loaded=0,x.clearElementaryStreamInfo(),delete this.fragments[y]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},p}();function d(p){var a,f;return p.buffered&&(((a=p.range.video)===null||a===void 0?void 0:a.partial)||((f=p.range.audio)===null||f===void 0?void 0:f.partial))}function w(p){return p.type+"_"+p.level+"_"+p.urlId+"_"+p.sn}},"./src/controller/gap-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"STALL_MINIMUM_DURATION_MS",function(){return d}),L.d(j,"MAX_START_GAP_JUMP",function(){return w}),L.d(j,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return p}),L.d(j,"SKIP_BUFFER_RANGE_START",function(){return a}),L.d(j,"default",function(){return f});var U=L("./src/utils/buffer-helper.ts"),S=L("./src/errors.ts"),g=L("./src/events.ts"),s=L("./src/utils/logger.ts"),d=250,w=2,p=.1,a=.05,f=function(){function x(m,O,i,r){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=m,this.media=O,this.fragmentTracker=i,this.hls=r}var y=x.prototype;return y.destroy=function(){this.hls=this.fragmentTracker=this.media=null},y.poll=function(O){var i=this.config,r=this.media,u=this.stalled,h=r.currentTime,b=r.seeking,E=this.seeking&&!b,t=!this.seeking&&b;if(this.seeking=b,h!==O){if(this.moved=!0,u!==null){if(this.stallReported){var C=self.performance.now()-u;s.logger.warn("playback not stuck anymore @"+h+", after "+Math.round(C)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((t||E)&&(this.stalled=null),r.paused||r.ended||r.playbackRate===0||!U.BufferHelper.getBuffered(r).length)return;var A=U.BufferHelper.bufferInfo(r,h,0),v=A.len>0,o=A.nextStart||0;if(!v&&!o)return;if(b){var l=A.len>w,c=!o||o-h>w&&!this.fragmentTracker.getPartialFragment(h);if(l||c)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var M,P=Math.max(o,A.start||0)-h,R=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,k=R==null||((M=R.details)===null||M===void 0)?void 0:M.live,I=k?R.details.targetduration*2:w;if(P>0&&P<=I){this._trySkipBufferHole(null);return}}var F=self.performance.now();if(u===null){this.stalled=F;return}var V=F-u;!b&&V>=d&&this._reportStall(A.len);var W=U.BufferHelper.bufferInfo(r,h,i.maxBufferHole);this._tryFixBufferStall(W,V)},y._tryFixBufferStall=function(O,i){var r=this.config,u=this.fragmentTracker,h=this.media,b=h.currentTime,E=u.getPartialFragment(b);if(E){var t=this._trySkipBufferHole(E);if(t)return}O.len>r.maxBufferHole&&i>r.highBufferWatchdogPeriod*1e3&&(s.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},y._reportStall=function(O){var i=this.hls,r=this.media,u=this.stallReported;u||(this.stallReported=!0,s.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+O+")"),i.trigger(g.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:O}))},y._trySkipBufferHole=function(O){for(var i=this.config,r=this.hls,u=this.media,h=u.currentTime,b=0,E=U.BufferHelper.getBuffered(u),t=0;t=b&&h.05&&this.forwardBufferLength>1){var t=Math.min(2,Math.max(1,r)),C=Math.round(2/(1+Math.exp(-.75*h-this.edgeStalled))*20)/20;x.playbackRate=Math.min(t,Math.max(1,C))}else x.playbackRate!==1&&x.playbackRate!==0&&(x.playbackRate=1)},a.estimateLiveEdge=function(){var x=this.levelDetails;return x===null?null:x.edge+x.age},a.computeLatency=function(){var x=this.estimateLiveEdge();return x===null?null:x-this.currentTime},d(p,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var x=this.config,y=this.levelDetails;return x.liveMaxLatencyDuration!==void 0?x.liveMaxLatencyDuration:y?x.liveMaxLatencyDurationCount*y.targetduration:0}},{key:"targetLatency",get:function(){var x=this.levelDetails;if(x===null)return null;var y=x.holdBack,m=x.partHoldBack,O=x.targetduration,i=this.config,r=i.liveSyncDuration,u=i.liveSyncDurationCount,h=i.lowLatencyMode,b=this.hls.userConfig,E=h&&m||y;(b.liveSyncDuration||b.liveSyncDurationCount||E===0)&&(E=r!==void 0?r:u*O);var t=O,C=1;return E+Math.min(this.stallCount*C,t)}},{key:"liveSyncPosition",get:function(){var x=this.estimateLiveEdge(),y=this.targetLatency,m=this.levelDetails;if(x===null||y===null||m===null)return null;var O=m.edge,i=x-y-this.edgeStalled,r=O-m.totalduration,u=O-(this.config.lowLatencyMode&&m.partTarget||m.targetduration);return Math.min(Math.max(r,i),u)}},{key:"drift",get:function(){var x=this.levelDetails;return x===null?1:x.drift}},{key:"edgeStalled",get:function(){var x=this.levelDetails;if(x===null)return 0;var y=(this.config.lowLatencyMode&&x.partTarget||x.targetduration)*3;return Math.max(x.age-y,0)}},{key:"forwardBufferLength",get:function(){var x=this.media,y=this.levelDetails;if(!x||!y)return 0;var m=x.buffered.length;return m?x.buffered.end(m-1):y.edge-this.currentTime}}]),p}()},"./src/controller/level-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return i});var U=L("./src/types/level.ts"),S=L("./src/events.ts"),g=L("./src/errors.ts"),s=L("./src/utils/codecs.ts"),d=L("./src/controller/level-helper.ts"),w=L("./src/controller/base-playlist-controller.ts"),p=L("./src/types/loader.ts");function a(){return a=Object.assign||function(r){for(var u=1;u0){o=C[0].bitrate,C.sort(function(V,W){return V.bitrate-W.bitrate}),this._levels=C;for(var k=0;kthis.hls.config.fragLoadingMaxRetry&&(l=t.frag.level)):l=t.frag.level}break;case g.ErrorDetails.LEVEL_LOAD_ERROR:case g.ErrorDetails.LEVEL_LOAD_TIMEOUT:C&&(C.deliveryDirectives&&(o=!1),l=C.level),v=!0;break;case g.ErrorDetails.REMUX_ALLOC_ERROR:l=t.level,v=!0;break}l!==void 0&&this.recoverLevel(t,l,v,o)},h.recoverLevel=function(E,t,C,A){var v=E.details,o=this._levels[t];if(o.loadError++,C){var l=this.retryLoadingOrFail(E);if(l)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(A){var c=o.url.length;if(c>1&&o.loadError1){var A=(t.urlId+1)%C;this.warn("Switching to redundant URL-id "+A),this._levels.forEach(function(v){v.urlId=A}),this.level=E}},h.onFragLoaded=function(E,t){var C=t.frag;if(C!==void 0&&C.type===p.PlaylistLevelType.MAIN){var A=this._levels[C.level];A!==void 0&&(A.fragmentError=0,A.loadError=0)}},h.onLevelLoaded=function(E,t){var C,A=t.level,v=t.details,o=this._levels[A];if(!o){var l;this.warn("Invalid level index "+A),(l=t.deliveryDirectives)!==null&&l!==void 0&&l.skip&&(v.deltaUpdateFailed=!0);return}A===this.currentLevelIndex?(o.fragmentError===0&&(o.loadError=0,this.retryCount=0),this.playlistLoaded(A,t,o.details)):(C=t.deliveryDirectives)!==null&&C!==void 0&&C.skip&&(v.deltaUpdateFailed=!0)},h.onAudioTrackSwitched=function(E,t){var C=this.hls.levels[this.currentLevelIndex];if(!C)return;if(C.audioGroupIds){for(var A=-1,v=this.hls.audioTracks[t.id].groupId,o=0;o0){var A=C.urlId,v=C.url[A];if(E)try{v=E.addDirectives(v)}catch(o){this.warn("Could not construct new URL with HLS Delivery Directives: "+o)}this.log("Attempt loading level index "+t+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+A+" "+v),this.clearTimer(),this.hls.trigger(S.Events.LEVEL_LOADING,{url:v,level:t,id:A,deliveryDirectives:E||null})}},h.removeLevel=function(E,t){var C=function(o,l){return l!==t},A=this._levels.filter(function(v,o){return o!==E?!0:v.url.length>1&&t!==void 0?(v.url=v.url.filter(C),v.audioGroupIds&&(v.audioGroupIds=v.audioGroupIds.filter(C)),v.textGroupIds&&(v.textGroupIds=v.textGroupIds.filter(C)),v.urlId=0,!0):!1}).map(function(v,o){var l=v.details;return l!=null&&l.fragments&&l.fragments.forEach(function(c){c.level=o}),v});this._levels=A,this.hls.trigger(S.Events.LEVELS_UPDATED,{levels:A})},x(u,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var t,C=this._levels;if(C.length===0)return;if(this.currentLevelIndex===E&&(t=C[E])!==null&&t!==void 0&&t.details)return;if(E<0||E>=C.length){var A=E<0;if(this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.OTHER_ERROR,details:g.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:A,reason:"invalid level idx"}),A)return;E=Math.min(E,C.length-1)}this.clearTimer();var v=this.currentLevelIndex,o=C[v],l=C[E];this.log("switching to level "+E+" from "+v),this.currentLevelIndex=E;var c=a({},l,{level:E,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete c._urlId,this.hls.trigger(S.Events.LEVEL_SWITCHING,c);var M=l.details;if(!M||M.live){var P=this.switchParams(l.uri,o==null?void 0:o.details);this.loadPlaylist(P)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),u}(w.default)},"./src/controller/level-helper.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"addGroupId",function(){return g}),L.d(j,"assignTrackIdsByGroup",function(){return s}),L.d(j,"updatePTS",function(){return d}),L.d(j,"updateFragPTSDTS",function(){return p}),L.d(j,"mergeDetails",function(){return a}),L.d(j,"mapPartIntersection",function(){return f}),L.d(j,"mapFragmentIntersection",function(){return x}),L.d(j,"adjustSliding",function(){return y}),L.d(j,"addSliding",function(){return m}),L.d(j,"computeReloadInterval",function(){return O}),L.d(j,"getFragmentWithSN",function(){return i}),L.d(j,"getPartWith",function(){return r});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/logger.ts");function g(u,h,b){switch(h){case"audio":u.audioGroupIds||(u.audioGroupIds=[]),u.audioGroupIds.push(b);break;case"text":u.textGroupIds||(u.textGroupIds=[]),u.textGroupIds.push(b);break}}function s(u){var h={};u.forEach(function(b){var E=b.groupId||"";b.id=h[E]=h[E]||0,h[E]++})}function d(u,h,b){var E=u[h],t=u[b];w(E,t)}function w(u,h){var b=h.startPTS;if(Object(U.isFiniteNumber)(b)){var E=0,t;h.sn>u.sn?(E=b-u.start,t=u):(E=u.start-b,t=h),t.duration!==E&&(t.duration=E)}else if(h.sn>u.sn){var C=u.cc===h.cc;C&&u.minEndPTS?h.start=u.start+(u.minEndPTS-u.start):h.start=u.start+u.duration}else h.start=Math.max(u.start-h.duration,0)}function p(u,h,b,E,t,C){var A=E-b;A<=0&&(S.logger.warn("Fragment should have a positive duration",h),E=b+h.duration,C=t+h.duration);var v=b,o=E,l=h.startPTS,c=h.endPTS;if(Object(U.isFiniteNumber)(l)){var M=Math.abs(l-b);Object(U.isFiniteNumber)(h.deltaPTS)?h.deltaPTS=Math.max(M,h.deltaPTS):h.deltaPTS=M,v=Math.max(b,l),b=Math.min(b,l),t=Math.min(t,h.startDTS),o=Math.min(E,c),E=Math.max(E,c),C=Math.max(C,h.endDTS)}h.duration=E-b;var P=b-h.start;h.appendedPTS=E,h.start=h.startPTS=b,h.maxStartPTS=v,h.startDTS=t,h.endPTS=E,h.minEndPTS=o,h.endDTS=C;var R=h.sn;if(!u||Ru.endSN)return 0;var k,I=R-u.startSN,F=u.fragments;for(F[I]=h,k=I;k>0;k--)w(F[k],F[k-1]);for(k=I;k=0;t--){var C=E[t].initSegment;if(C){b=C;break}}u.fragmentHint&&delete u.fragmentHint.endPTS;var A=0,v;if(x(u,h,function(k,I){k.relurl&&(A=k.cc-I.cc),Object(U.isFiniteNumber)(k.startPTS)&&Object(U.isFiniteNumber)(k.endPTS)&&(I.start=I.startPTS=k.startPTS,I.startDTS=k.startDTS,I.appendedPTS=k.appendedPTS,I.maxStartPTS=k.maxStartPTS,I.endPTS=k.endPTS,I.endDTS=k.endDTS,I.minEndPTS=k.minEndPTS,I.duration=k.endPTS-k.startPTS,I.duration&&(v=I),h.PTSKnown=h.alignedSliding=!0),I.elementaryStreams=k.elementaryStreams,I.loader=k.loader,I.stats=k.stats,I.urlId=k.urlId,k.initSegment&&(I.initSegment=k.initSegment,b=k.initSegment)}),b){var o=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments;o.forEach(function(k){var I;(!k.initSegment||k.initSegment.relurl===((I=b)===null||I===void 0?void 0:I.relurl))&&(k.initSegment=b)})}if(h.skippedSegments&&(h.deltaUpdateFailed=h.fragments.some(function(k){return!k}),h.deltaUpdateFailed)){S.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var l=h.skippedSegments;l--;)h.fragments.shift();h.startSN=h.fragments[0].sn,h.startCC=h.fragments[0].cc}var c=h.fragments;if(A){S.logger.warn("discontinuity sliding from playlist, take drift into account");for(var M=0;M=E.length)return;m(h,E[b].start)}function m(u,h){if(h){for(var b=u.fragments,E=u.skippedSegments;E0&&t0&&o===-1&&(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),o=l),this.state=S.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=o,this.tick()}else this._forceStartLoad=!0,this.state=S.State.STOPPED},A.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},A.doTick=function(){switch(this.state){case S.State.IDLE:this.doTickIdle();break;case S.State.WAITING_LEVEL:{var o,l=this.levels,c=this.level,M=l==null||((o=l[c])===null||o===void 0)?void 0:o.details;if(M&&(!M.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(M))break;this.state=S.State.IDLE;break}break}case S.State.FRAG_LOADING_WAITING_RETRY:{var P,R=self.performance.now(),k=this.retryDate;(!k||R>=k||(P=this.media)!==null&&P!==void 0&&P.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=S.State.IDLE)}break;default:break}this.onTickEnd()},A.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},A.doTickIdle=function(){var o,l,c=this.hls,M=this.levelLastLoaded,P=this.levels,R=this.media,k=c.config,I=c.nextLoadLevel;if(M===null||!R&&(this.startFragRequested||!k.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!P||!P[I])return;var F=P[I];this.level=c.nextLoadLevel=I;var V=F.details;if(!V||this.state===S.State.WAITING_LEVEL||V.live&&this.levelLastLoaded!==I){this.state=S.State.WAITING_LEVEL;return}var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:R,p.PlaylistLevelType.MAIN);if(W===null)return;var G=W.len,J=this.getMaxBufferLength(F.maxBitrate);if(G>=J)return;if(this._streamEnded(W,V)){var X={};this.altAudio&&(X.type="video"),this.hls.trigger(s.Events.BUFFER_EOS,X),this.state=S.State.ENDED;return}var te=W.end,ee=this.getNextFragment(te,V);if(this.couldBacktrack&&!this.fragPrevious&&ee&&ee.sn!=="initSegment"){var be=ee.sn-V.startSN;be>1&&(ee=V.fragments[be-1],this.fragmentTracker.removeFragment(ee))}if(ee&&this.fragmentTracker.getState(ee)===w.FragmentState.OK&&this.nextLoadPosition>te){var ge=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(R,ge,p.PlaylistLevelType.MAIN),ee=this.getNextFragment(this.nextLoadPosition,V)}if(!ee)return;ee.initSegment&&!ee.initSegment.data&&!this.bitrateTest&&(ee=ee.initSegment),((o=ee.decryptdata)===null||o===void 0?void 0:o.keyFormat)==="identity"&&!((l=ee.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(ee,V):this.loadFragment(ee,V,te)},A.loadFragment=function(o,l,c){var M,P=this.fragmentTracker.getState(o);if(this.fragCurrent=o,P===w.FragmentState.BACKTRACKED){var R=this.fragmentTracker.getBacktrackData(o);if(R){this._handleFragmentLoadProgress(R),this._handleFragmentLoadComplete(R);return}else P=w.FragmentState.NOT_LOADED}P===w.FragmentState.NOT_LOADED||P===w.FragmentState.PARTIAL?o.sn==="initSegment"?this._loadInitSegment(o):this.bitrateTest?(o.bitrateTest=!0,this.log("Fragment "+o.sn+" of level "+o.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(o)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,o,l,c)):P===w.FragmentState.APPENDING?this.reduceMaxBufferLength(o.duration)&&this.fragmentTracker.removeFragment(o):((M=this.media)===null||M===void 0?void 0:M.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},A.getAppendedFrag=function(o){var l=this.fragmentTracker.getAppendedFrag(o,p.PlaylistLevelType.MAIN);return l&&"fragment"in l?l.fragment:l},A.getBufferedFrag=function(o){return this.fragmentTracker.getBufferedFrag(o,p.PlaylistLevelType.MAIN)},A.followingBufferedFrag=function(o){return o?this.getBufferedFrag(o.end+.5):null},A.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},A.nextLevelSwitch=function(){var o=this.levels,l=this.media;if(l!=null&&l.readyState){var c,M=this.getAppendedFrag(l.currentTime);if(M&&M.start>1&&this.flushMainBuffer(0,M.start-1),!l.paused&&o){var P=this.hls.nextLoadLevel,R=o[P],k=this.fragLastKbps;k&&this.fragCurrent?c=this.fragCurrent.duration*R.maxBitrate/(1e3*k)+1:c=0}else c=0;var I=this.getBufferedFrag(l.currentTime+c);if(I){var F=this.followingBufferedFrag(I);if(F){this.abortCurrentFrag();var V=F.maxStartPTS?F.maxStartPTS:F.start,W=F.duration,G=Math.max(I.end,V+Math.min(Math.max(W-this.config.maxFragLookUpTolerance,W*.5),W*.75));this.flushMainBuffer(G,Number.POSITIVE_INFINITY)}}}},A.abortCurrentFrag=function(){var o=this.fragCurrent;this.fragCurrent=null,o!=null&&o.loader&&o.loader.abort(),this.state===S.State.KEY_LOADING&&(this.state=S.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},A.flushMainBuffer=function(o,l){t.prototype.flushMainBuffer.call(this,o,l,this.altAudio?"video":null)},A.onMediaAttached=function(o,l){t.prototype.onMediaAttached.call(this,o,l);var c=l.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),c.addEventListener("playing",this.onvplaying),c.addEventListener("seeked",this.onvseeked),this.gapController=new y.default(this.config,c,this.fragmentTracker,this.hls)},A.onMediaDetaching=function(){var o=this.media;o&&(o.removeEventListener("playing",this.onvplaying),o.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},A.onMediaPlaying=function(){this.tick()},A.onMediaSeeked=function(){var o=this.media,l=o?o.currentTime:null;Object(U.isFiniteNumber)(l)&&this.log("Media seeked to "+l.toFixed(3)),this.tick()},A.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(s.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},A.onManifestParsed=function(o,l){var c=!1,M=!1,P;l.levels.forEach(function(R){P=R.audioCodec,P&&(P.indexOf("mp4a.40.2")!==-1&&(c=!0),P.indexOf("mp4a.40.5")!==-1&&(M=!0))}),this.audioCodecSwitch=c&&M&&!Object(g.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=l.levels,this.startFragRequested=!1},A.onLevelLoading=function(o,l){var c=this.levels;if(!c||this.state!==S.State.IDLE)return;var M=c[l.level];(!M.details||M.details.live&&this.levelLastLoaded!==l.level||this.waitForCdnTuneIn(M.details))&&(this.state=S.State.WAITING_LEVEL)},A.onLevelLoaded=function(o,l){var c,M=this.levels,P=l.level,R=l.details,k=R.totalduration;if(!M){this.warn("Levels were reset while loading level "+P);return}this.log("Level "+P+" loaded ["+R.startSN+","+R.endSN+"], cc ["+R.startCC+", "+R.endCC+"] duration:"+k);var I=this.fragCurrent;I&&(this.state===S.State.FRAG_LOADING||this.state===S.State.FRAG_LOADING_WAITING_RETRY)&&(I.level!==l.level&&I.loader&&(this.state=S.State.IDLE,I.loader.abort()));var F=M[P],V=0;if(R.live||(c=F.details)!==null&&c!==void 0&&c.live){if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed)return;V=this.alignPlaylists(R,F.details)}if(F.details=R,this.levelLastLoaded=P,this.hls.trigger(s.Events.LEVEL_UPDATED,{details:R,level:P}),this.state===S.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(R))return;this.state=S.State.IDLE}this.startFragRequested?R.live&&this.synchronizeToLiveEdge(R):this.setStartPosition(R,V),this.tick()},A._handleFragmentLoadProgress=function(o){var l,c=o.frag,M=o.part,P=o.payload,R=this.levels;if(!R){this.warn("Levels were reset while fragment load was in progress. Fragment "+c.sn+" of level "+c.level+" will not be buffered");return}var k=R[c.level],I=k.details;if(!I){this.warn("Dropping fragment "+c.sn+" of level "+c.level+" after level details were reset");return}var F=k.videoCodec,V=I.PTSKnown||!I.live,W=(l=c.initSegment)===null||l===void 0?void 0:l.data,G=this._getAudioCodec(k),J=this.transmuxer=this.transmuxer||new f.default(this.hls,p.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),X=M?M.index:-1,te=X!==-1,ee=new x.ChunkMetadata(c.level,c.sn,c.stats.chunkCount,P.byteLength,X,te),be=this.initPTS[c.cc];J.push(P,W,G,F,c,M,I.totalduration,V,ee,be)},A.onAudioTrackSwitching=function(o,l){var c=this.altAudio,M=!!l.url,P=l.id;if(!M){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var R=this.fragCurrent;R!=null&&R.loader&&(this.log("Switching to main audio track, cancel main fragment load"),R.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var k=this.hls;c&&k.trigger(s.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),k.trigger(s.Events.AUDIO_TRACK_SWITCHED,{id:P})}},A.onAudioTrackSwitched=function(o,l){var c=l.id,M=!!this.hls.audioTracks[c].url;if(M){var P=this.videoBuffer;P&&this.mediaBuffer!==P&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=P)}this.altAudio=M,this.tick()},A.onBufferCreated=function(o,l){var c=l.tracks,M,P,R=!1;for(var k in c){var I=c[k];if(I.id==="main"){if(P=k,M=I,k==="video"){var F=c[k];F&&(this.videoBuffer=F.buffer)}}else R=!0}R&&M?(this.log("Alternate track found, use "+P+".buffered to schedule main fragment loading"),this.mediaBuffer=M.buffer):this.mediaBuffer=this.media},A.onFragBuffered=function(o,l){var c=l.frag,M=l.part;if(c&&c.type!==p.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(c)){this.warn("Fragment "+c.sn+(M?" p: "+M.index:"")+" of level "+c.level+" finished buffering, but was aborted. state: "+this.state),this.state===S.State.PARSED&&(this.state=S.State.IDLE);return}var P=M?M.stats:c.stats;this.fragLastKbps=Math.round(8*P.total/(P.buffering.end-P.loading.first)),c.sn!=="initSegment"&&(this.fragPrevious=c),this.fragBufferedComplete(c,M)},A.onError=function(o,l){switch(l.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:case m.ErrorDetails.KEY_LOAD_ERROR:case m.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.MAIN,l);break;case m.ErrorDetails.LEVEL_LOAD_ERROR:case m.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==S.State.ERROR&&(l.fatal?(this.warn(""+l.details),this.state=S.State.ERROR):!l.levelRetry&&this.state===S.State.WAITING_LEVEL&&(this.state=S.State.IDLE));break;case m.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="main"&&(this.state===S.State.PARSING||this.state===S.State.PARSED)){var c=!0,M=this.getFwdBufferInfo(this.media,p.PlaylistLevelType.MAIN);M&&M.len>.5&&(c=!this.reduceMaxBufferLength(M.len)),c&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},A.checkBuffer=function(){var o=this.media,l=this.gapController;if(!o||!l||!o.readyState)return;var c=d.BufferHelper.getBuffered(o);!this.loadedmetadata&&c.length?(this.loadedmetadata=!0,this.seekToStartPos()):l.poll(this.lastCurrentTime),this.lastCurrentTime=o.currentTime},A.onFragLoadEmergencyAborted=function(){this.state=S.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},A.onBufferFlushed=function(o,l){var c=l.type;if(c!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var M=(c===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(M,c,p.PlaylistLevelType.MAIN)}},A.onLevelsUpdated=function(o,l){this.levels=l.levels},A.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},A.seekToStartPos=function(){var o=this.media,l=o.currentTime,c=this.startPosition;if(c>=0&&l0&&(R1&&o.seeking===!1){var c=o.currentTime;if(d.BufferHelper.isBuffered(o,c)?l=this.getAppendedFrag(c):d.BufferHelper.isBuffered(o,c+.1)&&(l=this.getAppendedFrag(c+.1)),l){var M=this.fragPlaying,P=l.level;(!M||l.sn!==M.sn||M.level!==P||l.urlId!==M.urlId)&&(this.hls.trigger(s.Events.FRAG_CHANGED,{frag:l}),(!M||M.level!==P)&&this.hls.trigger(s.Events.LEVEL_SWITCHED,{level:P}),this.fragPlaying=l)}}},r(C,[{key:"nextLevel",get:function(){var o=this.nextBufferedFrag;return o?o.level:-1}},{key:"currentLevel",get:function(){var o=this.media;if(o){var l=this.getAppendedFrag(o.currentTime);if(l)return l.level}return-1}},{key:"nextBufferedFrag",get:function(){var o=this.media;if(o){var l=this.getAppendedFrag(o.currentTime);return this.followingBufferedFrag(l)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),C}(S.default)},"./src/controller/subtitle-stream-controller.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"SubtitleStreamController",function(){return u});var U=L("./src/events.ts"),S=L("./src/utils/logger.ts"),g=L("./src/utils/buffer-helper.ts"),s=L("./src/controller/fragment-finders.ts"),d=L("./src/utils/discontinuities.ts"),w=L("./src/controller/level-helper.ts"),p=L("./src/controller/fragment-tracker.ts"),a=L("./src/controller/base-stream-controller.ts"),f=L("./src/types/loader.ts"),x=L("./src/types/level.ts");function y(h,b){for(var E=0;E=l[P].start&&M<=l[P].end){c=l[P];break}var R=v.start+v.duration;c?c.end=R:(c={start:M,end:R},l.push(c)),this.fragmentTracker.fragBuffered(v)},E.onBufferFlushing=function(C,A){var v=A.startOffset,o=A.endOffset;if(v===0&&o!==Number.POSITIVE_INFINITY){var l=this.currentTrackId,c=this.levels;if(!c.length||!c[l]||!c[l].details)return;var M=c[l].details,P=M.targetduration,R=o-P;if(R<=0)return;A.endOffsetSubtitles=Math.max(0,R),this.tracksBuffered.forEach(function(k){for(var I=0;I=M.length||l!==c||!P)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,o.live||(v=P.details)!==null&&v!==void 0&&v.live){var R=this.mainDetails;if(o.deltaUpdateFailed||!R)return;var k=R.fragments[0];if(!P.details)o.hasProgramDateTime&&R.hasProgramDateTime?Object(d.alignMediaPlaylistByPDT)(o,R):k&&Object(w.addSliding)(o,k.start);else{var I=this.alignPlaylists(o,P.details);I===0&&k&&Object(w.addSliding)(o,k.start)}}if(P.details=o,this.levelLastLoaded=l,this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var F=Object(s.findFragmentByPTS)(null,o.fragments,this.media.currentTime,0);F||(this.warn("Subtitle playlist not aligned with playback"),P.details=void 0)}},E._handleFragmentLoadComplete=function(C){var A=C.frag,v=C.payload,o=A.decryptdata,l=this.hls;if(this.fragContextChanged(A))return;if(v&&v.byteLength>0&&o&&o.key&&o.iv&&o.method==="AES-128"){var c=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(v),o.key.buffer,o.iv.buffer).then(function(M){var P=performance.now();l.trigger(U.Events.FRAG_DECRYPTED,{frag:A,payload:M,stats:{tstart:c,tdecrypt:P}})})}},E.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var C,A=this.currentTrackId,v=this.levels;if(!v.length||!v[A]||!v[A].details)return;var o=v[A].details,l=o.targetduration,c=this.config,M=this.media,P=g.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,M.currentTime-l,c.maxBufferHole),R=P.end,k=P.len,I=this.getMaxBufferLength()+l;if(k>I)return;console.assert(o,"Subtitle track details are defined on idle subtitle stream controller tick");var F=o.fragments,V=F.length,W=o.edge,G,J=this.fragPrevious;if(R-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},O.pollTrackChange=function(r){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,r)},O.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var r=x(this.media.textTracks);r.forEach(function(u){Object(S.clearCurrentCues)(u)}),this.subtitleTrack=-1,this.media=null},O.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},O.onManifestParsed=function(r,u){this.tracks=u.subtitleTracks},O.onSubtitleTrackLoaded=function(r,u){var h=u.id,b=u.details,E=this.trackId,t=this.tracksInGroup[E];if(!t){this.warn("Invalid subtitle track id "+h);return}var C=t.details;t.details=u.details,this.log("subtitle track "+h+" loaded ["+b.startSN+"-"+b.endSN+"]"),h===this.trackId&&(this.retryCount=0,this.playlistLoaded(h,u,C))},O.onLevelLoading=function(r,u){this.switchLevel(u.level)},O.onLevelSwitching=function(r,u){this.switchLevel(u.level)},O.switchLevel=function(r){var u=this.hls.levels[r];if(!(u!=null&&u.textGroupIds))return;var h=u.textGroupIds[u.urlId];if(this.groupId!==h){var b=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(A){return!h||A.groupId===h});this.tracksInGroup=E;var t=this.findTrackId(b==null?void 0:b.name)||this.findTrackId();this.groupId=h;var C={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+h+'" group-id'),this.hls.trigger(U.Events.SUBTITLE_TRACKS_UPDATED,C),t!==-1&&this.setSubtitleTrack(t,b)}},O.findTrackId=function(r){for(var u=this.tracksInGroup,h=0;h=b.length)return;this.clearTimer();var E=b[r];if(this.log("Switching to subtitle track "+r),this.trackId=r,E){var t=E.id,C=E.groupId,A=C===void 0?"":C,v=E.name,o=E.type,l=E.url;this.hls.trigger(U.Events.SUBTITLE_TRACK_SWITCH,{id:t,groupId:A,name:v,type:o,url:l});var c=this.switchParams(E.url,u==null?void 0:u.details);this.loadPlaylist(c)}else this.hls.trigger(U.Events.SUBTITLE_TRACK_SWITCH,{id:r})},O.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var r=-1,u=x(this.media.textTracks),h=0;h=0&&(o[0]=Math.min(o[0],b),o[1]=Math.max(o[1],E),A=!0,l/(E-b)>.5))return}if(A||C.push([b,E]),this.config.renderTextTracksNatively){var c=this.captionsTracks[h];this.Cues.newCue(c,b,E,t)}else{var M=this.Cues.newCue(null,b,E,t);this.hls.trigger(S.Events.CUES_PARSED,{type:"captions",cues:M,track:h})}},r.onInitPtsFound=function(h,b){var E=this,t=b.frag,C=b.id,A=b.initPTS,v=b.timescale,o=this.unparsedVttFrags;C==="main"&&(this.initPTS[t.cc]=A,this.timescale[t.cc]=v),o.length&&(this.unparsedVttFrags=[],o.forEach(function(l){E.onFragLoaded(S.Events.FRAG_LOADED,l)}))},r.getExistingTrack=function(h){var b=this.media;if(b)for(var E=0;E>>8^v&255^99,p[t]=v,a[v]=t;var o=E[t],l=E[o],c=E[l],M=E[v]*257^v*16843008;x[t]=M<<24|M>>>8,y[t]=M<<16|M>>>16,m[t]=M<<8|M>>>24,O[t]=M,M=c*16843009^l*65537^o*257^t*16843008,r[v]=M<<24|M>>>8,u[v]=M<<16|M>>>16,h[v]=M<<8|M>>>24,b[v]=M,t?(t=o^E[E[E[c^o]]],C^=E[E[C]]):t=C=1}},d.expandKey=function(p){for(var a=this.uint8ArrayToUint32Array_(p),f=!0,x=0;x>>6)+1;var M=(h[b+2]&60)>>>2;if(M>c.length-1){u.trigger(g.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+M});return}return A=(h[b+2]&1)<<2,A|=(h[b+3]&192)>>>6,U.logger.log("manifest codec:"+E+", ADTS type:"+t+", samplingIndex:"+M),/firefox/i.test(o)?M>=6?(t=5,v=new Array(4),C=M-3):(t=2,v=new Array(2),C=M):o.indexOf("android")!==-1?(t=2,v=new Array(2),C=M):(t=5,v=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&M>=6?C=M-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(M>=6&&A===1||/vivaldi/i.test(o))||!E&&A===1)&&(t=2,v=new Array(2)),C=M)),v[0]=t<<3,v[0]|=(M&14)>>1,v[1]|=(M&1)<<7,v[1]|=A<<3,t===5&&(v[1]|=(C&14)>>1,v[2]=(C&1)<<7,v[2]|=2<<2,v[3]=0),{config:v,samplerate:c[M],channelCount:A,codec:"mp4a.40."+t,manifestCodec:l}}function d(u,h){return u[h]===255&&(u[h+1]&246)===240}function w(u,h){return u[h+1]&1?7:9}function p(u,h){return(u[h+3]&3)<<11|u[h+4]<<3|(u[h+5]&224)>>>5}function a(u,h){return h+5=u.length)return!1;var E=p(u,h);if(E<=b)return!1;var t=h+E;return t===u.length||f(u,t)}return!1}function m(u,h,b,E,t){if(!u.samplerate){var C=s(h,b,E,t);if(!C)return;u.config=C.config,u.samplerate=C.samplerate,u.channelCount=C.channelCount,u.codec=C.codec,u.manifestCodec=C.manifestCodec,U.logger.log("parsed codec:"+u.codec+", rate:"+C.samplerate+", channels:"+C.channelCount)}}function O(u){return 1024*9e4/u}function i(u,h,b,E,t){var C=w(u,h),A=p(u,h);if(A-=C,A>0){var v=b+E*t;return{headerLength:C,frameLength:A,stamp:v}}}function r(u,h,b,E,t){var C=O(u.samplerate),A=i(h,b,E,t,C);if(A){var v=A.frameLength,o=A.headerLength,l=A.stamp,c=o+v,M=Math.max(0,b+c-h.length),P;M?(P=new Uint8Array(c-o),P.set(h.subarray(b+o,h.length),0)):P=h.subarray(b+o,b+c);var R={unit:P,pts:l};return M||u.samples.push(R),{sample:R,length:c,missing:M}}}},"./src/demux/base-audio-demuxer.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"initPTSFn",function(){return p});var U=L("./src/polyfills/number.ts"),S=L("./src/demux/id3.ts"),g=L("./src/demux/dummy-demuxed-track.ts"),s=L("./src/utils/mp4-tools.ts"),d=L("./src/utils/typed-array.ts"),w=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var f=a.prototype;return f.resetInitSegment=function(y,m,O){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},f.resetTimeStamp=function(){},f.resetContiguity=function(){},f.canParse=function(y,m){return!1},f.appendFrame=function(y,m,O){},f.demux=function(y,m){this.cachedData&&(y=Object(s.appendUint8Array)(this.cachedData,y),this.cachedData=null);var O=S.getID3Data(y,0),i=O?O.length:0,r,u,h=this._audioTrack,b=this._id3Track,E=O?S.getTimeStamp(O):void 0,t=y.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=p(E,m)),O&&O.length>0&&b.samples.push({pts:this.initPTS,dts:this.initPTS,data:O}),u=this.initPTS;iw?(this.word<<=w,this.bitsAvailable-=w):(w-=this.bitsAvailable,p=w>>3,w-=p>>3,this.bytesAvailable-=p,this.loadWord(),this.word<<=w,this.bitsAvailable-=w)},s.readBits=function(w){var p=Math.min(this.bitsAvailable,w),a=this.word>>>32-p;return w>32&&U.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=p,this.bitsAvailable>0?this.word<<=p:this.bytesAvailable>0&&this.loadWord(),p=w-p,p>0&&this.bitsAvailable?a<>>w)!==0)return this.word<<=w,this.bitsAvailable-=w,w;return this.loadWord(),w+this.skipLZ()},s.skipUEG=function(){this.skipBits(1+this.skipLZ())},s.skipEG=function(){this.skipBits(1+this.skipLZ())},s.readUEG=function(){var w=this.skipLZ();return this.readBits(w+1)-1},s.readEG=function(){var w=this.readUEG();return 1&w?1+w>>>1:-1*(w>>>1)},s.readBoolean=function(){return this.readBits(1)===1},s.readUByte=function(){return this.readBits(8)},s.readUShort=function(){return this.readBits(16)},s.readUInt=function(){return this.readBits(32)},s.skipScalingList=function(w){for(var p=8,a=8,f,x=0;x0?t.subarray(A,A+v):void 0},s=function(t,C){var A=0;return A=(t[C]&127)<<21,A|=(t[C+1]&127)<<14,A|=(t[C+2]&127)<<7,A|=t[C+3]&127,A},d=function(t,C){return U(t,C)&&s(t,C+6)+10<=t.length-C},w=function(t){for(var C=f(t),A=0;A>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:R+=String.fromCharCode(c);break;case 12:case 13:M=t[k++],R+=String.fromCharCode((c&31)<<6|M&63);break;case 14:M=t[k++],P=t[k++],R+=String.fromCharCode((c&15)<<12|(M&63)<<6|(P&63)<<0);break;default:}}return R},u={decodeTextFrame:m},h;function b(){return!h&&typeof self.TextDecoder!="undefined"&&(h=new self.TextDecoder("utf-8")),h}},"./src/demux/mp3demuxer.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/demux/base-audio-demuxer.ts"),S=L("./src/demux/id3.ts"),g=L("./src/utils/logger.ts"),s=L("./src/demux/mpegaudio.ts");function d(a,f){a.prototype=Object.create(f.prototype),a.prototype.constructor=a,w(a,f)}function w(a,f){return w=Object.setPrototypeOf||function(y,m){return y.__proto__=m,y},w(a,f)}var p=function(a){d(f,a);function f(){return a.apply(this,arguments)||this}var x=f.prototype;return x.resetInitSegment=function(m,O,i){a.prototype.resetInitSegment.call(this,m,O,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:m,duration:i,inputTimeScale:9e4,dropped:0}},f.probe=function(m){if(!m)return!1;for(var O=S.getID3Data(m,0)||[],i=O.length,r=m.length;i0},d.demux=function(p){var a=p,f=Object(S.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(U.appendUint8Array)(this.remainderData,p));var x=Object(U.segmentValidRange)(a);this.remainderData=x.remainder,f.samples=x.valid||new Uint8Array}else f.samples=a;return{audioTrack:Object(S.dummyTrack)(),avcTrack:f,id3Track:Object(S.dummyTrack)(),textTrack:Object(S.dummyTrack)()}},d.flush=function(){var p=Object(S.dummyTrack)();return p.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(S.dummyTrack)(),avcTrack:p,id3Track:Object(S.dummyTrack)(),textTrack:Object(S.dummyTrack)()}},d.demuxSampleAes=function(p,a,f){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},d.destroy=function(){},s}();g.minProbeByteLength=1024,j.default=g},"./src/demux/mpegaudio.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"appendFrame",function(){return w}),L.d(j,"parseHeader",function(){return p}),L.d(j,"isHeaderPattern",function(){return a}),L.d(j,"isHeader",function(){return f}),L.d(j,"canParse",function(){return x}),L.d(j,"probe",function(){return y});var U=null,S=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],g=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],s=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],d=[0,1,1,4];function w(m,O,i,r,u){if(i+24>O.length)return;var h=p(O,i);if(h&&i+h.frameLength<=O.length){var b=h.samplesPerFrame*9e4/h.sampleRate,E=r+u*b,t={unit:O.subarray(i,i+h.frameLength),pts:E,dts:E};return m.config=[],m.channelCount=h.channelCount,m.samplerate=h.sampleRate,m.samples.push(t),{sample:t,length:h.frameLength,missing:0}}}function p(m,O){var i=m[O+1]>>3&3,r=m[O+1]>>1&3,u=m[O+2]>>4&15,h=m[O+2]>>2&3;if(i!==1&&u!==0&&u!==15&&h!==3){var b=m[O+2]>>1&1,E=m[O+3]>>6,t=i===3?3-r:r===3?3:4,C=S[t*14+u-1]*1e3,A=i===3?0:i===2?1:2,v=g[A*3+h],o=E===3?1:2,l=s[i][r],c=d[r],M=l*8*c,P=Math.floor(l*C/v+b)*c;if(U===null){var R=navigator.userAgent||"",k=R.match(/Chrome\/(\d+)/i);U=k?parseInt(k[1]):0}var I=!!U&&U<=87;return I&&r===2&&C>=224e3&&E===0&&(m[O+3]=m[O+3]|128),{sampleRate:v,channelCount:o,frameLength:P,samplesPerFrame:M}}}function a(m,O){return m[O]===255&&(m[O+1]&224)===224&&(m[O+1]&6)!==0}function f(m,O){return O+1=p.length){f();return}if(p[a].unit.length<32)continue;var x=this.decrypter.isSync();if(this.decryptAacSample(p,a,f,x),!x)return}},d.getAvcEncryptedData=function(p){for(var a=Math.floor((p.length-48)/160)*16+16,f=new Int8Array(a),x=0,y=32;y<=p.length-16;y+=160,x+=16)f.set(p.subarray(y,y+16),x);return f},d.getAvcDecryptedUnit=function(p,a){for(var f=new Uint8Array(a),x=0,y=32;y<=p.length-16;y+=160,x+=16)p.set(f.subarray(x,x+16),y);return p},d.decryptAvcSample=function(p,a,f,x,y,m){var O=Object(S.discardEPB)(y.data),i=this.getAvcEncryptedData(O),r=this;this.decryptBuffer(i.buffer,function(u){y.data=r.getAvcDecryptedUnit(O,u),m||r.decryptAvcSamples(p,a,f+1,x)})},d.decryptAvcSamples=function(p,a,f,x){if(p instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,f=0){if(a>=p.length){x();return}for(var y=p[a].units;!(f>=y.length);f++){var m=y[f];if(m.data.length<=48||m.type!==1&&m.type!==5)continue;var O=this.decrypter.isSync();if(this.decryptAvcSample(p,a,f,x,m,O),!O)return}}},s}();j.default=g},"./src/demux/transmuxer-interface.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return y});var U=L("./node_modules/webworkify-webpack/index.js"),S=L.n(U),g=L("./src/events.ts"),s=L("./src/demux/transmuxer.ts"),d=L("./src/utils/logger.ts"),w=L("./src/errors.ts"),p=L("./src/utils/mediasource-helper.ts"),a=L("./node_modules/eventemitter3/index.js"),f=L.n(a),x=Object(p.getMediaSource)()||{isTypeSupported:function(){return!1}},y=function(){function m(i,r,u,h){var b=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=i,this.id=r,this.onTransmuxComplete=u,this.onFlush=h;var E=i.config,t=function(l,c){c=c||{},c.frag=b.frag,c.id=b.id,i.trigger(l,c)};this.observer=new a.EventEmitter,this.observer.on(g.Events.FRAG_DECRYPTED,t),this.observer.on(g.Events.ERROR,t);var C={mp4:x.isTypeSupported("video/mp4"),mpeg:x.isTypeSupported("audio/mpeg"),mp3:x.isTypeSupported('audio/mp4; codecs="mp3"')},A=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){d.logger.log("demuxing in webworker");var v;try{v=this.worker=U("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),v.addEventListener("message",this.onwmsg),v.onerror=function(o){i.trigger(g.Events.ERROR,{type:w.ErrorTypes.OTHER_ERROR,details:w.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(o.message+" ("+o.filename+":"+o.lineno+")")})},v.postMessage({cmd:"init",typeSupported:C,vendor:A,id:r,config:JSON.stringify(E)})}catch(o){d.logger.warn("Error in worker:",o),d.logger.error("Error while initializing DemuxerWorker, fallback to inline"),v&&self.URL.revokeObjectURL(v.objectURL),this.transmuxer=new s.default(this.observer,C,E,A,r),this.worker=null}}else this.transmuxer=new s.default(this.observer,C,E,A,r)}var O=m.prototype;return O.destroy=function(){var r=this.worker;if(r)r.removeEventListener("message",this.onwmsg),r.terminate(),this.worker=null;else{var u=this.transmuxer;u&&(u.destroy(),this.transmuxer=null)}var h=this.observer;h&&h.removeAllListeners(),this.observer=null},O.push=function(r,u,h,b,E,t,C,A,v,o){var l=this;v.transmuxing.start=self.performance.now();var c=this.transmuxer,M=this.worker,P=t?t.start:E.start,R=E.decryptdata,k=this.frag,I=!(k&&E.cc===k.cc),F=!(k&&v.level===k.level),V=k?v.sn-k.sn:-1,W=this.part?v.part-this.part.index:1,G=!F&&(V===1||V===0&&W===1),J=self.performance.now();(F||V||E.stats.parsing.start===0)&&(E.stats.parsing.start=J),t&&(W||!G)&&(t.stats.parsing.start=J);var X=new s.TransmuxState(I,G,A,F,P);if(!G||I){d.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+v.sn+" p: "+v.part+" level: "+v.level+" id: "+v.id+` discontinuity: `+I+` trackSwitch: `+F+` contiguous: `+G+` accurateTimeOffset: `+A+` - timeOffset: `+P);var te=new s.TransmuxConfig(h,y,u,C,o);this.configureTransmuxer(te)}if(this.frag=E,this.part=t,M)M.postMessage({cmd:"demux",data:r,decryptdata:R,chunkMeta:v,state:X},r instanceof ArrayBuffer?[r]:[]);else if(c){var ee=c.push(r,R,v,X);Object(s.isPromise)(ee)?ee.then(function(be){l.handleTransmuxComplete(be)}):this.handleTransmuxComplete(ee)}},O.flush=function(r){var u=this;r.transmuxing.start=self.performance.now();var h=this.transmuxer,y=this.worker;if(y)y.postMessage({cmd:"flush",chunkMeta:r});else if(h){var E=h.flush(r);Object(s.isPromise)(E)?E.then(function(t){u.handleFlushResult(t,r)}):this.handleFlushResult(E,r)}},O.handleFlushResult=function(r,u){var h=this;r.forEach(function(y){h.handleTransmuxComplete(y)}),this.onFlush(u)},O.onWorkerMessage=function(r){var u=r.data,h=this.hls;switch(u.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(u.data);break}case"flush":{this.onFlush(u.data);break}default:{u.data=u.data||{},u.data.frag=this.frag,u.data.id=this.id,h.trigger(u.event,u.data);break}}},O.configureTransmuxer=function(r){var u=this.worker,h=this.transmuxer;u?u.postMessage({cmd:"configure",config:r}):h&&h.configure(r)},O.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},m}()},"./src/demux/transmuxer-worker.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return w});var U=L("./src/demux/transmuxer.ts"),S=L("./src/events.ts"),g=L("./src/utils/logger.ts"),s=L("./node_modules/eventemitter3/index.js"),d=L.n(s);function w(b){var m=new s.EventEmitter,O=function(r,u){b.postMessage({event:r,data:u})};m.on(S.Events.FRAG_DECRYPTED,O),m.on(S.Events.ERROR,O),b.addEventListener("message",function(i){var r=i.data;switch(r.cmd){case"init":{var u=JSON.parse(r.config);b.transmuxer=new U.default(m,r.typeSupported,u,r.vendor,r.id),Object(g.enableLogs)(u.debug),O("init",null);break}case"configure":{b.transmuxer.configure(r.config);break}case"demux":{var h=b.transmuxer.push(r.data,r.decryptdata,r.chunkMeta,r.state);Object(U.isPromise)(h)?h.then(function(t){p(b,t)}):p(b,h);break}case"flush":{var y=r.chunkMeta,E=b.transmuxer.flush(y);Object(U.isPromise)(E)?E.then(function(t){f(b,t,y)}):f(b,E,y);break}default:break}})}function p(b,m){if(x(m.remuxResult))return;var O=[],i=m.remuxResult,r=i.audio,u=i.video;r&&a(O,r),u&&a(O,u),b.postMessage({event:"transmuxComplete",data:m},O)}function a(b,m){m.data1&&b.push(m.data1.buffer),m.data2&&b.push(m.data2.buffer)}function f(b,m,O){m.forEach(function(i){p(b,i)}),b.postMessage({event:"flush",data:O})}function x(b){return!b.audio&&!b.video&&!b.text&&!b.id3&&!b.initSegment}},"./src/demux/transmuxer.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return u}),L.d(j,"isPromise",function(){return E}),L.d(j,"TransmuxConfig",function(){return t}),L.d(j,"TransmuxState",function(){return C});var U=L("./src/events.ts"),S=L("./src/errors.ts"),g=L("./src/crypt/decrypter.ts"),s=L("./src/demux/aacdemuxer.ts"),d=L("./src/demux/mp4demuxer.ts"),w=L("./src/demux/tsdemuxer.ts"),p=L("./src/demux/mp3demuxer.ts"),a=L("./src/remux/mp4-remuxer.ts"),f=L("./src/remux/passthrough-remuxer.ts"),x=L("./src/demux/chunk-cache.ts"),b=L("./src/utils/mp4-tools.ts"),m=L("./src/utils/logger.ts"),O;try{O=self.performance.now.bind(self.performance)}catch(A){m.logger.debug("Unable to use Performance API on this environment"),O=self.Date.now}var i=[{demux:w.default,remux:a.default},{demux:d.default,remux:f.default},{demux:s.default,remux:a.default},{demux:p.default,remux:a.default}],r=1024;i.forEach(function(A){var v=A.demux;r=Math.max(r,v.minProbeByteLength)});var u=function(){function A(o,l,c,M,P){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new x.default,this.observer=o,this.typeSupported=l,this.config=c,this.vendor=M,this.id=P}var v=A.prototype;return v.configure=function(l){this.transmuxConfig=l,this.decrypter&&this.decrypter.reset()},v.push=function(l,c,M,P){var R=this,k=M.transmuxing;k.executeStart=O();var I=new Uint8Array(l),F=this.cache,V=this.config,W=this.currentTransmuxState,G=this.transmuxConfig;P&&(this.currentTransmuxState=P);var J=h(I,c);if(J&&J.method==="AES-128"){var X=this.getDecrypter();if(V.enableSoftwareAES){var te=X.softwareDecrypt(I,J.key.buffer,J.iv.buffer);if(!te)return k.executeEnd=O(),y(M);I=new Uint8Array(te)}else return this.decryptionPromise=X.webCryptoDecrypt(I,J.key.buffer,J.iv.buffer).then(function(ze){var Le=R.push(ze,null,M);return R.decryptionPromise=null,Le}),this.decryptionPromise}var ee=P||W,be=ee.contiguous,ge=ee.discontinuity,je=ee.trackSwitch,He=ee.accurateTimeOffset,nt=ee.timeOffset,Ge=G.audioCodec,he=G.videoCodec,ce=G.defaultInitPts,Ee=G.duration,fe=G.initSegmentData;if((ge||je)&&this.resetInitSegment(fe,Ge,he,Ee),ge&&this.resetInitialTimestamp(ce),be||this.resetContiguity(),this.needsProbing(I,ge,je)){if(F.dataLength){var Ne=F.flush();I=Object(b.appendUint8Array)(Ne,I)}this.configureTransmuxer(I,G)}var Ce=this.transmux(I,J,nt,He,M),xe=this.currentTransmuxState;return xe.contiguous=!0,xe.discontinuity=!1,xe.trackSwitch=!1,k.executeEnd=O(),Ce},v.flush=function(l){var c=this,M=l.transmuxing;M.executeStart=O();var P=this.decrypter,R=this.cache,k=this.currentTransmuxState,I=this.decryptionPromise;if(I)return I.then(function(){return c.flush(l)});var F=[],V=k.timeOffset;if(P){var W=P.flush();W&&F.push(this.push(W,null,l))}var G=R.dataLength;R.reset();var J=this.demuxer,X=this.remuxer;if(!J||!X)return G>=r&&this.observer.emit(U.Events.ERROR,U.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),M.executeEnd=O(),[y(l)];var te=J.flush(V);return E(te)?te.then(function(ee){return c.flushRemux(F,ee,l),F}):(this.flushRemux(F,te,l),F)},v.flushRemux=function(l,c,M){var P=c.audioTrack,R=c.avcTrack,k=c.id3Track,I=c.textTrack,F=this.currentTransmuxState,V=F.accurateTimeOffset,W=F.timeOffset;m.logger.log("[transmuxer.ts]: Flushed fragment "+M.sn+(M.part>-1?" p: "+M.part:"")+" of level "+M.level);var G=this.remuxer.remux(P,R,k,I,W,V,!0,this.id);l.push({remuxResult:G,chunkMeta:M}),M.transmuxing.executeEnd=O()},v.resetInitialTimestamp=function(l){var c=this.demuxer,M=this.remuxer;if(!c||!M)return;c.resetTimeStamp(l),M.resetTimeStamp(l)},v.resetContiguity=function(){var l=this.demuxer,c=this.remuxer;if(!l||!c)return;l.resetContiguity(),c.resetNextTimestamp()},v.resetInitSegment=function(l,c,M,P){var R=this.demuxer,k=this.remuxer;if(!R||!k)return;R.resetInitSegment(c,M,P),k.resetInitSegment(l,c,M)},v.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},v.transmux=function(l,c,M,P,R){var k;return c&&c.method==="SAMPLE-AES"?k=this.transmuxSampleAes(l,c,M,P,R):k=this.transmuxUnencrypted(l,M,P,R),k},v.transmuxUnencrypted=function(l,c,M,P){var R=this.demuxer.demux(l,c,!1,!this.config.progressive),k=R.audioTrack,I=R.avcTrack,F=R.id3Track,V=R.textTrack,W=this.remuxer.remux(k,I,F,V,c,M,!1,this.id);return{remuxResult:W,chunkMeta:P}},v.transmuxSampleAes=function(l,c,M,P,R){var k=this;return this.demuxer.demuxSampleAes(l,c,M).then(function(I){var F=k.remuxer.remux(I.audioTrack,I.avcTrack,I.id3Track,I.textTrack,M,P,!1,k.id);return{remuxResult:F,chunkMeta:R}})},v.configureTransmuxer=function(l,c){for(var M=this.config,P=this.observer,R=this.typeSupported,k=this.vendor,I=c.audioCodec,F=c.defaultInitPts,V=c.duration,W=c.initSegmentData,G=c.videoCodec,J,X=0,te=i.length;X0&&v!=null&&v.key!=null&&v.iv!==null&&v.method!=null&&(o=v),o}var y=function(v){return{remuxResult:{},chunkMeta:v}};function E(A){return"then"in A&&A.then instanceof Function}var t=function(v,o,l,c,M){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=v,this.videoCodec=o,this.initSegmentData=l,this.duration=c,this.defaultInitPts=M},C=function(v,o,l,c,M){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=v,this.contiguous=o,this.accurateTimeOffset=l,this.trackSwitch=c,this.timeOffset=M}},"./src/demux/tsdemuxer.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"discardEPB",function(){return y});var U=L("./src/demux/adts.ts"),S=L("./src/demux/mpegaudio.ts"),g=L("./src/demux/exp-golomb.ts"),s=L("./src/demux/id3.ts"),d=L("./src/demux/sample-aes.ts"),w=L("./src/events.ts"),p=L("./src/utils/mp4-tools.ts"),a=L("./src/utils/logger.ts"),f=L("./src/errors.ts"),x={video:1,audio:2,id3:3,text:4},b=function(){function E(C,A,v){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=C,this.config=A,this.typeSupported=v}E.probe=function(A){var v=E.syncOffset(A);return v<0?!1:(v&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+v+", junk ahead ?"),!0)},E.syncOffset=function(A){for(var v=Math.min(1e3,A.length-3*188),o=0;o>4,Ge=void 0;if(nt>1){if(Ge=ge+5+A[ge+4],Ge===ge+188)continue}else Ge=ge+4;switch(He){case k:je&&(I&&(c=r(I))&&this.parseAVCPES(c,!1),I={data:[],size:0}),I&&(I.data.push(A.subarray(Ge,ge+188)),I.size+=ge+188-Ge);break;case F:je&&(W&&(c=r(W))&&(P.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),W={data:[],size:0}),W&&(W.data.push(A.subarray(Ge,ge+188)),W.size+=ge+188-Ge);break;case V:je&&(G&&(c=r(G))&&this.parseID3PES(c),G={data:[],size:0}),G&&(G.data.push(A.subarray(Ge,ge+188)),G.size+=ge+188-Ge);break;case 0:je&&(Ge+=A[Ge]+1),te=this._pmtId=O(A,Ge);break;case te:{je&&(Ge+=A[Ge]+1);var he=i(A,Ge,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,o);k=he.avc,k>0&&(M.pid=k),F=he.audio,F>0&&(P.pid=F,P.isAAC=he.isAAC),V=he.id3,V>0&&(R.pid=V),J&&!X&&(a.logger.log("reparse from beginning"),J=!1,ge=be-188),X=this.pmtParsed=!0;break}case 17:case 8191:break;default:J=!0;break}}else this.observer.emit(w.Events.ERROR,w.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});M.pesData=I,P.pesData=W,R.pesData=G;var ce={audioTrack:P,avcTrack:M,id3Track:R,textTrack:this._txtTrack};return l&&this.extractRemainingSamples(ce),ce},t.flush=function(){var A=this.remainderData;this.remainderData=null;var v;return A?v=this.demux(A,-1,!1,!0):v={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(v),this.sampleAes?this.decrypt(v,this.sampleAes):v},t.extractRemainingSamples=function(A){var v=A.audioTrack,o=A.avcTrack,l=A.id3Track,c=o.pesData,M=v.pesData,P=l.pesData,R;c&&(R=r(c))?(this.parseAVCPES(R,!0),o.pesData=null):o.pesData=c,M&&(R=r(M))?(v.isAAC?this.parseAACPES(R):this.parseMPEGPES(R),v.pesData=null):(M!=null&&M.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),v.pesData=M),P&&(R=r(P))?(this.parseID3PES(R),l.pesData=null):l.pesData=P},t.demuxSampleAes=function(A,v,o){var l=this.demux(A,o,!0,!this.config.progressive),c=this.sampleAes=new d.default(this.observer,this.config,v);return this.decrypt(l,c)},t.decrypt=function(A,v){return new Promise(function(o){var l=A.audioTrack,c=A.avcTrack;l.samples&&l.isAAC?v.decryptAacSamples(l.samples,0,function(){c.samples?v.decryptAvcSamples(c.samples,0,0,function(){o(A)}):o(A)}):c.samples&&v.decryptAvcSamples(c.samples,0,0,function(){o(A)})})},t.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},t.parseAVCPES=function(A,v){var o=this,l=this._avcTrack,c=this.parseAVCNALu(A.data),M=!1,P=this.avcSample,R,k=!1;A.data=null,P&&c.length&&!l.audFound&&(u(P,l),P=this.avcSample=m(!1,A.pts,A.dts,"")),c.forEach(function(I){switch(I.type){case 1:{R=!0,P||(P=o.avcSample=m(!0,A.pts,A.dts,"")),M&&(P.debug+="NDR "),P.frame=!0;var F=I.data;if(k&&F.length>4){var V=new g.default(F).readSliceType();(V===2||V===4||V===7||V===9)&&(P.key=!0)}break}case 5:R=!0,P||(P=o.avcSample=m(!0,A.pts,A.dts,"")),M&&(P.debug+="IDR "),P.key=!0,P.frame=!0;break;case 6:{R=!0,M&&P&&(P.debug+="SEI ");var W=new g.default(y(I.data));W.readUByte();for(var G=0,J=0,X=!1,te=0;!X&&W.bytesAvailable>1;){G=0;do te=W.readUByte(),G+=te;while(te===255);J=0;do te=W.readUByte(),J+=te;while(te===255);if(G===4&&W.bytesAvailable!==0){X=!0;var ee=W.readUByte();if(ee===181){var be=W.readUShort();if(be===49){var ge=W.readUInt();if(ge===1195456820){var je=W.readUByte();if(je===3){for(var He=W.readUByte(),nt=W.readUByte(),Ge=31&He,he=[He,nt],ce=0;ce16){for(var Ee=[],fe=0;fe<16;fe++)Ee.push(W.readUByte().toString(16)),(fe===3||fe===5||fe===7||fe===9)&&Ee.push("-");for(var Ne=J-16,Ce=new Uint8Array(Ne),xe=0;xe=0){var W={data:A.subarray(F,P-l-1),type:V};M.push(W)}else{var G=this.getLastNalUnit();if(G&&(c&&P<=4-c&&(G.state&&(G.data=G.data.subarray(0,G.data.byteLength-c))),k=P-l-1,k>0)){var J=new Uint8Array(G.data.byteLength+k);J.set(G.data,0),J.set(A.subarray(0,k),G.data.byteLength),G.data=J,G.state=0}}P=0&&l>=0){var X={data:A.subarray(F,v),type:V,state:l};M.push(X)}if(M.length===0){var te=this.getLastNalUnit();if(te){var ee=new Uint8Array(te.data.byteLength+A.byteLength);ee.set(te.data,0),ee.set(A,te.data.byteLength),te.data=ee}}return o.naluState=l,M},t.parseAACPES=function(A){var v=0,o=this._audioTrack,l=this.aacOverFlow,c=A.data;if(l){this.aacOverFlow=null;var M=l.sample.unit.byteLength,P=Math.min(l.missing,M),R=M-P;l.sample.unit.set(c.subarray(0,P),R),o.samples.push(l.sample),v=l.missing}var k,I;for(k=v,I=c.length;k1;){var M=new Uint8Array(c[0].length+c[1].length);M.set(c[0]),M.set(c[1],c[0].length),c[0]=M,c.splice(1,1)}C=c[0];var P=(C[0]<<16)+(C[1]<<8)+C[2];if(P===1){if(A=(C[4]<<8)+C[5],A&&A>E.size-6)return null;var R=C[7];R&192&&(o=(C[9]&14)*536870912+(C[10]&255)*4194304+(C[11]&254)*16384+(C[12]&255)*128+(C[13]&254)/2,R&64?(l=(C[14]&14)*536870912+(C[15]&255)*4194304+(C[16]&254)*16384+(C[17]&255)*128+(C[18]&254)/2,o-l>60*9e4&&(a.logger.warn(Math.round((o-l)/9e4)+"s delta between PTS and DTS, align them"),o=l)):l=o),v=C[8];var k=v+9;if(E.size<=k)return null;E.size-=k;for(var I=new Uint8Array(E.size),F=0,V=c.length;FW){k-=W;continue}else C=C.subarray(k),W-=k,k=0;I.set(C,t),t+=W}return A&&(A-=v+3),{data:I,pts:o,dts:l,len:A}}return null}function u(E,t){if(E.units.length&&E.frame){if(E.pts===void 0){var C=t.samples,A=C.length;if(A){var v=C[A-1];E.pts=v.pts,E.dts=v.dts}else{t.dropped++;return}}t.samples.push(E)}E.debug.length&&a.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function h(E,t){var C=E.length;if(C>0){if(t.pts>=E[C-1].pts)E.push(t);else for(var A=C-1;A>=0;A--)if(t.ptso)return c;return 0}},{key:"maxAutoLevel",get:function(){var v=this.levels,o=this.autoLevelCapping,l;return o===-1&&v&&v.length?l=v.length-1:l=o,l}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(v){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,v)}},{key:"audioTracks",get:function(){var v=this.audioTrackController;return v?v.audioTracks:[]}},{key:"audioTrack",get:function(){var v=this.audioTrackController;return v?v.audioTrack:-1},set:function(v){var o=this.audioTrackController;o&&(o.audioTrack=v)}},{key:"subtitleTracks",get:function(){var v=this.subtitleTrackController;return v?v.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var v=this.subtitleTrackController;return v?v.subtitleTrack:-1},set:function(v){var o=this.subtitleTrackController;o&&(o.subtitleTrack=v)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var v=this.subtitleTrackController;return v?v.subtitleDisplay:!1},set:function(v){var o=this.subtitleTrackController;o&&(o.subtitleDisplay=v)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(v){this.config.lowLatencyMode=v}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return u.ErrorTypes}},{key:"ErrorDetails",get:function(){return u.ErrorDetails}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:m.hlsDefaultConfig},set:function(v){t.defaultConfig=v}}]),t}();E.defaultConfig=void 0},"./src/is-supported.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"isSupported",function(){return g}),L.d(j,"changeTypeSupported",function(){return s});var U=L("./src/utils/mediasource-helper.ts");function S(){return self.SourceBuffer||self.WebKitSourceBuffer}function g(){var d=Object(U.getMediaSource)();if(!d)return!1;var w=S(),p=d&&typeof d.isTypeSupported=="function"&&d.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!w||w.prototype&&typeof w.prototype.appendBuffer=="function"&&typeof w.prototype.remove=="function";return!!p&&!!a}function s(){var d,w=S();return typeof(w==null||((d=w.prototype)===null||d===void 0)?void 0:d.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return b}),L.d(j,"LoadError",function(){return O});var U=L("./src/polyfills/number.ts"),S=L("./src/errors.ts");function g(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,a(i,r)}function s(i){var r=typeof Map=="function"?new Map:void 0;return s=function(h){if(h===null||!p(h))return h;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(h))return r.get(h);r.set(h,y)}function y(){return d(h,arguments,f(this).constructor)}return y.prototype=Object.create(h.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),a(y,h)},s(i)}function d(i,r,u){return w()?d=Reflect.construct:d=function(y,E,t){var C=[null];C.push.apply(C,E);var A=Function.bind.apply(y,C),v=new A;return t&&a(v,t.prototype),v},d.apply(null,arguments)}function w(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function p(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function a(i,r){return a=Object.setPrototypeOf||function(h,y){return h.__proto__=y,h},a(i,r)}function f(i){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},f(i)}var x=Math.pow(2,17),b=function(){function i(u){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=u}var r=i.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(h,y){var E=this,t=h.url;if(!t)return Promise.reject(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,networkDetails:null},"Fragment does not have a "+(t?"part list":"url")));this.abort();var C=this.config,A=C.fLoader,v=C.loader;return new Promise(function(o,l){E.loader&&E.loader.destroy();var c=E.loader=h.loader=A?new A(C):new v(C),M=m(h),P={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:x};h.stats=c.stats,c.load(M,P,{onSuccess:function(k,I,F,V){E.resetLoader(h,c),o({frag:h,part:null,payload:k.data,networkDetails:V})},onError:function(k,I,F){E.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,response:k,networkDetails:F}))},onAbort:function(k,I,F){E.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,networkDetails:F}))},onTimeout:function(k,I,F){E.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,networkDetails:F}))},onProgress:function(k,I,F,V){y&&y({frag:h,part:null,payload:F,networkDetails:V})}})})},r.loadPart=function(h,y,E){var t=this;this.abort();var C=this.config,A=C.fLoader,v=C.loader;return new Promise(function(o,l){t.loader&&t.loader.destroy();var c=t.loader=h.loader=A?new A(C):new v(C),M=m(h,y),P={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:x};y.stats=c.stats,c.load(M,P,{onSuccess:function(k,I,F,V){t.resetLoader(h,c),t.updateStatsFromPart(h,y);var W={frag:h,part:y,payload:k.data,networkDetails:V};E(W),o(W)},onError:function(k,I,F){t.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,part:y,response:k,networkDetails:F}))},onAbort:function(k,I,F){h.stats.aborted=y.stats.aborted,t.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,part:y,networkDetails:F}))},onTimeout:function(k,I,F){t.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,part:y,networkDetails:F}))}})})},r.updateStatsFromPart=function(h,y){var E=h.stats,t=y.stats,C=t.total;if(E.loaded+=t.loaded,C){var A=Math.round(h.duration/y.duration),v=Math.min(Math.round(E.loaded/C),A),o=A-v,l=o*Math.round(E.loaded/v);E.total=E.loaded+l}else E.total=Math.max(E.loaded,E.total);var c=E.loading,M=t.loading;c.start?c.first+=M.first-M.start:(c.start=M.start,c.first=M.first),c.end=M.end},r.resetLoader=function(h,y){h.loader=null,this.loader===y&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),y.destroy()},i}();function m(i,r){r===void 0&&(r=null);var u=r||i,h={frag:i,part:r,responseType:"arraybuffer",url:u.url,headers:{},rangeStart:0,rangeEnd:0},y=u.byteRangeStartOffset,E=u.byteRangeEndOffset;return Object(U.isFiniteNumber)(y)&&Object(U.isFiniteNumber)(E)&&(h.rangeStart=y,h.rangeEnd=E),h}var O=function(i){g(r,i);function r(u){for(var h,y=arguments.length,E=new Array(y>1?y-1:0),t=1;t>8*(15-C)&255;return t},h.setDecryptDataFromLevelKey=function(E,t){var C=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(C=d.LevelKey.fromURI(E.uri),C.method=E.method,C.iv=this.createInitializationVector(t),C.keyFormat="identity"),C},h.setElementaryStreamInfo=function(E,t,C,A,v,o){o===void 0&&(o=!1);var l=this.elementaryStreams,c=l[E];if(!c){l[E]={startPTS:t,endPTS:C,startDTS:A,endDTS:v,partial:o};return}c.startPTS=Math.min(c.startPTS,t),c.endPTS=Math.max(c.endPTS,C),c.startDTS=Math.min(c.startDTS,A),c.endDTS=Math.max(c.endDTS,v)},h.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[b.AUDIO]=null,E[b.VIDEO]=null,E[b.AUDIOVIDEO]=null},x(u,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&s.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(U.isFiniteNumber)(this.programDateTime))return null;var E=Object(U.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),u}(m),i=function(r){p(u,r);function u(h,y,E,t,C){var A;A=r.call(this,E)||this,A.fragOffset=0,A.duration=0,A.gap=!1,A.independent=!1,A.relurl=void 0,A.fragment=void 0,A.index=void 0,A.stats=new w.LoadStats,A.duration=h.decimalFloatingPoint("DURATION"),A.gap=h.bool("GAP"),A.independent=h.bool("INDEPENDENT"),A.relurl=h.enumeratedString("URI"),A.fragment=y,A.index=t;var v=h.enumeratedString("BYTERANGE");return v&&A.setByteRange(v,C),C&&(A.fragOffset=C.fragOffset+C.duration),A}return x(u,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var y=this.elementaryStreams;return!!(y.audio||y.video||y.audiovideo)}}]),u}(m)},"./src/loader/key-loader.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return s});var U=L("./src/events.ts"),S=L("./src/errors.ts"),g=L("./src/utils/logger.ts"),s=function(){function d(p){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=p,this._registerListeners()}var w=d.prototype;return w._registerListeners=function(){this.hls.on(U.Events.KEY_LOADING,this.onKeyLoading,this)},w._unregisterListeners=function(){this.hls.off(U.Events.KEY_LOADING,this.onKeyLoading)},w.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var f=this.loaders[a];f&&f.destroy()}this.loaders={}},w.onKeyLoading=function(a,f){var x=f.frag,b=x.type,m=this.loaders[b];if(!x.decryptdata){g.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var O=x.decryptdata.uri;if(O!==this.decrypturl||this.decryptkey===null){var i=this.hls.config;if(m&&(g.logger.warn("abort previous key loader for type:"+b),m.abort()),!O){g.logger.warn("key uri is falsy");return}var r=i.loader,u=x.loader=this.loaders[b]=new r(i);this.decrypturl=O,this.decryptkey=null;var h={url:O,frag:x,responseType:"arraybuffer"},y={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:i.fragLoadingRetryDelay,maxRetryDelay:i.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};u.load(h,y,E)}else this.decryptkey&&(x.decryptdata.key=this.decryptkey,this.hls.trigger(U.Events.KEY_LOADED,{frag:x}))},w.loadsuccess=function(a,f,x){var b=x.frag;if(!b.decryptdata){g.logger.error("after key load, decryptdata unset");return}this.decryptkey=b.decryptdata.key=new Uint8Array(a.data),b.loader=null,delete this.loaders[b.type],this.hls.trigger(U.Events.KEY_LOADED,{frag:b})},w.loaderror=function(a,f){var x=f.frag,b=x.loader;b&&b.abort(),delete this.loaders[x.type],this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:x,response:a})},w.loadtimeout=function(a,f){var x=f.frag,b=x.loader;b&&b.abort(),delete this.loaders[x.type],this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:x})},d}()},"./src/loader/level-details.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"LevelDetails",function(){return d});var U=L("./src/polyfills/number.ts");function S(w,p){for(var a=0;af.endSN||x>0||x===0&&b>0,this.updated||this.advanced?this.misses=Math.floor(f.misses*.6):this.misses=f.misses+1,this.availabilityDelay=f.availabilityDelay},g(w,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(U.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||s}},{key:"drift",get:function(){var f=this.driftEndTime-this.driftStartTime;if(f>0){var x=this.driftEnd-this.driftStart;return x*1e3/f}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var f;return(f=this.partList)!==null&&f!==void 0&&f.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var f;return(f=this.fragments)!==null&&f!==void 0&&f.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var f;return(f=this.partList)!==null&&f!==void 0&&f.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var f;return(f=this.partList)!==null&&f!==void 0&&f.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),w}()},"./src/loader/level-key.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"LevelKey",function(){return d});var U=L("./node_modules/url-toolkit/src/url-toolkit.js"),S=L.n(U);function g(w,p){for(var a=0;a2){var l=o.shift()+".";return l+=parseInt(o.shift()).toString(16),l+=("000"+parseInt(o.shift()).toString(16)).substr(-4),l}return v},C.resolve=function(v,o){return S.buildAbsoluteURL(o,v,{alwaysNormalize:!0})},C.parseMasterPlaylist=function(v,o){var l=[],c={},M=!1;x.lastIndex=0;for(var P;(P=x.exec(v))!=null;)if(P[1]){var R=new p.AttrList(P[1]),k={attrs:R,bitrate:R.decimalInteger("AVERAGE-BANDWIDTH")||R.decimalInteger("BANDWIDTH"),name:R.NAME,url:C.resolve(P[2],o)},I=R.decimalResolution("RESOLUTION");I&&(k.width=I.width,k.height=I.height),h((R.CODECS||"").split(/[ ,]+/).filter(function(V){return V}),k),k.videoCodec&&k.videoCodec.indexOf("avc1")!==-1&&(k.videoCodec=C.convertAVC1ToAVCOTI(k.videoCodec)),l.push(k)}else if(P[3]){var F=new p.AttrList(P[3]);F["DATA-ID"]&&(M=!0,c[F["DATA-ID"]]=F)}return{levels:l,sessionData:M?c:null}},C.parseMasterPlaylistMedia=function(v,o,l,c){c===void 0&&(c=[]);var M,P=[],R=0;for(b.lastIndex=0;(M=b.exec(v))!==null;){var k=new p.AttrList(M[1]);if(k.TYPE===l){var I={attrs:k,bitrate:0,id:R++,groupId:k["GROUP-ID"],instreamId:k["INSTREAM-ID"],name:k.NAME||k.LANGUAGE||"",type:l,default:k.bool("DEFAULT"),autoselect:k.bool("AUTOSELECT"),forced:k.bool("FORCED"),lang:k.LANGUAGE,url:k.URI?C.resolve(k.URI,o):""};if(c.length){var F=C.findGroup(c,I.groupId)||c[0];y(I,F,"audioCodec"),y(I,F,"textCodec")}P.push(I)}}return P},C.parseLevelPlaylist=function(v,o,l,c,M){var P=new d.LevelDetails(o),R=P.fragments,k=null,I=0,F=0,V=0,W=0,G=null,J=new s.Fragment(c,o),X,te,ee,be=-1,ge=!1;for(m.lastIndex=0,P.m3u8=v;(X=m.exec(v))!==null;){ge&&(ge=!1,J=new s.Fragment(c,o),J.start=V,J.sn=I,J.cc=W,J.level=l,k&&(J.initSegment=k,J.rawProgramDateTime=k.rawProgramDateTime));var je=X[1];if(je){J.duration=parseFloat(je);var He=(" "+X[2]).slice(1);J.title=He||null,J.tagList.push(He?["INF",je,He]:["INF",je])}else if(X[3])Object(U.isFiniteNumber)(J.duration)&&(J.start=V,ee&&(J.levelkey=ee),J.sn=I,J.level=l,J.cc=W,J.urlId=M,R.push(J),J.relurl=(" "+X[3]).slice(1),t(J,G),G=J,V+=J.duration,I++,F=0,ge=!0);else if(X[4]){var nt=(" "+X[4]).slice(1);G?J.setByteRange(nt,G):J.setByteRange(nt)}else if(X[5])J.rawProgramDateTime=(" "+X[5]).slice(1),J.tagList.push(["PROGRAM-DATE-TIME",J.rawProgramDateTime]),be===-1&&(be=R.length);else{if(X=X[0].match(O),!X){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(te=1;te-1){a.logger.warn("Keyformat "+At+" is not supported from the manifest");continue}else if(At!=="identity")continue;Le&&(ee=w.LevelKey.fromURL(o,Fe),Fe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Le)>=0&&(ee.method=Le,ee.keyFormat=At,at&&(ee.keyID=at),Ve&&(ee.keyFormatVersions=Ve),ee.iv=Pe));break}case"START":{var tn=new p.AttrList(he),Qt=tn.decimalFloatingPoint("TIME-OFFSET");Object(U.isFiniteNumber)(Qt)&&(P.startTimeOffset=Qt);break}case"MAP":{var Cn=new p.AttrList(he);J.relurl=Cn.URI,Cn.BYTERANGE&&J.setByteRange(Cn.BYTERANGE),J.level=l,J.sn="initSegment",ee&&(J.levelkey=ee),J.initSegment=null,k=J,ge=!0;break}case"SERVER-CONTROL":{var Un=new p.AttrList(he);P.canBlockReload=Un.bool("CAN-BLOCK-RELOAD"),P.canSkipUntil=Un.optionalFloat("CAN-SKIP-UNTIL",0),P.canSkipDateRanges=P.canSkipUntil>0&&Un.bool("CAN-SKIP-DATERANGES"),P.partHoldBack=Un.optionalFloat("PART-HOLD-BACK",0),P.holdBack=Un.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var mt=new p.AttrList(he);P.partTarget=mt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var lt=P.partList;lt||(lt=P.partList=[]);var Ht=F>0?lt[lt.length-1]:void 0,sn=F++,Tt=new s.Part(new p.AttrList(he),J,o,sn,Ht);lt.push(Tt),J.duration+=Tt.duration;break}case"PRELOAD-HINT":{var wt=new p.AttrList(he);P.preloadHint=wt;break}case"RENDITION-REPORT":{var Qe=new p.AttrList(he);P.renditionReports=P.renditionReports||[],P.renditionReports.push(Qe);break}default:a.logger.warn("line parsed but not handled: "+X);break}}}G&&!G.relurl?(R.pop(),V-=G.duration,P.partList&&(P.fragmentHint=G)):P.partList&&(t(J,G),J.cc=W,P.fragmentHint=J);var Je=R.length,Xe=R[0],Oe=R[Je-1];if(V+=P.skippedSegments*P.targetduration,V>0&&Je&&Oe){P.averagetargetduration=V/Je;var Ae=Oe.sn;P.endSN=Ae!=="initSegment"?Ae:0,Xe&&(P.startCC=Xe.cc,Xe.initSegment||P.fragments.every(function(ye){return ye.relurl&&r(ye.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),J=new s.Fragment(c,o),J.relurl=Oe.relurl,J.level=l,J.sn="initSegment",Xe.initSegment=J,P.needSidxRanges=!0))}else P.endSN=0,P.startCC=0;return P.fragmentHint&&(V+=P.fragmentHint.duration),P.totalduration=V,P.endCC=W,be>0&&E(R,be),P},C}();function h(C,A){["video","audio","text"].forEach(function(v){var o=C.filter(function(c){return Object(f.isCodecType)(c,v)});if(o.length){var l=o.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});A[v+"Codec"]=l.length>0?l[0]:o[0],C=C.filter(function(c){return o.indexOf(c)===-1})}}),A.unknownCodecs=C}function y(C,A,v){var o=A[v];o&&(C[v]=o)}function E(C,A){for(var v=C[A],o=A;o--;){var l=C[o];if(!l)return;l.programDateTime=v.programDateTime-l.duration*1e3,v=l}}function t(C,A){C.rawProgramDateTime?C.programDateTime=Date.parse(C.rawProgramDateTime):A!=null&&A.programDateTime&&(C.programDateTime=A.endProgramDateTime),Object(U.isFiniteNumber)(C.programDateTime)||(C.programDateTime=null,C.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/polyfills/number.ts"),S=L("./src/events.ts"),g=L("./src/errors.ts"),s=L("./src/utils/logger.ts"),d=L("./src/utils/mp4-tools.ts"),w=L("./src/loader/m3u8-parser.ts"),p=L("./src/types/loader.ts"),a=L("./src/utils/attr-list.ts");function f(m){var O=m.type;switch(O){case p.PlaylistContextType.AUDIO_TRACK:return p.PlaylistLevelType.AUDIO;case p.PlaylistContextType.SUBTITLE_TRACK:return p.PlaylistLevelType.SUBTITLE;default:return p.PlaylistLevelType.MAIN}}function x(m,O){var i=m.url;return(i===void 0||i.indexOf("data:")===0)&&(i=O.url),i}var b=function(){function m(i){this.hls=void 0,this.loaders=Object.create(null),this.hls=i,this.registerListeners()}var O=m.prototype;return O.registerListeners=function(){var r=this.hls;r.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(S.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(S.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},O.unregisterListeners=function(){var r=this.hls;r.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(S.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(S.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},O.createInternalLoader=function(r){var u=this.hls.config,h=u.pLoader,y=u.loader,E=h||y,t=new E(u);return r.loader=t,this.loaders[r.type]=t,t},O.getInternalLoader=function(r){return this.loaders[r.type]},O.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},O.destroyInternalLoaders=function(){for(var r in this.loaders){var u=this.loaders[r];u&&u.destroy(),this.resetInternalLoader(r)}},O.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},O.onManifestLoading=function(r,u){var h=u.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:p.PlaylistContextType.MANIFEST,url:h,deliveryDirectives:null})},O.onLevelLoading=function(r,u){var h=u.id,y=u.level,E=u.url,t=u.deliveryDirectives;this.load({id:h,groupId:null,level:y,responseType:"text",type:p.PlaylistContextType.LEVEL,url:E,deliveryDirectives:t})},O.onAudioTrackLoading=function(r,u){var h=u.id,y=u.groupId,E=u.url,t=u.deliveryDirectives;this.load({id:h,groupId:y,level:null,responseType:"text",type:p.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:t})},O.onSubtitleTrackLoading=function(r,u){var h=u.id,y=u.groupId,E=u.url,t=u.deliveryDirectives;this.load({id:h,groupId:y,level:null,responseType:"text",type:p.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:t})},O.load=function(r){var u,h=this.hls.config,y=this.getInternalLoader(r);if(y){var E=y.context;if(E&&E.url===r.url){s.logger.trace("[playlist-loader]: playlist request ongoing");return}s.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),y.abort()}var t,C,A,v;switch(r.type){case p.PlaylistContextType.MANIFEST:t=h.manifestLoadingMaxRetry,C=h.manifestLoadingTimeOut,A=h.manifestLoadingRetryDelay,v=h.manifestLoadingMaxRetryTimeout;break;case p.PlaylistContextType.LEVEL:case p.PlaylistContextType.AUDIO_TRACK:case p.PlaylistContextType.SUBTITLE_TRACK:t=0,C=h.levelLoadingTimeOut;break;default:t=h.levelLoadingMaxRetry,C=h.levelLoadingTimeOut,A=h.levelLoadingRetryDelay,v=h.levelLoadingMaxRetryTimeout;break}if(y=this.createInternalLoader(r),(u=r.deliveryDirectives)!==null&&u!==void 0&&u.part){var o;if(r.type===p.PlaylistContextType.LEVEL&&r.level!==null?o=this.hls.levels[r.level].details:r.type===p.PlaylistContextType.AUDIO_TRACK&&r.id!==null?o=this.hls.audioTracks[r.id].details:r.type===p.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(o=this.hls.subtitleTracks[r.id].details),o){var l=o.partTarget,c=o.targetduration;l&&c&&(C=Math.min(Math.max(l*3,c*.8)*1e3,C))}}var M={timeout:C,maxRetry:t,retryDelay:A,maxRetryDelay:v,highWaterMark:0},P={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};y.load(r,M,P)},O.loadsuccess=function(r,u,h,y){if(y===void 0&&(y=null),h.isSidxRequest){this.handleSidxRequest(r,h),this.handlePlaylistLoaded(r,u,h,y);return}this.resetInternalLoader(h.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,h,"no EXTM3U delimiter",y);return}u.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,u,h,y):this.handleMasterPlaylist(r,u,h,y)},O.loaderror=function(r,u,h){h===void 0&&(h=null),this.handleNetworkError(u,h,!1,r)},O.loadtimeout=function(r,u,h){h===void 0&&(h=null),this.handleNetworkError(u,h,!0)},O.handleMasterPlaylist=function(r,u,h,y){var E=this.hls,t=r.data,C=x(r,h),A=w.default.parseMasterPlaylist(t,C),v=A.levels,o=A.sessionData;if(!v.length){this.handleManifestParsingError(r,h,"no level found in manifest",y);return}var l=v.map(function(I){return{id:I.attrs.AUDIO,audioCodec:I.audioCodec}}),c=v.map(function(I){return{id:I.attrs.SUBTITLES,textCodec:I.textCodec}}),M=w.default.parseMasterPlaylistMedia(t,C,"AUDIO",l),P=w.default.parseMasterPlaylistMedia(t,C,"SUBTITLES",c),R=w.default.parseMasterPlaylistMedia(t,C,"CLOSED-CAPTIONS");if(M.length){var k=M.some(function(I){return!I.url});!k&&v[0].audioCodec&&!v[0].attrs.AUDIO&&(s.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),M.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}E.trigger(S.Events.MANIFEST_LOADED,{levels:v,audioTracks:M,subtitles:P,captions:R,url:C,stats:u,networkDetails:y,sessionData:o})},O.handleTrackOrLevelPlaylist=function(r,u,h,y){var E=this.hls,t=h.id,C=h.level,A=h.type,v=x(r,h),o=Object(U.isFiniteNumber)(t)?t:0,l=Object(U.isFiniteNumber)(C)?C:o,c=f(h),M=w.default.parseLevelPlaylist(r.data,v,l,c,o);if(!M.fragments.length){E.trigger(S.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:v,reason:"no fragments found in level",level:typeof h.level=="number"?h.level:void 0});return}if(A===p.PlaylistContextType.MANIFEST){var P={attrs:new a.AttrList({}),bitrate:0,details:M,name:"",url:v};E.trigger(S.Events.MANIFEST_LOADED,{levels:[P],audioTracks:[],url:v,stats:u,networkDetails:y,sessionData:null})}if(u.parsing.end=performance.now(),M.needSidxRanges){var R,k=(R=M.fragments[0].initSegment)===null||R===void 0?void 0:R.url;this.load({url:k,isSidxRequest:!0,type:A,level:C,levelDetails:M,id:t,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}h.levelDetails=M,this.handlePlaylistLoaded(r,u,h,y)},O.handleSidxRequest=function(r,u){var h=Object(d.parseSegmentIndex)(new Uint8Array(r.data));if(!h)return;var y=h.references,E=u.levelDetails;y.forEach(function(t,C){var A=t.info,v=E.fragments[C];v.byteRange.length===0&&v.setByteRange(String(1+A.end-A.start)+"@"+String(A.start)),v.initSegment&&v.initSegment.setByteRange(String(h.moovEndOffset)+"@0")})},O.handleManifestParsingError=function(r,u,h,y){this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:u.type===p.PlaylistContextType.MANIFEST,url:r.url,reason:h,response:r,context:u,networkDetails:y})},O.handleNetworkError=function(r,u,h,y){h===void 0&&(h=!1),s.logger.warn("[playlist-loader]: A network "+(h?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=g.ErrorDetails.UNKNOWN,t=!1,C=this.getInternalLoader(r);switch(r.type){case p.PlaylistContextType.MANIFEST:E=h?g.ErrorDetails.MANIFEST_LOAD_TIMEOUT:g.ErrorDetails.MANIFEST_LOAD_ERROR,t=!0;break;case p.PlaylistContextType.LEVEL:E=h?g.ErrorDetails.LEVEL_LOAD_TIMEOUT:g.ErrorDetails.LEVEL_LOAD_ERROR,t=!1;break;case p.PlaylistContextType.AUDIO_TRACK:E=h?g.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:g.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,t=!1;break;case p.PlaylistContextType.SUBTITLE_TRACK:E=h?g.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:g.ErrorDetails.SUBTITLE_LOAD_ERROR,t=!1;break}C&&this.resetInternalLoader(r.type);var A={type:g.ErrorTypes.NETWORK_ERROR,details:E,fatal:t,url:r.url,loader:C,context:r,networkDetails:u};y&&(A.response=y),this.hls.trigger(S.Events.ERROR,A)},O.handlePlaylistLoaded=function(r,u,h,y){var E=h.type,t=h.level,C=h.id,A=h.groupId,v=h.loader,o=h.levelDetails,l=h.deliveryDirectives;if(!(o!=null&&o.targetduration)){this.handleManifestParsingError(r,h,"invalid target duration",y);return}if(!v)return;o.live&&(v.getCacheAge&&(o.ageHeader=v.getCacheAge()||0),(!v.getCacheAge||isNaN(o.ageHeader))&&(o.ageHeader=0));switch(E){case p.PlaylistContextType.MANIFEST:case p.PlaylistContextType.LEVEL:this.hls.trigger(S.Events.LEVEL_LOADED,{details:o,level:t||0,id:C||0,stats:u,networkDetails:y,deliveryDirectives:l});break;case p.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(S.Events.AUDIO_TRACK_LOADED,{details:o,id:C||0,groupId:A||"",stats:u,networkDetails:y,deliveryDirectives:l});break;case p.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(S.Events.SUBTITLE_TRACK_LOADED,{details:o,id:C||0,groupId:A||"",stats:u,networkDetails:y,deliveryDirectives:l});break}},m}();j.default=b},"./src/polyfills/number.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"isFiniteNumber",function(){return U}),L.d(j,"MAX_SAFE_INTEGER",function(){return S});var U=Number.isFinite||function(g){return typeof g=="number"&&isFinite(g)},S=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Y,j,L){"use strict";L.r(j);var U=function(){function S(){}return S.getSilentFrame=function(s,d){switch(s){case"mp4a.40.2":if(d===1)return new Uint8Array([0,200,0,128,35,128]);if(d===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(d===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(d===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(d===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(d===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(d===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(d===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(d===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},S}();j.default=U},"./src/remux/mp4-generator.ts":function(Y,j,L){"use strict";L.r(j);var U=Math.pow(2,32)-1,S=function(){function g(){}return g.init=function(){g.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var d;for(d in g.types)g.types.hasOwnProperty(d)&&(g.types[d]=[d.charCodeAt(0),d.charCodeAt(1),d.charCodeAt(2),d.charCodeAt(3)]);var w=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),p=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);g.HDLR_TYPES={video:w,audio:p};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),f=new Uint8Array([0,0,0,0,0,0,0,0]);g.STTS=g.STSC=g.STCO=f,g.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),g.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),g.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),g.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var x=new Uint8Array([105,115,111,109]),b=new Uint8Array([97,118,99,49]),m=new Uint8Array([0,0,0,1]);g.FTYP=g.box(g.types.ftyp,x,m,x,b),g.DINF=g.box(g.types.dinf,g.box(g.types.dref,a))},g.box=function(d){for(var w=8,p=arguments.length,a=new Array(p>1?p-1:0),f=1;f>24&255,m[1]=w>>16&255,m[2]=w>>8&255,m[3]=w&255,m.set(d,4),x=0,w=8;x>24&255,d>>16&255,d>>8&255,d&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},g.mdia=function(d){return g.box(g.types.mdia,g.mdhd(d.timescale,d.duration),g.hdlr(d.type),g.minf(d))},g.mfhd=function(d){return g.box(g.types.mfhd,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255]))},g.minf=function(d){return d.type==="audio"?g.box(g.types.minf,g.box(g.types.smhd,g.SMHD),g.DINF,g.stbl(d)):g.box(g.types.minf,g.box(g.types.vmhd,g.VMHD),g.DINF,g.stbl(d))},g.moof=function(d,w,p){return g.box(g.types.moof,g.mfhd(d),g.traf(p,w))},g.moov=function(d){for(var w=d.length,p=[];w--;)p[w]=g.trak(d[w]);return g.box.apply(null,[g.types.moov,g.mvhd(d[0].timescale,d[0].duration)].concat(p).concat(g.mvex(d)))},g.mvex=function(d){for(var w=d.length,p=[];w--;)p[w]=g.trex(d[w]);return g.box.apply(null,[g.types.mvex].concat(p))},g.mvhd=function(d,w){w*=d;var p=Math.floor(w/(U+1)),a=Math.floor(w%(U+1)),f=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,d>>24&255,d>>16&255,d>>8&255,d&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return g.box(g.types.mvhd,f)},g.sdtp=function(d){var w=d.samples||[],p=new Uint8Array(4+w.length),a,f;for(a=0;a>>8&255),w.push(x&255),w=w.concat(Array.prototype.slice.call(f));for(a=0;a>>8&255),p.push(x&255),p=p.concat(Array.prototype.slice.call(f));var b=g.box(g.types.avcC,new Uint8Array([1,w[3],w[4],w[5],252|3,224|d.sps.length].concat(w).concat([d.pps.length]).concat(p))),m=d.width,O=d.height,i=d.pixelRatio[0],r=d.pixelRatio[1];return g.box(g.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,m>>8&255,m&255,O>>8&255,O&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),b,g.box(g.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),g.box(g.types.pasp,new Uint8Array([i>>24,i>>16&255,i>>8&255,i&255,r>>24,r>>16&255,r>>8&255,r&255])))},g.esds=function(d){var w=d.config.length;return new Uint8Array([0,0,0,0,3,23+w,0,1,0,4,15+w,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([w]).concat(d.config).concat([6,1,2]))},g.mp4a=function(d){var w=d.samplerate;return g.box(g.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,d.channelCount,0,16,0,0,0,0,w>>8&255,w&255,0,0]),g.box(g.types.esds,g.esds(d)))},g.mp3=function(d){var w=d.samplerate;return g.box(g.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,d.channelCount,0,16,0,0,0,0,w>>8&255,w&255,0,0]))},g.stsd=function(d){return d.type==="audio"?!d.isAAC&&d.codec==="mp3"?g.box(g.types.stsd,g.STSD,g.mp3(d)):g.box(g.types.stsd,g.STSD,g.mp4a(d)):g.box(g.types.stsd,g.STSD,g.avc1(d))},g.tkhd=function(d){var w=d.id,p=d.duration*d.timescale,a=d.width,f=d.height,x=Math.floor(p/(U+1)),b=Math.floor(p%(U+1));return g.box(g.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,w>>24&255,w>>16&255,w>>8&255,w&255,0,0,0,0,x>>24,x>>16&255,x>>8&255,x&255,b>>24,b>>16&255,b>>8&255,b&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,f>>8&255,f&255,0,0]))},g.traf=function(d,w){var p=g.sdtp(d),a=d.id,f=Math.floor(w/(U+1)),x=Math.floor(w%(U+1));return g.box(g.types.traf,g.box(g.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),g.box(g.types.tfdt,new Uint8Array([1,0,0,0,f>>24,f>>16&255,f>>8&255,f&255,x>>24,x>>16&255,x>>8&255,x&255])),g.trun(d,p.length+16+20+8+16+8+8),p)},g.trak=function(d){return d.duration=d.duration||4294967295,g.box(g.types.trak,g.tkhd(d),g.mdia(d))},g.trex=function(d){var w=d.id;return g.box(g.types.trex,new Uint8Array([0,0,0,0,w>>24,w>>16&255,w>>8&255,w&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},g.trun=function(d,w){var p=d.samples||[],a=p.length,f=12+16*a,x=new Uint8Array(f),b,m,O,i,r,u;for(w+=8+f,x.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,w>>>24&255,w>>>16&255,w>>>8&255,w&255],0),b=0;b>>24&255,O>>>16&255,O>>>8&255,O&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,u>>>24&255,u>>>16&255,u>>>8&255,u&255],12+16*b);return g.box(g.types.trun,x)},g.initSegment=function(d){g.types||g.init();var w=g.moov(d),p=new Uint8Array(g.FTYP.byteLength+w.byteLength);return p.set(g.FTYP),p.set(w,g.FTYP.byteLength),p},g}();S.types=void 0,S.HDLR_TYPES=void 0,S.STTS=void 0,S.STSC=void 0,S.STCO=void 0,S.STSZ=void 0,S.VMHD=void 0,S.SMHD=void 0,S.STSD=void 0,S.FTYP=void 0,S.DINF=void 0,j.default=S},"./src/remux/mp4-remuxer.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return u}),L.d(j,"normalizePts",function(){return h});var U=L("./src/polyfills/number.ts"),S=L("./src/remux/aac-helper.ts"),g=L("./src/remux/mp4-generator.ts"),s=L("./src/events.ts"),d=L("./src/errors.ts"),w=L("./src/utils/logger.ts"),p=L("./src/types/loader.ts"),a=L("./src/utils/timescale-conversion.ts");function f(){return f=Object.assign||function(C){for(var A=1;A0?M:P.pts},o[0].pts);return l&&w.logger.debug("PTS rollover detected"),c},A.remux=function(o,l,c,M,P,R,k,I){var F,V,W,G,J,X,te=P,ee=P,be=o.pid>-1,ge=l.pid>-1,je=l.samples.length,He=o.samples.length>0,nt=je>1,Ge=(!be||He)&&(!ge||nt)||this.ISGenerated||k;if(Ge){this.ISGenerated||(W=this.generateIS(o,l,P));var he=this.isVideoContiguous,ce=-1;if(nt&&(ce=y(l.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if(X=!0,ce>0){w.logger.warn("[mp4-remuxer]: Dropped "+ce+" out of "+je+" video samples due to a missing keyframe");var Ee=this.getVideoStartPts(l.samples);l.samples=l.samples.slice(ce),l.dropped+=ce,ee+=(l.samples[0].pts-Ee)/(l.timescale||9e4)}else ce===-1&&(w.logger.warn("[mp4-remuxer]: No keyframe found out of "+je+" video samples"),X=!1);if(this.ISGenerated){if(He&&nt){var fe=this.getVideoStartPts(l.samples),Ne=h(o.samples[0].pts,fe)-fe,Ce=Ne/l.inputTimeScale;te+=Math.max(0,Ce),ee+=Math.max(0,-Ce)}if(He){if(o.samplerate||(w.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),W=this.generateIS(o,l,P)),V=this.remuxAudio(o,te,this.isAudioContiguous,R,ge||nt||I===p.PlaylistLevelType.AUDIO?ee:void 0),nt){var xe=V?V.endPTS-V.startPTS:0;l.inputTimeScale||(w.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),W=this.generateIS(o,l,P)),F=this.remuxVideo(l,ee,he,xe)}}else nt&&(F=this.remuxVideo(l,ee,he,0));F&&(F.firstKeyFrame=ce,F.independent=ce!==-1)}}return this.ISGenerated&&(c.samples.length&&(J=this.remuxID3(c,P)),M.samples.length&&(G=this.remuxText(M,P))),{audio:V,video:F,initSegment:W,independent:X,text:G,id3:J}},A.generateIS=function(o,l,c){var M=o.samples,P=l.samples,R=this.typeSupported,k={},I=!Object(U.isFiniteNumber)(this._initPTS),F="audio/mp4",V,W,G;if(I&&(V=W=Infinity),o.config&&M.length&&(o.timescale=o.samplerate,o.isAAC||(R.mpeg?(F="audio/mpeg",o.codec=""):R.mp3&&(o.codec="mp3")),k.audio={id:"audio",container:F,codec:o.codec,initSegment:!o.isAAC&&R.mpeg?new Uint8Array(0):g.default.initSegment([o]),metadata:{channelCount:o.channelCount}},I&&(G=o.inputTimeScale,V=W=M[0].pts-Math.round(G*c))),l.sps&&l.pps&&P.length&&(l.timescale=l.inputTimeScale,k.video={id:"main",container:"video/mp4",codec:l.codec,initSegment:g.default.initSegment([l]),metadata:{width:l.width,height:l.height}},I)){G=l.inputTimeScale;var J=this.getVideoStartPts(P),X=Math.round(G*c);W=Math.min(W,h(P[0].dts,J)-X),V=Math.min(V,J-X)}if(Object.keys(k).length)return this.ISGenerated=!0,I&&(this._initPTS=V,this._initDTS=W),{tracks:k,initPTS:V,timescale:G}},A.remuxVideo=function(o,l,c,M){var P=o.inputTimeScale,R=o.samples,k=[],I=R.length,F=this._initPTS,V=this.nextAvcDts,W=8,G,J,X,te=Number.POSITIVE_INFINITY,ee=Number.NEGATIVE_INFINITY,be=0,ge=!1;if(!c||V===null){var je=l*P,He=R[0].pts-h(R[0].dts,R[0].pts);V=je-He}for(var nt=0;ntGe.pts){var he=9e4*.2;be=Math.max(Math.min(be,Ge.pts-Ge.dts),-1*he)}Ge.dts0?nt-1:nt].dts&&(ge=!0)}ge&&R.sort(function(mn,pe){var Gt=mn.dts-pe.dts,Lt=mn.pts-pe.pts;return Gt||Lt}),J=R[0].dts,X=R[R.length-1].dts;var ce=Math.round((X-J)/(I-1));if(be<0){if(bece,ze=Ce<-1;if(xe||ze){xe?w.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Ce,!0)+" ms ("+Ce+"dts) hole between fragments detected, filling it"):w.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Ce,!0)+" ms ("+Ce+"dts) overlapping between fragments detected"),J=V;var Le=R[0].pts-Ce;R[0].dts=J,R[0].pts=Le,w.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(Le,!0)+"/"+Object(a.toMsFromMpegTsClock)(J,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Ce,!0)+" ms")}}r&&(J=Math.max(0,J));for(var Fe=0,Pe=0,Ve=0;Ve0?lt-1:lt].dts;if(Ae.stretchShortVideoTrack&&this.nextAudioPts!==null){var Se=Math.floor(Ae.maxBufferHole*P),dt=(M?te+M*P:this.nextAudioPts)-Ht.pts;dt>Se?(G=dt-ye,G<0&&(G=ye),w.logger.log("[mp4-remuxer]: It is approximately "+dt/90+" ms to the next segment; using duration "+G/90+" ms for the last video frame.")):G=ye}else G=ye}var et=Math.round(Ht.pts-Ht.dts);k.push(new E(Ht.key,G,Tt,et))}if(k.length&&O&&O<70){var xt=k[0].flags;xt.dependsOn=2,xt.isNonSync=0}console.assert(G!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=V=X+G,this.isVideoContiguous=!0;var xn=g.default.moof(o.sequenceNumber++,J,f({},o,{samples:k})),Dt="video",yt={data1:xn,data2:Un,startPTS:te/P,endPTS:(ee+G)/P,startDTS:J/P,endDTS:V/P,type:Dt,hasAudio:!1,hasVideo:!0,nb:k.length,dropped:o.dropped};return o.samples=[],o.dropped=0,console.assert(Un.length,"MDAT length must not be zero"),yt},A.remuxAudio=function(o,l,c,M,P){var R=o.inputTimeScale,k=o.samplerate?o.samplerate:R,I=R/k,F=o.isAAC?b:m,V=F*I,W=this._initPTS,G=!o.isAAC&&this.typeSupported.mpeg,J=[],X=o.samples,te=G?0:8,ee=this.nextAudioPts||-1,be=l*R;if(this.isAudioContiguous=c=c||X.length&&ee>0&&(M&&Math.abs(be-ee)<9e3||Math.abs(h(X[0].pts-W,be)-ee)<20*V),X.forEach(function(Xe){Xe.pts=h(Xe.pts-W,be)}),!c||ee<0){if(X=X.filter(function(Xe){return Xe.pts>=0}),!X.length)return;P===0?ee=0:M?ee=Math.max(0,be):ee=X[0].pts}if(o.isAAC)for(var ge=P!==void 0,je=this.config.maxAudioFramesDrift,He=0,nt=ee;He=je*V&&Ee0){Pe+=te;try{Fe=new Uint8Array(Pe)}catch(Xe){this.observer.emit(s.Events.ERROR,s.Events.ERROR,{type:d.ErrorTypes.MUX_ERROR,details:d.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Pe,reason:"fail allocating audio mdat "+Pe});return}if(!G){var Un=new DataView(Fe.buffer);Un.setUint32(0,Pe),Fe.set(g.default.types.mdat,4)}}else return;Fe.set(tn,te);var mt=tn.byteLength;te+=mt,J.push(new E(!0,F,mt,0)),Le=Qt}var lt=J.length;if(!lt)return;var Ht=J[J.length-1];this.nextAudioPts=ee=Le+I*Ht.duration;var sn=G?new Uint8Array(0):g.default.moof(o.sequenceNumber++,ze/I,f({},o,{samples:J}));o.samples=[];var Tt=ze/R,wt=ee/R,Qe="audio",Je={data1:sn,data2:Fe,startPTS:Tt,endPTS:wt,startDTS:Tt,endDTS:wt,type:Qe,hasAudio:!0,hasVideo:!1,nb:lt};return this.isAudioContiguous=!0,console.assert(Fe.length,"MDAT length must not be zero"),Je},A.remuxEmptyAudio=function(o,l,c,M){var P=o.inputTimeScale,R=o.samplerate?o.samplerate:P,k=P/R,I=this.nextAudioPts,F=(I!==null?I:M.startDTS*P)+this._initDTS,V=M.endDTS*P+this._initDTS,W=k*b,G=Math.ceil((V-F)/W),J=S.default.getSilentFrame(o.manifestCodec||o.codec,o.channelCount);if(w.logger.warn("[mp4-remuxer]: remux empty Audio"),!J){w.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var X=[],te=0;te4294967296;)C+=v;return C}function y(C){for(var A=0;A0?this.lastEndDTS=o:(s.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var l=!!C.audio,c=!!C.video,M="";l&&(M+="audio"),c&&(M+="video");var P={data1:E,startPTS:v,startDTS:v,endPTS:o,endDTS:o,type:M,hasAudio:l,hasVideo:c,nb:1,dropped:0};return y.audio=P.type==="audio"?P:void 0,y.video=P.type!=="audio"?P:void 0,y.text=i,y.id3=O,y.initSegment=t,y},a}(),w=function(f,x,b){return Object(S.getStartDTS)(f,x)-b};function p(a,f){var x=a==null?void 0:a.codec;return x&&x.length>4?x:x==="hvc1"?"hvc1.1.c.L120.90":x==="av01"?"av01.0.04M.08":x==="avc1"||f===g.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}j.default=d},"./src/task-loop.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return U});var U=function(){function S(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var g=S.prototype;return g.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},g.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},g.onHandlerDestroyed=function(){},g.hasInterval=function(){return!!this._tickInterval},g.hasNextTick=function(){return!!this._tickTimer},g.setInterval=function(d){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,d),!0)},g.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},g.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},g.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},g.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},g.doTick=function(){},S}()},"./src/types/cmcd.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"CMCDVersion",function(){return U}),L.d(j,"CMCDObjectType",function(){return S}),L.d(j,"CMCDStreamingFormat",function(){return g}),L.d(j,"CMCDStreamType",function(){return s});var U=1,S;(function(d){d.MANIFEST="m",d.AUDIO="a",d.VIDEO="v",d.MUXED="av",d.INIT="i",d.CAPTION="c",d.TIMED_TEXT="tt",d.KEY="k",d.OTHER="o"})(S||(S={}));var g;(function(d){d.DASH="d",d.HLS="h",d.SMOOTH="s",d.OTHER="o"})(g||(g={}));var s;(function(d){d.VOD="v",d.LIVE="l"})(s||(s={}))},"./src/types/level.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"HlsSkip",function(){return g}),L.d(j,"getSkipValue",function(){return s}),L.d(j,"HlsUrlParameters",function(){return d}),L.d(j,"Level",function(){return w});function U(p,a){for(var f=0;fNumber.MAX_SAFE_INTEGER?Infinity:a},d.hexadecimalInteger=function(p){if(this[p]){var a=(this[p]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var f=new Uint8Array(a.length/2),x=0;xNumber.MAX_SAFE_INTEGER?Infinity:a},d.decimalFloatingPoint=function(p){return parseFloat(this[p])},d.optionalFloat=function(p,a){var f=this[p];return f?parseFloat(f):a},d.enumeratedString=function(p){return this[p]},d.bool=function(p){return this[p]==="YES"},d.decimalResolution=function(p){var a=U.exec(this[p]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},s.parseAttrList=function(p){var a,f={},x='"';for(S.lastIndex=0;(a=S.exec(p))!==null;){var b=a[2];b.indexOf(x)===0&&b.lastIndexOf(x)===b.length-1&&(b=b.slice(1,-1)),f[a[1]]=b}return f},s}()},"./src/utils/binary-search.ts":function(Y,j,L){"use strict";L.r(j);var U={search:function(g,s){for(var d=0,w=g.length-1,p=null,a=null;d<=w;){p=(d+w)/2|0,a=g[p];var f=s(a);if(f>0)d=p+1;else if(f<0)w=p-1;else return a}return null}};j.default=U},"./src/utils/buffer-helper.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"BufferHelper",function(){return g});var U=L("./src/utils/logger.ts"),S={length:0,start:function(){return 0},end:function(){return 0}},g=function(){function s(){}return s.isBuffered=function(w,p){try{if(w){for(var a=s.getBuffered(w),f=0;f=a.start(f)&&p<=a.end(f))return!0}}catch(x){}return!1},s.bufferInfo=function(w,p,a){try{if(w){var f=s.getBuffered(w),x=[],b;for(b=0;bm&&(f[b-1].end=w[x].end):f.push(w[x])}else f.push(w[x])}else f=w;for(var O=0,i,r=p,u=p,h=0;h=y&&p=c&&U.logger.log(this.time+" ["+c+"] "+M)},v}(),O=function(o){for(var l=[],c=0;cd&&(this.logger.log(b.DEBUG,"Too large cursor position "+this.pos),this.pos=d)},o.moveCursor=function(c){var M=this.pos+c;if(c>1)for(var P=this.pos+1;P=144&&this.backSpace();var M=g(c);if(this.pos>=d){this.logger.log(b.ERROR,"Cannot insert "+c.toString(16)+" ("+M+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(M,this.currPenState),this.moveCursor(1)},o.clearFromPos=function(c){var M;for(M=c;M0&&(c?P="["+M.join(" | ")+"]":P=M.join(` -`)),P},o.getTextAndFormat=function(){return this.rows},v}(),y=function(){function v(l,c,M){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=l,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new h(M),this.nonDisplayedMemory=new h(M),this.lastOutputScreen=new h(M),this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=M}var o=v.prototype;return o.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},o.getHandler=function(){return this.outputFilter},o.setHandler=function(c){this.outputFilter=c},o.setPAC=function(c){this.writeScreen.setPAC(c)},o.setBkgData=function(c){this.writeScreen.setBkgData(c)},o.setMode=function(c){if(c===this.mode)return;this.mode=c,this.logger.log(b.INFO,"MODE="+c),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=c},o.insertChars=function(c){for(var M=0;M=46,M.italics)M.foreground="white";else{var P=Math.floor(c/2)-16,R=["white","green","blue","cyan","red","yellow","magenta"];M.foreground=R[P]}this.logger.log(b.INFO,"MIDROW: "+JSON.stringify(M)),this.writeScreen.setPen(M)},o.outputDataUpdate=function(c){c===void 0&&(c=!1);var M=this.logger.time;if(M===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=M:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,M,this.lastOutputScreen),c&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:M),this.lastOutputScreen.copy(this.displayedMemory))},o.cueSplitAtTime=function(c){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,c,this.displayedMemory),this.cueStartTime=c))},v}(),E=function(){function v(l,c,M){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var P=new m;this.channels=[null,new y(l,c,P),new y(l+1,M,P)],this.cmdHistory=A(),this.logger=P}var o=v.prototype;return o.getHandler=function(c){return this.channels[c].getHandler()},o.setHandler=function(c,M){this.channels[c].setHandler(M)},o.addData=function(c,M){var P,R,k,I=!1;this.logger.time=c;for(var F=0;F ("+O([R,k])+")"),P=this.parseCmd(R,k),P||(P=this.parseMidrow(R,k)),P||(P=this.parsePAC(R,k)),P||(P=this.parseBackgroundAttributes(R,k)),!P&&(I=this.parseChars(R,k),I)){var V=this.currentChannel;if(V&&V>0){var W=this.channels[V];W.insertChars(I)}else this.logger.log(b.WARNING,"No channel found yet. TEXT-MODE?")}!P&&!I&&this.logger.log(b.WARNING,"Couldn't parse cleaned data "+O([R,k])+" orig: "+O([M[F],M[F+1]]))}},o.parseCmd=function(c,M){var P=this.cmdHistory,R=(c===20||c===28||c===21||c===29)&&M>=32&&M<=47,k=(c===23||c===31)&&M>=33&&M<=35;if(!(R||k))return!1;if(C(c,M,P))return t(null,null,P),this.logger.log(b.DEBUG,"Repeated command ("+O([c,M])+") is dropped"),!0;var I=c===20||c===21||c===23?1:2,F=this.channels[I];return c===20||c===21||c===28||c===29?M===32?F.ccRCL():M===33?F.ccBS():M===34?F.ccAOF():M===35?F.ccAON():M===36?F.ccDER():M===37?F.ccRU(2):M===38?F.ccRU(3):M===39?F.ccRU(4):M===40?F.ccFON():M===41?F.ccRDC():M===42?F.ccTR():M===43?F.ccRTD():M===44?F.ccEDM():M===45?F.ccCR():M===46?F.ccENM():M===47&&F.ccEOC():F.ccTO(M-32),t(c,M,P),this.currentChannel=I,!0},o.parseMidrow=function(c,M){var P=0;if((c===17||c===25)&&M>=32&&M<=47){if(c===17?P=1:P=2,P!==this.currentChannel)return this.logger.log(b.ERROR,"Mismatch channel in midrow parsing"),!1;var R=this.channels[P];return R?(R.ccMIDROW(M),this.logger.log(b.DEBUG,"MIDROW ("+O([c,M])+")"),!0):!1}return!1},o.parsePAC=function(c,M){var P,R=this.cmdHistory,k=(c>=17&&c<=23||c>=25&&c<=31)&&M>=64&&M<=127,I=(c===16||c===24)&&M>=64&&M<=95;if(!(k||I))return!1;if(C(c,M,R))return t(null,null,R),!0;var F=c<=23?1:2;M>=64&&M<=95?P=F===1?w[c]:a[c]:P=F===1?p[c]:f[c];var V=this.channels[F];return V?(V.setPAC(this.interpretPAC(P,M)),t(c,M,R),this.currentChannel=F,!0):!1},o.interpretPAC=function(c,M){var P,R={color:null,italics:!1,indent:null,underline:!1,row:c};return M>95?P=M-96:P=M-64,R.underline=(P&1)===1,P<=13?R.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(P/2)]:P<=15?(R.italics=!0,R.color="white"):R.indent=Math.floor((P-16)/2)*4,R},o.parseChars=function(c,M){var P,R=null,k=null;if(c>=25?(P=2,k=c-8):(P=1,k=c),k>=17&&k<=19){var I;k===17?I=M+80:k===18?I=M+112:I=M+144,this.logger.log(b.INFO,"Special char '"+g(I)+"' in channel "+P),R=[I]}else c>=32&&c<=127&&(R=M===0?[c]:[c,M]);if(R){var F=O(R);this.logger.log(b.DEBUG,"Char codes = "+F.join(",")),t(c,M,this.cmdHistory)}return R},o.parseBackgroundAttributes=function(c,M){var P=(c===16||c===24)&&M>=32&&M<=47,R=(c===23||c===31)&&M>=45&&M<=47;if(!(P||R))return!1;var k,I={};c===16||c===24?(k=Math.floor((M-32)/2),I.background=x[k],M%2===1&&(I.background=I.background+"_semi")):M===45?I.background="transparent":(I.foreground="black",M===47&&(I.underline=!0));var F=c<=23?1:2,V=this.channels[F];return V.setBkgData(I),t(c,M,this.cmdHistory),!0},o.reset=function(){for(var c=0;c=16?r--:r++;var t=Object(U.fixLineBreaks)(u.trim()),C=Object(S.generateCueId)(a,f,t);(!p||!p.cues||!p.cues.getCueById(C))&&(O=new h(a,f,t),O.id=C,O.line=y+1,O.align="left",O.position=10+Math.min(80,Math.floor(r*8/32)*10),b.push(O))}return p&&b.length&&(b.sort(function(A,v){return A.line==="auto"||v.line==="auto"?0:A.line>8&&v.line>8?v.line-A.line:A.line-v.line}),b.forEach(function(A){return Object(g.addCueToTrack)(p,A)})),b}};j.default=d},"./src/utils/discontinuities.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"findFirstFragWithCC",function(){return s}),L.d(j,"shouldAlignOnDiscontinuities",function(){return d}),L.d(j,"findDiscontinuousReferenceFrag",function(){return w}),L.d(j,"adjustSlidingStart",function(){return a}),L.d(j,"alignStream",function(){return f}),L.d(j,"alignPDT",function(){return b}),L.d(j,"alignFragmentByPDTDelta",function(){return m}),L.d(j,"alignMediaPlaylistByPDT",function(){return O});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/logger.ts"),g=L("./src/controller/level-helper.ts");function s(i,r){for(var u=null,h=0,y=i.length;hu.startCC||i&&i.cc=this.minWeight_},s.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},s.destroy=function(){},g}();j.default=S},"./src/utils/ewma.ts":function(Y,j,L){"use strict";L.r(j);var U=function(){function S(s,d,w){d===void 0&&(d=0),w===void 0&&(w=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=s,this.alpha_=s?Math.exp(Math.log(.5)/s):0,this.estimate_=d,this.totalWeight_=w}var g=S.prototype;return g.sample=function(d,w){var p=Math.pow(this.alpha_,d);this.estimate_=w*(1-p)+p*this.estimate_,this.totalWeight_+=d},g.getTotalWeight=function(){return this.totalWeight_},g.getEstimate=function(){if(this.alpha_){var d=1-Math.pow(this.alpha_,this.totalWeight_);if(d)return this.estimate_/d}return this.estimate_},S}();j.default=U},"./src/utils/fetch-loader.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"fetchSupported",function(){return m});var U=L("./src/polyfills/number.ts"),S=L("./src/loader/load-stats.ts"),g=L("./src/demux/chunk-cache.ts");function s(h,y){h.prototype=Object.create(y.prototype),h.prototype.constructor=h,f(h,y)}function d(h){var y=typeof Map=="function"?new Map:void 0;return d=function(t){if(t===null||!a(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof y!="undefined"){if(y.has(t))return y.get(t);y.set(t,C)}function C(){return w(t,arguments,x(this).constructor)}return C.prototype=Object.create(t.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),f(C,t)},d(h)}function w(h,y,E){return p()?w=Reflect.construct:w=function(C,A,v){var o=[null];o.push.apply(o,A);var l=Function.bind.apply(C,o),c=new l;return v&&f(c,v.prototype),c},w.apply(null,arguments)}function p(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}function a(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function f(h,y){return f=Object.setPrototypeOf||function(t,C){return t.__proto__=C,t},f(h,y)}function x(h){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},x(h)}function b(){return b=Object.assign||function(h){for(var y=1;y=v&&o(C,A,l.flush(),t)):o(C,A,k,t),P()}).catch(function(){return Promise.reject()})};return M()},h}();function i(h,y){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:y,headers:new self.Headers(b({},h.headers))};return h.rangeEnd&&E.headers.set("Range","bytes="+h.rangeStart+"-"+String(h.rangeEnd-1)),E}function r(h,y){return new self.Request(h.url,y)}var u=function(h){s(y,h);function y(E,t,C){var A;return A=h.call(this,E)||this,A.code=void 0,A.details=void 0,A.code=t,A.details=C,A}return y}(d(Error));j.default=O},"./src/utils/imsc1-ttml-parser.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"IMSC1_CODEC",function(){return a}),L.d(j,"parseIMSC1",function(){return m});var U=L("./src/utils/mp4-tools.ts"),S=L("./src/utils/vttparser.ts"),g=L("./src/utils/vttcue.ts"),s=L("./src/demux/id3.ts"),d=L("./src/utils/timescale-conversion.ts"),w=L("./src/utils/webvtt-parser.ts");function p(){return p=Object.assign||function(v){for(var o=1;o"):U}function d(a){for(var f=arguments.length,x=new Array(f>1?f-1:0),b=1;b>24,y[E+1]=t>>16&255,y[E+2]=t>>8&255,y[E+3]=t&255}function f(y,E){var t=[];if(!E.length)return t;var C,A,v;"data"in y?(C=y.data,A=y.start,v=y.end):(C=y,A=0,v=C.byteLength);for(var o=A;o1?o+l:v;if(c===E[0])if(E.length===1)t.push({data:C,start:o+8,end:M});else{var P=f({data:C,start:o+8,end:M},E.slice(1));P.length&&s.apply(t,P)}o=M}return t}function x(y){var E=f(y,["moov"]),t=E[0],C=t?t.end:null,A=f(y,["sidx"]);if(!A||!A[0])return null;var v=[],o=A[0],l=o.data[0],c=l===0?8:16,M=p(o,c);c+=4;var P=0,R=0;l===0?c+=8:c+=16,c+=2;var k=o.end+R,I=w(o,c);c+=2;for(var F=0;F>>31;if(J===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var X=p(o,V);V+=4,v.push({referenceSize:G,subsegmentDuration:X,info:{duration:X/M,start:k,end:k+G-1}}),k+=G,V+=4,c=V}return{earliestPresentationTime:P,timescale:M,version:l,referencesCount:I,references:v,moovEndOffset:C}}function b(y){for(var E=[],t=f(y,["moov","trak"]),C=0;Cd)&&(this.startTime=d),this.endTime=w,this.screen=p,this.timelineController.createCaptionsTrack(this.trackName)},g.reset=function(){this.cueRanges=[]},S}()},"./src/utils/texttrack-utils.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"sendAddTrackEvent",function(){return S}),L.d(j,"addCueToTrack",function(){return g}),L.d(j,"clearCurrentCues",function(){return s}),L.d(j,"removeCuesInRange",function(){return d}),L.d(j,"getCuesInRange",function(){return p});var U=L("./src/utils/logger.ts");function S(a,f){var x;try{x=new Event("addtrack")}catch(b){x=document.createEvent("Event"),x.initEvent("addtrack",!1,!1)}x.track=a,f.dispatchEvent(x)}function g(a,f){var x=a.mode;if(x==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(f.id))try{if(a.addCue(f),!a.cues.getCueById(f.id))throw new Error("addCue is failed for: "+f)}catch(m){U.logger.debug("[texttrack-utils]: "+m);var b=new self.TextTrackCue(f.startTime,f.endTime,f.text);b.id=f.id,a.addCue(b)}x==="disabled"&&(a.mode=x)}function s(a){var f=a.mode;if(f==="disabled"&&(a.mode="hidden"),a.cues)for(var x=a.cues.length;x--;)a.removeCue(a.cues[x]);f==="disabled"&&(a.mode=f)}function d(a,f,x){var b=a.mode;if(b==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var m=p(a.cues,f,x),O=0;Oa[x].endTime)return-1;for(var b=0,m=x;b<=m;){var O=Math.floor((m+b)/2);if(fa[O].startTime&&b-1)for(var O=m,i=a.length;O=f&&r.endTime<=x)b.push(r);else if(r.startTime>x)return b}return b}},"./src/utils/time-ranges.ts":function(Y,j,L){"use strict";L.r(j);var U={toString:function(g){for(var s="",d=g.length,w=0;w1?f-1:0),b=1;b100)throw new Error("Position must be between 0 and 100.");v=P,this.hasBeenReset=!0}})),Object.defineProperty(b,"positionAlign",w({},m,{get:function(){return o},set:function(P){var R=d(P);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");o=R,this.hasBeenReset=!0}})),Object.defineProperty(b,"size",w({},m,{get:function(){return l},set:function(P){if(P<0||P>100)throw new Error("Size must be between 0 and 100.");l=P,this.hasBeenReset=!0}})),Object.defineProperty(b,"align",w({},m,{get:function(){return c},set:function(P){var R=d(P);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");c=R,this.hasBeenReset=!0}})),b.displayState=void 0}return p.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},p}()},"./src/utils/vttparser.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"parseTimeStamp",function(){return g}),L.d(j,"fixLineBreaks",function(){return f}),L.d(j,"VTTParser",function(){return x});var U=L("./src/utils/vttcue.ts"),S=function(){function b(){}var m=b.prototype;return m.decode=function(i,r){if(!i)return"";if(typeof i!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(i))},b}();function g(b){function m(i,r,u,h){return(i|0)*3600+(r|0)*60+(u|0)+parseFloat(h||0)}var O=b.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return O?parseFloat(O[2])>59?m(O[2],O[3],0,O[4]):m(O[1],O[2],O[3],O[4]):null}var s=function(){function b(){this.values=Object.create(null)}var m=b.prototype;return m.set=function(i,r){!this.get(i)&&r!==""&&(this.values[i]=r)},m.get=function(i,r,u){return u?this.has(i)?this.values[i]:r[u]:this.has(i)?this.values[i]:r},m.has=function(i){return i in this.values},m.alt=function(i,r,u){for(var h=0;h=0&&u<=100)return this.set(i,u),!0}return!1},b}();function d(b,m,O,i){var r=i?b.split(i):[b];for(var u in r){if(typeof r[u]!="string")continue;var h=r[u].split(O);if(h.length!==2)continue;var y=h[0],E=h[1];m(y,E)}}var w=new U.default(0,0,""),p=w.align==="middle"?"middle":"center";function a(b,m,O){var i=b;function r(){var y=g(b);if(y===null)throw new Error("Malformed timestamp: "+i);return b=b.replace(/^[^\sa-zA-Z-]+/,""),y}function u(y,E){var t=new s;d(y,function(v,o){var l;switch(v){case"region":for(var c=O.length-1;c>=0;c--)if(O[c].id===o){t.set(v,O[c].region);break}break;case"vertical":t.alt(v,o,["rl","lr"]);break;case"line":l=o.split(","),t.integer(v,l[0]),t.percent(v,l[0])&&t.set("snapToLines",!1),t.alt(v,l[0],["auto"]),l.length===2&&t.alt("lineAlign",l[1],["start",p,"end"]);break;case"position":l=o.split(","),t.percent(v,l[0]),l.length===2&&t.alt("positionAlign",l[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":t.percent(v,o);break;case"align":t.alt(v,o,["start",p,"end","left","right"]);break}},/:/,/\s/),E.region=t.get("region",null),E.vertical=t.get("vertical","");var C=t.get("line","auto");C==="auto"&&w.line===-1&&(C=-1),E.line=C,E.lineAlign=t.get("lineAlign","start"),E.snapToLines=t.get("snapToLines",!0),E.size=t.get("size",100),E.align=t.get("align",p);var A=t.get("position","auto");A==="auto"&&w.position===50&&(A=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=A}function h(){b=b.replace(/^\s+/,"")}if(h(),m.startTime=r(),h(),b.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+i);b=b.substr(3),h(),m.endTime=r(),h(),u(b,m)}function f(b){return b.replace(//gi,` -`)}var x=function(){function b(){this.state="INITIAL",this.buffer="",this.decoder=new S,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var m=b.prototype;return m.parse=function(i){var r=this;i&&(r.buffer+=r.decoder.decode(i,{stream:!0}));function u(){var A=r.buffer,v=0;for(A=f(A);v=r&&this.observer.emit(U.Events.ERROR,U.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),M.executeEnd=O(),[b(l)];var te=J.flush(V);return E(te)?te.then(function(ee){return c.flushRemux(F,ee,l),F}):(this.flushRemux(F,te,l),F)},v.flushRemux=function(l,c,M){var P=c.audioTrack,R=c.avcTrack,k=c.id3Track,I=c.textTrack,F=this.currentTransmuxState,V=F.accurateTimeOffset,W=F.timeOffset;m.logger.log("[transmuxer.ts]: Flushed fragment "+M.sn+(M.part>-1?" p: "+M.part:"")+" of level "+M.level);var G=this.remuxer.remux(P,R,k,I,W,V,!0,this.id);l.push({remuxResult:G,chunkMeta:M}),M.transmuxing.executeEnd=O()},v.resetInitialTimestamp=function(l){var c=this.demuxer,M=this.remuxer;if(!c||!M)return;c.resetTimeStamp(l),M.resetTimeStamp(l)},v.resetContiguity=function(){var l=this.demuxer,c=this.remuxer;if(!l||!c)return;l.resetContiguity(),c.resetNextTimestamp()},v.resetInitSegment=function(l,c,M,P){var R=this.demuxer,k=this.remuxer;if(!R||!k)return;R.resetInitSegment(c,M,P),k.resetInitSegment(l,c,M)},v.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},v.transmux=function(l,c,M,P,R){var k;return c&&c.method==="SAMPLE-AES"?k=this.transmuxSampleAes(l,c,M,P,R):k=this.transmuxUnencrypted(l,M,P,R),k},v.transmuxUnencrypted=function(l,c,M,P){var R=this.demuxer.demux(l,c,!1,!this.config.progressive),k=R.audioTrack,I=R.avcTrack,F=R.id3Track,V=R.textTrack,W=this.remuxer.remux(k,I,F,V,c,M,!1,this.id);return{remuxResult:W,chunkMeta:P}},v.transmuxSampleAes=function(l,c,M,P,R){var k=this;return this.demuxer.demuxSampleAes(l,c,M).then(function(I){var F=k.remuxer.remux(I.audioTrack,I.avcTrack,I.id3Track,I.textTrack,M,P,!1,k.id);return{remuxResult:F,chunkMeta:R}})},v.configureTransmuxer=function(l,c){for(var M=this.config,P=this.observer,R=this.typeSupported,k=this.vendor,I=c.audioCodec,F=c.defaultInitPts,V=c.duration,W=c.initSegmentData,G=c.videoCodec,J,X=0,te=i.length;X0&&v!=null&&v.key!=null&&v.iv!==null&&v.method!=null&&(o=v),o}var b=function(v){return{remuxResult:{},chunkMeta:v}};function E(A){return"then"in A&&A.then instanceof Function}var t=function(v,o,l,c,M){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=v,this.videoCodec=o,this.initSegmentData=l,this.duration=c,this.defaultInitPts=M},C=function(v,o,l,c,M){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=v,this.contiguous=o,this.accurateTimeOffset=l,this.trackSwitch=c,this.timeOffset=M}},"./src/demux/tsdemuxer.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"discardEPB",function(){return b});var U=L("./src/demux/adts.ts"),S=L("./src/demux/mpegaudio.ts"),g=L("./src/demux/exp-golomb.ts"),s=L("./src/demux/id3.ts"),d=L("./src/demux/sample-aes.ts"),w=L("./src/events.ts"),p=L("./src/utils/mp4-tools.ts"),a=L("./src/utils/logger.ts"),f=L("./src/errors.ts"),x={video:1,audio:2,id3:3,text:4},y=function(){function E(C,A,v){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=C,this.config=A,this.typeSupported=v}E.probe=function(A){var v=E.syncOffset(A);return v<0?!1:(v&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+v+", junk ahead ?"),!0)},E.syncOffset=function(A){for(var v=Math.min(1e3,A.length-3*188),o=0;o>4,Ge=void 0;if(nt>1){if(Ge=ge+5+A[ge+4],Ge===ge+188)continue}else Ge=ge+4;switch(He){case k:je&&(I&&(c=r(I))&&this.parseAVCPES(c,!1),I={data:[],size:0}),I&&(I.data.push(A.subarray(Ge,ge+188)),I.size+=ge+188-Ge);break;case F:je&&(W&&(c=r(W))&&(P.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),W={data:[],size:0}),W&&(W.data.push(A.subarray(Ge,ge+188)),W.size+=ge+188-Ge);break;case V:je&&(G&&(c=r(G))&&this.parseID3PES(c),G={data:[],size:0}),G&&(G.data.push(A.subarray(Ge,ge+188)),G.size+=ge+188-Ge);break;case 0:je&&(Ge+=A[Ge]+1),te=this._pmtId=O(A,Ge);break;case te:{je&&(Ge+=A[Ge]+1);var he=i(A,Ge,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,o);k=he.avc,k>0&&(M.pid=k),F=he.audio,F>0&&(P.pid=F,P.isAAC=he.isAAC),V=he.id3,V>0&&(R.pid=V),J&&!X&&(a.logger.log("reparse from beginning"),J=!1,ge=be-188),X=this.pmtParsed=!0;break}case 17:case 8191:break;default:J=!0;break}}else this.observer.emit(w.Events.ERROR,w.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});M.pesData=I,P.pesData=W,R.pesData=G;var ce={audioTrack:P,avcTrack:M,id3Track:R,textTrack:this._txtTrack};return l&&this.extractRemainingSamples(ce),ce},t.flush=function(){var A=this.remainderData;this.remainderData=null;var v;return A?v=this.demux(A,-1,!1,!0):v={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(v),this.sampleAes?this.decrypt(v,this.sampleAes):v},t.extractRemainingSamples=function(A){var v=A.audioTrack,o=A.avcTrack,l=A.id3Track,c=o.pesData,M=v.pesData,P=l.pesData,R;c&&(R=r(c))?(this.parseAVCPES(R,!0),o.pesData=null):o.pesData=c,M&&(R=r(M))?(v.isAAC?this.parseAACPES(R):this.parseMPEGPES(R),v.pesData=null):(M!=null&&M.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),v.pesData=M),P&&(R=r(P))?(this.parseID3PES(R),l.pesData=null):l.pesData=P},t.demuxSampleAes=function(A,v,o){var l=this.demux(A,o,!0,!this.config.progressive),c=this.sampleAes=new d.default(this.observer,this.config,v);return this.decrypt(l,c)},t.decrypt=function(A,v){return new Promise(function(o){var l=A.audioTrack,c=A.avcTrack;l.samples&&l.isAAC?v.decryptAacSamples(l.samples,0,function(){c.samples?v.decryptAvcSamples(c.samples,0,0,function(){o(A)}):o(A)}):c.samples&&v.decryptAvcSamples(c.samples,0,0,function(){o(A)})})},t.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},t.parseAVCPES=function(A,v){var o=this,l=this._avcTrack,c=this.parseAVCNALu(A.data),M=!1,P=this.avcSample,R,k=!1;A.data=null,P&&c.length&&!l.audFound&&(u(P,l),P=this.avcSample=m(!1,A.pts,A.dts,"")),c.forEach(function(I){switch(I.type){case 1:{R=!0,P||(P=o.avcSample=m(!0,A.pts,A.dts,"")),M&&(P.debug+="NDR "),P.frame=!0;var F=I.data;if(k&&F.length>4){var V=new g.default(F).readSliceType();(V===2||V===4||V===7||V===9)&&(P.key=!0)}break}case 5:R=!0,P||(P=o.avcSample=m(!0,A.pts,A.dts,"")),M&&(P.debug+="IDR "),P.key=!0,P.frame=!0;break;case 6:{R=!0,M&&P&&(P.debug+="SEI ");var W=new g.default(b(I.data));W.readUByte();for(var G=0,J=0,X=!1,te=0;!X&&W.bytesAvailable>1;){G=0;do te=W.readUByte(),G+=te;while(te===255);J=0;do te=W.readUByte(),J+=te;while(te===255);if(G===4&&W.bytesAvailable!==0){X=!0;var ee=W.readUByte();if(ee===181){var be=W.readUShort();if(be===49){var ge=W.readUInt();if(ge===1195456820){var je=W.readUByte();if(je===3){for(var He=W.readUByte(),nt=W.readUByte(),Ge=31&He,he=[He,nt],ce=0;ce16){for(var Ee=[],fe=0;fe<16;fe++)Ee.push(W.readUByte().toString(16)),(fe===3||fe===5||fe===7||fe===9)&&Ee.push("-");for(var Ne=J-16,Ce=new Uint8Array(Ne),xe=0;xe=0){var W={data:A.subarray(F,P-l-1),type:V};M.push(W)}else{var G=this.getLastNalUnit();if(G&&(c&&P<=4-c&&(G.state&&(G.data=G.data.subarray(0,G.data.byteLength-c))),k=P-l-1,k>0)){var J=new Uint8Array(G.data.byteLength+k);J.set(G.data,0),J.set(A.subarray(0,k),G.data.byteLength),G.data=J,G.state=0}}P=0&&l>=0){var X={data:A.subarray(F,v),type:V,state:l};M.push(X)}if(M.length===0){var te=this.getLastNalUnit();if(te){var ee=new Uint8Array(te.data.byteLength+A.byteLength);ee.set(te.data,0),ee.set(A,te.data.byteLength),te.data=ee}}return o.naluState=l,M},t.parseAACPES=function(A){var v=0,o=this._audioTrack,l=this.aacOverFlow,c=A.data;if(l){this.aacOverFlow=null;var M=l.sample.unit.byteLength,P=Math.min(l.missing,M),R=M-P;l.sample.unit.set(c.subarray(0,P),R),o.samples.push(l.sample),v=l.missing}var k,I;for(k=v,I=c.length;k1;){var M=new Uint8Array(c[0].length+c[1].length);M.set(c[0]),M.set(c[1],c[0].length),c[0]=M,c.splice(1,1)}C=c[0];var P=(C[0]<<16)+(C[1]<<8)+C[2];if(P===1){if(A=(C[4]<<8)+C[5],A&&A>E.size-6)return null;var R=C[7];R&192&&(o=(C[9]&14)*536870912+(C[10]&255)*4194304+(C[11]&254)*16384+(C[12]&255)*128+(C[13]&254)/2,R&64?(l=(C[14]&14)*536870912+(C[15]&255)*4194304+(C[16]&254)*16384+(C[17]&255)*128+(C[18]&254)/2,o-l>60*9e4&&(a.logger.warn(Math.round((o-l)/9e4)+"s delta between PTS and DTS, align them"),o=l)):l=o),v=C[8];var k=v+9;if(E.size<=k)return null;E.size-=k;for(var I=new Uint8Array(E.size),F=0,V=c.length;FW){k-=W;continue}else C=C.subarray(k),W-=k,k=0;I.set(C,t),t+=W}return A&&(A-=v+3),{data:I,pts:o,dts:l,len:A}}return null}function u(E,t){if(E.units.length&&E.frame){if(E.pts===void 0){var C=t.samples,A=C.length;if(A){var v=C[A-1];E.pts=v.pts,E.dts=v.dts}else{t.dropped++;return}}t.samples.push(E)}E.debug.length&&a.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function h(E,t){var C=E.length;if(C>0){if(t.pts>=E[C-1].pts)E.push(t);else for(var A=C-1;A>=0;A--)if(t.ptso)return c;return 0}},{key:"maxAutoLevel",get:function(){var v=this.levels,o=this.autoLevelCapping,l;return o===-1&&v&&v.length?l=v.length-1:l=o,l}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(v){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,v)}},{key:"audioTracks",get:function(){var v=this.audioTrackController;return v?v.audioTracks:[]}},{key:"audioTrack",get:function(){var v=this.audioTrackController;return v?v.audioTrack:-1},set:function(v){var o=this.audioTrackController;o&&(o.audioTrack=v)}},{key:"subtitleTracks",get:function(){var v=this.subtitleTrackController;return v?v.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var v=this.subtitleTrackController;return v?v.subtitleTrack:-1},set:function(v){var o=this.subtitleTrackController;o&&(o.subtitleTrack=v)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var v=this.subtitleTrackController;return v?v.subtitleDisplay:!1},set:function(v){var o=this.subtitleTrackController;o&&(o.subtitleDisplay=v)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(v){this.config.lowLatencyMode=v}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return u.ErrorTypes}},{key:"ErrorDetails",get:function(){return u.ErrorDetails}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:m.hlsDefaultConfig},set:function(v){t.defaultConfig=v}}]),t}();E.defaultConfig=void 0},"./src/is-supported.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"isSupported",function(){return g}),L.d(j,"changeTypeSupported",function(){return s});var U=L("./src/utils/mediasource-helper.ts");function S(){return self.SourceBuffer||self.WebKitSourceBuffer}function g(){var d=Object(U.getMediaSource)();if(!d)return!1;var w=S(),p=d&&typeof d.isTypeSupported=="function"&&d.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!w||w.prototype&&typeof w.prototype.appendBuffer=="function"&&typeof w.prototype.remove=="function";return!!p&&!!a}function s(){var d,w=S();return typeof(w==null||((d=w.prototype)===null||d===void 0)?void 0:d.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return y}),L.d(j,"LoadError",function(){return O});var U=L("./src/polyfills/number.ts"),S=L("./src/errors.ts");function g(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,a(i,r)}function s(i){var r=typeof Map=="function"?new Map:void 0;return s=function(h){if(h===null||!p(h))return h;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(h))return r.get(h);r.set(h,b)}function b(){return d(h,arguments,f(this).constructor)}return b.prototype=Object.create(h.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),a(b,h)},s(i)}function d(i,r,u){return w()?d=Reflect.construct:d=function(b,E,t){var C=[null];C.push.apply(C,E);var A=Function.bind.apply(b,C),v=new A;return t&&a(v,t.prototype),v},d.apply(null,arguments)}function w(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function p(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function a(i,r){return a=Object.setPrototypeOf||function(h,b){return h.__proto__=b,h},a(i,r)}function f(i){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},f(i)}var x=Math.pow(2,17),y=function(){function i(u){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=u}var r=i.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(h,b){var E=this,t=h.url;if(!t)return Promise.reject(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,networkDetails:null},"Fragment does not have a "+(t?"part list":"url")));this.abort();var C=this.config,A=C.fLoader,v=C.loader;return new Promise(function(o,l){E.loader&&E.loader.destroy();var c=E.loader=h.loader=A?new A(C):new v(C),M=m(h),P={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:x};h.stats=c.stats,c.load(M,P,{onSuccess:function(k,I,F,V){E.resetLoader(h,c),o({frag:h,part:null,payload:k.data,networkDetails:V})},onError:function(k,I,F){E.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,response:k,networkDetails:F}))},onAbort:function(k,I,F){E.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,networkDetails:F}))},onTimeout:function(k,I,F){E.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,networkDetails:F}))},onProgress:function(k,I,F,V){b&&b({frag:h,part:null,payload:F,networkDetails:V})}})})},r.loadPart=function(h,b,E){var t=this;this.abort();var C=this.config,A=C.fLoader,v=C.loader;return new Promise(function(o,l){t.loader&&t.loader.destroy();var c=t.loader=h.loader=A?new A(C):new v(C),M=m(h,b),P={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:x};b.stats=c.stats,c.load(M,P,{onSuccess:function(k,I,F,V){t.resetLoader(h,c),t.updateStatsFromPart(h,b);var W={frag:h,part:b,payload:k.data,networkDetails:V};E(W),o(W)},onError:function(k,I,F){t.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,part:b,response:k,networkDetails:F}))},onAbort:function(k,I,F){h.stats.aborted=b.stats.aborted,t.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,part:b,networkDetails:F}))},onTimeout:function(k,I,F){t.resetLoader(h,c),l(new O({type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,part:b,networkDetails:F}))}})})},r.updateStatsFromPart=function(h,b){var E=h.stats,t=b.stats,C=t.total;if(E.loaded+=t.loaded,C){var A=Math.round(h.duration/b.duration),v=Math.min(Math.round(E.loaded/C),A),o=A-v,l=o*Math.round(E.loaded/v);E.total=E.loaded+l}else E.total=Math.max(E.loaded,E.total);var c=E.loading,M=t.loading;c.start?c.first+=M.first-M.start:(c.start=M.start,c.first=M.first),c.end=M.end},r.resetLoader=function(h,b){h.loader=null,this.loader===b&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),b.destroy()},i}();function m(i,r){r===void 0&&(r=null);var u=r||i,h={frag:i,part:r,responseType:"arraybuffer",url:u.url,headers:{},rangeStart:0,rangeEnd:0},b=u.byteRangeStartOffset,E=u.byteRangeEndOffset;return Object(U.isFiniteNumber)(b)&&Object(U.isFiniteNumber)(E)&&(h.rangeStart=b,h.rangeEnd=E),h}var O=function(i){g(r,i);function r(u){for(var h,b=arguments.length,E=new Array(b>1?b-1:0),t=1;t>8*(15-C)&255;return t},h.setDecryptDataFromLevelKey=function(E,t){var C=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(C=d.LevelKey.fromURI(E.uri),C.method=E.method,C.iv=this.createInitializationVector(t),C.keyFormat="identity"),C},h.setElementaryStreamInfo=function(E,t,C,A,v,o){o===void 0&&(o=!1);var l=this.elementaryStreams,c=l[E];if(!c){l[E]={startPTS:t,endPTS:C,startDTS:A,endDTS:v,partial:o};return}c.startPTS=Math.min(c.startPTS,t),c.endPTS=Math.max(c.endPTS,C),c.startDTS=Math.min(c.startDTS,A),c.endDTS=Math.max(c.endDTS,v)},h.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[y.AUDIO]=null,E[y.VIDEO]=null,E[y.AUDIOVIDEO]=null},x(u,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&s.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(U.isFiniteNumber)(this.programDateTime))return null;var E=Object(U.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),u}(m),i=function(r){p(u,r);function u(h,b,E,t,C){var A;A=r.call(this,E)||this,A.fragOffset=0,A.duration=0,A.gap=!1,A.independent=!1,A.relurl=void 0,A.fragment=void 0,A.index=void 0,A.stats=new w.LoadStats,A.duration=h.decimalFloatingPoint("DURATION"),A.gap=h.bool("GAP"),A.independent=h.bool("INDEPENDENT"),A.relurl=h.enumeratedString("URI"),A.fragment=b,A.index=t;var v=h.enumeratedString("BYTERANGE");return v&&A.setByteRange(v,C),C&&(A.fragOffset=C.fragOffset+C.duration),A}return x(u,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var b=this.elementaryStreams;return!!(b.audio||b.video||b.audiovideo)}}]),u}(m)},"./src/loader/key-loader.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return s});var U=L("./src/events.ts"),S=L("./src/errors.ts"),g=L("./src/utils/logger.ts"),s=function(){function d(p){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=p,this._registerListeners()}var w=d.prototype;return w._registerListeners=function(){this.hls.on(U.Events.KEY_LOADING,this.onKeyLoading,this)},w._unregisterListeners=function(){this.hls.off(U.Events.KEY_LOADING,this.onKeyLoading)},w.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var f=this.loaders[a];f&&f.destroy()}this.loaders={}},w.onKeyLoading=function(a,f){var x=f.frag,y=x.type,m=this.loaders[y];if(!x.decryptdata){g.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var O=x.decryptdata.uri;if(O!==this.decrypturl||this.decryptkey===null){var i=this.hls.config;if(m&&(g.logger.warn("abort previous key loader for type:"+y),m.abort()),!O){g.logger.warn("key uri is falsy");return}var r=i.loader,u=x.loader=this.loaders[y]=new r(i);this.decrypturl=O,this.decryptkey=null;var h={url:O,frag:x,responseType:"arraybuffer"},b={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:i.fragLoadingRetryDelay,maxRetryDelay:i.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};u.load(h,b,E)}else this.decryptkey&&(x.decryptdata.key=this.decryptkey,this.hls.trigger(U.Events.KEY_LOADED,{frag:x}))},w.loadsuccess=function(a,f,x){var y=x.frag;if(!y.decryptdata){g.logger.error("after key load, decryptdata unset");return}this.decryptkey=y.decryptdata.key=new Uint8Array(a.data),y.loader=null,delete this.loaders[y.type],this.hls.trigger(U.Events.KEY_LOADED,{frag:y})},w.loaderror=function(a,f){var x=f.frag,y=x.loader;y&&y.abort(),delete this.loaders[x.type],this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:x,response:a})},w.loadtimeout=function(a,f){var x=f.frag,y=x.loader;y&&y.abort(),delete this.loaders[x.type],this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:x})},d}()},"./src/loader/level-details.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"LevelDetails",function(){return d});var U=L("./src/polyfills/number.ts");function S(w,p){for(var a=0;af.endSN||x>0||x===0&&y>0,this.updated||this.advanced?this.misses=Math.floor(f.misses*.6):this.misses=f.misses+1,this.availabilityDelay=f.availabilityDelay},g(w,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(U.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||s}},{key:"drift",get:function(){var f=this.driftEndTime-this.driftStartTime;if(f>0){var x=this.driftEnd-this.driftStart;return x*1e3/f}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var f;return(f=this.partList)!==null&&f!==void 0&&f.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var f;return(f=this.fragments)!==null&&f!==void 0&&f.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var f;return(f=this.partList)!==null&&f!==void 0&&f.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var f;return(f=this.partList)!==null&&f!==void 0&&f.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),w}()},"./src/loader/level-key.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"LevelKey",function(){return d});var U=L("./node_modules/url-toolkit/src/url-toolkit.js"),S=L.n(U);function g(w,p){for(var a=0;a2){var l=o.shift()+".";return l+=parseInt(o.shift()).toString(16),l+=("000"+parseInt(o.shift()).toString(16)).substr(-4),l}return v},C.resolve=function(v,o){return S.buildAbsoluteURL(o,v,{alwaysNormalize:!0})},C.parseMasterPlaylist=function(v,o){var l=[],c={},M=!1;x.lastIndex=0;for(var P;(P=x.exec(v))!=null;)if(P[1]){var R=new p.AttrList(P[1]),k={attrs:R,bitrate:R.decimalInteger("AVERAGE-BANDWIDTH")||R.decimalInteger("BANDWIDTH"),name:R.NAME,url:C.resolve(P[2],o)},I=R.decimalResolution("RESOLUTION");I&&(k.width=I.width,k.height=I.height),h((R.CODECS||"").split(/[ ,]+/).filter(function(V){return V}),k),k.videoCodec&&k.videoCodec.indexOf("avc1")!==-1&&(k.videoCodec=C.convertAVC1ToAVCOTI(k.videoCodec)),l.push(k)}else if(P[3]){var F=new p.AttrList(P[3]);F["DATA-ID"]&&(M=!0,c[F["DATA-ID"]]=F)}return{levels:l,sessionData:M?c:null}},C.parseMasterPlaylistMedia=function(v,o,l,c){c===void 0&&(c=[]);var M,P=[],R=0;for(y.lastIndex=0;(M=y.exec(v))!==null;){var k=new p.AttrList(M[1]);if(k.TYPE===l){var I={attrs:k,bitrate:0,id:R++,groupId:k["GROUP-ID"],instreamId:k["INSTREAM-ID"],name:k.NAME||k.LANGUAGE||"",type:l,default:k.bool("DEFAULT"),autoselect:k.bool("AUTOSELECT"),forced:k.bool("FORCED"),lang:k.LANGUAGE,url:k.URI?C.resolve(k.URI,o):""};if(c.length){var F=C.findGroup(c,I.groupId)||c[0];b(I,F,"audioCodec"),b(I,F,"textCodec")}P.push(I)}}return P},C.parseLevelPlaylist=function(v,o,l,c,M){var P=new d.LevelDetails(o),R=P.fragments,k=null,I=0,F=0,V=0,W=0,G=null,J=new s.Fragment(c,o),X,te,ee,be=-1,ge=!1;for(m.lastIndex=0,P.m3u8=v;(X=m.exec(v))!==null;){ge&&(ge=!1,J=new s.Fragment(c,o),J.start=V,J.sn=I,J.cc=W,J.level=l,k&&(J.initSegment=k,J.rawProgramDateTime=k.rawProgramDateTime));var je=X[1];if(je){J.duration=parseFloat(je);var He=(" "+X[2]).slice(1);J.title=He||null,J.tagList.push(He?["INF",je,He]:["INF",je])}else if(X[3])Object(U.isFiniteNumber)(J.duration)&&(J.start=V,ee&&(J.levelkey=ee),J.sn=I,J.level=l,J.cc=W,J.urlId=M,R.push(J),J.relurl=(" "+X[3]).slice(1),t(J,G),G=J,V+=J.duration,I++,F=0,ge=!0);else if(X[4]){var nt=(" "+X[4]).slice(1);G?J.setByteRange(nt,G):J.setByteRange(nt)}else if(X[5])J.rawProgramDateTime=(" "+X[5]).slice(1),J.tagList.push(["PROGRAM-DATE-TIME",J.rawProgramDateTime]),be===-1&&(be=R.length);else{if(X=X[0].match(O),!X){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(te=1;te-1){a.logger.warn("Keyformat "+At+" is not supported from the manifest");continue}else if(At!=="identity")continue;Le&&(ee=w.LevelKey.fromURL(o,Fe),Fe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Le)>=0&&(ee.method=Le,ee.keyFormat=At,at&&(ee.keyID=at),Ve&&(ee.keyFormatVersions=Ve),ee.iv=Pe));break}case"START":{var tn=new p.AttrList(he),Qt=tn.decimalFloatingPoint("TIME-OFFSET");Object(U.isFiniteNumber)(Qt)&&(P.startTimeOffset=Qt);break}case"MAP":{var Cn=new p.AttrList(he);J.relurl=Cn.URI,Cn.BYTERANGE&&J.setByteRange(Cn.BYTERANGE),J.level=l,J.sn="initSegment",ee&&(J.levelkey=ee),J.initSegment=null,k=J,ge=!0;break}case"SERVER-CONTROL":{var Un=new p.AttrList(he);P.canBlockReload=Un.bool("CAN-BLOCK-RELOAD"),P.canSkipUntil=Un.optionalFloat("CAN-SKIP-UNTIL",0),P.canSkipDateRanges=P.canSkipUntil>0&&Un.bool("CAN-SKIP-DATERANGES"),P.partHoldBack=Un.optionalFloat("PART-HOLD-BACK",0),P.holdBack=Un.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var mt=new p.AttrList(he);P.partTarget=mt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var lt=P.partList;lt||(lt=P.partList=[]);var Ht=F>0?lt[lt.length-1]:void 0,sn=F++,Tt=new s.Part(new p.AttrList(he),J,o,sn,Ht);lt.push(Tt),J.duration+=Tt.duration;break}case"PRELOAD-HINT":{var wt=new p.AttrList(he);P.preloadHint=wt;break}case"RENDITION-REPORT":{var Qe=new p.AttrList(he);P.renditionReports=P.renditionReports||[],P.renditionReports.push(Qe);break}default:a.logger.warn("line parsed but not handled: "+X);break}}}G&&!G.relurl?(R.pop(),V-=G.duration,P.partList&&(P.fragmentHint=G)):P.partList&&(t(J,G),J.cc=W,P.fragmentHint=J);var Je=R.length,Xe=R[0],Oe=R[Je-1];if(V+=P.skippedSegments*P.targetduration,V>0&&Je&&Oe){P.averagetargetduration=V/Je;var Ae=Oe.sn;P.endSN=Ae!=="initSegment"?Ae:0,Xe&&(P.startCC=Xe.cc,Xe.initSegment||P.fragments.every(function(ye){return ye.relurl&&r(ye.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),J=new s.Fragment(c,o),J.relurl=Oe.relurl,J.level=l,J.sn="initSegment",Xe.initSegment=J,P.needSidxRanges=!0))}else P.endSN=0,P.startCC=0;return P.fragmentHint&&(V+=P.fragmentHint.duration),P.totalduration=V,P.endCC=W,be>0&&E(R,be),P},C}();function h(C,A){["video","audio","text"].forEach(function(v){var o=C.filter(function(c){return Object(f.isCodecType)(c,v)});if(o.length){var l=o.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});A[v+"Codec"]=l.length>0?l[0]:o[0],C=C.filter(function(c){return o.indexOf(c)===-1})}}),A.unknownCodecs=C}function b(C,A,v){var o=A[v];o&&(C[v]=o)}function E(C,A){for(var v=C[A],o=A;o--;){var l=C[o];if(!l)return;l.programDateTime=v.programDateTime-l.duration*1e3,v=l}}function t(C,A){C.rawProgramDateTime?C.programDateTime=Date.parse(C.rawProgramDateTime):A!=null&&A.programDateTime&&(C.programDateTime=A.endProgramDateTime),Object(U.isFiniteNumber)(C.programDateTime)||(C.programDateTime=null,C.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/polyfills/number.ts"),S=L("./src/events.ts"),g=L("./src/errors.ts"),s=L("./src/utils/logger.ts"),d=L("./src/utils/mp4-tools.ts"),w=L("./src/loader/m3u8-parser.ts"),p=L("./src/types/loader.ts"),a=L("./src/utils/attr-list.ts");function f(m){var O=m.type;switch(O){case p.PlaylistContextType.AUDIO_TRACK:return p.PlaylistLevelType.AUDIO;case p.PlaylistContextType.SUBTITLE_TRACK:return p.PlaylistLevelType.SUBTITLE;default:return p.PlaylistLevelType.MAIN}}function x(m,O){var i=m.url;return(i===void 0||i.indexOf("data:")===0)&&(i=O.url),i}var y=function(){function m(i){this.hls=void 0,this.loaders=Object.create(null),this.hls=i,this.registerListeners()}var O=m.prototype;return O.registerListeners=function(){var r=this.hls;r.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(S.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(S.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},O.unregisterListeners=function(){var r=this.hls;r.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(S.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(S.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},O.createInternalLoader=function(r){var u=this.hls.config,h=u.pLoader,b=u.loader,E=h||b,t=new E(u);return r.loader=t,this.loaders[r.type]=t,t},O.getInternalLoader=function(r){return this.loaders[r.type]},O.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},O.destroyInternalLoaders=function(){for(var r in this.loaders){var u=this.loaders[r];u&&u.destroy(),this.resetInternalLoader(r)}},O.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},O.onManifestLoading=function(r,u){var h=u.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:p.PlaylistContextType.MANIFEST,url:h,deliveryDirectives:null})},O.onLevelLoading=function(r,u){var h=u.id,b=u.level,E=u.url,t=u.deliveryDirectives;this.load({id:h,groupId:null,level:b,responseType:"text",type:p.PlaylistContextType.LEVEL,url:E,deliveryDirectives:t})},O.onAudioTrackLoading=function(r,u){var h=u.id,b=u.groupId,E=u.url,t=u.deliveryDirectives;this.load({id:h,groupId:b,level:null,responseType:"text",type:p.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:t})},O.onSubtitleTrackLoading=function(r,u){var h=u.id,b=u.groupId,E=u.url,t=u.deliveryDirectives;this.load({id:h,groupId:b,level:null,responseType:"text",type:p.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:t})},O.load=function(r){var u,h=this.hls.config,b=this.getInternalLoader(r);if(b){var E=b.context;if(E&&E.url===r.url){s.logger.trace("[playlist-loader]: playlist request ongoing");return}s.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),b.abort()}var t,C,A,v;switch(r.type){case p.PlaylistContextType.MANIFEST:t=h.manifestLoadingMaxRetry,C=h.manifestLoadingTimeOut,A=h.manifestLoadingRetryDelay,v=h.manifestLoadingMaxRetryTimeout;break;case p.PlaylistContextType.LEVEL:case p.PlaylistContextType.AUDIO_TRACK:case p.PlaylistContextType.SUBTITLE_TRACK:t=0,C=h.levelLoadingTimeOut;break;default:t=h.levelLoadingMaxRetry,C=h.levelLoadingTimeOut,A=h.levelLoadingRetryDelay,v=h.levelLoadingMaxRetryTimeout;break}if(b=this.createInternalLoader(r),(u=r.deliveryDirectives)!==null&&u!==void 0&&u.part){var o;if(r.type===p.PlaylistContextType.LEVEL&&r.level!==null?o=this.hls.levels[r.level].details:r.type===p.PlaylistContextType.AUDIO_TRACK&&r.id!==null?o=this.hls.audioTracks[r.id].details:r.type===p.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(o=this.hls.subtitleTracks[r.id].details),o){var l=o.partTarget,c=o.targetduration;l&&c&&(C=Math.min(Math.max(l*3,c*.8)*1e3,C))}}var M={timeout:C,maxRetry:t,retryDelay:A,maxRetryDelay:v,highWaterMark:0},P={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};b.load(r,M,P)},O.loadsuccess=function(r,u,h,b){if(b===void 0&&(b=null),h.isSidxRequest){this.handleSidxRequest(r,h),this.handlePlaylistLoaded(r,u,h,b);return}this.resetInternalLoader(h.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,h,"no EXTM3U delimiter",b);return}u.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,u,h,b):this.handleMasterPlaylist(r,u,h,b)},O.loaderror=function(r,u,h){h===void 0&&(h=null),this.handleNetworkError(u,h,!1,r)},O.loadtimeout=function(r,u,h){h===void 0&&(h=null),this.handleNetworkError(u,h,!0)},O.handleMasterPlaylist=function(r,u,h,b){var E=this.hls,t=r.data,C=x(r,h),A=w.default.parseMasterPlaylist(t,C),v=A.levels,o=A.sessionData;if(!v.length){this.handleManifestParsingError(r,h,"no level found in manifest",b);return}var l=v.map(function(I){return{id:I.attrs.AUDIO,audioCodec:I.audioCodec}}),c=v.map(function(I){return{id:I.attrs.SUBTITLES,textCodec:I.textCodec}}),M=w.default.parseMasterPlaylistMedia(t,C,"AUDIO",l),P=w.default.parseMasterPlaylistMedia(t,C,"SUBTITLES",c),R=w.default.parseMasterPlaylistMedia(t,C,"CLOSED-CAPTIONS");if(M.length){var k=M.some(function(I){return!I.url});!k&&v[0].audioCodec&&!v[0].attrs.AUDIO&&(s.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),M.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}E.trigger(S.Events.MANIFEST_LOADED,{levels:v,audioTracks:M,subtitles:P,captions:R,url:C,stats:u,networkDetails:b,sessionData:o})},O.handleTrackOrLevelPlaylist=function(r,u,h,b){var E=this.hls,t=h.id,C=h.level,A=h.type,v=x(r,h),o=Object(U.isFiniteNumber)(t)?t:0,l=Object(U.isFiniteNumber)(C)?C:o,c=f(h),M=w.default.parseLevelPlaylist(r.data,v,l,c,o);if(!M.fragments.length){E.trigger(S.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:v,reason:"no fragments found in level",level:typeof h.level=="number"?h.level:void 0});return}if(A===p.PlaylistContextType.MANIFEST){var P={attrs:new a.AttrList({}),bitrate:0,details:M,name:"",url:v};E.trigger(S.Events.MANIFEST_LOADED,{levels:[P],audioTracks:[],url:v,stats:u,networkDetails:b,sessionData:null})}if(u.parsing.end=performance.now(),M.needSidxRanges){var R,k=(R=M.fragments[0].initSegment)===null||R===void 0?void 0:R.url;this.load({url:k,isSidxRequest:!0,type:A,level:C,levelDetails:M,id:t,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}h.levelDetails=M,this.handlePlaylistLoaded(r,u,h,b)},O.handleSidxRequest=function(r,u){var h=Object(d.parseSegmentIndex)(new Uint8Array(r.data));if(!h)return;var b=h.references,E=u.levelDetails;b.forEach(function(t,C){var A=t.info,v=E.fragments[C];v.byteRange.length===0&&v.setByteRange(String(1+A.end-A.start)+"@"+String(A.start)),v.initSegment&&v.initSegment.setByteRange(String(h.moovEndOffset)+"@0")})},O.handleManifestParsingError=function(r,u,h,b){this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:u.type===p.PlaylistContextType.MANIFEST,url:r.url,reason:h,response:r,context:u,networkDetails:b})},O.handleNetworkError=function(r,u,h,b){h===void 0&&(h=!1),s.logger.warn("[playlist-loader]: A network "+(h?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=g.ErrorDetails.UNKNOWN,t=!1,C=this.getInternalLoader(r);switch(r.type){case p.PlaylistContextType.MANIFEST:E=h?g.ErrorDetails.MANIFEST_LOAD_TIMEOUT:g.ErrorDetails.MANIFEST_LOAD_ERROR,t=!0;break;case p.PlaylistContextType.LEVEL:E=h?g.ErrorDetails.LEVEL_LOAD_TIMEOUT:g.ErrorDetails.LEVEL_LOAD_ERROR,t=!1;break;case p.PlaylistContextType.AUDIO_TRACK:E=h?g.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:g.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,t=!1;break;case p.PlaylistContextType.SUBTITLE_TRACK:E=h?g.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:g.ErrorDetails.SUBTITLE_LOAD_ERROR,t=!1;break}C&&this.resetInternalLoader(r.type);var A={type:g.ErrorTypes.NETWORK_ERROR,details:E,fatal:t,url:r.url,loader:C,context:r,networkDetails:u};b&&(A.response=b),this.hls.trigger(S.Events.ERROR,A)},O.handlePlaylistLoaded=function(r,u,h,b){var E=h.type,t=h.level,C=h.id,A=h.groupId,v=h.loader,o=h.levelDetails,l=h.deliveryDirectives;if(!(o!=null&&o.targetduration)){this.handleManifestParsingError(r,h,"invalid target duration",b);return}if(!v)return;o.live&&(v.getCacheAge&&(o.ageHeader=v.getCacheAge()||0),(!v.getCacheAge||isNaN(o.ageHeader))&&(o.ageHeader=0));switch(E){case p.PlaylistContextType.MANIFEST:case p.PlaylistContextType.LEVEL:this.hls.trigger(S.Events.LEVEL_LOADED,{details:o,level:t||0,id:C||0,stats:u,networkDetails:b,deliveryDirectives:l});break;case p.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(S.Events.AUDIO_TRACK_LOADED,{details:o,id:C||0,groupId:A||"",stats:u,networkDetails:b,deliveryDirectives:l});break;case p.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(S.Events.SUBTITLE_TRACK_LOADED,{details:o,id:C||0,groupId:A||"",stats:u,networkDetails:b,deliveryDirectives:l});break}},m}();j.default=y},"./src/polyfills/number.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"isFiniteNumber",function(){return U}),L.d(j,"MAX_SAFE_INTEGER",function(){return S});var U=Number.isFinite||function(g){return typeof g=="number"&&isFinite(g)},S=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Y,j,L){"use strict";L.r(j);var U=function(){function S(){}return S.getSilentFrame=function(s,d){switch(s){case"mp4a.40.2":if(d===1)return new Uint8Array([0,200,0,128,35,128]);if(d===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(d===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(d===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(d===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(d===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(d===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(d===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(d===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},S}();j.default=U},"./src/remux/mp4-generator.ts":function(Y,j,L){"use strict";L.r(j);var U=Math.pow(2,32)-1,S=function(){function g(){}return g.init=function(){g.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var d;for(d in g.types)g.types.hasOwnProperty(d)&&(g.types[d]=[d.charCodeAt(0),d.charCodeAt(1),d.charCodeAt(2),d.charCodeAt(3)]);var w=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),p=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);g.HDLR_TYPES={video:w,audio:p};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),f=new Uint8Array([0,0,0,0,0,0,0,0]);g.STTS=g.STSC=g.STCO=f,g.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),g.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),g.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),g.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var x=new Uint8Array([105,115,111,109]),y=new Uint8Array([97,118,99,49]),m=new Uint8Array([0,0,0,1]);g.FTYP=g.box(g.types.ftyp,x,m,x,y),g.DINF=g.box(g.types.dinf,g.box(g.types.dref,a))},g.box=function(d){for(var w=8,p=arguments.length,a=new Array(p>1?p-1:0),f=1;f>24&255,m[1]=w>>16&255,m[2]=w>>8&255,m[3]=w&255,m.set(d,4),x=0,w=8;x>24&255,d>>16&255,d>>8&255,d&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},g.mdia=function(d){return g.box(g.types.mdia,g.mdhd(d.timescale,d.duration),g.hdlr(d.type),g.minf(d))},g.mfhd=function(d){return g.box(g.types.mfhd,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255]))},g.minf=function(d){return d.type==="audio"?g.box(g.types.minf,g.box(g.types.smhd,g.SMHD),g.DINF,g.stbl(d)):g.box(g.types.minf,g.box(g.types.vmhd,g.VMHD),g.DINF,g.stbl(d))},g.moof=function(d,w,p){return g.box(g.types.moof,g.mfhd(d),g.traf(p,w))},g.moov=function(d){for(var w=d.length,p=[];w--;)p[w]=g.trak(d[w]);return g.box.apply(null,[g.types.moov,g.mvhd(d[0].timescale,d[0].duration)].concat(p).concat(g.mvex(d)))},g.mvex=function(d){for(var w=d.length,p=[];w--;)p[w]=g.trex(d[w]);return g.box.apply(null,[g.types.mvex].concat(p))},g.mvhd=function(d,w){w*=d;var p=Math.floor(w/(U+1)),a=Math.floor(w%(U+1)),f=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,d>>24&255,d>>16&255,d>>8&255,d&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return g.box(g.types.mvhd,f)},g.sdtp=function(d){var w=d.samples||[],p=new Uint8Array(4+w.length),a,f;for(a=0;a>>8&255),w.push(x&255),w=w.concat(Array.prototype.slice.call(f));for(a=0;a>>8&255),p.push(x&255),p=p.concat(Array.prototype.slice.call(f));var y=g.box(g.types.avcC,new Uint8Array([1,w[3],w[4],w[5],252|3,224|d.sps.length].concat(w).concat([d.pps.length]).concat(p))),m=d.width,O=d.height,i=d.pixelRatio[0],r=d.pixelRatio[1];return g.box(g.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,m>>8&255,m&255,O>>8&255,O&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),y,g.box(g.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),g.box(g.types.pasp,new Uint8Array([i>>24,i>>16&255,i>>8&255,i&255,r>>24,r>>16&255,r>>8&255,r&255])))},g.esds=function(d){var w=d.config.length;return new Uint8Array([0,0,0,0,3,23+w,0,1,0,4,15+w,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([w]).concat(d.config).concat([6,1,2]))},g.mp4a=function(d){var w=d.samplerate;return g.box(g.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,d.channelCount,0,16,0,0,0,0,w>>8&255,w&255,0,0]),g.box(g.types.esds,g.esds(d)))},g.mp3=function(d){var w=d.samplerate;return g.box(g.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,d.channelCount,0,16,0,0,0,0,w>>8&255,w&255,0,0]))},g.stsd=function(d){return d.type==="audio"?!d.isAAC&&d.codec==="mp3"?g.box(g.types.stsd,g.STSD,g.mp3(d)):g.box(g.types.stsd,g.STSD,g.mp4a(d)):g.box(g.types.stsd,g.STSD,g.avc1(d))},g.tkhd=function(d){var w=d.id,p=d.duration*d.timescale,a=d.width,f=d.height,x=Math.floor(p/(U+1)),y=Math.floor(p%(U+1));return g.box(g.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,w>>24&255,w>>16&255,w>>8&255,w&255,0,0,0,0,x>>24,x>>16&255,x>>8&255,x&255,y>>24,y>>16&255,y>>8&255,y&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,f>>8&255,f&255,0,0]))},g.traf=function(d,w){var p=g.sdtp(d),a=d.id,f=Math.floor(w/(U+1)),x=Math.floor(w%(U+1));return g.box(g.types.traf,g.box(g.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),g.box(g.types.tfdt,new Uint8Array([1,0,0,0,f>>24,f>>16&255,f>>8&255,f&255,x>>24,x>>16&255,x>>8&255,x&255])),g.trun(d,p.length+16+20+8+16+8+8),p)},g.trak=function(d){return d.duration=d.duration||4294967295,g.box(g.types.trak,g.tkhd(d),g.mdia(d))},g.trex=function(d){var w=d.id;return g.box(g.types.trex,new Uint8Array([0,0,0,0,w>>24,w>>16&255,w>>8&255,w&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},g.trun=function(d,w){var p=d.samples||[],a=p.length,f=12+16*a,x=new Uint8Array(f),y,m,O,i,r,u;for(w+=8+f,x.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,w>>>24&255,w>>>16&255,w>>>8&255,w&255],0),y=0;y>>24&255,O>>>16&255,O>>>8&255,O&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,u>>>24&255,u>>>16&255,u>>>8&255,u&255],12+16*y);return g.box(g.types.trun,x)},g.initSegment=function(d){g.types||g.init();var w=g.moov(d),p=new Uint8Array(g.FTYP.byteLength+w.byteLength);return p.set(g.FTYP),p.set(w,g.FTYP.byteLength),p},g}();S.types=void 0,S.HDLR_TYPES=void 0,S.STTS=void 0,S.STSC=void 0,S.STCO=void 0,S.STSZ=void 0,S.VMHD=void 0,S.SMHD=void 0,S.STSD=void 0,S.FTYP=void 0,S.DINF=void 0,j.default=S},"./src/remux/mp4-remuxer.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return u}),L.d(j,"normalizePts",function(){return h});var U=L("./src/polyfills/number.ts"),S=L("./src/remux/aac-helper.ts"),g=L("./src/remux/mp4-generator.ts"),s=L("./src/events.ts"),d=L("./src/errors.ts"),w=L("./src/utils/logger.ts"),p=L("./src/types/loader.ts"),a=L("./src/utils/timescale-conversion.ts");function f(){return f=Object.assign||function(C){for(var A=1;A0?M:P.pts},o[0].pts);return l&&w.logger.debug("PTS rollover detected"),c},A.remux=function(o,l,c,M,P,R,k,I){var F,V,W,G,J,X,te=P,ee=P,be=o.pid>-1,ge=l.pid>-1,je=l.samples.length,He=o.samples.length>0,nt=je>1,Ge=(!be||He)&&(!ge||nt)||this.ISGenerated||k;if(Ge){this.ISGenerated||(W=this.generateIS(o,l,P));var he=this.isVideoContiguous,ce=-1;if(nt&&(ce=b(l.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if(X=!0,ce>0){w.logger.warn("[mp4-remuxer]: Dropped "+ce+" out of "+je+" video samples due to a missing keyframe");var Ee=this.getVideoStartPts(l.samples);l.samples=l.samples.slice(ce),l.dropped+=ce,ee+=(l.samples[0].pts-Ee)/(l.timescale||9e4)}else ce===-1&&(w.logger.warn("[mp4-remuxer]: No keyframe found out of "+je+" video samples"),X=!1);if(this.ISGenerated){if(He&&nt){var fe=this.getVideoStartPts(l.samples),Ne=h(o.samples[0].pts,fe)-fe,Ce=Ne/l.inputTimeScale;te+=Math.max(0,Ce),ee+=Math.max(0,-Ce)}if(He){if(o.samplerate||(w.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),W=this.generateIS(o,l,P)),V=this.remuxAudio(o,te,this.isAudioContiguous,R,ge||nt||I===p.PlaylistLevelType.AUDIO?ee:void 0),nt){var xe=V?V.endPTS-V.startPTS:0;l.inputTimeScale||(w.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),W=this.generateIS(o,l,P)),F=this.remuxVideo(l,ee,he,xe)}}else nt&&(F=this.remuxVideo(l,ee,he,0));F&&(F.firstKeyFrame=ce,F.independent=ce!==-1)}}return this.ISGenerated&&(c.samples.length&&(J=this.remuxID3(c,P)),M.samples.length&&(G=this.remuxText(M,P))),{audio:V,video:F,initSegment:W,independent:X,text:G,id3:J}},A.generateIS=function(o,l,c){var M=o.samples,P=l.samples,R=this.typeSupported,k={},I=!Object(U.isFiniteNumber)(this._initPTS),F="audio/mp4",V,W,G;if(I&&(V=W=Infinity),o.config&&M.length&&(o.timescale=o.samplerate,o.isAAC||(R.mpeg?(F="audio/mpeg",o.codec=""):R.mp3&&(o.codec="mp3")),k.audio={id:"audio",container:F,codec:o.codec,initSegment:!o.isAAC&&R.mpeg?new Uint8Array(0):g.default.initSegment([o]),metadata:{channelCount:o.channelCount}},I&&(G=o.inputTimeScale,V=W=M[0].pts-Math.round(G*c))),l.sps&&l.pps&&P.length&&(l.timescale=l.inputTimeScale,k.video={id:"main",container:"video/mp4",codec:l.codec,initSegment:g.default.initSegment([l]),metadata:{width:l.width,height:l.height}},I)){G=l.inputTimeScale;var J=this.getVideoStartPts(P),X=Math.round(G*c);W=Math.min(W,h(P[0].dts,J)-X),V=Math.min(V,J-X)}if(Object.keys(k).length)return this.ISGenerated=!0,I&&(this._initPTS=V,this._initDTS=W),{tracks:k,initPTS:V,timescale:G}},A.remuxVideo=function(o,l,c,M){var P=o.inputTimeScale,R=o.samples,k=[],I=R.length,F=this._initPTS,V=this.nextAvcDts,W=8,G,J,X,te=Number.POSITIVE_INFINITY,ee=Number.NEGATIVE_INFINITY,be=0,ge=!1;if(!c||V===null){var je=l*P,He=R[0].pts-h(R[0].dts,R[0].pts);V=je-He}for(var nt=0;ntGe.pts){var he=9e4*.2;be=Math.max(Math.min(be,Ge.pts-Ge.dts),-1*he)}Ge.dts0?nt-1:nt].dts&&(ge=!0)}ge&&R.sort(function(mn,pe){var Gt=mn.dts-pe.dts,Lt=mn.pts-pe.pts;return Gt||Lt}),J=R[0].dts,X=R[R.length-1].dts;var ce=Math.round((X-J)/(I-1));if(be<0){if(bece,ze=Ce<-1;if(xe||ze){xe?w.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Ce,!0)+" ms ("+Ce+"dts) hole between fragments detected, filling it"):w.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Ce,!0)+" ms ("+Ce+"dts) overlapping between fragments detected"),J=V;var Le=R[0].pts-Ce;R[0].dts=J,R[0].pts=Le,w.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(Le,!0)+"/"+Object(a.toMsFromMpegTsClock)(J,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Ce,!0)+" ms")}}r&&(J=Math.max(0,J));for(var Fe=0,Pe=0,Ve=0;Ve0?lt-1:lt].dts;if(Ae.stretchShortVideoTrack&&this.nextAudioPts!==null){var Se=Math.floor(Ae.maxBufferHole*P),dt=(M?te+M*P:this.nextAudioPts)-Ht.pts;dt>Se?(G=dt-ye,G<0&&(G=ye),w.logger.log("[mp4-remuxer]: It is approximately "+dt/90+" ms to the next segment; using duration "+G/90+" ms for the last video frame.")):G=ye}else G=ye}var et=Math.round(Ht.pts-Ht.dts);k.push(new E(Ht.key,G,Tt,et))}if(k.length&&O&&O<70){var xt=k[0].flags;xt.dependsOn=2,xt.isNonSync=0}console.assert(G!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=V=X+G,this.isVideoContiguous=!0;var xn=g.default.moof(o.sequenceNumber++,J,f({},o,{samples:k})),Dt="video",_t={data1:xn,data2:Un,startPTS:te/P,endPTS:(ee+G)/P,startDTS:J/P,endDTS:V/P,type:Dt,hasAudio:!1,hasVideo:!0,nb:k.length,dropped:o.dropped};return o.samples=[],o.dropped=0,console.assert(Un.length,"MDAT length must not be zero"),_t},A.remuxAudio=function(o,l,c,M,P){var R=o.inputTimeScale,k=o.samplerate?o.samplerate:R,I=R/k,F=o.isAAC?y:m,V=F*I,W=this._initPTS,G=!o.isAAC&&this.typeSupported.mpeg,J=[],X=o.samples,te=G?0:8,ee=this.nextAudioPts||-1,be=l*R;if(this.isAudioContiguous=c=c||X.length&&ee>0&&(M&&Math.abs(be-ee)<9e3||Math.abs(h(X[0].pts-W,be)-ee)<20*V),X.forEach(function(Xe){Xe.pts=h(Xe.pts-W,be)}),!c||ee<0){if(X=X.filter(function(Xe){return Xe.pts>=0}),!X.length)return;P===0?ee=0:M?ee=Math.max(0,be):ee=X[0].pts}if(o.isAAC)for(var ge=P!==void 0,je=this.config.maxAudioFramesDrift,He=0,nt=ee;He=je*V&&Ee0){Pe+=te;try{Fe=new Uint8Array(Pe)}catch(Xe){this.observer.emit(s.Events.ERROR,s.Events.ERROR,{type:d.ErrorTypes.MUX_ERROR,details:d.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Pe,reason:"fail allocating audio mdat "+Pe});return}if(!G){var Un=new DataView(Fe.buffer);Un.setUint32(0,Pe),Fe.set(g.default.types.mdat,4)}}else return;Fe.set(tn,te);var mt=tn.byteLength;te+=mt,J.push(new E(!0,F,mt,0)),Le=Qt}var lt=J.length;if(!lt)return;var Ht=J[J.length-1];this.nextAudioPts=ee=Le+I*Ht.duration;var sn=G?new Uint8Array(0):g.default.moof(o.sequenceNumber++,ze/I,f({},o,{samples:J}));o.samples=[];var Tt=ze/R,wt=ee/R,Qe="audio",Je={data1:sn,data2:Fe,startPTS:Tt,endPTS:wt,startDTS:Tt,endDTS:wt,type:Qe,hasAudio:!0,hasVideo:!1,nb:lt};return this.isAudioContiguous=!0,console.assert(Fe.length,"MDAT length must not be zero"),Je},A.remuxEmptyAudio=function(o,l,c,M){var P=o.inputTimeScale,R=o.samplerate?o.samplerate:P,k=P/R,I=this.nextAudioPts,F=(I!==null?I:M.startDTS*P)+this._initDTS,V=M.endDTS*P+this._initDTS,W=k*y,G=Math.ceil((V-F)/W),J=S.default.getSilentFrame(o.manifestCodec||o.codec,o.channelCount);if(w.logger.warn("[mp4-remuxer]: remux empty Audio"),!J){w.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var X=[],te=0;te4294967296;)C+=v;return C}function b(C){for(var A=0;A0?this.lastEndDTS=o:(s.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var l=!!C.audio,c=!!C.video,M="";l&&(M+="audio"),c&&(M+="video");var P={data1:E,startPTS:v,startDTS:v,endPTS:o,endDTS:o,type:M,hasAudio:l,hasVideo:c,nb:1,dropped:0};return b.audio=P.type==="audio"?P:void 0,b.video=P.type!=="audio"?P:void 0,b.text=i,b.id3=O,b.initSegment=t,b},a}(),w=function(f,x,y){return Object(S.getStartDTS)(f,x)-y};function p(a,f){var x=a==null?void 0:a.codec;return x&&x.length>4?x:x==="hvc1"?"hvc1.1.c.L120.90":x==="av01"?"av01.0.04M.08":x==="avc1"||f===g.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}j.default=d},"./src/task-loop.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"default",function(){return U});var U=function(){function S(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var g=S.prototype;return g.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},g.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},g.onHandlerDestroyed=function(){},g.hasInterval=function(){return!!this._tickInterval},g.hasNextTick=function(){return!!this._tickTimer},g.setInterval=function(d){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,d),!0)},g.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},g.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},g.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},g.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},g.doTick=function(){},S}()},"./src/types/cmcd.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"CMCDVersion",function(){return U}),L.d(j,"CMCDObjectType",function(){return S}),L.d(j,"CMCDStreamingFormat",function(){return g}),L.d(j,"CMCDStreamType",function(){return s});var U=1,S;(function(d){d.MANIFEST="m",d.AUDIO="a",d.VIDEO="v",d.MUXED="av",d.INIT="i",d.CAPTION="c",d.TIMED_TEXT="tt",d.KEY="k",d.OTHER="o"})(S||(S={}));var g;(function(d){d.DASH="d",d.HLS="h",d.SMOOTH="s",d.OTHER="o"})(g||(g={}));var s;(function(d){d.VOD="v",d.LIVE="l"})(s||(s={}))},"./src/types/level.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"HlsSkip",function(){return g}),L.d(j,"getSkipValue",function(){return s}),L.d(j,"HlsUrlParameters",function(){return d}),L.d(j,"Level",function(){return w});function U(p,a){for(var f=0;fNumber.MAX_SAFE_INTEGER?Infinity:a},d.hexadecimalInteger=function(p){if(this[p]){var a=(this[p]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var f=new Uint8Array(a.length/2),x=0;xNumber.MAX_SAFE_INTEGER?Infinity:a},d.decimalFloatingPoint=function(p){return parseFloat(this[p])},d.optionalFloat=function(p,a){var f=this[p];return f?parseFloat(f):a},d.enumeratedString=function(p){return this[p]},d.bool=function(p){return this[p]==="YES"},d.decimalResolution=function(p){var a=U.exec(this[p]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},s.parseAttrList=function(p){var a,f={},x='"';for(S.lastIndex=0;(a=S.exec(p))!==null;){var y=a[2];y.indexOf(x)===0&&y.lastIndexOf(x)===y.length-1&&(y=y.slice(1,-1)),f[a[1]]=y}return f},s}()},"./src/utils/binary-search.ts":function(Y,j,L){"use strict";L.r(j);var U={search:function(g,s){for(var d=0,w=g.length-1,p=null,a=null;d<=w;){p=(d+w)/2|0,a=g[p];var f=s(a);if(f>0)d=p+1;else if(f<0)w=p-1;else return a}return null}};j.default=U},"./src/utils/buffer-helper.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"BufferHelper",function(){return g});var U=L("./src/utils/logger.ts"),S={length:0,start:function(){return 0},end:function(){return 0}},g=function(){function s(){}return s.isBuffered=function(w,p){try{if(w){for(var a=s.getBuffered(w),f=0;f=a.start(f)&&p<=a.end(f))return!0}}catch(x){}return!1},s.bufferInfo=function(w,p,a){try{if(w){var f=s.getBuffered(w),x=[],y;for(y=0;ym&&(f[y-1].end=w[x].end):f.push(w[x])}else f.push(w[x])}else f=w;for(var O=0,i,r=p,u=p,h=0;h=b&&p=c&&U.logger.log(this.time+" ["+c+"] "+M)},v}(),O=function(o){for(var l=[],c=0;cd&&(this.logger.log(y.DEBUG,"Too large cursor position "+this.pos),this.pos=d)},o.moveCursor=function(c){var M=this.pos+c;if(c>1)for(var P=this.pos+1;P=144&&this.backSpace();var M=g(c);if(this.pos>=d){this.logger.log(y.ERROR,"Cannot insert "+c.toString(16)+" ("+M+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(M,this.currPenState),this.moveCursor(1)},o.clearFromPos=function(c){var M;for(M=c;M0&&(c?P="["+M.join(" | ")+"]":P=M.join(` +`)),P},o.getTextAndFormat=function(){return this.rows},v}(),b=function(){function v(l,c,M){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=l,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new h(M),this.nonDisplayedMemory=new h(M),this.lastOutputScreen=new h(M),this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=M}var o=v.prototype;return o.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},o.getHandler=function(){return this.outputFilter},o.setHandler=function(c){this.outputFilter=c},o.setPAC=function(c){this.writeScreen.setPAC(c)},o.setBkgData=function(c){this.writeScreen.setBkgData(c)},o.setMode=function(c){if(c===this.mode)return;this.mode=c,this.logger.log(y.INFO,"MODE="+c),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=c},o.insertChars=function(c){for(var M=0;M=46,M.italics)M.foreground="white";else{var P=Math.floor(c/2)-16,R=["white","green","blue","cyan","red","yellow","magenta"];M.foreground=R[P]}this.logger.log(y.INFO,"MIDROW: "+JSON.stringify(M)),this.writeScreen.setPen(M)},o.outputDataUpdate=function(c){c===void 0&&(c=!1);var M=this.logger.time;if(M===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=M:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,M,this.lastOutputScreen),c&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:M),this.lastOutputScreen.copy(this.displayedMemory))},o.cueSplitAtTime=function(c){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,c,this.displayedMemory),this.cueStartTime=c))},v}(),E=function(){function v(l,c,M){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var P=new m;this.channels=[null,new b(l,c,P),new b(l+1,M,P)],this.cmdHistory=A(),this.logger=P}var o=v.prototype;return o.getHandler=function(c){return this.channels[c].getHandler()},o.setHandler=function(c,M){this.channels[c].setHandler(M)},o.addData=function(c,M){var P,R,k,I=!1;this.logger.time=c;for(var F=0;F ("+O([R,k])+")"),P=this.parseCmd(R,k),P||(P=this.parseMidrow(R,k)),P||(P=this.parsePAC(R,k)),P||(P=this.parseBackgroundAttributes(R,k)),!P&&(I=this.parseChars(R,k),I)){var V=this.currentChannel;if(V&&V>0){var W=this.channels[V];W.insertChars(I)}else this.logger.log(y.WARNING,"No channel found yet. TEXT-MODE?")}!P&&!I&&this.logger.log(y.WARNING,"Couldn't parse cleaned data "+O([R,k])+" orig: "+O([M[F],M[F+1]]))}},o.parseCmd=function(c,M){var P=this.cmdHistory,R=(c===20||c===28||c===21||c===29)&&M>=32&&M<=47,k=(c===23||c===31)&&M>=33&&M<=35;if(!(R||k))return!1;if(C(c,M,P))return t(null,null,P),this.logger.log(y.DEBUG,"Repeated command ("+O([c,M])+") is dropped"),!0;var I=c===20||c===21||c===23?1:2,F=this.channels[I];return c===20||c===21||c===28||c===29?M===32?F.ccRCL():M===33?F.ccBS():M===34?F.ccAOF():M===35?F.ccAON():M===36?F.ccDER():M===37?F.ccRU(2):M===38?F.ccRU(3):M===39?F.ccRU(4):M===40?F.ccFON():M===41?F.ccRDC():M===42?F.ccTR():M===43?F.ccRTD():M===44?F.ccEDM():M===45?F.ccCR():M===46?F.ccENM():M===47&&F.ccEOC():F.ccTO(M-32),t(c,M,P),this.currentChannel=I,!0},o.parseMidrow=function(c,M){var P=0;if((c===17||c===25)&&M>=32&&M<=47){if(c===17?P=1:P=2,P!==this.currentChannel)return this.logger.log(y.ERROR,"Mismatch channel in midrow parsing"),!1;var R=this.channels[P];return R?(R.ccMIDROW(M),this.logger.log(y.DEBUG,"MIDROW ("+O([c,M])+")"),!0):!1}return!1},o.parsePAC=function(c,M){var P,R=this.cmdHistory,k=(c>=17&&c<=23||c>=25&&c<=31)&&M>=64&&M<=127,I=(c===16||c===24)&&M>=64&&M<=95;if(!(k||I))return!1;if(C(c,M,R))return t(null,null,R),!0;var F=c<=23?1:2;M>=64&&M<=95?P=F===1?w[c]:a[c]:P=F===1?p[c]:f[c];var V=this.channels[F];return V?(V.setPAC(this.interpretPAC(P,M)),t(c,M,R),this.currentChannel=F,!0):!1},o.interpretPAC=function(c,M){var P,R={color:null,italics:!1,indent:null,underline:!1,row:c};return M>95?P=M-96:P=M-64,R.underline=(P&1)===1,P<=13?R.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(P/2)]:P<=15?(R.italics=!0,R.color="white"):R.indent=Math.floor((P-16)/2)*4,R},o.parseChars=function(c,M){var P,R=null,k=null;if(c>=25?(P=2,k=c-8):(P=1,k=c),k>=17&&k<=19){var I;k===17?I=M+80:k===18?I=M+112:I=M+144,this.logger.log(y.INFO,"Special char '"+g(I)+"' in channel "+P),R=[I]}else c>=32&&c<=127&&(R=M===0?[c]:[c,M]);if(R){var F=O(R);this.logger.log(y.DEBUG,"Char codes = "+F.join(",")),t(c,M,this.cmdHistory)}return R},o.parseBackgroundAttributes=function(c,M){var P=(c===16||c===24)&&M>=32&&M<=47,R=(c===23||c===31)&&M>=45&&M<=47;if(!(P||R))return!1;var k,I={};c===16||c===24?(k=Math.floor((M-32)/2),I.background=x[k],M%2===1&&(I.background=I.background+"_semi")):M===45?I.background="transparent":(I.foreground="black",M===47&&(I.underline=!0));var F=c<=23?1:2,V=this.channels[F];return V.setBkgData(I),t(c,M,this.cmdHistory),!0},o.reset=function(){for(var c=0;c=16?r--:r++;var t=Object(U.fixLineBreaks)(u.trim()),C=Object(S.generateCueId)(a,f,t);(!p||!p.cues||!p.cues.getCueById(C))&&(O=new h(a,f,t),O.id=C,O.line=b+1,O.align="left",O.position=10+Math.min(80,Math.floor(r*8/32)*10),y.push(O))}return p&&y.length&&(y.sort(function(A,v){return A.line==="auto"||v.line==="auto"?0:A.line>8&&v.line>8?v.line-A.line:A.line-v.line}),y.forEach(function(A){return Object(g.addCueToTrack)(p,A)})),y}};j.default=d},"./src/utils/discontinuities.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"findFirstFragWithCC",function(){return s}),L.d(j,"shouldAlignOnDiscontinuities",function(){return d}),L.d(j,"findDiscontinuousReferenceFrag",function(){return w}),L.d(j,"adjustSlidingStart",function(){return a}),L.d(j,"alignStream",function(){return f}),L.d(j,"alignPDT",function(){return y}),L.d(j,"alignFragmentByPDTDelta",function(){return m}),L.d(j,"alignMediaPlaylistByPDT",function(){return O});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/logger.ts"),g=L("./src/controller/level-helper.ts");function s(i,r){for(var u=null,h=0,b=i.length;hu.startCC||i&&i.cc=this.minWeight_},s.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},s.destroy=function(){},g}();j.default=S},"./src/utils/ewma.ts":function(Y,j,L){"use strict";L.r(j);var U=function(){function S(s,d,w){d===void 0&&(d=0),w===void 0&&(w=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=s,this.alpha_=s?Math.exp(Math.log(.5)/s):0,this.estimate_=d,this.totalWeight_=w}var g=S.prototype;return g.sample=function(d,w){var p=Math.pow(this.alpha_,d);this.estimate_=w*(1-p)+p*this.estimate_,this.totalWeight_+=d},g.getTotalWeight=function(){return this.totalWeight_},g.getEstimate=function(){if(this.alpha_){var d=1-Math.pow(this.alpha_,this.totalWeight_);if(d)return this.estimate_/d}return this.estimate_},S}();j.default=U},"./src/utils/fetch-loader.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"fetchSupported",function(){return m});var U=L("./src/polyfills/number.ts"),S=L("./src/loader/load-stats.ts"),g=L("./src/demux/chunk-cache.ts");function s(h,b){h.prototype=Object.create(b.prototype),h.prototype.constructor=h,f(h,b)}function d(h){var b=typeof Map=="function"?new Map:void 0;return d=function(t){if(t===null||!a(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof b!="undefined"){if(b.has(t))return b.get(t);b.set(t,C)}function C(){return w(t,arguments,x(this).constructor)}return C.prototype=Object.create(t.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),f(C,t)},d(h)}function w(h,b,E){return p()?w=Reflect.construct:w=function(C,A,v){var o=[null];o.push.apply(o,A);var l=Function.bind.apply(C,o),c=new l;return v&&f(c,v.prototype),c},w.apply(null,arguments)}function p(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}function a(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function f(h,b){return f=Object.setPrototypeOf||function(t,C){return t.__proto__=C,t},f(h,b)}function x(h){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},x(h)}function y(){return y=Object.assign||function(h){for(var b=1;b=v&&o(C,A,l.flush(),t)):o(C,A,k,t),P()}).catch(function(){return Promise.reject()})};return M()},h}();function i(h,b){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:b,headers:new self.Headers(y({},h.headers))};return h.rangeEnd&&E.headers.set("Range","bytes="+h.rangeStart+"-"+String(h.rangeEnd-1)),E}function r(h,b){return new self.Request(h.url,b)}var u=function(h){s(b,h);function b(E,t,C){var A;return A=h.call(this,E)||this,A.code=void 0,A.details=void 0,A.code=t,A.details=C,A}return b}(d(Error));j.default=O},"./src/utils/imsc1-ttml-parser.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"IMSC1_CODEC",function(){return a}),L.d(j,"parseIMSC1",function(){return m});var U=L("./src/utils/mp4-tools.ts"),S=L("./src/utils/vttparser.ts"),g=L("./src/utils/vttcue.ts"),s=L("./src/demux/id3.ts"),d=L("./src/utils/timescale-conversion.ts"),w=L("./src/utils/webvtt-parser.ts");function p(){return p=Object.assign||function(v){for(var o=1;o"):U}function d(a){for(var f=arguments.length,x=new Array(f>1?f-1:0),y=1;y>24,b[E+1]=t>>16&255,b[E+2]=t>>8&255,b[E+3]=t&255}function f(b,E){var t=[];if(!E.length)return t;var C,A,v;"data"in b?(C=b.data,A=b.start,v=b.end):(C=b,A=0,v=C.byteLength);for(var o=A;o1?o+l:v;if(c===E[0])if(E.length===1)t.push({data:C,start:o+8,end:M});else{var P=f({data:C,start:o+8,end:M},E.slice(1));P.length&&s.apply(t,P)}o=M}return t}function x(b){var E=f(b,["moov"]),t=E[0],C=t?t.end:null,A=f(b,["sidx"]);if(!A||!A[0])return null;var v=[],o=A[0],l=o.data[0],c=l===0?8:16,M=p(o,c);c+=4;var P=0,R=0;l===0?c+=8:c+=16,c+=2;var k=o.end+R,I=w(o,c);c+=2;for(var F=0;F>>31;if(J===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var X=p(o,V);V+=4,v.push({referenceSize:G,subsegmentDuration:X,info:{duration:X/M,start:k,end:k+G-1}}),k+=G,V+=4,c=V}return{earliestPresentationTime:P,timescale:M,version:l,referencesCount:I,references:v,moovEndOffset:C}}function y(b){for(var E=[],t=f(b,["moov","trak"]),C=0;Cd)&&(this.startTime=d),this.endTime=w,this.screen=p,this.timelineController.createCaptionsTrack(this.trackName)},g.reset=function(){this.cueRanges=[]},S}()},"./src/utils/texttrack-utils.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"sendAddTrackEvent",function(){return S}),L.d(j,"addCueToTrack",function(){return g}),L.d(j,"clearCurrentCues",function(){return s}),L.d(j,"removeCuesInRange",function(){return d}),L.d(j,"getCuesInRange",function(){return p});var U=L("./src/utils/logger.ts");function S(a,f){var x;try{x=new Event("addtrack")}catch(y){x=document.createEvent("Event"),x.initEvent("addtrack",!1,!1)}x.track=a,f.dispatchEvent(x)}function g(a,f){var x=a.mode;if(x==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(f.id))try{if(a.addCue(f),!a.cues.getCueById(f.id))throw new Error("addCue is failed for: "+f)}catch(m){U.logger.debug("[texttrack-utils]: "+m);var y=new self.TextTrackCue(f.startTime,f.endTime,f.text);y.id=f.id,a.addCue(y)}x==="disabled"&&(a.mode=x)}function s(a){var f=a.mode;if(f==="disabled"&&(a.mode="hidden"),a.cues)for(var x=a.cues.length;x--;)a.removeCue(a.cues[x]);f==="disabled"&&(a.mode=f)}function d(a,f,x){var y=a.mode;if(y==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var m=p(a.cues,f,x),O=0;Oa[x].endTime)return-1;for(var y=0,m=x;y<=m;){var O=Math.floor((m+y)/2);if(fa[O].startTime&&y-1)for(var O=m,i=a.length;O=f&&r.endTime<=x)y.push(r);else if(r.startTime>x)return y}return y}},"./src/utils/time-ranges.ts":function(Y,j,L){"use strict";L.r(j);var U={toString:function(g){for(var s="",d=g.length,w=0;w1?f-1:0),y=1;y100)throw new Error("Position must be between 0 and 100.");v=P,this.hasBeenReset=!0}})),Object.defineProperty(y,"positionAlign",w({},m,{get:function(){return o},set:function(P){var R=d(P);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");o=R,this.hasBeenReset=!0}})),Object.defineProperty(y,"size",w({},m,{get:function(){return l},set:function(P){if(P<0||P>100)throw new Error("Size must be between 0 and 100.");l=P,this.hasBeenReset=!0}})),Object.defineProperty(y,"align",w({},m,{get:function(){return c},set:function(P){var R=d(P);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");c=R,this.hasBeenReset=!0}})),y.displayState=void 0}return p.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},p}()},"./src/utils/vttparser.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"parseTimeStamp",function(){return g}),L.d(j,"fixLineBreaks",function(){return f}),L.d(j,"VTTParser",function(){return x});var U=L("./src/utils/vttcue.ts"),S=function(){function y(){}var m=y.prototype;return m.decode=function(i,r){if(!i)return"";if(typeof i!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(i))},y}();function g(y){function m(i,r,u,h){return(i|0)*3600+(r|0)*60+(u|0)+parseFloat(h||0)}var O=y.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return O?parseFloat(O[2])>59?m(O[2],O[3],0,O[4]):m(O[1],O[2],O[3],O[4]):null}var s=function(){function y(){this.values=Object.create(null)}var m=y.prototype;return m.set=function(i,r){!this.get(i)&&r!==""&&(this.values[i]=r)},m.get=function(i,r,u){return u?this.has(i)?this.values[i]:r[u]:this.has(i)?this.values[i]:r},m.has=function(i){return i in this.values},m.alt=function(i,r,u){for(var h=0;h=0&&u<=100)return this.set(i,u),!0}return!1},y}();function d(y,m,O,i){var r=i?y.split(i):[y];for(var u in r){if(typeof r[u]!="string")continue;var h=r[u].split(O);if(h.length!==2)continue;var b=h[0],E=h[1];m(b,E)}}var w=new U.default(0,0,""),p=w.align==="middle"?"middle":"center";function a(y,m,O){var i=y;function r(){var b=g(y);if(b===null)throw new Error("Malformed timestamp: "+i);return y=y.replace(/^[^\sa-zA-Z-]+/,""),b}function u(b,E){var t=new s;d(b,function(v,o){var l;switch(v){case"region":for(var c=O.length-1;c>=0;c--)if(O[c].id===o){t.set(v,O[c].region);break}break;case"vertical":t.alt(v,o,["rl","lr"]);break;case"line":l=o.split(","),t.integer(v,l[0]),t.percent(v,l[0])&&t.set("snapToLines",!1),t.alt(v,l[0],["auto"]),l.length===2&&t.alt("lineAlign",l[1],["start",p,"end"]);break;case"position":l=o.split(","),t.percent(v,l[0]),l.length===2&&t.alt("positionAlign",l[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":t.percent(v,o);break;case"align":t.alt(v,o,["start",p,"end","left","right"]);break}},/:/,/\s/),E.region=t.get("region",null),E.vertical=t.get("vertical","");var C=t.get("line","auto");C==="auto"&&w.line===-1&&(C=-1),E.line=C,E.lineAlign=t.get("lineAlign","start"),E.snapToLines=t.get("snapToLines",!0),E.size=t.get("size",100),E.align=t.get("align",p);var A=t.get("position","auto");A==="auto"&&w.position===50&&(A=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=A}function h(){y=y.replace(/^\s+/,"")}if(h(),m.startTime=r(),h(),y.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+i);y=y.substr(3),h(),m.endTime=r(),h(),u(y,m)}function f(y){return y.replace(//gi,` +`)}var x=function(){function y(){this.state="INITIAL",this.buffer="",this.decoder=new S,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var m=y.prototype;return m.parse=function(i){var r=this;i&&(r.buffer+=r.decoder.decode(i,{stream:!0}));function u(){var A=r.buffer,v=0;for(A=f(A);v")===-1){r.cue.id=y;continue}case"CUE":if(!r.cue){r.state="BADCUE";continue}try{a(y,r.cue,r.regionList)}catch(A){r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":{var C=y.indexOf("-->")!==-1;if(!y||C&&(t=!0)){r.oncue&&r.cue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}if(r.cue===null)continue;r.cue.text&&(r.cue.text+=` -`),r.cue.text+=y}continue;case"BADCUE":y||(r.state="ID")}}}catch(A){r.state==="CUETEXT"&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state=r.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},m.flush=function(){var i=this;try{if((i.cue||i.state==="HEADER")&&(i.buffer+=` +`&&++v,r.buffer=A.substr(v),o}function h(A){d(A,function(v,o){},/:/)}try{var b="";if(r.state==="INITIAL"){if(!/\r\n|\n/.test(r.buffer))return this;b=u();var E=b.match(/^()?WEBVTT([ \t].*)?$/);if(!E||!E[0])throw new Error("Malformed WebVTT signature.");r.state="HEADER"}for(var t=!1;r.buffer;){if(!/\r\n|\n/.test(r.buffer))return this;t?t=!1:b=u();switch(r.state){case"HEADER":/:/.test(b)?h(b):b||(r.state="ID");continue;case"NOTE":b||(r.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(b)){r.state="NOTE";break}if(!b)continue;if(r.cue=new U.default(0,0,""),r.state="CUE",b.indexOf("-->")===-1){r.cue.id=b;continue}case"CUE":if(!r.cue){r.state="BADCUE";continue}try{a(b,r.cue,r.regionList)}catch(A){r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":{var C=b.indexOf("-->")!==-1;if(!b||C&&(t=!0)){r.oncue&&r.cue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}if(r.cue===null)continue;r.cue.text&&(r.cue.text+=` +`),r.cue.text+=b}continue;case"BADCUE":b||(r.state="ID")}}}catch(A){r.state==="CUETEXT"&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state=r.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},m.flush=function(){var i=this;try{if((i.cue||i.state==="HEADER")&&(i.buffer+=` -`,i.parse()),i.state==="INITIAL"||i.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(r){i.onparsingerror&&i.onparsingerror(r)}return i.onflush&&i.onflush(),this},b}()},"./src/utils/webvtt-parser.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"generateCueId",function(){return x}),L.d(j,"parseWebVTT",function(){return m});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/vttparser.ts"),g=L("./src/demux/id3.ts"),s=L("./src/utils/timescale-conversion.ts"),d=L("./src/remux/mp4-remuxer.ts"),w=/\r\n|\n\r|\n|\r/g,p=function(i,r,u){return u===void 0&&(u=0),i.substr(u,r.length)===r},a=function(i){var r=parseInt(i.substr(-3)),u=parseInt(i.substr(-6,2)),h=parseInt(i.substr(-9,2)),y=i.length>9?parseInt(i.substr(0,i.indexOf(":"))):0;if(!Object(U.isFiniteNumber)(r)||!Object(U.isFiniteNumber)(u)||!Object(U.isFiniteNumber)(h)||!Object(U.isFiniteNumber)(y))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+i);return r+=1e3*u,r+=60*1e3*h,r+=60*60*1e3*y,r},f=function(i){for(var r=5381,u=i.length;u;)r=r*33^i.charCodeAt(--u);return(r>>>0).toString()};function x(O,i,r){return f(O.toString())+f(i.toString())+f(r)}var b=function(i,r,u){var h=i[r],y=i[h.prevCC];if(!y||!y.new&&h.new){i.ccOffset=i.presentationOffset=h.start,h.new=!1;return}for(;(E=y)!==null&&E!==void 0&&E.new;){var E;i.ccOffset+=h.start-y.start,h.new=!1,h=y,y=i[h.prevCC]}i.presentationOffset=u};function m(O,i,r,u,h,y,E,t){var C=new S.VTTParser,A=Object(g.utf8ArrayToStr)(new Uint8Array(O)).trim().replace(w,` +`,i.parse()),i.state==="INITIAL"||i.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(r){i.onparsingerror&&i.onparsingerror(r)}return i.onflush&&i.onflush(),this},y}()},"./src/utils/webvtt-parser.ts":function(Y,j,L){"use strict";L.r(j),L.d(j,"generateCueId",function(){return x}),L.d(j,"parseWebVTT",function(){return m});var U=L("./src/polyfills/number.ts"),S=L("./src/utils/vttparser.ts"),g=L("./src/demux/id3.ts"),s=L("./src/utils/timescale-conversion.ts"),d=L("./src/remux/mp4-remuxer.ts"),w=/\r\n|\n\r|\n|\r/g,p=function(i,r,u){return u===void 0&&(u=0),i.substr(u,r.length)===r},a=function(i){var r=parseInt(i.substr(-3)),u=parseInt(i.substr(-6,2)),h=parseInt(i.substr(-9,2)),b=i.length>9?parseInt(i.substr(0,i.indexOf(":"))):0;if(!Object(U.isFiniteNumber)(r)||!Object(U.isFiniteNumber)(u)||!Object(U.isFiniteNumber)(h)||!Object(U.isFiniteNumber)(b))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+i);return r+=1e3*u,r+=60*1e3*h,r+=60*60*1e3*b,r},f=function(i){for(var r=5381,u=i.length;u;)r=r*33^i.charCodeAt(--u);return(r>>>0).toString()};function x(O,i,r){return f(O.toString())+f(i.toString())+f(r)}var y=function(i,r,u){var h=i[r],b=i[h.prevCC];if(!b||!b.new&&h.new){i.ccOffset=i.presentationOffset=h.start,h.new=!1;return}for(;(E=b)!==null&&E!==void 0&&E.new;){var E;i.ccOffset+=h.start-b.start,h.new=!1,h=b,b=i[h.prevCC]}i.presentationOffset=u};function m(O,i,r,u,h,b,E,t){var C=new S.VTTParser,A=Object(g.utf8ArrayToStr)(new Uint8Array(O)).trim().replace(w,` `).split(` -`),v=[],o=Object(s.toMpegTsClockFromTimescale)(i,r),l="00:00.000",c=0,M=0,P,R=!0,k=!1;C.oncue=function(I){var F=u[h],V=u.ccOffset,W=(c-o)/9e4;if(F!=null&&F.new&&(M!==void 0?V=u.ccOffset=F.start:b(u,h,W)),W&&(V=W-u.presentationOffset),k){var G=I.endTime-I.startTime,J=Object(d.normalizePts)((I.startTime+V-M)*9e4,y*9e4)/9e4;I.startTime=J,I.endTime=J+G}var X=I.text.trim();I.text=decodeURIComponent(encodeURIComponent(X)),I.id||(I.id=x(I.startTime,I.endTime,X)),I.endTime>0&&v.push(I)},C.onparsingerror=function(I){P=I},C.onflush=function(){if(P){t(P);return}E(v)},A.forEach(function(I){if(R)if(p(I,"X-TIMESTAMP-MAP=")){R=!1,k=!0,I.substr(16).split(",").forEach(function(F){p(F,"LOCAL:")?l=F.substr(6):p(F,"MPEGTS:")&&(c=parseInt(F.substr(7)))});try{M=a(l)/1e3}catch(F){k=!1,P=F}return}else I===""&&(R=!1);C.parse(I+` -`)}),C.flush()}},"./src/utils/xhr-loader.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/utils/logger.ts"),S=L("./src/loader/load-stats.ts"),g=/^age:\s*[\d.]+\s*$/m,s=function(){function d(p){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=p?p.xhrSetup:null,this.stats=new S.LoadStats,this.retryDelay=0}var w=d.prototype;return w.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},w.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},w.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},w.load=function(a,f,x){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=f,this.callbacks=x,this.retryDelay=f.retryDelay,this.loadInternal()},w.loadInternal=function(){var a=this.config,f=this.context;if(!a)return;var x=this.loader=new self.XMLHttpRequest,b=this.stats;b.loading.first=0,b.loaded=0;var m=this.xhrSetup;try{if(m)try{m(x,f.url)}catch(r){x.open("GET",f.url,!0),m(x,f.url)}x.readyState||x.open("GET",f.url,!0);var O=this.context.headers;if(O)for(var i in O)x.setRequestHeader(i,O[i])}catch(r){this.callbacks.onError({code:x.status,text:r.message},f,x);return}f.rangeEnd&&x.setRequestHeader("Range","bytes="+f.rangeStart+"-"+(f.rangeEnd-1)),x.onreadystatechange=this.readystatechange.bind(this),x.onprogress=this.loadprogress.bind(this),x.responseType=f.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),x.send()},w.readystatechange=function(){var a=this.context,f=this.loader,x=this.stats;if(!a||!f)return;var b=f.readyState,m=this.config;if(x.aborted)return;if(b>=2)if(self.clearTimeout(this.requestTimeout),x.loading.first===0&&(x.loading.first=Math.max(self.performance.now(),x.loading.start)),b===4){f.onreadystatechange=null,f.onprogress=null;var O=f.status;if(O>=200&&O<300){x.loading.end=Math.max(self.performance.now(),x.loading.first);var i,r;if(a.responseType==="arraybuffer"?(i=f.response,r=i.byteLength):(i=f.responseText,r=i.length),x.loaded=x.total=r,!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(x,a,i,f),!this.callbacks)return;var h={url:f.responseURL,data:i};this.callbacks.onSuccess(h,x,a,f)}else x.retry>=m.maxRetry||O>=400&&O<499?(U.logger.error(O+" while loading "+a.url),this.callbacks.onError({code:O,text:f.statusText},a,f)):(U.logger.warn(O+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,m.maxRetryDelay),x.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),m.timeout)},w.loadtimeout=function(){U.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},w.loadprogress=function(a){var f=this.stats;f.loaded=a.loaded,a.lengthComputable&&(f.total=a.total)},w.getCacheAge=function(){var a=null;if(this.loader&&g.test(this.loader.getAllResponseHeaders())){var f=this.loader.getResponseHeader("age");a=f?parseFloat(f):null}return a},d}();j.default=s}}).default})},vHTk:function(Ye,ie,_){Ye.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Ye,ie,_){var Y=_("SrGk"),j=_("bYtY");function L(g,s){Y.call(this,g,s,["filter"],"__filter_in_use__","_shadowDom")}j.inherits(L,Y),L.prototype.addWithoutUpdate=function(g,s){if(s&&U(s.style)){var d;if(s._shadowDom){d=s._shadowDom;var w=this.getDefs(!0);w.contains(s._shadowDom)||this.addDom(d)}else d=this.add(s);this.markUsed(s);var p=d.getAttribute("id");g.style.filter="url(#"+p+")"}},L.prototype.add=function(g){var s=this.createElement("filter");return g._shadowDomId=g._shadowDomId||this.nextId++,s.setAttribute("id","zr"+this._zrId+"-shadow-"+g._shadowDomId),this.updateDom(g,s),this.addDom(s),s},L.prototype.update=function(g,s){var d=s.style;if(U(d)){var w=this;Y.prototype.update.call(this,s,function(){w.updateDom(s,s._shadowDom)})}else this.remove(g,s)},L.prototype.remove=function(g,s){s._shadowDomId!=null&&(this.removeDom(g),g.style.filter="")},L.prototype.updateDom=function(g,s){var d=s.getElementsByTagName("feDropShadow");d.length===0?d=this.createElement("feDropShadow"):d=d[0];var w=g.style,p=g.scale&&g.scale[0]||1,a=g.scale&&g.scale[1]||1,f,x,b,m;if(w.shadowBlur||w.shadowOffsetX||w.shadowOffsetY)f=w.shadowOffsetX||0,x=w.shadowOffsetY||0,b=w.shadowBlur,m=w.shadowColor;else if(w.textShadowBlur)f=w.textShadowOffsetX||0,x=w.textShadowOffsetY||0,b=w.textShadowBlur,m=w.textShadowColor;else{this.removeDom(s,w);return}d.setAttribute("dx",f/p),d.setAttribute("dy",x/a),d.setAttribute("flood-color",m);var O=b/2/p,i=b/2/a,r=O+" "+i;d.setAttribute("stdDeviation",r),s.setAttribute("x","-100%"),s.setAttribute("y","-100%"),s.setAttribute("width",Math.ceil(b/2*200)+"%"),s.setAttribute("height",Math.ceil(b/2*200)+"%"),s.appendChild(d),g._shadowDom=s},L.prototype.markUsed=function(g){g._shadowDom&&Y.prototype.markUsed.call(this,g._shadowDom)};function U(g){return g&&(g.shadowBlur||g.shadowOffsetX||g.shadowOffsetY||g.textShadowBlur||g.textShadowOffsetX||g.textShadowOffsetY)}var S=L;Ye.exports=S},vWvF:function(Ye,ie,_){var Y=_("Bq2U"),j=_("SUKs"),L=_("bYtY"),U=L.isString,S=L.isFunction,g=L.isObject,s=L.isArrayLike,d=L.indexOf,w=function(){this.animators=[]};w.prototype={constructor:w,animate:function(b,m){var O,i=!1,r=this,u=this.__zr;if(b){var h=b.split("."),y=r;i=h[0]==="shape";for(var E=0,t=h.length;E0&&b.animate(m,!1).when(r==null?500:r,y).delay(u||0)}function f(b,m,O,i){if(!m)b.attr(O,i);else{var r={};r[m]={},r[m][O]=i,b.attr(r)}}var x=w;Ye.exports=x},wCXF:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return tn});var Y=_("rePB"),j=_("VTBJ"),L=_("KQm4"),U=_("U8pU"),S=_("ODXe"),g=_("q1tI"),s=_("TSYQ"),d=_.n(s),w=_("Gytx"),p=_.n(w),a=_("Kwbf"),f=_("t23M"),x=_("qx4F"),b=_("6eGT"),m=_("IBYe"),O=_("Ff2n"),i=_("c+Xe"),r=_("fyJ8"),u=_("biw7");function h(mt,lt,Ht,sn,Tt){var wt=Ht[mt]||{},Qe=Ht[lt]||{},Je,Xe;wt.fixed==="left"?Je=sn.left[mt]:Qe.fixed==="right"&&(Xe=sn.right[lt]);var Oe=!1,Ae=!1,ye=!1,Se=!1,dt=Ht[lt+1],et=Ht[mt-1];if(Tt==="rtl"){if(Je!==void 0){var xt=et&&et.fixed==="left";Se=!xt}else if(Xe!==void 0){var xn=dt&&dt.fixed==="right";ye=!xn}}else if(Je!==void 0){var Dt=dt&&dt.fixed==="left";Oe=!Dt}else if(Xe!==void 0){var yt=et&&et.fixed==="right";Ae=!yt}return{fixLeft:Je,fixRight:Xe,lastFixLeft:Oe,firstFixRight:Ae,lastFixRight:ye,firstFixLeft:Se,isSticky:sn.isSticky}}var y=_("sR1s");function E(mt){var lt=mt.cells,Ht=mt.stickyOffsets,sn=mt.flattenColumns,Tt=mt.rowComponent,wt=mt.cellComponent,Qe=mt.onHeaderRow,Je=mt.index,Xe=g.useContext(u.a),Oe=Xe.prefixCls,Ae=Xe.direction,ye;Qe&&(ye=Qe(lt.map(function(dt){return dt.column}),Je));var Se=Object(y.a)(lt.map(function(dt){return dt.column}));return g.createElement(Tt,Object.assign({},ye),lt.map(function(dt,et){var xt=dt.column,xn=h(dt.colStart,dt.colEnd,sn,Ht,Ae),Dt;return xt&&xt.onHeaderCell&&(Dt=dt.column.onHeaderCell(xt)),g.createElement(r.a,Object.assign({},dt,{ellipsis:xt.ellipsis,align:xt.align,component:wt,prefixCls:Oe,key:Se[et]},xn,{additionalProps:Dt,rowType:"header"}))}))}E.displayName="HeaderRow";var t=E;function C(mt){var lt=[];function Ht(Qe,Je){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;lt[Xe]=lt[Xe]||[];var Oe=Je,Ae=Qe.filter(Boolean).map(function(ye){var Se={key:ye.key,className:ye.className||"",children:ye.title,column:ye,colStart:Oe},dt=1,et=ye.children;return et&&et.length>0&&(dt=Ht(et,Oe,Xe+1).reduce(function(xt,xn){return xt+xn},0),Se.hasSubColumns=!0),"colSpan"in ye&&(dt=ye.colSpan),"rowSpan"in ye&&(Se.rowSpan=ye.rowSpan),Se.colSpan=dt,Se.colEnd=Se.colStart+dt-1,lt[Xe].push(Se),Oe+=dt,dt});return Ae}Ht(mt,0);for(var sn=lt.length,Tt=function(Je){lt[Je].forEach(function(Xe){!("rowSpan"in Xe)&&!Xe.hasSubColumns&&(Xe.rowSpan=sn-Je)})},wt=0;wt=0;Je-=1){var Xe=lt[Je],Oe=Ht&&Ht[Je],Ae=Oe&&Oe[o.a];(Xe||Ae||Qe)&&(Tt.unshift(g.createElement("col",Object.assign({key:Je,style:{width:Xe,minWidth:Xe}},Ae))),Qe=!0)}return g.createElement("colgroup",null,Tt)}var c=l;function M(mt,lt){return Object(g.useMemo)(function(){for(var Ht=[],sn=0;sn1?ae-1:0),oe=1;oe=ye&&(bn=ye-Se),Qe({scrollLeft:bn/ye*(Ae+2)}),yt.current.x=bt.pageX},Pt=function(){var bt=Object(Fe.b)(wt.current).top,ft=bt+wt.current.offsetHeight,Nt=document.documentElement.scrollTop+window.innerHeight;ft-Object(x.a)()<=Nt||bt>=Nt-Je?Dt(function(jt){return Object(j.a)(Object(j.a)({},jt),{},{isHiddenScrollBar:!0})}):Dt(function(jt){return Object(j.a)(Object(j.a)({},jt),{},{isHiddenScrollBar:!1})})},$t=function(bt){Dt(function(ft){return Object(j.a)(Object(j.a)({},ft),{},{scrollLeft:bt/Ae*ye||0})})};return g.useImperativeHandle(Ht,function(){return{setScrollLeft:$t}}),g.useEffect(function(){var Zt=Object(Le.a)(document.body,"mouseup",Be,!1),bt=Object(Le.a)(document.body,"mousemove",Xt,!1);return Pt(),function(){Zt.remove(),bt.remove()}},[Se,Gt]),g.useEffect(function(){var Zt=Object(Le.a)(window,"scroll",Pt,!1),bt=Object(Le.a)(window,"resize",Pt,!1);return function(){Zt.remove(),bt.remove()}},[]),g.useEffect(function(){xn.isHiddenScrollBar||Dt(function(Zt){var bt,ft;return Object(j.a)(Object(j.a)({},Zt),{},{scrollLeft:wt.current.scrollLeft/((bt=wt.current)===null||bt===void 0?void 0:bt.scrollWidth)*((ft=wt.current)===null||ft===void 0?void 0:ft.clientWidth)})})},[xn.isHiddenScrollBar]),Ae<=ye||!Se||xn.isHiddenScrollBar?null:g.createElement("div",{style:{height:Object(x.a)(),width:ye,bottom:Je},className:"".concat(Oe,"-sticky-scroll")},g.createElement("div",{onMouseDown:ot,ref:dt,className:d()("".concat(Oe,"-sticky-scroll-bar"),Object(Y.a)({},"".concat(Oe,"-sticky-scroll-bar-active"),Gt)),style:{width:"".concat(Se,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},Ve=g.forwardRef(Pe);function at(mt,lt){return g.useMemo(function(){var Ht=!!mt;return{isSticky:Ht,stickyClassName:Ht?"".concat(lt,"-sticky-header"):"",offsetHeader:Object(U.a)(mt)==="object"&&mt.offsetHeader||0,offsetScroll:Object(U.a)(mt)==="object"&&mt.offsetScroll||0}},[mt,lt])}var At=[],Rt={},tn="rc-table-internal-hook",Qt=g.memo(function(mt){var lt=mt.children;return lt},function(mt,lt){return p()(mt.props,lt.props)?mt.pingLeft!==lt.pingLeft||mt.pingRight!==lt.pingRight:!1});function Cn(mt){var lt,Ht=mt.prefixCls,sn=mt.className,Tt=mt.rowClassName,wt=mt.style,Qe=mt.data,Je=mt.rowKey,Xe=mt.scroll,Oe=mt.tableLayout,Ae=mt.direction,ye=mt.title,Se=mt.footer,dt=mt.summary,et=mt.id,xt=mt.showHeader,xn=mt.components,Dt=mt.emptyText,yt=mt.onRow,mn=mt.onHeaderRow,pe=mt.internalHooks,Gt=mt.transformColumns,Lt=mt.internalRefs,Be=mt.sticky,ot=Qe||At,Xt=!!ot.length,Pt=g.useState(0),$t=Object(S.a)(Pt,2),Zt=$t[0],bt=$t[1];g.useEffect(function(){bt(Object(x.a)())});var ft=g.useMemo(function(){return Object(y.c)(xn,{})},[xn]),Nt=g.useCallback(function(Zn,An){return Object(y.b)(ft,Zn)||An},[ft]),jt=g.useMemo(function(){return typeof Je=="function"?Je:function(Zn){var An=Zn&&Zn[Je];return An}},[Je]),bn=Object(o.c)(mt),Te=bn.expandIcon,ve=bn.expandedRowKeys,Q=bn.defaultExpandedRowKeys,$=bn.defaultExpandAllRows,re=bn.expandedRowRender,de=bn.onExpand,Ue=bn.onExpandedRowsChange,it=bn.expandRowByClick,Mt=bn.rowExpandable,Ln=bn.expandIconColumnIndex,kn=bn.expandedRowClassName,St=bn.childrenColumnName,an=bn.indentSize,Pn=Te||xe,dn=St||"children",jn=g.useMemo(function(){return re?"row":mt.expandable&&pe===tn&&mt.expandable.__PARENT_RENDER_ICON__||ot.some(function(Zn){return Zn&&Object(U.a)(Zn)==="object"&&Zn[dn]})?"nest":!1},[!!re,ot]),Bn=g.useState(function(){return Q||($?ze(ot,jt,dn):[])}),ne=Object(S.a)(Bn,2),B=ne[0],H=ne[1],ae=g.useMemo(function(){return new Set(ve||B||[])},[ve,B]),ue=g.useCallback(function(Zn){var An=jt(Zn,ot.indexOf(Zn)),rr,ar=ae.has(An);ar?(ae.delete(An),rr=Object(L.a)(ae)):rr=[].concat(Object(L.a)(ae),[An]),H(rr),de&&de(!ar,Zn),Ue&&Ue(rr)},[jt,ae,ot,de,Ue]),oe=g.useState(0),ht=Object(S.a)(oe,2),vn=ht[0],Tn=ht[1],cr=Object(je.b)(Object(j.a)(Object(j.a)(Object(j.a)({},mt),bn),{},{expandable:!!re,expandedKeys:ae,getRowKey:jt,onTriggerExpand:ue,expandIcon:Pn,expandIconColumnIndex:Ln,direction:Ae}),pe===tn?Gt:null),Vt=Object(S.a)(cr,2),Et=Vt[0],Jt=Vt[1],Fn=g.useMemo(function(){return{columns:Et,flattenColumns:Jt}},[Et,Jt]),Vn=g.useRef(),Kn=g.useRef(),ir=g.useRef(),jr=g.useState(!1),ua=Object(S.a)(jr,2),Yr=ua[0],Tr=ua[1],Jn=g.useState(!1),fr=Object(S.a)(Jn,2),Sn=fr[0],On=fr[1],or=Ge(new Map),Dn=Object(S.a)(or,2),pr=Dn[0],Gn=Dn[1],se=Object(y.a)(Jt),tt=se.map(function(Zn){return pr.get(Zn)}),rt=g.useMemo(function(){return tt},[tt.join("_")]),ut=Ee(rt,Jt.length,Ae),Kt=Xe&&Object(y.d)(Xe.y),Ct=Xe&&Object(y.d)(Xe.x),Yt=Ct&&Jt.some(function(Zn){var An=Zn.fixed;return An}),nn=g.useRef(),_n=at(Be,Ht),cn=_n.isSticky,ur=_n.offsetHeader,Mn=_n.offsetScroll,fn=_n.stickyClassName,Hn,Xn,$n;Kt&&(Xn={overflowY:"scroll",maxHeight:Xe.y}),Ct&&(Hn={overflowX:"auto"},Kt||(Xn={overflowY:"hidden"}),$n={width:Xe.x===!0?"auto":Xe.x,minWidth:"100%"});var Yn=g.useCallback(function(Zn,An){Gn(function(rr){var ar=new Map(rr);return ar.set(Zn,An),ar})},[]),_r=he(null),vr=Object(S.a)(_r,2),lr=vr[0],wr=vr[1];function Dr(Zn,An){if(!An)return;typeof An=="function"?An(Zn):An.scrollLeft!==Zn&&(An.scrollLeft=Zn)}var sr=function(An){var rr=An.currentTarget,ar=An.scrollLeft,Pr=typeof ar=="number"?ar:rr.scrollLeft,sa=rr||Rt;if(!wr()||wr()===sa){var Qn;lr(sa),Dr(Pr,Kn.current),Dr(Pr,ir.current),Dr(Pr,(Qn=nn.current)===null||Qn===void 0?void 0:Qn.setScrollLeft)}if(rr){var Hr=rr.scrollWidth,ha=rr.clientWidth;Tr(Pr>0),On(Pr0?[].concat(Object(j.a)(O),Object(j.a)(a(h).map(function(y){return Object(L.a)({fixed:u},y)}))):[].concat(Object(j.a)(O),[Object(L.a)(Object(L.a)({},i),{},{fixed:u})])},[])}function f(m){for(var O=!0,i=0;i=0;h-=1){var y=m[h];if(u&&y.fixed!=="right")u=!1;else if(!u&&y.fixed==="right"){Object(s.a)(!1,"Index ".concat(h+1," of `columns` missing `fixed='right'` prop."));break}}}function x(m){return m.map(function(O){var i=O.fixed,r=Object(U.a)(O,["fixed"]),u=i;return i==="left"?u="right":i==="right"&&(u="left"),Object(L.a)({fixed:u},r)})}function b(m,O){var i=m.prefixCls,r=m.columns,u=m.children,h=m.expandable,y=m.expandedKeys,E=m.getRowKey,t=m.onTriggerExpand,C=m.expandIcon,A=m.rowExpandable,v=m.expandIconColumnIndex,o=m.direction,l=m.expandRowByClick,c=S.useMemo(function(){return r||p(u)},[r,u]),M=S.useMemo(function(){if(h){var k,I=v||0,F=c[I],V=(k={},Object(Y.a)(k,w.a,{className:"".concat(i,"-expand-icon-col")}),Object(Y.a)(k,"title",""),Object(Y.a)(k,"fixed",F?F.fixed:null),Object(Y.a)(k,"className","".concat(i,"-row-expand-icon-cell")),Object(Y.a)(k,"render",function(J,X,te){var ee=E(X,te),be=y.has(ee),ge=A?A(X):!0,je=C({prefixCls:i,expanded:be,expandable:ge,record:X,onExpand:t});return l?S.createElement("span",{onClick:function(nt){return nt.stopPropagation()}},je):je}),k),W=c.slice();return I>=0&&W.splice(I,0,V),W}return c},[h,c,E,y,C,o]),P=S.useMemo(function(){var k=M;return O&&(k=O(k)),k.length||(k=[{render:function(){return null}}]),k},[O,M,o]),R=S.useMemo(function(){return o==="rtl"?x(a(P)):a(P)},[P,o]);return[P,R]}ie.b=b},x6Kt:function(Ye,ie,_){var Y=_("y+Vt"),j=_("VpOo"),L=_("nPnh"),U=L.subPixelOptimizeRect,S={},g=Y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(s,d){var w,p,a,f;this.subPixelOptimize?(U(S,d,this.style),w=S.x,p=S.y,a=S.width,f=S.height,S.r=d.r,d=S):(w=d.x,p=d.y,a=d.width,f=d.height),d.r?j.buildPath(s,d):s.rect(w,p,a,f),s.closePath();return}});Ye.exports=g},"y+Vt":function(Ye,ie,_){var Y=_("Gev7"),j=_("bYtY"),L=_("IMiH"),U=_("2DNl"),S=_("3C/r"),g=S.prototype.getCanvasPattern,s=Math.abs,d=new L(!0);function w(a){Y.call(this,a),this.path=null}w.prototype={constructor:w,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,f){var x=this.style,b=this.path||d,m=x.hasStroke(),O=x.hasFill(),i=x.fill,r=x.stroke,u=O&&!!i.colorStops,h=m&&!!r.colorStops,y=O&&!!i.image,E=m&&!!r.image;if(x.bind(a,this,f),this.setTransform(a),this.__dirty){var t;u&&(t=t||this.getBoundingRect(),this._fillGradient=x.getGradient(a,i,t)),h&&(t=t||this.getBoundingRect(),this._strokeGradient=x.getGradient(a,r,t))}u?a.fillStyle=this._fillGradient:y&&(a.fillStyle=g.call(i,a)),h?a.strokeStyle=this._strokeGradient:E&&(a.strokeStyle=g.call(r,a));var C=x.lineDash,A=x.lineDashOffset,v=!!a.setLineDash,o=this.getGlobalScale();if(b.setScale(o[0],o[1],this.segmentIgnoreThreshold),this.__dirtyPath||C&&!v&&m?(b.beginPath(a),C&&!v&&(b.setLineDash(C),b.setLineDashOffset(A)),this.buildPath(b,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),O)if(x.fillOpacity!=null){var l=a.globalAlpha;a.globalAlpha=x.fillOpacity*x.opacity,b.fill(a),a.globalAlpha=l}else b.fill(a);if(C&&v&&(a.setLineDash(C),a.lineDashOffset=A),m)if(x.strokeOpacity!=null){var l=a.globalAlpha;a.globalAlpha=x.strokeOpacity*x.opacity,b.stroke(a),a.globalAlpha=l}else b.stroke(a);C&&v&&a.setLineDash([]),x.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,f,x){},createPathProxy:function(){this.path=new L},getBoundingRect:function(){var a=this._rect,f=this.style,x=!a;if(x){var b=this.path;b||(b=this.path=new L),this.__dirtyPath&&(b.beginPath(),this.buildPath(b,this.shape,!1)),a=b.getBoundingRect()}if(this._rect=a,f.hasStroke()){var m=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||x){m.copy(a);var O=f.lineWidth,i=f.strokeNoScale?this.getLineScale():1;f.hasFill()||(O=Math.max(O,this.strokeContainThreshold||4)),i>1e-10&&(m.width+=O/i,m.height+=O/i,m.x-=O/i/2,m.y-=O/i/2)}return m}return a},contain:function(a,f){var x=this.transformCoordToLocal(a,f),b=this.getBoundingRect(),m=this.style;if(a=x[0],f=x[1],b.contain(a,f)){var O=this.path.data;if(m.hasStroke()){var i=m.lineWidth,r=m.strokeNoScale?this.getLineScale():1;if(r>1e-10&&(m.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),U.containStroke(O,i/r,a,f)))return!0}if(m.hasFill())return U.contain(O,a,f)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,f){a==="shape"?(this.setShape(f),this.__dirtyPath=!0,this._rect=null):Y.prototype.attrKV.call(this,a,f)},setShape:function(a,f){var x=this.shape;if(x){if(j.isObject(a))for(var b in a)a.hasOwnProperty(b)&&(x[b]=a[b]);else x[a]=f;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&s(a[0]-1)>1e-10&&s(a[3]-1)>1e-10?Math.sqrt(s(a[0]*a[3]-a[2]*a[1])):1}},w.extend=function(a){var f=function(b){w.call(this,b),a.style&&this.style.extendFrom(a.style,!1);var m=a.shape;if(m){this.shape=this.shape||{};var O=this.shape;for(var i in m)!O.hasOwnProperty(i)&&m.hasOwnProperty(i)&&(O[i]=m[i])}a.init&&a.init.call(this,b)};j.inherits(f,w);for(var x in a)x!=="style"&&x!=="shape"&&(f.prototype[x]=a[x]);return f},j.inherits(w,Y);var p=w;Ye.exports=p},"y0+3":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return a}),_.d(ie,"b",function(){return x});var Y=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},L={cssFloat:1,styleFloat:1,float:1};function U(b){return b.nodeType===1?b.ownerDocument.defaultView.getComputedStyle(b,null):{}}function S(b,m,O){if(m=m.toLowerCase(),O==="auto"){if(m==="height")return b.offsetHeight;if(m==="width")return b.offsetWidth}return m in j||(j[m]=Y.test(m)),j[m]?parseFloat(O)||0:O}function g(b,m){var O=arguments.length,i=U(b);return m=L[m]?"cssFloat"in b.style?"cssFloat":"styleFloat":m,O===1?i:S(b,m,i[m]||b.style[m])}function s(b,m,O){var i=arguments.length;if(m=L[m]?"cssFloat"in b.style?"cssFloat":"styleFloat":m,i===3)return typeof O=="number"&&Y.test(m)&&(O="".concat(O,"px")),b.style[m]=O,O;for(var r in m)m.hasOwnProperty(r)&&s(b,r,m[r]);return U(b)}function d(b){return b===document.body?document.documentElement.clientWidth:b.offsetWidth}function w(b){return b===document.body?window.innerHeight||document.documentElement.clientHeight:b.offsetHeight}function p(){var b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:b,height:m}}function a(){var b=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:b,height:m}}function f(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function x(b){var m=b.getBoundingClientRect(),O=document.documentElement;return{left:m.left+(window.pageXOffset||O.scrollLeft)-(O.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||O.scrollTop)-(O.clientTop||document.body.clientTop||0)}}},y23F:function(Ye,ie){function _(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}_.prototype={constructor:_,_dragStart:function(L){for(var U=L.target;U&&!U.draggable;)U=U.parent;U&&(this._draggingTarget=U,U.dragging=!0,this._x=L.offsetX,this._y=L.offsetY,this.dispatchToElement(Y(U,L),"dragstart",L.event))},_drag:function(L){var U=this._draggingTarget;if(U){var S=L.offsetX,g=L.offsetY,s=S-this._x,d=g-this._y;this._x=S,this._y=g,U.drift(s,d,L),this.dispatchToElement(Y(U,L),"drag",L.event);var w=this.findHover(S,g,U).target,p=this._dropTarget;this._dropTarget=w,U!==w&&(p&&w!==p&&this.dispatchToElement(Y(p,L),"dragleave",L.event),w&&w!==p&&this.dispatchToElement(Y(w,L),"dragenter",L.event))}},_dragEnd:function(L){var U=this._draggingTarget;U&&(U.dragging=!1),this.dispatchToElement(Y(U,L),"dragend",L.event),this._dropTarget&&this.dispatchToElement(Y(this._dropTarget,L),"drop",L.event),this._draggingTarget=null,this._dropTarget=null}};function Y(L,U){return{target:L,topTarget:U&&U.topTarget}}var j=_;Ye.exports=j},yslc:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},yxFR:function(Ye,ie,_){var Y=_("y+Vt"),j=_("nPnh"),L=j.subPixelOptimizeLine,U={},S=Y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(g,s){var d,w,p,a;this.subPixelOptimize?(L(U,s,this.style),d=U.x1,w=U.y1,p=U.x2,a=U.y2):(d=s.x1,w=s.y1,p=s.x2,a=s.y2);var f=s.percent;if(f===0)return;g.moveTo(d,w),f<1&&(p=d*(1-f)+p*f,a=w*(1-f)+a*f),g.lineTo(p,a)},pointAt:function(g){var s=this.shape;return[s.x1*(1-g)+s.x2*g,s.y1*(1-g)+s.y2*g]}});Ye.exports=S},zarK:function(Ye,ie,_){var Y=_("YH21"),j=Y.addEventListener,L=Y.removeEventListener,U=Y.normalizeEvent,S=Y.getNativeEvent,g=_("bYtY"),s=_("H6uX"),d=_("ItGF"),w=300,p=d.domSupported,a=function(){var R=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],k=["touchstart","touchend","touchmove"],I={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=g.map(R,function(V){var W=V.replace("mouse","pointer");return I.hasOwnProperty(W)?W:V});return{mouse:R,touch:k,pointer:F}}(),f={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function x(R){return R==="mousewheel"&&d.browser.firefox?"DOMMouseScroll":R}function b(R){var k=R.pointerType;return k==="pen"||k==="touch"}function m(R){R.touching=!0,R.touchTimer!=null&&(clearTimeout(R.touchTimer),R.touchTimer=null),R.touchTimer=setTimeout(function(){R.touching=!1,R.touchTimer=null},700)}function O(R){R&&(R.zrByTouch=!0)}function i(R,k){return U(R.dom,new u(R,k),!0)}function r(R,k){for(var I=k,F=!1;I&&I.nodeType!==9&&!(F=I.domBelongToZr||I!==k&&I===R.painterRoot);)I=I.parentNode;return F}function u(R,k){this.type=k.type,this.target=this.currentTarget=R.dom,this.pointerType=k.pointerType,this.clientX=k.clientX,this.clientY=k.clientY}var h=u.prototype;h.stopPropagation=h.stopImmediatePropagation=h.preventDefault=g.noop;var y={mousedown:function(R){R=U(this.dom,R),this._mayPointerCapture=[R.zrX,R.zrY],this.trigger("mousedown",R)},mousemove:function(R){R=U(this.dom,R);var k=this._mayPointerCapture;k&&(R.zrX!==k[0]||R.zrY!==k[1])&&o(this,!0),this.trigger("mousemove",R)},mouseup:function(R){R=U(this.dom,R),o(this,!1),this.trigger("mouseup",R)},mouseout:function(R){R=U(this.dom,R),this._pointerCapturing&&(R.zrEventControl="no_globalout");var k=R.toElement||R.relatedTarget;R.zrIsToLocalDOM=r(this,k),this.trigger("mouseout",R)},touchstart:function(R){R=U(this.dom,R),O(R),this._lastTouchMoment=new Date,this.handler.processGesture(R,"start"),y.mousemove.call(this,R),y.mousedown.call(this,R)},touchmove:function(R){R=U(this.dom,R),O(R),this.handler.processGesture(R,"change"),y.mousemove.call(this,R)},touchend:function(R){R=U(this.dom,R),O(R),this.handler.processGesture(R,"end"),y.mouseup.call(this,R),+new Date-this._lastTouchMoment0&&v.push(I)},C.onparsingerror=function(I){P=I},C.onflush=function(){if(P){t(P);return}E(v)},A.forEach(function(I){if(R)if(p(I,"X-TIMESTAMP-MAP=")){R=!1,k=!0,I.substr(16).split(",").forEach(function(F){p(F,"LOCAL:")?l=F.substr(6):p(F,"MPEGTS:")&&(c=parseInt(F.substr(7)))});try{M=a(l)/1e3}catch(F){k=!1,P=F}return}else I===""&&(R=!1);C.parse(I+` +`)}),C.flush()}},"./src/utils/xhr-loader.ts":function(Y,j,L){"use strict";L.r(j);var U=L("./src/utils/logger.ts"),S=L("./src/loader/load-stats.ts"),g=/^age:\s*[\d.]+\s*$/m,s=function(){function d(p){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=p?p.xhrSetup:null,this.stats=new S.LoadStats,this.retryDelay=0}var w=d.prototype;return w.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},w.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},w.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},w.load=function(a,f,x){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=f,this.callbacks=x,this.retryDelay=f.retryDelay,this.loadInternal()},w.loadInternal=function(){var a=this.config,f=this.context;if(!a)return;var x=this.loader=new self.XMLHttpRequest,y=this.stats;y.loading.first=0,y.loaded=0;var m=this.xhrSetup;try{if(m)try{m(x,f.url)}catch(r){x.open("GET",f.url,!0),m(x,f.url)}x.readyState||x.open("GET",f.url,!0);var O=this.context.headers;if(O)for(var i in O)x.setRequestHeader(i,O[i])}catch(r){this.callbacks.onError({code:x.status,text:r.message},f,x);return}f.rangeEnd&&x.setRequestHeader("Range","bytes="+f.rangeStart+"-"+(f.rangeEnd-1)),x.onreadystatechange=this.readystatechange.bind(this),x.onprogress=this.loadprogress.bind(this),x.responseType=f.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),x.send()},w.readystatechange=function(){var a=this.context,f=this.loader,x=this.stats;if(!a||!f)return;var y=f.readyState,m=this.config;if(x.aborted)return;if(y>=2)if(self.clearTimeout(this.requestTimeout),x.loading.first===0&&(x.loading.first=Math.max(self.performance.now(),x.loading.start)),y===4){f.onreadystatechange=null,f.onprogress=null;var O=f.status;if(O>=200&&O<300){x.loading.end=Math.max(self.performance.now(),x.loading.first);var i,r;if(a.responseType==="arraybuffer"?(i=f.response,r=i.byteLength):(i=f.responseText,r=i.length),x.loaded=x.total=r,!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(x,a,i,f),!this.callbacks)return;var h={url:f.responseURL,data:i};this.callbacks.onSuccess(h,x,a,f)}else x.retry>=m.maxRetry||O>=400&&O<499?(U.logger.error(O+" while loading "+a.url),this.callbacks.onError({code:O,text:f.statusText},a,f)):(U.logger.warn(O+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,m.maxRetryDelay),x.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),m.timeout)},w.loadtimeout=function(){U.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},w.loadprogress=function(a){var f=this.stats;f.loaded=a.loaded,a.lengthComputable&&(f.total=a.total)},w.getCacheAge=function(){var a=null;if(this.loader&&g.test(this.loader.getAllResponseHeaders())){var f=this.loader.getResponseHeader("age");a=f?parseFloat(f):null}return a},d}();j.default=s}}).default})},vHTk:function(Ye,ie,_){Ye.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Ye,ie,_){var Y=_("SrGk"),j=_("bYtY");function L(g,s){Y.call(this,g,s,["filter"],"__filter_in_use__","_shadowDom")}j.inherits(L,Y),L.prototype.addWithoutUpdate=function(g,s){if(s&&U(s.style)){var d;if(s._shadowDom){d=s._shadowDom;var w=this.getDefs(!0);w.contains(s._shadowDom)||this.addDom(d)}else d=this.add(s);this.markUsed(s);var p=d.getAttribute("id");g.style.filter="url(#"+p+")"}},L.prototype.add=function(g){var s=this.createElement("filter");return g._shadowDomId=g._shadowDomId||this.nextId++,s.setAttribute("id","zr"+this._zrId+"-shadow-"+g._shadowDomId),this.updateDom(g,s),this.addDom(s),s},L.prototype.update=function(g,s){var d=s.style;if(U(d)){var w=this;Y.prototype.update.call(this,s,function(){w.updateDom(s,s._shadowDom)})}else this.remove(g,s)},L.prototype.remove=function(g,s){s._shadowDomId!=null&&(this.removeDom(g),g.style.filter="")},L.prototype.updateDom=function(g,s){var d=s.getElementsByTagName("feDropShadow");d.length===0?d=this.createElement("feDropShadow"):d=d[0];var w=g.style,p=g.scale&&g.scale[0]||1,a=g.scale&&g.scale[1]||1,f,x,y,m;if(w.shadowBlur||w.shadowOffsetX||w.shadowOffsetY)f=w.shadowOffsetX||0,x=w.shadowOffsetY||0,y=w.shadowBlur,m=w.shadowColor;else if(w.textShadowBlur)f=w.textShadowOffsetX||0,x=w.textShadowOffsetY||0,y=w.textShadowBlur,m=w.textShadowColor;else{this.removeDom(s,w);return}d.setAttribute("dx",f/p),d.setAttribute("dy",x/a),d.setAttribute("flood-color",m);var O=y/2/p,i=y/2/a,r=O+" "+i;d.setAttribute("stdDeviation",r),s.setAttribute("x","-100%"),s.setAttribute("y","-100%"),s.setAttribute("width",Math.ceil(y/2*200)+"%"),s.setAttribute("height",Math.ceil(y/2*200)+"%"),s.appendChild(d),g._shadowDom=s},L.prototype.markUsed=function(g){g._shadowDom&&Y.prototype.markUsed.call(this,g._shadowDom)};function U(g){return g&&(g.shadowBlur||g.shadowOffsetX||g.shadowOffsetY||g.textShadowBlur||g.textShadowOffsetX||g.textShadowOffsetY)}var S=L;Ye.exports=S},vWvF:function(Ye,ie,_){var Y=_("Bq2U"),j=_("SUKs"),L=_("bYtY"),U=L.isString,S=L.isFunction,g=L.isObject,s=L.isArrayLike,d=L.indexOf,w=function(){this.animators=[]};w.prototype={constructor:w,animate:function(y,m){var O,i=!1,r=this,u=this.__zr;if(y){var h=y.split("."),b=r;i=h[0]==="shape";for(var E=0,t=h.length;E0&&y.animate(m,!1).when(r==null?500:r,b).delay(u||0)}function f(y,m,O,i){if(!m)y.attr(O,i);else{var r={};r[m]={},r[m][O]=i,y.attr(r)}}var x=w;Ye.exports=x},wCXF:function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return tn});var Y=_("rePB"),j=_("VTBJ"),L=_("KQm4"),U=_("U8pU"),S=_("ODXe"),g=_("q1tI"),s=_("TSYQ"),d=_.n(s),w=_("Gytx"),p=_.n(w),a=_("Kwbf"),f=_("t23M"),x=_("qx4F"),y=_("6eGT"),m=_("IBYe"),O=_("Ff2n"),i=_("c+Xe"),r=_("fyJ8"),u=_("biw7");function h(mt,lt,Ht,sn,Tt){var wt=Ht[mt]||{},Qe=Ht[lt]||{},Je,Xe;wt.fixed==="left"?Je=sn.left[mt]:Qe.fixed==="right"&&(Xe=sn.right[lt]);var Oe=!1,Ae=!1,ye=!1,Se=!1,dt=Ht[lt+1],et=Ht[mt-1];if(Tt==="rtl"){if(Je!==void 0){var xt=et&&et.fixed==="left";Se=!xt}else if(Xe!==void 0){var xn=dt&&dt.fixed==="right";ye=!xn}}else if(Je!==void 0){var Dt=dt&&dt.fixed==="left";Oe=!Dt}else if(Xe!==void 0){var _t=et&&et.fixed==="right";Ae=!_t}return{fixLeft:Je,fixRight:Xe,lastFixLeft:Oe,firstFixRight:Ae,lastFixRight:ye,firstFixLeft:Se,isSticky:sn.isSticky}}var b=_("sR1s");function E(mt){var lt=mt.cells,Ht=mt.stickyOffsets,sn=mt.flattenColumns,Tt=mt.rowComponent,wt=mt.cellComponent,Qe=mt.onHeaderRow,Je=mt.index,Xe=g.useContext(u.a),Oe=Xe.prefixCls,Ae=Xe.direction,ye;Qe&&(ye=Qe(lt.map(function(dt){return dt.column}),Je));var Se=Object(b.a)(lt.map(function(dt){return dt.column}));return g.createElement(Tt,Object.assign({},ye),lt.map(function(dt,et){var xt=dt.column,xn=h(dt.colStart,dt.colEnd,sn,Ht,Ae),Dt;return xt&&xt.onHeaderCell&&(Dt=dt.column.onHeaderCell(xt)),g.createElement(r.a,Object.assign({},dt,{ellipsis:xt.ellipsis,align:xt.align,component:wt,prefixCls:Oe,key:Se[et]},xn,{additionalProps:Dt,rowType:"header"}))}))}E.displayName="HeaderRow";var t=E;function C(mt){var lt=[];function Ht(Qe,Je){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;lt[Xe]=lt[Xe]||[];var Oe=Je,Ae=Qe.filter(Boolean).map(function(ye){var Se={key:ye.key,className:ye.className||"",children:ye.title,column:ye,colStart:Oe},dt=1,et=ye.children;return et&&et.length>0&&(dt=Ht(et,Oe,Xe+1).reduce(function(xt,xn){return xt+xn},0),Se.hasSubColumns=!0),"colSpan"in ye&&(dt=ye.colSpan),"rowSpan"in ye&&(Se.rowSpan=ye.rowSpan),Se.colSpan=dt,Se.colEnd=Se.colStart+dt-1,lt[Xe].push(Se),Oe+=dt,dt});return Ae}Ht(mt,0);for(var sn=lt.length,Tt=function(Je){lt[Je].forEach(function(Xe){!("rowSpan"in Xe)&&!Xe.hasSubColumns&&(Xe.rowSpan=sn-Je)})},wt=0;wt=0;Je-=1){var Xe=lt[Je],Oe=Ht&&Ht[Je],Ae=Oe&&Oe[o.a];(Xe||Ae||Qe)&&(Tt.unshift(g.createElement("col",Object.assign({key:Je,style:{width:Xe,minWidth:Xe}},Ae))),Qe=!0)}return g.createElement("colgroup",null,Tt)}var c=l;function M(mt,lt){return Object(g.useMemo)(function(){for(var Ht=[],sn=0;sn1?ae-1:0),oe=1;oe=ye&&(bn=ye-Se),Qe({scrollLeft:bn/ye*(Ae+2)}),_t.current.x=bt.pageX},Pt=function(){var bt=Object(Fe.b)(wt.current).top,ft=bt+wt.current.offsetHeight,Nt=document.documentElement.scrollTop+window.innerHeight;ft-Object(x.a)()<=Nt||bt>=Nt-Je?Dt(function(jt){return Object(j.a)(Object(j.a)({},jt),{},{isHiddenScrollBar:!0})}):Dt(function(jt){return Object(j.a)(Object(j.a)({},jt),{},{isHiddenScrollBar:!1})})},$t=function(bt){Dt(function(ft){return Object(j.a)(Object(j.a)({},ft),{},{scrollLeft:bt/Ae*ye||0})})};return g.useImperativeHandle(Ht,function(){return{setScrollLeft:$t}}),g.useEffect(function(){var Zt=Object(Le.a)(document.body,"mouseup",Be,!1),bt=Object(Le.a)(document.body,"mousemove",Xt,!1);return Pt(),function(){Zt.remove(),bt.remove()}},[Se,Gt]),g.useEffect(function(){var Zt=Object(Le.a)(window,"scroll",Pt,!1),bt=Object(Le.a)(window,"resize",Pt,!1);return function(){Zt.remove(),bt.remove()}},[]),g.useEffect(function(){xn.isHiddenScrollBar||Dt(function(Zt){var bt,ft;return Object(j.a)(Object(j.a)({},Zt),{},{scrollLeft:wt.current.scrollLeft/((bt=wt.current)===null||bt===void 0?void 0:bt.scrollWidth)*((ft=wt.current)===null||ft===void 0?void 0:ft.clientWidth)})})},[xn.isHiddenScrollBar]),Ae<=ye||!Se||xn.isHiddenScrollBar?null:g.createElement("div",{style:{height:Object(x.a)(),width:ye,bottom:Je},className:"".concat(Oe,"-sticky-scroll")},g.createElement("div",{onMouseDown:ot,ref:dt,className:d()("".concat(Oe,"-sticky-scroll-bar"),Object(Y.a)({},"".concat(Oe,"-sticky-scroll-bar-active"),Gt)),style:{width:"".concat(Se,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},Ve=g.forwardRef(Pe);function at(mt,lt){return g.useMemo(function(){var Ht=!!mt;return{isSticky:Ht,stickyClassName:Ht?"".concat(lt,"-sticky-header"):"",offsetHeader:Object(U.a)(mt)==="object"&&mt.offsetHeader||0,offsetScroll:Object(U.a)(mt)==="object"&&mt.offsetScroll||0}},[mt,lt])}var At=[],Rt={},tn="rc-table-internal-hook",Qt=g.memo(function(mt){var lt=mt.children;return lt},function(mt,lt){return p()(mt.props,lt.props)?mt.pingLeft!==lt.pingLeft||mt.pingRight!==lt.pingRight:!1});function Cn(mt){var lt,Ht=mt.prefixCls,sn=mt.className,Tt=mt.rowClassName,wt=mt.style,Qe=mt.data,Je=mt.rowKey,Xe=mt.scroll,Oe=mt.tableLayout,Ae=mt.direction,ye=mt.title,Se=mt.footer,dt=mt.summary,et=mt.id,xt=mt.showHeader,xn=mt.components,Dt=mt.emptyText,_t=mt.onRow,mn=mt.onHeaderRow,pe=mt.internalHooks,Gt=mt.transformColumns,Lt=mt.internalRefs,Be=mt.sticky,ot=Qe||At,Xt=!!ot.length,Pt=g.useState(0),$t=Object(S.a)(Pt,2),Zt=$t[0],bt=$t[1];g.useEffect(function(){bt(Object(x.a)())});var ft=g.useMemo(function(){return Object(b.c)(xn,{})},[xn]),Nt=g.useCallback(function(Zn,An){return Object(b.b)(ft,Zn)||An},[ft]),jt=g.useMemo(function(){return typeof Je=="function"?Je:function(Zn){var An=Zn&&Zn[Je];return An}},[Je]),bn=Object(o.c)(mt),Te=bn.expandIcon,ve=bn.expandedRowKeys,Q=bn.defaultExpandedRowKeys,$=bn.defaultExpandAllRows,re=bn.expandedRowRender,de=bn.onExpand,Ue=bn.onExpandedRowsChange,it=bn.expandRowByClick,Mt=bn.rowExpandable,Ln=bn.expandIconColumnIndex,kn=bn.expandedRowClassName,St=bn.childrenColumnName,an=bn.indentSize,Pn=Te||xe,dn=St||"children",jn=g.useMemo(function(){return re?"row":mt.expandable&&pe===tn&&mt.expandable.__PARENT_RENDER_ICON__||ot.some(function(Zn){return Zn&&Object(U.a)(Zn)==="object"&&Zn[dn]})?"nest":!1},[!!re,ot]),Bn=g.useState(function(){return Q||($?ze(ot,jt,dn):[])}),ne=Object(S.a)(Bn,2),B=ne[0],H=ne[1],ae=g.useMemo(function(){return new Set(ve||B||[])},[ve,B]),ue=g.useCallback(function(Zn){var An=jt(Zn,ot.indexOf(Zn)),rr,ar=ae.has(An);ar?(ae.delete(An),rr=Object(L.a)(ae)):rr=[].concat(Object(L.a)(ae),[An]),H(rr),de&&de(!ar,Zn),Ue&&Ue(rr)},[jt,ae,ot,de,Ue]),oe=g.useState(0),ht=Object(S.a)(oe,2),vn=ht[0],Tn=ht[1],fr=Object(je.b)(Object(j.a)(Object(j.a)(Object(j.a)({},mt),bn),{},{expandable:!!re,expandedKeys:ae,getRowKey:jt,onTriggerExpand:ue,expandIcon:Pn,expandIconColumnIndex:Ln,direction:Ae}),pe===tn?Gt:null),Vt=Object(S.a)(fr,2),Et=Vt[0],Jt=Vt[1],Fn=g.useMemo(function(){return{columns:Et,flattenColumns:Jt}},[Et,Jt]),Vn=g.useRef(),Kn=g.useRef(),ir=g.useRef(),jr=g.useState(!1),ua=Object(S.a)(jr,2),Yr=ua[0],Tr=ua[1],Jn=g.useState(!1),hr=Object(S.a)(Jn,2),Sn=hr[0],On=hr[1],or=Ge(new Map),Dn=Object(S.a)(or,2),pr=Dn[0],Gn=Dn[1],se=Object(b.a)(Jt),tt=se.map(function(Zn){return pr.get(Zn)}),rt=g.useMemo(function(){return tt},[tt.join("_")]),ut=Ee(rt,Jt.length,Ae),Kt=Xe&&Object(b.d)(Xe.y),Ct=Xe&&Object(b.d)(Xe.x),Yt=Ct&&Jt.some(function(Zn){var An=Zn.fixed;return An}),nn=g.useRef(),_n=at(Be,Ht),cn=_n.isSticky,ur=_n.offsetHeader,Mn=_n.offsetScroll,fn=_n.stickyClassName,Hn,Xn,$n;Kt&&(Xn={overflowY:"scroll",maxHeight:Xe.y}),Ct&&(Hn={overflowX:"auto"},Kt||(Xn={overflowY:"hidden"}),$n={width:Xe.x===!0?"auto":Xe.x,minWidth:"100%"});var Yn=g.useCallback(function(Zn,An){Gn(function(rr){var ar=new Map(rr);return ar.set(Zn,An),ar})},[]),_r=he(null),vr=Object(S.a)(_r,2),lr=vr[0],wr=vr[1];function Dr(Zn,An){if(!An)return;typeof An=="function"?An(Zn):An.scrollLeft!==Zn&&(An.scrollLeft=Zn)}var sr=function(An){var rr=An.currentTarget,ar=An.scrollLeft,Pr=typeof ar=="number"?ar:rr.scrollLeft,sa=rr||Rt;if(!wr()||wr()===sa){var Qn;lr(sa),Dr(Pr,Kn.current),Dr(Pr,ir.current),Dr(Pr,(Qn=nn.current)===null||Qn===void 0?void 0:Qn.setScrollLeft)}if(rr){var Hr=rr.scrollWidth,pa=rr.clientWidth;Tr(Pr>0),On(Pr0?[].concat(Object(j.a)(O),Object(j.a)(a(h).map(function(b){return Object(L.a)({fixed:u},b)}))):[].concat(Object(j.a)(O),[Object(L.a)(Object(L.a)({},i),{},{fixed:u})])},[])}function f(m){for(var O=!0,i=0;i=0;h-=1){var b=m[h];if(u&&b.fixed!=="right")u=!1;else if(!u&&b.fixed==="right"){Object(s.a)(!1,"Index ".concat(h+1," of `columns` missing `fixed='right'` prop."));break}}}function x(m){return m.map(function(O){var i=O.fixed,r=Object(U.a)(O,["fixed"]),u=i;return i==="left"?u="right":i==="right"&&(u="left"),Object(L.a)({fixed:u},r)})}function y(m,O){var i=m.prefixCls,r=m.columns,u=m.children,h=m.expandable,b=m.expandedKeys,E=m.getRowKey,t=m.onTriggerExpand,C=m.expandIcon,A=m.rowExpandable,v=m.expandIconColumnIndex,o=m.direction,l=m.expandRowByClick,c=S.useMemo(function(){return r||p(u)},[r,u]),M=S.useMemo(function(){if(h){var k,I=v||0,F=c[I],V=(k={},Object(Y.a)(k,w.a,{className:"".concat(i,"-expand-icon-col")}),Object(Y.a)(k,"title",""),Object(Y.a)(k,"fixed",F?F.fixed:null),Object(Y.a)(k,"className","".concat(i,"-row-expand-icon-cell")),Object(Y.a)(k,"render",function(J,X,te){var ee=E(X,te),be=b.has(ee),ge=A?A(X):!0,je=C({prefixCls:i,expanded:be,expandable:ge,record:X,onExpand:t});return l?S.createElement("span",{onClick:function(nt){return nt.stopPropagation()}},je):je}),k),W=c.slice();return I>=0&&W.splice(I,0,V),W}return c},[h,c,E,b,C,o]),P=S.useMemo(function(){var k=M;return O&&(k=O(k)),k.length||(k=[{render:function(){return null}}]),k},[O,M,o]),R=S.useMemo(function(){return o==="rtl"?x(a(P)):a(P)},[P,o]);return[P,R]}ie.b=y},x6Kt:function(Ye,ie,_){var Y=_("y+Vt"),j=_("VpOo"),L=_("nPnh"),U=L.subPixelOptimizeRect,S={},g=Y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(s,d){var w,p,a,f;this.subPixelOptimize?(U(S,d,this.style),w=S.x,p=S.y,a=S.width,f=S.height,S.r=d.r,d=S):(w=d.x,p=d.y,a=d.width,f=d.height),d.r?j.buildPath(s,d):s.rect(w,p,a,f),s.closePath();return}});Ye.exports=g},"y+Vt":function(Ye,ie,_){var Y=_("Gev7"),j=_("bYtY"),L=_("IMiH"),U=_("2DNl"),S=_("3C/r"),g=S.prototype.getCanvasPattern,s=Math.abs,d=new L(!0);function w(a){Y.call(this,a),this.path=null}w.prototype={constructor:w,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,f){var x=this.style,y=this.path||d,m=x.hasStroke(),O=x.hasFill(),i=x.fill,r=x.stroke,u=O&&!!i.colorStops,h=m&&!!r.colorStops,b=O&&!!i.image,E=m&&!!r.image;if(x.bind(a,this,f),this.setTransform(a),this.__dirty){var t;u&&(t=t||this.getBoundingRect(),this._fillGradient=x.getGradient(a,i,t)),h&&(t=t||this.getBoundingRect(),this._strokeGradient=x.getGradient(a,r,t))}u?a.fillStyle=this._fillGradient:b&&(a.fillStyle=g.call(i,a)),h?a.strokeStyle=this._strokeGradient:E&&(a.strokeStyle=g.call(r,a));var C=x.lineDash,A=x.lineDashOffset,v=!!a.setLineDash,o=this.getGlobalScale();if(y.setScale(o[0],o[1],this.segmentIgnoreThreshold),this.__dirtyPath||C&&!v&&m?(y.beginPath(a),C&&!v&&(y.setLineDash(C),y.setLineDashOffset(A)),this.buildPath(y,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),O)if(x.fillOpacity!=null){var l=a.globalAlpha;a.globalAlpha=x.fillOpacity*x.opacity,y.fill(a),a.globalAlpha=l}else y.fill(a);if(C&&v&&(a.setLineDash(C),a.lineDashOffset=A),m)if(x.strokeOpacity!=null){var l=a.globalAlpha;a.globalAlpha=x.strokeOpacity*x.opacity,y.stroke(a),a.globalAlpha=l}else y.stroke(a);C&&v&&a.setLineDash([]),x.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,f,x){},createPathProxy:function(){this.path=new L},getBoundingRect:function(){var a=this._rect,f=this.style,x=!a;if(x){var y=this.path;y||(y=this.path=new L),this.__dirtyPath&&(y.beginPath(),this.buildPath(y,this.shape,!1)),a=y.getBoundingRect()}if(this._rect=a,f.hasStroke()){var m=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||x){m.copy(a);var O=f.lineWidth,i=f.strokeNoScale?this.getLineScale():1;f.hasFill()||(O=Math.max(O,this.strokeContainThreshold||4)),i>1e-10&&(m.width+=O/i,m.height+=O/i,m.x-=O/i/2,m.y-=O/i/2)}return m}return a},contain:function(a,f){var x=this.transformCoordToLocal(a,f),y=this.getBoundingRect(),m=this.style;if(a=x[0],f=x[1],y.contain(a,f)){var O=this.path.data;if(m.hasStroke()){var i=m.lineWidth,r=m.strokeNoScale?this.getLineScale():1;if(r>1e-10&&(m.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),U.containStroke(O,i/r,a,f)))return!0}if(m.hasFill())return U.contain(O,a,f)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,f){a==="shape"?(this.setShape(f),this.__dirtyPath=!0,this._rect=null):Y.prototype.attrKV.call(this,a,f)},setShape:function(a,f){var x=this.shape;if(x){if(j.isObject(a))for(var y in a)a.hasOwnProperty(y)&&(x[y]=a[y]);else x[a]=f;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&s(a[0]-1)>1e-10&&s(a[3]-1)>1e-10?Math.sqrt(s(a[0]*a[3]-a[2]*a[1])):1}},w.extend=function(a){var f=function(y){w.call(this,y),a.style&&this.style.extendFrom(a.style,!1);var m=a.shape;if(m){this.shape=this.shape||{};var O=this.shape;for(var i in m)!O.hasOwnProperty(i)&&m.hasOwnProperty(i)&&(O[i]=m[i])}a.init&&a.init.call(this,y)};j.inherits(f,w);for(var x in a)x!=="style"&&x!=="shape"&&(f.prototype[x]=a[x]);return f},j.inherits(w,Y);var p=w;Ye.exports=p},"y0+3":function(Ye,ie,_){"use strict";_.d(ie,"a",function(){return a}),_.d(ie,"b",function(){return x});var Y=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},L={cssFloat:1,styleFloat:1,float:1};function U(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function S(y,m,O){if(m=m.toLowerCase(),O==="auto"){if(m==="height")return y.offsetHeight;if(m==="width")return y.offsetWidth}return m in j||(j[m]=Y.test(m)),j[m]?parseFloat(O)||0:O}function g(y,m){var O=arguments.length,i=U(y);return m=L[m]?"cssFloat"in y.style?"cssFloat":"styleFloat":m,O===1?i:S(y,m,i[m]||y.style[m])}function s(y,m,O){var i=arguments.length;if(m=L[m]?"cssFloat"in y.style?"cssFloat":"styleFloat":m,i===3)return typeof O=="number"&&Y.test(m)&&(O="".concat(O,"px")),y.style[m]=O,O;for(var r in m)m.hasOwnProperty(r)&&s(y,r,m[r]);return U(y)}function d(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function w(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function p(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:m}}function a(){var y=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:m}}function f(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function x(y){var m=y.getBoundingClientRect(),O=document.documentElement;return{left:m.left+(window.pageXOffset||O.scrollLeft)-(O.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||O.scrollTop)-(O.clientTop||document.body.clientTop||0)}}},y23F:function(Ye,ie){function _(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}_.prototype={constructor:_,_dragStart:function(L){for(var U=L.target;U&&!U.draggable;)U=U.parent;U&&(this._draggingTarget=U,U.dragging=!0,this._x=L.offsetX,this._y=L.offsetY,this.dispatchToElement(Y(U,L),"dragstart",L.event))},_drag:function(L){var U=this._draggingTarget;if(U){var S=L.offsetX,g=L.offsetY,s=S-this._x,d=g-this._y;this._x=S,this._y=g,U.drift(s,d,L),this.dispatchToElement(Y(U,L),"drag",L.event);var w=this.findHover(S,g,U).target,p=this._dropTarget;this._dropTarget=w,U!==w&&(p&&w!==p&&this.dispatchToElement(Y(p,L),"dragleave",L.event),w&&w!==p&&this.dispatchToElement(Y(w,L),"dragenter",L.event))}},_dragEnd:function(L){var U=this._draggingTarget;U&&(U.dragging=!1),this.dispatchToElement(Y(U,L),"dragend",L.event),this._dropTarget&&this.dispatchToElement(Y(this._dropTarget,L),"drop",L.event),this._draggingTarget=null,this._dropTarget=null}};function Y(L,U){return{target:L,topTarget:U&&U.topTarget}}var j=_;Ye.exports=j},yslc:function(Ye,ie){Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},yxFR:function(Ye,ie,_){var Y=_("y+Vt"),j=_("nPnh"),L=j.subPixelOptimizeLine,U={},S=Y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(g,s){var d,w,p,a;this.subPixelOptimize?(L(U,s,this.style),d=U.x1,w=U.y1,p=U.x2,a=U.y2):(d=s.x1,w=s.y1,p=s.x2,a=s.y2);var f=s.percent;if(f===0)return;g.moveTo(d,w),f<1&&(p=d*(1-f)+p*f,a=w*(1-f)+a*f),g.lineTo(p,a)},pointAt:function(g){var s=this.shape;return[s.x1*(1-g)+s.x2*g,s.y1*(1-g)+s.y2*g]}});Ye.exports=S},zarK:function(Ye,ie,_){var Y=_("YH21"),j=Y.addEventListener,L=Y.removeEventListener,U=Y.normalizeEvent,S=Y.getNativeEvent,g=_("bYtY"),s=_("H6uX"),d=_("ItGF"),w=300,p=d.domSupported,a=function(){var R=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],k=["touchstart","touchend","touchmove"],I={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=g.map(R,function(V){var W=V.replace("mouse","pointer");return I.hasOwnProperty(W)?W:V});return{mouse:R,touch:k,pointer:F}}(),f={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function x(R){return R==="mousewheel"&&d.browser.firefox?"DOMMouseScroll":R}function y(R){var k=R.pointerType;return k==="pen"||k==="touch"}function m(R){R.touching=!0,R.touchTimer!=null&&(clearTimeout(R.touchTimer),R.touchTimer=null),R.touchTimer=setTimeout(function(){R.touching=!1,R.touchTimer=null},700)}function O(R){R&&(R.zrByTouch=!0)}function i(R,k){return U(R.dom,new u(R,k),!0)}function r(R,k){for(var I=k,F=!1;I&&I.nodeType!==9&&!(F=I.domBelongToZr||I!==k&&I===R.painterRoot);)I=I.parentNode;return F}function u(R,k){this.type=k.type,this.target=this.currentTarget=R.dom,this.pointerType=k.pointerType,this.clientX=k.clientX,this.clientY=k.clientY}var h=u.prototype;h.stopPropagation=h.stopImmediatePropagation=h.preventDefault=g.noop;var b={mousedown:function(R){R=U(this.dom,R),this._mayPointerCapture=[R.zrX,R.zrY],this.trigger("mousedown",R)},mousemove:function(R){R=U(this.dom,R);var k=this._mayPointerCapture;k&&(R.zrX!==k[0]||R.zrY!==k[1])&&o(this,!0),this.trigger("mousemove",R)},mouseup:function(R){R=U(this.dom,R),o(this,!1),this.trigger("mouseup",R)},mouseout:function(R){R=U(this.dom,R),this._pointerCapturing&&(R.zrEventControl="no_globalout");var k=R.toElement||R.relatedTarget;R.zrIsToLocalDOM=r(this,k),this.trigger("mouseout",R)},touchstart:function(R){R=U(this.dom,R),O(R),this._lastTouchMoment=new Date,this.handler.processGesture(R,"start"),b.mousemove.call(this,R),b.mousedown.call(this,R)},touchmove:function(R){R=U(this.dom,R),O(R),this.handler.processGesture(R,"change"),b.mousemove.call(this,R)},touchend:function(R){R=U(this.dom,R),O(R),this.handler.processGesture(R,"end"),b.mouseup.call(this,R),+new Date-this._lastTouchMoment0?y.cmdState[y.cmdState.length-1]:null}function M(y){var f=y.cmdState.pop();f&&f.closeBracket()}function j(y){for(var f=y.cmdState,m=f.length-1;m>=0;m--){var a=f[m];if(a.name=="DEFAULT")continue;return a}return{styleIdentifier:function(){return null}}}function U(y,f,m){return function(){this.name=y,this.bracketNo=0,this.style=f,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var _={};_.importmodule=U("importmodule","tag",["string","builtin"]),_.documentclass=U("documentclass","tag",["","atom"]),_.usepackage=U("usepackage","tag",["atom"]),_.begin=U("begin","tag",["atom"]),_.end=U("end","tag",["atom"]),_.label=U("label","tag",["atom"]),_.ref=U("ref","tag",["atom"]),_.eqref=U("eqref","tag",["atom"]),_.cite=U("cite","tag",["atom"]),_.bibitem=U("bibitem","tag",["atom"]),_.Bibitem=U("Bibitem","tag",["atom"]),_.RBibitem=U("RBibitem","tag",["atom"]),_.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function R(y,f){y.f=f}function c(y,f){var m;if(y.match(/^\\[a-zA-Z@]+/)){var a=y.current().slice(1);return m=_.hasOwnProperty(a)?_[a]:_.DEFAULT,m=new m,z(f,m),R(f,w),m.style}if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/\\]/))return"tag";if(y.match("\\["))return R(f,function(o,u){return g(o,u,"\\]")}),"keyword";if(y.match("\\("))return R(f,function(o,u){return g(o,u,"\\)")}),"keyword";if(y.match("$$"))return R(f,function(o,u){return g(o,u,"$$")}),"keyword";if(y.match("$"))return R(f,function(o,u){return g(o,u,"$")}),"keyword";var n=y.next();if(n=="%")return y.skipToEnd(),"comment";if(n=="}"||n=="]"){if(m=B(f),m)m.closeBracket(n),R(f,w);else return"error";return"bracket"}else return n=="{"||n=="["?(m=_.DEFAULT,m=new m,z(f,m),"bracket"):/\d/.test(n)?(y.eatWhile(/[\w.%]/),"atom"):(y.eatWhile(/[\w\-_]/),m=j(f),m.name=="begin"&&(m.argument=y.current()),m.styleIdentifier())}function g(y,f,m){if(y.eatSpace())return null;if(m&&y.match(m))return R(f,c),"keyword";if(y.match(/^\\[a-zA-Z@]+/))return"tag";if(y.match(/^[a-zA-Z]+/))return"variable-2";if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/]/))return"tag";if(y.match(/^[\^_&]/))return"tag";if(y.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(y.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=y.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(y.skipToEnd(),"comment"):"error"}function w(y,f){var m=y.peek(),a;return m=="{"||m=="["?(a=B(f),a.openBracket(m),y.eat(m),R(f,c),"bracket"):/[ \t\r]/.test(m)?(y.eat(m),null):(R(f,c),M(f),c(y,f))}return{startState:function(){var y=k.inMathMode?function(f,m){return g(f,m)}:c;return{cmdState:[],f:y}},copyState:function(y){return{cmdState:y.cmdState.slice(),f:y.f}},token:function(y,f){return f.f(y,f)},blankLine:function(y){y.f=c,y.cmdState.length=0},lineComment:"%"}}),ee.defineMIME("text/x-stex","stex"),ee.defineMIME("text/x-latex","stex")})},"+ua5":function(et,de,N){},"/GNS":function(et,de,N){et.exports=N.p+"static/search1.c4136dd4.png"},"/cxE":function(et,de,N){"use strict";N.d(de,"e",function(){return k}),N.d(de,"f",function(){return z}),N.d(de,"g",function(){return B}),N.d(de,"d",function(){return j}),N.d(de,"a",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"c",function(){return R});var ee=function(){function c(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(function(){throw g.stack?new Error(g.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[64,3,5,6,7,8,9],{"+NIl":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";ee.defineMode("stex",function(K,P){"use strict";function z(y,f){y.cmdState.push(f)}function B(y){return y.cmdState.length>0?y.cmdState[y.cmdState.length-1]:null}function M(y){var f=y.cmdState.pop();f&&f.closeBracket()}function j(y){for(var f=y.cmdState,m=f.length-1;m>=0;m--){var a=f[m];if(a.name=="DEFAULT")continue;return a}return{styleIdentifier:function(){return null}}}function U(y,f,m){return function(){this.name=y,this.bracketNo=0,this.style=f,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var _={};_.importmodule=U("importmodule","tag",["string","builtin"]),_.documentclass=U("documentclass","tag",["","atom"]),_.usepackage=U("usepackage","tag",["atom"]),_.begin=U("begin","tag",["atom"]),_.end=U("end","tag",["atom"]),_.label=U("label","tag",["atom"]),_.ref=U("ref","tag",["atom"]),_.eqref=U("eqref","tag",["atom"]),_.cite=U("cite","tag",["atom"]),_.bibitem=U("bibitem","tag",["atom"]),_.Bibitem=U("Bibitem","tag",["atom"]),_.RBibitem=U("RBibitem","tag",["atom"]),_.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function R(y,f){y.f=f}function c(y,f){var m;if(y.match(/^\\[a-zA-Z@]+/)){var a=y.current().slice(1);return m=_.hasOwnProperty(a)?_[a]:_.DEFAULT,m=new m,z(f,m),R(f,w),m.style}if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/\\]/))return"tag";if(y.match("\\["))return R(f,function(o,u){return g(o,u,"\\]")}),"keyword";if(y.match("\\("))return R(f,function(o,u){return g(o,u,"\\)")}),"keyword";if(y.match("$$"))return R(f,function(o,u){return g(o,u,"$$")}),"keyword";if(y.match("$"))return R(f,function(o,u){return g(o,u,"$")}),"keyword";var n=y.next();if(n=="%")return y.skipToEnd(),"comment";if(n=="}"||n=="]"){if(m=B(f),m)m.closeBracket(n),R(f,w);else return"error";return"bracket"}else return n=="{"||n=="["?(m=_.DEFAULT,m=new m,z(f,m),"bracket"):/\d/.test(n)?(y.eatWhile(/[\w.%]/),"atom"):(y.eatWhile(/[\w\-_]/),m=j(f),m.name=="begin"&&(m.argument=y.current()),m.styleIdentifier())}function g(y,f,m){if(y.eatSpace())return null;if(m&&y.match(m))return R(f,c),"keyword";if(y.match(/^\\[a-zA-Z@]+/))return"tag";if(y.match(/^[a-zA-Z]+/))return"variable-2";if(y.match(/^\\[$&%#{}_]/))return"tag";if(y.match(/^\\[,;!\/]/))return"tag";if(y.match(/^[\^_&]/))return"tag";if(y.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(y.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=y.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(y.skipToEnd(),"comment"):"error"}function w(y,f){var m=y.peek(),a;return m=="{"||m=="["?(a=B(f),a.openBracket(m),y.eat(m),R(f,c),"bracket"):/[ \t\r]/.test(m)?(y.eat(m),null):(R(f,c),M(f),c(y,f))}return{startState:function(){var y=P.inMathMode?function(f,m){return g(f,m)}:c;return{cmdState:[],f:y}},copyState:function(y){return{cmdState:y.cmdState.slice(),f:y.f}},token:function(y,f){return f.f(y,f)},blankLine:function(y){y.f=c,y.cmdState.length=0},lineComment:"%"}}),ee.defineMIME("text/x-stex","stex"),ee.defineMIME("text/x-latex","stex")})},"+ua5":function(et,de,N){},"/GNS":function(et,de,N){et.exports=N.p+"static/search1.c4136dd4.png"},"/cxE":function(et,de,N){"use strict";N.d(de,"e",function(){return P}),N.d(de,"f",function(){return z}),N.d(de,"g",function(){return B}),N.d(de,"d",function(){return j}),N.d(de,"a",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"c",function(){return R});var ee=function(){function c(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(function(){throw g.stack?new Error(g.message+` -`+g.stack):g},0)}}return c.prototype.emit=function(g){this.listeners.forEach(function(w){w(g)})},c.prototype.onUnexpectedError=function(g){this.unexpectedErrorHandler(g),this.emit(g)},c.prototype.onUnexpectedExternalError=function(g){this.unexpectedErrorHandler(g)},c}(),K=new ee;function k(c){j(c)||K.onUnexpectedError(c);return}function z(c){j(c)||K.onUnexpectedExternalError(c);return}function B(c){if(c instanceof Error){var g=c.name,w=c.message,y=c.stacktrace||c.stack;return{$isError:!0,name:g,message:w,stack:y}}return c}var M="Canceled";function j(c){return c instanceof Error&&c.name===M&&c.message===M}function U(){var c=new Error(M);return c.name=c.message,c}function _(c){return c?new Error("Illegal argument: "+c):new Error("Illegal argument")}function R(c){return c?new Error("Illegal state: "+c):new Error("Illegal state")}},"19Vz":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){ee.defineOption("placeholder","",function(U,_,R){var c=R&&R!=ee.Init;if(_&&!c)U.on("blur",B),U.on("change",M),U.on("swapDoc",M),ee.on(U.getInputField(),"compositionupdate",U.state.placeholderCompose=function(){z(U)}),M(U);else if(!_&&c){U.off("blur",B),U.off("change",M),U.off("swapDoc",M),ee.off(U.getInputField(),"compositionupdate",U.state.placeholderCompose),K(U);var g=U.getWrapperElement();g.className=g.className.replace(" CodeMirror-empty","")}_&&!U.hasFocus()&&B(U)});function K(U){U.state.placeholder&&(U.state.placeholder.parentNode.removeChild(U.state.placeholder),U.state.placeholder=null)}function k(U){K(U);var _=U.state.placeholder=document.createElement("pre");_.style.cssText="height: 0; overflow: visible",_.style.direction=U.getOption("direction"),_.className="CodeMirror-placeholder CodeMirror-line-like";var R=U.getOption("placeholder");typeof R=="string"&&(R=document.createTextNode(R)),_.appendChild(R),U.display.lineSpace.insertBefore(_,U.display.lineSpace.firstChild)}function z(U){setTimeout(function(){var _=!1,R=U.getInputField();R.nodeName=="TEXTAREA"?_=!R.value:U.lineCount()==1&&(_=!/[^\u200b]/.test(R.querySelector(".CodeMirror-line").textContent)),_?k(U):K(U)},20)}function B(U){j(U)&&k(U)}function M(U){var _=U.getWrapperElement(),R=j(U);_.className=_.className.replace(" CodeMirror-empty","")+(R?" CodeMirror-empty":""),R?k(U):K(U)}function j(U){return U.lineCount()===1&&U.getLine(0)===""}})},"1eCo":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";var K={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},k={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ee.defineMode("xml",function(z,B){var M=z.indentUnit,j={},U=B.htmlMode?K:k;for(var _ in U)j[_]=U[_];for(var _ in B)j[_]=B[_];var R,c;function g(l,D){function T(C){return D.tokenize=C,C(l,D)}var S=l.next();if(S=="<")return l.eat("!")?l.eat("[")?l.match("CDATA[")?T(f("atom","]]>")):null:l.match("--")?T(f("comment","-->")):l.match("DOCTYPE",!0,!0)?(l.eatWhile(/[\w\._\-]/),T(m(1))):null:l.eat("?")?(l.eatWhile(/[\w\._\-]/),D.tokenize=f("meta","?>"),"meta"):(R=l.eat("/")?"closeTag":"openTag",D.tokenize=w,"tag bracket");if(S=="&"){var I;return l.eat("#")?l.eat("x")?I=l.eatWhile(/[a-fA-F\d]/)&&l.eat(";"):I=l.eatWhile(/[\d]/)&&l.eat(";"):I=l.eatWhile(/[\w\.\-:]/)&&l.eat(";"),I?"atom":"error"}else return l.eatWhile(/[^&<]/),null}g.isInText=!0;function w(l,D){var T=l.next();if(T==">"||T=="/"&&l.eat(">"))return D.tokenize=g,R=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return R="equals",null;if(T=="<"){D.tokenize=g,D.state=u,D.tagName=D.tagStart=null;var S=D.tokenize(l,D);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(T)?(D.tokenize=y(T),D.stringStartCol=l.column(),D.tokenize(l,D)):(l.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function y(l){var D=function(T,S){for(;!T.eol();)if(T.next()==l){S.tokenize=w;break}return"string"};return D.isInAttribute=!0,D}function f(l,D){return function(T,S){for(;!T.eol();){if(T.match(D)){S.tokenize=g;break}T.next()}return l}}function m(l){return function(D,T){for(var S;(S=D.next())!=null;){if(S=="<")return T.tokenize=m(l+1),T.tokenize(D,T);if(S==">")if(l==1){T.tokenize=g;break}else return T.tokenize=m(l-1),T.tokenize(D,T)}return"meta"}}function a(l,D,T){this.prev=l.context,this.tagName=D,this.indent=l.indented,this.startOfLine=T,(j.doNotIndent.hasOwnProperty(D)||l.context&&l.context.noIndent)&&(this.noIndent=!0)}function n(l){l.context&&(l.context=l.context.prev)}function o(l,D){for(var T;;){if(!l.context)return;if(T=l.context.tagName,!j.contextGrabbers.hasOwnProperty(T)||!j.contextGrabbers[T].hasOwnProperty(D))return;n(l)}}function u(l,D,T){return l=="openTag"?(T.tagStart=D.column(),x):l=="closeTag"?E:u}function x(l,D,T){return l=="word"?(T.tagName=D.current(),c="tag",A):j.allowMissingTagName&&l=="endTag"?(c="tag bracket",A(l,D,T)):(c="error",x)}function E(l,D,T){if(l=="word"){var S=D.current();return T.context&&T.context.tagName!=S&&j.implicitlyClosed.hasOwnProperty(T.context.tagName)&&n(T),T.context&&T.context.tagName==S||j.matchClosing===!1?(c="tag",v):(c="tag error",O)}else return j.allowMissingTagName&&l=="endTag"?(c="tag bracket",v(l,D,T)):(c="error",O)}function v(l,D,T){return l!="endTag"?(c="error",v):(n(T),u)}function O(l,D,T){return c="error",v(l,D,T)}function A(l,D,T){if(l=="word")return c="attribute",p;if(l=="endTag"||l=="selfcloseTag"){var S=T.tagName,I=T.tagStart;return T.tagName=T.tagStart=null,l=="selfcloseTag"||j.autoSelfClosers.hasOwnProperty(S)?o(T,S):(o(T,S),T.context=new a(T,S,I==T.indented)),u}return c="error",A}function p(l,D,T){return l=="equals"?h:(j.allowMissing||(c="error"),A(l,D,T))}function h(l,D,T){return l=="string"?s:l=="word"&&j.allowUnquoted?(c="string",A):(c="error",A(l,D,T))}function s(l,D,T){return l=="string"?s:A(l,D,T)}return{startState:function(l){var D={tokenize:g,state:u,indented:l||0,tagName:null,tagStart:null,context:null};return l!=null&&(D.baseIndent=l),D},token:function(l,D){if(!D.tagName&&l.sol()&&(D.indented=l.indentation()),l.eatSpace())return null;R=null;var T=D.tokenize(l,D);return(T||R)&&T!="comment"&&(c=null,D.state=D.state(R||T,l,D),c&&(T=c=="error"?T+" error":c)),T},indent:function(l,D,T){var S=l.context;if(l.tokenize.isInAttribute)return l.tagStart==l.indented?l.stringStartCol+1:l.indented+M;if(S&&S.noIndent)return ee.Pass;if(l.tokenize!=w&&l.tokenize!=g)return T?T.match(/^(\s*)/)[0].length:0;if(l.tagName)return j.multilineTagIndentPastTag!==!1?l.tagStart+l.tagName.length+2:l.tagStart+M*(j.multilineTagIndentFactor||1);if(j.alignCDATA&&/$/,blockCommentStart:"",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml",skipAttribute:function(l){l.state==h&&(l.state=A)},xmlCurrentTag:function(l){return l.tagName?{name:l.tagName,close:l.type=="closeTag"}:null},xmlCurrentContext:function(l){for(var D=[],T=l.context;T;T=T.prev)T.tagName&&D.push(T.tagName);return D.reverse()}}}),ee.defineMIME("text/xml","xml"),ee.defineMIME("application/xml","xml"),ee.mimeModes.hasOwnProperty("text/html")||ee.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(et,de,N){"use strict";N.d(de,"d",function(){return yt}),N.d(de,"b",function(){return Be}),N.d(de,"c",function(){return ut}),N.d(de,"a",function(){return Tt});var ee=N("VTBJ"),K=N("1OyB"),k=N("vuIU"),z=N("JX7q"),B=N("Ji7U"),M=N("LK+K"),j=N("q1tI"),U=N("I8Z2"),_=N("BGR+"),R=N("wx14"),c=N("rePB"),g=N("4IlW"),w=N("2GS6"),y=N("Gytx"),f=N.n(y),m=N("TSYQ"),a=N.n(m),n=N("U8pU"),o=N("ODXe"),u=/iPhone/i,x=/iPod/i,E=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,O=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,p=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,l=/BlackBerry/i,D=/BB10/i,T=/Opera Mini/i,S=/\b(CriOS|Chrome)(?:.+)Mobile/i,I=/Mobile(?:.+)Firefox\b/i;function C(gt,qe){return gt.test(qe)}function W(gt){var qe=gt||(typeof navigator!="undefined"?navigator.userAgent:""),Xe=qe.split("[FBAN");if(typeof Xe[1]!="undefined"){var ke=Xe,se=Object(o.a)(ke,1);qe=se[0]}if(Xe=qe.split("Twitter"),typeof Xe[1]!="undefined"){var fe=Xe,$e=Object(o.a)(fe,1);qe=$e[0]}var Pe={apple:{phone:C(u,qe)&&!C(h,qe),ipod:C(x,qe),tablet:!C(u,qe)&&C(E,qe)&&!C(h,qe),device:(C(u,qe)||C(x,qe)||C(E,qe))&&!C(h,qe)},amazon:{phone:C(A,qe),tablet:!C(A,qe)&&C(p,qe),device:C(A,qe)||C(p,qe)},android:{phone:!C(h,qe)&&C(A,qe)||!C(h,qe)&&C(v,qe),tablet:!C(h,qe)&&!C(A,qe)&&!C(v,qe)&&(C(p,qe)||C(O,qe)),device:!C(h,qe)&&(C(A,qe)||C(p,qe)||C(v,qe)||C(O,qe))||C(/\bokhttp\b/i,qe)},windows:{phone:C(h,qe),tablet:C(s,qe),device:C(h,qe)||C(s,qe)},other:{blackberry:C(l,qe),blackberry10:C(D,qe),opera:C(T,qe),firefox:C(I,qe),chrome:C(S,qe),device:C(l,qe)||C(D,qe)||C(T,qe)||C(I,qe)||C(S,qe)},any:null,phone:null,tablet:null};return Pe.any=Pe.apple.device||Pe.android.device||Pe.windows.device||Pe.other.device,Pe.phone=Pe.apple.phone||Pe.android.phone||Pe.windows.phone,Pe.tablet=Pe.apple.tablet||Pe.android.tablet||Pe.windows.tablet,Pe}var Y=Object(ee.a)(Object(ee.a)({},W()),{},{isMobile:W}),H=Y;function F(){}function q(gt,qe,Xe){var ke=qe||"";return gt.key||"".concat(ke,"item_").concat(Xe)}function le(gt){return"".concat(gt,"-menu-")}function pe(gt,qe){var Xe=-1;j.Children.forEach(gt,function(ke){Xe+=1,ke&&ke.type&&ke.type.isMenuItemGroup?j.Children.forEach(ke.props.children,function(se){Xe+=1,qe(se,Xe)}):qe(ke,Xe)})}function Ae(gt,qe,Xe){if(!gt||Xe.find)return;j.Children.forEach(gt,function(ke){if(ke){var se=ke.type;if(!se||!(se.isSubMenu||se.isMenuItem||se.isMenuItemGroup))return;qe.indexOf(ke.key)!==-1?Xe.find=!0:ke.props.children&&Ae(ke.props.children,qe,Xe)}})}var Ge=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Fe=function(qe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=qe&&typeof qe.getBoundingClientRect=="function"&&qe.getBoundingClientRect().width;if(ke){if(Xe){var se=getComputedStyle(qe),fe=se.marginLeft,$e=se.marginRight;ke+=+fe.replace("px","")+ +$e.replace("px","")}ke=+ke.toFixed(6)}return ke||0},Ue=function(qe,Xe,ke){qe&&Object(n.a)(qe.style)==="object"&&(qe.style[Xe]=ke)},_e=function(){return H.any},je=N("KQm4"),xe=N("Ff2n"),he=N("i8i4"),te=N("bdgK"),ye=N("uciX"),ue=N("8XRh"),Le={adjustX:1,adjustY:1},ae={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},Se=ae,Me=0,We={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ke=function(qe,Xe,ke){var se=le(Xe),fe=qe.getState();qe.setState({defaultActiveFirst:Object(ee.a)(Object(ee.a)({},fe.defaultActiveFirst),{},Object(c.a)({},se,ke))})},Qe=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(ke){var se;Object(K.a)(this,Xe),se=qe.call(this,ke),se.onDestroy=function(Ne){se.props.onDestroy(Ne)},se.onKeyDown=function(Ne){var Ve=Ne.keyCode,tt=se.menuInstance,ft=se.props,Ct=ft.isOpen,zt=ft.store;if(Ve===g.a.ENTER)return se.onTitleClick(Ne),Ke(zt,se.props.eventKey,!0),!0;if(Ve===g.a.RIGHT)return Ct?tt.onKeyDown(Ne):(se.triggerOpenChange(!0),Ke(zt,se.props.eventKey,!0)),!0;if(Ve===g.a.LEFT){var qt;if(Ct)qt=tt.onKeyDown(Ne);else return;return qt||(se.triggerOpenChange(!1),qt=!0),qt}return Ct&&(Ve===g.a.UP||Ve===g.a.DOWN)?tt.onKeyDown(Ne):void 0},se.onOpenChange=function(Ne){se.props.onOpenChange(Ne)},se.onPopupVisibleChange=function(Ne){se.triggerOpenChange(Ne,Ne?"mouseenter":"mouseleave")},se.onMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onMouseEnter,Ct=Ve.store;Ke(Ct,se.props.eventKey,!1),ft({key:tt,domEvent:Ne})},se.onMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,domEvent:Ne})},se.onTitleMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onItemHover,Ct=Ve.onTitleMouseEnter;ft({key:tt,hover:!0}),Ct({key:tt,domEvent:Ne})},se.onTitleMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onItemHover,zt=Ve.onTitleMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,hover:!1}),zt({key:ft,domEvent:Ne})},se.onTitleClick=function(Ne){var Ve=Object(z.a)(se),tt=Ve.props;if(tt.onTitleClick({key:tt.eventKey,domEvent:Ne}),tt.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!tt.isOpen,"click"),Ke(tt.store,se.props.eventKey,!1)},se.onSubMenuClick=function(Ne){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(Ne))},se.onSelect=function(Ne){se.props.onSelect(Ne)},se.onDeselect=function(Ne){se.props.onDeselect(Ne)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.saveMenuInstance=function(Ne){se.menuInstance=Ne},se.addKeyPath=function(Ne){return Object(ee.a)(Object(ee.a)({},Ne),{},{keyPath:(Ne.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(Ne,Ve){var tt=se.props.eventKey,ft=function(){se.onOpenChange({key:tt,item:Object(z.a)(se),trigger:Ve,open:Ne})};Ve==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){ft()},0):ft()},se.isChildrenSelected=function(){var Ne={find:!1};return Ae(se.props.children,se.props.selectedKeys,Ne),Ne.find},se.isOpen=function(){return se.props.openKeys.indexOf(se.props.eventKey)!==-1},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var Ne=he.findDOMNode(se.menuInstance);if(Ne.offsetWidth>=se.subMenuTitle.offsetWidth)return;Ne.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(Ne){se.subMenuTitle=Ne},se.getBaseProps=function(){var Ne=Object(z.a)(se),Ve=Ne.props;return{mode:Ve.mode==="horizontal"?"vertical":Ve.mode,visible:se.props.isOpen,level:Ve.level+1,inlineIndent:Ve.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:Ve.selectedKeys,eventKey:"".concat(Ve.eventKey,"-menu-"),openKeys:Ve.openKeys,motion:Ve.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:Ve.subMenuOpenDelay,parentMenu:Object(z.a)(se),subMenuCloseDelay:Ve.subMenuCloseDelay,forceSubMenuRender:Ve.forceSubMenuRender,triggerSubMenuAction:Ve.triggerSubMenuAction,builtinPlacements:Ve.builtinPlacements,defaultActiveFirst:Ve.store.getState().defaultActiveFirst[le(Ve.eventKey)],multiple:Ve.multiple,prefixCls:Ve.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:Ve.itemIcon,expandIcon:Ve.expandIcon,direction:Ve.direction}},se.getMotion=function(Ne,Ve){var tt=Object(z.a)(se),ft=tt.haveRendered,Ct=se.props,zt=Ct.motion,qt=Ct.rootPrefixCls,Qt=Object(ee.a)(Object(ee.a)({},zt),{},{leavedClassName:"".concat(qt,"-hidden"),removeOnLeave:!1,motionAppear:ft||!Ve||Ne!=="inline"});return Qt};var fe=ke.store,$e=ke.eventKey,Pe=fe.getState(),it=Pe.defaultActiveFirst;se.isRootMenu=!1;var at=!1;return it&&(at=it[$e]),Ke(fe,$e,at),se}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,fe=this.props,$e=fe.mode,Pe=fe.parentMenu,it=fe.manualRef;if(it&&it(this),$e!=="horizontal"||!Pe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,fe=se.onDestroy,$e=se.eventKey;fe&&fe($e),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(se){var fe=this,$e=this.getBaseProps(),Pe=this.getMotion($e.mode,$e.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e.visible||$e.forceSubMenuRender,!this.haveOpened)return j.createElement("div",null);var it=$e.direction;return j.createElement(ue.default,Object.assign({visible:$e.visible},Pe),function(at){var Ne=at.className,Ve=at.style,tt=a()("".concat($e.prefixCls,"-sub"),Ne,Object(c.a)({},"".concat($e.prefixCls,"-rtl"),it==="rtl"));return j.createElement(Te,Object.assign({},$e,{id:fe.internalMenuId,className:tt,style:Ve}),se)})}},{key:"render",value:function(){var se,fe=Object(ee.a)({},this.props),$e=fe.isOpen,Pe=this.getPrefixCls(),it=fe.mode==="inline",at=a()(Pe,"".concat(Pe,"-").concat(fe.mode),(se={},Object(c.a)(se,fe.className,!!fe.className),Object(c.a)(se,this.getOpenClassName(),$e),Object(c.a)(se,this.getActiveClassName(),fe.active||$e&&!it),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),Object(c.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(fe.eventKey?this.internalMenuId="".concat(fe.eventKey,"$Menu"):(Me+=1,this.internalMenuId="$__$".concat(Me,"$Menu")));var Ne={},Ve={},tt={};fe.disabled||(Ne={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ve={onClick:this.onTitleClick},tt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ft={},Ct=fe.direction;it&&(Ct==="rtl"?ft.paddingRight=fe.inlineIndent*fe.level:ft.paddingLeft=fe.inlineIndent*fe.level);var zt={};this.props.isOpen&&(zt={"aria-owns":this.internalMenuId});var qt=null;fe.mode!=="horizontal"&&(qt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qt=j.createElement(this.props.expandIcon,Object(ee.a)({},this.props))));var Qt=j.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ft,className:"".concat(Pe,"-title"),role:"button"},tt,Ve,{"aria-expanded":$e},zt,{"aria-haspopup":"true",title:typeof fe.title=="string"?fe.title:void 0}),fe.title,qt||j.createElement("i",{className:"".concat(Pe,"-arrow")})),St=this.renderChildren(fe.children),ln=fe.parentMenu.isRootMenu?fe.parentMenu.props.getPopupContainer:function(un){return un.parentNode},Bt=We[fe.mode],Yt=fe.popupOffset?{offset:fe.popupOffset}:{},Mt=fe.mode==="inline"?"":fe.popupClassName;Mt+=Ct==="rtl"?" ".concat(Pe,"-rtl"):"";var tn=fe.disabled,mn=fe.triggerSubMenuAction,An=fe.subMenuOpenDelay,lt=fe.forceSubMenuRender,Rt=fe.subMenuCloseDelay,Jt=fe.builtinPlacements;Ge.forEach(function(un){return delete fe[un]}),delete fe.onClick;var nn=Ct==="rtl"?Object.assign({},oe,Jt):Object.assign({},ae,Jt);return delete fe.direction,j.createElement("li",Object.assign({},fe,Ne,{className:at,role:"menuitem"}),it&&Qt,it&&St,!it&&j.createElement(ye.a,{prefixCls:Pe,popupClassName:a()("".concat(Pe,"-popup"),Mt),getPopupContainer:ln,builtinPlacements:nn,popupPlacement:Bt,popupVisible:$e,popupAlign:Yt,popup:St,action:tn?[]:[mn],mouseEnterDelay:An,mouseLeaveDelay:Rt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:lt},Qt))}}]),Xe}(j.Component);Qe.defaultProps={onMouseEnter:F,onMouseLeave:F,onTitleMouseEnter:F,onTitleMouseLeave:F,onTitleClick:F,manualRef:F,mode:"vertical",title:""};var Ze=Object(U.b)(function(gt,qe){var Xe=gt.openKeys,ke=gt.activeKey,se=gt.selectedKeys,fe=qe.eventKey,$e=qe.subMenuKey;return{isOpen:Xe.indexOf(fe)>-1,active:ke[$e]===fe,selectedKeys:se}})(Qe);Ze.isSubMenu=!0;var yt=Ze,vt="menuitem-overflowed",dt=.5,pt=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var ke;return Object(K.a)(this,Xe),ke=qe.apply(this,arguments),ke.resizeObserver=null,ke.mutationObserver=null,ke.originalTotalWidth=0,ke.overflowedItems=[],ke.menuItemSizes=[],ke.cancelFrameId=null,ke.state={lastVisibleIndex:void 0},ke.getMenuItemNodes=function(){var se=ke.props.prefixCls,fe=he.findDOMNode(Object(z.a)(ke));return fe?[].slice.call(fe.children).filter(function($e){return $e.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},ke.getOverflowedSubMenuItem=function(se,fe,$e){var Pe=ke.props,it=Pe.overflowedIndicator,at=Pe.level,Ne=Pe.mode,Ve=Pe.prefixCls,tt=Pe.theme;if(at!==1||Ne!=="horizontal")return null;var ft=ke.props.children[0],Ct=ft.props,zt=Ct.children,qt=Ct.title,Qt=Ct.style,St=Object(xe.a)(Ct,["children","title","style"]),ln=Object(ee.a)({},Qt),Bt="".concat(se,"-overflowed-indicator"),Yt="".concat(se,"-overflowed-indicator");fe.length===0&&$e!==!0?ln=Object(ee.a)(Object(ee.a)({},ln),{},{display:"none"}):$e&&(ln=Object(ee.a)(Object(ee.a)({},ln),{},{visibility:"hidden",position:"absolute"}),Bt="".concat(Bt,"-placeholder"),Yt="".concat(Yt,"-placeholder"));var Mt=tt?"".concat(Ve,"-").concat(tt):"",tn={};return Ge.forEach(function(mn){St[mn]!==void 0&&(tn[mn]=St[mn])}),j.createElement(yt,Object.assign({title:it,className:"".concat(Ve,"-overflowed-submenu"),popupClassName:Mt},tn,{key:Bt,eventKey:Yt,disabled:!1,style:ln}),fe)},ke.setChildrenWidthAndResize=function(){if(ke.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(ke));if(!se)return;var fe=se.children;if(!fe||fe.length===0)return;var $e=se.children[fe.length-1];Ue($e,"display","inline-block");var Pe=ke.getMenuItemNodes(),it=Pe.filter(function(at){return at.className.split(" ").indexOf(vt)>=0});it.forEach(function(at){Ue(at,"display","inline-block")}),ke.menuItemSizes=Pe.map(function(at){return Fe(at,!0)}),it.forEach(function(at){Ue(at,"display","none")}),ke.overflowedIndicatorWidth=Fe(se.children[se.children.length-1],!0),ke.originalTotalWidth=ke.menuItemSizes.reduce(function(at,Ne){return at+Ne},0),ke.handleResize(),Ue($e,"display","none")},ke.handleResize=function(){if(ke.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(ke));if(!se)return;var fe=Fe(se);ke.overflowedItems=[];var $e=0,Pe;ke.originalTotalWidth>fe+dt&&(Pe=-1,ke.menuItemSizes.forEach(function(it){$e+=it,$e+ke.overflowedIndicatorWidth<=fe&&(Pe+=1)})),ke.setState({lastVisibleIndex:Pe})},ke}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var fe=he.findDOMNode(this);if(!fe)return;this.resizeObserver=new te.default(function($e){$e.forEach(function(){var Pe=se.cancelFrameId;cancelAnimationFrame(Pe),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(fe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(se){var fe=this,$e=this.state.lastVisibleIndex;return(se||[]).reduce(function(Pe,it,at){var Ne=it;if(fe.props.mode==="horizontal"){var Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,[]);$e!==void 0&&fe.props.className.indexOf("".concat(fe.props.prefixCls,"-root"))!==-1&&(at>$e&&(Ne=j.cloneElement(it,{style:{display:"none"},eventKey:"".concat(it.props.eventKey,"-hidden"),className:"".concat(vt)})),at===$e+1&&(fe.overflowedItems=se.slice($e+1).map(function(ft){return j.cloneElement(ft,{key:ft.props.eventKey,mode:"vertical-left"})}),Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,fe.overflowedItems)));var tt=[].concat(Object(je.a)(Pe),[Ve,Ne]);return at===se.length-1&&tt.push(fe.getOverflowedSubMenuItem(it.props.eventKey,[],!0)),tt}return[].concat(Object(je.a)(Pe),[Ne])},[])}},{key:"render",value:function(){var se=this.props,fe=se.visible,$e=se.prefixCls,Pe=se.overflowedIndicator,it=se.mode,at=se.level,Ne=se.tag,Ve=se.children,tt=se.theme,ft=Object(xe.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ct=Ne;return j.createElement(Ct,Object.assign({},ft),this.renderChildren(Ve))}}]),Xe}(j.Component);pt.defaultProps={tag:"div",className:""};var At=pt;function wt(gt){return gt.length?gt.every(function(qe){return!!qe.props.disabled}):!0}function Oe(gt,qe,Xe){var ke=gt.getState();gt.setState({activeKey:Object(ee.a)(Object(ee.a)({},ke.activeKey),{},Object(c.a)({},qe,Xe))})}function we(gt){return gt.eventKey||"0-menu-"}function Je(gt,qe){var Xe=qe,ke=gt.children,se=gt.eventKey;if(Xe){var fe;if(pe(ke,function($e,Pe){$e&&$e.props&&!$e.props.disabled&&Xe===q($e,se,Pe)&&(fe=!0)}),fe)return Xe}return Xe=null,gt.defaultActiveFirst&&pe(ke,function($e,Pe){!Xe&&$e&&!$e.props.disabled&&(Xe=q($e,se,Pe))}),Xe}function st(gt){if(gt){var qe=this.instanceArray.indexOf(gt);qe!==-1?this.instanceArray[qe]=gt:this.instanceArray.push(gt)}}var He=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(ke){var se;return Object(K.a)(this,Xe),se=qe.call(this,ke),se.onKeyDown=function(fe,$e){var Pe=fe.keyCode,it;if(se.getFlatInstanceArray().forEach(function(Ne){Ne&&Ne.props.active&&Ne.onKeyDown&&(it=Ne.onKeyDown(fe))}),it)return 1;var at=null;return(Pe===g.a.UP||Pe===g.a.DOWN)&&(at=se.step(Pe===g.a.UP?-1:1)),at?(fe.preventDefault(),Oe(se.props.store,we(se.props),at.props.eventKey),typeof $e=="function"&&$e(at),1):void 0},se.onItemHover=function(fe){var $e=fe.key,Pe=fe.hover;Oe(se.props.store,we(se.props),Pe?$e:null)},se.onDeselect=function(fe){se.props.onDeselect(fe)},se.onSelect=function(fe){se.props.onSelect(fe)},se.onClick=function(fe){se.props.onClick(fe)},se.onOpenChange=function(fe){se.props.onOpenChange(fe)},se.onDestroy=function(fe){se.props.onDestroy(fe)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(fe){var $e=se.getFlatInstanceArray(),Pe=se.props.store.getState().activeKey[we(se.props)],it=$e.length;if(!it)return null;fe<0&&($e=$e.concat().reverse());var at=-1;if($e.every(function(ft,Ct){return ft&&ft.props.eventKey===Pe?(at=Ct,!1):!0}),!se.props.defaultActiveFirst&&at!==-1&&wt($e.slice(at,it-1)))return;var Ne=(at+1)%it,Ve=Ne;do{var tt=$e[Ve];if(!tt||tt.props.disabled)Ve=(Ve+1)%it;else return tt}while(Ve!==Ne);return null},se.renderCommonMenuItem=function(fe,$e,Pe){var it=se.props.store.getState(),at=Object(z.a)(se),Ne=at.props,Ve=q(fe,Ne.eventKey,$e),tt=fe.props;if(!tt||typeof fe.type=="string")return fe;var ft=Ve===it.activeKey,Ct=Object(ee.a)(Object(ee.a)({mode:tt.mode||Ne.mode,level:Ne.level,inlineIndent:Ne.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:Ne.prefixCls,index:$e,parentMenu:Ne.parentMenu,manualRef:tt.disabled?void 0:Object(w.a)(fe.ref,st.bind(Object(z.a)(se))),eventKey:Ve,active:!tt.disabled&&ft,multiple:Ne.multiple,onClick:function(qt){(tt.onClick||F)(qt),se.onClick(qt)},onItemHover:se.onItemHover,motion:Ne.motion,subMenuOpenDelay:Ne.subMenuOpenDelay,subMenuCloseDelay:Ne.subMenuCloseDelay,forceSubMenuRender:Ne.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:Ne.builtinPlacements,itemIcon:tt.itemIcon||se.props.itemIcon,expandIcon:tt.expandIcon||se.props.expandIcon},Pe),{},{direction:Ne.direction});return(Ne.mode==="inline"||_e())&&(Ct.triggerSubMenuAction="click"),j.cloneElement(fe,Ct)},se.renderMenuItem=function(fe,$e,Pe){if(!fe)return null;var it=se.props.store.getState(),at={openKeys:it.openKeys,selectedKeys:it.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:Pe};return se.renderCommonMenuItem(fe,$e,at)},ke.store.setState({activeKey:Object(ee.a)(Object(ee.a)({},ke.store.getState().activeKey),{},Object(c.a)({},ke.eventKey,Je(ke,ke.activeKey)))}),se.instanceArray=[],se}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!f()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var fe=this.props,$e="activeKey"in fe?fe.activeKey:fe.store.getState().activeKey[we(fe)],Pe=Je(fe,$e);if(Pe!==$e)Oe(fe.store,we(fe),Pe);else if("activeKey"in se){var it=Je(se,se.activeKey);Pe!==it&&Oe(fe.store,we(fe),Pe)}}},{key:"render",value:function(){var se=this,fe=Object(R.a)({},this.props);this.instanceArray=[];var $e=a()(fe.prefixCls,fe.className,"".concat(fe.prefixCls,"-").concat(fe.mode)),Pe={className:$e,role:fe.role||"menu"};fe.id&&(Pe.id=fe.id),fe.focusable&&(Pe.tabIndex=0,Pe.onKeyDown=this.onKeyDown);var it=fe.prefixCls,at=fe.eventKey,Ne=fe.visible,Ve=fe.level,tt=fe.mode,ft=fe.overflowedIndicator,Ct=fe.theme;return Ge.forEach(function(zt){return delete fe[zt]}),delete fe.onClick,j.createElement(At,Object.assign({},fe,{prefixCls:it,mode:tt,tag:"ul",level:Ve,theme:Ct,visible:Ne,overflowedIndicator:ft},Pe),j.Children.map(fe.children,function(zt,qt){return se.renderMenuItem(zt,qt,at||"0-menu-")}))}}]),Xe}(j.Component);He.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:F};var nt=Object(U.b)()(He),Te=nt,ge=N("Kwbf");function be(gt,qe,Xe){var ke=gt.prefixCls,se=gt.motion,fe=gt.defaultMotions,$e=fe===void 0?{}:fe,Pe=gt.openAnimation,it=gt.openTransitionName,at=qe.switchingModeFromInline;if(se)return se;if(Object(n.a)(Pe)==="object"&&Pe)Object(ge.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Pe=="string")return{motionName:"".concat(ke,"-open-").concat(Pe)};if(it)return{motionName:it};var Ne=$e[Xe];return Ne||(at?null:$e.other)}var re=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(ke){var se;Object(K.a)(this,Xe),se=qe.call(this,ke),se.inlineOpenKeys=[],se.onSelect=function(Pe){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState(),Ve=Ne.selectedKeys,tt=Pe.key;at.multiple?Ve=Ve.concat([tt]):Ve=[tt],"selectedKeys"in at||se.store.setState({selectedKeys:Ve}),at.onSelect(Object(ee.a)(Object(ee.a)({},Pe),{},{selectedKeys:Ve}))}},se.onClick=function(Pe){var it=se.getRealMenuMode(),at=Object(z.a)(se),Ne=at.store,Ve=at.props.onOpenChange;it!=="inline"&&!("openKeys"in se.props)&&(Ne.setState({openKeys:[]}),Ve([])),se.props.onClick(Pe)},se.onKeyDown=function(Pe,it){se.innerMenu.getWrappedInstance().onKeyDown(Pe,it)},se.onOpenChange=function(Pe){var it=Object(z.a)(se),at=it.props,Ne=se.store.getState().openKeys.concat(),Ve=!1,tt=function(Ct){var zt=!1;if(Ct.open)zt=Ne.indexOf(Ct.key)===-1,zt&&Ne.push(Ct.key);else{var qt=Ne.indexOf(Ct.key);zt=qt!==-1,zt&&Ne.splice(qt,1)}Ve=Ve||zt};Array.isArray(Pe)?Pe.forEach(tt):tt(Pe),Ve&&("openKeys"in se.props||se.store.setState({openKeys:Ne}),at.onOpenChange(Ne))},se.onDeselect=function(Pe){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState().selectedKeys.concat(),Ve=Pe.key,tt=Ne.indexOf(Ve);tt!==-1&&Ne.splice(tt,1),"selectedKeys"in at||se.store.setState({selectedKeys:Ne}),at.onDeselect(Object(ee.a)(Object(ee.a)({},Pe),{},{selectedKeys:Ne}))}},se.onMouseEnter=function(Pe){se.restoreModeVerticalFromInline();var it=se.props.onMouseEnter;it&&it(Pe)},se.onTransitionEnd=function(Pe){var it=Pe.propertyName==="width"&&Pe.target===Pe.currentTarget,at=Pe.target.className,Ne=Object.prototype.toString.call(at)==="[object SVGAnimatedString]"?at.animVal:at,Ve=Pe.propertyName==="font-size"&&Ne.indexOf("anticon")>=0;(it||Ve)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(Pe){se.innerMenu=Pe},se.isRootMenu=!0;var fe=ke.defaultSelectedKeys,$e=ke.defaultOpenKeys;return"selectedKeys"in ke&&(fe=ke.selectedKeys||[]),"openKeys"in ke&&($e=ke.openKeys||[]),se.store=Object(U.c)({selectedKeys:fe,openKeys:$e,activeKey:{"0-menu-":Je(ke,ke.activeKey)}}),se.state={switchingModeFromInline:!1},se}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){this.updateOpentKeysWhenSwitchMode(se),this.updateMiniStore();var fe=this.props,$e=fe.siderCollapsed,Pe=fe.inlineCollapsed,it=fe.onOpenChange;(!se.inlineCollapsed&&Pe||!se.siderCollapsed&&$e)&&it([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(se){var fe=this.props,$e=this.store,Pe=this.inlineOpenKeys,it=$e.getState(),at={};se.mode==="inline"&&fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in fe||((fe.inlineCollapsed&&!se.inlineCollapsed||fe.siderCollapsed&&!se.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=it.openKeys.concat(),at.openKeys=[]),(!fe.inlineCollapsed&&se.inlineCollapsed||!fe.siderCollapsed&&se.siderCollapsed)&&(at.openKeys=Pe,this.inlineOpenKeys=[])),Object.keys(at).length&&$e.setState(at)}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,fe=this.store,$e=this.prevOpenKeys,Pe=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");Pe?(this.prevOpenKeys=fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):$e&&(this.store.setState({openKeys:$e}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,fe=this.state.switchingModeFromInline,$e=this.getInlineCollapsed();return fe&&$e?"inline":$e?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,fe=se.inlineCollapsed,$e=se.siderCollapsed;return $e!==void 0?$e:fe}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var se=Object(ee.a)({},Object(_.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),fe=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(ee.a)(Object(ee.a)({},se),{},{mode:fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:be(this.props,this.state,fe)}),delete se.openAnimation,delete se.openTransitionName,j.createElement(U.a,{store:this.store},j.createElement(Te,Object.assign({},se,{ref:this.setInnerMenu}),this.props.children))}}]),Xe}(j.Component);re.defaultProps={selectable:!0,onClick:F,onSelect:F,onOpenChange:F,onDeselect:F,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:j.createElement("span",null,"\xB7\xB7\xB7")};var ie=re,ce=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var ke;return Object(K.a)(this,Xe),ke=qe.apply(this,arguments),ke.onKeyDown=function(se){var fe=se.keyCode;return fe===g.a.ENTER?(ke.onClick(se),!0):void 0},ke.onMouseLeave=function(se){var fe=ke.props,$e=fe.eventKey,Pe=fe.onItemHover,it=fe.onMouseLeave;Pe({key:$e,hover:!1}),it({key:$e,domEvent:se})},ke.onMouseEnter=function(se){var fe=ke.props,$e=fe.eventKey,Pe=fe.onItemHover,it=fe.onMouseEnter;Pe({key:$e,hover:!0}),it({key:$e,domEvent:se})},ke.onClick=function(se){var fe=ke.props,$e=fe.eventKey,Pe=fe.multiple,it=fe.onClick,at=fe.onSelect,Ne=fe.onDeselect,Ve=fe.isSelected,tt={key:$e,keyPath:[$e],item:Object(z.a)(ke),domEvent:se};it(tt),Pe?Ve?Ne(tt):at(tt):Ve||at(tt)},ke.saveNode=function(se){ke.node=se},ke}return Object(k.a)(Xe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var se,fe=Object(ee.a)({},this.props),$e=a()(this.getPrefixCls(),fe.className,(se={},Object(c.a)(se,this.getActiveClassName(),!fe.disabled&&fe.active),Object(c.a)(se,this.getSelectedClassName(),fe.isSelected),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),se)),Pe=Object(ee.a)(Object(ee.a)({},fe.attribute),{},{title:typeof fe.title=="string"?fe.title:void 0,className:$e,role:fe.role||"menuitem","aria-disabled":fe.disabled});fe.role==="option"?Pe=Object(ee.a)(Object(ee.a)({},Pe),{},{role:"option","aria-selected":fe.isSelected}):(fe.role===null||fe.role==="none")&&(Pe.role="none");var it={onClick:fe.disabled?null:this.onClick,onMouseLeave:fe.disabled?null:this.onMouseLeave,onMouseEnter:fe.disabled?null:this.onMouseEnter},at=Object(ee.a)({},fe.style);fe.mode==="inline"&&(fe.direction==="rtl"?at.paddingRight=fe.inlineIndent*fe.level:at.paddingLeft=fe.inlineIndent*fe.level),Ge.forEach(function(Ve){return delete fe[Ve]}),delete fe.direction;var Ne=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ne=j.createElement(this.props.itemIcon,this.props)),j.createElement("li",Object.assign({},Object(_.default)(fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Pe,it,{style:at,ref:this.saveNode}),fe.children,Ne)}}]),Xe}(j.Component);ce.isMenuItem=!0,ce.defaultProps={onSelect:F,onMouseEnter:F,onMouseLeave:F,manualRef:F};var Ee=Object(U.b)(function(gt,qe){var Xe=gt.activeKey,ke=gt.selectedKeys,se=qe.eventKey,fe=qe.subMenuKey;return{active:Xe[fe]===se,isSelected:ke.indexOf(se)!==-1}})(ce),Be=Ee,Ie=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var ke;return Object(K.a)(this,Xe),ke=qe.apply(this,arguments),ke.renderInnerMenuItem=function(se){var fe=ke.props,$e=fe.renderMenuItem,Pe=fe.index;return $e(se,Pe,ke.props.subMenuKey)},ke}return Object(k.a)(Xe,[{key:"render",value:function(){var se=Object(R.a)({},this.props),fe=se.className,$e=fe===void 0?"":fe,Pe=se.rootPrefixCls,it="".concat(Pe,"-item-group-title"),at="".concat(Pe,"-item-group-list"),Ne=se.title,Ve=se.children;return Ge.forEach(function(tt){return delete se[tt]}),delete se.onClick,delete se.direction,j.createElement("li",Object.assign({},se,{className:"".concat($e," ").concat(Pe,"-item-group")}),j.createElement("div",{className:it,title:typeof Ne=="string"?Ne:void 0},Ne),j.createElement("ul",{className:at},j.Children.map(Ve,this.renderInnerMenuItem)))}}]),Xe}(j.Component);Ie.isMenuItemGroup=!0,Ie.defaultProps={disabled:!0};var ut=Ie,bt=function(qe){var Xe=qe.className,ke=qe.rootPrefixCls,se=qe.style;return j.createElement("li",{className:"".concat(Xe," ").concat(ke,"-item-divider"),style:se})};bt.defaultProps={disabled:!0,className:"",style:{}};var Tt=bt,xt=de.e=ie},"24hK":function(et,de,N){"use strict";N.d(de,"a",function(){return k});var ee=N("JYp7"),K=function(){function z(B){this.element=B,this.next=z.Undefined,this.prev=z.Undefined}return z.Undefined=new z(void 0),z}(),k=function(){function z(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}return Object.defineProperty(z.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),z.prototype.isEmpty=function(){return this._first===K.Undefined},z.prototype.clear=function(){this._first=K.Undefined,this._last=K.Undefined,this._size=0},z.prototype.unshift=function(B){return this._insert(B,!1)},z.prototype.push=function(B){return this._insert(B,!0)},z.prototype._insert=function(B,M){var j=this,U=new K(B);if(this._first===K.Undefined)this._first=U,this._last=U;else if(M){var _=this._last;this._last=U,U.prev=_,_.next=U}else{var R=this._first;this._first=U,U.next=R,R.prev=U}this._size+=1;var c=!1;return function(){c||(c=!0,j._remove(U))}},z.prototype.shift=function(){if(this._first===K.Undefined)return;var B=this._first.element;return this._remove(this._first),B},z.prototype.pop=function(){if(this._last===K.Undefined)return;var B=this._last.element;return this._remove(this._last),B},z.prototype._remove=function(B){if(B.prev!==K.Undefined&&B.next!==K.Undefined){var M=B.prev;M.next=B.next,B.next.prev=M}else B.prev===K.Undefined&&B.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):B.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):B.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1},z.prototype.iterator=function(){var B,M=this._first;return{next:function(){return M===K.Undefined?ee.c:(B?B.value=M.element:B={done:!1,value:M.element},M=M.next,B)}}},z.prototype.toArray=function(){for(var B=[],M=this._first;M!==K.Undefined;M=M.next)B.push(M.element);return B},z}()},"4qgm":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(et,de,N){"use strict";N.d(de,"a",function(){return o}),N.d(de,"b",function(){return A});var ee=N("Ty5D"),K=N("dI71"),k=N("q1tI"),z=N.n(k),B=N("YS25"),M=N("17x9"),j=N.n(M),U=N("wx14"),_=N("zLVn"),R=N("9R94"),c=function(h){Object(K.a)(s,h);function s(){for(var D,T=arguments.length,S=new Array(T),I=0;I=0||T.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;h.setState({goInputText:""}),C(h.getValidValue())},h.go=function(T){var S=h.state.goInputText;if(S==="")return;(T.keyCode===y.ENTER||T.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(B.a)(p,[{key:"getValidValue",value:function(){var s=this.state,l=s.goInputText,D=s.current;return!l||isNaN(l)?D:Number(l)}},{key:"getPageSizeOptions",value:function(){var s=this.props,l=s.pageSize,D=s.pageSizeOptions;return D.some(function(T){return T.toString()===l.toString()})?D:D.concat([l.toString()]).sort(function(T,S){var I=isNaN(Number(T))?0:Number(T),C=isNaN(Number(S))?0:Number(S);return I-C})}},{key:"render",value:function(){var s=this,l=this.props,D=l.pageSize,T=l.locale,S=l.rootPrefixCls,I=l.changeSize,C=l.quickGo,W=l.goButton,Y=l.selectComponentClass,H=l.buildOptionText,F=l.selectPrefixCls,q=l.disabled,le=this.state.goInputText,pe="".concat(S,"-options"),Ae=Y,Ge=null,Fe=null,Ue=null;if(!I&&!C)return null;var _e=this.getPageSizeOptions();if(I&&Ae){var je=_e.map(function(xe,he){return _.a.createElement(Ae.Option,{key:he,value:xe.toString()},(H||s.buildOptionText)(xe))});Ge=_.a.createElement(Ae,{disabled:q,prefixCls:F,showSearch:!1,className:"".concat(pe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||_e[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},je)}return C&&(W&&(Ue=typeof W=="boolean"?_.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(pe,"-quick-jumper-button")},T.jump_to_confirm):_.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),Fe=_.a.createElement("div",{className:"".concat(pe,"-quick-jumper")},T.jump_to,_.a.createElement("input",{disabled:q,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,Ue)),_.a.createElement("li",{className:"".concat(pe)},Ge,Fe)}}]),p}(_.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=f,a=N("N2Kk");function n(){}function o(O){return typeof O=="number"&&isFinite(O)&&Math.floor(O)===O}function u(O,A,p){return p}function x(O,A,p){var h=typeof O=="undefined"?A.pageSize:O;return Math.floor((p.total-1)/h)+1}var E=function(O){Object(M.a)(p,O);var A=Object(j.a)(p);function p(h){var s;Object(z.a)(this,p),s=A.call(this,h),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(x(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(I,C){var W=s.props.prefixCls,Y=I||_.a.createElement("button",{type:"button","aria-label":C,className:"".concat(W,"-item-link")});return typeof I=="function"&&(Y=_.a.createElement(I,Object(k.a)({},s.props))),Y},s.savePaginationNode=function(I){s.paginationNode=I},s.isValid=function(I){return o(I)&&I!==s.state.current},s.shouldDisplayQuickJumper=function(){var I=s.props,C=I.showQuickJumper,W=I.pageSize,Y=I.total;return Y<=W?!1:C},s.handleKeyDown=function(I){(I.keyCode===y.ARROW_UP||I.keyCode===y.ARROW_DOWN)&&I.preventDefault()},s.handleKeyUp=function(I){var C=s.getValidValue(I),W=s.state.currentInputValue;C!==W&&s.setState({currentInputValue:C}),I.keyCode===y.ENTER?s.handleChange(C):I.keyCode===y.ARROW_UP?s.handleChange(C-1):I.keyCode===y.ARROW_DOWN&&s.handleChange(C+1)},s.changePageSize=function(I){var C=s.state.current,W=x(I,s.state,s.props);C=C>W?W:C,W===0&&(C=s.state.current),typeof I=="number"&&("pageSize"in s.props||s.setState({pageSize:I}),"current"in s.props||s.setState({current:C,currentInputValue:C})),s.props.onShowSizeChange(C,I),"onChange"in s.props&&s.props.onChange&&s.props.onChange(C,I)},s.handleChange=function(I){var C=s.props.disabled,W=I;if(s.isValid(W)&&!C){var Y=x(void 0,s.state,s.props);W>Y?W=Y:W<1&&(W=1),"current"in s.props||s.setState({current:W,currentInputValue:W});var H=s.state.pageSize;return s.props.onChange(W,H),W}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?W-2:0),H=2;H=D?S=D:S=Number(l),S}},{key:"getShowSizeChanger",value:function(){var s=this.props,l=s.showSizeChanger,D=s.total,T=s.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:D>T}},{key:"renderPrev",value:function(s){var l=this.props,D=l.prevIcon,T=l.itemRender,S=T(s,"prev",this.getItemIcon(D,"prev page")),I=!this.hasPrev();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"renderNext",value:function(s){var l=this.props,D=l.nextIcon,T=l.itemRender,S=T(s,"next",this.getItemIcon(D,"next page")),I=!this.hasNext();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"render",value:function(){var s=this,l=this.props,D=l.prefixCls,T=l.className,S=l.style,I=l.disabled,C=l.hideOnSinglePage,W=l.total,Y=l.locale,H=l.showQuickJumper,F=l.showLessItems,q=l.showTitle,le=l.showTotal,pe=l.simple,Ae=l.itemRender,Ge=l.showPrevNextJumpers,Fe=l.jumpPrevIcon,Ue=l.jumpNextIcon,_e=l.selectComponentClass,je=l.selectPrefixCls,xe=l.pageSizeOptions,he=this.state,te=he.current,ye=he.pageSize,ue=he.currentInputValue;if(C===!0&&W<=ye)return null;var Le=x(void 0,this.state,this.props),ae=[],oe=null,Se=null,Me=null,We=null,Ke=null,Qe=H&&H.goButton,Ze=F?1:2,yt=te-1>0?te-1:0,vt=te+1=Ze*2&&te!==1+2&&(ae[0]=Object(U.cloneElement)(ae[0],{className:"".concat(D,"-item-after-jump-prev")}),ae.unshift(oe)),Le-te>=Ze*2&&te!==Le-2&&(ae[ae.length-1]=Object(U.cloneElement)(ae[ae.length-1],{className:"".concat(D,"-item-before-jump-next")}),ae.push(Se)),Je!==1&&ae.unshift(Me),st!==Le&&ae.push(We)}var Te=null;le&&(Te=_.a.createElement("li",{className:"".concat(D,"-total-text")},le(W,[W===0?0:(te-1)*ye+1,te*ye>W?W:te*ye])));var ge=!this.hasPrev()||!Le,be=!this.hasNext()||!Le;return _.a.createElement("ul",Object(ee.a)({className:c()(D,T,Object(K.a)({},"".concat(D,"-disabled"),I)),style:S,unselectable:"unselectable",ref:this.savePaginationNode},dt),Te,_.a.createElement("li",{title:q?Y.prev_page:null,onClick:this.prev,tabIndex:ge?null:0,onKeyPress:this.runIfEnterPrev,className:c()("".concat(D,"-prev"),Object(K.a)({},"".concat(D,"-disabled"),ge)),"aria-disabled":ge},this.renderPrev(yt)),ae,_.a.createElement("li",{title:q?Y.next_page:null,onClick:this.next,tabIndex:be?null:0,onKeyPress:this.runIfEnterNext,className:c()("".concat(D,"-next"),Object(K.a)({},"".concat(D,"-disabled"),be)),"aria-disabled":be},this.renderNext(vt)),_.a.createElement(m,{disabled:I,locale:Y,rootPrefixCls:D,selectComponentClass:_e,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:ye,pageSizeOptions:xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Qe}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var D={};if("current"in s&&(D.current=s.current,s.current!==l.current&&(D.currentInputValue=D.current)),"pageSize"in s&&s.pageSize!==l.pageSize){var T=l.current,S=x(s.pageSize,l,s);T=T>S?S:T,"current"in s||(D.current=T,D.currentInputValue=T),D.pageSize=s.pageSize}return D}}]),p}(_.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:a.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var v=E},"6RRn":function(et,de,N){"use strict";var ee=N("wCXF"),K=N("n6Qo");N.d(de,"b",function(){return K.a});var k=N("IBYe"),z=N("6eGT"),B=N("hW8S");N.d(de,"a",function(){return B.a}),de.c=ee.b},"6eGT":function(et,de,N){"use strict";function ee(K){return null}de.a=ee},"746U":function(et,de,N){"use strict";N.d(de,"d",function(){return K}),N.d(de,"j",function(){return k}),N.d(de,"i",function(){return z}),N.d(de,"h",function(){return B}),N.d(de,"e",function(){return M}),N.d(de,"k",function(){return j}),N.d(de,"l",function(){return U}),N.d(de,"a",function(){return _}),N.d(de,"f",function(){return c}),N.d(de,"g",function(){return g}),N.d(de,"m",function(){return w}),N.d(de,"c",function(){return m}),N.d(de,"b",function(){return a}),N.d(de,"n",function(){return n}),N.d(de,"o",function(){return o});var ee={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function K(u){return Array.isArray?Array.isArray(u):!!(u&&typeof u.length===ee.number&&u.constructor===Array)}function k(u){return typeof u===ee.string||u instanceof String}function z(u){return typeof u===ee.object&&u!==null&&!Array.isArray(u)&&!(u instanceof RegExp)&&!(u instanceof Date)}function B(u){return(typeof u===ee.number||u instanceof Number)&&!isNaN(u)}function M(u){return u===!0||u===!1}function j(u){return typeof u===ee.undefined}function U(u){return j(u)||u===null}function _(u,x){if(!u)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var R=Object.prototype.hasOwnProperty;function c(u){if(!z(u))return!1;for(var x in u)if(R.call(u,x))return!1;return!0}function g(u){return typeof u===ee.function}function w(u,x){for(var E=Math.min(u.length,x.length),v=0;v1&&arguments[1]!==void 0?arguments[1]:0,f=(j[w[y+0]]+j[w[y+1]]+j[w[y+2]]+j[w[y+3]]+"-"+j[w[y+4]]+j[w[y+5]]+"-"+j[w[y+6]]+j[w[y+7]]+"-"+j[w[y+8]]+j[w[y+9]]+"-"+j[w[y+10]]+j[w[y+11]]+j[w[y+12]]+j[w[y+13]]+j[w[y+14]]+j[w[y+15]]).toLowerCase();if(!M(f))throw TypeError("Stringified UUID is invalid");return f}var R=_;function c(w,y,f){w=w||{};var m=w.random||(w.rng||k)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,y){f=f||0;for(var a=0;a<16;++a)y[f+a]=m[a];return y}return R(m)}var g=de.a=c},"7ZXX":function(et,de,N){et.exports=N.p+"static/err.6e7c5817.png"},"7ahc":function(et,de,N){"use strict";N.d(de,"a",function(){return x});var ee=N("k1fw"),K=N("0Owb"),k=N("+L6B"),z=N("2/Rp"),B=N("y8nQ"),M=N("Vl3Y"),j=N("tJVT"),U=N("OaEy"),_=N("2fM7"),R=N("q1tI"),c=N.n(R),g=N("VrN/"),w=N.n(g),y=N("p77/"),f=N.n(y),m=N("c5Ni"),a=N.n(m),n=_.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},u={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};de.b=function(E){var v=E.callback,O=E.onCancel,A=Object(R.useState)("python"),p=Object(j.a)(A,2),h=p[0],s=p[1];function l(T){s(u[T][1])}function D(T){v(T)}return c.a.createElement(M.a,Object(K.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},c.a.createElement(_.a,{onChange:l},Object.keys(u).map(function(T){return c.a.createElement(n,{key:T,value:T},u[T][0])}))),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},c.a.createElement(x,{mode:h})),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(z.a,{type:"ghost",onClick:O},"\u53D6\u6D88")))};function x(E){var v=E.value,O=E.onChange,A=E.mode,p=E.options,h=p===void 0?{}:p,s=Object(R.useRef)(),l=Object(R.useState)(),D=Object(j.a)(l,2),T=D[0],S=D[1];return Object(R.useEffect)(function(){if(T){function I(C){var W=C.getValue();O&&O(W)}return T.on("change",I),function(){T.off("change",I)}}},[T,O]),Object(R.useEffect)(function(){T&&T.setOption("mode",A)},[T,A]),Object(R.useEffect)(function(){T&&((v!==T.getValue()||v==="")&&setTimeout(function(){T.setValue(v||" ")},300))},[T,v]),Object(R.useEffect)(function(){if(s.current&&!T){var I=w.a.fromTextArea(s.current,Object(ee.a)({mode:A,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));S(I)}},[s.current,T]),c.a.createElement("div",{className:"my-codemirror-container"},c.a.createElement("textarea",{ref:s}))}},"7ixt":function(et,de,N){"use strict";N.d(de,"a",function(){return k});var ee={adjustX:1,adjustY:1},K=[0,0],k={left:{points:["cr","cl"],overflow:ee,offset:[-4,0],targetOffset:K},right:{points:["cl","cr"],overflow:ee,offset:[4,0],targetOffset:K},top:{points:["bc","tc"],overflow:ee,offset:[0,-4],targetOffset:K},bottom:{points:["tc","bc"],overflow:ee,offset:[0,4],targetOffset:K},topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-4],targetOffset:K},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0],targetOffset:K},topRight:{points:["br","tr"],overflow:ee,offset:[0,-4],targetOffset:K},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0],targetOffset:K},bottomRight:{points:["tr","br"],overflow:ee,offset:[0,4],targetOffset:K},rightBottom:{points:["bl","br"],overflow:ee,offset:[4,0],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,4],targetOffset:K},leftBottom:{points:["br","bl"],overflow:ee,offset:[-4,0],targetOffset:K}},z=k},"7v3h":function(et,de,N){et.exports=N.p+"static/empty2.dd73f390.png"},"8/bI":function(et,de,N){et.exports=N.p+"static/empty.8918e228.png"},"815F":function(et,de,N){"use strict";N.d(de,"e",function(){return j}),N.d(de,"c",function(){return _}),N.d(de,"d",function(){return R}),N.d(de,"a",function(){return g}),N.d(de,"f",function(){return w}),N.d(de,"b",function(){return y});var ee=N("KQm4"),K=N("VTBJ"),k=N("Ff2n"),z=N("Zm9Q"),B=N("Kwbf"),M=N("OZM5");function j(f,m){return f!=null?f:m}function U(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function a(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(u){var x=u.key,E=u.children;Object(B.a)(x!=null,"Tree node must have a certain key: [".concat(o).concat(x,"]"));var v=String(x);Object(B.a)(!m.has(v)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(v)),m.set(v,!0),a(E,"".concat(o).concat(v," > "))})}a(f)}function _(f){function m(a){var n=Object(z.a)(a);return n.map(function(o){if(!Object(M.i)(o))return Object(B.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var u=o.key,x=o.props,E=x.children,v=Object(k.a)(x,["children"]),O=Object(K.a)({key:u},v),A=m(E);return A.length&&(O.children=A),O}).filter(function(o){return o})}return m(f)}function R(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=new Set(m===!0?[]:m),n=[];function o(u){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(E,v){var O=Object(M.h)(x?x.pos:"0",v),A=j(E.key,O),p=Object(K.a)(Object(K.a)({},E),{},{parent:x,pos:O,children:null,data:E,isStart:[].concat(Object(ee.a)(x?x.isStart:[]),[v===0]),isEnd:[].concat(Object(ee.a)(x?x.isEnd:[]),[v===u.length-1])});return n.push(p),m===!0||a.has(A)?p.children=o(E.children||[],p):p.children=[],p})}return o(f),n}function c(f,m,a){var n;a?typeof a=="string"?n=function(x){return x[a]}:typeof a=="function"&&(n=function(x){return a(x)}):n=function(x,E){return j(x.key,E)};function o(u,x,E){var v=u?u.children:f,O=u?Object(M.h)(E.pos,x):"0";if(u){var A=n(u,O),p={node:u,index:x,pos:O,key:A,parentPos:E.node?E.pos:null,level:E.level+1};m(p)}v&&v.forEach(function(h,s){o(h,s,{node:u,pos:O,level:E?E.level+1:-1})})}o(null)}function g(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=m.initWrapper,n=m.processEntity,o=m.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,x={},E={},v={posEntities:x,keyEntities:E};return a&&(v=a(v)||v),c(f,function(O){var A=O.node,p=O.index,h=O.pos,s=O.key,l=O.parentPos,D=O.level,T={node:A,index:p,key:s,pos:h,level:D},S=j(s,h);x[h]=T,E[S]=T,T.parent=x[l],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),n&&n(T,v)},u),o&&o(v),v}function w(f,m){var a=m.expandedKeys,n=m.selectedKeys,o=m.loadedKeys,u=m.loadingKeys,x=m.checkedKeys,E=m.halfCheckedKeys,v=m.dragOverNodeKey,O=m.dropPosition,A=m.keyEntities,p=A[f],h={eventKey:f,expanded:a.indexOf(f)!==-1,selected:n.indexOf(f)!==-1,loaded:o.indexOf(f)!==-1,loading:u.indexOf(f)!==-1,checked:x.indexOf(f)!==-1,halfChecked:E.indexOf(f)!==-1,pos:String(p?p.pos:""),dragOver:v===f&&O===0,dragOverGapTop:v===f&&O===-1,dragOverGapBottom:v===f&&O===1};return h}function y(f){var m=f.data,a=f.expanded,n=f.selected,o=f.checked,u=f.loaded,x=f.loading,E=f.halfChecked,v=f.dragOver,O=f.dragOverGapTop,A=f.dragOverGapBottom,p=f.pos,h=f.active,s=Object(K.a)(Object(K.a)({},m),{},{expanded:a,selected:n,checked:o,loaded:u,loading:x,halfChecked:E,dragOver:v,dragOverGapTop:O,dragOverGapBottom:A,pos:p,active:h});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(B.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),s}},"8EBN":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";ee.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var K=0;K-1&&z.substring(j+1,z.length);if(U)return ee.findModeByExtension(U)},ee.findModeByName=function(z){z=z.toLowerCase();for(var B=0;B0&&w[w.length-1])&&(a[0]===6||a[0]===2)){R=0;continue}if(a[0]===3&&(!w||a[1]>w[0]&&a[1]")):null:l.match("--")?T(f("comment","-->")):l.match("DOCTYPE",!0,!0)?(l.eatWhile(/[\w\._\-]/),T(m(1))):null:l.eat("?")?(l.eatWhile(/[\w\._\-]/),D.tokenize=f("meta","?>"),"meta"):(R=l.eat("/")?"closeTag":"openTag",D.tokenize=w,"tag bracket");if(S=="&"){var I;return l.eat("#")?l.eat("x")?I=l.eatWhile(/[a-fA-F\d]/)&&l.eat(";"):I=l.eatWhile(/[\d]/)&&l.eat(";"):I=l.eatWhile(/[\w\.\-:]/)&&l.eat(";"),I?"atom":"error"}else return l.eatWhile(/[^&<]/),null}g.isInText=!0;function w(l,D){var T=l.next();if(T==">"||T=="/"&&l.eat(">"))return D.tokenize=g,R=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return R="equals",null;if(T=="<"){D.tokenize=g,D.state=u,D.tagName=D.tagStart=null;var S=D.tokenize(l,D);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(T)?(D.tokenize=y(T),D.stringStartCol=l.column(),D.tokenize(l,D)):(l.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function y(l){var D=function(T,S){for(;!T.eol();)if(T.next()==l){S.tokenize=w;break}return"string"};return D.isInAttribute=!0,D}function f(l,D){return function(T,S){for(;!T.eol();){if(T.match(D)){S.tokenize=g;break}T.next()}return l}}function m(l){return function(D,T){for(var S;(S=D.next())!=null;){if(S=="<")return T.tokenize=m(l+1),T.tokenize(D,T);if(S==">")if(l==1){T.tokenize=g;break}else return T.tokenize=m(l-1),T.tokenize(D,T)}return"meta"}}function a(l,D,T){this.prev=l.context,this.tagName=D,this.indent=l.indented,this.startOfLine=T,(j.doNotIndent.hasOwnProperty(D)||l.context&&l.context.noIndent)&&(this.noIndent=!0)}function n(l){l.context&&(l.context=l.context.prev)}function o(l,D){for(var T;;){if(!l.context)return;if(T=l.context.tagName,!j.contextGrabbers.hasOwnProperty(T)||!j.contextGrabbers[T].hasOwnProperty(D))return;n(l)}}function u(l,D,T){return l=="openTag"?(T.tagStart=D.column(),x):l=="closeTag"?E:u}function x(l,D,T){return l=="word"?(T.tagName=D.current(),c="tag",A):j.allowMissingTagName&&l=="endTag"?(c="tag bracket",A(l,D,T)):(c="error",x)}function E(l,D,T){if(l=="word"){var S=D.current();return T.context&&T.context.tagName!=S&&j.implicitlyClosed.hasOwnProperty(T.context.tagName)&&n(T),T.context&&T.context.tagName==S||j.matchClosing===!1?(c="tag",v):(c="tag error",O)}else return j.allowMissingTagName&&l=="endTag"?(c="tag bracket",v(l,D,T)):(c="error",O)}function v(l,D,T){return l!="endTag"?(c="error",v):(n(T),u)}function O(l,D,T){return c="error",v(l,D,T)}function A(l,D,T){if(l=="word")return c="attribute",p;if(l=="endTag"||l=="selfcloseTag"){var S=T.tagName,I=T.tagStart;return T.tagName=T.tagStart=null,l=="selfcloseTag"||j.autoSelfClosers.hasOwnProperty(S)?o(T,S):(o(T,S),T.context=new a(T,S,I==T.indented)),u}return c="error",A}function p(l,D,T){return l=="equals"?h:(j.allowMissing||(c="error"),A(l,D,T))}function h(l,D,T){return l=="string"?s:l=="word"&&j.allowUnquoted?(c="string",A):(c="error",A(l,D,T))}function s(l,D,T){return l=="string"?s:A(l,D,T)}return{startState:function(l){var D={tokenize:g,state:u,indented:l||0,tagName:null,tagStart:null,context:null};return l!=null&&(D.baseIndent=l),D},token:function(l,D){if(!D.tagName&&l.sol()&&(D.indented=l.indentation()),l.eatSpace())return null;R=null;var T=D.tokenize(l,D);return(T||R)&&T!="comment"&&(c=null,D.state=D.state(R||T,l,D),c&&(T=c=="error"?T+" error":c)),T},indent:function(l,D,T){var S=l.context;if(l.tokenize.isInAttribute)return l.tagStart==l.indented?l.stringStartCol+1:l.indented+M;if(S&&S.noIndent)return ee.Pass;if(l.tokenize!=w&&l.tokenize!=g)return T?T.match(/^(\s*)/)[0].length:0;if(l.tagName)return j.multilineTagIndentPastTag!==!1?l.tagStart+l.tagName.length+2:l.tagStart+M*(j.multilineTagIndentFactor||1);if(j.alignCDATA&&/$/,blockCommentStart:"",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml",skipAttribute:function(l){l.state==h&&(l.state=A)},xmlCurrentTag:function(l){return l.tagName?{name:l.tagName,close:l.type=="closeTag"}:null},xmlCurrentContext:function(l){for(var D=[],T=l.context;T;T=T.prev)T.tagName&&D.push(T.tagName);return D.reverse()}}}),ee.defineMIME("text/xml","xml"),ee.defineMIME("application/xml","xml"),ee.mimeModes.hasOwnProperty("text/html")||ee.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(et,de,N){"use strict";N.d(de,"d",function(){return yt}),N.d(de,"b",function(){return Be}),N.d(de,"c",function(){return ut}),N.d(de,"a",function(){return Tt});var ee=N("VTBJ"),K=N("1OyB"),P=N("vuIU"),z=N("JX7q"),B=N("Ji7U"),M=N("LK+K"),j=N("q1tI"),U=N("I8Z2"),_=N("BGR+"),R=N("wx14"),c=N("rePB"),g=N("4IlW"),w=N("2GS6"),y=N("Gytx"),f=N.n(y),m=N("TSYQ"),a=N.n(m),n=N("U8pU"),o=N("ODXe"),u=/iPhone/i,x=/iPod/i,E=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,O=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,p=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,l=/BlackBerry/i,D=/BB10/i,T=/Opera Mini/i,S=/\b(CriOS|Chrome)(?:.+)Mobile/i,I=/Mobile(?:.+)Firefox\b/i;function C(gt,qe){return gt.test(qe)}function W(gt){var qe=gt||(typeof navigator!="undefined"?navigator.userAgent:""),Xe=qe.split("[FBAN");if(typeof Xe[1]!="undefined"){var Pe=Xe,se=Object(o.a)(Pe,1);qe=se[0]}if(Xe=qe.split("Twitter"),typeof Xe[1]!="undefined"){var fe=Xe,$e=Object(o.a)(fe,1);qe=$e[0]}var ke={apple:{phone:C(u,qe)&&!C(h,qe),ipod:C(x,qe),tablet:!C(u,qe)&&C(E,qe)&&!C(h,qe),device:(C(u,qe)||C(x,qe)||C(E,qe))&&!C(h,qe)},amazon:{phone:C(A,qe),tablet:!C(A,qe)&&C(p,qe),device:C(A,qe)||C(p,qe)},android:{phone:!C(h,qe)&&C(A,qe)||!C(h,qe)&&C(v,qe),tablet:!C(h,qe)&&!C(A,qe)&&!C(v,qe)&&(C(p,qe)||C(O,qe)),device:!C(h,qe)&&(C(A,qe)||C(p,qe)||C(v,qe)||C(O,qe))||C(/\bokhttp\b/i,qe)},windows:{phone:C(h,qe),tablet:C(s,qe),device:C(h,qe)||C(s,qe)},other:{blackberry:C(l,qe),blackberry10:C(D,qe),opera:C(T,qe),firefox:C(I,qe),chrome:C(S,qe),device:C(l,qe)||C(D,qe)||C(T,qe)||C(I,qe)||C(S,qe)},any:null,phone:null,tablet:null};return ke.any=ke.apple.device||ke.android.device||ke.windows.device||ke.other.device,ke.phone=ke.apple.phone||ke.android.phone||ke.windows.phone,ke.tablet=ke.apple.tablet||ke.android.tablet||ke.windows.tablet,ke}var Y=Object(ee.a)(Object(ee.a)({},W()),{},{isMobile:W}),H=Y;function F(){}function q(gt,qe,Xe){var Pe=qe||"";return gt.key||"".concat(Pe,"item_").concat(Xe)}function le(gt){return"".concat(gt,"-menu-")}function pe(gt,qe){var Xe=-1;j.Children.forEach(gt,function(Pe){Xe+=1,Pe&&Pe.type&&Pe.type.isMenuItemGroup?j.Children.forEach(Pe.props.children,function(se){Xe+=1,qe(se,Xe)}):qe(Pe,Xe)})}function Ae(gt,qe,Xe){if(!gt||Xe.find)return;j.Children.forEach(gt,function(Pe){if(Pe){var se=Pe.type;if(!se||!(se.isSubMenu||se.isMenuItem||se.isMenuItemGroup))return;qe.indexOf(Pe.key)!==-1?Xe.find=!0:Pe.props.children&&Ae(Pe.props.children,qe,Xe)}})}var Ge=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Fe=function(qe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=qe&&typeof qe.getBoundingClientRect=="function"&&qe.getBoundingClientRect().width;if(Pe){if(Xe){var se=getComputedStyle(qe),fe=se.marginLeft,$e=se.marginRight;Pe+=+fe.replace("px","")+ +$e.replace("px","")}Pe=+Pe.toFixed(6)}return Pe||0},Ue=function(qe,Xe,Pe){qe&&Object(n.a)(qe.style)==="object"&&(qe.style[Xe]=Pe)},_e=function(){return H.any},je=N("KQm4"),xe=N("Ff2n"),he=N("i8i4"),te=N("bdgK"),ye=N("uciX"),ue=N("8XRh"),Le={adjustX:1,adjustY:1},ae={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},Se=ae,Me=0,We={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ke=function(qe,Xe,Pe){var se=le(Xe),fe=qe.getState();qe.setState({defaultActiveFirst:Object(ee.a)(Object(ee.a)({},fe.defaultActiveFirst),{},Object(c.a)({},se,Pe))})},Qe=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(Pe){var se;Object(K.a)(this,Xe),se=qe.call(this,Pe),se.onDestroy=function(Ne){se.props.onDestroy(Ne)},se.onKeyDown=function(Ne){var Ve=Ne.keyCode,tt=se.menuInstance,ft=se.props,Ct=ft.isOpen,zt=ft.store;if(Ve===g.a.ENTER)return se.onTitleClick(Ne),Ke(zt,se.props.eventKey,!0),!0;if(Ve===g.a.RIGHT)return Ct?tt.onKeyDown(Ne):(se.triggerOpenChange(!0),Ke(zt,se.props.eventKey,!0)),!0;if(Ve===g.a.LEFT){var qt;if(Ct)qt=tt.onKeyDown(Ne);else return;return qt||(se.triggerOpenChange(!1),qt=!0),qt}return Ct&&(Ve===g.a.UP||Ve===g.a.DOWN)?tt.onKeyDown(Ne):void 0},se.onOpenChange=function(Ne){se.props.onOpenChange(Ne)},se.onPopupVisibleChange=function(Ne){se.triggerOpenChange(Ne,Ne?"mouseenter":"mouseleave")},se.onMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onMouseEnter,Ct=Ve.store;Ke(Ct,se.props.eventKey,!1),ft({key:tt,domEvent:Ne})},se.onMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,domEvent:Ne})},se.onTitleMouseEnter=function(Ne){var Ve=se.props,tt=Ve.eventKey,ft=Ve.onItemHover,Ct=Ve.onTitleMouseEnter;ft({key:tt,hover:!0}),Ct({key:tt,domEvent:Ne})},se.onTitleMouseLeave=function(Ne){var Ve=se.props,tt=Ve.parentMenu,ft=Ve.eventKey,Ct=Ve.onItemHover,zt=Ve.onTitleMouseLeave;tt.subMenuInstance=Object(z.a)(se),Ct({key:ft,hover:!1}),zt({key:ft,domEvent:Ne})},se.onTitleClick=function(Ne){var Ve=Object(z.a)(se),tt=Ve.props;if(tt.onTitleClick({key:tt.eventKey,domEvent:Ne}),tt.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!tt.isOpen,"click"),Ke(tt.store,se.props.eventKey,!1)},se.onSubMenuClick=function(Ne){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(Ne))},se.onSelect=function(Ne){se.props.onSelect(Ne)},se.onDeselect=function(Ne){se.props.onDeselect(Ne)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.saveMenuInstance=function(Ne){se.menuInstance=Ne},se.addKeyPath=function(Ne){return Object(ee.a)(Object(ee.a)({},Ne),{},{keyPath:(Ne.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(Ne,Ve){var tt=se.props.eventKey,ft=function(){se.onOpenChange({key:tt,item:Object(z.a)(se),trigger:Ve,open:Ne})};Ve==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){ft()},0):ft()},se.isChildrenSelected=function(){var Ne={find:!1};return Ae(se.props.children,se.props.selectedKeys,Ne),Ne.find},se.isOpen=function(){return se.props.openKeys.indexOf(se.props.eventKey)!==-1},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var Ne=he.findDOMNode(se.menuInstance);if(Ne.offsetWidth>=se.subMenuTitle.offsetWidth)return;Ne.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(Ne){se.subMenuTitle=Ne},se.getBaseProps=function(){var Ne=Object(z.a)(se),Ve=Ne.props;return{mode:Ve.mode==="horizontal"?"vertical":Ve.mode,visible:se.props.isOpen,level:Ve.level+1,inlineIndent:Ve.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:Ve.selectedKeys,eventKey:"".concat(Ve.eventKey,"-menu-"),openKeys:Ve.openKeys,motion:Ve.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:Ve.subMenuOpenDelay,parentMenu:Object(z.a)(se),subMenuCloseDelay:Ve.subMenuCloseDelay,forceSubMenuRender:Ve.forceSubMenuRender,triggerSubMenuAction:Ve.triggerSubMenuAction,builtinPlacements:Ve.builtinPlacements,defaultActiveFirst:Ve.store.getState().defaultActiveFirst[le(Ve.eventKey)],multiple:Ve.multiple,prefixCls:Ve.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:Ve.itemIcon,expandIcon:Ve.expandIcon,direction:Ve.direction}},se.getMotion=function(Ne,Ve){var tt=Object(z.a)(se),ft=tt.haveRendered,Ct=se.props,zt=Ct.motion,qt=Ct.rootPrefixCls,Qt=Object(ee.a)(Object(ee.a)({},zt),{},{leavedClassName:"".concat(qt,"-hidden"),removeOnLeave:!1,motionAppear:ft||!Ve||Ne!=="inline"});return Qt};var fe=Pe.store,$e=Pe.eventKey,ke=fe.getState(),it=ke.defaultActiveFirst;se.isRootMenu=!1;var at=!1;return it&&(at=it[$e]),Ke(fe,$e,at),se}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,fe=this.props,$e=fe.mode,ke=fe.parentMenu,it=fe.manualRef;if(it&&it(this),$e!=="horizontal"||!ke.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,fe=se.onDestroy,$e=se.eventKey;fe&&fe($e),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(se){var fe=this,$e=this.getBaseProps(),ke=this.getMotion($e.mode,$e.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e.visible||$e.forceSubMenuRender,!this.haveOpened)return j.createElement("div",null);var it=$e.direction;return j.createElement(ue.default,Object.assign({visible:$e.visible},ke),function(at){var Ne=at.className,Ve=at.style,tt=a()("".concat($e.prefixCls,"-sub"),Ne,Object(c.a)({},"".concat($e.prefixCls,"-rtl"),it==="rtl"));return j.createElement(Te,Object.assign({},$e,{id:fe.internalMenuId,className:tt,style:Ve}),se)})}},{key:"render",value:function(){var se,fe=Object(ee.a)({},this.props),$e=fe.isOpen,ke=this.getPrefixCls(),it=fe.mode==="inline",at=a()(ke,"".concat(ke,"-").concat(fe.mode),(se={},Object(c.a)(se,fe.className,!!fe.className),Object(c.a)(se,this.getOpenClassName(),$e),Object(c.a)(se,this.getActiveClassName(),fe.active||$e&&!it),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),Object(c.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(fe.eventKey?this.internalMenuId="".concat(fe.eventKey,"$Menu"):(Me+=1,this.internalMenuId="$__$".concat(Me,"$Menu")));var Ne={},Ve={},tt={};fe.disabled||(Ne={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ve={onClick:this.onTitleClick},tt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ft={},Ct=fe.direction;it&&(Ct==="rtl"?ft.paddingRight=fe.inlineIndent*fe.level:ft.paddingLeft=fe.inlineIndent*fe.level);var zt={};this.props.isOpen&&(zt={"aria-owns":this.internalMenuId});var qt=null;fe.mode!=="horizontal"&&(qt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qt=j.createElement(this.props.expandIcon,Object(ee.a)({},this.props))));var Qt=j.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ft,className:"".concat(ke,"-title"),role:"button"},tt,Ve,{"aria-expanded":$e},zt,{"aria-haspopup":"true",title:typeof fe.title=="string"?fe.title:void 0}),fe.title,qt||j.createElement("i",{className:"".concat(ke,"-arrow")})),St=this.renderChildren(fe.children),ln=fe.parentMenu.isRootMenu?fe.parentMenu.props.getPopupContainer:function(un){return un.parentNode},Bt=We[fe.mode],Yt=fe.popupOffset?{offset:fe.popupOffset}:{},Mt=fe.mode==="inline"?"":fe.popupClassName;Mt+=Ct==="rtl"?" ".concat(ke,"-rtl"):"";var tn=fe.disabled,mn=fe.triggerSubMenuAction,An=fe.subMenuOpenDelay,lt=fe.forceSubMenuRender,Rt=fe.subMenuCloseDelay,Jt=fe.builtinPlacements;Ge.forEach(function(un){return delete fe[un]}),delete fe.onClick;var nn=Ct==="rtl"?Object.assign({},oe,Jt):Object.assign({},ae,Jt);return delete fe.direction,j.createElement("li",Object.assign({},fe,Ne,{className:at,role:"menuitem"}),it&&Qt,it&&St,!it&&j.createElement(ye.a,{prefixCls:ke,popupClassName:a()("".concat(ke,"-popup"),Mt),getPopupContainer:ln,builtinPlacements:nn,popupPlacement:Bt,popupVisible:$e,popupAlign:Yt,popup:St,action:tn?[]:[mn],mouseEnterDelay:An,mouseLeaveDelay:Rt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:lt},Qt))}}]),Xe}(j.Component);Qe.defaultProps={onMouseEnter:F,onMouseLeave:F,onTitleMouseEnter:F,onTitleMouseLeave:F,onTitleClick:F,manualRef:F,mode:"vertical",title:""};var Ze=Object(U.b)(function(gt,qe){var Xe=gt.openKeys,Pe=gt.activeKey,se=gt.selectedKeys,fe=qe.eventKey,$e=qe.subMenuKey;return{isOpen:Xe.indexOf(fe)>-1,active:Pe[$e]===fe,selectedKeys:se}})(Qe);Ze.isSubMenu=!0;var yt=Ze,vt="menuitem-overflowed",dt=.5,pt=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var Pe;return Object(K.a)(this,Xe),Pe=qe.apply(this,arguments),Pe.resizeObserver=null,Pe.mutationObserver=null,Pe.originalTotalWidth=0,Pe.overflowedItems=[],Pe.menuItemSizes=[],Pe.cancelFrameId=null,Pe.state={lastVisibleIndex:void 0},Pe.getMenuItemNodes=function(){var se=Pe.props.prefixCls,fe=he.findDOMNode(Object(z.a)(Pe));return fe?[].slice.call(fe.children).filter(function($e){return $e.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},Pe.getOverflowedSubMenuItem=function(se,fe,$e){var ke=Pe.props,it=ke.overflowedIndicator,at=ke.level,Ne=ke.mode,Ve=ke.prefixCls,tt=ke.theme;if(at!==1||Ne!=="horizontal")return null;var ft=Pe.props.children[0],Ct=ft.props,zt=Ct.children,qt=Ct.title,Qt=Ct.style,St=Object(xe.a)(Ct,["children","title","style"]),ln=Object(ee.a)({},Qt),Bt="".concat(se,"-overflowed-indicator"),Yt="".concat(se,"-overflowed-indicator");fe.length===0&&$e!==!0?ln=Object(ee.a)(Object(ee.a)({},ln),{},{display:"none"}):$e&&(ln=Object(ee.a)(Object(ee.a)({},ln),{},{visibility:"hidden",position:"absolute"}),Bt="".concat(Bt,"-placeholder"),Yt="".concat(Yt,"-placeholder"));var Mt=tt?"".concat(Ve,"-").concat(tt):"",tn={};return Ge.forEach(function(mn){St[mn]!==void 0&&(tn[mn]=St[mn])}),j.createElement(yt,Object.assign({title:it,className:"".concat(Ve,"-overflowed-submenu"),popupClassName:Mt},tn,{key:Bt,eventKey:Yt,disabled:!1,style:ln}),fe)},Pe.setChildrenWidthAndResize=function(){if(Pe.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(Pe));if(!se)return;var fe=se.children;if(!fe||fe.length===0)return;var $e=se.children[fe.length-1];Ue($e,"display","inline-block");var ke=Pe.getMenuItemNodes(),it=ke.filter(function(at){return at.className.split(" ").indexOf(vt)>=0});it.forEach(function(at){Ue(at,"display","inline-block")}),Pe.menuItemSizes=ke.map(function(at){return Fe(at,!0)}),it.forEach(function(at){Ue(at,"display","none")}),Pe.overflowedIndicatorWidth=Fe(se.children[se.children.length-1],!0),Pe.originalTotalWidth=Pe.menuItemSizes.reduce(function(at,Ne){return at+Ne},0),Pe.handleResize(),Ue($e,"display","none")},Pe.handleResize=function(){if(Pe.props.mode!=="horizontal")return;var se=he.findDOMNode(Object(z.a)(Pe));if(!se)return;var fe=Fe(se);Pe.overflowedItems=[];var $e=0,ke;Pe.originalTotalWidth>fe+dt&&(ke=-1,Pe.menuItemSizes.forEach(function(it){$e+=it,$e+Pe.overflowedIndicatorWidth<=fe&&(ke+=1)})),Pe.setState({lastVisibleIndex:ke})},Pe}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var fe=he.findDOMNode(this);if(!fe)return;this.resizeObserver=new te.default(function($e){$e.forEach(function(){var ke=se.cancelFrameId;cancelAnimationFrame(ke),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(fe.children).concat(fe).forEach(function($e){se.resizeObserver.observe($e)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(fe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(se){var fe=this,$e=this.state.lastVisibleIndex;return(se||[]).reduce(function(ke,it,at){var Ne=it;if(fe.props.mode==="horizontal"){var Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,[]);$e!==void 0&&fe.props.className.indexOf("".concat(fe.props.prefixCls,"-root"))!==-1&&(at>$e&&(Ne=j.cloneElement(it,{style:{display:"none"},eventKey:"".concat(it.props.eventKey,"-hidden"),className:"".concat(vt)})),at===$e+1&&(fe.overflowedItems=se.slice($e+1).map(function(ft){return j.cloneElement(ft,{key:ft.props.eventKey,mode:"vertical-left"})}),Ve=fe.getOverflowedSubMenuItem(it.props.eventKey,fe.overflowedItems)));var tt=[].concat(Object(je.a)(ke),[Ve,Ne]);return at===se.length-1&&tt.push(fe.getOverflowedSubMenuItem(it.props.eventKey,[],!0)),tt}return[].concat(Object(je.a)(ke),[Ne])},[])}},{key:"render",value:function(){var se=this.props,fe=se.visible,$e=se.prefixCls,ke=se.overflowedIndicator,it=se.mode,at=se.level,Ne=se.tag,Ve=se.children,tt=se.theme,ft=Object(xe.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ct=Ne;return j.createElement(Ct,Object.assign({},ft),this.renderChildren(Ve))}}]),Xe}(j.Component);pt.defaultProps={tag:"div",className:""};var At=pt;function wt(gt){return gt.length?gt.every(function(qe){return!!qe.props.disabled}):!0}function Oe(gt,qe,Xe){var Pe=gt.getState();gt.setState({activeKey:Object(ee.a)(Object(ee.a)({},Pe.activeKey),{},Object(c.a)({},qe,Xe))})}function we(gt){return gt.eventKey||"0-menu-"}function Je(gt,qe){var Xe=qe,Pe=gt.children,se=gt.eventKey;if(Xe){var fe;if(pe(Pe,function($e,ke){$e&&$e.props&&!$e.props.disabled&&Xe===q($e,se,ke)&&(fe=!0)}),fe)return Xe}return Xe=null,gt.defaultActiveFirst&&pe(Pe,function($e,ke){!Xe&&$e&&!$e.props.disabled&&(Xe=q($e,se,ke))}),Xe}function st(gt){if(gt){var qe=this.instanceArray.indexOf(gt);qe!==-1?this.instanceArray[qe]=gt:this.instanceArray.push(gt)}}var He=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(Pe){var se;return Object(K.a)(this,Xe),se=qe.call(this,Pe),se.onKeyDown=function(fe,$e){var ke=fe.keyCode,it;if(se.getFlatInstanceArray().forEach(function(Ne){Ne&&Ne.props.active&&Ne.onKeyDown&&(it=Ne.onKeyDown(fe))}),it)return 1;var at=null;return(ke===g.a.UP||ke===g.a.DOWN)&&(at=se.step(ke===g.a.UP?-1:1)),at?(fe.preventDefault(),Oe(se.props.store,we(se.props),at.props.eventKey),typeof $e=="function"&&$e(at),1):void 0},se.onItemHover=function(fe){var $e=fe.key,ke=fe.hover;Oe(se.props.store,we(se.props),ke?$e:null)},se.onDeselect=function(fe){se.props.onDeselect(fe)},se.onSelect=function(fe){se.props.onSelect(fe)},se.onClick=function(fe){se.props.onClick(fe)},se.onOpenChange=function(fe){se.props.onOpenChange(fe)},se.onDestroy=function(fe){se.props.onDestroy(fe)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(fe){var $e=se.getFlatInstanceArray(),ke=se.props.store.getState().activeKey[we(se.props)],it=$e.length;if(!it)return null;fe<0&&($e=$e.concat().reverse());var at=-1;if($e.every(function(ft,Ct){return ft&&ft.props.eventKey===ke?(at=Ct,!1):!0}),!se.props.defaultActiveFirst&&at!==-1&&wt($e.slice(at,it-1)))return;var Ne=(at+1)%it,Ve=Ne;do{var tt=$e[Ve];if(!tt||tt.props.disabled)Ve=(Ve+1)%it;else return tt}while(Ve!==Ne);return null},se.renderCommonMenuItem=function(fe,$e,ke){var it=se.props.store.getState(),at=Object(z.a)(se),Ne=at.props,Ve=q(fe,Ne.eventKey,$e),tt=fe.props;if(!tt||typeof fe.type=="string")return fe;var ft=Ve===it.activeKey,Ct=Object(ee.a)(Object(ee.a)({mode:tt.mode||Ne.mode,level:Ne.level,inlineIndent:Ne.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:Ne.prefixCls,index:$e,parentMenu:Ne.parentMenu,manualRef:tt.disabled?void 0:Object(w.a)(fe.ref,st.bind(Object(z.a)(se))),eventKey:Ve,active:!tt.disabled&&ft,multiple:Ne.multiple,onClick:function(qt){(tt.onClick||F)(qt),se.onClick(qt)},onItemHover:se.onItemHover,motion:Ne.motion,subMenuOpenDelay:Ne.subMenuOpenDelay,subMenuCloseDelay:Ne.subMenuCloseDelay,forceSubMenuRender:Ne.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:Ne.builtinPlacements,itemIcon:tt.itemIcon||se.props.itemIcon,expandIcon:tt.expandIcon||se.props.expandIcon},ke),{},{direction:Ne.direction});return(Ne.mode==="inline"||_e())&&(Ct.triggerSubMenuAction="click"),j.cloneElement(fe,Ct)},se.renderMenuItem=function(fe,$e,ke){if(!fe)return null;var it=se.props.store.getState(),at={openKeys:it.openKeys,selectedKeys:it.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:ke};return se.renderCommonMenuItem(fe,$e,at)},Pe.store.setState({activeKey:Object(ee.a)(Object(ee.a)({},Pe.store.getState().activeKey),{},Object(c.a)({},Pe.eventKey,Je(Pe,Pe.activeKey)))}),se.instanceArray=[],se}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!f()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var fe=this.props,$e="activeKey"in fe?fe.activeKey:fe.store.getState().activeKey[we(fe)],ke=Je(fe,$e);if(ke!==$e)Oe(fe.store,we(fe),ke);else if("activeKey"in se){var it=Je(se,se.activeKey);ke!==it&&Oe(fe.store,we(fe),ke)}}},{key:"render",value:function(){var se=this,fe=Object(R.a)({},this.props);this.instanceArray=[];var $e=a()(fe.prefixCls,fe.className,"".concat(fe.prefixCls,"-").concat(fe.mode)),ke={className:$e,role:fe.role||"menu"};fe.id&&(ke.id=fe.id),fe.focusable&&(ke.tabIndex=0,ke.onKeyDown=this.onKeyDown);var it=fe.prefixCls,at=fe.eventKey,Ne=fe.visible,Ve=fe.level,tt=fe.mode,ft=fe.overflowedIndicator,Ct=fe.theme;return Ge.forEach(function(zt){return delete fe[zt]}),delete fe.onClick,j.createElement(At,Object.assign({},fe,{prefixCls:it,mode:tt,tag:"ul",level:Ve,theme:Ct,visible:Ne,overflowedIndicator:ft},ke),j.Children.map(fe.children,function(zt,qt){return se.renderMenuItem(zt,qt,at||"0-menu-")}))}}]),Xe}(j.Component);He.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:F};var nt=Object(U.b)()(He),Te=nt,ge=N("Kwbf");function be(gt,qe,Xe){var Pe=gt.prefixCls,se=gt.motion,fe=gt.defaultMotions,$e=fe===void 0?{}:fe,ke=gt.openAnimation,it=gt.openTransitionName,at=qe.switchingModeFromInline;if(se)return se;if(Object(n.a)(ke)==="object"&&ke)Object(ge.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ke=="string")return{motionName:"".concat(Pe,"-open-").concat(ke)};if(it)return{motionName:it};var Ne=$e[Xe];return Ne||(at?null:$e.other)}var re=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(Pe){var se;Object(K.a)(this,Xe),se=qe.call(this,Pe),se.inlineOpenKeys=[],se.onSelect=function(ke){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState(),Ve=Ne.selectedKeys,tt=ke.key;at.multiple?Ve=Ve.concat([tt]):Ve=[tt],"selectedKeys"in at||se.store.setState({selectedKeys:Ve}),at.onSelect(Object(ee.a)(Object(ee.a)({},ke),{},{selectedKeys:Ve}))}},se.onClick=function(ke){var it=se.getRealMenuMode(),at=Object(z.a)(se),Ne=at.store,Ve=at.props.onOpenChange;it!=="inline"&&!("openKeys"in se.props)&&(Ne.setState({openKeys:[]}),Ve([])),se.props.onClick(ke)},se.onKeyDown=function(ke,it){se.innerMenu.getWrappedInstance().onKeyDown(ke,it)},se.onOpenChange=function(ke){var it=Object(z.a)(se),at=it.props,Ne=se.store.getState().openKeys.concat(),Ve=!1,tt=function(Ct){var zt=!1;if(Ct.open)zt=Ne.indexOf(Ct.key)===-1,zt&&Ne.push(Ct.key);else{var qt=Ne.indexOf(Ct.key);zt=qt!==-1,zt&&Ne.splice(qt,1)}Ve=Ve||zt};Array.isArray(ke)?ke.forEach(tt):tt(ke),Ve&&("openKeys"in se.props||se.store.setState({openKeys:Ne}),at.onOpenChange(Ne))},se.onDeselect=function(ke){var it=Object(z.a)(se),at=it.props;if(at.selectable){var Ne=se.store.getState().selectedKeys.concat(),Ve=ke.key,tt=Ne.indexOf(Ve);tt!==-1&&Ne.splice(tt,1),"selectedKeys"in at||se.store.setState({selectedKeys:Ne}),at.onDeselect(Object(ee.a)(Object(ee.a)({},ke),{},{selectedKeys:Ne}))}},se.onMouseEnter=function(ke){se.restoreModeVerticalFromInline();var it=se.props.onMouseEnter;it&&it(ke)},se.onTransitionEnd=function(ke){var it=ke.propertyName==="width"&&ke.target===ke.currentTarget,at=ke.target.className,Ne=Object.prototype.toString.call(at)==="[object SVGAnimatedString]"?at.animVal:at,Ve=ke.propertyName==="font-size"&&Ne.indexOf("anticon")>=0;(it||Ve)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(ke){se.innerMenu=ke},se.isRootMenu=!0;var fe=Pe.defaultSelectedKeys,$e=Pe.defaultOpenKeys;return"selectedKeys"in Pe&&(fe=Pe.selectedKeys||[]),"openKeys"in Pe&&($e=Pe.openKeys||[]),se.store=Object(U.c)({selectedKeys:fe,openKeys:$e,activeKey:{"0-menu-":Je(Pe,Pe.activeKey)}}),se.state={switchingModeFromInline:!1},se}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){this.updateOpentKeysWhenSwitchMode(se),this.updateMiniStore();var fe=this.props,$e=fe.siderCollapsed,ke=fe.inlineCollapsed,it=fe.onOpenChange;(!se.inlineCollapsed&&ke||!se.siderCollapsed&&$e)&&it([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(se){var fe=this.props,$e=this.store,ke=this.inlineOpenKeys,it=$e.getState(),at={};se.mode==="inline"&&fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in fe||((fe.inlineCollapsed&&!se.inlineCollapsed||fe.siderCollapsed&&!se.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=it.openKeys.concat(),at.openKeys=[]),(!fe.inlineCollapsed&&se.inlineCollapsed||!fe.siderCollapsed&&se.siderCollapsed)&&(at.openKeys=ke,this.inlineOpenKeys=[])),Object.keys(at).length&&$e.setState(at)}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,fe=this.store,$e=this.prevOpenKeys,ke=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");ke?(this.prevOpenKeys=fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):$e&&(this.store.setState({openKeys:$e}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,fe=this.state.switchingModeFromInline,$e=this.getInlineCollapsed();return fe&&$e?"inline":$e?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,fe=se.inlineCollapsed,$e=se.siderCollapsed;return $e!==void 0?$e:fe}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var se=Object(ee.a)({},Object(_.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),fe=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(ee.a)(Object(ee.a)({},se),{},{mode:fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:be(this.props,this.state,fe)}),delete se.openAnimation,delete se.openTransitionName,j.createElement(U.a,{store:this.store},j.createElement(Te,Object.assign({},se,{ref:this.setInnerMenu}),this.props.children))}}]),Xe}(j.Component);re.defaultProps={selectable:!0,onClick:F,onSelect:F,onOpenChange:F,onDeselect:F,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:j.createElement("span",null,"\xB7\xB7\xB7")};var ie=re,ce=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var Pe;return Object(K.a)(this,Xe),Pe=qe.apply(this,arguments),Pe.onKeyDown=function(se){var fe=se.keyCode;return fe===g.a.ENTER?(Pe.onClick(se),!0):void 0},Pe.onMouseLeave=function(se){var fe=Pe.props,$e=fe.eventKey,ke=fe.onItemHover,it=fe.onMouseLeave;ke({key:$e,hover:!1}),it({key:$e,domEvent:se})},Pe.onMouseEnter=function(se){var fe=Pe.props,$e=fe.eventKey,ke=fe.onItemHover,it=fe.onMouseEnter;ke({key:$e,hover:!0}),it({key:$e,domEvent:se})},Pe.onClick=function(se){var fe=Pe.props,$e=fe.eventKey,ke=fe.multiple,it=fe.onClick,at=fe.onSelect,Ne=fe.onDeselect,Ve=fe.isSelected,tt={key:$e,keyPath:[$e],item:Object(z.a)(Pe),domEvent:se};it(tt),ke?Ve?Ne(tt):at(tt):Ve||at(tt)},Pe.saveNode=function(se){Pe.node=se},Pe}return Object(P.a)(Xe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var se,fe=Object(ee.a)({},this.props),$e=a()(this.getPrefixCls(),fe.className,(se={},Object(c.a)(se,this.getActiveClassName(),!fe.disabled&&fe.active),Object(c.a)(se,this.getSelectedClassName(),fe.isSelected),Object(c.a)(se,this.getDisabledClassName(),fe.disabled),se)),ke=Object(ee.a)(Object(ee.a)({},fe.attribute),{},{title:typeof fe.title=="string"?fe.title:void 0,className:$e,role:fe.role||"menuitem","aria-disabled":fe.disabled});fe.role==="option"?ke=Object(ee.a)(Object(ee.a)({},ke),{},{role:"option","aria-selected":fe.isSelected}):(fe.role===null||fe.role==="none")&&(ke.role="none");var it={onClick:fe.disabled?null:this.onClick,onMouseLeave:fe.disabled?null:this.onMouseLeave,onMouseEnter:fe.disabled?null:this.onMouseEnter},at=Object(ee.a)({},fe.style);fe.mode==="inline"&&(fe.direction==="rtl"?at.paddingRight=fe.inlineIndent*fe.level:at.paddingLeft=fe.inlineIndent*fe.level),Ge.forEach(function(Ve){return delete fe[Ve]}),delete fe.direction;var Ne=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ne=j.createElement(this.props.itemIcon,this.props)),j.createElement("li",Object.assign({},Object(_.default)(fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ke,it,{style:at,ref:this.saveNode}),fe.children,Ne)}}]),Xe}(j.Component);ce.isMenuItem=!0,ce.defaultProps={onSelect:F,onMouseEnter:F,onMouseLeave:F,manualRef:F};var Ee=Object(U.b)(function(gt,qe){var Xe=gt.activeKey,Pe=gt.selectedKeys,se=qe.eventKey,fe=qe.subMenuKey;return{active:Xe[fe]===se,isSelected:Pe.indexOf(se)!==-1}})(ce),Be=Ee,Ie=function(gt){Object(B.a)(Xe,gt);var qe=Object(M.a)(Xe);function Xe(){var Pe;return Object(K.a)(this,Xe),Pe=qe.apply(this,arguments),Pe.renderInnerMenuItem=function(se){var fe=Pe.props,$e=fe.renderMenuItem,ke=fe.index;return $e(se,ke,Pe.props.subMenuKey)},Pe}return Object(P.a)(Xe,[{key:"render",value:function(){var se=Object(R.a)({},this.props),fe=se.className,$e=fe===void 0?"":fe,ke=se.rootPrefixCls,it="".concat(ke,"-item-group-title"),at="".concat(ke,"-item-group-list"),Ne=se.title,Ve=se.children;return Ge.forEach(function(tt){return delete se[tt]}),delete se.onClick,delete se.direction,j.createElement("li",Object.assign({},se,{className:"".concat($e," ").concat(ke,"-item-group")}),j.createElement("div",{className:it,title:typeof Ne=="string"?Ne:void 0},Ne),j.createElement("ul",{className:at},j.Children.map(Ve,this.renderInnerMenuItem)))}}]),Xe}(j.Component);Ie.isMenuItemGroup=!0,Ie.defaultProps={disabled:!0};var ut=Ie,bt=function(qe){var Xe=qe.className,Pe=qe.rootPrefixCls,se=qe.style;return j.createElement("li",{className:"".concat(Xe," ").concat(Pe,"-item-divider"),style:se})};bt.defaultProps={disabled:!0,className:"",style:{}};var Tt=bt,xt=de.e=ie},"24hK":function(et,de,N){"use strict";N.d(de,"a",function(){return P});var ee=N("JYp7"),K=function(){function z(B){this.element=B,this.next=z.Undefined,this.prev=z.Undefined}return z.Undefined=new z(void 0),z}(),P=function(){function z(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}return Object.defineProperty(z.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),z.prototype.isEmpty=function(){return this._first===K.Undefined},z.prototype.clear=function(){this._first=K.Undefined,this._last=K.Undefined,this._size=0},z.prototype.unshift=function(B){return this._insert(B,!1)},z.prototype.push=function(B){return this._insert(B,!0)},z.prototype._insert=function(B,M){var j=this,U=new K(B);if(this._first===K.Undefined)this._first=U,this._last=U;else if(M){var _=this._last;this._last=U,U.prev=_,_.next=U}else{var R=this._first;this._first=U,U.next=R,R.prev=U}this._size+=1;var c=!1;return function(){c||(c=!0,j._remove(U))}},z.prototype.shift=function(){if(this._first===K.Undefined)return;var B=this._first.element;return this._remove(this._first),B},z.prototype.pop=function(){if(this._last===K.Undefined)return;var B=this._last.element;return this._remove(this._last),B},z.prototype._remove=function(B){if(B.prev!==K.Undefined&&B.next!==K.Undefined){var M=B.prev;M.next=B.next,B.next.prev=M}else B.prev===K.Undefined&&B.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):B.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):B.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1},z.prototype.iterator=function(){var B,M=this._first;return{next:function(){return M===K.Undefined?ee.c:(B?B.value=M.element:B={done:!1,value:M.element},M=M.next,B)}}},z.prototype.toArray=function(){for(var B=[],M=this._first;M!==K.Undefined;M=M.next)B.push(M.element);return B},z}()},"4qgm":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(et,de,N){"use strict";N.d(de,"a",function(){return o}),N.d(de,"b",function(){return A});var ee=N("Ty5D"),K=N("dI71"),P=N("q1tI"),z=N.n(P),B=N("YS25"),M=N("17x9"),j=N.n(M),U=N("wx14"),_=N("zLVn"),R=N("9R94"),c=function(h){Object(K.a)(s,h);function s(){for(var D,T=arguments.length,S=new Array(T),I=0;I=0||T.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;h.setState({goInputText:""}),C(h.getValidValue())},h.go=function(T){var S=h.state.goInputText;if(S==="")return;(T.keyCode===y.ENTER||T.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(B.a)(p,[{key:"getValidValue",value:function(){var s=this.state,l=s.goInputText,D=s.current;return!l||isNaN(l)?D:Number(l)}},{key:"getPageSizeOptions",value:function(){var s=this.props,l=s.pageSize,D=s.pageSizeOptions;return D.some(function(T){return T.toString()===l.toString()})?D:D.concat([l.toString()]).sort(function(T,S){var I=isNaN(Number(T))?0:Number(T),C=isNaN(Number(S))?0:Number(S);return I-C})}},{key:"render",value:function(){var s=this,l=this.props,D=l.pageSize,T=l.locale,S=l.rootPrefixCls,I=l.changeSize,C=l.quickGo,W=l.goButton,Y=l.selectComponentClass,H=l.buildOptionText,F=l.selectPrefixCls,q=l.disabled,le=this.state.goInputText,pe="".concat(S,"-options"),Ae=Y,Ge=null,Fe=null,Ue=null;if(!I&&!C)return null;var _e=this.getPageSizeOptions();if(I&&Ae){var je=_e.map(function(xe,he){return _.a.createElement(Ae.Option,{key:he,value:xe.toString()},(H||s.buildOptionText)(xe))});Ge=_.a.createElement(Ae,{disabled:q,prefixCls:F,showSearch:!1,className:"".concat(pe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||_e[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},je)}return C&&(W&&(Ue=typeof W=="boolean"?_.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(pe,"-quick-jumper-button")},T.jump_to_confirm):_.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),Fe=_.a.createElement("div",{className:"".concat(pe,"-quick-jumper")},T.jump_to,_.a.createElement("input",{disabled:q,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,Ue)),_.a.createElement("li",{className:"".concat(pe)},Ge,Fe)}}]),p}(_.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=f,a=N("N2Kk");function n(){}function o(O){return typeof O=="number"&&isFinite(O)&&Math.floor(O)===O}function u(O,A,p){return p}function x(O,A,p){var h=typeof O=="undefined"?A.pageSize:O;return Math.floor((p.total-1)/h)+1}var E=function(O){Object(M.a)(p,O);var A=Object(j.a)(p);function p(h){var s;Object(z.a)(this,p),s=A.call(this,h),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(x(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(I,C){var W=s.props.prefixCls,Y=I||_.a.createElement("button",{type:"button","aria-label":C,className:"".concat(W,"-item-link")});return typeof I=="function"&&(Y=_.a.createElement(I,Object(P.a)({},s.props))),Y},s.savePaginationNode=function(I){s.paginationNode=I},s.isValid=function(I){return o(I)&&I!==s.state.current},s.shouldDisplayQuickJumper=function(){var I=s.props,C=I.showQuickJumper,W=I.pageSize,Y=I.total;return Y<=W?!1:C},s.handleKeyDown=function(I){(I.keyCode===y.ARROW_UP||I.keyCode===y.ARROW_DOWN)&&I.preventDefault()},s.handleKeyUp=function(I){var C=s.getValidValue(I),W=s.state.currentInputValue;C!==W&&s.setState({currentInputValue:C}),I.keyCode===y.ENTER?s.handleChange(C):I.keyCode===y.ARROW_UP?s.handleChange(C-1):I.keyCode===y.ARROW_DOWN&&s.handleChange(C+1)},s.changePageSize=function(I){var C=s.state.current,W=x(I,s.state,s.props);C=C>W?W:C,W===0&&(C=s.state.current),typeof I=="number"&&("pageSize"in s.props||s.setState({pageSize:I}),"current"in s.props||s.setState({current:C,currentInputValue:C})),s.props.onShowSizeChange(C,I),"onChange"in s.props&&s.props.onChange&&s.props.onChange(C,I)},s.handleChange=function(I){var C=s.props.disabled,W=I;if(s.isValid(W)&&!C){var Y=x(void 0,s.state,s.props);W>Y?W=Y:W<1&&(W=1),"current"in s.props||s.setState({current:W,currentInputValue:W});var H=s.state.pageSize;return s.props.onChange(W,H),W}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?W-2:0),H=2;H=D?S=D:S=Number(l),S}},{key:"getShowSizeChanger",value:function(){var s=this.props,l=s.showSizeChanger,D=s.total,T=s.totalBoundaryShowSizeChanger;return typeof l!="undefined"?l:D>T}},{key:"renderPrev",value:function(s){var l=this.props,D=l.prevIcon,T=l.itemRender,S=T(s,"prev",this.getItemIcon(D,"prev page")),I=!this.hasPrev();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"renderNext",value:function(s){var l=this.props,D=l.nextIcon,T=l.itemRender,S=T(s,"next",this.getItemIcon(D,"next page")),I=!this.hasNext();return Object(U.isValidElement)(S)?Object(U.cloneElement)(S,{disabled:I}):S}},{key:"render",value:function(){var s=this,l=this.props,D=l.prefixCls,T=l.className,S=l.style,I=l.disabled,C=l.hideOnSinglePage,W=l.total,Y=l.locale,H=l.showQuickJumper,F=l.showLessItems,q=l.showTitle,le=l.showTotal,pe=l.simple,Ae=l.itemRender,Ge=l.showPrevNextJumpers,Fe=l.jumpPrevIcon,Ue=l.jumpNextIcon,_e=l.selectComponentClass,je=l.selectPrefixCls,xe=l.pageSizeOptions,he=this.state,te=he.current,ye=he.pageSize,ue=he.currentInputValue;if(C===!0&&W<=ye)return null;var Le=x(void 0,this.state,this.props),ae=[],oe=null,Se=null,Me=null,We=null,Ke=null,Qe=H&&H.goButton,Ze=F?1:2,yt=te-1>0?te-1:0,vt=te+1=Ze*2&&te!==1+2&&(ae[0]=Object(U.cloneElement)(ae[0],{className:"".concat(D,"-item-after-jump-prev")}),ae.unshift(oe)),Le-te>=Ze*2&&te!==Le-2&&(ae[ae.length-1]=Object(U.cloneElement)(ae[ae.length-1],{className:"".concat(D,"-item-before-jump-next")}),ae.push(Se)),Je!==1&&ae.unshift(Me),st!==Le&&ae.push(We)}var Te=null;le&&(Te=_.a.createElement("li",{className:"".concat(D,"-total-text")},le(W,[W===0?0:(te-1)*ye+1,te*ye>W?W:te*ye])));var ge=!this.hasPrev()||!Le,be=!this.hasNext()||!Le;return _.a.createElement("ul",Object(ee.a)({className:c()(D,T,Object(K.a)({},"".concat(D,"-disabled"),I)),style:S,unselectable:"unselectable",ref:this.savePaginationNode},dt),Te,_.a.createElement("li",{title:q?Y.prev_page:null,onClick:this.prev,tabIndex:ge?null:0,onKeyPress:this.runIfEnterPrev,className:c()("".concat(D,"-prev"),Object(K.a)({},"".concat(D,"-disabled"),ge)),"aria-disabled":ge},this.renderPrev(yt)),ae,_.a.createElement("li",{title:q?Y.next_page:null,onClick:this.next,tabIndex:be?null:0,onKeyPress:this.runIfEnterNext,className:c()("".concat(D,"-next"),Object(K.a)({},"".concat(D,"-disabled"),be)),"aria-disabled":be},this.renderNext(vt)),_.a.createElement(m,{disabled:I,locale:Y,rootPrefixCls:D,selectComponentClass:_e,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:ye,pageSizeOptions:xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Qe}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var D={};if("current"in s&&(D.current=s.current,s.current!==l.current&&(D.currentInputValue=D.current)),"pageSize"in s&&s.pageSize!==l.pageSize){var T=l.current,S=x(s.pageSize,l,s);T=T>S?S:T,"current"in s||(D.current=T,D.currentInputValue=T),D.pageSize=s.pageSize}return D}}]),p}(_.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:a.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var v=E},"6RRn":function(et,de,N){"use strict";var ee=N("wCXF"),K=N("n6Qo");N.d(de,"b",function(){return K.a});var P=N("IBYe"),z=N("6eGT"),B=N("hW8S");N.d(de,"a",function(){return B.a}),de.c=ee.b},"6eGT":function(et,de,N){"use strict";function ee(K){return null}de.a=ee},"746U":function(et,de,N){"use strict";N.d(de,"d",function(){return K}),N.d(de,"j",function(){return P}),N.d(de,"i",function(){return z}),N.d(de,"h",function(){return B}),N.d(de,"e",function(){return M}),N.d(de,"k",function(){return j}),N.d(de,"l",function(){return U}),N.d(de,"a",function(){return _}),N.d(de,"f",function(){return c}),N.d(de,"g",function(){return g}),N.d(de,"m",function(){return w}),N.d(de,"c",function(){return m}),N.d(de,"b",function(){return a}),N.d(de,"n",function(){return n}),N.d(de,"o",function(){return o});var ee={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function K(u){return Array.isArray?Array.isArray(u):!!(u&&typeof u.length===ee.number&&u.constructor===Array)}function P(u){return typeof u===ee.string||u instanceof String}function z(u){return typeof u===ee.object&&u!==null&&!Array.isArray(u)&&!(u instanceof RegExp)&&!(u instanceof Date)}function B(u){return(typeof u===ee.number||u instanceof Number)&&!isNaN(u)}function M(u){return u===!0||u===!1}function j(u){return typeof u===ee.undefined}function U(u){return j(u)||u===null}function _(u,x){if(!u)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var R=Object.prototype.hasOwnProperty;function c(u){if(!z(u))return!1;for(var x in u)if(R.call(u,x))return!1;return!0}function g(u){return typeof u===ee.function}function w(u,x){for(var E=Math.min(u.length,x.length),v=0;v1&&arguments[1]!==void 0?arguments[1]:0,f=(j[w[y+0]]+j[w[y+1]]+j[w[y+2]]+j[w[y+3]]+"-"+j[w[y+4]]+j[w[y+5]]+"-"+j[w[y+6]]+j[w[y+7]]+"-"+j[w[y+8]]+j[w[y+9]]+"-"+j[w[y+10]]+j[w[y+11]]+j[w[y+12]]+j[w[y+13]]+j[w[y+14]]+j[w[y+15]]).toLowerCase();if(!M(f))throw TypeError("Stringified UUID is invalid");return f}var R=_;function c(w,y,f){w=w||{};var m=w.random||(w.rng||P)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,y){f=f||0;for(var a=0;a<16;++a)y[f+a]=m[a];return y}return R(m)}var g=de.a=c},"7ZXX":function(et,de,N){et.exports=N.p+"static/err.6e7c5817.png"},"7ahc":function(et,de,N){"use strict";N.d(de,"a",function(){return x});var ee=N("k1fw"),K=N("0Owb"),P=N("+L6B"),z=N("2/Rp"),B=N("y8nQ"),M=N("Vl3Y"),j=N("tJVT"),U=N("OaEy"),_=N("2fM7"),R=N("q1tI"),c=N.n(R),g=N("VrN/"),w=N.n(g),y=N("p77/"),f=N.n(y),m=N("c5Ni"),a=N.n(m),n=_.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},u={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};de.b=function(E){var v=E.callback,O=E.onCancel,A=Object(R.useState)("python"),p=Object(j.a)(A,2),h=p[0],s=p[1];function l(T){s(u[T][1])}function D(T){v(T)}return c.a.createElement(M.a,Object(K.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},c.a.createElement(_.a,{onChange:l},Object.keys(u).map(function(T){return c.a.createElement(n,{key:T,value:T},u[T][0])}))),c.a.createElement(M.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},c.a.createElement(x,{mode:h})),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(z.a,{type:"ghost",onClick:O},"\u53D6\u6D88")))};function x(E){var v=E.value,O=E.onChange,A=E.mode,p=E.options,h=p===void 0?{}:p,s=Object(R.useRef)(),l=Object(R.useState)(),D=Object(j.a)(l,2),T=D[0],S=D[1];return Object(R.useEffect)(function(){if(T){function I(C){var W=C.getValue();O&&O(W)}return T.on("change",I),function(){T.off("change",I)}}},[T,O]),Object(R.useEffect)(function(){T&&T.setOption("mode",A)},[T,A]),Object(R.useEffect)(function(){T&&((v!==T.getValue()||v==="")&&setTimeout(function(){T.setValue(v||" ")},300))},[T,v]),Object(R.useEffect)(function(){if(s.current&&!T){var I=w.a.fromTextArea(s.current,Object(ee.a)({mode:A,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));S(I)}},[s.current,T]),c.a.createElement("div",{className:"my-codemirror-container"},c.a.createElement("textarea",{ref:s}))}},"7ixt":function(et,de,N){"use strict";N.d(de,"a",function(){return P});var ee={adjustX:1,adjustY:1},K=[0,0],P={left:{points:["cr","cl"],overflow:ee,offset:[-4,0],targetOffset:K},right:{points:["cl","cr"],overflow:ee,offset:[4,0],targetOffset:K},top:{points:["bc","tc"],overflow:ee,offset:[0,-4],targetOffset:K},bottom:{points:["tc","bc"],overflow:ee,offset:[0,4],targetOffset:K},topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-4],targetOffset:K},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0],targetOffset:K},topRight:{points:["br","tr"],overflow:ee,offset:[0,-4],targetOffset:K},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0],targetOffset:K},bottomRight:{points:["tr","br"],overflow:ee,offset:[0,4],targetOffset:K},rightBottom:{points:["bl","br"],overflow:ee,offset:[4,0],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,4],targetOffset:K},leftBottom:{points:["br","bl"],overflow:ee,offset:[-4,0],targetOffset:K}},z=P},"7v3h":function(et,de,N){et.exports=N.p+"static/empty2.dd73f390.png"},"8/bI":function(et,de,N){et.exports=N.p+"static/empty.8918e228.png"},"815F":function(et,de,N){"use strict";N.d(de,"e",function(){return j}),N.d(de,"c",function(){return _}),N.d(de,"d",function(){return R}),N.d(de,"a",function(){return g}),N.d(de,"f",function(){return w}),N.d(de,"b",function(){return y});var ee=N("KQm4"),K=N("VTBJ"),P=N("Ff2n"),z=N("Zm9Q"),B=N("Kwbf"),M=N("OZM5");function j(f,m){return f!=null?f:m}function U(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function a(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(u){var x=u.key,E=u.children;Object(B.a)(x!=null,"Tree node must have a certain key: [".concat(o).concat(x,"]"));var v=String(x);Object(B.a)(!m.has(v)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(v)),m.set(v,!0),a(E,"".concat(o).concat(v," > "))})}a(f)}function _(f){function m(a){var n=Object(z.a)(a);return n.map(function(o){if(!Object(M.i)(o))return Object(B.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var u=o.key,x=o.props,E=x.children,v=Object(P.a)(x,["children"]),O=Object(K.a)({key:u},v),A=m(E);return A.length&&(O.children=A),O}).filter(function(o){return o})}return m(f)}function R(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=new Set(m===!0?[]:m),n=[];function o(u){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(E,v){var O=Object(M.h)(x?x.pos:"0",v),A=j(E.key,O),p=Object(K.a)(Object(K.a)({},E),{},{parent:x,pos:O,children:null,data:E,isStart:[].concat(Object(ee.a)(x?x.isStart:[]),[v===0]),isEnd:[].concat(Object(ee.a)(x?x.isEnd:[]),[v===u.length-1])});return n.push(p),m===!0||a.has(A)?p.children=o(E.children||[],p):p.children=[],p})}return o(f),n}function c(f,m,a){var n;a?typeof a=="string"?n=function(x){return x[a]}:typeof a=="function"&&(n=function(x){return a(x)}):n=function(x,E){return j(x.key,E)};function o(u,x,E){var v=u?u.children:f,O=u?Object(M.h)(E.pos,x):"0";if(u){var A=n(u,O),p={node:u,index:x,pos:O,key:A,parentPos:E.node?E.pos:null,level:E.level+1};m(p)}v&&v.forEach(function(h,s){o(h,s,{node:u,pos:O,level:E?E.level+1:-1})})}o(null)}function g(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=m.initWrapper,n=m.processEntity,o=m.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,x={},E={},v={posEntities:x,keyEntities:E};return a&&(v=a(v)||v),c(f,function(O){var A=O.node,p=O.index,h=O.pos,s=O.key,l=O.parentPos,D=O.level,T={node:A,index:p,key:s,pos:h,level:D},S=j(s,h);x[h]=T,E[S]=T,T.parent=x[l],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),n&&n(T,v)},u),o&&o(v),v}function w(f,m){var a=m.expandedKeys,n=m.selectedKeys,o=m.loadedKeys,u=m.loadingKeys,x=m.checkedKeys,E=m.halfCheckedKeys,v=m.dragOverNodeKey,O=m.dropPosition,A=m.keyEntities,p=A[f],h={eventKey:f,expanded:a.indexOf(f)!==-1,selected:n.indexOf(f)!==-1,loaded:o.indexOf(f)!==-1,loading:u.indexOf(f)!==-1,checked:x.indexOf(f)!==-1,halfChecked:E.indexOf(f)!==-1,pos:String(p?p.pos:""),dragOver:v===f&&O===0,dragOverGapTop:v===f&&O===-1,dragOverGapBottom:v===f&&O===1};return h}function y(f){var m=f.data,a=f.expanded,n=f.selected,o=f.checked,u=f.loaded,x=f.loading,E=f.halfChecked,v=f.dragOver,O=f.dragOverGapTop,A=f.dragOverGapBottom,p=f.pos,h=f.active,s=Object(K.a)(Object(K.a)({},m),{},{expanded:a,selected:n,checked:o,loaded:u,loading:x,halfChecked:E,dragOver:v,dragOverGapTop:O,dragOverGapBottom:A,pos:p,active:h});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(B.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),s}},"8EBN":function(et,de,N){(function(ee){ee(N("VrN/"))})(function(ee){"use strict";ee.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var K=0;K-1&&z.substring(j+1,z.length);if(U)return ee.findModeByExtension(U)},ee.findModeByName=function(z){z=z.toLowerCase();for(var B=0;B0&&w[w.length-1])&&(a[0]===6||a[0]===2)){R=0;continue}if(a[0]===3&&(!w||a[1]>w[0]&&a[1]=V.length?J.slice(V.length):J}).join(` `)}var a=[],n=["
          "],o=new y.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function x(){a.length=0,n=["
            "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(G,b,L,V){if(b>=G.length||G[b].level<=L)return b;var J=G[b];V.push("
          • "+J.text+""),b++;var Q=[];return b=v(G,b,J.level,Q),Q.length>0&&(V.push("
              "),Q.forEach(function(De){V.push(De)}),V.push("
            ")),V.push("
          • "),b=v(G,b,L,V),b}function O(){return v(a,0,0,n),n.push("
          "),n.join("")}var A={heading:function(b){var L=u.exec(b);if(L)return{type:"heading",raw:L[0],depth:L[1].length,text:L[2]}},fences:function(b){var L=this.rules.block.fences.exec(b);if(L){var V=L[0],J=m(V,L[3]||""),Q=L[2]?L[2].trim():L[2];if(["latex","katex","math"].indexOf(Q)>=0){var De=s(),ot=J;J=De,l[De]={type:"block",expression:ot}}return{type:"code",raw:V,lang:Q,text:J}}}},p=/(?:\${2})([^\n`]+?)(?:\${2})/gi,h=0,s=function(){return"__special_katext_id_".concat(h++,"__")},l={};function D(){return l}function T(){h=0,l={}}function S(G){return G=G.replace(p,function(b,L){var V=s();return l[V]={type:"inline",expression:L},V}),G}var I=o.listitem;o.listitem=function(G){return I(S(G))};var C=o.paragraph;o.paragraph=function(G){return C(S(G))};var W=o.tablecell;o.tablecell=function(G,b){return W(S(G),b)},o.code=function(G,b,L){var V=(b||"").match(/\S*/)[0];return V?["latex","katex","math"].indexOf(V)>=0?"

          ".concat(G,"

          "):'
          ').concat(L?G:Object(f.escape)(G,!0),`
          `):'
          '+(L?G:Object(f.escape)(G,!0))+"
          "},o.heading=function(G,b,L){var V=this.options.headerPrefix+L.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return a.push({anchor:V,level:b,text:G}),"'+G+""},y.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),y.a.use({tokenizer:A,renderer:o});var Y=y.a,H=N("SJMd"),F=N("ulZh"),q=N.n(F),le=N("m3rI"),pe=N("Oy/b"),Ae=N("p5ED"),Ge=N("ErOA");/*! ***************************************************************************** @@ -129,7 +129,7 @@ PERFORMANCE OF THIS SOFTWARE. `,ve.style.marginLeft="5px",Ft.appendChild(ve)}var Gt=document.createElement("div");Gt.style.display="flex",Gt.style.alignItems="center",Gt.style.minHeight="20px",Gt.style.flexGrow="2";var en=document.createElement("hr");if(en.style.minWidth="20px",en.style.border="0px",en.style.borderTop="3px solid "+(Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxColor:"#eeeeee"),en.style.flexGrow="2",Gt.appendChild(en),Ft.appendChild(Gt),Ot==="both"||Ot==="end"){var Tn=document.createElement("div");Tn.style.display="flex",Tn.style.alignItems="center",Tn.style.minHeight="20px",Tn.innerHTML=` - `,Tn.style.marginRight="5px",Ft.appendChild(Tn)}Q.typeBoxes.push(Ft)},Q=this,De=0;De<4;De++)J(De);return V},b.prototype.setCurrentType=function(L,V){var J=this;this.currentType=L,this.typeBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings!==void 0?J.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},b}(We),be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.arrowType="end",Q.arrowBaseHeight=10,Q.arrowBaseWidth=10,Q.getArrowPoints=Q.getArrowPoints.bind(Q),Q.setArrowType=Q.setArrowType.bind(Q),Q.arrowTypePanel=new ge("Arrow type","end"),Q.arrowTypePanel.onArrowTypeChanged=Q.setArrowType,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.arrow1&&L!==this.arrow2)},b.prototype.getArrowPoints=function(L,V){var J=this.arrowBaseWidth+2*this.strokeWidth,Q=this.arrowBaseHeight+2*this.strokeWidth;return L-J/2+","+(V+Q/2)+" "+L+","+(V-Q/2)+" "+(L+J/2)+","+(V+Q/2)},b.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.state==="creating"&&this.createTips()},b.prototype.adjustVisual=function(){if(G.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.arrow1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(V,0);var J=this.arrow2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(J,0)}},b.prototype.setArrowType=function(L){this.arrowType=L,this.adjustVisual(),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({arrowType:this.arrowType},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.arrowType=V.arrowType,this.createTips(),this.adjustVisual()},b.typeName="ArrowMarker",b.title="Arrow marker",b.icon='',b}(st),re=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.fillColor=J.defaultFillColor,Q.strokeWidth=0,Q.fillPanel=new Ke("Color",J.defaultColorSet,J.defaultFillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="CoverMarker",b.title="Cover marker",b.icon='',b}(pt),ie=function(G){function b(L,V,J,Q){var De=G.call(this,L,Q||'')||this;return De.opacities=[],De.opacityBoxes=[],De.opacities=V,De.currentOpacity=J,De.setCurrentOpacity=De.setCurrentOpacity.bind(De),De}return Ue(b,G),b.prototype.getUi=function(){var L=this,V=document.createElement("div");return V.style.display="flex",V.style.overflow="hidden",V.style.flexGrow="2",V.style.justifyContent="space-between",this.opacities.forEach(function(J){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="center",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=J===L.currentOpacity?L.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){L.setCurrentOpacity(J,Q)}),V.appendChild(Q);var De=document.createElement("div");De.innerText=100*J+"%",Q.appendChild(De),L.opacityBoxes.push(Q)}),V},b.prototype.setCurrentOpacity=function(L,V){var J=this;this.currentOpacity=L,this.opacityBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},b}(We),ce=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.setOpacity=Q.setOpacity.bind(Q),Q.fillColor=J.defaultHighlightColor,Q.strokeWidth=0,Q.opacity=J.defaultHighlightOpacity,Q.fillPanel=new Ke("Color",J.defaultColorSet,Q.fillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q.opacityPanel=new ie("Opacity",J.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return Ue(b,G),b.prototype.setOpacity=function(L){this.opacity=L,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="HighlightMarker",b.title="Highlight marker",b.icon='',b}(re),Ee='',Be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.bgColor="transparent",Q.tipPosition={x:0,y:0},Q.tipBase1Position={x:0,y:0},Q.tipBase2Position={x:0,y:0},Q.tipMoving=!1,Q.color=J.defaultStrokeColor,Q.bgColor=J.defaultFillColor,Q.fontFamily=J.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setBgColor=Q.setBgColor.bind(Q),Q.getTipPoints=Q.getTipPoints.bind(Q),Q.positionTip=Q.positionTip.bind(Q),Q.setTipPoints=Q.setTipPoints.bind(Q),Q.colorPanel=new Ke("Text color",J.defaultColorSet,Q.color,''),Q.colorPanel.onColorChanged=Q.setColor,Q.bgColorPanel=new Ke("Fill color",J.defaultColorSet,Q.bgColor,Ee),Q.bgColorPanel.onColorChanged=Q.setBgColor,Q.fontFamilyPanel=new He("Font",J.defaultFontFamilies,J.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.tipGrip=new yt,Q.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),Q.controlBox.appendChild(Q.tipGrip.visual),Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return G.prototype.ownsTarget.call(this,L)||this.tipGrip.ownsTarget(L)||this.tip===L},b.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},b.prototype.pointerDown=function(L,V){this.state==="new"&&G.prototype.pointerDown.call(this,L,V),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(V)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):G.prototype.pointerDown.call(this,L,V)},b.prototype.pointerUp=function(L){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,G.prototype.pointerUp.call(this,L);else{var V=this.state==="creating";G.prototype.pointerUp.call(this,L),this.setTipPoints(V),this.positionTip()}},b.prototype.manipulate=function(L){if(this.tipMoving){var V=this.unrotatePoint(L);this.tipPosition={x:V.x-this.manipulationStartLeft,y:V.y-this.manipulationStartTop},this.positionTip()}else G.prototype.manipulate.call(this,L)},b.prototype.setBgColor=function(L){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",L]]),he.setAttributes(this.tip,[["fill",L]])),this.bgColor=L,this.fillColorChanged(L)},b.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},b.prototype.setTipPoints=function(L){L===void 0&&(L=!1);var V=Math.min(this.height/2,15),J=this.height/5;L&&(this.tipPosition={x:V+J/2,y:this.height+20});var Q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Q.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.tip1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(V,0);var J=this.tip2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(J,0)}},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L),this.createTips(),this.adjustVisual()},b.typeName="MeasurementMarker",b.title="Measurement marker",b.icon='',b}(st),bt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokePanel.colors=J.defaultColorSet,Q.fillColor="transparent",Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="EllipseFrameMarker",b.title="Ellipse frame marker",b.icon='',b}(Ie),Tt=function(){function G(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),G.prototype.addUndoStep=function(b){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(b)||(this.undoStack.push(b),JSON.stringify(this.lastRedoStep)!==JSON.stringify(b)&&this.redoStack.splice(0,this.redoStack.length))},G.prototype.replaceLastUndoStep=function(b){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=b)},G.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},G.prototype.undo=function(){if(this.undoStack.length>1){var b=this.undoStack.pop();return b!==void 0&&this.redoStack.push(b),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},G.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},G}(),xt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.curveX=0,Q.curveY=0,Q.manipulationStartCurveX=0,Q.manipulationStartCurveY=0,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.positionGrips=Q.positionGrips.bind(Q),Q.addControlGrips=Q.addControlGrips.bind(Q),Q.adjustVisual=Q.adjustVisual.bind(Q),Q.setupControlBox=Q.setupControlBox.bind(Q),Q.resize=Q.resize.bind(Q),Q.strokeColor=J.defaultColor,Q.strokeWidth=J.defaultStrokeWidth,Q.strokeDasharray=J.defaultStrokeDasharray,Q.strokePanel=new Ke("Line color",J.defaultColorSet,J.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new At("Line width",J.defaultStrokeWidths,J.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new wt("Line style",J.defaultStrokeDasharrays,J.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.visual&&L!==this.selectorCurve&&L!==this.visibleCurve&&!this.curveGrip.ownsTarget(L))},b.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},b.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=L.x,this.curveY=L.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(V)&&(this.activeGrip=this.curveGrip,this._state="resize")},b.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},b.prototype.setupControlBox=function(){G.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},b.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,G.prototype.addControlGrips.call(this)},b.prototype.positionGrips=function(){G.prototype.positionGrips.call(this);var L=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-L/2,this.curveY-L/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},b.prototype.manipulate=function(L){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+L.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+L.y-this.manipulationStartY),G.prototype.manipulate.call(this,L)},b.prototype.resize=function(L){this.activeGrip===this.curveGrip&&(this.curveX=L.x,this.curveY=L.y),G.prototype.resize.call(this,L),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},b.prototype.setStrokeColor=function(L){this.strokeColor=L,this.adjustVisual(),this.colorChanged(L)},b.prototype.setStrokeWidth=function(L){this.strokeWidth=L,this.adjustVisual()},b.prototype.setStrokeDasharray=function(L){this.strokeDasharray=L,this.adjustVisual()},b.prototype.scale=function(L,V){this.curveX=this.curveX*L,this.curveY=this.curveY*V,G.prototype.scale.call(this,L,V)},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.strokeColor=V.strokeColor,this.strokeWidth=V.strokeWidth,this.strokeDasharray=V.strokeDasharray,this.curveX=V.curveX,this.curveY=V.curveY,this.createVisual(),this.adjustVisual()},b.typeName="CurveMarker",b.title="Curve marker",b.icon='',b}(Je),gt=function(){function G(b,L){L===void 0&&(L=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=b,this.cancelable=L}return Object.defineProperty(G.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),G.prototype.preventDefault=function(){this._defaultPrevented=!0},G}(),qe=function(G){function b(L,V,J){var Q=G.call(this,L,!1)||this;return Q.dataUrl=V,Q.state=J,Q}return Ue(b,G),b}(gt),Xe=function(G){function b(L,V,J){J===void 0&&(J=!1);var Q=G.call(this,L,J)||this;return Q.marker=V,Q}return Ue(b,G),b}(gt),ke=function(){function G(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return G.prototype.addEventListener=function(b,L){this[b].push(L)},G.prototype.removeEventListener=function(b,L){var V=this[b].indexOf(L);V>-1&&this[b].splice(V,1)},G}(),se=function(){function G(b){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new we,this._isOpen=!1,this.undoRedoManager=new Tt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ke,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=G.instanceCounter++,this.styles=new Le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=b,this.targetRoot=document.body,this.width=b.clientWidth,this.height=b.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(G.prototype,"ALL_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,bt,Ie,ce,Be,ut,re,st,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,Ie,ce,Be]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(b){var L=this;this._availableMarkerTypes.splice(0),b.forEach(function(V){if(typeof V=="string"){var J=L.ALL_MARKER_TYPES.find(function(Q){return Q.typeName===V});J!==void 0&&L._availableMarkerTypes.push(J)}else L._availableMarkerTypes.push(V)})},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(b){this._zoomLevel=b,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),te.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},G.prototype.show=function(){var b=this;this.styles.styleSheetRoot===void 0&&ue.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ue.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(L){return L(new gt(b))})},G.prototype.render=function(){return _e(this,void 0,void 0,function(){var b;return je(this,function(L){switch(L.label){case 0:return this.setCurrentMarker(),(b=new ye).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.markersOnly=this.renderMarkersOnly,b.width=this.renderWidth,b.height=this.renderHeight,[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return L.sent(),[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,L.sent()]}})})},G.prototype.close=function(b){var L=this;if(b===void 0&&(b=!1),this.isOpen){var V=!1;b||this.eventListeners.beforeclose.forEach(function(J){var Q=new gt(L,!0);J(Q),Q.defaultPrevented&&(V=!0)}),V||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(J){return J(new gt(L))}),this.detachEvents(),this._isOpen=!1)}},G.prototype.addMarkersToToolbar=function(){for(var b,L=[],V=0;Vthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*b:this.editorCanvas.clientWidth,V=L',b.title="Powered by marker.js",b.style.display="grid",b.style.alignItems="center",b.style.justifyItems="center",b.style.padding="3px",b.style.width="20px",b.style.height="20px",this.logoUI.appendChild(b),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},G.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},G.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},G.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},G.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Se(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(b),1),b.dispose()},G.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},G.prototype.toolbarButtonClicked=function(b,L){if(b==="marker"&&L!==void 0)this.createNewMarker(L);else if(b==="action")switch(L){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},G.prototype.deleteSelectedMarker=function(){var b=this;if(this._currentMarker!==void 0){var L=!1;if(this.eventListeners.markerbeforedelete.forEach(function(J){var Q=new Xe(b,b._currentMarker,!0);J(Q),Q.defaultPrevented&&(L=!0)}),!L){var V=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(J){return J(new Xe(b,V))})}}},G.prototype.clear=function(){var b=this,L=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(De){var ot=new Xe(b,void 0,!0);De(ot),ot.defaultPrevented&&(L=!0)}),!L)){this.setCurrentMarker();for(var V=function(De){var ot=J.markers[De];J.setCurrentMarker(J.markers[De]),J._currentMarker.dispose(),J.markerImage.removeChild(J._currentMarker.container),J.markers.splice(J.markers.indexOf(J._currentMarker),1),J.eventListeners.markerdelete.forEach(function(Ot){return Ot(new Xe(b,ot))})},J=this,Q=this.markers.length-1;Q>=0;Q--)V(Q);this.addUndoStep()}},Object.defineProperty(G.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),G.prototype.showNotesEditor=function(){var b;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(b=this._currentMarker.notes)!==null&&b!==void 0?b:"",this.overlayContainer.appendChild(this.notesArea))},G.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},G.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},G.prototype.addUndoStep=function(){var b=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var L=this.getState(),V=this.undoRedoManager.getLastUndoStep();if(!V||V.width===L.width&&V.height===L.height){var J=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(L),J1&&this.panTo({x:b.clientX,y:b.clientY}))},G.prototype.onPointerUp=function(b){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(b.clientX,b.clientY)),this.isDragging=!1,this.addUndoStep()},G.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},G.prototype.onKeyUp=function(b){this._currentMarker===void 0||this.notesArea!==void 0||b.key!=="Delete"&&b.key!=="Backspace"||this.deleteSelectedMarker()},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.markerImage.getBoundingClientRect();return{x:(b-V.left)/this.zoomLevel,y:(L-V.top)/this.zoomLevel}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},G.prototype.addLicenseKey=function(b){te.addKey(b)},G.prototype.addEventListener=function(b,L){this.eventListeners.addEventListener(b,L)},G.prototype.removeEventListener=function(b,L){this.eventListeners.removeEventListener(b,L)},G.prototype.renderState=function(b){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(b),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(G.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),G.prototype.focus=function(){var b=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(L){return L(new gt(b))}))},G.prototype.blur=function(){var b=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(L){return L(new gt(b))}))},G.instanceCounter=0,G}();/* ********************************** + `,Tn.style.marginRight="5px",Ft.appendChild(Tn)}Q.typeBoxes.push(Ft)},Q=this,De=0;De<4;De++)J(De);return V},b.prototype.setCurrentType=function(L,V){var J=this;this.currentType=L,this.typeBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings!==void 0?J.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},b}(We),be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.arrowType="end",Q.arrowBaseHeight=10,Q.arrowBaseWidth=10,Q.getArrowPoints=Q.getArrowPoints.bind(Q),Q.setArrowType=Q.setArrowType.bind(Q),Q.arrowTypePanel=new ge("Arrow type","end"),Q.arrowTypePanel.onArrowTypeChanged=Q.setArrowType,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.arrow1&&L!==this.arrow2)},b.prototype.getArrowPoints=function(L,V){var J=this.arrowBaseWidth+2*this.strokeWidth,Q=this.arrowBaseHeight+2*this.strokeWidth;return L-J/2+","+(V+Q/2)+" "+L+","+(V-Q/2)+" "+(L+J/2)+","+(V+Q/2)},b.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.state==="creating"&&this.createTips()},b.prototype.adjustVisual=function(){if(G.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.arrow1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(V,0);var J=this.arrow2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(J,0)}},b.prototype.setArrowType=function(L){this.arrowType=L,this.adjustVisual(),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({arrowType:this.arrowType},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.arrowType=V.arrowType,this.createTips(),this.adjustVisual()},b.typeName="ArrowMarker",b.title="Arrow marker",b.icon='',b}(st),re=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.fillColor=J.defaultFillColor,Q.strokeWidth=0,Q.fillPanel=new Ke("Color",J.defaultColorSet,J.defaultFillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="CoverMarker",b.title="Cover marker",b.icon='',b}(pt),ie=function(G){function b(L,V,J,Q){var De=G.call(this,L,Q||'')||this;return De.opacities=[],De.opacityBoxes=[],De.opacities=V,De.currentOpacity=J,De.setCurrentOpacity=De.setCurrentOpacity.bind(De),De}return Ue(b,G),b.prototype.getUi=function(){var L=this,V=document.createElement("div");return V.style.display="flex",V.style.overflow="hidden",V.style.flexGrow="2",V.style.justifyContent="space-between",this.opacities.forEach(function(J){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="center",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=J===L.currentOpacity?L.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){L.setCurrentOpacity(J,Q)}),V.appendChild(Q);var De=document.createElement("div");De.innerText=100*J+"%",Q.appendChild(De),L.opacityBoxes.push(Q)}),V},b.prototype.setCurrentOpacity=function(L,V){var J=this;this.currentOpacity=L,this.opacityBoxes.forEach(function(Q){Q.style.borderColor=Q===V?J.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},b}(We),ce=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.setOpacity=Q.setOpacity.bind(Q),Q.fillColor=J.defaultHighlightColor,Q.strokeWidth=0,Q.opacity=J.defaultHighlightOpacity,Q.fillPanel=new Ke("Color",J.defaultColorSet,Q.fillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q.opacityPanel=new ie("Opacity",J.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return Ue(b,G),b.prototype.setOpacity=function(L){this.opacity=L,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="HighlightMarker",b.title="Highlight marker",b.icon='',b}(re),Ee='',Be=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.bgColor="transparent",Q.tipPosition={x:0,y:0},Q.tipBase1Position={x:0,y:0},Q.tipBase2Position={x:0,y:0},Q.tipMoving=!1,Q.color=J.defaultStrokeColor,Q.bgColor=J.defaultFillColor,Q.fontFamily=J.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setBgColor=Q.setBgColor.bind(Q),Q.getTipPoints=Q.getTipPoints.bind(Q),Q.positionTip=Q.positionTip.bind(Q),Q.setTipPoints=Q.setTipPoints.bind(Q),Q.colorPanel=new Ke("Text color",J.defaultColorSet,Q.color,''),Q.colorPanel.onColorChanged=Q.setColor,Q.bgColorPanel=new Ke("Fill color",J.defaultColorSet,Q.bgColor,Ee),Q.bgColorPanel.onColorChanged=Q.setBgColor,Q.fontFamilyPanel=new He("Font",J.defaultFontFamilies,J.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.tipGrip=new yt,Q.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),Q.controlBox.appendChild(Q.tipGrip.visual),Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return G.prototype.ownsTarget.call(this,L)||this.tipGrip.ownsTarget(L)||this.tip===L},b.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},b.prototype.pointerDown=function(L,V){this.state==="new"&&G.prototype.pointerDown.call(this,L,V),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(V)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):G.prototype.pointerDown.call(this,L,V)},b.prototype.pointerUp=function(L){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,G.prototype.pointerUp.call(this,L);else{var V=this.state==="creating";G.prototype.pointerUp.call(this,L),this.setTipPoints(V),this.positionTip()}},b.prototype.manipulate=function(L){if(this.tipMoving){var V=this.unrotatePoint(L);this.tipPosition={x:V.x-this.manipulationStartLeft,y:V.y-this.manipulationStartTop},this.positionTip()}else G.prototype.manipulate.call(this,L)},b.prototype.setBgColor=function(L){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",L]]),he.setAttributes(this.tip,[["fill",L]])),this.bgColor=L,this.fillColorChanged(L)},b.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},b.prototype.setTipPoints=function(L){L===void 0&&(L=!1);var V=Math.min(this.height/2,15),J=this.height/5;L&&(this.tipPosition={x:V+J/2,y:this.height+20});var Q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Q.1)){var L=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),V=this.tip1.transform.baseVal.getItem(0);V.setRotate(L,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(V,0);var J=this.tip2.transform.baseVal.getItem(0);J.setRotate(L+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(J,0)}},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L),this.createTips(),this.adjustVisual()},b.typeName="MeasurementMarker",b.title="Measurement marker",b.icon='',b}(st),bt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokePanel.colors=J.defaultColorSet,Q.fillColor="transparent",Q}return Ue(b,G),Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=G.prototype.getState.call(this);return L.typeName=b.typeName,L},b.typeName="EllipseFrameMarker",b.title="Ellipse frame marker",b.icon='',b}(Ie),Tt=function(){function G(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),G.prototype.addUndoStep=function(b){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(b)||(this.undoStack.push(b),JSON.stringify(this.lastRedoStep)!==JSON.stringify(b)&&this.redoStack.splice(0,this.redoStack.length))},G.prototype.replaceLastUndoStep=function(b){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=b)},G.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},G.prototype.undo=function(){if(this.undoStack.length>1){var b=this.undoStack.pop();return b!==void 0&&this.redoStack.push(b),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},G.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},G}(),xt=function(G){function b(L,V,J){var Q=G.call(this,L,V,J)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.curveX=0,Q.curveY=0,Q.manipulationStartCurveX=0,Q.manipulationStartCurveY=0,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.positionGrips=Q.positionGrips.bind(Q),Q.addControlGrips=Q.addControlGrips.bind(Q),Q.adjustVisual=Q.adjustVisual.bind(Q),Q.setupControlBox=Q.setupControlBox.bind(Q),Q.resize=Q.resize.bind(Q),Q.strokeColor=J.defaultColor,Q.strokeWidth=J.defaultStrokeWidth,Q.strokeDasharray=J.defaultStrokeDasharray,Q.strokePanel=new Ke("Line color",J.defaultColorSet,J.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new At("Line width",J.defaultStrokeWidths,J.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new wt("Line style",J.defaultStrokeDasharrays,J.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return Ue(b,G),b.prototype.ownsTarget=function(L){return!(!G.prototype.ownsTarget.call(this,L)&&L!==this.visual&&L!==this.selectorCurve&&L!==this.visibleCurve&&!this.curveGrip.ownsTarget(L))},b.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},b.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},b.prototype.pointerDown=function(L,V){G.prototype.pointerDown.call(this,L,V),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=L.x,this.curveY=L.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(V)&&(this.activeGrip=this.curveGrip,this._state="resize")},b.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},b.prototype.setupControlBox=function(){G.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},b.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,G.prototype.addControlGrips.call(this)},b.prototype.positionGrips=function(){G.prototype.positionGrips.call(this);var L=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-L/2,this.curveY-L/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},b.prototype.manipulate=function(L){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+L.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+L.y-this.manipulationStartY),G.prototype.manipulate.call(this,L)},b.prototype.resize=function(L){this.activeGrip===this.curveGrip&&(this.curveX=L.x,this.curveY=L.y),G.prototype.resize.call(this,L),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},b.prototype.setStrokeColor=function(L){this.strokeColor=L,this.adjustVisual(),this.colorChanged(L)},b.prototype.setStrokeWidth=function(L){this.strokeWidth=L,this.adjustVisual()},b.prototype.setStrokeDasharray=function(L){this.strokeDasharray=L,this.adjustVisual()},b.prototype.scale=function(L,V){this.curveX=this.curveX*L,this.curveY=this.curveY*V,G.prototype.scale.call(this,L,V)},Object.defineProperty(b.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),b.prototype.getState=function(){var L=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},G.prototype.getState.call(this));return L.typeName=b.typeName,L},b.prototype.restoreState=function(L){G.prototype.restoreState.call(this,L);var V=L;this.strokeColor=V.strokeColor,this.strokeWidth=V.strokeWidth,this.strokeDasharray=V.strokeDasharray,this.curveX=V.curveX,this.curveY=V.curveY,this.createVisual(),this.adjustVisual()},b.typeName="CurveMarker",b.title="Curve marker",b.icon='',b}(Je),gt=function(){function G(b,L){L===void 0&&(L=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=b,this.cancelable=L}return Object.defineProperty(G.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),G.prototype.preventDefault=function(){this._defaultPrevented=!0},G}(),qe=function(G){function b(L,V,J){var Q=G.call(this,L,!1)||this;return Q.dataUrl=V,Q.state=J,Q}return Ue(b,G),b}(gt),Xe=function(G){function b(L,V,J){J===void 0&&(J=!1);var Q=G.call(this,L,J)||this;return Q.marker=V,Q}return Ue(b,G),b}(gt),Pe=function(){function G(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return G.prototype.addEventListener=function(b,L){this[b].push(L)},G.prototype.removeEventListener=function(b,L){var V=this[b].indexOf(L);V>-1&&this[b].splice(V,1)},G}(),se=function(){function G(b){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new we,this._isOpen=!1,this.undoRedoManager=new Tt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Pe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=G.instanceCounter++,this.styles=new Le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=b,this.targetRoot=document.body,this.width=b.clientWidth,this.height=b.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(G.prototype,"ALL_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,bt,Ie,ce,Be,ut,re,st,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,Ie,ce,Be]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Oe,Te,be,nt,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(b){var L=this;this._availableMarkerTypes.splice(0),b.forEach(function(V){if(typeof V=="string"){var J=L.ALL_MARKER_TYPES.find(function(Q){return Q.typeName===V});J!==void 0&&L._availableMarkerTypes.push(J)}else L._availableMarkerTypes.push(V)})},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(b){this._zoomLevel=b,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),te.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},G.prototype.show=function(){var b=this;this.styles.styleSheetRoot===void 0&&ue.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ue.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(L){return L(new gt(b))})},G.prototype.render=function(){return _e(this,void 0,void 0,function(){var b;return je(this,function(L){switch(L.label){case 0:return this.setCurrentMarker(),(b=new ye).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.markersOnly=this.renderMarkersOnly,b.width=this.renderWidth,b.height=this.renderHeight,[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return L.sent(),[4,b.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,L.sent()]}})})},G.prototype.close=function(b){var L=this;if(b===void 0&&(b=!1),this.isOpen){var V=!1;b||this.eventListeners.beforeclose.forEach(function(J){var Q=new gt(L,!0);J(Q),Q.defaultPrevented&&(V=!0)}),V||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(J){return J(new gt(L))}),this.detachEvents(),this._isOpen=!1)}},G.prototype.addMarkersToToolbar=function(){for(var b,L=[],V=0;Vthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*b:this.editorCanvas.clientWidth,V=L',b.title="Powered by marker.js",b.style.display="grid",b.style.alignItems="center",b.style.justifyItems="center",b.style.padding="3px",b.style.width="20px",b.style.height="20px",this.logoUI.appendChild(b),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},G.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},G.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},G.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},G.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Se(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(b),1),b.dispose()},G.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},G.prototype.toolbarButtonClicked=function(b,L){if(b==="marker"&&L!==void 0)this.createNewMarker(L);else if(b==="action")switch(L){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},G.prototype.deleteSelectedMarker=function(){var b=this;if(this._currentMarker!==void 0){var L=!1;if(this.eventListeners.markerbeforedelete.forEach(function(J){var Q=new Xe(b,b._currentMarker,!0);J(Q),Q.defaultPrevented&&(L=!0)}),!L){var V=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(J){return J(new Xe(b,V))})}}},G.prototype.clear=function(){var b=this,L=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(De){var ot=new Xe(b,void 0,!0);De(ot),ot.defaultPrevented&&(L=!0)}),!L)){this.setCurrentMarker();for(var V=function(De){var ot=J.markers[De];J.setCurrentMarker(J.markers[De]),J._currentMarker.dispose(),J.markerImage.removeChild(J._currentMarker.container),J.markers.splice(J.markers.indexOf(J._currentMarker),1),J.eventListeners.markerdelete.forEach(function(Ot){return Ot(new Xe(b,ot))})},J=this,Q=this.markers.length-1;Q>=0;Q--)V(Q);this.addUndoStep()}},Object.defineProperty(G.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),G.prototype.showNotesEditor=function(){var b;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(b=this._currentMarker.notes)!==null&&b!==void 0?b:"",this.overlayContainer.appendChild(this.notesArea))},G.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},G.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},G.prototype.addUndoStep=function(){var b=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var L=this.getState(),V=this.undoRedoManager.getLastUndoStep();if(!V||V.width===L.width&&V.height===L.height){var J=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(L),J1&&this.panTo({x:b.clientX,y:b.clientY}))},G.prototype.onPointerUp=function(b){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(b.clientX,b.clientY)),this.isDragging=!1,this.addUndoStep()},G.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},G.prototype.onKeyUp=function(b){this._currentMarker===void 0||this.notesArea!==void 0||b.key!=="Delete"&&b.key!=="Backspace"||this.deleteSelectedMarker()},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.markerImage.getBoundingClientRect();return{x:(b-V.left)/this.zoomLevel,y:(L-V.top)/this.zoomLevel}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var b=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},G.prototype.addLicenseKey=function(b){te.addKey(b)},G.prototype.addEventListener=function(b,L){this.eventListeners.addEventListener(b,L)},G.prototype.removeEventListener=function(b,L){this.eventListeners.removeEventListener(b,L)},G.prototype.renderState=function(b){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(b),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(G.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),G.prototype.focus=function(){var b=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(L){return L(new gt(b))}))},G.prototype.blur=function(){var b=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(L){return L(new gt(b))}))},G.instanceCounter=0,G}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -148,7 +148,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var fe=function(G,b){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,V){L.__proto__=V}||function(L,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&(L[J]=V[J])})(G,b)};function $e(G,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function L(){this.constructor=G}fe(G,b),G.prototype=b===null?Object.create(b):(L.prototype=b.prototype,new L)}function Pe(G,b,L,V){return new(L||(L=Promise))(function(J,Q){function De(Ft){try{Ot(V.next(Ft))}catch(ve){Q(ve)}}function ot(Ft){try{Ot(V.throw(Ft))}catch(ve){Q(ve)}}function Ot(Ft){var ve;Ft.done?J(Ft.value):(ve=Ft.value,ve instanceof L?ve:new L(function(Gt){Gt(ve)})).then(De,ot)}Ot((V=V.apply(G,b||[])).next())})}function it(G,b){var L,V,J,Q,De={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return Q={next:ot(0),throw:ot(1),return:ot(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ot(Ot){return function(Ft){return function(ve){if(L)throw new TypeError("Generator is already executing.");for(;De;)try{if(L=1,V&&(J=2&ve[0]?V.return:ve[0]?V.throw||((J=V.return)&&J.call(V),0):V.next)&&!(J=J.call(V,ve[1])).done)return J;switch(V=0,J&&(ve=[2&ve[0],J.value]),ve[0]){case 0:case 1:J=ve;break;case 4:return De.label++,{value:ve[1],done:!1};case 5:De.label++,V=ve[1],ve=[0];continue;case 7:ve=De.ops.pop(),De.trys.pop();continue;default:if(!(J=De.trys,(J=J.length>0&&J[J.length-1])||ve[0]!==6&&ve[0]!==2)){De=0;continue}if(ve[0]===3&&(!J||ve[1]>J[0]&&ve[1]0&&J[J.length-1])||ve[0]!==6&&ve[0]!==2)){De=0;continue}if(ve[0]===3&&(!J||ve[1]>J[0]&&ve[1]0&&L>0){var V=new ln(b,L),J=V.ratio>=1?20:V.getHorizontalLength(20),Q=V.ratio<1?20:V.getVerticalLength(20),De=document.createElementNS("http://www.w3.org/2000/svg","svg");De.setAttribute("xmlns","http://www.w3.org/2000/svg"),De.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(De);var ot=Ne.createDefs();De.appendChild(ot);var Ot=Ne.createElement("clipPath",[["id","text-bg-clip"]]);ot.appendChild(Ot);var Ft=Ne.createPath(Ne.getHollowRectanglePath((24-J)/2,(24-Q)/2,J,Q,(24-J)/2+2,(24-Q)/2+2,J-4,Q-4));De.appendChild(Ft);var ve=Ne.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);ve.appendChild(Ne.createTSpan(b+":"+L)),De.appendChild(ve);var Gt=ve.getBBox();Ne.setAttributes(ve,[["x",((24-Gt.width)/2).toString()],["y",((24-Gt.height)/2-Gt.y).toString()]]);var en=Ne.createPath(Ne.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Gt.width))/2,(24-Math.ceil(Gt.height))/2,Math.ceil(Gt.width),Math.ceil(Gt.height)));return Ot.appendChild(en),Ne.setAttributes(Ft,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(De),De.outerHTML}return''},G}(),Yt=function(G){function b(L,V,J){var Q=G.call(this,L,V)||this;return Q.isDropdownOpen=!1,Q.onClick=Q.dropdownButtonClicked,Q.dropdownButtons=J,Q}return $e(b,G),b.prototype.setupDropdown=function(){var L=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(V){V.className=L.className,V.colorsClassName=L.colorsClassName,L.dropdownBlock.appendChild(V.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},b.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},b.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},b.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},b.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},b.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},b}(Qt),Mt=function(){function G(b,L){this.GRIP_SIZE=10,this.color=b,this.fillColor=L,this.visual=Ne.createGroup(),this.visual.appendChild(Ne.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ne.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return G.prototype.ownsTarget=function(b){return b===this.visual||b===this.visual.childNodes[0]||b===this.visual.childNodes[1]},G.prototype.setCenter=function(b,L){this.visual.childNodes.forEach(function(V){return Ne.setAttributes(V,[["cx",b.toString()],["cy",L.toString()]])})},G}(),tn=function(){function G(b,L,V,J){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=b,this.canvasHeight=L,this.margin=V,this.container=J,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(G.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(b){this._aspectRatio=b,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.gridContainer&&Ne.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(b){this._zoomFactor=b,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),G.prototype.open=function(){var b=this;this.cropShadeElement=Ne.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ne.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var L=0;Lthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-L.height/2),Ne.setAttributes(this.cropRectElement,[["x",L.x.toString()],["y",L.y.toString()],["width",L.width.toString()],["height",L.height.toString()]]);var V=L.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Q,De){var ot=L.y+V*(De+1);Ne.setAttributes(Q,[["x1",""+L.x],["y1",""+ot],["x2",""+(L.x+L.width)],["y2",""+ot]])});var J=L.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Q,De){var ot=L.x+J*(De+1);Ne.setAttributes(Q,[["x1",""+ot],["y1",""+L.y],["x2",""+ot],["y2",""+(L.y+L.height)]])}),Ne.setAttributes(this.cropShadeElement,[["d",Ne.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,L.x,L.y,L.width,L.height)]]),this.topLeftGrip.setCenter(L.x,L.y),this.topRightGrip.setCenter(L.x+L.width,L.y),this.bottomLeftGrip.setCenter(L.x,L.y+L.height),this.bottomRightGrip.setCenter(L.x+L.width,L.y+L.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},G.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.container.getBoundingClientRect();return{x:b-V.left+this.margin,y:L-V.top+this.margin}},G.prototype.onPointerDown=function(b){this.container.setPointerCapture(b.pointerId),this.previousPoint=this.clientToLocalCoordinates(b.clientX,b.clientY),this.cropRectElement===b.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(b.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(b.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(b.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(b.target)&&(this.activeGrip=this.bottomRightGrip)},G.prototype.onPointerMove=function(b){if(this.isMoving)this.move(this.clientToLocalCoordinates(b.clientX,b.clientY));else if(this.activeGrip){var L=this.clientToLocalCoordinates(b.clientX,b.clientY);this.resize(L)}b.preventDefault()},G.prototype.onPointerUp=function(b){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(b.pointerId)},G.prototype.move=function(b){var L=b.x-this.previousPoint.x,V=b.y-this.previousPoint.y;this.zoomFactor!==1&&(L=-L/this.zoomFactor,V=-V/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+L),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+V),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=b},G.prototype.resize=function(b){var L=Object.assign({},this.cropRect),V=b.x-this.previousPoint.x,J=b.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:L.x+Vthis.canvasWidth*this.zoomFactor&&(V=this.canvasWidth*this.zoomFactor-L.width),L.width+=V}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(L.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(V),L.height=this.aspectRatio.getVerticalLength(L.width)):(L.y+=J,L.height=this.cropRect.y+this.cropRect.height-L.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?L.height=this.aspectRatio.getVerticalLength(L.width):L.height+=J}L.width<10&&(L.x=this.cropRect.x,L.width=10),L.height<10&&(L.y=this.cropRect.y,L.height=10),this.previousPoint=b,L.x>=this.margin&&L.y>=this.margin&&L.x-this.margin+L.width<=this.canvasWidth&&L.y-this.margin+L.height<=this.canvasHeight&&(this.cropRect=L,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},G.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var b=this.cropRect.x+this.cropRect.width/2,L=this.cropRect.y+this.cropRect.height/2,V=this.aspectRatio.getHorizontalLength(this.cropRect.height),J=this.aspectRatio.getVerticalLength(this.cropRect.width);V/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=b-this.cropRect.width/2,this.cropRect.y=L-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},G.prototype.getRescaledRect=function(b,L,V,J,Q,De){var ot=V/b,Ot=J/L;return{x:(Q.x-De)*ot+De,y:(Q.y-De)*Ot+De,width:Q.width*ot,height:Q.height*Ot}},G.prototype.scaleCanvas=function(b,L){var V=this.getRescaledRect(this.canvasWidth,this.canvasHeight,b,L,this.cropRect,this.margin);this.canvasWidth=b,this.canvasHeight=L,this.onCropChange&&this.onCropChange(V),this.setCropRectangle(V)},G}(),mn=function(){function G(b){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=b,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(G.prototype,"angle",{get:function(){return this._angle},set:function(b){this._angle=b,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),G.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},G.prototype.onPointerDown=function(b){this.controlContainer.setPointerCapture(b.pointerId),this.isDragging=!0,this.previousPoint={x:b.clientX,y:b.clientY}},G.prototype.onPointerMove=function(b){this.isDragging&&(this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.previousPoint.x=b.clientX)},G.prototype.onPointerUp=function(b){this.isDragging&&this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(b.pointerId)},G.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var b=this.angleLabelText.getBBox();Ne.setAttributes(this.angleLabelElement,[["x",((this.width-b.width)/2).toString()],["y",(this.height/2).toString()]])}},G.prototype.positionScaleShape=function(){if(this.scaleShape){var b=this.scaleShape.transform.baseVal.getItem(0);b.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(b,0)}},G.prototype.getVisual=function(){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("xmlns","http://www.w3.org/2000/svg"),b.setAttribute("width",this.width+"px"),b.setAttribute("height",this.height+"px"),b.setAttribute("viewBox","0 0 "+this.width+" "+this.height),b.style.flexShrink="0",document.body.appendChild(b);for(var L="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,V=1;V<=this.width/5+10;V++){var J=V%5==0?this.height/3:this.height/6;L+="h4v"+-J+"h1v"+J}L+="v1H0Z",this.scaleShape=Ne.createPath(L);var Q=Ne.createTransform();this.scaleShape.transform.baseVal.appendItem(Q),b.appendChild(this.scaleShape),this.angleLabelElement=Ne.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ne.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var De=Ne.createTSpan("");return De.innerHTML="°",this.angleLabelElement.appendChild(De),b.appendChild(this.angleLabelElement),document.body.removeChild(b),b},G}(),An=function(){function G(){this.naturalSize=!1,this.imageType="image/png"}return G.prototype.rasterize=function(b,L,V,J,Q,De,ot){var Ot=this;return new Promise(function(Ft){var ve=document.createElement("canvas");ve.width=b.width.baseVal.value-2*J,ve.height=b.height.baseVal.value-2*J;var Gt=1,en=1;Ot.naturalSize===!0?(Gt=L.naturalWidth/(b.width.baseVal.value-2*J)/De,en=L.naturalHeight/(b.height.baseVal.value-2*J)/ot,ve.width=L.naturalWidth/De,ve.height=L.naturalHeight/ot):Ot.width!==void 0&&Ot.height!==void 0&&(Gt=Ot.width/V.width,en=Ot.height/V.height,ve.width*=Gt,ve.height*=en);var Tn=ve.getContext("2d");Tn.translate(ve.width/2,ve.height/2),Tn.rotate(Q*Math.PI/180),Tn.scale(De,ot),Tn.translate(-ve.width/2,-ve.height/2),Tn.drawImage(L,0,0,ve.width,ve.height);var Wn=document.createElement("canvas");Wn.width=V.width*Gt,Wn.height=V.height*en,Wn.getContext("2d").putImageData(Tn.getImageData((V.x-J)*Gt,(V.y-J)*en,V.width*Gt,V.height*en),0,0),Ft(Wn.toDataURL(Ot.imageType,Ot.imageQuality))})},G}(),lt=function(){function G(b){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=G.instanceCounter++,this.styles=new Ve(this.instanceNo),this.target=b,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(b){this._zoomToCropEnabled=b,b?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"gridLines",{get:function(){return this._gridLines},set:function(b){this._gridLines=b,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(b){this._rotationAngle=b,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"aspectRatio",{get:function(){var b;return(b=this._aspectRatio)!==null&&b!==void 0?b:this.aspectRatios[0]},set:function(b){this._aspectRatio=b},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},G.prototype.show=function(){this.showUI(),this.open()},G.prototype.close=function(b){b===void 0&&(b=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),b||this.closeEventListeners.forEach(function(L){return L()}),this._isOpen=!1)},G.prototype.addRenderEventListener=function(b){this.renderEventListeners.push(b)},G.prototype.removeRenderEventListener=function(b){this.renderEventListeners.indexOf(b)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(b),1)},G.prototype.addCloseEventListener=function(b){this.closeEventListeners.push(b)},G.prototype.removeCloseEventListener=function(b){this.closeEventListeners.indexOf(b)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(b),1)},G.prototype.setupResizeObserver=function(){var b=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){b.resize(b.target.clientWidth,b.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},G.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var b=1*this.target.clientWidth/this.target.clientHeight,L=this.contentDiv.clientWidth/b>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*b:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,V=L+2*this.CANVAS_MARGINb+this.CANVAS_MARGIN?this.target.offsetTop-(b+this.CANVAS_MARGIN):0;this.coverDiv.style.top=L+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},G.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},G.prototype.addTopToolbar=function(){var b=this;this.topToolbar=new Ct,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(L);var V=[];this.aspectRatios.forEach(function(en){var Tn=new Qt(Bt.getIcon(en.horizontal,en.vertical),en.horizontal===0&&en.vertical===0?"FREE":en.horizontal+":"+en.vertical);Tn.onClick=function(){return b.ratioButtonClicked(en)},V.push(Tn)}),this.aspectRatioButton=new Yt(Bt.getIcon(0,0),"Aspect ratio",V),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,L.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var J=new Qt('',"Toggle grid");J.isActive=this.isGridVisible,J.onClick=function(){b.isGridVisible=!b.isGridVisible,J.isActive=b.isGridVisible},L.addButton(J);var Q=new Qt('',"Zoom to selection");if(Q.isActive=this.zoomToCropEnabled,Q.onClick=function(){b.zoomToCropEnabled=!b.zoomToCropEnabled,Q.isActive=b.zoomToCropEnabled},L.addButton(Q),!at.isLicensed){var De=new St;this.topToolbar.addElementBlock(De);var ot=document.createElement("div");ot.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Ot=document.createElement("a");Ot.style.color="currentColor",Ot.href="https://markerjs.com/products/cropro",Ot.target="_blank",Ot.innerHTML='',ot.appendChild(Ot),De.addElement(ot)}var Ft=new qt;Ft.minWidth=3*this.toolbarHeight+"px",Ft.contentAlign="end",this.topToolbar.addButtonBlock(Ft);var ve=new Qt('',"OK");ve.onClick=this.startRenderAndClose,Ft.addButton(ve),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(ve.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Gt=new Qt('',"Close");Gt.onClick=this.close,Ft.addButton(Gt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Gt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},G.prototype.addBottomToolbar=function(){var b=this;this.bottomToolbar=new Ct,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(L);var V=new Qt('',"Rotate left");V.onClick=this.rotateLeftButtonClicked,L.addButton(V);var J=new Qt('',"Rotate right");J.onClick=this.rotateRightButtonClicked,L.addButton(J);var Q=new St;Q.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Q),this.straightener=new mn("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Ft){b.rotateBy(Ft),b.straightener.angle=b.rotationAngle},Q.addElement(this.straightener.getUI());var De=new qt;De.minWidth=2*this.toolbarHeight+"px",De.contentAlign="end",this.bottomToolbar.addButtonBlock(De);var ot=new Qt('',"Flip horizontal");ot.onClick=this.flipHorizontallyButtonClicked,De.addButton(ot);var Ot=new Qt('',"Flip vertical");Ot.onClick=this.flipVerticallyButtonClicked,De.addButton(Ot)},G.prototype.ratioButtonClicked=function(b){this.aspectRatio=b,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},G.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Bt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},G.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new ln(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},G.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},G.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},G.prototype.restoreState=function(b){if(b){var L=this.cropLayer.getRescaledRect(b.width,b.height,this.imageWidth,this.imageHeight,b.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(L),this.cropRectChanged(L),this.flippedHorizontally=b.flippedHorizontally,this.flippedVertically=b.flippedVertically,this.applyFlip(),this.rotationAngle=b.rotationAngle,this.applyRotation()}},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.cropImage.getBoundingClientRect();return{x:b-V.left,y:L-V.top}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var b=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},G.prototype.rotateLeftButtonClicked=function(){var b=this.rotationAngle-90;this.rotationAngle%90!=0&&(b+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateRightButtonClicked=function(){var b=this.rotationAngle+90;this.rotationAngle%90!=0&&(b-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateTo=function(b){b=(b=b>180?b-360:b)<=-180?b+360:b,this.rotationAngle=b,this.applyRotation()},G.prototype.rotateBy=function(b){this.rotateTo((this.rotationAngle+b)%360)},G.prototype.applyRotation=function(){var b=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var L=this.editingTargetRotationContainer.transform.baseVal.getItem(0);L.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(L,0);var V=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/V.width,this.imageHeight/V.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=b},G.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},G.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},G.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},G.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var b,L;return it(this,function(V){switch(V.label){case 0:return[4,this.render()];case 1:return b=V.sent(),L=this.getState(),this.renderEventListeners.forEach(function(J){return J(b,L)}),this.close(!0),[2]}})})},G.prototype.render=function(){return Pe(this,void 0,void 0,function(){var b;return it(this,function(L){switch(L.label){case 0:return(b=new An).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.width=this.renderWidth,b.height=this.renderHeight,this.unzoomFromCrop(),Ne.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return L.sent(),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,L.sent()]}})})},G.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ft("toolbar",` + `))},G.prototype.removeStyleSheet=function(){var b;this.styleSheet&&(((b=this.styleSheetRoot)!==null&&b!==void 0?b:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},G}(),tt=function(G,b){this.selector=G,this.style=b},ft=function(G,b){this.localName=G,this.style=b},Ct=function(){function G(){this.blocks=[],this.display=""}return G.prototype.addButtonBlock=function(b){b.className=this.blockClassName,b.buttonClassName=this.buttonClassName,b.buttonColorsClassName=this.buttonColorsClassName,b.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(b)},G.prototype.addElementBlock=function(b){b.className===void 0&&(b.className=this.blockClassName),this.blocks.push(b)},G.prototype.getUI=function(){var b=document.createElement("div");return b.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,b.style.display=this.display,this.blocks.forEach(function(L){return b.appendChild(L.getUI())}),b},G}(),zt=function(){function G(){}return G.prototype.getUI=function(){var b=document.createElement("div");if(b.className=this.className,this.minWidth!==void 0&&(b.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":b.style.justifyContent="flex-start";break;case"center":b.style.justifyContent="center";break;case"end":b.style.justifyContent="flex-end"}return b.style.whiteSpace="nowrap",b},G}(),qt=function(G){function b(){var L=G!==null&&G.apply(this,arguments)||this;return L.buttons=[],L}return $e(b,G),b.prototype.addButton=function(L){L.className=this.buttonClassName,L.colorsClassName=this.buttonColorsClassName,L.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(L)},b.prototype.getUI=function(){var L=G.prototype.getUI.call(this);return this.buttons.forEach(function(V){return L.appendChild(V.getUI())}),L},b}(zt),Qt=function(){function G(b,L){this._isActive=!1,this._isHidden=!1,this._icon=b,this.title=L,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(G.prototype,"icon",{get:function(){return this._icon},set:function(b){this._icon=b,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isActive",{get:function(){return this._isActive},set:function(b){this._isActive=b,this.adjustClassName()},enumerable:!1,configurable:!0}),G.prototype.getUI=function(){var b=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return b.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},G.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},G.prototype.hide=function(){this._isHidden=!0},G}(),St=function(G){function b(){var L=G!==null&&G.apply(this,arguments)||this;return L.elements=[],L}return $e(b,G),b.prototype.addElement=function(L){this.elements.push(L)},b.prototype.getUI=function(){var L=G.prototype.getUI.call(this);return this.elements.forEach(function(V){return L.appendChild(V)}),L},b}(zt),ln=function(){function G(b,L){this.horizontal=b,this.vertical=L}return Object.defineProperty(G.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),G.prototype.getVerticalLength=function(b){return b/this.ratio},G.prototype.getHorizontalLength=function(b){return b*this.ratio},G}(),Bt=function(){function G(){}return G.getIcon=function(b,L){if(b>0&&L>0){var V=new ln(b,L),J=V.ratio>=1?20:V.getHorizontalLength(20),Q=V.ratio<1?20:V.getVerticalLength(20),De=document.createElementNS("http://www.w3.org/2000/svg","svg");De.setAttribute("xmlns","http://www.w3.org/2000/svg"),De.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(De);var ot=Ne.createDefs();De.appendChild(ot);var Ot=Ne.createElement("clipPath",[["id","text-bg-clip"]]);ot.appendChild(Ot);var Ft=Ne.createPath(Ne.getHollowRectanglePath((24-J)/2,(24-Q)/2,J,Q,(24-J)/2+2,(24-Q)/2+2,J-4,Q-4));De.appendChild(Ft);var ve=Ne.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);ve.appendChild(Ne.createTSpan(b+":"+L)),De.appendChild(ve);var Gt=ve.getBBox();Ne.setAttributes(ve,[["x",((24-Gt.width)/2).toString()],["y",((24-Gt.height)/2-Gt.y).toString()]]);var en=Ne.createPath(Ne.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Gt.width))/2,(24-Math.ceil(Gt.height))/2,Math.ceil(Gt.width),Math.ceil(Gt.height)));return Ot.appendChild(en),Ne.setAttributes(Ft,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(De),De.outerHTML}return''},G}(),Yt=function(G){function b(L,V,J){var Q=G.call(this,L,V)||this;return Q.isDropdownOpen=!1,Q.onClick=Q.dropdownButtonClicked,Q.dropdownButtons=J,Q}return $e(b,G),b.prototype.setupDropdown=function(){var L=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(V){V.className=L.className,V.colorsClassName=L.colorsClassName,L.dropdownBlock.appendChild(V.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},b.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},b.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},b.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},b.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},b.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},b}(Qt),Mt=function(){function G(b,L){this.GRIP_SIZE=10,this.color=b,this.fillColor=L,this.visual=Ne.createGroup(),this.visual.appendChild(Ne.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ne.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return G.prototype.ownsTarget=function(b){return b===this.visual||b===this.visual.childNodes[0]||b===this.visual.childNodes[1]},G.prototype.setCenter=function(b,L){this.visual.childNodes.forEach(function(V){return Ne.setAttributes(V,[["cx",b.toString()],["cy",L.toString()]])})},G}(),tn=function(){function G(b,L,V,J){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=b,this.canvasHeight=L,this.margin=V,this.container=J,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(G.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(b){this._aspectRatio=b,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.gridContainer&&Ne.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(b){this._zoomFactor=b,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),G.prototype.open=function(){var b=this;this.cropShadeElement=Ne.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ne.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var L=0;Lthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-L.height/2),Ne.setAttributes(this.cropRectElement,[["x",L.x.toString()],["y",L.y.toString()],["width",L.width.toString()],["height",L.height.toString()]]);var V=L.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Q,De){var ot=L.y+V*(De+1);Ne.setAttributes(Q,[["x1",""+L.x],["y1",""+ot],["x2",""+(L.x+L.width)],["y2",""+ot]])});var J=L.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Q,De){var ot=L.x+J*(De+1);Ne.setAttributes(Q,[["x1",""+ot],["y1",""+L.y],["x2",""+ot],["y2",""+(L.y+L.height)]])}),Ne.setAttributes(this.cropShadeElement,[["d",Ne.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,L.x,L.y,L.width,L.height)]]),this.topLeftGrip.setCenter(L.x,L.y),this.topRightGrip.setCenter(L.x+L.width,L.y),this.bottomLeftGrip.setCenter(L.x,L.y+L.height),this.bottomRightGrip.setCenter(L.x+L.width,L.y+L.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},G.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.container.getBoundingClientRect();return{x:b-V.left+this.margin,y:L-V.top+this.margin}},G.prototype.onPointerDown=function(b){this.container.setPointerCapture(b.pointerId),this.previousPoint=this.clientToLocalCoordinates(b.clientX,b.clientY),this.cropRectElement===b.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(b.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(b.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(b.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(b.target)&&(this.activeGrip=this.bottomRightGrip)},G.prototype.onPointerMove=function(b){if(this.isMoving)this.move(this.clientToLocalCoordinates(b.clientX,b.clientY));else if(this.activeGrip){var L=this.clientToLocalCoordinates(b.clientX,b.clientY);this.resize(L)}b.preventDefault()},G.prototype.onPointerUp=function(b){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(b.pointerId)},G.prototype.move=function(b){var L=b.x-this.previousPoint.x,V=b.y-this.previousPoint.y;this.zoomFactor!==1&&(L=-L/this.zoomFactor,V=-V/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+L),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+V),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=b},G.prototype.resize=function(b){var L=Object.assign({},this.cropRect),V=b.x-this.previousPoint.x,J=b.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:L.x+Vthis.canvasWidth*this.zoomFactor&&(V=this.canvasWidth*this.zoomFactor-L.width),L.width+=V}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(L.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(V),L.height=this.aspectRatio.getVerticalLength(L.width)):(L.y+=J,L.height=this.cropRect.y+this.cropRect.height-L.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?L.height=this.aspectRatio.getVerticalLength(L.width):L.height+=J}L.width<10&&(L.x=this.cropRect.x,L.width=10),L.height<10&&(L.y=this.cropRect.y,L.height=10),this.previousPoint=b,L.x>=this.margin&&L.y>=this.margin&&L.x-this.margin+L.width<=this.canvasWidth&&L.y-this.margin+L.height<=this.canvasHeight&&(this.cropRect=L,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},G.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var b=this.cropRect.x+this.cropRect.width/2,L=this.cropRect.y+this.cropRect.height/2,V=this.aspectRatio.getHorizontalLength(this.cropRect.height),J=this.aspectRatio.getVerticalLength(this.cropRect.width);V/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=b-this.cropRect.width/2,this.cropRect.y=L-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},G.prototype.getRescaledRect=function(b,L,V,J,Q,De){var ot=V/b,Ot=J/L;return{x:(Q.x-De)*ot+De,y:(Q.y-De)*Ot+De,width:Q.width*ot,height:Q.height*Ot}},G.prototype.scaleCanvas=function(b,L){var V=this.getRescaledRect(this.canvasWidth,this.canvasHeight,b,L,this.cropRect,this.margin);this.canvasWidth=b,this.canvasHeight=L,this.onCropChange&&this.onCropChange(V),this.setCropRectangle(V)},G}(),mn=function(){function G(b){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=b,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(G.prototype,"angle",{get:function(){return this._angle},set:function(b){this._angle=b,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),G.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},G.prototype.onPointerDown=function(b){this.controlContainer.setPointerCapture(b.pointerId),this.isDragging=!0,this.previousPoint={x:b.clientX,y:b.clientY}},G.prototype.onPointerMove=function(b){this.isDragging&&(this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.previousPoint.x=b.clientX)},G.prototype.onPointerUp=function(b){this.isDragging&&this.onAngleChange&&this.onAngleChange((b.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(b.pointerId)},G.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var b=this.angleLabelText.getBBox();Ne.setAttributes(this.angleLabelElement,[["x",((this.width-b.width)/2).toString()],["y",(this.height/2).toString()]])}},G.prototype.positionScaleShape=function(){if(this.scaleShape){var b=this.scaleShape.transform.baseVal.getItem(0);b.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(b,0)}},G.prototype.getVisual=function(){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("xmlns","http://www.w3.org/2000/svg"),b.setAttribute("width",this.width+"px"),b.setAttribute("height",this.height+"px"),b.setAttribute("viewBox","0 0 "+this.width+" "+this.height),b.style.flexShrink="0",document.body.appendChild(b);for(var L="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,V=1;V<=this.width/5+10;V++){var J=V%5==0?this.height/3:this.height/6;L+="h4v"+-J+"h1v"+J}L+="v1H0Z",this.scaleShape=Ne.createPath(L);var Q=Ne.createTransform();this.scaleShape.transform.baseVal.appendItem(Q),b.appendChild(this.scaleShape),this.angleLabelElement=Ne.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ne.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var De=Ne.createTSpan("");return De.innerHTML="°",this.angleLabelElement.appendChild(De),b.appendChild(this.angleLabelElement),document.body.removeChild(b),b},G}(),An=function(){function G(){this.naturalSize=!1,this.imageType="image/png"}return G.prototype.rasterize=function(b,L,V,J,Q,De,ot){var Ot=this;return new Promise(function(Ft){var ve=document.createElement("canvas");ve.width=b.width.baseVal.value-2*J,ve.height=b.height.baseVal.value-2*J;var Gt=1,en=1;Ot.naturalSize===!0?(Gt=L.naturalWidth/(b.width.baseVal.value-2*J)/De,en=L.naturalHeight/(b.height.baseVal.value-2*J)/ot,ve.width=L.naturalWidth/De,ve.height=L.naturalHeight/ot):Ot.width!==void 0&&Ot.height!==void 0&&(Gt=Ot.width/V.width,en=Ot.height/V.height,ve.width*=Gt,ve.height*=en);var Tn=ve.getContext("2d");Tn.translate(ve.width/2,ve.height/2),Tn.rotate(Q*Math.PI/180),Tn.scale(De,ot),Tn.translate(-ve.width/2,-ve.height/2),Tn.drawImage(L,0,0,ve.width,ve.height);var Wn=document.createElement("canvas");Wn.width=V.width*Gt,Wn.height=V.height*en,Wn.getContext("2d").putImageData(Tn.getImageData((V.x-J)*Gt,(V.y-J)*en,V.width*Gt,V.height*en),0,0),Ft(Wn.toDataURL(Ot.imageType,Ot.imageQuality))})},G}(),lt=function(){function G(b){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=G.instanceCounter++,this.styles=new Ve(this.instanceNo),this.target=b,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(G.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(b){this._zoomToCropEnabled=b,b?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(b){this._isGridVisible=b,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"gridLines",{get:function(){return this._gridLines},set:function(b){this._gridLines=b,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(b){this._rotationAngle=b,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"aspectRatio",{get:function(){var b;return(b=this._aspectRatio)!==null&&b!==void 0?b:this.aspectRatios[0]},set:function(b){this._aspectRatio=b},enumerable:!1,configurable:!0}),G.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},G.prototype.show=function(){this.showUI(),this.open()},G.prototype.close=function(b){b===void 0&&(b=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),b||this.closeEventListeners.forEach(function(L){return L()}),this._isOpen=!1)},G.prototype.addRenderEventListener=function(b){this.renderEventListeners.push(b)},G.prototype.removeRenderEventListener=function(b){this.renderEventListeners.indexOf(b)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(b),1)},G.prototype.addCloseEventListener=function(b){this.closeEventListeners.push(b)},G.prototype.removeCloseEventListener=function(b){this.closeEventListeners.indexOf(b)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(b),1)},G.prototype.setupResizeObserver=function(){var b=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){b.resize(b.target.clientWidth,b.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},G.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var b=1*this.target.clientWidth/this.target.clientHeight,L=this.contentDiv.clientWidth/b>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*b:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,V=L+2*this.CANVAS_MARGINb+this.CANVAS_MARGIN?this.target.offsetTop-(b+this.CANVAS_MARGIN):0;this.coverDiv.style.top=L+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},G.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},G.prototype.addTopToolbar=function(){var b=this;this.topToolbar=new Ct,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(L);var V=[];this.aspectRatios.forEach(function(en){var Tn=new Qt(Bt.getIcon(en.horizontal,en.vertical),en.horizontal===0&&en.vertical===0?"FREE":en.horizontal+":"+en.vertical);Tn.onClick=function(){return b.ratioButtonClicked(en)},V.push(Tn)}),this.aspectRatioButton=new Yt(Bt.getIcon(0,0),"Aspect ratio",V),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,L.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var J=new Qt('',"Toggle grid");J.isActive=this.isGridVisible,J.onClick=function(){b.isGridVisible=!b.isGridVisible,J.isActive=b.isGridVisible},L.addButton(J);var Q=new Qt('',"Zoom to selection");if(Q.isActive=this.zoomToCropEnabled,Q.onClick=function(){b.zoomToCropEnabled=!b.zoomToCropEnabled,Q.isActive=b.zoomToCropEnabled},L.addButton(Q),!at.isLicensed){var De=new St;this.topToolbar.addElementBlock(De);var ot=document.createElement("div");ot.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Ot=document.createElement("a");Ot.style.color="currentColor",Ot.href="https://markerjs.com/products/cropro",Ot.target="_blank",Ot.innerHTML='',ot.appendChild(Ot),De.addElement(ot)}var Ft=new qt;Ft.minWidth=3*this.toolbarHeight+"px",Ft.contentAlign="end",this.topToolbar.addButtonBlock(Ft);var ve=new Qt('',"OK");ve.onClick=this.startRenderAndClose,Ft.addButton(ve),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(ve.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Gt=new Qt('',"Close");Gt.onClick=this.close,Ft.addButton(Gt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Gt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},G.prototype.addBottomToolbar=function(){var b=this;this.bottomToolbar=new Ct,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var L=new qt;L.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(L);var V=new Qt('',"Rotate left");V.onClick=this.rotateLeftButtonClicked,L.addButton(V);var J=new Qt('',"Rotate right");J.onClick=this.rotateRightButtonClicked,L.addButton(J);var Q=new St;Q.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Q),this.straightener=new mn("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Ft){b.rotateBy(Ft),b.straightener.angle=b.rotationAngle},Q.addElement(this.straightener.getUI());var De=new qt;De.minWidth=2*this.toolbarHeight+"px",De.contentAlign="end",this.bottomToolbar.addButtonBlock(De);var ot=new Qt('',"Flip horizontal");ot.onClick=this.flipHorizontallyButtonClicked,De.addButton(ot);var Ot=new Qt('',"Flip vertical");Ot.onClick=this.flipVerticallyButtonClicked,De.addButton(Ot)},G.prototype.ratioButtonClicked=function(b){this.aspectRatio=b,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},G.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Bt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},G.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new ln(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},G.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},G.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},G.prototype.restoreState=function(b){if(b){var L=this.cropLayer.getRescaledRect(b.width,b.height,this.imageWidth,this.imageHeight,b.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(L),this.cropRectChanged(L),this.flippedHorizontally=b.flippedHorizontally,this.flippedVertically=b.flippedVertically,this.applyFlip(),this.rotationAngle=b.rotationAngle,this.applyRotation()}},G.prototype.clientToLocalCoordinates=function(b,L){var V=this.cropImage.getBoundingClientRect();return{x:b-V.left,y:L-V.top}},G.prototype.onWindowResize=function(){this.positionUI()},G.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var b=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=b+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},G.prototype.rotateLeftButtonClicked=function(){var b=this.rotationAngle-90;this.rotationAngle%90!=0&&(b+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateRightButtonClicked=function(){var b=this.rotationAngle+90;this.rotationAngle%90!=0&&(b-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(b)},G.prototype.rotateTo=function(b){b=(b=b>180?b-360:b)<=-180?b+360:b,this.rotationAngle=b,this.applyRotation()},G.prototype.rotateBy=function(b){this.rotateTo((this.rotationAngle+b)%360)},G.prototype.applyRotation=function(){var b=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var L=this.editingTargetRotationContainer.transform.baseVal.getItem(0);L.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(L,0);var V=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/V.width,this.imageHeight/V.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=b},G.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},G.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},G.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},G.prototype.startRenderAndClose=function(){return ke(this,void 0,void 0,function(){var b,L;return it(this,function(V){switch(V.label){case 0:return[4,this.render()];case 1:return b=V.sent(),L=this.getState(),this.renderEventListeners.forEach(function(J){return J(b,L)}),this.close(!0),[2]}})})},G.prototype.render=function(){return ke(this,void 0,void 0,function(){var b;return it(this,function(L){switch(L.label){case 0:return(b=new An).naturalSize=this.renderAtNaturalSize,b.imageType=this.renderImageType,b.imageQuality=this.renderImageQuality,b.width=this.renderWidth,b.height=this.renderHeight,this.unzoomFromCrop(),Ne.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return L.sent(),[4,b.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,L.sent()]}})})},G.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ft("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -231,20 +231,20 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new ft("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},G.instanceCounter=0,G}(),Rt=N("8hTe"),Jt=N.n(Rt),nn=/]*>/g;function un(G){var b=document.createElement("div");return b.innerHTML=G,b.childNodes.length===0?"":b.childNodes[0].nodeValue}var cn=de.a=function(G){var b=G.value,L=b===void 0?"":b,V=G.edit,J=V===void 0?!1:V,Q=G.className,De=G.showTextOnly,ot=G.showLines,Ot=G.replaces,Ft=G.zoomImg,ve=G.hasMask,Gt=G.style,en=Gt===void 0?{}:Gt,Tn=G.stylesPrev,Wn=Tn===void 0?{}:Tn,tr=String(L),Rn=Object(R.useRef)(),or=Object(R.useRef)(),fr=Object(R.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(R.useState)("office"),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=function(){var hn=new lt(or.current);hn.displayMode="popup",hn.addRenderEventListener(function(){var Pn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Rn.current.style.display="none",Bn.next=3,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln}});case 3:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 5:case"end":return Bn.stop()}},yn)}));return function(yn){return Pn.apply(this,arguments)}}()),hn.show()},Yr=function(){var hn=new se(or.current);hn.settings.displayMode="popup",hn.addEventListener("render",function(){var Pn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(Rn.current.style.display="none",!or.current){Bn.next=6;break}return Bn.next=4,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln.dataUrl}});case 4:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 6:case"end":return Bn.stop()}},yn)}));return function(yn){return Pn.apply(this,arguments)}}()),hn.show(),window.markerArea=hn},br=Object(R.useMemo)(function(){try{var Sn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,hn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Pn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;tr=tr.replace(Sn,"("+le.a.API_SERVER+"/api/attachments/").replace(hn,'"'+le.a.API_SERVER+"/api/attachments/").replace(Pn,'"'+le.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` + `))},G.instanceCounter=0,G}(),Rt=N("8hTe"),Jt=N.n(Rt),nn=/]*>/g;function un(G){var b=document.createElement("div");return b.innerHTML=G,b.childNodes.length===0?"":b.childNodes[0].nodeValue}var cn=de.a=function(G){var b=G.value,L=b===void 0?"":b,V=G.edit,J=V===void 0?!1:V,Q=G.className,De=G.showTextOnly,ot=G.showLines,Ot=G.replaces,Ft=G.zoomImg,ve=G.hasMask,Gt=G.style,en=Gt===void 0?{}:Gt,Tn=G.stylesPrev,Wn=Tn===void 0?{}:Tn,tr=String(L),Rn=Object(R.useRef)(),or=Object(R.useRef)(),fr=Object(R.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(R.useState)("office"),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=function(){var hn=new lt(or.current);hn.displayMode="popup",hn.addRenderEventListener(function(){var kn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Rn.current.style.display="none",Bn.next=3,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln}});case 3:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 5:case"end":return Bn.stop()}},yn)}));return function(yn){return kn.apply(this,arguments)}}()),hn.show()},Yr=function(){var hn=new se(or.current);hn.settings.displayMode="popup",hn.addEventListener("render",function(){var kn=Object(M.a)(_.a.mark(function yn(Ln){var bn;return _.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(Rn.current.style.display="none",!or.current){Bn.next=6;break}return Bn.next=4,Object(Ge.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ln.dataUrl}});case 4:bn=Bn.sent,bn!=null&&bn.id&&Ot(or.current.getAttribute("src").replace(le.a.API_SERVER,""),"/api/attachments/".concat(bn==null?void 0:bn.id,"?type=").concat(bn.content_type));case 6:case"end":return Bn.stop()}},yn)}));return function(yn){return kn.apply(this,arguments)}}()),hn.show(),window.markerArea=hn},br=Object(R.useMemo)(function(){try{var Sn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,hn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,kn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;tr=tr.replace(Sn,"("+le.a.API_SERVER+"/api/attachments/").replace(hn,'"'+le.a.API_SERVER+"/api/attachments/").replace(kn,'"'+le.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),tr=tr.replace(new RegExp("(?[TOC]

          ",O()),x()),yn=yn.replace(/(__special_katext_id_\d+__)/g,function(wr,Bn){var Qn=Ln[Bn],zr=Qn.type,jr=Qn.expression;return Object(pe.renderToString)(un(jr)||"",{displayMode:zr==="block",throwOnError:!1,output:"html"})}),yn=yn.replace(/▁/g,"\u2581\u2581\u2581"),T(),De){var bn=document.createElement("div");return bn.innerHTML=yn,bn.innerText}return setTimeout(function(){return _r()},500),yn},[tr]),nr=Object(R.useRef)();E.WebkitLineClamp=ot,ot&&(en=Object(B.a)(Object(B.a)({},en),E));function Ur(Sn){var hn=Sn.target;if(hn.tagName.toUpperCase()==="IMG"){if(Ft){var Pn=hn.getAttribute("src");Jn(Pn),yr("image")}}else if(hn.tagName.toUpperCase()==="A"){var yn=hn.getAttribute("href");if(yn.indexOf("office")>-1)Sn.preventDefault(),Jn(yn),yr("office");else if(yn.indexOf("application/pdf")>-1)Sn.preventDefault(),Jn(yn),yr("pdf");else if(yn.indexOf("type=text")>-1)Sn.preventDefault(),Jn(yn),yr("html");else if(yn.startsWith("#")){Sn.preventDefault();var Ln=document.getElementById(yn.replace("#",""));Ln&&Ln.scrollIntoView(!0)}}}var _r=function(){var hn,Pn=(hn=nr.current)===null||hn===void 0?void 0:hn.querySelectorAll("video");Pn==null||Pn.forEach(function(yn){if(yn.oncontextmenu=function(){return!1},yn.src.indexOf(".m3u8")>-1&&!yn.canPlayType("application/vnd.apple.mpegurl")){if(q.a.isSupported()){var Ln=new q.a;Ln.loadSource(yn.src),Ln.attachMedia(yn)}}})};Object(R.useEffect)(function(){if(nr.current&&br&&(br.match(nn)&&window.PR.prettyPrint()),nr.current)return nr.current.addEventListener("click",Ur),function(){nr.current.removeEventListener("click",Ur),T(),x()}},[br,nr.current,Ur]);var Fr=function(hn){if(!J)return;hn.target.nodeName==="IMG"?(Rn.current.style.display="flex",Rn.current.style.width=hn.target.clientWidth+"px",Rn.current.style.height=hn.target.clientHeight+"px",Rn.current.style.top=hn.target.offsetTop+"px",Rn.current.style.left=hn.target.offsetLeft+"px",or.current.src=hn.target.getAttribute("src")):Rn.current.style.display="none"};return c.a.createElement("div",{style:{position:"relative"}},c.a.createElement("div",{ref:nr,style:Object(B.a)({},en),className:"".concat(Q||""," markdown-body ").concat(Jt.a.mdBody),onMouseOver:Fr,dangerouslySetInnerHTML:{__html:br}}),c.a.createElement("div",{ref:Rn,className:Jt.a.button},c.a.createElement(K.a,null,c.a.createElement(z.a,{onClick:function(){return Tr()}},"\u88C1\u526A"),c.a.createElement(z.a,{onClick:function(){return Yr()}},"\u7F16\u8F91"))),c.a.createElement("img",{ref:or,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),c.a.createElement(Ae.a,{close:!0,data:sr,hasMask:ve,type:sr!=null&&sr.length?Ir:"",style:Object(B.a)({},Wn),onClose:function(){return Jn("")}}))}},"9GDu":function(et,de,N){et.exports={flex_box_center:"flex_box_center___2Dduc",flex_space_between:"flex_space_between___2Le2r",flex_box_vertical_center:"flex_box_vertical_center___2KZsK",flex_box_center_end:"flex_box_center_end___1aosz",flex_box_column:"flex_box_column___cFN2D",bg:"bg___ka_0p",title:"title___3M9-E",questionIcons:"questionIcons___VjWTs",green:"green___2q3Jn",orange:"orange___KXt8o",greenTip:"greenTip___1nV5h",redTip:"redTip___3QDm4",orangeTip:"orangeTip___3F21W",pollDesc:"pollDesc___3Jb8Y",answered:"answered___1tbR8",unanswer:"unanswer___2Jts9",anchor:"anchor___3_nBp",answerFlag:"answerFlag___32KcB",flagActive:"flagActive___3ac8b",flagHalf:"flagHalf___1AvT6",answerStudentFlag:"answerStudentFlag___UbvlB",answerStudentActive:"answerStudentActive___27het",questionItem:"questionItem___3nBk4",itemType:"itemType___3NNh-",itemFlag:"itemFlag___2fz1F",answerWrap:"answerWrap___23vJg",answerSubjective:"answerSubjective___1i3N-",otherInput:"otherInput___gQ5U6",submitButton:"submitButton___RAvWu",randomFlag:"randomFlag___1J_UJ",answerTrue:"answerTrue___1cUgp",answerFalse:"answerFalse___Q16xV",answerHalf:"answerHalf___2I-fp",renderHtml:"renderHtml___1O15z",simpleText:"simpleText___1-h1E",answerYes:"answerYes___3w-7A",answerNo:"answerNo___2TuuH",answerInfo:"answerInfo___3KPDJ",answerSheet:"answerSheet___1UuGf",active:"active___2njWQ",countDown:"countDown___ViVY-",red:"red___RmODq",fold:"fold___ZVRBm",cardList:"cardList___1KJD0",iframe:"iframe___8V6GW"}},"9VGf":function(et,de,N){"use strict";N.d(de,"a",function(){return k});var ee=N("q1tI"),K=N.n(ee);function k(z,B){var M=Object(ee.useRef)();Object(ee.useEffect)(function(){M.current=z}),Object(ee.useEffect)(function(){function j(){M.current()}if(B!==null){var U=setInterval(j,B);return function(){return clearInterval(U)}}},[B])}},"A/g1":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BU3w:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("MNnm"),K="rc-util-key";function k(j){if(j.attachTo)return j.attachTo;var U=document.querySelector("head");return U||document.body}function z(j){var U,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ee.a)())return null;var R=document.createElement("style");if((U=_.csp)===null||U===void 0?void 0:U.nonce){var c;R.nonce=(c=_.csp)===null||c===void 0?void 0:c.nonce}R.innerHTML=j;var g=k(_),w=g.firstChild;return _.prepend&&g.prepend?g.prepend(R):_.prepend&&w?g.insertBefore(R,w):g.appendChild(R),R}var B=new Map;function M(j,U){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=k(_);if(!B.has(R)){var c=z("",_),g=c.parentNode;B.set(R,g),g.removeChild(c)}var w=Array.from(B.get(R).children).find(function(n){return n.tagName==="STYLE"&&n[K]===U});if(w){var y,f;if(((y=_.csp)===null||y===void 0?void 0:y.nonce)&&w.nonce!==((f=_.csp)===null||f===void 0?void 0:f.nonce)){var m;w.nonce=(m=_.csp)===null||m===void 0?void 0:m.nonce}return w.innerHTML!==j&&(w.innerHTML=j),w}var a=z(j,_);return a[K]=U,a}},Bd2K:function(et,de,N){(function(ee){ee(N("VrN/"),N("osHv"))})(function(ee){ee.defineOption("autoCloseTags",!1,function(_,R,c){if(c!=ee.Init&&c&&_.removeKeyMap("autoCloseTags"),!R)return;var g={name:"autoCloseTags"};(typeof R!="object"||R.whenClosing!==!1)&&(g["'/'"]=function(w){return M(w)}),(typeof R!="object"||R.whenOpening!==!1)&&(g["'>'"]=function(w){return z(w)}),_.addKeyMap(g)});var K=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function z(_){if(_.getOption("disableInput"))return ee.Pass;for(var R=_.listSelections(),c=[],g=_.getOption("autoCloseTags"),w=0;wy.ch&&(o=o.slice(0,o.length-f.end+y.ch));var v=o.toLowerCase();if(!o||f.type=="string"&&(f.end!=y.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||f.string.length==1)||f.type=="tag"&&n.close||f.string.indexOf("/")==y.ch-f.start-1||x&&j(x,v)>-1||U(_,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(a)||[],o,y,!0))return ee.Pass;var O=typeof g=="object"&&g.emptyTags;if(O&&j(O,o)>-1){c[w]={text:"/>",newPos:ee.Pos(y.line,y.ch+2)};continue}var A=E&&j(E,v)>-1;c[w]={indent:A,text:">"+(A?` +`)}catch(wr){}var yn=Y(tr),Ln=D();if(tr.match(/\[TOC\]/)&&(yn=yn.replace("

          [TOC]

          ",O()),x()),yn=yn.replace(/(__special_katext_id_\d+__)/g,function(wr,Bn){var Qn=Ln[Bn],zr=Qn.type,jr=Qn.expression;return Object(pe.renderToString)(un(jr)||"",{displayMode:zr==="block",throwOnError:!1,output:"html"})}),yn=yn.replace(/▁/g,"\u2581\u2581\u2581"),T(),De){var bn=document.createElement("div");return bn.innerHTML=yn,bn.innerText}return setTimeout(function(){return _r()},500),yn},[tr]),nr=Object(R.useRef)();E.WebkitLineClamp=ot,ot&&(en=Object(B.a)(Object(B.a)({},en),E));function Ur(Sn){var hn=Sn.target;if(hn.tagName.toUpperCase()==="IMG"){if(Ft){var kn=hn.getAttribute("src");Jn(kn),yr("image")}}else if(hn.tagName.toUpperCase()==="A"){var yn=hn.getAttribute("href");if(yn.indexOf("office")>-1)Sn.preventDefault(),Jn(yn),yr("office");else if(yn.indexOf("application/pdf")>-1)Sn.preventDefault(),Jn(yn),yr("pdf");else if(yn.indexOf("type=text")>-1)Sn.preventDefault(),Jn(yn),yr("html");else if(yn.startsWith("#")){Sn.preventDefault();var Ln=document.getElementById(yn.replace("#",""));Ln&&Ln.scrollIntoView(!0)}}}var _r=function(){var hn,kn=(hn=nr.current)===null||hn===void 0?void 0:hn.querySelectorAll("video");kn==null||kn.forEach(function(yn){if(yn.oncontextmenu=function(){return!1},yn.src.indexOf(".m3u8")>-1&&!yn.canPlayType("application/vnd.apple.mpegurl")){if(q.a.isSupported()){var Ln=new q.a;Ln.loadSource(yn.src),Ln.attachMedia(yn)}}})};Object(R.useEffect)(function(){if(nr.current&&br&&(br.match(nn)&&window.PR.prettyPrint()),nr.current)return nr.current.addEventListener("click",Ur),function(){nr.current.removeEventListener("click",Ur),T(),x()}},[br,nr.current,Ur]);var Fr=function(hn){if(!J)return;hn.target.nodeName==="IMG"?(Rn.current.style.display="flex",Rn.current.style.width=hn.target.clientWidth+"px",Rn.current.style.height=hn.target.clientHeight+"px",Rn.current.style.top=hn.target.offsetTop+"px",Rn.current.style.left=hn.target.offsetLeft+"px",or.current.src=hn.target.getAttribute("src")):Rn.current.style.display="none"};return c.a.createElement("div",{style:{position:"relative"}},c.a.createElement("div",{ref:nr,style:Object(B.a)({},en),className:"".concat(Q||""," markdown-body ").concat(Jt.a.mdBody),onMouseOver:Fr,dangerouslySetInnerHTML:{__html:br}}),c.a.createElement("div",{ref:Rn,className:Jt.a.button},c.a.createElement(K.a,null,c.a.createElement(z.a,{onClick:function(){return Tr()}},"\u88C1\u526A"),c.a.createElement(z.a,{onClick:function(){return Yr()}},"\u7F16\u8F91"))),c.a.createElement("img",{ref:or,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),c.a.createElement(Ae.a,{close:!0,data:sr,hasMask:ve,type:sr!=null&&sr.length?Ir:"",style:Object(B.a)({},Wn),onClose:function(){return Jn("")}}))}},"9GDu":function(et,de,N){et.exports={flex_box_center:"flex_box_center___2Dduc",flex_space_between:"flex_space_between___2Le2r",flex_box_vertical_center:"flex_box_vertical_center___2KZsK",flex_box_center_end:"flex_box_center_end___1aosz",flex_box_column:"flex_box_column___cFN2D",bg:"bg___ka_0p",title:"title___3M9-E",questionIcons:"questionIcons___VjWTs",green:"green___2q3Jn",orange:"orange___KXt8o",greenTip:"greenTip___1nV5h",redTip:"redTip___3QDm4",orangeTip:"orangeTip___3F21W",pollDesc:"pollDesc___3Jb8Y",answered:"answered___1tbR8",unanswer:"unanswer___2Jts9",anchor:"anchor___3_nBp",answerFlag:"answerFlag___32KcB",flagActive:"flagActive___3ac8b",flagHalf:"flagHalf___1AvT6",answerStudentFlag:"answerStudentFlag___UbvlB",answerStudentActive:"answerStudentActive___27het",questionItem:"questionItem___3nBk4",itemType:"itemType___3NNh-",itemFlag:"itemFlag___2fz1F",answerWrap:"answerWrap___23vJg",answerSubjective:"answerSubjective___1i3N-",otherInput:"otherInput___gQ5U6",submitButton:"submitButton___RAvWu",randomFlag:"randomFlag___1J_UJ",answerTrue:"answerTrue___1cUgp",answerFalse:"answerFalse___Q16xV",answerHalf:"answerHalf___2I-fp",renderHtml:"renderHtml___1O15z",simpleText:"simpleText___1-h1E",answerYes:"answerYes___3w-7A",answerNo:"answerNo___2TuuH",answerInfo:"answerInfo___3KPDJ",answerSheet:"answerSheet___1UuGf",active:"active___2njWQ",countDown:"countDown___ViVY-",red:"red___RmODq",fold:"fold___ZVRBm",cardList:"cardList___1KJD0",iframe:"iframe___8V6GW"}},"9VGf":function(et,de,N){"use strict";N.d(de,"a",function(){return P});var ee=N("q1tI"),K=N.n(ee);function P(z,B){var M=Object(ee.useRef)();Object(ee.useEffect)(function(){M.current=z}),Object(ee.useEffect)(function(){function j(){M.current()}if(B!==null){var U=setInterval(j,B);return function(){return clearInterval(U)}}},[B])}},"A/g1":function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BU3w:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("MNnm"),K="rc-util-key";function P(j){if(j.attachTo)return j.attachTo;var U=document.querySelector("head");return U||document.body}function z(j){var U,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ee.a)())return null;var R=document.createElement("style");if((U=_.csp)===null||U===void 0?void 0:U.nonce){var c;R.nonce=(c=_.csp)===null||c===void 0?void 0:c.nonce}R.innerHTML=j;var g=P(_),w=g.firstChild;return _.prepend&&g.prepend?g.prepend(R):_.prepend&&w?g.insertBefore(R,w):g.appendChild(R),R}var B=new Map;function M(j,U){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=P(_);if(!B.has(R)){var c=z("",_),g=c.parentNode;B.set(R,g),g.removeChild(c)}var w=Array.from(B.get(R).children).find(function(n){return n.tagName==="STYLE"&&n[K]===U});if(w){var y,f;if(((y=_.csp)===null||y===void 0?void 0:y.nonce)&&w.nonce!==((f=_.csp)===null||f===void 0?void 0:f.nonce)){var m;w.nonce=(m=_.csp)===null||m===void 0?void 0:m.nonce}return w.innerHTML!==j&&(w.innerHTML=j),w}var a=z(j,_);return a[K]=U,a}},Bd2K:function(et,de,N){(function(ee){ee(N("VrN/"),N("osHv"))})(function(ee){ee.defineOption("autoCloseTags",!1,function(_,R,c){if(c!=ee.Init&&c&&_.removeKeyMap("autoCloseTags"),!R)return;var g={name:"autoCloseTags"};(typeof R!="object"||R.whenClosing!==!1)&&(g["'/'"]=function(w){return M(w)}),(typeof R!="object"||R.whenOpening!==!1)&&(g["'>'"]=function(w){return z(w)}),_.addKeyMap(g)});var K=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function z(_){if(_.getOption("disableInput"))return ee.Pass;for(var R=_.listSelections(),c=[],g=_.getOption("autoCloseTags"),w=0;wy.ch&&(o=o.slice(0,o.length-f.end+y.ch));var v=o.toLowerCase();if(!o||f.type=="string"&&(f.end!=y.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||f.string.length==1)||f.type=="tag"&&n.close||f.string.indexOf("/")==y.ch-f.start-1||x&&j(x,v)>-1||U(_,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(a)||[],o,y,!0))return ee.Pass;var O=typeof g=="object"&&g.emptyTags;if(O&&j(O,o)>-1){c[w]={text:"/>",newPos:ee.Pos(y.line,y.ch+2)};continue}var A=E&&j(E,v)>-1;c[w]={indent:A,text:">"+(A?` -`:"")+"",newPos:A?ee.Pos(y.line+1,0):ee.Pos(y.line,y.ch+1)}}for(var p=typeof g=="object"&&g.dontIndentOnAutoClose,w=R.length-1;w>=0;w--){var h=c[w];_.replaceRange(h.text,R[w].head,R[w].anchor,"+insert");var s=_.listSelections().slice(0);s[w]={head:h.newPos,anchor:h.newPos},_.setSelections(s),!p&&h.indent&&(_.indentLine(h.newPos.line,null,!0),_.indentLine(h.newPos.line+1,null,!0))}}function B(_,R){for(var c=_.listSelections(),g=[],w=R?"/":""&&(x+=">"),g[m]=x}if(_.replaceSelections(g),c=_.listSelections(),!f)for(var m=0;m=0&&R[a]==c;a--)++m;g=f.to;for(var a=1;a0){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:"",R=[],c=0;c0&&(xe(),_e(1))},[n]),Object(j.useEffect)(function(){if(Ue===0)return;if(Ue===2)clearInterval(pe);else{var Le=0,ae=setInterval(function(){l.includes(Le)&&te(),Le++},1e3);Ae(ae)}return function(){return clearInterval(pe)}},[Ue]),Object(j.useImperativeHandle)(a,function(){return{handlePhoto:te}});var je=function(){_e(2)},xe=function(){var ae=n/o,oe=[];function Se(Me,We){return parseInt(Math.floor(Math.random()*(We-Me+1))+Me)}new Array(o).fill(0).map(function(Me,We){x?oe.push(Se(ae*We,ae*(We+1))):We==0?oe.push(0):oe.push(Se(ae*We,ae*(We+1)))}),l=oe,D([].concat(oe)),console.log(oe)},he=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(ae){var oe=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return oe?new Promise(function(Se,Me){oe.call(navigator,ae,Se,Me)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then(function(ae){u&&u(2),C(2),"srcObject"in O.current?O.current.srcObject=ae:O.current.src=window.URL.createObjectURL(ae),O.current.onloadedmetadata=function(oe){O.current.play()},O.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),je(),k.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(ae){C(1),u&&u(1),ae.message==="Permission denied"||ae.name==="NotAllowedError"?k.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):k.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+ae.name),console.log("err: "+ae.message)})},te=function(){try{A.current.width=O.current.videoWidth,A.current.height=O.current.videoHeight;var ae=A.current.getContext("2d");ae.drawImage(O.current,0,0,A.current.width,A.current.height),F(A.current.toDataURL("image/png")),ue(A.current.toDataURL("image/png"))}catch(oe){}},ye=function(){try{var ae=O.current.srcObject,oe=ae.getTracks();oe.forEach(function(Se){Se.stop()}),O.current.srcObject=null}catch(Se){}},ue=function(){var Le=Object(ee.a)(M.a.mark(function ae(oe){var Se,Me;return M.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:Se=new FormData,Se.append("file",y(oe,"1")),Se.append("1","123"),Me=new window.XMLHttpRequest,Me.withCredentials=!0,Me.addEventListener("load",function(Qe){var Ze=JSON.parse(Qe.target.responseText);Object(R.a)("/api/exercises/".concat(v,"/upload_photo.json"),{method:"post",body:{attachment_id:Ze.id}})},!1),Me.addEventListener("error",function(Qe){console.error(Qe)},!1),Me.open("POST","".concat(c.a.API_SERVER,"/api/attachments.json")),Me.send(Se);case 9:case"end":return Ke.stop()}},ae)}));return function(oe){return Le.apply(this,arguments)}}();return U.a.createElement(U.a.Fragment,null,I!==3&&U.a.createElement("aside",{className:w.a.video,id:"screenshot"},I===0&&U.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),I===1&&U.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),I===2&&U.a.createElement("div",null,U.a.createElement("video",{width:"288",ref:O,autoPlay:!0}),U.a.createElement("canvas",{style:{display:"none"},ref:A}))))});de.a=f},"C+DQ":function(et,de,N){},"C/vA":function(et,de,N){"use strict";N.d(de,"a",function(){return ee});function ee(K){var k=this,z=!1,B;return function(){return z||(z=!0,B=K.apply(k,arguments)),B}}},"Cg/j":function(et,de,N){"use strict";N.d(de,"b",function(){return ee}),N.d(de,"a",function(){return K}),N.d(de,"c",function(){return z}),N.d(de,"d",function(){return B});var ee;(function(M){M.serviceIds=new Map,M.DI_TARGET="$di$target",M.DI_DEPENDENCIES="$di$dependencies";function j(U){return U[M.DI_DEPENDENCIES]||[]}M.getServiceDependencies=j})(ee||(ee={}));var K=z("instantiationService");function k(M,j,U,_){j[ee.DI_TARGET]===j?j[ee.DI_DEPENDENCIES].push({id:M,index:U,optional:_}):(j[ee.DI_DEPENDENCIES]=[{id:M,index:U,optional:_}],j[ee.DI_TARGET]=j)}function z(M){if(ee.serviceIds.has(M))return ee.serviceIds.get(M);var j=function(U,_,R){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");k(j,U,R,!1)};return j.toString=function(){return M},ee.serviceIds.set(M,j),j}function B(M){return function(j,U,_){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");k(M,j,_,!0)}}},DR4n:function(et,de,N){et.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},DlQD:function(et,de,N){(function(ee,K){et.exports=K()})(this,function(){"use strict";function ee(Te,ge){for(var be=0;beTe.length)&&(ge=Te.length);for(var be=0,re=new Array(ge);be=Te.length?{done:!0}:{done:!1,value:Te[re++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`:"")+"",newPos:A?ee.Pos(y.line+1,0):ee.Pos(y.line,y.ch+1)}}for(var p=typeof g=="object"&&g.dontIndentOnAutoClose,w=R.length-1;w>=0;w--){var h=c[w];_.replaceRange(h.text,R[w].head,R[w].anchor,"+insert");var s=_.listSelections().slice(0);s[w]={head:h.newPos,anchor:h.newPos},_.setSelections(s),!p&&h.indent&&(_.indentLine(h.newPos.line,null,!0),_.indentLine(h.newPos.line+1,null,!0))}}function B(_,R){for(var c=_.listSelections(),g=[],w=R?"/":""&&(x+=">"),g[m]=x}if(_.replaceSelections(g),c=_.listSelections(),!f)for(var m=0;m=0&&R[a]==c;a--)++m;g=f.to;for(var a=1;a0){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:"",R=[],c=0;c0&&(xe(),_e(1))},[n]),Object(j.useEffect)(function(){if(Ue===0)return;if(Ue===2)clearInterval(pe);else{var Le=0,ae=setInterval(function(){l.includes(Le)&&te(),Le++},1e3);Ae(ae)}return function(){return clearInterval(pe)}},[Ue]),Object(j.useImperativeHandle)(a,function(){return{handlePhoto:te}});var je=function(){_e(2)},xe=function(){var ae=n/o,oe=[];function Se(Me,We){return parseInt(Math.floor(Math.random()*(We-Me+1))+Me)}new Array(o).fill(0).map(function(Me,We){x?oe.push(Se(ae*We,ae*(We+1))):We==0?oe.push(0):oe.push(Se(ae*We,ae*(We+1)))}),l=oe,D([].concat(oe)),console.log(oe)},he=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(ae){var oe=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return oe?new Promise(function(Se,Me){oe.call(navigator,ae,Se,Me)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then(function(ae){u&&u(2),C(2),"srcObject"in O.current?O.current.srcObject=ae:O.current.src=window.URL.createObjectURL(ae),O.current.onloadedmetadata=function(oe){O.current.play()},O.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),je(),P.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(ae){C(1),u&&u(1),ae.message==="Permission denied"||ae.name==="NotAllowedError"?P.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):P.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+ae.name),console.log("err: "+ae.message)})},te=function(){try{A.current.width=O.current.videoWidth,A.current.height=O.current.videoHeight;var ae=A.current.getContext("2d");ae.drawImage(O.current,0,0,A.current.width,A.current.height),F(A.current.toDataURL("image/png")),ue(A.current.toDataURL("image/png"))}catch(oe){}},ye=function(){try{var ae=O.current.srcObject,oe=ae.getTracks();oe.forEach(function(Se){Se.stop()}),O.current.srcObject=null}catch(Se){}},ue=function(){var Le=Object(ee.a)(M.a.mark(function ae(oe){var Se,Me;return M.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:Se=new FormData,Se.append("file",y(oe,"1")),Se.append("1","123"),Me=new window.XMLHttpRequest,Me.withCredentials=!0,Me.addEventListener("load",function(Qe){var Ze=JSON.parse(Qe.target.responseText);Object(R.a)("/api/exercises/".concat(v,"/upload_photo.json"),{method:"post",body:{attachment_id:Ze.id}})},!1),Me.addEventListener("error",function(Qe){console.error(Qe)},!1),Me.open("POST","".concat(c.a.API_SERVER,"/api/attachments.json")),Me.send(Se);case 9:case"end":return Ke.stop()}},ae)}));return function(oe){return Le.apply(this,arguments)}}();return U.a.createElement(U.a.Fragment,null,I!==3&&U.a.createElement("aside",{className:w.a.video,id:"screenshot"},I===0&&U.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),I===1&&U.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),I===2&&U.a.createElement("div",null,U.a.createElement("video",{width:"288",ref:O,autoPlay:!0}),U.a.createElement("canvas",{style:{display:"none"},ref:A}))))});de.a=f},"C+DQ":function(et,de,N){},"C/vA":function(et,de,N){"use strict";N.d(de,"a",function(){return ee});function ee(K){var P=this,z=!1,B;return function(){return z||(z=!0,B=K.apply(P,arguments)),B}}},"Cg/j":function(et,de,N){"use strict";N.d(de,"b",function(){return ee}),N.d(de,"a",function(){return K}),N.d(de,"c",function(){return z}),N.d(de,"d",function(){return B});var ee;(function(M){M.serviceIds=new Map,M.DI_TARGET="$di$target",M.DI_DEPENDENCIES="$di$dependencies";function j(U){return U[M.DI_DEPENDENCIES]||[]}M.getServiceDependencies=j})(ee||(ee={}));var K=z("instantiationService");function P(M,j,U,_){j[ee.DI_TARGET]===j?j[ee.DI_DEPENDENCIES].push({id:M,index:U,optional:_}):(j[ee.DI_DEPENDENCIES]=[{id:M,index:U,optional:_}],j[ee.DI_TARGET]=j)}function z(M){if(ee.serviceIds.has(M))return ee.serviceIds.get(M);var j=function(U,_,R){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");P(j,U,R,!1)};return j.toString=function(){return M},ee.serviceIds.set(M,j),j}function B(M){return function(j,U,_){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");P(M,j,_,!0)}}},DR4n:function(et,de,N){et.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},DlQD:function(et,de,N){(function(ee,K){et.exports=K()})(this,function(){"use strict";function ee(Te,ge){for(var be=0;beTe.length)&&(ge=Te.length);for(var be=0,re=new Array(ge);be=Te.length?{done:!0}:{done:!1,value:Te[re++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return be=Te[Symbol.iterator](),be.next.bind(be)}function M(Te,ge){return ge={exports:{}},Te(ge,ge.exports),ge.exports}var j=M(function(Te){function ge(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function be(re){Te.exports.defaults=re}Te.exports={defaults:ge(),getDefaults:ge,changeDefaults:be}}),U=j.defaults,_=j.getDefaults,R=j.changeDefaults,c=/[&<>"']/,g=/[&<>"']/g,w=/[<>"']|&(?!#?\w+;)/,y=/[<>"']|&(?!#?\w+;)/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(ge){return f[ge]};function a(Te,ge){if(ge){if(c.test(Te))return Te.replace(g,m)}else if(w.test(Te))return Te.replace(y,m);return Te}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Te){return Te.replace(n,function(ge,be){return be=be.toLowerCase(),be==="colon"?":":be.charAt(0)==="#"?be.charAt(1)==="x"?String.fromCharCode(parseInt(be.substring(2),16)):String.fromCharCode(+be.substring(1)):""})}var u=/(^|[^\[])\^/g;function x(Te,ge){Te=Te.source||Te,ge=ge||"";var be={replace:function(ie,ce){return ce=ce.source||ce,ce=ce.replace(u,"$1"),Te=Te.replace(ie,ce),be},getRegex:function(){return new RegExp(Te,ge)}};return be}var E=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function O(Te,ge,be){if(Te){var re;try{re=decodeURIComponent(o(be)).replace(E,"").toLowerCase()}catch(ie){return null}if(re.indexOf("javascript:")===0||re.indexOf("vbscript:")===0||re.indexOf("data:")===0)return null}ge&&!v.test(be)&&(be=l(ge,be));try{be=encodeURI(be).replace(/%25/g,"%")}catch(ie){return null}return be}var A={},p=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function l(Te,ge){A[" "+Te]||(p.test(Te)?A[" "+Te]=Te+"/":A[" "+Te]=I(Te,"/",!0)),Te=A[" "+Te];var be=Te.indexOf(":")===-1;return ge.substring(0,2)==="//"?be?ge:Te.replace(h,"$1")+ge:ge.charAt(0)==="/"?be?ge:Te.replace(s,"$1")+ge:Te+ge}var D={exec:function(){}};function T(Te){for(var ge=1,be,re;ge=0&&Be[ut]==="\\";)Ie=!Ie;return Ie?"|":" |"}),re=be.split(/ \|/),ie=0;if(re.length>ge)re.splice(ge);else for(;re.length=re.length?ie.slice(re.length):ie}).join(` `)}var Fe=function(){function Te(be){this.options=be||H}var ge=Te.prototype;return ge.space=function(re){var ie=this.rules.block.newline.exec(re);if(ie)return ie[0].length>1?{type:"space",raw:ie[0]}:{raw:` `}},ge.code=function(re,ie){var ce=this.rules.block.code.exec(re);if(ce){var Ee=ie[ie.length-1];if(Ee&&Ee.type==="paragraph")return{raw:ce[0],text:ce[0].trimRight()};var Be=ce[0].replace(/^ {4}/gm,"");return{type:"code",raw:ce[0],codeBlockStyle:"indented",text:this.options.pedantic?Be:F(Be,` `)}}},ge.fences=function(re){var ie=this.rules.block.fences.exec(re);if(ie){var ce=ie[0],Ee=Ge(ce,ie[3]||"");return{type:"code",raw:ce,lang:ie[2]?ie[2].trim():ie[2],text:Ee}}},ge.heading=function(re){var ie=this.rules.block.heading.exec(re);if(ie)return{type:"heading",raw:ie[0],depth:ie[1].length,text:ie[2]}},ge.nptable=function(re){var ie=this.rules.block.nptable.exec(re);if(ie){var ce={type:"table",header:q(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(` -`):[],raw:ie[0]};if(ce.header.length===ce.align.length){var Ee=ce.align.length,Be;for(Be=0;Be ?/gm,"");return{type:"blockquote",raw:ie[0],text:ce}}},ge.list=function(re){var ie=this.rules.block.list.exec(re);if(ie){for(var ce=ie[0],Ee=ie[2],Be=Ee.length>1,Ie=Ee[Ee.length-1]===")",ut={type:"list",raw:ce,ordered:Be,start:Be?+Ee.slice(0,-1):"",loose:!1,items:[]},bt=ie[0].match(this.rules.block.item),Tt=!1,xt,gt,qe,Xe,ke,se,fe,$e=bt.length,Pe=0;Pe<$e;Pe++)xt=bt[Pe],ce=xt,gt=xt.length,xt=xt.replace(/^ *([*+-]|\d+[.)]) */,""),~xt.indexOf(` - `)&&(gt-=xt.length,xt=this.options.pedantic?xt.replace(/^ {1,4}/gm,""):xt.replace(new RegExp("^ {1,"+gt+"}","gm"),"")),Pe!==$e-1&&(qe=this.rules.block.bullet.exec(bt[Pe+1])[0],(Be?qe.length===1||!Ie&&qe[qe.length-1]===")":qe.length>1||this.options.smartLists&&qe!==Ee)&&(Xe=bt.slice(Pe+1).join(` -`),ut.raw=ut.raw.substring(0,ut.raw.length-Xe.length),Pe=$e-1)),ke=Tt||/\n\n(?!\s*$)/.test(xt),Pe!==$e-1&&(Tt=xt.charAt(xt.length-1)===` -`,ke||(ke=Tt)),ke&&(ut.loose=!0),se=/^\[[ xX]\] /.test(xt),fe=void 0,se&&(fe=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),ut.items.push({type:"list_item",raw:ce,task:se,checked:fe,loose:ke,text:xt});return ut}},ge.html=function(re){var ie=this.rules.block.html.exec(re);if(ie)return{type:this.options.sanitize?"paragraph":"html",raw:ie[0],pre:!this.options.sanitizer&&(ie[1]==="pre"||ie[1]==="script"||ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ie[0]):le(ie[0]):ie[0]}},ge.def=function(re){var ie=this.rules.block.def.exec(re);if(ie){ie[3]&&(ie[3]=ie[3].substring(1,ie[3].length-1));var ce=ie[1].toLowerCase().replace(/\s+/g," ");return{tag:ce,raw:ie[0],href:ie[2],title:ie[3]}}},ge.table=function(re){var ie=this.rules.block.table.exec(re);if(ie){var ce={type:"table",header:q(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(` +`):[],raw:ie[0]};if(ce.header.length===ce.align.length){var Ee=ce.align.length,Be;for(Be=0;Be ?/gm,"");return{type:"blockquote",raw:ie[0],text:ce}}},ge.list=function(re){var ie=this.rules.block.list.exec(re);if(ie){for(var ce=ie[0],Ee=ie[2],Be=Ee.length>1,Ie=Ee[Ee.length-1]===")",ut={type:"list",raw:ce,ordered:Be,start:Be?+Ee.slice(0,-1):"",loose:!1,items:[]},bt=ie[0].match(this.rules.block.item),Tt=!1,xt,gt,qe,Xe,Pe,se,fe,$e=bt.length,ke=0;ke<$e;ke++)xt=bt[ke],ce=xt,gt=xt.length,xt=xt.replace(/^ *([*+-]|\d+[.)]) */,""),~xt.indexOf(` + `)&&(gt-=xt.length,xt=this.options.pedantic?xt.replace(/^ {1,4}/gm,""):xt.replace(new RegExp("^ {1,"+gt+"}","gm"),"")),ke!==$e-1&&(qe=this.rules.block.bullet.exec(bt[ke+1])[0],(Be?qe.length===1||!Ie&&qe[qe.length-1]===")":qe.length>1||this.options.smartLists&&qe!==Ee)&&(Xe=bt.slice(ke+1).join(` +`),ut.raw=ut.raw.substring(0,ut.raw.length-Xe.length),ke=$e-1)),Pe=Tt||/\n\n(?!\s*$)/.test(xt),ke!==$e-1&&(Tt=xt.charAt(xt.length-1)===` +`,Pe||(Pe=Tt)),Pe&&(ut.loose=!0),se=/^\[[ xX]\] /.test(xt),fe=void 0,se&&(fe=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),ut.items.push({type:"list_item",raw:ce,task:se,checked:fe,loose:Pe,text:xt});return ut}},ge.html=function(re){var ie=this.rules.block.html.exec(re);if(ie)return{type:this.options.sanitize?"paragraph":"html",raw:ie[0],pre:!this.options.sanitizer&&(ie[1]==="pre"||ie[1]==="script"||ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ie[0]):le(ie[0]):ie[0]}},ge.def=function(re){var ie=this.rules.block.def.exec(re);if(ie){ie[3]&&(ie[3]=ie[3].substring(1,ie[3].length-1));var ce=ie[1].toLowerCase().replace(/\s+/g," ");return{tag:ce,raw:ie[0],href:ie[2],title:ie[3]}}},ge.table=function(re){var ie=this.rules.block.table.exec(re);if(ie){var ce={type:"table",header:q(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(` `):[]};if(ce.header.length===ce.align.length){ce.raw=ie[0];var Ee=ce.align.length,Be;for(Be=0;Be/i.test(Ee[0])&&(ie=!1),!ce&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ee[0])?ce=!0:ce&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ee[0])&&(ce=!1),{type:this.options.sanitize?"text":"html",raw:Ee[0],inLink:ie,inRawBlock:ce,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ee[0]):le(Ee[0]):Ee[0]}},ge.link=function(re){var ie=this.rules.inline.link.exec(re);if(ie){var ce=pe(ie[2],"()");if(ce>-1){var Ee=ie[0].indexOf("!")===0?5:4,Be=Ee+ie[1].length+ce;ie[2]=ie[2].substring(0,ce),ie[0]=ie[0].substring(0,Be).trim(),ie[3]=""}var Ie=ie[2],ut="";if(this.options.pedantic){var bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ie);bt?(Ie=bt[1],ut=bt[3]):ut=""}else ut=ie[3]?ie[3].slice(1,-1):"";Ie=Ie.trim().replace(/^<([\s\S]*)>$/,"$1");var Tt=Ae(ie,{href:Ie&&Ie.replace(this.rules.inline._escapes,"$1"),title:ut&&ut.replace(this.rules.inline._escapes,"$1")},ie[0]);return Tt}},ge.reflink=function(re,ie){var ce;if((ce=this.rules.inline.reflink.exec(re))||(ce=this.rules.inline.nolink.exec(re))){var Ee=(ce[2]||ce[1]).replace(/\s+/g," ");if(Ee=ie[Ee.toLowerCase()],!Ee||!Ee.href){var Be=ce[0].charAt(0);return{type:"text",raw:Be,text:Be}}var Ie=Ae(ce,Ee,ce[0]);return Ie}},ge.strong=function(re,ie,ce){ce===void 0&&(ce="");var Ee=this.rules.inline.strong.start.exec(re);if(Ee&&(!Ee[1]||Ee[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ie=ie.slice(-1*re.length);var Be=Ee[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Be.lastIndex=0;for(var Ie;(Ee=Be.exec(ie))!=null;)if(Ie=this.rules.inline.strong.middle.exec(ie.slice(0,Ee.index+3)),Ie)return{type:"strong",raw:re.slice(0,Ie[0].length),text:re.slice(2,Ie[0].length-2)}}},ge.em=function(re,ie,ce){ce===void 0&&(ce="");var Ee=this.rules.inline.em.start.exec(re);if(Ee&&(!Ee[1]||Ee[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ie=ie.slice(-1*re.length);var Be=Ee[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Be.lastIndex=0;for(var Ie;(Ee=Be.exec(ie))!=null;)if(Ie=this.rules.inline.em.middle.exec(ie.slice(0,Ee.index+2)),Ie)return{type:"em",raw:re.slice(0,Ie[0].length),text:re.slice(1,Ie[0].length-1)}}},ge.codespan=function(re){var ie=this.rules.inline.code.exec(re);if(ie){var ce=ie[2].replace(/\n/g," "),Ee=/[^ ]/.test(ce),Be=ce.startsWith(" ")&&ce.endsWith(" ");return Ee&&Be&&(ce=ce.substring(1,ce.length-1)),ce=le(ce,!0),{type:"codespan",raw:ie[0],text:ce}}},ge.br=function(re){var ie=this.rules.inline.br.exec(re);if(ie)return{type:"br",raw:ie[0]}},ge.del=function(re){var ie=this.rules.inline.del.exec(re);if(ie)return{type:"del",raw:ie[0],text:ie[1]}},ge.autolink=function(re,ie){var ce=this.rules.inline.autolink.exec(re);if(ce){var Ee,Be;return ce[2]==="@"?(Ee=le(this.options.mangle?ie(ce[1]):ce[1]),Be="mailto:"+Ee):(Ee=le(ce[1]),Be=Ee),{type:"link",raw:ce[0],text:Ee,href:Be,tokens:[{type:"text",raw:Ee,text:Ee}]}}},ge.url=function(re,ie){var ce;if(ce=this.rules.inline.url.exec(re)){var Ee,Be;if(ce[2]==="@")Ee=le(this.options.mangle?ie(ce[0]):ce[0]),Be="mailto:"+Ee;else{var Ie;do Ie=ce[0],ce[0]=this.rules.inline._backpedal.exec(ce[0])[0];while(Ie!==ce[0]);Ee=le(ce[0]),ce[1]==="www."?Be="http://"+Ee:Be=Ee}return{type:"link",raw:ce[0],text:Ee,href:Be,tokens:[{type:"text",raw:Ee,text:Ee}]}}},ge.inlineText=function(re,ie,ce){var Ee=this.rules.inline.text.exec(re);if(Ee){var Be;return ie?Be=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ee[0]):le(Ee[0]):Ee[0]:Be=le(this.options.smartypants?ce(Ee[0]):Ee[0]),{type:"text",raw:Ee[0],text:Be}}},Te}(),Ue=Y.noopTest,_e=Y.edit,je=Y.merge,xe={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Ue,table:Ue,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};xe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,xe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,xe.def=_e(xe.def).replace("label",xe._label).replace("title",xe._title).getRegex(),xe.bullet=/(?:[*+-]|\d{1,9}[.)])/,xe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,xe.item=_e(xe.item,"gm").replace(/bull/g,xe.bullet).getRegex(),xe.list=_e(xe.list).replace(/bull/g,xe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+xe.def.source+")").getRegex(),xe._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xe._comment=//,xe.html=_e(xe.html,"i").replace("comment",xe._comment).replace("tag",xe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xe.paragraph=_e(xe._paragraph).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",xe._tag).getRegex(),xe.blockquote=_e(xe.blockquote).replace("paragraph",xe.paragraph).getRegex(),xe.normal=je({},xe),xe.gfm=je({},xe.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),xe.gfm.nptable=_e(xe.gfm.nptable).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",xe._tag).getRegex(),xe.gfm.table=_e(xe.gfm.table).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",xe._tag).getRegex(),xe.pedantic=je({},xe.normal,{html:_e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xe._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Ue,paragraph:_e(xe.normal._paragraph).replace("hr",xe.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",xe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ue,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ue,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=_e(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=_e(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=_e(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=_e(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=_e(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=_e(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=_e(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=_e(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=_e(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=_e(he._blockSkip,"g").getRegex(),he.overlapSkip=_e(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,he.autolink=_e(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=_e(he.tag).replace("comment",xe._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=_e(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=_e(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=_e(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=je({},he),he.pedantic=je({},he.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_e(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:_e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=je({},he.normal,{escape:_e(he.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(re="x"+re.toString(16)),ge+="&#"+re+";";return ge}var Se=function(){function Te(be){this.tokens=[],this.tokens.links=Object.create(null),this.options=be||ye,this.options.tokenizer=this.options.tokenizer||new Fe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var re={block:ue.normal,inline:Le.normal};this.options.pedantic?(re.block=ue.pedantic,re.inline=Le.pedantic):this.options.gfm&&(re.block=ue.gfm,this.options.breaks?re.inline=Le.breaks:re.inline=Le.gfm),this.tokenizer.rules=re}Te.lex=function(re,ie){var ce=new Te(ie);return ce.lex(re)};var ge=Te.prototype;return ge.lex=function(re){return re=re.replace(/\r\n|\r/g,` @@ -271,23 +271,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},ge.tablerow=function(re){return` `+re+` `},ge.tablecell=function(re,ie){var ce=ie.header?"th":"td",Ee=ie.align?"<"+ce+' align="'+ie.align+'">':"<"+ce+">";return Ee+re+" -`},ge.strong=function(re){return""+re+""},ge.em=function(re){return""+re+""},ge.codespan=function(re){return""+re+""},ge.br=function(){return this.options.xhtml?"
          ":"
          "},ge.del=function(re){return""+re+""},ge.link=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee='",Ee},ge.image=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee=''+ce+'":">",Ee},ge.text=function(re){return re},Te}(),Ze=function(){function Te(){}var ge=Te.prototype;return ge.strong=function(re){return re},ge.em=function(re){return re},ge.codespan=function(re){return re},ge.del=function(re){return re},ge.html=function(re){return re},ge.text=function(re){return re},ge.link=function(re,ie,ce){return""+ce},ge.image=function(re,ie,ce){return""+ce},ge.br=function(){return""},Te}(),yt=function(){function Te(){this.seen={}}var ge=Te.prototype;return ge.slug=function(re){var ie=re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ie)){var ce=ie;do this.seen[ce]++,ie=ce+"-"+this.seen[ce];while(this.seen.hasOwnProperty(ie))}return this.seen[ie]=0,ie},Te}(),vt=j.defaults,dt=Y.unescape,pt=function(){function Te(be){this.options=be||vt,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ze,this.slugger=new yt}Te.parse=function(re,ie){var ce=new Te(ie);return ce.parse(re)};var ge=Te.prototype;return ge.parse=function(re,ie){ie===void 0&&(ie=!0);var ce="",Ee,Be,Ie,ut,bt,Tt,xt,gt,qe,Xe,ke,se,fe,$e,Pe,it,at,Ne,Ve=re.length;for(Ee=0;Ee0&&Pe.tokens[0].type==="text"?(Pe.tokens[0].text=Ne+" "+Pe.tokens[0].text,Pe.tokens[0].tokens&&Pe.tokens[0].tokens.length>0&&Pe.tokens[0].tokens[0].type==="text"&&(Pe.tokens[0].tokens[0].text=Ne+" "+Pe.tokens[0].tokens[0].text)):Pe.tokens.unshift({type:"text",text:Ne}):$e+=Ne),$e+=this.parse(Pe.tokens,fe),qe+=this.renderer.listitem($e,at,it);ce+=this.renderer.list(qe,ke,se);continue}case"html":{ce+=this.renderer.html(Xe.text);continue}case"paragraph":{ce+=this.renderer.paragraph(this.parseInline(Xe.tokens));continue}case"text":{for(qe=Xe.tokens?this.parseInline(Xe.tokens):Xe.text;Ee+1"+re+""},ge.em=function(re){return""+re+""},ge.codespan=function(re){return""+re+""},ge.br=function(){return this.options.xhtml?"
          ":"
          "},ge.del=function(re){return""+re+""},ge.link=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee='
          ",Ee},ge.image=function(re,ie,ce){if(re=We(this.options.sanitize,this.options.baseUrl,re),re===null)return ce;var Ee=''+ce+'":">",Ee},ge.text=function(re){return re},Te}(),Ze=function(){function Te(){}var ge=Te.prototype;return ge.strong=function(re){return re},ge.em=function(re){return re},ge.codespan=function(re){return re},ge.del=function(re){return re},ge.html=function(re){return re},ge.text=function(re){return re},ge.link=function(re,ie,ce){return""+ce},ge.image=function(re,ie,ce){return""+ce},ge.br=function(){return""},Te}(),yt=function(){function Te(){this.seen={}}var ge=Te.prototype;return ge.slug=function(re){var ie=re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ie)){var ce=ie;do this.seen[ce]++,ie=ce+"-"+this.seen[ce];while(this.seen.hasOwnProperty(ie))}return this.seen[ie]=0,ie},Te}(),vt=j.defaults,dt=Y.unescape,pt=function(){function Te(be){this.options=be||vt,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ze,this.slugger=new yt}Te.parse=function(re,ie){var ce=new Te(ie);return ce.parse(re)};var ge=Te.prototype;return ge.parse=function(re,ie){ie===void 0&&(ie=!0);var ce="",Ee,Be,Ie,ut,bt,Tt,xt,gt,qe,Xe,Pe,se,fe,$e,ke,it,at,Ne,Ve=re.length;for(Ee=0;Ee0&&ke.tokens[0].type==="text"?(ke.tokens[0].text=Ne+" "+ke.tokens[0].text,ke.tokens[0].tokens&&ke.tokens[0].tokens.length>0&&ke.tokens[0].tokens[0].type==="text"&&(ke.tokens[0].tokens[0].text=Ne+" "+ke.tokens[0].tokens[0].text)):ke.tokens.unshift({type:"text",text:Ne}):$e+=Ne),$e+=this.parse(ke.tokens,fe),qe+=this.renderer.listitem($e,at,it);ce+=this.renderer.list(qe,Pe,se);continue}case"html":{ce+=this.renderer.html(Xe.text);continue}case"paragraph":{ce+=this.renderer.paragraph(this.parseInline(Xe.tokens));continue}case"text":{for(qe=Xe.tokens?this.parseInline(Xe.tokens):Xe.text;Ee+1An error occurred:

          "+Oe(Ie.message+"",!0)+"
          ";throw Ie}}He.options=He.setOptions=function(Te){return At(He.defaults,Te),Je(He.defaults),He},He.getDefaults=we,He.defaults=st,He.use=function(Te){var ge=At({},Te);if(Te.renderer&&function(){var re=He.defaults.renderer||new Qe,ie=function(Be){var Ie=re[Be];re[Be]=function(){for(var ut=arguments.length,bt=new Array(ut),Tt=0;Tt`,triples:"",explode:"[]{}"},k=ee.Pos;ee.defineOption("autoCloseBrackets",!1,function(f,m,a){a&&a!=ee.Init&&(f.removeKeyMap(B),f.state.closeBrackets=null),m&&(M(z(m,"pairs")),f.state.closeBrackets=m,f.addKeyMap(B))});function z(f,m){return m=="pairs"&&typeof f=="string"?f:typeof f=="object"&&f[m]!=null?f[m]:K[m]}var B={Backspace:_,Enter:R};function M(f){for(var m=0;m=0;o--){var x=n[o].head;f.replaceRange("",k(x.line,x.ch-1),k(x.line,x.ch+1),"+delete")}}function R(f){var m=U(f),a=m&&z(m,"explode");if(!a||f.getOption("disableInput"))return ee.Pass;for(var n=f.listSelections(),o=0;o0;return{anchor:new k(f.anchor.line,f.anchor.ch+(m?-1:1)),head:new k(f.head.line,f.head.ch+(m?1:-1))}}function g(f,m){var a=U(f);if(!a||f.getOption("disableInput"))return ee.Pass;var n=z(a,"pairs"),o=n.indexOf(m);if(o==-1)return ee.Pass;for(var u=z(a,"closeBefore"),x=z(a,"triples"),E=n.charAt(o+1)==m,v=f.listSelections(),O=o%2==0,A,p=0;p=0&&f.getRange(s,k(s.line,s.ch+3))==m+m+m?l="skipThree":l="skip";else if(E&&s.ch>1&&x.indexOf(m)>=0&&f.getRange(k(s.line,s.ch-2),s)==m+m){if(s.ch>2&&/\bstring/.test(f.getTokenTypeAt(k(s.line,s.ch-2))))return ee.Pass;l="addFour"}else if(E){var T=s.ch==0?" ":f.getRange(k(s.line,s.ch-1),s);if(!ee.isWordChar(D)&&T!=m&&!ee.isWordChar(T))l="both";else return ee.Pass}else if(O&&(D.length===0||/\s/.test(D)||u.indexOf(D)>-1))l="both";else return ee.Pass;if(!A)A=l;else if(A!=l)return ee.Pass}var S=o%2?n.charAt(o-1):m,I=o%2?m:n.charAt(o+1);f.operation(function(){if(A=="skip")f.execCommand("goCharRight");else if(A=="skipThree")for(var C=0;C<3;C++)f.execCommand("goCharRight");else if(A=="surround"){for(var W=f.getSelections(),C=0;C>>6)+_(128|I&63):_(224|I>>>12&15)+_(128|I>>>6&63)+_(128|I&63)}else{var I=65536+(S.charCodeAt(0)-55296)*1024+(S.charCodeAt(1)-56320);return _(240|I>>>18&7)+_(128|I>>>12&63)+_(128|I>>>6&63)+_(128|I&63)}},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=function(S){return S.replace(c,R)},w=function(S){var I=[0,2,1][S.length%3],C=S.charCodeAt(0)<<16|(S.length>1?S.charCodeAt(1):0)<<8|(S.length>2?S.charCodeAt(2):0),W=[j.charAt(C>>>18),j.charAt(C>>>12&63),I>=2?"=":j.charAt(C>>>6&63),I>=1?"=":j.charAt(C&63)];return W.join("")},y=z.btoa&&typeof z.btoa=="function"?function(S){return z.btoa(S)}:function(S){if(S.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return S.replace(/[\s\S]{1,3}/g,w)},f=function(S){return y(g(String(S)))},m=function(S){return S.replace(/[+\/]/g,function(I){return I=="+"?"-":"_"}).replace(/=/g,"")},a=function(S,I){return I?m(f(S)):f(S)},n=function(S){return a(S,!0)},o;z.Uint8Array&&(o=function(S,I){for(var C="",W=0,Y=S.length;W>>18)+j.charAt(le>>>12&63)+(typeof F!="undefined"?j.charAt(le>>>6&63):"=")+(typeof q!="undefined"?j.charAt(le&63):"=")}return I?m(C):C});var u=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(S){switch(S.length){case 4:var I=(7&S.charCodeAt(0))<<18|(63&S.charCodeAt(1))<<12|(63&S.charCodeAt(2))<<6|63&S.charCodeAt(3),C=I-65536;return _((C>>>10)+55296)+_((C&1023)+56320);case 3:return _((15&S.charCodeAt(0))<<12|(63&S.charCodeAt(1))<<6|63&S.charCodeAt(2));default:return _((31&S.charCodeAt(0))<<6|63&S.charCodeAt(1))}},E=function(S){return S.replace(u,x)},v=function(S){var I=S.length,C=I%4,W=(I>0?U[S.charAt(0)]<<18:0)|(I>1?U[S.charAt(1)]<<12:0)|(I>2?U[S.charAt(2)]<<6:0)|(I>3?U[S.charAt(3)]:0),Y=[_(W>>>16),_(W>>>8&255),_(W&255)];return Y.length-=[0,0,2,1][C],Y.join("")},O=z.atob&&typeof z.atob=="function"?function(S){return z.atob(S)}:function(S){return S.replace(/\S{1,4}/g,v)},A=function(S){return O(String(S).replace(/[^A-Za-z0-9\+\/]/g,""))},p=function(S){return E(O(S))},h=function(S){return String(S).replace(/[-_]/g,function(I){return I=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},s=function(S){return p(h(S))},l;z.Uint8Array&&(l=function(S){return Uint8Array.from(A(h(S)),function(I){return I.charCodeAt(0)})});var D=function(){var S=z.Base64;return z.Base64=B,S};if(z.Base64={VERSION:M,atob:A,btoa:y,fromBase64:s,toBase64:a,utob:g,encode:a,encodeURI:n,btou:E,decode:s,noConflict:D,fromUint8Array:o,toUint8Array:l},typeof Object.defineProperty=="function"){var T=function(S){return{value:S,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T(function(){return s(this)})),Object.defineProperty(String.prototype,"toBase64",T(function(S){return a(this,S)})),Object.defineProperty(String.prototype,"toBase64URI",T(function(){return a(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),et.exports?et.exports.Base64=z.Base64:!(K=[],k=function(){return z.Base64}.apply(de,K),k!==void 0&&(et.exports=k)),{Base64:z.Base64}})}).call(this,N("IyRk"))},JWDV:function(et,de,N){et.exports=N.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(et,de,N){"use strict";N.d(de,"c",function(){return K}),N.d(de,"d",function(){return k}),N.d(de,"f",function(){return B}),N.d(de,"a",function(){return M}),N.d(de,"b",function(){return j}),N.d(de,"e",function(){return U});var ee=function(){var _=function(R,c){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var y in w)w.hasOwnProperty(y)&&(g[y]=w[y])},_(R,c)};return function(R,c){_(R,c);function g(){this.constructor=R}R.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}}(),K={done:!0,value:void 0},k;(function(_){var R={next:function(){return K}};function c(){return R}_.empty=c;function g(E){var v=!1;return{next:function(){return v?K:(v=!0,{done:!1,value:E})}}}_.single=g;function w(E,v,O){return v===void 0&&(v=0),O===void 0&&(O=E.length),{next:function(){return v>=O?K:{done:!1,value:E[v++]}}}}_.fromArray=w;function y(E){return{next:function(){var v=E.next();return v.done?K:{done:!1,value:v.value}}}}_.fromNativeIterator=y;function f(E){return E?Array.isArray(E)?_.fromArray(E):E:_.empty()}_.from=f;function m(E,v){return{next:function(){var O=E.next();return O.done?K:{done:!1,value:v(O.value)}}}}_.map=m;function a(E,v){return{next:function(){for(;;){var O=E.next();if(O.done)return K;if(v(O.value))return{done:!1,value:O.value}}}}}_.filter=a;function n(E,v){for(var O=E.next();!O.done;O=E.next())v(O.value)}_.forEach=n;function o(E,v){v===void 0&&(v=Number.POSITIVE_INFINITY);var O=[];if(v===0)return O;for(var A=0,p=E.next();!p.done&&!(O.push(p.value),++A>=v);p=E.next());return O}_.collect=o;function u(){for(var E=[],v=0;v=E.length)return K;var A=E[O],p=A.next();return p.done?(O++,this.next()):p}}}_.concat=u;function x(E){return new z(E)}_.chain=x})(k||(k={}));var z=function(){function _(R){this.it=R}return _.prototype.next=function(){return this.it.next()},_}();function B(_){return Array.isArray(_)?k.fromArray(_):_||k.empty()}var M=function(){function _(R,c,g,w){c===void 0&&(c=0),g===void 0&&(g=R.length),w===void 0&&(w=c-1),this.items=R,this.start=c,this.end=g,this.index=w}return _.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},_.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},_}(),j=function(_){ee(R,_);function R(c,g,w,y){return g===void 0&&(g=0),w===void 0&&(w=c.length),y===void 0&&(y=g-1),_.call(this,c,g,w,y)||this}return R.prototype.current=function(){return _.prototype.current.call(this)},R.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.last=function(){return this.index=this.end-1,this.current()},R.prototype.parent=function(){return null},R}(M),U=function(){function _(R,c){this.iterator=R,this.fn=c}return _.prototype.next=function(){return this.fn(this.iterator.next())},_}()},JeFH:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(et,de,N){et.exports=N.p+"static/qrcode.54870d9b.png"},LdHM:function(et,de,N){"use strict";N.d(de,"b",function(){return u}),N.d(de,"a",function(){return E});var ee=N("1OyB"),K=N("vuIU"),k=N("Ji7U"),z=N("LK+K"),B=N("q1tI"),M=N("rePB"),j=N("Ff2n"),U=N("ODXe"),_=N("4IlW"),R=N("bX4T"),c=N("YrtM"),g=N("TSYQ"),w=N.n(g),y=N("+nKL"),f=N("8OUc"),m=function(q,le){var pe=q.prefixCls,Ae=q.id,Ge=q.flattenOptions,Fe=q.childrenAsData,Ue=q.values,_e=q.searchValue,je=q.multiple,xe=q.defaultActiveFirstOption,he=q.height,te=q.itemHeight,ye=q.notFoundContent,ue=q.open,Le=q.menuItemSelectedIcon,ae=q.virtual,oe=q.onSelect,Se=q.onToggleOpen,Me=q.onActiveValue,We=q.onScroll,Ke=q.onMouseEnter,Qe="".concat(pe,"-item"),Ze=Object(c.a)(function(){return Ge},[ue,Ge],function(nt,Te){return Te[0]&&nt[1]!==Te[1]}),yt=B.useRef(null),vt=function(Te){Te.preventDefault()},dt=function(Te){yt.current&&yt.current.scrollTo({index:Te})},pt=function(Te){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,be=Ze.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(O.a)(F).map(function(le,pe){if(!B.isValidElement(le)||!le.type)return null;var Ae=le.type.isSelectOptGroup,Ge=le.key,Fe=le.props,Ue=Fe.children,_e=Object(j.a)(Fe,["children"]);return q||!Ae?A(le):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Ge===null?pe:Ge,"__"),label:Ge},_e),{},{options:p(Ue)})}).filter(function(le){return le})}var h=N("2Qr1"),s=N("qNPg"),l=N("U8pU"),D=N("Kwbf"),T=N("WKfj");function S(F){var q=F.mode,le=F.options,pe=F.children,Ae=F.backfill,Ge=F.allowClear,Fe=F.placeholder,Ue=F.getInputElement,_e=F.showSearch,je=F.onSearch,xe=F.defaultOpen,he=F.autoFocus,te=F.labelInValue,ye=F.value,ue=F.inputValue,Le=F.optionLabelProp,ae=q==="multiple"||q==="tags",oe=_e!==void 0?_e:ae||q==="combobox",Se=le||p(pe);if(Object(D.a)(q!=="tags"||Se.every(function(Qe){return!Qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var Me=Se.some(function(Qe){return Qe.options?Qe.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in Qe?Qe.value:Qe.key)=="number"});Object(D.a)(!Me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(q!=="combobox"||!Le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(q==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(D.a)(q==="combobox"||!Ue,"`getInputElement` only work with `combobox` mode."),Object(D.b)(q!=="combobox"||!Ue||!Ge||!Fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!oe&&q!=="combobox"&&q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!xe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ye!=null){var We=Object(T.d)(ye);Object(D.a)(!te||We.every(function(Qe){return Object(l.a)(Qe)==="object"&&("key"in Qe||"value"in Qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!ae||Array.isArray(ye),"`value` should be array when `mode` is `multiple` or `tags`")}if(pe){var Ke=null;Object(O.a)(pe).some(function(Qe){if(!B.isValidElement(Qe)||!Qe.type)return!1;var Ze=Qe.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var yt=Object(O.a)(Qe.props.children).every(function(vt){return!B.isValidElement(vt)||!Qe.type||vt.type.isSelectOption?!0:(Ke=vt.type,!1)});return!yt}return Ke=Ze,!0}),Ke&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(D.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var I=S,C=Object(s.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:p,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:I,fillOptionsWithMissingValue:h.a}),W=function(F){Object(k.a)(le,F);var q=Object(z.a)(le);function le(){var pe;return Object(ee.a)(this,le),pe=q.apply(this,arguments),pe.selectRef=B.createRef(),pe.focus=function(){pe.selectRef.current.focus()},pe.blur=function(){pe.selectRef.current.blur()},pe}return Object(K.a)(le,[{key:"render",value:function(){return B.createElement(C,Object.assign({ref:this.selectRef},this.props))}}]),le}(B.Component);W.Option=u,W.OptGroup=E;var Y=W,H=de.c=Y},M8RZ:function(et,de,N){"use strict";N.d(de,"a",function(){return _});var ee=N("fWQN"),K=N("mtLc"),k=N("yKVA"),z=N("879j"),B=N("q1tI"),M=N.n(B),j=N("i8i4"),U=N.n(j),_=function(R){Object(k.a)(g,R);var c=Object(z.a)(g);function g(w){var y;Object(ee.a)(this,g),y=c.call(this,w);var f=window.document;return y.node=f.createElement("div"),f.body.appendChild(y.node),y}return Object(K.a)(g,[{key:"render",value:function(){var y=this.props.children;return Object(j.createPortal)(y,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),g}(M.a.Component)},MI8n:function(et,de,N){"use strict";N.d(de,"b",function(){return M}),N.d(de,"a",function(){return _}),N.d(de,"e",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"f",function(){return w});var ee=N("/cxE"),K=N("C/vA"),k=N("pmY6"),z=N("24hK"),B=function(){var y=function(f,m){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},y(f,m)};return function(f,m){y(f,m);function a(){this.constructor=f}f.prototype=m===null?Object.create(m):(a.prototype=m.prototype,new a)}}(),M;(function(y){y.None=function(){return k.a.None};function f(I){return function(C,W,Y){W===void 0&&(W=null);var H=!1,F;return F=I(function(q){return H?void 0:(F?F.dispose():H=!0,C.call(W,q))},null,Y),H&&F.dispose(),F}}y.once=f;function m(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return W.call(Y,C(F))},null,H)})}y.map=m;function a(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){C(F),W.call(Y,F)},null,H)})}y.forEach=a;function n(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return C(F)&&W.call(Y,F)},null,H)})}y.filter=n;function o(I){return I}y.signal=o;function u(){for(var I=[],C=0;C1)&&Ae.fire(Fe),pe=0},W)})},onLastListenerRemove:function(){F.dispose()}});return Ae.event}y.debounce=v;function O(I){var C=new Date().getTime();return m(f(I),function(W){return new Date().getTime()-C})}y.stopwatch=O;function A(I){var C=!0,W;return n(I,function(Y){var H=C||Y!==W;return C=!1,W=Y,H})}y.latch=A;function p(I,C,W){C===void 0&&(C=!1),W===void 0&&(W=[]);var Y=W.slice(),H=I(function(le){Y?Y.push(le):q.fire(le)}),F=function(){Y&&Y.forEach(function(le){return q.fire(le)}),Y=null},q=new _({onFirstListenerAdd:function(){H||(H=I(function(le){return q.fire(le)}))},onFirstListenerDidAdd:function(){Y&&(C?setTimeout(F):F())},onLastListenerRemove:function(){H&&H.dispose(),H=null}});return q.event}y.buffer=p;var h=function(){function I(C){this.event=C}return I.prototype.map=function(C){return new I(m(this.event,C))},I.prototype.forEach=function(C){return new I(a(this.event,C))},I.prototype.filter=function(C){return new I(n(this.event,C))},I.prototype.reduce=function(C,W){return new I(x(this.event,C,W))},I.prototype.latch=function(){return new I(A(this.event))},I.prototype.debounce=function(C,W,Y,H){return W===void 0&&(W=100),Y===void 0&&(Y=!1),new I(v(this.event,C,W,Y,H))},I.prototype.on=function(C,W,Y){return this.event(C,W,Y)},I.prototype.once=function(C,W,Y){return f(this.event)(C,W,Y)},I}();function s(I){return new h(I)}y.chain=s;function l(I,C,W){W===void 0&&(W=function(le){return le});var Y=function(){for(var le=[],pe=0;peAn error occurred:

          "+Oe(Ie.message+"",!0)+"
          ";throw Ie}}He.options=He.setOptions=function(Te){return At(He.defaults,Te),Je(He.defaults),He},He.getDefaults=we,He.defaults=st,He.use=function(Te){var ge=At({},Te);if(Te.renderer&&function(){var re=He.defaults.renderer||new Qe,ie=function(Be){var Ie=re[Be];re[Be]=function(){for(var ut=arguments.length,bt=new Array(ut),Tt=0;Tt`,triples:"",explode:"[]{}"},P=ee.Pos;ee.defineOption("autoCloseBrackets",!1,function(f,m,a){a&&a!=ee.Init&&(f.removeKeyMap(B),f.state.closeBrackets=null),m&&(M(z(m,"pairs")),f.state.closeBrackets=m,f.addKeyMap(B))});function z(f,m){return m=="pairs"&&typeof f=="string"?f:typeof f=="object"&&f[m]!=null?f[m]:K[m]}var B={Backspace:_,Enter:R};function M(f){for(var m=0;m=0;o--){var x=n[o].head;f.replaceRange("",P(x.line,x.ch-1),P(x.line,x.ch+1),"+delete")}}function R(f){var m=U(f),a=m&&z(m,"explode");if(!a||f.getOption("disableInput"))return ee.Pass;for(var n=f.listSelections(),o=0;o0;return{anchor:new P(f.anchor.line,f.anchor.ch+(m?-1:1)),head:new P(f.head.line,f.head.ch+(m?1:-1))}}function g(f,m){var a=U(f);if(!a||f.getOption("disableInput"))return ee.Pass;var n=z(a,"pairs"),o=n.indexOf(m);if(o==-1)return ee.Pass;for(var u=z(a,"closeBefore"),x=z(a,"triples"),E=n.charAt(o+1)==m,v=f.listSelections(),O=o%2==0,A,p=0;p=0&&f.getRange(s,P(s.line,s.ch+3))==m+m+m?l="skipThree":l="skip";else if(E&&s.ch>1&&x.indexOf(m)>=0&&f.getRange(P(s.line,s.ch-2),s)==m+m){if(s.ch>2&&/\bstring/.test(f.getTokenTypeAt(P(s.line,s.ch-2))))return ee.Pass;l="addFour"}else if(E){var T=s.ch==0?" ":f.getRange(P(s.line,s.ch-1),s);if(!ee.isWordChar(D)&&T!=m&&!ee.isWordChar(T))l="both";else return ee.Pass}else if(O&&(D.length===0||/\s/.test(D)||u.indexOf(D)>-1))l="both";else return ee.Pass;if(!A)A=l;else if(A!=l)return ee.Pass}var S=o%2?n.charAt(o-1):m,I=o%2?m:n.charAt(o+1);f.operation(function(){if(A=="skip")f.execCommand("goCharRight");else if(A=="skipThree")for(var C=0;C<3;C++)f.execCommand("goCharRight");else if(A=="surround"){for(var W=f.getSelections(),C=0;C>>6)+_(128|I&63):_(224|I>>>12&15)+_(128|I>>>6&63)+_(128|I&63)}else{var I=65536+(S.charCodeAt(0)-55296)*1024+(S.charCodeAt(1)-56320);return _(240|I>>>18&7)+_(128|I>>>12&63)+_(128|I>>>6&63)+_(128|I&63)}},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=function(S){return S.replace(c,R)},w=function(S){var I=[0,2,1][S.length%3],C=S.charCodeAt(0)<<16|(S.length>1?S.charCodeAt(1):0)<<8|(S.length>2?S.charCodeAt(2):0),W=[j.charAt(C>>>18),j.charAt(C>>>12&63),I>=2?"=":j.charAt(C>>>6&63),I>=1?"=":j.charAt(C&63)];return W.join("")},y=z.btoa&&typeof z.btoa=="function"?function(S){return z.btoa(S)}:function(S){if(S.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return S.replace(/[\s\S]{1,3}/g,w)},f=function(S){return y(g(String(S)))},m=function(S){return S.replace(/[+\/]/g,function(I){return I=="+"?"-":"_"}).replace(/=/g,"")},a=function(S,I){return I?m(f(S)):f(S)},n=function(S){return a(S,!0)},o;z.Uint8Array&&(o=function(S,I){for(var C="",W=0,Y=S.length;W>>18)+j.charAt(le>>>12&63)+(typeof F!="undefined"?j.charAt(le>>>6&63):"=")+(typeof q!="undefined"?j.charAt(le&63):"=")}return I?m(C):C});var u=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(S){switch(S.length){case 4:var I=(7&S.charCodeAt(0))<<18|(63&S.charCodeAt(1))<<12|(63&S.charCodeAt(2))<<6|63&S.charCodeAt(3),C=I-65536;return _((C>>>10)+55296)+_((C&1023)+56320);case 3:return _((15&S.charCodeAt(0))<<12|(63&S.charCodeAt(1))<<6|63&S.charCodeAt(2));default:return _((31&S.charCodeAt(0))<<6|63&S.charCodeAt(1))}},E=function(S){return S.replace(u,x)},v=function(S){var I=S.length,C=I%4,W=(I>0?U[S.charAt(0)]<<18:0)|(I>1?U[S.charAt(1)]<<12:0)|(I>2?U[S.charAt(2)]<<6:0)|(I>3?U[S.charAt(3)]:0),Y=[_(W>>>16),_(W>>>8&255),_(W&255)];return Y.length-=[0,0,2,1][C],Y.join("")},O=z.atob&&typeof z.atob=="function"?function(S){return z.atob(S)}:function(S){return S.replace(/\S{1,4}/g,v)},A=function(S){return O(String(S).replace(/[^A-Za-z0-9\+\/]/g,""))},p=function(S){return E(O(S))},h=function(S){return String(S).replace(/[-_]/g,function(I){return I=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},s=function(S){return p(h(S))},l;z.Uint8Array&&(l=function(S){return Uint8Array.from(A(h(S)),function(I){return I.charCodeAt(0)})});var D=function(){var S=z.Base64;return z.Base64=B,S};if(z.Base64={VERSION:M,atob:A,btoa:y,fromBase64:s,toBase64:a,utob:g,encode:a,encodeURI:n,btou:E,decode:s,noConflict:D,fromUint8Array:o,toUint8Array:l},typeof Object.defineProperty=="function"){var T=function(S){return{value:S,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T(function(){return s(this)})),Object.defineProperty(String.prototype,"toBase64",T(function(S){return a(this,S)})),Object.defineProperty(String.prototype,"toBase64URI",T(function(){return a(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),et.exports?et.exports.Base64=z.Base64:!(K=[],P=function(){return z.Base64}.apply(de,K),P!==void 0&&(et.exports=P)),{Base64:z.Base64}})}).call(this,N("IyRk"))},JWDV:function(et,de,N){et.exports=N.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(et,de,N){"use strict";N.d(de,"c",function(){return K}),N.d(de,"d",function(){return P}),N.d(de,"f",function(){return B}),N.d(de,"a",function(){return M}),N.d(de,"b",function(){return j}),N.d(de,"e",function(){return U});var ee=function(){var _=function(R,c){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var y in w)w.hasOwnProperty(y)&&(g[y]=w[y])},_(R,c)};return function(R,c){_(R,c);function g(){this.constructor=R}R.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}}(),K={done:!0,value:void 0},P;(function(_){var R={next:function(){return K}};function c(){return R}_.empty=c;function g(E){var v=!1;return{next:function(){return v?K:(v=!0,{done:!1,value:E})}}}_.single=g;function w(E,v,O){return v===void 0&&(v=0),O===void 0&&(O=E.length),{next:function(){return v>=O?K:{done:!1,value:E[v++]}}}}_.fromArray=w;function y(E){return{next:function(){var v=E.next();return v.done?K:{done:!1,value:v.value}}}}_.fromNativeIterator=y;function f(E){return E?Array.isArray(E)?_.fromArray(E):E:_.empty()}_.from=f;function m(E,v){return{next:function(){var O=E.next();return O.done?K:{done:!1,value:v(O.value)}}}}_.map=m;function a(E,v){return{next:function(){for(;;){var O=E.next();if(O.done)return K;if(v(O.value))return{done:!1,value:O.value}}}}}_.filter=a;function n(E,v){for(var O=E.next();!O.done;O=E.next())v(O.value)}_.forEach=n;function o(E,v){v===void 0&&(v=Number.POSITIVE_INFINITY);var O=[];if(v===0)return O;for(var A=0,p=E.next();!p.done&&!(O.push(p.value),++A>=v);p=E.next());return O}_.collect=o;function u(){for(var E=[],v=0;v=E.length)return K;var A=E[O],p=A.next();return p.done?(O++,this.next()):p}}}_.concat=u;function x(E){return new z(E)}_.chain=x})(P||(P={}));var z=function(){function _(R){this.it=R}return _.prototype.next=function(){return this.it.next()},_}();function B(_){return Array.isArray(_)?P.fromArray(_):_||P.empty()}var M=function(){function _(R,c,g,w){c===void 0&&(c=0),g===void 0&&(g=R.length),w===void 0&&(w=c-1),this.items=R,this.start=c,this.end=g,this.index=w}return _.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},_.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},_}(),j=function(_){ee(R,_);function R(c,g,w,y){return g===void 0&&(g=0),w===void 0&&(w=c.length),y===void 0&&(y=g-1),_.call(this,c,g,w,y)||this}return R.prototype.current=function(){return _.prototype.current.call(this)},R.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.last=function(){return this.index=this.end-1,this.current()},R.prototype.parent=function(){return null},R}(M),U=function(){function _(R,c){this.iterator=R,this.fn=c}return _.prototype.next=function(){return this.fn(this.iterator.next())},_}()},JeFH:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(et,de,N){et.exports=N.p+"static/qrcode.54870d9b.png"},LdHM:function(et,de,N){"use strict";N.d(de,"b",function(){return u}),N.d(de,"a",function(){return E});var ee=N("1OyB"),K=N("vuIU"),P=N("Ji7U"),z=N("LK+K"),B=N("q1tI"),M=N("rePB"),j=N("Ff2n"),U=N("ODXe"),_=N("4IlW"),R=N("bX4T"),c=N("YrtM"),g=N("TSYQ"),w=N.n(g),y=N("+nKL"),f=N("8OUc"),m=function(q,le){var pe=q.prefixCls,Ae=q.id,Ge=q.flattenOptions,Fe=q.childrenAsData,Ue=q.values,_e=q.searchValue,je=q.multiple,xe=q.defaultActiveFirstOption,he=q.height,te=q.itemHeight,ye=q.notFoundContent,ue=q.open,Le=q.menuItemSelectedIcon,ae=q.virtual,oe=q.onSelect,Se=q.onToggleOpen,Me=q.onActiveValue,We=q.onScroll,Ke=q.onMouseEnter,Qe="".concat(pe,"-item"),Ze=Object(c.a)(function(){return Ge},[ue,Ge],function(nt,Te){return Te[0]&&nt[1]!==Te[1]}),yt=B.useRef(null),vt=function(Te){Te.preventDefault()},dt=function(Te){yt.current&&yt.current.scrollTo({index:Te})},pt=function(Te){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,be=Ze.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(O.a)(F).map(function(le,pe){if(!B.isValidElement(le)||!le.type)return null;var Ae=le.type.isSelectOptGroup,Ge=le.key,Fe=le.props,Ue=Fe.children,_e=Object(j.a)(Fe,["children"]);return q||!Ae?A(le):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Ge===null?pe:Ge,"__"),label:Ge},_e),{},{options:p(Ue)})}).filter(function(le){return le})}var h=N("2Qr1"),s=N("qNPg"),l=N("U8pU"),D=N("Kwbf"),T=N("WKfj");function S(F){var q=F.mode,le=F.options,pe=F.children,Ae=F.backfill,Ge=F.allowClear,Fe=F.placeholder,Ue=F.getInputElement,_e=F.showSearch,je=F.onSearch,xe=F.defaultOpen,he=F.autoFocus,te=F.labelInValue,ye=F.value,ue=F.inputValue,Le=F.optionLabelProp,ae=q==="multiple"||q==="tags",oe=_e!==void 0?_e:ae||q==="combobox",Se=le||p(pe);if(Object(D.a)(q!=="tags"||Se.every(function(Qe){return!Qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var Me=Se.some(function(Qe){return Qe.options?Qe.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in Qe?Qe.value:Qe.key)=="number"});Object(D.a)(!Me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(q!=="combobox"||!Le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(q==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(D.a)(q==="combobox"||!Ue,"`getInputElement` only work with `combobox` mode."),Object(D.b)(q!=="combobox"||!Ue||!Ge||!Fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!oe&&q!=="combobox"&&q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!xe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ye!=null){var We=Object(T.d)(ye);Object(D.a)(!te||We.every(function(Qe){return Object(l.a)(Qe)==="object"&&("key"in Qe||"value"in Qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!ae||Array.isArray(ye),"`value` should be array when `mode` is `multiple` or `tags`")}if(pe){var Ke=null;Object(O.a)(pe).some(function(Qe){if(!B.isValidElement(Qe)||!Qe.type)return!1;var Ze=Qe.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var yt=Object(O.a)(Qe.props.children).every(function(vt){return!B.isValidElement(vt)||!Qe.type||vt.type.isSelectOption?!0:(Ke=vt.type,!1)});return!yt}return Ke=Ze,!0}),Ke&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(D.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var I=S,C=Object(s.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:p,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:I,fillOptionsWithMissingValue:h.a}),W=function(F){Object(P.a)(le,F);var q=Object(z.a)(le);function le(){var pe;return Object(ee.a)(this,le),pe=q.apply(this,arguments),pe.selectRef=B.createRef(),pe.focus=function(){pe.selectRef.current.focus()},pe.blur=function(){pe.selectRef.current.blur()},pe}return Object(K.a)(le,[{key:"render",value:function(){return B.createElement(C,Object.assign({ref:this.selectRef},this.props))}}]),le}(B.Component);W.Option=u,W.OptGroup=E;var Y=W,H=de.c=Y},M8RZ:function(et,de,N){"use strict";N.d(de,"a",function(){return _});var ee=N("fWQN"),K=N("mtLc"),P=N("yKVA"),z=N("879j"),B=N("q1tI"),M=N.n(B),j=N("i8i4"),U=N.n(j),_=function(R){Object(P.a)(g,R);var c=Object(z.a)(g);function g(w){var y;Object(ee.a)(this,g),y=c.call(this,w);var f=window.document;return y.node=f.createElement("div"),f.body.appendChild(y.node),y}return Object(K.a)(g,[{key:"render",value:function(){var y=this.props.children;return Object(j.createPortal)(y,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),g}(M.a.Component)},MI8n:function(et,de,N){"use strict";N.d(de,"b",function(){return M}),N.d(de,"a",function(){return _}),N.d(de,"e",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"f",function(){return w});var ee=N("/cxE"),K=N("C/vA"),P=N("pmY6"),z=N("24hK"),B=function(){var y=function(f,m){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o])},y(f,m)};return function(f,m){y(f,m);function a(){this.constructor=f}f.prototype=m===null?Object.create(m):(a.prototype=m.prototype,new a)}}(),M;(function(y){y.None=function(){return P.a.None};function f(I){return function(C,W,Y){W===void 0&&(W=null);var H=!1,F;return F=I(function(q){return H?void 0:(F?F.dispose():H=!0,C.call(W,q))},null,Y),H&&F.dispose(),F}}y.once=f;function m(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return W.call(Y,C(F))},null,H)})}y.map=m;function a(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){C(F),W.call(Y,F)},null,H)})}y.forEach=a;function n(I,C){return E(function(W,Y,H){return Y===void 0&&(Y=null),I(function(F){return C(F)&&W.call(Y,F)},null,H)})}y.filter=n;function o(I){return I}y.signal=o;function u(){for(var I=[],C=0;C1)&&Ae.fire(Fe),pe=0},W)})},onLastListenerRemove:function(){F.dispose()}});return Ae.event}y.debounce=v;function O(I){var C=new Date().getTime();return m(f(I),function(W){return new Date().getTime()-C})}y.stopwatch=O;function A(I){var C=!0,W;return n(I,function(Y){var H=C||Y!==W;return C=!1,W=Y,H})}y.latch=A;function p(I,C,W){C===void 0&&(C=!1),W===void 0&&(W=[]);var Y=W.slice(),H=I(function(le){Y?Y.push(le):q.fire(le)}),F=function(){Y&&Y.forEach(function(le){return q.fire(le)}),Y=null},q=new _({onFirstListenerAdd:function(){H||(H=I(function(le){return q.fire(le)}))},onFirstListenerDidAdd:function(){Y&&(C?setTimeout(F):F())},onLastListenerRemove:function(){H&&H.dispose(),H=null}});return q.event}y.buffer=p;var h=function(){function I(C){this.event=C}return I.prototype.map=function(C){return new I(m(this.event,C))},I.prototype.forEach=function(C){return new I(a(this.event,C))},I.prototype.filter=function(C){return new I(n(this.event,C))},I.prototype.reduce=function(C,W){return new I(x(this.event,C,W))},I.prototype.latch=function(){return new I(A(this.event))},I.prototype.debounce=function(C,W,Y,H){return W===void 0&&(W=100),Y===void 0&&(Y=!1),new I(v(this.event,C,W,Y,H))},I.prototype.on=function(C,W,Y){return this.event(C,W,Y)},I.prototype.once=function(C,W,Y){return f(this.event)(C,W,Y)},I}();function s(I){return new h(I)}y.chain=s;function l(I,C,W){W===void 0&&(W=function(le){return le});var Y=function(){for(var le=[],pe=0;pe0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(y.prototype,"event",{get:function(){var f=this;return this._event||(this._event=function(m,a,n){f._listeners||(f._listeners=new z.a);var o=f._listeners.isEmpty();o&&f._options&&f._options.onFirstListenerAdd&&f._options.onFirstListenerAdd(f);var u=f._listeners.push(a?[m,a]:m);o&&f._options&&f._options.onFirstListenerDidAdd&&f._options.onFirstListenerDidAdd(f),f._options&&f._options.onListenerDidAdd&&f._options.onListenerDidAdd(f,m,a);var x;f._leakageMon&&(x=f._leakageMon.check(f._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=y._noop,!f._disposed&&(u(),f._options&&f._options.onLastListenerRemove)){var v=f._listeners&&!f._listeners.isEmpty();v||f._options.onLastListenerRemove(f)}}},n instanceof k.b?n.add(E):Array.isArray(n)&&n.push(E),E}),this._event},enumerable:!0,configurable:!0}),y.prototype.fire=function(f){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.a);for(var m=this._listeners.iterator(),a=m.next();!a.done;a=m.next())this._deliveryQueue.push([a.value,f]);for(;this._deliveryQueue.size>0;){var n=this._deliveryQueue.shift(),o=n[0],u=n[1];try{typeof o=="function"?o.call(void 0,u):o[0].call(o[1],u)}catch(x){Object(ee.e)(x)}}}},y.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},y._noop=function(){},y}(),R=function(y){B(f,y);function f(m){var a=y.call(this,m)||this;return a._isPaused=0,a._eventQueue=new z.a,a._mergeFn=m&&m.merge,a}return f.prototype.pause=function(){this._isPaused++},f.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),y.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)y.prototype.fire.call(this,this._eventQueue.shift())},f.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):y.prototype.fire.call(this,m))},f}(_),c=function(){function y(){var f=this;this.hasListeners=!1,this.events=[],this.emitter=new _({onFirstListenerAdd:function(){return f.onFirstListenerAdd()},onLastListenerRemove:function(){return f.onLastListenerRemove()}})}return Object.defineProperty(y.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),y.prototype.add=function(f){var m=this,a={event:f,listener:null};this.events.push(a),this.hasListeners&&this.hook(a);var n=function(){m.hasListeners&&m.unhook(a);var o=m.events.indexOf(a);m.events.splice(o,1)};return Object(k.h)(Object(K.a)(n))},y.prototype.onFirstListenerAdd=function(){var f=this;this.hasListeners=!0,this.events.forEach(function(m){return f.hook(m)})},y.prototype.onLastListenerRemove=function(){var f=this;this.hasListeners=!1,this.events.forEach(function(m){return f.unhook(m)})},y.prototype.hook=function(f){var m=this;f.listener=f.event(function(a){return m.emitter.fire(a)})},y.prototype.unhook=function(f){f.listener&&f.listener.dispose(),f.listener=null},y.prototype.dispose=function(){this.emitter.dispose()},y}(),g=function(){function y(){this.buffers=[]}return y.prototype.wrapEvent=function(f){var m=this;return function(a,n,o){return f(function(u){var x=m.buffers[m.buffers.length-1];x?x.push(function(){return a.call(n,u)}):a.call(n,u)},void 0,o)}},y.prototype.bufferEvents=function(f){var m=[];this.buffers.push(m);var a=f();return this.buffers.pop(),m.forEach(function(n){return n()}),a},y}(),w=function(){function y(){var f=this;this.listening=!1,this.inputEvent=M.None,this.inputEventListener=k.a.None,this.emitter=new _({onFirstListenerDidAdd:function(){f.listening=!0,f.inputEventListener=f.inputEvent(f.emitter.fire,f.emitter)},onLastListenerRemove:function(){f.listening=!1,f.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(y.prototype,"input",{set:function(f){this.inputEvent=f,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=f(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),y.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},y}()},N0LK:function(et,de,N){"use strict";N.d(de,"x",function(){return ee}),N.d(de,"F",function(){return K}),N.d(de,"r",function(){return z}),N.d(de,"o",function(){return B}),N.d(de,"p",function(){return M}),N.d(de,"Q",function(){return j}),N.d(de,"K",function(){return _}),N.d(de,"k",function(){return R}),N.d(de,"N",function(){return c}),N.d(de,"m",function(){return g}),N.d(de,"l",function(){return w}),N.d(de,"I",function(){return y}),N.d(de,"H",function(){return f}),N.d(de,"q",function(){return m}),N.d(de,"t",function(){return a}),N.d(de,"D",function(){return n}),N.d(de,"e",function(){return o}),N.d(de,"f",function(){return u}),N.d(de,"B",function(){return x}),N.d(de,"C",function(){return E}),N.d(de,"n",function(){return O}),N.d(de,"O",function(){return p}),N.d(de,"c",function(){return h}),N.d(de,"d",function(){return s}),N.d(de,"z",function(){return l}),N.d(de,"A",function(){return D}),N.d(de,"u",function(){return T}),N.d(de,"E",function(){return I}),N.d(de,"G",function(){return C}),N.d(de,"i",function(){return Y}),N.d(de,"g",function(){return F}),N.d(de,"v",function(){return le}),N.d(de,"h",function(){return pe}),N.d(de,"y",function(){return Ae}),N.d(de,"w",function(){return Ge}),N.d(de,"a",function(){return Fe}),N.d(de,"P",function(){return Ue}),N.d(de,"L",function(){return _e}),N.d(de,"J",function(){return je}),N.d(de,"j",function(){return xe}),N.d(de,"M",function(){return he}),N.d(de,"s",function(){return te}),N.d(de,"b",function(){return ye});function ee(ae){return!ae||typeof ae!="string"?!0:ae.trim().length===0}function K(ae,oe,Se){Se===void 0&&(Se="0");for(var Me=""+ae,We=[Me],Ke=Me.length;Ke=oe.length?Me:oe[Ke]})}function B(ae){return ae.replace(/[<>&]/g,function(oe){switch(oe){case"<":return"<";case">":return">";case"&":return"&";default:return oe}})}function M(ae){return ae.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function j(ae,oe){oe===void 0&&(oe=" ");var Se=U(ae,oe);return _(Se,oe)}function U(ae,oe){if(!ae||!oe)return ae;var Se=oe.length;if(Se===0||ae.length===0)return ae;for(var Me=0;ae.indexOf(oe,Me)===Me;)Me=Me+Se;return ae.substring(Me)}function _(ae,oe){if(!ae||!oe)return ae;var Se=oe.length,Me=ae.length;if(Se===0||Me===0)return ae;for(var We=Me,Ke=-1;!(Ke=ae.lastIndexOf(oe,We-1),Ke===-1||Ke+Se!==We);){if(Ke===0)return"";We=Ke}return ae.substring(0,We)}function R(ae){return ae.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c(ae,oe){if(ae.length0?ae.indexOf(oe,Se)===Se:Se===0?ae===oe:!1}function w(ae,oe,Se){if(Se===void 0&&(Se={}),!ae)throw new Error("Cannot create regex from empty string");oe||(ae=M(ae)),Se.wholeWord&&(/\B/.test(ae.charAt(0))||(ae="\\b"+ae),/\B/.test(ae.charAt(ae.length-1))||(ae=ae+"\\b"));var Me="";return Se.global&&(Me+="g"),Se.matchCase||(Me+="i"),Se.multiline&&(Me+="m"),Se.unicode&&(Me+="u"),new RegExp(ae,Me)}function y(ae){if(ae.source==="^"||ae.source==="^$"||ae.source==="$"||ae.source==="^\\s*$")return!1;var oe=ae.exec("");return!!(oe&&ae.lastIndex===0)}function f(ae){return(ae.global?"g":"")+(ae.ignoreCase?"i":"")+(ae.multiline?"m":"")+(ae.unicode?"u":"")}function m(ae){for(var oe=0,Se=ae.length;oe=0;Se--){var Me=ae.charCodeAt(Se);if(Me!==32&&Me!==9)return Se}return-1}function o(ae,oe){return aeoe?1:0}function u(ae,oe){for(var Se=Math.min(ae.length,oe.length),Me=0;Meoe.length?1:0}function x(ae){return ae>=97&&ae<=122}function E(ae){return ae>=65&&ae<=90}function v(ae){return x(ae)||E(ae)}function O(ae,oe){return ae.length===oe.length&&A(ae,oe)}function A(ae,oe,Se){Se===void 0&&(Se=ae.length);for(var Me=0;Meae.length?!1:A(ae,oe,Se)}function h(ae,oe){var Se,Me=Math.min(ae.length,oe.length);for(Se=0;Se1){var Me=ae.charCodeAt(oe-2);if(l(Me))return(Me-55296<<10)+(Se-56320)+65536}return Se}function I(ae,oe){var Se=ue.getInstance(),Me=oe,We=ae.length,Ke=T(ae,We,oe);oe+=Ke>=65536?2:1;for(var Qe=Se.getGraphemeBreakType(Ke);oe=65536?2:1,Qe=yt}return oe-Me}function C(ae,oe){var Se=ue.getInstance(),Me=oe,We=S(ae,oe);oe-=We>=65536?2:1;for(var Ke=Se.getGraphemeBreakType(We);oe>0;){var Qe=S(ae,oe),Ze=Se.getGraphemeBreakType(Qe);if(ye(Ze,Ke))break;oe-=Qe>=65536?2:1,Ke=Ze}return Me-oe}var W=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Y(ae){return W.test(ae)}var H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function F(ae){return H.test(ae)}var q=/^[\t\n\r\x20-\x7E]*$/;function le(ae){return q.test(ae)}function pe(ae){for(var oe=0,Se=ae.length;oe=11904&&ae<=55215||ae>=63744&&ae<=64255||ae>=65281&&ae<=65374}function Ge(ae){return ae>=127462&&ae<=127487||ae>=9728&&ae<=10175||ae>=127744&&ae<=128591||ae>=128640&&ae<=128764||ae>=128992&&ae<=129003||ae>=129280&&ae<=129535||ae>=129648&&ae<=129651||ae>=129656&&ae<=129666||ae>=129680&&ae<=129685}var Fe=String.fromCharCode(65279);function Ue(ae){return!!(ae&&ae.length>0&&ae.charCodeAt(0)===65279)}function _e(ae){return btoa(encodeURIComponent(ae))}function je(ae,oe){for(var Se="",Me=0;MeSe[3*We+1])We=2*We+1;else return Se[3*We+2];return 0},ae._INSTANCE=null,ae}();function Le(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},Nmxd:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("Kwbf");function K(j,U){var _=new Set;return j.forEach(function(R){U.has(R)||_.add(R)}),_}function k(j){var U=j||{},_=U.disabled,R=U.disableCheckbox,c=U.checkable;return!!(_||R)||c===!1}function z(j,U,_,R){for(var c=new Set(j),g=new Set,w=0;w<=_;w+=1){var y=U.get(w)||new Set;y.forEach(function(n){var o=n.key,u=n.node,x=n.children,E=x===void 0?[]:x;c.has(o)&&!R(u)&&E.filter(function(v){return!R(v.node)}).forEach(function(v){c.add(v.key)})})}for(var f=new Set,m=_;m>=0;m-=1){var a=U.get(m)||new Set;a.forEach(function(n){var o=n.parent,u=n.node;if(R(u)||!n.parent||f.has(n.parent.key))return;if(R(n.parent.node)){f.add(o.key);return}var x=!0,E=!1;(o.children||[]).filter(function(v){return!R(v.node)}).forEach(function(v){var O=v.key,A=c.has(O);x&&!A&&(x=!1),!E&&(A||g.has(O))&&(E=!0)}),x&&c.add(o.key),E&&g.add(o.key),f.add(o.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(K(g,c))}}function B(j,U,_,R,c){for(var g=new Set(j),w=new Set(U),y=0;y<=R;y+=1){var f=_.get(y)||new Set;f.forEach(function(o){var u=o.key,x=o.node,E=o.children,v=E===void 0?[]:E;!g.has(u)&&!w.has(u)&&!c(x)&&v.filter(function(O){return!c(O.node)}).forEach(function(O){g.delete(O.key)})})}w=new Set;for(var m=new Set,a=R;a>=0;a-=1){var n=_.get(a)||new Set;n.forEach(function(o){var u=o.parent,x=o.node;if(c(x)||!o.parent||m.has(o.parent.key))return;if(c(o.parent.node)){m.add(u.key);return}var E=!0,v=!1;(u.children||[]).filter(function(O){return!c(O.node)}).forEach(function(O){var A=O.key,p=g.has(A);E&&!p&&(E=!1),!v&&(p||w.has(A))&&(v=!0)}),E||g.delete(u.key),v&&w.add(u.key),m.add(u.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(K(w,g))}}function M(j,U,_,R){var c=[],g;R?g=R:g=k;var w=new Set(j.filter(function(a){var n=!!_[a];return n||c.push(a),n})),y=new Map,f=0;Object.keys(_).forEach(function(a){var n=_[a],o=n.level,u=y.get(o);u||(u=new Set,y.set(o,u)),u.add(n),f=Math.max(f,o)}),Object(ee.a)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var m;return U===!0?m=z(w,y,f,g):m=B(w,U.halfCheckedKeys,y,f,g),m}},OLES:function(et,de,N){"use strict";var ee=N("U8pU"),K=N("VTBJ"),k=N("Ff2n"),z=N("q1tI"),B=N("uciX"),M=N("7ixt"),j=function(w){var y=w.overlay,f=w.prefixCls,m=w.id,a=w.overlayInnerStyle;return z.createElement("div",{className:"".concat(f,"-inner"),id:m,role:"tooltip",style:a},typeof y=="function"?y():y)},U=j,_=function(w,y){var f=w.overlayClassName,m=w.trigger,a=m===void 0?["hover"]:m,n=w.mouseEnterDelay,o=n===void 0?0:n,u=w.mouseLeaveDelay,x=u===void 0?.1:u,E=w.overlayStyle,v=w.prefixCls,O=v===void 0?"rc-tooltip":v,A=w.children,p=w.onVisibleChange,h=w.afterVisibleChange,s=w.transitionName,l=w.animation,D=w.placement,T=D===void 0?"right":D,S=w.align,I=S===void 0?{}:S,C=w.destroyTooltipOnHide,W=C===void 0?!1:C,Y=w.defaultVisible,H=w.getTooltipContainer,F=w.overlayInnerStyle,q=Object(k.a)(w,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),le=Object(z.useRef)(null);Object(z.useImperativeHandle)(y,function(){return le.current});var pe=Object(K.a)({},q);"visible"in w&&(pe.popupVisible=w.visible);var Ae=function(){var je=w.arrowContent,xe=je===void 0?null:je,he=w.overlay,te=w.id;return[z.createElement("div",{className:"".concat(O,"-arrow"),key:"arrow"},xe),z.createElement(U,{key:"content",prefixCls:O,id:te,overlay:he,overlayInnerStyle:F})]},Ge=!1,Fe=!1;if(typeof W=="boolean")Ge=W;else if(W&&Object(ee.a)(W)==="object"){var Ue=W.keepParent;Ge=Ue===!0,Fe=Ue===!1}return z.createElement(B.a,Object.assign({popupClassName:f,prefixCls:O,popup:Ae,action:a,builtinPlacements:M.a,popupPlacement:T,ref:le,popupAlign:I,getPopupContainer:H,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:s,popupAnimation:l,defaultPopupVisible:Y,destroyPopupOnHide:Ge,autoDestroy:Fe,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:o},pe),A)},R=Object(z.forwardRef)(_),c=de.a=R},OZM5:function(et,de,N){"use strict";N.d(de,"b",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"k",function(){return g}),N.d(de,"h",function(){return w}),N.d(de,"i",function(){return y}),N.d(de,"g",function(){return f}),N.d(de,"c",function(){return m}),N.d(de,"d",function(){return a}),N.d(de,"j",function(){return u}),N.d(de,"e",function(){return x}),N.d(de,"f",function(){return E});var ee=N("KQm4"),K=N("U8pU"),k=N("Ff2n"),z=N("q1tI"),B=N.n(z),M=N("Kwbf"),j=N("WaYH"),U=.25,_=2;function R(v,O){var A=v.slice(),p=A.indexOf(O);return p>=0&&A.splice(p,1),A}function c(v,O){var A=v.slice();return A.indexOf(O)===-1&&A.push(O),A}function g(v){return v.split("-")}function w(v,O){return"".concat(v,"-").concat(O)}function y(v){return v&&v.type&&v.type.isTreeNode}function f(v,O){var A=[v],p=O[v];function h(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(l){var D=l.key,T=l.children;A.push(D),h(T)})}return h(p.children),A}function m(v,O){var A=v.clientY,p=O.selectHandle.getBoundingClientRect(),h=p.top,s=p.bottom,l=p.height,D=Math.max(l*U,_);return A<=h+D?-1:A>=s-D?1:0}function a(v,O){if(!v)return;var A=O.multiple;return A?v.slice():v.length?[v[0]]:v}var n=function(O){return O};function o(v,O){if(!v)return[];var A=O||{},p=A.processProps,h=p===void 0?n:p,s=Array.isArray(v)?v:[v];return s.map(function(l){var D=l.children,T=Object(k.a)(l,["children"]),S=o(D,O);return B.a.createElement(j.a,Object.assign({},h(T)),S)})}function u(v){if(!v)return null;var O;if(Array.isArray(v))O={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(K.a)(v)==="object")O={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(M.a)(!1,"`checkedKeys` is not an array or an object"),null;return O}function x(v,O){var A=new Set;function p(h){if(A.has(h))return;var s=O[h];if(!s)return;A.add(h);var l=s.parent,D=s.node;if(D.disabled)return;l&&p(l.key)}return(v||[]).forEach(function(h){p(h)}),Object(ee.a)(A)}function E(v){var O={};return Object.keys(v).forEach(function(A){(A.startsWith("data-")||A.startsWith("aria-"))&&(O[A]=v[A])}),O}},Ohmc:function(et,de,N){et.exports=N.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(et,de,N){"use strict";var ee=N("2qtc"),K=N("kLXV"),k=N("rAM+"),z=N("miYZ"),B=N("tsqr"),M=N("9og8"),j=N("tJVT"),U=N("jrin"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("VrN/"),y=N.n(w),f=N("bdgK"),m=N("p77/"),a=N("Bd2K"),n=N("ELLl"),o=N("19Vz"),u=N("lZu9"),x=N("+NIl"),E=N("kSUc"),v=N("9Bee"),O=function(Ie){var ut=Ie.value,bt=ut===void 0?"":ut,Tt=Ie.className,xt=Ie.showTextOnly,gt=Ie.showLines,qe=Ie.style,Xe=qe===void 0?{}:qe,ke=Object(c.useMemo)(function(){return""},[bt]);return g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{dangerouslySetInnerHTML:{__html:ke}}))},A=N("0Owb"),p=N("dejd"),h=N("C+DQ"),s=N("1vsH"),l=N("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(Ie){var ut=Ie.onActionCallback,bt=Ie.title,Tt=Ie.icon,xt=Ie.actionName,gt=Ie.className,qe=gt===void 0?"":gt,Xe=Ie.children;function ke(){ut(xt)}return g.a.createElement("a",{title:bt,className:qe,onClick:ke},g.a.createElement("i",{className:"md-iconfont ".concat(Tt)}),Xe)}var S=function(Ie){var ut=Ie.watch,bt=Ie.showNullButton,Tt=Ie.onActionCallback,xt=Ie.fullScreen,gt=Ie.insertTemp,qe=Ie.hidetoolBar,Xe=Ie.uuid,ke=Ie.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(s.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(s.D)("_educoder_session"),"&key=").concat(Xe,"&api=").concat(encodeURIComponent(l.a.PROXY_SERVER)));var se=[].concat(D,[{title:"".concat(ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ut?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return g.a.createElement("ul",{className:"markdown-toolbar-container"},!qe&&se.map(function(fe,$e){return g.a.createElement("li",{key:$e},fe.actionName?g.a.createElement(T,Object(A.a)({},fe,{onActionCallback:Tt})):g.a.createElement("span",{className:"v-line"}))}),bt?g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,gt&&g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(gt),onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),g.a.createElement("li",{className:"btn-full-screen"},g.a.createElement(T,{icon:"".concat(xt?"icon-shrink":"icon-enlarge"),title:xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tt})))},I=N("M8RZ"),C=N("+L6B"),W=N("2/Rp"),Y=N("y8nQ"),H=N("Vl3Y"),F=N("5NDa"),q=N("5rEg"),le={labelCol:{span:4},wrapperCol:{span:20}},pe=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,Object(A.a)({},le,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt}),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},g.a.createElement(q.a,null)),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},g.a.createElement(q.a,null)),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ae=N("7ahc"),Ge=N("k1fw"),Fe=N("HmJG"),Ue=N("BjJ7"),_e=H.a.useForm,je={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}},he=function(Ie){var ut=Ie.callback,bt=Ie.onCancel,Tt=_e(),xt=Object(j.a)(Tt,1),gt=xt[0],qe=Object(c.useRef)();function Xe(fe){ut(Object(Ge.a)(Object(Ge.a)({},fe),{},{name:qe.current}))}function ke(fe,$e){gt.setFieldsValue({src:"/api/attachments/".concat(fe.id,"?type=").concat(fe.content_type),type:$e.type})}function se(fe){var $e=fe.target.files[0];qe.current=$e.name,ye($e,ke)}return g.a.createElement(H.a,Object(A.a)({form:gt},xe,{className:"upload-image-panel",onFinish:Xe}),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},g.a.createElement("div",{className:"flex-container"},g.a.createElement(H.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},g.a.createElement(q.a,{style:je})),g.a.createElement(te,{onFileChange:se}))),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},g.a.createElement(q.a,{style:{width:264}})),g.a.createElement(H.a.Item,{style:{textAlign:"right"}},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))};function te(Ie){var ut=Ie.onFileChange;return g.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",g.a.createElement("input",{type:"file",onChange:ut}))}function ye(Ie,ut){if(!Ie)throw new String("\u6CA1\u6709\u6587\u4EF6");var bt=new FormData;bt.append("editormd-image-file",Ie),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var Tt=new window.XMLHttpRequest;Tt.withCredentials=!0,Tt.addEventListener("load",function(xt){ut(JSON.parse(xt.target.responseText),Ie)},!1),Tt.addEventListener("error",function(xt){console.error(xt)},!1),Tt.open("POST","".concat(Ue.a,"/api/attachments.json")),Tt.send(bt)}var ue=N("giR+"),Le=N("fyUT"),ae=N("7Kak"),oe=N("9yH6"),Se=oe.a.Group,Me={margin:"0 8px"},We=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},g.a.createElement("div",{className:"flex-container"},g.a.createElement("span",{style:Me},"\u5355\u5143\u683C\u6570\uFF1A"),g.a.createElement("span",{style:Me},"\u884C\u6570"),g.a.createElement(H.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},g.a.createElement(Le.a,null)),g.a.createElement("span",{style:Me},"\u5217\u6570"),g.a.createElement(H.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},g.a.createElement(Le.a,null))),g.a.createElement("div",{className:"flex-container",style:{marginTop:12}},g.a.createElement("span",{style:Me},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),g.a.createElement(H.a.Item,{name:"align"},g.a.createElement(Se,null,g.a.createElement(oe.a,{value:"default"},g.a.createElement("i",{className:"fa fa-align-justify"})),g.a.createElement(oe.a,{value:"left"},g.a.createElement("i",{className:"fa fa-align-left"})),g.a.createElement(oe.a,{value:"center"},g.a.createElement("i",{className:"fa fa-align-center"})),g.a.createElement(oe.a,{value:"right"},g.a.createElement("i",{className:"fa fa-align-right"}))))),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ke=N("ErOA"),Qe=N("7Cbv"),Ze="link",yt="upload-image",vt="code-block",dt="add-table",pt="------------",At={default:pt,left:":".concat(pt),center:":".concat(pt,":"),right:"".concat(pt,":")},wt=N("9VGf"),Oe,we;function Je(){}var st=0,He=1e4,nt="\u2581",Te=` +`),o=this._stacks.get(n)||0;if(this._stacks.set(n,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=a*.5;var u,x=0;this._stacks.forEach(function(E,v){(!u||x0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(y.prototype,"event",{get:function(){var f=this;return this._event||(this._event=function(m,a,n){f._listeners||(f._listeners=new z.a);var o=f._listeners.isEmpty();o&&f._options&&f._options.onFirstListenerAdd&&f._options.onFirstListenerAdd(f);var u=f._listeners.push(a?[m,a]:m);o&&f._options&&f._options.onFirstListenerDidAdd&&f._options.onFirstListenerDidAdd(f),f._options&&f._options.onListenerDidAdd&&f._options.onListenerDidAdd(f,m,a);var x;f._leakageMon&&(x=f._leakageMon.check(f._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=y._noop,!f._disposed&&(u(),f._options&&f._options.onLastListenerRemove)){var v=f._listeners&&!f._listeners.isEmpty();v||f._options.onLastListenerRemove(f)}}},n instanceof P.b?n.add(E):Array.isArray(n)&&n.push(E),E}),this._event},enumerable:!0,configurable:!0}),y.prototype.fire=function(f){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.a);for(var m=this._listeners.iterator(),a=m.next();!a.done;a=m.next())this._deliveryQueue.push([a.value,f]);for(;this._deliveryQueue.size>0;){var n=this._deliveryQueue.shift(),o=n[0],u=n[1];try{typeof o=="function"?o.call(void 0,u):o[0].call(o[1],u)}catch(x){Object(ee.e)(x)}}}},y.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},y._noop=function(){},y}(),R=function(y){B(f,y);function f(m){var a=y.call(this,m)||this;return a._isPaused=0,a._eventQueue=new z.a,a._mergeFn=m&&m.merge,a}return f.prototype.pause=function(){this._isPaused++},f.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),y.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)y.prototype.fire.call(this,this._eventQueue.shift())},f.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):y.prototype.fire.call(this,m))},f}(_),c=function(){function y(){var f=this;this.hasListeners=!1,this.events=[],this.emitter=new _({onFirstListenerAdd:function(){return f.onFirstListenerAdd()},onLastListenerRemove:function(){return f.onLastListenerRemove()}})}return Object.defineProperty(y.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),y.prototype.add=function(f){var m=this,a={event:f,listener:null};this.events.push(a),this.hasListeners&&this.hook(a);var n=function(){m.hasListeners&&m.unhook(a);var o=m.events.indexOf(a);m.events.splice(o,1)};return Object(P.h)(Object(K.a)(n))},y.prototype.onFirstListenerAdd=function(){var f=this;this.hasListeners=!0,this.events.forEach(function(m){return f.hook(m)})},y.prototype.onLastListenerRemove=function(){var f=this;this.hasListeners=!1,this.events.forEach(function(m){return f.unhook(m)})},y.prototype.hook=function(f){var m=this;f.listener=f.event(function(a){return m.emitter.fire(a)})},y.prototype.unhook=function(f){f.listener&&f.listener.dispose(),f.listener=null},y.prototype.dispose=function(){this.emitter.dispose()},y}(),g=function(){function y(){this.buffers=[]}return y.prototype.wrapEvent=function(f){var m=this;return function(a,n,o){return f(function(u){var x=m.buffers[m.buffers.length-1];x?x.push(function(){return a.call(n,u)}):a.call(n,u)},void 0,o)}},y.prototype.bufferEvents=function(f){var m=[];this.buffers.push(m);var a=f();return this.buffers.pop(),m.forEach(function(n){return n()}),a},y}(),w=function(){function y(){var f=this;this.listening=!1,this.inputEvent=M.None,this.inputEventListener=P.a.None,this.emitter=new _({onFirstListenerDidAdd:function(){f.listening=!0,f.inputEventListener=f.inputEvent(f.emitter.fire,f.emitter)},onLastListenerRemove:function(){f.listening=!1,f.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(y.prototype,"input",{set:function(f){this.inputEvent=f,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=f(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),y.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},y}()},N0LK:function(et,de,N){"use strict";N.d(de,"x",function(){return ee}),N.d(de,"F",function(){return K}),N.d(de,"r",function(){return z}),N.d(de,"o",function(){return B}),N.d(de,"p",function(){return M}),N.d(de,"Q",function(){return j}),N.d(de,"K",function(){return _}),N.d(de,"k",function(){return R}),N.d(de,"N",function(){return c}),N.d(de,"m",function(){return g}),N.d(de,"l",function(){return w}),N.d(de,"I",function(){return y}),N.d(de,"H",function(){return f}),N.d(de,"q",function(){return m}),N.d(de,"t",function(){return a}),N.d(de,"D",function(){return n}),N.d(de,"e",function(){return o}),N.d(de,"f",function(){return u}),N.d(de,"B",function(){return x}),N.d(de,"C",function(){return E}),N.d(de,"n",function(){return O}),N.d(de,"O",function(){return p}),N.d(de,"c",function(){return h}),N.d(de,"d",function(){return s}),N.d(de,"z",function(){return l}),N.d(de,"A",function(){return D}),N.d(de,"u",function(){return T}),N.d(de,"E",function(){return I}),N.d(de,"G",function(){return C}),N.d(de,"i",function(){return Y}),N.d(de,"g",function(){return F}),N.d(de,"v",function(){return le}),N.d(de,"h",function(){return pe}),N.d(de,"y",function(){return Ae}),N.d(de,"w",function(){return Ge}),N.d(de,"a",function(){return Fe}),N.d(de,"P",function(){return Ue}),N.d(de,"L",function(){return _e}),N.d(de,"J",function(){return je}),N.d(de,"j",function(){return xe}),N.d(de,"M",function(){return he}),N.d(de,"s",function(){return te}),N.d(de,"b",function(){return ye});function ee(ae){return!ae||typeof ae!="string"?!0:ae.trim().length===0}function K(ae,oe,Se){Se===void 0&&(Se="0");for(var Me=""+ae,We=[Me],Ke=Me.length;Ke=oe.length?Me:oe[Ke]})}function B(ae){return ae.replace(/[<>&]/g,function(oe){switch(oe){case"<":return"<";case">":return">";case"&":return"&";default:return oe}})}function M(ae){return ae.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function j(ae,oe){oe===void 0&&(oe=" ");var Se=U(ae,oe);return _(Se,oe)}function U(ae,oe){if(!ae||!oe)return ae;var Se=oe.length;if(Se===0||ae.length===0)return ae;for(var Me=0;ae.indexOf(oe,Me)===Me;)Me=Me+Se;return ae.substring(Me)}function _(ae,oe){if(!ae||!oe)return ae;var Se=oe.length,Me=ae.length;if(Se===0||Me===0)return ae;for(var We=Me,Ke=-1;!(Ke=ae.lastIndexOf(oe,We-1),Ke===-1||Ke+Se!==We);){if(Ke===0)return"";We=Ke}return ae.substring(0,We)}function R(ae){return ae.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c(ae,oe){if(ae.length0?ae.indexOf(oe,Se)===Se:Se===0?ae===oe:!1}function w(ae,oe,Se){if(Se===void 0&&(Se={}),!ae)throw new Error("Cannot create regex from empty string");oe||(ae=M(ae)),Se.wholeWord&&(/\B/.test(ae.charAt(0))||(ae="\\b"+ae),/\B/.test(ae.charAt(ae.length-1))||(ae=ae+"\\b"));var Me="";return Se.global&&(Me+="g"),Se.matchCase||(Me+="i"),Se.multiline&&(Me+="m"),Se.unicode&&(Me+="u"),new RegExp(ae,Me)}function y(ae){if(ae.source==="^"||ae.source==="^$"||ae.source==="$"||ae.source==="^\\s*$")return!1;var oe=ae.exec("");return!!(oe&&ae.lastIndex===0)}function f(ae){return(ae.global?"g":"")+(ae.ignoreCase?"i":"")+(ae.multiline?"m":"")+(ae.unicode?"u":"")}function m(ae){for(var oe=0,Se=ae.length;oe=0;Se--){var Me=ae.charCodeAt(Se);if(Me!==32&&Me!==9)return Se}return-1}function o(ae,oe){return aeoe?1:0}function u(ae,oe){for(var Se=Math.min(ae.length,oe.length),Me=0;Meoe.length?1:0}function x(ae){return ae>=97&&ae<=122}function E(ae){return ae>=65&&ae<=90}function v(ae){return x(ae)||E(ae)}function O(ae,oe){return ae.length===oe.length&&A(ae,oe)}function A(ae,oe,Se){Se===void 0&&(Se=ae.length);for(var Me=0;Meae.length?!1:A(ae,oe,Se)}function h(ae,oe){var Se,Me=Math.min(ae.length,oe.length);for(Se=0;Se1){var Me=ae.charCodeAt(oe-2);if(l(Me))return(Me-55296<<10)+(Se-56320)+65536}return Se}function I(ae,oe){var Se=ue.getInstance(),Me=oe,We=ae.length,Ke=T(ae,We,oe);oe+=Ke>=65536?2:1;for(var Qe=Se.getGraphemeBreakType(Ke);oe=65536?2:1,Qe=yt}return oe-Me}function C(ae,oe){var Se=ue.getInstance(),Me=oe,We=S(ae,oe);oe-=We>=65536?2:1;for(var Ke=Se.getGraphemeBreakType(We);oe>0;){var Qe=S(ae,oe),Ze=Se.getGraphemeBreakType(Qe);if(ye(Ze,Ke))break;oe-=Qe>=65536?2:1,Ke=Ze}return Me-oe}var W=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Y(ae){return W.test(ae)}var H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function F(ae){return H.test(ae)}var q=/^[\t\n\r\x20-\x7E]*$/;function le(ae){return q.test(ae)}function pe(ae){for(var oe=0,Se=ae.length;oe=11904&&ae<=55215||ae>=63744&&ae<=64255||ae>=65281&&ae<=65374}function Ge(ae){return ae>=127462&&ae<=127487||ae>=9728&&ae<=10175||ae>=127744&&ae<=128591||ae>=128640&&ae<=128764||ae>=128992&&ae<=129003||ae>=129280&&ae<=129535||ae>=129648&&ae<=129651||ae>=129656&&ae<=129666||ae>=129680&&ae<=129685}var Fe=String.fromCharCode(65279);function Ue(ae){return!!(ae&&ae.length>0&&ae.charCodeAt(0)===65279)}function _e(ae){return btoa(encodeURIComponent(ae))}function je(ae,oe){for(var Se="",Me=0;MeSe[3*We+1])We=2*We+1;else return Se[3*We+2];return 0},ae._INSTANCE=null,ae}();function Le(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},Nmxd:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(et,de,N){"use strict";N.d(de,"a",function(){return M});var ee=N("Kwbf");function K(j,U){var _=new Set;return j.forEach(function(R){U.has(R)||_.add(R)}),_}function P(j){var U=j||{},_=U.disabled,R=U.disableCheckbox,c=U.checkable;return!!(_||R)||c===!1}function z(j,U,_,R){for(var c=new Set(j),g=new Set,w=0;w<=_;w+=1){var y=U.get(w)||new Set;y.forEach(function(n){var o=n.key,u=n.node,x=n.children,E=x===void 0?[]:x;c.has(o)&&!R(u)&&E.filter(function(v){return!R(v.node)}).forEach(function(v){c.add(v.key)})})}for(var f=new Set,m=_;m>=0;m-=1){var a=U.get(m)||new Set;a.forEach(function(n){var o=n.parent,u=n.node;if(R(u)||!n.parent||f.has(n.parent.key))return;if(R(n.parent.node)){f.add(o.key);return}var x=!0,E=!1;(o.children||[]).filter(function(v){return!R(v.node)}).forEach(function(v){var O=v.key,A=c.has(O);x&&!A&&(x=!1),!E&&(A||g.has(O))&&(E=!0)}),x&&c.add(o.key),E&&g.add(o.key),f.add(o.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(K(g,c))}}function B(j,U,_,R,c){for(var g=new Set(j),w=new Set(U),y=0;y<=R;y+=1){var f=_.get(y)||new Set;f.forEach(function(o){var u=o.key,x=o.node,E=o.children,v=E===void 0?[]:E;!g.has(u)&&!w.has(u)&&!c(x)&&v.filter(function(O){return!c(O.node)}).forEach(function(O){g.delete(O.key)})})}w=new Set;for(var m=new Set,a=R;a>=0;a-=1){var n=_.get(a)||new Set;n.forEach(function(o){var u=o.parent,x=o.node;if(c(x)||!o.parent||m.has(o.parent.key))return;if(c(o.parent.node)){m.add(u.key);return}var E=!0,v=!1;(u.children||[]).filter(function(O){return!c(O.node)}).forEach(function(O){var A=O.key,p=g.has(A);E&&!p&&(E=!1),!v&&(p||w.has(A))&&(v=!0)}),E||g.delete(u.key),v&&w.add(u.key),m.add(u.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(K(w,g))}}function M(j,U,_,R){var c=[],g;R?g=R:g=P;var w=new Set(j.filter(function(a){var n=!!_[a];return n||c.push(a),n})),y=new Map,f=0;Object.keys(_).forEach(function(a){var n=_[a],o=n.level,u=y.get(o);u||(u=new Set,y.set(o,u)),u.add(n),f=Math.max(f,o)}),Object(ee.a)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var m;return U===!0?m=z(w,y,f,g):m=B(w,U.halfCheckedKeys,y,f,g),m}},OLES:function(et,de,N){"use strict";var ee=N("U8pU"),K=N("VTBJ"),P=N("Ff2n"),z=N("q1tI"),B=N("uciX"),M=N("7ixt"),j=function(w){var y=w.overlay,f=w.prefixCls,m=w.id,a=w.overlayInnerStyle;return z.createElement("div",{className:"".concat(f,"-inner"),id:m,role:"tooltip",style:a},typeof y=="function"?y():y)},U=j,_=function(w,y){var f=w.overlayClassName,m=w.trigger,a=m===void 0?["hover"]:m,n=w.mouseEnterDelay,o=n===void 0?0:n,u=w.mouseLeaveDelay,x=u===void 0?.1:u,E=w.overlayStyle,v=w.prefixCls,O=v===void 0?"rc-tooltip":v,A=w.children,p=w.onVisibleChange,h=w.afterVisibleChange,s=w.transitionName,l=w.animation,D=w.placement,T=D===void 0?"right":D,S=w.align,I=S===void 0?{}:S,C=w.destroyTooltipOnHide,W=C===void 0?!1:C,Y=w.defaultVisible,H=w.getTooltipContainer,F=w.overlayInnerStyle,q=Object(P.a)(w,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),le=Object(z.useRef)(null);Object(z.useImperativeHandle)(y,function(){return le.current});var pe=Object(K.a)({},q);"visible"in w&&(pe.popupVisible=w.visible);var Ae=function(){var je=w.arrowContent,xe=je===void 0?null:je,he=w.overlay,te=w.id;return[z.createElement("div",{className:"".concat(O,"-arrow"),key:"arrow"},xe),z.createElement(U,{key:"content",prefixCls:O,id:te,overlay:he,overlayInnerStyle:F})]},Ge=!1,Fe=!1;if(typeof W=="boolean")Ge=W;else if(W&&Object(ee.a)(W)==="object"){var Ue=W.keepParent;Ge=Ue===!0,Fe=Ue===!1}return z.createElement(B.a,Object.assign({popupClassName:f,prefixCls:O,popup:Ae,action:a,builtinPlacements:M.a,popupPlacement:T,ref:le,popupAlign:I,getPopupContainer:H,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:s,popupAnimation:l,defaultPopupVisible:Y,destroyPopupOnHide:Ge,autoDestroy:Fe,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:o},pe),A)},R=Object(z.forwardRef)(_),c=de.a=R},OZM5:function(et,de,N){"use strict";N.d(de,"b",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"k",function(){return g}),N.d(de,"h",function(){return w}),N.d(de,"i",function(){return y}),N.d(de,"g",function(){return f}),N.d(de,"c",function(){return m}),N.d(de,"d",function(){return a}),N.d(de,"j",function(){return u}),N.d(de,"e",function(){return x}),N.d(de,"f",function(){return E});var ee=N("KQm4"),K=N("U8pU"),P=N("Ff2n"),z=N("q1tI"),B=N.n(z),M=N("Kwbf"),j=N("WaYH"),U=.25,_=2;function R(v,O){var A=v.slice(),p=A.indexOf(O);return p>=0&&A.splice(p,1),A}function c(v,O){var A=v.slice();return A.indexOf(O)===-1&&A.push(O),A}function g(v){return v.split("-")}function w(v,O){return"".concat(v,"-").concat(O)}function y(v){return v&&v.type&&v.type.isTreeNode}function f(v,O){var A=[v],p=O[v];function h(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(l){var D=l.key,T=l.children;A.push(D),h(T)})}return h(p.children),A}function m(v,O){var A=v.clientY,p=O.selectHandle.getBoundingClientRect(),h=p.top,s=p.bottom,l=p.height,D=Math.max(l*U,_);return A<=h+D?-1:A>=s-D?1:0}function a(v,O){if(!v)return;var A=O.multiple;return A?v.slice():v.length?[v[0]]:v}var n=function(O){return O};function o(v,O){if(!v)return[];var A=O||{},p=A.processProps,h=p===void 0?n:p,s=Array.isArray(v)?v:[v];return s.map(function(l){var D=l.children,T=Object(P.a)(l,["children"]),S=o(D,O);return B.a.createElement(j.a,Object.assign({},h(T)),S)})}function u(v){if(!v)return null;var O;if(Array.isArray(v))O={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(K.a)(v)==="object")O={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(M.a)(!1,"`checkedKeys` is not an array or an object"),null;return O}function x(v,O){var A=new Set;function p(h){if(A.has(h))return;var s=O[h];if(!s)return;A.add(h);var l=s.parent,D=s.node;if(D.disabled)return;l&&p(l.key)}return(v||[]).forEach(function(h){p(h)}),Object(ee.a)(A)}function E(v){var O={};return Object.keys(v).forEach(function(A){(A.startsWith("data-")||A.startsWith("aria-"))&&(O[A]=v[A])}),O}},Ohmc:function(et,de,N){et.exports=N.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(et,de,N){"use strict";var ee=N("2qtc"),K=N("kLXV"),P=N("rAM+"),z=N("miYZ"),B=N("tsqr"),M=N("9og8"),j=N("tJVT"),U=N("jrin"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("VrN/"),y=N.n(w),f=N("bdgK"),m=N("p77/"),a=N("Bd2K"),n=N("ELLl"),o=N("19Vz"),u=N("lZu9"),x=N("+NIl"),E=N("kSUc"),v=N("9Bee"),O=function(Ie){var ut=Ie.value,bt=ut===void 0?"":ut,Tt=Ie.className,xt=Ie.showTextOnly,gt=Ie.showLines,qe=Ie.style,Xe=qe===void 0?{}:qe,Pe=Object(c.useMemo)(function(){return""},[bt]);return g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{dangerouslySetInnerHTML:{__html:Pe}}))},A=N("0Owb"),p=N("dejd"),h=N("C+DQ"),s=N("1vsH"),l=N("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(Ie){var ut=Ie.onActionCallback,bt=Ie.title,Tt=Ie.icon,xt=Ie.actionName,gt=Ie.className,qe=gt===void 0?"":gt,Xe=Ie.children;function Pe(){ut(xt)}return g.a.createElement("a",{title:bt,className:qe,onClick:Pe},g.a.createElement("i",{className:"md-iconfont ".concat(Tt)}),Xe)}var S=function(Ie){var ut=Ie.watch,bt=Ie.showNullButton,Tt=Ie.onActionCallback,xt=Ie.fullScreen,gt=Ie.insertTemp,qe=Ie.hidetoolBar,Xe=Ie.uuid,Pe=Ie.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(s.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(s.D)("_educoder_session"),"&key=").concat(Xe,"&api=").concat(encodeURIComponent(l.a.PROXY_SERVER)));var se=[].concat(D,[{title:"".concat(ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ut?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return g.a.createElement("ul",{className:"markdown-toolbar-container"},!qe&&se.map(function(fe,$e){return g.a.createElement("li",{key:$e},fe.actionName?g.a.createElement(T,Object(A.a)({},fe,{onActionCallback:Tt})):g.a.createElement("span",{className:"v-line"}))}),bt?g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,gt&&g.a.createElement("li",null,g.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(gt),onActionCallback:Tt},g.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),g.a.createElement("li",{className:"btn-full-screen"},g.a.createElement(T,{icon:"".concat(xt?"icon-shrink":"icon-enlarge"),title:xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tt})))},I=N("M8RZ"),C=N("+L6B"),W=N("2/Rp"),Y=N("y8nQ"),H=N("Vl3Y"),F=N("5NDa"),q=N("5rEg"),le={labelCol:{span:4},wrapperCol:{span:20}},pe=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,Object(A.a)({},le,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt}),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},g.a.createElement(q.a,null)),g.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},g.a.createElement(q.a,null)),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ae=N("7ahc"),Ge=N("k1fw"),Fe=N("HmJG"),Ue=N("BjJ7"),_e=H.a.useForm,je={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}},he=function(Ie){var ut=Ie.callback,bt=Ie.onCancel,Tt=_e(),xt=Object(j.a)(Tt,1),gt=xt[0],qe=Object(c.useRef)();function Xe(fe){ut(Object(Ge.a)(Object(Ge.a)({},fe),{},{name:qe.current}))}function Pe(fe,$e){gt.setFieldsValue({src:"/api/attachments/".concat(fe.id,"?type=").concat(fe.content_type),type:$e.type})}function se(fe){var $e=fe.target.files[0];qe.current=$e.name,ye($e,Pe)}return g.a.createElement(H.a,Object(A.a)({form:gt},xe,{className:"upload-image-panel",onFinish:Xe}),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},g.a.createElement("div",{className:"flex-container"},g.a.createElement(H.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},g.a.createElement(q.a,{style:je})),g.a.createElement(te,{onFileChange:se}))),g.a.createElement(H.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},g.a.createElement(q.a,{style:{width:264}})),g.a.createElement(H.a.Item,{style:{textAlign:"right"}},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))};function te(Ie){var ut=Ie.onFileChange;return g.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",g.a.createElement("input",{type:"file",onChange:ut}))}function ye(Ie,ut){if(!Ie)throw new String("\u6CA1\u6709\u6587\u4EF6");var bt=new FormData;bt.append("editormd-image-file",Ie),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var Tt=new window.XMLHttpRequest;Tt.withCredentials=!0,Tt.addEventListener("load",function(xt){ut(JSON.parse(xt.target.responseText),Ie)},!1),Tt.addEventListener("error",function(xt){console.error(xt)},!1),Tt.open("POST","".concat(Ue.a,"/api/attachments.json")),Tt.send(bt)}var ue=N("giR+"),Le=N("fyUT"),ae=N("7Kak"),oe=N("9yH6"),Se=oe.a.Group,Me={margin:"0 8px"},We=function(Ie){var ut=Ie.callback,bt=Ie.onCancel;function Tt(xt){ut(xt)}return g.a.createElement(H.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},g.a.createElement("div",{className:"flex-container"},g.a.createElement("span",{style:Me},"\u5355\u5143\u683C\u6570\uFF1A"),g.a.createElement("span",{style:Me},"\u884C\u6570"),g.a.createElement(H.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},g.a.createElement(Le.a,null)),g.a.createElement("span",{style:Me},"\u5217\u6570"),g.a.createElement(H.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},g.a.createElement(Le.a,null))),g.a.createElement("div",{className:"flex-container",style:{marginTop:12}},g.a.createElement("span",{style:Me},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),g.a.createElement(H.a.Item,{name:"align"},g.a.createElement(Se,null,g.a.createElement(oe.a,{value:"default"},g.a.createElement("i",{className:"fa fa-align-justify"})),g.a.createElement(oe.a,{value:"left"},g.a.createElement("i",{className:"fa fa-align-left"})),g.a.createElement(oe.a,{value:"center"},g.a.createElement("i",{className:"fa fa-align-center"})),g.a.createElement(oe.a,{value:"right"},g.a.createElement("i",{className:"fa fa-align-right"}))))),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(W.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(W.a,{type:"ghost",onClick:bt},"\u53D6\u6D88")))},Ke=N("ErOA"),Qe=N("7Cbv"),Ze="link",yt="upload-image",vt="code-block",dt="add-table",pt="------------",At={default:pt,left:":".concat(pt),center:":".concat(pt,":"),right:"".concat(pt,":")},wt=N("9VGf"),Oe,we;function Je(){}var st=0,He=1e4,nt="\u2581",Te=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ge(Ie){return/^\d+$/.test(Ie)?"".concat(Ie,"px"):Ie}var be=navigator.platform.toUpperCase().indexOf("MAC")>=0,re=be?"Cmd":"Ctrl",ie=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ce=(Oe={},Object(U.a)(Oe,re+"-B","bold"),Object(U.a)(Oe,re+"-I","italic"),Oe),Ee=(we={},Object(U.a)(we,Ze,"\u6DFB\u52A0\u94FE\u63A5"),Object(U.a)(we,vt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(U.a)(we,yt,"\u6DFB\u52A0\u6587\u4EF6"),Object(U.a)(we,dt,"\u6DFB\u52A0\u8868\u683C"),we),Be=de.a=function(Ie){var ut=Ie.defaultValue,bt=ut===void 0?"":ut,Tt=Ie.onChange,xt=Ie.width,gt=xt===void 0?"100%":xt,qe=Ie.height,Xe=qe===void 0?400:qe,ke=Ie.miniToolbar,se=ke===void 0?!1:ke,fe=Ie.isFocus,$e=fe===void 0?!1:fe,Pe=Ie.watch,it=Ie.insertTemp,at=Ie.mode,Ne=at===void 0?"markdown":at,Ve=Ie.id,tt=Ve===void 0?"markdown-editor-id":Ve,ft=Ie.showResizeBar,Ct=ft===void 0?!1:ft,zt=Ie.noStorage,qt=zt===void 0?!1:zt,Qt=Ie.showNullButton,St=Qt===void 0?!1:Qt,ln=Ie.hidetoolBar,Bt=ln===void 0?!1:ln,Yt=Ie.fullScreen,Mt=Yt===void 0?!1:Yt,tn=Ie.onBlur,mn=Ie.onCMBeforeChange,An=Ie.onFullScreen,lt=Ie.className,Rt=lt===void 0?"":lt,Jt=Ie.disablePaste,nn=Jt===void 0?!1:Jt,un=Ie.placeholder,cn=un===void 0?"":un,G=Ie.values,b=G===void 0?"":G,L=Object(c.useState)(null),V=Object(j.a)(L,2),J=V[0],Q=V[1],De=Object(c.useState)(bt),ot=Object(j.a)(De,2),Ot=ot[0],Ft=ot[1],ve=Object(c.useState)(Pe),Gt=Object(j.a)(ve,2),en=Gt[0],Tn=Gt[1],Wn=Object(c.useState)(Mt),tr=Object(j.a)(Wn,2),Rn=tr[0],or=tr[1],fr=Object(c.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(c.useState)(0),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=Object(c.useState)(Xe),Yr=Object(j.a)(Tr,2),br=Yr[0],nr=Yr[1],Ur=Object(c.useState)(!1),_r=Object(j.a)(Ur,2),Fr=_r[0],Sn=_r[1],hn=Object(c.useRef)(Object(Qe.a)()),Pn=Object(c.useRef)(!1),yn=Object(c.useRef)(),Ln=Object(c.useRef)(),bn=Object(c.useRef)(),wr=Object(c.useRef)(),Bn=Object(c.useRef)(),Qn=function(){var Xt=Object(M.a)(R.a.mark(function on(){var $t,dn;return R.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(Ke.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:hn.current}});case 2:dn=wn.sent,dn!=null&&($t=dn.attachments)!==null&&$t!==void 0&&$t.length&&(console.log("cm:",J,Ln),dn.attachments.map(function(gn){gn.content_type.indexOf("image")>-1?J.replaceSelection("![,](/api/attachments/".concat(gn.id,"?type=").concat(gn.content_type,")")):gn.content_type.indexOf("video")>-1?J.replaceSelection('')):gn.content_type.indexOf("pdf")>-1?J.replaceSelection('
          ').concat(gn.name,"")):J.replaceSelection("[".concat(gn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(gn.id,"?type=").concat(gn.content_type,")"))}));case 4:case"end":return wn.stop()}},on)}));return function(){return Xt.apply(this,arguments)}}();Object(c.useEffect)(function(){Ft(b),J==null||J.setValue(b)},[b]),Object(c.useEffect)(function(){An==null||An(Rn)},[Rn]),Object(c.useEffect)(function(){if(Ln.current){var Xt=y.a.fromTextArea(Ln.current,{mode:Ne,lineNumbers:!se,lineWrapping:!0,value:bt,autoCloseTags:!0,autoCloseBrackets:!0});$e&&Xt.focus();function on($t,dn){if(nn){dn.preventDefault();return}var En=dn.clipboardData;if(En){var wn=En.types.toString(),gn=En.items;if(wn==="Files"||En.types.indexOf("Files")>-1){if(dn.preventDefault(),Ne=="stex")return;try{var xn,Hn=gn[1];((xn=gn[0])===null||xn===void 0?void 0:xn.kind)==="file"&&(Hn=gn[0]);var fn=Hn.getAsFile(),kr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(kr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})}catch(Ht){B.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Xt.on("paste",on),Xt.on("dragleave",function($t,dn){bn.current.classList.remove("mouse-hover-md")}),Xt.on("dragover",function($t,dn){bn.current.classList.add("mouse-hover-md")}),Xt.on("drop",function($t,dn){bn.current.classList.add("mouse-hover-md");var En;if(En=dn.dataTransfer.files,En.length>0){dn.preventDefault(),dn.stopPropagation();for(var wn=function(Hn){var fn=En[Hn],kr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(kr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})},gn=0;gn0||gn.target.offsetWidth>0)&&(zr(),J.setSize("100%","100%"),J.refresh())}}catch(xn){En.e(xn)}finally{En.f()}});return $t.observe(Ln.current.parentElement),$t}if(J){var on=Xt();return function(){on.unobserve(Ln.current.parentElement)}}},[J,zr]),Object(c.useEffect)(function(){if(J){for(var Xt=[],on=function(){var gn=dn[$t];En=Object(j.a)(gn,2);var xn=En[0],Hn=En[1],fn=Object(U.a)({},xn,function(){jr(Hn)});Xt.push(fn),J.addKeyMap(fn)},$t=0,dn=Object.entries(ce);$t0){var Xt=new Date().getTime(),on=window.sessionStorage.getItem(tt);Xt>=Ir+He&&(!on||on!==Ot)&&(window.sessionStorage.setItem(tt,Ot),Sn(!0))}},He),Object(c.useEffect)(function(){Tn(Pe)},[J,Pe]),Object(c.useEffect)(function(){J&&($e&&J.focus())},[J,$e]),Object(c.useEffect)(function(){if(en&&J){var Xt=J.getScrollerElement();function on($t){var dn=$t.target;if(Bn.current){var En=dn.scrollTop/dn.scrollHeight;Bn.current.scrollTop=Bn.current.scrollHeight*En}}return Xt.addEventListener("scroll",on),function(){Xt.removeEventListener("scroll",on)}}},[J,en]),Object(c.useEffect)(function(){if(J&&mn){function Xt(on,$t){mn(on,$t)}return J.on("beforeChange",Xt),function(){J.off("beforeChange",Xt)}}},[J,mn]),Object(c.useEffect)(function(){if(J&&tn){function Xt(){tn(J.getValue())}return J.on("blur",Xt),function(){J.off("blur",Xt)}}},[J,tn]),Object(c.useEffect)(function(){if(J){function Xt(on){var $t=on.getValue();Ft($t),yr(new Date().getTime()),on.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tt&&Tt($t)}return J.on("change",Xt),function(){J.off("change",Xt)}}},[J,Tt]),Object(c.useEffect)(function(){J&&(bt==null?(J.setValue(""),Ft("")):bt!==J.getValue()&&(J.setValue(bt),Ft(bt),J.setCursor(J.lineCount(),0)))},[J,bt]);var jr=Object(c.useCallback)(function(Xt){var on=J.getCursor(),$t=J.getSelection(),dn=$t.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ge(Ie){return/^\d+$/.test(Ie)?"".concat(Ie,"px"):Ie}var be=navigator.platform.toUpperCase().indexOf("MAC")>=0,re=be?"Cmd":"Ctrl",ie=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ce=(Oe={},Object(U.a)(Oe,re+"-B","bold"),Object(U.a)(Oe,re+"-I","italic"),Oe),Ee=(we={},Object(U.a)(we,Ze,"\u6DFB\u52A0\u94FE\u63A5"),Object(U.a)(we,vt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(U.a)(we,yt,"\u6DFB\u52A0\u6587\u4EF6"),Object(U.a)(we,dt,"\u6DFB\u52A0\u8868\u683C"),we),Be=de.a=function(Ie){var ut=Ie.defaultValue,bt=ut===void 0?"":ut,Tt=Ie.onChange,xt=Ie.width,gt=xt===void 0?"100%":xt,qe=Ie.height,Xe=qe===void 0?400:qe,Pe=Ie.miniToolbar,se=Pe===void 0?!1:Pe,fe=Ie.isFocus,$e=fe===void 0?!1:fe,ke=Ie.watch,it=Ie.insertTemp,at=Ie.mode,Ne=at===void 0?"markdown":at,Ve=Ie.id,tt=Ve===void 0?"markdown-editor-id":Ve,ft=Ie.showResizeBar,Ct=ft===void 0?!1:ft,zt=Ie.noStorage,qt=zt===void 0?!1:zt,Qt=Ie.showNullButton,St=Qt===void 0?!1:Qt,ln=Ie.hidetoolBar,Bt=ln===void 0?!1:ln,Yt=Ie.fullScreen,Mt=Yt===void 0?!1:Yt,tn=Ie.onBlur,mn=Ie.onCMBeforeChange,An=Ie.onFullScreen,lt=Ie.className,Rt=lt===void 0?"":lt,Jt=Ie.disablePaste,nn=Jt===void 0?!1:Jt,un=Ie.placeholder,cn=un===void 0?"":un,G=Ie.values,b=G===void 0?"":G,L=Object(c.useState)(null),V=Object(j.a)(L,2),J=V[0],Q=V[1],De=Object(c.useState)(bt),ot=Object(j.a)(De,2),Ot=ot[0],Ft=ot[1],ve=Object(c.useState)(ke),Gt=Object(j.a)(ve,2),en=Gt[0],Tn=Gt[1],Wn=Object(c.useState)(Mt),tr=Object(j.a)(Wn,2),Rn=tr[0],or=tr[1],fr=Object(c.useState)(""),Vn=Object(j.a)(fr,2),sr=Vn[0],Jn=Vn[1],Mr=Object(c.useState)(0),Xn=Object(j.a)(Mr,2),Ir=Xn[0],yr=Xn[1],Tr=Object(c.useState)(Xe),Yr=Object(j.a)(Tr,2),br=Yr[0],nr=Yr[1],Ur=Object(c.useState)(!1),_r=Object(j.a)(Ur,2),Fr=_r[0],Sn=_r[1],hn=Object(c.useRef)(Object(Qe.a)()),kn=Object(c.useRef)(!1),yn=Object(c.useRef)(),Ln=Object(c.useRef)(),bn=Object(c.useRef)(),wr=Object(c.useRef)(),Bn=Object(c.useRef)(),Qn=function(){var Xt=Object(M.a)(R.a.mark(function on(){var $t,dn;return R.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(Ke.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:hn.current}});case 2:dn=wn.sent,dn!=null&&($t=dn.attachments)!==null&&$t!==void 0&&$t.length&&(console.log("cm:",J,Ln),dn.attachments.map(function(gn){gn.content_type.indexOf("image")>-1?J.replaceSelection("![,](/api/attachments/".concat(gn.id,"?type=").concat(gn.content_type,")")):gn.content_type.indexOf("video")>-1?J.replaceSelection('')):gn.content_type.indexOf("pdf")>-1?J.replaceSelection('').concat(gn.name,"")):J.replaceSelection("[".concat(gn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(gn.id,"?type=").concat(gn.content_type,")"))}));case 4:case"end":return wn.stop()}},on)}));return function(){return Xt.apply(this,arguments)}}();Object(c.useEffect)(function(){Ft(b),J==null||J.setValue(b)},[b]),Object(c.useEffect)(function(){An==null||An(Rn)},[Rn]),Object(c.useEffect)(function(){if(Ln.current){var Xt=y.a.fromTextArea(Ln.current,{mode:Ne,lineNumbers:!se,lineWrapping:!0,value:bt,autoCloseTags:!0,autoCloseBrackets:!0});$e&&Xt.focus();function on($t,dn){if(nn){dn.preventDefault();return}var En=dn.clipboardData;if(En){var wn=En.types.toString(),gn=En.items;if(wn==="Files"||En.types.indexOf("Files")>-1){if(dn.preventDefault(),Ne=="stex")return;try{var xn,Hn=gn[1];((xn=gn[0])===null||xn===void 0?void 0:xn.kind)==="file"&&(Hn=gn[0]);var fn=Hn.getAsFile(),Pr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(Pr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})}catch(Ht){B.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Xt.on("paste",on),Xt.on("dragleave",function($t,dn){bn.current.classList.remove("mouse-hover-md")}),Xt.on("dragover",function($t,dn){bn.current.classList.add("mouse-hover-md")}),Xt.on("drop",function($t,dn){bn.current.classList.add("mouse-hover-md");var En;if(En=dn.dataTransfer.files,En.length>0){dn.preventDefault(),dn.stopPropagation();for(var wn=function(Hn){var fn=En[Hn],Pr=fn.name.split(".").pop();ye(fn,function(Ht){if(Ht.id){var _n,pr,lr;(fn==null||((_n=fn.type)===null||_n===void 0)?void 0:_n.indexOf("image"))>-1?Xt.replaceSelection("![,](/api/attachments/".concat(Ht.id,"?type=").concat(Ht.content_type,")")):(fn==null||((pr=fn.type)===null||pr===void 0)?void 0:pr.indexOf("video"))>-1?Xt.replaceSelection('')):(fn==null||((lr=fn.type)===null||lr===void 0)?void 0:lr.indexOf("pdf"))>-1?Xt.replaceSelection('').concat(fn.name,"")):ie.includes(Pr)?Xt.replaceSelection('').concat(fn.name,"")):Xt.replaceSelection("[".concat(fn.name,"](").concat(l.a.API_SERVER,"/api/attachments/").concat(Ht.id,"?type=").concat(Ht.content_type,")"))}else(Ht==null?void 0:Ht.status)===401&&(document.location.href="/user/login")})},gn=0;gn0||gn.target.offsetWidth>0)&&(zr(),J.setSize("100%","100%"),J.refresh())}}catch(xn){En.e(xn)}finally{En.f()}});return $t.observe(Ln.current.parentElement),$t}if(J){var on=Xt();return function(){on.unobserve(Ln.current.parentElement)}}},[J,zr]),Object(c.useEffect)(function(){if(J){for(var Xt=[],on=function(){var gn=dn[$t];En=Object(j.a)(gn,2);var xn=En[0],Hn=En[1],fn=Object(U.a)({},xn,function(){jr(Hn)});Xt.push(fn),J.addKeyMap(fn)},$t=0,dn=Object.entries(ce);$t0){var Xt=new Date().getTime(),on=window.sessionStorage.getItem(tt);Xt>=Ir+He&&(!on||on!==Ot)&&(window.sessionStorage.setItem(tt,Ot),Sn(!0))}},He),Object(c.useEffect)(function(){Tn(ke)},[J,ke]),Object(c.useEffect)(function(){J&&($e&&J.focus())},[J,$e]),Object(c.useEffect)(function(){if(en&&J){var Xt=J.getScrollerElement();function on($t){var dn=$t.target;if(Bn.current){var En=dn.scrollTop/dn.scrollHeight;Bn.current.scrollTop=Bn.current.scrollHeight*En}}return Xt.addEventListener("scroll",on),function(){Xt.removeEventListener("scroll",on)}}},[J,en]),Object(c.useEffect)(function(){if(J&&mn){function Xt(on,$t){mn(on,$t)}return J.on("beforeChange",Xt),function(){J.off("beforeChange",Xt)}}},[J,mn]),Object(c.useEffect)(function(){if(J&&tn){function Xt(){tn(J.getValue())}return J.on("blur",Xt),function(){J.off("blur",Xt)}}},[J,tn]),Object(c.useEffect)(function(){if(J){function Xt(on){var $t=on.getValue();Ft($t),yr(new Date().getTime()),on.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tt&&Tt($t)}return J.on("change",Xt),function(){J.off("change",Xt)}}},[J,Tt]),Object(c.useEffect)(function(){J&&(bt==null?(J.setValue(""),Ft("")):bt!==J.getValue()&&(J.setValue(bt),Ft(bt),J.setCursor(J.lineCount(),0)))},[J,bt]);var jr=Object(c.useCallback)(function(Xt){var on=J.getCursor(),$t=J.getSelection(),dn=$t.split(` `);switch(Xt){case"bold":return J.replaceSelection("**"+$t+"**"),$t===""&&J.setCursor(on.line,on.ch+2),J.focus();case"italic":return J.replaceSelection("*"+$t+"*"),$t===""&&J.setCursor(on.line,on.ch+1),J.focus();case"code":return J.replaceSelection("`"+$t+"`"),$t===""&&J.setCursor(on.line,on.ch+1),J.focus();case"inline-latex":return J.replaceSelection("`$$"+$t+"$$`"),$t===""&&J.setCursor(on.line,on.ch+3),J.focus();case"latex":return J.replaceSelection("```latex\n"+$t+"\n```"),J.setCursor(on.line+1,$t.length+1),J.focus();case"line-break":return J.replaceSelection(`
          `),J.focus();case"list-ul":return $t===""?J.replaceSelection("- "+$t):J.replaceSelection(dn.map(function(En){return En===""?"":"- ".concat(En)}).join(` `)),J.focus();case"list-ol":return $t===""?J.replaceSelection("1. "+$t):J.replaceSelection(dn.map(function(En,wn){return En===""?"":"".concat(wn+1,". ").concat(En)}).join(` `)),J.focus();case"add-null-ch":return $t===""&&J.setCursor(on.line,on.ch+1),J.replaceSelection(nt),J.focus();case"inster-template-1":return $t===""&&J.setCursor(on.line,on.ch),J.replaceSelection(Te),J.focus();case"eraser":return J.setValue(""),J.focus();case"trigger-watch":return Tn(!en),J.focus();case"trigger-full-screen":return or(!Rn),J.focus();case Ze:Jn(Ze);return;case vt:Jn(vt);return;case yt:Jn(yt);return;case dt:Jn(dt);return;default:throw new Error}},[J,en,Rn]),Dr=Object(c.useCallback)(function(Xt){Jn("");switch(sr){case Ze:var on=Xt.title,$t=Xt.link;return J.replaceSelection("[".concat(on,"](").concat($t,")")),J.focus();case vt:var dn=Xt.language,En=Xt.content;return J.replaceSelection(["```"+dn,En,"```"].join(` -`)),J.focus();case yt:var wn=Xt.src,gn=Xt.alt,xn=Xt.name;return wn.indexOf("type=image")>-1?J.replaceSelection("![ ".concat(gn||""," ]( ").concat(wn,' "').concat(gn||"",'" )')):wn.indexOf("type=application/pdf")>-1?J.replaceSelection('').concat(xn,"")):J.replaceSelection('').concat(xn,"")),J.focus();case dt:for(var Hn=Xt.row,fn=Xt.col,kr=Xt.align,Ht=` -`,_n=0;_n-1?J.replaceSelection("![ ".concat(gn||""," ]( ").concat(wn,' "').concat(gn||"",'" )')):wn.indexOf("type=application/pdf")>-1?J.replaceSelection('').concat(xn,"")):J.replaceSelection('').concat(xn,"")),J.focus();case dt:for(var Hn=Xt.row,fn=Xt.col,Pr=Xt.align,Ht=` +`,_n=0;_n300&&(xn=300);var Hn=Xe+xn+"px";nr(Hn)}}return Xt.addEventListener("mousedown",dn),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",En),function(){Xt.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",En)}}},[J,wr]),Object(c.useEffect)(function(){nr(Xe)},[Xe]);var Wr=ge(gt),Er=ge(br),Hr={width:Wr,height:Er},Zr=Object(c.useMemo)(function(){if(Ir){var Xt=new Date(Ir),on=Xt.getHours(),$t=Xt.getMinutes(),dn=Xt.getSeconds();return on=on<10?"0"+on:on,$t=$t<10?"0"+$t:$t,dn=dn<10?"0"+dn:dn,"".concat(on,":").concat($t,":").concat(dn)}return 0},[Ir]);function ir(){window.sessionStorage.removeItem(tt),Sn(!1),yr(0)}function ri(){Sn(!1),yr(0),J.setValue(window.sessionStorage.getItem(tt))}function ii(Xt,on){var $t=J.getValue();$t=$t.replace(Xt,on),Ft($t),J==null||J.setValue($t)}return g.a.createElement(c.Fragment,null,g.a.createElement("div",{className:"markdown-editor-wrapper",ref:bn},g.a.createElement("div",{className:"markdown-editor-container ".concat(Rt," ").concat(en?"on-preview":""," ").concat(se?"mini":""," ").concat(Rn?"full-screen":""),style:Hr},g.a.createElement(S,{insertTemp:it,watch:en,fullScreen:Rn,showNullButton:St,onActionCallback:jr,hidetoolBar:Bt,uuid:hn.current,setOpenPhones:function(){Pn.current=!0}}),g.a.createElement("div",{className:"markdown-editor-body"},g.a.createElement("div",{className:"codemirror-container"},g.a.createElement("textarea",{ref:Ln,placeholder:cn})),en?g.a.createElement("div",{ref:Bn,className:"preview-container"},Ne==="stex"&&g.a.createElement(O,{value:Ot}),Ne!=="stex"&&g.a.createElement(v.a,{edit:!0,value:Ot,replaces:ii})):null))),Ct?g.a.createElement("a",{ref:wr,className:"editor-resize"}):null,g.a.createElement(I.a,null,Ee[sr]?g.a.createElement(K.a,{centered:!0,title:Ee[sr],visible:!0,onCancel:rr,footer:null},Jr):null))}},QDVR:function(et,de,N){"use strict";N.d(de,"e",function(){return K}),N.d(de,"d",function(){return k}),N.d(de,"c",function(){return j}),N.d(de,"b",function(){return U}),N.d(de,"a",function(){return R});var ee=function(){var c=function(g,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var m in f)f.hasOwnProperty(m)&&(y[m]=f[m])},c(g,w)};return function(g,w){c(g,w);function y(){this.constructor=g}g.prototype=w===null?Object.create(w):(y.prototype=w.prototype,new y)}}();function K(c){var g=[];return c.forEach(function(w){return g.push(w)}),g}function k(c){var g=[];return c.forEach(function(w,y){return g.push(y)}),g}var z=function(){function c(){this._value="",this._pos=0}return c.prototype.reset=function(g){return this._value=g,this._pos=0,this},c.prototype.next=function(){return this._pos+=1,this},c.prototype.hasNext=function(){return this._pos0)f.left||(f.left=new M,f.left.segment=y.value()),f=f.left;else if(m<0)f.right||(f.right=new M,f.right.segment=y.value()),f=f.right;else if(y.hasNext())y.next(),f.mid||(f.mid=new M,f.mid.segment=y.value()),f=f.mid;else break}var a=f.value;return f.value=w,f.key=g,a},c.prototype.get=function(g){for(var w=this._iter.reset(g),y=this._root;y;){var f=w.cmp(y.segment);if(f>0)y=y.left;else if(f<0)y=y.right;else if(w.hasNext())w.next(),y=y.mid;else break}return y?y.value:void 0},c.prototype.findSubstr=function(g){for(var w=this._iter.reset(g),y=this._root,f=void 0;y;){var m=w.cmp(y.segment);if(m>0)y=y.left;else if(m<0)y=y.right;else if(w.hasNext())w.next(),f=y.value||f,y=y.mid;else break}return y&&y.value||f},c.prototype.forEach=function(g){this._forEach(this._root,g)},c.prototype._forEach=function(g,w){g&&(this._forEach(g.left,w),g.value&&w(g.value,g.key),this._forEach(g.mid,w),this._forEach(g.right,w))},c}(),U=function(){function c(){this.map=new Map,this.ignoreCase=!1}return c.prototype.set=function(g,w){this.map.set(this.toKey(g),w)},c.prototype.get=function(g){return this.map.get(this.toKey(g))},c.prototype.toKey=function(g){var w=g.toString();return this.ignoreCase&&(w=w.toLowerCase()),w},c}(),_=function(){function c(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return c.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(c.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),c.prototype.get=function(g,w){w===void 0&&(w=0);var y=this._map.get(g);return y?(w!==0&&this.touch(y,w),y.value):void 0},c.prototype.set=function(g,w,y){y===void 0&&(y=0);var f=this._map.get(g);if(f)f.value=w,y!==0&&this.touch(f,y);else{f={key:g,value:w,next:void 0,previous:void 0};switch(y){case 0:this.addItemLast(f);break;case 1:this.addItemFirst(f);break;case 2:this.addItemLast(f);break;default:this.addItemLast(f);break}this._map.set(g,f),this._size++}},c.prototype.delete=function(g){return!!this.remove(g)},c.prototype.remove=function(g){var w=this._map.get(g);return w?(this._map.delete(g),this.removeItem(w),this._size--,w.value):void 0},c.prototype.forEach=function(g,w){for(var y=this._head;y;)w?g.bind(w)(y.value,y.key,this):g(y.value,y.key,this),y=y.next},c.prototype.trimOld=function(g){if(g>=this.size)return;if(g===0){this.clear();return}for(var w=this._head,y=this.size;w&&y>g;)this._map.delete(w.key),w=w.next,y--;this._head=w,this._size=y,w&&(w.previous=void 0)},c.prototype.addItemFirst=function(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g},c.prototype.addItemLast=function(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g},c.prototype.removeItem=function(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{var w=g.next,y=g.previous;if(!w||!y)throw new Error("Invalid list");w.previous=y,y.next=w}g.next=void 0,g.previous=void 0},c.prototype.touch=function(g,w){if(!this._head||!this._tail)throw new Error("Invalid list");if(w!==1&&w!==2)return;if(w===1){if(g===this._head)return;var y=g.next,f=g.previous;g===this._tail?(f.next=void 0,this._tail=f):(y.previous=f,f.next=y),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g}else if(w===2){if(g===this._tail)return;var y=g.next,f=g.previous;g===this._head?(y.previous=void 0,this._head=y):(y.previous=f,f.next=y),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g}},c.prototype.toJSON=function(){var g=[];return this.forEach(function(w,y){g.push([y,w])}),g},c}(),R=function(c){ee(g,c);function g(w,y){y===void 0&&(y=1);var f=c.call(this)||this;return f._limit=w,f._ratio=Math.min(Math.max(0,y),1),f}return g.prototype.get=function(w){return c.prototype.get.call(this,w,2)},g.prototype.peek=function(w){return c.prototype.get.call(this,w,0)},g.prototype.set=function(w,y){c.prototype.set.call(this,w,y,2),this.checkTrim()},g.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},g}(_)},RMFE:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},"SA+Z":function(et,de,N){var ee=N("wTVA"),K=N("EbDI"),k=N("ZhPi"),z=N("wkBT");function B(M){return ee(M)||K(M)||k(M)||z()}et.exports=B,et.exports.__esModule=!0,et.exports.default=et.exports},SJMd:function(et,de){/** +`),J.focus();default:throw new Error}},[J,sr]),Jr=Object(c.useMemo)(function(){switch(sr){case Ze:return g.a.createElement(pe,{callback:Dr,onCancel:rr});case vt:return g.a.createElement(Ae.b,{callback:Dr,onCancel:rr});case yt:return g.a.createElement(he,{callback:Dr,onCancel:rr});case dt:return g.a.createElement(We,{callback:Dr,onCancel:rr});default:return null}},[sr]);function rr(){Jn("")}Object(c.useEffect)(function(){if(wr.current){var Xt=wr.current,on=!1,$t=0;function dn(gn){on=!0,$t=gn.pageY}function En(){on=!1}function wn(gn){if(on){var xn=gn.pageY-$t;xn<0&&(xn=0),xn>300&&(xn=300);var Hn=Xe+xn+"px";nr(Hn)}}return Xt.addEventListener("mousedown",dn),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",En),function(){Xt.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",En)}}},[J,wr]),Object(c.useEffect)(function(){nr(Xe)},[Xe]);var Wr=ge(gt),Er=ge(br),Hr={width:Wr,height:Er},Zr=Object(c.useMemo)(function(){if(Ir){var Xt=new Date(Ir),on=Xt.getHours(),$t=Xt.getMinutes(),dn=Xt.getSeconds();return on=on<10?"0"+on:on,$t=$t<10?"0"+$t:$t,dn=dn<10?"0"+dn:dn,"".concat(on,":").concat($t,":").concat(dn)}return 0},[Ir]);function ir(){window.sessionStorage.removeItem(tt),Sn(!1),yr(0)}function ri(){Sn(!1),yr(0),J.setValue(window.sessionStorage.getItem(tt))}function ii(Xt,on){var $t=J.getValue();$t=$t.replace(Xt,on),Ft($t),J==null||J.setValue($t)}return g.a.createElement(c.Fragment,null,g.a.createElement("div",{className:"markdown-editor-wrapper",ref:bn},g.a.createElement("div",{className:"markdown-editor-container ".concat(Rt," ").concat(en?"on-preview":""," ").concat(se?"mini":""," ").concat(Rn?"full-screen":""),style:Hr},g.a.createElement(S,{insertTemp:it,watch:en,fullScreen:Rn,showNullButton:St,onActionCallback:jr,hidetoolBar:Bt,uuid:hn.current,setOpenPhones:function(){kn.current=!0}}),g.a.createElement("div",{className:"markdown-editor-body"},g.a.createElement("div",{className:"codemirror-container"},g.a.createElement("textarea",{ref:Ln,placeholder:cn})),en?g.a.createElement("div",{ref:Bn,className:"preview-container"},Ne==="stex"&&g.a.createElement(O,{value:Ot}),Ne!=="stex"&&g.a.createElement(v.a,{edit:!0,value:Ot,replaces:ii})):null))),Ct?g.a.createElement("a",{ref:wr,className:"editor-resize"}):null,g.a.createElement(I.a,null,Ee[sr]?g.a.createElement(K.a,{centered:!0,title:Ee[sr],visible:!0,onCancel:rr,footer:null},Jr):null))}},QDVR:function(et,de,N){"use strict";N.d(de,"e",function(){return K}),N.d(de,"d",function(){return P}),N.d(de,"c",function(){return j}),N.d(de,"b",function(){return U}),N.d(de,"a",function(){return R});var ee=function(){var c=function(g,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var m in f)f.hasOwnProperty(m)&&(y[m]=f[m])},c(g,w)};return function(g,w){c(g,w);function y(){this.constructor=g}g.prototype=w===null?Object.create(w):(y.prototype=w.prototype,new y)}}();function K(c){var g=[];return c.forEach(function(w){return g.push(w)}),g}function P(c){var g=[];return c.forEach(function(w,y){return g.push(y)}),g}var z=function(){function c(){this._value="",this._pos=0}return c.prototype.reset=function(g){return this._value=g,this._pos=0,this},c.prototype.next=function(){return this._pos+=1,this},c.prototype.hasNext=function(){return this._pos0)f.left||(f.left=new M,f.left.segment=y.value()),f=f.left;else if(m<0)f.right||(f.right=new M,f.right.segment=y.value()),f=f.right;else if(y.hasNext())y.next(),f.mid||(f.mid=new M,f.mid.segment=y.value()),f=f.mid;else break}var a=f.value;return f.value=w,f.key=g,a},c.prototype.get=function(g){for(var w=this._iter.reset(g),y=this._root;y;){var f=w.cmp(y.segment);if(f>0)y=y.left;else if(f<0)y=y.right;else if(w.hasNext())w.next(),y=y.mid;else break}return y?y.value:void 0},c.prototype.findSubstr=function(g){for(var w=this._iter.reset(g),y=this._root,f=void 0;y;){var m=w.cmp(y.segment);if(m>0)y=y.left;else if(m<0)y=y.right;else if(w.hasNext())w.next(),f=y.value||f,y=y.mid;else break}return y&&y.value||f},c.prototype.forEach=function(g){this._forEach(this._root,g)},c.prototype._forEach=function(g,w){g&&(this._forEach(g.left,w),g.value&&w(g.value,g.key),this._forEach(g.mid,w),this._forEach(g.right,w))},c}(),U=function(){function c(){this.map=new Map,this.ignoreCase=!1}return c.prototype.set=function(g,w){this.map.set(this.toKey(g),w)},c.prototype.get=function(g){return this.map.get(this.toKey(g))},c.prototype.toKey=function(g){var w=g.toString();return this.ignoreCase&&(w=w.toLowerCase()),w},c}(),_=function(){function c(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return c.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(c.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),c.prototype.get=function(g,w){w===void 0&&(w=0);var y=this._map.get(g);return y?(w!==0&&this.touch(y,w),y.value):void 0},c.prototype.set=function(g,w,y){y===void 0&&(y=0);var f=this._map.get(g);if(f)f.value=w,y!==0&&this.touch(f,y);else{f={key:g,value:w,next:void 0,previous:void 0};switch(y){case 0:this.addItemLast(f);break;case 1:this.addItemFirst(f);break;case 2:this.addItemLast(f);break;default:this.addItemLast(f);break}this._map.set(g,f),this._size++}},c.prototype.delete=function(g){return!!this.remove(g)},c.prototype.remove=function(g){var w=this._map.get(g);return w?(this._map.delete(g),this.removeItem(w),this._size--,w.value):void 0},c.prototype.forEach=function(g,w){for(var y=this._head;y;)w?g.bind(w)(y.value,y.key,this):g(y.value,y.key,this),y=y.next},c.prototype.trimOld=function(g){if(g>=this.size)return;if(g===0){this.clear();return}for(var w=this._head,y=this.size;w&&y>g;)this._map.delete(w.key),w=w.next,y--;this._head=w,this._size=y,w&&(w.previous=void 0)},c.prototype.addItemFirst=function(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g},c.prototype.addItemLast=function(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g},c.prototype.removeItem=function(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{var w=g.next,y=g.previous;if(!w||!y)throw new Error("Invalid list");w.previous=y,y.next=w}g.next=void 0,g.previous=void 0},c.prototype.touch=function(g,w){if(!this._head||!this._tail)throw new Error("Invalid list");if(w!==1&&w!==2)return;if(w===1){if(g===this._head)return;var y=g.next,f=g.previous;g===this._tail?(f.next=void 0,this._tail=f):(y.previous=f,f.next=y),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g}else if(w===2){if(g===this._tail)return;var y=g.next,f=g.previous;g===this._head?(y.previous=void 0,this._head=y):(y.previous=f,f.next=y),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g}},c.prototype.toJSON=function(){var g=[];return this.forEach(function(w,y){g.push([y,w])}),g},c}(),R=function(c){ee(g,c);function g(w,y){y===void 0&&(y=1);var f=c.call(this)||this;return f._limit=w,f._ratio=Math.min(Math.max(0,y),1),f}return g.prototype.get=function(w){return c.prototype.get.call(this,w,2)},g.prototype.peek=function(w){return c.prototype.get.call(this,w,0)},g.prototype.set=function(w,y){c.prototype.set.call(this,w,y,2),this.checkTrim()},g.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},g}(_)},RMFE:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},"SA+Z":function(et,de,N){var ee=N("wTVA"),K=N("EbDI"),P=N("ZhPi"),z=N("wkBT");function B(M){return ee(M)||K(M)||P(M)||z()}et.exports=B,et.exports.__esModule=!0,et.exports.default=et.exports},SJMd:function(et,de){/** * @license * Copyright (C) 2006 Google Inc. * @@ -302,35 +302,35 @@ Please report this to https://github.com/markedjs/marked.`,ge.silent)return"

          A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var N,ee,K,k=!1,z,B;window.PR_SHOULD_USE_CONTINUATION=!0;var M,j;(function(){var U=window,_=["break,continue,do,else,for,if,return,while"],R=[_,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],c=[R,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],g=[c,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],w=[c,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[c,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],f="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",m=[c,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],a="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",n=[_,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],o=[_,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],u=[_,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[g,y,w,m,a,n,o,u],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,v="str",O="kwd",A="com",p="typ",h="lit",s="pun",l="pln",D="tag",T="dec",S="src",I="atn",C="atv",W="nocode",Y="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(oe){for(var Se=0,Me=!1,We=!1,Ke=0,Qe=oe.length;Ke122||(re<65||be>90||Je.push([Math.max(65,be)|32,Math.min(re,90)|32]),re<97||be>122||Je.push([Math.max(97,be)&~32,Math.min(re,122)&~32]))}}Je.sort(function(Be,Ie){return Be[0]-Ie[0]||Ie[1]-Be[1]});for(var ie=[],ce=[],nt=0;ntEe[0]&&(Ee[1]+1>Ee[0]&&He.push("-"),He.push(dt(Ee[1])))}return He.push("]"),He.join("")}function At(Oe){for(var we=Oe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Je=we.length,st=[],He=0,nt=0;He=2&&be==="["?we[He]=pt(Te):be!=="\\"&&(we[He]=Te.replace(/[a-zA-Z]/g,function(ce){var Ee=ce.charCodeAt(0);return"["+String.fromCharCode(Ee&~32,Ee|32)+"]"}))}return we.join("")}for(var wt=[],Ke=0,Qe=oe.length;Ke|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(oe){for(var Se=0,Me=!1,We=!1,Ke=0,Qe=oe.length;Ke122||(re<65||be>90||Je.push([Math.max(65,be)|32,Math.min(re,90)|32]),re<97||be>122||Je.push([Math.max(97,be)&~32,Math.min(re,122)&~32]))}}Je.sort(function(Be,Ie){return Be[0]-Ie[0]||Ie[1]-Be[1]});for(var ie=[],ce=[],nt=0;ntEe[0]&&(Ee[1]+1>Ee[0]&&He.push("-"),He.push(dt(Ee[1])))}return He.push("]"),He.join("")}function At(Oe){for(var we=Oe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Je=we.length,st=[],He=0,nt=0;He=2&&be==="["?we[He]=pt(Te):be!=="\\"&&(we[He]=Te.replace(/[a-zA-Z]/g,function(ce){var Ee=ce.charCodeAt(0);return"["+String.fromCharCode(Ee&~32,Ee|32)+"]"}))}return we.join("")}for(var wt=[],Ke=0,Qe=oe.length;Ke=0;)Me[wt.charAt(Oe)]=At;var we=At[1],Je=""+we;vt.hasOwnProperty(Je)||(yt.push(we),vt[Je]=null)}yt.push(/[\0-\uffff]/),We=H(yt)})();var Ke=Se.length,Qe=function(Ze){for(var yt=Ze.sourceCode,vt=Ze.basePos,dt=Ze.sourceNode,pt=[vt,l],At=0,wt=yt.match(We)||[],Oe={},we=0,Je=wt.length;we=5&&He.substring(0,5)==="lang-",Te&&!(nt&&typeof nt[1]=="string")&&(Te=!1,He=S),Te||(Oe[st]=He)}var re=At;if(At+=st.length,!Te)pt.push(vt+re,He);else{var ie=nt[1],ce=st.indexOf(ie),Ee=ce+ie.length;nt[2]&&(Ee=st.length-nt[2].length,ce=Ee-ie.length);var Be=He.substring(5);q(dt,vt+re,st.substring(0,ce),Qe,pt),q(dt,vt+re+ce,ie,he(Be,ie),pt),q(dt,vt+re+Ee,st.substring(Ee),Qe,pt)}}Ze.decorations=pt};return Qe}function Ge(oe){var Se=[],Me=[];oe.tripleQuotedStrings?Se.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?Se.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Se.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&Me.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var We=oe.hashComments;We&&(oe.cStyleComments?(We>1?Se.push([A,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Se.push([A,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Me.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Se.push([A,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(Me.push([A,/^\/\/[^\r\n]*/,null]),Me.push([A,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ke=oe.regexLiterals;if(Ke){var Qe=Ke>1?"":` \r`,Ze=Qe?".":"[\\S\\s]",yt="/(?=[^/*"+Qe+"])(?:[^/\\x5B\\x5C"+Qe+"]|\\x5C"+Ze+"|\\x5B(?:[^\\x5C\\x5D"+Qe+"]|\\x5C"+Ze+")*(?:\\x5D|$))+/";Me.push(["lang-regex",RegExp("^"+Y+"("+yt+")")])}var vt=oe.types;vt&&Me.push([p,vt]);var dt=(""+oe.keywords).replace(/^ | $/g,"");dt.length&&Me.push([O,new RegExp("^(?:"+dt.replace(/[\s,]+/g,"|")+")\\b"),null]),Se.push([l,/^\s+/,null,` \r \xA0`]);var pt="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(pt+="(?!s*/)"),Me.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[p,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[l,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[l,/^\\[\s\S]?/,null],[s,new RegExp(pt),null]),Ae(Se,Me)}var Fe=Ge({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ue(oe,Se,Me){for(var We=/(?:^|\s)nocode(?:\s|$)/,Ke=/\r\n?|\n/,Qe=oe.ownerDocument,Ze=Qe.createElement("li");oe.firstChild;)Ze.appendChild(oe.firstChild);var yt=[Ze];function vt(we){var Je=we.nodeType;if(Je==1&&!We.test(we.className))if(we.nodeName==="br")dt(we),we.parentNode&&we.parentNode.removeChild(we);else for(var st=we.firstChild;st;st=st.nextSibling)vt(st);else if((Je==3||Je==4)&&Me){var He=we.nodeValue,nt=He.match(Ke);if(nt){var Te=He.substring(0,nt.index);we.nodeValue=Te;var ge=He.substring(nt.index+nt[0].length);if(ge){var be=we.parentNode;be.insertBefore(Qe.createTextNode(ge),we.nextSibling)}dt(we),Te||we.parentNode.removeChild(we)}}}function dt(we){for(;!we.nextSibling;)if(we=we.parentNode,!we)return;function Je(nt,Te){var ge=Te?nt.cloneNode(!1):nt,be=nt.parentNode;if(be){var re=Je(be,1),ie=nt.nextSibling;re.appendChild(ge);for(var ce=ie;ce;ce=ie)ie=ce.nextSibling,re.appendChild(ce)}return ge}for(var st=Je(we.nextSibling,0),He;(He=st.parentNode)&&He.nodeType===1;)st=He;yt.push(st)}for(var pt=0;pt=be&&(vt+=2),Qe>=re&&(At+=2)}}finally{He&&(He.style.display=nt)}}var je={};function xe(oe,Se){for(var Me=Se.length;--Me>=0;){var We=Se[Me];je.hasOwnProperty(We)?U.console&&console.warn("cannot override language handler %s",We):je[We]=oe}}function he(oe,Se){return oe&&je.hasOwnProperty(oe)||(oe=/^\s*]*(?:>|$)/],[A,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[s,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),xe(Ae([[l,/^[\s]+/,null,` \r -`],[C,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[s,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),xe(Ae([],[[C,/^[\s\S]+/]]),["uq.val"]),xe(Ge({keywords:g,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),xe(Ge({keywords:"null,true,false"}),["json"]),xe(Ge({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),xe(Ge({keywords:w,cStyleComments:!0}),["java"]),xe(Ge({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),xe(Ge({keywords:n,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),xe(Ge({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),xe(Ge({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),xe(Ge({keywords:m,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),xe(Ge({keywords:f,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),xe(Ae([],[[v,/^[\s\S]+/]]),["regex"]);function te(oe){var Se=oe.langExtension;try{var Me=F(oe.sourceNode,oe.pre),We=Me.sourceCode;oe.sourceCode=We,oe.spans=Me.spans,oe.basePos=0,he(Se,We)(oe),_e(oe)}catch(Ke){U.console&&console.log(Ke&&Ke.stack||Ke)}}function ye(oe,Se,Me){var We=Me||!1,Ke=Se||null,Qe=document.createElement("div");Qe.innerHTML="

          "+oe+"
          ",Qe=Qe.firstChild,We&&Ue(Qe,We,!0);var Ze={langExtension:Ke,numberLines:We,sourceNode:Qe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return te(Ze),Qe.innerHTML}function ue(oe,Se){var Me=Se||document.body,We=Me.ownerDocument||document;function Ke(ge){return Me.getElementsByTagName(ge)}for(var Qe=[Ke("pre"),Ke("code"),Ke("xmp")],Ze=[],yt=0;yt=0){var u=n.split("!=");return U.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("==")>=0){var u=n.split("==");return j.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("=~")>=0){var u=n.split("=~");return R.create(u[0].trim(),this._deserializeRegexValue(u[1],o))}return/^\!\s*/.test(n)?_.create(n.substr(1).trim()):M.create(n)},a._deserializeValue=function(n,o){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;var u=/^'([^']*)'$/.exec(n);return u?u[1].trim():n},a._deserializeRegexValue=function(n,o){if(Object(ee.x)(n)){if(o)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var u=n.indexOf("/"),x=n.lastIndexOf("/");if(u===x||u<0){if(o)throw new Error("bad regexp-value '"+n+"', missing /-enclosure");return console.warn("bad regexp-value '"+n+"', missing /-enclosure"),null}var E=n.slice(u+1,x),v=n[x+1]==="i"?"i":"";try{return new RegExp(E,v)}catch(O){if(o)throw new Error("bad regexp-value '"+n+"', parse error: "+O);return console.warn("bad regexp-value '"+n+"', parse error: "+O),null}},a}();function B(a,n){var o=a.getType(),u=n.getType();if(o!==u)return o-u;switch(o){case 1:return a.cmp(n);case 2:return a.cmp(n);case 3:return a.cmp(n);case 4:return a.cmp(n);case 6:return a.cmp(n);case 7:return a.cmp(n);case 5:return a.cmp(n);default:throw new Error("Unknown ContextKeyExpr!")}}var M=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 1},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return _.create(this.key)},a}(),j=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?M.create(n):_.create(n):new a(n,o)},a.prototype.getType=function(){return 3},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)==this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return U.create(this.key,this.value)},a}(),U=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?_.create(n):M.create(n):new a(n,o)},a.prototype.getType=function(){return 4},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)!=this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return j.create(this.key,this.value)},a}(),_=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 2},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return M.create(this.key)},a}(),R=function(){function a(n,o){this.key=n,this.regexp=o}return a.create=function(n,o){return new a(n,o)},a.prototype.getType=function(){return 6},a.prototype.cmp=function(n){if(this.keyn.key)return 1;var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return ou?1:0},a.prototype.equals=function(n){if(n instanceof a){var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return this.key===n.key&&o===u}return!1},a.prototype.evaluate=function(n){var o=n.getValue(this.key);return this.regexp?this.regexp.test(o):!1},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return c.create(this)},a}(),c=function(){function a(n){this._actual=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 7},a.prototype.cmp=function(n){return this._actual.cmp(n._actual)},a.prototype.equals=function(n){return n instanceof a?this._actual.equals(n._actual):!1},a.prototype.evaluate=function(n){return!this._actual.evaluate(n)},a.prototype.keys=function(){return this._actual.keys()},a.prototype.negate=function(){return this._actual},a}(),g=function(){function a(n){this.expr=n}return a.create=function(n){var o=a._normalizeArr(n);return o.length===0?void 0:o.length===1?o[0]:new a(o)},a.prototype.getType=function(){return 5},a.prototype.cmp=function(n){if(this.expr.lengthn.expr.length)return 1;for(var o=0,u=this.expr.length;o1;){for(var v=n.shift(),O=n.shift(),A=[],p=0,h=E(v);p=15&&(g=!1,_=!0);var v=o&&(R||g&&(E==null||E<12.11)),O=k||j&&U>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var p=function(e,t){var i=e.className,r=A(t).exec(i);if(r){var d=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(d?r[1]+d:"")}};function h(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return h(e).appendChild(t)}function l(e,t,i,r){var d=document.createElement(e);if(i&&(d.className=i),r&&(d.style.cssText=r),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var P=0;P=t)return X+(t-P);X+=Z-P,X+=i-X%i,P=Z+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};le.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},le.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(X,t-d);if(d+=P-r,d+=i-d%i,r=P+1,d>=t)return r}}var xe=[""];function he(e){for(;xe.length<=e;)xe.push(te(xe)+" ");return xe[e]}function te(e){return e[e.length-1]}function ye(e,t){for(var i=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function Me(e,t){return t?t.source.indexOf("\\w")>-1&&Se(e)?!0:t.test(e):Se(e)}function We(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Qe(e){return e.charCodeAt(0)>=768&&Ke.test(e)}function Ze(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var d=(t+i)/2,P=r<0?Math.ceil(d):Math.floor(d);if(P==t)return e(P)?t:i;e(P)?i=P:t=P+r}}function vt(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var d=!1,P=0;Pt||t==i&&X.to==t)&&(r(Math.max(X.from,t),Math.min(X.to,i),X.level==1?"rtl":"ltr",P),d=!0)}d||r(t,i,"ltr")}var dt=null;function pt(e,t,i){var r;dt=null;for(var d=0;dt)return d;P.to==t&&(P.from!=P.to&&i=="before"?r=d:dt=d),P.from==t&&(P.from!=P.to&&i!="before"?r=d:dt=d)}return r!=null?r:dt}var At=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(ne){return ne<=247?e.charAt(ne):1424<=ne&&ne<=1524?"R":1536<=ne&&ne<=1785?t.charAt(ne-1536):1774<=ne&&ne<=2220?"r":8192<=ne&&ne<=8203?"w":ne==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,P=/[LRr]/,X=/[Lb1n]/,Z=/[1n]/;function $(ne,Ce,Re){this.level=ne,this.from=Ce,this.to=Re}return function(ne,Ce){var Re=Ce=="ltr"?"L":"R";if(ne.length==0||Ce=="ltr"&&!r.test(ne))return!1;for(var Ye=ne.length,ze=[],ht=0;ht-1&&(r[t]=d.slice(0,P).concat(d.slice(P+1)))}}}function He(e,t){var i=Je(e,t);if(!i.length)return;for(var r=Array.prototype.slice.call(arguments,2),d=0;d0}function be(e){e.prototype.on=function(t,i){we(this,t,i)},e.prototype.off=function(t,i){st(this,t,i)}}function re(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ie(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ee(e){re(e),ie(e)}function Be(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),o&&e.ctrlKey&&t==1&&(t=3),t}var ut=function(){if(j&&U<9)return!1;var e=l("div");return"draggable"in e||"dragDrop"in e}(),bt;function Tt(e){if(bt==null){var t=l("span","\u200B");s(e,l("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(bt=t.offsetWidth<=1&&t.offsetHeight>2&&!(j&&U<8))}var i=bt?l("span","\u200B"):l("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var xt;function gt(e){if(xt!=null)return xt;var t=s(e,document.createTextNode("A\u062EA")),i=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return h(e),!i||i.left==i.right?!1:xt=r.right-i.right<3}var qe=` +`],[C,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[s,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),xe(Ae([],[[C,/^[\s\S]+/]]),["uq.val"]),xe(Ge({keywords:g,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),xe(Ge({keywords:"null,true,false"}),["json"]),xe(Ge({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),xe(Ge({keywords:w,cStyleComments:!0}),["java"]),xe(Ge({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),xe(Ge({keywords:n,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),xe(Ge({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),xe(Ge({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),xe(Ge({keywords:m,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),xe(Ge({keywords:f,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),xe(Ae([],[[v,/^[\s\S]+/]]),["regex"]);function te(oe){var Se=oe.langExtension;try{var Me=F(oe.sourceNode,oe.pre),We=Me.sourceCode;oe.sourceCode=We,oe.spans=Me.spans,oe.basePos=0,he(Se,We)(oe),_e(oe)}catch(Ke){U.console&&console.log(Ke&&Ke.stack||Ke)}}function ye(oe,Se,Me){var We=Me||!1,Ke=Se||null,Qe=document.createElement("div");Qe.innerHTML="
          "+oe+"
          ",Qe=Qe.firstChild,We&&Ue(Qe,We,!0);var Ze={langExtension:Ke,numberLines:We,sourceNode:Qe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return te(Ze),Qe.innerHTML}function ue(oe,Se){var Me=Se||document.body,We=Me.ownerDocument||document;function Ke(ge){return Me.getElementsByTagName(ge)}for(var Qe=[Ke("pre"),Ke("code"),Ke("xmp")],Ze=[],yt=0;yt=0){var u=n.split("!=");return U.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("==")>=0){var u=n.split("==");return j.create(u[0].trim(),this._deserializeValue(u[1],o))}if(n.indexOf("=~")>=0){var u=n.split("=~");return R.create(u[0].trim(),this._deserializeRegexValue(u[1],o))}return/^\!\s*/.test(n)?_.create(n.substr(1).trim()):M.create(n)},a._deserializeValue=function(n,o){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;var u=/^'([^']*)'$/.exec(n);return u?u[1].trim():n},a._deserializeRegexValue=function(n,o){if(Object(ee.x)(n)){if(o)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var u=n.indexOf("/"),x=n.lastIndexOf("/");if(u===x||u<0){if(o)throw new Error("bad regexp-value '"+n+"', missing /-enclosure");return console.warn("bad regexp-value '"+n+"', missing /-enclosure"),null}var E=n.slice(u+1,x),v=n[x+1]==="i"?"i":"";try{return new RegExp(E,v)}catch(O){if(o)throw new Error("bad regexp-value '"+n+"', parse error: "+O);return console.warn("bad regexp-value '"+n+"', parse error: "+O),null}},a}();function B(a,n){var o=a.getType(),u=n.getType();if(o!==u)return o-u;switch(o){case 1:return a.cmp(n);case 2:return a.cmp(n);case 3:return a.cmp(n);case 4:return a.cmp(n);case 6:return a.cmp(n);case 7:return a.cmp(n);case 5:return a.cmp(n);default:throw new Error("Unknown ContextKeyExpr!")}}var M=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 1},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return _.create(this.key)},a}(),j=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?M.create(n):_.create(n):new a(n,o)},a.prototype.getType=function(){return 3},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)==this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return U.create(this.key,this.value)},a}(),U=function(){function a(n,o){this.key=n,this.value=o}return a.create=function(n,o){return typeof o=="boolean"?o?_.create(n):M.create(n):new a(n,o)},a.prototype.getType=function(){return 4},a.prototype.cmp=function(n){return this.keyn.key?1:this.valuen.value?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key&&this.value===n.value:!1},a.prototype.evaluate=function(n){return n.getValue(this.key)!=this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return j.create(this.key,this.value)},a}(),_=function(){function a(n){this.key=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 2},a.prototype.cmp=function(n){return this.keyn.key?1:0},a.prototype.equals=function(n){return n instanceof a?this.key===n.key:!1},a.prototype.evaluate=function(n){return!n.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return M.create(this.key)},a}(),R=function(){function a(n,o){this.key=n,this.regexp=o}return a.create=function(n,o){return new a(n,o)},a.prototype.getType=function(){return 6},a.prototype.cmp=function(n){if(this.keyn.key)return 1;var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return ou?1:0},a.prototype.equals=function(n){if(n instanceof a){var o=this.regexp?this.regexp.source:"",u=n.regexp?n.regexp.source:"";return this.key===n.key&&o===u}return!1},a.prototype.evaluate=function(n){var o=n.getValue(this.key);return this.regexp?this.regexp.test(o):!1},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return c.create(this)},a}(),c=function(){function a(n){this._actual=n}return a.create=function(n){return new a(n)},a.prototype.getType=function(){return 7},a.prototype.cmp=function(n){return this._actual.cmp(n._actual)},a.prototype.equals=function(n){return n instanceof a?this._actual.equals(n._actual):!1},a.prototype.evaluate=function(n){return!this._actual.evaluate(n)},a.prototype.keys=function(){return this._actual.keys()},a.prototype.negate=function(){return this._actual},a}(),g=function(){function a(n){this.expr=n}return a.create=function(n){var o=a._normalizeArr(n);return o.length===0?void 0:o.length===1?o[0]:new a(o)},a.prototype.getType=function(){return 5},a.prototype.cmp=function(n){if(this.expr.lengthn.expr.length)return 1;for(var o=0,u=this.expr.length;o1;){for(var v=n.shift(),O=n.shift(),A=[],p=0,h=E(v);p=15&&(g=!1,_=!0);var v=o&&(R||g&&(E==null||E<12.11)),O=P||j&&U>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var p=function(e,t){var i=e.className,r=A(t).exec(i);if(r){var d=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(d?r[1]+d:"")}};function h(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return h(e).appendChild(t)}function l(e,t,i,r){var d=document.createElement(e);if(i&&(d.className=i),r&&(d.style.cssText=r),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var k=0;k=t)return X+(t-k);X+=Z-k,X+=i-X%i,k=Z+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};le.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},le.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(X,t-d);if(d+=k-r,d+=i-d%i,r=k+1,d>=t)return r}}var xe=[""];function he(e){for(;xe.length<=e;)xe.push(te(xe)+" ");return xe[e]}function te(e){return e[e.length-1]}function ye(e,t){for(var i=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function Me(e,t){return t?t.source.indexOf("\\w")>-1&&Se(e)?!0:t.test(e):Se(e)}function We(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Qe(e){return e.charCodeAt(0)>=768&&Ke.test(e)}function Ze(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var d=(t+i)/2,k=r<0?Math.ceil(d):Math.floor(d);if(k==t)return e(k)?t:i;e(k)?i=k:t=k+r}}function vt(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var d=!1,k=0;kt||t==i&&X.to==t)&&(r(Math.max(X.from,t),Math.min(X.to,i),X.level==1?"rtl":"ltr",k),d=!0)}d||r(t,i,"ltr")}var dt=null;function pt(e,t,i){var r;dt=null;for(var d=0;dt)return d;k.to==t&&(k.from!=k.to&&i=="before"?r=d:dt=d),k.from==t&&(k.from!=k.to&&i!="before"?r=d:dt=d)}return r!=null?r:dt}var At=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(ne){return ne<=247?e.charAt(ne):1424<=ne&&ne<=1524?"R":1536<=ne&&ne<=1785?t.charAt(ne-1536):1774<=ne&&ne<=2220?"r":8192<=ne&&ne<=8203?"w":ne==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,k=/[LRr]/,X=/[Lb1n]/,Z=/[1n]/;function $(ne,Ce,Re){this.level=ne,this.from=Ce,this.to=Re}return function(ne,Ce){var Re=Ce=="ltr"?"L":"R";if(ne.length==0||Ce=="ltr"&&!r.test(ne))return!1;for(var Ye=ne.length,ze=[],ht=0;ht-1&&(r[t]=d.slice(0,k).concat(d.slice(k+1)))}}}function He(e,t){var i=Je(e,t);if(!i.length)return;for(var r=Array.prototype.slice.call(arguments,2),d=0;d0}function be(e){e.prototype.on=function(t,i){we(this,t,i)},e.prototype.off=function(t,i){st(this,t,i)}}function re(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ie(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ee(e){re(e),ie(e)}function Be(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),o&&e.ctrlKey&&t==1&&(t=3),t}var ut=function(){if(j&&U<9)return!1;var e=l("div");return"draggable"in e||"dragDrop"in e}(),bt;function Tt(e){if(bt==null){var t=l("span","\u200B");s(e,l("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(bt=t.offsetWidth<=1&&t.offsetHeight>2&&!(j&&U<8))}var i=bt?l("span","\u200B"):l("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var xt;function gt(e){if(xt!=null)return xt;var t=s(e,document.createTextNode("A\u062EA")),i=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return h(e),!i||i.left==i.right?!1:xt=r.right-i.right<3}var qe=` b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var d=e.indexOf(` -`,t);d==-1&&(d=e.length);var P=e.slice(t,e.charAt(d-1)=="\r"?d-1:d),X=P.indexOf("\r");X!=-1?(i.push(P.slice(0,X)),t+=X+1):(i.push(P),t=d+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Xe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ke=function(){var e=l("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),se=null;function fe(e){if(se!=null)return se;var t=s(e,l("span","x")),i=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return se=Math.abs(i.left-r.left)>1}var $e={},Pe={};function it(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function at(e,t){Pe[e]=t}function Ne(e){if(typeof e=="string"&&Pe.hasOwnProperty(e))e=Pe[e];else if(e&&typeof e.name=="string"&&Pe.hasOwnProperty(e.name)){var t=Pe[e.name];typeof t=="string"&&(t={name:t}),e=ae(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ne("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ne("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ne(t);var i=$e[t.name];if(!i)return Ve(e,"text/plain");var r=i(e,t);if(tt.hasOwnProperty(t.name)){var d=tt[t.name];for(var P in d){if(!d.hasOwnProperty(P))continue;r.hasOwnProperty(P)&&(r["_"+P]=r[P]),r[P]=d[P]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var X in t.modeProps)r[X]=t.modeProps[X];return r}var tt={};function ft(e,t){var i=tt.hasOwnProperty(e)?tt[e]:tt[e]={};F(t,i)}function Ct(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var d=t[r];d instanceof Array&&(d=d.concat([])),i[r]=d}return i}function zt(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function qt(e,t,i){return e.startState?e.startState(t,i):!0}var Qt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Qt.prototype.eol=function(){return this.pos>=this.string.length},Qt.prototype.sol=function(){return this.pos==this.lineStart},Qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qt.prototype.next=function(){if(this.post},Qt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qt.prototype.skipToEnd=function(){this.pos=this.string.length},Qt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qt.prototype.backUp=function(e){this.pos-=e},Qt.prototype.column=function(){return this.lastColumnPos0?null:(P&&t!==!1&&(this.pos+=P[0].length),P)}},Qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function St(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var d=i.children[r],P=d.chunkSize();if(t=e.first&&ti?lt(i,St(e,i).text.length):L(t,St(e,t.line).text.length)}function L(e,t){var i=e.ch;return i==null||i>t?lt(e.line,t):i<0?lt(e.line,0):e}function V(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Q.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Q.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Q.fromSaved=function(e,t,i){return t instanceof J?new Q(e,Ct(e.mode,t.state),i,t.lookAhead):new Q(e,Ct(e.mode,t),i)},Q.prototype.save=function(e){var t=e!==!1?Ct(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new J(t,this.maxLookAhead):t};function De(e,t,i,r){var d=[e.state.modeGen],P={};tr(e,t.text,e.doc.mode,i,function(ne,Ce){return d.push(ne,Ce)},P,r);for(var X=i.state,Z=function(ne){i.baseTokens=d;var Ce=e.state.overlays[ne],Re=1,Ye=0;i.state=!0,tr(e,t.text,Ce.mode,i,function(ze,ht){for(var Et=Re;Yeze&&d.splice(Re,1,ze,d[Re+1],Dt),Re+=2,Ye=Math.min(ze,Dt)}if(!ht)return;if(Ce.opaque)d.splice(Et,Re-Et,ze,"overlay "+ht),Re=Et+2;else for(;Ete.options.maxHighlightLength&&Ct(e.doc.mode,r.state),P=De(e,t,r);d&&(r.state=d),t.stateAfter=r.save(!d),t.styles=P.styles,P.classes?t.styleClasses=P.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ot(e,t,i){var r=e.doc,d=e.display;if(!r.mode.startState)return new Q(r,!0,t);var P=Rn(e,t,i),X=P>r.first&&St(r,P-1).stateAfter,Z=X?Q.fromSaved(r,X,P):new Q(r,qt(r.mode),P);return r.iter(P,t,function($){Ft(e,$.text,Z);var ne=Z.line;$.stateAfter=ne==t-1||ne%5==0||ne>=d.viewFrom&&net.start)return P}throw new Error("Mode "+e.name+" failed to advance stream.")}var en=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Tn(e,t,i,r){var d=e.doc,P=d.mode,X;t=b(d,t);var Z=St(d,t.line),$=Ot(e,t.line,i),ne=new Qt(Z.text,e.options.tabSize,$),Ce;for(r&&(Ce=[]);(r||ne.pose.options.maxHighlightLength?(Z=!1,X&&Ft(e,t,r,Ce.pos),Ce.pos=t.length,Re=null):Re=Wn(Gt(i,Ce,r.state,Ye),P),Ye){var ze=Ye[0].name;ze&&(Re="m-"+(Re?ze+" "+Re:ze))}if(!Z||ne!=Re){for(;$X;--Z){if(Z<=P.first)return P.first;var $=St(P,Z-1),ne=$.stateAfter;if(ne&&(!i||Z+(ne instanceof J?ne.lookAhead:0)<=P.modeFrontier))return Z;var Ce=q($.text,null,e.options.tabSize);(d==null||r>Ce)&&(d=Z-1,r=Ce)}return d}function or(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;r--){var d=St(e,r).stateAfter;if(d&&(!(d instanceof J)||r+d.lookAhead=t:P.to>t);(r||(r=[])).push(new Mr(X,P.from,$?null:P.to))}}return r}function Yr(e,t,i){var r;if(e)for(var d=0;d=t:P.to>t);if(Z||P.from==t&&X.type=="bookmark"&&(!i||P.marker.insertLeft)){var $=P.from==null||(X.inclusiveLeft?P.from<=t:P.from0&&Z)for(var Vt=0;Vt0)continue;var Ce=[$,1],Re=Rt(ne.from,Z.from),Ye=Rt(ne.to,Z.to);(Re<0||!X.inclusiveLeft&&!Re)&&Ce.push({from:ne.from,to:Z.from}),(Ye>0||!X.inclusiveRight&&!Ye)&&Ce.push({from:Z.to,to:ne.to}),d.splice.apply(d,Ce),$+=Ce.length-3}return d}function _r(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!r||Pn(r,P.marker)<0)&&(r=P.marker)}return r}function Bn(e,t,i,r,d){var P=St(e,t),X=Vn&&P.markedSpans;if(X)for(var Z=0;Z=0&&Re<=0||Ce<=0&&Re>=0)continue;if(Ce<=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.to,i)>=0:Rt(ne.to,i)>0)||Ce>=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.from,r)<=0:Rt(ne.from,r)<0))return!0}}function Qn(e){for(var t;t=Ln(e);)e=t.find(-1,!0).line;return e}function zr(e){for(var t;t=bn(e);)e=t.find(1,!0).line;return e}function jr(e){for(var t,i;t=bn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Dr(e,t){var i=St(e,t),r=Qn(i);return i==r?t:Mt(r)}function Jr(e,t){if(t>e.lastLine())return t;var i=St(e,t),r;if(!rr(e,i))return t;for(;r=bn(i);)i=r.find(1,!0).line;return Mt(i)+1}function rr(e,t){var i=Vn&&t.markedSpans;if(i)for(var r=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=r)})}var ir=function(e,t,i){this.text=e,Fr(this,t),this.height=i?i(this):1};ir.prototype.lineNo=function(){return Mt(this)},be(ir);function ri(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),_r(e),Fr(e,i);var d=r?r(e):1;d!=e.height&&Yt(e,d)}function ii(e){e.parent=null,_r(e)}var Xt={},on={};function $t(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?on:Xt;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function dn(e,t){var i=D("span",null,null,_?"padding-right: .1px":null),r={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var P=d?t.rest[d-1]:t.line,X=void 0;r.pos=0,r.addToken=wn,gt(e.display.measure)&&(X=wt(P,e.doc.direction))&&(r.addToken=xn(r.addToken,X)),r.map=[];var Z=t!=e.display.externalMeasured&&Mt(P);fn(P,r,ot(e,P,Z)),P.styleClasses&&(P.styleClasses.bgClass&&(r.bgClass=W(P.styleClasses.bgClass,r.bgClass||"")),P.styleClasses.textClass&&(r.textClass=W(P.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Tt(e.display.measure))),d==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(_){var $=r.content.lastChild;(/\bcm-tab\b/.test($.className)||$.querySelector&&$.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return He(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=W(r.pre.className,r.textClass||"")),r}function En(e){var t=l("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function wn(e,t,i,r,d,P,X){if(!t)return;var Z=e.splitSpaces?gn(t,e.trailingSpace):t,$=e.cm.state.specialChars,ne=!1,Ce;if(!$.test(t))e.col+=t.length,Ce=document.createTextNode(Z),e.map.push(e.pos,e.pos+t.length,Ce),j&&U<9&&(ne=!0),e.pos+=t.length;else{Ce=document.createDocumentFragment();for(var Re=0;;){$.lastIndex=Re;var Ye=$.exec(t),ze=Ye?Ye.index-Re:t.length-Re;if(ze){var ht=document.createTextNode(Z.slice(Re,Re+ze));j&&U<9?Ce.appendChild(l("span",[ht])):Ce.appendChild(ht),e.map.push(e.pos,e.pos+ze,ht),e.col+=ze,e.pos+=ze}if(!Ye)break;Re+=ze+1;var Et=void 0;if(Ye[0]==" "){var Dt=e.cm.options.tabSize,kt=Dt-e.col%Dt;Et=Ce.appendChild(l("span",he(kt),"cm-tab")),Et.setAttribute("role","presentation"),Et.setAttribute("cm-text"," "),e.col+=kt}else Ye[0]=="\r"||Ye[0]==` -`?(Et=Ce.appendChild(l("span",Ye[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Et.setAttribute("cm-text",Ye[0]),e.col+=1):(Et=e.cm.options.specialCharPlaceholder(Ye[0]),Et.setAttribute("cm-text",Ye[0]),j&&U<9?Ce.appendChild(l("span",[Et])):Ce.appendChild(Et),e.col+=1);e.map.push(e.pos,e.pos+1,Et),e.pos++}}if(e.trailingSpace=Z.charCodeAt(t.length-1)==32,i||r||d||ne||P||X){var Wt=i||"";r&&(Wt+=r),d&&(Wt+=d);var Pt=l("span",[Ce],Wt,P);if(X)for(var Vt in X)X.hasOwnProperty(Vt)&&Vt!="style"&&Vt!="class"&&Pt.setAttribute(Vt,X[Vt]);return e.content.appendChild(Pt)}e.content.appendChild(Ce)}function gn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",d=0;dne&&Re.from<=ne);Ye++);if(Re.to>=Ce)return e(i,r,d,P,X,Z,$);e(i,r.slice(0,Re.to-ne),d,P,null,Z,$),P=null,r=r.slice(Re.to-ne),ne=Re.to}}}function Hn(e,t,i,r){var d=!r&&i.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!r&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",i.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function fn(e,t,i){var r=e.markedSpans,d=e.text,P=0;if(!r){for(var X=1;X$||vn.collapsed&&an.to==$&&an.from==$)){if(an.to!=null&&an.to!=$&&ze>an.to&&(ze=an.to,Et=""),vn.className&&(ht+=" "+vn.className),vn.css&&(Ye=(Ye?Ye+";":"")+vn.css),vn.startStyle&&an.from==$&&(Dt+=" "+vn.startStyle),vn.endStyle&&an.to==ze&&(Vt||(Vt=[])).push(vn.endStyle,an.to),vn.title&&((Wt||(Wt={})).title=vn.title),vn.attributes)for(var kn in vn.attributes)(Wt||(Wt={}))[kn]=vn.attributes[kn];vn.collapsed&&(!kt||Pn(kt.marker,vn)<0)&&(kt=an)}else an.from>$&&ze>an.from&&(ze=an.from)}if(Vt)for(var $n=0;$n=Z)break;for(var Lr=Math.min(Z,ze);;){if(Ce){var Cr=$+Ce.length;if(!kt){var zn=Cr>Lr?Ce.slice(0,Lr-$):Ce;t.addToken(t,zn,Re?Re+ht:ht,Dt,$+zn.length==ze?Et:"",Ye,Wt)}if(Cr>=Lr){Ce=Ce.slice(Lr-$),$=Lr;break}$=Cr,Dt=""}Ce=d.slice(P,P=i[ne++]),Re=$t(i[ne++],t.cm.options)}}}function kr(e,t,i){this.line=t,this.rest=jr(t),this.size=this.rest?Mt(te(this.rest))-i+1:1,this.node=this.text=null,this.hidden=rr(e,t)}function Ht(e,t,i){for(var r=[],d,P=t;P2&&P.push(($.bottom+ne.top)/2-i.top)}}P.push(i.bottom-i.top)}}function Di(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;ri)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function io(e,t){t=Qn(t);var i=Mt(t),r=e.display.externalMeasured=new kr(e.doc,t,i);r.lineN=i;var d=r.built=dn(e,r);return r.text=d.pre,s(e.display.lineMeasure,d.pre),r}function Vi(e,t,i,r){return mr(e,li(e,t),i,r)}function Xi(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(P=$-Z,d=P-1,t>=$&&(X="right")),d!=null){if(r=e[ne+2],Z==$&&i==(r.insertLeft?"left":"right")&&(X=i),i=="left"&&d==0)for(;ne&&e[ne-2]==e[ne-3]&&e[ne-1].insertLeft;)r=e[(ne-=3)+2],X="left";if(i=="right"&&d==$-Z)for(;ne=0&&!((i=e[d]).left!=i.right);d--);return i}function Ri(e,t,i,r){var d=Yi(t.map,i,r),P=d.node,X=d.start,Z=d.end,$=d.collapse,ne;if(P.nodeType==3){for(var Ce=0;Ce<4;Ce++){for(;X&&Qe(t.line.text.charAt(d.coverStart+X));)--X;for(;d.coverStart+Z0&&($=r="right");var Re;e.options.lineWrapping&&(Re=P.getClientRects()).length>1?ne=Re[r=="right"?Re.length-1:0]:ne=P.getBoundingClientRect()}if(j&&U<9&&!X&&(!ne||!ne.left&&!ne.right)){var Ye=P.parentNode.getClientRects()[0];Ye?ne={left:Ye.left,right:Ye.left+me(e.display),top:Ye.top,bottom:Ye.bottom}:ne=Qi}for(var ze=ne.top-t.rect.top,ht=ne.bottom-t.rect.top,Et=(ze+ht)/2,Dt=t.view.measure.heights,kt=0;kt=r.text.length?($=r.text.length,ne="before"):$<=0&&($=0,ne="after"),!Z)return X(ne=="before"?$-1:$,ne=="before");function Ce(ht,Et,Dt){var kt=Z[Et],Wt=kt.level==1;return X(Dt?ht-1:ht,Wt!=Dt)}var Re=pt(Z,$,ne),Ye=dt,ze=Ce($,Re,ne=="before");return Ye!=null&&(ze.other=Ce($,Ye,ne!="before")),ze}function Ia(e,t){var i=0;t=b(e.doc,t),e.options.lineWrapping||(i=me(e.display)*t.ch);var r=St(e.doc,t.line),d=Er(r)+yi(e.display);return{left:i,right:i,top:d,bottom:d+r.height}}function Kr(e,t,i,r,d){var P=lt(e,t,i);return P.xRel=d,r&&(P.outside=r),P}function $i(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Kr(r.first,0,null,-1,-1);var d=tn(r,i),P=r.first+r.size-1;if(d>P)return Kr(r.first+r.size-1,St(r,P).text.length,null,1,1);t<0&&(t=0);for(var X=St(r,d);;){var Z=Pa(e,X,d,t,i),$=wr(X,Z.ch+(Z.xRel>0||Z.outside>0?1:0));if(!$)return Z;var ne=$.find(1);if(ne.line==d)return ne;X=St(r,d=ne.line)}}function _a(e,t,i,r){r-=Zi(t);var d=t.text.length,P=yt(function(X){return mr(e,i,X-1).bottom<=r},d,0);return d=yt(function(X){return mr(e,i,X).top>r},P,d),{begin:P,end:d}}function ka(e,t,i,r){i||(i=li(e,t));var d=Oi(e,t,mr(e,i,r),"line").top;return _a(e,t,i,d)}function ea(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function Pa(e,t,i,r,d){d-=Er(t);var P=li(e,t),X=Zi(t),Z=0,$=t.text.length,ne=!0,Ce=wt(t,e.doc.direction);if(Ce){var Re=(e.options.lineWrapping?Ba:Na)(e,t,i,P,Ce,r,d);ne=Re.level!=1,Z=ne?Re.from:Re.to-1,$=ne?Re.to:Re.from-1}var Ye=null,ze=null,ht=yt(function(sn){var an=mr(e,P,sn);return an.top+=X,an.bottom+=X,ea(an,r,d,!1)?(an.top<=d&&an.left<=r&&(Ye=sn,ze=an),!0):!1},Z,$),Et,Dt,kt=!1;if(ze){var Wt=r-ze.left=Vt.bottom?1:0}return ht=Ze(t.text,ht,1),Kr(i,ht,Dt,kt,r-Et)}function Na(e,t,i,r,d,P,X){var Z=yt(function(Re){var Ye=d[Re],ze=Ye.level!=1;return ea(Pr(e,lt(i,ze?Ye.to:Ye.from,ze?"before":"after"),"line",t,r),P,X,!0)},0,d.length-1),$=d[Z];if(Z>0){var ne=$.level!=1,Ce=Pr(e,lt(i,ne?$.from:$.to,ne?"after":"before"),"line",t,r);ea(Ce,P,X,!0)&&Ce.top>X&&($=d[Z-1])}return $}function Ba(e,t,i,r,d,P,X){var Z=_a(e,t,r,X),$=Z.begin,ne=Z.end;/\s/.test(t.text.charAt(ne-1))&&ne--;for(var Ce=null,Re=null,Ye=0;Ye=ne||ze.to<=$)continue;var ht=ze.level!=1,Et=mr(e,r,ht?Math.min(ne,ze.to)-1:Math.max($,ze.from)).right,Dt=EtDt)&&(Ce=ze,Re=Dt)}return Ce||(Ce=d[d.length-1]),Ce.from<$&&(Ce={from:$,to:Ce.to,level:Ce.level}),Ce.to>ne&&(Ce={from:Ce.from,to:ne,level:Ce.level}),Ce}var Vr;function Ut(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Vr==null){Vr=l("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Vr.appendChild(document.createTextNode("x")),Vr.appendChild(l("br"));Vr.appendChild(document.createTextNode("x"))}s(e.measure,Vr);var i=Vr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),h(e.measure),i||1}function me(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=l("span","xxxxxxxxxx"),i=l("pre",[t],"CodeMirror-line-like");s(e.measure,i);var r=t.getBoundingClientRect(),d=(r.right-r.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ct(e){for(var t=e.display,i={},r={},d=t.gutters.clientLeft,P=t.gutters.firstChild,X=0;P;P=P.nextSibling,++X){var Z=e.display.gutterSpecs[X].className;i[Z]=P.offsetLeft+P.clientLeft+d,r[Z]=P.clientWidth}return{fixedPos:rt(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function rt(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _t(e){var t=Ut(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/me(e.display)-3);return function(d){if(rr(e.doc,d))return 0;var P=0;if(d.widgets)for(var X=0;X0&&(ne=St(e.doc,$.line).text).length==$.ch){var Ce=q(ne,ne.length,e.options.tabSize)-ne.length;$=lt($.line,Math.max(0,Math.round((P-Da(e.display).left)/me(e.display))-Ce))}return $}function Nt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,r=0;rt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)Vn&&Dr(e.doc,t)d.viewFrom?jt(e):(d.viewFrom+=r,d.viewTo+=r);else if(t<=d.viewFrom&&i>=d.viewTo)jt(e);else if(t<=d.viewFrom){var P=rn(e,i,i+r,1);P?(d.view=d.view.slice(P.index),d.viewFrom=P.lineN,d.viewTo+=r):jt(e)}else if(i>=d.viewTo){var X=rn(e,t,t,-1);X?(d.view=d.view.slice(0,X.index),d.viewTo=X.lineN):jt(e)}else{var Z=rn(e,t,t,-1),$=rn(e,i,i+r,1);Z&&$?(d.view=d.view.slice(0,Z.index).concat(Ht(e,Z.lineN,$.lineN)).concat(d.view.slice($.index)),d.viewTo+=r):jt(e)}var ne=d.externalMeasured;ne&&(i=d.lineN&&t=r.viewTo)return;var P=r.view[Nt(e,t)];if(P.node==null)return;var X=P.changes||(P.changes=[]);pe(X,i)==-1&&X.push(i)}function jt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function rn(e,t,i,r){var d=Nt(e,t),P,X=e.display.view;if(!Vn||i==e.doc.first+e.doc.size)return{index:d,lineN:i};for(var Z=e.display.viewFrom,$=0;$0){if(d==X.length-1)return null;P=Z+X[d].size-t,d++}else P=Z-t;t+=P,i+=P}for(;Dr(e.doc,i)!=i;){if(d==(r<0?0:X.length-1))return null;i+=r*X[d-(r<0?1:0)].size,d+=r}return{index:d,lineN:i}}function Mn(e,t,i){var r=e.display,d=r.view;d.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Ht(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Ht(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,Nt(e,i)))),r.viewTo=i}function Nn(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||Z.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Mi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function ko(e){e.state.focused||(e.display.input.focus(),lo(e))}function Po(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Mi(e))},100)}function lo(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(He(e,"focus",e,t),e.state.focused=!0,C(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),_&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),so(e)}function Mi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(He(e,"blur",e,t),e.state.focused=!1,p(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Fa(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=0;r.005||Ce<-.005)&&(Yt(d.line,X),No(d.line),d.rest))for(var Re=0;Ree.display.sizerWidth){var Ye=Math.ceil(Z/me(e.display));Ye>e.display.maxLineLength&&(e.display.maxLineLength=Ye,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function No(e){if(e.widgets)for(var t=0;t=X&&(P=tn(t,Er(St(t,$))-e.wrapper.clientHeight),X=$)}return{from:P,to:Math.max(X,P+1)}}function Qs(e,t){if(nt(e,"scrollCursorIntoView"))return;var i=e.display,r=i.sizer.getBoundingClientRect(),d=null;if(t.top+r.top<0?d=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!f){var P=l("div","\u200B",null,`position: absolute; +`,t);d==-1&&(d=e.length);var k=e.slice(t,e.charAt(d-1)=="\r"?d-1:d),X=k.indexOf("\r");X!=-1?(i.push(k.slice(0,X)),t+=X+1):(i.push(k),t=d+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Xe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Pe=function(){var e=l("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),se=null;function fe(e){if(se!=null)return se;var t=s(e,l("span","x")),i=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return se=Math.abs(i.left-r.left)>1}var $e={},ke={};function it(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function at(e,t){ke[e]=t}function Ne(e){if(typeof e=="string"&&ke.hasOwnProperty(e))e=ke[e];else if(e&&typeof e.name=="string"&&ke.hasOwnProperty(e.name)){var t=ke[e.name];typeof t=="string"&&(t={name:t}),e=ae(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ne("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ne("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ne(t);var i=$e[t.name];if(!i)return Ve(e,"text/plain");var r=i(e,t);if(tt.hasOwnProperty(t.name)){var d=tt[t.name];for(var k in d){if(!d.hasOwnProperty(k))continue;r.hasOwnProperty(k)&&(r["_"+k]=r[k]),r[k]=d[k]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var X in t.modeProps)r[X]=t.modeProps[X];return r}var tt={};function ft(e,t){var i=tt.hasOwnProperty(e)?tt[e]:tt[e]={};F(t,i)}function Ct(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var d=t[r];d instanceof Array&&(d=d.concat([])),i[r]=d}return i}function zt(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function qt(e,t,i){return e.startState?e.startState(t,i):!0}var Qt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Qt.prototype.eol=function(){return this.pos>=this.string.length},Qt.prototype.sol=function(){return this.pos==this.lineStart},Qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qt.prototype.next=function(){if(this.post},Qt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qt.prototype.skipToEnd=function(){this.pos=this.string.length},Qt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qt.prototype.backUp=function(e){this.pos-=e},Qt.prototype.column=function(){return this.lastColumnPos0?null:(k&&t!==!1&&(this.pos+=k[0].length),k)}},Qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function St(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var d=i.children[r],k=d.chunkSize();if(t=e.first&&ti?lt(i,St(e,i).text.length):L(t,St(e,t.line).text.length)}function L(e,t){var i=e.ch;return i==null||i>t?lt(e.line,t):i<0?lt(e.line,0):e}function V(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Q.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Q.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Q.fromSaved=function(e,t,i){return t instanceof J?new Q(e,Ct(e.mode,t.state),i,t.lookAhead):new Q(e,Ct(e.mode,t),i)},Q.prototype.save=function(e){var t=e!==!1?Ct(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new J(t,this.maxLookAhead):t};function De(e,t,i,r){var d=[e.state.modeGen],k={};tr(e,t.text,e.doc.mode,i,function(ne,Ce){return d.push(ne,Ce)},k,r);for(var X=i.state,Z=function(ne){i.baseTokens=d;var Ce=e.state.overlays[ne],Re=1,Ye=0;i.state=!0,tr(e,t.text,Ce.mode,i,function(ze,ht){for(var Et=Re;Yeze&&d.splice(Re,1,ze,d[Re+1],Dt),Re+=2,Ye=Math.min(ze,Dt)}if(!ht)return;if(Ce.opaque)d.splice(Et,Re-Et,ze,"overlay "+ht),Re=Et+2;else for(;Ete.options.maxHighlightLength&&Ct(e.doc.mode,r.state),k=De(e,t,r);d&&(r.state=d),t.stateAfter=r.save(!d),t.styles=k.styles,k.classes?t.styleClasses=k.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ot(e,t,i){var r=e.doc,d=e.display;if(!r.mode.startState)return new Q(r,!0,t);var k=Rn(e,t,i),X=k>r.first&&St(r,k-1).stateAfter,Z=X?Q.fromSaved(r,X,k):new Q(r,qt(r.mode),k);return r.iter(k,t,function($){Ft(e,$.text,Z);var ne=Z.line;$.stateAfter=ne==t-1||ne%5==0||ne>=d.viewFrom&&net.start)return k}throw new Error("Mode "+e.name+" failed to advance stream.")}var en=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Tn(e,t,i,r){var d=e.doc,k=d.mode,X;t=b(d,t);var Z=St(d,t.line),$=Ot(e,t.line,i),ne=new Qt(Z.text,e.options.tabSize,$),Ce;for(r&&(Ce=[]);(r||ne.pose.options.maxHighlightLength?(Z=!1,X&&Ft(e,t,r,Ce.pos),Ce.pos=t.length,Re=null):Re=Wn(Gt(i,Ce,r.state,Ye),k),Ye){var ze=Ye[0].name;ze&&(Re="m-"+(Re?ze+" "+Re:ze))}if(!Z||ne!=Re){for(;$X;--Z){if(Z<=k.first)return k.first;var $=St(k,Z-1),ne=$.stateAfter;if(ne&&(!i||Z+(ne instanceof J?ne.lookAhead:0)<=k.modeFrontier))return Z;var Ce=q($.text,null,e.options.tabSize);(d==null||r>Ce)&&(d=Z-1,r=Ce)}return d}function or(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;r--){var d=St(e,r).stateAfter;if(d&&(!(d instanceof J)||r+d.lookAhead=t:k.to>t);(r||(r=[])).push(new Mr(X,k.from,$?null:k.to))}}return r}function Yr(e,t,i){var r;if(e)for(var d=0;d=t:k.to>t);if(Z||k.from==t&&X.type=="bookmark"&&(!i||k.marker.insertLeft)){var $=k.from==null||(X.inclusiveLeft?k.from<=t:k.from0&&Z)for(var Vt=0;Vt0)continue;var Ce=[$,1],Re=Rt(ne.from,Z.from),Ye=Rt(ne.to,Z.to);(Re<0||!X.inclusiveLeft&&!Re)&&Ce.push({from:ne.from,to:Z.from}),(Ye>0||!X.inclusiveRight&&!Ye)&&Ce.push({from:Z.to,to:ne.to}),d.splice.apply(d,Ce),$+=Ce.length-3}return d}function _r(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!r||kn(r,k.marker)<0)&&(r=k.marker)}return r}function Bn(e,t,i,r,d){var k=St(e,t),X=Vn&&k.markedSpans;if(X)for(var Z=0;Z=0&&Re<=0||Ce<=0&&Re>=0)continue;if(Ce<=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.to,i)>=0:Rt(ne.to,i)>0)||Ce>=0&&($.marker.inclusiveRight&&d.inclusiveLeft?Rt(ne.from,r)<=0:Rt(ne.from,r)<0))return!0}}function Qn(e){for(var t;t=Ln(e);)e=t.find(-1,!0).line;return e}function zr(e){for(var t;t=bn(e);)e=t.find(1,!0).line;return e}function jr(e){for(var t,i;t=bn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Dr(e,t){var i=St(e,t),r=Qn(i);return i==r?t:Mt(r)}function Jr(e,t){if(t>e.lastLine())return t;var i=St(e,t),r;if(!rr(e,i))return t;for(;r=bn(i);)i=r.find(1,!0).line;return Mt(i)+1}function rr(e,t){var i=Vn&&t.markedSpans;if(i)for(var r=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=r)})}var ir=function(e,t,i){this.text=e,Fr(this,t),this.height=i?i(this):1};ir.prototype.lineNo=function(){return Mt(this)},be(ir);function ri(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),_r(e),Fr(e,i);var d=r?r(e):1;d!=e.height&&Yt(e,d)}function ii(e){e.parent=null,_r(e)}var Xt={},on={};function $t(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?on:Xt;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function dn(e,t){var i=D("span",null,null,_?"padding-right: .1px":null),r={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var k=d?t.rest[d-1]:t.line,X=void 0;r.pos=0,r.addToken=wn,gt(e.display.measure)&&(X=wt(k,e.doc.direction))&&(r.addToken=xn(r.addToken,X)),r.map=[];var Z=t!=e.display.externalMeasured&&Mt(k);fn(k,r,ot(e,k,Z)),k.styleClasses&&(k.styleClasses.bgClass&&(r.bgClass=W(k.styleClasses.bgClass,r.bgClass||"")),k.styleClasses.textClass&&(r.textClass=W(k.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Tt(e.display.measure))),d==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(_){var $=r.content.lastChild;(/\bcm-tab\b/.test($.className)||$.querySelector&&$.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return He(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=W(r.pre.className,r.textClass||"")),r}function En(e){var t=l("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function wn(e,t,i,r,d,k,X){if(!t)return;var Z=e.splitSpaces?gn(t,e.trailingSpace):t,$=e.cm.state.specialChars,ne=!1,Ce;if(!$.test(t))e.col+=t.length,Ce=document.createTextNode(Z),e.map.push(e.pos,e.pos+t.length,Ce),j&&U<9&&(ne=!0),e.pos+=t.length;else{Ce=document.createDocumentFragment();for(var Re=0;;){$.lastIndex=Re;var Ye=$.exec(t),ze=Ye?Ye.index-Re:t.length-Re;if(ze){var ht=document.createTextNode(Z.slice(Re,Re+ze));j&&U<9?Ce.appendChild(l("span",[ht])):Ce.appendChild(ht),e.map.push(e.pos,e.pos+ze,ht),e.col+=ze,e.pos+=ze}if(!Ye)break;Re+=ze+1;var Et=void 0;if(Ye[0]==" "){var Dt=e.cm.options.tabSize,Pt=Dt-e.col%Dt;Et=Ce.appendChild(l("span",he(Pt),"cm-tab")),Et.setAttribute("role","presentation"),Et.setAttribute("cm-text"," "),e.col+=Pt}else Ye[0]=="\r"||Ye[0]==` +`?(Et=Ce.appendChild(l("span",Ye[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Et.setAttribute("cm-text",Ye[0]),e.col+=1):(Et=e.cm.options.specialCharPlaceholder(Ye[0]),Et.setAttribute("cm-text",Ye[0]),j&&U<9?Ce.appendChild(l("span",[Et])):Ce.appendChild(Et),e.col+=1);e.map.push(e.pos,e.pos+1,Et),e.pos++}}if(e.trailingSpace=Z.charCodeAt(t.length-1)==32,i||r||d||ne||k||X){var Wt=i||"";r&&(Wt+=r),d&&(Wt+=d);var kt=l("span",[Ce],Wt,k);if(X)for(var Vt in X)X.hasOwnProperty(Vt)&&Vt!="style"&&Vt!="class"&&kt.setAttribute(Vt,X[Vt]);return e.content.appendChild(kt)}e.content.appendChild(Ce)}function gn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",d=0;dne&&Re.from<=ne);Ye++);if(Re.to>=Ce)return e(i,r,d,k,X,Z,$);e(i,r.slice(0,Re.to-ne),d,k,null,Z,$),k=null,r=r.slice(Re.to-ne),ne=Re.to}}}function Hn(e,t,i,r){var d=!r&&i.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!r&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",i.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function fn(e,t,i){var r=e.markedSpans,d=e.text,k=0;if(!r){for(var X=1;X$||vn.collapsed&&an.to==$&&an.from==$)){if(an.to!=null&&an.to!=$&&ze>an.to&&(ze=an.to,Et=""),vn.className&&(ht+=" "+vn.className),vn.css&&(Ye=(Ye?Ye+";":"")+vn.css),vn.startStyle&&an.from==$&&(Dt+=" "+vn.startStyle),vn.endStyle&&an.to==ze&&(Vt||(Vt=[])).push(vn.endStyle,an.to),vn.title&&((Wt||(Wt={})).title=vn.title),vn.attributes)for(var Pn in vn.attributes)(Wt||(Wt={}))[Pn]=vn.attributes[Pn];vn.collapsed&&(!Pt||kn(Pt.marker,vn)<0)&&(Pt=an)}else an.from>$&&ze>an.from&&(ze=an.from)}if(Vt)for(var $n=0;$n=Z)break;for(var Lr=Math.min(Z,ze);;){if(Ce){var Cr=$+Ce.length;if(!Pt){var zn=Cr>Lr?Ce.slice(0,Lr-$):Ce;t.addToken(t,zn,Re?Re+ht:ht,Dt,$+zn.length==ze?Et:"",Ye,Wt)}if(Cr>=Lr){Ce=Ce.slice(Lr-$),$=Lr;break}$=Cr,Dt=""}Ce=d.slice(k,k=i[ne++]),Re=$t(i[ne++],t.cm.options)}}}function Pr(e,t,i){this.line=t,this.rest=jr(t),this.size=this.rest?Mt(te(this.rest))-i+1:1,this.node=this.text=null,this.hidden=rr(e,t)}function Ht(e,t,i){for(var r=[],d,k=t;k2&&k.push(($.bottom+ne.top)/2-i.top)}}k.push(i.bottom-i.top)}}function Di(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;ri)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function io(e,t){t=Qn(t);var i=Mt(t),r=e.display.externalMeasured=new Pr(e.doc,t,i);r.lineN=i;var d=r.built=dn(e,r);return r.text=d.pre,s(e.display.lineMeasure,d.pre),r}function Vi(e,t,i,r){return mr(e,li(e,t),i,r)}function Xi(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(k=$-Z,d=k-1,t>=$&&(X="right")),d!=null){if(r=e[ne+2],Z==$&&i==(r.insertLeft?"left":"right")&&(X=i),i=="left"&&d==0)for(;ne&&e[ne-2]==e[ne-3]&&e[ne-1].insertLeft;)r=e[(ne-=3)+2],X="left";if(i=="right"&&d==$-Z)for(;ne=0&&!((i=e[d]).left!=i.right);d--);return i}function Ri(e,t,i,r){var d=Yi(t.map,i,r),k=d.node,X=d.start,Z=d.end,$=d.collapse,ne;if(k.nodeType==3){for(var Ce=0;Ce<4;Ce++){for(;X&&Qe(t.line.text.charAt(d.coverStart+X));)--X;for(;d.coverStart+Z0&&($=r="right");var Re;e.options.lineWrapping&&(Re=k.getClientRects()).length>1?ne=Re[r=="right"?Re.length-1:0]:ne=k.getBoundingClientRect()}if(j&&U<9&&!X&&(!ne||!ne.left&&!ne.right)){var Ye=k.parentNode.getClientRects()[0];Ye?ne={left:Ye.left,right:Ye.left+me(e.display),top:Ye.top,bottom:Ye.bottom}:ne=Qi}for(var ze=ne.top-t.rect.top,ht=ne.bottom-t.rect.top,Et=(ze+ht)/2,Dt=t.view.measure.heights,Pt=0;Pt=r.text.length?($=r.text.length,ne="before"):$<=0&&($=0,ne="after"),!Z)return X(ne=="before"?$-1:$,ne=="before");function Ce(ht,Et,Dt){var Pt=Z[Et],Wt=Pt.level==1;return X(Dt?ht-1:ht,Wt!=Dt)}var Re=pt(Z,$,ne),Ye=dt,ze=Ce($,Re,ne=="before");return Ye!=null&&(ze.other=Ce($,Ye,ne!="before")),ze}function Ia(e,t){var i=0;t=b(e.doc,t),e.options.lineWrapping||(i=me(e.display)*t.ch);var r=St(e.doc,t.line),d=Er(r)+yi(e.display);return{left:i,right:i,top:d,bottom:d+r.height}}function Kr(e,t,i,r,d){var k=lt(e,t,i);return k.xRel=d,r&&(k.outside=r),k}function $i(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Kr(r.first,0,null,-1,-1);var d=tn(r,i),k=r.first+r.size-1;if(d>k)return Kr(r.first+r.size-1,St(r,k).text.length,null,1,1);t<0&&(t=0);for(var X=St(r,d);;){var Z=ka(e,X,d,t,i),$=wr(X,Z.ch+(Z.xRel>0||Z.outside>0?1:0));if(!$)return Z;var ne=$.find(1);if(ne.line==d)return ne;X=St(r,d=ne.line)}}function _a(e,t,i,r){r-=Zi(t);var d=t.text.length,k=yt(function(X){return mr(e,i,X-1).bottom<=r},d,0);return d=yt(function(X){return mr(e,i,X).top>r},k,d),{begin:k,end:d}}function Pa(e,t,i,r){i||(i=li(e,t));var d=Oi(e,t,mr(e,i,r),"line").top;return _a(e,t,i,d)}function ea(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function ka(e,t,i,r,d){d-=Er(t);var k=li(e,t),X=Zi(t),Z=0,$=t.text.length,ne=!0,Ce=wt(t,e.doc.direction);if(Ce){var Re=(e.options.lineWrapping?Ba:Na)(e,t,i,k,Ce,r,d);ne=Re.level!=1,Z=ne?Re.from:Re.to-1,$=ne?Re.to:Re.from-1}var Ye=null,ze=null,ht=yt(function(sn){var an=mr(e,k,sn);return an.top+=X,an.bottom+=X,ea(an,r,d,!1)?(an.top<=d&&an.left<=r&&(Ye=sn,ze=an),!0):!1},Z,$),Et,Dt,Pt=!1;if(ze){var Wt=r-ze.left=Vt.bottom?1:0}return ht=Ze(t.text,ht,1),Kr(i,ht,Dt,Pt,r-Et)}function Na(e,t,i,r,d,k,X){var Z=yt(function(Re){var Ye=d[Re],ze=Ye.level!=1;return ea(kr(e,lt(i,ze?Ye.to:Ye.from,ze?"before":"after"),"line",t,r),k,X,!0)},0,d.length-1),$=d[Z];if(Z>0){var ne=$.level!=1,Ce=kr(e,lt(i,ne?$.from:$.to,ne?"after":"before"),"line",t,r);ea(Ce,k,X,!0)&&Ce.top>X&&($=d[Z-1])}return $}function Ba(e,t,i,r,d,k,X){var Z=_a(e,t,r,X),$=Z.begin,ne=Z.end;/\s/.test(t.text.charAt(ne-1))&&ne--;for(var Ce=null,Re=null,Ye=0;Ye=ne||ze.to<=$)continue;var ht=ze.level!=1,Et=mr(e,r,ht?Math.min(ne,ze.to)-1:Math.max($,ze.from)).right,Dt=EtDt)&&(Ce=ze,Re=Dt)}return Ce||(Ce=d[d.length-1]),Ce.from<$&&(Ce={from:$,to:Ce.to,level:Ce.level}),Ce.to>ne&&(Ce={from:Ce.from,to:ne,level:Ce.level}),Ce}var Vr;function Ut(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Vr==null){Vr=l("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Vr.appendChild(document.createTextNode("x")),Vr.appendChild(l("br"));Vr.appendChild(document.createTextNode("x"))}s(e.measure,Vr);var i=Vr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),h(e.measure),i||1}function me(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=l("span","xxxxxxxxxx"),i=l("pre",[t],"CodeMirror-line-like");s(e.measure,i);var r=t.getBoundingClientRect(),d=(r.right-r.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ct(e){for(var t=e.display,i={},r={},d=t.gutters.clientLeft,k=t.gutters.firstChild,X=0;k;k=k.nextSibling,++X){var Z=e.display.gutterSpecs[X].className;i[Z]=k.offsetLeft+k.clientLeft+d,r[Z]=k.clientWidth}return{fixedPos:rt(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function rt(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _t(e){var t=Ut(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/me(e.display)-3);return function(d){if(rr(e.doc,d))return 0;var k=0;if(d.widgets)for(var X=0;X0&&(ne=St(e.doc,$.line).text).length==$.ch){var Ce=q(ne,ne.length,e.options.tabSize)-ne.length;$=lt($.line,Math.max(0,Math.round((k-Da(e.display).left)/me(e.display))-Ce))}return $}function Nt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,r=0;rt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)Vn&&Dr(e.doc,t)d.viewFrom?jt(e):(d.viewFrom+=r,d.viewTo+=r);else if(t<=d.viewFrom&&i>=d.viewTo)jt(e);else if(t<=d.viewFrom){var k=rn(e,i,i+r,1);k?(d.view=d.view.slice(k.index),d.viewFrom=k.lineN,d.viewTo+=r):jt(e)}else if(i>=d.viewTo){var X=rn(e,t,t,-1);X?(d.view=d.view.slice(0,X.index),d.viewTo=X.lineN):jt(e)}else{var Z=rn(e,t,t,-1),$=rn(e,i,i+r,1);Z&&$?(d.view=d.view.slice(0,Z.index).concat(Ht(e,Z.lineN,$.lineN)).concat(d.view.slice($.index)),d.viewTo+=r):jt(e)}var ne=d.externalMeasured;ne&&(i=d.lineN&&t=r.viewTo)return;var k=r.view[Nt(e,t)];if(k.node==null)return;var X=k.changes||(k.changes=[]);pe(X,i)==-1&&X.push(i)}function jt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function rn(e,t,i,r){var d=Nt(e,t),k,X=e.display.view;if(!Vn||i==e.doc.first+e.doc.size)return{index:d,lineN:i};for(var Z=e.display.viewFrom,$=0;$0){if(d==X.length-1)return null;k=Z+X[d].size-t,d++}else k=Z-t;t+=k,i+=k}for(;Dr(e.doc,i)!=i;){if(d==(r<0?0:X.length-1))return null;i+=r*X[d-(r<0?1:0)].size,d+=r}return{index:d,lineN:i}}function Mn(e,t,i){var r=e.display,d=r.view;d.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Ht(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Ht(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,Nt(e,i)))),r.viewTo=i}function Nn(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||Z.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Mi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Po(e){e.state.focused||(e.display.input.focus(),lo(e))}function ko(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Mi(e))},100)}function lo(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(He(e,"focus",e,t),e.state.focused=!0,C(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),_&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),so(e)}function Mi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(He(e,"blur",e,t),e.state.focused=!1,p(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Fa(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=0;r.005||Ce<-.005)&&(Yt(d.line,X),No(d.line),d.rest))for(var Re=0;Ree.display.sizerWidth){var Ye=Math.ceil(Z/me(e.display));Ye>e.display.maxLineLength&&(e.display.maxLineLength=Ye,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function No(e){if(e.widgets)for(var t=0;t=X&&(k=tn(t,Er(St(t,$))-e.wrapper.clientHeight),X=$)}return{from:k,to:Math.max(X,k+1)}}function Qs(e,t){if(nt(e,"scrollCursorIntoView"))return;var i=e.display,r=i.sizer.getBoundingClientRect(),d=null;if(t.top+r.top<0?d=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!f){var k=l("div","\u200B",null,`position: absolute; top: `+(t.top-i.viewOffset-yi(e.display))+`px; height: `+(t.bottom-t.top+dr(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(P),P.scrollIntoView(d),e.display.lineSpace.removeChild(P)}}function Ys(e,t,i,r){r==null&&(r=0);var d;!e.options.lineWrapping&&t==i&&(t=t.ch?lt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?lt(t.line,t.ch+1,"before"):t);for(var P=0;P<5;P++){var X=!1,Z=Pr(e,t),$=!i||i==t?Z:Pr(e,i);d={left:Math.min(Z.left,$.left),top:Math.min(Z.top,$.top)-r,right:Math.max(Z.left,$.left),bottom:Math.max(Z.bottom,$.bottom)+r};var ne=uo(e,d),Ce=e.doc.scrollTop,Re=e.doc.scrollLeft;if(ne.scrollTop!=null&&(na(e,ne.scrollTop),Math.abs(e.doc.scrollTop-Ce)>1&&(X=!0)),ne.scrollLeft!=null&&(Ei(e,ne.scrollLeft),Math.abs(e.doc.scrollLeft-Re)>1&&(X=!0)),!X)break}return d}function Js(e,t){var i=uo(e,t);i.scrollTop!=null&&na(e,i.scrollTop),i.scrollLeft!=null&&Ei(e,i.scrollLeft)}function uo(e,t){var i=e.display,r=Ut(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,P=ei(e),X={};t.bottom-t.top>P&&(t.bottom=t.top+P);var Z=e.doc.height+wa(i),$=t.topZ-r;if(t.topd+P){var Ce=Math.min(t.top,(ne?Z:t.bottom)-P);Ce!=d&&(X.scrollTop=Ce)}var Re=e.options.fixedGutter?0:i.gutters.offsetWidth,Ye=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-Re,ze=si(e)-i.gutters.offsetWidth,ht=t.right-t.left>ze;return ht&&(t.right=t.left+ze),t.left<10?X.scrollLeft=0:t.leftze+Ye-3&&(X.scrollLeft=t.right+(ht?0:10)-ze),X}function co(e,t){if(t==null)return;Wa(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Ii(e){Wa(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ta(e,t,i){(t!=null||i!=null)&&Wa(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zs(e,t){Wa(e),e.curOp.scrollToPos=t}function Wa(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Ia(e,t.from),r=Ia(e,t.to);Bo(e,i,r,t.margin)}}function Bo(e,t,i,r){var d=uo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});ta(e,d.scrollLeft,d.scrollTop)}function na(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;k||fo(e,{top:t}),Uo(e,t,!0),k&&fo(e),aa(e,100)}function Uo(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Ei(e,t,i,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Ko(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function ra(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+wa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+dr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var xi=function(e,t,i){this.cm=i;var r=this.vert=l("div",[l("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=l("div",[l("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=d.tabIndex=-1,e(r),e(d),we(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),we(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,j&&U<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var d=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var P=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+P)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},xi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xi.prototype.zeroWidthHack=function(){var e=o&&!y?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new le,this.disableVert=new le},xi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function r(){var d=e.getBoundingClientRect(),P=i=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);P!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},xi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ia=function(){};ia.prototype.update=function(){return{bottom:0,right:0}},ia.prototype.setScrollLeft=function(){},ia.prototype.setScrollTop=function(){},ia.prototype.clear=function(){};function _i(e,t){t||(t=ra(e));var i=e.display.barWidth,r=e.display.barHeight;Fo(e,t);for(var d=0;d<4&&i!=e.display.barWidth||r!=e.display.barHeight;d++)i!=e.display.barWidth&&e.options.lineWrapping&&Fa(e),Fo(e,ra(e)),i=e.display.barWidth,r=e.display.barHeight}function Fo(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var jo={native:xi,null:ia};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&p(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new jo[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),we(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Ei(e,t):na(e,t)},e),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qs},pr(e.curOp)}function Si(e){var t=e.curOp;t&&Kt(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ha(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&ho(e.cm,e.update)}function nl(e){var t=e.cm,i=t.display;e.updatedDisplay&&Fa(t),e.barMeasure=ra(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Vi(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+dr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-si(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function rl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,r=Ot(e,t.highlightFrontier),d=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(P){if(r.line>=e.display.viewFrom){var X=P.styles,Z=P.text.length>e.options.maxHighlightLength?Ct(t.mode,r.state):null,$=De(e,P,r,!0);Z&&(r.state=Z),P.styles=$.styles;var ne=P.styleClasses,Ce=$.classes;Ce?P.styleClasses=Ce:ne&&(P.styleClasses=null);for(var Re=!X||X.length!=P.styles.length||ne!=Ce&&(!ne||!Ce||ne.bgClass!=Ce.bgClass||ne.textClass!=Ce.textClass),Ye=0;!Re&&Yei)return aa(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),d.length&&Or(e,function(){for(var P=0;P=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Nn(e)==0)return!1;zo(e)&&(jt(e),t.dims=ct(e));var d=r.first+r.size,P=Math.max(t.visible.from-e.options.viewportMargin,r.first),X=Math.min(d,t.visible.to+e.options.viewportMargin);i.viewFromX&&i.viewTo-X<20&&(X=Math.min(d,i.viewTo)),Vn&&(P=Dr(e.doc,P),X=Jr(e.doc,X));var Z=P!=i.viewFrom||X!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Mn(e,P,X),i.viewOffset=Er(St(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var $=Nn(e);if(!Z&&$==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var ne=sl(e);return $>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),$>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(ne),h(i.cursorDiv),h(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Z&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,aa(e,400)),i.updateLineNumbers=null,!0}function Ho(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==si(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+wa(e.display)-ei(e),i.top)}),t.visible=ja(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ja(e.display,e.doc,i));if(!ho(e,t))break;Fa(e);var d=ra(e);In(e),_i(e,d),mo(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fo(e,t){var i=new Ha(e,t);if(ho(e,i)){Fa(e),Ho(e,i);var r=ra(e);In(e),_i(e,r),mo(e,r),i.finish()}}function ul(e,t,i){var r=e.display,d=e.options.lineNumbers,P=r.lineDiv,X=P.firstChild;function Z(ht){var Et=ht.nextSibling;return _&&o&&e.display.currentWheelTarget==ht?ht.style.display="none":ht.parentNode.removeChild(ht),Et}for(var $=r.view,ne=r.viewFrom,Ce=0;Ce<$.length;Ce++){var Re=$[Ce];if(!Re.hidden)if(!Re.node||Re.node.parentNode!=P){var Ye=Sa(e,Re,ne,i);P.insertBefore(Ye,X)}else{for(;X!=Re.node;)X=Z(X);var ze=d&&t!=null&&t<=ne&&Re.lineNumber;Re.changes&&(pe(Re.changes,"gutter")>-1&&(ze=!1),qr(e,Re,ne,i)),ze&&(h(Re.lineNumber),Re.lineNumber.appendChild(document.createTextNode(An(e.options,ne)))),X=Re.node.nextSibling}ne+=Re.size}for(;X;)X=Z(X)}function po(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function mo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+dr(e)+"px"}function Ko(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=rt(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,P=r+"px",X=0;XX.clientWidth,$=X.scrollHeight>X.clientHeight;if(!(r&&Z||d&&$))return;if(d&&o&&_){e:for(var ne=t.target,Ce=P.view;ne!=X;ne=ne.parentNode)for(var Re=0;Re=0&&Rt(e,r.to())<=0)return i}return-1};var Dn=function(e,t){this.anchor=e,this.head=t};Dn.prototype.from=function(){return cn(this.anchor,this.head)},Dn.prototype.to=function(){return un(this.anchor,this.head)},Dn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xr(e,t,i){var r=e&&e.options.selectionsMayTouch,d=t[i];t.sort(function(Ye,ze){return Rt(Ye.from(),ze.from())}),i=pe(t,d);for(var P=1;P0:$>=0){var ne=cn(Z.from(),X.from()),Ce=un(Z.to(),X.to()),Re=Z.empty()?X.from()==X.head:Z.from()==Z.head;P<=i&&--i,t.splice(--P,2,new Dn(Re?Ce:ne,Re?ne:Ce))}}return new Br(t,i)}function di(e,t){return new Br([new Dn(e,t||e)],0)}function ci(e){return e.text?lt(e.from.line+e.text.length-1,te(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Qo(e,t){if(Rt(e,t.from)<0)return e;if(Rt(e,t.to)<=0)return ci(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ci(t).ch-t.to.ch),lt(i,r)}function vo(e,t){for(var i=[],r=0;r1&&e.remove(Z.line+1,ht-1),e.insert(Z.line+1,kt)}Cn(e,"change",e,t)}function hi(e,t,i){function r(d,P,X){if(d.linked)for(var Z=0;Z1&&!e.done[e.done.length-2].ranges)return e.done.pop(),te(e.done)}function es(e,t,i,r){var d=e.history;d.undone.length=0;var P=+new Date,X,Z;if((d.lastOp==r||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>P-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(X=pl(d,d.lastOp==r)))Z=te(X.changes),Rt(t.from,t.to)==0&&Rt(t.from,Z.to)==0?Z.to=ci(t):X.changes.push(Eo(e,t));else{var $=te(d.done);for((!$||!$.ranges)&&Ga(e.sel,d.done),X={changes:[Eo(e,t)],generation:d.generation},d.done.push(X);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(i),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=P,d.lastOp=d.lastSelOp=r,d.lastOrigin=d.lastSelOrigin=t.origin,Z||He(e,"historyAdded")}function ml(e,t,i,r){var d=t.charAt(0);return d=="*"||d=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,r){var d=e.history,P=r&&r.origin;i==d.lastSelOp||P&&d.lastSelOrigin==P&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==P||ml(e,P,te(d.done),t))?d.done[d.done.length-1]=t:Ga(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=P,d.lastSelOp=i,r&&r.clearRedo!==!1&&$o(d.undone)}function Ga(e,t){var i=te(t);i&&i.ranges&&i.equals(e)||t.push(e)}function ts(e,t,i,r){var d=t["spans_"+e.id],P=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(X){X.markedSpans&&((d||(d=t["spans_"+e.id]={}))[P]=X.markedSpans),++P})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(te(Z)[Re]=ne[Re],delete ne[Re]))}}return r}function xo(e,t,i,r){if(r){var d=e.anchor;if(i){var P=Rt(t,d)<0;P!=Rt(i,d)<0?(d=t,t=i):P!=Rt(t,i)<0&&(t=i)}return new Dn(d,t)}else return new Dn(i||t,t)}function Va(e,t,i,r,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new Br([xo(e.sel.primary(),t,i,d)],0),r)}function rs(e,t,i){for(var r=[],d=e.cm&&(e.cm.display.shift||e.extend),P=0;P=t.ch:Z.to>t.ch))){if(d&&(He($,"beforeCursorEnter"),$.explicitlyCleared))if(P.markedSpans){--X;continue}else break;if(!$.atomic)continue;if(i){var Re=$.find(r<0?1:-1),Ye=void 0;if((r<0?Ce:ne)&&(Re=us(e,Re,-r,Re&&Re.line==t.line?P:null)),Re&&Re.line==t.line&&(Ye=Rt(Re,i))&&(r<0?Ye<0:Ye>0))return Pi(e,Re,t,r,d)}var ze=$.find(r<0?-1:1);return(r<0?ne:Ce)&&(ze=us(e,ze,r,ze.line==t.line?P:null)),ze?Pi(e,ze,t,r,d):null}}return t}function Qa(e,t,i,r,d){var P=r||1,X=Pi(e,t,i,P,d)||!d&&Pi(e,t,i,P,!0)||Pi(e,t,i,-P,d)||!d&&Pi(e,t,i,-P,!0);return X||(e.cantEdit=!0,lt(e.first,0))}function us(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?b(e,lt(t.line-1)):null:i>0&&t.ch==(r||St(e,t.line)).text.length?t.line=0;--d)hs(e,{from:r[d].from,to:r[d].to,text:d?[""]:t.text,origin:t.origin});else hs(e,t)}function hs(e,t){if(t.text.length==1&&t.text[0]==""&&Rt(t.from,t.to)==0)return;var i=vo(e,t);es(e,t,i,e.cm?e.cm.curOp.id:NaN),la(e,t,i,br(e,t));var r=[];hi(e,function(d,P){!P&&pe(r,d.history)==-1&&(gs(d.history,t),r.push(d.history)),la(d,t,null,br(d,t))})}function Ya(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!i)return;for(var d=e.history,P,X=e.sel,Z=t=="undo"?d.done:d.undone,$=t=="undo"?d.undone:d.done,ne=0;ne=0;--ze){var ht=Ye(ze);if(ht)return ht.v}}function fs(e,t){if(t==0)return;if(e.first+=t,e.sel=new Br(ye(e.sel.ranges,function(d){return new Dn(lt(d.anchor.line+t,d.anchor.ch),lt(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())return;if(t.from.lineP&&(t={from:t.from,to:lt(P,St(e,P).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ln(e,t.from,t.to),i||(i=vo(e,t)),e.cm?El(e.cm,t,r):bo(e,t,r),Xa(e,i,Fe),e.cantEdit&&Qa(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var r=e.doc,d=e.display,P=t.from,X=t.to,Z=!1,$=P.line;e.options.lineWrapping||($=Mt(Qn(St(r,P.line))),r.iter($,X.line+1,function(ze){if(ze==d.maxLine)return Z=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Te(e),bo(r,t,i,_t(e)),e.options.lineWrapping||(r.iter($,P.line+t.text.length,function(ze){var ht=Hr(ze);ht>d.maxLineLength&&(d.maxLine=ze,d.maxLineLength=ht,d.maxLineChanged=!0,Z=!1)}),Z&&(e.curOp.updateMaxLine=!0)),or(r,P.line),aa(e,400);var ne=t.text.length-(X.line-P.line)-1;t.full?Lt(e):P.line==X.line&&t.text.length==1&&!Jo(e.doc,t)?Zt(e,P.line,"text"):Lt(e,P.line,X.line+1,ne);var Ce=ge(e,"changes"),Re=ge(e,"change");if(Re||Ce){var Ye={from:P,to:X,text:t.text,removed:t.removed,origin:t.origin};Re&&Cn(e,"change",e,Ye),Ce&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ye)}e.display.selForContextMenu=null}function Bi(e,t,i,r,d){var P;r||(r=i),Rt(r,i)<0&&(P=[r,i],i=P[0],r=P[1]),typeof t=="string"&&(t=e.splitLines(t)),Ni(e,{from:i,to:r,text:t,origin:d})}function ps(e,t,i,r){i1||!(this.children[0]instanceof da))){var Z=[];this.collapse(Z),this.children=[new da(Z)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var X=d.lines.length%25+25,Z=X;Z10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=ne,e.display.maxLineLength=Ce,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Lt(e,r,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ss(e.doc)),e&&Cn(e,"markerCleared",e,this,r,d),t&&Si(e),this.parent&&this.parent.clear()},fi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,d=0;d0||X==0&&P.clearWhenEmpty!==!1)return P;if(P.replacedWith&&(P.collapsed=!0,P.widgetNode=D("span",[P.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||P.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(P.widgetNode.insertLeft=!0)),P.collapsed){if(Bn(e,t.line,t,i,P)||t.line!=i.line&&Bn(e,i.line,t,i,P))throw new Error("Inserting collapsed marker partially overlapping an existing one");Jn()}P.addToHistory&&es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Z=t.line,$=e.cm,ne;if(e.iter(Z,i.line+1,function(Re){$&&P.collapsed&&!$.options.lineWrapping&&Qn(Re)==$.display.maxLine&&(ne=!0),P.collapsed&&Z!=t.line&&Yt(Re,0),yr(Re,new Mr(P,Z==t.line?t.ch:null,Z==i.line?i.ch:null)),++Z}),P.collapsed&&e.iter(t.line,i.line+1,function(Re){rr(e,Re)&&Yt(Re,0)}),P.clearOnEnter&&we(P,"beforeCursorEnter",function(){return P.clear()}),P.readOnly&&(sr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),P.collapsed&&(P.id=++ys,P.atomic=!0),$){if(ne&&($.curOp.updateMaxLine=!0),P.collapsed)Lt($,t.line,i.line+1);else if(P.className||P.startStyle||P.endStyle||P.css||P.attributes||P.title)for(var Ce=t.line;Ce<=i.line;Ce++)Zt($,Ce,"text");P.atomic&&ss($.doc),Cn($,"markerAdded",$,P)}return P}var fa=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;$--)Ni(this,r[$]);Z?as(this,Z):this.cm&&Ii(this.cm)}),undo:qn(function(){Ya(this,"undo")}),redo:qn(function(){Ya(this,"redo")}),undoSelection:qn(function(){Ya(this,"undo",!0)}),redoSelection:qn(function(){Ya(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,i){e=b(this,e),t=b(this,t);var r=[],d=e.line;return this.iter(e.line,t.line+1,function(P){var X=P.markedSpans;if(X)for(var Z=0;Z=$.to||$.from==null&&d!=e.line||$.from!=null&&d==t.line&&$.from>=t.ch)&&(!i||i($.marker))&&r.push($.marker.parent||$.marker)}++d}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=P,++i}),b(this,lt(i,t))},indexFromPos:function(e){e=b(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Ce=e.dataTransfer.getData("Text");if(Ce){var Re;if(t.state.draggingText&&!t.state.draggingText.copy&&(Re=t.listSelections()),Xa(t.doc,di(i,i)),Re)for(var Ye=0;Ye=0;Z--)Bi(e.doc,"",r[Z].from,r[Z].to,"+delete");Ii(e)})}function So(e,t,i){var r=Ze(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ao(e,t,i){var r=So(e,t.ch,i);return r==null?null:new lt(t.line,r,i<0?"after":"before")}function To(e,t,i,r,d){if(e){t.doc.direction=="rtl"&&(d=-d);var P=wt(i,t.doc.direction);if(P){var X=d<0?te(P):P[0],Z=d<0==(X.level==1),$=Z?"after":"before",ne;if(X.level>0||t.doc.direction=="rtl"){var Ce=li(t,i);ne=d<0?i.text.length-1:0;var Re=mr(t,Ce,ne).top;ne=yt(function(Ye){return mr(t,Ce,Ye).top==Re},d<0==(X.level==1)?X.from:X.to-1,ne),$=="before"&&(ne=So(i,ne,1))}else ne=d<0?X.to:X.from;return new lt(r,ne,$)}}return new lt(r,d<0?i.text.length:0,d<0?"before":"after")}function kl(e,t,i,r){var d=wt(t,e.doc.direction);if(!d)return Ao(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var P=pt(d,i.ch,i.sticky),X=d[P];if(e.doc.direction=="ltr"&&X.level%2==0&&(r>0?X.to>i.ch:X.from=X.from&&Ye>=Ce.begin)){var ze=Re?"before":"after";return new lt(i.line,Ye,ze)}}var ht=function(kt,Wt,Pt){for(var Vt=function(kn,$n){return $n?new lt(i.line,Z(kn,1),"before"):new lt(i.line,kn,"after")};kt>=0&&kt0==(sn.level!=1),vn=an?Pt.begin:Z(Pt.end,-1);if(sn.from<=vn&&vn0?Ce.end:Z(Ce.begin,-1);return Dt!=null&&!(r>0&&Dt==t.text.length)&&(Et=ht(r>0?0:d.length-1,r,ne(Dt)),Et)?Et:null}var ga={selectAll:ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Fe)},killLine:function(e){return ji(e,function(t){if(t.empty()){var i=St(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)d=new lt(d.line,d.ch+1),e.replaceRange(P.charAt(d.ch-1)+P.charAt(d.ch-2),lt(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var X=St(e.doc,d.line-1).text;X&&(d=new lt(d.line,1),e.replaceRange(P.charAt(0)+e.doc.lineSeparator()+X.charAt(X.length-1),lt(d.line-1,X.length-1),d,"+transpose"))}}i.push(new Dn(d,d))}e.setSelections(i)})},newlineAndIndent:function(e){return Or(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&Rt(t,this.pos)==0&&i==this.button};var ya,ba;function Wl(e,t){var i=+new Date;return ba&&ba.compare(i,e,t)?(ya=ba=null,"triple"):ya&&ya.compare(i,e,t)?(ba=new Do(i,e,t),ya=null,"double"):(ya=new Do(i,e,t),ba=null,"single")}function ks(e){var t=this,i=t.display;if(nt(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Gr(i,e)){_||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Ro(t,e))return;var r=It(t,e),d=Ie(e),P=r?Wl(r,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),r&&Hl(t,d,r,P,e))return;d==1?r?zl(t,r,P,e):Be(e)==i.scroller&&re(e):d==2?(r&&Va(t.doc,r),setTimeout(function(){return i.input.focus()},20)):d==3&&(O?t.display.input.onContextMenu(e):Po(t))}function Hl(e,t,i,r,d){var P="Click";return r=="double"?P="Double"+P:r=="triple"&&(P="Triple"+P),P=(t==1?"Left":t==2?"Middle":"Right")+P,va(e,Ts(P,d),d,function(X){if(typeof X=="string"&&(X=ga[X]),!X)return!1;var Z=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Z=X(e,i)!=Ge}finally{e.state.suppressEdits=!1}return Z})}function Kl(e,t,i){var r=e.getOption("configureMouse"),d=r?r(e,t,i):{};if(d.unit==null){var P=u?i.shiftKey&&i.metaKey:i.altKey;d.unit=P?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||i.shiftKey),d.addNew==null&&(d.addNew=o?i.metaKey:i.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(o?i.altKey:i.ctrlKey)),d}function zl(e,t,i,r){j?setTimeout(H(ko,e),0):e.curOp.focus=I();var d=Kl(e,i,r),P=e.doc.sel,X;e.options.dragDrop&&ut&&!e.isReadOnly()&&i=="single"&&(X=P.contains(t))>-1&&(Rt((X=P.ranges[X]).from(),t)<0||t.xRel>0)&&(Rt(X.to(),t)>0||t.xRel<0)?Gl(e,r,t,d):Vl(e,r,t,d)}function Gl(e,t,i,r){var d=e.display,P=!1,X=Zn(e,function(ne){_&&(d.scroller.draggable=!1),e.state.draggingText=!1,st(d.wrapper.ownerDocument,"mouseup",X),st(d.wrapper.ownerDocument,"mousemove",Z),st(d.scroller,"dragstart",$),st(d.scroller,"drop",X),P||(re(ne),r.addNew||Va(e.doc,i,null,null,r.extend),_&&!w||j&&U==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),Z=function(ne){P=P||Math.abs(t.clientX-ne.clientX)+Math.abs(t.clientY-ne.clientY)>=10},$=function(){return P=!0};_&&(d.scroller.draggable=!0),e.state.draggingText=X,X.copy=!r.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),we(d.wrapper.ownerDocument,"mouseup",X),we(d.wrapper.ownerDocument,"mousemove",Z),we(d.scroller,"dragstart",$),we(d.scroller,"drop",X),Po(e),setTimeout(function(){return d.input.focus()},20)}function Ps(e,t,i){if(i=="char")return new Dn(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Dn(lt(t.line,0),b(e.doc,lt(t.line+1,0)));var r=i(e,t);return new Dn(r.from,r.to)}function Vl(e,t,i,r){var d=e.display,P=e.doc;re(t);var X,Z,$=P.sel,ne=$.ranges;if(r.addNew&&!r.extend?(Z=P.sel.contains(i),Z>-1?X=ne[Z]:X=new Dn(i,i)):(X=P.sel.primary(),Z=P.sel.primIndex),r.unit=="rectangle")r.addNew||(X=new Dn(i,i)),i=It(e,t,!0,!0),Z=-1;else{var Ce=Ps(e,i,r.unit);r.extend?X=xo(X,Ce.anchor,Ce.head,r.extend):X=Ce}r.addNew?Z==-1?(Z=ne.length,cr(P,Xr(e,ne.concat([X]),Z),{scroll:!1,origin:"*mouse"})):ne.length>1&&ne[Z].empty()&&r.unit=="char"&&!r.extend?(cr(P,Xr(e,ne.slice(0,Z).concat(ne.slice(Z+1)),0),{scroll:!1,origin:"*mouse"}),$=P.sel):Co(P,Z,X,Ue):(Z=0,cr(P,new Br([X],0),Ue),$=P.sel);var Re=i;function Ye(Pt){if(Rt(Re,Pt)==0)return;if(Re=Pt,r.unit=="rectangle"){for(var Vt=[],sn=e.options.tabSize,an=q(St(P,i.line).text,i.ch,sn),vn=q(St(P,Pt.line).text,Pt.ch,sn),kn=Math.min(an,vn),$n=Math.max(an,vn),Fn=Math.min(i.line,Pt.line),Lr=Math.min(e.lastLine(),Math.max(i.line,Pt.line));Fn<=Lr;Fn++){var Cr=St(P,Fn).text,zn=je(Cr,kn,sn);kn==$n?Vt.push(new Dn(lt(Fn,zn),lt(Fn,zn))):Cr.length>zn&&Vt.push(new Dn(lt(Fn,zn),lt(Fn,je(Cr,$n,sn))))}Vt.length||Vt.push(new Dn(i,i)),cr(P,Xr(e,$.ranges.slice(0,Z).concat(Vt),Z),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Pt)}else{var Sr=X,ar=Ps(e,Pt,r.unit),Yn=Sr.anchor,Gn;Rt(ar.anchor,Yn)>0?(Gn=ar.head,Yn=cn(Sr.from(),ar.anchor)):(Gn=ar.anchor,Yn=un(Sr.to(),ar.head));var jn=$.ranges.slice(0);jn[Z]=Xl(e,new Dn(b(P,Yn),Gn)),cr(P,Xr(e,jn,Z),Ue)}}var ze=d.wrapper.getBoundingClientRect(),ht=0;function Et(Pt){var Vt=++ht,sn=It(e,Pt,!0,r.unit=="rectangle");if(!sn)return;if(Rt(sn,Re)!=0){e.curOp.focus=I(),Ye(sn);var an=ja(d,P);(sn.line>=an.to||sn.lineze.bottom?20:0;vn&&setTimeout(Zn(e,function(){if(ht!=Vt)return;d.scroller.scrollTop+=vn,Et(Pt)}),50)}}function Dt(Pt){e.state.selectingText=!1,ht=Infinity,Pt&&(re(Pt),d.input.focus()),st(d.wrapper.ownerDocument,"mousemove",kt),st(d.wrapper.ownerDocument,"mouseup",Wt),P.history.lastSelOrigin=null}var kt=Zn(e,function(Pt){Pt.buttons===0||!Ie(Pt)?Dt(Pt):Et(Pt)}),Wt=Zn(e,Dt);e.state.selectingText=Wt,we(d.wrapper.ownerDocument,"mousemove",kt),we(d.wrapper.ownerDocument,"mouseup",Wt)}function Xl(e,t){var i=t.anchor,r=t.head,d=St(e.doc,i.line);if(Rt(i,r)==0&&i.sticky==r.sticky)return t;var P=wt(d);if(!P)return t;var X=pt(P,i.ch,i.sticky),Z=P[X];if(Z.from!=i.ch&&Z.to!=i.ch)return t;var $=X+(Z.from==i.ch==(Z.level!=1)?0:1);if($==0||$==P.length)return t;var ne;if(r.line!=i.line)ne=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ce=pt(P,r.ch,r.sticky),Re=Ce-X||(r.ch-i.ch)*(Z.level==1?-1:1);Ce==$-1||Ce==$?ne=Re<0:ne=Re>0}var Ye=P[$+(ne?-1:0)],ze=ne==(Ye.level==1),ht=ze?Ye.from:Ye.to,Et=ze?"after":"before";return i.ch==ht&&i.sticky==Et?t:new Dn(new lt(i.line,ht,Et),r)}function Ns(e,t,i,r){var d,P;if(t.touches)d=t.touches[0].clientX,P=t.touches[0].clientY;else try{d=t.clientX,P=t.clientY}catch(Ye){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&re(t);var X=e.display,Z=X.lineDiv.getBoundingClientRect();if(P>Z.bottom||!ge(e,i))return ce(t);P-=Z.top-X.viewOffset;for(var $=0;$=d){var Ce=tn(e.doc,P),Re=e.display.gutterSpecs[$];return He(e,i,e,Ce,Re.className,t),ce(t)}}}function Ro(e,t){return Ns(e,t,"gutterClick",!0)}function Bs(e,t){if(Gr(e.display,t)||Ql(e,t))return;if(nt(e,t,"contextmenu"))return;O||e.display.input.onContextMenu(t)}function Ql(e,t){return ge(e,"gutterContextMenu")?Ns(e,t,"gutterContextMenu",!1):!1}function Us(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),bi(e)}var Wi={toString:function(){return"CodeMirror.Init"}},Fs={},$a={};function Yl(e){var t=e.optionHandlers;function i(r,d,P,X){e.defaults[r]=d,P&&(t[r]=X?function(Z,$,ne){ne!=Wi&&P(Z,$,ne)}:P)}e.defineOption=i,e.Init=Wi,i("value","",function(r,d){return r.setValue(d)},!0),i("mode",null,function(r,d){r.doc.modeOption=d,yo(r)},!0),i("indentUnit",2,yo,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){sa(r),bi(r),Lt(r)},!0),i("lineSeparator",null,function(r,d){if(r.doc.lineSep=d,!d)return;var P=[],X=r.doc.first;r.doc.iter(function($){for(var ne=0;;){var Ce=$.text.indexOf(d,ne);if(Ce==-1)break;ne=Ce+d.length,P.push(lt(X,Ce))}X++});for(var Z=P.length-1;Z>=0;Z--)Bi(r.doc,d,P[Z],lt(P[Z].line,P[Z].ch+d.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,d,P){r.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),P!=Wi&&r.refresh()}),i("specialCharPlaceholder",En,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",n?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,d){return r.getInputField().spellcheck=d},!0),i("autocorrect",!1,function(r,d){return r.getInputField().autocorrect=d},!0),i("autocapitalize",!1,function(r,d){return r.getInputField().autocapitalize=d},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Us(r),oa(r)},!0),i("keyMap","default",function(r,d,P){var X=Za(d),Z=P!=Wi&&Za(P);Z&&Z.detach&&Z.detach(r,X),X.attach&&X.attach(r,Z||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(r,d){r.display.gutterSpecs=go(d,r.options.lineNumbers),oa(r)},!0),i("fixedGutter",!0,function(r,d){r.display.gutters.style.left=d?rt(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return _i(r)},!0),i("scrollbarStyle","native",function(r){Wo(r),_i(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,d){r.display.gutterSpecs=go(r.options.gutters,d),oa(r)},!0),i("firstLineNumber",1,oa,!0),i("lineNumberFormatter",function(r){return r},oa,!0),i("showCursorWhenSelecting",!1,In,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,d){d=="nocursor"&&(Mi(r),r.display.input.blur()),r.display.input.readOnlyChanged(d)}),i("screenReaderLabel",null,function(r,d){d=d===""?null:d,r.display.input.screenReaderLabelChanged(d)}),i("disableInput",!1,function(r,d){d||r.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,In,!0),i("singleCursorHeightPerLine",!0,In,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,sa,!0),i("addModeClass",!1,sa,!0),i("pollInterval",100),i("undoDepth",200,function(r,d){return r.doc.history.undoDepth=d}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,sa,!0),i("moveInputWithCursor",!0,function(r,d){d||r.display.input.resetPosition()}),i("tabindex",null,function(r,d){return r.display.input.getField().tabIndex=d||""}),i("autofocus",null),i("direction","ltr",function(r,d){return r.doc.setDirection(d)},!0),i("phrases",null)}function Jl(e,t,i){var r=i&&i!=Wi;if(!t!=!r){var d=e.display.dragFunctions,P=t?we:st;P(e.display.scroller,"dragstart",d.start),P(e.display.scroller,"dragenter",d.enter),P(e.display.scroller,"dragover",d.over),P(e.display.scroller,"dragleave",d.leave),P(e.display.scroller,"drop",d.drop)}}function Zl(e){e.options.lineWrapping?(C(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(p(e.display.wrapper,"CodeMirror-wrap"),Zr(e)),mt(e),Lt(e),bi(e),setTimeout(function(){return _i(e)},100)}function Un(e,t){var i=this;if(!(this instanceof Un))return new Un(e,t);this.options=t=t?F(t):{},F(Fs,t,!1);var r=t.value;typeof r=="string"?r=new xr(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var d=new Un.inputStyles[t.inputStyle](this),P=this.display=new dl(e,r,d,t);P.wrapper.CodeMirror=this,Us(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},t.autofocus&&!n&&P.input.focus(),j&&U<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Ol(),Ci(this),this.curOp.forceUpdate=!0,Zo(this,r),t.autofocus&&!n||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&lo(i)},20):Mi(this);for(var X in $a)$a.hasOwnProperty(X)&&$a[X](this,t[X],Wi);zo(this),t.finishInit&&t.finishInit(this);for(var Z=0;Z20*20}we(t.scroller,"touchstart",function($){if(!nt(e,$)&&!P($)&&!Ro(e,$)){t.input.ensurePolled(),clearTimeout(i);var ne=+new Date;t.activeTouch={start:ne,moved:!1,prev:ne-r.end<=300?r:null},$.touches.length==1&&(t.activeTouch.left=$.touches[0].pageX,t.activeTouch.top=$.touches[0].pageY)}}),we(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),we(t.scroller,"touchend",function($){var ne=t.activeTouch;if(ne&&!Gr(t,$)&&ne.left!=null&&!ne.moved&&new Date-ne.start<300){var Ce=e.coordsChar(t.activeTouch,"page"),Re;!ne.prev||X(ne,ne.prev)?Re=new Dn(Ce,Ce):!ne.prev.prev||X(ne,ne.prev.prev)?Re=e.findWordAt(Ce):Re=new Dn(lt(Ce.line,0),b(e.doc,lt(Ce.line+1,0))),e.setSelection(Re.anchor,Re.head),e.focus(),re($)}d()}),we(t.scroller,"touchcancel",d),we(t.scroller,"scroll",function(){t.scroller.clientHeight&&(na(e,t.scroller.scrollTop),Ei(e,t.scroller.scrollLeft,!0),He(e,"scroll",e))}),we(t.scroller,"mousewheel",function($){return Xo(e,$)}),we(t.scroller,"DOMMouseScroll",function($){return Xo(e,$)}),we(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function($){nt(e,$)||Ee($)},over:function($){nt(e,$)||(Rl(e,$),Ee($))},start:function($){return Dl(e,$)},drop:Zn(e,wl),leave:function($){nt(e,$)||xs(e)}};var Z=t.input.getField();we(Z,"keyup",function($){return Is.call(e,$)}),we(Z,"keydown",Zn(e,Ms)),we(Z,"keypress",Zn(e,_s)),we(Z,"focus",function($){return lo(e,$)}),we(Z,"blur",function($){return Mi(e,$)})}var Oo=[];Un.defineInitHook=function(e){return Oo.push(e)};function Ea(e,t,i,r){var d=e.doc,P;i==null&&(i="add"),i=="smart"&&(d.mode.indent?P=Ot(e,t).state:i="prev");var X=e.options.tabSize,Z=St(d,t),$=q(Z.text,null,X);Z.stateAfter&&(Z.stateAfter=null);var ne=Z.text.match(/^\s*/)[0],Ce;if(!r&&!/\S/.test(Z.text))Ce=0,i="not";else if(i=="smart"&&(Ce=d.mode.indent(P,Z.text.slice(ne.length),Z.text),Ce==Ge||Ce>150)){if(!r)return;i="prev"}i=="prev"?t>d.first?Ce=q(St(d,t-1).text,null,X):Ce=0:i=="add"?Ce=$+e.options.indentUnit:i=="subtract"?Ce=$-e.options.indentUnit:typeof i=="number"&&(Ce=$+i),Ce=Math.max(0,Ce);var Re="",Ye=0;if(e.options.indentWithTabs)for(var ze=Math.floor(Ce/X);ze;--ze)Ye+=X,Re+=" ";if(YeX,$=qe(t),ne=null;if(Z&&r.ranges.length>1)if(Qr&&Qr.text.join(` -`)==t){if(r.ranges.length%Qr.text.length==0){ne=[];for(var Ce=0;Ce=0;Ye--){var ze=r.ranges[Ye],ht=ze.from(),Et=ze.to();ze.empty()&&(i&&i>0?ht=lt(ht.line,ht.ch-i):e.state.overwrite&&!Z?Et=lt(Et.line,Math.min(St(P,Et.line).text.length,Et.ch+te($).length)):Z&&Qr&&Qr.lineWise&&Qr.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(k),k.scrollIntoView(d),e.display.lineSpace.removeChild(k)}}function Ys(e,t,i,r){r==null&&(r=0);var d;!e.options.lineWrapping&&t==i&&(t=t.ch?lt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?lt(t.line,t.ch+1,"before"):t);for(var k=0;k<5;k++){var X=!1,Z=kr(e,t),$=!i||i==t?Z:kr(e,i);d={left:Math.min(Z.left,$.left),top:Math.min(Z.top,$.top)-r,right:Math.max(Z.left,$.left),bottom:Math.max(Z.bottom,$.bottom)+r};var ne=uo(e,d),Ce=e.doc.scrollTop,Re=e.doc.scrollLeft;if(ne.scrollTop!=null&&(na(e,ne.scrollTop),Math.abs(e.doc.scrollTop-Ce)>1&&(X=!0)),ne.scrollLeft!=null&&(Ei(e,ne.scrollLeft),Math.abs(e.doc.scrollLeft-Re)>1&&(X=!0)),!X)break}return d}function Js(e,t){var i=uo(e,t);i.scrollTop!=null&&na(e,i.scrollTop),i.scrollLeft!=null&&Ei(e,i.scrollLeft)}function uo(e,t){var i=e.display,r=Ut(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,k=ei(e),X={};t.bottom-t.top>k&&(t.bottom=t.top+k);var Z=e.doc.height+wa(i),$=t.topZ-r;if(t.topd+k){var Ce=Math.min(t.top,(ne?Z:t.bottom)-k);Ce!=d&&(X.scrollTop=Ce)}var Re=e.options.fixedGutter?0:i.gutters.offsetWidth,Ye=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-Re,ze=si(e)-i.gutters.offsetWidth,ht=t.right-t.left>ze;return ht&&(t.right=t.left+ze),t.left<10?X.scrollLeft=0:t.leftze+Ye-3&&(X.scrollLeft=t.right+(ht?0:10)-ze),X}function co(e,t){if(t==null)return;Wa(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Ii(e){Wa(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ta(e,t,i){(t!=null||i!=null)&&Wa(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zs(e,t){Wa(e),e.curOp.scrollToPos=t}function Wa(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Ia(e,t.from),r=Ia(e,t.to);Bo(e,i,r,t.margin)}}function Bo(e,t,i,r){var d=uo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});ta(e,d.scrollLeft,d.scrollTop)}function na(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;P||fo(e,{top:t}),Uo(e,t,!0),P&&fo(e),aa(e,100)}function Uo(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Ei(e,t,i,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Ko(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function ra(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+wa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+dr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var xi=function(e,t,i){this.cm=i;var r=this.vert=l("div",[l("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=l("div",[l("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=d.tabIndex=-1,e(r),e(d),we(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),we(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,j&&U<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var d=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var k=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+k)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},xi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xi.prototype.zeroWidthHack=function(){var e=o&&!y?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new le,this.disableVert=new le},xi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function r(){var d=e.getBoundingClientRect(),k=i=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);k!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},xi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ia=function(){};ia.prototype.update=function(){return{bottom:0,right:0}},ia.prototype.setScrollLeft=function(){},ia.prototype.setScrollTop=function(){},ia.prototype.clear=function(){};function _i(e,t){t||(t=ra(e));var i=e.display.barWidth,r=e.display.barHeight;Fo(e,t);for(var d=0;d<4&&i!=e.display.barWidth||r!=e.display.barHeight;d++)i!=e.display.barWidth&&e.options.lineWrapping&&Fa(e),Fo(e,ra(e)),i=e.display.barWidth,r=e.display.barHeight}function Fo(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var jo={native:xi,null:ia};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&p(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new jo[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),we(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Ei(e,t):na(e,t)},e),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qs},pr(e.curOp)}function Si(e){var t=e.curOp;t&&Kt(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ha(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&ho(e.cm,e.update)}function nl(e){var t=e.cm,i=t.display;e.updatedDisplay&&Fa(t),e.barMeasure=ra(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Vi(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+dr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-si(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function rl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,r=Ot(e,t.highlightFrontier),d=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(k){if(r.line>=e.display.viewFrom){var X=k.styles,Z=k.text.length>e.options.maxHighlightLength?Ct(t.mode,r.state):null,$=De(e,k,r,!0);Z&&(r.state=Z),k.styles=$.styles;var ne=k.styleClasses,Ce=$.classes;Ce?k.styleClasses=Ce:ne&&(k.styleClasses=null);for(var Re=!X||X.length!=k.styles.length||ne!=Ce&&(!ne||!Ce||ne.bgClass!=Ce.bgClass||ne.textClass!=Ce.textClass),Ye=0;!Re&&Yei)return aa(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),d.length&&Or(e,function(){for(var k=0;k=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Nn(e)==0)return!1;zo(e)&&(jt(e),t.dims=ct(e));var d=r.first+r.size,k=Math.max(t.visible.from-e.options.viewportMargin,r.first),X=Math.min(d,t.visible.to+e.options.viewportMargin);i.viewFromX&&i.viewTo-X<20&&(X=Math.min(d,i.viewTo)),Vn&&(k=Dr(e.doc,k),X=Jr(e.doc,X));var Z=k!=i.viewFrom||X!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Mn(e,k,X),i.viewOffset=Er(St(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var $=Nn(e);if(!Z&&$==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var ne=sl(e);return $>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),$>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(ne),h(i.cursorDiv),h(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Z&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,aa(e,400)),i.updateLineNumbers=null,!0}function Ho(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==si(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+wa(e.display)-ei(e),i.top)}),t.visible=ja(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ja(e.display,e.doc,i));if(!ho(e,t))break;Fa(e);var d=ra(e);In(e),_i(e,d),mo(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fo(e,t){var i=new Ha(e,t);if(ho(e,i)){Fa(e),Ho(e,i);var r=ra(e);In(e),_i(e,r),mo(e,r),i.finish()}}function ul(e,t,i){var r=e.display,d=e.options.lineNumbers,k=r.lineDiv,X=k.firstChild;function Z(ht){var Et=ht.nextSibling;return _&&o&&e.display.currentWheelTarget==ht?ht.style.display="none":ht.parentNode.removeChild(ht),Et}for(var $=r.view,ne=r.viewFrom,Ce=0;Ce<$.length;Ce++){var Re=$[Ce];if(!Re.hidden)if(!Re.node||Re.node.parentNode!=k){var Ye=Sa(e,Re,ne,i);k.insertBefore(Ye,X)}else{for(;X!=Re.node;)X=Z(X);var ze=d&&t!=null&&t<=ne&&Re.lineNumber;Re.changes&&(pe(Re.changes,"gutter")>-1&&(ze=!1),qr(e,Re,ne,i)),ze&&(h(Re.lineNumber),Re.lineNumber.appendChild(document.createTextNode(An(e.options,ne)))),X=Re.node.nextSibling}ne+=Re.size}for(;X;)X=Z(X)}function po(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function mo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+dr(e)+"px"}function Ko(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=rt(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,k=r+"px",X=0;XX.clientWidth,$=X.scrollHeight>X.clientHeight;if(!(r&&Z||d&&$))return;if(d&&o&&_){e:for(var ne=t.target,Ce=k.view;ne!=X;ne=ne.parentNode)for(var Re=0;Re=0&&Rt(e,r.to())<=0)return i}return-1};var Dn=function(e,t){this.anchor=e,this.head=t};Dn.prototype.from=function(){return cn(this.anchor,this.head)},Dn.prototype.to=function(){return un(this.anchor,this.head)},Dn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xr(e,t,i){var r=e&&e.options.selectionsMayTouch,d=t[i];t.sort(function(Ye,ze){return Rt(Ye.from(),ze.from())}),i=pe(t,d);for(var k=1;k0:$>=0){var ne=cn(Z.from(),X.from()),Ce=un(Z.to(),X.to()),Re=Z.empty()?X.from()==X.head:Z.from()==Z.head;k<=i&&--i,t.splice(--k,2,new Dn(Re?Ce:ne,Re?ne:Ce))}}return new Br(t,i)}function di(e,t){return new Br([new Dn(e,t||e)],0)}function ci(e){return e.text?lt(e.from.line+e.text.length-1,te(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Qo(e,t){if(Rt(e,t.from)<0)return e;if(Rt(e,t.to)<=0)return ci(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ci(t).ch-t.to.ch),lt(i,r)}function vo(e,t){for(var i=[],r=0;r1&&e.remove(Z.line+1,ht-1),e.insert(Z.line+1,Pt)}Cn(e,"change",e,t)}function hi(e,t,i){function r(d,k,X){if(d.linked)for(var Z=0;Z1&&!e.done[e.done.length-2].ranges)return e.done.pop(),te(e.done)}function es(e,t,i,r){var d=e.history;d.undone.length=0;var k=+new Date,X,Z;if((d.lastOp==r||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>k-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(X=pl(d,d.lastOp==r)))Z=te(X.changes),Rt(t.from,t.to)==0&&Rt(t.from,Z.to)==0?Z.to=ci(t):X.changes.push(Eo(e,t));else{var $=te(d.done);for((!$||!$.ranges)&&Ga(e.sel,d.done),X={changes:[Eo(e,t)],generation:d.generation},d.done.push(X);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(i),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=k,d.lastOp=d.lastSelOp=r,d.lastOrigin=d.lastSelOrigin=t.origin,Z||He(e,"historyAdded")}function ml(e,t,i,r){var d=t.charAt(0);return d=="*"||d=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,r){var d=e.history,k=r&&r.origin;i==d.lastSelOp||k&&d.lastSelOrigin==k&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==k||ml(e,k,te(d.done),t))?d.done[d.done.length-1]=t:Ga(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=k,d.lastSelOp=i,r&&r.clearRedo!==!1&&$o(d.undone)}function Ga(e,t){var i=te(t);i&&i.ranges&&i.equals(e)||t.push(e)}function ts(e,t,i,r){var d=t["spans_"+e.id],k=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(X){X.markedSpans&&((d||(d=t["spans_"+e.id]={}))[k]=X.markedSpans),++k})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(te(Z)[Re]=ne[Re],delete ne[Re]))}}return r}function xo(e,t,i,r){if(r){var d=e.anchor;if(i){var k=Rt(t,d)<0;k!=Rt(i,d)<0?(d=t,t=i):k!=Rt(t,i)<0&&(t=i)}return new Dn(d,t)}else return new Dn(i||t,t)}function Va(e,t,i,r,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new Br([xo(e.sel.primary(),t,i,d)],0),r)}function rs(e,t,i){for(var r=[],d=e.cm&&(e.cm.display.shift||e.extend),k=0;k=t.ch:Z.to>t.ch))){if(d&&(He($,"beforeCursorEnter"),$.explicitlyCleared))if(k.markedSpans){--X;continue}else break;if(!$.atomic)continue;if(i){var Re=$.find(r<0?1:-1),Ye=void 0;if((r<0?Ce:ne)&&(Re=us(e,Re,-r,Re&&Re.line==t.line?k:null)),Re&&Re.line==t.line&&(Ye=Rt(Re,i))&&(r<0?Ye<0:Ye>0))return ki(e,Re,t,r,d)}var ze=$.find(r<0?-1:1);return(r<0?ne:Ce)&&(ze=us(e,ze,r,ze.line==t.line?k:null)),ze?ki(e,ze,t,r,d):null}}return t}function Qa(e,t,i,r,d){var k=r||1,X=ki(e,t,i,k,d)||!d&&ki(e,t,i,k,!0)||ki(e,t,i,-k,d)||!d&&ki(e,t,i,-k,!0);return X||(e.cantEdit=!0,lt(e.first,0))}function us(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?b(e,lt(t.line-1)):null:i>0&&t.ch==(r||St(e,t.line)).text.length?t.line=0;--d)hs(e,{from:r[d].from,to:r[d].to,text:d?[""]:t.text,origin:t.origin});else hs(e,t)}function hs(e,t){if(t.text.length==1&&t.text[0]==""&&Rt(t.from,t.to)==0)return;var i=vo(e,t);es(e,t,i,e.cm?e.cm.curOp.id:NaN),la(e,t,i,br(e,t));var r=[];hi(e,function(d,k){!k&&pe(r,d.history)==-1&&(gs(d.history,t),r.push(d.history)),la(d,t,null,br(d,t))})}function Ya(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!i)return;for(var d=e.history,k,X=e.sel,Z=t=="undo"?d.done:d.undone,$=t=="undo"?d.undone:d.done,ne=0;ne=0;--ze){var ht=Ye(ze);if(ht)return ht.v}}function fs(e,t){if(t==0)return;if(e.first+=t,e.sel=new Br(ye(e.sel.ranges,function(d){return new Dn(lt(d.anchor.line+t,d.anchor.ch),lt(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())return;if(t.from.linek&&(t={from:t.from,to:lt(k,St(e,k).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ln(e,t.from,t.to),i||(i=vo(e,t)),e.cm?El(e.cm,t,r):bo(e,t,r),Xa(e,i,Fe),e.cantEdit&&Qa(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var r=e.doc,d=e.display,k=t.from,X=t.to,Z=!1,$=k.line;e.options.lineWrapping||($=Mt(Qn(St(r,k.line))),r.iter($,X.line+1,function(ze){if(ze==d.maxLine)return Z=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Te(e),bo(r,t,i,_t(e)),e.options.lineWrapping||(r.iter($,k.line+t.text.length,function(ze){var ht=Hr(ze);ht>d.maxLineLength&&(d.maxLine=ze,d.maxLineLength=ht,d.maxLineChanged=!0,Z=!1)}),Z&&(e.curOp.updateMaxLine=!0)),or(r,k.line),aa(e,400);var ne=t.text.length-(X.line-k.line)-1;t.full?Lt(e):k.line==X.line&&t.text.length==1&&!Jo(e.doc,t)?Zt(e,k.line,"text"):Lt(e,k.line,X.line+1,ne);var Ce=ge(e,"changes"),Re=ge(e,"change");if(Re||Ce){var Ye={from:k,to:X,text:t.text,removed:t.removed,origin:t.origin};Re&&Cn(e,"change",e,Ye),Ce&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ye)}e.display.selForContextMenu=null}function Bi(e,t,i,r,d){var k;r||(r=i),Rt(r,i)<0&&(k=[r,i],i=k[0],r=k[1]),typeof t=="string"&&(t=e.splitLines(t)),Ni(e,{from:i,to:r,text:t,origin:d})}function ps(e,t,i,r){i1||!(this.children[0]instanceof da))){var Z=[];this.collapse(Z),this.children=[new da(Z)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var X=d.lines.length%25+25,Z=X;Z10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=ne,e.display.maxLineLength=Ce,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Lt(e,r,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ss(e.doc)),e&&Cn(e,"markerCleared",e,this,r,d),t&&Si(e),this.parent&&this.parent.clear()},fi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,d=0;d0||X==0&&k.clearWhenEmpty!==!1)return k;if(k.replacedWith&&(k.collapsed=!0,k.widgetNode=D("span",[k.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||k.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(k.widgetNode.insertLeft=!0)),k.collapsed){if(Bn(e,t.line,t,i,k)||t.line!=i.line&&Bn(e,i.line,t,i,k))throw new Error("Inserting collapsed marker partially overlapping an existing one");Jn()}k.addToHistory&&es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Z=t.line,$=e.cm,ne;if(e.iter(Z,i.line+1,function(Re){$&&k.collapsed&&!$.options.lineWrapping&&Qn(Re)==$.display.maxLine&&(ne=!0),k.collapsed&&Z!=t.line&&Yt(Re,0),yr(Re,new Mr(k,Z==t.line?t.ch:null,Z==i.line?i.ch:null)),++Z}),k.collapsed&&e.iter(t.line,i.line+1,function(Re){rr(e,Re)&&Yt(Re,0)}),k.clearOnEnter&&we(k,"beforeCursorEnter",function(){return k.clear()}),k.readOnly&&(sr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),k.collapsed&&(k.id=++ys,k.atomic=!0),$){if(ne&&($.curOp.updateMaxLine=!0),k.collapsed)Lt($,t.line,i.line+1);else if(k.className||k.startStyle||k.endStyle||k.css||k.attributes||k.title)for(var Ce=t.line;Ce<=i.line;Ce++)Zt($,Ce,"text");k.atomic&&ss($.doc),Cn($,"markerAdded",$,k)}return k}var fa=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;$--)Ni(this,r[$]);Z?as(this,Z):this.cm&&Ii(this.cm)}),undo:qn(function(){Ya(this,"undo")}),redo:qn(function(){Ya(this,"redo")}),undoSelection:qn(function(){Ya(this,"undo",!0)}),redoSelection:qn(function(){Ya(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,i){e=b(this,e),t=b(this,t);var r=[],d=e.line;return this.iter(e.line,t.line+1,function(k){var X=k.markedSpans;if(X)for(var Z=0;Z=$.to||$.from==null&&d!=e.line||$.from!=null&&d==t.line&&$.from>=t.ch)&&(!i||i($.marker))&&r.push($.marker.parent||$.marker)}++d}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=k,++i}),b(this,lt(i,t))},indexFromPos:function(e){e=b(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Ce=e.dataTransfer.getData("Text");if(Ce){var Re;if(t.state.draggingText&&!t.state.draggingText.copy&&(Re=t.listSelections()),Xa(t.doc,di(i,i)),Re)for(var Ye=0;Ye=0;Z--)Bi(e.doc,"",r[Z].from,r[Z].to,"+delete");Ii(e)})}function So(e,t,i){var r=Ze(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ao(e,t,i){var r=So(e,t.ch,i);return r==null?null:new lt(t.line,r,i<0?"after":"before")}function To(e,t,i,r,d){if(e){t.doc.direction=="rtl"&&(d=-d);var k=wt(i,t.doc.direction);if(k){var X=d<0?te(k):k[0],Z=d<0==(X.level==1),$=Z?"after":"before",ne;if(X.level>0||t.doc.direction=="rtl"){var Ce=li(t,i);ne=d<0?i.text.length-1:0;var Re=mr(t,Ce,ne).top;ne=yt(function(Ye){return mr(t,Ce,Ye).top==Re},d<0==(X.level==1)?X.from:X.to-1,ne),$=="before"&&(ne=So(i,ne,1))}else ne=d<0?X.to:X.from;return new lt(r,ne,$)}}return new lt(r,d<0?i.text.length:0,d<0?"before":"after")}function Pl(e,t,i,r){var d=wt(t,e.doc.direction);if(!d)return Ao(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var k=pt(d,i.ch,i.sticky),X=d[k];if(e.doc.direction=="ltr"&&X.level%2==0&&(r>0?X.to>i.ch:X.from=X.from&&Ye>=Ce.begin)){var ze=Re?"before":"after";return new lt(i.line,Ye,ze)}}var ht=function(Pt,Wt,kt){for(var Vt=function(Pn,$n){return $n?new lt(i.line,Z(Pn,1),"before"):new lt(i.line,Pn,"after")};Pt>=0&&Pt0==(sn.level!=1),vn=an?kt.begin:Z(kt.end,-1);if(sn.from<=vn&&vn0?Ce.end:Z(Ce.begin,-1);return Dt!=null&&!(r>0&&Dt==t.text.length)&&(Et=ht(r>0?0:d.length-1,r,ne(Dt)),Et)?Et:null}var ga={selectAll:ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Fe)},killLine:function(e){return ji(e,function(t){if(t.empty()){var i=St(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)d=new lt(d.line,d.ch+1),e.replaceRange(k.charAt(d.ch-1)+k.charAt(d.ch-2),lt(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var X=St(e.doc,d.line-1).text;X&&(d=new lt(d.line,1),e.replaceRange(k.charAt(0)+e.doc.lineSeparator()+X.charAt(X.length-1),lt(d.line-1,X.length-1),d,"+transpose"))}}i.push(new Dn(d,d))}e.setSelections(i)})},newlineAndIndent:function(e){return Or(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&Rt(t,this.pos)==0&&i==this.button};var ya,ba;function Wl(e,t){var i=+new Date;return ba&&ba.compare(i,e,t)?(ya=ba=null,"triple"):ya&&ya.compare(i,e,t)?(ba=new Do(i,e,t),ya=null,"double"):(ya=new Do(i,e,t),ba=null,"single")}function Ps(e){var t=this,i=t.display;if(nt(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Gr(i,e)){_||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Ro(t,e))return;var r=It(t,e),d=Ie(e),k=r?Wl(r,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),r&&Hl(t,d,r,k,e))return;d==1?r?zl(t,r,k,e):Be(e)==i.scroller&&re(e):d==2?(r&&Va(t.doc,r),setTimeout(function(){return i.input.focus()},20)):d==3&&(O?t.display.input.onContextMenu(e):ko(t))}function Hl(e,t,i,r,d){var k="Click";return r=="double"?k="Double"+k:r=="triple"&&(k="Triple"+k),k=(t==1?"Left":t==2?"Middle":"Right")+k,va(e,Ts(k,d),d,function(X){if(typeof X=="string"&&(X=ga[X]),!X)return!1;var Z=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Z=X(e,i)!=Ge}finally{e.state.suppressEdits=!1}return Z})}function Kl(e,t,i){var r=e.getOption("configureMouse"),d=r?r(e,t,i):{};if(d.unit==null){var k=u?i.shiftKey&&i.metaKey:i.altKey;d.unit=k?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||i.shiftKey),d.addNew==null&&(d.addNew=o?i.metaKey:i.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(o?i.altKey:i.ctrlKey)),d}function zl(e,t,i,r){j?setTimeout(H(Po,e),0):e.curOp.focus=I();var d=Kl(e,i,r),k=e.doc.sel,X;e.options.dragDrop&&ut&&!e.isReadOnly()&&i=="single"&&(X=k.contains(t))>-1&&(Rt((X=k.ranges[X]).from(),t)<0||t.xRel>0)&&(Rt(X.to(),t)>0||t.xRel<0)?Gl(e,r,t,d):Vl(e,r,t,d)}function Gl(e,t,i,r){var d=e.display,k=!1,X=Zn(e,function(ne){_&&(d.scroller.draggable=!1),e.state.draggingText=!1,st(d.wrapper.ownerDocument,"mouseup",X),st(d.wrapper.ownerDocument,"mousemove",Z),st(d.scroller,"dragstart",$),st(d.scroller,"drop",X),k||(re(ne),r.addNew||Va(e.doc,i,null,null,r.extend),_&&!w||j&&U==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),Z=function(ne){k=k||Math.abs(t.clientX-ne.clientX)+Math.abs(t.clientY-ne.clientY)>=10},$=function(){return k=!0};_&&(d.scroller.draggable=!0),e.state.draggingText=X,X.copy=!r.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),we(d.wrapper.ownerDocument,"mouseup",X),we(d.wrapper.ownerDocument,"mousemove",Z),we(d.scroller,"dragstart",$),we(d.scroller,"drop",X),ko(e),setTimeout(function(){return d.input.focus()},20)}function ks(e,t,i){if(i=="char")return new Dn(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Dn(lt(t.line,0),b(e.doc,lt(t.line+1,0)));var r=i(e,t);return new Dn(r.from,r.to)}function Vl(e,t,i,r){var d=e.display,k=e.doc;re(t);var X,Z,$=k.sel,ne=$.ranges;if(r.addNew&&!r.extend?(Z=k.sel.contains(i),Z>-1?X=ne[Z]:X=new Dn(i,i)):(X=k.sel.primary(),Z=k.sel.primIndex),r.unit=="rectangle")r.addNew||(X=new Dn(i,i)),i=It(e,t,!0,!0),Z=-1;else{var Ce=ks(e,i,r.unit);r.extend?X=xo(X,Ce.anchor,Ce.head,r.extend):X=Ce}r.addNew?Z==-1?(Z=ne.length,cr(k,Xr(e,ne.concat([X]),Z),{scroll:!1,origin:"*mouse"})):ne.length>1&&ne[Z].empty()&&r.unit=="char"&&!r.extend?(cr(k,Xr(e,ne.slice(0,Z).concat(ne.slice(Z+1)),0),{scroll:!1,origin:"*mouse"}),$=k.sel):Co(k,Z,X,Ue):(Z=0,cr(k,new Br([X],0),Ue),$=k.sel);var Re=i;function Ye(kt){if(Rt(Re,kt)==0)return;if(Re=kt,r.unit=="rectangle"){for(var Vt=[],sn=e.options.tabSize,an=q(St(k,i.line).text,i.ch,sn),vn=q(St(k,kt.line).text,kt.ch,sn),Pn=Math.min(an,vn),$n=Math.max(an,vn),Fn=Math.min(i.line,kt.line),Lr=Math.min(e.lastLine(),Math.max(i.line,kt.line));Fn<=Lr;Fn++){var Cr=St(k,Fn).text,zn=je(Cr,Pn,sn);Pn==$n?Vt.push(new Dn(lt(Fn,zn),lt(Fn,zn))):Cr.length>zn&&Vt.push(new Dn(lt(Fn,zn),lt(Fn,je(Cr,$n,sn))))}Vt.length||Vt.push(new Dn(i,i)),cr(k,Xr(e,$.ranges.slice(0,Z).concat(Vt),Z),{origin:"*mouse",scroll:!1}),e.scrollIntoView(kt)}else{var Sr=X,ar=ks(e,kt,r.unit),Yn=Sr.anchor,Gn;Rt(ar.anchor,Yn)>0?(Gn=ar.head,Yn=cn(Sr.from(),ar.anchor)):(Gn=ar.anchor,Yn=un(Sr.to(),ar.head));var jn=$.ranges.slice(0);jn[Z]=Xl(e,new Dn(b(k,Yn),Gn)),cr(k,Xr(e,jn,Z),Ue)}}var ze=d.wrapper.getBoundingClientRect(),ht=0;function Et(kt){var Vt=++ht,sn=It(e,kt,!0,r.unit=="rectangle");if(!sn)return;if(Rt(sn,Re)!=0){e.curOp.focus=I(),Ye(sn);var an=ja(d,k);(sn.line>=an.to||sn.lineze.bottom?20:0;vn&&setTimeout(Zn(e,function(){if(ht!=Vt)return;d.scroller.scrollTop+=vn,Et(kt)}),50)}}function Dt(kt){e.state.selectingText=!1,ht=Infinity,kt&&(re(kt),d.input.focus()),st(d.wrapper.ownerDocument,"mousemove",Pt),st(d.wrapper.ownerDocument,"mouseup",Wt),k.history.lastSelOrigin=null}var Pt=Zn(e,function(kt){kt.buttons===0||!Ie(kt)?Dt(kt):Et(kt)}),Wt=Zn(e,Dt);e.state.selectingText=Wt,we(d.wrapper.ownerDocument,"mousemove",Pt),we(d.wrapper.ownerDocument,"mouseup",Wt)}function Xl(e,t){var i=t.anchor,r=t.head,d=St(e.doc,i.line);if(Rt(i,r)==0&&i.sticky==r.sticky)return t;var k=wt(d);if(!k)return t;var X=pt(k,i.ch,i.sticky),Z=k[X];if(Z.from!=i.ch&&Z.to!=i.ch)return t;var $=X+(Z.from==i.ch==(Z.level!=1)?0:1);if($==0||$==k.length)return t;var ne;if(r.line!=i.line)ne=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ce=pt(k,r.ch,r.sticky),Re=Ce-X||(r.ch-i.ch)*(Z.level==1?-1:1);Ce==$-1||Ce==$?ne=Re<0:ne=Re>0}var Ye=k[$+(ne?-1:0)],ze=ne==(Ye.level==1),ht=ze?Ye.from:Ye.to,Et=ze?"after":"before";return i.ch==ht&&i.sticky==Et?t:new Dn(new lt(i.line,ht,Et),r)}function Ns(e,t,i,r){var d,k;if(t.touches)d=t.touches[0].clientX,k=t.touches[0].clientY;else try{d=t.clientX,k=t.clientY}catch(Ye){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&re(t);var X=e.display,Z=X.lineDiv.getBoundingClientRect();if(k>Z.bottom||!ge(e,i))return ce(t);k-=Z.top-X.viewOffset;for(var $=0;$=d){var Ce=tn(e.doc,k),Re=e.display.gutterSpecs[$];return He(e,i,e,Ce,Re.className,t),ce(t)}}}function Ro(e,t){return Ns(e,t,"gutterClick",!0)}function Bs(e,t){if(Gr(e.display,t)||Ql(e,t))return;if(nt(e,t,"contextmenu"))return;O||e.display.input.onContextMenu(t)}function Ql(e,t){return ge(e,"gutterContextMenu")?Ns(e,t,"gutterContextMenu",!1):!1}function Us(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),bi(e)}var Wi={toString:function(){return"CodeMirror.Init"}},Fs={},$a={};function Yl(e){var t=e.optionHandlers;function i(r,d,k,X){e.defaults[r]=d,k&&(t[r]=X?function(Z,$,ne){ne!=Wi&&k(Z,$,ne)}:k)}e.defineOption=i,e.Init=Wi,i("value","",function(r,d){return r.setValue(d)},!0),i("mode",null,function(r,d){r.doc.modeOption=d,yo(r)},!0),i("indentUnit",2,yo,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){sa(r),bi(r),Lt(r)},!0),i("lineSeparator",null,function(r,d){if(r.doc.lineSep=d,!d)return;var k=[],X=r.doc.first;r.doc.iter(function($){for(var ne=0;;){var Ce=$.text.indexOf(d,ne);if(Ce==-1)break;ne=Ce+d.length,k.push(lt(X,Ce))}X++});for(var Z=k.length-1;Z>=0;Z--)Bi(r.doc,d,k[Z],lt(k[Z].line,k[Z].ch+d.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,d,k){r.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),k!=Wi&&r.refresh()}),i("specialCharPlaceholder",En,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",n?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,d){return r.getInputField().spellcheck=d},!0),i("autocorrect",!1,function(r,d){return r.getInputField().autocorrect=d},!0),i("autocapitalize",!1,function(r,d){return r.getInputField().autocapitalize=d},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Us(r),oa(r)},!0),i("keyMap","default",function(r,d,k){var X=Za(d),Z=k!=Wi&&Za(k);Z&&Z.detach&&Z.detach(r,X),X.attach&&X.attach(r,Z||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(r,d){r.display.gutterSpecs=go(d,r.options.lineNumbers),oa(r)},!0),i("fixedGutter",!0,function(r,d){r.display.gutters.style.left=d?rt(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return _i(r)},!0),i("scrollbarStyle","native",function(r){Wo(r),_i(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,d){r.display.gutterSpecs=go(r.options.gutters,d),oa(r)},!0),i("firstLineNumber",1,oa,!0),i("lineNumberFormatter",function(r){return r},oa,!0),i("showCursorWhenSelecting",!1,In,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,d){d=="nocursor"&&(Mi(r),r.display.input.blur()),r.display.input.readOnlyChanged(d)}),i("screenReaderLabel",null,function(r,d){d=d===""?null:d,r.display.input.screenReaderLabelChanged(d)}),i("disableInput",!1,function(r,d){d||r.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,In,!0),i("singleCursorHeightPerLine",!0,In,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,sa,!0),i("addModeClass",!1,sa,!0),i("pollInterval",100),i("undoDepth",200,function(r,d){return r.doc.history.undoDepth=d}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,sa,!0),i("moveInputWithCursor",!0,function(r,d){d||r.display.input.resetPosition()}),i("tabindex",null,function(r,d){return r.display.input.getField().tabIndex=d||""}),i("autofocus",null),i("direction","ltr",function(r,d){return r.doc.setDirection(d)},!0),i("phrases",null)}function Jl(e,t,i){var r=i&&i!=Wi;if(!t!=!r){var d=e.display.dragFunctions,k=t?we:st;k(e.display.scroller,"dragstart",d.start),k(e.display.scroller,"dragenter",d.enter),k(e.display.scroller,"dragover",d.over),k(e.display.scroller,"dragleave",d.leave),k(e.display.scroller,"drop",d.drop)}}function Zl(e){e.options.lineWrapping?(C(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(p(e.display.wrapper,"CodeMirror-wrap"),Zr(e)),mt(e),Lt(e),bi(e),setTimeout(function(){return _i(e)},100)}function Un(e,t){var i=this;if(!(this instanceof Un))return new Un(e,t);this.options=t=t?F(t):{},F(Fs,t,!1);var r=t.value;typeof r=="string"?r=new xr(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var d=new Un.inputStyles[t.inputStyle](this),k=this.display=new dl(e,r,d,t);k.wrapper.CodeMirror=this,Us(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},t.autofocus&&!n&&k.input.focus(),j&&U<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Ol(),Ci(this),this.curOp.forceUpdate=!0,Zo(this,r),t.autofocus&&!n||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&lo(i)},20):Mi(this);for(var X in $a)$a.hasOwnProperty(X)&&$a[X](this,t[X],Wi);zo(this),t.finishInit&&t.finishInit(this);for(var Z=0;Z20*20}we(t.scroller,"touchstart",function($){if(!nt(e,$)&&!k($)&&!Ro(e,$)){t.input.ensurePolled(),clearTimeout(i);var ne=+new Date;t.activeTouch={start:ne,moved:!1,prev:ne-r.end<=300?r:null},$.touches.length==1&&(t.activeTouch.left=$.touches[0].pageX,t.activeTouch.top=$.touches[0].pageY)}}),we(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),we(t.scroller,"touchend",function($){var ne=t.activeTouch;if(ne&&!Gr(t,$)&&ne.left!=null&&!ne.moved&&new Date-ne.start<300){var Ce=e.coordsChar(t.activeTouch,"page"),Re;!ne.prev||X(ne,ne.prev)?Re=new Dn(Ce,Ce):!ne.prev.prev||X(ne,ne.prev.prev)?Re=e.findWordAt(Ce):Re=new Dn(lt(Ce.line,0),b(e.doc,lt(Ce.line+1,0))),e.setSelection(Re.anchor,Re.head),e.focus(),re($)}d()}),we(t.scroller,"touchcancel",d),we(t.scroller,"scroll",function(){t.scroller.clientHeight&&(na(e,t.scroller.scrollTop),Ei(e,t.scroller.scrollLeft,!0),He(e,"scroll",e))}),we(t.scroller,"mousewheel",function($){return Xo(e,$)}),we(t.scroller,"DOMMouseScroll",function($){return Xo(e,$)}),we(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function($){nt(e,$)||Ee($)},over:function($){nt(e,$)||(Rl(e,$),Ee($))},start:function($){return Dl(e,$)},drop:Zn(e,wl),leave:function($){nt(e,$)||xs(e)}};var Z=t.input.getField();we(Z,"keyup",function($){return Is.call(e,$)}),we(Z,"keydown",Zn(e,Ms)),we(Z,"keypress",Zn(e,_s)),we(Z,"focus",function($){return lo(e,$)}),we(Z,"blur",function($){return Mi(e,$)})}var Oo=[];Un.defineInitHook=function(e){return Oo.push(e)};function Ea(e,t,i,r){var d=e.doc,k;i==null&&(i="add"),i=="smart"&&(d.mode.indent?k=Ot(e,t).state:i="prev");var X=e.options.tabSize,Z=St(d,t),$=q(Z.text,null,X);Z.stateAfter&&(Z.stateAfter=null);var ne=Z.text.match(/^\s*/)[0],Ce;if(!r&&!/\S/.test(Z.text))Ce=0,i="not";else if(i=="smart"&&(Ce=d.mode.indent(k,Z.text.slice(ne.length),Z.text),Ce==Ge||Ce>150)){if(!r)return;i="prev"}i=="prev"?t>d.first?Ce=q(St(d,t-1).text,null,X):Ce=0:i=="add"?Ce=$+e.options.indentUnit:i=="subtract"?Ce=$-e.options.indentUnit:typeof i=="number"&&(Ce=$+i),Ce=Math.max(0,Ce);var Re="",Ye=0;if(e.options.indentWithTabs)for(var ze=Math.floor(Ce/X);ze;--ze)Ye+=X,Re+=" ";if(YeX,$=qe(t),ne=null;if(Z&&r.ranges.length>1)if(Qr&&Qr.text.join(` +`)==t){if(r.ranges.length%Qr.text.length==0){ne=[];for(var Ce=0;Ce=0;Ye--){var ze=r.ranges[Ye],ht=ze.from(),Et=ze.to();ze.empty()&&(i&&i>0?ht=lt(ht.line,ht.ch-i):e.state.overwrite&&!Z?Et=lt(Et.line,Math.min(St(k,Et.line).text.length,Et.ch+te($).length)):Z&&Qr&&Qr.lineWise&&Qr.text.join(` `)==$.join(` -`)&&(ht=Et=lt(ht.line,0)));var Dt={from:ht,to:Et,text:ne?ne[Ye%ne.length]:$,origin:d||(Z?"paste":e.state.cutIncoming>X?"cut":"+input")};Ni(e.doc,Dt),Cn(e,"inputRead",e,Dt)}t&&!Z&&Ws(e,t),Ii(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Re),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function js(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Or(t,function(){return Lo(t,i,0,null,"paste")}),!0}function Ws(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var d=i.ranges[r];if(d.head.ch>100||r&&i.ranges[r-1].head.line==d.head.line)continue;var P=e.getModeAt(d.head),X=!1;if(P.electricChars){for(var Z=0;Z-1){X=Ea(e,d.head.line,"smart");break}}else P.electricInput&&(P.electricInput.test(St(e.doc,d.head.line).text.slice(0,d.head.ch))&&(X=Ea(e,d.head.line,"smart")));X&&Cn(e,"electricInput",e,d.head.line)}}function Hs(e){for(var t=[],i=[],r=0;rP&&(Ea(this,Z.head.line,r,!0),P=Z.head.line,X==this.doc.sel.primIndex&&Ii(this));else{var $=Z.from(),ne=Z.to(),Ce=Math.max(P,$.line);P=Math.min(this.lastLine(),ne.line-(ne.ch?0:1))+1;for(var Re=Ce;Re0&&Co(this.doc,X,new Dn($,Ye[X].to()),Fe)}}}),getTokenAt:function(r,d){return Tn(this,r,d)},getLineTokens:function(r,d){return Tn(this,lt(r),d,!0)},getTokenTypeAt:function(r){r=b(this.doc,r);var d=ot(this,St(this.doc,r.line)),P=0,X=(d.length-1)/2,Z=r.ch,$;if(Z==0)$=d[2];else for(;;){var ne=P+X>>1;if((ne?d[ne*2-1]:0)>=Z)X=ne;else if(d[ne*2+1]$&&(r=$,X=!0),Z=St(this.doc,r)}else Z=r;return Oi(this,Z,{top:0,left:0},d||"page",P||X).top+(X?this.doc.height-Er(Z):0)},defaultTextHeight:function(){return Ut(this.display)},defaultCharWidth:function(){return me(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,d,P,X,Z){var $=this.display;r=Pr(this,b(this.doc,r));var ne=r.bottom,Ce=r.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),$.sizer.appendChild(d),X=="over")ne=r.top;else if(X=="above"||X=="near"){var Re=Math.max($.wrapper.clientHeight,this.doc.height),Ye=Math.max($.sizer.clientWidth,$.lineSpace.clientWidth);(X=="above"||r.bottom+d.offsetHeight>Re)&&r.top>d.offsetHeight?ne=r.top-d.offsetHeight:r.bottom+d.offsetHeight<=Re&&(ne=r.bottom),Ce+d.offsetWidth>Ye&&(Ce=Ye-d.offsetWidth)}d.style.top=ne+"px",d.style.left=d.style.right="",Z=="right"?(Ce=$.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(Z=="left"?Ce=0:Z=="middle"&&(Ce=($.sizer.clientWidth-d.offsetWidth)/2),d.style.left=Ce+"px"),P&&Js(this,{left:Ce,top:ne,right:Ce+d.offsetWidth,bottom:ne+d.offsetHeight})},triggerOnKeyDown:gr(Ms),triggerOnKeyPress:gr(_s),triggerOnKeyUp:Is,triggerOnMouseDown:gr(ks),execCommand:function(r){if(ga.hasOwnProperty(r))return ga[r].call(null,this)},triggerElectric:gr(function(r){Ws(this,r)}),findPosH:function(r,d,P,X){var Z=1;d<0&&(Z=-1,d=-d);for(var $=b(this.doc,r),ne=0;ne0&&Ce(P.charAt(X-1));)--X;for(;Z.5||this.options.lineWrapping)&&mt(this),He(this,"refresh",this)}),swapDoc:gr(function(r){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Zo(this,r),bi(this),this.display.input.reset(),ta(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Cn(this,"swapDoc",this,d),d}),phrase:function(r){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,r)?d[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(r,d,P){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][d]=P},e.registerGlobalHelper=function(r,d,P,X){e.registerHelper(r,d,X),i[r]._global.push({pred:P,val:X})}}function Mo(e,t,i,r,d){var P=t,X=i,Z=St(e,t.line),$=d&&e.direction=="rtl"?-i:i;function ne(){var Wt=t.line+$;return Wt=e.first+e.size?!1:(t=new lt(Wt,t.ch,t.sticky),Z=St(e,Wt))}function Ce(Wt){var Pt;if(r=="codepoint"){var Vt=Z.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(Vt)?Pt=null:Pt=new lt(t.line,Math.max(0,Math.min(Z.text.length,t.ch+i*(Vt>=55296&&Vt<56320?2:1))),-i)}else d?Pt=kl(e.cm,Z,t,i):Pt=Ao(Z,t,i);if(Pt==null)if(!Wt&&ne())t=To(d,e.cm,Z,t.line,$);else return!1;else t=Pt;return!0}if(r=="char"||r=="codepoint")Ce();else if(r=="column")Ce(!0);else if(r=="word"||r=="group")for(var Re=null,Ye=r=="group",ze=e.cm&&e.cm.getHelper(t,"wordChars"),ht=!0;!(i<0&&!Ce(!ht));ht=!1){var Et=Z.text.charAt(t.ch)||` +`)&&(ht=Et=lt(ht.line,0)));var Dt={from:ht,to:Et,text:ne?ne[Ye%ne.length]:$,origin:d||(Z?"paste":e.state.cutIncoming>X?"cut":"+input")};Ni(e.doc,Dt),Cn(e,"inputRead",e,Dt)}t&&!Z&&Ws(e,t),Ii(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Re),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function js(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Or(t,function(){return Lo(t,i,0,null,"paste")}),!0}function Ws(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var d=i.ranges[r];if(d.head.ch>100||r&&i.ranges[r-1].head.line==d.head.line)continue;var k=e.getModeAt(d.head),X=!1;if(k.electricChars){for(var Z=0;Z-1){X=Ea(e,d.head.line,"smart");break}}else k.electricInput&&(k.electricInput.test(St(e.doc,d.head.line).text.slice(0,d.head.ch))&&(X=Ea(e,d.head.line,"smart")));X&&Cn(e,"electricInput",e,d.head.line)}}function Hs(e){for(var t=[],i=[],r=0;rk&&(Ea(this,Z.head.line,r,!0),k=Z.head.line,X==this.doc.sel.primIndex&&Ii(this));else{var $=Z.from(),ne=Z.to(),Ce=Math.max(k,$.line);k=Math.min(this.lastLine(),ne.line-(ne.ch?0:1))+1;for(var Re=Ce;Re0&&Co(this.doc,X,new Dn($,Ye[X].to()),Fe)}}}),getTokenAt:function(r,d){return Tn(this,r,d)},getLineTokens:function(r,d){return Tn(this,lt(r),d,!0)},getTokenTypeAt:function(r){r=b(this.doc,r);var d=ot(this,St(this.doc,r.line)),k=0,X=(d.length-1)/2,Z=r.ch,$;if(Z==0)$=d[2];else for(;;){var ne=k+X>>1;if((ne?d[ne*2-1]:0)>=Z)X=ne;else if(d[ne*2+1]$&&(r=$,X=!0),Z=St(this.doc,r)}else Z=r;return Oi(this,Z,{top:0,left:0},d||"page",k||X).top+(X?this.doc.height-Er(Z):0)},defaultTextHeight:function(){return Ut(this.display)},defaultCharWidth:function(){return me(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,d,k,X,Z){var $=this.display;r=kr(this,b(this.doc,r));var ne=r.bottom,Ce=r.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),$.sizer.appendChild(d),X=="over")ne=r.top;else if(X=="above"||X=="near"){var Re=Math.max($.wrapper.clientHeight,this.doc.height),Ye=Math.max($.sizer.clientWidth,$.lineSpace.clientWidth);(X=="above"||r.bottom+d.offsetHeight>Re)&&r.top>d.offsetHeight?ne=r.top-d.offsetHeight:r.bottom+d.offsetHeight<=Re&&(ne=r.bottom),Ce+d.offsetWidth>Ye&&(Ce=Ye-d.offsetWidth)}d.style.top=ne+"px",d.style.left=d.style.right="",Z=="right"?(Ce=$.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(Z=="left"?Ce=0:Z=="middle"&&(Ce=($.sizer.clientWidth-d.offsetWidth)/2),d.style.left=Ce+"px"),k&&Js(this,{left:Ce,top:ne,right:Ce+d.offsetWidth,bottom:ne+d.offsetHeight})},triggerOnKeyDown:gr(Ms),triggerOnKeyPress:gr(_s),triggerOnKeyUp:Is,triggerOnMouseDown:gr(Ps),execCommand:function(r){if(ga.hasOwnProperty(r))return ga[r].call(null,this)},triggerElectric:gr(function(r){Ws(this,r)}),findPosH:function(r,d,k,X){var Z=1;d<0&&(Z=-1,d=-d);for(var $=b(this.doc,r),ne=0;ne0&&Ce(k.charAt(X-1));)--X;for(;Z.5||this.options.lineWrapping)&&mt(this),He(this,"refresh",this)}),swapDoc:gr(function(r){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Zo(this,r),bi(this),this.display.input.reset(),ta(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Cn(this,"swapDoc",this,d),d}),phrase:function(r){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,r)?d[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(r,d,k){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][d]=k},e.registerGlobalHelper=function(r,d,k,X){e.registerHelper(r,d,X),i[r]._global.push({pred:k,val:X})}}function Mo(e,t,i,r,d){var k=t,X=i,Z=St(e,t.line),$=d&&e.direction=="rtl"?-i:i;function ne(){var Wt=t.line+$;return Wt=e.first+e.size?!1:(t=new lt(Wt,t.ch,t.sticky),Z=St(e,Wt))}function Ce(Wt){var kt;if(r=="codepoint"){var Vt=Z.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(Vt)?kt=null:kt=new lt(t.line,Math.max(0,Math.min(Z.text.length,t.ch+i*(Vt>=55296&&Vt<56320?2:1))),-i)}else d?kt=Pl(e.cm,Z,t,i):kt=Ao(Z,t,i);if(kt==null)if(!Wt&&ne())t=To(d,e.cm,Z,t.line,$);else return!1;else t=kt;return!0}if(r=="char"||r=="codepoint")Ce();else if(r=="column")Ce(!0);else if(r=="word"||r=="group")for(var Re=null,Ye=r=="group",ze=e.cm&&e.cm.getHelper(t,"wordChars"),ht=!0;!(i<0&&!Ce(!ht));ht=!1){var Et=Z.text.charAt(t.ch)||` `,Dt=Me(Et,ze)?"w":Ye&&Et==` -`?"n":!Ye||/\s/.test(Et)?null:"p";if(Ye&&!ht&&!Dt&&(Dt="s"),Re&&Re!=Dt){i<0&&(i=1,Ce(),t.sticky="after");break}if(Dt&&(Re=Dt),i>0&&!Ce(!ht))break}var kt=Qa(e,t,P,X,!0);return Jt(P,kt)&&(kt.hitSide=!0),kt}function Gs(e,t,i,r){var d=e.doc,P=t.left,X;if(r=="page"){var Z=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$=Math.max(Z-.5*Ut(e.display),3);X=(i>0?t.bottom:t.top)+i*$}else r=="line"&&(X=i>0?t.bottom+3:t.top-3);for(var ne;!(ne=$i(e,P,X),!ne.outside);){if(i<0?X<=0:X>=d.height){ne.hitSide=!0;break}X+=i*5}return ne}var On=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};On.prototype.init=function(e){var t=this,i=this,r=i.cm,d=i.div=e.lineDiv;Ks(d,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function P(Z){for(var $=Z.target;$;$=$.parentNode){if($==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($.className))break}return!1}we(d,"paste",function(Z){if(!P(Z)||nt(r,Z)||js(Z,r))return;U<=11&&setTimeout(Zn(r,function(){return t.updateFromDOM()}),20)}),we(d,"compositionstart",function(Z){t.composing={data:Z.data,done:!1}}),we(d,"compositionupdate",function(Z){t.composing||(t.composing={data:Z.data,done:!1})}),we(d,"compositionend",function(Z){t.composing&&(Z.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),we(d,"touchstart",function(){return i.forceCompositionEnd()}),we(d,"input",function(){t.composing||t.readFromDOMSoon()});function X(Z){if(!P(Z)||nt(r,Z))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()}),Z.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var $=Hs(r);eo({lineWise:!0,text:$.text}),Z.type=="cut"&&r.operation(function(){r.setSelections($.ranges,0,Fe),r.replaceSelection("",null,"cut")})}else return;if(Z.clipboardData){Z.clipboardData.clearData();var ne=Qr.text.join(` +`?"n":!Ye||/\s/.test(Et)?null:"p";if(Ye&&!ht&&!Dt&&(Dt="s"),Re&&Re!=Dt){i<0&&(i=1,Ce(),t.sticky="after");break}if(Dt&&(Re=Dt),i>0&&!Ce(!ht))break}var Pt=Qa(e,t,k,X,!0);return Jt(k,Pt)&&(Pt.hitSide=!0),Pt}function Gs(e,t,i,r){var d=e.doc,k=t.left,X;if(r=="page"){var Z=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$=Math.max(Z-.5*Ut(e.display),3);X=(i>0?t.bottom:t.top)+i*$}else r=="line"&&(X=i>0?t.bottom+3:t.top-3);for(var ne;!(ne=$i(e,k,X),!ne.outside);){if(i<0?X<=0:X>=d.height){ne.hitSide=!0;break}X+=i*5}return ne}var On=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};On.prototype.init=function(e){var t=this,i=this,r=i.cm,d=i.div=e.lineDiv;Ks(d,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function k(Z){for(var $=Z.target;$;$=$.parentNode){if($==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($.className))break}return!1}we(d,"paste",function(Z){if(!k(Z)||nt(r,Z)||js(Z,r))return;U<=11&&setTimeout(Zn(r,function(){return t.updateFromDOM()}),20)}),we(d,"compositionstart",function(Z){t.composing={data:Z.data,done:!1}}),we(d,"compositionupdate",function(Z){t.composing||(t.composing={data:Z.data,done:!1})}),we(d,"compositionend",function(Z){t.composing&&(Z.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),we(d,"touchstart",function(){return i.forceCompositionEnd()}),we(d,"input",function(){t.composing||t.readFromDOMSoon()});function X(Z){if(!k(Z)||nt(r,Z))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()}),Z.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var $=Hs(r);eo({lineWise:!0,text:$.text}),Z.type=="cut"&&r.operation(function(){r.setSelections($.ranges,0,Fe),r.replaceSelection("",null,"cut")})}else return;if(Z.clipboardData){Z.clipboardData.clearData();var ne=Qr.text.join(` `);if(Z.clipboardData.setData("Text",ne),Z.clipboardData.getData("Text")==ne){Z.preventDefault();return}}var Ce=zs(),Re=Ce.firstChild;r.display.lineSpace.insertBefore(Ce,r.display.lineSpace.firstChild),Re.value=Qr.text.join(` -`);var Ye=document.activeElement;Y(Re),setTimeout(function(){r.display.lineSpace.removeChild(Ce),Ye.focus(),Ye==d&&i.showPrimarySelection()},50)}we(d,"copy",X),we(d,"cut",X)},On.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},On.prototype.prepareSelection=function(){var e=ui(this.cm,!1);return e.focus=document.activeElement==this.div,e},On.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},On.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},On.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),d=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||d.line=t.display.viewFrom&&Vs(t,r)||{node:Z[0].measure.map[2],offset:0},ne=d.linee.firstLine()&&(r=lt(r.line-1,St(e.doc,r.line-1).length)),d.ch==St(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var P,X,Z;r.line==t.viewFrom||(P=Nt(e,r.line))==0?(X=Mt(t.view[0].line),Z=t.view[0].node):(X=Mt(t.view[P].line),Z=t.view[P-1].node.nextSibling);var $=Nt(e,d.line),ne,Ce;if($==t.view.length-1?(ne=t.viewTo-1,Ce=t.lineDiv.lastChild):(ne=Mt(t.view[$+1].line)-1,Ce=t.view[$+1].node.previousSibling),!Z)return!1;for(var Re=e.doc.splitLines(tu(e,Z,Ce,X,ne)),Ye=ln(e.doc,lt(X,0),lt(ne,St(e.doc,ne).text.length));Re.length>1&&Ye.length>1;)if(te(Re)==te(Ye))Re.pop(),Ye.pop(),ne--;else if(Re[0]==Ye[0])Re.shift(),Ye.shift(),X++;else break;for(var ze=0,ht=0,Et=Re[0],Dt=Ye[0],kt=Math.min(Et.length,Dt.length);zer.ch&&Wt.charCodeAt(Wt.length-ht-1)==Pt.charCodeAt(Pt.length-ht-1);)ze--,ht++;Re[Re.length-1]=Wt.slice(0,Wt.length-ht).replace(/^\u200b+/,""),Re[0]=Re[0].slice(ze).replace(/\u200b+$/,"");var sn=lt(X,ze),an=lt(ne,Ye.length?te(Ye).length-ht:0);if(Re.length>1||Re[0]||Rt(sn,an))return Bi(e.doc,Re,sn,an,"+input"),!0},On.prototype.ensurePolled=function(){this.forceCompositionEnd()},On.prototype.reset=function(){this.forceCompositionEnd()},On.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},On.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},On.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Or(this.cm,function(){return Lt(e.cm)})},On.prototype.setUneditable=function(e){e.contentEditable="false"},On.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Zn(this.cm,Lo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},On.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},On.prototype.onContextMenu=function(){},On.prototype.resetPosition=function(){},On.prototype.needsContentAttribute=!0;function Vs(e,t){var i=Xi(e,t.line);if(!i||i.hidden)return null;var r=St(e.doc,t.line),d=Di(i,r,t.line),P=wt(r,e.doc.direction),X="left";if(P){var Z=pt(P,t.ch);X=Z%2?"right":"left"}var $=Yi(d.map,t.ch,X);return $.offset=$.collapse=="right"?$.end:$.start,$}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Hi(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,r,d){var P="",X=!1,Z=e.doc.lineSeparator(),$=!1;function ne(ze){return function(ht){return ht.id==ze}}function Ce(){X&&(P+=Z,$&&(P+=Z),X=$=!1)}function Re(ze){ze&&(Ce(),P+=ze)}function Ye(ze){if(ze.nodeType==1){var ht=ze.getAttribute("cm-text");if(ht){Re(ht);return}var Et=ze.getAttribute("cm-marker"),Dt;if(Et){var kt=e.findMarks(lt(r,0),lt(d+1,0),ne(+Et));kt.length&&(Dt=kt[0].find(0))&&Re(ln(e.doc,Dt.from,Dt.to).join(Z));return}if(ze.getAttribute("contenteditable")=="false")return;var Wt=/^(pre|div|p|li|table|br)$/i.test(ze.nodeName);if(!/^br$/i.test(ze.nodeName)&&ze.textContent.length==0)return;Wt&&Ce();for(var Pt=0;Pt=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),we(d,"paste",function(X){if(nt(r,X)||js(X,r))return;r.state.pasteIncoming=+new Date,i.fastPoll()});function P(X){if(nt(r,X))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var Z=Hs(r);eo({lineWise:!0,text:Z.text}),X.type=="cut"?r.setSelections(Z.ranges,null,Fe):(i.prevInput="",d.value=Z.text.join(` -`),Y(d))}else return;X.type=="cut"&&(r.state.cutIncoming=+new Date)}we(d,"cut",P),we(d,"copy",P),we(e.scroller,"paste",function(X){if(Gr(e,X)||nt(r,X))return;if(!d.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var Z=new Event("paste");Z.clipboardData=X.clipboardData,d.dispatchEvent(Z)}),we(e.lineSpace,"selectstart",function(X){Gr(e,X)||re(X)}),we(d,"compositionstart",function(){var X=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:X,range:r.markText(X,r.getCursor("to"),{className:"CodeMirror-composing"})}}),we(d,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Kn.prototype.createField=function(e){this.wrapper=zs(),this.textarea=this.wrapper.firstChild},Kn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Kn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=ui(e);if(e.options.moveInputWithCursor){var d=Pr(e,i.sel.primary().head,"div"),P=t.wrapper.getBoundingClientRect(),X=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+X.top-P.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+X.left-P.left))}return r},Kn.prototype.showSelection=function(e){var t=this.cm,i=t.display;s(i.cursorDiv,e.cursors),s(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Kn.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&Y(this.textarea),j&&U>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",j&&U>=9&&(this.hasSelection=null))},Kn.prototype.getField=function(){return this.textarea},Kn.prototype.supportsTouch=function(){return!1},Kn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!n||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},Kn.prototype.blur=function(){this.textarea.blur()},Kn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Kn.prototype.receivedFocus=function(){this.slowPoll()},Kn.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Kn.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Kn.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Xe(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=i.value;if(d==r&&!t.somethingSelected())return!1;if(j&&U>=9&&this.hasSelection===d||o&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var P=d.charCodeAt(0);if(P==8203&&!r&&(r="\u200B"),P==8666)return this.reset(),this.cm.execCommand("undo")}for(var X=0,Z=Math.min(r.length,d.length);X1e3||d.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Kn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Kn.prototype.onKeyPress=function(){j&&U>=9&&(this.hasSelection=null),this.fastPoll()},Kn.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var P=It(i,e),X=r.scroller.scrollTop;if(!P||g)return;var Z=i.options.resetSelectionOnContextMenu;Z&&i.doc.sel.contains(P)==-1&&Zn(i,cr)(i.doc,di(P),Fe);var $=d.style.cssText,ne=t.wrapper.style.cssText,Ce=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var Ye=document.activeElement;Y(Re),setTimeout(function(){r.display.lineSpace.removeChild(Ce),Ye.focus(),Ye==d&&i.showPrimarySelection()},50)}we(d,"copy",X),we(d,"cut",X)},On.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},On.prototype.prepareSelection=function(){var e=ui(this.cm,!1);return e.focus=document.activeElement==this.div,e},On.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},On.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},On.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),d=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||d.line=t.display.viewFrom&&Vs(t,r)||{node:Z[0].measure.map[2],offset:0},ne=d.linee.firstLine()&&(r=lt(r.line-1,St(e.doc,r.line-1).length)),d.ch==St(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var k,X,Z;r.line==t.viewFrom||(k=Nt(e,r.line))==0?(X=Mt(t.view[0].line),Z=t.view[0].node):(X=Mt(t.view[k].line),Z=t.view[k-1].node.nextSibling);var $=Nt(e,d.line),ne,Ce;if($==t.view.length-1?(ne=t.viewTo-1,Ce=t.lineDiv.lastChild):(ne=Mt(t.view[$+1].line)-1,Ce=t.view[$+1].node.previousSibling),!Z)return!1;for(var Re=e.doc.splitLines(tu(e,Z,Ce,X,ne)),Ye=ln(e.doc,lt(X,0),lt(ne,St(e.doc,ne).text.length));Re.length>1&&Ye.length>1;)if(te(Re)==te(Ye))Re.pop(),Ye.pop(),ne--;else if(Re[0]==Ye[0])Re.shift(),Ye.shift(),X++;else break;for(var ze=0,ht=0,Et=Re[0],Dt=Ye[0],Pt=Math.min(Et.length,Dt.length);zer.ch&&Wt.charCodeAt(Wt.length-ht-1)==kt.charCodeAt(kt.length-ht-1);)ze--,ht++;Re[Re.length-1]=Wt.slice(0,Wt.length-ht).replace(/^\u200b+/,""),Re[0]=Re[0].slice(ze).replace(/\u200b+$/,"");var sn=lt(X,ze),an=lt(ne,Ye.length?te(Ye).length-ht:0);if(Re.length>1||Re[0]||Rt(sn,an))return Bi(e.doc,Re,sn,an,"+input"),!0},On.prototype.ensurePolled=function(){this.forceCompositionEnd()},On.prototype.reset=function(){this.forceCompositionEnd()},On.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},On.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},On.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Or(this.cm,function(){return Lt(e.cm)})},On.prototype.setUneditable=function(e){e.contentEditable="false"},On.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Zn(this.cm,Lo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},On.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},On.prototype.onContextMenu=function(){},On.prototype.resetPosition=function(){},On.prototype.needsContentAttribute=!0;function Vs(e,t){var i=Xi(e,t.line);if(!i||i.hidden)return null;var r=St(e.doc,t.line),d=Di(i,r,t.line),k=wt(r,e.doc.direction),X="left";if(k){var Z=pt(k,t.ch);X=Z%2?"right":"left"}var $=Yi(d.map,t.ch,X);return $.offset=$.collapse=="right"?$.end:$.start,$}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Hi(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,r,d){var k="",X=!1,Z=e.doc.lineSeparator(),$=!1;function ne(ze){return function(ht){return ht.id==ze}}function Ce(){X&&(k+=Z,$&&(k+=Z),X=$=!1)}function Re(ze){ze&&(Ce(),k+=ze)}function Ye(ze){if(ze.nodeType==1){var ht=ze.getAttribute("cm-text");if(ht){Re(ht);return}var Et=ze.getAttribute("cm-marker"),Dt;if(Et){var Pt=e.findMarks(lt(r,0),lt(d+1,0),ne(+Et));Pt.length&&(Dt=Pt[0].find(0))&&Re(ln(e.doc,Dt.from,Dt.to).join(Z));return}if(ze.getAttribute("contenteditable")=="false")return;var Wt=/^(pre|div|p|li|table|br)$/i.test(ze.nodeName);if(!/^br$/i.test(ze.nodeName)&&ze.textContent.length==0)return;Wt&&Ce();for(var kt=0;kt=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),we(d,"paste",function(X){if(nt(r,X)||js(X,r))return;r.state.pasteIncoming=+new Date,i.fastPoll()});function k(X){if(nt(r,X))return;if(r.somethingSelected())eo({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var Z=Hs(r);eo({lineWise:!0,text:Z.text}),X.type=="cut"?r.setSelections(Z.ranges,null,Fe):(i.prevInput="",d.value=Z.text.join(` +`),Y(d))}else return;X.type=="cut"&&(r.state.cutIncoming=+new Date)}we(d,"cut",k),we(d,"copy",k),we(e.scroller,"paste",function(X){if(Gr(e,X)||nt(r,X))return;if(!d.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var Z=new Event("paste");Z.clipboardData=X.clipboardData,d.dispatchEvent(Z)}),we(e.lineSpace,"selectstart",function(X){Gr(e,X)||re(X)}),we(d,"compositionstart",function(){var X=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:X,range:r.markText(X,r.getCursor("to"),{className:"CodeMirror-composing"})}}),we(d,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Kn.prototype.createField=function(e){this.wrapper=zs(),this.textarea=this.wrapper.firstChild},Kn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Kn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=ui(e);if(e.options.moveInputWithCursor){var d=kr(e,i.sel.primary().head,"div"),k=t.wrapper.getBoundingClientRect(),X=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+X.top-k.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+X.left-k.left))}return r},Kn.prototype.showSelection=function(e){var t=this.cm,i=t.display;s(i.cursorDiv,e.cursors),s(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Kn.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&Y(this.textarea),j&&U>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",j&&U>=9&&(this.hasSelection=null))},Kn.prototype.getField=function(){return this.textarea},Kn.prototype.supportsTouch=function(){return!1},Kn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!n||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},Kn.prototype.blur=function(){this.textarea.blur()},Kn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Kn.prototype.receivedFocus=function(){this.slowPoll()},Kn.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Kn.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Kn.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Xe(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=i.value;if(d==r&&!t.somethingSelected())return!1;if(j&&U>=9&&this.hasSelection===d||o&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var k=d.charCodeAt(0);if(k==8203&&!r&&(r="\u200B"),k==8666)return this.reset(),this.cm.execCommand("undo")}for(var X=0,Z=Math.min(r.length,d.length);X1e3||d.indexOf(` +`)>-1?i.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Kn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Kn.prototype.onKeyPress=function(){j&&U>=9&&(this.hasSelection=null),this.fastPoll()},Kn.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var k=It(i,e),X=r.scroller.scrollTop;if(!k||g)return;var Z=i.options.resetSelectionOnContextMenu;Z&&i.doc.sel.contains(k)==-1&&Zn(i,cr)(i.doc,di(k),Fe);var $=d.style.cssText,ne=t.wrapper.style.cssText,Ce=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Ce.top-5)+"px; left: "+(e.clientX-Ce.left-5)+`px; z-index: 1000; background: `+(j?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Re;_&&(Re=window.scrollY),r.input.focus(),_&&window.scrollTo(null,Re),r.input.reset(),i.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=ze,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function Ye(){if(d.selectionStart!=null){var Et=i.somethingSelected(),Dt="\u200B"+(Et?d.value:"");d.value="\u21DA",d.value=Dt,t.prevInput=Et?"":"\u200B",d.selectionStart=1,d.selectionEnd=Dt.length,r.selForContextMenu=i.doc.sel}}function ze(){if(t.contextMenuPending!=ze)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=ne,d.style.cssText=$,j&&U<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=X),d.selectionStart!=null){(!j||j&&U<9)&&Ye();var Et=0,Dt=function(){r.selForContextMenu==i.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?Zn(i,ds)(i):Et++<10?r.detectingSelectAll=setTimeout(Dt,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Dt,200)}}if(j&&U>=9&&Ye(),O){Ee(e);var ht=function(){st(window,"mouseup",ht),setTimeout(ze,20)};we(window,"mouseup",ht)}else setTimeout(ze,50)},Kn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Kn.prototype.setUneditable=function(){},Kn.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?F(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=I();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=Z.getValue()}var d;if(e.form&&(we(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var P=e.form;d=P.submit;try{var X=P.submit=function(){r(),P.submit=d,P.submit(),P.submit=X}}catch($){}}t.finishInit=function($){$.save=r,$.getTextArea=function(){return e},$.toTextArea=function(){$.toTextArea=isNaN,r(),e.parentNode.removeChild($.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var Z=Un(function($){return e.parentNode.insertBefore($,e.nextSibling)},t);return Z}function iu(e){e.off=st,e.on=we,e.wheelEventPixels=cl,e.Doc=xr,e.splitLines=qe,e.countColumn=q,e.findColumn=je,e.isWordChar=Se,e.Pass=Ge,e.signal=He,e.Line=ir,e.changeEnd=ci,e.scrollbarModel=jo,e.Pos=lt,e.cmpPos=Rt,e.modes=$e,e.mimeModes=Pe,e.resolveMode=Ne,e.getMode=Ve,e.modeExtensions=tt,e.extendMode=ft,e.copyState=Ct,e.startState=qt,e.innerMode=zt,e.commands=ga,e.keyMap=ti,e.keyName=ws,e.isModifierKey=As,e.lookupKey=Fi,e.normalizeKeyMap=_l,e.StringStream=Qt,e.SharedTextMarker=fa,e.TextMarker=fi,e.LineWidget=ha,e.e_preventDefault=re,e.e_stopPropagation=ie,e.e_stop=Ee,e.addClass=C,e.contains=S,e.rmClass=p,e.keyNames=pi}Yl(Un),$l(Un);var au="iter insert remove copy getEditor constructor".split(" ");for(var no in xr.prototype)xr.prototype.hasOwnProperty(no)&&pe(au,no)<0&&(Un.prototype[no]=function(e){return function(){return e.apply(this.doc,arguments)}}(xr.prototype[no]));return be(xr),Un.inputStyles={textarea:Kn,contenteditable:On},Un.defineMode=function(e){!Un.defaults.mode&&e!="null"&&(Un.defaults.mode=e),it.apply(this,arguments)},Un.defineMIME=at,Un.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Un.defineMIME("text/plain","null"),Un.defineExtension=function(e,t){Un.prototype[e]=t},Un.defineDocExtension=function(e,t){xr.prototype[e]=t},Un.fromTextArea=ru,iu(Un),Un.version="5.58.2",Un})},W6BS:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(et,de,N){"use strict";var ee=N("rePB"),K=N("Ff2n"),k=N("VTBJ"),z=N("1OyB"),B=N("vuIU"),M=N("JX7q"),j=N("Ji7U"),U=N("LK+K"),_=N("q1tI"),R=N("TSYQ"),c=N.n(R),g=N("sboe"),w=N("OZM5"),y=function(O){var A=O.prefixCls,p=O.level,h=O.isStart,s=O.isEnd;if(!p)return null;for(var l="".concat(A,"-indent-unit"),D=[],T=0;T0&&t.prevInput=="\u200B"?Zn(i,ds)(i):Et++<10?r.detectingSelectAll=setTimeout(Dt,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Dt,200)}}if(j&&U>=9&&Ye(),O){Ee(e);var ht=function(){st(window,"mouseup",ht),setTimeout(ze,20)};we(window,"mouseup",ht)}else setTimeout(ze,50)},Kn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Kn.prototype.setUneditable=function(){},Kn.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?F(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=I();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=Z.getValue()}var d;if(e.form&&(we(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var k=e.form;d=k.submit;try{var X=k.submit=function(){r(),k.submit=d,k.submit(),k.submit=X}}catch($){}}t.finishInit=function($){$.save=r,$.getTextArea=function(){return e},$.toTextArea=function(){$.toTextArea=isNaN,r(),e.parentNode.removeChild($.getWrapperElement()),e.style.display="",e.form&&(st(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var Z=Un(function($){return e.parentNode.insertBefore($,e.nextSibling)},t);return Z}function iu(e){e.off=st,e.on=we,e.wheelEventPixels=cl,e.Doc=xr,e.splitLines=qe,e.countColumn=q,e.findColumn=je,e.isWordChar=Se,e.Pass=Ge,e.signal=He,e.Line=ir,e.changeEnd=ci,e.scrollbarModel=jo,e.Pos=lt,e.cmpPos=Rt,e.modes=$e,e.mimeModes=ke,e.resolveMode=Ne,e.getMode=Ve,e.modeExtensions=tt,e.extendMode=ft,e.copyState=Ct,e.startState=qt,e.innerMode=zt,e.commands=ga,e.keyMap=ti,e.keyName=ws,e.isModifierKey=As,e.lookupKey=Fi,e.normalizeKeyMap=_l,e.StringStream=Qt,e.SharedTextMarker=fa,e.TextMarker=fi,e.LineWidget=ha,e.e_preventDefault=re,e.e_stopPropagation=ie,e.e_stop=Ee,e.addClass=C,e.contains=S,e.rmClass=p,e.keyNames=pi}Yl(Un),$l(Un);var au="iter insert remove copy getEditor constructor".split(" ");for(var no in xr.prototype)xr.prototype.hasOwnProperty(no)&&pe(au,no)<0&&(Un.prototype[no]=function(e){return function(){return e.apply(this.doc,arguments)}}(xr.prototype[no]));return be(xr),Un.inputStyles={textarea:Kn,contenteditable:On},Un.defineMode=function(e){!Un.defaults.mode&&e!="null"&&(Un.defaults.mode=e),it.apply(this,arguments)},Un.defineMIME=at,Un.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Un.defineMIME("text/plain","null"),Un.defineExtension=function(e,t){Un.prototype[e]=t},Un.defineDocExtension=function(e,t){xr.prototype[e]=t},Un.fromTextArea=ru,iu(Un),Un.version="5.58.2",Un})},W6BS:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(et,de,N){"use strict";var ee=N("rePB"),K=N("Ff2n"),P=N("VTBJ"),z=N("1OyB"),B=N("vuIU"),M=N("JX7q"),j=N("Ji7U"),U=N("LK+K"),_=N("q1tI"),R=N("TSYQ"),c=N.n(R),g=N("sboe"),w=N("OZM5"),y=function(O){var A=O.prefixCls,p=O.level,h=O.isStart,s=O.isEnd;if(!p)return null;for(var l="".concat(A,"-indent-unit"),D=[],T=0;T1&&arguments[1]!==void 0?arguments[1]:!1,_e=Fe.getAttribute("id")||Fe.getAttribute("data-reactid")||Fe.getAttribute("name");if(Ue&&I[_e])return I[_e];var je=window.getComputedStyle(Fe),xe=je.getPropertyValue("box-sizing")||je.getPropertyValue("-moz-box-sizing")||je.getPropertyValue("-webkit-box-sizing"),he=parseFloat(je.getPropertyValue("padding-bottom"))+parseFloat(je.getPropertyValue("padding-top")),te=parseFloat(je.getPropertyValue("border-bottom-width"))+parseFloat(je.getPropertyValue("border-top-width")),ye=S.map(function(Le){return"".concat(Le,":").concat(je.getPropertyValue(Le))}).join(";"),ue={sizingStyle:ye,paddingSize:he,borderSize:te,boxSizing:xe};return Ue&&_e&&(I[_e]=ue),ue}function Y(Fe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;C||(C=document.createElement("textarea"),C.setAttribute("tab-index","-1"),C.setAttribute("aria-hidden","true"),document.body.appendChild(C)),Fe.getAttribute("wrap")?C.setAttribute("wrap",Fe.getAttribute("wrap")):C.removeAttribute("wrap");var xe=W(Fe,Ue),he=xe.paddingSize,te=xe.borderSize,ye=xe.boxSizing,ue=xe.sizingStyle;C.setAttribute("style","".concat(ue,";").concat(T)),C.value=Fe.value||Fe.placeholder||"";var Le=Number.MIN_SAFE_INTEGER,ae=Number.MAX_SAFE_INTEGER,oe=C.scrollHeight,Se;if(ye==="border-box"?oe+=te:ye==="content-box"&&(oe-=he),_e!==null||je!==null){C.value=" ";var Me=C.scrollHeight-he;_e!==null&&(Le=Me*_e,ye==="border-box"&&(Le=Le+he+te),oe=Math.max(Le,oe)),je!==null&&(ae=Me*je,ye==="border-box"&&(ae=ae+he+te),Se=oe>ae?"":"hidden",oe=Math.min(ae,oe))}return{height:oe,minHeight:Le,maxHeight:ae,overflowY:Se,resize:"none"}}var H=N("Gytx"),F=N.n(H),q;(function(Fe){Fe[Fe.NONE=0]="NONE",Fe[Fe.RESIZING=1]="RESIZING",Fe[Fe.RESIZED=2]="RESIZED"})(q||(q={}));var le=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;return Object(K.a)(this,_e),xe=Ue.call(this,je),xe.nextFrameActionId=void 0,xe.resizeFrameId=void 0,xe.textArea=void 0,xe.saveTextArea=function(he){xe.textArea=he},xe.handleResize=function(he){var te=xe.state.resizeStatus,ye=xe.props,ue=ye.autoSize,Le=ye.onResize;if(te!==q.NONE)return;typeof Le=="function"&&Le(he),ue&&xe.resizeOnNextFrame()},xe.resizeOnNextFrame=function(){cancelAnimationFrame(xe.nextFrameActionId),xe.nextFrameActionId=requestAnimationFrame(xe.resizeTextarea)},xe.resizeTextarea=function(){var he=xe.props.autoSize;if(!he||!xe.textArea)return;var te=he.minRows,ye=he.maxRows,ue=Y(xe.textArea,!1,te,ye);xe.setState({textareaStyles:ue,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(xe.resizeFrameId),xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.RESIZED},function(){xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.NONE}),xe.fixFirefoxAutoScroll()})})})})},xe.renderTextArea=function(){var he=xe.props,te=he.prefixCls,ye=te===void 0?"rc-textarea":te,ue=he.autoSize,Le=he.onResize,ae=he.className,oe=he.disabled,Se=xe.state,Me=Se.textareaStyles,We=Se.resizeStatus,Ke=Object(s.a)(xe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Qe=D()(ye,ae,Object(U.a)({},"".concat(ye,"-disabled"),oe));"value"in Ke&&(Ke.value=Ke.value||"");var Ze=Object(j.a)(Object(j.a)(Object(j.a)({},xe.props.style),Me),We===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return M.createElement(h,{onResize:xe.handleResize,disabled:!(ue||Le)},M.createElement("textarea",Object(ee.a)({},Ke,{className:Qe,style:Ze,ref:xe.saveTextArea})))},xe.state={textareaStyles:{},resizeStatus:q.NONE},xe}return Object(k.a)(_e,[{key:"componentDidUpdate",value:function(xe){(xe.value!==this.props.value||!F()(xe.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var xe=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(xe,he)}}catch(te){}}},{key:"render",value:function(){return this.renderTextArea()}}]),_e}(M.Component),pe=le,Ae=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;Object(K.a)(this,_e),xe=Ue.call(this,je),xe.resizableTextArea=void 0,xe.focus=function(){xe.resizableTextArea.textArea.focus()},xe.saveTextArea=function(te){xe.resizableTextArea=te},xe.handleChange=function(te){var ye=xe.props.onChange;xe.setValue(te.target.value,function(){xe.resizableTextArea.resizeTextarea()}),ye&&ye(te)},xe.handleKeyDown=function(te){var ye=xe.props,ue=ye.onPressEnter,Le=ye.onKeyDown;te.keyCode===13&&ue&&ue(te),Le&&Le(te)};var he=typeof je.value=="undefined"||je.value===null?je.defaultValue:je.value;return xe.state={value:he},xe}return Object(k.a)(_e,[{key:"setValue",value:function(xe,he){"value"in this.props||this.setState({value:xe},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return M.createElement(pe,Object(ee.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(xe){return"value"in xe?{value:xe.value}:null}}]),_e}(M.Component),Ge=de.default=Ae},ZW9T:function(et,de,N){"use strict";N.d(de,"a",function(){return h});var ee=N("k1fw"),K=N("oBTY"),k=N("9og8"),z=N("miYZ"),B=N("tsqr"),M=N("rAM+"),j=N("tJVT"),U=N("PpiC"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bdgK");function y(s,l,D,T,S){var I=l.getWordUntilPosition(D),C={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:I.startColumn,endColumn:I.endColumn},W=T.map(function(Y){return{label:Y,kind:s.languages.CompletionItemKind.Keyword,insertText:Y,insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:C}});return S.map(function(Y){W.push(Object(ee.a)(Object(ee.a)({},Y),{},{range:C}))}),W}var f=function(s){var l={label:"ifelse",kind:s.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`,S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],I={},C;function W(Fe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=Fe.getAttribute("id")||Fe.getAttribute("data-reactid")||Fe.getAttribute("name");if(Ue&&I[_e])return I[_e];var je=window.getComputedStyle(Fe),xe=je.getPropertyValue("box-sizing")||je.getPropertyValue("-moz-box-sizing")||je.getPropertyValue("-webkit-box-sizing"),he=parseFloat(je.getPropertyValue("padding-bottom"))+parseFloat(je.getPropertyValue("padding-top")),te=parseFloat(je.getPropertyValue("border-bottom-width"))+parseFloat(je.getPropertyValue("border-top-width")),ye=S.map(function(Le){return"".concat(Le,":").concat(je.getPropertyValue(Le))}).join(";"),ue={sizingStyle:ye,paddingSize:he,borderSize:te,boxSizing:xe};return Ue&&_e&&(I[_e]=ue),ue}function Y(Fe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;C||(C=document.createElement("textarea"),C.setAttribute("tab-index","-1"),C.setAttribute("aria-hidden","true"),document.body.appendChild(C)),Fe.getAttribute("wrap")?C.setAttribute("wrap",Fe.getAttribute("wrap")):C.removeAttribute("wrap");var xe=W(Fe,Ue),he=xe.paddingSize,te=xe.borderSize,ye=xe.boxSizing,ue=xe.sizingStyle;C.setAttribute("style","".concat(ue,";").concat(T)),C.value=Fe.value||Fe.placeholder||"";var Le=Number.MIN_SAFE_INTEGER,ae=Number.MAX_SAFE_INTEGER,oe=C.scrollHeight,Se;if(ye==="border-box"?oe+=te:ye==="content-box"&&(oe-=he),_e!==null||je!==null){C.value=" ";var Me=C.scrollHeight-he;_e!==null&&(Le=Me*_e,ye==="border-box"&&(Le=Le+he+te),oe=Math.max(Le,oe)),je!==null&&(ae=Me*je,ye==="border-box"&&(ae=ae+he+te),Se=oe>ae?"":"hidden",oe=Math.min(ae,oe))}return{height:oe,minHeight:Le,maxHeight:ae,overflowY:Se,resize:"none"}}var H=N("Gytx"),F=N.n(H),q;(function(Fe){Fe[Fe.NONE=0]="NONE",Fe[Fe.RESIZING=1]="RESIZING",Fe[Fe.RESIZED=2]="RESIZED"})(q||(q={}));var le=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;return Object(K.a)(this,_e),xe=Ue.call(this,je),xe.nextFrameActionId=void 0,xe.resizeFrameId=void 0,xe.textArea=void 0,xe.saveTextArea=function(he){xe.textArea=he},xe.handleResize=function(he){var te=xe.state.resizeStatus,ye=xe.props,ue=ye.autoSize,Le=ye.onResize;if(te!==q.NONE)return;typeof Le=="function"&&Le(he),ue&&xe.resizeOnNextFrame()},xe.resizeOnNextFrame=function(){cancelAnimationFrame(xe.nextFrameActionId),xe.nextFrameActionId=requestAnimationFrame(xe.resizeTextarea)},xe.resizeTextarea=function(){var he=xe.props.autoSize;if(!he||!xe.textArea)return;var te=he.minRows,ye=he.maxRows,ue=Y(xe.textArea,!1,te,ye);xe.setState({textareaStyles:ue,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(xe.resizeFrameId),xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.RESIZED},function(){xe.resizeFrameId=requestAnimationFrame(function(){xe.setState({resizeStatus:q.NONE}),xe.fixFirefoxAutoScroll()})})})})},xe.renderTextArea=function(){var he=xe.props,te=he.prefixCls,ye=te===void 0?"rc-textarea":te,ue=he.autoSize,Le=he.onResize,ae=he.className,oe=he.disabled,Se=xe.state,Me=Se.textareaStyles,We=Se.resizeStatus,Ke=Object(s.a)(xe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Qe=D()(ye,ae,Object(U.a)({},"".concat(ye,"-disabled"),oe));"value"in Ke&&(Ke.value=Ke.value||"");var Ze=Object(j.a)(Object(j.a)(Object(j.a)({},xe.props.style),Me),We===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return M.createElement(h,{onResize:xe.handleResize,disabled:!(ue||Le)},M.createElement("textarea",Object(ee.a)({},Ke,{className:Qe,style:Ze,ref:xe.saveTextArea})))},xe.state={textareaStyles:{},resizeStatus:q.NONE},xe}return Object(P.a)(_e,[{key:"componentDidUpdate",value:function(xe){(xe.value!==this.props.value||!F()(xe.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var xe=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(xe,he)}}catch(te){}}},{key:"render",value:function(){return this.renderTextArea()}}]),_e}(M.Component),pe=le,Ae=function(Fe){Object(z.a)(_e,Fe);var Ue=Object(B.a)(_e);function _e(je){var xe;Object(K.a)(this,_e),xe=Ue.call(this,je),xe.resizableTextArea=void 0,xe.focus=function(){xe.resizableTextArea.textArea.focus()},xe.saveTextArea=function(te){xe.resizableTextArea=te},xe.handleChange=function(te){var ye=xe.props.onChange;xe.setValue(te.target.value,function(){xe.resizableTextArea.resizeTextarea()}),ye&&ye(te)},xe.handleKeyDown=function(te){var ye=xe.props,ue=ye.onPressEnter,Le=ye.onKeyDown;te.keyCode===13&&ue&&ue(te),Le&&Le(te)};var he=typeof je.value=="undefined"||je.value===null?je.defaultValue:je.value;return xe.state={value:he},xe}return Object(P.a)(_e,[{key:"setValue",value:function(xe,he){"value"in this.props||this.setState({value:xe},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return M.createElement(pe,Object(ee.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(xe){return"value"in xe?{value:xe.value}:null}}]),_e}(M.Component),Ge=de.default=Ae},ZW9T:function(et,de,N){"use strict";N.d(de,"a",function(){return h});var ee=N("k1fw"),K=N("oBTY"),P=N("9og8"),z=N("miYZ"),B=N("tsqr"),M=N("rAM+"),j=N("tJVT"),U=N("PpiC"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bdgK");function y(s,l,D,T,S){var I=l.getWordUntilPosition(D),C={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:I.startColumn,endColumn:I.endColumn},W=T.map(function(Y){return{label:Y,kind:s.languages.CompletionItemKind.Keyword,insertText:Y,insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:C}});return S.map(function(Y){W.push(Object(ee.a)(Object(ee.a)({},Y),{},{range:C}))}),W}var f=function(s){var l={label:"ifelse",kind:s.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet},D=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];s.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(C,W){var Y=y(s,C,W,D,[l]);return{suggestions:Y}}});var T=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];s.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(C,W){var Y=[{label:"print",kind:s.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet}],H=y(s,C,W,T,Y);return{suggestions:H}}});var S=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];s.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(C,W){var Y=[l,{label:"main",kind:s.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:s.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:s.languages.CompletionItemInsertTextRule.InsertAsSnippet}],H=y(s,C,W,S,Y);return{suggestions:H}}})},m="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",a=N("fjLI"),n=N("LvDl"),o=N("+ua5");function u(s){return/^\d+$/.test(s)?"".concat(s,"px"):s}function x(){}var E=!1,v={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function O(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=s;if(Array.isArray(s)){for(var D=0;D0||zt.target.offsetWidth>0)&&Je.current.instance.layout()}}catch(qt){ft.e(qt)}finally{ft.f()}}),Ve.observe(we.current)),Ve}function Be(){B.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var Ie=function(){var tt=Je.current.instance;if(I!=null&&tt&&ie){var ft=tt.getModel();ft&&I!==ft.getValue()&&(E=!0,ft.setValue(I),tt.layout(),E=!1)}};Object(c.useEffect)(function(){try{var Ve,tt=Je.current.instance;He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Ie()},500),tt==null||((Ve=tt.updateOptions)===null||Ve===void 0)||Ve.call(tt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(I.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ft){debugger}},[I,ie,Je.current]),Object(c.useEffect)(function(){try{if(yt&&Je.current&&Je.current.instance){var Ve=Je.current.instance;Ve.changeViewZones(function(ft){var Ct=document.createElement("div");Ct.style.padding="10px 20px",Ct.style.width="calc(100% - 20px)",Ct.className="my-error-line-wrp",Ct.innerHTML=dt,ft.addZone({afterLineNumber:yt||11,heightInLines:3,domNode:Ct})});var tt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ve.addOverlayWidget(tt),Ve.revealPositionInCenter({lineNumber:20,column:1})}}catch(ft){debugger}},[yt,Je.current,ie]),Object(c.useEffect)(function(){var Ve;if((Ve=Je.current)!==null&&Ve!==void 0&&Ve.instance&&ie&&wt){var tt=Je.current.instance,ft=tt.getModel();if(!ft)return;var Ct=function(){var Rt=[],Jt=[],nn=ft.getAllDecorations(),un=Object(M.a)(nn),cn;try{for(un.s();!(cn=un.n()).done;){var G=cn.value;if(G.options.className==="highlighted-line"){var b;Rt.push(G==null||((b=G.range)===null||b===void 0)?void 0:b.startLineNumber),Jt.push(G==null?void 0:G.id)}}}catch(V){un.e(V)}finally{un.f()}ft.deltaDecorations(Jt,[]);var L=ft.getLineCount();!!pt&&pt<=L&&(tt.deltaDecorations([],[{range:new A.Range(pt,1,pt,ft.getLineMaxColumn(pt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),tt.revealLineInCenter(pt))};Ct();var zt=function(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Jt=[],nn=[],un=ft.getAllDecorations(),cn=Object(M.a)(un),G;try{for(cn.s();!(G=cn.n()).done;){var b=G.value;if(b.options.linesDecorationsClassName==="breakpoints"){var L;Jt.push(b==null||((L=b.range)===null||L===void 0)?void 0:L.startLineNumber),nn.push(b==null?void 0:b.id)}}}catch(V){cn.e(V)}finally{cn.f()}if(Rt)return{lines:Jt,ids:nn};Me(Jt)},qt=function(){var lt=Object(k.a)(R.a.mark(function Rt(Jt){var nn;return R.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return nn={range:new A.Range(Jt,1,Jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},cn.next=3,ft.deltaDecorations([],[nn]);case 3:zt();case 4:case"end":return cn.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),Qt=function(){var lt=Object(k.a)(R.a.mark(function Rt(Jt){var nn,un,cn,G,b;return R.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:nn=[],un=tt.getLineDecorations(Jt),cn=Object(M.a)(un);try{for(cn.s();!(G=cn.n()).done;)b=G.value,b.options.linesDecorationsClassName==="breakpoints"&&nn.push(b.id)}catch(J){cn.e(J)}finally{cn.f()}return V.next=6,ft.deltaDecorations(nn,[]);case 6:zt();case 7:case"end":return V.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),St=function(Rt){var Jt=tt.getLineDecorations(Rt),nn=Object(M.a)(Jt),un;try{for(nn.s();!(un=nn.n()).done;){var cn=un.value;if(cn.options.linesDecorationsClassName==="breakpoints")return!0}}catch(G){nn.e(G)}finally{nn.f()}return!1};if(!Object(n.isEqual)(Ke,zt(!0).lines)){ft.deltaDecorations(zt(!0).ids,[]);var ln=Ke.map(function(lt){return{range:new A.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ft.deltaDecorations([],ln)}var Bt=tt.onDidChangeModelContent(function(lt){var Rt=tt.getPosition();if(Rt){var Jt=Rt.lineNumber;ft.getLineContent(Jt).trim()===""?Qt(Jt):St(Jt)&&(Qt(Jt),qt(Jt))}}),Yt=tt.onMouseDown(function(lt){var Rt,Jt,nn;if(lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;St(un)?Qt(un):qt(un)}}),Mt=function(Rt){var Jt={range:new A.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};nt.current=tt.deltaDecorations(nt.current,[Jt])},tn=function(){nt.current=tt.deltaDecorations(nt.current,[])},mn=tt.onMouseMove(function(lt){var Rt,Jt,nn;if(tn(),lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;Mt(un)}}),An=tt.onMouseLeave(function(){tn()});return function(){Bt.dispose(),Yt.dispose(),mn.dispose(),An.dispose()}}},[Je.current,ie,Ke,pt,wt]);function ut(){var Ve=Je.current.instance;if(Ve){var tt=Ve.getSelection(),ft=Je.current.pastePos||{},Ct=new A.Range(ft.startLineNumber||tt.endLineNumber,ft.startColumn||tt.endColumn,ft.endLineNumber||tt.endLineNumber,ft.endColumn||tt.endColumn);setTimeout(function(){Ve.executeEdits("",[{range:Ct,text:""}])},300)}}function bt(Ve){(window.navigator.platform.match("Mac")?Ve.metaKey:Ve.ctrlKey)&&Ve.keyCode==83&&(Ve.preventDefault(),Ue())}var Tt=function(){if(je&&Je.current.instance){var tt=Je.current.instance.getContentHeight();at(tt0||ue.target.offsetWidth>0)&&je.layout()}}catch(Le){te.e(Le)}finally{te.f()}}),xe.observe(F.current)),xe}Object(c.useEffect)(function(){return F.current&&N.e(27).then(N.t.bind(null,"M/lh",7)).then(function(je){A=je;var xe=A.editor.createDiffEditor(F.current,Object(ee.a)(Object(ee.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},H),{},{wordWrap:!0}));Ae(xe);var he=Ge(xe);return function(){xe.dispose();var te=xe.getModel();te&&te.dispose(),he.unobserve(F.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(c.useEffect)(function(){pe&&pe.setModel({original:A.editor.createModel(I,W),modified:A.editor.createModel(C,W)})},[I,C,W,pe]);var Fe=u(D),Ue=u(S),_e={width:Fe,height:Ue};return g.a.createElement("div",{className:"my-diff-editor",ref:F,style:_e})}},ZpRC:function(et,de,N){"use strict";function ee(c){return typeof c=="object"&&c!=null&&c.nodeType===1}function K(c,g){return(!g||c!=="hidden")&&c!=="visible"&&c!=="clip"}function k(c,g){if(c.clientHeightg||m>c&&a=g&&n>=w?m-c-y:a>g&&nw?a-g+f:0}var B=function(c,g){var w=window,y=g.scrollMode,f=g.block,m=g.inline,a=g.boundary,n=g.skipOverflowHiddenElements,o=typeof a=="function"?a:function(Me){return Me!==a};if(!ee(c))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,x=[],E=c;ee(E)&&o(E);){if((E=E.parentElement)===u){x.push(E);break}E!=null&&E===document.body&&k(E)&&!k(document.documentElement)||E!=null&&k(E,n)&&x.push(E)}for(var v=w.visualViewport?w.visualViewport.width:innerWidth,O=w.visualViewport?w.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,h=c.getBoundingClientRect(),s=h.height,l=h.width,D=h.top,T=h.right,S=h.bottom,I=h.left,C=f==="start"||f==="nearest"?D:f==="end"?S:D+s/2,W=m==="center"?I+l/2:m==="end"?T:I,Y=[],H=0;H=0&&I>=0&&S<=O&&T<=v&&D>=Ae&&S<=Fe&&I>=Ue&&T<=Ge)return Y;var _e=getComputedStyle(F),je=parseInt(_e.borderLeftWidth,10),xe=parseInt(_e.borderTopWidth,10),he=parseInt(_e.borderRightWidth,10),te=parseInt(_e.borderBottomWidth,10),ye=0,ue=0,Le="offsetWidth"in F?F.offsetWidth-F.clientWidth-je-he:0,ae="offsetHeight"in F?F.offsetHeight-F.clientHeight-xe-te:0;if(u===F)ye=f==="start"?C:f==="end"?C-O:f==="nearest"?z(p,p+O,O,xe,te,p+C,p+C+s,s):C-O/2,ue=m==="start"?W:m==="center"?W-v/2:m==="end"?W-v:z(A,A+v,v,je,he,A+W,A+W+l,l),ye=Math.max(0,ye+p),ue=Math.max(0,ue+A);else{ye=f==="start"?C-Ae-xe:f==="end"?C-Fe+te+ae:f==="nearest"?z(Ae,Fe,le,xe,te+ae,C,C+s,s):C-(Ae+le/2)+ae/2,ue=m==="start"?W-Ue-je:m==="center"?W-(Ue+pe/2)+Le/2:m==="end"?W-Ge+he+Le:z(Ue,Ge,pe,je,he+Le,W,W+l,l);var oe=F.scrollLeft,Se=F.scrollTop;C+=Se-(ye=Math.max(0,Math.min(Se+ye,F.scrollHeight-le+ae))),W+=oe-(ue=Math.max(0,Math.min(oe+ue,F.scrollWidth-pe+Le)))}Y.push({el:F,top:ye,left:ue})}return Y};function M(c){return c===Object(c)&&Object.keys(c).length!==0}function j(c,g){g===void 0&&(g="auto");var w="scrollBehavior"in document.body.style;c.forEach(function(y){var f=y.el,m=y.top,a=y.left;f.scroll&&w?f.scroll({top:m,left:a,behavior:g}):(f.scrollTop=m,f.scrollLeft=a)})}function U(c){return c===!1?{block:"end",inline:"nearest"}:M(c)?c:{block:"start",inline:"nearest"}}function _(c,g){var w=!c.ownerDocument.documentElement.contains(c);if(M(g)&&typeof g.behavior=="function")return g.behavior(w?[]:B(c,g));if(w)return;var y=U(g);return j(B(c,y),y.behavior)}var R=de.a=_},Zss7:function(et,de,N){var ee;(function(K){var k=/^\s+/,z=/\s+$/,B=0,M=K.round,j=K.min,U=K.max,_=K.random;function R(te,ye){if(te=te||"",ye=ye||{},te instanceof R)return te;if(!(this instanceof R))return new R(te,ye);var ue=c(te);this._originalInput=te,this._r=ue.r,this._g=ue.g,this._b=ue.b,this._a=ue.a,this._roundA=M(100*this._a)/100,this._format=ye.format||ue.format,this._gradientType=ye.gradientType,this._r<1&&(this._r=M(this._r)),this._g<1&&(this._g=M(this._g)),this._b<1&&(this._b=M(this._b)),this._ok=ue.ok,this._tc_id=B++}R.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 te=this.toRgb();return(te.r*299+te.g*587+te.b*114)/1e3},getLuminance:function(){var te=this.toRgb(),ye,ue,Le,ae,oe,Se;return ye=te.r/255,ue=te.g/255,Le=te.b/255,ye<=.03928?ae=ye/12.92:ae=K.pow((ye+.055)/1.055,2.4),ue<=.03928?oe=ue/12.92:oe=K.pow((ue+.055)/1.055,2.4),Le<=.03928?Se=Le/12.92:Se=K.pow((Le+.055)/1.055,2.4),.2126*ae+.7152*oe+.0722*Se},setAlpha:function(te){return this._a=Y(te),this._roundA=M(100*this._a)/100,this},toHsv:function(){var te=f(this._r,this._g,this._b);return{h:te.h*360,s:te.s,v:te.v,a:this._a}},toHsvString:function(){var te=f(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.v*100);return this._a==1?"hsv("+ye+", "+ue+"%, "+Le+"%)":"hsva("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHsl:function(){var te=w(this._r,this._g,this._b);return{h:te.h*360,s:te.s,l:te.l,a:this._a}},toHslString:function(){var te=w(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.l*100);return this._a==1?"hsl("+ye+", "+ue+"%, "+Le+"%)":"hsla("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHex:function(te){return a(this._r,this._g,this._b,te)},toHexString:function(te){return"#"+this.toHex(te)},toHex8:function(te){return n(this._r,this._g,this._b,this._a,te)},toHex8String:function(te){return"#"+this.toHex8(te)},toRgb:function(){return{r:M(this._r),g:M(this._g),b:M(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+M(this._r)+", "+M(this._g)+", "+M(this._b)+")":"rgba("+M(this._r)+", "+M(this._g)+", "+M(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:M(H(this._r,255)*100)+"%",g:M(H(this._g,255)*100)+"%",b:M(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%)":"rgba("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:C[a(this._r,this._g,this._b,!0)]||!1},toFilter:function(te){var ye="#"+o(this._r,this._g,this._b,this._a),ue=ye,Le=this._gradientType?"GradientType = 1, ":"";if(te){var ae=R(te);ue="#"+o(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+Le+"startColorstr="+ye+",endColorstr="+ue+")"},toString:function(te){var ye=!!te;te=te||this._format;var ue=!1,Le=this._a<1&&this._a>=0,ae=!ye&&Le&&(te==="hex"||te==="hex6"||te==="hex3"||te==="hex4"||te==="hex8"||te==="name");return ae?te==="name"&&this._a===0?this.toName():this.toRgbString():(te==="rgb"&&(ue=this.toRgbString()),te==="prgb"&&(ue=this.toPercentageRgbString()),(te==="hex"||te==="hex6")&&(ue=this.toHexString()),te==="hex3"&&(ue=this.toHexString(!0)),te==="hex4"&&(ue=this.toHex8String(!0)),te==="hex8"&&(ue=this.toHex8String()),te==="name"&&(ue=this.toName()),te==="hsl"&&(ue=this.toHslString()),te==="hsv"&&(ue=this.toHsvString()),ue||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(te,ye){var ue=te.apply(null,[this].concat([].slice.call(ye)));return this._r=ue._r,this._g=ue._g,this._b=ue._b,this.setAlpha(ue._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(te,ye){return te.apply(null,[this].concat([].slice.call(ye)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(l,arguments)}},R.fromRatio=function(te,ye){if(typeof te=="object"){var ue={};for(var Le in te)te.hasOwnProperty(Le)&&(Le==="a"?ue[Le]=te[Le]:ue[Le]=Ge(te[Le]));te=ue}return R(te,ye)};function c(te){var ye={r:0,g:0,b:0},ue=1,Le=null,ae=null,oe=null,Se=!1,Me=!1;return typeof te=="string"&&(te=xe(te)),typeof te=="object"&&(je(te.r)&&je(te.g)&&je(te.b)?(ye=g(te.r,te.g,te.b),Se=!0,Me=String(te.r).substr(-1)==="%"?"prgb":"rgb"):je(te.h)&&je(te.s)&&je(te.v)?(Le=Ge(te.s),ae=Ge(te.v),ye=m(te.h,Le,ae),Se=!0,Me="hsv"):je(te.h)&&je(te.s)&&je(te.l)&&(Le=Ge(te.s),oe=Ge(te.l),ye=y(te.h,Le,oe),Se=!0,Me="hsl"),te.hasOwnProperty("a")&&(ue=te.a)),ue=Y(ue),{ok:Se,format:te.format||Me,r:j(255,U(ye.r,0)),g:j(255,U(ye.g,0)),b:j(255,U(ye.b,0)),a:ue}}function g(te,ye,ue){return{r:H(te,255)*255,g:H(ye,255)*255,b:H(ue,255)*255}}function w(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=(Le+ae)/2;if(Le==ae)oe=Se=0;else{var We=Le-ae;Se=Me>.5?We/(2-Le-ae):We/(Le+ae);switch(Le){case te:oe=(ye-ue)/We+(ye1&&(Ze-=1),Ze<1/6?Ke+(Qe-Ke)*6*Ze:Ze<1/2?Qe:Ze<2/3?Ke+(Qe-Ke)*(2/3-Ze)*6:Ke}if(ye===0)Le=ae=oe=ue;else{var Me=ue<.5?ue*(1+ye):ue+ye-ue*ye,We=2*ue-Me;Le=Se(We,Me,te+1/3),ae=Se(We,Me,te),oe=Se(We,Me,te-1/3)}return{r:Le*255,g:ae*255,b:oe*255}}function f(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=Le,We=Le-ae;if(Se=Le===0?0:We/Le,Le==ae)oe=0;else{switch(Le){case te:oe=(ye-ue)/We+(ye>1)+720)%360;--ye;)Le.h=(Le.h+ae)%360,oe.push(R(Le));return oe}function S(te,ye){ye=ye||6;for(var ue=R(te).toHsv(),Le=ue.h,ae=ue.s,oe=ue.v,Se=[],Me=1/ye;ye--;)Se.push(R({h:Le,s:ae,v:oe})),oe=(oe+Me)%1;return Se}R.mix=function(te,ye,ue){ue=ue===0?0:ue||50;var Le=R(te).toRgb(),ae=R(ye).toRgb(),oe=ue/100,Se={r:(ae.r-Le.r)*oe+Le.r,g:(ae.g-Le.g)*oe+Le.g,b:(ae.b-Le.b)*oe+Le.b,a:(ae.a-Le.a)*oe+Le.a};return R(Se)},R.readability=function(te,ye){var ue=R(te),Le=R(ye);return(K.max(ue.getLuminance(),Le.getLuminance())+.05)/(K.min(ue.getLuminance(),Le.getLuminance())+.05)},R.isReadable=function(te,ye,ue){var Le=R.readability(te,ye),ae,oe;oe=!1,ae=he(ue);switch(ae.level+ae.size){case"AAsmall":case"AAAlarge":oe=Le>=4.5;break;case"AAlarge":oe=Le>=3;break;case"AAAsmall":oe=Le>=7;break}return oe},R.mostReadable=function(te,ye,ue){var Le=null,ae=0,oe,Se,Me,We;ue=ue||{},Se=ue.includeFallbackColors,Me=ue.level,We=ue.size;for(var Ke=0;Keae&&(ae=oe,Le=R(ye[Ke]));return R.isReadable(te,Le,{level:Me,size:We})||!Se?Le:(ue.includeFallbackColors=!1,R.mostReadable(te,["#fff","#000"],ue))};var I=R.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"},C=R.hexNames=W(I);function W(te){var ye={};for(var ue in te)te.hasOwnProperty(ue)&&(ye[te[ue]]=ue);return ye}function Y(te){return te=parseFloat(te),(isNaN(te)||te<0||te>1)&&(te=1),te}function H(te,ye){le(te)&&(te="100%");var ue=pe(te);return te=j(ye,U(0,parseFloat(te))),ue&&(te=parseInt(te*ye,10)/100),K.abs(te-ye)<1e-6?1:te%ye/parseFloat(ye)}function F(te){return j(1,U(0,te))}function q(te){return parseInt(te,16)}function le(te){return typeof te=="string"&&te.indexOf(".")!=-1&&parseFloat(te)===1}function pe(te){return typeof te=="string"&&te.indexOf("%")!=-1}function Ae(te){return te.length==1?"0"+te:""+te}function Ge(te){return te<=1&&(te=te*100+"%"),te}function Fe(te){return K.round(parseFloat(te)*255).toString(16)}function Ue(te){return q(te)/255}var _e=function(){var te="[-\\+]?\\d+%?",ye="[-\\+]?\\d*\\.\\d+%?",ue="(?:"+ye+")|(?:"+te+")",Le="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?",ae="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?";return{CSS_UNIT:new RegExp(ue),rgb:new RegExp("rgb"+Le),rgba:new RegExp("rgba"+ae),hsl:new RegExp("hsl"+Le),hsla:new RegExp("hsla"+ae),hsv:new RegExp("hsv"+Le),hsva:new RegExp("hsva"+ae),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 je(te){return!!_e.CSS_UNIT.exec(te)}function xe(te){te=te.replace(k,"").replace(z,"").toLowerCase();var ye=!1;if(I[te])te=I[te],ye=!0;else if(te=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ue;return(ue=_e.rgb.exec(te))?{r:ue[1],g:ue[2],b:ue[3]}:(ue=_e.rgba.exec(te))?{r:ue[1],g:ue[2],b:ue[3],a:ue[4]}:(ue=_e.hsl.exec(te))?{h:ue[1],s:ue[2],l:ue[3]}:(ue=_e.hsla.exec(te))?{h:ue[1],s:ue[2],l:ue[3],a:ue[4]}:(ue=_e.hsv.exec(te))?{h:ue[1],s:ue[2],v:ue[3]}:(ue=_e.hsva.exec(te))?{h:ue[1],s:ue[2],v:ue[3],a:ue[4]}:(ue=_e.hex8.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),a:Ue(ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex6.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),format:ye?"name":"hex"}:(ue=_e.hex4.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),a:Ue(ue[4]+""+ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex3.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),format:ye?"name":"hex"}:!1}function he(te){var ye,ue;return te=te||{level:"AA",size:"small"},ye=(te.level||"AA").toUpperCase(),ue=(te.size||"small").toLowerCase(),ye!=="AA"&&ye!=="AAA"&&(ye="AA"),ue!=="small"&&ue!=="large"&&(ue="small"),{level:ye,size:ue}}et.exports?et.exports=R:!(ee=function(){return R}.call(de,N,de,et),ee!==void 0&&(et.exports=ee))})(Math)},bPs0:function(et,de,N){"use strict";N.d(de,"b",function(){return u});var ee=N("k1fw"),K=N("9og8"),k=N("2qtc"),z=N("kLXV"),B=N("tJVT"),M=N("PpiC"),j=N("aHsQ"),U=N("sGsY"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bntm"),y=N("V0Rq"),f=N("wd/R"),m=N.n(f),a=N("Ty5D"),n=N("9kvl"),o=U.a.Countdown,u=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],x=function(v){var O=v.globalSetting,A=v.loading,p=v.user,h=v.exercise,s=v.dispatch,l=Object(M.a)(v,["globalSetting","loading","user","exercise","dispatch"]),D=Object(c.useState)({}),T=Object(B.a)(D,2),S=T[0],I=T[1],C=z.a.useModal(),W=Object(B.a)(C,2),Y=W[0],H=W[1],F=Object(c.useRef)(),q=Object(c.useRef)(null),le=Object(c.useRef)(null),pe=Object(c.useState)(!0),Ae=Object(B.a)(pe,2),Ge=Ae[0],Fe=Ae[1],Ue=Object(a.h)().query,_e=Object(a.i)();Object(c.useEffect)(function(){var Me,We,Ke,Qe,Ze;if(clearTimeout(q.current),document.addEventListener(Object(w.c)(),Se,!1),window.addEventListener("blur",ae,!1),(Me=h.exerciseUserInfo)!==null&&Me!==void 0&&Me.screen_open&&Object(w.a)()&&(s({type:"globalSetting/headerFooterToggle",payload:!1}),Fe(!1)),(We=h.exerciseUserInfo)!==null&&We!==void 0&&We.screen_at&&m()().diff(m()((Ke=h.exerciseUserInfo)===null||Ke===void 0?void 0:Ke.screen_at),"seconds")>0)je();else if((Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_open&&!Object(w.a)()){var yt=document.domain==="kepukehuan.educoder.net"?30:h.exerciseUserInfo.screen_sec+10+1;F.current=z.a.info({icon:null,content:g.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",g.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",h.exerciseUserInfo.screen_num-h.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",g.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:g.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:function(){var dt;je(),(dt=F.current)===null||dt===void 0||dt.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+yt*1e3})),"S\uFF09"),onOk:function(){var dt;(dt=F.current)===null||dt===void 0||dt.destroy(),Fe(!1),Object(w.d)(document.body),document.getElementById("root").addEventListener("click",xe,!1)}})}return(Ze=h.exerciseUserInfo)!==null&&Ze!==void 0&&Ze.screen_open&&!Object(w.a)()||document.getElementById("root").addEventListener("click",xe,!1),function(){document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1),window.removeEventListener("blur",ae,!1),clearTimeout(q.current)}},[]),Object(c.useEffect)(function(){setTimeout(function(){h.actionTabs.removeEventListenerExitScreen&&(clearTimeout(q.current),document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1))},500),he()},[h.actionTabs]),Object(c.useEffect)(function(){setTimeout(function(){h.exerciseUserInfo.used_screen_num>h.exerciseUserInfo.screen_num?ue():!Ge},500)},[h.exerciseUserInfo]);var je=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke;return R.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Ze.next=2,oe();case 2:Ke=Ze.sent,setTimeout(function(){var yt,vt;(yt=F.current)===null||yt===void 0||yt.destroy(),F.current=z.a.info({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(vt=h.exerciseUserInfo)===null||vt===void 0?void 0:vt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var dt=Object(K.a)(R.a.mark(function At(){return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:Object(w.d)(document.body);case 1:case"end":return Oe.stop()}},At)}));function pt(){return dt.apply(this,arguments)}return pt}()})},1e3);case 4:case"end":return Ze.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),xe=function(We){!Object(w.a)()&&We.target.nodeName!=="A"&&We.target.nodeName!=="BUTTON"&&We.target.innerHTML!=="\u786E \u5B9A"&&(Object(w.d)(document.body),console.log("documentClick.full"))},he=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt;return R.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,s({type:"exercise/getExerciseUserInfo",payload:Object(ee.a)({},_e)});case 2:return dt=At.sent,vt(dt==null?void 0:dt.data),At.abrupt("return",dt==null?void 0:dt.data);case 5:case"end":return At.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),te=function(){var Me=Object(K.a)(R.a.mark(function We(Ke){var Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:(Qe=F.current)===null||Qe===void 0||((Ze=Qe.destroyAll)===null||Ze===void 0)||Ze.call(Qe),F.current=z.a.info({maskClosable:!1,keyboard:!1,okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:oe,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(h.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(yt=h.exerciseUserInfo)===null||yt===void 0?void 0:yt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",g.a.createElement("span",{className:"c-red"},h.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",g.a.createElement("br",null),g.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var pt=Object(K.a)(R.a.mark(function wt(){return R.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:clearTimeout(le.current),Object(w.d)(document.body),F.current.destroy();case 3:case"end":return we.stop()}},wt)}));function At(){return pt.apply(this,arguments)}return At}()}),le.current=setTimeout(function(){var pt;F.current.update({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(pt=h.exerciseUserInfo)===null||pt===void 0?void 0:pt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(h.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return dt.stop()}},We)}));return function(Ke){return Me.apply(this,arguments)}}(),ye=function(){location.href="/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},ue=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze;return R.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return(Ke=F.current)===null||Ke===void 0||((Qe=Ke.destroyAll)===null||Qe===void 0)||Qe.call(Ke),vt.next=3,Object(y.Z)({categoryId:_e.categoryId,commit_method:1});case 3:Ze=vt.sent,Ze&&Le();case 5:case"end":return vt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Le=function(){var We,Ke;document.removeEventListener(Object(w.c)(),Se,!1),Object(w.b)(),(We=F.current)===null||We===void 0||((Ke=We.destroyAll)===null||Ke===void 0)||Ke.call(We),Y.info({content:g.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",g.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){ye()}})},ae=function(We){Object(w.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(w.b)()},oe=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt,pt,At;return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(!((dt=h.exerciseUserInfo)!==null&&dt!==void 0&&dt.screen_at)){Oe.next=3;break}return Oe.next=3,Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0}));case 3:return Oe.next=5,Object(y.Q)({id:_e.categoryId});case 5:if(pt=Oe.sent,!(pt!=null&&pt.is_commit)){Oe.next=9;break}return Le(),Oe.abrupt("return");case 9:return Oe.next=11,he();case 11:At=Oe.sent,vt(At);case 13:case"end":return Oe.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Se=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(Ke=!1,console.log("fullscreen change"),!Object(w.a)()){dt.next=7;break}(Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_at&&Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0})),clearTimeout(q.current),dt.next=17;break;case 7:return Ke=!0,dt.next=10,Object(y.g)(Object(ee.a)({},_e));case 10:return dt.next=12,he();case 12:Ze=dt.sent,te(Ze.used_screen_num),yt=setTimeout(Object(K.a)(R.a.mark(function pt(){return R.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:case"end":return wt.stop()}},pt)})),h.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),q.current=yt;case 17:s({type:"globalSetting/headerFooterToggle",payload:Ke});case 18:case"end":return dt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}();return g.a.createElement("div",null,H)};de.a=Object(n.a)(function(E){var v=E.loading,O=E.user,A=E.exercise,p=E.globalSetting;return{globalSetting:p,user:O,exercise:A,loading:v.effects}})(x)},bT9E:function(et,de,N){"use strict";N.d(de,"a",function(){return K});var ee=N("VTBJ");function K(k,z){var B=Object(ee.a)({},k);return Array.isArray(z)&&z.forEach(function(M){delete B[M]}),B}},biw7:function(et,de,N){"use strict";var ee=N("q1tI"),K=N.n(ee),k=ee.createContext(null);de.a=k},c5Ni:function(et,de,N){},cQPA:function(et,de,N){"use strict";N.r(de);var ee=N("T2oS"),K=N("W9HT"),k=N("sPJy"),z=N("bE4q"),B=N("+L6B"),M=N("2/Rp"),j=N("14J3"),U=N("BMrR"),_=N("jCWc"),R=N("kPKH"),c=N("5Dmo"),g=N("3S7+"),w=N("sRBo"),y=N("kaz8"),f=N("7Kak"),m=N("9yH6"),a=N("MXD1"),n=N("CFYs"),o=N("miYZ"),u=N("tsqr"),x=N("2qtc"),E=N("kLXV"),v=N("k1fw"),O=N("9og8"),A=N("tJVT"),p=N("PpiC"),h=N("5NDa"),s=N("5rEg"),l=N("aHsQ"),D=N("sGsY"),T=N("WmNS"),S=N.n(T),I=N("q1tI"),C=N.n(I),W=N("Ty5D"),Y=N("55Ip"),H=N("9kvl"),F=N("gUdW"),q=N("xGfz"),le=N("jhfD"),pe=N("BlwA"),Ae=N("bPs0"),Ge=N("wd/R"),Fe=N.n(Ge),Ue=N("9GDu"),_e=N.n(Ue),je=N("1vsH"),xe=N("s8TD"),he=N("xKgJ"),te=N("bntm"),ye=N("V0Rq"),ue=N("HBuW"),Le=N("9Bee"),ae=N("Ot1p"),oe=function(Xe){var ke,se,fe,$e,Pe,it,at=Xe.item,Ne=Xe.answerData,Ve=Xe.isEducation,tt=Xe.sign,ft=Xe.onBlur,Ct=ft===void 0?function(){}:ft,zt=Object(I.useRef)(""),qt=Object(I.useState)(),Qt=Object(A.a)(qt,2),St=Qt[0],ln=Qt[1],Bt=Object(I.useState)(!1),Yt=Object(A.a)(Bt,2),Mt=Yt[0],tn=Yt[1],mn=Object(I.useState)(Ve||!1),An=Object(A.a)(mn,2),lt=An[0],Rt=An[1],Jt=Object(I.useRef)(),nn=function(){clearInterval(Jt.current),Jt.current=setInterval(function(){Mt&&Ct(zt.current)},30*1e3)},un=function(G){Ct(zt.current);var b="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(G||window.event).returnValue=b,b};return Object(I.useEffect)(function(){console.log("isFocus:",Mt),Mt?(window.addEventListener("beforeunload",un),nn()):window.removeEventListener("beforeunload",un)},[Mt]),Object(I.useEffect)(function(){ln(at==null?void 0:at.a_flag)},[at==null?void 0:at.a_flag]),Object(I.useEffect)(function(){return function(){clearInterval(Jt.current)}},[]),console.log(!at.repeat_answer&&(at==null||((ke=at.user_answer)===null||ke===void 0)?void 0:ke.length)>0&&!at.israp,222),C.a.createElement("div",null,(Ne==null||((se=Ne.exercise)===null||se===void 0)?void 0:se.commit_status)===1?C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u6211\u7684\u7B54\u6848\uFF1A"),C.a.createElement("div",{className:_e.a.simpleText},C.a.createElement(Le.a,{value:at==null||((fe=at.user_answer)===null||fe===void 0)?void 0:fe[0]}))):C.a.createElement("div",{className:at.user_score&&(at.user_score===at.question_score?"c-green":"c-red")},lt?C.a.createElement(ae.a,{watch:!0,isFocus:!0,defaultValue:at==null||(($e=at.user_answer)===null||$e===void 0)?void 0:$e[0],id:at==null?void 0:at.question_id,onChange:function(G){zt.current=G,tn(!0)},onBlur:function(){setTimeout(function(){Ct(zt.current)},200),clearInterval(Jt.current),tn(!1)}}):C.a.createElement("div",{onClick:function(){var G;if(!at.repeat_answer&&(at==null||((G=at.user_answer)===null||G===void 0)?void 0:G.length)>0)return;tt.current=!0,Rt(!0)}},C.a.createElement(s.a,{disabled:!at.repeat_answer&&(at==null||((Pe=at.user_answer)===null||Pe===void 0)?void 0:Pe.length)>0&&!at.israp,size:"large",className:"current",placeholder:"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54",readOnly:!0}))),(at==null?void 0:at.standard_answer)&&C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),C.a.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},C.a.createElement(Le.a,{value:at==null||((it=at.standard_answer)===null||it===void 0)?void 0:it[0]}))))},Se=oe,Me=N("g9YV"),We=N("wCAj"),Ke=N("5GOC"),Qe=N("JsLm"),Ze=N("ZW9T"),yt=N("o/qq"),vt=N.n(yt),dt=function(Xe){var ke,se,fe,$e,Pe=Xe.item,it=Xe.answerData,at=Object(I.useState)([]),Ne=Object(A.a)(at,2),Ve=Ne[0],tt=Ne[1],ft=Object(I.useState)([]),Ct=Object(A.a)(ft,2),zt=Ct[0],qt=Ct[1];Object(I.useEffect)(function(){var Bt;if(!(Pe!=null&&(Bt=Pe.shixun_details)!==null&&Bt!==void 0&&Bt.length))return;for(var Yt=[],Mt=[],tn=0;tn<(Pe==null||((mn=Pe.shixun_details)===null||mn===void 0)?void 0:mn.length);tn++){for(var mn,An,lt,Rt=0;Rt<(Pe==null?void 0:Pe.shixun_details[tn].stage_list.length);Rt++){var Jt,nn,un,cn,G=Pe==null?void 0:Pe.shixun_details[tn].stage_list[Rt];Yt.push(Object(v.a)(Object(v.a)({},G),{operation:Pe==null||((Jt=Pe.shixun_details)===null||Jt===void 0||((nn=Jt[tn])===null||nn===void 0||((un=nn.shixun_detail)===null||un===void 0||((cn=un[0])===null||cn===void 0))))?void 0:cn.game_identifier}))}if(Pe!=null&&(An=Pe.shixun_details)!==null&&An!==void 0&&(lt=An[tn])!==null&<!==void 0&<.shixun_detail){var b,L,V;Mt.push(Pe==null||((b=Pe.shixun_details)===null||b===void 0||((L=b[tn])===null||L===void 0||((V=L.shixun_detail)===null||V===void 0)))?void 0:V[0])}}qt(Mt),tt(Yt)},[Pe==null?void 0:Pe.shixun_details]);var Qt=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:function(Yt){return C.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:Yt&&Yt.length>25?Yt:""},Yt)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.evaluate_count?Mt.evaluate_count:C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:function(Yt,Mt){var tn=!1;return Mt.finished_time&&it!==null&&it!==void 0&&it.exercise&&it!==null&&it!==void 0&&it.exercise_answer_user&&((it==null?void 0:it.exercise.time)===-1?tn=Fe()(it==null?void 0:it.exercise.end_time).isBefore(Mt.finished_time):tn=Fe()(it==null?void 0:it.exercise_answer_user.start_at).add(it==null?void 0:it.exercise.time,"m").isBefore(Mt.finished_time)),C.a.createElement("span",null,Mt.finished_time||C.a.createElement("span",{className:"c-grey-999"},"--"),C.a.createElement("span",{className:"c-orange-ff9 "},tn?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.time_consuming||C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:function(Yt,Mt,tn){return Yt?C.a.createElement(Qe.a,{affix:!1,className:"mt10"},C.a.createElement(Qe.a.Link,{href:"#challenge_".concat(Pe==null?void 0:Pe.question_id).concat(tn),title:C.a.createElement("span",{style:{color:"#0152d9"}},"\u67E5\u770B")})):C.a.createElement("span",{className:"c-grey-999"},"--")}}],St=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.error_msg?Mt.error_msg:"--")}}],ln={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement("div",{className:"mt15 mb15"},(it==null||((ke=it.exercise)===null||ke===void 0)?void 0:ke.commit_status)===0&&C.a.createElement("div",null,Pe.shixun.map(function(Bt,Yt){return C.a.createElement(U.a,{className:"font16",gutter:[0,20]},C.a.createElement(R.a,{flex:"1"},Bt.challenge_name," (",Bt.challenge_score,"\u5206)"),C.a.createElement(R.a,{flex:"100px",className:"tr"},Bt.answer_status===0&&C.a.createElement("span",{className:"font12 tag-style-border border-orange c-orange "},"\u672A\u5B8C\u6210"),Bt.answer_status===1&&C.a.createElement("span",{className:"font12 tag-style-border border-green c-green "},"\u5DF2\u5B8C\u6210")))})),(it==null||((se=it.exercise)===null||se===void 0)?void 0:se.commit_status)!==0||(it==null||((fe=it.exercise)===null||fe===void 0)?void 0:fe.user_exercise_status)!==0?C.a.createElement(C.a.Fragment,null,!!(Ve!=null&&Ve.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),C.a.createElement(We.a,{columns:Qt,dataSource:Ve,pagination:!1})),!!(zt!=null&&zt.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),zt==null?void 0:zt.map(function(Bt,Yt){return C.a.createElement("div",{id:"challenge_".concat(Pe==null?void 0:Pe.question_id).concat(Yt),className:"mt5"},C.a.createElement("div",null,C.a.createElement("span",{className:"font16 mr15"}," \u7B2C",Bt.position,"\u5173"),C.a.createElement(Y.a,{className:"current c-black font16",to:"/tasks/".concat(Bt.game_identifier)},Bt.name)),(Bt==null?void 0:Bt.st)===0&&Bt.passed_code&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.a.createElement("h2",null,"\u6700\u540E\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",C.a.createElement("span",{className:"c-light-black"},Bt.path)),C.a.createElement(Ze.b,{height:300,language:"python",theme:"default",value:Bt.passed_code,options:ln})))}))):C.a.createElement(C.a.Fragment,null,C.a.createElement(Le.a,{className:"c-grey-999 mt20 mb20",value:Pe==null?void 0:Pe.question_title}),Pe==null||(($e=Pe.shixun)===null||$e===void 0)?void 0:$e.map(function(Bt,Yt){return C.a.createElement("p",{className:"font16 c-grey-666 mb5",key:Yt},C.a.createElement("span",{className:"mr20"},"\u7B2C",Bt==null?void 0:Bt.challenge_position,"\u5173 ",Bt==null?void 0:Bt.challenge_name),C.a.createElement("span",null,Bt==null?void 0:Bt.challenge_score,"\u5206"))})))},pt=dt,At=N("J66h"),wt=function(Xe){var ke=Xe.item,se=Xe.answerData,fe=Object(I.useState)([]),$e=Object(A.a)(fe,2),Pe=$e[0],it=$e[1];Object(I.useEffect)(function(){var Ve;if((ke==null||((Ve=ke.evaluate_codes)===null||Ve===void 0)?void 0:Ve.length)>0){var tt;it(ke==null||((tt=ke.evaluate_codes)===null||tt===void 0)?void 0:tt.map(function(ft,Ct){return{key:Ct+1,error_msg:ft!=null&&ft.error_msg?At.Base64.decode(ft==null?void 0:ft.error_msg):""}}))}else it([{key:"--",error_msg:"--"}])},[ke==null?void 0:ke.evaluate_codes]);var at=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.error_msg?ft.error_msg:"--")}}],Ne={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"mt15 mb15"},C.a.createElement(Le.a,{value:ke==null?void 0:ke.description})),!!(ke!=null&&ke.user_answer.length)&&(ke==null?void 0:ke.passed_code)&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.a.createElement("h3",null,"\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),C.a.createElement(Ze.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:ke!=null&&ke.passed_code?At.Base64.decode(ke==null?void 0:ke.passed_code):"",options:Ne})))},Oe=wt,we=N("oBTY"),Je=N("m3rI"),st=s.a.TextArea,He=function(Xe){var ke,se,fe=Xe.item,$e=Xe.answerData,Pe=Xe.answerCheckData,it=Pe===void 0?{}:Pe,at=Xe.sign,Ne=Xe.onBlur,Ve=Ne===void 0?function(){}:Ne,tt=Object(I.useState)([]),ft=Object(A.a)(tt,2),Ct=ft[0],zt=ft[1],qt=Object(I.useRef)(!1);Object(I.useEffect)(function(){return window.addEventListener("beforeunload",Qt),function(){window.removeEventListener("beforeunload",Qt)}},[Ct,it,fe]);var Qt=function(){var St=Object(O.a)(S.a.mark(function ln(){var Bt,Yt,Mt,tn,mn,An,lt,Rt;return S.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!(qt.current===!1)){nn.next=2;break}return nn.abrupt("return");case 2:if(Bt=Ct[qt.current],Yt=Bt.answer_text,Mt=Bt.choice_id,Yt.replaceAll(" ","")){nn.next=5;break}return nn.abrupt("return");case 5:if(mn={questionId:fe==null?void 0:fe.question_id,exercise_choice_id:Mt,answer_text:Yt},!((it==null?void 0:it.ip_limit)==="inner"||it.ip_bind)){nn.next=10;break}return nn.next=9,Object(xe.a)({ip_limit:it==null?void 0:it.ip_limit});case 9:tn=nn.sent;case 10:mn.ip=tn,An=Object(v.a)({},mn),lt={type:"application/json"},Rt=new Blob([JSON.stringify(An)],lt),window.navigator.sendBeacon("".concat(Je.a.API_SERVER,"/api/exercise_questions/").concat(mn.questionId,"/exercise_answers.json"),Rt);case 15:case"end":return nn.stop()}},ln)}));return function(){return St.apply(this,arguments)}}();return Object(I.useEffect)(function(){for(var St=[],ln=function(Mt){var tn,mn=(fe==null||((tn=fe.user_answer)===null||tn===void 0)?void 0:tn.find(function(An){return An.choice_id===Mt+1}))||{choice_id:Mt+1,answer_text:""};St.push(Object(v.a)({},mn))},Bt=0;Bt<(fe==null?void 0:fe.multi_count);Bt++)ln(Bt);zt(St)},[fe==null?void 0:fe.user_answer]),C.a.createElement("div",null,Ct==null?void 0:Ct.map(function(St,ln){var Bt;return C.a.createElement("div",{key:ln,className:"mt10"},C.a.createElement("span",null,"\u6211\u7684\u7B54\u6848\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,rows:4,disabled:!fe.repeat_answer&&(fe==null||((Bt=fe.user_answer)===null||Bt===void 0)?void 0:Bt.length)>0&&!fe.israp||!!($e!=null&&$e.exercise.commit_status),value:St==null?void 0:St.answer_text,onChange:function(Mt){qt.current=ln,Ct[ln].answer_text=Mt.target.value,zt(Object(we.a)(Ct))},onFocus:function(){at.current=!0},onBlur:function(Mt){qt.current=!1,setTimeout(function(){Ve(St==null?void 0:St.answer_text,ln+1,Ct)},200)},className:"overflow_hidden ".concat(fe.user_score&&(fe.user_score===fe.question_score?"c-green":"c-red"))})))}),!!(fe!=null&&(ke=fe.standard_answer)!==null&&ke!==void 0&&ke.length)&&C.a.createElement("div",null,fe==null||((se=fe.standard_answer)===null||se===void 0)?void 0:se.map(function(St,ln){return C.a.createElement("div",null,C.a.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,disabled:!0,value:St==null?void 0:St.answer_text[0]})))})))},nt=He,Te=N("lzim"),ge=s.a.TextArea,be=function(Xe){var ke=Xe.data;return C.a.createElement("div",{className:"tc mt80"},C.a.createElement("img",{width:"486",src:Te.n})," ",C.a.createElement("br",null),ke.status===-1&&C.a.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),ke.status===-2&&C.a.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",C.a.createElement("span",{className:"c-red"},ke.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),C.a.createElement(M.a,{className:"mt40 pl20 pr20",type:"primary"},C.a.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875")))},re=be,ie=N("LvDl"),ce=D.a.Countdown,Ee=s.a.TextArea,Be=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ie={1:"\u672A\u53D1\u5E03",2:"\u5DF2\u53D1\u5E03",3:"\u5DF2\u622A\u6B62"},ut={1:_e.a.flagActive,2:_e.a.flagHalf},bt={0:"c-red-ee4",1:"c-green"},Tt=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],xt=function(Xe){var ke,se,fe,$e,Pe,it,at,Ne,Ve,tt,ft,Ct,zt,qt,Qt,St,ln,Bt,Yt,Mt,tn,mn,An,lt,Rt,Jt,nn,un,cn,G,b,L=Xe.globalSetting,V=Xe.loading,J=Xe.user,Q=Xe.dispatch,De=Object(p.a)(Xe,["globalSetting","loading","user","dispatch"]),ot=Object(W.i)(),Ot=Object(I.useState)({}),Ft=Object(A.a)(Ot,2),ve=Ft[0],Gt=Ft[1],en=Object(I.useState)({}),Tn=Object(A.a)(en,2),Wn=Tn[0],tr=Tn[1],Rn=Object(I.useState)({}),or=Object(A.a)(Rn,2),fr=or[0],Vn=or[1],sr=Object(I.useState)(!1),Jn=Object(A.a)(sr,2),Mr=Jn[0],Xn=Jn[1],Ir=Object(I.useState)(!0),yr=Object(A.a)(Ir,2),Tr=yr[0],Yr=yr[1],br=Object(I.useState)(!1),nr=Object(A.a)(br,2),Ur=nr[0],_r=nr[1],Fr=Object(I.useState)(!1),Sn=Object(A.a)(Fr,2),hn=Sn[0],Pn=Sn[1],yn=Object(I.useState)(),Ln=Object(A.a)(yn,2),bn=Ln[0],wr=Ln[1],Bn=Object(I.useState)(0),Qn=Object(A.a)(Bn,2),zr=Qn[0],jr=Qn[1],Dr=Object(I.useState)(""),Jr=Object(A.a)(Dr,2),rr=Jr[0],Wr=Jr[1],Er=Object(I.useState)("none"),Hr=Object(A.a)(Er,2),Zr=Hr[0],ir=Hr[1],ri=Object(I.useState)(""),ii=Object(A.a)(ri,2),Xt=ii[0],on=ii[1],$t=Object(I.useState)({status:0}),dn=Object(A.a)($t,2),En=dn[0],wn=dn[1],gn=Object(I.useRef)(),xn=Object(I.useRef)(!1),Hn=Object(I.useRef)({}),fn=Object(I.useState)(0),kr=Object(A.a)(fn,2),Ht=kr[0],_n=kr[1],pr=Object(I.useState)(0),lr=Object(A.a)(pr,2),Kt=lr[0],pn=lr[1],Cn=Object(I.useState)(!1),ur=Object(A.a)(Cn,2),qr=ur[0],Rr=ur[1],gi=Object(I.useState)(!1),vi=Object(A.a)(gi,2),ai=vi[0],Gi=vi[1],xa=Object(I.useState)(),Ca=Object(A.a)(xa,2),Sa=Ca[0],wi=Ca[1],Aa=Object(I.useState)(),Ta=Object(A.a)(Aa,2),oi=Ta[0],Gr=Ta[1];Object(I.useEffect)(function(){return(Object(he.c)()||Object(he.l)())&&dr(),window.addEventListener("message",yi),function(){window.removeEventListener("message",yi),window.removeEventListener("beforeunload",Da),location.pathname.indexOf("/detail")>-1&&Object(te.b)()}},[ot.categoryId,J.userInfo.login]);var yi=function(me){me.data==="backExercise"&&(ir("none"),Wr(""),dr())},wa=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn;return S.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.next=2,Q({type:"exercise/getExerciseUserInfo",payload:Object(v.a)({},ot)});case 2:if(rt=In.sent,tr(Object(v.a)({},rt.data)),!((rt==null||((ct=rt.data)===null||ct===void 0)?void 0:ct.ip_limit)!=="no")){In.next=11;break}if(!((rt==null||((_t=rt.data)===null||_t===void 0)?void 0:_t.ip_limit)==="inner")){In.next=9;break}return In.next=8,Object(xe.a)({ip_limit:rt==null||((mt=rt.data)===null||mt===void 0)?void 0:mt.ip_limit});case 8:Nt=In.sent;case 9:return In.next=11,Object(je.q)({exerciseId:ot.categoryId,ip:Nt,errmsgHide:!0,ip_limit:rt==null||((It=rt.data)===null||It===void 0)?void 0:It.ip_limit}).catch(function(ui){wn(ui)});case 11:if(!((rt==null?void 0:rt.status)==0)){In.next=18;break}if(!((rt==null||((Lt=rt.data)===null||Lt===void 0)?void 0:Lt.used_screen_num)>(rt==null||((Zt=rt.data)===null||Zt===void 0)?void 0:Zt.screen_num)&&rt!==null&&rt!==void 0&&(jt=rt.data)!==null&&jt!==void 0&&jt.screen_open)){In.next=15;break}return Ri(),In.abrupt("return",!1);case 15:_r(rt==null?void 0:rt.data.check_camera),Pn(rt==null||((rn=rt.data)===null||rn===void 0)?void 0:rn.screen_open),rt!=null&&(Mn=rt.data)!==null&&Mn!==void 0&&Mn.check_camera||dr();case 18:case"end":return In.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Da=function(me){var ct="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(me||window.event).returnValue=ct,ct},dr=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Xn(!0),Lt.next=3,Object(ye.Y)(Object(v.a)({},ot)).catch(function(){return Xn(!1)});case 3:rt=Lt.sent,((ct=rt)===null||ct===void 0?void 0:ct.exercise)&&(rt.exercise.user_exercise_status=1),Xn(!1),rt&&(rt.exercise_types=((_t=rt)===null||_t===void 0?void 0:_t.exercise_types)||((mt=rt)===null||mt===void 0||((It=mt.exercise_scores)===null||It===void 0)?void 0:It.exercise_types),Gt(rt));case 7:case"end":return Lt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}();Object(I.useEffect)(function(){var Ut,me,ct;((Ut=ve.exercise)===null||Ut===void 0?void 0:Ut.time)===0&&Ri(),((me=ve.exercise)===null||me===void 0?void 0:me.time)&&wr(Date.now()+(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.time)*1e3*60)},[(ke=ve.exercise)===null||ke===void 0?void 0:ke.time]);var si=function(){var me;(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.exercise_status)===3?E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",C.a.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",C.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,Object(ye.R)({categoryId:ot.categoryId,user_ids:[ve==null||((mt=ve.exercise_answer_user)===null||mt===void 0)?void 0:mt.user_id]});case 2:It=Lt.sent,It&&(u.b.info(It==null?void 0:It.message),ei());case 4:case"end":return Lt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()})},ei=function(){dr()},ro=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ye.ab)({categoryId:ot.categoryId,commit_method:2});case 2:ct=mt.sent,(ct==null?void 0:ct.status)===0&&(E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",C.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var It=Object(O.a)(S.a.mark(function Lt(){return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:ei();case 1:case"end":return jt.stop()}},Lt)}));function Nt(){return It.apply(this,arguments)}return Nt}()}),u.b.info(ct==null?void 0:ct.message)),(ct==null?void 0:ct.status)===-3&&(rt=parseInt(ct==null?void 0:ct.message),ve.exercise.time=rt,Gt(Object(v.a)({},ve)));case 5:case"end":return mt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Di=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ue.D)({id:ct.shixun_identifier});case 2:rt=mt.sent,rt!=null&&rt.game_identifier&&(Wr("/tasks/".concat(rt.game_identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block")),(rt==null?void 0:rt.status)===-3?Object(je.o)():(rt==null?void 0:rt.status)===2?io(rt==null?void 0:rt.message,ct.question_id):(rt==null?void 0:rt.status)===3&&Vi(rt==null?void 0:rt.message);case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),io=function Ut(me,ct){var rt;me=(rt=me)!==null&&rt!==void 0&&rt.includes(".json")?me:"".concat(me,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var _t=Object(O.a)(S.a.mark(function It(){var Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({url:me});case 2:if(Nt=jt.sent,Nt){jt.next=5;break}return jt.abrupt("return");case 5:return u.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),jt.next=8,Object(ue.D)({id:Nt.shixun_identifier});case 8:if(Lt=jt.sent,!(Lt!=null&&Lt.game_identifier)){jt.next=12;break}return Di({shixun_identifier:Lt==null?void 0:Lt.game_identifier,question_id:ct}),jt.abrupt("return");case 12:(Lt==null?void 0:Lt.status)===2?Ut(Lt==null?void 0:Lt.message,ct):(Lt==null?void 0:Lt.status)===3&&Vi(Lt==null?void 0:Lt.message);case 13:case"end":return jt.stop()}},It)}));function mt(){return _t.apply(this,arguments)}return mt}()})},Vi=function(me){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",me,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Xi=function(me){me.redo?E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It,Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({id:me.myshixun_identifier,url:me.url});case 2:mt=jt.sent,mt&&(It=Object(ie.cloneDeep)(ve==null?void 0:ve.exercise_question_types),Nt=It==null?void 0:It.findIndex(function(rn){return rn.question_type===5}),It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).redo=!1,It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).shixun_identifier=mt.shixun_identifier,ve.exercise_question_types=It,Gt(ve),Lt=Object(v.a)(Object(v.a)({},me),{},{shixun_identifier:mt.shixun_identifier}),Di(Lt));case 4:case"end":return jt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()}):Di(me)},li=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(!ct.hack_identifier){mt.next=5;break}return mt.next=3,Object(ye.X)({id:ct.hack_identifier});case 3:rt=mt.sent,(rt==null?void 0:rt.status)===0&&(Wr("/myproblems/".concat(rt.identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block"));case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),mr=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){var It,Nt;return S.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(Xn(!0),ct){Zt.next=4;break}return console.error("handleSave no questionId params"),Zt.abrupt("return");case 4:return Zt.next=6,Object(ye.cb)({questionId:ct,exercise_choice_id:rt,answer_text:_t});case 6:Nt=Zt.sent,(Nt==null?void 0:Nt.status)===0&&(mt&&mt(),Vr()),Xn(!1);case 9:case"end":return Zt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Qi=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt,_t;return S.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,Object(ye.V)({id:ot.categoryId});case 2:if(rt=It.sent,rt){It.next=5;break}return It.abrupt("return");case 5:rt.question_undo!==0||rt.oj_undo!==0?(_t="",rt.question_undo!==0&&rt.oj_undo!==0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(rt.oj_undo," \u4E2A\u7F16\u7A0B\u9898"):rt.question_undo!==0&&rt.oj_undo===0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210"):rt.question_undo===0&&rt.oj_undo!==0&&(_t="\u6709 ".concat(rt.oj_undo," \u7F16\u7A0B\u9898\u672A\u5B8C\u6210")),E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},_t,C.a.createElement("br",null),ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()})):E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:C.a.createElement("div",{className:"tc font16"},ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()});case 6:case"end":return It.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),Yi=function(me){return C.a.createElement("div",null,C.a.createElement(n.a,{strokeColor:{from:"#108ee9",to:"#87d068"},status:"active",percent:me}),C.a.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026"))},ao=function(){var me=0,ct=E.a.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Yi(me)}),rt=setInterval(function(){me<=100?(me+=2,ct.update({content:Yi(me)})):(ct.destroy(),clearInterval(rt))},50)},Ri=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct;return S.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ao(),_t.next=3,Object(ye.ab)({categoryId:ot.categoryId,commit_method:1});case 3:ct=_t.sent,Object(te.b)(),Q({type:"exercise/setActionTabs",payload:Object(v.a)({},{removeEventListenerExitScreen:!0})}),(ct==null?void 0:ct.status)===0&&(u.b.success(ct==null?void 0:ct.message),_r(!1),setTimeout(function(){E.a.info({title:"\u4EA4\u5377\u6210\u529F\uFF01",okText:"\u786E\u5B9A",onOk:function(){ei()}})},3e3));case 7:case"end":return _t.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),oo=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){return S.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:mr(rt,ct,null,function(){ve.question_status.find(function(Lt){return Lt.ques_id===rt}).ques_status=ct?1:0,mt.user_answer=[],mt.user_answer.push(ct),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))});case 1:case"end":return Nt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Ra=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt,It){return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:mr(mt.question_id,ct,null,function(){var Zt,jt,rn;mt.user_answer=[],mt.user_answer.push(ct);var Mn=It==null||((Zt=It.sub_exercise_questions)===null||Zt===void 0)?void 0:Zt.filter(function(Nn){var In;return((In=Nn.user_answer)===null||In===void 0?void 0:In.length)===0});ve.question_status.find(function(Nn){return Nn.ques_id===rt}).ques_status=(Mn==null?void 0:Mn.length)===(It==null||((jt=It.sub_exercise_questions)===null||jt===void 0)?void 0:jt.length)?0:(Mn==null?void 0:Mn.length)>0&&(Mn==null?void 0:Mn.length)<(It==null||((rn=It.sub_exercise_questions)===null||rn===void 0)?void 0:rn.length)?2:1,Gt(Object(v.a)({},ve))});case 1:case"end":return Lt.stop()}},me)}));return function(ct,rt,_t,mt,It){return Ut.apply(this,arguments)}}(),Oa=function(me,ct,rt){mr(ct,me,null,function(){rt.user_answer=me,rt.repeat_answer||(rt.israp=!0),ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me!=null&&me.length?1:0,Gt(Object(v.a)({},ve))})},bi=function(me,ct,rt,_t,mt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(rt,ct,me,function(){ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.every(function(Nt){return!!Nt.answer_text})?1:ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.some(function(Nt){return!!Nt.answer_text})?2:0;var It={choice_id:ct,answer_text:me};mt.user_answer.filter(function(Nt){return Nt.choice_id!=ct})?mt.user_answer.splice(ct-1,1,It):mt.user_answer.push(It),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))})},La=function(me,ct,rt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(ct,null,me,function(){ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me?1:0,rt.user_answer=[],rt.user_answer.push(me),rt.repeat_answer||(rt.israp=!0),Gt(Object(v.a)({},ve))})},Ji=function(me,ct){var rt,_t,mt,It,Nt,Lt;return C.a.createElement("div",null,C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null||((rt=me.user_answer)===null||rt===void 0)?void 0:rt[0],onChange:function(jt){return oo(jt.target.value,me==null?void 0:me.question_id,ct,me)},className:me.user_score&&"edu-radio-".concat(me.user_score===me.question_score?"green":"red")},me==null||((_t=me.question_choices)===null||_t===void 0)?void 0:_t.map(function(Zt,jt){var rn,Mn=me.question_type==2,Nn=Mn?"":"".concat(Be[jt],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:jt},C.a.createElement(m.a,{disabled:!me.repeat_answer&&(me==null||((rn=me.user_answer)===null||rn===void 0)?void 0:rn.length)>0&&!me.israp,value:Zt==null?void 0:Zt.choice_id},C.a.createElement("span",{className:"mr3"},Nn),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Zt==null?void 0:Zt.choice_text})))})),Object(he.s)()&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.answer_open)&&((ve==null||((It=ve.exercise)===null||It===void 0)?void 0:It.exercise_status)==3||(ve==null||((Nt=ve.exercise)===null||Nt===void 0)?void 0:Nt.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((Lt=me.standard_answer)===null||Lt===void 0)?void 0:Lt.map(function(Zt,jt){return C.a.createElement("span",null,Be[Number(Zt)-1])})))},Zi=function(me,ct,rt){var _t;return C.a.createElement("div",null,me==null||((_t=me.sub_exercise_questions)===null||_t===void 0)?void 0:_t.map(function(mt,It){var Nt,Lt,Zt,jt,rn,Mn;return C.a.createElement("div",null,C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},rt+1+"."+(It+1),"\uFF08\u5355\u9009\u9898\uFF09"),C.a.createElement(Le.a,{value:mt==null?void 0:mt.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",mt==null?void 0:mt.question_score,"\u5206\uFF09")),C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:mt==null||((Nt=mt.user_answer)===null||Nt===void 0)?void 0:Nt[0],onChange:function(In){return Ra(In.target.value,me==null?void 0:me.question_id,It,mt,me)},className:mt.user_score&&"edu-radio-".concat(mt.user_score===mt.question_score?"green":"red")},mt==null||((Lt=mt.question_choices)===null||Lt===void 0)?void 0:Lt.map(function(Nn,In){var ui,Ua=mt.question_type==2,Li=Ua?"":"".concat(Be[In],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:In},C.a.createElement(m.a,{disabled:!mt.repeat_answer&&(mt==null||((ui=mt.user_answer)===null||ui===void 0)?void 0:ui.length)>0,value:Nn==null?void 0:Nn.choice_id},C.a.createElement("span",{className:"mr3"},Li),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nn==null?void 0:Nn.choice_text})))})),Object(he.s)()&&(ve==null||((Zt=ve.exercise)===null||Zt===void 0)?void 0:Zt.answer_open)&&((ve==null||((jt=ve.exercise)===null||jt===void 0)?void 0:jt.exercise_status)==3||(ve==null||((rn=ve.exercise)===null||rn===void 0)?void 0:rn.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",mt==null||((Mn=mt.standard_answer)===null||Mn===void 0)?void 0:Mn.map(function(Nn,In){return C.a.createElement("span",null,Be[Number(Nn)-1])})))}))},Oi=function(me,ct){var rt,_t,mt,It;return C.a.createElement("div",null,C.a.createElement(y.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null?void 0:me.user_answer,onChange:function(Lt){return Oa(Lt,me==null?void 0:me.question_id,me)},className:me.user_score&&"edu-checkbox-".concat(me.user_score===me.question_score?"green":"red")},me==null||((rt=me.question_choices)===null||rt===void 0)?void 0:rt.map(function(Nt,Lt){var Zt,jt="".concat(Be[Lt],".");return C.a.createElement("div",{className:_e.a.answerWrap},C.a.createElement(y.a,{disabled:!me.repeat_answer&&(me==null||((Zt=me.user_answer)===null||Zt===void 0)?void 0:Zt.length)>0&&!me.israp,value:Nt==null?void 0:Nt.choice_id},C.a.createElement("span",{className:"mr3"},jt),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nt==null?void 0:Nt.choice_text})))})),Object(he.s)()&&(ve==null||((_t=ve.exercise)===null||_t===void 0)?void 0:_t.answer_open)&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.exercise_status)==3&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((It=me.standard_answer)===null||It===void 0)?void 0:It.map(function(Nt,Lt){return C.a.createElement("span",null,Be[Number(Nt)-1])})))},Ma=function(me,ct){return C.a.createElement(nt,{item:me,sign:xn,answerData:ve,answerCheckData:Wn,onBlur:function(_t,mt,It){return bi(_t,mt,me==null?void 0:me.question_id,It,me)}})},qi=function(me,ct){return C.a.createElement(Se,{item:me,answerData:ve,sign:xn,onBlur:function(_t){return La(_t,me==null?void 0:me.question_id,me)}})},Pr=function(me,ct){return C.a.createElement(pt,{item:me,answerData:ve})},Ia=function(me,ct){return C.a.createElement(Oe,{item:me,answerData:ve})},Kr=function(me,ct,rt){var _t,mt,It=ve==null||((_t=ve.exercise_question_types)===null||_t===void 0)?void 0:_t.find(function(Nt){return Nt.question_type===ct});return C.a.createElement(C.a.Fragment,null,C.a.createElement("h1",{className:"font14 current",onClick:function(){fr[ct]=!fr[ct],Vn(Object(v.a)({},fr))}},!fr[ct]&&C.a.createElement(F.a,null),fr[ct]&&C.a.createElement(q.a,null),C.a.createElement("span",{className:"ml5 c-grey-666"},me)),C.a.createElement("ul",{className:_e.a.answerSheet,key:ct},!fr[ct]&&(It==null||((mt=It.items)===null||mt===void 0)?void 0:mt.map(function(Nt,Lt){if(Nt.question_type===ct){var Zt,jt;return C.a.createElement("li",{onClick:function(){if(xn.current){xn.current="appoint",Hn.current={oneindex:rt,twoindex:Lt};return}Ba({oneindex:rt,twoindex:Lt})},key:Lt,className:(ve==null||((Zt=ve.question_status)===null||Zt===void 0)?void 0:Zt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===1}))&&_e.a.active},Lt+1,(ve==null||((jt=ve.question_status)===null||jt===void 0)?void 0:jt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===2}))&&C.a.createElement("div",{style:{height:3,background:"#0152d9",position:"absolute",width:26,bottom:0}}))}}))))},$i=function(me,ct){var rt,_t,mt,It,Nt,Lt,Zt=(me==null?void 0:me.question_type)==5?me==null?void 0:me.shixun_name:me==null?void 0:me.question_title;return C.a.createElement("div",{className:_e.a.questionItem,id:"Anchor_".concat(me==null?void 0:me.question_type,"_").concat(ct)},C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},ct+1,"."),C.a.createElement(Le.a,{value:me==null?void 0:me.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(me==null?void 0:me.question_type)===7?"\u5171".concat(me==null||((rt=me.sub_exercise_questions)===null||rt===void 0)?void 0:rt.length,"\u5C0F\u9898\uFF0C"):"",me==null?void 0:me.question_score,"\u5206\uFF09"),!(me!=null&&me.repeat_answer)&&C.a.createElement("span",{style:{color:"#FA6400 ",marginLeft:10,fontSize:16}},"\u6CE8\u610F\uFF1A\u8BE5\u9898\u4E0D\u5141\u8BB8\u91CD\u590D\u7B54\u9898"),!!(me!=null&&(_t=me.schools)!==null&&_t!==void 0&&_t.length)&&C.a.createElement(g.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},C.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"}))),(me==null?void 0:me.question_type)==0&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==2&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==1&&Oi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==3&&Ma(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==4&&qi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==5&&Pr(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==6&&Ia(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==7&&Zi(me,me==null?void 0:me.question_type,ct),!!(me!=null&&(mt=me.answer_comments)!==null&&mt!==void 0&&mt.length)&&C.a.createElement("div",{className:"mt30"},me==null||((It=me.answer_comments)===null||It===void 0)?void 0:It.map(function(jt,rn){var Mn,Nn;return C.a.createElement("div",null,C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"},C.a.createElement("img",{src:Je.a.API_SERVER+"/images/"+((Mn=jt.user)===null||Mn===void 0?void 0:Mn.image_url),width:"40",style:{borderRadius:40}})),C.a.createElement(R.a,{flex:"1"},jt.updated_at,C.a.createElement("br",null),(Nn=jt.user)===null||Nn===void 0?void 0:Nn.name),C.a.createElement(R.a,{className:"c-grey-c"},jt.shixun_chanllge_position&&C.a.createElement("span",null,"\u7B2C",jt.shixun_chanllge_position,"\u5173"),me.question_type!==4&&C.a.createElement("span",null,"\u539F\u59CB\u5F97\u5206",jt.origin_score,"\u5206 \uFF0C")," \u4FEE\u6B63\u4E3A",jt.score,"\u5206")),jt.comment&&C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"}),C.a.createElement(R.a,{flex:"1"},C.a.createElement(Ee,{autoSize:!0,value:jt.comment,disabled:!0}))))})),C.a.createElement("div",{className:_e.a.itemType},C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"}),C.a.createElement(R.a,null,(me==null?void 0:me.question_type)<3&&(me==null?void 0:me.standard_answer_show)&&C.a.createElement("span",{className:"font16 ml20"},"\u6B63\u786E\u7B54\u6848\uFF1A",me==null?void 0:me.standard_answer_show),C.a.createElement("span",{className:"font16 ml20"},(me==null?void 0:me.user_score)!==null&&(me==null?void 0:me.user_score)>=0&&C.a.createElement("span",null,C.a.createElement("span",{className:bt[Number(me==null?void 0:me.answer_status)]||"c-orange-ff9"},me==null?void 0:me.user_score)," \u5206")),(me==null?void 0:me.question_type)==5&&!((Nt=ve.exercise)!==null&&Nt!==void 0&&Nt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return Xi(me)}},"\u8FDB\u5165\u7B54\u9898"),(me==null?void 0:me.question_type)==6&&!((Lt=ve.exercise)!==null&&Lt!==void 0&&Lt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return li(me)}},"\u8FDB\u5165\u7B54\u9898")))))},_a=function(me,ct){return C.a.createElement(I.Fragment,null,me.question_type===0&&Kr("\u5355\u9009\u9898",0,ct),me.question_type===1&&Kr("\u591A\u9009\u9898",1,ct),me.question_type===2&&Kr("\u5224\u65AD\u9898",2,ct),me.question_type===3&&Kr("\u586B\u7A7A\u9898",3,ct),me.question_type===4&&Kr("\u7B80\u7B54\u9898",4,ct),me.question_type===5&&Kr("\u5B9E\u8BAD\u9898",5,ct),me.question_type===6&&Kr("\u7F16\u7A0B\u9898",6,ct),me.question_type===7&&Kr("\u7EC4\u5408\u9898",7,ct))},ka=function(me){var ct=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],rt=["","\u5341","\u767E","\u5343","\u4E07"];me=parseInt(me);var _t=function(Lt){for(var Zt=Lt.toString().split("").reverse(),jt="",rn=0;rn0&&Zt[rn]==0&&Zt[rn-1]==0?"":ct[Zt[rn]]+(Zt[rn]==0?rt[0]:rt[rn]))+jt;return jt},mt=Math.floor(me/1e4),It=me%1e4;return It.toString().length<4&&(It="0"+It),mt?_t(mt)+"\u4E07"+_t(It):_t(me)},ea=function(){var me,ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn,Nn;return C.a.createElement(I.Fragment,{key:Ht},C.a.createElement("div",{className:"pt20"},C.a.createElement("span",{className:"font16 c-light-primary"},ka(Ht+1),"\u3001",ve==null||((me=ve.exercise_question_types)===null||me===void 0||((ct=me[Ht])===null||ct===void 0))?void 0:ct.name),C.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ve==null||((rt=ve.exercise_question_types)===null||rt===void 0||((_t=rt[Ht])===null||_t===void 0))?void 0:_t.count,"\u9898\uFF1B",(ve==null||((mt=ve.exercise_question_types)===null||mt===void 0||((It=mt[Ht])===null||It===void 0))?void 0:It.question_type)===7?"\u5305\u542B".concat(ve==null||((Nt=ve.exercise_question_types)===null||Nt===void 0||((Lt=Nt[Ht])===null||Lt===void 0))?void 0:Lt.sub_questions_count,"\u5C0F\u9898"):""," \u5171",ve==null||((Zt=ve.exercise_question_types)===null||Zt===void 0||((jt=Zt[Ht])===null||jt===void 0))?void 0:jt.score,"\u5206\uFF09")),C.a.createElement(I.Fragment,{key:Kt},$i(ve==null||((rn=ve.exercise_question_types)===null||rn===void 0||((Mn=rn[Ht])===null||Mn===void 0||((Nn=Mn.items)===null||Nn===void 0)))?void 0:Nn[Kt],Kt)))},Pa=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(1);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,_n(Ht),pn(Kt)},Na=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(2);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)},Ba=function(me){var ct,rt=me||Hn.current;if(!ai&&(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.user_exercise_status)===0&&Object(he.s)()){var _t,mt,It,Nt;if(!((_t=ve.exercise_question_types)!==null&&_t!==void 0&&(mt=_t[Ht])!==null&&mt!==void 0&&(It=mt.items)!==null&&It!==void 0&&(Nt=It[Kt])!==null&&Nt!==void 0&&Nt.repeat_answer)){Rr(!0),wi(3),Gr(rt);return}}_n(rt==null?void 0:rt.oneindex),pn(rt==null?void 0:rt.twoindex)},Vr=function(){var me;switch(xn.current){case"prev":Pa();break;case"next":Na();break;case"appoint":Ba();break;case"submit":Qi(!1);break;default:}((me=document.activeElement)===null||me===void 0?void 0:me.localName)==="textarea"?xn.current=!0:xn.current=!1,Hn.current={}};return C.a.createElement(K.a,{size:"large",spinning:Mr},hn&&C.a.createElement(Ae.a,{iframe:gn}),C.a.createElement("iframe",{style:{display:Zr},id:"iframeShixuns",className:_e.a.iframe,src:rr,ref:gn,frameBorder:"0"}),C.a.createElement("section",{className:"edu-container"},C.a.createElement("section",{className:"animated fadeIn"},C.a.createElement("aside",{className:"mt10"},L.showHeaderFooter&&ot.coursesId!=="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},(se=J.userInfo)===null||se===void 0||((fe=se.course)===null||fe===void 0)?void 0:fe.course_name)),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},"\u8BD5\u5377")),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),C.a.createElement(z.a.Item,null,($e=J.userInfo)===null||$e===void 0?void 0:$e.real_name)),L.showHeaderFooter&&ot.coursesId==="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),C.a.createElement(z.a.Item,null,(Pe=J.userInfo)===null||Pe===void 0?void 0:Pe.real_name))),C.a.createElement("aside",{className:[_e.a.title,"mt10"].join(" ")},C.a.createElement(U.a,{style:{width:"100%"},align:"middle"},C.a.createElement(R.a,{flex:"1"},C.a.createElement("div",{className:_e.a.title},(L==null?void 0:L.showHeaderFooter)&&C.a.createElement(Y.a,{to:ot.coursesId==="coursesId"?"/paperlibrary":"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},C.a.createElement(le.a,{className:"font16 c-black"})),C.a.createElement("strong",{className:"font24 ml5"},ve==null||((it=ve.exercise)===null||it===void 0)?void 0:it.exercise_name),(ve==null||((at=ve.exercise)===null||at===void 0)?void 0:at.is_random)&&C.a.createElement("span",{className:_e.a.randomFlag},"\u968F\u673A"),C.a.createElement(je.k,{status:[je.c[99]]}))),C.a.createElement(R.a,{style:{display:"flex"}},(ve==null||((Ne=ve.user_score)===null||Ne===void 0)?void 0:Ne.length)&&C.a.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u603B\u5F97\u5206\uFF1A",C.a.createElement("span",{className:"c-red"},ve==null?void 0:ve.user_score)," \u5206"),!!(ve!=null&&(Ve=ve.exercise)!==null&&Ve!==void 0&&Ve.time)&&!(ve!=null&&(tt=ve.exercise)!==null&&tt!==void 0&&tt.commit_status)&&C.a.createElement("aside",{className:"".concat(_e.a.countDown," ").concat(Xt)},"\u5269\u4F59\u65F6\u95F4:",C.a.createElement(ce,{value:bn,onFinish:ro})),!(ve!=null&&(ft=ve.exercise)!==null&&ft!==void 0&&ft.commit_status)&&C.a.createElement(M.a,{className:_e.a.submitButton,style:{marginLeft:20},type:"primary",onClick:function(){if(xn.current){xn.current="submit";return}Qi(!1)}},"\u4EA4\u5377"))))),En.status===0&&C.a.createElement(U.a,{className:"mt10"},C.a.createElement(R.a,{flex:Tr?"316px":"16px"},C.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Ur&&C.a.createElement(pe.a,{number:(ve==null||((Ct=ve.exercise)===null||Ct===void 0)?void 0:Ct.photo_count)-(ve==null||((zt=ve.exercise)===null||zt===void 0)?void 0:zt.take_photo),time:(qt=ve.exercise)===null||qt===void 0?void 0:qt.left_time,update:dr,supportCamera:function(me){me===2?(dr(),Pn(Wn==null?void 0:Wn.screen_open)):me===1&&setTimeout(function(){return De.history.push("/")},3e3)}}),C.a.createElement("div",{className:"relative",style:{minHeight:236}},Tr&&C.a.createElement("aside",{className:"bg-white p16"},C.a.createElement(U.a,null,C.a.createElement(R.a,{span:8},C.a.createElement("span",{className:"font16 blod"},"\u7B54\u9898\u5361")),C.a.createElement(R.a,{span:16},C.a.createElement("div",{className:"tr",style:{display:"flex",alignItems:"center",justifyContent:"end"}},C.a.createElement("span",{className:_e.a.answerYes}),"\u5DF2\u7B54",C.a.createElement("span",{style:{width:13,height:13,display:"flex",flexDirection:"column-reverse"},className:"".concat(_e.a.answerNo," ml10")},C.a.createElement("div",{style:{height:"10%",background:"#0152d9"}})),"\u90E8\u5206\u7B54\u9898",C.a.createElement("span",{className:"".concat(_e.a.answerNo," ml10")}),"\u672A\u7B54"))),C.a.createElement("aside",{className:_e.a.answerInfo},C.a.createElement(U.a,null,C.a.createElement(C.a.Fragment,null,C.a.createElement(R.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),C.a.createElement(R.a,{span:12,className:"tr c-blue"},ve==null||((Qt=ve.question_status)===null||Qt===void 0||((St=Qt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||St===void 0))?void 0:St.length," / ",ve==null||((ln=ve.exercise_types)===null||ln===void 0)?void 0:ln.q_counts),C.a.createElement(R.a,{span:24},C.a.createElement(n.a,{trailColor:"#c3ced2",percent:(ve==null||((Bt=ve.question_status)===null||Bt===void 0||((Yt=Bt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||Yt===void 0))?void 0:Yt.length)/(ve==null||((Mt=ve.exercise_types)===null||Mt===void 0)?void 0:Mt.q_counts)*100,showInfo:!1}))),C.a.createElement(R.a,null,C.a.createElement("span",{className:"c-grey-333"},"\u5171 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((tn=ve.exercise_types)===null||tn===void 0)?void 0:tn.q_counts)||(ve==null||((mn=ve.exercise_scores)===null||mn===void 0||((An=mn.exercise_types)===null||An===void 0))?void 0:An.q_counts))," \u9898\uFF1A"),C.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((lt=ve.exercise_types)===null||lt===void 0)?void 0:lt.q_scores)||(ve==null||((Rt=ve.exercise_scores)===null||Rt===void 0||((Jt=Rt.exercise_types)===null||Jt===void 0))?void 0:Jt.q_scores))," \u5206")))),C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"},C.a.createElement("aside",{className:_e.a.cardList},ve==null||((nn=ve.exercise_question_types)===null||nn===void 0)?void 0:nn.map(function(Ut,me){return C.a.createElement(I.Fragment,{key:Ut.question_type},_a(Ut,me))}))))),C.a.createElement("div",{className:_e.a.fold,onClick:function(){return Yr(!Tr)}},Tr&&C.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!Tr&&C.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),C.a.createElement(R.a,{flex:"1"},C.a.createElement("section",{className:[_e.a.bg,"pl30","pr30","pb30","mb50","ml20"].join(" ")},C.a.createElement("div",{style:{maxHeight:600,overflow:"hidden auto"}},ea()),C.a.createElement("div",{style:{marginTop:60,textAlign:"center",paddingRight:30}},(Ht!=0||Kt!=0)&&C.a.createElement(M.a,{className:"".concat(_e.a.submitButton," mr10"),type:"default",onClick:function(){if(xn.current){xn.current="prev";return}Pa()}},"\u4E0A\u4E00\u9898"),!(Ht===(ve==null||((un=ve.exercise_question_types)===null||un===void 0)?void 0:un.length)-1&&Kt===(ve==null||((cn=ve.exercise_question_types)===null||cn===void 0||((G=cn[Ht])===null||G===void 0||((b=G.items)===null||b===void 0)))?void 0:b.length)-1)&&C.a.createElement(M.a,{className:_e.a.submitButton,type:"primary",onClick:function(){if(xn.current){xn.current="next";return}Na()}},"\u4E0B\u4E00\u9898")))),C.a.createElement(E.a,{title:"\u6CE8\u610F",visible:qr,onCancel:function(){return Rr(!1)},footer:!1},C.a.createElement("div",null,C.a.createElement("p",{style:{marginBottom:0}},"\u79BB\u5F00\u8BE5\u9898\u540E\u4E0D\u5141\u8BB8\u518D\u6B21\u4FEE\u6539\u7B54\u6848\uFF0C\u786E\u8BA4\u79BB\u5F00\u5417\uFF1F"),C.a.createElement("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between"}},C.a.createElement(y.a,{checked:ai,onChange:function(me){Gi(me.target.checked)}},"\u4E0B\u6B21\u4E0D\u518D\u663E\u793A"),C.a.createElement("div",null,C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp?(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve))):ve.exercise_question_types[Ht].items[Kt].israp===""&&(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve)))}},"\u6211\u518D\u60F3\u60F3"),C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Sa===1?(Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,console.log(ve.exercise_question_types[Ht].items[Kt],"-----"),_n(Ht),pn(Kt)):Sa===2?(ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)):(_n(oi.oneindex),pn(oi.twoindex)),Rr(!1)},type:"primary",style:{marginLeft:30}},"\u786E\u8BA4")))))),En.status!==0&&C.a.createElement(re,{data:En})))},gt=de.default=Object(H.a)(function(qe){var Xe=qe.loading,ke=qe.user,se=qe.globalSetting;return{globalSetting:se,user:ke,loading:Xe.effects}})(xt)},cRFk:function(et,de,N){et.exports=N.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(et,de,N){et.exports=N.p+"static/choose.4ad1045f.svg"},dejd:function(et,de,N){},djh8:function(et,de,N){et.exports=N.p+"static/qrCode.42927872.png"},dmUQ:function(et,de,N){"use strict";var ee=N("Ff2n"),K=N("rePB"),k=N("1OyB"),z=N("vuIU"),B=N("Ji7U"),M=N("md7G"),j=N("foSv"),U=N("q1tI"),_=N.n(U),R=N("TSYQ"),c=N.n(R),g=N("4IlW");function w(s,l){var D=Object.keys(s);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(s);l&&(T=T.filter(function(S){return Object.getOwnPropertyDescriptor(s,S).enumerable})),D.push.apply(D,T)}return D}function y(s){for(var l=1;l1?pe-1:0),Ge=1;Ge1?H-1:0),q=1;q=0)return parseInt(Y.slice(Y.indexOf("e-")+2),10);var H=0;return Y.indexOf(".")>=0&&(H=Y.length-Y.indexOf(".")-1),H},S.getInputDisplayValue=function(W){var Y=W||S.state,H=Y.focused,F=Y.inputValue,q=Y.value,le;H?le=F:le=S.toPrecisionAsStep(q),le==null&&(le="");var pe=S.formatWrapper(le);return v(S.props.decimalSeparator)&&(pe=pe.toString().replace(".",S.props.decimalSeparator)),pe},S.recordCursorPosition=function(){try{S.cursorStart=S.input.selectionStart,S.cursorEnd=S.input.selectionEnd,S.currentValue=S.input.value,S.cursorBefore=S.input.value.substring(0,S.cursorStart),S.cursorAfter=S.input.value.substring(S.cursorEnd)}catch(W){}},S.restoreByAfter=function(W){if(W===void 0)return!1;var Y=S.input.value,H=Y.lastIndexOf(W);if(H===-1)return!1;var F=S.cursorBefore.length;return S.lastKeyCode===g.a.DELETE&&S.cursorBefore.charAt(F-1)===W[0]?(S.fixCaret(F,F),!0):H+W.length===Y.length?(S.fixCaret(H,H),!0):!1},S.partRestoreByAfter=function(W){return W===void 0?!1:Array.prototype.some.call(W,function(Y,H){var F=W.substring(H);return S.restoreByAfter(F)})},S.isNotCompleteNumber=function(W){return isNaN(W)||W===""||W===null||W&&W.toString().indexOf(".")===W.toString().length-1},S.stop=function(){S.autoStepTimer&&clearTimeout(S.autoStepTimer)},S.down=function(W,Y,H){S.pressingUpOrDown=!0,S.step("down",W,Y,H)},S.up=function(W,Y,H){S.pressingUpOrDown=!0,S.step("up",W,Y,H)},S.saveInput=function(W){S.input=W};var I=T.value;I===void 0&&(I=T.defaultValue),S.state={focused:T.autoFocus};var C=S.getValidValue(S.toNumber(I));return S.state=y(y({},S.state),{},{inputValue:S.toPrecisionAsStep(C),value:C}),S}return Object(z.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(S){var I=this.props,C=I.value,W=I.onChange,Y=I.max,H=I.min,F=this.state.focused;if(S){if(!O(S.value,C)||!O(S.max,Y)||!O(S.min,H)){var q=F?C:this.getValidValue(C),le;this.pressingUpOrDown?le=q:this.inputting?le=this.rawInput:le=this.toPrecisionAsStep(q),this.setState({value:q,inputValue:le})}var pe="value"in this.props?C:this.state.value;"max"in this.props&&S.max!==Y&&typeof pe=="number"&&pe>Y&&W&&W(Y),"min"in this.props&&S.min!==H&&typeof pe=="number"&&pe1&&arguments[1]!==void 0?arguments[1]:this.props.min,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,W=parseFloat(S);return isNaN(W)?S:(WC&&(W=C),W)}},{key:"setValue",value:function(S,I){var C=this.props.precision,W=this.isNotCompleteNumber(parseFloat(S))?null:parseFloat(S),Y=this.state.value,H=Y===void 0?null:Y,F=this.state.inputValue,q=F===void 0?null:F,le=typeof W=="number"?W.toFixed(C):"".concat(W),pe=W!==H||le!=="".concat(q);return"value"in this.props?(q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:q},I)):this.setState({value:W,inputValue:this.toPrecisionAsStep(S)},I),pe&&this.props.onChange(W),W}},{key:"getMaxPrecision",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.props,W=C.precision,Y=C.step;if(v(W))return W;var H=this.getPrecision(I),F=this.getPrecision(Y),q=this.getPrecision(S);return S?Math.max(q,H+F):H+F}},{key:"getPrecisionFactor",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.getMaxPrecision(S,I);return Math.pow(10,C)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(S){return this.props.formatter?this.props.formatter(S):S}},{key:"toPrecisionAsStep",value:function(S){if(this.isNotCompleteNumber(S)||S==="")return S;var I=Math.abs(this.getMaxPrecision(S));return isNaN(I)?S.toString():Number(S).toFixed(I)}},{key:"toNumber",value:function(S){var I=this.props.precision,C=this.state.focused,W=S&&S.length>16&&C;return this.isNotCompleteNumber(S)||W?S:v(I)?Math.round(S*Math.pow(10,I))/Math.pow(10,I):Number(S)}},{key:"upStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S+W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"downStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S-W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"step",value:function(S,I){var C=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=arguments.length>3?arguments[3]:void 0;this.stop(),I&&(I.persist(),I.preventDefault());var H=this.props;if(H.disabled)return;var F=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(F))return;var q=this["".concat(S,"Step")](F,W),le=q>H.max||qH.max?q=H.max:q=Ae),nt=(At||At===0)&&(isNaN(At)||Number(At)<=Ge),Te=He||W||Y,ge=nt||W||Y,be=c()("".concat(C,"-handler"),"".concat(C,"-handler-up"),Object(K.a)({},"".concat(C,"-handler-up-disabled"),Te)),re=c()("".concat(C,"-handler"),"".concat(C,"-handler-down"),Object(K.a)({},"".concat(C,"-handler-down-disabled"),ge)),ie=H?{onTouchStart:Te?a:this.up,onTouchEnd:this.stop}:{onMouseDown:Te?a:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ce=H?{onTouchStart:ge?a:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?a:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return _.a.createElement("div",{className:Oe,style:Fe,title:Ue,onMouseEnter:_e,onMouseLeave:je,onMouseOver:xe,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},_.a.createElement("div",{className:"".concat(C,"-handler-wrap")},_.a.createElement("span",Object.assign({unselectable:"on"},ie,{role:"button","aria-label":"Increase Value","aria-disabled":Te,className:be}),q||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-up-inner"),onClick:n})),_.a.createElement("span",Object.assign({unselectable:"on"},ce,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:re}),le||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-down-inner"),onClick:n}))),_.a.createElement("div",{className:"".concat(C,"-input-wrap")},_.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ge,"aria-valuemax":Ae,"aria-valuenow":At,required:te,type:Le,placeholder:ae,onPaste:yt,onClick:ye,onMouseUp:this.onMouseUp,className:"".concat(C,"-input"),tabIndex:ue,autoComplete:F,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Je?this.onKeyDown:a,onKeyUp:Je?this.onKeyUp:a,autoFocus:Qe,maxLength:Ke,readOnly:Y,disabled:W,max:Ae,min:Ge,step:We,name:Ze,title:Ue,id:oe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(st),pattern:Me,inputMode:Se,onInput:vt},we))))}}]),D}(_.a.Component);A.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:a,onKeyDown:a,onPressEnter:a,onFocus:a,onBlur:a,parser:o,required:!1,autoComplete:"off"};var p=A,h=de.a=p},fjLI:function(et,de,N){"use strict";N.d(de,"e",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"d",function(){return y}),N.d(de,"b",function(){return f});var ee=N("8HAY"),K=N("Cg/j"),k=N("T8No"),z=N("nnTU"),B=N("MI8n"),M=function(){var m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,u){o.__proto__=u}||function(o,u){for(var x in u)u.hasOwnProperty(x)&&(o[x]=u[x])},m(a,n)};return function(a,n){m(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),j=function(m,a,n,o){var u=arguments.length,x=u<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,n):o,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(m,a,n,o);else for(var v=m.length-1;v>=0;v--)(E=m[v])&&(x=(u<3?E(x):u>3?E(a,n,x):E(a,n))||x);return u>3&&x&&Object.defineProperty(a,n,x),x},U=function(m,a){return function(n,o){a(n,o,m)}},_=function(){for(var m=0,a=0,n=arguments.length;a=0&&(u.splice(x,1),o._onDidChangeMenu.fire(a))}}},m.prototype.getMenuItems=function(a){var n=(this._menuItems.get(a)||[]).slice(0);return a===0&&this._appendImplicitItems(n),n},m.prototype._appendImplicitItems=function(a){for(var n=new Set,o=a.filter(function(A){return R(A)}),u=0,x=o;u0&&arguments[0]!==void 0?arguments[0]:[],l=s;if(Array.isArray(s)){for(var D=0;D0||zt.target.offsetWidth>0)&&Je.current.instance.layout()}}catch(qt){ft.e(qt)}finally{ft.f()}}),Ve.observe(we.current)),Ve}function Be(){B.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var Ie=function(){var tt=Je.current.instance;if(I!=null&&tt&&ie){var ft=tt.getModel();ft&&I!==ft.getValue()&&(E=!0,ft.setValue(I),tt.layout(),E=!1)}};Object(c.useEffect)(function(){try{var Ve,tt=Je.current.instance;He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Ie()},500),tt==null||((Ve=tt.updateOptions)===null||Ve===void 0)||Ve.call(tt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(I.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ft){debugger}},[I,ie,Je.current]),Object(c.useEffect)(function(){try{if(yt&&Je.current&&Je.current.instance){var Ve=Je.current.instance;Ve.changeViewZones(function(ft){var Ct=document.createElement("div");Ct.style.padding="10px 20px",Ct.style.width="calc(100% - 20px)",Ct.className="my-error-line-wrp",Ct.innerHTML=dt,ft.addZone({afterLineNumber:yt||11,heightInLines:3,domNode:Ct})});var tt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ve.addOverlayWidget(tt),Ve.revealPositionInCenter({lineNumber:20,column:1})}}catch(ft){debugger}},[yt,Je.current,ie]),Object(c.useEffect)(function(){var Ve;if((Ve=Je.current)!==null&&Ve!==void 0&&Ve.instance&&ie&&wt){var tt=Je.current.instance,ft=tt.getModel();if(!ft)return;var Ct=function(){var Rt=[],Jt=[],nn=ft.getAllDecorations(),un=Object(M.a)(nn),cn;try{for(un.s();!(cn=un.n()).done;){var G=cn.value;if(G.options.className==="highlighted-line"){var b;Rt.push(G==null||((b=G.range)===null||b===void 0)?void 0:b.startLineNumber),Jt.push(G==null?void 0:G.id)}}}catch(V){un.e(V)}finally{un.f()}ft.deltaDecorations(Jt,[]);var L=ft.getLineCount();!!pt&&pt<=L&&(tt.deltaDecorations([],[{range:new A.Range(pt,1,pt,ft.getLineMaxColumn(pt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),tt.revealLineInCenter(pt))};Ct();var zt=function(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Jt=[],nn=[],un=ft.getAllDecorations(),cn=Object(M.a)(un),G;try{for(cn.s();!(G=cn.n()).done;){var b=G.value;if(b.options.linesDecorationsClassName==="breakpoints"){var L;Jt.push(b==null||((L=b.range)===null||L===void 0)?void 0:L.startLineNumber),nn.push(b==null?void 0:b.id)}}}catch(V){cn.e(V)}finally{cn.f()}if(Rt)return{lines:Jt,ids:nn};Me(Jt)},qt=function(){var lt=Object(P.a)(R.a.mark(function Rt(Jt){var nn;return R.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return nn={range:new A.Range(Jt,1,Jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},cn.next=3,ft.deltaDecorations([],[nn]);case 3:zt();case 4:case"end":return cn.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),Qt=function(){var lt=Object(P.a)(R.a.mark(function Rt(Jt){var nn,un,cn,G,b;return R.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:nn=[],un=tt.getLineDecorations(Jt),cn=Object(M.a)(un);try{for(cn.s();!(G=cn.n()).done;)b=G.value,b.options.linesDecorationsClassName==="breakpoints"&&nn.push(b.id)}catch(J){cn.e(J)}finally{cn.f()}return V.next=6,ft.deltaDecorations(nn,[]);case 6:zt();case 7:case"end":return V.stop()}},Rt)}));return function(Jt){return lt.apply(this,arguments)}}(),St=function(Rt){var Jt=tt.getLineDecorations(Rt),nn=Object(M.a)(Jt),un;try{for(nn.s();!(un=nn.n()).done;){var cn=un.value;if(cn.options.linesDecorationsClassName==="breakpoints")return!0}}catch(G){nn.e(G)}finally{nn.f()}return!1};if(!Object(n.isEqual)(Ke,zt(!0).lines)){ft.deltaDecorations(zt(!0).ids,[]);var ln=Ke.map(function(lt){return{range:new A.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ft.deltaDecorations([],ln)}var Bt=tt.onDidChangeModelContent(function(lt){var Rt=tt.getPosition();if(Rt){var Jt=Rt.lineNumber;ft.getLineContent(Jt).trim()===""?Qt(Jt):St(Jt)&&(Qt(Jt),qt(Jt))}}),Yt=tt.onMouseDown(function(lt){var Rt,Jt,nn;if(lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;St(un)?Qt(un):qt(un)}}),Mt=function(Rt){var Jt={range:new A.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};nt.current=tt.deltaDecorations(nt.current,[Jt])},tn=function(){nt.current=tt.deltaDecorations(nt.current,[])},mn=tt.onMouseMove(function(lt){var Rt,Jt,nn;if(tn(),lt.target.detail&&(Rt=lt.target)!==null&&Rt!==void 0&&(Jt=Rt.element)!==null&&Jt!==void 0&&(nn=Jt.className)!==null&&nn!==void 0&&nn.includes("line-numbers")){var un=lt.target.position.lineNumber;if(ft.getLineContent(un).trim()==="")return;Mt(un)}}),An=tt.onMouseLeave(function(){tn()});return function(){Bt.dispose(),Yt.dispose(),mn.dispose(),An.dispose()}}},[Je.current,ie,Ke,pt,wt]);function ut(){var Ve=Je.current.instance;if(Ve){var tt=Ve.getSelection(),ft=Je.current.pastePos||{},Ct=new A.Range(ft.startLineNumber||tt.endLineNumber,ft.startColumn||tt.endColumn,ft.endLineNumber||tt.endLineNumber,ft.endColumn||tt.endColumn);setTimeout(function(){Ve.executeEdits("",[{range:Ct,text:""}])},300)}}function bt(Ve){(window.navigator.platform.match("Mac")?Ve.metaKey:Ve.ctrlKey)&&Ve.keyCode==83&&(Ve.preventDefault(),Ue())}var Tt=function(){if(je&&Je.current.instance){var tt=Je.current.instance.getContentHeight();at(tt0||ue.target.offsetWidth>0)&&je.layout()}}catch(Le){te.e(Le)}finally{te.f()}}),xe.observe(F.current)),xe}Object(c.useEffect)(function(){return F.current&&N.e(27).then(N.t.bind(null,"M/lh",7)).then(function(je){A=je;var xe=A.editor.createDiffEditor(F.current,Object(ee.a)(Object(ee.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},H),{},{wordWrap:!0}));Ae(xe);var he=Ge(xe);return function(){xe.dispose();var te=xe.getModel();te&&te.dispose(),he.unobserve(F.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(c.useEffect)(function(){pe&&pe.setModel({original:A.editor.createModel(I,W),modified:A.editor.createModel(C,W)})},[I,C,W,pe]);var Fe=u(D),Ue=u(S),_e={width:Fe,height:Ue};return g.a.createElement("div",{className:"my-diff-editor",ref:F,style:_e})}},ZpRC:function(et,de,N){"use strict";function ee(c){return typeof c=="object"&&c!=null&&c.nodeType===1}function K(c,g){return(!g||c!=="hidden")&&c!=="visible"&&c!=="clip"}function P(c,g){if(c.clientHeightg||m>c&&a=g&&n>=w?m-c-y:a>g&&nw?a-g+f:0}var B=function(c,g){var w=window,y=g.scrollMode,f=g.block,m=g.inline,a=g.boundary,n=g.skipOverflowHiddenElements,o=typeof a=="function"?a:function(Me){return Me!==a};if(!ee(c))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,x=[],E=c;ee(E)&&o(E);){if((E=E.parentElement)===u){x.push(E);break}E!=null&&E===document.body&&P(E)&&!P(document.documentElement)||E!=null&&P(E,n)&&x.push(E)}for(var v=w.visualViewport?w.visualViewport.width:innerWidth,O=w.visualViewport?w.visualViewport.height:innerHeight,A=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,h=c.getBoundingClientRect(),s=h.height,l=h.width,D=h.top,T=h.right,S=h.bottom,I=h.left,C=f==="start"||f==="nearest"?D:f==="end"?S:D+s/2,W=m==="center"?I+l/2:m==="end"?T:I,Y=[],H=0;H=0&&I>=0&&S<=O&&T<=v&&D>=Ae&&S<=Fe&&I>=Ue&&T<=Ge)return Y;var _e=getComputedStyle(F),je=parseInt(_e.borderLeftWidth,10),xe=parseInt(_e.borderTopWidth,10),he=parseInt(_e.borderRightWidth,10),te=parseInt(_e.borderBottomWidth,10),ye=0,ue=0,Le="offsetWidth"in F?F.offsetWidth-F.clientWidth-je-he:0,ae="offsetHeight"in F?F.offsetHeight-F.clientHeight-xe-te:0;if(u===F)ye=f==="start"?C:f==="end"?C-O:f==="nearest"?z(p,p+O,O,xe,te,p+C,p+C+s,s):C-O/2,ue=m==="start"?W:m==="center"?W-v/2:m==="end"?W-v:z(A,A+v,v,je,he,A+W,A+W+l,l),ye=Math.max(0,ye+p),ue=Math.max(0,ue+A);else{ye=f==="start"?C-Ae-xe:f==="end"?C-Fe+te+ae:f==="nearest"?z(Ae,Fe,le,xe,te+ae,C,C+s,s):C-(Ae+le/2)+ae/2,ue=m==="start"?W-Ue-je:m==="center"?W-(Ue+pe/2)+Le/2:m==="end"?W-Ge+he+Le:z(Ue,Ge,pe,je,he+Le,W,W+l,l);var oe=F.scrollLeft,Se=F.scrollTop;C+=Se-(ye=Math.max(0,Math.min(Se+ye,F.scrollHeight-le+ae))),W+=oe-(ue=Math.max(0,Math.min(oe+ue,F.scrollWidth-pe+Le)))}Y.push({el:F,top:ye,left:ue})}return Y};function M(c){return c===Object(c)&&Object.keys(c).length!==0}function j(c,g){g===void 0&&(g="auto");var w="scrollBehavior"in document.body.style;c.forEach(function(y){var f=y.el,m=y.top,a=y.left;f.scroll&&w?f.scroll({top:m,left:a,behavior:g}):(f.scrollTop=m,f.scrollLeft=a)})}function U(c){return c===!1?{block:"end",inline:"nearest"}:M(c)?c:{block:"start",inline:"nearest"}}function _(c,g){var w=!c.ownerDocument.documentElement.contains(c);if(M(g)&&typeof g.behavior=="function")return g.behavior(w?[]:B(c,g));if(w)return;var y=U(g);return j(B(c,y),y.behavior)}var R=de.a=_},Zss7:function(et,de,N){var ee;(function(K){var P=/^\s+/,z=/\s+$/,B=0,M=K.round,j=K.min,U=K.max,_=K.random;function R(te,ye){if(te=te||"",ye=ye||{},te instanceof R)return te;if(!(this instanceof R))return new R(te,ye);var ue=c(te);this._originalInput=te,this._r=ue.r,this._g=ue.g,this._b=ue.b,this._a=ue.a,this._roundA=M(100*this._a)/100,this._format=ye.format||ue.format,this._gradientType=ye.gradientType,this._r<1&&(this._r=M(this._r)),this._g<1&&(this._g=M(this._g)),this._b<1&&(this._b=M(this._b)),this._ok=ue.ok,this._tc_id=B++}R.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 te=this.toRgb();return(te.r*299+te.g*587+te.b*114)/1e3},getLuminance:function(){var te=this.toRgb(),ye,ue,Le,ae,oe,Se;return ye=te.r/255,ue=te.g/255,Le=te.b/255,ye<=.03928?ae=ye/12.92:ae=K.pow((ye+.055)/1.055,2.4),ue<=.03928?oe=ue/12.92:oe=K.pow((ue+.055)/1.055,2.4),Le<=.03928?Se=Le/12.92:Se=K.pow((Le+.055)/1.055,2.4),.2126*ae+.7152*oe+.0722*Se},setAlpha:function(te){return this._a=Y(te),this._roundA=M(100*this._a)/100,this},toHsv:function(){var te=f(this._r,this._g,this._b);return{h:te.h*360,s:te.s,v:te.v,a:this._a}},toHsvString:function(){var te=f(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.v*100);return this._a==1?"hsv("+ye+", "+ue+"%, "+Le+"%)":"hsva("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHsl:function(){var te=w(this._r,this._g,this._b);return{h:te.h*360,s:te.s,l:te.l,a:this._a}},toHslString:function(){var te=w(this._r,this._g,this._b),ye=M(te.h*360),ue=M(te.s*100),Le=M(te.l*100);return this._a==1?"hsl("+ye+", "+ue+"%, "+Le+"%)":"hsla("+ye+", "+ue+"%, "+Le+"%, "+this._roundA+")"},toHex:function(te){return a(this._r,this._g,this._b,te)},toHexString:function(te){return"#"+this.toHex(te)},toHex8:function(te){return n(this._r,this._g,this._b,this._a,te)},toHex8String:function(te){return"#"+this.toHex8(te)},toRgb:function(){return{r:M(this._r),g:M(this._g),b:M(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+M(this._r)+", "+M(this._g)+", "+M(this._b)+")":"rgba("+M(this._r)+", "+M(this._g)+", "+M(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:M(H(this._r,255)*100)+"%",g:M(H(this._g,255)*100)+"%",b:M(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%)":"rgba("+M(H(this._r,255)*100)+"%, "+M(H(this._g,255)*100)+"%, "+M(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:C[a(this._r,this._g,this._b,!0)]||!1},toFilter:function(te){var ye="#"+o(this._r,this._g,this._b,this._a),ue=ye,Le=this._gradientType?"GradientType = 1, ":"";if(te){var ae=R(te);ue="#"+o(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+Le+"startColorstr="+ye+",endColorstr="+ue+")"},toString:function(te){var ye=!!te;te=te||this._format;var ue=!1,Le=this._a<1&&this._a>=0,ae=!ye&&Le&&(te==="hex"||te==="hex6"||te==="hex3"||te==="hex4"||te==="hex8"||te==="name");return ae?te==="name"&&this._a===0?this.toName():this.toRgbString():(te==="rgb"&&(ue=this.toRgbString()),te==="prgb"&&(ue=this.toPercentageRgbString()),(te==="hex"||te==="hex6")&&(ue=this.toHexString()),te==="hex3"&&(ue=this.toHexString(!0)),te==="hex4"&&(ue=this.toHex8String(!0)),te==="hex8"&&(ue=this.toHex8String()),te==="name"&&(ue=this.toName()),te==="hsl"&&(ue=this.toHslString()),te==="hsv"&&(ue=this.toHsvString()),ue||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(te,ye){var ue=te.apply(null,[this].concat([].slice.call(ye)));return this._r=ue._r,this._g=ue._g,this._b=ue._b,this.setAlpha(ue._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(te,ye){return te.apply(null,[this].concat([].slice.call(ye)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(l,arguments)}},R.fromRatio=function(te,ye){if(typeof te=="object"){var ue={};for(var Le in te)te.hasOwnProperty(Le)&&(Le==="a"?ue[Le]=te[Le]:ue[Le]=Ge(te[Le]));te=ue}return R(te,ye)};function c(te){var ye={r:0,g:0,b:0},ue=1,Le=null,ae=null,oe=null,Se=!1,Me=!1;return typeof te=="string"&&(te=xe(te)),typeof te=="object"&&(je(te.r)&&je(te.g)&&je(te.b)?(ye=g(te.r,te.g,te.b),Se=!0,Me=String(te.r).substr(-1)==="%"?"prgb":"rgb"):je(te.h)&&je(te.s)&&je(te.v)?(Le=Ge(te.s),ae=Ge(te.v),ye=m(te.h,Le,ae),Se=!0,Me="hsv"):je(te.h)&&je(te.s)&&je(te.l)&&(Le=Ge(te.s),oe=Ge(te.l),ye=y(te.h,Le,oe),Se=!0,Me="hsl"),te.hasOwnProperty("a")&&(ue=te.a)),ue=Y(ue),{ok:Se,format:te.format||Me,r:j(255,U(ye.r,0)),g:j(255,U(ye.g,0)),b:j(255,U(ye.b,0)),a:ue}}function g(te,ye,ue){return{r:H(te,255)*255,g:H(ye,255)*255,b:H(ue,255)*255}}function w(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=(Le+ae)/2;if(Le==ae)oe=Se=0;else{var We=Le-ae;Se=Me>.5?We/(2-Le-ae):We/(Le+ae);switch(Le){case te:oe=(ye-ue)/We+(ye1&&(Ze-=1),Ze<1/6?Ke+(Qe-Ke)*6*Ze:Ze<1/2?Qe:Ze<2/3?Ke+(Qe-Ke)*(2/3-Ze)*6:Ke}if(ye===0)Le=ae=oe=ue;else{var Me=ue<.5?ue*(1+ye):ue+ye-ue*ye,We=2*ue-Me;Le=Se(We,Me,te+1/3),ae=Se(We,Me,te),oe=Se(We,Me,te-1/3)}return{r:Le*255,g:ae*255,b:oe*255}}function f(te,ye,ue){te=H(te,255),ye=H(ye,255),ue=H(ue,255);var Le=U(te,ye,ue),ae=j(te,ye,ue),oe,Se,Me=Le,We=Le-ae;if(Se=Le===0?0:We/Le,Le==ae)oe=0;else{switch(Le){case te:oe=(ye-ue)/We+(ye>1)+720)%360;--ye;)Le.h=(Le.h+ae)%360,oe.push(R(Le));return oe}function S(te,ye){ye=ye||6;for(var ue=R(te).toHsv(),Le=ue.h,ae=ue.s,oe=ue.v,Se=[],Me=1/ye;ye--;)Se.push(R({h:Le,s:ae,v:oe})),oe=(oe+Me)%1;return Se}R.mix=function(te,ye,ue){ue=ue===0?0:ue||50;var Le=R(te).toRgb(),ae=R(ye).toRgb(),oe=ue/100,Se={r:(ae.r-Le.r)*oe+Le.r,g:(ae.g-Le.g)*oe+Le.g,b:(ae.b-Le.b)*oe+Le.b,a:(ae.a-Le.a)*oe+Le.a};return R(Se)},R.readability=function(te,ye){var ue=R(te),Le=R(ye);return(K.max(ue.getLuminance(),Le.getLuminance())+.05)/(K.min(ue.getLuminance(),Le.getLuminance())+.05)},R.isReadable=function(te,ye,ue){var Le=R.readability(te,ye),ae,oe;oe=!1,ae=he(ue);switch(ae.level+ae.size){case"AAsmall":case"AAAlarge":oe=Le>=4.5;break;case"AAlarge":oe=Le>=3;break;case"AAAsmall":oe=Le>=7;break}return oe},R.mostReadable=function(te,ye,ue){var Le=null,ae=0,oe,Se,Me,We;ue=ue||{},Se=ue.includeFallbackColors,Me=ue.level,We=ue.size;for(var Ke=0;Keae&&(ae=oe,Le=R(ye[Ke]));return R.isReadable(te,Le,{level:Me,size:We})||!Se?Le:(ue.includeFallbackColors=!1,R.mostReadable(te,["#fff","#000"],ue))};var I=R.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"},C=R.hexNames=W(I);function W(te){var ye={};for(var ue in te)te.hasOwnProperty(ue)&&(ye[te[ue]]=ue);return ye}function Y(te){return te=parseFloat(te),(isNaN(te)||te<0||te>1)&&(te=1),te}function H(te,ye){le(te)&&(te="100%");var ue=pe(te);return te=j(ye,U(0,parseFloat(te))),ue&&(te=parseInt(te*ye,10)/100),K.abs(te-ye)<1e-6?1:te%ye/parseFloat(ye)}function F(te){return j(1,U(0,te))}function q(te){return parseInt(te,16)}function le(te){return typeof te=="string"&&te.indexOf(".")!=-1&&parseFloat(te)===1}function pe(te){return typeof te=="string"&&te.indexOf("%")!=-1}function Ae(te){return te.length==1?"0"+te:""+te}function Ge(te){return te<=1&&(te=te*100+"%"),te}function Fe(te){return K.round(parseFloat(te)*255).toString(16)}function Ue(te){return q(te)/255}var _e=function(){var te="[-\\+]?\\d+%?",ye="[-\\+]?\\d*\\.\\d+%?",ue="(?:"+ye+")|(?:"+te+")",Le="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?",ae="[\\s|\\(]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")[,|\\s]+("+ue+")\\s*\\)?";return{CSS_UNIT:new RegExp(ue),rgb:new RegExp("rgb"+Le),rgba:new RegExp("rgba"+ae),hsl:new RegExp("hsl"+Le),hsla:new RegExp("hsla"+ae),hsv:new RegExp("hsv"+Le),hsva:new RegExp("hsva"+ae),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 je(te){return!!_e.CSS_UNIT.exec(te)}function xe(te){te=te.replace(P,"").replace(z,"").toLowerCase();var ye=!1;if(I[te])te=I[te],ye=!0;else if(te=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ue;return(ue=_e.rgb.exec(te))?{r:ue[1],g:ue[2],b:ue[3]}:(ue=_e.rgba.exec(te))?{r:ue[1],g:ue[2],b:ue[3],a:ue[4]}:(ue=_e.hsl.exec(te))?{h:ue[1],s:ue[2],l:ue[3]}:(ue=_e.hsla.exec(te))?{h:ue[1],s:ue[2],l:ue[3],a:ue[4]}:(ue=_e.hsv.exec(te))?{h:ue[1],s:ue[2],v:ue[3]}:(ue=_e.hsva.exec(te))?{h:ue[1],s:ue[2],v:ue[3],a:ue[4]}:(ue=_e.hex8.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),a:Ue(ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex6.exec(te))?{r:q(ue[1]),g:q(ue[2]),b:q(ue[3]),format:ye?"name":"hex"}:(ue=_e.hex4.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),a:Ue(ue[4]+""+ue[4]),format:ye?"name":"hex8"}:(ue=_e.hex3.exec(te))?{r:q(ue[1]+""+ue[1]),g:q(ue[2]+""+ue[2]),b:q(ue[3]+""+ue[3]),format:ye?"name":"hex"}:!1}function he(te){var ye,ue;return te=te||{level:"AA",size:"small"},ye=(te.level||"AA").toUpperCase(),ue=(te.size||"small").toLowerCase(),ye!=="AA"&&ye!=="AAA"&&(ye="AA"),ue!=="small"&&ue!=="large"&&(ue="small"),{level:ye,size:ue}}et.exports?et.exports=R:!(ee=function(){return R}.call(de,N,de,et),ee!==void 0&&(et.exports=ee))})(Math)},bPs0:function(et,de,N){"use strict";N.d(de,"b",function(){return u});var ee=N("k1fw"),K=N("9og8"),P=N("2qtc"),z=N("kLXV"),B=N("tJVT"),M=N("PpiC"),j=N("aHsQ"),U=N("sGsY"),_=N("WmNS"),R=N.n(_),c=N("q1tI"),g=N.n(c),w=N("bntm"),y=N("V0Rq"),f=N("wd/R"),m=N.n(f),a=N("Ty5D"),n=N("9kvl"),o=U.a.Countdown,u=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],x=function(v){var O=v.globalSetting,A=v.loading,p=v.user,h=v.exercise,s=v.dispatch,l=Object(M.a)(v,["globalSetting","loading","user","exercise","dispatch"]),D=Object(c.useState)({}),T=Object(B.a)(D,2),S=T[0],I=T[1],C=z.a.useModal(),W=Object(B.a)(C,2),Y=W[0],H=W[1],F=Object(c.useRef)(),q=Object(c.useRef)(null),le=Object(c.useRef)(null),pe=Object(c.useState)(!0),Ae=Object(B.a)(pe,2),Ge=Ae[0],Fe=Ae[1],Ue=Object(a.h)().query,_e=Object(a.i)();Object(c.useEffect)(function(){var Me,We,Ke,Qe,Ze;if(clearTimeout(q.current),document.addEventListener(Object(w.c)(),Se,!1),window.addEventListener("blur",ae,!1),(Me=h.exerciseUserInfo)!==null&&Me!==void 0&&Me.screen_open&&Object(w.a)()&&(s({type:"globalSetting/headerFooterToggle",payload:!1}),Fe(!1)),(We=h.exerciseUserInfo)!==null&&We!==void 0&&We.screen_at&&m()().diff(m()((Ke=h.exerciseUserInfo)===null||Ke===void 0?void 0:Ke.screen_at),"seconds")>0)je();else if((Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_open&&!Object(w.a)()){var yt=document.domain==="kepukehuan.educoder.net"?30:h.exerciseUserInfo.screen_sec+10+1;F.current=z.a.info({icon:null,content:g.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",g.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",h.exerciseUserInfo.screen_num-h.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",g.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:g.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:function(){var dt;je(),(dt=F.current)===null||dt===void 0||dt.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+yt*1e3})),"S\uFF09"),onOk:function(){var dt;(dt=F.current)===null||dt===void 0||dt.destroy(),Fe(!1),Object(w.d)(document.body),document.getElementById("root").addEventListener("click",xe,!1)}})}return(Ze=h.exerciseUserInfo)!==null&&Ze!==void 0&&Ze.screen_open&&!Object(w.a)()||document.getElementById("root").addEventListener("click",xe,!1),function(){document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1),window.removeEventListener("blur",ae,!1),clearTimeout(q.current)}},[]),Object(c.useEffect)(function(){setTimeout(function(){h.actionTabs.removeEventListenerExitScreen&&(clearTimeout(q.current),document.getElementById("root").removeEventListener("click",xe,!1),document.removeEventListener(Object(w.c)(),Se,!1))},500),he()},[h.actionTabs]),Object(c.useEffect)(function(){setTimeout(function(){h.exerciseUserInfo.used_screen_num>h.exerciseUserInfo.screen_num?ue():!Ge},500)},[h.exerciseUserInfo]);var je=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke;return R.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Ze.next=2,oe();case 2:Ke=Ze.sent,setTimeout(function(){var yt,vt;(yt=F.current)===null||yt===void 0||yt.destroy(),F.current=z.a.info({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(vt=h.exerciseUserInfo)===null||vt===void 0?void 0:vt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var dt=Object(K.a)(R.a.mark(function At(){return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:Object(w.d)(document.body);case 1:case"end":return Oe.stop()}},At)}));function pt(){return dt.apply(this,arguments)}return pt}()})},1e3);case 4:case"end":return Ze.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),xe=function(We){!Object(w.a)()&&We.target.nodeName!=="A"&&We.target.nodeName!=="BUTTON"&&We.target.innerHTML!=="\u786E \u5B9A"&&(Object(w.d)(document.body),console.log("documentClick.full"))},he=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt;return R.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,s({type:"exercise/getExerciseUserInfo",payload:Object(ee.a)({},_e)});case 2:return dt=At.sent,vt(dt==null?void 0:dt.data),At.abrupt("return",dt==null?void 0:dt.data);case 5:case"end":return At.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),te=function(){var Me=Object(K.a)(R.a.mark(function We(Ke){var Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:(Qe=F.current)===null||Qe===void 0||((Ze=Qe.destroyAll)===null||Ze===void 0)||Ze.call(Qe),F.current=z.a.info({maskClosable:!1,keyboard:!1,okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",g.a.createElement("span",{style:{display:"inline-block"}},g.a.createElement(o,{onFinish:oe,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(h.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(yt=h.exerciseUserInfo)===null||yt===void 0?void 0:yt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",g.a.createElement("span",{className:"c-red"},h.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",g.a.createElement("br",null),g.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var pt=Object(K.a)(R.a.mark(function wt(){return R.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:clearTimeout(le.current),Object(w.d)(document.body),F.current.destroy();case 3:case"end":return we.stop()}},wt)}));function At(){return pt.apply(this,arguments)}return At}()}),le.current=setTimeout(function(){var pt;F.current.update({okText:g.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:g.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",g.a.createElement("span",{className:"c-red"},Ke+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",g.a.createElement("span",{className:"c-red"},(pt=h.exerciseUserInfo)===null||pt===void 0?void 0:pt.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(h.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return dt.stop()}},We)}));return function(Ke){return Me.apply(this,arguments)}}(),ye=function(){location.href="/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},ue=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze;return R.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return(Ke=F.current)===null||Ke===void 0||((Qe=Ke.destroyAll)===null||Qe===void 0)||Qe.call(Ke),vt.next=3,Object(y.Z)({categoryId:_e.categoryId,commit_method:1});case 3:Ze=vt.sent,Ze&&Le();case 5:case"end":return vt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Le=function(){var We,Ke;document.removeEventListener(Object(w.c)(),Se,!1),Object(w.b)(),(We=F.current)===null||We===void 0||((Ke=We.destroyAll)===null||Ke===void 0)||Ke.call(We),Y.info({content:g.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",g.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){ye()}})},ae=function(We){Object(w.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(w.b)()},oe=function(){var Me=Object(K.a)(R.a.mark(function We(){return R.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.abrupt("return",new Promise(function(){var Ze=Object(K.a)(R.a.mark(function yt(vt){var dt,pt,At;return R.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(!((dt=h.exerciseUserInfo)!==null&&dt!==void 0&&dt.screen_at)){Oe.next=3;break}return Oe.next=3,Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0}));case 3:return Oe.next=5,Object(y.Q)({id:_e.categoryId});case 5:if(pt=Oe.sent,!(pt!=null&&pt.is_commit)){Oe.next=9;break}return Le(),Oe.abrupt("return");case 9:return Oe.next=11,he();case 11:At=Oe.sent,vt(At);case 13:case"end":return Oe.stop()}},yt)}));return function(yt){return Ze.apply(this,arguments)}}()));case 1:case"end":return Qe.stop()}},We)}));return function(){return Me.apply(this,arguments)}}(),Se=function(){var Me=Object(K.a)(R.a.mark(function We(){var Ke,Qe,Ze,yt;return R.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(Ke=!1,console.log("fullscreen change"),!Object(w.a)()){dt.next=7;break}(Qe=h.exerciseUserInfo)!==null&&Qe!==void 0&&Qe.screen_at&&Object(y.g)(Object(ee.a)(Object(ee.a)({},_e),{},{reset:!0})),clearTimeout(q.current),dt.next=17;break;case 7:return Ke=!0,dt.next=10,Object(y.g)(Object(ee.a)({},_e));case 10:return dt.next=12,he();case 12:Ze=dt.sent,te(Ze.used_screen_num),yt=setTimeout(Object(K.a)(R.a.mark(function pt(){return R.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:case"end":return wt.stop()}},pt)})),h.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),q.current=yt;case 17:s({type:"globalSetting/headerFooterToggle",payload:Ke});case 18:case"end":return dt.stop()}},We)}));return function(){return Me.apply(this,arguments)}}();return g.a.createElement("div",null,H)};de.a=Object(n.a)(function(E){var v=E.loading,O=E.user,A=E.exercise,p=E.globalSetting;return{globalSetting:p,user:O,exercise:A,loading:v.effects}})(x)},bT9E:function(et,de,N){"use strict";N.d(de,"a",function(){return K});var ee=N("VTBJ");function K(P,z){var B=Object(ee.a)({},P);return Array.isArray(z)&&z.forEach(function(M){delete B[M]}),B}},biw7:function(et,de,N){"use strict";var ee=N("q1tI"),K=N.n(ee),P=ee.createContext(null);de.a=P},c5Ni:function(et,de,N){},cQPA:function(et,de,N){"use strict";N.r(de);var ee=N("T2oS"),K=N("W9HT"),P=N("sPJy"),z=N("bE4q"),B=N("+L6B"),M=N("2/Rp"),j=N("14J3"),U=N("BMrR"),_=N("jCWc"),R=N("kPKH"),c=N("5Dmo"),g=N("3S7+"),w=N("sRBo"),y=N("kaz8"),f=N("7Kak"),m=N("9yH6"),a=N("MXD1"),n=N("CFYs"),o=N("miYZ"),u=N("tsqr"),x=N("2qtc"),E=N("kLXV"),v=N("k1fw"),O=N("9og8"),A=N("tJVT"),p=N("PpiC"),h=N("5NDa"),s=N("5rEg"),l=N("aHsQ"),D=N("sGsY"),T=N("WmNS"),S=N.n(T),I=N("q1tI"),C=N.n(I),W=N("Ty5D"),Y=N("55Ip"),H=N("9kvl"),F=N("gUdW"),q=N("xGfz"),le=N("jhfD"),pe=N("BlwA"),Ae=N("bPs0"),Ge=N("wd/R"),Fe=N.n(Ge),Ue=N("9GDu"),_e=N.n(Ue),je=N("1vsH"),xe=N("s8TD"),he=N("xKgJ"),te=N("bntm"),ye=N("V0Rq"),ue=N("HBuW"),Le=N("9Bee"),ae=N("Ot1p"),oe=function(Xe){var Pe,se,fe,$e,ke,it,at=Xe.item,Ne=Xe.answerData,Ve=Xe.isEducation,tt=Xe.sign,ft=Xe.onBlur,Ct=ft===void 0?function(){}:ft,zt=Object(I.useRef)(""),qt=Object(I.useState)(),Qt=Object(A.a)(qt,2),St=Qt[0],ln=Qt[1],Bt=Object(I.useState)(!1),Yt=Object(A.a)(Bt,2),Mt=Yt[0],tn=Yt[1],mn=Object(I.useState)(Ve||!1),An=Object(A.a)(mn,2),lt=An[0],Rt=An[1],Jt=Object(I.useRef)(),nn=function(){clearInterval(Jt.current),Jt.current=setInterval(function(){Mt&&Ct(zt.current)},30*1e3)},un=function(G){Ct(zt.current);var b="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(G||window.event).returnValue=b,b};return Object(I.useEffect)(function(){console.log("isFocus:",Mt),Mt?(window.addEventListener("beforeunload",un),nn()):window.removeEventListener("beforeunload",un)},[Mt]),Object(I.useEffect)(function(){ln(at==null?void 0:at.a_flag)},[at==null?void 0:at.a_flag]),Object(I.useEffect)(function(){return function(){clearInterval(Jt.current)}},[]),console.log(!at.repeat_answer&&(at==null||((Pe=at.user_answer)===null||Pe===void 0)?void 0:Pe.length)>0&&!at.israp,222),C.a.createElement("div",null,(Ne==null||((se=Ne.exercise)===null||se===void 0)?void 0:se.commit_status)===1?C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u6211\u7684\u7B54\u6848\uFF1A"),C.a.createElement("div",{className:_e.a.simpleText},C.a.createElement(Le.a,{value:at==null||((fe=at.user_answer)===null||fe===void 0)?void 0:fe[0]}))):C.a.createElement("div",{className:at.user_score&&(at.user_score===at.question_score?"c-green":"c-red")},lt?C.a.createElement(ae.a,{watch:!0,isFocus:!0,defaultValue:at==null||(($e=at.user_answer)===null||$e===void 0)?void 0:$e[0],id:at==null?void 0:at.question_id,onChange:function(G){zt.current=G,tn(!0)},onBlur:function(){setTimeout(function(){Ct(zt.current)},200),clearInterval(Jt.current),tn(!1)}}):C.a.createElement("div",{onClick:function(){var G;if(!at.repeat_answer&&(at==null||((G=at.user_answer)===null||G===void 0)?void 0:G.length)>0)return;tt.current=!0,Rt(!0)}},C.a.createElement(s.a,{disabled:!at.repeat_answer&&(at==null||((ke=at.user_answer)===null||ke===void 0)?void 0:ke.length)>0&&!at.israp,size:"large",className:"current",placeholder:"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54",readOnly:!0}))),(at==null?void 0:at.standard_answer)&&C.a.createElement("div",null,C.a.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),C.a.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},C.a.createElement(Le.a,{value:at==null||((it=at.standard_answer)===null||it===void 0)?void 0:it[0]}))))},Se=oe,Me=N("g9YV"),We=N("wCAj"),Ke=N("5GOC"),Qe=N("JsLm"),Ze=N("ZW9T"),yt=N("o/qq"),vt=N.n(yt),dt=function(Xe){var Pe,se,fe,$e,ke=Xe.item,it=Xe.answerData,at=Object(I.useState)([]),Ne=Object(A.a)(at,2),Ve=Ne[0],tt=Ne[1],ft=Object(I.useState)([]),Ct=Object(A.a)(ft,2),zt=Ct[0],qt=Ct[1];Object(I.useEffect)(function(){var Bt;if(!(ke!=null&&(Bt=ke.shixun_details)!==null&&Bt!==void 0&&Bt.length))return;for(var Yt=[],Mt=[],tn=0;tn<(ke==null||((mn=ke.shixun_details)===null||mn===void 0)?void 0:mn.length);tn++){for(var mn,An,lt,Rt=0;Rt<(ke==null?void 0:ke.shixun_details[tn].stage_list.length);Rt++){var Jt,nn,un,cn,G=ke==null?void 0:ke.shixun_details[tn].stage_list[Rt];Yt.push(Object(v.a)(Object(v.a)({},G),{operation:ke==null||((Jt=ke.shixun_details)===null||Jt===void 0||((nn=Jt[tn])===null||nn===void 0||((un=nn.shixun_detail)===null||un===void 0||((cn=un[0])===null||cn===void 0))))?void 0:cn.game_identifier}))}if(ke!=null&&(An=ke.shixun_details)!==null&&An!==void 0&&(lt=An[tn])!==null&<!==void 0&<.shixun_detail){var b,L,V;Mt.push(ke==null||((b=ke.shixun_details)===null||b===void 0||((L=b[tn])===null||L===void 0||((V=L.shixun_detail)===null||V===void 0)))?void 0:V[0])}}qt(Mt),tt(Yt)},[ke==null?void 0:ke.shixun_details]);var Qt=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:function(Yt){return C.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:Yt&&Yt.length>25?Yt:""},Yt)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.evaluate_count?Mt.evaluate_count:C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:function(Yt,Mt){var tn=!1;return Mt.finished_time&&it!==null&&it!==void 0&&it.exercise&&it!==null&&it!==void 0&&it.exercise_answer_user&&((it==null?void 0:it.exercise.time)===-1?tn=Fe()(it==null?void 0:it.exercise.end_time).isBefore(Mt.finished_time):tn=Fe()(it==null?void 0:it.exercise_answer_user.start_at).add(it==null?void 0:it.exercise.time,"m").isBefore(Mt.finished_time)),C.a.createElement("span",null,Mt.finished_time||C.a.createElement("span",{className:"c-grey-999"},"--"),C.a.createElement("span",{className:"c-orange-ff9 "},tn?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.time_consuming||C.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:function(Yt,Mt,tn){return Yt?C.a.createElement(Qe.a,{affix:!1,className:"mt10"},C.a.createElement(Qe.a.Link,{href:"#challenge_".concat(ke==null?void 0:ke.question_id).concat(tn),title:C.a.createElement("span",{style:{color:"#0152d9"}},"\u67E5\u770B")})):C.a.createElement("span",{className:"c-grey-999"},"--")}}],St=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Yt,Mt){return C.a.createElement("span",null,Mt.error_msg?Mt.error_msg:"--")}}],ln={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement("div",{className:"mt15 mb15"},(it==null||((Pe=it.exercise)===null||Pe===void 0)?void 0:Pe.commit_status)===0&&C.a.createElement("div",null,ke.shixun.map(function(Bt,Yt){return C.a.createElement(U.a,{className:"font16",gutter:[0,20]},C.a.createElement(R.a,{flex:"1"},Bt.challenge_name," (",Bt.challenge_score,"\u5206)"),C.a.createElement(R.a,{flex:"100px",className:"tr"},Bt.answer_status===0&&C.a.createElement("span",{className:"font12 tag-style-border border-orange c-orange "},"\u672A\u5B8C\u6210"),Bt.answer_status===1&&C.a.createElement("span",{className:"font12 tag-style-border border-green c-green "},"\u5DF2\u5B8C\u6210")))})),(it==null||((se=it.exercise)===null||se===void 0)?void 0:se.commit_status)!==0||(it==null||((fe=it.exercise)===null||fe===void 0)?void 0:fe.user_exercise_status)!==0?C.a.createElement(C.a.Fragment,null,!!(Ve!=null&&Ve.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),C.a.createElement(We.a,{columns:Qt,dataSource:Ve,pagination:!1})),!!(zt!=null&&zt.length)&&C.a.createElement("div",null,C.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),zt==null?void 0:zt.map(function(Bt,Yt){return C.a.createElement("div",{id:"challenge_".concat(ke==null?void 0:ke.question_id).concat(Yt),className:"mt5"},C.a.createElement("div",null,C.a.createElement("span",{className:"font16 mr15"}," \u7B2C",Bt.position,"\u5173"),C.a.createElement(Y.a,{className:"current c-black font16",to:"/tasks/".concat(Bt.game_identifier)},Bt.name)),(Bt==null?void 0:Bt.st)===0&&Bt.passed_code&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.a.createElement("h2",null,"\u6700\u540E\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",C.a.createElement("span",{className:"c-light-black"},Bt.path)),C.a.createElement(Ze.b,{height:300,language:"python",theme:"default",value:Bt.passed_code,options:ln})))}))):C.a.createElement(C.a.Fragment,null,C.a.createElement(Le.a,{className:"c-grey-999 mt20 mb20",value:ke==null?void 0:ke.question_title}),ke==null||(($e=ke.shixun)===null||$e===void 0)?void 0:$e.map(function(Bt,Yt){return C.a.createElement("p",{className:"font16 c-grey-666 mb5",key:Yt},C.a.createElement("span",{className:"mr20"},"\u7B2C",Bt==null?void 0:Bt.challenge_position,"\u5173 ",Bt==null?void 0:Bt.challenge_name),C.a.createElement("span",null,Bt==null?void 0:Bt.challenge_score,"\u5206"))})))},pt=dt,At=N("J66h"),wt=function(Xe){var Pe=Xe.item,se=Xe.answerData,fe=Object(I.useState)([]),$e=Object(A.a)(fe,2),ke=$e[0],it=$e[1];Object(I.useEffect)(function(){var Ve;if((Pe==null||((Ve=Pe.evaluate_codes)===null||Ve===void 0)?void 0:Ve.length)>0){var tt;it(Pe==null||((tt=Pe.evaluate_codes)===null||tt===void 0)?void 0:tt.map(function(ft,Ct){return{key:Ct+1,error_msg:ft!=null&&ft.error_msg?At.Base64.decode(ft==null?void 0:ft.error_msg):""}}))}else it([{key:"--",error_msg:"--"}])},[Pe==null?void 0:Pe.evaluate_codes]);var at=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(tt,ft){return C.a.createElement("span",null,ft.error_msg?ft.error_msg:"--")}}],Ne={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"mt15 mb15"},C.a.createElement(Le.a,{value:Pe==null?void 0:Pe.description})),!!(Pe!=null&&Pe.user_answer.length)&&(Pe==null?void 0:Pe.passed_code)&&C.a.createElement("aside",{className:vt.a.shixunWrp},C.a.createElement("h3",null,"\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),C.a.createElement(Ze.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:Pe!=null&&Pe.passed_code?At.Base64.decode(Pe==null?void 0:Pe.passed_code):"",options:Ne})))},Oe=wt,we=N("oBTY"),Je=N("m3rI"),st=s.a.TextArea,He=function(Xe){var Pe,se,fe=Xe.item,$e=Xe.answerData,ke=Xe.answerCheckData,it=ke===void 0?{}:ke,at=Xe.sign,Ne=Xe.onBlur,Ve=Ne===void 0?function(){}:Ne,tt=Object(I.useState)([]),ft=Object(A.a)(tt,2),Ct=ft[0],zt=ft[1],qt=Object(I.useRef)(!1);Object(I.useEffect)(function(){return window.addEventListener("beforeunload",Qt),function(){window.removeEventListener("beforeunload",Qt)}},[Ct,it,fe]);var Qt=function(){var St=Object(O.a)(S.a.mark(function ln(){var Bt,Yt,Mt,tn,mn,An,lt,Rt;return S.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(!(qt.current===!1)){nn.next=2;break}return nn.abrupt("return");case 2:if(Bt=Ct[qt.current],Yt=Bt.answer_text,Mt=Bt.choice_id,Yt.replaceAll(" ","")){nn.next=5;break}return nn.abrupt("return");case 5:if(mn={questionId:fe==null?void 0:fe.question_id,exercise_choice_id:Mt,answer_text:Yt},!((it==null?void 0:it.ip_limit)==="inner"||it.ip_bind)){nn.next=10;break}return nn.next=9,Object(xe.a)({ip_limit:it==null?void 0:it.ip_limit});case 9:tn=nn.sent;case 10:mn.ip=tn,An=Object(v.a)({},mn),lt={type:"application/json"},Rt=new Blob([JSON.stringify(An)],lt),window.navigator.sendBeacon("".concat(Je.a.API_SERVER,"/api/exercise_questions/").concat(mn.questionId,"/exercise_answers.json"),Rt);case 15:case"end":return nn.stop()}},ln)}));return function(){return St.apply(this,arguments)}}();return Object(I.useEffect)(function(){for(var St=[],ln=function(Mt){var tn,mn=(fe==null||((tn=fe.user_answer)===null||tn===void 0)?void 0:tn.find(function(An){return An.choice_id===Mt+1}))||{choice_id:Mt+1,answer_text:""};St.push(Object(v.a)({},mn))},Bt=0;Bt<(fe==null?void 0:fe.multi_count);Bt++)ln(Bt);zt(St)},[fe==null?void 0:fe.user_answer]),C.a.createElement("div",null,Ct==null?void 0:Ct.map(function(St,ln){var Bt;return C.a.createElement("div",{key:ln,className:"mt10"},C.a.createElement("span",null,"\u6211\u7684\u7B54\u6848\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,rows:4,disabled:!fe.repeat_answer&&(fe==null||((Bt=fe.user_answer)===null||Bt===void 0)?void 0:Bt.length)>0&&!fe.israp||!!($e!=null&&$e.exercise.commit_status),value:St==null?void 0:St.answer_text,onChange:function(Mt){qt.current=ln,Ct[ln].answer_text=Mt.target.value,zt(Object(we.a)(Ct))},onFocus:function(){at.current=!0},onBlur:function(Mt){qt.current=!1,setTimeout(function(){Ve(St==null?void 0:St.answer_text,ln+1,Ct)},200)},className:"overflow_hidden ".concat(fe.user_score&&(fe.user_score===fe.question_score?"c-green":"c-red"))})))}),!!(fe!=null&&(Pe=fe.standard_answer)!==null&&Pe!==void 0&&Pe.length)&&C.a.createElement("div",null,fe==null||((se=fe.standard_answer)===null||se===void 0)?void 0:se.map(function(St,ln){return C.a.createElement("div",null,C.a.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",ln+1,"\uFF09:"),C.a.createElement("div",null,C.a.createElement(st,{autoSize:!0,disabled:!0,value:St==null?void 0:St.answer_text[0]})))})))},nt=He,Te=N("lzim"),ge=s.a.TextArea,be=function(Xe){var Pe=Xe.data;return C.a.createElement("div",{className:"tc mt80"},C.a.createElement("img",{width:"486",src:Te.n})," ",C.a.createElement("br",null),Pe.status===-1&&C.a.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),Pe.status===-2&&C.a.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",C.a.createElement("span",{className:"c-red"},Pe.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),C.a.createElement(M.a,{className:"mt40 pl20 pr20",type:"primary"},C.a.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875")))},re=be,ie=N("LvDl"),ce=D.a.Countdown,Ee=s.a.TextArea,Be=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ie={1:"\u672A\u53D1\u5E03",2:"\u5DF2\u53D1\u5E03",3:"\u5DF2\u622A\u6B62"},ut={1:_e.a.flagActive,2:_e.a.flagHalf},bt={0:"c-red-ee4",1:"c-green"},Tt=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],xt=function(Xe){var Pe,se,fe,$e,ke,it,at,Ne,Ve,tt,ft,Ct,zt,qt,Qt,St,ln,Bt,Yt,Mt,tn,mn,An,lt,Rt,Jt,nn,un,cn,G,b,L=Xe.globalSetting,V=Xe.loading,J=Xe.user,Q=Xe.dispatch,De=Object(p.a)(Xe,["globalSetting","loading","user","dispatch"]),ot=Object(W.i)(),Ot=Object(I.useState)({}),Ft=Object(A.a)(Ot,2),ve=Ft[0],Gt=Ft[1],en=Object(I.useState)({}),Tn=Object(A.a)(en,2),Wn=Tn[0],tr=Tn[1],Rn=Object(I.useState)({}),or=Object(A.a)(Rn,2),fr=or[0],Vn=or[1],sr=Object(I.useState)(!1),Jn=Object(A.a)(sr,2),Mr=Jn[0],Xn=Jn[1],Ir=Object(I.useState)(!0),yr=Object(A.a)(Ir,2),Tr=yr[0],Yr=yr[1],br=Object(I.useState)(!1),nr=Object(A.a)(br,2),Ur=nr[0],_r=nr[1],Fr=Object(I.useState)(!1),Sn=Object(A.a)(Fr,2),hn=Sn[0],kn=Sn[1],yn=Object(I.useState)(),Ln=Object(A.a)(yn,2),bn=Ln[0],wr=Ln[1],Bn=Object(I.useState)(0),Qn=Object(A.a)(Bn,2),zr=Qn[0],jr=Qn[1],Dr=Object(I.useState)(""),Jr=Object(A.a)(Dr,2),rr=Jr[0],Wr=Jr[1],Er=Object(I.useState)("none"),Hr=Object(A.a)(Er,2),Zr=Hr[0],ir=Hr[1],ri=Object(I.useState)(""),ii=Object(A.a)(ri,2),Xt=ii[0],on=ii[1],$t=Object(I.useState)({status:0}),dn=Object(A.a)($t,2),En=dn[0],wn=dn[1],gn=Object(I.useRef)(),xn=Object(I.useRef)(!1),Hn=Object(I.useRef)({}),fn=Object(I.useState)(0),Pr=Object(A.a)(fn,2),Ht=Pr[0],_n=Pr[1],pr=Object(I.useState)(0),lr=Object(A.a)(pr,2),Kt=lr[0],pn=lr[1],Cn=Object(I.useState)(!1),ur=Object(A.a)(Cn,2),qr=ur[0],Rr=ur[1],gi=Object(I.useState)(!1),vi=Object(A.a)(gi,2),ai=vi[0],Gi=vi[1],xa=Object(I.useState)(),Ca=Object(A.a)(xa,2),Sa=Ca[0],wi=Ca[1],Aa=Object(I.useState)(),Ta=Object(A.a)(Aa,2),oi=Ta[0],Gr=Ta[1];Object(I.useEffect)(function(){return(Object(he.c)()||Object(he.l)())&&dr(),window.addEventListener("message",yi),function(){window.removeEventListener("message",yi),window.removeEventListener("beforeunload",Da),location.pathname.indexOf("/detail")>-1&&Object(te.b)()}},[ot.categoryId,J.userInfo.login]);var yi=function(me){me.data==="backExercise"&&(ir("none"),Wr(""),dr())},wa=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn;return S.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.next=2,Q({type:"exercise/getExerciseUserInfo",payload:Object(v.a)({},ot)});case 2:if(rt=In.sent,tr(Object(v.a)({},rt.data)),!((rt==null||((ct=rt.data)===null||ct===void 0)?void 0:ct.ip_limit)!=="no")){In.next=11;break}if(!((rt==null||((_t=rt.data)===null||_t===void 0)?void 0:_t.ip_limit)==="inner")){In.next=9;break}return In.next=8,Object(xe.a)({ip_limit:rt==null||((mt=rt.data)===null||mt===void 0)?void 0:mt.ip_limit});case 8:Nt=In.sent;case 9:return In.next=11,Object(je.q)({exerciseId:ot.categoryId,ip:Nt,errmsgHide:!0,ip_limit:rt==null||((It=rt.data)===null||It===void 0)?void 0:It.ip_limit}).catch(function(ui){wn(ui)});case 11:if(!((rt==null?void 0:rt.status)==0)){In.next=18;break}if(!((rt==null||((Lt=rt.data)===null||Lt===void 0)?void 0:Lt.used_screen_num)>(rt==null||((Zt=rt.data)===null||Zt===void 0)?void 0:Zt.screen_num)&&rt!==null&&rt!==void 0&&(jt=rt.data)!==null&&jt!==void 0&&jt.screen_open)){In.next=15;break}return Ri(),In.abrupt("return",!1);case 15:_r(rt==null?void 0:rt.data.check_camera),kn(rt==null||((rn=rt.data)===null||rn===void 0)?void 0:rn.screen_open),rt!=null&&(Mn=rt.data)!==null&&Mn!==void 0&&Mn.check_camera||dr();case 18:case"end":return In.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Da=function(me){var ct="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(me||window.event).returnValue=ct,ct},dr=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt,_t,mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Xn(!0),Lt.next=3,Object(ye.Y)(Object(v.a)({},ot)).catch(function(){return Xn(!1)});case 3:rt=Lt.sent,((ct=rt)===null||ct===void 0?void 0:ct.exercise)&&(rt.exercise.user_exercise_status=1),Xn(!1),rt&&(rt.exercise_types=((_t=rt)===null||_t===void 0?void 0:_t.exercise_types)||((mt=rt)===null||mt===void 0||((It=mt.exercise_scores)===null||It===void 0)?void 0:It.exercise_types),Gt(rt));case 7:case"end":return Lt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}();Object(I.useEffect)(function(){var Ut,me,ct;((Ut=ve.exercise)===null||Ut===void 0?void 0:Ut.time)===0&&Ri(),((me=ve.exercise)===null||me===void 0?void 0:me.time)&&wr(Date.now()+(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.time)*1e3*60)},[(Pe=ve.exercise)===null||Pe===void 0?void 0:Pe.time]);var si=function(){var me;(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.exercise_status)===3?E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",C.a.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",C.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It;return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,Object(ye.R)({categoryId:ot.categoryId,user_ids:[ve==null||((mt=ve.exercise_answer_user)===null||mt===void 0)?void 0:mt.user_id]});case 2:It=Lt.sent,It&&(u.b.info(It==null?void 0:It.message),ei());case 4:case"end":return Lt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()})},ei=function(){dr()},ro=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct,rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ye.ab)({categoryId:ot.categoryId,commit_method:2});case 2:ct=mt.sent,(ct==null?void 0:ct.status)===0&&(E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",C.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var It=Object(O.a)(S.a.mark(function Lt(){return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:ei();case 1:case"end":return jt.stop()}},Lt)}));function Nt(){return It.apply(this,arguments)}return Nt}()}),u.b.info(ct==null?void 0:ct.message)),(ct==null?void 0:ct.status)===-3&&(rt=parseInt(ct==null?void 0:ct.message),ve.exercise.time=rt,Gt(Object(v.a)({},ve)));case 5:case"end":return mt.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),Di=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(ue.D)({id:ct.shixun_identifier});case 2:rt=mt.sent,rt!=null&&rt.game_identifier&&(Wr("/tasks/".concat(rt.game_identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block")),(rt==null?void 0:rt.status)===-3?Object(je.o)():(rt==null?void 0:rt.status)===2?io(rt==null?void 0:rt.message,ct.question_id):(rt==null?void 0:rt.status)===3&&Vi(rt==null?void 0:rt.message);case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),io=function Ut(me,ct){var rt;me=(rt=me)!==null&&rt!==void 0&&rt.includes(".json")?me:"".concat(me,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var _t=Object(O.a)(S.a.mark(function It(){var Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({url:me});case 2:if(Nt=jt.sent,Nt){jt.next=5;break}return jt.abrupt("return");case 5:return u.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),jt.next=8,Object(ue.D)({id:Nt.shixun_identifier});case 8:if(Lt=jt.sent,!(Lt!=null&&Lt.game_identifier)){jt.next=12;break}return Di({shixun_identifier:Lt==null?void 0:Lt.game_identifier,question_id:ct}),jt.abrupt("return");case 12:(Lt==null?void 0:Lt.status)===2?Ut(Lt==null?void 0:Lt.message,ct):(Lt==null?void 0:Lt.status)===3&&Vi(Lt==null?void 0:Lt.message);case 13:case"end":return jt.stop()}},It)}));function mt(){return _t.apply(this,arguments)}return mt}()})},Vi=function(me){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",me,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Xi=function(me){me.redo?E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:C.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var ct=Object(O.a)(S.a.mark(function _t(){var mt,It,Nt,Lt;return S.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,Object(ye.S)({id:me.myshixun_identifier,url:me.url});case 2:mt=jt.sent,mt&&(It=Object(ie.cloneDeep)(ve==null?void 0:ve.exercise_question_types),Nt=It==null?void 0:It.findIndex(function(rn){return rn.question_type===5}),It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).redo=!1,It[Nt].items.find(function(rn){return rn.question_id===me.question_id}).shixun_identifier=mt.shixun_identifier,ve.exercise_question_types=It,Gt(ve),Lt=Object(v.a)(Object(v.a)({},me),{},{shixun_identifier:mt.shixun_identifier}),Di(Lt));case 4:case"end":return jt.stop()}},_t)}));function rt(){return ct.apply(this,arguments)}return rt}()}):Di(me)},li=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt;return S.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(!ct.hack_identifier){mt.next=5;break}return mt.next=3,Object(ye.X)({id:ct.hack_identifier});case 3:rt=mt.sent,(rt==null?void 0:rt.status)===0&&(Wr("/myproblems/".concat(rt.identifier,"?type=exercises&exercisesId=").concat(ot.categoryId,"&coursesId=").concat(ot.coursesId,"&login=").concat(ot.login,"&questionId=").concat(ct.question_id)),ir("block"));case 5:case"end":return mt.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),mr=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){var It,Nt;return S.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(Xn(!0),ct){Zt.next=4;break}return console.error("handleSave no questionId params"),Zt.abrupt("return");case 4:return Zt.next=6,Object(ye.cb)({questionId:ct,exercise_choice_id:rt,answer_text:_t});case 6:Nt=Zt.sent,(Nt==null?void 0:Nt.status)===0&&(mt&&mt(),Vr()),Xn(!1);case 9:case"end":return Zt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Qi=function(){var Ut=Object(O.a)(S.a.mark(function me(ct){var rt,_t;return S.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,Object(ye.V)({id:ot.categoryId});case 2:if(rt=It.sent,rt){It.next=5;break}return It.abrupt("return");case 5:rt.question_undo!==0||rt.oj_undo!==0?(_t="",rt.question_undo!==0&&rt.oj_undo!==0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(rt.oj_undo," \u4E2A\u7F16\u7A0B\u9898"):rt.question_undo!==0&&rt.oj_undo===0?_t="\u6709 ".concat(rt.question_undo," \u9898\u672A\u5B8C\u6210"):rt.question_undo===0&&rt.oj_undo!==0&&(_t="\u6709 ".concat(rt.oj_undo," \u7F16\u7A0B\u9898\u672A\u5B8C\u6210")),E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},_t,C.a.createElement("br",null),ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()})):E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:C.a.createElement("div",{className:"tc font16"},ct?"\u5728".concat(Fe()(rt.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var Nt=Object(O.a)(S.a.mark(function Zt(){return S.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:ct?ei():Ri();case 1:case"end":return rn.stop()}},Zt)}));function Lt(){return Nt.apply(this,arguments)}return Lt}()});case 6:case"end":return It.stop()}},me)}));return function(ct){return Ut.apply(this,arguments)}}(),Yi=function(me){return C.a.createElement("div",null,C.a.createElement(n.a,{strokeColor:{from:"#108ee9",to:"#87d068"},status:"active",percent:me}),C.a.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026"))},ao=function(){var me=0,ct=E.a.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Yi(me)}),rt=setInterval(function(){me<=100?(me+=2,ct.update({content:Yi(me)})):(ct.destroy(),clearInterval(rt))},50)},Ri=function(){var Ut=Object(O.a)(S.a.mark(function me(){var ct;return S.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return ao(),_t.next=3,Object(ye.ab)({categoryId:ot.categoryId,commit_method:1});case 3:ct=_t.sent,Object(te.b)(),Q({type:"exercise/setActionTabs",payload:Object(v.a)({},{removeEventListenerExitScreen:!0})}),(ct==null?void 0:ct.status)===0&&(u.b.success(ct==null?void 0:ct.message),_r(!1),setTimeout(function(){E.a.info({title:"\u4EA4\u5377\u6210\u529F\uFF01",okText:"\u786E\u5B9A",onOk:function(){ei()}})},3e3));case 7:case"end":return _t.stop()}},me)}));return function(){return Ut.apply(this,arguments)}}(),oo=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt){return S.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:mr(rt,ct,null,function(){ve.question_status.find(function(Lt){return Lt.ques_id===rt}).ques_status=ct?1:0,mt.user_answer=[],mt.user_answer.push(ct),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))});case 1:case"end":return Nt.stop()}},me)}));return function(ct,rt,_t,mt){return Ut.apply(this,arguments)}}(),Ra=function(){var Ut=Object(O.a)(S.a.mark(function me(ct,rt,_t,mt,It){return S.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:mr(mt.question_id,ct,null,function(){var Zt,jt,rn;mt.user_answer=[],mt.user_answer.push(ct);var Mn=It==null||((Zt=It.sub_exercise_questions)===null||Zt===void 0)?void 0:Zt.filter(function(Nn){var In;return((In=Nn.user_answer)===null||In===void 0?void 0:In.length)===0});ve.question_status.find(function(Nn){return Nn.ques_id===rt}).ques_status=(Mn==null?void 0:Mn.length)===(It==null||((jt=It.sub_exercise_questions)===null||jt===void 0)?void 0:jt.length)?0:(Mn==null?void 0:Mn.length)>0&&(Mn==null?void 0:Mn.length)<(It==null||((rn=It.sub_exercise_questions)===null||rn===void 0)?void 0:rn.length)?2:1,Gt(Object(v.a)({},ve))});case 1:case"end":return Lt.stop()}},me)}));return function(ct,rt,_t,mt,It){return Ut.apply(this,arguments)}}(),Oa=function(me,ct,rt){mr(ct,me,null,function(){rt.user_answer=me,rt.repeat_answer||(rt.israp=!0),ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me!=null&&me.length?1:0,Gt(Object(v.a)({},ve))})},bi=function(me,ct,rt,_t,mt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(rt,ct,me,function(){ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.every(function(Nt){return!!Nt.answer_text})?1:ve.question_status.find(function(Nt){return Nt.ques_id===rt}).ques_status=_t.some(function(Nt){return!!Nt.answer_text})?2:0;var It={choice_id:ct,answer_text:me};mt.user_answer.filter(function(Nt){return Nt.choice_id!=ct})?mt.user_answer.splice(ct-1,1,It):mt.user_answer.push(It),mt.repeat_answer||(mt.israp=!0),Gt(Object(v.a)({},ve))})},La=function(me,ct,rt){if(!me.replaceAll(" ","")){u.b.warning("\u56DE\u7B54\u4E0D\u80FD\u4E3A\u7A7A\u6216\u8005\u7EAF\u7A7A\u683C"),Vr();return}mr(ct,null,me,function(){ve.question_status.find(function(_t){return _t.ques_id===ct}).ques_status=me?1:0,rt.user_answer=[],rt.user_answer.push(me),rt.repeat_answer||(rt.israp=!0),Gt(Object(v.a)({},ve))})},Ji=function(me,ct){var rt,_t,mt,It,Nt,Lt;return C.a.createElement("div",null,C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null||((rt=me.user_answer)===null||rt===void 0)?void 0:rt[0],onChange:function(jt){return oo(jt.target.value,me==null?void 0:me.question_id,ct,me)},className:me.user_score&&"edu-radio-".concat(me.user_score===me.question_score?"green":"red")},me==null||((_t=me.question_choices)===null||_t===void 0)?void 0:_t.map(function(Zt,jt){var rn,Mn=me.question_type==2,Nn=Mn?"":"".concat(Be[jt],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:jt},C.a.createElement(m.a,{disabled:!me.repeat_answer&&(me==null||((rn=me.user_answer)===null||rn===void 0)?void 0:rn.length)>0&&!me.israp,value:Zt==null?void 0:Zt.choice_id},C.a.createElement("span",{className:"mr3"},Nn),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Zt==null?void 0:Zt.choice_text})))})),Object(he.s)()&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.answer_open)&&((ve==null||((It=ve.exercise)===null||It===void 0)?void 0:It.exercise_status)==3||(ve==null||((Nt=ve.exercise)===null||Nt===void 0)?void 0:Nt.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((Lt=me.standard_answer)===null||Lt===void 0)?void 0:Lt.map(function(Zt,jt){return C.a.createElement("span",null,Be[Number(Zt)-1])})))},Zi=function(me,ct,rt){var _t;return C.a.createElement("div",null,me==null||((_t=me.sub_exercise_questions)===null||_t===void 0)?void 0:_t.map(function(mt,It){var Nt,Lt,Zt,jt,rn,Mn;return C.a.createElement("div",null,C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},rt+1+"."+(It+1),"\uFF08\u5355\u9009\u9898\uFF09"),C.a.createElement(Le.a,{value:mt==null?void 0:mt.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",mt==null?void 0:mt.question_score,"\u5206\uFF09")),C.a.createElement(m.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:mt==null||((Nt=mt.user_answer)===null||Nt===void 0)?void 0:Nt[0],onChange:function(In){return Ra(In.target.value,me==null?void 0:me.question_id,It,mt,me)},className:mt.user_score&&"edu-radio-".concat(mt.user_score===mt.question_score?"green":"red")},mt==null||((Lt=mt.question_choices)===null||Lt===void 0)?void 0:Lt.map(function(Nn,In){var ui,Ua=mt.question_type==2,Li=Ua?"":"".concat(Be[In],".");return C.a.createElement("div",{className:_e.a.answerWrap,key:In},C.a.createElement(m.a,{disabled:!mt.repeat_answer&&(mt==null||((ui=mt.user_answer)===null||ui===void 0)?void 0:ui.length)>0,value:Nn==null?void 0:Nn.choice_id},C.a.createElement("span",{className:"mr3"},Li),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nn==null?void 0:Nn.choice_text})))})),Object(he.s)()&&(ve==null||((Zt=ve.exercise)===null||Zt===void 0)?void 0:Zt.answer_open)&&((ve==null||((jt=ve.exercise)===null||jt===void 0)?void 0:jt.exercise_status)==3||(ve==null||((rn=ve.exercise)===null||rn===void 0)?void 0:rn.user_exercise_status)==1)&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",mt==null||((Mn=mt.standard_answer)===null||Mn===void 0)?void 0:Mn.map(function(Nn,In){return C.a.createElement("span",null,Be[Number(Nn)-1])})))}))},Oi=function(me,ct){var rt,_t,mt,It;return C.a.createElement("div",null,C.a.createElement(y.a.Group,{disabled:!!(ve!=null&&ve.exercise.commit_status),defaultValue:me==null?void 0:me.user_answer,onChange:function(Lt){return Oa(Lt,me==null?void 0:me.question_id,me)},className:me.user_score&&"edu-checkbox-".concat(me.user_score===me.question_score?"green":"red")},me==null||((rt=me.question_choices)===null||rt===void 0)?void 0:rt.map(function(Nt,Lt){var Zt,jt="".concat(Be[Lt],".");return C.a.createElement("div",{className:_e.a.answerWrap},C.a.createElement(y.a,{disabled:!me.repeat_answer&&(me==null||((Zt=me.user_answer)===null||Zt===void 0)?void 0:Zt.length)>0&&!me.israp,value:Nt==null?void 0:Nt.choice_id},C.a.createElement("span",{className:"mr3"},jt),C.a.createElement(Le.a,{className:_e.a.renderHtml,value:Nt==null?void 0:Nt.choice_text})))})),Object(he.s)()&&(ve==null||((_t=ve.exercise)===null||_t===void 0)?void 0:_t.answer_open)&&(ve==null||((mt=ve.exercise)===null||mt===void 0)?void 0:mt.exercise_status)==3&&C.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",me==null||((It=me.standard_answer)===null||It===void 0)?void 0:It.map(function(Nt,Lt){return C.a.createElement("span",null,Be[Number(Nt)-1])})))},Ma=function(me,ct){return C.a.createElement(nt,{item:me,sign:xn,answerData:ve,answerCheckData:Wn,onBlur:function(_t,mt,It){return bi(_t,mt,me==null?void 0:me.question_id,It,me)}})},qi=function(me,ct){return C.a.createElement(Se,{item:me,answerData:ve,sign:xn,onBlur:function(_t){return La(_t,me==null?void 0:me.question_id,me)}})},kr=function(me,ct){return C.a.createElement(pt,{item:me,answerData:ve})},Ia=function(me,ct){return C.a.createElement(Oe,{item:me,answerData:ve})},Kr=function(me,ct,rt){var _t,mt,It=ve==null||((_t=ve.exercise_question_types)===null||_t===void 0)?void 0:_t.find(function(Nt){return Nt.question_type===ct});return C.a.createElement(C.a.Fragment,null,C.a.createElement("h1",{className:"font14 current",onClick:function(){fr[ct]=!fr[ct],Vn(Object(v.a)({},fr))}},!fr[ct]&&C.a.createElement(F.a,null),fr[ct]&&C.a.createElement(q.a,null),C.a.createElement("span",{className:"ml5 c-grey-666"},me)),C.a.createElement("ul",{className:_e.a.answerSheet,key:ct},!fr[ct]&&(It==null||((mt=It.items)===null||mt===void 0)?void 0:mt.map(function(Nt,Lt){if(Nt.question_type===ct){var Zt,jt;return C.a.createElement("li",{onClick:function(){if(xn.current){xn.current="appoint",Hn.current={oneindex:rt,twoindex:Lt};return}Ba({oneindex:rt,twoindex:Lt})},key:Lt,className:(ve==null||((Zt=ve.question_status)===null||Zt===void 0)?void 0:Zt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===1}))&&_e.a.active},Lt+1,(ve==null||((jt=ve.question_status)===null||jt===void 0)?void 0:jt.some(function(rn){return rn.ques_id===Nt.question_id&&(rn==null?void 0:rn.ques_status)===2}))&&C.a.createElement("div",{style:{height:3,background:"#0152d9",position:"absolute",width:26,bottom:0}}))}}))))},$i=function(me,ct){var rt,_t,mt,It,Nt,Lt,Zt=(me==null?void 0:me.question_type)==5?me==null?void 0:me.shixun_name:me==null?void 0:me.question_title;return C.a.createElement("div",{className:_e.a.questionItem,id:"Anchor_".concat(me==null?void 0:me.question_type,"_").concat(ct)},C.a.createElement("div",{style:{display:"flex",marginTop:20,userSelect:"none"}},C.a.createElement("span",{style:{flexShrink:0},className:"font18"},ct+1,"."),C.a.createElement(Le.a,{value:me==null?void 0:me.question_title}),C.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(me==null?void 0:me.question_type)===7?"\u5171".concat(me==null||((rt=me.sub_exercise_questions)===null||rt===void 0)?void 0:rt.length,"\u5C0F\u9898\uFF0C"):"",me==null?void 0:me.question_score,"\u5206\uFF09"),!(me!=null&&me.repeat_answer)&&C.a.createElement("span",{style:{color:"#FA6400 ",marginLeft:10,fontSize:16}},"\u6CE8\u610F\uFF1A\u8BE5\u9898\u4E0D\u5141\u8BB8\u91CD\u590D\u7B54\u9898"),!!(me!=null&&(_t=me.schools)!==null&&_t!==void 0&&_t.length)&&C.a.createElement(g.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},C.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"}))),(me==null?void 0:me.question_type)==0&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==2&&Ji(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==1&&Oi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==3&&Ma(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==4&&qi(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==5&&kr(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==6&&Ia(me,me==null?void 0:me.question_type),(me==null?void 0:me.question_type)==7&&Zi(me,me==null?void 0:me.question_type,ct),!!(me!=null&&(mt=me.answer_comments)!==null&&mt!==void 0&&mt.length)&&C.a.createElement("div",{className:"mt30"},me==null||((It=me.answer_comments)===null||It===void 0)?void 0:It.map(function(jt,rn){var Mn,Nn;return C.a.createElement("div",null,C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"},C.a.createElement("img",{src:Je.a.API_SERVER+"/images/"+((Mn=jt.user)===null||Mn===void 0?void 0:Mn.image_url),width:"40",style:{borderRadius:40}})),C.a.createElement(R.a,{flex:"1"},jt.updated_at,C.a.createElement("br",null),(Nn=jt.user)===null||Nn===void 0?void 0:Nn.name),C.a.createElement(R.a,{className:"c-grey-c"},jt.shixun_chanllge_position&&C.a.createElement("span",null,"\u7B2C",jt.shixun_chanllge_position,"\u5173"),me.question_type!==4&&C.a.createElement("span",null,"\u539F\u59CB\u5F97\u5206",jt.origin_score,"\u5206 \uFF0C")," \u4FEE\u6B63\u4E3A",jt.score,"\u5206")),jt.comment&&C.a.createElement(U.a,{align:"middle",gutter:[0,10]},C.a.createElement(R.a,{flex:"50px"}),C.a.createElement(R.a,{flex:"1"},C.a.createElement(Ee,{autoSize:!0,value:jt.comment,disabled:!0}))))})),C.a.createElement("div",{className:_e.a.itemType},C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"}),C.a.createElement(R.a,null,(me==null?void 0:me.question_type)<3&&(me==null?void 0:me.standard_answer_show)&&C.a.createElement("span",{className:"font16 ml20"},"\u6B63\u786E\u7B54\u6848\uFF1A",me==null?void 0:me.standard_answer_show),C.a.createElement("span",{className:"font16 ml20"},(me==null?void 0:me.user_score)!==null&&(me==null?void 0:me.user_score)>=0&&C.a.createElement("span",null,C.a.createElement("span",{className:bt[Number(me==null?void 0:me.answer_status)]||"c-orange-ff9"},me==null?void 0:me.user_score)," \u5206")),(me==null?void 0:me.question_type)==5&&!((Nt=ve.exercise)!==null&&Nt!==void 0&&Nt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return Xi(me)}},"\u8FDB\u5165\u7B54\u9898"),(me==null?void 0:me.question_type)==6&&!((Lt=ve.exercise)!==null&&Lt!==void 0&&Lt.commit_status)&&C.a.createElement(M.a,{type:"primary",className:"font16 ml20",onClick:function(){return li(me)}},"\u8FDB\u5165\u7B54\u9898")))))},_a=function(me,ct){return C.a.createElement(I.Fragment,null,me.question_type===0&&Kr("\u5355\u9009\u9898",0,ct),me.question_type===1&&Kr("\u591A\u9009\u9898",1,ct),me.question_type===2&&Kr("\u5224\u65AD\u9898",2,ct),me.question_type===3&&Kr("\u586B\u7A7A\u9898",3,ct),me.question_type===4&&Kr("\u7B80\u7B54\u9898",4,ct),me.question_type===5&&Kr("\u5B9E\u8BAD\u9898",5,ct),me.question_type===6&&Kr("\u7F16\u7A0B\u9898",6,ct),me.question_type===7&&Kr("\u7EC4\u5408\u9898",7,ct))},Pa=function(me){var ct=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],rt=["","\u5341","\u767E","\u5343","\u4E07"];me=parseInt(me);var _t=function(Lt){for(var Zt=Lt.toString().split("").reverse(),jt="",rn=0;rn0&&Zt[rn]==0&&Zt[rn-1]==0?"":ct[Zt[rn]]+(Zt[rn]==0?rt[0]:rt[rn]))+jt;return jt},mt=Math.floor(me/1e4),It=me%1e4;return It.toString().length<4&&(It="0"+It),mt?_t(mt)+"\u4E07"+_t(It):_t(me)},ea=function(){var me,ct,rt,_t,mt,It,Nt,Lt,Zt,jt,rn,Mn,Nn;return C.a.createElement(I.Fragment,{key:Ht},C.a.createElement("div",{className:"pt20"},C.a.createElement("span",{className:"font16 c-light-primary"},Pa(Ht+1),"\u3001",ve==null||((me=ve.exercise_question_types)===null||me===void 0||((ct=me[Ht])===null||ct===void 0))?void 0:ct.name),C.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ve==null||((rt=ve.exercise_question_types)===null||rt===void 0||((_t=rt[Ht])===null||_t===void 0))?void 0:_t.count,"\u9898\uFF1B",(ve==null||((mt=ve.exercise_question_types)===null||mt===void 0||((It=mt[Ht])===null||It===void 0))?void 0:It.question_type)===7?"\u5305\u542B".concat(ve==null||((Nt=ve.exercise_question_types)===null||Nt===void 0||((Lt=Nt[Ht])===null||Lt===void 0))?void 0:Lt.sub_questions_count,"\u5C0F\u9898"):""," \u5171",ve==null||((Zt=ve.exercise_question_types)===null||Zt===void 0||((jt=Zt[Ht])===null||jt===void 0))?void 0:jt.score,"\u5206\uFF09")),C.a.createElement(I.Fragment,{key:Kt},$i(ve==null||((rn=ve.exercise_question_types)===null||rn===void 0||((Mn=rn[Ht])===null||Mn===void 0||((Nn=Mn.items)===null||Nn===void 0)))?void 0:Nn[Kt],Kt)))},ka=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(1);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,_n(Ht),pn(Kt)},Na=function(){var me;if(!ai&&(ve==null||((me=ve.exercise)===null||me===void 0)?void 0:me.user_exercise_status)===0&&Object(he.s)()){var ct,rt,_t,mt;if(!((ct=ve.exercise_question_types)!==null&&ct!==void 0&&(rt=ct[Ht])!==null&&rt!==void 0&&(_t=rt.items)!==null&&_t!==void 0&&(mt=_t[Kt])!==null&&mt!==void 0&&mt.repeat_answer)){Rr(!0),wi(2);return}}ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)},Ba=function(me){var ct,rt=me||Hn.current;if(!ai&&(ve==null||((ct=ve.exercise)===null||ct===void 0)?void 0:ct.user_exercise_status)===0&&Object(he.s)()){var _t,mt,It,Nt;if(!((_t=ve.exercise_question_types)!==null&&_t!==void 0&&(mt=_t[Ht])!==null&&mt!==void 0&&(It=mt.items)!==null&&It!==void 0&&(Nt=It[Kt])!==null&&Nt!==void 0&&Nt.repeat_answer)){Rr(!0),wi(3),Gr(rt);return}}_n(rt==null?void 0:rt.oneindex),pn(rt==null?void 0:rt.twoindex)},Vr=function(){var me;switch(xn.current){case"prev":ka();break;case"next":Na();break;case"appoint":Ba();break;case"submit":Qi(!1);break;default:}((me=document.activeElement)===null||me===void 0?void 0:me.localName)==="textarea"?xn.current=!0:xn.current=!1,Hn.current={}};return C.a.createElement(K.a,{size:"large",spinning:Mr},hn&&C.a.createElement(Ae.a,{iframe:gn}),C.a.createElement("iframe",{style:{display:Zr},id:"iframeShixuns",className:_e.a.iframe,src:rr,ref:gn,frameBorder:"0"}),C.a.createElement("section",{className:"edu-container"},C.a.createElement("section",{className:"animated fadeIn"},C.a.createElement("aside",{className:"mt10"},L.showHeaderFooter&&ot.coursesId!=="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},(se=J.userInfo)===null||se===void 0||((fe=se.course)===null||fe===void 0)?void 0:fe.course_name)),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise")},"\u8BD5\u5377")),C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),C.a.createElement(z.a.Item,null,($e=J.userInfo)===null||$e===void 0?void 0:$e.real_name)),L.showHeaderFooter&&ot.coursesId==="coursesId"&&C.a.createElement(z.a,{separator:">"},C.a.createElement(z.a.Item,null,C.a.createElement(Y.a,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),C.a.createElement(z.a.Item,null,(ke=J.userInfo)===null||ke===void 0?void 0:ke.real_name))),C.a.createElement("aside",{className:[_e.a.title,"mt10"].join(" ")},C.a.createElement(U.a,{style:{width:"100%"},align:"middle"},C.a.createElement(R.a,{flex:"1"},C.a.createElement("div",{className:_e.a.title},(L==null?void 0:L.showHeaderFooter)&&C.a.createElement(Y.a,{to:ot.coursesId==="coursesId"?"/paperlibrary":"/classrooms/".concat(ot.coursesId,"/exercise/").concat(ot.categoryId,"/detail")},C.a.createElement(le.a,{className:"font16 c-black"})),C.a.createElement("strong",{className:"font24 ml5"},ve==null||((it=ve.exercise)===null||it===void 0)?void 0:it.exercise_name),(ve==null||((at=ve.exercise)===null||at===void 0)?void 0:at.is_random)&&C.a.createElement("span",{className:_e.a.randomFlag},"\u968F\u673A"),C.a.createElement(je.k,{status:[je.c[99]]}))),C.a.createElement(R.a,{style:{display:"flex"}},(ve==null||((Ne=ve.user_score)===null||Ne===void 0)?void 0:Ne.length)&&C.a.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u603B\u5F97\u5206\uFF1A",C.a.createElement("span",{className:"c-red"},ve==null?void 0:ve.user_score)," \u5206"),!!(ve!=null&&(Ve=ve.exercise)!==null&&Ve!==void 0&&Ve.time)&&!(ve!=null&&(tt=ve.exercise)!==null&&tt!==void 0&&tt.commit_status)&&C.a.createElement("aside",{className:"".concat(_e.a.countDown," ").concat(Xt)},"\u5269\u4F59\u65F6\u95F4:",C.a.createElement(ce,{value:bn,onFinish:ro})),!(ve!=null&&(ft=ve.exercise)!==null&&ft!==void 0&&ft.commit_status)&&C.a.createElement(M.a,{className:_e.a.submitButton,style:{marginLeft:20},type:"primary",onClick:function(){if(xn.current){xn.current="submit";return}Qi(!1)}},"\u4EA4\u5377"))))),En.status===0&&C.a.createElement(U.a,{className:"mt10"},C.a.createElement(R.a,{flex:Tr?"316px":"16px"},C.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Ur&&C.a.createElement(pe.a,{number:(ve==null||((Ct=ve.exercise)===null||Ct===void 0)?void 0:Ct.photo_count)-(ve==null||((zt=ve.exercise)===null||zt===void 0)?void 0:zt.take_photo),time:(qt=ve.exercise)===null||qt===void 0?void 0:qt.left_time,update:dr,supportCamera:function(me){me===2?(dr(),kn(Wn==null?void 0:Wn.screen_open)):me===1&&setTimeout(function(){return De.history.push("/")},3e3)}}),C.a.createElement("div",{className:"relative",style:{minHeight:236}},Tr&&C.a.createElement("aside",{className:"bg-white p16"},C.a.createElement(U.a,null,C.a.createElement(R.a,{span:8},C.a.createElement("span",{className:"font16 blod"},"\u7B54\u9898\u5361")),C.a.createElement(R.a,{span:16},C.a.createElement("div",{className:"tr",style:{display:"flex",alignItems:"center",justifyContent:"end"}},C.a.createElement("span",{className:_e.a.answerYes}),"\u5DF2\u7B54",C.a.createElement("span",{style:{width:13,height:13,display:"flex",flexDirection:"column-reverse"},className:"".concat(_e.a.answerNo," ml10")},C.a.createElement("div",{style:{height:"10%",background:"#0152d9"}})),"\u90E8\u5206\u7B54\u9898",C.a.createElement("span",{className:"".concat(_e.a.answerNo," ml10")}),"\u672A\u7B54"))),C.a.createElement("aside",{className:_e.a.answerInfo},C.a.createElement(U.a,null,C.a.createElement(C.a.Fragment,null,C.a.createElement(R.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),C.a.createElement(R.a,{span:12,className:"tr c-blue"},ve==null||((Qt=ve.question_status)===null||Qt===void 0||((St=Qt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||St===void 0))?void 0:St.length," / ",ve==null||((ln=ve.exercise_types)===null||ln===void 0)?void 0:ln.q_counts),C.a.createElement(R.a,{span:24},C.a.createElement(n.a,{trailColor:"#c3ced2",percent:(ve==null||((Bt=ve.question_status)===null||Bt===void 0||((Yt=Bt.filter(function(Ut){return(Ut==null?void 0:Ut.ques_status)===1}))===null||Yt===void 0))?void 0:Yt.length)/(ve==null||((Mt=ve.exercise_types)===null||Mt===void 0)?void 0:Mt.q_counts)*100,showInfo:!1}))),C.a.createElement(R.a,null,C.a.createElement("span",{className:"c-grey-333"},"\u5171 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((tn=ve.exercise_types)===null||tn===void 0)?void 0:tn.q_counts)||(ve==null||((mn=ve.exercise_scores)===null||mn===void 0||((An=mn.exercise_types)===null||An===void 0))?void 0:An.q_counts))," \u9898\uFF1A"),C.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",C.a.createElement("span",{className:"c-blue-4ca"},(ve==null||((lt=ve.exercise_types)===null||lt===void 0)?void 0:lt.q_scores)||(ve==null||((Rt=ve.exercise_scores)===null||Rt===void 0||((Jt=Rt.exercise_types)===null||Jt===void 0))?void 0:Jt.q_scores))," \u5206")))),C.a.createElement(U.a,null,C.a.createElement(R.a,{flex:"1"},C.a.createElement("aside",{className:_e.a.cardList},ve==null||((nn=ve.exercise_question_types)===null||nn===void 0)?void 0:nn.map(function(Ut,me){return C.a.createElement(I.Fragment,{key:Ut.question_type},_a(Ut,me))}))))),C.a.createElement("div",{className:_e.a.fold,onClick:function(){return Yr(!Tr)}},Tr&&C.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!Tr&&C.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),C.a.createElement(R.a,{flex:"1"},C.a.createElement("section",{className:[_e.a.bg,"pl30","pr30","pb30","mb50","ml20"].join(" ")},C.a.createElement("div",{style:{maxHeight:600,overflow:"hidden auto"}},ea()),C.a.createElement("div",{style:{marginTop:60,textAlign:"center",paddingRight:30}},(Ht!=0||Kt!=0)&&C.a.createElement(M.a,{className:"".concat(_e.a.submitButton," mr10"),type:"default",onClick:function(){if(xn.current){xn.current="prev";return}ka()}},"\u4E0A\u4E00\u9898"),!(Ht===(ve==null||((un=ve.exercise_question_types)===null||un===void 0)?void 0:un.length)-1&&Kt===(ve==null||((cn=ve.exercise_question_types)===null||cn===void 0||((G=cn[Ht])===null||G===void 0||((b=G.items)===null||b===void 0)))?void 0:b.length)-1)&&C.a.createElement(M.a,{className:_e.a.submitButton,type:"primary",onClick:function(){if(xn.current){xn.current="next";return}Na()}},"\u4E0B\u4E00\u9898")))),C.a.createElement(E.a,{title:"\u6CE8\u610F",visible:qr,onCancel:function(){return Rr(!1)},footer:!1},C.a.createElement("div",null,C.a.createElement("p",{style:{marginBottom:0}},"\u79BB\u5F00\u8BE5\u9898\u540E\u4E0D\u5141\u8BB8\u518D\u6B21\u4FEE\u6539\u7B54\u6848\uFF0C\u786E\u8BA4\u79BB\u5F00\u5417\uFF1F"),C.a.createElement("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between"}},C.a.createElement(y.a,{checked:ai,onChange:function(me){Gi(me.target.checked)}},"\u4E0B\u6B21\u4E0D\u518D\u663E\u793A"),C.a.createElement("div",null,C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp?(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve))):ve.exercise_question_types[Ht].items[Kt].israp===""&&(ve.exercise_question_types[Ht].items[Kt].israp=!0,Gt(Object(v.a)({},ve)))}},"\u6211\u518D\u60F3\u60F3"),C.a.createElement(M.a,{onClick:function(){ve.exercise_question_types[Ht].items[Kt].israp=!1,Gt(Object(v.a)({},ve)),Sa===1?(Kt===0?(Ht-=1,Kt=ve.exercise_question_types[Ht].items.length-1):Kt-=1,console.log(ve.exercise_question_types[Ht].items[Kt],"-----"),_n(Ht),pn(Kt)):Sa===2?(ve.exercise_question_types[Ht].items.length-1===Kt?(Ht=Ht+1,Kt=0):Kt=Kt+1,_n(Ht),pn(Kt)):(_n(oi.oneindex),pn(oi.twoindex)),Rr(!1)},type:"primary",style:{marginLeft:30}},"\u786E\u8BA4")))))),En.status!==0&&C.a.createElement(re,{data:En})))},gt=de.default=Object(H.a)(function(qe){var Xe=qe.loading,Pe=qe.user,se=qe.globalSetting;return{globalSetting:se,user:Pe,loading:Xe.effects}})(xt)},cRFk:function(et,de,N){et.exports=N.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(et,de,N){et.exports=N.p+"static/choose.4ad1045f.svg"},dejd:function(et,de,N){},djh8:function(et,de,N){et.exports=N.p+"static/qrCode.42927872.png"},dmUQ:function(et,de,N){"use strict";var ee=N("Ff2n"),K=N("rePB"),P=N("1OyB"),z=N("vuIU"),B=N("Ji7U"),M=N("md7G"),j=N("foSv"),U=N("q1tI"),_=N.n(U),R=N("TSYQ"),c=N.n(R),g=N("4IlW");function w(s,l){var D=Object.keys(s);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(s);l&&(T=T.filter(function(S){return Object.getOwnPropertyDescriptor(s,S).enumerable})),D.push.apply(D,T)}return D}function y(s){for(var l=1;l1?pe-1:0),Ge=1;Ge1?H-1:0),q=1;q=0)return parseInt(Y.slice(Y.indexOf("e-")+2),10);var H=0;return Y.indexOf(".")>=0&&(H=Y.length-Y.indexOf(".")-1),H},S.getInputDisplayValue=function(W){var Y=W||S.state,H=Y.focused,F=Y.inputValue,q=Y.value,le;H?le=F:le=S.toPrecisionAsStep(q),le==null&&(le="");var pe=S.formatWrapper(le);return v(S.props.decimalSeparator)&&(pe=pe.toString().replace(".",S.props.decimalSeparator)),pe},S.recordCursorPosition=function(){try{S.cursorStart=S.input.selectionStart,S.cursorEnd=S.input.selectionEnd,S.currentValue=S.input.value,S.cursorBefore=S.input.value.substring(0,S.cursorStart),S.cursorAfter=S.input.value.substring(S.cursorEnd)}catch(W){}},S.restoreByAfter=function(W){if(W===void 0)return!1;var Y=S.input.value,H=Y.lastIndexOf(W);if(H===-1)return!1;var F=S.cursorBefore.length;return S.lastKeyCode===g.a.DELETE&&S.cursorBefore.charAt(F-1)===W[0]?(S.fixCaret(F,F),!0):H+W.length===Y.length?(S.fixCaret(H,H),!0):!1},S.partRestoreByAfter=function(W){return W===void 0?!1:Array.prototype.some.call(W,function(Y,H){var F=W.substring(H);return S.restoreByAfter(F)})},S.isNotCompleteNumber=function(W){return isNaN(W)||W===""||W===null||W&&W.toString().indexOf(".")===W.toString().length-1},S.stop=function(){S.autoStepTimer&&clearTimeout(S.autoStepTimer)},S.down=function(W,Y,H){S.pressingUpOrDown=!0,S.step("down",W,Y,H)},S.up=function(W,Y,H){S.pressingUpOrDown=!0,S.step("up",W,Y,H)},S.saveInput=function(W){S.input=W};var I=T.value;I===void 0&&(I=T.defaultValue),S.state={focused:T.autoFocus};var C=S.getValidValue(S.toNumber(I));return S.state=y(y({},S.state),{},{inputValue:S.toPrecisionAsStep(C),value:C}),S}return Object(z.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(S){var I=this.props,C=I.value,W=I.onChange,Y=I.max,H=I.min,F=this.state.focused;if(S){if(!O(S.value,C)||!O(S.max,Y)||!O(S.min,H)){var q=F?C:this.getValidValue(C),le;this.pressingUpOrDown?le=q:this.inputting?le=this.rawInput:le=this.toPrecisionAsStep(q),this.setState({value:q,inputValue:le})}var pe="value"in this.props?C:this.state.value;"max"in this.props&&S.max!==Y&&typeof pe=="number"&&pe>Y&&W&&W(Y),"min"in this.props&&S.min!==H&&typeof pe=="number"&&pe1&&arguments[1]!==void 0?arguments[1]:this.props.min,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,W=parseFloat(S);return isNaN(W)?S:(WC&&(W=C),W)}},{key:"setValue",value:function(S,I){var C=this.props.precision,W=this.isNotCompleteNumber(parseFloat(S))?null:parseFloat(S),Y=this.state.value,H=Y===void 0?null:Y,F=this.state.inputValue,q=F===void 0?null:F,le=typeof W=="number"?W.toFixed(C):"".concat(W),pe=W!==H||le!=="".concat(q);return"value"in this.props?(q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:q},I)):this.setState({value:W,inputValue:this.toPrecisionAsStep(S)},I),pe&&this.props.onChange(W),W}},{key:"getMaxPrecision",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.props,W=C.precision,Y=C.step;if(v(W))return W;var H=this.getPrecision(I),F=this.getPrecision(Y),q=this.getPrecision(S);return S?Math.max(q,H+F):H+F}},{key:"getPrecisionFactor",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.getMaxPrecision(S,I);return Math.pow(10,C)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(S){return this.props.formatter?this.props.formatter(S):S}},{key:"toPrecisionAsStep",value:function(S){if(this.isNotCompleteNumber(S)||S==="")return S;var I=Math.abs(this.getMaxPrecision(S));return isNaN(I)?S.toString():Number(S).toFixed(I)}},{key:"toNumber",value:function(S){var I=this.props.precision,C=this.state.focused,W=S&&S.length>16&&C;return this.isNotCompleteNumber(S)||W?S:v(I)?Math.round(S*Math.pow(10,I))/Math.pow(10,I):Number(S)}},{key:"upStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S+W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"downStep",value:function(S,I){var C=this.props.step,W=this.getPrecisionFactor(S,I),Y=Math.abs(this.getMaxPrecision(S,I)),H=((W*S-W*C*I)/W).toFixed(Y);return this.toNumber(H)}},{key:"step",value:function(S,I){var C=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=arguments.length>3?arguments[3]:void 0;this.stop(),I&&(I.persist(),I.preventDefault());var H=this.props;if(H.disabled)return;var F=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(F))return;var q=this["".concat(S,"Step")](F,W),le=q>H.max||qH.max?q=H.max:q=Ae),nt=(At||At===0)&&(isNaN(At)||Number(At)<=Ge),Te=He||W||Y,ge=nt||W||Y,be=c()("".concat(C,"-handler"),"".concat(C,"-handler-up"),Object(K.a)({},"".concat(C,"-handler-up-disabled"),Te)),re=c()("".concat(C,"-handler"),"".concat(C,"-handler-down"),Object(K.a)({},"".concat(C,"-handler-down-disabled"),ge)),ie=H?{onTouchStart:Te?a:this.up,onTouchEnd:this.stop}:{onMouseDown:Te?a:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ce=H?{onTouchStart:ge?a:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?a:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return _.a.createElement("div",{className:Oe,style:Fe,title:Ue,onMouseEnter:_e,onMouseLeave:je,onMouseOver:xe,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},_.a.createElement("div",{className:"".concat(C,"-handler-wrap")},_.a.createElement("span",Object.assign({unselectable:"on"},ie,{role:"button","aria-label":"Increase Value","aria-disabled":Te,className:be}),q||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-up-inner"),onClick:n})),_.a.createElement("span",Object.assign({unselectable:"on"},ce,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:re}),le||_.a.createElement("span",{unselectable:"on",className:"".concat(C,"-handler-down-inner"),onClick:n}))),_.a.createElement("div",{className:"".concat(C,"-input-wrap")},_.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ge,"aria-valuemax":Ae,"aria-valuenow":At,required:te,type:Le,placeholder:ae,onPaste:yt,onClick:ye,onMouseUp:this.onMouseUp,className:"".concat(C,"-input"),tabIndex:ue,autoComplete:F,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Je?this.onKeyDown:a,onKeyUp:Je?this.onKeyUp:a,autoFocus:Qe,maxLength:Ke,readOnly:Y,disabled:W,max:Ae,min:Ge,step:We,name:Ze,title:Ue,id:oe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(st),pattern:Me,inputMode:Se,onInput:vt},we))))}}]),D}(_.a.Component);A.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:a,onKeyDown:a,onPressEnter:a,onFocus:a,onBlur:a,parser:o,required:!1,autoComplete:"off"};var p=A,h=de.a=p},fjLI:function(et,de,N){"use strict";N.d(de,"e",function(){return R}),N.d(de,"a",function(){return c}),N.d(de,"c",function(){return g}),N.d(de,"d",function(){return y}),N.d(de,"b",function(){return f});var ee=N("8HAY"),K=N("Cg/j"),P=N("T8No"),z=N("nnTU"),B=N("MI8n"),M=function(){var m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,u){o.__proto__=u}||function(o,u){for(var x in u)u.hasOwnProperty(x)&&(o[x]=u[x])},m(a,n)};return function(a,n){m(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),j=function(m,a,n,o){var u=arguments.length,x=u<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,n):o,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(m,a,n,o);else for(var v=m.length-1;v>=0;v--)(E=m[v])&&(x=(u<3?E(x):u>3?E(a,n,x):E(a,n))||x);return u>3&&x&&Object.defineProperty(a,n,x),x},U=function(m,a){return function(n,o){a(n,o,m)}},_=function(){for(var m=0,a=0,n=arguments.length;a=0&&(u.splice(x,1),o._onDidChangeMenu.fire(a))}}},m.prototype.getMenuItems=function(a){var n=(this._menuItems.get(a)||[]).slice(0);return a===0&&this._appendImplicitItems(n),n},m.prototype._appendImplicitItems=function(a){for(var n=new Set,o=a.filter(function(A){return R(A)}),u=0,x=o;uC.length)&&(W=C.length);for(var Y=0,H=new Array(W);Y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(C,H))continue;Y[H]=C[H]}}return Y}function f(C,W){if(C==null)return{};var Y={},H=Object.keys(C),F,q;for(q=0;q=0)continue;Y[F]=C[F]}return Y}var m=function(W){var Y=W.className,H=W.percent,F=W.prefixCls,q=W.strokeColor,le=W.strokeLinecap,pe=W.strokeWidth,Ae=W.style,Ge=W.trailColor,Fe=W.trailWidth,Ue=W.transition,_e=y(W,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete _e.gapPosition;var je=Array.isArray(H)?H:[H],xe=Array.isArray(q)?q:[q],he=M(je),te=U(he,1),ye=te[0],ue=pe/2,Le=100-pe/2,ae="M ".concat(le==="round"?ue:0,",").concat(ue,` L `).concat(le==="round"?Le:100,",").concat(ue),oe="0 0 100 ".concat(pe),Se=0;return K.a.createElement("svg",j({className:z()("".concat(F,"-line"),Y),viewBox:oe,preserveAspectRatio:"none",style:Ae},_e),K.a.createElement("path",{className:"".concat(F,"-line-trail"),d:ae,strokeLinecap:le,stroke:Ge,strokeWidth:Fe||pe,fillOpacity:"0"}),je.map(function(Me,We){var Ke={strokeDasharray:"".concat(Me,"px, 100px"),strokeDashoffset:"-".concat(Se,"px"),transition:Ue||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qe=xe[We]||xe[xe.length-1];return Se+=Me,K.a.createElement("path",{key:We,className:"".concat(F,"-line-path"),d:ae,strokeLinecap:le,stroke:Qe,strokeWidth:pe,fillOpacity:"0",ref:ye[We],style:Ke})}))};m.defaultProps=B;var a=m;function n(){return n=Object.assign||function(C){for(var W=1;WC.length)&&(W=C.length);for(var Y=0,H=new Array(W);Y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(C,H))continue;Y[H]=C[H]}}return Y}function p(C,W){if(C==null)return{};var Y={},H=Object.keys(C),F,q;for(q=0;q=0)continue;Y[F]=C[F]}return Y}var h=0;function s(C){return+C.replace("%","")}function l(C){return Array.isArray(C)?C:[C]}function D(C,W,Y,H){var F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,q=arguments.length>5?arguments[5]:void 0,le=50-H/2,pe=0,Ae=-le,Ge=0,Fe=-2*le;switch(q){case"left":pe=-le,Ae=0,Ge=2*le,Fe=0;break;case"right":pe=le,Ae=0,Ge=-2*le,Fe=0;break;case"bottom":Ae=le,Fe=2*le;break;default:}var Ue="M 50,50 m ".concat(pe,",").concat(Ae,` a `).concat(le,",").concat(le," 0 1 1 ").concat(Ge,",").concat(-Fe,` - a `).concat(le,",").concat(le," 0 1 1 ").concat(-Ge,",").concat(Fe),_e=Math.PI*2*le,je={stroke:Y,strokeDasharray:"".concat(W/100*(_e-F),"px ").concat(_e,"px"),strokeDashoffset:"-".concat(F/2+C/100*(_e-F),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Ue,pathStyle:je}}var T=function(W){var Y=W.prefixCls,H=W.strokeWidth,F=W.trailWidth,q=W.gapDegree,le=W.gapPosition,pe=W.trailColor,Ae=W.strokeLinecap,Ge=W.style,Fe=W.className,Ue=W.strokeColor,_e=W.percent,je=A(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),xe=Object(ee.useMemo)(function(){return h+=1,h},[]),he=D(0,100,pe,H,q,le),te=he.pathString,ye=he.pathStyle,ue=l(_e),Le=l(Ue),ae=Le.find(function(Ke){return Object.prototype.toString.call(Ke)==="[object Object]"}),oe=M(ue),Se=o(oe,1),Me=Se[0],We=function(){var Qe=0;return ue.map(function(Ze,yt){var vt=Le[yt]||Le[Le.length-1],dt=Object.prototype.toString.call(vt)==="[object Object]"?"url(#".concat(Y,"-gradient-").concat(xe,")"):"",pt=D(Qe,Ze,vt,H,q,le);return Qe+=Ze,K.a.createElement("path",{key:yt,className:"".concat(Y,"-circle-path"),d:pt.pathString,stroke:dt,strokeLinecap:Ae,strokeWidth:H,opacity:Ze===0?0:1,fillOpacity:"0",style:pt.pathStyle,ref:Me[yt]})})};return K.a.createElement("svg",n({className:z()("".concat(Y,"-circle"),Fe),viewBox:"0 0 100 100",style:Ge},je),ae&&K.a.createElement("defs",null,K.a.createElement("linearGradient",{id:"".concat(Y,"-gradient-").concat(xe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ae).sort(function(Ke,Qe){return s(Ke)-s(Qe)}).map(function(Ke,Qe){return K.a.createElement("stop",{key:Qe,offset:Ke,stopColor:ae[Ke]})}))),K.a.createElement("path",{className:"".concat(Y,"-circle-trail"),d:te,stroke:pe,strokeLinecap:Ae,strokeWidth:F||H,fillOpacity:"0",style:ye}),We().reverse())};T.defaultProps=B;var S=T,I={Line:a,Circle:S}},hW8S:function(et,de,N){"use strict";N.d(de,"a",function(){return z}),N.d(de,"c",function(){return B}),N.d(de,"b",function(){return M});var ee=N("VTBJ"),K=N("Ff2n"),k=N("Kwbf"),z="RC_TABLE_INTERNAL_COL_DEFINE";function B(j){var U=j.expandable,_=Object(K.a)(j,["expandable"]);return"expandable"in j?Object(ee.a)(Object(ee.a)({},_),U):_}function M(j){return Object.keys(j).reduce(function(U,_){return(_.substr(0,5)==="data-"||_.substr(0,5)==="aria-")&&(U[_]=j[_]),U},{})}},ji0R:function(et,de,N){et.exports=N.p+"static/douyu.3e6df9ee.jpg"},kPWJ:function(et,de,N){et.exports=N.p+"static/question.cb52bef9.gif"},kPYp:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(et,de,N){},l2Kq:function(et,de,N){et.exports=N.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(et,de,N){(function(ee){ee(N("VrN/"),N("1eCo"),N("8EBN"))})(function(ee){"use strict";ee.defineMode("markdown",function(K,k){var z=ee.getMode(K,"text/html"),B=z.name=="null";function M(H){if(ee.findModeByName){var F=ee.findModeByName(H);F&&(H=F.mime||F.mimes[0])}var q=ee.getMode(K,H);return q.name=="null"?null:q}k.highlightFormatting===void 0&&(k.highlightFormatting=!1),k.maxBlockquoteDepth===void 0&&(k.maxBlockquoteDepth=0),k.taskLists===void 0&&(k.taskLists=!1),k.strikethrough===void 0&&(k.strikethrough=!1),k.emoji===void 0&&(k.emoji=!1),k.fencedCodeBlockHighlighting===void 0&&(k.fencedCodeBlockHighlighting=!0),k.fencedCodeBlockDefaultMode===void 0&&(k.fencedCodeBlockDefaultMode="text/plain"),k.xml===void 0&&(k.xml=!0),k.tokenTypeOverrides===void 0&&(k.tokenTypeOverrides={});var j={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var U in j)j.hasOwnProperty(U)&&k.tokenTypeOverrides[U]&&(j[U]=k.tokenTypeOverrides[U]);var _=/^([*\-_])(?:\s*\1){2,}\s*$/,R=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,g=k.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,w=/^ {0,3}(?:\={1,}|-{2,})\s*$/,y=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,a=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,n=" ";function o(H,F,q){return F.f=F.inline=q,q(H,F)}function u(H,F,q){return F.f=F.block=q,q(H,F)}function x(H){return!H||!/\S/.test(H.string)}function E(H){if(H.linkTitle=!1,H.linkHref=!1,H.linkText=!1,H.em=!1,H.strong=!1,H.strikethrough=!1,H.quote=0,H.indentedCode=!1,H.f==O){var F=B;if(!F){var q=ee.innerMode(z,H.htmlState);F=q.mode.name=="xml"&&q.state.tagStart===null&&!q.state.context&&q.state.tokenize.isInText}F&&(H.f=s,H.block=v,H.htmlState=null)}return H.trailingSpace=0,H.trailingSpaceNewLine=!1,H.prevLine=H.thisLine,H.thisLine={stream:null},null}function v(H,F){var q=H.column()===F.indentation,le=x(F.prevLine.stream),pe=F.indentedCode,Ae=F.prevLine.hr,Ge=F.list!==!1,Fe=(F.listStack[F.listStack.length-1]||0)+3;F.indentedCode=!1;var Ue=F.indentation;if(F.indentationDiff===null&&(F.indentationDiff=F.indentation,Ge)){for(F.list=null;Ue=4&&(pe||F.prevLine.fencedCodeEnd||F.prevLine.header||le))return H.skipToEnd(),F.indentedCode=!0,j.code;if(H.eatSpace())return null;if(q&&F.indentation<=Fe&&(xe=H.match(g))&&xe[1].length<=6)return F.quote=0,F.header=xe[1].length,F.thisLine.header=!0,k.highlightFormatting&&(F.formatting="header"),F.f=F.inline,p(F);if(F.indentation<=Fe&&H.eat(">"))return F.quote=q?1:F.quote+1,k.highlightFormatting&&(F.formatting="quote"),H.eatSpace(),p(F);if(!je&&!F.setext&&q&&F.indentation<=Fe&&(xe=H.match(R))){var he=xe[1]?"ol":"ul";return F.indentation=Ue+H.current().length,F.list=!0,F.quote=0,F.listStack.push(F.indentation),F.em=!1,F.strong=!1,F.code=!1,F.strikethrough=!1,k.taskLists&&H.match(c,!1)&&(F.taskList=!0),F.f=F.inline,k.highlightFormatting&&(F.formatting=["list","list-"+he]),p(F)}else{if(q&&F.indentation<=Fe&&(xe=H.match(f,!0)))return F.quote=0,F.fencedEndRE=new RegExp(xe[1]+"+ *$"),F.localMode=k.fencedCodeBlockHighlighting&&M(xe[2]||k.fencedCodeBlockDefaultMode),F.localMode&&(F.localState=ee.startState(F.localMode)),F.f=F.block=A,k.highlightFormatting&&(F.formatting="code-block"),F.code=-1,p(F);if(F.setext||(!_e||!Ge)&&!F.quote&&F.list===!1&&!F.code&&!je&&!m.test(H.string)&&(xe=H.lookAhead(1))&&(xe=xe.match(w)))return F.setext?(F.header=F.setext,F.setext=0,H.skipToEnd(),k.highlightFormatting&&(F.formatting="header")):(F.header=xe[0].charAt(0)=="="?1:2,F.setext=F.header),F.thisLine.header=!0,F.f=F.inline,p(F);if(je)return H.skipToEnd(),F.hr=!0,F.thisLine.hr=!0,j.hr;if(H.peek()==="[")return o(H,F,I)}return o(H,F,F.inline)}function O(H,F){var q=z.token(H,F.htmlState);if(!B){var le=ee.innerMode(z,F.htmlState);(le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText||F.md_inside&&H.current().indexOf(">")>-1)&&(F.f=s,F.block=v,F.htmlState=null)}return q}function A(H,F){var q=F.listStack[F.listStack.length-1]||0,le=F.indentation=H.quote?F.push(j.formatting+"-"+H.formatting[q]+"-"+H.quote):F.push("error"))}if(H.taskOpen)return F.push("meta"),F.length?F.join(" "):null;if(H.taskClosed)return F.push("property"),F.length?F.join(" "):null;if(H.linkHref?F.push(j.linkHref,"url"):(H.strong&&F.push(j.strong),H.em&&F.push(j.em),H.strikethrough&&F.push(j.strikethrough),H.emoji&&F.push(j.emoji),H.linkText&&F.push(j.linkText),H.code&&F.push(j.code),H.image&&F.push(j.image),H.imageAltText&&F.push(j.imageAltText,"link"),H.imageMarker&&F.push(j.imageMarker)),H.header&&F.push(j.header,j.header+"-"+H.header),H.quote&&(F.push(j.quote),!k.maxBlockquoteDepth||k.maxBlockquoteDepth>=H.quote?F.push(j.quote+"-"+H.quote):F.push(j.quote+"-"+k.maxBlockquoteDepth)),H.list!==!1){var le=(H.listStack.length-1)%3;le?le===1?F.push(j.list2):F.push(j.list3):F.push(j.list1)}return H.trailingSpaceNewLine?F.push("trailing-space-new-line"):H.trailingSpace&&F.push("trailing-space-"+(H.trailingSpace%2?"a":"b")),F.length?F.join(" "):null}function h(H,F){return H.match(y,!0)?p(F):void 0}function s(H,F){var q=F.text(H,F);if(typeof q!="undefined")return q;if(F.list)return F.list=null,p(F);if(F.taskList){var le=H.match(c,!0)[1]===" ";return le?F.taskOpen=!0:F.taskClosed=!0,k.highlightFormatting&&(F.formatting="task"),F.taskList=!1,p(F)}if(F.taskOpen=!1,F.taskClosed=!1,F.header&&H.match(/^#+$/,!0))return k.highlightFormatting&&(F.formatting="header"),p(F);var pe=H.next();if(F.linkTitle){F.linkTitle=!1;var Ae=pe;pe==="("&&(Ae=")"),Ae=(Ae+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ge="^\\s*(?:[^"+Ae+"\\\\]+|\\\\\\\\|\\\\.)"+Ae;if(H.match(new RegExp(Ge),!0))return j.linkHref}if(pe==="`"){var Fe=F.formatting;k.highlightFormatting&&(F.formatting="code"),H.eatWhile("`");var Ue=H.current().length;if(F.code==0&&(!F.quote||Ue==1))return F.code=Ue,p(F);if(Ue==F.code){var _e=p(F);return F.code=0,_e}else return F.formatting=Fe,p(F)}else if(F.code)return p(F);if(pe==="\\"&&(H.next(),k.highlightFormatting)){var je=p(F),xe=j.formatting+"-escape";return je?je+" "+xe:xe}if(pe==="!"&&H.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return F.imageMarker=!0,F.image=!0,k.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="["&&F.imageMarker&&H.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return F.imageMarker=!1,F.imageAltText=!0,k.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="]"&&F.imageAltText){k.highlightFormatting&&(F.formatting="image");var je=p(F);return F.imageAltText=!1,F.image=!1,F.inline=F.f=D,je}if(pe==="["&&!F.image)return F.linkText&&H.match(/^.*?\]/)||(F.linkText=!0,k.highlightFormatting&&(F.formatting="link")),p(F);if(pe==="]"&&F.linkText){k.highlightFormatting&&(F.formatting="link");var je=p(F);return F.linkText=!1,F.inline=F.f=H.match(/\(.*?\)| ?\[.*?\]/,!1)?D:s,je}if(pe==="<"&&H.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,k.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkInline}if(pe==="<"&&H.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,k.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkEmail}if(k.xml&&pe==="<"&&H.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=H.string.indexOf(">",H.pos);if(he!=-1){var te=H.string.substring(H.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(te)&&(F.md_inside=!0)}return H.backUp(1),F.htmlState=ee.startState(z),u(H,F,O)}if(k.xml&&pe==="<"&&H.match(/^\/\w*?>/))return F.md_inside=!1,"tag";if(pe==="*"||pe==="_"){for(var ye=1,ue=H.pos==1?" ":H.string.charAt(H.pos-2);ye<3&&H.eat(pe);)ye++;var Le=H.peek()||" ",ae=!/\s/.test(Le)&&(!a.test(Le)||/\s/.test(ue)||a.test(ue)),oe=!/\s/.test(ue)&&(!a.test(ue)||/\s/.test(Le)||a.test(Le)),Se=null,Me=null;if(ye%2&&(!F.em&&ae&&(pe==="*"||!oe||a.test(ue))?Se=!0:F.em==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Se=!1)),ye>1&&(!F.strong&&ae&&(pe==="*"||!oe||a.test(ue))?Me=!0:F.strong==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Me=!1)),Me!=null||Se!=null){k.highlightFormatting&&(F.formatting=Se==null?"strong":Me==null?"em":"strong em"),Se===!0&&(F.em=pe),Me===!0&&(F.strong=pe);var _e=p(F);return Se===!1&&(F.em=!1),Me===!1&&(F.strong=!1),_e}}else if(pe===" "&&(H.eat("*")||H.eat("_"))){if(H.peek()===" ")return p(F);H.backUp(1)}if(k.strikethrough){if(pe==="~"&&H.eatWhile(pe)){if(F.strikethrough){k.highlightFormatting&&(F.formatting="strikethrough");var _e=p(F);return F.strikethrough=!1,_e}else if(H.match(/^[^\s]/,!1))return F.strikethrough=!0,k.highlightFormatting&&(F.formatting="strikethrough"),p(F)}else if(pe===" "&&H.match(/^~~/,!0)){if(H.peek()===" ")return p(F);H.backUp(2)}}if(k.emoji&&pe===":"&&H.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){F.emoji=!0,k.highlightFormatting&&(F.formatting="emoji");var We=p(F);return F.emoji=!1,We}return pe===" "&&(H.match(/^ +$/,!1)?F.trailingSpace++:F.trailingSpace&&(F.trailingSpaceNewLine=!0)),p(F)}function l(H,F){var q=H.next();if(q===">"){F.f=F.inline=s,k.highlightFormatting&&(F.formatting="link");var le=p(F);return le?le+=" ":le="",le+j.linkInline}return H.match(/^[^>]+/,!0),j.linkInline}function D(H,F){if(H.eatSpace())return null;var q=H.next();return q==="("||q==="["?(F.f=F.inline=S(q==="("?")":"]"),k.highlightFormatting&&(F.formatting="link-string"),F.linkHref=!0,p(F)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(H){return function(F,q){var le=F.next();if(le===H){q.f=q.inline=s,k.highlightFormatting&&(q.formatting="link-string");var pe=p(q);return q.linkHref=!1,pe}return F.match(T[H]),q.linkHref=!0,p(q)}}function I(H,F){return H.match(/^([^\]\\]|\\.)*\]:/,!1)?(F.f=C,H.next(),k.highlightFormatting&&(F.formatting="link"),F.linkText=!0,p(F)):o(H,F,s)}function C(H,F){if(H.match(/^\]:/,!0)){F.f=F.inline=W,k.highlightFormatting&&(F.formatting="link");var q=p(F);return F.linkText=!1,q}return H.match(/^([^\]\\]|\\.)+/,!0),j.linkText}function W(H,F){return H.eatSpace()?null:(H.match(/^[^\s]+/,!0),H.peek()===void 0?F.linkTitle=!0:H.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),F.f=F.inline=s,j.linkHref+" url")}var Y={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:s,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&ee.copyState(z,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?ee.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,F){if(F.formatting=!1,H!=F.thisLine.stream){if(F.header=0,F.hr=!1,H.match(/^\s*$/,!0))return E(F),null;if(F.prevLine=F.thisLine,F.thisLine={stream:H},F.taskList=!1,F.trailingSpace=0,F.trailingSpaceNewLine=!1,!F.localState&&(F.f=F.block,F.f!=O)){var q=H.match(/^\s*/,!0)[0].replace(/\t/g,n).length;if(F.indentation=q,F.indentationDiff=null,q>0)return null}}return F.f(H,F)},innerMode:function(H){return H.block==O?{state:H.htmlState,mode:z}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:Y}},indent:function(H,F,q){return H.block==O&&z.indent?z.indent(H.htmlState,F,q):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,F,q):ee.Pass},blankLine:E,getType:p,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Y},"xml"),ee.defineMIME("text/markdown","markdown"),ee.defineMIME("text/x-markdown","markdown")})},lzim:function(et,de,N){"use strict";var ee=N("E7E6"),K=N.n(ee);N.d(de,"A",function(){return K.a});var k=N("/GNS"),z=N.n(k);N.d(de,"z",function(){return z.a});var B=N("FOrL"),M=N.n(B);N.d(de,"t",function(){return M.a});var j=N("HpTS"),U=N.n(j);N.d(de,"B",function(){return U.a});var _=N("tWlo"),R=N.n(_);N.d(de,"b",function(){return R.a});var c=N("7ZXX"),g=N.n(c);N.d(de,"n",function(){return g.a});var w=N("GABl"),y=N.n(w);N.d(de,"g",function(){return y.a});var f=N("onxn"),m=N.n(f);N.d(de,"p",function(){return m.a});var a=N("nKGa"),n=N.n(a);N.d(de,"o",function(){return n.a});var o=N("4qgm"),u=N.n(o);N.d(de,"D",function(){return u.a});var x=N("JeFH"),E=N.n(x);N.d(de,"c",function(){return E.a});var v=N("ji0R"),O=N.n(v);N.d(de,"k",function(){return O.a});var A=N("W6BS"),p=N.n(A);N.d(de,"E",function(){return p.a});var h=N("kPYp"),s=N.n(h);N.d(de,"F",function(){return s.a});var l=N("nukY"),D=N.n(l),T=N("4u4S"),S=N.n(T),I=N("yslc"),C=N.n(I),W=N("l2Kq"),Y=N.n(W),H=N("RMFE"),F=N.n(H);N.d(de,"q",function(){return F.a});var q=N("TGq3"),le=N.n(q);N.d(de,"r",function(){return le.a});var pe=N("SMhR"),Ae=N.n(pe);N.d(de,"C",function(){return Ae.a});var Ge=N("8/bI"),Fe=N.n(Ge);N.d(de,"l",function(){return Fe.a});var Ue=N("JWDV"),_e=N.n(Ue);N.d(de,"e",function(){return _e.a});var je=N("Xsq0"),xe=N.n(je);N.d(de,"s",function(){return xe.a});var he=N("Ohmc"),te=N.n(he);N.d(de,"d",function(){return te.a});var ye=N("csWT"),ue=N.n(ye);N.d(de,"f",function(){return ue.a});var Le=N("7v3h"),ae=N.n(Le);N.d(de,"m",function(){return ae.a});var oe=N("cRFk"),Se=N.n(oe);N.d(de,"y",function(){return Se.a});var Me=N("kPWJ"),We=N.n(Me);N.d(de,"x",function(){return We.a});var Ke=N("qgvg"),Qe=N.n(Ke);N.d(de,"u",function(){return Qe.a});var Ze=N("FPkq"),yt=N.n(Ze);N.d(de,"w",function(){return yt.a});var vt=N("A/g1"),dt=N.n(vt);N.d(de,"h",function(){return dt.a});var pt=N("Nmxd"),At=N.n(pt);N.d(de,"i",function(){return At.a});var wt=N("5D2P"),Oe=N.n(wt);N.d(de,"j",function(){return Oe.a});var we=N("djh8"),Je=N.n(we);N.d(de,"v",function(){return Je.a});var st=N("Jq4h"),He=N.n(st);N.d(de,"a",function(){return He.a})},n6Qo:function(et,de,N){"use strict";N.d(de,"a",function(){return U});var ee=N("q1tI"),K=N("biw7"),k=N("fyJ8");function z(_){var R=_.className,c=_.index,g=_.children,w=_.colSpan,y=_.rowSpan,f=ee.useContext(K.a),m=f.prefixCls,a=f.fixedInfoList,n=a[c];return ee.createElement(k.a,Object.assign({className:R,index:c,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:g,props:{colSpan:w,rowSpan:y}}}},n))}function B(_){return ee.createElement("tr",Object.assign({},_))}function M(_){var R=_.children,c=ee.useContext(K.a),g=c.prefixCls;return ee.createElement("tfoot",{className:"".concat(g,"-summary")},R)}var j=de.b=M,U={Cell:z,Row:B}},nKGa:function(et,de,N){et.exports=N.p+"static/export_exercise-template.f7655c19.png"},nnTU:function(et,de,N){"use strict";N.d(de,"b",function(){return U}),N.d(de,"a",function(){return _});var ee=N("pmY6"),K=N("746U"),k=N("Cg/j"),z=N("MI8n"),B=N("24hK"),M=N("QDVR"),j=function(){for(var R=0,c=0,g=arguments.length;c=a.max?void 0:(a.ch=0,a.text=a.cm.getLine(++a.line),!0)}function R(a){return a.line<=a.min?void 0:(a.text=a.cm.getLine(--a.line),a.ch=a.text.length,!0)}function c(a){for(;;){var n=a.text.indexOf(">",a.ch);if(n==-1){if(_(a))continue;return}if(!U(a,n+1)){a.ch=n+1;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function g(a){for(;;){var n=a.ch?a.text.lastIndexOf("<",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}M.lastIndex=n,a.ch=n;var o=M.exec(a.text);if(o&&o.index==n)return o}}function w(a){for(;;){M.lastIndex=a.ch;var n=M.exec(a.text);if(!n){if(_(a))continue;return}if(!U(a,n.index+1)){a.ch=n.index+1;continue}return a.ch=n.index+n[0].length,n}}function y(a){for(;;){var n=a.ch?a.text.lastIndexOf(">",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function f(a,n){for(var o=[];;){var u=w(a),x,E=a.line,v=a.ch-(u?u[0].length:0);if(!u||!(x=c(a)))return;if(x=="selfClose")continue;if(u[1]){for(var O=o.length-1;O>=0;--O)if(o[O]==u[2]){o.length=O;break}if(O<0&&(!n||n==u[2]))return{tag:u[2],from:K(E,v),to:K(a.line,a.ch)}}else o.push(u[2])}}function m(a,n){for(var o=[];;){var u=y(a);if(!u)return;if(u=="selfClose"){g(a);continue}var x=a.line,E=a.ch,v=g(a);if(!v)return;if(v[1])o.push(v[2]);else{for(var O=o.length-1;O>=0;--O)if(o[O]==v[2]){o.length=O;break}if(O<0&&(!n||n==v[2]))return{tag:v[2],from:K(a.line,a.ch),to:K(x,E)}}}}ee.registerHelper("fold","xml",function(a,n){for(var o=new j(a,n.line,0);;){var u=w(o);if(!u||o.line!=n.line)return;var x=c(o);if(!x)return;if(!u[1]&&x!="selfClose"){var E=K(o.line,o.ch),v=f(o,u[2]);return v&&k(v.from,E)>0?{from:E,to:v.from}:null}}}),ee.findMatchingTag=function(a,n,o){var u=new j(a,n.line,n.ch,o);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var x=c(u),E=x&&K(u.line,u.ch),v=x&&g(u);if(!x||!v||k(u,n)>0)return;var O={from:K(u.line,u.ch),to:E,tag:v[2]};return x=="selfClose"?{open:O,close:null,at:"open"}:v[1]?{open:m(u,v[2]),close:O,at:"close"}:(u=new j(a,E.line,E.ch,o),{open:O,close:f(u,v[2]),at:"open"})},ee.findEnclosingTag=function(a,n,o,u){for(var x=new j(a,n.line,n.ch,o);;){var E=m(x,u);if(!E)break;var v=new j(a,n.line,n.ch,o),O=f(v,E.tag);if(O)return{open:E,close:O}}},ee.scanForClosingTag=function(a,n,o,u){var x=new j(a,n.line,n.ch,u?{from:0,to:u}:null);return f(x,o)}})},p5ED:function(et,de,N){"use strict";var ee=N("+L6B"),K=N("2/Rp"),k=N("5Dmo"),z=N("3S7+"),B=N("k1fw"),M=N("9og8"),j=N("tJVT"),U=N("WmNS"),_=N.n(U),R=N("q1tI"),c=N.n(R),g=N("vHTk"),w=N.n(g),y=N("yEEn"),f=N("ZW9T"),m=N("1vsH"),a=N("V0Rq"),n=N("m3rI");de.a=function(o){var u,x,E,v,O,A,p=o.editOffice,h=p===void 0?"view":p,s=o.name,l=o.data,D=o.theme,T=o.type,S=o.filename,I=o.monacoEditor,C=o.className,W=o.style,Y=o.close,H=o.onClose,F=o.hasMask,q=o.disabledDownload,le=o.onImgDimensions,pe=o.otherData,Ae=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ge=Object(j.a)(Ae,2),Fe=Ge[0],Ue=Ge[1],_e=Object(R.useState)(""),je=Object(j.a)(_e,2),xe=je[0],he=je[1],te=Object(R.useState)(),ye=Object(j.a)(te,2),ue=ye[0],Le=ye[1],ae=window.ENV==="build"?"/react/build":"",oe=location.host.startsWith("localhost")?n.a.PROXY_SERVER:n.a.API_SERVER,Se,Me=1024*1024,We=10*Me,Ke=Object(R.useRef)();(u=l)!==null&&u!==void 0&&u.startsWith("/api")&&T!=="txt"&&(l=n.a.API_SERVER+l),T==="office"&&(Se=Object(m.P)(l).filesize,Se>We&&(T="other")),S&&(I.filename=S),Object(R.useEffect)(function(){var vt,dt,pt=(vt=document.cookie)===null||vt===void 0||((dt=vt.replace(/\s/g,""))===null||dt===void 0)?void 0:dt.split(";");pt==null||pt.map(function(At){var wt=At.split("=");wt[0]==="_educoder_session"&&he(wt[1])})},[]),Object(R.useEffect)(function(){T==="office"&&Qe()},[T,l]);var Qe=function(){var vt=Object(M.a)(_.a.mark(function dt(){var pt,At,wt;return _.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return console.log("data:",l),pt=l,l.startsWith("http")||(pt=location.origin+pt),At=new URL(pt).pathname.split("/").pop(),we.next=6,Object(a.U)({attachment_id:At});case 6:wt=we.sent,Le(wt);case 8:case"end":return we.stop()}},dt)}));return function(){return vt.apply(this,arguments)}}(),Ze=function(){if(l.startsWith("http")||l.startsWith("blob:")){yt();return}Object(m.x)(S||"educoder",l,S)},yt=function(){Object(m.v)(S||"educoder",decodeURIComponent(l))};return c.a.createElement("div",{style:Object(B.a)({},W||{}),className:"".concat(F&&w.a.bgBlack," ").concat(T?w.a.wrp:"hide")},Y&&c.a.createElement("div",{className:w.a.close,ref:Ke},!!le&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:function(){H(),le()}},c.a.createElement("i",{className:"icon-yulanpizhu"}))),!q&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:yt},c.a.createElement("i",{className:"icon-quxiaozhiding"}))),c.a.createElement(z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{className:"",onClick:H},c.a.createElement("i",{className:"icon-guanbi1"})))),c.a.createElement("div",{className:"".concat(w.a[C]," ").concat(C," ").concat(w.a.monaco," ").concat(T==="txt"?"show":"hide")},T==="txt"&&c.a.createElement(f.b,I)),T==="audio"&&c.a.createElement("audio",{src:"".concat(((x=l)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=l)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(l),autoPlay:!0}),T==="video"&&c.a.createElement(c.a.Fragment,null,((v=l)===null||v===void 0?void 0:v.indexOf("http"))>-1?c.a.createElement("video",{controls:!0,src:"".concat(l),autoPlay:!0}):c.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(l),autoPlay:!0})),T==="office"&&ue&&c.a.createElement("iframe",{src:"".concat(ae,"/office.html?key=").concat(ue.key,"&url=").concat(oe+ue.url,"&callbackUrl=").concat(oe+ue.callbackUrl,"&fileType=").concat(ue.fileType,"&title=").concat(ue.title,"&model=").concat(h,"&officeServer=").concat(n.a.OFFICE_SERVER,"&disabledDownload=").concat(!!q)}),(T==="xlsx"||T==="doc"||T==="pptx"||T==="docx")&&c.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(pe.key,"&url=").concat(n.a.API_SERVER+pe.url,"&callbackUrl=").concat(n.a.API_SERVER+pe.callbackUrl,"&fileType=").concat(pe.fileType,"&title=").concat(pe.title,"&model=").concat(pe.model)}),T==="html"&&c.a.createElement("iframe",{src:l+"&disposition=inline"}),T==="pdf"&&c.a.createElement("embed",{className:w.a.embed,src:l}),T==="image"&&c.a.createElement("img",{src:"".concat(((O=l)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((A=l)===null||A===void 0?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(l)}),T==="other"&&c.a.createElement("div",null,c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),T==="download"&&c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(et,de,N){},pmY6:function(et,de,N){"use strict";N.d(de,"g",function(){return B}),N.d(de,"f",function(){return M}),N.d(de,"e",function(){return j}),N.d(de,"h",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"a",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g});var ee=!1,K="__is_disposable_tracked__";function k(w){if(!ee)return;if(w&&w!==R.None)try{w[K]=!0}catch(y){}}function z(w){if(!ee)return w;var y=new Error("Potentially leaked disposable").stack;return setTimeout(function(){w[K]||console.log(y)},3e3),w}function B(w){return typeof w.dispose=="function"&&w.dispose.length===0}function M(w){return Array.isArray(w)?(w.forEach(function(y){y&&(k(y),y.dispose())}),[]):w?(k(w),w.dispose(),w):void 0}function j(){for(var w=[],y=0;y=k.length?{done:!0}:{done:!1,value:k[M++]}},e:function(g){throw g},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,_=!1,R;return{s:function(){B=k[Symbol.iterator]()},n:function(){var g=B.next();return U=g.done,g},e:function(g){_=!0,R=g},f:function(){try{!U&&B.return!=null&&B.return()}finally{if(_)throw R}}}}},rUJ1:function(et,de){const N=/[&<>"']/,ee=/[&<>"']/g,K=/[<>"']|&(?!#?\w+;)/,k=/[<>"']|&(?!#?\w+;)/g,z={"&":"&","<":"<",">":">",'"':""","'":"'"},B=A=>z[A];function M(A,p){if(p){if(N.test(A))return A.replace(ee,B)}else if(K.test(A))return A.replace(k,B);return A}const j=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function U(A){return A.replace(j,(p,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const _=/(^|[^\[])\^/g;function R(A,p){A=A.source||A,p=p||"";const h={replace:(s,l)=>(l=l.source||l,l=l.replace(_,"$1"),A=A.replace(s,l),h),getRegex:()=>new RegExp(A,p)};return h}const c=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(A,p,h){if(A){let s;try{s=decodeURIComponent(U(h)).replace(c,"").toLowerCase()}catch(l){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}p&&!g.test(h)&&(h=n(p,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(s){return null}return h}const y={},f=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function n(A,p){y[" "+A]||(f.test(A)?y[" "+A]=A+"/":y[" "+A]=E(A,"/",!0)),A=y[" "+A];const h=A.indexOf(":")===-1;return p.substring(0,2)==="//"?h?p:A.replace(m,"$1")+p:p.charAt(0)==="/"?h?p:A.replace(a,"$1")+p:A+p}const o={exec:function(){}};function u(A){let p=1,h,s;for(;p{let I=!1,C=T;for(;--C>=0&&S[C]==="\\";)I=!I;return I?"|":" |"}),s=h.split(/ \|/);let l=0;if(s.length>p)s.splice(p);else for(;s.length1)Object(R.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(R.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=u[0];if(M.isValidElement(x)&&Object(c.c)(x)){var E=x.ref;u[0]=M.cloneElement(x,{ref:Object(c.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.map(function(v,O){return!M.isValidElement(v)||"key"in v&&v.key!==null?v:M.cloneElement(v,{key:"".concat(w,"-").concat(O)})})}}]),a}(M.Component);y.displayName="ResizeObserver",de.a=y},tWlo:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},ulZh:function(et,de,N){typeof window!="undefined"&&function(K,k){et.exports=k()}(this,function(){return function(ee){var K={};function k(z){if(K[z])return K[z].exports;var B=K[z]={i:z,l:!1,exports:{}};return ee[z].call(B.exports,B,B.exports,k),B.l=!0,B.exports}return k.m=ee,k.c=K,k.d=function(z,B,M){k.o(z,B)||Object.defineProperty(z,B,{enumerable:!0,get:M})},k.r=function(z){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(z,"__esModule",{value:!0})},k.t=function(z,B){if(B&1&&(z=k(z)),B&8)return z;if(B&4&&typeof z=="object"&&z&&z.__esModule)return z;var M=Object.create(null);if(k.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:z}),B&2&&typeof z!="string")for(var j in z)k.d(M,j,function(U){return z[U]}.bind(null,j));return M},k.n=function(z){var B=z&&z.__esModule?function(){return z.default}:function(){return z};return k.d(B,"a",B),B},k.o=function(z,B){return Object.prototype.hasOwnProperty.call(z,B)},k.p="/dist/",k(k.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ee,K,k){"use strict";var z=Object.prototype.hasOwnProperty,B="~";function M(){}Object.create&&(M.prototype=Object.create(null),new M().__proto__||(B=!1));function j(c,g,w){this.fn=c,this.context=g,this.once=w||!1}function U(c,g,w,y,f){if(typeof w!="function")throw new TypeError("The listener must be a function");var m=new j(w,y||c,f),a=B?B+g:g;return c._events[a]?c._events[a].fn?c._events[a]=[c._events[a],m]:c._events[a].push(m):(c._events[a]=m,c._eventsCount++),c}function _(c,g){--c._eventsCount===0?c._events=new M:delete c._events[g]}function R(){this._events=new M,this._eventsCount=0}R.prototype.eventNames=function(){var g=[],w,y;if(this._eventsCount===0)return g;for(y in w=this._events)z.call(w,y)&&g.push(B?y.slice(1):y);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(w)):g},R.prototype.listeners=function(g){var w=B?B+g:g,y=this._events[w];if(!y)return[];if(y.fn)return[y.fn];for(var f=0,m=y.length,a=new Array(m);f0},!1)}function c(g,w){for(var y={main:[w]},f={main:[]},m={main:{}};R(y);)for(var a=Object.keys(y),n=0;n=2*O/p||S<=C)return;var W=Number.POSITIVE_INFINITY,Y;for(Y=a.level-1;Y>s;Y--){var H=h[Y].maxBitrate;if(W=O*H/(8*.8*T),W=S)return;var F=this.bwEstimator.getEstimate();R.logger.warn("Fragment "+a.sn+(n?" part "+n.index:"")+" of level "+a.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+Y+` + a `).concat(le,",").concat(le," 0 1 1 ").concat(-Ge,",").concat(Fe),_e=Math.PI*2*le,je={stroke:Y,strokeDasharray:"".concat(W/100*(_e-F),"px ").concat(_e,"px"),strokeDashoffset:"-".concat(F/2+C/100*(_e-F),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Ue,pathStyle:je}}var T=function(W){var Y=W.prefixCls,H=W.strokeWidth,F=W.trailWidth,q=W.gapDegree,le=W.gapPosition,pe=W.trailColor,Ae=W.strokeLinecap,Ge=W.style,Fe=W.className,Ue=W.strokeColor,_e=W.percent,je=A(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),xe=Object(ee.useMemo)(function(){return h+=1,h},[]),he=D(0,100,pe,H,q,le),te=he.pathString,ye=he.pathStyle,ue=l(_e),Le=l(Ue),ae=Le.find(function(Ke){return Object.prototype.toString.call(Ke)==="[object Object]"}),oe=M(ue),Se=o(oe,1),Me=Se[0],We=function(){var Qe=0;return ue.map(function(Ze,yt){var vt=Le[yt]||Le[Le.length-1],dt=Object.prototype.toString.call(vt)==="[object Object]"?"url(#".concat(Y,"-gradient-").concat(xe,")"):"",pt=D(Qe,Ze,vt,H,q,le);return Qe+=Ze,K.a.createElement("path",{key:yt,className:"".concat(Y,"-circle-path"),d:pt.pathString,stroke:dt,strokeLinecap:Ae,strokeWidth:H,opacity:Ze===0?0:1,fillOpacity:"0",style:pt.pathStyle,ref:Me[yt]})})};return K.a.createElement("svg",n({className:z()("".concat(Y,"-circle"),Fe),viewBox:"0 0 100 100",style:Ge},je),ae&&K.a.createElement("defs",null,K.a.createElement("linearGradient",{id:"".concat(Y,"-gradient-").concat(xe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ae).sort(function(Ke,Qe){return s(Ke)-s(Qe)}).map(function(Ke,Qe){return K.a.createElement("stop",{key:Qe,offset:Ke,stopColor:ae[Ke]})}))),K.a.createElement("path",{className:"".concat(Y,"-circle-trail"),d:te,stroke:pe,strokeLinecap:Ae,strokeWidth:F||H,fillOpacity:"0",style:ye}),We().reverse())};T.defaultProps=B;var S=T,I={Line:a,Circle:S}},hW8S:function(et,de,N){"use strict";N.d(de,"a",function(){return z}),N.d(de,"c",function(){return B}),N.d(de,"b",function(){return M});var ee=N("VTBJ"),K=N("Ff2n"),P=N("Kwbf"),z="RC_TABLE_INTERNAL_COL_DEFINE";function B(j){var U=j.expandable,_=Object(K.a)(j,["expandable"]);return"expandable"in j?Object(ee.a)(Object(ee.a)({},_),U):_}function M(j){return Object.keys(j).reduce(function(U,_){return(_.substr(0,5)==="data-"||_.substr(0,5)==="aria-")&&(U[_]=j[_]),U},{})}},ji0R:function(et,de,N){et.exports=N.p+"static/douyu.3e6df9ee.jpg"},kPWJ:function(et,de,N){et.exports=N.p+"static/question.cb52bef9.gif"},kPYp:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(et,de,N){},l2Kq:function(et,de,N){et.exports=N.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(et,de,N){(function(ee){ee(N("VrN/"),N("1eCo"),N("8EBN"))})(function(ee){"use strict";ee.defineMode("markdown",function(K,P){var z=ee.getMode(K,"text/html"),B=z.name=="null";function M(H){if(ee.findModeByName){var F=ee.findModeByName(H);F&&(H=F.mime||F.mimes[0])}var q=ee.getMode(K,H);return q.name=="null"?null:q}P.highlightFormatting===void 0&&(P.highlightFormatting=!1),P.maxBlockquoteDepth===void 0&&(P.maxBlockquoteDepth=0),P.taskLists===void 0&&(P.taskLists=!1),P.strikethrough===void 0&&(P.strikethrough=!1),P.emoji===void 0&&(P.emoji=!1),P.fencedCodeBlockHighlighting===void 0&&(P.fencedCodeBlockHighlighting=!0),P.fencedCodeBlockDefaultMode===void 0&&(P.fencedCodeBlockDefaultMode="text/plain"),P.xml===void 0&&(P.xml=!0),P.tokenTypeOverrides===void 0&&(P.tokenTypeOverrides={});var j={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var U in j)j.hasOwnProperty(U)&&P.tokenTypeOverrides[U]&&(j[U]=P.tokenTypeOverrides[U]);var _=/^([*\-_])(?:\s*\1){2,}\s*$/,R=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,g=P.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,w=/^ {0,3}(?:\={1,}|-{2,})\s*$/,y=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,a=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,n=" ";function o(H,F,q){return F.f=F.inline=q,q(H,F)}function u(H,F,q){return F.f=F.block=q,q(H,F)}function x(H){return!H||!/\S/.test(H.string)}function E(H){if(H.linkTitle=!1,H.linkHref=!1,H.linkText=!1,H.em=!1,H.strong=!1,H.strikethrough=!1,H.quote=0,H.indentedCode=!1,H.f==O){var F=B;if(!F){var q=ee.innerMode(z,H.htmlState);F=q.mode.name=="xml"&&q.state.tagStart===null&&!q.state.context&&q.state.tokenize.isInText}F&&(H.f=s,H.block=v,H.htmlState=null)}return H.trailingSpace=0,H.trailingSpaceNewLine=!1,H.prevLine=H.thisLine,H.thisLine={stream:null},null}function v(H,F){var q=H.column()===F.indentation,le=x(F.prevLine.stream),pe=F.indentedCode,Ae=F.prevLine.hr,Ge=F.list!==!1,Fe=(F.listStack[F.listStack.length-1]||0)+3;F.indentedCode=!1;var Ue=F.indentation;if(F.indentationDiff===null&&(F.indentationDiff=F.indentation,Ge)){for(F.list=null;Ue=4&&(pe||F.prevLine.fencedCodeEnd||F.prevLine.header||le))return H.skipToEnd(),F.indentedCode=!0,j.code;if(H.eatSpace())return null;if(q&&F.indentation<=Fe&&(xe=H.match(g))&&xe[1].length<=6)return F.quote=0,F.header=xe[1].length,F.thisLine.header=!0,P.highlightFormatting&&(F.formatting="header"),F.f=F.inline,p(F);if(F.indentation<=Fe&&H.eat(">"))return F.quote=q?1:F.quote+1,P.highlightFormatting&&(F.formatting="quote"),H.eatSpace(),p(F);if(!je&&!F.setext&&q&&F.indentation<=Fe&&(xe=H.match(R))){var he=xe[1]?"ol":"ul";return F.indentation=Ue+H.current().length,F.list=!0,F.quote=0,F.listStack.push(F.indentation),F.em=!1,F.strong=!1,F.code=!1,F.strikethrough=!1,P.taskLists&&H.match(c,!1)&&(F.taskList=!0),F.f=F.inline,P.highlightFormatting&&(F.formatting=["list","list-"+he]),p(F)}else{if(q&&F.indentation<=Fe&&(xe=H.match(f,!0)))return F.quote=0,F.fencedEndRE=new RegExp(xe[1]+"+ *$"),F.localMode=P.fencedCodeBlockHighlighting&&M(xe[2]||P.fencedCodeBlockDefaultMode),F.localMode&&(F.localState=ee.startState(F.localMode)),F.f=F.block=A,P.highlightFormatting&&(F.formatting="code-block"),F.code=-1,p(F);if(F.setext||(!_e||!Ge)&&!F.quote&&F.list===!1&&!F.code&&!je&&!m.test(H.string)&&(xe=H.lookAhead(1))&&(xe=xe.match(w)))return F.setext?(F.header=F.setext,F.setext=0,H.skipToEnd(),P.highlightFormatting&&(F.formatting="header")):(F.header=xe[0].charAt(0)=="="?1:2,F.setext=F.header),F.thisLine.header=!0,F.f=F.inline,p(F);if(je)return H.skipToEnd(),F.hr=!0,F.thisLine.hr=!0,j.hr;if(H.peek()==="[")return o(H,F,I)}return o(H,F,F.inline)}function O(H,F){var q=z.token(H,F.htmlState);if(!B){var le=ee.innerMode(z,F.htmlState);(le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText||F.md_inside&&H.current().indexOf(">")>-1)&&(F.f=s,F.block=v,F.htmlState=null)}return q}function A(H,F){var q=F.listStack[F.listStack.length-1]||0,le=F.indentation=H.quote?F.push(j.formatting+"-"+H.formatting[q]+"-"+H.quote):F.push("error"))}if(H.taskOpen)return F.push("meta"),F.length?F.join(" "):null;if(H.taskClosed)return F.push("property"),F.length?F.join(" "):null;if(H.linkHref?F.push(j.linkHref,"url"):(H.strong&&F.push(j.strong),H.em&&F.push(j.em),H.strikethrough&&F.push(j.strikethrough),H.emoji&&F.push(j.emoji),H.linkText&&F.push(j.linkText),H.code&&F.push(j.code),H.image&&F.push(j.image),H.imageAltText&&F.push(j.imageAltText,"link"),H.imageMarker&&F.push(j.imageMarker)),H.header&&F.push(j.header,j.header+"-"+H.header),H.quote&&(F.push(j.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=H.quote?F.push(j.quote+"-"+H.quote):F.push(j.quote+"-"+P.maxBlockquoteDepth)),H.list!==!1){var le=(H.listStack.length-1)%3;le?le===1?F.push(j.list2):F.push(j.list3):F.push(j.list1)}return H.trailingSpaceNewLine?F.push("trailing-space-new-line"):H.trailingSpace&&F.push("trailing-space-"+(H.trailingSpace%2?"a":"b")),F.length?F.join(" "):null}function h(H,F){return H.match(y,!0)?p(F):void 0}function s(H,F){var q=F.text(H,F);if(typeof q!="undefined")return q;if(F.list)return F.list=null,p(F);if(F.taskList){var le=H.match(c,!0)[1]===" ";return le?F.taskOpen=!0:F.taskClosed=!0,P.highlightFormatting&&(F.formatting="task"),F.taskList=!1,p(F)}if(F.taskOpen=!1,F.taskClosed=!1,F.header&&H.match(/^#+$/,!0))return P.highlightFormatting&&(F.formatting="header"),p(F);var pe=H.next();if(F.linkTitle){F.linkTitle=!1;var Ae=pe;pe==="("&&(Ae=")"),Ae=(Ae+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ge="^\\s*(?:[^"+Ae+"\\\\]+|\\\\\\\\|\\\\.)"+Ae;if(H.match(new RegExp(Ge),!0))return j.linkHref}if(pe==="`"){var Fe=F.formatting;P.highlightFormatting&&(F.formatting="code"),H.eatWhile("`");var Ue=H.current().length;if(F.code==0&&(!F.quote||Ue==1))return F.code=Ue,p(F);if(Ue==F.code){var _e=p(F);return F.code=0,_e}else return F.formatting=Fe,p(F)}else if(F.code)return p(F);if(pe==="\\"&&(H.next(),P.highlightFormatting)){var je=p(F),xe=j.formatting+"-escape";return je?je+" "+xe:xe}if(pe==="!"&&H.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return F.imageMarker=!0,F.image=!0,P.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="["&&F.imageMarker&&H.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return F.imageMarker=!1,F.imageAltText=!0,P.highlightFormatting&&(F.formatting="image"),p(F);if(pe==="]"&&F.imageAltText){P.highlightFormatting&&(F.formatting="image");var je=p(F);return F.imageAltText=!1,F.image=!1,F.inline=F.f=D,je}if(pe==="["&&!F.image)return F.linkText&&H.match(/^.*?\]/)||(F.linkText=!0,P.highlightFormatting&&(F.formatting="link")),p(F);if(pe==="]"&&F.linkText){P.highlightFormatting&&(F.formatting="link");var je=p(F);return F.linkText=!1,F.inline=F.f=H.match(/\(.*?\)| ?\[.*?\]/,!1)?D:s,je}if(pe==="<"&&H.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,P.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkInline}if(pe==="<"&&H.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=l,P.highlightFormatting&&(F.formatting="link");var je=p(F);return je?je+=" ":je="",je+j.linkEmail}if(P.xml&&pe==="<"&&H.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=H.string.indexOf(">",H.pos);if(he!=-1){var te=H.string.substring(H.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(te)&&(F.md_inside=!0)}return H.backUp(1),F.htmlState=ee.startState(z),u(H,F,O)}if(P.xml&&pe==="<"&&H.match(/^\/\w*?>/))return F.md_inside=!1,"tag";if(pe==="*"||pe==="_"){for(var ye=1,ue=H.pos==1?" ":H.string.charAt(H.pos-2);ye<3&&H.eat(pe);)ye++;var Le=H.peek()||" ",ae=!/\s/.test(Le)&&(!a.test(Le)||/\s/.test(ue)||a.test(ue)),oe=!/\s/.test(ue)&&(!a.test(ue)||/\s/.test(Le)||a.test(Le)),Se=null,Me=null;if(ye%2&&(!F.em&&ae&&(pe==="*"||!oe||a.test(ue))?Se=!0:F.em==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Se=!1)),ye>1&&(!F.strong&&ae&&(pe==="*"||!oe||a.test(ue))?Me=!0:F.strong==pe&&oe&&(pe==="*"||!ae||a.test(Le))&&(Me=!1)),Me!=null||Se!=null){P.highlightFormatting&&(F.formatting=Se==null?"strong":Me==null?"em":"strong em"),Se===!0&&(F.em=pe),Me===!0&&(F.strong=pe);var _e=p(F);return Se===!1&&(F.em=!1),Me===!1&&(F.strong=!1),_e}}else if(pe===" "&&(H.eat("*")||H.eat("_"))){if(H.peek()===" ")return p(F);H.backUp(1)}if(P.strikethrough){if(pe==="~"&&H.eatWhile(pe)){if(F.strikethrough){P.highlightFormatting&&(F.formatting="strikethrough");var _e=p(F);return F.strikethrough=!1,_e}else if(H.match(/^[^\s]/,!1))return F.strikethrough=!0,P.highlightFormatting&&(F.formatting="strikethrough"),p(F)}else if(pe===" "&&H.match(/^~~/,!0)){if(H.peek()===" ")return p(F);H.backUp(2)}}if(P.emoji&&pe===":"&&H.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){F.emoji=!0,P.highlightFormatting&&(F.formatting="emoji");var We=p(F);return F.emoji=!1,We}return pe===" "&&(H.match(/^ +$/,!1)?F.trailingSpace++:F.trailingSpace&&(F.trailingSpaceNewLine=!0)),p(F)}function l(H,F){var q=H.next();if(q===">"){F.f=F.inline=s,P.highlightFormatting&&(F.formatting="link");var le=p(F);return le?le+=" ":le="",le+j.linkInline}return H.match(/^[^>]+/,!0),j.linkInline}function D(H,F){if(H.eatSpace())return null;var q=H.next();return q==="("||q==="["?(F.f=F.inline=S(q==="("?")":"]"),P.highlightFormatting&&(F.formatting="link-string"),F.linkHref=!0,p(F)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(H){return function(F,q){var le=F.next();if(le===H){q.f=q.inline=s,P.highlightFormatting&&(q.formatting="link-string");var pe=p(q);return q.linkHref=!1,pe}return F.match(T[H]),q.linkHref=!0,p(q)}}function I(H,F){return H.match(/^([^\]\\]|\\.)*\]:/,!1)?(F.f=C,H.next(),P.highlightFormatting&&(F.formatting="link"),F.linkText=!0,p(F)):o(H,F,s)}function C(H,F){if(H.match(/^\]:/,!0)){F.f=F.inline=W,P.highlightFormatting&&(F.formatting="link");var q=p(F);return F.linkText=!1,q}return H.match(/^([^\]\\]|\\.)+/,!0),j.linkText}function W(H,F){return H.eatSpace()?null:(H.match(/^[^\s]+/,!0),H.peek()===void 0?F.linkTitle=!0:H.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),F.f=F.inline=s,j.linkHref+" url")}var Y={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:s,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&ee.copyState(z,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?ee.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,F){if(F.formatting=!1,H!=F.thisLine.stream){if(F.header=0,F.hr=!1,H.match(/^\s*$/,!0))return E(F),null;if(F.prevLine=F.thisLine,F.thisLine={stream:H},F.taskList=!1,F.trailingSpace=0,F.trailingSpaceNewLine=!1,!F.localState&&(F.f=F.block,F.f!=O)){var q=H.match(/^\s*/,!0)[0].replace(/\t/g,n).length;if(F.indentation=q,F.indentationDiff=null,q>0)return null}}return F.f(H,F)},innerMode:function(H){return H.block==O?{state:H.htmlState,mode:z}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:Y}},indent:function(H,F,q){return H.block==O&&z.indent?z.indent(H.htmlState,F,q):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,F,q):ee.Pass},blankLine:E,getType:p,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Y},"xml"),ee.defineMIME("text/markdown","markdown"),ee.defineMIME("text/x-markdown","markdown")})},lzim:function(et,de,N){"use strict";var ee=N("E7E6"),K=N.n(ee);N.d(de,"A",function(){return K.a});var P=N("/GNS"),z=N.n(P);N.d(de,"z",function(){return z.a});var B=N("FOrL"),M=N.n(B);N.d(de,"t",function(){return M.a});var j=N("HpTS"),U=N.n(j);N.d(de,"B",function(){return U.a});var _=N("tWlo"),R=N.n(_);N.d(de,"b",function(){return R.a});var c=N("7ZXX"),g=N.n(c);N.d(de,"n",function(){return g.a});var w=N("GABl"),y=N.n(w);N.d(de,"g",function(){return y.a});var f=N("onxn"),m=N.n(f);N.d(de,"p",function(){return m.a});var a=N("nKGa"),n=N.n(a);N.d(de,"o",function(){return n.a});var o=N("4qgm"),u=N.n(o);N.d(de,"D",function(){return u.a});var x=N("JeFH"),E=N.n(x);N.d(de,"c",function(){return E.a});var v=N("ji0R"),O=N.n(v);N.d(de,"k",function(){return O.a});var A=N("W6BS"),p=N.n(A);N.d(de,"E",function(){return p.a});var h=N("kPYp"),s=N.n(h);N.d(de,"F",function(){return s.a});var l=N("nukY"),D=N.n(l),T=N("4u4S"),S=N.n(T),I=N("yslc"),C=N.n(I),W=N("l2Kq"),Y=N.n(W),H=N("RMFE"),F=N.n(H);N.d(de,"q",function(){return F.a});var q=N("TGq3"),le=N.n(q);N.d(de,"r",function(){return le.a});var pe=N("SMhR"),Ae=N.n(pe);N.d(de,"C",function(){return Ae.a});var Ge=N("8/bI"),Fe=N.n(Ge);N.d(de,"l",function(){return Fe.a});var Ue=N("JWDV"),_e=N.n(Ue);N.d(de,"e",function(){return _e.a});var je=N("Xsq0"),xe=N.n(je);N.d(de,"s",function(){return xe.a});var he=N("Ohmc"),te=N.n(he);N.d(de,"d",function(){return te.a});var ye=N("csWT"),ue=N.n(ye);N.d(de,"f",function(){return ue.a});var Le=N("7v3h"),ae=N.n(Le);N.d(de,"m",function(){return ae.a});var oe=N("cRFk"),Se=N.n(oe);N.d(de,"y",function(){return Se.a});var Me=N("kPWJ"),We=N.n(Me);N.d(de,"x",function(){return We.a});var Ke=N("qgvg"),Qe=N.n(Ke);N.d(de,"u",function(){return Qe.a});var Ze=N("FPkq"),yt=N.n(Ze);N.d(de,"w",function(){return yt.a});var vt=N("A/g1"),dt=N.n(vt);N.d(de,"h",function(){return dt.a});var pt=N("Nmxd"),At=N.n(pt);N.d(de,"i",function(){return At.a});var wt=N("5D2P"),Oe=N.n(wt);N.d(de,"j",function(){return Oe.a});var we=N("djh8"),Je=N.n(we);N.d(de,"v",function(){return Je.a});var st=N("Jq4h"),He=N.n(st);N.d(de,"a",function(){return He.a})},n6Qo:function(et,de,N){"use strict";N.d(de,"a",function(){return U});var ee=N("q1tI"),K=N("biw7"),P=N("fyJ8");function z(_){var R=_.className,c=_.index,g=_.children,w=_.colSpan,y=_.rowSpan,f=ee.useContext(K.a),m=f.prefixCls,a=f.fixedInfoList,n=a[c];return ee.createElement(P.a,Object.assign({className:R,index:c,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:g,props:{colSpan:w,rowSpan:y}}}},n))}function B(_){return ee.createElement("tr",Object.assign({},_))}function M(_){var R=_.children,c=ee.useContext(K.a),g=c.prefixCls;return ee.createElement("tfoot",{className:"".concat(g,"-summary")},R)}var j=de.b=M,U={Cell:z,Row:B}},nKGa:function(et,de,N){et.exports=N.p+"static/export_exercise-template.f7655c19.png"},nnTU:function(et,de,N){"use strict";N.d(de,"b",function(){return U}),N.d(de,"a",function(){return _});var ee=N("pmY6"),K=N("746U"),P=N("Cg/j"),z=N("MI8n"),B=N("24hK"),M=N("QDVR"),j=function(){for(var R=0,c=0,g=arguments.length;c=a.max?void 0:(a.ch=0,a.text=a.cm.getLine(++a.line),!0)}function R(a){return a.line<=a.min?void 0:(a.text=a.cm.getLine(--a.line),a.ch=a.text.length,!0)}function c(a){for(;;){var n=a.text.indexOf(">",a.ch);if(n==-1){if(_(a))continue;return}if(!U(a,n+1)){a.ch=n+1;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function g(a){for(;;){var n=a.ch?a.text.lastIndexOf("<",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}M.lastIndex=n,a.ch=n;var o=M.exec(a.text);if(o&&o.index==n)return o}}function w(a){for(;;){M.lastIndex=a.ch;var n=M.exec(a.text);if(!n){if(_(a))continue;return}if(!U(a,n.index+1)){a.ch=n.index+1;continue}return a.ch=n.index+n[0].length,n}}function y(a){for(;;){var n=a.ch?a.text.lastIndexOf(">",a.ch-1):-1;if(n==-1){if(R(a))continue;return}if(!U(a,n+1)){a.ch=n;continue}var o=a.text.lastIndexOf("/",n),u=o>-1&&!/\S/.test(a.text.slice(o+1,n));return a.ch=n+1,u?"selfClose":"regular"}}function f(a,n){for(var o=[];;){var u=w(a),x,E=a.line,v=a.ch-(u?u[0].length:0);if(!u||!(x=c(a)))return;if(x=="selfClose")continue;if(u[1]){for(var O=o.length-1;O>=0;--O)if(o[O]==u[2]){o.length=O;break}if(O<0&&(!n||n==u[2]))return{tag:u[2],from:K(E,v),to:K(a.line,a.ch)}}else o.push(u[2])}}function m(a,n){for(var o=[];;){var u=y(a);if(!u)return;if(u=="selfClose"){g(a);continue}var x=a.line,E=a.ch,v=g(a);if(!v)return;if(v[1])o.push(v[2]);else{for(var O=o.length-1;O>=0;--O)if(o[O]==v[2]){o.length=O;break}if(O<0&&(!n||n==v[2]))return{tag:v[2],from:K(a.line,a.ch),to:K(x,E)}}}}ee.registerHelper("fold","xml",function(a,n){for(var o=new j(a,n.line,0);;){var u=w(o);if(!u||o.line!=n.line)return;var x=c(o);if(!x)return;if(!u[1]&&x!="selfClose"){var E=K(o.line,o.ch),v=f(o,u[2]);return v&&P(v.from,E)>0?{from:E,to:v.from}:null}}}),ee.findMatchingTag=function(a,n,o){var u=new j(a,n.line,n.ch,o);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var x=c(u),E=x&&K(u.line,u.ch),v=x&&g(u);if(!x||!v||P(u,n)>0)return;var O={from:K(u.line,u.ch),to:E,tag:v[2]};return x=="selfClose"?{open:O,close:null,at:"open"}:v[1]?{open:m(u,v[2]),close:O,at:"close"}:(u=new j(a,E.line,E.ch,o),{open:O,close:f(u,v[2]),at:"open"})},ee.findEnclosingTag=function(a,n,o,u){for(var x=new j(a,n.line,n.ch,o);;){var E=m(x,u);if(!E)break;var v=new j(a,n.line,n.ch,o),O=f(v,E.tag);if(O)return{open:E,close:O}}},ee.scanForClosingTag=function(a,n,o,u){var x=new j(a,n.line,n.ch,u?{from:0,to:u}:null);return f(x,o)}})},p5ED:function(et,de,N){"use strict";var ee=N("+L6B"),K=N("2/Rp"),P=N("5Dmo"),z=N("3S7+"),B=N("k1fw"),M=N("9og8"),j=N("tJVT"),U=N("WmNS"),_=N.n(U),R=N("q1tI"),c=N.n(R),g=N("vHTk"),w=N.n(g),y=N("yEEn"),f=N("ZW9T"),m=N("1vsH"),a=N("V0Rq"),n=N("m3rI");de.a=function(o){var u,x,E,v,O,A,p=o.editOffice,h=p===void 0?"view":p,s=o.name,l=o.data,D=o.theme,T=o.type,S=o.filename,I=o.monacoEditor,C=o.className,W=o.style,Y=o.close,H=o.onClose,F=o.hasMask,q=o.disabledDownload,le=o.onImgDimensions,pe=o.otherData,Ae=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ge=Object(j.a)(Ae,2),Fe=Ge[0],Ue=Ge[1],_e=Object(R.useState)(""),je=Object(j.a)(_e,2),xe=je[0],he=je[1],te=Object(R.useState)(),ye=Object(j.a)(te,2),ue=ye[0],Le=ye[1],ae=window.ENV==="build"?"/react/build":"",oe=location.host.startsWith("localhost")?n.a.PROXY_SERVER:n.a.API_SERVER,Se,Me=1024*1024,We=10*Me,Ke=Object(R.useRef)();(u=l)!==null&&u!==void 0&&u.startsWith("/api")&&T!=="txt"&&(l=n.a.API_SERVER+l),T==="office"&&(Se=Object(m.P)(l).filesize,Se>We&&(T="other")),S&&(I.filename=S),Object(R.useEffect)(function(){var vt,dt,pt=(vt=document.cookie)===null||vt===void 0||((dt=vt.replace(/\s/g,""))===null||dt===void 0)?void 0:dt.split(";");pt==null||pt.map(function(At){var wt=At.split("=");wt[0]==="_educoder_session"&&he(wt[1])})},[]),Object(R.useEffect)(function(){T==="office"&&Qe()},[T,l]);var Qe=function(){var vt=Object(M.a)(_.a.mark(function dt(){var pt,At,wt;return _.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return console.log("data:",l),pt=l,l.startsWith("http")||(pt=location.origin+pt),At=new URL(pt).pathname.split("/").pop(),we.next=6,Object(a.U)({attachment_id:At});case 6:wt=we.sent,Le(wt);case 8:case"end":return we.stop()}},dt)}));return function(){return vt.apply(this,arguments)}}(),Ze=function(){if(l.startsWith("http")||l.startsWith("blob:")){yt();return}Object(m.x)(S||"educoder",l,S)},yt=function(){Object(m.v)(S||"educoder",decodeURIComponent(l))};return c.a.createElement("div",{style:Object(B.a)({},W||{}),className:"".concat(F&&w.a.bgBlack," ").concat(T?w.a.wrp:"hide")},Y&&c.a.createElement("div",{className:w.a.close,ref:Ke},!!le&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:function(){H(),le()}},c.a.createElement("i",{className:"icon-yulanpizhu"}))),!q&&c.a.createElement(z.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{onClick:yt},c.a.createElement("i",{className:"icon-quxiaozhiding"}))),c.a.createElement(z.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ke.current}},c.a.createElement("span",{className:"",onClick:H},c.a.createElement("i",{className:"icon-guanbi1"})))),c.a.createElement("div",{className:"".concat(w.a[C]," ").concat(C," ").concat(w.a.monaco," ").concat(T==="txt"?"show":"hide")},T==="txt"&&c.a.createElement(f.b,I)),T==="audio"&&c.a.createElement("audio",{src:"".concat(((x=l)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=l)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(l),autoPlay:!0}),T==="video"&&c.a.createElement(c.a.Fragment,null,((v=l)===null||v===void 0?void 0:v.indexOf("http"))>-1?c.a.createElement("video",{controls:!0,src:"".concat(l),autoPlay:!0}):c.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(l),autoPlay:!0})),T==="office"&&ue&&c.a.createElement("iframe",{src:"".concat(ae,"/office.html?key=").concat(ue.key,"&url=").concat(oe+ue.url,"&callbackUrl=").concat(oe+ue.callbackUrl,"&fileType=").concat(ue.fileType,"&title=").concat(ue.title,"&model=").concat(h,"&officeServer=").concat(n.a.OFFICE_SERVER,"&disabledDownload=").concat(!!q)}),(T==="xlsx"||T==="doc"||T==="pptx"||T==="docx")&&c.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(pe.key,"&url=").concat(n.a.API_SERVER+pe.url,"&callbackUrl=").concat(n.a.API_SERVER+pe.callbackUrl,"&fileType=").concat(pe.fileType,"&title=").concat(pe.title,"&model=").concat(pe.model)}),T==="html"&&c.a.createElement("iframe",{src:l+"&disposition=inline"}),T==="pdf"&&c.a.createElement("embed",{className:w.a.embed,src:l}),T==="image"&&c.a.createElement("img",{src:"".concat(((O=l)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((A=l)===null||A===void 0?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(l)}),T==="other"&&c.a.createElement("div",null,c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),T==="download"&&c.a.createElement(K.a,{type:"primary",size:"large",onClick:Ze},c.a.createElement(y.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(et,de,N){},pmY6:function(et,de,N){"use strict";N.d(de,"g",function(){return B}),N.d(de,"f",function(){return M}),N.d(de,"e",function(){return j}),N.d(de,"h",function(){return U}),N.d(de,"b",function(){return _}),N.d(de,"a",function(){return R}),N.d(de,"d",function(){return c}),N.d(de,"c",function(){return g});var ee=!1,K="__is_disposable_tracked__";function P(w){if(!ee)return;if(w&&w!==R.None)try{w[K]=!0}catch(y){}}function z(w){if(!ee)return w;var y=new Error("Potentially leaked disposable").stack;return setTimeout(function(){w[K]||console.log(y)},3e3),w}function B(w){return typeof w.dispose=="function"&&w.dispose.length===0}function M(w){return Array.isArray(w)?(w.forEach(function(y){y&&(P(y),y.dispose())}),[]):w?(P(w),w.dispose(),w):void 0}function j(){for(var w=[],y=0;y=P.length?{done:!0}:{done:!1,value:P[M++]}},e:function(g){throw g},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,_=!1,R;return{s:function(){B=P[Symbol.iterator]()},n:function(){var g=B.next();return U=g.done,g},e:function(g){_=!0,R=g},f:function(){try{!U&&B.return!=null&&B.return()}finally{if(_)throw R}}}}},rUJ1:function(et,de){const N=/[&<>"']/,ee=/[&<>"']/g,K=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,z={"&":"&","<":"<",">":">",'"':""","'":"'"},B=A=>z[A];function M(A,p){if(p){if(N.test(A))return A.replace(ee,B)}else if(K.test(A))return A.replace(P,B);return A}const j=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function U(A){return A.replace(j,(p,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const _=/(^|[^\[])\^/g;function R(A,p){A=A.source||A,p=p||"";const h={replace:(s,l)=>(l=l.source||l,l=l.replace(_,"$1"),A=A.replace(s,l),h),getRegex:()=>new RegExp(A,p)};return h}const c=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(A,p,h){if(A){let s;try{s=decodeURIComponent(U(h)).replace(c,"").toLowerCase()}catch(l){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}p&&!g.test(h)&&(h=n(p,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(s){return null}return h}const y={},f=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function n(A,p){y[" "+A]||(f.test(A)?y[" "+A]=A+"/":y[" "+A]=E(A,"/",!0)),A=y[" "+A];const h=A.indexOf(":")===-1;return p.substring(0,2)==="//"?h?p:A.replace(m,"$1")+p:p.charAt(0)==="/"?h?p:A.replace(a,"$1")+p:A+p}const o={exec:function(){}};function u(A){let p=1,h,s;for(;p{let I=!1,C=T;for(;--C>=0&&S[C]==="\\";)I=!I;return I?"|":" |"}),s=h.split(/ \|/);let l=0;if(s.length>p)s.splice(p);else for(;s.length1)Object(R.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(R.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=u[0];if(M.isValidElement(x)&&Object(c.c)(x)){var E=x.ref;u[0]=M.cloneElement(x,{ref:Object(c.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.map(function(v,O){return!M.isValidElement(v)||"key"in v&&v.key!==null?v:M.cloneElement(v,{key:"".concat(w,"-").concat(O)})})}}]),a}(M.Component);y.displayName="ResizeObserver",de.a=y},tWlo:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},ulZh:function(et,de,N){typeof window!="undefined"&&function(K,P){et.exports=P()}(this,function(){return function(ee){var K={};function P(z){if(K[z])return K[z].exports;var B=K[z]={i:z,l:!1,exports:{}};return ee[z].call(B.exports,B,B.exports,P),B.l=!0,B.exports}return P.m=ee,P.c=K,P.d=function(z,B,M){P.o(z,B)||Object.defineProperty(z,B,{enumerable:!0,get:M})},P.r=function(z){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(z,"__esModule",{value:!0})},P.t=function(z,B){if(B&1&&(z=P(z)),B&8)return z;if(B&4&&typeof z=="object"&&z&&z.__esModule)return z;var M=Object.create(null);if(P.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:z}),B&2&&typeof z!="string")for(var j in z)P.d(M,j,function(U){return z[U]}.bind(null,j));return M},P.n=function(z){var B=z&&z.__esModule?function(){return z.default}:function(){return z};return P.d(B,"a",B),B},P.o=function(z,B){return Object.prototype.hasOwnProperty.call(z,B)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ee,K,P){"use strict";var z=Object.prototype.hasOwnProperty,B="~";function M(){}Object.create&&(M.prototype=Object.create(null),new M().__proto__||(B=!1));function j(c,g,w){this.fn=c,this.context=g,this.once=w||!1}function U(c,g,w,y,f){if(typeof w!="function")throw new TypeError("The listener must be a function");var m=new j(w,y||c,f),a=B?B+g:g;return c._events[a]?c._events[a].fn?c._events[a]=[c._events[a],m]:c._events[a].push(m):(c._events[a]=m,c._eventsCount++),c}function _(c,g){--c._eventsCount===0?c._events=new M:delete c._events[g]}function R(){this._events=new M,this._eventsCount=0}R.prototype.eventNames=function(){var g=[],w,y;if(this._eventsCount===0)return g;for(y in w=this._events)z.call(w,y)&&g.push(B?y.slice(1):y);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(w)):g},R.prototype.listeners=function(g){var w=B?B+g:g,y=this._events[w];if(!y)return[];if(y.fn)return[y.fn];for(var f=0,m=y.length,a=new Array(m);f0},!1)}function c(g,w){for(var y={main:[w]},f={main:[]},m={main:{}};R(y);)for(var a=Object.keys(y),n=0;n=2*O/p||S<=C)return;var W=Number.POSITIVE_INFINITY,Y;for(Y=a.level-1;Y>s;Y--){var H=h[Y].maxBitrate;if(W=O*H/(8*.8*T),W=S)return;var F=this.bwEstimator.getEstimate();R.logger.warn("Fragment "+a.sn+(n?" part "+n.index:"")+" of level "+a.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+Y+` Current BW estimate: `+(Object(z.isFiniteNumber)(F)?(F/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+S.toFixed(3)+` s Estimated load time for the next fragment: `+W.toFixed(3)+` s - Time to underbuffer: `+C.toFixed(3)+" s"),o.nextLoadLevel=Y,this.bwEstimator.sample(A,v.loaded),this.clearTimer(),a.loader&&(this.fragCurrent=this.partCurrent=null,a.loader.abort()),o.trigger(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:a,part:n,stats:v})},f.onFragLoaded=function(a,n){var o=n.frag,u=n.part;if(o.type===_.PlaylistLevelType.MAIN&&Object(z.isFiniteNumber)(o.sn)){var x=u?u.stats:o.stats,E=u?u.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[o.level],O=(v.loaded?v.loaded.bytes:0)+x.loaded,A=(v.loaded?v.loaded.duration:0)+E;v.loaded={bytes:O,duration:A},v.realBitrate=Math.round(8*O/A)}if(o.bitrateTest){var p={stats:x,frag:o,part:u,id:o.type};this.onFragBuffered(M.Events.FRAG_BUFFERED,p),o.bitrateTest=!1}}},f.onFragBuffered=function(a,n){var o=n.frag,u=n.part,x=u?u.stats:o.stats;if(x.aborted)return;if(o.type!==_.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var E=x.parsing.end-x.loading.start;this.bwEstimator.sample(E,x.loaded),x.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},f.onError=function(a,n){switch(n.details){case U.ErrorDetails.FRAG_LOAD_ERROR:case U.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},f.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},f.getNextABRAutoLevel=function(){var a=this.fragCurrent,n=this.partCurrent,o=this.hls,u=o.maxAutoLevel,x=o.config,E=o.minAutoLevel,v=o.media,O=n?n.duration:a?a.duration:0,A=v?v.currentTime:0,p=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,h=this.bwEstimator?this.bwEstimator.getEstimate():x.abrEwmaDefaultEstimate,s=(j.BufferHelper.bufferInfo(v,A,x.maxBufferHole).end-A)/p,l=this.findBestLevel(h,E,u,s,x.abrBandWidthFactor,x.abrBandWidthUpFactor);if(l>=0)return l;R.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=O?Math.min(O,x.maxStarvationDelay):x.maxStarvationDelay,T=x.abrBandWidthFactor,S=x.abrBandWidthUpFactor;if(!s){var I=this.bitrateTestDelay;if(I){var C=O?Math.min(O,x.maxLoadingDelay):x.maxLoadingDelay;D=C-I,R.logger.trace("bitrate test took "+Math.round(1e3*I)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),T=S=1}}return l=this.findBestLevel(h,E,u,s+D,T,S),Math.max(l,0)},f.findBestLevel=function(a,n,o,u,x,E){for(var v,O=this.fragCurrent,A=this.partCurrent,p=this.lastLoadedFragLevel,h=this.hls.levels,s=h[p],l=!!(s!=null&&(v=s.details)!==null&&v!==void 0&&v.live),D=s==null?void 0:s.codecSet,T=A?A.duration:O?O.duration:0,S=o;S>=n;S--){var I=h[S];if(!I||D&&I.codecSet!==D)continue;var C=I.details,W=(A?C==null?void 0:C.partTarget:C==null?void 0:C.averagetargetduration)||T,Y=void 0;S<=p?Y=x*a:Y=E*a;var H=h[S].maxBitrate,F=H*W/Y;if(R.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+S+"/"+Math.round(Y)+"/"+H+"/"+W+"/"+u+"/"+F),Y>H&&(!F||l&&!this.bitrateTestDelay||F0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),this.state=B.State.IDLE):(this.loadedmetadata=!1,this.state=B.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},p.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_TRACK:{var s,l=this.levels,D=this.trackId,T=l==null||((s=l[D])===null||s===void 0)?void 0:s.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=B.State.WAITING_INIT_PTS}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var S,I=performance.now(),C=this.retryDate;(!C||I>=C||(S=this.media)!==null&&S!==void 0&&S.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=B.State.IDLE);break}case B.State.WAITING_INIT_PTS:{var W=this.waitingData;if(W){var Y=W.frag,H=W.part,F=W.cache,q=W.complete;if(this.initPTS[Y.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.FRAG_LOADING;var le=F.flush(),pe={frag:Y,part:H,payload:le,networkDetails:null};this._handleFragmentLoadProgress(pe),q&&O.prototype._handleFragmentLoadComplete.call(this,pe)}else if(this.videoTrackCC!==this.waitingVideoCC)n.logger.log("Waiting fragment cc ("+Y.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Ae=this.getLoadPosition(),Ge=j.BufferHelper.bufferInfo(this.mediaBuffer,Ae,this.config.maxBufferHole),Fe=Object(f.fragmentWithinToleranceTest)(Ge.end,this.config.maxFragLookUpTolerance,Y);Fe<0&&(n.logger.log("Waiting fragment cc ("+Y.cc+") @ "+Y.start+" cancelled because another fragment at "+Ge.end+" is needed"),this.clearWaitingFragment())}}else this.state=B.State.IDLE}}this.onTickEnd()},p.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.IDLE)},p.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var l=this.mediaBuffer?this.mediaBuffer:s,D=l.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},p.doTickIdle=function(){var s,l,D=this.hls,T=this.levels,S=this.media,I=this.trackId,C=D.config;if(!T||!T[I])return;if(!S&&(this.startFragRequested||!C.startFragPrefetch))return;var W=T[I],Y=W.details;if(!Y||Y.live&&this.levelLastLoaded!==I||this.waitForCdnTuneIn(Y)){this.state=B.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,c.ElementaryStreamTypes.AUDIO,R.PlaylistLevelType.AUDIO));var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,R.PlaylistLevelType.AUDIO);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(),le=this.audioSwitch;if(F>=q&&!le)return;if(!le&&this._streamEnded(H,Y)){D.trigger(M.Events.BUFFER_EOS,{type:"audio"}),this.state=B.State.ENDED;return}var pe=Y.fragments,Ae=pe[0].start,Ge=H.end;if(le){var Fe=this.getLoadPosition();Ge=Fe,Y.PTSKnown&&FeAe||H.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),S.currentTime=Ae+.05))}var Ue=this.getNextFragment(Ge,Y);if(!Ue){this.bufferFlushed=!0;return}((s=Ue.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((l=Ue.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(Ue,Y):this.loadFragment(Ue,Y,Ge)},p.getMaxBufferLength=function(){var s=O.prototype.getMaxBufferLength.call(this),l=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,R.PlaylistLevelType.MAIN);return l===null?s:Math.max(s,l.len)},p.onMediaDetaching=function(){this.videoBuffer=null,O.prototype.onMediaDetaching.call(this)},p.onAudioTracksUpdated=function(s,l){var D=l.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(T){return new _.Level(T)})},p.onAudioTrackSwitching=function(s,l){var D=!!l.url;this.trackId=l.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(E):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=B.State.IDLE):this.state=B.State.STOPPED,this.tick()},p.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},p.onLevelLoaded=function(s,l){this.mainDetails=l.details},p.onAudioTrackLoaded=function(s,l){var D,T=this.levels,S=l.details,I=l.id;if(!T){this.warn("Audio tracks were reset while loading level "+I);return}this.log("Track "+I+" loaded ["+S.startSN+","+S.endSN+"],duration:"+S.totalduration);var C=T[I],W=0;if(S.live||(D=C.details)!==null&&D!==void 0&&D.live){var Y=this.mainDetails;if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed||!Y)return;!C.details&&S.hasProgramDateTime&&Y.hasProgramDateTime?(Object(m.alignMediaPlaylistByPDT)(S,Y),W=S.fragments[0].start):W=this.alignPlaylists(S,C.details)}C.details=S,this.levelLastLoaded=I,!this.startFragRequested&&(this.mainDetails||!S.live)&&this.setStartPosition(C.details,W),this.state===B.State.WAITING_TRACK&&!this.waitForCdnTuneIn(S)&&(this.state=B.State.IDLE),this.tick()},p._handleFragmentLoadProgress=function(s){var l,D=s.frag,T=s.part,S=s.payload,I=this.config,C=this.trackId,W=this.levels;if(!W){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var Y=W[C];console.assert(Y,"Audio track is defined on fragment load progress");var H=Y.details;console.assert(H,"Audio track details are defined on fragment load progress");var F=I.defaultAudioCodec||Y.audioCodec||"mp4a.40.2",q=this.transmuxer;q||(q=this.transmuxer=new w.default(this.hls,R.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var le=this.initPTS[D.cc],pe=(l=D.initSegment)===null||l===void 0?void 0:l.data;if(le!==void 0){var Ae=!1,Ge=T?T.index:-1,Fe=Ge!==-1,Ue=new y.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,S.byteLength,Ge,Fe);q.push(S,pe,F,"",D,T,H.totalduration,Ae,Ue,le)}else{n.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+H.startSN+" ,"+H.endSN+"],track "+C);var _e=this.waitingData=this.waitingData||{frag:D,part:T,cache:new g.default,complete:!1},je=_e.cache;je.push(new Uint8Array(S)),this.waitingVideoCC=this.videoTrackCC,this.state=B.State.WAITING_INIT_PTS}},p._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}O.prototype._handleFragmentLoadComplete.call(this,s)},p.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},p.onBufferCreated=function(s,l){var D=l.tracks.audio;D&&(this.mediaBuffer=D.buffer),l.tracks.video&&(this.videoBuffer=l.tracks.video.buffer)},p.onFragBuffered=function(s,l){var D=l.frag,T=l.part;if(D.type!==R.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(T?" p: "+T.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,T)},p.onError=function(s,l){switch(l.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.AUDIO,l);break;case a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==B.State.ERROR&&this.state!==B.State.STOPPED&&(this.state=l.fatal?B.State.ERROR:B.State.IDLE,this.warn(l.details+" while loading frag, switching to "+this.state+" state"));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="audio"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var D=!0,T=this.getFwdBufferInfo(this.mediaBuffer,R.PlaylistLevelType.AUDIO);T&&T.len>.5&&(D=!this.reduceMaxBufferLength(T.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},p.onBufferFlushed=function(s,l){var D=l.type;D===c.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},p._handleTransmuxComplete=function(s){var l,D="audio",T=this.hls,S=s.remuxResult,I=s.chunkMeta,C=this.getCurrentContext(I);if(!C){this.warn("The loading context changed while buffering fragment "+I.sn+" of level "+I.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(I.level);return}var W=C.frag,Y=C.part,H=S.audio,F=S.text,q=S.id3,le=S.initSegment;if(this.fragContextChanged(W))return;if(this.state=B.State.PARSING,this.audioSwitch&&H&&this.completeAudioSwitch(),le!=null&&le.tracks&&(this._bufferInitSegment(le.tracks,W,I),T.trigger(M.Events.FRAG_PARSING_INIT_SEGMENT,{frag:W,id:D,tracks:le.tracks})),H){var pe=H.startPTS,Ae=H.endPTS,Ge=H.startDTS,Fe=H.endDTS;Y&&(Y.elementaryStreams[c.ElementaryStreamTypes.AUDIO]={startPTS:pe,endPTS:Ae,startDTS:Ge,endDTS:Fe}),W.setElementaryStreamInfo(c.ElementaryStreamTypes.AUDIO,pe,Ae,Ge,Fe),this.bufferFragmentData(H,W,Y,I)}if(q!=null&&(l=q.samples)!==null&&l!==void 0&&l.length){var Ue=o({frag:W,id:D},q);T.trigger(M.Events.FRAG_PARSING_METADATA,Ue)}if(F){var _e=o({frag:W,id:D},F);T.trigger(M.Events.FRAG_PARSING_USERDATA,_e)}},p._bufferInitSegment=function(s,l,D){if(this.state!==B.State.PARSING)return;s.video&&delete s.video;var T=s.audio;if(!T)return;T.levelCodec=T.codec,T.id="audio",this.log("Init audio buffer, container:"+T.container+", codecs[parsed]=["+T.codec+"]"),this.hls.trigger(M.Events.BUFFER_CODECS,s);var S=T.initSegment;if(S!=null&&S.byteLength){var I={type:"audio",frag:l,part:null,chunkMeta:D,parent:l.type,data:S};this.hls.trigger(M.Events.BUFFER_APPENDING,I)}this.tick()},p.loadFragment=function(s,l,D){var T=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||T===U.FragmentState.NOT_LOADED||T===U.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):l.live&&!Object(z.isFiniteNumber)(this.initPTS[s.cc])?(this.log("Waiting for video PTS in continuity counter "+s.cc+" of live stream before loading audio fragment "+s.sn+" of level "+this.trackId),this.state=B.State.WAITING_INIT_PTS):(this.startFragRequested=!0,O.prototype.loadFragment.call(this,s,l,D)))},p.completeAudioSwitch=function(){var s=this.hls,l=this.media,D=this.trackId;l&&(this.log("Switching audio track : flushing all audio"),O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,s.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:D})},A}(B.default);K.default=v},"./src/controller/audio-track-controller.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/events.ts"),B=k("./src/errors.ts"),M=k("./src/controller/base-playlist-controller.ts"),j=k("./src/types/loader.ts");function U(w,y){for(var f=0;f=n.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=n[this.trackId];this.log("Now switching to audio-track index "+a);var u=n[a],x=u.id,E=u.groupId,v=E===void 0?"":E,O=u.name,A=u.type,p=u.url;if(this.trackId=a,this.trackName=O,this.selectDefaultTrack=!1,this.hls.trigger(z.Events.AUDIO_TRACK_SWITCHING,{id:x,groupId:v,name:O,type:A,url:p}),u.details&&!u.details.live)return;var h=this.switchParams(u.url,o==null?void 0:o.details);this.loadPlaylist(h)},f.selectInitialTrack=function(){var a=this.tracksInGroup;console.assert(a.length,"Initial audio track should be selected when tracks are known");var n=this.trackName,o=this.findTrackId(n)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},f.findTrackId=function(a){for(var n=this.tracksInGroup,o=0;oy.partTarget&&(u+=1)}if(Object(z.isFiniteNumber)(o))return new B.HlsUrlParameters(o,Object(z.isFiniteNumber)(u)?u:void 0,B.HlsSkip.No)}}},c.loadPlaylist=function(w){},c.shouldLoadTrack=function(w){return this.canLoad&&w&&!!w.url&&(!w.details||w.details.live)},c.playlistLoaded=function(w,y,f){var m=this,a=y.details,n=y.stats,o=n.loading.end?Math.max(0,self.performance.now()-n.loading.end):0;if(a.advancedDateTime=Date.now()-o,a.live||f!=null&&f.live){if(a.reloaded(f),f&&this.log("live playlist "+w+" "+(a.advanced?"REFRESHED "+a.lastPartSn+"-"+a.lastPartIndex:"MISSED")),f&&a.fragments.length>0&&Object(M.mergeDetails)(f,a),!this.canLoad||!a.live)return;var u,x=void 0,E=void 0;if(a.canBlockReload&&a.endSN&&a.advanced){var v=this.hls.config.lowLatencyMode,O=a.lastPartSn,A=a.endSN,p=a.lastPartIndex,h=p!==-1,s=O===A,l=v?0:p;h?(x=s?A+1:O,E=s?l:p+1):x=A+1;var D=a.age,T=D+a.ageHeader,S=Math.min(T-a.partTarget,a.targetduration*1.5);if(S>0){if(f&&S>f.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+f.tuneInGoal+" to: "+S+" with playlist age: "+a.age),S=0;else{var I=Math.floor(S/a.targetduration);if(x+=I,E!==void 0){var C=Math.round(S%a.targetduration/a.partTarget);E+=C}this.log("CDN Tune-in age: "+a.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+S+" skip sn "+I+" to part "+E)}a.tuneInGoal=S}if(u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E),v||!s){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E);var W=Object(M.computeReloadInterval)(a,n);x!==void 0&&a.canBlockReload&&(W-=a.partTarget||1),this.log("reload live playlist "+w+" in "+Math.round(W)+" ms"),this.timer=self.setTimeout(function(){return m.loadPlaylist(u)},W)}else this.clearTimer()},c.getDeliveryDirectives=function(w,y,f,m){var a=Object(B.getSkipValue)(w,f);return y!=null&&y.skip&&w.deltaUpdateFailed&&(f=y.msn,m=y.part,a=B.HlsSkip.No),new B.HlsUrlParameters(f,m,a)},c.retryLoadingOrFail=function(w){var y=this,f=this.hls.config,m=this.retryCount-1&&(a=w.context)!==null&&a!==void 0&&a.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+w.details+'"'),this.loadPlaylist();else{var n=Math.min(Math.pow(2,this.retryCount)*f.levelLoadingRetryDelay,f.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return y.loadPlaylist()},n),this.warn("retry playlist loading #"+this.retryCount+" in "+n+' ms after "'+w.details+'"')}}else this.warn('cannot recover from error "'+w.details+'"'),this.clearTimer(),w.fatal=!0;return m},R}()},"./src/controller/base-stream-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"State",function(){return A}),k.d(K,"default",function(){return p});var z=k("./src/polyfills/number.ts"),B=k("./src/task-loop.ts"),M=k("./src/controller/fragment-tracker.ts"),j=k("./src/utils/buffer-helper.ts"),U=k("./src/utils/logger.ts"),_=k("./src/events.ts"),R=k("./src/errors.ts"),c=k("./src/types/transmuxer.ts"),g=k("./src/utils/mp4-tools.ts"),w=k("./src/utils/discontinuities.ts"),y=k("./src/controller/fragment-finders.ts"),f=k("./src/controller/level-helper.ts"),m=k("./src/loader/fragment-loader.ts"),a=k("./src/crypt/decrypter.ts"),n=k("./src/utils/time-ranges.ts"),o=k("./src/types/loader.ts");function u(h,s){for(var l=0;lle;(Y0&&Y&&Y.key&&Y.iv&&Y.method==="AES-128"){var H=self.performance.now();return S.decrypter.webCryptoDecrypt(new Uint8Array(W),Y.key.buffer,Y.iv.buffer).then(function(F){var q=self.performance.now();return C.trigger(_.Events.FRAG_DECRYPTED,{frag:T,payload:F,stats:{tstart:H,tdecrypt:q}}),I.payload=F,I})}return I}).then(function(I){var C=S.fragCurrent,W=S.hls,Y=S.levels;if(!Y)throw new Error("init load aborted, missing levels");var H=Y[T.level].details;console.assert(H,"Level details are defined when init segment is loaded");var F=T.stats;S.state=A.IDLE,S.fragLoadError=0,T.data=new Uint8Array(I.payload),F.parsing.start=F.buffering.start=self.performance.now(),F.parsing.end=F.buffering.end=self.performance.now(),I.frag===C&&W.trigger(_.Events.FRAG_BUFFERED,{stats:F,frag:C,part:null,id:T.type}),S.tick()}).catch(function(I){S.warn(I),S.resetFragmentLoading(T)})},l.fragContextChanged=function(T){var S=this.fragCurrent;return!T||!S||T.level!==S.level||T.sn!==S.sn||T.urlId!==S.urlId},l.fragBufferedComplete=function(T,S){var I=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(S?" part: "+S.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+n.default.toString(j.BufferHelper.getBuffered(I))),this.state=A.IDLE,this.tick()},l._handleFragmentLoadComplete=function(T){var S=this.transmuxer;if(!S)return;var I=T.frag,C=T.part,W=T.partsLoaded,Y=!W||W.length===0||W.some(function(F){return!F}),H=new c.ChunkMetadata(I.level,I.sn,I.stats.chunkCount+1,0,C?C.index:-1,!Y);S.flush(H)},l._handleFragmentLoadProgress=function(T){},l._doFragLoad=function(T,S,I,C){var W=this;if(I===void 0&&(I=null),!this.levels)throw new Error("frag load aborted, missing levels");if(I=Math.max(T.start,I||0),this.config.lowLatencyMode&&S){var Y=S.partList;if(Y&&C){I>T.end&&S.fragmentHint&&(T=S.fragmentHint);var H=this.getNextPart(Y,T,I);if(H>-1){var F=Y[H];return this.log("Loading part sn: "+T.sn+" p: "+F.index+" cc: "+T.cc+" of playlist ["+S.startSN+"-"+S.endSN+"] parts [0-"+H+"-"+(Y.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),this.nextLoadPosition=F.start+F.duration,this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,part:Y[H],targetBufferTime:I}),this.doFragPartsLoad(T,Y,H,C).catch(function(q){return W.handleFragLoadError(q)})}else if(!T.url||this.loadedEndOfParts(Y,I))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(S?"of ["+S.startSN+"-"+S.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),Object(z.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,targetBufferTime:I}),this.fragmentLoader.load(T,C).catch(function(q){return W.handleFragLoadError(q)})},l.doFragPartsLoad=function(T,S,I,C){var W=this;return new Promise(function(Y,H){var F=[],q=function le(pe){var Ae=S[pe];W.fragmentLoader.loadPart(T,Ae,C).then(function(Ge){F[Ae.index]=Ge;var Fe=Ge.part;W.hls.trigger(_.Events.FRAG_LOADED,Ge);var Ue=S[pe+1];if(Ue&&Ue.fragment===T)le(pe+1);else return Y({frag:T,part:Fe,partsLoaded:F})}).catch(H)};q(I)})},l.handleFragLoadError=function(T){var S=T.data;return S&&S.details===R.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(S.frag,S.part):this.hls.trigger(_.Events.ERROR,S),null},l._handleTransmuxerFlush=function(T){var S=this.getCurrentContext(T);if(!S||this.state!==A.PARSING){this.fragCurrent||(this.state=A.IDLE);return}var I=S.frag,C=S.part,W=S.level,Y=self.performance.now();I.stats.parsing.end=Y,C&&(C.stats.parsing.end=Y),this.updateLevelTiming(I,C,W,T.partial)},l.getCurrentContext=function(T){var S=this.levels,I=T.level,C=T.sn,W=T.part;if(!S||!S[I])return this.warn("Levels object was unset while buffering fragment "+C+" of level "+I+". The current chunk will not be buffered."),null;var Y=S[I],H=W>-1?Object(f.getPartWith)(Y,C,W):null,F=H?H.fragment:Object(f.getFragmentWithSN)(Y,C,this.fragCurrent);return F?{frag:F,part:H,level:Y}:null},l.bufferFragmentData=function(T,S,I,C){if(!T||this.state!==A.PARSING)return;var W=T.data1,Y=T.data2,H=W;if(W&&Y&&(H=Object(g.appendUint8Array)(W,Y)),!H||!H.length)return;var F={type:T.type,frag:S,part:I,chunkMeta:C,parent:S.type,data:H};this.hls.trigger(_.Events.BUFFER_APPENDING,F),T.dropped&&T.independent&&!I&&this.flushBufferGap(S)},l.flushBufferGap=function(T){var S=this.media;if(!S)return;if(!j.BufferHelper.isBuffered(S,S.currentTime)){this.flushMainBuffer(0,T.start);return}var I=S.currentTime,C=j.BufferHelper.bufferInfo(S,I,0),W=T.duration,Y=Math.min(this.config.maxFragLookUpTolerance*2,W*.25),H=Math.max(Math.min(T.start-Y,C.end-Y),I+Y);T.start-H>Y&&this.flushMainBuffer(H,T.start)},l.getFwdBufferInfo=function(T,S){var I=this.config,C=this.getLoadPosition();if(!Object(z.isFiniteNumber)(C))return null;var W=j.BufferHelper.bufferInfo(T,C,I.maxBufferHole);if(W.len===0&&W.nextStart!==void 0){var Y=this.fragmentTracker.getBufferedFrag(C,S);if(Y&&W.nextStart=I?(S.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+S.maxMaxBufferLength+"s"),!0):!1},l.getNextFragment=function(T,S){var I,C,W=S.fragments,Y=W.length;if(!Y)return null;var H=this.config,F=W[0].start,q;if(S.live){var le=H.initialLiveManifestSize;if(Y-1&&II.start&&I.loaded},l.getInitialLiveFragment=function(T,S){var I=this.fragPrevious,C=null;if(I){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+I.programDateTime),C=Object(y.findFragmentByPDT)(S,I.endProgramDateTime,this.config.maxFragLookUpTolerance)),!C){var W=I.sn+1;if(W>=T.startSN&&W<=T.endSN){var Y=S[W-T.startSN];I.cc===Y.cc&&(C=Y,this.log("Live playlist, switching playlist, load frag with next SN: "+C.sn))}C||(C=Object(y.findFragWithCC)(S,I.cc),C&&this.log("Live playlist, switching playlist, load frag with same CC: "+C.sn))}}else{var H=this.hls.liveSyncPosition;H!==null&&(C=this.getFragmentAtPosition(H,this.bitrateTest?T.fragmentEnd:T.edge,T))}return C},l.getFragmentAtPosition=function(T,S,I){var C=this.config,W=this.fragPrevious,Y=I.fragments,H=I.endSN,F=I.fragmentHint,q=C.maxFragLookUpTolerance,le=!!(C.lowLatencyMode&&I.partList&&F);le&&F&&!this.bitrateTest&&(Y=Y.concat(F),H=F.sn);var pe;if(TS-q?0:q;pe=Object(y.findFragmentByPTS)(W,Y,T,Ae)}else pe=Y[Y.length-1];if(pe){var Ge=pe.sn-I.startSN,Fe=W&&pe.level===W.level,Ue=Y[Ge+1],_e=this.fragmentTracker.getState(pe);if(_e===M.FragmentState.BACKTRACKED){pe=null;for(var je=Ge;Y[je]&&this.fragmentTracker.getState(Y[je])===M.FragmentState.BACKTRACKED;)W?pe=Y[je--]:pe=Y[--je];pe||(pe=Ue)}else W&&pe.sn===W.sn&&!le&&(Fe&&(pe.sn=Y-S.maxFragLookUpTolerance&&W<=H;if(C!==null&&I.duration>C&&(W"+T.startSN+" prev-sn: "+(W?W.sn:"na")+" fragments: "+H),pe}return F},l.waitForCdnTuneIn=function(T){var S=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*S)},l.setStartPosition=function(T,S){var I=this.startPosition;if(I"+T))}}]),s}(B.default)},"./src/controller/buffer-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y});var z=k("./src/polyfills/number.ts"),B=k("./src/events.ts"),M=k("./src/utils/logger.ts"),j=k("./src/errors.ts"),U=k("./src/utils/buffer-helper.ts"),_=k("./src/utils/mediasource-helper.ts"),R=k("./src/loader/fragment.ts"),c=k("./src/controller/buffer-operation-queue.ts"),g=Object(_.getMediaSource)(),w=/([ha]vc.)(?:\.[^.,]+)+/,y=function(){function f(a){var n=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=n.hls,u=n.media,x=n.mediaSource;M.logger.log("[buffer-controller]: Media source opened"),u&&(n.updateMediaElementDuration(),o.trigger(B.Events.MEDIA_ATTACHED,{media:u})),x&&x.removeEventListener("sourceopen",n._onMediaSourceOpen),n.checkPendingTracks()},this._onMediaSourceClose=function(){M.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){M.logger.log("[buffer-controller]: Media source ended")},this.hls=a,this._initSourceBuffer(),this.registerListeners()}var m=f.prototype;return m.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},m.destroy=function(){this.unregisterListeners(),this.details=null},m.registerListeners=function(){var n=this.hls;n.on(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(B.Events.BUFFER_RESET,this.onBufferReset,this),n.on(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.on(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(B.Events.BUFFER_EOS,this.onBufferEos,this),n.on(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.on(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.on(B.Events.FRAG_PARSED,this.onFragParsed,this),n.on(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.off(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(B.Events.BUFFER_RESET,this.onBufferReset,this),n.off(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.off(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(B.Events.BUFFER_EOS,this.onBufferEos,this),n.off(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.off(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.off(B.Events.FRAG_PARSED,this.onFragParsed,this),n.off(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new c.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},m.onManifestParsed=function(n,o){var u=2;(o.audio&&!o.video||!o.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,M.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},m.onMediaAttaching=function(n,o){var u=this.media=o.media;if(u&&g){var x=this.mediaSource=new g;x.addEventListener("sourceopen",this._onMediaSourceOpen),x.addEventListener("sourceended",this._onMediaSourceEnded),x.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(x),this._objectUrl=u.src}},m.onMediaDetaching=function(){var n=this.media,o=this.mediaSource,u=this._objectUrl;if(o){if(M.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(x){M.logger.warn("[buffer-controller]: onMediaDetaching: "+x.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),n&&(u&&self.URL.revokeObjectURL(u),n.src===u?(n.removeAttribute("src"),n.load()):M.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(B.Events.MEDIA_DETACHED,void 0)},m.onBufferReset=function(){var n=this;this.getSourceBufferTypes().forEach(function(o){var u=n.sourceBuffer[o];try{u&&(n.removeBufferListeners(o),n.mediaSource&&n.mediaSource.removeSourceBuffer(u),n.sourceBuffer[o]=void 0)}catch(x){M.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",x)}}),this._initSourceBuffer()},m.onBufferCodecs=function(n,o){var u=this,x=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(E){if(x){var v=u.tracks[E];if(v&&typeof v.buffer.changeType=="function"){var O=o[E],A=O.codec,p=O.levelCodec,h=O.container,s=(v.levelCodec||v.codec).replace(w,"$1"),l=(p||A).replace(w,"$1");if(s!==l){var D=h+";codecs="+(p||A);u.appendChangeType(E,D)}}}else u.pendingTracks[E]=o[E]}),x)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},m.appendChangeType=function(n,o){var u=this,x=this.operationQueue,E={execute:function(){var O=u.sourceBuffer[n];O&&(M.logger.log("[buffer-controller]: changing "+n+" sourceBuffer type to "+o),O.changeType(o)),x.shiftAndExecuteNext(n)},onStart:function(){},onComplete:function(){},onError:function(O){M.logger.warn("[buffer-controller]: Failed to change "+n+" SourceBuffer type",O)}};x.append(E,n)},m.onBufferAppending=function(n,o){var u=this,x=this.hls,E=this.operationQueue,v=this.tracks,O=o.data,A=o.type,p=o.frag,h=o.part,s=o.chunkMeta,l=s.buffering[A],D=self.performance.now();l.start=D;var T=p.stats.buffering,S=h?h.stats.buffering:null;T.start===0&&(T.start=D),S&&S.start===0&&(S.start=D);var I=v.audio,C=A==="audio"&&s.id===1&&(I==null?void 0:I.container)==="audio/mpeg",W={execute:function(){if(l.executeStart=self.performance.now(),C){var H=u.sourceBuffer[A];if(H){var F=p.start-H.timestampOffset;Math.abs(F)>=.1&&(M.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+p.start+" (delta: "+F+") sn: "+p.sn+")"),H.timestampOffset=p.start)}}u.appendExecutor(O,A)},onStart:function(){},onComplete:function(){var H=self.performance.now();l.executeEnd=l.end=H,T.first===0&&(T.first=H),S&&S.first===0&&(S.first=H);var F=u.sourceBuffer,q={};for(var le in F)q[le]=U.BufferHelper.getBuffered(F[le]);u.appendError=0,u.hls.trigger(B.Events.BUFFER_APPENDED,{type:A,frag:p,part:h,chunkMeta:s,parent:p.type,timeRanges:q})},onError:function(H){M.logger.error("[buffer-controller]: Error encountered while trying to append to the "+A+" SourceBuffer",H);var F={type:j.ErrorTypes.MEDIA_ERROR,parent:p.type,details:j.ErrorDetails.BUFFER_APPEND_ERROR,err:H,fatal:!1};H.code===DOMException.QUOTA_EXCEEDED_ERR?F.details=j.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,F.details=j.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>x.config.appendErrorMaxRetry&&(M.logger.error("[buffer-controller]: Failed "+x.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),F.fatal=!0)),x.trigger(B.Events.ERROR,F)}};E.append(W,A)},m.onBufferFlushing=function(n,o){var u=this,x=this.operationQueue,E=function(O){return{execute:u.removeExecutor.bind(u,O,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(B.Events.BUFFER_FLUSHED,{type:O})},onError:function(p){M.logger.warn("[buffer-controller]: Failed to remove from "+O+" SourceBuffer",p)}}};o.type?x.append(E(o.type),o.type):this.getSourceBufferTypes().forEach(function(v){x.append(E(v),v)})},m.onFragParsed=function(n,o){var u=this,x=o.frag,E=o.part,v=[],O=E?E.elementaryStreams:x.elementaryStreams;O[R.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(O[R.ElementaryStreamTypes.AUDIO]&&v.push("audio"),O[R.ElementaryStreamTypes.VIDEO]&&v.push("video"));var A=function(){var h=self.performance.now();x.stats.buffering.end=h,E&&(E.stats.buffering.end=h);var s=E?E.stats:x.stats;u.hls.trigger(B.Events.FRAG_BUFFERED,{frag:x,part:E,stats:s,id:x.type})};v.length===0&&M.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+x.type+" level: "+x.level+" sn: "+x.sn),this.blockBuffers(A,v)},m.onFragChanged=function(n,o){this.flushBackBuffer()},m.onBufferEos=function(n,o){var u=this,x=this.getSourceBufferTypes().reduce(function(E,v){var O=u.sourceBuffer[v];return(!o.type||o.type===v)&&(O&&!O.ended&&(O.ended=!0,M.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),E&&!!(!O||O.ended)},!0);x&&this.blockBuffers(function(){var E=u.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},m.onLevelUpdated=function(n,o){var u=o.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},m.flushBackBuffer=function(){var n=this.hls,o=this.details,u=this.media,x=this.sourceBuffer;if(!u||o===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var v=o.live&&n.config.liveBackBufferLength!==null?n.config.liveBackBufferLength:n.config.backBufferLength;if(!Object(z.isFiniteNumber)(v)||v<0)return;var O=u.currentTime,A=o.levelTargetDuration,p=Math.max(v,A),h=Math.floor(O/A)*A-p;E.forEach(function(s){var l=x[s];if(l){var D=U.BufferHelper.getBuffered(l);D.length>0&&h>D.start(0)&&(n.trigger(B.Events.BACK_BUFFER_REACHED,{bufferEnd:h}),o.live&&n.trigger(B.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:h}),n.trigger(B.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:h,type:s}))}})},m.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var n=this.details,o=this.hls,u=this.media,x=this.mediaSource,E=n.fragments[0].start+n.totalduration,v=u.duration,O=Object(z.isFiniteNumber)(x.duration)?x.duration:0;n.live&&o.config.liveDurationInfinity?(M.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),x.duration=Infinity,this.updateSeekableRange(n)):(E>O&&E>v||!Object(z.isFiniteNumber)(v))&&(M.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),x.duration=E)},m.updateSeekableRange=function(n){var o=this.mediaSource,u=n.fragments,x=u.length;if(x&&n.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var E=Math.max(0,u[0].start),v=Math.max(E,E+n.totalduration);o.setLiveSeekableRange(E,v)}},m.checkPendingTracks=function(){var n=this.bufferCodecEventsExpected,o=this.operationQueue,u=this.pendingTracks,x=Object.keys(u).length;if(x&&!n||x===2){this.createSourceBuffers(u),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(v){o.executeNext(v)})}},m.createSourceBuffers=function(n){var o=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var x=0;for(var E in n)if(!o[E]){var v=n[E];if(!v)throw Error("source buffer exists for track "+E+", however track does not");var O=v.levelCodec||v.codec,A=v.container+";codecs="+O;M.logger.log("[buffer-controller]: creating sourceBuffer("+A+")");try{var p=o[E]=u.addSourceBuffer(A),h=E;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.tracks[E]={buffer:p,codec:O,container:v.container,levelCodec:v.levelCodec,id:v.id},x++}catch(s){M.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:A})}}x&&this.hls.trigger(B.Events.BUFFER_CREATED,{tracks:this.tracks})},m._onSBUpdateStart=function(n){var o=this.operationQueue,u=o.current(n);u.onStart()},m._onSBUpdateEnd=function(n){var o=this.operationQueue,u=o.current(n);u.onComplete(),o.shiftAndExecuteNext(n)},m._onSBUpdateError=function(n,o){M.logger.error("[buffer-controller]: "+n+" SourceBuffer error",o),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(n);u&&u.onError(o)},m.removeExecutor=function(n,o,u){var x=this.media,E=this.mediaSource,v=this.operationQueue,O=this.sourceBuffer,A=O[n];if(!x||!E||!A){M.logger.warn("[buffer-controller]: Attempting to remove from the "+n+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(n);return}var p=Object(z.isFiniteNumber)(x.duration)?x.duration:Infinity,h=Object(z.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Math.max(0,o),l=Math.min(u,p,h);l>s?(M.logger.log("[buffer-controller]: Removing ["+s+","+l+"] from the "+n+" SourceBuffer"),console.assert(!A.updating,n+" sourceBuffer must not be updating"),A.remove(s,l)):v.shiftAndExecuteNext(n)},m.appendExecutor=function(n,o){var u=this.operationQueue,x=this.sourceBuffer,E=x[o];if(!E){M.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(o);return}E.ended=!1,console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.appendBuffer(n)},m.blockBuffers=function(n,o){var u=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){M.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(n);return}var x=this.operationQueue,E=o.map(function(v){return x.appendBlocker(v)});Promise.all(E).then(function(){n(),o.forEach(function(v){var O=u.sourceBuffer[v];(!O||!O.updating)&&x.shiftAndExecuteNext(v)})})},m.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},m.addBufferListener=function(n,o,u){var x=this.sourceBuffer[n];if(!x)return;var E=u.bind(this,n);this.listeners[n].push({event:o,listener:E}),x.addEventListener(o,E)},m.removeBufferListeners=function(n){var o=this.sourceBuffer[n];if(!o)return;this.listeners[n].forEach(function(u){o.removeEventListener(u.event,u.listener)})},f}()},"./src/controller/buffer-operation-queue.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return B});var z=k("./src/utils/logger.ts"),B=function(){function M(U){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=U}var j=M.prototype;return j.append=function(_,R){var c=this.queues[R];c.push(_),c.length===1&&this.buffers[R]&&this.executeNext(R)},j.insertAbort=function(_,R){var c=this.queues[R];c.unshift(_),this.executeNext(R)},j.appendBlocker=function(_){var R,c=new Promise(function(w){R=w}),g={execute:R,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(g,_),c},j.executeNext=function(_){var R=this.buffers,c=this.queues,g=R[_],w=c[_];if(w.length){var y=w[0];try{y.execute()}catch(f){z.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),y.onError(f),(!g||!g.updating)&&(w.shift(),this.executeNext(_))}}},j.shiftAndExecuteNext=function(_){this.queues[_].shift(),this.executeNext(_)},j.current=function(_){return this.queues[_][0]},M}()},"./src/controller/cap-level-controller.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/events.ts");function B(U,_){for(var R=0;R<_.length;R++){var c=_[R];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(U,c.key,c)}}function M(U,_,R){return _&&B(U.prototype,_),R&&B(U,R),U}var j=function(){function U(R){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=R,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var _=U.prototype;return _.setStreamController=function(c){this.streamController=c},_.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},_.registerListeners=function(){var c=this.hls;c.on(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.on(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.on(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.on(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.unregisterListener=function(){var c=this.hls;c.off(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.off(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.off(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.off(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.onFpsDropLevelCapping=function(c,g){U.isLevelAllowed(g.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(g.droppedLevel)},_.onMediaAttaching=function(c,g){this.media=g.media instanceof HTMLVideoElement?g.media:null},_.onManifestParsed=function(c,g){var w=this.hls;this.restrictedLevels=[],this.firstLevel=g.firstLevel,w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onBufferCodecs=function(c,g){var w=this.hls;w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onMediaDetaching=function(){this.stopCapping()},_.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var c=this.hls.levels;if(c.length){var g=this.hls;g.autoLevelCapping=this.getMaxLevel(c.length-1),g.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=g.autoLevelCapping}}},_.getMaxLevel=function(c){var g=this,w=this.hls.levels;if(!w.length)return-1;var y=w.filter(function(f,m){return U.isLevelAllowed(m,g.restrictedLevels)&&m<=c});return this.clientRect=null,U.getMaxLevelByMediaSize(y,this.mediaWidth,this.mediaHeight)},_.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},_.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},_.getDimensions=function(){if(this.clientRect)return this.clientRect;var c=this.media,g={width:0,height:0};if(c){var w=c.getBoundingClientRect();g.width=w.width,g.height=w.height,!g.width&&!g.height&&(g.width=w.right-w.left||c.width||0,g.height=w.bottom-w.top||c.height||0)}return this.clientRect=g,g},U.isLevelAllowed=function(c,g){return g===void 0&&(g=[]),g.indexOf(c)===-1},U.getMaxLevelByMediaSize=function(c,g,w){if(!c||!c.length)return-1;for(var y=function(o,u){return u?o.width!==u.width||o.height!==u.height:!0},f=c.length-1,m=0;m=g||a.height>=w)&&y(a,c[m+1])){f=m;break}}return f},M(U,[{key:"mediaWidth",get:function(){return this.getDimensions().width*U.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*U.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var c=1;try{c=self.devicePixelRatio}catch(g){}return c}}]),U}();K.default=j},"./src/controller/cmcd-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y});var z=k("./src/events.ts"),B=k("./src/types/cmcd.ts"),M=k("./src/utils/buffer-helper.ts"),j=k("./src/utils/logger.ts");function U(f,m){for(var a=0;a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(f,m){if(!f)return;if(typeof f=="string")return g(f,m);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return g(f,m)}function g(f,m){(m==null||m>f.length)&&(m=f.length);for(var a=0,n=new Array(m);ao&&(o=v.bitrate)}return o>0?o:NaN},m.getBufferLength=function(n){var o=this.hls.media,u=n===B.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!o)return NaN;var x=M.BufferHelper.bufferInfo(u,o.currentTime,this.config.maxBufferHole);return x.len*1e3},m.createPlaylistLoader=function(){var n=this.config.pLoader,o=this.applyPlaylistData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},m.createFragmentLoader=function(){var n=this.config.fLoader,o=this.applyFragmentData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},f.uuid=function(){var n=URL.createObjectURL(new Blob),o=n.toString();return URL.revokeObjectURL(n),o.substr(o.lastIndexOf("/")+1)},f.serialize=function(n){for(var o=[],u=function(C){return!Number.isNaN(C)&&C!=null&&C!==""&&C!==!1},x=function(C){return Math.round(C)},E=function(C){return x(C/100)*100},v=function(C){return encodeURIComponent(C)},O={br:x,d:x,bl:E,dl:E,mtp:E,nor:v,rtp:E,tb:x},A=Object.keys(n||{}).sort(),p=R(A),h;!(h=p()).done;){var s=h.value,l=n[s];if(!u(l))continue;if(s==="v"&&l===1)continue;if(s=="pr"&&l===1)continue;var D=O[s];D&&(l=D(l));var T=typeof l,S=void 0;s==="ot"||s==="sf"||s==="st"?S=s+"="+l:T==="boolean"?S=s:T==="number"?S=s+"="+l:S=s+"="+JSON.stringify(l),o.push(S)}return o.join(",")},f.toHeaders=function(n){for(var o=Object.keys(n),u={},x=["Object","Request","Session","Status"],E=[{},{},{},{}],v={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},O=0,A=o;OR){this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=R-this._requestLicenseFailureCount+1;M.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(o,u)}break}},f._generateLicenseRequestChallenge=function(a,n){switch(a.mediaKeySystemDomain){case j.KeySystems.WIDEVINE:return n}throw new Error("unsupported key-system: "+a.mediaKeySystemDomain)},f._requestLicense=function(a,n){M.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){M.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(o.mediaKeySystemDomain),x=this._createLicenseXhr(u,a,n);M.logger.log("Sending license request to URL: "+u);var E=this._generateLicenseRequestChallenge(o,a);x.send(E)}catch(v){M.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},f.onMediaAttached=function(a,n){if(!this._emeEnabled)return;var o=n.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},f.onMediaDetached=function(){var a=this._media,n=this._mediaKeysList;if(!a)return;a.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(n.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return a.setMediaKeys(null)}).catch(function(){})},f.onManifestParsed=function(a,n){if(!this._emeEnabled)return;var o=n.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),u=n.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(j.KeySystems.WIDEVINE,o,u)},_(y,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),y}();K.default=w},"./src/controller/fps-controller.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/events.ts"),B=k("./src/utils/logger.ts"),M=function(){function j(_){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=_,this.registerListeners()}var U=j.prototype;return U.setStreamController=function(R){this.streamController=R},U.registerListeners=function(){this.hls.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},U.unregisterListeners=function(){this.hls.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching)},U.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},U.onMediaAttaching=function(R,c){var g=this.hls.config;if(g.capLevelOnFPSDrop){var w=c.media instanceof self.HTMLVideoElement?c.media:null;this.media=w,w&&typeof w.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),g.fpsDroppedMonitoringPeriod)}},U.checkFPS=function(R,c,g){var w=performance.now();if(c){if(this.lastTime){var y=w-this.lastTime,f=g-this.lastDroppedFrames,m=c-this.lastDecodedFrames,a=1e3*f/y,n=this.hls;if(n.trigger(z.Events.FPS_DROP,{currentDropped:f,currentDecoded:m,totalDroppedFrames:g}),a>0&&f>n.config.fpsDroppedMonitoringThreshold*m){var o=n.currentLevel;B.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(n.autoLevelCapping===-1||n.autoLevelCapping>=o)&&(o=o-1,n.trigger(z.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:n.currentLevel}),n.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=w,this.lastDroppedFrames=g,this.lastDecodedFrames=c}},U.checkFPSInterval=function(){var R=this.media;if(R)if(this.isVideoPlaybackQualityAvailable){var c=R.getVideoPlaybackQuality();this.checkFPS(R,c.totalVideoFrames,c.droppedVideoFrames)}else this.checkFPS(R,R.webkitDecodedFrameCount,R.webkitDroppedFrameCount)},j}();K.default=M},"./src/controller/fragment-finders.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"findFragmentByPDT",function(){return M}),k.d(K,"findFragmentByPTS",function(){return j}),k.d(K,"fragmentWithinToleranceTest",function(){return U}),k.d(K,"pdtWithinToleranceTest",function(){return _}),k.d(K,"findFragWithCC",function(){return R});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/binary-search.ts");function M(c,g,w){if(g===null||!Array.isArray(c)||!c.length||!Object(z.isFiniteNumber)(g))return null;var y=c[0].programDateTime;if(g<(y||0))return null;var f=c[c.length-1].endProgramDateTime;if(g>=(f||0))return null;w=w||0;for(var m=0;mc&&w.start?-1:0}function _(c,g,w){var y=Math.min(g,w.duration+(w.deltaPTS?w.deltaPTS:0))*1e3,f=w.endProgramDateTime||0;return f-y>c}function R(c,g){return B.default.search(c,function(w){return w.ccg?-1:0})}},"./src/controller/fragment-tracker.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"FragmentState",function(){return M}),k.d(K,"FragmentTracker",function(){return j});var z=k("./src/events.ts"),B=k("./src/types/loader.ts"),M;(function(R){R.NOT_LOADED="NOT_LOADED",R.BACKTRACKED="BACKTRACKED",R.APPENDING="APPENDING",R.PARTIAL="PARTIAL",R.OK="OK"})(M||(M={}));var j=function(){function R(g){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=g,this._registerListeners()}var c=R.prototype;return c._registerListeners=function(){var w=this.hls;w.on(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.on(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.on(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c._unregisterListeners=function(){var w=this.hls;w.off(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.off(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.off(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},c.getAppendedFrag=function(w,y){if(y===B.PlaylistLevelType.MAIN){var f=this.activeFragment,m=this.activeParts;if(!f)return null;if(m)for(var a=m.length;a--;){var n=m[a],o=n?n.end:f.appendedPTS;if(n.start<=w&&o!==void 0&&w<=o)return a>9&&(this.activeParts=m.slice(a-9)),n}else if(f.start<=w&&f.appendedPTS!==void 0&&w<=f.appendedPTS)return f}return this.getBufferedFrag(w,y)},c.getBufferedFrag=function(w,y){for(var f=this.fragments,m=Object.keys(f),a=m.length;a--;){var n=f[m[a]];if((n==null?void 0:n.body.type)===y&&n.buffered){var o=n.body;if(o.start<=w&&w<=o.end)return o}}return null},c.detectEvictedFragments=function(w,y,f){var m=this;Object.keys(this.fragments).forEach(function(a){var n=m.fragments[a];if(!n)return;if(!n.buffered){n.body.type===f&&m.removeFragment(n.body);return}var o=n.range[w];if(!o)return;o.time.some(function(u){var x=!m.isTimeBuffered(u.startPTS,u.endPTS,y);return x&&m.removeFragment(n.body),x})})},c.detectPartialFragments=function(w){var y=this,f=this.timeRanges,m=w.frag,a=w.part;if(!f||m.sn==="initSegment")return;var n=_(m),o=this.fragments[n];if(!o)return;Object.keys(f).forEach(function(u){var x=m.elementaryStreams[u];if(!x)return;var E=f[u],v=a!==null||x.partial===!0;o.range[u]=y.getBufferedTimes(m,a,v,E)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},c.fragBuffered=function(w){var y=_(w),f=this.fragments[y];f&&(f.backtrack=f.loaded=null,f.buffered=!0)},c.getBufferedTimes=function(w,y,f,m){for(var a={time:[],partial:f},n=y?y.start:w.start,o=y?y.end:w.end,u=w.minEndPTS||o,x=w.maxStartPTS||n,E=0;E=v&&u<=O){a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});break}else if(nv)a.partial=!0,a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});else if(o<=v)break}return a},c.getPartialFragment=function(w){var y=null,f,m,a,n=0,o=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(x){var E=u[x];if(!E)return;U(E)&&(m=E.body.start-o,a=E.body.end+o,w>=m&&w<=a&&(f=Math.min(w-m,a-w),n<=f&&(y=E.body,n=f)))}),y},c.getState=function(w){var y=_(w),f=this.fragments[y];return f?f.buffered?U(f)?M.PARTIAL:M.OK:f.backtrack?M.BACKTRACKED:M.APPENDING:M.NOT_LOADED},c.backtrack=function(w,y){var f=_(w),m=this.fragments[f];if(!m||m.backtrack)return null;var a=m.backtrack=y||m.loaded;return m.loaded=null,a},c.getBacktrackData=function(w){var y=_(w),f=this.fragments[y];if(f){var m,a=f.backtrack;if(a!=null&&(m=a.payload)!==null&&m!==void 0&&m.byteLength)return a;this.removeFragment(w)}return null},c.isTimeBuffered=function(w,y,f){for(var m,a,n=0;n=m&&y<=a)return!0;if(y<=m)return!1}return!1},c.onFragLoaded=function(w,y){var f=y.frag,m=y.part;if(f.sn==="initSegment"||f.bitrateTest||m)return;var a=_(f);this.fragments[a]={body:f,loaded:y,backtrack:null,buffered:!1,range:Object.create(null)}},c.onBufferAppended=function(w,y){var f=this,m=y.frag,a=y.part,n=y.timeRanges;if(m.type===B.PlaylistLevelType.MAIN)if(this.activeFragment=m,a){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(a)}else this.activeParts=null;this.timeRanges=n,Object.keys(n).forEach(function(u){var x=n[u];if(f.detectEvictedFragments(u,x),!a)for(var E=0;Ew&&m.removeFragment(o)}})},c.removeFragment=function(w){var y=_(w);w.stats.loaded=0,w.clearElementaryStreamInfo(),delete this.fragments[y]},c.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},R}();function U(R){var c,g;return R.buffered&&(((c=R.range.video)===null||c===void 0?void 0:c.partial)||((g=R.range.audio)===null||g===void 0?void 0:g.partial))}function _(R){return R.type+"_"+R.level+"_"+R.urlId+"_"+R.sn}},"./src/controller/gap-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"STALL_MINIMUM_DURATION_MS",function(){return U}),k.d(K,"MAX_START_GAP_JUMP",function(){return _}),k.d(K,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return R}),k.d(K,"SKIP_BUFFER_RANGE_START",function(){return c}),k.d(K,"default",function(){return g});var z=k("./src/utils/buffer-helper.ts"),B=k("./src/errors.ts"),M=k("./src/events.ts"),j=k("./src/utils/logger.ts"),U=250,_=2,R=.1,c=.05,g=function(){function w(f,m,a,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=f,this.media=m,this.fragmentTracker=a,this.hls=n}var y=w.prototype;return y.destroy=function(){this.hls=this.fragmentTracker=this.media=null},y.poll=function(m){var a=this.config,n=this.media,o=this.stalled,u=n.currentTime,x=n.seeking,E=this.seeking&&!x,v=!this.seeking&&x;if(this.seeking=x,u!==m){if(this.moved=!0,o!==null){if(this.stallReported){var O=self.performance.now()-o;j.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(O)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||E)&&(this.stalled=null),n.paused||n.ended||n.playbackRate===0||!z.BufferHelper.getBuffered(n).length)return;var A=z.BufferHelper.bufferInfo(n,u,0),p=A.len>0,h=A.nextStart||0;if(!p&&!h)return;if(x){var s=A.len>_,l=!h||h-u>_&&!this.fragmentTracker.getPartialFragment(u);if(s||l)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,T=Math.max(h,A.start||0)-u,S=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,I=S==null||((D=S.details)===null||D===void 0)?void 0:D.live,C=I?S.details.targetduration*2:_;if(T>0&&T<=C){this._trySkipBufferHole(null);return}}var W=self.performance.now();if(o===null){this.stalled=W;return}var Y=W-o;!x&&Y>=U&&this._reportStall(A.len);var H=z.BufferHelper.bufferInfo(n,u,a.maxBufferHole);this._tryFixBufferStall(H,Y)},y._tryFixBufferStall=function(m,a){var n=this.config,o=this.fragmentTracker,u=this.media,x=u.currentTime,E=o.getPartialFragment(x);if(E){var v=this._trySkipBufferHole(E);if(v)return}m.len>n.maxBufferHole&&a>n.highBufferWatchdogPeriod*1e3&&(j.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},y._reportStall=function(m){var a=this.hls,n=this.media,o=this.stallReported;o||(this.stallReported=!0,j.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer (buffer="+m+")"),a.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:m}))},y._trySkipBufferHole=function(m){for(var a=this.config,n=this.hls,o=this.media,u=o.currentTime,x=0,E=z.BufferHelper.getBuffered(o),v=0;v=x&&u.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,n)),O=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;w.playbackRate=Math.min(v,Math.max(1,O))}else w.playbackRate!==1&&w.playbackRate!==0&&(w.playbackRate=1)},c.estimateLiveEdge=function(){var w=this.levelDetails;return w===null?null:w.edge+w.age},c.computeLatency=function(){var w=this.estimateLiveEdge();return w===null?null:w-this.currentTime},U(R,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var w=this.config,y=this.levelDetails;return w.liveMaxLatencyDuration!==void 0?w.liveMaxLatencyDuration:y?w.liveMaxLatencyDurationCount*y.targetduration:0}},{key:"targetLatency",get:function(){var w=this.levelDetails;if(w===null)return null;var y=w.holdBack,f=w.partHoldBack,m=w.targetduration,a=this.config,n=a.liveSyncDuration,o=a.liveSyncDurationCount,u=a.lowLatencyMode,x=this.hls.userConfig,E=u&&f||y;(x.liveSyncDuration||x.liveSyncDurationCount||E===0)&&(E=n!==void 0?n:o*m);var v=m,O=1;return E+Math.min(this.stallCount*O,v)}},{key:"liveSyncPosition",get:function(){var w=this.estimateLiveEdge(),y=this.targetLatency,f=this.levelDetails;if(w===null||y===null||f===null)return null;var m=f.edge,a=w-y-this.edgeStalled,n=m-f.totalduration,o=m-(this.config.lowLatencyMode&&f.partTarget||f.targetduration);return Math.min(Math.max(n,a),o)}},{key:"drift",get:function(){var w=this.levelDetails;return w===null?1:w.drift}},{key:"edgeStalled",get:function(){var w=this.levelDetails;if(w===null)return 0;var y=(this.config.lowLatencyMode&&w.partTarget||w.targetduration)*3;return Math.max(w.age-y,0)}},{key:"forwardBufferLength",get:function(){var w=this.media,y=this.levelDetails;if(!w||!y)return 0;var f=w.buffered.length;return f?w.buffered.end(f-1):y.edge-this.currentTime}}]),R}()},"./src/controller/level-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return a});var z=k("./src/types/level.ts"),B=k("./src/events.ts"),M=k("./src/errors.ts"),j=k("./src/utils/codecs.ts"),U=k("./src/controller/level-helper.ts"),_=k("./src/controller/base-playlist-controller.ts"),R=k("./src/types/loader.ts");function c(){return c=Object.assign||function(n){for(var o=1;o0){h=O[0].bitrate,O.sort(function(Y,H){return Y.bitrate-H.bitrate}),this._levels=O;for(var I=0;Ithis.hls.config.fragLoadingMaxRetry&&(s=v.frag.level)):s=v.frag.level}break;case M.ErrorDetails.LEVEL_LOAD_ERROR:case M.ErrorDetails.LEVEL_LOAD_TIMEOUT:O&&(O.deliveryDirectives&&(h=!1),s=O.level),p=!0;break;case M.ErrorDetails.REMUX_ALLOC_ERROR:s=v.level,p=!0;break}s!==void 0&&this.recoverLevel(v,s,p,h)},u.recoverLevel=function(E,v,O,A){var p=E.details,h=this._levels[v];if(h.loadError++,O){var s=this.retryLoadingOrFail(E);if(s)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(A){var l=h.url.length;if(l>1&&h.loadError1){var A=(v.urlId+1)%O;this.warn("Switching to redundant URL-id "+A),this._levels.forEach(function(p){p.urlId=A}),this.level=E}},u.onFragLoaded=function(E,v){var O=v.frag;if(O!==void 0&&O.type===R.PlaylistLevelType.MAIN){var A=this._levels[O.level];A!==void 0&&(A.fragmentError=0,A.loadError=0)}},u.onLevelLoaded=function(E,v){var O,A=v.level,p=v.details,h=this._levels[A];if(!h){var s;this.warn("Invalid level index "+A),(s=v.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(p.deltaUpdateFailed=!0);return}A===this.currentLevelIndex?(h.fragmentError===0&&(h.loadError=0,this.retryCount=0),this.playlistLoaded(A,v,h.details)):(O=v.deliveryDirectives)!==null&&O!==void 0&&O.skip&&(p.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(E,v){var O=this.hls.levels[this.currentLevelIndex];if(!O)return;if(O.audioGroupIds){for(var A=-1,p=this.hls.audioTracks[v.id].groupId,h=0;h0){var A=O.urlId,p=O.url[A];if(E)try{p=E.addDirectives(p)}catch(h){this.warn("Could not construct new URL with HLS Delivery Directives: "+h)}this.log("Attempt loading level index "+v+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+A+" "+p),this.clearTimer(),this.hls.trigger(B.Events.LEVEL_LOADING,{url:p,level:v,id:A,deliveryDirectives:E||null})}},u.removeLevel=function(E,v){var O=function(h,s){return s!==v},A=this._levels.filter(function(p,h){return h!==E?!0:p.url.length>1&&v!==void 0?(p.url=p.url.filter(O),p.audioGroupIds&&(p.audioGroupIds=p.audioGroupIds.filter(O)),p.textGroupIds&&(p.textGroupIds=p.textGroupIds.filter(O)),p.urlId=0,!0):!1}).map(function(p,h){var s=p.details;return s!=null&&s.fragments&&s.fragments.forEach(function(l){l.level=h}),p});this._levels=A,this.hls.trigger(B.Events.LEVELS_UPDATED,{levels:A})},w(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var v,O=this._levels;if(O.length===0)return;if(this.currentLevelIndex===E&&(v=O[E])!==null&&v!==void 0&&v.details)return;if(E<0||E>=O.length){var A=E<0;if(this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.OTHER_ERROR,details:M.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:A,reason:"invalid level idx"}),A)return;E=Math.min(E,O.length-1)}this.clearTimer();var p=this.currentLevelIndex,h=O[p],s=O[E];this.log("switching to level "+E+" from "+p),this.currentLevelIndex=E;var l=c({},s,{level:E,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete l._urlId,this.hls.trigger(B.Events.LEVEL_SWITCHING,l);var D=s.details;if(!D||D.live){var T=this.switchParams(s.uri,h==null?void 0:h.details);this.loadPlaylist(T)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),o}(_.default)},"./src/controller/level-helper.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"addGroupId",function(){return M}),k.d(K,"assignTrackIdsByGroup",function(){return j}),k.d(K,"updatePTS",function(){return U}),k.d(K,"updateFragPTSDTS",function(){return R}),k.d(K,"mergeDetails",function(){return c}),k.d(K,"mapPartIntersection",function(){return g}),k.d(K,"mapFragmentIntersection",function(){return w}),k.d(K,"adjustSliding",function(){return y}),k.d(K,"addSliding",function(){return f}),k.d(K,"computeReloadInterval",function(){return m}),k.d(K,"getFragmentWithSN",function(){return a}),k.d(K,"getPartWith",function(){return n});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/logger.ts");function M(o,u,x){switch(u){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(x);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(x);break}}function j(o){var u={};o.forEach(function(x){var E=x.groupId||"";x.id=u[E]=u[E]||0,u[E]++})}function U(o,u,x){var E=o[u],v=o[x];_(E,v)}function _(o,u){var x=u.startPTS;if(Object(z.isFiniteNumber)(x)){var E=0,v;u.sn>o.sn?(E=x-o.start,v=o):(E=o.start-x,v=u),v.duration!==E&&(v.duration=E)}else if(u.sn>o.sn){var O=o.cc===u.cc;O&&o.minEndPTS?u.start=o.start+(o.minEndPTS-o.start):u.start=o.start+o.duration}else u.start=Math.max(o.start-u.duration,0)}function R(o,u,x,E,v,O){var A=E-x;A<=0&&(B.logger.warn("Fragment should have a positive duration",u),E=x+u.duration,O=v+u.duration);var p=x,h=E,s=u.startPTS,l=u.endPTS;if(Object(z.isFiniteNumber)(s)){var D=Math.abs(s-x);Object(z.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(D,u.deltaPTS):u.deltaPTS=D,p=Math.max(x,s),x=Math.min(x,s),v=Math.min(v,u.startDTS),h=Math.min(E,l),E=Math.max(E,l),O=Math.max(O,u.endDTS)}u.duration=E-x;var T=x-u.start;u.appendedPTS=E,u.start=u.startPTS=x,u.maxStartPTS=p,u.startDTS=v,u.endPTS=E,u.minEndPTS=h,u.endDTS=O;var S=u.sn;if(!o||So.endSN)return 0;var I,C=S-o.startSN,W=o.fragments;for(W[C]=u,I=C;I>0;I--)_(W[I],W[I-1]);for(I=C;I=0;v--){var O=E[v].initSegment;if(O){x=O;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var A=0,p;if(w(o,u,function(I,C){I.relurl&&(A=I.cc-C.cc),Object(z.isFiniteNumber)(I.startPTS)&&Object(z.isFiniteNumber)(I.endPTS)&&(C.start=C.startPTS=I.startPTS,C.startDTS=I.startDTS,C.appendedPTS=I.appendedPTS,C.maxStartPTS=I.maxStartPTS,C.endPTS=I.endPTS,C.endDTS=I.endDTS,C.minEndPTS=I.minEndPTS,C.duration=I.endPTS-I.startPTS,C.duration&&(p=C),u.PTSKnown=u.alignedSliding=!0),C.elementaryStreams=I.elementaryStreams,C.loader=I.loader,C.stats=I.stats,C.urlId=I.urlId,I.initSegment&&(C.initSegment=I.initSegment,x=I.initSegment)}),x){var h=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;h.forEach(function(I){var C;(!I.initSegment||I.initSegment.relurl===((C=x)===null||C===void 0?void 0:C.relurl))&&(I.initSegment=x)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(I){return!I}),u.deltaUpdateFailed)){B.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=u.skippedSegments;s--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var l=u.fragments;if(A){B.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D=E.length)return;f(u,E[x].start)}function f(o,u){if(u){for(var x=o.fragments,E=o.skippedSegments;E0&&v0&&h===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),h=s),this.state=B.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()}else this._forceStartLoad=!0,this.state=B.State.STOPPED},A.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},A.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_LEVEL:{var h,s=this.levels,l=this.level,D=s==null||((h=s[l])===null||h===void 0)?void 0:h.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=B.State.IDLE;break}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var T,S=self.performance.now(),I=this.retryDate;(!I||S>=I||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=B.State.IDLE)}break;default:break}this.onTickEnd()},A.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},A.doTickIdle=function(){var h,s,l=this.hls,D=this.levelLastLoaded,T=this.levels,S=this.media,I=l.config,C=l.nextLoadLevel;if(D===null||!S&&(this.startFragRequested||!I.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[C])return;var W=T[C];this.level=l.nextLoadLevel=C;var Y=W.details;if(!Y||this.state===B.State.WAITING_LEVEL||Y.live&&this.levelLastLoaded!==C){this.state=B.State.WAITING_LEVEL;return}var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:S,R.PlaylistLevelType.MAIN);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(W.maxBitrate);if(F>=q)return;if(this._streamEnded(H,Y)){var le={};this.altAudio&&(le.type="video"),this.hls.trigger(j.Events.BUFFER_EOS,le),this.state=B.State.ENDED;return}var pe=H.end,Ae=this.getNextFragment(pe,Y);if(this.couldBacktrack&&!this.fragPrevious&&Ae&&Ae.sn!=="initSegment"){var Ge=Ae.sn-Y.startSN;Ge>1&&(Ae=Y.fragments[Ge-1],this.fragmentTracker.removeFragment(Ae))}if(Ae&&this.fragmentTracker.getState(Ae)===_.FragmentState.OK&&this.nextLoadPosition>pe){var Fe=this.audioOnly&&!this.altAudio?c.ElementaryStreamTypes.AUDIO:c.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(S,Fe,R.PlaylistLevelType.MAIN),Ae=this.getNextFragment(this.nextLoadPosition,Y)}if(!Ae)return;Ae.initSegment&&!Ae.initSegment.data&&!this.bitrateTest&&(Ae=Ae.initSegment),((h=Ae.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((s=Ae.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(Ae,Y):this.loadFragment(Ae,Y,pe)},A.loadFragment=function(h,s,l){var D,T=this.fragmentTracker.getState(h);if(this.fragCurrent=h,T===_.FragmentState.BACKTRACKED){var S=this.fragmentTracker.getBacktrackData(h);if(S){this._handleFragmentLoadProgress(S),this._handleFragmentLoadComplete(S);return}else T=_.FragmentState.NOT_LOADED}T===_.FragmentState.NOT_LOADED||T===_.FragmentState.PARTIAL?h.sn==="initSegment"?this._loadInitSegment(h):this.bitrateTest?(h.bitrateTest=!0,this.log("Fragment "+h.sn+" of level "+h.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(h)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,h,s,l)):T===_.FragmentState.APPENDING?this.reduceMaxBufferLength(h.duration)&&this.fragmentTracker.removeFragment(h):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},A.getAppendedFrag=function(h){var s=this.fragmentTracker.getAppendedFrag(h,R.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},A.getBufferedFrag=function(h){return this.fragmentTracker.getBufferedFrag(h,R.PlaylistLevelType.MAIN)},A.followingBufferedFrag=function(h){return h?this.getBufferedFrag(h.end+.5):null},A.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},A.nextLevelSwitch=function(){var h=this.levels,s=this.media;if(s!=null&&s.readyState){var l,D=this.getAppendedFrag(s.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!s.paused&&h){var T=this.hls.nextLoadLevel,S=h[T],I=this.fragLastKbps;I&&this.fragCurrent?l=this.fragCurrent.duration*S.maxBitrate/(1e3*I)+1:l=0}else l=0;var C=this.getBufferedFrag(s.currentTime+l);if(C){var W=this.followingBufferedFrag(C);if(W){this.abortCurrentFrag();var Y=W.maxStartPTS?W.maxStartPTS:W.start,H=W.duration,F=Math.max(C.end,Y+Math.min(Math.max(H-this.config.maxFragLookUpTolerance,H*.5),H*.75));this.flushMainBuffer(F,Number.POSITIVE_INFINITY)}}}},A.abortCurrentFrag=function(){var h=this.fragCurrent;this.fragCurrent=null,h!=null&&h.loader&&h.loader.abort(),this.state===B.State.KEY_LOADING&&(this.state=B.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},A.flushMainBuffer=function(h,s){v.prototype.flushMainBuffer.call(this,h,s,this.altAudio?"video":null)},A.onMediaAttached=function(h,s){v.prototype.onMediaAttached.call(this,h,s);var l=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),l.addEventListener("playing",this.onvplaying),l.addEventListener("seeked",this.onvseeked),this.gapController=new y.default(this.config,l,this.fragmentTracker,this.hls)},A.onMediaDetaching=function(){var h=this.media;h&&(h.removeEventListener("playing",this.onvplaying),h.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),v.prototype.onMediaDetaching.call(this)},A.onMediaPlaying=function(){this.tick()},A.onMediaSeeked=function(){var h=this.media,s=h?h.currentTime:null;Object(z.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},A.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(j.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},A.onManifestParsed=function(h,s){var l=!1,D=!1,T;s.levels.forEach(function(S){T=S.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(l=!0),T.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=l&&D&&!Object(M.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=s.levels,this.startFragRequested=!1},A.onLevelLoading=function(h,s){var l=this.levels;if(!l||this.state!==B.State.IDLE)return;var D=l[s.level];(!D.details||D.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(D.details))&&(this.state=B.State.WAITING_LEVEL)},A.onLevelLoaded=function(h,s){var l,D=this.levels,T=s.level,S=s.details,I=S.totalduration;if(!D){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+S.startSN+","+S.endSN+"], cc ["+S.startCC+", "+S.endCC+"] duration:"+I);var C=this.fragCurrent;C&&(this.state===B.State.FRAG_LOADING||this.state===B.State.FRAG_LOADING_WAITING_RETRY)&&(C.level!==s.level&&C.loader&&(this.state=B.State.IDLE,C.loader.abort()));var W=D[T],Y=0;if(S.live||(l=W.details)!==null&&l!==void 0&&l.live){if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed)return;Y=this.alignPlaylists(S,W.details)}if(W.details=S,this.levelLastLoaded=T,this.hls.trigger(j.Events.LEVEL_UPDATED,{details:S,level:T}),this.state===B.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(S))return;this.state=B.State.IDLE}this.startFragRequested?S.live&&this.synchronizeToLiveEdge(S):this.setStartPosition(S,Y),this.tick()},A._handleFragmentLoadProgress=function(h){var s,l=h.frag,D=h.part,T=h.payload,S=this.levels;if(!S){this.warn("Levels were reset while fragment load was in progress. Fragment "+l.sn+" of level "+l.level+" will not be buffered");return}var I=S[l.level],C=I.details;if(!C){this.warn("Dropping fragment "+l.sn+" of level "+l.level+" after level details were reset");return}var W=I.videoCodec,Y=C.PTSKnown||!C.live,H=(s=l.initSegment)===null||s===void 0?void 0:s.data,F=this._getAudioCodec(I),q=this.transmuxer=this.transmuxer||new g.default(this.hls,R.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),le=D?D.index:-1,pe=le!==-1,Ae=new w.ChunkMetadata(l.level,l.sn,l.stats.chunkCount,T.byteLength,le,pe),Ge=this.initPTS[l.cc];q.push(T,H,F,W,l,D,C.totalduration,Y,Ae,Ge)},A.onAudioTrackSwitching=function(h,s){var l=this.altAudio,D=!!s.url,T=s.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var S=this.fragCurrent;S!=null&&S.loader&&(this.log("Switching to main audio track, cancel main fragment load"),S.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var I=this.hls;l&&I.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),I.trigger(j.Events.AUDIO_TRACK_SWITCHED,{id:T})}},A.onAudioTrackSwitched=function(h,s){var l=s.id,D=!!this.hls.audioTracks[l].url;if(D){var T=this.videoBuffer;T&&this.mediaBuffer!==T&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=T)}this.altAudio=D,this.tick()},A.onBufferCreated=function(h,s){var l=s.tracks,D,T,S=!1;for(var I in l){var C=l[I];if(C.id==="main"){if(T=I,D=C,I==="video"){var W=l[I];W&&(this.videoBuffer=W.buffer)}}else S=!0}S&&D?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},A.onFragBuffered=function(h,s){var l=s.frag,D=s.part;if(l&&l.type!==R.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(l)){this.warn("Fragment "+l.sn+(D?" p: "+D.index:"")+" of level "+l.level+" finished buffering, but was aborted. state: "+this.state),this.state===B.State.PARSED&&(this.state=B.State.IDLE);return}var T=D?D.stats:l.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),l.sn!=="initSegment"&&(this.fragPrevious=l),this.fragBufferedComplete(l,D)},A.onError=function(h,s){switch(s.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.MAIN,s);break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==B.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=B.State.ERROR):!s.levelRetry&&this.state===B.State.WAITING_LEVEL&&(this.state=B.State.IDLE));break;case f.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var l=!0,D=this.getFwdBufferInfo(this.media,R.PlaylistLevelType.MAIN);D&&D.len>.5&&(l=!this.reduceMaxBufferLength(D.len)),l&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},A.checkBuffer=function(){var h=this.media,s=this.gapController;if(!h||!s||!h.readyState)return;var l=U.BufferHelper.getBuffered(h);!this.loadedmetadata&&l.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=h.currentTime},A.onFragLoadEmergencyAborted=function(){this.state=B.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},A.onBufferFlushed=function(h,s){var l=s.type;if(l!==c.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(l===c.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,l,R.PlaylistLevelType.MAIN)}},A.onLevelsUpdated=function(h,s){this.levels=s.levels},A.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},A.seekToStartPos=function(){var h=this.media,s=h.currentTime,l=this.startPosition;if(l>=0&&s0&&(S1&&h.seeking===!1){var l=h.currentTime;if(U.BufferHelper.isBuffered(h,l)?s=this.getAppendedFrag(l):U.BufferHelper.isBuffered(h,l+.1)&&(s=this.getAppendedFrag(l+.1)),s){var D=this.fragPlaying,T=s.level;(!D||s.sn!==D.sn||D.level!==T||s.urlId!==D.urlId)&&(this.hls.trigger(j.Events.FRAG_CHANGED,{frag:s}),(!D||D.level!==T)&&this.hls.trigger(j.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=s)}}},n(O,[{key:"nextLevel",get:function(){var h=this.nextBufferedFrag;return h?h.level:-1}},{key:"currentLevel",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),O}(B.default)},"./src/controller/subtitle-stream-controller.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"SubtitleStreamController",function(){return o});var z=k("./src/events.ts"),B=k("./src/utils/logger.ts"),M=k("./src/utils/buffer-helper.ts"),j=k("./src/controller/fragment-finders.ts"),U=k("./src/utils/discontinuities.ts"),_=k("./src/controller/level-helper.ts"),R=k("./src/controller/fragment-tracker.ts"),c=k("./src/controller/base-stream-controller.ts"),g=k("./src/types/loader.ts"),w=k("./src/types/level.ts");function y(u,x){for(var E=0;E=s[T].start&&D<=s[T].end){l=s[T];break}var S=p.start+p.duration;l?l.end=S:(l={start:D,end:S},s.push(l)),this.fragmentTracker.fragBuffered(p)},E.onBufferFlushing=function(O,A){var p=A.startOffset,h=A.endOffset;if(p===0&&h!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,l=this.levels;if(!l.length||!l[s]||!l[s].details)return;var D=l[s].details,T=D.targetduration,S=h-T;if(S<=0)return;A.endOffsetSubtitles=Math.max(0,S),this.tracksBuffered.forEach(function(I){for(var C=0;C=D.length||s!==l||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,h.live||(p=T.details)!==null&&p!==void 0&&p.live){var S=this.mainDetails;if(h.deltaUpdateFailed||!S)return;var I=S.fragments[0];if(!T.details)h.hasProgramDateTime&&S.hasProgramDateTime?Object(U.alignMediaPlaylistByPDT)(h,S):I&&Object(_.addSliding)(h,I.start);else{var C=this.alignPlaylists(h,T.details);C===0&&I&&Object(_.addSliding)(h,I.start)}}if(T.details=h,this.levelLastLoaded=s,this.tick(),h.live&&!this.fragCurrent&&this.media&&this.state===c.State.IDLE){var W=Object(j.findFragmentByPTS)(null,h.fragments,this.media.currentTime,0);W||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},E._handleFragmentLoadComplete=function(O){var A=O.frag,p=O.payload,h=A.decryptdata,s=this.hls;if(this.fragContextChanged(A))return;if(p&&p.byteLength>0&&h&&h.key&&h.iv&&h.method==="AES-128"){var l=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(p),h.key.buffer,h.iv.buffer).then(function(D){var T=performance.now();s.trigger(z.Events.FRAG_DECRYPTED,{frag:A,payload:D,stats:{tstart:l,tdecrypt:T}})})}},E.doTick=function(){if(!this.media){this.state=c.State.IDLE;return}if(this.state===c.State.IDLE){var O,A=this.currentTrackId,p=this.levels;if(!p.length||!p[A]||!p[A].details)return;var h=p[A].details,s=h.targetduration,l=this.config,D=this.media,T=M.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-s,l.maxBufferHole),S=T.end,I=T.len,C=this.getMaxBufferLength()+s;if(I>C)return;console.assert(h,"Subtitle track details are defined on idle subtitle stream controller tick");var W=h.fragments,Y=W.length,H=h.edge,F,q=this.fragPrevious;if(S-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},m.pollTrackChange=function(n){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,n)},m.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var n=w(this.media.textTracks);n.forEach(function(o){Object(B.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},m.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},m.onManifestParsed=function(n,o){this.tracks=o.subtitleTracks},m.onSubtitleTrackLoaded=function(n,o){var u=o.id,x=o.details,E=this.trackId,v=this.tracksInGroup[E];if(!v){this.warn("Invalid subtitle track id "+u);return}var O=v.details;v.details=o.details,this.log("subtitle track "+u+" loaded ["+x.startSN+"-"+x.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,o,O))},m.onLevelLoading=function(n,o){this.switchLevel(o.level)},m.onLevelSwitching=function(n,o){this.switchLevel(o.level)},m.switchLevel=function(n){var o=this.hls.levels[n];if(!(o!=null&&o.textGroupIds))return;var u=o.textGroupIds[o.urlId];if(this.groupId!==u){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(A){return!u||A.groupId===u});this.tracksInGroup=E;var v=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=u;var O={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(z.Events.SUBTITLE_TRACKS_UPDATED,O),v!==-1&&this.setSubtitleTrack(v,x)}},m.findTrackId=function(n){for(var o=this.tracksInGroup,u=0;u=x.length)return;this.clearTimer();var E=x[n];if(this.log("Switching to subtitle track "+n),this.trackId=n,E){var v=E.id,O=E.groupId,A=O===void 0?"":O,p=E.name,h=E.type,s=E.url;this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:A,name:p,type:h,url:s});var l=this.switchParams(E.url,o==null?void 0:o.details);this.loadPlaylist(l)}else this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:n})},m.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var n=-1,o=w(this.media.textTracks),u=0;u=0&&(h[0]=Math.min(h[0],x),h[1]=Math.max(h[1],E),A=!0,s/(E-x)>.5))return}if(A||O.push([x,E]),this.config.renderTextTracksNatively){var l=this.captionsTracks[u];this.Cues.newCue(l,x,E,v)}else{var D=this.Cues.newCue(null,x,E,v);this.hls.trigger(B.Events.CUES_PARSED,{type:"captions",cues:D,track:u})}},n.onInitPtsFound=function(u,x){var E=this,v=x.frag,O=x.id,A=x.initPTS,p=x.timescale,h=this.unparsedVttFrags;O==="main"&&(this.initPTS[v.cc]=A,this.timescale[v.cc]=p),h.length&&(this.unparsedVttFrags=[],h.forEach(function(s){E.onFragLoaded(B.Events.FRAG_LOADED,s)}))},n.getExistingTrack=function(u){var x=this.media;if(x)for(var E=0;E>>8^p&255^99,R[v]=p,c[p]=v;var h=E[v],s=E[h],l=E[s],D=E[p]*257^p*16843008;w[v]=D<<24|D>>>8,y[v]=D<<16|D>>>16,f[v]=D<<8|D>>>24,m[v]=D,D=l*16843009^s*65537^h*257^v*16843008,n[p]=D<<24|D>>>8,o[p]=D<<16|D>>>16,u[p]=D<<8|D>>>24,x[p]=D,v?(v=h^E[E[E[l^h]]],O^=E[E[O]]):v=O=1}},U.expandKey=function(R){for(var c=this.uint8ArrayToUint32Array_(R),g=!0,w=0;w>>6)+1;var D=(u[x+2]&60)>>>2;if(D>l.length-1){o.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return A=(u[x+2]&1)<<2,A|=(u[x+3]&192)>>>6,z.logger.log("manifest codec:"+E+", ADTS type:"+v+", samplingIndex:"+D),/firefox/i.test(h)?D>=6?(v=5,p=new Array(4),O=D-3):(v=2,p=new Array(2),O=D):h.indexOf("android")!==-1?(v=2,p=new Array(2),O=D):(v=5,p=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&D>=6?O=D-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(D>=6&&A===1||/vivaldi/i.test(h))||!E&&A===1)&&(v=2,p=new Array(2)),O=D)),p[0]=v<<3,p[0]|=(D&14)>>1,p[1]|=(D&1)<<7,p[1]|=A<<3,v===5&&(p[1]|=(O&14)>>1,p[2]=(O&1)<<7,p[2]|=2<<2,p[3]=0),{config:p,samplerate:l[D],channelCount:A,codec:"mp4a.40."+v,manifestCodec:s}}function U(o,u){return o[u]===255&&(o[u+1]&246)===240}function _(o,u){return o[u+1]&1?7:9}function R(o,u){return(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5}function c(o,u){return u+5=o.length)return!1;var E=R(o,u);if(E<=x)return!1;var v=u+E;return v===o.length||g(o,v)}return!1}function f(o,u,x,E,v){if(!o.samplerate){var O=j(u,x,E,v);if(!O)return;o.config=O.config,o.samplerate=O.samplerate,o.channelCount=O.channelCount,o.codec=O.codec,o.manifestCodec=O.manifestCodec,z.logger.log("parsed codec:"+o.codec+", rate:"+O.samplerate+", channels:"+O.channelCount)}}function m(o){return 1024*9e4/o}function a(o,u,x,E,v){var O=_(o,u),A=R(o,u);if(A-=O,A>0){var p=x+E*v;return{headerLength:O,frameLength:A,stamp:p}}}function n(o,u,x,E,v){var O=m(o.samplerate),A=a(u,x,E,v,O);if(A){var p=A.frameLength,h=A.headerLength,s=A.stamp,l=h+p,D=Math.max(0,x+l-u.length),T;D?(T=new Uint8Array(l-h),T.set(u.subarray(x+h,u.length),0)):T=u.subarray(x+h,x+l);var S={unit:T,pts:s};return D||o.samples.push(S),{sample:S,length:l,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"initPTSFn",function(){return R});var z=k("./src/polyfills/number.ts"),B=k("./src/demux/id3.ts"),M=k("./src/demux/dummy-demuxed-track.ts"),j=k("./src/utils/mp4-tools.ts"),U=k("./src/utils/typed-array.ts"),_=function(){function c(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var g=c.prototype;return g.resetInitSegment=function(y,f,m){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},g.resetTimeStamp=function(){},g.resetContiguity=function(){},g.canParse=function(y,f){return!1},g.appendFrame=function(y,f,m){},g.demux=function(y,f){this.cachedData&&(y=Object(j.appendUint8Array)(this.cachedData,y),this.cachedData=null);var m=B.getID3Data(y,0),a=m?m.length:0,n,o,u=this._audioTrack,x=this._id3Track,E=m?B.getTimeStamp(m):void 0,v=y.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=R(E,f)),m&&m.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:m}),o=this.initPTS;a_?(this.word<<=_,this.bitsAvailable-=_):(_-=this.bitsAvailable,R=_>>3,_-=R>>3,this.bytesAvailable-=R,this.loadWord(),this.word<<=_,this.bitsAvailable-=_)},j.readBits=function(_){var R=Math.min(this.bitsAvailable,_),c=this.word>>>32-R;return _>32&&z.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=R,this.bitsAvailable>0?this.word<<=R:this.bytesAvailable>0&&this.loadWord(),R=_-R,R>0&&this.bitsAvailable?c<>>_)!==0)return this.word<<=_,this.bitsAvailable-=_,_;return this.loadWord(),_+this.skipLZ()},j.skipUEG=function(){this.skipBits(1+this.skipLZ())},j.skipEG=function(){this.skipBits(1+this.skipLZ())},j.readUEG=function(){var _=this.skipLZ();return this.readBits(_+1)-1},j.readEG=function(){var _=this.readUEG();return 1&_?1+_>>>1:-1*(_>>>1)},j.readBoolean=function(){return this.readBits(1)===1},j.readUByte=function(){return this.readBits(8)},j.readUShort=function(){return this.readBits(16)},j.readUInt=function(){return this.readBits(32)},j.skipScalingList=function(_){for(var R=8,c=8,g,w=0;w<_;w++)c!==0&&(g=this.readEG(),c=(R+g+256)%256),R=c===0?R:c},j.readSPS=function(){var _=0,R=0,c=0,g=0,w,y,f,m=this.readUByte.bind(this),a=this.readBits.bind(this),n=this.readUEG.bind(this),o=this.readBoolean.bind(this),u=this.skipBits.bind(this),x=this.skipEG.bind(this),E=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);m();var O=m();if(a(5),u(3),m(),E(),O===100||O===110||O===122||O===244||O===44||O===83||O===86||O===118||O===128){var A=n();if(A===3&&u(1),E(),E(),u(1),o())for(y=A!==3?8:12,f=0;f0?v.subarray(A,A+p):void 0},j=function(v,O){var A=0;return A=(v[O]&127)<<21,A|=(v[O+1]&127)<<14,A|=(v[O+2]&127)<<7,A|=v[O+3]&127,A},U=function(v,O){return z(v,O)&&j(v,O+6)+10<=v.length-O},_=function(v){for(var O=g(v),A=0;A>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:S+=String.fromCharCode(l);break;case 12:case 13:D=v[I++],S+=String.fromCharCode((l&31)<<6|D&63);break;case 14:D=v[I++],T=v[I++],S+=String.fromCharCode((l&15)<<12|(D&63)<<6|(T&63)<<0);break;default:}}return S},o={decodeTextFrame:f},u;function x(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/demux/base-audio-demuxer.ts"),B=k("./src/demux/id3.ts"),M=k("./src/utils/logger.ts"),j=k("./src/demux/mpegaudio.ts");function U(c,g){c.prototype=Object.create(g.prototype),c.prototype.constructor=c,_(c,g)}function _(c,g){return _=Object.setPrototypeOf||function(y,f){return y.__proto__=f,y},_(c,g)}var R=function(c){U(g,c);function g(){return c.apply(this,arguments)||this}var w=g.prototype;return w.resetInitSegment=function(f,m,a){c.prototype.resetInitSegment.call(this,f,m,a),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:f,duration:a,inputTimeScale:9e4,dropped:0}},g.probe=function(f){if(!f)return!1;for(var m=B.getID3Data(f,0)||[],a=m.length,n=f.length;a0},U.demux=function(R){var c=R,g=Object(B.dummyTrack)();if(this.config.progressive){this.remainderData&&(c=Object(z.appendUint8Array)(this.remainderData,R));var w=Object(z.segmentValidRange)(c);this.remainderData=w.remainder,g.samples=w.valid||new Uint8Array}else g.samples=c;return{audioTrack:Object(B.dummyTrack)(),avcTrack:g,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.flush=function(){var R=Object(B.dummyTrack)();return R.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(B.dummyTrack)(),avcTrack:R,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.demuxSampleAes=function(R,c,g){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},U.destroy=function(){},j}();M.minProbeByteLength=1024,K.default=M},"./src/demux/mpegaudio.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"appendFrame",function(){return _}),k.d(K,"parseHeader",function(){return R}),k.d(K,"isHeaderPattern",function(){return c}),k.d(K,"isHeader",function(){return g}),k.d(K,"canParse",function(){return w}),k.d(K,"probe",function(){return y});var z=null,B=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],M=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],j=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],U=[0,1,1,4];function _(f,m,a,n,o){if(a+24>m.length)return;var u=R(m,a);if(u&&a+u.frameLength<=m.length){var x=u.samplesPerFrame*9e4/u.sampleRate,E=n+o*x,v={unit:m.subarray(a,a+u.frameLength),pts:E,dts:E};return f.config=[],f.channelCount=u.channelCount,f.samplerate=u.sampleRate,f.samples.push(v),{sample:v,length:u.frameLength,missing:0}}}function R(f,m){var a=f[m+1]>>3&3,n=f[m+1]>>1&3,o=f[m+2]>>4&15,u=f[m+2]>>2&3;if(a!==1&&o!==0&&o!==15&&u!==3){var x=f[m+2]>>1&1,E=f[m+3]>>6,v=a===3?3-n:n===3?3:4,O=B[v*14+o-1]*1e3,A=a===3?0:a===2?1:2,p=M[A*3+u],h=E===3?1:2,s=j[a][n],l=U[n],D=s*8*l,T=Math.floor(s*O/p+x)*l;if(z===null){var S=navigator.userAgent||"",I=S.match(/Chrome\/(\d+)/i);z=I?parseInt(I[1]):0}var C=!!z&&z<=87;return C&&n===2&&O>=224e3&&E===0&&(f[m+3]=f[m+3]|128),{sampleRate:p,channelCount:h,frameLength:T,samplesPerFrame:D}}}function c(f,m){return f[m]===255&&(f[m+1]&224)===224&&(f[m+1]&6)!==0}function g(f,m){return m+1=R.length){g();return}if(R[c].unit.length<32)continue;var w=this.decrypter.isSync();if(this.decryptAacSample(R,c,g,w),!w)return}},U.getAvcEncryptedData=function(R){for(var c=Math.floor((R.length-48)/160)*16+16,g=new Int8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)g.set(R.subarray(y,y+16),w);return g},U.getAvcDecryptedUnit=function(R,c){for(var g=new Uint8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)R.set(g.subarray(w,w+16),y);return R},U.decryptAvcSample=function(R,c,g,w,y,f){var m=Object(B.discardEPB)(y.data),a=this.getAvcEncryptedData(m),n=this;this.decryptBuffer(a.buffer,function(o){y.data=n.getAvcDecryptedUnit(m,o),f||n.decryptAvcSamples(R,c,g+1,w)})},U.decryptAvcSamples=function(R,c,g,w){if(R instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;c++,g=0){if(c>=R.length){w();return}for(var y=R[c].units;!(g>=y.length);g++){var f=y[g];if(f.data.length<=48||f.type!==1&&f.type!==5)continue;var m=this.decrypter.isSync();if(this.decryptAvcSample(R,c,g,w,f,m),!m)return}}},j}();K.default=M},"./src/demux/transmuxer-interface.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y});var z=k("./node_modules/webworkify-webpack/index.js"),B=k.n(z),M=k("./src/events.ts"),j=k("./src/demux/transmuxer.ts"),U=k("./src/utils/logger.ts"),_=k("./src/errors.ts"),R=k("./src/utils/mediasource-helper.ts"),c=k("./node_modules/eventemitter3/index.js"),g=k.n(c),w=Object(R.getMediaSource)()||{isTypeSupported:function(){return!1}},y=function(){function f(a,n,o,u){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=a,this.id=n,this.onTransmuxComplete=o,this.onFlush=u;var E=a.config,v=function(s,l){l=l||{},l.frag=x.frag,l.id=x.id,a.trigger(s,l)};this.observer=new c.EventEmitter,this.observer.on(M.Events.FRAG_DECRYPTED,v),this.observer.on(M.Events.ERROR,v);var O={mp4:w.isTypeSupported("video/mp4"),mpeg:w.isTypeSupported("audio/mpeg"),mp3:w.isTypeSupported('audio/mp4; codecs="mp3"')},A=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){U.logger.log("demuxing in webworker");var p;try{p=this.worker=z("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),p.addEventListener("message",this.onwmsg),p.onerror=function(h){a.trigger(M.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(h.message+" ("+h.filename+":"+h.lineno+")")})},p.postMessage({cmd:"init",typeSupported:O,vendor:A,id:n,config:JSON.stringify(E)})}catch(h){U.logger.warn("Error in worker:",h),U.logger.error("Error while initializing DemuxerWorker, fallback to inline"),p&&self.URL.revokeObjectURL(p.objectURL),this.transmuxer=new j.default(this.observer,O,E,A,n),this.worker=null}}else this.transmuxer=new j.default(this.observer,O,E,A,n)}var m=f.prototype;return m.destroy=function(){var n=this.worker;if(n)n.removeEventListener("message",this.onwmsg),n.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var u=this.observer;u&&u.removeAllListeners(),this.observer=null},m.push=function(n,o,u,x,E,v,O,A,p,h){var s=this;p.transmuxing.start=self.performance.now();var l=this.transmuxer,D=this.worker,T=v?v.start:E.start,S=E.decryptdata,I=this.frag,C=!(I&&E.cc===I.cc),W=!(I&&p.level===I.level),Y=I?p.sn-I.sn:-1,H=this.part?p.part-this.part.index:1,F=!W&&(Y===1||Y===0&&H===1),q=self.performance.now();(W||Y||E.stats.parsing.start===0)&&(E.stats.parsing.start=q),v&&(H||!F)&&(v.stats.parsing.start=q);var le=new j.TransmuxState(C,F,A,W,T);if(!F||C){U.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+p.sn+" p: "+p.part+" level: "+p.level+" id: "+p.id+` + Time to underbuffer: `+C.toFixed(3)+" s"),o.nextLoadLevel=Y,this.bwEstimator.sample(A,v.loaded),this.clearTimer(),a.loader&&(this.fragCurrent=this.partCurrent=null,a.loader.abort()),o.trigger(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:a,part:n,stats:v})},f.onFragLoaded=function(a,n){var o=n.frag,u=n.part;if(o.type===_.PlaylistLevelType.MAIN&&Object(z.isFiniteNumber)(o.sn)){var x=u?u.stats:o.stats,E=u?u.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[o.level],O=(v.loaded?v.loaded.bytes:0)+x.loaded,A=(v.loaded?v.loaded.duration:0)+E;v.loaded={bytes:O,duration:A},v.realBitrate=Math.round(8*O/A)}if(o.bitrateTest){var p={stats:x,frag:o,part:u,id:o.type};this.onFragBuffered(M.Events.FRAG_BUFFERED,p),o.bitrateTest=!1}}},f.onFragBuffered=function(a,n){var o=n.frag,u=n.part,x=u?u.stats:o.stats;if(x.aborted)return;if(o.type!==_.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var E=x.parsing.end-x.loading.start;this.bwEstimator.sample(E,x.loaded),x.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},f.onError=function(a,n){switch(n.details){case U.ErrorDetails.FRAG_LOAD_ERROR:case U.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},f.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},f.getNextABRAutoLevel=function(){var a=this.fragCurrent,n=this.partCurrent,o=this.hls,u=o.maxAutoLevel,x=o.config,E=o.minAutoLevel,v=o.media,O=n?n.duration:a?a.duration:0,A=v?v.currentTime:0,p=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,h=this.bwEstimator?this.bwEstimator.getEstimate():x.abrEwmaDefaultEstimate,s=(j.BufferHelper.bufferInfo(v,A,x.maxBufferHole).end-A)/p,l=this.findBestLevel(h,E,u,s,x.abrBandWidthFactor,x.abrBandWidthUpFactor);if(l>=0)return l;R.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=O?Math.min(O,x.maxStarvationDelay):x.maxStarvationDelay,T=x.abrBandWidthFactor,S=x.abrBandWidthUpFactor;if(!s){var I=this.bitrateTestDelay;if(I){var C=O?Math.min(O,x.maxLoadingDelay):x.maxLoadingDelay;D=C-I,R.logger.trace("bitrate test took "+Math.round(1e3*I)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),T=S=1}}return l=this.findBestLevel(h,E,u,s+D,T,S),Math.max(l,0)},f.findBestLevel=function(a,n,o,u,x,E){for(var v,O=this.fragCurrent,A=this.partCurrent,p=this.lastLoadedFragLevel,h=this.hls.levels,s=h[p],l=!!(s!=null&&(v=s.details)!==null&&v!==void 0&&v.live),D=s==null?void 0:s.codecSet,T=A?A.duration:O?O.duration:0,S=o;S>=n;S--){var I=h[S];if(!I||D&&I.codecSet!==D)continue;var C=I.details,W=(A?C==null?void 0:C.partTarget:C==null?void 0:C.averagetargetduration)||T,Y=void 0;S<=p?Y=x*a:Y=E*a;var H=h[S].maxBitrate,F=H*W/Y;if(R.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+S+"/"+Math.round(Y)+"/"+H+"/"+W+"/"+u+"/"+F),Y>H&&(!F||l&&!this.bitrateTestDelay||F0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),this.state=B.State.IDLE):(this.loadedmetadata=!1,this.state=B.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},p.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_TRACK:{var s,l=this.levels,D=this.trackId,T=l==null||((s=l[D])===null||s===void 0)?void 0:s.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=B.State.WAITING_INIT_PTS}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var S,I=performance.now(),C=this.retryDate;(!C||I>=C||(S=this.media)!==null&&S!==void 0&&S.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=B.State.IDLE);break}case B.State.WAITING_INIT_PTS:{var W=this.waitingData;if(W){var Y=W.frag,H=W.part,F=W.cache,q=W.complete;if(this.initPTS[Y.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.FRAG_LOADING;var le=F.flush(),pe={frag:Y,part:H,payload:le,networkDetails:null};this._handleFragmentLoadProgress(pe),q&&O.prototype._handleFragmentLoadComplete.call(this,pe)}else if(this.videoTrackCC!==this.waitingVideoCC)n.logger.log("Waiting fragment cc ("+Y.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Ae=this.getLoadPosition(),Ge=j.BufferHelper.bufferInfo(this.mediaBuffer,Ae,this.config.maxBufferHole),Fe=Object(f.fragmentWithinToleranceTest)(Ge.end,this.config.maxFragLookUpTolerance,Y);Fe<0&&(n.logger.log("Waiting fragment cc ("+Y.cc+") @ "+Y.start+" cancelled because another fragment at "+Ge.end+" is needed"),this.clearWaitingFragment())}}else this.state=B.State.IDLE}}this.onTickEnd()},p.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=B.State.IDLE)},p.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var l=this.mediaBuffer?this.mediaBuffer:s,D=l.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},p.doTickIdle=function(){var s,l,D=this.hls,T=this.levels,S=this.media,I=this.trackId,C=D.config;if(!T||!T[I])return;if(!S&&(this.startFragRequested||!C.startFragPrefetch))return;var W=T[I],Y=W.details;if(!Y||Y.live&&this.levelLastLoaded!==I||this.waitForCdnTuneIn(Y)){this.state=B.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,c.ElementaryStreamTypes.AUDIO,R.PlaylistLevelType.AUDIO));var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,R.PlaylistLevelType.AUDIO);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(),le=this.audioSwitch;if(F>=q&&!le)return;if(!le&&this._streamEnded(H,Y)){D.trigger(M.Events.BUFFER_EOS,{type:"audio"}),this.state=B.State.ENDED;return}var pe=Y.fragments,Ae=pe[0].start,Ge=H.end;if(le){var Fe=this.getLoadPosition();Ge=Fe,Y.PTSKnown&&FeAe||H.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),S.currentTime=Ae+.05))}var Ue=this.getNextFragment(Ge,Y);if(!Ue){this.bufferFlushed=!0;return}((s=Ue.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((l=Ue.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(Ue,Y):this.loadFragment(Ue,Y,Ge)},p.getMaxBufferLength=function(){var s=O.prototype.getMaxBufferLength.call(this),l=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,R.PlaylistLevelType.MAIN);return l===null?s:Math.max(s,l.len)},p.onMediaDetaching=function(){this.videoBuffer=null,O.prototype.onMediaDetaching.call(this)},p.onAudioTracksUpdated=function(s,l){var D=l.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(T){return new _.Level(T)})},p.onAudioTrackSwitching=function(s,l){var D=!!l.url;this.trackId=l.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(E):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=B.State.IDLE):this.state=B.State.STOPPED,this.tick()},p.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},p.onLevelLoaded=function(s,l){this.mainDetails=l.details},p.onAudioTrackLoaded=function(s,l){var D,T=this.levels,S=l.details,I=l.id;if(!T){this.warn("Audio tracks were reset while loading level "+I);return}this.log("Track "+I+" loaded ["+S.startSN+","+S.endSN+"],duration:"+S.totalduration);var C=T[I],W=0;if(S.live||(D=C.details)!==null&&D!==void 0&&D.live){var Y=this.mainDetails;if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed||!Y)return;!C.details&&S.hasProgramDateTime&&Y.hasProgramDateTime?(Object(m.alignMediaPlaylistByPDT)(S,Y),W=S.fragments[0].start):W=this.alignPlaylists(S,C.details)}C.details=S,this.levelLastLoaded=I,!this.startFragRequested&&(this.mainDetails||!S.live)&&this.setStartPosition(C.details,W),this.state===B.State.WAITING_TRACK&&!this.waitForCdnTuneIn(S)&&(this.state=B.State.IDLE),this.tick()},p._handleFragmentLoadProgress=function(s){var l,D=s.frag,T=s.part,S=s.payload,I=this.config,C=this.trackId,W=this.levels;if(!W){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var Y=W[C];console.assert(Y,"Audio track is defined on fragment load progress");var H=Y.details;console.assert(H,"Audio track details are defined on fragment load progress");var F=I.defaultAudioCodec||Y.audioCodec||"mp4a.40.2",q=this.transmuxer;q||(q=this.transmuxer=new w.default(this.hls,R.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var le=this.initPTS[D.cc],pe=(l=D.initSegment)===null||l===void 0?void 0:l.data;if(le!==void 0){var Ae=!1,Ge=T?T.index:-1,Fe=Ge!==-1,Ue=new y.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,S.byteLength,Ge,Fe);q.push(S,pe,F,"",D,T,H.totalduration,Ae,Ue,le)}else{n.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+H.startSN+" ,"+H.endSN+"],track "+C);var _e=this.waitingData=this.waitingData||{frag:D,part:T,cache:new g.default,complete:!1},je=_e.cache;je.push(new Uint8Array(S)),this.waitingVideoCC=this.videoTrackCC,this.state=B.State.WAITING_INIT_PTS}},p._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}O.prototype._handleFragmentLoadComplete.call(this,s)},p.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},p.onBufferCreated=function(s,l){var D=l.tracks.audio;D&&(this.mediaBuffer=D.buffer),l.tracks.video&&(this.videoBuffer=l.tracks.video.buffer)},p.onFragBuffered=function(s,l){var D=l.frag,T=l.part;if(D.type!==R.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(T?" p: "+T.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,T)},p.onError=function(s,l){switch(l.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.AUDIO,l);break;case a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==B.State.ERROR&&this.state!==B.State.STOPPED&&(this.state=l.fatal?B.State.ERROR:B.State.IDLE,this.warn(l.details+" while loading frag, switching to "+this.state+" state"));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="audio"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var D=!0,T=this.getFwdBufferInfo(this.mediaBuffer,R.PlaylistLevelType.AUDIO);T&&T.len>.5&&(D=!this.reduceMaxBufferLength(T.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},p.onBufferFlushed=function(s,l){var D=l.type;D===c.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},p._handleTransmuxComplete=function(s){var l,D="audio",T=this.hls,S=s.remuxResult,I=s.chunkMeta,C=this.getCurrentContext(I);if(!C){this.warn("The loading context changed while buffering fragment "+I.sn+" of level "+I.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(I.level);return}var W=C.frag,Y=C.part,H=S.audio,F=S.text,q=S.id3,le=S.initSegment;if(this.fragContextChanged(W))return;if(this.state=B.State.PARSING,this.audioSwitch&&H&&this.completeAudioSwitch(),le!=null&&le.tracks&&(this._bufferInitSegment(le.tracks,W,I),T.trigger(M.Events.FRAG_PARSING_INIT_SEGMENT,{frag:W,id:D,tracks:le.tracks})),H){var pe=H.startPTS,Ae=H.endPTS,Ge=H.startDTS,Fe=H.endDTS;Y&&(Y.elementaryStreams[c.ElementaryStreamTypes.AUDIO]={startPTS:pe,endPTS:Ae,startDTS:Ge,endDTS:Fe}),W.setElementaryStreamInfo(c.ElementaryStreamTypes.AUDIO,pe,Ae,Ge,Fe),this.bufferFragmentData(H,W,Y,I)}if(q!=null&&(l=q.samples)!==null&&l!==void 0&&l.length){var Ue=o({frag:W,id:D},q);T.trigger(M.Events.FRAG_PARSING_METADATA,Ue)}if(F){var _e=o({frag:W,id:D},F);T.trigger(M.Events.FRAG_PARSING_USERDATA,_e)}},p._bufferInitSegment=function(s,l,D){if(this.state!==B.State.PARSING)return;s.video&&delete s.video;var T=s.audio;if(!T)return;T.levelCodec=T.codec,T.id="audio",this.log("Init audio buffer, container:"+T.container+", codecs[parsed]=["+T.codec+"]"),this.hls.trigger(M.Events.BUFFER_CODECS,s);var S=T.initSegment;if(S!=null&&S.byteLength){var I={type:"audio",frag:l,part:null,chunkMeta:D,parent:l.type,data:S};this.hls.trigger(M.Events.BUFFER_APPENDING,I)}this.tick()},p.loadFragment=function(s,l,D){var T=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||T===U.FragmentState.NOT_LOADED||T===U.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):l.live&&!Object(z.isFiniteNumber)(this.initPTS[s.cc])?(this.log("Waiting for video PTS in continuity counter "+s.cc+" of live stream before loading audio fragment "+s.sn+" of level "+this.trackId),this.state=B.State.WAITING_INIT_PTS):(this.startFragRequested=!0,O.prototype.loadFragment.call(this,s,l,D)))},p.completeAudioSwitch=function(){var s=this.hls,l=this.media,D=this.trackId;l&&(this.log("Switching audio track : flushing all audio"),O.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,s.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:D})},A}(B.default);K.default=v},"./src/controller/audio-track-controller.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/events.ts"),B=P("./src/errors.ts"),M=P("./src/controller/base-playlist-controller.ts"),j=P("./src/types/loader.ts");function U(w,y){for(var f=0;f=n.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=n[this.trackId];this.log("Now switching to audio-track index "+a);var u=n[a],x=u.id,E=u.groupId,v=E===void 0?"":E,O=u.name,A=u.type,p=u.url;if(this.trackId=a,this.trackName=O,this.selectDefaultTrack=!1,this.hls.trigger(z.Events.AUDIO_TRACK_SWITCHING,{id:x,groupId:v,name:O,type:A,url:p}),u.details&&!u.details.live)return;var h=this.switchParams(u.url,o==null?void 0:o.details);this.loadPlaylist(h)},f.selectInitialTrack=function(){var a=this.tracksInGroup;console.assert(a.length,"Initial audio track should be selected when tracks are known");var n=this.trackName,o=this.findTrackId(n)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},f.findTrackId=function(a){for(var n=this.tracksInGroup,o=0;oy.partTarget&&(u+=1)}if(Object(z.isFiniteNumber)(o))return new B.HlsUrlParameters(o,Object(z.isFiniteNumber)(u)?u:void 0,B.HlsSkip.No)}}},c.loadPlaylist=function(w){},c.shouldLoadTrack=function(w){return this.canLoad&&w&&!!w.url&&(!w.details||w.details.live)},c.playlistLoaded=function(w,y,f){var m=this,a=y.details,n=y.stats,o=n.loading.end?Math.max(0,self.performance.now()-n.loading.end):0;if(a.advancedDateTime=Date.now()-o,a.live||f!=null&&f.live){if(a.reloaded(f),f&&this.log("live playlist "+w+" "+(a.advanced?"REFRESHED "+a.lastPartSn+"-"+a.lastPartIndex:"MISSED")),f&&a.fragments.length>0&&Object(M.mergeDetails)(f,a),!this.canLoad||!a.live)return;var u,x=void 0,E=void 0;if(a.canBlockReload&&a.endSN&&a.advanced){var v=this.hls.config.lowLatencyMode,O=a.lastPartSn,A=a.endSN,p=a.lastPartIndex,h=p!==-1,s=O===A,l=v?0:p;h?(x=s?A+1:O,E=s?l:p+1):x=A+1;var D=a.age,T=D+a.ageHeader,S=Math.min(T-a.partTarget,a.targetduration*1.5);if(S>0){if(f&&S>f.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+f.tuneInGoal+" to: "+S+" with playlist age: "+a.age),S=0;else{var I=Math.floor(S/a.targetduration);if(x+=I,E!==void 0){var C=Math.round(S%a.targetduration/a.partTarget);E+=C}this.log("CDN Tune-in age: "+a.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+S+" skip sn "+I+" to part "+E)}a.tuneInGoal=S}if(u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E),v||!s){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(a,y.deliveryDirectives,x,E);var W=Object(M.computeReloadInterval)(a,n);x!==void 0&&a.canBlockReload&&(W-=a.partTarget||1),this.log("reload live playlist "+w+" in "+Math.round(W)+" ms"),this.timer=self.setTimeout(function(){return m.loadPlaylist(u)},W)}else this.clearTimer()},c.getDeliveryDirectives=function(w,y,f,m){var a=Object(B.getSkipValue)(w,f);return y!=null&&y.skip&&w.deltaUpdateFailed&&(f=y.msn,m=y.part,a=B.HlsSkip.No),new B.HlsUrlParameters(f,m,a)},c.retryLoadingOrFail=function(w){var y=this,f=this.hls.config,m=this.retryCount-1&&(a=w.context)!==null&&a!==void 0&&a.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+w.details+'"'),this.loadPlaylist();else{var n=Math.min(Math.pow(2,this.retryCount)*f.levelLoadingRetryDelay,f.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return y.loadPlaylist()},n),this.warn("retry playlist loading #"+this.retryCount+" in "+n+' ms after "'+w.details+'"')}}else this.warn('cannot recover from error "'+w.details+'"'),this.clearTimer(),w.fatal=!0;return m},R}()},"./src/controller/base-stream-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"State",function(){return A}),P.d(K,"default",function(){return p});var z=P("./src/polyfills/number.ts"),B=P("./src/task-loop.ts"),M=P("./src/controller/fragment-tracker.ts"),j=P("./src/utils/buffer-helper.ts"),U=P("./src/utils/logger.ts"),_=P("./src/events.ts"),R=P("./src/errors.ts"),c=P("./src/types/transmuxer.ts"),g=P("./src/utils/mp4-tools.ts"),w=P("./src/utils/discontinuities.ts"),y=P("./src/controller/fragment-finders.ts"),f=P("./src/controller/level-helper.ts"),m=P("./src/loader/fragment-loader.ts"),a=P("./src/crypt/decrypter.ts"),n=P("./src/utils/time-ranges.ts"),o=P("./src/types/loader.ts");function u(h,s){for(var l=0;lle;(Y0&&Y&&Y.key&&Y.iv&&Y.method==="AES-128"){var H=self.performance.now();return S.decrypter.webCryptoDecrypt(new Uint8Array(W),Y.key.buffer,Y.iv.buffer).then(function(F){var q=self.performance.now();return C.trigger(_.Events.FRAG_DECRYPTED,{frag:T,payload:F,stats:{tstart:H,tdecrypt:q}}),I.payload=F,I})}return I}).then(function(I){var C=S.fragCurrent,W=S.hls,Y=S.levels;if(!Y)throw new Error("init load aborted, missing levels");var H=Y[T.level].details;console.assert(H,"Level details are defined when init segment is loaded");var F=T.stats;S.state=A.IDLE,S.fragLoadError=0,T.data=new Uint8Array(I.payload),F.parsing.start=F.buffering.start=self.performance.now(),F.parsing.end=F.buffering.end=self.performance.now(),I.frag===C&&W.trigger(_.Events.FRAG_BUFFERED,{stats:F,frag:C,part:null,id:T.type}),S.tick()}).catch(function(I){S.warn(I),S.resetFragmentLoading(T)})},l.fragContextChanged=function(T){var S=this.fragCurrent;return!T||!S||T.level!==S.level||T.sn!==S.sn||T.urlId!==S.urlId},l.fragBufferedComplete=function(T,S){var I=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(S?" part: "+S.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+n.default.toString(j.BufferHelper.getBuffered(I))),this.state=A.IDLE,this.tick()},l._handleFragmentLoadComplete=function(T){var S=this.transmuxer;if(!S)return;var I=T.frag,C=T.part,W=T.partsLoaded,Y=!W||W.length===0||W.some(function(F){return!F}),H=new c.ChunkMetadata(I.level,I.sn,I.stats.chunkCount+1,0,C?C.index:-1,!Y);S.flush(H)},l._handleFragmentLoadProgress=function(T){},l._doFragLoad=function(T,S,I,C){var W=this;if(I===void 0&&(I=null),!this.levels)throw new Error("frag load aborted, missing levels");if(I=Math.max(T.start,I||0),this.config.lowLatencyMode&&S){var Y=S.partList;if(Y&&C){I>T.end&&S.fragmentHint&&(T=S.fragmentHint);var H=this.getNextPart(Y,T,I);if(H>-1){var F=Y[H];return this.log("Loading part sn: "+T.sn+" p: "+F.index+" cc: "+T.cc+" of playlist ["+S.startSN+"-"+S.endSN+"] parts [0-"+H+"-"+(Y.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),this.nextLoadPosition=F.start+F.duration,this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,part:Y[H],targetBufferTime:I}),this.doFragPartsLoad(T,Y,H,C).catch(function(q){return W.handleFragLoadError(q)})}else if(!T.url||this.loadedEndOfParts(Y,I))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(S?"of ["+S.startSN+"-"+S.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),Object(z.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=A.FRAG_LOADING,this.hls.trigger(_.Events.FRAG_LOADING,{frag:T,targetBufferTime:I}),this.fragmentLoader.load(T,C).catch(function(q){return W.handleFragLoadError(q)})},l.doFragPartsLoad=function(T,S,I,C){var W=this;return new Promise(function(Y,H){var F=[],q=function le(pe){var Ae=S[pe];W.fragmentLoader.loadPart(T,Ae,C).then(function(Ge){F[Ae.index]=Ge;var Fe=Ge.part;W.hls.trigger(_.Events.FRAG_LOADED,Ge);var Ue=S[pe+1];if(Ue&&Ue.fragment===T)le(pe+1);else return Y({frag:T,part:Fe,partsLoaded:F})}).catch(H)};q(I)})},l.handleFragLoadError=function(T){var S=T.data;return S&&S.details===R.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(S.frag,S.part):this.hls.trigger(_.Events.ERROR,S),null},l._handleTransmuxerFlush=function(T){var S=this.getCurrentContext(T);if(!S||this.state!==A.PARSING){this.fragCurrent||(this.state=A.IDLE);return}var I=S.frag,C=S.part,W=S.level,Y=self.performance.now();I.stats.parsing.end=Y,C&&(C.stats.parsing.end=Y),this.updateLevelTiming(I,C,W,T.partial)},l.getCurrentContext=function(T){var S=this.levels,I=T.level,C=T.sn,W=T.part;if(!S||!S[I])return this.warn("Levels object was unset while buffering fragment "+C+" of level "+I+". The current chunk will not be buffered."),null;var Y=S[I],H=W>-1?Object(f.getPartWith)(Y,C,W):null,F=H?H.fragment:Object(f.getFragmentWithSN)(Y,C,this.fragCurrent);return F?{frag:F,part:H,level:Y}:null},l.bufferFragmentData=function(T,S,I,C){if(!T||this.state!==A.PARSING)return;var W=T.data1,Y=T.data2,H=W;if(W&&Y&&(H=Object(g.appendUint8Array)(W,Y)),!H||!H.length)return;var F={type:T.type,frag:S,part:I,chunkMeta:C,parent:S.type,data:H};this.hls.trigger(_.Events.BUFFER_APPENDING,F),T.dropped&&T.independent&&!I&&this.flushBufferGap(S)},l.flushBufferGap=function(T){var S=this.media;if(!S)return;if(!j.BufferHelper.isBuffered(S,S.currentTime)){this.flushMainBuffer(0,T.start);return}var I=S.currentTime,C=j.BufferHelper.bufferInfo(S,I,0),W=T.duration,Y=Math.min(this.config.maxFragLookUpTolerance*2,W*.25),H=Math.max(Math.min(T.start-Y,C.end-Y),I+Y);T.start-H>Y&&this.flushMainBuffer(H,T.start)},l.getFwdBufferInfo=function(T,S){var I=this.config,C=this.getLoadPosition();if(!Object(z.isFiniteNumber)(C))return null;var W=j.BufferHelper.bufferInfo(T,C,I.maxBufferHole);if(W.len===0&&W.nextStart!==void 0){var Y=this.fragmentTracker.getBufferedFrag(C,S);if(Y&&W.nextStart=I?(S.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+S.maxMaxBufferLength+"s"),!0):!1},l.getNextFragment=function(T,S){var I,C,W=S.fragments,Y=W.length;if(!Y)return null;var H=this.config,F=W[0].start,q;if(S.live){var le=H.initialLiveManifestSize;if(Y-1&&II.start&&I.loaded},l.getInitialLiveFragment=function(T,S){var I=this.fragPrevious,C=null;if(I){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+I.programDateTime),C=Object(y.findFragmentByPDT)(S,I.endProgramDateTime,this.config.maxFragLookUpTolerance)),!C){var W=I.sn+1;if(W>=T.startSN&&W<=T.endSN){var Y=S[W-T.startSN];I.cc===Y.cc&&(C=Y,this.log("Live playlist, switching playlist, load frag with next SN: "+C.sn))}C||(C=Object(y.findFragWithCC)(S,I.cc),C&&this.log("Live playlist, switching playlist, load frag with same CC: "+C.sn))}}else{var H=this.hls.liveSyncPosition;H!==null&&(C=this.getFragmentAtPosition(H,this.bitrateTest?T.fragmentEnd:T.edge,T))}return C},l.getFragmentAtPosition=function(T,S,I){var C=this.config,W=this.fragPrevious,Y=I.fragments,H=I.endSN,F=I.fragmentHint,q=C.maxFragLookUpTolerance,le=!!(C.lowLatencyMode&&I.partList&&F);le&&F&&!this.bitrateTest&&(Y=Y.concat(F),H=F.sn);var pe;if(TS-q?0:q;pe=Object(y.findFragmentByPTS)(W,Y,T,Ae)}else pe=Y[Y.length-1];if(pe){var Ge=pe.sn-I.startSN,Fe=W&&pe.level===W.level,Ue=Y[Ge+1],_e=this.fragmentTracker.getState(pe);if(_e===M.FragmentState.BACKTRACKED){pe=null;for(var je=Ge;Y[je]&&this.fragmentTracker.getState(Y[je])===M.FragmentState.BACKTRACKED;)W?pe=Y[je--]:pe=Y[--je];pe||(pe=Ue)}else W&&pe.sn===W.sn&&!le&&(Fe&&(pe.sn=Y-S.maxFragLookUpTolerance&&W<=H;if(C!==null&&I.duration>C&&(W"+T.startSN+" prev-sn: "+(W?W.sn:"na")+" fragments: "+H),pe}return F},l.waitForCdnTuneIn=function(T){var S=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*S)},l.setStartPosition=function(T,S){var I=this.startPosition;if(I"+T))}}]),s}(B.default)},"./src/controller/buffer-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y});var z=P("./src/polyfills/number.ts"),B=P("./src/events.ts"),M=P("./src/utils/logger.ts"),j=P("./src/errors.ts"),U=P("./src/utils/buffer-helper.ts"),_=P("./src/utils/mediasource-helper.ts"),R=P("./src/loader/fragment.ts"),c=P("./src/controller/buffer-operation-queue.ts"),g=Object(_.getMediaSource)(),w=/([ha]vc.)(?:\.[^.,]+)+/,y=function(){function f(a){var n=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=n.hls,u=n.media,x=n.mediaSource;M.logger.log("[buffer-controller]: Media source opened"),u&&(n.updateMediaElementDuration(),o.trigger(B.Events.MEDIA_ATTACHED,{media:u})),x&&x.removeEventListener("sourceopen",n._onMediaSourceOpen),n.checkPendingTracks()},this._onMediaSourceClose=function(){M.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){M.logger.log("[buffer-controller]: Media source ended")},this.hls=a,this._initSourceBuffer(),this.registerListeners()}var m=f.prototype;return m.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},m.destroy=function(){this.unregisterListeners(),this.details=null},m.registerListeners=function(){var n=this.hls;n.on(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(B.Events.BUFFER_RESET,this.onBufferReset,this),n.on(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.on(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(B.Events.BUFFER_EOS,this.onBufferEos,this),n.on(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.on(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.on(B.Events.FRAG_PARSED,this.onFragParsed,this),n.on(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(B.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.off(B.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(B.Events.BUFFER_RESET,this.onBufferReset,this),n.off(B.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.off(B.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(B.Events.BUFFER_EOS,this.onBufferEos,this),n.off(B.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.off(B.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.off(B.Events.FRAG_PARSED,this.onFragParsed,this),n.off(B.Events.FRAG_CHANGED,this.onFragChanged,this)},m._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new c.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},m.onManifestParsed=function(n,o){var u=2;(o.audio&&!o.video||!o.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,M.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},m.onMediaAttaching=function(n,o){var u=this.media=o.media;if(u&&g){var x=this.mediaSource=new g;x.addEventListener("sourceopen",this._onMediaSourceOpen),x.addEventListener("sourceended",this._onMediaSourceEnded),x.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(x),this._objectUrl=u.src}},m.onMediaDetaching=function(){var n=this.media,o=this.mediaSource,u=this._objectUrl;if(o){if(M.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(x){M.logger.warn("[buffer-controller]: onMediaDetaching: "+x.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),n&&(u&&self.URL.revokeObjectURL(u),n.src===u?(n.removeAttribute("src"),n.load()):M.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(B.Events.MEDIA_DETACHED,void 0)},m.onBufferReset=function(){var n=this;this.getSourceBufferTypes().forEach(function(o){var u=n.sourceBuffer[o];try{u&&(n.removeBufferListeners(o),n.mediaSource&&n.mediaSource.removeSourceBuffer(u),n.sourceBuffer[o]=void 0)}catch(x){M.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",x)}}),this._initSourceBuffer()},m.onBufferCodecs=function(n,o){var u=this,x=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(E){if(x){var v=u.tracks[E];if(v&&typeof v.buffer.changeType=="function"){var O=o[E],A=O.codec,p=O.levelCodec,h=O.container,s=(v.levelCodec||v.codec).replace(w,"$1"),l=(p||A).replace(w,"$1");if(s!==l){var D=h+";codecs="+(p||A);u.appendChangeType(E,D)}}}else u.pendingTracks[E]=o[E]}),x)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},m.appendChangeType=function(n,o){var u=this,x=this.operationQueue,E={execute:function(){var O=u.sourceBuffer[n];O&&(M.logger.log("[buffer-controller]: changing "+n+" sourceBuffer type to "+o),O.changeType(o)),x.shiftAndExecuteNext(n)},onStart:function(){},onComplete:function(){},onError:function(O){M.logger.warn("[buffer-controller]: Failed to change "+n+" SourceBuffer type",O)}};x.append(E,n)},m.onBufferAppending=function(n,o){var u=this,x=this.hls,E=this.operationQueue,v=this.tracks,O=o.data,A=o.type,p=o.frag,h=o.part,s=o.chunkMeta,l=s.buffering[A],D=self.performance.now();l.start=D;var T=p.stats.buffering,S=h?h.stats.buffering:null;T.start===0&&(T.start=D),S&&S.start===0&&(S.start=D);var I=v.audio,C=A==="audio"&&s.id===1&&(I==null?void 0:I.container)==="audio/mpeg",W={execute:function(){if(l.executeStart=self.performance.now(),C){var H=u.sourceBuffer[A];if(H){var F=p.start-H.timestampOffset;Math.abs(F)>=.1&&(M.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+p.start+" (delta: "+F+") sn: "+p.sn+")"),H.timestampOffset=p.start)}}u.appendExecutor(O,A)},onStart:function(){},onComplete:function(){var H=self.performance.now();l.executeEnd=l.end=H,T.first===0&&(T.first=H),S&&S.first===0&&(S.first=H);var F=u.sourceBuffer,q={};for(var le in F)q[le]=U.BufferHelper.getBuffered(F[le]);u.appendError=0,u.hls.trigger(B.Events.BUFFER_APPENDED,{type:A,frag:p,part:h,chunkMeta:s,parent:p.type,timeRanges:q})},onError:function(H){M.logger.error("[buffer-controller]: Error encountered while trying to append to the "+A+" SourceBuffer",H);var F={type:j.ErrorTypes.MEDIA_ERROR,parent:p.type,details:j.ErrorDetails.BUFFER_APPEND_ERROR,err:H,fatal:!1};H.code===DOMException.QUOTA_EXCEEDED_ERR?F.details=j.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,F.details=j.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>x.config.appendErrorMaxRetry&&(M.logger.error("[buffer-controller]: Failed "+x.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),F.fatal=!0)),x.trigger(B.Events.ERROR,F)}};E.append(W,A)},m.onBufferFlushing=function(n,o){var u=this,x=this.operationQueue,E=function(O){return{execute:u.removeExecutor.bind(u,O,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(B.Events.BUFFER_FLUSHED,{type:O})},onError:function(p){M.logger.warn("[buffer-controller]: Failed to remove from "+O+" SourceBuffer",p)}}};o.type?x.append(E(o.type),o.type):this.getSourceBufferTypes().forEach(function(v){x.append(E(v),v)})},m.onFragParsed=function(n,o){var u=this,x=o.frag,E=o.part,v=[],O=E?E.elementaryStreams:x.elementaryStreams;O[R.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(O[R.ElementaryStreamTypes.AUDIO]&&v.push("audio"),O[R.ElementaryStreamTypes.VIDEO]&&v.push("video"));var A=function(){var h=self.performance.now();x.stats.buffering.end=h,E&&(E.stats.buffering.end=h);var s=E?E.stats:x.stats;u.hls.trigger(B.Events.FRAG_BUFFERED,{frag:x,part:E,stats:s,id:x.type})};v.length===0&&M.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+x.type+" level: "+x.level+" sn: "+x.sn),this.blockBuffers(A,v)},m.onFragChanged=function(n,o){this.flushBackBuffer()},m.onBufferEos=function(n,o){var u=this,x=this.getSourceBufferTypes().reduce(function(E,v){var O=u.sourceBuffer[v];return(!o.type||o.type===v)&&(O&&!O.ended&&(O.ended=!0,M.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),E&&!!(!O||O.ended)},!0);x&&this.blockBuffers(function(){var E=u.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},m.onLevelUpdated=function(n,o){var u=o.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},m.flushBackBuffer=function(){var n=this.hls,o=this.details,u=this.media,x=this.sourceBuffer;if(!u||o===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var v=o.live&&n.config.liveBackBufferLength!==null?n.config.liveBackBufferLength:n.config.backBufferLength;if(!Object(z.isFiniteNumber)(v)||v<0)return;var O=u.currentTime,A=o.levelTargetDuration,p=Math.max(v,A),h=Math.floor(O/A)*A-p;E.forEach(function(s){var l=x[s];if(l){var D=U.BufferHelper.getBuffered(l);D.length>0&&h>D.start(0)&&(n.trigger(B.Events.BACK_BUFFER_REACHED,{bufferEnd:h}),o.live&&n.trigger(B.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:h}),n.trigger(B.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:h,type:s}))}})},m.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var n=this.details,o=this.hls,u=this.media,x=this.mediaSource,E=n.fragments[0].start+n.totalduration,v=u.duration,O=Object(z.isFiniteNumber)(x.duration)?x.duration:0;n.live&&o.config.liveDurationInfinity?(M.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),x.duration=Infinity,this.updateSeekableRange(n)):(E>O&&E>v||!Object(z.isFiniteNumber)(v))&&(M.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),x.duration=E)},m.updateSeekableRange=function(n){var o=this.mediaSource,u=n.fragments,x=u.length;if(x&&n.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var E=Math.max(0,u[0].start),v=Math.max(E,E+n.totalduration);o.setLiveSeekableRange(E,v)}},m.checkPendingTracks=function(){var n=this.bufferCodecEventsExpected,o=this.operationQueue,u=this.pendingTracks,x=Object.keys(u).length;if(x&&!n||x===2){this.createSourceBuffers(u),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(v){o.executeNext(v)})}},m.createSourceBuffers=function(n){var o=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var x=0;for(var E in n)if(!o[E]){var v=n[E];if(!v)throw Error("source buffer exists for track "+E+", however track does not");var O=v.levelCodec||v.codec,A=v.container+";codecs="+O;M.logger.log("[buffer-controller]: creating sourceBuffer("+A+")");try{var p=o[E]=u.addSourceBuffer(A),h=E;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.tracks[E]={buffer:p,codec:O,container:v.container,levelCodec:v.levelCodec,id:v.id},x++}catch(s){M.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:A})}}x&&this.hls.trigger(B.Events.BUFFER_CREATED,{tracks:this.tracks})},m._onSBUpdateStart=function(n){var o=this.operationQueue,u=o.current(n);u.onStart()},m._onSBUpdateEnd=function(n){var o=this.operationQueue,u=o.current(n);u.onComplete(),o.shiftAndExecuteNext(n)},m._onSBUpdateError=function(n,o){M.logger.error("[buffer-controller]: "+n+" SourceBuffer error",o),this.hls.trigger(B.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(n);u&&u.onError(o)},m.removeExecutor=function(n,o,u){var x=this.media,E=this.mediaSource,v=this.operationQueue,O=this.sourceBuffer,A=O[n];if(!x||!E||!A){M.logger.warn("[buffer-controller]: Attempting to remove from the "+n+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(n);return}var p=Object(z.isFiniteNumber)(x.duration)?x.duration:Infinity,h=Object(z.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Math.max(0,o),l=Math.min(u,p,h);l>s?(M.logger.log("[buffer-controller]: Removing ["+s+","+l+"] from the "+n+" SourceBuffer"),console.assert(!A.updating,n+" sourceBuffer must not be updating"),A.remove(s,l)):v.shiftAndExecuteNext(n)},m.appendExecutor=function(n,o){var u=this.operationQueue,x=this.sourceBuffer,E=x[o];if(!E){M.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(o);return}E.ended=!1,console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.appendBuffer(n)},m.blockBuffers=function(n,o){var u=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){M.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(n);return}var x=this.operationQueue,E=o.map(function(v){return x.appendBlocker(v)});Promise.all(E).then(function(){n(),o.forEach(function(v){var O=u.sourceBuffer[v];(!O||!O.updating)&&x.shiftAndExecuteNext(v)})})},m.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},m.addBufferListener=function(n,o,u){var x=this.sourceBuffer[n];if(!x)return;var E=u.bind(this,n);this.listeners[n].push({event:o,listener:E}),x.addEventListener(o,E)},m.removeBufferListeners=function(n){var o=this.sourceBuffer[n];if(!o)return;this.listeners[n].forEach(function(u){o.removeEventListener(u.event,u.listener)})},f}()},"./src/controller/buffer-operation-queue.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return B});var z=P("./src/utils/logger.ts"),B=function(){function M(U){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=U}var j=M.prototype;return j.append=function(_,R){var c=this.queues[R];c.push(_),c.length===1&&this.buffers[R]&&this.executeNext(R)},j.insertAbort=function(_,R){var c=this.queues[R];c.unshift(_),this.executeNext(R)},j.appendBlocker=function(_){var R,c=new Promise(function(w){R=w}),g={execute:R,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(g,_),c},j.executeNext=function(_){var R=this.buffers,c=this.queues,g=R[_],w=c[_];if(w.length){var y=w[0];try{y.execute()}catch(f){z.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),y.onError(f),(!g||!g.updating)&&(w.shift(),this.executeNext(_))}}},j.shiftAndExecuteNext=function(_){this.queues[_].shift(),this.executeNext(_)},j.current=function(_){return this.queues[_][0]},M}()},"./src/controller/cap-level-controller.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/events.ts");function B(U,_){for(var R=0;R<_.length;R++){var c=_[R];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(U,c.key,c)}}function M(U,_,R){return _&&B(U.prototype,_),R&&B(U,R),U}var j=function(){function U(R){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=R,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var _=U.prototype;return _.setStreamController=function(c){this.streamController=c},_.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},_.registerListeners=function(){var c=this.hls;c.on(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.on(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.on(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.on(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.unregisterListener=function(){var c=this.hls;c.off(z.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),c.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.off(z.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.off(z.Events.BUFFER_CODECS,this.onBufferCodecs,this),c.off(z.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},_.onFpsDropLevelCapping=function(c,g){U.isLevelAllowed(g.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(g.droppedLevel)},_.onMediaAttaching=function(c,g){this.media=g.media instanceof HTMLVideoElement?g.media:null},_.onManifestParsed=function(c,g){var w=this.hls;this.restrictedLevels=[],this.firstLevel=g.firstLevel,w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onBufferCodecs=function(c,g){var w=this.hls;w.config.capLevelToPlayerSize&&g.video&&this.startCapping()},_.onMediaDetaching=function(){this.stopCapping()},_.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var c=this.hls.levels;if(c.length){var g=this.hls;g.autoLevelCapping=this.getMaxLevel(c.length-1),g.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=g.autoLevelCapping}}},_.getMaxLevel=function(c){var g=this,w=this.hls.levels;if(!w.length)return-1;var y=w.filter(function(f,m){return U.isLevelAllowed(m,g.restrictedLevels)&&m<=c});return this.clientRect=null,U.getMaxLevelByMediaSize(y,this.mediaWidth,this.mediaHeight)},_.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},_.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},_.getDimensions=function(){if(this.clientRect)return this.clientRect;var c=this.media,g={width:0,height:0};if(c){var w=c.getBoundingClientRect();g.width=w.width,g.height=w.height,!g.width&&!g.height&&(g.width=w.right-w.left||c.width||0,g.height=w.bottom-w.top||c.height||0)}return this.clientRect=g,g},U.isLevelAllowed=function(c,g){return g===void 0&&(g=[]),g.indexOf(c)===-1},U.getMaxLevelByMediaSize=function(c,g,w){if(!c||!c.length)return-1;for(var y=function(o,u){return u?o.width!==u.width||o.height!==u.height:!0},f=c.length-1,m=0;m=g||a.height>=w)&&y(a,c[m+1])){f=m;break}}return f},M(U,[{key:"mediaWidth",get:function(){return this.getDimensions().width*U.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*U.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var c=1;try{c=self.devicePixelRatio}catch(g){}return c}}]),U}();K.default=j},"./src/controller/cmcd-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y});var z=P("./src/events.ts"),B=P("./src/types/cmcd.ts"),M=P("./src/utils/buffer-helper.ts"),j=P("./src/utils/logger.ts");function U(f,m){for(var a=0;a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(f,m){if(!f)return;if(typeof f=="string")return g(f,m);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return g(f,m)}function g(f,m){(m==null||m>f.length)&&(m=f.length);for(var a=0,n=new Array(m);ao&&(o=v.bitrate)}return o>0?o:NaN},m.getBufferLength=function(n){var o=this.hls.media,u=n===B.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!o)return NaN;var x=M.BufferHelper.bufferInfo(u,o.currentTime,this.config.maxBufferHole);return x.len*1e3},m.createPlaylistLoader=function(){var n=this.config.pLoader,o=this.applyPlaylistData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},m.createFragmentLoader=function(){var n=this.config.fLoader,o=this.applyFragmentData,u=n||this.config.loader;return function(){function x(v){this.loader=void 0,this.loader=new u(v)}var E=x.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(O,A,p){o(O),this.loader.load(O,A,p)},_(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},f.uuid=function(){var n=URL.createObjectURL(new Blob),o=n.toString();return URL.revokeObjectURL(n),o.substr(o.lastIndexOf("/")+1)},f.serialize=function(n){for(var o=[],u=function(C){return!Number.isNaN(C)&&C!=null&&C!==""&&C!==!1},x=function(C){return Math.round(C)},E=function(C){return x(C/100)*100},v=function(C){return encodeURIComponent(C)},O={br:x,d:x,bl:E,dl:E,mtp:E,nor:v,rtp:E,tb:x},A=Object.keys(n||{}).sort(),p=R(A),h;!(h=p()).done;){var s=h.value,l=n[s];if(!u(l))continue;if(s==="v"&&l===1)continue;if(s=="pr"&&l===1)continue;var D=O[s];D&&(l=D(l));var T=typeof l,S=void 0;s==="ot"||s==="sf"||s==="st"?S=s+"="+l:T==="boolean"?S=s:T==="number"?S=s+"="+l:S=s+"="+JSON.stringify(l),o.push(S)}return o.join(",")},f.toHeaders=function(n){for(var o=Object.keys(n),u={},x=["Object","Request","Session","Status"],E=[{},{},{},{}],v={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},O=0,A=o;OR){this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=R-this._requestLicenseFailureCount+1;M.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(o,u)}break}},f._generateLicenseRequestChallenge=function(a,n){switch(a.mediaKeySystemDomain){case j.KeySystems.WIDEVINE:return n}throw new Error("unsupported key-system: "+a.mediaKeySystemDomain)},f._requestLicense=function(a,n){M.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){M.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(o.mediaKeySystemDomain),x=this._createLicenseXhr(u,a,n);M.logger.log("Sending license request to URL: "+u);var E=this._generateLicenseRequestChallenge(o,a);x.send(E)}catch(v){M.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.KEY_SYSTEM_ERROR,details:B.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},f.onMediaAttached=function(a,n){if(!this._emeEnabled)return;var o=n.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},f.onMediaDetached=function(){var a=this._media,n=this._mediaKeysList;if(!a)return;a.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(n.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return a.setMediaKeys(null)}).catch(function(){})},f.onManifestParsed=function(a,n){if(!this._emeEnabled)return;var o=n.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),u=n.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(j.KeySystems.WIDEVINE,o,u)},_(y,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),y}();K.default=w},"./src/controller/fps-controller.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/events.ts"),B=P("./src/utils/logger.ts"),M=function(){function j(_){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=_,this.registerListeners()}var U=j.prototype;return U.setStreamController=function(R){this.streamController=R},U.registerListeners=function(){this.hls.on(z.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},U.unregisterListeners=function(){this.hls.off(z.Events.MEDIA_ATTACHING,this.onMediaAttaching)},U.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},U.onMediaAttaching=function(R,c){var g=this.hls.config;if(g.capLevelOnFPSDrop){var w=c.media instanceof self.HTMLVideoElement?c.media:null;this.media=w,w&&typeof w.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),g.fpsDroppedMonitoringPeriod)}},U.checkFPS=function(R,c,g){var w=performance.now();if(c){if(this.lastTime){var y=w-this.lastTime,f=g-this.lastDroppedFrames,m=c-this.lastDecodedFrames,a=1e3*f/y,n=this.hls;if(n.trigger(z.Events.FPS_DROP,{currentDropped:f,currentDecoded:m,totalDroppedFrames:g}),a>0&&f>n.config.fpsDroppedMonitoringThreshold*m){var o=n.currentLevel;B.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(n.autoLevelCapping===-1||n.autoLevelCapping>=o)&&(o=o-1,n.trigger(z.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:n.currentLevel}),n.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=w,this.lastDroppedFrames=g,this.lastDecodedFrames=c}},U.checkFPSInterval=function(){var R=this.media;if(R)if(this.isVideoPlaybackQualityAvailable){var c=R.getVideoPlaybackQuality();this.checkFPS(R,c.totalVideoFrames,c.droppedVideoFrames)}else this.checkFPS(R,R.webkitDecodedFrameCount,R.webkitDroppedFrameCount)},j}();K.default=M},"./src/controller/fragment-finders.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"findFragmentByPDT",function(){return M}),P.d(K,"findFragmentByPTS",function(){return j}),P.d(K,"fragmentWithinToleranceTest",function(){return U}),P.d(K,"pdtWithinToleranceTest",function(){return _}),P.d(K,"findFragWithCC",function(){return R});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/binary-search.ts");function M(c,g,w){if(g===null||!Array.isArray(c)||!c.length||!Object(z.isFiniteNumber)(g))return null;var y=c[0].programDateTime;if(g<(y||0))return null;var f=c[c.length-1].endProgramDateTime;if(g>=(f||0))return null;w=w||0;for(var m=0;mc&&w.start?-1:0}function _(c,g,w){var y=Math.min(g,w.duration+(w.deltaPTS?w.deltaPTS:0))*1e3,f=w.endProgramDateTime||0;return f-y>c}function R(c,g){return B.default.search(c,function(w){return w.ccg?-1:0})}},"./src/controller/fragment-tracker.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"FragmentState",function(){return M}),P.d(K,"FragmentTracker",function(){return j});var z=P("./src/events.ts"),B=P("./src/types/loader.ts"),M;(function(R){R.NOT_LOADED="NOT_LOADED",R.BACKTRACKED="BACKTRACKED",R.APPENDING="APPENDING",R.PARTIAL="PARTIAL",R.OK="OK"})(M||(M={}));var j=function(){function R(g){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=g,this._registerListeners()}var c=R.prototype;return c._registerListeners=function(){var w=this.hls;w.on(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.on(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.on(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c._unregisterListeners=function(){var w=this.hls;w.off(z.Events.BUFFER_APPENDED,this.onBufferAppended,this),w.off(z.Events.FRAG_BUFFERED,this.onFragBuffered,this),w.off(z.Events.FRAG_LOADED,this.onFragLoaded,this)},c.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},c.getAppendedFrag=function(w,y){if(y===B.PlaylistLevelType.MAIN){var f=this.activeFragment,m=this.activeParts;if(!f)return null;if(m)for(var a=m.length;a--;){var n=m[a],o=n?n.end:f.appendedPTS;if(n.start<=w&&o!==void 0&&w<=o)return a>9&&(this.activeParts=m.slice(a-9)),n}else if(f.start<=w&&f.appendedPTS!==void 0&&w<=f.appendedPTS)return f}return this.getBufferedFrag(w,y)},c.getBufferedFrag=function(w,y){for(var f=this.fragments,m=Object.keys(f),a=m.length;a--;){var n=f[m[a]];if((n==null?void 0:n.body.type)===y&&n.buffered){var o=n.body;if(o.start<=w&&w<=o.end)return o}}return null},c.detectEvictedFragments=function(w,y,f){var m=this;Object.keys(this.fragments).forEach(function(a){var n=m.fragments[a];if(!n)return;if(!n.buffered){n.body.type===f&&m.removeFragment(n.body);return}var o=n.range[w];if(!o)return;o.time.some(function(u){var x=!m.isTimeBuffered(u.startPTS,u.endPTS,y);return x&&m.removeFragment(n.body),x})})},c.detectPartialFragments=function(w){var y=this,f=this.timeRanges,m=w.frag,a=w.part;if(!f||m.sn==="initSegment")return;var n=_(m),o=this.fragments[n];if(!o)return;Object.keys(f).forEach(function(u){var x=m.elementaryStreams[u];if(!x)return;var E=f[u],v=a!==null||x.partial===!0;o.range[u]=y.getBufferedTimes(m,a,v,E)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},c.fragBuffered=function(w){var y=_(w),f=this.fragments[y];f&&(f.backtrack=f.loaded=null,f.buffered=!0)},c.getBufferedTimes=function(w,y,f,m){for(var a={time:[],partial:f},n=y?y.start:w.start,o=y?y.end:w.end,u=w.minEndPTS||o,x=w.maxStartPTS||n,E=0;E=v&&u<=O){a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});break}else if(nv)a.partial=!0,a.time.push({startPTS:Math.max(n,m.start(E)),endPTS:Math.min(o,m.end(E))});else if(o<=v)break}return a},c.getPartialFragment=function(w){var y=null,f,m,a,n=0,o=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(x){var E=u[x];if(!E)return;U(E)&&(m=E.body.start-o,a=E.body.end+o,w>=m&&w<=a&&(f=Math.min(w-m,a-w),n<=f&&(y=E.body,n=f)))}),y},c.getState=function(w){var y=_(w),f=this.fragments[y];return f?f.buffered?U(f)?M.PARTIAL:M.OK:f.backtrack?M.BACKTRACKED:M.APPENDING:M.NOT_LOADED},c.backtrack=function(w,y){var f=_(w),m=this.fragments[f];if(!m||m.backtrack)return null;var a=m.backtrack=y||m.loaded;return m.loaded=null,a},c.getBacktrackData=function(w){var y=_(w),f=this.fragments[y];if(f){var m,a=f.backtrack;if(a!=null&&(m=a.payload)!==null&&m!==void 0&&m.byteLength)return a;this.removeFragment(w)}return null},c.isTimeBuffered=function(w,y,f){for(var m,a,n=0;n=m&&y<=a)return!0;if(y<=m)return!1}return!1},c.onFragLoaded=function(w,y){var f=y.frag,m=y.part;if(f.sn==="initSegment"||f.bitrateTest||m)return;var a=_(f);this.fragments[a]={body:f,loaded:y,backtrack:null,buffered:!1,range:Object.create(null)}},c.onBufferAppended=function(w,y){var f=this,m=y.frag,a=y.part,n=y.timeRanges;if(m.type===B.PlaylistLevelType.MAIN)if(this.activeFragment=m,a){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(a)}else this.activeParts=null;this.timeRanges=n,Object.keys(n).forEach(function(u){var x=n[u];if(f.detectEvictedFragments(u,x),!a)for(var E=0;Ew&&m.removeFragment(o)}})},c.removeFragment=function(w){var y=_(w);w.stats.loaded=0,w.clearElementaryStreamInfo(),delete this.fragments[y]},c.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},R}();function U(R){var c,g;return R.buffered&&(((c=R.range.video)===null||c===void 0?void 0:c.partial)||((g=R.range.audio)===null||g===void 0?void 0:g.partial))}function _(R){return R.type+"_"+R.level+"_"+R.urlId+"_"+R.sn}},"./src/controller/gap-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"STALL_MINIMUM_DURATION_MS",function(){return U}),P.d(K,"MAX_START_GAP_JUMP",function(){return _}),P.d(K,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return R}),P.d(K,"SKIP_BUFFER_RANGE_START",function(){return c}),P.d(K,"default",function(){return g});var z=P("./src/utils/buffer-helper.ts"),B=P("./src/errors.ts"),M=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=250,_=2,R=.1,c=.05,g=function(){function w(f,m,a,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=f,this.media=m,this.fragmentTracker=a,this.hls=n}var y=w.prototype;return y.destroy=function(){this.hls=this.fragmentTracker=this.media=null},y.poll=function(m){var a=this.config,n=this.media,o=this.stalled,u=n.currentTime,x=n.seeking,E=this.seeking&&!x,v=!this.seeking&&x;if(this.seeking=x,u!==m){if(this.moved=!0,o!==null){if(this.stallReported){var O=self.performance.now()-o;j.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(O)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||E)&&(this.stalled=null),n.paused||n.ended||n.playbackRate===0||!z.BufferHelper.getBuffered(n).length)return;var A=z.BufferHelper.bufferInfo(n,u,0),p=A.len>0,h=A.nextStart||0;if(!p&&!h)return;if(x){var s=A.len>_,l=!h||h-u>_&&!this.fragmentTracker.getPartialFragment(u);if(s||l)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,T=Math.max(h,A.start||0)-u,S=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,I=S==null||((D=S.details)===null||D===void 0)?void 0:D.live,C=I?S.details.targetduration*2:_;if(T>0&&T<=C){this._trySkipBufferHole(null);return}}var W=self.performance.now();if(o===null){this.stalled=W;return}var Y=W-o;!x&&Y>=U&&this._reportStall(A.len);var H=z.BufferHelper.bufferInfo(n,u,a.maxBufferHole);this._tryFixBufferStall(H,Y)},y._tryFixBufferStall=function(m,a){var n=this.config,o=this.fragmentTracker,u=this.media,x=u.currentTime,E=o.getPartialFragment(x);if(E){var v=this._trySkipBufferHole(E);if(v)return}m.len>n.maxBufferHole&&a>n.highBufferWatchdogPeriod*1e3&&(j.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},y._reportStall=function(m){var a=this.hls,n=this.media,o=this.stallReported;o||(this.stallReported=!0,j.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer (buffer="+m+")"),a.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:m}))},y._trySkipBufferHole=function(m){for(var a=this.config,n=this.hls,o=this.media,u=o.currentTime,x=0,E=z.BufferHelper.getBuffered(o),v=0;v=x&&u.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,n)),O=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;w.playbackRate=Math.min(v,Math.max(1,O))}else w.playbackRate!==1&&w.playbackRate!==0&&(w.playbackRate=1)},c.estimateLiveEdge=function(){var w=this.levelDetails;return w===null?null:w.edge+w.age},c.computeLatency=function(){var w=this.estimateLiveEdge();return w===null?null:w-this.currentTime},U(R,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var w=this.config,y=this.levelDetails;return w.liveMaxLatencyDuration!==void 0?w.liveMaxLatencyDuration:y?w.liveMaxLatencyDurationCount*y.targetduration:0}},{key:"targetLatency",get:function(){var w=this.levelDetails;if(w===null)return null;var y=w.holdBack,f=w.partHoldBack,m=w.targetduration,a=this.config,n=a.liveSyncDuration,o=a.liveSyncDurationCount,u=a.lowLatencyMode,x=this.hls.userConfig,E=u&&f||y;(x.liveSyncDuration||x.liveSyncDurationCount||E===0)&&(E=n!==void 0?n:o*m);var v=m,O=1;return E+Math.min(this.stallCount*O,v)}},{key:"liveSyncPosition",get:function(){var w=this.estimateLiveEdge(),y=this.targetLatency,f=this.levelDetails;if(w===null||y===null||f===null)return null;var m=f.edge,a=w-y-this.edgeStalled,n=m-f.totalduration,o=m-(this.config.lowLatencyMode&&f.partTarget||f.targetduration);return Math.min(Math.max(n,a),o)}},{key:"drift",get:function(){var w=this.levelDetails;return w===null?1:w.drift}},{key:"edgeStalled",get:function(){var w=this.levelDetails;if(w===null)return 0;var y=(this.config.lowLatencyMode&&w.partTarget||w.targetduration)*3;return Math.max(w.age-y,0)}},{key:"forwardBufferLength",get:function(){var w=this.media,y=this.levelDetails;if(!w||!y)return 0;var f=w.buffered.length;return f?w.buffered.end(f-1):y.edge-this.currentTime}}]),R}()},"./src/controller/level-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return a});var z=P("./src/types/level.ts"),B=P("./src/events.ts"),M=P("./src/errors.ts"),j=P("./src/utils/codecs.ts"),U=P("./src/controller/level-helper.ts"),_=P("./src/controller/base-playlist-controller.ts"),R=P("./src/types/loader.ts");function c(){return c=Object.assign||function(n){for(var o=1;o0){h=O[0].bitrate,O.sort(function(Y,H){return Y.bitrate-H.bitrate}),this._levels=O;for(var I=0;Ithis.hls.config.fragLoadingMaxRetry&&(s=v.frag.level)):s=v.frag.level}break;case M.ErrorDetails.LEVEL_LOAD_ERROR:case M.ErrorDetails.LEVEL_LOAD_TIMEOUT:O&&(O.deliveryDirectives&&(h=!1),s=O.level),p=!0;break;case M.ErrorDetails.REMUX_ALLOC_ERROR:s=v.level,p=!0;break}s!==void 0&&this.recoverLevel(v,s,p,h)},u.recoverLevel=function(E,v,O,A){var p=E.details,h=this._levels[v];if(h.loadError++,O){var s=this.retryLoadingOrFail(E);if(s)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(A){var l=h.url.length;if(l>1&&h.loadError1){var A=(v.urlId+1)%O;this.warn("Switching to redundant URL-id "+A),this._levels.forEach(function(p){p.urlId=A}),this.level=E}},u.onFragLoaded=function(E,v){var O=v.frag;if(O!==void 0&&O.type===R.PlaylistLevelType.MAIN){var A=this._levels[O.level];A!==void 0&&(A.fragmentError=0,A.loadError=0)}},u.onLevelLoaded=function(E,v){var O,A=v.level,p=v.details,h=this._levels[A];if(!h){var s;this.warn("Invalid level index "+A),(s=v.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(p.deltaUpdateFailed=!0);return}A===this.currentLevelIndex?(h.fragmentError===0&&(h.loadError=0,this.retryCount=0),this.playlistLoaded(A,v,h.details)):(O=v.deliveryDirectives)!==null&&O!==void 0&&O.skip&&(p.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(E,v){var O=this.hls.levels[this.currentLevelIndex];if(!O)return;if(O.audioGroupIds){for(var A=-1,p=this.hls.audioTracks[v.id].groupId,h=0;h0){var A=O.urlId,p=O.url[A];if(E)try{p=E.addDirectives(p)}catch(h){this.warn("Could not construct new URL with HLS Delivery Directives: "+h)}this.log("Attempt loading level index "+v+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+A+" "+p),this.clearTimer(),this.hls.trigger(B.Events.LEVEL_LOADING,{url:p,level:v,id:A,deliveryDirectives:E||null})}},u.removeLevel=function(E,v){var O=function(h,s){return s!==v},A=this._levels.filter(function(p,h){return h!==E?!0:p.url.length>1&&v!==void 0?(p.url=p.url.filter(O),p.audioGroupIds&&(p.audioGroupIds=p.audioGroupIds.filter(O)),p.textGroupIds&&(p.textGroupIds=p.textGroupIds.filter(O)),p.urlId=0,!0):!1}).map(function(p,h){var s=p.details;return s!=null&&s.fragments&&s.fragments.forEach(function(l){l.level=h}),p});this._levels=A,this.hls.trigger(B.Events.LEVELS_UPDATED,{levels:A})},w(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var v,O=this._levels;if(O.length===0)return;if(this.currentLevelIndex===E&&(v=O[E])!==null&&v!==void 0&&v.details)return;if(E<0||E>=O.length){var A=E<0;if(this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.OTHER_ERROR,details:M.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:A,reason:"invalid level idx"}),A)return;E=Math.min(E,O.length-1)}this.clearTimer();var p=this.currentLevelIndex,h=O[p],s=O[E];this.log("switching to level "+E+" from "+p),this.currentLevelIndex=E;var l=c({},s,{level:E,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete l._urlId,this.hls.trigger(B.Events.LEVEL_SWITCHING,l);var D=s.details;if(!D||D.live){var T=this.switchParams(s.uri,h==null?void 0:h.details);this.loadPlaylist(T)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),o}(_.default)},"./src/controller/level-helper.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"addGroupId",function(){return M}),P.d(K,"assignTrackIdsByGroup",function(){return j}),P.d(K,"updatePTS",function(){return U}),P.d(K,"updateFragPTSDTS",function(){return R}),P.d(K,"mergeDetails",function(){return c}),P.d(K,"mapPartIntersection",function(){return g}),P.d(K,"mapFragmentIntersection",function(){return w}),P.d(K,"adjustSliding",function(){return y}),P.d(K,"addSliding",function(){return f}),P.d(K,"computeReloadInterval",function(){return m}),P.d(K,"getFragmentWithSN",function(){return a}),P.d(K,"getPartWith",function(){return n});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/logger.ts");function M(o,u,x){switch(u){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(x);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(x);break}}function j(o){var u={};o.forEach(function(x){var E=x.groupId||"";x.id=u[E]=u[E]||0,u[E]++})}function U(o,u,x){var E=o[u],v=o[x];_(E,v)}function _(o,u){var x=u.startPTS;if(Object(z.isFiniteNumber)(x)){var E=0,v;u.sn>o.sn?(E=x-o.start,v=o):(E=o.start-x,v=u),v.duration!==E&&(v.duration=E)}else if(u.sn>o.sn){var O=o.cc===u.cc;O&&o.minEndPTS?u.start=o.start+(o.minEndPTS-o.start):u.start=o.start+o.duration}else u.start=Math.max(o.start-u.duration,0)}function R(o,u,x,E,v,O){var A=E-x;A<=0&&(B.logger.warn("Fragment should have a positive duration",u),E=x+u.duration,O=v+u.duration);var p=x,h=E,s=u.startPTS,l=u.endPTS;if(Object(z.isFiniteNumber)(s)){var D=Math.abs(s-x);Object(z.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(D,u.deltaPTS):u.deltaPTS=D,p=Math.max(x,s),x=Math.min(x,s),v=Math.min(v,u.startDTS),h=Math.min(E,l),E=Math.max(E,l),O=Math.max(O,u.endDTS)}u.duration=E-x;var T=x-u.start;u.appendedPTS=E,u.start=u.startPTS=x,u.maxStartPTS=p,u.startDTS=v,u.endPTS=E,u.minEndPTS=h,u.endDTS=O;var S=u.sn;if(!o||So.endSN)return 0;var I,C=S-o.startSN,W=o.fragments;for(W[C]=u,I=C;I>0;I--)_(W[I],W[I-1]);for(I=C;I=0;v--){var O=E[v].initSegment;if(O){x=O;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var A=0,p;if(w(o,u,function(I,C){I.relurl&&(A=I.cc-C.cc),Object(z.isFiniteNumber)(I.startPTS)&&Object(z.isFiniteNumber)(I.endPTS)&&(C.start=C.startPTS=I.startPTS,C.startDTS=I.startDTS,C.appendedPTS=I.appendedPTS,C.maxStartPTS=I.maxStartPTS,C.endPTS=I.endPTS,C.endDTS=I.endDTS,C.minEndPTS=I.minEndPTS,C.duration=I.endPTS-I.startPTS,C.duration&&(p=C),u.PTSKnown=u.alignedSliding=!0),C.elementaryStreams=I.elementaryStreams,C.loader=I.loader,C.stats=I.stats,C.urlId=I.urlId,I.initSegment&&(C.initSegment=I.initSegment,x=I.initSegment)}),x){var h=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;h.forEach(function(I){var C;(!I.initSegment||I.initSegment.relurl===((C=x)===null||C===void 0?void 0:C.relurl))&&(I.initSegment=x)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(I){return!I}),u.deltaUpdateFailed)){B.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=u.skippedSegments;s--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var l=u.fragments;if(A){B.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D=E.length)return;f(u,E[x].start)}function f(o,u){if(u){for(var x=o.fragments,E=o.skippedSegments;E0&&v0&&h===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),h=s),this.state=B.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()}else this._forceStartLoad=!0,this.state=B.State.STOPPED},A.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},A.doTick=function(){switch(this.state){case B.State.IDLE:this.doTickIdle();break;case B.State.WAITING_LEVEL:{var h,s=this.levels,l=this.level,D=s==null||((h=s[l])===null||h===void 0)?void 0:h.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=B.State.IDLE;break}break}case B.State.FRAG_LOADING_WAITING_RETRY:{var T,S=self.performance.now(),I=this.retryDate;(!I||S>=I||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=B.State.IDLE)}break;default:break}this.onTickEnd()},A.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},A.doTickIdle=function(){var h,s,l=this.hls,D=this.levelLastLoaded,T=this.levels,S=this.media,I=l.config,C=l.nextLoadLevel;if(D===null||!S&&(this.startFragRequested||!I.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[C])return;var W=T[C];this.level=l.nextLoadLevel=C;var Y=W.details;if(!Y||this.state===B.State.WAITING_LEVEL||Y.live&&this.levelLastLoaded!==C){this.state=B.State.WAITING_LEVEL;return}var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:S,R.PlaylistLevelType.MAIN);if(H===null)return;var F=H.len,q=this.getMaxBufferLength(W.maxBitrate);if(F>=q)return;if(this._streamEnded(H,Y)){var le={};this.altAudio&&(le.type="video"),this.hls.trigger(j.Events.BUFFER_EOS,le),this.state=B.State.ENDED;return}var pe=H.end,Ae=this.getNextFragment(pe,Y);if(this.couldBacktrack&&!this.fragPrevious&&Ae&&Ae.sn!=="initSegment"){var Ge=Ae.sn-Y.startSN;Ge>1&&(Ae=Y.fragments[Ge-1],this.fragmentTracker.removeFragment(Ae))}if(Ae&&this.fragmentTracker.getState(Ae)===_.FragmentState.OK&&this.nextLoadPosition>pe){var Fe=this.audioOnly&&!this.altAudio?c.ElementaryStreamTypes.AUDIO:c.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(S,Fe,R.PlaylistLevelType.MAIN),Ae=this.getNextFragment(this.nextLoadPosition,Y)}if(!Ae)return;Ae.initSegment&&!Ae.initSegment.data&&!this.bitrateTest&&(Ae=Ae.initSegment),((h=Ae.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((s=Ae.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(Ae,Y):this.loadFragment(Ae,Y,pe)},A.loadFragment=function(h,s,l){var D,T=this.fragmentTracker.getState(h);if(this.fragCurrent=h,T===_.FragmentState.BACKTRACKED){var S=this.fragmentTracker.getBacktrackData(h);if(S){this._handleFragmentLoadProgress(S),this._handleFragmentLoadComplete(S);return}else T=_.FragmentState.NOT_LOADED}T===_.FragmentState.NOT_LOADED||T===_.FragmentState.PARTIAL?h.sn==="initSegment"?this._loadInitSegment(h):this.bitrateTest?(h.bitrateTest=!0,this.log("Fragment "+h.sn+" of level "+h.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(h)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,h,s,l)):T===_.FragmentState.APPENDING?this.reduceMaxBufferLength(h.duration)&&this.fragmentTracker.removeFragment(h):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},A.getAppendedFrag=function(h){var s=this.fragmentTracker.getAppendedFrag(h,R.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},A.getBufferedFrag=function(h){return this.fragmentTracker.getBufferedFrag(h,R.PlaylistLevelType.MAIN)},A.followingBufferedFrag=function(h){return h?this.getBufferedFrag(h.end+.5):null},A.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},A.nextLevelSwitch=function(){var h=this.levels,s=this.media;if(s!=null&&s.readyState){var l,D=this.getAppendedFrag(s.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!s.paused&&h){var T=this.hls.nextLoadLevel,S=h[T],I=this.fragLastKbps;I&&this.fragCurrent?l=this.fragCurrent.duration*S.maxBitrate/(1e3*I)+1:l=0}else l=0;var C=this.getBufferedFrag(s.currentTime+l);if(C){var W=this.followingBufferedFrag(C);if(W){this.abortCurrentFrag();var Y=W.maxStartPTS?W.maxStartPTS:W.start,H=W.duration,F=Math.max(C.end,Y+Math.min(Math.max(H-this.config.maxFragLookUpTolerance,H*.5),H*.75));this.flushMainBuffer(F,Number.POSITIVE_INFINITY)}}}},A.abortCurrentFrag=function(){var h=this.fragCurrent;this.fragCurrent=null,h!=null&&h.loader&&h.loader.abort(),this.state===B.State.KEY_LOADING&&(this.state=B.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},A.flushMainBuffer=function(h,s){v.prototype.flushMainBuffer.call(this,h,s,this.altAudio?"video":null)},A.onMediaAttached=function(h,s){v.prototype.onMediaAttached.call(this,h,s);var l=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),l.addEventListener("playing",this.onvplaying),l.addEventListener("seeked",this.onvseeked),this.gapController=new y.default(this.config,l,this.fragmentTracker,this.hls)},A.onMediaDetaching=function(){var h=this.media;h&&(h.removeEventListener("playing",this.onvplaying),h.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),v.prototype.onMediaDetaching.call(this)},A.onMediaPlaying=function(){this.tick()},A.onMediaSeeked=function(){var h=this.media,s=h?h.currentTime:null;Object(z.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},A.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(j.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},A.onManifestParsed=function(h,s){var l=!1,D=!1,T;s.levels.forEach(function(S){T=S.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(l=!0),T.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=l&&D&&!Object(M.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=s.levels,this.startFragRequested=!1},A.onLevelLoading=function(h,s){var l=this.levels;if(!l||this.state!==B.State.IDLE)return;var D=l[s.level];(!D.details||D.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(D.details))&&(this.state=B.State.WAITING_LEVEL)},A.onLevelLoaded=function(h,s){var l,D=this.levels,T=s.level,S=s.details,I=S.totalduration;if(!D){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+S.startSN+","+S.endSN+"], cc ["+S.startCC+", "+S.endCC+"] duration:"+I);var C=this.fragCurrent;C&&(this.state===B.State.FRAG_LOADING||this.state===B.State.FRAG_LOADING_WAITING_RETRY)&&(C.level!==s.level&&C.loader&&(this.state=B.State.IDLE,C.loader.abort()));var W=D[T],Y=0;if(S.live||(l=W.details)!==null&&l!==void 0&&l.live){if(S.fragments[0]||(S.deltaUpdateFailed=!0),S.deltaUpdateFailed)return;Y=this.alignPlaylists(S,W.details)}if(W.details=S,this.levelLastLoaded=T,this.hls.trigger(j.Events.LEVEL_UPDATED,{details:S,level:T}),this.state===B.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(S))return;this.state=B.State.IDLE}this.startFragRequested?S.live&&this.synchronizeToLiveEdge(S):this.setStartPosition(S,Y),this.tick()},A._handleFragmentLoadProgress=function(h){var s,l=h.frag,D=h.part,T=h.payload,S=this.levels;if(!S){this.warn("Levels were reset while fragment load was in progress. Fragment "+l.sn+" of level "+l.level+" will not be buffered");return}var I=S[l.level],C=I.details;if(!C){this.warn("Dropping fragment "+l.sn+" of level "+l.level+" after level details were reset");return}var W=I.videoCodec,Y=C.PTSKnown||!C.live,H=(s=l.initSegment)===null||s===void 0?void 0:s.data,F=this._getAudioCodec(I),q=this.transmuxer=this.transmuxer||new g.default(this.hls,R.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),le=D?D.index:-1,pe=le!==-1,Ae=new w.ChunkMetadata(l.level,l.sn,l.stats.chunkCount,T.byteLength,le,pe),Ge=this.initPTS[l.cc];q.push(T,H,F,W,l,D,C.totalduration,Y,Ae,Ge)},A.onAudioTrackSwitching=function(h,s){var l=this.altAudio,D=!!s.url,T=s.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var S=this.fragCurrent;S!=null&&S.loader&&(this.log("Switching to main audio track, cancel main fragment load"),S.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var I=this.hls;l&&I.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),I.trigger(j.Events.AUDIO_TRACK_SWITCHED,{id:T})}},A.onAudioTrackSwitched=function(h,s){var l=s.id,D=!!this.hls.audioTracks[l].url;if(D){var T=this.videoBuffer;T&&this.mediaBuffer!==T&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=T)}this.altAudio=D,this.tick()},A.onBufferCreated=function(h,s){var l=s.tracks,D,T,S=!1;for(var I in l){var C=l[I];if(C.id==="main"){if(T=I,D=C,I==="video"){var W=l[I];W&&(this.videoBuffer=W.buffer)}}else S=!0}S&&D?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},A.onFragBuffered=function(h,s){var l=s.frag,D=s.part;if(l&&l.type!==R.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(l)){this.warn("Fragment "+l.sn+(D?" p: "+D.index:"")+" of level "+l.level+" finished buffering, but was aborted. state: "+this.state),this.state===B.State.PARSED&&(this.state=B.State.IDLE);return}var T=D?D.stats:l.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),l.sn!=="initSegment"&&(this.fragPrevious=l),this.fragBufferedComplete(l,D)},A.onError=function(h,s){switch(s.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.PlaylistLevelType.MAIN,s);break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==B.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=B.State.ERROR):!s.levelRetry&&this.state===B.State.WAITING_LEVEL&&(this.state=B.State.IDLE));break;case f.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===B.State.PARSING||this.state===B.State.PARSED)){var l=!0,D=this.getFwdBufferInfo(this.media,R.PlaylistLevelType.MAIN);D&&D.len>.5&&(l=!this.reduceMaxBufferLength(D.len)),l&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},A.checkBuffer=function(){var h=this.media,s=this.gapController;if(!h||!s||!h.readyState)return;var l=U.BufferHelper.getBuffered(h);!this.loadedmetadata&&l.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=h.currentTime},A.onFragLoadEmergencyAborted=function(){this.state=B.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},A.onBufferFlushed=function(h,s){var l=s.type;if(l!==c.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(l===c.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,l,R.PlaylistLevelType.MAIN)}},A.onLevelsUpdated=function(h,s){this.levels=s.levels},A.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},A.seekToStartPos=function(){var h=this.media,s=h.currentTime,l=this.startPosition;if(l>=0&&s0&&(S1&&h.seeking===!1){var l=h.currentTime;if(U.BufferHelper.isBuffered(h,l)?s=this.getAppendedFrag(l):U.BufferHelper.isBuffered(h,l+.1)&&(s=this.getAppendedFrag(l+.1)),s){var D=this.fragPlaying,T=s.level;(!D||s.sn!==D.sn||D.level!==T||s.urlId!==D.urlId)&&(this.hls.trigger(j.Events.FRAG_CHANGED,{frag:s}),(!D||D.level!==T)&&this.hls.trigger(j.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=s)}}},n(O,[{key:"nextLevel",get:function(){var h=this.nextBufferedFrag;return h?h.level:-1}},{key:"currentLevel",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var h=this.media;if(h){var s=this.getAppendedFrag(h.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),O}(B.default)},"./src/controller/subtitle-stream-controller.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"SubtitleStreamController",function(){return o});var z=P("./src/events.ts"),B=P("./src/utils/logger.ts"),M=P("./src/utils/buffer-helper.ts"),j=P("./src/controller/fragment-finders.ts"),U=P("./src/utils/discontinuities.ts"),_=P("./src/controller/level-helper.ts"),R=P("./src/controller/fragment-tracker.ts"),c=P("./src/controller/base-stream-controller.ts"),g=P("./src/types/loader.ts"),w=P("./src/types/level.ts");function y(u,x){for(var E=0;E=s[T].start&&D<=s[T].end){l=s[T];break}var S=p.start+p.duration;l?l.end=S:(l={start:D,end:S},s.push(l)),this.fragmentTracker.fragBuffered(p)},E.onBufferFlushing=function(O,A){var p=A.startOffset,h=A.endOffset;if(p===0&&h!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,l=this.levels;if(!l.length||!l[s]||!l[s].details)return;var D=l[s].details,T=D.targetduration,S=h-T;if(S<=0)return;A.endOffsetSubtitles=Math.max(0,S),this.tracksBuffered.forEach(function(I){for(var C=0;C=D.length||s!==l||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,h.live||(p=T.details)!==null&&p!==void 0&&p.live){var S=this.mainDetails;if(h.deltaUpdateFailed||!S)return;var I=S.fragments[0];if(!T.details)h.hasProgramDateTime&&S.hasProgramDateTime?Object(U.alignMediaPlaylistByPDT)(h,S):I&&Object(_.addSliding)(h,I.start);else{var C=this.alignPlaylists(h,T.details);C===0&&I&&Object(_.addSliding)(h,I.start)}}if(T.details=h,this.levelLastLoaded=s,this.tick(),h.live&&!this.fragCurrent&&this.media&&this.state===c.State.IDLE){var W=Object(j.findFragmentByPTS)(null,h.fragments,this.media.currentTime,0);W||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},E._handleFragmentLoadComplete=function(O){var A=O.frag,p=O.payload,h=A.decryptdata,s=this.hls;if(this.fragContextChanged(A))return;if(p&&p.byteLength>0&&h&&h.key&&h.iv&&h.method==="AES-128"){var l=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(p),h.key.buffer,h.iv.buffer).then(function(D){var T=performance.now();s.trigger(z.Events.FRAG_DECRYPTED,{frag:A,payload:D,stats:{tstart:l,tdecrypt:T}})})}},E.doTick=function(){if(!this.media){this.state=c.State.IDLE;return}if(this.state===c.State.IDLE){var O,A=this.currentTrackId,p=this.levels;if(!p.length||!p[A]||!p[A].details)return;var h=p[A].details,s=h.targetduration,l=this.config,D=this.media,T=M.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-s,l.maxBufferHole),S=T.end,I=T.len,C=this.getMaxBufferLength()+s;if(I>C)return;console.assert(h,"Subtitle track details are defined on idle subtitle stream controller tick");var W=h.fragments,Y=W.length,H=h.edge,F,q=this.fragPrevious;if(S-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},m.pollTrackChange=function(n){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,n)},m.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var n=w(this.media.textTracks);n.forEach(function(o){Object(B.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},m.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},m.onManifestParsed=function(n,o){this.tracks=o.subtitleTracks},m.onSubtitleTrackLoaded=function(n,o){var u=o.id,x=o.details,E=this.trackId,v=this.tracksInGroup[E];if(!v){this.warn("Invalid subtitle track id "+u);return}var O=v.details;v.details=o.details,this.log("subtitle track "+u+" loaded ["+x.startSN+"-"+x.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,o,O))},m.onLevelLoading=function(n,o){this.switchLevel(o.level)},m.onLevelSwitching=function(n,o){this.switchLevel(o.level)},m.switchLevel=function(n){var o=this.hls.levels[n];if(!(o!=null&&o.textGroupIds))return;var u=o.textGroupIds[o.urlId];if(this.groupId!==u){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(A){return!u||A.groupId===u});this.tracksInGroup=E;var v=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=u;var O={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(z.Events.SUBTITLE_TRACKS_UPDATED,O),v!==-1&&this.setSubtitleTrack(v,x)}},m.findTrackId=function(n){for(var o=this.tracksInGroup,u=0;u=x.length)return;this.clearTimer();var E=x[n];if(this.log("Switching to subtitle track "+n),this.trackId=n,E){var v=E.id,O=E.groupId,A=O===void 0?"":O,p=E.name,h=E.type,s=E.url;this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:A,name:p,type:h,url:s});var l=this.switchParams(E.url,o==null?void 0:o.details);this.loadPlaylist(l)}else this.hls.trigger(z.Events.SUBTITLE_TRACK_SWITCH,{id:n})},m.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var n=-1,o=w(this.media.textTracks),u=0;u=0&&(h[0]=Math.min(h[0],x),h[1]=Math.max(h[1],E),A=!0,s/(E-x)>.5))return}if(A||O.push([x,E]),this.config.renderTextTracksNatively){var l=this.captionsTracks[u];this.Cues.newCue(l,x,E,v)}else{var D=this.Cues.newCue(null,x,E,v);this.hls.trigger(B.Events.CUES_PARSED,{type:"captions",cues:D,track:u})}},n.onInitPtsFound=function(u,x){var E=this,v=x.frag,O=x.id,A=x.initPTS,p=x.timescale,h=this.unparsedVttFrags;O==="main"&&(this.initPTS[v.cc]=A,this.timescale[v.cc]=p),h.length&&(this.unparsedVttFrags=[],h.forEach(function(s){E.onFragLoaded(B.Events.FRAG_LOADED,s)}))},n.getExistingTrack=function(u){var x=this.media;if(x)for(var E=0;E>>8^p&255^99,R[v]=p,c[p]=v;var h=E[v],s=E[h],l=E[s],D=E[p]*257^p*16843008;w[v]=D<<24|D>>>8,y[v]=D<<16|D>>>16,f[v]=D<<8|D>>>24,m[v]=D,D=l*16843009^s*65537^h*257^v*16843008,n[p]=D<<24|D>>>8,o[p]=D<<16|D>>>16,u[p]=D<<8|D>>>24,x[p]=D,v?(v=h^E[E[E[l^h]]],O^=E[E[O]]):v=O=1}},U.expandKey=function(R){for(var c=this.uint8ArrayToUint32Array_(R),g=!0,w=0;w>>6)+1;var D=(u[x+2]&60)>>>2;if(D>l.length-1){o.trigger(M.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return A=(u[x+2]&1)<<2,A|=(u[x+3]&192)>>>6,z.logger.log("manifest codec:"+E+", ADTS type:"+v+", samplingIndex:"+D),/firefox/i.test(h)?D>=6?(v=5,p=new Array(4),O=D-3):(v=2,p=new Array(2),O=D):h.indexOf("android")!==-1?(v=2,p=new Array(2),O=D):(v=5,p=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&D>=6?O=D-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(D>=6&&A===1||/vivaldi/i.test(h))||!E&&A===1)&&(v=2,p=new Array(2)),O=D)),p[0]=v<<3,p[0]|=(D&14)>>1,p[1]|=(D&1)<<7,p[1]|=A<<3,v===5&&(p[1]|=(O&14)>>1,p[2]=(O&1)<<7,p[2]|=2<<2,p[3]=0),{config:p,samplerate:l[D],channelCount:A,codec:"mp4a.40."+v,manifestCodec:s}}function U(o,u){return o[u]===255&&(o[u+1]&246)===240}function _(o,u){return o[u+1]&1?7:9}function R(o,u){return(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5}function c(o,u){return u+5=o.length)return!1;var E=R(o,u);if(E<=x)return!1;var v=u+E;return v===o.length||g(o,v)}return!1}function f(o,u,x,E,v){if(!o.samplerate){var O=j(u,x,E,v);if(!O)return;o.config=O.config,o.samplerate=O.samplerate,o.channelCount=O.channelCount,o.codec=O.codec,o.manifestCodec=O.manifestCodec,z.logger.log("parsed codec:"+o.codec+", rate:"+O.samplerate+", channels:"+O.channelCount)}}function m(o){return 1024*9e4/o}function a(o,u,x,E,v){var O=_(o,u),A=R(o,u);if(A-=O,A>0){var p=x+E*v;return{headerLength:O,frameLength:A,stamp:p}}}function n(o,u,x,E,v){var O=m(o.samplerate),A=a(u,x,E,v,O);if(A){var p=A.frameLength,h=A.headerLength,s=A.stamp,l=h+p,D=Math.max(0,x+l-u.length),T;D?(T=new Uint8Array(l-h),T.set(u.subarray(x+h,u.length),0)):T=u.subarray(x+h,x+l);var S={unit:T,pts:s};return D||o.samples.push(S),{sample:S,length:l,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"initPTSFn",function(){return R});var z=P("./src/polyfills/number.ts"),B=P("./src/demux/id3.ts"),M=P("./src/demux/dummy-demuxed-track.ts"),j=P("./src/utils/mp4-tools.ts"),U=P("./src/utils/typed-array.ts"),_=function(){function c(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var g=c.prototype;return g.resetInitSegment=function(y,f,m){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},g.resetTimeStamp=function(){},g.resetContiguity=function(){},g.canParse=function(y,f){return!1},g.appendFrame=function(y,f,m){},g.demux=function(y,f){this.cachedData&&(y=Object(j.appendUint8Array)(this.cachedData,y),this.cachedData=null);var m=B.getID3Data(y,0),a=m?m.length:0,n,o,u=this._audioTrack,x=this._id3Track,E=m?B.getTimeStamp(m):void 0,v=y.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=R(E,f)),m&&m.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:m}),o=this.initPTS;a_?(this.word<<=_,this.bitsAvailable-=_):(_-=this.bitsAvailable,R=_>>3,_-=R>>3,this.bytesAvailable-=R,this.loadWord(),this.word<<=_,this.bitsAvailable-=_)},j.readBits=function(_){var R=Math.min(this.bitsAvailable,_),c=this.word>>>32-R;return _>32&&z.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=R,this.bitsAvailable>0?this.word<<=R:this.bytesAvailable>0&&this.loadWord(),R=_-R,R>0&&this.bitsAvailable?c<>>_)!==0)return this.word<<=_,this.bitsAvailable-=_,_;return this.loadWord(),_+this.skipLZ()},j.skipUEG=function(){this.skipBits(1+this.skipLZ())},j.skipEG=function(){this.skipBits(1+this.skipLZ())},j.readUEG=function(){var _=this.skipLZ();return this.readBits(_+1)-1},j.readEG=function(){var _=this.readUEG();return 1&_?1+_>>>1:-1*(_>>>1)},j.readBoolean=function(){return this.readBits(1)===1},j.readUByte=function(){return this.readBits(8)},j.readUShort=function(){return this.readBits(16)},j.readUInt=function(){return this.readBits(32)},j.skipScalingList=function(_){for(var R=8,c=8,g,w=0;w<_;w++)c!==0&&(g=this.readEG(),c=(R+g+256)%256),R=c===0?R:c},j.readSPS=function(){var _=0,R=0,c=0,g=0,w,y,f,m=this.readUByte.bind(this),a=this.readBits.bind(this),n=this.readUEG.bind(this),o=this.readBoolean.bind(this),u=this.skipBits.bind(this),x=this.skipEG.bind(this),E=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);m();var O=m();if(a(5),u(3),m(),E(),O===100||O===110||O===122||O===244||O===44||O===83||O===86||O===118||O===128){var A=n();if(A===3&&u(1),E(),E(),u(1),o())for(y=A!==3?8:12,f=0;f0?v.subarray(A,A+p):void 0},j=function(v,O){var A=0;return A=(v[O]&127)<<21,A|=(v[O+1]&127)<<14,A|=(v[O+2]&127)<<7,A|=v[O+3]&127,A},U=function(v,O){return z(v,O)&&j(v,O+6)+10<=v.length-O},_=function(v){for(var O=g(v),A=0;A>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:S+=String.fromCharCode(l);break;case 12:case 13:D=v[I++],S+=String.fromCharCode((l&31)<<6|D&63);break;case 14:D=v[I++],T=v[I++],S+=String.fromCharCode((l&15)<<12|(D&63)<<6|(T&63)<<0);break;default:}}return S},o={decodeTextFrame:f},u;function x(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/demux/base-audio-demuxer.ts"),B=P("./src/demux/id3.ts"),M=P("./src/utils/logger.ts"),j=P("./src/demux/mpegaudio.ts");function U(c,g){c.prototype=Object.create(g.prototype),c.prototype.constructor=c,_(c,g)}function _(c,g){return _=Object.setPrototypeOf||function(y,f){return y.__proto__=f,y},_(c,g)}var R=function(c){U(g,c);function g(){return c.apply(this,arguments)||this}var w=g.prototype;return w.resetInitSegment=function(f,m,a){c.prototype.resetInitSegment.call(this,f,m,a),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:f,duration:a,inputTimeScale:9e4,dropped:0}},g.probe=function(f){if(!f)return!1;for(var m=B.getID3Data(f,0)||[],a=m.length,n=f.length;a0},U.demux=function(R){var c=R,g=Object(B.dummyTrack)();if(this.config.progressive){this.remainderData&&(c=Object(z.appendUint8Array)(this.remainderData,R));var w=Object(z.segmentValidRange)(c);this.remainderData=w.remainder,g.samples=w.valid||new Uint8Array}else g.samples=c;return{audioTrack:Object(B.dummyTrack)(),avcTrack:g,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.flush=function(){var R=Object(B.dummyTrack)();return R.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(B.dummyTrack)(),avcTrack:R,id3Track:Object(B.dummyTrack)(),textTrack:Object(B.dummyTrack)()}},U.demuxSampleAes=function(R,c,g){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},U.destroy=function(){},j}();M.minProbeByteLength=1024,K.default=M},"./src/demux/mpegaudio.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"appendFrame",function(){return _}),P.d(K,"parseHeader",function(){return R}),P.d(K,"isHeaderPattern",function(){return c}),P.d(K,"isHeader",function(){return g}),P.d(K,"canParse",function(){return w}),P.d(K,"probe",function(){return y});var z=null,B=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],M=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],j=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],U=[0,1,1,4];function _(f,m,a,n,o){if(a+24>m.length)return;var u=R(m,a);if(u&&a+u.frameLength<=m.length){var x=u.samplesPerFrame*9e4/u.sampleRate,E=n+o*x,v={unit:m.subarray(a,a+u.frameLength),pts:E,dts:E};return f.config=[],f.channelCount=u.channelCount,f.samplerate=u.sampleRate,f.samples.push(v),{sample:v,length:u.frameLength,missing:0}}}function R(f,m){var a=f[m+1]>>3&3,n=f[m+1]>>1&3,o=f[m+2]>>4&15,u=f[m+2]>>2&3;if(a!==1&&o!==0&&o!==15&&u!==3){var x=f[m+2]>>1&1,E=f[m+3]>>6,v=a===3?3-n:n===3?3:4,O=B[v*14+o-1]*1e3,A=a===3?0:a===2?1:2,p=M[A*3+u],h=E===3?1:2,s=j[a][n],l=U[n],D=s*8*l,T=Math.floor(s*O/p+x)*l;if(z===null){var S=navigator.userAgent||"",I=S.match(/Chrome\/(\d+)/i);z=I?parseInt(I[1]):0}var C=!!z&&z<=87;return C&&n===2&&O>=224e3&&E===0&&(f[m+3]=f[m+3]|128),{sampleRate:p,channelCount:h,frameLength:T,samplesPerFrame:D}}}function c(f,m){return f[m]===255&&(f[m+1]&224)===224&&(f[m+1]&6)!==0}function g(f,m){return m+1=R.length){g();return}if(R[c].unit.length<32)continue;var w=this.decrypter.isSync();if(this.decryptAacSample(R,c,g,w),!w)return}},U.getAvcEncryptedData=function(R){for(var c=Math.floor((R.length-48)/160)*16+16,g=new Int8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)g.set(R.subarray(y,y+16),w);return g},U.getAvcDecryptedUnit=function(R,c){for(var g=new Uint8Array(c),w=0,y=32;y<=R.length-16;y+=160,w+=16)R.set(g.subarray(w,w+16),y);return R},U.decryptAvcSample=function(R,c,g,w,y,f){var m=Object(B.discardEPB)(y.data),a=this.getAvcEncryptedData(m),n=this;this.decryptBuffer(a.buffer,function(o){y.data=n.getAvcDecryptedUnit(m,o),f||n.decryptAvcSamples(R,c,g+1,w)})},U.decryptAvcSamples=function(R,c,g,w){if(R instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;c++,g=0){if(c>=R.length){w();return}for(var y=R[c].units;!(g>=y.length);g++){var f=y[g];if(f.data.length<=48||f.type!==1&&f.type!==5)continue;var m=this.decrypter.isSync();if(this.decryptAvcSample(R,c,g,w,f,m),!m)return}}},j}();K.default=M},"./src/demux/transmuxer-interface.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y});var z=P("./node_modules/webworkify-webpack/index.js"),B=P.n(z),M=P("./src/events.ts"),j=P("./src/demux/transmuxer.ts"),U=P("./src/utils/logger.ts"),_=P("./src/errors.ts"),R=P("./src/utils/mediasource-helper.ts"),c=P("./node_modules/eventemitter3/index.js"),g=P.n(c),w=Object(R.getMediaSource)()||{isTypeSupported:function(){return!1}},y=function(){function f(a,n,o,u){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=a,this.id=n,this.onTransmuxComplete=o,this.onFlush=u;var E=a.config,v=function(s,l){l=l||{},l.frag=x.frag,l.id=x.id,a.trigger(s,l)};this.observer=new c.EventEmitter,this.observer.on(M.Events.FRAG_DECRYPTED,v),this.observer.on(M.Events.ERROR,v);var O={mp4:w.isTypeSupported("video/mp4"),mpeg:w.isTypeSupported("audio/mpeg"),mp3:w.isTypeSupported('audio/mp4; codecs="mp3"')},A=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){U.logger.log("demuxing in webworker");var p;try{p=this.worker=z("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),p.addEventListener("message",this.onwmsg),p.onerror=function(h){a.trigger(M.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(h.message+" ("+h.filename+":"+h.lineno+")")})},p.postMessage({cmd:"init",typeSupported:O,vendor:A,id:n,config:JSON.stringify(E)})}catch(h){U.logger.warn("Error in worker:",h),U.logger.error("Error while initializing DemuxerWorker, fallback to inline"),p&&self.URL.revokeObjectURL(p.objectURL),this.transmuxer=new j.default(this.observer,O,E,A,n),this.worker=null}}else this.transmuxer=new j.default(this.observer,O,E,A,n)}var m=f.prototype;return m.destroy=function(){var n=this.worker;if(n)n.removeEventListener("message",this.onwmsg),n.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var u=this.observer;u&&u.removeAllListeners(),this.observer=null},m.push=function(n,o,u,x,E,v,O,A,p,h){var s=this;p.transmuxing.start=self.performance.now();var l=this.transmuxer,D=this.worker,T=v?v.start:E.start,S=E.decryptdata,I=this.frag,C=!(I&&E.cc===I.cc),W=!(I&&p.level===I.level),Y=I?p.sn-I.sn:-1,H=this.part?p.part-this.part.index:1,F=!W&&(Y===1||Y===0&&H===1),q=self.performance.now();(W||Y||E.stats.parsing.start===0)&&(E.stats.parsing.start=q),v&&(H||!F)&&(v.stats.parsing.start=q);var le=new j.TransmuxState(C,F,A,W,T);if(!F||C){U.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+p.sn+" p: "+p.part+" level: "+p.level+" id: "+p.id+` discontinuity: `+C+` trackSwitch: `+W+` contiguous: `+F+` accurateTimeOffset: `+A+` - timeOffset: `+T);var pe=new j.TransmuxConfig(u,x,o,O,h);this.configureTransmuxer(pe)}if(this.frag=E,this.part=v,D)D.postMessage({cmd:"demux",data:n,decryptdata:S,chunkMeta:p,state:le},n instanceof ArrayBuffer?[n]:[]);else if(l){var Ae=l.push(n,S,p,le);Object(j.isPromise)(Ae)?Ae.then(function(Ge){s.handleTransmuxComplete(Ge)}):this.handleTransmuxComplete(Ae)}},m.flush=function(n){var o=this;n.transmuxing.start=self.performance.now();var u=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:n});else if(u){var E=u.flush(n);Object(j.isPromise)(E)?E.then(function(v){o.handleFlushResult(v,n)}):this.handleFlushResult(E,n)}},m.handleFlushResult=function(n,o){var u=this;n.forEach(function(x){u.handleTransmuxComplete(x)}),this.onFlush(o)},m.onWorkerMessage=function(n){var o=n.data,u=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,u.trigger(o.event,o.data);break}}},m.configureTransmuxer=function(n){var o=this.worker,u=this.transmuxer;o?o.postMessage({cmd:"configure",config:n}):u&&u.configure(n)},m.handleTransmuxComplete=function(n){n.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(n)},f}()},"./src/demux/transmuxer-worker.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return _});var z=k("./src/demux/transmuxer.ts"),B=k("./src/events.ts"),M=k("./src/utils/logger.ts"),j=k("./node_modules/eventemitter3/index.js"),U=k.n(j);function _(y){var f=new j.EventEmitter,m=function(n,o){y.postMessage({event:n,data:o})};f.on(B.Events.FRAG_DECRYPTED,m),f.on(B.Events.ERROR,m),y.addEventListener("message",function(a){var n=a.data;switch(n.cmd){case"init":{var o=JSON.parse(n.config);y.transmuxer=new z.default(f,n.typeSupported,o,n.vendor,n.id),Object(M.enableLogs)(o.debug),m("init",null);break}case"configure":{y.transmuxer.configure(n.config);break}case"demux":{var u=y.transmuxer.push(n.data,n.decryptdata,n.chunkMeta,n.state);Object(z.isPromise)(u)?u.then(function(v){R(y,v)}):R(y,u);break}case"flush":{var x=n.chunkMeta,E=y.transmuxer.flush(x);Object(z.isPromise)(E)?E.then(function(v){g(y,v,x)}):g(y,E,x);break}default:break}})}function R(y,f){if(w(f.remuxResult))return;var m=[],a=f.remuxResult,n=a.audio,o=a.video;n&&c(m,n),o&&c(m,o),y.postMessage({event:"transmuxComplete",data:f},m)}function c(y,f){f.data1&&y.push(f.data1.buffer),f.data2&&y.push(f.data2.buffer)}function g(y,f,m){f.forEach(function(a){R(y,a)}),y.postMessage({event:"flush",data:m})}function w(y){return!y.audio&&!y.video&&!y.text&&!y.id3&&!y.initSegment}},"./src/demux/transmuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return o}),k.d(K,"isPromise",function(){return E}),k.d(K,"TransmuxConfig",function(){return v}),k.d(K,"TransmuxState",function(){return O});var z=k("./src/events.ts"),B=k("./src/errors.ts"),M=k("./src/crypt/decrypter.ts"),j=k("./src/demux/aacdemuxer.ts"),U=k("./src/demux/mp4demuxer.ts"),_=k("./src/demux/tsdemuxer.ts"),R=k("./src/demux/mp3demuxer.ts"),c=k("./src/remux/mp4-remuxer.ts"),g=k("./src/remux/passthrough-remuxer.ts"),w=k("./src/demux/chunk-cache.ts"),y=k("./src/utils/mp4-tools.ts"),f=k("./src/utils/logger.ts"),m;try{m=self.performance.now.bind(self.performance)}catch(A){f.logger.debug("Unable to use Performance API on this environment"),m=self.Date.now}var a=[{demux:_.default,remux:c.default},{demux:U.default,remux:g.default},{demux:j.default,remux:c.default},{demux:R.default,remux:c.default}],n=1024;a.forEach(function(A){var p=A.demux;n=Math.max(n,p.minProbeByteLength)});var o=function(){function A(h,s,l,D,T){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new w.default,this.observer=h,this.typeSupported=s,this.config=l,this.vendor=D,this.id=T}var p=A.prototype;return p.configure=function(s){this.transmuxConfig=s,this.decrypter&&this.decrypter.reset()},p.push=function(s,l,D,T){var S=this,I=D.transmuxing;I.executeStart=m();var C=new Uint8Array(s),W=this.cache,Y=this.config,H=this.currentTransmuxState,F=this.transmuxConfig;T&&(this.currentTransmuxState=T);var q=u(C,l);if(q&&q.method==="AES-128"){var le=this.getDecrypter();if(Y.enableSoftwareAES){var pe=le.softwareDecrypt(C,q.key.buffer,q.iv.buffer);if(!pe)return I.executeEnd=m(),x(D);C=new Uint8Array(pe)}else return this.decryptionPromise=le.webCryptoDecrypt(C,q.key.buffer,q.iv.buffer).then(function(Se){var Me=S.push(Se,null,D);return S.decryptionPromise=null,Me}),this.decryptionPromise}var Ae=T||H,Ge=Ae.contiguous,Fe=Ae.discontinuity,Ue=Ae.trackSwitch,_e=Ae.accurateTimeOffset,je=Ae.timeOffset,xe=F.audioCodec,he=F.videoCodec,te=F.defaultInitPts,ye=F.duration,ue=F.initSegmentData;if((Fe||Ue)&&this.resetInitSegment(ue,xe,he,ye),Fe&&this.resetInitialTimestamp(te),Ge||this.resetContiguity(),this.needsProbing(C,Fe,Ue)){if(W.dataLength){var Le=W.flush();C=Object(y.appendUint8Array)(Le,C)}this.configureTransmuxer(C,F)}var ae=this.transmux(C,q,je,_e,D),oe=this.currentTransmuxState;return oe.contiguous=!0,oe.discontinuity=!1,oe.trackSwitch=!1,I.executeEnd=m(),ae},p.flush=function(s){var l=this,D=s.transmuxing;D.executeStart=m();var T=this.decrypter,S=this.cache,I=this.currentTransmuxState,C=this.decryptionPromise;if(C)return C.then(function(){return l.flush(s)});var W=[],Y=I.timeOffset;if(T){var H=T.flush();H&&W.push(this.push(H,null,s))}var F=S.dataLength;S.reset();var q=this.demuxer,le=this.remuxer;if(!q||!le)return F>=n&&this.observer.emit(z.Events.ERROR,z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=m(),[x(s)];var pe=q.flush(Y);return E(pe)?pe.then(function(Ae){return l.flushRemux(W,Ae,s),W}):(this.flushRemux(W,pe,s),W)},p.flushRemux=function(s,l,D){var T=l.audioTrack,S=l.avcTrack,I=l.id3Track,C=l.textTrack,W=this.currentTransmuxState,Y=W.accurateTimeOffset,H=W.timeOffset;f.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var F=this.remuxer.remux(T,S,I,C,H,Y,!0,this.id);s.push({remuxResult:F,chunkMeta:D}),D.transmuxing.executeEnd=m()},p.resetInitialTimestamp=function(s){var l=this.demuxer,D=this.remuxer;if(!l||!D)return;l.resetTimeStamp(s),D.resetTimeStamp(s)},p.resetContiguity=function(){var s=this.demuxer,l=this.remuxer;if(!s||!l)return;s.resetContiguity(),l.resetNextTimestamp()},p.resetInitSegment=function(s,l,D,T){var S=this.demuxer,I=this.remuxer;if(!S||!I)return;S.resetInitSegment(l,D,T),I.resetInitSegment(s,l,D)},p.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},p.transmux=function(s,l,D,T,S){var I;return l&&l.method==="SAMPLE-AES"?I=this.transmuxSampleAes(s,l,D,T,S):I=this.transmuxUnencrypted(s,D,T,S),I},p.transmuxUnencrypted=function(s,l,D,T){var S=this.demuxer.demux(s,l,!1,!this.config.progressive),I=S.audioTrack,C=S.avcTrack,W=S.id3Track,Y=S.textTrack,H=this.remuxer.remux(I,C,W,Y,l,D,!1,this.id);return{remuxResult:H,chunkMeta:T}},p.transmuxSampleAes=function(s,l,D,T,S){var I=this;return this.demuxer.demuxSampleAes(s,l,D).then(function(C){var W=I.remuxer.remux(C.audioTrack,C.avcTrack,C.id3Track,C.textTrack,D,T,!1,I.id);return{remuxResult:W,chunkMeta:S}})},p.configureTransmuxer=function(s,l){for(var D=this.config,T=this.observer,S=this.typeSupported,I=this.vendor,C=l.audioCodec,W=l.defaultInitPts,Y=l.duration,H=l.initSegmentData,F=l.videoCodec,q,le=0,pe=a.length;le0&&p!=null&&p.key!=null&&p.iv!==null&&p.method!=null&&(h=p),h}var x=function(p){return{remuxResult:{},chunkMeta:p}};function E(A){return"then"in A&&A.then instanceof Function}var v=function(p,h,s,l,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=p,this.videoCodec=h,this.initSegmentData=s,this.duration=l,this.defaultInitPts=D},O=function(p,h,s,l,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=p,this.contiguous=h,this.accurateTimeOffset=s,this.trackSwitch=l,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"discardEPB",function(){return x});var z=k("./src/demux/adts.ts"),B=k("./src/demux/mpegaudio.ts"),M=k("./src/demux/exp-golomb.ts"),j=k("./src/demux/id3.ts"),U=k("./src/demux/sample-aes.ts"),_=k("./src/events.ts"),R=k("./src/utils/mp4-tools.ts"),c=k("./src/utils/logger.ts"),g=k("./src/errors.ts"),w={video:1,audio:2,id3:3,text:4},y=function(){function E(O,A,p){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=O,this.config=A,this.typeSupported=p}E.probe=function(A){var p=E.syncOffset(A);return p<0?!1:(p&&c.logger.warn("MPEG2-TS detected but first sync word found @ offset "+p+", junk ahead ?"),!0)},E.syncOffset=function(A){for(var p=Math.min(1e3,A.length-3*188),h=0;h>4,xe=void 0;if(je>1){if(xe=Fe+5+A[Fe+4],xe===Fe+188)continue}else xe=Fe+4;switch(_e){case I:Ue&&(C&&(l=n(C))&&this.parseAVCPES(l,!1),C={data:[],size:0}),C&&(C.data.push(A.subarray(xe,Fe+188)),C.size+=Fe+188-xe);break;case W:Ue&&(H&&(l=n(H))&&(T.isAAC?this.parseAACPES(l):this.parseMPEGPES(l)),H={data:[],size:0}),H&&(H.data.push(A.subarray(xe,Fe+188)),H.size+=Fe+188-xe);break;case Y:Ue&&(F&&(l=n(F))&&this.parseID3PES(l),F={data:[],size:0}),F&&(F.data.push(A.subarray(xe,Fe+188)),F.size+=Fe+188-xe);break;case 0:Ue&&(xe+=A[xe]+1),pe=this._pmtId=m(A,xe);break;case pe:{Ue&&(xe+=A[xe]+1);var he=a(A,xe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);I=he.avc,I>0&&(D.pid=I),W=he.audio,W>0&&(T.pid=W,T.isAAC=he.isAAC),Y=he.id3,Y>0&&(S.pid=Y),q&&!le&&(c.logger.log("reparse from beginning"),q=!1,Fe=Ge-188),le=this.pmtParsed=!0;break}case 17:case 8191:break;default:q=!0;break}}else this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=C,T.pesData=H,S.pesData=F;var te={audioTrack:T,avcTrack:D,id3Track:S,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(te),te},v.flush=function(){var A=this.remainderData;this.remainderData=null;var p;return A?p=this.demux(A,-1,!1,!0):p={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(p),this.sampleAes?this.decrypt(p,this.sampleAes):p},v.extractRemainingSamples=function(A){var p=A.audioTrack,h=A.avcTrack,s=A.id3Track,l=h.pesData,D=p.pesData,T=s.pesData,S;l&&(S=n(l))?(this.parseAVCPES(S,!0),h.pesData=null):h.pesData=l,D&&(S=n(D))?(p.isAAC?this.parseAACPES(S):this.parseMPEGPES(S),p.pesData=null):(D!=null&&D.size&&c.logger.log("last AAC PES packet truncated,might overlap between fragments"),p.pesData=D),T&&(S=n(T))?(this.parseID3PES(S),s.pesData=null):s.pesData=T},v.demuxSampleAes=function(A,p,h){var s=this.demux(A,h,!0,!this.config.progressive),l=this.sampleAes=new U.default(this.observer,this.config,p);return this.decrypt(s,l)},v.decrypt=function(A,p){return new Promise(function(h){var s=A.audioTrack,l=A.avcTrack;s.samples&&s.isAAC?p.decryptAacSamples(s.samples,0,function(){l.samples?p.decryptAvcSamples(l.samples,0,0,function(){h(A)}):h(A)}):l.samples&&p.decryptAvcSamples(l.samples,0,0,function(){h(A)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(A,p){var h=this,s=this._avcTrack,l=this.parseAVCNALu(A.data),D=!1,T=this.avcSample,S,I=!1;A.data=null,T&&l.length&&!s.audFound&&(o(T,s),T=this.avcSample=f(!1,A.pts,A.dts,"")),l.forEach(function(C){switch(C.type){case 1:{S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="NDR "),T.frame=!0;var W=C.data;if(I&&W.length>4){var Y=new M.default(W).readSliceType();(Y===2||Y===4||Y===7||Y===9)&&(T.key=!0)}break}case 5:S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{S=!0,D&&T&&(T.debug+="SEI ");var H=new M.default(x(C.data));H.readUByte();for(var F=0,q=0,le=!1,pe=0;!le&&H.bytesAvailable>1;){F=0;do pe=H.readUByte(),F+=pe;while(pe===255);q=0;do pe=H.readUByte(),q+=pe;while(pe===255);if(F===4&&H.bytesAvailable!==0){le=!0;var Ae=H.readUByte();if(Ae===181){var Ge=H.readUShort();if(Ge===49){var Fe=H.readUInt();if(Fe===1195456820){var Ue=H.readUByte();if(Ue===3){for(var _e=H.readUByte(),je=H.readUByte(),xe=31&_e,he=[_e,je],te=0;te16){for(var ye=[],ue=0;ue<16;ue++)ye.push(H.readUByte().toString(16)),(ue===3||ue===5||ue===7||ue===9)&&ye.push("-");for(var Le=q-16,ae=new Uint8Array(Le),oe=0;oe=0){var H={data:A.subarray(W,T-s-1),type:Y};D.push(H)}else{var F=this.getLastNalUnit();if(F&&(l&&T<=4-l&&(F.state&&(F.data=F.data.subarray(0,F.data.byteLength-l))),I=T-s-1,I>0)){var q=new Uint8Array(F.data.byteLength+I);q.set(F.data,0),q.set(A.subarray(0,I),F.data.byteLength),F.data=q,F.state=0}}T=0&&s>=0){var le={data:A.subarray(W,p),type:Y,state:s};D.push(le)}if(D.length===0){var pe=this.getLastNalUnit();if(pe){var Ae=new Uint8Array(pe.data.byteLength+A.byteLength);Ae.set(pe.data,0),Ae.set(A,pe.data.byteLength),pe.data=Ae}}return h.naluState=s,D},v.parseAACPES=function(A){var p=0,h=this._audioTrack,s=this.aacOverFlow,l=A.data;if(s){this.aacOverFlow=null;var D=s.sample.unit.byteLength,T=Math.min(s.missing,D),S=D-T;s.sample.unit.set(l.subarray(0,T),S),h.samples.push(s.sample),p=s.missing}var I,C;for(I=p,C=l.length;I1;){var D=new Uint8Array(l[0].length+l[1].length);D.set(l[0]),D.set(l[1],l[0].length),l[0]=D,l.splice(1,1)}O=l[0];var T=(O[0]<<16)+(O[1]<<8)+O[2];if(T===1){if(A=(O[4]<<8)+O[5],A&&A>E.size-6)return null;var S=O[7];S&192&&(h=(O[9]&14)*536870912+(O[10]&255)*4194304+(O[11]&254)*16384+(O[12]&255)*128+(O[13]&254)/2,S&64?(s=(O[14]&14)*536870912+(O[15]&255)*4194304+(O[16]&254)*16384+(O[17]&255)*128+(O[18]&254)/2,h-s>60*9e4&&(c.logger.warn(Math.round((h-s)/9e4)+"s delta between PTS and DTS, align them"),h=s)):s=h),p=O[8];var I=p+9;if(E.size<=I)return null;E.size-=I;for(var C=new Uint8Array(E.size),W=0,Y=l.length;WH){I-=H;continue}else O=O.subarray(I),H-=I,I=0;C.set(O,v),v+=H}return A&&(A-=p+3),{data:C,pts:h,dts:s,len:A}}return null}function o(E,v){if(E.units.length&&E.frame){if(E.pts===void 0){var O=v.samples,A=O.length;if(A){var p=O[A-1];E.pts=p.pts,E.dts=p.dts}else{v.dropped++;return}}v.samples.push(E)}E.debug.length&&c.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function u(E,v){var O=E.length;if(O>0){if(v.pts>=E[O-1].pts)E.push(v);else for(var A=O-1;A>=0;A--)if(v.ptsh)return l;return 0}},{key:"maxAutoLevel",get:function(){var p=this.levels,h=this.autoLevelCapping,s;return h===-1&&p&&p.length?s=p.length-1:s=h,s}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(p){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,p)}},{key:"audioTracks",get:function(){var p=this.audioTrackController;return p?p.audioTracks:[]}},{key:"audioTrack",get:function(){var p=this.audioTrackController;return p?p.audioTrack:-1},set:function(p){var h=this.audioTrackController;h&&(h.audioTrack=p)}},{key:"subtitleTracks",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTrack:-1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleTrack=p)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var p=this.subtitleTrackController;return p?p.subtitleDisplay:!1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=p)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(p){this.config.lowLatencyMode=p}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return n.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:f.hlsDefaultConfig},set:function(p){v.defaultConfig=p}}]),v}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"isSupported",function(){return M}),k.d(K,"changeTypeSupported",function(){return j});var z=k("./src/utils/mediasource-helper.ts");function B(){return self.SourceBuffer||self.WebKitSourceBuffer}function M(){var U=Object(z.getMediaSource)();if(!U)return!1;var _=B(),R=U&&typeof U.isTypeSupported=="function"&&U.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),c=!_||_.prototype&&typeof _.prototype.appendBuffer=="function"&&typeof _.prototype.remove=="function";return!!R&&!!c}function j(){var U,_=B();return typeof(_==null||((U=_.prototype)===null||U===void 0)?void 0:U.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return y}),k.d(K,"LoadError",function(){return m});var z=k("./src/polyfills/number.ts"),B=k("./src/errors.ts");function M(a,n){a.prototype=Object.create(n.prototype),a.prototype.constructor=a,c(a,n)}function j(a){var n=typeof Map=="function"?new Map:void 0;return j=function(u){if(u===null||!R(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(u))return n.get(u);n.set(u,x)}function x(){return U(u,arguments,g(this).constructor)}return x.prototype=Object.create(u.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),c(x,u)},j(a)}function U(a,n,o){return _()?U=Reflect.construct:U=function(x,E,v){var O=[null];O.push.apply(O,E);var A=Function.bind.apply(x,O),p=new A;return v&&c(p,v.prototype),p},U.apply(null,arguments)}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function R(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function c(a,n){return c=Object.setPrototypeOf||function(u,x){return u.__proto__=x,u},c(a,n)}function g(a){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},g(a)}var w=Math.pow(2,17),y=function(){function a(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var n=a.prototype;return n.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},n.abort=function(){this.loader&&this.loader.abort()},n.load=function(u,x){var E=this,v=u.url;if(!v)return Promise.reject(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){E.loader&&E.loader.destroy();var l=E.loader=u.loader=A?new A(O):new p(O),D=f(u),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};u.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){E.resetLoader(u,l),h({frag:u,part:null,payload:I.data,networkDetails:Y})},onError:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:I,networkDetails:W}))},onAbort:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:W}))},onTimeout:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:W}))},onProgress:function(I,C,W,Y){x&&x({frag:u,part:null,payload:W,networkDetails:Y})}})})},n.loadPart=function(u,x,E){var v=this;this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){v.loader&&v.loader.destroy();var l=v.loader=u.loader=A?new A(O):new p(O),D=f(u,x),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};x.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){v.resetLoader(u,l),v.updateStatsFromPart(u,x);var H={frag:u,part:x,payload:I.data,networkDetails:Y};E(H),h(H)},onError:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:x,response:I,networkDetails:W}))},onAbort:function(I,C,W){u.stats.aborted=x.stats.aborted,v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:x,networkDetails:W}))},onTimeout:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:x,networkDetails:W}))}})})},n.updateStatsFromPart=function(u,x){var E=u.stats,v=x.stats,O=v.total;if(E.loaded+=v.loaded,O){var A=Math.round(u.duration/x.duration),p=Math.min(Math.round(E.loaded/O),A),h=A-p,s=h*Math.round(E.loaded/p);E.total=E.loaded+s}else E.total=Math.max(E.loaded,E.total);var l=E.loading,D=v.loading;l.start?l.first+=D.first-D.start:(l.start=D.start,l.first=D.first),l.end=D.end},n.resetLoader=function(u,x){u.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},a}();function f(a,n){n===void 0&&(n=null);var o=n||a,u={frag:a,part:n,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},x=o.byteRangeStartOffset,E=o.byteRangeEndOffset;return Object(z.isFiniteNumber)(x)&&Object(z.isFiniteNumber)(E)&&(u.rangeStart=x,u.rangeEnd=E),u}var m=function(a){M(n,a);function n(o){for(var u,x=arguments.length,E=new Array(x>1?x-1:0),v=1;v>8*(15-O)&255;return v},u.setDecryptDataFromLevelKey=function(E,v){var O=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(O=U.LevelKey.fromURI(E.uri),O.method=E.method,O.iv=this.createInitializationVector(v),O.keyFormat="identity"),O},u.setElementaryStreamInfo=function(E,v,O,A,p,h){h===void 0&&(h=!1);var s=this.elementaryStreams,l=s[E];if(!l){s[E]={startPTS:v,endPTS:O,startDTS:A,endDTS:p,partial:h};return}l.startPTS=Math.min(l.startPTS,v),l.endPTS=Math.max(l.endPTS,O),l.startDTS=Math.min(l.startDTS,A),l.endDTS=Math.max(l.endDTS,p)},u.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[y.AUDIO]=null,E[y.VIDEO]=null,E[y.AUDIOVIDEO]=null},w(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&j.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(z.isFiniteNumber)(this.programDateTime))return null;var E=Object(z.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),o}(f),a=function(n){R(o,n);function o(u,x,E,v,O){var A;A=n.call(this,E)||this,A.fragOffset=0,A.duration=0,A.gap=!1,A.independent=!1,A.relurl=void 0,A.fragment=void 0,A.index=void 0,A.stats=new _.LoadStats,A.duration=u.decimalFloatingPoint("DURATION"),A.gap=u.bool("GAP"),A.independent=u.bool("INDEPENDENT"),A.relurl=u.enumeratedString("URI"),A.fragment=x,A.index=v;var p=u.enumeratedString("BYTERANGE");return p&&A.setByteRange(p,O),O&&(A.fragOffset=O.fragOffset+O.duration),A}return w(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),o}(f)},"./src/loader/key-loader.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return j});var z=k("./src/events.ts"),B=k("./src/errors.ts"),M=k("./src/utils/logger.ts"),j=function(){function U(R){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=R,this._registerListeners()}var _=U.prototype;return _._registerListeners=function(){this.hls.on(z.Events.KEY_LOADING,this.onKeyLoading,this)},_._unregisterListeners=function(){this.hls.off(z.Events.KEY_LOADING,this.onKeyLoading)},_.destroy=function(){this._unregisterListeners();for(var c in this.loaders){var g=this.loaders[c];g&&g.destroy()}this.loaders={}},_.onKeyLoading=function(c,g){var w=g.frag,y=w.type,f=this.loaders[y];if(!w.decryptdata){M.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var m=w.decryptdata.uri;if(m!==this.decrypturl||this.decryptkey===null){var a=this.hls.config;if(f&&(M.logger.warn("abort previous key loader for type:"+y),f.abort()),!m){M.logger.warn("key uri is falsy");return}var n=a.loader,o=w.loader=this.loaders[y]=new n(a);this.decrypturl=m,this.decryptkey=null;var u={url:m,frag:w,responseType:"arraybuffer"},x={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(u,x,E)}else this.decryptkey&&(w.decryptdata.key=this.decryptkey,this.hls.trigger(z.Events.KEY_LOADED,{frag:w}))},_.loadsuccess=function(c,g,w){var y=w.frag;if(!y.decryptdata){M.logger.error("after key load, decryptdata unset");return}this.decryptkey=y.decryptdata.key=new Uint8Array(c.data),y.loader=null,delete this.loaders[y.type],this.hls.trigger(z.Events.KEY_LOADED,{frag:y})},_.loaderror=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:w,response:c})},_.loadtimeout=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:w})},U}()},"./src/loader/level-details.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"LevelDetails",function(){return U});var z=k("./src/polyfills/number.ts");function B(_,R){for(var c=0;cg.endSN||w>0||w===0&&y>0,this.updated||this.advanced?this.misses=Math.floor(g.misses*.6):this.misses=g.misses+1,this.availabilityDelay=g.availabilityDelay},M(_,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(z.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||j}},{key:"drift",get:function(){var g=this.driftEndTime-this.driftStartTime;if(g>0){var w=this.driftEnd-this.driftStart;return w*1e3/g}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var g;return(g=this.fragments)!==null&&g!==void 0&&g.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),_}()},"./src/loader/level-key.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"LevelKey",function(){return U});var z=k("./node_modules/url-toolkit/src/url-toolkit.js"),B=k.n(z);function M(_,R){for(var c=0;c2){var s=h.shift()+".";return s+=parseInt(h.shift()).toString(16),s+=("000"+parseInt(h.shift()).toString(16)).substr(-4),s}return p},O.resolve=function(p,h){return B.buildAbsoluteURL(h,p,{alwaysNormalize:!0})},O.parseMasterPlaylist=function(p,h){var s=[],l={},D=!1;w.lastIndex=0;for(var T;(T=w.exec(p))!=null;)if(T[1]){var S=new R.AttrList(T[1]),I={attrs:S,bitrate:S.decimalInteger("AVERAGE-BANDWIDTH")||S.decimalInteger("BANDWIDTH"),name:S.NAME,url:O.resolve(T[2],h)},C=S.decimalResolution("RESOLUTION");C&&(I.width=C.width,I.height=C.height),u((S.CODECS||"").split(/[ ,]+/).filter(function(Y){return Y}),I),I.videoCodec&&I.videoCodec.indexOf("avc1")!==-1&&(I.videoCodec=O.convertAVC1ToAVCOTI(I.videoCodec)),s.push(I)}else if(T[3]){var W=new R.AttrList(T[3]);W["DATA-ID"]&&(D=!0,l[W["DATA-ID"]]=W)}return{levels:s,sessionData:D?l:null}},O.parseMasterPlaylistMedia=function(p,h,s,l){l===void 0&&(l=[]);var D,T=[],S=0;for(y.lastIndex=0;(D=y.exec(p))!==null;){var I=new R.AttrList(D[1]);if(I.TYPE===s){var C={attrs:I,bitrate:0,id:S++,groupId:I["GROUP-ID"],instreamId:I["INSTREAM-ID"],name:I.NAME||I.LANGUAGE||"",type:s,default:I.bool("DEFAULT"),autoselect:I.bool("AUTOSELECT"),forced:I.bool("FORCED"),lang:I.LANGUAGE,url:I.URI?O.resolve(I.URI,h):""};if(l.length){var W=O.findGroup(l,C.groupId)||l[0];x(C,W,"audioCodec"),x(C,W,"textCodec")}T.push(C)}}return T},O.parseLevelPlaylist=function(p,h,s,l,D){var T=new U.LevelDetails(h),S=T.fragments,I=null,C=0,W=0,Y=0,H=0,F=null,q=new j.Fragment(l,h),le,pe,Ae,Ge=-1,Fe=!1;for(f.lastIndex=0,T.m3u8=p;(le=f.exec(p))!==null;){Fe&&(Fe=!1,q=new j.Fragment(l,h),q.start=Y,q.sn=C,q.cc=H,q.level=s,I&&(q.initSegment=I,q.rawProgramDateTime=I.rawProgramDateTime));var Ue=le[1];if(Ue){q.duration=parseFloat(Ue);var _e=(" "+le[2]).slice(1);q.title=_e||null,q.tagList.push(_e?["INF",Ue,_e]:["INF",Ue])}else if(le[3])Object(z.isFiniteNumber)(q.duration)&&(q.start=Y,Ae&&(q.levelkey=Ae),q.sn=C,q.level=s,q.cc=H,q.urlId=D,S.push(q),q.relurl=(" "+le[3]).slice(1),v(q,F),F=q,Y+=q.duration,C++,W=0,Fe=!0);else if(le[4]){var je=(" "+le[4]).slice(1);F?q.setByteRange(je,F):q.setByteRange(je)}else if(le[5])q.rawProgramDateTime=(" "+le[5]).slice(1),q.tagList.push(["PROGRAM-DATE-TIME",q.rawProgramDateTime]),Ge===-1&&(Ge=S.length);else{if(le=le[0].match(m),!le){c.logger.warn("No matches on slow regex match for level playlist!");continue}for(pe=1;pe-1){c.logger.warn("Keyformat "+yt+" is not supported from the manifest");continue}else if(yt!=="identity")continue;Me&&(Ae=_.LevelKey.fromURL(h,We),We&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Me)>=0&&(Ae.method=Me,Ae.keyFormat=yt,Ze&&(Ae.keyID=Ze),Qe&&(Ae.keyFormatVersions=Qe),Ae.iv=Ke));break}case"START":{var dt=new R.AttrList(he),pt=dt.decimalFloatingPoint("TIME-OFFSET");Object(z.isFiniteNumber)(pt)&&(T.startTimeOffset=pt);break}case"MAP":{var At=new R.AttrList(he);q.relurl=At.URI,At.BYTERANGE&&q.setByteRange(At.BYTERANGE),q.level=s,q.sn="initSegment",Ae&&(q.levelkey=Ae),q.initSegment=null,I=q,Fe=!0;break}case"SERVER-CONTROL":{var wt=new R.AttrList(he);T.canBlockReload=wt.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=wt.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&wt.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=wt.optionalFloat("PART-HOLD-BACK",0),T.holdBack=wt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new R.AttrList(he);T.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var we=T.partList;we||(we=T.partList=[]);var Je=W>0?we[we.length-1]:void 0,st=W++,He=new j.Part(new R.AttrList(he),q,h,st,Je);we.push(He),q.duration+=He.duration;break}case"PRELOAD-HINT":{var nt=new R.AttrList(he);T.preloadHint=nt;break}case"RENDITION-REPORT":{var Te=new R.AttrList(he);T.renditionReports=T.renditionReports||[],T.renditionReports.push(Te);break}default:c.logger.warn("line parsed but not handled: "+le);break}}}F&&!F.relurl?(S.pop(),Y-=F.duration,T.partList&&(T.fragmentHint=F)):T.partList&&(v(q,F),q.cc=H,T.fragmentHint=q);var ge=S.length,be=S[0],re=S[ge-1];if(Y+=T.skippedSegments*T.targetduration,Y>0&&ge&&re){T.averagetargetduration=Y/ge;var ie=re.sn;T.endSN=ie!=="initSegment"?ie:0,be&&(T.startCC=be.cc,be.initSegment||T.fragments.every(function(ce){return ce.relurl&&n(ce.relurl)})&&(c.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),q=new j.Fragment(l,h),q.relurl=re.relurl,q.level=s,q.sn="initSegment",be.initSegment=q,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(Y+=T.fragmentHint.duration),T.totalduration=Y,T.endCC=H,Ge>0&&E(S,Ge),T},O}();function u(O,A){["video","audio","text"].forEach(function(p){var h=O.filter(function(l){return Object(g.isCodecType)(l,p)});if(h.length){var s=h.filter(function(l){return l.lastIndexOf("avc1",0)===0||l.lastIndexOf("mp4a",0)===0});A[p+"Codec"]=s.length>0?s[0]:h[0],O=O.filter(function(l){return h.indexOf(l)===-1})}}),A.unknownCodecs=O}function x(O,A,p){var h=A[p];h&&(O[p]=h)}function E(O,A){for(var p=O[A],h=A;h--;){var s=O[h];if(!s)return;s.programDateTime=p.programDateTime-s.duration*1e3,p=s}}function v(O,A){O.rawProgramDateTime?O.programDateTime=Date.parse(O.rawProgramDateTime):A!=null&&A.programDateTime&&(O.programDateTime=A.endProgramDateTime),Object(z.isFiniteNumber)(O.programDateTime)||(O.programDateTime=null,O.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/polyfills/number.ts"),B=k("./src/events.ts"),M=k("./src/errors.ts"),j=k("./src/utils/logger.ts"),U=k("./src/utils/mp4-tools.ts"),_=k("./src/loader/m3u8-parser.ts"),R=k("./src/types/loader.ts"),c=k("./src/utils/attr-list.ts");function g(f){var m=f.type;switch(m){case R.PlaylistContextType.AUDIO_TRACK:return R.PlaylistLevelType.AUDIO;case R.PlaylistContextType.SUBTITLE_TRACK:return R.PlaylistLevelType.SUBTITLE;default:return R.PlaylistLevelType.MAIN}}function w(f,m){var a=f.url;return(a===void 0||a.indexOf("data:")===0)&&(a=m.url),a}var y=function(){function f(a){this.hls=void 0,this.loaders=Object.create(null),this.hls=a,this.registerListeners()}var m=f.prototype;return m.registerListeners=function(){var n=this.hls;n.on(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.on(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.on(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.off(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.off(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.off(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.createInternalLoader=function(n){var o=this.hls.config,u=o.pLoader,x=o.loader,E=u||x,v=new E(o);return n.loader=v,this.loaders[n.type]=v,v},m.getInternalLoader=function(n){return this.loaders[n.type]},m.resetInternalLoader=function(n){this.loaders[n]&&delete this.loaders[n]},m.destroyInternalLoaders=function(){for(var n in this.loaders){var o=this.loaders[n];o&&o.destroy(),this.resetInternalLoader(n)}},m.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},m.onManifestLoading=function(n,o){var u=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:R.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},m.onLevelLoading=function(n,o){var u=o.id,x=o.level,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:null,level:x,responseType:"text",type:R.PlaylistContextType.LEVEL,url:E,deliveryDirectives:v})},m.onAudioTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:v})},m.onSubtitleTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:v})},m.load=function(n){var o,u=this.hls.config,x=this.getInternalLoader(n);if(x){var E=x.context;if(E&&E.url===n.url){j.logger.trace("[playlist-loader]: playlist request ongoing");return}j.logger.log("[playlist-loader]: aborting previous loader for type: "+n.type),x.abort()}var v,O,A,p;switch(n.type){case R.PlaylistContextType.MANIFEST:v=u.manifestLoadingMaxRetry,O=u.manifestLoadingTimeOut,A=u.manifestLoadingRetryDelay,p=u.manifestLoadingMaxRetryTimeout;break;case R.PlaylistContextType.LEVEL:case R.PlaylistContextType.AUDIO_TRACK:case R.PlaylistContextType.SUBTITLE_TRACK:v=0,O=u.levelLoadingTimeOut;break;default:v=u.levelLoadingMaxRetry,O=u.levelLoadingTimeOut,A=u.levelLoadingRetryDelay,p=u.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(n),(o=n.deliveryDirectives)!==null&&o!==void 0&&o.part){var h;if(n.type===R.PlaylistContextType.LEVEL&&n.level!==null?h=this.hls.levels[n.level].details:n.type===R.PlaylistContextType.AUDIO_TRACK&&n.id!==null?h=this.hls.audioTracks[n.id].details:n.type===R.PlaylistContextType.SUBTITLE_TRACK&&n.id!==null&&(h=this.hls.subtitleTracks[n.id].details),h){var s=h.partTarget,l=h.targetduration;s&&l&&(O=Math.min(Math.max(s*3,l*.8)*1e3,O))}}var D={timeout:O,maxRetry:v,retryDelay:A,maxRetryDelay:p,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(n,D,T)},m.loadsuccess=function(n,o,u,x){if(x===void 0&&(x=null),u.isSidxRequest){this.handleSidxRequest(n,u),this.handlePlaylistLoaded(n,o,u,x);return}this.resetInternalLoader(u.type);var E=n.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(n,u,"no EXTM3U delimiter",x);return}o.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(n,o,u,x):this.handleMasterPlaylist(n,o,u,x)},m.loaderror=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!1,n)},m.loadtimeout=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!0)},m.handleMasterPlaylist=function(n,o,u,x){var E=this.hls,v=n.data,O=w(n,u),A=_.default.parseMasterPlaylist(v,O),p=A.levels,h=A.sessionData;if(!p.length){this.handleManifestParsingError(n,u,"no level found in manifest",x);return}var s=p.map(function(C){return{id:C.attrs.AUDIO,audioCodec:C.audioCodec}}),l=p.map(function(C){return{id:C.attrs.SUBTITLES,textCodec:C.textCodec}}),D=_.default.parseMasterPlaylistMedia(v,O,"AUDIO",s),T=_.default.parseMasterPlaylistMedia(v,O,"SUBTITLES",l),S=_.default.parseMasterPlaylistMedia(v,O,"CLOSED-CAPTIONS");if(D.length){var I=D.some(function(C){return!C.url});!I&&p[0].audioCodec&&!p[0].attrs.AUDIO&&(j.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new c.AttrList({}),bitrate:0,url:""}))}E.trigger(B.Events.MANIFEST_LOADED,{levels:p,audioTracks:D,subtitles:T,captions:S,url:O,stats:o,networkDetails:x,sessionData:h})},m.handleTrackOrLevelPlaylist=function(n,o,u,x){var E=this.hls,v=u.id,O=u.level,A=u.type,p=w(n,u),h=Object(z.isFiniteNumber)(v)?v:0,s=Object(z.isFiniteNumber)(O)?O:h,l=g(u),D=_.default.parseLevelPlaylist(n.data,p,s,l,h);if(!D.fragments.length){E.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:p,reason:"no fragments found in level",level:typeof u.level=="number"?u.level:void 0});return}if(A===R.PlaylistContextType.MANIFEST){var T={attrs:new c.AttrList({}),bitrate:0,details:D,name:"",url:p};E.trigger(B.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:p,stats:o,networkDetails:x,sessionData:null})}if(o.parsing.end=performance.now(),D.needSidxRanges){var S,I=(S=D.fragments[0].initSegment)===null||S===void 0?void 0:S.url;this.load({url:I,isSidxRequest:!0,type:A,level:O,levelDetails:D,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=D,this.handlePlaylistLoaded(n,o,u,x)},m.handleSidxRequest=function(n,o){var u=Object(U.parseSegmentIndex)(new Uint8Array(n.data));if(!u)return;var x=u.references,E=o.levelDetails;x.forEach(function(v,O){var A=v.info,p=E.fragments[O];p.byteRange.length===0&&p.setByteRange(String(1+A.end-A.start)+"@"+String(A.start)),p.initSegment&&p.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},m.handleManifestParsingError=function(n,o,u,x){this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===R.PlaylistContextType.MANIFEST,url:n.url,reason:u,response:n,context:o,networkDetails:x})},m.handleNetworkError=function(n,o,u,x){u===void 0&&(u=!1),j.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+n.type+" level: "+n.level+" id: "+n.id+' group-id: "'+n.groupId+'"');var E=M.ErrorDetails.UNKNOWN,v=!1,O=this.getInternalLoader(n);switch(n.type){case R.PlaylistContextType.MANIFEST:E=u?M.ErrorDetails.MANIFEST_LOAD_TIMEOUT:M.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case R.PlaylistContextType.LEVEL:E=u?M.ErrorDetails.LEVEL_LOAD_TIMEOUT:M.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.AUDIO_TRACK:E=u?M.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:M.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.SUBTITLE_TRACK:E=u?M.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:M.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}O&&this.resetInternalLoader(n.type);var A={type:M.ErrorTypes.NETWORK_ERROR,details:E,fatal:v,url:n.url,loader:O,context:n,networkDetails:o};x&&(A.response=x),this.hls.trigger(B.Events.ERROR,A)},m.handlePlaylistLoaded=function(n,o,u,x){var E=u.type,v=u.level,O=u.id,A=u.groupId,p=u.loader,h=u.levelDetails,s=u.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(n,u,"invalid target duration",x);return}if(!p)return;h.live&&(p.getCacheAge&&(h.ageHeader=p.getCacheAge()||0),(!p.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(E){case R.PlaylistContextType.MANIFEST:case R.PlaylistContextType.LEVEL:this.hls.trigger(B.Events.LEVEL_LOADED,{details:h,level:v||0,id:O||0,stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(B.Events.AUDIO_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(B.Events.SUBTITLE_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break}},f}();K.default=y},"./src/polyfills/number.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"isFiniteNumber",function(){return z}),k.d(K,"MAX_SAFE_INTEGER",function(){return B});var z=Number.isFinite||function(M){return typeof M=="number"&&isFinite(M)},B=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ee,K,k){"use strict";k.r(K);var z=function(){function B(){}return B.getSilentFrame=function(j,U){switch(j){case"mp4a.40.2":if(U===1)return new Uint8Array([0,200,0,128,35,128]);if(U===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(U===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(U===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(U===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(U===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(U===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},B}();K.default=z},"./src/remux/mp4-generator.ts":function(ee,K,k){"use strict";k.r(K);var z=Math.pow(2,32)-1,B=function(){function M(){}return M.init=function(){M.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var U;for(U in M.types)M.types.hasOwnProperty(U)&&(M.types[U]=[U.charCodeAt(0),U.charCodeAt(1),U.charCodeAt(2),U.charCodeAt(3)]);var _=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),R=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);M.HDLR_TYPES={video:_,audio:R};var c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),g=new Uint8Array([0,0,0,0,0,0,0,0]);M.STTS=M.STSC=M.STCO=g,M.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),M.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),M.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),M.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var w=new Uint8Array([105,115,111,109]),y=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);M.FTYP=M.box(M.types.ftyp,w,f,w,y),M.DINF=M.box(M.types.dinf,M.box(M.types.dref,c))},M.box=function(U){for(var _=8,R=arguments.length,c=new Array(R>1?R-1:0),g=1;g>24&255,f[1]=_>>16&255,f[2]=_>>8&255,f[3]=_&255,f.set(U,4),w=0,_=8;w>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,85,196,0,0]))},M.mdia=function(U){return M.box(M.types.mdia,M.mdhd(U.timescale,U.duration),M.hdlr(U.type),M.minf(U))},M.mfhd=function(U){return M.box(M.types.mfhd,new Uint8Array([0,0,0,0,U>>24,U>>16&255,U>>8&255,U&255]))},M.minf=function(U){return U.type==="audio"?M.box(M.types.minf,M.box(M.types.smhd,M.SMHD),M.DINF,M.stbl(U)):M.box(M.types.minf,M.box(M.types.vmhd,M.VMHD),M.DINF,M.stbl(U))},M.moof=function(U,_,R){return M.box(M.types.moof,M.mfhd(U),M.traf(R,_))},M.moov=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trak(U[_]);return M.box.apply(null,[M.types.moov,M.mvhd(U[0].timescale,U[0].duration)].concat(R).concat(M.mvex(U)))},M.mvex=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trex(U[_]);return M.box.apply(null,[M.types.mvex].concat(R))},M.mvhd=function(U,_){_*=U;var R=Math.floor(_/(z+1)),c=Math.floor(_%(z+1)),g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,U>>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return M.box(M.types.mvhd,g)},M.sdtp=function(U){var _=U.samples||[],R=new Uint8Array(4+_.length),c,g;for(c=0;c<_.length;c++)g=_[c].flags,R[c+4]=g.dependsOn<<4|g.isDependedOn<<2|g.hasRedundancy;return M.box(M.types.sdtp,R)},M.stbl=function(U){return M.box(M.types.stbl,M.stsd(U),M.box(M.types.stts,M.STTS),M.box(M.types.stsc,M.STSC),M.box(M.types.stsz,M.STSZ),M.box(M.types.stco,M.STCO))},M.avc1=function(U){var _=[],R=[],c,g,w;for(c=0;c>>8&255),_.push(w&255),_=_.concat(Array.prototype.slice.call(g));for(c=0;c>>8&255),R.push(w&255),R=R.concat(Array.prototype.slice.call(g));var y=M.box(M.types.avcC,new Uint8Array([1,_[3],_[4],_[5],252|3,224|U.sps.length].concat(_).concat([U.pps.length]).concat(R))),f=U.width,m=U.height,a=U.pixelRatio[0],n=U.pixelRatio[1];return M.box(M.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,f>>8&255,f&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),y,M.box(M.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),M.box(M.types.pasp,new Uint8Array([a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255])))},M.esds=function(U){var _=U.config.length;return new Uint8Array([0,0,0,0,3,23+_,0,1,0,4,15+_,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([_]).concat(U.config).concat([6,1,2]))},M.mp4a=function(U){var _=U.samplerate;return M.box(M.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]),M.box(M.types.esds,M.esds(U)))},M.mp3=function(U){var _=U.samplerate;return M.box(M.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]))},M.stsd=function(U){return U.type==="audio"?!U.isAAC&&U.codec==="mp3"?M.box(M.types.stsd,M.STSD,M.mp3(U)):M.box(M.types.stsd,M.STSD,M.mp4a(U)):M.box(M.types.stsd,M.STSD,M.avc1(U))},M.tkhd=function(U){var _=U.id,R=U.duration*U.timescale,c=U.width,g=U.height,w=Math.floor(R/(z+1)),y=Math.floor(R%(z+1));return M.box(M.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,_>>24&255,_>>16&255,_>>8&255,_&255,0,0,0,0,w>>24,w>>16&255,w>>8&255,w&255,y>>24,y>>16&255,y>>8&255,y&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,c>>8&255,c&255,0,0,g>>8&255,g&255,0,0]))},M.traf=function(U,_){var R=M.sdtp(U),c=U.id,g=Math.floor(_/(z+1)),w=Math.floor(_%(z+1));return M.box(M.types.traf,M.box(M.types.tfhd,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255])),M.box(M.types.tfdt,new Uint8Array([1,0,0,0,g>>24,g>>16&255,g>>8&255,g&255,w>>24,w>>16&255,w>>8&255,w&255])),M.trun(U,R.length+16+20+8+16+8+8),R)},M.trak=function(U){return U.duration=U.duration||4294967295,M.box(M.types.trak,M.tkhd(U),M.mdia(U))},M.trex=function(U){var _=U.id;return M.box(M.types.trex,new Uint8Array([0,0,0,0,_>>24,_>>16&255,_>>8&255,_&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},M.trun=function(U,_){var R=U.samples||[],c=R.length,g=12+16*c,w=new Uint8Array(g),y,f,m,a,n,o;for(_+=8+g,w.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,c&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255],0),y=0;y>>24&255,m>>>16&255,m>>>8&255,m&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n.isLeading<<2|n.dependsOn,n.isDependedOn<<6|n.hasRedundancy<<4|n.paddingValue<<1|n.isNonSync,n.degradPrio&240<<8,n.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*y);return M.box(M.types.trun,w)},M.initSegment=function(U){M.types||M.init();var _=M.moov(U),R=new Uint8Array(M.FTYP.byteLength+_.byteLength);return R.set(M.FTYP),R.set(_,M.FTYP.byteLength),R},M}();B.types=void 0,B.HDLR_TYPES=void 0,B.STTS=void 0,B.STSC=void 0,B.STCO=void 0,B.STSZ=void 0,B.VMHD=void 0,B.SMHD=void 0,B.STSD=void 0,B.FTYP=void 0,B.DINF=void 0,K.default=B},"./src/remux/mp4-remuxer.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return o}),k.d(K,"normalizePts",function(){return u});var z=k("./src/polyfills/number.ts"),B=k("./src/remux/aac-helper.ts"),M=k("./src/remux/mp4-generator.ts"),j=k("./src/events.ts"),U=k("./src/errors.ts"),_=k("./src/utils/logger.ts"),R=k("./src/types/loader.ts"),c=k("./src/utils/timescale-conversion.ts");function g(){return g=Object.assign||function(O){for(var A=1;A0?D:T.pts},h[0].pts);return s&&_.logger.debug("PTS rollover detected"),l},A.remux=function(h,s,l,D,T,S,I,C){var W,Y,H,F,q,le,pe=T,Ae=T,Ge=h.pid>-1,Fe=s.pid>-1,Ue=s.samples.length,_e=h.samples.length>0,je=Ue>1,xe=(!Ge||_e)&&(!Fe||je)||this.ISGenerated||I;if(xe){this.ISGenerated||(H=this.generateIS(h,s,T));var he=this.isVideoContiguous,te=-1;if(je&&(te=x(s.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if(le=!0,te>0){_.logger.warn("[mp4-remuxer]: Dropped "+te+" out of "+Ue+" video samples due to a missing keyframe");var ye=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(te),s.dropped+=te,Ae+=(s.samples[0].pts-ye)/(s.timescale||9e4)}else te===-1&&(_.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ue+" video samples"),le=!1);if(this.ISGenerated){if(_e&&je){var ue=this.getVideoStartPts(s.samples),Le=u(h.samples[0].pts,ue)-ue,ae=Le/s.inputTimeScale;pe+=Math.max(0,ae),Ae+=Math.max(0,-ae)}if(_e){if(h.samplerate||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),H=this.generateIS(h,s,T)),Y=this.remuxAudio(h,pe,this.isAudioContiguous,S,Fe||je||C===R.PlaylistLevelType.AUDIO?Ae:void 0),je){var oe=Y?Y.endPTS-Y.startPTS:0;s.inputTimeScale||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),H=this.generateIS(h,s,T)),W=this.remuxVideo(s,Ae,he,oe)}}else je&&(W=this.remuxVideo(s,Ae,he,0));W&&(W.firstKeyFrame=te,W.independent=te!==-1)}}return this.ISGenerated&&(l.samples.length&&(q=this.remuxID3(l,T)),D.samples.length&&(F=this.remuxText(D,T))),{audio:Y,video:W,initSegment:H,independent:le,text:F,id3:q}},A.generateIS=function(h,s,l){var D=h.samples,T=s.samples,S=this.typeSupported,I={},C=!Object(z.isFiniteNumber)(this._initPTS),W="audio/mp4",Y,H,F;if(C&&(Y=H=Infinity),h.config&&D.length&&(h.timescale=h.samplerate,h.isAAC||(S.mpeg?(W="audio/mpeg",h.codec=""):S.mp3&&(h.codec="mp3")),I.audio={id:"audio",container:W,codec:h.codec,initSegment:!h.isAAC&&S.mpeg?new Uint8Array(0):M.default.initSegment([h]),metadata:{channelCount:h.channelCount}},C&&(F=h.inputTimeScale,Y=H=D[0].pts-Math.round(F*l))),s.sps&&s.pps&&T.length&&(s.timescale=s.inputTimeScale,I.video={id:"main",container:"video/mp4",codec:s.codec,initSegment:M.default.initSegment([s]),metadata:{width:s.width,height:s.height}},C)){F=s.inputTimeScale;var q=this.getVideoStartPts(T),le=Math.round(F*l);H=Math.min(H,u(T[0].dts,q)-le),Y=Math.min(Y,q-le)}if(Object.keys(I).length)return this.ISGenerated=!0,C&&(this._initPTS=Y,this._initDTS=H),{tracks:I,initPTS:Y,timescale:F}},A.remuxVideo=function(h,s,l,D){var T=h.inputTimeScale,S=h.samples,I=[],C=S.length,W=this._initPTS,Y=this.nextAvcDts,H=8,F,q,le,pe=Number.POSITIVE_INFINITY,Ae=Number.NEGATIVE_INFINITY,Ge=0,Fe=!1;if(!l||Y===null){var Ue=s*T,_e=S[0].pts-u(S[0].dts,S[0].pts);Y=Ue-_e}for(var je=0;jexe.pts){var he=9e4*.2;Ge=Math.max(Math.min(Ge,xe.pts-xe.dts),-1*he)}xe.dts0?je-1:je].dts&&(Fe=!0)}Fe&&S.sort(function(gt,qe){var Xe=gt.dts-qe.dts,ke=gt.pts-qe.pts;return Xe||ke}),q=S[0].dts,le=S[S.length-1].dts;var te=Math.round((le-q)/(C-1));if(Ge<0){if(Gete,Se=ae<-1;if(oe||Se){oe?_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms ("+ae+"dts) hole between fragments detected, filling it"):_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(-ae,!0)+" ms ("+ae+"dts) overlapping between fragments detected"),q=Y;var Me=S[0].pts-ae;S[0].dts=q,S[0].pts=Me,_.logger.log("Video: First PTS/DTS adjusted: "+Object(c.toMsFromMpegTsClock)(Me,!0)+"/"+Object(c.toMsFromMpegTsClock)(q,!0)+", delta: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms")}}n&&(q=Math.max(0,q));for(var We=0,Ke=0,Qe=0;Qe0?we-1:we].dts;if(ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ee=Math.floor(ie.maxBufferHole*T),Be=(D?pe+D*T:this.nextAudioPts)-Je.pts;Be>Ee?(F=Be-ce,F<0&&(F=ce),_.logger.log("[mp4-remuxer]: It is approximately "+Be/90+" ms to the next segment; using duration "+F/90+" ms for the last video frame.")):F=ce}else F=ce}var Ie=Math.round(Je.pts-Je.dts);I.push(new E(Je.key,F,He,Ie))}if(I.length&&m&&m<70){var ut=I[0].flags;ut.dependsOn=2,ut.isNonSync=0}console.assert(F!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=Y=le+F,this.isVideoContiguous=!0;var bt=M.default.moof(h.sequenceNumber++,q,g({},h,{samples:I})),Tt="video",xt={data1:bt,data2:wt,startPTS:pe/T,endPTS:(Ae+F)/T,startDTS:q/T,endDTS:Y/T,type:Tt,hasAudio:!1,hasVideo:!0,nb:I.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(wt.length,"MDAT length must not be zero"),xt},A.remuxAudio=function(h,s,l,D,T){var S=h.inputTimeScale,I=h.samplerate?h.samplerate:S,C=S/I,W=h.isAAC?y:f,Y=W*C,H=this._initPTS,F=!h.isAAC&&this.typeSupported.mpeg,q=[],le=h.samples,pe=F?0:8,Ae=this.nextAudioPts||-1,Ge=s*S;if(this.isAudioContiguous=l=l||le.length&&Ae>0&&(D&&Math.abs(Ge-Ae)<9e3||Math.abs(u(le[0].pts-H,Ge)-Ae)<20*Y),le.forEach(function(be){be.pts=u(be.pts-H,Ge)}),!l||Ae<0){if(le=le.filter(function(be){return be.pts>=0}),!le.length)return;T===0?Ae=0:D?Ae=Math.max(0,Ge):Ae=le[0].pts}if(h.isAAC)for(var Fe=T!==void 0,Ue=this.config.maxAudioFramesDrift,_e=0,je=Ae;_e=Ue*Y&&ye0){Ke+=pe;try{We=new Uint8Array(Ke)}catch(be){this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:U.ErrorTypes.MUX_ERROR,details:U.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ke,reason:"fail allocating audio mdat "+Ke});return}if(!F){var wt=new DataView(We.buffer);wt.setUint32(0,Ke),We.set(M.default.types.mdat,4)}}else return;We.set(dt,pe);var Oe=dt.byteLength;pe+=Oe,q.push(new E(!0,W,Oe,0)),Me=pt}var we=q.length;if(!we)return;var Je=q[q.length-1];this.nextAudioPts=Ae=Me+C*Je.duration;var st=F?new Uint8Array(0):M.default.moof(h.sequenceNumber++,Se/C,g({},h,{samples:q}));h.samples=[];var He=Se/S,nt=Ae/S,Te="audio",ge={data1:st,data2:We,startPTS:He,endPTS:nt,startDTS:He,endDTS:nt,type:Te,hasAudio:!0,hasVideo:!1,nb:we};return this.isAudioContiguous=!0,console.assert(We.length,"MDAT length must not be zero"),ge},A.remuxEmptyAudio=function(h,s,l,D){var T=h.inputTimeScale,S=h.samplerate?h.samplerate:T,I=T/S,C=this.nextAudioPts,W=(C!==null?C:D.startDTS*T)+this._initDTS,Y=D.endDTS*T+this._initDTS,H=I*y,F=Math.ceil((Y-W)/H),q=B.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(_.logger.warn("[mp4-remuxer]: remux empty Audio"),!q){_.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var le=[],pe=0;pe4294967296;)O+=p;return O}function x(O){for(var A=0;A0?this.lastEndDTS=h:(j.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!O.audio,l=!!O.video,D="";s&&(D+="audio"),l&&(D+="video");var T={data1:E,startPTS:p,startDTS:p,endPTS:h,endDTS:h,type:D,hasAudio:s,hasVideo:l,nb:1,dropped:0};return x.audio=T.type==="audio"?T:void 0,x.video=T.type!=="audio"?T:void 0,x.text=a,x.id3=m,x.initSegment=v,x},c}(),_=function(g,w,y){return Object(B.getStartDTS)(g,w)-y};function R(c,g){var w=c==null?void 0:c.codec;return w&&w.length>4?w:w==="hvc1"?"hvc1.1.c.L120.90":w==="av01"?"av01.0.04M.08":w==="avc1"||g===M.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}K.default=U},"./src/task-loop.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"default",function(){return z});var z=function(){function B(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var M=B.prototype;return M.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},M.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},M.onHandlerDestroyed=function(){},M.hasInterval=function(){return!!this._tickInterval},M.hasNextTick=function(){return!!this._tickTimer},M.setInterval=function(U){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,U),!0)},M.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},M.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},M.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},M.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},M.doTick=function(){},B}()},"./src/types/cmcd.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"CMCDVersion",function(){return z}),k.d(K,"CMCDObjectType",function(){return B}),k.d(K,"CMCDStreamingFormat",function(){return M}),k.d(K,"CMCDStreamType",function(){return j});var z=1,B;(function(U){U.MANIFEST="m",U.AUDIO="a",U.VIDEO="v",U.MUXED="av",U.INIT="i",U.CAPTION="c",U.TIMED_TEXT="tt",U.KEY="k",U.OTHER="o"})(B||(B={}));var M;(function(U){U.DASH="d",U.HLS="h",U.SMOOTH="s",U.OTHER="o"})(M||(M={}));var j;(function(U){U.VOD="v",U.LIVE="l"})(j||(j={}))},"./src/types/level.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"HlsSkip",function(){return M}),k.d(K,"getSkipValue",function(){return j}),k.d(K,"HlsUrlParameters",function(){return U}),k.d(K,"Level",function(){return _});function z(R,c){for(var g=0;gNumber.MAX_SAFE_INTEGER?Infinity:c},U.hexadecimalInteger=function(R){if(this[R]){var c=(this[R]||"0x").slice(2);c=(c.length&1?"0":"")+c;for(var g=new Uint8Array(c.length/2),w=0;wNumber.MAX_SAFE_INTEGER?Infinity:c},U.decimalFloatingPoint=function(R){return parseFloat(this[R])},U.optionalFloat=function(R,c){var g=this[R];return g?parseFloat(g):c},U.enumeratedString=function(R){return this[R]},U.bool=function(R){return this[R]==="YES"},U.decimalResolution=function(R){var c=z.exec(this[R]);return c===null?void 0:{width:parseInt(c[1],10),height:parseInt(c[2],10)}},j.parseAttrList=function(R){var c,g={},w='"';for(B.lastIndex=0;(c=B.exec(R))!==null;){var y=c[2];y.indexOf(w)===0&&y.lastIndexOf(w)===y.length-1&&(y=y.slice(1,-1)),g[c[1]]=y}return g},j}()},"./src/utils/binary-search.ts":function(ee,K,k){"use strict";k.r(K);var z={search:function(M,j){for(var U=0,_=M.length-1,R=null,c=null;U<=_;){R=(U+_)/2|0,c=M[R];var g=j(c);if(g>0)U=R+1;else if(g<0)_=R-1;else return c}return null}};K.default=z},"./src/utils/buffer-helper.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"BufferHelper",function(){return M});var z=k("./src/utils/logger.ts"),B={length:0,start:function(){return 0},end:function(){return 0}},M=function(){function j(){}return j.isBuffered=function(_,R){try{if(_){for(var c=j.getBuffered(_),g=0;g=c.start(g)&&R<=c.end(g))return!0}}catch(w){}return!1},j.bufferInfo=function(_,R,c){try{if(_){var g=j.getBuffered(_),w=[],y;for(y=0;yf&&(g[y-1].end=_[w].end):g.push(_[w])}else g.push(_[w])}else g=_;for(var m=0,a,n=R,o=R,u=0;u=x&&R=l&&z.logger.log(this.time+" ["+l+"] "+D)},p}(),m=function(h){for(var s=[],l=0;lU&&(this.logger.log(y.DEBUG,"Too large cursor position "+this.pos),this.pos=U)},h.moveCursor=function(l){var D=this.pos+l;if(l>1)for(var T=this.pos+1;T=144&&this.backSpace();var D=M(l);if(this.pos>=U){this.logger.log(y.ERROR,"Cannot insert "+l.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(l){var D;for(D=l;D0&&(l?T="["+D.join(" | ")+"]":T=D.join(` -`)),T},h.getTextAndFormat=function(){return this.rows},p}(),x=function(){function p(s,l,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=s,this.outputFilter=l,this.mode=null,this.verbose=0,this.displayedMemory=new u(D),this.nonDisplayedMemory=new u(D),this.lastOutputScreen=new u(D),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var h=p.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(l){this.outputFilter=l},h.setPAC=function(l){this.writeScreen.setPAC(l)},h.setBkgData=function(l){this.writeScreen.setBkgData(l)},h.setMode=function(l){if(l===this.mode)return;this.mode=l,this.logger.log(y.INFO,"MODE="+l),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=l},h.insertChars=function(l){for(var D=0;D=46,D.italics)D.foreground="white";else{var T=Math.floor(l/2)-16,S=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=S[T]}this.logger.log(y.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},h.outputDataUpdate=function(l){l===void 0&&(l=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),l&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(l){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,l,this.displayedMemory),this.cueStartTime=l))},p}(),E=function(){function p(s,l,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new f;this.channels=[null,new x(s,l,T),new x(s+1,D,T)],this.cmdHistory=A(),this.logger=T}var h=p.prototype;return h.getHandler=function(l){return this.channels[l].getHandler()},h.setHandler=function(l,D){this.channels[l].setHandler(D)},h.addData=function(l,D){var T,S,I,C=!1;this.logger.time=l;for(var W=0;W ("+m([S,I])+")"),T=this.parseCmd(S,I),T||(T=this.parseMidrow(S,I)),T||(T=this.parsePAC(S,I)),T||(T=this.parseBackgroundAttributes(S,I)),!T&&(C=this.parseChars(S,I),C)){var Y=this.currentChannel;if(Y&&Y>0){var H=this.channels[Y];H.insertChars(C)}else this.logger.log(y.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!C&&this.logger.log(y.WARNING,"Couldn't parse cleaned data "+m([S,I])+" orig: "+m([D[W],D[W+1]]))}},h.parseCmd=function(l,D){var T=this.cmdHistory,S=(l===20||l===28||l===21||l===29)&&D>=32&&D<=47,I=(l===23||l===31)&&D>=33&&D<=35;if(!(S||I))return!1;if(O(l,D,T))return v(null,null,T),this.logger.log(y.DEBUG,"Repeated command ("+m([l,D])+") is dropped"),!0;var C=l===20||l===21||l===23?1:2,W=this.channels[C];return l===20||l===21||l===28||l===29?D===32?W.ccRCL():D===33?W.ccBS():D===34?W.ccAOF():D===35?W.ccAON():D===36?W.ccDER():D===37?W.ccRU(2):D===38?W.ccRU(3):D===39?W.ccRU(4):D===40?W.ccFON():D===41?W.ccRDC():D===42?W.ccTR():D===43?W.ccRTD():D===44?W.ccEDM():D===45?W.ccCR():D===46?W.ccENM():D===47&&W.ccEOC():W.ccTO(D-32),v(l,D,T),this.currentChannel=C,!0},h.parseMidrow=function(l,D){var T=0;if((l===17||l===25)&&D>=32&&D<=47){if(l===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(y.ERROR,"Mismatch channel in midrow parsing"),!1;var S=this.channels[T];return S?(S.ccMIDROW(D),this.logger.log(y.DEBUG,"MIDROW ("+m([l,D])+")"),!0):!1}return!1},h.parsePAC=function(l,D){var T,S=this.cmdHistory,I=(l>=17&&l<=23||l>=25&&l<=31)&&D>=64&&D<=127,C=(l===16||l===24)&&D>=64&&D<=95;if(!(I||C))return!1;if(O(l,D,S))return v(null,null,S),!0;var W=l<=23?1:2;D>=64&&D<=95?T=W===1?_[l]:c[l]:T=W===1?R[l]:g[l];var Y=this.channels[W];return Y?(Y.setPAC(this.interpretPAC(T,D)),v(l,D,S),this.currentChannel=W,!0):!1},h.interpretPAC=function(l,D){var T,S={color:null,italics:!1,indent:null,underline:!1,row:l};return D>95?T=D-96:T=D-64,S.underline=(T&1)===1,T<=13?S.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(S.italics=!0,S.color="white"):S.indent=Math.floor((T-16)/2)*4,S},h.parseChars=function(l,D){var T,S=null,I=null;if(l>=25?(T=2,I=l-8):(T=1,I=l),I>=17&&I<=19){var C;I===17?C=D+80:I===18?C=D+112:C=D+144,this.logger.log(y.INFO,"Special char '"+M(C)+"' in channel "+T),S=[C]}else l>=32&&l<=127&&(S=D===0?[l]:[l,D]);if(S){var W=m(S);this.logger.log(y.DEBUG,"Char codes = "+W.join(",")),v(l,D,this.cmdHistory)}return S},h.parseBackgroundAttributes=function(l,D){var T=(l===16||l===24)&&D>=32&&D<=47,S=(l===23||l===31)&&D>=45&&D<=47;if(!(T||S))return!1;var I,C={};l===16||l===24?(I=Math.floor((D-32)/2),C.background=w[I],D%2===1&&(C.background=C.background+"_semi")):D===45?C.background="transparent":(C.foreground="black",D===47&&(C.underline=!0));var W=l<=23?1:2,Y=this.channels[W];return Y.setBkgData(C),v(l,D,this.cmdHistory),!0},h.reset=function(){for(var l=0;l=16?n--:n++;var v=Object(z.fixLineBreaks)(o.trim()),O=Object(B.generateCueId)(c,g,v);(!R||!R.cues||!R.cues.getCueById(O))&&(m=new u(c,g,v),m.id=O,m.line=x+1,m.align="left",m.position=10+Math.min(80,Math.floor(n*8/32)*10),y.push(m))}return R&&y.length&&(y.sort(function(A,p){return A.line==="auto"||p.line==="auto"?0:A.line>8&&p.line>8?p.line-A.line:A.line-p.line}),y.forEach(function(A){return Object(M.addCueToTrack)(R,A)})),y}};K.default=U},"./src/utils/discontinuities.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"findFirstFragWithCC",function(){return j}),k.d(K,"shouldAlignOnDiscontinuities",function(){return U}),k.d(K,"findDiscontinuousReferenceFrag",function(){return _}),k.d(K,"adjustSlidingStart",function(){return c}),k.d(K,"alignStream",function(){return g}),k.d(K,"alignPDT",function(){return y}),k.d(K,"alignFragmentByPDTDelta",function(){return f}),k.d(K,"alignMediaPlaylistByPDT",function(){return m});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/logger.ts"),M=k("./src/controller/level-helper.ts");function j(a,n){for(var o=null,u=0,x=a.length;uo.startCC||a&&a.cc=this.minWeight_},j.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},j.destroy=function(){},M}();K.default=B},"./src/utils/ewma.ts":function(ee,K,k){"use strict";k.r(K);var z=function(){function B(j,U,_){U===void 0&&(U=0),_===void 0&&(_=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=j,this.alpha_=j?Math.exp(Math.log(.5)/j):0,this.estimate_=U,this.totalWeight_=_}var M=B.prototype;return M.sample=function(U,_){var R=Math.pow(this.alpha_,U);this.estimate_=_*(1-R)+R*this.estimate_,this.totalWeight_+=U},M.getTotalWeight=function(){return this.totalWeight_},M.getEstimate=function(){if(this.alpha_){var U=1-Math.pow(this.alpha_,this.totalWeight_);if(U)return this.estimate_/U}return this.estimate_},B}();K.default=z},"./src/utils/fetch-loader.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"fetchSupported",function(){return f});var z=k("./src/polyfills/number.ts"),B=k("./src/loader/load-stats.ts"),M=k("./src/demux/chunk-cache.ts");function j(u,x){u.prototype=Object.create(x.prototype),u.prototype.constructor=u,g(u,x)}function U(u){var x=typeof Map=="function"?new Map:void 0;return U=function(v){if(v===null||!c(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(v))return x.get(v);x.set(v,O)}function O(){return _(v,arguments,w(this).constructor)}return O.prototype=Object.create(v.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),g(O,v)},U(u)}function _(u,x,E){return R()?_=Reflect.construct:_=function(O,A,p){var h=[null];h.push.apply(h,A);var s=Function.bind.apply(O,h),l=new s;return p&&g(l,p.prototype),l},_.apply(null,arguments)}function R(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function c(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function g(u,x){return g=Object.setPrototypeOf||function(v,O){return v.__proto__=O,v},g(u,x)}function w(u){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},w(u)}function y(){return y=Object.assign||function(u){for(var x=1;x=p&&h(O,A,s.flush(),v)):h(O,A,I,v),T()}).catch(function(){return Promise.reject()})};return D()},u}();function a(u,x){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(y({},u.headers))};return u.rangeEnd&&E.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),E}function n(u,x){return new self.Request(u.url,x)}var o=function(u){j(x,u);function x(E,v,O){var A;return A=u.call(this,E)||this,A.code=void 0,A.details=void 0,A.code=v,A.details=O,A}return x}(U(Error));K.default=m},"./src/utils/imsc1-ttml-parser.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"IMSC1_CODEC",function(){return c}),k.d(K,"parseIMSC1",function(){return f});var z=k("./src/utils/mp4-tools.ts"),B=k("./src/utils/vttparser.ts"),M=k("./src/utils/vttcue.ts"),j=k("./src/demux/id3.ts"),U=k("./src/utils/timescale-conversion.ts"),_=k("./src/utils/webvtt-parser.ts");function R(){return R=Object.assign||function(p){for(var h=1;h"):z}function U(c){for(var g=arguments.length,w=new Array(g>1?g-1:0),y=1;y>24,x[E+1]=v>>16&255,x[E+2]=v>>8&255,x[E+3]=v&255}function g(x,E){var v=[];if(!E.length)return v;var O,A,p;"data"in x?(O=x.data,A=x.start,p=x.end):(O=x,A=0,p=O.byteLength);for(var h=A;h1?h+s:p;if(l===E[0])if(E.length===1)v.push({data:O,start:h+8,end:D});else{var T=g({data:O,start:h+8,end:D},E.slice(1));T.length&&j.apply(v,T)}h=D}return v}function w(x){var E=g(x,["moov"]),v=E[0],O=v?v.end:null,A=g(x,["sidx"]);if(!A||!A[0])return null;var p=[],h=A[0],s=h.data[0],l=s===0?8:16,D=R(h,l);l+=4;var T=0,S=0;s===0?l+=8:l+=16,l+=2;var I=h.end+S,C=_(h,l);l+=2;for(var W=0;W>>31;if(q===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var le=R(h,Y);Y+=4,p.push({referenceSize:F,subsegmentDuration:le,info:{duration:le/D,start:I,end:I+F-1}}),I+=F,Y+=4,l=Y}return{earliestPresentationTime:T,timescale:D,version:s,referencesCount:C,references:p,moovEndOffset:O}}function y(x){for(var E=[],v=g(x,["moov","trak"]),O=0;OU)&&(this.startTime=U),this.endTime=_,this.screen=R,this.timelineController.createCaptionsTrack(this.trackName)},M.reset=function(){this.cueRanges=[]},B}()},"./src/utils/texttrack-utils.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"sendAddTrackEvent",function(){return B}),k.d(K,"addCueToTrack",function(){return M}),k.d(K,"clearCurrentCues",function(){return j}),k.d(K,"removeCuesInRange",function(){return U}),k.d(K,"getCuesInRange",function(){return R});var z=k("./src/utils/logger.ts");function B(c,g){var w;try{w=new Event("addtrack")}catch(y){w=document.createEvent("Event"),w.initEvent("addtrack",!1,!1)}w.track=c,g.dispatchEvent(w)}function M(c,g){var w=c.mode;if(w==="disabled"&&(c.mode="hidden"),c.cues&&!c.cues.getCueById(g.id))try{if(c.addCue(g),!c.cues.getCueById(g.id))throw new Error("addCue is failed for: "+g)}catch(f){z.logger.debug("[texttrack-utils]: "+f);var y=new self.TextTrackCue(g.startTime,g.endTime,g.text);y.id=g.id,c.addCue(y)}w==="disabled"&&(c.mode=w)}function j(c){var g=c.mode;if(g==="disabled"&&(c.mode="hidden"),c.cues)for(var w=c.cues.length;w--;)c.removeCue(c.cues[w]);g==="disabled"&&(c.mode=g)}function U(c,g,w){var y=c.mode;if(y==="disabled"&&(c.mode="hidden"),c.cues&&c.cues.length>0)for(var f=R(c.cues,g,w),m=0;mc[w].endTime)return-1;for(var y=0,f=w;y<=f;){var m=Math.floor((f+y)/2);if(gc[m].startTime&&y-1)for(var m=f,a=c.length;m=g&&n.endTime<=w)y.push(n);else if(n.startTime>w)return y}return y}},"./src/utils/time-ranges.ts":function(ee,K,k){"use strict";k.r(K);var z={toString:function(M){for(var j="",U=M.length,_=0;_1?g-1:0),y=1;y100)throw new Error("Position must be between 0 and 100.");p=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"positionAlign",_({},f,{get:function(){return h},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");h=S,this.hasBeenReset=!0}})),Object.defineProperty(y,"size",_({},f,{get:function(){return s},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");s=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"align",_({},f,{get:function(){return l},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");l=S,this.hasBeenReset=!0}})),y.displayState=void 0}return R.prototype.getCueAsHTML=function(){var c=self.WebVTT;return c.convertCueToDOMTree(self,this.text)},R}()},"./src/utils/vttparser.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"parseTimeStamp",function(){return M}),k.d(K,"fixLineBreaks",function(){return g}),k.d(K,"VTTParser",function(){return w});var z=k("./src/utils/vttcue.ts"),B=function(){function y(){}var f=y.prototype;return f.decode=function(a,n){if(!a)return"";if(typeof a!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))},y}();function M(y){function f(a,n,o,u){return(a|0)*3600+(n|0)*60+(o|0)+parseFloat(u||0)}var m=y.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return m?parseFloat(m[2])>59?f(m[2],m[3],0,m[4]):f(m[1],m[2],m[3],m[4]):null}var j=function(){function y(){this.values=Object.create(null)}var f=y.prototype;return f.set=function(a,n){!this.get(a)&&n!==""&&(this.values[a]=n)},f.get=function(a,n,o){return o?this.has(a)?this.values[a]:n[o]:this.has(a)?this.values[a]:n},f.has=function(a){return a in this.values},f.alt=function(a,n,o){for(var u=0;u=0&&o<=100)return this.set(a,o),!0}return!1},y}();function U(y,f,m,a){var n=a?y.split(a):[y];for(var o in n){if(typeof n[o]!="string")continue;var u=n[o].split(m);if(u.length!==2)continue;var x=u[0],E=u[1];f(x,E)}}var _=new z.default(0,0,""),R=_.align==="middle"?"middle":"center";function c(y,f,m){var a=y;function n(){var x=M(y);if(x===null)throw new Error("Malformed timestamp: "+a);return y=y.replace(/^[^\sa-zA-Z-]+/,""),x}function o(x,E){var v=new j;U(x,function(p,h){var s;switch(p){case"region":for(var l=m.length-1;l>=0;l--)if(m[l].id===h){v.set(p,m[l].region);break}break;case"vertical":v.alt(p,h,["rl","lr"]);break;case"line":s=h.split(","),v.integer(p,s[0]),v.percent(p,s[0])&&v.set("snapToLines",!1),v.alt(p,s[0],["auto"]),s.length===2&&v.alt("lineAlign",s[1],["start",R,"end"]);break;case"position":s=h.split(","),v.percent(p,s[0]),s.length===2&&v.alt("positionAlign",s[1],["start",R,"end","line-left","line-right","auto"]);break;case"size":v.percent(p,h);break;case"align":v.alt(p,h,["start",R,"end","left","right"]);break}},/:/,/\s/),E.region=v.get("region",null),E.vertical=v.get("vertical","");var O=v.get("line","auto");O==="auto"&&_.line===-1&&(O=-1),E.line=O,E.lineAlign=v.get("lineAlign","start"),E.snapToLines=v.get("snapToLines",!0),E.size=v.get("size",100),E.align=v.get("align",R);var A=v.get("position","auto");A==="auto"&&_.position===50&&(A=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=A}function u(){y=y.replace(/^\s+/,"")}if(u(),f.startTime=n(),u(),y.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+a);y=y.substr(3),u(),f.endTime=n(),u(),o(y,f)}function g(y){return y.replace(//gi,` + timeOffset: `+T);var pe=new j.TransmuxConfig(u,x,o,O,h);this.configureTransmuxer(pe)}if(this.frag=E,this.part=v,D)D.postMessage({cmd:"demux",data:n,decryptdata:S,chunkMeta:p,state:le},n instanceof ArrayBuffer?[n]:[]);else if(l){var Ae=l.push(n,S,p,le);Object(j.isPromise)(Ae)?Ae.then(function(Ge){s.handleTransmuxComplete(Ge)}):this.handleTransmuxComplete(Ae)}},m.flush=function(n){var o=this;n.transmuxing.start=self.performance.now();var u=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:n});else if(u){var E=u.flush(n);Object(j.isPromise)(E)?E.then(function(v){o.handleFlushResult(v,n)}):this.handleFlushResult(E,n)}},m.handleFlushResult=function(n,o){var u=this;n.forEach(function(x){u.handleTransmuxComplete(x)}),this.onFlush(o)},m.onWorkerMessage=function(n){var o=n.data,u=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,u.trigger(o.event,o.data);break}}},m.configureTransmuxer=function(n){var o=this.worker,u=this.transmuxer;o?o.postMessage({cmd:"configure",config:n}):u&&u.configure(n)},m.handleTransmuxComplete=function(n){n.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(n)},f}()},"./src/demux/transmuxer-worker.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return _});var z=P("./src/demux/transmuxer.ts"),B=P("./src/events.ts"),M=P("./src/utils/logger.ts"),j=P("./node_modules/eventemitter3/index.js"),U=P.n(j);function _(y){var f=new j.EventEmitter,m=function(n,o){y.postMessage({event:n,data:o})};f.on(B.Events.FRAG_DECRYPTED,m),f.on(B.Events.ERROR,m),y.addEventListener("message",function(a){var n=a.data;switch(n.cmd){case"init":{var o=JSON.parse(n.config);y.transmuxer=new z.default(f,n.typeSupported,o,n.vendor,n.id),Object(M.enableLogs)(o.debug),m("init",null);break}case"configure":{y.transmuxer.configure(n.config);break}case"demux":{var u=y.transmuxer.push(n.data,n.decryptdata,n.chunkMeta,n.state);Object(z.isPromise)(u)?u.then(function(v){R(y,v)}):R(y,u);break}case"flush":{var x=n.chunkMeta,E=y.transmuxer.flush(x);Object(z.isPromise)(E)?E.then(function(v){g(y,v,x)}):g(y,E,x);break}default:break}})}function R(y,f){if(w(f.remuxResult))return;var m=[],a=f.remuxResult,n=a.audio,o=a.video;n&&c(m,n),o&&c(m,o),y.postMessage({event:"transmuxComplete",data:f},m)}function c(y,f){f.data1&&y.push(f.data1.buffer),f.data2&&y.push(f.data2.buffer)}function g(y,f,m){f.forEach(function(a){R(y,a)}),y.postMessage({event:"flush",data:m})}function w(y){return!y.audio&&!y.video&&!y.text&&!y.id3&&!y.initSegment}},"./src/demux/transmuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return o}),P.d(K,"isPromise",function(){return E}),P.d(K,"TransmuxConfig",function(){return v}),P.d(K,"TransmuxState",function(){return O});var z=P("./src/events.ts"),B=P("./src/errors.ts"),M=P("./src/crypt/decrypter.ts"),j=P("./src/demux/aacdemuxer.ts"),U=P("./src/demux/mp4demuxer.ts"),_=P("./src/demux/tsdemuxer.ts"),R=P("./src/demux/mp3demuxer.ts"),c=P("./src/remux/mp4-remuxer.ts"),g=P("./src/remux/passthrough-remuxer.ts"),w=P("./src/demux/chunk-cache.ts"),y=P("./src/utils/mp4-tools.ts"),f=P("./src/utils/logger.ts"),m;try{m=self.performance.now.bind(self.performance)}catch(A){f.logger.debug("Unable to use Performance API on this environment"),m=self.Date.now}var a=[{demux:_.default,remux:c.default},{demux:U.default,remux:g.default},{demux:j.default,remux:c.default},{demux:R.default,remux:c.default}],n=1024;a.forEach(function(A){var p=A.demux;n=Math.max(n,p.minProbeByteLength)});var o=function(){function A(h,s,l,D,T){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new w.default,this.observer=h,this.typeSupported=s,this.config=l,this.vendor=D,this.id=T}var p=A.prototype;return p.configure=function(s){this.transmuxConfig=s,this.decrypter&&this.decrypter.reset()},p.push=function(s,l,D,T){var S=this,I=D.transmuxing;I.executeStart=m();var C=new Uint8Array(s),W=this.cache,Y=this.config,H=this.currentTransmuxState,F=this.transmuxConfig;T&&(this.currentTransmuxState=T);var q=u(C,l);if(q&&q.method==="AES-128"){var le=this.getDecrypter();if(Y.enableSoftwareAES){var pe=le.softwareDecrypt(C,q.key.buffer,q.iv.buffer);if(!pe)return I.executeEnd=m(),x(D);C=new Uint8Array(pe)}else return this.decryptionPromise=le.webCryptoDecrypt(C,q.key.buffer,q.iv.buffer).then(function(Se){var Me=S.push(Se,null,D);return S.decryptionPromise=null,Me}),this.decryptionPromise}var Ae=T||H,Ge=Ae.contiguous,Fe=Ae.discontinuity,Ue=Ae.trackSwitch,_e=Ae.accurateTimeOffset,je=Ae.timeOffset,xe=F.audioCodec,he=F.videoCodec,te=F.defaultInitPts,ye=F.duration,ue=F.initSegmentData;if((Fe||Ue)&&this.resetInitSegment(ue,xe,he,ye),Fe&&this.resetInitialTimestamp(te),Ge||this.resetContiguity(),this.needsProbing(C,Fe,Ue)){if(W.dataLength){var Le=W.flush();C=Object(y.appendUint8Array)(Le,C)}this.configureTransmuxer(C,F)}var ae=this.transmux(C,q,je,_e,D),oe=this.currentTransmuxState;return oe.contiguous=!0,oe.discontinuity=!1,oe.trackSwitch=!1,I.executeEnd=m(),ae},p.flush=function(s){var l=this,D=s.transmuxing;D.executeStart=m();var T=this.decrypter,S=this.cache,I=this.currentTransmuxState,C=this.decryptionPromise;if(C)return C.then(function(){return l.flush(s)});var W=[],Y=I.timeOffset;if(T){var H=T.flush();H&&W.push(this.push(H,null,s))}var F=S.dataLength;S.reset();var q=this.demuxer,le=this.remuxer;if(!q||!le)return F>=n&&this.observer.emit(z.Events.ERROR,z.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=m(),[x(s)];var pe=q.flush(Y);return E(pe)?pe.then(function(Ae){return l.flushRemux(W,Ae,s),W}):(this.flushRemux(W,pe,s),W)},p.flushRemux=function(s,l,D){var T=l.audioTrack,S=l.avcTrack,I=l.id3Track,C=l.textTrack,W=this.currentTransmuxState,Y=W.accurateTimeOffset,H=W.timeOffset;f.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var F=this.remuxer.remux(T,S,I,C,H,Y,!0,this.id);s.push({remuxResult:F,chunkMeta:D}),D.transmuxing.executeEnd=m()},p.resetInitialTimestamp=function(s){var l=this.demuxer,D=this.remuxer;if(!l||!D)return;l.resetTimeStamp(s),D.resetTimeStamp(s)},p.resetContiguity=function(){var s=this.demuxer,l=this.remuxer;if(!s||!l)return;s.resetContiguity(),l.resetNextTimestamp()},p.resetInitSegment=function(s,l,D,T){var S=this.demuxer,I=this.remuxer;if(!S||!I)return;S.resetInitSegment(l,D,T),I.resetInitSegment(s,l,D)},p.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},p.transmux=function(s,l,D,T,S){var I;return l&&l.method==="SAMPLE-AES"?I=this.transmuxSampleAes(s,l,D,T,S):I=this.transmuxUnencrypted(s,D,T,S),I},p.transmuxUnencrypted=function(s,l,D,T){var S=this.demuxer.demux(s,l,!1,!this.config.progressive),I=S.audioTrack,C=S.avcTrack,W=S.id3Track,Y=S.textTrack,H=this.remuxer.remux(I,C,W,Y,l,D,!1,this.id);return{remuxResult:H,chunkMeta:T}},p.transmuxSampleAes=function(s,l,D,T,S){var I=this;return this.demuxer.demuxSampleAes(s,l,D).then(function(C){var W=I.remuxer.remux(C.audioTrack,C.avcTrack,C.id3Track,C.textTrack,D,T,!1,I.id);return{remuxResult:W,chunkMeta:S}})},p.configureTransmuxer=function(s,l){for(var D=this.config,T=this.observer,S=this.typeSupported,I=this.vendor,C=l.audioCodec,W=l.defaultInitPts,Y=l.duration,H=l.initSegmentData,F=l.videoCodec,q,le=0,pe=a.length;le0&&p!=null&&p.key!=null&&p.iv!==null&&p.method!=null&&(h=p),h}var x=function(p){return{remuxResult:{},chunkMeta:p}};function E(A){return"then"in A&&A.then instanceof Function}var v=function(p,h,s,l,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=p,this.videoCodec=h,this.initSegmentData=s,this.duration=l,this.defaultInitPts=D},O=function(p,h,s,l,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=p,this.contiguous=h,this.accurateTimeOffset=s,this.trackSwitch=l,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"discardEPB",function(){return x});var z=P("./src/demux/adts.ts"),B=P("./src/demux/mpegaudio.ts"),M=P("./src/demux/exp-golomb.ts"),j=P("./src/demux/id3.ts"),U=P("./src/demux/sample-aes.ts"),_=P("./src/events.ts"),R=P("./src/utils/mp4-tools.ts"),c=P("./src/utils/logger.ts"),g=P("./src/errors.ts"),w={video:1,audio:2,id3:3,text:4},y=function(){function E(O,A,p){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=O,this.config=A,this.typeSupported=p}E.probe=function(A){var p=E.syncOffset(A);return p<0?!1:(p&&c.logger.warn("MPEG2-TS detected but first sync word found @ offset "+p+", junk ahead ?"),!0)},E.syncOffset=function(A){for(var p=Math.min(1e3,A.length-3*188),h=0;h>4,xe=void 0;if(je>1){if(xe=Fe+5+A[Fe+4],xe===Fe+188)continue}else xe=Fe+4;switch(_e){case I:Ue&&(C&&(l=n(C))&&this.parseAVCPES(l,!1),C={data:[],size:0}),C&&(C.data.push(A.subarray(xe,Fe+188)),C.size+=Fe+188-xe);break;case W:Ue&&(H&&(l=n(H))&&(T.isAAC?this.parseAACPES(l):this.parseMPEGPES(l)),H={data:[],size:0}),H&&(H.data.push(A.subarray(xe,Fe+188)),H.size+=Fe+188-xe);break;case Y:Ue&&(F&&(l=n(F))&&this.parseID3PES(l),F={data:[],size:0}),F&&(F.data.push(A.subarray(xe,Fe+188)),F.size+=Fe+188-xe);break;case 0:Ue&&(xe+=A[xe]+1),pe=this._pmtId=m(A,xe);break;case pe:{Ue&&(xe+=A[xe]+1);var he=a(A,xe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);I=he.avc,I>0&&(D.pid=I),W=he.audio,W>0&&(T.pid=W,T.isAAC=he.isAAC),Y=he.id3,Y>0&&(S.pid=Y),q&&!le&&(c.logger.log("reparse from beginning"),q=!1,Fe=Ge-188),le=this.pmtParsed=!0;break}case 17:case 8191:break;default:q=!0;break}}else this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=C,T.pesData=H,S.pesData=F;var te={audioTrack:T,avcTrack:D,id3Track:S,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(te),te},v.flush=function(){var A=this.remainderData;this.remainderData=null;var p;return A?p=this.demux(A,-1,!1,!0):p={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(p),this.sampleAes?this.decrypt(p,this.sampleAes):p},v.extractRemainingSamples=function(A){var p=A.audioTrack,h=A.avcTrack,s=A.id3Track,l=h.pesData,D=p.pesData,T=s.pesData,S;l&&(S=n(l))?(this.parseAVCPES(S,!0),h.pesData=null):h.pesData=l,D&&(S=n(D))?(p.isAAC?this.parseAACPES(S):this.parseMPEGPES(S),p.pesData=null):(D!=null&&D.size&&c.logger.log("last AAC PES packet truncated,might overlap between fragments"),p.pesData=D),T&&(S=n(T))?(this.parseID3PES(S),s.pesData=null):s.pesData=T},v.demuxSampleAes=function(A,p,h){var s=this.demux(A,h,!0,!this.config.progressive),l=this.sampleAes=new U.default(this.observer,this.config,p);return this.decrypt(s,l)},v.decrypt=function(A,p){return new Promise(function(h){var s=A.audioTrack,l=A.avcTrack;s.samples&&s.isAAC?p.decryptAacSamples(s.samples,0,function(){l.samples?p.decryptAvcSamples(l.samples,0,0,function(){h(A)}):h(A)}):l.samples&&p.decryptAvcSamples(l.samples,0,0,function(){h(A)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(A,p){var h=this,s=this._avcTrack,l=this.parseAVCNALu(A.data),D=!1,T=this.avcSample,S,I=!1;A.data=null,T&&l.length&&!s.audFound&&(o(T,s),T=this.avcSample=f(!1,A.pts,A.dts,"")),l.forEach(function(C){switch(C.type){case 1:{S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="NDR "),T.frame=!0;var W=C.data;if(I&&W.length>4){var Y=new M.default(W).readSliceType();(Y===2||Y===4||Y===7||Y===9)&&(T.key=!0)}break}case 5:S=!0,T||(T=h.avcSample=f(!0,A.pts,A.dts,"")),D&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{S=!0,D&&T&&(T.debug+="SEI ");var H=new M.default(x(C.data));H.readUByte();for(var F=0,q=0,le=!1,pe=0;!le&&H.bytesAvailable>1;){F=0;do pe=H.readUByte(),F+=pe;while(pe===255);q=0;do pe=H.readUByte(),q+=pe;while(pe===255);if(F===4&&H.bytesAvailable!==0){le=!0;var Ae=H.readUByte();if(Ae===181){var Ge=H.readUShort();if(Ge===49){var Fe=H.readUInt();if(Fe===1195456820){var Ue=H.readUByte();if(Ue===3){for(var _e=H.readUByte(),je=H.readUByte(),xe=31&_e,he=[_e,je],te=0;te16){for(var ye=[],ue=0;ue<16;ue++)ye.push(H.readUByte().toString(16)),(ue===3||ue===5||ue===7||ue===9)&&ye.push("-");for(var Le=q-16,ae=new Uint8Array(Le),oe=0;oe=0){var H={data:A.subarray(W,T-s-1),type:Y};D.push(H)}else{var F=this.getLastNalUnit();if(F&&(l&&T<=4-l&&(F.state&&(F.data=F.data.subarray(0,F.data.byteLength-l))),I=T-s-1,I>0)){var q=new Uint8Array(F.data.byteLength+I);q.set(F.data,0),q.set(A.subarray(0,I),F.data.byteLength),F.data=q,F.state=0}}T=0&&s>=0){var le={data:A.subarray(W,p),type:Y,state:s};D.push(le)}if(D.length===0){var pe=this.getLastNalUnit();if(pe){var Ae=new Uint8Array(pe.data.byteLength+A.byteLength);Ae.set(pe.data,0),Ae.set(A,pe.data.byteLength),pe.data=Ae}}return h.naluState=s,D},v.parseAACPES=function(A){var p=0,h=this._audioTrack,s=this.aacOverFlow,l=A.data;if(s){this.aacOverFlow=null;var D=s.sample.unit.byteLength,T=Math.min(s.missing,D),S=D-T;s.sample.unit.set(l.subarray(0,T),S),h.samples.push(s.sample),p=s.missing}var I,C;for(I=p,C=l.length;I1;){var D=new Uint8Array(l[0].length+l[1].length);D.set(l[0]),D.set(l[1],l[0].length),l[0]=D,l.splice(1,1)}O=l[0];var T=(O[0]<<16)+(O[1]<<8)+O[2];if(T===1){if(A=(O[4]<<8)+O[5],A&&A>E.size-6)return null;var S=O[7];S&192&&(h=(O[9]&14)*536870912+(O[10]&255)*4194304+(O[11]&254)*16384+(O[12]&255)*128+(O[13]&254)/2,S&64?(s=(O[14]&14)*536870912+(O[15]&255)*4194304+(O[16]&254)*16384+(O[17]&255)*128+(O[18]&254)/2,h-s>60*9e4&&(c.logger.warn(Math.round((h-s)/9e4)+"s delta between PTS and DTS, align them"),h=s)):s=h),p=O[8];var I=p+9;if(E.size<=I)return null;E.size-=I;for(var C=new Uint8Array(E.size),W=0,Y=l.length;WH){I-=H;continue}else O=O.subarray(I),H-=I,I=0;C.set(O,v),v+=H}return A&&(A-=p+3),{data:C,pts:h,dts:s,len:A}}return null}function o(E,v){if(E.units.length&&E.frame){if(E.pts===void 0){var O=v.samples,A=O.length;if(A){var p=O[A-1];E.pts=p.pts,E.dts=p.dts}else{v.dropped++;return}}v.samples.push(E)}E.debug.length&&c.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function u(E,v){var O=E.length;if(O>0){if(v.pts>=E[O-1].pts)E.push(v);else for(var A=O-1;A>=0;A--)if(v.ptsh)return l;return 0}},{key:"maxAutoLevel",get:function(){var p=this.levels,h=this.autoLevelCapping,s;return h===-1&&p&&p.length?s=p.length-1:s=h,s}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(p){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,p)}},{key:"audioTracks",get:function(){var p=this.audioTrackController;return p?p.audioTracks:[]}},{key:"audioTrack",get:function(){var p=this.audioTrackController;return p?p.audioTrack:-1},set:function(p){var h=this.audioTrackController;h&&(h.audioTrack=p)}},{key:"subtitleTracks",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var p=this.subtitleTrackController;return p?p.subtitleTrack:-1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleTrack=p)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var p=this.subtitleTrackController;return p?p.subtitleDisplay:!1},set:function(p){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=p)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(p){this.config.lowLatencyMode=p}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return n.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:f.hlsDefaultConfig},set:function(p){v.defaultConfig=p}}]),v}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"isSupported",function(){return M}),P.d(K,"changeTypeSupported",function(){return j});var z=P("./src/utils/mediasource-helper.ts");function B(){return self.SourceBuffer||self.WebKitSourceBuffer}function M(){var U=Object(z.getMediaSource)();if(!U)return!1;var _=B(),R=U&&typeof U.isTypeSupported=="function"&&U.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),c=!_||_.prototype&&typeof _.prototype.appendBuffer=="function"&&typeof _.prototype.remove=="function";return!!R&&!!c}function j(){var U,_=B();return typeof(_==null||((U=_.prototype)===null||U===void 0)?void 0:U.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return y}),P.d(K,"LoadError",function(){return m});var z=P("./src/polyfills/number.ts"),B=P("./src/errors.ts");function M(a,n){a.prototype=Object.create(n.prototype),a.prototype.constructor=a,c(a,n)}function j(a){var n=typeof Map=="function"?new Map:void 0;return j=function(u){if(u===null||!R(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(u))return n.get(u);n.set(u,x)}function x(){return U(u,arguments,g(this).constructor)}return x.prototype=Object.create(u.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),c(x,u)},j(a)}function U(a,n,o){return _()?U=Reflect.construct:U=function(x,E,v){var O=[null];O.push.apply(O,E);var A=Function.bind.apply(x,O),p=new A;return v&&c(p,v.prototype),p},U.apply(null,arguments)}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function R(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function c(a,n){return c=Object.setPrototypeOf||function(u,x){return u.__proto__=x,u},c(a,n)}function g(a){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},g(a)}var w=Math.pow(2,17),y=function(){function a(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var n=a.prototype;return n.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},n.abort=function(){this.loader&&this.loader.abort()},n.load=function(u,x){var E=this,v=u.url;if(!v)return Promise.reject(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){E.loader&&E.loader.destroy();var l=E.loader=u.loader=A?new A(O):new p(O),D=f(u),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};u.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){E.resetLoader(u,l),h({frag:u,part:null,payload:I.data,networkDetails:Y})},onError:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:I,networkDetails:W}))},onAbort:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:W}))},onTimeout:function(I,C,W){E.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:W}))},onProgress:function(I,C,W,Y){x&&x({frag:u,part:null,payload:W,networkDetails:Y})}})})},n.loadPart=function(u,x,E){var v=this;this.abort();var O=this.config,A=O.fLoader,p=O.loader;return new Promise(function(h,s){v.loader&&v.loader.destroy();var l=v.loader=u.loader=A?new A(O):new p(O),D=f(u,x),T={timeout:O.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:O.fragLoadingMaxRetryTimeout,highWaterMark:w};x.stats=l.stats,l.load(D,T,{onSuccess:function(I,C,W,Y){v.resetLoader(u,l),v.updateStatsFromPart(u,x);var H={frag:u,part:x,payload:I.data,networkDetails:Y};E(H),h(H)},onError:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:x,response:I,networkDetails:W}))},onAbort:function(I,C,W){u.stats.aborted=x.stats.aborted,v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:x,networkDetails:W}))},onTimeout:function(I,C,W){v.resetLoader(u,l),s(new m({type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:x,networkDetails:W}))}})})},n.updateStatsFromPart=function(u,x){var E=u.stats,v=x.stats,O=v.total;if(E.loaded+=v.loaded,O){var A=Math.round(u.duration/x.duration),p=Math.min(Math.round(E.loaded/O),A),h=A-p,s=h*Math.round(E.loaded/p);E.total=E.loaded+s}else E.total=Math.max(E.loaded,E.total);var l=E.loading,D=v.loading;l.start?l.first+=D.first-D.start:(l.start=D.start,l.first=D.first),l.end=D.end},n.resetLoader=function(u,x){u.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},a}();function f(a,n){n===void 0&&(n=null);var o=n||a,u={frag:a,part:n,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},x=o.byteRangeStartOffset,E=o.byteRangeEndOffset;return Object(z.isFiniteNumber)(x)&&Object(z.isFiniteNumber)(E)&&(u.rangeStart=x,u.rangeEnd=E),u}var m=function(a){M(n,a);function n(o){for(var u,x=arguments.length,E=new Array(x>1?x-1:0),v=1;v>8*(15-O)&255;return v},u.setDecryptDataFromLevelKey=function(E,v){var O=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(O=U.LevelKey.fromURI(E.uri),O.method=E.method,O.iv=this.createInitializationVector(v),O.keyFormat="identity"),O},u.setElementaryStreamInfo=function(E,v,O,A,p,h){h===void 0&&(h=!1);var s=this.elementaryStreams,l=s[E];if(!l){s[E]={startPTS:v,endPTS:O,startDTS:A,endDTS:p,partial:h};return}l.startPTS=Math.min(l.startPTS,v),l.endPTS=Math.max(l.endPTS,O),l.startDTS=Math.min(l.startDTS,A),l.endDTS=Math.max(l.endDTS,p)},u.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[y.AUDIO]=null,E[y.VIDEO]=null,E[y.AUDIOVIDEO]=null},w(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&j.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(z.isFiniteNumber)(this.programDateTime))return null;var E=Object(z.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),o}(f),a=function(n){R(o,n);function o(u,x,E,v,O){var A;A=n.call(this,E)||this,A.fragOffset=0,A.duration=0,A.gap=!1,A.independent=!1,A.relurl=void 0,A.fragment=void 0,A.index=void 0,A.stats=new _.LoadStats,A.duration=u.decimalFloatingPoint("DURATION"),A.gap=u.bool("GAP"),A.independent=u.bool("INDEPENDENT"),A.relurl=u.enumeratedString("URI"),A.fragment=x,A.index=v;var p=u.enumeratedString("BYTERANGE");return p&&A.setByteRange(p,O),O&&(A.fragOffset=O.fragOffset+O.duration),A}return w(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),o}(f)},"./src/loader/key-loader.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return j});var z=P("./src/events.ts"),B=P("./src/errors.ts"),M=P("./src/utils/logger.ts"),j=function(){function U(R){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=R,this._registerListeners()}var _=U.prototype;return _._registerListeners=function(){this.hls.on(z.Events.KEY_LOADING,this.onKeyLoading,this)},_._unregisterListeners=function(){this.hls.off(z.Events.KEY_LOADING,this.onKeyLoading)},_.destroy=function(){this._unregisterListeners();for(var c in this.loaders){var g=this.loaders[c];g&&g.destroy()}this.loaders={}},_.onKeyLoading=function(c,g){var w=g.frag,y=w.type,f=this.loaders[y];if(!w.decryptdata){M.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var m=w.decryptdata.uri;if(m!==this.decrypturl||this.decryptkey===null){var a=this.hls.config;if(f&&(M.logger.warn("abort previous key loader for type:"+y),f.abort()),!m){M.logger.warn("key uri is falsy");return}var n=a.loader,o=w.loader=this.loaders[y]=new n(a);this.decrypturl=m,this.decryptkey=null;var u={url:m,frag:w,responseType:"arraybuffer"},x={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(u,x,E)}else this.decryptkey&&(w.decryptdata.key=this.decryptkey,this.hls.trigger(z.Events.KEY_LOADED,{frag:w}))},_.loadsuccess=function(c,g,w){var y=w.frag;if(!y.decryptdata){M.logger.error("after key load, decryptdata unset");return}this.decryptkey=y.decryptdata.key=new Uint8Array(c.data),y.loader=null,delete this.loaders[y.type],this.hls.trigger(z.Events.KEY_LOADED,{frag:y})},_.loaderror=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:w,response:c})},_.loadtimeout=function(c,g){var w=g.frag,y=w.loader;y&&y.abort(),delete this.loaders[w.type],this.hls.trigger(z.Events.ERROR,{type:B.ErrorTypes.NETWORK_ERROR,details:B.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:w})},U}()},"./src/loader/level-details.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"LevelDetails",function(){return U});var z=P("./src/polyfills/number.ts");function B(_,R){for(var c=0;cg.endSN||w>0||w===0&&y>0,this.updated||this.advanced?this.misses=Math.floor(g.misses*.6):this.misses=g.misses+1,this.availabilityDelay=g.availabilityDelay},M(_,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(z.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||j}},{key:"drift",get:function(){var g=this.driftEndTime-this.driftStartTime;if(g>0){var w=this.driftEnd-this.driftStart;return w*1e3/g}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var g;return(g=this.fragments)!==null&&g!==void 0&&g.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),_}()},"./src/loader/level-key.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"LevelKey",function(){return U});var z=P("./node_modules/url-toolkit/src/url-toolkit.js"),B=P.n(z);function M(_,R){for(var c=0;c2){var s=h.shift()+".";return s+=parseInt(h.shift()).toString(16),s+=("000"+parseInt(h.shift()).toString(16)).substr(-4),s}return p},O.resolve=function(p,h){return B.buildAbsoluteURL(h,p,{alwaysNormalize:!0})},O.parseMasterPlaylist=function(p,h){var s=[],l={},D=!1;w.lastIndex=0;for(var T;(T=w.exec(p))!=null;)if(T[1]){var S=new R.AttrList(T[1]),I={attrs:S,bitrate:S.decimalInteger("AVERAGE-BANDWIDTH")||S.decimalInteger("BANDWIDTH"),name:S.NAME,url:O.resolve(T[2],h)},C=S.decimalResolution("RESOLUTION");C&&(I.width=C.width,I.height=C.height),u((S.CODECS||"").split(/[ ,]+/).filter(function(Y){return Y}),I),I.videoCodec&&I.videoCodec.indexOf("avc1")!==-1&&(I.videoCodec=O.convertAVC1ToAVCOTI(I.videoCodec)),s.push(I)}else if(T[3]){var W=new R.AttrList(T[3]);W["DATA-ID"]&&(D=!0,l[W["DATA-ID"]]=W)}return{levels:s,sessionData:D?l:null}},O.parseMasterPlaylistMedia=function(p,h,s,l){l===void 0&&(l=[]);var D,T=[],S=0;for(y.lastIndex=0;(D=y.exec(p))!==null;){var I=new R.AttrList(D[1]);if(I.TYPE===s){var C={attrs:I,bitrate:0,id:S++,groupId:I["GROUP-ID"],instreamId:I["INSTREAM-ID"],name:I.NAME||I.LANGUAGE||"",type:s,default:I.bool("DEFAULT"),autoselect:I.bool("AUTOSELECT"),forced:I.bool("FORCED"),lang:I.LANGUAGE,url:I.URI?O.resolve(I.URI,h):""};if(l.length){var W=O.findGroup(l,C.groupId)||l[0];x(C,W,"audioCodec"),x(C,W,"textCodec")}T.push(C)}}return T},O.parseLevelPlaylist=function(p,h,s,l,D){var T=new U.LevelDetails(h),S=T.fragments,I=null,C=0,W=0,Y=0,H=0,F=null,q=new j.Fragment(l,h),le,pe,Ae,Ge=-1,Fe=!1;for(f.lastIndex=0,T.m3u8=p;(le=f.exec(p))!==null;){Fe&&(Fe=!1,q=new j.Fragment(l,h),q.start=Y,q.sn=C,q.cc=H,q.level=s,I&&(q.initSegment=I,q.rawProgramDateTime=I.rawProgramDateTime));var Ue=le[1];if(Ue){q.duration=parseFloat(Ue);var _e=(" "+le[2]).slice(1);q.title=_e||null,q.tagList.push(_e?["INF",Ue,_e]:["INF",Ue])}else if(le[3])Object(z.isFiniteNumber)(q.duration)&&(q.start=Y,Ae&&(q.levelkey=Ae),q.sn=C,q.level=s,q.cc=H,q.urlId=D,S.push(q),q.relurl=(" "+le[3]).slice(1),v(q,F),F=q,Y+=q.duration,C++,W=0,Fe=!0);else if(le[4]){var je=(" "+le[4]).slice(1);F?q.setByteRange(je,F):q.setByteRange(je)}else if(le[5])q.rawProgramDateTime=(" "+le[5]).slice(1),q.tagList.push(["PROGRAM-DATE-TIME",q.rawProgramDateTime]),Ge===-1&&(Ge=S.length);else{if(le=le[0].match(m),!le){c.logger.warn("No matches on slow regex match for level playlist!");continue}for(pe=1;pe-1){c.logger.warn("Keyformat "+yt+" is not supported from the manifest");continue}else if(yt!=="identity")continue;Me&&(Ae=_.LevelKey.fromURL(h,We),We&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Me)>=0&&(Ae.method=Me,Ae.keyFormat=yt,Ze&&(Ae.keyID=Ze),Qe&&(Ae.keyFormatVersions=Qe),Ae.iv=Ke));break}case"START":{var dt=new R.AttrList(he),pt=dt.decimalFloatingPoint("TIME-OFFSET");Object(z.isFiniteNumber)(pt)&&(T.startTimeOffset=pt);break}case"MAP":{var At=new R.AttrList(he);q.relurl=At.URI,At.BYTERANGE&&q.setByteRange(At.BYTERANGE),q.level=s,q.sn="initSegment",Ae&&(q.levelkey=Ae),q.initSegment=null,I=q,Fe=!0;break}case"SERVER-CONTROL":{var wt=new R.AttrList(he);T.canBlockReload=wt.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=wt.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&wt.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=wt.optionalFloat("PART-HOLD-BACK",0),T.holdBack=wt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new R.AttrList(he);T.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var we=T.partList;we||(we=T.partList=[]);var Je=W>0?we[we.length-1]:void 0,st=W++,He=new j.Part(new R.AttrList(he),q,h,st,Je);we.push(He),q.duration+=He.duration;break}case"PRELOAD-HINT":{var nt=new R.AttrList(he);T.preloadHint=nt;break}case"RENDITION-REPORT":{var Te=new R.AttrList(he);T.renditionReports=T.renditionReports||[],T.renditionReports.push(Te);break}default:c.logger.warn("line parsed but not handled: "+le);break}}}F&&!F.relurl?(S.pop(),Y-=F.duration,T.partList&&(T.fragmentHint=F)):T.partList&&(v(q,F),q.cc=H,T.fragmentHint=q);var ge=S.length,be=S[0],re=S[ge-1];if(Y+=T.skippedSegments*T.targetduration,Y>0&&ge&&re){T.averagetargetduration=Y/ge;var ie=re.sn;T.endSN=ie!=="initSegment"?ie:0,be&&(T.startCC=be.cc,be.initSegment||T.fragments.every(function(ce){return ce.relurl&&n(ce.relurl)})&&(c.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),q=new j.Fragment(l,h),q.relurl=re.relurl,q.level=s,q.sn="initSegment",be.initSegment=q,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(Y+=T.fragmentHint.duration),T.totalduration=Y,T.endCC=H,Ge>0&&E(S,Ge),T},O}();function u(O,A){["video","audio","text"].forEach(function(p){var h=O.filter(function(l){return Object(g.isCodecType)(l,p)});if(h.length){var s=h.filter(function(l){return l.lastIndexOf("avc1",0)===0||l.lastIndexOf("mp4a",0)===0});A[p+"Codec"]=s.length>0?s[0]:h[0],O=O.filter(function(l){return h.indexOf(l)===-1})}}),A.unknownCodecs=O}function x(O,A,p){var h=A[p];h&&(O[p]=h)}function E(O,A){for(var p=O[A],h=A;h--;){var s=O[h];if(!s)return;s.programDateTime=p.programDateTime-s.duration*1e3,p=s}}function v(O,A){O.rawProgramDateTime?O.programDateTime=Date.parse(O.rawProgramDateTime):A!=null&&A.programDateTime&&(O.programDateTime=A.endProgramDateTime),Object(z.isFiniteNumber)(O.programDateTime)||(O.programDateTime=null,O.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/polyfills/number.ts"),B=P("./src/events.ts"),M=P("./src/errors.ts"),j=P("./src/utils/logger.ts"),U=P("./src/utils/mp4-tools.ts"),_=P("./src/loader/m3u8-parser.ts"),R=P("./src/types/loader.ts"),c=P("./src/utils/attr-list.ts");function g(f){var m=f.type;switch(m){case R.PlaylistContextType.AUDIO_TRACK:return R.PlaylistLevelType.AUDIO;case R.PlaylistContextType.SUBTITLE_TRACK:return R.PlaylistLevelType.SUBTITLE;default:return R.PlaylistLevelType.MAIN}}function w(f,m){var a=f.url;return(a===void 0||a.indexOf("data:")===0)&&(a=m.url),a}var y=function(){function f(a){this.hls=void 0,this.loaders=Object.create(null),this.hls=a,this.registerListeners()}var m=f.prototype;return m.registerListeners=function(){var n=this.hls;n.on(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.on(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.on(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.unregisterListeners=function(){var n=this.hls;n.off(B.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.off(B.Events.LEVEL_LOADING,this.onLevelLoading,this),n.off(B.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.off(B.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.createInternalLoader=function(n){var o=this.hls.config,u=o.pLoader,x=o.loader,E=u||x,v=new E(o);return n.loader=v,this.loaders[n.type]=v,v},m.getInternalLoader=function(n){return this.loaders[n.type]},m.resetInternalLoader=function(n){this.loaders[n]&&delete this.loaders[n]},m.destroyInternalLoaders=function(){for(var n in this.loaders){var o=this.loaders[n];o&&o.destroy(),this.resetInternalLoader(n)}},m.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},m.onManifestLoading=function(n,o){var u=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:R.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},m.onLevelLoading=function(n,o){var u=o.id,x=o.level,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:null,level:x,responseType:"text",type:R.PlaylistContextType.LEVEL,url:E,deliveryDirectives:v})},m.onAudioTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:v})},m.onSubtitleTrackLoading=function(n,o){var u=o.id,x=o.groupId,E=o.url,v=o.deliveryDirectives;this.load({id:u,groupId:x,level:null,responseType:"text",type:R.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:v})},m.load=function(n){var o,u=this.hls.config,x=this.getInternalLoader(n);if(x){var E=x.context;if(E&&E.url===n.url){j.logger.trace("[playlist-loader]: playlist request ongoing");return}j.logger.log("[playlist-loader]: aborting previous loader for type: "+n.type),x.abort()}var v,O,A,p;switch(n.type){case R.PlaylistContextType.MANIFEST:v=u.manifestLoadingMaxRetry,O=u.manifestLoadingTimeOut,A=u.manifestLoadingRetryDelay,p=u.manifestLoadingMaxRetryTimeout;break;case R.PlaylistContextType.LEVEL:case R.PlaylistContextType.AUDIO_TRACK:case R.PlaylistContextType.SUBTITLE_TRACK:v=0,O=u.levelLoadingTimeOut;break;default:v=u.levelLoadingMaxRetry,O=u.levelLoadingTimeOut,A=u.levelLoadingRetryDelay,p=u.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(n),(o=n.deliveryDirectives)!==null&&o!==void 0&&o.part){var h;if(n.type===R.PlaylistContextType.LEVEL&&n.level!==null?h=this.hls.levels[n.level].details:n.type===R.PlaylistContextType.AUDIO_TRACK&&n.id!==null?h=this.hls.audioTracks[n.id].details:n.type===R.PlaylistContextType.SUBTITLE_TRACK&&n.id!==null&&(h=this.hls.subtitleTracks[n.id].details),h){var s=h.partTarget,l=h.targetduration;s&&l&&(O=Math.min(Math.max(s*3,l*.8)*1e3,O))}}var D={timeout:O,maxRetry:v,retryDelay:A,maxRetryDelay:p,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(n,D,T)},m.loadsuccess=function(n,o,u,x){if(x===void 0&&(x=null),u.isSidxRequest){this.handleSidxRequest(n,u),this.handlePlaylistLoaded(n,o,u,x);return}this.resetInternalLoader(u.type);var E=n.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(n,u,"no EXTM3U delimiter",x);return}o.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(n,o,u,x):this.handleMasterPlaylist(n,o,u,x)},m.loaderror=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!1,n)},m.loadtimeout=function(n,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!0)},m.handleMasterPlaylist=function(n,o,u,x){var E=this.hls,v=n.data,O=w(n,u),A=_.default.parseMasterPlaylist(v,O),p=A.levels,h=A.sessionData;if(!p.length){this.handleManifestParsingError(n,u,"no level found in manifest",x);return}var s=p.map(function(C){return{id:C.attrs.AUDIO,audioCodec:C.audioCodec}}),l=p.map(function(C){return{id:C.attrs.SUBTITLES,textCodec:C.textCodec}}),D=_.default.parseMasterPlaylistMedia(v,O,"AUDIO",s),T=_.default.parseMasterPlaylistMedia(v,O,"SUBTITLES",l),S=_.default.parseMasterPlaylistMedia(v,O,"CLOSED-CAPTIONS");if(D.length){var I=D.some(function(C){return!C.url});!I&&p[0].audioCodec&&!p[0].attrs.AUDIO&&(j.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new c.AttrList({}),bitrate:0,url:""}))}E.trigger(B.Events.MANIFEST_LOADED,{levels:p,audioTracks:D,subtitles:T,captions:S,url:O,stats:o,networkDetails:x,sessionData:h})},m.handleTrackOrLevelPlaylist=function(n,o,u,x){var E=this.hls,v=u.id,O=u.level,A=u.type,p=w(n,u),h=Object(z.isFiniteNumber)(v)?v:0,s=Object(z.isFiniteNumber)(O)?O:h,l=g(u),D=_.default.parseLevelPlaylist(n.data,p,s,l,h);if(!D.fragments.length){E.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:p,reason:"no fragments found in level",level:typeof u.level=="number"?u.level:void 0});return}if(A===R.PlaylistContextType.MANIFEST){var T={attrs:new c.AttrList({}),bitrate:0,details:D,name:"",url:p};E.trigger(B.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:p,stats:o,networkDetails:x,sessionData:null})}if(o.parsing.end=performance.now(),D.needSidxRanges){var S,I=(S=D.fragments[0].initSegment)===null||S===void 0?void 0:S.url;this.load({url:I,isSidxRequest:!0,type:A,level:O,levelDetails:D,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=D,this.handlePlaylistLoaded(n,o,u,x)},m.handleSidxRequest=function(n,o){var u=Object(U.parseSegmentIndex)(new Uint8Array(n.data));if(!u)return;var x=u.references,E=o.levelDetails;x.forEach(function(v,O){var A=v.info,p=E.fragments[O];p.byteRange.length===0&&p.setByteRange(String(1+A.end-A.start)+"@"+String(A.start)),p.initSegment&&p.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},m.handleManifestParsingError=function(n,o,u,x){this.hls.trigger(B.Events.ERROR,{type:M.ErrorTypes.NETWORK_ERROR,details:M.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===R.PlaylistContextType.MANIFEST,url:n.url,reason:u,response:n,context:o,networkDetails:x})},m.handleNetworkError=function(n,o,u,x){u===void 0&&(u=!1),j.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+n.type+" level: "+n.level+" id: "+n.id+' group-id: "'+n.groupId+'"');var E=M.ErrorDetails.UNKNOWN,v=!1,O=this.getInternalLoader(n);switch(n.type){case R.PlaylistContextType.MANIFEST:E=u?M.ErrorDetails.MANIFEST_LOAD_TIMEOUT:M.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case R.PlaylistContextType.LEVEL:E=u?M.ErrorDetails.LEVEL_LOAD_TIMEOUT:M.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.AUDIO_TRACK:E=u?M.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:M.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case R.PlaylistContextType.SUBTITLE_TRACK:E=u?M.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:M.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}O&&this.resetInternalLoader(n.type);var A={type:M.ErrorTypes.NETWORK_ERROR,details:E,fatal:v,url:n.url,loader:O,context:n,networkDetails:o};x&&(A.response=x),this.hls.trigger(B.Events.ERROR,A)},m.handlePlaylistLoaded=function(n,o,u,x){var E=u.type,v=u.level,O=u.id,A=u.groupId,p=u.loader,h=u.levelDetails,s=u.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(n,u,"invalid target duration",x);return}if(!p)return;h.live&&(p.getCacheAge&&(h.ageHeader=p.getCacheAge()||0),(!p.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(E){case R.PlaylistContextType.MANIFEST:case R.PlaylistContextType.LEVEL:this.hls.trigger(B.Events.LEVEL_LOADED,{details:h,level:v||0,id:O||0,stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(B.Events.AUDIO_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break;case R.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(B.Events.SUBTITLE_TRACK_LOADED,{details:h,id:O||0,groupId:A||"",stats:o,networkDetails:x,deliveryDirectives:s});break}},f}();K.default=y},"./src/polyfills/number.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"isFiniteNumber",function(){return z}),P.d(K,"MAX_SAFE_INTEGER",function(){return B});var z=Number.isFinite||function(M){return typeof M=="number"&&isFinite(M)},B=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ee,K,P){"use strict";P.r(K);var z=function(){function B(){}return B.getSilentFrame=function(j,U){switch(j){case"mp4a.40.2":if(U===1)return new Uint8Array([0,200,0,128,35,128]);if(U===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(U===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(U===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(U===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(U===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(U===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(U===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},B}();K.default=z},"./src/remux/mp4-generator.ts":function(ee,K,P){"use strict";P.r(K);var z=Math.pow(2,32)-1,B=function(){function M(){}return M.init=function(){M.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var U;for(U in M.types)M.types.hasOwnProperty(U)&&(M.types[U]=[U.charCodeAt(0),U.charCodeAt(1),U.charCodeAt(2),U.charCodeAt(3)]);var _=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),R=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);M.HDLR_TYPES={video:_,audio:R};var c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),g=new Uint8Array([0,0,0,0,0,0,0,0]);M.STTS=M.STSC=M.STCO=g,M.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),M.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),M.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),M.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var w=new Uint8Array([105,115,111,109]),y=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);M.FTYP=M.box(M.types.ftyp,w,f,w,y),M.DINF=M.box(M.types.dinf,M.box(M.types.dref,c))},M.box=function(U){for(var _=8,R=arguments.length,c=new Array(R>1?R-1:0),g=1;g>24&255,f[1]=_>>16&255,f[2]=_>>8&255,f[3]=_&255,f.set(U,4),w=0,_=8;w>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,85,196,0,0]))},M.mdia=function(U){return M.box(M.types.mdia,M.mdhd(U.timescale,U.duration),M.hdlr(U.type),M.minf(U))},M.mfhd=function(U){return M.box(M.types.mfhd,new Uint8Array([0,0,0,0,U>>24,U>>16&255,U>>8&255,U&255]))},M.minf=function(U){return U.type==="audio"?M.box(M.types.minf,M.box(M.types.smhd,M.SMHD),M.DINF,M.stbl(U)):M.box(M.types.minf,M.box(M.types.vmhd,M.VMHD),M.DINF,M.stbl(U))},M.moof=function(U,_,R){return M.box(M.types.moof,M.mfhd(U),M.traf(R,_))},M.moov=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trak(U[_]);return M.box.apply(null,[M.types.moov,M.mvhd(U[0].timescale,U[0].duration)].concat(R).concat(M.mvex(U)))},M.mvex=function(U){for(var _=U.length,R=[];_--;)R[_]=M.trex(U[_]);return M.box.apply(null,[M.types.mvex].concat(R))},M.mvhd=function(U,_){_*=U;var R=Math.floor(_/(z+1)),c=Math.floor(_%(z+1)),g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,U>>24&255,U>>16&255,U>>8&255,U&255,R>>24,R>>16&255,R>>8&255,R&255,c>>24,c>>16&255,c>>8&255,c&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return M.box(M.types.mvhd,g)},M.sdtp=function(U){var _=U.samples||[],R=new Uint8Array(4+_.length),c,g;for(c=0;c<_.length;c++)g=_[c].flags,R[c+4]=g.dependsOn<<4|g.isDependedOn<<2|g.hasRedundancy;return M.box(M.types.sdtp,R)},M.stbl=function(U){return M.box(M.types.stbl,M.stsd(U),M.box(M.types.stts,M.STTS),M.box(M.types.stsc,M.STSC),M.box(M.types.stsz,M.STSZ),M.box(M.types.stco,M.STCO))},M.avc1=function(U){var _=[],R=[],c,g,w;for(c=0;c>>8&255),_.push(w&255),_=_.concat(Array.prototype.slice.call(g));for(c=0;c>>8&255),R.push(w&255),R=R.concat(Array.prototype.slice.call(g));var y=M.box(M.types.avcC,new Uint8Array([1,_[3],_[4],_[5],252|3,224|U.sps.length].concat(_).concat([U.pps.length]).concat(R))),f=U.width,m=U.height,a=U.pixelRatio[0],n=U.pixelRatio[1];return M.box(M.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,f>>8&255,f&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),y,M.box(M.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),M.box(M.types.pasp,new Uint8Array([a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255])))},M.esds=function(U){var _=U.config.length;return new Uint8Array([0,0,0,0,3,23+_,0,1,0,4,15+_,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([_]).concat(U.config).concat([6,1,2]))},M.mp4a=function(U){var _=U.samplerate;return M.box(M.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]),M.box(M.types.esds,M.esds(U)))},M.mp3=function(U){var _=U.samplerate;return M.box(M.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,U.channelCount,0,16,0,0,0,0,_>>8&255,_&255,0,0]))},M.stsd=function(U){return U.type==="audio"?!U.isAAC&&U.codec==="mp3"?M.box(M.types.stsd,M.STSD,M.mp3(U)):M.box(M.types.stsd,M.STSD,M.mp4a(U)):M.box(M.types.stsd,M.STSD,M.avc1(U))},M.tkhd=function(U){var _=U.id,R=U.duration*U.timescale,c=U.width,g=U.height,w=Math.floor(R/(z+1)),y=Math.floor(R%(z+1));return M.box(M.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,_>>24&255,_>>16&255,_>>8&255,_&255,0,0,0,0,w>>24,w>>16&255,w>>8&255,w&255,y>>24,y>>16&255,y>>8&255,y&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,c>>8&255,c&255,0,0,g>>8&255,g&255,0,0]))},M.traf=function(U,_){var R=M.sdtp(U),c=U.id,g=Math.floor(_/(z+1)),w=Math.floor(_%(z+1));return M.box(M.types.traf,M.box(M.types.tfhd,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255])),M.box(M.types.tfdt,new Uint8Array([1,0,0,0,g>>24,g>>16&255,g>>8&255,g&255,w>>24,w>>16&255,w>>8&255,w&255])),M.trun(U,R.length+16+20+8+16+8+8),R)},M.trak=function(U){return U.duration=U.duration||4294967295,M.box(M.types.trak,M.tkhd(U),M.mdia(U))},M.trex=function(U){var _=U.id;return M.box(M.types.trex,new Uint8Array([0,0,0,0,_>>24,_>>16&255,_>>8&255,_&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},M.trun=function(U,_){var R=U.samples||[],c=R.length,g=12+16*c,w=new Uint8Array(g),y,f,m,a,n,o;for(_+=8+g,w.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,c&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255],0),y=0;y>>24&255,m>>>16&255,m>>>8&255,m&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n.isLeading<<2|n.dependsOn,n.isDependedOn<<6|n.hasRedundancy<<4|n.paddingValue<<1|n.isNonSync,n.degradPrio&240<<8,n.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*y);return M.box(M.types.trun,w)},M.initSegment=function(U){M.types||M.init();var _=M.moov(U),R=new Uint8Array(M.FTYP.byteLength+_.byteLength);return R.set(M.FTYP),R.set(_,M.FTYP.byteLength),R},M}();B.types=void 0,B.HDLR_TYPES=void 0,B.STTS=void 0,B.STSC=void 0,B.STCO=void 0,B.STSZ=void 0,B.VMHD=void 0,B.SMHD=void 0,B.STSD=void 0,B.FTYP=void 0,B.DINF=void 0,K.default=B},"./src/remux/mp4-remuxer.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return o}),P.d(K,"normalizePts",function(){return u});var z=P("./src/polyfills/number.ts"),B=P("./src/remux/aac-helper.ts"),M=P("./src/remux/mp4-generator.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),_=P("./src/utils/logger.ts"),R=P("./src/types/loader.ts"),c=P("./src/utils/timescale-conversion.ts");function g(){return g=Object.assign||function(O){for(var A=1;A0?D:T.pts},h[0].pts);return s&&_.logger.debug("PTS rollover detected"),l},A.remux=function(h,s,l,D,T,S,I,C){var W,Y,H,F,q,le,pe=T,Ae=T,Ge=h.pid>-1,Fe=s.pid>-1,Ue=s.samples.length,_e=h.samples.length>0,je=Ue>1,xe=(!Ge||_e)&&(!Fe||je)||this.ISGenerated||I;if(xe){this.ISGenerated||(H=this.generateIS(h,s,T));var he=this.isVideoContiguous,te=-1;if(je&&(te=x(s.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if(le=!0,te>0){_.logger.warn("[mp4-remuxer]: Dropped "+te+" out of "+Ue+" video samples due to a missing keyframe");var ye=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(te),s.dropped+=te,Ae+=(s.samples[0].pts-ye)/(s.timescale||9e4)}else te===-1&&(_.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ue+" video samples"),le=!1);if(this.ISGenerated){if(_e&&je){var ue=this.getVideoStartPts(s.samples),Le=u(h.samples[0].pts,ue)-ue,ae=Le/s.inputTimeScale;pe+=Math.max(0,ae),Ae+=Math.max(0,-ae)}if(_e){if(h.samplerate||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),H=this.generateIS(h,s,T)),Y=this.remuxAudio(h,pe,this.isAudioContiguous,S,Fe||je||C===R.PlaylistLevelType.AUDIO?Ae:void 0),je){var oe=Y?Y.endPTS-Y.startPTS:0;s.inputTimeScale||(_.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),H=this.generateIS(h,s,T)),W=this.remuxVideo(s,Ae,he,oe)}}else je&&(W=this.remuxVideo(s,Ae,he,0));W&&(W.firstKeyFrame=te,W.independent=te!==-1)}}return this.ISGenerated&&(l.samples.length&&(q=this.remuxID3(l,T)),D.samples.length&&(F=this.remuxText(D,T))),{audio:Y,video:W,initSegment:H,independent:le,text:F,id3:q}},A.generateIS=function(h,s,l){var D=h.samples,T=s.samples,S=this.typeSupported,I={},C=!Object(z.isFiniteNumber)(this._initPTS),W="audio/mp4",Y,H,F;if(C&&(Y=H=Infinity),h.config&&D.length&&(h.timescale=h.samplerate,h.isAAC||(S.mpeg?(W="audio/mpeg",h.codec=""):S.mp3&&(h.codec="mp3")),I.audio={id:"audio",container:W,codec:h.codec,initSegment:!h.isAAC&&S.mpeg?new Uint8Array(0):M.default.initSegment([h]),metadata:{channelCount:h.channelCount}},C&&(F=h.inputTimeScale,Y=H=D[0].pts-Math.round(F*l))),s.sps&&s.pps&&T.length&&(s.timescale=s.inputTimeScale,I.video={id:"main",container:"video/mp4",codec:s.codec,initSegment:M.default.initSegment([s]),metadata:{width:s.width,height:s.height}},C)){F=s.inputTimeScale;var q=this.getVideoStartPts(T),le=Math.round(F*l);H=Math.min(H,u(T[0].dts,q)-le),Y=Math.min(Y,q-le)}if(Object.keys(I).length)return this.ISGenerated=!0,C&&(this._initPTS=Y,this._initDTS=H),{tracks:I,initPTS:Y,timescale:F}},A.remuxVideo=function(h,s,l,D){var T=h.inputTimeScale,S=h.samples,I=[],C=S.length,W=this._initPTS,Y=this.nextAvcDts,H=8,F,q,le,pe=Number.POSITIVE_INFINITY,Ae=Number.NEGATIVE_INFINITY,Ge=0,Fe=!1;if(!l||Y===null){var Ue=s*T,_e=S[0].pts-u(S[0].dts,S[0].pts);Y=Ue-_e}for(var je=0;jexe.pts){var he=9e4*.2;Ge=Math.max(Math.min(Ge,xe.pts-xe.dts),-1*he)}xe.dts0?je-1:je].dts&&(Fe=!0)}Fe&&S.sort(function(gt,qe){var Xe=gt.dts-qe.dts,Pe=gt.pts-qe.pts;return Xe||Pe}),q=S[0].dts,le=S[S.length-1].dts;var te=Math.round((le-q)/(C-1));if(Ge<0){if(Gete,Se=ae<-1;if(oe||Se){oe?_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms ("+ae+"dts) hole between fragments detected, filling it"):_.logger.warn("AVC: "+Object(c.toMsFromMpegTsClock)(-ae,!0)+" ms ("+ae+"dts) overlapping between fragments detected"),q=Y;var Me=S[0].pts-ae;S[0].dts=q,S[0].pts=Me,_.logger.log("Video: First PTS/DTS adjusted: "+Object(c.toMsFromMpegTsClock)(Me,!0)+"/"+Object(c.toMsFromMpegTsClock)(q,!0)+", delta: "+Object(c.toMsFromMpegTsClock)(ae,!0)+" ms")}}n&&(q=Math.max(0,q));for(var We=0,Ke=0,Qe=0;Qe0?we-1:we].dts;if(ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ee=Math.floor(ie.maxBufferHole*T),Be=(D?pe+D*T:this.nextAudioPts)-Je.pts;Be>Ee?(F=Be-ce,F<0&&(F=ce),_.logger.log("[mp4-remuxer]: It is approximately "+Be/90+" ms to the next segment; using duration "+F/90+" ms for the last video frame.")):F=ce}else F=ce}var Ie=Math.round(Je.pts-Je.dts);I.push(new E(Je.key,F,He,Ie))}if(I.length&&m&&m<70){var ut=I[0].flags;ut.dependsOn=2,ut.isNonSync=0}console.assert(F!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=Y=le+F,this.isVideoContiguous=!0;var bt=M.default.moof(h.sequenceNumber++,q,g({},h,{samples:I})),Tt="video",xt={data1:bt,data2:wt,startPTS:pe/T,endPTS:(Ae+F)/T,startDTS:q/T,endDTS:Y/T,type:Tt,hasAudio:!1,hasVideo:!0,nb:I.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(wt.length,"MDAT length must not be zero"),xt},A.remuxAudio=function(h,s,l,D,T){var S=h.inputTimeScale,I=h.samplerate?h.samplerate:S,C=S/I,W=h.isAAC?y:f,Y=W*C,H=this._initPTS,F=!h.isAAC&&this.typeSupported.mpeg,q=[],le=h.samples,pe=F?0:8,Ae=this.nextAudioPts||-1,Ge=s*S;if(this.isAudioContiguous=l=l||le.length&&Ae>0&&(D&&Math.abs(Ge-Ae)<9e3||Math.abs(u(le[0].pts-H,Ge)-Ae)<20*Y),le.forEach(function(be){be.pts=u(be.pts-H,Ge)}),!l||Ae<0){if(le=le.filter(function(be){return be.pts>=0}),!le.length)return;T===0?Ae=0:D?Ae=Math.max(0,Ge):Ae=le[0].pts}if(h.isAAC)for(var Fe=T!==void 0,Ue=this.config.maxAudioFramesDrift,_e=0,je=Ae;_e=Ue*Y&&ye0){Ke+=pe;try{We=new Uint8Array(Ke)}catch(be){this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:U.ErrorTypes.MUX_ERROR,details:U.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ke,reason:"fail allocating audio mdat "+Ke});return}if(!F){var wt=new DataView(We.buffer);wt.setUint32(0,Ke),We.set(M.default.types.mdat,4)}}else return;We.set(dt,pe);var Oe=dt.byteLength;pe+=Oe,q.push(new E(!0,W,Oe,0)),Me=pt}var we=q.length;if(!we)return;var Je=q[q.length-1];this.nextAudioPts=Ae=Me+C*Je.duration;var st=F?new Uint8Array(0):M.default.moof(h.sequenceNumber++,Se/C,g({},h,{samples:q}));h.samples=[];var He=Se/S,nt=Ae/S,Te="audio",ge={data1:st,data2:We,startPTS:He,endPTS:nt,startDTS:He,endDTS:nt,type:Te,hasAudio:!0,hasVideo:!1,nb:we};return this.isAudioContiguous=!0,console.assert(We.length,"MDAT length must not be zero"),ge},A.remuxEmptyAudio=function(h,s,l,D){var T=h.inputTimeScale,S=h.samplerate?h.samplerate:T,I=T/S,C=this.nextAudioPts,W=(C!==null?C:D.startDTS*T)+this._initDTS,Y=D.endDTS*T+this._initDTS,H=I*y,F=Math.ceil((Y-W)/H),q=B.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(_.logger.warn("[mp4-remuxer]: remux empty Audio"),!q){_.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var le=[],pe=0;pe4294967296;)O+=p;return O}function x(O){for(var A=0;A0?this.lastEndDTS=h:(j.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!O.audio,l=!!O.video,D="";s&&(D+="audio"),l&&(D+="video");var T={data1:E,startPTS:p,startDTS:p,endPTS:h,endDTS:h,type:D,hasAudio:s,hasVideo:l,nb:1,dropped:0};return x.audio=T.type==="audio"?T:void 0,x.video=T.type!=="audio"?T:void 0,x.text=a,x.id3=m,x.initSegment=v,x},c}(),_=function(g,w,y){return Object(B.getStartDTS)(g,w)-y};function R(c,g){var w=c==null?void 0:c.codec;return w&&w.length>4?w:w==="hvc1"?"hvc1.1.c.L120.90":w==="av01"?"av01.0.04M.08":w==="avc1"||g===M.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}K.default=U},"./src/task-loop.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"default",function(){return z});var z=function(){function B(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var M=B.prototype;return M.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},M.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},M.onHandlerDestroyed=function(){},M.hasInterval=function(){return!!this._tickInterval},M.hasNextTick=function(){return!!this._tickTimer},M.setInterval=function(U){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,U),!0)},M.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},M.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},M.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},M.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},M.doTick=function(){},B}()},"./src/types/cmcd.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"CMCDVersion",function(){return z}),P.d(K,"CMCDObjectType",function(){return B}),P.d(K,"CMCDStreamingFormat",function(){return M}),P.d(K,"CMCDStreamType",function(){return j});var z=1,B;(function(U){U.MANIFEST="m",U.AUDIO="a",U.VIDEO="v",U.MUXED="av",U.INIT="i",U.CAPTION="c",U.TIMED_TEXT="tt",U.KEY="k",U.OTHER="o"})(B||(B={}));var M;(function(U){U.DASH="d",U.HLS="h",U.SMOOTH="s",U.OTHER="o"})(M||(M={}));var j;(function(U){U.VOD="v",U.LIVE="l"})(j||(j={}))},"./src/types/level.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"HlsSkip",function(){return M}),P.d(K,"getSkipValue",function(){return j}),P.d(K,"HlsUrlParameters",function(){return U}),P.d(K,"Level",function(){return _});function z(R,c){for(var g=0;gNumber.MAX_SAFE_INTEGER?Infinity:c},U.hexadecimalInteger=function(R){if(this[R]){var c=(this[R]||"0x").slice(2);c=(c.length&1?"0":"")+c;for(var g=new Uint8Array(c.length/2),w=0;wNumber.MAX_SAFE_INTEGER?Infinity:c},U.decimalFloatingPoint=function(R){return parseFloat(this[R])},U.optionalFloat=function(R,c){var g=this[R];return g?parseFloat(g):c},U.enumeratedString=function(R){return this[R]},U.bool=function(R){return this[R]==="YES"},U.decimalResolution=function(R){var c=z.exec(this[R]);return c===null?void 0:{width:parseInt(c[1],10),height:parseInt(c[2],10)}},j.parseAttrList=function(R){var c,g={},w='"';for(B.lastIndex=0;(c=B.exec(R))!==null;){var y=c[2];y.indexOf(w)===0&&y.lastIndexOf(w)===y.length-1&&(y=y.slice(1,-1)),g[c[1]]=y}return g},j}()},"./src/utils/binary-search.ts":function(ee,K,P){"use strict";P.r(K);var z={search:function(M,j){for(var U=0,_=M.length-1,R=null,c=null;U<=_;){R=(U+_)/2|0,c=M[R];var g=j(c);if(g>0)U=R+1;else if(g<0)_=R-1;else return c}return null}};K.default=z},"./src/utils/buffer-helper.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"BufferHelper",function(){return M});var z=P("./src/utils/logger.ts"),B={length:0,start:function(){return 0},end:function(){return 0}},M=function(){function j(){}return j.isBuffered=function(_,R){try{if(_){for(var c=j.getBuffered(_),g=0;g=c.start(g)&&R<=c.end(g))return!0}}catch(w){}return!1},j.bufferInfo=function(_,R,c){try{if(_){var g=j.getBuffered(_),w=[],y;for(y=0;yf&&(g[y-1].end=_[w].end):g.push(_[w])}else g.push(_[w])}else g=_;for(var m=0,a,n=R,o=R,u=0;u=x&&R=l&&z.logger.log(this.time+" ["+l+"] "+D)},p}(),m=function(h){for(var s=[],l=0;lU&&(this.logger.log(y.DEBUG,"Too large cursor position "+this.pos),this.pos=U)},h.moveCursor=function(l){var D=this.pos+l;if(l>1)for(var T=this.pos+1;T=144&&this.backSpace();var D=M(l);if(this.pos>=U){this.logger.log(y.ERROR,"Cannot insert "+l.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(l){var D;for(D=l;D0&&(l?T="["+D.join(" | ")+"]":T=D.join(` +`)),T},h.getTextAndFormat=function(){return this.rows},p}(),x=function(){function p(s,l,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=s,this.outputFilter=l,this.mode=null,this.verbose=0,this.displayedMemory=new u(D),this.nonDisplayedMemory=new u(D),this.lastOutputScreen=new u(D),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var h=p.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[j-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(l){this.outputFilter=l},h.setPAC=function(l){this.writeScreen.setPAC(l)},h.setBkgData=function(l){this.writeScreen.setBkgData(l)},h.setMode=function(l){if(l===this.mode)return;this.mode=l,this.logger.log(y.INFO,"MODE="+l),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=l},h.insertChars=function(l){for(var D=0;D=46,D.italics)D.foreground="white";else{var T=Math.floor(l/2)-16,S=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=S[T]}this.logger.log(y.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},h.outputDataUpdate=function(l){l===void 0&&(l=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),l&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(l){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,l,this.displayedMemory),this.cueStartTime=l))},p}(),E=function(){function p(s,l,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new f;this.channels=[null,new x(s,l,T),new x(s+1,D,T)],this.cmdHistory=A(),this.logger=T}var h=p.prototype;return h.getHandler=function(l){return this.channels[l].getHandler()},h.setHandler=function(l,D){this.channels[l].setHandler(D)},h.addData=function(l,D){var T,S,I,C=!1;this.logger.time=l;for(var W=0;W ("+m([S,I])+")"),T=this.parseCmd(S,I),T||(T=this.parseMidrow(S,I)),T||(T=this.parsePAC(S,I)),T||(T=this.parseBackgroundAttributes(S,I)),!T&&(C=this.parseChars(S,I),C)){var Y=this.currentChannel;if(Y&&Y>0){var H=this.channels[Y];H.insertChars(C)}else this.logger.log(y.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!C&&this.logger.log(y.WARNING,"Couldn't parse cleaned data "+m([S,I])+" orig: "+m([D[W],D[W+1]]))}},h.parseCmd=function(l,D){var T=this.cmdHistory,S=(l===20||l===28||l===21||l===29)&&D>=32&&D<=47,I=(l===23||l===31)&&D>=33&&D<=35;if(!(S||I))return!1;if(O(l,D,T))return v(null,null,T),this.logger.log(y.DEBUG,"Repeated command ("+m([l,D])+") is dropped"),!0;var C=l===20||l===21||l===23?1:2,W=this.channels[C];return l===20||l===21||l===28||l===29?D===32?W.ccRCL():D===33?W.ccBS():D===34?W.ccAOF():D===35?W.ccAON():D===36?W.ccDER():D===37?W.ccRU(2):D===38?W.ccRU(3):D===39?W.ccRU(4):D===40?W.ccFON():D===41?W.ccRDC():D===42?W.ccTR():D===43?W.ccRTD():D===44?W.ccEDM():D===45?W.ccCR():D===46?W.ccENM():D===47&&W.ccEOC():W.ccTO(D-32),v(l,D,T),this.currentChannel=C,!0},h.parseMidrow=function(l,D){var T=0;if((l===17||l===25)&&D>=32&&D<=47){if(l===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(y.ERROR,"Mismatch channel in midrow parsing"),!1;var S=this.channels[T];return S?(S.ccMIDROW(D),this.logger.log(y.DEBUG,"MIDROW ("+m([l,D])+")"),!0):!1}return!1},h.parsePAC=function(l,D){var T,S=this.cmdHistory,I=(l>=17&&l<=23||l>=25&&l<=31)&&D>=64&&D<=127,C=(l===16||l===24)&&D>=64&&D<=95;if(!(I||C))return!1;if(O(l,D,S))return v(null,null,S),!0;var W=l<=23?1:2;D>=64&&D<=95?T=W===1?_[l]:c[l]:T=W===1?R[l]:g[l];var Y=this.channels[W];return Y?(Y.setPAC(this.interpretPAC(T,D)),v(l,D,S),this.currentChannel=W,!0):!1},h.interpretPAC=function(l,D){var T,S={color:null,italics:!1,indent:null,underline:!1,row:l};return D>95?T=D-96:T=D-64,S.underline=(T&1)===1,T<=13?S.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(S.italics=!0,S.color="white"):S.indent=Math.floor((T-16)/2)*4,S},h.parseChars=function(l,D){var T,S=null,I=null;if(l>=25?(T=2,I=l-8):(T=1,I=l),I>=17&&I<=19){var C;I===17?C=D+80:I===18?C=D+112:C=D+144,this.logger.log(y.INFO,"Special char '"+M(C)+"' in channel "+T),S=[C]}else l>=32&&l<=127&&(S=D===0?[l]:[l,D]);if(S){var W=m(S);this.logger.log(y.DEBUG,"Char codes = "+W.join(",")),v(l,D,this.cmdHistory)}return S},h.parseBackgroundAttributes=function(l,D){var T=(l===16||l===24)&&D>=32&&D<=47,S=(l===23||l===31)&&D>=45&&D<=47;if(!(T||S))return!1;var I,C={};l===16||l===24?(I=Math.floor((D-32)/2),C.background=w[I],D%2===1&&(C.background=C.background+"_semi")):D===45?C.background="transparent":(C.foreground="black",D===47&&(C.underline=!0));var W=l<=23?1:2,Y=this.channels[W];return Y.setBkgData(C),v(l,D,this.cmdHistory),!0},h.reset=function(){for(var l=0;l=16?n--:n++;var v=Object(z.fixLineBreaks)(o.trim()),O=Object(B.generateCueId)(c,g,v);(!R||!R.cues||!R.cues.getCueById(O))&&(m=new u(c,g,v),m.id=O,m.line=x+1,m.align="left",m.position=10+Math.min(80,Math.floor(n*8/32)*10),y.push(m))}return R&&y.length&&(y.sort(function(A,p){return A.line==="auto"||p.line==="auto"?0:A.line>8&&p.line>8?p.line-A.line:A.line-p.line}),y.forEach(function(A){return Object(M.addCueToTrack)(R,A)})),y}};K.default=U},"./src/utils/discontinuities.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"findFirstFragWithCC",function(){return j}),P.d(K,"shouldAlignOnDiscontinuities",function(){return U}),P.d(K,"findDiscontinuousReferenceFrag",function(){return _}),P.d(K,"adjustSlidingStart",function(){return c}),P.d(K,"alignStream",function(){return g}),P.d(K,"alignPDT",function(){return y}),P.d(K,"alignFragmentByPDTDelta",function(){return f}),P.d(K,"alignMediaPlaylistByPDT",function(){return m});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/logger.ts"),M=P("./src/controller/level-helper.ts");function j(a,n){for(var o=null,u=0,x=a.length;uo.startCC||a&&a.cc=this.minWeight_},j.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},j.destroy=function(){},M}();K.default=B},"./src/utils/ewma.ts":function(ee,K,P){"use strict";P.r(K);var z=function(){function B(j,U,_){U===void 0&&(U=0),_===void 0&&(_=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=j,this.alpha_=j?Math.exp(Math.log(.5)/j):0,this.estimate_=U,this.totalWeight_=_}var M=B.prototype;return M.sample=function(U,_){var R=Math.pow(this.alpha_,U);this.estimate_=_*(1-R)+R*this.estimate_,this.totalWeight_+=U},M.getTotalWeight=function(){return this.totalWeight_},M.getEstimate=function(){if(this.alpha_){var U=1-Math.pow(this.alpha_,this.totalWeight_);if(U)return this.estimate_/U}return this.estimate_},B}();K.default=z},"./src/utils/fetch-loader.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"fetchSupported",function(){return f});var z=P("./src/polyfills/number.ts"),B=P("./src/loader/load-stats.ts"),M=P("./src/demux/chunk-cache.ts");function j(u,x){u.prototype=Object.create(x.prototype),u.prototype.constructor=u,g(u,x)}function U(u){var x=typeof Map=="function"?new Map:void 0;return U=function(v){if(v===null||!c(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(v))return x.get(v);x.set(v,O)}function O(){return _(v,arguments,w(this).constructor)}return O.prototype=Object.create(v.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),g(O,v)},U(u)}function _(u,x,E){return R()?_=Reflect.construct:_=function(O,A,p){var h=[null];h.push.apply(h,A);var s=Function.bind.apply(O,h),l=new s;return p&&g(l,p.prototype),l},_.apply(null,arguments)}function R(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function c(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function g(u,x){return g=Object.setPrototypeOf||function(v,O){return v.__proto__=O,v},g(u,x)}function w(u){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},w(u)}function y(){return y=Object.assign||function(u){for(var x=1;x=p&&h(O,A,s.flush(),v)):h(O,A,I,v),T()}).catch(function(){return Promise.reject()})};return D()},u}();function a(u,x){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(y({},u.headers))};return u.rangeEnd&&E.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),E}function n(u,x){return new self.Request(u.url,x)}var o=function(u){j(x,u);function x(E,v,O){var A;return A=u.call(this,E)||this,A.code=void 0,A.details=void 0,A.code=v,A.details=O,A}return x}(U(Error));K.default=m},"./src/utils/imsc1-ttml-parser.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"IMSC1_CODEC",function(){return c}),P.d(K,"parseIMSC1",function(){return f});var z=P("./src/utils/mp4-tools.ts"),B=P("./src/utils/vttparser.ts"),M=P("./src/utils/vttcue.ts"),j=P("./src/demux/id3.ts"),U=P("./src/utils/timescale-conversion.ts"),_=P("./src/utils/webvtt-parser.ts");function R(){return R=Object.assign||function(p){for(var h=1;h"):z}function U(c){for(var g=arguments.length,w=new Array(g>1?g-1:0),y=1;y>24,x[E+1]=v>>16&255,x[E+2]=v>>8&255,x[E+3]=v&255}function g(x,E){var v=[];if(!E.length)return v;var O,A,p;"data"in x?(O=x.data,A=x.start,p=x.end):(O=x,A=0,p=O.byteLength);for(var h=A;h1?h+s:p;if(l===E[0])if(E.length===1)v.push({data:O,start:h+8,end:D});else{var T=g({data:O,start:h+8,end:D},E.slice(1));T.length&&j.apply(v,T)}h=D}return v}function w(x){var E=g(x,["moov"]),v=E[0],O=v?v.end:null,A=g(x,["sidx"]);if(!A||!A[0])return null;var p=[],h=A[0],s=h.data[0],l=s===0?8:16,D=R(h,l);l+=4;var T=0,S=0;s===0?l+=8:l+=16,l+=2;var I=h.end+S,C=_(h,l);l+=2;for(var W=0;W>>31;if(q===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var le=R(h,Y);Y+=4,p.push({referenceSize:F,subsegmentDuration:le,info:{duration:le/D,start:I,end:I+F-1}}),I+=F,Y+=4,l=Y}return{earliestPresentationTime:T,timescale:D,version:s,referencesCount:C,references:p,moovEndOffset:O}}function y(x){for(var E=[],v=g(x,["moov","trak"]),O=0;OU)&&(this.startTime=U),this.endTime=_,this.screen=R,this.timelineController.createCaptionsTrack(this.trackName)},M.reset=function(){this.cueRanges=[]},B}()},"./src/utils/texttrack-utils.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"sendAddTrackEvent",function(){return B}),P.d(K,"addCueToTrack",function(){return M}),P.d(K,"clearCurrentCues",function(){return j}),P.d(K,"removeCuesInRange",function(){return U}),P.d(K,"getCuesInRange",function(){return R});var z=P("./src/utils/logger.ts");function B(c,g){var w;try{w=new Event("addtrack")}catch(y){w=document.createEvent("Event"),w.initEvent("addtrack",!1,!1)}w.track=c,g.dispatchEvent(w)}function M(c,g){var w=c.mode;if(w==="disabled"&&(c.mode="hidden"),c.cues&&!c.cues.getCueById(g.id))try{if(c.addCue(g),!c.cues.getCueById(g.id))throw new Error("addCue is failed for: "+g)}catch(f){z.logger.debug("[texttrack-utils]: "+f);var y=new self.TextTrackCue(g.startTime,g.endTime,g.text);y.id=g.id,c.addCue(y)}w==="disabled"&&(c.mode=w)}function j(c){var g=c.mode;if(g==="disabled"&&(c.mode="hidden"),c.cues)for(var w=c.cues.length;w--;)c.removeCue(c.cues[w]);g==="disabled"&&(c.mode=g)}function U(c,g,w){var y=c.mode;if(y==="disabled"&&(c.mode="hidden"),c.cues&&c.cues.length>0)for(var f=R(c.cues,g,w),m=0;mc[w].endTime)return-1;for(var y=0,f=w;y<=f;){var m=Math.floor((f+y)/2);if(gc[m].startTime&&y-1)for(var m=f,a=c.length;m=g&&n.endTime<=w)y.push(n);else if(n.startTime>w)return y}return y}},"./src/utils/time-ranges.ts":function(ee,K,P){"use strict";P.r(K);var z={toString:function(M){for(var j="",U=M.length,_=0;_1?g-1:0),y=1;y100)throw new Error("Position must be between 0 and 100.");p=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"positionAlign",_({},f,{get:function(){return h},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");h=S,this.hasBeenReset=!0}})),Object.defineProperty(y,"size",_({},f,{get:function(){return s},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");s=T,this.hasBeenReset=!0}})),Object.defineProperty(y,"align",_({},f,{get:function(){return l},set:function(T){var S=U(T);if(!S)throw new SyntaxError("An invalid or illegal string was specified.");l=S,this.hasBeenReset=!0}})),y.displayState=void 0}return R.prototype.getCueAsHTML=function(){var c=self.WebVTT;return c.convertCueToDOMTree(self,this.text)},R}()},"./src/utils/vttparser.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"parseTimeStamp",function(){return M}),P.d(K,"fixLineBreaks",function(){return g}),P.d(K,"VTTParser",function(){return w});var z=P("./src/utils/vttcue.ts"),B=function(){function y(){}var f=y.prototype;return f.decode=function(a,n){if(!a)return"";if(typeof a!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))},y}();function M(y){function f(a,n,o,u){return(a|0)*3600+(n|0)*60+(o|0)+parseFloat(u||0)}var m=y.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return m?parseFloat(m[2])>59?f(m[2],m[3],0,m[4]):f(m[1],m[2],m[3],m[4]):null}var j=function(){function y(){this.values=Object.create(null)}var f=y.prototype;return f.set=function(a,n){!this.get(a)&&n!==""&&(this.values[a]=n)},f.get=function(a,n,o){return o?this.has(a)?this.values[a]:n[o]:this.has(a)?this.values[a]:n},f.has=function(a){return a in this.values},f.alt=function(a,n,o){for(var u=0;u=0&&o<=100)return this.set(a,o),!0}return!1},y}();function U(y,f,m,a){var n=a?y.split(a):[y];for(var o in n){if(typeof n[o]!="string")continue;var u=n[o].split(m);if(u.length!==2)continue;var x=u[0],E=u[1];f(x,E)}}var _=new z.default(0,0,""),R=_.align==="middle"?"middle":"center";function c(y,f,m){var a=y;function n(){var x=M(y);if(x===null)throw new Error("Malformed timestamp: "+a);return y=y.replace(/^[^\sa-zA-Z-]+/,""),x}function o(x,E){var v=new j;U(x,function(p,h){var s;switch(p){case"region":for(var l=m.length-1;l>=0;l--)if(m[l].id===h){v.set(p,m[l].region);break}break;case"vertical":v.alt(p,h,["rl","lr"]);break;case"line":s=h.split(","),v.integer(p,s[0]),v.percent(p,s[0])&&v.set("snapToLines",!1),v.alt(p,s[0],["auto"]),s.length===2&&v.alt("lineAlign",s[1],["start",R,"end"]);break;case"position":s=h.split(","),v.percent(p,s[0]),s.length===2&&v.alt("positionAlign",s[1],["start",R,"end","line-left","line-right","auto"]);break;case"size":v.percent(p,h);break;case"align":v.alt(p,h,["start",R,"end","left","right"]);break}},/:/,/\s/),E.region=v.get("region",null),E.vertical=v.get("vertical","");var O=v.get("line","auto");O==="auto"&&_.line===-1&&(O=-1),E.line=O,E.lineAlign=v.get("lineAlign","start"),E.snapToLines=v.get("snapToLines",!0),E.size=v.get("size",100),E.align=v.get("align",R);var A=v.get("position","auto");A==="auto"&&_.position===50&&(A=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=A}function u(){y=y.replace(/^\s+/,"")}if(u(),f.startTime=n(),u(),y.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+a);y=y.substr(3),u(),f.endTime=n(),u(),o(y,f)}function g(y){return y.replace(//gi,` `)}var w=function(){function y(){this.state="INITIAL",this.buffer="",this.decoder=new B,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var f=y.prototype;return f.parse=function(a){var n=this;a&&(n.buffer+=n.decoder.decode(a,{stream:!0}));function o(){var A=n.buffer,p=0;for(A=g(A);p")===-1){n.cue.id=x;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{c(x,n.cue,n.regionList)}catch(A){n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{var O=x.indexOf("-->")!==-1;if(!x||O&&(v=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=` `),n.cue.text+=x}continue;case"BADCUE":x||(n.state="ID")}}}catch(A){n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},f.flush=function(){var a=this;try{if((a.cue||a.state==="HEADER")&&(a.buffer+=` -`,a.parse()),a.state==="INITIAL"||a.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){a.onparsingerror&&a.onparsingerror(n)}return a.onflush&&a.onflush(),this},y}()},"./src/utils/webvtt-parser.ts":function(ee,K,k){"use strict";k.r(K),k.d(K,"generateCueId",function(){return w}),k.d(K,"parseWebVTT",function(){return f});var z=k("./src/polyfills/number.ts"),B=k("./src/utils/vttparser.ts"),M=k("./src/demux/id3.ts"),j=k("./src/utils/timescale-conversion.ts"),U=k("./src/remux/mp4-remuxer.ts"),_=/\r\n|\n\r|\n|\r/g,R=function(a,n,o){return o===void 0&&(o=0),a.substr(o,n.length)===n},c=function(a){var n=parseInt(a.substr(-3)),o=parseInt(a.substr(-6,2)),u=parseInt(a.substr(-9,2)),x=a.length>9?parseInt(a.substr(0,a.indexOf(":"))):0;if(!Object(z.isFiniteNumber)(n)||!Object(z.isFiniteNumber)(o)||!Object(z.isFiniteNumber)(u)||!Object(z.isFiniteNumber)(x))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+a);return n+=1e3*o,n+=60*1e3*u,n+=60*60*1e3*x,n},g=function(a){for(var n=5381,o=a.length;o;)n=n*33^a.charCodeAt(--o);return(n>>>0).toString()};function w(m,a,n){return g(m.toString())+g(a.toString())+g(n)}var y=function(a,n,o){var u=a[n],x=a[u.prevCC];if(!x||!x.new&&u.new){a.ccOffset=a.presentationOffset=u.start,u.new=!1;return}for(;(E=x)!==null&&E!==void 0&&E.new;){var E;a.ccOffset+=u.start-x.start,u.new=!1,u=x,x=a[u.prevCC]}a.presentationOffset=o};function f(m,a,n,o,u,x,E,v){var O=new B.VTTParser,A=Object(M.utf8ArrayToStr)(new Uint8Array(m)).trim().replace(_,` +`,a.parse()),a.state==="INITIAL"||a.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){a.onparsingerror&&a.onparsingerror(n)}return a.onflush&&a.onflush(),this},y}()},"./src/utils/webvtt-parser.ts":function(ee,K,P){"use strict";P.r(K),P.d(K,"generateCueId",function(){return w}),P.d(K,"parseWebVTT",function(){return f});var z=P("./src/polyfills/number.ts"),B=P("./src/utils/vttparser.ts"),M=P("./src/demux/id3.ts"),j=P("./src/utils/timescale-conversion.ts"),U=P("./src/remux/mp4-remuxer.ts"),_=/\r\n|\n\r|\n|\r/g,R=function(a,n,o){return o===void 0&&(o=0),a.substr(o,n.length)===n},c=function(a){var n=parseInt(a.substr(-3)),o=parseInt(a.substr(-6,2)),u=parseInt(a.substr(-9,2)),x=a.length>9?parseInt(a.substr(0,a.indexOf(":"))):0;if(!Object(z.isFiniteNumber)(n)||!Object(z.isFiniteNumber)(o)||!Object(z.isFiniteNumber)(u)||!Object(z.isFiniteNumber)(x))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+a);return n+=1e3*o,n+=60*1e3*u,n+=60*60*1e3*x,n},g=function(a){for(var n=5381,o=a.length;o;)n=n*33^a.charCodeAt(--o);return(n>>>0).toString()};function w(m,a,n){return g(m.toString())+g(a.toString())+g(n)}var y=function(a,n,o){var u=a[n],x=a[u.prevCC];if(!x||!x.new&&u.new){a.ccOffset=a.presentationOffset=u.start,u.new=!1;return}for(;(E=x)!==null&&E!==void 0&&E.new;){var E;a.ccOffset+=u.start-x.start,u.new=!1,u=x,x=a[u.prevCC]}a.presentationOffset=o};function f(m,a,n,o,u,x,E,v){var O=new B.VTTParser,A=Object(M.utf8ArrayToStr)(new Uint8Array(m)).trim().replace(_,` `).split(` `),p=[],h=Object(j.toMpegTsClockFromTimescale)(a,n),s="00:00.000",l=0,D=0,T,S=!0,I=!1;O.oncue=function(C){var W=o[u],Y=o.ccOffset,H=(l-h)/9e4;if(W!=null&&W.new&&(D!==void 0?Y=o.ccOffset=W.start:y(o,u,H)),H&&(Y=H-o.presentationOffset),I){var F=C.endTime-C.startTime,q=Object(U.normalizePts)((C.startTime+Y-D)*9e4,x*9e4)/9e4;C.startTime=q,C.endTime=q+F}var le=C.text.trim();C.text=decodeURIComponent(encodeURIComponent(le)),C.id||(C.id=w(C.startTime,C.endTime,le)),C.endTime>0&&p.push(C)},O.onparsingerror=function(C){T=C},O.onflush=function(){if(T){v(T);return}E(p)},A.forEach(function(C){if(S)if(R(C,"X-TIMESTAMP-MAP=")){S=!1,I=!0,C.substr(16).split(",").forEach(function(W){R(W,"LOCAL:")?s=W.substr(6):R(W,"MPEGTS:")&&(l=parseInt(W.substr(7)))});try{D=c(s)/1e3}catch(W){I=!1,T=W}return}else C===""&&(S=!1);O.parse(C+` -`)}),O.flush()}},"./src/utils/xhr-loader.ts":function(ee,K,k){"use strict";k.r(K);var z=k("./src/utils/logger.ts"),B=k("./src/loader/load-stats.ts"),M=/^age:\s*[\d.]+\s*$/m,j=function(){function U(R){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=R?R.xhrSetup:null,this.stats=new B.LoadStats,this.retryDelay=0}var _=U.prototype;return _.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},_.abortInternal=function(){var c=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),c&&(c.onreadystatechange=null,c.onprogress=null,c.readyState!==4&&(this.stats.aborted=!0,c.abort()))},_.abort=function(){var c;this.abortInternal(),(c=this.callbacks)!==null&&c!==void 0&&c.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},_.load=function(c,g,w){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=c,this.config=g,this.callbacks=w,this.retryDelay=g.retryDelay,this.loadInternal()},_.loadInternal=function(){var c=this.config,g=this.context;if(!c)return;var w=this.loader=new self.XMLHttpRequest,y=this.stats;y.loading.first=0,y.loaded=0;var f=this.xhrSetup;try{if(f)try{f(w,g.url)}catch(n){w.open("GET",g.url,!0),f(w,g.url)}w.readyState||w.open("GET",g.url,!0);var m=this.context.headers;if(m)for(var a in m)w.setRequestHeader(a,m[a])}catch(n){this.callbacks.onError({code:w.status,text:n.message},g,w);return}g.rangeEnd&&w.setRequestHeader("Range","bytes="+g.rangeStart+"-"+(g.rangeEnd-1)),w.onreadystatechange=this.readystatechange.bind(this),w.onprogress=this.loadprogress.bind(this),w.responseType=g.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),c.timeout),w.send()},_.readystatechange=function(){var c=this.context,g=this.loader,w=this.stats;if(!c||!g)return;var y=g.readyState,f=this.config;if(w.aborted)return;if(y>=2)if(self.clearTimeout(this.requestTimeout),w.loading.first===0&&(w.loading.first=Math.max(self.performance.now(),w.loading.start)),y===4){g.onreadystatechange=null,g.onprogress=null;var m=g.status;if(m>=200&&m<300){w.loading.end=Math.max(self.performance.now(),w.loading.first);var a,n;if(c.responseType==="arraybuffer"?(a=g.response,n=a.byteLength):(a=g.responseText,n=a.length),w.loaded=w.total=n,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(w,c,a,g),!this.callbacks)return;var u={url:g.responseURL,data:a};this.callbacks.onSuccess(u,w,c,g)}else w.retry>=f.maxRetry||m>=400&&m<499?(z.logger.error(m+" while loading "+c.url),this.callbacks.onError({code:m,text:g.statusText},c,g)):(z.logger.warn(m+" while loading "+c.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,f.maxRetryDelay),w.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),f.timeout)},_.loadtimeout=function(){z.logger.warn("timeout while loading "+this.context.url);var c=this.callbacks;c&&(this.abortInternal(),c.onTimeout(this.stats,this.context,this.loader))},_.loadprogress=function(c){var g=this.stats;g.loaded=c.loaded,c.lengthComputable&&(g.total=c.total)},_.getCacheAge=function(){var c=null;if(this.loader&&M.test(this.loader.getAllResponseHeaders())){var g=this.loader.getResponseHeader("age");c=g?parseFloat(g):null}return c},U}();K.default=j}}).default})},vHTk:function(et,de,N){et.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(et,de,N){"use strict";N.d(de,"a",function(){return dt});var ee=N("rePB"),K=N("VTBJ"),k=N("KQm4"),z=N("U8pU"),B=N("ODXe"),M=N("q1tI"),j=N("TSYQ"),U=N.n(j),_=N("Gytx"),R=N.n(_),c=N("Kwbf"),g=N("t23M"),w=N("qx4F"),y=N("6eGT"),f=N("IBYe"),m=N("Ff2n"),a=N("c+Xe"),n=N("fyJ8"),o=N("biw7");function u(Oe,we,Je,st,He){var nt=Je[Oe]||{},Te=Je[we]||{},ge,be;nt.fixed==="left"?ge=st.left[Oe]:Te.fixed==="right"&&(be=st.right[we]);var re=!1,ie=!1,ce=!1,Ee=!1,Be=Je[we+1],Ie=Je[Oe-1];if(He==="rtl"){if(ge!==void 0){var ut=Ie&&Ie.fixed==="left";Ee=!ut}else if(be!==void 0){var bt=Be&&Be.fixed==="right";ce=!bt}}else if(ge!==void 0){var Tt=Be&&Be.fixed==="left";re=!Tt}else if(be!==void 0){var xt=Ie&&Ie.fixed==="right";ie=!xt}return{fixLeft:ge,fixRight:be,lastFixLeft:re,firstFixRight:ie,lastFixRight:ce,firstFixLeft:Ee,isSticky:st.isSticky}}var x=N("sR1s");function E(Oe){var we=Oe.cells,Je=Oe.stickyOffsets,st=Oe.flattenColumns,He=Oe.rowComponent,nt=Oe.cellComponent,Te=Oe.onHeaderRow,ge=Oe.index,be=M.useContext(o.a),re=be.prefixCls,ie=be.direction,ce;Te&&(ce=Te(we.map(function(Be){return Be.column}),ge));var Ee=Object(x.a)(we.map(function(Be){return Be.column}));return M.createElement(He,Object.assign({},ce),we.map(function(Be,Ie){var ut=Be.column,bt=u(Be.colStart,Be.colEnd,st,Je,ie),Tt;return ut&&ut.onHeaderCell&&(Tt=Be.column.onHeaderCell(ut)),M.createElement(n.a,Object.assign({},Be,{ellipsis:ut.ellipsis,align:ut.align,component:nt,prefixCls:re,key:Ee[Ie]},bt,{additionalProps:Tt,rowType:"header"}))}))}E.displayName="HeaderRow";var v=E;function O(Oe){var we=[];function Je(Te,ge){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[be]=we[be]||[];var re=ge,ie=Te.filter(Boolean).map(function(ce){var Ee={key:ce.key,className:ce.className||"",children:ce.title,column:ce,colStart:re},Be=1,Ie=ce.children;return Ie&&Ie.length>0&&(Be=Je(Ie,re,be+1).reduce(function(ut,bt){return ut+bt},0),Ee.hasSubColumns=!0),"colSpan"in ce&&(Be=ce.colSpan),"rowSpan"in ce&&(Ee.rowSpan=ce.rowSpan),Ee.colSpan=Be,Ee.colEnd=Ee.colStart+Be-1,we[be].push(Ee),re+=Be,Be});return ie}Je(Oe,0);for(var st=we.length,He=function(ge){we[ge].forEach(function(be){!("rowSpan"in be)&&!be.hasSubColumns&&(be.rowSpan=st-ge)})},nt=0;nt=0;ge-=1){var be=we[ge],re=Je&&Je[ge],ie=re&&re[h.a];(be||ie||Te)&&(He.unshift(M.createElement("col",Object.assign({key:ge,style:{width:be,minWidth:be}},ie))),Te=!0)}return M.createElement("colgroup",null,He)}var l=s;function D(Oe,we){return Object(M.useMemo)(function(){for(var Je=[],st=0;st1?V-1:0),Q=1;Q=ce&&(Ct=ce-Ee),Te({scrollLeft:Ct/ce*(ie+2)}),xt.current.x=Ne.pageX},Pe=function(){var Ne=Object(We.b)(nt.current).top,Ve=Ne+nt.current.offsetHeight,tt=document.documentElement.scrollTop+window.innerHeight;Ve-Object(w.a)()<=tt||Ne>=tt-ge?Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!0})}):Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!1})})},it=function(Ne){Tt(function(Ve){return Object(K.a)(Object(K.a)({},Ve),{},{scrollLeft:Ne/ie*ce||0})})};return M.useImperativeHandle(Je,function(){return{setScrollLeft:it}}),M.useEffect(function(){var at=Object(Me.a)(document.body,"mouseup",se,!1),Ne=Object(Me.a)(document.body,"mousemove",$e,!1);return Pe(),function(){at.remove(),Ne.remove()}},[Ee,Xe]),M.useEffect(function(){var at=Object(Me.a)(window,"scroll",Pe,!1),Ne=Object(Me.a)(window,"resize",Pe,!1);return function(){at.remove(),Ne.remove()}},[]),M.useEffect(function(){bt.isHiddenScrollBar||Tt(function(at){var Ne,Ve;return Object(K.a)(Object(K.a)({},at),{},{scrollLeft:nt.current.scrollLeft/((Ne=nt.current)===null||Ne===void 0?void 0:Ne.scrollWidth)*((Ve=nt.current)===null||Ve===void 0?void 0:Ve.clientWidth)})})},[bt.isHiddenScrollBar]),ie<=ce||!Ee||bt.isHiddenScrollBar?null:M.createElement("div",{style:{height:Object(w.a)(),width:ce,bottom:ge},className:"".concat(re,"-sticky-scroll")},M.createElement("div",{onMouseDown:fe,ref:Be,className:U()("".concat(re,"-sticky-scroll-bar"),Object(ee.a)({},"".concat(re,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(bt.scrollLeft,"px, 0, 0)")}}))},Qe=M.forwardRef(Ke);function Ze(Oe,we){return M.useMemo(function(){var Je=!!Oe;return{isSticky:Je,stickyClassName:Je?"".concat(we,"-sticky-header"):"",offsetHeader:Object(z.a)(Oe)==="object"&&Oe.offsetHeader||0,offsetScroll:Object(z.a)(Oe)==="object"&&Oe.offsetScroll||0}},[Oe,we])}var yt=[],vt={},dt="rc-table-internal-hook",pt=M.memo(function(Oe){var we=Oe.children;return we},function(Oe,we){return R()(Oe.props,we.props)?Oe.pingLeft!==we.pingLeft||Oe.pingRight!==we.pingRight:!1});function At(Oe){var we,Je=Oe.prefixCls,st=Oe.className,He=Oe.rowClassName,nt=Oe.style,Te=Oe.data,ge=Oe.rowKey,be=Oe.scroll,re=Oe.tableLayout,ie=Oe.direction,ce=Oe.title,Ee=Oe.footer,Be=Oe.summary,Ie=Oe.id,ut=Oe.showHeader,bt=Oe.components,Tt=Oe.emptyText,xt=Oe.onRow,gt=Oe.onHeaderRow,qe=Oe.internalHooks,Xe=Oe.transformColumns,ke=Oe.internalRefs,se=Oe.sticky,fe=Te||yt,$e=!!fe.length,Pe=M.useState(0),it=Object(B.a)(Pe,2),at=it[0],Ne=it[1];M.useEffect(function(){Ne(Object(w.a)())});var Ve=M.useMemo(function(){return Object(x.c)(bt,{})},[bt]),tt=M.useCallback(function(Kt,pn){return Object(x.b)(Ve,Kt)||pn},[Ve]),ft=M.useMemo(function(){return typeof ge=="function"?ge:function(Kt){var pn=Kt&&Kt[ge];return pn}},[ge]),Ct=Object(h.c)(Oe),zt=Ct.expandIcon,qt=Ct.expandedRowKeys,Qt=Ct.defaultExpandedRowKeys,St=Ct.defaultExpandAllRows,ln=Ct.expandedRowRender,Bt=Ct.onExpand,Yt=Ct.onExpandedRowsChange,Mt=Ct.expandRowByClick,tn=Ct.rowExpandable,mn=Ct.expandIconColumnIndex,An=Ct.expandedRowClassName,lt=Ct.childrenColumnName,Rt=Ct.indentSize,Jt=zt||oe,nn=lt||"children",un=M.useMemo(function(){return ln?"row":Oe.expandable&&qe===dt&&Oe.expandable.__PARENT_RENDER_ICON__||fe.some(function(Kt){return Kt&&Object(z.a)(Kt)==="object"&&Kt[nn]})?"nest":!1},[!!ln,fe]),cn=M.useState(function(){return Qt||(St?Se(fe,ft,nn):[])}),G=Object(B.a)(cn,2),b=G[0],L=G[1],V=M.useMemo(function(){return new Set(qt||b||[])},[qt,b]),J=M.useCallback(function(Kt){var pn=ft(Kt,fe.indexOf(Kt)),Cn,ur=V.has(pn);ur?(V.delete(pn),Cn=Object(k.a)(V)):Cn=[].concat(Object(k.a)(V),[pn]),L(Cn),Bt&&Bt(!ur,Kt),Yt&&Yt(Cn)},[ft,V,fe,Bt,Yt]),Q=M.useState(0),De=Object(B.a)(Q,2),ot=De[0],Ot=De[1],Ft=Object(Ue.b)(Object(K.a)(Object(K.a)(Object(K.a)({},Oe),Ct),{},{expandable:!!ln,expandedKeys:V,getRowKey:ft,onTriggerExpand:J,expandIcon:Jt,expandIconColumnIndex:mn,direction:ie}),qe===dt?Xe:null),ve=Object(B.a)(Ft,2),Gt=ve[0],en=ve[1],Tn=M.useMemo(function(){return{columns:Gt,flattenColumns:en}},[Gt,en]),Wn=M.useRef(),tr=M.useRef(),Rn=M.useRef(),or=M.useState(!1),fr=Object(B.a)(or,2),Vn=fr[0],sr=fr[1],Jn=M.useState(!1),Mr=Object(B.a)(Jn,2),Xn=Mr[0],Ir=Mr[1],yr=xe(new Map),Tr=Object(B.a)(yr,2),Yr=Tr[0],br=Tr[1],nr=Object(x.a)(en),Ur=nr.map(function(Kt){return Yr.get(Kt)}),_r=M.useMemo(function(){return Ur},[Ur.join("_")]),Fr=ye(_r,en.length,ie),Sn=be&&Object(x.d)(be.y),hn=be&&Object(x.d)(be.x),Pn=hn&&en.some(function(Kt){var pn=Kt.fixed;return pn}),yn=M.useRef(),Ln=Ze(se,Je),bn=Ln.isSticky,wr=Ln.offsetHeader,Bn=Ln.offsetScroll,Qn=Ln.stickyClassName,zr,jr,Dr;Sn&&(jr={overflowY:"scroll",maxHeight:be.y}),hn&&(zr={overflowX:"auto"},Sn||(jr={overflowY:"hidden"}),Dr={width:be.x===!0?"auto":be.x,minWidth:"100%"});var Jr=M.useCallback(function(Kt,pn){br(function(Cn){var ur=new Map(Cn);return ur.set(Kt,pn),ur})},[]),rr=he(null),Wr=Object(B.a)(rr,2),Er=Wr[0],Hr=Wr[1];function Zr(Kt,pn){if(!pn)return;typeof pn=="function"?pn(Kt):pn.scrollLeft!==Kt&&(pn.scrollLeft=Kt)}var ir=function(pn){var Cn=pn.currentTarget,ur=pn.scrollLeft,qr=typeof ur=="number"?ur:Cn.scrollLeft,Rr=Cn||vt;if(!Hr()||Hr()===Rr){var gi;Er(Rr),Zr(qr,tr.current),Zr(qr,Rn.current),Zr(qr,(gi=yn.current)===null||gi===void 0?void 0:gi.setScrollLeft)}if(Cn){var vi=Cn.scrollWidth,ai=Cn.clientWidth;sr(qr>0),Ir(qr0?[].concat(Object(K.a)(m),Object(K.a)(c(u).map(function(x){return Object(k.a)({fixed:o},x)}))):[].concat(Object(K.a)(m),[Object(k.a)(Object(k.a)({},a),{},{fixed:o})])},[])}function g(f){for(var m=!0,a=0;a=0;u-=1){var x=f[u];if(o&&x.fixed!=="right")o=!1;else if(!o&&x.fixed==="right"){Object(j.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function w(f){return f.map(function(m){var a=m.fixed,n=Object(z.a)(m,["fixed"]),o=a;return a==="left"?o="right":a==="right"&&(o="left"),Object(k.a)({fixed:o},n)})}function y(f,m){var a=f.prefixCls,n=f.columns,o=f.children,u=f.expandable,x=f.expandedKeys,E=f.getRowKey,v=f.onTriggerExpand,O=f.expandIcon,A=f.rowExpandable,p=f.expandIconColumnIndex,h=f.direction,s=f.expandRowByClick,l=B.useMemo(function(){return n||R(o)},[n,o]),D=B.useMemo(function(){if(u){var I,C=p||0,W=l[C],Y=(I={},Object(ee.a)(I,_.a,{className:"".concat(a,"-expand-icon-col")}),Object(ee.a)(I,"title",""),Object(ee.a)(I,"fixed",W?W.fixed:null),Object(ee.a)(I,"className","".concat(a,"-row-expand-icon-cell")),Object(ee.a)(I,"render",function(q,le,pe){var Ae=E(le,pe),Ge=x.has(Ae),Fe=A?A(le):!0,Ue=O({prefixCls:a,expanded:Ge,expandable:Fe,record:le,onExpand:v});return s?B.createElement("span",{onClick:function(je){return je.stopPropagation()}},Ue):Ue}),I),H=l.slice();return C>=0&&H.splice(C,0,Y),H}return l},[u,l,E,x,O,h]),T=B.useMemo(function(){var I=D;return m&&(I=m(I)),I.length||(I=[{render:function(){return null}}]),I},[m,D,h]),S=B.useMemo(function(){return h==="rtl"?w(c(T)):c(T)},[T,h]);return[T,S]}de.b=y},"y0+3":function(et,de,N){"use strict";N.d(de,"a",function(){return c}),N.d(de,"b",function(){return w});var ee=/margin|padding|width|height|max|min|offset/,K={left:!0,top:!0},k={cssFloat:1,styleFloat:1,float:1};function z(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function B(y,f,m){if(f=f.toLowerCase(),m==="auto"){if(f==="height")return y.offsetHeight;if(f==="width")return y.offsetWidth}return f in K||(K[f]=ee.test(f)),K[f]?parseFloat(m)||0:m}function M(y,f){var m=arguments.length,a=z(y);return f=k[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,m===1?a:B(y,f,a[f]||y.style[f])}function j(y,f,m){var a=arguments.length;if(f=k[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,a===3)return typeof m=="number"&&ee.test(f)&&(m="".concat(m,"px")),y.style[f]=m,m;for(var n in f)f.hasOwnProperty(n)&&j(y,n,f[n]);return z(y)}function U(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function _(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function R(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:f}}function c(){var y=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:f}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function w(y){var f=y.getBoundingClientRect(),m=document.documentElement;return{left:f.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},yslc:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); +`)}),O.flush()}},"./src/utils/xhr-loader.ts":function(ee,K,P){"use strict";P.r(K);var z=P("./src/utils/logger.ts"),B=P("./src/loader/load-stats.ts"),M=/^age:\s*[\d.]+\s*$/m,j=function(){function U(R){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=R?R.xhrSetup:null,this.stats=new B.LoadStats,this.retryDelay=0}var _=U.prototype;return _.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},_.abortInternal=function(){var c=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),c&&(c.onreadystatechange=null,c.onprogress=null,c.readyState!==4&&(this.stats.aborted=!0,c.abort()))},_.abort=function(){var c;this.abortInternal(),(c=this.callbacks)!==null&&c!==void 0&&c.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},_.load=function(c,g,w){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=c,this.config=g,this.callbacks=w,this.retryDelay=g.retryDelay,this.loadInternal()},_.loadInternal=function(){var c=this.config,g=this.context;if(!c)return;var w=this.loader=new self.XMLHttpRequest,y=this.stats;y.loading.first=0,y.loaded=0;var f=this.xhrSetup;try{if(f)try{f(w,g.url)}catch(n){w.open("GET",g.url,!0),f(w,g.url)}w.readyState||w.open("GET",g.url,!0);var m=this.context.headers;if(m)for(var a in m)w.setRequestHeader(a,m[a])}catch(n){this.callbacks.onError({code:w.status,text:n.message},g,w);return}g.rangeEnd&&w.setRequestHeader("Range","bytes="+g.rangeStart+"-"+(g.rangeEnd-1)),w.onreadystatechange=this.readystatechange.bind(this),w.onprogress=this.loadprogress.bind(this),w.responseType=g.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),c.timeout),w.send()},_.readystatechange=function(){var c=this.context,g=this.loader,w=this.stats;if(!c||!g)return;var y=g.readyState,f=this.config;if(w.aborted)return;if(y>=2)if(self.clearTimeout(this.requestTimeout),w.loading.first===0&&(w.loading.first=Math.max(self.performance.now(),w.loading.start)),y===4){g.onreadystatechange=null,g.onprogress=null;var m=g.status;if(m>=200&&m<300){w.loading.end=Math.max(self.performance.now(),w.loading.first);var a,n;if(c.responseType==="arraybuffer"?(a=g.response,n=a.byteLength):(a=g.responseText,n=a.length),w.loaded=w.total=n,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(w,c,a,g),!this.callbacks)return;var u={url:g.responseURL,data:a};this.callbacks.onSuccess(u,w,c,g)}else w.retry>=f.maxRetry||m>=400&&m<499?(z.logger.error(m+" while loading "+c.url),this.callbacks.onError({code:m,text:g.statusText},c,g)):(z.logger.warn(m+" while loading "+c.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,f.maxRetryDelay),w.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),f.timeout)},_.loadtimeout=function(){z.logger.warn("timeout while loading "+this.context.url);var c=this.callbacks;c&&(this.abortInternal(),c.onTimeout(this.stats,this.context,this.loader))},_.loadprogress=function(c){var g=this.stats;g.loaded=c.loaded,c.lengthComputable&&(g.total=c.total)},_.getCacheAge=function(){var c=null;if(this.loader&&M.test(this.loader.getAllResponseHeaders())){var g=this.loader.getResponseHeader("age");c=g?parseFloat(g):null}return c},U}();K.default=j}}).default})},vHTk:function(et,de,N){et.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(et,de,N){"use strict";N.d(de,"a",function(){return dt});var ee=N("rePB"),K=N("VTBJ"),P=N("KQm4"),z=N("U8pU"),B=N("ODXe"),M=N("q1tI"),j=N("TSYQ"),U=N.n(j),_=N("Gytx"),R=N.n(_),c=N("Kwbf"),g=N("t23M"),w=N("qx4F"),y=N("6eGT"),f=N("IBYe"),m=N("Ff2n"),a=N("c+Xe"),n=N("fyJ8"),o=N("biw7");function u(Oe,we,Je,st,He){var nt=Je[Oe]||{},Te=Je[we]||{},ge,be;nt.fixed==="left"?ge=st.left[Oe]:Te.fixed==="right"&&(be=st.right[we]);var re=!1,ie=!1,ce=!1,Ee=!1,Be=Je[we+1],Ie=Je[Oe-1];if(He==="rtl"){if(ge!==void 0){var ut=Ie&&Ie.fixed==="left";Ee=!ut}else if(be!==void 0){var bt=Be&&Be.fixed==="right";ce=!bt}}else if(ge!==void 0){var Tt=Be&&Be.fixed==="left";re=!Tt}else if(be!==void 0){var xt=Ie&&Ie.fixed==="right";ie=!xt}return{fixLeft:ge,fixRight:be,lastFixLeft:re,firstFixRight:ie,lastFixRight:ce,firstFixLeft:Ee,isSticky:st.isSticky}}var x=N("sR1s");function E(Oe){var we=Oe.cells,Je=Oe.stickyOffsets,st=Oe.flattenColumns,He=Oe.rowComponent,nt=Oe.cellComponent,Te=Oe.onHeaderRow,ge=Oe.index,be=M.useContext(o.a),re=be.prefixCls,ie=be.direction,ce;Te&&(ce=Te(we.map(function(Be){return Be.column}),ge));var Ee=Object(x.a)(we.map(function(Be){return Be.column}));return M.createElement(He,Object.assign({},ce),we.map(function(Be,Ie){var ut=Be.column,bt=u(Be.colStart,Be.colEnd,st,Je,ie),Tt;return ut&&ut.onHeaderCell&&(Tt=Be.column.onHeaderCell(ut)),M.createElement(n.a,Object.assign({},Be,{ellipsis:ut.ellipsis,align:ut.align,component:nt,prefixCls:re,key:Ee[Ie]},bt,{additionalProps:Tt,rowType:"header"}))}))}E.displayName="HeaderRow";var v=E;function O(Oe){var we=[];function Je(Te,ge){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[be]=we[be]||[];var re=ge,ie=Te.filter(Boolean).map(function(ce){var Ee={key:ce.key,className:ce.className||"",children:ce.title,column:ce,colStart:re},Be=1,Ie=ce.children;return Ie&&Ie.length>0&&(Be=Je(Ie,re,be+1).reduce(function(ut,bt){return ut+bt},0),Ee.hasSubColumns=!0),"colSpan"in ce&&(Be=ce.colSpan),"rowSpan"in ce&&(Ee.rowSpan=ce.rowSpan),Ee.colSpan=Be,Ee.colEnd=Ee.colStart+Be-1,we[be].push(Ee),re+=Be,Be});return ie}Je(Oe,0);for(var st=we.length,He=function(ge){we[ge].forEach(function(be){!("rowSpan"in be)&&!be.hasSubColumns&&(be.rowSpan=st-ge)})},nt=0;nt=0;ge-=1){var be=we[ge],re=Je&&Je[ge],ie=re&&re[h.a];(be||ie||Te)&&(He.unshift(M.createElement("col",Object.assign({key:ge,style:{width:be,minWidth:be}},ie))),Te=!0)}return M.createElement("colgroup",null,He)}var l=s;function D(Oe,we){return Object(M.useMemo)(function(){for(var Je=[],st=0;st1?V-1:0),Q=1;Q=ce&&(Ct=ce-Ee),Te({scrollLeft:Ct/ce*(ie+2)}),xt.current.x=Ne.pageX},ke=function(){var Ne=Object(We.b)(nt.current).top,Ve=Ne+nt.current.offsetHeight,tt=document.documentElement.scrollTop+window.innerHeight;Ve-Object(w.a)()<=tt||Ne>=tt-ge?Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!0})}):Tt(function(ft){return Object(K.a)(Object(K.a)({},ft),{},{isHiddenScrollBar:!1})})},it=function(Ne){Tt(function(Ve){return Object(K.a)(Object(K.a)({},Ve),{},{scrollLeft:Ne/ie*ce||0})})};return M.useImperativeHandle(Je,function(){return{setScrollLeft:it}}),M.useEffect(function(){var at=Object(Me.a)(document.body,"mouseup",se,!1),Ne=Object(Me.a)(document.body,"mousemove",$e,!1);return ke(),function(){at.remove(),Ne.remove()}},[Ee,Xe]),M.useEffect(function(){var at=Object(Me.a)(window,"scroll",ke,!1),Ne=Object(Me.a)(window,"resize",ke,!1);return function(){at.remove(),Ne.remove()}},[]),M.useEffect(function(){bt.isHiddenScrollBar||Tt(function(at){var Ne,Ve;return Object(K.a)(Object(K.a)({},at),{},{scrollLeft:nt.current.scrollLeft/((Ne=nt.current)===null||Ne===void 0?void 0:Ne.scrollWidth)*((Ve=nt.current)===null||Ve===void 0?void 0:Ve.clientWidth)})})},[bt.isHiddenScrollBar]),ie<=ce||!Ee||bt.isHiddenScrollBar?null:M.createElement("div",{style:{height:Object(w.a)(),width:ce,bottom:ge},className:"".concat(re,"-sticky-scroll")},M.createElement("div",{onMouseDown:fe,ref:Be,className:U()("".concat(re,"-sticky-scroll-bar"),Object(ee.a)({},"".concat(re,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(Ee,"px"),transform:"translate3d(".concat(bt.scrollLeft,"px, 0, 0)")}}))},Qe=M.forwardRef(Ke);function Ze(Oe,we){return M.useMemo(function(){var Je=!!Oe;return{isSticky:Je,stickyClassName:Je?"".concat(we,"-sticky-header"):"",offsetHeader:Object(z.a)(Oe)==="object"&&Oe.offsetHeader||0,offsetScroll:Object(z.a)(Oe)==="object"&&Oe.offsetScroll||0}},[Oe,we])}var yt=[],vt={},dt="rc-table-internal-hook",pt=M.memo(function(Oe){var we=Oe.children;return we},function(Oe,we){return R()(Oe.props,we.props)?Oe.pingLeft!==we.pingLeft||Oe.pingRight!==we.pingRight:!1});function At(Oe){var we,Je=Oe.prefixCls,st=Oe.className,He=Oe.rowClassName,nt=Oe.style,Te=Oe.data,ge=Oe.rowKey,be=Oe.scroll,re=Oe.tableLayout,ie=Oe.direction,ce=Oe.title,Ee=Oe.footer,Be=Oe.summary,Ie=Oe.id,ut=Oe.showHeader,bt=Oe.components,Tt=Oe.emptyText,xt=Oe.onRow,gt=Oe.onHeaderRow,qe=Oe.internalHooks,Xe=Oe.transformColumns,Pe=Oe.internalRefs,se=Oe.sticky,fe=Te||yt,$e=!!fe.length,ke=M.useState(0),it=Object(B.a)(ke,2),at=it[0],Ne=it[1];M.useEffect(function(){Ne(Object(w.a)())});var Ve=M.useMemo(function(){return Object(x.c)(bt,{})},[bt]),tt=M.useCallback(function(Kt,pn){return Object(x.b)(Ve,Kt)||pn},[Ve]),ft=M.useMemo(function(){return typeof ge=="function"?ge:function(Kt){var pn=Kt&&Kt[ge];return pn}},[ge]),Ct=Object(h.c)(Oe),zt=Ct.expandIcon,qt=Ct.expandedRowKeys,Qt=Ct.defaultExpandedRowKeys,St=Ct.defaultExpandAllRows,ln=Ct.expandedRowRender,Bt=Ct.onExpand,Yt=Ct.onExpandedRowsChange,Mt=Ct.expandRowByClick,tn=Ct.rowExpandable,mn=Ct.expandIconColumnIndex,An=Ct.expandedRowClassName,lt=Ct.childrenColumnName,Rt=Ct.indentSize,Jt=zt||oe,nn=lt||"children",un=M.useMemo(function(){return ln?"row":Oe.expandable&&qe===dt&&Oe.expandable.__PARENT_RENDER_ICON__||fe.some(function(Kt){return Kt&&Object(z.a)(Kt)==="object"&&Kt[nn]})?"nest":!1},[!!ln,fe]),cn=M.useState(function(){return Qt||(St?Se(fe,ft,nn):[])}),G=Object(B.a)(cn,2),b=G[0],L=G[1],V=M.useMemo(function(){return new Set(qt||b||[])},[qt,b]),J=M.useCallback(function(Kt){var pn=ft(Kt,fe.indexOf(Kt)),Cn,ur=V.has(pn);ur?(V.delete(pn),Cn=Object(P.a)(V)):Cn=[].concat(Object(P.a)(V),[pn]),L(Cn),Bt&&Bt(!ur,Kt),Yt&&Yt(Cn)},[ft,V,fe,Bt,Yt]),Q=M.useState(0),De=Object(B.a)(Q,2),ot=De[0],Ot=De[1],Ft=Object(Ue.b)(Object(K.a)(Object(K.a)(Object(K.a)({},Oe),Ct),{},{expandable:!!ln,expandedKeys:V,getRowKey:ft,onTriggerExpand:J,expandIcon:Jt,expandIconColumnIndex:mn,direction:ie}),qe===dt?Xe:null),ve=Object(B.a)(Ft,2),Gt=ve[0],en=ve[1],Tn=M.useMemo(function(){return{columns:Gt,flattenColumns:en}},[Gt,en]),Wn=M.useRef(),tr=M.useRef(),Rn=M.useRef(),or=M.useState(!1),fr=Object(B.a)(or,2),Vn=fr[0],sr=fr[1],Jn=M.useState(!1),Mr=Object(B.a)(Jn,2),Xn=Mr[0],Ir=Mr[1],yr=xe(new Map),Tr=Object(B.a)(yr,2),Yr=Tr[0],br=Tr[1],nr=Object(x.a)(en),Ur=nr.map(function(Kt){return Yr.get(Kt)}),_r=M.useMemo(function(){return Ur},[Ur.join("_")]),Fr=ye(_r,en.length,ie),Sn=be&&Object(x.d)(be.y),hn=be&&Object(x.d)(be.x),kn=hn&&en.some(function(Kt){var pn=Kt.fixed;return pn}),yn=M.useRef(),Ln=Ze(se,Je),bn=Ln.isSticky,wr=Ln.offsetHeader,Bn=Ln.offsetScroll,Qn=Ln.stickyClassName,zr,jr,Dr;Sn&&(jr={overflowY:"scroll",maxHeight:be.y}),hn&&(zr={overflowX:"auto"},Sn||(jr={overflowY:"hidden"}),Dr={width:be.x===!0?"auto":be.x,minWidth:"100%"});var Jr=M.useCallback(function(Kt,pn){br(function(Cn){var ur=new Map(Cn);return ur.set(Kt,pn),ur})},[]),rr=he(null),Wr=Object(B.a)(rr,2),Er=Wr[0],Hr=Wr[1];function Zr(Kt,pn){if(!pn)return;typeof pn=="function"?pn(Kt):pn.scrollLeft!==Kt&&(pn.scrollLeft=Kt)}var ir=function(pn){var Cn=pn.currentTarget,ur=pn.scrollLeft,qr=typeof ur=="number"?ur:Cn.scrollLeft,Rr=Cn||vt;if(!Hr()||Hr()===Rr){var gi;Er(Rr),Zr(qr,tr.current),Zr(qr,Rn.current),Zr(qr,(gi=yn.current)===null||gi===void 0?void 0:gi.setScrollLeft)}if(Cn){var vi=Cn.scrollWidth,ai=Cn.clientWidth;sr(qr>0),Ir(qr0?[].concat(Object(K.a)(m),Object(K.a)(c(u).map(function(x){return Object(P.a)({fixed:o},x)}))):[].concat(Object(K.a)(m),[Object(P.a)(Object(P.a)({},a),{},{fixed:o})])},[])}function g(f){for(var m=!0,a=0;a=0;u-=1){var x=f[u];if(o&&x.fixed!=="right")o=!1;else if(!o&&x.fixed==="right"){Object(j.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function w(f){return f.map(function(m){var a=m.fixed,n=Object(z.a)(m,["fixed"]),o=a;return a==="left"?o="right":a==="right"&&(o="left"),Object(P.a)({fixed:o},n)})}function y(f,m){var a=f.prefixCls,n=f.columns,o=f.children,u=f.expandable,x=f.expandedKeys,E=f.getRowKey,v=f.onTriggerExpand,O=f.expandIcon,A=f.rowExpandable,p=f.expandIconColumnIndex,h=f.direction,s=f.expandRowByClick,l=B.useMemo(function(){return n||R(o)},[n,o]),D=B.useMemo(function(){if(u){var I,C=p||0,W=l[C],Y=(I={},Object(ee.a)(I,_.a,{className:"".concat(a,"-expand-icon-col")}),Object(ee.a)(I,"title",""),Object(ee.a)(I,"fixed",W?W.fixed:null),Object(ee.a)(I,"className","".concat(a,"-row-expand-icon-cell")),Object(ee.a)(I,"render",function(q,le,pe){var Ae=E(le,pe),Ge=x.has(Ae),Fe=A?A(le):!0,Ue=O({prefixCls:a,expanded:Ge,expandable:Fe,record:le,onExpand:v});return s?B.createElement("span",{onClick:function(je){return je.stopPropagation()}},Ue):Ue}),I),H=l.slice();return C>=0&&H.splice(C,0,Y),H}return l},[u,l,E,x,O,h]),T=B.useMemo(function(){var I=D;return m&&(I=m(I)),I.length||(I=[{render:function(){return null}}]),I},[m,D,h]),S=B.useMemo(function(){return h==="rtl"?w(c(T)):c(T)},[T,h]);return[T,S]}de.b=y},"y0+3":function(et,de,N){"use strict";N.d(de,"a",function(){return c}),N.d(de,"b",function(){return w});var ee=/margin|padding|width|height|max|min|offset/,K={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function z(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function B(y,f,m){if(f=f.toLowerCase(),m==="auto"){if(f==="height")return y.offsetHeight;if(f==="width")return y.offsetWidth}return f in K||(K[f]=ee.test(f)),K[f]?parseFloat(m)||0:m}function M(y,f){var m=arguments.length,a=z(y);return f=P[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,m===1?a:B(y,f,a[f]||y.style[f])}function j(y,f,m){var a=arguments.length;if(f=P[f]?"cssFloat"in y.style?"cssFloat":"styleFloat":f,a===3)return typeof m=="number"&&ee.test(f)&&(m="".concat(m,"px")),y.style[f]=m,m;for(var n in f)f.hasOwnProperty(n)&&j(y,n,f[n]);return z(y)}function U(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function _(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function R(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:f}}function c(){var y=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:f}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function w(y){var f=y.getBoundingClientRect(),m=document.documentElement;return{left:f.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},yslc:function(et,de){et.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); diff --git a/p__Classrooms__Lists__ExportList__index.e682cc10.async.js b/p__Classrooms__Lists__ExportList__index.e682cc10.async.js index 8b72b8d94f..c17e53479a 100644 --- a/p__Classrooms__Lists__ExportList__index.e682cc10.async.js +++ b/p__Classrooms__Lists__ExportList__index.e682cc10.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[68,8],{"6+eU":function(Oe,S,e){"use strict";e.d(S,"a",function(){return E});var P=e("wx14"),j=e("rePB"),$=e("VTBJ"),J=e("1OyB"),T=e("vuIU"),n=e("Ji7U"),H=e("LK+K"),C=e("q1tI"),s=e.n(C),K=e("TSYQ"),D=e.n(K),F=function(O){var a,o="".concat(O.rootPrefixCls,"-item"),t=D()(o,"".concat(o,"-").concat(O.page),(a={},Object(j.a)(a,"".concat(o,"-active"),O.active),Object(j.a)(a,O.className,!!O.className),Object(j.a)(a,"".concat(o,"-disabled"),!O.page),a)),d=function(){O.onClick(O.page)},f=function(h){O.onKeyPress(h,O.onClick,O.page)};return s.a.createElement("li",{title:O.showTitle?O.page:null,className:t,onClick:d,onKeyPress:f,tabIndex:"0"},O.itemRender(O.page,"page",s.a.createElement("a",{rel:"nofollow"},O.page)))},k=F,U={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},u=function(y){Object(n.a)(a,y);var O=Object(H.a)(a);function a(){var o;Object(J.a)(this,a);for(var t=arguments.length,d=new Array(t),f=0;f=0||b.relatedTarget.className.indexOf("".concat(m,"-next"))>=0))return;o.setState({goInputText:""}),c(o.getValidValue())},o.go=function(b){var h=o.state.goInputText;if(h==="")return;(b.keyCode===U.ENTER||b.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(T.a)(a,[{key:"getValidValue",value:function(){var t=this.state,d=t.goInputText,f=t.current;return!d||isNaN(d)?f:Number(d)}},{key:"getPageSizeOptions",value:function(){var t=this.props,d=t.pageSize,f=t.pageSizeOptions;return f.some(function(b){return b.toString()===d.toString()})?f:f.concat([d.toString()]).sort(function(b,h){var r=isNaN(Number(b))?0:Number(b),c=isNaN(Number(h))?0:Number(h);return r-c})}},{key:"render",value:function(){var t=this,d=this.props,f=d.pageSize,b=d.locale,h=d.rootPrefixCls,r=d.changeSize,c=d.quickGo,m=d.goButton,g=d.selectComponentClass,v=d.buildOptionText,q=d.selectPrefixCls,B=d.disabled,ne=this.state.goInputText,le="".concat(h,"-options"),me=g,se=null,ge=null,Q=null;if(!r&&!c)return null;var ae=this.getPageSizeOptions();if(r&&me){var ee=ae.map(function(ue,je){return s.a.createElement(me.Option,{key:je,value:ue.toString()},(v||t.buildOptionText)(ue))});se=s.a.createElement(me,{disabled:B,prefixCls:q,showSearch:!1,className:"".concat(le,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(f||ae[0]).toString(),onChange:this.changeSize,getPopupContainer:function(je){return je.parentNode}},ee)}return c&&(m&&(Q=typeof m=="boolean"?s.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:B,className:"".concat(le,"-quick-jumper-button")},b.jump_to_confirm):s.a.createElement("span",{onClick:this.go,onKeyUp:this.go},m)),ge=s.a.createElement("div",{className:"".concat(le,"-quick-jumper")},b.jump_to,s.a.createElement("input",{disabled:B,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),b.page,Q)),s.a.createElement("li",{className:"".concat(le)},se,ge)}}]),a}(s.a.Component);u.defaultProps={pageSizeOptions:["10","20","50","100"]};var i=u,_=e("N2Kk");function p(){}function R(y){return typeof y=="number"&&isFinite(y)&&Math.floor(y)===y}function N(y,O,a){return a}function x(y,O,a){var o=typeof y=="undefined"?O.pageSize:y;return Math.floor((a.total-1)/o)+1}var X=function(y){Object(n.a)(a,y);var O=Object(H.a)(a);function a(o){var t;Object(J.a)(this,a),t=O.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(x(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(r,c){var m=t.props.prefixCls,g=r||s.a.createElement("button",{type:"button","aria-label":c,className:"".concat(m,"-item-link")});return typeof r=="function"&&(g=s.a.createElement(r,Object($.a)({},t.props))),g},t.savePaginationNode=function(r){t.paginationNode=r},t.isValid=function(r){return R(r)&&r!==t.state.current},t.shouldDisplayQuickJumper=function(){var r=t.props,c=r.showQuickJumper,m=r.pageSize,g=r.total;return g<=m?!1:c},t.handleKeyDown=function(r){(r.keyCode===U.ARROW_UP||r.keyCode===U.ARROW_DOWN)&&r.preventDefault()},t.handleKeyUp=function(r){var c=t.getValidValue(r),m=t.state.currentInputValue;c!==m&&t.setState({currentInputValue:c}),r.keyCode===U.ENTER?t.handleChange(c):r.keyCode===U.ARROW_UP?t.handleChange(c-1):r.keyCode===U.ARROW_DOWN&&t.handleChange(c+1)},t.changePageSize=function(r){var c=t.state.current,m=x(r,t.state,t.props);c=c>m?m:c,m===0&&(c=t.state.current),typeof r=="number"&&("pageSize"in t.props||t.setState({pageSize:r}),"current"in t.props||t.setState({current:c,currentInputValue:c})),t.props.onShowSizeChange(c,r),"onChange"in t.props&&t.props.onChange&&t.props.onChange(c,r)},t.handleChange=function(r){var c=t.props.disabled,m=r;if(t.isValid(m)&&!c){var g=x(void 0,t.state,t.props);m>g?m=g:m<1&&(m=1),"current"in t.props||t.setState({current:m,currentInputValue:m});var v=t.state.pageSize;return t.props.onChange(m,v),m}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?m-2:0),v=2;v=f?h=f:h=Number(d),h}},{key:"getShowSizeChanger",value:function(){var t=this.props,d=t.showSizeChanger,f=t.total,b=t.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:f>b}},{key:"renderPrev",value:function(t){var d=this.props,f=d.prevIcon,b=d.itemRender,h=b(t,"prev",this.getItemIcon(f,"prev page")),r=!this.hasPrev();return Object(C.isValidElement)(h)?Object(C.cloneElement)(h,{disabled:r}):h}},{key:"renderNext",value:function(t){var d=this.props,f=d.nextIcon,b=d.itemRender,h=b(t,"next",this.getItemIcon(f,"next page")),r=!this.hasNext();return Object(C.isValidElement)(h)?Object(C.cloneElement)(h,{disabled:r}):h}},{key:"render",value:function(){var t=this,d=this.props,f=d.prefixCls,b=d.className,h=d.style,r=d.disabled,c=d.hideOnSinglePage,m=d.total,g=d.locale,v=d.showQuickJumper,q=d.showLessItems,B=d.showTitle,ne=d.showTotal,le=d.simple,me=d.itemRender,se=d.showPrevNextJumpers,ge=d.jumpPrevIcon,Q=d.jumpNextIcon,ae=d.selectComponentClass,ee=d.selectPrefixCls,ue=d.pageSizeOptions,je=this.state,oe=je.current,Pe=je.pageSize,we=je.currentInputValue;if(c===!0&&m<=Pe)return null;var pe=x(void 0,this.state,this.props),ye=[],Be=null,Ue=null,ke=null,Qe=null,Le=null,fe=v&&v.goButton,he=q?1:2,Ye=oe-1>0?oe-1:0,et=oe+1=he*2&&oe!==1+2&&(ye[0]=Object(C.cloneElement)(ye[0],{className:"".concat(f,"-item-after-jump-prev")}),ye.unshift(Be)),pe-oe>=he*2&&oe!==pe-2&&(ye[ye.length-1]=Object(C.cloneElement)(ye[ye.length-1],{className:"".concat(f,"-item-before-jump-next")}),ye.push(Ue)),L!==1&&ye.unshift(ke),z!==pe&&ye.push(Qe)}var w=null;ne&&(w=s.a.createElement("li",{className:"".concat(f,"-total-text")},ne(m,[m===0?0:(oe-1)*Pe+1,oe*Pe>m?m:oe*Pe])));var A=!this.hasPrev()||!pe,I=!this.hasNext()||!pe;return s.a.createElement("ul",Object(P.a)({className:D()(f,b,Object(j.a)({},"".concat(f,"-disabled"),r)),style:h,unselectable:"unselectable",ref:this.savePaginationNode},tt),w,s.a.createElement("li",{title:B?g.prev_page:null,onClick:this.prev,tabIndex:A?null:0,onKeyPress:this.runIfEnterPrev,className:D()("".concat(f,"-prev"),Object(j.a)({},"".concat(f,"-disabled"),A)),"aria-disabled":A},this.renderPrev(Ye)),ye,s.a.createElement("li",{title:B?g.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:D()("".concat(f,"-next"),Object(j.a)({},"".concat(f,"-disabled"),I)),"aria-disabled":I},this.renderNext(et)),s.a.createElement(i,{disabled:r,locale:g,rootPrefixCls:f,selectComponentClass:ae,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:oe,pageSize:Pe,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:fe}))}}],[{key:"getDerivedStateFromProps",value:function(t,d){var f={};if("current"in t&&(f.current=t.current,t.current!==d.current&&(f.currentInputValue=f.current)),"pageSize"in t&&t.pageSize!==d.pageSize){var b=d.current,h=x(t.pageSize,d,t);b=b>h?h:b,"current"in t||(f.current=b,f.currentInputValue=b),f.pageSize=t.pageSize}return f}}]),a}(s.a.Component);X.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:_.a,style:{},itemRender:N,totalBoundaryShowSizeChanger:50};var E=X},"6RRn":function(Oe,S,e){"use strict";var P=e("wCXF"),j=e("n6Qo");e.d(S,"b",function(){return j.a});var $=e("IBYe"),J=e("6eGT"),T=e("hW8S");e.d(S,"a",function(){return T.a}),S.c=P.b},"6eGT":function(Oe,S,e){"use strict";function P(j){return null}S.a=P},"815F":function(Oe,S,e){"use strict";e.d(S,"e",function(){return H}),e.d(S,"c",function(){return s}),e.d(S,"d",function(){return K}),e.d(S,"a",function(){return F}),e.d(S,"f",function(){return k}),e.d(S,"b",function(){return U});var P=e("KQm4"),j=e("VTBJ"),$=e("Ff2n"),J=e("Zm9Q"),T=e("Kwbf"),n=e("OZM5");function H(u,i){return u!=null?u:i}function C(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function _(p){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(N){var x=N.key,X=N.children;Object(T.a)(x!=null,"Tree node must have a certain key: [".concat(R).concat(x,"]"));var E=String(x);Object(T.a)(!i.has(E)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(E)),i.set(E,!0),_(X,"".concat(R).concat(E," > "))})}_(u)}function s(u){function i(_){var p=Object(J.a)(_);return p.map(function(R){if(!Object(n.i)(R))return Object(T.a)(!R,"Tree/TreeNode can only accept TreeNode as children."),null;var N=R.key,x=R.props,X=x.children,E=Object($.a)(x,["children"]),y=Object(j.a)({key:N},E),O=i(X);return O.length&&(y.children=O),y}).filter(function(R){return R})}return i(u)}function K(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=new Set(i===!0?[]:i),p=[];function R(N){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return N.map(function(X,E){var y=Object(n.h)(x?x.pos:"0",E),O=H(X.key,y),a=Object(j.a)(Object(j.a)({},X),{},{parent:x,pos:y,children:null,data:X,isStart:[].concat(Object(P.a)(x?x.isStart:[]),[E===0]),isEnd:[].concat(Object(P.a)(x?x.isEnd:[]),[E===N.length-1])});return p.push(a),i===!0||_.has(O)?a.children=R(X.children||[],a):a.children=[],a})}return R(u),p}function D(u,i,_){var p;_?typeof _=="string"?p=function(x){return x[_]}:typeof _=="function"&&(p=function(x){return _(x)}):p=function(x,X){return H(x.key,X)};function R(N,x,X){var E=N?N.children:u,y=N?Object(n.h)(X.pos,x):"0";if(N){var O=p(N,y),a={node:N,index:x,pos:y,key:O,parentPos:X.node?X.pos:null,level:X.level+1};i(a)}E&&E.forEach(function(o,t){R(o,t,{node:N,pos:y,level:X?X.level+1:-1})})}R(null)}function F(u){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=i.initWrapper,p=i.processEntity,R=i.onProcessFinished,N=arguments.length>2?arguments[2]:void 0,x={},X={},E={posEntities:x,keyEntities:X};return _&&(E=_(E)||E),D(u,function(y){var O=y.node,a=y.index,o=y.pos,t=y.key,d=y.parentPos,f=y.level,b={node:O,index:a,key:t,pos:o,level:f},h=H(t,o);x[o]=b,X[h]=b,b.parent=x[d],b.parent&&(b.parent.children=b.parent.children||[],b.parent.children.push(b)),p&&p(b,E)},N),R&&R(E),E}function k(u,i){var _=i.expandedKeys,p=i.selectedKeys,R=i.loadedKeys,N=i.loadingKeys,x=i.checkedKeys,X=i.halfCheckedKeys,E=i.dragOverNodeKey,y=i.dropPosition,O=i.keyEntities,a=O[u],o={eventKey:u,expanded:_.indexOf(u)!==-1,selected:p.indexOf(u)!==-1,loaded:R.indexOf(u)!==-1,loading:N.indexOf(u)!==-1,checked:x.indexOf(u)!==-1,halfChecked:X.indexOf(u)!==-1,pos:String(a?a.pos:""),dragOver:E===u&&y===0,dragOverGapTop:E===u&&y===-1,dragOverGapBottom:E===u&&y===1};return o}function U(u){var i=u.data,_=u.expanded,p=u.selected,R=u.checked,N=u.loaded,x=u.loading,X=u.halfChecked,E=u.dragOver,y=u.dragOverGapTop,O=u.dragOverGapBottom,a=u.pos,o=u.active,t=Object(j.a)(Object(j.a)({},i),{},{expanded:_,selected:p,checked:R,loaded:N,loading:x,halfChecked:X,dragOver:E,dragOverGapTop:y,dragOverGapBottom:O,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),t}},"9Bz6":function(Oe,S,e){"use strict";e.r(S);var P=e("DjyN"),j=e("NUBc"),$=e("g9YV"),J=e("wCAj"),T=e("5Dmo"),n=e("3S7+"),H=e("9og8"),C=e("k1fw"),s=e("tJVT"),K=e("WmNS"),D=e.n(K),F=e("q1tI"),k=e.n(F),U=e("5bA4"),u=e("wd/R"),i=e.n(u),_=e("Ty5D"),p=e("9kvl"),R=e("ErOA"),N=e("mgmH");i.a.locale("zh-cn");var x=[{id:"exercise_score",name:"\u8BD5\u5377\u6210\u7EE9"},{id:"shixun_work_list",name:"\u8BFE\u7A0B\u5B9E\u9A8C\u6210\u7EE9"},{id:"normal_work_list",name:"\u56FE\u6587\u4F5C\u4E1A\u6210\u7EE9"},{id:"group_work_list",name:"\u5206\u7EC4\u4F5C\u4E1A\u6210\u7EE9"},{id:"course_total_score",name:"\u8BFE\u5802\u603B\u6210\u7EE9"},{id:"course_total_homework",name:"\u8BFE\u5802\u4F5C\u4E1A\u6210\u7EE9"},{id:"course_total_exercise_and_other",name:"\u8BFE\u5802\u8BD5\u5377\u6210\u7EE9"},{id:"course_member_act_score",name:"\u8BFE\u5802\u6D3B\u8DC3\u5EA6"},{id:"mooc_records",name:"\u7B2C\u4E09\u65B9\u6155\u8BFE"}],X=[{id:"failed",name:"\u5931\u8D25"},{id:"running",name:"\u6267\u884C\u4E2D"},{id:"finished",name:"\u5B8C\u6210"}],E=function(O){var a,o=O.globalSetting,t=O.loading,d=O.dispatch,f=Object(F.useState)(Object(C.a)({},Object(_.i)())),b=Object(s.a)(f,2),h=b[0],r=b[1],c=Object(F.useState)(),m=Object(s.a)(c,2),g=m[0],v=m[1],q=Object(F.useState)(1),B=Object(s.a)(q,2),ne=B[0],le=B[1],me=Object(_.g)(),se=h==null||((a=h.type)===null||a===void 0)?void 0:a.split(",");Object(F.useEffect)(function(){function Q(){return ae.apply(this,arguments)}function ae(){return ae=Object(H.a)(D.a.mark(function ee(){var ue;return D.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.next=2,Object(R.a)("/api/courses/".concat(h.coursesId,"/export_records.json"),{method:"get",params:{page:1,per_page:10,export_types:se}});case 2:ue=oe.sent,ue&&v(ue);case 4:case"end":return oe.stop()}},ee)})),ae.apply(this,arguments)}Q()},[]);var ge=[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",ellipsis:!0,width:"30%",render:function(ae,ee,ue){return k.a.createElement(n.a,{title:ae},k.a.createElement("span",null,ae||(ee==null?void 0:ee.preview_filename)))}},{title:"\u7C7B\u578B",dataIndex:"export_type",ellipsis:!0,render:function(ae){return x==null?void 0:x.map(function(ee){if(ae===(ee==null?void 0:ee.id))return k.a.createElement(n.a,{title:ee.name},k.a.createElement("span",null,ee.name))})}},{title:"\u72B6\u6001",dataIndex:"status",ellipsis:!0,render:function(ae){return X==null?void 0:X.map(function(ee){if(ae===(ee==null?void 0:ee.id))return ee.name})}},{title:"\u5BFC\u51FA\u4EBA",dataIndex:"user",ellipsis:!0,render:function(ae){return ae==null?void 0:ae.real_name}},{title:"\u4E0B\u8F7D\u6B21\u6570",dataIndex:"downloads"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:"20%",render:function(ae){return i()(ae).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u64CD\u4F5C",ellipsis:!0,render:function(ae,ee,ue){return k.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9"},onClick:function(){Object(N.o)({id:ee==null?void 0:ee.id})}},(ee==null?void 0:ee.status)==="finished"?"\u4E0B\u8F7D":"")}}].filter(function(Q){return!!Q});return k.a.createElement("div",{style:{background:"#fff"}},k.a.createElement("span",{style:{fontSize:"16px",height:"40px",display:"flex",background:"#fff",padding:"10px 20px"}},k.a.createElement(U.a,{onClick:function(){me.goBack()},style:{marginTop:"4px",cursor:"pointer",marginRight:"5px"}})," ","\u5BFC\u51FA\u5217\u8868"),k.a.createElement("div",{style:{background:"#fff",marginBottom:14}},k.a.createElement(J.a,{rowKey:"id",columns:ge,dataSource:g==null?void 0:g.export_records,pagination:!1})),k.a.createElement(j.a,{hideOnSinglePage:!0,pageSize:10,showSizeChanger:!1,onChange:function(){var Q=Object(H.a)(D.a.mark(function ae(ee,ue){var je;return D.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return le(ee),Pe.next=3,Object(R.a)("/api/courses/".concat(h.coursesId,"/export_records.json"),{method:"get",params:{page:ee,per_page:10,export_types:se}});case 3:je=Pe.sent,je&&v(je);case 5:case"end":return Pe.stop()}},ae)}));return function(ae,ee){return Q.apply(this,arguments)}}(),style:{textAlign:"center"},current:ne,total:g==null?void 0:g.total_count}))};S.default=Object(p.a)(function(y){var O=y.loading,a=y.globalSetting;return{globalSetting:a,loading:O}})(E)},BU3w:function(Oe,S,e){"use strict";e.d(S,"a",function(){return n});var P=e("MNnm"),j="rc-util-key";function $(H){if(H.attachTo)return H.attachTo;var C=document.querySelector("head");return C||document.body}function J(H){var C,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(P.a)())return null;var K=document.createElement("style");if((C=s.csp)===null||C===void 0?void 0:C.nonce){var D;K.nonce=(D=s.csp)===null||D===void 0?void 0:D.nonce}K.innerHTML=H;var F=$(s),k=F.firstChild;return s.prepend&&F.prepend?F.prepend(K):s.prepend&&k?F.insertBefore(K,k):F.appendChild(K),K}var T=new Map;function n(H,C){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=$(s);if(!T.has(K)){var D=J("",s),F=D.parentNode;T.set(K,F),F.removeChild(D)}var k=Array.from(T.get(K).children).find(function(p){return p.tagName==="STYLE"&&p[j]===C});if(k){var U,u;if(((U=s.csp)===null||U===void 0?void 0:U.nonce)&&k.nonce!==((u=s.csp)===null||u===void 0?void 0:u.nonce)){var i;k.nonce=(i=s.csp)===null||i===void 0?void 0:i.nonce}return k.innerHTML!==H&&(k.innerHTML=H),k}var _=J(H,s);return _[j]=C,_}},IBYe:function(Oe,S,e){"use strict";function P(j){return null}S.a=P},LdHM:function(Oe,S,e){"use strict";e.d(S,"b",function(){return N}),e.d(S,"a",function(){return X});var P=e("1OyB"),j=e("vuIU"),$=e("Ji7U"),J=e("LK+K"),T=e("q1tI"),n=e("rePB"),H=e("Ff2n"),C=e("ODXe"),s=e("4IlW"),K=e("bX4T"),D=e("YrtM"),F=e("TSYQ"),k=e.n(F),U=e("+nKL"),u=e("8OUc"),i=function(B,ne){var le=B.prefixCls,me=B.id,se=B.flattenOptions,ge=B.childrenAsData,Q=B.values,ae=B.searchValue,ee=B.multiple,ue=B.defaultActiveFirstOption,je=B.height,oe=B.itemHeight,Pe=B.notFoundContent,we=B.open,pe=B.menuItemSelectedIcon,ye=B.virtual,Be=B.onSelect,Ue=B.onToggleOpen,ke=B.onActiveValue,Qe=B.onScroll,Le=B.onMouseEnter,fe="".concat(le,"-item"),he=Object(D.a)(function(){return se},[we,se],function(W,w){return w[0]&&W[1]!==w[1]}),Ye=T.useRef(null),et=function(w){w.preventDefault()},tt=function(w){Ye.current&&Ye.current.scrollTo({index:w})},lt=function(w){for(var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=he.length,Z=0;Z1&&arguments[1]!==void 0?arguments[1]:!1;return Object(y.a)(q).map(function(ne,le){if(!T.isValidElement(ne)||!ne.type)return null;var me=ne.type.isSelectOptGroup,se=ne.key,ge=ne.props,Q=ge.children,ae=Object(H.a)(ge,["children"]);return B||!me?O(ne):Object(E.a)(Object(E.a)({key:"__RC_SELECT_GRP__".concat(se===null?le:se,"__"),label:se},ae),{},{options:a(Q)})}).filter(function(ne){return ne})}var o=e("2Qr1"),t=e("qNPg"),d=e("U8pU"),f=e("Kwbf"),b=e("WKfj");function h(q){var B=q.mode,ne=q.options,le=q.children,me=q.backfill,se=q.allowClear,ge=q.placeholder,Q=q.getInputElement,ae=q.showSearch,ee=q.onSearch,ue=q.defaultOpen,je=q.autoFocus,oe=q.labelInValue,Pe=q.value,we=q.inputValue,pe=q.optionLabelProp,ye=B==="multiple"||B==="tags",Be=ae!==void 0?ae:ye||B==="combobox",Ue=ne||a(le);if(Object(f.a)(B!=="tags"||Ue.every(function(fe){return!fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),B==="tags"||B==="combobox"){var ke=Ue.some(function(fe){return fe.options?fe.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in fe?fe.value:fe.key)=="number"});Object(f.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(f.a)(B!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(f.a)(B==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(f.a)(B==="combobox"||!Q,"`getInputElement` only work with `combobox` mode."),Object(f.b)(B!=="combobox"||!Q||!se||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!Be&&B!=="combobox"&&B!=="tags"&&Object(f.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(f.b)(!ue||je,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pe!=null){var Qe=Object(b.d)(Pe);Object(f.a)(!oe||Qe.every(function(fe){return Object(d.a)(fe)==="object"&&("key"in fe||"value"in fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(f.a)(!ye||Array.isArray(Pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var Le=null;Object(y.a)(le).some(function(fe){if(!T.isValidElement(fe)||!fe.type)return!1;var he=fe.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Ye=Object(y.a)(fe.props.children).every(function(et){return!T.isValidElement(et)||!fe.type||et.type.isSelectOption?!0:(Le=et.type,!1)});return!Ye}return Le=he,!0}),Le&&Object(f.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(f.a)(we===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var r=h,c=Object(t.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:r,fillOptionsWithMissingValue:o.a}),m=function(q){Object($.a)(ne,q);var B=Object(J.a)(ne);function ne(){var le;return Object(P.a)(this,ne),le=B.apply(this,arguments),le.selectRef=T.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object(j.a)(ne,[{key:"render",value:function(){return T.createElement(c,Object.assign({ref:this.selectRef},this.props))}}]),ne}(T.Component);m.Option=N,m.OptGroup=X;var g=m,v=S.c=g},NvD2:function(Oe,S,e){"use strict";e.d(S,"a",function(){return n});var P=e("Kwbf");function j(H,C){var s=new Set;return H.forEach(function(K){C.has(K)||s.add(K)}),s}function $(H){var C=H||{},s=C.disabled,K=C.disableCheckbox,D=C.checkable;return!!(s||K)||D===!1}function J(H,C,s,K){for(var D=new Set(H),F=new Set,k=0;k<=s;k+=1){var U=C.get(k)||new Set;U.forEach(function(p){var R=p.key,N=p.node,x=p.children,X=x===void 0?[]:x;D.has(R)&&!K(N)&&X.filter(function(E){return!K(E.node)}).forEach(function(E){D.add(E.key)})})}for(var u=new Set,i=s;i>=0;i-=1){var _=C.get(i)||new Set;_.forEach(function(p){var R=p.parent,N=p.node;if(K(N)||!p.parent||u.has(p.parent.key))return;if(K(p.parent.node)){u.add(R.key);return}var x=!0,X=!1;(R.children||[]).filter(function(E){return!K(E.node)}).forEach(function(E){var y=E.key,O=D.has(y);x&&!O&&(x=!1),!X&&(O||F.has(y))&&(X=!0)}),x&&D.add(R.key),X&&F.add(R.key),u.add(R.key)})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(j(F,D))}}function T(H,C,s,K,D){for(var F=new Set(H),k=new Set(C),U=0;U<=K;U+=1){var u=s.get(U)||new Set;u.forEach(function(R){var N=R.key,x=R.node,X=R.children,E=X===void 0?[]:X;!F.has(N)&&!k.has(N)&&!D(x)&&E.filter(function(y){return!D(y.node)}).forEach(function(y){F.delete(y.key)})})}k=new Set;for(var i=new Set,_=K;_>=0;_-=1){var p=s.get(_)||new Set;p.forEach(function(R){var N=R.parent,x=R.node;if(D(x)||!R.parent||i.has(R.parent.key))return;if(D(R.parent.node)){i.add(N.key);return}var X=!0,E=!1;(N.children||[]).filter(function(y){return!D(y.node)}).forEach(function(y){var O=y.key,a=F.has(O);X&&!a&&(X=!1),!E&&(a||k.has(O))&&(E=!0)}),X||F.delete(N.key),E&&k.add(N.key),i.add(N.key)})}return{checkedKeys:Array.from(F),halfCheckedKeys:Array.from(j(k,F))}}function n(H,C,s,K){var D=[],F;K?F=K:F=$;var k=new Set(H.filter(function(_){var p=!!s[_];return p||D.push(_),p})),U=new Map,u=0;Object.keys(s).forEach(function(_){var p=s[_],R=p.level,N=U.get(R);N||(N=new Set,U.set(R,N)),N.add(p),u=Math.max(u,R)}),Object(P.a)(!D.length,"Tree missing follow keys: ".concat(D.slice(0,100).map(function(_){return"'".concat(_,"'")}).join(", ")));var i;return C===!0?i=J(k,U,u,F):i=T(k,C.halfCheckedKeys,U,u,F),i}},OZM5:function(Oe,S,e){"use strict";e.d(S,"b",function(){return K}),e.d(S,"a",function(){return D}),e.d(S,"k",function(){return F}),e.d(S,"h",function(){return k}),e.d(S,"i",function(){return U}),e.d(S,"g",function(){return u}),e.d(S,"c",function(){return i}),e.d(S,"d",function(){return _}),e.d(S,"j",function(){return N}),e.d(S,"e",function(){return x}),e.d(S,"f",function(){return X});var P=e("KQm4"),j=e("U8pU"),$=e("Ff2n"),J=e("q1tI"),T=e.n(J),n=e("Kwbf"),H=e("WaYH"),C=.25,s=2;function K(E,y){var O=E.slice(),a=O.indexOf(y);return a>=0&&O.splice(a,1),O}function D(E,y){var O=E.slice();return O.indexOf(y)===-1&&O.push(y),O}function F(E){return E.split("-")}function k(E,y){return"".concat(E,"-").concat(y)}function U(E){return E&&E.type&&E.type.isTreeNode}function u(E,y){var O=[E],a=y[E];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(d){var f=d.key,b=d.children;O.push(f),o(b)})}return o(a.children),O}function i(E,y){var O=E.clientY,a=y.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,d=a.height,f=Math.max(d*C,s);return O<=o+f?-1:O>=t-f?1:0}function _(E,y){if(!E)return;var O=y.multiple;return O?E.slice():E.length?[E[0]]:E}var p=function(y){return y};function R(E,y){if(!E)return[];var O=y||{},a=O.processProps,o=a===void 0?p:a,t=Array.isArray(E)?E:[E];return t.map(function(d){var f=d.children,b=Object($.a)(d,["children"]),h=R(f,y);return T.a.createElement(H.a,Object.assign({},o(b)),h)})}function N(E){if(!E)return null;var y;if(Array.isArray(E))y={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(j.a)(E)==="object")y={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return y}function x(E,y){var O=new Set;function a(o){if(O.has(o))return;var t=y[o];if(!t)return;O.add(o);var d=t.parent,f=t.node;if(f.disabled)return;d&&a(d.key)}return(E||[]).forEach(function(o){a(o)}),Object(P.a)(O)}function X(E){var y={};return Object.keys(E).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(y[O]=E[O])}),y}},"SA+Z":function(Oe,S,e){var P=e("wTVA"),j=e("EbDI"),$=e("ZhPi"),J=e("wkBT");function T(n){return P(n)||j(n)||$(n)||J()}Oe.exports=T,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,S,e){"use strict";var P=e("rePB"),j=e("Ff2n"),$=e("VTBJ"),J=e("1OyB"),T=e("vuIU"),n=e("JX7q"),H=e("Ji7U"),C=e("LK+K"),s=e("q1tI"),K=e("TSYQ"),D=e.n(K),F=e("sboe"),k=e("OZM5"),U=function(y){var O=y.prefixCls,a=y.level,o=y.isStart,t=y.isEnd;if(!a)return null;for(var d="".concat(O,"-indent-unit"),f=[],b=0;b1)Object(K.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(N.length===0)return Object(K.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=N[0];if(n.isValidElement(x)&&Object(D.c)(x)){var X=x.ref;N[0]=n.cloneElement(x,{ref:Object(D.a)(X,this.setChildNode)})}return N.length===1?N[0]:N.map(function(E,y){return!n.isValidElement(E)||"key"in E&&E.key!==null?E:n.cloneElement(E,{key:"".concat(k,"-").concat(y)})})}}]),_}(n.Component);U.displayName="ResizeObserver",S.a=U},wCXF:function(Oe,S,e){"use strict";e.d(S,"a",function(){return tt});var P=e("rePB"),j=e("VTBJ"),$=e("KQm4"),J=e("U8pU"),T=e("ODXe"),n=e("q1tI"),H=e("TSYQ"),C=e.n(H),s=e("Gytx"),K=e.n(s),D=e("Kwbf"),F=e("t23M"),k=e("qx4F"),U=e("6eGT"),u=e("IBYe"),i=e("Ff2n"),_=e("c+Xe"),p=e("fyJ8"),R=e("biw7");function N(l,M,L,z,G){var W=L[l]||{},w=L[M]||{},A,I;W.fixed==="left"?A=z.left[l]:w.fixed==="right"&&(I=z.right[M]);var Z=!1,V=!1,Y=!1,re=!1,te=L[M+1],ce=L[l-1];if(G==="rtl"){if(A!==void 0){var Re=ce&&ce.fixed==="left";re=!Re}else if(I!==void 0){var Ee=te&&te.fixed==="right";Y=!Ee}}else if(A!==void 0){var xe=te&&te.fixed==="left";Z=!xe}else if(I!==void 0){var ie=ce&&ce.fixed==="right";V=!ie}return{fixLeft:A,fixRight:I,lastFixLeft:Z,firstFixRight:V,lastFixRight:Y,firstFixLeft:re,isSticky:z.isSticky}}var x=e("sR1s");function X(l){var M=l.cells,L=l.stickyOffsets,z=l.flattenColumns,G=l.rowComponent,W=l.cellComponent,w=l.onHeaderRow,A=l.index,I=n.useContext(R.a),Z=I.prefixCls,V=I.direction,Y;w&&(Y=w(M.map(function(te){return te.column}),A));var re=Object(x.a)(M.map(function(te){return te.column}));return n.createElement(G,Object.assign({},Y),M.map(function(te,ce){var Re=te.column,Ee=N(te.colStart,te.colEnd,z,L,V),xe;return Re&&Re.onHeaderCell&&(xe=te.column.onHeaderCell(Re)),n.createElement(p.a,Object.assign({},te,{ellipsis:Re.ellipsis,align:Re.align,component:W,prefixCls:Z,key:re[ce]},Ee,{additionalProps:xe,rowType:"header"}))}))}X.displayName="HeaderRow";var E=X;function y(l){var M=[];function L(w,A){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;M[I]=M[I]||[];var Z=A,V=w.filter(Boolean).map(function(Y){var re={key:Y.key,className:Y.className||"",children:Y.title,column:Y,colStart:Z},te=1,ce=Y.children;return ce&&ce.length>0&&(te=L(ce,Z,I+1).reduce(function(Re,Ee){return Re+Ee},0),re.hasSubColumns=!0),"colSpan"in Y&&(te=Y.colSpan),"rowSpan"in Y&&(re.rowSpan=Y.rowSpan),re.colSpan=te,re.colEnd=re.colStart+te-1,M[I].push(re),Z+=te,te});return V}L(l,0);for(var z=M.length,G=function(A){M[A].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=z-A)})},W=0;W=0;A-=1){var I=M[A],Z=L&&L[A],V=Z&&Z[o.a];(I||V||w)&&(G.unshift(n.createElement("col",Object.assign({key:A,style:{width:I,minWidth:I}},V))),w=!0)}return n.createElement("colgroup",null,G)}var d=t;function f(l,M){return Object(n.useMemo)(function(){for(var L=[],z=0;z1?He-1:0),ut=1;ut=Y&&(Se=Y-re),w({scrollLeft:Se/Y*(V+2)}),ie.current.x=de.pageX},We=function(){var de=Object(Qe.b)(W.current).top,Ae=de+W.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Ae-Object(k.a)()<=Fe||de>=Fe-A?xe(function(Je){return Object(j.a)(Object(j.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(j.a)(Object(j.a)({},Je),{},{isHiddenScrollBar:!1})})},De=function(de){xe(function(Ae){return Object(j.a)(Object(j.a)({},Ae),{},{scrollLeft:de/V*Y||0})})};return n.useImperativeHandle(L,function(){return{setScrollLeft:De}}),n.useEffect(function(){var _e=Object(ke.a)(document.body,"mouseup",$e,!1),de=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){_e.remove(),de.remove()}},[re,Ne]),n.useEffect(function(){var _e=Object(ke.a)(window,"scroll",We,!1),de=Object(ke.a)(window,"resize",We,!1);return function(){_e.remove(),de.remove()}},[]),n.useEffect(function(){Ee.isHiddenScrollBar||xe(function(_e){var de,Ae;return Object(j.a)(Object(j.a)({},_e),{},{scrollLeft:W.current.scrollLeft/((de=W.current)===null||de===void 0?void 0:de.scrollWidth)*((Ae=W.current)===null||Ae===void 0?void 0:Ae.clientWidth)})})},[Ee.isHiddenScrollBar]),V<=Y||!re||Ee.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(k.a)(),width:Y,bottom:A},className:"".concat(Z,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ce,ref:te,className:C()("".concat(Z,"-sticky-scroll-bar"),Object(P.a)({},"".concat(Z,"-sticky-scroll-bar-active"),Ne)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},fe=n.forwardRef(Le);function he(l,M){return n.useMemo(function(){var L=!!l;return{isSticky:L,stickyClassName:L?"".concat(M,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,M])}var Ye=[],et={},tt="rc-table-internal-hook",lt=n.memo(function(l){var M=l.children;return M},function(l,M){return K()(l.props,M.props)?l.pingLeft!==M.pingLeft||l.pingRight!==M.pingRight:!1});function Ve(l){var M,L=l.prefixCls,z=l.className,G=l.rowClassName,W=l.style,w=l.data,A=l.rowKey,I=l.scroll,Z=l.tableLayout,V=l.direction,Y=l.title,re=l.footer,te=l.summary,ce=l.id,Re=l.showHeader,Ee=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,Te=l.internalHooks,Ne=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Ce=w||Ye,Ge=!!Ce.length,We=n.useState(0),De=Object(T.a)(We,2),_e=De[0],de=De[1];n.useEffect(function(){de(Object(k.a)())});var Ae=n.useMemo(function(){return Object(x.c)(Ee,{})},[Ee]),Fe=n.useCallback(function(ve,be){return Object(x.b)(Ae,ve)||be},[Ae]),Je=n.useMemo(function(){return typeof A=="function"?A:function(ve){var be=ve&&ve[A];return be}},[A]),Se=Object(o.c)(l),jt=Se.expandIcon,Rt=Se.expandedRowKeys,Pt=Se.defaultExpandedRowKeys,rt=Se.defaultExpandAllRows,it=Se.expandedRowRender,ft=Se.onExpand,mt=Se.onExpandedRowsChange,_t=Se.expandRowByClick,nt=Se.rowExpandable,Et=Se.expandIconColumnIndex,pt=Se.expandedRowClassName,Kt=Se.childrenColumnName,St=Se.indentSize,ht=jt||Be,gt=Kt||"children",Nt=n.useMemo(function(){return it?"row":l.expandable&&Te===tt&&l.expandable.__PARENT_RENDER_ICON__||Ce.some(function(ve){return ve&&Object(J.a)(ve)==="object"&&ve[gt]})?"nest":!1},[!!it,Ce]),Tt=n.useState(function(){return Pt||(rt?Ue(Ce,Je,gt):[])}),ze=Object(T.a)(Tt,2),Ze=ze[0],at=ze[1],He=n.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=n.useCallback(function(ve){var be=Je(ve,Ce.indexOf(ve)),Ke,qe=He.has(be);qe?(He.delete(be),Ke=Object($.a)(He)):Ke=[].concat(Object($.a)(He),[be]),at(Ke),ft&&ft(!qe,ve),mt&&mt(Ke)},[Je,He,Ce,ft,mt]),ut=n.useState(0),Dt=Object(T.a)(ut,2),yt=Dt[0],Mt=Dt[1],vn=Object(Q.b)(Object(j.a)(Object(j.a)(Object(j.a)({},l),Se),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:V}),Te===tt?Ne:null),Qt=Object(T.a)(vn,2),kt=Qt[0],Me=Qt[1],Lt=n.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=n.useRef(),Yt=n.useRef(),dt=n.useRef(),bn=n.useState(!1),Zt=Object(T.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(T.a)(gn,2),tn=en[0],yn=en[1],Cn=ue(new Map),nn=Object(T.a)(Cn,2),xn=nn[0],On=nn[1],jn=Object(x.a)(Me),an=jn.map(function(ve){return xn.get(ve)}),on=n.useMemo(function(){return an},[an.join("_")]),At=Pe(on,Me.length,V),ot=I&&Object(x.d)(I.y),st=I&&Object(x.d)(I.x),Ct=st&&Me.some(function(ve){var be=ve.fixed;return be}),rn=n.useRef(),Ut=he($e,L),xt=Ut.isSticky,Rn=Ut.offsetHeader,Pn=Ut.offsetScroll,_n=Ut.stickyClassName,Bt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:I.y}),st&&(Bt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:I.x===!0?"auto":I.x,minWidth:"100%"});var sn=n.useCallback(function(ve,be){On(function(Ke){var qe=new Map(Ke);return qe.set(ve,be),qe})},[]),Sn=je(null),ln=Object(T.a)(Sn,2),Nn=ln[0],cn=ln[1];function Ft(ve,be){if(!be)return;typeof be=="function"?be(ve):be.scrollLeft!==ve&&(be.scrollLeft=ve)}var vt=function(be){var Ke=be.currentTarget,qe=be.scrollLeft,Ot=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Nn(hn),Ft(Ot,Yt.current),Ft(Ot,dt.current),Ft(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(Ot>0),yn(Ot0?[].concat(Object(j.a)(i),Object(j.a)(D(N).map(function(x){return Object($.a)({fixed:R},x)}))):[].concat(Object(j.a)(i),[Object($.a)(Object($.a)({},_),{},{fixed:R})])},[])}function F(u){for(var i=!0,_=0;_=0;N-=1){var x=u[N];if(R&&x.fixed!=="right")R=!1;else if(!R&&x.fixed==="right"){Object(H.a)(!1,"Index ".concat(N+1," of `columns` missing `fixed='right'` prop."));break}}}function k(u){return u.map(function(i){var _=i.fixed,p=Object(J.a)(i,["fixed"]),R=_;return _==="left"?R="right":_==="right"&&(R="left"),Object($.a)({fixed:R},p)})}function U(u,i){var _=u.prefixCls,p=u.columns,R=u.children,N=u.expandable,x=u.expandedKeys,X=u.getRowKey,E=u.onTriggerExpand,y=u.expandIcon,O=u.rowExpandable,a=u.expandIconColumnIndex,o=u.direction,t=u.expandRowByClick,d=T.useMemo(function(){return p||K(R)},[p,R]),f=T.useMemo(function(){if(N){var r,c=a||0,m=d[c],g=(r={},Object(P.a)(r,s.a,{className:"".concat(_,"-expand-icon-col")}),Object(P.a)(r,"title",""),Object(P.a)(r,"fixed",m?m.fixed:null),Object(P.a)(r,"className","".concat(_,"-row-expand-icon-cell")),Object(P.a)(r,"render",function(B,ne,le){var me=X(ne,le),se=x.has(me),ge=O?O(ne):!0,Q=y({prefixCls:_,expanded:se,expandable:ge,record:ne,onExpand:E});return t?T.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},Q):Q}),r),v=d.slice();return c>=0&&v.splice(c,0,g),v}return d},[N,d,X,x,y,o]),b=T.useMemo(function(){var r=f;return i&&(r=i(r)),r.length||(r=[{render:function(){return null}}]),r},[i,f,o]),h=T.useMemo(function(){return o==="rtl"?k(D(b)):D(b)},[b,o]);return[b,h]}S.b=U},"y0+3":function(Oe,S,e){"use strict";e.d(S,"a",function(){return D}),e.d(S,"b",function(){return k});var P=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function J(U){return U.nodeType===1?U.ownerDocument.defaultView.getComputedStyle(U,null):{}}function T(U,u,i){if(u=u.toLowerCase(),i==="auto"){if(u==="height")return U.offsetHeight;if(u==="width")return U.offsetWidth}return u in j||(j[u]=P.test(u)),j[u]?parseFloat(i)||0:i}function n(U,u){var i=arguments.length,_=J(U);return u=$[u]?"cssFloat"in U.style?"cssFloat":"styleFloat":u,i===1?_:T(U,u,_[u]||U.style[u])}function H(U,u,i){var _=arguments.length;if(u=$[u]?"cssFloat"in U.style?"cssFloat":"styleFloat":u,_===3)return typeof i=="number"&&P.test(u)&&(i="".concat(i,"px")),U.style[u]=i,i;for(var p in u)u.hasOwnProperty(p)&&H(U,p,u[p]);return J(U)}function C(U){return U===document.body?document.documentElement.clientWidth:U.offsetWidth}function s(U){return U===document.body?window.innerHeight||document.documentElement.clientHeight:U.offsetHeight}function K(){var U=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),u=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:U,height:u}}function D(){var U=document.documentElement.clientWidth,u=window.innerHeight||document.documentElement.clientHeight;return{width:U,height:u}}function F(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function k(U){var u=U.getBoundingClientRect(),i=document.documentElement;return{left:u.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||document.body.clientLeft||0),top:u.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[68,8],{"6+eU":function(Oe,S,e){"use strict";e.d(S,"a",function(){return E});var P=e("wx14"),j=e("rePB"),$=e("VTBJ"),J=e("1OyB"),N=e("vuIU"),n=e("Ji7U"),H=e("LK+K"),C=e("q1tI"),s=e.n(C),K=e("TSYQ"),D=e.n(K),F=function(O){var a,o="".concat(O.rootPrefixCls,"-item"),t=D()(o,"".concat(o,"-").concat(O.page),(a={},Object(j.a)(a,"".concat(o,"-active"),O.active),Object(j.a)(a,O.className,!!O.className),Object(j.a)(a,"".concat(o,"-disabled"),!O.page),a)),d=function(){O.onClick(O.page)},f=function(h){O.onKeyPress(h,O.onClick,O.page)};return s.a.createElement("li",{title:O.showTitle?O.page:null,className:t,onClick:d,onKeyPress:f,tabIndex:"0"},O.itemRender(O.page,"page",s.a.createElement("a",{rel:"nofollow"},O.page)))},k=F,U={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},u=function(y){Object(n.a)(a,y);var O=Object(H.a)(a);function a(){var o;Object(J.a)(this,a);for(var t=arguments.length,d=new Array(t),f=0;f=0||b.relatedTarget.className.indexOf("".concat(m,"-next"))>=0))return;o.setState({goInputText:""}),c(o.getValidValue())},o.go=function(b){var h=o.state.goInputText;if(h==="")return;(b.keyCode===U.ENTER||b.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(N.a)(a,[{key:"getValidValue",value:function(){var t=this.state,d=t.goInputText,f=t.current;return!d||isNaN(d)?f:Number(d)}},{key:"getPageSizeOptions",value:function(){var t=this.props,d=t.pageSize,f=t.pageSizeOptions;return f.some(function(b){return b.toString()===d.toString()})?f:f.concat([d.toString()]).sort(function(b,h){var r=isNaN(Number(b))?0:Number(b),c=isNaN(Number(h))?0:Number(h);return r-c})}},{key:"render",value:function(){var t=this,d=this.props,f=d.pageSize,b=d.locale,h=d.rootPrefixCls,r=d.changeSize,c=d.quickGo,m=d.goButton,g=d.selectComponentClass,v=d.buildOptionText,q=d.selectPrefixCls,B=d.disabled,ne=this.state.goInputText,le="".concat(h,"-options"),me=g,se=null,ge=null,Q=null;if(!r&&!c)return null;var ae=this.getPageSizeOptions();if(r&&me){var ee=ae.map(function(ue,je){return s.a.createElement(me.Option,{key:je,value:ue.toString()},(v||t.buildOptionText)(ue))});se=s.a.createElement(me,{disabled:B,prefixCls:q,showSearch:!1,className:"".concat(le,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(f||ae[0]).toString(),onChange:this.changeSize,getPopupContainer:function(je){return je.parentNode}},ee)}return c&&(m&&(Q=typeof m=="boolean"?s.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:B,className:"".concat(le,"-quick-jumper-button")},b.jump_to_confirm):s.a.createElement("span",{onClick:this.go,onKeyUp:this.go},m)),ge=s.a.createElement("div",{className:"".concat(le,"-quick-jumper")},b.jump_to,s.a.createElement("input",{disabled:B,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),b.page,Q)),s.a.createElement("li",{className:"".concat(le)},se,ge)}}]),a}(s.a.Component);u.defaultProps={pageSizeOptions:["10","20","50","100"]};var i=u,_=e("N2Kk");function p(){}function R(y){return typeof y=="number"&&isFinite(y)&&Math.floor(y)===y}function T(y,O,a){return a}function x(y,O,a){var o=typeof y=="undefined"?O.pageSize:y;return Math.floor((a.total-1)/o)+1}var X=function(y){Object(n.a)(a,y);var O=Object(H.a)(a);function a(o){var t;Object(J.a)(this,a),t=O.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(x(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(r,c){var m=t.props.prefixCls,g=r||s.a.createElement("button",{type:"button","aria-label":c,className:"".concat(m,"-item-link")});return typeof r=="function"&&(g=s.a.createElement(r,Object($.a)({},t.props))),g},t.savePaginationNode=function(r){t.paginationNode=r},t.isValid=function(r){return R(r)&&r!==t.state.current},t.shouldDisplayQuickJumper=function(){var r=t.props,c=r.showQuickJumper,m=r.pageSize,g=r.total;return g<=m?!1:c},t.handleKeyDown=function(r){(r.keyCode===U.ARROW_UP||r.keyCode===U.ARROW_DOWN)&&r.preventDefault()},t.handleKeyUp=function(r){var c=t.getValidValue(r),m=t.state.currentInputValue;c!==m&&t.setState({currentInputValue:c}),r.keyCode===U.ENTER?t.handleChange(c):r.keyCode===U.ARROW_UP?t.handleChange(c-1):r.keyCode===U.ARROW_DOWN&&t.handleChange(c+1)},t.changePageSize=function(r){var c=t.state.current,m=x(r,t.state,t.props);c=c>m?m:c,m===0&&(c=t.state.current),typeof r=="number"&&("pageSize"in t.props||t.setState({pageSize:r}),"current"in t.props||t.setState({current:c,currentInputValue:c})),t.props.onShowSizeChange(c,r),"onChange"in t.props&&t.props.onChange&&t.props.onChange(c,r)},t.handleChange=function(r){var c=t.props.disabled,m=r;if(t.isValid(m)&&!c){var g=x(void 0,t.state,t.props);m>g?m=g:m<1&&(m=1),"current"in t.props||t.setState({current:m,currentInputValue:m});var v=t.state.pageSize;return t.props.onChange(m,v),m}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?m-2:0),v=2;v=f?h=f:h=Number(d),h}},{key:"getShowSizeChanger",value:function(){var t=this.props,d=t.showSizeChanger,f=t.total,b=t.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:f>b}},{key:"renderPrev",value:function(t){var d=this.props,f=d.prevIcon,b=d.itemRender,h=b(t,"prev",this.getItemIcon(f,"prev page")),r=!this.hasPrev();return Object(C.isValidElement)(h)?Object(C.cloneElement)(h,{disabled:r}):h}},{key:"renderNext",value:function(t){var d=this.props,f=d.nextIcon,b=d.itemRender,h=b(t,"next",this.getItemIcon(f,"next page")),r=!this.hasNext();return Object(C.isValidElement)(h)?Object(C.cloneElement)(h,{disabled:r}):h}},{key:"render",value:function(){var t=this,d=this.props,f=d.prefixCls,b=d.className,h=d.style,r=d.disabled,c=d.hideOnSinglePage,m=d.total,g=d.locale,v=d.showQuickJumper,q=d.showLessItems,B=d.showTitle,ne=d.showTotal,le=d.simple,me=d.itemRender,se=d.showPrevNextJumpers,ge=d.jumpPrevIcon,Q=d.jumpNextIcon,ae=d.selectComponentClass,ee=d.selectPrefixCls,ue=d.pageSizeOptions,je=this.state,oe=je.current,Pe=je.pageSize,we=je.currentInputValue;if(c===!0&&m<=Pe)return null;var pe=x(void 0,this.state,this.props),ye=[],Be=null,Ue=null,ke=null,Qe=null,Le=null,fe=v&&v.goButton,he=q?1:2,Ye=oe-1>0?oe-1:0,et=oe+1=he*2&&oe!==1+2&&(ye[0]=Object(C.cloneElement)(ye[0],{className:"".concat(f,"-item-after-jump-prev")}),ye.unshift(Be)),pe-oe>=he*2&&oe!==pe-2&&(ye[ye.length-1]=Object(C.cloneElement)(ye[ye.length-1],{className:"".concat(f,"-item-before-jump-next")}),ye.push(Ue)),L!==1&&ye.unshift(ke),z!==pe&&ye.push(Qe)}var w=null;ne&&(w=s.a.createElement("li",{className:"".concat(f,"-total-text")},ne(m,[m===0?0:(oe-1)*Pe+1,oe*Pe>m?m:oe*Pe])));var A=!this.hasPrev()||!pe,I=!this.hasNext()||!pe;return s.a.createElement("ul",Object(P.a)({className:D()(f,b,Object(j.a)({},"".concat(f,"-disabled"),r)),style:h,unselectable:"unselectable",ref:this.savePaginationNode},tt),w,s.a.createElement("li",{title:B?g.prev_page:null,onClick:this.prev,tabIndex:A?null:0,onKeyPress:this.runIfEnterPrev,className:D()("".concat(f,"-prev"),Object(j.a)({},"".concat(f,"-disabled"),A)),"aria-disabled":A},this.renderPrev(Ye)),ye,s.a.createElement("li",{title:B?g.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:D()("".concat(f,"-next"),Object(j.a)({},"".concat(f,"-disabled"),I)),"aria-disabled":I},this.renderNext(et)),s.a.createElement(i,{disabled:r,locale:g,rootPrefixCls:f,selectComponentClass:ae,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:oe,pageSize:Pe,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:fe}))}}],[{key:"getDerivedStateFromProps",value:function(t,d){var f={};if("current"in t&&(f.current=t.current,t.current!==d.current&&(f.currentInputValue=f.current)),"pageSize"in t&&t.pageSize!==d.pageSize){var b=d.current,h=x(t.pageSize,d,t);b=b>h?h:b,"current"in t||(f.current=b,f.currentInputValue=b),f.pageSize=t.pageSize}return f}}]),a}(s.a.Component);X.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:_.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var E=X},"6RRn":function(Oe,S,e){"use strict";var P=e("wCXF"),j=e("n6Qo");e.d(S,"b",function(){return j.a});var $=e("IBYe"),J=e("6eGT"),N=e("hW8S");e.d(S,"a",function(){return N.a}),S.c=P.b},"6eGT":function(Oe,S,e){"use strict";function P(j){return null}S.a=P},"815F":function(Oe,S,e){"use strict";e.d(S,"e",function(){return H}),e.d(S,"c",function(){return s}),e.d(S,"d",function(){return K}),e.d(S,"a",function(){return F}),e.d(S,"f",function(){return k}),e.d(S,"b",function(){return U});var P=e("KQm4"),j=e("VTBJ"),$=e("Ff2n"),J=e("Zm9Q"),N=e("Kwbf"),n=e("OZM5");function H(u,i){return u!=null?u:i}function C(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function _(p){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(T){var x=T.key,X=T.children;Object(N.a)(x!=null,"Tree node must have a certain key: [".concat(R).concat(x,"]"));var E=String(x);Object(N.a)(!i.has(E)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(E)),i.set(E,!0),_(X,"".concat(R).concat(E," > "))})}_(u)}function s(u){function i(_){var p=Object(J.a)(_);return p.map(function(R){if(!Object(n.i)(R))return Object(N.a)(!R,"Tree/TreeNode can only accept TreeNode as children."),null;var T=R.key,x=R.props,X=x.children,E=Object($.a)(x,["children"]),y=Object(j.a)({key:T},E),O=i(X);return O.length&&(y.children=O),y}).filter(function(R){return R})}return i(u)}function K(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=new Set(i===!0?[]:i),p=[];function R(T){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(X,E){var y=Object(n.h)(x?x.pos:"0",E),O=H(X.key,y),a=Object(j.a)(Object(j.a)({},X),{},{parent:x,pos:y,children:null,data:X,isStart:[].concat(Object(P.a)(x?x.isStart:[]),[E===0]),isEnd:[].concat(Object(P.a)(x?x.isEnd:[]),[E===T.length-1])});return p.push(a),i===!0||_.has(O)?a.children=R(X.children||[],a):a.children=[],a})}return R(u),p}function D(u,i,_){var p;_?typeof _=="string"?p=function(x){return x[_]}:typeof _=="function"&&(p=function(x){return _(x)}):p=function(x,X){return H(x.key,X)};function R(T,x,X){var E=T?T.children:u,y=T?Object(n.h)(X.pos,x):"0";if(T){var O=p(T,y),a={node:T,index:x,pos:y,key:O,parentPos:X.node?X.pos:null,level:X.level+1};i(a)}E&&E.forEach(function(o,t){R(o,t,{node:T,pos:y,level:X?X.level+1:-1})})}R(null)}function F(u){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=i.initWrapper,p=i.processEntity,R=i.onProcessFinished,T=arguments.length>2?arguments[2]:void 0,x={},X={},E={posEntities:x,keyEntities:X};return _&&(E=_(E)||E),D(u,function(y){var O=y.node,a=y.index,o=y.pos,t=y.key,d=y.parentPos,f=y.level,b={node:O,index:a,key:t,pos:o,level:f},h=H(t,o);x[o]=b,X[h]=b,b.parent=x[d],b.parent&&(b.parent.children=b.parent.children||[],b.parent.children.push(b)),p&&p(b,E)},T),R&&R(E),E}function k(u,i){var _=i.expandedKeys,p=i.selectedKeys,R=i.loadedKeys,T=i.loadingKeys,x=i.checkedKeys,X=i.halfCheckedKeys,E=i.dragOverNodeKey,y=i.dropPosition,O=i.keyEntities,a=O[u],o={eventKey:u,expanded:_.indexOf(u)!==-1,selected:p.indexOf(u)!==-1,loaded:R.indexOf(u)!==-1,loading:T.indexOf(u)!==-1,checked:x.indexOf(u)!==-1,halfChecked:X.indexOf(u)!==-1,pos:String(a?a.pos:""),dragOver:E===u&&y===0,dragOverGapTop:E===u&&y===-1,dragOverGapBottom:E===u&&y===1};return o}function U(u){var i=u.data,_=u.expanded,p=u.selected,R=u.checked,T=u.loaded,x=u.loading,X=u.halfChecked,E=u.dragOver,y=u.dragOverGapTop,O=u.dragOverGapBottom,a=u.pos,o=u.active,t=Object(j.a)(Object(j.a)({},i),{},{expanded:_,selected:p,checked:R,loaded:T,loading:x,halfChecked:X,dragOver:E,dragOverGapTop:y,dragOverGapBottom:O,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(N.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),t}},"9Bz6":function(Oe,S,e){"use strict";e.r(S);var P=e("DjyN"),j=e("NUBc"),$=e("g9YV"),J=e("wCAj"),N=e("5Dmo"),n=e("3S7+"),H=e("9og8"),C=e("k1fw"),s=e("tJVT"),K=e("WmNS"),D=e.n(K),F=e("q1tI"),k=e.n(F),U=e("5bA4"),u=e("wd/R"),i=e.n(u),_=e("Ty5D"),p=e("9kvl"),R=e("ErOA"),T=e("mgmH");i.a.locale("zh-cn");var x=[{id:"exercise_score",name:"\u8BD5\u5377\u6210\u7EE9"},{id:"shixun_work_list",name:"\u8BFE\u7A0B\u5B9E\u9A8C\u6210\u7EE9"},{id:"normal_work_list",name:"\u56FE\u6587\u4F5C\u4E1A\u6210\u7EE9"},{id:"group_work_list",name:"\u5206\u7EC4\u4F5C\u4E1A\u6210\u7EE9"},{id:"course_total_score",name:"\u8BFE\u5802\u603B\u6210\u7EE9"},{id:"course_total_homework",name:"\u8BFE\u5802\u4F5C\u4E1A\u6210\u7EE9"},{id:"course_total_exercise_and_other",name:"\u8BFE\u5802\u8BD5\u5377\u6210\u7EE9"},{id:"course_member_act_score",name:"\u8BFE\u5802\u6D3B\u8DC3\u5EA6"},{id:"mooc_records",name:"\u7B2C\u4E09\u65B9\u6155\u8BFE"}],X=[{id:"failed",name:"\u5931\u8D25"},{id:"running",name:"\u6267\u884C\u4E2D"},{id:"finished",name:"\u5B8C\u6210"}],E=function(O){var a,o=O.globalSetting,t=O.loading,d=O.dispatch,f=Object(F.useState)(Object(C.a)({},Object(_.i)())),b=Object(s.a)(f,2),h=b[0],r=b[1],c=Object(F.useState)(),m=Object(s.a)(c,2),g=m[0],v=m[1],q=Object(F.useState)(1),B=Object(s.a)(q,2),ne=B[0],le=B[1],me=Object(_.g)(),se=h==null||((a=h.type)===null||a===void 0)?void 0:a.split(",");Object(F.useEffect)(function(){function Q(){return ae.apply(this,arguments)}function ae(){return ae=Object(H.a)(D.a.mark(function ee(){var ue;return D.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.next=2,Object(R.a)("/api/courses/".concat(h.coursesId,"/export_records.json"),{method:"get",params:{page:1,per_page:10,export_types:se}});case 2:ue=oe.sent,ue&&v(ue);case 4:case"end":return oe.stop()}},ee)})),ae.apply(this,arguments)}Q()},[]);var ge=[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",ellipsis:!0,width:"30%",render:function(ae,ee,ue){return k.a.createElement(n.a,{title:ae},k.a.createElement("span",null,ae||(ee==null?void 0:ee.preview_filename)))}},{title:"\u7C7B\u578B",dataIndex:"export_type",ellipsis:!0,render:function(ae){return x==null?void 0:x.map(function(ee){if(ae===(ee==null?void 0:ee.id))return k.a.createElement(n.a,{title:ee.name},k.a.createElement("span",null,ee.name))})}},{title:"\u72B6\u6001",dataIndex:"status",ellipsis:!0,render:function(ae){return X==null?void 0:X.map(function(ee){if(ae===(ee==null?void 0:ee.id))return ee.name})}},{title:"\u5BFC\u51FA\u4EBA",dataIndex:"user",ellipsis:!0,render:function(ae){return ae==null?void 0:ae.real_name}},{title:"\u4E0B\u8F7D\u6B21\u6570",dataIndex:"downloads"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:"20%",render:function(ae){return i()(ae).format("YYYY-MM-DD HH:mm:ss")}},{title:"\u64CD\u4F5C",ellipsis:!0,render:function(ae,ee,ue){return k.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9"},onClick:function(){Object(T.o)({id:ee==null?void 0:ee.id})}},(ee==null?void 0:ee.status)==="finished"?"\u4E0B\u8F7D":"")}}].filter(function(Q){return!!Q});return k.a.createElement("div",{style:{background:"#fff"}},k.a.createElement("span",{style:{fontSize:"16px",height:"40px",display:"flex",background:"#fff",padding:"10px 20px"}},k.a.createElement(U.a,{onClick:function(){me.goBack()},style:{marginTop:"4px",cursor:"pointer",marginRight:"5px"}})," ","\u5BFC\u51FA\u5217\u8868"),k.a.createElement("div",{style:{background:"#fff",marginBottom:14}},k.a.createElement(J.a,{rowKey:"id",columns:ge,dataSource:g==null?void 0:g.export_records,pagination:!1})),k.a.createElement(j.a,{hideOnSinglePage:!0,pageSize:10,showSizeChanger:!1,onChange:function(){var Q=Object(H.a)(D.a.mark(function ae(ee,ue){var je;return D.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return le(ee),Pe.next=3,Object(R.a)("/api/courses/".concat(h.coursesId,"/export_records.json"),{method:"get",params:{page:ee,per_page:10,export_types:se}});case 3:je=Pe.sent,je&&v(je);case 5:case"end":return Pe.stop()}},ae)}));return function(ae,ee){return Q.apply(this,arguments)}}(),style:{textAlign:"center"},current:ne,total:g==null?void 0:g.total_count}))};S.default=Object(p.a)(function(y){var O=y.loading,a=y.globalSetting;return{globalSetting:a,loading:O}})(E)},BU3w:function(Oe,S,e){"use strict";e.d(S,"a",function(){return n});var P=e("MNnm"),j="rc-util-key";function $(H){if(H.attachTo)return H.attachTo;var C=document.querySelector("head");return C||document.body}function J(H){var C,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(P.a)())return null;var K=document.createElement("style");if((C=s.csp)===null||C===void 0?void 0:C.nonce){var D;K.nonce=(D=s.csp)===null||D===void 0?void 0:D.nonce}K.innerHTML=H;var F=$(s),k=F.firstChild;return s.prepend&&F.prepend?F.prepend(K):s.prepend&&k?F.insertBefore(K,k):F.appendChild(K),K}var N=new Map;function n(H,C){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=$(s);if(!N.has(K)){var D=J("",s),F=D.parentNode;N.set(K,F),F.removeChild(D)}var k=Array.from(N.get(K).children).find(function(p){return p.tagName==="STYLE"&&p[j]===C});if(k){var U,u;if(((U=s.csp)===null||U===void 0?void 0:U.nonce)&&k.nonce!==((u=s.csp)===null||u===void 0?void 0:u.nonce)){var i;k.nonce=(i=s.csp)===null||i===void 0?void 0:i.nonce}return k.innerHTML!==H&&(k.innerHTML=H),k}var _=J(H,s);return _[j]=C,_}},IBYe:function(Oe,S,e){"use strict";function P(j){return null}S.a=P},LdHM:function(Oe,S,e){"use strict";e.d(S,"b",function(){return T}),e.d(S,"a",function(){return X});var P=e("1OyB"),j=e("vuIU"),$=e("Ji7U"),J=e("LK+K"),N=e("q1tI"),n=e("rePB"),H=e("Ff2n"),C=e("ODXe"),s=e("4IlW"),K=e("bX4T"),D=e("YrtM"),F=e("TSYQ"),k=e.n(F),U=e("+nKL"),u=e("8OUc"),i=function(B,ne){var le=B.prefixCls,me=B.id,se=B.flattenOptions,ge=B.childrenAsData,Q=B.values,ae=B.searchValue,ee=B.multiple,ue=B.defaultActiveFirstOption,je=B.height,oe=B.itemHeight,Pe=B.notFoundContent,we=B.open,pe=B.menuItemSelectedIcon,ye=B.virtual,Be=B.onSelect,Ue=B.onToggleOpen,ke=B.onActiveValue,Qe=B.onScroll,Le=B.onMouseEnter,fe="".concat(le,"-item"),he=Object(D.a)(function(){return se},[we,se],function(W,w){return w[0]&&W[1]!==w[1]}),Ye=N.useRef(null),et=function(w){w.preventDefault()},tt=function(w){Ye.current&&Ye.current.scrollTo({index:w})},lt=function(w){for(var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=he.length,Z=0;Z1&&arguments[1]!==void 0?arguments[1]:!1;return Object(y.a)(q).map(function(ne,le){if(!N.isValidElement(ne)||!ne.type)return null;var me=ne.type.isSelectOptGroup,se=ne.key,ge=ne.props,Q=ge.children,ae=Object(H.a)(ge,["children"]);return B||!me?O(ne):Object(E.a)(Object(E.a)({key:"__RC_SELECT_GRP__".concat(se===null?le:se,"__"),label:se},ae),{},{options:a(Q)})}).filter(function(ne){return ne})}var o=e("2Qr1"),t=e("qNPg"),d=e("U8pU"),f=e("Kwbf"),b=e("WKfj");function h(q){var B=q.mode,ne=q.options,le=q.children,me=q.backfill,se=q.allowClear,ge=q.placeholder,Q=q.getInputElement,ae=q.showSearch,ee=q.onSearch,ue=q.defaultOpen,je=q.autoFocus,oe=q.labelInValue,Pe=q.value,we=q.inputValue,pe=q.optionLabelProp,ye=B==="multiple"||B==="tags",Be=ae!==void 0?ae:ye||B==="combobox",Ue=ne||a(le);if(Object(f.a)(B!=="tags"||Ue.every(function(fe){return!fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),B==="tags"||B==="combobox"){var ke=Ue.some(function(fe){return fe.options?fe.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in fe?fe.value:fe.key)=="number"});Object(f.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(f.a)(B!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(f.a)(B==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(f.a)(B==="combobox"||!Q,"`getInputElement` only work with `combobox` mode."),Object(f.b)(B!=="combobox"||!Q||!se||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!Be&&B!=="combobox"&&B!=="tags"&&Object(f.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(f.b)(!ue||je,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pe!=null){var Qe=Object(b.d)(Pe);Object(f.a)(!oe||Qe.every(function(fe){return Object(d.a)(fe)==="object"&&("key"in fe||"value"in fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(f.a)(!ye||Array.isArray(Pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var Le=null;Object(y.a)(le).some(function(fe){if(!N.isValidElement(fe)||!fe.type)return!1;var he=fe.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Ye=Object(y.a)(fe.props.children).every(function(et){return!N.isValidElement(et)||!fe.type||et.type.isSelectOption?!0:(Le=et.type,!1)});return!Ye}return Le=he,!0}),Le&&Object(f.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(f.a)(we===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var r=h,c=Object(t.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:r,fillOptionsWithMissingValue:o.a}),m=function(q){Object($.a)(ne,q);var B=Object(J.a)(ne);function ne(){var le;return Object(P.a)(this,ne),le=B.apply(this,arguments),le.selectRef=N.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object(j.a)(ne,[{key:"render",value:function(){return N.createElement(c,Object.assign({ref:this.selectRef},this.props))}}]),ne}(N.Component);m.Option=T,m.OptGroup=X;var g=m,v=S.c=g},NvD2:function(Oe,S,e){"use strict";e.d(S,"a",function(){return n});var P=e("Kwbf");function j(H,C){var s=new Set;return H.forEach(function(K){C.has(K)||s.add(K)}),s}function $(H){var C=H||{},s=C.disabled,K=C.disableCheckbox,D=C.checkable;return!!(s||K)||D===!1}function J(H,C,s,K){for(var D=new Set(H),F=new Set,k=0;k<=s;k+=1){var U=C.get(k)||new Set;U.forEach(function(p){var R=p.key,T=p.node,x=p.children,X=x===void 0?[]:x;D.has(R)&&!K(T)&&X.filter(function(E){return!K(E.node)}).forEach(function(E){D.add(E.key)})})}for(var u=new Set,i=s;i>=0;i-=1){var _=C.get(i)||new Set;_.forEach(function(p){var R=p.parent,T=p.node;if(K(T)||!p.parent||u.has(p.parent.key))return;if(K(p.parent.node)){u.add(R.key);return}var x=!0,X=!1;(R.children||[]).filter(function(E){return!K(E.node)}).forEach(function(E){var y=E.key,O=D.has(y);x&&!O&&(x=!1),!X&&(O||F.has(y))&&(X=!0)}),x&&D.add(R.key),X&&F.add(R.key),u.add(R.key)})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(j(F,D))}}function N(H,C,s,K,D){for(var F=new Set(H),k=new Set(C),U=0;U<=K;U+=1){var u=s.get(U)||new Set;u.forEach(function(R){var T=R.key,x=R.node,X=R.children,E=X===void 0?[]:X;!F.has(T)&&!k.has(T)&&!D(x)&&E.filter(function(y){return!D(y.node)}).forEach(function(y){F.delete(y.key)})})}k=new Set;for(var i=new Set,_=K;_>=0;_-=1){var p=s.get(_)||new Set;p.forEach(function(R){var T=R.parent,x=R.node;if(D(x)||!R.parent||i.has(R.parent.key))return;if(D(R.parent.node)){i.add(T.key);return}var X=!0,E=!1;(T.children||[]).filter(function(y){return!D(y.node)}).forEach(function(y){var O=y.key,a=F.has(O);X&&!a&&(X=!1),!E&&(a||k.has(O))&&(E=!0)}),X||F.delete(T.key),E&&k.add(T.key),i.add(T.key)})}return{checkedKeys:Array.from(F),halfCheckedKeys:Array.from(j(k,F))}}function n(H,C,s,K){var D=[],F;K?F=K:F=$;var k=new Set(H.filter(function(_){var p=!!s[_];return p||D.push(_),p})),U=new Map,u=0;Object.keys(s).forEach(function(_){var p=s[_],R=p.level,T=U.get(R);T||(T=new Set,U.set(R,T)),T.add(p),u=Math.max(u,R)}),Object(P.a)(!D.length,"Tree missing follow keys: ".concat(D.slice(0,100).map(function(_){return"'".concat(_,"'")}).join(", ")));var i;return C===!0?i=J(k,U,u,F):i=N(k,C.halfCheckedKeys,U,u,F),i}},OZM5:function(Oe,S,e){"use strict";e.d(S,"b",function(){return K}),e.d(S,"a",function(){return D}),e.d(S,"k",function(){return F}),e.d(S,"h",function(){return k}),e.d(S,"i",function(){return U}),e.d(S,"g",function(){return u}),e.d(S,"c",function(){return i}),e.d(S,"d",function(){return _}),e.d(S,"j",function(){return T}),e.d(S,"e",function(){return x}),e.d(S,"f",function(){return X});var P=e("KQm4"),j=e("U8pU"),$=e("Ff2n"),J=e("q1tI"),N=e.n(J),n=e("Kwbf"),H=e("WaYH"),C=.25,s=2;function K(E,y){var O=E.slice(),a=O.indexOf(y);return a>=0&&O.splice(a,1),O}function D(E,y){var O=E.slice();return O.indexOf(y)===-1&&O.push(y),O}function F(E){return E.split("-")}function k(E,y){return"".concat(E,"-").concat(y)}function U(E){return E&&E.type&&E.type.isTreeNode}function u(E,y){var O=[E],a=y[E];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(d){var f=d.key,b=d.children;O.push(f),o(b)})}return o(a.children),O}function i(E,y){var O=E.clientY,a=y.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,d=a.height,f=Math.max(d*C,s);return O<=o+f?-1:O>=t-f?1:0}function _(E,y){if(!E)return;var O=y.multiple;return O?E.slice():E.length?[E[0]]:E}var p=function(y){return y};function R(E,y){if(!E)return[];var O=y||{},a=O.processProps,o=a===void 0?p:a,t=Array.isArray(E)?E:[E];return t.map(function(d){var f=d.children,b=Object($.a)(d,["children"]),h=R(f,y);return N.a.createElement(H.a,Object.assign({},o(b)),h)})}function T(E){if(!E)return null;var y;if(Array.isArray(E))y={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(j.a)(E)==="object")y={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return y}function x(E,y){var O=new Set;function a(o){if(O.has(o))return;var t=y[o];if(!t)return;O.add(o);var d=t.parent,f=t.node;if(f.disabled)return;d&&a(d.key)}return(E||[]).forEach(function(o){a(o)}),Object(P.a)(O)}function X(E){var y={};return Object.keys(E).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(y[O]=E[O])}),y}},"SA+Z":function(Oe,S,e){var P=e("wTVA"),j=e("EbDI"),$=e("ZhPi"),J=e("wkBT");function N(n){return P(n)||j(n)||$(n)||J()}Oe.exports=N,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,S,e){"use strict";var P=e("rePB"),j=e("Ff2n"),$=e("VTBJ"),J=e("1OyB"),N=e("vuIU"),n=e("JX7q"),H=e("Ji7U"),C=e("LK+K"),s=e("q1tI"),K=e("TSYQ"),D=e.n(K),F=e("sboe"),k=e("OZM5"),U=function(y){var O=y.prefixCls,a=y.level,o=y.isStart,t=y.isEnd;if(!a)return null;for(var d="".concat(O,"-indent-unit"),f=[],b=0;b1)Object(K.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(T.length===0)return Object(K.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=T[0];if(n.isValidElement(x)&&Object(D.c)(x)){var X=x.ref;T[0]=n.cloneElement(x,{ref:Object(D.a)(X,this.setChildNode)})}return T.length===1?T[0]:T.map(function(E,y){return!n.isValidElement(E)||"key"in E&&E.key!==null?E:n.cloneElement(E,{key:"".concat(k,"-").concat(y)})})}}]),_}(n.Component);U.displayName="ResizeObserver",S.a=U},wCXF:function(Oe,S,e){"use strict";e.d(S,"a",function(){return tt});var P=e("rePB"),j=e("VTBJ"),$=e("KQm4"),J=e("U8pU"),N=e("ODXe"),n=e("q1tI"),H=e("TSYQ"),C=e.n(H),s=e("Gytx"),K=e.n(s),D=e("Kwbf"),F=e("t23M"),k=e("qx4F"),U=e("6eGT"),u=e("IBYe"),i=e("Ff2n"),_=e("c+Xe"),p=e("fyJ8"),R=e("biw7");function T(l,M,L,z,G){var W=L[l]||{},w=L[M]||{},A,I;W.fixed==="left"?A=z.left[l]:w.fixed==="right"&&(I=z.right[M]);var Z=!1,V=!1,Y=!1,re=!1,te=L[M+1],ce=L[l-1];if(G==="rtl"){if(A!==void 0){var Re=ce&&ce.fixed==="left";re=!Re}else if(I!==void 0){var Ee=te&&te.fixed==="right";Y=!Ee}}else if(A!==void 0){var xe=te&&te.fixed==="left";Z=!xe}else if(I!==void 0){var ie=ce&&ce.fixed==="right";V=!ie}return{fixLeft:A,fixRight:I,lastFixLeft:Z,firstFixRight:V,lastFixRight:Y,firstFixLeft:re,isSticky:z.isSticky}}var x=e("sR1s");function X(l){var M=l.cells,L=l.stickyOffsets,z=l.flattenColumns,G=l.rowComponent,W=l.cellComponent,w=l.onHeaderRow,A=l.index,I=n.useContext(R.a),Z=I.prefixCls,V=I.direction,Y;w&&(Y=w(M.map(function(te){return te.column}),A));var re=Object(x.a)(M.map(function(te){return te.column}));return n.createElement(G,Object.assign({},Y),M.map(function(te,ce){var Re=te.column,Ee=T(te.colStart,te.colEnd,z,L,V),xe;return Re&&Re.onHeaderCell&&(xe=te.column.onHeaderCell(Re)),n.createElement(p.a,Object.assign({},te,{ellipsis:Re.ellipsis,align:Re.align,component:W,prefixCls:Z,key:re[ce]},Ee,{additionalProps:xe,rowType:"header"}))}))}X.displayName="HeaderRow";var E=X;function y(l){var M=[];function L(w,A){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;M[I]=M[I]||[];var Z=A,V=w.filter(Boolean).map(function(Y){var re={key:Y.key,className:Y.className||"",children:Y.title,column:Y,colStart:Z},te=1,ce=Y.children;return ce&&ce.length>0&&(te=L(ce,Z,I+1).reduce(function(Re,Ee){return Re+Ee},0),re.hasSubColumns=!0),"colSpan"in Y&&(te=Y.colSpan),"rowSpan"in Y&&(re.rowSpan=Y.rowSpan),re.colSpan=te,re.colEnd=re.colStart+te-1,M[I].push(re),Z+=te,te});return V}L(l,0);for(var z=M.length,G=function(A){M[A].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=z-A)})},W=0;W=0;A-=1){var I=M[A],Z=L&&L[A],V=Z&&Z[o.a];(I||V||w)&&(G.unshift(n.createElement("col",Object.assign({key:A,style:{width:I,minWidth:I}},V))),w=!0)}return n.createElement("colgroup",null,G)}var d=t;function f(l,M){return Object(n.useMemo)(function(){for(var L=[],z=0;z1?He-1:0),ut=1;ut=Y&&(Se=Y-re),w({scrollLeft:Se/Y*(V+2)}),ie.current.x=de.pageX},We=function(){var de=Object(Qe.b)(W.current).top,Ae=de+W.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Ae-Object(k.a)()<=Fe||de>=Fe-A?xe(function(Je){return Object(j.a)(Object(j.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(j.a)(Object(j.a)({},Je),{},{isHiddenScrollBar:!1})})},De=function(de){xe(function(Ae){return Object(j.a)(Object(j.a)({},Ae),{},{scrollLeft:de/V*Y||0})})};return n.useImperativeHandle(L,function(){return{setScrollLeft:De}}),n.useEffect(function(){var _e=Object(ke.a)(document.body,"mouseup",$e,!1),de=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){_e.remove(),de.remove()}},[re,Te]),n.useEffect(function(){var _e=Object(ke.a)(window,"scroll",We,!1),de=Object(ke.a)(window,"resize",We,!1);return function(){_e.remove(),de.remove()}},[]),n.useEffect(function(){Ee.isHiddenScrollBar||xe(function(_e){var de,Ae;return Object(j.a)(Object(j.a)({},_e),{},{scrollLeft:W.current.scrollLeft/((de=W.current)===null||de===void 0?void 0:de.scrollWidth)*((Ae=W.current)===null||Ae===void 0?void 0:Ae.clientWidth)})})},[Ee.isHiddenScrollBar]),V<=Y||!re||Ee.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(k.a)(),width:Y,bottom:A},className:"".concat(Z,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ce,ref:te,className:C()("".concat(Z,"-sticky-scroll-bar"),Object(P.a)({},"".concat(Z,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},fe=n.forwardRef(Le);function he(l,M){return n.useMemo(function(){var L=!!l;return{isSticky:L,stickyClassName:L?"".concat(M,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,M])}var Ye=[],et={},tt="rc-table-internal-hook",lt=n.memo(function(l){var M=l.children;return M},function(l,M){return K()(l.props,M.props)?l.pingLeft!==M.pingLeft||l.pingRight!==M.pingRight:!1});function Ve(l){var M,L=l.prefixCls,z=l.className,G=l.rowClassName,W=l.style,w=l.data,A=l.rowKey,I=l.scroll,Z=l.tableLayout,V=l.direction,Y=l.title,re=l.footer,te=l.summary,ce=l.id,Re=l.showHeader,Ee=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,Ne=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Ce=w||Ye,Ge=!!Ce.length,We=n.useState(0),De=Object(N.a)(We,2),_e=De[0],de=De[1];n.useEffect(function(){de(Object(k.a)())});var Ae=n.useMemo(function(){return Object(x.c)(Ee,{})},[Ee]),Fe=n.useCallback(function(ve,be){return Object(x.b)(Ae,ve)||be},[Ae]),Je=n.useMemo(function(){return typeof A=="function"?A:function(ve){var be=ve&&ve[A];return be}},[A]),Se=Object(o.c)(l),jt=Se.expandIcon,Rt=Se.expandedRowKeys,Pt=Se.defaultExpandedRowKeys,rt=Se.defaultExpandAllRows,it=Se.expandedRowRender,ft=Se.onExpand,mt=Se.onExpandedRowsChange,_t=Se.expandRowByClick,nt=Se.rowExpandable,Et=Se.expandIconColumnIndex,pt=Se.expandedRowClassName,Kt=Se.childrenColumnName,St=Se.indentSize,ht=jt||Be,gt=Kt||"children",Tt=n.useMemo(function(){return it?"row":l.expandable&&Ne===tt&&l.expandable.__PARENT_RENDER_ICON__||Ce.some(function(ve){return ve&&Object(J.a)(ve)==="object"&&ve[gt]})?"nest":!1},[!!it,Ce]),Nt=n.useState(function(){return Pt||(rt?Ue(Ce,Je,gt):[])}),ze=Object(N.a)(Nt,2),Ze=ze[0],at=ze[1],He=n.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=n.useCallback(function(ve){var be=Je(ve,Ce.indexOf(ve)),Ke,qe=He.has(be);qe?(He.delete(be),Ke=Object($.a)(He)):Ke=[].concat(Object($.a)(He),[be]),at(Ke),ft&&ft(!qe,ve),mt&&mt(Ke)},[Je,He,Ce,ft,mt]),ut=n.useState(0),Dt=Object(N.a)(ut,2),yt=Dt[0],Mt=Dt[1],vn=Object(Q.b)(Object(j.a)(Object(j.a)(Object(j.a)({},l),Se),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:V}),Ne===tt?Te:null),Qt=Object(N.a)(vn,2),kt=Qt[0],Me=Qt[1],Lt=n.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=n.useRef(),Yt=n.useRef(),dt=n.useRef(),bn=n.useState(!1),Zt=Object(N.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(N.a)(gn,2),tn=en[0],yn=en[1],Cn=ue(new Map),nn=Object(N.a)(Cn,2),xn=nn[0],On=nn[1],jn=Object(x.a)(Me),an=jn.map(function(ve){return xn.get(ve)}),on=n.useMemo(function(){return an},[an.join("_")]),At=Pe(on,Me.length,V),ot=I&&Object(x.d)(I.y),st=I&&Object(x.d)(I.x),Ct=st&&Me.some(function(ve){var be=ve.fixed;return be}),rn=n.useRef(),Ut=he($e,L),xt=Ut.isSticky,Rn=Ut.offsetHeader,Pn=Ut.offsetScroll,_n=Ut.stickyClassName,Bt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:I.y}),st&&(Bt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:I.x===!0?"auto":I.x,minWidth:"100%"});var sn=n.useCallback(function(ve,be){On(function(Ke){var qe=new Map(Ke);return qe.set(ve,be),qe})},[]),Sn=je(null),ln=Object(N.a)(Sn,2),Tn=ln[0],cn=ln[1];function Ft(ve,be){if(!be)return;typeof be=="function"?be(ve):be.scrollLeft!==ve&&(be.scrollLeft=ve)}var vt=function(be){var Ke=be.currentTarget,qe=be.scrollLeft,Ot=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Tn(hn),Ft(Ot,Yt.current),Ft(Ot,dt.current),Ft(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(Ot>0),yn(Ot0?[].concat(Object(j.a)(i),Object(j.a)(D(T).map(function(x){return Object($.a)({fixed:R},x)}))):[].concat(Object(j.a)(i),[Object($.a)(Object($.a)({},_),{},{fixed:R})])},[])}function F(u){for(var i=!0,_=0;_=0;T-=1){var x=u[T];if(R&&x.fixed!=="right")R=!1;else if(!R&&x.fixed==="right"){Object(H.a)(!1,"Index ".concat(T+1," of `columns` missing `fixed='right'` prop."));break}}}function k(u){return u.map(function(i){var _=i.fixed,p=Object(J.a)(i,["fixed"]),R=_;return _==="left"?R="right":_==="right"&&(R="left"),Object($.a)({fixed:R},p)})}function U(u,i){var _=u.prefixCls,p=u.columns,R=u.children,T=u.expandable,x=u.expandedKeys,X=u.getRowKey,E=u.onTriggerExpand,y=u.expandIcon,O=u.rowExpandable,a=u.expandIconColumnIndex,o=u.direction,t=u.expandRowByClick,d=N.useMemo(function(){return p||K(R)},[p,R]),f=N.useMemo(function(){if(T){var r,c=a||0,m=d[c],g=(r={},Object(P.a)(r,s.a,{className:"".concat(_,"-expand-icon-col")}),Object(P.a)(r,"title",""),Object(P.a)(r,"fixed",m?m.fixed:null),Object(P.a)(r,"className","".concat(_,"-row-expand-icon-cell")),Object(P.a)(r,"render",function(B,ne,le){var me=X(ne,le),se=x.has(me),ge=O?O(ne):!0,Q=y({prefixCls:_,expanded:se,expandable:ge,record:ne,onExpand:E});return t?N.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},Q):Q}),r),v=d.slice();return c>=0&&v.splice(c,0,g),v}return d},[T,d,X,x,y,o]),b=N.useMemo(function(){var r=f;return i&&(r=i(r)),r.length||(r=[{render:function(){return null}}]),r},[i,f,o]),h=N.useMemo(function(){return o==="rtl"?k(D(b)):D(b)},[b,o]);return[b,h]}S.b=U},"y0+3":function(Oe,S,e){"use strict";e.d(S,"a",function(){return D}),e.d(S,"b",function(){return k});var P=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function J(U){return U.nodeType===1?U.ownerDocument.defaultView.getComputedStyle(U,null):{}}function N(U,u,i){if(u=u.toLowerCase(),i==="auto"){if(u==="height")return U.offsetHeight;if(u==="width")return U.offsetWidth}return u in j||(j[u]=P.test(u)),j[u]?parseFloat(i)||0:i}function n(U,u){var i=arguments.length,_=J(U);return u=$[u]?"cssFloat"in U.style?"cssFloat":"styleFloat":u,i===1?_:N(U,u,_[u]||U.style[u])}function H(U,u,i){var _=arguments.length;if(u=$[u]?"cssFloat"in U.style?"cssFloat":"styleFloat":u,_===3)return typeof i=="number"&&P.test(u)&&(i="".concat(i,"px")),U.style[u]=i,i;for(var p in u)u.hasOwnProperty(p)&&H(U,p,u[p]);return J(U)}function C(U){return U===document.body?document.documentElement.clientWidth:U.offsetWidth}function s(U){return U===document.body?window.innerHeight||document.documentElement.clientHeight:U.offsetHeight}function K(){var U=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),u=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:U,height:u}}function D(){var U=document.documentElement.clientWidth,u=window.innerHeight||document.documentElement.clientHeight;return{width:U,height:u}}function F(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function k(U){var u=U.getBoundingClientRect(),i=document.documentElement;return{left:u.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||document.body.clientLeft||0),top:u.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__GroupHomework__Detail__index.fd03fcd7.async.js b/p__Classrooms__Lists__GroupHomework__Detail__index.e9db8877.async.js similarity index 79% rename from p__Classrooms__Lists__GroupHomework__Detail__index.fd03fcd7.async.js rename to p__Classrooms__Lists__GroupHomework__Detail__index.e9db8877.async.js index a36dbce645..bc477de23a 100644 --- a/p__Classrooms__Lists__GroupHomework__Detail__index.fd03fcd7.async.js +++ b/p__Classrooms__Lists__GroupHomework__Detail__index.e9db8877.async.js @@ -1,8 +1,8 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[78,3,5,6,7,8,10],{"+NIl":function(Vt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";ne.defineMode("stex",function(z,N){"use strict";function K(f,n){f.cmdState.push(n)}function O(f){return f.cmdState.length>0?f.cmdState[f.cmdState.length-1]:null}function w(f){var n=f.cmdState.pop();n&&n.closeBracket()}function B(f){for(var n=f.cmdState,p=n.length-1;p>=0;p--){var o=n[p];if(o.name=="DEFAULT")continue;return o}return{styleIdentifier:function(){return null}}}function C(f,n,p){return function(){this.name=f,this.bracketNo=0,this.style=n,this.styles=p,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var P={};P.importmodule=C("importmodule","tag",["string","builtin"]),P.documentclass=C("documentclass","tag",["","atom"]),P.usepackage=C("usepackage","tag",["atom"]),P.begin=C("begin","tag",["atom"]),P.end=C("end","tag",["atom"]),P.label=C("label","tag",["atom"]),P.ref=C("ref","tag",["atom"]),P.eqref=C("eqref","tag",["atom"]),P.cite=C("cite","tag",["atom"]),P.bibitem=C("bibitem","tag",["atom"]),P.Bibitem=C("Bibitem","tag",["atom"]),P.RBibitem=C("RBibitem","tag",["atom"]),P.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function _(f,n){f.f=n}function d(f,n){var p;if(f.match(/^\\[a-zA-Z@]+/)){var o=f.current().slice(1);return p=P.hasOwnProperty(o)?P[o]:P.DEFAULT,p=new p,K(n,p),_(n,b),p.style}if(f.match(/^\\[$&%#{}_]/))return"tag";if(f.match(/^\\[,;!\/\\]/))return"tag";if(f.match("\\["))return _(n,function(s,l){return v(s,l,"\\]")}),"keyword";if(f.match("\\("))return _(n,function(s,l){return v(s,l,"\\)")}),"keyword";if(f.match("$$"))return _(n,function(s,l){return v(s,l,"$$")}),"keyword";if(f.match("$"))return _(n,function(s,l){return v(s,l,"$")}),"keyword";var r=f.next();if(r=="%")return f.skipToEnd(),"comment";if(r=="}"||r=="]"){if(p=O(n),p)p.closeBracket(r),_(n,b);else return"error";return"bracket"}else return r=="{"||r=="["?(p=P.DEFAULT,p=new p,K(n,p),"bracket"):/\d/.test(r)?(f.eatWhile(/[\w.%]/),"atom"):(f.eatWhile(/[\w\-_]/),p=B(n),p.name=="begin"&&(p.argument=f.current()),p.styleIdentifier())}function v(f,n,p){if(f.eatSpace())return null;if(p&&f.match(p))return _(n,d),"keyword";if(f.match(/^\\[a-zA-Z@]+/))return"tag";if(f.match(/^[a-zA-Z]+/))return"variable-2";if(f.match(/^\\[$&%#{}_]/))return"tag";if(f.match(/^\\[,;!\/]/))return"tag";if(f.match(/^[\^_&]/))return"tag";if(f.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(f.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var o=f.next();return o=="{"||o=="}"||o=="["||o=="]"||o=="("||o==")"?"bracket":o=="%"?(f.skipToEnd(),"comment"):"error"}function b(f,n){var p=f.peek(),o;return p=="{"||p=="["?(o=O(n),o.openBracket(p),f.eat(p),_(n,d),"bracket"):/[ \t\r]/.test(p)?(f.eat(p),null):(_(n,d),w(n),d(f,n))}return{startState:function(){var f=N.inMathMode?function(n,p){return v(n,p)}:d;return{cmdState:[],f}},copyState:function(f){return{cmdState:f.cmdState.slice(),f:f.f}},token:function(f,n){return n.f(f,n)},blankLine:function(f){f.f=d,f.cmdState.length=0},lineComment:"%"}}),ne.defineMIME("text/x-stex","stex"),ne.defineMIME("text/x-latex","stex")})},"+ua5":function(Vt,Ee,k){},"/cxE":function(Vt,Ee,k){"use strict";k.d(Ee,"e",function(){return N}),k.d(Ee,"f",function(){return K}),k.d(Ee,"g",function(){return O}),k.d(Ee,"d",function(){return B}),k.d(Ee,"a",function(){return C}),k.d(Ee,"b",function(){return P}),k.d(Ee,"c",function(){return _});var ne=function(){function d(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(function(){throw v.stack?new Error(v.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[78,3,5,6,7,8,10],{"+NIl":function(Gt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";ne.defineMode("stex",function(z,N){"use strict";function K(f,n){f.cmdState.push(n)}function O(f){return f.cmdState.length>0?f.cmdState[f.cmdState.length-1]:null}function w(f){var n=f.cmdState.pop();n&&n.closeBracket()}function B(f){for(var n=f.cmdState,p=n.length-1;p>=0;p--){var o=n[p];if(o.name=="DEFAULT")continue;return o}return{styleIdentifier:function(){return null}}}function C(f,n,p){return function(){this.name=f,this.bracketNo=0,this.style=n,this.styles=p,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var P={};P.importmodule=C("importmodule","tag",["string","builtin"]),P.documentclass=C("documentclass","tag",["","atom"]),P.usepackage=C("usepackage","tag",["atom"]),P.begin=C("begin","tag",["atom"]),P.end=C("end","tag",["atom"]),P.label=C("label","tag",["atom"]),P.ref=C("ref","tag",["atom"]),P.eqref=C("eqref","tag",["atom"]),P.cite=C("cite","tag",["atom"]),P.bibitem=C("bibitem","tag",["atom"]),P.Bibitem=C("Bibitem","tag",["atom"]),P.RBibitem=C("RBibitem","tag",["atom"]),P.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function _(f,n){f.f=n}function d(f,n){var p;if(f.match(/^\\[a-zA-Z@]+/)){var o=f.current().slice(1);return p=P.hasOwnProperty(o)?P[o]:P.DEFAULT,p=new p,K(n,p),_(n,b),p.style}if(f.match(/^\\[$&%#{}_]/))return"tag";if(f.match(/^\\[,;!\/\\]/))return"tag";if(f.match("\\["))return _(n,function(s,l){return v(s,l,"\\]")}),"keyword";if(f.match("\\("))return _(n,function(s,l){return v(s,l,"\\)")}),"keyword";if(f.match("$$"))return _(n,function(s,l){return v(s,l,"$$")}),"keyword";if(f.match("$"))return _(n,function(s,l){return v(s,l,"$")}),"keyword";var r=f.next();if(r=="%")return f.skipToEnd(),"comment";if(r=="}"||r=="]"){if(p=O(n),p)p.closeBracket(r),_(n,b);else return"error";return"bracket"}else return r=="{"||r=="["?(p=P.DEFAULT,p=new p,K(n,p),"bracket"):/\d/.test(r)?(f.eatWhile(/[\w.%]/),"atom"):(f.eatWhile(/[\w\-_]/),p=B(n),p.name=="begin"&&(p.argument=f.current()),p.styleIdentifier())}function v(f,n,p){if(f.eatSpace())return null;if(p&&f.match(p))return _(n,d),"keyword";if(f.match(/^\\[a-zA-Z@]+/))return"tag";if(f.match(/^[a-zA-Z]+/))return"variable-2";if(f.match(/^\\[$&%#{}_]/))return"tag";if(f.match(/^\\[,;!\/]/))return"tag";if(f.match(/^[\^_&]/))return"tag";if(f.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(f.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var o=f.next();return o=="{"||o=="}"||o=="["||o=="]"||o=="("||o==")"?"bracket":o=="%"?(f.skipToEnd(),"comment"):"error"}function b(f,n){var p=f.peek(),o;return p=="{"||p=="["?(o=O(n),o.openBracket(p),f.eat(p),_(n,d),"bracket"):/[ \t\r]/.test(p)?(f.eat(p),null):(_(n,d),w(n),d(f,n))}return{startState:function(){var f=N.inMathMode?function(n,p){return v(n,p)}:d;return{cmdState:[],f}},copyState:function(f){return{cmdState:f.cmdState.slice(),f:f.f}},token:function(f,n){return n.f(f,n)},blankLine:function(f){f.f=d,f.cmdState.length=0},lineComment:"%"}}),ne.defineMIME("text/x-stex","stex"),ne.defineMIME("text/x-latex","stex")})},"+ua5":function(Gt,Ee,k){},"/cxE":function(Gt,Ee,k){"use strict";k.d(Ee,"e",function(){return N}),k.d(Ee,"f",function(){return K}),k.d(Ee,"g",function(){return O}),k.d(Ee,"d",function(){return B}),k.d(Ee,"a",function(){return C}),k.d(Ee,"b",function(){return P}),k.d(Ee,"c",function(){return _});var ne=function(){function d(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(function(){throw v.stack?new Error(v.message+` -`+v.stack):v},0)}}return d.prototype.emit=function(v){this.listeners.forEach(function(b){b(v)})},d.prototype.onUnexpectedError=function(v){this.unexpectedErrorHandler(v),this.emit(v)},d.prototype.onUnexpectedExternalError=function(v){this.unexpectedErrorHandler(v)},d}(),z=new ne;function N(d){B(d)||z.onUnexpectedError(d);return}function K(d){B(d)||z.onUnexpectedExternalError(d);return}function O(d){if(d instanceof Error){var v=d.name,b=d.message,f=d.stacktrace||d.stack;return{$isError:!0,name:v,message:b,stack:f}}return d}var w="Canceled";function B(d){return d instanceof Error&&d.name===w&&d.message===w}function C(){var d=new Error(w);return d.name=d.message,d}function P(d){return d?new Error("Illegal argument: "+d):new Error("Illegal argument")}function _(d){return d?new Error("Illegal state: "+d):new Error("Illegal state")}},"19Vz":function(Vt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){ne.defineOption("placeholder","",function(C,P,_){var d=_&&_!=ne.Init;if(P&&!d)C.on("blur",O),C.on("change",w),C.on("swapDoc",w),ne.on(C.getInputField(),"compositionupdate",C.state.placeholderCompose=function(){K(C)}),w(C);else if(!P&&d){C.off("blur",O),C.off("change",w),C.off("swapDoc",w),ne.off(C.getInputField(),"compositionupdate",C.state.placeholderCompose),z(C);var v=C.getWrapperElement();v.className=v.className.replace(" CodeMirror-empty","")}P&&!C.hasFocus()&&O(C)});function z(C){C.state.placeholder&&(C.state.placeholder.parentNode.removeChild(C.state.placeholder),C.state.placeholder=null)}function N(C){z(C);var P=C.state.placeholder=document.createElement("pre");P.style.cssText="height: 0; overflow: visible",P.style.direction=C.getOption("direction"),P.className="CodeMirror-placeholder CodeMirror-line-like";var _=C.getOption("placeholder");typeof _=="string"&&(_=document.createTextNode(_)),P.appendChild(_),C.display.lineSpace.insertBefore(P,C.display.lineSpace.firstChild)}function K(C){setTimeout(function(){var P=!1,_=C.getInputField();_.nodeName=="TEXTAREA"?P=!_.value:C.lineCount()==1&&(P=!/[^\u200b]/.test(_.querySelector(".CodeMirror-line").textContent)),P?N(C):z(C)},20)}function O(C){B(C)&&N(C)}function w(C){var P=C.getWrapperElement(),_=B(C);P.className=P.className.replace(" CodeMirror-empty","")+(_?" CodeMirror-empty":""),_?N(C):z(C)}function B(C){return C.lineCount()===1&&C.getLine(0)===""}})},"1eCo":function(Vt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";var z={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},N={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ne.defineMode("xml",function(K,O){var w=K.indentUnit,B={},C=O.htmlMode?z:N;for(var P in C)B[P]=C[P];for(var P in O)B[P]=O[P];var _,d;function v(u,D){function T(U){return D.tokenize=U,U(u,D)}var A=u.next();if(A=="<")return u.eat("!")?u.eat("[")?u.match("CDATA[")?T(n("atom","]]>")):null:u.match("--")?T(n("comment","-->")):u.match("DOCTYPE",!0,!0)?(u.eatWhile(/[\w\._\-]/),T(p(1))):null:u.eat("?")?(u.eatWhile(/[\w\._\-]/),D.tokenize=n("meta","?>"),"meta"):(_=u.eat("/")?"closeTag":"openTag",D.tokenize=b,"tag bracket");if(A=="&"){var j;return u.eat("#")?u.eat("x")?j=u.eatWhile(/[a-fA-F\d]/)&&u.eat(";"):j=u.eatWhile(/[\d]/)&&u.eat(";"):j=u.eatWhile(/[\w\.\-:]/)&&u.eat(";"),j?"atom":"error"}else return u.eatWhile(/[^&<]/),null}v.isInText=!0;function b(u,D){var T=u.next();if(T==">"||T=="/"&&u.eat(">"))return D.tokenize=v,_=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return _="equals",null;if(T=="<"){D.tokenize=v,D.state=l,D.tagName=D.tagStart=null;var A=D.tokenize(u,D);return A?A+" tag error":"tag error"}else return/[\'\"]/.test(T)?(D.tokenize=f(T),D.stringStartCol=u.column(),D.tokenize(u,D)):(u.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(u){var D=function(T,A){for(;!T.eol();)if(T.next()==u){A.tokenize=b;break}return"string"};return D.isInAttribute=!0,D}function n(u,D){return function(T,A){for(;!T.eol();){if(T.match(D)){A.tokenize=v;break}T.next()}return u}}function p(u){return function(D,T){for(var A;(A=D.next())!=null;){if(A=="<")return T.tokenize=p(u+1),T.tokenize(D,T);if(A==">")if(u==1){T.tokenize=v;break}else return T.tokenize=p(u-1),T.tokenize(D,T)}return"meta"}}function o(u,D,T){this.prev=u.context,this.tagName=D,this.indent=u.indented,this.startOfLine=T,(B.doNotIndent.hasOwnProperty(D)||u.context&&u.context.noIndent)&&(this.noIndent=!0)}function r(u){u.context&&(u.context=u.context.prev)}function s(u,D){for(var T;;){if(!u.context)return;if(T=u.context.tagName,!B.contextGrabbers.hasOwnProperty(T)||!B.contextGrabbers[T].hasOwnProperty(D))return;r(u)}}function l(u,D,T){return u=="openTag"?(T.tagStart=D.column(),x):u=="closeTag"?E:l}function x(u,D,T){return u=="word"?(T.tagName=D.current(),d="tag",R):B.allowMissingTagName&&u=="endTag"?(d="tag bracket",R(u,D,T)):(d="error",x)}function E(u,D,T){if(u=="word"){var A=D.current();return T.context&&T.context.tagName!=A&&B.implicitlyClosed.hasOwnProperty(T.context.tagName)&&r(T),T.context&&T.context.tagName==A||B.matchClosing===!1?(d="tag",y):(d="tag error",L)}else return B.allowMissingTagName&&u=="endTag"?(d="tag bracket",y(u,D,T)):(d="error",L)}function y(u,D,T){return u!="endTag"?(d="error",y):(r(T),l)}function L(u,D,T){return d="error",y(u,D,T)}function R(u,D,T){if(u=="word")return d="attribute",g;if(u=="endTag"||u=="selfcloseTag"){var A=T.tagName,j=T.tagStart;return T.tagName=T.tagStart=null,u=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(A)?s(T,A):(s(T,A),T.context=new o(T,A,j==T.indented)),l}return d="error",R}function g(u,D,T){return u=="equals"?m:(B.allowMissing||(d="error"),R(u,D,T))}function m(u,D,T){return u=="string"?c:u=="word"&&B.allowUnquoted?(d="string",R):(d="error",R(u,D,T))}function c(u,D,T){return u=="string"?c:R(u,D,T)}return{startState:function(u){var D={tokenize:v,state:l,indented:u||0,tagName:null,tagStart:null,context:null};return u!=null&&(D.baseIndent=u),D},token:function(u,D){if(!D.tagName&&u.sol()&&(D.indented=u.indentation()),u.eatSpace())return null;_=null;var T=D.tokenize(u,D);return(T||_)&&T!="comment"&&(d=null,D.state=D.state(_||T,u,D),d&&(T=d=="error"?T+" error":d)),T},indent:function(u,D,T){var A=u.context;if(u.tokenize.isInAttribute)return u.tagStart==u.indented?u.stringStartCol+1:u.indented+w;if(A&&A.noIndent)return ne.Pass;if(u.tokenize!=b&&u.tokenize!=v)return T?T.match(/^(\s*)/)[0].length:0;if(u.tagName)return B.multilineTagIndentPastTag!==!1?u.tagStart+u.tagName.length+2:u.tagStart+w*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/$/,blockCommentStart:"",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(u){u.state==m&&(u.state=R)},xmlCurrentTag:function(u){return u.tagName?{name:u.tagName,close:u.type=="closeTag"}:null},xmlCurrentContext:function(u){for(var D=[],T=u.context;T;T=T.prev)T.tagName&&D.push(T.tagName);return D.reverse()}}}),ne.defineMIME("text/xml","xml"),ne.defineMIME("application/xml","xml"),ne.mimeModes.hasOwnProperty("text/html")||ne.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Vt,Ee,k){"use strict";k.d(Ee,"d",function(){return Tt}),k.d(Ee,"b",function(){return at}),k.d(Ee,"c",function(){return Rt}),k.d(Ee,"a",function(){return pn});var ne=k("VTBJ"),z=k("1OyB"),N=k("vuIU"),K=k("JX7q"),O=k("Ji7U"),w=k("LK+K"),B=k("q1tI"),C=k("I8Z2"),P=k("BGR+"),_=k("wx14"),d=k("rePB"),v=k("4IlW"),b=k("2GS6"),f=k("Gytx"),n=k.n(f),p=k("TSYQ"),o=k.n(p),r=k("U8pU"),s=k("ODXe"),l=/iPhone/i,x=/iPod/i,E=/iPad/i,y=/\bAndroid(?:.+)Mobile\b/i,L=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,g=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,m=/Windows Phone/i,c=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,D=/BB10/i,T=/Opera Mini/i,A=/\b(CriOS|Chrome)(?:.+)Mobile/i,j=/Mobile(?:.+)Firefox\b/i;function U(Kt,bt){return Kt.test(bt)}function H(Kt){var bt=Kt||(typeof navigator!="undefined"?navigator.userAgent:""),xt=bt.split("[FBAN");if(typeof xt[1]!="undefined"){var ct=xt,ge=Object(s.a)(ct,1);bt=ge[0]}if(xt=bt.split("Twitter"),typeof xt[1]!="undefined"){var Ne=xt,Ct=Object(s.a)(Ne,1);bt=Ct[0]}var dt={apple:{phone:U(l,bt)&&!U(m,bt),ipod:U(x,bt),tablet:!U(l,bt)&&U(E,bt)&&!U(m,bt),device:(U(l,bt)||U(x,bt)||U(E,bt))&&!U(m,bt)},amazon:{phone:U(R,bt),tablet:!U(R,bt)&&U(g,bt),device:U(R,bt)||U(g,bt)},android:{phone:!U(m,bt)&&U(R,bt)||!U(m,bt)&&U(y,bt),tablet:!U(m,bt)&&!U(R,bt)&&!U(y,bt)&&(U(g,bt)||U(L,bt)),device:!U(m,bt)&&(U(R,bt)||U(g,bt)||U(y,bt)||U(L,bt))||U(/\bokhttp\b/i,bt)},windows:{phone:U(m,bt),tablet:U(c,bt),device:U(m,bt)||U(c,bt)},other:{blackberry:U(u,bt),blackberry10:U(D,bt),opera:U(T,bt),firefox:U(j,bt),chrome:U(A,bt),device:U(u,bt)||U(D,bt)||U(T,bt)||U(j,bt)||U(A,bt)},any:null,phone:null,tablet:null};return dt.any=dt.apple.device||dt.android.device||dt.windows.device||dt.other.device,dt.phone=dt.apple.phone||dt.android.phone||dt.windows.phone,dt.tablet=dt.apple.tablet||dt.android.tablet||dt.windows.tablet,dt}var V=Object(ne.a)(Object(ne.a)({},H()),{},{isMobile:H}),I=V;function W(){}function Q(Kt,bt,xt){var ct=bt||"";return Kt.key||"".concat(ct,"item_").concat(xt)}function ie(Kt){return"".concat(Kt,"-menu-")}function ae(Kt,bt){var xt=-1;B.Children.forEach(Kt,function(ct){xt+=1,ct&&ct.type&&ct.type.isMenuItemGroup?B.Children.forEach(ct.props.children,function(ge){xt+=1,bt(ge,xt)}):bt(ct,xt)})}function xe(Kt,bt,xt){if(!Kt||xt.find)return;B.Children.forEach(Kt,function(ct){if(ct){var ge=ct.type;if(!ge||!(ge.isSubMenu||ge.isMenuItem||ge.isMenuItemGroup))return;bt.indexOf(ct.key)!==-1?xt.find=!0:ct.props.children&&xe(ct.props.children,bt,xt)}})}var Ze=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Me=function(bt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(ct){if(xt){var ge=getComputedStyle(bt),Ne=ge.marginLeft,Ct=ge.marginRight;ct+=+Ne.replace("px","")+ +Ct.replace("px","")}ct=+ct.toFixed(6)}return ct||0},Be=function(bt,xt,ct){bt&&Object(r.a)(bt.style)==="object"&&(bt.style[xt]=ct)},qe=function(){return I.any},Ve=k("KQm4"),De=k("Ff2n"),pe=k("i8i4"),se=k("bdgK"),we=k("uciX"),ve=k("8XRh"),$e={adjustX:1,adjustY:1},me={topLeft:{points:["bl","tl"],overflow:$e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$e,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:$e,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:$e,offset:[4,0]}},X={topLeft:{points:["bl","tl"],overflow:$e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$e,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:$e,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:$e,offset:[4,0]}},G=me,Y=0,ue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},be=function(bt,xt,ct){var ge=ie(xt),Ne=bt.getState();bt.setState({defaultActiveFirst:Object(ne.a)(Object(ne.a)({},Ne.defaultActiveFirst),{},Object(d.a)({},ge,ct))})},We=function(Kt){Object(O.a)(xt,Kt);var bt=Object(w.a)(xt);function xt(ct){var ge;Object(z.a)(this,xt),ge=bt.call(this,ct),ge.onDestroy=function(it){ge.props.onDestroy(it)},ge.onKeyDown=function(it){var vt=it.keyCode,Ot=ge.menuInstance,sn=ge.props,En=sn.isOpen,or=sn.store;if(vt===v.a.ENTER)return ge.onTitleClick(it),be(or,ge.props.eventKey,!0),!0;if(vt===v.a.RIGHT)return En?Ot.onKeyDown(it):(ge.triggerOpenChange(!0),be(or,ge.props.eventKey,!0)),!0;if(vt===v.a.LEFT){var fr;if(En)fr=Ot.onKeyDown(it);else return;return fr||(ge.triggerOpenChange(!1),fr=!0),fr}return En&&(vt===v.a.UP||vt===v.a.DOWN)?Ot.onKeyDown(it):void 0},ge.onOpenChange=function(it){ge.props.onOpenChange(it)},ge.onPopupVisibleChange=function(it){ge.triggerOpenChange(it,it?"mouseenter":"mouseleave")},ge.onMouseEnter=function(it){var vt=ge.props,Ot=vt.eventKey,sn=vt.onMouseEnter,En=vt.store;be(En,ge.props.eventKey,!1),sn({key:Ot,domEvent:it})},ge.onMouseLeave=function(it){var vt=ge.props,Ot=vt.parentMenu,sn=vt.eventKey,En=vt.onMouseLeave;Ot.subMenuInstance=Object(K.a)(ge),En({key:sn,domEvent:it})},ge.onTitleMouseEnter=function(it){var vt=ge.props,Ot=vt.eventKey,sn=vt.onItemHover,En=vt.onTitleMouseEnter;sn({key:Ot,hover:!0}),En({key:Ot,domEvent:it})},ge.onTitleMouseLeave=function(it){var vt=ge.props,Ot=vt.parentMenu,sn=vt.eventKey,En=vt.onItemHover,or=vt.onTitleMouseLeave;Ot.subMenuInstance=Object(K.a)(ge),En({key:sn,hover:!1}),or({key:sn,domEvent:it})},ge.onTitleClick=function(it){var vt=Object(K.a)(ge),Ot=vt.props;if(Ot.onTitleClick({key:Ot.eventKey,domEvent:it}),Ot.triggerSubMenuAction==="hover")return;ge.triggerOpenChange(!Ot.isOpen,"click"),be(Ot.store,ge.props.eventKey,!1)},ge.onSubMenuClick=function(it){typeof ge.props.onClick=="function"&&ge.props.onClick(ge.addKeyPath(it))},ge.onSelect=function(it){ge.props.onSelect(it)},ge.onDeselect=function(it){ge.props.onDeselect(it)},ge.getPrefixCls=function(){return"".concat(ge.props.rootPrefixCls,"-submenu")},ge.getActiveClassName=function(){return"".concat(ge.getPrefixCls(),"-active")},ge.getDisabledClassName=function(){return"".concat(ge.getPrefixCls(),"-disabled")},ge.getSelectedClassName=function(){return"".concat(ge.getPrefixCls(),"-selected")},ge.getOpenClassName=function(){return"".concat(ge.props.rootPrefixCls,"-submenu-open")},ge.saveMenuInstance=function(it){ge.menuInstance=it},ge.addKeyPath=function(it){return Object(ne.a)(Object(ne.a)({},it),{},{keyPath:(it.keyPath||[]).concat(ge.props.eventKey)})},ge.triggerOpenChange=function(it,vt){var Ot=ge.props.eventKey,sn=function(){ge.onOpenChange({key:Ot,item:Object(K.a)(ge),trigger:vt,open:it})};vt==="mouseenter"?ge.mouseenterTimeout=setTimeout(function(){sn()},0):sn()},ge.isChildrenSelected=function(){var it={find:!1};return xe(ge.props.children,ge.props.selectedKeys,it),it.find},ge.isOpen=function(){return ge.props.openKeys.indexOf(ge.props.eventKey)!==-1},ge.adjustWidth=function(){if(!ge.subMenuTitle||!ge.menuInstance)return;var it=pe.findDOMNode(ge.menuInstance);if(it.offsetWidth>=ge.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(ge.subMenuTitle.offsetWidth,"px")},ge.saveSubMenuTitle=function(it){ge.subMenuTitle=it},ge.getBaseProps=function(){var it=Object(K.a)(ge),vt=it.props;return{mode:vt.mode==="horizontal"?"vertical":vt.mode,visible:ge.props.isOpen,level:vt.level+1,inlineIndent:vt.inlineIndent,focusable:!1,onClick:ge.onSubMenuClick,onSelect:ge.onSelect,onDeselect:ge.onDeselect,onDestroy:ge.onDestroy,selectedKeys:vt.selectedKeys,eventKey:"".concat(vt.eventKey,"-menu-"),openKeys:vt.openKeys,motion:vt.motion,onOpenChange:ge.onOpenChange,subMenuOpenDelay:vt.subMenuOpenDelay,parentMenu:Object(K.a)(ge),subMenuCloseDelay:vt.subMenuCloseDelay,forceSubMenuRender:vt.forceSubMenuRender,triggerSubMenuAction:vt.triggerSubMenuAction,builtinPlacements:vt.builtinPlacements,defaultActiveFirst:vt.store.getState().defaultActiveFirst[ie(vt.eventKey)],multiple:vt.multiple,prefixCls:vt.rootPrefixCls,id:ge.internalMenuId,manualRef:ge.saveMenuInstance,itemIcon:vt.itemIcon,expandIcon:vt.expandIcon,direction:vt.direction}},ge.getMotion=function(it,vt){var Ot=Object(K.a)(ge),sn=Ot.haveRendered,En=ge.props,or=En.motion,fr=En.rootPrefixCls,ar=Object(ne.a)(Object(ne.a)({},or),{},{leavedClassName:"".concat(fr,"-hidden"),removeOnLeave:!1,motionAppear:sn||!vt||it!=="inline"});return ar};var Ne=ct.store,Ct=ct.eventKey,dt=Ne.getState(),tn=dt.defaultActiveFirst;ge.isRootMenu=!1;var nn=!1;return tn&&(nn=tn[Ct]),be(Ne,Ct,nn),ge}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this,Ne=this.props,Ct=Ne.mode,dt=Ne.parentMenu,tn=Ne.manualRef;if(tn&&tn(this),Ct!=="horizontal"||!dt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ge.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ge=this.props,Ne=ge.onDestroy,Ct=ge.eventKey;Ne&&Ne(Ct),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ge){var Ne=this,Ct=this.getBaseProps(),dt=this.getMotion(Ct.mode,Ct.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ct.visible||Ct.forceSubMenuRender,!this.haveOpened)return B.createElement("div",null);var tn=Ct.direction;return B.createElement(ve.default,Object.assign({visible:Ct.visible},dt),function(nn){var it=nn.className,vt=nn.style,Ot=o()("".concat(Ct.prefixCls,"-sub"),it,Object(d.a)({},"".concat(Ct.prefixCls,"-rtl"),tn==="rtl"));return B.createElement(Fe,Object.assign({},Ct,{id:Ne.internalMenuId,className:Ot,style:vt}),ge)})}},{key:"render",value:function(){var ge,Ne=Object(ne.a)({},this.props),Ct=Ne.isOpen,dt=this.getPrefixCls(),tn=Ne.mode==="inline",nn=o()(dt,"".concat(dt,"-").concat(Ne.mode),(ge={},Object(d.a)(ge,Ne.className,!!Ne.className),Object(d.a)(ge,this.getOpenClassName(),Ct),Object(d.a)(ge,this.getActiveClassName(),Ne.active||Ct&&!tn),Object(d.a)(ge,this.getDisabledClassName(),Ne.disabled),Object(d.a)(ge,this.getSelectedClassName(),this.isChildrenSelected()),ge));this.internalMenuId||(Ne.eventKey?this.internalMenuId="".concat(Ne.eventKey,"$Menu"):(Y+=1,this.internalMenuId="$__$".concat(Y,"$Menu")));var it={},vt={},Ot={};Ne.disabled||(it={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},vt={onClick:this.onTitleClick},Ot={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var sn={},En=Ne.direction;tn&&(En==="rtl"?sn.paddingRight=Ne.inlineIndent*Ne.level:sn.paddingLeft=Ne.inlineIndent*Ne.level);var or={};this.props.isOpen&&(or={"aria-owns":this.internalMenuId});var fr=null;Ne.mode!=="horizontal"&&(fr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(fr=B.createElement(this.props.expandIcon,Object(ne.a)({},this.props))));var ar=B.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:sn,className:"".concat(dt,"-title"),role:"button"},Ot,vt,{"aria-expanded":Ct},or,{"aria-haspopup":"true",title:typeof Ne.title=="string"?Ne.title:void 0}),Ne.title,fr||B.createElement("i",{className:"".concat(dt,"-arrow")})),Sn=this.renderChildren(Ne.children),Hr=Ne.parentMenu.isRootMenu?Ne.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},ea=ue[Ne.mode],Ir=Ne.popupOffset?{offset:Ne.popupOffset}:{},pr=Ne.mode==="inline"?"":Ne.popupClassName;pr+=En==="rtl"?" ".concat(dt,"-rtl"):"";var Br=Ne.disabled,Jr=Ne.triggerSubMenuAction,la=Ne.subMenuOpenDelay,jt=Ne.forceSubMenuRender,On=Ne.subMenuCloseDelay,mr=Ne.builtinPlacements;Ze.forEach(function(Sr){return delete Ne[Sr]}),delete Ne.onClick;var Dr=En==="rtl"?Object.assign({},X,mr):Object.assign({},me,mr);return delete Ne.direction,B.createElement("li",Object.assign({},Ne,it,{className:nn,role:"menuitem"}),tn&&ar,tn&&Sn,!tn&&B.createElement(we.a,{prefixCls:dt,popupClassName:o()("".concat(dt,"-popup"),pr),getPopupContainer:Hr,builtinPlacements:Dr,popupPlacement:ea,popupVisible:Ct,popupAlign:Ir,popup:Sn,action:Br?[]:[Jr],mouseEnterDelay:la,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:jt},ar))}}]),xt}(B.Component);We.defaultProps={onMouseEnter:W,onMouseLeave:W,onTitleMouseEnter:W,onTitleMouseLeave:W,onTitleClick:W,manualRef:W,mode:"vertical",title:""};var ze=Object(C.b)(function(Kt,bt){var xt=Kt.openKeys,ct=Kt.activeKey,ge=Kt.selectedKeys,Ne=bt.eventKey,Ct=bt.subMenuKey;return{isOpen:xt.indexOf(Ne)>-1,active:ct[Ct]===Ne,selectedKeys:ge}})(We);ze.isSubMenu=!0;var Tt=ze,Ut="menuitem-overflowed",It=.5,Nt=function(Kt){Object(O.a)(xt,Kt);var bt=Object(w.a)(xt);function xt(){var ct;return Object(z.a)(this,xt),ct=bt.apply(this,arguments),ct.resizeObserver=null,ct.mutationObserver=null,ct.originalTotalWidth=0,ct.overflowedItems=[],ct.menuItemSizes=[],ct.cancelFrameId=null,ct.state={lastVisibleIndex:void 0},ct.getMenuItemNodes=function(){var ge=ct.props.prefixCls,Ne=pe.findDOMNode(Object(K.a)(ct));return Ne?[].slice.call(Ne.children).filter(function(Ct){return Ct.className.split(" ").indexOf("".concat(ge,"-overflowed-submenu"))<0}):[]},ct.getOverflowedSubMenuItem=function(ge,Ne,Ct){var dt=ct.props,tn=dt.overflowedIndicator,nn=dt.level,it=dt.mode,vt=dt.prefixCls,Ot=dt.theme;if(nn!==1||it!=="horizontal")return null;var sn=ct.props.children[0],En=sn.props,or=En.children,fr=En.title,ar=En.style,Sn=Object(De.a)(En,["children","title","style"]),Hr=Object(ne.a)({},ar),ea="".concat(ge,"-overflowed-indicator"),Ir="".concat(ge,"-overflowed-indicator");Ne.length===0&&Ct!==!0?Hr=Object(ne.a)(Object(ne.a)({},Hr),{},{display:"none"}):Ct&&(Hr=Object(ne.a)(Object(ne.a)({},Hr),{},{visibility:"hidden",position:"absolute"}),ea="".concat(ea,"-placeholder"),Ir="".concat(Ir,"-placeholder"));var pr=Ot?"".concat(vt,"-").concat(Ot):"",Br={};return Ze.forEach(function(Jr){Sn[Jr]!==void 0&&(Br[Jr]=Sn[Jr])}),B.createElement(Tt,Object.assign({title:tn,className:"".concat(vt,"-overflowed-submenu"),popupClassName:pr},Br,{key:ea,eventKey:Ir,disabled:!1,style:Hr}),Ne)},ct.setChildrenWidthAndResize=function(){if(ct.props.mode!=="horizontal")return;var ge=pe.findDOMNode(Object(K.a)(ct));if(!ge)return;var Ne=ge.children;if(!Ne||Ne.length===0)return;var Ct=ge.children[Ne.length-1];Be(Ct,"display","inline-block");var dt=ct.getMenuItemNodes(),tn=dt.filter(function(nn){return nn.className.split(" ").indexOf(Ut)>=0});tn.forEach(function(nn){Be(nn,"display","inline-block")}),ct.menuItemSizes=dt.map(function(nn){return Me(nn,!0)}),tn.forEach(function(nn){Be(nn,"display","none")}),ct.overflowedIndicatorWidth=Me(ge.children[ge.children.length-1],!0),ct.originalTotalWidth=ct.menuItemSizes.reduce(function(nn,it){return nn+it},0),ct.handleResize(),Be(Ct,"display","none")},ct.handleResize=function(){if(ct.props.mode!=="horizontal")return;var ge=pe.findDOMNode(Object(K.a)(ct));if(!ge)return;var Ne=Me(ge);ct.overflowedItems=[];var Ct=0,dt;ct.originalTotalWidth>Ne+It&&(dt=-1,ct.menuItemSizes.forEach(function(tn){Ct+=tn,Ct+ct.overflowedIndicatorWidth<=Ne&&(dt+=1)})),ct.setState({lastVisibleIndex:dt})},ct}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){var ge=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ne=pe.findDOMNode(this);if(!Ne)return;this.resizeObserver=new se.default(function(Ct){Ct.forEach(function(){var dt=ge.cancelFrameId;cancelAnimationFrame(dt),ge.cancelFrameId=requestAnimationFrame(ge.setChildrenWidthAndResize)})}),[].slice.call(Ne.children).concat(Ne).forEach(function(Ct){ge.resizeObserver.observe(Ct)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ge.resizeObserver.disconnect(),[].slice.call(Ne.children).concat(Ne).forEach(function(Ct){ge.resizeObserver.observe(Ct)}),ge.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ne,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ge){var Ne=this,Ct=this.state.lastVisibleIndex;return(ge||[]).reduce(function(dt,tn,nn){var it=tn;if(Ne.props.mode==="horizontal"){var vt=Ne.getOverflowedSubMenuItem(tn.props.eventKey,[]);Ct!==void 0&&Ne.props.className.indexOf("".concat(Ne.props.prefixCls,"-root"))!==-1&&(nn>Ct&&(it=B.cloneElement(tn,{style:{display:"none"},eventKey:"".concat(tn.props.eventKey,"-hidden"),className:"".concat(Ut)})),nn===Ct+1&&(Ne.overflowedItems=ge.slice(Ct+1).map(function(sn){return B.cloneElement(sn,{key:sn.props.eventKey,mode:"vertical-left"})}),vt=Ne.getOverflowedSubMenuItem(tn.props.eventKey,Ne.overflowedItems)));var Ot=[].concat(Object(Ve.a)(dt),[vt,it]);return nn===ge.length-1&&Ot.push(Ne.getOverflowedSubMenuItem(tn.props.eventKey,[],!0)),Ot}return[].concat(Object(Ve.a)(dt),[it])},[])}},{key:"render",value:function(){var ge=this.props,Ne=ge.visible,Ct=ge.prefixCls,dt=ge.overflowedIndicator,tn=ge.mode,nn=ge.level,it=ge.tag,vt=ge.children,Ot=ge.theme,sn=Object(De.a)(ge,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),En=it;return B.createElement(En,Object.assign({},sn),this.renderChildren(vt))}}]),xt}(B.Component);Nt.defaultProps={tag:"div",className:""};var qt=Nt;function hn(Kt){return Kt.length?Kt.every(function(bt){return!!bt.props.disabled}):!0}function nt(Kt,bt,xt){var ct=Kt.getState();Kt.setState({activeKey:Object(ne.a)(Object(ne.a)({},ct.activeKey),{},Object(d.a)({},bt,xt))})}function He(Kt){return Kt.eventKey||"0-menu-"}function pt(Kt,bt){var xt=bt,ct=Kt.children,ge=Kt.eventKey;if(xt){var Ne;if(ae(ct,function(Ct,dt){Ct&&Ct.props&&!Ct.props.disabled&&xt===Q(Ct,ge,dt)&&(Ne=!0)}),Ne)return xt}return xt=null,Kt.defaultActiveFirst&&ae(ct,function(Ct,dt){!xt&&Ct&&!Ct.props.disabled&&(xt=Q(Ct,ge,dt))}),xt}function kt(Kt){if(Kt){var bt=this.instanceArray.indexOf(Kt);bt!==-1?this.instanceArray[bt]=Kt:this.instanceArray.push(Kt)}}var st=function(Kt){Object(O.a)(xt,Kt);var bt=Object(w.a)(xt);function xt(ct){var ge;return Object(z.a)(this,xt),ge=bt.call(this,ct),ge.onKeyDown=function(Ne,Ct){var dt=Ne.keyCode,tn;if(ge.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(tn=it.onKeyDown(Ne))}),tn)return 1;var nn=null;return(dt===v.a.UP||dt===v.a.DOWN)&&(nn=ge.step(dt===v.a.UP?-1:1)),nn?(Ne.preventDefault(),nt(ge.props.store,He(ge.props),nn.props.eventKey),typeof Ct=="function"&&Ct(nn),1):void 0},ge.onItemHover=function(Ne){var Ct=Ne.key,dt=Ne.hover;nt(ge.props.store,He(ge.props),dt?Ct:null)},ge.onDeselect=function(Ne){ge.props.onDeselect(Ne)},ge.onSelect=function(Ne){ge.props.onSelect(Ne)},ge.onClick=function(Ne){ge.props.onClick(Ne)},ge.onOpenChange=function(Ne){ge.props.onOpenChange(Ne)},ge.onDestroy=function(Ne){ge.props.onDestroy(Ne)},ge.getFlatInstanceArray=function(){return ge.instanceArray},ge.step=function(Ne){var Ct=ge.getFlatInstanceArray(),dt=ge.props.store.getState().activeKey[He(ge.props)],tn=Ct.length;if(!tn)return null;Ne<0&&(Ct=Ct.concat().reverse());var nn=-1;if(Ct.every(function(sn,En){return sn&&sn.props.eventKey===dt?(nn=En,!1):!0}),!ge.props.defaultActiveFirst&&nn!==-1&&hn(Ct.slice(nn,tn-1)))return;var it=(nn+1)%tn,vt=it;do{var Ot=Ct[vt];if(!Ot||Ot.props.disabled)vt=(vt+1)%tn;else return Ot}while(vt!==it);return null},ge.renderCommonMenuItem=function(Ne,Ct,dt){var tn=ge.props.store.getState(),nn=Object(K.a)(ge),it=nn.props,vt=Q(Ne,it.eventKey,Ct),Ot=Ne.props;if(!Ot||typeof Ne.type=="string")return Ne;var sn=vt===tn.activeKey,En=Object(ne.a)(Object(ne.a)({mode:Ot.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:ge.renderMenuItem,rootPrefixCls:it.prefixCls,index:Ct,parentMenu:it.parentMenu,manualRef:Ot.disabled?void 0:Object(b.a)(Ne.ref,kt.bind(Object(K.a)(ge))),eventKey:vt,active:!Ot.disabled&&sn,multiple:it.multiple,onClick:function(fr){(Ot.onClick||W)(fr),ge.onClick(fr)},onItemHover:ge.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:ge.onOpenChange,onDeselect:ge.onDeselect,onSelect:ge.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:Ot.itemIcon||ge.props.itemIcon,expandIcon:Ot.expandIcon||ge.props.expandIcon},dt),{},{direction:it.direction});return(it.mode==="inline"||qe())&&(En.triggerSubMenuAction="click"),B.cloneElement(Ne,En)},ge.renderMenuItem=function(Ne,Ct,dt){if(!Ne)return null;var tn=ge.props.store.getState(),nn={openKeys:tn.openKeys,selectedKeys:tn.selectedKeys,triggerSubMenuAction:ge.props.triggerSubMenuAction,subMenuKey:dt};return ge.renderCommonMenuItem(Ne,Ct,nn)},ct.store.setState({activeKey:Object(ne.a)(Object(ne.a)({},ct.store.getState().activeKey),{},Object(d.a)({},ct.eventKey,pt(ct,ct.activeKey)))}),ge.instanceArray=[],ge}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ge){return this.props.visible||ge.visible||this.props.className!==ge.className||!n()(this.props.style,ge.style)}},{key:"componentDidUpdate",value:function(ge){var Ne=this.props,Ct="activeKey"in Ne?Ne.activeKey:Ne.store.getState().activeKey[He(Ne)],dt=pt(Ne,Ct);if(dt!==Ct)nt(Ne.store,He(Ne),dt);else if("activeKey"in ge){var tn=pt(ge,ge.activeKey);dt!==tn&&nt(Ne.store,He(Ne),dt)}}},{key:"render",value:function(){var ge=this,Ne=Object(_.a)({},this.props);this.instanceArray=[];var Ct=o()(Ne.prefixCls,Ne.className,"".concat(Ne.prefixCls,"-").concat(Ne.mode)),dt={className:Ct,role:Ne.role||"menu"};Ne.id&&(dt.id=Ne.id),Ne.focusable&&(dt.tabIndex=0,dt.onKeyDown=this.onKeyDown);var tn=Ne.prefixCls,nn=Ne.eventKey,it=Ne.visible,vt=Ne.level,Ot=Ne.mode,sn=Ne.overflowedIndicator,En=Ne.theme;return Ze.forEach(function(or){return delete Ne[or]}),delete Ne.onClick,B.createElement(qt,Object.assign({},Ne,{prefixCls:tn,mode:Ot,tag:"ul",level:vt,theme:En,visible:it,overflowedIndicator:sn},dt),B.Children.map(Ne.children,function(or,fr){return ge.renderMenuItem(or,fr,nn||"0-menu-")}))}}]),xt}(B.Component);st.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:W};var Et=Object(C.b)()(st),Fe=Et,Se=k("Kwbf");function Oe(Kt,bt,xt){var ct=Kt.prefixCls,ge=Kt.motion,Ne=Kt.defaultMotions,Ct=Ne===void 0?{}:Ne,dt=Kt.openAnimation,tn=Kt.openTransitionName,nn=bt.switchingModeFromInline;if(ge)return ge;if(Object(r.a)(dt)==="object"&&dt)Object(Se.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof dt=="string")return{motionName:"".concat(ct,"-open-").concat(dt)};if(tn)return{motionName:tn};var it=Ct[xt];return it||(nn?null:Ct.other)}var ce=function(Kt){Object(O.a)(xt,Kt);var bt=Object(w.a)(xt);function xt(ct){var ge;Object(z.a)(this,xt),ge=bt.call(this,ct),ge.inlineOpenKeys=[],ge.onSelect=function(dt){var tn=Object(K.a)(ge),nn=tn.props;if(nn.selectable){var it=ge.store.getState(),vt=it.selectedKeys,Ot=dt.key;nn.multiple?vt=vt.concat([Ot]):vt=[Ot],"selectedKeys"in nn||ge.store.setState({selectedKeys:vt}),nn.onSelect(Object(ne.a)(Object(ne.a)({},dt),{},{selectedKeys:vt}))}},ge.onClick=function(dt){var tn=ge.getRealMenuMode(),nn=Object(K.a)(ge),it=nn.store,vt=nn.props.onOpenChange;tn!=="inline"&&!("openKeys"in ge.props)&&(it.setState({openKeys:[]}),vt([])),ge.props.onClick(dt)},ge.onKeyDown=function(dt,tn){ge.innerMenu.getWrappedInstance().onKeyDown(dt,tn)},ge.onOpenChange=function(dt){var tn=Object(K.a)(ge),nn=tn.props,it=ge.store.getState().openKeys.concat(),vt=!1,Ot=function(En){var or=!1;if(En.open)or=it.indexOf(En.key)===-1,or&&it.push(En.key);else{var fr=it.indexOf(En.key);or=fr!==-1,or&&it.splice(fr,1)}vt=vt||or};Array.isArray(dt)?dt.forEach(Ot):Ot(dt),vt&&("openKeys"in ge.props||ge.store.setState({openKeys:it}),nn.onOpenChange(it))},ge.onDeselect=function(dt){var tn=Object(K.a)(ge),nn=tn.props;if(nn.selectable){var it=ge.store.getState().selectedKeys.concat(),vt=dt.key,Ot=it.indexOf(vt);Ot!==-1&&it.splice(Ot,1),"selectedKeys"in nn||ge.store.setState({selectedKeys:it}),nn.onDeselect(Object(ne.a)(Object(ne.a)({},dt),{},{selectedKeys:it}))}},ge.onMouseEnter=function(dt){ge.restoreModeVerticalFromInline();var tn=ge.props.onMouseEnter;tn&&tn(dt)},ge.onTransitionEnd=function(dt){var tn=dt.propertyName==="width"&&dt.target===dt.currentTarget,nn=dt.target.className,it=Object.prototype.toString.call(nn)==="[object SVGAnimatedString]"?nn.animVal:nn,vt=dt.propertyName==="font-size"&&it.indexOf("anticon")>=0;(tn||vt)&&ge.restoreModeVerticalFromInline()},ge.setInnerMenu=function(dt){ge.innerMenu=dt},ge.isRootMenu=!0;var Ne=ct.defaultSelectedKeys,Ct=ct.defaultOpenKeys;return"selectedKeys"in ct&&(Ne=ct.selectedKeys||[]),"openKeys"in ct&&(Ct=ct.openKeys||[]),ge.store=Object(C.c)({selectedKeys:Ne,openKeys:Ct,activeKey:{"0-menu-":pt(ct,ct.activeKey)}}),ge.state={switchingModeFromInline:!1},ge}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ge){this.updateOpentKeysWhenSwitchMode(ge),this.updateMiniStore();var Ne=this.props,Ct=Ne.siderCollapsed,dt=Ne.inlineCollapsed,tn=Ne.onOpenChange;(!ge.inlineCollapsed&&dt||!ge.siderCollapsed&&Ct)&&tn([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ge){var Ne=this.props,Ct=this.store,dt=this.inlineOpenKeys,tn=Ct.getState(),nn={};ge.mode==="inline"&&Ne.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ne||((Ne.inlineCollapsed&&!ge.inlineCollapsed||Ne.siderCollapsed&&!ge.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=tn.openKeys.concat(),nn.openKeys=[]),(!Ne.inlineCollapsed&&ge.inlineCollapsed||!Ne.siderCollapsed&&ge.siderCollapsed)&&(nn.openKeys=dt,this.inlineOpenKeys=[])),Object.keys(nn).length&&Ct.setState(nn)}},{key:"updateMenuDisplay",value:function(){var ge=this.props.collapsedWidth,Ne=this.store,Ct=this.prevOpenKeys,dt=this.getInlineCollapsed()&&(ge===0||ge==="0"||ge==="0px");dt?(this.prevOpenKeys=Ne.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ct&&(this.store.setState({openKeys:Ct}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ge=this.props.mode,Ne=this.state.switchingModeFromInline,Ct=this.getInlineCollapsed();return Ne&&Ct?"inline":Ct?"vertical":ge}},{key:"getInlineCollapsed",value:function(){var ge=this.props,Ne=ge.inlineCollapsed,Ct=ge.siderCollapsed;return Ct!==void 0?Ct:Ne}},{key:"restoreModeVerticalFromInline",value:function(){var ge=this.state.switchingModeFromInline;ge&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ge=Object(ne.a)({},Object(P.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ne=this.getRealMenuMode();return ge.className+=" ".concat(ge.prefixCls,"-root"),ge.direction==="rtl"&&(ge.className+=" ".concat(ge.prefixCls,"-rtl")),ge=Object(ne.a)(Object(ne.a)({},ge),{},{mode:Ne,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Oe(this.props,this.state,Ne)}),delete ge.openAnimation,delete ge.openTransitionName,B.createElement(C.a,{store:this.store},B.createElement(Fe,Object.assign({},ge,{ref:this.setInnerMenu}),this.props.children))}}]),xt}(B.Component);ce.defaultProps={selectable:!0,onClick:W,onSelect:W,onOpenChange:W,onDeselect:W,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:B.createElement("span",null,"\xB7\xB7\xB7")};var he=ce,Ce=function(Kt){Object(O.a)(xt,Kt);var bt=Object(w.a)(xt);function xt(){var ct;return Object(z.a)(this,xt),ct=bt.apply(this,arguments),ct.onKeyDown=function(ge){var Ne=ge.keyCode;return Ne===v.a.ENTER?(ct.onClick(ge),!0):void 0},ct.onMouseLeave=function(ge){var Ne=ct.props,Ct=Ne.eventKey,dt=Ne.onItemHover,tn=Ne.onMouseLeave;dt({key:Ct,hover:!1}),tn({key:Ct,domEvent:ge})},ct.onMouseEnter=function(ge){var Ne=ct.props,Ct=Ne.eventKey,dt=Ne.onItemHover,tn=Ne.onMouseEnter;dt({key:Ct,hover:!0}),tn({key:Ct,domEvent:ge})},ct.onClick=function(ge){var Ne=ct.props,Ct=Ne.eventKey,dt=Ne.multiple,tn=Ne.onClick,nn=Ne.onSelect,it=Ne.onDeselect,vt=Ne.isSelected,Ot={key:Ct,keyPath:[Ct],item:Object(K.a)(ct),domEvent:ge};tn(Ot),dt?vt?it(Ot):nn(Ot):vt||nn(Ot)},ct.saveNode=function(ge){ct.node=ge},ct}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ge=this.props;ge.onDestroy&&ge.onDestroy(ge.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ge,Ne=Object(ne.a)({},this.props),Ct=o()(this.getPrefixCls(),Ne.className,(ge={},Object(d.a)(ge,this.getActiveClassName(),!Ne.disabled&&Ne.active),Object(d.a)(ge,this.getSelectedClassName(),Ne.isSelected),Object(d.a)(ge,this.getDisabledClassName(),Ne.disabled),ge)),dt=Object(ne.a)(Object(ne.a)({},Ne.attribute),{},{title:typeof Ne.title=="string"?Ne.title:void 0,className:Ct,role:Ne.role||"menuitem","aria-disabled":Ne.disabled});Ne.role==="option"?dt=Object(ne.a)(Object(ne.a)({},dt),{},{role:"option","aria-selected":Ne.isSelected}):(Ne.role===null||Ne.role==="none")&&(dt.role="none");var tn={onClick:Ne.disabled?null:this.onClick,onMouseLeave:Ne.disabled?null:this.onMouseLeave,onMouseEnter:Ne.disabled?null:this.onMouseEnter},nn=Object(ne.a)({},Ne.style);Ne.mode==="inline"&&(Ne.direction==="rtl"?nn.paddingRight=Ne.inlineIndent*Ne.level:nn.paddingLeft=Ne.inlineIndent*Ne.level),Ze.forEach(function(vt){return delete Ne[vt]}),delete Ne.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=B.createElement(this.props.itemIcon,this.props)),B.createElement("li",Object.assign({},Object(P.default)(Ne,["onClick","onMouseEnter","onMouseLeave","onSelect"]),dt,tn,{style:nn,ref:this.saveNode}),Ne.children,it)}}]),xt}(B.Component);Ce.isMenuItem=!0,Ce.defaultProps={onSelect:W,onMouseEnter:W,onMouseLeave:W,manualRef:W};var Le=Object(C.b)(function(Kt,bt){var xt=Kt.activeKey,ct=Kt.selectedKeys,ge=bt.eventKey,Ne=bt.subMenuKey;return{active:xt[Ne]===ge,isSelected:ct.indexOf(ge)!==-1}})(Ce),at=Le,et=function(Kt){Object(O.a)(xt,Kt);var bt=Object(w.a)(xt);function xt(){var ct;return Object(z.a)(this,xt),ct=bt.apply(this,arguments),ct.renderInnerMenuItem=function(ge){var Ne=ct.props,Ct=Ne.renderMenuItem,dt=Ne.index;return Ct(ge,dt,ct.props.subMenuKey)},ct}return Object(N.a)(xt,[{key:"render",value:function(){var ge=Object(_.a)({},this.props),Ne=ge.className,Ct=Ne===void 0?"":Ne,dt=ge.rootPrefixCls,tn="".concat(dt,"-item-group-title"),nn="".concat(dt,"-item-group-list"),it=ge.title,vt=ge.children;return Ze.forEach(function(Ot){return delete ge[Ot]}),delete ge.onClick,delete ge.direction,B.createElement("li",Object.assign({},ge,{className:"".concat(Ct," ").concat(dt,"-item-group")}),B.createElement("div",{className:tn,title:typeof it=="string"?it:void 0},it),B.createElement("ul",{className:nn},B.Children.map(vt,this.renderInnerMenuItem)))}}]),xt}(B.Component);et.isMenuItemGroup=!0,et.defaultProps={disabled:!0};var Rt=et,en=function(bt){var xt=bt.className,ct=bt.rootPrefixCls,ge=bt.style;return B.createElement("li",{className:"".concat(xt," ").concat(ct,"-item-divider"),style:ge})};en.defaultProps={disabled:!0,className:"",style:{}};var pn=en,on=Ee.e=he},"24hK":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return N});var ne=k("JYp7"),z=function(){function K(O){this.element=O,this.next=K.Undefined,this.prev=K.Undefined}return K.Undefined=new K(void 0),K}(),N=function(){function K(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}return Object.defineProperty(K.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),K.prototype.isEmpty=function(){return this._first===z.Undefined},K.prototype.clear=function(){this._first=z.Undefined,this._last=z.Undefined,this._size=0},K.prototype.unshift=function(O){return this._insert(O,!1)},K.prototype.push=function(O){return this._insert(O,!0)},K.prototype._insert=function(O,w){var B=this,C=new z(O);if(this._first===z.Undefined)this._first=C,this._last=C;else if(w){var P=this._last;this._last=C,C.prev=P,P.next=C}else{var _=this._first;this._first=C,C.next=_,_.prev=C}this._size+=1;var d=!1;return function(){d||(d=!0,B._remove(C))}},K.prototype.shift=function(){if(this._first===z.Undefined)return;var O=this._first.element;return this._remove(this._first),O},K.prototype.pop=function(){if(this._last===z.Undefined)return;var O=this._last.element;return this._remove(this._last),O},K.prototype._remove=function(O){if(O.prev!==z.Undefined&&O.next!==z.Undefined){var w=O.prev;w.next=O.next,O.next.prev=w}else O.prev===z.Undefined&&O.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):O.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):O.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1},K.prototype.iterator=function(){var O,w=this._first;return{next:function(){return w===z.Undefined?ne.c:(O?O.value=w.element:O={done:!1,value:w.element},w=w.next,O)}}},K.prototype.toArray=function(){for(var O=[],w=this._first;w!==z.Undefined;w=w.next)O.push(w.element);return O},K}()},"49sm":function(Vt,Ee){var k={}.toString;Vt.exports=Array.isArray||function(ne){return k.call(ne)=="[object Array]"}},"4wi7":function(Vt,Ee,k){"use strict";var ne=k("14J3"),z=k("BMrR"),N=k("sRBo"),K=k("kaz8"),O=k("5NDa"),w=k("5rEg"),B=k("9og8"),C=k("tJVT"),P=k("WmNS"),_=k.n(P),d=k("q1tI"),v=k.n(d),b=k("oOBs"),f=k.n(b),n=k("xOL1"),p=k.n(n),o=k("BdwD"),r=function(l){var x=l.data,E=l.value,y=E===void 0?[]:E,L=l.handleChangePage,R=l.setSelectedRowKeys,g=l.selectedRowKeys,m=l.onChange,c=m===void 0?function(){}:m,u=Object(d.useState)([]),D=Object(C.a)(u,2),T=D[0],A=D[1],j=Object(d.useState)([]),U=Object(C.a)(j,2),H=U[0],V=U[1],I=Object(d.useState)([]),W=Object(C.a)(I,2),Q=W[0],ie=W[1],ae=Object(d.useState)(1),xe=Object(C.a)(ae,2),Ze=xe[0],Me=xe[1],Be=Object(d.useState)(),qe=Object(C.a)(Be,2),Ve=qe[0],De=qe[1];return Object(d.useEffect)(function(){A(x),V([]),ie([])},[x]),Object(d.useEffect)(function(){R&&(V(g),ie(g))},[g]),v.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},v.a.createElement("div",{className:f.a.leftdiv},v.a.createElement(w.a.Search,{size:"large",onChange:function(){var pe=Object(B.a)(_.a.mark(function se(we){return _.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:A(x.filter(function(me){var X;return me==null||((X=me.name)===null||X===void 0)?void 0:X.includes(we.target.value)}));case 1:case"end":return $e.stop()}},se)}));return function(se){return pe.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),T.length===0&&v.a.createElement(o.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),v.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},v.a.createElement(K.a.Group,{value:H.map(function(pe){return"".concat(pe.id)}),onChange:function(se){R(T.filter(function(we){return se.includes("".concat(we.id))}))},style:{marginTop:"10px"}},T.map(function(pe,se){return v.a.createElement(z.a,{key:pe.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},v.a.createElement(K.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:pe.is_published,value:"".concat(pe.id)},v.a.createElement("div",{className:f.a.listClass},v.a.createElement("span",{className:f.a.spantitle,style:{width:pe.is_published?"108px":"170px"}},pe.name),pe.is_published&&v.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),v.a.createElement("div",{className:f.a.rightdiv},v.a.createElement(w.a.Search,{onChange:function(se){ie(H.filter(function(we){return we.name.includes(se.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Q.length===0&&v.a.createElement(o.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Q.length>0&&v.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},v.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Q.map(function(pe,se){return v.a.createElement(z.a,{justify:"space-between",style:{marginTop:"10px"},key:pe.id},v.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},pe.name),v.a.createElement("img",{src:p.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){R(H.filter(function(ve){return"".concat(ve.id)!="".concat(pe.id)}))}}))})))))};Ee.a=r},"500L":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return E});var ne=k("+L6B"),z=k("2/Rp"),N=k("2qtc"),K=k("kLXV"),O=k("9og8"),w=k("k1fw"),B=k("miYZ"),C=k("tsqr"),P=k("oBTY"),_=k("tJVT"),d=k("DZo9"),v=k("8z0m"),b=k("WmNS"),f=k.n(b),n=k("q1tI"),p=k.n(n),o=k("m3rI"),r=k("wzkS"),s=k("y5JW"),l=k("LtfV"),x=v.a.Dragger;function E(y){var L=[];return y&&y.length>0&&(L=y.map(function(R){return{uid:R.id,id:R.id,name:R.title+s.c+R.filesize,url:R.url,filesize:R.filesize,status:"done",response:{id:R.id}}})),L}Ee.b=function(y){var L=y.value,R=y.onChange,g=y.action,m=y.className,c=y.maxSize,u=c===void 0?150:c,D=y.title,T=D===void 0?"\u4E0A\u4F20\u9644\u4EF6":D,A=y.showRemoveModal,j=A===void 0?!1:A,U=y.accept,H=U===void 0?"":U,V=y.additionalText,I=y.isDragger,W=y.number,Q=W===void 0?1e3:W,ie=y.aloneClear,ae=ie===void 0?!1:ie,xe=y.restrict,Ze=xe===void 0?!0:xe,Me=Object(n.useState)(!1),Be=Object(_.a)(Me,2),qe=Be[0],Ve=Be[1],De=Object(n.useState)(L||[]),pe=Object(_.a)(De,2),se=pe[0],we=pe[1];Object(n.useEffect)(function(){L&&(we(Object(P.a)(L)),Q===(L==null?void 0:L.length)&&Ve(!0))},[L]);var ve=function(){setTimeout(function(){se.pop(),we(Object(P.a)(se))},500)},$e={multiple:!0,disabled:qe,accept:H,withCredentials:!0,fileList:se,beforeUpload:function(G,Y){var ue=G.size/1024/1024;return se.concat(Y).length>Q?(se.pop(),we(Object(P.a)(se)),C.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(Q,"\u4E2A\u6587\u4EF6")),ae?Promise.reject():(ve(),!1)):ue=Q?Ve(!0):Ve(!1),we(Object(P.a)(Y)),Y=Y.map(function(ue){var be;if(ue!=null&&(be=ue.response)!==null&&be!==void 0&&be.id){var We;ue.url="/api/attachments/".concat(ue==null||((We=ue.response)===null||We===void 0)?void 0:We.id)}return ue.name.indexOf(s.c)===-1&&(ue.name="".concat(ue.name).concat(s.c).concat(Object(s.a)(ue.size))),Object(w.a)({},ue)}),console.log("info:",G),R(Y)},onRemove:function(){var X=Object(O.a)(f.a.mark(function Y(ue){var be;return f.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(be=function(){var Tt=Object(O.a)(f.a.mark(function Ut(){var It,Nt;return f.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(It=ue.response?ue.response.id:ue.id,!It){hn.next=8;break}return hn.next=4,Object(r.d)(ue.response?ue.response.id:ue.uid);case 4:return Nt=hn.sent,hn.abrupt("return",Nt);case 8:return hn.abrupt("return",!0);case 9:case"end":return hn.stop()}},Ut)}));return function(){return Tt.apply(this,arguments)}}(),!j){ze.next=5;break}return ze.abrupt("return",new Promise(function(Tt,Ut){K.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:p.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var It=Object(O.a)(f.a.mark(function qt(){var hn;return f.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,be();case 2:hn=He.sent,C.b.success("\u5220\u9664\u6210\u529F"),Tt(!0);case 5:case"end":return He.stop()}},qt)}));function Nt(){return It.apply(this,arguments)}return Nt}(),onCancel:function(){return Tt(!1)}})}));case 5:return ze.next=7,be();case 7:return ze.abrupt("return",ze.sent);case 8:case"end":return ze.stop()}},Y)}));function G(Y){return X.apply(this,arguments)}return G}()};function me(X){X.preventDefault(),X.stopPropagation()}return p.a.createElement("div",{className:"multi-upload ".concat(m||"")},I&&p.a.createElement(x,$e,p.a.createElement("p",{className:"ant-upload-drag-icon"},p.a.createElement(l.a,null)),p.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",p.a.createElement("br",null),p.a.createElement("span",{style:{display:Ze?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",u,"MB) ")),V),!I&&p.a.createElement(v.a,$e,p.a.createElement(z.a,{disabled:qe},T),p.a.createElement("span",{onClick:me,style:{marginLeft:10,color:"#FA6400",display:Ze?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",u,"MB) ")))}},"55Ip":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return s}),k.d(Ee,"b",function(){return R});var ne=k("Ty5D"),z=k("dI71"),N=k("q1tI"),K=k.n(N),O=k("YS25"),w=k("17x9"),B=k.n(w),C=k("wx14"),P=k("zLVn"),_=k("9R94"),d=function(m){Object(z.a)(c,m);function c(){for(var D,T=arguments.length,A=new Array(T),j=0;j=0||T.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;m.setState({goInputText:""}),U(m.getValidValue())},m.go=function(T){var A=m.state.goInputText;if(A==="")return;(T.keyCode===f.ENTER||T.type==="click")&&(m.setState({goInputText:""}),m.props.quickGo(m.getValidValue()))},m}return Object(O.a)(g,[{key:"getValidValue",value:function(){var c=this.state,u=c.goInputText,D=c.current;return!u||isNaN(u)?D:Number(u)}},{key:"getPageSizeOptions",value:function(){var c=this.props,u=c.pageSize,D=c.pageSizeOptions;return D.some(function(T){return T.toString()===u.toString()})?D:D.concat([u.toString()]).sort(function(T,A){var j=isNaN(Number(T))?0:Number(T),U=isNaN(Number(A))?0:Number(A);return j-U})}},{key:"render",value:function(){var c=this,u=this.props,D=u.pageSize,T=u.locale,A=u.rootPrefixCls,j=u.changeSize,U=u.quickGo,H=u.goButton,V=u.selectComponentClass,I=u.buildOptionText,W=u.selectPrefixCls,Q=u.disabled,ie=this.state.goInputText,ae="".concat(A,"-options"),xe=V,Ze=null,Me=null,Be=null;if(!j&&!U)return null;var qe=this.getPageSizeOptions();if(j&&xe){var Ve=qe.map(function(De,pe){return P.a.createElement(xe.Option,{key:pe,value:De.toString()},(I||c.buildOptionText)(De))});Ze=P.a.createElement(xe,{disabled:Q,prefixCls:W,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||qe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(pe){return pe.parentNode}},Ve)}return U&&(H&&(Be=typeof H=="boolean"?P.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Q,className:"".concat(ae,"-quick-jumper-button")},T.jump_to_confirm):P.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),Me=P.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},T.jump_to,P.a.createElement("input",{disabled:Q,type:"text",value:ie,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,Be)),P.a.createElement("li",{className:"".concat(ae)},Ze,Me)}}]),g}(P.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=n,o=k("N2Kk");function r(){}function s(L){return typeof L=="number"&&isFinite(L)&&Math.floor(L)===L}function l(L,R,g){return g}function x(L,R,g){var m=typeof L=="undefined"?R.pageSize:L;return Math.floor((g.total-1)/m)+1}var E=function(L){Object(w.a)(g,L);var R=Object(B.a)(g);function g(m){var c;Object(K.a)(this,g),c=R.call(this,m),c.getJumpPrevPage=function(){return Math.max(1,c.state.current-(c.props.showLessItems?3:5))},c.getJumpNextPage=function(){return Math.min(x(void 0,c.state,c.props),c.state.current+(c.props.showLessItems?3:5))},c.getItemIcon=function(j,U){var H=c.props.prefixCls,V=j||P.a.createElement("button",{type:"button","aria-label":U,className:"".concat(H,"-item-link")});return typeof j=="function"&&(V=P.a.createElement(j,Object(N.a)({},c.props))),V},c.savePaginationNode=function(j){c.paginationNode=j},c.isValid=function(j){return s(j)&&j!==c.state.current},c.shouldDisplayQuickJumper=function(){var j=c.props,U=j.showQuickJumper,H=j.pageSize,V=j.total;return V<=H?!1:U},c.handleKeyDown=function(j){(j.keyCode===f.ARROW_UP||j.keyCode===f.ARROW_DOWN)&&j.preventDefault()},c.handleKeyUp=function(j){var U=c.getValidValue(j),H=c.state.currentInputValue;U!==H&&c.setState({currentInputValue:U}),j.keyCode===f.ENTER?c.handleChange(U):j.keyCode===f.ARROW_UP?c.handleChange(U-1):j.keyCode===f.ARROW_DOWN&&c.handleChange(U+1)},c.changePageSize=function(j){var U=c.state.current,H=x(j,c.state,c.props);U=U>H?H:U,H===0&&(U=c.state.current),typeof j=="number"&&("pageSize"in c.props||c.setState({pageSize:j}),"current"in c.props||c.setState({current:U,currentInputValue:U})),c.props.onShowSizeChange(U,j),"onChange"in c.props&&c.props.onChange&&c.props.onChange(U,j)},c.handleChange=function(j){var U=c.props.disabled,H=j;if(c.isValid(H)&&!U){var V=x(void 0,c.state,c.props);H>V?H=V:H<1&&(H=1),"current"in c.props||c.setState({current:H,currentInputValue:H});var I=c.state.pageSize;return c.props.onChange(H,I),H}return c.state.current},c.prev=function(){c.hasPrev()&&c.handleChange(c.state.current-1)},c.next=function(){c.hasNext()&&c.handleChange(c.state.current+1)},c.jumpPrev=function(){c.handleChange(c.getJumpPrevPage())},c.jumpNext=function(){c.handleChange(c.getJumpNextPage())},c.hasPrev=function(){return c.state.current>1},c.hasNext=function(){return c.state.current2?H-2:0),I=2;I=D?A=D:A=Number(u),A}},{key:"getShowSizeChanger",value:function(){var c=this.props,u=c.showSizeChanger,D=c.total,T=c.totalBoundaryShowSizeChanger;return typeof u!="undefined"?u:D>T}},{key:"renderPrev",value:function(c){var u=this.props,D=u.prevIcon,T=u.itemRender,A=T(c,"prev",this.getItemIcon(D,"prev page")),j=!this.hasPrev();return Object(C.isValidElement)(A)?Object(C.cloneElement)(A,{disabled:j}):A}},{key:"renderNext",value:function(c){var u=this.props,D=u.nextIcon,T=u.itemRender,A=T(c,"next",this.getItemIcon(D,"next page")),j=!this.hasNext();return Object(C.isValidElement)(A)?Object(C.cloneElement)(A,{disabled:j}):A}},{key:"render",value:function(){var c=this,u=this.props,D=u.prefixCls,T=u.className,A=u.style,j=u.disabled,U=u.hideOnSinglePage,H=u.total,V=u.locale,I=u.showQuickJumper,W=u.showLessItems,Q=u.showTitle,ie=u.showTotal,ae=u.simple,xe=u.itemRender,Ze=u.showPrevNextJumpers,Me=u.jumpPrevIcon,Be=u.jumpNextIcon,qe=u.selectComponentClass,Ve=u.selectPrefixCls,De=u.pageSizeOptions,pe=this.state,se=pe.current,we=pe.pageSize,ve=pe.currentInputValue;if(U===!0&&H<=we)return null;var $e=x(void 0,this.state,this.props),me=[],X=null,G=null,Y=null,ue=null,be=null,We=I&&I.goButton,ze=W?1:2,Tt=se-1>0?se-1:0,Ut=se+1<$e?se+1:$e,It=Object.keys(this.props).reduce(function(ce,he){return(he.substr(0,5)==="data-"||he.substr(0,5)==="aria-"||he==="role")&&(ce[he]=c.props[he]),ce},{});if(ae)return We&&(typeof We=="boolean"?be=P.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},V.jump_to_confirm):be=P.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},We),be=P.a.createElement("li",{title:Q?"".concat(V.jump_to).concat(se,"/").concat($e):null,className:"".concat(D,"-simple-pager")},be)),P.a.createElement("ul",Object(ne.a)({className:d()(D,"".concat(D,"-simple"),Object(z.a)({},"".concat(D,"-disabled"),j),T),style:A,ref:this.savePaginationNode},It),P.a.createElement("li",{title:Q?V.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(D,"-prev"),Object(z.a)({},"".concat(D,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Tt)),P.a.createElement("li",{title:Q?"".concat(se,"/").concat($e):null,className:"".concat(D,"-simple-pager")},P.a.createElement("input",{type:"text",value:ve,disabled:j,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),P.a.createElement("span",{className:"".concat(D,"-slash")},"/"),$e),P.a.createElement("li",{title:Q?V.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(D,"-next"),Object(z.a)({},"".concat(D,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ut)),be);if($e<=3+ze*2){var Nt={locale:V,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Q,itemRender:xe};$e||me.push(P.a.createElement(b,Object(ne.a)({},Nt,{key:"noPager",page:$e,className:"".concat(D,"-disabled")})));for(var qt=1;qt<=$e;qt+=1){var hn=se===qt;me.push(P.a.createElement(b,Object(ne.a)({},Nt,{key:qt,page:qt,active:hn})))}}else{var nt=W?V.prev_3:V.prev_5,He=W?V.next_3:V.next_5;Ze&&(X=P.a.createElement("li",{title:Q?nt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(D,"-jump-prev"),Object(z.a)({},"".concat(D,"-jump-prev-custom-icon"),!!Me))},xe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Me,"prev page"))),G=P.a.createElement("li",{title:Q?He:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(D,"-jump-next"),Object(z.a)({},"".concat(D,"-jump-next-custom-icon"),!!Be))},xe(this.getJumpNextPage(),"jump-next",this.getItemIcon(Be,"next page")))),ue=P.a.createElement(b,{locale:V,last:!0,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$e,page:$e,active:!1,showTitle:Q,itemRender:xe}),Y=P.a.createElement(b,{locale:V,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Q,itemRender:xe});var pt=Math.max(1,se-ze),kt=Math.min(se+ze,$e);se-1<=ze&&(kt=1+ze*2),$e-se<=ze&&(pt=$e-ze*2);for(var st=pt;st<=kt;st+=1){var Et=se===st;me.push(P.a.createElement(b,{locale:V,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:st,page:st,active:Et,showTitle:Q,itemRender:xe}))}se-1>=ze*2&&se!==1+2&&(me[0]=Object(C.cloneElement)(me[0],{className:"".concat(D,"-item-after-jump-prev")}),me.unshift(X)),$e-se>=ze*2&&se!==$e-2&&(me[me.length-1]=Object(C.cloneElement)(me[me.length-1],{className:"".concat(D,"-item-before-jump-next")}),me.push(G)),pt!==1&&me.unshift(Y),kt!==$e&&me.push(ue)}var Fe=null;ie&&(Fe=P.a.createElement("li",{className:"".concat(D,"-total-text")},ie(H,[H===0?0:(se-1)*we+1,se*we>H?H:se*we])));var Se=!this.hasPrev()||!$e,Oe=!this.hasNext()||!$e;return P.a.createElement("ul",Object(ne.a)({className:d()(D,T,Object(z.a)({},"".concat(D,"-disabled"),j)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},It),Fe,P.a.createElement("li",{title:Q?V.prev_page:null,onClick:this.prev,tabIndex:Se?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(D,"-prev"),Object(z.a)({},"".concat(D,"-disabled"),Se)),"aria-disabled":Se},this.renderPrev(Tt)),me,P.a.createElement("li",{title:Q?V.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(D,"-next"),Object(z.a)({},"".concat(D,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(Ut)),P.a.createElement(p,{disabled:j,locale:V,rootPrefixCls:D,selectComponentClass:qe,selectPrefixCls:Ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:we,pageSizeOptions:De,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:We}))}}],[{key:"getDerivedStateFromProps",value:function(c,u){var D={};if("current"in c&&(D.current=c.current,c.current!==u.current&&(D.currentInputValue=D.current)),"pageSize"in c&&c.pageSize!==u.pageSize){var T=u.current,A=x(c.pageSize,u,c);T=T>A?A:T,"current"in c||(D.current=T,D.currentInputValue=T),D.pageSize=c.pageSize}return D}}]),g}(P.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:o.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var y=E},"632R":function(Vt,Ee,k){Vt.exports={flex_box_center:"flex_box_center___3r4d7",flex_space_between:"flex_space_between___v1RZU",flex_box_vertical_center:"flex_box_vertical_center___1hRcP",flex_box_center_end:"flex_box_center_end___3kWTo",flex_box_column:"flex_box_column___TGF_8",title:"title___jGN8C",export:"export___20Rrn",bg:"bg___5TRgA",tabs:"tabs___3dNSC",workListTabWrap:"workListTabWrap___2wgNK",workListTabButton:"workListTabButton___34vXT"}},"6RRn":function(Vt,Ee,k){"use strict";var ne=k("wCXF"),z=k("n6Qo");k.d(Ee,"b",function(){return z.a});var N=k("IBYe"),K=k("6eGT"),O=k("hW8S");k.d(Ee,"a",function(){return O.a}),Ee.c=ne.b},"6eGT":function(Vt,Ee,k){"use strict";function ne(z){return null}Ee.a=ne},"6vEo":function(Vt,Ee,k){"use strict";var ne=k("2qtc"),z=k("kLXV"),N=k("cWXX"),K=k("/ezw"),O=k("14J3"),w=k("BMrR"),B=k("jCWc"),C=k("kPKH"),P=k("7Kak"),_=k("9yH6"),d=k("5NDa"),v=k("5rEg"),b=k("oBTY"),f=k("k1fw"),n=k("9og8"),p=k("y8nQ"),o=k("Vl3Y"),r=k("tJVT"),s=k("WmNS"),l=k.n(s),x=k("q1tI"),E=k.n(x),y=k("RotF"),L=k.n(y),R=k("XYT7"),g=k("Ty5D"),m=k("9kvl"),c=function(D){var T,A,j,U=D.classroomList,H=D.loading,V=D.user,I=D.dispatch,W=Object(g.i)(),Q=o.a.useForm(),ie=Object(r.a)(Q,1),ae=ie[0],xe=Object(x.useState)(!0),Ze=Object(r.a)(xe,2),Me=Ze[0],Be=Ze[1],qe=Object(x.useState)([]),Ve=Object(r.a)(qe,2),De=Ve[0],pe=Ve[1],se=Object(x.useState)({page:1,limit:20,keyword:""}),we=Object(r.a)(se,2),ve=we[0],$e=we[1],me=function(){var X=Object(n.a)(l.a.mark(function G(){var Y,ue;return l.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,I({type:"shixunHomeworks/getProjectList",payload:Object(f.a)(Object(f.a)({},W),ve)});case 2:ue=We.sent,ue.projects&&pe([].concat(Object(b.a)(De),Object(b.a)(ue.projects))),((Y=ue.projects)===null||Y===void 0?void 0:Y.length)<20&&Be(!1);case 5:case"end":return We.stop()}},G)}));return function(){return X.apply(this,arguments)}}();return Object(x.useEffect)(function(){U.actionTabs.key==="\u5173\u8054\u9879\u76EE"&&(me(),De=[],ve.page=1,ve.keyword="")},[U.actionTabs.key]),E.a.createElement(z.a,{centered:!0,title:"\u5173\u8054\u9879\u76EE",visible:U.actionTabs.key==="\u5173\u8054\u9879\u76EE",bodyStyle:{minHeight:100},onOk:Object(n.a)(l.a.mark(function X(){var G,Y,ue,be,We;return l.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,ae.validateFields();case 2:return G=Object(f.a)({},ae.getFieldValue()),Y=U.actionTabs,ue=Y.selectArrs,be=Y.cb,Tt.next=6,Object(R.O)(Object(f.a)(Object(f.a)({},G),{},{homeworkId:ue.homework_id}));case 6:We=Tt.sent,We.status===0&&(be?be():I({type:"classroomList/getClassroomCommonHomeworksList",payload:Object(f.a)({},U.actionTabs.params)}),I({type:"classroomList/setActionTabs",payload:{}}));case 8:case"end":return Tt.stop()}},X)})),onCancel:function(){I({type:"classroomList/setActionTabs",payload:{}})}},E.a.createElement(K.a,{loading:H["shixunHomeworks/getProjectList"],active:!0},De==""?E.a.createElement("aside",null,E.a.createElement("div",{className:"tc font14 pt20"},"\u60A8\u5F53\u524D\u5C1A\u672A\u7BA1\u7406\u4EFB\u4F55\u9879\u76EE\uFF0C\u8BF7\u5148",E.a.createElement("a",{href:"".concat((T=V.navigationInfo)===null||T===void 0||((A=T.top)===null||A===void 0)?void 0:A.old_url,"/projects/deposit/new"),target:"_blank"},"\u521B\u5EFA\u9879\u76EE"),"\u518D\u5173\u8054")):E.a.createElement("aside",null,E.a.createElement("div",{className:" mb20"},E.a.createElement(v.a.Search,{onSearch:function(G){G===""?delete ve.keyword:ve.keyword=G,De=[],Be(!0),me()},placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,size:"large"})),E.a.createElement(o.a,{form:ae,initialValues:{}},E.a.createElement(o.a.Item,{name:"project_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE"}]},E.a.createElement(_.a.Group,null,E.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(G){ve.page++,me()},hasMore:Me,useWindow:!1},(j=De)===null||j===void 0?void 0:j.map(function(X,G){return E.a.createElement(w.a,{key:G},E.a.createElement(C.a,null,E.a.createElement(_.a,{value:X.id},X.name)))}))))))))};Ee.a=Object(m.a)(function(u){var D=u.classroomList,T=u.user,A=u.loading;return{classroomList:D,user:T,loading:A.effects}})(c)},"746U":function(Vt,Ee,k){"use strict";k.d(Ee,"d",function(){return z}),k.d(Ee,"j",function(){return N}),k.d(Ee,"i",function(){return K}),k.d(Ee,"h",function(){return O}),k.d(Ee,"e",function(){return w}),k.d(Ee,"k",function(){return B}),k.d(Ee,"l",function(){return C}),k.d(Ee,"a",function(){return P}),k.d(Ee,"f",function(){return d}),k.d(Ee,"g",function(){return v}),k.d(Ee,"m",function(){return b}),k.d(Ee,"c",function(){return p}),k.d(Ee,"b",function(){return o}),k.d(Ee,"n",function(){return r}),k.d(Ee,"o",function(){return s});var ne={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function z(l){return Array.isArray?Array.isArray(l):!!(l&&typeof l.length===ne.number&&l.constructor===Array)}function N(l){return typeof l===ne.string||l instanceof String}function K(l){return typeof l===ne.object&&l!==null&&!Array.isArray(l)&&!(l instanceof RegExp)&&!(l instanceof Date)}function O(l){return(typeof l===ne.number||l instanceof Number)&&!isNaN(l)}function w(l){return l===!0||l===!1}function B(l){return typeof l===ne.undefined}function C(l){return B(l)||l===null}function P(l,x){if(!l)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var _=Object.prototype.hasOwnProperty;function d(l){if(!K(l))return!1;for(var x in l)if(_.call(l,x))return!1;return!0}function v(l){return typeof l===ne.function}function b(l,x){for(var E=Math.min(l.length,x.length),y=0;y1&&arguments[1]!==void 0?arguments[1]:0,n=(B[b[f+0]]+B[b[f+1]]+B[b[f+2]]+B[b[f+3]]+"-"+B[b[f+4]]+B[b[f+5]]+"-"+B[b[f+6]]+B[b[f+7]]+"-"+B[b[f+8]]+B[b[f+9]]+"-"+B[b[f+10]]+B[b[f+11]]+B[b[f+12]]+B[b[f+13]]+B[b[f+14]]+B[b[f+15]]).toLowerCase();if(!w(n))throw TypeError("Stringified UUID is invalid");return n}var _=P;function d(b,f,n){b=b||{};var p=b.random||(b.rng||N)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,f){n=n||0;for(var o=0;o<16;++o)f[n+o]=p[o];return f}return _(p)}var v=Ee.a=d},"7ahc":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return x});var ne=k("k1fw"),z=k("0Owb"),N=k("+L6B"),K=k("2/Rp"),O=k("y8nQ"),w=k("Vl3Y"),B=k("tJVT"),C=k("OaEy"),P=k("2fM7"),_=k("q1tI"),d=k.n(_),v=k("VrN/"),b=k.n(v),f=k("p77/"),n=k.n(f),p=k("c5Ni"),o=k.n(p),r=P.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},l={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ee.b=function(E){var y=E.callback,L=E.onCancel,R=Object(_.useState)("python"),g=Object(B.a)(R,2),m=g[0],c=g[1];function u(T){c(l[T][1])}function D(T){y(T)}return d.a.createElement(w.a,Object(z.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},d.a.createElement(P.a,{onChange:u},Object.keys(l).map(function(T){return d.a.createElement(r,{key:T,value:T},l[T][0])}))),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},d.a.createElement(x,{mode:m})),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(K.a,{type:"ghost",onClick:L},"\u53D6\u6D88")))};function x(E){var y=E.value,L=E.onChange,R=E.mode,g=E.options,m=g===void 0?{}:g,c=Object(_.useRef)(),u=Object(_.useState)(),D=Object(B.a)(u,2),T=D[0],A=D[1];return Object(_.useEffect)(function(){if(T){function j(U){var H=U.getValue();L&&L(H)}return T.on("change",j),function(){T.off("change",j)}}},[T,L]),Object(_.useEffect)(function(){T&&T.setOption("mode",R)},[T,R]),Object(_.useEffect)(function(){T&&((y!==T.getValue()||y==="")&&setTimeout(function(){T.setValue(y||" ")},300))},[T,y]),Object(_.useEffect)(function(){if(c.current&&!T){var j=b.a.fromTextArea(c.current,Object(ne.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},m));A(j)}},[c.current,T]),d.a.createElement("div",{className:"my-codemirror-container"},d.a.createElement("textarea",{ref:c}))}},"7ixt":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return N});var ne={adjustX:1,adjustY:1},z=[0,0],N={left:{points:["cr","cl"],overflow:ne,offset:[-4,0],targetOffset:z},right:{points:["cl","cr"],overflow:ne,offset:[4,0],targetOffset:z},top:{points:["bc","tc"],overflow:ne,offset:[0,-4],targetOffset:z},bottom:{points:["tc","bc"],overflow:ne,offset:[0,4],targetOffset:z},topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-4],targetOffset:z},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0],targetOffset:z},topRight:{points:["br","tr"],overflow:ne,offset:[0,-4],targetOffset:z},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0],targetOffset:z},bottomRight:{points:["tr","br"],overflow:ne,offset:[0,4],targetOffset:z},rightBottom:{points:["bl","br"],overflow:ne,offset:[4,0],targetOffset:z},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,4],targetOffset:z},leftBottom:{points:["br","bl"],overflow:ne,offset:[-4,0],targetOffset:z}},K=N},"815F":function(Vt,Ee,k){"use strict";k.d(Ee,"e",function(){return B}),k.d(Ee,"c",function(){return P}),k.d(Ee,"d",function(){return _}),k.d(Ee,"a",function(){return v}),k.d(Ee,"f",function(){return b}),k.d(Ee,"b",function(){return f});var ne=k("KQm4"),z=k("VTBJ"),N=k("Ff2n"),K=k("Zm9Q"),O=k("Kwbf"),w=k("OZM5");function B(n,p){return n!=null?n:p}function C(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function o(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(l){var x=l.key,E=l.children;Object(O.a)(x!=null,"Tree node must have a certain key: [".concat(s).concat(x,"]"));var y=String(x);Object(O.a)(!p.has(y)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(y)),p.set(y,!0),o(E,"".concat(s).concat(y," > "))})}o(n)}function P(n){function p(o){var r=Object(K.a)(o);return r.map(function(s){if(!Object(w.i)(s))return Object(O.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var l=s.key,x=s.props,E=x.children,y=Object(N.a)(x,["children"]),L=Object(z.a)({key:l},y),R=p(E);return R.length&&(L.children=R),L}).filter(function(s){return s})}return p(n)}function _(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=new Set(p===!0?[]:p),r=[];function s(l){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(E,y){var L=Object(w.h)(x?x.pos:"0",y),R=B(E.key,L),g=Object(z.a)(Object(z.a)({},E),{},{parent:x,pos:L,children:null,data:E,isStart:[].concat(Object(ne.a)(x?x.isStart:[]),[y===0]),isEnd:[].concat(Object(ne.a)(x?x.isEnd:[]),[y===l.length-1])});return r.push(g),p===!0||o.has(R)?g.children=s(E.children||[],g):g.children=[],g})}return s(n),r}function d(n,p,o){var r;o?typeof o=="string"?r=function(x){return x[o]}:typeof o=="function"&&(r=function(x){return o(x)}):r=function(x,E){return B(x.key,E)};function s(l,x,E){var y=l?l.children:n,L=l?Object(w.h)(E.pos,x):"0";if(l){var R=r(l,L),g={node:l,index:x,pos:L,key:R,parentPos:E.node?E.pos:null,level:E.level+1};p(g)}y&&y.forEach(function(m,c){s(m,c,{node:l,pos:L,level:E?E.level+1:-1})})}s(null)}function v(n){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=p.initWrapper,r=p.processEntity,s=p.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,x={},E={},y={posEntities:x,keyEntities:E};return o&&(y=o(y)||y),d(n,function(L){var R=L.node,g=L.index,m=L.pos,c=L.key,u=L.parentPos,D=L.level,T={node:R,index:g,key:c,pos:m,level:D},A=B(c,m);x[m]=T,E[A]=T,T.parent=x[u],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),r&&r(T,y)},l),s&&s(y),y}function b(n,p){var o=p.expandedKeys,r=p.selectedKeys,s=p.loadedKeys,l=p.loadingKeys,x=p.checkedKeys,E=p.halfCheckedKeys,y=p.dragOverNodeKey,L=p.dropPosition,R=p.keyEntities,g=R[n],m={eventKey:n,expanded:o.indexOf(n)!==-1,selected:r.indexOf(n)!==-1,loaded:s.indexOf(n)!==-1,loading:l.indexOf(n)!==-1,checked:x.indexOf(n)!==-1,halfChecked:E.indexOf(n)!==-1,pos:String(g?g.pos:""),dragOver:y===n&&L===0,dragOverGapTop:y===n&&L===-1,dragOverGapBottom:y===n&&L===1};return m}function f(n){var p=n.data,o=n.expanded,r=n.selected,s=n.checked,l=n.loaded,x=n.loading,E=n.halfChecked,y=n.dragOver,L=n.dragOverGapTop,R=n.dragOverGapBottom,g=n.pos,m=n.active,c=Object(z.a)(Object(z.a)({},p),{},{expanded:o,selected:r,checked:s,loaded:l,loading:x,halfChecked:E,dragOver:y,dragOverGapTop:L,dragOverGapBottom:R,pos:g,active:m});return"props"in c||Object.defineProperty(c,"props",{get:function(){return Object(O.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),c}},"8B0h":function(Vt,Ee,k){Vt.exports={flex_box_center:"flex_box_center___gEqtP",flex_space_between:"flex_space_between___grlN6",flex_box_vertical_center:"flex_box_vertical_center___1EQOE",flex_box_center_end:"flex_box_center_end___qI1rq",flex_box_column:"flex_box_column___1hiVF",form:"form___24-lt",efficiency:"efficiency___15_hw",configworksContainer:"configworksContainer___1ymgD"}},"8EBN":function(Vt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";ne.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var z=0;z-1&&K.substring(B+1,K.length);if(C)return ne.findModeByExtension(C)},ne.findModeByName=function(K){K=K.toLowerCase();for(var O=0;O0?b.a.createElement("span",null,"(\u5DF2\u62C6\u5206",Be,"\u4E2Azip\u5305)"):"")}),Ze===(ae==null?void 0:ae.length)-1?I(xe,Be>0?Be+1:0):Me>900*1024*1024?(Be++,Me=0,V(Be,function(){Ze++,qe()})):(Ze++,qe());case 3:case"end":return It.stop()}},Tt)})),2600)});case 1:case"end":return me.stop()}},we)})),Ve.apply(this,arguments)},qe=function(){return Ve.apply(this,arguments)},ae=ie||E,A(!0),Ze=0,Me=0,Be=0,xe=B.a.info({width:460,title:b.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u9644\u4EF6,",b.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:b.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",b.a.createElement("span",{className:"c-blue"},Ze+1),"/",ae==null?void 0:ae.length),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}}),qe();case 9:case"end":return pe.stop()}},Q)}));return function(ie){return W.apply(this,arguments)}}(),H=function(Q,ie,ae,xe){var Ze=ie,Me=new window.XMLHttpRequest;return Me.withCredentials=!0,Me.addEventListener("load",function(Be){ae(Be,Me)},!1),Me.addEventListener("error",function(Be){xe&&xe(Be)},!1),Me.responseType="blob",Me.open("GET",Ze),Me.send(null),Me},V=function(Q,ie){j.current.generateAsync({type:"blob"}).then(function(ae){var xe=document.createElement("a");xe.href=window.URL.createObjectURL(ae),xe.download=y+"-".concat(Q)+".zip",document.body.appendChild(xe);var Ze=document.createEvent("MouseEvents");Ze.initEvent("click",!1,!1),xe.dispatchEvent(Ze),document.body.removeChild(xe),j.current=new n.a,ie()})},I=function(Q,ie){j.current.generateAsync({type:"blob"}).then(function(ae){var xe=document.createElement("a");xe.href=window.URL.createObjectURL(ae),ie>0?xe.download=y+"-".concat(ie)+".zip":xe.download=y+".zip",document.body.appendChild(xe);var Ze=document.createEvent("MouseEvents");Ze.initEvent("click",!1,!1),xe.dispatchEvent(Ze),document.body.removeChild(xe),Q.destroy(),A(!1),c(),j.current=new n.a})};return g?b.a.createElement(b.a.Fragment,null):b.a.createElement(z.a,Object(N.a)({},R,{onClick:function(){return U()},loading:T}),"\u4E0B\u8F7D")};Ee.a=Object(v.forwardRef)(o)},"8HAY":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return w}),k.d(Ee,"b",function(){return B});var ne=k("pmY6"),z=k("MI8n"),N=function(){var C=function(P,_){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,v){d.__proto__=v}||function(d,v){for(var b in v)v.hasOwnProperty(b)&&(d[b]=v[b])},C(P,_)};return function(P,_){C(P,_);function d(){this.constructor=P}P.prototype=_===null?Object.create(_):(d.prototype=_.prototype,new d)}}(),K=function(C,P,_,d){function v(b){return b instanceof _?b:new _(function(f){f(b)})}return new(_||(_=Promise))(function(b,f){function n(r){try{o(d.next(r))}catch(s){f(s)}}function p(r){try{o(d.throw(r))}catch(s){f(s)}}function o(r){r.done?b(r.value):v(r.value).then(n,p)}o((d=d.apply(C,P||[])).next())})},O=function(C,P){var _={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},d,v,b,f;return f={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function n(o){return function(r){return p([o,r])}}function p(o){if(d)throw new TypeError("Generator is already executing.");for(;_;)try{if(d=1,v&&(b=o[0]&2?v.return:o[0]?v.throw||((b=v.return)&&b.call(v),0):v.next)&&!(b=b.call(v,o[1])).done)return b;(v=0,b)&&(o=[o[0]&2,b.value]);switch(o[0]){case 0:case 1:b=o;break;case 4:return _.label++,{value:o[1],done:!1};case 5:_.label++,v=o[1],o=[0];continue;case 7:o=_.ops.pop(),_.trys.pop();continue;default:if(!(b=_.trys,b=b.length>0&&b[b.length-1])&&(o[0]===6||o[0]===2)){_=0;continue}if(o[0]===3&&(!b||o[1]>b[0]&&o[1]=$.length?te.slice($.length):te}).join(` -`)}var o=[],r=["
            "],s=new f.a.Renderer,l=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function x(){o.length=0,r=["
              "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function y(J,S,M,$){if(S>=J.length||J[S].level<=M)return S;var te=J[S];$.push("
            • "+te.text+""),S++;var q=[];return S=y(J,S,te.level,q),q.length>0&&($.push("
                "),q.forEach(function(Xe){$.push(Xe)}),$.push("
              ")),$.push("
            • "),S=y(J,S,M,$),S}function L(){return y(o,0,0,r),r.push("
            "),r.join("")}var R={heading:function(S){var M=l.exec(S);if(M)return{type:"heading",raw:M[0],depth:M[1].length,text:M[2]}},fences:function(S){var M=this.rules.block.fences.exec(S);if(M){var $=M[0],te=p($,M[3]||""),q=M[2]?M[2].trim():M[2];if(["latex","katex","math"].indexOf(q)>=0){var Xe=c(),zt=te;te=Xe,u[Xe]={type:"block",expression:zt}}return{type:"code",raw:$,lang:q,text:te}}}},g=/(?:\${2})([^\n`]+?)(?:\${2})/gi,m=0,c=function(){return"__special_katext_id_".concat(m++,"__")},u={};function D(){return u}function T(){m=0,u={}}function A(J){return J=J.replace(g,function(S,M){var $=c();return u[$]={type:"inline",expression:M},$}),J}var j=s.listitem;s.listitem=function(J){return j(A(J))};var U=s.paragraph;s.paragraph=function(J){return U(A(J))};var H=s.tablecell;s.tablecell=function(J,S){return H(A(J),S)},s.code=function(J,S,M){var $=(S||"").match(/\S*/)[0];return $?["latex","katex","math"].indexOf($)>=0?"

            ".concat(J,"

            "):'
            ').concat(M?J:Object(n.escape)(J,!0),`
            +`+v.stack):v},0)}}return d.prototype.emit=function(v){this.listeners.forEach(function(b){b(v)})},d.prototype.onUnexpectedError=function(v){this.unexpectedErrorHandler(v),this.emit(v)},d.prototype.onUnexpectedExternalError=function(v){this.unexpectedErrorHandler(v)},d}(),z=new ne;function N(d){B(d)||z.onUnexpectedError(d);return}function K(d){B(d)||z.onUnexpectedExternalError(d);return}function O(d){if(d instanceof Error){var v=d.name,b=d.message,f=d.stacktrace||d.stack;return{$isError:!0,name:v,message:b,stack:f}}return d}var w="Canceled";function B(d){return d instanceof Error&&d.name===w&&d.message===w}function C(){var d=new Error(w);return d.name=d.message,d}function P(d){return d?new Error("Illegal argument: "+d):new Error("Illegal argument")}function _(d){return d?new Error("Illegal state: "+d):new Error("Illegal state")}},"19Vz":function(Gt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){ne.defineOption("placeholder","",function(C,P,_){var d=_&&_!=ne.Init;if(P&&!d)C.on("blur",O),C.on("change",w),C.on("swapDoc",w),ne.on(C.getInputField(),"compositionupdate",C.state.placeholderCompose=function(){K(C)}),w(C);else if(!P&&d){C.off("blur",O),C.off("change",w),C.off("swapDoc",w),ne.off(C.getInputField(),"compositionupdate",C.state.placeholderCompose),z(C);var v=C.getWrapperElement();v.className=v.className.replace(" CodeMirror-empty","")}P&&!C.hasFocus()&&O(C)});function z(C){C.state.placeholder&&(C.state.placeholder.parentNode.removeChild(C.state.placeholder),C.state.placeholder=null)}function N(C){z(C);var P=C.state.placeholder=document.createElement("pre");P.style.cssText="height: 0; overflow: visible",P.style.direction=C.getOption("direction"),P.className="CodeMirror-placeholder CodeMirror-line-like";var _=C.getOption("placeholder");typeof _=="string"&&(_=document.createTextNode(_)),P.appendChild(_),C.display.lineSpace.insertBefore(P,C.display.lineSpace.firstChild)}function K(C){setTimeout(function(){var P=!1,_=C.getInputField();_.nodeName=="TEXTAREA"?P=!_.value:C.lineCount()==1&&(P=!/[^\u200b]/.test(_.querySelector(".CodeMirror-line").textContent)),P?N(C):z(C)},20)}function O(C){B(C)&&N(C)}function w(C){var P=C.getWrapperElement(),_=B(C);P.className=P.className.replace(" CodeMirror-empty","")+(_?" CodeMirror-empty":""),_?N(C):z(C)}function B(C){return C.lineCount()===1&&C.getLine(0)===""}})},"1eCo":function(Gt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";var z={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},N={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ne.defineMode("xml",function(K,O){var w=K.indentUnit,B={},C=O.htmlMode?z:N;for(var P in C)B[P]=C[P];for(var P in O)B[P]=O[P];var _,d;function v(u,D){function T(U){return D.tokenize=U,U(u,D)}var A=u.next();if(A=="<")return u.eat("!")?u.eat("[")?u.match("CDATA[")?T(n("atom","]]>")):null:u.match("--")?T(n("comment","-->")):u.match("DOCTYPE",!0,!0)?(u.eatWhile(/[\w\._\-]/),T(p(1))):null:u.eat("?")?(u.eatWhile(/[\w\._\-]/),D.tokenize=n("meta","?>"),"meta"):(_=u.eat("/")?"closeTag":"openTag",D.tokenize=b,"tag bracket");if(A=="&"){var j;return u.eat("#")?u.eat("x")?j=u.eatWhile(/[a-fA-F\d]/)&&u.eat(";"):j=u.eatWhile(/[\d]/)&&u.eat(";"):j=u.eatWhile(/[\w\.\-:]/)&&u.eat(";"),j?"atom":"error"}else return u.eatWhile(/[^&<]/),null}v.isInText=!0;function b(u,D){var T=u.next();if(T==">"||T=="/"&&u.eat(">"))return D.tokenize=v,_=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return _="equals",null;if(T=="<"){D.tokenize=v,D.state=l,D.tagName=D.tagStart=null;var A=D.tokenize(u,D);return A?A+" tag error":"tag error"}else return/[\'\"]/.test(T)?(D.tokenize=f(T),D.stringStartCol=u.column(),D.tokenize(u,D)):(u.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(u){var D=function(T,A){for(;!T.eol();)if(T.next()==u){A.tokenize=b;break}return"string"};return D.isInAttribute=!0,D}function n(u,D){return function(T,A){for(;!T.eol();){if(T.match(D)){A.tokenize=v;break}T.next()}return u}}function p(u){return function(D,T){for(var A;(A=D.next())!=null;){if(A=="<")return T.tokenize=p(u+1),T.tokenize(D,T);if(A==">")if(u==1){T.tokenize=v;break}else return T.tokenize=p(u-1),T.tokenize(D,T)}return"meta"}}function o(u,D,T){this.prev=u.context,this.tagName=D,this.indent=u.indented,this.startOfLine=T,(B.doNotIndent.hasOwnProperty(D)||u.context&&u.context.noIndent)&&(this.noIndent=!0)}function r(u){u.context&&(u.context=u.context.prev)}function s(u,D){for(var T;;){if(!u.context)return;if(T=u.context.tagName,!B.contextGrabbers.hasOwnProperty(T)||!B.contextGrabbers[T].hasOwnProperty(D))return;r(u)}}function l(u,D,T){return u=="openTag"?(T.tagStart=D.column(),x):u=="closeTag"?E:l}function x(u,D,T){return u=="word"?(T.tagName=D.current(),d="tag",R):B.allowMissingTagName&&u=="endTag"?(d="tag bracket",R(u,D,T)):(d="error",x)}function E(u,D,T){if(u=="word"){var A=D.current();return T.context&&T.context.tagName!=A&&B.implicitlyClosed.hasOwnProperty(T.context.tagName)&&r(T),T.context&&T.context.tagName==A||B.matchClosing===!1?(d="tag",y):(d="tag error",L)}else return B.allowMissingTagName&&u=="endTag"?(d="tag bracket",y(u,D,T)):(d="error",L)}function y(u,D,T){return u!="endTag"?(d="error",y):(r(T),l)}function L(u,D,T){return d="error",y(u,D,T)}function R(u,D,T){if(u=="word")return d="attribute",g;if(u=="endTag"||u=="selfcloseTag"){var A=T.tagName,j=T.tagStart;return T.tagName=T.tagStart=null,u=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(A)?s(T,A):(s(T,A),T.context=new o(T,A,j==T.indented)),l}return d="error",R}function g(u,D,T){return u=="equals"?m:(B.allowMissing||(d="error"),R(u,D,T))}function m(u,D,T){return u=="string"?c:u=="word"&&B.allowUnquoted?(d="string",R):(d="error",R(u,D,T))}function c(u,D,T){return u=="string"?c:R(u,D,T)}return{startState:function(u){var D={tokenize:v,state:l,indented:u||0,tagName:null,tagStart:null,context:null};return u!=null&&(D.baseIndent=u),D},token:function(u,D){if(!D.tagName&&u.sol()&&(D.indented=u.indentation()),u.eatSpace())return null;_=null;var T=D.tokenize(u,D);return(T||_)&&T!="comment"&&(d=null,D.state=D.state(_||T,u,D),d&&(T=d=="error"?T+" error":d)),T},indent:function(u,D,T){var A=u.context;if(u.tokenize.isInAttribute)return u.tagStart==u.indented?u.stringStartCol+1:u.indented+w;if(A&&A.noIndent)return ne.Pass;if(u.tokenize!=b&&u.tokenize!=v)return T?T.match(/^(\s*)/)[0].length:0;if(u.tagName)return B.multilineTagIndentPastTag!==!1?u.tagStart+u.tagName.length+2:u.tagStart+w*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/$/,blockCommentStart:"",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(u){u.state==m&&(u.state=R)},xmlCurrentTag:function(u){return u.tagName?{name:u.tagName,close:u.type=="closeTag"}:null},xmlCurrentContext:function(u){for(var D=[],T=u.context;T;T=T.prev)T.tagName&&D.push(T.tagName);return D.reverse()}}}),ne.defineMIME("text/xml","xml"),ne.defineMIME("application/xml","xml"),ne.mimeModes.hasOwnProperty("text/html")||ne.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Gt,Ee,k){"use strict";k.d(Ee,"d",function(){return Tt}),k.d(Ee,"b",function(){return at}),k.d(Ee,"c",function(){return Rt}),k.d(Ee,"a",function(){return pn});var ne=k("VTBJ"),z=k("1OyB"),N=k("vuIU"),K=k("JX7q"),O=k("Ji7U"),w=k("LK+K"),B=k("q1tI"),C=k("I8Z2"),P=k("BGR+"),_=k("wx14"),d=k("rePB"),v=k("4IlW"),b=k("2GS6"),f=k("Gytx"),n=k.n(f),p=k("TSYQ"),o=k.n(p),r=k("U8pU"),s=k("ODXe"),l=/iPhone/i,x=/iPod/i,E=/iPad/i,y=/\bAndroid(?:.+)Mobile\b/i,L=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,g=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,m=/Windows Phone/i,c=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,D=/BB10/i,T=/Opera Mini/i,A=/\b(CriOS|Chrome)(?:.+)Mobile/i,j=/Mobile(?:.+)Firefox\b/i;function U(Ht,bt){return Ht.test(bt)}function H(Ht){var bt=Ht||(typeof navigator!="undefined"?navigator.userAgent:""),xt=bt.split("[FBAN");if(typeof xt[1]!="undefined"){var ct=xt,ge=Object(s.a)(ct,1);bt=ge[0]}if(xt=bt.split("Twitter"),typeof xt[1]!="undefined"){var Ne=xt,Ct=Object(s.a)(Ne,1);bt=Ct[0]}var dt={apple:{phone:U(l,bt)&&!U(m,bt),ipod:U(x,bt),tablet:!U(l,bt)&&U(E,bt)&&!U(m,bt),device:(U(l,bt)||U(x,bt)||U(E,bt))&&!U(m,bt)},amazon:{phone:U(R,bt),tablet:!U(R,bt)&&U(g,bt),device:U(R,bt)||U(g,bt)},android:{phone:!U(m,bt)&&U(R,bt)||!U(m,bt)&&U(y,bt),tablet:!U(m,bt)&&!U(R,bt)&&!U(y,bt)&&(U(g,bt)||U(L,bt)),device:!U(m,bt)&&(U(R,bt)||U(g,bt)||U(y,bt)||U(L,bt))||U(/\bokhttp\b/i,bt)},windows:{phone:U(m,bt),tablet:U(c,bt),device:U(m,bt)||U(c,bt)},other:{blackberry:U(u,bt),blackberry10:U(D,bt),opera:U(T,bt),firefox:U(j,bt),chrome:U(A,bt),device:U(u,bt)||U(D,bt)||U(T,bt)||U(j,bt)||U(A,bt)},any:null,phone:null,tablet:null};return dt.any=dt.apple.device||dt.android.device||dt.windows.device||dt.other.device,dt.phone=dt.apple.phone||dt.android.phone||dt.windows.phone,dt.tablet=dt.apple.tablet||dt.android.tablet||dt.windows.tablet,dt}var V=Object(ne.a)(Object(ne.a)({},H()),{},{isMobile:H}),I=V;function W(){}function Q(Ht,bt,xt){var ct=bt||"";return Ht.key||"".concat(ct,"item_").concat(xt)}function ie(Ht){return"".concat(Ht,"-menu-")}function ae(Ht,bt){var xt=-1;B.Children.forEach(Ht,function(ct){xt+=1,ct&&ct.type&&ct.type.isMenuItemGroup?B.Children.forEach(ct.props.children,function(ge){xt+=1,bt(ge,xt)}):bt(ct,xt)})}function xe(Ht,bt,xt){if(!Ht||xt.find)return;B.Children.forEach(Ht,function(ct){if(ct){var ge=ct.type;if(!ge||!(ge.isSubMenu||ge.isMenuItem||ge.isMenuItemGroup))return;bt.indexOf(ct.key)!==-1?xt.find=!0:ct.props.children&&xe(ct.props.children,bt,xt)}})}var Ze=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Me=function(bt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(ct){if(xt){var ge=getComputedStyle(bt),Ne=ge.marginLeft,Ct=ge.marginRight;ct+=+Ne.replace("px","")+ +Ct.replace("px","")}ct=+ct.toFixed(6)}return ct||0},Be=function(bt,xt,ct){bt&&Object(r.a)(bt.style)==="object"&&(bt.style[xt]=ct)},qe=function(){return I.any},Ve=k("KQm4"),De=k("Ff2n"),pe=k("i8i4"),se=k("bdgK"),we=k("uciX"),ve=k("8XRh"),$e={adjustX:1,adjustY:1},me={topLeft:{points:["bl","tl"],overflow:$e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$e,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:$e,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:$e,offset:[4,0]}},X={topLeft:{points:["bl","tl"],overflow:$e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$e,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:$e,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:$e,offset:[4,0]}},G=me,Y=0,ue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},be=function(bt,xt,ct){var ge=ie(xt),Ne=bt.getState();bt.setState({defaultActiveFirst:Object(ne.a)(Object(ne.a)({},Ne.defaultActiveFirst),{},Object(d.a)({},ge,ct))})},We=function(Ht){Object(O.a)(xt,Ht);var bt=Object(w.a)(xt);function xt(ct){var ge;Object(z.a)(this,xt),ge=bt.call(this,ct),ge.onDestroy=function(it){ge.props.onDestroy(it)},ge.onKeyDown=function(it){var vt=it.keyCode,Ot=ge.menuInstance,on=ge.props,xn=on.isOpen,lr=on.store;if(vt===v.a.ENTER)return ge.onTitleClick(it),be(lr,ge.props.eventKey,!0),!0;if(vt===v.a.RIGHT)return xn?Ot.onKeyDown(it):(ge.triggerOpenChange(!0),be(lr,ge.props.eventKey,!0)),!0;if(vt===v.a.LEFT){var fr;if(xn)fr=Ot.onKeyDown(it);else return;return fr||(ge.triggerOpenChange(!1),fr=!0),fr}return xn&&(vt===v.a.UP||vt===v.a.DOWN)?Ot.onKeyDown(it):void 0},ge.onOpenChange=function(it){ge.props.onOpenChange(it)},ge.onPopupVisibleChange=function(it){ge.triggerOpenChange(it,it?"mouseenter":"mouseleave")},ge.onMouseEnter=function(it){var vt=ge.props,Ot=vt.eventKey,on=vt.onMouseEnter,xn=vt.store;be(xn,ge.props.eventKey,!1),on({key:Ot,domEvent:it})},ge.onMouseLeave=function(it){var vt=ge.props,Ot=vt.parentMenu,on=vt.eventKey,xn=vt.onMouseLeave;Ot.subMenuInstance=Object(K.a)(ge),xn({key:on,domEvent:it})},ge.onTitleMouseEnter=function(it){var vt=ge.props,Ot=vt.eventKey,on=vt.onItemHover,xn=vt.onTitleMouseEnter;on({key:Ot,hover:!0}),xn({key:Ot,domEvent:it})},ge.onTitleMouseLeave=function(it){var vt=ge.props,Ot=vt.parentMenu,on=vt.eventKey,xn=vt.onItemHover,lr=vt.onTitleMouseLeave;Ot.subMenuInstance=Object(K.a)(ge),xn({key:on,hover:!1}),lr({key:on,domEvent:it})},ge.onTitleClick=function(it){var vt=Object(K.a)(ge),Ot=vt.props;if(Ot.onTitleClick({key:Ot.eventKey,domEvent:it}),Ot.triggerSubMenuAction==="hover")return;ge.triggerOpenChange(!Ot.isOpen,"click"),be(Ot.store,ge.props.eventKey,!1)},ge.onSubMenuClick=function(it){typeof ge.props.onClick=="function"&&ge.props.onClick(ge.addKeyPath(it))},ge.onSelect=function(it){ge.props.onSelect(it)},ge.onDeselect=function(it){ge.props.onDeselect(it)},ge.getPrefixCls=function(){return"".concat(ge.props.rootPrefixCls,"-submenu")},ge.getActiveClassName=function(){return"".concat(ge.getPrefixCls(),"-active")},ge.getDisabledClassName=function(){return"".concat(ge.getPrefixCls(),"-disabled")},ge.getSelectedClassName=function(){return"".concat(ge.getPrefixCls(),"-selected")},ge.getOpenClassName=function(){return"".concat(ge.props.rootPrefixCls,"-submenu-open")},ge.saveMenuInstance=function(it){ge.menuInstance=it},ge.addKeyPath=function(it){return Object(ne.a)(Object(ne.a)({},it),{},{keyPath:(it.keyPath||[]).concat(ge.props.eventKey)})},ge.triggerOpenChange=function(it,vt){var Ot=ge.props.eventKey,on=function(){ge.onOpenChange({key:Ot,item:Object(K.a)(ge),trigger:vt,open:it})};vt==="mouseenter"?ge.mouseenterTimeout=setTimeout(function(){on()},0):on()},ge.isChildrenSelected=function(){var it={find:!1};return xe(ge.props.children,ge.props.selectedKeys,it),it.find},ge.isOpen=function(){return ge.props.openKeys.indexOf(ge.props.eventKey)!==-1},ge.adjustWidth=function(){if(!ge.subMenuTitle||!ge.menuInstance)return;var it=pe.findDOMNode(ge.menuInstance);if(it.offsetWidth>=ge.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(ge.subMenuTitle.offsetWidth,"px")},ge.saveSubMenuTitle=function(it){ge.subMenuTitle=it},ge.getBaseProps=function(){var it=Object(K.a)(ge),vt=it.props;return{mode:vt.mode==="horizontal"?"vertical":vt.mode,visible:ge.props.isOpen,level:vt.level+1,inlineIndent:vt.inlineIndent,focusable:!1,onClick:ge.onSubMenuClick,onSelect:ge.onSelect,onDeselect:ge.onDeselect,onDestroy:ge.onDestroy,selectedKeys:vt.selectedKeys,eventKey:"".concat(vt.eventKey,"-menu-"),openKeys:vt.openKeys,motion:vt.motion,onOpenChange:ge.onOpenChange,subMenuOpenDelay:vt.subMenuOpenDelay,parentMenu:Object(K.a)(ge),subMenuCloseDelay:vt.subMenuCloseDelay,forceSubMenuRender:vt.forceSubMenuRender,triggerSubMenuAction:vt.triggerSubMenuAction,builtinPlacements:vt.builtinPlacements,defaultActiveFirst:vt.store.getState().defaultActiveFirst[ie(vt.eventKey)],multiple:vt.multiple,prefixCls:vt.rootPrefixCls,id:ge.internalMenuId,manualRef:ge.saveMenuInstance,itemIcon:vt.itemIcon,expandIcon:vt.expandIcon,direction:vt.direction}},ge.getMotion=function(it,vt){var Ot=Object(K.a)(ge),on=Ot.haveRendered,xn=ge.props,lr=xn.motion,fr=xn.rootPrefixCls,ir=Object(ne.a)(Object(ne.a)({},lr),{},{leavedClassName:"".concat(fr,"-hidden"),removeOnLeave:!1,motionAppear:on||!vt||it!=="inline"});return ir};var Ne=ct.store,Ct=ct.eventKey,dt=Ne.getState(),en=dt.defaultActiveFirst;ge.isRootMenu=!1;var tn=!1;return en&&(tn=en[Ct]),be(Ne,Ct,tn),ge}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this,Ne=this.props,Ct=Ne.mode,dt=Ne.parentMenu,en=Ne.manualRef;if(en&&en(this),Ct!=="horizontal"||!dt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ge.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ge=this.props,Ne=ge.onDestroy,Ct=ge.eventKey;Ne&&Ne(Ct),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ge){var Ne=this,Ct=this.getBaseProps(),dt=this.getMotion(Ct.mode,Ct.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ct.visible||Ct.forceSubMenuRender,!this.haveOpened)return B.createElement("div",null);var en=Ct.direction;return B.createElement(ve.default,Object.assign({visible:Ct.visible},dt),function(tn){var it=tn.className,vt=tn.style,Ot=o()("".concat(Ct.prefixCls,"-sub"),it,Object(d.a)({},"".concat(Ct.prefixCls,"-rtl"),en==="rtl"));return B.createElement(Fe,Object.assign({},Ct,{id:Ne.internalMenuId,className:Ot,style:vt}),ge)})}},{key:"render",value:function(){var ge,Ne=Object(ne.a)({},this.props),Ct=Ne.isOpen,dt=this.getPrefixCls(),en=Ne.mode==="inline",tn=o()(dt,"".concat(dt,"-").concat(Ne.mode),(ge={},Object(d.a)(ge,Ne.className,!!Ne.className),Object(d.a)(ge,this.getOpenClassName(),Ct),Object(d.a)(ge,this.getActiveClassName(),Ne.active||Ct&&!en),Object(d.a)(ge,this.getDisabledClassName(),Ne.disabled),Object(d.a)(ge,this.getSelectedClassName(),this.isChildrenSelected()),ge));this.internalMenuId||(Ne.eventKey?this.internalMenuId="".concat(Ne.eventKey,"$Menu"):(Y+=1,this.internalMenuId="$__$".concat(Y,"$Menu")));var it={},vt={},Ot={};Ne.disabled||(it={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},vt={onClick:this.onTitleClick},Ot={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var on={},xn=Ne.direction;en&&(xn==="rtl"?on.paddingRight=Ne.inlineIndent*Ne.level:on.paddingLeft=Ne.inlineIndent*Ne.level);var lr={};this.props.isOpen&&(lr={"aria-owns":this.internalMenuId});var fr=null;Ne.mode!=="horizontal"&&(fr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(fr=B.createElement(this.props.expandIcon,Object(ne.a)({},this.props))));var ir=B.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:on,className:"".concat(dt,"-title"),role:"button"},Ot,vt,{"aria-expanded":Ct},lr,{"aria-haspopup":"true",title:typeof Ne.title=="string"?Ne.title:void 0}),Ne.title,fr||B.createElement("i",{className:"".concat(dt,"-arrow")})),Tn=this.renderChildren(Ne.children),Wr=Ne.parentMenu.isRootMenu?Ne.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},ta=ue[Ne.mode],jr=Ne.popupOffset?{offset:Ne.popupOffset}:{},mr=Ne.mode==="inline"?"":Ne.popupClassName;mr+=xn==="rtl"?" ".concat(dt,"-rtl"):"";var Br=Ne.disabled,Zr=Ne.triggerSubMenuAction,ua=Ne.subMenuOpenDelay,jt=Ne.forceSubMenuRender,On=Ne.subMenuCloseDelay,vr=Ne.builtinPlacements;Ze.forEach(function(Sr){return delete Ne[Sr]}),delete Ne.onClick;var Dr=xn==="rtl"?Object.assign({},X,vr):Object.assign({},me,vr);return delete Ne.direction,B.createElement("li",Object.assign({},Ne,it,{className:tn,role:"menuitem"}),en&&ir,en&&Tn,!en&&B.createElement(we.a,{prefixCls:dt,popupClassName:o()("".concat(dt,"-popup"),mr),getPopupContainer:Wr,builtinPlacements:Dr,popupPlacement:ta,popupVisible:Ct,popupAlign:jr,popup:Tn,action:Br?[]:[Zr],mouseEnterDelay:ua,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:jt},ir))}}]),xt}(B.Component);We.defaultProps={onMouseEnter:W,onMouseLeave:W,onTitleMouseEnter:W,onTitleMouseLeave:W,onTitleClick:W,manualRef:W,mode:"vertical",title:""};var ze=Object(C.b)(function(Ht,bt){var xt=Ht.openKeys,ct=Ht.activeKey,ge=Ht.selectedKeys,Ne=bt.eventKey,Ct=bt.subMenuKey;return{isOpen:xt.indexOf(Ne)>-1,active:ct[Ct]===Ne,selectedKeys:ge}})(We);ze.isSubMenu=!0;var Tt=ze,Ut="menuitem-overflowed",It=.5,Nt=function(Ht){Object(O.a)(xt,Ht);var bt=Object(w.a)(xt);function xt(){var ct;return Object(z.a)(this,xt),ct=bt.apply(this,arguments),ct.resizeObserver=null,ct.mutationObserver=null,ct.originalTotalWidth=0,ct.overflowedItems=[],ct.menuItemSizes=[],ct.cancelFrameId=null,ct.state={lastVisibleIndex:void 0},ct.getMenuItemNodes=function(){var ge=ct.props.prefixCls,Ne=pe.findDOMNode(Object(K.a)(ct));return Ne?[].slice.call(Ne.children).filter(function(Ct){return Ct.className.split(" ").indexOf("".concat(ge,"-overflowed-submenu"))<0}):[]},ct.getOverflowedSubMenuItem=function(ge,Ne,Ct){var dt=ct.props,en=dt.overflowedIndicator,tn=dt.level,it=dt.mode,vt=dt.prefixCls,Ot=dt.theme;if(tn!==1||it!=="horizontal")return null;var on=ct.props.children[0],xn=on.props,lr=xn.children,fr=xn.title,ir=xn.style,Tn=Object(De.a)(xn,["children","title","style"]),Wr=Object(ne.a)({},ir),ta="".concat(ge,"-overflowed-indicator"),jr="".concat(ge,"-overflowed-indicator");Ne.length===0&&Ct!==!0?Wr=Object(ne.a)(Object(ne.a)({},Wr),{},{display:"none"}):Ct&&(Wr=Object(ne.a)(Object(ne.a)({},Wr),{},{visibility:"hidden",position:"absolute"}),ta="".concat(ta,"-placeholder"),jr="".concat(jr,"-placeholder"));var mr=Ot?"".concat(vt,"-").concat(Ot):"",Br={};return Ze.forEach(function(Zr){Tn[Zr]!==void 0&&(Br[Zr]=Tn[Zr])}),B.createElement(Tt,Object.assign({title:en,className:"".concat(vt,"-overflowed-submenu"),popupClassName:mr},Br,{key:ta,eventKey:jr,disabled:!1,style:Wr}),Ne)},ct.setChildrenWidthAndResize=function(){if(ct.props.mode!=="horizontal")return;var ge=pe.findDOMNode(Object(K.a)(ct));if(!ge)return;var Ne=ge.children;if(!Ne||Ne.length===0)return;var Ct=ge.children[Ne.length-1];Be(Ct,"display","inline-block");var dt=ct.getMenuItemNodes(),en=dt.filter(function(tn){return tn.className.split(" ").indexOf(Ut)>=0});en.forEach(function(tn){Be(tn,"display","inline-block")}),ct.menuItemSizes=dt.map(function(tn){return Me(tn,!0)}),en.forEach(function(tn){Be(tn,"display","none")}),ct.overflowedIndicatorWidth=Me(ge.children[ge.children.length-1],!0),ct.originalTotalWidth=ct.menuItemSizes.reduce(function(tn,it){return tn+it},0),ct.handleResize(),Be(Ct,"display","none")},ct.handleResize=function(){if(ct.props.mode!=="horizontal")return;var ge=pe.findDOMNode(Object(K.a)(ct));if(!ge)return;var Ne=Me(ge);ct.overflowedItems=[];var Ct=0,dt;ct.originalTotalWidth>Ne+It&&(dt=-1,ct.menuItemSizes.forEach(function(en){Ct+=en,Ct+ct.overflowedIndicatorWidth<=Ne&&(dt+=1)})),ct.setState({lastVisibleIndex:dt})},ct}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){var ge=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ne=pe.findDOMNode(this);if(!Ne)return;this.resizeObserver=new se.default(function(Ct){Ct.forEach(function(){var dt=ge.cancelFrameId;cancelAnimationFrame(dt),ge.cancelFrameId=requestAnimationFrame(ge.setChildrenWidthAndResize)})}),[].slice.call(Ne.children).concat(Ne).forEach(function(Ct){ge.resizeObserver.observe(Ct)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ge.resizeObserver.disconnect(),[].slice.call(Ne.children).concat(Ne).forEach(function(Ct){ge.resizeObserver.observe(Ct)}),ge.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ne,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ge){var Ne=this,Ct=this.state.lastVisibleIndex;return(ge||[]).reduce(function(dt,en,tn){var it=en;if(Ne.props.mode==="horizontal"){var vt=Ne.getOverflowedSubMenuItem(en.props.eventKey,[]);Ct!==void 0&&Ne.props.className.indexOf("".concat(Ne.props.prefixCls,"-root"))!==-1&&(tn>Ct&&(it=B.cloneElement(en,{style:{display:"none"},eventKey:"".concat(en.props.eventKey,"-hidden"),className:"".concat(Ut)})),tn===Ct+1&&(Ne.overflowedItems=ge.slice(Ct+1).map(function(on){return B.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),vt=Ne.getOverflowedSubMenuItem(en.props.eventKey,Ne.overflowedItems)));var Ot=[].concat(Object(Ve.a)(dt),[vt,it]);return tn===ge.length-1&&Ot.push(Ne.getOverflowedSubMenuItem(en.props.eventKey,[],!0)),Ot}return[].concat(Object(Ve.a)(dt),[it])},[])}},{key:"render",value:function(){var ge=this.props,Ne=ge.visible,Ct=ge.prefixCls,dt=ge.overflowedIndicator,en=ge.mode,tn=ge.level,it=ge.tag,vt=ge.children,Ot=ge.theme,on=Object(De.a)(ge,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),xn=it;return B.createElement(xn,Object.assign({},on),this.renderChildren(vt))}}]),xt}(B.Component);Nt.defaultProps={tag:"div",className:""};var Zt=Nt;function fn(Ht){return Ht.length?Ht.every(function(bt){return!!bt.props.disabled}):!0}function nt(Ht,bt,xt){var ct=Ht.getState();Ht.setState({activeKey:Object(ne.a)(Object(ne.a)({},ct.activeKey),{},Object(d.a)({},bt,xt))})}function He(Ht){return Ht.eventKey||"0-menu-"}function pt(Ht,bt){var xt=bt,ct=Ht.children,ge=Ht.eventKey;if(xt){var Ne;if(ae(ct,function(Ct,dt){Ct&&Ct.props&&!Ct.props.disabled&&xt===Q(Ct,ge,dt)&&(Ne=!0)}),Ne)return xt}return xt=null,Ht.defaultActiveFirst&&ae(ct,function(Ct,dt){!xt&&Ct&&!Ct.props.disabled&&(xt=Q(Ct,ge,dt))}),xt}function Mt(Ht){if(Ht){var bt=this.instanceArray.indexOf(Ht);bt!==-1?this.instanceArray[bt]=Ht:this.instanceArray.push(Ht)}}var st=function(Ht){Object(O.a)(xt,Ht);var bt=Object(w.a)(xt);function xt(ct){var ge;return Object(z.a)(this,xt),ge=bt.call(this,ct),ge.onKeyDown=function(Ne,Ct){var dt=Ne.keyCode,en;if(ge.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(en=it.onKeyDown(Ne))}),en)return 1;var tn=null;return(dt===v.a.UP||dt===v.a.DOWN)&&(tn=ge.step(dt===v.a.UP?-1:1)),tn?(Ne.preventDefault(),nt(ge.props.store,He(ge.props),tn.props.eventKey),typeof Ct=="function"&&Ct(tn),1):void 0},ge.onItemHover=function(Ne){var Ct=Ne.key,dt=Ne.hover;nt(ge.props.store,He(ge.props),dt?Ct:null)},ge.onDeselect=function(Ne){ge.props.onDeselect(Ne)},ge.onSelect=function(Ne){ge.props.onSelect(Ne)},ge.onClick=function(Ne){ge.props.onClick(Ne)},ge.onOpenChange=function(Ne){ge.props.onOpenChange(Ne)},ge.onDestroy=function(Ne){ge.props.onDestroy(Ne)},ge.getFlatInstanceArray=function(){return ge.instanceArray},ge.step=function(Ne){var Ct=ge.getFlatInstanceArray(),dt=ge.props.store.getState().activeKey[He(ge.props)],en=Ct.length;if(!en)return null;Ne<0&&(Ct=Ct.concat().reverse());var tn=-1;if(Ct.every(function(on,xn){return on&&on.props.eventKey===dt?(tn=xn,!1):!0}),!ge.props.defaultActiveFirst&&tn!==-1&&fn(Ct.slice(tn,en-1)))return;var it=(tn+1)%en,vt=it;do{var Ot=Ct[vt];if(!Ot||Ot.props.disabled)vt=(vt+1)%en;else return Ot}while(vt!==it);return null},ge.renderCommonMenuItem=function(Ne,Ct,dt){var en=ge.props.store.getState(),tn=Object(K.a)(ge),it=tn.props,vt=Q(Ne,it.eventKey,Ct),Ot=Ne.props;if(!Ot||typeof Ne.type=="string")return Ne;var on=vt===en.activeKey,xn=Object(ne.a)(Object(ne.a)({mode:Ot.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:ge.renderMenuItem,rootPrefixCls:it.prefixCls,index:Ct,parentMenu:it.parentMenu,manualRef:Ot.disabled?void 0:Object(b.a)(Ne.ref,Mt.bind(Object(K.a)(ge))),eventKey:vt,active:!Ot.disabled&&on,multiple:it.multiple,onClick:function(fr){(Ot.onClick||W)(fr),ge.onClick(fr)},onItemHover:ge.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:ge.onOpenChange,onDeselect:ge.onDeselect,onSelect:ge.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:Ot.itemIcon||ge.props.itemIcon,expandIcon:Ot.expandIcon||ge.props.expandIcon},dt),{},{direction:it.direction});return(it.mode==="inline"||qe())&&(xn.triggerSubMenuAction="click"),B.cloneElement(Ne,xn)},ge.renderMenuItem=function(Ne,Ct,dt){if(!Ne)return null;var en=ge.props.store.getState(),tn={openKeys:en.openKeys,selectedKeys:en.selectedKeys,triggerSubMenuAction:ge.props.triggerSubMenuAction,subMenuKey:dt};return ge.renderCommonMenuItem(Ne,Ct,tn)},ct.store.setState({activeKey:Object(ne.a)(Object(ne.a)({},ct.store.getState().activeKey),{},Object(d.a)({},ct.eventKey,pt(ct,ct.activeKey)))}),ge.instanceArray=[],ge}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ge){return this.props.visible||ge.visible||this.props.className!==ge.className||!n()(this.props.style,ge.style)}},{key:"componentDidUpdate",value:function(ge){var Ne=this.props,Ct="activeKey"in Ne?Ne.activeKey:Ne.store.getState().activeKey[He(Ne)],dt=pt(Ne,Ct);if(dt!==Ct)nt(Ne.store,He(Ne),dt);else if("activeKey"in ge){var en=pt(ge,ge.activeKey);dt!==en&&nt(Ne.store,He(Ne),dt)}}},{key:"render",value:function(){var ge=this,Ne=Object(_.a)({},this.props);this.instanceArray=[];var Ct=o()(Ne.prefixCls,Ne.className,"".concat(Ne.prefixCls,"-").concat(Ne.mode)),dt={className:Ct,role:Ne.role||"menu"};Ne.id&&(dt.id=Ne.id),Ne.focusable&&(dt.tabIndex=0,dt.onKeyDown=this.onKeyDown);var en=Ne.prefixCls,tn=Ne.eventKey,it=Ne.visible,vt=Ne.level,Ot=Ne.mode,on=Ne.overflowedIndicator,xn=Ne.theme;return Ze.forEach(function(lr){return delete Ne[lr]}),delete Ne.onClick,B.createElement(Zt,Object.assign({},Ne,{prefixCls:en,mode:Ot,tag:"ul",level:vt,theme:xn,visible:it,overflowedIndicator:on},dt),B.Children.map(Ne.children,function(lr,fr){return ge.renderMenuItem(lr,fr,tn||"0-menu-")}))}}]),xt}(B.Component);st.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:W};var Et=Object(C.b)()(st),Fe=Et,Se=k("Kwbf");function Oe(Ht,bt,xt){var ct=Ht.prefixCls,ge=Ht.motion,Ne=Ht.defaultMotions,Ct=Ne===void 0?{}:Ne,dt=Ht.openAnimation,en=Ht.openTransitionName,tn=bt.switchingModeFromInline;if(ge)return ge;if(Object(r.a)(dt)==="object"&&dt)Object(Se.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof dt=="string")return{motionName:"".concat(ct,"-open-").concat(dt)};if(en)return{motionName:en};var it=Ct[xt];return it||(tn?null:Ct.other)}var ce=function(Ht){Object(O.a)(xt,Ht);var bt=Object(w.a)(xt);function xt(ct){var ge;Object(z.a)(this,xt),ge=bt.call(this,ct),ge.inlineOpenKeys=[],ge.onSelect=function(dt){var en=Object(K.a)(ge),tn=en.props;if(tn.selectable){var it=ge.store.getState(),vt=it.selectedKeys,Ot=dt.key;tn.multiple?vt=vt.concat([Ot]):vt=[Ot],"selectedKeys"in tn||ge.store.setState({selectedKeys:vt}),tn.onSelect(Object(ne.a)(Object(ne.a)({},dt),{},{selectedKeys:vt}))}},ge.onClick=function(dt){var en=ge.getRealMenuMode(),tn=Object(K.a)(ge),it=tn.store,vt=tn.props.onOpenChange;en!=="inline"&&!("openKeys"in ge.props)&&(it.setState({openKeys:[]}),vt([])),ge.props.onClick(dt)},ge.onKeyDown=function(dt,en){ge.innerMenu.getWrappedInstance().onKeyDown(dt,en)},ge.onOpenChange=function(dt){var en=Object(K.a)(ge),tn=en.props,it=ge.store.getState().openKeys.concat(),vt=!1,Ot=function(xn){var lr=!1;if(xn.open)lr=it.indexOf(xn.key)===-1,lr&&it.push(xn.key);else{var fr=it.indexOf(xn.key);lr=fr!==-1,lr&&it.splice(fr,1)}vt=vt||lr};Array.isArray(dt)?dt.forEach(Ot):Ot(dt),vt&&("openKeys"in ge.props||ge.store.setState({openKeys:it}),tn.onOpenChange(it))},ge.onDeselect=function(dt){var en=Object(K.a)(ge),tn=en.props;if(tn.selectable){var it=ge.store.getState().selectedKeys.concat(),vt=dt.key,Ot=it.indexOf(vt);Ot!==-1&&it.splice(Ot,1),"selectedKeys"in tn||ge.store.setState({selectedKeys:it}),tn.onDeselect(Object(ne.a)(Object(ne.a)({},dt),{},{selectedKeys:it}))}},ge.onMouseEnter=function(dt){ge.restoreModeVerticalFromInline();var en=ge.props.onMouseEnter;en&&en(dt)},ge.onTransitionEnd=function(dt){var en=dt.propertyName==="width"&&dt.target===dt.currentTarget,tn=dt.target.className,it=Object.prototype.toString.call(tn)==="[object SVGAnimatedString]"?tn.animVal:tn,vt=dt.propertyName==="font-size"&&it.indexOf("anticon")>=0;(en||vt)&&ge.restoreModeVerticalFromInline()},ge.setInnerMenu=function(dt){ge.innerMenu=dt},ge.isRootMenu=!0;var Ne=ct.defaultSelectedKeys,Ct=ct.defaultOpenKeys;return"selectedKeys"in ct&&(Ne=ct.selectedKeys||[]),"openKeys"in ct&&(Ct=ct.openKeys||[]),ge.store=Object(C.c)({selectedKeys:Ne,openKeys:Ct,activeKey:{"0-menu-":pt(ct,ct.activeKey)}}),ge.state={switchingModeFromInline:!1},ge}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ge){this.updateOpentKeysWhenSwitchMode(ge),this.updateMiniStore();var Ne=this.props,Ct=Ne.siderCollapsed,dt=Ne.inlineCollapsed,en=Ne.onOpenChange;(!ge.inlineCollapsed&&dt||!ge.siderCollapsed&&Ct)&&en([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ge){var Ne=this.props,Ct=this.store,dt=this.inlineOpenKeys,en=Ct.getState(),tn={};ge.mode==="inline"&&Ne.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ne||((Ne.inlineCollapsed&&!ge.inlineCollapsed||Ne.siderCollapsed&&!ge.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=en.openKeys.concat(),tn.openKeys=[]),(!Ne.inlineCollapsed&&ge.inlineCollapsed||!Ne.siderCollapsed&&ge.siderCollapsed)&&(tn.openKeys=dt,this.inlineOpenKeys=[])),Object.keys(tn).length&&Ct.setState(tn)}},{key:"updateMenuDisplay",value:function(){var ge=this.props.collapsedWidth,Ne=this.store,Ct=this.prevOpenKeys,dt=this.getInlineCollapsed()&&(ge===0||ge==="0"||ge==="0px");dt?(this.prevOpenKeys=Ne.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ct&&(this.store.setState({openKeys:Ct}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ge=this.props.mode,Ne=this.state.switchingModeFromInline,Ct=this.getInlineCollapsed();return Ne&&Ct?"inline":Ct?"vertical":ge}},{key:"getInlineCollapsed",value:function(){var ge=this.props,Ne=ge.inlineCollapsed,Ct=ge.siderCollapsed;return Ct!==void 0?Ct:Ne}},{key:"restoreModeVerticalFromInline",value:function(){var ge=this.state.switchingModeFromInline;ge&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ge=Object(ne.a)({},Object(P.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ne=this.getRealMenuMode();return ge.className+=" ".concat(ge.prefixCls,"-root"),ge.direction==="rtl"&&(ge.className+=" ".concat(ge.prefixCls,"-rtl")),ge=Object(ne.a)(Object(ne.a)({},ge),{},{mode:Ne,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Oe(this.props,this.state,Ne)}),delete ge.openAnimation,delete ge.openTransitionName,B.createElement(C.a,{store:this.store},B.createElement(Fe,Object.assign({},ge,{ref:this.setInnerMenu}),this.props.children))}}]),xt}(B.Component);ce.defaultProps={selectable:!0,onClick:W,onSelect:W,onOpenChange:W,onDeselect:W,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:B.createElement("span",null,"\xB7\xB7\xB7")};var he=ce,Ce=function(Ht){Object(O.a)(xt,Ht);var bt=Object(w.a)(xt);function xt(){var ct;return Object(z.a)(this,xt),ct=bt.apply(this,arguments),ct.onKeyDown=function(ge){var Ne=ge.keyCode;return Ne===v.a.ENTER?(ct.onClick(ge),!0):void 0},ct.onMouseLeave=function(ge){var Ne=ct.props,Ct=Ne.eventKey,dt=Ne.onItemHover,en=Ne.onMouseLeave;dt({key:Ct,hover:!1}),en({key:Ct,domEvent:ge})},ct.onMouseEnter=function(ge){var Ne=ct.props,Ct=Ne.eventKey,dt=Ne.onItemHover,en=Ne.onMouseEnter;dt({key:Ct,hover:!0}),en({key:Ct,domEvent:ge})},ct.onClick=function(ge){var Ne=ct.props,Ct=Ne.eventKey,dt=Ne.multiple,en=Ne.onClick,tn=Ne.onSelect,it=Ne.onDeselect,vt=Ne.isSelected,Ot={key:Ct,keyPath:[Ct],item:Object(K.a)(ct),domEvent:ge};en(Ot),dt?vt?it(Ot):tn(Ot):vt||tn(Ot)},ct.saveNode=function(ge){ct.node=ge},ct}return Object(N.a)(xt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ge=this.props;ge.onDestroy&&ge.onDestroy(ge.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ge,Ne=Object(ne.a)({},this.props),Ct=o()(this.getPrefixCls(),Ne.className,(ge={},Object(d.a)(ge,this.getActiveClassName(),!Ne.disabled&&Ne.active),Object(d.a)(ge,this.getSelectedClassName(),Ne.isSelected),Object(d.a)(ge,this.getDisabledClassName(),Ne.disabled),ge)),dt=Object(ne.a)(Object(ne.a)({},Ne.attribute),{},{title:typeof Ne.title=="string"?Ne.title:void 0,className:Ct,role:Ne.role||"menuitem","aria-disabled":Ne.disabled});Ne.role==="option"?dt=Object(ne.a)(Object(ne.a)({},dt),{},{role:"option","aria-selected":Ne.isSelected}):(Ne.role===null||Ne.role==="none")&&(dt.role="none");var en={onClick:Ne.disabled?null:this.onClick,onMouseLeave:Ne.disabled?null:this.onMouseLeave,onMouseEnter:Ne.disabled?null:this.onMouseEnter},tn=Object(ne.a)({},Ne.style);Ne.mode==="inline"&&(Ne.direction==="rtl"?tn.paddingRight=Ne.inlineIndent*Ne.level:tn.paddingLeft=Ne.inlineIndent*Ne.level),Ze.forEach(function(vt){return delete Ne[vt]}),delete Ne.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=B.createElement(this.props.itemIcon,this.props)),B.createElement("li",Object.assign({},Object(P.default)(Ne,["onClick","onMouseEnter","onMouseLeave","onSelect"]),dt,en,{style:tn,ref:this.saveNode}),Ne.children,it)}}]),xt}(B.Component);Ce.isMenuItem=!0,Ce.defaultProps={onSelect:W,onMouseEnter:W,onMouseLeave:W,manualRef:W};var Le=Object(C.b)(function(Ht,bt){var xt=Ht.activeKey,ct=Ht.selectedKeys,ge=bt.eventKey,Ne=bt.subMenuKey;return{active:xt[Ne]===ge,isSelected:ct.indexOf(ge)!==-1}})(Ce),at=Le,et=function(Ht){Object(O.a)(xt,Ht);var bt=Object(w.a)(xt);function xt(){var ct;return Object(z.a)(this,xt),ct=bt.apply(this,arguments),ct.renderInnerMenuItem=function(ge){var Ne=ct.props,Ct=Ne.renderMenuItem,dt=Ne.index;return Ct(ge,dt,ct.props.subMenuKey)},ct}return Object(N.a)(xt,[{key:"render",value:function(){var ge=Object(_.a)({},this.props),Ne=ge.className,Ct=Ne===void 0?"":Ne,dt=ge.rootPrefixCls,en="".concat(dt,"-item-group-title"),tn="".concat(dt,"-item-group-list"),it=ge.title,vt=ge.children;return Ze.forEach(function(Ot){return delete ge[Ot]}),delete ge.onClick,delete ge.direction,B.createElement("li",Object.assign({},ge,{className:"".concat(Ct," ").concat(dt,"-item-group")}),B.createElement("div",{className:en,title:typeof it=="string"?it:void 0},it),B.createElement("ul",{className:tn},B.Children.map(vt,this.renderInnerMenuItem)))}}]),xt}(B.Component);et.isMenuItemGroup=!0,et.defaultProps={disabled:!0};var Rt=et,qt=function(bt){var xt=bt.className,ct=bt.rootPrefixCls,ge=bt.style;return B.createElement("li",{className:"".concat(xt," ").concat(ct,"-item-divider"),style:ge})};qt.defaultProps={disabled:!0,className:"",style:{}};var pn=qt,an=Ee.e=he},"24hK":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return N});var ne=k("JYp7"),z=function(){function K(O){this.element=O,this.next=K.Undefined,this.prev=K.Undefined}return K.Undefined=new K(void 0),K}(),N=function(){function K(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}return Object.defineProperty(K.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),K.prototype.isEmpty=function(){return this._first===z.Undefined},K.prototype.clear=function(){this._first=z.Undefined,this._last=z.Undefined,this._size=0},K.prototype.unshift=function(O){return this._insert(O,!1)},K.prototype.push=function(O){return this._insert(O,!0)},K.prototype._insert=function(O,w){var B=this,C=new z(O);if(this._first===z.Undefined)this._first=C,this._last=C;else if(w){var P=this._last;this._last=C,C.prev=P,P.next=C}else{var _=this._first;this._first=C,C.next=_,_.prev=C}this._size+=1;var d=!1;return function(){d||(d=!0,B._remove(C))}},K.prototype.shift=function(){if(this._first===z.Undefined)return;var O=this._first.element;return this._remove(this._first),O},K.prototype.pop=function(){if(this._last===z.Undefined)return;var O=this._last.element;return this._remove(this._last),O},K.prototype._remove=function(O){if(O.prev!==z.Undefined&&O.next!==z.Undefined){var w=O.prev;w.next=O.next,O.next.prev=w}else O.prev===z.Undefined&&O.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):O.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):O.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1},K.prototype.iterator=function(){var O,w=this._first;return{next:function(){return w===z.Undefined?ne.c:(O?O.value=w.element:O={done:!1,value:w.element},w=w.next,O)}}},K.prototype.toArray=function(){for(var O=[],w=this._first;w!==z.Undefined;w=w.next)O.push(w.element);return O},K}()},"49sm":function(Gt,Ee){var k={}.toString;Gt.exports=Array.isArray||function(ne){return k.call(ne)=="[object Array]"}},"4wi7":function(Gt,Ee,k){"use strict";var ne=k("14J3"),z=k("BMrR"),N=k("sRBo"),K=k("kaz8"),O=k("5NDa"),w=k("5rEg"),B=k("9og8"),C=k("tJVT"),P=k("WmNS"),_=k.n(P),d=k("q1tI"),v=k.n(d),b=k("oOBs"),f=k.n(b),n=k("xOL1"),p=k.n(n),o=k("BdwD"),r=function(l){var x=l.data,E=l.value,y=E===void 0?[]:E,L=l.handleChangePage,R=l.setSelectedRowKeys,g=l.selectedRowKeys,m=l.onChange,c=m===void 0?function(){}:m,u=Object(d.useState)([]),D=Object(C.a)(u,2),T=D[0],A=D[1],j=Object(d.useState)([]),U=Object(C.a)(j,2),H=U[0],V=U[1],I=Object(d.useState)([]),W=Object(C.a)(I,2),Q=W[0],ie=W[1],ae=Object(d.useState)(1),xe=Object(C.a)(ae,2),Ze=xe[0],Me=xe[1],Be=Object(d.useState)(),qe=Object(C.a)(Be,2),Ve=qe[0],De=qe[1];return Object(d.useEffect)(function(){A(x),V([]),ie([])},[x]),Object(d.useEffect)(function(){R&&(V(g),ie(g))},[g]),v.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},v.a.createElement("div",{className:f.a.leftdiv},v.a.createElement(w.a.Search,{size:"large",onChange:function(){var pe=Object(B.a)(_.a.mark(function se(we){return _.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:A(x.filter(function(me){var X;return me==null||((X=me.name)===null||X===void 0)?void 0:X.includes(we.target.value)}));case 1:case"end":return $e.stop()}},se)}));return function(se){return pe.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),T.length===0&&v.a.createElement(o.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),v.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},v.a.createElement(K.a.Group,{value:H.map(function(pe){return"".concat(pe.id)}),onChange:function(se){R(T.filter(function(we){return se.includes("".concat(we.id))}))},style:{marginTop:"10px"}},T.map(function(pe,se){return v.a.createElement(z.a,{key:pe.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},v.a.createElement(K.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:pe.is_published,value:"".concat(pe.id)},v.a.createElement("div",{className:f.a.listClass},v.a.createElement("span",{className:f.a.spantitle,style:{width:pe.is_published?"108px":"170px"}},pe.name),pe.is_published&&v.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),v.a.createElement("div",{className:f.a.rightdiv},v.a.createElement(w.a.Search,{onChange:function(se){ie(H.filter(function(we){return we.name.includes(se.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Q.length===0&&v.a.createElement(o.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Q.length>0&&v.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},v.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Q.map(function(pe,se){return v.a.createElement(z.a,{justify:"space-between",style:{marginTop:"10px"},key:pe.id},v.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},pe.name),v.a.createElement("img",{src:p.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){R(H.filter(function(ve){return"".concat(ve.id)!="".concat(pe.id)}))}}))})))))};Ee.a=r},"500L":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return E});var ne=k("+L6B"),z=k("2/Rp"),N=k("2qtc"),K=k("kLXV"),O=k("9og8"),w=k("k1fw"),B=k("miYZ"),C=k("tsqr"),P=k("oBTY"),_=k("tJVT"),d=k("DZo9"),v=k("8z0m"),b=k("WmNS"),f=k.n(b),n=k("q1tI"),p=k.n(n),o=k("m3rI"),r=k("wzkS"),s=k("y5JW"),l=k("LtfV"),x=v.a.Dragger;function E(y){var L=[];return y&&y.length>0&&(L=y.map(function(R){return{uid:R.id,id:R.id,name:R.title+s.c+R.filesize,url:R.url,filesize:R.filesize,status:"done",response:{id:R.id}}})),L}Ee.b=function(y){var L=y.value,R=y.onChange,g=y.action,m=y.className,c=y.maxSize,u=c===void 0?150:c,D=y.title,T=D===void 0?"\u4E0A\u4F20\u9644\u4EF6":D,A=y.showRemoveModal,j=A===void 0?!1:A,U=y.accept,H=U===void 0?"":U,V=y.additionalText,I=y.isDragger,W=y.number,Q=W===void 0?1e3:W,ie=y.aloneClear,ae=ie===void 0?!1:ie,xe=y.restrict,Ze=xe===void 0?!0:xe,Me=Object(n.useState)(!1),Be=Object(_.a)(Me,2),qe=Be[0],Ve=Be[1],De=Object(n.useState)(L||[]),pe=Object(_.a)(De,2),se=pe[0],we=pe[1];Object(n.useEffect)(function(){L&&(we(Object(P.a)(L)),Q===(L==null?void 0:L.length)&&Ve(!0))},[L]);var ve=function(){setTimeout(function(){se.pop(),we(Object(P.a)(se))},500)},$e={multiple:!0,disabled:qe,accept:H,withCredentials:!0,fileList:se,beforeUpload:function(G,Y){var ue=G.size/1024/1024;return se.concat(Y).length>Q?(se.pop(),we(Object(P.a)(se)),C.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(Q,"\u4E2A\u6587\u4EF6")),ae?Promise.reject():(ve(),!1)):ue=Q?Ve(!0):Ve(!1),we(Object(P.a)(Y)),Y=Y.map(function(ue){var be;if(ue!=null&&(be=ue.response)!==null&&be!==void 0&&be.id){var We;ue.url="/api/attachments/".concat(ue==null||((We=ue.response)===null||We===void 0)?void 0:We.id)}return ue.name.indexOf(s.c)===-1&&(ue.name="".concat(ue.name).concat(s.c).concat(Object(s.a)(ue.size))),Object(w.a)({},ue)}),console.log("info:",G),R(Y)},onRemove:function(){var X=Object(O.a)(f.a.mark(function Y(ue){var be;return f.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(be=function(){var Tt=Object(O.a)(f.a.mark(function Ut(){var It,Nt;return f.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(It=ue.response?ue.response.id:ue.id,!It){fn.next=8;break}return fn.next=4,Object(r.d)(ue.response?ue.response.id:ue.uid);case 4:return Nt=fn.sent,fn.abrupt("return",Nt);case 8:return fn.abrupt("return",!0);case 9:case"end":return fn.stop()}},Ut)}));return function(){return Tt.apply(this,arguments)}}(),!j){ze.next=5;break}return ze.abrupt("return",new Promise(function(Tt,Ut){K.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:p.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var It=Object(O.a)(f.a.mark(function Zt(){var fn;return f.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,be();case 2:fn=He.sent,C.b.success("\u5220\u9664\u6210\u529F"),Tt(!0);case 5:case"end":return He.stop()}},Zt)}));function Nt(){return It.apply(this,arguments)}return Nt}(),onCancel:function(){return Tt(!1)}})}));case 5:return ze.next=7,be();case 7:return ze.abrupt("return",ze.sent);case 8:case"end":return ze.stop()}},Y)}));function G(Y){return X.apply(this,arguments)}return G}()};function me(X){X.preventDefault(),X.stopPropagation()}return p.a.createElement("div",{className:"multi-upload ".concat(m||"")},I&&p.a.createElement(x,$e,p.a.createElement("p",{className:"ant-upload-drag-icon"},p.a.createElement(l.a,null)),p.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",p.a.createElement("br",null),p.a.createElement("span",{style:{display:Ze?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",u,"MB) ")),V),!I&&p.a.createElement(v.a,$e,p.a.createElement(z.a,{disabled:qe},T),p.a.createElement("span",{onClick:me,style:{marginLeft:10,color:"#FA6400",display:Ze?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",u,"MB) ")))}},"55Ip":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return s}),k.d(Ee,"b",function(){return R});var ne=k("Ty5D"),z=k("dI71"),N=k("q1tI"),K=k.n(N),O=k("YS25"),w=k("17x9"),B=k.n(w),C=k("wx14"),P=k("zLVn"),_=k("9R94"),d=function(m){Object(z.a)(c,m);function c(){for(var D,T=arguments.length,A=new Array(T),j=0;j=0||T.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;m.setState({goInputText:""}),U(m.getValidValue())},m.go=function(T){var A=m.state.goInputText;if(A==="")return;(T.keyCode===f.ENTER||T.type==="click")&&(m.setState({goInputText:""}),m.props.quickGo(m.getValidValue()))},m}return Object(O.a)(g,[{key:"getValidValue",value:function(){var c=this.state,u=c.goInputText,D=c.current;return!u||isNaN(u)?D:Number(u)}},{key:"getPageSizeOptions",value:function(){var c=this.props,u=c.pageSize,D=c.pageSizeOptions;return D.some(function(T){return T.toString()===u.toString()})?D:D.concat([u.toString()]).sort(function(T,A){var j=isNaN(Number(T))?0:Number(T),U=isNaN(Number(A))?0:Number(A);return j-U})}},{key:"render",value:function(){var c=this,u=this.props,D=u.pageSize,T=u.locale,A=u.rootPrefixCls,j=u.changeSize,U=u.quickGo,H=u.goButton,V=u.selectComponentClass,I=u.buildOptionText,W=u.selectPrefixCls,Q=u.disabled,ie=this.state.goInputText,ae="".concat(A,"-options"),xe=V,Ze=null,Me=null,Be=null;if(!j&&!U)return null;var qe=this.getPageSizeOptions();if(j&&xe){var Ve=qe.map(function(De,pe){return P.a.createElement(xe.Option,{key:pe,value:De.toString()},(I||c.buildOptionText)(De))});Ze=P.a.createElement(xe,{disabled:Q,prefixCls:W,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||qe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(pe){return pe.parentNode}},Ve)}return U&&(H&&(Be=typeof H=="boolean"?P.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Q,className:"".concat(ae,"-quick-jumper-button")},T.jump_to_confirm):P.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),Me=P.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},T.jump_to,P.a.createElement("input",{disabled:Q,type:"text",value:ie,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,Be)),P.a.createElement("li",{className:"".concat(ae)},Ze,Me)}}]),g}(P.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=n,o=k("N2Kk");function r(){}function s(L){return typeof L=="number"&&isFinite(L)&&Math.floor(L)===L}function l(L,R,g){return g}function x(L,R,g){var m=typeof L=="undefined"?R.pageSize:L;return Math.floor((g.total-1)/m)+1}var E=function(L){Object(w.a)(g,L);var R=Object(B.a)(g);function g(m){var c;Object(K.a)(this,g),c=R.call(this,m),c.getJumpPrevPage=function(){return Math.max(1,c.state.current-(c.props.showLessItems?3:5))},c.getJumpNextPage=function(){return Math.min(x(void 0,c.state,c.props),c.state.current+(c.props.showLessItems?3:5))},c.getItemIcon=function(j,U){var H=c.props.prefixCls,V=j||P.a.createElement("button",{type:"button","aria-label":U,className:"".concat(H,"-item-link")});return typeof j=="function"&&(V=P.a.createElement(j,Object(N.a)({},c.props))),V},c.savePaginationNode=function(j){c.paginationNode=j},c.isValid=function(j){return s(j)&&j!==c.state.current},c.shouldDisplayQuickJumper=function(){var j=c.props,U=j.showQuickJumper,H=j.pageSize,V=j.total;return V<=H?!1:U},c.handleKeyDown=function(j){(j.keyCode===f.ARROW_UP||j.keyCode===f.ARROW_DOWN)&&j.preventDefault()},c.handleKeyUp=function(j){var U=c.getValidValue(j),H=c.state.currentInputValue;U!==H&&c.setState({currentInputValue:U}),j.keyCode===f.ENTER?c.handleChange(U):j.keyCode===f.ARROW_UP?c.handleChange(U-1):j.keyCode===f.ARROW_DOWN&&c.handleChange(U+1)},c.changePageSize=function(j){var U=c.state.current,H=x(j,c.state,c.props);U=U>H?H:U,H===0&&(U=c.state.current),typeof j=="number"&&("pageSize"in c.props||c.setState({pageSize:j}),"current"in c.props||c.setState({current:U,currentInputValue:U})),c.props.onShowSizeChange(U,j),"onChange"in c.props&&c.props.onChange&&c.props.onChange(U,j)},c.handleChange=function(j){var U=c.props.disabled,H=j;if(c.isValid(H)&&!U){var V=x(void 0,c.state,c.props);H>V?H=V:H<1&&(H=1),"current"in c.props||c.setState({current:H,currentInputValue:H});var I=c.state.pageSize;return c.props.onChange(H,I),H}return c.state.current},c.prev=function(){c.hasPrev()&&c.handleChange(c.state.current-1)},c.next=function(){c.hasNext()&&c.handleChange(c.state.current+1)},c.jumpPrev=function(){c.handleChange(c.getJumpPrevPage())},c.jumpNext=function(){c.handleChange(c.getJumpNextPage())},c.hasPrev=function(){return c.state.current>1},c.hasNext=function(){return c.state.current2?H-2:0),I=2;I=D?A=D:A=Number(u),A}},{key:"getShowSizeChanger",value:function(){var c=this.props,u=c.showSizeChanger,D=c.total,T=c.totalBoundaryShowSizeChanger;return typeof u!="undefined"?u:D>T}},{key:"renderPrev",value:function(c){var u=this.props,D=u.prevIcon,T=u.itemRender,A=T(c,"prev",this.getItemIcon(D,"prev page")),j=!this.hasPrev();return Object(C.isValidElement)(A)?Object(C.cloneElement)(A,{disabled:j}):A}},{key:"renderNext",value:function(c){var u=this.props,D=u.nextIcon,T=u.itemRender,A=T(c,"next",this.getItemIcon(D,"next page")),j=!this.hasNext();return Object(C.isValidElement)(A)?Object(C.cloneElement)(A,{disabled:j}):A}},{key:"render",value:function(){var c=this,u=this.props,D=u.prefixCls,T=u.className,A=u.style,j=u.disabled,U=u.hideOnSinglePage,H=u.total,V=u.locale,I=u.showQuickJumper,W=u.showLessItems,Q=u.showTitle,ie=u.showTotal,ae=u.simple,xe=u.itemRender,Ze=u.showPrevNextJumpers,Me=u.jumpPrevIcon,Be=u.jumpNextIcon,qe=u.selectComponentClass,Ve=u.selectPrefixCls,De=u.pageSizeOptions,pe=this.state,se=pe.current,we=pe.pageSize,ve=pe.currentInputValue;if(U===!0&&H<=we)return null;var $e=x(void 0,this.state,this.props),me=[],X=null,G=null,Y=null,ue=null,be=null,We=I&&I.goButton,ze=W?1:2,Tt=se-1>0?se-1:0,Ut=se+1<$e?se+1:$e,It=Object.keys(this.props).reduce(function(ce,he){return(he.substr(0,5)==="data-"||he.substr(0,5)==="aria-"||he==="role")&&(ce[he]=c.props[he]),ce},{});if(ae)return We&&(typeof We=="boolean"?be=P.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},V.jump_to_confirm):be=P.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},We),be=P.a.createElement("li",{title:Q?"".concat(V.jump_to).concat(se,"/").concat($e):null,className:"".concat(D,"-simple-pager")},be)),P.a.createElement("ul",Object(ne.a)({className:d()(D,"".concat(D,"-simple"),Object(z.a)({},"".concat(D,"-disabled"),j),T),style:A,ref:this.savePaginationNode},It),P.a.createElement("li",{title:Q?V.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(D,"-prev"),Object(z.a)({},"".concat(D,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Tt)),P.a.createElement("li",{title:Q?"".concat(se,"/").concat($e):null,className:"".concat(D,"-simple-pager")},P.a.createElement("input",{type:"text",value:ve,disabled:j,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),P.a.createElement("span",{className:"".concat(D,"-slash")},"/"),$e),P.a.createElement("li",{title:Q?V.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(D,"-next"),Object(z.a)({},"".concat(D,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ut)),be);if($e<=3+ze*2){var Nt={locale:V,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Q,itemRender:xe};$e||me.push(P.a.createElement(b,Object(ne.a)({},Nt,{key:"noPager",page:$e,className:"".concat(D,"-disabled")})));for(var Zt=1;Zt<=$e;Zt+=1){var fn=se===Zt;me.push(P.a.createElement(b,Object(ne.a)({},Nt,{key:Zt,page:Zt,active:fn})))}}else{var nt=W?V.prev_3:V.prev_5,He=W?V.next_3:V.next_5;Ze&&(X=P.a.createElement("li",{title:Q?nt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(D,"-jump-prev"),Object(z.a)({},"".concat(D,"-jump-prev-custom-icon"),!!Me))},xe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Me,"prev page"))),G=P.a.createElement("li",{title:Q?He:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(D,"-jump-next"),Object(z.a)({},"".concat(D,"-jump-next-custom-icon"),!!Be))},xe(this.getJumpNextPage(),"jump-next",this.getItemIcon(Be,"next page")))),ue=P.a.createElement(b,{locale:V,last:!0,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$e,page:$e,active:!1,showTitle:Q,itemRender:xe}),Y=P.a.createElement(b,{locale:V,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Q,itemRender:xe});var pt=Math.max(1,se-ze),Mt=Math.min(se+ze,$e);se-1<=ze&&(Mt=1+ze*2),$e-se<=ze&&(pt=$e-ze*2);for(var st=pt;st<=Mt;st+=1){var Et=se===st;me.push(P.a.createElement(b,{locale:V,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:st,page:st,active:Et,showTitle:Q,itemRender:xe}))}se-1>=ze*2&&se!==1+2&&(me[0]=Object(C.cloneElement)(me[0],{className:"".concat(D,"-item-after-jump-prev")}),me.unshift(X)),$e-se>=ze*2&&se!==$e-2&&(me[me.length-1]=Object(C.cloneElement)(me[me.length-1],{className:"".concat(D,"-item-before-jump-next")}),me.push(G)),pt!==1&&me.unshift(Y),Mt!==$e&&me.push(ue)}var Fe=null;ie&&(Fe=P.a.createElement("li",{className:"".concat(D,"-total-text")},ie(H,[H===0?0:(se-1)*we+1,se*we>H?H:se*we])));var Se=!this.hasPrev()||!$e,Oe=!this.hasNext()||!$e;return P.a.createElement("ul",Object(ne.a)({className:d()(D,T,Object(z.a)({},"".concat(D,"-disabled"),j)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},It),Fe,P.a.createElement("li",{title:Q?V.prev_page:null,onClick:this.prev,tabIndex:Se?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(D,"-prev"),Object(z.a)({},"".concat(D,"-disabled"),Se)),"aria-disabled":Se},this.renderPrev(Tt)),me,P.a.createElement("li",{title:Q?V.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(D,"-next"),Object(z.a)({},"".concat(D,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(Ut)),P.a.createElement(p,{disabled:j,locale:V,rootPrefixCls:D,selectComponentClass:qe,selectPrefixCls:Ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:we,pageSizeOptions:De,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:We}))}}],[{key:"getDerivedStateFromProps",value:function(c,u){var D={};if("current"in c&&(D.current=c.current,c.current!==u.current&&(D.currentInputValue=D.current)),"pageSize"in c&&c.pageSize!==u.pageSize){var T=u.current,A=x(c.pageSize,u,c);T=T>A?A:T,"current"in c||(D.current=T,D.currentInputValue=T),D.pageSize=c.pageSize}return D}}]),g}(P.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:o.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var y=E},"632R":function(Gt,Ee,k){Gt.exports={flex_box_center:"flex_box_center___3r4d7",flex_space_between:"flex_space_between___v1RZU",flex_box_vertical_center:"flex_box_vertical_center___1hRcP",flex_box_center_end:"flex_box_center_end___3kWTo",flex_box_column:"flex_box_column___TGF_8",title:"title___jGN8C",export:"export___20Rrn",bg:"bg___5TRgA",tabs:"tabs___3dNSC",workListTabWrap:"workListTabWrap___2wgNK",workListTabButton:"workListTabButton___34vXT"}},"6RRn":function(Gt,Ee,k){"use strict";var ne=k("wCXF"),z=k("n6Qo");k.d(Ee,"b",function(){return z.a});var N=k("IBYe"),K=k("6eGT"),O=k("hW8S");k.d(Ee,"a",function(){return O.a}),Ee.c=ne.b},"6eGT":function(Gt,Ee,k){"use strict";function ne(z){return null}Ee.a=ne},"6vEo":function(Gt,Ee,k){"use strict";var ne=k("2qtc"),z=k("kLXV"),N=k("cWXX"),K=k("/ezw"),O=k("14J3"),w=k("BMrR"),B=k("jCWc"),C=k("kPKH"),P=k("7Kak"),_=k("9yH6"),d=k("5NDa"),v=k("5rEg"),b=k("oBTY"),f=k("k1fw"),n=k("9og8"),p=k("y8nQ"),o=k("Vl3Y"),r=k("tJVT"),s=k("WmNS"),l=k.n(s),x=k("q1tI"),E=k.n(x),y=k("RotF"),L=k.n(y),R=k("XYT7"),g=k("Ty5D"),m=k("9kvl"),c=function(D){var T,A,j,U=D.classroomList,H=D.loading,V=D.user,I=D.dispatch,W=Object(g.i)(),Q=o.a.useForm(),ie=Object(r.a)(Q,1),ae=ie[0],xe=Object(x.useState)(!0),Ze=Object(r.a)(xe,2),Me=Ze[0],Be=Ze[1],qe=Object(x.useState)([]),Ve=Object(r.a)(qe,2),De=Ve[0],pe=Ve[1],se=Object(x.useState)({page:1,limit:20,keyword:""}),we=Object(r.a)(se,2),ve=we[0],$e=we[1],me=function(){var X=Object(n.a)(l.a.mark(function G(){var Y,ue;return l.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,I({type:"shixunHomeworks/getProjectList",payload:Object(f.a)(Object(f.a)({},W),ve)});case 2:ue=We.sent,ue.projects&&pe([].concat(Object(b.a)(De),Object(b.a)(ue.projects))),((Y=ue.projects)===null||Y===void 0?void 0:Y.length)<20&&Be(!1);case 5:case"end":return We.stop()}},G)}));return function(){return X.apply(this,arguments)}}();return Object(x.useEffect)(function(){U.actionTabs.key==="\u5173\u8054\u9879\u76EE"&&(me(),De=[],ve.page=1,ve.keyword="")},[U.actionTabs.key]),E.a.createElement(z.a,{centered:!0,title:"\u5173\u8054\u9879\u76EE",visible:U.actionTabs.key==="\u5173\u8054\u9879\u76EE",bodyStyle:{minHeight:100},onOk:Object(n.a)(l.a.mark(function X(){var G,Y,ue,be,We;return l.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,ae.validateFields();case 2:return G=Object(f.a)({},ae.getFieldValue()),Y=U.actionTabs,ue=Y.selectArrs,be=Y.cb,Tt.next=6,Object(R.O)(Object(f.a)(Object(f.a)({},G),{},{homeworkId:ue.homework_id}));case 6:We=Tt.sent,We.status===0&&(be?be():I({type:"classroomList/getClassroomCommonHomeworksList",payload:Object(f.a)({},U.actionTabs.params)}),I({type:"classroomList/setActionTabs",payload:{}}));case 8:case"end":return Tt.stop()}},X)})),onCancel:function(){I({type:"classroomList/setActionTabs",payload:{}})}},E.a.createElement(K.a,{loading:H["shixunHomeworks/getProjectList"],active:!0},De==""?E.a.createElement("aside",null,E.a.createElement("div",{className:"tc font14 pt20"},"\u60A8\u5F53\u524D\u5C1A\u672A\u7BA1\u7406\u4EFB\u4F55\u9879\u76EE\uFF0C\u8BF7\u5148",E.a.createElement("a",{href:"".concat((T=V.navigationInfo)===null||T===void 0||((A=T.top)===null||A===void 0)?void 0:A.old_url,"/projects/deposit/new"),target:"_blank"},"\u521B\u5EFA\u9879\u76EE"),"\u518D\u5173\u8054")):E.a.createElement("aside",null,E.a.createElement("div",{className:" mb20"},E.a.createElement(v.a.Search,{onSearch:function(G){G===""?delete ve.keyword:ve.keyword=G,De=[],Be(!0),me()},placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,size:"large"})),E.a.createElement(o.a,{form:ae,initialValues:{}},E.a.createElement(o.a.Item,{name:"project_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE"}]},E.a.createElement(_.a.Group,null,E.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(G){ve.page++,me()},hasMore:Me,useWindow:!1},(j=De)===null||j===void 0?void 0:j.map(function(X,G){return E.a.createElement(w.a,{key:G},E.a.createElement(C.a,null,E.a.createElement(_.a,{value:X.id},X.name)))}))))))))};Ee.a=Object(m.a)(function(u){var D=u.classroomList,T=u.user,A=u.loading;return{classroomList:D,user:T,loading:A.effects}})(c)},"746U":function(Gt,Ee,k){"use strict";k.d(Ee,"d",function(){return z}),k.d(Ee,"j",function(){return N}),k.d(Ee,"i",function(){return K}),k.d(Ee,"h",function(){return O}),k.d(Ee,"e",function(){return w}),k.d(Ee,"k",function(){return B}),k.d(Ee,"l",function(){return C}),k.d(Ee,"a",function(){return P}),k.d(Ee,"f",function(){return d}),k.d(Ee,"g",function(){return v}),k.d(Ee,"m",function(){return b}),k.d(Ee,"c",function(){return p}),k.d(Ee,"b",function(){return o}),k.d(Ee,"n",function(){return r}),k.d(Ee,"o",function(){return s});var ne={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function z(l){return Array.isArray?Array.isArray(l):!!(l&&typeof l.length===ne.number&&l.constructor===Array)}function N(l){return typeof l===ne.string||l instanceof String}function K(l){return typeof l===ne.object&&l!==null&&!Array.isArray(l)&&!(l instanceof RegExp)&&!(l instanceof Date)}function O(l){return(typeof l===ne.number||l instanceof Number)&&!isNaN(l)}function w(l){return l===!0||l===!1}function B(l){return typeof l===ne.undefined}function C(l){return B(l)||l===null}function P(l,x){if(!l)throw new Error(x?"Unexpected type, expected '"+x+"'":"Unexpected type")}var _=Object.prototype.hasOwnProperty;function d(l){if(!K(l))return!1;for(var x in l)if(_.call(l,x))return!1;return!0}function v(l){return typeof l===ne.function}function b(l,x){for(var E=Math.min(l.length,x.length),y=0;y1&&arguments[1]!==void 0?arguments[1]:0,n=(B[b[f+0]]+B[b[f+1]]+B[b[f+2]]+B[b[f+3]]+"-"+B[b[f+4]]+B[b[f+5]]+"-"+B[b[f+6]]+B[b[f+7]]+"-"+B[b[f+8]]+B[b[f+9]]+"-"+B[b[f+10]]+B[b[f+11]]+B[b[f+12]]+B[b[f+13]]+B[b[f+14]]+B[b[f+15]]).toLowerCase();if(!w(n))throw TypeError("Stringified UUID is invalid");return n}var _=P;function d(b,f,n){b=b||{};var p=b.random||(b.rng||N)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,f){n=n||0;for(var o=0;o<16;++o)f[n+o]=p[o];return f}return _(p)}var v=Ee.a=d},"7ahc":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return x});var ne=k("k1fw"),z=k("0Owb"),N=k("+L6B"),K=k("2/Rp"),O=k("y8nQ"),w=k("Vl3Y"),B=k("tJVT"),C=k("OaEy"),P=k("2fM7"),_=k("q1tI"),d=k.n(_),v=k("VrN/"),b=k.n(v),f=k("p77/"),n=k.n(f),p=k("c5Ni"),o=k.n(p),r=P.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},l={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ee.b=function(E){var y=E.callback,L=E.onCancel,R=Object(_.useState)("python"),g=Object(B.a)(R,2),m=g[0],c=g[1];function u(T){c(l[T][1])}function D(T){y(T)}return d.a.createElement(w.a,Object(z.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},d.a.createElement(P.a,{onChange:u},Object.keys(l).map(function(T){return d.a.createElement(r,{key:T,value:T},l[T][0])}))),d.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},d.a.createElement(x,{mode:m})),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(K.a,{type:"ghost",onClick:L},"\u53D6\u6D88")))};function x(E){var y=E.value,L=E.onChange,R=E.mode,g=E.options,m=g===void 0?{}:g,c=Object(_.useRef)(),u=Object(_.useState)(),D=Object(B.a)(u,2),T=D[0],A=D[1];return Object(_.useEffect)(function(){if(T){function j(U){var H=U.getValue();L&&L(H)}return T.on("change",j),function(){T.off("change",j)}}},[T,L]),Object(_.useEffect)(function(){T&&T.setOption("mode",R)},[T,R]),Object(_.useEffect)(function(){T&&((y!==T.getValue()||y==="")&&setTimeout(function(){T.setValue(y||" ")},300))},[T,y]),Object(_.useEffect)(function(){if(c.current&&!T){var j=b.a.fromTextArea(c.current,Object(ne.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},m));A(j)}},[c.current,T]),d.a.createElement("div",{className:"my-codemirror-container"},d.a.createElement("textarea",{ref:c}))}},"7ixt":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return N});var ne={adjustX:1,adjustY:1},z=[0,0],N={left:{points:["cr","cl"],overflow:ne,offset:[-4,0],targetOffset:z},right:{points:["cl","cr"],overflow:ne,offset:[4,0],targetOffset:z},top:{points:["bc","tc"],overflow:ne,offset:[0,-4],targetOffset:z},bottom:{points:["tc","bc"],overflow:ne,offset:[0,4],targetOffset:z},topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-4],targetOffset:z},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0],targetOffset:z},topRight:{points:["br","tr"],overflow:ne,offset:[0,-4],targetOffset:z},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0],targetOffset:z},bottomRight:{points:["tr","br"],overflow:ne,offset:[0,4],targetOffset:z},rightBottom:{points:["bl","br"],overflow:ne,offset:[4,0],targetOffset:z},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,4],targetOffset:z},leftBottom:{points:["br","bl"],overflow:ne,offset:[-4,0],targetOffset:z}},K=N},"815F":function(Gt,Ee,k){"use strict";k.d(Ee,"e",function(){return B}),k.d(Ee,"c",function(){return P}),k.d(Ee,"d",function(){return _}),k.d(Ee,"a",function(){return v}),k.d(Ee,"f",function(){return b}),k.d(Ee,"b",function(){return f});var ne=k("KQm4"),z=k("VTBJ"),N=k("Ff2n"),K=k("Zm9Q"),O=k("Kwbf"),w=k("OZM5");function B(n,p){return n!=null?n:p}function C(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function o(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(l){var x=l.key,E=l.children;Object(O.a)(x!=null,"Tree node must have a certain key: [".concat(s).concat(x,"]"));var y=String(x);Object(O.a)(!p.has(y)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(y)),p.set(y,!0),o(E,"".concat(s).concat(y," > "))})}o(n)}function P(n){function p(o){var r=Object(K.a)(o);return r.map(function(s){if(!Object(w.i)(s))return Object(O.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var l=s.key,x=s.props,E=x.children,y=Object(N.a)(x,["children"]),L=Object(z.a)({key:l},y),R=p(E);return R.length&&(L.children=R),L}).filter(function(s){return s})}return p(n)}function _(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=new Set(p===!0?[]:p),r=[];function s(l){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(E,y){var L=Object(w.h)(x?x.pos:"0",y),R=B(E.key,L),g=Object(z.a)(Object(z.a)({},E),{},{parent:x,pos:L,children:null,data:E,isStart:[].concat(Object(ne.a)(x?x.isStart:[]),[y===0]),isEnd:[].concat(Object(ne.a)(x?x.isEnd:[]),[y===l.length-1])});return r.push(g),p===!0||o.has(R)?g.children=s(E.children||[],g):g.children=[],g})}return s(n),r}function d(n,p,o){var r;o?typeof o=="string"?r=function(x){return x[o]}:typeof o=="function"&&(r=function(x){return o(x)}):r=function(x,E){return B(x.key,E)};function s(l,x,E){var y=l?l.children:n,L=l?Object(w.h)(E.pos,x):"0";if(l){var R=r(l,L),g={node:l,index:x,pos:L,key:R,parentPos:E.node?E.pos:null,level:E.level+1};p(g)}y&&y.forEach(function(m,c){s(m,c,{node:l,pos:L,level:E?E.level+1:-1})})}s(null)}function v(n){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=p.initWrapper,r=p.processEntity,s=p.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,x={},E={},y={posEntities:x,keyEntities:E};return o&&(y=o(y)||y),d(n,function(L){var R=L.node,g=L.index,m=L.pos,c=L.key,u=L.parentPos,D=L.level,T={node:R,index:g,key:c,pos:m,level:D},A=B(c,m);x[m]=T,E[A]=T,T.parent=x[u],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),r&&r(T,y)},l),s&&s(y),y}function b(n,p){var o=p.expandedKeys,r=p.selectedKeys,s=p.loadedKeys,l=p.loadingKeys,x=p.checkedKeys,E=p.halfCheckedKeys,y=p.dragOverNodeKey,L=p.dropPosition,R=p.keyEntities,g=R[n],m={eventKey:n,expanded:o.indexOf(n)!==-1,selected:r.indexOf(n)!==-1,loaded:s.indexOf(n)!==-1,loading:l.indexOf(n)!==-1,checked:x.indexOf(n)!==-1,halfChecked:E.indexOf(n)!==-1,pos:String(g?g.pos:""),dragOver:y===n&&L===0,dragOverGapTop:y===n&&L===-1,dragOverGapBottom:y===n&&L===1};return m}function f(n){var p=n.data,o=n.expanded,r=n.selected,s=n.checked,l=n.loaded,x=n.loading,E=n.halfChecked,y=n.dragOver,L=n.dragOverGapTop,R=n.dragOverGapBottom,g=n.pos,m=n.active,c=Object(z.a)(Object(z.a)({},p),{},{expanded:o,selected:r,checked:s,loaded:l,loading:x,halfChecked:E,dragOver:y,dragOverGapTop:L,dragOverGapBottom:R,pos:g,active:m});return"props"in c||Object.defineProperty(c,"props",{get:function(){return Object(O.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),c}},"8B0h":function(Gt,Ee,k){Gt.exports={flex_box_center:"flex_box_center___gEqtP",flex_space_between:"flex_space_between___grlN6",flex_box_vertical_center:"flex_box_vertical_center___1EQOE",flex_box_center_end:"flex_box_center_end___qI1rq",flex_box_column:"flex_box_column___1hiVF",form:"form___24-lt",efficiency:"efficiency___15_hw",configworksContainer:"configworksContainer___1ymgD"}},"8EBN":function(Gt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";ne.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var z=0;z-1&&K.substring(B+1,K.length);if(C)return ne.findModeByExtension(C)},ne.findModeByName=function(K){K=K.toLowerCase();for(var O=0;O0?b.a.createElement("span",null,"(\u5DF2\u62C6\u5206",Be,"\u4E2Azip\u5305)"):"")}),Ze===(ae==null?void 0:ae.length)-1?I(xe,Be>0?Be+1:0):Me>900*1024*1024?(Be++,Me=0,V(Be,function(){Ze++,qe()})):(Ze++,qe());case 3:case"end":return It.stop()}},Tt)})),2600)});case 1:case"end":return me.stop()}},we)})),Ve.apply(this,arguments)},qe=function(){return Ve.apply(this,arguments)},ae=ie||E,A(!0),Ze=0,Me=0,Be=0,xe=B.a.info({width:460,title:b.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u9644\u4EF6,",b.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:b.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",b.a.createElement("span",{className:"c-blue"},Ze+1),"/",ae==null?void 0:ae.length),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}}),qe();case 9:case"end":return pe.stop()}},Q)}));return function(ie){return W.apply(this,arguments)}}(),H=function(Q,ie,ae,xe){var Ze=ie,Me=new window.XMLHttpRequest;return Me.withCredentials=!0,Me.addEventListener("load",function(Be){ae(Be,Me)},!1),Me.addEventListener("error",function(Be){xe&&xe(Be)},!1),Me.responseType="blob",Me.open("GET",Ze),Me.send(null),Me},V=function(Q,ie){j.current.generateAsync({type:"blob"}).then(function(ae){var xe=document.createElement("a");xe.href=window.URL.createObjectURL(ae),xe.download=y+"-".concat(Q)+".zip",document.body.appendChild(xe);var Ze=document.createEvent("MouseEvents");Ze.initEvent("click",!1,!1),xe.dispatchEvent(Ze),document.body.removeChild(xe),j.current=new n.a,ie()})},I=function(Q,ie){j.current.generateAsync({type:"blob"}).then(function(ae){var xe=document.createElement("a");xe.href=window.URL.createObjectURL(ae),ie>0?xe.download=y+"-".concat(ie)+".zip":xe.download=y+".zip",document.body.appendChild(xe);var Ze=document.createEvent("MouseEvents");Ze.initEvent("click",!1,!1),xe.dispatchEvent(Ze),document.body.removeChild(xe),Q.destroy(),A(!1),c(),j.current=new n.a})};return g?b.a.createElement(b.a.Fragment,null):b.a.createElement(z.a,Object(N.a)({},R,{onClick:function(){return U()},loading:T}),"\u4E0B\u8F7D")};Ee.a=Object(v.forwardRef)(o)},"8HAY":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return w}),k.d(Ee,"b",function(){return B});var ne=k("pmY6"),z=k("MI8n"),N=function(){var C=function(P,_){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,v){d.__proto__=v}||function(d,v){for(var b in v)v.hasOwnProperty(b)&&(d[b]=v[b])},C(P,_)};return function(P,_){C(P,_);function d(){this.constructor=P}P.prototype=_===null?Object.create(_):(d.prototype=_.prototype,new d)}}(),K=function(C,P,_,d){function v(b){return b instanceof _?b:new _(function(f){f(b)})}return new(_||(_=Promise))(function(b,f){function n(r){try{o(d.next(r))}catch(s){f(s)}}function p(r){try{o(d.throw(r))}catch(s){f(s)}}function o(r){r.done?b(r.value):v(r.value).then(n,p)}o((d=d.apply(C,P||[])).next())})},O=function(C,P){var _={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},d,v,b,f;return f={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function n(o){return function(r){return p([o,r])}}function p(o){if(d)throw new TypeError("Generator is already executing.");for(;_;)try{if(d=1,v&&(b=o[0]&2?v.return:o[0]?v.throw||((b=v.return)&&b.call(v),0):v.next)&&!(b=b.call(v,o[1])).done)return b;(v=0,b)&&(o=[o[0]&2,b.value]);switch(o[0]){case 0:case 1:b=o;break;case 4:return _.label++,{value:o[1],done:!1};case 5:_.label++,v=o[1],o=[0];continue;case 7:o=_.ops.pop(),_.trys.pop();continue;default:if(!(b=_.trys,b=b.length>0&&b[b.length-1])&&(o[0]===6||o[0]===2)){_=0;continue}if(o[0]===3&&(!b||o[1]>b[0]&&o[1]=$.length?te.slice($.length):te}).join(` +`)}var o=[],r=["
              "],s=new f.a.Renderer,l=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function x(){o.length=0,r=["
                "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function y(J,S,M,$){if(S>=J.length||J[S].level<=M)return S;var te=J[S];$.push("
              • "+te.text+""),S++;var q=[];return S=y(J,S,te.level,q),q.length>0&&($.push("
                  "),q.forEach(function(Xe){$.push(Xe)}),$.push("
                ")),$.push("
              • "),S=y(J,S,M,$),S}function L(){return y(o,0,0,r),r.push("
              "),r.join("")}var R={heading:function(S){var M=l.exec(S);if(M)return{type:"heading",raw:M[0],depth:M[1].length,text:M[2]}},fences:function(S){var M=this.rules.block.fences.exec(S);if(M){var $=M[0],te=p($,M[3]||""),q=M[2]?M[2].trim():M[2];if(["latex","katex","math"].indexOf(q)>=0){var Xe=c(),Kt=te;te=Xe,u[Xe]={type:"block",expression:Kt}}return{type:"code",raw:$,lang:q,text:te}}}},g=/(?:\${2})([^\n`]+?)(?:\${2})/gi,m=0,c=function(){return"__special_katext_id_".concat(m++,"__")},u={};function D(){return u}function T(){m=0,u={}}function A(J){return J=J.replace(g,function(S,M){var $=c();return u[$]={type:"inline",expression:M},$}),J}var j=s.listitem;s.listitem=function(J){return j(A(J))};var U=s.paragraph;s.paragraph=function(J){return U(A(J))};var H=s.tablecell;s.tablecell=function(J,S){return H(A(J),S)},s.code=function(J,S,M){var $=(S||"").match(/\S*/)[0];return $?["latex","katex","math"].indexOf($)>=0?"

              ".concat(J,"

              "):'
              ').concat(M?J:Object(n.escape)(J,!0),`
              `):'
              '+(M?J:Object(n.escape)(J,!0))+"
              "},s.heading=function(J,S,M){var $=this.options.headerPrefix+M.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:$,level:S,text:J}),"'+J+""},f.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),f.a.use({tokenizer:R,renderer:s});var V=f.a,I=k("SJMd"),W=k("ulZh"),Q=k.n(W),ie=k("m3rI"),ae=k("Oy/b"),xe=k("p5ED"),Ze=k("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -16,7 +16,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Me=function(J,S){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,$){M.__proto__=$}||function(M,$){for(var te in $)Object.prototype.hasOwnProperty.call($,te)&&(M[te]=$[te])})(J,S)};function Be(J,S){function M(){this.constructor=J}Me(J,S),J.prototype=S===null?Object.create(S):(M.prototype=S.prototype,new M)}function qe(J,S,M,$){return new(M||(M=Promise))(function(te,q){function Xe(Nn){try{gn($.next(Nn))}catch(Yt){q(Yt)}}function zt(Nn){try{gn($.throw(Nn))}catch(Yt){q(Yt)}}function gn(Nn){var Yt;Nn.done?te(Nn.value):(Yt=Nn.value,Yt instanceof M?Yt:new M(function(tr){tr(Yt)})).then(Xe,zt)}gn(($=$.apply(J,S||[])).next())})}function Ve(J,S){var M,$,te,q,Xe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return q={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function zt(gn){return function(Nn){return function(Yt){if(M)throw new TypeError("Generator is already executing.");for(;Xe;)try{if(M=1,$&&(te=2&Yt[0]?$.return:Yt[0]?$.throw||((te=$.return)&&te.call($),0):$.next)&&!(te=te.call($,Yt[1])).done)return te;switch($=0,te&&(Yt=[2&Yt[0],te.value]),Yt[0]){case 0:case 1:te=Yt;break;case 4:return Xe.label++,{value:Yt[1],done:!1};case 5:Xe.label++,$=Yt[1],Yt=[0];continue;case 7:Yt=Xe.ops.pop(),Xe.trys.pop();continue;default:if(!(te=Xe.trys,(te=te.length>0&&te[te.length-1])||Yt[0]!==6&&Yt[0]!==2)){Xe=0;continue}if(Yt[0]===3&&(!te||Yt[1]>te[0]&&Yt[1]0&&te[te.length-1])||Xt[0]!==6&&Xt[0]!==2)){Xe=0;continue}if(Xt[0]===3&&(!te||Xt[1]>te[0]&&Xt[1]')||this;return Xe.colors=[],Xe.addTransparent=!1,Xe.colorBoxes=[],Xe.colors=$,Xe.currentColor=te,Xe.setCurrentColor=Xe.setCurrentColor.bind(Xe),Xe.getColorBox=Xe.getColorBox.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.whiteSpace="nowrap",this.colors.forEach(function(te){var q=M.getColorBox(te);$.appendChild(q),M.colorBoxes.push(q)}),$},S.prototype.getColorBox=function(M){var $=this,te=this.uiStyleSettings.toolbarHeight/4,q=this.uiStyleSettings.toolbarHeight-te,Xe=document.createElement("div");Xe.style.display="inline-block",Xe.style.boxSizing="content-box",Xe.style.width=q-2+"px",Xe.style.height=q-2+"px",Xe.style.padding="1px",Xe.style.marginRight="2px",Xe.style.marginBottom="2px",Xe.style.borderWidth="2px",Xe.style.borderStyle="solid",Xe.style.borderRadius=(q+2)/2+"px",Xe.style.borderColor=M===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Xe.addEventListener("click",function(){$.setCurrentColor(M,Xe)});var zt=document.createElement("div");return zt.style.display="inline-block",zt.style.width=q-2+"px",zt.style.height=q-2+"px",zt.style.backgroundColor=M,zt.style.borderRadius=q/2+"px",M==="transparent"&&(zt.style.fill=this.uiStyleSettings.toolboxAccentColor,zt.innerHTML=` + `))},J.prototype.show=function(S){var M;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=S,this.uiContainer.className=this.toolboxStyleClass.name+" "+((M=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&M!==void 0?M:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},J.prototype.setPanelButtons=function(S){var M,$,te=this;this.panels=S,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((M=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&M!==void 0?M:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(($=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&$!==void 0?$:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(q){var Xe;q.uiStyleSettings=te.uiStyleSettings;var Kt=document.createElement("div");Kt.className=te.toolboxButtonStyleClass.name+" "+((Xe=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Xe!==void 0?Xe:te.toolboxButtonStyleColorsClass.name),Kt.innerHTML=q.icon,Kt.title=q.title,Kt.addEventListener("click",function(){te.panelButtonClick(q)}),te.panelButtons.push(Kt),te.buttonRow.appendChild(Kt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},J.prototype.panelButtonClick=function(S){var M=this,$=-1;if(S!==this.activePanel){$=this.panels.indexOf(S),this.panelRow.innerHTML="";var te=S.getUi();te.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(te),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=S}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){M.displayMode==="inline"?M.panelRow.style.display="none":M.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(q,Xe){var Kt,yn;q.className=M.toolboxButtonStyleClass.name+" "+(Xe===$?""+((Kt=M.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Kt!==void 0?Kt:M.toolboxActiveButtonStyleColorsClass.name):""+((yn=M.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&yn!==void 0?yn:M.toolboxButtonStyleColorsClass.name))})},J}(),ue=function(J,S){this.title=J,this.icon=S},be=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.colors=[],Xe.addTransparent=!1,Xe.colorBoxes=[],Xe.colors=$,Xe.currentColor=te,Xe.setCurrentColor=Xe.setCurrentColor.bind(Xe),Xe.getColorBox=Xe.getColorBox.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.whiteSpace="nowrap",this.colors.forEach(function(te){var q=M.getColorBox(te);$.appendChild(q),M.colorBoxes.push(q)}),$},S.prototype.getColorBox=function(M){var $=this,te=this.uiStyleSettings.toolbarHeight/4,q=this.uiStyleSettings.toolbarHeight-te,Xe=document.createElement("div");Xe.style.display="inline-block",Xe.style.boxSizing="content-box",Xe.style.width=q-2+"px",Xe.style.height=q-2+"px",Xe.style.padding="1px",Xe.style.marginRight="2px",Xe.style.marginBottom="2px",Xe.style.borderWidth="2px",Xe.style.borderStyle="solid",Xe.style.borderRadius=(q+2)/2+"px",Xe.style.borderColor=M===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Xe.addEventListener("click",function(){$.setCurrentColor(M,Xe)});var Kt=document.createElement("div");return Kt.style.display="inline-block",Kt.style.width=q-2+"px",Kt.style.height=q-2+"px",Kt.style.backgroundColor=M,Kt.style.borderRadius=q/2+"px",M==="transparent"&&(Kt.style.fill=this.uiStyleSettings.toolboxAccentColor,Kt.innerHTML=` - `),Xe.appendChild(zt),Xe},S.prototype.setCurrentColor=function(M,$){var te=this;this.currentColor=M,this.colorBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(M)},S}(ue),We=function(){function J(S,M,$){this._state="new",this._isSelected=!1,this._container=S,this._overlayContainer=M,this.globalSettings=$,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(J.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),J.prototype.ownsTarget=function(S){return!1},Object.defineProperty(J.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),J.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},J.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},J.prototype.pointerDown=function(S,M){},J.prototype.dblClick=function(S,M){},J.prototype.manipulate=function(S){},J.prototype.pointerUp=function(S){this.stateChanged()},J.prototype.dispose=function(){},J.prototype.addMarkerVisualToContainer=function(S){this.container.childNodes.length>0?this.container.insertBefore(S,this.container.childNodes[0]):this.container.appendChild(S)},J.prototype.getState=function(){return{typeName:J.typeName,state:this.state,notes:this.notes}},J.prototype.restoreState=function(S){this._state=S.state,this.notes=S.notes},J.prototype.scale=function(S,M){},J.prototype.colorChanged=function(S){this.onColorChanged&&this.onColorChanged(S),this.stateChanged()},J.prototype.fillColorChanged=function(S){this.onFillColorChanged&&this.onFillColorChanged(S),this.stateChanged()},J.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var S=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),S.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(S)&&this.onStateChanged(this)}},J.typeName="MarkerBase",J}(),ze=function(){function J(){this.findGripByVisual=this.findGripByVisual.bind(this)}return J.prototype.findGripByVisual=function(S){return this.topLeft.ownsTarget(S)?this.topLeft:this.topCenter.ownsTarget(S)?this.topCenter:this.topRight.ownsTarget(S)?this.topRight:this.centerLeft.ownsTarget(S)?this.centerLeft:this.centerRight.ownsTarget(S)?this.centerRight:this.bottomLeft.ownsTarget(S)?this.bottomLeft:this.bottomCenter.ownsTarget(S)?this.bottomCenter:this.bottomRight.ownsTarget(S)?this.bottomRight:void 0},J}(),Tt=function(){function J(){this.GRIP_SIZE=10,this.visual=pe.createGroup(),this.visual.appendChild(pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(S){return S===this.visual||S===this.visual.childNodes[0]||S===this.visual.childNodes[1]},J}(),Ut=function(){function J(){}return J.toITransformMatrix=function(S){return{a:S.a,b:S.b,c:S.c,d:S.d,e:S.e,f:S.f}},J.toSVGMatrix=function(S,M){return S.a=M.a,S.b=M.b,S.c=M.c,S.d=M.d,S.e=M.e,S.f=M.f,S},J}(),It=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.left=0,q.top=0,q.width=0,q.height=0,q.defaultSize={x:50,y:20},q.offsetX=0,q.offsetY=0,q.rotationAngle=0,q.CB_DISTANCE=10,q._suppressMarkerCreateEvent=!1,q.container.transform.baseVal.appendItem(pe.createTransform()),q.setupControlBox(),q}return Be(S,J),Object.defineProperty(S.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"visual",{get:function(){return this._visual},set:function(M){this._visual=M;var $=pe.createTransform();this._visual.transform.baseVal.appendItem($)},enumerable:!1,configurable:!0}),S.prototype.ownsTarget=function(M){return!!J.prototype.ownsTarget.call(this,M)||!!(this.controlGrips.findGripByVisual(M)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(M))},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="new"&&(this.left=M.x,this.top=M.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var te=this.unrotatePoint(M);if(this.manipulationStartX=te.x,this.manipulationStartY=te.y,this.offsetX=te.x-this.left,this.offsetY=te.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual($),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($)){this.activeGrip=this.rotatorGrip;var q=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=q.x-this.width/2,this.top=q.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Xe=this.container.transform.baseVal.getItem(0);Xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Xe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},S.prototype.pointerUp=function(M){var $=this.state;J.prototype.pointerUp.call(this,M),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(M),this._state="select",$==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},S.prototype.moveVisual=function(M){this.visual.style.transform="translate("+M.x+"px, "+M.y+"px)"},S.prototype.manipulate=function(M){var $=this.unrotatePoint(M);this.state==="creating"?this.resize(M):this.state==="move"?(this.left=this.manipulationStartLeft+($.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+($.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize($):this.state==="rotate"&&this.rotate(M)},S.prototype.resize=function(M){var $=this.manipulationStartLeft,te=this.manipulationStartWidth,q=this.manipulationStartTop,Xe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:$=this.manipulationStartLeft+M.x-this.manipulationStartX,te=this.manipulationStartWidth+this.manipulationStartLeft-$;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:te=this.manipulationStartWidth+M.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:q=this.manipulationStartTop+M.y-this.manipulationStartY,Xe=this.manipulationStartHeight+this.manipulationStartTop-q;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Xe=this.manipulationStartHeight+M.y-this.manipulationStartY}te>=0?(this.left=$,this.width=te):(this.left=$+te,this.width=-te),Xe>=0?(this.top=q,this.height=Xe):(this.top=q+Xe,this.height=-Xe),this.setSize()},S.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},S.prototype.rotate=function(M){if(Math.abs(M.x-this.centerX)>.1){var $=Math.sign(M.x-this.centerX);this.rotationAngle=180*Math.atan((M.y-this.centerY)/(M.x-this.centerX))/Math.PI+90*$,this.applyRotation()}},S.prototype.applyRotation=function(){var M=this.container.transform.baseVal.getItem(0);M.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(M,0)},S.prototype.rotatePoint=function(M){if(this.rotationAngle===0)return M;var $=this.container.getCTM(),te=pe.createPoint(M.x,M.y);return{x:(te=te.matrixTransform($)).x,y:te.y}},S.prototype.unrotatePoint=function(M){if(this.rotationAngle===0)return M;var $=this.container.getCTM();$=$.inverse();var te=pe.createPoint(M.x,M.y);return{x:(te=te.matrixTransform($)).x,y:te.y}},S.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=pe.createGroup();var M=pe.createTransform();M.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(M),this.container.appendChild(this.controlBox),this.controlRect=pe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ze,this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){var M=this.controlBox.transform.baseVal.getItem(0);M.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(M,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},S.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},S.prototype.createGrip=function(){var M=new Tt;return M.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(M.visual),M},S.prototype.positionGrips=function(){var M=this.controlGrips.topLeft.GRIP_SIZE,$=-M/2,te=$,q=(this.width+this.CB_DISTANCE)/2-M/2,Xe=(this.height+this.CB_DISTANCE)/2-M/2,zt=this.height+this.CB_DISTANCE-M/2,gn=this.width+this.CB_DISTANCE-M/2;this.positionGrip(this.controlGrips.topLeft.visual,$,te),this.positionGrip(this.controlGrips.topCenter.visual,q,te),this.positionGrip(this.controlGrips.topRight.visual,gn,te),this.positionGrip(this.controlGrips.centerLeft.visual,$,Xe),this.positionGrip(this.controlGrips.centerRight.visual,gn,Xe),this.positionGrip(this.controlGrips.bottomLeft.visual,$,zt),this.positionGrip(this.controlGrips.bottomCenter.visual,q,zt),this.positionGrip(this.controlGrips.bottomRight.visual,gn,zt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,q,te-3*this.CB_DISTANCE)},S.prototype.positionGrip=function(M,$,te){var q=M.transform.baseVal.getItem(0);q.setTranslate($,te),M.transform.baseVal.replaceItem(q,0)},S.prototype.hideControlBox=function(){this.controlBox.style.display="none"},S.prototype.showControlBox=function(){this.controlBox.style.display=""},S.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ut.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ut.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},J.prototype.getState.call(this))},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.left=$.left,this.top=$.top,this.width=$.width,this.height=$.height,this.rotationAngle=$.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,$.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,$.containerTransformMatrix))},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$);var te=this.rotatePoint({x:this.left,y:this.top}),q=this.unrotatePoint({x:te.x*M,y:te.y*$});this.left=q.x,this.top=q.y,this.width=this.width*M,this.height=this.height*$,this.adjustControlBox()},S}(We),Nt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.fillColor="transparent",q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.opacity=1,q.setStrokeColor=q.setStrokeColor.bind(q),q.setFillColor=q.setFillColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.createVisual=q.createVisual.bind(q),q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual)},S.prototype.createVisual=function(){this.visual=pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="new"&&(this.createVisual(),this.moveVisual(M),this._state="creating")},S.prototype.manipulate=function(M){J.prototype.manipulate.call(this,M)},S.prototype.resize=function(M){J.prototype.resize.call(this,M),this.setSize()},S.prototype.setSize=function(){J.prototype.setSize.call(this),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(M){J.prototype.pointerUp.call(this,M),this.setSize()},S.prototype.setStrokeColor=function(M){this.strokeColor=M,this.visual&&pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(M),this.stateChanged()},S.prototype.setFillColor=function(M){this.fillColor=M,this.visual&&pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},S.prototype.setStrokeWidth=function(M){this.strokeWidth=M,this.visual&&pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},S.prototype.setStrokeDasharray=function(M){this.strokeDasharray=M,this.visual&&pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},S.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},J.prototype.getState.call(this))},S.prototype.restoreState=function(M){var $=M;this.fillColor=$.fillColor,this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.opacity=$.opacity,this.createVisual(),J.prototype.restoreState.call(this,M),this.setSize()},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.setSize()},S.title="Rectangle marker",S}(It),qt=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.widths=[],Xe.widthBoxes=[],Xe.widths=$,Xe.currentWidth=te,Xe.setCurrentWidth=Xe.setCurrentWidth.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.widths.forEach(function(te){var q=document.createElement("div");q.style.display="flex",q.style.flexGrow="2",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.borderColor=te===M.currentWidth?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentWidth(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.innerText=te.toString(),Xe.style.marginRight="5px",q.appendChild(Xe);var zt=document.createElement("div");zt.style.minHeight="20px",zt.style.flexGrow="2",zt.style.display="flex",zt.style.alignItems="center";var gn=document.createElement("hr");gn.style.minWidth="20px",gn.style.border="0px",gn.style.borderTop=te+"px solid "+M.uiStyleSettings.toolboxColor,gn.style.flexGrow="2",zt.appendChild(gn),q.appendChild(zt),M.widthBoxes.push(q)}),$},S.prototype.setCurrentWidth=function(M,$){var te=this;this.currentWidth=M,this.widthBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},S}(ue),hn=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.styles=[],Xe.styleBoxes=[],Xe.styles=$,Xe.currentStyle=te,Xe.setCurrentStyle=Xe.setCurrentStyle.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.styles.forEach(function(te){var q=document.createElement("div");q.style.display="flex",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.overflow="hidden",q.style.maxWidth=100/M.styles.length-5+"%",q.style.borderColor=te===M.currentStyle?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentStyle(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.overflow="hidden";var zt=` + `),Xe.appendChild(Kt),Xe},S.prototype.setCurrentColor=function(M,$){var te=this;this.currentColor=M,this.colorBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(M)},S}(ue),We=function(){function J(S,M,$){this._state="new",this._isSelected=!1,this._container=S,this._overlayContainer=M,this.globalSettings=$,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(J.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),J.prototype.ownsTarget=function(S){return!1},Object.defineProperty(J.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),J.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},J.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},J.prototype.pointerDown=function(S,M){},J.prototype.dblClick=function(S,M){},J.prototype.manipulate=function(S){},J.prototype.pointerUp=function(S){this.stateChanged()},J.prototype.dispose=function(){},J.prototype.addMarkerVisualToContainer=function(S){this.container.childNodes.length>0?this.container.insertBefore(S,this.container.childNodes[0]):this.container.appendChild(S)},J.prototype.getState=function(){return{typeName:J.typeName,state:this.state,notes:this.notes}},J.prototype.restoreState=function(S){this._state=S.state,this.notes=S.notes},J.prototype.scale=function(S,M){},J.prototype.colorChanged=function(S){this.onColorChanged&&this.onColorChanged(S),this.stateChanged()},J.prototype.fillColorChanged=function(S){this.onFillColorChanged&&this.onFillColorChanged(S),this.stateChanged()},J.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var S=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),S.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(S)&&this.onStateChanged(this)}},J.typeName="MarkerBase",J}(),ze=function(){function J(){this.findGripByVisual=this.findGripByVisual.bind(this)}return J.prototype.findGripByVisual=function(S){return this.topLeft.ownsTarget(S)?this.topLeft:this.topCenter.ownsTarget(S)?this.topCenter:this.topRight.ownsTarget(S)?this.topRight:this.centerLeft.ownsTarget(S)?this.centerLeft:this.centerRight.ownsTarget(S)?this.centerRight:this.bottomLeft.ownsTarget(S)?this.bottomLeft:this.bottomCenter.ownsTarget(S)?this.bottomCenter:this.bottomRight.ownsTarget(S)?this.bottomRight:void 0},J}(),Tt=function(){function J(){this.GRIP_SIZE=10,this.visual=pe.createGroup(),this.visual.appendChild(pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(S){return S===this.visual||S===this.visual.childNodes[0]||S===this.visual.childNodes[1]},J}(),Ut=function(){function J(){}return J.toITransformMatrix=function(S){return{a:S.a,b:S.b,c:S.c,d:S.d,e:S.e,f:S.f}},J.toSVGMatrix=function(S,M){return S.a=M.a,S.b=M.b,S.c=M.c,S.d=M.d,S.e=M.e,S.f=M.f,S},J}(),It=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.left=0,q.top=0,q.width=0,q.height=0,q.defaultSize={x:50,y:20},q.offsetX=0,q.offsetY=0,q.rotationAngle=0,q.CB_DISTANCE=10,q._suppressMarkerCreateEvent=!1,q.container.transform.baseVal.appendItem(pe.createTransform()),q.setupControlBox(),q}return Be(S,J),Object.defineProperty(S.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"visual",{get:function(){return this._visual},set:function(M){this._visual=M;var $=pe.createTransform();this._visual.transform.baseVal.appendItem($)},enumerable:!1,configurable:!0}),S.prototype.ownsTarget=function(M){return!!J.prototype.ownsTarget.call(this,M)||!!(this.controlGrips.findGripByVisual(M)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(M))},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="new"&&(this.left=M.x,this.top=M.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var te=this.unrotatePoint(M);if(this.manipulationStartX=te.x,this.manipulationStartY=te.y,this.offsetX=te.x-this.left,this.offsetY=te.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual($),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($)){this.activeGrip=this.rotatorGrip;var q=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=q.x-this.width/2,this.top=q.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Xe=this.container.transform.baseVal.getItem(0);Xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Xe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},S.prototype.pointerUp=function(M){var $=this.state;J.prototype.pointerUp.call(this,M),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(M),this._state="select",$==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},S.prototype.moveVisual=function(M){this.visual.style.transform="translate("+M.x+"px, "+M.y+"px)"},S.prototype.manipulate=function(M){var $=this.unrotatePoint(M);this.state==="creating"?this.resize(M):this.state==="move"?(this.left=this.manipulationStartLeft+($.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+($.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize($):this.state==="rotate"&&this.rotate(M)},S.prototype.resize=function(M){var $=this.manipulationStartLeft,te=this.manipulationStartWidth,q=this.manipulationStartTop,Xe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:$=this.manipulationStartLeft+M.x-this.manipulationStartX,te=this.manipulationStartWidth+this.manipulationStartLeft-$;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:te=this.manipulationStartWidth+M.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:q=this.manipulationStartTop+M.y-this.manipulationStartY,Xe=this.manipulationStartHeight+this.manipulationStartTop-q;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Xe=this.manipulationStartHeight+M.y-this.manipulationStartY}te>=0?(this.left=$,this.width=te):(this.left=$+te,this.width=-te),Xe>=0?(this.top=q,this.height=Xe):(this.top=q+Xe,this.height=-Xe),this.setSize()},S.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},S.prototype.rotate=function(M){if(Math.abs(M.x-this.centerX)>.1){var $=Math.sign(M.x-this.centerX);this.rotationAngle=180*Math.atan((M.y-this.centerY)/(M.x-this.centerX))/Math.PI+90*$,this.applyRotation()}},S.prototype.applyRotation=function(){var M=this.container.transform.baseVal.getItem(0);M.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(M,0)},S.prototype.rotatePoint=function(M){if(this.rotationAngle===0)return M;var $=this.container.getCTM(),te=pe.createPoint(M.x,M.y);return{x:(te=te.matrixTransform($)).x,y:te.y}},S.prototype.unrotatePoint=function(M){if(this.rotationAngle===0)return M;var $=this.container.getCTM();$=$.inverse();var te=pe.createPoint(M.x,M.y);return{x:(te=te.matrixTransform($)).x,y:te.y}},S.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=pe.createGroup();var M=pe.createTransform();M.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(M),this.container.appendChild(this.controlBox),this.controlRect=pe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ze,this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){var M=this.controlBox.transform.baseVal.getItem(0);M.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(M,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},S.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},S.prototype.createGrip=function(){var M=new Tt;return M.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(M.visual),M},S.prototype.positionGrips=function(){var M=this.controlGrips.topLeft.GRIP_SIZE,$=-M/2,te=$,q=(this.width+this.CB_DISTANCE)/2-M/2,Xe=(this.height+this.CB_DISTANCE)/2-M/2,Kt=this.height+this.CB_DISTANCE-M/2,yn=this.width+this.CB_DISTANCE-M/2;this.positionGrip(this.controlGrips.topLeft.visual,$,te),this.positionGrip(this.controlGrips.topCenter.visual,q,te),this.positionGrip(this.controlGrips.topRight.visual,yn,te),this.positionGrip(this.controlGrips.centerLeft.visual,$,Xe),this.positionGrip(this.controlGrips.centerRight.visual,yn,Xe),this.positionGrip(this.controlGrips.bottomLeft.visual,$,Kt),this.positionGrip(this.controlGrips.bottomCenter.visual,q,Kt),this.positionGrip(this.controlGrips.bottomRight.visual,yn,Kt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,q,te-3*this.CB_DISTANCE)},S.prototype.positionGrip=function(M,$,te){var q=M.transform.baseVal.getItem(0);q.setTranslate($,te),M.transform.baseVal.replaceItem(q,0)},S.prototype.hideControlBox=function(){this.controlBox.style.display="none"},S.prototype.showControlBox=function(){this.controlBox.style.display=""},S.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ut.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ut.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},J.prototype.getState.call(this))},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.left=$.left,this.top=$.top,this.width=$.width,this.height=$.height,this.rotationAngle=$.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,$.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,$.containerTransformMatrix))},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$);var te=this.rotatePoint({x:this.left,y:this.top}),q=this.unrotatePoint({x:te.x*M,y:te.y*$});this.left=q.x,this.top=q.y,this.width=this.width*M,this.height=this.height*$,this.adjustControlBox()},S}(We),Nt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.fillColor="transparent",q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.opacity=1,q.setStrokeColor=q.setStrokeColor.bind(q),q.setFillColor=q.setFillColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.createVisual=q.createVisual.bind(q),q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual)},S.prototype.createVisual=function(){this.visual=pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="new"&&(this.createVisual(),this.moveVisual(M),this._state="creating")},S.prototype.manipulate=function(M){J.prototype.manipulate.call(this,M)},S.prototype.resize=function(M){J.prototype.resize.call(this,M),this.setSize()},S.prototype.setSize=function(){J.prototype.setSize.call(this),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(M){J.prototype.pointerUp.call(this,M),this.setSize()},S.prototype.setStrokeColor=function(M){this.strokeColor=M,this.visual&&pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(M),this.stateChanged()},S.prototype.setFillColor=function(M){this.fillColor=M,this.visual&&pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},S.prototype.setStrokeWidth=function(M){this.strokeWidth=M,this.visual&&pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},S.prototype.setStrokeDasharray=function(M){this.strokeDasharray=M,this.visual&&pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},S.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},J.prototype.getState.call(this))},S.prototype.restoreState=function(M){var $=M;this.fillColor=$.fillColor,this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.opacity=$.opacity,this.createVisual(),J.prototype.restoreState.call(this,M),this.setSize()},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.setSize()},S.title="Rectangle marker",S}(It),Zt=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.widths=[],Xe.widthBoxes=[],Xe.widths=$,Xe.currentWidth=te,Xe.setCurrentWidth=Xe.setCurrentWidth.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.widths.forEach(function(te){var q=document.createElement("div");q.style.display="flex",q.style.flexGrow="2",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.borderColor=te===M.currentWidth?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentWidth(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.innerText=te.toString(),Xe.style.marginRight="5px",q.appendChild(Xe);var Kt=document.createElement("div");Kt.style.minHeight="20px",Kt.style.flexGrow="2",Kt.style.display="flex",Kt.style.alignItems="center";var yn=document.createElement("hr");yn.style.minWidth="20px",yn.style.border="0px",yn.style.borderTop=te+"px solid "+M.uiStyleSettings.toolboxColor,yn.style.flexGrow="2",Kt.appendChild(yn),q.appendChild(Kt),M.widthBoxes.push(q)}),$},S.prototype.setCurrentWidth=function(M,$){var te=this;this.currentWidth=M,this.widthBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},S}(ue),fn=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.styles=[],Xe.styleBoxes=[],Xe.styles=$,Xe.currentStyle=te,Xe.setCurrentStyle=Xe.setCurrentStyle.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.styles.forEach(function(te){var q=document.createElement("div");q.style.display="flex",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.overflow="hidden",q.style.maxWidth=100/M.styles.length-5+"%",q.style.borderColor=te===M.currentStyle?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentStyle(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.overflow="hidden";var Kt=` - `;Xe.innerHTML=zt,q.appendChild(Xe),M.styleBoxes.push(q)}),$},S.prototype.setCurrentStyle=function(M,$){var te=this;this.currentStyle=M,this.styleBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},S}(ue),nt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokeColor=te.defaultColor,q.strokeWidth=te.defaultStrokeWidth,q.strokeDasharray=te.defaultStrokeDasharray,q.strokePanel=new be("Line color",te.defaultColorSet,te.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new qt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new hn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return Be(S,J),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="FrameMarker",S.title="Frame marker",S.icon='',S}(Nt),He=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},pt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.x1=0,q.y1=0,q.x2=0,q.y2=0,q.defaultLength=50,q.manipulationStartX=0,q.manipulationStartY=0,q.manipulationStartX1=0,q.manipulationStartY1=0,q.manipulationStartX2=0,q.manipulationStartY2=0,q.setupControlBox(),q}return Be(S,J),S.prototype.ownsTarget=function(M){return!!J.prototype.ownsTarget.call(this,M)||!(!this.grip1.ownsTarget(M)&&!this.grip2.ownsTarget(M))},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.manipulationStartX=M.x,this.manipulationStartY=M.y,this.state==="new"&&(this.x1=M.x,this.y1=M.y,this.x2=M.x,this.y2=M.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget($)?this.activeGrip=this.grip1:this.grip2.ownsTarget($)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},S.prototype.pointerUp=function(M){var $=this.state;J.prototype.pointerUp.call(this,M),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(M),this._state="select",$==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},S.prototype.adjustVisual=function(){},S.prototype.manipulate=function(M){this.state==="creating"?this.resize(M):this.state==="move"?(this.x1=this.manipulationStartX1+M.x-this.manipulationStartX,this.y1=this.manipulationStartY1+M.y-this.manipulationStartY,this.x2=this.manipulationStartX2+M.x-this.manipulationStartX,this.y2=this.manipulationStartY2+M.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(M)},S.prototype.resize=function(M){switch(this.activeGrip){case this.grip1:this.x1=M.x,this.y1=M.y;break;case this.grip2:case void 0:this.x2=M.x,this.y2=M.y}this.adjustVisual(),this.adjustControlBox()},S.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){this.positionGrips()},S.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},S.prototype.createGrip=function(){var M=new Tt;return M.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(M.visual),M},S.prototype.positionGrips=function(){var M=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-M/2,this.y1-M/2),this.positionGrip(this.grip2.visual,this.x2-M/2,this.y2-M/2)},S.prototype.positionGrip=function(M,$,te){var q=M.transform.baseVal.getItem(0);q.setTranslate($,te),M.transform.baseVal.replaceItem(q,0)},S.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},J.prototype.getState.call(this))},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.x1=$.x1,this.y1=$.y1,this.x2=$.x2,this.y2=$.y2},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.x1=this.x1*M,this.y1=this.y1*$,this.x2=this.x2*M,this.y2=this.y2*$,this.adjustVisual(),this.adjustControlBox()},S}(We),kt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.setStrokeColor=q.setStrokeColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.strokeColor=te.defaultColor,q.strokeWidth=te.defaultStrokeWidth,q.strokeDasharray=te.defaultStrokeDasharray,q.strokePanel=new be("Line color",te.defaultColorSet,te.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new qt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new hn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual&&M!==this.selectorLine&&M!==this.visibleLine)},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},S.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setStrokeColor=function(M){this.strokeColor=M,this.adjustVisual(),this.colorChanged(M)},S.prototype.setStrokeWidth=function(M){this.strokeWidth=M,this.adjustVisual()},S.prototype.setStrokeDasharray=function(M){this.strokeDasharray=M,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.createVisual(),this.adjustVisual()},S.typeName="LineMarker",S.title="Line marker",S.icon='',S}(pt),st=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.fonts=[],Xe.fontBoxes=[],Xe.fonts=$,Xe.currentFont=te,Xe.setCurrentFont=Xe.setCurrentFont.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.flexGrow="2",this.fonts.forEach(function(te){var q=document.createElement("div");q.style.display="inline-block",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.overflow="hidden",q.style.maxWidth=100/M.fonts.length-5+"%",q.style.borderColor=te===M.currentFont?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentFont(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.fontFamily=te,Xe.style.overflow="hidden";var zt=document.createElement("div");zt.style.whiteSpace="nowrap",zt.style.overflow="hidden",zt.style.textOverflow="ellipsis",zt.innerHTML="The quick brown fox jumps over the lazy dog",Xe.appendChild(zt),q.appendChild(Xe),M.fontBoxes.push(q)}),$},S.prototype.setCurrentFont=function(M,$){var te=this;this.currentFont=M,this.fontBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},S}(ue),Et=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.color="transparent",q.padding=5,q.DEFAULT_TEXT="your text here",q.text=q.DEFAULT_TEXT,q.isMoved=!1,q.color=te.defaultColor,q.fontFamily=te.defaultFontFamily,q.defaultSize={x:100,y:30},q.setColor=q.setColor.bind(q),q.setFont=q.setFont.bind(q),q.renderText=q.renderText.bind(q),q.sizeText=q.sizeText.bind(q),q.textEditDivClicked=q.textEditDivClicked.bind(q),q.showTextEditor=q.showTextEditor.bind(q),q.setSize=q.setSize.bind(q),q.positionTextEditor=q.positionTextEditor.bind(q),q.colorPanel=new be("Color",te.defaultColorSet,te.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q}return Be(S,J),S.prototype.ownsTarget=function(M){if(J.prototype.ownsTarget.call(this,M)||M===this.visual||M===this.textElement||M===this.bgRectangle)return!0;var $=!1;return this.textElement.childNodes.forEach(function(te){te===M&&($=!0)}),$},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.bgRectangle=pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.isMoved=!1,this.pointerDownPoint=M,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(M),this._state="creating")},S.prototype.renderText=function(){var M=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function($){M.textElement.appendChild(pe.createTSpan($.trim()===""?" ":$.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},S.prototype.getTextScale=function(){var M=this.textElement.getBBox(),$=1;if(M.width>0&&M.height>0){var te=(1*this.width-this.width*this.padding*2/100)/M.width,q=(1*this.height-this.height*this.padding*2/100)/M.height;$=Math.min(te,q)}return $},S.prototype.getTextPosition=function(M){var $=this.textElement.getBBox(),te=0,q=0;return $.width>0&&$.height>0&&(te=(this.width-$.width*M)/2,q=this.height/2-$.height*M/2),{x:te,y:q}},S.prototype.sizeText=function(){var M=this.textElement.getBBox(),$=this.getTextScale(),te=this.getTextPosition($);te.y-=M.y*$,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+te.x+"px, "+te.y+"px) scale("+$+", "+$+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(te.x,te.y),this.textElement.transform.baseVal.getItem(1).setScale($,$))},S.prototype.manipulate=function(M){J.prototype.manipulate.call(this,M),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(M.x-this.pointerDownPoint.x)>5||Math.abs(M.y-this.pointerDownPoint.y)>5)},S.prototype.resize=function(M){J.prototype.resize.call(this,M),this.isMoved=!0,this.setSize(),this.sizeText()},S.prototype.setSize=function(){J.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},S.prototype.pointerUp=function(M){var $=this.state;$==="creating"&&(this._suppressMarkerCreateEvent=!0),J.prototype.pointerUp.call(this,M),this.setSize(),($==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},S.prototype.showTextEditor=function(){var M=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function($){$.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var $=Number.parseFloat(M.textEditor.style.fontSize);M.textEditor.clientWidth>=Number.parseInt(M.textEditor.style.maxWidth)&&$>.9;)$-=.1,M.textEditor.style.fontSize=Math.max($,.9)+"em"}),this.textEditor.addEventListener("keyup",function($){$.cancelBubble=!0}),this.textEditor.addEventListener("paste",function($){if($.clipboardData){var te=$.clipboardData.getData("text"),q=window.getSelection();if(!q.rangeCount)return!1;q.deleteFromDocument(),q.getRangeAt(0).insertNode(document.createTextNode(te)),$.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){M.textEditDivClicked(M.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},S.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var M=this.getTextScale(),$=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),te=this.textElement.getBBox(),q={x:te.width*M,y:te.height*M};$.x-=q.x/2,$.y-=q.y/2,this.textEditor.style.top=$.y+"px",this.textEditor.style.left=$.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-$.x+"px",this.textEditor.style.fontSize=Math.max(16*M,12)+"px",this.textElement.style.display="none"}},S.prototype.textEditDivClicked=function(M){this.text=M.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},S.prototype.select=function(){J.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},S.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),J.prototype.deselect.call(this)},S.prototype.dblClick=function(M,$){J.prototype.dblClick.call(this,M,$),this.showTextEditor()},S.prototype.setColor=function(M){this.textElement&&pe.setAttributes(this.textElement,[["fill",M]]),this.color=M,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(M)},S.prototype.setFont=function(M){this.textElement&&pe.setAttributes(this.textElement,[["font-family",M]]),this.fontFamily=M,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},S.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},S.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){var $=M;this.color=$.color,this.fontFamily=$.fontFamily,this.padding=$.padding,this.text=$.text,this.createVisual(),J.prototype.restoreState.call(this,M),this.setSize()},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.setSize(),this.sizeText(),this.positionTextEditor()},S.typeName="TextMarker",S.title="Text marker",S.icon='',S}(It),Fe=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.color="transparent",q.lineWidth=3,q.drawing=!1,q.pixelRatio=1,q.color=te.defaultColor,q.lineWidth=te.defaultStrokeWidth,q.pixelRatio=te.freehandPixelRatio,q.setColor=q.setColor.bind(q),q.addCanvas=q.addCanvas.bind(q),q.finishCreation=q.finishCreation.bind(q),q.setLineWidth=q.setLineWidth.bind(q),q.colorPanel=new be("Color",te.defaultColorSet,te.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.lineWidthPanel=new qt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.lineWidthPanel.onWidthChanged=q.setLineWidth,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual&&M!==this.drawingImage)},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.drawingImage=pe.createImage(),this.visual.appendChild(this.drawingImage);var M=pe.createTransform();this.visual.transform.baseVal.appendItem(M),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(M.x,M.y),this.drawing=!0):J.prototype.pointerDown.call(this,M,$)},S.prototype.manipulate=function(M){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(M.x,M.y),this.canvasContext.stroke()):J.prototype.manipulate.call(this,M)},S.prototype.resize=function(M){J.prototype.resize.call(this,M),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(M){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):J.prototype.pointerUp.call(this,M)},S.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},S.prototype.select=function(){this.state==="creating"&&this.finishCreation(),J.prototype.select.call(this)},S.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),J.prototype.deselect.call(this)},S.prototype.finishCreation=function(){for(var M=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),$=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],te=$[0],q=$[1],Xe=$[2],zt=$[3],gn=!1,Nn=0;Nn0&&(gn=!0,Nnzt&&(zt=Nn),Yt>Xe&&(Xe=Yt));if(gn){this.left=te/this.pixelRatio,this.top=q/this.pixelRatio,this.width=(Xe-te)/this.pixelRatio,this.height=(zt-q)/this.pixelRatio;var tr=document.createElement("canvas");tr.width=Xe-te,tr.height=zt-q,tr.getContext("2d").putImageData(this.canvasContext.getImageData(te,q,Xe-te,zt-q),0,0),this.drawingImgUrl=tr.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},S.prototype.setDrawingImage=function(){pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},S.prototype.setColor=function(M){this.color=M,this.colorChanged(M)},S.prototype.setLineWidth=function(M){this.lineWidth=M},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({drawingImgUrl:this.drawingImgUrl},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){this.createVisual(),J.prototype.restoreState.call(this,M),this.drawingImgUrl=M.drawingImgUrl,this.setDrawingImage()},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.setDrawingImage()},S.typeName="FreehandMarker",S.title="Freehand marker",S.icon='',S}(It),Se=function(J){function S(M,$,te){var q=J.call(this,M,te||'')||this;return q.typeBoxes=[],q.currentType=$,q.setCurrentType=q.setCurrentType.bind(q),q}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");$.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2";for(var te=function(zt){var gn="both";switch(zt){case 0:gn="both";break;case 1:gn="start";break;case 2:gn="end";break;case 3:gn="none"}var Nn=document.createElement("div");if(Nn.style.display="flex",Nn.style.flexGrow="2",Nn.style.alignItems="center",Nn.style.justifyContent="space-between",Nn.style.padding="5px",Nn.style.borderWidth="2px",Nn.style.borderStyle="solid",Nn.style.borderColor=gn===q.currentType?q.uiStyleSettings.toolboxAccentColor:"transparent",Nn.addEventListener("click",function(){M.setCurrentType(gn,Nn)}),$.appendChild(Nn),gn==="both"||gn==="start"){var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.innerHTML=` + `;Xe.innerHTML=Kt,q.appendChild(Xe),M.styleBoxes.push(q)}),$},S.prototype.setCurrentStyle=function(M,$){var te=this;this.currentStyle=M,this.styleBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},S}(ue),nt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokeColor=te.defaultColor,q.strokeWidth=te.defaultStrokeWidth,q.strokeDasharray=te.defaultStrokeDasharray,q.strokePanel=new be("Line color",te.defaultColorSet,te.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new Zt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new fn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return Be(S,J),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="FrameMarker",S.title="Frame marker",S.icon='',S}(Nt),He=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},pt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.x1=0,q.y1=0,q.x2=0,q.y2=0,q.defaultLength=50,q.manipulationStartX=0,q.manipulationStartY=0,q.manipulationStartX1=0,q.manipulationStartY1=0,q.manipulationStartX2=0,q.manipulationStartY2=0,q.setupControlBox(),q}return Be(S,J),S.prototype.ownsTarget=function(M){return!!J.prototype.ownsTarget.call(this,M)||!(!this.grip1.ownsTarget(M)&&!this.grip2.ownsTarget(M))},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.manipulationStartX=M.x,this.manipulationStartY=M.y,this.state==="new"&&(this.x1=M.x,this.y1=M.y,this.x2=M.x,this.y2=M.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget($)?this.activeGrip=this.grip1:this.grip2.ownsTarget($)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},S.prototype.pointerUp=function(M){var $=this.state;J.prototype.pointerUp.call(this,M),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(M),this._state="select",$==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},S.prototype.adjustVisual=function(){},S.prototype.manipulate=function(M){this.state==="creating"?this.resize(M):this.state==="move"?(this.x1=this.manipulationStartX1+M.x-this.manipulationStartX,this.y1=this.manipulationStartY1+M.y-this.manipulationStartY,this.x2=this.manipulationStartX2+M.x-this.manipulationStartX,this.y2=this.manipulationStartY2+M.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(M)},S.prototype.resize=function(M){switch(this.activeGrip){case this.grip1:this.x1=M.x,this.y1=M.y;break;case this.grip2:case void 0:this.x2=M.x,this.y2=M.y}this.adjustVisual(),this.adjustControlBox()},S.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){this.positionGrips()},S.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},S.prototype.createGrip=function(){var M=new Tt;return M.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(M.visual),M},S.prototype.positionGrips=function(){var M=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-M/2,this.y1-M/2),this.positionGrip(this.grip2.visual,this.x2-M/2,this.y2-M/2)},S.prototype.positionGrip=function(M,$,te){var q=M.transform.baseVal.getItem(0);q.setTranslate($,te),M.transform.baseVal.replaceItem(q,0)},S.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},J.prototype.getState.call(this))},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.x1=$.x1,this.y1=$.y1,this.x2=$.x2,this.y2=$.y2},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.x1=this.x1*M,this.y1=this.y1*$,this.x2=this.x2*M,this.y2=this.y2*$,this.adjustVisual(),this.adjustControlBox()},S}(We),Mt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.setStrokeColor=q.setStrokeColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.strokeColor=te.defaultColor,q.strokeWidth=te.defaultStrokeWidth,q.strokeDasharray=te.defaultStrokeDasharray,q.strokePanel=new be("Line color",te.defaultColorSet,te.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new Zt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new fn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual&&M!==this.selectorLine&&M!==this.visibleLine)},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},S.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setStrokeColor=function(M){this.strokeColor=M,this.adjustVisual(),this.colorChanged(M)},S.prototype.setStrokeWidth=function(M){this.strokeWidth=M,this.adjustVisual()},S.prototype.setStrokeDasharray=function(M){this.strokeDasharray=M,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.createVisual(),this.adjustVisual()},S.typeName="LineMarker",S.title="Line marker",S.icon='',S}(pt),st=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.fonts=[],Xe.fontBoxes=[],Xe.fonts=$,Xe.currentFont=te,Xe.setCurrentFont=Xe.setCurrentFont.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.flexGrow="2",this.fonts.forEach(function(te){var q=document.createElement("div");q.style.display="inline-block",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.overflow="hidden",q.style.maxWidth=100/M.fonts.length-5+"%",q.style.borderColor=te===M.currentFont?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentFont(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.fontFamily=te,Xe.style.overflow="hidden";var Kt=document.createElement("div");Kt.style.whiteSpace="nowrap",Kt.style.overflow="hidden",Kt.style.textOverflow="ellipsis",Kt.innerHTML="The quick brown fox jumps over the lazy dog",Xe.appendChild(Kt),q.appendChild(Xe),M.fontBoxes.push(q)}),$},S.prototype.setCurrentFont=function(M,$){var te=this;this.currentFont=M,this.fontBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},S}(ue),Et=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.color="transparent",q.padding=5,q.DEFAULT_TEXT="your text here",q.text=q.DEFAULT_TEXT,q.isMoved=!1,q.color=te.defaultColor,q.fontFamily=te.defaultFontFamily,q.defaultSize={x:100,y:30},q.setColor=q.setColor.bind(q),q.setFont=q.setFont.bind(q),q.renderText=q.renderText.bind(q),q.sizeText=q.sizeText.bind(q),q.textEditDivClicked=q.textEditDivClicked.bind(q),q.showTextEditor=q.showTextEditor.bind(q),q.setSize=q.setSize.bind(q),q.positionTextEditor=q.positionTextEditor.bind(q),q.colorPanel=new be("Color",te.defaultColorSet,te.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q}return Be(S,J),S.prototype.ownsTarget=function(M){if(J.prototype.ownsTarget.call(this,M)||M===this.visual||M===this.textElement||M===this.bgRectangle)return!0;var $=!1;return this.textElement.childNodes.forEach(function(te){te===M&&($=!0)}),$},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.bgRectangle=pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.isMoved=!1,this.pointerDownPoint=M,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(M),this._state="creating")},S.prototype.renderText=function(){var M=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function($){M.textElement.appendChild(pe.createTSpan($.trim()===""?" ":$.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},S.prototype.getTextScale=function(){var M=this.textElement.getBBox(),$=1;if(M.width>0&&M.height>0){var te=(1*this.width-this.width*this.padding*2/100)/M.width,q=(1*this.height-this.height*this.padding*2/100)/M.height;$=Math.min(te,q)}return $},S.prototype.getTextPosition=function(M){var $=this.textElement.getBBox(),te=0,q=0;return $.width>0&&$.height>0&&(te=(this.width-$.width*M)/2,q=this.height/2-$.height*M/2),{x:te,y:q}},S.prototype.sizeText=function(){var M=this.textElement.getBBox(),$=this.getTextScale(),te=this.getTextPosition($);te.y-=M.y*$,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+te.x+"px, "+te.y+"px) scale("+$+", "+$+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(te.x,te.y),this.textElement.transform.baseVal.getItem(1).setScale($,$))},S.prototype.manipulate=function(M){J.prototype.manipulate.call(this,M),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(M.x-this.pointerDownPoint.x)>5||Math.abs(M.y-this.pointerDownPoint.y)>5)},S.prototype.resize=function(M){J.prototype.resize.call(this,M),this.isMoved=!0,this.setSize(),this.sizeText()},S.prototype.setSize=function(){J.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},S.prototype.pointerUp=function(M){var $=this.state;$==="creating"&&(this._suppressMarkerCreateEvent=!0),J.prototype.pointerUp.call(this,M),this.setSize(),($==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},S.prototype.showTextEditor=function(){var M=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function($){$.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var $=Number.parseFloat(M.textEditor.style.fontSize);M.textEditor.clientWidth>=Number.parseInt(M.textEditor.style.maxWidth)&&$>.9;)$-=.1,M.textEditor.style.fontSize=Math.max($,.9)+"em"}),this.textEditor.addEventListener("keyup",function($){$.cancelBubble=!0}),this.textEditor.addEventListener("paste",function($){if($.clipboardData){var te=$.clipboardData.getData("text"),q=window.getSelection();if(!q.rangeCount)return!1;q.deleteFromDocument(),q.getRangeAt(0).insertNode(document.createTextNode(te)),$.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){M.textEditDivClicked(M.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},S.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var M=this.getTextScale(),$=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),te=this.textElement.getBBox(),q={x:te.width*M,y:te.height*M};$.x-=q.x/2,$.y-=q.y/2,this.textEditor.style.top=$.y+"px",this.textEditor.style.left=$.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-$.x+"px",this.textEditor.style.fontSize=Math.max(16*M,12)+"px",this.textElement.style.display="none"}},S.prototype.textEditDivClicked=function(M){this.text=M.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},S.prototype.select=function(){J.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},S.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),J.prototype.deselect.call(this)},S.prototype.dblClick=function(M,$){J.prototype.dblClick.call(this,M,$),this.showTextEditor()},S.prototype.setColor=function(M){this.textElement&&pe.setAttributes(this.textElement,[["fill",M]]),this.color=M,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(M)},S.prototype.setFont=function(M){this.textElement&&pe.setAttributes(this.textElement,[["font-family",M]]),this.fontFamily=M,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},S.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},S.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){var $=M;this.color=$.color,this.fontFamily=$.fontFamily,this.padding=$.padding,this.text=$.text,this.createVisual(),J.prototype.restoreState.call(this,M),this.setSize()},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.setSize(),this.sizeText(),this.positionTextEditor()},S.typeName="TextMarker",S.title="Text marker",S.icon='',S}(It),Fe=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.color="transparent",q.lineWidth=3,q.drawing=!1,q.pixelRatio=1,q.color=te.defaultColor,q.lineWidth=te.defaultStrokeWidth,q.pixelRatio=te.freehandPixelRatio,q.setColor=q.setColor.bind(q),q.addCanvas=q.addCanvas.bind(q),q.finishCreation=q.finishCreation.bind(q),q.setLineWidth=q.setLineWidth.bind(q),q.colorPanel=new be("Color",te.defaultColorSet,te.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.lineWidthPanel=new Zt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.lineWidthPanel.onWidthChanged=q.setLineWidth,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual&&M!==this.drawingImage)},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.drawingImage=pe.createImage(),this.visual.appendChild(this.drawingImage);var M=pe.createTransform();this.visual.transform.baseVal.appendItem(M),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(M.x,M.y),this.drawing=!0):J.prototype.pointerDown.call(this,M,$)},S.prototype.manipulate=function(M){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(M.x,M.y),this.canvasContext.stroke()):J.prototype.manipulate.call(this,M)},S.prototype.resize=function(M){J.prototype.resize.call(this,M),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(M){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):J.prototype.pointerUp.call(this,M)},S.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},S.prototype.select=function(){this.state==="creating"&&this.finishCreation(),J.prototype.select.call(this)},S.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),J.prototype.deselect.call(this)},S.prototype.finishCreation=function(){for(var M=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),$=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],te=$[0],q=$[1],Xe=$[2],Kt=$[3],yn=!1,In=0;In0&&(yn=!0,InKt&&(Kt=In),Xt>Xe&&(Xe=Xt));if(yn){this.left=te/this.pixelRatio,this.top=q/this.pixelRatio,this.width=(Xe-te)/this.pixelRatio,this.height=(Kt-q)/this.pixelRatio;var rr=document.createElement("canvas");rr.width=Xe-te,rr.height=Kt-q,rr.getContext("2d").putImageData(this.canvasContext.getImageData(te,q,Xe-te,Kt-q),0,0),this.drawingImgUrl=rr.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},S.prototype.setDrawingImage=function(){pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},S.prototype.setColor=function(M){this.color=M,this.colorChanged(M)},S.prototype.setLineWidth=function(M){this.lineWidth=M},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({drawingImgUrl:this.drawingImgUrl},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){this.createVisual(),J.prototype.restoreState.call(this,M),this.drawingImgUrl=M.drawingImgUrl,this.setDrawingImage()},S.prototype.scale=function(M,$){J.prototype.scale.call(this,M,$),this.setDrawingImage()},S.typeName="FreehandMarker",S.title="Freehand marker",S.icon='',S}(It),Se=function(J){function S(M,$,te){var q=J.call(this,M,te||'')||this;return q.typeBoxes=[],q.currentType=$,q.setCurrentType=q.setCurrentType.bind(q),q}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");$.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2";for(var te=function(Kt){var yn="both";switch(Kt){case 0:yn="both";break;case 1:yn="start";break;case 2:yn="end";break;case 3:yn="none"}var In=document.createElement("div");if(In.style.display="flex",In.style.flexGrow="2",In.style.alignItems="center",In.style.justifyContent="space-between",In.style.padding="5px",In.style.borderWidth="2px",In.style.borderStyle="solid",In.style.borderColor=yn===q.currentType?q.uiStyleSettings.toolboxAccentColor:"transparent",In.addEventListener("click",function(){M.setCurrentType(yn,In)}),$.appendChild(In),yn==="both"||yn==="start"){var Xt=document.createElement("div");Xt.style.display="flex",Xt.style.alignItems="center",Xt.style.minHeight="20px",Xt.innerHTML=` - `,Yt.style.marginLeft="5px",Nn.appendChild(Yt)}var tr=document.createElement("div");tr.style.display="flex",tr.style.alignItems="center",tr.style.minHeight="20px",tr.style.flexGrow="2";var an=document.createElement("hr");if(an.style.minWidth="20px",an.style.border="0px",an.style.borderTop="3px solid "+(q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxColor:"#eeeeee"),an.style.flexGrow="2",tr.appendChild(an),Nn.appendChild(tr),gn==="both"||gn==="end"){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.minHeight="20px",Jt.innerHTML=` + `,Xt.style.marginLeft="5px",In.appendChild(Xt)}var rr=document.createElement("div");rr.style.display="flex",rr.style.alignItems="center",rr.style.minHeight="20px",rr.style.flexGrow="2";var nn=document.createElement("hr");if(nn.style.minWidth="20px",nn.style.border="0px",nn.style.borderTop="3px solid "+(q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxColor:"#eeeeee"),nn.style.flexGrow="2",rr.appendChild(nn),In.appendChild(rr),yn==="both"||yn==="end"){var Qt=document.createElement("div");Qt.style.display="flex",Qt.style.alignItems="center",Qt.style.minHeight="20px",Qt.innerHTML=` - `,Jt.style.marginRight="5px",Nn.appendChild(Jt)}q.typeBoxes.push(Nn)},q=this,Xe=0;Xe<4;Xe++)te(Xe);return $},S.prototype.setCurrentType=function(M,$){var te=this;this.currentType=M,this.typeBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings!==void 0?te.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},S}(ue),Oe=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.arrowType="end",q.arrowBaseHeight=10,q.arrowBaseWidth=10,q.getArrowPoints=q.getArrowPoints.bind(q),q.setArrowType=q.setArrowType.bind(q),q.arrowTypePanel=new Se("Arrow type","end"),q.arrowTypePanel.onArrowTypeChanged=q.setArrowType,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.arrow1&&M!==this.arrow2)},S.prototype.getArrowPoints=function(M,$){var te=this.arrowBaseWidth+2*this.strokeWidth,q=this.arrowBaseHeight+2*this.strokeWidth;return M-te/2+","+($+q/2)+" "+M+","+($-q/2)+" "+(M+te/2)+","+($+q/2)},S.prototype.createTips=function(){this.arrow1=pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow2)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="creating"&&this.createTips()},S.prototype.adjustVisual=function(){if(J.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var M=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.arrow1.transform.baseVal.getItem(0);$.setRotate(M,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem($,0);var te=this.arrow2.transform.baseVal.getItem(0);te.setRotate(M+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(te,0)}},S.prototype.setArrowType=function(M){this.arrowType=M,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({arrowType:this.arrowType},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.arrowType=$.arrowType,this.createTips(),this.adjustVisual()},S.typeName="ArrowMarker",S.title="Arrow marker",S.icon='',S}(kt),ce=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.fillColor=te.defaultFillColor,q.strokeWidth=0,q.fillPanel=new be("Color",te.defaultColorSet,te.defaultFillColor),q.fillPanel.onColorChanged=q.setFillColor,q}return Be(S,J),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="CoverMarker",S.title="Cover marker",S.icon='',S}(Nt),he=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.opacities=[],Xe.opacityBoxes=[],Xe.opacities=$,Xe.currentOpacity=te,Xe.setCurrentOpacity=Xe.setCurrentOpacity.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",$.style.justifyContent="space-between",this.opacities.forEach(function(te){var q=document.createElement("div");q.style.display="flex",q.style.alignItems="center",q.style.justifyContent="center",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.borderColor=te===M.currentOpacity?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentOpacity(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.innerText=100*te+"%",q.appendChild(Xe),M.opacityBoxes.push(q)}),$},S.prototype.setCurrentOpacity=function(M,$){var te=this;this.currentOpacity=M,this.opacityBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},S}(ue),Ce=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.setOpacity=q.setOpacity.bind(q),q.fillColor=te.defaultHighlightColor,q.strokeWidth=0,q.opacity=te.defaultHighlightOpacity,q.fillPanel=new be("Color",te.defaultColorSet,q.fillColor),q.fillPanel.onColorChanged=q.setFillColor,q.opacityPanel=new he("Opacity",te.defaultOpacitySteps,q.opacity),q.opacityPanel.onOpacityChanged=q.setOpacity,q}return Be(S,J),S.prototype.setOpacity=function(M){this.opacity=M,this.visual&&pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="HighlightMarker",S.title="Highlight marker",S.icon='',S}(ce),Le='',at=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.bgColor="transparent",q.tipPosition={x:0,y:0},q.tipBase1Position={x:0,y:0},q.tipBase2Position={x:0,y:0},q.tipMoving=!1,q.color=te.defaultStrokeColor,q.bgColor=te.defaultFillColor,q.fontFamily=te.defaultFontFamily,q.defaultSize={x:100,y:30},q.setBgColor=q.setBgColor.bind(q),q.getTipPoints=q.getTipPoints.bind(q),q.positionTip=q.positionTip.bind(q),q.setTipPoints=q.setTipPoints.bind(q),q.colorPanel=new be("Text color",te.defaultColorSet,q.color,''),q.colorPanel.onColorChanged=q.setColor,q.bgColorPanel=new be("Fill color",te.defaultColorSet,q.bgColor,Le),q.bgColorPanel.onColorChanged=q.setBgColor,q.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q.tipGrip=new Tt,q.tipGrip.visual.transform.baseVal.appendItem(pe.createTransform()),q.controlBox.appendChild(q.tipGrip.visual),q}return Be(S,J),S.prototype.ownsTarget=function(M){return J.prototype.ownsTarget.call(this,M)||this.tipGrip.ownsTarget(M)||this.tip===M},S.prototype.createTip=function(){pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},S.prototype.pointerDown=function(M,$){this.state==="new"&&J.prototype.pointerDown.call(this,M,$),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget($)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):J.prototype.pointerDown.call(this,M,$)},S.prototype.pointerUp=function(M){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,J.prototype.pointerUp.call(this,M);else{var $=this.state==="creating";J.prototype.pointerUp.call(this,M),this.setTipPoints($),this.positionTip()}},S.prototype.manipulate=function(M){if(this.tipMoving){var $=this.unrotatePoint(M);this.tipPosition={x:$.x-this.manipulationStartLeft,y:$.y-this.manipulationStartTop},this.positionTip()}else J.prototype.manipulate.call(this,M)},S.prototype.setBgColor=function(M){this.bgRectangle&&this.tip&&(pe.setAttributes(this.bgRectangle,[["fill",M]]),pe.setAttributes(this.tip,[["fill",M]])),this.bgColor=M,this.fillColorChanged(M)},S.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},S.prototype.setTipPoints=function(M){M===void 0&&(M=!1);var $=Math.min(this.height/2,15),te=this.height/5;M&&(this.tipPosition={x:$+te/2,y:this.height+20});var q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?q.1)){var M=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.tip1.transform.baseVal.getItem(0);$.setRotate(M,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem($,0);var te=this.tip2.transform.baseVal.getItem(0);te.setRotate(M+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(te,0)}},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M),this.createTips(),this.adjustVisual()},S.typeName="MeasurementMarker",S.title="Measurement marker",S.icon='',S}(kt),en=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokePanel.colors=te.defaultColorSet,q.fillColor="transparent",q}return Be(S,J),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="EllipseFrameMarker",S.title="Ellipse frame marker",S.icon='',S}(et),pn=function(){function J(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),J.prototype.addUndoStep=function(S){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(S)||(this.undoStack.push(S),JSON.stringify(this.lastRedoStep)!==JSON.stringify(S)&&this.redoStack.splice(0,this.redoStack.length))},J.prototype.replaceLastUndoStep=function(S){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=S)},J.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},J.prototype.undo=function(){if(this.undoStack.length>1){var S=this.undoStack.pop();return S!==void 0&&this.redoStack.push(S),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},J.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},J}(),on=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.curveX=0,q.curveY=0,q.manipulationStartCurveX=0,q.manipulationStartCurveY=0,q.setStrokeColor=q.setStrokeColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.positionGrips=q.positionGrips.bind(q),q.addControlGrips=q.addControlGrips.bind(q),q.adjustVisual=q.adjustVisual.bind(q),q.setupControlBox=q.setupControlBox.bind(q),q.resize=q.resize.bind(q),q.strokeColor=te.defaultColor,q.strokeWidth=te.defaultStrokeWidth,q.strokeDasharray=te.defaultStrokeDasharray,q.strokePanel=new be("Line color",te.defaultColorSet,te.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new qt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new hn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual&&M!==this.selectorCurve&&M!==this.visibleCurve&&!this.curveGrip.ownsTarget(M))},S.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorCurve=pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=M.x,this.curveY=M.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget($)&&(this.activeGrip=this.curveGrip,this._state="resize")},S.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setupControlBox=function(){J.prototype.setupControlBox.call(this),this.curveControlLine1=pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},S.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,J.prototype.addControlGrips.call(this)},S.prototype.positionGrips=function(){J.prototype.positionGrips.call(this);var M=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-M/2,this.curveY-M/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},S.prototype.manipulate=function(M){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+M.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+M.y-this.manipulationStartY),J.prototype.manipulate.call(this,M)},S.prototype.resize=function(M){this.activeGrip===this.curveGrip&&(this.curveX=M.x,this.curveY=M.y),J.prototype.resize.call(this,M),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},S.prototype.setStrokeColor=function(M){this.strokeColor=M,this.adjustVisual(),this.colorChanged(M)},S.prototype.setStrokeWidth=function(M){this.strokeWidth=M,this.adjustVisual()},S.prototype.setStrokeDasharray=function(M){this.strokeDasharray=M,this.adjustVisual()},S.prototype.scale=function(M,$){this.curveX=this.curveX*M,this.curveY=this.curveY*$,J.prototype.scale.call(this,M,$)},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.curveX=$.curveX,this.curveY=$.curveY,this.createVisual(),this.adjustVisual()},S.typeName="CurveMarker",S.title="Curve marker",S.icon='',S}(pt),Kt=function(){function J(S,M){M===void 0&&(M=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=S,this.cancelable=M}return Object.defineProperty(J.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),J.prototype.preventDefault=function(){this._defaultPrevented=!0},J}(),bt=function(J){function S(M,$,te){var q=J.call(this,M,!1)||this;return q.dataUrl=$,q.state=te,q}return Be(S,J),S}(Kt),xt=function(J){function S(M,$,te){te===void 0&&(te=!1);var q=J.call(this,M,te)||this;return q.marker=$,q}return Be(S,J),S}(Kt),ct=function(){function J(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return J.prototype.addEventListener=function(S,M){this[S].push(M)},J.prototype.removeEventListener=function(S,M){var $=this[S].indexOf(M);$>-1&&this[S].splice($,1)},J}(),ge=function(){function J(S){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new He,this._isOpen=!1,this.undoRedoManager=new pn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=J.instanceCounter++,this.styles=new $e(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=S,this.targetRoot=document.body,this.width=S.clientWidth,this.height=S.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(J.prototype,"ALL_MARKER_TYPES",{get:function(){return[nt,Fe,Oe,Et,en,et,Ce,at,Rt,ce,kt,on]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[nt,Fe,Oe,Et,et,Ce,at]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"BASIC_MARKER_TYPES",{get:function(){return[nt,Fe,Oe,Et,Ce]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(S){var M=this;this._availableMarkerTypes.splice(0),S.forEach(function($){if(typeof $=="string"){var te=M.ALL_MARKER_TYPES.find(function(q){return q.typeName===$});te!==void 0&&M._availableMarkerTypes.push(te)}else M._availableMarkerTypes.push($)})},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(S){this._zoomLevel=S,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},J.prototype.show=function(){var S=this;this.styles.styleSheetRoot===void 0&&ve.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ve.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(M){return M(new Kt(S))})},J.prototype.render=function(){return qe(this,void 0,void 0,function(){var S;return Ve(this,function(M){switch(M.label){case 0:return this.setCurrentMarker(),(S=new we).naturalSize=this.renderAtNaturalSize,S.imageType=this.renderImageType,S.imageQuality=this.renderImageQuality,S.markersOnly=this.renderMarkersOnly,S.width=this.renderWidth,S.height=this.renderHeight,[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return M.sent(),[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,M.sent()]}})})},J.prototype.close=function(S){var M=this;if(S===void 0&&(S=!1),this.isOpen){var $=!1;S||this.eventListeners.beforeclose.forEach(function(te){var q=new Kt(M,!0);te(q),q.defaultPrevented&&($=!0)}),$||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(te){return te(new Kt(M))}),this.detachEvents(),this._isOpen=!1)}},J.prototype.addMarkersToToolbar=function(){for(var S,M=[],$=0;$this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*S:this.editorCanvas.clientWidth,$=M',S.title="Powered by marker.js",S.style.display="grid",S.style.alignItems="center",S.style.justifyItems="center",S.style.padding="3px",S.style.width="20px",S.style.height="20px",this.logoUI.appendChild(S),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},J.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},J.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},J.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},J.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new G(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(S),1),S.dispose()},J.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},J.prototype.toolbarButtonClicked=function(S,M){if(S==="marker"&&M!==void 0)this.createNewMarker(M);else if(S==="action")switch(M){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},J.prototype.deleteSelectedMarker=function(){var S=this;if(this._currentMarker!==void 0){var M=!1;if(this.eventListeners.markerbeforedelete.forEach(function(te){var q=new xt(S,S._currentMarker,!0);te(q),q.defaultPrevented&&(M=!0)}),!M){var $=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(te){return te(new xt(S,$))})}}},J.prototype.clear=function(){var S=this,M=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Xe){var zt=new xt(S,void 0,!0);Xe(zt),zt.defaultPrevented&&(M=!0)}),!M)){this.setCurrentMarker();for(var $=function(Xe){var zt=te.markers[Xe];te.setCurrentMarker(te.markers[Xe]),te._currentMarker.dispose(),te.markerImage.removeChild(te._currentMarker.container),te.markers.splice(te.markers.indexOf(te._currentMarker),1),te.eventListeners.markerdelete.forEach(function(gn){return gn(new xt(S,zt))})},te=this,q=this.markers.length-1;q>=0;q--)$(q);this.addUndoStep()}},Object.defineProperty(J.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),J.prototype.showNotesEditor=function(){var S;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(S=this._currentMarker.notes)!==null&&S!==void 0?S:"",this.overlayContainer.appendChild(this.notesArea))},J.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},J.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},J.prototype.addUndoStep=function(){var S=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var M=this.getState(),$=this.undoRedoManager.getLastUndoStep();if(!$||$.width===M.width&&$.height===M.height){var te=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(M),te1&&this.panTo({x:S.clientX,y:S.clientY}))},J.prototype.onPointerUp=function(S){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(S.clientX,S.clientY)),this.isDragging=!1,this.addUndoStep()},J.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},J.prototype.onKeyUp=function(S){this._currentMarker===void 0||this.notesArea!==void 0||S.key!=="Delete"&&S.key!=="Backspace"||this.deleteSelectedMarker()},J.prototype.clientToLocalCoordinates=function(S,M){var $=this.markerImage.getBoundingClientRect();return{x:(S-$.left)/this.zoomLevel,y:(M-$.top)/this.zoomLevel}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},J.prototype.addLicenseKey=function(S){se.addKey(S)},J.prototype.addEventListener=function(S,M){this.eventListeners.addEventListener(S,M)},J.prototype.removeEventListener=function(S,M){this.eventListeners.removeEventListener(S,M)},J.prototype.renderState=function(S){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(S),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(J.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),J.prototype.focus=function(){var S=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(M){return M(new Kt(S))}))},J.prototype.blur=function(){var S=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(M){return M(new Kt(S))}))},J.instanceCounter=0,J}();/* ********************************** + `,Qt.style.marginRight="5px",In.appendChild(Qt)}q.typeBoxes.push(In)},q=this,Xe=0;Xe<4;Xe++)te(Xe);return $},S.prototype.setCurrentType=function(M,$){var te=this;this.currentType=M,this.typeBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings!==void 0?te.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},S}(ue),Oe=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.arrowType="end",q.arrowBaseHeight=10,q.arrowBaseWidth=10,q.getArrowPoints=q.getArrowPoints.bind(q),q.setArrowType=q.setArrowType.bind(q),q.arrowTypePanel=new Se("Arrow type","end"),q.arrowTypePanel.onArrowTypeChanged=q.setArrowType,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.arrow1&&M!==this.arrow2)},S.prototype.getArrowPoints=function(M,$){var te=this.arrowBaseWidth+2*this.strokeWidth,q=this.arrowBaseHeight+2*this.strokeWidth;return M-te/2+","+($+q/2)+" "+M+","+($-q/2)+" "+(M+te/2)+","+($+q/2)},S.prototype.createTips=function(){this.arrow1=pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow2)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.state==="creating"&&this.createTips()},S.prototype.adjustVisual=function(){if(J.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var M=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.arrow1.transform.baseVal.getItem(0);$.setRotate(M,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem($,0);var te=this.arrow2.transform.baseVal.getItem(0);te.setRotate(M+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(te,0)}},S.prototype.setArrowType=function(M){this.arrowType=M,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({arrowType:this.arrowType},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.arrowType=$.arrowType,this.createTips(),this.adjustVisual()},S.typeName="ArrowMarker",S.title="Arrow marker",S.icon='',S}(Mt),ce=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.fillColor=te.defaultFillColor,q.strokeWidth=0,q.fillPanel=new be("Color",te.defaultColorSet,te.defaultFillColor),q.fillPanel.onColorChanged=q.setFillColor,q}return Be(S,J),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="CoverMarker",S.title="Cover marker",S.icon='',S}(Nt),he=function(J){function S(M,$,te,q){var Xe=J.call(this,M,q||'')||this;return Xe.opacities=[],Xe.opacityBoxes=[],Xe.opacities=$,Xe.currentOpacity=te,Xe.setCurrentOpacity=Xe.setCurrentOpacity.bind(Xe),Xe}return Be(S,J),S.prototype.getUi=function(){var M=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",$.style.justifyContent="space-between",this.opacities.forEach(function(te){var q=document.createElement("div");q.style.display="flex",q.style.alignItems="center",q.style.justifyContent="center",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.borderColor=te===M.currentOpacity?M.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){M.setCurrentOpacity(te,q)}),$.appendChild(q);var Xe=document.createElement("div");Xe.innerText=100*te+"%",q.appendChild(Xe),M.opacityBoxes.push(q)}),$},S.prototype.setCurrentOpacity=function(M,$){var te=this;this.currentOpacity=M,this.opacityBoxes.forEach(function(q){q.style.borderColor=q===$?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},S}(ue),Ce=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.setOpacity=q.setOpacity.bind(q),q.fillColor=te.defaultHighlightColor,q.strokeWidth=0,q.opacity=te.defaultHighlightOpacity,q.fillPanel=new be("Color",te.defaultColorSet,q.fillColor),q.fillPanel.onColorChanged=q.setFillColor,q.opacityPanel=new he("Opacity",te.defaultOpacitySteps,q.opacity),q.opacityPanel.onOpacityChanged=q.setOpacity,q}return Be(S,J),S.prototype.setOpacity=function(M){this.opacity=M,this.visual&&pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="HighlightMarker",S.title="Highlight marker",S.icon='',S}(ce),Le='',at=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.bgColor="transparent",q.tipPosition={x:0,y:0},q.tipBase1Position={x:0,y:0},q.tipBase2Position={x:0,y:0},q.tipMoving=!1,q.color=te.defaultStrokeColor,q.bgColor=te.defaultFillColor,q.fontFamily=te.defaultFontFamily,q.defaultSize={x:100,y:30},q.setBgColor=q.setBgColor.bind(q),q.getTipPoints=q.getTipPoints.bind(q),q.positionTip=q.positionTip.bind(q),q.setTipPoints=q.setTipPoints.bind(q),q.colorPanel=new be("Text color",te.defaultColorSet,q.color,''),q.colorPanel.onColorChanged=q.setColor,q.bgColorPanel=new be("Fill color",te.defaultColorSet,q.bgColor,Le),q.bgColorPanel.onColorChanged=q.setBgColor,q.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q.tipGrip=new Tt,q.tipGrip.visual.transform.baseVal.appendItem(pe.createTransform()),q.controlBox.appendChild(q.tipGrip.visual),q}return Be(S,J),S.prototype.ownsTarget=function(M){return J.prototype.ownsTarget.call(this,M)||this.tipGrip.ownsTarget(M)||this.tip===M},S.prototype.createTip=function(){pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},S.prototype.pointerDown=function(M,$){this.state==="new"&&J.prototype.pointerDown.call(this,M,$),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget($)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):J.prototype.pointerDown.call(this,M,$)},S.prototype.pointerUp=function(M){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,J.prototype.pointerUp.call(this,M);else{var $=this.state==="creating";J.prototype.pointerUp.call(this,M),this.setTipPoints($),this.positionTip()}},S.prototype.manipulate=function(M){if(this.tipMoving){var $=this.unrotatePoint(M);this.tipPosition={x:$.x-this.manipulationStartLeft,y:$.y-this.manipulationStartTop},this.positionTip()}else J.prototype.manipulate.call(this,M)},S.prototype.setBgColor=function(M){this.bgRectangle&&this.tip&&(pe.setAttributes(this.bgRectangle,[["fill",M]]),pe.setAttributes(this.tip,[["fill",M]])),this.bgColor=M,this.fillColorChanged(M)},S.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},S.prototype.setTipPoints=function(M){M===void 0&&(M=!1);var $=Math.min(this.height/2,15),te=this.height/5;M&&(this.tipPosition={x:$+te/2,y:this.height+20});var q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?q.1)){var M=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.tip1.transform.baseVal.getItem(0);$.setRotate(M,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem($,0);var te=this.tip2.transform.baseVal.getItem(0);te.setRotate(M+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(te,0)}},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M),this.createTips(),this.adjustVisual()},S.typeName="MeasurementMarker",S.title="Measurement marker",S.icon='',S}(Mt),qt=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokePanel.colors=te.defaultColorSet,q.fillColor="transparent",q}return Be(S,J),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=J.prototype.getState.call(this);return M.typeName=S.typeName,M},S.typeName="EllipseFrameMarker",S.title="Ellipse frame marker",S.icon='',S}(et),pn=function(){function J(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),J.prototype.addUndoStep=function(S){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(S)||(this.undoStack.push(S),JSON.stringify(this.lastRedoStep)!==JSON.stringify(S)&&this.redoStack.splice(0,this.redoStack.length))},J.prototype.replaceLastUndoStep=function(S){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=S)},J.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},J.prototype.undo=function(){if(this.undoStack.length>1){var S=this.undoStack.pop();return S!==void 0&&this.redoStack.push(S),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},J.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},J}(),an=function(J){function S(M,$,te){var q=J.call(this,M,$,te)||this;return q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.curveX=0,q.curveY=0,q.manipulationStartCurveX=0,q.manipulationStartCurveY=0,q.setStrokeColor=q.setStrokeColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.positionGrips=q.positionGrips.bind(q),q.addControlGrips=q.addControlGrips.bind(q),q.adjustVisual=q.adjustVisual.bind(q),q.setupControlBox=q.setupControlBox.bind(q),q.resize=q.resize.bind(q),q.strokeColor=te.defaultColor,q.strokeWidth=te.defaultStrokeWidth,q.strokeDasharray=te.defaultStrokeDasharray,q.strokePanel=new be("Line color",te.defaultColorSet,te.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new Zt("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new fn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return Be(S,J),S.prototype.ownsTarget=function(M){return!(!J.prototype.ownsTarget.call(this,M)&&M!==this.visual&&M!==this.selectorCurve&&M!==this.visibleCurve&&!this.curveGrip.ownsTarget(M))},S.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},S.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorCurve=pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(M,$){J.prototype.pointerDown.call(this,M,$),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=M.x,this.curveY=M.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget($)&&(this.activeGrip=this.curveGrip,this._state="resize")},S.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setupControlBox=function(){J.prototype.setupControlBox.call(this),this.curveControlLine1=pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},S.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,J.prototype.addControlGrips.call(this)},S.prototype.positionGrips=function(){J.prototype.positionGrips.call(this);var M=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-M/2,this.curveY-M/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},S.prototype.manipulate=function(M){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+M.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+M.y-this.manipulationStartY),J.prototype.manipulate.call(this,M)},S.prototype.resize=function(M){this.activeGrip===this.curveGrip&&(this.curveX=M.x,this.curveY=M.y),J.prototype.resize.call(this,M),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},S.prototype.setStrokeColor=function(M){this.strokeColor=M,this.adjustVisual(),this.colorChanged(M)},S.prototype.setStrokeWidth=function(M){this.strokeWidth=M,this.adjustVisual()},S.prototype.setStrokeDasharray=function(M){this.strokeDasharray=M,this.adjustVisual()},S.prototype.scale=function(M,$){this.curveX=this.curveX*M,this.curveY=this.curveY*$,J.prototype.scale.call(this,M,$)},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var M=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},J.prototype.getState.call(this));return M.typeName=S.typeName,M},S.prototype.restoreState=function(M){J.prototype.restoreState.call(this,M);var $=M;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.curveX=$.curveX,this.curveY=$.curveY,this.createVisual(),this.adjustVisual()},S.typeName="CurveMarker",S.title="Curve marker",S.icon='',S}(pt),Ht=function(){function J(S,M){M===void 0&&(M=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=S,this.cancelable=M}return Object.defineProperty(J.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),J.prototype.preventDefault=function(){this._defaultPrevented=!0},J}(),bt=function(J){function S(M,$,te){var q=J.call(this,M,!1)||this;return q.dataUrl=$,q.state=te,q}return Be(S,J),S}(Ht),xt=function(J){function S(M,$,te){te===void 0&&(te=!1);var q=J.call(this,M,te)||this;return q.marker=$,q}return Be(S,J),S}(Ht),ct=function(){function J(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return J.prototype.addEventListener=function(S,M){this[S].push(M)},J.prototype.removeEventListener=function(S,M){var $=this[S].indexOf(M);$>-1&&this[S].splice($,1)},J}(),ge=function(){function J(S){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new He,this._isOpen=!1,this.undoRedoManager=new pn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=J.instanceCounter++,this.styles=new $e(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=S,this.targetRoot=document.body,this.width=S.clientWidth,this.height=S.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(J.prototype,"ALL_MARKER_TYPES",{get:function(){return[nt,Fe,Oe,Et,qt,et,Ce,at,Rt,ce,Mt,an]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[nt,Fe,Oe,Et,et,Ce,at]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"BASIC_MARKER_TYPES",{get:function(){return[nt,Fe,Oe,Et,Ce]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(S){var M=this;this._availableMarkerTypes.splice(0),S.forEach(function($){if(typeof $=="string"){var te=M.ALL_MARKER_TYPES.find(function(q){return q.typeName===$});te!==void 0&&M._availableMarkerTypes.push(te)}else M._availableMarkerTypes.push($)})},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(S){this._zoomLevel=S,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},J.prototype.show=function(){var S=this;this.styles.styleSheetRoot===void 0&&ve.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ve.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(M){return M(new Ht(S))})},J.prototype.render=function(){return qe(this,void 0,void 0,function(){var S;return Ve(this,function(M){switch(M.label){case 0:return this.setCurrentMarker(),(S=new we).naturalSize=this.renderAtNaturalSize,S.imageType=this.renderImageType,S.imageQuality=this.renderImageQuality,S.markersOnly=this.renderMarkersOnly,S.width=this.renderWidth,S.height=this.renderHeight,[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return M.sent(),[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,M.sent()]}})})},J.prototype.close=function(S){var M=this;if(S===void 0&&(S=!1),this.isOpen){var $=!1;S||this.eventListeners.beforeclose.forEach(function(te){var q=new Ht(M,!0);te(q),q.defaultPrevented&&($=!0)}),$||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(te){return te(new Ht(M))}),this.detachEvents(),this._isOpen=!1)}},J.prototype.addMarkersToToolbar=function(){for(var S,M=[],$=0;$this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*S:this.editorCanvas.clientWidth,$=M',S.title="Powered by marker.js",S.style.display="grid",S.style.alignItems="center",S.style.justifyItems="center",S.style.padding="3px",S.style.width="20px",S.style.height="20px",this.logoUI.appendChild(S),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},J.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},J.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},J.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},J.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new G(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(S),1),S.dispose()},J.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},J.prototype.toolbarButtonClicked=function(S,M){if(S==="marker"&&M!==void 0)this.createNewMarker(M);else if(S==="action")switch(M){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},J.prototype.deleteSelectedMarker=function(){var S=this;if(this._currentMarker!==void 0){var M=!1;if(this.eventListeners.markerbeforedelete.forEach(function(te){var q=new xt(S,S._currentMarker,!0);te(q),q.defaultPrevented&&(M=!0)}),!M){var $=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(te){return te(new xt(S,$))})}}},J.prototype.clear=function(){var S=this,M=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Xe){var Kt=new xt(S,void 0,!0);Xe(Kt),Kt.defaultPrevented&&(M=!0)}),!M)){this.setCurrentMarker();for(var $=function(Xe){var Kt=te.markers[Xe];te.setCurrentMarker(te.markers[Xe]),te._currentMarker.dispose(),te.markerImage.removeChild(te._currentMarker.container),te.markers.splice(te.markers.indexOf(te._currentMarker),1),te.eventListeners.markerdelete.forEach(function(yn){return yn(new xt(S,Kt))})},te=this,q=this.markers.length-1;q>=0;q--)$(q);this.addUndoStep()}},Object.defineProperty(J.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),J.prototype.showNotesEditor=function(){var S;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(S=this._currentMarker.notes)!==null&&S!==void 0?S:"",this.overlayContainer.appendChild(this.notesArea))},J.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},J.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},J.prototype.addUndoStep=function(){var S=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var M=this.getState(),$=this.undoRedoManager.getLastUndoStep();if(!$||$.width===M.width&&$.height===M.height){var te=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(M),te1&&this.panTo({x:S.clientX,y:S.clientY}))},J.prototype.onPointerUp=function(S){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(S.clientX,S.clientY)),this.isDragging=!1,this.addUndoStep()},J.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},J.prototype.onKeyUp=function(S){this._currentMarker===void 0||this.notesArea!==void 0||S.key!=="Delete"&&S.key!=="Backspace"||this.deleteSelectedMarker()},J.prototype.clientToLocalCoordinates=function(S,M){var $=this.markerImage.getBoundingClientRect();return{x:(S-$.left)/this.zoomLevel,y:(M-$.top)/this.zoomLevel}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},J.prototype.addLicenseKey=function(S){se.addKey(S)},J.prototype.addEventListener=function(S,M){this.eventListeners.addEventListener(S,M)},J.prototype.removeEventListener=function(S,M){this.eventListeners.removeEventListener(S,M)},J.prototype.renderState=function(S){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(S),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(J.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),J.prototype.focus=function(){var S=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(M){return M(new Ht(S))}))},J.prototype.blur=function(){var S=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(M){return M(new Ht(S))}))},J.instanceCounter=0,J}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -148,7 +148,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ne=function(J,S){return(Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,$){M.__proto__=$}||function(M,$){for(var te in $)Object.prototype.hasOwnProperty.call($,te)&&(M[te]=$[te])})(J,S)};function Ct(J,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function M(){this.constructor=J}Ne(J,S),J.prototype=S===null?Object.create(S):(M.prototype=S.prototype,new M)}function dt(J,S,M,$){return new(M||(M=Promise))(function(te,q){function Xe(Nn){try{gn($.next(Nn))}catch(Yt){q(Yt)}}function zt(Nn){try{gn($.throw(Nn))}catch(Yt){q(Yt)}}function gn(Nn){var Yt;Nn.done?te(Nn.value):(Yt=Nn.value,Yt instanceof M?Yt:new M(function(tr){tr(Yt)})).then(Xe,zt)}gn(($=$.apply(J,S||[])).next())})}function tn(J,S){var M,$,te,q,Xe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return q={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function zt(gn){return function(Nn){return function(Yt){if(M)throw new TypeError("Generator is already executing.");for(;Xe;)try{if(M=1,$&&(te=2&Yt[0]?$.return:Yt[0]?$.throw||((te=$.return)&&te.call($),0):$.next)&&!(te=te.call($,Yt[1])).done)return te;switch($=0,te&&(Yt=[2&Yt[0],te.value]),Yt[0]){case 0:case 1:te=Yt;break;case 4:return Xe.label++,{value:Yt[1],done:!1};case 5:Xe.label++,$=Yt[1],Yt=[0];continue;case 7:Yt=Xe.ops.pop(),Xe.trys.pop();continue;default:if(!(te=Xe.trys,(te=te.length>0&&te[te.length-1])||Yt[0]!==6&&Yt[0]!==2)){Xe=0;continue}if(Yt[0]===3&&(!te||Yt[1]>te[0]&&Yt[1]0&&te[te.length-1])||Xt[0]!==6&&Xt[0]!==2)){Xe=0;continue}if(Xt[0]===3&&(!te||Xt[1]>te[0]&&Xt[1]0&&M>0){var $=new Hr(S,M),te=$.ratio>=1?20:$.getHorizontalLength(20),q=$.ratio<1?20:$.getVerticalLength(20),Xe=document.createElementNS("http://www.w3.org/2000/svg","svg");Xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Xe.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Xe);var zt=it.createDefs();Xe.appendChild(zt);var gn=it.createElement("clipPath",[["id","text-bg-clip"]]);zt.appendChild(gn);var Nn=it.createPath(it.getHollowRectanglePath((24-te)/2,(24-q)/2,te,q,(24-te)/2+2,(24-q)/2+2,te-4,q-4));Xe.appendChild(Nn);var Yt=it.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Yt.appendChild(it.createTSpan(S+":"+M)),Xe.appendChild(Yt);var tr=Yt.getBBox();it.setAttributes(Yt,[["x",((24-tr.width)/2).toString()],["y",((24-tr.height)/2-tr.y).toString()]]);var an=it.createPath(it.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(tr.width))/2,(24-Math.ceil(tr.height))/2,Math.ceil(tr.width),Math.ceil(tr.height)));return gn.appendChild(an),it.setAttributes(Nn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Xe),Xe.outerHTML}return''},J}(),Ir=function(J){function S(M,$,te){var q=J.call(this,M,$)||this;return q.isDropdownOpen=!1,q.onClick=q.dropdownButtonClicked,q.dropdownButtons=te,q}return Ct(S,J),S.prototype.setupDropdown=function(){var M=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function($){$.className=M.className,$.colorsClassName=M.colorsClassName,M.dropdownBlock.appendChild($.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},S.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},S.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},S.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},S.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},S.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},S}(ar),pr=function(){function J(S,M){this.GRIP_SIZE=10,this.color=S,this.fillColor=M,this.visual=it.createGroup(),this.visual.appendChild(it.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(it.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(S){return S===this.visual||S===this.visual.childNodes[0]||S===this.visual.childNodes[1]},J.prototype.setCenter=function(S,M){this.visual.childNodes.forEach(function($){return it.setAttributes($,[["cx",S.toString()],["cy",M.toString()]])})},J}(),Br=function(){function J(S,M,$,te){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=S,this.canvasHeight=M,this.margin=$,this.container=te,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(J.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(S){this._aspectRatio=S,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(S){this._isGridVisible=S,this.gridContainer&&it.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(S){this._zoomFactor=S,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),J.prototype.open=function(){var S=this;this.cropShadeElement=it.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=it.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var M=0;Mthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-M.height/2),it.setAttributes(this.cropRectElement,[["x",M.x.toString()],["y",M.y.toString()],["width",M.width.toString()],["height",M.height.toString()]]);var $=M.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(q,Xe){var zt=M.y+$*(Xe+1);it.setAttributes(q,[["x1",""+M.x],["y1",""+zt],["x2",""+(M.x+M.width)],["y2",""+zt]])});var te=M.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(q,Xe){var zt=M.x+te*(Xe+1);it.setAttributes(q,[["x1",""+zt],["y1",""+M.y],["x2",""+zt],["y2",""+(M.y+M.height)]])}),it.setAttributes(this.cropShadeElement,[["d",it.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,M.x,M.y,M.width,M.height)]]),this.topLeftGrip.setCenter(M.x,M.y),this.topRightGrip.setCenter(M.x+M.width,M.y),this.bottomLeftGrip.setCenter(M.x,M.y+M.height),this.bottomRightGrip.setCenter(M.x+M.width,M.y+M.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},J.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},J.prototype.clientToLocalCoordinates=function(S,M){var $=this.container.getBoundingClientRect();return{x:S-$.left+this.margin,y:M-$.top+this.margin}},J.prototype.onPointerDown=function(S){this.container.setPointerCapture(S.pointerId),this.previousPoint=this.clientToLocalCoordinates(S.clientX,S.clientY),this.cropRectElement===S.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(S.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(S.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(S.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(S.target)&&(this.activeGrip=this.bottomRightGrip)},J.prototype.onPointerMove=function(S){if(this.isMoving)this.move(this.clientToLocalCoordinates(S.clientX,S.clientY));else if(this.activeGrip){var M=this.clientToLocalCoordinates(S.clientX,S.clientY);this.resize(M)}S.preventDefault()},J.prototype.onPointerUp=function(S){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(S.pointerId)},J.prototype.move=function(S){var M=S.x-this.previousPoint.x,$=S.y-this.previousPoint.y;this.zoomFactor!==1&&(M=-M/this.zoomFactor,$=-$/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+M),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+$),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=S},J.prototype.resize=function(S){var M=Object.assign({},this.cropRect),$=S.x-this.previousPoint.x,te=S.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:M.x+$this.canvasWidth*this.zoomFactor&&($=this.canvasWidth*this.zoomFactor-M.width),M.width+=$}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(M.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength($),M.height=this.aspectRatio.getVerticalLength(M.width)):(M.y+=te,M.height=this.cropRect.y+this.cropRect.height-M.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?M.height=this.aspectRatio.getVerticalLength(M.width):M.height+=te}M.width<10&&(M.x=this.cropRect.x,M.width=10),M.height<10&&(M.y=this.cropRect.y,M.height=10),this.previousPoint=S,M.x>=this.margin&&M.y>=this.margin&&M.x-this.margin+M.width<=this.canvasWidth&&M.y-this.margin+M.height<=this.canvasHeight&&(this.cropRect=M,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},J.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var S=this.cropRect.x+this.cropRect.width/2,M=this.cropRect.y+this.cropRect.height/2,$=this.aspectRatio.getHorizontalLength(this.cropRect.height),te=this.aspectRatio.getVerticalLength(this.cropRect.width);$/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=S-this.cropRect.width/2,this.cropRect.y=M-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},J.prototype.getRescaledRect=function(S,M,$,te,q,Xe){var zt=$/S,gn=te/M;return{x:(q.x-Xe)*zt+Xe,y:(q.y-Xe)*gn+Xe,width:q.width*zt,height:q.height*gn}},J.prototype.scaleCanvas=function(S,M){var $=this.getRescaledRect(this.canvasWidth,this.canvasHeight,S,M,this.cropRect,this.margin);this.canvasWidth=S,this.canvasHeight=M,this.onCropChange&&this.onCropChange($),this.setCropRectangle($)},J}(),Jr=function(){function J(S){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=S,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(J.prototype,"angle",{get:function(){return this._angle},set:function(S){this._angle=S,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),J.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},J.prototype.onPointerDown=function(S){this.controlContainer.setPointerCapture(S.pointerId),this.isDragging=!0,this.previousPoint={x:S.clientX,y:S.clientY}},J.prototype.onPointerMove=function(S){this.isDragging&&(this.onAngleChange&&this.onAngleChange((S.clientX-this.previousPoint.x)/5),this.previousPoint.x=S.clientX)},J.prototype.onPointerUp=function(S){this.isDragging&&this.onAngleChange&&this.onAngleChange((S.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(S.pointerId)},J.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var S=this.angleLabelText.getBBox();it.setAttributes(this.angleLabelElement,[["x",((this.width-S.width)/2).toString()],["y",(this.height/2).toString()]])}},J.prototype.positionScaleShape=function(){if(this.scaleShape){var S=this.scaleShape.transform.baseVal.getItem(0);S.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(S,0)}},J.prototype.getVisual=function(){var S=document.createElementNS("http://www.w3.org/2000/svg","svg");S.setAttribute("xmlns","http://www.w3.org/2000/svg"),S.setAttribute("width",this.width+"px"),S.setAttribute("height",this.height+"px"),S.setAttribute("viewBox","0 0 "+this.width+" "+this.height),S.style.flexShrink="0",document.body.appendChild(S);for(var M="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,$=1;$<=this.width/5+10;$++){var te=$%5==0?this.height/3:this.height/6;M+="h4v"+-te+"h1v"+te}M+="v1H0Z",this.scaleShape=it.createPath(M);var q=it.createTransform();this.scaleShape.transform.baseVal.appendItem(q),S.appendChild(this.scaleShape),this.angleLabelElement=it.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=it.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Xe=it.createTSpan("");return Xe.innerHTML="°",this.angleLabelElement.appendChild(Xe),S.appendChild(this.angleLabelElement),document.body.removeChild(S),S},J}(),la=function(){function J(){this.naturalSize=!1,this.imageType="image/png"}return J.prototype.rasterize=function(S,M,$,te,q,Xe,zt){var gn=this;return new Promise(function(Nn){var Yt=document.createElement("canvas");Yt.width=S.width.baseVal.value-2*te,Yt.height=S.height.baseVal.value-2*te;var tr=1,an=1;gn.naturalSize===!0?(tr=M.naturalWidth/(S.width.baseVal.value-2*te)/Xe,an=M.naturalHeight/(S.height.baseVal.value-2*te)/zt,Yt.width=M.naturalWidth/Xe,Yt.height=M.naturalHeight/zt):gn.width!==void 0&&gn.height!==void 0&&(tr=gn.width/$.width,an=gn.height/$.height,Yt.width*=tr,Yt.height*=an);var Jt=Yt.getContext("2d");Jt.translate(Yt.width/2,Yt.height/2),Jt.rotate(q*Math.PI/180),Jt.scale(Xe,zt),Jt.translate(-Yt.width/2,-Yt.height/2),Jt.drawImage(M,0,0,Yt.width,Yt.height);var cn=document.createElement("canvas");cn.width=$.width*tr,cn.height=$.height*an,cn.getContext("2d").putImageData(Jt.getImageData(($.x-te)*tr,($.y-te)*an,$.width*tr,$.height*an),0,0),Nn(cn.toDataURL(gn.imageType,gn.imageQuality))})},J}(),jt=function(){function J(S){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=J.instanceCounter++,this.styles=new vt(this.instanceNo),this.target=S,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(S){this._zoomToCropEnabled=S,S?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(S){this._isGridVisible=S,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"gridLines",{get:function(){return this._gridLines},set:function(S){this._gridLines=S,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(S){this._rotationAngle=S,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"aspectRatio",{get:function(){var S;return(S=this._aspectRatio)!==null&&S!==void 0?S:this.aspectRatios[0]},set:function(S){this._aspectRatio=S},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},J.prototype.show=function(){this.showUI(),this.open()},J.prototype.close=function(S){S===void 0&&(S=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),S||this.closeEventListeners.forEach(function(M){return M()}),this._isOpen=!1)},J.prototype.addRenderEventListener=function(S){this.renderEventListeners.push(S)},J.prototype.removeRenderEventListener=function(S){this.renderEventListeners.indexOf(S)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(S),1)},J.prototype.addCloseEventListener=function(S){this.closeEventListeners.push(S)},J.prototype.removeCloseEventListener=function(S){this.closeEventListeners.indexOf(S)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(S),1)},J.prototype.setupResizeObserver=function(){var S=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){S.resize(S.target.clientWidth,S.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},J.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var S=1*this.target.clientWidth/this.target.clientHeight,M=this.contentDiv.clientWidth/S>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*S:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,$=M+2*this.CANVAS_MARGINS+this.CANVAS_MARGIN?this.target.offsetTop-(S+this.CANVAS_MARGIN):0;this.coverDiv.style.top=M+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},J.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},J.prototype.addTopToolbar=function(){var S=this;this.topToolbar=new En,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var M=new fr;M.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(M);var $=[];this.aspectRatios.forEach(function(an){var Jt=new ar(ea.getIcon(an.horizontal,an.vertical),an.horizontal===0&&an.vertical===0?"FREE":an.horizontal+":"+an.vertical);Jt.onClick=function(){return S.ratioButtonClicked(an)},$.push(Jt)}),this.aspectRatioButton=new Ir(ea.getIcon(0,0),"Aspect ratio",$),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,M.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var te=new ar('',"Toggle grid");te.isActive=this.isGridVisible,te.onClick=function(){S.isGridVisible=!S.isGridVisible,te.isActive=S.isGridVisible},M.addButton(te);var q=new ar('',"Zoom to selection");if(q.isActive=this.zoomToCropEnabled,q.onClick=function(){S.zoomToCropEnabled=!S.zoomToCropEnabled,q.isActive=S.zoomToCropEnabled},M.addButton(q),!nn.isLicensed){var Xe=new Sn;this.topToolbar.addElementBlock(Xe);var zt=document.createElement("div");zt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var gn=document.createElement("a");gn.style.color="currentColor",gn.href="https://markerjs.com/products/cropro",gn.target="_blank",gn.innerHTML='',zt.appendChild(gn),Xe.addElement(zt)}var Nn=new fr;Nn.minWidth=3*this.toolbarHeight+"px",Nn.contentAlign="end",this.topToolbar.addButtonBlock(Nn);var Yt=new ar('',"OK");Yt.onClick=this.startRenderAndClose,Nn.addButton(Yt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Yt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var tr=new ar('',"Close");tr.onClick=this.close,Nn.addButton(tr),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(tr.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},J.prototype.addBottomToolbar=function(){var S=this;this.bottomToolbar=new En,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var M=new fr;M.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(M);var $=new ar('',"Rotate left");$.onClick=this.rotateLeftButtonClicked,M.addButton($);var te=new ar('',"Rotate right");te.onClick=this.rotateRightButtonClicked,M.addButton(te);var q=new Sn;q.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(q),this.straightener=new Jr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Nn){S.rotateBy(Nn),S.straightener.angle=S.rotationAngle},q.addElement(this.straightener.getUI());var Xe=new fr;Xe.minWidth=2*this.toolbarHeight+"px",Xe.contentAlign="end",this.bottomToolbar.addButtonBlock(Xe);var zt=new ar('',"Flip horizontal");zt.onClick=this.flipHorizontallyButtonClicked,Xe.addButton(zt);var gn=new ar('',"Flip vertical");gn.onClick=this.flipVerticallyButtonClicked,Xe.addButton(gn)},J.prototype.ratioButtonClicked=function(S){this.aspectRatio=S,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},J.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=ea.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},J.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Hr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},J.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},J.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},J.prototype.restoreState=function(S){if(S){var M=this.cropLayer.getRescaledRect(S.width,S.height,this.imageWidth,this.imageHeight,S.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(M),this.cropRectChanged(M),this.flippedHorizontally=S.flippedHorizontally,this.flippedVertically=S.flippedVertically,this.applyFlip(),this.rotationAngle=S.rotationAngle,this.applyRotation()}},J.prototype.clientToLocalCoordinates=function(S,M){var $=this.cropImage.getBoundingClientRect();return{x:S-$.left,y:M-$.top}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var S=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},J.prototype.rotateLeftButtonClicked=function(){var S=this.rotationAngle-90;this.rotationAngle%90!=0&&(S+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(S)},J.prototype.rotateRightButtonClicked=function(){var S=this.rotationAngle+90;this.rotationAngle%90!=0&&(S-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(S)},J.prototype.rotateTo=function(S){S=(S=S>180?S-360:S)<=-180?S+360:S,this.rotationAngle=S,this.applyRotation()},J.prototype.rotateBy=function(S){this.rotateTo((this.rotationAngle+S)%360)},J.prototype.applyRotation=function(){var S=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var M=this.editingTargetRotationContainer.transform.baseVal.getItem(0);M.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(M,0);var $=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/$.width,this.imageHeight/$.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=S},J.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},J.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},J.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},J.prototype.startRenderAndClose=function(){return dt(this,void 0,void 0,function(){var S,M;return tn(this,function($){switch($.label){case 0:return[4,this.render()];case 1:return S=$.sent(),M=this.getState(),this.renderEventListeners.forEach(function(te){return te(S,M)}),this.close(!0),[2]}})})},J.prototype.render=function(){return dt(this,void 0,void 0,function(){var S;return tn(this,function(M){switch(M.label){case 0:return(S=new la).naturalSize=this.renderAtNaturalSize,S.imageType=this.renderImageType,S.imageQuality=this.renderImageQuality,S.width=this.renderWidth,S.height=this.renderHeight,this.unzoomFromCrop(),it.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,S.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return M.sent(),[4,S.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,M.sent()]}})})},J.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new sn("toolbar",` + `))},J.prototype.removeStyleSheet=function(){var S;this.styleSheet&&(((S=this.styleSheetRoot)!==null&&S!==void 0?S:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},J}(),Ot=function(J,S){this.selector=J,this.style=S},on=function(J,S){this.localName=J,this.style=S},xn=function(){function J(){this.blocks=[],this.display=""}return J.prototype.addButtonBlock=function(S){S.className=this.blockClassName,S.buttonClassName=this.buttonClassName,S.buttonColorsClassName=this.buttonColorsClassName,S.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(S)},J.prototype.addElementBlock=function(S){S.className===void 0&&(S.className=this.blockClassName),this.blocks.push(S)},J.prototype.getUI=function(){var S=document.createElement("div");return S.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,S.style.display=this.display,this.blocks.forEach(function(M){return S.appendChild(M.getUI())}),S},J}(),lr=function(){function J(){}return J.prototype.getUI=function(){var S=document.createElement("div");if(S.className=this.className,this.minWidth!==void 0&&(S.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":S.style.justifyContent="flex-start";break;case"center":S.style.justifyContent="center";break;case"end":S.style.justifyContent="flex-end"}return S.style.whiteSpace="nowrap",S},J}(),fr=function(J){function S(){var M=J!==null&&J.apply(this,arguments)||this;return M.buttons=[],M}return Ct(S,J),S.prototype.addButton=function(M){M.className=this.buttonClassName,M.colorsClassName=this.buttonColorsClassName,M.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(M)},S.prototype.getUI=function(){var M=J.prototype.getUI.call(this);return this.buttons.forEach(function($){return M.appendChild($.getUI())}),M},S}(lr),ir=function(){function J(S,M){this._isActive=!1,this._isHidden=!1,this._icon=S,this.title=M,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(J.prototype,"icon",{get:function(){return this._icon},set:function(S){this._icon=S,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isActive",{get:function(){return this._isActive},set:function(S){this._isActive=S,this.adjustClassName()},enumerable:!1,configurable:!0}),J.prototype.getUI=function(){var S=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return S.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},J.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},J.prototype.hide=function(){this._isHidden=!0},J}(),Tn=function(J){function S(){var M=J!==null&&J.apply(this,arguments)||this;return M.elements=[],M}return Ct(S,J),S.prototype.addElement=function(M){this.elements.push(M)},S.prototype.getUI=function(){var M=J.prototype.getUI.call(this);return this.elements.forEach(function($){return M.appendChild($)}),M},S}(lr),Wr=function(){function J(S,M){this.horizontal=S,this.vertical=M}return Object.defineProperty(J.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),J.prototype.getVerticalLength=function(S){return S/this.ratio},J.prototype.getHorizontalLength=function(S){return S*this.ratio},J}(),ta=function(){function J(){}return J.getIcon=function(S,M){if(S>0&&M>0){var $=new Wr(S,M),te=$.ratio>=1?20:$.getHorizontalLength(20),q=$.ratio<1?20:$.getVerticalLength(20),Xe=document.createElementNS("http://www.w3.org/2000/svg","svg");Xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Xe.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Xe);var Kt=it.createDefs();Xe.appendChild(Kt);var yn=it.createElement("clipPath",[["id","text-bg-clip"]]);Kt.appendChild(yn);var In=it.createPath(it.getHollowRectanglePath((24-te)/2,(24-q)/2,te,q,(24-te)/2+2,(24-q)/2+2,te-4,q-4));Xe.appendChild(In);var Xt=it.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Xt.appendChild(it.createTSpan(S+":"+M)),Xe.appendChild(Xt);var rr=Xt.getBBox();it.setAttributes(Xt,[["x",((24-rr.width)/2).toString()],["y",((24-rr.height)/2-rr.y).toString()]]);var nn=it.createPath(it.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(rr.width))/2,(24-Math.ceil(rr.height))/2,Math.ceil(rr.width),Math.ceil(rr.height)));return yn.appendChild(nn),it.setAttributes(In,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Xe),Xe.outerHTML}return''},J}(),jr=function(J){function S(M,$,te){var q=J.call(this,M,$)||this;return q.isDropdownOpen=!1,q.onClick=q.dropdownButtonClicked,q.dropdownButtons=te,q}return Ct(S,J),S.prototype.setupDropdown=function(){var M=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function($){$.className=M.className,$.colorsClassName=M.colorsClassName,M.dropdownBlock.appendChild($.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},S.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},S.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},S.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},S.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},S.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},S}(ir),mr=function(){function J(S,M){this.GRIP_SIZE=10,this.color=S,this.fillColor=M,this.visual=it.createGroup(),this.visual.appendChild(it.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(it.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(S){return S===this.visual||S===this.visual.childNodes[0]||S===this.visual.childNodes[1]},J.prototype.setCenter=function(S,M){this.visual.childNodes.forEach(function($){return it.setAttributes($,[["cx",S.toString()],["cy",M.toString()]])})},J}(),Br=function(){function J(S,M,$,te){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=S,this.canvasHeight=M,this.margin=$,this.container=te,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(J.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(S){this._aspectRatio=S,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(S){this._isGridVisible=S,this.gridContainer&&it.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(S){this._zoomFactor=S,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),J.prototype.open=function(){var S=this;this.cropShadeElement=it.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=it.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var M=0;Mthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-M.height/2),it.setAttributes(this.cropRectElement,[["x",M.x.toString()],["y",M.y.toString()],["width",M.width.toString()],["height",M.height.toString()]]);var $=M.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(q,Xe){var Kt=M.y+$*(Xe+1);it.setAttributes(q,[["x1",""+M.x],["y1",""+Kt],["x2",""+(M.x+M.width)],["y2",""+Kt]])});var te=M.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(q,Xe){var Kt=M.x+te*(Xe+1);it.setAttributes(q,[["x1",""+Kt],["y1",""+M.y],["x2",""+Kt],["y2",""+(M.y+M.height)]])}),it.setAttributes(this.cropShadeElement,[["d",it.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,M.x,M.y,M.width,M.height)]]),this.topLeftGrip.setCenter(M.x,M.y),this.topRightGrip.setCenter(M.x+M.width,M.y),this.bottomLeftGrip.setCenter(M.x,M.y+M.height),this.bottomRightGrip.setCenter(M.x+M.width,M.y+M.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},J.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},J.prototype.clientToLocalCoordinates=function(S,M){var $=this.container.getBoundingClientRect();return{x:S-$.left+this.margin,y:M-$.top+this.margin}},J.prototype.onPointerDown=function(S){this.container.setPointerCapture(S.pointerId),this.previousPoint=this.clientToLocalCoordinates(S.clientX,S.clientY),this.cropRectElement===S.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(S.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(S.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(S.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(S.target)&&(this.activeGrip=this.bottomRightGrip)},J.prototype.onPointerMove=function(S){if(this.isMoving)this.move(this.clientToLocalCoordinates(S.clientX,S.clientY));else if(this.activeGrip){var M=this.clientToLocalCoordinates(S.clientX,S.clientY);this.resize(M)}S.preventDefault()},J.prototype.onPointerUp=function(S){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(S.pointerId)},J.prototype.move=function(S){var M=S.x-this.previousPoint.x,$=S.y-this.previousPoint.y;this.zoomFactor!==1&&(M=-M/this.zoomFactor,$=-$/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+M),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+$),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=S},J.prototype.resize=function(S){var M=Object.assign({},this.cropRect),$=S.x-this.previousPoint.x,te=S.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:M.x+$this.canvasWidth*this.zoomFactor&&($=this.canvasWidth*this.zoomFactor-M.width),M.width+=$}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(M.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength($),M.height=this.aspectRatio.getVerticalLength(M.width)):(M.y+=te,M.height=this.cropRect.y+this.cropRect.height-M.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?M.height=this.aspectRatio.getVerticalLength(M.width):M.height+=te}M.width<10&&(M.x=this.cropRect.x,M.width=10),M.height<10&&(M.y=this.cropRect.y,M.height=10),this.previousPoint=S,M.x>=this.margin&&M.y>=this.margin&&M.x-this.margin+M.width<=this.canvasWidth&&M.y-this.margin+M.height<=this.canvasHeight&&(this.cropRect=M,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},J.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var S=this.cropRect.x+this.cropRect.width/2,M=this.cropRect.y+this.cropRect.height/2,$=this.aspectRatio.getHorizontalLength(this.cropRect.height),te=this.aspectRatio.getVerticalLength(this.cropRect.width);$/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=S-this.cropRect.width/2,this.cropRect.y=M-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},J.prototype.getRescaledRect=function(S,M,$,te,q,Xe){var Kt=$/S,yn=te/M;return{x:(q.x-Xe)*Kt+Xe,y:(q.y-Xe)*yn+Xe,width:q.width*Kt,height:q.height*yn}},J.prototype.scaleCanvas=function(S,M){var $=this.getRescaledRect(this.canvasWidth,this.canvasHeight,S,M,this.cropRect,this.margin);this.canvasWidth=S,this.canvasHeight=M,this.onCropChange&&this.onCropChange($),this.setCropRectangle($)},J}(),Zr=function(){function J(S){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=S,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(J.prototype,"angle",{get:function(){return this._angle},set:function(S){this._angle=S,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),J.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},J.prototype.onPointerDown=function(S){this.controlContainer.setPointerCapture(S.pointerId),this.isDragging=!0,this.previousPoint={x:S.clientX,y:S.clientY}},J.prototype.onPointerMove=function(S){this.isDragging&&(this.onAngleChange&&this.onAngleChange((S.clientX-this.previousPoint.x)/5),this.previousPoint.x=S.clientX)},J.prototype.onPointerUp=function(S){this.isDragging&&this.onAngleChange&&this.onAngleChange((S.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(S.pointerId)},J.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var S=this.angleLabelText.getBBox();it.setAttributes(this.angleLabelElement,[["x",((this.width-S.width)/2).toString()],["y",(this.height/2).toString()]])}},J.prototype.positionScaleShape=function(){if(this.scaleShape){var S=this.scaleShape.transform.baseVal.getItem(0);S.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(S,0)}},J.prototype.getVisual=function(){var S=document.createElementNS("http://www.w3.org/2000/svg","svg");S.setAttribute("xmlns","http://www.w3.org/2000/svg"),S.setAttribute("width",this.width+"px"),S.setAttribute("height",this.height+"px"),S.setAttribute("viewBox","0 0 "+this.width+" "+this.height),S.style.flexShrink="0",document.body.appendChild(S);for(var M="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,$=1;$<=this.width/5+10;$++){var te=$%5==0?this.height/3:this.height/6;M+="h4v"+-te+"h1v"+te}M+="v1H0Z",this.scaleShape=it.createPath(M);var q=it.createTransform();this.scaleShape.transform.baseVal.appendItem(q),S.appendChild(this.scaleShape),this.angleLabelElement=it.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=it.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Xe=it.createTSpan("");return Xe.innerHTML="°",this.angleLabelElement.appendChild(Xe),S.appendChild(this.angleLabelElement),document.body.removeChild(S),S},J}(),ua=function(){function J(){this.naturalSize=!1,this.imageType="image/png"}return J.prototype.rasterize=function(S,M,$,te,q,Xe,Kt){var yn=this;return new Promise(function(In){var Xt=document.createElement("canvas");Xt.width=S.width.baseVal.value-2*te,Xt.height=S.height.baseVal.value-2*te;var rr=1,nn=1;yn.naturalSize===!0?(rr=M.naturalWidth/(S.width.baseVal.value-2*te)/Xe,nn=M.naturalHeight/(S.height.baseVal.value-2*te)/Kt,Xt.width=M.naturalWidth/Xe,Xt.height=M.naturalHeight/Kt):yn.width!==void 0&&yn.height!==void 0&&(rr=yn.width/$.width,nn=yn.height/$.height,Xt.width*=rr,Xt.height*=nn);var Qt=Xt.getContext("2d");Qt.translate(Xt.width/2,Xt.height/2),Qt.rotate(q*Math.PI/180),Qt.scale(Xe,Kt),Qt.translate(-Xt.width/2,-Xt.height/2),Qt.drawImage(M,0,0,Xt.width,Xt.height);var un=document.createElement("canvas");un.width=$.width*rr,un.height=$.height*nn,un.getContext("2d").putImageData(Qt.getImageData(($.x-te)*rr,($.y-te)*nn,$.width*rr,$.height*nn),0,0),In(un.toDataURL(yn.imageType,yn.imageQuality))})},J}(),jt=function(){function J(S){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=J.instanceCounter++,this.styles=new vt(this.instanceNo),this.target=S,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(S){this._zoomToCropEnabled=S,S?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(S){this._isGridVisible=S,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"gridLines",{get:function(){return this._gridLines},set:function(S){this._gridLines=S,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(S){this._rotationAngle=S,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"aspectRatio",{get:function(){var S;return(S=this._aspectRatio)!==null&&S!==void 0?S:this.aspectRatios[0]},set:function(S){this._aspectRatio=S},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},J.prototype.show=function(){this.showUI(),this.open()},J.prototype.close=function(S){S===void 0&&(S=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),S||this.closeEventListeners.forEach(function(M){return M()}),this._isOpen=!1)},J.prototype.addRenderEventListener=function(S){this.renderEventListeners.push(S)},J.prototype.removeRenderEventListener=function(S){this.renderEventListeners.indexOf(S)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(S),1)},J.prototype.addCloseEventListener=function(S){this.closeEventListeners.push(S)},J.prototype.removeCloseEventListener=function(S){this.closeEventListeners.indexOf(S)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(S),1)},J.prototype.setupResizeObserver=function(){var S=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){S.resize(S.target.clientWidth,S.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},J.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var S=1*this.target.clientWidth/this.target.clientHeight,M=this.contentDiv.clientWidth/S>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*S:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,$=M+2*this.CANVAS_MARGINS+this.CANVAS_MARGIN?this.target.offsetTop-(S+this.CANVAS_MARGIN):0;this.coverDiv.style.top=M+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},J.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},J.prototype.addTopToolbar=function(){var S=this;this.topToolbar=new xn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var M=new fr;M.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(M);var $=[];this.aspectRatios.forEach(function(nn){var Qt=new ir(ta.getIcon(nn.horizontal,nn.vertical),nn.horizontal===0&&nn.vertical===0?"FREE":nn.horizontal+":"+nn.vertical);Qt.onClick=function(){return S.ratioButtonClicked(nn)},$.push(Qt)}),this.aspectRatioButton=new jr(ta.getIcon(0,0),"Aspect ratio",$),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,M.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var te=new ir('',"Toggle grid");te.isActive=this.isGridVisible,te.onClick=function(){S.isGridVisible=!S.isGridVisible,te.isActive=S.isGridVisible},M.addButton(te);var q=new ir('',"Zoom to selection");if(q.isActive=this.zoomToCropEnabled,q.onClick=function(){S.zoomToCropEnabled=!S.zoomToCropEnabled,q.isActive=S.zoomToCropEnabled},M.addButton(q),!tn.isLicensed){var Xe=new Tn;this.topToolbar.addElementBlock(Xe);var Kt=document.createElement("div");Kt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var yn=document.createElement("a");yn.style.color="currentColor",yn.href="https://markerjs.com/products/cropro",yn.target="_blank",yn.innerHTML='',Kt.appendChild(yn),Xe.addElement(Kt)}var In=new fr;In.minWidth=3*this.toolbarHeight+"px",In.contentAlign="end",this.topToolbar.addButtonBlock(In);var Xt=new ir('',"OK");Xt.onClick=this.startRenderAndClose,In.addButton(Xt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Xt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var rr=new ir('',"Close");rr.onClick=this.close,In.addButton(rr),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(rr.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},J.prototype.addBottomToolbar=function(){var S=this;this.bottomToolbar=new xn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var M=new fr;M.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(M);var $=new ir('',"Rotate left");$.onClick=this.rotateLeftButtonClicked,M.addButton($);var te=new ir('',"Rotate right");te.onClick=this.rotateRightButtonClicked,M.addButton(te);var q=new Tn;q.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(q),this.straightener=new Zr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(In){S.rotateBy(In),S.straightener.angle=S.rotationAngle},q.addElement(this.straightener.getUI());var Xe=new fr;Xe.minWidth=2*this.toolbarHeight+"px",Xe.contentAlign="end",this.bottomToolbar.addButtonBlock(Xe);var Kt=new ir('',"Flip horizontal");Kt.onClick=this.flipHorizontallyButtonClicked,Xe.addButton(Kt);var yn=new ir('',"Flip vertical");yn.onClick=this.flipVerticallyButtonClicked,Xe.addButton(yn)},J.prototype.ratioButtonClicked=function(S){this.aspectRatio=S,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},J.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=ta.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},J.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Wr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},J.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},J.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},J.prototype.restoreState=function(S){if(S){var M=this.cropLayer.getRescaledRect(S.width,S.height,this.imageWidth,this.imageHeight,S.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(M),this.cropRectChanged(M),this.flippedHorizontally=S.flippedHorizontally,this.flippedVertically=S.flippedVertically,this.applyFlip(),this.rotationAngle=S.rotationAngle,this.applyRotation()}},J.prototype.clientToLocalCoordinates=function(S,M){var $=this.cropImage.getBoundingClientRect();return{x:S-$.left,y:M-$.top}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var S=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},J.prototype.rotateLeftButtonClicked=function(){var S=this.rotationAngle-90;this.rotationAngle%90!=0&&(S+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(S)},J.prototype.rotateRightButtonClicked=function(){var S=this.rotationAngle+90;this.rotationAngle%90!=0&&(S-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(S)},J.prototype.rotateTo=function(S){S=(S=S>180?S-360:S)<=-180?S+360:S,this.rotationAngle=S,this.applyRotation()},J.prototype.rotateBy=function(S){this.rotateTo((this.rotationAngle+S)%360)},J.prototype.applyRotation=function(){var S=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var M=this.editingTargetRotationContainer.transform.baseVal.getItem(0);M.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(M,0);var $=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/$.width,this.imageHeight/$.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=S},J.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},J.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},J.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},J.prototype.startRenderAndClose=function(){return dt(this,void 0,void 0,function(){var S,M;return en(this,function($){switch($.label){case 0:return[4,this.render()];case 1:return S=$.sent(),M=this.getState(),this.renderEventListeners.forEach(function(te){return te(S,M)}),this.close(!0),[2]}})})},J.prototype.render=function(){return dt(this,void 0,void 0,function(){var S;return en(this,function(M){switch(M.label){case 0:return(S=new ua).naturalSize=this.renderAtNaturalSize,S.imageType=this.renderImageType,S.imageQuality=this.renderImageQuality,S.width=this.renderWidth,S.height=this.renderHeight,this.unzoomFromCrop(),it.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,S.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return M.sent(),[4,S.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,M.sent()]}})})},J.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new on("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -178,13 +178,13 @@ PERFORMANCE OF THIS SOFTWARE. box-sizing: content-box; overflow: hidden; line-height: 0px; - `)),this.toolbarStyleColorsClass=this.styles.addClass(new sn("toolbar_colors",` + `)),this.toolbarStyleColorsClass=this.styles.addClass(new on("toolbar_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; - `)),this.toolbarBlockStyleClass=this.styles.addClass(new sn("toolbar-block",` + `)),this.toolbarBlockStyleClass=this.styles.addClass(new on("toolbar-block",` display: flex; align-items: center; box-sizing: content-box; - `));var S=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new sn("toolbar_button",` + `));var S=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new on("toolbar_button",` display: inline-block; width: `+(this.toolbarHeight-2*S)+`px; height: `+(this.toolbarHeight-2*S)+`px; @@ -192,10 +192,10 @@ PERFORMANCE OF THIS SOFTWARE. cursor: default; user-select: none; box-sizing: content-box; - `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new sn("toolbar_button_colors",` + `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new on("toolbar_button_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new sn("toolbar_active_button",` + `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new on("toolbar_active_button",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; background-color: `+this.styles.settings.toolbarBackgroundActiveColor+` @@ -203,7 +203,7 @@ PERFORMANCE OF THIS SOFTWARE. height: `+this.toolbarHeight/2+`px; `)),this.styles.addRule(new Ot("."+this.toolbarButtonStyleColorsClass.name+":hover",` background-color: `+this.styles.settings.toolbarBackgroundHoverColor+` - `)),this.toolbarDropdownStyleClass=this.styles.addClass(new sn("toolbar_dropdown",` + `)),this.toolbarDropdownStyleClass=this.styles.addClass(new on("toolbar_dropdown",` position: absolute; max-width: `+4*this.toolbarHeight+`px; z-index: 20; @@ -212,14 +212,14 @@ PERFORMANCE OF THIS SOFTWARE. box-shadow: 3px 3px rgba(33, 33, 33, 0.1); margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px; line-height: 0px; - `)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new sn("toolbar_dropdown_colors",` + `)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new on("toolbar_dropdown_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; - `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new sn("toolbar_straightener_block",` + `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new on("toolbar_straightener_block",` display: flex; overflow: hidden; justify-content: center; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%); - `)),this.toolbarStraightenerStyleClass=this.styles.addClass(new sn("toolbar_straightener",` + `)),this.toolbarStraightenerStyleClass=this.styles.addClass(new on("toolbar_straightener",` display: flex; overflow: hidden; justify-content: center; @@ -228,31 +228,31 @@ PERFORMANCE OF THIS SOFTWARE. cursor: default; user-select: none; box-sizing: content-box; - `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new sn("toolbar_straightener_colors",` + `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new on("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},J.instanceCounter=0,J}(),On=k("8hTe"),mr=k.n(On),Dr=/]*>/g;function Sr(J){var S=document.createElement("div");return S.innerHTML=J,S.childNodes.length===0?"":S.childNodes[0].nodeValue}var Cr=Ee.a=function(J){var S=J.value,M=S===void 0?"":S,$=J.edit,te=$===void 0?!1:$,q=J.className,Xe=J.showTextOnly,zt=J.showLines,gn=J.replaces,Nn=J.zoomImg,Yt=J.hasMask,tr=J.style,an=tr===void 0?{}:tr,Jt=J.stylesPrev,cn=Jt===void 0?{}:Jt,_n=String(M),zn=Object(_.useRef)(),lr=Object(_.useRef)(),ir=Object(_.useState)(""),Tr=Object(B.a)(ir,2),$n=Tr[0],Vn=Tr[1],jn=Object(_.useState)("office"),mn=Object(B.a)(jn,2),Ar=mn[0],Pr=mn[1],Dn=function(){var ke=new jt(lr.current);ke.displayMode="popup",ke.addRenderEventListener(function(){var ft=Object(w.a)(P.a.mark(function yt(Re){var mt;return P.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return zn.current.style.display="none",Dt.next=3,Object(Ze.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Re}});case 3:mt=Dt.sent,mt!=null&&mt.id&&gn(lr.current.getAttribute("src").replace(ie.a.API_SERVER,""),"/api/attachments/".concat(mt==null?void 0:mt.id,"?type=").concat(mt.content_type));case 5:case"end":return Dt.stop()}},yt)}));return function(yt){return ft.apply(this,arguments)}}()),ke.show()},sr=function(){var ke=new ge(lr.current);ke.settings.displayMode="popup",ke.addEventListener("render",function(){var ft=Object(w.a)(P.a.mark(function yt(Re){var mt;return P.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(zn.current.style.display="none",!lr.current){Dt.next=6;break}return Dt.next=4,Object(Ze.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Re.dataUrl}});case 4:mt=Dt.sent,mt!=null&&mt.id&&gn(lr.current.getAttribute("src").replace(ie.a.API_SERVER,""),"/api/attachments/".concat(mt==null?void 0:mt.id,"?type=").concat(mt.content_type));case 6:case"end":return Dt.stop()}},yt)}));return function(yt){return ft.apply(this,arguments)}}()),ke.show(),window.markerArea=ke},Or=Object(_.useMemo)(function(){try{var ot=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,ke=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ft=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;_n=_n.replace(ot,"("+ie.a.API_SERVER+"/api/attachments/").replace(ke,'"'+ie.a.API_SERVER+"/api/attachments/").replace(ft,'"'+ie.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` -`),_n=_n.replace(new RegExp("(?[TOC]

              ",L()),x()),yt=yt.replace(/(__special_katext_id_\d+__)/g,function(Wt,Dt){var lt=Re[Dt],At=lt.type,Lt=lt.expression;return Object(ae.renderToString)(Sr(Lt)||"",{displayMode:At==="block",throwOnError:!1,output:"html"})}),yt=yt.replace(/▁/g,"\u2581\u2581\u2581"),T(),Xe){var mt=document.createElement("div");return mt.innerHTML=yt,mt.innerText}return setTimeout(function(){return Qe()},500),yt},[_n]),ee=Object(_.useRef)();E.WebkitLineClamp=zt,zt&&(an=Object(O.a)(Object(O.a)({},an),E));function Te(ot){var ke=ot.target;if(ke.tagName.toUpperCase()==="IMG"){if(Nn){var ft=ke.getAttribute("src");Vn(ft),Pr("image")}}else if(ke.tagName.toUpperCase()==="A"){var yt=ke.getAttribute("href");if(yt.indexOf("office")>-1)ot.preventDefault(),Vn(yt),Pr("office");else if(yt.indexOf("application/pdf")>-1)ot.preventDefault(),Vn(yt),Pr("pdf");else if(yt.indexOf("type=text")>-1)ot.preventDefault(),Vn(yt),Pr("html");else if(yt.startsWith("#")){ot.preventDefault();var Re=document.getElementById(yt.replace("#",""));Re&&Re.scrollIntoView(!0)}}}var Qe=function(){var ke,ft=(ke=ee.current)===null||ke===void 0?void 0:ke.querySelectorAll("video");ft==null||ft.forEach(function(yt){if(yt.oncontextmenu=function(){return!1},yt.src.indexOf(".m3u8")>-1&&!yt.canPlayType("application/vnd.apple.mpegurl")){if(Q.a.isSupported()){var Re=new Q.a;Re.loadSource(yt.src),Re.attachMedia(yt)}}})};Object(_.useEffect)(function(){if(ee.current&&Or&&(Or.match(Dr)&&window.PR.prettyPrint()),ee.current)return ee.current.addEventListener("click",Te),function(){ee.current.removeEventListener("click",Te),T(),x()}},[Or,ee.current,Te]);var Ge=function(ke){if(!te)return;ke.target.nodeName==="IMG"?(zn.current.style.display="flex",zn.current.style.width=ke.target.clientWidth+"px",zn.current.style.height=ke.target.clientHeight+"px",zn.current.style.top=ke.target.offsetTop+"px",zn.current.style.left=ke.target.offsetLeft+"px",lr.current.src=ke.target.getAttribute("src")):zn.current.style.display="none"};return d.a.createElement("div",{style:{position:"relative"}},d.a.createElement("div",{ref:ee,style:Object(O.a)({},an),className:"".concat(q||""," markdown-body ").concat(mr.a.mdBody),onMouseOver:Ge,dangerouslySetInnerHTML:{__html:Or}}),d.a.createElement("div",{ref:zn,className:mr.a.button},d.a.createElement(z.a,null,d.a.createElement(K.a,{onClick:function(){return Dn()}},"\u88C1\u526A"),d.a.createElement(K.a,{onClick:function(){return sr()}},"\u7F16\u8F91"))),d.a.createElement("img",{ref:lr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),d.a.createElement(xe.a,{close:!0,data:$n,hasMask:Yt,type:$n!=null&&$n.length?Ar:"",style:Object(O.a)({},cn),onClose:function(){return Vn("")}}))}},"9VGf":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return N});var ne=k("q1tI"),z=k.n(ne);function N(K,O){var w=Object(ne.useRef)();Object(ne.useEffect)(function(){w.current=K}),Object(ne.useEffect)(function(){function B(){w.current()}if(O!==null){var C=setInterval(B,O);return function(){return clearInterval(C)}}},[O])}},BU3w:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return w});var ne=k("MNnm"),z="rc-util-key";function N(B){if(B.attachTo)return B.attachTo;var C=document.querySelector("head");return C||document.body}function K(B){var C,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ne.a)())return null;var _=document.createElement("style");if((C=P.csp)===null||C===void 0?void 0:C.nonce){var d;_.nonce=(d=P.csp)===null||d===void 0?void 0:d.nonce}_.innerHTML=B;var v=N(P),b=v.firstChild;return P.prepend&&v.prepend?v.prepend(_):P.prepend&&b?v.insertBefore(_,b):v.appendChild(_),_}var O=new Map;function w(B,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=N(P);if(!O.has(_)){var d=K("",P),v=d.parentNode;O.set(_,v),v.removeChild(d)}var b=Array.from(O.get(_).children).find(function(r){return r.tagName==="STYLE"&&r[z]===C});if(b){var f,n;if(((f=P.csp)===null||f===void 0?void 0:f.nonce)&&b.nonce!==((n=P.csp)===null||n===void 0?void 0:n.nonce)){var p;b.nonce=(p=P.csp)===null||p===void 0?void 0:p.nonce}return b.innerHTML!==B&&(b.innerHTML=B),b}var o=K(B,P);return o[z]=C,o}},Bd2K:function(Vt,Ee,k){(function(ne){ne(k("VrN/"),k("osHv"))})(function(ne){ne.defineOption("autoCloseTags",!1,function(P,_,d){if(d!=ne.Init&&d&&P.removeKeyMap("autoCloseTags"),!_)return;var v={name:"autoCloseTags"};(typeof _!="object"||_.whenClosing!==!1)&&(v["'/'"]=function(b){return w(b)}),(typeof _!="object"||_.whenOpening!==!1)&&(v["'>'"]=function(b){return K(b)}),P.addKeyMap(v)});var z=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],N=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function K(P){if(P.getOption("disableInput"))return ne.Pass;for(var _=P.listSelections(),d=[],v=P.getOption("autoCloseTags"),b=0;b<_.length;b++){if(!_[b].empty())return ne.Pass;var f=_[b].head,n=P.getTokenAt(f),p=ne.innerMode(P.getMode(),n.state),o=p.state,r=p.mode.xmlCurrentTag&&p.mode.xmlCurrentTag(o),s=r&&r.name;if(!s)return ne.Pass;var l=p.mode.configuration=="html",x=typeof v=="object"&&v.dontCloseTags||l&&z,E=typeof v=="object"&&v.indentTags||l&&N;n.end>f.ch&&(s=s.slice(0,s.length-n.end+f.ch));var y=s.toLowerCase();if(!s||n.type=="string"&&(n.end!=f.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&r.close||n.string.indexOf("/")==f.ch-n.start-1||x&&B(x,y)>-1||C(P,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(o)||[],s,f,!0))return ne.Pass;var L=typeof v=="object"&&v.emptyTags;if(L&&B(L,s)>-1){d[b]={text:"/>",newPos:ne.Pos(f.line,f.ch+2)};continue}var R=E&&B(E,y)>-1;d[b]={indent:R,text:">"+(R?` + `))},J.instanceCounter=0,J}(),On=k("8hTe"),vr=k.n(On),Dr=/]*>/g;function Sr(J){var S=document.createElement("div");return S.innerHTML=J,S.childNodes.length===0?"":S.childNodes[0].nodeValue}var xr=Ee.a=function(J){var S=J.value,M=S===void 0?"":S,$=J.edit,te=$===void 0?!1:$,q=J.className,Xe=J.showTextOnly,Kt=J.showLines,yn=J.replaces,In=J.zoomImg,Xt=J.hasMask,rr=J.style,nn=rr===void 0?{}:rr,Qt=J.stylesPrev,un=Qt===void 0?{}:Qt,wn=String(M),zn=Object(_.useRef)(),cr=Object(_.useRef)(),sr=Object(_.useState)(""),Tr=Object(B.a)(sr,2),Zn=Tr[0],Xn=Tr[1],Nn=Object(_.useState)("office"),mn=Object(B.a)(Nn,2),Pr=mn[0],Lr=mn[1],An=function(){var ke=new jt(cr.current);ke.displayMode="popup",ke.addRenderEventListener(function(){var ft=Object(w.a)(P.a.mark(function yt(Re){var mt;return P.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return zn.current.style.display="none",Dt.next=3,Object(Ze.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Re}});case 3:mt=Dt.sent,mt!=null&&mt.id&&yn(cr.current.getAttribute("src").replace(ie.a.API_SERVER,""),"/api/attachments/".concat(mt==null?void 0:mt.id,"?type=").concat(mt.content_type));case 5:case"end":return Dt.stop()}},yt)}));return function(yt){return ft.apply(this,arguments)}}()),ke.show()},ur=function(){var ke=new ge(cr.current);ke.settings.displayMode="popup",ke.addEventListener("render",function(){var ft=Object(w.a)(P.a.mark(function yt(Re){var mt;return P.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(zn.current.style.display="none",!cr.current){Dt.next=6;break}return Dt.next=4,Object(Ze.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Re.dataUrl}});case 4:mt=Dt.sent,mt!=null&&mt.id&&yn(cr.current.getAttribute("src").replace(ie.a.API_SERVER,""),"/api/attachments/".concat(mt==null?void 0:mt.id,"?type=").concat(mt.content_type));case 6:case"end":return Dt.stop()}},yt)}));return function(yt){return ft.apply(this,arguments)}}()),ke.show(),window.markerArea=ke},Or=Object(_.useMemo)(function(){try{var ot=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,ke=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ft=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;wn=wn.replace(ot,"("+ie.a.API_SERVER+"/api/attachments/").replace(ke,'"'+ie.a.API_SERVER+"/api/attachments/").replace(ft,'"'+ie.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` +`),wn=wn.replace(new RegExp("(?[TOC]

              ",L()),x()),yt=yt.replace(/(__special_katext_id_\d+__)/g,function(Bt,Dt){var lt=Re[Dt],At=lt.type,Lt=lt.expression;return Object(ae.renderToString)(Sr(Lt)||"",{displayMode:At==="block",throwOnError:!1,output:"html"})}),yt=yt.replace(/▁/g,"\u2581\u2581\u2581"),T(),Xe){var mt=document.createElement("div");return mt.innerHTML=yt,mt.innerText}return setTimeout(function(){return Qe()},500),yt},[wn]),ee=Object(_.useRef)();E.WebkitLineClamp=Kt,Kt&&(nn=Object(O.a)(Object(O.a)({},nn),E));function Te(ot){var ke=ot.target;if(ke.tagName.toUpperCase()==="IMG"){if(In){var ft=ke.getAttribute("src");Xn(ft),Lr("image")}}else if(ke.tagName.toUpperCase()==="A"){var yt=ke.getAttribute("href");if(yt.indexOf("office")>-1)ot.preventDefault(),Xn(yt),Lr("office");else if(yt.indexOf("application/pdf")>-1)ot.preventDefault(),Xn(yt),Lr("pdf");else if(yt.indexOf("type=text")>-1)ot.preventDefault(),Xn(yt),Lr("html");else if(yt.startsWith("#")){ot.preventDefault();var Re=document.getElementById(yt.replace("#",""));Re&&Re.scrollIntoView(!0)}}}var Qe=function(){var ke,ft=(ke=ee.current)===null||ke===void 0?void 0:ke.querySelectorAll("video");ft==null||ft.forEach(function(yt){if(yt.oncontextmenu=function(){return!1},yt.src.indexOf(".m3u8")>-1&&!yt.canPlayType("application/vnd.apple.mpegurl")){if(Q.a.isSupported()){var Re=new Q.a;Re.loadSource(yt.src),Re.attachMedia(yt)}}})};Object(_.useEffect)(function(){if(ee.current&&Or&&(Or.match(Dr)&&window.PR.prettyPrint()),ee.current)return ee.current.addEventListener("click",Te),function(){ee.current.removeEventListener("click",Te),T(),x()}},[Or,ee.current,Te]);var Ge=function(ke){if(!te)return;ke.target.nodeName==="IMG"?(zn.current.style.display="flex",zn.current.style.width=ke.target.clientWidth+"px",zn.current.style.height=ke.target.clientHeight+"px",zn.current.style.top=ke.target.offsetTop+"px",zn.current.style.left=ke.target.offsetLeft+"px",cr.current.src=ke.target.getAttribute("src")):zn.current.style.display="none"};return d.a.createElement("div",{style:{position:"relative"}},d.a.createElement("div",{ref:ee,style:Object(O.a)({},nn),className:"".concat(q||""," markdown-body ").concat(vr.a.mdBody),onMouseOver:Ge,dangerouslySetInnerHTML:{__html:Or}}),d.a.createElement("div",{ref:zn,className:vr.a.button},d.a.createElement(z.a,null,d.a.createElement(K.a,{onClick:function(){return An()}},"\u88C1\u526A"),d.a.createElement(K.a,{onClick:function(){return ur()}},"\u7F16\u8F91"))),d.a.createElement("img",{ref:cr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),d.a.createElement(xe.a,{close:!0,data:Zn,hasMask:Xt,type:Zn!=null&&Zn.length?Pr:"",style:Object(O.a)({},un),onClose:function(){return Xn("")}}))}},"9VGf":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return N});var ne=k("q1tI"),z=k.n(ne);function N(K,O){var w=Object(ne.useRef)();Object(ne.useEffect)(function(){w.current=K}),Object(ne.useEffect)(function(){function B(){w.current()}if(O!==null){var C=setInterval(B,O);return function(){return clearInterval(C)}}},[O])}},BU3w:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return w});var ne=k("MNnm"),z="rc-util-key";function N(B){if(B.attachTo)return B.attachTo;var C=document.querySelector("head");return C||document.body}function K(B){var C,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ne.a)())return null;var _=document.createElement("style");if((C=P.csp)===null||C===void 0?void 0:C.nonce){var d;_.nonce=(d=P.csp)===null||d===void 0?void 0:d.nonce}_.innerHTML=B;var v=N(P),b=v.firstChild;return P.prepend&&v.prepend?v.prepend(_):P.prepend&&b?v.insertBefore(_,b):v.appendChild(_),_}var O=new Map;function w(B,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=N(P);if(!O.has(_)){var d=K("",P),v=d.parentNode;O.set(_,v),v.removeChild(d)}var b=Array.from(O.get(_).children).find(function(r){return r.tagName==="STYLE"&&r[z]===C});if(b){var f,n;if(((f=P.csp)===null||f===void 0?void 0:f.nonce)&&b.nonce!==((n=P.csp)===null||n===void 0?void 0:n.nonce)){var p;b.nonce=(p=P.csp)===null||p===void 0?void 0:p.nonce}return b.innerHTML!==B&&(b.innerHTML=B),b}var o=K(B,P);return o[z]=C,o}},Bd2K:function(Gt,Ee,k){(function(ne){ne(k("VrN/"),k("osHv"))})(function(ne){ne.defineOption("autoCloseTags",!1,function(P,_,d){if(d!=ne.Init&&d&&P.removeKeyMap("autoCloseTags"),!_)return;var v={name:"autoCloseTags"};(typeof _!="object"||_.whenClosing!==!1)&&(v["'/'"]=function(b){return w(b)}),(typeof _!="object"||_.whenOpening!==!1)&&(v["'>'"]=function(b){return K(b)}),P.addKeyMap(v)});var z=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],N=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function K(P){if(P.getOption("disableInput"))return ne.Pass;for(var _=P.listSelections(),d=[],v=P.getOption("autoCloseTags"),b=0;b<_.length;b++){if(!_[b].empty())return ne.Pass;var f=_[b].head,n=P.getTokenAt(f),p=ne.innerMode(P.getMode(),n.state),o=p.state,r=p.mode.xmlCurrentTag&&p.mode.xmlCurrentTag(o),s=r&&r.name;if(!s)return ne.Pass;var l=p.mode.configuration=="html",x=typeof v=="object"&&v.dontCloseTags||l&&z,E=typeof v=="object"&&v.indentTags||l&&N;n.end>f.ch&&(s=s.slice(0,s.length-n.end+f.ch));var y=s.toLowerCase();if(!s||n.type=="string"&&(n.end!=f.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&r.close||n.string.indexOf("/")==f.ch-n.start-1||x&&B(x,y)>-1||C(P,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(o)||[],s,f,!0))return ne.Pass;var L=typeof v=="object"&&v.emptyTags;if(L&&B(L,s)>-1){d[b]={text:"/>",newPos:ne.Pos(f.line,f.ch+2)};continue}var R=E&&B(E,y)>-1;d[b]={indent:R,text:">"+(R?` -`:"")+"",newPos:R?ne.Pos(f.line+1,0):ne.Pos(f.line,f.ch+1)}}for(var g=typeof v=="object"&&v.dontIndentOnAutoClose,b=_.length-1;b>=0;b--){var m=d[b];P.replaceRange(m.text,_[b].head,_[b].anchor,"+insert");var c=P.listSelections().slice(0);c[b]={head:m.newPos,anchor:m.newPos},P.setSelections(c),!g&&m.indent&&(P.indentLine(m.newPos.line,null,!0),P.indentLine(m.newPos.line+1,null,!0))}}function O(P,_){for(var d=P.listSelections(),v=[],b=_?"/":""&&(x+=">"),v[p]=x}if(P.replaceSelections(v),d=P.listSelections(),!n)for(var p=0;p=0&&_[o]==d;o--)++p;v=n.to;for(var o=1;o0){for(var _=0;_1&&arguments[1]!==void 0?arguments[1]:"",_=[],d=0;dFe.length)&&(Se=Fe.length);for(var Oe=0,ce=new Array(Se);Oe=Fe.length?{done:!0}:{done:!1,value:Fe[ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`:"")+"",newPos:R?ne.Pos(f.line+1,0):ne.Pos(f.line,f.ch+1)}}for(var g=typeof v=="object"&&v.dontIndentOnAutoClose,b=_.length-1;b>=0;b--){var m=d[b];P.replaceRange(m.text,_[b].head,_[b].anchor,"+insert");var c=P.listSelections().slice(0);c[b]={head:m.newPos,anchor:m.newPos},P.setSelections(c),!g&&m.indent&&(P.indentLine(m.newPos.line,null,!0),P.indentLine(m.newPos.line+1,null,!0))}}function O(P,_){for(var d=P.listSelections(),v=[],b=_?"/":""&&(x+=">"),v[p]=x}if(P.replaceSelections(v),d=P.listSelections(),!n)for(var p=0;p=0&&_[o]==d;o--)++p;v=n.to;for(var o=1;o0){for(var _=0;_1&&arguments[1]!==void 0?arguments[1]:"",_=[],d=0;dFe.length)&&(Se=Fe.length);for(var Oe=0,ce=new Array(Se);Oe=Fe.length?{done:!0}:{done:!1,value:Fe[ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Oe=Fe[Symbol.iterator](),Oe.next.bind(Oe)}function w(Fe,Se){return Se={exports:{}},Fe(Se,Se.exports),Se.exports}var B=w(function(Fe){function Se(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Oe(ce){Fe.exports.defaults=ce}Fe.exports={defaults:Se(),getDefaults:Se,changeDefaults:Oe}}),C=B.defaults,P=B.getDefaults,_=B.changeDefaults,d=/[&<>"']/,v=/[&<>"']/g,b=/[<>"']|&(?!#?\w+;)/,f=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(Se){return n[Se]};function o(Fe,Se){if(Se){if(d.test(Fe))return Fe.replace(v,p)}else if(b.test(Fe))return Fe.replace(f,p);return Fe}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Fe){return Fe.replace(r,function(Se,Oe){return Oe=Oe.toLowerCase(),Oe==="colon"?":":Oe.charAt(0)==="#"?Oe.charAt(1)==="x"?String.fromCharCode(parseInt(Oe.substring(2),16)):String.fromCharCode(+Oe.substring(1)):""})}var l=/(^|[^\[])\^/g;function x(Fe,Se){Fe=Fe.source||Fe,Se=Se||"";var Oe={replace:function(he,Ce){return Ce=Ce.source||Ce,Ce=Ce.replace(l,"$1"),Fe=Fe.replace(he,Ce),Oe},getRegex:function(){return new RegExp(Fe,Se)}};return Oe}var E=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(Fe,Se,Oe){if(Fe){var ce;try{ce=decodeURIComponent(s(Oe)).replace(E,"").toLowerCase()}catch(he){return null}if(ce.indexOf("javascript:")===0||ce.indexOf("vbscript:")===0||ce.indexOf("data:")===0)return null}Se&&!y.test(Oe)&&(Oe=u(Se,Oe));try{Oe=encodeURI(Oe).replace(/%25/g,"%")}catch(he){return null}return Oe}var R={},g=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(Fe,Se){R[" "+Fe]||(g.test(Fe)?R[" "+Fe]=Fe+"/":R[" "+Fe]=j(Fe,"/",!0)),Fe=R[" "+Fe];var Oe=Fe.indexOf(":")===-1;return Se.substring(0,2)==="//"?Oe?Se:Fe.replace(m,"$1")+Se:Se.charAt(0)==="/"?Oe?Se:Fe.replace(c,"$1")+Se:Fe+Se}var D={exec:function(){}};function T(Fe){for(var Se=1,Oe,ce;Se=0&&at[Rt]==="\\";)et=!et;return et?"|":" |"}),ce=Oe.split(/ \|/),he=0;if(ce.length>Se)ce.splice(Se);else for(;ce.length=ce.length?he.slice(ce.length):he}).join(` `)}var Me=function(){function Fe(Oe){this.options=Oe||I}var Se=Fe.prototype;return Se.space=function(ce){var he=this.rules.block.newline.exec(ce);if(he)return he[0].length>1?{type:"space",raw:he[0]}:{raw:` `}},Se.code=function(ce,he){var Ce=this.rules.block.code.exec(ce);if(Ce){var Le=he[he.length-1];if(Le&&Le.type==="paragraph")return{raw:Ce[0],text:Ce[0].trimRight()};var at=Ce[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ce[0],codeBlockStyle:"indented",text:this.options.pedantic?at:W(at,` `)}}},Se.fences=function(ce){var he=this.rules.block.fences.exec(ce);if(he){var Ce=he[0],Le=Ze(Ce,he[3]||"");return{type:"code",raw:Ce,lang:he[2]?he[2].trim():he[2],text:Le}}},Se.heading=function(ce){var he=this.rules.block.heading.exec(ce);if(he)return{type:"heading",raw:he[0],depth:he[1].length,text:he[2]}},Se.nptable=function(ce){var he=this.rules.block.nptable.exec(ce);if(he){var Ce={type:"table",header:Q(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(` -`):[],raw:he[0]};if(Ce.header.length===Ce.align.length){var Le=Ce.align.length,at;for(at=0;at ?/gm,"");return{type:"blockquote",raw:he[0],text:Ce}}},Se.list=function(ce){var he=this.rules.block.list.exec(ce);if(he){for(var Ce=he[0],Le=he[2],at=Le.length>1,et=Le[Le.length-1]===")",Rt={type:"list",raw:Ce,ordered:at,start:at?+Le.slice(0,-1):"",loose:!1,items:[]},en=he[0].match(this.rules.block.item),pn=!1,on,Kt,bt,xt,ct,ge,Ne,Ct=en.length,dt=0;dt1||this.options.smartLists&&bt!==Le)&&(xt=en.slice(dt+1).join(` -`),Rt.raw=Rt.raw.substring(0,Rt.raw.length-xt.length),dt=Ct-1)),ct=pn||/\n\n(?!\s*$)/.test(on),dt!==Ct-1&&(pn=on.charAt(on.length-1)===` -`,ct||(ct=pn)),ct&&(Rt.loose=!0),ge=/^\[[ xX]\] /.test(on),Ne=void 0,ge&&(Ne=on[1]!==" ",on=on.replace(/^\[[ xX]\] +/,"")),Rt.items.push({type:"list_item",raw:Ce,task:ge,checked:Ne,loose:ct,text:on});return Rt}},Se.html=function(ce){var he=this.rules.block.html.exec(ce);if(he)return{type:this.options.sanitize?"paragraph":"html",raw:he[0],pre:!this.options.sanitizer&&(he[1]==="pre"||he[1]==="script"||he[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(he[0]):ie(he[0]):he[0]}},Se.def=function(ce){var he=this.rules.block.def.exec(ce);if(he){he[3]&&(he[3]=he[3].substring(1,he[3].length-1));var Ce=he[1].toLowerCase().replace(/\s+/g," ");return{tag:Ce,raw:he[0],href:he[2],title:he[3]}}},Se.table=function(ce){var he=this.rules.block.table.exec(ce);if(he){var Ce={type:"table",header:Q(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(` +`):[],raw:he[0]};if(Ce.header.length===Ce.align.length){var Le=Ce.align.length,at;for(at=0;at ?/gm,"");return{type:"blockquote",raw:he[0],text:Ce}}},Se.list=function(ce){var he=this.rules.block.list.exec(ce);if(he){for(var Ce=he[0],Le=he[2],at=Le.length>1,et=Le[Le.length-1]===")",Rt={type:"list",raw:Ce,ordered:at,start:at?+Le.slice(0,-1):"",loose:!1,items:[]},qt=he[0].match(this.rules.block.item),pn=!1,an,Ht,bt,xt,ct,ge,Ne,Ct=qt.length,dt=0;dt1||this.options.smartLists&&bt!==Le)&&(xt=qt.slice(dt+1).join(` +`),Rt.raw=Rt.raw.substring(0,Rt.raw.length-xt.length),dt=Ct-1)),ct=pn||/\n\n(?!\s*$)/.test(an),dt!==Ct-1&&(pn=an.charAt(an.length-1)===` +`,ct||(ct=pn)),ct&&(Rt.loose=!0),ge=/^\[[ xX]\] /.test(an),Ne=void 0,ge&&(Ne=an[1]!==" ",an=an.replace(/^\[[ xX]\] +/,"")),Rt.items.push({type:"list_item",raw:Ce,task:ge,checked:Ne,loose:ct,text:an});return Rt}},Se.html=function(ce){var he=this.rules.block.html.exec(ce);if(he)return{type:this.options.sanitize?"paragraph":"html",raw:he[0],pre:!this.options.sanitizer&&(he[1]==="pre"||he[1]==="script"||he[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(he[0]):ie(he[0]):he[0]}},Se.def=function(ce){var he=this.rules.block.def.exec(ce);if(he){he[3]&&(he[3]=he[3].substring(1,he[3].length-1));var Ce=he[1].toLowerCase().replace(/\s+/g," ");return{tag:Ce,raw:he[0],href:he[2],title:he[3]}}},Se.table=function(ce){var he=this.rules.block.table.exec(ce);if(he){var Ce={type:"table",header:Q(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(` `):[]};if(Ce.header.length===Ce.align.length){Ce.raw=he[0];var Le=Ce.align.length,at;for(at=0;at/i.test(Le[0])&&(he=!1),!Ce&&/^<(pre|code|kbd|script)(\s|>)/i.test(Le[0])?Ce=!0:Ce&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Le[0])&&(Ce=!1),{type:this.options.sanitize?"text":"html",raw:Le[0],inLink:he,inRawBlock:Ce,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):ie(Le[0]):Le[0]}},Se.link=function(ce){var he=this.rules.inline.link.exec(ce);if(he){var Ce=ae(he[2],"()");if(Ce>-1){var Le=he[0].indexOf("!")===0?5:4,at=Le+he[1].length+Ce;he[2]=he[2].substring(0,Ce),he[0]=he[0].substring(0,at).trim(),he[3]=""}var et=he[2],Rt="";if(this.options.pedantic){var en=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(et);en?(et=en[1],Rt=en[3]):Rt=""}else Rt=he[3]?he[3].slice(1,-1):"";et=et.trim().replace(/^<([\s\S]*)>$/,"$1");var pn=xe(he,{href:et&&et.replace(this.rules.inline._escapes,"$1"),title:Rt&&Rt.replace(this.rules.inline._escapes,"$1")},he[0]);return pn}},Se.reflink=function(ce,he){var Ce;if((Ce=this.rules.inline.reflink.exec(ce))||(Ce=this.rules.inline.nolink.exec(ce))){var Le=(Ce[2]||Ce[1]).replace(/\s+/g," ");if(Le=he[Le.toLowerCase()],!Le||!Le.href){var at=Ce[0].charAt(0);return{type:"text",raw:at,text:at}}var et=xe(Ce,Le,Ce[0]);return et}},Se.strong=function(ce,he,Ce){Ce===void 0&&(Ce="");var Le=this.rules.inline.strong.start.exec(ce);if(Le&&(!Le[1]||Le[1]&&(Ce===""||this.rules.inline.punctuation.exec(Ce)))){he=he.slice(-1*ce.length);var at=Le[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;at.lastIndex=0;for(var et;(Le=at.exec(he))!=null;)if(et=this.rules.inline.strong.middle.exec(he.slice(0,Le.index+3)),et)return{type:"strong",raw:ce.slice(0,et[0].length),text:ce.slice(2,et[0].length-2)}}},Se.em=function(ce,he,Ce){Ce===void 0&&(Ce="");var Le=this.rules.inline.em.start.exec(ce);if(Le&&(!Le[1]||Le[1]&&(Ce===""||this.rules.inline.punctuation.exec(Ce)))){he=he.slice(-1*ce.length);var at=Le[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;at.lastIndex=0;for(var et;(Le=at.exec(he))!=null;)if(et=this.rules.inline.em.middle.exec(he.slice(0,Le.index+2)),et)return{type:"em",raw:ce.slice(0,et[0].length),text:ce.slice(1,et[0].length-1)}}},Se.codespan=function(ce){var he=this.rules.inline.code.exec(ce);if(he){var Ce=he[2].replace(/\n/g," "),Le=/[^ ]/.test(Ce),at=Ce.startsWith(" ")&&Ce.endsWith(" ");return Le&&at&&(Ce=Ce.substring(1,Ce.length-1)),Ce=ie(Ce,!0),{type:"codespan",raw:he[0],text:Ce}}},Se.br=function(ce){var he=this.rules.inline.br.exec(ce);if(he)return{type:"br",raw:he[0]}},Se.del=function(ce){var he=this.rules.inline.del.exec(ce);if(he)return{type:"del",raw:he[0],text:he[1]}},Se.autolink=function(ce,he){var Ce=this.rules.inline.autolink.exec(ce);if(Ce){var Le,at;return Ce[2]==="@"?(Le=ie(this.options.mangle?he(Ce[1]):Ce[1]),at="mailto:"+Le):(Le=ie(Ce[1]),at=Le),{type:"link",raw:Ce[0],text:Le,href:at,tokens:[{type:"text",raw:Le,text:Le}]}}},Se.url=function(ce,he){var Ce;if(Ce=this.rules.inline.url.exec(ce)){var Le,at;if(Ce[2]==="@")Le=ie(this.options.mangle?he(Ce[0]):Ce[0]),at="mailto:"+Le;else{var et;do et=Ce[0],Ce[0]=this.rules.inline._backpedal.exec(Ce[0])[0];while(et!==Ce[0]);Le=ie(Ce[0]),Ce[1]==="www."?at="http://"+Le:at=Le}return{type:"link",raw:Ce[0],text:Le,href:at,tokens:[{type:"text",raw:Le,text:Le}]}}},Se.inlineText=function(ce,he,Ce){var Le=this.rules.inline.text.exec(ce);if(Le){var at;return he?at=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):ie(Le[0]):Le[0]:at=ie(this.options.smartypants?Ce(Le[0]):Le[0]),{type:"text",raw:Le[0],text:at}}},Fe}(),Be=V.noopTest,qe=V.edit,Ve=V.merge,De={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Be,table:Be,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};De._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,De._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,De.def=qe(De.def).replace("label",De._label).replace("title",De._title).getRegex(),De.bullet=/(?:[*+-]|\d{1,9}[.)])/,De.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,De.item=qe(De.item,"gm").replace(/bull/g,De.bullet).getRegex(),De.list=qe(De.list).replace(/bull/g,De.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+De.def.source+")").getRegex(),De._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",De._comment=//,De.html=qe(De.html,"i").replace("comment",De._comment).replace("tag",De._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),De.paragraph=qe(De._paragraph).replace("hr",De.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",De._tag).getRegex(),De.blockquote=qe(De.blockquote).replace("paragraph",De.paragraph).getRegex(),De.normal=Ve({},De),De.gfm=Ve({},De.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),De.gfm.nptable=qe(De.gfm.nptable).replace("hr",De.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",De._tag).getRegex(),De.gfm.table=qe(De.gfm.table).replace("hr",De.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",De._tag).getRegex(),De.pedantic=Ve({},De.normal,{html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",De._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Be,paragraph:qe(De.normal._paragraph).replace("hr",De.hr).replace("heading",` *#{1,6} *[^ +`?he[1].slice(0,-1):he[1]}},Se.text=function(ce,he){var Ce=this.rules.block.text.exec(ce);if(Ce){var Le=he[he.length-1];return Le&&Le.type==="text"?{raw:Ce[0],text:Ce[0]}:{type:"text",raw:Ce[0],text:Ce[0]}}},Se.escape=function(ce){var he=this.rules.inline.escape.exec(ce);if(he)return{type:"escape",raw:he[0],text:ie(he[1])}},Se.tag=function(ce,he,Ce){var Le=this.rules.inline.tag.exec(ce);if(Le)return!he&&/^/i.test(Le[0])&&(he=!1),!Ce&&/^<(pre|code|kbd|script)(\s|>)/i.test(Le[0])?Ce=!0:Ce&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Le[0])&&(Ce=!1),{type:this.options.sanitize?"text":"html",raw:Le[0],inLink:he,inRawBlock:Ce,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):ie(Le[0]):Le[0]}},Se.link=function(ce){var he=this.rules.inline.link.exec(ce);if(he){var Ce=ae(he[2],"()");if(Ce>-1){var Le=he[0].indexOf("!")===0?5:4,at=Le+he[1].length+Ce;he[2]=he[2].substring(0,Ce),he[0]=he[0].substring(0,at).trim(),he[3]=""}var et=he[2],Rt="";if(this.options.pedantic){var qt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(et);qt?(et=qt[1],Rt=qt[3]):Rt=""}else Rt=he[3]?he[3].slice(1,-1):"";et=et.trim().replace(/^<([\s\S]*)>$/,"$1");var pn=xe(he,{href:et&&et.replace(this.rules.inline._escapes,"$1"),title:Rt&&Rt.replace(this.rules.inline._escapes,"$1")},he[0]);return pn}},Se.reflink=function(ce,he){var Ce;if((Ce=this.rules.inline.reflink.exec(ce))||(Ce=this.rules.inline.nolink.exec(ce))){var Le=(Ce[2]||Ce[1]).replace(/\s+/g," ");if(Le=he[Le.toLowerCase()],!Le||!Le.href){var at=Ce[0].charAt(0);return{type:"text",raw:at,text:at}}var et=xe(Ce,Le,Ce[0]);return et}},Se.strong=function(ce,he,Ce){Ce===void 0&&(Ce="");var Le=this.rules.inline.strong.start.exec(ce);if(Le&&(!Le[1]||Le[1]&&(Ce===""||this.rules.inline.punctuation.exec(Ce)))){he=he.slice(-1*ce.length);var at=Le[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;at.lastIndex=0;for(var et;(Le=at.exec(he))!=null;)if(et=this.rules.inline.strong.middle.exec(he.slice(0,Le.index+3)),et)return{type:"strong",raw:ce.slice(0,et[0].length),text:ce.slice(2,et[0].length-2)}}},Se.em=function(ce,he,Ce){Ce===void 0&&(Ce="");var Le=this.rules.inline.em.start.exec(ce);if(Le&&(!Le[1]||Le[1]&&(Ce===""||this.rules.inline.punctuation.exec(Ce)))){he=he.slice(-1*ce.length);var at=Le[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;at.lastIndex=0;for(var et;(Le=at.exec(he))!=null;)if(et=this.rules.inline.em.middle.exec(he.slice(0,Le.index+2)),et)return{type:"em",raw:ce.slice(0,et[0].length),text:ce.slice(1,et[0].length-1)}}},Se.codespan=function(ce){var he=this.rules.inline.code.exec(ce);if(he){var Ce=he[2].replace(/\n/g," "),Le=/[^ ]/.test(Ce),at=Ce.startsWith(" ")&&Ce.endsWith(" ");return Le&&at&&(Ce=Ce.substring(1,Ce.length-1)),Ce=ie(Ce,!0),{type:"codespan",raw:he[0],text:Ce}}},Se.br=function(ce){var he=this.rules.inline.br.exec(ce);if(he)return{type:"br",raw:he[0]}},Se.del=function(ce){var he=this.rules.inline.del.exec(ce);if(he)return{type:"del",raw:he[0],text:he[1]}},Se.autolink=function(ce,he){var Ce=this.rules.inline.autolink.exec(ce);if(Ce){var Le,at;return Ce[2]==="@"?(Le=ie(this.options.mangle?he(Ce[1]):Ce[1]),at="mailto:"+Le):(Le=ie(Ce[1]),at=Le),{type:"link",raw:Ce[0],text:Le,href:at,tokens:[{type:"text",raw:Le,text:Le}]}}},Se.url=function(ce,he){var Ce;if(Ce=this.rules.inline.url.exec(ce)){var Le,at;if(Ce[2]==="@")Le=ie(this.options.mangle?he(Ce[0]):Ce[0]),at="mailto:"+Le;else{var et;do et=Ce[0],Ce[0]=this.rules.inline._backpedal.exec(Ce[0])[0];while(et!==Ce[0]);Le=ie(Ce[0]),Ce[1]==="www."?at="http://"+Le:at=Le}return{type:"link",raw:Ce[0],text:Le,href:at,tokens:[{type:"text",raw:Le,text:Le}]}}},Se.inlineText=function(ce,he,Ce){var Le=this.rules.inline.text.exec(ce);if(Le){var at;return he?at=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):ie(Le[0]):Le[0]:at=ie(this.options.smartypants?Ce(Le[0]):Le[0]),{type:"text",raw:Le[0],text:at}}},Fe}(),Be=V.noopTest,qe=V.edit,Ve=V.merge,De={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Be,table:Be,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};De._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,De._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,De.def=qe(De.def).replace("label",De._label).replace("title",De._title).getRegex(),De.bullet=/(?:[*+-]|\d{1,9}[.)])/,De.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,De.item=qe(De.item,"gm").replace(/bull/g,De.bullet).getRegex(),De.list=qe(De.list).replace(/bull/g,De.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+De.def.source+")").getRegex(),De._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",De._comment=//,De.html=qe(De.html,"i").replace("comment",De._comment).replace("tag",De._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),De.paragraph=qe(De._paragraph).replace("hr",De.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",De._tag).getRegex(),De.blockquote=qe(De.blockquote).replace("paragraph",De.paragraph).getRegex(),De.normal=Ve({},De),De.gfm=Ve({},De.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),De.gfm.nptable=qe(De.gfm.nptable).replace("hr",De.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",De._tag).getRegex(),De.gfm.table=qe(De.gfm.table).replace("hr",De.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",De._tag).getRegex(),De.pedantic=Ve({},De.normal,{html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",De._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Be,paragraph:qe(De.normal._paragraph).replace("hr",De.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",De.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var pe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Be,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Be,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",pe.punctuation=qe(pe.punctuation).replace(/punctuation/g,pe._punctuation).getRegex(),pe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",pe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",pe.em.start=qe(pe.em.start).replace(/punctuation/g,pe._punctuation).getRegex(),pe.em.middle=qe(pe.em.middle).replace(/punctuation/g,pe._punctuation).replace(/overlapSkip/g,pe._overlapSkip).getRegex(),pe.em.endAst=qe(pe.em.endAst,"g").replace(/punctuation/g,pe._punctuation).getRegex(),pe.em.endUnd=qe(pe.em.endUnd,"g").replace(/punctuation/g,pe._punctuation).getRegex(),pe.strong.start=qe(pe.strong.start).replace(/punctuation/g,pe._punctuation).getRegex(),pe.strong.middle=qe(pe.strong.middle).replace(/punctuation/g,pe._punctuation).replace(/blockSkip/g,pe._blockSkip).getRegex(),pe.strong.endAst=qe(pe.strong.endAst,"g").replace(/punctuation/g,pe._punctuation).getRegex(),pe.strong.endUnd=qe(pe.strong.endUnd,"g").replace(/punctuation/g,pe._punctuation).getRegex(),pe.blockSkip=qe(pe._blockSkip,"g").getRegex(),pe.overlapSkip=qe(pe._overlapSkip,"g").getRegex(),pe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pe.autolink=qe(pe.autolink).replace("scheme",pe._scheme).replace("email",pe._email).getRegex(),pe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pe.tag=qe(pe.tag).replace("comment",De._comment).replace("attribute",pe._attribute).getRegex(),pe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,pe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pe.link=qe(pe.link).replace("label",pe._label).replace("href",pe._href).replace("title",pe._title).getRegex(),pe.reflink=qe(pe.reflink).replace("label",pe._label).getRegex(),pe.reflinkSearch=qe(pe.reflinkSearch,"g").replace("reflink",pe.reflink).replace("nolink",pe.nolink).getRegex(),pe.normal=Ve({},pe),pe.pedantic=Ve({},pe.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",pe._label).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pe._label).getRegex()}),pe.gfm=Ve({},pe.normal,{escape:qe(pe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(ce="x"+ce.toString(16)),Se+="&#"+ce+";";return Se}var G=function(){function Fe(Oe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Oe||we,this.options.tokenizer=this.options.tokenizer||new Me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ce={block:ve.normal,inline:$e.normal};this.options.pedantic?(ce.block=ve.pedantic,ce.inline=$e.pedantic):this.options.gfm&&(ce.block=ve.gfm,this.options.breaks?ce.inline=$e.breaks:ce.inline=$e.gfm),this.tokenizer.rules=ce}Fe.lex=function(ce,he){var Ce=new Fe(he);return Ce.lex(ce)};var Se=Fe.prototype;return Se.lex=function(ce){return ce=ce.replace(/\r\n|\r/g,` `).replace(/\t/g," "),this.blockTokens(ce,this.tokens,!0),this.inline(this.tokens),this.tokens},Se.blockTokens=function(ce,he,Ce){he===void 0&&(he=[]),Ce===void 0&&(Ce=!0),ce=ce.replace(/^ +$/gm,"");for(var Le,at,et,Rt;ce;){if(Le=this.tokenizer.space(ce)){ce=ce.substring(Le.raw.length),Le.type&&he.push(Le);continue}if(Le=this.tokenizer.code(ce,he)){ce=ce.substring(Le.raw.length),Le.type?he.push(Le):(Rt=he[he.length-1],Rt.raw+=` `+Le.raw,Rt.text+=` `+Le.text);continue}if(Le=this.tokenizer.fences(ce)){ce=ce.substring(Le.raw.length),he.push(Le);continue}if(Le=this.tokenizer.heading(ce)){ce=ce.substring(Le.raw.length),he.push(Le);continue}if(Le=this.tokenizer.nptable(ce)){ce=ce.substring(Le.raw.length),he.push(Le);continue}if(Le=this.tokenizer.hr(ce)){ce=ce.substring(Le.raw.length),he.push(Le);continue}if(Le=this.tokenizer.blockquote(ce)){ce=ce.substring(Le.raw.length),Le.tokens=this.blockTokens(Le.text,[],Ce),he.push(Le);continue}if(Le=this.tokenizer.list(ce)){for(ce=ce.substring(Le.raw.length),et=Le.items.length,at=0;at0)for(;(en=this.tokenizer.rules.inline.reflinkSearch.exec(Rt))!=null;)pn.includes(en[0].slice(en[0].lastIndexOf("[")+1,-1))&&(Rt=Rt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(en=this.tokenizer.rules.inline.blockSkip.exec(Rt))!=null;)Rt=Rt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ce;){if(et=this.tokenizer.escape(ce)){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.tag(ce,Ce,Le)){ce=ce.substring(et.raw.length),Ce=et.inLink,Le=et.inRawBlock,he.push(et);continue}if(et=this.tokenizer.link(ce)){ce=ce.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Le)),he.push(et);continue}if(et=this.tokenizer.reflink(ce,this.tokens.links)){ce=ce.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Le)),he.push(et);continue}if(et=this.tokenizer.strong(ce,Rt,at)){ce=ce.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],Ce,Le),he.push(et);continue}if(et=this.tokenizer.em(ce,Rt,at)){ce=ce.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],Ce,Le),he.push(et);continue}if(et=this.tokenizer.codespan(ce)){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.br(ce)){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.del(ce)){ce=ce.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],Ce,Le),he.push(et);continue}if(et=this.tokenizer.autolink(ce,X)){ce=ce.substring(et.raw.length),he.push(et);continue}if(!Ce&&(et=this.tokenizer.url(ce,X))){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.inlineText(ce,Le,me)){ce=ce.substring(et.raw.length),at=et.raw.slice(-1),he.push(et);continue}if(ce){var on="Infinite loop on byte: "+ce.charCodeAt(0);if(this.options.silent){console.error(on);break}else throw new Error(on)}}return he},z(Fe,null,[{key:"rules",get:function(){return{block:ve,inline:$e}}}]),Fe}(),Y=B.defaults,ue=V.cleanUrl,be=V.escape,We=function(){function Fe(Oe){this.options=Oe||Y}var Se=Fe.prototype;return Se.code=function(ce,he,Ce){var Le=(he||"").match(/\S*/)[0];if(this.options.highlight){var at=this.options.highlight(ce,Le);at!=null&&at!==ce&&(Ce=!0,ce=at)}return Le?'
              '+(Ce?ce:be(ce,!0))+`
              +`+Le.text);continue}if(ce){var qt="Infinite loop on byte: "+ce.charCodeAt(0);if(this.options.silent){console.error(qt);break}else throw new Error(qt)}}return he},Se.inline=function(ce){var he,Ce,Le,at,et,Rt,qt=ce.length;for(he=0;he0)for(;(qt=this.tokenizer.rules.inline.reflinkSearch.exec(Rt))!=null;)pn.includes(qt[0].slice(qt[0].lastIndexOf("[")+1,-1))&&(Rt=Rt.slice(0,qt.index)+"["+"a".repeat(qt[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qt=this.tokenizer.rules.inline.blockSkip.exec(Rt))!=null;)Rt=Rt.slice(0,qt.index)+"["+"a".repeat(qt[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ce;){if(et=this.tokenizer.escape(ce)){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.tag(ce,Ce,Le)){ce=ce.substring(et.raw.length),Ce=et.inLink,Le=et.inRawBlock,he.push(et);continue}if(et=this.tokenizer.link(ce)){ce=ce.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Le)),he.push(et);continue}if(et=this.tokenizer.reflink(ce,this.tokens.links)){ce=ce.substring(et.raw.length),et.type==="link"&&(et.tokens=this.inlineTokens(et.text,[],!0,Le)),he.push(et);continue}if(et=this.tokenizer.strong(ce,Rt,at)){ce=ce.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],Ce,Le),he.push(et);continue}if(et=this.tokenizer.em(ce,Rt,at)){ce=ce.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],Ce,Le),he.push(et);continue}if(et=this.tokenizer.codespan(ce)){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.br(ce)){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.del(ce)){ce=ce.substring(et.raw.length),et.tokens=this.inlineTokens(et.text,[],Ce,Le),he.push(et);continue}if(et=this.tokenizer.autolink(ce,X)){ce=ce.substring(et.raw.length),he.push(et);continue}if(!Ce&&(et=this.tokenizer.url(ce,X))){ce=ce.substring(et.raw.length),he.push(et);continue}if(et=this.tokenizer.inlineText(ce,Le,me)){ce=ce.substring(et.raw.length),at=et.raw.slice(-1),he.push(et);continue}if(ce){var an="Infinite loop on byte: "+ce.charCodeAt(0);if(this.options.silent){console.error(an);break}else throw new Error(an)}}return he},z(Fe,null,[{key:"rules",get:function(){return{block:ve,inline:$e}}}]),Fe}(),Y=B.defaults,ue=V.cleanUrl,be=V.escape,We=function(){function Fe(Oe){this.options=Oe||Y}var Se=Fe.prototype;return Se.code=function(ce,he,Ce){var Le=(he||"").match(/\S*/)[0];if(this.options.highlight){var at=this.options.highlight(ce,Le);at!=null&&at!==ce&&(Ce=!0,ce=at)}return Le?'
              '+(Ce?ce:be(ce,!0))+`
              `:"
              "+(Ce?ce:be(ce,!0))+`
              `},Se.blockquote=function(ce){return`
              `+ce+`
              @@ -271,28 +271,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},Se.tablerow=function(ce){return` `+ce+` `},Se.tablecell=function(ce,he){var Ce=he.header?"th":"td",Le=he.align?"<"+Ce+' align="'+he.align+'">':"<"+Ce+">";return Le+ce+" -`},Se.strong=function(ce){return""+ce+""},Se.em=function(ce){return""+ce+""},Se.codespan=function(ce){return""+ce+""},Se.br=function(){return this.options.xhtml?"
              ":"
              "},Se.del=function(ce){return""+ce+""},Se.link=function(ce,he,Ce){if(ce=ue(this.options.sanitize,this.options.baseUrl,ce),ce===null)return Ce;var Le='
              ",Le},Se.image=function(ce,he,Ce){if(ce=ue(this.options.sanitize,this.options.baseUrl,ce),ce===null)return Ce;var Le=''+Ce+'":">",Le},Se.text=function(ce){return ce},Fe}(),ze=function(){function Fe(){}var Se=Fe.prototype;return Se.strong=function(ce){return ce},Se.em=function(ce){return ce},Se.codespan=function(ce){return ce},Se.del=function(ce){return ce},Se.html=function(ce){return ce},Se.text=function(ce){return ce},Se.link=function(ce,he,Ce){return""+Ce},Se.image=function(ce,he,Ce){return""+Ce},Se.br=function(){return""},Fe}(),Tt=function(){function Fe(){this.seen={}}var Se=Fe.prototype;return Se.slug=function(ce){var he=ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(he)){var Ce=he;do this.seen[Ce]++,he=Ce+"-"+this.seen[Ce];while(this.seen.hasOwnProperty(he))}return this.seen[he]=0,he},Fe}(),Ut=B.defaults,It=V.unescape,Nt=function(){function Fe(Oe){this.options=Oe||Ut,this.options.renderer=this.options.renderer||new We,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ze,this.slugger=new Tt}Fe.parse=function(ce,he){var Ce=new Fe(he);return Ce.parse(ce)};var Se=Fe.prototype;return Se.parse=function(ce,he){he===void 0&&(he=!0);var Ce="",Le,at,et,Rt,en,pn,on,Kt,bt,xt,ct,ge,Ne,Ct,dt,tn,nn,it,vt=ce.length;for(Le=0;Le0&&dt.tokens[0].type==="text"?(dt.tokens[0].text=it+" "+dt.tokens[0].text,dt.tokens[0].tokens&&dt.tokens[0].tokens.length>0&&dt.tokens[0].tokens[0].type==="text"&&(dt.tokens[0].tokens[0].text=it+" "+dt.tokens[0].tokens[0].text)):dt.tokens.unshift({type:"text",text:it}):Ct+=it),Ct+=this.parse(dt.tokens,Ne),bt+=this.renderer.listitem(Ct,nn,tn);Ce+=this.renderer.list(bt,ct,ge);continue}case"html":{Ce+=this.renderer.html(xt.text);continue}case"paragraph":{Ce+=this.renderer.paragraph(this.parseInline(xt.tokens));continue}case"text":{for(bt=xt.tokens?this.parseInline(xt.tokens):xt.text;Le+1An error occurred:

              "+nt(et.message+"",!0)+"
              ";throw et}}st.options=st.setOptions=function(Fe){return qt(st.defaults,Fe),pt(st.defaults),st},st.getDefaults=He,st.defaults=kt,st.use=function(Fe){var Se=qt({},Fe);if(Fe.renderer&&function(){var ce=st.defaults.renderer||new We,he=function(at){var et=ce[at];ce[at]=function(){for(var Rt=arguments.length,en=new Array(Rt),pn=0;pn`,triples:"",explode:"[]{}"},N=ne.Pos;ne.defineOption("autoCloseBrackets",!1,function(n,p,o){o&&o!=ne.Init&&(n.removeKeyMap(O),n.state.closeBrackets=null),p&&(w(K(p,"pairs")),n.state.closeBrackets=p,n.addKeyMap(O))});function K(n,p){return p=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[p]!=null?n[p]:z[p]}var O={Backspace:P,Enter:_};function w(n){for(var p=0;p=0;s--){var x=r[s].head;n.replaceRange("",N(x.line,x.ch-1),N(x.line,x.ch+1),"+delete")}}function _(n){var p=C(n),o=p&&K(p,"explode");if(!o||n.getOption("disableInput"))return ne.Pass;for(var r=n.listSelections(),s=0;s0;return{anchor:new N(n.anchor.line,n.anchor.ch+(p?-1:1)),head:new N(n.head.line,n.head.ch+(p?1:-1))}}function v(n,p){var o=C(n);if(!o||n.getOption("disableInput"))return ne.Pass;var r=K(o,"pairs"),s=r.indexOf(p);if(s==-1)return ne.Pass;for(var l=K(o,"closeBefore"),x=K(o,"triples"),E=r.charAt(s+1)==p,y=n.listSelections(),L=s%2==0,R,g=0;g=0&&n.getRange(c,N(c.line,c.ch+3))==p+p+p?u="skipThree":u="skip";else if(E&&c.ch>1&&x.indexOf(p)>=0&&n.getRange(N(c.line,c.ch-2),c)==p+p){if(c.ch>2&&/\bstring/.test(n.getTokenTypeAt(N(c.line,c.ch-2))))return ne.Pass;u="addFour"}else if(E){var T=c.ch==0?" ":n.getRange(N(c.line,c.ch-1),c);if(!ne.isWordChar(D)&&T!=p&&!ne.isWordChar(T))u="both";else return ne.Pass}else if(L&&(D.length===0||/\s/.test(D)||l.indexOf(D)>-1))u="both";else return ne.Pass;if(!R)R=u;else if(R!=u)return ne.Pass}var A=s%2?r.charAt(s-1):p,j=s%2?p:r.charAt(s+1);n.operation(function(){if(R=="skip")n.execCommand("goCharRight");else if(R=="skipThree")for(var U=0;U<3;U++)n.execCommand("goCharRight");else if(R=="surround"){for(var H=n.getSelections(),U=0;U0&&(ae.percent=ae.loaded/ae.total*100),V.onProgress(ae)});var W=new FormData;V.data&&Object.keys(V.data).forEach(function(ie){var ae=V.data[ie];if(Array.isArray(ae)){ae.forEach(function(xe){W.append(ie+"[]",xe)});return}W.append(ie,V.data[ie])}),V.file instanceof Blob?W.append(V.filename,V.file,V.file.name):W.append(V.filename,V.file),I.onerror=function(ae){V.onError(ae)},I.onload=function(){return I.status<200||I.status>=300?V.onError(O(V,I),w(I)):V.onSuccess(w(I),I)},I.open(V.method,V.action,!0),V.withCredentials&&"withCredentials"in I&&(I.withCredentials=!0);var Q=V.headers||{};return Q["X-Requested-With"]!==null&&I.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Q).forEach(function(ie){Q[ie]!==null&&I.setRequestHeader(ie,Q[ie])}),I.send(W),{abort:function(){I.abort()}}}var C=+new Date,P=0;function _(){return"rc-upload-"+C+"-"+ ++P}function d(V,I){return V.indexOf(I,V.length-I.length)!==-1}var v=function(V,I){if(V&&I){var W=Array.isArray(I)?I:I.split(","),Q=V.name||"",ie=V.type||"",ae=ie.replace(/\/.*$/,"");return W.some(function(xe){var Ze=xe.trim();return Ze.charAt(0)==="."?d(Q.toLowerCase(),Ze.toLowerCase()):/\/\*$/.test(Ze)?ae===Ze.replace(/\/.*$/,""):ie===Ze})}return!0};function b(V,I){var W=V.createReader(),Q=[];function ie(){W.readEntries(function(ae){var xe=Array.prototype.slice.apply(ae);Q=Q.concat(xe);var Ze=!xe.length;Ze?I(Q):ie()})}ie()}var f=function(I,W,Q){var ie=function ae(xe,Ze){Ze=Ze||"",xe.isFile?xe.file(function(Me){Q(Me)&&(xe.fullPath&&!Me.webkitRelativePath&&(Object.defineProperties(Me,{webkitRelativePath:{writable:!0}}),Me.webkitRelativePath=xe.fullPath.replace(/^\//,""),Object.defineProperties(Me,{webkitRelativePath:{writable:!1}})),W([Me]))}):xe.isDirectory&&b(xe,function(Me){Me.forEach(function(Be){ae(Be,""+Ze+xe.name+"/")})})};I.forEach(function(ae){ie(ae.webkitGetAsEntry())})},n=f,p=Object.assign||function(V){for(var I=1;I=0)continue;if(!Object.prototype.hasOwnProperty.call(V,Q))continue;W[Q]=V[Q]}return W}function x(V,I){if(!(V instanceof I))throw new TypeError("Cannot call a class as a function")}function E(V,I){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:V}function y(V,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);V.prototype=Object.create(I&&I.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(V,I):V.__proto__=I)}var L=function(I){return Object.keys(I).reduce(function(W,Q){return(Q.substr(0,5)==="data-"||Q.substr(0,5)==="aria-"||Q==="role")&&(W[Q]=I[Q]),W},{})},R=function(V){y(I,V);function I(){var W,Q,ie,ae;x(this,I);for(var xe=arguments.length,Ze=Array(xe),Me=0;Me0)throw new Error("Invalid string. Length must be a multiple of 4");var p=f.indexOf("=");p===-1&&(p=n);var o=p===n?0:4-p%4;return[p,o]}function C(f){var n=B(f),p=n[0],o=n[1];return(p+o)*3/4-o}function P(f,n,p){return(n+p)*3/4-p}function _(f){var n,p=B(f),o=p[0],r=p[1],s=new N(P(f,o,r)),l=0,x=r>0?o-4:o,E;for(E=0;E>16&255,s[l++]=n>>8&255,s[l++]=n&255;return r===2&&(n=z[f.charCodeAt(E)]<<2|z[f.charCodeAt(E+1)]>>4,s[l++]=n&255),r===1&&(n=z[f.charCodeAt(E)]<<10|z[f.charCodeAt(E+1)]<<4|z[f.charCodeAt(E+2)]>>2,s[l++]=n>>8&255,s[l++]=n&255),s}function d(f){return ne[f>>18&63]+ne[f>>12&63]+ne[f>>6&63]+ne[f&63]}function v(f,n,p){for(var o,r=[],s=n;sx?x:l+s));return o===1?(n=f[p-1],r.push(ne[n>>2]+ne[n<<4&63]+"==")):o===2&&(n=(f[p-2]<<8)+f[p-1],r.push(ne[n>>10]+ne[n>>4&63]+ne[n<<2&63]+"=")),r.join("")}},HDXh:function(Vt,Ee,k){"use strict";(function(ne){/*! +`},Se.strong=function(ce){return""+ce+""},Se.em=function(ce){return""+ce+""},Se.codespan=function(ce){return""+ce+""},Se.br=function(){return this.options.xhtml?"
              ":"
              "},Se.del=function(ce){return""+ce+""},Se.link=function(ce,he,Ce){if(ce=ue(this.options.sanitize,this.options.baseUrl,ce),ce===null)return Ce;var Le='
              ",Le},Se.image=function(ce,he,Ce){if(ce=ue(this.options.sanitize,this.options.baseUrl,ce),ce===null)return Ce;var Le=''+Ce+'":">",Le},Se.text=function(ce){return ce},Fe}(),ze=function(){function Fe(){}var Se=Fe.prototype;return Se.strong=function(ce){return ce},Se.em=function(ce){return ce},Se.codespan=function(ce){return ce},Se.del=function(ce){return ce},Se.html=function(ce){return ce},Se.text=function(ce){return ce},Se.link=function(ce,he,Ce){return""+Ce},Se.image=function(ce,he,Ce){return""+Ce},Se.br=function(){return""},Fe}(),Tt=function(){function Fe(){this.seen={}}var Se=Fe.prototype;return Se.slug=function(ce){var he=ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(he)){var Ce=he;do this.seen[Ce]++,he=Ce+"-"+this.seen[Ce];while(this.seen.hasOwnProperty(he))}return this.seen[he]=0,he},Fe}(),Ut=B.defaults,It=V.unescape,Nt=function(){function Fe(Oe){this.options=Oe||Ut,this.options.renderer=this.options.renderer||new We,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ze,this.slugger=new Tt}Fe.parse=function(ce,he){var Ce=new Fe(he);return Ce.parse(ce)};var Se=Fe.prototype;return Se.parse=function(ce,he){he===void 0&&(he=!0);var Ce="",Le,at,et,Rt,qt,pn,an,Ht,bt,xt,ct,ge,Ne,Ct,dt,en,tn,it,vt=ce.length;for(Le=0;Le0&&dt.tokens[0].type==="text"?(dt.tokens[0].text=it+" "+dt.tokens[0].text,dt.tokens[0].tokens&&dt.tokens[0].tokens.length>0&&dt.tokens[0].tokens[0].type==="text"&&(dt.tokens[0].tokens[0].text=it+" "+dt.tokens[0].tokens[0].text)):dt.tokens.unshift({type:"text",text:it}):Ct+=it),Ct+=this.parse(dt.tokens,Ne),bt+=this.renderer.listitem(Ct,tn,en);Ce+=this.renderer.list(bt,ct,ge);continue}case"html":{Ce+=this.renderer.html(xt.text);continue}case"paragraph":{Ce+=this.renderer.paragraph(this.parseInline(xt.tokens));continue}case"text":{for(bt=xt.tokens?this.parseInline(xt.tokens):xt.text;Le+1An error occurred:

              "+nt(et.message+"",!0)+"
              ";throw et}}st.options=st.setOptions=function(Fe){return Zt(st.defaults,Fe),pt(st.defaults),st},st.getDefaults=He,st.defaults=Mt,st.use=function(Fe){var Se=Zt({},Fe);if(Fe.renderer&&function(){var ce=st.defaults.renderer||new We,he=function(at){var et=ce[at];ce[at]=function(){for(var Rt=arguments.length,qt=new Array(Rt),pn=0;pn`,triples:"",explode:"[]{}"},N=ne.Pos;ne.defineOption("autoCloseBrackets",!1,function(n,p,o){o&&o!=ne.Init&&(n.removeKeyMap(O),n.state.closeBrackets=null),p&&(w(K(p,"pairs")),n.state.closeBrackets=p,n.addKeyMap(O))});function K(n,p){return p=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[p]!=null?n[p]:z[p]}var O={Backspace:P,Enter:_};function w(n){for(var p=0;p=0;s--){var x=r[s].head;n.replaceRange("",N(x.line,x.ch-1),N(x.line,x.ch+1),"+delete")}}function _(n){var p=C(n),o=p&&K(p,"explode");if(!o||n.getOption("disableInput"))return ne.Pass;for(var r=n.listSelections(),s=0;s0;return{anchor:new N(n.anchor.line,n.anchor.ch+(p?-1:1)),head:new N(n.head.line,n.head.ch+(p?1:-1))}}function v(n,p){var o=C(n);if(!o||n.getOption("disableInput"))return ne.Pass;var r=K(o,"pairs"),s=r.indexOf(p);if(s==-1)return ne.Pass;for(var l=K(o,"closeBefore"),x=K(o,"triples"),E=r.charAt(s+1)==p,y=n.listSelections(),L=s%2==0,R,g=0;g=0&&n.getRange(c,N(c.line,c.ch+3))==p+p+p?u="skipThree":u="skip";else if(E&&c.ch>1&&x.indexOf(p)>=0&&n.getRange(N(c.line,c.ch-2),c)==p+p){if(c.ch>2&&/\bstring/.test(n.getTokenTypeAt(N(c.line,c.ch-2))))return ne.Pass;u="addFour"}else if(E){var T=c.ch==0?" ":n.getRange(N(c.line,c.ch-1),c);if(!ne.isWordChar(D)&&T!=p&&!ne.isWordChar(T))u="both";else return ne.Pass}else if(L&&(D.length===0||/\s/.test(D)||l.indexOf(D)>-1))u="both";else return ne.Pass;if(!R)R=u;else if(R!=u)return ne.Pass}var A=s%2?r.charAt(s-1):p,j=s%2?p:r.charAt(s+1);n.operation(function(){if(R=="skip")n.execCommand("goCharRight");else if(R=="skipThree")for(var U=0;U<3;U++)n.execCommand("goCharRight");else if(R=="surround"){for(var H=n.getSelections(),U=0;U0&&(ae.percent=ae.loaded/ae.total*100),V.onProgress(ae)});var W=new FormData;V.data&&Object.keys(V.data).forEach(function(ie){var ae=V.data[ie];if(Array.isArray(ae)){ae.forEach(function(xe){W.append(ie+"[]",xe)});return}W.append(ie,V.data[ie])}),V.file instanceof Blob?W.append(V.filename,V.file,V.file.name):W.append(V.filename,V.file),I.onerror=function(ae){V.onError(ae)},I.onload=function(){return I.status<200||I.status>=300?V.onError(O(V,I),w(I)):V.onSuccess(w(I),I)},I.open(V.method,V.action,!0),V.withCredentials&&"withCredentials"in I&&(I.withCredentials=!0);var Q=V.headers||{};return Q["X-Requested-With"]!==null&&I.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Q).forEach(function(ie){Q[ie]!==null&&I.setRequestHeader(ie,Q[ie])}),I.send(W),{abort:function(){I.abort()}}}var C=+new Date,P=0;function _(){return"rc-upload-"+C+"-"+ ++P}function d(V,I){return V.indexOf(I,V.length-I.length)!==-1}var v=function(V,I){if(V&&I){var W=Array.isArray(I)?I:I.split(","),Q=V.name||"",ie=V.type||"",ae=ie.replace(/\/.*$/,"");return W.some(function(xe){var Ze=xe.trim();return Ze.charAt(0)==="."?d(Q.toLowerCase(),Ze.toLowerCase()):/\/\*$/.test(Ze)?ae===Ze.replace(/\/.*$/,""):ie===Ze})}return!0};function b(V,I){var W=V.createReader(),Q=[];function ie(){W.readEntries(function(ae){var xe=Array.prototype.slice.apply(ae);Q=Q.concat(xe);var Ze=!xe.length;Ze?I(Q):ie()})}ie()}var f=function(I,W,Q){var ie=function ae(xe,Ze){Ze=Ze||"",xe.isFile?xe.file(function(Me){Q(Me)&&(xe.fullPath&&!Me.webkitRelativePath&&(Object.defineProperties(Me,{webkitRelativePath:{writable:!0}}),Me.webkitRelativePath=xe.fullPath.replace(/^\//,""),Object.defineProperties(Me,{webkitRelativePath:{writable:!1}})),W([Me]))}):xe.isDirectory&&b(xe,function(Me){Me.forEach(function(Be){ae(Be,""+Ze+xe.name+"/")})})};I.forEach(function(ae){ie(ae.webkitGetAsEntry())})},n=f,p=Object.assign||function(V){for(var I=1;I=0)continue;if(!Object.prototype.hasOwnProperty.call(V,Q))continue;W[Q]=V[Q]}return W}function x(V,I){if(!(V instanceof I))throw new TypeError("Cannot call a class as a function")}function E(V,I){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:V}function y(V,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);V.prototype=Object.create(I&&I.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(V,I):V.__proto__=I)}var L=function(I){return Object.keys(I).reduce(function(W,Q){return(Q.substr(0,5)==="data-"||Q.substr(0,5)==="aria-"||Q==="role")&&(W[Q]=I[Q]),W},{})},R=function(V){y(I,V);function I(){var W,Q,ie,ae;x(this,I);for(var xe=arguments.length,Ze=Array(xe),Me=0;Me0)throw new Error("Invalid string. Length must be a multiple of 4");var p=f.indexOf("=");p===-1&&(p=n);var o=p===n?0:4-p%4;return[p,o]}function C(f){var n=B(f),p=n[0],o=n[1];return(p+o)*3/4-o}function P(f,n,p){return(n+p)*3/4-p}function _(f){var n,p=B(f),o=p[0],r=p[1],s=new N(P(f,o,r)),l=0,x=r>0?o-4:o,E;for(E=0;E>16&255,s[l++]=n>>8&255,s[l++]=n&255;return r===2&&(n=z[f.charCodeAt(E)]<<2|z[f.charCodeAt(E+1)]>>4,s[l++]=n&255),r===1&&(n=z[f.charCodeAt(E)]<<10|z[f.charCodeAt(E+1)]<<4|z[f.charCodeAt(E+2)]>>2,s[l++]=n>>8&255,s[l++]=n&255),s}function d(f){return ne[f>>18&63]+ne[f>>12&63]+ne[f>>6&63]+ne[f&63]}function v(f,n,p){for(var o,r=[],s=n;sx?x:l+s));return o===1?(n=f[p-1],r.push(ne[n>>2]+ne[n<<4&63]+"==")):o===2&&(n=(f[p-2]<<8)+f[p-1],r.push(ne[n>>10]+ne[n>>4&63]+ne[n<<2&63]+"=")),r.join("")}},HDXh:function(Gt,Ee,k){"use strict";(function(ne){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT -*/var z=k("H7XF"),N=k("kVK+"),K=k("49sm");Ee.Buffer=C,Ee.SlowBuffer=r,Ee.INSPECT_MAX_BYTES=50,C.TYPED_ARRAY_SUPPORT=ne.TYPED_ARRAY_SUPPORT!==void 0?ne.TYPED_ARRAY_SUPPORT:O(),Ee.kMaxLength=w();function O(){try{var X=new Uint8Array(1);return X.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},X.foo()===42&&typeof X.subarray=="function"&&X.subarray(1,1).byteLength===0}catch(G){return!1}}function w(){return C.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function B(X,G){if(w()=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return X|0}function r(X){return+X!=X&&(X=0),C.alloc(+X)}C.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},C.compare=function(G,Y){if(!C.isBuffer(G)||!C.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(G===Y)return 0;for(var ue=G.length,be=Y.length,We=0,ze=Math.min(ue,be);We>>1;case"base64":return ve(X).length;default:if(ue)return pe(X).length;G=(""+G).toLowerCase(),ue=!0}}C.byteLength=s;function l(X,G,Y){var ue=!1;if((G===void 0||G<0)&&(G=0),G>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,G>>>=0,Y<=G)return"";for(X||(X="utf8");;)switch(X){case"hex":return V(this,G,Y);case"utf8":case"utf-8":return T(this,G,Y);case"ascii":return U(this,G,Y);case"latin1":case"binary":return H(this,G,Y);case"base64":return D(this,G,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,G,Y);default:if(ue)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),ue=!0}}C.prototype._isBuffer=!0;function x(X,G,Y){var ue=X[G];X[G]=X[Y],X[Y]=ue}C.prototype.swap16=function(){var G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y0&&(G=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(G+=" ... ")),""},C.prototype.compare=function(G,Y,ue,be,We){if(!C.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ue===void 0&&(ue=G?G.length:0),be===void 0&&(be=0),We===void 0&&(We=this.length),Y<0||ue>G.length||be<0||We>this.length)throw new RangeError("out of range index");if(be>=We&&Y>=ue)return 0;if(be>=We)return-1;if(Y>=ue)return 1;if(Y>>>=0,ue>>>=0,be>>>=0,We>>>=0,this===G)return 0;for(var ze=We-be,Tt=ue-Y,Ut=Math.min(ze,Tt),It=this.slice(be,We),Nt=G.slice(Y,ue),qt=0;qt2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=be?0:X.length-1),Y<0&&(Y=X.length+Y),Y>=X.length){if(be)return-1;Y=X.length-1}else if(Y<0)if(be)Y=0;else return-1;if(typeof G=="string"&&(G=C.from(G,ue)),C.isBuffer(G))return G.length===0?-1:y(X,G,Y,ue,be);if(typeof G=="number")return G=G&255,C.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?be?Uint8Array.prototype.indexOf.call(X,G,Y):Uint8Array.prototype.lastIndexOf.call(X,G,Y):y(X,[G],Y,ue,be);throw new TypeError("val must be string, number or Buffer")}function y(X,G,Y,ue,be){var We=1,ze=X.length,Tt=G.length;if(ue!==void 0&&(ue=String(ue).toLowerCase(),ue==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(X.length<2||G.length<2)return-1;We=2,ze/=2,Tt/=2,Y/=2}function Ut(nt,He){return We===1?nt[He]:nt.readUInt16BE(He*We)}var It;if(be){var Nt=-1;for(It=Y;Itze&&(Y=ze-Tt),It=Y;It>=0;It--){for(var qt=!0,hn=0;hnbe&&(ue=be)):ue=be;var We=G.length;if(We%2!==0)throw new TypeError("Invalid hex string");ue>We/2&&(ue=We/2);for(var ze=0;zeWe)&&(ue=We),G.length>0&&(ue<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");for(var ze=!1;;)switch(be){case"hex":return L(this,G,Y,ue);case"utf8":case"utf-8":return R(this,G,Y,ue);case"ascii":return g(this,G,Y,ue);case"latin1":case"binary":return m(this,G,Y,ue);case"base64":return c(this,G,Y,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,G,Y,ue);default:if(ze)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),ze=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(X,G,Y){return G===0&&Y===X.length?z.fromByteArray(X):z.fromByteArray(X.slice(G,Y))}function T(X,G,Y){Y=Math.min(X.length,Y);for(var ue=[],be=G;be239?4:We>223?3:We>191?2:1;if(be+Tt<=Y){var Ut,It,Nt,qt;switch(Tt){case 1:We<128&&(ze=We);break;case 2:Ut=X[be+1],(Ut&192)===128&&(qt=(We&31)<<6|Ut&63,qt>127&&(ze=qt));break;case 3:Ut=X[be+1],It=X[be+2],(Ut&192)===128&&(It&192)===128&&(qt=(We&15)<<12|(Ut&63)<<6|It&63,qt>2047&&(qt<55296||qt>57343)&&(ze=qt));break;case 4:Ut=X[be+1],It=X[be+2],Nt=X[be+3],(Ut&192)===128&&(It&192)===128&&(Nt&192)===128&&(qt=(We&15)<<18|(Ut&63)<<12|(It&63)<<6|Nt&63,qt>65535&&qt<1114112&&(ze=qt))}}ze===null?(ze=65533,Tt=1):ze>65535&&(ze-=65536,ue.push(ze>>>10&1023|55296),ze=56320|ze&1023),ue.push(ze),be+=Tt}return j(ue)}var A=4096;function j(X){var G=X.length;if(G<=A)return String.fromCharCode.apply(String,X);for(var Y="",ue=0;ueue)&&(Y=ue);for(var be="",We=G;Weue&&(G=ue),Y<0?(Y+=ue,Y<0&&(Y=0)):Y>ue&&(Y=ue),YY)throw new RangeError("Trying to access beyond buffer length")}C.prototype.readUIntLE=function(G,Y,ue){G=G|0,Y=Y|0,ue||W(G,Y,this.length);for(var be=this[G],We=1,ze=0;++ze0&&(We*=256);)be+=this[G+--Y]*We;return be},C.prototype.readUInt8=function(G,Y){return Y||W(G,1,this.length),this[G]},C.prototype.readUInt16LE=function(G,Y){return Y||W(G,2,this.length),this[G]|this[G+1]<<8},C.prototype.readUInt16BE=function(G,Y){return Y||W(G,2,this.length),this[G]<<8|this[G+1]},C.prototype.readUInt32LE=function(G,Y){return Y||W(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},C.prototype.readUInt32BE=function(G,Y){return Y||W(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},C.prototype.readIntLE=function(G,Y,ue){G=G|0,Y=Y|0,ue||W(G,Y,this.length);for(var be=this[G],We=1,ze=0;++ze=We&&(be-=Math.pow(2,8*Y)),be},C.prototype.readIntBE=function(G,Y,ue){G=G|0,Y=Y|0,ue||W(G,Y,this.length);for(var be=Y,We=1,ze=this[G+--be];be>0&&(We*=256);)ze+=this[G+--be]*We;return We*=128,ze>=We&&(ze-=Math.pow(2,8*Y)),ze},C.prototype.readInt8=function(G,Y){return Y||W(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},C.prototype.readInt16LE=function(G,Y){Y||W(G,2,this.length);var ue=this[G]|this[G+1]<<8;return ue&32768?ue|4294901760:ue},C.prototype.readInt16BE=function(G,Y){Y||W(G,2,this.length);var ue=this[G+1]|this[G]<<8;return ue&32768?ue|4294901760:ue},C.prototype.readInt32LE=function(G,Y){return Y||W(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},C.prototype.readInt32BE=function(G,Y){return Y||W(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},C.prototype.readFloatLE=function(G,Y){return Y||W(G,4,this.length),N.read(this,G,!0,23,4)},C.prototype.readFloatBE=function(G,Y){return Y||W(G,4,this.length),N.read(this,G,!1,23,4)},C.prototype.readDoubleLE=function(G,Y){return Y||W(G,8,this.length),N.read(this,G,!0,52,8)},C.prototype.readDoubleBE=function(G,Y){return Y||W(G,8,this.length),N.read(this,G,!1,52,8)};function Q(X,G,Y,ue,be,We){if(!C.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>be||GX.length)throw new RangeError("Index out of range")}C.prototype.writeUIntLE=function(G,Y,ue,be){if(G=+G,Y=Y|0,ue=ue|0,!be){var We=Math.pow(2,8*ue)-1;Q(this,G,Y,ue,We,0)}var ze=1,Tt=0;for(this[Y]=G&255;++Tt=0&&(Tt*=256);)this[Y+ze]=G/Tt&255;return Y+ue},C.prototype.writeUInt8=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,1,255,0),C.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[Y]=G&255,Y+1};function ie(X,G,Y,ue){G<0&&(G=65535+G+1);for(var be=0,We=Math.min(X.length-Y,2);be>>(ue?be:1-be)*8}C.prototype.writeUInt16LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8):ie(this,G,Y,!0),Y+2},C.prototype.writeUInt16BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>8,this[Y+1]=G&255):ie(this,G,Y,!1),Y+2};function ae(X,G,Y,ue){G<0&&(G=4294967295+G+1);for(var be=0,We=Math.min(X.length-Y,4);be>>(ue?be:3-be)*8&255}C.prototype.writeUInt32LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[Y+3]=G>>>24,this[Y+2]=G>>>16,this[Y+1]=G>>>8,this[Y]=G&255):ae(this,G,Y,!0),Y+4},C.prototype.writeUInt32BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255):ae(this,G,Y,!1),Y+4},C.prototype.writeIntLE=function(G,Y,ue,be){if(G=+G,Y=Y|0,!be){var We=Math.pow(2,8*ue-1);Q(this,G,Y,ue,We-1,-We)}var ze=0,Tt=1,Ut=0;for(this[Y]=G&255;++ze>0)-Ut&255;return Y+ue},C.prototype.writeIntBE=function(G,Y,ue,be){if(G=+G,Y=Y|0,!be){var We=Math.pow(2,8*ue-1);Q(this,G,Y,ue,We-1,-We)}var ze=ue-1,Tt=1,Ut=0;for(this[Y+ze]=G&255;--ze>=0&&(Tt*=256);)G<0&&Ut===0&&this[Y+ze+1]!==0&&(Ut=1),this[Y+ze]=(G/Tt>>0)-Ut&255;return Y+ue},C.prototype.writeInt8=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,1,127,-128),C.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[Y]=G&255,Y+1},C.prototype.writeInt16LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8):ie(this,G,Y,!0),Y+2},C.prototype.writeInt16BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>8,this[Y+1]=G&255):ie(this,G,Y,!1),Y+2},C.prototype.writeInt32LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,2147483647,-2147483648),C.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8,this[Y+2]=G>>>16,this[Y+3]=G>>>24):ae(this,G,Y,!0),Y+4},C.prototype.writeInt32BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255):ae(this,G,Y,!1),Y+4};function xe(X,G,Y,ue,be,We){if(Y+ue>X.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function Ze(X,G,Y,ue,be){return be||xe(X,G,Y,4,34028234663852886e22,-34028234663852886e22),N.write(X,G,Y,ue,23,4),Y+4}C.prototype.writeFloatLE=function(G,Y,ue){return Ze(this,G,Y,!0,ue)},C.prototype.writeFloatBE=function(G,Y,ue){return Ze(this,G,Y,!1,ue)};function Me(X,G,Y,ue,be){return be||xe(X,G,Y,8,17976931348623157e292,-17976931348623157e292),N.write(X,G,Y,ue,52,8),Y+8}C.prototype.writeDoubleLE=function(G,Y,ue){return Me(this,G,Y,!0,ue)},C.prototype.writeDoubleBE=function(G,Y,ue){return Me(this,G,Y,!1,ue)},C.prototype.copy=function(G,Y,ue,be){if(ue||(ue=0),!be&&be!==0&&(be=this.length),Y>=G.length&&(Y=G.length),Y||(Y=0),be>0&&be=this.length)throw new RangeError("sourceStart out of bounds");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),G.length-Y=0;--ze)G[ze+Y]=this[ze+ue];else if(We<1e3||!C.TYPED_ARRAY_SUPPORT)for(ze=0;ze>>0,ue=ue===void 0?this.length:ue>>>0,G||(G=0);var ze;if(typeof G=="number")for(ze=Y;ze55295&&Y<57344){if(!be){if(Y>56319){(G-=3)>-1&&We.push(239,191,189);continue}else if(ze+1===ue){(G-=3)>-1&&We.push(239,191,189);continue}be=Y;continue}if(Y<56320){(G-=3)>-1&&We.push(239,191,189),be=Y;continue}Y=(be-55296<<10|Y-56320)+65536}else be&&((G-=3)>-1&&We.push(239,191,189));if(be=null,Y<128){if((G-=1)<0)break;We.push(Y)}else if(Y<2048){if((G-=2)<0)break;We.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((G-=3)<0)break;We.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((G-=4)<0)break;We.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return We}function se(X){for(var G=[],Y=0;Y>8,be=Y%256,We.push(be),We.push(ue);return We}function ve(X){return z.toByteArray(qe(X))}function $e(X,G,Y,ue){for(var be=0;be=G.length||be>=X.length);++be)G[be+Y]=X[be];return be}function me(X){return X!==X}}).call(this,k("IyRk"))},HmJG:function(Vt,Ee,k){},I8Z2:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return K}),k.d(Ee,"b",function(){return b}),k.d(Ee,"c",function(){return n});var ne=k("q1tI"),z=function(){var p=function(o,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var x in l)l.hasOwnProperty(x)&&(s[x]=l[x])},p(o,r)};return function(o,r){p(o,r);function s(){this.constructor=o}o.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}(),N=ne.createContext(null),K=function(p){z(o,p);function o(){return p!==null&&p.apply(this,arguments)||this}return o.prototype.render=function(){return ne.createElement(N.Provider,{value:this.props.store},this.props.children)},o}(ne.Component),O=k("Gytx"),w=k.n(O),B=k("2mql"),C=k.n(B),P=function(){var p=function(o,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var x in l)l.hasOwnProperty(x)&&(s[x]=l[x])},p(o,r)};return function(o,r){p(o,r);function s(){this.constructor=o}o.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}(),_=function(){return _=Object.assign||function(p){for(var o,r=1,s=arguments.length;r=L?z:{done:!1,value:E[y++]}}}}P.fromArray=b;function f(E){return{next:function(){var y=E.next();return y.done?z:{done:!1,value:y.value}}}}P.fromNativeIterator=f;function n(E){return E?Array.isArray(E)?P.fromArray(E):E:P.empty()}P.from=n;function p(E,y){return{next:function(){var L=E.next();return L.done?z:{done:!1,value:y(L.value)}}}}P.map=p;function o(E,y){return{next:function(){for(;;){var L=E.next();if(L.done)return z;if(y(L.value))return{done:!1,value:L.value}}}}}P.filter=o;function r(E,y){for(var L=E.next();!L.done;L=E.next())y(L.value)}P.forEach=r;function s(E,y){y===void 0&&(y=Number.POSITIVE_INFINITY);var L=[];if(y===0)return L;for(var R=0,g=E.next();!g.done&&!(L.push(g.value),++R>=y);g=E.next());return L}P.collect=s;function l(){for(var E=[],y=0;y=E.length)return z;var R=E[L],g=R.next();return g.done?(L++,this.next()):g}}}P.concat=l;function x(E){return new K(E)}P.chain=x})(N||(N={}));var K=function(){function P(_){this.it=_}return P.prototype.next=function(){return this.it.next()},P}();function O(P){return Array.isArray(P)?N.fromArray(P):P||N.empty()}var w=function(){function P(_,d,v,b){d===void 0&&(d=0),v===void 0&&(v=_.length),b===void 0&&(b=d-1),this.items=_,this.start=d,this.end=v,this.index=b}return P.prototype.first=function(){return this.index=this.start,this.current()},P.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},P.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},P}(),B=function(P){ne(_,P);function _(d,v,b,f){return v===void 0&&(v=0),b===void 0&&(b=d.length),f===void 0&&(f=v-1),P.call(this,d,v,b,f)||this}return _.prototype.current=function(){return P.prototype.current.call(this)},_.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},_.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.last=function(){return this.index=this.end-1,this.current()},_.prototype.parent=function(){return null},_}(w),C=function(){function P(_,d){this.iterator=_,this.fn=d}return P.prototype.next=function(){return this.fn(this.iterator.next())},P}()},LSTS:function(Vt,Ee,k){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var ne=function(){function v(b,f){for(var n=0;n=0)continue;if(!Object.prototype.hasOwnProperty.call(v,n))continue;f[n]=v[n]}return f}function C(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function P(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function _(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var d=function(v){_(b,v);function b(f){C(this,b);var n=P(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,f));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return ne(b,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var n=this.getParentElement(this.scrollComponent);n.scrollTop=n.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var n=!1,p={get passive(){n=!0}};try{document.addEventListener("test",null,p),document.removeEventListener("test",null,p)}catch(o){}return n}},{key:"eventListenerOptions",value:function(){var n=this.props.useCapture;return this.isPassiveSupported()&&(n={useCapture:this.props.useCapture,passive:!0}),n}},{key:"setDefaultLoader",value:function(n){this.defaultLoader=n}},{key:"detachMousewheelListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.scrollComponent.parentNode),n.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.getParentElement(this.scrollComponent)),n.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(n){var p=this.props.getScrollParent&&this.props.getScrollParent();return p!=null?p:n&&n.parentNode}},{key:"filterProps",value:function(n){return n}},{key:"attachScrollListener",value:function(){var n=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!n)return;var p=window;this.props.useWindow===!1&&(p=n),p.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),p.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),p.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(n){n.deltaY===1&&!this.isPassiveSupported()&&n.preventDefault()}},{key:"scrollListener",value:function(){var n=this.scrollComponent,p=window,o=this.getParentElement(n),r=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,l=p.pageYOffset!==void 0?p.pageYOffset:s.scrollTop;this.props.isReverse?r=l:r=this.calculateOffset(n,l)}else this.props.isReverse?r=o.scrollTop:r=n.scrollHeight-o.scrollTop-o.clientHeight;r1&&arguments[1]!==void 0?arguments[1]:1,Oe=ze.length,ce=0;ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(W).map(function(ie,ae){if(!O.isValidElement(ie)||!ie.type)return null;var xe=ie.type.isSelectOptGroup,Ze=ie.key,Me=ie.props,Be=Me.children,qe=Object(B.a)(Me,["children"]);return Q||!xe?R(ie):Object(y.a)(Object(y.a)({key:"__RC_SELECT_GRP__".concat(Ze===null?ae:Ze,"__"),label:Ze},qe),{},{options:g(Be)})}).filter(function(ie){return ie})}var m=k("2Qr1"),c=k("qNPg"),u=k("U8pU"),D=k("Kwbf"),T=k("WKfj");function A(W){var Q=W.mode,ie=W.options,ae=W.children,xe=W.backfill,Ze=W.allowClear,Me=W.placeholder,Be=W.getInputElement,qe=W.showSearch,Ve=W.onSearch,De=W.defaultOpen,pe=W.autoFocus,se=W.labelInValue,we=W.value,ve=W.inputValue,$e=W.optionLabelProp,me=Q==="multiple"||Q==="tags",X=qe!==void 0?qe:me||Q==="combobox",G=ie||g(ae);if(Object(D.a)(Q!=="tags"||G.every(function(We){return!We.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Q==="tags"||Q==="combobox"){var Y=G.some(function(We){return We.options?We.options.some(function(ze){return typeof("value"in ze?ze.value:ze.key)=="number"}):typeof("value"in We?We.value:We.key)=="number"});Object(D.a)(!Y,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(Q!=="combobox"||!$e,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(Q==="combobox"||!xe,"`backfill` only works with `combobox` mode."),Object(D.a)(Q==="combobox"||!Be,"`getInputElement` only work with `combobox` mode."),Object(D.b)(Q!=="combobox"||!Be||!Ze||!Me,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ve&&!X&&Q!=="combobox"&&Q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!De||pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),we!=null){var ue=Object(T.d)(we);Object(D.a)(!se||ue.every(function(We){return Object(u.a)(We)==="object"&&("key"in We||"value"in We)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!me||Array.isArray(we),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var be=null;Object(L.a)(ae).some(function(We){if(!O.isValidElement(We)||!We.type)return!1;var ze=We.type;if(ze.isSelectOption)return!1;if(ze.isSelectOptGroup){var Tt=Object(L.a)(We.props.children).every(function(Ut){return!O.isValidElement(Ut)||!We.type||Ut.type.isSelectOption?!0:(be=Ut.type,!1)});return!Tt}return be=ze,!0}),be&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(be.displayName||be.name||be,"`.")),Object(D.a)(ve===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=A,U=Object(c.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:g,flattenOptions:m.d,getLabeledValue:m.e,filterOptions:m.b,isValueDisabled:m.g,findValueOption:m.c,warningProps:j,fillOptionsWithMissingValue:m.a}),H=function(W){Object(N.a)(ie,W);var Q=Object(K.a)(ie);function ie(){var ae;return Object(ne.a)(this,ie),ae=Q.apply(this,arguments),ae.selectRef=O.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(z.a)(ie,[{key:"render",value:function(){return O.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),ie}(O.Component);H.Option=l,H.OptGroup=E;var V=H,I=Ee.c=V},M8RZ:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return P});var ne=k("fWQN"),z=k("mtLc"),N=k("yKVA"),K=k("879j"),O=k("q1tI"),w=k.n(O),B=k("i8i4"),C=k.n(B),P=function(_){Object(N.a)(v,_);var d=Object(K.a)(v);function v(b){var f;Object(ne.a)(this,v),f=d.call(this,b);var n=window.document;return f.node=n.createElement("div"),n.body.appendChild(f.node),f}return Object(z.a)(v,[{key:"render",value:function(){var f=this.props.children;return Object(B.createPortal)(f,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),v}(w.a.Component)},MI8n:function(Vt,Ee,k){"use strict";k.d(Ee,"b",function(){return w}),k.d(Ee,"a",function(){return P}),k.d(Ee,"e",function(){return _}),k.d(Ee,"d",function(){return d}),k.d(Ee,"c",function(){return v}),k.d(Ee,"f",function(){return b});var ne=k("/cxE"),z=k("C/vA"),N=k("pmY6"),K=k("24hK"),O=function(){var f=function(n,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var s in r)r.hasOwnProperty(s)&&(o[s]=r[s])},f(n,p)};return function(n,p){f(n,p);function o(){this.constructor=n}n.prototype=p===null?Object.create(p):(o.prototype=p.prototype,new o)}}(),w;(function(f){f.None=function(){return N.a.None};function n(j){return function(U,H,V){H===void 0&&(H=null);var I=!1,W;return W=j(function(Q){return I?void 0:(W?W.dispose():I=!0,U.call(H,Q))},null,V),I&&W.dispose(),W}}f.once=n;function p(j,U){return E(function(H,V,I){return V===void 0&&(V=null),j(function(W){return H.call(V,U(W))},null,I)})}f.map=p;function o(j,U){return E(function(H,V,I){return V===void 0&&(V=null),j(function(W){U(W),H.call(V,W)},null,I)})}f.forEach=o;function r(j,U){return E(function(H,V,I){return V===void 0&&(V=null),j(function(W){return U(W)&&H.call(V,W)},null,I)})}f.filter=r;function s(j){return j}f.signal=s;function l(){for(var j=[],U=0;U1)&&xe.fire(Me),ae=0},H)})},onLastListenerRemove:function(){W.dispose()}});return xe.event}f.debounce=y;function L(j){var U=new Date().getTime();return p(n(j),function(H){return new Date().getTime()-U})}f.stopwatch=L;function R(j){var U=!0,H;return r(j,function(V){var I=U||V!==H;return U=!1,H=V,I})}f.latch=R;function g(j,U,H){U===void 0&&(U=!1),H===void 0&&(H=[]);var V=H.slice(),I=j(function(ie){V?V.push(ie):Q.fire(ie)}),W=function(){V&&V.forEach(function(ie){return Q.fire(ie)}),V=null},Q=new P({onFirstListenerAdd:function(){I||(I=j(function(ie){return Q.fire(ie)}))},onFirstListenerDidAdd:function(){V&&(U?setTimeout(W):W())},onLastListenerRemove:function(){I&&I.dispose(),I=null}});return Q.event}f.buffer=g;var m=function(){function j(U){this.event=U}return j.prototype.map=function(U){return new j(p(this.event,U))},j.prototype.forEach=function(U){return new j(o(this.event,U))},j.prototype.filter=function(U){return new j(r(this.event,U))},j.prototype.reduce=function(U,H){return new j(x(this.event,U,H))},j.prototype.latch=function(){return new j(R(this.event))},j.prototype.debounce=function(U,H,V,I){return H===void 0&&(H=100),V===void 0&&(V=!1),new j(y(this.event,U,H,V,I))},j.prototype.on=function(U,H,V){return this.event(U,H,V)},j.prototype.once=function(U,H,V){return n(this.event)(U,H,V)},j}();function c(j){return new m(j)}f.chain=c;function u(j,U,H){H===void 0&&(H=function(ie){return ie});var V=function(){for(var ie=[],ae=0;ae=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return X|0}function r(X){return+X!=X&&(X=0),C.alloc(+X)}C.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},C.compare=function(G,Y){if(!C.isBuffer(G)||!C.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(G===Y)return 0;for(var ue=G.length,be=Y.length,We=0,ze=Math.min(ue,be);We>>1;case"base64":return ve(X).length;default:if(ue)return pe(X).length;G=(""+G).toLowerCase(),ue=!0}}C.byteLength=s;function l(X,G,Y){var ue=!1;if((G===void 0||G<0)&&(G=0),G>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,G>>>=0,Y<=G)return"";for(X||(X="utf8");;)switch(X){case"hex":return V(this,G,Y);case"utf8":case"utf-8":return T(this,G,Y);case"ascii":return U(this,G,Y);case"latin1":case"binary":return H(this,G,Y);case"base64":return D(this,G,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,G,Y);default:if(ue)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),ue=!0}}C.prototype._isBuffer=!0;function x(X,G,Y){var ue=X[G];X[G]=X[Y],X[Y]=ue}C.prototype.swap16=function(){var G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y0&&(G=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(G+=" ... ")),""},C.prototype.compare=function(G,Y,ue,be,We){if(!C.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ue===void 0&&(ue=G?G.length:0),be===void 0&&(be=0),We===void 0&&(We=this.length),Y<0||ue>G.length||be<0||We>this.length)throw new RangeError("out of range index");if(be>=We&&Y>=ue)return 0;if(be>=We)return-1;if(Y>=ue)return 1;if(Y>>>=0,ue>>>=0,be>>>=0,We>>>=0,this===G)return 0;for(var ze=We-be,Tt=ue-Y,Ut=Math.min(ze,Tt),It=this.slice(be,We),Nt=G.slice(Y,ue),Zt=0;Zt2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=be?0:X.length-1),Y<0&&(Y=X.length+Y),Y>=X.length){if(be)return-1;Y=X.length-1}else if(Y<0)if(be)Y=0;else return-1;if(typeof G=="string"&&(G=C.from(G,ue)),C.isBuffer(G))return G.length===0?-1:y(X,G,Y,ue,be);if(typeof G=="number")return G=G&255,C.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?be?Uint8Array.prototype.indexOf.call(X,G,Y):Uint8Array.prototype.lastIndexOf.call(X,G,Y):y(X,[G],Y,ue,be);throw new TypeError("val must be string, number or Buffer")}function y(X,G,Y,ue,be){var We=1,ze=X.length,Tt=G.length;if(ue!==void 0&&(ue=String(ue).toLowerCase(),ue==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(X.length<2||G.length<2)return-1;We=2,ze/=2,Tt/=2,Y/=2}function Ut(nt,He){return We===1?nt[He]:nt.readUInt16BE(He*We)}var It;if(be){var Nt=-1;for(It=Y;Itze&&(Y=ze-Tt),It=Y;It>=0;It--){for(var Zt=!0,fn=0;fnbe&&(ue=be)):ue=be;var We=G.length;if(We%2!==0)throw new TypeError("Invalid hex string");ue>We/2&&(ue=We/2);for(var ze=0;zeWe)&&(ue=We),G.length>0&&(ue<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");for(var ze=!1;;)switch(be){case"hex":return L(this,G,Y,ue);case"utf8":case"utf-8":return R(this,G,Y,ue);case"ascii":return g(this,G,Y,ue);case"latin1":case"binary":return m(this,G,Y,ue);case"base64":return c(this,G,Y,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,G,Y,ue);default:if(ze)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),ze=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(X,G,Y){return G===0&&Y===X.length?z.fromByteArray(X):z.fromByteArray(X.slice(G,Y))}function T(X,G,Y){Y=Math.min(X.length,Y);for(var ue=[],be=G;be239?4:We>223?3:We>191?2:1;if(be+Tt<=Y){var Ut,It,Nt,Zt;switch(Tt){case 1:We<128&&(ze=We);break;case 2:Ut=X[be+1],(Ut&192)===128&&(Zt=(We&31)<<6|Ut&63,Zt>127&&(ze=Zt));break;case 3:Ut=X[be+1],It=X[be+2],(Ut&192)===128&&(It&192)===128&&(Zt=(We&15)<<12|(Ut&63)<<6|It&63,Zt>2047&&(Zt<55296||Zt>57343)&&(ze=Zt));break;case 4:Ut=X[be+1],It=X[be+2],Nt=X[be+3],(Ut&192)===128&&(It&192)===128&&(Nt&192)===128&&(Zt=(We&15)<<18|(Ut&63)<<12|(It&63)<<6|Nt&63,Zt>65535&&Zt<1114112&&(ze=Zt))}}ze===null?(ze=65533,Tt=1):ze>65535&&(ze-=65536,ue.push(ze>>>10&1023|55296),ze=56320|ze&1023),ue.push(ze),be+=Tt}return j(ue)}var A=4096;function j(X){var G=X.length;if(G<=A)return String.fromCharCode.apply(String,X);for(var Y="",ue=0;ueue)&&(Y=ue);for(var be="",We=G;Weue&&(G=ue),Y<0?(Y+=ue,Y<0&&(Y=0)):Y>ue&&(Y=ue),YY)throw new RangeError("Trying to access beyond buffer length")}C.prototype.readUIntLE=function(G,Y,ue){G=G|0,Y=Y|0,ue||W(G,Y,this.length);for(var be=this[G],We=1,ze=0;++ze0&&(We*=256);)be+=this[G+--Y]*We;return be},C.prototype.readUInt8=function(G,Y){return Y||W(G,1,this.length),this[G]},C.prototype.readUInt16LE=function(G,Y){return Y||W(G,2,this.length),this[G]|this[G+1]<<8},C.prototype.readUInt16BE=function(G,Y){return Y||W(G,2,this.length),this[G]<<8|this[G+1]},C.prototype.readUInt32LE=function(G,Y){return Y||W(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},C.prototype.readUInt32BE=function(G,Y){return Y||W(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},C.prototype.readIntLE=function(G,Y,ue){G=G|0,Y=Y|0,ue||W(G,Y,this.length);for(var be=this[G],We=1,ze=0;++ze=We&&(be-=Math.pow(2,8*Y)),be},C.prototype.readIntBE=function(G,Y,ue){G=G|0,Y=Y|0,ue||W(G,Y,this.length);for(var be=Y,We=1,ze=this[G+--be];be>0&&(We*=256);)ze+=this[G+--be]*We;return We*=128,ze>=We&&(ze-=Math.pow(2,8*Y)),ze},C.prototype.readInt8=function(G,Y){return Y||W(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},C.prototype.readInt16LE=function(G,Y){Y||W(G,2,this.length);var ue=this[G]|this[G+1]<<8;return ue&32768?ue|4294901760:ue},C.prototype.readInt16BE=function(G,Y){Y||W(G,2,this.length);var ue=this[G+1]|this[G]<<8;return ue&32768?ue|4294901760:ue},C.prototype.readInt32LE=function(G,Y){return Y||W(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},C.prototype.readInt32BE=function(G,Y){return Y||W(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},C.prototype.readFloatLE=function(G,Y){return Y||W(G,4,this.length),N.read(this,G,!0,23,4)},C.prototype.readFloatBE=function(G,Y){return Y||W(G,4,this.length),N.read(this,G,!1,23,4)},C.prototype.readDoubleLE=function(G,Y){return Y||W(G,8,this.length),N.read(this,G,!0,52,8)},C.prototype.readDoubleBE=function(G,Y){return Y||W(G,8,this.length),N.read(this,G,!1,52,8)};function Q(X,G,Y,ue,be,We){if(!C.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>be||GX.length)throw new RangeError("Index out of range")}C.prototype.writeUIntLE=function(G,Y,ue,be){if(G=+G,Y=Y|0,ue=ue|0,!be){var We=Math.pow(2,8*ue)-1;Q(this,G,Y,ue,We,0)}var ze=1,Tt=0;for(this[Y]=G&255;++Tt=0&&(Tt*=256);)this[Y+ze]=G/Tt&255;return Y+ue},C.prototype.writeUInt8=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,1,255,0),C.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[Y]=G&255,Y+1};function ie(X,G,Y,ue){G<0&&(G=65535+G+1);for(var be=0,We=Math.min(X.length-Y,2);be>>(ue?be:1-be)*8}C.prototype.writeUInt16LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8):ie(this,G,Y,!0),Y+2},C.prototype.writeUInt16BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>8,this[Y+1]=G&255):ie(this,G,Y,!1),Y+2};function ae(X,G,Y,ue){G<0&&(G=4294967295+G+1);for(var be=0,We=Math.min(X.length-Y,4);be>>(ue?be:3-be)*8&255}C.prototype.writeUInt32LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[Y+3]=G>>>24,this[Y+2]=G>>>16,this[Y+1]=G>>>8,this[Y]=G&255):ae(this,G,Y,!0),Y+4},C.prototype.writeUInt32BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255):ae(this,G,Y,!1),Y+4},C.prototype.writeIntLE=function(G,Y,ue,be){if(G=+G,Y=Y|0,!be){var We=Math.pow(2,8*ue-1);Q(this,G,Y,ue,We-1,-We)}var ze=0,Tt=1,Ut=0;for(this[Y]=G&255;++ze>0)-Ut&255;return Y+ue},C.prototype.writeIntBE=function(G,Y,ue,be){if(G=+G,Y=Y|0,!be){var We=Math.pow(2,8*ue-1);Q(this,G,Y,ue,We-1,-We)}var ze=ue-1,Tt=1,Ut=0;for(this[Y+ze]=G&255;--ze>=0&&(Tt*=256);)G<0&&Ut===0&&this[Y+ze+1]!==0&&(Ut=1),this[Y+ze]=(G/Tt>>0)-Ut&255;return Y+ue},C.prototype.writeInt8=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,1,127,-128),C.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[Y]=G&255,Y+1},C.prototype.writeInt16LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8):ie(this,G,Y,!0),Y+2},C.prototype.writeInt16BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>8,this[Y+1]=G&255):ie(this,G,Y,!1),Y+2},C.prototype.writeInt32LE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,2147483647,-2147483648),C.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8,this[Y+2]=G>>>16,this[Y+3]=G>>>24):ae(this,G,Y,!0),Y+4},C.prototype.writeInt32BE=function(G,Y,ue){return G=+G,Y=Y|0,ue||Q(this,G,Y,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),C.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255):ae(this,G,Y,!1),Y+4};function xe(X,G,Y,ue,be,We){if(Y+ue>X.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function Ze(X,G,Y,ue,be){return be||xe(X,G,Y,4,34028234663852886e22,-34028234663852886e22),N.write(X,G,Y,ue,23,4),Y+4}C.prototype.writeFloatLE=function(G,Y,ue){return Ze(this,G,Y,!0,ue)},C.prototype.writeFloatBE=function(G,Y,ue){return Ze(this,G,Y,!1,ue)};function Me(X,G,Y,ue,be){return be||xe(X,G,Y,8,17976931348623157e292,-17976931348623157e292),N.write(X,G,Y,ue,52,8),Y+8}C.prototype.writeDoubleLE=function(G,Y,ue){return Me(this,G,Y,!0,ue)},C.prototype.writeDoubleBE=function(G,Y,ue){return Me(this,G,Y,!1,ue)},C.prototype.copy=function(G,Y,ue,be){if(ue||(ue=0),!be&&be!==0&&(be=this.length),Y>=G.length&&(Y=G.length),Y||(Y=0),be>0&&be=this.length)throw new RangeError("sourceStart out of bounds");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),G.length-Y=0;--ze)G[ze+Y]=this[ze+ue];else if(We<1e3||!C.TYPED_ARRAY_SUPPORT)for(ze=0;ze>>0,ue=ue===void 0?this.length:ue>>>0,G||(G=0);var ze;if(typeof G=="number")for(ze=Y;ze55295&&Y<57344){if(!be){if(Y>56319){(G-=3)>-1&&We.push(239,191,189);continue}else if(ze+1===ue){(G-=3)>-1&&We.push(239,191,189);continue}be=Y;continue}if(Y<56320){(G-=3)>-1&&We.push(239,191,189),be=Y;continue}Y=(be-55296<<10|Y-56320)+65536}else be&&((G-=3)>-1&&We.push(239,191,189));if(be=null,Y<128){if((G-=1)<0)break;We.push(Y)}else if(Y<2048){if((G-=2)<0)break;We.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((G-=3)<0)break;We.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((G-=4)<0)break;We.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return We}function se(X){for(var G=[],Y=0;Y>8,be=Y%256,We.push(be),We.push(ue);return We}function ve(X){return z.toByteArray(qe(X))}function $e(X,G,Y,ue){for(var be=0;be=G.length||be>=X.length);++be)G[be+Y]=X[be];return be}function me(X){return X!==X}}).call(this,k("IyRk"))},HmJG:function(Gt,Ee,k){},I8Z2:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return K}),k.d(Ee,"b",function(){return b}),k.d(Ee,"c",function(){return n});var ne=k("q1tI"),z=function(){var p=function(o,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var x in l)l.hasOwnProperty(x)&&(s[x]=l[x])},p(o,r)};return function(o,r){p(o,r);function s(){this.constructor=o}o.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}(),N=ne.createContext(null),K=function(p){z(o,p);function o(){return p!==null&&p.apply(this,arguments)||this}return o.prototype.render=function(){return ne.createElement(N.Provider,{value:this.props.store},this.props.children)},o}(ne.Component),O=k("Gytx"),w=k.n(O),B=k("2mql"),C=k.n(B),P=function(){var p=function(o,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var x in l)l.hasOwnProperty(x)&&(s[x]=l[x])},p(o,r)};return function(o,r){p(o,r);function s(){this.constructor=o}o.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}(),_=function(){return _=Object.assign||function(p){for(var o,r=1,s=arguments.length;r=L?z:{done:!1,value:E[y++]}}}}P.fromArray=b;function f(E){return{next:function(){var y=E.next();return y.done?z:{done:!1,value:y.value}}}}P.fromNativeIterator=f;function n(E){return E?Array.isArray(E)?P.fromArray(E):E:P.empty()}P.from=n;function p(E,y){return{next:function(){var L=E.next();return L.done?z:{done:!1,value:y(L.value)}}}}P.map=p;function o(E,y){return{next:function(){for(;;){var L=E.next();if(L.done)return z;if(y(L.value))return{done:!1,value:L.value}}}}}P.filter=o;function r(E,y){for(var L=E.next();!L.done;L=E.next())y(L.value)}P.forEach=r;function s(E,y){y===void 0&&(y=Number.POSITIVE_INFINITY);var L=[];if(y===0)return L;for(var R=0,g=E.next();!g.done&&!(L.push(g.value),++R>=y);g=E.next());return L}P.collect=s;function l(){for(var E=[],y=0;y=E.length)return z;var R=E[L],g=R.next();return g.done?(L++,this.next()):g}}}P.concat=l;function x(E){return new K(E)}P.chain=x})(N||(N={}));var K=function(){function P(_){this.it=_}return P.prototype.next=function(){return this.it.next()},P}();function O(P){return Array.isArray(P)?N.fromArray(P):P||N.empty()}var w=function(){function P(_,d,v,b){d===void 0&&(d=0),v===void 0&&(v=_.length),b===void 0&&(b=d-1),this.items=_,this.start=d,this.end=v,this.index=b}return P.prototype.first=function(){return this.index=this.start,this.current()},P.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},P.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},P}(),B=function(P){ne(_,P);function _(d,v,b,f){return v===void 0&&(v=0),b===void 0&&(b=d.length),f===void 0&&(f=v-1),P.call(this,d,v,b,f)||this}return _.prototype.current=function(){return P.prototype.current.call(this)},_.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},_.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.last=function(){return this.index=this.end-1,this.current()},_.prototype.parent=function(){return null},_}(w),C=function(){function P(_,d){this.iterator=_,this.fn=d}return P.prototype.next=function(){return this.fn(this.iterator.next())},P}()},LSTS:function(Gt,Ee,k){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var ne=function(){function v(b,f){for(var n=0;n=0)continue;if(!Object.prototype.hasOwnProperty.call(v,n))continue;f[n]=v[n]}return f}function C(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function P(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function _(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var d=function(v){_(b,v);function b(f){C(this,b);var n=P(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,f));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return ne(b,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var n=this.getParentElement(this.scrollComponent);n.scrollTop=n.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var n=!1,p={get passive(){n=!0}};try{document.addEventListener("test",null,p),document.removeEventListener("test",null,p)}catch(o){}return n}},{key:"eventListenerOptions",value:function(){var n=this.props.useCapture;return this.isPassiveSupported()&&(n={useCapture:this.props.useCapture,passive:!0}),n}},{key:"setDefaultLoader",value:function(n){this.defaultLoader=n}},{key:"detachMousewheelListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.scrollComponent.parentNode),n.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.getParentElement(this.scrollComponent)),n.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(n){var p=this.props.getScrollParent&&this.props.getScrollParent();return p!=null?p:n&&n.parentNode}},{key:"filterProps",value:function(n){return n}},{key:"attachScrollListener",value:function(){var n=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!n)return;var p=window;this.props.useWindow===!1&&(p=n),p.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),p.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),p.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(n){n.deltaY===1&&!this.isPassiveSupported()&&n.preventDefault()}},{key:"scrollListener",value:function(){var n=this.scrollComponent,p=window,o=this.getParentElement(n),r=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,l=p.pageYOffset!==void 0?p.pageYOffset:s.scrollTop;this.props.isReverse?r=l:r=this.calculateOffset(n,l)}else this.props.isReverse?r=o.scrollTop:r=n.scrollHeight-o.scrollTop-o.clientHeight;r1&&arguments[1]!==void 0?arguments[1]:1,Oe=ze.length,ce=0;ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(W).map(function(ie,ae){if(!O.isValidElement(ie)||!ie.type)return null;var xe=ie.type.isSelectOptGroup,Ze=ie.key,Me=ie.props,Be=Me.children,qe=Object(B.a)(Me,["children"]);return Q||!xe?R(ie):Object(y.a)(Object(y.a)({key:"__RC_SELECT_GRP__".concat(Ze===null?ae:Ze,"__"),label:Ze},qe),{},{options:g(Be)})}).filter(function(ie){return ie})}var m=k("2Qr1"),c=k("qNPg"),u=k("U8pU"),D=k("Kwbf"),T=k("WKfj");function A(W){var Q=W.mode,ie=W.options,ae=W.children,xe=W.backfill,Ze=W.allowClear,Me=W.placeholder,Be=W.getInputElement,qe=W.showSearch,Ve=W.onSearch,De=W.defaultOpen,pe=W.autoFocus,se=W.labelInValue,we=W.value,ve=W.inputValue,$e=W.optionLabelProp,me=Q==="multiple"||Q==="tags",X=qe!==void 0?qe:me||Q==="combobox",G=ie||g(ae);if(Object(D.a)(Q!=="tags"||G.every(function(We){return!We.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Q==="tags"||Q==="combobox"){var Y=G.some(function(We){return We.options?We.options.some(function(ze){return typeof("value"in ze?ze.value:ze.key)=="number"}):typeof("value"in We?We.value:We.key)=="number"});Object(D.a)(!Y,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(Q!=="combobox"||!$e,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(Q==="combobox"||!xe,"`backfill` only works with `combobox` mode."),Object(D.a)(Q==="combobox"||!Be,"`getInputElement` only work with `combobox` mode."),Object(D.b)(Q!=="combobox"||!Be||!Ze||!Me,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ve&&!X&&Q!=="combobox"&&Q!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!De||pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),we!=null){var ue=Object(T.d)(we);Object(D.a)(!se||ue.every(function(We){return Object(u.a)(We)==="object"&&("key"in We||"value"in We)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!me||Array.isArray(we),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var be=null;Object(L.a)(ae).some(function(We){if(!O.isValidElement(We)||!We.type)return!1;var ze=We.type;if(ze.isSelectOption)return!1;if(ze.isSelectOptGroup){var Tt=Object(L.a)(We.props.children).every(function(Ut){return!O.isValidElement(Ut)||!We.type||Ut.type.isSelectOption?!0:(be=Ut.type,!1)});return!Tt}return be=ze,!0}),be&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(be.displayName||be.name||be,"`.")),Object(D.a)(ve===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=A,U=Object(c.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:g,flattenOptions:m.d,getLabeledValue:m.e,filterOptions:m.b,isValueDisabled:m.g,findValueOption:m.c,warningProps:j,fillOptionsWithMissingValue:m.a}),H=function(W){Object(N.a)(ie,W);var Q=Object(K.a)(ie);function ie(){var ae;return Object(ne.a)(this,ie),ae=Q.apply(this,arguments),ae.selectRef=O.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(z.a)(ie,[{key:"render",value:function(){return O.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),ie}(O.Component);H.Option=l,H.OptGroup=E;var V=H,I=Ee.c=V},M8RZ:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return P});var ne=k("fWQN"),z=k("mtLc"),N=k("yKVA"),K=k("879j"),O=k("q1tI"),w=k.n(O),B=k("i8i4"),C=k.n(B),P=function(_){Object(N.a)(v,_);var d=Object(K.a)(v);function v(b){var f;Object(ne.a)(this,v),f=d.call(this,b);var n=window.document;return f.node=n.createElement("div"),n.body.appendChild(f.node),f}return Object(z.a)(v,[{key:"render",value:function(){var f=this.props.children;return Object(B.createPortal)(f,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),v}(w.a.Component)},MI8n:function(Gt,Ee,k){"use strict";k.d(Ee,"b",function(){return w}),k.d(Ee,"a",function(){return P}),k.d(Ee,"e",function(){return _}),k.d(Ee,"d",function(){return d}),k.d(Ee,"c",function(){return v}),k.d(Ee,"f",function(){return b});var ne=k("/cxE"),z=k("C/vA"),N=k("pmY6"),K=k("24hK"),O=function(){var f=function(n,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var s in r)r.hasOwnProperty(s)&&(o[s]=r[s])},f(n,p)};return function(n,p){f(n,p);function o(){this.constructor=n}n.prototype=p===null?Object.create(p):(o.prototype=p.prototype,new o)}}(),w;(function(f){f.None=function(){return N.a.None};function n(j){return function(U,H,V){H===void 0&&(H=null);var I=!1,W;return W=j(function(Q){return I?void 0:(W?W.dispose():I=!0,U.call(H,Q))},null,V),I&&W.dispose(),W}}f.once=n;function p(j,U){return E(function(H,V,I){return V===void 0&&(V=null),j(function(W){return H.call(V,U(W))},null,I)})}f.map=p;function o(j,U){return E(function(H,V,I){return V===void 0&&(V=null),j(function(W){U(W),H.call(V,W)},null,I)})}f.forEach=o;function r(j,U){return E(function(H,V,I){return V===void 0&&(V=null),j(function(W){return U(W)&&H.call(V,W)},null,I)})}f.filter=r;function s(j){return j}f.signal=s;function l(){for(var j=[],U=0;U1)&&xe.fire(Me),ae=0},H)})},onLastListenerRemove:function(){W.dispose()}});return xe.event}f.debounce=y;function L(j){var U=new Date().getTime();return p(n(j),function(H){return new Date().getTime()-U})}f.stopwatch=L;function R(j){var U=!0,H;return r(j,function(V){var I=U||V!==H;return U=!1,H=V,I})}f.latch=R;function g(j,U,H){U===void 0&&(U=!1),H===void 0&&(H=[]);var V=H.slice(),I=j(function(ie){V?V.push(ie):Q.fire(ie)}),W=function(){V&&V.forEach(function(ie){return Q.fire(ie)}),V=null},Q=new P({onFirstListenerAdd:function(){I||(I=j(function(ie){return Q.fire(ie)}))},onFirstListenerDidAdd:function(){V&&(U?setTimeout(W):W())},onLastListenerRemove:function(){I&&I.dispose(),I=null}});return Q.event}f.buffer=g;var m=function(){function j(U){this.event=U}return j.prototype.map=function(U){return new j(p(this.event,U))},j.prototype.forEach=function(U){return new j(o(this.event,U))},j.prototype.filter=function(U){return new j(r(this.event,U))},j.prototype.reduce=function(U,H){return new j(x(this.event,U,H))},j.prototype.latch=function(){return new j(R(this.event))},j.prototype.debounce=function(U,H,V,I){return H===void 0&&(H=100),V===void 0&&(V=!1),new j(y(this.event,U,H,V,I))},j.prototype.on=function(U,H,V){return this.event(U,H,V)},j.prototype.once=function(U,H,V){return n(this.event)(U,H,V)},j}();function c(j){return new m(j)}f.chain=c;function u(j,U,H){H===void 0&&(H=function(ie){return ie});var V=function(){for(var ie=[],ae=0;ae0?new C(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(f.prototype,"event",{get:function(){var n=this;return this._event||(this._event=function(p,o,r){n._listeners||(n._listeners=new K.a);var s=n._listeners.isEmpty();s&&n._options&&n._options.onFirstListenerAdd&&n._options.onFirstListenerAdd(n);var l=n._listeners.push(o?[p,o]:p);s&&n._options&&n._options.onFirstListenerDidAdd&&n._options.onFirstListenerDidAdd(n),n._options&&n._options.onListenerDidAdd&&n._options.onListenerDidAdd(n,p,o);var x;n._leakageMon&&(x=n._leakageMon.check(n._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=f._noop,!n._disposed&&(l(),n._options&&n._options.onLastListenerRemove)){var y=n._listeners&&!n._listeners.isEmpty();y||n._options.onLastListenerRemove(n)}}},r instanceof N.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),f.prototype.fire=function(n){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new K.a);for(var p=this._listeners.iterator(),o=p.next();!o.done;o=p.next())this._deliveryQueue.push([o.value,n]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),s=r[0],l=r[1];try{typeof s=="function"?s.call(void 0,l):s[0].call(s[1],l)}catch(x){Object(ne.e)(x)}}}},f.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},f._noop=function(){},f}(),_=function(f){O(n,f);function n(p){var o=f.call(this,p)||this;return o._isPaused=0,o._eventQueue=new K.a,o._mergeFn=p&&p.merge,o}return n.prototype.pause=function(){this._isPaused++},n.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var p=this._eventQueue.toArray();this._eventQueue.clear(),f.prototype.fire.call(this,this._mergeFn(p))}else for(;!this._isPaused&&this._eventQueue.size!==0;)f.prototype.fire.call(this,this._eventQueue.shift())},n.prototype.fire=function(p){this._listeners&&(this._isPaused!==0?this._eventQueue.push(p):f.prototype.fire.call(this,p))},n}(P),d=function(){function f(){var n=this;this.hasListeners=!1,this.events=[],this.emitter=new P({onFirstListenerAdd:function(){return n.onFirstListenerAdd()},onLastListenerRemove:function(){return n.onLastListenerRemove()}})}return Object.defineProperty(f.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),f.prototype.add=function(n){var p=this,o={event:n,listener:null};this.events.push(o),this.hasListeners&&this.hook(o);var r=function(){p.hasListeners&&p.unhook(o);var s=p.events.indexOf(o);p.events.splice(s,1)};return Object(N.h)(Object(z.a)(r))},f.prototype.onFirstListenerAdd=function(){var n=this;this.hasListeners=!0,this.events.forEach(function(p){return n.hook(p)})},f.prototype.onLastListenerRemove=function(){var n=this;this.hasListeners=!1,this.events.forEach(function(p){return n.unhook(p)})},f.prototype.hook=function(n){var p=this;n.listener=n.event(function(o){return p.emitter.fire(o)})},f.prototype.unhook=function(n){n.listener&&n.listener.dispose(),n.listener=null},f.prototype.dispose=function(){this.emitter.dispose()},f}(),v=function(){function f(){this.buffers=[]}return f.prototype.wrapEvent=function(n){var p=this;return function(o,r,s){return n(function(l){var x=p.buffers[p.buffers.length-1];x?x.push(function(){return o.call(r,l)}):o.call(r,l)},void 0,s)}},f.prototype.bufferEvents=function(n){var p=[];this.buffers.push(p);var o=n();return this.buffers.pop(),p.forEach(function(r){return r()}),o},f}(),b=function(){function f(){var n=this;this.listening=!1,this.inputEvent=w.None,this.inputEventListener=N.a.None,this.emitter=new P({onFirstListenerDidAdd:function(){n.listening=!0,n.inputEventListener=n.inputEvent(n.emitter.fire,n.emitter)},onLastListenerRemove:function(){n.listening=!1,n.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(f.prototype,"input",{set:function(n){this.inputEvent=n,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=n(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},f}()},N0LK:function(Vt,Ee,k){"use strict";k.d(Ee,"x",function(){return ne}),k.d(Ee,"F",function(){return z}),k.d(Ee,"r",function(){return K}),k.d(Ee,"o",function(){return O}),k.d(Ee,"p",function(){return w}),k.d(Ee,"Q",function(){return B}),k.d(Ee,"K",function(){return P}),k.d(Ee,"k",function(){return _}),k.d(Ee,"N",function(){return d}),k.d(Ee,"m",function(){return v}),k.d(Ee,"l",function(){return b}),k.d(Ee,"I",function(){return f}),k.d(Ee,"H",function(){return n}),k.d(Ee,"q",function(){return p}),k.d(Ee,"t",function(){return o}),k.d(Ee,"D",function(){return r}),k.d(Ee,"e",function(){return s}),k.d(Ee,"f",function(){return l}),k.d(Ee,"B",function(){return x}),k.d(Ee,"C",function(){return E}),k.d(Ee,"n",function(){return L}),k.d(Ee,"O",function(){return g}),k.d(Ee,"c",function(){return m}),k.d(Ee,"d",function(){return c}),k.d(Ee,"z",function(){return u}),k.d(Ee,"A",function(){return D}),k.d(Ee,"u",function(){return T}),k.d(Ee,"E",function(){return j}),k.d(Ee,"G",function(){return U}),k.d(Ee,"i",function(){return V}),k.d(Ee,"g",function(){return W}),k.d(Ee,"v",function(){return ie}),k.d(Ee,"h",function(){return ae}),k.d(Ee,"y",function(){return xe}),k.d(Ee,"w",function(){return Ze}),k.d(Ee,"a",function(){return Me}),k.d(Ee,"P",function(){return Be}),k.d(Ee,"L",function(){return qe}),k.d(Ee,"J",function(){return Ve}),k.d(Ee,"j",function(){return De}),k.d(Ee,"M",function(){return pe}),k.d(Ee,"s",function(){return se}),k.d(Ee,"b",function(){return we});function ne(me){return!me||typeof me!="string"?!0:me.trim().length===0}function z(me,X,G){G===void 0&&(G="0");for(var Y=""+me,ue=[Y],be=Y.length;be=X.length?Y:X[be]})}function O(me){return me.replace(/[<>&]/g,function(X){switch(X){case"<":return"<";case">":return">";case"&":return"&";default:return X}})}function w(me){return me.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function B(me,X){X===void 0&&(X=" ");var G=C(me,X);return P(G,X)}function C(me,X){if(!me||!X)return me;var G=X.length;if(G===0||me.length===0)return me;for(var Y=0;me.indexOf(X,Y)===Y;)Y=Y+G;return me.substring(Y)}function P(me,X){if(!me||!X)return me;var G=X.length,Y=me.length;if(G===0||Y===0)return me;for(var ue=Y,be=-1;!(be=me.lastIndexOf(X,ue-1),be===-1||be+G!==ue);){if(be===0)return"";ue=be}return me.substring(0,ue)}function _(me){return me.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(me,X){if(me.length0?me.indexOf(X,G)===G:G===0?me===X:!1}function b(me,X,G){if(G===void 0&&(G={}),!me)throw new Error("Cannot create regex from empty string");X||(me=w(me)),G.wholeWord&&(/\B/.test(me.charAt(0))||(me="\\b"+me),/\B/.test(me.charAt(me.length-1))||(me=me+"\\b"));var Y="";return G.global&&(Y+="g"),G.matchCase||(Y+="i"),G.multiline&&(Y+="m"),G.unicode&&(Y+="u"),new RegExp(me,Y)}function f(me){if(me.source==="^"||me.source==="^$"||me.source==="$"||me.source==="^\\s*$")return!1;var X=me.exec("");return!!(X&&me.lastIndex===0)}function n(me){return(me.global?"g":"")+(me.ignoreCase?"i":"")+(me.multiline?"m":"")+(me.unicode?"u":"")}function p(me){for(var X=0,G=me.length;X=0;G--){var Y=me.charCodeAt(G);if(Y!==32&&Y!==9)return G}return-1}function s(me,X){return meX?1:0}function l(me,X){for(var G=Math.min(me.length,X.length),Y=0;YX.length?1:0}function x(me){return me>=97&&me<=122}function E(me){return me>=65&&me<=90}function y(me){return x(me)||E(me)}function L(me,X){return me.length===X.length&&R(me,X)}function R(me,X,G){G===void 0&&(G=me.length);for(var Y=0;Yme.length?!1:R(me,X,G)}function m(me,X){var G,Y=Math.min(me.length,X.length);for(G=0;G1){var Y=me.charCodeAt(X-2);if(u(Y))return(Y-55296<<10)+(G-56320)+65536}return G}function j(me,X){var G=ve.getInstance(),Y=X,ue=me.length,be=T(me,ue,X);X+=be>=65536?2:1;for(var We=G.getGraphemeBreakType(be);X=65536?2:1,We=Tt}return X-Y}function U(me,X){var G=ve.getInstance(),Y=X,ue=A(me,X);X-=ue>=65536?2:1;for(var be=G.getGraphemeBreakType(ue);X>0;){var We=A(me,X),ze=G.getGraphemeBreakType(We);if(we(ze,be))break;X-=We>=65536?2:1,be=ze}return Y-X}var H=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function V(me){return H.test(me)}var I=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(me){return I.test(me)}var Q=/^[\t\n\r\x20-\x7E]*$/;function ie(me){return Q.test(me)}function ae(me){for(var X=0,G=me.length;X=11904&&me<=55215||me>=63744&&me<=64255||me>=65281&&me<=65374}function Ze(me){return me>=127462&&me<=127487||me>=9728&&me<=10175||me>=127744&&me<=128591||me>=128640&&me<=128764||me>=128992&&me<=129003||me>=129280&&me<=129535||me>=129648&&me<=129651||me>=129656&&me<=129666||me>=129680&&me<=129685}var Me=String.fromCharCode(65279);function Be(me){return!!(me&&me.length>0&&me.charCodeAt(0)===65279)}function qe(me){return btoa(encodeURIComponent(me))}function Ve(me,X){for(var G="",Y=0;YG[3*ue+1])ue=2*ue+1;else return G[3*ue+2];return 0},me._INSTANCE=null,me}();function $e(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},Nnv5:function(Vt,Ee,k){Vt.exports={flex_box_center:"flex_box_center___2bJec",flex_space_between:"flex_space_between___2ahJ7",flex_box_vertical_center:"flex_box_vertical_center___2dSx8",flex_box_center_end:"flex_box_center_end___1Vr--",flex_box_column:"flex_box_column___nACsK",wrap:"wrap___2DR4Y",sys:"sys___2U2iV",head:"head___3qxDP",list:"list___uTkEt",name:"name___3QGED",tr:"tr___1zJeC"}},NvD2:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return w});var ne=k("Kwbf");function z(B,C){var P=new Set;return B.forEach(function(_){C.has(_)||P.add(_)}),P}function N(B){var C=B||{},P=C.disabled,_=C.disableCheckbox,d=C.checkable;return!!(P||_)||d===!1}function K(B,C,P,_){for(var d=new Set(B),v=new Set,b=0;b<=P;b+=1){var f=C.get(b)||new Set;f.forEach(function(r){var s=r.key,l=r.node,x=r.children,E=x===void 0?[]:x;d.has(s)&&!_(l)&&E.filter(function(y){return!_(y.node)}).forEach(function(y){d.add(y.key)})})}for(var n=new Set,p=P;p>=0;p-=1){var o=C.get(p)||new Set;o.forEach(function(r){var s=r.parent,l=r.node;if(_(l)||!r.parent||n.has(r.parent.key))return;if(_(r.parent.node)){n.add(s.key);return}var x=!0,E=!1;(s.children||[]).filter(function(y){return!_(y.node)}).forEach(function(y){var L=y.key,R=d.has(L);x&&!R&&(x=!1),!E&&(R||v.has(L))&&(E=!0)}),x&&d.add(s.key),E&&v.add(s.key),n.add(s.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(z(v,d))}}function O(B,C,P,_,d){for(var v=new Set(B),b=new Set(C),f=0;f<=_;f+=1){var n=P.get(f)||new Set;n.forEach(function(s){var l=s.key,x=s.node,E=s.children,y=E===void 0?[]:E;!v.has(l)&&!b.has(l)&&!d(x)&&y.filter(function(L){return!d(L.node)}).forEach(function(L){v.delete(L.key)})})}b=new Set;for(var p=new Set,o=_;o>=0;o-=1){var r=P.get(o)||new Set;r.forEach(function(s){var l=s.parent,x=s.node;if(d(x)||!s.parent||p.has(s.parent.key))return;if(d(s.parent.node)){p.add(l.key);return}var E=!0,y=!1;(l.children||[]).filter(function(L){return!d(L.node)}).forEach(function(L){var R=L.key,g=v.has(R);E&&!g&&(E=!1),!y&&(g||b.has(R))&&(y=!0)}),E||v.delete(l.key),y&&b.add(l.key),p.add(l.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(z(b,v))}}function w(B,C,P,_){var d=[],v;_?v=_:v=N;var b=new Set(B.filter(function(o){var r=!!P[o];return r||d.push(o),r})),f=new Map,n=0;Object.keys(P).forEach(function(o){var r=P[o],s=r.level,l=f.get(s);l||(l=new Set,f.set(s,l)),l.add(r),n=Math.max(n,s)}),Object(ne.a)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var p;return C===!0?p=K(b,f,n,v):p=O(b,C.halfCheckedKeys,f,n,v),p}},OLES:function(Vt,Ee,k){"use strict";var ne=k("U8pU"),z=k("VTBJ"),N=k("Ff2n"),K=k("q1tI"),O=k("uciX"),w=k("7ixt"),B=function(b){var f=b.overlay,n=b.prefixCls,p=b.id,o=b.overlayInnerStyle;return K.createElement("div",{className:"".concat(n,"-inner"),id:p,role:"tooltip",style:o},typeof f=="function"?f():f)},C=B,P=function(b,f){var n=b.overlayClassName,p=b.trigger,o=p===void 0?["hover"]:p,r=b.mouseEnterDelay,s=r===void 0?0:r,l=b.mouseLeaveDelay,x=l===void 0?.1:l,E=b.overlayStyle,y=b.prefixCls,L=y===void 0?"rc-tooltip":y,R=b.children,g=b.onVisibleChange,m=b.afterVisibleChange,c=b.transitionName,u=b.animation,D=b.placement,T=D===void 0?"right":D,A=b.align,j=A===void 0?{}:A,U=b.destroyTooltipOnHide,H=U===void 0?!1:U,V=b.defaultVisible,I=b.getTooltipContainer,W=b.overlayInnerStyle,Q=Object(N.a)(b,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ie=Object(K.useRef)(null);Object(K.useImperativeHandle)(f,function(){return ie.current});var ae=Object(z.a)({},Q);"visible"in b&&(ae.popupVisible=b.visible);var xe=function(){var Ve=b.arrowContent,De=Ve===void 0?null:Ve,pe=b.overlay,se=b.id;return[K.createElement("div",{className:"".concat(L,"-arrow"),key:"arrow"},De),K.createElement(C,{key:"content",prefixCls:L,id:se,overlay:pe,overlayInnerStyle:W})]},Ze=!1,Me=!1;if(typeof H=="boolean")Ze=H;else if(H&&Object(ne.a)(H)==="object"){var Be=H.keepParent;Ze=Be===!0,Me=Be===!1}return K.createElement(O.a,Object.assign({popupClassName:n,prefixCls:L,popup:xe,action:o,builtinPlacements:w.a,popupPlacement:T,ref:ie,popupAlign:j,getPopupContainer:I,onPopupVisibleChange:g,afterPopupVisibleChange:m,popupTransitionName:c,popupAnimation:u,defaultPopupVisible:V,destroyPopupOnHide:Ze,autoDestroy:Me,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:s},ae),R)},_=Object(K.forwardRef)(P),d=Ee.a=_},OZM5:function(Vt,Ee,k){"use strict";k.d(Ee,"b",function(){return _}),k.d(Ee,"a",function(){return d}),k.d(Ee,"k",function(){return v}),k.d(Ee,"h",function(){return b}),k.d(Ee,"i",function(){return f}),k.d(Ee,"g",function(){return n}),k.d(Ee,"c",function(){return p}),k.d(Ee,"d",function(){return o}),k.d(Ee,"j",function(){return l}),k.d(Ee,"e",function(){return x}),k.d(Ee,"f",function(){return E});var ne=k("KQm4"),z=k("U8pU"),N=k("Ff2n"),K=k("q1tI"),O=k.n(K),w=k("Kwbf"),B=k("WaYH"),C=.25,P=2;function _(y,L){var R=y.slice(),g=R.indexOf(L);return g>=0&&R.splice(g,1),R}function d(y,L){var R=y.slice();return R.indexOf(L)===-1&&R.push(L),R}function v(y){return y.split("-")}function b(y,L){return"".concat(y,"-").concat(L)}function f(y){return y&&y.type&&y.type.isTreeNode}function n(y,L){var R=[y],g=L[y];function m(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(u){var D=u.key,T=u.children;R.push(D),m(T)})}return m(g.children),R}function p(y,L){var R=y.clientY,g=L.selectHandle.getBoundingClientRect(),m=g.top,c=g.bottom,u=g.height,D=Math.max(u*C,P);return R<=m+D?-1:R>=c-D?1:0}function o(y,L){if(!y)return;var R=L.multiple;return R?y.slice():y.length?[y[0]]:y}var r=function(L){return L};function s(y,L){if(!y)return[];var R=L||{},g=R.processProps,m=g===void 0?r:g,c=Array.isArray(y)?y:[y];return c.map(function(u){var D=u.children,T=Object(N.a)(u,["children"]),A=s(D,L);return O.a.createElement(B.a,Object.assign({},m(T)),A)})}function l(y){if(!y)return null;var L;if(Array.isArray(y))L={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(z.a)(y)==="object")L={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(w.a)(!1,"`checkedKeys` is not an array or an object"),null;return L}function x(y,L){var R=new Set;function g(m){if(R.has(m))return;var c=L[m];if(!c)return;R.add(m);var u=c.parent,D=c.node;if(D.disabled)return;u&&g(u.key)}return(y||[]).forEach(function(m){g(m)}),Object(ne.a)(R)}function E(y){var L={};return Object.keys(y).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(L[R]=y[R])}),L}},Ot1p:function(Vt,Ee,k){"use strict";var ne=k("2qtc"),z=k("kLXV"),N=k("rAM+"),K=k("miYZ"),O=k("tsqr"),w=k("9og8"),B=k("tJVT"),C=k("jrin"),P=k("WmNS"),_=k.n(P),d=k("q1tI"),v=k.n(d),b=k("VrN/"),f=k.n(b),n=k("bdgK"),p=k("p77/"),o=k("Bd2K"),r=k("ELLl"),s=k("19Vz"),l=k("lZu9"),x=k("+NIl"),E=k("kSUc"),y=k("9Bee"),L=function(et){var Rt=et.value,en=Rt===void 0?"":Rt,pn=et.className,on=et.showTextOnly,Kt=et.showLines,bt=et.style,xt=bt===void 0?{}:bt,ct=Object(d.useMemo)(function(){return""},[en]);return v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},R=k("0Owb"),g=k("dejd"),m=k("C+DQ"),c=k("1vsH"),u=k("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(et){var Rt=et.onActionCallback,en=et.title,pn=et.icon,on=et.actionName,Kt=et.className,bt=Kt===void 0?"":Kt,xt=et.children;function ct(){Rt(on)}return v.a.createElement("a",{title:en,className:bt,onClick:ct},v.a.createElement("i",{className:"md-iconfont ".concat(pn)}),xt)}var A=function(et){var Rt=et.watch,en=et.showNullButton,pn=et.onActionCallback,on=et.fullScreen,Kt=et.insertTemp,bt=et.hidetoolBar,xt=et.uuid,ct=et.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(c.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(c.D)("_educoder_session"),"&key=").concat(xt,"&api=").concat(encodeURIComponent(u.a.PROXY_SERVER)));var ge=[].concat(D,[{title:"".concat(Rt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Rt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return v.a.createElement("ul",{className:"markdown-toolbar-container"},!bt&&ge.map(function(Ne,Ct){return v.a.createElement("li",{key:Ct},Ne.actionName?v.a.createElement(T,Object(R.a)({},Ne,{onActionCallback:pn})):v.a.createElement("span",{className:"v-line"}))}),en?v.a.createElement("li",null,v.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:pn},v.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt&&v.a.createElement("li",null,v.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Kt),onActionCallback:pn},v.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),v.a.createElement("li",{className:"btn-full-screen"},v.a.createElement(T,{icon:"".concat(on?"icon-shrink":"icon-enlarge"),title:on?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:pn})))},j=k("M8RZ"),U=k("+L6B"),H=k("2/Rp"),V=k("y8nQ"),I=k("Vl3Y"),W=k("5NDa"),Q=k("5rEg"),ie={labelCol:{span:4},wrapperCol:{span:20}},ae=function(et){var Rt=et.callback,en=et.onCancel;function pn(on){Rt(on)}return v.a.createElement(I.a,Object(R.a)({},ie,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pn}),v.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},v.a.createElement(Q.a,null)),v.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},v.a.createElement(Q.a,null)),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))},xe=k("7ahc"),Ze=k("k1fw"),Me=k("HmJG"),Be=k("BjJ7"),qe=I.a.useForm,Ve={width:280,marginRight:10},De={labelCol:{span:5},wrapperCol:{span:19}},pe=function(et){var Rt=et.callback,en=et.onCancel,pn=qe(),on=Object(B.a)(pn,1),Kt=on[0],bt=Object(d.useRef)();function xt(Ne){Rt(Object(Ze.a)(Object(Ze.a)({},Ne),{},{name:bt.current}))}function ct(Ne,Ct){Kt.setFieldsValue({src:"/api/attachments/".concat(Ne.id,"?type=").concat(Ne.content_type),type:Ct.type})}function ge(Ne){var Ct=Ne.target.files[0];bt.current=Ct.name,we(Ct,ct)}return v.a.createElement(I.a,Object(R.a)({form:Kt},De,{className:"upload-image-panel",onFinish:xt}),v.a.createElement(I.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},v.a.createElement("div",{className:"flex-container"},v.a.createElement(I.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},v.a.createElement(Q.a,{style:Ve})),v.a.createElement(se,{onFileChange:ge}))),v.a.createElement(I.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},v.a.createElement(Q.a,{style:{width:264}})),v.a.createElement(I.a.Item,{style:{textAlign:"right"}},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))};function se(et){var Rt=et.onFileChange;return v.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",v.a.createElement("input",{type:"file",onChange:Rt}))}function we(et,Rt){if(!et)throw new String("\u6CA1\u6709\u6587\u4EF6");var en=new FormData;en.append("editormd-image-file",et),en.append("file_param_name","editormd-image-file"),en.append("byxhr","true");var pn=new window.XMLHttpRequest;pn.withCredentials=!0,pn.addEventListener("load",function(on){Rt(JSON.parse(on.target.responseText),et)},!1),pn.addEventListener("error",function(on){console.error(on)},!1),pn.open("POST","".concat(Be.a,"/api/attachments.json")),pn.send(en)}var ve=k("giR+"),$e=k("fyUT"),me=k("7Kak"),X=k("9yH6"),G=X.a.Group,Y={margin:"0 8px"},ue=function(et){var Rt=et.callback,en=et.onCancel;function pn(on){Rt(on)}return v.a.createElement(I.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pn},v.a.createElement("div",{className:"flex-container"},v.a.createElement("span",{style:Y},"\u5355\u5143\u683C\u6570\uFF1A"),v.a.createElement("span",{style:Y},"\u884C\u6570"),v.a.createElement(I.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},v.a.createElement($e.a,null)),v.a.createElement("span",{style:Y},"\u5217\u6570"),v.a.createElement(I.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},v.a.createElement($e.a,null))),v.a.createElement("div",{className:"flex-container",style:{marginTop:12}},v.a.createElement("span",{style:Y},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),v.a.createElement(I.a.Item,{name:"align"},v.a.createElement(G,null,v.a.createElement(X.a,{value:"default"},v.a.createElement("i",{className:"fa fa-align-justify"})),v.a.createElement(X.a,{value:"left"},v.a.createElement("i",{className:"fa fa-align-left"})),v.a.createElement(X.a,{value:"center"},v.a.createElement("i",{className:"fa fa-align-center"})),v.a.createElement(X.a,{value:"right"},v.a.createElement("i",{className:"fa fa-align-right"}))))),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))},be=k("ErOA"),We=k("7Cbv"),ze="link",Tt="upload-image",Ut="code-block",It="add-table",Nt="------------",qt={default:Nt,left:":".concat(Nt),center:":".concat(Nt,":"),right:"".concat(Nt,":")},hn=k("9VGf"),nt,He;function pt(){}var kt=0,st=1e4,Et="\u2581",Fe=` +`),s=this._stacks.get(r)||0;if(this._stacks.set(r,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=o*.5;var l,x=0;this._stacks.forEach(function(E,y){(!l||x0?new C(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(f.prototype,"event",{get:function(){var n=this;return this._event||(this._event=function(p,o,r){n._listeners||(n._listeners=new K.a);var s=n._listeners.isEmpty();s&&n._options&&n._options.onFirstListenerAdd&&n._options.onFirstListenerAdd(n);var l=n._listeners.push(o?[p,o]:p);s&&n._options&&n._options.onFirstListenerDidAdd&&n._options.onFirstListenerDidAdd(n),n._options&&n._options.onListenerDidAdd&&n._options.onListenerDidAdd(n,p,o);var x;n._leakageMon&&(x=n._leakageMon.check(n._listeners.size));var E;return E={dispose:function(){if(x&&x(),E.dispose=f._noop,!n._disposed&&(l(),n._options&&n._options.onLastListenerRemove)){var y=n._listeners&&!n._listeners.isEmpty();y||n._options.onLastListenerRemove(n)}}},r instanceof N.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),f.prototype.fire=function(n){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new K.a);for(var p=this._listeners.iterator(),o=p.next();!o.done;o=p.next())this._deliveryQueue.push([o.value,n]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),s=r[0],l=r[1];try{typeof s=="function"?s.call(void 0,l):s[0].call(s[1],l)}catch(x){Object(ne.e)(x)}}}},f.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},f._noop=function(){},f}(),_=function(f){O(n,f);function n(p){var o=f.call(this,p)||this;return o._isPaused=0,o._eventQueue=new K.a,o._mergeFn=p&&p.merge,o}return n.prototype.pause=function(){this._isPaused++},n.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var p=this._eventQueue.toArray();this._eventQueue.clear(),f.prototype.fire.call(this,this._mergeFn(p))}else for(;!this._isPaused&&this._eventQueue.size!==0;)f.prototype.fire.call(this,this._eventQueue.shift())},n.prototype.fire=function(p){this._listeners&&(this._isPaused!==0?this._eventQueue.push(p):f.prototype.fire.call(this,p))},n}(P),d=function(){function f(){var n=this;this.hasListeners=!1,this.events=[],this.emitter=new P({onFirstListenerAdd:function(){return n.onFirstListenerAdd()},onLastListenerRemove:function(){return n.onLastListenerRemove()}})}return Object.defineProperty(f.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),f.prototype.add=function(n){var p=this,o={event:n,listener:null};this.events.push(o),this.hasListeners&&this.hook(o);var r=function(){p.hasListeners&&p.unhook(o);var s=p.events.indexOf(o);p.events.splice(s,1)};return Object(N.h)(Object(z.a)(r))},f.prototype.onFirstListenerAdd=function(){var n=this;this.hasListeners=!0,this.events.forEach(function(p){return n.hook(p)})},f.prototype.onLastListenerRemove=function(){var n=this;this.hasListeners=!1,this.events.forEach(function(p){return n.unhook(p)})},f.prototype.hook=function(n){var p=this;n.listener=n.event(function(o){return p.emitter.fire(o)})},f.prototype.unhook=function(n){n.listener&&n.listener.dispose(),n.listener=null},f.prototype.dispose=function(){this.emitter.dispose()},f}(),v=function(){function f(){this.buffers=[]}return f.prototype.wrapEvent=function(n){var p=this;return function(o,r,s){return n(function(l){var x=p.buffers[p.buffers.length-1];x?x.push(function(){return o.call(r,l)}):o.call(r,l)},void 0,s)}},f.prototype.bufferEvents=function(n){var p=[];this.buffers.push(p);var o=n();return this.buffers.pop(),p.forEach(function(r){return r()}),o},f}(),b=function(){function f(){var n=this;this.listening=!1,this.inputEvent=w.None,this.inputEventListener=N.a.None,this.emitter=new P({onFirstListenerDidAdd:function(){n.listening=!0,n.inputEventListener=n.inputEvent(n.emitter.fire,n.emitter)},onLastListenerRemove:function(){n.listening=!1,n.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(f.prototype,"input",{set:function(n){this.inputEvent=n,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=n(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},f}()},N0LK:function(Gt,Ee,k){"use strict";k.d(Ee,"x",function(){return ne}),k.d(Ee,"F",function(){return z}),k.d(Ee,"r",function(){return K}),k.d(Ee,"o",function(){return O}),k.d(Ee,"p",function(){return w}),k.d(Ee,"Q",function(){return B}),k.d(Ee,"K",function(){return P}),k.d(Ee,"k",function(){return _}),k.d(Ee,"N",function(){return d}),k.d(Ee,"m",function(){return v}),k.d(Ee,"l",function(){return b}),k.d(Ee,"I",function(){return f}),k.d(Ee,"H",function(){return n}),k.d(Ee,"q",function(){return p}),k.d(Ee,"t",function(){return o}),k.d(Ee,"D",function(){return r}),k.d(Ee,"e",function(){return s}),k.d(Ee,"f",function(){return l}),k.d(Ee,"B",function(){return x}),k.d(Ee,"C",function(){return E}),k.d(Ee,"n",function(){return L}),k.d(Ee,"O",function(){return g}),k.d(Ee,"c",function(){return m}),k.d(Ee,"d",function(){return c}),k.d(Ee,"z",function(){return u}),k.d(Ee,"A",function(){return D}),k.d(Ee,"u",function(){return T}),k.d(Ee,"E",function(){return j}),k.d(Ee,"G",function(){return U}),k.d(Ee,"i",function(){return V}),k.d(Ee,"g",function(){return W}),k.d(Ee,"v",function(){return ie}),k.d(Ee,"h",function(){return ae}),k.d(Ee,"y",function(){return xe}),k.d(Ee,"w",function(){return Ze}),k.d(Ee,"a",function(){return Me}),k.d(Ee,"P",function(){return Be}),k.d(Ee,"L",function(){return qe}),k.d(Ee,"J",function(){return Ve}),k.d(Ee,"j",function(){return De}),k.d(Ee,"M",function(){return pe}),k.d(Ee,"s",function(){return se}),k.d(Ee,"b",function(){return we});function ne(me){return!me||typeof me!="string"?!0:me.trim().length===0}function z(me,X,G){G===void 0&&(G="0");for(var Y=""+me,ue=[Y],be=Y.length;be=X.length?Y:X[be]})}function O(me){return me.replace(/[<>&]/g,function(X){switch(X){case"<":return"<";case">":return">";case"&":return"&";default:return X}})}function w(me){return me.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function B(me,X){X===void 0&&(X=" ");var G=C(me,X);return P(G,X)}function C(me,X){if(!me||!X)return me;var G=X.length;if(G===0||me.length===0)return me;for(var Y=0;me.indexOf(X,Y)===Y;)Y=Y+G;return me.substring(Y)}function P(me,X){if(!me||!X)return me;var G=X.length,Y=me.length;if(G===0||Y===0)return me;for(var ue=Y,be=-1;!(be=me.lastIndexOf(X,ue-1),be===-1||be+G!==ue);){if(be===0)return"";ue=be}return me.substring(0,ue)}function _(me){return me.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(me,X){if(me.length0?me.indexOf(X,G)===G:G===0?me===X:!1}function b(me,X,G){if(G===void 0&&(G={}),!me)throw new Error("Cannot create regex from empty string");X||(me=w(me)),G.wholeWord&&(/\B/.test(me.charAt(0))||(me="\\b"+me),/\B/.test(me.charAt(me.length-1))||(me=me+"\\b"));var Y="";return G.global&&(Y+="g"),G.matchCase||(Y+="i"),G.multiline&&(Y+="m"),G.unicode&&(Y+="u"),new RegExp(me,Y)}function f(me){if(me.source==="^"||me.source==="^$"||me.source==="$"||me.source==="^\\s*$")return!1;var X=me.exec("");return!!(X&&me.lastIndex===0)}function n(me){return(me.global?"g":"")+(me.ignoreCase?"i":"")+(me.multiline?"m":"")+(me.unicode?"u":"")}function p(me){for(var X=0,G=me.length;X=0;G--){var Y=me.charCodeAt(G);if(Y!==32&&Y!==9)return G}return-1}function s(me,X){return meX?1:0}function l(me,X){for(var G=Math.min(me.length,X.length),Y=0;YX.length?1:0}function x(me){return me>=97&&me<=122}function E(me){return me>=65&&me<=90}function y(me){return x(me)||E(me)}function L(me,X){return me.length===X.length&&R(me,X)}function R(me,X,G){G===void 0&&(G=me.length);for(var Y=0;Yme.length?!1:R(me,X,G)}function m(me,X){var G,Y=Math.min(me.length,X.length);for(G=0;G1){var Y=me.charCodeAt(X-2);if(u(Y))return(Y-55296<<10)+(G-56320)+65536}return G}function j(me,X){var G=ve.getInstance(),Y=X,ue=me.length,be=T(me,ue,X);X+=be>=65536?2:1;for(var We=G.getGraphemeBreakType(be);X=65536?2:1,We=Tt}return X-Y}function U(me,X){var G=ve.getInstance(),Y=X,ue=A(me,X);X-=ue>=65536?2:1;for(var be=G.getGraphemeBreakType(ue);X>0;){var We=A(me,X),ze=G.getGraphemeBreakType(We);if(we(ze,be))break;X-=We>=65536?2:1,be=ze}return Y-X}var H=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function V(me){return H.test(me)}var I=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(me){return I.test(me)}var Q=/^[\t\n\r\x20-\x7E]*$/;function ie(me){return Q.test(me)}function ae(me){for(var X=0,G=me.length;X=11904&&me<=55215||me>=63744&&me<=64255||me>=65281&&me<=65374}function Ze(me){return me>=127462&&me<=127487||me>=9728&&me<=10175||me>=127744&&me<=128591||me>=128640&&me<=128764||me>=128992&&me<=129003||me>=129280&&me<=129535||me>=129648&&me<=129651||me>=129656&&me<=129666||me>=129680&&me<=129685}var Me=String.fromCharCode(65279);function Be(me){return!!(me&&me.length>0&&me.charCodeAt(0)===65279)}function qe(me){return btoa(encodeURIComponent(me))}function Ve(me,X){for(var G="",Y=0;YG[3*ue+1])ue=2*ue+1;else return G[3*ue+2];return 0},me._INSTANCE=null,me}();function $e(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},Nnv5:function(Gt,Ee,k){Gt.exports={flex_box_center:"flex_box_center___2bJec",flex_space_between:"flex_space_between___2ahJ7",flex_box_vertical_center:"flex_box_vertical_center___2dSx8",flex_box_center_end:"flex_box_center_end___1Vr--",flex_box_column:"flex_box_column___nACsK",wrap:"wrap___2DR4Y",sys:"sys___2U2iV",head:"head___3qxDP",list:"list___uTkEt",name:"name___3QGED",tr:"tr___1zJeC"}},NvD2:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return w});var ne=k("Kwbf");function z(B,C){var P=new Set;return B.forEach(function(_){C.has(_)||P.add(_)}),P}function N(B){var C=B||{},P=C.disabled,_=C.disableCheckbox,d=C.checkable;return!!(P||_)||d===!1}function K(B,C,P,_){for(var d=new Set(B),v=new Set,b=0;b<=P;b+=1){var f=C.get(b)||new Set;f.forEach(function(r){var s=r.key,l=r.node,x=r.children,E=x===void 0?[]:x;d.has(s)&&!_(l)&&E.filter(function(y){return!_(y.node)}).forEach(function(y){d.add(y.key)})})}for(var n=new Set,p=P;p>=0;p-=1){var o=C.get(p)||new Set;o.forEach(function(r){var s=r.parent,l=r.node;if(_(l)||!r.parent||n.has(r.parent.key))return;if(_(r.parent.node)){n.add(s.key);return}var x=!0,E=!1;(s.children||[]).filter(function(y){return!_(y.node)}).forEach(function(y){var L=y.key,R=d.has(L);x&&!R&&(x=!1),!E&&(R||v.has(L))&&(E=!0)}),x&&d.add(s.key),E&&v.add(s.key),n.add(s.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(z(v,d))}}function O(B,C,P,_,d){for(var v=new Set(B),b=new Set(C),f=0;f<=_;f+=1){var n=P.get(f)||new Set;n.forEach(function(s){var l=s.key,x=s.node,E=s.children,y=E===void 0?[]:E;!v.has(l)&&!b.has(l)&&!d(x)&&y.filter(function(L){return!d(L.node)}).forEach(function(L){v.delete(L.key)})})}b=new Set;for(var p=new Set,o=_;o>=0;o-=1){var r=P.get(o)||new Set;r.forEach(function(s){var l=s.parent,x=s.node;if(d(x)||!s.parent||p.has(s.parent.key))return;if(d(s.parent.node)){p.add(l.key);return}var E=!0,y=!1;(l.children||[]).filter(function(L){return!d(L.node)}).forEach(function(L){var R=L.key,g=v.has(R);E&&!g&&(E=!1),!y&&(g||b.has(R))&&(y=!0)}),E||v.delete(l.key),y&&b.add(l.key),p.add(l.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(z(b,v))}}function w(B,C,P,_){var d=[],v;_?v=_:v=N;var b=new Set(B.filter(function(o){var r=!!P[o];return r||d.push(o),r})),f=new Map,n=0;Object.keys(P).forEach(function(o){var r=P[o],s=r.level,l=f.get(s);l||(l=new Set,f.set(s,l)),l.add(r),n=Math.max(n,s)}),Object(ne.a)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var p;return C===!0?p=K(b,f,n,v):p=O(b,C.halfCheckedKeys,f,n,v),p}},OLES:function(Gt,Ee,k){"use strict";var ne=k("U8pU"),z=k("VTBJ"),N=k("Ff2n"),K=k("q1tI"),O=k("uciX"),w=k("7ixt"),B=function(b){var f=b.overlay,n=b.prefixCls,p=b.id,o=b.overlayInnerStyle;return K.createElement("div",{className:"".concat(n,"-inner"),id:p,role:"tooltip",style:o},typeof f=="function"?f():f)},C=B,P=function(b,f){var n=b.overlayClassName,p=b.trigger,o=p===void 0?["hover"]:p,r=b.mouseEnterDelay,s=r===void 0?0:r,l=b.mouseLeaveDelay,x=l===void 0?.1:l,E=b.overlayStyle,y=b.prefixCls,L=y===void 0?"rc-tooltip":y,R=b.children,g=b.onVisibleChange,m=b.afterVisibleChange,c=b.transitionName,u=b.animation,D=b.placement,T=D===void 0?"right":D,A=b.align,j=A===void 0?{}:A,U=b.destroyTooltipOnHide,H=U===void 0?!1:U,V=b.defaultVisible,I=b.getTooltipContainer,W=b.overlayInnerStyle,Q=Object(N.a)(b,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ie=Object(K.useRef)(null);Object(K.useImperativeHandle)(f,function(){return ie.current});var ae=Object(z.a)({},Q);"visible"in b&&(ae.popupVisible=b.visible);var xe=function(){var Ve=b.arrowContent,De=Ve===void 0?null:Ve,pe=b.overlay,se=b.id;return[K.createElement("div",{className:"".concat(L,"-arrow"),key:"arrow"},De),K.createElement(C,{key:"content",prefixCls:L,id:se,overlay:pe,overlayInnerStyle:W})]},Ze=!1,Me=!1;if(typeof H=="boolean")Ze=H;else if(H&&Object(ne.a)(H)==="object"){var Be=H.keepParent;Ze=Be===!0,Me=Be===!1}return K.createElement(O.a,Object.assign({popupClassName:n,prefixCls:L,popup:xe,action:o,builtinPlacements:w.a,popupPlacement:T,ref:ie,popupAlign:j,getPopupContainer:I,onPopupVisibleChange:g,afterPopupVisibleChange:m,popupTransitionName:c,popupAnimation:u,defaultPopupVisible:V,destroyPopupOnHide:Ze,autoDestroy:Me,mouseLeaveDelay:x,popupStyle:E,mouseEnterDelay:s},ae),R)},_=Object(K.forwardRef)(P),d=Ee.a=_},OZM5:function(Gt,Ee,k){"use strict";k.d(Ee,"b",function(){return _}),k.d(Ee,"a",function(){return d}),k.d(Ee,"k",function(){return v}),k.d(Ee,"h",function(){return b}),k.d(Ee,"i",function(){return f}),k.d(Ee,"g",function(){return n}),k.d(Ee,"c",function(){return p}),k.d(Ee,"d",function(){return o}),k.d(Ee,"j",function(){return l}),k.d(Ee,"e",function(){return x}),k.d(Ee,"f",function(){return E});var ne=k("KQm4"),z=k("U8pU"),N=k("Ff2n"),K=k("q1tI"),O=k.n(K),w=k("Kwbf"),B=k("WaYH"),C=.25,P=2;function _(y,L){var R=y.slice(),g=R.indexOf(L);return g>=0&&R.splice(g,1),R}function d(y,L){var R=y.slice();return R.indexOf(L)===-1&&R.push(L),R}function v(y){return y.split("-")}function b(y,L){return"".concat(y,"-").concat(L)}function f(y){return y&&y.type&&y.type.isTreeNode}function n(y,L){var R=[y],g=L[y];function m(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(u){var D=u.key,T=u.children;R.push(D),m(T)})}return m(g.children),R}function p(y,L){var R=y.clientY,g=L.selectHandle.getBoundingClientRect(),m=g.top,c=g.bottom,u=g.height,D=Math.max(u*C,P);return R<=m+D?-1:R>=c-D?1:0}function o(y,L){if(!y)return;var R=L.multiple;return R?y.slice():y.length?[y[0]]:y}var r=function(L){return L};function s(y,L){if(!y)return[];var R=L||{},g=R.processProps,m=g===void 0?r:g,c=Array.isArray(y)?y:[y];return c.map(function(u){var D=u.children,T=Object(N.a)(u,["children"]),A=s(D,L);return O.a.createElement(B.a,Object.assign({},m(T)),A)})}function l(y){if(!y)return null;var L;if(Array.isArray(y))L={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(z.a)(y)==="object")L={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(w.a)(!1,"`checkedKeys` is not an array or an object"),null;return L}function x(y,L){var R=new Set;function g(m){if(R.has(m))return;var c=L[m];if(!c)return;R.add(m);var u=c.parent,D=c.node;if(D.disabled)return;u&&g(u.key)}return(y||[]).forEach(function(m){g(m)}),Object(ne.a)(R)}function E(y){var L={};return Object.keys(y).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(L[R]=y[R])}),L}},Ot1p:function(Gt,Ee,k){"use strict";var ne=k("2qtc"),z=k("kLXV"),N=k("rAM+"),K=k("miYZ"),O=k("tsqr"),w=k("9og8"),B=k("tJVT"),C=k("jrin"),P=k("WmNS"),_=k.n(P),d=k("q1tI"),v=k.n(d),b=k("VrN/"),f=k.n(b),n=k("bdgK"),p=k("p77/"),o=k("Bd2K"),r=k("ELLl"),s=k("19Vz"),l=k("lZu9"),x=k("+NIl"),E=k("kSUc"),y=k("9Bee"),L=function(et){var Rt=et.value,qt=Rt===void 0?"":Rt,pn=et.className,an=et.showTextOnly,Ht=et.showLines,bt=et.style,xt=bt===void 0?{}:bt,ct=Object(d.useMemo)(function(){return""},[qt]);return v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},R=k("0Owb"),g=k("dejd"),m=k("C+DQ"),c=k("1vsH"),u=k("m3rI"),D=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(et){var Rt=et.onActionCallback,qt=et.title,pn=et.icon,an=et.actionName,Ht=et.className,bt=Ht===void 0?"":Ht,xt=et.children;function ct(){Rt(an)}return v.a.createElement("a",{title:qt,className:bt,onClick:ct},v.a.createElement("i",{className:"md-iconfont ".concat(pn)}),xt)}var A=function(et){var Rt=et.watch,qt=et.showNullButton,pn=et.onActionCallback,an=et.fullScreen,Ht=et.insertTemp,bt=et.hidetoolBar,xt=et.uuid,ct=et.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(c.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(c.D)("_educoder_session"),"&key=").concat(xt,"&api=").concat(encodeURIComponent(u.a.PROXY_SERVER)));var ge=[].concat(D,[{title:"".concat(Rt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Rt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return v.a.createElement("ul",{className:"markdown-toolbar-container"},!bt&&ge.map(function(Ne,Ct){return v.a.createElement("li",{key:Ct},Ne.actionName?v.a.createElement(T,Object(R.a)({},Ne,{onActionCallback:pn})):v.a.createElement("span",{className:"v-line"}))}),qt?v.a.createElement("li",null,v.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:pn},v.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ht&&v.a.createElement("li",null,v.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ht),onActionCallback:pn},v.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),v.a.createElement("li",{className:"btn-full-screen"},v.a.createElement(T,{icon:"".concat(an?"icon-shrink":"icon-enlarge"),title:an?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:pn})))},j=k("M8RZ"),U=k("+L6B"),H=k("2/Rp"),V=k("y8nQ"),I=k("Vl3Y"),W=k("5NDa"),Q=k("5rEg"),ie={labelCol:{span:4},wrapperCol:{span:20}},ae=function(et){var Rt=et.callback,qt=et.onCancel;function pn(an){Rt(an)}return v.a.createElement(I.a,Object(R.a)({},ie,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pn}),v.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},v.a.createElement(Q.a,null)),v.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},v.a.createElement(Q.a,null)),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},xe=k("7ahc"),Ze=k("k1fw"),Me=k("HmJG"),Be=k("BjJ7"),qe=I.a.useForm,Ve={width:280,marginRight:10},De={labelCol:{span:5},wrapperCol:{span:19}},pe=function(et){var Rt=et.callback,qt=et.onCancel,pn=qe(),an=Object(B.a)(pn,1),Ht=an[0],bt=Object(d.useRef)();function xt(Ne){Rt(Object(Ze.a)(Object(Ze.a)({},Ne),{},{name:bt.current}))}function ct(Ne,Ct){Ht.setFieldsValue({src:"/api/attachments/".concat(Ne.id,"?type=").concat(Ne.content_type),type:Ct.type})}function ge(Ne){var Ct=Ne.target.files[0];bt.current=Ct.name,we(Ct,ct)}return v.a.createElement(I.a,Object(R.a)({form:Ht},De,{className:"upload-image-panel",onFinish:xt}),v.a.createElement(I.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},v.a.createElement("div",{className:"flex-container"},v.a.createElement(I.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},v.a.createElement(Q.a,{style:Ve})),v.a.createElement(se,{onFileChange:ge}))),v.a.createElement(I.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},v.a.createElement(Q.a,{style:{width:264}})),v.a.createElement(I.a.Item,{style:{textAlign:"right"}},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:qt},"\u53D6\u6D88")))};function se(et){var Rt=et.onFileChange;return v.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",v.a.createElement("input",{type:"file",onChange:Rt}))}function we(et,Rt){if(!et)throw new String("\u6CA1\u6709\u6587\u4EF6");var qt=new FormData;qt.append("editormd-image-file",et),qt.append("file_param_name","editormd-image-file"),qt.append("byxhr","true");var pn=new window.XMLHttpRequest;pn.withCredentials=!0,pn.addEventListener("load",function(an){Rt(JSON.parse(an.target.responseText),et)},!1),pn.addEventListener("error",function(an){console.error(an)},!1),pn.open("POST","".concat(Be.a,"/api/attachments.json")),pn.send(qt)}var ve=k("giR+"),$e=k("fyUT"),me=k("7Kak"),X=k("9yH6"),G=X.a.Group,Y={margin:"0 8px"},ue=function(et){var Rt=et.callback,qt=et.onCancel;function pn(an){Rt(an)}return v.a.createElement(I.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pn},v.a.createElement("div",{className:"flex-container"},v.a.createElement("span",{style:Y},"\u5355\u5143\u683C\u6570\uFF1A"),v.a.createElement("span",{style:Y},"\u884C\u6570"),v.a.createElement(I.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},v.a.createElement($e.a,null)),v.a.createElement("span",{style:Y},"\u5217\u6570"),v.a.createElement(I.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},v.a.createElement($e.a,null))),v.a.createElement("div",{className:"flex-container",style:{marginTop:12}},v.a.createElement("span",{style:Y},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),v.a.createElement(I.a.Item,{name:"align"},v.a.createElement(G,null,v.a.createElement(X.a,{value:"default"},v.a.createElement("i",{className:"fa fa-align-justify"})),v.a.createElement(X.a,{value:"left"},v.a.createElement("i",{className:"fa fa-align-left"})),v.a.createElement(X.a,{value:"center"},v.a.createElement("i",{className:"fa fa-align-center"})),v.a.createElement(X.a,{value:"right"},v.a.createElement("i",{className:"fa fa-align-right"}))))),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},be=k("ErOA"),We=k("7Cbv"),ze="link",Tt="upload-image",Ut="code-block",It="add-table",Nt="------------",Zt={default:Nt,left:":".concat(Nt),center:":".concat(Nt,":"),right:"".concat(Nt,":")},fn=k("9VGf"),nt,He;function pt(){}var Mt=0,st=1e4,Et="\u2581",Fe=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Se(et){return/^\d+$/.test(et)?"".concat(et,"px"):et}var Oe=navigator.platform.toUpperCase().indexOf("MAC")>=0,ce=Oe?"Cmd":"Ctrl",he=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ce=(nt={},Object(C.a)(nt,ce+"-B","bold"),Object(C.a)(nt,ce+"-I","italic"),nt),Le=(He={},Object(C.a)(He,ze,"\u6DFB\u52A0\u94FE\u63A5"),Object(C.a)(He,Ut,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(C.a)(He,Tt,"\u6DFB\u52A0\u6587\u4EF6"),Object(C.a)(He,It,"\u6DFB\u52A0\u8868\u683C"),He),at=Ee.a=function(et){var Rt=et.defaultValue,en=Rt===void 0?"":Rt,pn=et.onChange,on=et.width,Kt=on===void 0?"100%":on,bt=et.height,xt=bt===void 0?400:bt,ct=et.miniToolbar,ge=ct===void 0?!1:ct,Ne=et.isFocus,Ct=Ne===void 0?!1:Ne,dt=et.watch,tn=et.insertTemp,nn=et.mode,it=nn===void 0?"markdown":nn,vt=et.id,Ot=vt===void 0?"markdown-editor-id":vt,sn=et.showResizeBar,En=sn===void 0?!1:sn,or=et.noStorage,fr=or===void 0?!1:or,ar=et.showNullButton,Sn=ar===void 0?!1:ar,Hr=et.hidetoolBar,ea=Hr===void 0?!1:Hr,Ir=et.fullScreen,pr=Ir===void 0?!1:Ir,Br=et.onBlur,Jr=et.onCMBeforeChange,la=et.onFullScreen,jt=et.className,On=jt===void 0?"":jt,mr=et.disablePaste,Dr=mr===void 0?!1:mr,Sr=et.placeholder,Cr=Sr===void 0?"":Sr,J=et.values,S=J===void 0?"":J,M=Object(d.useState)(null),$=Object(B.a)(M,2),te=$[0],q=$[1],Xe=Object(d.useState)(en),zt=Object(B.a)(Xe,2),gn=zt[0],Nn=zt[1],Yt=Object(d.useState)(dt),tr=Object(B.a)(Yt,2),an=tr[0],Jt=tr[1],cn=Object(d.useState)(pr),_n=Object(B.a)(cn,2),zn=_n[0],lr=_n[1],ir=Object(d.useState)(""),Tr=Object(B.a)(ir,2),$n=Tr[0],Vn=Tr[1],jn=Object(d.useState)(0),mn=Object(B.a)(jn,2),Ar=mn[0],Pr=mn[1],Dn=Object(d.useState)(xt),sr=Object(B.a)(Dn,2),Or=sr[0],ee=sr[1],Te=Object(d.useState)(!1),Qe=Object(B.a)(Te,2),Ge=Qe[0],ot=Qe[1],ke=Object(d.useRef)(Object(We.a)()),ft=Object(d.useRef)(!1),yt=Object(d.useRef)(),Re=Object(d.useRef)(),mt=Object(d.useRef)(),Wt=Object(d.useRef)(),Dt=Object(d.useRef)(),lt=function(){var _t=Object(w.a)(_.a.mark(function wt(){var Xt,Mt;return _.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return Qt.next=2,Object(be.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ke.current}});case 2:Mt=Qt.sent,Mt!=null&&(Xt=Mt.attachments)!==null&&Xt!==void 0&&Xt.length&&(console.log("cm:",te,Re),Mt.attachments.map(function(ln){ln.content_type.indexOf("image")>-1?te.replaceSelection("![,](/api/attachments/".concat(ln.id,"?type=").concat(ln.content_type,")")):ln.content_type.indexOf("video")>-1?te.replaceSelection('')):ln.content_type.indexOf("pdf")>-1?te.replaceSelection('
              ').concat(ln.name,"")):te.replaceSelection("[".concat(ln.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(ln.id,"?type=").concat(ln.content_type,")"))}));case 4:case"end":return Qt.stop()}},wt)}));return function(){return _t.apply(this,arguments)}}();Object(d.useEffect)(function(){Nn(S),te==null||te.setValue(S)},[S]),Object(d.useEffect)(function(){la==null||la(zn)},[zn]),Object(d.useEffect)(function(){if(Re.current){var _t=f.a.fromTextArea(Re.current,{mode:it,lineNumbers:!ge,lineWrapping:!0,value:en,autoCloseTags:!0,autoCloseBrackets:!0});Ct&&_t.focus();function wt(Xt,Mt){if(Dr){Mt.preventDefault();return}var Un=Mt.clipboardData;if(Un){var Qt=Un.types.toString(),ln=Un.items;if(Qt==="Files"||Un.types.indexOf("Files")>-1){if(Mt.preventDefault(),it=="stex")return;try{var Rn,Ln=ln[1];((Rn=ln[0])===null||Rn===void 0?void 0:Rn.kind)==="file"&&(Ln=ln[0]);var dn=Ln.getAsFile(),Qn=dn.name.split(".").pop();we(dn,function(An){if(An.id){var yr,zr,vr;(dn==null||((yr=dn.type)===null||yr===void 0)?void 0:yr.indexOf("image"))>-1?_t.replaceSelection("![,](/api/attachments/".concat(An.id,"?type=").concat(An.content_type,")")):(dn==null||((zr=dn.type)===null||zr===void 0)?void 0:zr.indexOf("video"))>-1?_t.replaceSelection('')):(dn==null||((vr=dn.type)===null||vr===void 0)?void 0:vr.indexOf("pdf"))>-1?_t.replaceSelection('').concat(dn.name,"")):he.includes(Qn)?_t.replaceSelection('').concat(dn.name,"")):_t.replaceSelection("[".concat(dn.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(An.id,"?type=").concat(An.content_type,")"))}else(An==null?void 0:An.status)===401&&(document.location.href="/user/login")})}catch(An){O.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return _t.on("paste",wt),_t.on("dragleave",function(Xt,Mt){mt.current.classList.remove("mouse-hover-md")}),_t.on("dragover",function(Xt,Mt){mt.current.classList.add("mouse-hover-md")}),_t.on("drop",function(Xt,Mt){mt.current.classList.add("mouse-hover-md");var Un;if(Un=Mt.dataTransfer.files,Un.length>0){Mt.preventDefault(),Mt.stopPropagation();for(var Qt=function(Ln){var dn=Un[Ln],Qn=dn.name.split(".").pop();we(dn,function(An){if(An.id){var yr,zr,vr;(dn==null||((yr=dn.type)===null||yr===void 0)?void 0:yr.indexOf("image"))>-1?_t.replaceSelection("![,](/api/attachments/".concat(An.id,"?type=").concat(An.content_type,")")):(dn==null||((zr=dn.type)===null||zr===void 0)?void 0:zr.indexOf("video"))>-1?_t.replaceSelection('')):(dn==null||((vr=dn.type)===null||vr===void 0)?void 0:vr.indexOf("pdf"))>-1?_t.replaceSelection('').concat(dn.name,"")):he.includes(Qn)?_t.replaceSelection('').concat(dn.name,"")):_t.replaceSelection("[".concat(dn.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(An.id,"?type=").concat(An.content_type,")"))}else(An==null?void 0:An.status)===401&&(document.location.href="/user/login")})},ln=0;ln0||ln.target.offsetWidth>0)&&(At(),te.setSize("100%","100%"),te.refresh())}}catch(Rn){Un.e(Rn)}finally{Un.f()}});return Xt.observe(Re.current.parentElement),Xt}if(te){var wt=_t();return function(){wt.unobserve(Re.current.parentElement)}}},[te,At]),Object(d.useEffect)(function(){if(te){for(var _t=[],wt=function(){var ln=Mt[Xt];Un=Object(B.a)(ln,2);var Rn=Un[0],Ln=Un[1],dn=Object(C.a)({},Rn,function(){Lt(Ln)});_t.push(dn),te.addKeyMap(dn)},Xt=0,Mt=Object.entries(Ce);Xt0){var _t=new Date().getTime(),wt=window.sessionStorage.getItem(Ot);_t>=Ar+st&&(!wt||wt!==gn)&&(window.sessionStorage.setItem(Ot,gn),ot(!0))}},st),Object(d.useEffect)(function(){Jt(dt)},[te,dt]),Object(d.useEffect)(function(){te&&(Ct&&te.focus())},[te,Ct]),Object(d.useEffect)(function(){if(an&&te){var _t=te.getScrollerElement();function wt(Xt){var Mt=Xt.target;if(Dt.current){var Un=Mt.scrollTop/Mt.scrollHeight;Dt.current.scrollTop=Dt.current.scrollHeight*Un}}return _t.addEventListener("scroll",wt),function(){_t.removeEventListener("scroll",wt)}}},[te,an]),Object(d.useEffect)(function(){if(te&&Jr){function _t(wt,Xt){Jr(wt,Xt)}return te.on("beforeChange",_t),function(){te.off("beforeChange",_t)}}},[te,Jr]),Object(d.useEffect)(function(){if(te&&Br){function _t(){Br(te.getValue())}return te.on("blur",_t),function(){te.off("blur",_t)}}},[te,Br]),Object(d.useEffect)(function(){if(te){function _t(wt){var Xt=wt.getValue();Nn(Xt),Pr(new Date().getTime()),wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pn&&pn(Xt)}return te.on("change",_t),function(){te.off("change",_t)}}},[te,pn]),Object(d.useEffect)(function(){te&&(en==null?(te.setValue(""),Nn("")):en!==te.getValue()&&(te.setValue(en),Nn(en),te.setCursor(te.lineCount(),0)))},[te,en]);var Lt=Object(d.useCallback)(function(_t){var wt=te.getCursor(),Xt=te.getSelection(),Mt=Xt.split(` -`);switch(_t){case"bold":return te.replaceSelection("**"+Xt+"**"),Xt===""&&te.setCursor(wt.line,wt.ch+2),te.focus();case"italic":return te.replaceSelection("*"+Xt+"*"),Xt===""&&te.setCursor(wt.line,wt.ch+1),te.focus();case"code":return te.replaceSelection("`"+Xt+"`"),Xt===""&&te.setCursor(wt.line,wt.ch+1),te.focus();case"inline-latex":return te.replaceSelection("`$$"+Xt+"$$`"),Xt===""&&te.setCursor(wt.line,wt.ch+3),te.focus();case"latex":return te.replaceSelection("```latex\n"+Xt+"\n```"),te.setCursor(wt.line+1,Xt.length+1),te.focus();case"line-break":return te.replaceSelection(`
              -`),te.focus();case"list-ul":return Xt===""?te.replaceSelection("- "+Xt):te.replaceSelection(Mt.map(function(Un){return Un===""?"":"- ".concat(Un)}).join(` -`)),te.focus();case"list-ol":return Xt===""?te.replaceSelection("1. "+Xt):te.replaceSelection(Mt.map(function(Un,Qt){return Un===""?"":"".concat(Qt+1,". ").concat(Un)}).join(` -`)),te.focus();case"add-null-ch":return Xt===""&&te.setCursor(wt.line,wt.ch+1),te.replaceSelection(Et),te.focus();case"inster-template-1":return Xt===""&&te.setCursor(wt.line,wt.ch),te.replaceSelection(Fe),te.focus();case"eraser":return te.setValue(""),te.focus();case"trigger-watch":return Jt(!an),te.focus();case"trigger-full-screen":return lr(!zn),te.focus();case ze:Vn(ze);return;case Ut:Vn(Ut);return;case Tt:Vn(Tt);return;case It:Vn(It);return;default:throw new Error}},[te,an,zn]),$t=Object(d.useCallback)(function(_t){Vn("");switch($n){case ze:var wt=_t.title,Xt=_t.link;return te.replaceSelection("[".concat(wt,"](").concat(Xt,")")),te.focus();case Ut:var Mt=_t.language,Un=_t.content;return te.replaceSelection(["```"+Mt,Un,"```"].join(` -`)),te.focus();case Tt:var Qt=_t.src,ln=_t.alt,Rn=_t.name;return Qt.indexOf("type=image")>-1?te.replaceSelection("![ ".concat(ln||""," ]( ").concat(Qt,' "').concat(ln||"",'" )')):Qt.indexOf("type=application/pdf")>-1?te.replaceSelection('').concat(Rn,"")):te.replaceSelection('').concat(Rn,"")),te.focus();case It:for(var Ln=_t.row,dn=_t.col,Qn=_t.align,An=` -`,yr=0;yr300&&(Rn=300);var Ln=xt+Rn+"px";ee(Ln)}}return _t.addEventListener("mousedown",Mt),document.addEventListener("mousemove",Qt),document.addEventListener("mouseup",Un),function(){_t.removeEventListener("mousedown",Mt),document.removeEventListener("mousemove",Qt),document.removeEventListener("mouseup",Un)}}},[te,Wt]),Object(d.useEffect)(function(){ee(xt)},[xt]);var Ht=Se(Kt),fn=Se(Or),Wn={width:Ht,height:fn},bn=Object(d.useMemo)(function(){if(Ar){var _t=new Date(Ar),wt=_t.getHours(),Xt=_t.getMinutes(),Mt=_t.getSeconds();return wt=wt<10?"0"+wt:wt,Xt=Xt<10?"0"+Xt:Xt,Mt=Mt<10?"0"+Mt:Mt,"".concat(wt,":").concat(Xt,":").concat(Mt)}return 0},[Ar]);function xn(){window.sessionStorage.removeItem(Ot),ot(!1),Pr(0)}function Kn(){ot(!1),Pr(0),te.setValue(window.sessionStorage.getItem(Ot))}function Hn(_t,wt){var Xt=te.getValue();Xt=Xt.replace(_t,wt),Nn(Xt),te==null||te.setValue(Xt)}return v.a.createElement(d.Fragment,null,v.a.createElement("div",{className:"markdown-editor-wrapper",ref:mt},v.a.createElement("div",{className:"markdown-editor-container ".concat(On," ").concat(an?"on-preview":""," ").concat(ge?"mini":""," ").concat(zn?"full-screen":""),style:Wn},v.a.createElement(A,{insertTemp:tn,watch:an,fullScreen:zn,showNullButton:Sn,onActionCallback:Lt,hidetoolBar:ea,uuid:ke.current,setOpenPhones:function(){ft.current=!0}}),v.a.createElement("div",{className:"markdown-editor-body"},v.a.createElement("div",{className:"codemirror-container"},v.a.createElement("textarea",{ref:Re,placeholder:Cr})),an?v.a.createElement("div",{ref:Dt,className:"preview-container"},it==="stex"&&v.a.createElement(L,{value:gn}),it!=="stex"&&v.a.createElement(y.a,{edit:!0,value:gn,replaces:Hn})):null))),En?v.a.createElement("a",{ref:Wt,className:"editor-resize"}):null,v.a.createElement(j.a,null,Le[$n]?v.a.createElement(z.a,{centered:!0,title:Le[$n],visible:!0,onCancel:Pt,footer:null},Ie):null))}},QDVR:function(Vt,Ee,k){"use strict";k.d(Ee,"e",function(){return z}),k.d(Ee,"d",function(){return N}),k.d(Ee,"c",function(){return B}),k.d(Ee,"b",function(){return C}),k.d(Ee,"a",function(){return _});var ne=function(){var d=function(v,b){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,n){f.__proto__=n}||function(f,n){for(var p in n)n.hasOwnProperty(p)&&(f[p]=n[p])},d(v,b)};return function(v,b){d(v,b);function f(){this.constructor=v}v.prototype=b===null?Object.create(b):(f.prototype=b.prototype,new f)}}();function z(d){var v=[];return d.forEach(function(b){return v.push(b)}),v}function N(d){var v=[];return d.forEach(function(b,f){return v.push(f)}),v}var K=function(){function d(){this._value="",this._pos=0}return d.prototype.reset=function(v){return this._value=v,this._pos=0,this},d.prototype.next=function(){return this._pos+=1,this},d.prototype.hasNext=function(){return this._pos0)n.left||(n.left=new w,n.left.segment=f.value()),n=n.left;else if(p<0)n.right||(n.right=new w,n.right.segment=f.value()),n=n.right;else if(f.hasNext())f.next(),n.mid||(n.mid=new w,n.mid.segment=f.value()),n=n.mid;else break}var o=n.value;return n.value=b,n.key=v,o},d.prototype.get=function(v){for(var b=this._iter.reset(v),f=this._root;f;){var n=b.cmp(f.segment);if(n>0)f=f.left;else if(n<0)f=f.right;else if(b.hasNext())b.next(),f=f.mid;else break}return f?f.value:void 0},d.prototype.findSubstr=function(v){for(var b=this._iter.reset(v),f=this._root,n=void 0;f;){var p=b.cmp(f.segment);if(p>0)f=f.left;else if(p<0)f=f.right;else if(b.hasNext())b.next(),n=f.value||n,f=f.mid;else break}return f&&f.value||n},d.prototype.forEach=function(v){this._forEach(this._root,v)},d.prototype._forEach=function(v,b){v&&(this._forEach(v.left,b),v.value&&b(v.value,v.key),this._forEach(v.mid,b),this._forEach(v.right,b))},d}(),C=function(){function d(){this.map=new Map,this.ignoreCase=!1}return d.prototype.set=function(v,b){this.map.set(this.toKey(v),b)},d.prototype.get=function(v){return this.map.get(this.toKey(v))},d.prototype.toKey=function(v){var b=v.toString();return this.ignoreCase&&(b=b.toLowerCase()),b},d}(),P=function(){function d(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return d.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(d.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),d.prototype.get=function(v,b){b===void 0&&(b=0);var f=this._map.get(v);return f?(b!==0&&this.touch(f,b),f.value):void 0},d.prototype.set=function(v,b,f){f===void 0&&(f=0);var n=this._map.get(v);if(n)n.value=b,f!==0&&this.touch(n,f);else{n={key:v,value:b,next:void 0,previous:void 0};switch(f){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(v,n),this._size++}},d.prototype.delete=function(v){return!!this.remove(v)},d.prototype.remove=function(v){var b=this._map.get(v);return b?(this._map.delete(v),this.removeItem(b),this._size--,b.value):void 0},d.prototype.forEach=function(v,b){for(var f=this._head;f;)b?v.bind(b)(f.value,f.key,this):v(f.value,f.key,this),f=f.next},d.prototype.trimOld=function(v){if(v>=this.size)return;if(v===0){this.clear();return}for(var b=this._head,f=this.size;b&&f>v;)this._map.delete(b.key),b=b.next,f--;this._head=b,this._size=f,b&&(b.previous=void 0)},d.prototype.addItemFirst=function(v){if(!this._head&&!this._tail)this._tail=v;else if(this._head)v.next=this._head,this._head.previous=v;else throw new Error("Invalid list");this._head=v},d.prototype.addItemLast=function(v){if(!this._head&&!this._tail)this._head=v;else if(this._tail)v.previous=this._tail,this._tail.next=v;else throw new Error("Invalid list");this._tail=v},d.prototype.removeItem=function(v){if(v===this._head&&v===this._tail)this._head=void 0,this._tail=void 0;else if(v===this._head){if(!v.next)throw new Error("Invalid list");v.next.previous=void 0,this._head=v.next}else if(v===this._tail){if(!v.previous)throw new Error("Invalid list");v.previous.next=void 0,this._tail=v.previous}else{var b=v.next,f=v.previous;if(!b||!f)throw new Error("Invalid list");b.previous=f,f.next=b}v.next=void 0,v.previous=void 0},d.prototype.touch=function(v,b){if(!this._head||!this._tail)throw new Error("Invalid list");if(b!==1&&b!==2)return;if(b===1){if(v===this._head)return;var f=v.next,n=v.previous;v===this._tail?(n.next=void 0,this._tail=n):(f.previous=n,n.next=f),v.previous=void 0,v.next=this._head,this._head.previous=v,this._head=v}else if(b===2){if(v===this._tail)return;var f=v.next,n=v.previous;v===this._head?(f.previous=void 0,this._head=f):(f.previous=n,n.next=f),v.next=void 0,v.previous=this._tail,this._tail.next=v,this._tail=v}},d.prototype.toJSON=function(){var v=[];return this.forEach(function(b,f){v.push([f,b])}),v},d}(),_=function(d){ne(v,d);function v(b,f){f===void 0&&(f=1);var n=d.call(this)||this;return n._limit=b,n._ratio=Math.min(Math.max(0,f),1),n}return v.prototype.get=function(b){return d.prototype.get.call(this,b,2)},v.prototype.peek=function(b){return d.prototype.get.call(this,b,0)},v.prototype.set=function(b,f){d.prototype.set.call(this,b,f,2),this.checkTrim()},v.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},v}(P)},RotF:function(Vt,Ee,k){Vt.exports=k("LSTS")},"SA+Z":function(Vt,Ee,k){var ne=k("wTVA"),z=k("EbDI"),N=k("ZhPi"),K=k("wkBT");function O(w){return ne(w)||z(w)||N(w)||K()}Vt.exports=O,Vt.exports.__esModule=!0,Vt.exports.default=Vt.exports},SJMd:function(Vt,Ee){/** +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Se(et){return/^\d+$/.test(et)?"".concat(et,"px"):et}var Oe=navigator.platform.toUpperCase().indexOf("MAC")>=0,ce=Oe?"Cmd":"Ctrl",he=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ce=(nt={},Object(C.a)(nt,ce+"-B","bold"),Object(C.a)(nt,ce+"-I","italic"),nt),Le=(He={},Object(C.a)(He,ze,"\u6DFB\u52A0\u94FE\u63A5"),Object(C.a)(He,Ut,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(C.a)(He,Tt,"\u6DFB\u52A0\u6587\u4EF6"),Object(C.a)(He,It,"\u6DFB\u52A0\u8868\u683C"),He),at=Ee.a=function(et){var Rt=et.defaultValue,qt=Rt===void 0?"":Rt,pn=et.onChange,an=et.width,Ht=an===void 0?"100%":an,bt=et.height,xt=bt===void 0?400:bt,ct=et.miniToolbar,ge=ct===void 0?!1:ct,Ne=et.isFocus,Ct=Ne===void 0?!1:Ne,dt=et.watch,en=et.insertTemp,tn=et.mode,it=tn===void 0?"markdown":tn,vt=et.id,Ot=vt===void 0?"markdown-editor-id":vt,on=et.showResizeBar,xn=on===void 0?!1:on,lr=et.noStorage,fr=lr===void 0?!1:lr,ir=et.showNullButton,Tn=ir===void 0?!1:ir,Wr=et.hidetoolBar,ta=Wr===void 0?!1:Wr,jr=et.fullScreen,mr=jr===void 0?!1:jr,Br=et.onBlur,Zr=et.onCMBeforeChange,ua=et.onFullScreen,jt=et.className,On=jt===void 0?"":jt,vr=et.disablePaste,Dr=vr===void 0?!1:vr,Sr=et.placeholder,xr=Sr===void 0?"":Sr,J=et.values,S=J===void 0?"":J,M=Object(d.useState)(null),$=Object(B.a)(M,2),te=$[0],q=$[1],Xe=Object(d.useState)(qt),Kt=Object(B.a)(Xe,2),yn=Kt[0],In=Kt[1],Xt=Object(d.useState)(dt),rr=Object(B.a)(Xt,2),nn=rr[0],Qt=rr[1],un=Object(d.useState)(mr),wn=Object(B.a)(un,2),zn=wn[0],cr=wn[1],sr=Object(d.useState)(""),Tr=Object(B.a)(sr,2),Zn=Tr[0],Xn=Tr[1],Nn=Object(d.useState)(0),mn=Object(B.a)(Nn,2),Pr=mn[0],Lr=mn[1],An=Object(d.useState)(xt),ur=Object(B.a)(An,2),Or=ur[0],ee=ur[1],Te=Object(d.useState)(!1),Qe=Object(B.a)(Te,2),Ge=Qe[0],ot=Qe[1],ke=Object(d.useRef)(Object(We.a)()),ft=Object(d.useRef)(!1),yt=Object(d.useRef)(),Re=Object(d.useRef)(),mt=Object(d.useRef)(),Bt=Object(d.useRef)(),Dt=Object(d.useRef)(),lt=function(){var _t=Object(w.a)(_.a.mark(function wt(){var Vt,kt;return _.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(be.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ke.current}});case 2:kt=$t.sent,kt!=null&&(Vt=kt.attachments)!==null&&Vt!==void 0&&Vt.length&&(console.log("cm:",te,Re),kt.attachments.map(function(sn){sn.content_type.indexOf("image")>-1?te.replaceSelection("![,](/api/attachments/".concat(sn.id,"?type=").concat(sn.content_type,")")):sn.content_type.indexOf("video")>-1?te.replaceSelection('')):sn.content_type.indexOf("pdf")>-1?te.replaceSelection('').concat(sn.name,"")):te.replaceSelection("[".concat(sn.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(sn.id,"?type=").concat(sn.content_type,")"))}));case 4:case"end":return $t.stop()}},wt)}));return function(){return _t.apply(this,arguments)}}();Object(d.useEffect)(function(){In(S),te==null||te.setValue(S)},[S]),Object(d.useEffect)(function(){ua==null||ua(zn)},[zn]),Object(d.useEffect)(function(){if(Re.current){var _t=f.a.fromTextArea(Re.current,{mode:it,lineNumbers:!ge,lineWrapping:!0,value:qt,autoCloseTags:!0,autoCloseBrackets:!0});Ct&&_t.focus();function wt(Vt,kt){if(Dr){kt.preventDefault();return}var jn=kt.clipboardData;if(jn){var $t=jn.types.toString(),sn=jn.items;if($t==="Files"||jn.types.indexOf("Files")>-1){if(kt.preventDefault(),it=="stex")return;try{var Dn,Ln=sn[1];((Dn=sn[0])===null||Dn===void 0?void 0:Dn.kind)==="file"&&(Ln=sn[0]);var cn=Ln.getAsFile(),qn=cn.name.split(".").pop();we(cn,function(Pn){if(Pn.id){var yr,zr,gr;(cn==null||((yr=cn.type)===null||yr===void 0)?void 0:yr.indexOf("image"))>-1?_t.replaceSelection("![,](/api/attachments/".concat(Pn.id,"?type=").concat(Pn.content_type,")")):(cn==null||((zr=cn.type)===null||zr===void 0)?void 0:zr.indexOf("video"))>-1?_t.replaceSelection('')):(cn==null||((gr=cn.type)===null||gr===void 0)?void 0:gr.indexOf("pdf"))>-1?_t.replaceSelection('').concat(cn.name,"")):he.includes(qn)?_t.replaceSelection('').concat(cn.name,"")):_t.replaceSelection("[".concat(cn.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(Pn.id,"?type=").concat(Pn.content_type,")"))}else(Pn==null?void 0:Pn.status)===401&&(document.location.href="/user/login")})}catch(Pn){O.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return _t.on("paste",wt),_t.on("dragleave",function(Vt,kt){mt.current.classList.remove("mouse-hover-md")}),_t.on("dragover",function(Vt,kt){mt.current.classList.add("mouse-hover-md")}),_t.on("drop",function(Vt,kt){mt.current.classList.add("mouse-hover-md");var jn;if(jn=kt.dataTransfer.files,jn.length>0){kt.preventDefault(),kt.stopPropagation();for(var $t=function(Ln){var cn=jn[Ln],qn=cn.name.split(".").pop();we(cn,function(Pn){if(Pn.id){var yr,zr,gr;(cn==null||((yr=cn.type)===null||yr===void 0)?void 0:yr.indexOf("image"))>-1?_t.replaceSelection("![,](/api/attachments/".concat(Pn.id,"?type=").concat(Pn.content_type,")")):(cn==null||((zr=cn.type)===null||zr===void 0)?void 0:zr.indexOf("video"))>-1?_t.replaceSelection('')):(cn==null||((gr=cn.type)===null||gr===void 0)?void 0:gr.indexOf("pdf"))>-1?_t.replaceSelection('').concat(cn.name,"")):he.includes(qn)?_t.replaceSelection('').concat(cn.name,"")):_t.replaceSelection("[".concat(cn.name,"](").concat(u.a.API_SERVER,"/api/attachments/").concat(Pn.id,"?type=").concat(Pn.content_type,")"))}else(Pn==null?void 0:Pn.status)===401&&(document.location.href="/user/login")})},sn=0;sn0||sn.target.offsetWidth>0)&&(At(),te.setSize("100%","100%"),te.refresh())}}catch(Dn){jn.e(Dn)}finally{jn.f()}});return Vt.observe(Re.current.parentElement),Vt}if(te){var wt=_t();return function(){wt.unobserve(Re.current.parentElement)}}},[te,At]),Object(d.useEffect)(function(){if(te){for(var _t=[],wt=function(){var sn=kt[Vt];jn=Object(B.a)(sn,2);var Dn=jn[0],Ln=jn[1],cn=Object(C.a)({},Dn,function(){Lt(Ln)});_t.push(cn),te.addKeyMap(cn)},Vt=0,kt=Object.entries(Ce);Vt0){var _t=new Date().getTime(),wt=window.sessionStorage.getItem(Ot);_t>=Pr+st&&(!wt||wt!==yn)&&(window.sessionStorage.setItem(Ot,yn),ot(!0))}},st),Object(d.useEffect)(function(){Qt(dt)},[te,dt]),Object(d.useEffect)(function(){te&&(Ct&&te.focus())},[te,Ct]),Object(d.useEffect)(function(){if(nn&&te){var _t=te.getScrollerElement();function wt(Vt){var kt=Vt.target;if(Dt.current){var jn=kt.scrollTop/kt.scrollHeight;Dt.current.scrollTop=Dt.current.scrollHeight*jn}}return _t.addEventListener("scroll",wt),function(){_t.removeEventListener("scroll",wt)}}},[te,nn]),Object(d.useEffect)(function(){if(te&&Zr){function _t(wt,Vt){Zr(wt,Vt)}return te.on("beforeChange",_t),function(){te.off("beforeChange",_t)}}},[te,Zr]),Object(d.useEffect)(function(){if(te&&Br){function _t(){Br(te.getValue())}return te.on("blur",_t),function(){te.off("blur",_t)}}},[te,Br]),Object(d.useEffect)(function(){if(te){function _t(wt){var Vt=wt.getValue();In(Vt),Lr(new Date().getTime()),wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pn&&pn(Vt)}return te.on("change",_t),function(){te.off("change",_t)}}},[te,pn]),Object(d.useEffect)(function(){te&&(qt==null?(te.setValue(""),In("")):qt!==te.getValue()&&(te.setValue(qt),In(qt),te.setCursor(te.lineCount(),0)))},[te,qt]);var Lt=Object(d.useCallback)(function(_t){var wt=te.getCursor(),Vt=te.getSelection(),kt=Vt.split(` +`);switch(_t){case"bold":return te.replaceSelection("**"+Vt+"**"),Vt===""&&te.setCursor(wt.line,wt.ch+2),te.focus();case"italic":return te.replaceSelection("*"+Vt+"*"),Vt===""&&te.setCursor(wt.line,wt.ch+1),te.focus();case"code":return te.replaceSelection("`"+Vt+"`"),Vt===""&&te.setCursor(wt.line,wt.ch+1),te.focus();case"inline-latex":return te.replaceSelection("`$$"+Vt+"$$`"),Vt===""&&te.setCursor(wt.line,wt.ch+3),te.focus();case"latex":return te.replaceSelection("```latex\n"+Vt+"\n```"),te.setCursor(wt.line+1,Vt.length+1),te.focus();case"line-break":return te.replaceSelection(`
              +`),te.focus();case"list-ul":return Vt===""?te.replaceSelection("- "+Vt):te.replaceSelection(kt.map(function(jn){return jn===""?"":"- ".concat(jn)}).join(` +`)),te.focus();case"list-ol":return Vt===""?te.replaceSelection("1. "+Vt):te.replaceSelection(kt.map(function(jn,$t){return jn===""?"":"".concat($t+1,". ").concat(jn)}).join(` +`)),te.focus();case"add-null-ch":return Vt===""&&te.setCursor(wt.line,wt.ch+1),te.replaceSelection(Et),te.focus();case"inster-template-1":return Vt===""&&te.setCursor(wt.line,wt.ch),te.replaceSelection(Fe),te.focus();case"eraser":return te.setValue(""),te.focus();case"trigger-watch":return Qt(!nn),te.focus();case"trigger-full-screen":return cr(!zn),te.focus();case ze:Xn(ze);return;case Ut:Xn(Ut);return;case Tt:Xn(Tt);return;case It:Xn(It);return;default:throw new Error}},[te,nn,zn]),Yt=Object(d.useCallback)(function(_t){Xn("");switch(Zn){case ze:var wt=_t.title,Vt=_t.link;return te.replaceSelection("[".concat(wt,"](").concat(Vt,")")),te.focus();case Ut:var kt=_t.language,jn=_t.content;return te.replaceSelection(["```"+kt,jn,"```"].join(` +`)),te.focus();case Tt:var $t=_t.src,sn=_t.alt,Dn=_t.name;return $t.indexOf("type=image")>-1?te.replaceSelection("![ ".concat(sn||""," ]( ").concat($t,' "').concat(sn||"",'" )')):$t.indexOf("type=application/pdf")>-1?te.replaceSelection('').concat(Dn,"")):te.replaceSelection('').concat(Dn,"")),te.focus();case It:for(var Ln=_t.row,cn=_t.col,qn=_t.align,Pn=` +`,yr=0;yr300&&(Dn=300);var Ln=xt+Dn+"px";ee(Ln)}}return _t.addEventListener("mousedown",kt),document.addEventListener("mousemove",$t),document.addEventListener("mouseup",jn),function(){_t.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",$t),document.removeEventListener("mouseup",jn)}}},[te,Bt]),Object(d.useEffect)(function(){ee(xt)},[xt]);var Wt=Se(Ht),dn=Se(Or),Bn={width:Wt,height:dn},En=Object(d.useMemo)(function(){if(Pr){var _t=new Date(Pr),wt=_t.getHours(),Vt=_t.getMinutes(),kt=_t.getSeconds();return wt=wt<10?"0"+wt:wt,Vt=Vt<10?"0"+Vt:Vt,kt=kt<10?"0"+kt:kt,"".concat(wt,":").concat(Vt,":").concat(kt)}return 0},[Pr]);function Cn(){window.sessionStorage.removeItem(Ot),ot(!1),Lr(0)}function Kn(){ot(!1),Lr(0),te.setValue(window.sessionStorage.getItem(Ot))}function Wn(_t,wt){var Vt=te.getValue();Vt=Vt.replace(_t,wt),In(Vt),te==null||te.setValue(Vt)}return v.a.createElement(d.Fragment,null,v.a.createElement("div",{className:"markdown-editor-wrapper",ref:mt},v.a.createElement("div",{className:"markdown-editor-container ".concat(On," ").concat(nn?"on-preview":""," ").concat(ge?"mini":""," ").concat(zn?"full-screen":""),style:Bn},v.a.createElement(A,{insertTemp:en,watch:nn,fullScreen:zn,showNullButton:Tn,onActionCallback:Lt,hidetoolBar:ta,uuid:ke.current,setOpenPhones:function(){ft.current=!0}}),v.a.createElement("div",{className:"markdown-editor-body"},v.a.createElement("div",{className:"codemirror-container"},v.a.createElement("textarea",{ref:Re,placeholder:xr})),nn?v.a.createElement("div",{ref:Dt,className:"preview-container"},it==="stex"&&v.a.createElement(L,{value:yn}),it!=="stex"&&v.a.createElement(y.a,{edit:!0,value:yn,replaces:Wn})):null))),xn?v.a.createElement("a",{ref:Bt,className:"editor-resize"}):null,v.a.createElement(j.a,null,Le[Zn]?v.a.createElement(z.a,{centered:!0,title:Le[Zn],visible:!0,onCancel:Pt,footer:null},Ie):null))}},QDVR:function(Gt,Ee,k){"use strict";k.d(Ee,"e",function(){return z}),k.d(Ee,"d",function(){return N}),k.d(Ee,"c",function(){return B}),k.d(Ee,"b",function(){return C}),k.d(Ee,"a",function(){return _});var ne=function(){var d=function(v,b){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,n){f.__proto__=n}||function(f,n){for(var p in n)n.hasOwnProperty(p)&&(f[p]=n[p])},d(v,b)};return function(v,b){d(v,b);function f(){this.constructor=v}v.prototype=b===null?Object.create(b):(f.prototype=b.prototype,new f)}}();function z(d){var v=[];return d.forEach(function(b){return v.push(b)}),v}function N(d){var v=[];return d.forEach(function(b,f){return v.push(f)}),v}var K=function(){function d(){this._value="",this._pos=0}return d.prototype.reset=function(v){return this._value=v,this._pos=0,this},d.prototype.next=function(){return this._pos+=1,this},d.prototype.hasNext=function(){return this._pos0)n.left||(n.left=new w,n.left.segment=f.value()),n=n.left;else if(p<0)n.right||(n.right=new w,n.right.segment=f.value()),n=n.right;else if(f.hasNext())f.next(),n.mid||(n.mid=new w,n.mid.segment=f.value()),n=n.mid;else break}var o=n.value;return n.value=b,n.key=v,o},d.prototype.get=function(v){for(var b=this._iter.reset(v),f=this._root;f;){var n=b.cmp(f.segment);if(n>0)f=f.left;else if(n<0)f=f.right;else if(b.hasNext())b.next(),f=f.mid;else break}return f?f.value:void 0},d.prototype.findSubstr=function(v){for(var b=this._iter.reset(v),f=this._root,n=void 0;f;){var p=b.cmp(f.segment);if(p>0)f=f.left;else if(p<0)f=f.right;else if(b.hasNext())b.next(),n=f.value||n,f=f.mid;else break}return f&&f.value||n},d.prototype.forEach=function(v){this._forEach(this._root,v)},d.prototype._forEach=function(v,b){v&&(this._forEach(v.left,b),v.value&&b(v.value,v.key),this._forEach(v.mid,b),this._forEach(v.right,b))},d}(),C=function(){function d(){this.map=new Map,this.ignoreCase=!1}return d.prototype.set=function(v,b){this.map.set(this.toKey(v),b)},d.prototype.get=function(v){return this.map.get(this.toKey(v))},d.prototype.toKey=function(v){var b=v.toString();return this.ignoreCase&&(b=b.toLowerCase()),b},d}(),P=function(){function d(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return d.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(d.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),d.prototype.get=function(v,b){b===void 0&&(b=0);var f=this._map.get(v);return f?(b!==0&&this.touch(f,b),f.value):void 0},d.prototype.set=function(v,b,f){f===void 0&&(f=0);var n=this._map.get(v);if(n)n.value=b,f!==0&&this.touch(n,f);else{n={key:v,value:b,next:void 0,previous:void 0};switch(f){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(v,n),this._size++}},d.prototype.delete=function(v){return!!this.remove(v)},d.prototype.remove=function(v){var b=this._map.get(v);return b?(this._map.delete(v),this.removeItem(b),this._size--,b.value):void 0},d.prototype.forEach=function(v,b){for(var f=this._head;f;)b?v.bind(b)(f.value,f.key,this):v(f.value,f.key,this),f=f.next},d.prototype.trimOld=function(v){if(v>=this.size)return;if(v===0){this.clear();return}for(var b=this._head,f=this.size;b&&f>v;)this._map.delete(b.key),b=b.next,f--;this._head=b,this._size=f,b&&(b.previous=void 0)},d.prototype.addItemFirst=function(v){if(!this._head&&!this._tail)this._tail=v;else if(this._head)v.next=this._head,this._head.previous=v;else throw new Error("Invalid list");this._head=v},d.prototype.addItemLast=function(v){if(!this._head&&!this._tail)this._head=v;else if(this._tail)v.previous=this._tail,this._tail.next=v;else throw new Error("Invalid list");this._tail=v},d.prototype.removeItem=function(v){if(v===this._head&&v===this._tail)this._head=void 0,this._tail=void 0;else if(v===this._head){if(!v.next)throw new Error("Invalid list");v.next.previous=void 0,this._head=v.next}else if(v===this._tail){if(!v.previous)throw new Error("Invalid list");v.previous.next=void 0,this._tail=v.previous}else{var b=v.next,f=v.previous;if(!b||!f)throw new Error("Invalid list");b.previous=f,f.next=b}v.next=void 0,v.previous=void 0},d.prototype.touch=function(v,b){if(!this._head||!this._tail)throw new Error("Invalid list");if(b!==1&&b!==2)return;if(b===1){if(v===this._head)return;var f=v.next,n=v.previous;v===this._tail?(n.next=void 0,this._tail=n):(f.previous=n,n.next=f),v.previous=void 0,v.next=this._head,this._head.previous=v,this._head=v}else if(b===2){if(v===this._tail)return;var f=v.next,n=v.previous;v===this._head?(f.previous=void 0,this._head=f):(f.previous=n,n.next=f),v.next=void 0,v.previous=this._tail,this._tail.next=v,this._tail=v}},d.prototype.toJSON=function(){var v=[];return this.forEach(function(b,f){v.push([f,b])}),v},d}(),_=function(d){ne(v,d);function v(b,f){f===void 0&&(f=1);var n=d.call(this)||this;return n._limit=b,n._ratio=Math.min(Math.max(0,f),1),n}return v.prototype.get=function(b){return d.prototype.get.call(this,b,2)},v.prototype.peek=function(b){return d.prototype.get.call(this,b,0)},v.prototype.set=function(b,f){d.prototype.set.call(this,b,f,2),this.checkTrim()},v.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},v}(P)},RotF:function(Gt,Ee,k){Gt.exports=k("LSTS")},"SA+Z":function(Gt,Ee,k){var ne=k("wTVA"),z=k("EbDI"),N=k("ZhPi"),K=k("wkBT");function O(w){return ne(w)||z(w)||N(w)||K()}Gt.exports=O,Gt.exports.__esModule=!0,Gt.exports.default=Gt.exports},SJMd:function(Gt,Ee){/** * @license * Copyright (C) 2006 Google Inc. * @@ -307,35 +307,35 @@ Please report this to https://github.com/markedjs/marked.`,Se.silent)return"

              A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var k,ne,z,N=!1,K,O;window.PR_SHOULD_USE_CONTINUATION=!0;var w,B;(function(){var C=window,P=["break,continue,do,else,for,if,return,while"],_=[P,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],d=[_,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],v=[d,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],b=[d,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],f=[d,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],n="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",p=[d,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",r=[P,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[P,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],l=[P,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[v,f,b,p,o,r,s,l],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,y="str",L="kwd",R="com",g="typ",m="lit",c="pun",u="pln",D="tag",T="dec",A="src",j="atn",U="atv",H="nocode",V="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function I(X){for(var G=0,Y=!1,ue=!1,be=0,We=X.length;be122||(ce<65||Oe>90||pt.push([Math.max(65,Oe)|32,Math.min(ce,90)|32]),ce<97||Oe>122||pt.push([Math.max(97,Oe)&~32,Math.min(ce,122)&~32]))}}pt.sort(function(at,et){return at[0]-et[0]||et[1]-at[1]});for(var he=[],Ce=[],Et=0;EtLe[0]&&(Le[1]+1>Le[0]&&st.push("-"),st.push(It(Le[1])))}return st.push("]"),st.join("")}function qt(nt){for(var He=nt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),pt=He.length,kt=[],st=0,Et=0;st=2&&Oe==="["?He[st]=Nt(Fe):Oe!=="\\"&&(He[st]=Fe.replace(/[a-zA-Z]/g,function(Ce){var Le=Ce.charCodeAt(0);return"["+String.fromCharCode(Le&~32,Le|32)+"]"}))}return He.join("")}for(var hn=[],be=0,We=X.length;be=0;)Y[hn.charAt(nt)]=qt;var He=qt[1],pt=""+He;Ut.hasOwnProperty(pt)||(Tt.push(He),Ut[pt]=null)}Tt.push(/[\0-\uffff]/),ue=I(Tt)})();var be=G.length,We=function(ze){for(var Tt=ze.sourceCode,Ut=ze.basePos,It=ze.sourceNode,Nt=[Ut,u],qt=0,hn=Tt.match(ue)||[],nt={},He=0,pt=hn.length;He=5&&st.substring(0,5)==="lang-",Fe&&!(Et&&typeof Et[1]=="string")&&(Fe=!1,st=A),Fe||(nt[kt]=st)}var ce=qt;if(qt+=kt.length,!Fe)Nt.push(Ut+ce,st);else{var he=Et[1],Ce=kt.indexOf(he),Le=Ce+he.length;Et[2]&&(Le=kt.length-Et[2].length,Ce=Le-he.length);var at=st.substring(5);Q(It,Ut+ce,kt.substring(0,Ce),We,Nt),Q(It,Ut+ce+Ce,he,pe(at,he),Nt),Q(It,Ut+ce+Le,kt.substring(Le),We,Nt)}}ze.decorations=Nt};return We}function Ze(X){var G=[],Y=[];X.tripleQuotedStrings?G.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):X.multiLineStrings?G.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):G.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),X.verbatimStrings&&Y.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ue=X.hashComments;ue&&(X.cStyleComments?(ue>1?G.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):G.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([y,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):G.push([R,/^#[^\r\n]*/,null,"#"])),X.cStyleComments&&(Y.push([R,/^\/\/[^\r\n]*/,null]),Y.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var be=X.regexLiterals;if(be){var We=be>1?"":` + */var k,ne,z,N=!1,K,O;window.PR_SHOULD_USE_CONTINUATION=!0;var w,B;(function(){var C=window,P=["break,continue,do,else,for,if,return,while"],_=[P,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],d=[_,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],v=[d,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],b=[d,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],f=[d,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],n="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",p=[d,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",r=[P,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[P,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],l=[P,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[v,f,b,p,o,r,s,l],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,y="str",L="kwd",R="com",g="typ",m="lit",c="pun",u="pln",D="tag",T="dec",A="src",j="atn",U="atv",H="nocode",V="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function I(X){for(var G=0,Y=!1,ue=!1,be=0,We=X.length;be122||(ce<65||Oe>90||pt.push([Math.max(65,Oe)|32,Math.min(ce,90)|32]),ce<97||Oe>122||pt.push([Math.max(97,Oe)&~32,Math.min(ce,122)&~32]))}}pt.sort(function(at,et){return at[0]-et[0]||et[1]-at[1]});for(var he=[],Ce=[],Et=0;EtLe[0]&&(Le[1]+1>Le[0]&&st.push("-"),st.push(It(Le[1])))}return st.push("]"),st.join("")}function Zt(nt){for(var He=nt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),pt=He.length,Mt=[],st=0,Et=0;st=2&&Oe==="["?He[st]=Nt(Fe):Oe!=="\\"&&(He[st]=Fe.replace(/[a-zA-Z]/g,function(Ce){var Le=Ce.charCodeAt(0);return"["+String.fromCharCode(Le&~32,Le|32)+"]"}))}return He.join("")}for(var fn=[],be=0,We=X.length;be=0;)Y[fn.charAt(nt)]=Zt;var He=Zt[1],pt=""+He;Ut.hasOwnProperty(pt)||(Tt.push(He),Ut[pt]=null)}Tt.push(/[\0-\uffff]/),ue=I(Tt)})();var be=G.length,We=function(ze){for(var Tt=ze.sourceCode,Ut=ze.basePos,It=ze.sourceNode,Nt=[Ut,u],Zt=0,fn=Tt.match(ue)||[],nt={},He=0,pt=fn.length;He=5&&st.substring(0,5)==="lang-",Fe&&!(Et&&typeof Et[1]=="string")&&(Fe=!1,st=A),Fe||(nt[Mt]=st)}var ce=Zt;if(Zt+=Mt.length,!Fe)Nt.push(Ut+ce,st);else{var he=Et[1],Ce=Mt.indexOf(he),Le=Ce+he.length;Et[2]&&(Le=Mt.length-Et[2].length,Ce=Le-he.length);var at=st.substring(5);Q(It,Ut+ce,Mt.substring(0,Ce),We,Nt),Q(It,Ut+ce+Ce,he,pe(at,he),Nt),Q(It,Ut+ce+Le,Mt.substring(Le),We,Nt)}}ze.decorations=Nt};return We}function Ze(X){var G=[],Y=[];X.tripleQuotedStrings?G.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):X.multiLineStrings?G.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):G.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),X.verbatimStrings&&Y.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ue=X.hashComments;ue&&(X.cStyleComments?(ue>1?G.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):G.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([y,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):G.push([R,/^#[^\r\n]*/,null,"#"])),X.cStyleComments&&(Y.push([R,/^\/\/[^\r\n]*/,null]),Y.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var be=X.regexLiterals;if(be){var We=be>1?"":` \r`,ze=We?".":"[\\S\\s]",Tt="/(?=[^/*"+We+"])(?:[^/\\x5B\\x5C"+We+"]|\\x5C"+ze+"|\\x5B(?:[^\\x5C\\x5D"+We+"]|\\x5C"+ze+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+V+"("+Tt+")")])}var Ut=X.types;Ut&&Y.push([g,Ut]);var It=(""+X.keywords).replace(/^ | $/g,"");It.length&&Y.push([L,new RegExp("^(?:"+It.replace(/[\s,]+/g,"|")+")\\b"),null]),G.push([u,/^\s+/,null,` \r - \xA0`]);var Nt="^.[^\\s\\w.$@'\"`/\\\\]*";return X.regexLiterals&&(Nt+="(?!s*/)"),Y.push([m,/^@[a-z_$][a-z_$@0-9]*/i,null],[g,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[u,/^[a-z_$][a-z_$@0-9]*/i,null],[m,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[u,/^\\[\s\S]?/,null],[c,new RegExp(Nt),null]),xe(G,Y)}var Me=Ze({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Be(X,G,Y){for(var ue=/(?:^|\s)nocode(?:\s|$)/,be=/\r\n?|\n/,We=X.ownerDocument,ze=We.createElement("li");X.firstChild;)ze.appendChild(X.firstChild);var Tt=[ze];function Ut(He){var pt=He.nodeType;if(pt==1&&!ue.test(He.className))if(He.nodeName==="br")It(He),He.parentNode&&He.parentNode.removeChild(He);else for(var kt=He.firstChild;kt;kt=kt.nextSibling)Ut(kt);else if((pt==3||pt==4)&&Y){var st=He.nodeValue,Et=st.match(be);if(Et){var Fe=st.substring(0,Et.index);He.nodeValue=Fe;var Se=st.substring(Et.index+Et[0].length);if(Se){var Oe=He.parentNode;Oe.insertBefore(We.createTextNode(Se),He.nextSibling)}It(He),Fe||He.parentNode.removeChild(He)}}}function It(He){for(;!He.nextSibling;)if(He=He.parentNode,!He)return;function pt(Et,Fe){var Se=Fe?Et.cloneNode(!1):Et,Oe=Et.parentNode;if(Oe){var ce=pt(Oe,1),he=Et.nextSibling;ce.appendChild(Se);for(var Ce=he;Ce;Ce=he)he=Ce.nextSibling,ce.appendChild(Ce)}return Se}for(var kt=pt(He.nextSibling,0),st;(st=kt.parentNode)&&st.nodeType===1;)kt=st;Tt.push(kt)}for(var Nt=0;Nt=Oe&&(Ut+=2),We>=ce&&(qt+=2)}}finally{st&&(st.style.display=Et)}}var Ve={};function De(X,G){for(var Y=G.length;--Y>=0;){var ue=G[Y];Ve.hasOwnProperty(ue)?C.console&&console.warn("cannot override language handler %s",ue):Ve[ue]=X}}function pe(X,G){return X&&Ve.hasOwnProperty(X)||(X=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[c,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),De(xe([[u,/^[\s]+/,null,` \r -`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[j,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[c,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),De(xe([],[[U,/^[\s\S]+/]]),["uq.val"]),De(Ze({keywords:v,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),De(Ze({keywords:"null,true,false"}),["json"]),De(Ze({keywords:f,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),De(Ze({keywords:b,cStyleComments:!0}),["java"]),De(Ze({keywords:l,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),De(Ze({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),De(Ze({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),De(Ze({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),De(Ze({keywords:p,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),De(Ze({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),De(xe([],[[y,/^[\s\S]+/]]),["regex"]);function se(X){var G=X.langExtension;try{var Y=W(X.sourceNode,X.pre),ue=Y.sourceCode;X.sourceCode=ue,X.spans=Y.spans,X.basePos=0,pe(G,ue)(X),qe(X)}catch(be){C.console&&console.log(be&&be.stack||be)}}function we(X,G,Y){var ue=Y||!1,be=G||null,We=document.createElement("div");We.innerHTML="

              "+X+"
              ",We=We.firstChild,ue&&Be(We,ue,!0);var ze={langExtension:be,numberLines:ue,sourceNode:We,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return se(ze),We.innerHTML}function ve(X,G){var Y=G||document.body,ue=Y.ownerDocument||document;function be(Se){return Y.getElementsByTagName(Se)}for(var We=[be("pre"),be("code"),be("xmp")],ze=[],Tt=0;Tt=0){var l=r.split("!=");return C.create(l[0].trim(),this._deserializeValue(l[1],s))}if(r.indexOf("==")>=0){var l=r.split("==");return B.create(l[0].trim(),this._deserializeValue(l[1],s))}if(r.indexOf("=~")>=0){var l=r.split("=~");return _.create(l[0].trim(),this._deserializeRegexValue(l[1],s))}return/^\!\s*/.test(r)?P.create(r.substr(1).trim()):w.create(r)},o._deserializeValue=function(r,s){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var l=/^'([^']*)'$/.exec(r);return l?l[1].trim():r},o._deserializeRegexValue=function(r,s){if(Object(ne.x)(r)){if(s)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var l=r.indexOf("/"),x=r.lastIndexOf("/");if(l===x||l<0){if(s)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(l+1,x),y=r[x+1]==="i"?"i":"";try{return new RegExp(E,y)}catch(L){if(s)throw new Error("bad regexp-value '"+r+"', parse error: "+L);return console.warn("bad regexp-value '"+r+"', parse error: "+L),null}},o}();function O(o,r){var s=o.getType(),l=r.getType();if(s!==l)return s-l;switch(s){case 1:return o.cmp(r);case 2:return o.cmp(r);case 3:return o.cmp(r);case 4:return o.cmp(r);case 6:return o.cmp(r);case 7:return o.cmp(r);case 5:return o.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var w=function(){function o(r){this.key=r}return o.create=function(r){return new o(r)},o.prototype.getType=function(){return 1},o.prototype.cmp=function(r){return this.keyr.key?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key:!1},o.prototype.evaluate=function(r){return!!r.getValue(this.key)},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return P.create(this.key)},o}(),B=function(){function o(r,s){this.key=r,this.value=s}return o.create=function(r,s){return typeof s=="boolean"?s?w.create(r):P.create(r):new o(r,s)},o.prototype.getType=function(){return 3},o.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key&&this.value===r.value:!1},o.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return C.create(this.key,this.value)},o}(),C=function(){function o(r,s){this.key=r,this.value=s}return o.create=function(r,s){return typeof s=="boolean"?s?P.create(r):w.create(r):new o(r,s)},o.prototype.getType=function(){return 4},o.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key&&this.value===r.value:!1},o.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return B.create(this.key,this.value)},o}(),P=function(){function o(r){this.key=r}return o.create=function(r){return new o(r)},o.prototype.getType=function(){return 2},o.prototype.cmp=function(r){return this.keyr.key?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key:!1},o.prototype.evaluate=function(r){return!r.getValue(this.key)},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return w.create(this.key)},o}(),_=function(){function o(r,s){this.key=r,this.regexp=s}return o.create=function(r,s){return new o(r,s)},o.prototype.getType=function(){return 6},o.prototype.cmp=function(r){if(this.keyr.key)return 1;var s=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return sl?1:0},o.prototype.equals=function(r){if(r instanceof o){var s=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return this.key===r.key&&s===l}return!1},o.prototype.evaluate=function(r){var s=r.getValue(this.key);return this.regexp?this.regexp.test(s):!1},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return d.create(this)},o}(),d=function(){function o(r){this._actual=r}return o.create=function(r){return new o(r)},o.prototype.getType=function(){return 7},o.prototype.cmp=function(r){return this._actual.cmp(r._actual)},o.prototype.equals=function(r){return r instanceof o?this._actual.equals(r._actual):!1},o.prototype.evaluate=function(r){return!this._actual.evaluate(r)},o.prototype.keys=function(){return this._actual.keys()},o.prototype.negate=function(){return this._actual},o}(),v=function(){function o(r){this.expr=r}return o.create=function(r){var s=o._normalizeArr(r);return s.length===0?void 0:s.length===1?s[0]:new o(s)},o.prototype.getType=function(){return 5},o.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var s=0,l=this.expr.length;s1;){for(var y=r.shift(),L=r.shift(),R=[],g=0,m=E(y);g=15&&(v=!1,P=!0);var y=s&&(_||v&&(E==null||E<12.11)),L=N||B&&C>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var g=function(e,t){var i=e.className,a=R(t).exec(i);if(a){var h=i.slice(a.index+a[0].length);e.className=i.slice(0,a.index)+(h?a[1]+h:"")}};function m(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function c(e,t){return m(e).appendChild(t)}function u(e,t,i,a){var h=document.createElement(e);if(i&&(h.className=i),a&&(h.style.cssText=a),typeof t=="string")h.appendChild(document.createTextNode(t));else if(t)for(var F=0;F=t)return Z+(t-F);Z+=re-F,Z+=i-Z%i,F=re+1}}var ie=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};ie.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ie.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return a+Math.min(Z,t-h);if(h+=F-a,h+=i-h%i,a=F+1,h>=t)return a}}var De=[""];function pe(e){for(;De.length<=e;)De.push(se(De)+" ");return De[e]}function se(e){return e[e.length-1]}function we(e,t){for(var i=[],a=0;a"\x80"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function Y(e,t){return t?t.source.indexOf("\\w")>-1&&G(e)?!0:t.test(e):G(e)}function ue(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function We(e){return e.charCodeAt(0)>=768&&be.test(e)}function ze(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var h=(t+i)/2,F=a<0?Math.ceil(h):Math.floor(h);if(F==t)return e(F)?t:i;e(F)?i=F:t=F+a}}function Ut(e,t,i,a){if(!e)return a(t,i,"ltr",0);for(var h=!1,F=0;Ft||t==i&&Z.to==t)&&(a(Math.max(Z.from,t),Math.min(Z.to,i),Z.level==1?"rtl":"ltr",F),h=!0)}h||a(t,i,"ltr")}var It=null;function Nt(e,t,i){var a;It=null;for(var h=0;ht)return h;F.to==t&&(F.from!=F.to&&i=="before"?a=h:It=h),F.from==t&&(F.from!=F.to&&i!="before"?a=h:It=h)}return a!=null?a:It}var qt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(de){return de<=247?e.charAt(de):1424<=de&&de<=1524?"R":1536<=de&&de<=1785?t.charAt(de-1536):1774<=de&&de<=2220?"r":8192<=de&&de<=8203?"w":de==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,F=/[LRr]/,Z=/[Lb1n]/,re=/[1n]/;function oe(de,Ue,Je){this.level=de,this.from=Ue,this.to=Je}return function(de,Ue){var Je=Ue=="ltr"?"L":"R";if(de.length==0||Ue=="ltr"&&!a.test(de))return!1;for(var gt=de.length,ht=[],Gt=0;Gt-1&&(a[t]=h.slice(0,F).concat(h.slice(F+1)))}}}function st(e,t){var i=pt(e,t);if(!i.length)return;for(var a=Array.prototype.slice.call(arguments,2),h=0;h0}function Oe(e){e.prototype.on=function(t,i){He(this,t,i)},e.prototype.off=function(t,i){kt(this,t,i)}}function ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function he(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Le(e){ce(e),he(e)}function at(e){return e.target||e.srcElement}function et(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var Rt=function(){if(B&&C<9)return!1;var e=u("div");return"draggable"in e||"dragDrop"in e}(),en;function pn(e){if(en==null){var t=u("span","\u200B");c(e,u("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(en=t.offsetWidth<=1&&t.offsetHeight>2&&!(B&&C<8))}var i=en?u("span","\u200B"):u("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var on;function Kt(e){if(on!=null)return on;var t=c(e,document.createTextNode("A\u062EA")),i=T(t,0,1).getBoundingClientRect(),a=T(t,1,2).getBoundingClientRect();return m(e),!i||i.left==i.right?!1:on=a.right-i.right<3}var bt=` + \xA0`]);var Nt="^.[^\\s\\w.$@'\"`/\\\\]*";return X.regexLiterals&&(Nt+="(?!s*/)"),Y.push([m,/^@[a-z_$][a-z_$@0-9]*/i,null],[g,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[u,/^[a-z_$][a-z_$@0-9]*/i,null],[m,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[u,/^\\[\s\S]?/,null],[c,new RegExp(Nt),null]),xe(G,Y)}var Me=Ze({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Be(X,G,Y){for(var ue=/(?:^|\s)nocode(?:\s|$)/,be=/\r\n?|\n/,We=X.ownerDocument,ze=We.createElement("li");X.firstChild;)ze.appendChild(X.firstChild);var Tt=[ze];function Ut(He){var pt=He.nodeType;if(pt==1&&!ue.test(He.className))if(He.nodeName==="br")It(He),He.parentNode&&He.parentNode.removeChild(He);else for(var Mt=He.firstChild;Mt;Mt=Mt.nextSibling)Ut(Mt);else if((pt==3||pt==4)&&Y){var st=He.nodeValue,Et=st.match(be);if(Et){var Fe=st.substring(0,Et.index);He.nodeValue=Fe;var Se=st.substring(Et.index+Et[0].length);if(Se){var Oe=He.parentNode;Oe.insertBefore(We.createTextNode(Se),He.nextSibling)}It(He),Fe||He.parentNode.removeChild(He)}}}function It(He){for(;!He.nextSibling;)if(He=He.parentNode,!He)return;function pt(Et,Fe){var Se=Fe?Et.cloneNode(!1):Et,Oe=Et.parentNode;if(Oe){var ce=pt(Oe,1),he=Et.nextSibling;ce.appendChild(Se);for(var Ce=he;Ce;Ce=he)he=Ce.nextSibling,ce.appendChild(Ce)}return Se}for(var Mt=pt(He.nextSibling,0),st;(st=Mt.parentNode)&&st.nodeType===1;)Mt=st;Tt.push(Mt)}for(var Nt=0;Nt=Oe&&(Ut+=2),We>=ce&&(Zt+=2)}}finally{st&&(st.style.display=Et)}}var Ve={};function De(X,G){for(var Y=G.length;--Y>=0;){var ue=G[Y];Ve.hasOwnProperty(ue)?C.console&&console.warn("cannot override language handler %s",ue):Ve[ue]=X}}function pe(X,G){return X&&Ve.hasOwnProperty(X)||(X=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[c,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),De(xe([[u,/^[\s]+/,null,` \r +`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[j,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[c,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),De(xe([],[[U,/^[\s\S]+/]]),["uq.val"]),De(Ze({keywords:v,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),De(Ze({keywords:"null,true,false"}),["json"]),De(Ze({keywords:f,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),De(Ze({keywords:b,cStyleComments:!0}),["java"]),De(Ze({keywords:l,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),De(Ze({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),De(Ze({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),De(Ze({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),De(Ze({keywords:p,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),De(Ze({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),De(xe([],[[y,/^[\s\S]+/]]),["regex"]);function se(X){var G=X.langExtension;try{var Y=W(X.sourceNode,X.pre),ue=Y.sourceCode;X.sourceCode=ue,X.spans=Y.spans,X.basePos=0,pe(G,ue)(X),qe(X)}catch(be){C.console&&console.log(be&&be.stack||be)}}function we(X,G,Y){var ue=Y||!1,be=G||null,We=document.createElement("div");We.innerHTML="
              "+X+"
              ",We=We.firstChild,ue&&Be(We,ue,!0);var ze={langExtension:be,numberLines:ue,sourceNode:We,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return se(ze),We.innerHTML}function ve(X,G){var Y=G||document.body,ue=Y.ownerDocument||document;function be(Se){return Y.getElementsByTagName(Se)}for(var We=[be("pre"),be("code"),be("xmp")],ze=[],Tt=0;Tt=0){var l=r.split("!=");return C.create(l[0].trim(),this._deserializeValue(l[1],s))}if(r.indexOf("==")>=0){var l=r.split("==");return B.create(l[0].trim(),this._deserializeValue(l[1],s))}if(r.indexOf("=~")>=0){var l=r.split("=~");return _.create(l[0].trim(),this._deserializeRegexValue(l[1],s))}return/^\!\s*/.test(r)?P.create(r.substr(1).trim()):w.create(r)},o._deserializeValue=function(r,s){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var l=/^'([^']*)'$/.exec(r);return l?l[1].trim():r},o._deserializeRegexValue=function(r,s){if(Object(ne.x)(r)){if(s)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var l=r.indexOf("/"),x=r.lastIndexOf("/");if(l===x||l<0){if(s)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(l+1,x),y=r[x+1]==="i"?"i":"";try{return new RegExp(E,y)}catch(L){if(s)throw new Error("bad regexp-value '"+r+"', parse error: "+L);return console.warn("bad regexp-value '"+r+"', parse error: "+L),null}},o}();function O(o,r){var s=o.getType(),l=r.getType();if(s!==l)return s-l;switch(s){case 1:return o.cmp(r);case 2:return o.cmp(r);case 3:return o.cmp(r);case 4:return o.cmp(r);case 6:return o.cmp(r);case 7:return o.cmp(r);case 5:return o.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var w=function(){function o(r){this.key=r}return o.create=function(r){return new o(r)},o.prototype.getType=function(){return 1},o.prototype.cmp=function(r){return this.keyr.key?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key:!1},o.prototype.evaluate=function(r){return!!r.getValue(this.key)},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return P.create(this.key)},o}(),B=function(){function o(r,s){this.key=r,this.value=s}return o.create=function(r,s){return typeof s=="boolean"?s?w.create(r):P.create(r):new o(r,s)},o.prototype.getType=function(){return 3},o.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key&&this.value===r.value:!1},o.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return C.create(this.key,this.value)},o}(),C=function(){function o(r,s){this.key=r,this.value=s}return o.create=function(r,s){return typeof s=="boolean"?s?P.create(r):w.create(r):new o(r,s)},o.prototype.getType=function(){return 4},o.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key&&this.value===r.value:!1},o.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return B.create(this.key,this.value)},o}(),P=function(){function o(r){this.key=r}return o.create=function(r){return new o(r)},o.prototype.getType=function(){return 2},o.prototype.cmp=function(r){return this.keyr.key?1:0},o.prototype.equals=function(r){return r instanceof o?this.key===r.key:!1},o.prototype.evaluate=function(r){return!r.getValue(this.key)},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return w.create(this.key)},o}(),_=function(){function o(r,s){this.key=r,this.regexp=s}return o.create=function(r,s){return new o(r,s)},o.prototype.getType=function(){return 6},o.prototype.cmp=function(r){if(this.keyr.key)return 1;var s=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return sl?1:0},o.prototype.equals=function(r){if(r instanceof o){var s=this.regexp?this.regexp.source:"",l=r.regexp?r.regexp.source:"";return this.key===r.key&&s===l}return!1},o.prototype.evaluate=function(r){var s=r.getValue(this.key);return this.regexp?this.regexp.test(s):!1},o.prototype.keys=function(){return[this.key]},o.prototype.negate=function(){return d.create(this)},o}(),d=function(){function o(r){this._actual=r}return o.create=function(r){return new o(r)},o.prototype.getType=function(){return 7},o.prototype.cmp=function(r){return this._actual.cmp(r._actual)},o.prototype.equals=function(r){return r instanceof o?this._actual.equals(r._actual):!1},o.prototype.evaluate=function(r){return!this._actual.evaluate(r)},o.prototype.keys=function(){return this._actual.keys()},o.prototype.negate=function(){return this._actual},o}(),v=function(){function o(r){this.expr=r}return o.create=function(r){var s=o._normalizeArr(r);return s.length===0?void 0:s.length===1?s[0]:new o(s)},o.prototype.getType=function(){return 5},o.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var s=0,l=this.expr.length;s1;){for(var y=r.shift(),L=r.shift(),R=[],g=0,m=E(y);g=15&&(v=!1,P=!0);var y=s&&(_||v&&(E==null||E<12.11)),L=N||B&&C>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var g=function(e,t){var i=e.className,a=R(t).exec(i);if(a){var h=i.slice(a.index+a[0].length);e.className=i.slice(0,a.index)+(h?a[1]+h:"")}};function m(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function c(e,t){return m(e).appendChild(t)}function u(e,t,i,a){var h=document.createElement(e);if(i&&(h.className=i),a&&(h.style.cssText=a),typeof t=="string")h.appendChild(document.createTextNode(t));else if(t)for(var F=0;F=t)return Z+(t-F);Z+=re-F,Z+=i-Z%i,F=re+1}}var ie=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};ie.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ie.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return a+Math.min(Z,t-h);if(h+=F-a,h+=i-h%i,a=F+1,h>=t)return a}}var De=[""];function pe(e){for(;De.length<=e;)De.push(se(De)+" ");return De[e]}function se(e){return e[e.length-1]}function we(e,t){for(var i=[],a=0;a"\x80"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function Y(e,t){return t?t.source.indexOf("\\w")>-1&&G(e)?!0:t.test(e):G(e)}function ue(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function We(e){return e.charCodeAt(0)>=768&&be.test(e)}function ze(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var h=(t+i)/2,F=a<0?Math.ceil(h):Math.floor(h);if(F==t)return e(F)?t:i;e(F)?i=F:t=F+a}}function Ut(e,t,i,a){if(!e)return a(t,i,"ltr",0);for(var h=!1,F=0;Ft||t==i&&Z.to==t)&&(a(Math.max(Z.from,t),Math.min(Z.to,i),Z.level==1?"rtl":"ltr",F),h=!0)}h||a(t,i,"ltr")}var It=null;function Nt(e,t,i){var a;It=null;for(var h=0;ht)return h;F.to==t&&(F.from!=F.to&&i=="before"?a=h:It=h),F.from==t&&(F.from!=F.to&&i!="before"?a=h:It=h)}return a!=null?a:It}var Zt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(de){return de<=247?e.charAt(de):1424<=de&&de<=1524?"R":1536<=de&&de<=1785?t.charAt(de-1536):1774<=de&&de<=2220?"r":8192<=de&&de<=8203?"w":de==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,F=/[LRr]/,Z=/[Lb1n]/,re=/[1n]/;function oe(de,Ue,Je){this.level=de,this.from=Ue,this.to=Je}return function(de,Ue){var Je=Ue=="ltr"?"L":"R";if(de.length==0||Ue=="ltr"&&!a.test(de))return!1;for(var gt=de.length,ht=[],zt=0;zt-1&&(a[t]=h.slice(0,F).concat(h.slice(F+1)))}}}function st(e,t){var i=pt(e,t);if(!i.length)return;for(var a=Array.prototype.slice.call(arguments,2),h=0;h0}function Oe(e){e.prototype.on=function(t,i){He(this,t,i)},e.prototype.off=function(t,i){Mt(this,t,i)}}function ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function he(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Le(e){ce(e),he(e)}function at(e){return e.target||e.srcElement}function et(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var Rt=function(){if(B&&C<9)return!1;var e=u("div");return"draggable"in e||"dragDrop"in e}(),qt;function pn(e){if(qt==null){var t=u("span","\u200B");c(e,u("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(qt=t.offsetWidth<=1&&t.offsetHeight>2&&!(B&&C<8))}var i=qt?u("span","\u200B"):u("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var an;function Ht(e){if(an!=null)return an;var t=c(e,document.createTextNode("A\u062EA")),i=T(t,0,1).getBoundingClientRect(),a=T(t,1,2).getBoundingClientRect();return m(e),!i||i.left==i.right?!1:an=a.right-i.right<3}var bt=` b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],a=e.length;t<=a;){var h=e.indexOf(` -`,t);h==-1&&(h=e.length);var F=e.slice(t,e.charAt(h-1)=="\r"?h-1:h),Z=F.indexOf("\r");Z!=-1?(i.push(F.slice(0,Z)),t+=Z+1):(i.push(F),t=h+1)}return i}:function(e){return e.split(/\r\n?|\n/)},xt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ct=function(){var e=u("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ge=null;function Ne(e){if(ge!=null)return ge;var t=c(e,u("span","x")),i=t.getBoundingClientRect(),a=T(t,0,1).getBoundingClientRect();return ge=Math.abs(i.left-a.left)>1}var Ct={},dt={};function tn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ct[e]=t}function nn(e,t){dt[e]=t}function it(e){if(typeof e=="string"&&dt.hasOwnProperty(e))e=dt[e];else if(e&&typeof e.name=="string"&&dt.hasOwnProperty(e.name)){var t=dt[e.name];typeof t=="string"&&(t={name:t}),e=me(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return it("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return it("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function vt(e,t){t=it(t);var i=Ct[t.name];if(!i)return vt(e,"text/plain");var a=i(e,t);if(Ot.hasOwnProperty(t.name)){var h=Ot[t.name];for(var F in h){if(!h.hasOwnProperty(F))continue;a.hasOwnProperty(F)&&(a["_"+F]=a[F]),a[F]=h[F]}}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var Z in t.modeProps)a[Z]=t.modeProps[Z];return a}var Ot={};function sn(e,t){var i=Ot.hasOwnProperty(e)?Ot[e]:Ot[e]={};W(t,i)}function En(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var a in t){var h=t[a];h instanceof Array&&(h=h.concat([])),i[a]=h}return i}function or(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function fr(e,t,i){return e.startState?e.startState(t,i):!0}var ar=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};ar.prototype.eol=function(){return this.pos>=this.string.length},ar.prototype.sol=function(){return this.pos==this.lineStart},ar.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ar.prototype.next=function(){if(this.post},ar.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ar.prototype.skipToEnd=function(){this.pos=this.string.length},ar.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ar.prototype.backUp=function(e){this.pos-=e},ar.prototype.column=function(){return this.lastColumnPos0?null:(F&&t!==!1&&(this.pos+=F[0].length),F)}},ar.prototype.current=function(){return this.string.slice(this.start,this.pos)},ar.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ar.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ar.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Sn(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var a=0;;++a){var h=i.children[a],F=h.chunkSize();if(t=e.first&&ti?jt(i,Sn(e,i).text.length):M(t,Sn(e,t.line).text.length)}function M(e,t){var i=e.ch;return i==null||i>t?jt(e.line,t):i<0?jt(e.line,0):e}function $(e,t){for(var i=[],a=0;athis.maxLookAhead&&(this.maxLookAhead=e),t},q.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},q.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},q.fromSaved=function(e,t,i){return t instanceof te?new q(e,En(e.mode,t.state),i,t.lookAhead):new q(e,En(e.mode,t),i)},q.prototype.save=function(e){var t=e!==!1?En(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new te(t,this.maxLookAhead):t};function Xe(e,t,i,a){var h=[e.state.modeGen],F={};_n(e,t.text,e.doc.mode,i,function(de,Ue){return h.push(de,Ue)},F,a);for(var Z=i.state,re=function(de){i.baseTokens=h;var Ue=e.state.overlays[de],Je=1,gt=0;i.state=!0,_n(e,t.text,Ue.mode,i,function(ht,Gt){for(var un=Je;gtht&&h.splice(Je,1,ht,h[Je+1],Cn),Je+=2,gt=Math.min(ht,Cn)}if(!Gt)return;if(Ue.opaque)h.splice(un,Je-un,ht,"overlay "+Gt),Je=un+2;else for(;une.options.maxHighlightLength&&En(e.doc.mode,a.state),F=Xe(e,t,a);h&&(a.state=h),t.stateAfter=a.save(!h),t.styles=F.styles,F.classes?t.styleClasses=F.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function gn(e,t,i){var a=e.doc,h=e.display;if(!a.mode.startState)return new q(a,!0,t);var F=zn(e,t,i),Z=F>a.first&&Sn(a,F-1).stateAfter,re=Z?q.fromSaved(a,Z,F):new q(a,fr(a.mode),F);return a.iter(F,t,function(oe){Nn(e,oe.text,re);var de=re.line;oe.stateAfter=de==t-1||de%5==0||de>=h.viewFrom&&det.start)return F}throw new Error("Mode "+e.name+" failed to advance stream.")}var an=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Jt(e,t,i,a){var h=e.doc,F=h.mode,Z;t=S(h,t);var re=Sn(h,t.line),oe=gn(e,t.line,i),de=new ar(re.text,e.options.tabSize,oe),Ue;for(a&&(Ue=[]);(a||de.pose.options.maxHighlightLength?(re=!1,Z&&Nn(e,t,a,Ue.pos),Ue.pos=t.length,Je=null):Je=cn(tr(i,Ue,a.state,gt),F),gt){var ht=gt[0].name;ht&&(Je="m-"+(Je?ht+" "+Je:ht))}if(!re||de!=Je){for(;oeZ;--re){if(re<=F.first)return F.first;var oe=Sn(F,re-1),de=oe.stateAfter;if(de&&(!i||re+(de instanceof te?de.lookAhead:0)<=F.modeFrontier))return re;var Ue=Q(oe.text,null,e.options.tabSize);(h==null||a>Ue)&&(h=re-1,a=Ue)}return h}function lr(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;a--){var h=Sn(e,a).stateAfter;if(h&&(!(h instanceof te)||a+h.lookAhead=t:F.to>t);(a||(a=[])).push(new jn(Z,F.from,oe?null:F.to))}}return a}function sr(e,t,i){var a;if(e)for(var h=0;h=t:F.to>t);if(re||F.from==t&&Z.type=="bookmark"&&(!i||F.marker.insertLeft)){var oe=F.from==null||(Z.inclusiveLeft?F.from<=t:F.from0&&re)for(var Yn=0;Yn0)continue;var Ue=[oe,1],Je=On(de.from,re.from),gt=On(de.to,re.to);(Je<0||!Z.inclusiveLeft&&!Je)&&Ue.push({from:de.from,to:re.from}),(gt>0||!Z.inclusiveRight&&!gt)&&Ue.push({from:re.to,to:de.to}),h.splice.apply(h,Ue),oe+=Ue.length-3}return h}function Qe(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!a||ft(a,F.marker)<0)&&(a=F.marker)}return a}function Dt(e,t,i,a,h){var F=Sn(e,t),Z=Tr&&F.markedSpans;if(Z)for(var re=0;re=0&&Je<=0||Ue<=0&&Je>=0)continue;if(Ue<=0&&(oe.marker.inclusiveRight&&h.inclusiveLeft?On(de.to,i)>=0:On(de.to,i)>0)||Ue>=0&&(oe.marker.inclusiveRight&&h.inclusiveLeft?On(de.from,a)<=0:On(de.from,a)<0))return!0}}function lt(e){for(var t;t=Re(e);)e=t.find(-1,!0).line;return e}function At(e){for(var t;t=mt(e);)e=t.find(1,!0).line;return e}function Lt(e){for(var t,i;t=mt(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function $t(e,t){var i=Sn(e,t),a=lt(i);return i==a?t:pr(a)}function Ie(e,t){if(t>e.lastLine())return t;var i=Sn(e,t),a;if(!Pt(e,i))return t;for(;a=mt(i);)i=a.find(1,!0).line;return pr(i)+1}function Pt(e,t){var i=Tr&&t.markedSpans;if(i)for(var a=void 0,h=0;ht.maxLineLength&&(t.maxLineLength=h,t.maxLine=a)})}var xn=function(e,t,i){this.text=e,Ge(this,t),this.height=i?i(this):1};xn.prototype.lineNo=function(){return pr(this)},Oe(xn);function Kn(e,t,i,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Qe(e),Ge(e,i);var h=a?a(e):1;h!=e.height&&Ir(e,h)}function Hn(e){e.parent=null,Qe(e)}var _t={},wt={};function Xt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?wt:_t;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Mt(e,t){var i=D("span",null,null,P?"padding-right: .1px":null),a={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var h=0;h<=(t.rest?t.rest.length:0);h++){var F=h?t.rest[h-1]:t.line,Z=void 0;a.pos=0,a.addToken=Qt,Kt(e.display.measure)&&(Z=hn(F,e.doc.direction))&&(a.addToken=Rn(a.addToken,Z)),a.map=[];var re=t!=e.display.externalMeasured&&pr(F);dn(F,a,zt(e,F,re)),F.styleClasses&&(F.styleClasses.bgClass&&(a.bgClass=H(F.styleClasses.bgClass,a.bgClass||"")),F.styleClasses.textClass&&(a.textClass=H(F.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(pn(e.display.measure))),h==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(P){var oe=a.content.lastChild;(/\bcm-tab\b/.test(oe.className)||oe.querySelector&&oe.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return st(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=H(a.pre.className,a.textClass||"")),a}function Un(e){var t=u("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Qt(e,t,i,a,h,F,Z){if(!t)return;var re=e.splitSpaces?ln(t,e.trailingSpace):t,oe=e.cm.state.specialChars,de=!1,Ue;if(!oe.test(t))e.col+=t.length,Ue=document.createTextNode(re),e.map.push(e.pos,e.pos+t.length,Ue),B&&C<9&&(de=!0),e.pos+=t.length;else{Ue=document.createDocumentFragment();for(var Je=0;;){oe.lastIndex=Je;var gt=oe.exec(t),ht=gt?gt.index-Je:t.length-Je;if(ht){var Gt=document.createTextNode(re.slice(Je,Je+ht));B&&C<9?Ue.appendChild(u("span",[Gt])):Ue.appendChild(Gt),e.map.push(e.pos,e.pos+ht,Gt),e.col+=ht,e.pos+=ht}if(!gt)break;Je+=ht+1;var un=void 0;if(gt[0]==" "){var Cn=e.cm.options.tabSize,kn=Cn-e.col%Cn;un=Ue.appendChild(u("span",pe(kn),"cm-tab")),un.setAttribute("role","presentation"),un.setAttribute("cm-text"," "),e.col+=kn}else gt[0]=="\r"||gt[0]==` -`?(un=Ue.appendChild(u("span",gt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),un.setAttribute("cm-text",gt[0]),e.col+=1):(un=e.cm.options.specialCharPlaceholder(gt[0]),un.setAttribute("cm-text",gt[0]),B&&C<9?Ue.appendChild(u("span",[un])):Ue.appendChild(un),e.col+=1);e.map.push(e.pos,e.pos+1,un),e.pos++}}if(e.trailingSpace=re.charCodeAt(t.length-1)==32,i||a||h||de||F||Z){var Gn=i||"";a&&(Gn+=a),h&&(Gn+=h);var In=u("span",[Ue],Gn,F);if(Z)for(var Yn in Z)Z.hasOwnProperty(Yn)&&Yn!="style"&&Yn!="class"&&In.setAttribute(Yn,Z[Yn]);return e.content.appendChild(In)}e.content.appendChild(Ue)}function ln(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,a="",h=0;hde&&Je.from<=de);gt++);if(Je.to>=Ue)return e(i,a,h,F,Z,re,oe);e(i,a.slice(0,Je.to-de),h,F,null,re,oe),F=null,a=a.slice(Je.to-de),de=Je.to}}}function Ln(e,t,i,a){var h=!a&&i.widgetNode;h&&e.map.push(e.pos,e.pos+t,h),!a&&e.cm.display.input.needsContentAttribute&&(h||(h=e.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",i.id)),h&&(e.cm.display.input.setUneditable(h),e.content.appendChild(h)),e.pos+=t,e.trailingSpace=!1}function dn(e,t,i){var a=e.markedSpans,h=e.text,F=0;if(!a){for(var Z=1;Zoe||Fr.collapsed&&dr.to==oe&&dr.from==oe)){if(dr.to!=null&&dr.to!=oe&&ht>dr.to&&(ht=dr.to,un=""),Fr.className&&(Gt+=" "+Fr.className),Fr.css&&(gt=(gt?gt+";":"")+Fr.css),Fr.startStyle&&dr.from==oe&&(Cn+=" "+Fr.startStyle),Fr.endStyle&&dr.to==ht&&(Yn||(Yn=[])).push(Fr.endStyle,dr.to),Fr.title&&((Gn||(Gn={})).title=Fr.title),Fr.attributes)for(var sa in Fr.attributes)(Gn||(Gn={}))[sa]=Fr.attributes[sa];Fr.collapsed&&(!kn||ft(kn.marker,Fr)<0)&&(kn=dr)}else dr.from>oe&&ht>dr.from&&(ht=dr.from)}if(Yn)for(var Fa=0;Fa=re)break;for(var oi=Math.min(re,ht);;){if(Ue){var ti=oe+Ue.length;if(!kn){var Pa=ti>oi?Ue.slice(0,oi-oe):Ue;t.addToken(t,Pa,Je?Je+Gt:Gt,Cn,oe+Pa.length==ht?un:"",gt,Gn)}if(ti>=oi){Ue=Ue.slice(oi-oe),oe=oi;break}oe=ti,Cn=""}Ue=h.slice(F,F=i[de++]),Je=Xt(i[de++],t.cm.options)}}}function Qn(e,t,i){this.line=t,this.rest=Lt(t),this.size=this.rest?pr(se(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Pt(e,t)}function An(e,t,i){for(var a=[],h,F=t;F2&&F.push((oe.bottom+de.top)/2-i.top)}}F.push(i.bottom-i.top)}}function fe(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;ai)return{map:e.measure.maps[h],cache:e.measure.caches[h],before:!0}}function Pe(e,t){t=lt(t);var i=pr(t),a=e.display.externalMeasured=new Qn(e.doc,t,i);a.lineN=i;var h=a.built=Mt(e,a);return a.text=h.pre,c(e.display.lineMeasure,h.pre),a}function je(e,t,i,a){return ut(e,Ke(e,t),i,a)}function rt(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(F=oe-re,h=F-1,t>=oe&&(Z="right")),h!=null){if(a=e[de+2],re==oe&&i==(a.insertLeft?"left":"right")&&(Z=i),i=="left"&&h==0)for(;de&&e[de-2]==e[de-3]&&e[de-1].insertLeft;)a=e[(de-=3)+2],Z="left";if(i=="right"&&h==oe-re)for(;de=0&&!((i=e[h]).left!=i.right);h--);return i}function yn(e,t,i,a){var h=Bt(t.map,i,a),F=h.node,Z=h.start,re=h.end,oe=h.collapse,de;if(F.nodeType==3){for(var Ue=0;Ue<4;Ue++){for(;Z&&We(t.line.text.charAt(h.coverStart+Z));)--Z;for(;h.coverStart+re0&&(oe=a="right");var Je;e.options.lineWrapping&&(Je=F.getClientRects()).length>1?de=Je[a=="right"?Je.length-1:0]:de=F.getBoundingClientRect()}if(B&&C<9&&!Z&&(!de||!de.left&&!de.right)){var gt=F.parentNode.getClientRects()[0];gt?de={left:gt.left,right:gt.left+Mr(e.display),top:gt.top,bottom:gt.bottom}:de=St}for(var ht=de.top-t.rect.top,Gt=de.bottom-t.rect.top,un=(ht+Gt)/2,Cn=t.view.measure.heights,kn=0;kn=a.text.length?(oe=a.text.length,de="before"):oe<=0&&(oe=0,de="after"),!re)return Z(de=="before"?oe-1:oe,de=="before");function Ue(Gt,un,Cn){var kn=re[un],Gn=kn.level==1;return Z(Cn?Gt-1:Gt,Gn!=Cn)}var Je=Nt(re,oe,de),gt=It,ht=Ue(oe,Je,de=="before");return gt!=null&&(ht.other=Ue(oe,gt,de!="before")),ht}function rn(e,t){var i=0;t=S(e.doc,t),e.options.lineWrapping||(i=Mr(e.display)*t.ch);var a=Sn(e.doc,t.line),h=fn(a)+Ca(e.display);return{left:i,right:i,top:h,bottom:h+a.height}}function wn(e,t,i,a,h){var F=jt(e,t,i);return F.xRel=h,a&&(F.outside=a),F}function xr(e,t,i){var a=e.doc;if(i+=e.display.viewOffset,i<0)return wn(a.first,0,null,-1,-1);var h=Br(a,i),F=a.first+a.size-1;if(h>F)return wn(a.first+a.size-1,Sn(a,F).text.length,null,1,1);t<0&&(t=0);for(var Z=Sn(a,h);;){var re=br(e,Z,h,t,i),oe=Wt(Z,re.ch+(re.xRel>0||re.outside>0?1:0));if(!oe)return re;var de=oe.find(1);if(de.line==h)return de;Z=Sn(a,h=de.line)}}function vn(e,t,i,a){a-=gr(t);var h=t.text.length,F=Tt(function(Z){return ut(e,i,Z-1).bottom<=a},h,0);return h=Tt(function(Z){return ut(e,i,Z).top>a},F,h),{begin:F,end:h}}function Ft(e,t,i,a){i||(i=Ke(e,t));var h=Rr(e,t,ut(e,i,a),"line").top;return vn(e,t,i,h)}function Tn(e,t,i,a){return e.bottom<=i?!1:e.top>i?!0:(a?e.left:e.right)>t}function br(e,t,i,a,h){h-=fn(t);var F=Ke(e,t),Z=gr(t),re=0,oe=t.text.length,de=!0,Ue=hn(t,e.doc.direction);if(Ue){var Je=(e.options.lineWrapping?Lr:Pn)(e,t,i,F,Ue,a,h);de=Je.level!=1,re=de?Je.from:Je.to-1,oe=de?Je.to:Je.from-1}var gt=null,ht=null,Gt=Tt(function(_r){var dr=ut(e,F,_r);return dr.top+=Z,dr.bottom+=Z,Tn(dr,a,h,!1)?(dr.top<=h&&dr.left<=a&&(gt=_r,ht=dr),!0):!1},re,oe),un,Cn,kn=!1;if(ht){var Gn=a-ht.left=Yn.bottom?1:0}return Gt=ze(t.text,Gt,1),wn(i,Gt,Cn,kn,a-un)}function Pn(e,t,i,a,h,F,Z){var re=Tt(function(Je){var gt=h[Je],ht=gt.level!=1;return Tn(Jn(e,jt(i,ht?gt.to:gt.from,ht?"before":"after"),"line",t,a),F,Z,!0)},0,h.length-1),oe=h[re];if(re>0){var de=oe.level!=1,Ue=Jn(e,jt(i,de?oe.from:oe.to,de?"after":"before"),"line",t,a);Tn(Ue,F,Z,!0)&&Ue.top>Z&&(oe=h[re-1])}return oe}function Lr(e,t,i,a,h,F,Z){var re=vn(e,t,a,Z),oe=re.begin,de=re.end;/\s/.test(t.text.charAt(de-1))&&de--;for(var Ue=null,Je=null,gt=0;gt=de||ht.to<=oe)continue;var Gt=ht.level!=1,un=ut(e,a,Gt?Math.min(de,ht.to)-1:Math.max(oe,ht.from)).right,Cn=unCn)&&(Ue=ht,Je=Cn)}return Ue||(Ue=h[h.length-1]),Ue.fromde&&(Ue={from:Ue.from,to:de,level:Ue.level}),Ue}var Wr;function Nr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Wr==null){Wr=u("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Wr.appendChild(document.createTextNode("x")),Wr.appendChild(u("br"));Wr.appendChild(document.createTextNode("x"))}c(e.measure,Wr);var i=Wr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),m(e.measure),i||1}function Mr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=u("span","xxxxxxxxxx"),i=u("pre",[t],"CodeMirror-line-like");c(e.measure,i);var a=t.getBoundingClientRect(),h=(a.right-a.left)/10;return h>2&&(e.cachedCharWidth=h),h||10}function cr(e){for(var t=e.display,i={},a={},h=t.gutters.clientLeft,F=t.gutters.firstChild,Z=0;F;F=F.nextSibling,++Z){var re=e.display.gutterSpecs[Z].className;i[re]=F.offsetLeft+F.clientLeft+h,a[re]=F.clientWidth}return{fixedPos:da(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function da(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Qa(e){var t=Nr(e.display),i=e.options.lineWrapping,a=i&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(h){if(Pt(e.doc,h))return 0;var F=0;if(h.widgets)for(var Z=0;Z0&&(de=Sn(e.doc,oe.line).text).length==oe.ch){var Ue=Q(de,de.length,e.options.tabSize)-de.length;oe=jt(oe.line,Math.max(0,Math.round((F-Ye(e.display).left)/Mr(e.display))-Ue))}return oe}function na(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,a=0;at)&&(h.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=h.viewTo)Tr&&$t(e.doc,t)h.viewFrom?ra(e):(h.viewFrom+=a,h.viewTo+=a);else if(t<=h.viewFrom&&i>=h.viewTo)ra(e);else if(t<=h.viewFrom){var F=ja(e,i,i+a,1);F?(h.view=h.view.slice(F.index),h.viewFrom=F.lineN,h.viewTo+=a):ra(e)}else if(i>=h.viewTo){var Z=ja(e,t,t,-1);Z?(h.view=h.view.slice(0,Z.index),h.viewTo=Z.lineN):ra(e)}else{var re=ja(e,t,t,-1),oe=ja(e,i,i+a,1);re&&oe?(h.view=h.view.slice(0,re.index).concat(An(e,re.lineN,oe.lineN)).concat(h.view.slice(oe.index)),h.viewTo+=a):ra(e)}var de=h.externalMeasured;de&&(i=h.lineN&&t=a.viewTo)return;var F=a.view[na(e,t)];if(F.node==null)return;var Z=F.changes||(F.changes=[]);ae(Z,i)==-1&&Z.push(i)}function ra(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ja(e,t,i,a){var h=na(e,t),F,Z=e.display.view;if(!Tr||i==e.doc.first+e.doc.size)return{index:h,lineN:i};for(var re=e.display.viewFrom,oe=0;oe0){if(h==Z.length-1)return null;F=re+Z[h].size-t,h++}else F=re-t;t+=F,i+=F}for(;$t(e.doc,i)!=i;){if(h==(a<0?0:Z.length-1))return null;i+=a*Z[h-(a<0?1:0)].size,h+=a}return{index:h,lineN:i}}function fi(e,t,i){var a=e.display,h=a.view;h.length==0||t>=a.viewTo||i<=a.viewFrom?(a.view=An(e,t,i),a.viewFrom=t):(a.viewFrom>t?a.view=An(e,t,a.viewFrom).concat(a.view):a.viewFromi&&(a.view=a.view.slice(0,na(e,i)))),a.viewTo=i}function si(e){for(var t=e.display.view,i=0,a=0;a=e.display.viewTo||re.to().line0?t.blinker=setInterval(function(){e.hasFocus()||wi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Mi(e){e.state.focused||(e.display.input.focus(),li(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,wi(e))},100)}function li(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(st(e,"focus",e,t),e.state.focused=!0,U(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),P&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ba(e)}function wi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(st(e,"blur",e,t),e.state.focused=!1,g(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Si(e){for(var t=e.display,i=t.lineDiv.offsetTop,a=0;a.005||Ue<-.005)&&(Ir(h.line,Z),Ti(h.line),h.rest))for(var Je=0;Jee.display.sizerWidth){var gt=Math.ceil(re/Mr(e.display));gt>e.display.maxLineLength&&(e.display.maxLineLength=gt,e.display.maxLine=h.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var t=0;t=Z&&(F=Br(t,fn(Sn(t,oe))-e.wrapper.clientHeight),Z=oe)}return{from:F,to:Math.max(Z,F+1)}}function co(e,t){if(Et(e,"scrollCursorIntoView"))return;var i=e.display,a=i.sizer.getBoundingClientRect(),h=null;if(t.top+a.top<0?h=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(h=!1),h!=null&&!n){var F=u("div","\u200B",null,`position: absolute; - top: `+(t.top-i.viewOffset-Ca(e.display))+`px; +`,t);h==-1&&(h=e.length);var F=e.slice(t,e.charAt(h-1)=="\r"?h-1:h),Z=F.indexOf("\r");Z!=-1?(i.push(F.slice(0,Z)),t+=Z+1):(i.push(F),t=h+1)}return i}:function(e){return e.split(/\r\n?|\n/)},xt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ct=function(){var e=u("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ge=null;function Ne(e){if(ge!=null)return ge;var t=c(e,u("span","x")),i=t.getBoundingClientRect(),a=T(t,0,1).getBoundingClientRect();return ge=Math.abs(i.left-a.left)>1}var Ct={},dt={};function en(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ct[e]=t}function tn(e,t){dt[e]=t}function it(e){if(typeof e=="string"&&dt.hasOwnProperty(e))e=dt[e];else if(e&&typeof e.name=="string"&&dt.hasOwnProperty(e.name)){var t=dt[e.name];typeof t=="string"&&(t={name:t}),e=me(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return it("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return it("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function vt(e,t){t=it(t);var i=Ct[t.name];if(!i)return vt(e,"text/plain");var a=i(e,t);if(Ot.hasOwnProperty(t.name)){var h=Ot[t.name];for(var F in h){if(!h.hasOwnProperty(F))continue;a.hasOwnProperty(F)&&(a["_"+F]=a[F]),a[F]=h[F]}}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var Z in t.modeProps)a[Z]=t.modeProps[Z];return a}var Ot={};function on(e,t){var i=Ot.hasOwnProperty(e)?Ot[e]:Ot[e]={};W(t,i)}function xn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var a in t){var h=t[a];h instanceof Array&&(h=h.concat([])),i[a]=h}return i}function lr(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function fr(e,t,i){return e.startState?e.startState(t,i):!0}var ir=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};ir.prototype.eol=function(){return this.pos>=this.string.length},ir.prototype.sol=function(){return this.pos==this.lineStart},ir.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ir.prototype.next=function(){if(this.post},ir.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ir.prototype.skipToEnd=function(){this.pos=this.string.length},ir.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ir.prototype.backUp=function(e){this.pos-=e},ir.prototype.column=function(){return this.lastColumnPos0?null:(F&&t!==!1&&(this.pos+=F[0].length),F)}},ir.prototype.current=function(){return this.string.slice(this.start,this.pos)},ir.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ir.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ir.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Tn(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var a=0;;++a){var h=i.children[a],F=h.chunkSize();if(t=e.first&&ti?jt(i,Tn(e,i).text.length):M(t,Tn(e,t.line).text.length)}function M(e,t){var i=e.ch;return i==null||i>t?jt(e.line,t):i<0?jt(e.line,0):e}function $(e,t){for(var i=[],a=0;athis.maxLookAhead&&(this.maxLookAhead=e),t},q.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},q.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},q.fromSaved=function(e,t,i){return t instanceof te?new q(e,xn(e.mode,t.state),i,t.lookAhead):new q(e,xn(e.mode,t),i)},q.prototype.save=function(e){var t=e!==!1?xn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new te(t,this.maxLookAhead):t};function Xe(e,t,i,a){var h=[e.state.modeGen],F={};wn(e,t.text,e.doc.mode,i,function(de,Ue){return h.push(de,Ue)},F,a);for(var Z=i.state,re=function(de){i.baseTokens=h;var Ue=e.state.overlays[de],Je=1,gt=0;i.state=!0,wn(e,t.text,Ue.mode,i,function(ht,zt){for(var ln=Je;gtht&&h.splice(Je,1,ht,h[Je+1],_n),Je+=2,gt=Math.min(ht,_n)}if(!zt)return;if(Ue.opaque)h.splice(ln,Je-ln,ht,"overlay "+zt),Je=ln+2;else for(;lne.options.maxHighlightLength&&xn(e.doc.mode,a.state),F=Xe(e,t,a);h&&(a.state=h),t.stateAfter=a.save(!h),t.styles=F.styles,F.classes?t.styleClasses=F.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yn(e,t,i){var a=e.doc,h=e.display;if(!a.mode.startState)return new q(a,!0,t);var F=zn(e,t,i),Z=F>a.first&&Tn(a,F-1).stateAfter,re=Z?q.fromSaved(a,Z,F):new q(a,fr(a.mode),F);return a.iter(F,t,function(oe){In(e,oe.text,re);var de=re.line;oe.stateAfter=de==t-1||de%5==0||de>=h.viewFrom&&det.start)return F}throw new Error("Mode "+e.name+" failed to advance stream.")}var nn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Qt(e,t,i,a){var h=e.doc,F=h.mode,Z;t=S(h,t);var re=Tn(h,t.line),oe=yn(e,t.line,i),de=new ir(re.text,e.options.tabSize,oe),Ue;for(a&&(Ue=[]);(a||de.pose.options.maxHighlightLength?(re=!1,Z&&In(e,t,a,Ue.pos),Ue.pos=t.length,Je=null):Je=un(rr(i,Ue,a.state,gt),F),gt){var ht=gt[0].name;ht&&(Je="m-"+(Je?ht+" "+Je:ht))}if(!re||de!=Je){for(;oeZ;--re){if(re<=F.first)return F.first;var oe=Tn(F,re-1),de=oe.stateAfter;if(de&&(!i||re+(de instanceof te?de.lookAhead:0)<=F.modeFrontier))return re;var Ue=Q(oe.text,null,e.options.tabSize);(h==null||a>Ue)&&(h=re-1,a=Ue)}return h}function cr(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;a--){var h=Tn(e,a).stateAfter;if(h&&(!(h instanceof te)||a+h.lookAhead=t:F.to>t);(a||(a=[])).push(new Nn(Z,F.from,oe?null:F.to))}}return a}function ur(e,t,i){var a;if(e)for(var h=0;h=t:F.to>t);if(re||F.from==t&&Z.type=="bookmark"&&(!i||F.marker.insertLeft)){var oe=F.from==null||(Z.inclusiveLeft?F.from<=t:F.from0&&re)for(var Qn=0;Qn0)continue;var Ue=[oe,1],Je=On(de.from,re.from),gt=On(de.to,re.to);(Je<0||!Z.inclusiveLeft&&!Je)&&Ue.push({from:de.from,to:re.from}),(gt>0||!Z.inclusiveRight&&!gt)&&Ue.push({from:re.to,to:de.to}),h.splice.apply(h,Ue),oe+=Ue.length-3}return h}function Qe(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!a||ft(a,F.marker)<0)&&(a=F.marker)}return a}function Dt(e,t,i,a,h){var F=Tn(e,t),Z=Tr&&F.markedSpans;if(Z)for(var re=0;re=0&&Je<=0||Ue<=0&&Je>=0)continue;if(Ue<=0&&(oe.marker.inclusiveRight&&h.inclusiveLeft?On(de.to,i)>=0:On(de.to,i)>0)||Ue>=0&&(oe.marker.inclusiveRight&&h.inclusiveLeft?On(de.from,a)<=0:On(de.from,a)<0))return!0}}function lt(e){for(var t;t=Re(e);)e=t.find(-1,!0).line;return e}function At(e){for(var t;t=mt(e);)e=t.find(1,!0).line;return e}function Lt(e){for(var t,i;t=mt(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Yt(e,t){var i=Tn(e,t),a=lt(i);return i==a?t:mr(a)}function Ie(e,t){if(t>e.lastLine())return t;var i=Tn(e,t),a;if(!Pt(e,i))return t;for(;a=mt(i);)i=a.find(1,!0).line;return mr(i)+1}function Pt(e,t){var i=Tr&&t.markedSpans;if(i)for(var a=void 0,h=0;ht.maxLineLength&&(t.maxLineLength=h,t.maxLine=a)})}var Cn=function(e,t,i){this.text=e,Ge(this,t),this.height=i?i(this):1};Cn.prototype.lineNo=function(){return mr(this)},Oe(Cn);function Kn(e,t,i,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Qe(e),Ge(e,i);var h=a?a(e):1;h!=e.height&&jr(e,h)}function Wn(e){e.parent=null,Qe(e)}var _t={},wt={};function Vt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?wt:_t;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function kt(e,t){var i=D("span",null,null,P?"padding-right: .1px":null),a={pre:D("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var h=0;h<=(t.rest?t.rest.length:0);h++){var F=h?t.rest[h-1]:t.line,Z=void 0;a.pos=0,a.addToken=$t,Ht(e.display.measure)&&(Z=fn(F,e.doc.direction))&&(a.addToken=Dn(a.addToken,Z)),a.map=[];var re=t!=e.display.externalMeasured&&mr(F);cn(F,a,Kt(e,F,re)),F.styleClasses&&(F.styleClasses.bgClass&&(a.bgClass=H(F.styleClasses.bgClass,a.bgClass||"")),F.styleClasses.textClass&&(a.textClass=H(F.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(pn(e.display.measure))),h==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(P){var oe=a.content.lastChild;(/\bcm-tab\b/.test(oe.className)||oe.querySelector&&oe.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return st(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=H(a.pre.className,a.textClass||"")),a}function jn(e){var t=u("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function $t(e,t,i,a,h,F,Z){if(!t)return;var re=e.splitSpaces?sn(t,e.trailingSpace):t,oe=e.cm.state.specialChars,de=!1,Ue;if(!oe.test(t))e.col+=t.length,Ue=document.createTextNode(re),e.map.push(e.pos,e.pos+t.length,Ue),B&&C<9&&(de=!0),e.pos+=t.length;else{Ue=document.createDocumentFragment();for(var Je=0;;){oe.lastIndex=Je;var gt=oe.exec(t),ht=gt?gt.index-Je:t.length-Je;if(ht){var zt=document.createTextNode(re.slice(Je,Je+ht));B&&C<9?Ue.appendChild(u("span",[zt])):Ue.appendChild(zt),e.map.push(e.pos,e.pos+ht,zt),e.col+=ht,e.pos+=ht}if(!gt)break;Je+=ht+1;var ln=void 0;if(gt[0]==" "){var _n=e.cm.options.tabSize,Mn=_n-e.col%_n;ln=Ue.appendChild(u("span",pe(Mn),"cm-tab")),ln.setAttribute("role","presentation"),ln.setAttribute("cm-text"," "),e.col+=Mn}else gt[0]=="\r"||gt[0]==` +`?(ln=Ue.appendChild(u("span",gt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ln.setAttribute("cm-text",gt[0]),e.col+=1):(ln=e.cm.options.specialCharPlaceholder(gt[0]),ln.setAttribute("cm-text",gt[0]),B&&C<9?Ue.appendChild(u("span",[ln])):Ue.appendChild(ln),e.col+=1);e.map.push(e.pos,e.pos+1,ln),e.pos++}}if(e.trailingSpace=re.charCodeAt(t.length-1)==32,i||a||h||de||F||Z){var Gn=i||"";a&&(Gn+=a),h&&(Gn+=h);var kn=u("span",[Ue],Gn,F);if(Z)for(var Qn in Z)Z.hasOwnProperty(Qn)&&Qn!="style"&&Qn!="class"&&kn.setAttribute(Qn,Z[Qn]);return e.content.appendChild(kn)}e.content.appendChild(Ue)}function sn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,a="",h=0;hde&&Je.from<=de);gt++);if(Je.to>=Ue)return e(i,a,h,F,Z,re,oe);e(i,a.slice(0,Je.to-de),h,F,null,re,oe),F=null,a=a.slice(Je.to-de),de=Je.to}}}function Ln(e,t,i,a){var h=!a&&i.widgetNode;h&&e.map.push(e.pos,e.pos+t,h),!a&&e.cm.display.input.needsContentAttribute&&(h||(h=e.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",i.id)),h&&(e.cm.display.input.setUneditable(h),e.content.appendChild(h)),e.pos+=t,e.trailingSpace=!1}function cn(e,t,i){var a=e.markedSpans,h=e.text,F=0;if(!a){for(var Z=1;Zoe||Fr.collapsed&&dr.to==oe&&dr.from==oe)){if(dr.to!=null&&dr.to!=oe&&ht>dr.to&&(ht=dr.to,ln=""),Fr.className&&(zt+=" "+Fr.className),Fr.css&&(gt=(gt?gt+";":"")+Fr.css),Fr.startStyle&&dr.from==oe&&(_n+=" "+Fr.startStyle),Fr.endStyle&&dr.to==ht&&(Qn||(Qn=[])).push(Fr.endStyle,dr.to),Fr.title&&((Gn||(Gn={})).title=Fr.title),Fr.attributes)for(var la in Fr.attributes)(Gn||(Gn={}))[la]=Fr.attributes[la];Fr.collapsed&&(!Mn||ft(Mn.marker,Fr)<0)&&(Mn=dr)}else dr.from>oe&&ht>dr.from&&(ht=dr.from)}if(Qn)for(var Ba=0;Ba=re)break;for(var oi=Math.min(re,ht);;){if(Ue){var ti=oe+Ue.length;if(!Mn){var La=ti>oi?Ue.slice(0,oi-oe):Ue;t.addToken(t,La,Je?Je+zt:zt,_n,oe+La.length==ht?ln:"",gt,Gn)}if(ti>=oi){Ue=Ue.slice(oi-oe),oe=oi;break}oe=ti,_n=""}Ue=h.slice(F,F=i[de++]),Je=Vt(i[de++],t.cm.options)}}}function qn(e,t,i){this.line=t,this.rest=Lt(t),this.size=this.rest?mr(se(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Pt(e,t)}function Pn(e,t,i){for(var a=[],h,F=t;F2&&F.push((oe.bottom+de.top)/2-i.top)}}F.push(i.bottom-i.top)}}function fe(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;ai)return{map:e.measure.maps[h],cache:e.measure.caches[h],before:!0}}function Pe(e,t){t=lt(t);var i=mr(t),a=e.display.externalMeasured=new qn(e.doc,t,i);a.lineN=i;var h=a.built=kt(e,a);return a.text=h.pre,c(e.display.lineMeasure,h.pre),a}function je(e,t,i,a){return ut(e,Ke(e,t),i,a)}function rt(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(F=oe-re,h=F-1,t>=oe&&(Z="right")),h!=null){if(a=e[de+2],re==oe&&i==(a.insertLeft?"left":"right")&&(Z=i),i=="left"&&h==0)for(;de&&e[de-2]==e[de-3]&&e[de-1].insertLeft;)a=e[(de-=3)+2],Z="left";if(i=="right"&&h==oe-re)for(;de=0&&!((i=e[h]).left!=i.right);h--);return i}function bn(e,t,i,a){var h=Ft(t.map,i,a),F=h.node,Z=h.start,re=h.end,oe=h.collapse,de;if(F.nodeType==3){for(var Ue=0;Ue<4;Ue++){for(;Z&&We(t.line.text.charAt(h.coverStart+Z));)--Z;for(;h.coverStart+re0&&(oe=a="right");var Je;e.options.lineWrapping&&(Je=F.getClientRects()).length>1?de=Je[a=="right"?Je.length-1:0]:de=F.getBoundingClientRect()}if(B&&C<9&&!Z&&(!de||!de.left&&!de.right)){var gt=F.parentNode.getClientRects()[0];gt?de={left:gt.left,right:gt.left+tr(e.display),top:gt.top,bottom:gt.bottom}:de=St}for(var ht=de.top-t.rect.top,zt=de.bottom-t.rect.top,ln=(ht+zt)/2,_n=t.view.measure.heights,Mn=0;Mn<_n.length-1&&!(ln<_n[Mn]);Mn++);var Gn=Mn?_n[Mn-1]:0,kn=_n[Mn],Qn={left:(oe=="right"?de.right:de.left)-t.rect.left,right:(oe=="left"?de.left:de.right)-t.rect.left,top:Gn,bottom:kn};return!de.left&&!de.right&&(Qn.bogus=!0),e.options.singleCursorHeightPerLine||(Qn.rtop=ht,Qn.rbottom=zt),Qn}function Hn(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ne(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*a,bottom:t.bottom*a}}function or(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=a.text.length?(oe=a.text.length,de="before"):oe<=0&&(oe=0,de="after"),!re)return Z(de=="before"?oe-1:oe,de=="before");function Ue(zt,ln,_n){var Mn=re[ln],Gn=Mn.level==1;return Z(_n?zt-1:zt,Gn!=_n)}var Je=Nt(re,oe,de),gt=It,ht=Ue(oe,Je,de=="before");return gt!=null&&(ht.other=Ue(oe,gt,de!="before")),ht}function rn(e,t){var i=0;t=S(e.doc,t),e.options.lineWrapping||(i=tr(e.display)*t.ch);var a=Tn(e.doc,t.line),h=dn(a)+wa(e.display);return{left:i,right:i,top:h,bottom:h+a.height}}function Sn(e,t,i,a,h){var F=jt(e,t,i);return F.xRel=h,a&&(F.outside=a),F}function Er(e,t,i){var a=e.doc;if(i+=e.display.viewOffset,i<0)return Sn(a.first,0,null,-1,-1);var h=Br(a,i),F=a.first+a.size-1;if(h>F)return Sn(a.first+a.size-1,Tn(a,F).text.length,null,1,1);t<0&&(t=0);for(var Z=Tn(a,h);;){var re=Yr(e,Z,h,t,i),oe=Bt(Z,re.ch+(re.xRel>0||re.outside>0?1:0));if(!oe)return re;var de=oe.find(1);if(de.line==h)return de;Z=Tn(a,h=de.line)}}function Mr(e,t,i,a){a-=Cr(t);var h=t.text.length,F=Tt(function(Z){return ut(e,i,Z-1).bottom<=a},h,0);return h=Tt(function(Z){return ut(e,i,Z).top>a},F,h),{begin:F,end:h}}function Vn(e,t,i,a){i||(i=Ke(e,t));var h=Rr(e,t,ut(e,i,a),"line").top;return Mr(e,t,i,h)}function kr(e,t,i,a){return e.bottom<=i?!1:e.top>i?!0:(a?e.left:e.right)>t}function Yr(e,t,i,a,h){h-=dn(t);var F=Ke(e,t),Z=Cr(t),re=0,oe=t.text.length,de=!0,Ue=fn(t,e.doc.direction);if(Ue){var Je=(e.options.lineWrapping?gn:Ir)(e,t,i,F,Ue,a,h);de=Je.level!=1,re=de?Je.from:Je.to-1,oe=de?Je.to:Je.from-1}var gt=null,ht=null,zt=Tt(function(_r){var dr=ut(e,F,_r);return dr.top+=Z,dr.bottom+=Z,kr(dr,a,h,!1)?(dr.top<=h&&dr.left<=a&&(gt=_r,ht=dr),!0):!1},re,oe),ln,_n,Mn=!1;if(ht){var Gn=a-ht.left=Qn.bottom?1:0}return zt=ze(t.text,zt,1),Sn(i,zt,_n,Mn,a-ln)}function Ir(e,t,i,a,h,F,Z){var re=Tt(function(Je){var gt=h[Je],ht=gt.level!=1;return kr(Jn(e,jt(i,ht?gt.to:gt.from,ht?"before":"after"),"line",t,a),F,Z,!0)},0,h.length-1),oe=h[re];if(re>0){var de=oe.level!=1,Ue=Jn(e,jt(i,de?oe.from:oe.to,de?"after":"before"),"line",t,a);kr(Ue,F,Z,!0)&&Ue.top>Z&&(oe=h[re-1])}return oe}function gn(e,t,i,a,h,F,Z){var re=Mr(e,t,a,Z),oe=re.begin,de=re.end;/\s/.test(t.text.charAt(de-1))&&de--;for(var Ue=null,Je=null,gt=0;gt=de||ht.to<=oe)continue;var zt=ht.level!=1,ln=ut(e,a,zt?Math.min(de,ht.to)-1:Math.max(oe,ht.from)).right,_n=ln_n)&&(Ue=ht,Je=_n)}return Ue||(Ue=h[h.length-1]),Ue.fromde&&(Ue={from:Ue.from,to:de,level:Ue.level}),Ue}var hn;function Rn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(hn==null){hn=u("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)hn.appendChild(document.createTextNode("x")),hn.appendChild(u("br"));hn.appendChild(document.createTextNode("x"))}c(e.measure,hn);var i=hn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),m(e.measure),i||1}function tr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=u("span","xxxxxxxxxx"),i=u("pre",[t],"CodeMirror-line-like");c(e.measure,i);var a=t.getBoundingClientRect(),h=(a.right-a.left)/10;return h>2&&(e.cachedCharWidth=h),h||10}function vn(e){for(var t=e.display,i={},a={},h=t.gutters.clientLeft,F=t.gutters.firstChild,Z=0;F;F=F.nextSibling,++Z){var re=e.display.gutterSpecs[Z].className;i[re]=F.offsetLeft+F.clientLeft+h,a[re]=F.clientWidth}return{fixedPos:Hr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function Hr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ja(e){var t=Rn(e.display),i=e.options.lineWrapping,a=i&&Math.max(5,e.display.scroller.clientWidth/tr(e.display)-3);return function(h){if(Pt(e.doc,h))return 0;var F=0;if(h.widgets)for(var Z=0;Z0&&(de=Tn(e.doc,oe.line).text).length==oe.ch){var Ue=Q(de,de.length,e.options.tabSize)-de.length;oe=jt(oe.line,Math.max(0,Math.round((F-Ye(e.display).left)/tr(e.display))-Ue))}return oe}function ra(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,a=0;at)&&(h.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=h.viewTo)Tr&&Yt(e.doc,t)h.viewFrom?aa(e):(h.viewFrom+=a,h.viewTo+=a);else if(t<=h.viewFrom&&i>=h.viewTo)aa(e);else if(t<=h.viewFrom){var F=Ua(e,i,i+a,1);F?(h.view=h.view.slice(F.index),h.viewFrom=F.lineN,h.viewTo+=a):aa(e)}else if(i>=h.viewTo){var Z=Ua(e,t,t,-1);Z?(h.view=h.view.slice(0,Z.index),h.viewTo=Z.lineN):aa(e)}else{var re=Ua(e,t,t,-1),oe=Ua(e,i,i+a,1);re&&oe?(h.view=h.view.slice(0,re.index).concat(Pn(e,re.lineN,oe.lineN)).concat(h.view.slice(oe.index)),h.viewTo+=a):aa(e)}var de=h.externalMeasured;de&&(i=h.lineN&&t=a.viewTo)return;var F=a.view[ra(e,t)];if(F.node==null)return;var Z=F.changes||(F.changes=[]);ae(Z,i)==-1&&Z.push(i)}function aa(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ua(e,t,i,a){var h=ra(e,t),F,Z=e.display.view;if(!Tr||i==e.doc.first+e.doc.size)return{index:h,lineN:i};for(var re=e.display.viewFrom,oe=0;oe0){if(h==Z.length-1)return null;F=re+Z[h].size-t,h++}else F=re-t;t+=F,i+=F}for(;Yt(e.doc,i)!=i;){if(h==(a<0?0:Z.length-1))return null;i+=a*Z[h-(a<0?1:0)].size,h+=a}return{index:h,lineN:i}}function fi(e,t,i){var a=e.display,h=a.view;h.length==0||t>=a.viewTo||i<=a.viewFrom?(a.view=Pn(e,t,i),a.viewFrom=t):(a.viewFrom>t?a.view=Pn(e,t,a.viewFrom).concat(a.view):a.viewFromi&&(a.view=a.view.slice(0,ra(e,i)))),a.viewTo=i}function si(e){for(var t=e.display.view,i=0,a=0;a=e.display.viewTo||re.to().line0?t.blinker=setInterval(function(){e.hasFocus()||wi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Mi(e){e.state.focused||(e.display.input.focus(),li(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,wi(e))},100)}function li(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(st(e,"focus",e,t),e.state.focused=!0,U(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),P&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function wi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(st(e,"blur",e,t),e.state.focused=!1,g(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Si(e){for(var t=e.display,i=t.lineDiv.offsetTop,a=0;a.005||Ue<-.005)&&(jr(h.line,Z),Ti(h.line),h.rest))for(var Je=0;Jee.display.sizerWidth){var gt=Math.ceil(re/tr(e.display));gt>e.display.maxLineLength&&(e.display.maxLineLength=gt,e.display.maxLine=h.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var t=0;t=Z&&(F=Br(t,dn(Tn(t,oe))-e.wrapper.clientHeight),Z=oe)}return{from:F,to:Math.max(Z,F+1)}}function co(e,t){if(Et(e,"scrollCursorIntoView"))return;var i=e.display,a=i.sizer.getBoundingClientRect(),h=null;if(t.top+a.top<0?h=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(h=!1),h!=null&&!n){var F=u("div","\u200B",null,`position: absolute; + top: `+(t.top-i.viewOffset-wa(e.display))+`px; height: `+(t.bottom-t.top+tt(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(F),F.scrollIntoView(h),e.display.lineSpace.removeChild(F)}}function Ro(e,t,i,a){a==null&&(a=0);var h;!e.options.lineWrapping&&t==i&&(t=t.ch?jt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?jt(t.line,t.ch+1,"before"):t);for(var F=0;F<5;F++){var Z=!1,re=Jn(e,t),oe=!i||i==t?re:Jn(e,i);h={left:Math.min(re.left,oe.left),top:Math.min(re.top,oe.top)-a,right:Math.max(re.left,oe.left),bottom:Math.max(re.bottom,oe.bottom)+a};var de=Oi(e,h),Ue=e.doc.scrollTop,Je=e.doc.scrollLeft;if(de.scrollTop!=null&&(Ai(e,de.scrollTop),Math.abs(e.doc.scrollTop-Ue)>1&&(Z=!0)),de.scrollLeft!=null&&(Ma(e,de.scrollLeft),Math.abs(e.doc.scrollLeft-Je)>1&&(Z=!0)),!Z)break}return h}function Gi(e,t){var i=Oi(e,t);i.scrollTop!=null&&Ai(e,i.scrollTop),i.scrollLeft!=null&&Ma(e,i.scrollLeft)}function Oi(e,t){var i=e.display,a=Nr(e.display);t.top<0&&(t.top=0);var h=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,F=le(e),Z={};t.bottom-t.top>F&&(t.bottom=t.top+F);var re=e.doc.height+_e(i),oe=t.topre-a;if(t.toph+F){var Ue=Math.min(t.top,(de?re:t.bottom)-F);Ue!=h&&(Z.scrollTop=Ue)}var Je=e.options.fixedGutter?0:i.gutters.offsetWidth,gt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-Je,ht=Ae(e)-i.gutters.offsetWidth,Gt=t.right-t.left>ht;return Gt&&(t.right=t.left+ht),t.left<10?Z.scrollLeft=0:t.leftht+gt-3&&(Z.scrollLeft=t.right+(Gt?0:10)-ht),Z}function Vi(e,t){if(t==null)return;Xi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function yi(e){Xi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ri(e,t,i){(t!=null||i!=null)&&Xi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function fo(e,t){Xi(e),e.curOp.scrollToPos=t}function Xi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=rn(e,t.from),a=rn(e,t.to);Di(e,i,a,t.margin)}}function Di(e,t,i,a){var h=Oi(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-a,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+a});Ri(e,h.scrollLeft,h.scrollTop)}function Ai(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;N||ji(e,{top:t}),bi(e,t,!0),N&&ji(e),Ni(e,100)}function bi(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Ma(e,t,i,a){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)return;e.doc.scrollLeft=t,jr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function hi(e){var t=e.display,i=t.gutters.offsetWidth,a=Math.round(e.doc.height+_e(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:a,scrollHeight:a+tt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var pi=function(e,t,i){this.cm=i;var a=this.vert=u("div",[u("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=u("div",[u("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=h.tabIndex=-1,e(a),e(h),He(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),He(h,"scroll",function(){h.clientWidth&&t(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,B&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var h=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+h)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var F=e.viewWidth-e.barLeft-(i?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+F)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?a:0,bottom:t?a:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=s&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ie,this.disableVert=new ie},pi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function a(){var h=e.getBoundingClientRect(),F=i=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);F!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ei=function(){};Ei.prototype.update=function(){return{bottom:0,right:0}},Ei.prototype.setScrollLeft=function(){},Ei.prototype.setScrollTop=function(){},Ei.prototype.clear=function(){};function mi(e,t){t||(t=hi(e));var i=e.display.barWidth,a=e.display.barHeight;Yi(e,t);for(var h=0;h<4&&i!=e.display.barWidth||a!=e.display.barHeight;h++)i!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,hi(e)),i=e.display.barWidth,a=e.display.barHeight}function Yi(e,t){var i=e.display,a=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=a.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=a.bottom)+"px",i.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=a.bottom+"px",i.scrollbarFiller.style.width=a.right+"px"):i.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=a.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var $i={native:pi,null:Ei};function Qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&g(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),He(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Ma(e,t):Ai(e,t)},e),e.display.scrollbars.addClass&&U(e.display.wrapper,e.display.scrollbars.addClass)}var Ii=0;function ui(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ii},zr(e.curOp)}function xi(e){var t=e.curOp;t&&Fn(t,function(i){for(var a=0;a=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new qa(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ao(e){e.updatedDisplay=e.mustUpdate&&Ci(e.cm,e.update)}function ho(e){var t=e.cm,i=t.display;e.updatedDisplay&&Si(t),e.barMeasure=hi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=je(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+tt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Ae(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function ao(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,a=gn(e,t.highlightFrontier),h=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(F){if(a.line>=e.display.viewFrom){var Z=F.styles,re=F.text.length>e.options.maxHighlightLength?En(t.mode,a.state):null,oe=Xe(e,F,a,!0);re&&(a.state=re),F.styles=oe.styles;var de=F.styleClasses,Ue=oe.classes;Ue?F.styleClasses=Ue:de&&(F.styleClasses=null);for(var Je=!Z||Z.length!=F.styles.length||de!=Ue&&(!de||!Ue||de.bgClass!=Ue.bgClass||de.textClass!=Ue.textClass),gt=0;!Je&>i)return Ni(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),h.length&&Wa(e,function(){for(var F=0;F=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&si(e)==0)return!1;ca(e)&&(ra(e),t.dims=cr(e));var h=a.first+a.size,F=Math.max(t.visible.from-e.options.viewportMargin,a.first),Z=Math.min(h,t.visible.to+e.options.viewportMargin);i.viewFromZ&&i.viewTo-Z<20&&(Z=Math.min(h,i.viewTo)),Tr&&(F=$t(e.doc,F),Z=Ie(e.doc,Z));var re=F!=i.viewFrom||Z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;fi(e,F,Z),i.viewOffset=fn(Sn(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var oe=si(e);if(!re&&oe==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var de=oo(e);return oe>4&&(i.lineDiv.style.display="none"),vo(e,i.updateLineNumbers,t.dims),oe>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,so(de),m(i.cursorDiv),m(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,re&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Ni(e,400)),i.updateLineNumbers=null,!0}function Ji(e,t){for(var i=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==Ae(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+_e(e.display)-le(e),i.top)}),t.visible=ki(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=ki(e.display,e.doc,i));if(!Ci(e,t))break;Si(e);var h=hi(e);$r(e),mi(e,h),Vr(e,h),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,t){var i=new qa(e,t);if(Ci(e,i)){Si(e),Ji(e,i);var a=hi(e);$r(e),mi(e,a),Vr(e,a),i.finish()}}function vo(e,t,i){var a=e.display,h=e.options.lineNumbers,F=a.lineDiv,Z=F.firstChild;function re(Gt){var un=Gt.nextSibling;return P&&s&&e.display.currentWheelTarget==Gt?Gt.style.display="none":Gt.parentNode.removeChild(Gt),un}for(var oe=a.view,de=a.viewFrom,Ue=0;Ue-1&&(ht=!1),Zr(e,Je,de,i)),ht&&(m(Je.lineNumber),Je.lineNumber.appendChild(document.createTextNode(la(e.options,de)))),Z=Je.node.nextSibling}de+=Je.size}for(;Z;)Z=re(Z)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Vr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+tt(e)+"px"}function jr(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var a=da(t)-t.scroller.scrollLeft+e.doc.scrollLeft,h=t.gutters.offsetWidth,F=a+"px",Z=0;ZZ.clientWidth,oe=Z.scrollHeight>Z.clientHeight;if(!(a&&re||h&&oe))return;if(h&&s&&P){e:for(var de=t.target,Ue=F.view;de!=Z;de=de.parentNode)for(var Je=0;Je=0&&On(e,a.to())<=0)return i}return-1};var Kr=function(e,t){this.anchor=e,this.head=t};Kr.prototype.from=function(){return Cr(this.anchor,this.head)},Kr.prototype.to=function(){return Sr(this.anchor,this.head)},Kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(e,t,i){var a=e&&e.options.selectionsMayTouch,h=t[i];t.sort(function(gt,ht){return On(gt.from(),ht.from())}),i=ae(t,h);for(var F=1;F0:oe>=0){var de=Cr(re.from(),Z.from()),Ue=Sr(re.to(),Z.to()),Je=re.empty()?Z.from()==Z.head:re.from()==re.head;F<=i&&--i,t.splice(--F,2,new Kr(Je?Ue:de,Je?de:Ue))}}return new Ha(t,i)}function Bn(e,t){return new Ha([new Kr(e,t||e)],0)}function er(e){return e.text?jt(e.from.line+e.text.length-1,se(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function kr(e,t){if(On(e,t.from)<0)return e;if(On(e,t.to)<=0)return er(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=er(t).ch-t.to.ch),jt(i,a)}function oa(e,t){for(var i=[],a=0;a1&&e.remove(re.line+1,Gt-1),e.insert(re.line+1,kn)}Zn(e,"change",e,t)}function wa(e,t,i){function a(h,F,Z){if(h.linked)for(var re=0;re1&&!e.done[e.done.length-2].ranges)return e.done.pop(),se(e.done)}function Es(e,t,i,a){var h=e.history;h.undone.length=0;var F=+new Date,Z,re;if((h.lastOp==a||h.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&h.lastModTime>F-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(Z=pl(h,h.lastOp==a)))re=se(Z.changes),On(t.from,t.to)==0&&On(t.from,re.to)==0?re.to=er(t):Z.changes.push(rs(e,t));else{var oe=se(h.done);for((!oe||!oe.ranges)&&Go(e.sel,h.done),Z={changes:[rs(e,t)],generation:h.generation},h.done.push(Z);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(i),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=F,h.lastOp=h.lastSelOp=a,h.lastOrigin=h.lastSelOrigin=t.origin,re||st(e,"historyAdded")}function ml(e,t,i,a){var h=t.charAt(0);return h=="*"||h=="+"&&i.ranges.length==a.ranges.length&&i.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,i,a){var h=e.history,F=a&&a.origin;i==h.lastSelOp||F&&h.lastSelOrigin==F&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==F||ml(e,F,se(h.done),t))?h.done[h.done.length-1]=t:Go(t,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=F,h.lastSelOp=i,a&&a.clearRedo!==!1&&bs(h.undone)}function Go(e,t){var i=se(t);i&&i.ranges&&i.equals(e)||t.push(e)}function xs(e,t,i,a){var h=t["spans_"+e.id],F=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,a),function(Z){Z.markedSpans&&((h||(h=t["spans_"+e.id]={}))[F]=Z.markedSpans),++F})}function gl(e){if(!e)return null;for(var t,i=0;i-1&&(se(re)[Je]=de[Je],delete de[Je]))}}return a}function as(e,t,i,a){if(a){var h=e.anchor;if(i){var F=On(t,h)<0;F!=On(i,h)<0?(h=t,t=i):F!=On(t,i)<0&&(t=i)}return new Kr(h,t)}else return new Kr(i||t,t)}function Vo(e,t,i,a,h){h==null&&(h=e.cm&&(e.cm.display.shift||e.extend)),za(e,new Ha([as(e.sel.primary(),t,i,h)],0),a)}function _s(e,t,i){for(var a=[],h=e.cm&&(e.cm.display.shift||e.extend),F=0;F=t.ch:re.to>t.ch))){if(h&&(st(oe,"beforeCursorEnter"),oe.explicitlyCleared))if(F.markedSpans){--Z;continue}else break;if(!oe.atomic)continue;if(i){var Je=oe.find(a<0?1:-1),gt=void 0;if((a<0?Ue:de)&&(Je=Ds(e,Je,-a,Je&&Je.line==t.line?F:null)),Je&&Je.line==t.line&&(gt=On(Je,i))&&(a<0?gt<0:gt>0))return yo(e,Je,t,a,h)}var ht=oe.find(a<0?-1:1);return(a<0?de:Ue)&&(ht=Ds(e,ht,a,ht.line==t.line?F:null)),ht?yo(e,ht,t,a,h):null}}return t}function Yo(e,t,i,a,h){var F=a||1,Z=yo(e,t,i,F,h)||!h&&yo(e,t,i,F,!0)||yo(e,t,i,-F,h)||!h&&yo(e,t,i,-F,!0);return Z||(e.cantEdit=!0,jt(e.first,0))}function Ds(e,t,i,a){return i<0&&t.ch==0?t.line>e.first?S(e,jt(t.line-1)):null:i>0&&t.ch==(a||Sn(e,t.line)).text.length?t.line=0;--h)Ls(e,{from:a[h].from,to:a[h].to,text:h?[""]:t.text,origin:t.origin});else Ls(e,t)}function Ls(e,t){if(t.text.length==1&&t.text[0]==""&&On(t.from,t.to)==0)return;var i=oa(e,t);Es(e,t,i,e.cm?e.cm.curOp.id:NaN),Po(e,t,i,Or(e,t));var a=[];wa(e,function(h,F){!F&&ae(a,h.history)==-1&&(Ns(h.history,t),a.push(h.history)),Po(h,t,null,Or(h,t))})}function $o(e,t,i){var a=e.cm&&e.cm.state.suppressEdits;if(a&&!i)return;for(var h=e.history,F,Z=e.sel,re=t=="undo"?h.done:h.undone,oe=t=="undo"?h.undone:h.done,de=0;de=0;--ht){var Gt=gt(ht);if(Gt)return Gt.v}}function Ms(e,t){if(t==0)return;if(e.first+=t,e.sel=new Ha(we(e.sel.ranges,function(h){return new Kr(jt(h.anchor.line+t,h.anchor.ch),jt(h.head.line+t,h.head.ch))}),e.sel.primIndex),e.cm){Yr(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,a=i.viewFrom;ae.lastLine())return;if(t.from.lineF&&(t={from:t.from,to:jt(F,Sn(e,F).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Hr(e,t.from,t.to),i||(i=oa(e,t)),e.cm?El(e.cm,t,a):Hi(e,t,a),Xo(e,i,Me),e.cantEdit&&Yo(e,jt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var a=e.doc,h=e.display,F=t.from,Z=t.to,re=!1,oe=F.line;e.options.lineWrapping||(oe=pr(lt(Sn(a,F.line))),a.iter(oe,Z.line+1,function(ht){if(ht==h.maxLine)return re=!0,!0})),a.sel.contains(t.from,t.to)>-1&&Fe(e),Hi(a,t,i,Qa(e)),e.options.lineWrapping||(a.iter(oe,F.line+t.text.length,function(ht){var Gt=Wn(ht);Gt>h.maxLineLength&&(h.maxLine=ht,h.maxLineLength=Gt,h.maxLineChanged=!0,re=!1)}),re&&(e.curOp.updateMaxLine=!0)),lr(a,F.line),Ni(e,400);var de=t.text.length-(Z.line-F.line)-1;t.full?Yr(e):F.line==Z.line&&t.text.length==1&&!gi(e.doc,t)?Qr(e,F.line,"text"):Yr(e,F.line,Z.line+1,de);var Ue=Se(e,"changes"),Je=Se(e,"change");if(Je||Ue){var gt={from:F,to:Z,text:t.text,removed:t.removed,origin:t.origin};Je&&Zn(e,"change",e,gt),Ue&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(gt)}e.display.selForContextMenu=null}function Eo(e,t,i,a,h){var F;a||(a=i),On(a,i)<0&&(F=[a,i],i=F[0],a=F[1]),typeof t=="string"&&(t=e.splitLines(t)),bo(e,{from:i,to:a,text:t,origin:h})}function ks(e,t,i,a){i1||!(this.children[0]instanceof Mo))){var re=[];this.collapse(re),this.children=[new Mo(re)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var Z=h.lines.length%25+25,re=Z;re10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var a=0;ae.display.maxLineLength&&(e.display.maxLine=de,e.display.maxLineLength=Ue,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&Yr(e,a,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Zn(e,"markerCleared",e,this,a,h),t&&xi(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,a,h=0;h0||Z==0&&F.clearWhenEmpty!==!1)return F;if(F.replacedWith&&(F.collapsed=!0,F.widgetNode=D("span",[F.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||F.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(F.widgetNode.insertLeft=!0)),F.collapsed){if(Dt(e,t.line,t,i,F)||t.line!=i.line&&Dt(e,i.line,t,i,F))throw new Error("Inserting collapsed marker partially overlapping an existing one");Vn()}F.addToHistory&&Es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var re=t.line,oe=e.cm,de;if(e.iter(re,i.line+1,function(Je){oe&&F.collapsed&&!oe.options.lineWrapping&<(Je)==oe.display.maxLine&&(de=!0),F.collapsed&&re!=t.line&&Ir(Je,0),Pr(Je,new jn(F,re==t.line?t.ch:null,re==i.line?i.ch:null)),++re}),F.collapsed&&e.iter(t.line,i.line+1,function(Je){Pt(e,Je)&&Ir(Je,0)}),F.clearOnEnter&&He(F,"beforeCursorEnter",function(){return F.clear()}),F.readOnly&&($n(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),F.collapsed&&(F.id=++Us,F.atomic=!0),oe){if(de&&(oe.curOp.updateMaxLine=!0),F.collapsed)Yr(oe,t.line,i.line+1);else if(F.className||F.startStyle||F.endStyle||F.css||F.attributes||F.title)for(var Ue=t.line;Ue<=i.line;Ue++)Qr(oe,Ue,"text");F.atomic&&Os(oe.doc),Zn(oe,"markerAdded",oe,F)}return F}var No=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;oe--)bo(this,a[oe]);re?Ss(this,re):this.cm&&yi(this.cm)}),undo:va(function(){$o(this,"undo")}),redo:va(function(){$o(this,"redo")}),undoSelection:va(function(){$o(this,"undo",!0)}),redoSelection:va(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,a=0;a=e.ch)&&t.push(h.marker.parent||h.marker)}return t},findMarks:function(e,t,i){e=S(this,e),t=S(this,t);var a=[],h=e.line;return this.iter(e.line,t.line+1,function(F){var Z=F.markedSpans;if(Z)for(var re=0;re=oe.to||oe.from==null&&h!=e.line||oe.from!=null&&h==t.line&&oe.from>=t.ch)&&(!i||i(oe.marker))&&a.push(oe.marker.parent||oe.marker)}++h}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var a=0;ae)return t=e,!0;e-=F,++i}),S(this,jt(i,t))},indexFromPos:function(e){e=S(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Ue=e.dataTransfer.getData("Text");if(Ue){var Je;if(t.state.draggingText&&!t.state.draggingText.copy&&(Je=t.listSelections()),Xo(t.doc,Bn(i,i)),Je)for(var gt=0;gt=0;re--)Eo(e.doc,"",a[re].from,a[re].to,"+delete");yi(e)})}function os(e,t,i){var a=ze(e.text,t+i,i);return a<0||a>e.text.length?null:a}function ss(e,t,i){var a=os(e,t.ch,i);return a==null?null:new jt(t.line,a,i<0?"after":"before")}function ls(e,t,i,a,h){if(e){t.doc.direction=="rtl"&&(h=-h);var F=hn(i,t.doc.direction);if(F){var Z=h<0?se(F):F[0],re=h<0==(Z.level==1),oe=re?"after":"before",de;if(Z.level>0||t.doc.direction=="rtl"){var Ue=Ke(t,i);de=h<0?i.text.length-1:0;var Je=ut(t,Ue,de).top;de=Tt(function(gt){return ut(t,Ue,gt).top==Je},h<0==(Z.level==1)?Z.from:Z.to-1,de),oe=="before"&&(de=os(i,de,1))}else de=h<0?Z.to:Z.from;return new jt(a,de,oe)}}return new jt(a,h<0?i.text.length:0,h<0?"before":"after")}function kl(e,t,i,a){var h=hn(t,e.doc.direction);if(!h)return ss(t,i,a);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var F=Nt(h,i.ch,i.sticky),Z=h[F];if(e.doc.direction=="ltr"&&Z.level%2==0&&(a>0?Z.to>i.ch:Z.from=Z.from&>>=Ue.begin)){var ht=Je?"before":"after";return new jt(i.line,gt,ht)}}var Gt=function(kn,Gn,In){for(var Yn=function(sa,Fa){return Fa?new jt(i.line,re(sa,1),"before"):new jt(i.line,sa,"after")};kn>=0&&kn0==(_r.level!=1),Fr=dr?In.begin:re(In.end,-1);if(_r.from<=Fr&&Fr<_r.to)return Yn(Fr,dr);if(Fr=dr?_r.from:re(_r.to,-1),In.begin<=Fr&&Fr0?Ue.end:re(Ue.begin,-1);return Cn!=null&&!(a>0&&Cn==t.text.length)&&(un=Gt(a>0?0:h.length-1,a,de(Cn)),un)?un:null}var Fo={selectAll:As,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Me)},killLine:function(e){return _o(e,function(t){if(t.empty()){var i=Sn(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)h=new jt(h.line,h.ch+1),e.replaceRange(F.charAt(h.ch-1)+F.charAt(h.ch-2),jt(h.line,h.ch-2),h,"+transpose");else if(h.line>e.doc.first){var Z=Sn(e.doc,h.line-1).text;Z&&(h=new jt(h.line,1),e.replaceRange(F.charAt(0)+e.doc.lineSeparator()+Z.charAt(Z.length-1),jt(h.line-1,Z.length-1),h,"+transpose"))}}i.push(new Kr(h,h))}e.setSelections(i)})},newlineAndIndent:function(e){return Wa(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var a=0;ae&&On(t,this.pos)==0&&i==this.button};var Wo,Ho;function Wl(e,t){var i=+new Date;return Ho&&Ho.compare(i,e,t)?(Wo=Ho=null,"triple"):Wo&&Wo.compare(i,e,t)?(Ho=new cs(i,e,t),Wo=null,"double"):(Wo=new cs(i,e,t),Ho=null,"single")}function el(e){var t=this,i=t.display;if(Et(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Ra(i,e)){P||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(ds(t,e))return;var a=_a(t,e),h=et(e),F=a?Wl(a,h):"single";if(window.focus(),h==1&&t.state.selectingText&&t.state.selectingText(e),a&&Hl(t,h,a,F,e))return;h==1?a?zl(t,a,F,e):at(e)==i.scroller&&ce(e):h==2?(a&&Vo(t.doc,a),setTimeout(function(){return i.input.focus()},20)):h==3&&(L?t.display.input.onContextMenu(e):no(t))}function Hl(e,t,i,a,h){var F="Click";return a=="double"?F="Double"+F:a=="triple"&&(F="Triple"+F),F=(t==1?"Left":t==2?"Middle":"Right")+F,Bo(e,Gs(F,h),h,function(Z){if(typeof Z=="string"&&(Z=Fo[Z]),!Z)return!1;var re=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),re=Z(e,i)!=Ze}finally{e.state.suppressEdits=!1}return re})}function Kl(e,t,i){var a=e.getOption("configureMouse"),h=a?a(e,t,i):{};if(h.unit==null){var F=l?i.shiftKey&&i.metaKey:i.altKey;h.unit=F?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(h.extend==null||e.doc.extend)&&(h.extend=e.doc.extend||i.shiftKey),h.addNew==null&&(h.addNew=s?i.metaKey:i.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(s?i.altKey:i.ctrlKey)),h}function zl(e,t,i,a){B?setTimeout(I(Mi,e),0):e.curOp.focus=j();var h=Kl(e,i,a),F=e.doc.sel,Z;e.options.dragDrop&&Rt&&!e.isReadOnly()&&i=="single"&&(Z=F.contains(t))>-1&&(On((Z=F.ranges[Z]).from(),t)<0||t.xRel>0)&&(On(Z.to(),t)>0||t.xRel<0)?Gl(e,a,t,h):Vl(e,a,t,h)}function Gl(e,t,i,a){var h=e.display,F=!1,Z=ma(e,function(de){P&&(h.scroller.draggable=!1),e.state.draggingText=!1,kt(h.wrapper.ownerDocument,"mouseup",Z),kt(h.wrapper.ownerDocument,"mousemove",re),kt(h.scroller,"dragstart",oe),kt(h.scroller,"drop",Z),F||(ce(de),a.addNew||Vo(e.doc,i,null,null,a.extend),P&&!b||B&&C==9?setTimeout(function(){h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus()},20):h.input.focus())}),re=function(de){F=F||Math.abs(t.clientX-de.clientX)+Math.abs(t.clientY-de.clientY)>=10},oe=function(){return F=!0};P&&(h.scroller.draggable=!0),e.state.draggingText=Z,Z.copy=!a.moveOnDrag,h.scroller.dragDrop&&h.scroller.dragDrop(),He(h.wrapper.ownerDocument,"mouseup",Z),He(h.wrapper.ownerDocument,"mousemove",re),He(h.scroller,"dragstart",oe),He(h.scroller,"drop",Z),no(e),setTimeout(function(){return h.input.focus()},20)}function tl(e,t,i){if(i=="char")return new Kr(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Kr(jt(t.line,0),S(e.doc,jt(t.line+1,0)));var a=i(e,t);return new Kr(a.from,a.to)}function Vl(e,t,i,a){var h=e.display,F=e.doc;ce(t);var Z,re,oe=F.sel,de=oe.ranges;if(a.addNew&&!a.extend?(re=F.sel.contains(i),re>-1?Z=de[re]:Z=new Kr(i,i)):(Z=F.sel.primary(),re=F.sel.primIndex),a.unit=="rectangle")a.addNew||(Z=new Kr(i,i)),i=_a(e,t,!0,!0),re=-1;else{var Ue=tl(e,i,a.unit);a.extend?Z=as(Z,Ue.anchor,Ue.head,a.extend):Z=Ue}a.addNew?re==-1?(re=de.length,za(F,wr(e,de.concat([Z]),re),{scroll:!1,origin:"*mouse"})):de.length>1&&de[re].empty()&&a.unit=="char"&&!a.extend?(za(F,wr(e,de.slice(0,re).concat(de.slice(re+1)),0),{scroll:!1,origin:"*mouse"}),oe=F.sel):is(F,re,Z,Be):(re=0,za(F,new Ha([Z],0),Be),oe=F.sel);var Je=i;function gt(In){if(On(Je,In)==0)return;if(Je=In,a.unit=="rectangle"){for(var Yn=[],_r=e.options.tabSize,dr=Q(Sn(F,i.line).text,i.ch,_r),Fr=Q(Sn(F,In.line).text,In.ch,_r),sa=Math.min(dr,Fr),Fa=Math.max(dr,Fr),ya=Math.min(i.line,In.line),oi=Math.min(e.lastLine(),Math.max(i.line,In.line));ya<=oi;ya++){var ti=Sn(F,ya).text,Pa=Ve(ti,sa,_r);sa==Fa?Yn.push(new Kr(jt(ya,Pa),jt(ya,Pa))):ti.length>Pa&&Yn.push(new Kr(jt(ya,Pa),jt(ya,Ve(ti,Fa,_r))))}Yn.length||Yn.push(new Kr(i,i)),za(F,wr(e,oe.ranges.slice(0,re).concat(Yn),re),{origin:"*mouse",scroll:!1}),e.scrollIntoView(In)}else{var ni=Z,Ka=tl(e,In,a.unit),ka=ni.anchor,La;On(Ka.anchor,ka)>0?(La=Ka.head,ka=Cr(ni.from(),Ka.anchor)):(La=Ka.anchor,ka=Sr(ni.to(),Ka.head));var xa=oe.ranges.slice(0);xa[re]=Xl(e,new Kr(S(F,ka),La)),za(F,wr(e,xa,re),Be)}}var ht=h.wrapper.getBoundingClientRect(),Gt=0;function un(In){var Yn=++Gt,_r=_a(e,In,!0,a.unit=="rectangle");if(!_r)return;if(On(_r,Je)!=0){e.curOp.focus=j(),gt(_r);var dr=ki(h,F);(_r.line>=dr.to||_r.lineht.bottom?20:0;Fr&&setTimeout(ma(e,function(){if(Gt!=Yn)return;h.scroller.scrollTop+=Fr,un(In)}),50)}}function Cn(In){e.state.selectingText=!1,Gt=Infinity,In&&(ce(In),h.input.focus()),kt(h.wrapper.ownerDocument,"mousemove",kn),kt(h.wrapper.ownerDocument,"mouseup",Gn),F.history.lastSelOrigin=null}var kn=ma(e,function(In){In.buttons===0||!et(In)?Cn(In):un(In)}),Gn=ma(e,Cn);e.state.selectingText=Gn,He(h.wrapper.ownerDocument,"mousemove",kn),He(h.wrapper.ownerDocument,"mouseup",Gn)}function Xl(e,t){var i=t.anchor,a=t.head,h=Sn(e.doc,i.line);if(On(i,a)==0&&i.sticky==a.sticky)return t;var F=hn(h);if(!F)return t;var Z=Nt(F,i.ch,i.sticky),re=F[Z];if(re.from!=i.ch&&re.to!=i.ch)return t;var oe=Z+(re.from==i.ch==(re.level!=1)?0:1);if(oe==0||oe==F.length)return t;var de;if(a.line!=i.line)de=(a.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ue=Nt(F,a.ch,a.sticky),Je=Ue-Z||(a.ch-i.ch)*(re.level==1?-1:1);Ue==oe-1||Ue==oe?de=Je<0:de=Je>0}var gt=F[oe+(de?-1:0)],ht=de==(gt.level==1),Gt=ht?gt.from:gt.to,un=ht?"after":"before";return i.ch==Gt&&i.sticky==un?t:new Kr(new jt(i.line,Gt,un),a)}function nl(e,t,i,a){var h,F;if(t.touches)h=t.touches[0].clientX,F=t.touches[0].clientY;else try{h=t.clientX,F=t.clientY}catch(gt){return!1}if(h>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&ce(t);var Z=e.display,re=Z.lineDiv.getBoundingClientRect();if(F>re.bottom||!Se(e,i))return Ce(t);F-=re.top-Z.viewOffset;for(var oe=0;oe=h){var Ue=Br(e.doc,F),Je=e.display.gutterSpecs[oe];return st(e,i,e,Ue,Je.className,t),Ce(t)}}}function ds(e,t){return nl(e,t,"gutterClick",!0)}function rl(e,t){if(Ra(e.display,t)||Yl(e,t))return;if(Et(e,t,"contextmenu"))return;L||e.display.input.onContextMenu(t)}function Yl(e,t){return Se(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Er(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var t=e.optionHandlers;function i(a,h,F,Z){e.defaults[a]=h,F&&(t[a]=Z?function(re,oe,de){de!=wo&&F(re,oe,de)}:F)}e.defineOption=i,e.Init=wo,i("value","",function(a,h){return a.setValue(h)},!0),i("mode",null,function(a,h){a.doc.modeOption=h,Aa(a)},!0),i("indentUnit",2,Aa,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(a){Xa(a),Er(a),Yr(a)},!0),i("lineSeparator",null,function(a,h){if(a.doc.lineSep=h,!h)return;var F=[],Z=a.doc.first;a.doc.iter(function(oe){for(var de=0;;){var Ue=oe.text.indexOf(h,de);if(Ue==-1)break;de=Ue+h.length,F.push(jt(Z,Ue))}Z++});for(var re=F.length-1;re>=0;re--)Eo(a.doc,h,F[re],jt(F[re].line,F[re].ch+h.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,h,F){a.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),F!=wo&&a.refresh()}),i("specialCharPlaceholder",Un,function(a){return a.refresh()},!0),i("electricChars",!0),i("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(a,h){return a.getInputField().spellcheck=h},!0),i("autocorrect",!1,function(a,h){return a.getInputField().autocorrect=h},!0),i("autocapitalize",!1,function(a,h){return a.getInputField().autocapitalize=h},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(a){al(a),ci(a)},!0),i("keyMap","default",function(a,h,F){var Z=Jo(h),re=F!=wo&&Jo(F);re&&re.detach&&re.detach(a,Z),Z.attach&&Z.attach(a,re||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Jl,!0),i("gutters",[],function(a,h){a.display.gutterSpecs=Ua(h,a.options.lineNumbers),ci(a)},!0),i("fixedGutter",!0,function(a,h){a.display.gutters.style.left=h?da(a.display)+"px":"0",a.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(a){return mi(a)},!0),i("scrollbarStyle","native",function(a){Qi(a),mi(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),i("lineNumbers",!1,function(a,h){a.display.gutterSpecs=Ua(a.options.gutters,h),ci(a)},!0),i("firstLineNumber",1,ci,!0),i("lineNumberFormatter",function(a){return a},ci,!0),i("showCursorWhenSelecting",!1,$r,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(a,h){h=="nocursor"&&(wi(a),a.display.input.blur()),a.display.input.readOnlyChanged(h)}),i("screenReaderLabel",null,function(a,h){h=h===""?null:h,a.display.input.screenReaderLabelChanged(h)}),i("disableInput",!1,function(a,h){h||a.display.input.reset()},!0),i("dragDrop",!0,Ql),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,$r,!0),i("singleCursorHeightPerLine",!0,$r,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Xa,!0),i("addModeClass",!1,Xa,!0),i("pollInterval",100),i("undoDepth",200,function(a,h){return a.doc.history.undoDepth=h}),i("historyEventDelay",1250),i("viewportMargin",10,function(a){return a.refresh()},!0),i("maxHighlightLength",1e4,Xa,!0),i("moveInputWithCursor",!0,function(a,h){h||a.display.input.resetPosition()}),i("tabindex",null,function(a,h){return a.display.input.getField().tabIndex=h||""}),i("autofocus",null),i("direction","ltr",function(a,h){return a.doc.setDirection(h)},!0),i("phrases",null)}function Ql(e,t,i){var a=i&&i!=wo;if(!t!=!a){var h=e.display.dragFunctions,F=t?He:kt;F(e.display.scroller,"dragstart",h.start),F(e.display.scroller,"dragenter",h.enter),F(e.display.scroller,"dragover",h.over),F(e.display.scroller,"dragleave",h.leave),F(e.display.scroller,"drop",h.drop)}}function Jl(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(g(e.display.wrapper,"CodeMirror-wrap"),bn(e)),Na(e),Yr(e),Er(e),setTimeout(function(){return mi(e)},100)}function ga(e,t){var i=this;if(!(this instanceof ga))return new ga(e,t);this.options=t=t?W(t):{},W(il,t,!1);var a=t.value;typeof a=="string"?a=new ei(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var h=new ga.inputStyles[t.inputStyle](this),F=this.display=new Ui(e,a,h,t);F.wrapper.CodeMirror=this,al(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ie,keySeq:null,specialChars:null},t.autofocus&&!r&&F.input.focus(),B&&C<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Zl(this),Dl(),ui(this),this.curOp.forceUpdate=!0,gs(this,a),t.autofocus&&!r||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&li(i)},20):wi(this);for(var Z in qo)qo.hasOwnProperty(Z)&&qo[Z](this,t[Z],wo);ca(this),t.finishInit&&t.finishInit(this);for(var re=0;re20*20}He(t.scroller,"touchstart",function(oe){if(!Et(e,oe)&&!F(oe)&&!ds(e,oe)){t.input.ensurePolled(),clearTimeout(i);var de=+new Date;t.activeTouch={start:de,moved:!1,prev:de-a.end<=300?a:null},oe.touches.length==1&&(t.activeTouch.left=oe.touches[0].pageX,t.activeTouch.top=oe.touches[0].pageY)}}),He(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),He(t.scroller,"touchend",function(oe){var de=t.activeTouch;if(de&&!Ra(t,oe)&&de.left!=null&&!de.moved&&new Date-de.start<300){var Ue=e.coordsChar(t.activeTouch,"page"),Je;!de.prev||Z(de,de.prev)?Je=new Kr(Ue,Ue):!de.prev.prev||Z(de,de.prev.prev)?Je=e.findWordAt(Ue):Je=new Kr(jt(Ue.line,0),S(e.doc,jt(Ue.line+1,0))),e.setSelection(Je.anchor,Je.head),e.focus(),ce(oe)}h()}),He(t.scroller,"touchcancel",h),He(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ai(e,t.scroller.scrollTop),Ma(e,t.scroller.scrollLeft,!0),st(e,"scroll",e))}),He(t.scroller,"mousewheel",function(oe){return Wi(e,oe)}),He(t.scroller,"DOMMouseScroll",function(oe){return Wi(e,oe)}),He(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(oe){Et(e,oe)||Le(oe)},over:function(oe){Et(e,oe)||(Rl(e,oe),Le(oe))},start:function(oe){return Ol(e,oe)},drop:ma(e,Tl),leave:function(oe){Et(e,oe)||Ws(e)}};var re=t.input.getField();He(re,"keyup",function(oe){return Zs.call(e,oe)}),He(re,"keydown",ma(e,Js)),He(re,"keypress",ma(e,qs)),He(re,"focus",function(oe){return li(e,oe)}),He(re,"blur",function(oe){return wi(e,oe)})}var fs=[];ga.defineInitHook=function(e){return fs.push(e)};function Ko(e,t,i,a){var h=e.doc,F;i==null&&(i="add"),i=="smart"&&(h.mode.indent?F=gn(e,t).state:i="prev");var Z=e.options.tabSize,re=Sn(h,t),oe=Q(re.text,null,Z);re.stateAfter&&(re.stateAfter=null);var de=re.text.match(/^\s*/)[0],Ue;if(!a&&!/\S/.test(re.text))Ue=0,i="not";else if(i=="smart"&&(Ue=h.mode.indent(F,re.text.slice(de.length),re.text),Ue==Ze||Ue>150)){if(!a)return;i="prev"}i=="prev"?t>h.first?Ue=Q(Sn(h,t-1).text,null,Z):Ue=0:i=="add"?Ue=oe+e.options.indentUnit:i=="subtract"?Ue=oe-e.options.indentUnit:typeof i=="number"&&(Ue=oe+i),Ue=Math.max(0,Ue);var Je="",gt=0;if(e.options.indentWithTabs)for(var ht=Math.floor(Ue/Z);ht;--ht)gt+=Z,Je+=" ";if(gtZ,oe=bt(t),de=null;if(re&&a.ranges.length>1)if(_i&&_i.text.join(` -`)==t){if(a.ranges.length%_i.text.length==0){de=[];for(var Ue=0;Ue<_i.text.length;Ue++)de.push(F.splitLines(_i.text[Ue]))}}else oe.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(de=we(oe,function(kn){return[kn]}));for(var Je=e.curOp.updateInput,gt=a.ranges.length-1;gt>=0;gt--){var ht=a.ranges[gt],Gt=ht.from(),un=ht.to();ht.empty()&&(i&&i>0?Gt=jt(Gt.line,Gt.ch-i):e.state.overwrite&&!re?un=jt(un.line,Math.min(Sn(F,un.line).text.length,un.ch+se(oe).length)):re&&_i&&_i.lineWise&&_i.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(F),F.scrollIntoView(h),e.display.lineSpace.removeChild(F)}}function Ro(e,t,i,a){a==null&&(a=0);var h;!e.options.lineWrapping&&t==i&&(t=t.ch?jt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?jt(t.line,t.ch+1,"before"):t);for(var F=0;F<5;F++){var Z=!1,re=Jn(e,t),oe=!i||i==t?re:Jn(e,i);h={left:Math.min(re.left,oe.left),top:Math.min(re.top,oe.top)-a,right:Math.max(re.left,oe.left),bottom:Math.max(re.bottom,oe.bottom)+a};var de=Oi(e,h),Ue=e.doc.scrollTop,Je=e.doc.scrollLeft;if(de.scrollTop!=null&&(Ai(e,de.scrollTop),Math.abs(e.doc.scrollTop-Ue)>1&&(Z=!0)),de.scrollLeft!=null&&(ka(e,de.scrollLeft),Math.abs(e.doc.scrollLeft-Je)>1&&(Z=!0)),!Z)break}return h}function Gi(e,t){var i=Oi(e,t);i.scrollTop!=null&&Ai(e,i.scrollTop),i.scrollLeft!=null&&ka(e,i.scrollLeft)}function Oi(e,t){var i=e.display,a=Rn(e.display);t.top<0&&(t.top=0);var h=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,F=le(e),Z={};t.bottom-t.top>F&&(t.bottom=t.top+F);var re=e.doc.height+_e(i),oe=t.topre-a;if(t.toph+F){var Ue=Math.min(t.top,(de?re:t.bottom)-F);Ue!=h&&(Z.scrollTop=Ue)}var Je=e.options.fixedGutter?0:i.gutters.offsetWidth,gt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-Je,ht=Ae(e)-i.gutters.offsetWidth,zt=t.right-t.left>ht;return zt&&(t.right=t.left+ht),t.left<10?Z.scrollLeft=0:t.leftht+gt-3&&(Z.scrollLeft=t.right+(zt?0:10)-ht),Z}function Vi(e,t){if(t==null)return;Xi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function yi(e){Xi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ri(e,t,i){(t!=null||i!=null)&&Xi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function fo(e,t){Xi(e),e.curOp.scrollToPos=t}function Xi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=rn(e,t.from),a=rn(e,t.to);Di(e,i,a,t.margin)}}function Di(e,t,i,a){var h=Oi(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-a,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+a});Ri(e,h.scrollLeft,h.scrollTop)}function Ai(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;N||ji(e,{top:t}),bi(e,t,!0),N&&ji(e),Ni(e,100)}function bi(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function ka(e,t,i,a){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)return;e.doc.scrollLeft=t,Ur(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function hi(e){var t=e.display,i=t.gutters.offsetWidth,a=Math.round(e.doc.height+_e(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:a,scrollHeight:a+tt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var pi=function(e,t,i){this.cm=i;var a=this.vert=u("div",[u("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=u("div",[u("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=h.tabIndex=-1,e(a),e(h),He(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),He(h,"scroll",function(){h.clientWidth&&t(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,B&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var h=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+h)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var F=e.viewWidth-e.barLeft-(i?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+F)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?a:0,bottom:t?a:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=s&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ie,this.disableVert=new ie},pi.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function a(){var h=e.getBoundingClientRect(),F=i=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);F!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ei=function(){};Ei.prototype.update=function(){return{bottom:0,right:0}},Ei.prototype.setScrollLeft=function(){},Ei.prototype.setScrollTop=function(){},Ei.prototype.clear=function(){};function mi(e,t){t||(t=hi(e));var i=e.display.barWidth,a=e.display.barHeight;Yi(e,t);for(var h=0;h<4&&i!=e.display.barWidth||a!=e.display.barHeight;h++)i!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,hi(e)),i=e.display.barWidth,a=e.display.barHeight}function Yi(e,t){var i=e.display,a=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=a.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=a.bottom)+"px",i.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=a.bottom+"px",i.scrollbarFiller.style.width=a.right+"px"):i.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=a.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var $i={native:pi,null:Ei};function Qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&g(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),He(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?ka(e,t):Ai(e,t)},e),e.display.scrollbars.addClass&&U(e.display.wrapper,e.display.scrollbars.addClass)}var Ii=0;function ui(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ii},zr(e.curOp)}function xi(e){var t=e.curOp;t&&Un(t,function(i){for(var a=0;a=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new qa(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ao(e){e.updatedDisplay=e.mustUpdate&&Ci(e.cm,e.update)}function ho(e){var t=e.cm,i=t.display;e.updatedDisplay&&Si(t),e.barMeasure=hi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=je(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+tt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Ae(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function ao(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,a=yn(e,t.highlightFrontier),h=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(F){if(a.line>=e.display.viewFrom){var Z=F.styles,re=F.text.length>e.options.maxHighlightLength?xn(t.mode,a.state):null,oe=Xe(e,F,a,!0);re&&(a.state=re),F.styles=oe.styles;var de=F.styleClasses,Ue=oe.classes;Ue?F.styleClasses=Ue:de&&(F.styleClasses=null);for(var Je=!Z||Z.length!=F.styles.length||de!=Ue&&(!de||!Ue||de.bgClass!=Ue.bgClass||de.textClass!=Ue.textClass),gt=0;!Je&>i)return Ni(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),h.length&&Ha(e,function(){for(var F=0;F=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&si(e)==0)return!1;da(e)&&(aa(e),t.dims=vn(e));var h=a.first+a.size,F=Math.max(t.visible.from-e.options.viewportMargin,a.first),Z=Math.min(h,t.visible.to+e.options.viewportMargin);i.viewFromZ&&i.viewTo-Z<20&&(Z=Math.min(h,i.viewTo)),Tr&&(F=Yt(e.doc,F),Z=Ie(e.doc,Z));var re=F!=i.viewFrom||Z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;fi(e,F,Z),i.viewOffset=dn(Tn(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var oe=si(e);if(!re&&oe==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var de=oo(e);return oe>4&&(i.lineDiv.style.display="none"),vo(e,i.updateLineNumbers,t.dims),oe>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,so(de),m(i.cursorDiv),m(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,re&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Ni(e,400)),i.updateLineNumbers=null,!0}function Ji(e,t){for(var i=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==Ae(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+_e(e.display)-le(e),i.top)}),t.visible=ki(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=ki(e.display,e.doc,i));if(!Ci(e,t))break;Si(e);var h=hi(e);Qr(e),mi(e,h),Vr(e,h),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,t){var i=new qa(e,t);if(Ci(e,i)){Si(e),Ji(e,i);var a=hi(e);Qr(e),mi(e,a),Vr(e,a),i.finish()}}function vo(e,t,i){var a=e.display,h=e.options.lineNumbers,F=a.lineDiv,Z=F.firstChild;function re(zt){var ln=zt.nextSibling;return P&&s&&e.display.currentWheelTarget==zt?zt.style.display="none":zt.parentNode.removeChild(zt),ln}for(var oe=a.view,de=a.viewFrom,Ue=0;Ue-1&&(ht=!1),qr(e,Je,de,i)),ht&&(m(Je.lineNumber),Je.lineNumber.appendChild(document.createTextNode(ua(e.options,de)))),Z=Je.node.nextSibling}de+=Je.size}for(;Z;)Z=re(Z)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Vr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+tt(e)+"px"}function Ur(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var a=Hr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,h=t.gutters.offsetWidth,F=a+"px",Z=0;ZZ.clientWidth,oe=Z.scrollHeight>Z.clientHeight;if(!(a&&re||h&&oe))return;if(h&&s&&P){e:for(var de=t.target,Ue=F.view;de!=Z;de=de.parentNode)for(var Je=0;Je=0&&On(e,a.to())<=0)return i}return-1};var Kr=function(e,t){this.anchor=e,this.head=t};Kr.prototype.from=function(){return xr(this.anchor,this.head)},Kr.prototype.to=function(){return Sr(this.anchor,this.head)},Kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(e,t,i){var a=e&&e.options.selectionsMayTouch,h=t[i];t.sort(function(gt,ht){return On(gt.from(),ht.from())}),i=ae(t,h);for(var F=1;F0:oe>=0){var de=xr(re.from(),Z.from()),Ue=Sr(re.to(),Z.to()),Je=re.empty()?Z.from()==Z.head:re.from()==re.head;F<=i&&--i,t.splice(--F,2,new Kr(Je?Ue:de,Je?de:Ue))}}return new Ka(t,i)}function Fn(e,t){return new Ka([new Kr(e,t||e)],0)}function nr(e){return e.text?jt(e.from.line+e.text.length-1,se(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Nr(e,t){if(On(e,t.from)<0)return e;if(On(e,t.to)<=0)return nr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=nr(t).ch-t.to.ch),jt(i,a)}function sa(e,t){for(var i=[],a=0;a1&&e.remove(re.line+1,zt-1),e.insert(re.line+1,Mn)}er(e,"change",e,t)}function Sa(e,t,i){function a(h,F,Z){if(h.linked)for(var re=0;re1&&!e.done[e.done.length-2].ranges)return e.done.pop(),se(e.done)}function Es(e,t,i,a){var h=e.history;h.undone.length=0;var F=+new Date,Z,re;if((h.lastOp==a||h.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&h.lastModTime>F-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(Z=pl(h,h.lastOp==a)))re=se(Z.changes),On(t.from,t.to)==0&&On(t.from,re.to)==0?re.to=nr(t):Z.changes.push(rs(e,t));else{var oe=se(h.done);for((!oe||!oe.ranges)&&Go(e.sel,h.done),Z={changes:[rs(e,t)],generation:h.generation},h.done.push(Z);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(i),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=F,h.lastOp=h.lastSelOp=a,h.lastOrigin=h.lastSelOrigin=t.origin,re||st(e,"historyAdded")}function ml(e,t,i,a){var h=t.charAt(0);return h=="*"||h=="+"&&i.ranges.length==a.ranges.length&&i.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,i,a){var h=e.history,F=a&&a.origin;i==h.lastSelOp||F&&h.lastSelOrigin==F&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==F||ml(e,F,se(h.done),t))?h.done[h.done.length-1]=t:Go(t,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=F,h.lastSelOp=i,a&&a.clearRedo!==!1&&bs(h.undone)}function Go(e,t){var i=se(t);i&&i.ranges&&i.equals(e)||t.push(e)}function xs(e,t,i,a){var h=t["spans_"+e.id],F=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,a),function(Z){Z.markedSpans&&((h||(h=t["spans_"+e.id]={}))[F]=Z.markedSpans),++F})}function gl(e){if(!e)return null;for(var t,i=0;i-1&&(se(re)[Je]=de[Je],delete de[Je]))}}return a}function as(e,t,i,a){if(a){var h=e.anchor;if(i){var F=On(t,h)<0;F!=On(i,h)<0?(h=t,t=i):F!=On(t,i)<0&&(t=i)}return new Kr(h,t)}else return new Kr(i||t,t)}function Vo(e,t,i,a,h){h==null&&(h=e.cm&&(e.cm.display.shift||e.extend)),Ga(e,new Ka([as(e.sel.primary(),t,i,h)],0),a)}function _s(e,t,i){for(var a=[],h=e.cm&&(e.cm.display.shift||e.extend),F=0;F=t.ch:re.to>t.ch))){if(h&&(st(oe,"beforeCursorEnter"),oe.explicitlyCleared))if(F.markedSpans){--Z;continue}else break;if(!oe.atomic)continue;if(i){var Je=oe.find(a<0?1:-1),gt=void 0;if((a<0?Ue:de)&&(Je=Ds(e,Je,-a,Je&&Je.line==t.line?F:null)),Je&&Je.line==t.line&&(gt=On(Je,i))&&(a<0?gt<0:gt>0))return yo(e,Je,t,a,h)}var ht=oe.find(a<0?-1:1);return(a<0?de:Ue)&&(ht=Ds(e,ht,a,ht.line==t.line?F:null)),ht?yo(e,ht,t,a,h):null}}return t}function Yo(e,t,i,a,h){var F=a||1,Z=yo(e,t,i,F,h)||!h&&yo(e,t,i,F,!0)||yo(e,t,i,-F,h)||!h&&yo(e,t,i,-F,!0);return Z||(e.cantEdit=!0,jt(e.first,0))}function Ds(e,t,i,a){return i<0&&t.ch==0?t.line>e.first?S(e,jt(t.line-1)):null:i>0&&t.ch==(a||Tn(e,t.line)).text.length?t.line=0;--h)Ls(e,{from:a[h].from,to:a[h].to,text:h?[""]:t.text,origin:t.origin});else Ls(e,t)}function Ls(e,t){if(t.text.length==1&&t.text[0]==""&&On(t.from,t.to)==0)return;var i=sa(e,t);Es(e,t,i,e.cm?e.cm.curOp.id:NaN),Po(e,t,i,Or(e,t));var a=[];Sa(e,function(h,F){!F&&ae(a,h.history)==-1&&(Ns(h.history,t),a.push(h.history)),Po(h,t,null,Or(h,t))})}function $o(e,t,i){var a=e.cm&&e.cm.state.suppressEdits;if(a&&!i)return;for(var h=e.history,F,Z=e.sel,re=t=="undo"?h.done:h.undone,oe=t=="undo"?h.undone:h.done,de=0;de=0;--ht){var zt=gt(ht);if(zt)return zt.v}}function Ms(e,t){if(t==0)return;if(e.first+=t,e.sel=new Ka(we(e.sel.ranges,function(h){return new Kr(jt(h.anchor.line+t,h.anchor.ch),jt(h.head.line+t,h.head.ch))}),e.sel.primIndex),e.cm){$r(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,a=i.viewFrom;ae.lastLine())return;if(t.from.lineF&&(t={from:t.from,to:jt(F,Tn(e,F).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Wr(e,t.from,t.to),i||(i=sa(e,t)),e.cm?El(e.cm,t,a):Hi(e,t,a),Xo(e,i,Me),e.cantEdit&&Yo(e,jt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,i){var a=e.doc,h=e.display,F=t.from,Z=t.to,re=!1,oe=F.line;e.options.lineWrapping||(oe=mr(lt(Tn(a,F.line))),a.iter(oe,Z.line+1,function(ht){if(ht==h.maxLine)return re=!0,!0})),a.sel.contains(t.from,t.to)>-1&&Fe(e),Hi(a,t,i,ja(e)),e.options.lineWrapping||(a.iter(oe,F.line+t.text.length,function(ht){var zt=Bn(ht);zt>h.maxLineLength&&(h.maxLine=ht,h.maxLineLength=zt,h.maxLineChanged=!0,re=!1)}),re&&(e.curOp.updateMaxLine=!0)),cr(a,F.line),Ni(e,400);var de=t.text.length-(Z.line-F.line)-1;t.full?$r(e):F.line==Z.line&&t.text.length==1&&!gi(e.doc,t)?Jr(e,F.line,"text"):$r(e,F.line,Z.line+1,de);var Ue=Se(e,"changes"),Je=Se(e,"change");if(Je||Ue){var gt={from:F,to:Z,text:t.text,removed:t.removed,origin:t.origin};Je&&er(e,"change",e,gt),Ue&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(gt)}e.display.selForContextMenu=null}function Eo(e,t,i,a,h){var F;a||(a=i),On(a,i)<0&&(F=[a,i],i=F[0],a=F[1]),typeof t=="string"&&(t=e.splitLines(t)),bo(e,{from:i,to:a,text:t,origin:h})}function ks(e,t,i,a){i1||!(this.children[0]instanceof Mo))){var re=[];this.collapse(re),this.children=[new Mo(re)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var Z=h.lines.length%25+25,re=Z;re10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var a=0;ae.display.maxLineLength&&(e.display.maxLine=de,e.display.maxLineLength=Ue,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&$r(e,a,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&er(e,"markerCleared",e,this,a,h),t&&xi(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,a,h=0;h0||Z==0&&F.clearWhenEmpty!==!1)return F;if(F.replacedWith&&(F.collapsed=!0,F.widgetNode=D("span",[F.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||F.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(F.widgetNode.insertLeft=!0)),F.collapsed){if(Dt(e,t.line,t,i,F)||t.line!=i.line&&Dt(e,i.line,t,i,F))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xn()}F.addToHistory&&Es(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var re=t.line,oe=e.cm,de;if(e.iter(re,i.line+1,function(Je){oe&&F.collapsed&&!oe.options.lineWrapping&<(Je)==oe.display.maxLine&&(de=!0),F.collapsed&&re!=t.line&&jr(Je,0),Lr(Je,new Nn(F,re==t.line?t.ch:null,re==i.line?i.ch:null)),++re}),F.collapsed&&e.iter(t.line,i.line+1,function(Je){Pt(e,Je)&&jr(Je,0)}),F.clearOnEnter&&He(F,"beforeCursorEnter",function(){return F.clear()}),F.readOnly&&(Zn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),F.collapsed&&(F.id=++Us,F.atomic=!0),oe){if(de&&(oe.curOp.updateMaxLine=!0),F.collapsed)$r(oe,t.line,i.line+1);else if(F.className||F.startStyle||F.endStyle||F.css||F.attributes||F.title)for(var Ue=t.line;Ue<=i.line;Ue++)Jr(oe,Ue,"text");F.atomic&&Os(oe.doc),er(oe,"markerAdded",oe,F)}return F}var No=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;oe--)bo(this,a[oe]);re?Ss(this,re):this.cm&&yi(this.cm)}),undo:ga(function(){$o(this,"undo")}),redo:ga(function(){$o(this,"redo")}),undoSelection:ga(function(){$o(this,"undo",!0)}),redoSelection:ga(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,a=0;a=e.ch)&&t.push(h.marker.parent||h.marker)}return t},findMarks:function(e,t,i){e=S(this,e),t=S(this,t);var a=[],h=e.line;return this.iter(e.line,t.line+1,function(F){var Z=F.markedSpans;if(Z)for(var re=0;re=oe.to||oe.from==null&&h!=e.line||oe.from!=null&&h==t.line&&oe.from>=t.ch)&&(!i||i(oe.marker))&&a.push(oe.marker.parent||oe.marker)}++h}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var a=0;ae)return t=e,!0;e-=F,++i}),S(this,jt(i,t))},indexFromPos:function(e){e=S(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Ue=e.dataTransfer.getData("Text");if(Ue){var Je;if(t.state.draggingText&&!t.state.draggingText.copy&&(Je=t.listSelections()),Xo(t.doc,Fn(i,i)),Je)for(var gt=0;gt=0;re--)Eo(e.doc,"",a[re].from,a[re].to,"+delete");yi(e)})}function os(e,t,i){var a=ze(e.text,t+i,i);return a<0||a>e.text.length?null:a}function ss(e,t,i){var a=os(e,t.ch,i);return a==null?null:new jt(t.line,a,i<0?"after":"before")}function ls(e,t,i,a,h){if(e){t.doc.direction=="rtl"&&(h=-h);var F=fn(i,t.doc.direction);if(F){var Z=h<0?se(F):F[0],re=h<0==(Z.level==1),oe=re?"after":"before",de;if(Z.level>0||t.doc.direction=="rtl"){var Ue=Ke(t,i);de=h<0?i.text.length-1:0;var Je=ut(t,Ue,de).top;de=Tt(function(gt){return ut(t,Ue,gt).top==Je},h<0==(Z.level==1)?Z.from:Z.to-1,de),oe=="before"&&(de=os(i,de,1))}else de=h<0?Z.to:Z.from;return new jt(a,de,oe)}}return new jt(a,h<0?i.text.length:0,h<0?"before":"after")}function kl(e,t,i,a){var h=fn(t,e.doc.direction);if(!h)return ss(t,i,a);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var F=Nt(h,i.ch,i.sticky),Z=h[F];if(e.doc.direction=="ltr"&&Z.level%2==0&&(a>0?Z.to>i.ch:Z.from=Z.from&>>=Ue.begin)){var ht=Je?"before":"after";return new jt(i.line,gt,ht)}}var zt=function(Mn,Gn,kn){for(var Qn=function(la,Ba){return Ba?new jt(i.line,re(la,1),"before"):new jt(i.line,la,"after")};Mn>=0&&Mn0==(_r.level!=1),Fr=dr?kn.begin:re(kn.end,-1);if(_r.from<=Fr&&Fr<_r.to)return Qn(Fr,dr);if(Fr=dr?_r.from:re(_r.to,-1),kn.begin<=Fr&&Fr0?Ue.end:re(Ue.begin,-1);return _n!=null&&!(a>0&&_n==t.text.length)&&(ln=zt(a>0?0:h.length-1,a,de(_n)),ln)?ln:null}var Fo={selectAll:As,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Me)},killLine:function(e){return _o(e,function(t){if(t.empty()){var i=Tn(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)h=new jt(h.line,h.ch+1),e.replaceRange(F.charAt(h.ch-1)+F.charAt(h.ch-2),jt(h.line,h.ch-2),h,"+transpose");else if(h.line>e.doc.first){var Z=Tn(e.doc,h.line-1).text;Z&&(h=new jt(h.line,1),e.replaceRange(F.charAt(0)+e.doc.lineSeparator()+Z.charAt(Z.length-1),jt(h.line-1,Z.length-1),h,"+transpose"))}}i.push(new Kr(h,h))}e.setSelections(i)})},newlineAndIndent:function(e){return Ha(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var a=0;ae&&On(t,this.pos)==0&&i==this.button};var Wo,Ho;function Wl(e,t){var i=+new Date;return Ho&&Ho.compare(i,e,t)?(Wo=Ho=null,"triple"):Wo&&Wo.compare(i,e,t)?(Ho=new cs(i,e,t),Wo=null,"double"):(Wo=new cs(i,e,t),Ho=null,"single")}function el(e){var t=this,i=t.display;if(Et(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Da(i,e)){P||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(ds(t,e))return;var a=fa(t,e),h=et(e),F=a?Wl(a,h):"single";if(window.focus(),h==1&&t.state.selectingText&&t.state.selectingText(e),a&&Hl(t,h,a,F,e))return;h==1?a?zl(t,a,F,e):at(e)==i.scroller&&ce(e):h==2?(a&&Vo(t.doc,a),setTimeout(function(){return i.input.focus()},20)):h==3&&(L?t.display.input.onContextMenu(e):no(t))}function Hl(e,t,i,a,h){var F="Click";return a=="double"?F="Double"+F:a=="triple"&&(F="Triple"+F),F=(t==1?"Left":t==2?"Middle":"Right")+F,Bo(e,Gs(F,h),h,function(Z){if(typeof Z=="string"&&(Z=Fo[Z]),!Z)return!1;var re=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),re=Z(e,i)!=Ze}finally{e.state.suppressEdits=!1}return re})}function Kl(e,t,i){var a=e.getOption("configureMouse"),h=a?a(e,t,i):{};if(h.unit==null){var F=l?i.shiftKey&&i.metaKey:i.altKey;h.unit=F?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(h.extend==null||e.doc.extend)&&(h.extend=e.doc.extend||i.shiftKey),h.addNew==null&&(h.addNew=s?i.metaKey:i.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(s?i.altKey:i.ctrlKey)),h}function zl(e,t,i,a){B?setTimeout(I(Mi,e),0):e.curOp.focus=j();var h=Kl(e,i,a),F=e.doc.sel,Z;e.options.dragDrop&&Rt&&!e.isReadOnly()&&i=="single"&&(Z=F.contains(t))>-1&&(On((Z=F.ranges[Z]).from(),t)<0||t.xRel>0)&&(On(Z.to(),t)>0||t.xRel<0)?Gl(e,a,t,h):Vl(e,a,t,h)}function Gl(e,t,i,a){var h=e.display,F=!1,Z=va(e,function(de){P&&(h.scroller.draggable=!1),e.state.draggingText=!1,Mt(h.wrapper.ownerDocument,"mouseup",Z),Mt(h.wrapper.ownerDocument,"mousemove",re),Mt(h.scroller,"dragstart",oe),Mt(h.scroller,"drop",Z),F||(ce(de),a.addNew||Vo(e.doc,i,null,null,a.extend),P&&!b||B&&C==9?setTimeout(function(){h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus()},20):h.input.focus())}),re=function(de){F=F||Math.abs(t.clientX-de.clientX)+Math.abs(t.clientY-de.clientY)>=10},oe=function(){return F=!0};P&&(h.scroller.draggable=!0),e.state.draggingText=Z,Z.copy=!a.moveOnDrag,h.scroller.dragDrop&&h.scroller.dragDrop(),He(h.wrapper.ownerDocument,"mouseup",Z),He(h.wrapper.ownerDocument,"mousemove",re),He(h.scroller,"dragstart",oe),He(h.scroller,"drop",Z),no(e),setTimeout(function(){return h.input.focus()},20)}function tl(e,t,i){if(i=="char")return new Kr(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Kr(jt(t.line,0),S(e.doc,jt(t.line+1,0)));var a=i(e,t);return new Kr(a.from,a.to)}function Vl(e,t,i,a){var h=e.display,F=e.doc;ce(t);var Z,re,oe=F.sel,de=oe.ranges;if(a.addNew&&!a.extend?(re=F.sel.contains(i),re>-1?Z=de[re]:Z=new Kr(i,i)):(Z=F.sel.primary(),re=F.sel.primIndex),a.unit=="rectangle")a.addNew||(Z=new Kr(i,i)),i=fa(e,t,!0,!0),re=-1;else{var Ue=tl(e,i,a.unit);a.extend?Z=as(Z,Ue.anchor,Ue.head,a.extend):Z=Ue}a.addNew?re==-1?(re=de.length,Ga(F,wr(e,de.concat([Z]),re),{scroll:!1,origin:"*mouse"})):de.length>1&&de[re].empty()&&a.unit=="char"&&!a.extend?(Ga(F,wr(e,de.slice(0,re).concat(de.slice(re+1)),0),{scroll:!1,origin:"*mouse"}),oe=F.sel):is(F,re,Z,Be):(re=0,Ga(F,new Ka([Z],0),Be),oe=F.sel);var Je=i;function gt(kn){if(On(Je,kn)==0)return;if(Je=kn,a.unit=="rectangle"){for(var Qn=[],_r=e.options.tabSize,dr=Q(Tn(F,i.line).text,i.ch,_r),Fr=Q(Tn(F,kn.line).text,kn.ch,_r),la=Math.min(dr,Fr),Ba=Math.max(dr,Fr),ba=Math.min(i.line,kn.line),oi=Math.min(e.lastLine(),Math.max(i.line,kn.line));ba<=oi;ba++){var ti=Tn(F,ba).text,La=Ve(ti,la,_r);la==Ba?Qn.push(new Kr(jt(ba,La),jt(ba,La))):ti.length>La&&Qn.push(new Kr(jt(ba,La),jt(ba,Ve(ti,Ba,_r))))}Qn.length||Qn.push(new Kr(i,i)),Ga(F,wr(e,oe.ranges.slice(0,re).concat(Qn),re),{origin:"*mouse",scroll:!1}),e.scrollIntoView(kn)}else{var ni=Z,za=tl(e,kn,a.unit),Ia=ni.anchor,Ma;On(za.anchor,Ia)>0?(Ma=za.head,Ia=xr(ni.from(),za.anchor)):(Ma=za.anchor,Ia=Sr(ni.to(),za.head));var _a=oe.ranges.slice(0);_a[re]=Xl(e,new Kr(S(F,Ia),Ma)),Ga(F,wr(e,_a,re),Be)}}var ht=h.wrapper.getBoundingClientRect(),zt=0;function ln(kn){var Qn=++zt,_r=fa(e,kn,!0,a.unit=="rectangle");if(!_r)return;if(On(_r,Je)!=0){e.curOp.focus=j(),gt(_r);var dr=ki(h,F);(_r.line>=dr.to||_r.lineht.bottom?20:0;Fr&&setTimeout(va(e,function(){if(zt!=Qn)return;h.scroller.scrollTop+=Fr,ln(kn)}),50)}}function _n(kn){e.state.selectingText=!1,zt=Infinity,kn&&(ce(kn),h.input.focus()),Mt(h.wrapper.ownerDocument,"mousemove",Mn),Mt(h.wrapper.ownerDocument,"mouseup",Gn),F.history.lastSelOrigin=null}var Mn=va(e,function(kn){kn.buttons===0||!et(kn)?_n(kn):ln(kn)}),Gn=va(e,_n);e.state.selectingText=Gn,He(h.wrapper.ownerDocument,"mousemove",Mn),He(h.wrapper.ownerDocument,"mouseup",Gn)}function Xl(e,t){var i=t.anchor,a=t.head,h=Tn(e.doc,i.line);if(On(i,a)==0&&i.sticky==a.sticky)return t;var F=fn(h);if(!F)return t;var Z=Nt(F,i.ch,i.sticky),re=F[Z];if(re.from!=i.ch&&re.to!=i.ch)return t;var oe=Z+(re.from==i.ch==(re.level!=1)?0:1);if(oe==0||oe==F.length)return t;var de;if(a.line!=i.line)de=(a.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ue=Nt(F,a.ch,a.sticky),Je=Ue-Z||(a.ch-i.ch)*(re.level==1?-1:1);Ue==oe-1||Ue==oe?de=Je<0:de=Je>0}var gt=F[oe+(de?-1:0)],ht=de==(gt.level==1),zt=ht?gt.from:gt.to,ln=ht?"after":"before";return i.ch==zt&&i.sticky==ln?t:new Kr(new jt(i.line,zt,ln),a)}function nl(e,t,i,a){var h,F;if(t.touches)h=t.touches[0].clientX,F=t.touches[0].clientY;else try{h=t.clientX,F=t.clientY}catch(gt){return!1}if(h>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&ce(t);var Z=e.display,re=Z.lineDiv.getBoundingClientRect();if(F>re.bottom||!Se(e,i))return Ce(t);F-=re.top-Z.viewOffset;for(var oe=0;oe=h){var Ue=Br(e.doc,F),Je=e.display.gutterSpecs[oe];return st(e,i,e,Ue,Je.className,t),Ce(t)}}}function ds(e,t){return nl(e,t,"gutterClick",!0)}function rl(e,t){if(Da(e.display,t)||Yl(e,t))return;if(Et(e,t,"contextmenu"))return;L||e.display.input.onContextMenu(t)}function Yl(e,t){return Se(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),br(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var t=e.optionHandlers;function i(a,h,F,Z){e.defaults[a]=h,F&&(t[a]=Z?function(re,oe,de){de!=wo&&F(re,oe,de)}:F)}e.defineOption=i,e.Init=wo,i("value","",function(a,h){return a.setValue(h)},!0),i("mode",null,function(a,h){a.doc.modeOption=h,Pa(a)},!0),i("indentUnit",2,Pa,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(a){Ya(a),br(a),$r(a)},!0),i("lineSeparator",null,function(a,h){if(a.doc.lineSep=h,!h)return;var F=[],Z=a.doc.first;a.doc.iter(function(oe){for(var de=0;;){var Ue=oe.text.indexOf(h,de);if(Ue==-1)break;de=Ue+h.length,F.push(jt(Z,Ue))}Z++});for(var re=F.length-1;re>=0;re--)Eo(a.doc,h,F[re],jt(F[re].line,F[re].ch+h.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,h,F){a.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),F!=wo&&a.refresh()}),i("specialCharPlaceholder",jn,function(a){return a.refresh()},!0),i("electricChars",!0),i("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(a,h){return a.getInputField().spellcheck=h},!0),i("autocorrect",!1,function(a,h){return a.getInputField().autocorrect=h},!0),i("autocapitalize",!1,function(a,h){return a.getInputField().autocapitalize=h},!0),i("rtlMoveVisually",!x),i("wholeLineUpdateBefore",!0),i("theme","default",function(a){al(a),ci(a)},!0),i("keyMap","default",function(a,h,F){var Z=Jo(h),re=F!=wo&&Jo(F);re&&re.detach&&re.detach(a,Z),Z.attach&&Z.attach(a,re||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Jl,!0),i("gutters",[],function(a,h){a.display.gutterSpecs=Fa(h,a.options.lineNumbers),ci(a)},!0),i("fixedGutter",!0,function(a,h){a.display.gutters.style.left=h?Hr(a.display)+"px":"0",a.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(a){return mi(a)},!0),i("scrollbarStyle","native",function(a){Qi(a),mi(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),i("lineNumbers",!1,function(a,h){a.display.gutterSpecs=Fa(a.options.gutters,h),ci(a)},!0),i("firstLineNumber",1,ci,!0),i("lineNumberFormatter",function(a){return a},ci,!0),i("showCursorWhenSelecting",!1,Qr,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(a,h){h=="nocursor"&&(wi(a),a.display.input.blur()),a.display.input.readOnlyChanged(h)}),i("screenReaderLabel",null,function(a,h){h=h===""?null:h,a.display.input.screenReaderLabelChanged(h)}),i("disableInput",!1,function(a,h){h||a.display.input.reset()},!0),i("dragDrop",!0,Ql),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Qr,!0),i("singleCursorHeightPerLine",!0,Qr,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ya,!0),i("addModeClass",!1,Ya,!0),i("pollInterval",100),i("undoDepth",200,function(a,h){return a.doc.history.undoDepth=h}),i("historyEventDelay",1250),i("viewportMargin",10,function(a){return a.refresh()},!0),i("maxHighlightLength",1e4,Ya,!0),i("moveInputWithCursor",!0,function(a,h){h||a.display.input.resetPosition()}),i("tabindex",null,function(a,h){return a.display.input.getField().tabIndex=h||""}),i("autofocus",null),i("direction","ltr",function(a,h){return a.doc.setDirection(h)},!0),i("phrases",null)}function Ql(e,t,i){var a=i&&i!=wo;if(!t!=!a){var h=e.display.dragFunctions,F=t?He:Mt;F(e.display.scroller,"dragstart",h.start),F(e.display.scroller,"dragenter",h.enter),F(e.display.scroller,"dragover",h.over),F(e.display.scroller,"dragleave",h.leave),F(e.display.scroller,"drop",h.drop)}}function Jl(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(g(e.display.wrapper,"CodeMirror-wrap"),En(e)),Ea(e),$r(e),br(e),setTimeout(function(){return mi(e)},100)}function ya(e,t){var i=this;if(!(this instanceof ya))return new ya(e,t);this.options=t=t?W(t):{},W(il,t,!1);var a=t.value;typeof a=="string"?a=new ei(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var h=new ya.inputStyles[t.inputStyle](this),F=this.display=new Ui(e,a,h,t);F.wrapper.CodeMirror=this,al(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ie,keySeq:null,specialChars:null},t.autofocus&&!r&&F.input.focus(),B&&C<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Zl(this),Dl(),ui(this),this.curOp.forceUpdate=!0,gs(this,a),t.autofocus&&!r||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&li(i)},20):wi(this);for(var Z in qo)qo.hasOwnProperty(Z)&&qo[Z](this,t[Z],wo);da(this),t.finishInit&&t.finishInit(this);for(var re=0;re20*20}He(t.scroller,"touchstart",function(oe){if(!Et(e,oe)&&!F(oe)&&!ds(e,oe)){t.input.ensurePolled(),clearTimeout(i);var de=+new Date;t.activeTouch={start:de,moved:!1,prev:de-a.end<=300?a:null},oe.touches.length==1&&(t.activeTouch.left=oe.touches[0].pageX,t.activeTouch.top=oe.touches[0].pageY)}}),He(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),He(t.scroller,"touchend",function(oe){var de=t.activeTouch;if(de&&!Da(t,oe)&&de.left!=null&&!de.moved&&new Date-de.start<300){var Ue=e.coordsChar(t.activeTouch,"page"),Je;!de.prev||Z(de,de.prev)?Je=new Kr(Ue,Ue):!de.prev.prev||Z(de,de.prev.prev)?Je=e.findWordAt(Ue):Je=new Kr(jt(Ue.line,0),S(e.doc,jt(Ue.line+1,0))),e.setSelection(Je.anchor,Je.head),e.focus(),ce(oe)}h()}),He(t.scroller,"touchcancel",h),He(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ai(e,t.scroller.scrollTop),ka(e,t.scroller.scrollLeft,!0),st(e,"scroll",e))}),He(t.scroller,"mousewheel",function(oe){return Wi(e,oe)}),He(t.scroller,"DOMMouseScroll",function(oe){return Wi(e,oe)}),He(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(oe){Et(e,oe)||Le(oe)},over:function(oe){Et(e,oe)||(Rl(e,oe),Le(oe))},start:function(oe){return Ol(e,oe)},drop:va(e,Tl),leave:function(oe){Et(e,oe)||Ws(e)}};var re=t.input.getField();He(re,"keyup",function(oe){return Zs.call(e,oe)}),He(re,"keydown",va(e,Js)),He(re,"keypress",va(e,qs)),He(re,"focus",function(oe){return li(e,oe)}),He(re,"blur",function(oe){return wi(e,oe)})}var fs=[];ya.defineInitHook=function(e){return fs.push(e)};function Ko(e,t,i,a){var h=e.doc,F;i==null&&(i="add"),i=="smart"&&(h.mode.indent?F=yn(e,t).state:i="prev");var Z=e.options.tabSize,re=Tn(h,t),oe=Q(re.text,null,Z);re.stateAfter&&(re.stateAfter=null);var de=re.text.match(/^\s*/)[0],Ue;if(!a&&!/\S/.test(re.text))Ue=0,i="not";else if(i=="smart"&&(Ue=h.mode.indent(F,re.text.slice(de.length),re.text),Ue==Ze||Ue>150)){if(!a)return;i="prev"}i=="prev"?t>h.first?Ue=Q(Tn(h,t-1).text,null,Z):Ue=0:i=="add"?Ue=oe+e.options.indentUnit:i=="subtract"?Ue=oe-e.options.indentUnit:typeof i=="number"&&(Ue=oe+i),Ue=Math.max(0,Ue);var Je="",gt=0;if(e.options.indentWithTabs)for(var ht=Math.floor(Ue/Z);ht;--ht)gt+=Z,Je+=" ";if(gtZ,oe=bt(t),de=null;if(re&&a.ranges.length>1)if(_i&&_i.text.join(` +`)==t){if(a.ranges.length%_i.text.length==0){de=[];for(var Ue=0;Ue<_i.text.length;Ue++)de.push(F.splitLines(_i.text[Ue]))}}else oe.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(de=we(oe,function(Mn){return[Mn]}));for(var Je=e.curOp.updateInput,gt=a.ranges.length-1;gt>=0;gt--){var ht=a.ranges[gt],zt=ht.from(),ln=ht.to();ht.empty()&&(i&&i>0?zt=jt(zt.line,zt.ch-i):e.state.overwrite&&!re?ln=jt(ln.line,Math.min(Tn(F,ln.line).text.length,ln.ch+se(oe).length)):re&&_i&&_i.lineWise&&_i.text.join(` `)==oe.join(` -`)&&(Gt=un=jt(Gt.line,0)));var Cn={from:Gt,to:un,text:de?de[gt%de.length]:oe,origin:h||(re?"paste":e.state.cutIncoming>Z?"cut":"+input")};bo(e.doc,Cn),Zn(e,"inputRead",e,Cn)}t&&!re&&sl(e,t),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Je),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wa(t,function(){return hs(t,i,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,a=i.ranges.length-1;a>=0;a--){var h=i.ranges[a];if(h.head.ch>100||a&&i.ranges[a-1].head.line==h.head.line)continue;var F=e.getModeAt(h.head),Z=!1;if(F.electricChars){for(var re=0;re-1){Z=Ko(e,h.head.line,"smart");break}}else F.electricInput&&(F.electricInput.test(Sn(e.doc,h.head.line).text.slice(0,h.head.ch))&&(Z=Ko(e,h.head.line,"smart")));Z&&Zn(e,"electricInput",e,h.head.line)}}function ll(e){for(var t=[],i=[],a=0;aF&&(Ko(this,re.head.line,a,!0),F=re.head.line,Z==this.doc.sel.primIndex&&yi(this));else{var oe=re.from(),de=re.to(),Ue=Math.max(F,oe.line);F=Math.min(this.lastLine(),de.line-(de.ch?0:1))+1;for(var Je=Ue;Je0&&is(this.doc,Z,new Kr(oe,gt[Z].to()),Me)}}}),getTokenAt:function(a,h){return Jt(this,a,h)},getLineTokens:function(a,h){return Jt(this,jt(a),h,!0)},getTokenTypeAt:function(a){a=S(this.doc,a);var h=zt(this,Sn(this.doc,a.line)),F=0,Z=(h.length-1)/2,re=a.ch,oe;if(re==0)oe=h[2];else for(;;){var de=F+Z>>1;if((de?h[de*2-1]:0)>=re)Z=de;else if(h[de*2+1]oe&&(a=oe,Z=!0),re=Sn(this.doc,a)}else re=a;return Rr(this,re,{top:0,left:0},h||"page",F||Z).top+(Z?this.doc.height-fn(re):0)},defaultTextHeight:function(){return Nr(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,h,F,Z,re){var oe=this.display;a=Jn(this,S(this.doc,a));var de=a.bottom,Ue=a.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),oe.sizer.appendChild(h),Z=="over")de=a.top;else if(Z=="above"||Z=="near"){var Je=Math.max(oe.wrapper.clientHeight,this.doc.height),gt=Math.max(oe.sizer.clientWidth,oe.lineSpace.clientWidth);(Z=="above"||a.bottom+h.offsetHeight>Je)&&a.top>h.offsetHeight?de=a.top-h.offsetHeight:a.bottom+h.offsetHeight<=Je&&(de=a.bottom),Ue+h.offsetWidth>gt&&(Ue=gt-h.offsetWidth)}h.style.top=de+"px",h.style.left=h.style.right="",re=="right"?(Ue=oe.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(re=="left"?Ue=0:re=="middle"&&(Ue=(oe.sizer.clientWidth-h.offsetWidth)/2),h.style.left=Ue+"px"),F&&Gi(this,{left:Ue,top:de,right:Ue+h.offsetWidth,bottom:de+h.offsetHeight})},triggerOnKeyDown:Da(Js),triggerOnKeyPress:Da(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Da(el),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:Da(function(a){sl(this,a)}),findPosH:function(a,h,F,Z){var re=1;h<0&&(re=-1,h=-h);for(var oe=S(this.doc,a),de=0;de0&&Ue(F.charAt(Z-1));)--Z;for(;re.5||this.options.lineWrapping)&&Na(this),st(this,"refresh",this)}),swapDoc:Da(function(a){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,a),Er(this),this.display.input.reset(),Ri(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,Zn(this,"swapDoc",this,h),h}),phrase:function(a){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,a)?h[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Oe(e),e.registerHelper=function(a,h,F){i.hasOwnProperty(a)||(i[a]=e[a]={_global:[]}),i[a][h]=F},e.registerGlobalHelper=function(a,h,F,Z){e.registerHelper(a,h,Z),i[a]._global.push({pred:F,val:Z})}}function ps(e,t,i,a,h){var F=t,Z=i,re=Sn(e,t.line),oe=h&&e.direction=="rtl"?-i:i;function de(){var Gn=t.line+oe;return Gn=e.first+e.size?!1:(t=new jt(Gn,t.ch,t.sticky),re=Sn(e,Gn))}function Ue(Gn){var In;if(a=="codepoint"){var Yn=re.text.charCodeAt(t.ch+(a>0?0:-1));isNaN(Yn)?In=null:In=new jt(t.line,Math.max(0,Math.min(re.text.length,t.ch+i*(Yn>=55296&&Yn<56320?2:1))),-i)}else h?In=kl(e.cm,re,t,i):In=ss(re,t,i);if(In==null)if(!Gn&&de())t=ls(h,e.cm,re,t.line,oe);else return!1;else t=In;return!0}if(a=="char"||a=="codepoint")Ue();else if(a=="column")Ue(!0);else if(a=="word"||a=="group")for(var Je=null,gt=a=="group",ht=e.cm&&e.cm.getHelper(t,"wordChars"),Gt=!0;!(i<0&&!Ue(!Gt));Gt=!1){var un=re.text.charAt(t.ch)||` -`,Cn=Y(un,ht)?"w":gt&&un==` -`?"n":!gt||/\s/.test(un)?null:"p";if(gt&&!Gt&&!Cn&&(Cn="s"),Je&&Je!=Cn){i<0&&(i=1,Ue(),t.sticky="after");break}if(Cn&&(Je=Cn),i>0&&!Ue(!Gt))break}var kn=Yo(e,t,F,Z,!0);return mr(F,kn)&&(kn.hitSide=!0),kn}function dl(e,t,i,a){var h=e.doc,F=t.left,Z;if(a=="page"){var re=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),oe=Math.max(re-.5*Nr(e.display),3);Z=(i>0?t.bottom:t.top)+i*oe}else a=="line"&&(Z=i>0?t.bottom+3:t.top-3);for(var de;!(de=xr(e,F,Z),!de.outside);){if(i<0?Z<=0:Z>=h.height){de.hitSide=!0;break}Z+=i*5}return de}var aa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ie,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};aa.prototype.init=function(e){var t=this,i=this,a=i.cm,h=i.div=e.lineDiv;ul(h,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function F(re){for(var oe=re.target;oe;oe=oe.parentNode){if(oe==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(oe.className))break}return!1}He(h,"paste",function(re){if(!F(re)||Et(a,re)||ol(re,a))return;C<=11&&setTimeout(ma(a,function(){return t.updateFromDOM()}),20)}),He(h,"compositionstart",function(re){t.composing={data:re.data,done:!1}}),He(h,"compositionupdate",function(re){t.composing||(t.composing={data:re.data,done:!1})}),He(h,"compositionend",function(re){t.composing&&(re.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),He(h,"touchstart",function(){return i.forceCompositionEnd()}),He(h,"input",function(){t.composing||t.readFromDOMSoon()});function Z(re){if(!F(re)||Et(a,re))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()}),re.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var oe=ll(a);es({lineWise:!0,text:oe.text}),re.type=="cut"&&a.operation(function(){a.setSelections(oe.ranges,0,Me),a.replaceSelection("",null,"cut")})}else return;if(re.clipboardData){re.clipboardData.clearData();var de=_i.text.join(` +`)&&(zt=ln=jt(zt.line,0)));var _n={from:zt,to:ln,text:de?de[gt%de.length]:oe,origin:h||(re?"paste":e.state.cutIncoming>Z?"cut":"+input")};bo(e.doc,_n),er(e,"inputRead",e,_n)}t&&!re&&sl(e,t),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Je),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ha(t,function(){return hs(t,i,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,a=i.ranges.length-1;a>=0;a--){var h=i.ranges[a];if(h.head.ch>100||a&&i.ranges[a-1].head.line==h.head.line)continue;var F=e.getModeAt(h.head),Z=!1;if(F.electricChars){for(var re=0;re-1){Z=Ko(e,h.head.line,"smart");break}}else F.electricInput&&(F.electricInput.test(Tn(e.doc,h.head.line).text.slice(0,h.head.ch))&&(Z=Ko(e,h.head.line,"smart")));Z&&er(e,"electricInput",e,h.head.line)}}function ll(e){for(var t=[],i=[],a=0;aF&&(Ko(this,re.head.line,a,!0),F=re.head.line,Z==this.doc.sel.primIndex&&yi(this));else{var oe=re.from(),de=re.to(),Ue=Math.max(F,oe.line);F=Math.min(this.lastLine(),de.line-(de.ch?0:1))+1;for(var Je=Ue;Je0&&is(this.doc,Z,new Kr(oe,gt[Z].to()),Me)}}}),getTokenAt:function(a,h){return Qt(this,a,h)},getLineTokens:function(a,h){return Qt(this,jt(a),h,!0)},getTokenTypeAt:function(a){a=S(this.doc,a);var h=Kt(this,Tn(this.doc,a.line)),F=0,Z=(h.length-1)/2,re=a.ch,oe;if(re==0)oe=h[2];else for(;;){var de=F+Z>>1;if((de?h[de*2-1]:0)>=re)Z=de;else if(h[de*2+1]oe&&(a=oe,Z=!0),re=Tn(this.doc,a)}else re=a;return Rr(this,re,{top:0,left:0},h||"page",F||Z).top+(Z?this.doc.height-dn(re):0)},defaultTextHeight:function(){return Rn(this.display)},defaultCharWidth:function(){return tr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,h,F,Z,re){var oe=this.display;a=Jn(this,S(this.doc,a));var de=a.bottom,Ue=a.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),oe.sizer.appendChild(h),Z=="over")de=a.top;else if(Z=="above"||Z=="near"){var Je=Math.max(oe.wrapper.clientHeight,this.doc.height),gt=Math.max(oe.sizer.clientWidth,oe.lineSpace.clientWidth);(Z=="above"||a.bottom+h.offsetHeight>Je)&&a.top>h.offsetHeight?de=a.top-h.offsetHeight:a.bottom+h.offsetHeight<=Je&&(de=a.bottom),Ue+h.offsetWidth>gt&&(Ue=gt-h.offsetWidth)}h.style.top=de+"px",h.style.left=h.style.right="",re=="right"?(Ue=oe.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(re=="left"?Ue=0:re=="middle"&&(Ue=(oe.sizer.clientWidth-h.offsetWidth)/2),h.style.left=Ue+"px"),F&&Gi(this,{left:Ue,top:de,right:Ue+h.offsetWidth,bottom:de+h.offsetHeight})},triggerOnKeyDown:Aa(Js),triggerOnKeyPress:Aa(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Aa(el),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:Aa(function(a){sl(this,a)}),findPosH:function(a,h,F,Z){var re=1;h<0&&(re=-1,h=-h);for(var oe=S(this.doc,a),de=0;de0&&Ue(F.charAt(Z-1));)--Z;for(;re.5||this.options.lineWrapping)&&Ea(this),st(this,"refresh",this)}),swapDoc:Aa(function(a){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,a),br(this),this.display.input.reset(),Ri(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,er(this,"swapDoc",this,h),h}),phrase:function(a){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,a)?h[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Oe(e),e.registerHelper=function(a,h,F){i.hasOwnProperty(a)||(i[a]=e[a]={_global:[]}),i[a][h]=F},e.registerGlobalHelper=function(a,h,F,Z){e.registerHelper(a,h,Z),i[a]._global.push({pred:F,val:Z})}}function ps(e,t,i,a,h){var F=t,Z=i,re=Tn(e,t.line),oe=h&&e.direction=="rtl"?-i:i;function de(){var Gn=t.line+oe;return Gn=e.first+e.size?!1:(t=new jt(Gn,t.ch,t.sticky),re=Tn(e,Gn))}function Ue(Gn){var kn;if(a=="codepoint"){var Qn=re.text.charCodeAt(t.ch+(a>0?0:-1));isNaN(Qn)?kn=null:kn=new jt(t.line,Math.max(0,Math.min(re.text.length,t.ch+i*(Qn>=55296&&Qn<56320?2:1))),-i)}else h?kn=kl(e.cm,re,t,i):kn=ss(re,t,i);if(kn==null)if(!Gn&&de())t=ls(h,e.cm,re,t.line,oe);else return!1;else t=kn;return!0}if(a=="char"||a=="codepoint")Ue();else if(a=="column")Ue(!0);else if(a=="word"||a=="group")for(var Je=null,gt=a=="group",ht=e.cm&&e.cm.getHelper(t,"wordChars"),zt=!0;!(i<0&&!Ue(!zt));zt=!1){var ln=re.text.charAt(t.ch)||` +`,_n=Y(ln,ht)?"w":gt&&ln==` +`?"n":!gt||/\s/.test(ln)?null:"p";if(gt&&!zt&&!_n&&(_n="s"),Je&&Je!=_n){i<0&&(i=1,Ue(),t.sticky="after");break}if(_n&&(Je=_n),i>0&&!Ue(!zt))break}var Mn=Yo(e,t,F,Z,!0);return vr(F,Mn)&&(Mn.hitSide=!0),Mn}function dl(e,t,i,a){var h=e.doc,F=t.left,Z;if(a=="page"){var re=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),oe=Math.max(re-.5*Rn(e.display),3);Z=(i>0?t.bottom:t.top)+i*oe}else a=="line"&&(Z=i>0?t.bottom+3:t.top-3);for(var de;!(de=Er(e,F,Z),!de.outside);){if(i<0?Z<=0:Z>=h.height){de.hitSide=!0;break}Z+=i*5}return de}var ia=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ie,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ia.prototype.init=function(e){var t=this,i=this,a=i.cm,h=i.div=e.lineDiv;ul(h,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function F(re){for(var oe=re.target;oe;oe=oe.parentNode){if(oe==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(oe.className))break}return!1}He(h,"paste",function(re){if(!F(re)||Et(a,re)||ol(re,a))return;C<=11&&setTimeout(va(a,function(){return t.updateFromDOM()}),20)}),He(h,"compositionstart",function(re){t.composing={data:re.data,done:!1}}),He(h,"compositionupdate",function(re){t.composing||(t.composing={data:re.data,done:!1})}),He(h,"compositionend",function(re){t.composing&&(re.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),He(h,"touchstart",function(){return i.forceCompositionEnd()}),He(h,"input",function(){t.composing||t.readFromDOMSoon()});function Z(re){if(!F(re)||Et(a,re))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()}),re.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var oe=ll(a);es({lineWise:!0,text:oe.text}),re.type=="cut"&&a.operation(function(){a.setSelections(oe.ranges,0,Me),a.replaceSelection("",null,"cut")})}else return;if(re.clipboardData){re.clipboardData.clearData();var de=_i.text.join(` `);if(re.clipboardData.setData("Text",de),re.clipboardData.getData("Text")==de){re.preventDefault();return}}var Ue=cl(),Je=Ue.firstChild;a.display.lineSpace.insertBefore(Ue,a.display.lineSpace.firstChild),Je.value=_i.text.join(` -`);var gt=document.activeElement;V(Je),setTimeout(function(){a.display.lineSpace.removeChild(Ue),gt.focus(),gt==h&&i.showPrimarySelection()},50)}He(h,"copy",Z),He(h,"cut",Z)},aa.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},aa.prototype.prepareSelection=function(){var e=Ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},aa.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},aa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},aa.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),a=i.from(),h=i.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||h.line=t.display.viewFrom&&fl(t,a)||{node:re[0].measure.map[2],offset:0},de=h.linee.firstLine()&&(a=jt(a.line-1,Sn(e.doc,a.line-1).length)),h.ch==Sn(e.doc,h.line).text.length&&h.linet.viewTo-1)return!1;var F,Z,re;a.line==t.viewFrom||(F=na(e,a.line))==0?(Z=pr(t.view[0].line),re=t.view[0].node):(Z=pr(t.view[F].line),re=t.view[F-1].node.nextSibling);var oe=na(e,h.line),de,Ue;if(oe==t.view.length-1?(de=t.viewTo-1,Ue=t.lineDiv.lastChild):(de=pr(t.view[oe+1].line)-1,Ue=t.view[oe+1].node.previousSibling),!re)return!1;for(var Je=e.doc.splitLines(tu(e,re,Ue,Z,de)),gt=Hr(e.doc,jt(Z,0),jt(de,Sn(e.doc,de).text.length));Je.length>1&>.length>1;)if(se(Je)==se(gt))Je.pop(),gt.pop(),de--;else if(Je[0]==gt[0])Je.shift(),gt.shift(),Z++;else break;for(var ht=0,Gt=0,un=Je[0],Cn=gt[0],kn=Math.min(un.length,Cn.length);hta.ch&&Gn.charCodeAt(Gn.length-Gt-1)==In.charCodeAt(In.length-Gt-1);)ht--,Gt++;Je[Je.length-1]=Gn.slice(0,Gn.length-Gt).replace(/^\u200b+/,""),Je[0]=Je[0].slice(ht).replace(/\u200b+$/,"");var _r=jt(Z,ht),dr=jt(de,gt.length?se(gt).length-Gt:0);if(Je.length>1||Je[0]||On(_r,dr))return Eo(e.doc,Je,_r,dr,"+input"),!0},aa.prototype.ensurePolled=function(){this.forceCompositionEnd()},aa.prototype.reset=function(){this.forceCompositionEnd()},aa.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},aa.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},aa.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wa(this.cm,function(){return Yr(e.cm)})},aa.prototype.setUneditable=function(e){e.contentEditable="false"},aa.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ma(this.cm,hs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},aa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},aa.prototype.onContextMenu=function(){},aa.prototype.resetPosition=function(){},aa.prototype.needsContentAttribute=!0;function fl(e,t){var i=rt(e,t.line);if(!i||i.hidden)return null;var a=Sn(e.doc,t.line),h=fe(i,a,t.line),F=hn(a,e.doc.direction),Z="left";if(F){var re=Nt(F,t.ch);Z=re%2?"right":"left"}var oe=Bt(h.map,t.ch,Z);return oe.offset=oe.collapse=="right"?oe.end:oe.start,oe}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function So(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,a,h){var F="",Z=!1,re=e.doc.lineSeparator(),oe=!1;function de(ht){return function(Gt){return Gt.id==ht}}function Ue(){Z&&(F+=re,oe&&(F+=re),Z=oe=!1)}function Je(ht){ht&&(Ue(),F+=ht)}function gt(ht){if(ht.nodeType==1){var Gt=ht.getAttribute("cm-text");if(Gt){Je(Gt);return}var un=ht.getAttribute("cm-marker"),Cn;if(un){var kn=e.findMarks(jt(a,0),jt(h+1,0),de(+un));kn.length&&(Cn=kn[0].find(0))&&Je(Hr(e.doc,Cn.from,Cn.to).join(re));return}if(ht.getAttribute("contenteditable")=="false")return;var Gn=/^(pre|div|p|li|table|br)$/i.test(ht.nodeName);if(!/^br$/i.test(ht.nodeName)&&ht.textContent.length==0)return;Gn&&Ue();for(var In=0;In=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),He(h,"paste",function(Z){if(Et(a,Z)||ol(Z,a))return;a.state.pasteIncoming=+new Date,i.fastPoll()});function F(Z){if(Et(a,Z))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var re=ll(a);es({lineWise:!0,text:re.text}),Z.type=="cut"?a.setSelections(re.ranges,null,Me):(i.prevInput="",h.value=re.text.join(` -`),V(h))}else return;Z.type=="cut"&&(a.state.cutIncoming=+new Date)}He(h,"cut",F),He(h,"copy",F),He(e.scroller,"paste",function(Z){if(Ra(e,Z)||Et(a,Z))return;if(!h.dispatchEvent){a.state.pasteIncoming=+new Date,i.focus();return}var re=new Event("paste");re.clipboardData=Z.clipboardData,h.dispatchEvent(re)}),He(e.lineSpace,"selectstart",function(Z){Ra(e,Z)||ce(Z)}),He(h,"compositionstart",function(){var Z=a.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:Z,range:a.markText(Z,a.getCursor("to"),{className:"CodeMirror-composing"})}}),He(h,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Sa.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},Sa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,a=Ja(e);if(e.options.moveInputWithCursor){var h=Jn(e,i.sel.primary().head,"div"),F=t.wrapper.getBoundingClientRect(),Z=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,h.top+Z.top-F.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,h.left+Z.left-F.left))}return a},Sa.prototype.showSelection=function(e){var t=this.cm,i=t.display;c(i.cursorDiv,e.cursors),c(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sa.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&V(this.textarea),B&&C>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",B&&C>=9&&(this.hasSelection=null))},Sa.prototype.getField=function(){return this.textarea},Sa.prototype.supportsTouch=function(){return!1},Sa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||j()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sa.prototype.blur=function(){this.textarea.blur()},Sa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sa.prototype.receivedFocus=function(){this.slowPoll()},Sa.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Sa.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||xt(i)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var h=i.value;if(h==a&&!t.somethingSelected())return!1;if(B&&C>=9&&this.hasSelection===h||s&&/[\uf700-\uf7ff]/.test(h))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var F=h.charCodeAt(0);if(F==8203&&!a&&(a="\u200B"),F==8666)return this.reset(),this.cm.execCommand("undo")}for(var Z=0,re=Math.min(a.length,h.length);Z1e3||h.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=h,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Sa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sa.prototype.onKeyPress=function(){B&&C>=9&&(this.hasSelection=null),this.fastPoll()},Sa.prototype.onContextMenu=function(e){var t=this,i=t.cm,a=i.display,h=t.textarea;t.contextMenuPending&&t.contextMenuPending();var F=_a(i,e),Z=a.scroller.scrollTop;if(!F||v)return;var re=i.options.resetSelectionOnContextMenu;re&&i.doc.sel.contains(F)==-1&&ma(i,za)(i.doc,Bn(F),Me);var oe=h.style.cssText,de=t.wrapper.style.cssText,Ue=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var gt=document.activeElement;V(Je),setTimeout(function(){a.display.lineSpace.removeChild(Ue),gt.focus(),gt==h&&i.showPrimarySelection()},50)}He(h,"copy",Z),He(h,"cut",Z)},ia.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var e=Ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},ia.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ia.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ia.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),a=i.from(),h=i.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||h.line=t.display.viewFrom&&fl(t,a)||{node:re[0].measure.map[2],offset:0},de=h.linee.firstLine()&&(a=jt(a.line-1,Tn(e.doc,a.line-1).length)),h.ch==Tn(e.doc,h.line).text.length&&h.linet.viewTo-1)return!1;var F,Z,re;a.line==t.viewFrom||(F=ra(e,a.line))==0?(Z=mr(t.view[0].line),re=t.view[0].node):(Z=mr(t.view[F].line),re=t.view[F-1].node.nextSibling);var oe=ra(e,h.line),de,Ue;if(oe==t.view.length-1?(de=t.viewTo-1,Ue=t.lineDiv.lastChild):(de=mr(t.view[oe+1].line)-1,Ue=t.view[oe+1].node.previousSibling),!re)return!1;for(var Je=e.doc.splitLines(tu(e,re,Ue,Z,de)),gt=Wr(e.doc,jt(Z,0),jt(de,Tn(e.doc,de).text.length));Je.length>1&>.length>1;)if(se(Je)==se(gt))Je.pop(),gt.pop(),de--;else if(Je[0]==gt[0])Je.shift(),gt.shift(),Z++;else break;for(var ht=0,zt=0,ln=Je[0],_n=gt[0],Mn=Math.min(ln.length,_n.length);hta.ch&&Gn.charCodeAt(Gn.length-zt-1)==kn.charCodeAt(kn.length-zt-1);)ht--,zt++;Je[Je.length-1]=Gn.slice(0,Gn.length-zt).replace(/^\u200b+/,""),Je[0]=Je[0].slice(ht).replace(/\u200b+$/,"");var _r=jt(Z,ht),dr=jt(de,gt.length?se(gt).length-zt:0);if(Je.length>1||Je[0]||On(_r,dr))return Eo(e.doc,Je,_r,dr,"+input"),!0},ia.prototype.ensurePolled=function(){this.forceCompositionEnd()},ia.prototype.reset=function(){this.forceCompositionEnd()},ia.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ia.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ia.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ha(this.cm,function(){return $r(e.cm)})},ia.prototype.setUneditable=function(e){e.contentEditable="false"},ia.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||va(this.cm,hs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ia.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ia.prototype.onContextMenu=function(){},ia.prototype.resetPosition=function(){},ia.prototype.needsContentAttribute=!0;function fl(e,t){var i=rt(e,t.line);if(!i||i.hidden)return null;var a=Tn(e.doc,t.line),h=fe(i,a,t.line),F=fn(a,e.doc.direction),Z="left";if(F){var re=Nt(F,t.ch);Z=re%2?"right":"left"}var oe=Ft(h.map,t.ch,Z);return oe.offset=oe.collapse=="right"?oe.end:oe.start,oe}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function So(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,a,h){var F="",Z=!1,re=e.doc.lineSeparator(),oe=!1;function de(ht){return function(zt){return zt.id==ht}}function Ue(){Z&&(F+=re,oe&&(F+=re),Z=oe=!1)}function Je(ht){ht&&(Ue(),F+=ht)}function gt(ht){if(ht.nodeType==1){var zt=ht.getAttribute("cm-text");if(zt){Je(zt);return}var ln=ht.getAttribute("cm-marker"),_n;if(ln){var Mn=e.findMarks(jt(a,0),jt(h+1,0),de(+ln));Mn.length&&(_n=Mn[0].find(0))&&Je(Wr(e.doc,_n.from,_n.to).join(re));return}if(ht.getAttribute("contenteditable")=="false")return;var Gn=/^(pre|div|p|li|table|br)$/i.test(ht.nodeName);if(!/^br$/i.test(ht.nodeName)&&ht.textContent.length==0)return;Gn&&Ue();for(var kn=0;kn=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),He(h,"paste",function(Z){if(Et(a,Z)||ol(Z,a))return;a.state.pasteIncoming=+new Date,i.fastPoll()});function F(Z){if(Et(a,Z))return;if(a.somethingSelected())es({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var re=ll(a);es({lineWise:!0,text:re.text}),Z.type=="cut"?a.setSelections(re.ranges,null,Me):(i.prevInput="",h.value=re.text.join(` +`),V(h))}else return;Z.type=="cut"&&(a.state.cutIncoming=+new Date)}He(h,"cut",F),He(h,"copy",F),He(e.scroller,"paste",function(Z){if(Da(e,Z)||Et(a,Z))return;if(!h.dispatchEvent){a.state.pasteIncoming=+new Date,i.focus();return}var re=new Event("paste");re.clipboardData=Z.clipboardData,h.dispatchEvent(re)}),He(e.lineSpace,"selectstart",function(Z){Da(e,Z)||ce(Z)}),He(h,"compositionstart",function(){var Z=a.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:Z,range:a.markText(Z,a.getCursor("to"),{className:"CodeMirror-composing"})}}),He(h,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Ta.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},Ta.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,a=Ja(e);if(e.options.moveInputWithCursor){var h=Jn(e,i.sel.primary().head,"div"),F=t.wrapper.getBoundingClientRect(),Z=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,h.top+Z.top-F.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,h.left+Z.left-F.left))}return a},Ta.prototype.showSelection=function(e){var t=this.cm,i=t.display;c(i.cursorDiv,e.cursors),c(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ta.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&V(this.textarea),B&&C>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",B&&C>=9&&(this.hasSelection=null))},Ta.prototype.getField=function(){return this.textarea},Ta.prototype.supportsTouch=function(){return!1},Ta.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||j()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ta.prototype.blur=function(){this.textarea.blur()},Ta.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ta.prototype.receivedFocus=function(){this.slowPoll()},Ta.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ta.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Ta.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||xt(i)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var h=i.value;if(h==a&&!t.somethingSelected())return!1;if(B&&C>=9&&this.hasSelection===h||s&&/[\uf700-\uf7ff]/.test(h))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var F=h.charCodeAt(0);if(F==8203&&!a&&(a="\u200B"),F==8666)return this.reset(),this.cm.execCommand("undo")}for(var Z=0,re=Math.min(a.length,h.length);Z1e3||h.indexOf(` +`)>-1?i.value=e.prevInput="":e.prevInput=h,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ta.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ta.prototype.onKeyPress=function(){B&&C>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(e){var t=this,i=t.cm,a=i.display,h=t.textarea;t.contextMenuPending&&t.contextMenuPending();var F=fa(i,e),Z=a.scroller.scrollTop;if(!F||v)return;var re=i.options.resetSelectionOnContextMenu;re&&i.doc.sel.contains(F)==-1&&va(i,Ga)(i.doc,Fn(F),Me);var oe=h.style.cssText,de=t.wrapper.style.cssText,Ue=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Ue.top-5)+"px; left: "+(e.clientX-Ue.left-5)+`px; z-index: 1000; background: `+(B?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Je;P&&(Je=window.scrollY),a.input.focus(),P&&window.scrollTo(null,Je),a.input.reset(),i.somethingSelected()||(h.value=t.prevInput=" "),t.contextMenuPending=ht,a.selForContextMenu=i.doc.sel,clearTimeout(a.detectingSelectAll);function gt(){if(h.selectionStart!=null){var un=i.somethingSelected(),Cn="\u200B"+(un?h.value:"");h.value="\u21DA",h.value=Cn,t.prevInput=un?"":"\u200B",h.selectionStart=1,h.selectionEnd=Cn.length,a.selForContextMenu=i.doc.sel}}function ht(){if(t.contextMenuPending!=ht)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=de,h.style.cssText=oe,B&&C<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=Z),h.selectionStart!=null){(!B||B&&C<9)&>();var un=0,Cn=function(){a.selForContextMenu==i.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&t.prevInput=="\u200B"?ma(i,As)(i):un++<10?a.detectingSelectAll=setTimeout(Cn,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Cn,200)}}if(B&&C>=9&>(),L){Le(e);var Gt=function(){kt(window,"mouseup",Gt),setTimeout(ht,20)};He(window,"mouseup",Gt)}else setTimeout(ht,50)},Sa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sa.prototype.setUneditable=function(){},Sa.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?W(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=j();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function a(){e.value=re.getValue()}var h;if(e.form&&(He(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var F=e.form;h=F.submit;try{var Z=F.submit=function(){a(),F.submit=h,F.submit(),F.submit=Z}}catch(oe){}}t.finishInit=function(oe){oe.save=a,oe.getTextArea=function(){return e},oe.toTextArea=function(){oe.toTextArea=isNaN,a(),e.parentNode.removeChild(oe.getWrapperElement()),e.style.display="",e.form&&(kt(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=h))}},e.style.display="none";var re=ga(function(oe){return e.parentNode.insertBefore(oe,e.nextSibling)},t);return re}function au(e){e.off=kt,e.on=He,e.wheelEventPixels=Bi,e.Doc=ei,e.splitLines=bt,e.countColumn=Q,e.findColumn=Ve,e.isWordChar=G,e.Pass=Ze,e.signal=st,e.Line=xn,e.changeEnd=er,e.scrollbarModel=$i,e.Pos=jt,e.cmpPos=On,e.modes=Ct,e.mimeModes=dt,e.resolveMode=it,e.getMode=vt,e.modeExtensions=Ot,e.extendMode=sn,e.copyState=En,e.startState=fr,e.innerMode=or,e.commands=Fo,e.keyMap=Ki,e.keyName=Vs,e.isModifierKey=zs,e.lookupKey=Co,e.normalizeKeyMap=Ml,e.StringStream=ar,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=ce,e.e_stopPropagation=he,e.e_stop=Le,e.addClass=U,e.contains=A,e.rmClass=g,e.keyNames=eo}$l(ga),ql(ga);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ei.prototype)ei.prototype.hasOwnProperty(ns)&&ae(iu,ns)<0&&(ga.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ei.prototype[ns]));return Oe(ei),ga.inputStyles={textarea:Sa,contenteditable:aa},ga.defineMode=function(e){!ga.defaults.mode&&e!="null"&&(ga.defaults.mode=e),tn.apply(this,arguments)},ga.defineMIME=nn,ga.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ga.defineMIME("text/plain","null"),ga.defineExtension=function(e,t){ga.prototype[e]=t},ga.defineDocExtension=function(e,t){ei.prototype[e]=t},ga.fromTextArea=ru,au(ga),ga.version="5.58.2",ga})},WaYH:function(Vt,Ee,k){"use strict";var ne=k("rePB"),z=k("Ff2n"),N=k("VTBJ"),K=k("1OyB"),O=k("vuIU"),w=k("JX7q"),B=k("Ji7U"),C=k("LK+K"),P=k("q1tI"),_=k("TSYQ"),d=k.n(_),v=k("sboe"),b=k("OZM5"),f=function(L){var R=L.prefixCls,g=L.level,m=L.isStart,c=L.isEnd;if(!g)return null;for(var u="".concat(R,"-indent-unit"),D=[],T=0;T0&&t.prevInput=="\u200B"?va(i,As)(i):ln++<10?a.detectingSelectAll=setTimeout(_n,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(_n,200)}}if(B&&C>=9&>(),L){Le(e);var zt=function(){Mt(window,"mouseup",zt),setTimeout(ht,20)};He(window,"mouseup",zt)}else setTimeout(ht,50)},Ta.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ta.prototype.setUneditable=function(){},Ta.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?W(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=j();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function a(){e.value=re.getValue()}var h;if(e.form&&(He(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var F=e.form;h=F.submit;try{var Z=F.submit=function(){a(),F.submit=h,F.submit(),F.submit=Z}}catch(oe){}}t.finishInit=function(oe){oe.save=a,oe.getTextArea=function(){return e},oe.toTextArea=function(){oe.toTextArea=isNaN,a(),e.parentNode.removeChild(oe.getWrapperElement()),e.style.display="",e.form&&(Mt(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=h))}},e.style.display="none";var re=ya(function(oe){return e.parentNode.insertBefore(oe,e.nextSibling)},t);return re}function au(e){e.off=Mt,e.on=He,e.wheelEventPixels=Bi,e.Doc=ei,e.splitLines=bt,e.countColumn=Q,e.findColumn=Ve,e.isWordChar=G,e.Pass=Ze,e.signal=st,e.Line=Cn,e.changeEnd=nr,e.scrollbarModel=$i,e.Pos=jt,e.cmpPos=On,e.modes=Ct,e.mimeModes=dt,e.resolveMode=it,e.getMode=vt,e.modeExtensions=Ot,e.extendMode=on,e.copyState=xn,e.startState=fr,e.innerMode=lr,e.commands=Fo,e.keyMap=Ki,e.keyName=Vs,e.isModifierKey=zs,e.lookupKey=Co,e.normalizeKeyMap=Ml,e.StringStream=ir,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=ce,e.e_stopPropagation=he,e.e_stop=Le,e.addClass=U,e.contains=A,e.rmClass=g,e.keyNames=eo}$l(ya),ql(ya);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ei.prototype)ei.prototype.hasOwnProperty(ns)&&ae(iu,ns)<0&&(ya.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ei.prototype[ns]));return Oe(ei),ya.inputStyles={textarea:Ta,contenteditable:ia},ya.defineMode=function(e){!ya.defaults.mode&&e!="null"&&(ya.defaults.mode=e),en.apply(this,arguments)},ya.defineMIME=tn,ya.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ya.defineMIME("text/plain","null"),ya.defineExtension=function(e,t){ya.prototype[e]=t},ya.defineDocExtension=function(e,t){ei.prototype[e]=t},ya.fromTextArea=ru,au(ya),ya.version="5.58.2",ya})},WaYH:function(Gt,Ee,k){"use strict";var ne=k("rePB"),z=k("Ff2n"),N=k("VTBJ"),K=k("1OyB"),O=k("vuIU"),w=k("JX7q"),B=k("Ji7U"),C=k("LK+K"),P=k("q1tI"),_=k("TSYQ"),d=k.n(_),v=k("sboe"),b=k("OZM5"),f=function(L){var R=L.prefixCls,g=L.level,m=L.isStart,c=L.isEnd;if(!g)return null;for(var u="".concat(R,"-indent-unit"),D=[],T=0;T1&&arguments[1]!==void 0?arguments[1]:!1,qe=Me.getAttribute("id")||Me.getAttribute("data-reactid")||Me.getAttribute("name");if(Be&&j[qe])return j[qe];var Ve=window.getComputedStyle(Me),De=Ve.getPropertyValue("box-sizing")||Ve.getPropertyValue("-moz-box-sizing")||Ve.getPropertyValue("-webkit-box-sizing"),pe=parseFloat(Ve.getPropertyValue("padding-bottom"))+parseFloat(Ve.getPropertyValue("padding-top")),se=parseFloat(Ve.getPropertyValue("border-bottom-width"))+parseFloat(Ve.getPropertyValue("border-top-width")),we=A.map(function($e){return"".concat($e,":").concat(Ve.getPropertyValue($e))}).join(";"),ve={sizingStyle:we,paddingSize:pe,borderSize:se,boxSizing:De};return Be&&qe&&(j[qe]=ve),ve}function V(Me){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;U||(U=document.createElement("textarea"),U.setAttribute("tab-index","-1"),U.setAttribute("aria-hidden","true"),document.body.appendChild(U)),Me.getAttribute("wrap")?U.setAttribute("wrap",Me.getAttribute("wrap")):U.removeAttribute("wrap");var De=H(Me,Be),pe=De.paddingSize,se=De.borderSize,we=De.boxSizing,ve=De.sizingStyle;U.setAttribute("style","".concat(ve,";").concat(T)),U.value=Me.value||Me.placeholder||"";var $e=Number.MIN_SAFE_INTEGER,me=Number.MAX_SAFE_INTEGER,X=U.scrollHeight,G;if(we==="border-box"?X+=se:we==="content-box"&&(X-=pe),qe!==null||Ve!==null){U.value=" ";var Y=U.scrollHeight-pe;qe!==null&&($e=Y*qe,we==="border-box"&&($e=$e+pe+se),X=Math.max($e,X)),Ve!==null&&(me=Y*Ve,we==="border-box"&&(me=me+pe+se),G=X>me?"":"hidden",X=Math.min(me,X))}return{height:X,minHeight:$e,maxHeight:me,overflowY:G,resize:"none"}}var I=k("Gytx"),W=k.n(I),Q;(function(Me){Me[Me.NONE=0]="NONE",Me[Me.RESIZING=1]="RESIZING",Me[Me.RESIZED=2]="RESIZED"})(Q||(Q={}));var ie=function(Me){Object(K.a)(qe,Me);var Be=Object(O.a)(qe);function qe(Ve){var De;return Object(z.a)(this,qe),De=Be.call(this,Ve),De.nextFrameActionId=void 0,De.resizeFrameId=void 0,De.textArea=void 0,De.saveTextArea=function(pe){De.textArea=pe},De.handleResize=function(pe){var se=De.state.resizeStatus,we=De.props,ve=we.autoSize,$e=we.onResize;if(se!==Q.NONE)return;typeof $e=="function"&&$e(pe),ve&&De.resizeOnNextFrame()},De.resizeOnNextFrame=function(){cancelAnimationFrame(De.nextFrameActionId),De.nextFrameActionId=requestAnimationFrame(De.resizeTextarea)},De.resizeTextarea=function(){var pe=De.props.autoSize;if(!pe||!De.textArea)return;var se=pe.minRows,we=pe.maxRows,ve=V(De.textArea,!1,se,we);De.setState({textareaStyles:ve,resizeStatus:Q.RESIZING},function(){cancelAnimationFrame(De.resizeFrameId),De.resizeFrameId=requestAnimationFrame(function(){De.setState({resizeStatus:Q.RESIZED},function(){De.resizeFrameId=requestAnimationFrame(function(){De.setState({resizeStatus:Q.NONE}),De.fixFirefoxAutoScroll()})})})})},De.renderTextArea=function(){var pe=De.props,se=pe.prefixCls,we=se===void 0?"rc-textarea":se,ve=pe.autoSize,$e=pe.onResize,me=pe.className,X=pe.disabled,G=De.state,Y=G.textareaStyles,ue=G.resizeStatus,be=Object(c.a)(De.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),We=D()(we,me,Object(C.a)({},"".concat(we,"-disabled"),X));"value"in be&&(be.value=be.value||"");var ze=Object(B.a)(Object(B.a)(Object(B.a)({},De.props.style),Y),ue===Q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return w.createElement(m,{onResize:De.handleResize,disabled:!(ve||$e)},w.createElement("textarea",Object(ne.a)({},be,{className:We,style:ze,ref:De.saveTextArea})))},De.state={textareaStyles:{},resizeStatus:Q.NONE},De}return Object(N.a)(qe,[{key:"componentDidUpdate",value:function(De){(De.value!==this.props.value||!W()(De.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var De=this.textArea.selectionStart,pe=this.textArea.selectionEnd;this.textArea.setSelectionRange(De,pe)}}catch(se){}}},{key:"render",value:function(){return this.renderTextArea()}}]),qe}(w.Component),ae=ie,xe=function(Me){Object(K.a)(qe,Me);var Be=Object(O.a)(qe);function qe(Ve){var De;Object(z.a)(this,qe),De=Be.call(this,Ve),De.resizableTextArea=void 0,De.focus=function(){De.resizableTextArea.textArea.focus()},De.saveTextArea=function(se){De.resizableTextArea=se},De.handleChange=function(se){var we=De.props.onChange;De.setValue(se.target.value,function(){De.resizableTextArea.resizeTextarea()}),we&&we(se)},De.handleKeyDown=function(se){var we=De.props,ve=we.onPressEnter,$e=we.onKeyDown;se.keyCode===13&&ve&&ve(se),$e&&$e(se)};var pe=typeof Ve.value=="undefined"||Ve.value===null?Ve.defaultValue:Ve.value;return De.state={value:pe},De}return Object(N.a)(qe,[{key:"setValue",value:function(De,pe){"value"in this.props||this.setState({value:De},pe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return w.createElement(ae,Object(ne.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(De){return"value"in De?{value:De.value}:null}}]),qe}(w.Component),Ze=Ee.default=xe},ZW9T:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return m});var ne=k("k1fw"),z=k("oBTY"),N=k("9og8"),K=k("miYZ"),O=k("tsqr"),w=k("rAM+"),B=k("tJVT"),C=k("PpiC"),P=k("WmNS"),_=k.n(P),d=k("q1tI"),v=k.n(d),b=k("bdgK");function f(c,u,D,T,A){var j=u.getWordUntilPosition(D),U={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:j.startColumn,endColumn:j.endColumn},H=T.map(function(V){return{label:V,kind:c.languages.CompletionItemKind.Keyword,insertText:V,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:U}});return A.map(function(V){H.push(Object(ne.a)(Object(ne.a)({},V),{},{range:U}))}),H}var n=function(c){var u={label:"ifelse",kind:c.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`,A=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],j={},U;function H(Me){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=Me.getAttribute("id")||Me.getAttribute("data-reactid")||Me.getAttribute("name");if(Be&&j[qe])return j[qe];var Ve=window.getComputedStyle(Me),De=Ve.getPropertyValue("box-sizing")||Ve.getPropertyValue("-moz-box-sizing")||Ve.getPropertyValue("-webkit-box-sizing"),pe=parseFloat(Ve.getPropertyValue("padding-bottom"))+parseFloat(Ve.getPropertyValue("padding-top")),se=parseFloat(Ve.getPropertyValue("border-bottom-width"))+parseFloat(Ve.getPropertyValue("border-top-width")),we=A.map(function($e){return"".concat($e,":").concat(Ve.getPropertyValue($e))}).join(";"),ve={sizingStyle:we,paddingSize:pe,borderSize:se,boxSizing:De};return Be&&qe&&(j[qe]=ve),ve}function V(Me){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;U||(U=document.createElement("textarea"),U.setAttribute("tab-index","-1"),U.setAttribute("aria-hidden","true"),document.body.appendChild(U)),Me.getAttribute("wrap")?U.setAttribute("wrap",Me.getAttribute("wrap")):U.removeAttribute("wrap");var De=H(Me,Be),pe=De.paddingSize,se=De.borderSize,we=De.boxSizing,ve=De.sizingStyle;U.setAttribute("style","".concat(ve,";").concat(T)),U.value=Me.value||Me.placeholder||"";var $e=Number.MIN_SAFE_INTEGER,me=Number.MAX_SAFE_INTEGER,X=U.scrollHeight,G;if(we==="border-box"?X+=se:we==="content-box"&&(X-=pe),qe!==null||Ve!==null){U.value=" ";var Y=U.scrollHeight-pe;qe!==null&&($e=Y*qe,we==="border-box"&&($e=$e+pe+se),X=Math.max($e,X)),Ve!==null&&(me=Y*Ve,we==="border-box"&&(me=me+pe+se),G=X>me?"":"hidden",X=Math.min(me,X))}return{height:X,minHeight:$e,maxHeight:me,overflowY:G,resize:"none"}}var I=k("Gytx"),W=k.n(I),Q;(function(Me){Me[Me.NONE=0]="NONE",Me[Me.RESIZING=1]="RESIZING",Me[Me.RESIZED=2]="RESIZED"})(Q||(Q={}));var ie=function(Me){Object(K.a)(qe,Me);var Be=Object(O.a)(qe);function qe(Ve){var De;return Object(z.a)(this,qe),De=Be.call(this,Ve),De.nextFrameActionId=void 0,De.resizeFrameId=void 0,De.textArea=void 0,De.saveTextArea=function(pe){De.textArea=pe},De.handleResize=function(pe){var se=De.state.resizeStatus,we=De.props,ve=we.autoSize,$e=we.onResize;if(se!==Q.NONE)return;typeof $e=="function"&&$e(pe),ve&&De.resizeOnNextFrame()},De.resizeOnNextFrame=function(){cancelAnimationFrame(De.nextFrameActionId),De.nextFrameActionId=requestAnimationFrame(De.resizeTextarea)},De.resizeTextarea=function(){var pe=De.props.autoSize;if(!pe||!De.textArea)return;var se=pe.minRows,we=pe.maxRows,ve=V(De.textArea,!1,se,we);De.setState({textareaStyles:ve,resizeStatus:Q.RESIZING},function(){cancelAnimationFrame(De.resizeFrameId),De.resizeFrameId=requestAnimationFrame(function(){De.setState({resizeStatus:Q.RESIZED},function(){De.resizeFrameId=requestAnimationFrame(function(){De.setState({resizeStatus:Q.NONE}),De.fixFirefoxAutoScroll()})})})})},De.renderTextArea=function(){var pe=De.props,se=pe.prefixCls,we=se===void 0?"rc-textarea":se,ve=pe.autoSize,$e=pe.onResize,me=pe.className,X=pe.disabled,G=De.state,Y=G.textareaStyles,ue=G.resizeStatus,be=Object(c.a)(De.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),We=D()(we,me,Object(C.a)({},"".concat(we,"-disabled"),X));"value"in be&&(be.value=be.value||"");var ze=Object(B.a)(Object(B.a)(Object(B.a)({},De.props.style),Y),ue===Q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return w.createElement(m,{onResize:De.handleResize,disabled:!(ve||$e)},w.createElement("textarea",Object(ne.a)({},be,{className:We,style:ze,ref:De.saveTextArea})))},De.state={textareaStyles:{},resizeStatus:Q.NONE},De}return Object(N.a)(qe,[{key:"componentDidUpdate",value:function(De){(De.value!==this.props.value||!W()(De.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var De=this.textArea.selectionStart,pe=this.textArea.selectionEnd;this.textArea.setSelectionRange(De,pe)}}catch(se){}}},{key:"render",value:function(){return this.renderTextArea()}}]),qe}(w.Component),ae=ie,xe=function(Me){Object(K.a)(qe,Me);var Be=Object(O.a)(qe);function qe(Ve){var De;Object(z.a)(this,qe),De=Be.call(this,Ve),De.resizableTextArea=void 0,De.focus=function(){De.resizableTextArea.textArea.focus()},De.saveTextArea=function(se){De.resizableTextArea=se},De.handleChange=function(se){var we=De.props.onChange;De.setValue(se.target.value,function(){De.resizableTextArea.resizeTextarea()}),we&&we(se)},De.handleKeyDown=function(se){var we=De.props,ve=we.onPressEnter,$e=we.onKeyDown;se.keyCode===13&&ve&&ve(se),$e&&$e(se)};var pe=typeof Ve.value=="undefined"||Ve.value===null?Ve.defaultValue:Ve.value;return De.state={value:pe},De}return Object(N.a)(qe,[{key:"setValue",value:function(De,pe){"value"in this.props||this.setState({value:De},pe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return w.createElement(ae,Object(ne.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(De){return"value"in De?{value:De.value}:null}}]),qe}(w.Component),Ze=Ee.default=xe},ZW9T:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return m});var ne=k("k1fw"),z=k("oBTY"),N=k("9og8"),K=k("miYZ"),O=k("tsqr"),w=k("rAM+"),B=k("tJVT"),C=k("PpiC"),P=k("WmNS"),_=k.n(P),d=k("q1tI"),v=k.n(d),b=k("bdgK");function f(c,u,D,T,A){var j=u.getWordUntilPosition(D),U={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:j.startColumn,endColumn:j.endColumn},H=T.map(function(V){return{label:V,kind:c.languages.CompletionItemKind.Keyword,insertText:V,insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:U}});return A.map(function(V){H.push(Object(ne.a)(Object(ne.a)({},V),{},{range:U}))}),H}var n=function(c){var u={label:"ifelse",kind:c.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet},D=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];c.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(U,H){var V=f(c,U,H,D,[u]);return{suggestions:V}}});var T=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];c.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(U,H){var V=[{label:"print",kind:c.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` `),insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet}],I=f(c,U,H,T,V);return{suggestions:I}}});var A=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];c.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(U,H){var V=[u,{label:"main",kind:c.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:c.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:c.languages.CompletionItemInsertTextRule.InsertAsSnippet}],I=f(c,U,H,A,V);return{suggestions:I}}})},p="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",o=k("fjLI"),r=k("LvDl"),s=k("+ua5");function l(c){return/^\d+$/.test(c)?"".concat(c,"px"):c}function x(){}var E=!1,y={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function L(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=c;if(Array.isArray(c)){for(var D=0;D0||or.target.offsetWidth>0)&&pt.current.instance.layout()}}catch(fr){sn.e(fr)}finally{sn.f()}}),vt.observe(He.current)),vt}function at(){O.b.warn({content:decodeURIComponent(p),key:"monaco-editor-tip"})}var et=function(){var Ot=pt.current.instance;if(j!=null&&Ot&&he){var sn=Ot.getModel();sn&&j!==sn.getValue()&&(E=!0,sn.setValue(j),Ot.layout(),E=!1)}};Object(d.useEffect)(function(){try{var vt,Ot=pt.current.instance;st.current&&clearTimeout(st.current),st.current=setTimeout(function(){et()},500),Ot==null||((vt=Ot.updateOptions)===null||vt===void 0)||vt.call(Ot,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(j.split(/\r\n|\r|\n/g).length))+3,5)})}catch(sn){debugger}},[j,he,pt.current]),Object(d.useEffect)(function(){try{if(Tt&&pt.current&&pt.current.instance){var vt=pt.current.instance;vt.changeViewZones(function(sn){var En=document.createElement("div");En.style.padding="10px 20px",En.style.width="calc(100% - 20px)",En.className="my-error-line-wrp",En.innerHTML=It,sn.addZone({afterLineNumber:Tt||11,heightInLines:3,domNode:En})});var Ot={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};vt.addOverlayWidget(Ot),vt.revealPositionInCenter({lineNumber:20,column:1})}}catch(sn){debugger}},[Tt,pt.current,he]),Object(d.useEffect)(function(){var vt;if((vt=pt.current)!==null&&vt!==void 0&&vt.instance&&he&&hn){var Ot=pt.current.instance,sn=Ot.getModel();if(!sn)return;var En=function(){var On=[],mr=[],Dr=sn.getAllDecorations(),Sr=Object(w.a)(Dr),Cr;try{for(Sr.s();!(Cr=Sr.n()).done;){var J=Cr.value;if(J.options.className==="highlighted-line"){var S;On.push(J==null||((S=J.range)===null||S===void 0)?void 0:S.startLineNumber),mr.push(J==null?void 0:J.id)}}}catch($){Sr.e($)}finally{Sr.f()}sn.deltaDecorations(mr,[]);var M=sn.getLineCount();!!Nt&&Nt<=M&&(Ot.deltaDecorations([],[{range:new R.Range(Nt,1,Nt,sn.getLineMaxColumn(Nt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ot.revealLineInCenter(Nt))};En();var or=function(){var On=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,mr=[],Dr=[],Sr=sn.getAllDecorations(),Cr=Object(w.a)(Sr),J;try{for(Cr.s();!(J=Cr.n()).done;){var S=J.value;if(S.options.linesDecorationsClassName==="breakpoints"){var M;mr.push(S==null||((M=S.range)===null||M===void 0)?void 0:M.startLineNumber),Dr.push(S==null?void 0:S.id)}}}catch($){Cr.e($)}finally{Cr.f()}if(On)return{lines:mr,ids:Dr};Y(mr)},fr=function(){var jt=Object(N.a)(_.a.mark(function On(mr){var Dr;return _.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return Dr={range:new R.Range(mr,1,mr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Cr.next=3,sn.deltaDecorations([],[Dr]);case 3:or();case 4:case"end":return Cr.stop()}},On)}));return function(mr){return jt.apply(this,arguments)}}(),ar=function(){var jt=Object(N.a)(_.a.mark(function On(mr){var Dr,Sr,Cr,J,S;return _.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:Dr=[],Sr=Ot.getLineDecorations(mr),Cr=Object(w.a)(Sr);try{for(Cr.s();!(J=Cr.n()).done;)S=J.value,S.options.linesDecorationsClassName==="breakpoints"&&Dr.push(S.id)}catch(te){Cr.e(te)}finally{Cr.f()}return $.next=6,sn.deltaDecorations(Dr,[]);case 6:or();case 7:case"end":return $.stop()}},On)}));return function(mr){return jt.apply(this,arguments)}}(),Sn=function(On){var mr=Ot.getLineDecorations(On),Dr=Object(w.a)(mr),Sr;try{for(Dr.s();!(Sr=Dr.n()).done;){var Cr=Sr.value;if(Cr.options.linesDecorationsClassName==="breakpoints")return!0}}catch(J){Dr.e(J)}finally{Dr.f()}return!1};if(!Object(r.isEqual)(be,or(!0).lines)){sn.deltaDecorations(or(!0).ids,[]);var Hr=be.map(function(jt){return{range:new R.Range(jt,1,jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});sn.deltaDecorations([],Hr)}var ea=Ot.onDidChangeModelContent(function(jt){var On=Ot.getPosition();if(On){var mr=On.lineNumber;sn.getLineContent(mr).trim()===""?ar(mr):Sn(mr)&&(ar(mr),fr(mr))}}),Ir=Ot.onMouseDown(function(jt){var On,mr,Dr;if(jt.target.detail&&(On=jt.target)!==null&&On!==void 0&&(mr=On.element)!==null&&mr!==void 0&&(Dr=mr.className)!==null&&Dr!==void 0&&Dr.includes("line-numbers")){var Sr=jt.target.position.lineNumber;if(sn.getLineContent(Sr).trim()==="")return;Sn(Sr)?ar(Sr):fr(Sr)}}),pr=function(On){var mr={range:new R.Range(On,1,On,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Et.current=Ot.deltaDecorations(Et.current,[mr])},Br=function(){Et.current=Ot.deltaDecorations(Et.current,[])},Jr=Ot.onMouseMove(function(jt){var On,mr,Dr;if(Br(),jt.target.detail&&(On=jt.target)!==null&&On!==void 0&&(mr=On.element)!==null&&mr!==void 0&&(Dr=mr.className)!==null&&Dr!==void 0&&Dr.includes("line-numbers")){var Sr=jt.target.position.lineNumber;if(sn.getLineContent(Sr).trim()==="")return;pr(Sr)}}),la=Ot.onMouseLeave(function(){Br()});return function(){ea.dispose(),Ir.dispose(),Jr.dispose(),la.dispose()}}},[pt.current,he,be,Nt,hn]);function Rt(){var vt=pt.current.instance;if(vt){var Ot=vt.getSelection(),sn=pt.current.pastePos||{},En=new R.Range(sn.startLineNumber||Ot.endLineNumber,sn.startColumn||Ot.endColumn,sn.endLineNumber||Ot.endLineNumber,sn.endColumn||Ot.endColumn);setTimeout(function(){vt.executeEdits("",[{range:En,text:""}])},300)}}function en(vt){(window.navigator.platform.match("Mac")?vt.metaKey:vt.ctrlKey)&&vt.keyCode==83&&(vt.preventDefault(),Be())}var pn=function(){if(Ve&&pt.current.instance){var Ot=pt.current.instance.getContentHeight();nn(Ot0||ve.target.offsetWidth>0)&&Ve.layout()}}catch($e){se.e($e)}finally{se.f()}}),De.observe(W.current)),De}Object(d.useEffect)(function(){return W.current&&k.e(27).then(k.t.bind(null,"M/lh",7)).then(function(Ve){R=Ve;var De=R.editor.createDiffEditor(W.current,Object(ne.a)(Object(ne.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},I),{},{wordWrap:!0}));xe(De);var pe=Ze(De);return function(){De.dispose();var se=De.getModel();se&&se.dispose(),pe.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(d.useEffect)(function(){ae&&ae.setModel({original:R.editor.createModel(j,H),modified:R.editor.createModel(U,H)})},[j,U,H,ae]);var Me=l(D),Be=l(A),qe={width:Me,height:Be};return v.a.createElement("div",{className:"my-diff-editor",ref:W,style:qe})}},ZpRC:function(Vt,Ee,k){"use strict";function ne(d){return typeof d=="object"&&d!=null&&d.nodeType===1}function z(d,v){return(!v||d!=="hidden")&&d!=="visible"&&d!=="clip"}function N(d,v){if(d.clientHeightv||p>d&&o=v&&r>=b?p-d-f:o>v&&rb?o-v+n:0}var O=function(d,v){var b=window,f=v.scrollMode,n=v.block,p=v.inline,o=v.boundary,r=v.skipOverflowHiddenElements,s=typeof o=="function"?o:function(Y){return Y!==o};if(!ne(d))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,x=[],E=d;ne(E)&&s(E);){if((E=E.parentElement)===l){x.push(E);break}E!=null&&E===document.body&&N(E)&&!N(document.documentElement)||E!=null&&N(E,r)&&x.push(E)}for(var y=b.visualViewport?b.visualViewport.width:innerWidth,L=b.visualViewport?b.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=d.getBoundingClientRect(),c=m.height,u=m.width,D=m.top,T=m.right,A=m.bottom,j=m.left,U=n==="start"||n==="nearest"?D:n==="end"?A:D+c/2,H=p==="center"?j+u/2:p==="end"?T:j,V=[],I=0;I=0&&j>=0&&A<=L&&T<=y&&D>=xe&&A<=Me&&j>=Be&&T<=Ze)return V;var qe=getComputedStyle(W),Ve=parseInt(qe.borderLeftWidth,10),De=parseInt(qe.borderTopWidth,10),pe=parseInt(qe.borderRightWidth,10),se=parseInt(qe.borderBottomWidth,10),we=0,ve=0,$e="offsetWidth"in W?W.offsetWidth-W.clientWidth-Ve-pe:0,me="offsetHeight"in W?W.offsetHeight-W.clientHeight-De-se:0;if(l===W)we=n==="start"?U:n==="end"?U-L:n==="nearest"?K(g,g+L,L,De,se,g+U,g+U+c,c):U-L/2,ve=p==="start"?H:p==="center"?H-y/2:p==="end"?H-y:K(R,R+y,y,Ve,pe,R+H,R+H+u,u),we=Math.max(0,we+g),ve=Math.max(0,ve+R);else{we=n==="start"?U-xe-De:n==="end"?U-Me+se+me:n==="nearest"?K(xe,Me,ie,De,se+me,U,U+c,c):U-(xe+ie/2)+me/2,ve=p==="start"?H-Be-Ve:p==="center"?H-(Be+ae/2)+$e/2:p==="end"?H-Ze+pe+$e:K(Be,Ze,ae,Ve,pe+$e,H,H+u,u);var X=W.scrollLeft,G=W.scrollTop;U+=G-(we=Math.max(0,Math.min(G+we,W.scrollHeight-ie+me))),H+=X-(ve=Math.max(0,Math.min(X+ve,W.scrollWidth-ae+$e)))}V.push({el:W,top:we,left:ve})}return V};function w(d){return d===Object(d)&&Object.keys(d).length!==0}function B(d,v){v===void 0&&(v="auto");var b="scrollBehavior"in document.body.style;d.forEach(function(f){var n=f.el,p=f.top,o=f.left;n.scroll&&b?n.scroll({top:p,left:o,behavior:v}):(n.scrollTop=p,n.scrollLeft=o)})}function C(d){return d===!1?{block:"end",inline:"nearest"}:w(d)?d:{block:"start",inline:"nearest"}}function P(d,v){var b=!d.ownerDocument.documentElement.contains(d);if(w(v)&&typeof v.behavior=="function")return v.behavior(b?[]:O(d,v));if(b)return;var f=C(v);return B(O(d,f),f.behavior)}var _=Ee.a=P},Zss7:function(Vt,Ee,k){var ne;(function(z){var N=/^\s+/,K=/\s+$/,O=0,w=z.round,B=z.min,C=z.max,P=z.random;function _(se,we){if(se=se||"",we=we||{},se instanceof _)return se;if(!(this instanceof _))return new _(se,we);var ve=d(se);this._originalInput=se,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=w(100*this._a)/100,this._format=we.format||ve.format,this._gradientType=we.gradientType,this._r<1&&(this._r=w(this._r)),this._g<1&&(this._g=w(this._g)),this._b<1&&(this._b=w(this._b)),this._ok=ve.ok,this._tc_id=O++}_.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 se=this.toRgb();return(se.r*299+se.g*587+se.b*114)/1e3},getLuminance:function(){var se=this.toRgb(),we,ve,$e,me,X,G;return we=se.r/255,ve=se.g/255,$e=se.b/255,we<=.03928?me=we/12.92:me=z.pow((we+.055)/1.055,2.4),ve<=.03928?X=ve/12.92:X=z.pow((ve+.055)/1.055,2.4),$e<=.03928?G=$e/12.92:G=z.pow(($e+.055)/1.055,2.4),.2126*me+.7152*X+.0722*G},setAlpha:function(se){return this._a=V(se),this._roundA=w(100*this._a)/100,this},toHsv:function(){var se=n(this._r,this._g,this._b);return{h:se.h*360,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=n(this._r,this._g,this._b),we=w(se.h*360),ve=w(se.s*100),$e=w(se.v*100);return this._a==1?"hsv("+we+", "+ve+"%, "+$e+"%)":"hsva("+we+", "+ve+"%, "+$e+"%, "+this._roundA+")"},toHsl:function(){var se=b(this._r,this._g,this._b);return{h:se.h*360,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=b(this._r,this._g,this._b),we=w(se.h*360),ve=w(se.s*100),$e=w(se.l*100);return this._a==1?"hsl("+we+", "+ve+"%, "+$e+"%)":"hsla("+we+", "+ve+"%, "+$e+"%, "+this._roundA+")"},toHex:function(se){return o(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(se){return r(this._r,this._g,this._b,this._a,se)},toHex8String:function(se){return"#"+this.toHex8(se)},toRgb:function(){return{r:w(this._r),g:w(this._g),b:w(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+w(this._r)+", "+w(this._g)+", "+w(this._b)+")":"rgba("+w(this._r)+", "+w(this._g)+", "+w(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:w(I(this._r,255)*100)+"%",g:w(I(this._g,255)*100)+"%",b:w(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+w(I(this._r,255)*100)+"%, "+w(I(this._g,255)*100)+"%, "+w(I(this._b,255)*100)+"%)":"rgba("+w(I(this._r,255)*100)+"%, "+w(I(this._g,255)*100)+"%, "+w(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[o(this._r,this._g,this._b,!0)]||!1},toFilter:function(se){var we="#"+s(this._r,this._g,this._b,this._a),ve=we,$e=this._gradientType?"GradientType = 1, ":"";if(se){var me=_(se);ve="#"+s(me._r,me._g,me._b,me._a)}return"progid:DXImageTransform.Microsoft.gradient("+$e+"startColorstr="+we+",endColorstr="+ve+")"},toString:function(se){var we=!!se;se=se||this._format;var ve=!1,$e=this._a<1&&this._a>=0,me=!we&&$e&&(se==="hex"||se==="hex6"||se==="hex3"||se==="hex4"||se==="hex8"||se==="name");return me?se==="name"&&this._a===0?this.toName():this.toRgbString():(se==="rgb"&&(ve=this.toRgbString()),se==="prgb"&&(ve=this.toPercentageRgbString()),(se==="hex"||se==="hex6")&&(ve=this.toHexString()),se==="hex3"&&(ve=this.toHexString(!0)),se==="hex4"&&(ve=this.toHex8String(!0)),se==="hex8"&&(ve=this.toHex8String()),se==="name"&&(ve=this.toName()),se==="hsl"&&(ve=this.toHslString()),se==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString())},clone:function(){return _(this.toString())},_applyModification:function(se,we){var ve=se.apply(null,[this].concat([].slice.call(we)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(L,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(se,we){return se.apply(null,[this].concat([].slice.call(we)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(c,arguments)},tetrad:function(){return this._applyCombination(u,arguments)}},_.fromRatio=function(se,we){if(typeof se=="object"){var ve={};for(var $e in se)se.hasOwnProperty($e)&&($e==="a"?ve[$e]=se[$e]:ve[$e]=Ze(se[$e]));se=ve}return _(se,we)};function d(se){var we={r:0,g:0,b:0},ve=1,$e=null,me=null,X=null,G=!1,Y=!1;return typeof se=="string"&&(se=De(se)),typeof se=="object"&&(Ve(se.r)&&Ve(se.g)&&Ve(se.b)?(we=v(se.r,se.g,se.b),G=!0,Y=String(se.r).substr(-1)==="%"?"prgb":"rgb"):Ve(se.h)&&Ve(se.s)&&Ve(se.v)?($e=Ze(se.s),me=Ze(se.v),we=p(se.h,$e,me),G=!0,Y="hsv"):Ve(se.h)&&Ve(se.s)&&Ve(se.l)&&($e=Ze(se.s),X=Ze(se.l),we=f(se.h,$e,X),G=!0,Y="hsl"),se.hasOwnProperty("a")&&(ve=se.a)),ve=V(ve),{ok:G,format:se.format||Y,r:B(255,C(we.r,0)),g:B(255,C(we.g,0)),b:B(255,C(we.b,0)),a:ve}}function v(se,we,ve){return{r:I(se,255)*255,g:I(we,255)*255,b:I(ve,255)*255}}function b(se,we,ve){se=I(se,255),we=I(we,255),ve=I(ve,255);var $e=C(se,we,ve),me=B(se,we,ve),X,G,Y=($e+me)/2;if($e==me)X=G=0;else{var ue=$e-me;G=Y>.5?ue/(2-$e-me):ue/($e+me);switch($e){case se:X=(we-ve)/ue+(we1&&(ze-=1),ze<1/6?be+(We-be)*6*ze:ze<1/2?We:ze<2/3?be+(We-be)*(2/3-ze)*6:be}if(we===0)$e=me=X=ve;else{var Y=ve<.5?ve*(1+we):ve+we-ve*we,ue=2*ve-Y;$e=G(ue,Y,se+1/3),me=G(ue,Y,se),X=G(ue,Y,se-1/3)}return{r:$e*255,g:me*255,b:X*255}}function n(se,we,ve){se=I(se,255),we=I(we,255),ve=I(ve,255);var $e=C(se,we,ve),me=B(se,we,ve),X,G,Y=$e,ue=$e-me;if(G=$e===0?0:ue/$e,$e==me)X=0;else{switch($e){case se:X=(we-ve)/ue+(we>1)+720)%360;--we;)$e.h=($e.h+me)%360,X.push(_($e));return X}function A(se,we){we=we||6;for(var ve=_(se).toHsv(),$e=ve.h,me=ve.s,X=ve.v,G=[],Y=1/we;we--;)G.push(_({h:$e,s:me,v:X})),X=(X+Y)%1;return G}_.mix=function(se,we,ve){ve=ve===0?0:ve||50;var $e=_(se).toRgb(),me=_(we).toRgb(),X=ve/100,G={r:(me.r-$e.r)*X+$e.r,g:(me.g-$e.g)*X+$e.g,b:(me.b-$e.b)*X+$e.b,a:(me.a-$e.a)*X+$e.a};return _(G)},_.readability=function(se,we){var ve=_(se),$e=_(we);return(z.max(ve.getLuminance(),$e.getLuminance())+.05)/(z.min(ve.getLuminance(),$e.getLuminance())+.05)},_.isReadable=function(se,we,ve){var $e=_.readability(se,we),me,X;X=!1,me=pe(ve);switch(me.level+me.size){case"AAsmall":case"AAAlarge":X=$e>=4.5;break;case"AAlarge":X=$e>=3;break;case"AAAsmall":X=$e>=7;break}return X},_.mostReadable=function(se,we,ve){var $e=null,me=0,X,G,Y,ue;ve=ve||{},G=ve.includeFallbackColors,Y=ve.level,ue=ve.size;for(var be=0;beme&&(me=X,$e=_(we[be]));return _.isReadable(se,$e,{level:Y,size:ue})||!G?$e:(ve.includeFallbackColors=!1,_.mostReadable(se,["#fff","#000"],ve))};var j=_.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"},U=_.hexNames=H(j);function H(se){var we={};for(var ve in se)se.hasOwnProperty(ve)&&(we[se[ve]]=ve);return we}function V(se){return se=parseFloat(se),(isNaN(se)||se<0||se>1)&&(se=1),se}function I(se,we){ie(se)&&(se="100%");var ve=ae(se);return se=B(we,C(0,parseFloat(se))),ve&&(se=parseInt(se*we,10)/100),z.abs(se-we)<1e-6?1:se%we/parseFloat(we)}function W(se){return B(1,C(0,se))}function Q(se){return parseInt(se,16)}function ie(se){return typeof se=="string"&&se.indexOf(".")!=-1&&parseFloat(se)===1}function ae(se){return typeof se=="string"&&se.indexOf("%")!=-1}function xe(se){return se.length==1?"0"+se:""+se}function Ze(se){return se<=1&&(se=se*100+"%"),se}function Me(se){return z.round(parseFloat(se)*255).toString(16)}function Be(se){return Q(se)/255}var qe=function(){var se="[-\\+]?\\d+%?",we="[-\\+]?\\d*\\.\\d+%?",ve="(?:"+we+")|(?:"+se+")",$e="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?",me="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?";return{CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+$e),rgba:new RegExp("rgba"+me),hsl:new RegExp("hsl"+$e),hsla:new RegExp("hsla"+me),hsv:new RegExp("hsv"+$e),hsva:new RegExp("hsva"+me),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 Ve(se){return!!qe.CSS_UNIT.exec(se)}function De(se){se=se.replace(N,"").replace(K,"").toLowerCase();var we=!1;if(j[se])se=j[se],we=!0;else if(se=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ve;return(ve=qe.rgb.exec(se))?{r:ve[1],g:ve[2],b:ve[3]}:(ve=qe.rgba.exec(se))?{r:ve[1],g:ve[2],b:ve[3],a:ve[4]}:(ve=qe.hsl.exec(se))?{h:ve[1],s:ve[2],l:ve[3]}:(ve=qe.hsla.exec(se))?{h:ve[1],s:ve[2],l:ve[3],a:ve[4]}:(ve=qe.hsv.exec(se))?{h:ve[1],s:ve[2],v:ve[3]}:(ve=qe.hsva.exec(se))?{h:ve[1],s:ve[2],v:ve[3],a:ve[4]}:(ve=qe.hex8.exec(se))?{r:Q(ve[1]),g:Q(ve[2]),b:Q(ve[3]),a:Be(ve[4]),format:we?"name":"hex8"}:(ve=qe.hex6.exec(se))?{r:Q(ve[1]),g:Q(ve[2]),b:Q(ve[3]),format:we?"name":"hex"}:(ve=qe.hex4.exec(se))?{r:Q(ve[1]+""+ve[1]),g:Q(ve[2]+""+ve[2]),b:Q(ve[3]+""+ve[3]),a:Be(ve[4]+""+ve[4]),format:we?"name":"hex8"}:(ve=qe.hex3.exec(se))?{r:Q(ve[1]+""+ve[1]),g:Q(ve[2]+""+ve[2]),b:Q(ve[3]+""+ve[3]),format:we?"name":"hex"}:!1}function pe(se){var we,ve;return se=se||{level:"AA",size:"small"},we=(se.level||"AA").toUpperCase(),ve=(se.size||"small").toLowerCase(),we!=="AA"&&we!=="AAA"&&(we="AA"),ve!=="small"&&ve!=="large"&&(ve="small"),{level:we,size:ve}}Vt.exports?Vt.exports=_:!(ne=function(){return _}.call(Ee,k,Ee,Vt),ne!==void 0&&(Vt.exports=ne))})(Math)},bT9E:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return z});var ne=k("VTBJ");function z(N,K){var O=Object(ne.a)({},N);return Array.isArray(K)&&K.forEach(function(w){delete O[w]}),O}},biw7:function(Vt,Ee,k){"use strict";var ne=k("q1tI"),z=k.n(ne),N=ne.createContext(null);Ee.a=N},c5Ni:function(Vt,Ee,k){},dejd:function(Vt,Ee,k){},dmUQ:function(Vt,Ee,k){"use strict";var ne=k("Ff2n"),z=k("rePB"),N=k("1OyB"),K=k("vuIU"),O=k("Ji7U"),w=k("md7G"),B=k("foSv"),C=k("q1tI"),P=k.n(C),_=k("TSYQ"),d=k.n(_),v=k("4IlW");function b(c,u){var D=Object.keys(c);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(c);u&&(T=T.filter(function(A){return Object.getOwnPropertyDescriptor(c,A).enumerable})),D.push.apply(D,T)}return D}function f(c){for(var u=1;u1?ae-1:0),Ze=1;Ze1?I-1:0),Q=1;Q=0)return parseInt(V.slice(V.indexOf("e-")+2),10);var I=0;return V.indexOf(".")>=0&&(I=V.length-V.indexOf(".")-1),I},A.getInputDisplayValue=function(H){var V=H||A.state,I=V.focused,W=V.inputValue,Q=V.value,ie;I?ie=W:ie=A.toPrecisionAsStep(Q),ie==null&&(ie="");var ae=A.formatWrapper(ie);return y(A.props.decimalSeparator)&&(ae=ae.toString().replace(".",A.props.decimalSeparator)),ae},A.recordCursorPosition=function(){try{A.cursorStart=A.input.selectionStart,A.cursorEnd=A.input.selectionEnd,A.currentValue=A.input.value,A.cursorBefore=A.input.value.substring(0,A.cursorStart),A.cursorAfter=A.input.value.substring(A.cursorEnd)}catch(H){}},A.restoreByAfter=function(H){if(H===void 0)return!1;var V=A.input.value,I=V.lastIndexOf(H);if(I===-1)return!1;var W=A.cursorBefore.length;return A.lastKeyCode===v.a.DELETE&&A.cursorBefore.charAt(W-1)===H[0]?(A.fixCaret(W,W),!0):I+H.length===V.length?(A.fixCaret(I,I),!0):!1},A.partRestoreByAfter=function(H){return H===void 0?!1:Array.prototype.some.call(H,function(V,I){var W=H.substring(I);return A.restoreByAfter(W)})},A.isNotCompleteNumber=function(H){return isNaN(H)||H===""||H===null||H&&H.toString().indexOf(".")===H.toString().length-1},A.stop=function(){A.autoStepTimer&&clearTimeout(A.autoStepTimer)},A.down=function(H,V,I){A.pressingUpOrDown=!0,A.step("down",H,V,I)},A.up=function(H,V,I){A.pressingUpOrDown=!0,A.step("up",H,V,I)},A.saveInput=function(H){A.input=H};var j=T.value;j===void 0&&(j=T.defaultValue),A.state={focused:T.autoFocus};var U=A.getValidValue(A.toNumber(j));return A.state=f(f({},A.state),{},{inputValue:A.toPrecisionAsStep(U),value:U}),A}return Object(K.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(A){var j=this.props,U=j.value,H=j.onChange,V=j.max,I=j.min,W=this.state.focused;if(A){if(!L(A.value,U)||!L(A.max,V)||!L(A.min,I)){var Q=W?U:this.getValidValue(U),ie;this.pressingUpOrDown?ie=Q:this.inputting?ie=this.rawInput:ie=this.toPrecisionAsStep(Q),this.setState({value:Q,inputValue:ie})}var ae="value"in this.props?U:this.state.value;"max"in this.props&&A.max!==V&&typeof ae=="number"&&ae>V&&H&&H(V),"min"in this.props&&A.min!==I&&typeof ae=="number"&&ae1&&arguments[1]!==void 0?arguments[1]:this.props.min,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,H=parseFloat(A);return isNaN(H)?A:(HU&&(H=U),H)}},{key:"setValue",value:function(A,j){var U=this.props.precision,H=this.isNotCompleteNumber(parseFloat(A))?null:parseFloat(A),V=this.state.value,I=V===void 0?null:V,W=this.state.inputValue,Q=W===void 0?null:W,ie=typeof H=="number"?H.toFixed(U):"".concat(H),ae=H!==I||ie!=="".concat(Q);return"value"in this.props?(Q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Q},j)):this.setState({value:H,inputValue:this.toPrecisionAsStep(A)},j),ae&&this.props.onChange(H),H}},{key:"getMaxPrecision",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.props,H=U.precision,V=U.step;if(y(H))return H;var I=this.getPrecision(j),W=this.getPrecision(V),Q=this.getPrecision(A);return A?Math.max(Q,I+W):I+W}},{key:"getPrecisionFactor",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getMaxPrecision(A,j);return Math.pow(10,U)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(A){return this.props.formatter?this.props.formatter(A):A}},{key:"toPrecisionAsStep",value:function(A){if(this.isNotCompleteNumber(A)||A==="")return A;var j=Math.abs(this.getMaxPrecision(A));return isNaN(j)?A.toString():Number(A).toFixed(j)}},{key:"toNumber",value:function(A){var j=this.props.precision,U=this.state.focused,H=A&&A.length>16&&U;return this.isNotCompleteNumber(A)||H?A:y(j)?Math.round(A*Math.pow(10,j))/Math.pow(10,j):Number(A)}},{key:"upStep",value:function(A,j){var U=this.props.step,H=this.getPrecisionFactor(A,j),V=Math.abs(this.getMaxPrecision(A,j)),I=((H*A+H*U*j)/H).toFixed(V);return this.toNumber(I)}},{key:"downStep",value:function(A,j){var U=this.props.step,H=this.getPrecisionFactor(A,j),V=Math.abs(this.getMaxPrecision(A,j)),I=((H*A-H*U*j)/H).toFixed(V);return this.toNumber(I)}},{key:"step",value:function(A,j){var U=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,V=arguments.length>3?arguments[3]:void 0;this.stop(),j&&(j.persist(),j.preventDefault());var I=this.props;if(I.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var Q=this["".concat(A,"Step")](W,H),ie=Q>I.max||QI.max?Q=I.max:Q=xe),Et=(qt||qt===0)&&(isNaN(qt)||Number(qt)<=Ze),Fe=st||H||V,Se=Et||H||V,Oe=d()("".concat(U,"-handler"),"".concat(U,"-handler-up"),Object(z.a)({},"".concat(U,"-handler-up-disabled"),Fe)),ce=d()("".concat(U,"-handler"),"".concat(U,"-handler-down"),Object(z.a)({},"".concat(U,"-handler-down-disabled"),Se)),he=I?{onTouchStart:Fe?o:this.up,onTouchEnd:this.stop}:{onMouseDown:Fe?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ce=I?{onTouchStart:Se?o:this.down,onTouchEnd:this.stop}:{onMouseDown:Se?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return P.a.createElement("div",{className:nt,style:Me,title:Be,onMouseEnter:qe,onMouseLeave:Ve,onMouseOver:De,onMouseOut:pe,onFocus:function(){return null},onBlur:function(){return null}},P.a.createElement("div",{className:"".concat(U,"-handler-wrap")},P.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Increase Value","aria-disabled":Fe,className:Oe}),Q||P.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-up-inner"),onClick:r})),P.a.createElement("span",Object.assign({unselectable:"on"},Ce,{role:"button","aria-label":"Decrease Value","aria-disabled":Se,className:ce}),ie||P.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-down-inner"),onClick:r}))),P.a.createElement("div",{className:"".concat(U,"-input-wrap")},P.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ze,"aria-valuemax":xe,"aria-valuenow":qt,required:se,type:$e,placeholder:me,onPaste:Tt,onClick:we,onMouseUp:this.onMouseUp,className:"".concat(U,"-input"),tabIndex:ve,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:pt?this.onKeyDown:o,onKeyUp:pt?this.onKeyUp:o,autoFocus:We,maxLength:be,readOnly:V,disabled:H,max:xe,min:Ze,step:ue,name:ze,title:Be,id:X,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(kt),pattern:Y,inputMode:G,onInput:Ut},He))))}}]),D}(P.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:s,required:!1,autoComplete:"off"};var g=R,m=Ee.a=g},fjLI:function(Vt,Ee,k){"use strict";k.d(Ee,"e",function(){return _}),k.d(Ee,"a",function(){return d}),k.d(Ee,"c",function(){return v}),k.d(Ee,"d",function(){return f}),k.d(Ee,"b",function(){return n});var ne=k("8HAY"),z=k("Cg/j"),N=k("T8No"),K=k("nnTU"),O=k("MI8n"),w=function(){var p=function(o,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var x in l)l.hasOwnProperty(x)&&(s[x]=l[x])},p(o,r)};return function(o,r){p(o,r);function s(){this.constructor=o}o.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}(),B=function(p,o,r,s){var l=arguments.length,x=l<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,r):s,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(p,o,r,s);else for(var y=p.length-1;y>=0;y--)(E=p[y])&&(x=(l<3?E(x):l>3?E(o,r,x):E(o,r))||x);return l>3&&x&&Object.defineProperty(o,r,x),x},C=function(p,o){return function(r,s){o(r,s,p)}},P=function(){for(var p=0,o=0,r=arguments.length;o=0&&(l.splice(x,1),s._onDidChangeMenu.fire(o))}}},p.prototype.getMenuItems=function(o){var r=(this._menuItems.get(o)||[]).slice(0);return o===0&&this._appendImplicitItems(r),r},p.prototype._appendImplicitItems=function(o){for(var r=new Set,s=o.filter(function(R){return _(R)}),l=0,x=s;l47?qn({status:!0,visible:!0}):qn({status:!1,visible:!0}))},[Re.course_group_info&&Re.course_group_info.length]),Object(f.useEffect)(function(){Re!=null&&Re.course_id&&(Object(x.c)()?An([]):An([Object(_.a)(Object(_.a)({},Re),{isMe:!0})]))},[sr.userInfo]),Object(f.useEffect)(function(){Re!=null&&Re.course_id&&setTimeout(function(){Mt(Object(Ve.a)(Re.student_works))},400)},[Re]);var ur=function(){var vn=Object(B.a)(b.a.mark(function Ft(){var Tn;return b.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Pn.next=2,Or({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},ke)});case 2:Tn=Pn.sent,Object(x.c)()?Mt(Object(Ve.a)(Tn.student_works)):Mt(Object(Ve.a)(Tn));case 4:case"end":return Pn.stop()}},Ft)}));return function(){return vn.apply(this,arguments)}}();function gr(){Ye(1),Rn(""),ye(""),rt(""),Bt(""),ha([])}var Rr=function(){ke.page=1;var Ft=Object.assign({},hr.getFieldValue());delete ke.course_group,delete ke.teacher_comment,Object.keys(Ft).map(function(Tn){switch(Tn){case"teacher_comment":case"member_work":if(Ft[Tn].length>1||!Ft[Tn].length)delete ke[Tn],hr.setFieldsValue(Object(qe.a)({},Tn,"all"));else{var br;ke[Tn]=(br=Ft[Tn])===null||br===void 0?void 0:br[0]}break;case"work_status":Ft[Tn].includes("all")||Re.task_status.length===Ft[Tn].length||!Ft[Tn].length?(delete ke.work_status,hr.setFieldsValue(Object(qe.a)({},"work_status","all"))):(ke.work_status=Ft[Tn],hr.setFieldsValue(Object(qe.a)({},"work_status",ke.work_status)));break;case"course_group_info":Ft[Tn].includes("all")||Re[Tn].length===Ft[Tn].length||!Ft[Tn].length?(delete ke.course_group,hr.setFieldsValue(Object(qe.a)({},"course_group_info","all"))):(ke.course_group=Ft[Tn],hr.setFieldsValue(Object(qe.a)({},"course_group_info",ke.course_group)));break}}),ur()},rr=function(Ft,Tn){ke.page=Ft,ke.limit=20,ur()},Ur=[{name:"\u7EC4\u957F",id:1},{name:"\u7EC4\u5458",id:0}],Jn=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",width:50,render:function(Ft,Tn,br){return ke.limit*(ke.page-1)+br+1}},{title:"\u59D3\u540D",align:"center",dataIndex:"user_name",width:90,render:function(Ft,Tn){return n.a.createElement("div",null,Ft,n.a.createElement("br",null),Tn.is_leader&&n.a.createElement("span",{className:"leader"},"\u7EC4\u957F"))}},Object(x.c)()&&{title:"\u5B66\u53F7",align:"center",dataIndex:"student_id",sortOrder:vr.student_id,sortDirections:["descend","ascend"],width:90,sorter:function(Ft,Tn){return Ft.id-Tn.id},render:function(Ft){return Ft}},Object(x.c)()&&{title:"\u5206\u73ED",align:"center",dataIndex:"group_name"},{title:"\u5206\u7EC4",align:"center",dataIndex:"work_group",width:70,render:function(Ft){return n.a.createElement("span",{className:"c-blue"},Ft)}},(Re==null?void 0:Re.base_on_project)&&{title:"\u5173\u8054\u9879\u76EE",align:"center",dataIndex:"base_on_project",width:70,render:function(Ft,Tn){var br,Pn,Lr,Wr,Nr,Mr;return((br=Tn.project_info)===null||br===void 0?void 0:br.id)!==-1?n.a.createElement("a",{target:"_blank",href:"".concat((Pn=sr.navigationInfo)===null||Pn===void 0||((Lr=Pn.top)===null||Lr===void 0)?void 0:Lr.old_url).concat((Wr=Tn.project_info)===null||Wr===void 0?void 0:Wr.id),className:"c-blue"},(Nr=Tn.project_info)===null||Nr===void 0?void 0:Nr.name):(Mr=Tn.project_info)===null||Mr===void 0?void 0:Mr.name}},{title:"\u4F5C\u54C1\u72B6\u6001",dataIndex:"work_status",width:"8%",align:"center",render:function(Ft){return Ft===-1?"\u91CD\u505A\u4E2D":n.a.createElement(l.a,{status:Ft})}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",width:"8%",align:"center",render:function(Ft){return Ft||"- -"}},{title:"\u66F4\u65B0\u65F6\u95F4",align:"center",dataIndex:"update_time",sortOrder:vr.update_time,sortDirections:["descend","ascend"],width:105,sorter:function(Ft,Tn){return Ft.id-Tn.id},render:function(Ft){return Ft?X()(Ft).format("YYYY-MM-DD HH:mm"):"--"}},{title:"\u6559\u5E08\u8BC4\u5206",align:"center",dataIndex:"teacher_score",width:75},{title:"\u52A9\u6559\u8BC4\u5206",align:"center",dataIndex:"teaching_asistant_score",width:75},Re.anonymous_comment&&{title:"\u533F\u8BC4\u8BC4\u5206",align:"center",dataIndex:"student_score",width:75},(Object(x.c)()||Object(x.s)()&&!(Re!=null&&Re.anonymous_comment)&&!Re.anonymous_appeal||Object(x.s)()&&((cn=Re.homework_status)===null||cn===void 0?void 0:cn.includes("\u5DF2\u622A\u6B62")))&&{title:"\u5F53\u524D\u6210\u7EE9",width:"9%",align:"center",dataIndex:"work_score",sortOrder:vr.work_score,sortDirections:["descend","ascend"],sorter:!0,render:function(Ft){return Ft}},{title:"\u64CD\u4F5C",width:"8%",align:"center",dataInex:"action",render:function(Ft,Tn){return Tn.work_status===0&&!Object(x.c)()?n.a.createElement("div",null,"--"):n.a.createElement("div",null,!Object(x.c)()&&n.a.createElement(r.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat(ke.coursesId,"/group_homework/").concat(ke.categoryId,"/review/").concat(Tn.id)},"\u67E5\u770B"),Object(x.c)()&&n.a.createElement(r.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat(ke.coursesId,"/group_homework/").concat(ke.categoryId,"/review/").concat(Tn.id)},Tn.has_comment?"\u5DF2\u8BC4\u9605":"\u8BC4\u9605"),n.a.createElement("br",null),Object(x.c)()&&n.a.createElement(Be.a,{placement:"bottom",title:n.a.createElement("p",null,"\u8C03\u6574\u5B66\u751F\u5F53\u524D\u6210\u7EE9",n.a.createElement("br",null),"\u5176\u5B83\u5386\u53F2\u8BC4\u5206\u5C06\u5168\u90E8\u5931\u6548")},n.a.createElement("a",{className:"c-green",onClick:function(Pn){Pn.preventDefault(),Or({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8C03\u5206",selectArrs:Tn,id:Tn.id,params:ke}})}},"\u8C03\u5206")))}}].filter(function(vn){return!!vn}),rn=Object(Ve.a)(Jn.map(function(vn){return Object(_.a)({},vn)}));rn[0].render=function(vn){return"\u6211"};var wn=function(){var vn=Object(B.a)(b.a.mark(function Ft(){var Tn,br;return b.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return Qe(!0),Lr.next=3,Object(G.a)("/api/homework_commons/".concat(ke==null?void 0:ke.categoryId,"/export_student_works.json"),{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});case 3:Tn=Lr.sent,Tn.status===0?(br=ee.current)===null||br===void 0||br.exportReport(Tn.files):Qe(!1);case 5:case"end":return Lr.stop()}},Ft)}));return function(){return vn.apply(this,arguments)}}(),xr=function(){return n.a.createElement(Ze.a,null,n.a.createElement(Ze.a.Item,{key:"1"},n.a.createElement("span",{onClick:function(){return Object(Nt.h)(JSON.parse(sessionStorage.all_student_works_params),"group_work_list")}},"\u5BFC\u51FA\u6210\u7EE9")),n.a.createElement(Ze.a.Item,{key:"3"},n.a.createElement(P.a,{loading:Te,ghost:!0,style:{paddingLeft:0,background:"transparent"},type:"text",onClick:function(){return wn()}},"\u5BFC\u51FA\u4F5C\u54C1\u9644\u4EF6")),n.a.createElement(Ze.a.Item,{key:"2"},n.a.createElement(r.a,{to:"/classrooms/".concat(ke.coursesId,"/exportlist/group_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return n.a.createElement("section",{className:"".concat(It.a.wrap," minH500")},n.a.createElement("aside",null,n.a.createElement("aside",{className:"minH500 bg-white pl30 ".concat(Object(x.c)()?"pt30":""," pr30")},!(Re!=null&&Re.all_member_count)&&!Dn["shixunHomeworks/getWorkList"]&&((Re==null||((_n=Re.homework_status)===null||_n===void 0)?void 0:_n.includes("\u672A\u53D1\u5E03"))||(Re==null||((zn=Re.homework_status)===null||zn===void 0)?void 0:zn.includes("\u672A\u5F00\u59CB")))&&n.a.createElement("aside",{className:"bg-white inline-block w100"},n.a.createElement(Y.a,null)),!Object(x.c)()&&n.a.createElement("aside",{className:"pt10 pb10"},n.a.createElement("span",{className:"c-orange"},Re.commit_count),"\u5DF2\u4EA4",n.a.createElement("span",{className:"ml10"},Re.uncommit_count),"\u672A\u4EA4",(Re==null||((lr=Re.left_time)===null||lr===void 0)?void 0:lr.time)&&n.a.createElement("span",{className:"ml10"},n.a.createElement("span",null,Re==null||((ir=Re.left_time)===null||ir===void 0)?void 0:ir.status),n.a.createElement("span",{className:"c-orange"},Re==null||((Tr=Re.left_time)===null||Tr===void 0)?void 0:Tr.time))),n.a.createElement("aside",null,!(Re!=null&&($n=Re.homework_status)!==null&&$n!==void 0&&$n.includes("\u672A\u53D1\u5E03"))&&!(Re!=null&&(Vn=Re.homework_status)!==null&&Vn!==void 0&&Vn.includes("\u672A\u5F00\u59CB"))&&n.a.createElement("aside",null,Object(x.c)()&&n.a.createElement("aside",{className:"mb30"},n.a.createElement(pe.a,{form:hr,onChange:Rr,initialValues:(jn={},Object(qe.a)(jn,"member_work","all"),Object(qe.a)(jn,"work_status","all"),Object(qe.a)(jn,"course_group_info","all"),Object(qe.a)(jn,"teacher_comment","all"),jn)},n.a.createElement(pe.a.Item,{name:"teacher_comment"},n.a.createElement(Q.a.Group,{style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u4F60\u7684\u8BC4\u9605:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all",checked:!Dt.teacher_comment},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1"},Re.teacher_comment&&Re.teacher_comment.map(function(vn){return n.a.createElement(Q.a,{value:vn.id,key:vn.id},vn.name,"(",vn.count,")")}))))),n.a.createElement(pe.a.Item,{name:"work_status"},n.a.createElement(Q.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u4F5C\u54C1\u72B6\u6001:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all",checked:!Dt.work_status},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1"},Re.task_status&&Re.task_status.map(function(vn){return n.a.createElement(Q.a,{name:"work_status",value:vn.id,key:vn.id},vn.name,"(",vn.count,")")}))))),n.a.createElement(pe.a.Item,{name:"member_work"},n.a.createElement(Q.a.Group,{style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u7EC4\u5185\u89D2\u8272:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1"},Ur.map(function(vn){return n.a.createElement(Q.a,{value:vn.id,key:vn.id},vn.name)}))))),n.a.createElement(pe.a.Item,{name:"course_group_info"},n.a.createElement(Q.a.Group,{style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all",checked:!Dt.course_group},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1",className:"".concat(It.a.workListClass," ").concat(Mn.visible?It.a.visible:""," ").concat(Mn.status?"":It.a.status)},n.a.createElement("div",{ref:qt,className:It.a.left},Re.course_group_info&&Re.course_group_info.map(function(vn){return n.a.createElement(Q.a,{value:vn.course_group_id,key:vn.course_group_id},vn.group_group_name,"(",vn.count,")")})),Mn.status&&n.a.createElement("div",{className:It.a.tips,onClick:function(){return qn(Object(_.a)(Object(_.a)({},Mn),{},{visible:!Mn.visible}))}},n.a.createElement("span",null,Mn.visible?"\u5C55\u5F00":"\u6536\u8D77",Mn.visible?n.a.createElement(se.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(we.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))))),n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,{flex:"1"},n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,null,n.a.createElement(H.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(Ft){ke.page=1,ke.search=Ft,Or({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},ke)})},style:{width:240}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"ml5 c-red"},Re.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",Re.work_count,"\u4E2A\u5B66\u751F\uFF09"))),n.a.createElement(ae.a,{style:{textAlign:"end"},className:It.a.workListButtonWrap},n.a.createElement(j.a,{overlay:xr},n.a.createElement(P.a,null,n.a.createElement(ve.a,null),"\u5BFC\u51FA",n.a.createElement($e.a,null)))))),!!Qn.length&&n.a.createElement(T.a,{className:"mb10",dataSource:Qn,columns:rn,pagination:!1,showHeader:!1,loading:!1}),n.a.createElement("aside",{className:"mb30"},n.a.createElement(T.a,{loading:Dn["shixunHomeworks/getWorkList"],hideOnSinglePage:!0,pagination:!1,dataSource:Xt,columns:Jn,onChange:function(Ft,Tn,br){if(vr={},br.order===void 0){vr[br.field]="descend";switch(br.field){case"student_id":Ie("descend"),ke.b_order="desc";break}}else ke.b_order=br.order.replace("end",""),vr[br.field]=br.order;Fn(Object(_.a)({},vr)),ke.order=br.field,Or({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},ke)})}}))))),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(u.a,{showSizeChanger:!1,hideOnSinglePage:!0,onChange:rr,defaultCurrent:ke.page||1,current:ke.page||1,defaultPageSize:20,total:Pr.workList.work_count}))),n.a.createElement(ze,null),n.a.createElement(be,null),Gr&&n.a.createElement(y.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Gr,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(B.a)(b.a.mark(function vn(){var Ft,Tn;return b.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:if(!(_e===2)){Pn.next=13;break}if(!(ia.length<=0)){Pn.next=4;break}return w.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),Pn.abrupt("return");case 4:if(St){Pn.next=7;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),Pn.abrupt("return");case 7:return Pn.next=9,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,status:ia}});case 9:Ft=Pn.sent,Ft.status===0&&(pa(Ft),Zr(!1),ua(!0)),Pn.next=32;break;case 13:if(!(je===0||le===0)){Pn.next=16;break}Pn.next=22;break;case 16:if(je){Pn.next=19;break}return w.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),Pn.abrupt("return");case 19:if(le){Pn.next=22;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),Pn.abrupt("return");case 22:if(!(je>le)){Pn.next=25;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),Pn.abrupt("return");case 25:if(St){Pn.next=28;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),Pn.abrupt("return");case 28:return Pn.next=30,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,min_score:je,max_score:le}});case 30:Tn=Pn.sent,Tn.status===0&&(pa(Tn),Zr(!1),ua(!0));case 32:case"end":return Pn.stop()}},vn)})),onCancel:function(){Zr(!1),gr()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{value:_e,onChange:function(Ft){Ye(Ft.target.value)}},n.a.createElement(m.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(m.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),_e===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(R.a,{min:0,max:100,value:je,onChange:function(Ft){return rt(Ft)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(R.a,{min:0,max:100,value:le,onChange:function(Ft){return ye(Ft)},style:{width:"100px"}})),_e===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),n.a.createElement(Q.a.Group,{onChange:function(Ft){ha(Object(Ve.a)(Ft))},style:{width:"100%"}},(mn=Re.task_status)===null||mn===void 0?void 0:mn.map(function(vn,Ft){return n.a.createElement(Q.a,{name:"task_status",value:vn.id},vn.name,"(",vn.count,")")}))),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),n.a.createElement(Tt.a,{className:It.a.MdEditor,onChange:function(Ft){return Bt(Ft)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),$a&&n.a.createElement(y.a,{visible:$a,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(B.a)(b.a.mark(function vn(){var Ft,Tn;return b.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:if(!(_e===2)){Pn.next=7;break}return Pn.next=3,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,status:ia}});case 3:Ft=Pn.sent,Ft.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),gr(),ur(),ua(!1)),Pn.next=11;break;case 7:return Pn.next=9,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,min_score:je,max_score:le}});case 9:Tn=Pn.sent,Tn.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),gr(),ur(),ua(!1));case 11:case"end":return Pn.stop()}},vn)})),onCancel:function(){gr(),ua(!1)}},n.a.createElement("div",{style:{padding:"32px"}},_e===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",je,"-",le,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),_e===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((Ar=Re.task_status)===null||Ar===void 0?void 0:Ar.filter(function(vn){return ia==null?void 0:ia.includes(vn.id)}).map(function(vn){return vn.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Oa==null?void 0:Oa.count,"\u540D\u5B66\u751F"))))},nt=Object(o.a)(function(an){var Jt=an.shixunHomeworks,cn=an.user,_n=an.loading;return{shixunHomeworks:Jt,loading:_n.effects,user:cn}})(hn),He=k("m3rI"),pt=k("9Bee"),kt=function(Jt){var cn=Jt.shixunHomeworks,_n=Jt.dispatch,zn=Object(p.i)();return n.a.createElement(y.a,{centered:!0,title:"\u63D0\u793A",visible:cn.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(b.a.mark(function lr(){var ir;return b.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return $n.next=2,_n({type:"shixunHomeworks/deleteReply",payload:{object_id:cn.actionTabs.selectArr.id,object_type:"journals_for_message"}});case 2:ir=$n.sent,ir.status===0&&(w.b.success("\u5220\u9664\u6210\u529F"),_n({type:"shixunHomeworks/setActionTabs",payload:{}}),_n({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},cn.actionTabs.params)}));case 4:case"end":return $n.stop()}},lr)})),onCancel:function(){_n({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))},st=Object(o.a)(function(an){var Jt=an.shixunHomeworks;return{shixunHomeworks:Jt}})(kt),Et=k("/MfK"),Fe=k("BtR2"),Se=k("nqnY"),Oe=k.n(Se),ce=k("p5ED");X.a.lang("ZH-cn");var he=function(Jt){var cn,_n,zn,lr,ir=Jt.shixunHomeworks,Tr=Jt.classroomList,$n=Jt.globalSetting,Vn=Jt.loading,jn=Jt.user,mn=Jt.dispatch,Ar=Object(f.useState)(Object(_.a)({},Object(p.i)())),Pr=Object(d.a)(Ar,2),Dn=Pr[0],sr=Pr[1],Or=Object(f.useState)(!1),ee=Object(d.a)(Or,2),Te=ee[0],Qe=ee[1],Ge=Object(f.useState)(-1),ot=Object(d.a)(Ge,2),ke=ot[0],ft=ot[1],yt=Object(f.useState)(""),Re=Object(d.a)(yt,2),mt=Re[0],Wt=Re[1],Dt=Object(f.useState)(""),lt=Object(d.a)(Dt,2),At=lt[0],Lt=lt[1],$t=ir.workList,Ie=Tr.detailLeftMenus,Pt=ir.shixunHomeworksDetail,Ht=ir.replyList,fn=ir.workDetail;Dn.page_size=10;var Wn=Object(f.useState)({content:"",type:""}),bn=Object(d.a)(Wn,2),xn=bn[0],Kn=bn[1],Hn=Object(f.useRef)();return Object(f.useEffect)(function(){mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},Dn)}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(_.a)({},Dn)}),Ie.course_modules||mn({type:"classroomList/getClassroomLeftMenus",payload:Object(_.a)({},Dn)})},[Dn.categoryId]),n.a.createElement("section",{className:Oe.a.bg},n.a.createElement("section",{className:""},n.a.createElement("aside",{className:[Oe.a.desc,"c-black","font14","bg-white"].join(" ")},ir.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement(pt.a,{value:(fn==null?void 0:fn.description)||"\u6682\u65E0\uFF5E"}),"\u5206\u7EC4\u8981\u6C42\uFF1A",fn==null||((cn=fn.group_info)===null||cn===void 0)?void 0:cn.min_num," ~ ",fn==null||((_n=fn.group_info)===null||_n===void 0)?void 0:_n.max_num,"\u4EBA ",n.a.createElement("span",{className:"c-light-black"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"),n.a.createElement("br",null),"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD\uFF1A",fn!=null&&(zn=fn.group_info)!==null&&zn!==void 0&&zn.base_on_project?"\u662F":"\u5426",n.a.createElement("span",{className:"c-light-black"},"\uFF08\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09"),fn==null||((lr=fn.attachments)===null||lr===void 0)?void 0:lr.map(function(_t,wt){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(He.a.API_SERVER).concat(_t.url),onClick:function(){var Xt=Object(B.a)(b.a.mark(function Mt(Un){var Qt;return b.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if(Un.preventDefault(),!(_t.file_type==="txt")){Rn.next=6;break}return Rn.next=4,Object(G.a)(_t.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:Qt=Rn.sent,Hn.current=Qt;case 6:Kn({type:_t.file_type,content:window.location.origin+_t.url});case 7:case"end":return Rn.stop()}},Mt)}));return function(Mt){return Xt.apply(this,arguments)}}()},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},_t.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},_t.filesize),n.a.createElement("span",{className:"ml10 c-light-primary current",onClick:function(Mt){Mt.preventDefault(),Mt.stopPropagation(),Object(l.v)("","".concat(He.a.API_SERVER).concat(_t.url))}},"\u4E0B\u8F7D"),n.a.createElement("span",{className:"ml10 c-green-29b current"},"\u9884\u89C8")))}),ir.actionTabs.key==="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("aside",{className:["bg-white"].join(" ")},n.a.createElement(Tt.a,{onChange:function(wt){Wt(wt)},defaultValue:fn==null?void 0:fn.explanation,height:200,isFocus:!0,watch:!0}),n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24,className:"tr"},n.a.createElement(P.a,{type:"default",size:"large",onClick:Object(B.a)(b.a.mark(function _t(){return b.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}});case 1:case"end":return Xt.stop()}},_t)}))},"\u53D6\u6D88"),n.a.createElement(P.a,{type:"primary",size:"large",className:"ml20",onClick:Object(B.a)(b.a.mark(function _t(){var wt;return b.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(!(mt==="")){Mt.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),Mt.next=8;break;case 4:return Mt.next=6,mn({type:"shixunHomeworks/updateWork",payload:{explanation:mt,categoryId:Dn.categoryId}});case 6:wt=Mt.sent,wt.status===0&&(w.b.success("\u64CD\u4F5C\u6210\u529F"),mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(_.a)({},Dn)}));case 8:case"end":return Mt.stop()}},_t)}))},"\u4FDD\u5B58"))))),n.a.createElement("aside",{className:[Oe.a.reply,"bg-white","mt20"].join(" ")},Te&&n.a.createElement(Tt.a,{onChange:function(wt){Wt(wt)},height:200,isFocus:!0,watch:!0}),n.a.createElement(I.a,{onClick:function(){Qe(!0)}},n.a.createElement(ae.a,{flex:"1"},!Te&&n.a.createElement(H.a,{size:"large",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),n.a.createElement(ae.a,null,n.a.createElement(P.a,{type:"primary",size:"large",onClick:Object(B.a)(b.a.mark(function _t(){var wt;return b.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(!(mt==="")){Mt.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),Mt.next=8;break;case 4:return Mt.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Dn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:mt}}});case 6:wt=Mt.sent,wt.status===0&&(w.b.success("\u53D1\u5E03\u6210\u529F"),mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},Dn)}),Qe(!1),Wt(""));case 8:case"end":return Mt.stop()}},_t)}))},"\u53D1\u8868")))),(Ht==null?void 0:Ht.comments)&&Ht.comments!=""&&n.a.createElement("aside",{className:[Oe.a.replyList,"bg-white"].join(" ")},Ht==null?void 0:Ht.comments.map(function(_t,wt){var Xt,Mt,Un,Qt;return n.a.createElement(I.a,{gutter:[12,12],key:wt},n.a.createElement(ae.a,{flex:"40px"},n.a.createElement("img",{className:Oe.a.headpic,width:"40",src:"".concat(He.a.IMG_SERVER,"/images/").concat(_t==null||((Xt=_t.author)===null||Xt===void 0)?void 0:Xt.image_url)})),n.a.createElement(ae.a,{flex:"1"},n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,{span:20},n.a.createElement("span",{className:"c-light-black"},_t==null||((Mt=_t.author)===null||Mt===void 0)?void 0:Mt.name),n.a.createElement("span",{className:"c-light-black ml10"},_t==null?void 0:_t.time," \u53D1\u5E03")),n.a.createElement(ae.a,{className:"tr",span:4},n.a.createElement("div",{className:"tr"},(Object(x.c)()||(jn==null||((Un=jn.userInfo)===null||Un===void 0)?void 0:Un.login)===(_t==null||((Qt=_t.author)===null||Qt===void 0)?void 0:Qt.login))&&n.a.createElement(Be.a,{title:"\u5220\u9664"},n.a.createElement(Et.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Dn,selectArr:_t}})}})))),n.a.createElement(ae.a,{span:24},n.a.createElement(pt.a,{value:_t.content})),_t.children&&n.a.createElement("aside",{className:Oe.a.comment},_t.children.map(function(ln,Rn){var Ln,dn;return n.a.createElement(I.a,{key:Rn},n.a.createElement(ae.a,{span:24},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"1"},ln.author.name,n.a.createElement("span",{className:"c-light-black ml10"},ln==null?void 0:ln.time)),n.a.createElement(ae.a,null,(Object(x.c)()||(jn==null||((Ln=jn.userInfo)===null||Ln===void 0)?void 0:Ln.login)===(ln==null||((dn=ln.author)===null||dn===void 0)?void 0:dn.login))&&n.a.createElement(Be.a,{title:"\u5220\u9664"},n.a.createElement(Et.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Dn,selectArr:ln}})}}))))),n.a.createElement(ae.a,null,n.a.createElement(pt.a,{value:ln.content})))})),n.a.createElement(ae.a,{span:24,className:"mt5 c-light-black"},ke===wt&&n.a.createElement("aside",null,n.a.createElement(Tt.a,{onChange:function(Rn){Lt(Rn)},height:150,isFocus:!0}),n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24,className:"tr"},n.a.createElement(P.a,{type:"primary",size:"large",onClick:Object(B.a)(b.a.mark(function ln(){return b.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!(At==="")){Ln.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),Ln.next=9;break;case 4:return Ln.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Dn.categoryId,jour_type:"HomeworkCommon",m_parent_id:_t.id,reply_id:1,notes:At}}});case 6:mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},Dn)}),w.b.success("\u53D1\u5E03\u6210\u529F"),ft(-1);case 9:case"end":return Ln.stop()}},ln)}))},"\u53D1\u8868")))),ke!==wt&&n.a.createElement("div",{className:"tr"},n.a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:function(){return ft(wt)}}),!!_t.user_praise&&n.a.createElement("span",{className:"c-orange"},n.a.createElement(Fe.a,{className:"mr5 ml30",onClick:Object(B.a)(b.a.mark(function ln(){return b.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,mn({type:"shixunHomeworks/replyUnLike",payload:{object_id:_t.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},Dn)});case 3:case"end":return Ln.stop()}},ln)}))}),!!_t.praise_count&&_t.praise_count),!_t.user_praise&&n.a.createElement("span",null,n.a.createElement(Fe.a,{className:"mr5 ml30",onClick:Object(B.a)(b.a.mark(function ln(){return b.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,mn({type:"shixunHomeworks/replyLike",payload:{object_id:_t.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},Dn)});case 3:case"end":return Ln.stop()}},ln)}))}),!!_t.praise_count&&_t.praise_count))))))}))),n.a.createElement("aside",{className:"tc mt30 pb30"},n.a.createElement(u.a,{defaultCurrent:1,total:Ht==null?void 0:Ht.total_count,hideOnSinglePage:!0,current:Dn.page||1,onChange:function(wt){Dn.page=wt,mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},Dn)})}})),n.a.createElement(st,null),n.a.createElement(ce.a,{close:!0,data:xn==null?void 0:xn.content,type:xn==null?void 0:xn.type,hasMask:!0,monacoEditor:{value:Hn.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return Kn({content:"",type:""})}}))},Ce=Object(o.a)(function(an){var Jt=an.shixunHomeworks,cn=an.classroomList,_n=an.user,zn=an.loading,lr=an.globalSetting;return{shixunHomeworks:Jt,globalSetting:lr,user:_n,classroomList:cn,loading:zn.effects}})(he);X.a.lang("ZH-cn");var Le=function(Jt){var cn,_n=Jt.shixunHomeworks,zn=Jt.classroomList,lr=Jt.globalSetting,ir=Jt.loading,Tr=Jt.dispatch,$n=Object(p.i)(),Vn=zn.detailLeftMenus,jn=_n.replyList,mn=_n.referenceAnswer;return $n.page_size=10,Object(f.useEffect)(function(){Tr({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},$n)}),Tr({type:"shixunHomeworks/getReferenceAnswer",payload:{coursesId:$n.categoryId}}),Vn.course_modules||Tr({type:"classroomList/getClassroomLeftMenus",payload:Object(_.a)({},$n)})},[$n.categoryId]),n.a.createElement("section",{className:"pb30 pl30 pr30 pt30 bg-white"},n.a.createElement("aside",{className:["c-black","font14"].join(" ")},_n.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("div",null,(mn==null?void 0:mn.reference_answer)&&n.a.createElement(pt.a,{value:mn==null?void 0:mn.reference_answer}),!(mn!=null&&mn.reference_answer)&&n.a.createElement(Y.a,null)),mn==null||((cn=mn.attachments)===null||cn===void 0)?void 0:cn.map(function(Ar,Pr){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(He.a.API_SERVER).concat(Ar.url)},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},Ar.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},Ar.filesize)))})))},at=Object(o.a)(function(an){var Jt=an.shixunHomeworks,cn=an.classroomList,_n=an.loading,zn=an.globalSetting;return{shixunHomeworks:Jt,globalSetting:zn,classroomList:cn,loading:_n.effects}})(Le),et=k("iQDF"),Rt=k("+eQT"),en=k("PpiC"),pn=k("oUNq"),on=k("4wi7");function Kt(an,Jt){for(var cn=[],_n=an;_n0)){vr.next=7;break}return w.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),vr.abrupt("return");case 7:return An={homework_ids:Object(Ve.a)(cn.actionTabs.selectArrs),group_ids:xn.map(function(Fn){return Fn.id}),end_time:X()(Qn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:X()(Qn.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:wt},vr.next=10,Object(G.a)("/api/courses/".concat(lr.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(_.a)({},An)});case 10:yr=vr.sent,yr.status===0&&(Object(l.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),w.b.success("\u53D1\u5E03\u6210\u529F"),_n({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),zn.type==="edit"&&(zn.onCallback&&zn.onCallback()),Object(x.c)()?cn.actionTabs.detail?(_n({type:"shixunHomeworks/setActionTabs",payload:{}}),_n({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},lr)}),_n({type:"shixunHomeworks/getWorkSetting",payload:Object(_.a)({},lr)})):_n({type:"classroomList/getClassroomTeacherCommonList",payload:Object(_.a)(Object(_.a)({},cn.actionTabs.params),{},{type:3})}):_n({type:"classroomList/getClassroomCommonList",payload:Object(_.a)({},cn.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||_n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:n.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return vr.stop()}},dn)}));return function(){return Ln.apply(this,arguments)}}(),ln=function(){Ar(1),Or([]),Kn([])},Rn=Qe>mn*ft;return n.a.createElement(y.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:cn.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Qt,onCancel:function(){ln(),_n({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",n.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),sr&&n.a.createElement(pe.a,{form:$n},n.a.createElement("div",{style:{paddingLeft:0}},n.a.createElement(I.a,{className:"mt30",align:"middle"},n.a.createElement(ae.a,null,n.a.createElement(pe.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},n.a.createElement(Rt.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(dn){return dn.parentNode},disabledDate:function(dn){return dn&&dn<=X()().subtract(0,"days")},disabledTime:bt,placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),n.a.createElement(ae.a,{className:"ml20"},n.a.createElement(pe.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},n.a.createElement(Rt.a,{style:{width:170},getPopupContainer:function(dn){return dn.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},disabledDate:function(dn){return dn&&dn0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(Q.a,{checked:xn.length===sr.length,onChange:function(dn){xn.length===sr.length?Kn([]):Kn(sr.filter(function(Qn){return!Qn.is_published}))}},"\u5168\u9009")," "),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",xn.length||0,"\u4E2A\u5206\u73ED")),(cn.actionTabs.type===1||!wt)&&sr.length>0&&n.a.createElement(on.a,{data:sr,selectedRowKeys:xn,setSelectedRowKeys:Kn})))},ct=Object(o.a)(function(an){var Jt=an.classroomList,cn=an.user;return{classroomList:Jt,user:cn}})(xt),ge=k("qbod"),Ne=k.n(ge),Ct=function(Jt){var cn=Jt.classroomList,_n=Jt.dispatch,zn=Jt.cb,lr=Object(en.a)(Jt,["classroomList","dispatch","cb"]),ir=Object(p.i)(),Tr=Object(f.useState)(null),$n=Object(d.a)(Tr,2),Vn=$n[0],jn=$n[1],mn=Object(f.useState)([1,2,3,4,5]),Ar=Object(d.a)(mn,2),Pr=Ar[0],Dn=Ar[1],sr=Object(f.useState)(!1),Or=Object(d.a)(sr,2),ee=Or[0],Te=Or[1];Object(f.useEffect)(function(){cn.actionTabs.key==="\u667A\u80FD\u5206\u7EC4"},[cn.actionTabs]);var Qe=function(){var ot=Object(B.a)(b.a.mark(function ke(){var ft;return b.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Vn){Re.next=3;break}return w.b.warn("\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\u4E0D\u80FD\u4E3A\u7A7A"),Re.abrupt("return");case 3:return Re.next=5,Object(G.a)("/api/is_checkout_data.json",{method:"get",params:{id:ir==null?void 0:ir.categoryId,group_num:Vn}});case 5:ft=Re.sent,(ft==null?void 0:ft.status)===0&&(_n({type:"classroomList/setActionTabs",payload:{}}),zn());case 7:case"end":return Re.stop()}},ke)}));return function(){return ot.apply(this,arguments)}}(),Ge=[{id:1,name:"\u603B\u5B66\u65F6"},{id:2,name:"\u6D3B\u8DC3\u65F6\u6BB5"},{id:3,name:"\u5386\u53F2\u6210\u7EE9"},{id:4,name:"\u4E0A\u8BFE\u6B21\u6570"},{id:5,name:"\u4E92\u52A8\u6B21\u6570"}];return n.a.createElement(y.a,{width:500,centered:!0,afterClose:function(){Te(!1),jn(null),Dn([1,2,3,4,5])},title:"\u667A\u80FD\u5206\u7EC4",visible:cn.actionTabs.key==="\u667A\u80FD\u5206\u7EC4",footer:null,onCancel:function(){_n({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("div",{className:Ne.a.model},n.a.createElement("div",null,"\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\uFF1A",n.a.createElement(R.a,{min:1,max:100,value:Vn,onChange:function(ke){jn(ke)}})),n.a.createElement("div",{className:"mt20 mb10"},"\u5206\u7EC4\u89C4\u5219\uFF1A"),n.a.createElement(Q.a.Group,{value:Pr,onChange:function(ke){Dn(ke)}},Ge==null?void 0:Ge.map(function(ot,ke){return n.a.createElement(Q.a,{value:ot.id}," ",ot.name," ")})),n.a.createElement("div",{className:"tr mb10 mt20"},n.a.createElement(P.a,{onClick:Qe,type:"primary"},"\u5F00\u59CB\u667A\u80FD\u5206\u7EC4"))))},dt=Object(o.a)(function(an){var Jt=an.classroomList;return{classroomList:Jt}})(Ct),tn=function(Jt){var cn=Jt.classroomList,_n=Jt.dispatch,zn=Object(en.a)(Jt,["classroomList","dispatch"]),lr=Object(p.i)(),ir=pe.a.useForm(),Tr=Object(d.a)(ir,1),$n=Tr[0],Vn=Object(f.useState)(1),jn=Object(d.a)(Vn,2),mn=jn[0],Ar=jn[1],Pr=Object(f.useState)([]),Dn=Object(d.a)(Pr,2),sr=Dn[0],Or=Dn[1],ee=Object(f.useState)(0),Te=Object(d.a)(ee,2),Qe=Te[0],Ge=Te[1],ot=Object(f.useState)(20),ke=Object(d.a)(ot,2),ft=ke[0],yt=ke[1],Re=Object(f.useState)(!0),mt=Object(d.a)(Re,2),Wt=mt[0],Dt=mt[1],lt=Object(f.useState)(),At=Object(d.a)(lt,2),Lt=At[0],$t=At[1],Ie=Object(f.useState)([]),Pt=Object(d.a)(Ie,2),Ht=Pt[0],fn=Pt[1];lr.id=lr.coursesId,Object(f.useEffect)(function(){cn.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?Wn():(fn([]),Or([]))},[cn.actionTabs.key]);var Wn=function(){var Kn=Object(B.a)(b.a.mark(function Hn(_t){var wt,Xt,Mt;return b.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return Dt(!0),Qt.next=3,Object(pn.A)(Object(_.a)(Object(_.a)({},lr),{},{page:_t||mn,limit:ft,homework_id:cn.actionTabs.type===1?"":cn.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:wt=Qt.sent,wt==null||wt.course_groups.map(function(ln){ln.key=ln.id}),wt&&(Or([].concat(Object(Ve.a)(sr),Object(Ve.a)(wt==null?void 0:wt.course_groups))),Ge(wt==null?void 0:wt.group_count),$t(wt==null?void 0:wt.course_groups),Dt(!1),_t||$n.setFieldsValue((Mt={},Object(qe.a)(Mt,"group_ids",wt==null||((Xt=wt.course_groups)===null||Xt===void 0)?void 0:Xt.map(function(ln){return String(ln.id)})),Object(qe.a)(Mt,"end_time",X()(X()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),Mt)));case 6:case"end":return Qt.stop()}},Hn)}));return function(_t){return Kn.apply(this,arguments)}}(),bn=function(){var Kn=Object(B.a)(b.a.mark(function Hn(){var _t,wt;return b.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return _t=Object(_.a)({},$n.getFieldsValue()),console.log("----",_t.group_ids),Mt.next=4,Object(G.a)("/api/courses/".concat(lr.id,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(Ve.a)(cn.actionTabs.selectArrs),group_ids:(Ht==null?void 0:Ht.length)>0?Ht:[],unified_setting:!(sr!=null&&sr.length),end_time:X()(_t.end_time).format("YYYY-MM-DD HH:mm")}});case 4:wt=Mt.sent,wt.status===0&&(xn(),Object(l.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u622A\u6B62"]),w.b.success("\u64CD\u4F5C\u6210\u529F"),_n({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),zn.type==="edit"&&(zn.onCallback&&zn.onCallback()),Object(x.c)()?(_n({type:"classroomList/setActionTabs",payload:{}}),_n({type:"classroomList/getClassroomTeacherCommonList",payload:Object(_.a)(Object(_.a)({},cn.actionTabs.params),{},{type:3})})):_n({type:"classroomList/getClassroomCommonList",payload:Object(_.a)({},cn.actionTabs.params)}));case 6:case"end":return Mt.stop()}},Hn)}));return function(){return Kn.apply(this,arguments)}}(),xn=function(){Ar(1),Or([])};return n.a.createElement(y.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:cn.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:bn,onCancel:function(){xn(),_n({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",n.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),sr&&n.a.createElement(pe.a,{form:$n},n.a.createElement(I.a,null,n.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(pe.a.Item,{name:"end_time"},n.a.createElement(Rt.a,{style:{width:170},getPopupContainer:function(Hn){return Hn.parentNode},disabledDate:function(Hn){return Hn&&Hn0&&n.a.createElement(I.a,null,n.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement(H.a.Search,{style:{width:"300px"},onChange:function(Hn){Or(Lt.filter(function(_t){return _t.name.indexOf(Hn.target.value)>-1}))}})),(sr==null?void 0:sr.length)>0&&cn.actionTabs.type===1&&n.a.createElement(T.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Hn,_t){fn(Hn)}},rowKey:"id",pagination:!1,dataSource:sr,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(sr==null?void 0:sr.length)>0&&cn.actionTabs.type===2&&n.a.createElement(T.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Hn,_t){fn(Hn)}},rowKey:"id",pagination:!1,dataSource:sr,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))},nn=Object(o.a)(function(an){var Jt=an.classroomList;return{classroomList:Jt}})(tn),it=k("Q9mQ"),vt=k("diRs"),Ot=k("OaEy"),sn=k("2fM7"),En=k("w5pM"),or=k("Lyp1"),fr=k("LvDl"),ar=k("8B0h"),Sn=k.n(ar),Hr=k("CiB2"),ea=function(Jt){var cn,_n;Object(Hr.a)(Jt);var zn=Object(f.useState)(!0),lr=Object(d.a)(zn,2),ir=lr[0],Tr=lr[1],$n=Object(f.useState)(!1),Vn=Object(d.a)($n,2),jn=Vn[0],mn=Vn[1],Ar=Object(f.useState)([]),Pr=Object(d.a)(Ar,2),Dn=Pr[0],sr=Pr[1],Or=Object(f.useState)([]),ee=Object(d.a)(Or,2),Te=ee[0],Qe=ee[1],Ge=Object(f.useState)([]),ot=Object(d.a)(Ge,2),ke=ot[0],ft=ot[1],yt=Object(f.useState)([]),Re=Object(d.a)(yt,2),mt=Re[0],Wt=Re[1],Dt=Object(p.i)();function lt(){return At.apply(this,arguments)}function At(){return At=Object(B.a)(b.a.mark(function Pt(){var Ht;return b.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,Object(G.a)("/api/homework_commons/".concat(Dt.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Ht=Wn.sent,Qe(Ht);case 4:case"end":return Wn.stop()}},Pt)})),At.apply(this,arguments)}function Lt(){return $t.apply(this,arguments)}function $t(){return $t=Object(B.a)(b.a.mark(function Pt(){var Ht;return b.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,Object(G.a)("/api/courses/".concat(Dt==null?void 0:Dt.coursesId,"/teachers"),{method:"get",params:{homework_id:Dt.categoryId}});case 2:Ht=Wn.sent,Ht==null||Ht.teacher_list.map(function(bn){bn.key=bn.user_id}),ft(Ht==null?void 0:Ht.teacher_list),Wt(Ht==null?void 0:Ht.teacher_list);case 6:case"end":return Wn.stop()}},Pt)})),$t.apply(this,arguments)}Object(f.useEffect)(function(){lt(),Lt()},[Dt]);var Ie=function(){};return n.a.createElement("section",{className:[Sn.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(Te==null?void 0:Te.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){mn(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),n.a.createElement(I.a,{style:{marginTop:"20px",marginBottom:"20px"}},(Te==null||((cn=Te.data)===null||cn===void 0)?void 0:cn.length)<=0&&n.a.createElement(Y.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),Te==null||((_n=Te.data)===null||_n===void 0)?void 0:_n.map(function(Pt){return n.a.createElement("span",{key:Pt.id,style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px",marginBottom:20}},n.a.createElement("span",{style:{flex:"1"}},Pt==null?void 0:Pt.real_name),(Te==null?void 0:Te.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(B.a)(b.a.mark(function Ht(){var fn;return b.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return bn.next=2,Object(G.a)("/api/homework_commons/".concat(Dt.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:Pt.id}});case 2:fn=bn.sent,fn.status===0&&(w.b.info("\u5220\u9664\u6210\u529F"),lt(),Lt());case 4:case"end":return bn.stop()}},Ht)}))},"X"))})),n.a.createElement(I.a,null,!ir&&n.a.createElement(ae.a,{className:"mb50"},n.a.createElement(P.a,{type:"primary",size:"large",onClick:function(){return Ie()}},"\u63D0\u4EA4"),n.a.createElement(P.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Tr(!0)}},"\u53D6\u6D88"))),n.a.createElement(y.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:jn,onCancel:function(){return mn(!1)},onOk:Object(B.a)(b.a.mark(function Pt(){var Ht;return b.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:if(!(Dn.length===0)){Wn.next=3;break}return w.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),Wn.abrupt("return");case 3:return Wn.next=5,Object(G.a)("/api/homework_commons/".concat(Dt.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:Dn}});case 5:Ht=Wn.sent,Ht.status===0&&(w.b.info("\u6DFB\u52A0\u6210\u529F"),sr([]),lt(),Lt(),mn(!1));case 7:case"end":return Wn.stop()}},Pt)}))},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(H.a.Search,{onChange:function(Ht){ft(mt.filter(function(fn){return fn.name.indexOf(Ht.target.value)>-1}))}})),n.a.createElement(T.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Ht,fn){sr(Ht)},selectedRowKeys:Dn,getCheckboxProps:function(Ht){return{disabled:Ht.is_collaborator}}},pagination:!1,dataSource:ke,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},Ir=Object(o.a)(function(an){var Jt=an.shixunHomeworks,cn=an.loading;return{shixunHomeworks:Jt,loading:cn.effects}})(ea),pr=Rt.a.RangePicker,Br=sn.a.Option,Jr=function(Jt){var cn,_n,zn,lr=Jt.shixunHomeworks,ir=Jt.loading,Tr=Jt.dispatch,$n=Object(p.i)(),Vn=Object(p.h)(),jn=lr.workSetting,mn=lr.workList,Ar=Object(f.useState)(!0),Pr=Object(d.a)(Ar,2),Dn=Pr[0],sr=Pr[1],Or=Object(f.useState)({}),ee=Object(d.a)(Or,2),Te=ee[0],Qe=ee[1],Ge=pe.a.useForm(),ot=Object(d.a)(Ge,1),ke=ot[0],ft=Object(f.useState)([]),yt=Object(d.a)(ft,2),Re=yt[0],mt=yt[1],Wt=Object(f.useState)([]),Dt=Object(d.a)(Wt,2),lt=Dt[0],At=Dt[1],Lt=Object(f.useState)({unified_setting:!1,publish_time:"",end_time:"",ta_mode:1,final_mode:!1,st_proportion:"20%",ta_proportion:"30%",te_proportion:"50%",student_comment:!1,anonymous_appeal:!1,appeal_penalty:0,appeal_time:"",anonymous_comment:!1,evaluation_num:0,evaluation_start:"",evaluation_end:"",absence_penalty:0,work_public:!1,allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,total_score:"",eff_score:""}),$t=Object(d.a)(Lt,2),Ie=$t[0],Pt=$t[1],Ht=(mn==null||((cn=mn.homework_status)===null||cn===void 0)?void 0:cn.includes("\u533F\u8BC4\u4E2D"))||(mn==null||((_n=mn.homework_status)===null||_n===void 0)?void 0:_n.includes("\u7533\u8BC9\u4E2D"))||(mn==null||((zn=mn.homework_status)===null||zn===void 0)?void 0:zn.includes("\u5DF2\u622A\u6B62"));Object(f.useEffect)(function(){fn()},[]),Object(f.useEffect)(function(){if(!(jn!=null&&jn.course_id))return;Object.keys(Ie).map(function(wt){wt.indexOf("proportion")>-1&&(jn[wt]=jn[wt]*100),Ie[wt]=jn[wt]}),(!Ie.allow_late||!Ie.unified_late)&&(Ie.late_penalty=5),Re=JSON.parse(JSON.stringify(jn.group_settings.map(function(wt){return Object(_.a)(Object(_.a)({},wt),{},{group_name:[wt.group_name]})}).filter(function(wt){return wt.publish_time!==null}))),lt=JSON.parse(JSON.stringify(jn.allow_late_settings.map(function(wt){return Object(_.a)(Object(_.a)({},wt),{},{group_name:[wt.group_name]})}).filter(function(wt){return wt.late_time!==null}))),Pt(Object(_.a)({},Ie)),mt(Object(Ve.a)(Re)),At(Object(Ve.a)(lt))},[jn]);var fn=function(){Tr({type:"shixunHomeworks/getWorkSetting",payload:Object(_.a)({},$n)})},Wn=function(){var Xt,Mt=JSON.parse(JSON.stringify(Ie));if(Mt.categoryId=$n.categoryId,Ie.unified_setting||(Re=(Xt=Re)===null||Xt===void 0?void 0:Xt.map(function(Qt){var ln,Rn;if(!Qt.publish_time||!Qt.end_time)throw w.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Qt.group_name)throw w.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Qt.group_name=typeof(Qt==null?void 0:Qt.group_name)=="string"?[Qt==null?void 0:Qt.group_name]:Qt==null?void 0:Qt.group_name,console.log("item:0",Qt,jn.group_settings,Re),Qt.group_id=Qt==null||((ln=Qt.group_name)===null||ln===void 0||((Rn=ln.map(function(Ln){var dn,Qn,An=(dn=jn.group_settings)===null||dn===void 0||((Qn=dn.filter(function(yr){return(yr==null?void 0:yr.group_name)===Ln}))===null||Qn===void 0)?void 0:Qn[0];return console.log("d:",An,Ln),An==null?void 0:An.group_id}))===null||Rn===void 0))?void 0:Rn.toString().split(","),Qt})),Mt.group_settings=Re,Ie.allow_late)if(Ie.unified_late){if(Ie.late_penalty===null||Ie.late_penalty===void 0||Ie.late_penalty<0||Ie.late_penalty>100)throw w.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ie.late_time)throw w.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Un;lt=(Un=lt)===null||Un===void 0?void 0:Un.map(function(Qt){var ln,Rn;if(Qt.late_penalty===null||Qt.late_penalty===void 0||Qt.late_penalty<0||Qt.late_penalty>100)throw w.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Qt.late_time)throw w.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Qt.group_name)throw w.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Qt.group_name=typeof(Qt==null?void 0:Qt.group_name)=="string"?[Qt==null?void 0:Qt.group_name]:Qt==null?void 0:Qt.group_name,Qt.group_id=Qt==null||((ln=Qt.group_name)===null||ln===void 0||((Rn=ln.map(function(Ln){var dn,Qn,An=(dn=jn.group_settings)===null||dn===void 0||((Qn=dn.filter(function(yr){return(yr==null?void 0:yr.group_name)===Ln}))===null||Qn===void 0)?void 0:Qn[0];return An==null?void 0:An.group_id}))===null||Rn===void 0))?void 0:Rn.toString().split(","),Qt}),Mt.allow_late_settings=lt}if(Ie.evaluation_start){if(Ie.end_time&&X()(Ie.evaluation_start)<=X()(Ie.end_time))throw w.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4");if(Ie.late_time&&X()(Ie.evaluation_start)<=X()(Ie.late_time))throw w.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4")}Object.keys(Mt).map(function(Qt){Qt.indexOf("proportion")>-1&&(Mt[Qt]=Mt[Qt]/100)}),Tr({type:"shixunHomeworks/updateSetting",payload:Mt}).then(function(Qt){Qt.status===0&&(w.b.success("\u66F4\u65B0\u6210\u529F"),sr(!0),fn())})},bn=function(Xt){return Xt&&Xt0?n.a.createElement(ae.a,{span:24,className:"mt10"},n.a.createElement(Q.a,{checked:Ie.unified_setting,disabled:Dn||!(mn!=null&&(Mt=mn.homework_status)!==null&&Mt!==void 0&&Mt.includes("\u672A\u53D1\u5E03")),onChange:function(){var Rn;if(!(mn!=null&&(Rn=mn.homework_status)!==null&&Rn!==void 0&&Rn.includes("\u672A\u53D1\u5E03"))){w.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Ie.unified_setting=!Ie.unified_setting,Ie.unified_setting||(Ie.unified_late=!1),Pt(Object.assign({},Ie)),Re==""){mt([{}]);return}Ie.unified_setting&&(mt([]),At([{late_penalty:5}]))}},n.a.createElement("strong",null,"\u7EDF\u4E00\u8BBE\u7F6E")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\u5219\u6240\u6709\u5206\u73ED\u4F7F\u7528\u76F8\u540C\u7684\u53D1\u5E03\u8BBE\u7F6E\uFF0C\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u53EF\u4FEE\u6539\uFF1B\u5426\u5219\u5404\u4E2A\u5206\u73ED\u5141\u8BB8\u5355\u72EC\u8BBE\u7F6E)")):null),Ie.unified_setting&&n.a.createElement("div",null,n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u53D1\u5E03\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Be.a,{title:!(mn!=null&&(Un=mn.homework_status)!==null&&Un!==void 0&&Un.includes("\u672A\u53D1\u5E03"))&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539"},n.a.createElement(Rt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1,disabled:Dn||X()()>X()(jn.publish_time),value:Ie.publish_time?X()(Ie.publish_time):"",disabledDate:bn,onChange:function(Rn,Ln){Ie.publish_time=Ln,!Ie.end_time&&Ie.unified_setting&&(Ie.end_time=X()(Rn).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),Pt(Object.assign({},Ie))}}))),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Dn,disabledDate:bn,value:Ie.end_time?X()(Ie.end_time):"",onChange:function(Rn,Ln){Ie.end_time=Ln,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))),!Ie.unified_setting&&n.a.createElement(I.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},n.a.createElement(ae.a,{span:24},n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:10}),n.a.createElement(ae.a,{span:1}),n.a.createElement(ae.a,{span:9},n.a.createElement(I.a,{className:"c-grey-c "},n.a.createElement(ae.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),n.a.createElement(ae.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),n.a.createElement(ae.a,{span:4}))),Re&&Re.map(function(ln,Rn){var Ln,dn;return n.a.createElement(ae.a,{span:24,key:Rn},n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:10},n.a.createElement(I.a,{gutter:[8,16]},n.a.createElement(ae.a,null,"\u53D1\u5E03\u89C4\u5219 ",Rn+1),n.a.createElement(ae.a,{flex:"auto",style:{maxWidth:350}},n.a.createElement(sn.a,{disabled:Dn||!(mn!=null&&(Ln=mn.homework_status)!==null&&Ln!==void 0&&Ln.includes("\u672A\u53D1\u5E03"))&&ln.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:ln.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(An){Re[Rn].group_name=An,Re[Rn].group_id=ln.group_id;var yr=Object(fr.flattenDeep)(Re.map(function(vr){return vr.group_name})),zr=lt.map(function(vr){var Fn=(vr==null?void 0:vr.group_name)||[];return Object(_.a)(Object(_.a)({},vr),{},{group_name:Object(fr.remove)(Fn,function(Xn){return yr.includes(Xn)})})});At(zr),mt(Re.slice())}},jn.group_settings&&jn.group_settings.map(function(Qn){if(!Re.map(function(An){return An.group_name}).toString().split(",").includes(String(Qn.group_name)))return n.a.createElement(Br,{value:Qn.group_name,key:Qn.id},Qn.group_name)}))))),n.a.createElement(ae.a,{span:1}),n.a.createElement(ae.a,{span:9},n.a.createElement(pr,{allowClear:!1,disabled:Dn||!(mn!=null&&(dn=mn.homework_status)!==null&&dn!==void 0&&dn.includes("\u672A\u53D1\u5E03"))&&ln.id&&[!0,!1],style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:bn,showTime:{format:"HH:mm",defaultValue:[X()(Object(l.d)(),"HH:mm"),X()(Object(l.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:ln.publish_time&&[X()(ln.publish_time),X()(ln.end_time)],onChange:function(An,yr){Re[Rn].publish_time=yr[0],Re[Rn].end_time=yr[1],mt(Object(Ve.a)(Re))}})),!Dn&&n.a.createElement(ae.a,{span:4},Rn>0&&!ln.id&&n.a.createElement(Et.a,{onClick:function(){Re=Re.filter(function(An,yr){return Rn!==yr}),mt(Re.slice()),setTimeout(function(){return mt(Re.slice())},10)}}),n.a.createElement(En.a,{className:"c-green ml20",onClick:function(){mt(Re.concat({}))}}))))})),n.a.createElement(I.a,null,n.a.createElement(ae.a,null,n.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E")),n.a.createElement(ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Q.a,{checked:Ie.allow_late,disabled:Dn,onChange:function(){Ie.allow_late=!Ie.allow_late,lt==""&&At([{late_penalty:5}]),Pt(Object.assign({},Ie))}},n.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u751F\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1)"))),(Ie==null?void 0:Ie.allow_late)&&n.a.createElement("div",{style:{marginLeft:22}},n.a.createElement("div",{className:"ml30 mt20"},n.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{disabled:Dn,value:Ie.unified_late,onChange:function(Rn){Ie.unified_late=Rn.target.value,lt==""&&!Rn.target.value&&At([{late_penalty:5}]),Pt(Object(_.a)({},Ie))}},(Ie==null?void 0:Ie.unified_setting)&&n.a.createElement(m.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(jn==null||((Qt=jn.group_settings)===null||Qt===void 0)?void 0:Qt.length)&&n.a.createElement(m.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),Ie!=null&&Ie.unified_late?n.a.createElement(n.a.Fragment,null,n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u8865\u4EA4\u6263\u5206:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(R.a,{disabled:Dn||!Ie.allow_late,value:Ie.late_penalty,onChange:function(Rn){Ie.late_penalty=Rn,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,{flex:"1",className:"ml5"},"\u5206",n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1\u65F6\uFF0C\u5B66\u751F\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Dn||!Ie.allow_late,value:Ie.late_time?X()(Ie.late_time):"",disabledDate:bn,onChange:function(Rn,Ln){Ie.late_time=Ln,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):lt.map(function(ln,Rn){var Ln;return n.a.createElement(ae.a,{span:24,key:Rn},n.a.createElement(I.a,{className:"mt25"},n.a.createElement(ae.a,{style:{marginLeft:30}},n.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",Rn+1,"\uFF1A"),n.a.createElement(sn.a,{disabled:Dn||!(mn!=null&&(Ln=mn.homework_status)!==null&&Ln!==void 0&&Ln.includes("\u672A\u53D1\u5E03"))&&ln.id,mode:"multiple",style:{width:306},value:typeof ln.group_name=="string"?[ln.group_name]:ln.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(Qn){lt[Rn].group_name=Qn,lt[Rn].group_id=ln.group_id,At(lt.slice())}},jn.group_settings&&jn.group_settings.map(function(dn){if(Ie!=null&&Ie.unified_setting&&!lt.map(function(Qn){return Qn.group_name}).toString().split(",").includes(String(dn.group_name)))return n.a.createElement(Br,{value:dn.group_name,key:dn.id},dn.group_name);if(Re.map(function(Qn){return Qn.group_name}).toString().split(",").includes(String(dn.group_name))&&!lt.map(function(Qn){return Qn.group_name}).toString().split(",").includes(String(dn.group_name)))return n.a.createElement(Br,{value:dn.group_name,key:dn.id},dn.group_name)}))),n.a.createElement(ae.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),n.a.createElement(R.a,{min:0,max:100,disabled:Dn,defaultValue:ln.late_penalty,onChange:function(Qn){lt[Rn].late_penalty=Qn}})),n.a.createElement(ae.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),n.a.createElement(Rt.a,{disabled:Dn,style:{width:200},showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:bn,format:"YYYY-MM-DD HH:mm",value:ln!=null&&ln.late_time?X()(ln.late_time):void 0,onChange:function(Qn,An){lt[Rn].late_time=An,At(Object(Ve.a)(lt))}})),!Dn&&n.a.createElement(ae.a,{className:"ml20"},Rn>0&&!ln.id&&n.a.createElement(Et.a,{onClick:function(){lt=lt.filter(function(Qn,An){return Rn!==An}),At(lt.slice()),setTimeout(function(){return At(lt.slice())},10)}}),n.a.createElement(En.a,{className:"c-green ml20",onClick:function(){At(lt.concat({late_penalty:5}))}}))))})))},Kn=function(){var Xt;return n.a.createElement("div",{className:"bg-white pl30 pr30 pb30"},n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24},n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u533F\u8BC4\u8BBE\u7F6E")),n.a.createElement(ae.a,null,(jn==null?void 0:jn.can_edit)&&Dn&&n.a.createElement(P.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return sr(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),n.a.createElement(ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Q.a,{checked:Ie.anonymous_comment,disabled:Dn||((Xt=mn.homework_status)===null||Xt===void 0?void 0:Xt.includes("\u533F\u8BC4\u4E2D")),onChange:function(){Ie.anonymous_comment=!Ie.anonymous_comment,Ie.allow_late&&!Ie.evaluation_start?Ie.late_time&&Ie.late_time!=""&&(Ie.evaluation_start=X()(Ie.late_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Ie.evaluation_end=X()(Ie.late_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss")):Ie.unified_setting&&!Ie.evaluation_start&&(Ie.end_time&&Ie.end_time!=""&&(Ie.evaluation_start=X()(Ie.end_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Ie.evaluation_end=X()(Ie.end_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss"))),Ie.anonymous_comment&&(Ie.evaluation_num=parseInt(Ie.evaluation_num)?Ie.evaluation_num:3,Ie.absence_penalty=parseInt(Ie.absence_penalty)?Ie.absence_penalty:3),Pt(Object.assign({},Ie))}},n.a.createElement("strong",null,"\u542F\u7528\u533F\u8BC4")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u63D0\u4EA4\u4F5C\u54C1\u7684\u6570\u91CF\u22652\u4E2A\uFF0C\u53EF\u4EE5\u5F00\u542F\u533F\u8BC4\uFF1B\u4E3A\u786E\u4FDD\u516C\u5E73\uFF0C\u533F\u8BC4\u89C4\u5219\u786E\u5B9A\u540E\u4E0D\u53EF\u518D\u4FEE\u6539\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C!)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u5F00\u59CB\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Dn||!Ie.anonymous_comment||Ht,value:Ie.evaluation_start?X()(Ie.evaluation_start):"",onChange:function(Un,Qt){Ie.evaluation_start=Qt,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u533F\u8BC4\u5F00\u59CB\u65F6\u95F4\u4E4B\u524D\u63D0\u4EA4\u4F5C\u54C1\u7684\u5B66\u751F\uFF0C\u53C2\u4E0E\u533F\u8BC4)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u7ED3\u675F\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Dn||!Ie.anonymous_comment||Ht,value:Ie.evaluation_end?X()(Ie.evaluation_end):"",onChange:function(Un,Qt){Ie.evaluation_end=Qt,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u533F\u8BC4TA\u4EBA\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u533F\u8BC4\u6570\u91CF:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(R.a,{disabled:Dn||!Ie.anonymous_comment||Ht,value:Ie.evaluation_num,onChange:function(Un){Ie.evaluation_num=Un,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,{flex:"1",className:"ml5"},n.a.createElement("span",{className:"c-grey-c ml10"},"(\u672C\u5904\u586B\u5199\u6BCF\u4E2A\u5B66\u751F\u5C06\u88AB\u5206\u914D\u7684\u533F\u8BC4\u4F5C\u54C1\u6570\u91CF\u3002\u5982\u5168\u73ED\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u5C0F\u4E8E\u672C\u6570\u503C\uFF0C\u5219\u4EE5\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u4E3A\u51C6\u3002)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u7F3A\u8BC4\u6263\u5206:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(R.a,{min:0,disabled:Dn||!Ie.anonymous_comment||Ht,value:Ie.absence_penalty,onChange:function(Un){Ie.absence_penalty=Un,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,{flex:"1",className:"ml5"},"\u5206",n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u7F3A\u8BC4\u65F6\uFF0C\u5176\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),Ie.anonymous_comment&&n.a.createElement(n.a.Fragment,null,n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Q.a,{checked:Ie.student_comment,disabled:Dn||X()(Ie.evaluation_start)"},n.a.createElement(K.a.Item,null,n.a.createElement(r.a,{to:"/classrooms/".concat(Re.course_id,"/group_homework")},Re.course_name)),n.a.createElement(K.a.Item,null,n.a.createElement(r.a,{to:"/classrooms/".concat(Re==null?void 0:Re.course_id,"/group_homework/").concat(Re!=null&&(cn=Re.category)!==null&&cn!==void 0&&cn.main?"":Re==null||((_n=Re.category)===null||_n===void 0)?void 0:_n.category_id)},Re.category.category_name)),n.a.createElement(K.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[Nn.a.title,"mt20"].join(" ")},n.a.createElement(r.a,{to:"/classrooms/".concat(Re.course_id,"/group_homework")},n.a.createElement(s.a,{className:"font16 c-black"})),n.a.createElement("strong",{className:"font20 ml5"},Re.homework_name),n.a.createElement(l.k,{status:Re.homework_status}))),n.a.createElement("aside",{className:"mt30 relative ".concat(Nn.a.workListTabWrap)},n.a.createElement(z.a,{type:"card",activeKey:Dn,tabBarExtraContent:Dt(),onTabClick:function(At,Lt){if(parseInt(At)===2){if(!(Re!=null&&Re.view_answer)){w.b.info("\u672C\u6B21\u4F5C\u4E1A\u8001\u5E08\u672A\u516C\u5F00\u7B54\u6848");return}(Re==null?void 0:Re.time_status)>2||Object(x.d)()?sr(At):w.b.info("\u622A\u6B62\u4E4B\u540E\u7684\u8BD5\u5377\u624D\u80FD\u67E5\u770B\u7B54\u6848")}else sr(At)},className:Nn.a.tabs},Wt.map(function(lt,At){return n.a.createElement(z.a.TabPane,{tab:lt.name,key:lt.id},lt.compontent)})))),n.a.createElement($.a,null),n.a.createElement(M.a,null),n.a.createElement(ct,{type:"edit",onCallback:function(){return mt()}}),n.a.createElement(nn,{type:"edit",onCallback:function(){return mt()}}),n.a.createElement(dt,{cb:function(){ft(ke+1),sr("5")}}),n.a.createElement(nn,{type:"edit",onCallback:function(){return mt()}}),n.a.createElement(q.a,{ref:yt,hide:!0,name:"".concat(Re==null?void 0:Re.homework_name,"-\u4F5C\u54C1\u9644\u4EF6"),onOk:function(){return Qe(!1)}}))},tr=Ee.default=Object(o.a)(function(an){var Jt=an.user,cn=an.shixunHomeworks,_n=an.loading,zn=an.globalSetting;return{user:Jt,shixunHomeworks:cn,globalSetting:zn,loading:_n.effects}})(Yt)},h78n:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return A});var ne=k("q1tI"),z=k.n(ne),N=k("TSYQ"),K=k.n(N),O={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},w=function(H){var V=H.map(function(){return Object(ne.useRef)()}),I=Object(ne.useRef)();return Object(ne.useEffect)(function(){var W=Date.now(),Q=!1;Object.keys(V).forEach(function(ie){var ae=V[ie].current;if(!ae)return;Q=!0;var xe=ae.style;xe.transitionDuration=".3s, .3s, .3s, .06s",I.current&&W-I.current<100&&(xe.transitionDuration="0s, 0s")}),Q&&(I.current=Date.now())}),[V]};function B(){return B=Object.assign||function(U){for(var H=1;H0&&arguments[0]!==void 0?arguments[0]:[],u=c;if(Array.isArray(c)){for(var D=0;D0||lr.target.offsetWidth>0)&&pt.current.instance.layout()}}catch(fr){on.e(fr)}finally{on.f()}}),vt.observe(He.current)),vt}function at(){O.b.warn({content:decodeURIComponent(p),key:"monaco-editor-tip"})}var et=function(){var Ot=pt.current.instance;if(j!=null&&Ot&&he){var on=Ot.getModel();on&&j!==on.getValue()&&(E=!0,on.setValue(j),Ot.layout(),E=!1)}};Object(d.useEffect)(function(){try{var vt,Ot=pt.current.instance;st.current&&clearTimeout(st.current),st.current=setTimeout(function(){et()},500),Ot==null||((vt=Ot.updateOptions)===null||vt===void 0)||vt.call(Ot,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(j.split(/\r\n|\r|\n/g).length))+3,5)})}catch(on){debugger}},[j,he,pt.current]),Object(d.useEffect)(function(){try{if(Tt&&pt.current&&pt.current.instance){var vt=pt.current.instance;vt.changeViewZones(function(on){var xn=document.createElement("div");xn.style.padding="10px 20px",xn.style.width="calc(100% - 20px)",xn.className="my-error-line-wrp",xn.innerHTML=It,on.addZone({afterLineNumber:Tt||11,heightInLines:3,domNode:xn})});var Ot={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};vt.addOverlayWidget(Ot),vt.revealPositionInCenter({lineNumber:20,column:1})}}catch(on){debugger}},[Tt,pt.current,he]),Object(d.useEffect)(function(){var vt;if((vt=pt.current)!==null&&vt!==void 0&&vt.instance&&he&&fn){var Ot=pt.current.instance,on=Ot.getModel();if(!on)return;var xn=function(){var On=[],vr=[],Dr=on.getAllDecorations(),Sr=Object(w.a)(Dr),xr;try{for(Sr.s();!(xr=Sr.n()).done;){var J=xr.value;if(J.options.className==="highlighted-line"){var S;On.push(J==null||((S=J.range)===null||S===void 0)?void 0:S.startLineNumber),vr.push(J==null?void 0:J.id)}}}catch($){Sr.e($)}finally{Sr.f()}on.deltaDecorations(vr,[]);var M=on.getLineCount();!!Nt&&Nt<=M&&(Ot.deltaDecorations([],[{range:new R.Range(Nt,1,Nt,on.getLineMaxColumn(Nt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ot.revealLineInCenter(Nt))};xn();var lr=function(){var On=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,vr=[],Dr=[],Sr=on.getAllDecorations(),xr=Object(w.a)(Sr),J;try{for(xr.s();!(J=xr.n()).done;){var S=J.value;if(S.options.linesDecorationsClassName==="breakpoints"){var M;vr.push(S==null||((M=S.range)===null||M===void 0)?void 0:M.startLineNumber),Dr.push(S==null?void 0:S.id)}}}catch($){xr.e($)}finally{xr.f()}if(On)return{lines:vr,ids:Dr};Y(vr)},fr=function(){var jt=Object(N.a)(_.a.mark(function On(vr){var Dr;return _.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return Dr={range:new R.Range(vr,1,vr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},xr.next=3,on.deltaDecorations([],[Dr]);case 3:lr();case 4:case"end":return xr.stop()}},On)}));return function(vr){return jt.apply(this,arguments)}}(),ir=function(){var jt=Object(N.a)(_.a.mark(function On(vr){var Dr,Sr,xr,J,S;return _.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:Dr=[],Sr=Ot.getLineDecorations(vr),xr=Object(w.a)(Sr);try{for(xr.s();!(J=xr.n()).done;)S=J.value,S.options.linesDecorationsClassName==="breakpoints"&&Dr.push(S.id)}catch(te){xr.e(te)}finally{xr.f()}return $.next=6,on.deltaDecorations(Dr,[]);case 6:lr();case 7:case"end":return $.stop()}},On)}));return function(vr){return jt.apply(this,arguments)}}(),Tn=function(On){var vr=Ot.getLineDecorations(On),Dr=Object(w.a)(vr),Sr;try{for(Dr.s();!(Sr=Dr.n()).done;){var xr=Sr.value;if(xr.options.linesDecorationsClassName==="breakpoints")return!0}}catch(J){Dr.e(J)}finally{Dr.f()}return!1};if(!Object(r.isEqual)(be,lr(!0).lines)){on.deltaDecorations(lr(!0).ids,[]);var Wr=be.map(function(jt){return{range:new R.Range(jt,1,jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});on.deltaDecorations([],Wr)}var ta=Ot.onDidChangeModelContent(function(jt){var On=Ot.getPosition();if(On){var vr=On.lineNumber;on.getLineContent(vr).trim()===""?ir(vr):Tn(vr)&&(ir(vr),fr(vr))}}),jr=Ot.onMouseDown(function(jt){var On,vr,Dr;if(jt.target.detail&&(On=jt.target)!==null&&On!==void 0&&(vr=On.element)!==null&&vr!==void 0&&(Dr=vr.className)!==null&&Dr!==void 0&&Dr.includes("line-numbers")){var Sr=jt.target.position.lineNumber;if(on.getLineContent(Sr).trim()==="")return;Tn(Sr)?ir(Sr):fr(Sr)}}),mr=function(On){var vr={range:new R.Range(On,1,On,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Et.current=Ot.deltaDecorations(Et.current,[vr])},Br=function(){Et.current=Ot.deltaDecorations(Et.current,[])},Zr=Ot.onMouseMove(function(jt){var On,vr,Dr;if(Br(),jt.target.detail&&(On=jt.target)!==null&&On!==void 0&&(vr=On.element)!==null&&vr!==void 0&&(Dr=vr.className)!==null&&Dr!==void 0&&Dr.includes("line-numbers")){var Sr=jt.target.position.lineNumber;if(on.getLineContent(Sr).trim()==="")return;mr(Sr)}}),ua=Ot.onMouseLeave(function(){Br()});return function(){ta.dispose(),jr.dispose(),Zr.dispose(),ua.dispose()}}},[pt.current,he,be,Nt,fn]);function Rt(){var vt=pt.current.instance;if(vt){var Ot=vt.getSelection(),on=pt.current.pastePos||{},xn=new R.Range(on.startLineNumber||Ot.endLineNumber,on.startColumn||Ot.endColumn,on.endLineNumber||Ot.endLineNumber,on.endColumn||Ot.endColumn);setTimeout(function(){vt.executeEdits("",[{range:xn,text:""}])},300)}}function qt(vt){(window.navigator.platform.match("Mac")?vt.metaKey:vt.ctrlKey)&&vt.keyCode==83&&(vt.preventDefault(),Be())}var pn=function(){if(Ve&&pt.current.instance){var Ot=pt.current.instance.getContentHeight();tn(Ot0||ve.target.offsetWidth>0)&&Ve.layout()}}catch($e){se.e($e)}finally{se.f()}}),De.observe(W.current)),De}Object(d.useEffect)(function(){return W.current&&k.e(27).then(k.t.bind(null,"M/lh",7)).then(function(Ve){R=Ve;var De=R.editor.createDiffEditor(W.current,Object(ne.a)(Object(ne.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},I),{},{wordWrap:!0}));xe(De);var pe=Ze(De);return function(){De.dispose();var se=De.getModel();se&&se.dispose(),pe.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(d.useEffect)(function(){ae&&ae.setModel({original:R.editor.createModel(j,H),modified:R.editor.createModel(U,H)})},[j,U,H,ae]);var Me=l(D),Be=l(A),qe={width:Me,height:Be};return v.a.createElement("div",{className:"my-diff-editor",ref:W,style:qe})}},ZpRC:function(Gt,Ee,k){"use strict";function ne(d){return typeof d=="object"&&d!=null&&d.nodeType===1}function z(d,v){return(!v||d!=="hidden")&&d!=="visible"&&d!=="clip"}function N(d,v){if(d.clientHeightv||p>d&&o=v&&r>=b?p-d-f:o>v&&rb?o-v+n:0}var O=function(d,v){var b=window,f=v.scrollMode,n=v.block,p=v.inline,o=v.boundary,r=v.skipOverflowHiddenElements,s=typeof o=="function"?o:function(Y){return Y!==o};if(!ne(d))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,x=[],E=d;ne(E)&&s(E);){if((E=E.parentElement)===l){x.push(E);break}E!=null&&E===document.body&&N(E)&&!N(document.documentElement)||E!=null&&N(E,r)&&x.push(E)}for(var y=b.visualViewport?b.visualViewport.width:innerWidth,L=b.visualViewport?b.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=d.getBoundingClientRect(),c=m.height,u=m.width,D=m.top,T=m.right,A=m.bottom,j=m.left,U=n==="start"||n==="nearest"?D:n==="end"?A:D+c/2,H=p==="center"?j+u/2:p==="end"?T:j,V=[],I=0;I=0&&j>=0&&A<=L&&T<=y&&D>=xe&&A<=Me&&j>=Be&&T<=Ze)return V;var qe=getComputedStyle(W),Ve=parseInt(qe.borderLeftWidth,10),De=parseInt(qe.borderTopWidth,10),pe=parseInt(qe.borderRightWidth,10),se=parseInt(qe.borderBottomWidth,10),we=0,ve=0,$e="offsetWidth"in W?W.offsetWidth-W.clientWidth-Ve-pe:0,me="offsetHeight"in W?W.offsetHeight-W.clientHeight-De-se:0;if(l===W)we=n==="start"?U:n==="end"?U-L:n==="nearest"?K(g,g+L,L,De,se,g+U,g+U+c,c):U-L/2,ve=p==="start"?H:p==="center"?H-y/2:p==="end"?H-y:K(R,R+y,y,Ve,pe,R+H,R+H+u,u),we=Math.max(0,we+g),ve=Math.max(0,ve+R);else{we=n==="start"?U-xe-De:n==="end"?U-Me+se+me:n==="nearest"?K(xe,Me,ie,De,se+me,U,U+c,c):U-(xe+ie/2)+me/2,ve=p==="start"?H-Be-Ve:p==="center"?H-(Be+ae/2)+$e/2:p==="end"?H-Ze+pe+$e:K(Be,Ze,ae,Ve,pe+$e,H,H+u,u);var X=W.scrollLeft,G=W.scrollTop;U+=G-(we=Math.max(0,Math.min(G+we,W.scrollHeight-ie+me))),H+=X-(ve=Math.max(0,Math.min(X+ve,W.scrollWidth-ae+$e)))}V.push({el:W,top:we,left:ve})}return V};function w(d){return d===Object(d)&&Object.keys(d).length!==0}function B(d,v){v===void 0&&(v="auto");var b="scrollBehavior"in document.body.style;d.forEach(function(f){var n=f.el,p=f.top,o=f.left;n.scroll&&b?n.scroll({top:p,left:o,behavior:v}):(n.scrollTop=p,n.scrollLeft=o)})}function C(d){return d===!1?{block:"end",inline:"nearest"}:w(d)?d:{block:"start",inline:"nearest"}}function P(d,v){var b=!d.ownerDocument.documentElement.contains(d);if(w(v)&&typeof v.behavior=="function")return v.behavior(b?[]:O(d,v));if(b)return;var f=C(v);return B(O(d,f),f.behavior)}var _=Ee.a=P},Zss7:function(Gt,Ee,k){var ne;(function(z){var N=/^\s+/,K=/\s+$/,O=0,w=z.round,B=z.min,C=z.max,P=z.random;function _(se,we){if(se=se||"",we=we||{},se instanceof _)return se;if(!(this instanceof _))return new _(se,we);var ve=d(se);this._originalInput=se,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=w(100*this._a)/100,this._format=we.format||ve.format,this._gradientType=we.gradientType,this._r<1&&(this._r=w(this._r)),this._g<1&&(this._g=w(this._g)),this._b<1&&(this._b=w(this._b)),this._ok=ve.ok,this._tc_id=O++}_.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 se=this.toRgb();return(se.r*299+se.g*587+se.b*114)/1e3},getLuminance:function(){var se=this.toRgb(),we,ve,$e,me,X,G;return we=se.r/255,ve=se.g/255,$e=se.b/255,we<=.03928?me=we/12.92:me=z.pow((we+.055)/1.055,2.4),ve<=.03928?X=ve/12.92:X=z.pow((ve+.055)/1.055,2.4),$e<=.03928?G=$e/12.92:G=z.pow(($e+.055)/1.055,2.4),.2126*me+.7152*X+.0722*G},setAlpha:function(se){return this._a=V(se),this._roundA=w(100*this._a)/100,this},toHsv:function(){var se=n(this._r,this._g,this._b);return{h:se.h*360,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=n(this._r,this._g,this._b),we=w(se.h*360),ve=w(se.s*100),$e=w(se.v*100);return this._a==1?"hsv("+we+", "+ve+"%, "+$e+"%)":"hsva("+we+", "+ve+"%, "+$e+"%, "+this._roundA+")"},toHsl:function(){var se=b(this._r,this._g,this._b);return{h:se.h*360,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=b(this._r,this._g,this._b),we=w(se.h*360),ve=w(se.s*100),$e=w(se.l*100);return this._a==1?"hsl("+we+", "+ve+"%, "+$e+"%)":"hsla("+we+", "+ve+"%, "+$e+"%, "+this._roundA+")"},toHex:function(se){return o(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(se){return r(this._r,this._g,this._b,this._a,se)},toHex8String:function(se){return"#"+this.toHex8(se)},toRgb:function(){return{r:w(this._r),g:w(this._g),b:w(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+w(this._r)+", "+w(this._g)+", "+w(this._b)+")":"rgba("+w(this._r)+", "+w(this._g)+", "+w(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:w(I(this._r,255)*100)+"%",g:w(I(this._g,255)*100)+"%",b:w(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+w(I(this._r,255)*100)+"%, "+w(I(this._g,255)*100)+"%, "+w(I(this._b,255)*100)+"%)":"rgba("+w(I(this._r,255)*100)+"%, "+w(I(this._g,255)*100)+"%, "+w(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[o(this._r,this._g,this._b,!0)]||!1},toFilter:function(se){var we="#"+s(this._r,this._g,this._b,this._a),ve=we,$e=this._gradientType?"GradientType = 1, ":"";if(se){var me=_(se);ve="#"+s(me._r,me._g,me._b,me._a)}return"progid:DXImageTransform.Microsoft.gradient("+$e+"startColorstr="+we+",endColorstr="+ve+")"},toString:function(se){var we=!!se;se=se||this._format;var ve=!1,$e=this._a<1&&this._a>=0,me=!we&&$e&&(se==="hex"||se==="hex6"||se==="hex3"||se==="hex4"||se==="hex8"||se==="name");return me?se==="name"&&this._a===0?this.toName():this.toRgbString():(se==="rgb"&&(ve=this.toRgbString()),se==="prgb"&&(ve=this.toPercentageRgbString()),(se==="hex"||se==="hex6")&&(ve=this.toHexString()),se==="hex3"&&(ve=this.toHexString(!0)),se==="hex4"&&(ve=this.toHex8String(!0)),se==="hex8"&&(ve=this.toHex8String()),se==="name"&&(ve=this.toName()),se==="hsl"&&(ve=this.toHslString()),se==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString())},clone:function(){return _(this.toString())},_applyModification:function(se,we){var ve=se.apply(null,[this].concat([].slice.call(we)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(L,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(se,we){return se.apply(null,[this].concat([].slice.call(we)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(c,arguments)},tetrad:function(){return this._applyCombination(u,arguments)}},_.fromRatio=function(se,we){if(typeof se=="object"){var ve={};for(var $e in se)se.hasOwnProperty($e)&&($e==="a"?ve[$e]=se[$e]:ve[$e]=Ze(se[$e]));se=ve}return _(se,we)};function d(se){var we={r:0,g:0,b:0},ve=1,$e=null,me=null,X=null,G=!1,Y=!1;return typeof se=="string"&&(se=De(se)),typeof se=="object"&&(Ve(se.r)&&Ve(se.g)&&Ve(se.b)?(we=v(se.r,se.g,se.b),G=!0,Y=String(se.r).substr(-1)==="%"?"prgb":"rgb"):Ve(se.h)&&Ve(se.s)&&Ve(se.v)?($e=Ze(se.s),me=Ze(se.v),we=p(se.h,$e,me),G=!0,Y="hsv"):Ve(se.h)&&Ve(se.s)&&Ve(se.l)&&($e=Ze(se.s),X=Ze(se.l),we=f(se.h,$e,X),G=!0,Y="hsl"),se.hasOwnProperty("a")&&(ve=se.a)),ve=V(ve),{ok:G,format:se.format||Y,r:B(255,C(we.r,0)),g:B(255,C(we.g,0)),b:B(255,C(we.b,0)),a:ve}}function v(se,we,ve){return{r:I(se,255)*255,g:I(we,255)*255,b:I(ve,255)*255}}function b(se,we,ve){se=I(se,255),we=I(we,255),ve=I(ve,255);var $e=C(se,we,ve),me=B(se,we,ve),X,G,Y=($e+me)/2;if($e==me)X=G=0;else{var ue=$e-me;G=Y>.5?ue/(2-$e-me):ue/($e+me);switch($e){case se:X=(we-ve)/ue+(we1&&(ze-=1),ze<1/6?be+(We-be)*6*ze:ze<1/2?We:ze<2/3?be+(We-be)*(2/3-ze)*6:be}if(we===0)$e=me=X=ve;else{var Y=ve<.5?ve*(1+we):ve+we-ve*we,ue=2*ve-Y;$e=G(ue,Y,se+1/3),me=G(ue,Y,se),X=G(ue,Y,se-1/3)}return{r:$e*255,g:me*255,b:X*255}}function n(se,we,ve){se=I(se,255),we=I(we,255),ve=I(ve,255);var $e=C(se,we,ve),me=B(se,we,ve),X,G,Y=$e,ue=$e-me;if(G=$e===0?0:ue/$e,$e==me)X=0;else{switch($e){case se:X=(we-ve)/ue+(we>1)+720)%360;--we;)$e.h=($e.h+me)%360,X.push(_($e));return X}function A(se,we){we=we||6;for(var ve=_(se).toHsv(),$e=ve.h,me=ve.s,X=ve.v,G=[],Y=1/we;we--;)G.push(_({h:$e,s:me,v:X})),X=(X+Y)%1;return G}_.mix=function(se,we,ve){ve=ve===0?0:ve||50;var $e=_(se).toRgb(),me=_(we).toRgb(),X=ve/100,G={r:(me.r-$e.r)*X+$e.r,g:(me.g-$e.g)*X+$e.g,b:(me.b-$e.b)*X+$e.b,a:(me.a-$e.a)*X+$e.a};return _(G)},_.readability=function(se,we){var ve=_(se),$e=_(we);return(z.max(ve.getLuminance(),$e.getLuminance())+.05)/(z.min(ve.getLuminance(),$e.getLuminance())+.05)},_.isReadable=function(se,we,ve){var $e=_.readability(se,we),me,X;X=!1,me=pe(ve);switch(me.level+me.size){case"AAsmall":case"AAAlarge":X=$e>=4.5;break;case"AAlarge":X=$e>=3;break;case"AAAsmall":X=$e>=7;break}return X},_.mostReadable=function(se,we,ve){var $e=null,me=0,X,G,Y,ue;ve=ve||{},G=ve.includeFallbackColors,Y=ve.level,ue=ve.size;for(var be=0;beme&&(me=X,$e=_(we[be]));return _.isReadable(se,$e,{level:Y,size:ue})||!G?$e:(ve.includeFallbackColors=!1,_.mostReadable(se,["#fff","#000"],ve))};var j=_.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"},U=_.hexNames=H(j);function H(se){var we={};for(var ve in se)se.hasOwnProperty(ve)&&(we[se[ve]]=ve);return we}function V(se){return se=parseFloat(se),(isNaN(se)||se<0||se>1)&&(se=1),se}function I(se,we){ie(se)&&(se="100%");var ve=ae(se);return se=B(we,C(0,parseFloat(se))),ve&&(se=parseInt(se*we,10)/100),z.abs(se-we)<1e-6?1:se%we/parseFloat(we)}function W(se){return B(1,C(0,se))}function Q(se){return parseInt(se,16)}function ie(se){return typeof se=="string"&&se.indexOf(".")!=-1&&parseFloat(se)===1}function ae(se){return typeof se=="string"&&se.indexOf("%")!=-1}function xe(se){return se.length==1?"0"+se:""+se}function Ze(se){return se<=1&&(se=se*100+"%"),se}function Me(se){return z.round(parseFloat(se)*255).toString(16)}function Be(se){return Q(se)/255}var qe=function(){var se="[-\\+]?\\d+%?",we="[-\\+]?\\d*\\.\\d+%?",ve="(?:"+we+")|(?:"+se+")",$e="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?",me="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?";return{CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+$e),rgba:new RegExp("rgba"+me),hsl:new RegExp("hsl"+$e),hsla:new RegExp("hsla"+me),hsv:new RegExp("hsv"+$e),hsva:new RegExp("hsva"+me),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 Ve(se){return!!qe.CSS_UNIT.exec(se)}function De(se){se=se.replace(N,"").replace(K,"").toLowerCase();var we=!1;if(j[se])se=j[se],we=!0;else if(se=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ve;return(ve=qe.rgb.exec(se))?{r:ve[1],g:ve[2],b:ve[3]}:(ve=qe.rgba.exec(se))?{r:ve[1],g:ve[2],b:ve[3],a:ve[4]}:(ve=qe.hsl.exec(se))?{h:ve[1],s:ve[2],l:ve[3]}:(ve=qe.hsla.exec(se))?{h:ve[1],s:ve[2],l:ve[3],a:ve[4]}:(ve=qe.hsv.exec(se))?{h:ve[1],s:ve[2],v:ve[3]}:(ve=qe.hsva.exec(se))?{h:ve[1],s:ve[2],v:ve[3],a:ve[4]}:(ve=qe.hex8.exec(se))?{r:Q(ve[1]),g:Q(ve[2]),b:Q(ve[3]),a:Be(ve[4]),format:we?"name":"hex8"}:(ve=qe.hex6.exec(se))?{r:Q(ve[1]),g:Q(ve[2]),b:Q(ve[3]),format:we?"name":"hex"}:(ve=qe.hex4.exec(se))?{r:Q(ve[1]+""+ve[1]),g:Q(ve[2]+""+ve[2]),b:Q(ve[3]+""+ve[3]),a:Be(ve[4]+""+ve[4]),format:we?"name":"hex8"}:(ve=qe.hex3.exec(se))?{r:Q(ve[1]+""+ve[1]),g:Q(ve[2]+""+ve[2]),b:Q(ve[3]+""+ve[3]),format:we?"name":"hex"}:!1}function pe(se){var we,ve;return se=se||{level:"AA",size:"small"},we=(se.level||"AA").toUpperCase(),ve=(se.size||"small").toLowerCase(),we!=="AA"&&we!=="AAA"&&(we="AA"),ve!=="small"&&ve!=="large"&&(ve="small"),{level:we,size:ve}}Gt.exports?Gt.exports=_:!(ne=function(){return _}.call(Ee,k,Ee,Gt),ne!==void 0&&(Gt.exports=ne))})(Math)},bT9E:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return z});var ne=k("VTBJ");function z(N,K){var O=Object(ne.a)({},N);return Array.isArray(K)&&K.forEach(function(w){delete O[w]}),O}},biw7:function(Gt,Ee,k){"use strict";var ne=k("q1tI"),z=k.n(ne),N=ne.createContext(null);Ee.a=N},c5Ni:function(Gt,Ee,k){},dejd:function(Gt,Ee,k){},dmUQ:function(Gt,Ee,k){"use strict";var ne=k("Ff2n"),z=k("rePB"),N=k("1OyB"),K=k("vuIU"),O=k("Ji7U"),w=k("md7G"),B=k("foSv"),C=k("q1tI"),P=k.n(C),_=k("TSYQ"),d=k.n(_),v=k("4IlW");function b(c,u){var D=Object.keys(c);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(c);u&&(T=T.filter(function(A){return Object.getOwnPropertyDescriptor(c,A).enumerable})),D.push.apply(D,T)}return D}function f(c){for(var u=1;u1?ae-1:0),Ze=1;Ze1?I-1:0),Q=1;Q=0)return parseInt(V.slice(V.indexOf("e-")+2),10);var I=0;return V.indexOf(".")>=0&&(I=V.length-V.indexOf(".")-1),I},A.getInputDisplayValue=function(H){var V=H||A.state,I=V.focused,W=V.inputValue,Q=V.value,ie;I?ie=W:ie=A.toPrecisionAsStep(Q),ie==null&&(ie="");var ae=A.formatWrapper(ie);return y(A.props.decimalSeparator)&&(ae=ae.toString().replace(".",A.props.decimalSeparator)),ae},A.recordCursorPosition=function(){try{A.cursorStart=A.input.selectionStart,A.cursorEnd=A.input.selectionEnd,A.currentValue=A.input.value,A.cursorBefore=A.input.value.substring(0,A.cursorStart),A.cursorAfter=A.input.value.substring(A.cursorEnd)}catch(H){}},A.restoreByAfter=function(H){if(H===void 0)return!1;var V=A.input.value,I=V.lastIndexOf(H);if(I===-1)return!1;var W=A.cursorBefore.length;return A.lastKeyCode===v.a.DELETE&&A.cursorBefore.charAt(W-1)===H[0]?(A.fixCaret(W,W),!0):I+H.length===V.length?(A.fixCaret(I,I),!0):!1},A.partRestoreByAfter=function(H){return H===void 0?!1:Array.prototype.some.call(H,function(V,I){var W=H.substring(I);return A.restoreByAfter(W)})},A.isNotCompleteNumber=function(H){return isNaN(H)||H===""||H===null||H&&H.toString().indexOf(".")===H.toString().length-1},A.stop=function(){A.autoStepTimer&&clearTimeout(A.autoStepTimer)},A.down=function(H,V,I){A.pressingUpOrDown=!0,A.step("down",H,V,I)},A.up=function(H,V,I){A.pressingUpOrDown=!0,A.step("up",H,V,I)},A.saveInput=function(H){A.input=H};var j=T.value;j===void 0&&(j=T.defaultValue),A.state={focused:T.autoFocus};var U=A.getValidValue(A.toNumber(j));return A.state=f(f({},A.state),{},{inputValue:A.toPrecisionAsStep(U),value:U}),A}return Object(K.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(A){var j=this.props,U=j.value,H=j.onChange,V=j.max,I=j.min,W=this.state.focused;if(A){if(!L(A.value,U)||!L(A.max,V)||!L(A.min,I)){var Q=W?U:this.getValidValue(U),ie;this.pressingUpOrDown?ie=Q:this.inputting?ie=this.rawInput:ie=this.toPrecisionAsStep(Q),this.setState({value:Q,inputValue:ie})}var ae="value"in this.props?U:this.state.value;"max"in this.props&&A.max!==V&&typeof ae=="number"&&ae>V&&H&&H(V),"min"in this.props&&A.min!==I&&typeof ae=="number"&&ae1&&arguments[1]!==void 0?arguments[1]:this.props.min,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,H=parseFloat(A);return isNaN(H)?A:(HU&&(H=U),H)}},{key:"setValue",value:function(A,j){var U=this.props.precision,H=this.isNotCompleteNumber(parseFloat(A))?null:parseFloat(A),V=this.state.value,I=V===void 0?null:V,W=this.state.inputValue,Q=W===void 0?null:W,ie=typeof H=="number"?H.toFixed(U):"".concat(H),ae=H!==I||ie!=="".concat(Q);return"value"in this.props?(Q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Q},j)):this.setState({value:H,inputValue:this.toPrecisionAsStep(A)},j),ae&&this.props.onChange(H),H}},{key:"getMaxPrecision",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.props,H=U.precision,V=U.step;if(y(H))return H;var I=this.getPrecision(j),W=this.getPrecision(V),Q=this.getPrecision(A);return A?Math.max(Q,I+W):I+W}},{key:"getPrecisionFactor",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getMaxPrecision(A,j);return Math.pow(10,U)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(A){return this.props.formatter?this.props.formatter(A):A}},{key:"toPrecisionAsStep",value:function(A){if(this.isNotCompleteNumber(A)||A==="")return A;var j=Math.abs(this.getMaxPrecision(A));return isNaN(j)?A.toString():Number(A).toFixed(j)}},{key:"toNumber",value:function(A){var j=this.props.precision,U=this.state.focused,H=A&&A.length>16&&U;return this.isNotCompleteNumber(A)||H?A:y(j)?Math.round(A*Math.pow(10,j))/Math.pow(10,j):Number(A)}},{key:"upStep",value:function(A,j){var U=this.props.step,H=this.getPrecisionFactor(A,j),V=Math.abs(this.getMaxPrecision(A,j)),I=((H*A+H*U*j)/H).toFixed(V);return this.toNumber(I)}},{key:"downStep",value:function(A,j){var U=this.props.step,H=this.getPrecisionFactor(A,j),V=Math.abs(this.getMaxPrecision(A,j)),I=((H*A-H*U*j)/H).toFixed(V);return this.toNumber(I)}},{key:"step",value:function(A,j){var U=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,V=arguments.length>3?arguments[3]:void 0;this.stop(),j&&(j.persist(),j.preventDefault());var I=this.props;if(I.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var Q=this["".concat(A,"Step")](W,H),ie=Q>I.max||QI.max?Q=I.max:Q=xe),Et=(Zt||Zt===0)&&(isNaN(Zt)||Number(Zt)<=Ze),Fe=st||H||V,Se=Et||H||V,Oe=d()("".concat(U,"-handler"),"".concat(U,"-handler-up"),Object(z.a)({},"".concat(U,"-handler-up-disabled"),Fe)),ce=d()("".concat(U,"-handler"),"".concat(U,"-handler-down"),Object(z.a)({},"".concat(U,"-handler-down-disabled"),Se)),he=I?{onTouchStart:Fe?o:this.up,onTouchEnd:this.stop}:{onMouseDown:Fe?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ce=I?{onTouchStart:Se?o:this.down,onTouchEnd:this.stop}:{onMouseDown:Se?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return P.a.createElement("div",{className:nt,style:Me,title:Be,onMouseEnter:qe,onMouseLeave:Ve,onMouseOver:De,onMouseOut:pe,onFocus:function(){return null},onBlur:function(){return null}},P.a.createElement("div",{className:"".concat(U,"-handler-wrap")},P.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Increase Value","aria-disabled":Fe,className:Oe}),Q||P.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-up-inner"),onClick:r})),P.a.createElement("span",Object.assign({unselectable:"on"},Ce,{role:"button","aria-label":"Decrease Value","aria-disabled":Se,className:ce}),ie||P.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-down-inner"),onClick:r}))),P.a.createElement("div",{className:"".concat(U,"-input-wrap")},P.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ze,"aria-valuemax":xe,"aria-valuenow":Zt,required:se,type:$e,placeholder:me,onPaste:Tt,onClick:we,onMouseUp:this.onMouseUp,className:"".concat(U,"-input"),tabIndex:ve,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:pt?this.onKeyDown:o,onKeyUp:pt?this.onKeyUp:o,autoFocus:We,maxLength:be,readOnly:V,disabled:H,max:xe,min:Ze,step:ue,name:ze,title:Be,id:X,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Mt),pattern:Y,inputMode:G,onInput:Ut},He))))}}]),D}(P.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:s,required:!1,autoComplete:"off"};var g=R,m=Ee.a=g},fjLI:function(Gt,Ee,k){"use strict";k.d(Ee,"e",function(){return _}),k.d(Ee,"a",function(){return d}),k.d(Ee,"c",function(){return v}),k.d(Ee,"d",function(){return f}),k.d(Ee,"b",function(){return n});var ne=k("8HAY"),z=k("Cg/j"),N=k("T8No"),K=k("nnTU"),O=k("MI8n"),w=function(){var p=function(o,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var x in l)l.hasOwnProperty(x)&&(s[x]=l[x])},p(o,r)};return function(o,r){p(o,r);function s(){this.constructor=o}o.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}(),B=function(p,o,r,s){var l=arguments.length,x=l<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,r):s,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(p,o,r,s);else for(var y=p.length-1;y>=0;y--)(E=p[y])&&(x=(l<3?E(x):l>3?E(o,r,x):E(o,r))||x);return l>3&&x&&Object.defineProperty(o,r,x),x},C=function(p,o){return function(r,s){o(r,s,p)}},P=function(){for(var p=0,o=0,r=arguments.length;o=0&&(l.splice(x,1),s._onDidChangeMenu.fire(o))}}},p.prototype.getMenuItems=function(o){var r=(this._menuItems.get(o)||[]).slice(0);return o===0&&this._appendImplicitItems(r),r},p.prototype._appendImplicitItems=function(o){for(var r=new Set,s=o.filter(function(R){return _(R)}),l=0,x=s;l47?pr({status:!0,visible:!0}):pr({status:!1,visible:!0}))},[Re.course_group_info&&Re.course_group_info.length]),Object(f.useEffect)(function(){Re!=null&&Re.course_id&&(Object(x.c)()?Pn([]):Pn([Object(_.a)(Object(_.a)({},Re),{isMe:!0})]))},[ur.userInfo]),Object(f.useEffect)(function(){Ar()},[]);var Ar=function(){var gn=Object(B.a)(b.a.mark(function hn(){var Rn;return b.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return vn.next=2,Or({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},ke)});case 2:Rn=vn.sent,Object(x.c)()?kt(Object(Ve.a)(Rn.student_works)):kt(Object(Ve.a)(Rn));case 4:case"end":return vn.stop()}},hn)}));return function(){return gn.apply(this,arguments)}}();function Jn(){Ye(1),Dn(""),ye(""),rt(""),Ft(""),pa([])}var rn=function(){ke.page=1;var hn=Object.assign({},$n.getFieldValue());delete ke.course_group,delete ke.teacher_comment,Object.keys(hn).map(function(Rn){switch(Rn){case"teacher_comment":case"member_work":if(hn[Rn].length>1||!hn[Rn].length)delete ke[Rn],$n.setFieldsValue(Object(qe.a)({},Rn,"all"));else{var tr;ke[Rn]=(tr=hn[Rn])===null||tr===void 0?void 0:tr[0]}break;case"work_status":hn[Rn].includes("all")||Re.task_status.length===hn[Rn].length||!hn[Rn].length?(delete ke.work_status,$n.setFieldsValue(Object(qe.a)({},"work_status","all"))):(ke.work_status=hn[Rn],$n.setFieldsValue(Object(qe.a)({},"work_status",ke.work_status)));break;case"course_group_info":hn[Rn].includes("all")||Re[Rn].length===hn[Rn].length||!hn[Rn].length?(delete ke.course_group,$n.setFieldsValue(Object(qe.a)({},"course_group_info","all"))):(ke.course_group=hn[Rn],$n.setFieldsValue(Object(qe.a)({},"course_group_info",ke.course_group)));break}}),Ar()},Sn=function(hn,Rn){ke.page=hn,ke.limit=Rn,Ar()},Er=function(){var hn=ke;hn.limit=Number(Hn),hn.page=Number(1),ft(hn),Ar()},Mr=[{name:"\u7EC4\u957F",id:1},{name:"\u7EC4\u5458",id:0}],Vn=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",width:50,render:function(hn,Rn,tr){return ke.limit*(ke.page-1)+tr+1}},{title:"\u59D3\u540D",align:"center",dataIndex:"user_name",width:90,render:function(hn,Rn){return n.a.createElement("div",null,hn,n.a.createElement("br",null),Rn.is_leader&&n.a.createElement("span",{className:"leader"},"\u7EC4\u957F"))}},Object(x.c)()&&{title:"\u5B66\u53F7",align:"center",dataIndex:"student_id",sortOrder:gr.student_id,sortDirections:["descend","ascend"],width:90,sorter:function(hn,Rn){return hn.id-Rn.id},render:function(hn){return hn}},Object(x.c)()&&{title:"\u5206\u73ED",align:"center",dataIndex:"group_name"},{title:"\u5206\u7EC4",align:"center",dataIndex:"work_group",width:70,render:function(hn){return n.a.createElement("span",{className:"c-blue"},hn)}},(Re==null?void 0:Re.base_on_project)&&{title:"\u5173\u8054\u9879\u76EE",align:"center",dataIndex:"base_on_project",width:70,render:function(hn,Rn){var tr,vn,Hr,ja,Ea,fa;return((tr=Rn.project_info)===null||tr===void 0?void 0:tr.id)!==-1?n.a.createElement("a",{target:"_blank",href:"".concat((vn=ur.navigationInfo)===null||vn===void 0||((Hr=vn.top)===null||Hr===void 0)?void 0:Hr.old_url).concat((ja=Rn.project_info)===null||ja===void 0?void 0:ja.id),className:"c-blue"},(Ea=Rn.project_info)===null||Ea===void 0?void 0:Ea.name):(fa=Rn.project_info)===null||fa===void 0?void 0:fa.name}},{title:"\u4F5C\u54C1\u72B6\u6001",dataIndex:"work_status",width:"8%",align:"center",render:function(hn){return hn===-1?"\u91CD\u505A\u4E2D":n.a.createElement(l.a,{status:hn})}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",width:"8%",align:"center",render:function(hn){return hn||"- -"}},{title:"\u66F4\u65B0\u65F6\u95F4",align:"center",dataIndex:"update_time",sortOrder:gr.update_time,sortDirections:["descend","ascend"],width:105,sorter:function(hn,Rn){return hn.id-Rn.id},render:function(hn){return hn?X()(hn).format("YYYY-MM-DD HH:mm"):"--"}},{title:"\u6559\u5E08\u8BC4\u5206",align:"center",dataIndex:"teacher_score",width:75},{title:"\u52A9\u6559\u8BC4\u5206",align:"center",dataIndex:"teaching_asistant_score",width:75},Re.anonymous_comment&&{title:"\u533F\u8BC4\u8BC4\u5206",align:"center",dataIndex:"student_score",width:75},(Object(x.c)()||Object(x.s)()&&!(Re!=null&&Re.anonymous_comment)&&!Re.anonymous_appeal||Object(x.s)()&&((un=Re.homework_status)===null||un===void 0?void 0:un.includes("\u5DF2\u622A\u6B62")))&&{title:"\u5F53\u524D\u6210\u7EE9",width:"9%",align:"center",dataIndex:"work_score",sortOrder:gr.work_score,sortDirections:["descend","ascend"],sorter:!0,render:function(hn){return hn}},{title:"\u64CD\u4F5C",width:"8%",align:"center",dataInex:"action",render:function(hn,Rn){return Rn.work_status===0&&!Object(x.c)()?n.a.createElement("div",null,"--"):n.a.createElement("div",null,!Object(x.c)()&&n.a.createElement(r.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat(ke.coursesId,"/group_homework/").concat(ke.categoryId,"/review/").concat(Rn.id)},"\u67E5\u770B"),Object(x.c)()&&n.a.createElement(r.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat(ke.coursesId,"/group_homework/").concat(ke.categoryId,"/review/").concat(Rn.id)},Rn.has_comment?"\u5DF2\u8BC4\u9605":"\u8BC4\u9605"),n.a.createElement("br",null),Object(x.c)()&&n.a.createElement(Be.a,{placement:"bottom",title:n.a.createElement("p",null,"\u8C03\u6574\u5B66\u751F\u5F53\u524D\u6210\u7EE9",n.a.createElement("br",null),"\u5176\u5B83\u5386\u53F2\u8BC4\u5206\u5C06\u5168\u90E8\u5931\u6548")},n.a.createElement("a",{className:"c-green",onClick:function(vn){vn.preventDefault(),Or({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8C03\u5206",selectArrs:Rn,id:Rn.id,params:ke}})}},"\u8C03\u5206")))}}].filter(function(gn){return!!gn}),kr=Object(Ve.a)(Vn.map(function(gn){return Object(_.a)({},gn)}));kr[0].render=function(gn){return"\u6211"};var Yr=function(){var gn=Object(B.a)(b.a.mark(function hn(){var Rn,tr;return b.a.wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:return Qe(!0),Hr.next=3,Object(G.a)("/api/homework_commons/".concat(ke==null?void 0:ke.categoryId,"/export_student_works.json"),{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});case 3:Rn=Hr.sent,Rn.status===0?(tr=ee.current)===null||tr===void 0||tr.exportReport(Rn.files):Qe(!1);case 5:case"end":return Hr.stop()}},hn)}));return function(){return gn.apply(this,arguments)}}(),Ir=function(){return n.a.createElement(Ze.a,null,n.a.createElement(Ze.a.Item,{key:"1"},n.a.createElement("span",{onClick:function(){return Object(Nt.h)(JSON.parse(sessionStorage.all_student_works_params),"group_work_list")}},"\u5BFC\u51FA\u6210\u7EE9")),n.a.createElement(Ze.a.Item,{key:"3"},n.a.createElement(P.a,{loading:Te,ghost:!0,style:{paddingLeft:0,background:"transparent"},type:"text",onClick:function(){return Yr()}},"\u5BFC\u51FA\u4F5C\u54C1\u9644\u4EF6")),n.a.createElement(Ze.a.Item,{key:"2"},n.a.createElement(r.a,{to:"/classrooms/".concat(ke.coursesId,"/exportlist/group_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return n.a.createElement("section",{className:"".concat(It.a.wrap," minH500")},n.a.createElement("aside",null,n.a.createElement("aside",{className:"minH500 bg-white pl30 ".concat(Object(x.c)()?"pt30":""," pr30")},!(Re!=null&&Re.all_member_count)&&!An["shixunHomeworks/getWorkList"]&&((Re==null||((wn=Re.homework_status)===null||wn===void 0)?void 0:wn.includes("\u672A\u53D1\u5E03"))||(Re==null||((zn=Re.homework_status)===null||zn===void 0)?void 0:zn.includes("\u672A\u5F00\u59CB")))&&n.a.createElement("aside",{className:"bg-white inline-block w100"},n.a.createElement(Y.a,null)),!Object(x.c)()&&n.a.createElement("aside",{className:"pt10 pb10"},n.a.createElement("span",{className:"c-orange"},Re.commit_count),"\u5DF2\u4EA4",n.a.createElement("span",{className:"ml10"},Re.uncommit_count),"\u672A\u4EA4",(Re==null||((cr=Re.left_time)===null||cr===void 0)?void 0:cr.time)&&n.a.createElement("span",{className:"ml10"},n.a.createElement("span",null,Re==null||((sr=Re.left_time)===null||sr===void 0)?void 0:sr.status),n.a.createElement("span",{className:"c-orange"},Re==null||((Tr=Re.left_time)===null||Tr===void 0)?void 0:Tr.time))),n.a.createElement("aside",null,!(Re!=null&&(Zn=Re.homework_status)!==null&&Zn!==void 0&&Zn.includes("\u672A\u53D1\u5E03"))&&!(Re!=null&&(Xn=Re.homework_status)!==null&&Xn!==void 0&&Xn.includes("\u672A\u5F00\u59CB"))&&n.a.createElement("aside",null,Object(x.c)()&&n.a.createElement("aside",{className:"mb30"},n.a.createElement(pe.a,{form:$n,onChange:rn,initialValues:(Nn={},Object(qe.a)(Nn,"member_work","all"),Object(qe.a)(Nn,"work_status","all"),Object(qe.a)(Nn,"course_group_info","all"),Object(qe.a)(Nn,"teacher_comment","all"),Nn)},n.a.createElement(pe.a.Item,{name:"teacher_comment"},n.a.createElement(Q.a.Group,{style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u4F60\u7684\u8BC4\u9605:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all",checked:!Dt.teacher_comment},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1"},Re.teacher_comment&&Re.teacher_comment.map(function(gn){return n.a.createElement(Q.a,{value:gn.id,key:gn.id},gn.name,"(",gn.count,")")}))))),n.a.createElement(pe.a.Item,{name:"work_status"},n.a.createElement(Q.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u4F5C\u54C1\u72B6\u6001:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all",checked:!Dt.work_status},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1"},Re.task_status&&Re.task_status.map(function(gn){return n.a.createElement(Q.a,{name:"work_status",value:gn.id,key:gn.id},gn.name,"(",gn.count,")")}))))),n.a.createElement(pe.a.Item,{name:"member_work"},n.a.createElement(Q.a.Group,{style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u7EC4\u5185\u89D2\u8272:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1"},Mr.map(function(gn){return n.a.createElement(Q.a,{value:gn.id,key:gn.id},gn.name)}))))),n.a.createElement(pe.a.Item,{name:"course_group_info"},n.a.createElement(Q.a.Group,{style:{width:"100%"}},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"80px",style:{fontSize:14}},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(ae.a,{flex:"80px"},n.a.createElement(Q.a,{value:"all",checked:!Dt.course_group},"\u5168\u90E8")),n.a.createElement(ae.a,{flex:"1",className:"".concat(It.a.workListClass," ").concat(hr.visible?It.a.visible:""," ").concat(hr.status?"":It.a.status)},n.a.createElement("div",{ref:Zt,className:It.a.left},Re.course_group_info&&Re.course_group_info.map(function(gn){return n.a.createElement(Q.a,{value:gn.course_group_id,key:gn.course_group_id},gn.group_group_name,"(",gn.count,")")})),hr.status&&n.a.createElement("div",{className:It.a.tips,onClick:function(){return pr(Object(_.a)(Object(_.a)({},hr),{},{visible:!hr.visible}))}},n.a.createElement("span",null,hr.visible?"\u5C55\u5F00":"\u6536\u8D77",hr.visible?n.a.createElement(se.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(we.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))))),n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,{flex:"1"},n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,null,n.a.createElement(H.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(hn){ke.page=1,ke.search=hn,Or({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},ke)})},style:{width:240}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"ml5 c-red"},Re.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",Re.work_count,"\u4E2A\u5B66\u751F\uFF09"))),n.a.createElement(ae.a,{style:{textAlign:"end"},className:It.a.workListButtonWrap},n.a.createElement(j.a,{overlay:Ir},n.a.createElement(P.a,null,n.a.createElement(ve.a,null),"\u5BFC\u51FA",n.a.createElement($e.a,null)))))),!!qn.length&&n.a.createElement(T.a,{className:"mb10",dataSource:qn,columns:kr,pagination:!1,showHeader:!1,loading:!1}),n.a.createElement("aside",{className:"mb30"},n.a.createElement(T.a,{loading:An["shixunHomeworks/getWorkList"],hideOnSinglePage:!0,pagination:!1,dataSource:Vt,columns:Vn,onChange:function(hn,Rn,tr){if(gr={},tr.order===void 0){gr[tr.field]="descend";switch(tr.field){case"student_id":Ie("descend"),ke.b_order="desc";break}}else ke.b_order=tr.order.replace("end",""),gr[tr.field]=tr.order;Un(Object(_.a)({},gr)),ke.order=tr.field,Or({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},ke)})}}))))),n.a.createElement("aside",{className:"tc mb50 mt30"},Lr.workList.work_count>0&&n.a.createElement("div",{style:{display:"flex",margin:"auto",textAlign:"center",justifyContent:"center"}},n.a.createElement(u.a,{onChange:Sn,defaultCurrent:ke.page||1,current:ke.page||1,defaultPageSize:ke.limit||1,pageSize:ke.limit||1,total:Lr.workList.work_count}),n.a.createElement(H.a,{suffix:"\u6761/\u9875",type:"number",value:Hn,onChange:function(hn){return or(hn.target.value)},min:1,onBlur:Er,style:{width:"80px",height:"29px",lineHeight:"29px",marginLeft:"10px"}})))),n.a.createElement(ze,null),n.a.createElement(be,null),Gr&&n.a.createElement(y.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Gr,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(B.a)(b.a.mark(function gn(){var hn,Rn;return b.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(!(_e===2)){vn.next=13;break}if(!(oa.length<=0)){vn.next=4;break}return w.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),vn.abrupt("return");case 4:if(St){vn.next=7;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),vn.abrupt("return");case 7:return vn.next=9,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,status:oa}});case 9:hn=vn.sent,hn.status===0&&(ma(hn),qr(!1),ca(!0)),vn.next=32;break;case 13:if(!(je===0||le===0)){vn.next=16;break}vn.next=22;break;case 16:if(je){vn.next=19;break}return w.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),vn.abrupt("return");case 19:if(le){vn.next=22;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),vn.abrupt("return");case 22:if(!(je>le)){vn.next=25;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),vn.abrupt("return");case 25:if(St){vn.next=28;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),vn.abrupt("return");case 28:return vn.next=30,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,min_score:je,max_score:le}});case 30:Rn=vn.sent,Rn.status===0&&(ma(Rn),qr(!1),ca(!0));case 32:case"end":return vn.stop()}},gn)})),onCancel:function(){qr(!1),Jn()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{value:_e,onChange:function(hn){Ye(hn.target.value)}},n.a.createElement(m.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(m.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),_e===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(R.a,{min:0,max:100,value:je,onChange:function(hn){return rt(hn)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(R.a,{min:0,max:100,value:le,onChange:function(hn){return ye(hn)},style:{width:"100px"}})),_e===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),n.a.createElement(Q.a.Group,{onChange:function(hn){pa(Object(Ve.a)(hn))},style:{width:"100%"}},(mn=Re.task_status)===null||mn===void 0?void 0:mn.map(function(gn,hn){return n.a.createElement(Q.a,{name:"task_status",value:gn.id},gn.name,"(",gn.count,")")}))),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),n.a.createElement(Tt.a,{className:It.a.MdEditor,onChange:function(hn){return Ft(hn)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),Qa&&n.a.createElement(y.a,{visible:Qa,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(B.a)(b.a.mark(function gn(){var hn,Rn;return b.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(!(_e===2)){vn.next=7;break}return vn.next=3,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,status:oa}});case 3:hn=vn.sent,hn.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),Jn(),Ar(),ca(!1)),vn.next=11;break;case 7:return vn.next=9,Object(G.a)("/api/homework_commons/".concat(ke.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:ke.categoryId,comment:St,min_score:je,max_score:le}});case 9:Rn=vn.sent,Rn.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),Jn(),Ar(),ca(!1));case 11:case"end":return vn.stop()}},gn)})),onCancel:function(){Jn(),ca(!1)}},n.a.createElement("div",{style:{padding:"32px"}},_e===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",je,"-",le,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),_e===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((Pr=Re.task_status)===null||Pr===void 0?void 0:Pr.filter(function(gn){return oa==null?void 0:oa.includes(gn.id)}).map(function(gn){return gn.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Ra==null?void 0:Ra.count,"\u540D\u5B66\u751F"))))},nt=Object(o.a)(function(nn){var Qt=nn.shixunHomeworks,un=nn.user,wn=nn.loading;return{shixunHomeworks:Qt,loading:wn.effects,user:un}})(fn),He=k("m3rI"),pt=k("9Bee"),Mt=function(Qt){var un=Qt.shixunHomeworks,wn=Qt.dispatch,zn=Object(p.i)();return n.a.createElement(y.a,{centered:!0,title:"\u63D0\u793A",visible:un.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(b.a.mark(function cr(){var sr;return b.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:return Zn.next=2,wn({type:"shixunHomeworks/deleteReply",payload:{object_id:un.actionTabs.selectArr.id,object_type:"journals_for_message"}});case 2:sr=Zn.sent,sr.status===0&&(w.b.success("\u5220\u9664\u6210\u529F"),wn({type:"shixunHomeworks/setActionTabs",payload:{}}),wn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},un.actionTabs.params)}));case 4:case"end":return Zn.stop()}},cr)})),onCancel:function(){wn({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))},st=Object(o.a)(function(nn){var Qt=nn.shixunHomeworks;return{shixunHomeworks:Qt}})(Mt),Et=k("/MfK"),Fe=k("BtR2"),Se=k("nqnY"),Oe=k.n(Se),ce=k("p5ED");X.a.lang("ZH-cn");var he=function(Qt){var un,wn,zn,cr,sr=Qt.shixunHomeworks,Tr=Qt.classroomList,Zn=Qt.globalSetting,Xn=Qt.loading,Nn=Qt.user,mn=Qt.dispatch,Pr=Object(f.useState)(Object(_.a)({},Object(p.i)())),Lr=Object(d.a)(Pr,2),An=Lr[0],ur=Lr[1],Or=Object(f.useState)(!1),ee=Object(d.a)(Or,2),Te=ee[0],Qe=ee[1],Ge=Object(f.useState)(-1),ot=Object(d.a)(Ge,2),ke=ot[0],ft=ot[1],yt=Object(f.useState)(""),Re=Object(d.a)(yt,2),mt=Re[0],Bt=Re[1],Dt=Object(f.useState)(""),lt=Object(d.a)(Dt,2),At=lt[0],Lt=lt[1],Yt=sr.workList,Ie=Tr.detailLeftMenus,Pt=sr.shixunHomeworksDetail,Wt=sr.replyList,dn=sr.workDetail;An.page_size=10;var Bn=Object(f.useState)({content:"",type:""}),En=Object(d.a)(Bn,2),Cn=En[0],Kn=En[1],Wn=Object(f.useRef)();return Object(f.useEffect)(function(){mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},An)}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(_.a)({},An)}),Ie.course_modules||mn({type:"classroomList/getClassroomLeftMenus",payload:Object(_.a)({},An)})},[An.categoryId]),n.a.createElement("section",{className:Oe.a.bg},n.a.createElement("section",{className:""},n.a.createElement("aside",{className:[Oe.a.desc,"c-black","font14","bg-white"].join(" ")},sr.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement(pt.a,{value:(dn==null?void 0:dn.description)||"\u6682\u65E0\uFF5E"}),"\u5206\u7EC4\u8981\u6C42\uFF1A",dn==null||((un=dn.group_info)===null||un===void 0)?void 0:un.min_num," ~ ",dn==null||((wn=dn.group_info)===null||wn===void 0)?void 0:wn.max_num,"\u4EBA ",n.a.createElement("span",{className:"c-light-black"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"),n.a.createElement("br",null),"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD\uFF1A",dn!=null&&(zn=dn.group_info)!==null&&zn!==void 0&&zn.base_on_project?"\u662F":"\u5426",n.a.createElement("span",{className:"c-light-black"},"\uFF08\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09"),dn==null||((cr=dn.attachments)===null||cr===void 0)?void 0:cr.map(function(_t,wt){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(He.a.API_SERVER).concat(_t.url),onClick:function(){var Vt=Object(B.a)(b.a.mark(function kt(jn){var $t;return b.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(jn.preventDefault(),!(_t.file_type==="txt")){Dn.next=6;break}return Dn.next=4,Object(G.a)(_t.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:$t=Dn.sent,Wn.current=$t;case 6:Kn({type:_t.file_type,content:window.location.origin+_t.url});case 7:case"end":return Dn.stop()}},kt)}));return function(kt){return Vt.apply(this,arguments)}}()},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},_t.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},_t.filesize),n.a.createElement("span",{className:"ml10 c-light-primary current",onClick:function(kt){kt.preventDefault(),kt.stopPropagation(),Object(l.v)("","".concat(He.a.API_SERVER).concat(_t.url))}},"\u4E0B\u8F7D"),n.a.createElement("span",{className:"ml10 c-green-29b current"},"\u9884\u89C8")))}),sr.actionTabs.key==="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("aside",{className:["bg-white"].join(" ")},n.a.createElement(Tt.a,{onChange:function(wt){Bt(wt)},defaultValue:dn==null?void 0:dn.explanation,height:200,isFocus:!0,watch:!0}),n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24,className:"tr"},n.a.createElement(P.a,{type:"default",size:"large",onClick:Object(B.a)(b.a.mark(function _t(){return b.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}});case 1:case"end":return Vt.stop()}},_t)}))},"\u53D6\u6D88"),n.a.createElement(P.a,{type:"primary",size:"large",className:"ml20",onClick:Object(B.a)(b.a.mark(function _t(){var wt;return b.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(!(mt==="")){kt.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),kt.next=8;break;case 4:return kt.next=6,mn({type:"shixunHomeworks/updateWork",payload:{explanation:mt,categoryId:An.categoryId}});case 6:wt=kt.sent,wt.status===0&&(w.b.success("\u64CD\u4F5C\u6210\u529F"),mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(_.a)({},An)}));case 8:case"end":return kt.stop()}},_t)}))},"\u4FDD\u5B58"))))),n.a.createElement("aside",{className:[Oe.a.reply,"bg-white","mt20"].join(" ")},Te&&n.a.createElement(Tt.a,{onChange:function(wt){Bt(wt)},height:200,isFocus:!0,watch:!0}),n.a.createElement(I.a,{onClick:function(){Qe(!0)}},n.a.createElement(ae.a,{flex:"1"},!Te&&n.a.createElement(H.a,{size:"large",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),n.a.createElement(ae.a,null,n.a.createElement(P.a,{type:"primary",size:"large",onClick:Object(B.a)(b.a.mark(function _t(){var wt;return b.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(!(mt==="")){kt.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),kt.next=8;break;case 4:return kt.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:An.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:mt}}});case 6:wt=kt.sent,wt.status===0&&(w.b.success("\u53D1\u5E03\u6210\u529F"),mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},An)}),Qe(!1),Bt(""));case 8:case"end":return kt.stop()}},_t)}))},"\u53D1\u8868")))),(Wt==null?void 0:Wt.comments)&&Wt.comments!=""&&n.a.createElement("aside",{className:[Oe.a.replyList,"bg-white"].join(" ")},Wt==null?void 0:Wt.comments.map(function(_t,wt){var Vt,kt,jn,$t;return n.a.createElement(I.a,{gutter:[12,12],key:wt},n.a.createElement(ae.a,{flex:"40px"},n.a.createElement("img",{className:Oe.a.headpic,width:"40",src:"".concat(He.a.IMG_SERVER,"/images/").concat(_t==null||((Vt=_t.author)===null||Vt===void 0)?void 0:Vt.image_url)})),n.a.createElement(ae.a,{flex:"1"},n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,{span:20},n.a.createElement("span",{className:"c-light-black"},_t==null||((kt=_t.author)===null||kt===void 0)?void 0:kt.name),n.a.createElement("span",{className:"c-light-black ml10"},_t==null?void 0:_t.time," \u53D1\u5E03")),n.a.createElement(ae.a,{className:"tr",span:4},n.a.createElement("div",{className:"tr"},(Object(x.c)()||(Nn==null||((jn=Nn.userInfo)===null||jn===void 0)?void 0:jn.login)===(_t==null||(($t=_t.author)===null||$t===void 0)?void 0:$t.login))&&n.a.createElement(Be.a,{title:"\u5220\u9664"},n.a.createElement(Et.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:An,selectArr:_t}})}})))),n.a.createElement(ae.a,{span:24},n.a.createElement(pt.a,{value:_t.content})),_t.children&&n.a.createElement("aside",{className:Oe.a.comment},_t.children.map(function(sn,Dn){var Ln,cn;return n.a.createElement(I.a,{key:Dn},n.a.createElement(ae.a,{span:24},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"1"},sn.author.name,n.a.createElement("span",{className:"c-light-black ml10"},sn==null?void 0:sn.time)),n.a.createElement(ae.a,null,(Object(x.c)()||(Nn==null||((Ln=Nn.userInfo)===null||Ln===void 0)?void 0:Ln.login)===(sn==null||((cn=sn.author)===null||cn===void 0)?void 0:cn.login))&&n.a.createElement(Be.a,{title:"\u5220\u9664"},n.a.createElement(Et.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:An,selectArr:sn}})}}))))),n.a.createElement(ae.a,null,n.a.createElement(pt.a,{value:sn.content})))})),n.a.createElement(ae.a,{span:24,className:"mt5 c-light-black"},ke===wt&&n.a.createElement("aside",null,n.a.createElement(Tt.a,{onChange:function(Dn){Lt(Dn)},height:150,isFocus:!0}),n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24,className:"tr"},n.a.createElement(P.a,{type:"primary",size:"large",onClick:Object(B.a)(b.a.mark(function sn(){return b.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!(At==="")){Ln.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),Ln.next=9;break;case 4:return Ln.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:An.categoryId,jour_type:"HomeworkCommon",m_parent_id:_t.id,reply_id:1,notes:At}}});case 6:mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},An)}),w.b.success("\u53D1\u5E03\u6210\u529F"),ft(-1);case 9:case"end":return Ln.stop()}},sn)}))},"\u53D1\u8868")))),ke!==wt&&n.a.createElement("div",{className:"tr"},n.a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:function(){return ft(wt)}}),!!_t.user_praise&&n.a.createElement("span",{className:"c-orange"},n.a.createElement(Fe.a,{className:"mr5 ml30",onClick:Object(B.a)(b.a.mark(function sn(){return b.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,mn({type:"shixunHomeworks/replyUnLike",payload:{object_id:_t.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},An)});case 3:case"end":return Ln.stop()}},sn)}))}),!!_t.praise_count&&_t.praise_count),!_t.user_praise&&n.a.createElement("span",null,n.a.createElement(Fe.a,{className:"mr5 ml30",onClick:Object(B.a)(b.a.mark(function sn(){return b.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,mn({type:"shixunHomeworks/replyLike",payload:{object_id:_t.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},An)});case 3:case"end":return Ln.stop()}},sn)}))}),!!_t.praise_count&&_t.praise_count))))))}))),n.a.createElement("aside",{className:"tc mt30 pb30"},n.a.createElement(u.a,{defaultCurrent:1,total:Wt==null?void 0:Wt.total_count,hideOnSinglePage:!0,current:An.page||1,onChange:function(wt){An.page=wt,mn({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},An)})}})),n.a.createElement(st,null),n.a.createElement(ce.a,{close:!0,data:Cn==null?void 0:Cn.content,type:Cn==null?void 0:Cn.type,hasMask:!0,monacoEditor:{value:Wn.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){return Kn({content:"",type:""})}}))},Ce=Object(o.a)(function(nn){var Qt=nn.shixunHomeworks,un=nn.classroomList,wn=nn.user,zn=nn.loading,cr=nn.globalSetting;return{shixunHomeworks:Qt,globalSetting:cr,user:wn,classroomList:un,loading:zn.effects}})(he);X.a.lang("ZH-cn");var Le=function(Qt){var un,wn=Qt.shixunHomeworks,zn=Qt.classroomList,cr=Qt.globalSetting,sr=Qt.loading,Tr=Qt.dispatch,Zn=Object(p.i)(),Xn=zn.detailLeftMenus,Nn=wn.replyList,mn=wn.referenceAnswer;return Zn.page_size=10,Object(f.useEffect)(function(){Tr({type:"shixunHomeworks/getReplyList",payload:Object(_.a)({},Zn)}),Tr({type:"shixunHomeworks/getReferenceAnswer",payload:{coursesId:Zn.categoryId}}),Xn.course_modules||Tr({type:"classroomList/getClassroomLeftMenus",payload:Object(_.a)({},Zn)})},[Zn.categoryId]),n.a.createElement("section",{className:"pb30 pl30 pr30 pt30 bg-white"},n.a.createElement("aside",{className:["c-black","font14"].join(" ")},wn.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("div",null,(mn==null?void 0:mn.reference_answer)&&n.a.createElement(pt.a,{value:mn==null?void 0:mn.reference_answer}),!(mn!=null&&mn.reference_answer)&&n.a.createElement(Y.a,null)),mn==null||((un=mn.attachments)===null||un===void 0)?void 0:un.map(function(Pr,Lr){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(He.a.API_SERVER).concat(Pr.url)},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},Pr.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},Pr.filesize)))})))},at=Object(o.a)(function(nn){var Qt=nn.shixunHomeworks,un=nn.classroomList,wn=nn.loading,zn=nn.globalSetting;return{shixunHomeworks:Qt,globalSetting:zn,classroomList:un,loading:wn.effects}})(Le),et=k("iQDF"),Rt=k("+eQT"),qt=k("PpiC"),pn=k("oUNq"),an=k("4wi7");function Ht(nn,Qt){for(var un=[],wn=nn;wn0)){gr.next=7;break}return w.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),gr.abrupt("return");case 7:return Pn={homework_ids:Object(Ve.a)(un.actionTabs.selectArrs),group_ids:Cn.map(function(Un){return Un.id}),end_time:X()(qn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:X()(qn.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:wt},gr.next=10,Object(G.a)("/api/courses/".concat(cr.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(_.a)({},Pn)});case 10:yr=gr.sent,yr.status===0&&(Object(l.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),w.b.success("\u53D1\u5E03\u6210\u529F"),wn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),zn.type==="edit"&&(zn.onCallback&&zn.onCallback()),Object(x.c)()?un.actionTabs.detail?(wn({type:"shixunHomeworks/setActionTabs",payload:{}}),wn({type:"shixunHomeworks/getWorkList",payload:Object(_.a)({},cr)}),wn({type:"shixunHomeworks/getWorkSetting",payload:Object(_.a)({},cr)})):wn({type:"classroomList/getClassroomTeacherCommonList",payload:Object(_.a)(Object(_.a)({},un.actionTabs.params),{},{type:3})}):wn({type:"classroomList/getClassroomCommonList",payload:Object(_.a)({},un.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||wn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:n.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return gr.stop()}},cn)}));return function(){return Ln.apply(this,arguments)}}(),sn=function(){Pr(1),Or([]),Kn([])},Dn=Qe>mn*ft;return n.a.createElement(y.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:un.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:$t,onCancel:function(){sn(),wn({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",n.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),ur&&n.a.createElement(pe.a,{form:Zn},n.a.createElement("div",{style:{paddingLeft:0}},n.a.createElement(I.a,{className:"mt30",align:"middle"},n.a.createElement(ae.a,null,n.a.createElement(pe.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},n.a.createElement(Rt.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(cn){return cn.parentNode},disabledDate:function(cn){return cn&&cn<=X()().subtract(0,"days")},disabledTime:bt,placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),n.a.createElement(ae.a,{className:"ml20"},n.a.createElement(pe.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},n.a.createElement(Rt.a,{style:{width:170},getPopupContainer:function(cn){return cn.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},disabledDate:function(cn){return cn&&cn0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(Q.a,{checked:Cn.length===ur.length,onChange:function(cn){Cn.length===ur.length?Kn([]):Kn(ur.filter(function(qn){return!qn.is_published}))}},"\u5168\u9009")," "),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Cn.length||0,"\u4E2A\u5206\u73ED")),(un.actionTabs.type===1||!wt)&&ur.length>0&&n.a.createElement(an.a,{data:ur,selectedRowKeys:Cn,setSelectedRowKeys:Kn})))},ct=Object(o.a)(function(nn){var Qt=nn.classroomList,un=nn.user;return{classroomList:Qt,user:un}})(xt),ge=k("qbod"),Ne=k.n(ge),Ct=function(Qt){var un=Qt.classroomList,wn=Qt.dispatch,zn=Qt.cb,cr=Object(qt.a)(Qt,["classroomList","dispatch","cb"]),sr=Object(p.i)(),Tr=Object(f.useState)(null),Zn=Object(d.a)(Tr,2),Xn=Zn[0],Nn=Zn[1],mn=Object(f.useState)([1,2,3,4,5]),Pr=Object(d.a)(mn,2),Lr=Pr[0],An=Pr[1],ur=Object(f.useState)(!1),Or=Object(d.a)(ur,2),ee=Or[0],Te=Or[1];Object(f.useEffect)(function(){un.actionTabs.key==="\u667A\u80FD\u5206\u7EC4"},[un.actionTabs]);var Qe=function(){var ot=Object(B.a)(b.a.mark(function ke(){var ft;return b.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Xn){Re.next=3;break}return w.b.warn("\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\u4E0D\u80FD\u4E3A\u7A7A"),Re.abrupt("return");case 3:return Re.next=5,Object(G.a)("/api/is_checkout_data.json",{method:"get",params:{id:sr==null?void 0:sr.categoryId,group_num:Xn}});case 5:ft=Re.sent,(ft==null?void 0:ft.status)===0&&(wn({type:"classroomList/setActionTabs",payload:{}}),zn());case 7:case"end":return Re.stop()}},ke)}));return function(){return ot.apply(this,arguments)}}(),Ge=[{id:1,name:"\u603B\u5B66\u65F6"},{id:2,name:"\u6D3B\u8DC3\u65F6\u6BB5"},{id:3,name:"\u5386\u53F2\u6210\u7EE9"},{id:4,name:"\u4E0A\u8BFE\u6B21\u6570"},{id:5,name:"\u4E92\u52A8\u6B21\u6570"}];return n.a.createElement(y.a,{width:500,centered:!0,afterClose:function(){Te(!1),Nn(null),An([1,2,3,4,5])},title:"\u667A\u80FD\u5206\u7EC4",visible:un.actionTabs.key==="\u667A\u80FD\u5206\u7EC4",footer:null,onCancel:function(){wn({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("div",{className:Ne.a.model},n.a.createElement("div",null,"\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\uFF1A",n.a.createElement(R.a,{min:1,max:100,value:Xn,onChange:function(ke){Nn(ke)}})),n.a.createElement("div",{className:"mt20 mb10"},"\u5206\u7EC4\u89C4\u5219\uFF1A"),n.a.createElement(Q.a.Group,{value:Lr,onChange:function(ke){An(ke)}},Ge==null?void 0:Ge.map(function(ot,ke){return n.a.createElement(Q.a,{value:ot.id}," ",ot.name," ")})),n.a.createElement("div",{className:"tr mb10 mt20"},n.a.createElement(P.a,{onClick:Qe,type:"primary"},"\u5F00\u59CB\u667A\u80FD\u5206\u7EC4"))))},dt=Object(o.a)(function(nn){var Qt=nn.classroomList;return{classroomList:Qt}})(Ct),en=function(Qt){var un=Qt.classroomList,wn=Qt.dispatch,zn=Object(qt.a)(Qt,["classroomList","dispatch"]),cr=Object(p.i)(),sr=pe.a.useForm(),Tr=Object(d.a)(sr,1),Zn=Tr[0],Xn=Object(f.useState)(1),Nn=Object(d.a)(Xn,2),mn=Nn[0],Pr=Nn[1],Lr=Object(f.useState)([]),An=Object(d.a)(Lr,2),ur=An[0],Or=An[1],ee=Object(f.useState)(0),Te=Object(d.a)(ee,2),Qe=Te[0],Ge=Te[1],ot=Object(f.useState)(20),ke=Object(d.a)(ot,2),ft=ke[0],yt=ke[1],Re=Object(f.useState)(!0),mt=Object(d.a)(Re,2),Bt=mt[0],Dt=mt[1],lt=Object(f.useState)(),At=Object(d.a)(lt,2),Lt=At[0],Yt=At[1],Ie=Object(f.useState)([]),Pt=Object(d.a)(Ie,2),Wt=Pt[0],dn=Pt[1];cr.id=cr.coursesId,Object(f.useEffect)(function(){un.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?Bn():(dn([]),Or([]))},[un.actionTabs.key]);var Bn=function(){var Kn=Object(B.a)(b.a.mark(function Wn(_t){var wt,Vt,kt;return b.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return Dt(!0),$t.next=3,Object(pn.A)(Object(_.a)(Object(_.a)({},cr),{},{page:_t||mn,limit:ft,homework_id:un.actionTabs.type===1?"":un.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:wt=$t.sent,wt==null||wt.course_groups.map(function(sn){sn.key=sn.id}),wt&&(Or([].concat(Object(Ve.a)(ur),Object(Ve.a)(wt==null?void 0:wt.course_groups))),Ge(wt==null?void 0:wt.group_count),Yt(wt==null?void 0:wt.course_groups),Dt(!1),_t||Zn.setFieldsValue((kt={},Object(qe.a)(kt,"group_ids",wt==null||((Vt=wt.course_groups)===null||Vt===void 0)?void 0:Vt.map(function(sn){return String(sn.id)})),Object(qe.a)(kt,"end_time",X()(X()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),kt)));case 6:case"end":return $t.stop()}},Wn)}));return function(_t){return Kn.apply(this,arguments)}}(),En=function(){var Kn=Object(B.a)(b.a.mark(function Wn(){var _t,wt;return b.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return _t=Object(_.a)({},Zn.getFieldsValue()),console.log("----",_t.group_ids),kt.next=4,Object(G.a)("/api/courses/".concat(cr.id,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(Ve.a)(un.actionTabs.selectArrs),group_ids:(Wt==null?void 0:Wt.length)>0?Wt:[],unified_setting:!(ur!=null&&ur.length),end_time:X()(_t.end_time).format("YYYY-MM-DD HH:mm")}});case 4:wt=kt.sent,wt.status===0&&(Cn(),Object(l.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u622A\u6B62"]),w.b.success("\u64CD\u4F5C\u6210\u529F"),wn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),zn.type==="edit"&&(zn.onCallback&&zn.onCallback()),Object(x.c)()?(wn({type:"classroomList/setActionTabs",payload:{}}),wn({type:"classroomList/getClassroomTeacherCommonList",payload:Object(_.a)(Object(_.a)({},un.actionTabs.params),{},{type:3})})):wn({type:"classroomList/getClassroomCommonList",payload:Object(_.a)({},un.actionTabs.params)}));case 6:case"end":return kt.stop()}},Wn)}));return function(){return Kn.apply(this,arguments)}}(),Cn=function(){Pr(1),Or([])};return n.a.createElement(y.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:un.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:En,onCancel:function(){Cn(),wn({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",n.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),ur&&n.a.createElement(pe.a,{form:Zn},n.a.createElement(I.a,null,n.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(pe.a.Item,{name:"end_time"},n.a.createElement(Rt.a,{style:{width:170},getPopupContainer:function(Wn){return Wn.parentNode},disabledDate:function(Wn){return Wn&&Wn0&&n.a.createElement(I.a,null,n.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement(H.a.Search,{style:{width:"300px"},onChange:function(Wn){Or(Lt.filter(function(_t){return _t.name.indexOf(Wn.target.value)>-1}))}})),(ur==null?void 0:ur.length)>0&&un.actionTabs.type===1&&n.a.createElement(T.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Wn,_t){dn(Wn)}},rowKey:"id",pagination:!1,dataSource:ur,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(ur==null?void 0:ur.length)>0&&un.actionTabs.type===2&&n.a.createElement(T.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Wn,_t){dn(Wn)}},rowKey:"id",pagination:!1,dataSource:ur,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))},tn=Object(o.a)(function(nn){var Qt=nn.classroomList;return{classroomList:Qt}})(en),it=k("Q9mQ"),vt=k("diRs"),Ot=k("OaEy"),on=k("2fM7"),xn=k("w5pM"),lr=k("Lyp1"),fr=k("LvDl"),ir=k("8B0h"),Tn=k.n(ir),Wr=k("CiB2"),ta=function(Qt){var un,wn;Object(Wr.a)(Qt);var zn=Object(f.useState)(!0),cr=Object(d.a)(zn,2),sr=cr[0],Tr=cr[1],Zn=Object(f.useState)(!1),Xn=Object(d.a)(Zn,2),Nn=Xn[0],mn=Xn[1],Pr=Object(f.useState)([]),Lr=Object(d.a)(Pr,2),An=Lr[0],ur=Lr[1],Or=Object(f.useState)([]),ee=Object(d.a)(Or,2),Te=ee[0],Qe=ee[1],Ge=Object(f.useState)([]),ot=Object(d.a)(Ge,2),ke=ot[0],ft=ot[1],yt=Object(f.useState)([]),Re=Object(d.a)(yt,2),mt=Re[0],Bt=Re[1],Dt=Object(p.i)();function lt(){return At.apply(this,arguments)}function At(){return At=Object(B.a)(b.a.mark(function Pt(){var Wt;return b.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,Object(G.a)("/api/homework_commons/".concat(Dt.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Wt=Bn.sent,Qe(Wt);case 4:case"end":return Bn.stop()}},Pt)})),At.apply(this,arguments)}function Lt(){return Yt.apply(this,arguments)}function Yt(){return Yt=Object(B.a)(b.a.mark(function Pt(){var Wt;return b.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,Object(G.a)("/api/courses/".concat(Dt==null?void 0:Dt.coursesId,"/teachers"),{method:"get",params:{homework_id:Dt.categoryId}});case 2:Wt=Bn.sent,Wt==null||Wt.teacher_list.map(function(En){En.key=En.user_id}),ft(Wt==null?void 0:Wt.teacher_list),Bt(Wt==null?void 0:Wt.teacher_list);case 6:case"end":return Bn.stop()}},Pt)})),Yt.apply(this,arguments)}Object(f.useEffect)(function(){lt(),Lt()},[Dt]);var Ie=function(){};return n.a.createElement("section",{className:[Tn.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(I.a,null,n.a.createElement(ae.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(Te==null?void 0:Te.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){mn(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),n.a.createElement(I.a,{style:{marginTop:"20px",marginBottom:"20px"}},(Te==null||((un=Te.data)===null||un===void 0)?void 0:un.length)<=0&&n.a.createElement(Y.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),Te==null||((wn=Te.data)===null||wn===void 0)?void 0:wn.map(function(Pt){return n.a.createElement("span",{key:Pt.id,style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px",marginBottom:20}},n.a.createElement("span",{style:{flex:"1"}},Pt==null?void 0:Pt.real_name),(Te==null?void 0:Te.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(B.a)(b.a.mark(function Wt(){var dn;return b.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(G.a)("/api/homework_commons/".concat(Dt.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:Pt.id}});case 2:dn=En.sent,dn.status===0&&(w.b.info("\u5220\u9664\u6210\u529F"),lt(),Lt());case 4:case"end":return En.stop()}},Wt)}))},"X"))})),n.a.createElement(I.a,null,!sr&&n.a.createElement(ae.a,{className:"mb50"},n.a.createElement(P.a,{type:"primary",size:"large",onClick:function(){return Ie()}},"\u63D0\u4EA4"),n.a.createElement(P.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Tr(!0)}},"\u53D6\u6D88"))),n.a.createElement(y.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Nn,onCancel:function(){return mn(!1)},onOk:Object(B.a)(b.a.mark(function Pt(){var Wt;return b.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(!(An.length===0)){Bn.next=3;break}return w.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),Bn.abrupt("return");case 3:return Bn.next=5,Object(G.a)("/api/homework_commons/".concat(Dt.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:An}});case 5:Wt=Bn.sent,Wt.status===0&&(w.b.info("\u6DFB\u52A0\u6210\u529F"),ur([]),lt(),Lt(),mn(!1));case 7:case"end":return Bn.stop()}},Pt)}))},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(H.a.Search,{onChange:function(Wt){ft(mt.filter(function(dn){return dn.name.indexOf(Wt.target.value)>-1}))}})),n.a.createElement(T.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Wt,dn){ur(Wt)},selectedRowKeys:An,getCheckboxProps:function(Wt){return{disabled:Wt.is_collaborator}}},pagination:!1,dataSource:ke,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},jr=Object(o.a)(function(nn){var Qt=nn.shixunHomeworks,un=nn.loading;return{shixunHomeworks:Qt,loading:un.effects}})(ta),mr=Rt.a.RangePicker,Br=on.a.Option,Zr=function(Qt){var un,wn,zn,cr=Qt.shixunHomeworks,sr=Qt.loading,Tr=Qt.dispatch,Zn=Object(p.i)(),Xn=Object(p.h)(),Nn=cr.workSetting,mn=cr.workList,Pr=Object(f.useState)(!0),Lr=Object(d.a)(Pr,2),An=Lr[0],ur=Lr[1],Or=Object(f.useState)({}),ee=Object(d.a)(Or,2),Te=ee[0],Qe=ee[1],Ge=pe.a.useForm(),ot=Object(d.a)(Ge,1),ke=ot[0],ft=Object(f.useState)([]),yt=Object(d.a)(ft,2),Re=yt[0],mt=yt[1],Bt=Object(f.useState)([]),Dt=Object(d.a)(Bt,2),lt=Dt[0],At=Dt[1],Lt=Object(f.useState)({unified_setting:!1,publish_time:"",end_time:"",ta_mode:1,final_mode:!1,st_proportion:"20%",ta_proportion:"30%",te_proportion:"50%",student_comment:!1,anonymous_appeal:!1,appeal_penalty:0,appeal_time:"",anonymous_comment:!1,evaluation_num:0,evaluation_start:"",evaluation_end:"",absence_penalty:0,work_public:!1,allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,total_score:"",eff_score:""}),Yt=Object(d.a)(Lt,2),Ie=Yt[0],Pt=Yt[1],Wt=(mn==null||((un=mn.homework_status)===null||un===void 0)?void 0:un.includes("\u533F\u8BC4\u4E2D"))||(mn==null||((wn=mn.homework_status)===null||wn===void 0)?void 0:wn.includes("\u7533\u8BC9\u4E2D"))||(mn==null||((zn=mn.homework_status)===null||zn===void 0)?void 0:zn.includes("\u5DF2\u622A\u6B62"));Object(f.useEffect)(function(){dn()},[]),Object(f.useEffect)(function(){if(!(Nn!=null&&Nn.course_id))return;Object.keys(Ie).map(function(wt){wt.indexOf("proportion")>-1&&(Nn[wt]=Nn[wt]*100),Ie[wt]=Nn[wt]}),(!Ie.allow_late||!Ie.unified_late)&&(Ie.late_penalty=5),Re=JSON.parse(JSON.stringify(Nn.group_settings.map(function(wt){return Object(_.a)(Object(_.a)({},wt),{},{group_name:[wt.group_name]})}).filter(function(wt){return wt.publish_time!==null}))),lt=JSON.parse(JSON.stringify(Nn.allow_late_settings.map(function(wt){return Object(_.a)(Object(_.a)({},wt),{},{group_name:[wt.group_name]})}).filter(function(wt){return wt.late_time!==null}))),Pt(Object(_.a)({},Ie)),mt(Object(Ve.a)(Re)),At(Object(Ve.a)(lt))},[Nn]);var dn=function(){Tr({type:"shixunHomeworks/getWorkSetting",payload:Object(_.a)({},Zn)})},Bn=function(){var Vt,kt=JSON.parse(JSON.stringify(Ie));if(kt.categoryId=Zn.categoryId,Ie.unified_setting||(Re=(Vt=Re)===null||Vt===void 0?void 0:Vt.map(function($t){var sn,Dn;if(!$t.publish_time||!$t.end_time)throw w.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!$t.group_name)throw w.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return $t.group_name=typeof($t==null?void 0:$t.group_name)=="string"?[$t==null?void 0:$t.group_name]:$t==null?void 0:$t.group_name,console.log("item:0",$t,Nn.group_settings,Re),$t.group_id=$t==null||((sn=$t.group_name)===null||sn===void 0||((Dn=sn.map(function(Ln){var cn,qn,Pn=(cn=Nn.group_settings)===null||cn===void 0||((qn=cn.filter(function(yr){return(yr==null?void 0:yr.group_name)===Ln}))===null||qn===void 0)?void 0:qn[0];return console.log("d:",Pn,Ln),Pn==null?void 0:Pn.group_id}))===null||Dn===void 0))?void 0:Dn.toString().split(","),$t})),kt.group_settings=Re,Ie.allow_late)if(Ie.unified_late){if(Ie.late_penalty===null||Ie.late_penalty===void 0||Ie.late_penalty<0||Ie.late_penalty>100)throw w.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ie.late_time)throw w.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var jn;lt=(jn=lt)===null||jn===void 0?void 0:jn.map(function($t){var sn,Dn;if($t.late_penalty===null||$t.late_penalty===void 0||$t.late_penalty<0||$t.late_penalty>100)throw w.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!$t.late_time)throw w.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!$t.group_name)throw w.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return $t.group_name=typeof($t==null?void 0:$t.group_name)=="string"?[$t==null?void 0:$t.group_name]:$t==null?void 0:$t.group_name,$t.group_id=$t==null||((sn=$t.group_name)===null||sn===void 0||((Dn=sn.map(function(Ln){var cn,qn,Pn=(cn=Nn.group_settings)===null||cn===void 0||((qn=cn.filter(function(yr){return(yr==null?void 0:yr.group_name)===Ln}))===null||qn===void 0)?void 0:qn[0];return Pn==null?void 0:Pn.group_id}))===null||Dn===void 0))?void 0:Dn.toString().split(","),$t}),kt.allow_late_settings=lt}if(Ie.evaluation_start){if(Ie.end_time&&X()(Ie.evaluation_start)<=X()(Ie.end_time))throw w.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4");if(Ie.late_time&&X()(Ie.evaluation_start)<=X()(Ie.late_time))throw w.b.error("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),new String("\u533F\u8BC4\u5F00\u542F\u65F6\u95F4\u8981\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u8865\u4EA4\u622A\u6B62\u65F6\u95F4")}Object.keys(kt).map(function($t){$t.indexOf("proportion")>-1&&(kt[$t]=kt[$t]/100)}),Tr({type:"shixunHomeworks/updateSetting",payload:kt}).then(function($t){$t.status===0&&(w.b.success("\u66F4\u65B0\u6210\u529F"),ur(!0),dn())})},En=function(Vt){return Vt&&Vt0?n.a.createElement(ae.a,{span:24,className:"mt10"},n.a.createElement(Q.a,{checked:Ie.unified_setting,disabled:An||!(mn!=null&&(kt=mn.homework_status)!==null&&kt!==void 0&&kt.includes("\u672A\u53D1\u5E03")),onChange:function(){var Dn;if(!(mn!=null&&(Dn=mn.homework_status)!==null&&Dn!==void 0&&Dn.includes("\u672A\u53D1\u5E03"))){w.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Ie.unified_setting=!Ie.unified_setting,Ie.unified_setting||(Ie.unified_late=!1),Pt(Object.assign({},Ie)),Re==""){mt([{}]);return}Ie.unified_setting&&(mt([]),At([{late_penalty:5}]))}},n.a.createElement("strong",null,"\u7EDF\u4E00\u8BBE\u7F6E")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\u5219\u6240\u6709\u5206\u73ED\u4F7F\u7528\u76F8\u540C\u7684\u53D1\u5E03\u8BBE\u7F6E\uFF0C\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u53EF\u4FEE\u6539\uFF1B\u5426\u5219\u5404\u4E2A\u5206\u73ED\u5141\u8BB8\u5355\u72EC\u8BBE\u7F6E)")):null),Ie.unified_setting&&n.a.createElement("div",null,n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u53D1\u5E03\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Be.a,{title:!(mn!=null&&(jn=mn.homework_status)!==null&&jn!==void 0&&jn.includes("\u672A\u53D1\u5E03"))&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539"},n.a.createElement(Rt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1,disabled:An||X()()>X()(Nn.publish_time),value:Ie.publish_time?X()(Ie.publish_time):"",disabledDate:En,onChange:function(Dn,Ln){Ie.publish_time=Ln,!Ie.end_time&&Ie.unified_setting&&(Ie.end_time=X()(Dn).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),Pt(Object.assign({},Ie))}}))),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:An,disabledDate:En,value:Ie.end_time?X()(Ie.end_time):"",onChange:function(Dn,Ln){Ie.end_time=Ln,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))),!Ie.unified_setting&&n.a.createElement(I.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},n.a.createElement(ae.a,{span:24},n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:10}),n.a.createElement(ae.a,{span:1}),n.a.createElement(ae.a,{span:9},n.a.createElement(I.a,{className:"c-grey-c "},n.a.createElement(ae.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),n.a.createElement(ae.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),n.a.createElement(ae.a,{span:4}))),Re&&Re.map(function(sn,Dn){var Ln,cn;return n.a.createElement(ae.a,{span:24,key:Dn},n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:10},n.a.createElement(I.a,{gutter:[8,16]},n.a.createElement(ae.a,null,"\u53D1\u5E03\u89C4\u5219 ",Dn+1),n.a.createElement(ae.a,{flex:"auto",style:{maxWidth:350}},n.a.createElement(on.a,{disabled:An||!(mn!=null&&(Ln=mn.homework_status)!==null&&Ln!==void 0&&Ln.includes("\u672A\u53D1\u5E03"))&&sn.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:sn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(Pn){Re[Dn].group_name=Pn,Re[Dn].group_id=sn.group_id;var yr=Object(fr.flattenDeep)(Re.map(function(gr){return gr.group_name})),zr=lt.map(function(gr){var Un=(gr==null?void 0:gr.group_name)||[];return Object(_.a)(Object(_.a)({},gr),{},{group_name:Object(fr.remove)(Un,function(Yn){return yr.includes(Yn)})})});At(zr),mt(Re.slice())}},Nn.group_settings&&Nn.group_settings.map(function(qn){if(!Re.map(function(Pn){return Pn.group_name}).toString().split(",").includes(String(qn.group_name)))return n.a.createElement(Br,{value:qn.group_name,key:qn.id},qn.group_name)}))))),n.a.createElement(ae.a,{span:1}),n.a.createElement(ae.a,{span:9},n.a.createElement(mr,{allowClear:!1,disabled:An||!(mn!=null&&(cn=mn.homework_status)!==null&&cn!==void 0&&cn.includes("\u672A\u53D1\u5E03"))&&sn.id&&[!0,!1],style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:En,showTime:{format:"HH:mm",defaultValue:[X()(Object(l.d)(),"HH:mm"),X()(Object(l.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:sn.publish_time&&[X()(sn.publish_time),X()(sn.end_time)],onChange:function(Pn,yr){Re[Dn].publish_time=yr[0],Re[Dn].end_time=yr[1],mt(Object(Ve.a)(Re))}})),!An&&n.a.createElement(ae.a,{span:4},Dn>0&&!sn.id&&n.a.createElement(Et.a,{onClick:function(){Re=Re.filter(function(Pn,yr){return Dn!==yr}),mt(Re.slice()),setTimeout(function(){return mt(Re.slice())},10)}}),n.a.createElement(xn.a,{className:"c-green ml20",onClick:function(){mt(Re.concat({}))}}))))})),n.a.createElement(I.a,null,n.a.createElement(ae.a,null,n.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E")),n.a.createElement(ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Q.a,{checked:Ie.allow_late,disabled:An,onChange:function(){Ie.allow_late=!Ie.allow_late,lt==""&&At([{late_penalty:5}]),Pt(Object.assign({},Ie))}},n.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u751F\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1)"))),(Ie==null?void 0:Ie.allow_late)&&n.a.createElement("div",{style:{marginLeft:22}},n.a.createElement("div",{className:"ml30 mt20"},n.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),n.a.createElement(m.a.Group,{disabled:An,value:Ie.unified_late,onChange:function(Dn){Ie.unified_late=Dn.target.value,lt==""&&!Dn.target.value&&At([{late_penalty:5}]),Pt(Object(_.a)({},Ie))}},(Ie==null?void 0:Ie.unified_setting)&&n.a.createElement(m.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(Nn==null||(($t=Nn.group_settings)===null||$t===void 0)?void 0:$t.length)&&n.a.createElement(m.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),Ie!=null&&Ie.unified_late?n.a.createElement(n.a.Fragment,null,n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u8865\u4EA4\u6263\u5206:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(R.a,{disabled:An||!Ie.allow_late,value:Ie.late_penalty,onChange:function(Dn){Ie.late_penalty=Dn,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,{flex:"1",className:"ml5"},"\u5206",n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1\u65F6\uFF0C\u5B66\u751F\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:An||!Ie.allow_late,value:Ie.late_time?X()(Ie.late_time):"",disabledDate:En,onChange:function(Dn,Ln){Ie.late_time=Ln,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):lt.map(function(sn,Dn){var Ln;return n.a.createElement(ae.a,{span:24,key:Dn},n.a.createElement(I.a,{className:"mt25"},n.a.createElement(ae.a,{style:{marginLeft:30}},n.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",Dn+1,"\uFF1A"),n.a.createElement(on.a,{disabled:An||!(mn!=null&&(Ln=mn.homework_status)!==null&&Ln!==void 0&&Ln.includes("\u672A\u53D1\u5E03"))&&sn.id,mode:"multiple",style:{width:306},value:typeof sn.group_name=="string"?[sn.group_name]:sn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(qn){lt[Dn].group_name=qn,lt[Dn].group_id=sn.group_id,At(lt.slice())}},Nn.group_settings&&Nn.group_settings.map(function(cn){if(Ie!=null&&Ie.unified_setting&&!lt.map(function(qn){return qn.group_name}).toString().split(",").includes(String(cn.group_name)))return n.a.createElement(Br,{value:cn.group_name,key:cn.id},cn.group_name);if(Re.map(function(qn){return qn.group_name}).toString().split(",").includes(String(cn.group_name))&&!lt.map(function(qn){return qn.group_name}).toString().split(",").includes(String(cn.group_name)))return n.a.createElement(Br,{value:cn.group_name,key:cn.id},cn.group_name)}))),n.a.createElement(ae.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),n.a.createElement(R.a,{min:0,max:100,disabled:An,defaultValue:sn.late_penalty,onChange:function(qn){lt[Dn].late_penalty=qn}})),n.a.createElement(ae.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),n.a.createElement(Rt.a,{disabled:An,style:{width:200},showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:En,format:"YYYY-MM-DD HH:mm",value:sn!=null&&sn.late_time?X()(sn.late_time):void 0,onChange:function(qn,Pn){lt[Dn].late_time=Pn,At(Object(Ve.a)(lt))}})),!An&&n.a.createElement(ae.a,{className:"ml20"},Dn>0&&!sn.id&&n.a.createElement(Et.a,{onClick:function(){lt=lt.filter(function(qn,Pn){return Dn!==Pn}),At(lt.slice()),setTimeout(function(){return At(lt.slice())},10)}}),n.a.createElement(xn.a,{className:"c-green ml20",onClick:function(){At(lt.concat({late_penalty:5}))}}))))})))},Kn=function(){var Vt;return n.a.createElement("div",{className:"bg-white pl30 pr30 pb30"},n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24},n.a.createElement(I.a,{align:"middle"},n.a.createElement(ae.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u533F\u8BC4\u8BBE\u7F6E")),n.a.createElement(ae.a,null,(Nn==null?void 0:Nn.can_edit)&&An&&n.a.createElement(P.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return ur(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),n.a.createElement(ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Q.a,{checked:Ie.anonymous_comment,disabled:An||((Vt=mn.homework_status)===null||Vt===void 0?void 0:Vt.includes("\u533F\u8BC4\u4E2D")),onChange:function(){Ie.anonymous_comment=!Ie.anonymous_comment,Ie.allow_late&&!Ie.evaluation_start?Ie.late_time&&Ie.late_time!=""&&(Ie.evaluation_start=X()(Ie.late_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Ie.evaluation_end=X()(Ie.late_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss")):Ie.unified_setting&&!Ie.evaluation_start&&(Ie.end_time&&Ie.end_time!=""&&(Ie.evaluation_start=X()(Ie.end_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Ie.evaluation_end=X()(Ie.end_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss"))),Ie.anonymous_comment&&(Ie.evaluation_num=parseInt(Ie.evaluation_num)?Ie.evaluation_num:3,Ie.absence_penalty=parseInt(Ie.absence_penalty)?Ie.absence_penalty:3),Pt(Object.assign({},Ie))}},n.a.createElement("strong",null,"\u542F\u7528\u533F\u8BC4")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u63D0\u4EA4\u4F5C\u54C1\u7684\u6570\u91CF\u22652\u4E2A\uFF0C\u53EF\u4EE5\u5F00\u542F\u533F\u8BC4\uFF1B\u4E3A\u786E\u4FDD\u516C\u5E73\uFF0C\u533F\u8BC4\u89C4\u5219\u786E\u5B9A\u540E\u4E0D\u53EF\u518D\u4FEE\u6539\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C!)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u5F00\u59CB\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:An||!Ie.anonymous_comment||Wt,value:Ie.evaluation_start?X()(Ie.evaluation_start):"",onChange:function(jn,$t){Ie.evaluation_start=$t,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u533F\u8BC4\u5F00\u59CB\u65F6\u95F4\u4E4B\u524D\u63D0\u4EA4\u4F5C\u54C1\u7684\u5B66\u751F\uFF0C\u53C2\u4E0E\u533F\u8BC4)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u7ED3\u675F\u65F6\u95F4:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(Rt.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:X()(Object(l.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:An||!Ie.anonymous_comment||Wt,value:Ie.evaluation_end?X()(Ie.evaluation_end):"",onChange:function(jn,$t){Ie.evaluation_end=$t,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u533F\u8BC4TA\u4EBA\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u533F\u8BC4\u6570\u91CF:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(R.a,{disabled:An||!Ie.anonymous_comment||Wt,value:Ie.evaluation_num,onChange:function(jn){Ie.evaluation_num=jn,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,{flex:"1",className:"ml5"},n.a.createElement("span",{className:"c-grey-c ml10"},"(\u672C\u5904\u586B\u5199\u6BCF\u4E2A\u5B66\u751F\u5C06\u88AB\u5206\u914D\u7684\u533F\u8BC4\u4F5C\u54C1\u6570\u91CF\u3002\u5982\u5168\u73ED\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u5C0F\u4E8E\u672C\u6570\u503C\uFF0C\u5219\u4EE5\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u4E3A\u51C6\u3002)"))),n.a.createElement(I.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ae.a,null,"\u7F3A\u8BC4\u6263\u5206:"),n.a.createElement(ae.a,{className:"ml5"},n.a.createElement(R.a,{min:0,disabled:An||!Ie.anonymous_comment||Wt,value:Ie.absence_penalty,onChange:function(jn){Ie.absence_penalty=jn,Pt(Object.assign({},Ie))}})),n.a.createElement(ae.a,{flex:"1",className:"ml5"},"\u5206",n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u7F3A\u8BC4\u65F6\uFF0C\u5176\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),Ie.anonymous_comment&&n.a.createElement(n.a.Fragment,null,n.a.createElement(I.a,null,n.a.createElement(ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Q.a,{checked:Ie.student_comment,disabled:An||X()(Ie.evaluation_start)"},n.a.createElement(K.a.Item,null,n.a.createElement(r.a,{to:"/classrooms/".concat(Re.course_id,"/group_homework")},Re.course_name)),n.a.createElement(K.a.Item,null,n.a.createElement(r.a,{to:"/classrooms/".concat(Re==null?void 0:Re.course_id,"/group_homework/").concat(Re!=null&&(un=Re.category)!==null&&un!==void 0&&un.main?"":Re==null||((wn=Re.category)===null||wn===void 0)?void 0:wn.category_id)},Re.category.category_name)),n.a.createElement(K.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[In.a.title,"mt20"].join(" ")},n.a.createElement(r.a,{to:"/classrooms/".concat(Re.course_id,"/group_homework")},n.a.createElement(s.a,{className:"font16 c-black"})),n.a.createElement("strong",{className:"font20 ml5"},Re.homework_name),n.a.createElement(l.k,{status:Re.homework_status}))),n.a.createElement("aside",{className:"mt30 relative ".concat(In.a.workListTabWrap)},n.a.createElement(z.a,{type:"card",activeKey:An,tabBarExtraContent:Dt(),onTabClick:function(At,Lt){if(parseInt(At)===2){if(!(Re!=null&&Re.view_answer)){w.b.info("\u672C\u6B21\u4F5C\u4E1A\u8001\u5E08\u672A\u516C\u5F00\u7B54\u6848");return}(Re==null?void 0:Re.time_status)>2||Object(x.d)()?ur(At):w.b.info("\u622A\u6B62\u4E4B\u540E\u7684\u8BD5\u5377\u624D\u80FD\u67E5\u770B\u7B54\u6848")}else ur(At)},className:In.a.tabs},Bt.map(function(lt,At){return n.a.createElement(z.a.TabPane,{tab:lt.name,key:lt.id},lt.compontent)})))),n.a.createElement($.a,null),n.a.createElement(M.a,null),n.a.createElement(ct,{type:"edit",onCallback:function(){return mt()}}),n.a.createElement(tn,{type:"edit",onCallback:function(){return mt()}}),n.a.createElement(dt,{cb:function(){ft(ke+1),ur("5")}}),n.a.createElement(tn,{type:"edit",onCallback:function(){return mt()}}),n.a.createElement(q.a,{ref:yt,hide:!0,name:"".concat(Re==null?void 0:Re.homework_name,"-\u4F5C\u54C1\u9644\u4EF6"),onOk:function(){return Qe(!1)}}))},rr=Ee.default=Object(o.a)(function(nn){var Qt=nn.user,un=nn.shixunHomeworks,wn=nn.loading,zn=nn.globalSetting;return{user:Qt,shixunHomeworks:un,globalSetting:zn,loading:wn.effects}})(Xt)},h78n:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return A});var ne=k("q1tI"),z=k.n(ne),N=k("TSYQ"),K=k.n(N),O={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},w=function(H){var V=H.map(function(){return Object(ne.useRef)()}),I=Object(ne.useRef)();return Object(ne.useEffect)(function(){var W=Date.now(),Q=!1;Object.keys(V).forEach(function(ie){var ae=V[ie].current;if(!ae)return;Q=!0;var xe=ae.style;xe.transitionDuration=".3s, .3s, .3s, .06s",I.current&&W-I.current<100&&(xe.transitionDuration="0s, 0s")}),Q&&(I.current=Date.now())}),[V]};function B(){return B=Object.assign||function(U){for(var H=1;HU.length)&&(H=U.length);for(var V=0,I=new Array(H);V=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,I))continue;V[I]=U[I]}}return V}function n(U,H){if(U==null)return{};var V={},I=Object.keys(U),W,Q;for(Q=0;Q=0)continue;V[W]=U[W]}return V}var p=function(H){var V=H.className,I=H.percent,W=H.prefixCls,Q=H.strokeColor,ie=H.strokeLinecap,ae=H.strokeWidth,xe=H.style,Ze=H.trailColor,Me=H.trailWidth,Be=H.transition,qe=f(H,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete qe.gapPosition;var Ve=Array.isArray(I)?I:[I],De=Array.isArray(Q)?Q:[Q],pe=w(Ve),se=C(pe,1),we=se[0],ve=ae/2,$e=100-ae/2,me="M ".concat(ie==="round"?ve:0,",").concat(ve,` L `).concat(ie==="round"?$e:100,",").concat(ve),X="0 0 100 ".concat(ae),G=0;return z.a.createElement("svg",B({className:K()("".concat(W,"-line"),V),viewBox:X,preserveAspectRatio:"none",style:xe},qe),z.a.createElement("path",{className:"".concat(W,"-line-trail"),d:me,strokeLinecap:ie,stroke:Ze,strokeWidth:Me||ae,fillOpacity:"0"}),Ve.map(function(Y,ue){var be={strokeDasharray:"".concat(Y,"px, 100px"),strokeDashoffset:"-".concat(G,"px"),transition:Be||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},We=De[ue]||De[De.length-1];return G+=Y,z.a.createElement("path",{key:ue,className:"".concat(W,"-line-path"),d:me,strokeLinecap:ie,stroke:We,strokeWidth:ae,fillOpacity:"0",ref:we[ue],style:be})}))};p.defaultProps=O;var o=p;function r(){return r=Object.assign||function(U){for(var H=1;HU.length)&&(H=U.length);for(var V=0,I=new Array(H);V=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,I))continue;V[I]=U[I]}}return V}function g(U,H){if(U==null)return{};var V={},I=Object.keys(U),W,Q;for(Q=0;Q=0)continue;V[W]=U[W]}return V}var m=0;function c(U){return+U.replace("%","")}function u(U){return Array.isArray(U)?U:[U]}function D(U,H,V,I){var W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Q=arguments.length>5?arguments[5]:void 0,ie=50-I/2,ae=0,xe=-ie,Ze=0,Me=-2*ie;switch(Q){case"left":ae=-ie,xe=0,Ze=2*ie,Me=0;break;case"right":ae=ie,xe=0,Ze=-2*ie,Me=0;break;case"bottom":xe=ie,Me=2*ie;break;default:}var Be="M 50,50 m ".concat(ae,",").concat(xe,` a `).concat(ie,",").concat(ie," 0 1 1 ").concat(Ze,",").concat(-Me,` - a `).concat(ie,",").concat(ie," 0 1 1 ").concat(-Ze,",").concat(Me),qe=Math.PI*2*ie,Ve={stroke:V,strokeDasharray:"".concat(H/100*(qe-W),"px ").concat(qe,"px"),strokeDashoffset:"-".concat(W/2+U/100*(qe-W),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Be,pathStyle:Ve}}var T=function(H){var V=H.prefixCls,I=H.strokeWidth,W=H.trailWidth,Q=H.gapDegree,ie=H.gapPosition,ae=H.trailColor,xe=H.strokeLinecap,Ze=H.style,Me=H.className,Be=H.strokeColor,qe=H.percent,Ve=R(H,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),De=Object(ne.useMemo)(function(){return m+=1,m},[]),pe=D(0,100,ae,I,Q,ie),se=pe.pathString,we=pe.pathStyle,ve=u(qe),$e=u(Be),me=$e.find(function(be){return Object.prototype.toString.call(be)==="[object Object]"}),X=w(ve),G=s(X,1),Y=G[0],ue=function(){var We=0;return ve.map(function(ze,Tt){var Ut=$e[Tt]||$e[$e.length-1],It=Object.prototype.toString.call(Ut)==="[object Object]"?"url(#".concat(V,"-gradient-").concat(De,")"):"",Nt=D(We,ze,Ut,I,Q,ie);return We+=ze,z.a.createElement("path",{key:Tt,className:"".concat(V,"-circle-path"),d:Nt.pathString,stroke:It,strokeLinecap:xe,strokeWidth:I,opacity:ze===0?0:1,fillOpacity:"0",style:Nt.pathStyle,ref:Y[Tt]})})};return z.a.createElement("svg",r({className:K()("".concat(V,"-circle"),Me),viewBox:"0 0 100 100",style:Ze},Ve),me&&z.a.createElement("defs",null,z.a.createElement("linearGradient",{id:"".concat(V,"-gradient-").concat(De),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(me).sort(function(be,We){return c(be)-c(We)}).map(function(be,We){return z.a.createElement("stop",{key:We,offset:be,stopColor:me[be]})}))),z.a.createElement("path",{className:"".concat(V,"-circle-trail"),d:se,stroke:ae,strokeLinecap:xe,strokeWidth:W||I,fillOpacity:"0",style:we}),ue().reverse())};T.defaultProps=O;var A=T,j={Line:o,Circle:A}},hW8S:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return K}),k.d(Ee,"c",function(){return O}),k.d(Ee,"b",function(){return w});var ne=k("VTBJ"),z=k("Ff2n"),N=k("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function O(B){var C=B.expandable,P=Object(z.a)(B,["expandable"]);return"expandable"in B?Object(ne.a)(Object(ne.a)({},P),C):P}function w(B){return Object.keys(B).reduce(function(C,P){return(P.substr(0,5)==="data-"||P.substr(0,5)==="aria-")&&(C[P]=B[P]),C},{})}},k3GJ:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return ua});var ne=k("rePB"),z=k("ODXe"),N=k("Ff2n"),K=k("VTBJ"),O=k("q1tI"),w=k("TSYQ"),B=k.n(w),C=k("Zm9Q"),P=k("6cGi"),_=k("KQm4"),d=k("xEkU"),v=k.n(d),b=k("t23M");function f(_e){var Ye=Object(O.useRef)(),tt=Object(O.useRef)(!1);function Ae(){for(var le=arguments.length,ye=new Array(le),fe=0;feut&&(Zt=ut-Bt),Object(O.useMemo)(function(){if(!ye.length)return[0,0];for(var yn=ye.length,Mn=yn,qn=0;qnKe+Zt){Mn=qn-1;break}}for(var Er=0,hr=yn-1;hr>=0;hr-=1){var ur=_e.get(ye[hr].key)||x;if(ur[rt]1&&arguments[1]!==void 0?arguments[1]:!1,Ae=Ye&&typeof Ye.getBoundingClientRect=="function"&&Ye.getBoundingClientRect().width;if(Ae){if(tt){var le=getComputedStyle(Ye),ye=le.marginLeft,fe=le.marginRight;Ae+=+ye.replace("px","")+ +fe.replace("px","")}Ae=+Ae.toFixed(6)}return Ae||0},We=function(Ye,tt,Ae){Ye&&Object(U.a)(Ye.style)==="object"&&(Ye.style[tt]=Ae)},ze=function(){return ve.any},Tt=k("bdgK"),Ut=k("i8i4"),It=k.n(Ut),Nt=k("wgJM"),qt=k("l4aY"),hn=k("m+aA"),nt=k("c+Xe"),He=k("zT1h"),pt=k("QC+M");function kt(_e,Ye,tt){return tt?_e[0]===Ye[0]:_e[0]===Ye[0]&&_e[1]===Ye[1]}function st(_e,Ye,tt){var Ae=_e[Ye]||{};return Object(K.a)(Object(K.a)({},Ae),tt)}function Et(_e,Ye,tt,Ae){for(var le=tt.points,ye=Object.keys(_e),fe=0;fe1&&arguments[1]!==void 0?arguments[1]:2;Ye();var ye=Object(Nt.a)(function(){le<=1?Ae({isCanceled:function(){return ye!==_e.current}}):tt(Ae,le-1)});_e.current=ye}return O.useEffect(function(){return function(){Ye()}},[]),[tt,Ye]},or=[dt,tn,nn,it],fr=!1,ar=!0;function Sn(_e){return _e===nn||_e===it}var Hr=function(_e,Ye){var tt=O.useState(Ct),Ae=Object(z.a)(tt,2),le=Ae[0],ye=Ae[1],fe=En(),Pe=Object(z.a)(fe,2),je=Pe[0],rt=Pe[1];function Ke(){ye(dt)}return sn(function(){if(le!==Ct&&le!==it){var ut=or.indexOf(le),St=or[ut+1],Bt=Ye(le);Bt===fr?ye(St):je(function(Zt){function yn(){if(Zt.isCanceled())return;ye(St)}Bt===!0?yn():Promise.resolve(Bt).then(yn)})}},[_e,le]),O.useEffect(function(){return function(){rt()}},[]),[Ke,le]},ea=function(_e){var Ye=Object(O.useRef)(),tt=Object(O.useRef)(_e);tt.current=_e;var Ae=O.useCallback(function(fe){tt.current(fe)},[]);function le(fe){fe&&(fe.removeEventListener(Kt,Ae),fe.removeEventListener(on,Ae))}function ye(fe){Ye.current&&Ye.current!==fe&&le(Ye.current),fe&&fe!==Ye.current&&(fe.addEventListener(Kt,Ae),fe.addEventListener(on,Ae),Ye.current=fe)}return O.useEffect(function(){return function(){le(Ye.current)}},[]),[ye,le]};function Ir(_e,Ye,tt,Ae){var le=Ae.motionEnter,ye=le===void 0?!0:le,fe=Ae.motionAppear,Pe=fe===void 0?!0:fe,je=Ae.motionLeave,rt=je===void 0?!0:je,Ke=Ae.motionDeadline,ut=Ae.motionLeaveImmediately,St=Ae.onAppearPrepare,Bt=Ae.onEnterPrepare,Zt=Ae.onLeavePrepare,yn=Ae.onAppearStart,Mn=Ae.onEnterStart,qn=Ae.onLeaveStart,nr=Ae.onAppearActive,Er=Ae.onEnterActive,hr=Ae.onLeaveActive,ur=Ae.onAppearEnd,gr=Ae.onEnterEnd,Rr=Ae.onLeaveEnd,rr=Ae.onVisibleChanged,Ur=vt(),Jn=Object(z.a)(Ur,2),rn=Jn[0],wn=Jn[1],xr=vt(xt),vn=Object(z.a)(xr,2),Ft=vn[0],Tn=vn[1],br=vt(null),Pn=Object(z.a)(br,2),Lr=Pn[0],Wr=Pn[1],Nr=Object(O.useRef)(!1),Mr=Object(O.useRef)(null),cr=Object(O.useRef)(!1),da=Object(O.useRef)(null);function Qa(){var qr=tt();return qr||da.current}var Na=Object(O.useRef)(!1);function _a(qr){var Xr=Qa();if(qr&&!qr.deadline&&qr.target!==Xr)return;var ba;Ft===ct&&Na.current?ba=ur==null?void 0:ur(Xr,qr):Ft===ge&&Na.current?ba=gr==null?void 0:gr(Xr,qr):Ft===Ne&&Na.current&&(ba=Rr==null?void 0:Rr(Xr,qr)),ba!==!1&&!cr.current&&(Tn(xt),Wr(null))}var na=ea(_a),Yr=Object(z.a)(na,1),Qr=Yr[0],ra=O.useMemo(function(){var qr,Xr,ba;switch(Ft){case"appear":return qr={},Object(ne.a)(qr,dt,St),Object(ne.a)(qr,tn,yn),Object(ne.a)(qr,nn,nr),qr;case"enter":return Xr={},Object(ne.a)(Xr,dt,Bt),Object(ne.a)(Xr,tn,Mn),Object(ne.a)(Xr,nn,Er),Xr;case"leave":return ba={},Object(ne.a)(ba,dt,Zt),Object(ne.a)(ba,tn,qn),Object(ne.a)(ba,nn,hr),ba;default:return{}}},[Ft]),ja=Hr(Ft,function(qr){if(qr===dt){var Xr=ra[dt];return Xr?Xr(Qa()):fr}if($r in ra){var ba;Wr(((ba=ra[$r])===null||ba===void 0?void 0:ba.call(ra,Qa(),null))||null)}return $r===nn&&(Qr(Qa()),Ke>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){_a({deadline:!0})},Ke))),ar}),fi=Object(z.a)(ja,2),si=fi[0],$r=fi[1],Ja=Sn($r);Na.current=Ja,sn(function(){wn(Ye);var qr=Nr.current;if(Nr.current=!0,!_e)return;var Xr;!qr&&Ye&&Pe&&(Xr=ct),qr&&Ye&&ye&&(Xr=ge),(qr&&!Ye&&rt||!qr&&ut&&!Ye&&rt)&&(Xr=Ne),Xr&&(Tn(Xr),si())},[Ye]),Object(O.useEffect)(function(){(Ft===ct&&!Pe||Ft===ge&&!ye||Ft===Ne&&!rt)&&Tn(xt)},[Pe,ye,rt]),Object(O.useEffect)(function(){return function(){clearTimeout(Mr.current),cr.current=!0}},[]),Object(O.useEffect)(function(){rn!==void 0&&Ft===xt&&(rr==null||rr(rn))},[rn,Ft]);var Za=Lr;return ra[dt]&&$r===tn&&(Za=Object(K.a)({transition:"none"},Za)),[Ft,$r,Za,rn!=null?rn:Ye]}var pr=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){return Object(L.a)(this,tt),Ye.apply(this,arguments)}return Object(R.a)(tt,[{key:"render",value:function(){return this.props.children}}]),tt}(O.Component),Br=pr;function Jr(_e){var Ye=_e;Object(U.a)(_e)==="object"&&(Ye=_e.transitionSupport);function tt(le){return!!(le.motionName&&Ye)}var Ae=O.forwardRef(function(le,ye){var fe=le.visible,Pe=fe===void 0?!0:fe,je=le.removeOnLeave,rt=je===void 0?!0:je,Ke=le.forceRender,ut=le.children,St=le.motionName,Bt=le.leavedClassName,Zt=le.eventProps,yn=tt(le),Mn=Object(O.useRef)(),qn=Object(O.useRef)();function nr(){try{return Object(hn.a)(Mn.current||qn.current)}catch(Tn){return null}}var Er=Ir(yn,Pe,nr,le),hr=Object(z.a)(Er,4),ur=hr[0],gr=hr[1],Rr=hr[2],rr=hr[3],Ur=O.useRef(rr);rr&&(Ur.current=!0);var Jn=Object(O.useRef)(ye);Jn.current=ye;var rn=O.useCallback(function(Tn){Mn.current=Tn,Object(nt.b)(Jn.current,Tn)},[]),wn,xr=Object(K.a)(Object(K.a)({},Zt),{},{visible:Pe});if(!ut)wn=null;else if(ur===xt||!tt(le))rr?wn=ut(Object(K.a)({},xr),rn):!rt&&Ur.current?wn=ut(Object(K.a)(Object(K.a)({},xr),{},{className:Bt}),rn):Ke?wn=ut(Object(K.a)(Object(K.a)({},xr),{},{style:{display:"none"}}),rn):wn=null;else{var vn,Ft;gr===dt?Ft="prepare":Sn(gr)?Ft="active":gr===tn&&(Ft="start"),wn=ut(Object(K.a)(Object(K.a)({},xr),{},{className:B()(bt(St,ur),(vn={},Object(ne.a)(vn,bt(St,"".concat(ur,"-").concat(Ft)),Ft),Object(ne.a)(vn,St,typeof St=="string"),vn)),style:Rr}),rn)}return O.createElement(Br,{ref:qn},wn)});return Ae.displayName="CSSMotion",Ae}var la=Jr(pn),jt="add",On="keep",mr="remove",Dr="removed";function Sr(_e){var Ye;return _e&&Object(U.a)(_e)==="object"&&"key"in _e?Ye=_e:Ye={key:_e},Object(K.a)(Object(K.a)({},Ye),{},{key:String(Ye.key)})}function Cr(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return _e.map(Sr)}function J(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tt=[],Ae=0,le=Ye.length,ye=Cr(_e),fe=Cr(Ye);ye.forEach(function(rt){for(var Ke=!1,ut=Ae;ut1});return je.forEach(function(rt){tt=tt.filter(function(Ke){var ut=Ke.key,St=Ke.status;return ut!==rt||St!==mr}),tt.forEach(function(Ke){Ke.key===rt&&(Ke.status=On)})}),tt}var S=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function M(_e){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:la,tt=function(Ae){Object(m.a)(ye,Ae);var le=Object(c.a)(ye);function ye(){var fe;return Object(L.a)(this,ye),fe=le.apply(this,arguments),fe.state={keyEntities:[]},fe.removeKey=function(Pe){fe.setState(function(je){var rt=je.keyEntities;return{keyEntities:rt.map(function(Ke){return Ke.key!==Pe?Ke:Object(K.a)(Object(K.a)({},Ke),{},{status:Dr})})}})},fe}return Object(R.a)(ye,[{key:"render",value:function(){var Pe=this,je=this.state.keyEntities,rt=this.props,Ke=rt.component,ut=rt.children,St=rt.onVisibleChanged,Bt=Object(N.a)(rt,["component","children","onVisibleChanged"]),Zt=Ke||O.Fragment,yn={};return S.forEach(function(Mn){yn[Mn]=Bt[Mn],delete Bt[Mn]}),delete Bt.keys,O.createElement(Zt,Bt,je.map(function(Mn){var qn=Mn.status,nr=Object(N.a)(Mn,["status"]),Er=qn===jt||qn===On;return O.createElement(Ye,Object(y.a)({},yn,{key:nr.key,visible:Er,eventProps:nr,onVisibleChanged:function(ur){St==null||St(ur,{key:nr.key}),ur||Pe.removeKey(nr.key)}}),ut)}))}}],[{key:"getDerivedStateFromProps",value:function(Pe,je){var rt=Pe.keys,Ke=je.keyEntities,ut=Cr(rt),St=J(Ke,ut);return{keyEntities:St.filter(function(Bt){var Zt=Ke.find(function(yn){var Mn=yn.key;return Bt.key===Mn});return!(Zt&&Zt.status===Dr&&Bt.status===mr)})}}}]),ye}(O.Component);return tt.defaultProps={component:"div"},tt}var $=M(pn),te=la;function q(_e){var Ye=_e.prefixCls,tt=_e.motion,Ae=_e.animation,le=_e.transitionName;return tt||(Ae?{motionName:"".concat(Ye,"-").concat(Ae)}:le?{motionName:le}:null)}function Xe(_e){var Ye=_e.prefixCls,tt=_e.visible,Ae=_e.zIndex,le=_e.mask,ye=_e.maskMotion,fe=_e.maskAnimation,Pe=_e.maskTransitionName;if(!le)return null;var je={};return(ye||Pe||fe)&&(je=Object(K.a)({motionAppear:!0},q({motion:ye,prefixCls:Ye,transitionName:Pe,animation:fe}))),O.createElement(te,Object(y.a)({},je,{visible:tt,removeOnLeave:!0}),function(rt){var Ke=rt.className;return O.createElement("div",{style:{zIndex:Ae},className:B()("".concat(Ye,"-mask"),Ke)})})}var zt=k("9mu1"),gn=k("o0o1"),Nn=k.n(gn),Yt=k("HaE+"),tr=["measure","align",null,"motion"],an=function(_e,Ye){var tt=Object(O.useState)(null),Ae=Object(z.a)(tt,2),le=Ae[0],ye=Ae[1],fe=Object(O.useRef)(),Pe=Object(O.useRef)(!1);function je(ut){Pe.current||ye(ut)}function rt(){Nt.a.cancel(fe.current)}function Ke(ut){rt(),fe.current=Object(Nt.a)(function(){je(function(St){switch(le){case"align":return"motion";case"motion":return"stable";default:}return St}),ut==null||ut()})}return Object(O.useEffect)(function(){je("measure")},[_e]),Object(O.useEffect)(function(){switch(le){case"measure":Ye();break;default:}le&&(fe.current=Object(Nt.a)(Object(Yt.a)(Nn.a.mark(function ut(){var St,Bt;return Nn.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:St=tr.indexOf(le),Bt=tr[St+1],Bt&&St!==-1&&je(Bt);case 3:case"end":return yn.stop()}},ut)}))))},[le]),Object(O.useEffect)(function(){return function(){Pe.current=!0,rt()}},[]),[le,Ke]},Jt=function(_e){var Ye=O.useState({width:0,height:0}),tt=Object(z.a)(Ye,2),Ae=tt[0],le=tt[1];function ye(Pe){le({width:Pe.offsetWidth,height:Pe.offsetHeight})}var fe=O.useMemo(function(){var Pe={};if(_e){var je=Ae.width,rt=Ae.height;_e.indexOf("height")!==-1&&rt?Pe.height=rt:_e.indexOf("minHeight")!==-1&&rt&&(Pe.minHeight=rt),_e.indexOf("width")!==-1&&je?Pe.width=je:_e.indexOf("minWidth")!==-1&&je&&(Pe.minWidth=je)}return Pe},[_e,Ae]);return[fe,ye]},cn=O.forwardRef(function(_e,Ye){var tt=_e.visible,Ae=_e.prefixCls,le=_e.className,ye=_e.style,fe=_e.children,Pe=_e.zIndex,je=_e.stretch,rt=_e.destroyPopupOnHide,Ke=_e.forceRender,ut=_e.align,St=_e.point,Bt=_e.getRootDomNode,Zt=_e.getClassNameFromAlign,yn=_e.onAlign,Mn=_e.onMouseEnter,qn=_e.onMouseLeave,nr=_e.onMouseDown,Er=_e.onTouchStart,hr=Object(O.useRef)(),ur=Object(O.useRef)(),gr=Object(O.useState)(),Rr=Object(z.a)(gr,2),rr=Rr[0],Ur=Rr[1],Jn=Jt(je),rn=Object(z.a)(Jn,2),wn=rn[0],xr=rn[1];function vn(){je&&xr(Bt())}var Ft=an(tt,vn),Tn=Object(z.a)(Ft,2),br=Tn[0],Pn=Tn[1],Lr=Object(O.useRef)();function Wr(){return St||Bt}function Nr(){var na;(na=hr.current)===null||na===void 0||na.forceAlign()}function Mr(na,Yr){var Qr=Zt(Yr);rr!==Qr&&Ur(Qr),br==="align"&&(rr!==Qr?Promise.resolve().then(function(){Nr()}):Pn(function(){var ra;(ra=Lr.current)===null||ra===void 0||ra.call(Lr)}),yn==null||yn(na,Yr))}var cr=Object(K.a)({},q(_e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(na){var Yr=cr[na];cr[na]=function(Qr,ra){return Pn(),Yr==null?void 0:Yr(Qr,ra)}});function da(){return new Promise(function(na){Lr.current=na})}O.useEffect(function(){!cr.motionName&&br==="motion"&&Pn()},[cr.motionName,br]),O.useImperativeHandle(Ye,function(){return{forceAlign:Nr,getElement:function(){return ur.current}}});var Qa=Object(K.a)(Object(K.a)({},wn),{},{zIndex:Pe,opacity:br==="motion"||br==="stable"||!tt?void 0:0,pointerEvents:br==="stable"?void 0:"none"},ye),Na=!0;(ut==null?void 0:ut.points)&&(br==="align"||br==="stable")&&(Na=!1);var _a=fe;return O.Children.count(fe)>1&&(_a=O.createElement("div",{className:"".concat(Ae,"-content")},fe)),O.createElement(te,Object(y.a)({visible:tt,ref:ur,leavedClassName:"".concat(Ae,"-hidden")},cr,{onAppearPrepare:da,onEnterPrepare:da,removeOnLeave:rt,forceRender:Ke}),function(na,Yr){var Qr=na.className,ra=na.style,ja=B()(Ae,le,rr,Qr);return O.createElement(zt.a,{target:Wr(),key:"popup",ref:hr,monitorWindowResize:!0,disabled:Na,align:ut,onAlign:Mr},O.createElement("div",{ref:Yr,className:ja,onMouseEnter:Mn,onMouseLeave:qn,onMouseDownCapture:nr,onTouchStartCapture:Er,style:Object(K.a)(Object(K.a)({},ra),Qa)},_a))})});cn.displayName="PopupInner";var _n=cn,zn=O.forwardRef(function(_e,Ye){var tt=_e.prefixCls,Ae=_e.visible,le=_e.zIndex,ye=_e.children,fe=_e.mobile;fe=fe===void 0?{}:fe;var Pe=fe.popupClassName,je=fe.popupStyle,rt=fe.popupMotion,Ke=rt===void 0?{}:rt,ut=fe.popupRender,St=O.useRef();O.useImperativeHandle(Ye,function(){return{forceAlign:function(){},getElement:function(){return St.current}}});var Bt=Object(K.a)({zIndex:le},je),Zt=ye;return O.Children.count(ye)>1&&(Zt=O.createElement("div",{className:"".concat(tt,"-content")},ye)),ut&&(Zt=ut(Zt)),O.createElement(te,Object(y.a)({visible:Ae,ref:St,removeOnLeave:!0},Ke),function(yn,Mn){var qn=yn.className,nr=yn.style,Er=B()(tt,Pe,qn);return O.createElement("div",{ref:Mn,className:Er,style:Object(K.a)(Object(K.a)({},nr),Bt)},Zt)})});zn.displayName="MobilePopupInner";var lr=zn,ir=["visible","mobile"],Tr=O.forwardRef(function(_e,Ye){var tt=_e.visible,Ae=_e.mobile,le=Object(N.a)(_e,ir),ye=Object(O.useState)(tt),fe=Object(z.a)(ye,2),Pe=fe[0],je=fe[1],rt=Object(O.useState)(!1),Ke=Object(z.a)(rt,2),ut=Ke[0],St=Ke[1],Bt=Object(K.a)(Object(K.a)({},le),{},{visible:Pe});Object(O.useEffect)(function(){je(tt),tt&&Ae&&St(Fe())},[tt,Ae]);var Zt=ut?O.createElement(lr,Object(y.a)({},Bt,{mobile:Ae,ref:Ye})):O.createElement(_n,Object(y.a)({},Bt,{ref:Ye}));return O.createElement("div",null,O.createElement(Xe,Bt),Zt)});Tr.displayName="Popup";var $n=Tr,Vn=O.createContext(null),jn=Vn;function mn(){}function Ar(){return""}function Pr(_e){return _e?_e.ownerDocument:window.document}var Dn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function sr(_e){var Ye=function(tt){Object(m.a)(le,tt);var Ae=Object(c.a)(le);function le(ye){var fe;Object(L.a)(this,le),fe=Ae.call(this,ye),fe.popupRef=O.createRef(),fe.triggerRef=O.createRef(),fe.attachId=void 0,fe.clickOutsideHandler=void 0,fe.touchOutsideHandler=void 0,fe.contextMenuOutsideHandler1=void 0,fe.contextMenuOutsideHandler2=void 0,fe.mouseDownTimeout=void 0,fe.focusTime=void 0,fe.preClickTime=void 0,fe.preTouchTime=void 0,fe.delayTimer=void 0,fe.hasPopupMouseDown=void 0,fe.onMouseEnter=function(je){var rt=fe.props.mouseEnterDelay;fe.fireEvents("onMouseEnter",je),fe.delaySetPopupVisible(!0,rt,rt?null:je)},fe.onMouseMove=function(je){fe.fireEvents("onMouseMove",je),fe.setPoint(je)},fe.onMouseLeave=function(je){fe.fireEvents("onMouseLeave",je),fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)},fe.onPopupMouseEnter=function(){fe.clearDelayTimer()},fe.onPopupMouseLeave=function(je){var rt;if(je.relatedTarget&&!je.relatedTarget.setTimeout&&Object(qt.a)((rt=fe.popupRef.current)===null||rt===void 0?void 0:rt.getElement(),je.relatedTarget))return;fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)},fe.onFocus=function(je){fe.fireEvents("onFocus",je),fe.clearDelayTimer(),fe.isFocusToShow()&&(fe.focusTime=Date.now(),fe.delaySetPopupVisible(!0,fe.props.focusDelay))},fe.onMouseDown=function(je){fe.fireEvents("onMouseDown",je),fe.preClickTime=Date.now()},fe.onTouchStart=function(je){fe.fireEvents("onTouchStart",je),fe.preTouchTime=Date.now()},fe.onBlur=function(je){fe.fireEvents("onBlur",je),fe.clearDelayTimer(),fe.isBlurToHide()&&fe.delaySetPopupVisible(!1,fe.props.blurDelay)},fe.onContextMenu=function(je){je.preventDefault(),fe.fireEvents("onContextMenu",je),fe.setPopupVisible(!0,je)},fe.onContextMenuClose=function(){fe.isContextMenuToShow()&&fe.close()},fe.onClick=function(je){if(fe.fireEvents("onClick",je),fe.focusTime){var rt;if(fe.preClickTime&&fe.preTouchTime?rt=Math.min(fe.preClickTime,fe.preTouchTime):fe.preClickTime?rt=fe.preClickTime:fe.preTouchTime&&(rt=fe.preTouchTime),Math.abs(rt-fe.focusTime)<20)return;fe.focusTime=0}fe.preClickTime=0,fe.preTouchTime=0,fe.isClickToShow()&&(fe.isClickToHide()||fe.isBlurToHide())&&je&&je.preventDefault&&je.preventDefault();var Ke=!fe.state.popupVisible;(fe.isClickToHide()&&!Ke||Ke&&fe.isClickToShow())&&fe.setPopupVisible(!fe.state.popupVisible,je)},fe.onPopupMouseDown=function(){if(fe.hasPopupMouseDown=!0,clearTimeout(fe.mouseDownTimeout),fe.mouseDownTimeout=window.setTimeout(function(){fe.hasPopupMouseDown=!1},0),fe.context){var je;(je=fe.context).onPopupMouseDown.apply(je,arguments)}},fe.onDocumentClick=function(je){if(fe.props.mask&&!fe.props.maskClosable)return;var rt=je.target,Ke=fe.getRootDomNode(),ut=fe.getPopupDomNode();(!Object(qt.a)(Ke,rt)||fe.isContextMenuOnly())&&!Object(qt.a)(ut,rt)&&!fe.hasPopupMouseDown&&fe.close()},fe.getRootDomNode=function(){var je=fe.props.getTriggerDOMNode;if(je)return je(fe.triggerRef.current);try{var rt=Object(hn.a)(fe.triggerRef.current);if(rt)return rt}catch(Ke){}return It.a.findDOMNode(Object(g.a)(fe))},fe.getPopupClassNameFromAlign=function(je){var rt=[],Ke=fe.props,ut=Ke.popupPlacement,St=Ke.builtinPlacements,Bt=Ke.prefixCls,Zt=Ke.alignPoint,yn=Ke.getPopupClassNameFromAlign;return ut&&St&&rt.push(Et(St,Bt,je,Zt)),yn&&rt.push(yn(je)),rt.join(" ")},fe.getComponent=function(){var je=fe.props,rt=je.prefixCls,Ke=je.destroyPopupOnHide,ut=je.popupClassName,St=je.onPopupAlign,Bt=je.popupMotion,Zt=je.popupAnimation,yn=je.popupTransitionName,Mn=je.popupStyle,qn=je.mask,nr=je.maskAnimation,Er=je.maskTransitionName,hr=je.maskMotion,ur=je.zIndex,gr=je.popup,Rr=je.stretch,rr=je.alignPoint,Ur=je.mobile,Jn=je.forceRender,rn=fe.state,wn=rn.popupVisible,xr=rn.point,vn=fe.getPopupAlign(),Ft={};return fe.isMouseEnterToShow()&&(Ft.onMouseEnter=fe.onPopupMouseEnter),fe.isMouseLeaveToHide()&&(Ft.onMouseLeave=fe.onPopupMouseLeave),Ft.onMouseDown=fe.onPopupMouseDown,Ft.onTouchStart=fe.onPopupMouseDown,O.createElement($n,Object(y.a)({prefixCls:rt,destroyPopupOnHide:Ke,visible:wn,point:rr&&xr,className:ut,align:vn,onAlign:St,animation:Zt,getClassNameFromAlign:fe.getPopupClassNameFromAlign},Ft,{stretch:Rr,getRootDomNode:fe.getRootDomNode,style:Mn,mask:qn,zIndex:ur,transitionName:yn,maskAnimation:nr,maskTransitionName:Er,maskMotion:hr,ref:fe.popupRef,motion:Bt,mobile:Ur,forceRender:Jn}),typeof gr=="function"?gr():gr)},fe.attachParent=function(je){Nt.a.cancel(fe.attachId);var rt=fe.props,Ke=rt.getPopupContainer,ut=rt.getDocument,St=fe.getRootDomNode(),Bt;Ke?(St||Ke.length===0)&&(Bt=Ke(St)):Bt=ut(fe.getRootDomNode()).body,Bt?Bt.appendChild(je):fe.attachId=Object(Nt.a)(function(){fe.attachParent(je)})},fe.getContainer=function(){var je=fe.props.getDocument,rt=je(fe.getRootDomNode()).createElement("div");return rt.style.position="absolute",rt.style.top="0",rt.style.left="0",rt.style.width="100%",fe.attachParent(rt),rt},fe.setPoint=function(je){var rt=fe.props.alignPoint;if(!rt||!je)return;fe.setState({point:{pageX:je.pageX,pageY:je.pageY}})},fe.handlePortalUpdate=function(){fe.state.prevPopupVisible!==fe.state.popupVisible&&fe.props.afterPopupVisibleChange(fe.state.popupVisible)},fe.triggerContextValue={onPopupMouseDown:fe.onPopupMouseDown};var Pe;return"popupVisible"in ye?Pe=!!ye.popupVisible:Pe=!!ye.defaultPopupVisible,fe.state={prevPopupVisible:Pe,popupVisible:Pe},Dn.forEach(function(je){fe["fire".concat(je)]=function(rt){fe.fireEvents(je,rt)}}),fe}return Object(R.a)(le,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var fe=this.props,Pe=this.state;if(Pe.popupVisible){var je;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(je=fe.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(He.a)(je,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(je=je||fe.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(He.a)(je,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(je=je||fe.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(He.a)(je,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(He.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Nt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var fe;return((fe=this.popupRef.current)===null||fe===void 0?void 0:fe.getElement())||null}},{key:"getPopupAlign",value:function(){var fe=this.props,Pe=fe.popupPlacement,je=fe.popupAlign,rt=fe.builtinPlacements;return Pe&&rt?st(rt,Pe,je):je}},{key:"setPopupVisible",value:function(fe,Pe){var je=this.props.alignPoint,rt=this.state.popupVisible;this.clearDelayTimer(),rt!==fe&&("popupVisible"in this.props||this.setState({popupVisible:fe,prevPopupVisible:rt}),this.props.onPopupVisibleChange(fe)),je&&Pe&&fe&&this.setPoint(Pe)}},{key:"delaySetPopupVisible",value:function(fe,Pe,je){var rt=this,Ke=Pe*1e3;if(this.clearDelayTimer(),Ke){var ut=je?{pageX:je.pageX,pageY:je.pageY}:null;this.delayTimer=window.setTimeout(function(){rt.setPopupVisible(fe,ut),rt.clearDelayTimer()},Ke)}else this.setPopupVisible(fe,je)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(fe){var Pe=this.props.children.props,je=this.props;return Pe[fe]&&je[fe]?this["fire".concat(fe)]:Pe[fe]||je[fe]}},{key:"isClickToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("click")!==-1||je.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var fe=this.props.action;return fe==="contextMenu"||fe.length===1&&fe[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("contextMenu")!==-1||je.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var fe=this.props,Pe=fe.action,je=fe.hideAction;return Pe.indexOf("click")!==-1||je.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("hover")!==-1||je.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var fe=this.props,Pe=fe.action,je=fe.hideAction;return Pe.indexOf("hover")!==-1||je.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("focus")!==-1||je.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var fe=this.props,Pe=fe.action,je=fe.hideAction;return Pe.indexOf("focus")!==-1||je.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var fe;(fe=this.popupRef.current)===null||fe===void 0||fe.forceAlign()}}},{key:"fireEvents",value:function(fe,Pe){var je=this.props.children.props[fe];je&&je(Pe);var rt=this.props[fe];rt&&rt(Pe)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var fe=this.state.popupVisible,Pe=this.props,je=Pe.children,rt=Pe.forceRender,Ke=Pe.alignPoint,ut=Pe.className,St=Pe.autoDestroy,Bt=O.Children.only(je),Zt={key:"trigger"};this.isContextMenuToShow()?Zt.onContextMenu=this.onContextMenu:Zt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Zt.onClick=this.onClick,Zt.onMouseDown=this.onMouseDown,Zt.onTouchStart=this.onTouchStart):(Zt.onClick=this.createTwoChains("onClick"),Zt.onMouseDown=this.createTwoChains("onMouseDown"),Zt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Zt.onMouseEnter=this.onMouseEnter,Ke&&(Zt.onMouseMove=this.onMouseMove)):Zt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Zt.onMouseLeave=this.onMouseLeave:Zt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Zt.onFocus=this.onFocus,Zt.onBlur=this.onBlur):(Zt.onFocus=this.createTwoChains("onFocus"),Zt.onBlur=this.createTwoChains("onBlur"));var yn=B()(Bt&&Bt.props&&Bt.props.className,ut);yn&&(Zt.className=yn);var Mn=Object(K.a)({},Zt);Object(nt.c)(Bt)&&(Mn.ref=Object(nt.a)(this.triggerRef,Bt.ref));var qn=O.cloneElement(Bt,Mn),nr;return(fe||this.popupRef.current||rt)&&(nr=O.createElement(_e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!fe&&St&&(nr=null),O.createElement(jn.Provider,{value:this.triggerContextValue},qn,nr)}}],[{key:"getDerivedStateFromProps",value:function(fe,Pe){var je=fe.popupVisible,rt={};return je!==void 0&&Pe.popupVisible!==je&&(rt.popupVisible=je,rt.prevPopupVisible=Pe.popupVisible),rt}}]),le}(O.Component);return Ye.contextType=jn,Ye.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ar,getDocument:Pr,onPopupVisibleChange:mn,afterPopupVisibleChange:mn,onPopupAlign:mn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ye}var Or=sr(pt.a),ee={adjustX:1,adjustY:1},Te={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},Qe={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},Ge=Te,ot=0,ke={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ft=function(Ye,tt,Ae){var le=X(tt),ye=Ye.getState();Ye.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},ye.defaultActiveFirst),{},Object(ne.a)({},le,Ae))})},yt=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(Ae){var le;Object(L.a)(this,tt),le=Ye.call(this,Ae),le.onDestroy=function(Ke){le.props.onDestroy(Ke)},le.onKeyDown=function(Ke){var ut=Ke.keyCode,St=le.menuInstance,Bt=le.props.store,Zt=le.getVisible();if(ut===p.a.ENTER)return le.onTitleClick(Ke),ft(Bt,le.props.eventKey,!0),!0;if(ut===p.a.RIGHT)return Zt?St.onKeyDown(Ke):(le.triggerOpenChange(!0),ft(Bt,le.props.eventKey,!0)),!0;if(ut===p.a.LEFT){var yn;if(Zt)yn=St.onKeyDown(Ke);else return;return yn||(le.triggerOpenChange(!1),yn=!0),yn}return Zt&&(ut===p.a.UP||ut===p.a.DOWN)?St.onKeyDown(Ke):void 0},le.onOpenChange=function(Ke){le.props.onOpenChange(Ke)},le.onPopupVisibleChange=function(Ke){le.triggerOpenChange(Ke,Ke?"mouseenter":"mouseleave")},le.onMouseEnter=function(Ke){var ut=le.props,St=ut.eventKey,Bt=ut.onMouseEnter,Zt=ut.store;ft(Zt,le.props.eventKey,!1),Bt({key:St,domEvent:Ke})},le.onMouseLeave=function(Ke){var ut=le.props,St=ut.parentMenu,Bt=ut.eventKey,Zt=ut.onMouseLeave;St.subMenuInstance=Object(g.a)(le),Zt({key:Bt,domEvent:Ke})},le.onTitleMouseEnter=function(Ke){var ut=le.props,St=ut.eventKey,Bt=ut.onItemHover,Zt=ut.onTitleMouseEnter;Bt({key:St,hover:!0}),Zt({key:St,domEvent:Ke})},le.onTitleMouseLeave=function(Ke){var ut=le.props,St=ut.parentMenu,Bt=ut.eventKey,Zt=ut.onItemHover,yn=ut.onTitleMouseLeave;St.subMenuInstance=Object(g.a)(le),Zt({key:Bt,hover:!1}),yn({key:Bt,domEvent:Ke})},le.onTitleClick=function(Ke){var ut=Object(g.a)(le),St=ut.props;if(St.onTitleClick({key:St.eventKey,domEvent:Ke}),St.triggerSubMenuAction==="hover")return;le.triggerOpenChange(!le.getVisible(),"click"),ft(St.store,le.props.eventKey,!1)},le.onSubMenuClick=function(Ke){typeof le.props.onClick=="function"&&le.props.onClick(le.addKeyPath(Ke))},le.onSelect=function(Ke){le.props.onSelect(Ke)},le.onDeselect=function(Ke){le.props.onDeselect(Ke)},le.getPrefixCls=function(){return"".concat(le.props.rootPrefixCls,"-submenu")},le.getActiveClassName=function(){return"".concat(le.getPrefixCls(),"-active")},le.getDisabledClassName=function(){return"".concat(le.getPrefixCls(),"-disabled")},le.getSelectedClassName=function(){return"".concat(le.getPrefixCls(),"-selected")},le.getOpenClassName=function(){return"".concat(le.props.rootPrefixCls,"-submenu-open")},le.getVisible=function(){return le.state.isOpen},le.getMode=function(){return le.state.mode},le.saveMenuInstance=function(Ke){le.menuInstance=Ke},le.addKeyPath=function(Ke){return Object(K.a)(Object(K.a)({},Ke),{},{keyPath:(Ke.keyPath||[]).concat(le.props.eventKey)})},le.triggerOpenChange=function(Ke,ut){var St=le.props.eventKey,Bt=function(){le.onOpenChange({key:St,item:Object(g.a)(le),trigger:ut,open:Ke})};ut==="mouseenter"?le.mouseenterTimeout=setTimeout(function(){Bt()},0):Bt()},le.isChildrenSelected=function(){var Ke={find:!1};return Y(le.props.children,le.props.selectedKeys,Ke),Ke.find},le.isInlineMode=function(){return le.getMode()==="inline"},le.adjustWidth=function(){if(!le.subMenuTitle||!le.menuInstance)return;var Ke=Ut.findDOMNode(le.menuInstance);if(Ke.offsetWidth>=le.subMenuTitle.offsetWidth)return;Ke.style.minWidth="".concat(le.subMenuTitle.offsetWidth,"px")},le.saveSubMenuTitle=function(Ke){le.subMenuTitle=Ke},le.getBaseProps=function(){var Ke=Object(g.a)(le),ut=Ke.props,St=le.getMode();return{mode:St==="horizontal"?"vertical":St,visible:le.getVisible(),level:ut.level+1,inlineIndent:ut.inlineIndent,focusable:!1,onClick:le.onSubMenuClick,onSelect:le.onSelect,onDeselect:le.onDeselect,onDestroy:le.onDestroy,selectedKeys:ut.selectedKeys,eventKey:"".concat(ut.eventKey,"-menu-"),openKeys:ut.openKeys,motion:ut.motion,onOpenChange:le.onOpenChange,subMenuOpenDelay:ut.subMenuOpenDelay,parentMenu:Object(g.a)(le),subMenuCloseDelay:ut.subMenuCloseDelay,forceSubMenuRender:ut.forceSubMenuRender,triggerSubMenuAction:ut.triggerSubMenuAction,builtinPlacements:ut.builtinPlacements,defaultActiveFirst:ut.store.getState().defaultActiveFirst[X(ut.eventKey)],multiple:ut.multiple,prefixCls:ut.rootPrefixCls,id:le.internalMenuId,manualRef:le.saveMenuInstance,itemIcon:ut.itemIcon,expandIcon:ut.expandIcon,direction:ut.direction}},le.getMotion=function(Ke,ut){var St=Object(g.a)(le),Bt=St.haveRendered,Zt=le.props,yn=Zt.motion,Mn=Zt.rootPrefixCls,qn=Object(K.a)(Object(K.a)({},yn),{},{leavedClassName:"".concat(Mn,"-hidden"),removeOnLeave:!1,motionAppear:Bt||!ut||Ke!=="inline"});return qn};var ye=Ae.store,fe=Ae.eventKey,Pe=ye.getState(),je=Pe.defaultActiveFirst;le.isRootMenu=!1;var rt=!1;return je&&(rt=je[fe]),ft(ye,fe,rt),le.state={mode:Ae.mode,isOpen:Ae.isOpen},le}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var le=this,ye=this.props,fe=ye.mode,Pe=ye.parentMenu,je=ye.manualRef,rt=ye.isOpen,Ke=function(){le.setState({mode:fe,isOpen:rt})},ut=rt!==this.state.isOpen,St=fe!==this.state.mode;if((St||ut)&&(Nt.a.cancel(this.updateStateRaf),St?this.updateStateRaf=Object(Nt.a)(Ke):Ke()),je&&je(this),fe!=="horizontal"||!(Pe==null?void 0:Pe.isRootMenu)||!rt)return;this.minWidthTimeout=setTimeout(function(){return le.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var le=this.props,ye=le.onDestroy,fe=le.eventKey;ye&&ye(fe),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Nt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(le,ye){var fe=this.getBaseProps();return O.createElement(bn,Object(y.a)({},fe,{id:this.internalMenuId,className:le,style:ye}),this.props.children)}},{key:"renderChildren",value:function(){var le=this,ye=this.getBaseProps(),fe=ye.mode,Pe=ye.visible,je=ye.forceSubMenuRender,rt=ye.direction,Ke=this.getMotion(fe,Pe);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Pe||je,!this.haveOpened)return O.createElement("div",null);var ut=B()("".concat(ye.prefixCls,"-sub"),Object(ne.a)({},"".concat(ye.prefixCls,"-rtl"),rt==="rtl"));return this.isInlineMode()?O.createElement(te,Object(y.a)({visible:ye.visible,forceRender:je},Ke),function(St){var Bt=St.className,Zt=St.style,yn=B()(ut,Bt);return le.renderPopupMenu(yn,Zt)}):this.renderPopupMenu(ut)}},{key:"render",value:function(){var le,ye,fe,Pe=Object(K.a)({},this.props),je=this.getVisible(),rt=this.getPrefixCls(),Ke=this.isInlineMode(),ut=this.getMode(),St=B()(rt,"".concat(rt,"-").concat(ut),(le={},Object(ne.a)(le,Pe.className,!!Pe.className),Object(ne.a)(le,this.getOpenClassName(),je),Object(ne.a)(le,this.getActiveClassName(),Pe.active||je&&!Ke),Object(ne.a)(le,this.getDisabledClassName(),Pe.disabled),Object(ne.a)(le,this.getSelectedClassName(),this.isChildrenSelected()),le));this.internalMenuId||(Pe.eventKey?this.internalMenuId="".concat(Pe.eventKey,"$Menu"):(ot+=1,this.internalMenuId="$__$".concat(ot,"$Menu")));var Bt={},Zt={},yn={};Pe.disabled||(Bt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Zt={onClick:this.onTitleClick},yn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Mn={},qn=Pe.direction,nr=qn==="rtl";Ke&&(nr?Mn.paddingRight=Pe.inlineIndent*Pe.level:Mn.paddingLeft=Pe.inlineIndent*Pe.level);var Er={};this.getVisible()&&(Er={"aria-owns":this.internalMenuId});var hr=null;ut!=="horizontal"&&(hr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(hr=O.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var ur=O.createElement("div",Object(y.a)({ref:this.saveSubMenuTitle,style:Mn,className:"".concat(rt,"-title"),role:"button"},yn,Zt,{"aria-expanded":je},Er,{"aria-haspopup":"true",title:typeof Pe.title=="string"?Pe.title:void 0}),Pe.title,hr||O.createElement("i",{className:"".concat(rt,"-arrow")})),gr=this.renderChildren(),Rr=((ye=Pe.parentMenu)===null||ye===void 0?void 0:ye.isRootMenu)?Pe.parentMenu.props.getPopupContainer:function(Wr){return Wr.parentNode},rr=ke[ut],Ur=Pe.popupOffset?{offset:Pe.popupOffset}:{},Jn=B()((fe={},Object(ne.a)(fe,Pe.popupClassName,Pe.popupClassName&&!Ke),Object(ne.a)(fe,"".concat(rt,"-rtl"),nr),fe)),rn=Pe.disabled,wn=Pe.triggerSubMenuAction,xr=Pe.subMenuOpenDelay,vn=Pe.forceSubMenuRender,Ft=Pe.subMenuCloseDelay,Tn=Pe.builtinPlacements;ue.forEach(function(Wr){return delete Pe[Wr]}),delete Pe.onClick;var br=nr?Object(K.a)(Object(K.a)({},Qe),Tn):Object(K.a)(Object(K.a)({},Te),Tn);delete Pe.direction;var Pn=this.getBaseProps(),Lr=Ke?null:this.getMotion(Pn.mode,Pn.visible);return O.createElement("li",Object(y.a)({},Pe,Bt,{className:St,role:"menuitem"}),O.createElement(Or,{prefixCls:rt,popupClassName:B()("".concat(rt,"-popup"),Jn),getPopupContainer:Rr,builtinPlacements:br,popupPlacement:rr,popupVisible:Ke?!1:je,popupAlign:Ur,popup:Ke?null:gr,action:rn||Ke?[]:[wn],mouseEnterDelay:xr,mouseLeaveDelay:Ft,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:vn,popupMotion:Lr},ur),Ke?gr:null)}}]),tt}(O.Component);yt.defaultProps={onMouseEnter:$e,onMouseLeave:$e,onTitleMouseEnter:$e,onTitleMouseLeave:$e,onTitleClick:$e,manualRef:$e,mode:"vertical",title:""};var Re=Object(u.b)(function(_e,Ye){var tt=_e.openKeys,Ae=_e.activeKey,le=_e.selectedKeys,ye=Ye.eventKey,fe=Ye.subMenuKey;return{isOpen:tt.indexOf(ye)>-1,active:Ae[fe]===ye,selectedKeys:le}})(yt);Re.isSubMenu=!0;var mt=Re,Wt="menuitem-overflowed",Dt=.5,lt=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){var Ae;return Object(L.a)(this,tt),Ae=Ye.apply(this,arguments),Ae.resizeObserver=null,Ae.mutationObserver=null,Ae.originalTotalWidth=0,Ae.overflowedItems=[],Ae.menuItemSizes=[],Ae.cancelFrameId=null,Ae.state={lastVisibleIndex:void 0},Ae.childRef=O.createRef(),Ae.getMenuItemNodes=function(){var le=Ae.props.prefixCls,ye=Ae.childRef.current;return ye?[].slice.call(ye.children).filter(function(fe){return fe.className.split(" ").indexOf("".concat(le,"-overflowed-submenu"))<0}):[]},Ae.getOverflowedSubMenuItem=function(le,ye,fe){var Pe=Ae.props,je=Pe.overflowedIndicator,rt=Pe.level,Ke=Pe.mode,ut=Pe.prefixCls,St=Pe.theme;if(rt!==1||Ke!=="horizontal")return null;var Bt=Ae.props.children[0],Zt=Bt.props,yn=Zt.children,Mn=Zt.title,qn=Zt.style,nr=Object(N.a)(Zt,["children","title","style"]),Er=Object(K.a)({},qn),hr="".concat(le,"-overflowed-indicator"),ur="".concat(le,"-overflowed-indicator");ye.length===0&&fe!==!0?Er=Object(K.a)(Object(K.a)({},Er),{},{display:"none"}):fe&&(Er=Object(K.a)(Object(K.a)({},Er),{},{visibility:"hidden",position:"absolute"}),hr="".concat(hr,"-placeholder"),ur="".concat(ur,"-placeholder"));var gr=St?"".concat(ut,"-").concat(St):"",Rr={};return ue.forEach(function(rr){nr[rr]!==void 0&&(Rr[rr]=nr[rr])}),O.createElement(mt,Object(y.a)({title:je,className:"".concat(ut,"-overflowed-submenu"),popupClassName:gr},Rr,{key:hr,eventKey:ur,disabled:!1,style:Er}),ye)},Ae.setChildrenWidthAndResize=function(){if(Ae.props.mode!=="horizontal")return;var le=Ae.childRef.current;if(!le)return;var ye=le.children;if(!ye||ye.length===0)return;var fe=le.children[ye.length-1];We(fe,"display","inline-block");var Pe=Ae.getMenuItemNodes(),je=Pe.filter(function(rt){return rt.className.split(" ").indexOf(Wt)>=0});je.forEach(function(rt){We(rt,"display","inline-block")}),Ae.menuItemSizes=Pe.map(function(rt){return be(rt,!0)}),je.forEach(function(rt){We(rt,"display","none")}),Ae.overflowedIndicatorWidth=be(le.children[le.children.length-1],!0),Ae.originalTotalWidth=Ae.menuItemSizes.reduce(function(rt,Ke){return rt+Ke},0),Ae.handleResize(),We(fe,"display","none")},Ae.handleResize=function(){if(Ae.props.mode!=="horizontal")return;var le=Ae.childRef.current;if(!le)return;var ye=be(le);Ae.overflowedItems=[];var fe=0,Pe;Ae.originalTotalWidth>ye+Dt&&(Pe=-1,Ae.menuItemSizes.forEach(function(je){fe+=je,fe+Ae.overflowedIndicatorWidth<=ye&&(Pe+=1)})),Ae.setState({lastVisibleIndex:Pe})},Ae}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){var le=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ye=this.childRef.current;if(!ye)return;this.resizeObserver=new Tt.default(function(fe){fe.forEach(function(){var Pe=le.cancelFrameId;cancelAnimationFrame(Pe),le.cancelFrameId=requestAnimationFrame(le.setChildrenWidthAndResize)})}),[].slice.call(ye.children).concat(ye).forEach(function(fe){le.resizeObserver.observe(fe)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){le.resizeObserver.disconnect(),[].slice.call(ye.children).concat(ye).forEach(function(fe){le.resizeObserver.observe(fe)}),le.setChildrenWidthAndResize()}),this.mutationObserver.observe(ye,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(le){var ye=this,fe=this.state.lastVisibleIndex;return(le||[]).reduce(function(Pe,je,rt){var Ke=je;if(ye.props.mode==="horizontal"){var ut=ye.getOverflowedSubMenuItem(je.props.eventKey,[]);fe!==void 0&&ye.props.className.indexOf("".concat(ye.props.prefixCls,"-root"))!==-1&&(rt>fe&&(Ke=O.cloneElement(je,{style:{display:"none"},eventKey:"".concat(je.props.eventKey,"-hidden"),className:"".concat(Wt)})),rt===fe+1&&(ye.overflowedItems=le.slice(fe+1).map(function(Bt){return O.cloneElement(Bt,{key:Bt.props.eventKey,mode:"vertical-left"})}),ut=ye.getOverflowedSubMenuItem(je.props.eventKey,ye.overflowedItems)));var St=[].concat(Object(_.a)(Pe),[ut,Ke]);return rt===le.length-1&&St.push(ye.getOverflowedSubMenuItem(je.props.eventKey,[],!0)),St}return[].concat(Object(_.a)(Pe),[Ke])},[])}},{key:"render",value:function(){var le=this.props,ye=le.visible,fe=le.prefixCls,Pe=le.overflowedIndicator,je=le.mode,rt=le.level,Ke=le.tag,ut=le.children,St=le.theme,Bt=Object(N.a)(le,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Zt=Ke;return O.createElement(Zt,Object(y.a)({ref:this.childRef},Bt),this.renderChildren(ut))}}]),tt}(O.Component);lt.defaultProps={tag:"div",className:""};var At=lt;function Lt(_e){return _e.length?_e.every(function(Ye){return!!Ye.props.disabled}):!0}function $t(_e,Ye,tt){var Ae=_e.getState();_e.setState({activeKey:Object(K.a)(Object(K.a)({},Ae.activeKey),{},Object(ne.a)({},Ye,tt))})}function Ie(_e){return _e.eventKey||"0-menu-"}function Pt(_e,Ye){var tt=Ye,Ae=_e.children,le=_e.eventKey;if(tt){var ye;if(G(Ae,function(fe,Pe){fe&&fe.props&&!fe.props.disabled&&tt===me(fe,le,Pe)&&(ye=!0)}),ye)return tt}return tt=null,_e.defaultActiveFirst&&G(Ae,function(fe,Pe){!tt&&fe&&!fe.props.disabled&&(tt=me(fe,le,Pe))}),tt}function Ht(_e){if(!_e)return;var Ye=this.instanceArray.indexOf(_e);Ye!==-1?this.instanceArray[Ye]=_e:this.instanceArray.push(_e)}var fn=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(Ae){var le;return Object(L.a)(this,tt),le=Ye.call(this,Ae),le.onKeyDown=function(ye,fe){var Pe=ye.keyCode,je;if(le.getFlatInstanceArray().forEach(function(Ke){Ke&&Ke.props.active&&Ke.onKeyDown&&(je=Ke.onKeyDown(ye))}),je)return 1;var rt=null;return(Pe===p.a.UP||Pe===p.a.DOWN)&&(rt=le.step(Pe===p.a.UP?-1:1)),rt?(ye.preventDefault(),$t(le.props.store,Ie(le.props),rt.props.eventKey),typeof fe=="function"&&fe(rt),1):void 0},le.onItemHover=function(ye){var fe=ye.key,Pe=ye.hover;$t(le.props.store,Ie(le.props),Pe?fe:null)},le.onDeselect=function(ye){le.props.onDeselect(ye)},le.onSelect=function(ye){le.props.onSelect(ye)},le.onClick=function(ye){le.props.onClick(ye)},le.onOpenChange=function(ye){le.props.onOpenChange(ye)},le.onDestroy=function(ye){le.props.onDestroy(ye)},le.getFlatInstanceArray=function(){return le.instanceArray},le.step=function(ye){var fe=le.getFlatInstanceArray(),Pe=le.props.store.getState().activeKey[Ie(le.props)],je=fe.length;if(!je)return null;ye<0&&(fe=fe.concat().reverse());var rt=-1;if(fe.every(function(Bt,Zt){return Bt&&Bt.props.eventKey===Pe?(rt=Zt,!1):!0}),!le.props.defaultActiveFirst&&rt!==-1&&Lt(fe.slice(rt,je-1)))return;var Ke=(rt+1)%je,ut=Ke;do{var St=fe[ut];if(!St||St.props.disabled)ut=(ut+1)%je;else return St}while(ut!==Ke);return null},le.renderCommonMenuItem=function(ye,fe,Pe){var je=le.props.store.getState(),rt=Object(g.a)(le),Ke=rt.props,ut=me(ye,Ke.eventKey,fe),St=ye.props;if(!St||typeof ye.type=="string")return ye;var Bt=ut===je.activeKey,Zt=Object(K.a)(Object(K.a)({mode:St.mode||Ke.mode,level:Ke.level,inlineIndent:Ke.inlineIndent,renderMenuItem:le.renderMenuItem,rootPrefixCls:Ke.prefixCls,index:fe,parentMenu:Ke.parentMenu,manualRef:St.disabled?void 0:Object(T.a)(ye.ref,Ht.bind(Object(g.a)(le))),eventKey:ut,active:!St.disabled&&Bt,multiple:Ke.multiple,onClick:function(Mn){(St.onClick||$e)(Mn),le.onClick(Mn)},onItemHover:le.onItemHover,motion:Ke.motion,subMenuOpenDelay:Ke.subMenuOpenDelay,subMenuCloseDelay:Ke.subMenuCloseDelay,forceSubMenuRender:Ke.forceSubMenuRender,onOpenChange:le.onOpenChange,onDeselect:le.onDeselect,onSelect:le.onSelect,builtinPlacements:Ke.builtinPlacements,itemIcon:St.itemIcon||le.props.itemIcon,expandIcon:St.expandIcon||le.props.expandIcon},Pe),{},{direction:Ke.direction});return(Ke.mode==="inline"||ze())&&(Zt.triggerSubMenuAction="click"),O.cloneElement(ye,Object(K.a)(Object(K.a)({},Zt),{},{key:ut||fe}))},le.renderMenuItem=function(ye,fe,Pe){if(!ye)return null;var je=le.props.store.getState(),rt={openKeys:je.openKeys,selectedKeys:je.selectedKeys,triggerSubMenuAction:le.props.triggerSubMenuAction,subMenuKey:Pe};return le.renderCommonMenuItem(ye,fe,rt)},Ae.store.setState({activeKey:Object(K.a)(Object(K.a)({},Ae.store.getState().activeKey),{},Object(ne.a)({},Ae.eventKey,Pt(Ae,Ae.activeKey)))}),le.instanceArray=[],le}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(le){return this.props.visible||le.visible||this.props.className!==le.className||!j()(this.props.style,le.style)}},{key:"componentDidUpdate",value:function(le){var ye=this.props,fe="activeKey"in ye?ye.activeKey:ye.store.getState().activeKey[Ie(ye)],Pe=Pt(ye,fe);if(Pe!==fe)$t(ye.store,Ie(ye),Pe);else if("activeKey"in le){var je=Pt(le,le.activeKey);Pe!==je&&$t(ye.store,Ie(ye),Pe)}}},{key:"render",value:function(){var le=this,ye=Object(y.a)({},this.props);this.instanceArray=[];var fe=B()(ye.prefixCls,ye.className,"".concat(ye.prefixCls,"-").concat(ye.mode)),Pe={className:fe,role:ye.role||"menu"};ye.id&&(Pe.id=ye.id),ye.focusable&&(Pe.tabIndex=0,Pe.onKeyDown=this.onKeyDown);var je=ye.prefixCls,rt=ye.eventKey,Ke=ye.visible,ut=ye.level,St=ye.mode,Bt=ye.overflowedIndicator,Zt=ye.theme;return ue.forEach(function(yn){return delete ye[yn]}),delete ye.onClick,O.createElement(At,Object(y.a)({},ye,{prefixCls:je,mode:St,tag:"ul",level:ut,theme:Zt,visible:Ke,overflowedIndicator:Bt},Pe),Object(C.a)(ye.children).map(function(yn,Mn){return le.renderMenuItem(yn,Mn,rt||"0-menu-")}))}}]),tt}(O.Component);fn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:$e};var Wn=Object(u.b)()(fn),bn=Wn,xn=k("Kwbf");function Kn(_e,Ye,tt){var Ae=_e.prefixCls,le=_e.motion,ye=_e.defaultMotions,fe=ye===void 0?{}:ye,Pe=_e.openAnimation,je=_e.openTransitionName,rt=Ye.switchingModeFromInline;if(le)return le;if(Object(U.a)(Pe)==="object"&&Pe)Object(xn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Pe=="string")return{motionName:"".concat(Ae,"-open-").concat(Pe)};if(je)return{motionName:je};var Ke=fe[tt];return Ke||(rt?null:fe.other)}var Hn=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(Ae){var le;Object(L.a)(this,tt),le=Ye.call(this,Ae),le.onSelect=function(Pe){var je=Object(g.a)(le),rt=je.props;if(rt.selectable){var Ke=le.store.getState(),ut=Ke.selectedKeys,St=Pe.key;rt.multiple?ut=ut.concat([St]):ut=[St],"selectedKeys"in rt||le.store.setState({selectedKeys:ut}),rt.onSelect(Object(K.a)(Object(K.a)({},Pe),{},{selectedKeys:ut}))}},le.onClick=function(Pe){var je=le.getRealMenuMode(),rt=Object(g.a)(le),Ke=rt.store,ut=rt.props.onOpenChange;je!=="inline"&&!("openKeys"in le.props)&&(Ke.setState({openKeys:[]}),ut([])),le.props.onClick(Pe)},le.onKeyDown=function(Pe,je){le.innerMenu.getWrappedInstance().onKeyDown(Pe,je)},le.onOpenChange=function(Pe){var je=Object(g.a)(le),rt=je.props,Ke=le.store.getState().openKeys.concat(),ut=!1,St=function(Zt){var yn=!1;if(Zt.open)yn=Ke.indexOf(Zt.key)===-1,yn&&Ke.push(Zt.key);else{var Mn=Ke.indexOf(Zt.key);yn=Mn!==-1,yn&&Ke.splice(Mn,1)}ut=ut||yn};Array.isArray(Pe)?Pe.forEach(St):St(Pe),ut&&("openKeys"in le.props||le.store.setState({openKeys:Ke}),rt.onOpenChange(Ke))},le.onDeselect=function(Pe){var je=Object(g.a)(le),rt=je.props;if(rt.selectable){var Ke=le.store.getState().selectedKeys.concat(),ut=Pe.key,St=Ke.indexOf(ut);St!==-1&&Ke.splice(St,1),"selectedKeys"in rt||le.store.setState({selectedKeys:Ke}),rt.onDeselect(Object(K.a)(Object(K.a)({},Pe),{},{selectedKeys:Ke}))}},le.onMouseEnter=function(Pe){le.restoreModeVerticalFromInline();var je=le.props.onMouseEnter;je&&je(Pe)},le.onTransitionEnd=function(Pe){var je=Pe.propertyName==="width"&&Pe.target===Pe.currentTarget,rt=Pe.target.className,Ke=Object.prototype.toString.call(rt)==="[object SVGAnimatedString]"?rt.animVal:rt,ut=Pe.propertyName==="font-size"&&Ke.indexOf("anticon")>=0;(je||ut)&&le.restoreModeVerticalFromInline()},le.setInnerMenu=function(Pe){le.innerMenu=Pe},le.isRootMenu=!0;var ye=Ae.defaultSelectedKeys,fe=Ae.defaultOpenKeys;return"selectedKeys"in Ae&&(ye=Ae.selectedKeys||[]),"openKeys"in Ae&&(fe=Ae.openKeys||[]),le.store=Object(u.c)({selectedKeys:ye,openKeys:fe,activeKey:{"0-menu-":Pt(Ae,Ae.activeKey)}}),le.state={switchingModeFromInline:!1,prevProps:Ae,inlineOpenKeys:[],store:le.store},le}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(le){var ye=this.props,fe=ye.siderCollapsed,Pe=ye.inlineCollapsed,je=ye.onOpenChange;(!le.inlineCollapsed&&Pe||!le.siderCollapsed&&fe)&&je([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var le=this.props.collapsedWidth,ye=this.store,fe=this.prevOpenKeys,Pe=this.getInlineCollapsed()&&(le===0||le==="0"||le==="0px");Pe?(this.prevOpenKeys=ye.getState().openKeys.concat(),this.store.setState({openKeys:[]})):fe&&(this.store.setState({openKeys:fe}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var le=this.props.mode,ye=this.state.switchingModeFromInline,fe=this.getInlineCollapsed();return ye&&fe?"inline":fe?"vertical":le}},{key:"getInlineCollapsed",value:function(){var le=this.props,ye=le.inlineCollapsed,fe=le.siderCollapsed;return fe!==void 0?fe:ye}},{key:"restoreModeVerticalFromInline",value:function(){var le=this.state.switchingModeFromInline;le&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var le=Object(K.a)({},Object(D.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ye=this.getRealMenuMode();return le.className+=" ".concat(le.prefixCls,"-root"),le.direction==="rtl"&&(le.className+=" ".concat(le.prefixCls,"-rtl")),le=Object(K.a)(Object(K.a)({},le),{},{mode:ye,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Kn(this.props,this.state,ye)}),delete le.openAnimation,delete le.openTransitionName,O.createElement(u.a,{store:this.store},O.createElement(bn,Object(y.a)({},le,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(le,ye){var fe=ye.prevProps,Pe=ye.store,je=Pe.getState(),rt={},Ke={prevProps:le};return fe.mode==="inline"&&le.mode!=="inline"&&(Ke.switchingModeFromInline=!0),"openKeys"in le?rt.openKeys=le.openKeys||[]:((le.inlineCollapsed&&!fe.inlineCollapsed||le.siderCollapsed&&!fe.siderCollapsed)&&(Ke.switchingModeFromInline=!0,Ke.inlineOpenKeys=je.openKeys,rt.openKeys=[]),(!le.inlineCollapsed&&fe.inlineCollapsed||!le.siderCollapsed&&fe.siderCollapsed)&&(rt.openKeys=ye.inlineOpenKeys,Ke.inlineOpenKeys=[])),Object.keys(rt).length&&Pe.setState(rt),Ke}}]),tt}(O.Component);Hn.defaultProps={selectable:!0,onClick:$e,onSelect:$e,onOpenChange:$e,onDeselect:$e,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var _t=Hn,wt=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){var Ae;return Object(L.a)(this,tt),Ae=Ye.apply(this,arguments),Ae.onKeyDown=function(le){var ye=le.keyCode;return ye===p.a.ENTER?(Ae.onClick(le),!0):void 0},Ae.onMouseLeave=function(le){var ye=Ae.props,fe=ye.eventKey,Pe=ye.onItemHover,je=ye.onMouseLeave;Pe({key:fe,hover:!1}),je({key:fe,domEvent:le})},Ae.onMouseEnter=function(le){var ye=Ae.props,fe=ye.eventKey,Pe=ye.onItemHover,je=ye.onMouseEnter;Pe({key:fe,hover:!0}),je({key:fe,domEvent:le})},Ae.onClick=function(le){var ye=Ae.props,fe=ye.eventKey,Pe=ye.multiple,je=ye.onClick,rt=ye.onSelect,Ke=ye.onDeselect,ut=ye.isSelected,St={key:fe,keyPath:[fe],item:Object(g.a)(Ae),domEvent:le};je(St),Pe?ut?Ke(St):rt(St):ut||rt(St)},Ae.saveNode=function(le){Ae.node=le},Ae}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var le=this.props;le.onDestroy&&le.onDestroy(le.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var le,ye=Object(K.a)({},this.props),fe=B()(this.getPrefixCls(),ye.className,(le={},Object(ne.a)(le,this.getActiveClassName(),!ye.disabled&&ye.active),Object(ne.a)(le,this.getSelectedClassName(),ye.isSelected),Object(ne.a)(le,this.getDisabledClassName(),ye.disabled),le)),Pe=Object(K.a)(Object(K.a)({},ye.attribute),{},{title:typeof ye.title=="string"?ye.title:void 0,className:fe,role:ye.role||"menuitem","aria-disabled":ye.disabled});ye.role==="option"?Pe=Object(K.a)(Object(K.a)({},Pe),{},{role:"option","aria-selected":ye.isSelected}):(ye.role===null||ye.role==="none")&&(Pe.role="none");var je={onClick:ye.disabled?null:this.onClick,onMouseLeave:ye.disabled?null:this.onMouseLeave,onMouseEnter:ye.disabled?null:this.onMouseEnter},rt=Object(K.a)({},ye.style);ye.mode==="inline"&&(ye.direction==="rtl"?rt.paddingRight=ye.inlineIndent*ye.level:rt.paddingLeft=ye.inlineIndent*ye.level),ue.forEach(function(ut){return delete ye[ut]}),delete ye.direction;var Ke=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ke=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object(y.a)({},Object(D.a)(ye,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Pe,je,{style:rt,ref:this.saveNode}),ye.children,Ke)}}]),tt}(O.Component);wt.isMenuItem=!0,wt.defaultProps={onSelect:$e,onMouseEnter:$e,onMouseLeave:$e,manualRef:$e};var Xt=Object(u.b)(function(_e,Ye){var tt=_e.activeKey,Ae=_e.selectedKeys,le=Ye.eventKey,ye=Ye.subMenuKey;return{active:tt[ye]===le,isSelected:Array.isArray(Ae)?Ae.indexOf(le)!==-1:Ae===le}})(wt),Mt=Xt,Un=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){var Ae;return Object(L.a)(this,tt),Ae=Ye.apply(this,arguments),Ae.renderInnerMenuItem=function(le){var ye=Ae.props,fe=ye.renderMenuItem,Pe=ye.index;return fe(le,Pe,Ae.props.subMenuKey)},Ae}return Object(R.a)(tt,[{key:"render",value:function(){var le=Object(y.a)({},this.props),ye=le.className,fe=ye===void 0?"":ye,Pe=le.rootPrefixCls,je="".concat(Pe,"-item-group-title"),rt="".concat(Pe,"-item-group-list"),Ke=le.title,ut=le.children;return ue.forEach(function(St){return delete le[St]}),delete le.direction,O.createElement("li",Object(y.a)({},le,{onClick:function(Bt){return Bt.stopPropagation()},className:"".concat(fe," ").concat(Pe,"-item-group")}),O.createElement("div",{className:je,title:typeof Ke=="string"?Ke:void 0},Ke),O.createElement("ul",{className:rt},O.Children.map(ut,this.renderInnerMenuItem)))}}]),tt}(O.Component);Un.isMenuItemGroup=!0,Un.defaultProps={disabled:!0};var Qt=Un,ln=function(Ye){var tt=Ye.className,Ae=Ye.rootPrefixCls,le=Ye.style;return O.createElement("li",{className:"".concat(tt," ").concat(Ae,"-item-divider"),style:le})};ln.defaultProps={disabled:!0,className:"",style:{}};var Rn=ln,Ln=_t,dn=k("eDIo");function Qn(_e,Ye){var tt=_e.prefixCls,Ae=_e.editable,le=_e.locale,ye=_e.style;return!Ae||Ae.showAdd===!1?null:O.createElement("button",{ref:Ye,type:"button",className:"".concat(tt,"-nav-add"),style:ye,"aria-label":(le==null?void 0:le.addAriaLabel)||"Add tab",onClick:function(Pe){Ae.onEdit("add",{event:Pe})}},Ae.addIcon||"+")}var An=O.forwardRef(Qn);function yr(_e,Ye){var tt=_e.prefixCls,Ae=_e.id,le=_e.tabs,ye=_e.locale,fe=_e.mobile,Pe=_e.moreIcon,je=Pe===void 0?"More":Pe,rt=_e.moreTransitionName,Ke=_e.style,ut=_e.className,St=_e.editable,Bt=_e.tabBarGutter,Zt=_e.rtl,yn=_e.onTabClick,Mn=Object(O.useState)(!1),qn=Object(z.a)(Mn,2),nr=qn[0],Er=qn[1],hr=Object(O.useState)(null),ur=Object(z.a)(hr,2),gr=ur[0],Rr=ur[1],rr="".concat(Ae,"-more-popup"),Ur="".concat(tt,"-dropdown"),Jn=gr!==null?"".concat(rr,"-").concat(gr):null,rn=ye==null?void 0:ye.dropdownAriaLabel,wn=O.createElement(Ln,{onClick:function(Lr){var Wr=Lr.key,Nr=Lr.domEvent;yn(Wr,Nr),Er(!1)},id:rr,tabIndex:-1,role:"listbox","aria-activedescendant":Jn,selectedKeys:[gr],"aria-label":rn!==void 0?rn:"expanded dropdown"},le.map(function(Pn){return O.createElement(Mt,{key:Pn.key,id:"".concat(rr,"-").concat(Pn.key),role:"option","aria-controls":Ae&&"".concat(Ae,"-panel-").concat(Pn.key),disabled:Pn.disabled},Pn.tab)}));function xr(Pn){for(var Lr=le.filter(function(da){return!da.disabled}),Wr=Lr.findIndex(function(da){return da.key===gr})||0,Nr=Lr.length,Mr=0;MrTn?(vn=wn,rr.current="x"):(vn=xr,rr.current="y");var br=Date.now();br-gr.current>100&&(Rr.current=!1),(Ye(-vn,-vn)||Rr.current)&&(rn.preventDefault(),Rr.current=!0),gr.current=br}var Jn=Object(O.useRef)(null);Jn.current={onTouchStart:Er,onTouchMove:hr,onTouchEnd:ur,onWheel:Ur},O.useEffect(function(){function rn(Ft){Jn.current.onTouchStart(Ft)}function wn(Ft){Jn.current.onTouchMove(Ft)}function xr(Ft){Jn.current.onTouchEnd(Ft)}function vn(Ft){Jn.current.onWheel(Ft)}return document.addEventListener("touchmove",wn,{passive:!1}),document.addEventListener("touchend",xr,{passive:!1}),_e.current.addEventListener("touchstart",rn,{passive:!1}),_e.current.addEventListener("wheel",vn),function(){document.removeEventListener("touchmove",wn),document.removeEventListener("touchend",xr)}},[])}function fa(){var _e=Object(O.useRef)(new Map);function Ye(Ae){return _e.current.has(Ae)||_e.current.set(Ae,O.createRef()),_e.current.get(Ae)}function tt(Ae){_e.current.delete(Ae)}return[Ye,tt]}function ia(_e,Ye){var tt=O.useRef(_e),Ae=O.useState({}),le=Object(z.a)(Ae,2),ye=le[1];function fe(Pe){var je=typeof Pe=="function"?Pe(tt.current):Pe;je!==tt.current&&Ye(je,tt.current),tt.current=je,ye({})}return[tt.current,fe]}var ha=function(Ye){var tt=Ye.position,Ae=Ye.prefixCls,le=Ye.extra;if(!le)return null;var ye,fe=le;return tt==="right"&&(ye=fe.right||!fe.left&&fe||null),tt==="left"&&(ye=fe.left||null),ye?O.createElement("div",{className:"".concat(Ae,"-extra-content")},ye):null};function Va(_e,Ye){var tt,Ae=O.useContext(vr),le=Ae.prefixCls,ye=Ae.tabs,fe=_e.className,Pe=_e.style,je=_e.id,rt=_e.animated,Ke=_e.activeKey,ut=_e.rtl,St=_e.extra,Bt=_e.editable,Zt=_e.locale,yn=_e.tabPosition,Mn=_e.tabBarGutter,qn=_e.children,nr=_e.onTabClick,Er=_e.onTabScroll,hr=Object(O.useRef)(),ur=Object(O.useRef)(),gr=Object(O.useRef)(),Rr=Object(O.useRef)(),rr=fa(),Ur=Object(z.a)(rr,2),Jn=Ur[0],rn=Ur[1],wn=yn==="top"||yn==="bottom",xr=ia(0,function(Vr,jr){wn&&Er&&Er({direction:Vr>jr?"left":"right"})}),vn=Object(z.a)(xr,2),Ft=vn[0],Tn=vn[1],br=ia(0,function(Vr,jr){!wn&&Er&&Er({direction:Vr>jr?"top":"bottom"})}),Pn=Object(z.a)(br,2),Lr=Pn[0],Wr=Pn[1],Nr=Object(O.useState)(0),Mr=Object(z.a)(Nr,2),cr=Mr[0],da=Mr[1],Qa=Object(O.useState)(0),Na=Object(z.a)(Qa,2),_a=Na[0],na=Na[1],Yr=Object(O.useState)(0),Qr=Object(z.a)(Yr,2),ra=Qr[0],ja=Qr[1],fi=Object(O.useState)(0),si=Object(z.a)(fi,2),$r=si[0],Ja=si[1],Za=Object(O.useState)(null),qr=Object(z.a)(Za,2),Xr=qr[0],ba=qr[1],Mi=Object(O.useState)(null),no=Object(z.a)(Mi,2),li=no[0],wi=no[1],Si=Object(O.useState)(0),Ti=Object(z.a)(Si,2),ki=Ti[0],co=Ti[1],Ro=Object(O.useState)(0),Gi=Object(z.a)(Ro,2),Oi=Gi[0],Vi=Gi[1],yi=n(new Map),Ri=Object(z.a)(yi,2),fo=Ri[0],Xi=Ri[1],Di=l(ye,fo,cr),Ai="".concat(le,"-nav-operations-hidden"),bi=0,Ma=0;wn?ut?(bi=0,Ma=Math.max(0,cr-Xr)):(bi=Math.min(0,Xr-cr),Ma=0):(bi=Math.min(0,li-_a),Ma=0);function hi(Vr){return VrMa?[Ma,!1]:[Vr,!0]}var pi=Object(O.useRef)(),Ei=Object(O.useState)(),mi=Object(z.a)(Ei,2),Yi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}ta(hr,function(Vr,jr){var ca=!1;function Ua(Pi,ci){Pi(function(Ui){var di=hi(Ui+ci),Ea=Object(z.a)(di,2),Fi=Ea[0],Bi=Ea[1];return ca=Bi,Fi})}if(wn){if(Xr>=cr)return ca;Ua(Tn,Vr)}else{if(li>=_a)return ca;Ua(Wr,jr)}return Ii(),Qi(),ca}),Object(O.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ui(){var Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ke,jr=Di.get(Vr);if(!jr)return;if(wn){var ca=Ft;ut?jr.rightFt+Xr&&(ca=jr.right+jr.width-Xr):jr.left<-Ft?ca=-jr.left:jr.left+jr.width>-Ft+Xr&&(ca=-(jr.left+jr.width-Xr)),Wr(0),Tn(hi(ca)[0])}else{var Ua=Lr;jr.top<-Lr?Ua=-jr.top:jr.top+jr.height>-Lr+li&&(Ua=-(jr.top+jr.height-li)),Tn(0),Wr(hi(Ua)[0])}}var xi=E(Di,{width:Xr,height:li,left:Ft,top:Lr},{width:ra,height:$r},{width:ki,height:Oi},Object(K.a)(Object(K.a)({},_e),{},{tabs:ye})),ro=Object(z.a)(xi,2),Do=ro[0],Ao=ro[1],ho=ye.map(function(Vr){var jr=Vr.key;return O.createElement(r,{id:je,prefixCls:le,key:jr,rtl:ut,tab:Vr,closable:Vr.closable,editable:Bt,active:jr===Ke,tabPosition:yn,tabBarGutter:Mn,renderWrapper:qn,removeAriaLabel:Zt==null?void 0:Zt.removeAriaLabel,ref:Jn(jr),onClick:function(Ua){nr(jr,Ua)},onRemove:function(){rn(jr)},onFocus:function(){ui(jr),Qi(),ut||(hr.current.scrollLeft=0),hr.current.scrollTop=0}})}),ao=f(function(){var Vr,jr,ca,Ua,Pi,ci,Ui,di,Ea,Fi=((Vr=hr.current)===null||Vr===void 0?void 0:Vr.offsetWidth)||0,Bi=((jr=hr.current)===null||jr===void 0?void 0:jr.offsetHeight)||0,Wi=((ca=Rr.current)===null||ca===void 0?void 0:ca.offsetWidth)||0,Ha=((Ua=Rr.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0,Kr=((Pi=gr.current)===null||Pi===void 0?void 0:Pi.offsetWidth)||0,wr=((ci=gr.current)===null||ci===void 0?void 0:ci.offsetHeight)||0;ba(Fi),wi(Bi),co(Wi),Vi(Ha);var Bn=(((Ui=ur.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Wi,er=(((di=ur.current)===null||di===void 0?void 0:di.offsetHeight)||0)-Ha;da(Bn),na(er);var kr=(Ea=gr.current)===null||Ea===void 0?void 0:Ea.className.includes(Ai);ja(Bn-(kr?0:Kr)),Ja(er-(kr?0:wr)),Xi(function(){var oa=new Map;return ye.forEach(function(vi){var ii=vi.key,Aa=Jn(ii).current;Aa&&oa.set(ii,{width:Aa.offsetWidth,height:Aa.offsetHeight,left:Aa.offsetLeft,top:Aa.offsetTop})}),oa})}),po=ye.slice(0,Do),Wa=ye.slice(Ao+1),ma=[].concat(Object(_.a)(po),Object(_.a)(Wa)),Da=Object(O.useState)(),va=Object(z.a)(Da,2),Ni=va[0],mo=va[1],qa=Di.get(Ke),io=Object(O.useRef)();function oo(){v.a.cancel(io.current)}Object(O.useEffect)(function(){var Vr={};return qa&&(wn?(ut?Vr.right=qa.right:Vr.left=qa.left,Vr.width=qa.width):(Vr.top=qa.top,Vr.height=qa.height)),oo(),io.current=v()(function(){mo(Vr)}),oo},[qa,wn,ut]),Object(O.useEffect)(function(){ui()},[Ke,qa,Di,wn]),Object(O.useEffect)(function(){ao()},[ut,Mn,Ke,ye.map(function(Vr){return Vr.key}).join("_")]);var so=!!ma.length,Ci="".concat(le,"-nav-wrap"),Ji,ji,vo,Zi;return wn?ut?(ji=Ft>0,Ji=Ft+Xr */Ee.read=function(k,ne,z,N,K){var O,w,B=K*8-N-1,C=(1<>1,_=-7,d=z?K-1:0,v=z?-1:1,b=k[ne+d];for(d+=v,O=b&(1<<-_)-1,b>>=-_,_+=B;_>0;O=O*256+k[ne+d],d+=v,_-=8);for(w=O&(1<<-_)-1,O>>=-_,_+=N;_>0;w=w*256+k[ne+d],d+=v,_-=8);if(O===0)O=1-P;else{if(O===C)return w?NaN:(b?-1:1)*Infinity;w=w+Math.pow(2,N),O=O-P}return(b?-1:1)*w*Math.pow(2,O-N)},Ee.write=function(k,ne,z,N,K,O){var w,B,C,P=O*8-K-1,_=(1<>1,v=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=N?0:O-1,f=N?1:-1,n=ne<0||ne===0&&1/ne<0?1:0;for(ne=Math.abs(ne),isNaN(ne)||ne===Infinity?(B=isNaN(ne)?1:0,w=_):(w=Math.floor(Math.log(ne)/Math.LN2),ne*(C=Math.pow(2,-w))<1&&(w--,C*=2),w+d>=1?ne+=v/C:ne+=v*Math.pow(2,1-d),ne*C>=2&&(w++,C/=2),w+d>=_?(B=0,w=_):w+d>=1?(B=(ne*C-1)*Math.pow(2,K),w=w+d):(B=ne*Math.pow(2,d-1)*Math.pow(2,K),w=0));K>=8;k[z+b]=B&255,b+=f,B/=256,K-=8);for(w=w<0;k[z+b]=w&255,b+=f,w/=256,P-=8);k[z+b-f]|=n*128}},lZu9:function(Vt,Ee,k){(function(ne){ne(k("VrN/"),k("1eCo"),k("8EBN"))})(function(ne){"use strict";ne.defineMode("markdown",function(z,N){var K=ne.getMode(z,"text/html"),O=K.name=="null";function w(I){if(ne.findModeByName){var W=ne.findModeByName(I);W&&(I=W.mime||W.mimes[0])}var Q=ne.getMode(z,I);return Q.name=="null"?null:Q}N.highlightFormatting===void 0&&(N.highlightFormatting=!1),N.maxBlockquoteDepth===void 0&&(N.maxBlockquoteDepth=0),N.taskLists===void 0&&(N.taskLists=!1),N.strikethrough===void 0&&(N.strikethrough=!1),N.emoji===void 0&&(N.emoji=!1),N.fencedCodeBlockHighlighting===void 0&&(N.fencedCodeBlockHighlighting=!0),N.fencedCodeBlockDefaultMode===void 0&&(N.fencedCodeBlockDefaultMode="text/plain"),N.xml===void 0&&(N.xml=!0),N.tokenTypeOverrides===void 0&&(N.tokenTypeOverrides={});var B={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var C in B)B.hasOwnProperty(C)&&N.tokenTypeOverrides[C]&&(B[C]=N.tokenTypeOverrides[C]);var P=/^([*\-_])(?:\s*\1){2,}\s*$/,_=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,d=/^\[(x| )\](?=\s)/i,v=N.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,o=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function s(I,W,Q){return W.f=W.inline=Q,Q(I,W)}function l(I,W,Q){return W.f=W.block=Q,Q(I,W)}function x(I){return!I||!/\S/.test(I.string)}function E(I){if(I.linkTitle=!1,I.linkHref=!1,I.linkText=!1,I.em=!1,I.strong=!1,I.strikethrough=!1,I.quote=0,I.indentedCode=!1,I.f==L){var W=O;if(!W){var Q=ne.innerMode(K,I.htmlState);W=Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText}W&&(I.f=c,I.block=y,I.htmlState=null)}return I.trailingSpace=0,I.trailingSpaceNewLine=!1,I.prevLine=I.thisLine,I.thisLine={stream:null},null}function y(I,W){var Q=I.column()===W.indentation,ie=x(W.prevLine.stream),ae=W.indentedCode,xe=W.prevLine.hr,Ze=W.list!==!1,Me=(W.listStack[W.listStack.length-1]||0)+3;W.indentedCode=!1;var Be=W.indentation;if(W.indentationDiff===null&&(W.indentationDiff=W.indentation,Ze)){for(W.list=null;Be=4&&(ae||W.prevLine.fencedCodeEnd||W.prevLine.header||ie))return I.skipToEnd(),W.indentedCode=!0,B.code;if(I.eatSpace())return null;if(Q&&W.indentation<=Me&&(De=I.match(v))&&De[1].length<=6)return W.quote=0,W.header=De[1].length,W.thisLine.header=!0,N.highlightFormatting&&(W.formatting="header"),W.f=W.inline,g(W);if(W.indentation<=Me&&I.eat(">"))return W.quote=Q?1:W.quote+1,N.highlightFormatting&&(W.formatting="quote"),I.eatSpace(),g(W);if(!Ve&&!W.setext&&Q&&W.indentation<=Me&&(De=I.match(_))){var pe=De[1]?"ol":"ul";return W.indentation=Be+I.current().length,W.list=!0,W.quote=0,W.listStack.push(W.indentation),W.em=!1,W.strong=!1,W.code=!1,W.strikethrough=!1,N.taskLists&&I.match(d,!1)&&(W.taskList=!0),W.f=W.inline,N.highlightFormatting&&(W.formatting=["list","list-"+pe]),g(W)}else{if(Q&&W.indentation<=Me&&(De=I.match(n,!0)))return W.quote=0,W.fencedEndRE=new RegExp(De[1]+"+ *$"),W.localMode=N.fencedCodeBlockHighlighting&&w(De[2]||N.fencedCodeBlockDefaultMode),W.localMode&&(W.localState=ne.startState(W.localMode)),W.f=W.block=R,N.highlightFormatting&&(W.formatting="code-block"),W.code=-1,g(W);if(W.setext||(!qe||!Ze)&&!W.quote&&W.list===!1&&!W.code&&!Ve&&!p.test(I.string)&&(De=I.lookAhead(1))&&(De=De.match(b)))return W.setext?(W.header=W.setext,W.setext=0,I.skipToEnd(),N.highlightFormatting&&(W.formatting="header")):(W.header=De[0].charAt(0)=="="?1:2,W.setext=W.header),W.thisLine.header=!0,W.f=W.inline,g(W);if(Ve)return I.skipToEnd(),W.hr=!0,W.thisLine.hr=!0,B.hr;if(I.peek()==="[")return s(I,W,j)}return s(I,W,W.inline)}function L(I,W){var Q=K.token(I,W.htmlState);if(!O){var ie=ne.innerMode(K,W.htmlState);(ie.mode.name=="xml"&&ie.state.tagStart===null&&!ie.state.context&&ie.state.tokenize.isInText||W.md_inside&&I.current().indexOf(">")>-1)&&(W.f=c,W.block=y,W.htmlState=null)}return Q}function R(I,W){var Q=W.listStack[W.listStack.length-1]||0,ie=W.indentation=I.quote?W.push(B.formatting+"-"+I.formatting[Q]+"-"+I.quote):W.push("error"))}if(I.taskOpen)return W.push("meta"),W.length?W.join(" "):null;if(I.taskClosed)return W.push("property"),W.length?W.join(" "):null;if(I.linkHref?W.push(B.linkHref,"url"):(I.strong&&W.push(B.strong),I.em&&W.push(B.em),I.strikethrough&&W.push(B.strikethrough),I.emoji&&W.push(B.emoji),I.linkText&&W.push(B.linkText),I.code&&W.push(B.code),I.image&&W.push(B.image),I.imageAltText&&W.push(B.imageAltText,"link"),I.imageMarker&&W.push(B.imageMarker)),I.header&&W.push(B.header,B.header+"-"+I.header),I.quote&&(W.push(B.quote),!N.maxBlockquoteDepth||N.maxBlockquoteDepth>=I.quote?W.push(B.quote+"-"+I.quote):W.push(B.quote+"-"+N.maxBlockquoteDepth)),I.list!==!1){var ie=(I.listStack.length-1)%3;ie?ie===1?W.push(B.list2):W.push(B.list3):W.push(B.list1)}return I.trailingSpaceNewLine?W.push("trailing-space-new-line"):I.trailingSpace&&W.push("trailing-space-"+(I.trailingSpace%2?"a":"b")),W.length?W.join(" "):null}function m(I,W){return I.match(f,!0)?g(W):void 0}function c(I,W){var Q=W.text(I,W);if(typeof Q!="undefined")return Q;if(W.list)return W.list=null,g(W);if(W.taskList){var ie=I.match(d,!0)[1]===" ";return ie?W.taskOpen=!0:W.taskClosed=!0,N.highlightFormatting&&(W.formatting="task"),W.taskList=!1,g(W)}if(W.taskOpen=!1,W.taskClosed=!1,W.header&&I.match(/^#+$/,!0))return N.highlightFormatting&&(W.formatting="header"),g(W);var ae=I.next();if(W.linkTitle){W.linkTitle=!1;var xe=ae;ae==="("&&(xe=")"),xe=(xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ze="^\\s*(?:[^"+xe+"\\\\]+|\\\\\\\\|\\\\.)"+xe;if(I.match(new RegExp(Ze),!0))return B.linkHref}if(ae==="`"){var Me=W.formatting;N.highlightFormatting&&(W.formatting="code"),I.eatWhile("`");var Be=I.current().length;if(W.code==0&&(!W.quote||Be==1))return W.code=Be,g(W);if(Be==W.code){var qe=g(W);return W.code=0,qe}else return W.formatting=Me,g(W)}else if(W.code)return g(W);if(ae==="\\"&&(I.next(),N.highlightFormatting)){var Ve=g(W),De=B.formatting+"-escape";return Ve?Ve+" "+De:De}if(ae==="!"&&I.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return W.imageMarker=!0,W.image=!0,N.highlightFormatting&&(W.formatting="image"),g(W);if(ae==="["&&W.imageMarker&&I.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return W.imageMarker=!1,W.imageAltText=!0,N.highlightFormatting&&(W.formatting="image"),g(W);if(ae==="]"&&W.imageAltText){N.highlightFormatting&&(W.formatting="image");var Ve=g(W);return W.imageAltText=!1,W.image=!1,W.inline=W.f=D,Ve}if(ae==="["&&!W.image)return W.linkText&&I.match(/^.*?\]/)||(W.linkText=!0,N.highlightFormatting&&(W.formatting="link")),g(W);if(ae==="]"&&W.linkText){N.highlightFormatting&&(W.formatting="link");var Ve=g(W);return W.linkText=!1,W.inline=W.f=I.match(/\(.*?\)| ?\[.*?\]/,!1)?D:c,Ve}if(ae==="<"&&I.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=u,N.highlightFormatting&&(W.formatting="link");var Ve=g(W);return Ve?Ve+=" ":Ve="",Ve+B.linkInline}if(ae==="<"&&I.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=u,N.highlightFormatting&&(W.formatting="link");var Ve=g(W);return Ve?Ve+=" ":Ve="",Ve+B.linkEmail}if(N.xml&&ae==="<"&&I.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var pe=I.string.indexOf(">",I.pos);if(pe!=-1){var se=I.string.substring(I.start,pe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(se)&&(W.md_inside=!0)}return I.backUp(1),W.htmlState=ne.startState(K),l(I,W,L)}if(N.xml&&ae==="<"&&I.match(/^\/\w*?>/))return W.md_inside=!1,"tag";if(ae==="*"||ae==="_"){for(var we=1,ve=I.pos==1?" ":I.string.charAt(I.pos-2);we<3&&I.eat(ae);)we++;var $e=I.peek()||" ",me=!/\s/.test($e)&&(!o.test($e)||/\s/.test(ve)||o.test(ve)),X=!/\s/.test(ve)&&(!o.test(ve)||/\s/.test($e)||o.test($e)),G=null,Y=null;if(we%2&&(!W.em&&me&&(ae==="*"||!X||o.test(ve))?G=!0:W.em==ae&&X&&(ae==="*"||!me||o.test($e))&&(G=!1)),we>1&&(!W.strong&&me&&(ae==="*"||!X||o.test(ve))?Y=!0:W.strong==ae&&X&&(ae==="*"||!me||o.test($e))&&(Y=!1)),Y!=null||G!=null){N.highlightFormatting&&(W.formatting=G==null?"strong":Y==null?"em":"strong em"),G===!0&&(W.em=ae),Y===!0&&(W.strong=ae);var qe=g(W);return G===!1&&(W.em=!1),Y===!1&&(W.strong=!1),qe}}else if(ae===" "&&(I.eat("*")||I.eat("_"))){if(I.peek()===" ")return g(W);I.backUp(1)}if(N.strikethrough){if(ae==="~"&&I.eatWhile(ae)){if(W.strikethrough){N.highlightFormatting&&(W.formatting="strikethrough");var qe=g(W);return W.strikethrough=!1,qe}else if(I.match(/^[^\s]/,!1))return W.strikethrough=!0,N.highlightFormatting&&(W.formatting="strikethrough"),g(W)}else if(ae===" "&&I.match(/^~~/,!0)){if(I.peek()===" ")return g(W);I.backUp(2)}}if(N.emoji&&ae===":"&&I.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){W.emoji=!0,N.highlightFormatting&&(W.formatting="emoji");var ue=g(W);return W.emoji=!1,ue}return ae===" "&&(I.match(/^ +$/,!1)?W.trailingSpace++:W.trailingSpace&&(W.trailingSpaceNewLine=!0)),g(W)}function u(I,W){var Q=I.next();if(Q===">"){W.f=W.inline=c,N.highlightFormatting&&(W.formatting="link");var ie=g(W);return ie?ie+=" ":ie="",ie+B.linkInline}return I.match(/^[^>]+/,!0),B.linkInline}function D(I,W){if(I.eatSpace())return null;var Q=I.next();return Q==="("||Q==="["?(W.f=W.inline=A(Q==="("?")":"]"),N.highlightFormatting&&(W.formatting="link-string"),W.linkHref=!0,g(W)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function A(I){return function(W,Q){var ie=W.next();if(ie===I){Q.f=Q.inline=c,N.highlightFormatting&&(Q.formatting="link-string");var ae=g(Q);return Q.linkHref=!1,ae}return W.match(T[I]),Q.linkHref=!0,g(Q)}}function j(I,W){return I.match(/^([^\]\\]|\\.)*\]:/,!1)?(W.f=U,I.next(),N.highlightFormatting&&(W.formatting="link"),W.linkText=!0,g(W)):s(I,W,c)}function U(I,W){if(I.match(/^\]:/,!0)){W.f=W.inline=H,N.highlightFormatting&&(W.formatting="link");var Q=g(W);return W.linkText=!1,Q}return I.match(/^([^\]\\]|\\.)+/,!0),B.linkText}function H(I,W){return I.eatSpace()?null:(I.match(/^[^\s]+/,!0),I.peek()===void 0?W.linkTitle=!0:I.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),W.f=W.inline=c,B.linkHref+" url")}var V={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:c,text:m,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(I){return{f:I.f,prevLine:I.prevLine,thisLine:I.thisLine,block:I.block,htmlState:I.htmlState&&ne.copyState(K,I.htmlState),indentation:I.indentation,localMode:I.localMode,localState:I.localMode?ne.copyState(I.localMode,I.localState):null,inline:I.inline,text:I.text,formatting:!1,linkText:I.linkText,linkTitle:I.linkTitle,linkHref:I.linkHref,code:I.code,em:I.em,strong:I.strong,strikethrough:I.strikethrough,emoji:I.emoji,header:I.header,setext:I.setext,hr:I.hr,taskList:I.taskList,list:I.list,listStack:I.listStack.slice(0),quote:I.quote,indentedCode:I.indentedCode,trailingSpace:I.trailingSpace,trailingSpaceNewLine:I.trailingSpaceNewLine,md_inside:I.md_inside,fencedEndRE:I.fencedEndRE}},token:function(I,W){if(W.formatting=!1,I!=W.thisLine.stream){if(W.header=0,W.hr=!1,I.match(/^\s*$/,!0))return E(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:I},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=L)){var Q=I.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(W.indentation=Q,W.indentationDiff=null,Q>0)return null}}return W.f(I,W)},innerMode:function(I){return I.block==L?{state:I.htmlState,mode:K}:I.localState?{state:I.localState,mode:I.localMode}:{state:I,mode:V}},indent:function(I,W,Q){return I.block==L&&K.indent?K.indent(I.htmlState,W,Q):I.localState&&I.localMode.indent?I.localMode.indent(I.localState,W,Q):ne.Pass},blankLine:E,getType:g,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return V},"xml"),ne.defineMIME("text/markdown","markdown"),ne.defineMIME("text/x-markdown","markdown")})},mgmH:function(Vt,Ee,k){"use strict";k.d(Ee,"d",function(){return b}),k.d(Ee,"b",function(){return f}),k.d(Ee,"e",function(){return n}),k.d(Ee,"c",function(){return p}),k.d(Ee,"n",function(){return o}),k.d(Ee,"g",function(){return r}),k.d(Ee,"h",function(){return s}),k.d(Ee,"j",function(){return x}),k.d(Ee,"a",function(){return E}),k.d(Ee,"l",function(){return y}),k.d(Ee,"f",function(){return L}),k.d(Ee,"k",function(){return R}),k.d(Ee,"m",function(){return g}),k.d(Ee,"i",function(){return m}),k.d(Ee,"o",function(){return c}),k.d(Ee,"r",function(){return u}),k.d(Ee,"q",function(){return D}),k.d(Ee,"p",function(){return T});var ne=k("miYZ"),z=k("tsqr"),N=k("k1fw"),K=k("9og8"),O=k("WmNS"),w=k.n(O),B=k("oUNq"),C=k("9kvl"),P=k("1vsH"),_=k("m3rI"),d=function(){Object(C.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},v=function(){Object(C.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},b=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return d(),I.next=3,Object(B.s)(Object(N.a)({},U));case 3:if(H=I.sent,!(H.status===0)){I.next=7;break}return I.next=7,Object(P.u)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_couser_info.json"),query:U}));case 7:v();case 8:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),f=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.q)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),n=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.t)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),p=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.r)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),o=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.y)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),r=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.u)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),s=function(){var A=Object(K.a)(w.a.mark(function j(U,H){var V;return w.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(B.w)(Object(N.a)({},U));case 2:V=W.sent,V.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H))):V.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H)));case 4:case"end":return W.stop()}},j)}));return function(U,H){return A.apply(this,arguments)}}(),l=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return d(),I.next=3,Object(B.v)(Object(N.a)({},U));case 3:if(H=I.sent,!(H.status===0)){I.next=7;break}return I.next=7,Object(P.u)("",Object(P.U)({url:_.a.API_SERVER+"/api/homework_commons/".concat(U.categoryId,"/works_list.zip"),query:U}));case 7:v();case 8:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),x=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return d(),I.next=3,Object(B.z)(Object(N.a)({},U));case 3:if(H=I.sent,!(H.status===0)){I.next=7;break}return I.next=7,Object(P.u)("",Object(P.U)({url:_.a.API_SERVER+"/api/polls/".concat(U.categoryId,"/commit_result.xlsx"),query:U}));case 7:v();case 8:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),E=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/attendances/export_xlsx_data.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),y=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/video_study_statics.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),L=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_course_students_info.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),R=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/item_banks/export.xlsx",query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),g=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),m=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.x)(Object(N.a)({},U));case 2:H=I.sent,H.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score"))):H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score")));case 4:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),c=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),V.next=3,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/export_records/".concat(U.id,".xlsx"),query:U}));case 3:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),u=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),D=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(U==null?void 0:U.ec_year_id,"/ec_training_objectives.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),T=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(U==null?void 0:U.ec_year_id,"/ec_graduation_requirements.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}()},n6Qo:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return C});var ne=k("q1tI"),z=k("biw7"),N=k("fyJ8");function K(P){var _=P.className,d=P.index,v=P.children,b=P.colSpan,f=P.rowSpan,n=ne.useContext(z.a),p=n.prefixCls,o=n.fixedInfoList,r=o[d];return ne.createElement(N.a,Object.assign({className:_,index:d,component:"td",prefixCls:p,record:null,dataIndex:null,render:function(){return{children:v,props:{colSpan:b,rowSpan:f}}}},r))}function O(P){return ne.createElement("tr",Object.assign({},P))}function w(P){var _=P.children,d=ne.useContext(z.a),v=d.prefixCls;return ne.createElement("tfoot",{className:"".concat(v,"-summary")},_)}var B=Ee.b=w,C={Cell:K,Row:O}},nnTU:function(Vt,Ee,k){"use strict";k.d(Ee,"b",function(){return C}),k.d(Ee,"a",function(){return P});var ne=k("pmY6"),z=k("746U"),N=k("Cg/j"),K=k("MI8n"),O=k("24hK"),w=k("QDVR"),B=function(){for(var _=0,d=0,v=arguments.length;d2&&arguments[2]!==void 0?arguments[2]:"0",Ge=String(ee);Ge.length=12,_t%=12);var ln=C.useMemo(function(){if(!mt)return[!1,!1];var Fn=[!0,!0];return Qt.forEach(function(Xn){var Zn=Xn.disabled,Gr=Xn.value;if(Zn)return;Gr>=12?Fn[1]=!1:Fn[0]=!1}),Fn},[mt,Qt]),Rn=Object(B.a)(ln,2),Ln=Rn[0],dn=Rn[1],Qn=C.useMemo(function(){return mt?Qt.filter(Hn?function(Fn){return Fn.value>=12}:function(Fn){return Fn.value<12}).map(function(Fn){var Xn=Fn.value%12,Zn=Xn===0?"12":ie(Xn,2);return Object(w.a)(Object(w.a)({},Fn),{},{label:Zn,value:Xn})}):Qt},[mt,Qt]),An=pe(0,59,At,Pt&&Pt(_t)),yr=pe(0,59,$t,Ht&&Ht(_t,wt));Ge.current={onUpDown:function(Xn){var Zn=bn[ot];if(Zn)for(var Gr=Zn.units.findIndex(function(ia){return ia.value===Zn.value}),Zr=Zn.units.length,ta=1;ta1&&(ft=Te.addDate(ft,-7)),ft}function nt(ee,Te,Qe){var Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Te){case"year":return Qe.addYear(ee,Ge*10);case"quarter":case"month":return Qe.addYear(ee,Ge);default:return Qe.addMonth(ee,Ge)}}var He=C.createContext({}),pt=He;function kt(ee){var Te=ee.cellPrefixCls,Qe=ee.generateConfig,Ge=ee.rangedValue,ot=ee.hoverRangedValue,ke=ee.isInView,ft=ee.isSameCell,yt=ee.offsetCell,Re=ee.today,mt=ee.value;function Wt(Dt){var lt,At=yt(Dt,-1),Lt=yt(Dt,1),$t=Me(Ge,0),Ie=Me(Ge,1),Pt=Me(ot,0),Ht=Me(ot,1),fn=qt(Qe,Pt,Ht,Dt);function Wn(wt){return ft($t,wt)}function bn(wt){return ft(Ie,wt)}var xn=ft(Pt,Dt),Kn=ft(Ht,Dt),Hn=(fn||Kn)&&(!ke(At)||bn(At)),_t=(fn||xn)&&(!ke(Lt)||Wn(Lt));return lt={},Object(O.a)(lt,"".concat(Te,"-in-view"),ke(Dt)),Object(O.a)(lt,"".concat(Te,"-in-range"),qt(Qe,$t,Ie,Dt)),Object(O.a)(lt,"".concat(Te,"-range-start"),Wn(Dt)),Object(O.a)(lt,"".concat(Te,"-range-end"),bn(Dt)),Object(O.a)(lt,"".concat(Te,"-range-start-single"),Wn(Dt)&&!Ie),Object(O.a)(lt,"".concat(Te,"-range-end-single"),bn(Dt)&&!$t),Object(O.a)(lt,"".concat(Te,"-range-start-near-hover"),Wn(Dt)&&(ft(At,Pt)||qt(Qe,Pt,Ht,At))),Object(O.a)(lt,"".concat(Te,"-range-end-near-hover"),bn(Dt)&&(ft(Lt,Ht)||qt(Qe,Pt,Ht,Lt))),Object(O.a)(lt,"".concat(Te,"-range-hover"),fn),Object(O.a)(lt,"".concat(Te,"-range-hover-start"),xn),Object(O.a)(lt,"".concat(Te,"-range-hover-end"),Kn),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-start"),Hn),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-end"),_t),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-start-near-range"),Hn&&ft(At,Ie)),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-end-near-range"),_t&&ft(Lt,$t)),Object(O.a)(lt,"".concat(Te,"-today"),ft(Re,Dt)),Object(O.a)(lt,"".concat(Te,"-selected"),ft(mt,Dt)),lt}return Wt}function st(ee){for(var Te=ee.prefixCls,Qe=ee.disabledDate,Ge=ee.onSelect,ot=ee.rowNum,ke=ee.colNum,ft=ee.prefixColumn,yt=ee.rowClassName,Re=ee.baseDate,mt=ee.getCellClassName,Wt=ee.getCellText,Dt=ee.getCellNode,lt=ee.getCellDate,At=ee.titleCell,Lt=ee.headerCells,$t=C.useContext(p),Ie=$t.onDateMouseEnter,Pt=$t.onDateMouseLeave,Ht="".concat(Te,"-cell"),fn=[],Wn=0;Wn2&&arguments[2]!==void 0?arguments[2]:!1;(Pe===$t||xr)&&(Ra(rn),Kn&&Kn(rn),Zr&&Zr(rn,wn),Hn&&!Nt(yt,rn,pa)&&Hn(rn))},yn=function(rn){return ua.current&&ua.current.onKeyDown?([f.a.LEFT,f.a.RIGHT,f.a.UP,f.a.DOWN,f.a.PAGE_UP,f.a.PAGE_DOWN,f.a.ENTER].includes(rn.which)&&rn.preventDefault(),ua.current.onKeyDown(rn)):(Object(d.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Mn=function(rn){ua.current&&ua.current.onBlur&&ua.current.onBlur(rn)};Zn&&Va!=="right"&&(Zn.current={onKeyDown:yn,onClose:function(){ua.current&&ua.current.onClose&&ua.current.onClose()}}),C.useEffect(function(){Re&&!Ia.current&&tt(Re)},[Re]),C.useEffect(function(){Ia.current=!1},[]);var qn,nr=Object(w.a)(Object(w.a)({},ee),{},{operationRef:ua,prefixCls:Ge,viewDate:Ye,value:pa,onViewDateChange:Ae,sourceMode:ut,onPanelChange:Bt,disabledDate:Pe!=="decade"?lt:void 0});delete nr.onChange,delete nr.onSelect;switch(Pe){case"decade":qn=C.createElement(S,Object.assign({},nr,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}}));break;case"year":qn=C.createElement(Br,Object.assign({},nr,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}}));break;case"month":qn=C.createElement(Ct,Object.assign({},nr,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}}));break;case"quarter":qn=C.createElement(En,Object.assign({},nr,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}}));break;case"week":qn=C.createElement(pn,Object.assign({},nr,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}}));break;case"time":delete nr.showTime,qn=C.createElement(me,Object.assign({},nr,Object(b.a)(fn)==="object"?fn:null,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}}));break;default:fn?qn=C.createElement(Rt,Object.assign({},nr,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}})):qn=C.createElement(Ce,Object.assign({},nr,{onSelect:function(rn,wn){Ae(rn),Zt(rn,wn)}}))}var Er,hr,ur=function(){var rn=yt.getNow(),wn=Ve(yt.getHour(rn),yt.getMinute(rn),yt.getSecond(rn),zr?Rn:1,vr?dn:1,Fn?An:1),xr=qe(yt,rn,wn[0],wn[1],wn[2]);Zt(xr,"submit")};ta||(Er=M(Ge,Pe,bn),hr=$({prefixCls:Ge,components:Un,needConfirmButton:yr,okDisabled:!pa||lt&<(pa),locale:ft,showNow:Ht,onNow:yr&&ur,onOk:function(){pa&&(Zt(pa,"submit",!0),Mt&&Mt(pa))}}));var gr;if(Wn&&Pe==="date"&&$t==="date"&&!fn){var Rr=yt.getNow(),rr="".concat(Ge,"-today-btn"),Ur=lt&<(Rr);gr=C.createElement("a",{className:_()(rr,Ur&&"".concat(rr,"-disabled")),"aria-disabled":Ur,onClick:function(){Ur||Zt(Rr,"mouse",!0)}},ft.today)}return C.createElement(p.Provider,{value:Object(w.a)(Object(w.a)({},Xn),{},{hideHeader:"hideHeader"in ee?xn:Xn.hideHeader,hidePrevBtn:ha&&Va==="right",hideNextBtn:ha&&Va==="left"})},C.createElement("div",{tabIndex:Pt,className:_()("".concat(Ge,"-panel"),ot,(Te={},Object(O.a)(Te,"".concat(Ge,"-panel-has-range"),Ta&&Ta[0]&&Ta[1]),Object(O.a)(Te,"".concat(Ge,"-panel-has-range-hover"),$a&&$a[0]&&$a[1]),Object(O.a)(Te,"".concat(Ge,"-panel-rtl"),Qt==="rtl"),Te)),style:ke,onKeyDown:yn,onBlur:Mn,onMouseDown:wt,ref:Gr},qn,Er||hr||gr?C.createElement("div",{className:"".concat(Ge,"-footer")},Er,hr,gr):null))}var q=te,Xe=k("uciX"),zt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function gn(ee){var Te,Qe=ee.prefixCls,Ge=ee.popupElement,ot=ee.popupStyle,ke=ee.visible,ft=ee.dropdownClassName,yt=ee.dropdownAlign,Re=ee.transitionName,mt=ee.getPopupContainer,Wt=ee.children,Dt=ee.range,lt=ee.popupPlacement,At=ee.direction,Lt="".concat(Qe,"-dropdown"),$t=function(){return lt!==void 0?lt:At==="rtl"?"bottomRight":"bottomLeft"};return C.createElement(Xe.a,{showAction:[],hideAction:[],popupPlacement:$t(),builtinPlacements:zt,prefixCls:Lt,popupTransitionName:Re,popup:Ge,popupAlign:yt,popupVisible:ke,popupClassName:_()(ft,(Te={},Object(O.a)(Te,"".concat(Lt,"-range"),Dt),Object(O.a)(Te,"".concat(Lt,"-rtl"),At==="rtl"),Te)),popupStyle:ot,getPopupContainer:mt},Wt)}var Nn=gn;function Yt(ee){var Te=ee.open,Qe=ee.value,Ge=ee.isClickOutside,ot=ee.triggerOpen,ke=ee.forwardKeyDown,ft=ee.blurToCancel,yt=ee.onSubmit,Re=ee.onCancel,mt=ee.onFocus,Wt=ee.onBlur,Dt=Object(C.useState)(!1),lt=Object(B.a)(Dt,2),At=lt[0],Lt=lt[1],$t=Object(C.useState)(!1),Ie=Object(B.a)($t,2),Pt=Ie[0],Ht=Ie[1],fn=Object(C.useRef)(!1),Wn=Object(C.useRef)(!1),bn={onMouseDown:function(){Lt(!0),ot(!0)},onKeyDown:function(Kn){switch(Kn.which){case f.a.ENTER:{Te?yt()!==!1&&Lt(!0):ot(!0),Kn.preventDefault();return}case f.a.TAB:{At&&Te&&!Kn.shiftKey?(Lt(!1),Kn.preventDefault()):!At&&Te&&(!ke(Kn)&&Kn.shiftKey&&(Lt(!0),Kn.preventDefault()));return}case f.a.ESC:{Lt(!0),Re();return}}!Te&&![f.a.SHIFT].includes(Kn.which)?ot(!0):At||ke(Kn)},onFocus:function(Kn){Lt(!0),Ht(!0),mt&&mt(Kn)},onBlur:function(Kn){if(fn.current||!Ge(document.activeElement)){fn.current=!1;return}ft?setTimeout(function(){Ge(document.activeElement)&&Re()},0):Te&&(ot(!1),Wn.current&&yt()),Ht(!1),Wt&&Wt(Kn)}};return Object(C.useEffect)(function(){Wn.current=!1},[Te]),Object(C.useEffect)(function(){Wn.current=!0},[Qe]),Object(C.useEffect)(function(){return T(function(xn){var Kn=xn.target;Te&&(Ge(Kn)?Pt||ot(!1):(fn.current=!0,requestAnimationFrame(function(){fn.current=!1})))})}),[bn,{focused:Pt,typing:At}]}function tr(ee){var Te=ee.valueTexts,Qe=ee.onTextChange,Ge=C.useState(""),ot=Object(B.a)(Ge,2),ke=ot[0],ft=ot[1],yt=C.useRef([]);yt.current=Te;function Re(Wt){ft(Wt),Qe(Wt)}function mt(){ft(yt.current[0])}return C.useEffect(function(){Te.every(function(Wt){return Wt!==ke})&&mt()},[Te.join("||")]),[ke,Re,mt]}var an=k("Gytx"),Jt=k.n(an);function cn(ee,Te){var Qe=Te.formatList,Ge=Te.generateConfig,ot=Te.locale;return Object(E.a)(function(){if(!ee)return[[""],""];for(var ke="",ft=[],yt=0;yt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(mt.current),Pt){Re(Ie);return}mt.current=requestAnimationFrame(function(){Re(Ie)})}var Dt=cn(yt,{formatList:Qe,generateConfig:Ge,locale:ot}),lt=Object(B.a)(Dt,2),At=lt[1];function Lt(Ie){Wt(Ie)}function $t(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Wt(null,Ie)}return Object(C.useEffect)(function(){$t(!0)},[ee]),Object(C.useEffect)(function(){return function(){return cancelAnimationFrame(mt.current)}},[]),[At,Lt,$t]}function zn(ee){var Te,Qe=ee.prefixCls,Ge=Qe===void 0?"rc-picker":Qe,ot=ee.id,ke=ee.tabIndex,ft=ee.style,yt=ee.className,Re=ee.dropdownClassName,mt=ee.dropdownAlign,Wt=ee.popupStyle,Dt=ee.transitionName,lt=ee.generateConfig,At=ee.locale,Lt=ee.inputReadOnly,$t=ee.allowClear,Ie=ee.autoFocus,Pt=ee.showTime,Ht=ee.picker,fn=Ht===void 0?"date":Ht,Wn=ee.format,bn=ee.use12Hours,xn=ee.value,Kn=ee.defaultValue,Hn=ee.open,_t=ee.defaultOpen,wt=ee.defaultOpenValue,Xt=ee.suffixIcon,Mt=ee.clearIcon,Un=ee.disabled,Qt=ee.disabledDate,ln=ee.placeholder,Rn=ee.getPopupContainer,Ln=ee.pickerRef,dn=ee.panelRender,Qn=ee.onChange,An=ee.onOpenChange,yr=ee.onFocus,zr=ee.onBlur,vr=ee.onMouseDown,Fn=ee.onMouseUp,Xn=ee.onMouseEnter,Zn=ee.onMouseLeave,Gr=ee.onContextMenu,Zr=ee.onClick,ta=ee.direction,fa=ee.autoComplete,ia=fa===void 0?"off":fa,ha=C.useRef(null),Va=fn==="date"&&!!Pt||fn==="time",Ta=xe(m(Wn,fn,Pt,bn)),$a=C.useRef(null),ua=C.useRef(null),Ia=Object(v.a)(null,{value:xn,defaultValue:Kn}),ai=Object(B.a)(Ia,2),Oa=ai[0],pa=ai[1],Ra=C.useState(Oa),Ca=Object(B.a)(Ra,2),_e=Ca[0],Ye=Ca[1],tt=C.useRef(null),Ae=Object(v.a)(!1,{value:Hn,defaultValue:_t,postState:function(cr){return Un?!1:cr},onChange:function(cr){An&&An(cr),!cr&&tt.current&&tt.current.onClose&&tt.current.onClose()}}),le=Object(B.a)(Ae,2),ye=le[0],fe=le[1],Pe=cn(_e,{formatList:Ta,generateConfig:lt,locale:At}),je=Object(B.a)(Pe,2),rt=je[0],Ke=je[1],ut=tr({valueTexts:rt,onTextChange:function(cr){var da=lt.locale.parse(At.locale,cr,Ta);da&&(!Qt||!Qt(da))&&Ye(da)}}),St=Object(B.a)(ut,3),Bt=St[0],Zt=St[1],yn=St[2],Mn=function(cr){Ye(cr),pa(cr),Qn&&!Nt(lt,Oa,cr)&&Qn(cr,cr?lt.locale.format(At.locale,cr,Ta[0]):"")},qn=function(cr){if(Un&&cr)return;fe(cr)},nr=function(cr){return ye&&tt.current&&tt.current.onKeyDown?tt.current.onKeyDown(cr):(Object(d.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Er=function(){Fn&&Fn.apply(void 0,arguments),ha.current&&(ha.current.focus(),qn(!0))},hr=Yt({blurToCancel:Va,open:ye,value:Bt,triggerOpen:qn,forwardKeyDown:nr,isClickOutside:function(cr){return!I([$a.current,ua.current],cr)},onSubmit:function(){return Qt&&Qt(_e)?!1:(Mn(_e),qn(!1),yn(),!0)},onCancel:function(){qn(!1),Ye(Oa),yn()},onFocus:yr,onBlur:zr}),ur=Object(B.a)(hr,2),gr=ur[0],Rr=ur[1],rr=Rr.focused,Ur=Rr.typing;C.useEffect(function(){ye||(Ye(Oa),!rt.length||rt[0]===""?Zt(""):Ke!==Bt&&yn())},[ye,rt]),C.useEffect(function(){ye||yn()},[fn]),C.useEffect(function(){Ye(Oa)},[Oa]),Ln&&(Ln.current={focus:function(){ha.current&&ha.current.focus()},blur:function(){ha.current&&ha.current.blur()}});var Jn=Object(w.a)(Object(w.a)({},ee),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),rn=C.createElement(q,Object.assign({},Jn,{generateConfig:lt,className:_()(Object(O.a)({},"".concat(Ge,"-panel-focused"),!Ur)),value:_e,locale:At,tabIndex:-1,onChange:Ye,direction:ta}));dn&&(rn=dn(rn));var wn=C.createElement("div",{className:"".concat(Ge,"-panel-container"),onMouseDown:function(cr){cr.preventDefault()}},rn),xr;Xt&&(xr=C.createElement("span",{className:"".concat(Ge,"-suffix")},Xt));var vn;$t&&Oa&&!Un&&(vn=C.createElement("span",{onMouseDown:function(cr){cr.preventDefault(),cr.stopPropagation()},onMouseUp:function(cr){cr.preventDefault(),cr.stopPropagation(),Mn(null),qn(!1)},className:"".concat(Ge,"-clear")},Mt||C.createElement("span",{className:"".concat(Ge,"-clear-btn")})));var Ft=function(cr,da){(da==="submit"||da!=="key"&&!Va)&&(Mn(cr),qn(!1))},Tn=ta==="rtl"?"bottomRight":"bottomLeft",br=_n(Bt,{formatList:Ta,generateConfig:lt,locale:At}),Pn=Object(B.a)(br,3),Lr=Pn[0],Wr=Pn[1],Nr=Pn[2];return C.createElement(p.Provider,{value:{operationRef:tt,hideHeader:fn==="time",panelRef:$a,onSelect:Ft,open:ye,defaultOpenValue:wt,onDateMouseEnter:Wr,onDateMouseLeave:Nr}},C.createElement(Nn,{visible:ye,popupElement:wn,popupStyle:Wt,prefixCls:Ge,dropdownClassName:Re,dropdownAlign:mt,getPopupContainer:Rn,transitionName:Dt,popupPlacement:Tn,direction:ta},C.createElement("div",{className:_()(Ge,yt,(Te={},Object(O.a)(Te,"".concat(Ge,"-disabled"),Un),Object(O.a)(Te,"".concat(Ge,"-focused"),rr),Object(O.a)(Te,"".concat(Ge,"-rtl"),ta==="rtl"),Te)),style:ft,onMouseDown:vr,onMouseUp:Er,onMouseEnter:Xn,onMouseLeave:Zn,onContextMenu:Gr,onClick:Zr},C.createElement("div",{className:_()("".concat(Ge,"-input"),Object(O.a)({},"".concat(Ge,"-input-placeholder"),!!Lr)),ref:ua},C.createElement("input",Object.assign({id:ot,tabIndex:ke,disabled:Un,readOnly:Lt||!Ur,value:Lr||Bt,onChange:function(cr){Zt(cr.target.value)},autoFocus:Ie,placeholder:ln,ref:ha,title:Bt},gr,{size:c(fn,Ta[0])},Ze(ee),{autoComplete:ia})),xr,vn))))}var lr=function(ee){Object(N.a)(Qe,ee);var Te=Object(K.a)(Qe);function Qe(){var Ge;return Object(ne.a)(this,Qe),Ge=Te.apply(this,arguments),Ge.pickerRef=C.createRef(),Ge.focus=function(){Ge.pickerRef.current&&Ge.pickerRef.current.focus()},Ge.blur=function(){Ge.pickerRef.current&&Ge.pickerRef.current.blur()},Ge}return Object(z.a)(Qe,[{key:"render",value:function(){return C.createElement(zn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Qe}(C.Component),ir=lr;function Tr(ee,Te,Qe){var Ge=ee.picker,ot=ee.locale,ke=ee.selectedValue,ft=ee.disabledDate,yt=ee.disabled,Re=ee.generateConfig,mt=Me(ke,0),Wt=Me(ke,1);function Dt(Ie){var Pt=Re.getYear(Ie),Ht=Re.locale.getWeek(ot.locale,Ie);return Pt*100+Ht}function lt(Ie){var Pt=Re.getYear(Ie),Ht=Re.getMonth(Ie);return Pt*100+Ht}function At(Ie){var Pt=Re.getYear(Ie),Ht=be(Re,Ie);return Pt*10+Ht}var Lt=C.useCallback(function(Ie){if(ft&&ft(Ie))return!0;if(yt[1]&&Wt)return!Tt(Re,Ie,Wt)&&Re.isAfter(Ie,Wt);if(Te&&Wt)switch(Ge){case"quarter":return At(Ie)>At(Wt);case"month":return lt(Ie)>lt(Wt);case"week":return Dt(Ie)>Dt(Wt);default:return!Tt(Re,Ie,Wt)&&Re.isAfter(Ie,Wt)}return!1},[ft,yt[1],Wt,Te]),$t=C.useCallback(function(Ie){if(ft&&ft(Ie))return!0;if(yt[0]&&mt)return!Tt(Re,Ie,Wt)&&Re.isAfter(mt,Ie);if(Qe&&mt)switch(Ge){case"quarter":return At(Ie)0&&arguments[0]!==void 0?arguments[0]:!1,Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},er=null;Nr&&Ma&&Ma[0]&&Ma[1]&&Lt.isAfter(Ma[1],Ma[0])&&(er=Ma);var kr=xn;if(xn&&Object(b.a)(xn)==="object"&&xn.defaultValue){var oa=xn.defaultValue;kr=Object(w.a)(Object(w.a)({},xn),{},{defaultValue:Me(oa,Ke)||void 0})}var vi=null;return Ln&&(vi=function(Aa,Xa){return Ln(Aa,Xa,{range:Ke?"end":"start"})}),C.createElement(pt.Provider,{value:{inRange:!0,panelPosition:wr,rangedValue:Xi||rr,hoverRangedValue:er}},C.createElement(q,Object.assign({},ee,Bn,{dateRender:vi,showTime:kr,mode:wn[Ke],generateConfig:Lt,style:void 0,direction:Ia,disabledDate:Ke===0?br:Pn,disabledTime:function(Aa){return Rn?Rn(Aa,Ke===0?"start":"end"):!1},className:_()(Object(O.a)({},"".concat(ke,"-panel-focused"),Ke===0?!va:!so)),value:Me(rr,Ke),locale:$t,tabIndex:-1,onPanelChange:function(Aa,Xa){vn(Be(wn,Xa,Ke),Be(rr,Aa,Ke));var gi=Aa;wr==="right"&&wn[Ke]===Xa&&(gi=nt(gi,Xa,Lt,-1)),ur(gi,Ke)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var ca=0,Ua=0;Ke&&tt.current&&le.current&&Ye.current&&(ca=tt.current.offsetWidth+le.current.offsetWidth,Ye.current.offsetWidth&&ca>Ye.current.offsetWidth&&(Ua=ca));var Pi=Ia==="rtl"?{right:ca}:{left:ca};function ci(){var wr,Bn=M(ke,wn[Ke],Gr),er=$({prefixCls:ke,components:$a,needConfirmButton:Ra,okDisabled:!Me(rr,Ke)||ln&&ln(rr[Ke]),locale:$t,rangeList:Vr,onOk:function(){Me(rr,Ke)&&(ja(rr,Ke),Ta&&Ta(rr))}});if(bn!=="time"&&!xn){var kr=hr(Ke),oa=nt(kr,bn,Lt),vi=wn[Ke],ii=vi===bn,Aa=jr(ii?"left":!1,{pickerValue:kr,onPickerValueChange:function(wa){ur(wa,Ke)}}),Xa=jr("right",{pickerValue:oa,onPickerValueChange:function(wa){ur(nt(wa,bn,Lt,-1),Ke)}});Ia==="rtl"?wr=C.createElement(C.Fragment,null,Xa,ii&&Aa):wr=C.createElement(C.Fragment,null,Aa,ii&&Xa)}else wr=jr();var gi=C.createElement(C.Fragment,null,C.createElement("div",{className:"".concat(ke,"-panels")},wr),(Bn||er)&&C.createElement("div",{className:"".concat(ke,"-footer")},Bn,er));return dn&&(gi=dn(gi)),C.createElement("div",{className:"".concat(ke,"-panel-container"),style:{marginLeft:Ua},ref:Ye,onMouseDown:function(wa){wa.preventDefault()}},gi)}var Ui=C.createElement("div",{className:_()("".concat(ke,"-range-wrapper"),"".concat(ke,"-").concat(bn,"-range-wrapper")),style:{minWidth:_a}},C.createElement("div",{className:"".concat(ke,"-range-arrow"),style:Pi}),ci()),di;zr&&(di=C.createElement("span",{className:"".concat(ke,"-suffix")},zr));var Ea;yr&&(Me(Mn,0)&&!Bt[0]||Me(Mn,1)&&!Bt[1])&&(Ea=C.createElement("span",{onMouseDown:function(Bn){Bn.preventDefault(),Bn.stopPropagation()},onMouseUp:function(Bn){Bn.preventDefault(),Bn.stopPropagation();var er=Mn;Bt[0]||(er=Be(er,null,0)),Bt[1]||(er=Be(er,null,1)),ja(er,null),Qr(!1,Ke)},className:"".concat(ke,"-clear")},vr||C.createElement("span",{className:"".concat(ke,"-clear-btn")})));var Fi={size:c(bn,Pe[0])},Bi=0,Wi=0;tt.current&&Ae.current&&le.current&&(Ke===0?Wi=tt.current.offsetWidth:(Bi=ca,Wi=Ae.current.offsetWidth));var Ha=Ia==="rtl"?{right:Bi}:{left:Bi},Kr=function(Bn,er){var kr=Be(rr,Bn,Ke);er==="submit"||er!=="key"&&!Ra?(ja(kr,Ke),Ke===0?$i():ro()):Ur(kr)};return C.createElement(p.Provider,{value:{operationRef:St,hideHeader:bn==="time",onDateMouseEnter:Do,onDateMouseLeave:Ao,hideRanges:!0,onSelect:Kr,open:Nr}},C.createElement(Nn,{visible:Nr,popupElement:Ui,popupStyle:mt,prefixCls:ke,dropdownClassName:Wt,dropdownAlign:lt,getPopupContainer:At,transitionName:Dt,range:!0,direction:Ia},C.createElement("div",Object.assign({ref:_e,className:_()(ke,"".concat(ke,"-range"),Re,(Te={},Object(O.a)(Te,"".concat(ke,"-disabled"),Bt[0]&&Bt[1]),Object(O.a)(Te,"".concat(ke,"-focused"),Ke===0?Da:oo),Object(O.a)(Te,"".concat(ke,"-rtl"),Ia==="rtl"),Te)),style:yt,onClick:Ci,onMouseDown:Ji},Ze(ee)),C.createElement("div",{className:_()("".concat(ke,"-input"),(Qe={},Object(O.a)(Qe,"".concat(ke,"-input-active"),Ke===0),Object(O.a)(Qe,"".concat(ke,"-input-placeholder"),!!mi),Qe)),ref:tt},C.createElement("input",Object.assign({id:ft,disabled:Bt[0],readOnly:Xn||!va,value:mi||Ti,onChange:function(Bn){ki(Bn.target.value)},autoFocus:Pt,placeholder:Me(Ie,0)||"",ref:ye},Wa,Fi,{autoComplete:pa}))),C.createElement("div",{className:"".concat(ke,"-range-separator"),ref:le},_t),C.createElement("div",{className:_()("".concat(ke,"-input"),(Ge={},Object(O.a)(Ge,"".concat(ke,"-input-active"),Ke===1),Object(O.a)(Ge,"".concat(ke,"-input-placeholder"),!!ui),Ge)),ref:Ae},C.createElement("input",Object.assign({disabled:Bt[1],readOnly:Xn||!so,value:ui||Oi,onChange:function(Bn){Vi(Bn.target.value)},placeholder:Me(Ie,1)||"",ref:fe},qa,Fi,{autoComplete:pa}))),C.createElement("div",{className:"".concat(ke,"-active-bar"),style:Object(w.a)(Object(w.a)({},Ha),{},{width:Wi,position:"absolute"})}),di,Ea)))}var Dn=function(ee){Object(N.a)(Qe,ee);var Te=Object(K.a)(Qe);function Qe(){var Ge;return Object(ne.a)(this,Qe),Ge=Te.apply(this,arguments),Ge.pickerRef=C.createRef(),Ge.focus=function(){Ge.pickerRef.current&&Ge.pickerRef.current.focus()},Ge.blur=function(){Ge.pickerRef.current&&Ge.pickerRef.current.blur()},Ge}return Object(z.a)(Qe,[{key:"render",value:function(){return C.createElement(Pr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Qe}(C.Component),sr=Dn,Or=Ee.b=ir},osHv:function(Vt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";var z=ne.Pos;function N(o,r){return o.line-r.line||o.ch-r.ch}var K="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",O=K+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+K+"]["+O+"]*)","g");function B(o,r,s,l){this.line=r,this.ch=s,this.cm=o,this.text=o.getLine(r),this.min=l?Math.max(l.from,o.firstLine()):o.firstLine(),this.max=l?Math.min(l.to-1,o.lastLine()):o.lastLine()}function C(o,r){var s=o.cm.getTokenTypeAt(z(o.line,r));return s&&/\btag\b/.test(s)}function P(o){return o.line>=o.max?void 0:(o.ch=0,o.text=o.cm.getLine(++o.line),!0)}function _(o){return o.line<=o.min?void 0:(o.text=o.cm.getLine(--o.line),o.ch=o.text.length,!0)}function d(o){for(;;){var r=o.text.indexOf(">",o.ch);if(r==-1){if(P(o))continue;return}if(!C(o,r+1)){o.ch=r+1;continue}var s=o.text.lastIndexOf("/",r),l=s>-1&&!/\S/.test(o.text.slice(s+1,r));return o.ch=r+1,l?"selfClose":"regular"}}function v(o){for(;;){var r=o.ch?o.text.lastIndexOf("<",o.ch-1):-1;if(r==-1){if(_(o))continue;return}if(!C(o,r+1)){o.ch=r;continue}w.lastIndex=r,o.ch=r;var s=w.exec(o.text);if(s&&s.index==r)return s}}function b(o){for(;;){w.lastIndex=o.ch;var r=w.exec(o.text);if(!r){if(P(o))continue;return}if(!C(o,r.index+1)){o.ch=r.index+1;continue}return o.ch=r.index+r[0].length,r}}function f(o){for(;;){var r=o.ch?o.text.lastIndexOf(">",o.ch-1):-1;if(r==-1){if(_(o))continue;return}if(!C(o,r+1)){o.ch=r;continue}var s=o.text.lastIndexOf("/",r),l=s>-1&&!/\S/.test(o.text.slice(s+1,r));return o.ch=r+1,l?"selfClose":"regular"}}function n(o,r){for(var s=[];;){var l=b(o),x,E=o.line,y=o.ch-(l?l[0].length:0);if(!l||!(x=d(o)))return;if(x=="selfClose")continue;if(l[1]){for(var L=s.length-1;L>=0;--L)if(s[L]==l[2]){s.length=L;break}if(L<0&&(!r||r==l[2]))return{tag:l[2],from:z(E,y),to:z(o.line,o.ch)}}else s.push(l[2])}}function p(o,r){for(var s=[];;){var l=f(o);if(!l)return;if(l=="selfClose"){v(o);continue}var x=o.line,E=o.ch,y=v(o);if(!y)return;if(y[1])s.push(y[2]);else{for(var L=s.length-1;L>=0;--L)if(s[L]==y[2]){s.length=L;break}if(L<0&&(!r||r==y[2]))return{tag:y[2],from:z(o.line,o.ch),to:z(x,E)}}}}ne.registerHelper("fold","xml",function(o,r){for(var s=new B(o,r.line,0);;){var l=b(s);if(!l||s.line!=r.line)return;var x=d(s);if(!x)return;if(!l[1]&&x!="selfClose"){var E=z(s.line,s.ch),y=n(s,l[2]);return y&&N(y.from,E)>0?{from:E,to:y.from}:null}}}),ne.findMatchingTag=function(o,r,s){var l=new B(o,r.line,r.ch,s);if(l.text.indexOf(">")==-1&&l.text.indexOf("<")==-1)return;var x=d(l),E=x&&z(l.line,l.ch),y=x&&v(l);if(!x||!y||N(l,r)>0)return;var L={from:z(l.line,l.ch),to:E,tag:y[2]};return x=="selfClose"?{open:L,close:null,at:"open"}:y[1]?{open:p(l,y[2]),close:L,at:"close"}:(l=new B(o,E.line,E.ch,s),{open:L,close:n(l,y[2]),at:"open"})},ne.findEnclosingTag=function(o,r,s,l){for(var x=new B(o,r.line,r.ch,s);;){var E=p(x,l);if(!E)break;var y=new B(o,r.line,r.ch,s),L=n(y,E.tag);if(L)return{open:E,close:L}}},ne.scanForClosingTag=function(o,r,s,l){var x=new B(o,r.line,r.ch,l?{from:0,to:l}:null);return n(x,s)}})},p5ED:function(Vt,Ee,k){"use strict";var ne=k("+L6B"),z=k("2/Rp"),N=k("5Dmo"),K=k("3S7+"),O=k("k1fw"),w=k("9og8"),B=k("tJVT"),C=k("WmNS"),P=k.n(C),_=k("q1tI"),d=k.n(_),v=k("vHTk"),b=k.n(v),f=k("yEEn"),n=k("ZW9T"),p=k("1vsH"),o=k("V0Rq"),r=k("m3rI");Ee.a=function(s){var l,x,E,y,L,R,g=s.editOffice,m=g===void 0?"view":g,c=s.name,u=s.data,D=s.theme,T=s.type,A=s.filename,j=s.monacoEditor,U=s.className,H=s.style,V=s.close,I=s.onClose,W=s.hasMask,Q=s.disabledDownload,ie=s.onImgDimensions,ae=s.otherData,xe=Object(_.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ze=Object(B.a)(xe,2),Me=Ze[0],Be=Ze[1],qe=Object(_.useState)(""),Ve=Object(B.a)(qe,2),De=Ve[0],pe=Ve[1],se=Object(_.useState)(),we=Object(B.a)(se,2),ve=we[0],$e=we[1],me=window.ENV==="build"?"/react/build":"",X=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,G,Y=1024*1024,ue=10*Y,be=Object(_.useRef)();(l=u)!==null&&l!==void 0&&l.startsWith("/api")&&T!=="txt"&&(u=r.a.API_SERVER+u),T==="office"&&(G=Object(p.P)(u).filesize,G>ue&&(T="other")),A&&(j.filename=A),Object(_.useEffect)(function(){var Ut,It,Nt=(Ut=document.cookie)===null||Ut===void 0||((It=Ut.replace(/\s/g,""))===null||It===void 0)?void 0:It.split(";");Nt==null||Nt.map(function(qt){var hn=qt.split("=");hn[0]==="_educoder_session"&&pe(hn[1])})},[]),Object(_.useEffect)(function(){T==="office"&&We()},[T,u]);var We=function(){var Ut=Object(w.a)(P.a.mark(function It(){var Nt,qt,hn;return P.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return console.log("data:",u),Nt=u,u.startsWith("http")||(Nt=location.origin+Nt),qt=new URL(Nt).pathname.split("/").pop(),He.next=6,Object(o.U)({attachment_id:qt});case 6:hn=He.sent,$e(hn);case 8:case"end":return He.stop()}},It)}));return function(){return Ut.apply(this,arguments)}}(),ze=function(){if(u.startsWith("http")||u.startsWith("blob:")){Tt();return}Object(p.x)(A||"educoder",u,A)},Tt=function(){Object(p.v)(A||"educoder",decodeURIComponent(u))};return d.a.createElement("div",{style:Object(O.a)({},H||{}),className:"".concat(W&&b.a.bgBlack," ").concat(T?b.a.wrp:"hide")},V&&d.a.createElement("div",{className:b.a.close,ref:be},!!ie&&d.a.createElement(K.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return be.current}},d.a.createElement("span",{onClick:function(){I(),ie()}},d.a.createElement("i",{className:"icon-yulanpizhu"}))),!Q&&d.a.createElement(K.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return be.current}},d.a.createElement("span",{onClick:Tt},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(K.a,{title:"\u5173\u95ED",getPopupContainer:function(){return be.current}},d.a.createElement("span",{className:"",onClick:I},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(b.a[U]," ").concat(U," ").concat(b.a.monaco," ").concat(T==="txt"?"show":"hide")},T==="txt"&&d.a.createElement(n.b,j)),T==="audio"&&d.a.createElement("audio",{src:"".concat(((x=u)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=u)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(u),autoPlay:!0}),T==="video"&&d.a.createElement(d.a.Fragment,null,((y=u)===null||y===void 0?void 0:y.indexOf("http"))>-1?d.a.createElement("video",{controls:!0,src:"".concat(u),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(u),autoPlay:!0})),T==="office"&&ve&&d.a.createElement("iframe",{src:"".concat(me,"/office.html?key=").concat(ve.key,"&url=").concat(X+ve.url,"&callbackUrl=").concat(X+ve.callbackUrl,"&fileType=").concat(ve.fileType,"&title=").concat(ve.title,"&model=").concat(m,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Q)}),(T==="xlsx"||T==="doc"||T==="pptx"||T==="docx")&&d.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(ae.key,"&url=").concat(r.a.API_SERVER+ae.url,"&callbackUrl=").concat(r.a.API_SERVER+ae.callbackUrl,"&fileType=").concat(ae.fileType,"&title=").concat(ae.title,"&model=").concat(ae.model)}),T==="html"&&d.a.createElement("iframe",{src:u+"&disposition=inline"}),T==="pdf"&&d.a.createElement("embed",{className:b.a.embed,src:u}),T==="image"&&d.a.createElement("img",{src:"".concat(((L=u)===null||L===void 0?void 0:L.indexOf("http://"))>-1||((R=u)===null||R===void 0?void 0:R.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(u)}),T==="other"&&d.a.createElement("div",null,d.a.createElement(z.a,{type:"primary",size:"large",onClick:ze},d.a.createElement(f.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),T==="download"&&d.a.createElement(z.a,{type:"primary",size:"large",onClick:ze},d.a.createElement(f.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Vt,Ee,k){},pmY6:function(Vt,Ee,k){"use strict";k.d(Ee,"g",function(){return O}),k.d(Ee,"f",function(){return w}),k.d(Ee,"e",function(){return B}),k.d(Ee,"h",function(){return C}),k.d(Ee,"b",function(){return P}),k.d(Ee,"a",function(){return _}),k.d(Ee,"d",function(){return d}),k.d(Ee,"c",function(){return v});var ne=!1,z="__is_disposable_tracked__";function N(b){if(!ne)return;if(b&&b!==_.None)try{b[z]=!0}catch(f){}}function K(b){if(!ne)return b;var f=new Error("Potentially leaked disposable").stack;return setTimeout(function(){b[z]||console.log(f)},3e3),b}function O(b){return typeof b.dispose=="function"&&b.dispose.length===0}function w(b){return Array.isArray(b)?(b.forEach(function(f){f&&(N(f),f.dispose())}),[]):b?(N(b),b.dispose(),b):void 0}function B(){for(var b=[],f=0;f=N.length?{done:!0}:{done:!1,value:N[w++]}},e:function(v){throw v},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var C=!0,P=!1,_;return{s:function(){O=N[Symbol.iterator]()},n:function(){var v=O.next();return C=v.done,v},e:function(v){P=!0,_=v},f:function(){try{!C&&O.return!=null&&O.return()}finally{if(P)throw _}}}}},rUJ1:function(Vt,Ee){const k=/[&<>"']/,ne=/[&<>"']/g,z=/[<>"']|&(?!#?\w+;)/,N=/[<>"']|&(?!#?\w+;)/g,K={"&":"&","<":"<",">":">",'"':""","'":"'"},O=R=>K[R];function w(R,g){if(g){if(k.test(R))return R.replace(ne,O)}else if(z.test(R))return R.replace(N,O);return R}const B=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function C(R){return R.replace(B,(g,m)=>(m=m.toLowerCase(),m==="colon"?":":m.charAt(0)==="#"?m.charAt(1)==="x"?String.fromCharCode(parseInt(m.substring(2),16)):String.fromCharCode(+m.substring(1)):""))}const P=/(^|[^\[])\^/g;function _(R,g){R=R.source||R,g=g||"";const m={replace:(c,u)=>(u=u.source||u,u=u.replace(P,"$1"),R=R.replace(c,u),m),getRegex:()=>new RegExp(R,g)};return m}const d=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(R,g,m){if(R){let c;try{c=decodeURIComponent(C(m)).replace(d,"").toLowerCase()}catch(u){return null}if(c.indexOf("javascript:")===0||c.indexOf("vbscript:")===0||c.indexOf("data:")===0)return null}g&&!v.test(m)&&(m=r(g,m));try{m=encodeURI(m).replace(/%25/g,"%")}catch(c){return null}return m}const f={},n=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,o=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(R,g){f[" "+R]||(n.test(R)?f[" "+R]=R+"/":f[" "+R]=E(R,"/",!0)),R=f[" "+R];const m=R.indexOf(":")===-1;return g.substring(0,2)==="//"?m?g:R.replace(p,"$1")+g:g.charAt(0)==="/"?m?g:R.replace(o,"$1")+g:R+g}const s={exec:function(){}};function l(R){let g=1,m,c;for(;g{let j=!1,U=T;for(;--U>=0&&A[U]==="\\";)j=!j;return j?"|":" |"}),c=m.split(/ \|/);let u=0;if(c.length>g)c.splice(g);else for(;c.length1)Object(_.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(_.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=l[0];if(w.isValidElement(x)&&Object(d.c)(x)){var E=x.ref;l[0]=w.cloneElement(x,{ref:Object(d.a)(E,this.setChildNode)})}return l.length===1?l[0]:l.map(function(y,L){return!w.isValidElement(y)||"key"in y&&y.key!==null?y:w.cloneElement(y,{key:"".concat(b,"-").concat(L)})})}}]),o}(w.Component);f.displayName="ResizeObserver",Ee.a=f},ulZh:function(Vt,Ee,k){typeof window!="undefined"&&function(z,N){Vt.exports=N()}(this,function(){return function(ne){var z={};function N(K){if(z[K])return z[K].exports;var O=z[K]={i:K,l:!1,exports:{}};return ne[K].call(O.exports,O,O.exports,N),O.l=!0,O.exports}return N.m=ne,N.c=z,N.d=function(K,O,w){N.o(K,O)||Object.defineProperty(K,O,{enumerable:!0,get:w})},N.r=function(K){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},N.t=function(K,O){if(O&1&&(K=N(K)),O&8)return K;if(O&4&&typeof K=="object"&&K&&K.__esModule)return K;var w=Object.create(null);if(N.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:K}),O&2&&typeof K!="string")for(var B in K)N.d(w,B,function(C){return K[C]}.bind(null,B));return w},N.n=function(K){var O=K&&K.__esModule?function(){return K.default}:function(){return K};return N.d(O,"a",O),O},N.o=function(K,O){return Object.prototype.hasOwnProperty.call(K,O)},N.p="/dist/",N(N.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ne,z,N){"use strict";var K=Object.prototype.hasOwnProperty,O="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(O=!1));function B(d,v,b){this.fn=d,this.context=v,this.once=b||!1}function C(d,v,b,f,n){if(typeof b!="function")throw new TypeError("The listener must be a function");var p=new B(b,f||d,n),o=O?O+v:v;return d._events[o]?d._events[o].fn?d._events[o]=[d._events[o],p]:d._events[o].push(p):(d._events[o]=p,d._eventsCount++),d}function P(d,v){--d._eventsCount===0?d._events=new w:delete d._events[v]}function _(){this._events=new w,this._eventsCount=0}_.prototype.eventNames=function(){var v=[],b,f;if(this._eventsCount===0)return v;for(f in b=this._events)K.call(b,f)&&v.push(O?f.slice(1):f);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(b)):v},_.prototype.listeners=function(v){var b=O?O+v:v,f=this._events[b];if(!f)return[];if(f.fn)return[f.fn];for(var n=0,p=f.length,o=new Array(p);n0},!1)}function d(v,b){for(var f={main:[b]},n={main:[]},p={main:{}};_(f);)for(var o=Object.keys(f),r=0;rut&&(Jt=ut-Ft),Object(O.useMemo)(function(){if(!ye.length)return[0,0];for(var bn=ye.length,Hn=bn,or=0;orKe+Jt){Hn=or-1;break}}for(var br=0,hr=bn-1;hr>=0;hr-=1){var pr=_e.get(ye[hr].key)||x;if(pr[rt]1&&arguments[1]!==void 0?arguments[1]:!1,Ae=Ye&&typeof Ye.getBoundingClientRect=="function"&&Ye.getBoundingClientRect().width;if(Ae){if(tt){var le=getComputedStyle(Ye),ye=le.marginLeft,fe=le.marginRight;Ae+=+ye.replace("px","")+ +fe.replace("px","")}Ae=+Ae.toFixed(6)}return Ae||0},We=function(Ye,tt,Ae){Ye&&Object(U.a)(Ye.style)==="object"&&(Ye.style[tt]=Ae)},ze=function(){return ve.any},Tt=k("bdgK"),Ut=k("i8i4"),It=k.n(Ut),Nt=k("wgJM"),Zt=k("l4aY"),fn=k("m+aA"),nt=k("c+Xe"),He=k("zT1h"),pt=k("QC+M");function Mt(_e,Ye,tt){return tt?_e[0]===Ye[0]:_e[0]===Ye[0]&&_e[1]===Ye[1]}function st(_e,Ye,tt){var Ae=_e[Ye]||{};return Object(K.a)(Object(K.a)({},Ae),tt)}function Et(_e,Ye,tt,Ae){for(var le=tt.points,ye=Object.keys(_e),fe=0;fe1&&arguments[1]!==void 0?arguments[1]:2;Ye();var ye=Object(Nt.a)(function(){le<=1?Ae({isCanceled:function(){return ye!==_e.current}}):tt(Ae,le-1)});_e.current=ye}return O.useEffect(function(){return function(){Ye()}},[]),[tt,Ye]},lr=[dt,en,tn,it],fr=!1,ir=!0;function Tn(_e){return _e===tn||_e===it}var Wr=function(_e,Ye){var tt=O.useState(Ct),Ae=Object(z.a)(tt,2),le=Ae[0],ye=Ae[1],fe=xn(),Pe=Object(z.a)(fe,2),je=Pe[0],rt=Pe[1];function Ke(){ye(dt)}return on(function(){if(le!==Ct&&le!==it){var ut=lr.indexOf(le),St=lr[ut+1],Ft=Ye(le);Ft===fr?ye(St):je(function(Jt){function bn(){if(Jt.isCanceled())return;ye(St)}Ft===!0?bn():Promise.resolve(Ft).then(bn)})}},[_e,le]),O.useEffect(function(){return function(){rt()}},[]),[Ke,le]},ta=function(_e){var Ye=Object(O.useRef)(),tt=Object(O.useRef)(_e);tt.current=_e;var Ae=O.useCallback(function(fe){tt.current(fe)},[]);function le(fe){fe&&(fe.removeEventListener(Ht,Ae),fe.removeEventListener(an,Ae))}function ye(fe){Ye.current&&Ye.current!==fe&&le(Ye.current),fe&&fe!==Ye.current&&(fe.addEventListener(Ht,Ae),fe.addEventListener(an,Ae),Ye.current=fe)}return O.useEffect(function(){return function(){le(Ye.current)}},[]),[ye,le]};function jr(_e,Ye,tt,Ae){var le=Ae.motionEnter,ye=le===void 0?!0:le,fe=Ae.motionAppear,Pe=fe===void 0?!0:fe,je=Ae.motionLeave,rt=je===void 0?!0:je,Ke=Ae.motionDeadline,ut=Ae.motionLeaveImmediately,St=Ae.onAppearPrepare,Ft=Ae.onEnterPrepare,Jt=Ae.onLeavePrepare,bn=Ae.onAppearStart,Hn=Ae.onEnterStart,or=Ae.onLeaveStart,ar=Ae.onAppearActive,br=Ae.onEnterActive,hr=Ae.onLeaveActive,pr=Ae.onAppearEnd,Cr=Ae.onEnterEnd,Rr=Ae.onLeaveEnd,$n=Ae.onVisibleChanged,Ar=vt(),Jn=Object(z.a)(Ar,2),rn=Jn[0],Sn=Jn[1],Er=vt(xt),Mr=Object(z.a)(Er,2),Vn=Mr[0],kr=Mr[1],Yr=vt(null),Ir=Object(z.a)(Yr,2),gn=Ir[0],hn=Ir[1],Rn=Object(O.useRef)(!1),tr=Object(O.useRef)(null),vn=Object(O.useRef)(!1),Hr=Object(O.useRef)(null);function ja(){var ea=tt();return ea||Hr.current}var Ea=Object(O.useRef)(!1);function fa(ea){var Xr=ja();if(ea&&!ea.deadline&&ea.target!==Xr)return;var xa;Vn===ct&&Ea.current?xa=pr==null?void 0:pr(Xr,ea):Vn===ge&&Ea.current?xa=Cr==null?void 0:Cr(Xr,ea):Vn===Ne&&Ea.current&&(xa=Rr==null?void 0:Rr(Xr,ea)),xa!==!1&&!vn.current&&(kr(xt),hn(null))}var ra=ta(fa),$r=Object(z.a)(ra,1),Jr=$r[0],aa=O.useMemo(function(){var ea,Xr,xa;switch(Vn){case"appear":return ea={},Object(ne.a)(ea,dt,St),Object(ne.a)(ea,en,bn),Object(ne.a)(ea,tn,ar),ea;case"enter":return Xr={},Object(ne.a)(Xr,dt,Ft),Object(ne.a)(Xr,en,Hn),Object(ne.a)(Xr,tn,br),Xr;case"leave":return xa={},Object(ne.a)(xa,dt,Jt),Object(ne.a)(xa,en,or),Object(ne.a)(xa,tn,hr),xa;default:return{}}},[Vn]),Ua=Wr(Vn,function(ea){if(ea===dt){var Xr=aa[dt];return Xr?Xr(ja()):fr}if(Qr in aa){var xa;hn(((xa=aa[Qr])===null||xa===void 0?void 0:xa.call(aa,ja(),null))||null)}return Qr===tn&&(Jr(ja()),Ke>0&&(clearTimeout(tr.current),tr.current=setTimeout(function(){fa({deadline:!0})},Ke))),ir}),fi=Object(z.a)(Ua,2),si=fi[0],Qr=fi[1],Ja=Tn(Qr);Ea.current=Ja,on(function(){Sn(Ye);var ea=Rn.current;if(Rn.current=!0,!_e)return;var Xr;!ea&&Ye&&Pe&&(Xr=ct),ea&&Ye&&ye&&(Xr=ge),(ea&&!Ye&&rt||!ea&&ut&&!Ye&&rt)&&(Xr=Ne),Xr&&(kr(Xr),si())},[Ye]),Object(O.useEffect)(function(){(Vn===ct&&!Pe||Vn===ge&&!ye||Vn===Ne&&!rt)&&kr(xt)},[Pe,ye,rt]),Object(O.useEffect)(function(){return function(){clearTimeout(tr.current),vn.current=!0}},[]),Object(O.useEffect)(function(){rn!==void 0&&Vn===xt&&($n==null||$n(rn))},[rn,Vn]);var Za=gn;return aa[dt]&&Qr===en&&(Za=Object(K.a)({transition:"none"},Za)),[Vn,Qr,Za,rn!=null?rn:Ye]}var mr=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){return Object(L.a)(this,tt),Ye.apply(this,arguments)}return Object(R.a)(tt,[{key:"render",value:function(){return this.props.children}}]),tt}(O.Component),Br=mr;function Zr(_e){var Ye=_e;Object(U.a)(_e)==="object"&&(Ye=_e.transitionSupport);function tt(le){return!!(le.motionName&&Ye)}var Ae=O.forwardRef(function(le,ye){var fe=le.visible,Pe=fe===void 0?!0:fe,je=le.removeOnLeave,rt=je===void 0?!0:je,Ke=le.forceRender,ut=le.children,St=le.motionName,Ft=le.leavedClassName,Jt=le.eventProps,bn=tt(le),Hn=Object(O.useRef)(),or=Object(O.useRef)();function ar(){try{return Object(fn.a)(Hn.current||or.current)}catch(kr){return null}}var br=jr(bn,Pe,ar,le),hr=Object(z.a)(br,4),pr=hr[0],Cr=hr[1],Rr=hr[2],$n=hr[3],Ar=O.useRef($n);$n&&(Ar.current=!0);var Jn=Object(O.useRef)(ye);Jn.current=ye;var rn=O.useCallback(function(kr){Hn.current=kr,Object(nt.b)(Jn.current,kr)},[]),Sn,Er=Object(K.a)(Object(K.a)({},Jt),{},{visible:Pe});if(!ut)Sn=null;else if(pr===xt||!tt(le))$n?Sn=ut(Object(K.a)({},Er),rn):!rt&&Ar.current?Sn=ut(Object(K.a)(Object(K.a)({},Er),{},{className:Ft}),rn):Ke?Sn=ut(Object(K.a)(Object(K.a)({},Er),{},{style:{display:"none"}}),rn):Sn=null;else{var Mr,Vn;Cr===dt?Vn="prepare":Tn(Cr)?Vn="active":Cr===en&&(Vn="start"),Sn=ut(Object(K.a)(Object(K.a)({},Er),{},{className:B()(bt(St,pr),(Mr={},Object(ne.a)(Mr,bt(St,"".concat(pr,"-").concat(Vn)),Vn),Object(ne.a)(Mr,St,typeof St=="string"),Mr)),style:Rr}),rn)}return O.createElement(Br,{ref:or},Sn)});return Ae.displayName="CSSMotion",Ae}var ua=Zr(pn),jt="add",On="keep",vr="remove",Dr="removed";function Sr(_e){var Ye;return _e&&Object(U.a)(_e)==="object"&&"key"in _e?Ye=_e:Ye={key:_e},Object(K.a)(Object(K.a)({},Ye),{},{key:String(Ye.key)})}function xr(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return _e.map(Sr)}function J(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tt=[],Ae=0,le=Ye.length,ye=xr(_e),fe=xr(Ye);ye.forEach(function(rt){for(var Ke=!1,ut=Ae;ut1});return je.forEach(function(rt){tt=tt.filter(function(Ke){var ut=Ke.key,St=Ke.status;return ut!==rt||St!==vr}),tt.forEach(function(Ke){Ke.key===rt&&(Ke.status=On)})}),tt}var S=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function M(_e){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ua,tt=function(Ae){Object(m.a)(ye,Ae);var le=Object(c.a)(ye);function ye(){var fe;return Object(L.a)(this,ye),fe=le.apply(this,arguments),fe.state={keyEntities:[]},fe.removeKey=function(Pe){fe.setState(function(je){var rt=je.keyEntities;return{keyEntities:rt.map(function(Ke){return Ke.key!==Pe?Ke:Object(K.a)(Object(K.a)({},Ke),{},{status:Dr})})}})},fe}return Object(R.a)(ye,[{key:"render",value:function(){var Pe=this,je=this.state.keyEntities,rt=this.props,Ke=rt.component,ut=rt.children,St=rt.onVisibleChanged,Ft=Object(N.a)(rt,["component","children","onVisibleChanged"]),Jt=Ke||O.Fragment,bn={};return S.forEach(function(Hn){bn[Hn]=Ft[Hn],delete Ft[Hn]}),delete Ft.keys,O.createElement(Jt,Ft,je.map(function(Hn){var or=Hn.status,ar=Object(N.a)(Hn,["status"]),br=or===jt||or===On;return O.createElement(Ye,Object(y.a)({},bn,{key:ar.key,visible:br,eventProps:ar,onVisibleChanged:function(pr){St==null||St(pr,{key:ar.key}),pr||Pe.removeKey(ar.key)}}),ut)}))}}],[{key:"getDerivedStateFromProps",value:function(Pe,je){var rt=Pe.keys,Ke=je.keyEntities,ut=xr(rt),St=J(Ke,ut);return{keyEntities:St.filter(function(Ft){var Jt=Ke.find(function(bn){var Hn=bn.key;return Ft.key===Hn});return!(Jt&&Jt.status===Dr&&Ft.status===vr)})}}}]),ye}(O.Component);return tt.defaultProps={component:"div"},tt}var $=M(pn),te=ua;function q(_e){var Ye=_e.prefixCls,tt=_e.motion,Ae=_e.animation,le=_e.transitionName;return tt||(Ae?{motionName:"".concat(Ye,"-").concat(Ae)}:le?{motionName:le}:null)}function Xe(_e){var Ye=_e.prefixCls,tt=_e.visible,Ae=_e.zIndex,le=_e.mask,ye=_e.maskMotion,fe=_e.maskAnimation,Pe=_e.maskTransitionName;if(!le)return null;var je={};return(ye||Pe||fe)&&(je=Object(K.a)({motionAppear:!0},q({motion:ye,prefixCls:Ye,transitionName:Pe,animation:fe}))),O.createElement(te,Object(y.a)({},je,{visible:tt,removeOnLeave:!0}),function(rt){var Ke=rt.className;return O.createElement("div",{style:{zIndex:Ae},className:B()("".concat(Ye,"-mask"),Ke)})})}var Kt=k("9mu1"),yn=k("o0o1"),In=k.n(yn),Xt=k("HaE+"),rr=["measure","align",null,"motion"],nn=function(_e,Ye){var tt=Object(O.useState)(null),Ae=Object(z.a)(tt,2),le=Ae[0],ye=Ae[1],fe=Object(O.useRef)(),Pe=Object(O.useRef)(!1);function je(ut){Pe.current||ye(ut)}function rt(){Nt.a.cancel(fe.current)}function Ke(ut){rt(),fe.current=Object(Nt.a)(function(){je(function(St){switch(le){case"align":return"motion";case"motion":return"stable";default:}return St}),ut==null||ut()})}return Object(O.useEffect)(function(){je("measure")},[_e]),Object(O.useEffect)(function(){switch(le){case"measure":Ye();break;default:}le&&(fe.current=Object(Nt.a)(Object(Xt.a)(In.a.mark(function ut(){var St,Ft;return In.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:St=rr.indexOf(le),Ft=rr[St+1],Ft&&St!==-1&&je(Ft);case 3:case"end":return bn.stop()}},ut)}))))},[le]),Object(O.useEffect)(function(){return function(){Pe.current=!0,rt()}},[]),[le,Ke]},Qt=function(_e){var Ye=O.useState({width:0,height:0}),tt=Object(z.a)(Ye,2),Ae=tt[0],le=tt[1];function ye(Pe){le({width:Pe.offsetWidth,height:Pe.offsetHeight})}var fe=O.useMemo(function(){var Pe={};if(_e){var je=Ae.width,rt=Ae.height;_e.indexOf("height")!==-1&&rt?Pe.height=rt:_e.indexOf("minHeight")!==-1&&rt&&(Pe.minHeight=rt),_e.indexOf("width")!==-1&&je?Pe.width=je:_e.indexOf("minWidth")!==-1&&je&&(Pe.minWidth=je)}return Pe},[_e,Ae]);return[fe,ye]},un=O.forwardRef(function(_e,Ye){var tt=_e.visible,Ae=_e.prefixCls,le=_e.className,ye=_e.style,fe=_e.children,Pe=_e.zIndex,je=_e.stretch,rt=_e.destroyPopupOnHide,Ke=_e.forceRender,ut=_e.align,St=_e.point,Ft=_e.getRootDomNode,Jt=_e.getClassNameFromAlign,bn=_e.onAlign,Hn=_e.onMouseEnter,or=_e.onMouseLeave,ar=_e.onMouseDown,br=_e.onTouchStart,hr=Object(O.useRef)(),pr=Object(O.useRef)(),Cr=Object(O.useState)(),Rr=Object(z.a)(Cr,2),$n=Rr[0],Ar=Rr[1],Jn=Qt(je),rn=Object(z.a)(Jn,2),Sn=rn[0],Er=rn[1];function Mr(){je&&Er(Ft())}var Vn=nn(tt,Mr),kr=Object(z.a)(Vn,2),Yr=kr[0],Ir=kr[1],gn=Object(O.useRef)();function hn(){return St||Ft}function Rn(){var ra;(ra=hr.current)===null||ra===void 0||ra.forceAlign()}function tr(ra,$r){var Jr=Jt($r);$n!==Jr&&Ar(Jr),Yr==="align"&&($n!==Jr?Promise.resolve().then(function(){Rn()}):Ir(function(){var aa;(aa=gn.current)===null||aa===void 0||aa.call(gn)}),bn==null||bn(ra,$r))}var vn=Object(K.a)({},q(_e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ra){var $r=vn[ra];vn[ra]=function(Jr,aa){return Ir(),$r==null?void 0:$r(Jr,aa)}});function Hr(){return new Promise(function(ra){gn.current=ra})}O.useEffect(function(){!vn.motionName&&Yr==="motion"&&Ir()},[vn.motionName,Yr]),O.useImperativeHandle(Ye,function(){return{forceAlign:Rn,getElement:function(){return pr.current}}});var ja=Object(K.a)(Object(K.a)({},Sn),{},{zIndex:Pe,opacity:Yr==="motion"||Yr==="stable"||!tt?void 0:0,pointerEvents:Yr==="stable"?void 0:"none"},ye),Ea=!0;(ut==null?void 0:ut.points)&&(Yr==="align"||Yr==="stable")&&(Ea=!1);var fa=fe;return O.Children.count(fe)>1&&(fa=O.createElement("div",{className:"".concat(Ae,"-content")},fe)),O.createElement(te,Object(y.a)({visible:tt,ref:pr,leavedClassName:"".concat(Ae,"-hidden")},vn,{onAppearPrepare:Hr,onEnterPrepare:Hr,removeOnLeave:rt,forceRender:Ke}),function(ra,$r){var Jr=ra.className,aa=ra.style,Ua=B()(Ae,le,$n,Jr);return O.createElement(Kt.a,{target:hn(),key:"popup",ref:hr,monitorWindowResize:!0,disabled:Ea,align:ut,onAlign:tr},O.createElement("div",{ref:$r,className:Ua,onMouseEnter:Hn,onMouseLeave:or,onMouseDownCapture:ar,onTouchStartCapture:br,style:Object(K.a)(Object(K.a)({},aa),ja)},fa))})});un.displayName="PopupInner";var wn=un,zn=O.forwardRef(function(_e,Ye){var tt=_e.prefixCls,Ae=_e.visible,le=_e.zIndex,ye=_e.children,fe=_e.mobile;fe=fe===void 0?{}:fe;var Pe=fe.popupClassName,je=fe.popupStyle,rt=fe.popupMotion,Ke=rt===void 0?{}:rt,ut=fe.popupRender,St=O.useRef();O.useImperativeHandle(Ye,function(){return{forceAlign:function(){},getElement:function(){return St.current}}});var Ft=Object(K.a)({zIndex:le},je),Jt=ye;return O.Children.count(ye)>1&&(Jt=O.createElement("div",{className:"".concat(tt,"-content")},ye)),ut&&(Jt=ut(Jt)),O.createElement(te,Object(y.a)({visible:Ae,ref:St,removeOnLeave:!0},Ke),function(bn,Hn){var or=bn.className,ar=bn.style,br=B()(tt,Pe,or);return O.createElement("div",{ref:Hn,className:br,style:Object(K.a)(Object(K.a)({},ar),Ft)},Jt)})});zn.displayName="MobilePopupInner";var cr=zn,sr=["visible","mobile"],Tr=O.forwardRef(function(_e,Ye){var tt=_e.visible,Ae=_e.mobile,le=Object(N.a)(_e,sr),ye=Object(O.useState)(tt),fe=Object(z.a)(ye,2),Pe=fe[0],je=fe[1],rt=Object(O.useState)(!1),Ke=Object(z.a)(rt,2),ut=Ke[0],St=Ke[1],Ft=Object(K.a)(Object(K.a)({},le),{},{visible:Pe});Object(O.useEffect)(function(){je(tt),tt&&Ae&&St(Fe())},[tt,Ae]);var Jt=ut?O.createElement(cr,Object(y.a)({},Ft,{mobile:Ae,ref:Ye})):O.createElement(wn,Object(y.a)({},Ft,{ref:Ye}));return O.createElement("div",null,O.createElement(Xe,Ft),Jt)});Tr.displayName="Popup";var Zn=Tr,Xn=O.createContext(null),Nn=Xn;function mn(){}function Pr(){return""}function Lr(_e){return _e?_e.ownerDocument:window.document}var An=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ur(_e){var Ye=function(tt){Object(m.a)(le,tt);var Ae=Object(c.a)(le);function le(ye){var fe;Object(L.a)(this,le),fe=Ae.call(this,ye),fe.popupRef=O.createRef(),fe.triggerRef=O.createRef(),fe.attachId=void 0,fe.clickOutsideHandler=void 0,fe.touchOutsideHandler=void 0,fe.contextMenuOutsideHandler1=void 0,fe.contextMenuOutsideHandler2=void 0,fe.mouseDownTimeout=void 0,fe.focusTime=void 0,fe.preClickTime=void 0,fe.preTouchTime=void 0,fe.delayTimer=void 0,fe.hasPopupMouseDown=void 0,fe.onMouseEnter=function(je){var rt=fe.props.mouseEnterDelay;fe.fireEvents("onMouseEnter",je),fe.delaySetPopupVisible(!0,rt,rt?null:je)},fe.onMouseMove=function(je){fe.fireEvents("onMouseMove",je),fe.setPoint(je)},fe.onMouseLeave=function(je){fe.fireEvents("onMouseLeave",je),fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)},fe.onPopupMouseEnter=function(){fe.clearDelayTimer()},fe.onPopupMouseLeave=function(je){var rt;if(je.relatedTarget&&!je.relatedTarget.setTimeout&&Object(Zt.a)((rt=fe.popupRef.current)===null||rt===void 0?void 0:rt.getElement(),je.relatedTarget))return;fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)},fe.onFocus=function(je){fe.fireEvents("onFocus",je),fe.clearDelayTimer(),fe.isFocusToShow()&&(fe.focusTime=Date.now(),fe.delaySetPopupVisible(!0,fe.props.focusDelay))},fe.onMouseDown=function(je){fe.fireEvents("onMouseDown",je),fe.preClickTime=Date.now()},fe.onTouchStart=function(je){fe.fireEvents("onTouchStart",je),fe.preTouchTime=Date.now()},fe.onBlur=function(je){fe.fireEvents("onBlur",je),fe.clearDelayTimer(),fe.isBlurToHide()&&fe.delaySetPopupVisible(!1,fe.props.blurDelay)},fe.onContextMenu=function(je){je.preventDefault(),fe.fireEvents("onContextMenu",je),fe.setPopupVisible(!0,je)},fe.onContextMenuClose=function(){fe.isContextMenuToShow()&&fe.close()},fe.onClick=function(je){if(fe.fireEvents("onClick",je),fe.focusTime){var rt;if(fe.preClickTime&&fe.preTouchTime?rt=Math.min(fe.preClickTime,fe.preTouchTime):fe.preClickTime?rt=fe.preClickTime:fe.preTouchTime&&(rt=fe.preTouchTime),Math.abs(rt-fe.focusTime)<20)return;fe.focusTime=0}fe.preClickTime=0,fe.preTouchTime=0,fe.isClickToShow()&&(fe.isClickToHide()||fe.isBlurToHide())&&je&&je.preventDefault&&je.preventDefault();var Ke=!fe.state.popupVisible;(fe.isClickToHide()&&!Ke||Ke&&fe.isClickToShow())&&fe.setPopupVisible(!fe.state.popupVisible,je)},fe.onPopupMouseDown=function(){if(fe.hasPopupMouseDown=!0,clearTimeout(fe.mouseDownTimeout),fe.mouseDownTimeout=window.setTimeout(function(){fe.hasPopupMouseDown=!1},0),fe.context){var je;(je=fe.context).onPopupMouseDown.apply(je,arguments)}},fe.onDocumentClick=function(je){if(fe.props.mask&&!fe.props.maskClosable)return;var rt=je.target,Ke=fe.getRootDomNode(),ut=fe.getPopupDomNode();(!Object(Zt.a)(Ke,rt)||fe.isContextMenuOnly())&&!Object(Zt.a)(ut,rt)&&!fe.hasPopupMouseDown&&fe.close()},fe.getRootDomNode=function(){var je=fe.props.getTriggerDOMNode;if(je)return je(fe.triggerRef.current);try{var rt=Object(fn.a)(fe.triggerRef.current);if(rt)return rt}catch(Ke){}return It.a.findDOMNode(Object(g.a)(fe))},fe.getPopupClassNameFromAlign=function(je){var rt=[],Ke=fe.props,ut=Ke.popupPlacement,St=Ke.builtinPlacements,Ft=Ke.prefixCls,Jt=Ke.alignPoint,bn=Ke.getPopupClassNameFromAlign;return ut&&St&&rt.push(Et(St,Ft,je,Jt)),bn&&rt.push(bn(je)),rt.join(" ")},fe.getComponent=function(){var je=fe.props,rt=je.prefixCls,Ke=je.destroyPopupOnHide,ut=je.popupClassName,St=je.onPopupAlign,Ft=je.popupMotion,Jt=je.popupAnimation,bn=je.popupTransitionName,Hn=je.popupStyle,or=je.mask,ar=je.maskAnimation,br=je.maskTransitionName,hr=je.maskMotion,pr=je.zIndex,Cr=je.popup,Rr=je.stretch,$n=je.alignPoint,Ar=je.mobile,Jn=je.forceRender,rn=fe.state,Sn=rn.popupVisible,Er=rn.point,Mr=fe.getPopupAlign(),Vn={};return fe.isMouseEnterToShow()&&(Vn.onMouseEnter=fe.onPopupMouseEnter),fe.isMouseLeaveToHide()&&(Vn.onMouseLeave=fe.onPopupMouseLeave),Vn.onMouseDown=fe.onPopupMouseDown,Vn.onTouchStart=fe.onPopupMouseDown,O.createElement(Zn,Object(y.a)({prefixCls:rt,destroyPopupOnHide:Ke,visible:Sn,point:$n&&Er,className:ut,align:Mr,onAlign:St,animation:Jt,getClassNameFromAlign:fe.getPopupClassNameFromAlign},Vn,{stretch:Rr,getRootDomNode:fe.getRootDomNode,style:Hn,mask:or,zIndex:pr,transitionName:bn,maskAnimation:ar,maskTransitionName:br,maskMotion:hr,ref:fe.popupRef,motion:Ft,mobile:Ar,forceRender:Jn}),typeof Cr=="function"?Cr():Cr)},fe.attachParent=function(je){Nt.a.cancel(fe.attachId);var rt=fe.props,Ke=rt.getPopupContainer,ut=rt.getDocument,St=fe.getRootDomNode(),Ft;Ke?(St||Ke.length===0)&&(Ft=Ke(St)):Ft=ut(fe.getRootDomNode()).body,Ft?Ft.appendChild(je):fe.attachId=Object(Nt.a)(function(){fe.attachParent(je)})},fe.getContainer=function(){var je=fe.props.getDocument,rt=je(fe.getRootDomNode()).createElement("div");return rt.style.position="absolute",rt.style.top="0",rt.style.left="0",rt.style.width="100%",fe.attachParent(rt),rt},fe.setPoint=function(je){var rt=fe.props.alignPoint;if(!rt||!je)return;fe.setState({point:{pageX:je.pageX,pageY:je.pageY}})},fe.handlePortalUpdate=function(){fe.state.prevPopupVisible!==fe.state.popupVisible&&fe.props.afterPopupVisibleChange(fe.state.popupVisible)},fe.triggerContextValue={onPopupMouseDown:fe.onPopupMouseDown};var Pe;return"popupVisible"in ye?Pe=!!ye.popupVisible:Pe=!!ye.defaultPopupVisible,fe.state={prevPopupVisible:Pe,popupVisible:Pe},An.forEach(function(je){fe["fire".concat(je)]=function(rt){fe.fireEvents(je,rt)}}),fe}return Object(R.a)(le,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var fe=this.props,Pe=this.state;if(Pe.popupVisible){var je;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(je=fe.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(He.a)(je,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(je=je||fe.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(He.a)(je,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(je=je||fe.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(He.a)(je,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(He.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Nt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var fe;return((fe=this.popupRef.current)===null||fe===void 0?void 0:fe.getElement())||null}},{key:"getPopupAlign",value:function(){var fe=this.props,Pe=fe.popupPlacement,je=fe.popupAlign,rt=fe.builtinPlacements;return Pe&&rt?st(rt,Pe,je):je}},{key:"setPopupVisible",value:function(fe,Pe){var je=this.props.alignPoint,rt=this.state.popupVisible;this.clearDelayTimer(),rt!==fe&&("popupVisible"in this.props||this.setState({popupVisible:fe,prevPopupVisible:rt}),this.props.onPopupVisibleChange(fe)),je&&Pe&&fe&&this.setPoint(Pe)}},{key:"delaySetPopupVisible",value:function(fe,Pe,je){var rt=this,Ke=Pe*1e3;if(this.clearDelayTimer(),Ke){var ut=je?{pageX:je.pageX,pageY:je.pageY}:null;this.delayTimer=window.setTimeout(function(){rt.setPopupVisible(fe,ut),rt.clearDelayTimer()},Ke)}else this.setPopupVisible(fe,je)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(fe){var Pe=this.props.children.props,je=this.props;return Pe[fe]&&je[fe]?this["fire".concat(fe)]:Pe[fe]||je[fe]}},{key:"isClickToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("click")!==-1||je.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var fe=this.props.action;return fe==="contextMenu"||fe.length===1&&fe[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("contextMenu")!==-1||je.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var fe=this.props,Pe=fe.action,je=fe.hideAction;return Pe.indexOf("click")!==-1||je.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("hover")!==-1||je.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var fe=this.props,Pe=fe.action,je=fe.hideAction;return Pe.indexOf("hover")!==-1||je.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var fe=this.props,Pe=fe.action,je=fe.showAction;return Pe.indexOf("focus")!==-1||je.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var fe=this.props,Pe=fe.action,je=fe.hideAction;return Pe.indexOf("focus")!==-1||je.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var fe;(fe=this.popupRef.current)===null||fe===void 0||fe.forceAlign()}}},{key:"fireEvents",value:function(fe,Pe){var je=this.props.children.props[fe];je&&je(Pe);var rt=this.props[fe];rt&&rt(Pe)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var fe=this.state.popupVisible,Pe=this.props,je=Pe.children,rt=Pe.forceRender,Ke=Pe.alignPoint,ut=Pe.className,St=Pe.autoDestroy,Ft=O.Children.only(je),Jt={key:"trigger"};this.isContextMenuToShow()?Jt.onContextMenu=this.onContextMenu:Jt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Jt.onClick=this.onClick,Jt.onMouseDown=this.onMouseDown,Jt.onTouchStart=this.onTouchStart):(Jt.onClick=this.createTwoChains("onClick"),Jt.onMouseDown=this.createTwoChains("onMouseDown"),Jt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Jt.onMouseEnter=this.onMouseEnter,Ke&&(Jt.onMouseMove=this.onMouseMove)):Jt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Jt.onMouseLeave=this.onMouseLeave:Jt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Jt.onFocus=this.onFocus,Jt.onBlur=this.onBlur):(Jt.onFocus=this.createTwoChains("onFocus"),Jt.onBlur=this.createTwoChains("onBlur"));var bn=B()(Ft&&Ft.props&&Ft.props.className,ut);bn&&(Jt.className=bn);var Hn=Object(K.a)({},Jt);Object(nt.c)(Ft)&&(Hn.ref=Object(nt.a)(this.triggerRef,Ft.ref));var or=O.cloneElement(Ft,Hn),ar;return(fe||this.popupRef.current||rt)&&(ar=O.createElement(_e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!fe&&St&&(ar=null),O.createElement(Nn.Provider,{value:this.triggerContextValue},or,ar)}}],[{key:"getDerivedStateFromProps",value:function(fe,Pe){var je=fe.popupVisible,rt={};return je!==void 0&&Pe.popupVisible!==je&&(rt.popupVisible=je,rt.prevPopupVisible=Pe.popupVisible),rt}}]),le}(O.Component);return Ye.contextType=Nn,Ye.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Pr,getDocument:Lr,onPopupVisibleChange:mn,afterPopupVisibleChange:mn,onPopupAlign:mn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ye}var Or=ur(pt.a),ee={adjustX:1,adjustY:1},Te={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},Qe={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},Ge=Te,ot=0,ke={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ft=function(Ye,tt,Ae){var le=X(tt),ye=Ye.getState();Ye.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},ye.defaultActiveFirst),{},Object(ne.a)({},le,Ae))})},yt=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(Ae){var le;Object(L.a)(this,tt),le=Ye.call(this,Ae),le.onDestroy=function(Ke){le.props.onDestroy(Ke)},le.onKeyDown=function(Ke){var ut=Ke.keyCode,St=le.menuInstance,Ft=le.props.store,Jt=le.getVisible();if(ut===p.a.ENTER)return le.onTitleClick(Ke),ft(Ft,le.props.eventKey,!0),!0;if(ut===p.a.RIGHT)return Jt?St.onKeyDown(Ke):(le.triggerOpenChange(!0),ft(Ft,le.props.eventKey,!0)),!0;if(ut===p.a.LEFT){var bn;if(Jt)bn=St.onKeyDown(Ke);else return;return bn||(le.triggerOpenChange(!1),bn=!0),bn}return Jt&&(ut===p.a.UP||ut===p.a.DOWN)?St.onKeyDown(Ke):void 0},le.onOpenChange=function(Ke){le.props.onOpenChange(Ke)},le.onPopupVisibleChange=function(Ke){le.triggerOpenChange(Ke,Ke?"mouseenter":"mouseleave")},le.onMouseEnter=function(Ke){var ut=le.props,St=ut.eventKey,Ft=ut.onMouseEnter,Jt=ut.store;ft(Jt,le.props.eventKey,!1),Ft({key:St,domEvent:Ke})},le.onMouseLeave=function(Ke){var ut=le.props,St=ut.parentMenu,Ft=ut.eventKey,Jt=ut.onMouseLeave;St.subMenuInstance=Object(g.a)(le),Jt({key:Ft,domEvent:Ke})},le.onTitleMouseEnter=function(Ke){var ut=le.props,St=ut.eventKey,Ft=ut.onItemHover,Jt=ut.onTitleMouseEnter;Ft({key:St,hover:!0}),Jt({key:St,domEvent:Ke})},le.onTitleMouseLeave=function(Ke){var ut=le.props,St=ut.parentMenu,Ft=ut.eventKey,Jt=ut.onItemHover,bn=ut.onTitleMouseLeave;St.subMenuInstance=Object(g.a)(le),Jt({key:Ft,hover:!1}),bn({key:Ft,domEvent:Ke})},le.onTitleClick=function(Ke){var ut=Object(g.a)(le),St=ut.props;if(St.onTitleClick({key:St.eventKey,domEvent:Ke}),St.triggerSubMenuAction==="hover")return;le.triggerOpenChange(!le.getVisible(),"click"),ft(St.store,le.props.eventKey,!1)},le.onSubMenuClick=function(Ke){typeof le.props.onClick=="function"&&le.props.onClick(le.addKeyPath(Ke))},le.onSelect=function(Ke){le.props.onSelect(Ke)},le.onDeselect=function(Ke){le.props.onDeselect(Ke)},le.getPrefixCls=function(){return"".concat(le.props.rootPrefixCls,"-submenu")},le.getActiveClassName=function(){return"".concat(le.getPrefixCls(),"-active")},le.getDisabledClassName=function(){return"".concat(le.getPrefixCls(),"-disabled")},le.getSelectedClassName=function(){return"".concat(le.getPrefixCls(),"-selected")},le.getOpenClassName=function(){return"".concat(le.props.rootPrefixCls,"-submenu-open")},le.getVisible=function(){return le.state.isOpen},le.getMode=function(){return le.state.mode},le.saveMenuInstance=function(Ke){le.menuInstance=Ke},le.addKeyPath=function(Ke){return Object(K.a)(Object(K.a)({},Ke),{},{keyPath:(Ke.keyPath||[]).concat(le.props.eventKey)})},le.triggerOpenChange=function(Ke,ut){var St=le.props.eventKey,Ft=function(){le.onOpenChange({key:St,item:Object(g.a)(le),trigger:ut,open:Ke})};ut==="mouseenter"?le.mouseenterTimeout=setTimeout(function(){Ft()},0):Ft()},le.isChildrenSelected=function(){var Ke={find:!1};return Y(le.props.children,le.props.selectedKeys,Ke),Ke.find},le.isInlineMode=function(){return le.getMode()==="inline"},le.adjustWidth=function(){if(!le.subMenuTitle||!le.menuInstance)return;var Ke=Ut.findDOMNode(le.menuInstance);if(Ke.offsetWidth>=le.subMenuTitle.offsetWidth)return;Ke.style.minWidth="".concat(le.subMenuTitle.offsetWidth,"px")},le.saveSubMenuTitle=function(Ke){le.subMenuTitle=Ke},le.getBaseProps=function(){var Ke=Object(g.a)(le),ut=Ke.props,St=le.getMode();return{mode:St==="horizontal"?"vertical":St,visible:le.getVisible(),level:ut.level+1,inlineIndent:ut.inlineIndent,focusable:!1,onClick:le.onSubMenuClick,onSelect:le.onSelect,onDeselect:le.onDeselect,onDestroy:le.onDestroy,selectedKeys:ut.selectedKeys,eventKey:"".concat(ut.eventKey,"-menu-"),openKeys:ut.openKeys,motion:ut.motion,onOpenChange:le.onOpenChange,subMenuOpenDelay:ut.subMenuOpenDelay,parentMenu:Object(g.a)(le),subMenuCloseDelay:ut.subMenuCloseDelay,forceSubMenuRender:ut.forceSubMenuRender,triggerSubMenuAction:ut.triggerSubMenuAction,builtinPlacements:ut.builtinPlacements,defaultActiveFirst:ut.store.getState().defaultActiveFirst[X(ut.eventKey)],multiple:ut.multiple,prefixCls:ut.rootPrefixCls,id:le.internalMenuId,manualRef:le.saveMenuInstance,itemIcon:ut.itemIcon,expandIcon:ut.expandIcon,direction:ut.direction}},le.getMotion=function(Ke,ut){var St=Object(g.a)(le),Ft=St.haveRendered,Jt=le.props,bn=Jt.motion,Hn=Jt.rootPrefixCls,or=Object(K.a)(Object(K.a)({},bn),{},{leavedClassName:"".concat(Hn,"-hidden"),removeOnLeave:!1,motionAppear:Ft||!ut||Ke!=="inline"});return or};var ye=Ae.store,fe=Ae.eventKey,Pe=ye.getState(),je=Pe.defaultActiveFirst;le.isRootMenu=!1;var rt=!1;return je&&(rt=je[fe]),ft(ye,fe,rt),le.state={mode:Ae.mode,isOpen:Ae.isOpen},le}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var le=this,ye=this.props,fe=ye.mode,Pe=ye.parentMenu,je=ye.manualRef,rt=ye.isOpen,Ke=function(){le.setState({mode:fe,isOpen:rt})},ut=rt!==this.state.isOpen,St=fe!==this.state.mode;if((St||ut)&&(Nt.a.cancel(this.updateStateRaf),St?this.updateStateRaf=Object(Nt.a)(Ke):Ke()),je&&je(this),fe!=="horizontal"||!(Pe==null?void 0:Pe.isRootMenu)||!rt)return;this.minWidthTimeout=setTimeout(function(){return le.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var le=this.props,ye=le.onDestroy,fe=le.eventKey;ye&&ye(fe),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Nt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(le,ye){var fe=this.getBaseProps();return O.createElement(En,Object(y.a)({},fe,{id:this.internalMenuId,className:le,style:ye}),this.props.children)}},{key:"renderChildren",value:function(){var le=this,ye=this.getBaseProps(),fe=ye.mode,Pe=ye.visible,je=ye.forceSubMenuRender,rt=ye.direction,Ke=this.getMotion(fe,Pe);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Pe||je,!this.haveOpened)return O.createElement("div",null);var ut=B()("".concat(ye.prefixCls,"-sub"),Object(ne.a)({},"".concat(ye.prefixCls,"-rtl"),rt==="rtl"));return this.isInlineMode()?O.createElement(te,Object(y.a)({visible:ye.visible,forceRender:je},Ke),function(St){var Ft=St.className,Jt=St.style,bn=B()(ut,Ft);return le.renderPopupMenu(bn,Jt)}):this.renderPopupMenu(ut)}},{key:"render",value:function(){var le,ye,fe,Pe=Object(K.a)({},this.props),je=this.getVisible(),rt=this.getPrefixCls(),Ke=this.isInlineMode(),ut=this.getMode(),St=B()(rt,"".concat(rt,"-").concat(ut),(le={},Object(ne.a)(le,Pe.className,!!Pe.className),Object(ne.a)(le,this.getOpenClassName(),je),Object(ne.a)(le,this.getActiveClassName(),Pe.active||je&&!Ke),Object(ne.a)(le,this.getDisabledClassName(),Pe.disabled),Object(ne.a)(le,this.getSelectedClassName(),this.isChildrenSelected()),le));this.internalMenuId||(Pe.eventKey?this.internalMenuId="".concat(Pe.eventKey,"$Menu"):(ot+=1,this.internalMenuId="$__$".concat(ot,"$Menu")));var Ft={},Jt={},bn={};Pe.disabled||(Ft={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Jt={onClick:this.onTitleClick},bn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Hn={},or=Pe.direction,ar=or==="rtl";Ke&&(ar?Hn.paddingRight=Pe.inlineIndent*Pe.level:Hn.paddingLeft=Pe.inlineIndent*Pe.level);var br={};this.getVisible()&&(br={"aria-owns":this.internalMenuId});var hr=null;ut!=="horizontal"&&(hr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(hr=O.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var pr=O.createElement("div",Object(y.a)({ref:this.saveSubMenuTitle,style:Hn,className:"".concat(rt,"-title"),role:"button"},bn,Jt,{"aria-expanded":je},br,{"aria-haspopup":"true",title:typeof Pe.title=="string"?Pe.title:void 0}),Pe.title,hr||O.createElement("i",{className:"".concat(rt,"-arrow")})),Cr=this.renderChildren(),Rr=((ye=Pe.parentMenu)===null||ye===void 0?void 0:ye.isRootMenu)?Pe.parentMenu.props.getPopupContainer:function(hn){return hn.parentNode},$n=ke[ut],Ar=Pe.popupOffset?{offset:Pe.popupOffset}:{},Jn=B()((fe={},Object(ne.a)(fe,Pe.popupClassName,Pe.popupClassName&&!Ke),Object(ne.a)(fe,"".concat(rt,"-rtl"),ar),fe)),rn=Pe.disabled,Sn=Pe.triggerSubMenuAction,Er=Pe.subMenuOpenDelay,Mr=Pe.forceSubMenuRender,Vn=Pe.subMenuCloseDelay,kr=Pe.builtinPlacements;ue.forEach(function(hn){return delete Pe[hn]}),delete Pe.onClick;var Yr=ar?Object(K.a)(Object(K.a)({},Qe),kr):Object(K.a)(Object(K.a)({},Te),kr);delete Pe.direction;var Ir=this.getBaseProps(),gn=Ke?null:this.getMotion(Ir.mode,Ir.visible);return O.createElement("li",Object(y.a)({},Pe,Ft,{className:St,role:"menuitem"}),O.createElement(Or,{prefixCls:rt,popupClassName:B()("".concat(rt,"-popup"),Jn),getPopupContainer:Rr,builtinPlacements:Yr,popupPlacement:$n,popupVisible:Ke?!1:je,popupAlign:Ar,popup:Ke?null:Cr,action:rn||Ke?[]:[Sn],mouseEnterDelay:Er,mouseLeaveDelay:Vn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Mr,popupMotion:gn},pr),Ke?Cr:null)}}]),tt}(O.Component);yt.defaultProps={onMouseEnter:$e,onMouseLeave:$e,onTitleMouseEnter:$e,onTitleMouseLeave:$e,onTitleClick:$e,manualRef:$e,mode:"vertical",title:""};var Re=Object(u.b)(function(_e,Ye){var tt=_e.openKeys,Ae=_e.activeKey,le=_e.selectedKeys,ye=Ye.eventKey,fe=Ye.subMenuKey;return{isOpen:tt.indexOf(ye)>-1,active:Ae[fe]===ye,selectedKeys:le}})(yt);Re.isSubMenu=!0;var mt=Re,Bt="menuitem-overflowed",Dt=.5,lt=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){var Ae;return Object(L.a)(this,tt),Ae=Ye.apply(this,arguments),Ae.resizeObserver=null,Ae.mutationObserver=null,Ae.originalTotalWidth=0,Ae.overflowedItems=[],Ae.menuItemSizes=[],Ae.cancelFrameId=null,Ae.state={lastVisibleIndex:void 0},Ae.childRef=O.createRef(),Ae.getMenuItemNodes=function(){var le=Ae.props.prefixCls,ye=Ae.childRef.current;return ye?[].slice.call(ye.children).filter(function(fe){return fe.className.split(" ").indexOf("".concat(le,"-overflowed-submenu"))<0}):[]},Ae.getOverflowedSubMenuItem=function(le,ye,fe){var Pe=Ae.props,je=Pe.overflowedIndicator,rt=Pe.level,Ke=Pe.mode,ut=Pe.prefixCls,St=Pe.theme;if(rt!==1||Ke!=="horizontal")return null;var Ft=Ae.props.children[0],Jt=Ft.props,bn=Jt.children,Hn=Jt.title,or=Jt.style,ar=Object(N.a)(Jt,["children","title","style"]),br=Object(K.a)({},or),hr="".concat(le,"-overflowed-indicator"),pr="".concat(le,"-overflowed-indicator");ye.length===0&&fe!==!0?br=Object(K.a)(Object(K.a)({},br),{},{display:"none"}):fe&&(br=Object(K.a)(Object(K.a)({},br),{},{visibility:"hidden",position:"absolute"}),hr="".concat(hr,"-placeholder"),pr="".concat(pr,"-placeholder"));var Cr=St?"".concat(ut,"-").concat(St):"",Rr={};return ue.forEach(function($n){ar[$n]!==void 0&&(Rr[$n]=ar[$n])}),O.createElement(mt,Object(y.a)({title:je,className:"".concat(ut,"-overflowed-submenu"),popupClassName:Cr},Rr,{key:hr,eventKey:pr,disabled:!1,style:br}),ye)},Ae.setChildrenWidthAndResize=function(){if(Ae.props.mode!=="horizontal")return;var le=Ae.childRef.current;if(!le)return;var ye=le.children;if(!ye||ye.length===0)return;var fe=le.children[ye.length-1];We(fe,"display","inline-block");var Pe=Ae.getMenuItemNodes(),je=Pe.filter(function(rt){return rt.className.split(" ").indexOf(Bt)>=0});je.forEach(function(rt){We(rt,"display","inline-block")}),Ae.menuItemSizes=Pe.map(function(rt){return be(rt,!0)}),je.forEach(function(rt){We(rt,"display","none")}),Ae.overflowedIndicatorWidth=be(le.children[le.children.length-1],!0),Ae.originalTotalWidth=Ae.menuItemSizes.reduce(function(rt,Ke){return rt+Ke},0),Ae.handleResize(),We(fe,"display","none")},Ae.handleResize=function(){if(Ae.props.mode!=="horizontal")return;var le=Ae.childRef.current;if(!le)return;var ye=be(le);Ae.overflowedItems=[];var fe=0,Pe;Ae.originalTotalWidth>ye+Dt&&(Pe=-1,Ae.menuItemSizes.forEach(function(je){fe+=je,fe+Ae.overflowedIndicatorWidth<=ye&&(Pe+=1)})),Ae.setState({lastVisibleIndex:Pe})},Ae}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){var le=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ye=this.childRef.current;if(!ye)return;this.resizeObserver=new Tt.default(function(fe){fe.forEach(function(){var Pe=le.cancelFrameId;cancelAnimationFrame(Pe),le.cancelFrameId=requestAnimationFrame(le.setChildrenWidthAndResize)})}),[].slice.call(ye.children).concat(ye).forEach(function(fe){le.resizeObserver.observe(fe)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){le.resizeObserver.disconnect(),[].slice.call(ye.children).concat(ye).forEach(function(fe){le.resizeObserver.observe(fe)}),le.setChildrenWidthAndResize()}),this.mutationObserver.observe(ye,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(le){var ye=this,fe=this.state.lastVisibleIndex;return(le||[]).reduce(function(Pe,je,rt){var Ke=je;if(ye.props.mode==="horizontal"){var ut=ye.getOverflowedSubMenuItem(je.props.eventKey,[]);fe!==void 0&&ye.props.className.indexOf("".concat(ye.props.prefixCls,"-root"))!==-1&&(rt>fe&&(Ke=O.cloneElement(je,{style:{display:"none"},eventKey:"".concat(je.props.eventKey,"-hidden"),className:"".concat(Bt)})),rt===fe+1&&(ye.overflowedItems=le.slice(fe+1).map(function(Ft){return O.cloneElement(Ft,{key:Ft.props.eventKey,mode:"vertical-left"})}),ut=ye.getOverflowedSubMenuItem(je.props.eventKey,ye.overflowedItems)));var St=[].concat(Object(_.a)(Pe),[ut,Ke]);return rt===le.length-1&&St.push(ye.getOverflowedSubMenuItem(je.props.eventKey,[],!0)),St}return[].concat(Object(_.a)(Pe),[Ke])},[])}},{key:"render",value:function(){var le=this.props,ye=le.visible,fe=le.prefixCls,Pe=le.overflowedIndicator,je=le.mode,rt=le.level,Ke=le.tag,ut=le.children,St=le.theme,Ft=Object(N.a)(le,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Jt=Ke;return O.createElement(Jt,Object(y.a)({ref:this.childRef},Ft),this.renderChildren(ut))}}]),tt}(O.Component);lt.defaultProps={tag:"div",className:""};var At=lt;function Lt(_e){return _e.length?_e.every(function(Ye){return!!Ye.props.disabled}):!0}function Yt(_e,Ye,tt){var Ae=_e.getState();_e.setState({activeKey:Object(K.a)(Object(K.a)({},Ae.activeKey),{},Object(ne.a)({},Ye,tt))})}function Ie(_e){return _e.eventKey||"0-menu-"}function Pt(_e,Ye){var tt=Ye,Ae=_e.children,le=_e.eventKey;if(tt){var ye;if(G(Ae,function(fe,Pe){fe&&fe.props&&!fe.props.disabled&&tt===me(fe,le,Pe)&&(ye=!0)}),ye)return tt}return tt=null,_e.defaultActiveFirst&&G(Ae,function(fe,Pe){!tt&&fe&&!fe.props.disabled&&(tt=me(fe,le,Pe))}),tt}function Wt(_e){if(!_e)return;var Ye=this.instanceArray.indexOf(_e);Ye!==-1?this.instanceArray[Ye]=_e:this.instanceArray.push(_e)}var dn=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(Ae){var le;return Object(L.a)(this,tt),le=Ye.call(this,Ae),le.onKeyDown=function(ye,fe){var Pe=ye.keyCode,je;if(le.getFlatInstanceArray().forEach(function(Ke){Ke&&Ke.props.active&&Ke.onKeyDown&&(je=Ke.onKeyDown(ye))}),je)return 1;var rt=null;return(Pe===p.a.UP||Pe===p.a.DOWN)&&(rt=le.step(Pe===p.a.UP?-1:1)),rt?(ye.preventDefault(),Yt(le.props.store,Ie(le.props),rt.props.eventKey),typeof fe=="function"&&fe(rt),1):void 0},le.onItemHover=function(ye){var fe=ye.key,Pe=ye.hover;Yt(le.props.store,Ie(le.props),Pe?fe:null)},le.onDeselect=function(ye){le.props.onDeselect(ye)},le.onSelect=function(ye){le.props.onSelect(ye)},le.onClick=function(ye){le.props.onClick(ye)},le.onOpenChange=function(ye){le.props.onOpenChange(ye)},le.onDestroy=function(ye){le.props.onDestroy(ye)},le.getFlatInstanceArray=function(){return le.instanceArray},le.step=function(ye){var fe=le.getFlatInstanceArray(),Pe=le.props.store.getState().activeKey[Ie(le.props)],je=fe.length;if(!je)return null;ye<0&&(fe=fe.concat().reverse());var rt=-1;if(fe.every(function(Ft,Jt){return Ft&&Ft.props.eventKey===Pe?(rt=Jt,!1):!0}),!le.props.defaultActiveFirst&&rt!==-1&&Lt(fe.slice(rt,je-1)))return;var Ke=(rt+1)%je,ut=Ke;do{var St=fe[ut];if(!St||St.props.disabled)ut=(ut+1)%je;else return St}while(ut!==Ke);return null},le.renderCommonMenuItem=function(ye,fe,Pe){var je=le.props.store.getState(),rt=Object(g.a)(le),Ke=rt.props,ut=me(ye,Ke.eventKey,fe),St=ye.props;if(!St||typeof ye.type=="string")return ye;var Ft=ut===je.activeKey,Jt=Object(K.a)(Object(K.a)({mode:St.mode||Ke.mode,level:Ke.level,inlineIndent:Ke.inlineIndent,renderMenuItem:le.renderMenuItem,rootPrefixCls:Ke.prefixCls,index:fe,parentMenu:Ke.parentMenu,manualRef:St.disabled?void 0:Object(T.a)(ye.ref,Wt.bind(Object(g.a)(le))),eventKey:ut,active:!St.disabled&&Ft,multiple:Ke.multiple,onClick:function(Hn){(St.onClick||$e)(Hn),le.onClick(Hn)},onItemHover:le.onItemHover,motion:Ke.motion,subMenuOpenDelay:Ke.subMenuOpenDelay,subMenuCloseDelay:Ke.subMenuCloseDelay,forceSubMenuRender:Ke.forceSubMenuRender,onOpenChange:le.onOpenChange,onDeselect:le.onDeselect,onSelect:le.onSelect,builtinPlacements:Ke.builtinPlacements,itemIcon:St.itemIcon||le.props.itemIcon,expandIcon:St.expandIcon||le.props.expandIcon},Pe),{},{direction:Ke.direction});return(Ke.mode==="inline"||ze())&&(Jt.triggerSubMenuAction="click"),O.cloneElement(ye,Object(K.a)(Object(K.a)({},Jt),{},{key:ut||fe}))},le.renderMenuItem=function(ye,fe,Pe){if(!ye)return null;var je=le.props.store.getState(),rt={openKeys:je.openKeys,selectedKeys:je.selectedKeys,triggerSubMenuAction:le.props.triggerSubMenuAction,subMenuKey:Pe};return le.renderCommonMenuItem(ye,fe,rt)},Ae.store.setState({activeKey:Object(K.a)(Object(K.a)({},Ae.store.getState().activeKey),{},Object(ne.a)({},Ae.eventKey,Pt(Ae,Ae.activeKey)))}),le.instanceArray=[],le}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(le){return this.props.visible||le.visible||this.props.className!==le.className||!j()(this.props.style,le.style)}},{key:"componentDidUpdate",value:function(le){var ye=this.props,fe="activeKey"in ye?ye.activeKey:ye.store.getState().activeKey[Ie(ye)],Pe=Pt(ye,fe);if(Pe!==fe)Yt(ye.store,Ie(ye),Pe);else if("activeKey"in le){var je=Pt(le,le.activeKey);Pe!==je&&Yt(ye.store,Ie(ye),Pe)}}},{key:"render",value:function(){var le=this,ye=Object(y.a)({},this.props);this.instanceArray=[];var fe=B()(ye.prefixCls,ye.className,"".concat(ye.prefixCls,"-").concat(ye.mode)),Pe={className:fe,role:ye.role||"menu"};ye.id&&(Pe.id=ye.id),ye.focusable&&(Pe.tabIndex=0,Pe.onKeyDown=this.onKeyDown);var je=ye.prefixCls,rt=ye.eventKey,Ke=ye.visible,ut=ye.level,St=ye.mode,Ft=ye.overflowedIndicator,Jt=ye.theme;return ue.forEach(function(bn){return delete ye[bn]}),delete ye.onClick,O.createElement(At,Object(y.a)({},ye,{prefixCls:je,mode:St,tag:"ul",level:ut,theme:Jt,visible:Ke,overflowedIndicator:Ft},Pe),Object(C.a)(ye.children).map(function(bn,Hn){return le.renderMenuItem(bn,Hn,rt||"0-menu-")}))}}]),tt}(O.Component);dn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:$e};var Bn=Object(u.b)()(dn),En=Bn,Cn=k("Kwbf");function Kn(_e,Ye,tt){var Ae=_e.prefixCls,le=_e.motion,ye=_e.defaultMotions,fe=ye===void 0?{}:ye,Pe=_e.openAnimation,je=_e.openTransitionName,rt=Ye.switchingModeFromInline;if(le)return le;if(Object(U.a)(Pe)==="object"&&Pe)Object(Cn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Pe=="string")return{motionName:"".concat(Ae,"-open-").concat(Pe)};if(je)return{motionName:je};var Ke=fe[tt];return Ke||(rt?null:fe.other)}var Wn=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(Ae){var le;Object(L.a)(this,tt),le=Ye.call(this,Ae),le.onSelect=function(Pe){var je=Object(g.a)(le),rt=je.props;if(rt.selectable){var Ke=le.store.getState(),ut=Ke.selectedKeys,St=Pe.key;rt.multiple?ut=ut.concat([St]):ut=[St],"selectedKeys"in rt||le.store.setState({selectedKeys:ut}),rt.onSelect(Object(K.a)(Object(K.a)({},Pe),{},{selectedKeys:ut}))}},le.onClick=function(Pe){var je=le.getRealMenuMode(),rt=Object(g.a)(le),Ke=rt.store,ut=rt.props.onOpenChange;je!=="inline"&&!("openKeys"in le.props)&&(Ke.setState({openKeys:[]}),ut([])),le.props.onClick(Pe)},le.onKeyDown=function(Pe,je){le.innerMenu.getWrappedInstance().onKeyDown(Pe,je)},le.onOpenChange=function(Pe){var je=Object(g.a)(le),rt=je.props,Ke=le.store.getState().openKeys.concat(),ut=!1,St=function(Jt){var bn=!1;if(Jt.open)bn=Ke.indexOf(Jt.key)===-1,bn&&Ke.push(Jt.key);else{var Hn=Ke.indexOf(Jt.key);bn=Hn!==-1,bn&&Ke.splice(Hn,1)}ut=ut||bn};Array.isArray(Pe)?Pe.forEach(St):St(Pe),ut&&("openKeys"in le.props||le.store.setState({openKeys:Ke}),rt.onOpenChange(Ke))},le.onDeselect=function(Pe){var je=Object(g.a)(le),rt=je.props;if(rt.selectable){var Ke=le.store.getState().selectedKeys.concat(),ut=Pe.key,St=Ke.indexOf(ut);St!==-1&&Ke.splice(St,1),"selectedKeys"in rt||le.store.setState({selectedKeys:Ke}),rt.onDeselect(Object(K.a)(Object(K.a)({},Pe),{},{selectedKeys:Ke}))}},le.onMouseEnter=function(Pe){le.restoreModeVerticalFromInline();var je=le.props.onMouseEnter;je&&je(Pe)},le.onTransitionEnd=function(Pe){var je=Pe.propertyName==="width"&&Pe.target===Pe.currentTarget,rt=Pe.target.className,Ke=Object.prototype.toString.call(rt)==="[object SVGAnimatedString]"?rt.animVal:rt,ut=Pe.propertyName==="font-size"&&Ke.indexOf("anticon")>=0;(je||ut)&&le.restoreModeVerticalFromInline()},le.setInnerMenu=function(Pe){le.innerMenu=Pe},le.isRootMenu=!0;var ye=Ae.defaultSelectedKeys,fe=Ae.defaultOpenKeys;return"selectedKeys"in Ae&&(ye=Ae.selectedKeys||[]),"openKeys"in Ae&&(fe=Ae.openKeys||[]),le.store=Object(u.c)({selectedKeys:ye,openKeys:fe,activeKey:{"0-menu-":Pt(Ae,Ae.activeKey)}}),le.state={switchingModeFromInline:!1,prevProps:Ae,inlineOpenKeys:[],store:le.store},le}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(le){var ye=this.props,fe=ye.siderCollapsed,Pe=ye.inlineCollapsed,je=ye.onOpenChange;(!le.inlineCollapsed&&Pe||!le.siderCollapsed&&fe)&&je([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var le=this.props.collapsedWidth,ye=this.store,fe=this.prevOpenKeys,Pe=this.getInlineCollapsed()&&(le===0||le==="0"||le==="0px");Pe?(this.prevOpenKeys=ye.getState().openKeys.concat(),this.store.setState({openKeys:[]})):fe&&(this.store.setState({openKeys:fe}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var le=this.props.mode,ye=this.state.switchingModeFromInline,fe=this.getInlineCollapsed();return ye&&fe?"inline":fe?"vertical":le}},{key:"getInlineCollapsed",value:function(){var le=this.props,ye=le.inlineCollapsed,fe=le.siderCollapsed;return fe!==void 0?fe:ye}},{key:"restoreModeVerticalFromInline",value:function(){var le=this.state.switchingModeFromInline;le&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var le=Object(K.a)({},Object(D.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ye=this.getRealMenuMode();return le.className+=" ".concat(le.prefixCls,"-root"),le.direction==="rtl"&&(le.className+=" ".concat(le.prefixCls,"-rtl")),le=Object(K.a)(Object(K.a)({},le),{},{mode:ye,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Kn(this.props,this.state,ye)}),delete le.openAnimation,delete le.openTransitionName,O.createElement(u.a,{store:this.store},O.createElement(En,Object(y.a)({},le,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(le,ye){var fe=ye.prevProps,Pe=ye.store,je=Pe.getState(),rt={},Ke={prevProps:le};return fe.mode==="inline"&&le.mode!=="inline"&&(Ke.switchingModeFromInline=!0),"openKeys"in le?rt.openKeys=le.openKeys||[]:((le.inlineCollapsed&&!fe.inlineCollapsed||le.siderCollapsed&&!fe.siderCollapsed)&&(Ke.switchingModeFromInline=!0,Ke.inlineOpenKeys=je.openKeys,rt.openKeys=[]),(!le.inlineCollapsed&&fe.inlineCollapsed||!le.siderCollapsed&&fe.siderCollapsed)&&(rt.openKeys=ye.inlineOpenKeys,Ke.inlineOpenKeys=[])),Object.keys(rt).length&&Pe.setState(rt),Ke}}]),tt}(O.Component);Wn.defaultProps={selectable:!0,onClick:$e,onSelect:$e,onOpenChange:$e,onDeselect:$e,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var _t=Wn,wt=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){var Ae;return Object(L.a)(this,tt),Ae=Ye.apply(this,arguments),Ae.onKeyDown=function(le){var ye=le.keyCode;return ye===p.a.ENTER?(Ae.onClick(le),!0):void 0},Ae.onMouseLeave=function(le){var ye=Ae.props,fe=ye.eventKey,Pe=ye.onItemHover,je=ye.onMouseLeave;Pe({key:fe,hover:!1}),je({key:fe,domEvent:le})},Ae.onMouseEnter=function(le){var ye=Ae.props,fe=ye.eventKey,Pe=ye.onItemHover,je=ye.onMouseEnter;Pe({key:fe,hover:!0}),je({key:fe,domEvent:le})},Ae.onClick=function(le){var ye=Ae.props,fe=ye.eventKey,Pe=ye.multiple,je=ye.onClick,rt=ye.onSelect,Ke=ye.onDeselect,ut=ye.isSelected,St={key:fe,keyPath:[fe],item:Object(g.a)(Ae),domEvent:le};je(St),Pe?ut?Ke(St):rt(St):ut||rt(St)},Ae.saveNode=function(le){Ae.node=le},Ae}return Object(R.a)(tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var le=this.props;le.onDestroy&&le.onDestroy(le.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var le,ye=Object(K.a)({},this.props),fe=B()(this.getPrefixCls(),ye.className,(le={},Object(ne.a)(le,this.getActiveClassName(),!ye.disabled&&ye.active),Object(ne.a)(le,this.getSelectedClassName(),ye.isSelected),Object(ne.a)(le,this.getDisabledClassName(),ye.disabled),le)),Pe=Object(K.a)(Object(K.a)({},ye.attribute),{},{title:typeof ye.title=="string"?ye.title:void 0,className:fe,role:ye.role||"menuitem","aria-disabled":ye.disabled});ye.role==="option"?Pe=Object(K.a)(Object(K.a)({},Pe),{},{role:"option","aria-selected":ye.isSelected}):(ye.role===null||ye.role==="none")&&(Pe.role="none");var je={onClick:ye.disabled?null:this.onClick,onMouseLeave:ye.disabled?null:this.onMouseLeave,onMouseEnter:ye.disabled?null:this.onMouseEnter},rt=Object(K.a)({},ye.style);ye.mode==="inline"&&(ye.direction==="rtl"?rt.paddingRight=ye.inlineIndent*ye.level:rt.paddingLeft=ye.inlineIndent*ye.level),ue.forEach(function(ut){return delete ye[ut]}),delete ye.direction;var Ke=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ke=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object(y.a)({},Object(D.a)(ye,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Pe,je,{style:rt,ref:this.saveNode}),ye.children,Ke)}}]),tt}(O.Component);wt.isMenuItem=!0,wt.defaultProps={onSelect:$e,onMouseEnter:$e,onMouseLeave:$e,manualRef:$e};var Vt=Object(u.b)(function(_e,Ye){var tt=_e.activeKey,Ae=_e.selectedKeys,le=Ye.eventKey,ye=Ye.subMenuKey;return{active:tt[ye]===le,isSelected:Array.isArray(Ae)?Ae.indexOf(le)!==-1:Ae===le}})(wt),kt=Vt,jn=function(_e){Object(m.a)(tt,_e);var Ye=Object(c.a)(tt);function tt(){var Ae;return Object(L.a)(this,tt),Ae=Ye.apply(this,arguments),Ae.renderInnerMenuItem=function(le){var ye=Ae.props,fe=ye.renderMenuItem,Pe=ye.index;return fe(le,Pe,Ae.props.subMenuKey)},Ae}return Object(R.a)(tt,[{key:"render",value:function(){var le=Object(y.a)({},this.props),ye=le.className,fe=ye===void 0?"":ye,Pe=le.rootPrefixCls,je="".concat(Pe,"-item-group-title"),rt="".concat(Pe,"-item-group-list"),Ke=le.title,ut=le.children;return ue.forEach(function(St){return delete le[St]}),delete le.direction,O.createElement("li",Object(y.a)({},le,{onClick:function(Ft){return Ft.stopPropagation()},className:"".concat(fe," ").concat(Pe,"-item-group")}),O.createElement("div",{className:je,title:typeof Ke=="string"?Ke:void 0},Ke),O.createElement("ul",{className:rt},O.Children.map(ut,this.renderInnerMenuItem)))}}]),tt}(O.Component);jn.isMenuItemGroup=!0,jn.defaultProps={disabled:!0};var $t=jn,sn=function(Ye){var tt=Ye.className,Ae=Ye.rootPrefixCls,le=Ye.style;return O.createElement("li",{className:"".concat(tt," ").concat(Ae,"-item-divider"),style:le})};sn.defaultProps={disabled:!0,className:"",style:{}};var Dn=sn,Ln=_t,cn=k("eDIo");function qn(_e,Ye){var tt=_e.prefixCls,Ae=_e.editable,le=_e.locale,ye=_e.style;return!Ae||Ae.showAdd===!1?null:O.createElement("button",{ref:Ye,type:"button",className:"".concat(tt,"-nav-add"),style:ye,"aria-label":(le==null?void 0:le.addAriaLabel)||"Add tab",onClick:function(Pe){Ae.onEdit("add",{event:Pe})}},Ae.addIcon||"+")}var Pn=O.forwardRef(qn);function yr(_e,Ye){var tt=_e.prefixCls,Ae=_e.id,le=_e.tabs,ye=_e.locale,fe=_e.mobile,Pe=_e.moreIcon,je=Pe===void 0?"More":Pe,rt=_e.moreTransitionName,Ke=_e.style,ut=_e.className,St=_e.editable,Ft=_e.tabBarGutter,Jt=_e.rtl,bn=_e.onTabClick,Hn=Object(O.useState)(!1),or=Object(z.a)(Hn,2),ar=or[0],br=or[1],hr=Object(O.useState)(null),pr=Object(z.a)(hr,2),Cr=pr[0],Rr=pr[1],$n="".concat(Ae,"-more-popup"),Ar="".concat(tt,"-dropdown"),Jn=Cr!==null?"".concat($n,"-").concat(Cr):null,rn=ye==null?void 0:ye.dropdownAriaLabel,Sn=O.createElement(Ln,{onClick:function(gn){var hn=gn.key,Rn=gn.domEvent;bn(hn,Rn),br(!1)},id:$n,tabIndex:-1,role:"listbox","aria-activedescendant":Jn,selectedKeys:[Cr],"aria-label":rn!==void 0?rn:"expanded dropdown"},le.map(function(Ir){return O.createElement(kt,{key:Ir.key,id:"".concat($n,"-").concat(Ir.key),role:"option","aria-controls":Ae&&"".concat(Ae,"-panel-").concat(Ir.key),disabled:Ir.disabled},Ir.tab)}));function Er(Ir){for(var gn=le.filter(function(Hr){return!Hr.disabled}),hn=gn.findIndex(function(Hr){return Hr.key===Cr})||0,Rn=gn.length,tr=0;trkr?(Mr=Sn,$n.current="x"):(Mr=Er,$n.current="y");var Yr=Date.now();Yr-Cr.current>100&&(Rr.current=!1),(Ye(-Mr,-Mr)||Rr.current)&&(rn.preventDefault(),Rr.current=!0),Cr.current=Yr}var Jn=Object(O.useRef)(null);Jn.current={onTouchStart:br,onTouchMove:hr,onTouchEnd:pr,onWheel:Ar},O.useEffect(function(){function rn(Vn){Jn.current.onTouchStart(Vn)}function Sn(Vn){Jn.current.onTouchMove(Vn)}function Er(Vn){Jn.current.onTouchEnd(Vn)}function Mr(Vn){Jn.current.onWheel(Vn)}return document.addEventListener("touchmove",Sn,{passive:!1}),document.addEventListener("touchend",Er,{passive:!1}),_e.current.addEventListener("touchstart",rn,{passive:!1}),_e.current.addEventListener("wheel",Mr),function(){document.removeEventListener("touchmove",Sn),document.removeEventListener("touchend",Er)}},[])}function ha(){var _e=Object(O.useRef)(new Map);function Ye(Ae){return _e.current.has(Ae)||_e.current.set(Ae,O.createRef()),_e.current.get(Ae)}function tt(Ae){_e.current.delete(Ae)}return[Ye,tt]}function oa(_e,Ye){var tt=O.useRef(_e),Ae=O.useState({}),le=Object(z.a)(Ae,2),ye=le[1];function fe(Pe){var je=typeof Pe=="function"?Pe(tt.current):Pe;je!==tt.current&&Ye(je,tt.current),tt.current=je,ye({})}return[tt.current,fe]}var pa=function(Ye){var tt=Ye.position,Ae=Ye.prefixCls,le=Ye.extra;if(!le)return null;var ye,fe=le;return tt==="right"&&(ye=fe.right||!fe.left&&fe||null),tt==="left"&&(ye=fe.left||null),ye?O.createElement("div",{className:"".concat(Ae,"-extra-content")},ye):null};function Xa(_e,Ye){var tt,Ae=O.useContext(gr),le=Ae.prefixCls,ye=Ae.tabs,fe=_e.className,Pe=_e.style,je=_e.id,rt=_e.animated,Ke=_e.activeKey,ut=_e.rtl,St=_e.extra,Ft=_e.editable,Jt=_e.locale,bn=_e.tabPosition,Hn=_e.tabBarGutter,or=_e.children,ar=_e.onTabClick,br=_e.onTabScroll,hr=Object(O.useRef)(),pr=Object(O.useRef)(),Cr=Object(O.useRef)(),Rr=Object(O.useRef)(),$n=ha(),Ar=Object(z.a)($n,2),Jn=Ar[0],rn=Ar[1],Sn=bn==="top"||bn==="bottom",Er=oa(0,function(Vr,Ur){Sn&&br&&br({direction:Vr>Ur?"left":"right"})}),Mr=Object(z.a)(Er,2),Vn=Mr[0],kr=Mr[1],Yr=oa(0,function(Vr,Ur){!Sn&&br&&br({direction:Vr>Ur?"top":"bottom"})}),Ir=Object(z.a)(Yr,2),gn=Ir[0],hn=Ir[1],Rn=Object(O.useState)(0),tr=Object(z.a)(Rn,2),vn=tr[0],Hr=tr[1],ja=Object(O.useState)(0),Ea=Object(z.a)(ja,2),fa=Ea[0],ra=Ea[1],$r=Object(O.useState)(0),Jr=Object(z.a)($r,2),aa=Jr[0],Ua=Jr[1],fi=Object(O.useState)(0),si=Object(z.a)(fi,2),Qr=si[0],Ja=si[1],Za=Object(O.useState)(null),ea=Object(z.a)(Za,2),Xr=ea[0],xa=ea[1],Mi=Object(O.useState)(null),no=Object(z.a)(Mi,2),li=no[0],wi=no[1],Si=Object(O.useState)(0),Ti=Object(z.a)(Si,2),ki=Ti[0],co=Ti[1],Ro=Object(O.useState)(0),Gi=Object(z.a)(Ro,2),Oi=Gi[0],Vi=Gi[1],yi=n(new Map),Ri=Object(z.a)(yi,2),fo=Ri[0],Xi=Ri[1],Di=l(ye,fo,vn),Ai="".concat(le,"-nav-operations-hidden"),bi=0,ka=0;Sn?ut?(bi=0,ka=Math.max(0,vn-Xr)):(bi=Math.min(0,Xr-vn),ka=0):(bi=Math.min(0,li-fa),ka=0);function hi(Vr){return Vrka?[ka,!1]:[Vr,!0]}var pi=Object(O.useRef)(),Ei=Object(O.useState)(),mi=Object(z.a)(Ei,2),Yi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}na(hr,function(Vr,Ur){var da=!1;function Fa(Pi,ci){Pi(function(Ui){var di=hi(Ui+ci),Ca=Object(z.a)(di,2),Fi=Ca[0],Bi=Ca[1];return da=Bi,Fi})}if(Sn){if(Xr>=vn)return da;Fa(kr,Vr)}else{if(li>=fa)return da;Fa(hn,Ur)}return Ii(),Qi(),da}),Object(O.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ui(){var Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ke,Ur=Di.get(Vr);if(!Ur)return;if(Sn){var da=Vn;ut?Ur.rightVn+Xr&&(da=Ur.right+Ur.width-Xr):Ur.left<-Vn?da=-Ur.left:Ur.left+Ur.width>-Vn+Xr&&(da=-(Ur.left+Ur.width-Xr)),hn(0),kr(hi(da)[0])}else{var Fa=gn;Ur.top<-gn?Fa=-Ur.top:Ur.top+Ur.height>-gn+li&&(Fa=-(Ur.top+Ur.height-li)),kr(0),hn(hi(Fa)[0])}}var xi=E(Di,{width:Xr,height:li,left:Vn,top:gn},{width:aa,height:Qr},{width:ki,height:Oi},Object(K.a)(Object(K.a)({},_e),{},{tabs:ye})),ro=Object(z.a)(xi,2),Do=ro[0],Ao=ro[1],ho=ye.map(function(Vr){var Ur=Vr.key;return O.createElement(r,{id:je,prefixCls:le,key:Ur,rtl:ut,tab:Vr,closable:Vr.closable,editable:Ft,active:Ur===Ke,tabPosition:bn,tabBarGutter:Hn,renderWrapper:or,removeAriaLabel:Jt==null?void 0:Jt.removeAriaLabel,ref:Jn(Ur),onClick:function(Fa){ar(Ur,Fa)},onRemove:function(){rn(Ur)},onFocus:function(){ui(Ur),Qi(),ut||(hr.current.scrollLeft=0),hr.current.scrollTop=0}})}),ao=f(function(){var Vr,Ur,da,Fa,Pi,ci,Ui,di,Ca,Fi=((Vr=hr.current)===null||Vr===void 0?void 0:Vr.offsetWidth)||0,Bi=((Ur=hr.current)===null||Ur===void 0?void 0:Ur.offsetHeight)||0,Wi=((da=Rr.current)===null||da===void 0?void 0:da.offsetWidth)||0,Ka=((Fa=Rr.current)===null||Fa===void 0?void 0:Fa.offsetHeight)||0,Kr=((Pi=Cr.current)===null||Pi===void 0?void 0:Pi.offsetWidth)||0,wr=((ci=Cr.current)===null||ci===void 0?void 0:ci.offsetHeight)||0;xa(Fi),wi(Bi),co(Wi),Vi(Ka);var Fn=(((Ui=pr.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Wi,nr=(((di=pr.current)===null||di===void 0?void 0:di.offsetHeight)||0)-Ka;Hr(Fn),ra(nr);var Nr=(Ca=Cr.current)===null||Ca===void 0?void 0:Ca.className.includes(Ai);Ua(Fn-(Nr?0:Kr)),Ja(nr-(Nr?0:wr)),Xi(function(){var sa=new Map;return ye.forEach(function(vi){var ii=vi.key,Pa=Jn(ii).current;Pa&&sa.set(ii,{width:Pa.offsetWidth,height:Pa.offsetHeight,left:Pa.offsetLeft,top:Pa.offsetTop})}),sa})}),po=ye.slice(0,Do),Ha=ye.slice(Ao+1),va=[].concat(Object(_.a)(po),Object(_.a)(Ha)),Aa=Object(O.useState)(),ga=Object(z.a)(Aa,2),Ni=ga[0],mo=ga[1],qa=Di.get(Ke),io=Object(O.useRef)();function oo(){v.a.cancel(io.current)}Object(O.useEffect)(function(){var Vr={};return qa&&(Sn?(ut?Vr.right=qa.right:Vr.left=qa.left,Vr.width=qa.width):(Vr.top=qa.top,Vr.height=qa.height)),oo(),io.current=v()(function(){mo(Vr)}),oo},[qa,Sn,ut]),Object(O.useEffect)(function(){ui()},[Ke,qa,Di,Sn]),Object(O.useEffect)(function(){ao()},[ut,Hn,Ke,ye.map(function(Vr){return Vr.key}).join("_")]);var so=!!va.length,Ci="".concat(le,"-nav-wrap"),Ji,ji,vo,Zi;return Sn?ut?(ji=Vn>0,Ji=Vn+Xr */Ee.read=function(k,ne,z,N,K){var O,w,B=K*8-N-1,C=(1<>1,_=-7,d=z?K-1:0,v=z?-1:1,b=k[ne+d];for(d+=v,O=b&(1<<-_)-1,b>>=-_,_+=B;_>0;O=O*256+k[ne+d],d+=v,_-=8);for(w=O&(1<<-_)-1,O>>=-_,_+=N;_>0;w=w*256+k[ne+d],d+=v,_-=8);if(O===0)O=1-P;else{if(O===C)return w?NaN:(b?-1:1)*Infinity;w=w+Math.pow(2,N),O=O-P}return(b?-1:1)*w*Math.pow(2,O-N)},Ee.write=function(k,ne,z,N,K,O){var w,B,C,P=O*8-K-1,_=(1<>1,v=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=N?0:O-1,f=N?1:-1,n=ne<0||ne===0&&1/ne<0?1:0;for(ne=Math.abs(ne),isNaN(ne)||ne===Infinity?(B=isNaN(ne)?1:0,w=_):(w=Math.floor(Math.log(ne)/Math.LN2),ne*(C=Math.pow(2,-w))<1&&(w--,C*=2),w+d>=1?ne+=v/C:ne+=v*Math.pow(2,1-d),ne*C>=2&&(w++,C/=2),w+d>=_?(B=0,w=_):w+d>=1?(B=(ne*C-1)*Math.pow(2,K),w=w+d):(B=ne*Math.pow(2,d-1)*Math.pow(2,K),w=0));K>=8;k[z+b]=B&255,b+=f,B/=256,K-=8);for(w=w<0;k[z+b]=w&255,b+=f,w/=256,P-=8);k[z+b-f]|=n*128}},lZu9:function(Gt,Ee,k){(function(ne){ne(k("VrN/"),k("1eCo"),k("8EBN"))})(function(ne){"use strict";ne.defineMode("markdown",function(z,N){var K=ne.getMode(z,"text/html"),O=K.name=="null";function w(I){if(ne.findModeByName){var W=ne.findModeByName(I);W&&(I=W.mime||W.mimes[0])}var Q=ne.getMode(z,I);return Q.name=="null"?null:Q}N.highlightFormatting===void 0&&(N.highlightFormatting=!1),N.maxBlockquoteDepth===void 0&&(N.maxBlockquoteDepth=0),N.taskLists===void 0&&(N.taskLists=!1),N.strikethrough===void 0&&(N.strikethrough=!1),N.emoji===void 0&&(N.emoji=!1),N.fencedCodeBlockHighlighting===void 0&&(N.fencedCodeBlockHighlighting=!0),N.fencedCodeBlockDefaultMode===void 0&&(N.fencedCodeBlockDefaultMode="text/plain"),N.xml===void 0&&(N.xml=!0),N.tokenTypeOverrides===void 0&&(N.tokenTypeOverrides={});var B={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var C in B)B.hasOwnProperty(C)&&N.tokenTypeOverrides[C]&&(B[C]=N.tokenTypeOverrides[C]);var P=/^([*\-_])(?:\s*\1){2,}\s*$/,_=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,d=/^\[(x| )\](?=\s)/i,v=N.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,o=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function s(I,W,Q){return W.f=W.inline=Q,Q(I,W)}function l(I,W,Q){return W.f=W.block=Q,Q(I,W)}function x(I){return!I||!/\S/.test(I.string)}function E(I){if(I.linkTitle=!1,I.linkHref=!1,I.linkText=!1,I.em=!1,I.strong=!1,I.strikethrough=!1,I.quote=0,I.indentedCode=!1,I.f==L){var W=O;if(!W){var Q=ne.innerMode(K,I.htmlState);W=Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText}W&&(I.f=c,I.block=y,I.htmlState=null)}return I.trailingSpace=0,I.trailingSpaceNewLine=!1,I.prevLine=I.thisLine,I.thisLine={stream:null},null}function y(I,W){var Q=I.column()===W.indentation,ie=x(W.prevLine.stream),ae=W.indentedCode,xe=W.prevLine.hr,Ze=W.list!==!1,Me=(W.listStack[W.listStack.length-1]||0)+3;W.indentedCode=!1;var Be=W.indentation;if(W.indentationDiff===null&&(W.indentationDiff=W.indentation,Ze)){for(W.list=null;Be=4&&(ae||W.prevLine.fencedCodeEnd||W.prevLine.header||ie))return I.skipToEnd(),W.indentedCode=!0,B.code;if(I.eatSpace())return null;if(Q&&W.indentation<=Me&&(De=I.match(v))&&De[1].length<=6)return W.quote=0,W.header=De[1].length,W.thisLine.header=!0,N.highlightFormatting&&(W.formatting="header"),W.f=W.inline,g(W);if(W.indentation<=Me&&I.eat(">"))return W.quote=Q?1:W.quote+1,N.highlightFormatting&&(W.formatting="quote"),I.eatSpace(),g(W);if(!Ve&&!W.setext&&Q&&W.indentation<=Me&&(De=I.match(_))){var pe=De[1]?"ol":"ul";return W.indentation=Be+I.current().length,W.list=!0,W.quote=0,W.listStack.push(W.indentation),W.em=!1,W.strong=!1,W.code=!1,W.strikethrough=!1,N.taskLists&&I.match(d,!1)&&(W.taskList=!0),W.f=W.inline,N.highlightFormatting&&(W.formatting=["list","list-"+pe]),g(W)}else{if(Q&&W.indentation<=Me&&(De=I.match(n,!0)))return W.quote=0,W.fencedEndRE=new RegExp(De[1]+"+ *$"),W.localMode=N.fencedCodeBlockHighlighting&&w(De[2]||N.fencedCodeBlockDefaultMode),W.localMode&&(W.localState=ne.startState(W.localMode)),W.f=W.block=R,N.highlightFormatting&&(W.formatting="code-block"),W.code=-1,g(W);if(W.setext||(!qe||!Ze)&&!W.quote&&W.list===!1&&!W.code&&!Ve&&!p.test(I.string)&&(De=I.lookAhead(1))&&(De=De.match(b)))return W.setext?(W.header=W.setext,W.setext=0,I.skipToEnd(),N.highlightFormatting&&(W.formatting="header")):(W.header=De[0].charAt(0)=="="?1:2,W.setext=W.header),W.thisLine.header=!0,W.f=W.inline,g(W);if(Ve)return I.skipToEnd(),W.hr=!0,W.thisLine.hr=!0,B.hr;if(I.peek()==="[")return s(I,W,j)}return s(I,W,W.inline)}function L(I,W){var Q=K.token(I,W.htmlState);if(!O){var ie=ne.innerMode(K,W.htmlState);(ie.mode.name=="xml"&&ie.state.tagStart===null&&!ie.state.context&&ie.state.tokenize.isInText||W.md_inside&&I.current().indexOf(">")>-1)&&(W.f=c,W.block=y,W.htmlState=null)}return Q}function R(I,W){var Q=W.listStack[W.listStack.length-1]||0,ie=W.indentation=I.quote?W.push(B.formatting+"-"+I.formatting[Q]+"-"+I.quote):W.push("error"))}if(I.taskOpen)return W.push("meta"),W.length?W.join(" "):null;if(I.taskClosed)return W.push("property"),W.length?W.join(" "):null;if(I.linkHref?W.push(B.linkHref,"url"):(I.strong&&W.push(B.strong),I.em&&W.push(B.em),I.strikethrough&&W.push(B.strikethrough),I.emoji&&W.push(B.emoji),I.linkText&&W.push(B.linkText),I.code&&W.push(B.code),I.image&&W.push(B.image),I.imageAltText&&W.push(B.imageAltText,"link"),I.imageMarker&&W.push(B.imageMarker)),I.header&&W.push(B.header,B.header+"-"+I.header),I.quote&&(W.push(B.quote),!N.maxBlockquoteDepth||N.maxBlockquoteDepth>=I.quote?W.push(B.quote+"-"+I.quote):W.push(B.quote+"-"+N.maxBlockquoteDepth)),I.list!==!1){var ie=(I.listStack.length-1)%3;ie?ie===1?W.push(B.list2):W.push(B.list3):W.push(B.list1)}return I.trailingSpaceNewLine?W.push("trailing-space-new-line"):I.trailingSpace&&W.push("trailing-space-"+(I.trailingSpace%2?"a":"b")),W.length?W.join(" "):null}function m(I,W){return I.match(f,!0)?g(W):void 0}function c(I,W){var Q=W.text(I,W);if(typeof Q!="undefined")return Q;if(W.list)return W.list=null,g(W);if(W.taskList){var ie=I.match(d,!0)[1]===" ";return ie?W.taskOpen=!0:W.taskClosed=!0,N.highlightFormatting&&(W.formatting="task"),W.taskList=!1,g(W)}if(W.taskOpen=!1,W.taskClosed=!1,W.header&&I.match(/^#+$/,!0))return N.highlightFormatting&&(W.formatting="header"),g(W);var ae=I.next();if(W.linkTitle){W.linkTitle=!1;var xe=ae;ae==="("&&(xe=")"),xe=(xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ze="^\\s*(?:[^"+xe+"\\\\]+|\\\\\\\\|\\\\.)"+xe;if(I.match(new RegExp(Ze),!0))return B.linkHref}if(ae==="`"){var Me=W.formatting;N.highlightFormatting&&(W.formatting="code"),I.eatWhile("`");var Be=I.current().length;if(W.code==0&&(!W.quote||Be==1))return W.code=Be,g(W);if(Be==W.code){var qe=g(W);return W.code=0,qe}else return W.formatting=Me,g(W)}else if(W.code)return g(W);if(ae==="\\"&&(I.next(),N.highlightFormatting)){var Ve=g(W),De=B.formatting+"-escape";return Ve?Ve+" "+De:De}if(ae==="!"&&I.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return W.imageMarker=!0,W.image=!0,N.highlightFormatting&&(W.formatting="image"),g(W);if(ae==="["&&W.imageMarker&&I.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return W.imageMarker=!1,W.imageAltText=!0,N.highlightFormatting&&(W.formatting="image"),g(W);if(ae==="]"&&W.imageAltText){N.highlightFormatting&&(W.formatting="image");var Ve=g(W);return W.imageAltText=!1,W.image=!1,W.inline=W.f=D,Ve}if(ae==="["&&!W.image)return W.linkText&&I.match(/^.*?\]/)||(W.linkText=!0,N.highlightFormatting&&(W.formatting="link")),g(W);if(ae==="]"&&W.linkText){N.highlightFormatting&&(W.formatting="link");var Ve=g(W);return W.linkText=!1,W.inline=W.f=I.match(/\(.*?\)| ?\[.*?\]/,!1)?D:c,Ve}if(ae==="<"&&I.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=u,N.highlightFormatting&&(W.formatting="link");var Ve=g(W);return Ve?Ve+=" ":Ve="",Ve+B.linkInline}if(ae==="<"&&I.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=u,N.highlightFormatting&&(W.formatting="link");var Ve=g(W);return Ve?Ve+=" ":Ve="",Ve+B.linkEmail}if(N.xml&&ae==="<"&&I.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var pe=I.string.indexOf(">",I.pos);if(pe!=-1){var se=I.string.substring(I.start,pe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(se)&&(W.md_inside=!0)}return I.backUp(1),W.htmlState=ne.startState(K),l(I,W,L)}if(N.xml&&ae==="<"&&I.match(/^\/\w*?>/))return W.md_inside=!1,"tag";if(ae==="*"||ae==="_"){for(var we=1,ve=I.pos==1?" ":I.string.charAt(I.pos-2);we<3&&I.eat(ae);)we++;var $e=I.peek()||" ",me=!/\s/.test($e)&&(!o.test($e)||/\s/.test(ve)||o.test(ve)),X=!/\s/.test(ve)&&(!o.test(ve)||/\s/.test($e)||o.test($e)),G=null,Y=null;if(we%2&&(!W.em&&me&&(ae==="*"||!X||o.test(ve))?G=!0:W.em==ae&&X&&(ae==="*"||!me||o.test($e))&&(G=!1)),we>1&&(!W.strong&&me&&(ae==="*"||!X||o.test(ve))?Y=!0:W.strong==ae&&X&&(ae==="*"||!me||o.test($e))&&(Y=!1)),Y!=null||G!=null){N.highlightFormatting&&(W.formatting=G==null?"strong":Y==null?"em":"strong em"),G===!0&&(W.em=ae),Y===!0&&(W.strong=ae);var qe=g(W);return G===!1&&(W.em=!1),Y===!1&&(W.strong=!1),qe}}else if(ae===" "&&(I.eat("*")||I.eat("_"))){if(I.peek()===" ")return g(W);I.backUp(1)}if(N.strikethrough){if(ae==="~"&&I.eatWhile(ae)){if(W.strikethrough){N.highlightFormatting&&(W.formatting="strikethrough");var qe=g(W);return W.strikethrough=!1,qe}else if(I.match(/^[^\s]/,!1))return W.strikethrough=!0,N.highlightFormatting&&(W.formatting="strikethrough"),g(W)}else if(ae===" "&&I.match(/^~~/,!0)){if(I.peek()===" ")return g(W);I.backUp(2)}}if(N.emoji&&ae===":"&&I.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){W.emoji=!0,N.highlightFormatting&&(W.formatting="emoji");var ue=g(W);return W.emoji=!1,ue}return ae===" "&&(I.match(/^ +$/,!1)?W.trailingSpace++:W.trailingSpace&&(W.trailingSpaceNewLine=!0)),g(W)}function u(I,W){var Q=I.next();if(Q===">"){W.f=W.inline=c,N.highlightFormatting&&(W.formatting="link");var ie=g(W);return ie?ie+=" ":ie="",ie+B.linkInline}return I.match(/^[^>]+/,!0),B.linkInline}function D(I,W){if(I.eatSpace())return null;var Q=I.next();return Q==="("||Q==="["?(W.f=W.inline=A(Q==="("?")":"]"),N.highlightFormatting&&(W.formatting="link-string"),W.linkHref=!0,g(W)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function A(I){return function(W,Q){var ie=W.next();if(ie===I){Q.f=Q.inline=c,N.highlightFormatting&&(Q.formatting="link-string");var ae=g(Q);return Q.linkHref=!1,ae}return W.match(T[I]),Q.linkHref=!0,g(Q)}}function j(I,W){return I.match(/^([^\]\\]|\\.)*\]:/,!1)?(W.f=U,I.next(),N.highlightFormatting&&(W.formatting="link"),W.linkText=!0,g(W)):s(I,W,c)}function U(I,W){if(I.match(/^\]:/,!0)){W.f=W.inline=H,N.highlightFormatting&&(W.formatting="link");var Q=g(W);return W.linkText=!1,Q}return I.match(/^([^\]\\]|\\.)+/,!0),B.linkText}function H(I,W){return I.eatSpace()?null:(I.match(/^[^\s]+/,!0),I.peek()===void 0?W.linkTitle=!0:I.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),W.f=W.inline=c,B.linkHref+" url")}var V={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:c,text:m,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(I){return{f:I.f,prevLine:I.prevLine,thisLine:I.thisLine,block:I.block,htmlState:I.htmlState&&ne.copyState(K,I.htmlState),indentation:I.indentation,localMode:I.localMode,localState:I.localMode?ne.copyState(I.localMode,I.localState):null,inline:I.inline,text:I.text,formatting:!1,linkText:I.linkText,linkTitle:I.linkTitle,linkHref:I.linkHref,code:I.code,em:I.em,strong:I.strong,strikethrough:I.strikethrough,emoji:I.emoji,header:I.header,setext:I.setext,hr:I.hr,taskList:I.taskList,list:I.list,listStack:I.listStack.slice(0),quote:I.quote,indentedCode:I.indentedCode,trailingSpace:I.trailingSpace,trailingSpaceNewLine:I.trailingSpaceNewLine,md_inside:I.md_inside,fencedEndRE:I.fencedEndRE}},token:function(I,W){if(W.formatting=!1,I!=W.thisLine.stream){if(W.header=0,W.hr=!1,I.match(/^\s*$/,!0))return E(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:I},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=L)){var Q=I.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(W.indentation=Q,W.indentationDiff=null,Q>0)return null}}return W.f(I,W)},innerMode:function(I){return I.block==L?{state:I.htmlState,mode:K}:I.localState?{state:I.localState,mode:I.localMode}:{state:I,mode:V}},indent:function(I,W,Q){return I.block==L&&K.indent?K.indent(I.htmlState,W,Q):I.localState&&I.localMode.indent?I.localMode.indent(I.localState,W,Q):ne.Pass},blankLine:E,getType:g,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return V},"xml"),ne.defineMIME("text/markdown","markdown"),ne.defineMIME("text/x-markdown","markdown")})},mgmH:function(Gt,Ee,k){"use strict";k.d(Ee,"d",function(){return b}),k.d(Ee,"b",function(){return f}),k.d(Ee,"e",function(){return n}),k.d(Ee,"c",function(){return p}),k.d(Ee,"n",function(){return o}),k.d(Ee,"g",function(){return r}),k.d(Ee,"h",function(){return s}),k.d(Ee,"j",function(){return x}),k.d(Ee,"a",function(){return E}),k.d(Ee,"l",function(){return y}),k.d(Ee,"f",function(){return L}),k.d(Ee,"k",function(){return R}),k.d(Ee,"m",function(){return g}),k.d(Ee,"i",function(){return m}),k.d(Ee,"o",function(){return c}),k.d(Ee,"r",function(){return u}),k.d(Ee,"q",function(){return D}),k.d(Ee,"p",function(){return T});var ne=k("miYZ"),z=k("tsqr"),N=k("k1fw"),K=k("9og8"),O=k("WmNS"),w=k.n(O),B=k("oUNq"),C=k("9kvl"),P=k("1vsH"),_=k("m3rI"),d=function(){Object(C.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},v=function(){Object(C.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},b=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return d(),I.next=3,Object(B.s)(Object(N.a)({},U));case 3:if(H=I.sent,!(H.status===0)){I.next=7;break}return I.next=7,Object(P.u)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_couser_info.json"),query:U}));case 7:v();case 8:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),f=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.q)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),n=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.t)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),p=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.r)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),o=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.y)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),r=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.u)(Object(N.a)({},U));case 2:if(H=I.sent,!(H.status===0)){I.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")),I.next=13;break;case 8:if(!(H.status===-2)){I.next=12;break}return I.abrupt("return",H);case 12:H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),s=function(){var A=Object(K.a)(w.a.mark(function j(U,H){var V;return w.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(B.w)(Object(N.a)({},U));case 2:V=W.sent,V.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H))):V.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H)));case 4:case"end":return W.stop()}},j)}));return function(U,H){return A.apply(this,arguments)}}(),l=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return d(),I.next=3,Object(B.v)(Object(N.a)({},U));case 3:if(H=I.sent,!(H.status===0)){I.next=7;break}return I.next=7,Object(P.u)("",Object(P.U)({url:_.a.API_SERVER+"/api/homework_commons/".concat(U.categoryId,"/works_list.zip"),query:U}));case 7:v();case 8:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),x=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return d(),I.next=3,Object(B.z)(Object(N.a)({},U));case 3:if(H=I.sent,!(H.status===0)){I.next=7;break}return I.next=7,Object(P.u)("",Object(P.U)({url:_.a.API_SERVER+"/api/polls/".concat(U.categoryId,"/commit_result.xlsx"),query:U}));case 7:v();case 8:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),E=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/attendances/export_xlsx_data.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),y=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/video_study_statics.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),L=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_course_students_info.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),R=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/item_banks/export.xlsx",query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),g=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),m=function(){var A=Object(K.a)(w.a.mark(function j(U){var H;return w.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Object(B.x)(Object(N.a)({},U));case 2:H=I.sent,H.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score"))):H.status===-3&&(Object(C.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),C.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score")));case 4:case"end":return I.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),c=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),V.next=3,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/export_records/".concat(U.id,".xlsx"),query:U}));case 3:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),u=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),D=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(U==null?void 0:U.ec_year_id,"/ec_training_objectives.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}(),T=function(){var A=Object(K.a)(w.a.mark(function j(U){return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(P.t)("",Object(P.U)({url:_.a.API_SERVER+"/api/ec_years/".concat(U==null?void 0:U.ec_year_id,"/ec_graduation_requirements.xlsx"),query:U}));case 2:case"end":return V.stop()}},j)}));return function(U){return A.apply(this,arguments)}}()},n6Qo:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return C});var ne=k("q1tI"),z=k("biw7"),N=k("fyJ8");function K(P){var _=P.className,d=P.index,v=P.children,b=P.colSpan,f=P.rowSpan,n=ne.useContext(z.a),p=n.prefixCls,o=n.fixedInfoList,r=o[d];return ne.createElement(N.a,Object.assign({className:_,index:d,component:"td",prefixCls:p,record:null,dataIndex:null,render:function(){return{children:v,props:{colSpan:b,rowSpan:f}}}},r))}function O(P){return ne.createElement("tr",Object.assign({},P))}function w(P){var _=P.children,d=ne.useContext(z.a),v=d.prefixCls;return ne.createElement("tfoot",{className:"".concat(v,"-summary")},_)}var B=Ee.b=w,C={Cell:K,Row:O}},nnTU:function(Gt,Ee,k){"use strict";k.d(Ee,"b",function(){return C}),k.d(Ee,"a",function(){return P});var ne=k("pmY6"),z=k("746U"),N=k("Cg/j"),K=k("MI8n"),O=k("24hK"),w=k("QDVR"),B=function(){for(var _=0,d=0,v=arguments.length;d2&&arguments[2]!==void 0?arguments[2]:"0",Ge=String(ee);Ge.length=12,_t%=12);var sn=C.useMemo(function(){if(!mt)return[!1,!1];var Un=[!0,!0];return $t.forEach(function(Yn){var er=Yn.disabled,Gr=Yn.value;if(er)return;Gr>=12?Un[1]=!1:Un[0]=!1}),Un},[mt,$t]),Dn=Object(B.a)(sn,2),Ln=Dn[0],cn=Dn[1],qn=C.useMemo(function(){return mt?$t.filter(Wn?function(Un){return Un.value>=12}:function(Un){return Un.value<12}).map(function(Un){var Yn=Un.value%12,er=Yn===0?"12":ie(Yn,2);return Object(w.a)(Object(w.a)({},Un),{},{label:er,value:Yn})}):$t},[mt,$t]),Pn=pe(0,59,At,Pt&&Pt(_t)),yr=pe(0,59,Yt,Wt&&Wt(_t,wt));Ge.current={onUpDown:function(Yn){var er=En[ot];if(er)for(var Gr=er.units.findIndex(function(oa){return oa.value===er.value}),qr=er.units.length,na=1;na1&&(ft=Te.addDate(ft,-7)),ft}function nt(ee,Te,Qe){var Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Te){case"year":return Qe.addYear(ee,Ge*10);case"quarter":case"month":return Qe.addYear(ee,Ge);default:return Qe.addMonth(ee,Ge)}}var He=C.createContext({}),pt=He;function Mt(ee){var Te=ee.cellPrefixCls,Qe=ee.generateConfig,Ge=ee.rangedValue,ot=ee.hoverRangedValue,ke=ee.isInView,ft=ee.isSameCell,yt=ee.offsetCell,Re=ee.today,mt=ee.value;function Bt(Dt){var lt,At=yt(Dt,-1),Lt=yt(Dt,1),Yt=Me(Ge,0),Ie=Me(Ge,1),Pt=Me(ot,0),Wt=Me(ot,1),dn=Zt(Qe,Pt,Wt,Dt);function Bn(wt){return ft(Yt,wt)}function En(wt){return ft(Ie,wt)}var Cn=ft(Pt,Dt),Kn=ft(Wt,Dt),Wn=(dn||Kn)&&(!ke(At)||En(At)),_t=(dn||Cn)&&(!ke(Lt)||Bn(Lt));return lt={},Object(O.a)(lt,"".concat(Te,"-in-view"),ke(Dt)),Object(O.a)(lt,"".concat(Te,"-in-range"),Zt(Qe,Yt,Ie,Dt)),Object(O.a)(lt,"".concat(Te,"-range-start"),Bn(Dt)),Object(O.a)(lt,"".concat(Te,"-range-end"),En(Dt)),Object(O.a)(lt,"".concat(Te,"-range-start-single"),Bn(Dt)&&!Ie),Object(O.a)(lt,"".concat(Te,"-range-end-single"),En(Dt)&&!Yt),Object(O.a)(lt,"".concat(Te,"-range-start-near-hover"),Bn(Dt)&&(ft(At,Pt)||Zt(Qe,Pt,Wt,At))),Object(O.a)(lt,"".concat(Te,"-range-end-near-hover"),En(Dt)&&(ft(Lt,Wt)||Zt(Qe,Pt,Wt,Lt))),Object(O.a)(lt,"".concat(Te,"-range-hover"),dn),Object(O.a)(lt,"".concat(Te,"-range-hover-start"),Cn),Object(O.a)(lt,"".concat(Te,"-range-hover-end"),Kn),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-start"),Wn),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-end"),_t),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-start-near-range"),Wn&&ft(At,Ie)),Object(O.a)(lt,"".concat(Te,"-range-hover-edge-end-near-range"),_t&&ft(Lt,Yt)),Object(O.a)(lt,"".concat(Te,"-today"),ft(Re,Dt)),Object(O.a)(lt,"".concat(Te,"-selected"),ft(mt,Dt)),lt}return Bt}function st(ee){for(var Te=ee.prefixCls,Qe=ee.disabledDate,Ge=ee.onSelect,ot=ee.rowNum,ke=ee.colNum,ft=ee.prefixColumn,yt=ee.rowClassName,Re=ee.baseDate,mt=ee.getCellClassName,Bt=ee.getCellText,Dt=ee.getCellNode,lt=ee.getCellDate,At=ee.titleCell,Lt=ee.headerCells,Yt=C.useContext(p),Ie=Yt.onDateMouseEnter,Pt=Yt.onDateMouseLeave,Wt="".concat(Te,"-cell"),dn=[],Bn=0;Bn2&&arguments[2]!==void 0?arguments[2]:!1;(Pe===Yt||Er)&&(Da(rn),Kn&&Kn(rn),qr&&qr(rn,Sn),Wn&&!Nt(yt,rn,ma)&&Wn(rn))},bn=function(rn){return ca.current&&ca.current.onKeyDown?([f.a.LEFT,f.a.RIGHT,f.a.UP,f.a.DOWN,f.a.PAGE_UP,f.a.PAGE_DOWN,f.a.ENTER].includes(rn.which)&&rn.preventDefault(),ca.current.onKeyDown(rn)):(Object(d.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Hn=function(rn){ca.current&&ca.current.onBlur&&ca.current.onBlur(rn)};er&&Xa!=="right"&&(er.current={onKeyDown:bn,onClose:function(){ca.current&&ca.current.onClose&&ca.current.onClose()}}),C.useEffect(function(){Re&&!Na.current&&tt(Re)},[Re]),C.useEffect(function(){Na.current=!1},[]);var or,ar=Object(w.a)(Object(w.a)({},ee),{},{operationRef:ca,prefixCls:Ge,viewDate:Ye,value:ma,onViewDateChange:Ae,sourceMode:ut,onPanelChange:Ft,disabledDate:Pe!=="decade"?lt:void 0});delete ar.onChange,delete ar.onSelect;switch(Pe){case"decade":or=C.createElement(S,Object.assign({},ar,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}}));break;case"year":or=C.createElement(Br,Object.assign({},ar,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}}));break;case"month":or=C.createElement(Ct,Object.assign({},ar,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}}));break;case"quarter":or=C.createElement(xn,Object.assign({},ar,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}}));break;case"week":or=C.createElement(pn,Object.assign({},ar,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}}));break;case"time":delete ar.showTime,or=C.createElement(me,Object.assign({},ar,Object(b.a)(dn)==="object"?dn:null,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}}));break;default:dn?or=C.createElement(Rt,Object.assign({},ar,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}})):or=C.createElement(Ce,Object.assign({},ar,{onSelect:function(rn,Sn){Ae(rn),Jt(rn,Sn)}}))}var br,hr,pr=function(){var rn=yt.getNow(),Sn=Ve(yt.getHour(rn),yt.getMinute(rn),yt.getSecond(rn),zr?Dn:1,gr?cn:1,Un?Pn:1),Er=qe(yt,rn,Sn[0],Sn[1],Sn[2]);Jt(Er,"submit")};na||(br=M(Ge,Pe,En),hr=$({prefixCls:Ge,components:jn,needConfirmButton:yr,okDisabled:!ma||lt&<(ma),locale:ft,showNow:Wt,onNow:yr&&pr,onOk:function(){ma&&(Jt(ma,"submit",!0),kt&&kt(ma))}}));var Cr;if(Bn&&Pe==="date"&&Yt==="date"&&!dn){var Rr=yt.getNow(),$n="".concat(Ge,"-today-btn"),Ar=lt&<(Rr);Cr=C.createElement("a",{className:_()($n,Ar&&"".concat($n,"-disabled")),"aria-disabled":Ar,onClick:function(){Ar||Jt(Rr,"mouse",!0)}},ft.today)}return C.createElement(p.Provider,{value:Object(w.a)(Object(w.a)({},Yn),{},{hideHeader:"hideHeader"in ee?Cn:Yn.hideHeader,hidePrevBtn:pa&&Xa==="right",hideNextBtn:pa&&Xa==="left"})},C.createElement("div",{tabIndex:Pt,className:_()("".concat(Ge,"-panel"),ot,(Te={},Object(O.a)(Te,"".concat(Ge,"-panel-has-range"),Oa&&Oa[0]&&Oa[1]),Object(O.a)(Te,"".concat(Ge,"-panel-has-range-hover"),Qa&&Qa[0]&&Qa[1]),Object(O.a)(Te,"".concat(Ge,"-panel-rtl"),$t==="rtl"),Te)),style:ke,onKeyDown:bn,onBlur:Hn,onMouseDown:wt,ref:Gr},or,br||hr||Cr?C.createElement("div",{className:"".concat(Ge,"-footer")},br,hr,Cr):null))}var q=te,Xe=k("uciX"),Kt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function yn(ee){var Te,Qe=ee.prefixCls,Ge=ee.popupElement,ot=ee.popupStyle,ke=ee.visible,ft=ee.dropdownClassName,yt=ee.dropdownAlign,Re=ee.transitionName,mt=ee.getPopupContainer,Bt=ee.children,Dt=ee.range,lt=ee.popupPlacement,At=ee.direction,Lt="".concat(Qe,"-dropdown"),Yt=function(){return lt!==void 0?lt:At==="rtl"?"bottomRight":"bottomLeft"};return C.createElement(Xe.a,{showAction:[],hideAction:[],popupPlacement:Yt(),builtinPlacements:Kt,prefixCls:Lt,popupTransitionName:Re,popup:Ge,popupAlign:yt,popupVisible:ke,popupClassName:_()(ft,(Te={},Object(O.a)(Te,"".concat(Lt,"-range"),Dt),Object(O.a)(Te,"".concat(Lt,"-rtl"),At==="rtl"),Te)),popupStyle:ot,getPopupContainer:mt},Bt)}var In=yn;function Xt(ee){var Te=ee.open,Qe=ee.value,Ge=ee.isClickOutside,ot=ee.triggerOpen,ke=ee.forwardKeyDown,ft=ee.blurToCancel,yt=ee.onSubmit,Re=ee.onCancel,mt=ee.onFocus,Bt=ee.onBlur,Dt=Object(C.useState)(!1),lt=Object(B.a)(Dt,2),At=lt[0],Lt=lt[1],Yt=Object(C.useState)(!1),Ie=Object(B.a)(Yt,2),Pt=Ie[0],Wt=Ie[1],dn=Object(C.useRef)(!1),Bn=Object(C.useRef)(!1),En={onMouseDown:function(){Lt(!0),ot(!0)},onKeyDown:function(Kn){switch(Kn.which){case f.a.ENTER:{Te?yt()!==!1&&Lt(!0):ot(!0),Kn.preventDefault();return}case f.a.TAB:{At&&Te&&!Kn.shiftKey?(Lt(!1),Kn.preventDefault()):!At&&Te&&(!ke(Kn)&&Kn.shiftKey&&(Lt(!0),Kn.preventDefault()));return}case f.a.ESC:{Lt(!0),Re();return}}!Te&&![f.a.SHIFT].includes(Kn.which)?ot(!0):At||ke(Kn)},onFocus:function(Kn){Lt(!0),Wt(!0),mt&&mt(Kn)},onBlur:function(Kn){if(dn.current||!Ge(document.activeElement)){dn.current=!1;return}ft?setTimeout(function(){Ge(document.activeElement)&&Re()},0):Te&&(ot(!1),Bn.current&&yt()),Wt(!1),Bt&&Bt(Kn)}};return Object(C.useEffect)(function(){Bn.current=!1},[Te]),Object(C.useEffect)(function(){Bn.current=!0},[Qe]),Object(C.useEffect)(function(){return T(function(Cn){var Kn=Cn.target;Te&&(Ge(Kn)?Pt||ot(!1):(dn.current=!0,requestAnimationFrame(function(){dn.current=!1})))})}),[En,{focused:Pt,typing:At}]}function rr(ee){var Te=ee.valueTexts,Qe=ee.onTextChange,Ge=C.useState(""),ot=Object(B.a)(Ge,2),ke=ot[0],ft=ot[1],yt=C.useRef([]);yt.current=Te;function Re(Bt){ft(Bt),Qe(Bt)}function mt(){ft(yt.current[0])}return C.useEffect(function(){Te.every(function(Bt){return Bt!==ke})&&mt()},[Te.join("||")]),[ke,Re,mt]}var nn=k("Gytx"),Qt=k.n(nn);function un(ee,Te){var Qe=Te.formatList,Ge=Te.generateConfig,ot=Te.locale;return Object(E.a)(function(){if(!ee)return[[""],""];for(var ke="",ft=[],yt=0;yt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(mt.current),Pt){Re(Ie);return}mt.current=requestAnimationFrame(function(){Re(Ie)})}var Dt=un(yt,{formatList:Qe,generateConfig:Ge,locale:ot}),lt=Object(B.a)(Dt,2),At=lt[1];function Lt(Ie){Bt(Ie)}function Yt(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Bt(null,Ie)}return Object(C.useEffect)(function(){Yt(!0)},[ee]),Object(C.useEffect)(function(){return function(){return cancelAnimationFrame(mt.current)}},[]),[At,Lt,Yt]}function zn(ee){var Te,Qe=ee.prefixCls,Ge=Qe===void 0?"rc-picker":Qe,ot=ee.id,ke=ee.tabIndex,ft=ee.style,yt=ee.className,Re=ee.dropdownClassName,mt=ee.dropdownAlign,Bt=ee.popupStyle,Dt=ee.transitionName,lt=ee.generateConfig,At=ee.locale,Lt=ee.inputReadOnly,Yt=ee.allowClear,Ie=ee.autoFocus,Pt=ee.showTime,Wt=ee.picker,dn=Wt===void 0?"date":Wt,Bn=ee.format,En=ee.use12Hours,Cn=ee.value,Kn=ee.defaultValue,Wn=ee.open,_t=ee.defaultOpen,wt=ee.defaultOpenValue,Vt=ee.suffixIcon,kt=ee.clearIcon,jn=ee.disabled,$t=ee.disabledDate,sn=ee.placeholder,Dn=ee.getPopupContainer,Ln=ee.pickerRef,cn=ee.panelRender,qn=ee.onChange,Pn=ee.onOpenChange,yr=ee.onFocus,zr=ee.onBlur,gr=ee.onMouseDown,Un=ee.onMouseUp,Yn=ee.onMouseEnter,er=ee.onMouseLeave,Gr=ee.onContextMenu,qr=ee.onClick,na=ee.direction,ha=ee.autoComplete,oa=ha===void 0?"off":ha,pa=C.useRef(null),Xa=dn==="date"&&!!Pt||dn==="time",Oa=xe(m(Bn,dn,Pt,En)),Qa=C.useRef(null),ca=C.useRef(null),Na=Object(v.a)(null,{value:Cn,defaultValue:Kn}),ai=Object(B.a)(Na,2),Ra=ai[0],ma=ai[1],Da=C.useState(Ra),wa=Object(B.a)(Da,2),_e=wa[0],Ye=wa[1],tt=C.useRef(null),Ae=Object(v.a)(!1,{value:Wn,defaultValue:_t,postState:function(vn){return jn?!1:vn},onChange:function(vn){Pn&&Pn(vn),!vn&&tt.current&&tt.current.onClose&&tt.current.onClose()}}),le=Object(B.a)(Ae,2),ye=le[0],fe=le[1],Pe=un(_e,{formatList:Oa,generateConfig:lt,locale:At}),je=Object(B.a)(Pe,2),rt=je[0],Ke=je[1],ut=rr({valueTexts:rt,onTextChange:function(vn){var Hr=lt.locale.parse(At.locale,vn,Oa);Hr&&(!$t||!$t(Hr))&&Ye(Hr)}}),St=Object(B.a)(ut,3),Ft=St[0],Jt=St[1],bn=St[2],Hn=function(vn){Ye(vn),ma(vn),qn&&!Nt(lt,Ra,vn)&&qn(vn,vn?lt.locale.format(At.locale,vn,Oa[0]):"")},or=function(vn){if(jn&&vn)return;fe(vn)},ar=function(vn){return ye&&tt.current&&tt.current.onKeyDown?tt.current.onKeyDown(vn):(Object(d.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},br=function(){Un&&Un.apply(void 0,arguments),pa.current&&(pa.current.focus(),or(!0))},hr=Xt({blurToCancel:Xa,open:ye,value:Ft,triggerOpen:or,forwardKeyDown:ar,isClickOutside:function(vn){return!I([Qa.current,ca.current],vn)},onSubmit:function(){return $t&&$t(_e)?!1:(Hn(_e),or(!1),bn(),!0)},onCancel:function(){or(!1),Ye(Ra),bn()},onFocus:yr,onBlur:zr}),pr=Object(B.a)(hr,2),Cr=pr[0],Rr=pr[1],$n=Rr.focused,Ar=Rr.typing;C.useEffect(function(){ye||(Ye(Ra),!rt.length||rt[0]===""?Jt(""):Ke!==Ft&&bn())},[ye,rt]),C.useEffect(function(){ye||bn()},[dn]),C.useEffect(function(){Ye(Ra)},[Ra]),Ln&&(Ln.current={focus:function(){pa.current&&pa.current.focus()},blur:function(){pa.current&&pa.current.blur()}});var Jn=Object(w.a)(Object(w.a)({},ee),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),rn=C.createElement(q,Object.assign({},Jn,{generateConfig:lt,className:_()(Object(O.a)({},"".concat(Ge,"-panel-focused"),!Ar)),value:_e,locale:At,tabIndex:-1,onChange:Ye,direction:na}));cn&&(rn=cn(rn));var Sn=C.createElement("div",{className:"".concat(Ge,"-panel-container"),onMouseDown:function(vn){vn.preventDefault()}},rn),Er;Vt&&(Er=C.createElement("span",{className:"".concat(Ge,"-suffix")},Vt));var Mr;Yt&&Ra&&!jn&&(Mr=C.createElement("span",{onMouseDown:function(vn){vn.preventDefault(),vn.stopPropagation()},onMouseUp:function(vn){vn.preventDefault(),vn.stopPropagation(),Hn(null),or(!1)},className:"".concat(Ge,"-clear")},kt||C.createElement("span",{className:"".concat(Ge,"-clear-btn")})));var Vn=function(vn,Hr){(Hr==="submit"||Hr!=="key"&&!Xa)&&(Hn(vn),or(!1))},kr=na==="rtl"?"bottomRight":"bottomLeft",Yr=wn(Ft,{formatList:Oa,generateConfig:lt,locale:At}),Ir=Object(B.a)(Yr,3),gn=Ir[0],hn=Ir[1],Rn=Ir[2];return C.createElement(p.Provider,{value:{operationRef:tt,hideHeader:dn==="time",panelRef:Qa,onSelect:Vn,open:ye,defaultOpenValue:wt,onDateMouseEnter:hn,onDateMouseLeave:Rn}},C.createElement(In,{visible:ye,popupElement:Sn,popupStyle:Bt,prefixCls:Ge,dropdownClassName:Re,dropdownAlign:mt,getPopupContainer:Dn,transitionName:Dt,popupPlacement:kr,direction:na},C.createElement("div",{className:_()(Ge,yt,(Te={},Object(O.a)(Te,"".concat(Ge,"-disabled"),jn),Object(O.a)(Te,"".concat(Ge,"-focused"),$n),Object(O.a)(Te,"".concat(Ge,"-rtl"),na==="rtl"),Te)),style:ft,onMouseDown:gr,onMouseUp:br,onMouseEnter:Yn,onMouseLeave:er,onContextMenu:Gr,onClick:qr},C.createElement("div",{className:_()("".concat(Ge,"-input"),Object(O.a)({},"".concat(Ge,"-input-placeholder"),!!gn)),ref:ca},C.createElement("input",Object.assign({id:ot,tabIndex:ke,disabled:jn,readOnly:Lt||!Ar,value:gn||Ft,onChange:function(vn){Jt(vn.target.value)},autoFocus:Ie,placeholder:sn,ref:pa,title:Ft},Cr,{size:c(dn,Oa[0])},Ze(ee),{autoComplete:oa})),Er,Mr))))}var cr=function(ee){Object(N.a)(Qe,ee);var Te=Object(K.a)(Qe);function Qe(){var Ge;return Object(ne.a)(this,Qe),Ge=Te.apply(this,arguments),Ge.pickerRef=C.createRef(),Ge.focus=function(){Ge.pickerRef.current&&Ge.pickerRef.current.focus()},Ge.blur=function(){Ge.pickerRef.current&&Ge.pickerRef.current.blur()},Ge}return Object(z.a)(Qe,[{key:"render",value:function(){return C.createElement(zn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Qe}(C.Component),sr=cr;function Tr(ee,Te,Qe){var Ge=ee.picker,ot=ee.locale,ke=ee.selectedValue,ft=ee.disabledDate,yt=ee.disabled,Re=ee.generateConfig,mt=Me(ke,0),Bt=Me(ke,1);function Dt(Ie){var Pt=Re.getYear(Ie),Wt=Re.locale.getWeek(ot.locale,Ie);return Pt*100+Wt}function lt(Ie){var Pt=Re.getYear(Ie),Wt=Re.getMonth(Ie);return Pt*100+Wt}function At(Ie){var Pt=Re.getYear(Ie),Wt=be(Re,Ie);return Pt*10+Wt}var Lt=C.useCallback(function(Ie){if(ft&&ft(Ie))return!0;if(yt[1]&&Bt)return!Tt(Re,Ie,Bt)&&Re.isAfter(Ie,Bt);if(Te&&Bt)switch(Ge){case"quarter":return At(Ie)>At(Bt);case"month":return lt(Ie)>lt(Bt);case"week":return Dt(Ie)>Dt(Bt);default:return!Tt(Re,Ie,Bt)&&Re.isAfter(Ie,Bt)}return!1},[ft,yt[1],Bt,Te]),Yt=C.useCallback(function(Ie){if(ft&&ft(Ie))return!0;if(yt[0]&&mt)return!Tt(Re,Ie,Bt)&&Re.isAfter(mt,Ie);if(Qe&&mt)switch(Ge){case"quarter":return At(Ie)0&&arguments[0]!==void 0?arguments[0]:!1,Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nr=null;Rn&&ka&&ka[0]&&ka[1]&&Lt.isAfter(ka[1],ka[0])&&(nr=ka);var Nr=Cn;if(Cn&&Object(b.a)(Cn)==="object"&&Cn.defaultValue){var sa=Cn.defaultValue;Nr=Object(w.a)(Object(w.a)({},Cn),{},{defaultValue:Me(sa,Ke)||void 0})}var vi=null;return Ln&&(vi=function(Pa,Ya){return Ln(Pa,Ya,{range:Ke?"end":"start"})}),C.createElement(pt.Provider,{value:{inRange:!0,panelPosition:wr,rangedValue:Xi||$n,hoverRangedValue:nr}},C.createElement(q,Object.assign({},ee,Fn,{dateRender:vi,showTime:Nr,mode:Sn[Ke],generateConfig:Lt,style:void 0,direction:Na,disabledDate:Ke===0?Yr:Ir,disabledTime:function(Pa){return Dn?Dn(Pa,Ke===0?"start":"end"):!1},className:_()(Object(O.a)({},"".concat(ke,"-panel-focused"),Ke===0?!ga:!so)),value:Me($n,Ke),locale:Yt,tabIndex:-1,onPanelChange:function(Pa,Ya){Mr(Be(Sn,Ya,Ke),Be($n,Pa,Ke));var gi=Pa;wr==="right"&&Sn[Ke]===Ya&&(gi=nt(gi,Ya,Lt,-1)),pr(gi,Ke)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var da=0,Fa=0;Ke&&tt.current&&le.current&&Ye.current&&(da=tt.current.offsetWidth+le.current.offsetWidth,Ye.current.offsetWidth&&da>Ye.current.offsetWidth&&(Fa=da));var Pi=Na==="rtl"?{right:da}:{left:da};function ci(){var wr,Fn=M(ke,Sn[Ke],Gr),nr=$({prefixCls:ke,components:Qa,needConfirmButton:Da,okDisabled:!Me($n,Ke)||sn&&sn($n[Ke]),locale:Yt,rangeList:Vr,onOk:function(){Me($n,Ke)&&(Ua($n,Ke),Oa&&Oa($n))}});if(En!=="time"&&!Cn){var Nr=hr(Ke),sa=nt(Nr,En,Lt),vi=Sn[Ke],ii=vi===En,Pa=Ur(ii?"left":!1,{pickerValue:Nr,onPickerValueChange:function(Sa){pr(Sa,Ke)}}),Ya=Ur("right",{pickerValue:sa,onPickerValueChange:function(Sa){pr(nt(Sa,En,Lt,-1),Ke)}});Na==="rtl"?wr=C.createElement(C.Fragment,null,Ya,ii&&Pa):wr=C.createElement(C.Fragment,null,Pa,ii&&Ya)}else wr=Ur();var gi=C.createElement(C.Fragment,null,C.createElement("div",{className:"".concat(ke,"-panels")},wr),(Fn||nr)&&C.createElement("div",{className:"".concat(ke,"-footer")},Fn,nr));return cn&&(gi=cn(gi)),C.createElement("div",{className:"".concat(ke,"-panel-container"),style:{marginLeft:Fa},ref:Ye,onMouseDown:function(Sa){Sa.preventDefault()}},gi)}var Ui=C.createElement("div",{className:_()("".concat(ke,"-range-wrapper"),"".concat(ke,"-").concat(En,"-range-wrapper")),style:{minWidth:fa}},C.createElement("div",{className:"".concat(ke,"-range-arrow"),style:Pi}),ci()),di;zr&&(di=C.createElement("span",{className:"".concat(ke,"-suffix")},zr));var Ca;yr&&(Me(Hn,0)&&!Ft[0]||Me(Hn,1)&&!Ft[1])&&(Ca=C.createElement("span",{onMouseDown:function(Fn){Fn.preventDefault(),Fn.stopPropagation()},onMouseUp:function(Fn){Fn.preventDefault(),Fn.stopPropagation();var nr=Hn;Ft[0]||(nr=Be(nr,null,0)),Ft[1]||(nr=Be(nr,null,1)),Ua(nr,null),Jr(!1,Ke)},className:"".concat(ke,"-clear")},gr||C.createElement("span",{className:"".concat(ke,"-clear-btn")})));var Fi={size:c(En,Pe[0])},Bi=0,Wi=0;tt.current&&Ae.current&&le.current&&(Ke===0?Wi=tt.current.offsetWidth:(Bi=da,Wi=Ae.current.offsetWidth));var Ka=Na==="rtl"?{right:Bi}:{left:Bi},Kr=function(Fn,nr){var Nr=Be($n,Fn,Ke);nr==="submit"||nr!=="key"&&!Da?(Ua(Nr,Ke),Ke===0?$i():ro()):Ar(Nr)};return C.createElement(p.Provider,{value:{operationRef:St,hideHeader:En==="time",onDateMouseEnter:Do,onDateMouseLeave:Ao,hideRanges:!0,onSelect:Kr,open:Rn}},C.createElement(In,{visible:Rn,popupElement:Ui,popupStyle:mt,prefixCls:ke,dropdownClassName:Bt,dropdownAlign:lt,getPopupContainer:At,transitionName:Dt,range:!0,direction:Na},C.createElement("div",Object.assign({ref:_e,className:_()(ke,"".concat(ke,"-range"),Re,(Te={},Object(O.a)(Te,"".concat(ke,"-disabled"),Ft[0]&&Ft[1]),Object(O.a)(Te,"".concat(ke,"-focused"),Ke===0?Aa:oo),Object(O.a)(Te,"".concat(ke,"-rtl"),Na==="rtl"),Te)),style:yt,onClick:Ci,onMouseDown:Ji},Ze(ee)),C.createElement("div",{className:_()("".concat(ke,"-input"),(Qe={},Object(O.a)(Qe,"".concat(ke,"-input-active"),Ke===0),Object(O.a)(Qe,"".concat(ke,"-input-placeholder"),!!mi),Qe)),ref:tt},C.createElement("input",Object.assign({id:ft,disabled:Ft[0],readOnly:Yn||!ga,value:mi||Ti,onChange:function(Fn){ki(Fn.target.value)},autoFocus:Pt,placeholder:Me(Ie,0)||"",ref:ye},Ha,Fi,{autoComplete:ma}))),C.createElement("div",{className:"".concat(ke,"-range-separator"),ref:le},_t),C.createElement("div",{className:_()("".concat(ke,"-input"),(Ge={},Object(O.a)(Ge,"".concat(ke,"-input-active"),Ke===1),Object(O.a)(Ge,"".concat(ke,"-input-placeholder"),!!ui),Ge)),ref:Ae},C.createElement("input",Object.assign({disabled:Ft[1],readOnly:Yn||!so,value:ui||Oi,onChange:function(Fn){Vi(Fn.target.value)},placeholder:Me(Ie,1)||"",ref:fe},qa,Fi,{autoComplete:ma}))),C.createElement("div",{className:"".concat(ke,"-active-bar"),style:Object(w.a)(Object(w.a)({},Ka),{},{width:Wi,position:"absolute"})}),di,Ca)))}var An=function(ee){Object(N.a)(Qe,ee);var Te=Object(K.a)(Qe);function Qe(){var Ge;return Object(ne.a)(this,Qe),Ge=Te.apply(this,arguments),Ge.pickerRef=C.createRef(),Ge.focus=function(){Ge.pickerRef.current&&Ge.pickerRef.current.focus()},Ge.blur=function(){Ge.pickerRef.current&&Ge.pickerRef.current.blur()},Ge}return Object(z.a)(Qe,[{key:"render",value:function(){return C.createElement(Lr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Qe}(C.Component),ur=An,Or=Ee.b=sr},osHv:function(Gt,Ee,k){(function(ne){ne(k("VrN/"))})(function(ne){"use strict";var z=ne.Pos;function N(o,r){return o.line-r.line||o.ch-r.ch}var K="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",O=K+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+K+"]["+O+"]*)","g");function B(o,r,s,l){this.line=r,this.ch=s,this.cm=o,this.text=o.getLine(r),this.min=l?Math.max(l.from,o.firstLine()):o.firstLine(),this.max=l?Math.min(l.to-1,o.lastLine()):o.lastLine()}function C(o,r){var s=o.cm.getTokenTypeAt(z(o.line,r));return s&&/\btag\b/.test(s)}function P(o){return o.line>=o.max?void 0:(o.ch=0,o.text=o.cm.getLine(++o.line),!0)}function _(o){return o.line<=o.min?void 0:(o.text=o.cm.getLine(--o.line),o.ch=o.text.length,!0)}function d(o){for(;;){var r=o.text.indexOf(">",o.ch);if(r==-1){if(P(o))continue;return}if(!C(o,r+1)){o.ch=r+1;continue}var s=o.text.lastIndexOf("/",r),l=s>-1&&!/\S/.test(o.text.slice(s+1,r));return o.ch=r+1,l?"selfClose":"regular"}}function v(o){for(;;){var r=o.ch?o.text.lastIndexOf("<",o.ch-1):-1;if(r==-1){if(_(o))continue;return}if(!C(o,r+1)){o.ch=r;continue}w.lastIndex=r,o.ch=r;var s=w.exec(o.text);if(s&&s.index==r)return s}}function b(o){for(;;){w.lastIndex=o.ch;var r=w.exec(o.text);if(!r){if(P(o))continue;return}if(!C(o,r.index+1)){o.ch=r.index+1;continue}return o.ch=r.index+r[0].length,r}}function f(o){for(;;){var r=o.ch?o.text.lastIndexOf(">",o.ch-1):-1;if(r==-1){if(_(o))continue;return}if(!C(o,r+1)){o.ch=r;continue}var s=o.text.lastIndexOf("/",r),l=s>-1&&!/\S/.test(o.text.slice(s+1,r));return o.ch=r+1,l?"selfClose":"regular"}}function n(o,r){for(var s=[];;){var l=b(o),x,E=o.line,y=o.ch-(l?l[0].length:0);if(!l||!(x=d(o)))return;if(x=="selfClose")continue;if(l[1]){for(var L=s.length-1;L>=0;--L)if(s[L]==l[2]){s.length=L;break}if(L<0&&(!r||r==l[2]))return{tag:l[2],from:z(E,y),to:z(o.line,o.ch)}}else s.push(l[2])}}function p(o,r){for(var s=[];;){var l=f(o);if(!l)return;if(l=="selfClose"){v(o);continue}var x=o.line,E=o.ch,y=v(o);if(!y)return;if(y[1])s.push(y[2]);else{for(var L=s.length-1;L>=0;--L)if(s[L]==y[2]){s.length=L;break}if(L<0&&(!r||r==y[2]))return{tag:y[2],from:z(o.line,o.ch),to:z(x,E)}}}}ne.registerHelper("fold","xml",function(o,r){for(var s=new B(o,r.line,0);;){var l=b(s);if(!l||s.line!=r.line)return;var x=d(s);if(!x)return;if(!l[1]&&x!="selfClose"){var E=z(s.line,s.ch),y=n(s,l[2]);return y&&N(y.from,E)>0?{from:E,to:y.from}:null}}}),ne.findMatchingTag=function(o,r,s){var l=new B(o,r.line,r.ch,s);if(l.text.indexOf(">")==-1&&l.text.indexOf("<")==-1)return;var x=d(l),E=x&&z(l.line,l.ch),y=x&&v(l);if(!x||!y||N(l,r)>0)return;var L={from:z(l.line,l.ch),to:E,tag:y[2]};return x=="selfClose"?{open:L,close:null,at:"open"}:y[1]?{open:p(l,y[2]),close:L,at:"close"}:(l=new B(o,E.line,E.ch,s),{open:L,close:n(l,y[2]),at:"open"})},ne.findEnclosingTag=function(o,r,s,l){for(var x=new B(o,r.line,r.ch,s);;){var E=p(x,l);if(!E)break;var y=new B(o,r.line,r.ch,s),L=n(y,E.tag);if(L)return{open:E,close:L}}},ne.scanForClosingTag=function(o,r,s,l){var x=new B(o,r.line,r.ch,l?{from:0,to:l}:null);return n(x,s)}})},p5ED:function(Gt,Ee,k){"use strict";var ne=k("+L6B"),z=k("2/Rp"),N=k("5Dmo"),K=k("3S7+"),O=k("k1fw"),w=k("9og8"),B=k("tJVT"),C=k("WmNS"),P=k.n(C),_=k("q1tI"),d=k.n(_),v=k("vHTk"),b=k.n(v),f=k("yEEn"),n=k("ZW9T"),p=k("1vsH"),o=k("V0Rq"),r=k("m3rI");Ee.a=function(s){var l,x,E,y,L,R,g=s.editOffice,m=g===void 0?"view":g,c=s.name,u=s.data,D=s.theme,T=s.type,A=s.filename,j=s.monacoEditor,U=s.className,H=s.style,V=s.close,I=s.onClose,W=s.hasMask,Q=s.disabledDownload,ie=s.onImgDimensions,ae=s.otherData,xe=Object(_.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ze=Object(B.a)(xe,2),Me=Ze[0],Be=Ze[1],qe=Object(_.useState)(""),Ve=Object(B.a)(qe,2),De=Ve[0],pe=Ve[1],se=Object(_.useState)(),we=Object(B.a)(se,2),ve=we[0],$e=we[1],me=window.ENV==="build"?"/react/build":"",X=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,G,Y=1024*1024,ue=10*Y,be=Object(_.useRef)();(l=u)!==null&&l!==void 0&&l.startsWith("/api")&&T!=="txt"&&(u=r.a.API_SERVER+u),T==="office"&&(G=Object(p.P)(u).filesize,G>ue&&(T="other")),A&&(j.filename=A),Object(_.useEffect)(function(){var Ut,It,Nt=(Ut=document.cookie)===null||Ut===void 0||((It=Ut.replace(/\s/g,""))===null||It===void 0)?void 0:It.split(";");Nt==null||Nt.map(function(Zt){var fn=Zt.split("=");fn[0]==="_educoder_session"&&pe(fn[1])})},[]),Object(_.useEffect)(function(){T==="office"&&We()},[T,u]);var We=function(){var Ut=Object(w.a)(P.a.mark(function It(){var Nt,Zt,fn;return P.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return console.log("data:",u),Nt=u,u.startsWith("http")||(Nt=location.origin+Nt),Zt=new URL(Nt).pathname.split("/").pop(),He.next=6,Object(o.U)({attachment_id:Zt});case 6:fn=He.sent,$e(fn);case 8:case"end":return He.stop()}},It)}));return function(){return Ut.apply(this,arguments)}}(),ze=function(){if(u.startsWith("http")||u.startsWith("blob:")){Tt();return}Object(p.x)(A||"educoder",u,A)},Tt=function(){Object(p.v)(A||"educoder",decodeURIComponent(u))};return d.a.createElement("div",{style:Object(O.a)({},H||{}),className:"".concat(W&&b.a.bgBlack," ").concat(T?b.a.wrp:"hide")},V&&d.a.createElement("div",{className:b.a.close,ref:be},!!ie&&d.a.createElement(K.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return be.current}},d.a.createElement("span",{onClick:function(){I(),ie()}},d.a.createElement("i",{className:"icon-yulanpizhu"}))),!Q&&d.a.createElement(K.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return be.current}},d.a.createElement("span",{onClick:Tt},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(K.a,{title:"\u5173\u95ED",getPopupContainer:function(){return be.current}},d.a.createElement("span",{className:"",onClick:I},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(b.a[U]," ").concat(U," ").concat(b.a.monaco," ").concat(T==="txt"?"show":"hide")},T==="txt"&&d.a.createElement(n.b,j)),T==="audio"&&d.a.createElement("audio",{src:"".concat(((x=u)===null||x===void 0?void 0:x.indexOf("http://"))>-1||((E=u)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(u),autoPlay:!0}),T==="video"&&d.a.createElement(d.a.Fragment,null,((y=u)===null||y===void 0?void 0:y.indexOf("http"))>-1?d.a.createElement("video",{controls:!0,src:"".concat(u),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(u),autoPlay:!0})),T==="office"&&ve&&d.a.createElement("iframe",{src:"".concat(me,"/office.html?key=").concat(ve.key,"&url=").concat(X+ve.url,"&callbackUrl=").concat(X+ve.callbackUrl,"&fileType=").concat(ve.fileType,"&title=").concat(ve.title,"&model=").concat(m,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Q)}),(T==="xlsx"||T==="doc"||T==="pptx"||T==="docx")&&d.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(ae.key,"&url=").concat(r.a.API_SERVER+ae.url,"&callbackUrl=").concat(r.a.API_SERVER+ae.callbackUrl,"&fileType=").concat(ae.fileType,"&title=").concat(ae.title,"&model=").concat(ae.model)}),T==="html"&&d.a.createElement("iframe",{src:u+"&disposition=inline"}),T==="pdf"&&d.a.createElement("embed",{className:b.a.embed,src:u}),T==="image"&&d.a.createElement("img",{src:"".concat(((L=u)===null||L===void 0?void 0:L.indexOf("http://"))>-1||((R=u)===null||R===void 0?void 0:R.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(u)}),T==="other"&&d.a.createElement("div",null,d.a.createElement(z.a,{type:"primary",size:"large",onClick:ze},d.a.createElement(f.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),T==="download"&&d.a.createElement(z.a,{type:"primary",size:"large",onClick:ze},d.a.createElement(f.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Gt,Ee,k){},pmY6:function(Gt,Ee,k){"use strict";k.d(Ee,"g",function(){return O}),k.d(Ee,"f",function(){return w}),k.d(Ee,"e",function(){return B}),k.d(Ee,"h",function(){return C}),k.d(Ee,"b",function(){return P}),k.d(Ee,"a",function(){return _}),k.d(Ee,"d",function(){return d}),k.d(Ee,"c",function(){return v});var ne=!1,z="__is_disposable_tracked__";function N(b){if(!ne)return;if(b&&b!==_.None)try{b[z]=!0}catch(f){}}function K(b){if(!ne)return b;var f=new Error("Potentially leaked disposable").stack;return setTimeout(function(){b[z]||console.log(f)},3e3),b}function O(b){return typeof b.dispose=="function"&&b.dispose.length===0}function w(b){return Array.isArray(b)?(b.forEach(function(f){f&&(N(f),f.dispose())}),[]):b?(N(b),b.dispose(),b):void 0}function B(){for(var b=[],f=0;f=N.length?{done:!0}:{done:!1,value:N[w++]}},e:function(v){throw v},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var C=!0,P=!1,_;return{s:function(){O=N[Symbol.iterator]()},n:function(){var v=O.next();return C=v.done,v},e:function(v){P=!0,_=v},f:function(){try{!C&&O.return!=null&&O.return()}finally{if(P)throw _}}}}},rUJ1:function(Gt,Ee){const k=/[&<>"']/,ne=/[&<>"']/g,z=/[<>"']|&(?!#?\w+;)/,N=/[<>"']|&(?!#?\w+;)/g,K={"&":"&","<":"<",">":">",'"':""","'":"'"},O=R=>K[R];function w(R,g){if(g){if(k.test(R))return R.replace(ne,O)}else if(z.test(R))return R.replace(N,O);return R}const B=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function C(R){return R.replace(B,(g,m)=>(m=m.toLowerCase(),m==="colon"?":":m.charAt(0)==="#"?m.charAt(1)==="x"?String.fromCharCode(parseInt(m.substring(2),16)):String.fromCharCode(+m.substring(1)):""))}const P=/(^|[^\[])\^/g;function _(R,g){R=R.source||R,g=g||"";const m={replace:(c,u)=>(u=u.source||u,u=u.replace(P,"$1"),R=R.replace(c,u),m),getRegex:()=>new RegExp(R,g)};return m}const d=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(R,g,m){if(R){let c;try{c=decodeURIComponent(C(m)).replace(d,"").toLowerCase()}catch(u){return null}if(c.indexOf("javascript:")===0||c.indexOf("vbscript:")===0||c.indexOf("data:")===0)return null}g&&!v.test(m)&&(m=r(g,m));try{m=encodeURI(m).replace(/%25/g,"%")}catch(c){return null}return m}const f={},n=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,o=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(R,g){f[" "+R]||(n.test(R)?f[" "+R]=R+"/":f[" "+R]=E(R,"/",!0)),R=f[" "+R];const m=R.indexOf(":")===-1;return g.substring(0,2)==="//"?m?g:R.replace(p,"$1")+g:g.charAt(0)==="/"?m?g:R.replace(o,"$1")+g:R+g}const s={exec:function(){}};function l(R){let g=1,m,c;for(;g{let j=!1,U=T;for(;--U>=0&&A[U]==="\\";)j=!j;return j?"|":" |"}),c=m.split(/ \|/);let u=0;if(c.length>g)c.splice(g);else for(;c.length1)Object(_.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(_.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=l[0];if(w.isValidElement(x)&&Object(d.c)(x)){var E=x.ref;l[0]=w.cloneElement(x,{ref:Object(d.a)(E,this.setChildNode)})}return l.length===1?l[0]:l.map(function(y,L){return!w.isValidElement(y)||"key"in y&&y.key!==null?y:w.cloneElement(y,{key:"".concat(b,"-").concat(L)})})}}]),o}(w.Component);f.displayName="ResizeObserver",Ee.a=f},ulZh:function(Gt,Ee,k){typeof window!="undefined"&&function(z,N){Gt.exports=N()}(this,function(){return function(ne){var z={};function N(K){if(z[K])return z[K].exports;var O=z[K]={i:K,l:!1,exports:{}};return ne[K].call(O.exports,O,O.exports,N),O.l=!0,O.exports}return N.m=ne,N.c=z,N.d=function(K,O,w){N.o(K,O)||Object.defineProperty(K,O,{enumerable:!0,get:w})},N.r=function(K){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},N.t=function(K,O){if(O&1&&(K=N(K)),O&8)return K;if(O&4&&typeof K=="object"&&K&&K.__esModule)return K;var w=Object.create(null);if(N.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:K}),O&2&&typeof K!="string")for(var B in K)N.d(w,B,function(C){return K[C]}.bind(null,B));return w},N.n=function(K){var O=K&&K.__esModule?function(){return K.default}:function(){return K};return N.d(O,"a",O),O},N.o=function(K,O){return Object.prototype.hasOwnProperty.call(K,O)},N.p="/dist/",N(N.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ne,z,N){"use strict";var K=Object.prototype.hasOwnProperty,O="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(O=!1));function B(d,v,b){this.fn=d,this.context=v,this.once=b||!1}function C(d,v,b,f,n){if(typeof b!="function")throw new TypeError("The listener must be a function");var p=new B(b,f||d,n),o=O?O+v:v;return d._events[o]?d._events[o].fn?d._events[o]=[d._events[o],p]:d._events[o].push(p):(d._events[o]=p,d._eventsCount++),d}function P(d,v){--d._eventsCount===0?d._events=new w:delete d._events[v]}function _(){this._events=new w,this._eventsCount=0}_.prototype.eventNames=function(){var v=[],b,f;if(this._eventsCount===0)return v;for(f in b=this._events)K.call(b,f)&&v.push(O?f.slice(1):f);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(b)):v},_.prototype.listeners=function(v){var b=O?O+v:v,f=this._events[b];if(!f)return[];if(f.fn)return[f.fn];for(var n=0,p=f.length,o=new Array(p);n0},!1)}function d(v,b){for(var f={main:[b]},n={main:[]},p={main:{}};_(f);)for(var o=Object.keys(f),r=0;r=2*L/g||A<=U)return;var H=Number.POSITIVE_INFINITY,V;for(V=o.level-1;V>c;V--){var I=m[V].maxBitrate;if(H=L*I/(8*.8*T),H=A)return;var W=this.bwEstimator.getEstimate();_.logger.warn("Fragment "+o.sn+(r?" part "+r.index:"")+" of level "+o.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+V+` Current BW estimate: `+(Object(K.isFiniteNumber)(W)?(W/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+A.toFixed(3)+` s @@ -366,7 +366,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho trackSwitch: `+H+` contiguous: `+W+` accurateTimeOffset: `+R+` - timeOffset: `+T);var ae=new B.TransmuxConfig(l,x,s,L,m);this.configureTransmuxer(ae)}if(this.frag=E,this.part=y,D)D.postMessage({cmd:"demux",data:r,decryptdata:A,chunkMeta:g,state:ie},r instanceof ArrayBuffer?[r]:[]);else if(u){var xe=u.push(r,A,g,ie);Object(B.isPromise)(xe)?xe.then(function(Ze){c.handleTransmuxComplete(Ze)}):this.handleTransmuxComplete(xe)}},p.flush=function(r){var s=this;r.transmuxing.start=self.performance.now();var l=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:r});else if(l){var E=l.flush(r);Object(B.isPromise)(E)?E.then(function(y){s.handleFlushResult(y,r)}):this.handleFlushResult(E,r)}},p.handleFlushResult=function(r,s){var l=this;r.forEach(function(x){l.handleTransmuxComplete(x)}),this.onFlush(s)},p.onWorkerMessage=function(r){var s=r.data,l=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,l.trigger(s.event,s.data);break}}},p.configureTransmuxer=function(r){var s=this.worker,l=this.transmuxer;s?s.postMessage({cmd:"configure",config:r}):l&&l.configure(r)},p.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},n}()},"./src/demux/transmuxer-worker.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return P});var K=N("./src/demux/transmuxer.ts"),O=N("./src/events.ts"),w=N("./src/utils/logger.ts"),B=N("./node_modules/eventemitter3/index.js"),C=N.n(B);function P(f){var n=new B.EventEmitter,p=function(r,s){f.postMessage({event:r,data:s})};n.on(O.Events.FRAG_DECRYPTED,p),n.on(O.Events.ERROR,p),f.addEventListener("message",function(o){var r=o.data;switch(r.cmd){case"init":{var s=JSON.parse(r.config);f.transmuxer=new K.default(n,r.typeSupported,s,r.vendor,r.id),Object(w.enableLogs)(s.debug),p("init",null);break}case"configure":{f.transmuxer.configure(r.config);break}case"demux":{var l=f.transmuxer.push(r.data,r.decryptdata,r.chunkMeta,r.state);Object(K.isPromise)(l)?l.then(function(y){_(f,y)}):_(f,l);break}case"flush":{var x=r.chunkMeta,E=f.transmuxer.flush(x);Object(K.isPromise)(E)?E.then(function(y){v(f,y,x)}):v(f,E,x);break}default:break}})}function _(f,n){if(b(n.remuxResult))return;var p=[],o=n.remuxResult,r=o.audio,s=o.video;r&&d(p,r),s&&d(p,s),f.postMessage({event:"transmuxComplete",data:n},p)}function d(f,n){n.data1&&f.push(n.data1.buffer),n.data2&&f.push(n.data2.buffer)}function v(f,n,p){n.forEach(function(o){_(f,o)}),f.postMessage({event:"flush",data:p})}function b(f){return!f.audio&&!f.video&&!f.text&&!f.id3&&!f.initSegment}},"./src/demux/transmuxer.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return s}),N.d(z,"isPromise",function(){return E}),N.d(z,"TransmuxConfig",function(){return y}),N.d(z,"TransmuxState",function(){return L});var K=N("./src/events.ts"),O=N("./src/errors.ts"),w=N("./src/crypt/decrypter.ts"),B=N("./src/demux/aacdemuxer.ts"),C=N("./src/demux/mp4demuxer.ts"),P=N("./src/demux/tsdemuxer.ts"),_=N("./src/demux/mp3demuxer.ts"),d=N("./src/remux/mp4-remuxer.ts"),v=N("./src/remux/passthrough-remuxer.ts"),b=N("./src/demux/chunk-cache.ts"),f=N("./src/utils/mp4-tools.ts"),n=N("./src/utils/logger.ts"),p;try{p=self.performance.now.bind(self.performance)}catch(R){n.logger.debug("Unable to use Performance API on this environment"),p=self.Date.now}var o=[{demux:P.default,remux:d.default},{demux:C.default,remux:v.default},{demux:B.default,remux:d.default},{demux:_.default,remux:d.default}],r=1024;o.forEach(function(R){var g=R.demux;r=Math.max(r,g.minProbeByteLength)});var s=function(){function R(m,c,u,D,T){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new b.default,this.observer=m,this.typeSupported=c,this.config=u,this.vendor=D,this.id=T}var g=R.prototype;return g.configure=function(c){this.transmuxConfig=c,this.decrypter&&this.decrypter.reset()},g.push=function(c,u,D,T){var A=this,j=D.transmuxing;j.executeStart=p();var U=new Uint8Array(c),H=this.cache,V=this.config,I=this.currentTransmuxState,W=this.transmuxConfig;T&&(this.currentTransmuxState=T);var Q=l(U,u);if(Q&&Q.method==="AES-128"){var ie=this.getDecrypter();if(V.enableSoftwareAES){var ae=ie.softwareDecrypt(U,Q.key.buffer,Q.iv.buffer);if(!ae)return j.executeEnd=p(),x(D);U=new Uint8Array(ae)}else return this.decryptionPromise=ie.webCryptoDecrypt(U,Q.key.buffer,Q.iv.buffer).then(function(G){var Y=A.push(G,null,D);return A.decryptionPromise=null,Y}),this.decryptionPromise}var xe=T||I,Ze=xe.contiguous,Me=xe.discontinuity,Be=xe.trackSwitch,qe=xe.accurateTimeOffset,Ve=xe.timeOffset,De=W.audioCodec,pe=W.videoCodec,se=W.defaultInitPts,we=W.duration,ve=W.initSegmentData;if((Me||Be)&&this.resetInitSegment(ve,De,pe,we),Me&&this.resetInitialTimestamp(se),Ze||this.resetContiguity(),this.needsProbing(U,Me,Be)){if(H.dataLength){var $e=H.flush();U=Object(f.appendUint8Array)($e,U)}this.configureTransmuxer(U,W)}var me=this.transmux(U,Q,Ve,qe,D),X=this.currentTransmuxState;return X.contiguous=!0,X.discontinuity=!1,X.trackSwitch=!1,j.executeEnd=p(),me},g.flush=function(c){var u=this,D=c.transmuxing;D.executeStart=p();var T=this.decrypter,A=this.cache,j=this.currentTransmuxState,U=this.decryptionPromise;if(U)return U.then(function(){return u.flush(c)});var H=[],V=j.timeOffset;if(T){var I=T.flush();I&&H.push(this.push(I,null,c))}var W=A.dataLength;A.reset();var Q=this.demuxer,ie=this.remuxer;if(!Q||!ie)return W>=r&&this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=p(),[x(c)];var ae=Q.flush(V);return E(ae)?ae.then(function(xe){return u.flushRemux(H,xe,c),H}):(this.flushRemux(H,ae,c),H)},g.flushRemux=function(c,u,D){var T=u.audioTrack,A=u.avcTrack,j=u.id3Track,U=u.textTrack,H=this.currentTransmuxState,V=H.accurateTimeOffset,I=H.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var W=this.remuxer.remux(T,A,j,U,I,V,!0,this.id);c.push({remuxResult:W,chunkMeta:D}),D.transmuxing.executeEnd=p()},g.resetInitialTimestamp=function(c){var u=this.demuxer,D=this.remuxer;if(!u||!D)return;u.resetTimeStamp(c),D.resetTimeStamp(c)},g.resetContiguity=function(){var c=this.demuxer,u=this.remuxer;if(!c||!u)return;c.resetContiguity(),u.resetNextTimestamp()},g.resetInitSegment=function(c,u,D,T){var A=this.demuxer,j=this.remuxer;if(!A||!j)return;A.resetInitSegment(u,D,T),j.resetInitSegment(c,u,D)},g.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},g.transmux=function(c,u,D,T,A){var j;return u&&u.method==="SAMPLE-AES"?j=this.transmuxSampleAes(c,u,D,T,A):j=this.transmuxUnencrypted(c,D,T,A),j},g.transmuxUnencrypted=function(c,u,D,T){var A=this.demuxer.demux(c,u,!1,!this.config.progressive),j=A.audioTrack,U=A.avcTrack,H=A.id3Track,V=A.textTrack,I=this.remuxer.remux(j,U,H,V,u,D,!1,this.id);return{remuxResult:I,chunkMeta:T}},g.transmuxSampleAes=function(c,u,D,T,A){var j=this;return this.demuxer.demuxSampleAes(c,u,D).then(function(U){var H=j.remuxer.remux(U.audioTrack,U.avcTrack,U.id3Track,U.textTrack,D,T,!1,j.id);return{remuxResult:H,chunkMeta:A}})},g.configureTransmuxer=function(c,u){for(var D=this.config,T=this.observer,A=this.typeSupported,j=this.vendor,U=u.audioCodec,H=u.defaultInitPts,V=u.duration,I=u.initSegmentData,W=u.videoCodec,Q,ie=0,ae=o.length;ie0&&g!=null&&g.key!=null&&g.iv!==null&&g.method!=null&&(m=g),m}var x=function(g){return{remuxResult:{},chunkMeta:g}};function E(R){return"then"in R&&R.then instanceof Function}var y=function(g,m,c,u,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=g,this.videoCodec=m,this.initSegmentData=c,this.duration=u,this.defaultInitPts=D},L=function(g,m,c,u,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=g,this.contiguous=m,this.accurateTimeOffset=c,this.trackSwitch=u,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"discardEPB",function(){return x});var K=N("./src/demux/adts.ts"),O=N("./src/demux/mpegaudio.ts"),w=N("./src/demux/exp-golomb.ts"),B=N("./src/demux/id3.ts"),C=N("./src/demux/sample-aes.ts"),P=N("./src/events.ts"),_=N("./src/utils/mp4-tools.ts"),d=N("./src/utils/logger.ts"),v=N("./src/errors.ts"),b={video:1,audio:2,id3:3,text:4},f=function(){function E(L,R,g){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=L,this.config=R,this.typeSupported=g}E.probe=function(R){var g=E.syncOffset(R);return g<0?!1:(g&&d.logger.warn("MPEG2-TS detected but first sync word found @ offset "+g+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var g=Math.min(1e3,R.length-3*188),m=0;m>4,De=void 0;if(Ve>1){if(De=Me+5+R[Me+4],De===Me+188)continue}else De=Me+4;switch(qe){case j:Be&&(U&&(u=r(U))&&this.parseAVCPES(u,!1),U={data:[],size:0}),U&&(U.data.push(R.subarray(De,Me+188)),U.size+=Me+188-De);break;case H:Be&&(I&&(u=r(I))&&(T.isAAC?this.parseAACPES(u):this.parseMPEGPES(u)),I={data:[],size:0}),I&&(I.data.push(R.subarray(De,Me+188)),I.size+=Me+188-De);break;case V:Be&&(W&&(u=r(W))&&this.parseID3PES(u),W={data:[],size:0}),W&&(W.data.push(R.subarray(De,Me+188)),W.size+=Me+188-De);break;case 0:Be&&(De+=R[De]+1),ae=this._pmtId=p(R,De);break;case ae:{Be&&(De+=R[De]+1);var pe=o(R,De,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,m);j=pe.avc,j>0&&(D.pid=j),H=pe.audio,H>0&&(T.pid=H,T.isAAC=pe.isAAC),V=pe.id3,V>0&&(A.pid=V),Q&&!ie&&(d.logger.log("reparse from beginning"),Q=!1,Me=Ze-188),ie=this.pmtParsed=!0;break}case 17:case 8191:break;default:Q=!0;break}}else this.observer.emit(P.Events.ERROR,P.Events.ERROR,{type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=U,T.pesData=I,A.pesData=W;var se={audioTrack:T,avcTrack:D,id3Track:A,textTrack:this._txtTrack};return c&&this.extractRemainingSamples(se),se},y.flush=function(){var R=this.remainderData;this.remainderData=null;var g;return R?g=this.demux(R,-1,!1,!0):g={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(g),this.sampleAes?this.decrypt(g,this.sampleAes):g},y.extractRemainingSamples=function(R){var g=R.audioTrack,m=R.avcTrack,c=R.id3Track,u=m.pesData,D=g.pesData,T=c.pesData,A;u&&(A=r(u))?(this.parseAVCPES(A,!0),m.pesData=null):m.pesData=u,D&&(A=r(D))?(g.isAAC?this.parseAACPES(A):this.parseMPEGPES(A),g.pesData=null):(D!=null&&D.size&&d.logger.log("last AAC PES packet truncated,might overlap between fragments"),g.pesData=D),T&&(A=r(T))?(this.parseID3PES(A),c.pesData=null):c.pesData=T},y.demuxSampleAes=function(R,g,m){var c=this.demux(R,m,!0,!this.config.progressive),u=this.sampleAes=new C.default(this.observer,this.config,g);return this.decrypt(c,u)},y.decrypt=function(R,g){return new Promise(function(m){var c=R.audioTrack,u=R.avcTrack;c.samples&&c.isAAC?g.decryptAacSamples(c.samples,0,function(){u.samples?g.decryptAvcSamples(u.samples,0,0,function(){m(R)}):m(R)}):u.samples&&g.decryptAvcSamples(u.samples,0,0,function(){m(R)})})},y.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},y.parseAVCPES=function(R,g){var m=this,c=this._avcTrack,u=this.parseAVCNALu(R.data),D=!1,T=this.avcSample,A,j=!1;R.data=null,T&&u.length&&!c.audFound&&(s(T,c),T=this.avcSample=n(!1,R.pts,R.dts,"")),u.forEach(function(U){switch(U.type){case 1:{A=!0,T||(T=m.avcSample=n(!0,R.pts,R.dts,"")),D&&(T.debug+="NDR "),T.frame=!0;var H=U.data;if(j&&H.length>4){var V=new w.default(H).readSliceType();(V===2||V===4||V===7||V===9)&&(T.key=!0)}break}case 5:A=!0,T||(T=m.avcSample=n(!0,R.pts,R.dts,"")),D&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{A=!0,D&&T&&(T.debug+="SEI ");var I=new w.default(x(U.data));I.readUByte();for(var W=0,Q=0,ie=!1,ae=0;!ie&&I.bytesAvailable>1;){W=0;do ae=I.readUByte(),W+=ae;while(ae===255);Q=0;do ae=I.readUByte(),Q+=ae;while(ae===255);if(W===4&&I.bytesAvailable!==0){ie=!0;var xe=I.readUByte();if(xe===181){var Ze=I.readUShort();if(Ze===49){var Me=I.readUInt();if(Me===1195456820){var Be=I.readUByte();if(Be===3){for(var qe=I.readUByte(),Ve=I.readUByte(),De=31&qe,pe=[qe,Ve],se=0;se16){for(var we=[],ve=0;ve<16;ve++)we.push(I.readUByte().toString(16)),(ve===3||ve===5||ve===7||ve===9)&&we.push("-");for(var $e=Q-16,me=new Uint8Array($e),X=0;X<$e;X++)me[X]=I.readUByte();l(m._txtTrack.samples,{pts:R.pts,payloadType:W,uuid:we.join(""),userData:Object(B.utf8ArrayToStr)(me),userDataBytes:me})}}else if(Q=0){var I={data:R.subarray(H,T-c-1),type:V};D.push(I)}else{var W=this.getLastNalUnit();if(W&&(u&&T<=4-u&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-u))),j=T-c-1,j>0)){var Q=new Uint8Array(W.data.byteLength+j);Q.set(W.data,0),Q.set(R.subarray(0,j),W.data.byteLength),W.data=Q,W.state=0}}T=0&&c>=0){var ie={data:R.subarray(H,g),type:V,state:c};D.push(ie)}if(D.length===0){var ae=this.getLastNalUnit();if(ae){var xe=new Uint8Array(ae.data.byteLength+R.byteLength);xe.set(ae.data,0),xe.set(R,ae.data.byteLength),ae.data=xe}}return m.naluState=c,D},y.parseAACPES=function(R){var g=0,m=this._audioTrack,c=this.aacOverFlow,u=R.data;if(c){this.aacOverFlow=null;var D=c.sample.unit.byteLength,T=Math.min(c.missing,D),A=D-T;c.sample.unit.set(u.subarray(0,T),A),m.samples.push(c.sample),g=c.missing}var j,U;for(j=g,U=u.length;j1;){var D=new Uint8Array(u[0].length+u[1].length);D.set(u[0]),D.set(u[1],u[0].length),u[0]=D,u.splice(1,1)}L=u[0];var T=(L[0]<<16)+(L[1]<<8)+L[2];if(T===1){if(R=(L[4]<<8)+L[5],R&&R>E.size-6)return null;var A=L[7];A&192&&(m=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,A&64?(c=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,m-c>60*9e4&&(d.logger.warn(Math.round((m-c)/9e4)+"s delta between PTS and DTS, align them"),m=c)):c=m),g=L[8];var j=g+9;if(E.size<=j)return null;E.size-=j;for(var U=new Uint8Array(E.size),H=0,V=u.length;HI){j-=I;continue}else L=L.subarray(j),I-=j,j=0;U.set(L,y),y+=I}return R&&(R-=g+3),{data:U,pts:m,dts:c,len:R}}return null}function s(E,y){if(E.units.length&&E.frame){if(E.pts===void 0){var L=y.samples,R=L.length;if(R){var g=L[R-1];E.pts=g.pts,E.dts=g.dts}else{y.dropped++;return}}y.samples.push(E)}E.debug.length&&d.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function l(E,y){var L=E.length;if(L>0){if(y.pts>=E[L-1].pts)E.push(y);else for(var R=L-1;R>=0;R--)if(y.ptsm)return u;return 0}},{key:"maxAutoLevel",get:function(){var g=this.levels,m=this.autoLevelCapping,c;return m===-1&&g&&g.length?c=g.length-1:c=m,c}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(g){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,g)}},{key:"audioTracks",get:function(){var g=this.audioTrackController;return g?g.audioTracks:[]}},{key:"audioTrack",get:function(){var g=this.audioTrackController;return g?g.audioTrack:-1},set:function(g){var m=this.audioTrackController;m&&(m.audioTrack=g)}},{key:"subtitleTracks",get:function(){var g=this.subtitleTrackController;return g?g.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var g=this.subtitleTrackController;return g?g.subtitleTrack:-1},set:function(g){var m=this.subtitleTrackController;m&&(m.subtitleTrack=g)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var g=this.subtitleTrackController;return g?g.subtitleDisplay:!1},set:function(g){var m=this.subtitleTrackController;m&&(m.subtitleDisplay=g)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(g){this.config.lowLatencyMode=g}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return y.defaultConfig?y.defaultConfig:n.hlsDefaultConfig},set:function(g){y.defaultConfig=g}}]),y}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"isSupported",function(){return w}),N.d(z,"changeTypeSupported",function(){return B});var K=N("./src/utils/mediasource-helper.ts");function O(){return self.SourceBuffer||self.WebKitSourceBuffer}function w(){var C=Object(K.getMediaSource)();if(!C)return!1;var P=O(),_=C&&typeof C.isTypeSupported=="function"&&C.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),d=!P||P.prototype&&typeof P.prototype.appendBuffer=="function"&&typeof P.prototype.remove=="function";return!!_&&!!d}function B(){var C,P=O();return typeof(P==null||((C=P.prototype)===null||C===void 0)?void 0:C.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return f}),N.d(z,"LoadError",function(){return p});var K=N("./src/polyfills/number.ts"),O=N("./src/errors.ts");function w(o,r){o.prototype=Object.create(r.prototype),o.prototype.constructor=o,d(o,r)}function B(o){var r=typeof Map=="function"?new Map:void 0;return B=function(l){if(l===null||!_(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(l))return r.get(l);r.set(l,x)}function x(){return C(l,arguments,v(this).constructor)}return x.prototype=Object.create(l.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),d(x,l)},B(o)}function C(o,r,s){return P()?C=Reflect.construct:C=function(x,E,y){var L=[null];L.push.apply(L,E);var R=Function.bind.apply(x,L),g=new R;return y&&d(g,y.prototype),g},C.apply(null,arguments)}function P(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function _(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function d(o,r){return d=Object.setPrototypeOf||function(l,x){return l.__proto__=x,l},d(o,r)}function v(o){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},v(o)}var b=Math.pow(2,17),f=function(){function o(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var r=o.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(l,x){var E=this,y=l.url;if(!y)return Promise.reject(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,networkDetails:null},"Fragment does not have a "+(y?"part list":"url")));this.abort();var L=this.config,R=L.fLoader,g=L.loader;return new Promise(function(m,c){E.loader&&E.loader.destroy();var u=E.loader=l.loader=R?new R(L):new g(L),D=n(l),T={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:b};l.stats=u.stats,u.load(D,T,{onSuccess:function(j,U,H,V){E.resetLoader(l,u),m({frag:l,part:null,payload:j.data,networkDetails:V})},onError:function(j,U,H){E.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,response:j,networkDetails:H}))},onAbort:function(j,U,H){E.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,networkDetails:H}))},onTimeout:function(j,U,H){E.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,networkDetails:H}))},onProgress:function(j,U,H,V){x&&x({frag:l,part:null,payload:H,networkDetails:V})}})})},r.loadPart=function(l,x,E){var y=this;this.abort();var L=this.config,R=L.fLoader,g=L.loader;return new Promise(function(m,c){y.loader&&y.loader.destroy();var u=y.loader=l.loader=R?new R(L):new g(L),D=n(l,x),T={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:b};x.stats=u.stats,u.load(D,T,{onSuccess:function(j,U,H,V){y.resetLoader(l,u),y.updateStatsFromPart(l,x);var I={frag:l,part:x,payload:j.data,networkDetails:V};E(I),m(I)},onError:function(j,U,H){y.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,part:x,response:j,networkDetails:H}))},onAbort:function(j,U,H){l.stats.aborted=x.stats.aborted,y.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,part:x,networkDetails:H}))},onTimeout:function(j,U,H){y.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,part:x,networkDetails:H}))}})})},r.updateStatsFromPart=function(l,x){var E=l.stats,y=x.stats,L=y.total;if(E.loaded+=y.loaded,L){var R=Math.round(l.duration/x.duration),g=Math.min(Math.round(E.loaded/L),R),m=R-g,c=m*Math.round(E.loaded/g);E.total=E.loaded+c}else E.total=Math.max(E.loaded,E.total);var u=E.loading,D=y.loading;u.start?u.first+=D.first-D.start:(u.start=D.start,u.first=D.first),u.end=D.end},r.resetLoader=function(l,x){l.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},o}();function n(o,r){r===void 0&&(r=null);var s=r||o,l={frag:o,part:r,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},x=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(K.isFiniteNumber)(x)&&Object(K.isFiniteNumber)(E)&&(l.rangeStart=x,l.rangeEnd=E),l}var p=function(o){w(r,o);function r(s){for(var l,x=arguments.length,E=new Array(x>1?x-1:0),y=1;y>8*(15-L)&255;return y},l.setDecryptDataFromLevelKey=function(E,y){var L=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(L=C.LevelKey.fromURI(E.uri),L.method=E.method,L.iv=this.createInitializationVector(y),L.keyFormat="identity"),L},l.setElementaryStreamInfo=function(E,y,L,R,g,m){m===void 0&&(m=!1);var c=this.elementaryStreams,u=c[E];if(!u){c[E]={startPTS:y,endPTS:L,startDTS:R,endDTS:g,partial:m};return}u.startPTS=Math.min(u.startPTS,y),u.endPTS=Math.max(u.endPTS,L),u.startDTS=Math.min(u.startDTS,R),u.endDTS=Math.max(u.endDTS,g)},l.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[f.AUDIO]=null,E[f.VIDEO]=null,E[f.AUDIOVIDEO]=null},b(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&B.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(K.isFiniteNumber)(this.programDateTime))return null;var E=Object(K.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),s}(n),o=function(r){_(s,r);function s(l,x,E,y,L){var R;R=r.call(this,E)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new P.LoadStats,R.duration=l.decimalFloatingPoint("DURATION"),R.gap=l.bool("GAP"),R.independent=l.bool("INDEPENDENT"),R.relurl=l.enumeratedString("URI"),R.fragment=x,R.index=y;var g=l.enumeratedString("BYTERANGE");return g&&R.setByteRange(g,L),L&&(R.fragOffset=L.fragOffset+L.duration),R}return b(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),s}(n)},"./src/loader/key-loader.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return B});var K=N("./src/events.ts"),O=N("./src/errors.ts"),w=N("./src/utils/logger.ts"),B=function(){function C(_){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=_,this._registerListeners()}var P=C.prototype;return P._registerListeners=function(){this.hls.on(K.Events.KEY_LOADING,this.onKeyLoading,this)},P._unregisterListeners=function(){this.hls.off(K.Events.KEY_LOADING,this.onKeyLoading)},P.destroy=function(){this._unregisterListeners();for(var d in this.loaders){var v=this.loaders[d];v&&v.destroy()}this.loaders={}},P.onKeyLoading=function(d,v){var b=v.frag,f=b.type,n=this.loaders[f];if(!b.decryptdata){w.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var p=b.decryptdata.uri;if(p!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(n&&(w.logger.warn("abort previous key loader for type:"+f),n.abort()),!p){w.logger.warn("key uri is falsy");return}var r=o.loader,s=b.loader=this.loaders[f]=new r(o);this.decrypturl=p,this.decryptkey=null;var l={url:p,frag:b,responseType:"arraybuffer"},x={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(l,x,E)}else this.decryptkey&&(b.decryptdata.key=this.decryptkey,this.hls.trigger(K.Events.KEY_LOADED,{frag:b}))},P.loadsuccess=function(d,v,b){var f=b.frag;if(!f.decryptdata){w.logger.error("after key load, decryptdata unset");return}this.decryptkey=f.decryptdata.key=new Uint8Array(d.data),f.loader=null,delete this.loaders[f.type],this.hls.trigger(K.Events.KEY_LOADED,{frag:f})},P.loaderror=function(d,v){var b=v.frag,f=b.loader;f&&f.abort(),delete this.loaders[b.type],this.hls.trigger(K.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:b,response:d})},P.loadtimeout=function(d,v){var b=v.frag,f=b.loader;f&&f.abort(),delete this.loaders[b.type],this.hls.trigger(K.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:b})},C}()},"./src/loader/level-details.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"LevelDetails",function(){return C});var K=N("./src/polyfills/number.ts");function O(P,_){for(var d=0;d<_.length;d++){var v=_[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(P,v.key,v)}}function w(P,_,d){return _&&O(P.prototype,_),d&&O(P,d),P}var B=10,C=function(){function P(d){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=d}var _=P.prototype;return _.reloaded=function(v){if(!v){this.advanced=!0,this.updated=!0;return}var b=this.lastPartSn-v.lastPartSn,f=this.lastPartIndex-v.lastPartIndex;this.updated=this.endSN!==v.endSN||!!f||!!b,this.advanced=this.endSN>v.endSN||b>0||b===0&&f>0,this.updated||this.advanced?this.misses=Math.floor(v.misses*.6):this.misses=v.misses+1,this.availabilityDelay=v.availabilityDelay},w(P,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(K.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||B}},{key:"drift",get:function(){var v=this.driftEndTime-this.driftStartTime;if(v>0){var b=this.driftEnd-this.driftStart;return b*1e3/v}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var v;return(v=this.partList)!==null&&v!==void 0&&v.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var v;return(v=this.fragments)!==null&&v!==void 0&&v.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var v;return(v=this.partList)!==null&&v!==void 0&&v.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var v;return(v=this.partList)!==null&&v!==void 0&&v.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),P}()},"./src/loader/level-key.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"LevelKey",function(){return C});var K=N("./node_modules/url-toolkit/src/url-toolkit.js"),O=N.n(K);function w(P,_){for(var d=0;d<_.length;d++){var v=_[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(P,v.key,v)}}function B(P,_,d){return _&&w(P.prototype,_),d&&w(P,d),P}var C=function(){P.fromURL=function(d,v){return new P(d,v)},P.fromURI=function(d){return new P(d)};function P(_,d){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,d?this._uri=Object(K.buildAbsoluteURL)(_,d,{alwaysNormalize:!0}):this._uri=_}return B(P,[{key:"uri",get:function(){return this._uri}}]),P}()},"./src/loader/load-stats.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"LoadStats",function(){return K});var K=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return s});var K=N("./src/polyfills/number.ts"),O=N("./node_modules/url-toolkit/src/url-toolkit.js"),w=N.n(O),B=N("./src/loader/fragment.ts"),C=N("./src/loader/level-details.ts"),P=N("./src/loader/level-key.ts"),_=N("./src/utils/attr-list.ts"),d=N("./src/utils/logger.ts"),v=N("./src/utils/codecs.ts"),b=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,f=/#EXT-X-MEDIA:(.*)/g,n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),p=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),o=/\.(mp4|m4s|m4v|m4a)$/i;function r(L){var R,g;return o.test((R=(g=O.parseURL(L))===null||g===void 0?void 0:g.path)!=null?R:"")}var s=function(){function L(){}return L.findGroup=function(g,m){for(var c=0;c2){var c=m.shift()+".";return c+=parseInt(m.shift()).toString(16),c+=("000"+parseInt(m.shift()).toString(16)).substr(-4),c}return g},L.resolve=function(g,m){return O.buildAbsoluteURL(m,g,{alwaysNormalize:!0})},L.parseMasterPlaylist=function(g,m){var c=[],u={},D=!1;b.lastIndex=0;for(var T;(T=b.exec(g))!=null;)if(T[1]){var A=new _.AttrList(T[1]),j={attrs:A,bitrate:A.decimalInteger("AVERAGE-BANDWIDTH")||A.decimalInteger("BANDWIDTH"),name:A.NAME,url:L.resolve(T[2],m)},U=A.decimalResolution("RESOLUTION");U&&(j.width=U.width,j.height=U.height),l((A.CODECS||"").split(/[ ,]+/).filter(function(V){return V}),j),j.videoCodec&&j.videoCodec.indexOf("avc1")!==-1&&(j.videoCodec=L.convertAVC1ToAVCOTI(j.videoCodec)),c.push(j)}else if(T[3]){var H=new _.AttrList(T[3]);H["DATA-ID"]&&(D=!0,u[H["DATA-ID"]]=H)}return{levels:c,sessionData:D?u:null}},L.parseMasterPlaylistMedia=function(g,m,c,u){u===void 0&&(u=[]);var D,T=[],A=0;for(f.lastIndex=0;(D=f.exec(g))!==null;){var j=new _.AttrList(D[1]);if(j.TYPE===c){var U={attrs:j,bitrate:0,id:A++,groupId:j["GROUP-ID"],instreamId:j["INSTREAM-ID"],name:j.NAME||j.LANGUAGE||"",type:c,default:j.bool("DEFAULT"),autoselect:j.bool("AUTOSELECT"),forced:j.bool("FORCED"),lang:j.LANGUAGE,url:j.URI?L.resolve(j.URI,m):""};if(u.length){var H=L.findGroup(u,U.groupId)||u[0];x(U,H,"audioCodec"),x(U,H,"textCodec")}T.push(U)}}return T},L.parseLevelPlaylist=function(g,m,c,u,D){var T=new C.LevelDetails(m),A=T.fragments,j=null,U=0,H=0,V=0,I=0,W=null,Q=new B.Fragment(u,m),ie,ae,xe,Ze=-1,Me=!1;for(n.lastIndex=0,T.m3u8=g;(ie=n.exec(g))!==null;){Me&&(Me=!1,Q=new B.Fragment(u,m),Q.start=V,Q.sn=U,Q.cc=I,Q.level=c,j&&(Q.initSegment=j,Q.rawProgramDateTime=j.rawProgramDateTime));var Be=ie[1];if(Be){Q.duration=parseFloat(Be);var qe=(" "+ie[2]).slice(1);Q.title=qe||null,Q.tagList.push(qe?["INF",Be,qe]:["INF",Be])}else if(ie[3])Object(K.isFiniteNumber)(Q.duration)&&(Q.start=V,xe&&(Q.levelkey=xe),Q.sn=U,Q.level=c,Q.cc=I,Q.urlId=D,A.push(Q),Q.relurl=(" "+ie[3]).slice(1),y(Q,W),W=Q,V+=Q.duration,U++,H=0,Me=!0);else if(ie[4]){var Ve=(" "+ie[4]).slice(1);W?Q.setByteRange(Ve,W):Q.setByteRange(Ve)}else if(ie[5])Q.rawProgramDateTime=(" "+ie[5]).slice(1),Q.tagList.push(["PROGRAM-DATE-TIME",Q.rawProgramDateTime]),Ze===-1&&(Ze=A.length);else{if(ie=ie[0].match(p),!ie){d.logger.warn("No matches on slow regex match for level playlist!");continue}for(ae=1;ae-1){d.logger.warn("Keyformat "+Tt+" is not supported from the manifest");continue}else if(Tt!=="identity")continue;Y&&(xe=P.LevelKey.fromURL(m,ue),ue&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Y)>=0&&(xe.method=Y,xe.keyFormat=Tt,ze&&(xe.keyID=ze),We&&(xe.keyFormatVersions=We),xe.iv=be));break}case"START":{var It=new _.AttrList(pe),Nt=It.decimalFloatingPoint("TIME-OFFSET");Object(K.isFiniteNumber)(Nt)&&(T.startTimeOffset=Nt);break}case"MAP":{var qt=new _.AttrList(pe);Q.relurl=qt.URI,qt.BYTERANGE&&Q.setByteRange(qt.BYTERANGE),Q.level=c,Q.sn="initSegment",xe&&(Q.levelkey=xe),Q.initSegment=null,j=Q,Me=!0;break}case"SERVER-CONTROL":{var hn=new _.AttrList(pe);T.canBlockReload=hn.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=hn.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&hn.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=hn.optionalFloat("PART-HOLD-BACK",0),T.holdBack=hn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var nt=new _.AttrList(pe);T.partTarget=nt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var He=T.partList;He||(He=T.partList=[]);var pt=H>0?He[He.length-1]:void 0,kt=H++,st=new B.Part(new _.AttrList(pe),Q,m,kt,pt);He.push(st),Q.duration+=st.duration;break}case"PRELOAD-HINT":{var Et=new _.AttrList(pe);T.preloadHint=Et;break}case"RENDITION-REPORT":{var Fe=new _.AttrList(pe);T.renditionReports=T.renditionReports||[],T.renditionReports.push(Fe);break}default:d.logger.warn("line parsed but not handled: "+ie);break}}}W&&!W.relurl?(A.pop(),V-=W.duration,T.partList&&(T.fragmentHint=W)):T.partList&&(y(Q,W),Q.cc=I,T.fragmentHint=Q);var Se=A.length,Oe=A[0],ce=A[Se-1];if(V+=T.skippedSegments*T.targetduration,V>0&&Se&&ce){T.averagetargetduration=V/Se;var he=ce.sn;T.endSN=he!=="initSegment"?he:0,Oe&&(T.startCC=Oe.cc,Oe.initSegment||T.fragments.every(function(Ce){return Ce.relurl&&r(Ce.relurl)})&&(d.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Q=new B.Fragment(u,m),Q.relurl=ce.relurl,Q.level=c,Q.sn="initSegment",Oe.initSegment=Q,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(V+=T.fragmentHint.duration),T.totalduration=V,T.endCC=I,Ze>0&&E(A,Ze),T},L}();function l(L,R){["video","audio","text"].forEach(function(g){var m=L.filter(function(u){return Object(v.isCodecType)(u,g)});if(m.length){var c=m.filter(function(u){return u.lastIndexOf("avc1",0)===0||u.lastIndexOf("mp4a",0)===0});R[g+"Codec"]=c.length>0?c[0]:m[0],L=L.filter(function(u){return m.indexOf(u)===-1})}}),R.unknownCodecs=L}function x(L,R,g){var m=R[g];m&&(L[g]=m)}function E(L,R){for(var g=L[R],m=R;m--;){var c=L[m];if(!c)return;c.programDateTime=g.programDateTime-c.duration*1e3,g=c}}function y(L,R){L.rawProgramDateTime?L.programDateTime=Date.parse(L.rawProgramDateTime):R!=null&&R.programDateTime&&(L.programDateTime=R.endProgramDateTime),Object(K.isFiniteNumber)(L.programDateTime)||(L.programDateTime=null,L.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ne,z,N){"use strict";N.r(z);var K=N("./src/polyfills/number.ts"),O=N("./src/events.ts"),w=N("./src/errors.ts"),B=N("./src/utils/logger.ts"),C=N("./src/utils/mp4-tools.ts"),P=N("./src/loader/m3u8-parser.ts"),_=N("./src/types/loader.ts"),d=N("./src/utils/attr-list.ts");function v(n){var p=n.type;switch(p){case _.PlaylistContextType.AUDIO_TRACK:return _.PlaylistLevelType.AUDIO;case _.PlaylistContextType.SUBTITLE_TRACK:return _.PlaylistLevelType.SUBTITLE;default:return _.PlaylistLevelType.MAIN}}function b(n,p){var o=n.url;return(o===void 0||o.indexOf("data:")===0)&&(o=p.url),o}var f=function(){function n(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var p=n.prototype;return p.registerListeners=function(){var r=this.hls;r.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.unregisterListeners=function(){var r=this.hls;r.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.createInternalLoader=function(r){var s=this.hls.config,l=s.pLoader,x=s.loader,E=l||x,y=new E(s);return r.loader=y,this.loaders[r.type]=y,y},p.getInternalLoader=function(r){return this.loaders[r.type]},p.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},p.destroyInternalLoaders=function(){for(var r in this.loaders){var s=this.loaders[r];s&&s.destroy(),this.resetInternalLoader(r)}},p.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},p.onManifestLoading=function(r,s){var l=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:_.PlaylistContextType.MANIFEST,url:l,deliveryDirectives:null})},p.onLevelLoading=function(r,s){var l=s.id,x=s.level,E=s.url,y=s.deliveryDirectives;this.load({id:l,groupId:null,level:x,responseType:"text",type:_.PlaylistContextType.LEVEL,url:E,deliveryDirectives:y})},p.onAudioTrackLoading=function(r,s){var l=s.id,x=s.groupId,E=s.url,y=s.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:_.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:y})},p.onSubtitleTrackLoading=function(r,s){var l=s.id,x=s.groupId,E=s.url,y=s.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:_.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:y})},p.load=function(r){var s,l=this.hls.config,x=this.getInternalLoader(r);if(x){var E=x.context;if(E&&E.url===r.url){B.logger.trace("[playlist-loader]: playlist request ongoing");return}B.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),x.abort()}var y,L,R,g;switch(r.type){case _.PlaylistContextType.MANIFEST:y=l.manifestLoadingMaxRetry,L=l.manifestLoadingTimeOut,R=l.manifestLoadingRetryDelay,g=l.manifestLoadingMaxRetryTimeout;break;case _.PlaylistContextType.LEVEL:case _.PlaylistContextType.AUDIO_TRACK:case _.PlaylistContextType.SUBTITLE_TRACK:y=0,L=l.levelLoadingTimeOut;break;default:y=l.levelLoadingMaxRetry,L=l.levelLoadingTimeOut,R=l.levelLoadingRetryDelay,g=l.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(r),(s=r.deliveryDirectives)!==null&&s!==void 0&&s.part){var m;if(r.type===_.PlaylistContextType.LEVEL&&r.level!==null?m=this.hls.levels[r.level].details:r.type===_.PlaylistContextType.AUDIO_TRACK&&r.id!==null?m=this.hls.audioTracks[r.id].details:r.type===_.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(m=this.hls.subtitleTracks[r.id].details),m){var c=m.partTarget,u=m.targetduration;c&&u&&(L=Math.min(Math.max(c*3,u*.8)*1e3,L))}}var D={timeout:L,maxRetry:y,retryDelay:R,maxRetryDelay:g,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(r,D,T)},p.loadsuccess=function(r,s,l,x){if(x===void 0&&(x=null),l.isSidxRequest){this.handleSidxRequest(r,l),this.handlePlaylistLoaded(r,s,l,x);return}this.resetInternalLoader(l.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,l,"no EXTM3U delimiter",x);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,s,l,x):this.handleMasterPlaylist(r,s,l,x)},p.loaderror=function(r,s,l){l===void 0&&(l=null),this.handleNetworkError(s,l,!1,r)},p.loadtimeout=function(r,s,l){l===void 0&&(l=null),this.handleNetworkError(s,l,!0)},p.handleMasterPlaylist=function(r,s,l,x){var E=this.hls,y=r.data,L=b(r,l),R=P.default.parseMasterPlaylist(y,L),g=R.levels,m=R.sessionData;if(!g.length){this.handleManifestParsingError(r,l,"no level found in manifest",x);return}var c=g.map(function(U){return{id:U.attrs.AUDIO,audioCodec:U.audioCodec}}),u=g.map(function(U){return{id:U.attrs.SUBTITLES,textCodec:U.textCodec}}),D=P.default.parseMasterPlaylistMedia(y,L,"AUDIO",c),T=P.default.parseMasterPlaylistMedia(y,L,"SUBTITLES",u),A=P.default.parseMasterPlaylistMedia(y,L,"CLOSED-CAPTIONS");if(D.length){var j=D.some(function(U){return!U.url});!j&&g[0].audioCodec&&!g[0].attrs.AUDIO&&(B.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new d.AttrList({}),bitrate:0,url:""}))}E.trigger(O.Events.MANIFEST_LOADED,{levels:g,audioTracks:D,subtitles:T,captions:A,url:L,stats:s,networkDetails:x,sessionData:m})},p.handleTrackOrLevelPlaylist=function(r,s,l,x){var E=this.hls,y=l.id,L=l.level,R=l.type,g=b(r,l),m=Object(K.isFiniteNumber)(y)?y:0,c=Object(K.isFiniteNumber)(L)?L:m,u=v(l),D=P.default.parseLevelPlaylist(r.data,g,c,u,m);if(!D.fragments.length){E.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:g,reason:"no fragments found in level",level:typeof l.level=="number"?l.level:void 0});return}if(R===_.PlaylistContextType.MANIFEST){var T={attrs:new d.AttrList({}),bitrate:0,details:D,name:"",url:g};E.trigger(O.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:g,stats:s,networkDetails:x,sessionData:null})}if(s.parsing.end=performance.now(),D.needSidxRanges){var A,j=(A=D.fragments[0].initSegment)===null||A===void 0?void 0:A.url;this.load({url:j,isSidxRequest:!0,type:R,level:L,levelDetails:D,id:y,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}l.levelDetails=D,this.handlePlaylistLoaded(r,s,l,x)},p.handleSidxRequest=function(r,s){var l=Object(C.parseSegmentIndex)(new Uint8Array(r.data));if(!l)return;var x=l.references,E=s.levelDetails;x.forEach(function(y,L){var R=y.info,g=E.fragments[L];g.byteRange.length===0&&g.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),g.initSegment&&g.initSegment.setByteRange(String(l.moovEndOffset)+"@0")})},p.handleManifestParsingError=function(r,s,l,x){this.hls.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===_.PlaylistContextType.MANIFEST,url:r.url,reason:l,response:r,context:s,networkDetails:x})},p.handleNetworkError=function(r,s,l,x){l===void 0&&(l=!1),B.logger.warn("[playlist-loader]: A network "+(l?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=w.ErrorDetails.UNKNOWN,y=!1,L=this.getInternalLoader(r);switch(r.type){case _.PlaylistContextType.MANIFEST:E=l?w.ErrorDetails.MANIFEST_LOAD_TIMEOUT:w.ErrorDetails.MANIFEST_LOAD_ERROR,y=!0;break;case _.PlaylistContextType.LEVEL:E=l?w.ErrorDetails.LEVEL_LOAD_TIMEOUT:w.ErrorDetails.LEVEL_LOAD_ERROR,y=!1;break;case _.PlaylistContextType.AUDIO_TRACK:E=l?w.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:w.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,y=!1;break;case _.PlaylistContextType.SUBTITLE_TRACK:E=l?w.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:w.ErrorDetails.SUBTITLE_LOAD_ERROR,y=!1;break}L&&this.resetInternalLoader(r.type);var R={type:w.ErrorTypes.NETWORK_ERROR,details:E,fatal:y,url:r.url,loader:L,context:r,networkDetails:s};x&&(R.response=x),this.hls.trigger(O.Events.ERROR,R)},p.handlePlaylistLoaded=function(r,s,l,x){var E=l.type,y=l.level,L=l.id,R=l.groupId,g=l.loader,m=l.levelDetails,c=l.deliveryDirectives;if(!(m!=null&&m.targetduration)){this.handleManifestParsingError(r,l,"invalid target duration",x);return}if(!g)return;m.live&&(g.getCacheAge&&(m.ageHeader=g.getCacheAge()||0),(!g.getCacheAge||isNaN(m.ageHeader))&&(m.ageHeader=0));switch(E){case _.PlaylistContextType.MANIFEST:case _.PlaylistContextType.LEVEL:this.hls.trigger(O.Events.LEVEL_LOADED,{details:m,level:y||0,id:L||0,stats:s,networkDetails:x,deliveryDirectives:c});break;case _.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(O.Events.AUDIO_TRACK_LOADED,{details:m,id:L||0,groupId:R||"",stats:s,networkDetails:x,deliveryDirectives:c});break;case _.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(O.Events.SUBTITLE_TRACK_LOADED,{details:m,id:L||0,groupId:R||"",stats:s,networkDetails:x,deliveryDirectives:c});break}},n}();z.default=f},"./src/polyfills/number.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"isFiniteNumber",function(){return K}),N.d(z,"MAX_SAFE_INTEGER",function(){return O});var K=Number.isFinite||function(w){return typeof w=="number"&&isFinite(w)},O=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ne,z,N){"use strict";N.r(z);var K=function(){function O(){}return O.getSilentFrame=function(B,C){switch(B){case"mp4a.40.2":if(C===1)return new Uint8Array([0,200,0,128,35,128]);if(C===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(C===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(C===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(C===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(C===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(C===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(C===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(C===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},O}();z.default=K},"./src/remux/mp4-generator.ts":function(ne,z,N){"use strict";N.r(z);var K=Math.pow(2,32)-1,O=function(){function w(){}return w.init=function(){w.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var C;for(C in w.types)w.types.hasOwnProperty(C)&&(w.types[C]=[C.charCodeAt(0),C.charCodeAt(1),C.charCodeAt(2),C.charCodeAt(3)]);var P=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),_=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);w.HDLR_TYPES={video:P,audio:_};var d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),v=new Uint8Array([0,0,0,0,0,0,0,0]);w.STTS=w.STSC=w.STCO=v,w.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),w.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),w.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),w.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var b=new Uint8Array([105,115,111,109]),f=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);w.FTYP=w.box(w.types.ftyp,b,n,b,f),w.DINF=w.box(w.types.dinf,w.box(w.types.dref,d))},w.box=function(C){for(var P=8,_=arguments.length,d=new Array(_>1?_-1:0),v=1;v<_;v++)d[v-1]=arguments[v];for(var b=d.length,f=b;b--;)P+=d[b].byteLength;var n=new Uint8Array(P);for(n[0]=P>>24&255,n[1]=P>>16&255,n[2]=P>>8&255,n[3]=P&255,n.set(C,4),b=0,P=8;b>24&255,C>>16&255,C>>8&255,C&255,_>>24,_>>16&255,_>>8&255,_&255,d>>24,d>>16&255,d>>8&255,d&255,85,196,0,0]))},w.mdia=function(C){return w.box(w.types.mdia,w.mdhd(C.timescale,C.duration),w.hdlr(C.type),w.minf(C))},w.mfhd=function(C){return w.box(w.types.mfhd,new Uint8Array([0,0,0,0,C>>24,C>>16&255,C>>8&255,C&255]))},w.minf=function(C){return C.type==="audio"?w.box(w.types.minf,w.box(w.types.smhd,w.SMHD),w.DINF,w.stbl(C)):w.box(w.types.minf,w.box(w.types.vmhd,w.VMHD),w.DINF,w.stbl(C))},w.moof=function(C,P,_){return w.box(w.types.moof,w.mfhd(C),w.traf(_,P))},w.moov=function(C){for(var P=C.length,_=[];P--;)_[P]=w.trak(C[P]);return w.box.apply(null,[w.types.moov,w.mvhd(C[0].timescale,C[0].duration)].concat(_).concat(w.mvex(C)))},w.mvex=function(C){for(var P=C.length,_=[];P--;)_[P]=w.trex(C[P]);return w.box.apply(null,[w.types.mvex].concat(_))},w.mvhd=function(C,P){P*=C;var _=Math.floor(P/(K+1)),d=Math.floor(P%(K+1)),v=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,C>>24&255,C>>16&255,C>>8&255,C&255,_>>24,_>>16&255,_>>8&255,_&255,d>>24,d>>16&255,d>>8&255,d&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return w.box(w.types.mvhd,v)},w.sdtp=function(C){var P=C.samples||[],_=new Uint8Array(4+P.length),d,v;for(d=0;d>>8&255),P.push(b&255),P=P.concat(Array.prototype.slice.call(v));for(d=0;d>>8&255),_.push(b&255),_=_.concat(Array.prototype.slice.call(v));var f=w.box(w.types.avcC,new Uint8Array([1,P[3],P[4],P[5],252|3,224|C.sps.length].concat(P).concat([C.pps.length]).concat(_))),n=C.width,p=C.height,o=C.pixelRatio[0],r=C.pixelRatio[1];return w.box(w.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>8&255,n&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),f,w.box(w.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),w.box(w.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,r>>24,r>>16&255,r>>8&255,r&255])))},w.esds=function(C){var P=C.config.length;return new Uint8Array([0,0,0,0,3,23+P,0,1,0,4,15+P,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([P]).concat(C.config).concat([6,1,2]))},w.mp4a=function(C){var P=C.samplerate;return w.box(w.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,C.channelCount,0,16,0,0,0,0,P>>8&255,P&255,0,0]),w.box(w.types.esds,w.esds(C)))},w.mp3=function(C){var P=C.samplerate;return w.box(w.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,C.channelCount,0,16,0,0,0,0,P>>8&255,P&255,0,0]))},w.stsd=function(C){return C.type==="audio"?!C.isAAC&&C.codec==="mp3"?w.box(w.types.stsd,w.STSD,w.mp3(C)):w.box(w.types.stsd,w.STSD,w.mp4a(C)):w.box(w.types.stsd,w.STSD,w.avc1(C))},w.tkhd=function(C){var P=C.id,_=C.duration*C.timescale,d=C.width,v=C.height,b=Math.floor(_/(K+1)),f=Math.floor(_%(K+1));return w.box(w.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,P>>24&255,P>>16&255,P>>8&255,P&255,0,0,0,0,b>>24,b>>16&255,b>>8&255,b&255,f>>24,f>>16&255,f>>8&255,f&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,d>>8&255,d&255,0,0,v>>8&255,v&255,0,0]))},w.traf=function(C,P){var _=w.sdtp(C),d=C.id,v=Math.floor(P/(K+1)),b=Math.floor(P%(K+1));return w.box(w.types.traf,w.box(w.types.tfhd,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255])),w.box(w.types.tfdt,new Uint8Array([1,0,0,0,v>>24,v>>16&255,v>>8&255,v&255,b>>24,b>>16&255,b>>8&255,b&255])),w.trun(C,_.length+16+20+8+16+8+8),_)},w.trak=function(C){return C.duration=C.duration||4294967295,w.box(w.types.trak,w.tkhd(C),w.mdia(C))},w.trex=function(C){var P=C.id;return w.box(w.types.trex,new Uint8Array([0,0,0,0,P>>24,P>>16&255,P>>8&255,P&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},w.trun=function(C,P){var _=C.samples||[],d=_.length,v=12+16*d,b=new Uint8Array(v),f,n,p,o,r,s;for(P+=8+v,b.set([0,0,15,1,d>>>24&255,d>>>16&255,d>>>8&255,d&255,P>>>24&255,P>>>16&255,P>>>8&255,P&255],0),f=0;f>>24&255,p>>>16&255,p>>>8&255,p&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*f);return w.box(w.types.trun,b)},w.initSegment=function(C){w.types||w.init();var P=w.moov(C),_=new Uint8Array(w.FTYP.byteLength+P.byteLength);return _.set(w.FTYP),_.set(P,w.FTYP.byteLength),_},w}();O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0,z.default=O},"./src/remux/mp4-remuxer.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return s}),N.d(z,"normalizePts",function(){return l});var K=N("./src/polyfills/number.ts"),O=N("./src/remux/aac-helper.ts"),w=N("./src/remux/mp4-generator.ts"),B=N("./src/events.ts"),C=N("./src/errors.ts"),P=N("./src/utils/logger.ts"),_=N("./src/types/loader.ts"),d=N("./src/utils/timescale-conversion.ts");function v(){return v=Object.assign||function(L){for(var R=1;R0?D:T.pts},m[0].pts);return c&&P.logger.debug("PTS rollover detected"),u},R.remux=function(m,c,u,D,T,A,j,U){var H,V,I,W,Q,ie,ae=T,xe=T,Ze=m.pid>-1,Me=c.pid>-1,Be=c.samples.length,qe=m.samples.length>0,Ve=Be>1,De=(!Ze||qe)&&(!Me||Ve)||this.ISGenerated||j;if(De){this.ISGenerated||(I=this.generateIS(m,c,T));var pe=this.isVideoContiguous,se=-1;if(Ve&&(se=x(c.samples),!pe&&this.config.forceKeyFrameOnDiscontinuity))if(ie=!0,se>0){P.logger.warn("[mp4-remuxer]: Dropped "+se+" out of "+Be+" video samples due to a missing keyframe");var we=this.getVideoStartPts(c.samples);c.samples=c.samples.slice(se),c.dropped+=se,xe+=(c.samples[0].pts-we)/(c.timescale||9e4)}else se===-1&&(P.logger.warn("[mp4-remuxer]: No keyframe found out of "+Be+" video samples"),ie=!1);if(this.ISGenerated){if(qe&&Ve){var ve=this.getVideoStartPts(c.samples),$e=l(m.samples[0].pts,ve)-ve,me=$e/c.inputTimeScale;ae+=Math.max(0,me),xe+=Math.max(0,-me)}if(qe){if(m.samplerate||(P.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),I=this.generateIS(m,c,T)),V=this.remuxAudio(m,ae,this.isAudioContiguous,A,Me||Ve||U===_.PlaylistLevelType.AUDIO?xe:void 0),Ve){var X=V?V.endPTS-V.startPTS:0;c.inputTimeScale||(P.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),I=this.generateIS(m,c,T)),H=this.remuxVideo(c,xe,pe,X)}}else Ve&&(H=this.remuxVideo(c,xe,pe,0));H&&(H.firstKeyFrame=se,H.independent=se!==-1)}}return this.ISGenerated&&(u.samples.length&&(Q=this.remuxID3(u,T)),D.samples.length&&(W=this.remuxText(D,T))),{audio:V,video:H,initSegment:I,independent:ie,text:W,id3:Q}},R.generateIS=function(m,c,u){var D=m.samples,T=c.samples,A=this.typeSupported,j={},U=!Object(K.isFiniteNumber)(this._initPTS),H="audio/mp4",V,I,W;if(U&&(V=I=Infinity),m.config&&D.length&&(m.timescale=m.samplerate,m.isAAC||(A.mpeg?(H="audio/mpeg",m.codec=""):A.mp3&&(m.codec="mp3")),j.audio={id:"audio",container:H,codec:m.codec,initSegment:!m.isAAC&&A.mpeg?new Uint8Array(0):w.default.initSegment([m]),metadata:{channelCount:m.channelCount}},U&&(W=m.inputTimeScale,V=I=D[0].pts-Math.round(W*u))),c.sps&&c.pps&&T.length&&(c.timescale=c.inputTimeScale,j.video={id:"main",container:"video/mp4",codec:c.codec,initSegment:w.default.initSegment([c]),metadata:{width:c.width,height:c.height}},U)){W=c.inputTimeScale;var Q=this.getVideoStartPts(T),ie=Math.round(W*u);I=Math.min(I,l(T[0].dts,Q)-ie),V=Math.min(V,Q-ie)}if(Object.keys(j).length)return this.ISGenerated=!0,U&&(this._initPTS=V,this._initDTS=I),{tracks:j,initPTS:V,timescale:W}},R.remuxVideo=function(m,c,u,D){var T=m.inputTimeScale,A=m.samples,j=[],U=A.length,H=this._initPTS,V=this.nextAvcDts,I=8,W,Q,ie,ae=Number.POSITIVE_INFINITY,xe=Number.NEGATIVE_INFINITY,Ze=0,Me=!1;if(!u||V===null){var Be=c*T,qe=A[0].pts-l(A[0].dts,A[0].pts);V=Be-qe}for(var Ve=0;VeDe.pts){var pe=9e4*.2;Ze=Math.max(Math.min(Ze,De.pts-De.dts),-1*pe)}De.dts0?Ve-1:Ve].dts&&(Me=!0)}Me&&A.sort(function(Kt,bt){var xt=Kt.dts-bt.dts,ct=Kt.pts-bt.pts;return xt||ct}),Q=A[0].dts,ie=A[A.length-1].dts;var se=Math.round((ie-Q)/(U-1));if(Ze<0){if(Zese,G=me<-1;if(X||G){X?P.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(me,!0)+" ms ("+me+"dts) hole between fragments detected, filling it"):P.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(-me,!0)+" ms ("+me+"dts) overlapping between fragments detected"),Q=V;var Y=A[0].pts-me;A[0].dts=Q,A[0].pts=Y,P.logger.log("Video: First PTS/DTS adjusted: "+Object(d.toMsFromMpegTsClock)(Y,!0)+"/"+Object(d.toMsFromMpegTsClock)(Q,!0)+", delta: "+Object(d.toMsFromMpegTsClock)(me,!0)+" ms")}}r&&(Q=Math.max(0,Q));for(var ue=0,be=0,We=0;We0?He-1:He].dts;if(he.stretchShortVideoTrack&&this.nextAudioPts!==null){var Le=Math.floor(he.maxBufferHole*T),at=(D?ae+D*T:this.nextAudioPts)-pt.pts;at>Le?(W=at-Ce,W<0&&(W=Ce),P.logger.log("[mp4-remuxer]: It is approximately "+at/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=Ce}else W=Ce}var et=Math.round(pt.pts-pt.dts);j.push(new E(pt.key,W,st,et))}if(j.length&&p&&p<70){var Rt=j[0].flags;Rt.dependsOn=2,Rt.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=V=ie+W,this.isVideoContiguous=!0;var en=w.default.moof(m.sequenceNumber++,Q,v({},m,{samples:j})),pn="video",on={data1:en,data2:hn,startPTS:ae/T,endPTS:(xe+W)/T,startDTS:Q/T,endDTS:V/T,type:pn,hasAudio:!1,hasVideo:!0,nb:j.length,dropped:m.dropped};return m.samples=[],m.dropped=0,console.assert(hn.length,"MDAT length must not be zero"),on},R.remuxAudio=function(m,c,u,D,T){var A=m.inputTimeScale,j=m.samplerate?m.samplerate:A,U=A/j,H=m.isAAC?f:n,V=H*U,I=this._initPTS,W=!m.isAAC&&this.typeSupported.mpeg,Q=[],ie=m.samples,ae=W?0:8,xe=this.nextAudioPts||-1,Ze=c*A;if(this.isAudioContiguous=u=u||ie.length&&xe>0&&(D&&Math.abs(Ze-xe)<9e3||Math.abs(l(ie[0].pts-I,Ze)-xe)<20*V),ie.forEach(function(Oe){Oe.pts=l(Oe.pts-I,Ze)}),!u||xe<0){if(ie=ie.filter(function(Oe){return Oe.pts>=0}),!ie.length)return;T===0?xe=0:D?xe=Math.max(0,Ze):xe=ie[0].pts}if(m.isAAC)for(var Me=T!==void 0,Be=this.config.maxAudioFramesDrift,qe=0,Ve=xe;qe=Be*V&&we0){be+=ae;try{ue=new Uint8Array(be)}catch(Oe){this.observer.emit(B.Events.ERROR,B.Events.ERROR,{type:C.ErrorTypes.MUX_ERROR,details:C.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:be,reason:"fail allocating audio mdat "+be});return}if(!W){var hn=new DataView(ue.buffer);hn.setUint32(0,be),ue.set(w.default.types.mdat,4)}}else return;ue.set(It,ae);var nt=It.byteLength;ae+=nt,Q.push(new E(!0,H,nt,0)),Y=Nt}var He=Q.length;if(!He)return;var pt=Q[Q.length-1];this.nextAudioPts=xe=Y+U*pt.duration;var kt=W?new Uint8Array(0):w.default.moof(m.sequenceNumber++,G/U,v({},m,{samples:Q}));m.samples=[];var st=G/A,Et=xe/A,Fe="audio",Se={data1:kt,data2:ue,startPTS:st,endPTS:Et,startDTS:st,endDTS:Et,type:Fe,hasAudio:!0,hasVideo:!1,nb:He};return this.isAudioContiguous=!0,console.assert(ue.length,"MDAT length must not be zero"),Se},R.remuxEmptyAudio=function(m,c,u,D){var T=m.inputTimeScale,A=m.samplerate?m.samplerate:T,j=T/A,U=this.nextAudioPts,H=(U!==null?U:D.startDTS*T)+this._initDTS,V=D.endDTS*T+this._initDTS,I=j*f,W=Math.ceil((V-H)/I),Q=O.default.getSilentFrame(m.manifestCodec||m.codec,m.channelCount);if(P.logger.warn("[mp4-remuxer]: remux empty Audio"),!Q){P.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ie=[],ae=0;ae4294967296;)L+=g;return L}function x(L){for(var R=0;R0?this.lastEndDTS=m:(B.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var c=!!L.audio,u=!!L.video,D="";c&&(D+="audio"),u&&(D+="video");var T={data1:E,startPTS:g,startDTS:g,endPTS:m,endDTS:m,type:D,hasAudio:c,hasVideo:u,nb:1,dropped:0};return x.audio=T.type==="audio"?T:void 0,x.video=T.type!=="audio"?T:void 0,x.text=o,x.id3=p,x.initSegment=y,x},d}(),P=function(v,b,f){return Object(O.getStartDTS)(v,b)-f};function _(d,v){var b=d==null?void 0:d.codec;return b&&b.length>4?b:b==="hvc1"?"hvc1.1.c.L120.90":b==="av01"?"av01.0.04M.08":b==="avc1"||v===w.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}z.default=C},"./src/task-loop.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return K});var K=function(){function O(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var w=O.prototype;return w.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},w.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},w.onHandlerDestroyed=function(){},w.hasInterval=function(){return!!this._tickInterval},w.hasNextTick=function(){return!!this._tickTimer},w.setInterval=function(C){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,C),!0)},w.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},w.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},w.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},w.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},w.doTick=function(){},O}()},"./src/types/cmcd.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"CMCDVersion",function(){return K}),N.d(z,"CMCDObjectType",function(){return O}),N.d(z,"CMCDStreamingFormat",function(){return w}),N.d(z,"CMCDStreamType",function(){return B});var K=1,O;(function(C){C.MANIFEST="m",C.AUDIO="a",C.VIDEO="v",C.MUXED="av",C.INIT="i",C.CAPTION="c",C.TIMED_TEXT="tt",C.KEY="k",C.OTHER="o"})(O||(O={}));var w;(function(C){C.DASH="d",C.HLS="h",C.SMOOTH="s",C.OTHER="o"})(w||(w={}));var B;(function(C){C.VOD="v",C.LIVE="l"})(B||(B={}))},"./src/types/level.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"HlsSkip",function(){return w}),N.d(z,"getSkipValue",function(){return B}),N.d(z,"HlsUrlParameters",function(){return C}),N.d(z,"Level",function(){return P});function K(_,d){for(var v=0;vNumber.MAX_SAFE_INTEGER?Infinity:d},C.hexadecimalInteger=function(_){if(this[_]){var d=(this[_]||"0x").slice(2);d=(d.length&1?"0":"")+d;for(var v=new Uint8Array(d.length/2),b=0;bNumber.MAX_SAFE_INTEGER?Infinity:d},C.decimalFloatingPoint=function(_){return parseFloat(this[_])},C.optionalFloat=function(_,d){var v=this[_];return v?parseFloat(v):d},C.enumeratedString=function(_){return this[_]},C.bool=function(_){return this[_]==="YES"},C.decimalResolution=function(_){var d=K.exec(this[_]);return d===null?void 0:{width:parseInt(d[1],10),height:parseInt(d[2],10)}},B.parseAttrList=function(_){var d,v={},b='"';for(O.lastIndex=0;(d=O.exec(_))!==null;){var f=d[2];f.indexOf(b)===0&&f.lastIndexOf(b)===f.length-1&&(f=f.slice(1,-1)),v[d[1]]=f}return v},B}()},"./src/utils/binary-search.ts":function(ne,z,N){"use strict";N.r(z);var K={search:function(w,B){for(var C=0,P=w.length-1,_=null,d=null;C<=P;){_=(C+P)/2|0,d=w[_];var v=B(d);if(v>0)C=_+1;else if(v<0)P=_-1;else return d}return null}};z.default=K},"./src/utils/buffer-helper.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"BufferHelper",function(){return w});var K=N("./src/utils/logger.ts"),O={length:0,start:function(){return 0},end:function(){return 0}},w=function(){function B(){}return B.isBuffered=function(P,_){try{if(P){for(var d=B.getBuffered(P),v=0;v=d.start(v)&&_<=d.end(v))return!0}}catch(b){}return!1},B.bufferInfo=function(P,_,d){try{if(P){var v=B.getBuffered(P),b=[],f;for(f=0;fn&&(v[f-1].end=P[b].end):v.push(P[b])}else v.push(P[b])}else v=P;for(var p=0,o,r=_,s=_,l=0;l=x&&_=u&&K.logger.log(this.time+" ["+u+"] "+D)},g}(),p=function(m){for(var c=[],u=0;uC&&(this.logger.log(f.DEBUG,"Too large cursor position "+this.pos),this.pos=C)},m.moveCursor=function(u){var D=this.pos+u;if(u>1)for(var T=this.pos+1;T=144&&this.backSpace();var D=w(u);if(this.pos>=C){this.logger.log(f.ERROR,"Cannot insert "+u.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},m.clearFromPos=function(u){var D;for(D=u;D0&&(u?T="["+D.join(" | ")+"]":T=D.join(` + timeOffset: `+T);var ae=new B.TransmuxConfig(l,x,s,L,m);this.configureTransmuxer(ae)}if(this.frag=E,this.part=y,D)D.postMessage({cmd:"demux",data:r,decryptdata:A,chunkMeta:g,state:ie},r instanceof ArrayBuffer?[r]:[]);else if(u){var xe=u.push(r,A,g,ie);Object(B.isPromise)(xe)?xe.then(function(Ze){c.handleTransmuxComplete(Ze)}):this.handleTransmuxComplete(xe)}},p.flush=function(r){var s=this;r.transmuxing.start=self.performance.now();var l=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:r});else if(l){var E=l.flush(r);Object(B.isPromise)(E)?E.then(function(y){s.handleFlushResult(y,r)}):this.handleFlushResult(E,r)}},p.handleFlushResult=function(r,s){var l=this;r.forEach(function(x){l.handleTransmuxComplete(x)}),this.onFlush(s)},p.onWorkerMessage=function(r){var s=r.data,l=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,l.trigger(s.event,s.data);break}}},p.configureTransmuxer=function(r){var s=this.worker,l=this.transmuxer;s?s.postMessage({cmd:"configure",config:r}):l&&l.configure(r)},p.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},n}()},"./src/demux/transmuxer-worker.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return P});var K=N("./src/demux/transmuxer.ts"),O=N("./src/events.ts"),w=N("./src/utils/logger.ts"),B=N("./node_modules/eventemitter3/index.js"),C=N.n(B);function P(f){var n=new B.EventEmitter,p=function(r,s){f.postMessage({event:r,data:s})};n.on(O.Events.FRAG_DECRYPTED,p),n.on(O.Events.ERROR,p),f.addEventListener("message",function(o){var r=o.data;switch(r.cmd){case"init":{var s=JSON.parse(r.config);f.transmuxer=new K.default(n,r.typeSupported,s,r.vendor,r.id),Object(w.enableLogs)(s.debug),p("init",null);break}case"configure":{f.transmuxer.configure(r.config);break}case"demux":{var l=f.transmuxer.push(r.data,r.decryptdata,r.chunkMeta,r.state);Object(K.isPromise)(l)?l.then(function(y){_(f,y)}):_(f,l);break}case"flush":{var x=r.chunkMeta,E=f.transmuxer.flush(x);Object(K.isPromise)(E)?E.then(function(y){v(f,y,x)}):v(f,E,x);break}default:break}})}function _(f,n){if(b(n.remuxResult))return;var p=[],o=n.remuxResult,r=o.audio,s=o.video;r&&d(p,r),s&&d(p,s),f.postMessage({event:"transmuxComplete",data:n},p)}function d(f,n){n.data1&&f.push(n.data1.buffer),n.data2&&f.push(n.data2.buffer)}function v(f,n,p){n.forEach(function(o){_(f,o)}),f.postMessage({event:"flush",data:p})}function b(f){return!f.audio&&!f.video&&!f.text&&!f.id3&&!f.initSegment}},"./src/demux/transmuxer.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return s}),N.d(z,"isPromise",function(){return E}),N.d(z,"TransmuxConfig",function(){return y}),N.d(z,"TransmuxState",function(){return L});var K=N("./src/events.ts"),O=N("./src/errors.ts"),w=N("./src/crypt/decrypter.ts"),B=N("./src/demux/aacdemuxer.ts"),C=N("./src/demux/mp4demuxer.ts"),P=N("./src/demux/tsdemuxer.ts"),_=N("./src/demux/mp3demuxer.ts"),d=N("./src/remux/mp4-remuxer.ts"),v=N("./src/remux/passthrough-remuxer.ts"),b=N("./src/demux/chunk-cache.ts"),f=N("./src/utils/mp4-tools.ts"),n=N("./src/utils/logger.ts"),p;try{p=self.performance.now.bind(self.performance)}catch(R){n.logger.debug("Unable to use Performance API on this environment"),p=self.Date.now}var o=[{demux:P.default,remux:d.default},{demux:C.default,remux:v.default},{demux:B.default,remux:d.default},{demux:_.default,remux:d.default}],r=1024;o.forEach(function(R){var g=R.demux;r=Math.max(r,g.minProbeByteLength)});var s=function(){function R(m,c,u,D,T){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new b.default,this.observer=m,this.typeSupported=c,this.config=u,this.vendor=D,this.id=T}var g=R.prototype;return g.configure=function(c){this.transmuxConfig=c,this.decrypter&&this.decrypter.reset()},g.push=function(c,u,D,T){var A=this,j=D.transmuxing;j.executeStart=p();var U=new Uint8Array(c),H=this.cache,V=this.config,I=this.currentTransmuxState,W=this.transmuxConfig;T&&(this.currentTransmuxState=T);var Q=l(U,u);if(Q&&Q.method==="AES-128"){var ie=this.getDecrypter();if(V.enableSoftwareAES){var ae=ie.softwareDecrypt(U,Q.key.buffer,Q.iv.buffer);if(!ae)return j.executeEnd=p(),x(D);U=new Uint8Array(ae)}else return this.decryptionPromise=ie.webCryptoDecrypt(U,Q.key.buffer,Q.iv.buffer).then(function(G){var Y=A.push(G,null,D);return A.decryptionPromise=null,Y}),this.decryptionPromise}var xe=T||I,Ze=xe.contiguous,Me=xe.discontinuity,Be=xe.trackSwitch,qe=xe.accurateTimeOffset,Ve=xe.timeOffset,De=W.audioCodec,pe=W.videoCodec,se=W.defaultInitPts,we=W.duration,ve=W.initSegmentData;if((Me||Be)&&this.resetInitSegment(ve,De,pe,we),Me&&this.resetInitialTimestamp(se),Ze||this.resetContiguity(),this.needsProbing(U,Me,Be)){if(H.dataLength){var $e=H.flush();U=Object(f.appendUint8Array)($e,U)}this.configureTransmuxer(U,W)}var me=this.transmux(U,Q,Ve,qe,D),X=this.currentTransmuxState;return X.contiguous=!0,X.discontinuity=!1,X.trackSwitch=!1,j.executeEnd=p(),me},g.flush=function(c){var u=this,D=c.transmuxing;D.executeStart=p();var T=this.decrypter,A=this.cache,j=this.currentTransmuxState,U=this.decryptionPromise;if(U)return U.then(function(){return u.flush(c)});var H=[],V=j.timeOffset;if(T){var I=T.flush();I&&H.push(this.push(I,null,c))}var W=A.dataLength;A.reset();var Q=this.demuxer,ie=this.remuxer;if(!Q||!ie)return W>=r&&this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=p(),[x(c)];var ae=Q.flush(V);return E(ae)?ae.then(function(xe){return u.flushRemux(H,xe,c),H}):(this.flushRemux(H,ae,c),H)},g.flushRemux=function(c,u,D){var T=u.audioTrack,A=u.avcTrack,j=u.id3Track,U=u.textTrack,H=this.currentTransmuxState,V=H.accurateTimeOffset,I=H.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var W=this.remuxer.remux(T,A,j,U,I,V,!0,this.id);c.push({remuxResult:W,chunkMeta:D}),D.transmuxing.executeEnd=p()},g.resetInitialTimestamp=function(c){var u=this.demuxer,D=this.remuxer;if(!u||!D)return;u.resetTimeStamp(c),D.resetTimeStamp(c)},g.resetContiguity=function(){var c=this.demuxer,u=this.remuxer;if(!c||!u)return;c.resetContiguity(),u.resetNextTimestamp()},g.resetInitSegment=function(c,u,D,T){var A=this.demuxer,j=this.remuxer;if(!A||!j)return;A.resetInitSegment(u,D,T),j.resetInitSegment(c,u,D)},g.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},g.transmux=function(c,u,D,T,A){var j;return u&&u.method==="SAMPLE-AES"?j=this.transmuxSampleAes(c,u,D,T,A):j=this.transmuxUnencrypted(c,D,T,A),j},g.transmuxUnencrypted=function(c,u,D,T){var A=this.demuxer.demux(c,u,!1,!this.config.progressive),j=A.audioTrack,U=A.avcTrack,H=A.id3Track,V=A.textTrack,I=this.remuxer.remux(j,U,H,V,u,D,!1,this.id);return{remuxResult:I,chunkMeta:T}},g.transmuxSampleAes=function(c,u,D,T,A){var j=this;return this.demuxer.demuxSampleAes(c,u,D).then(function(U){var H=j.remuxer.remux(U.audioTrack,U.avcTrack,U.id3Track,U.textTrack,D,T,!1,j.id);return{remuxResult:H,chunkMeta:A}})},g.configureTransmuxer=function(c,u){for(var D=this.config,T=this.observer,A=this.typeSupported,j=this.vendor,U=u.audioCodec,H=u.defaultInitPts,V=u.duration,I=u.initSegmentData,W=u.videoCodec,Q,ie=0,ae=o.length;ie0&&g!=null&&g.key!=null&&g.iv!==null&&g.method!=null&&(m=g),m}var x=function(g){return{remuxResult:{},chunkMeta:g}};function E(R){return"then"in R&&R.then instanceof Function}var y=function(g,m,c,u,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=g,this.videoCodec=m,this.initSegmentData=c,this.duration=u,this.defaultInitPts=D},L=function(g,m,c,u,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=g,this.contiguous=m,this.accurateTimeOffset=c,this.trackSwitch=u,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"discardEPB",function(){return x});var K=N("./src/demux/adts.ts"),O=N("./src/demux/mpegaudio.ts"),w=N("./src/demux/exp-golomb.ts"),B=N("./src/demux/id3.ts"),C=N("./src/demux/sample-aes.ts"),P=N("./src/events.ts"),_=N("./src/utils/mp4-tools.ts"),d=N("./src/utils/logger.ts"),v=N("./src/errors.ts"),b={video:1,audio:2,id3:3,text:4},f=function(){function E(L,R,g){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=L,this.config=R,this.typeSupported=g}E.probe=function(R){var g=E.syncOffset(R);return g<0?!1:(g&&d.logger.warn("MPEG2-TS detected but first sync word found @ offset "+g+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var g=Math.min(1e3,R.length-3*188),m=0;m>4,De=void 0;if(Ve>1){if(De=Me+5+R[Me+4],De===Me+188)continue}else De=Me+4;switch(qe){case j:Be&&(U&&(u=r(U))&&this.parseAVCPES(u,!1),U={data:[],size:0}),U&&(U.data.push(R.subarray(De,Me+188)),U.size+=Me+188-De);break;case H:Be&&(I&&(u=r(I))&&(T.isAAC?this.parseAACPES(u):this.parseMPEGPES(u)),I={data:[],size:0}),I&&(I.data.push(R.subarray(De,Me+188)),I.size+=Me+188-De);break;case V:Be&&(W&&(u=r(W))&&this.parseID3PES(u),W={data:[],size:0}),W&&(W.data.push(R.subarray(De,Me+188)),W.size+=Me+188-De);break;case 0:Be&&(De+=R[De]+1),ae=this._pmtId=p(R,De);break;case ae:{Be&&(De+=R[De]+1);var pe=o(R,De,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,m);j=pe.avc,j>0&&(D.pid=j),H=pe.audio,H>0&&(T.pid=H,T.isAAC=pe.isAAC),V=pe.id3,V>0&&(A.pid=V),Q&&!ie&&(d.logger.log("reparse from beginning"),Q=!1,Me=Ze-188),ie=this.pmtParsed=!0;break}case 17:case 8191:break;default:Q=!0;break}}else this.observer.emit(P.Events.ERROR,P.Events.ERROR,{type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=U,T.pesData=I,A.pesData=W;var se={audioTrack:T,avcTrack:D,id3Track:A,textTrack:this._txtTrack};return c&&this.extractRemainingSamples(se),se},y.flush=function(){var R=this.remainderData;this.remainderData=null;var g;return R?g=this.demux(R,-1,!1,!0):g={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(g),this.sampleAes?this.decrypt(g,this.sampleAes):g},y.extractRemainingSamples=function(R){var g=R.audioTrack,m=R.avcTrack,c=R.id3Track,u=m.pesData,D=g.pesData,T=c.pesData,A;u&&(A=r(u))?(this.parseAVCPES(A,!0),m.pesData=null):m.pesData=u,D&&(A=r(D))?(g.isAAC?this.parseAACPES(A):this.parseMPEGPES(A),g.pesData=null):(D!=null&&D.size&&d.logger.log("last AAC PES packet truncated,might overlap between fragments"),g.pesData=D),T&&(A=r(T))?(this.parseID3PES(A),c.pesData=null):c.pesData=T},y.demuxSampleAes=function(R,g,m){var c=this.demux(R,m,!0,!this.config.progressive),u=this.sampleAes=new C.default(this.observer,this.config,g);return this.decrypt(c,u)},y.decrypt=function(R,g){return new Promise(function(m){var c=R.audioTrack,u=R.avcTrack;c.samples&&c.isAAC?g.decryptAacSamples(c.samples,0,function(){u.samples?g.decryptAvcSamples(u.samples,0,0,function(){m(R)}):m(R)}):u.samples&&g.decryptAvcSamples(u.samples,0,0,function(){m(R)})})},y.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},y.parseAVCPES=function(R,g){var m=this,c=this._avcTrack,u=this.parseAVCNALu(R.data),D=!1,T=this.avcSample,A,j=!1;R.data=null,T&&u.length&&!c.audFound&&(s(T,c),T=this.avcSample=n(!1,R.pts,R.dts,"")),u.forEach(function(U){switch(U.type){case 1:{A=!0,T||(T=m.avcSample=n(!0,R.pts,R.dts,"")),D&&(T.debug+="NDR "),T.frame=!0;var H=U.data;if(j&&H.length>4){var V=new w.default(H).readSliceType();(V===2||V===4||V===7||V===9)&&(T.key=!0)}break}case 5:A=!0,T||(T=m.avcSample=n(!0,R.pts,R.dts,"")),D&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{A=!0,D&&T&&(T.debug+="SEI ");var I=new w.default(x(U.data));I.readUByte();for(var W=0,Q=0,ie=!1,ae=0;!ie&&I.bytesAvailable>1;){W=0;do ae=I.readUByte(),W+=ae;while(ae===255);Q=0;do ae=I.readUByte(),Q+=ae;while(ae===255);if(W===4&&I.bytesAvailable!==0){ie=!0;var xe=I.readUByte();if(xe===181){var Ze=I.readUShort();if(Ze===49){var Me=I.readUInt();if(Me===1195456820){var Be=I.readUByte();if(Be===3){for(var qe=I.readUByte(),Ve=I.readUByte(),De=31&qe,pe=[qe,Ve],se=0;se16){for(var we=[],ve=0;ve<16;ve++)we.push(I.readUByte().toString(16)),(ve===3||ve===5||ve===7||ve===9)&&we.push("-");for(var $e=Q-16,me=new Uint8Array($e),X=0;X<$e;X++)me[X]=I.readUByte();l(m._txtTrack.samples,{pts:R.pts,payloadType:W,uuid:we.join(""),userData:Object(B.utf8ArrayToStr)(me),userDataBytes:me})}}else if(Q=0){var I={data:R.subarray(H,T-c-1),type:V};D.push(I)}else{var W=this.getLastNalUnit();if(W&&(u&&T<=4-u&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-u))),j=T-c-1,j>0)){var Q=new Uint8Array(W.data.byteLength+j);Q.set(W.data,0),Q.set(R.subarray(0,j),W.data.byteLength),W.data=Q,W.state=0}}T=0&&c>=0){var ie={data:R.subarray(H,g),type:V,state:c};D.push(ie)}if(D.length===0){var ae=this.getLastNalUnit();if(ae){var xe=new Uint8Array(ae.data.byteLength+R.byteLength);xe.set(ae.data,0),xe.set(R,ae.data.byteLength),ae.data=xe}}return m.naluState=c,D},y.parseAACPES=function(R){var g=0,m=this._audioTrack,c=this.aacOverFlow,u=R.data;if(c){this.aacOverFlow=null;var D=c.sample.unit.byteLength,T=Math.min(c.missing,D),A=D-T;c.sample.unit.set(u.subarray(0,T),A),m.samples.push(c.sample),g=c.missing}var j,U;for(j=g,U=u.length;j1;){var D=new Uint8Array(u[0].length+u[1].length);D.set(u[0]),D.set(u[1],u[0].length),u[0]=D,u.splice(1,1)}L=u[0];var T=(L[0]<<16)+(L[1]<<8)+L[2];if(T===1){if(R=(L[4]<<8)+L[5],R&&R>E.size-6)return null;var A=L[7];A&192&&(m=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,A&64?(c=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,m-c>60*9e4&&(d.logger.warn(Math.round((m-c)/9e4)+"s delta between PTS and DTS, align them"),m=c)):c=m),g=L[8];var j=g+9;if(E.size<=j)return null;E.size-=j;for(var U=new Uint8Array(E.size),H=0,V=u.length;HI){j-=I;continue}else L=L.subarray(j),I-=j,j=0;U.set(L,y),y+=I}return R&&(R-=g+3),{data:U,pts:m,dts:c,len:R}}return null}function s(E,y){if(E.units.length&&E.frame){if(E.pts===void 0){var L=y.samples,R=L.length;if(R){var g=L[R-1];E.pts=g.pts,E.dts=g.dts}else{y.dropped++;return}}y.samples.push(E)}E.debug.length&&d.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function l(E,y){var L=E.length;if(L>0){if(y.pts>=E[L-1].pts)E.push(y);else for(var R=L-1;R>=0;R--)if(y.ptsm)return u;return 0}},{key:"maxAutoLevel",get:function(){var g=this.levels,m=this.autoLevelCapping,c;return m===-1&&g&&g.length?c=g.length-1:c=m,c}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(g){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,g)}},{key:"audioTracks",get:function(){var g=this.audioTrackController;return g?g.audioTracks:[]}},{key:"audioTrack",get:function(){var g=this.audioTrackController;return g?g.audioTrack:-1},set:function(g){var m=this.audioTrackController;m&&(m.audioTrack=g)}},{key:"subtitleTracks",get:function(){var g=this.subtitleTrackController;return g?g.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var g=this.subtitleTrackController;return g?g.subtitleTrack:-1},set:function(g){var m=this.subtitleTrackController;m&&(m.subtitleTrack=g)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var g=this.subtitleTrackController;return g?g.subtitleDisplay:!1},set:function(g){var m=this.subtitleTrackController;m&&(m.subtitleDisplay=g)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(g){this.config.lowLatencyMode=g}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return y.defaultConfig?y.defaultConfig:n.hlsDefaultConfig},set:function(g){y.defaultConfig=g}}]),y}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"isSupported",function(){return w}),N.d(z,"changeTypeSupported",function(){return B});var K=N("./src/utils/mediasource-helper.ts");function O(){return self.SourceBuffer||self.WebKitSourceBuffer}function w(){var C=Object(K.getMediaSource)();if(!C)return!1;var P=O(),_=C&&typeof C.isTypeSupported=="function"&&C.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),d=!P||P.prototype&&typeof P.prototype.appendBuffer=="function"&&typeof P.prototype.remove=="function";return!!_&&!!d}function B(){var C,P=O();return typeof(P==null||((C=P.prototype)===null||C===void 0)?void 0:C.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return f}),N.d(z,"LoadError",function(){return p});var K=N("./src/polyfills/number.ts"),O=N("./src/errors.ts");function w(o,r){o.prototype=Object.create(r.prototype),o.prototype.constructor=o,d(o,r)}function B(o){var r=typeof Map=="function"?new Map:void 0;return B=function(l){if(l===null||!_(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(l))return r.get(l);r.set(l,x)}function x(){return C(l,arguments,v(this).constructor)}return x.prototype=Object.create(l.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),d(x,l)},B(o)}function C(o,r,s){return P()?C=Reflect.construct:C=function(x,E,y){var L=[null];L.push.apply(L,E);var R=Function.bind.apply(x,L),g=new R;return y&&d(g,y.prototype),g},C.apply(null,arguments)}function P(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function _(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function d(o,r){return d=Object.setPrototypeOf||function(l,x){return l.__proto__=x,l},d(o,r)}function v(o){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},v(o)}var b=Math.pow(2,17),f=function(){function o(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var r=o.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(l,x){var E=this,y=l.url;if(!y)return Promise.reject(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,networkDetails:null},"Fragment does not have a "+(y?"part list":"url")));this.abort();var L=this.config,R=L.fLoader,g=L.loader;return new Promise(function(m,c){E.loader&&E.loader.destroy();var u=E.loader=l.loader=R?new R(L):new g(L),D=n(l),T={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:b};l.stats=u.stats,u.load(D,T,{onSuccess:function(j,U,H,V){E.resetLoader(l,u),m({frag:l,part:null,payload:j.data,networkDetails:V})},onError:function(j,U,H){E.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,response:j,networkDetails:H}))},onAbort:function(j,U,H){E.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,networkDetails:H}))},onTimeout:function(j,U,H){E.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,networkDetails:H}))},onProgress:function(j,U,H,V){x&&x({frag:l,part:null,payload:H,networkDetails:V})}})})},r.loadPart=function(l,x,E){var y=this;this.abort();var L=this.config,R=L.fLoader,g=L.loader;return new Promise(function(m,c){y.loader&&y.loader.destroy();var u=y.loader=l.loader=R?new R(L):new g(L),D=n(l,x),T={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:b};x.stats=u.stats,u.load(D,T,{onSuccess:function(j,U,H,V){y.resetLoader(l,u),y.updateStatsFromPart(l,x);var I={frag:l,part:x,payload:j.data,networkDetails:V};E(I),m(I)},onError:function(j,U,H){y.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:l,part:x,response:j,networkDetails:H}))},onAbort:function(j,U,H){l.stats.aborted=x.stats.aborted,y.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:l,part:x,networkDetails:H}))},onTimeout:function(j,U,H){y.resetLoader(l,u),c(new p({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:l,part:x,networkDetails:H}))}})})},r.updateStatsFromPart=function(l,x){var E=l.stats,y=x.stats,L=y.total;if(E.loaded+=y.loaded,L){var R=Math.round(l.duration/x.duration),g=Math.min(Math.round(E.loaded/L),R),m=R-g,c=m*Math.round(E.loaded/g);E.total=E.loaded+c}else E.total=Math.max(E.loaded,E.total);var u=E.loading,D=y.loading;u.start?u.first+=D.first-D.start:(u.start=D.start,u.first=D.first),u.end=D.end},r.resetLoader=function(l,x){l.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},o}();function n(o,r){r===void 0&&(r=null);var s=r||o,l={frag:o,part:r,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},x=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(K.isFiniteNumber)(x)&&Object(K.isFiniteNumber)(E)&&(l.rangeStart=x,l.rangeEnd=E),l}var p=function(o){w(r,o);function r(s){for(var l,x=arguments.length,E=new Array(x>1?x-1:0),y=1;y>8*(15-L)&255;return y},l.setDecryptDataFromLevelKey=function(E,y){var L=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(L=C.LevelKey.fromURI(E.uri),L.method=E.method,L.iv=this.createInitializationVector(y),L.keyFormat="identity"),L},l.setElementaryStreamInfo=function(E,y,L,R,g,m){m===void 0&&(m=!1);var c=this.elementaryStreams,u=c[E];if(!u){c[E]={startPTS:y,endPTS:L,startDTS:R,endDTS:g,partial:m};return}u.startPTS=Math.min(u.startPTS,y),u.endPTS=Math.max(u.endPTS,L),u.startDTS=Math.min(u.startDTS,R),u.endDTS=Math.max(u.endDTS,g)},l.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[f.AUDIO]=null,E[f.VIDEO]=null,E[f.AUDIOVIDEO]=null},b(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&B.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(K.isFiniteNumber)(this.programDateTime))return null;var E=Object(K.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),s}(n),o=function(r){_(s,r);function s(l,x,E,y,L){var R;R=r.call(this,E)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new P.LoadStats,R.duration=l.decimalFloatingPoint("DURATION"),R.gap=l.bool("GAP"),R.independent=l.bool("INDEPENDENT"),R.relurl=l.enumeratedString("URI"),R.fragment=x,R.index=y;var g=l.enumeratedString("BYTERANGE");return g&&R.setByteRange(g,L),L&&(R.fragOffset=L.fragOffset+L.duration),R}return b(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),s}(n)},"./src/loader/key-loader.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return B});var K=N("./src/events.ts"),O=N("./src/errors.ts"),w=N("./src/utils/logger.ts"),B=function(){function C(_){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=_,this._registerListeners()}var P=C.prototype;return P._registerListeners=function(){this.hls.on(K.Events.KEY_LOADING,this.onKeyLoading,this)},P._unregisterListeners=function(){this.hls.off(K.Events.KEY_LOADING,this.onKeyLoading)},P.destroy=function(){this._unregisterListeners();for(var d in this.loaders){var v=this.loaders[d];v&&v.destroy()}this.loaders={}},P.onKeyLoading=function(d,v){var b=v.frag,f=b.type,n=this.loaders[f];if(!b.decryptdata){w.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var p=b.decryptdata.uri;if(p!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(n&&(w.logger.warn("abort previous key loader for type:"+f),n.abort()),!p){w.logger.warn("key uri is falsy");return}var r=o.loader,s=b.loader=this.loaders[f]=new r(o);this.decrypturl=p,this.decryptkey=null;var l={url:p,frag:b,responseType:"arraybuffer"},x={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(l,x,E)}else this.decryptkey&&(b.decryptdata.key=this.decryptkey,this.hls.trigger(K.Events.KEY_LOADED,{frag:b}))},P.loadsuccess=function(d,v,b){var f=b.frag;if(!f.decryptdata){w.logger.error("after key load, decryptdata unset");return}this.decryptkey=f.decryptdata.key=new Uint8Array(d.data),f.loader=null,delete this.loaders[f.type],this.hls.trigger(K.Events.KEY_LOADED,{frag:f})},P.loaderror=function(d,v){var b=v.frag,f=b.loader;f&&f.abort(),delete this.loaders[b.type],this.hls.trigger(K.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:b,response:d})},P.loadtimeout=function(d,v){var b=v.frag,f=b.loader;f&&f.abort(),delete this.loaders[b.type],this.hls.trigger(K.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:b})},C}()},"./src/loader/level-details.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"LevelDetails",function(){return C});var K=N("./src/polyfills/number.ts");function O(P,_){for(var d=0;d<_.length;d++){var v=_[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(P,v.key,v)}}function w(P,_,d){return _&&O(P.prototype,_),d&&O(P,d),P}var B=10,C=function(){function P(d){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=d}var _=P.prototype;return _.reloaded=function(v){if(!v){this.advanced=!0,this.updated=!0;return}var b=this.lastPartSn-v.lastPartSn,f=this.lastPartIndex-v.lastPartIndex;this.updated=this.endSN!==v.endSN||!!f||!!b,this.advanced=this.endSN>v.endSN||b>0||b===0&&f>0,this.updated||this.advanced?this.misses=Math.floor(v.misses*.6):this.misses=v.misses+1,this.availabilityDelay=v.availabilityDelay},w(P,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(K.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||B}},{key:"drift",get:function(){var v=this.driftEndTime-this.driftStartTime;if(v>0){var b=this.driftEnd-this.driftStart;return b*1e3/v}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var v;return(v=this.partList)!==null&&v!==void 0&&v.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var v;return(v=this.fragments)!==null&&v!==void 0&&v.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var v;return(v=this.partList)!==null&&v!==void 0&&v.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var v;return(v=this.partList)!==null&&v!==void 0&&v.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),P}()},"./src/loader/level-key.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"LevelKey",function(){return C});var K=N("./node_modules/url-toolkit/src/url-toolkit.js"),O=N.n(K);function w(P,_){for(var d=0;d<_.length;d++){var v=_[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(P,v.key,v)}}function B(P,_,d){return _&&w(P.prototype,_),d&&w(P,d),P}var C=function(){P.fromURL=function(d,v){return new P(d,v)},P.fromURI=function(d){return new P(d)};function P(_,d){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,d?this._uri=Object(K.buildAbsoluteURL)(_,d,{alwaysNormalize:!0}):this._uri=_}return B(P,[{key:"uri",get:function(){return this._uri}}]),P}()},"./src/loader/load-stats.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"LoadStats",function(){return K});var K=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return s});var K=N("./src/polyfills/number.ts"),O=N("./node_modules/url-toolkit/src/url-toolkit.js"),w=N.n(O),B=N("./src/loader/fragment.ts"),C=N("./src/loader/level-details.ts"),P=N("./src/loader/level-key.ts"),_=N("./src/utils/attr-list.ts"),d=N("./src/utils/logger.ts"),v=N("./src/utils/codecs.ts"),b=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,f=/#EXT-X-MEDIA:(.*)/g,n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),p=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),o=/\.(mp4|m4s|m4v|m4a)$/i;function r(L){var R,g;return o.test((R=(g=O.parseURL(L))===null||g===void 0?void 0:g.path)!=null?R:"")}var s=function(){function L(){}return L.findGroup=function(g,m){for(var c=0;c2){var c=m.shift()+".";return c+=parseInt(m.shift()).toString(16),c+=("000"+parseInt(m.shift()).toString(16)).substr(-4),c}return g},L.resolve=function(g,m){return O.buildAbsoluteURL(m,g,{alwaysNormalize:!0})},L.parseMasterPlaylist=function(g,m){var c=[],u={},D=!1;b.lastIndex=0;for(var T;(T=b.exec(g))!=null;)if(T[1]){var A=new _.AttrList(T[1]),j={attrs:A,bitrate:A.decimalInteger("AVERAGE-BANDWIDTH")||A.decimalInteger("BANDWIDTH"),name:A.NAME,url:L.resolve(T[2],m)},U=A.decimalResolution("RESOLUTION");U&&(j.width=U.width,j.height=U.height),l((A.CODECS||"").split(/[ ,]+/).filter(function(V){return V}),j),j.videoCodec&&j.videoCodec.indexOf("avc1")!==-1&&(j.videoCodec=L.convertAVC1ToAVCOTI(j.videoCodec)),c.push(j)}else if(T[3]){var H=new _.AttrList(T[3]);H["DATA-ID"]&&(D=!0,u[H["DATA-ID"]]=H)}return{levels:c,sessionData:D?u:null}},L.parseMasterPlaylistMedia=function(g,m,c,u){u===void 0&&(u=[]);var D,T=[],A=0;for(f.lastIndex=0;(D=f.exec(g))!==null;){var j=new _.AttrList(D[1]);if(j.TYPE===c){var U={attrs:j,bitrate:0,id:A++,groupId:j["GROUP-ID"],instreamId:j["INSTREAM-ID"],name:j.NAME||j.LANGUAGE||"",type:c,default:j.bool("DEFAULT"),autoselect:j.bool("AUTOSELECT"),forced:j.bool("FORCED"),lang:j.LANGUAGE,url:j.URI?L.resolve(j.URI,m):""};if(u.length){var H=L.findGroup(u,U.groupId)||u[0];x(U,H,"audioCodec"),x(U,H,"textCodec")}T.push(U)}}return T},L.parseLevelPlaylist=function(g,m,c,u,D){var T=new C.LevelDetails(m),A=T.fragments,j=null,U=0,H=0,V=0,I=0,W=null,Q=new B.Fragment(u,m),ie,ae,xe,Ze=-1,Me=!1;for(n.lastIndex=0,T.m3u8=g;(ie=n.exec(g))!==null;){Me&&(Me=!1,Q=new B.Fragment(u,m),Q.start=V,Q.sn=U,Q.cc=I,Q.level=c,j&&(Q.initSegment=j,Q.rawProgramDateTime=j.rawProgramDateTime));var Be=ie[1];if(Be){Q.duration=parseFloat(Be);var qe=(" "+ie[2]).slice(1);Q.title=qe||null,Q.tagList.push(qe?["INF",Be,qe]:["INF",Be])}else if(ie[3])Object(K.isFiniteNumber)(Q.duration)&&(Q.start=V,xe&&(Q.levelkey=xe),Q.sn=U,Q.level=c,Q.cc=I,Q.urlId=D,A.push(Q),Q.relurl=(" "+ie[3]).slice(1),y(Q,W),W=Q,V+=Q.duration,U++,H=0,Me=!0);else if(ie[4]){var Ve=(" "+ie[4]).slice(1);W?Q.setByteRange(Ve,W):Q.setByteRange(Ve)}else if(ie[5])Q.rawProgramDateTime=(" "+ie[5]).slice(1),Q.tagList.push(["PROGRAM-DATE-TIME",Q.rawProgramDateTime]),Ze===-1&&(Ze=A.length);else{if(ie=ie[0].match(p),!ie){d.logger.warn("No matches on slow regex match for level playlist!");continue}for(ae=1;ae-1){d.logger.warn("Keyformat "+Tt+" is not supported from the manifest");continue}else if(Tt!=="identity")continue;Y&&(xe=P.LevelKey.fromURL(m,ue),ue&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Y)>=0&&(xe.method=Y,xe.keyFormat=Tt,ze&&(xe.keyID=ze),We&&(xe.keyFormatVersions=We),xe.iv=be));break}case"START":{var It=new _.AttrList(pe),Nt=It.decimalFloatingPoint("TIME-OFFSET");Object(K.isFiniteNumber)(Nt)&&(T.startTimeOffset=Nt);break}case"MAP":{var Zt=new _.AttrList(pe);Q.relurl=Zt.URI,Zt.BYTERANGE&&Q.setByteRange(Zt.BYTERANGE),Q.level=c,Q.sn="initSegment",xe&&(Q.levelkey=xe),Q.initSegment=null,j=Q,Me=!0;break}case"SERVER-CONTROL":{var fn=new _.AttrList(pe);T.canBlockReload=fn.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=fn.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&fn.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=fn.optionalFloat("PART-HOLD-BACK",0),T.holdBack=fn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var nt=new _.AttrList(pe);T.partTarget=nt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var He=T.partList;He||(He=T.partList=[]);var pt=H>0?He[He.length-1]:void 0,Mt=H++,st=new B.Part(new _.AttrList(pe),Q,m,Mt,pt);He.push(st),Q.duration+=st.duration;break}case"PRELOAD-HINT":{var Et=new _.AttrList(pe);T.preloadHint=Et;break}case"RENDITION-REPORT":{var Fe=new _.AttrList(pe);T.renditionReports=T.renditionReports||[],T.renditionReports.push(Fe);break}default:d.logger.warn("line parsed but not handled: "+ie);break}}}W&&!W.relurl?(A.pop(),V-=W.duration,T.partList&&(T.fragmentHint=W)):T.partList&&(y(Q,W),Q.cc=I,T.fragmentHint=Q);var Se=A.length,Oe=A[0],ce=A[Se-1];if(V+=T.skippedSegments*T.targetduration,V>0&&Se&&ce){T.averagetargetduration=V/Se;var he=ce.sn;T.endSN=he!=="initSegment"?he:0,Oe&&(T.startCC=Oe.cc,Oe.initSegment||T.fragments.every(function(Ce){return Ce.relurl&&r(Ce.relurl)})&&(d.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Q=new B.Fragment(u,m),Q.relurl=ce.relurl,Q.level=c,Q.sn="initSegment",Oe.initSegment=Q,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(V+=T.fragmentHint.duration),T.totalduration=V,T.endCC=I,Ze>0&&E(A,Ze),T},L}();function l(L,R){["video","audio","text"].forEach(function(g){var m=L.filter(function(u){return Object(v.isCodecType)(u,g)});if(m.length){var c=m.filter(function(u){return u.lastIndexOf("avc1",0)===0||u.lastIndexOf("mp4a",0)===0});R[g+"Codec"]=c.length>0?c[0]:m[0],L=L.filter(function(u){return m.indexOf(u)===-1})}}),R.unknownCodecs=L}function x(L,R,g){var m=R[g];m&&(L[g]=m)}function E(L,R){for(var g=L[R],m=R;m--;){var c=L[m];if(!c)return;c.programDateTime=g.programDateTime-c.duration*1e3,g=c}}function y(L,R){L.rawProgramDateTime?L.programDateTime=Date.parse(L.rawProgramDateTime):R!=null&&R.programDateTime&&(L.programDateTime=R.endProgramDateTime),Object(K.isFiniteNumber)(L.programDateTime)||(L.programDateTime=null,L.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ne,z,N){"use strict";N.r(z);var K=N("./src/polyfills/number.ts"),O=N("./src/events.ts"),w=N("./src/errors.ts"),B=N("./src/utils/logger.ts"),C=N("./src/utils/mp4-tools.ts"),P=N("./src/loader/m3u8-parser.ts"),_=N("./src/types/loader.ts"),d=N("./src/utils/attr-list.ts");function v(n){var p=n.type;switch(p){case _.PlaylistContextType.AUDIO_TRACK:return _.PlaylistLevelType.AUDIO;case _.PlaylistContextType.SUBTITLE_TRACK:return _.PlaylistLevelType.SUBTITLE;default:return _.PlaylistLevelType.MAIN}}function b(n,p){var o=n.url;return(o===void 0||o.indexOf("data:")===0)&&(o=p.url),o}var f=function(){function n(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var p=n.prototype;return p.registerListeners=function(){var r=this.hls;r.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.unregisterListeners=function(){var r=this.hls;r.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(O.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.createInternalLoader=function(r){var s=this.hls.config,l=s.pLoader,x=s.loader,E=l||x,y=new E(s);return r.loader=y,this.loaders[r.type]=y,y},p.getInternalLoader=function(r){return this.loaders[r.type]},p.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},p.destroyInternalLoaders=function(){for(var r in this.loaders){var s=this.loaders[r];s&&s.destroy(),this.resetInternalLoader(r)}},p.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},p.onManifestLoading=function(r,s){var l=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:_.PlaylistContextType.MANIFEST,url:l,deliveryDirectives:null})},p.onLevelLoading=function(r,s){var l=s.id,x=s.level,E=s.url,y=s.deliveryDirectives;this.load({id:l,groupId:null,level:x,responseType:"text",type:_.PlaylistContextType.LEVEL,url:E,deliveryDirectives:y})},p.onAudioTrackLoading=function(r,s){var l=s.id,x=s.groupId,E=s.url,y=s.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:_.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:y})},p.onSubtitleTrackLoading=function(r,s){var l=s.id,x=s.groupId,E=s.url,y=s.deliveryDirectives;this.load({id:l,groupId:x,level:null,responseType:"text",type:_.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:y})},p.load=function(r){var s,l=this.hls.config,x=this.getInternalLoader(r);if(x){var E=x.context;if(E&&E.url===r.url){B.logger.trace("[playlist-loader]: playlist request ongoing");return}B.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),x.abort()}var y,L,R,g;switch(r.type){case _.PlaylistContextType.MANIFEST:y=l.manifestLoadingMaxRetry,L=l.manifestLoadingTimeOut,R=l.manifestLoadingRetryDelay,g=l.manifestLoadingMaxRetryTimeout;break;case _.PlaylistContextType.LEVEL:case _.PlaylistContextType.AUDIO_TRACK:case _.PlaylistContextType.SUBTITLE_TRACK:y=0,L=l.levelLoadingTimeOut;break;default:y=l.levelLoadingMaxRetry,L=l.levelLoadingTimeOut,R=l.levelLoadingRetryDelay,g=l.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(r),(s=r.deliveryDirectives)!==null&&s!==void 0&&s.part){var m;if(r.type===_.PlaylistContextType.LEVEL&&r.level!==null?m=this.hls.levels[r.level].details:r.type===_.PlaylistContextType.AUDIO_TRACK&&r.id!==null?m=this.hls.audioTracks[r.id].details:r.type===_.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(m=this.hls.subtitleTracks[r.id].details),m){var c=m.partTarget,u=m.targetduration;c&&u&&(L=Math.min(Math.max(c*3,u*.8)*1e3,L))}}var D={timeout:L,maxRetry:y,retryDelay:R,maxRetryDelay:g,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(r,D,T)},p.loadsuccess=function(r,s,l,x){if(x===void 0&&(x=null),l.isSidxRequest){this.handleSidxRequest(r,l),this.handlePlaylistLoaded(r,s,l,x);return}this.resetInternalLoader(l.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,l,"no EXTM3U delimiter",x);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,s,l,x):this.handleMasterPlaylist(r,s,l,x)},p.loaderror=function(r,s,l){l===void 0&&(l=null),this.handleNetworkError(s,l,!1,r)},p.loadtimeout=function(r,s,l){l===void 0&&(l=null),this.handleNetworkError(s,l,!0)},p.handleMasterPlaylist=function(r,s,l,x){var E=this.hls,y=r.data,L=b(r,l),R=P.default.parseMasterPlaylist(y,L),g=R.levels,m=R.sessionData;if(!g.length){this.handleManifestParsingError(r,l,"no level found in manifest",x);return}var c=g.map(function(U){return{id:U.attrs.AUDIO,audioCodec:U.audioCodec}}),u=g.map(function(U){return{id:U.attrs.SUBTITLES,textCodec:U.textCodec}}),D=P.default.parseMasterPlaylistMedia(y,L,"AUDIO",c),T=P.default.parseMasterPlaylistMedia(y,L,"SUBTITLES",u),A=P.default.parseMasterPlaylistMedia(y,L,"CLOSED-CAPTIONS");if(D.length){var j=D.some(function(U){return!U.url});!j&&g[0].audioCodec&&!g[0].attrs.AUDIO&&(B.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new d.AttrList({}),bitrate:0,url:""}))}E.trigger(O.Events.MANIFEST_LOADED,{levels:g,audioTracks:D,subtitles:T,captions:A,url:L,stats:s,networkDetails:x,sessionData:m})},p.handleTrackOrLevelPlaylist=function(r,s,l,x){var E=this.hls,y=l.id,L=l.level,R=l.type,g=b(r,l),m=Object(K.isFiniteNumber)(y)?y:0,c=Object(K.isFiniteNumber)(L)?L:m,u=v(l),D=P.default.parseLevelPlaylist(r.data,g,c,u,m);if(!D.fragments.length){E.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:g,reason:"no fragments found in level",level:typeof l.level=="number"?l.level:void 0});return}if(R===_.PlaylistContextType.MANIFEST){var T={attrs:new d.AttrList({}),bitrate:0,details:D,name:"",url:g};E.trigger(O.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:g,stats:s,networkDetails:x,sessionData:null})}if(s.parsing.end=performance.now(),D.needSidxRanges){var A,j=(A=D.fragments[0].initSegment)===null||A===void 0?void 0:A.url;this.load({url:j,isSidxRequest:!0,type:R,level:L,levelDetails:D,id:y,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}l.levelDetails=D,this.handlePlaylistLoaded(r,s,l,x)},p.handleSidxRequest=function(r,s){var l=Object(C.parseSegmentIndex)(new Uint8Array(r.data));if(!l)return;var x=l.references,E=s.levelDetails;x.forEach(function(y,L){var R=y.info,g=E.fragments[L];g.byteRange.length===0&&g.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),g.initSegment&&g.initSegment.setByteRange(String(l.moovEndOffset)+"@0")})},p.handleManifestParsingError=function(r,s,l,x){this.hls.trigger(O.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===_.PlaylistContextType.MANIFEST,url:r.url,reason:l,response:r,context:s,networkDetails:x})},p.handleNetworkError=function(r,s,l,x){l===void 0&&(l=!1),B.logger.warn("[playlist-loader]: A network "+(l?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=w.ErrorDetails.UNKNOWN,y=!1,L=this.getInternalLoader(r);switch(r.type){case _.PlaylistContextType.MANIFEST:E=l?w.ErrorDetails.MANIFEST_LOAD_TIMEOUT:w.ErrorDetails.MANIFEST_LOAD_ERROR,y=!0;break;case _.PlaylistContextType.LEVEL:E=l?w.ErrorDetails.LEVEL_LOAD_TIMEOUT:w.ErrorDetails.LEVEL_LOAD_ERROR,y=!1;break;case _.PlaylistContextType.AUDIO_TRACK:E=l?w.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:w.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,y=!1;break;case _.PlaylistContextType.SUBTITLE_TRACK:E=l?w.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:w.ErrorDetails.SUBTITLE_LOAD_ERROR,y=!1;break}L&&this.resetInternalLoader(r.type);var R={type:w.ErrorTypes.NETWORK_ERROR,details:E,fatal:y,url:r.url,loader:L,context:r,networkDetails:s};x&&(R.response=x),this.hls.trigger(O.Events.ERROR,R)},p.handlePlaylistLoaded=function(r,s,l,x){var E=l.type,y=l.level,L=l.id,R=l.groupId,g=l.loader,m=l.levelDetails,c=l.deliveryDirectives;if(!(m!=null&&m.targetduration)){this.handleManifestParsingError(r,l,"invalid target duration",x);return}if(!g)return;m.live&&(g.getCacheAge&&(m.ageHeader=g.getCacheAge()||0),(!g.getCacheAge||isNaN(m.ageHeader))&&(m.ageHeader=0));switch(E){case _.PlaylistContextType.MANIFEST:case _.PlaylistContextType.LEVEL:this.hls.trigger(O.Events.LEVEL_LOADED,{details:m,level:y||0,id:L||0,stats:s,networkDetails:x,deliveryDirectives:c});break;case _.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(O.Events.AUDIO_TRACK_LOADED,{details:m,id:L||0,groupId:R||"",stats:s,networkDetails:x,deliveryDirectives:c});break;case _.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(O.Events.SUBTITLE_TRACK_LOADED,{details:m,id:L||0,groupId:R||"",stats:s,networkDetails:x,deliveryDirectives:c});break}},n}();z.default=f},"./src/polyfills/number.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"isFiniteNumber",function(){return K}),N.d(z,"MAX_SAFE_INTEGER",function(){return O});var K=Number.isFinite||function(w){return typeof w=="number"&&isFinite(w)},O=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ne,z,N){"use strict";N.r(z);var K=function(){function O(){}return O.getSilentFrame=function(B,C){switch(B){case"mp4a.40.2":if(C===1)return new Uint8Array([0,200,0,128,35,128]);if(C===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(C===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(C===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(C===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(C===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(C===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(C===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(C===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},O}();z.default=K},"./src/remux/mp4-generator.ts":function(ne,z,N){"use strict";N.r(z);var K=Math.pow(2,32)-1,O=function(){function w(){}return w.init=function(){w.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var C;for(C in w.types)w.types.hasOwnProperty(C)&&(w.types[C]=[C.charCodeAt(0),C.charCodeAt(1),C.charCodeAt(2),C.charCodeAt(3)]);var P=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),_=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);w.HDLR_TYPES={video:P,audio:_};var d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),v=new Uint8Array([0,0,0,0,0,0,0,0]);w.STTS=w.STSC=w.STCO=v,w.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),w.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),w.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),w.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var b=new Uint8Array([105,115,111,109]),f=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);w.FTYP=w.box(w.types.ftyp,b,n,b,f),w.DINF=w.box(w.types.dinf,w.box(w.types.dref,d))},w.box=function(C){for(var P=8,_=arguments.length,d=new Array(_>1?_-1:0),v=1;v<_;v++)d[v-1]=arguments[v];for(var b=d.length,f=b;b--;)P+=d[b].byteLength;var n=new Uint8Array(P);for(n[0]=P>>24&255,n[1]=P>>16&255,n[2]=P>>8&255,n[3]=P&255,n.set(C,4),b=0,P=8;b>24&255,C>>16&255,C>>8&255,C&255,_>>24,_>>16&255,_>>8&255,_&255,d>>24,d>>16&255,d>>8&255,d&255,85,196,0,0]))},w.mdia=function(C){return w.box(w.types.mdia,w.mdhd(C.timescale,C.duration),w.hdlr(C.type),w.minf(C))},w.mfhd=function(C){return w.box(w.types.mfhd,new Uint8Array([0,0,0,0,C>>24,C>>16&255,C>>8&255,C&255]))},w.minf=function(C){return C.type==="audio"?w.box(w.types.minf,w.box(w.types.smhd,w.SMHD),w.DINF,w.stbl(C)):w.box(w.types.minf,w.box(w.types.vmhd,w.VMHD),w.DINF,w.stbl(C))},w.moof=function(C,P,_){return w.box(w.types.moof,w.mfhd(C),w.traf(_,P))},w.moov=function(C){for(var P=C.length,_=[];P--;)_[P]=w.trak(C[P]);return w.box.apply(null,[w.types.moov,w.mvhd(C[0].timescale,C[0].duration)].concat(_).concat(w.mvex(C)))},w.mvex=function(C){for(var P=C.length,_=[];P--;)_[P]=w.trex(C[P]);return w.box.apply(null,[w.types.mvex].concat(_))},w.mvhd=function(C,P){P*=C;var _=Math.floor(P/(K+1)),d=Math.floor(P%(K+1)),v=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,C>>24&255,C>>16&255,C>>8&255,C&255,_>>24,_>>16&255,_>>8&255,_&255,d>>24,d>>16&255,d>>8&255,d&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return w.box(w.types.mvhd,v)},w.sdtp=function(C){var P=C.samples||[],_=new Uint8Array(4+P.length),d,v;for(d=0;d>>8&255),P.push(b&255),P=P.concat(Array.prototype.slice.call(v));for(d=0;d>>8&255),_.push(b&255),_=_.concat(Array.prototype.slice.call(v));var f=w.box(w.types.avcC,new Uint8Array([1,P[3],P[4],P[5],252|3,224|C.sps.length].concat(P).concat([C.pps.length]).concat(_))),n=C.width,p=C.height,o=C.pixelRatio[0],r=C.pixelRatio[1];return w.box(w.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>8&255,n&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),f,w.box(w.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),w.box(w.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,r>>24,r>>16&255,r>>8&255,r&255])))},w.esds=function(C){var P=C.config.length;return new Uint8Array([0,0,0,0,3,23+P,0,1,0,4,15+P,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([P]).concat(C.config).concat([6,1,2]))},w.mp4a=function(C){var P=C.samplerate;return w.box(w.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,C.channelCount,0,16,0,0,0,0,P>>8&255,P&255,0,0]),w.box(w.types.esds,w.esds(C)))},w.mp3=function(C){var P=C.samplerate;return w.box(w.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,C.channelCount,0,16,0,0,0,0,P>>8&255,P&255,0,0]))},w.stsd=function(C){return C.type==="audio"?!C.isAAC&&C.codec==="mp3"?w.box(w.types.stsd,w.STSD,w.mp3(C)):w.box(w.types.stsd,w.STSD,w.mp4a(C)):w.box(w.types.stsd,w.STSD,w.avc1(C))},w.tkhd=function(C){var P=C.id,_=C.duration*C.timescale,d=C.width,v=C.height,b=Math.floor(_/(K+1)),f=Math.floor(_%(K+1));return w.box(w.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,P>>24&255,P>>16&255,P>>8&255,P&255,0,0,0,0,b>>24,b>>16&255,b>>8&255,b&255,f>>24,f>>16&255,f>>8&255,f&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,d>>8&255,d&255,0,0,v>>8&255,v&255,0,0]))},w.traf=function(C,P){var _=w.sdtp(C),d=C.id,v=Math.floor(P/(K+1)),b=Math.floor(P%(K+1));return w.box(w.types.traf,w.box(w.types.tfhd,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255])),w.box(w.types.tfdt,new Uint8Array([1,0,0,0,v>>24,v>>16&255,v>>8&255,v&255,b>>24,b>>16&255,b>>8&255,b&255])),w.trun(C,_.length+16+20+8+16+8+8),_)},w.trak=function(C){return C.duration=C.duration||4294967295,w.box(w.types.trak,w.tkhd(C),w.mdia(C))},w.trex=function(C){var P=C.id;return w.box(w.types.trex,new Uint8Array([0,0,0,0,P>>24,P>>16&255,P>>8&255,P&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},w.trun=function(C,P){var _=C.samples||[],d=_.length,v=12+16*d,b=new Uint8Array(v),f,n,p,o,r,s;for(P+=8+v,b.set([0,0,15,1,d>>>24&255,d>>>16&255,d>>>8&255,d&255,P>>>24&255,P>>>16&255,P>>>8&255,P&255],0),f=0;f>>24&255,p>>>16&255,p>>>8&255,p&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*f);return w.box(w.types.trun,b)},w.initSegment=function(C){w.types||w.init();var P=w.moov(C),_=new Uint8Array(w.FTYP.byteLength+P.byteLength);return _.set(w.FTYP),_.set(P,w.FTYP.byteLength),_},w}();O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0,z.default=O},"./src/remux/mp4-remuxer.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return s}),N.d(z,"normalizePts",function(){return l});var K=N("./src/polyfills/number.ts"),O=N("./src/remux/aac-helper.ts"),w=N("./src/remux/mp4-generator.ts"),B=N("./src/events.ts"),C=N("./src/errors.ts"),P=N("./src/utils/logger.ts"),_=N("./src/types/loader.ts"),d=N("./src/utils/timescale-conversion.ts");function v(){return v=Object.assign||function(L){for(var R=1;R0?D:T.pts},m[0].pts);return c&&P.logger.debug("PTS rollover detected"),u},R.remux=function(m,c,u,D,T,A,j,U){var H,V,I,W,Q,ie,ae=T,xe=T,Ze=m.pid>-1,Me=c.pid>-1,Be=c.samples.length,qe=m.samples.length>0,Ve=Be>1,De=(!Ze||qe)&&(!Me||Ve)||this.ISGenerated||j;if(De){this.ISGenerated||(I=this.generateIS(m,c,T));var pe=this.isVideoContiguous,se=-1;if(Ve&&(se=x(c.samples),!pe&&this.config.forceKeyFrameOnDiscontinuity))if(ie=!0,se>0){P.logger.warn("[mp4-remuxer]: Dropped "+se+" out of "+Be+" video samples due to a missing keyframe");var we=this.getVideoStartPts(c.samples);c.samples=c.samples.slice(se),c.dropped+=se,xe+=(c.samples[0].pts-we)/(c.timescale||9e4)}else se===-1&&(P.logger.warn("[mp4-remuxer]: No keyframe found out of "+Be+" video samples"),ie=!1);if(this.ISGenerated){if(qe&&Ve){var ve=this.getVideoStartPts(c.samples),$e=l(m.samples[0].pts,ve)-ve,me=$e/c.inputTimeScale;ae+=Math.max(0,me),xe+=Math.max(0,-me)}if(qe){if(m.samplerate||(P.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),I=this.generateIS(m,c,T)),V=this.remuxAudio(m,ae,this.isAudioContiguous,A,Me||Ve||U===_.PlaylistLevelType.AUDIO?xe:void 0),Ve){var X=V?V.endPTS-V.startPTS:0;c.inputTimeScale||(P.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),I=this.generateIS(m,c,T)),H=this.remuxVideo(c,xe,pe,X)}}else Ve&&(H=this.remuxVideo(c,xe,pe,0));H&&(H.firstKeyFrame=se,H.independent=se!==-1)}}return this.ISGenerated&&(u.samples.length&&(Q=this.remuxID3(u,T)),D.samples.length&&(W=this.remuxText(D,T))),{audio:V,video:H,initSegment:I,independent:ie,text:W,id3:Q}},R.generateIS=function(m,c,u){var D=m.samples,T=c.samples,A=this.typeSupported,j={},U=!Object(K.isFiniteNumber)(this._initPTS),H="audio/mp4",V,I,W;if(U&&(V=I=Infinity),m.config&&D.length&&(m.timescale=m.samplerate,m.isAAC||(A.mpeg?(H="audio/mpeg",m.codec=""):A.mp3&&(m.codec="mp3")),j.audio={id:"audio",container:H,codec:m.codec,initSegment:!m.isAAC&&A.mpeg?new Uint8Array(0):w.default.initSegment([m]),metadata:{channelCount:m.channelCount}},U&&(W=m.inputTimeScale,V=I=D[0].pts-Math.round(W*u))),c.sps&&c.pps&&T.length&&(c.timescale=c.inputTimeScale,j.video={id:"main",container:"video/mp4",codec:c.codec,initSegment:w.default.initSegment([c]),metadata:{width:c.width,height:c.height}},U)){W=c.inputTimeScale;var Q=this.getVideoStartPts(T),ie=Math.round(W*u);I=Math.min(I,l(T[0].dts,Q)-ie),V=Math.min(V,Q-ie)}if(Object.keys(j).length)return this.ISGenerated=!0,U&&(this._initPTS=V,this._initDTS=I),{tracks:j,initPTS:V,timescale:W}},R.remuxVideo=function(m,c,u,D){var T=m.inputTimeScale,A=m.samples,j=[],U=A.length,H=this._initPTS,V=this.nextAvcDts,I=8,W,Q,ie,ae=Number.POSITIVE_INFINITY,xe=Number.NEGATIVE_INFINITY,Ze=0,Me=!1;if(!u||V===null){var Be=c*T,qe=A[0].pts-l(A[0].dts,A[0].pts);V=Be-qe}for(var Ve=0;VeDe.pts){var pe=9e4*.2;Ze=Math.max(Math.min(Ze,De.pts-De.dts),-1*pe)}De.dts0?Ve-1:Ve].dts&&(Me=!0)}Me&&A.sort(function(Ht,bt){var xt=Ht.dts-bt.dts,ct=Ht.pts-bt.pts;return xt||ct}),Q=A[0].dts,ie=A[A.length-1].dts;var se=Math.round((ie-Q)/(U-1));if(Ze<0){if(Zese,G=me<-1;if(X||G){X?P.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(me,!0)+" ms ("+me+"dts) hole between fragments detected, filling it"):P.logger.warn("AVC: "+Object(d.toMsFromMpegTsClock)(-me,!0)+" ms ("+me+"dts) overlapping between fragments detected"),Q=V;var Y=A[0].pts-me;A[0].dts=Q,A[0].pts=Y,P.logger.log("Video: First PTS/DTS adjusted: "+Object(d.toMsFromMpegTsClock)(Y,!0)+"/"+Object(d.toMsFromMpegTsClock)(Q,!0)+", delta: "+Object(d.toMsFromMpegTsClock)(me,!0)+" ms")}}r&&(Q=Math.max(0,Q));for(var ue=0,be=0,We=0;We0?He-1:He].dts;if(he.stretchShortVideoTrack&&this.nextAudioPts!==null){var Le=Math.floor(he.maxBufferHole*T),at=(D?ae+D*T:this.nextAudioPts)-pt.pts;at>Le?(W=at-Ce,W<0&&(W=Ce),P.logger.log("[mp4-remuxer]: It is approximately "+at/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=Ce}else W=Ce}var et=Math.round(pt.pts-pt.dts);j.push(new E(pt.key,W,st,et))}if(j.length&&p&&p<70){var Rt=j[0].flags;Rt.dependsOn=2,Rt.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=V=ie+W,this.isVideoContiguous=!0;var qt=w.default.moof(m.sequenceNumber++,Q,v({},m,{samples:j})),pn="video",an={data1:qt,data2:fn,startPTS:ae/T,endPTS:(xe+W)/T,startDTS:Q/T,endDTS:V/T,type:pn,hasAudio:!1,hasVideo:!0,nb:j.length,dropped:m.dropped};return m.samples=[],m.dropped=0,console.assert(fn.length,"MDAT length must not be zero"),an},R.remuxAudio=function(m,c,u,D,T){var A=m.inputTimeScale,j=m.samplerate?m.samplerate:A,U=A/j,H=m.isAAC?f:n,V=H*U,I=this._initPTS,W=!m.isAAC&&this.typeSupported.mpeg,Q=[],ie=m.samples,ae=W?0:8,xe=this.nextAudioPts||-1,Ze=c*A;if(this.isAudioContiguous=u=u||ie.length&&xe>0&&(D&&Math.abs(Ze-xe)<9e3||Math.abs(l(ie[0].pts-I,Ze)-xe)<20*V),ie.forEach(function(Oe){Oe.pts=l(Oe.pts-I,Ze)}),!u||xe<0){if(ie=ie.filter(function(Oe){return Oe.pts>=0}),!ie.length)return;T===0?xe=0:D?xe=Math.max(0,Ze):xe=ie[0].pts}if(m.isAAC)for(var Me=T!==void 0,Be=this.config.maxAudioFramesDrift,qe=0,Ve=xe;qe=Be*V&&we0){be+=ae;try{ue=new Uint8Array(be)}catch(Oe){this.observer.emit(B.Events.ERROR,B.Events.ERROR,{type:C.ErrorTypes.MUX_ERROR,details:C.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:be,reason:"fail allocating audio mdat "+be});return}if(!W){var fn=new DataView(ue.buffer);fn.setUint32(0,be),ue.set(w.default.types.mdat,4)}}else return;ue.set(It,ae);var nt=It.byteLength;ae+=nt,Q.push(new E(!0,H,nt,0)),Y=Nt}var He=Q.length;if(!He)return;var pt=Q[Q.length-1];this.nextAudioPts=xe=Y+U*pt.duration;var Mt=W?new Uint8Array(0):w.default.moof(m.sequenceNumber++,G/U,v({},m,{samples:Q}));m.samples=[];var st=G/A,Et=xe/A,Fe="audio",Se={data1:Mt,data2:ue,startPTS:st,endPTS:Et,startDTS:st,endDTS:Et,type:Fe,hasAudio:!0,hasVideo:!1,nb:He};return this.isAudioContiguous=!0,console.assert(ue.length,"MDAT length must not be zero"),Se},R.remuxEmptyAudio=function(m,c,u,D){var T=m.inputTimeScale,A=m.samplerate?m.samplerate:T,j=T/A,U=this.nextAudioPts,H=(U!==null?U:D.startDTS*T)+this._initDTS,V=D.endDTS*T+this._initDTS,I=j*f,W=Math.ceil((V-H)/I),Q=O.default.getSilentFrame(m.manifestCodec||m.codec,m.channelCount);if(P.logger.warn("[mp4-remuxer]: remux empty Audio"),!Q){P.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ie=[],ae=0;ae4294967296;)L+=g;return L}function x(L){for(var R=0;R0?this.lastEndDTS=m:(B.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var c=!!L.audio,u=!!L.video,D="";c&&(D+="audio"),u&&(D+="video");var T={data1:E,startPTS:g,startDTS:g,endPTS:m,endDTS:m,type:D,hasAudio:c,hasVideo:u,nb:1,dropped:0};return x.audio=T.type==="audio"?T:void 0,x.video=T.type!=="audio"?T:void 0,x.text=o,x.id3=p,x.initSegment=y,x},d}(),P=function(v,b,f){return Object(O.getStartDTS)(v,b)-f};function _(d,v){var b=d==null?void 0:d.codec;return b&&b.length>4?b:b==="hvc1"?"hvc1.1.c.L120.90":b==="av01"?"av01.0.04M.08":b==="avc1"||v===w.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}z.default=C},"./src/task-loop.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"default",function(){return K});var K=function(){function O(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var w=O.prototype;return w.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},w.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},w.onHandlerDestroyed=function(){},w.hasInterval=function(){return!!this._tickInterval},w.hasNextTick=function(){return!!this._tickTimer},w.setInterval=function(C){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,C),!0)},w.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},w.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},w.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},w.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},w.doTick=function(){},O}()},"./src/types/cmcd.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"CMCDVersion",function(){return K}),N.d(z,"CMCDObjectType",function(){return O}),N.d(z,"CMCDStreamingFormat",function(){return w}),N.d(z,"CMCDStreamType",function(){return B});var K=1,O;(function(C){C.MANIFEST="m",C.AUDIO="a",C.VIDEO="v",C.MUXED="av",C.INIT="i",C.CAPTION="c",C.TIMED_TEXT="tt",C.KEY="k",C.OTHER="o"})(O||(O={}));var w;(function(C){C.DASH="d",C.HLS="h",C.SMOOTH="s",C.OTHER="o"})(w||(w={}));var B;(function(C){C.VOD="v",C.LIVE="l"})(B||(B={}))},"./src/types/level.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"HlsSkip",function(){return w}),N.d(z,"getSkipValue",function(){return B}),N.d(z,"HlsUrlParameters",function(){return C}),N.d(z,"Level",function(){return P});function K(_,d){for(var v=0;vNumber.MAX_SAFE_INTEGER?Infinity:d},C.hexadecimalInteger=function(_){if(this[_]){var d=(this[_]||"0x").slice(2);d=(d.length&1?"0":"")+d;for(var v=new Uint8Array(d.length/2),b=0;bNumber.MAX_SAFE_INTEGER?Infinity:d},C.decimalFloatingPoint=function(_){return parseFloat(this[_])},C.optionalFloat=function(_,d){var v=this[_];return v?parseFloat(v):d},C.enumeratedString=function(_){return this[_]},C.bool=function(_){return this[_]==="YES"},C.decimalResolution=function(_){var d=K.exec(this[_]);return d===null?void 0:{width:parseInt(d[1],10),height:parseInt(d[2],10)}},B.parseAttrList=function(_){var d,v={},b='"';for(O.lastIndex=0;(d=O.exec(_))!==null;){var f=d[2];f.indexOf(b)===0&&f.lastIndexOf(b)===f.length-1&&(f=f.slice(1,-1)),v[d[1]]=f}return v},B}()},"./src/utils/binary-search.ts":function(ne,z,N){"use strict";N.r(z);var K={search:function(w,B){for(var C=0,P=w.length-1,_=null,d=null;C<=P;){_=(C+P)/2|0,d=w[_];var v=B(d);if(v>0)C=_+1;else if(v<0)P=_-1;else return d}return null}};z.default=K},"./src/utils/buffer-helper.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"BufferHelper",function(){return w});var K=N("./src/utils/logger.ts"),O={length:0,start:function(){return 0},end:function(){return 0}},w=function(){function B(){}return B.isBuffered=function(P,_){try{if(P){for(var d=B.getBuffered(P),v=0;v=d.start(v)&&_<=d.end(v))return!0}}catch(b){}return!1},B.bufferInfo=function(P,_,d){try{if(P){var v=B.getBuffered(P),b=[],f;for(f=0;fn&&(v[f-1].end=P[b].end):v.push(P[b])}else v.push(P[b])}else v=P;for(var p=0,o,r=_,s=_,l=0;l=x&&_=u&&K.logger.log(this.time+" ["+u+"] "+D)},g}(),p=function(m){for(var c=[],u=0;uC&&(this.logger.log(f.DEBUG,"Too large cursor position "+this.pos),this.pos=C)},m.moveCursor=function(u){var D=this.pos+u;if(u>1)for(var T=this.pos+1;T=144&&this.backSpace();var D=w(u);if(this.pos>=C){this.logger.log(f.ERROR,"Cannot insert "+u.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},m.clearFromPos=function(u){var D;for(D=u;D0&&(u?T="["+D.join(" | ")+"]":T=D.join(` `)),T},m.getTextAndFormat=function(){return this.rows},g}(),x=function(){function g(c,u,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=c,this.outputFilter=u,this.mode=null,this.verbose=0,this.displayedMemory=new l(D),this.nonDisplayedMemory=new l(D),this.lastOutputScreen=new l(D),this.currRollUpRow=this.displayedMemory.rows[B-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var m=g.prototype;return m.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[B-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},m.getHandler=function(){return this.outputFilter},m.setHandler=function(u){this.outputFilter=u},m.setPAC=function(u){this.writeScreen.setPAC(u)},m.setBkgData=function(u){this.writeScreen.setBkgData(u)},m.setMode=function(u){if(u===this.mode)return;this.mode=u,this.logger.log(f.INFO,"MODE="+u),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=u},m.insertChars=function(u){for(var D=0;D=46,D.italics)D.foreground="white";else{var T=Math.floor(u/2)-16,A=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=A[T]}this.logger.log(f.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},m.outputDataUpdate=function(u){u===void 0&&(u=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),u&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},m.cueSplitAtTime=function(u){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,u,this.displayedMemory),this.cueStartTime=u))},g}(),E=function(){function g(c,u,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new n;this.channels=[null,new x(c,u,T),new x(c+1,D,T)],this.cmdHistory=R(),this.logger=T}var m=g.prototype;return m.getHandler=function(u){return this.channels[u].getHandler()},m.setHandler=function(u,D){this.channels[u].setHandler(D)},m.addData=function(u,D){var T,A,j,U=!1;this.logger.time=u;for(var H=0;H ("+p([A,j])+")"),T=this.parseCmd(A,j),T||(T=this.parseMidrow(A,j)),T||(T=this.parsePAC(A,j)),T||(T=this.parseBackgroundAttributes(A,j)),!T&&(U=this.parseChars(A,j),U)){var V=this.currentChannel;if(V&&V>0){var I=this.channels[V];I.insertChars(U)}else this.logger.log(f.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!U&&this.logger.log(f.WARNING,"Couldn't parse cleaned data "+p([A,j])+" orig: "+p([D[H],D[H+1]]))}},m.parseCmd=function(u,D){var T=this.cmdHistory,A=(u===20||u===28||u===21||u===29)&&D>=32&&D<=47,j=(u===23||u===31)&&D>=33&&D<=35;if(!(A||j))return!1;if(L(u,D,T))return y(null,null,T),this.logger.log(f.DEBUG,"Repeated command ("+p([u,D])+") is dropped"),!0;var U=u===20||u===21||u===23?1:2,H=this.channels[U];return u===20||u===21||u===28||u===29?D===32?H.ccRCL():D===33?H.ccBS():D===34?H.ccAOF():D===35?H.ccAON():D===36?H.ccDER():D===37?H.ccRU(2):D===38?H.ccRU(3):D===39?H.ccRU(4):D===40?H.ccFON():D===41?H.ccRDC():D===42?H.ccTR():D===43?H.ccRTD():D===44?H.ccEDM():D===45?H.ccCR():D===46?H.ccENM():D===47&&H.ccEOC():H.ccTO(D-32),y(u,D,T),this.currentChannel=U,!0},m.parseMidrow=function(u,D){var T=0;if((u===17||u===25)&&D>=32&&D<=47){if(u===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(f.ERROR,"Mismatch channel in midrow parsing"),!1;var A=this.channels[T];return A?(A.ccMIDROW(D),this.logger.log(f.DEBUG,"MIDROW ("+p([u,D])+")"),!0):!1}return!1},m.parsePAC=function(u,D){var T,A=this.cmdHistory,j=(u>=17&&u<=23||u>=25&&u<=31)&&D>=64&&D<=127,U=(u===16||u===24)&&D>=64&&D<=95;if(!(j||U))return!1;if(L(u,D,A))return y(null,null,A),!0;var H=u<=23?1:2;D>=64&&D<=95?T=H===1?P[u]:d[u]:T=H===1?_[u]:v[u];var V=this.channels[H];return V?(V.setPAC(this.interpretPAC(T,D)),y(u,D,A),this.currentChannel=H,!0):!1},m.interpretPAC=function(u,D){var T,A={color:null,italics:!1,indent:null,underline:!1,row:u};return D>95?T=D-96:T=D-64,A.underline=(T&1)===1,T<=13?A.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(A.italics=!0,A.color="white"):A.indent=Math.floor((T-16)/2)*4,A},m.parseChars=function(u,D){var T,A=null,j=null;if(u>=25?(T=2,j=u-8):(T=1,j=u),j>=17&&j<=19){var U;j===17?U=D+80:j===18?U=D+112:U=D+144,this.logger.log(f.INFO,"Special char '"+w(U)+"' in channel "+T),A=[U]}else u>=32&&u<=127&&(A=D===0?[u]:[u,D]);if(A){var H=p(A);this.logger.log(f.DEBUG,"Char codes = "+H.join(",")),y(u,D,this.cmdHistory)}return A},m.parseBackgroundAttributes=function(u,D){var T=(u===16||u===24)&&D>=32&&D<=47,A=(u===23||u===31)&&D>=45&&D<=47;if(!(T||A))return!1;var j,U={};u===16||u===24?(j=Math.floor((D-32)/2),U.background=b[j],D%2===1&&(U.background=U.background+"_semi")):D===45?U.background="transparent":(U.foreground="black",D===47&&(U.underline=!0));var H=u<=23?1:2,V=this.channels[H];return V.setBkgData(U),y(u,D,this.cmdHistory),!0},m.reset=function(){for(var u=0;u=16?r--:r++;var y=Object(K.fixLineBreaks)(s.trim()),L=Object(O.generateCueId)(d,v,y);(!_||!_.cues||!_.cues.getCueById(L))&&(p=new l(d,v,y),p.id=L,p.line=x+1,p.align="left",p.position=10+Math.min(80,Math.floor(r*8/32)*10),f.push(p))}return _&&f.length&&(f.sort(function(R,g){return R.line==="auto"||g.line==="auto"?0:R.line>8&&g.line>8?g.line-R.line:R.line-g.line}),f.forEach(function(R){return Object(w.addCueToTrack)(_,R)})),f}};z.default=C},"./src/utils/discontinuities.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"findFirstFragWithCC",function(){return B}),N.d(z,"shouldAlignOnDiscontinuities",function(){return C}),N.d(z,"findDiscontinuousReferenceFrag",function(){return P}),N.d(z,"adjustSlidingStart",function(){return d}),N.d(z,"alignStream",function(){return v}),N.d(z,"alignPDT",function(){return f}),N.d(z,"alignFragmentByPDTDelta",function(){return n}),N.d(z,"alignMediaPlaylistByPDT",function(){return p});var K=N("./src/polyfills/number.ts"),O=N("./src/utils/logger.ts"),w=N("./src/controller/level-helper.ts");function B(o,r){for(var s=null,l=0,x=o.length;ls.startCC||o&&o.cc=this.minWeight_},B.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},B.destroy=function(){},w}();z.default=O},"./src/utils/ewma.ts":function(ne,z,N){"use strict";N.r(z);var K=function(){function O(B,C,P){C===void 0&&(C=0),P===void 0&&(P=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=B,this.alpha_=B?Math.exp(Math.log(.5)/B):0,this.estimate_=C,this.totalWeight_=P}var w=O.prototype;return w.sample=function(C,P){var _=Math.pow(this.alpha_,C);this.estimate_=P*(1-_)+_*this.estimate_,this.totalWeight_+=C},w.getTotalWeight=function(){return this.totalWeight_},w.getEstimate=function(){if(this.alpha_){var C=1-Math.pow(this.alpha_,this.totalWeight_);if(C)return this.estimate_/C}return this.estimate_},O}();z.default=K},"./src/utils/fetch-loader.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"fetchSupported",function(){return n});var K=N("./src/polyfills/number.ts"),O=N("./src/loader/load-stats.ts"),w=N("./src/demux/chunk-cache.ts");function B(l,x){l.prototype=Object.create(x.prototype),l.prototype.constructor=l,v(l,x)}function C(l){var x=typeof Map=="function"?new Map:void 0;return C=function(y){if(y===null||!d(y))return y;if(typeof y!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(y))return x.get(y);x.set(y,L)}function L(){return P(y,arguments,b(this).constructor)}return L.prototype=Object.create(y.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),v(L,y)},C(l)}function P(l,x,E){return _()?P=Reflect.construct:P=function(L,R,g){var m=[null];m.push.apply(m,R);var c=Function.bind.apply(L,m),u=new c;return g&&v(u,g.prototype),u},P.apply(null,arguments)}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}function d(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function v(l,x){return v=Object.setPrototypeOf||function(y,L){return y.__proto__=L,y},v(l,x)}function b(l){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},b(l)}function f(){return f=Object.assign||function(l){for(var x=1;x=g&&m(L,R,c.flush(),y)):m(L,R,j,y),T()}).catch(function(){return Promise.reject()})};return D()},l}();function o(l,x){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(f({},l.headers))};return l.rangeEnd&&E.headers.set("Range","bytes="+l.rangeStart+"-"+String(l.rangeEnd-1)),E}function r(l,x){return new self.Request(l.url,x)}var s=function(l){B(x,l);function x(E,y,L){var R;return R=l.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=y,R.details=L,R}return x}(C(Error));z.default=p},"./src/utils/imsc1-ttml-parser.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"IMSC1_CODEC",function(){return d}),N.d(z,"parseIMSC1",function(){return n});var K=N("./src/utils/mp4-tools.ts"),O=N("./src/utils/vttparser.ts"),w=N("./src/utils/vttcue.ts"),B=N("./src/demux/id3.ts"),C=N("./src/utils/timescale-conversion.ts"),P=N("./src/utils/webvtt-parser.ts");function _(){return _=Object.assign||function(g){for(var m=1;m"):K}function C(d){for(var v=arguments.length,b=new Array(v>1?v-1:0),f=1;f>24,x[E+1]=y>>16&255,x[E+2]=y>>8&255,x[E+3]=y&255}function v(x,E){var y=[];if(!E.length)return y;var L,R,g;"data"in x?(L=x.data,R=x.start,g=x.end):(L=x,R=0,g=L.byteLength);for(var m=R;m1?m+c:g;if(u===E[0])if(E.length===1)y.push({data:L,start:m+8,end:D});else{var T=v({data:L,start:m+8,end:D},E.slice(1));T.length&&B.apply(y,T)}m=D}return y}function b(x){var E=v(x,["moov"]),y=E[0],L=y?y.end:null,R=v(x,["sidx"]);if(!R||!R[0])return null;var g=[],m=R[0],c=m.data[0],u=c===0?8:16,D=_(m,u);u+=4;var T=0,A=0;c===0?u+=8:u+=16,u+=2;var j=m.end+A,U=P(m,u);u+=2;for(var H=0;H>>31;if(Q===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ie=_(m,V);V+=4,g.push({referenceSize:W,subsegmentDuration:ie,info:{duration:ie/D,start:j,end:j+W-1}}),j+=W,V+=4,u=V}return{earliestPresentationTime:T,timescale:D,version:c,referencesCount:U,references:g,moovEndOffset:L}}function f(x){for(var E=[],y=v(x,["moov","trak"]),L=0;LC)&&(this.startTime=C),this.endTime=P,this.screen=_,this.timelineController.createCaptionsTrack(this.trackName)},w.reset=function(){this.cueRanges=[]},O}()},"./src/utils/texttrack-utils.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"sendAddTrackEvent",function(){return O}),N.d(z,"addCueToTrack",function(){return w}),N.d(z,"clearCurrentCues",function(){return B}),N.d(z,"removeCuesInRange",function(){return C}),N.d(z,"getCuesInRange",function(){return _});var K=N("./src/utils/logger.ts");function O(d,v){var b;try{b=new Event("addtrack")}catch(f){b=document.createEvent("Event"),b.initEvent("addtrack",!1,!1)}b.track=d,v.dispatchEvent(b)}function w(d,v){var b=d.mode;if(b==="disabled"&&(d.mode="hidden"),d.cues&&!d.cues.getCueById(v.id))try{if(d.addCue(v),!d.cues.getCueById(v.id))throw new Error("addCue is failed for: "+v)}catch(n){K.logger.debug("[texttrack-utils]: "+n);var f=new self.TextTrackCue(v.startTime,v.endTime,v.text);f.id=v.id,d.addCue(f)}b==="disabled"&&(d.mode=b)}function B(d){var v=d.mode;if(v==="disabled"&&(d.mode="hidden"),d.cues)for(var b=d.cues.length;b--;)d.removeCue(d.cues[b]);v==="disabled"&&(d.mode=v)}function C(d,v,b){var f=d.mode;if(f==="disabled"&&(d.mode="hidden"),d.cues&&d.cues.length>0)for(var n=_(d.cues,v,b),p=0;pd[b].endTime)return-1;for(var f=0,n=b;f<=n;){var p=Math.floor((n+f)/2);if(vd[p].startTime&&f-1)for(var p=n,o=d.length;p=v&&r.endTime<=b)f.push(r);else if(r.startTime>b)return f}return f}},"./src/utils/time-ranges.ts":function(ne,z,N){"use strict";N.r(z);var K={toString:function(w){for(var B="",C=w.length,P=0;P1?v-1:0),f=1;f100)throw new Error("Position must be between 0 and 100.");g=T,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",P({},n,{get:function(){return m},set:function(T){var A=C(T);if(!A)throw new SyntaxError("An invalid or illegal string was specified.");m=A,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",P({},n,{get:function(){return c},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");c=T,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",P({},n,{get:function(){return u},set:function(T){var A=C(T);if(!A)throw new SyntaxError("An invalid or illegal string was specified.");u=A,this.hasBeenReset=!0}})),f.displayState=void 0}return _.prototype.getCueAsHTML=function(){var d=self.WebVTT;return d.convertCueToDOMTree(self,this.text)},_}()},"./src/utils/vttparser.ts":function(ne,z,N){"use strict";N.r(z),N.d(z,"parseTimeStamp",function(){return w}),N.d(z,"fixLineBreaks",function(){return v}),N.d(z,"VTTParser",function(){return b});var K=N("./src/utils/vttcue.ts"),O=function(){function f(){}var n=f.prototype;return n.decode=function(o,r){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))},f}();function w(f){function n(o,r,s,l){return(o|0)*3600+(r|0)*60+(s|0)+parseFloat(l||0)}var p=f.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return p?parseFloat(p[2])>59?n(p[2],p[3],0,p[4]):n(p[1],p[2],p[3],p[4]):null}var B=function(){function f(){this.values=Object.create(null)}var n=f.prototype;return n.set=function(o,r){!this.get(o)&&r!==""&&(this.values[o]=r)},n.get=function(o,r,s){return s?this.has(o)?this.values[o]:r[s]:this.has(o)?this.values[o]:r},n.has=function(o){return o in this.values},n.alt=function(o,r,s){for(var l=0;l=0&&s<=100)return this.set(o,s),!0}return!1},f}();function C(f,n,p,o){var r=o?f.split(o):[f];for(var s in r){if(typeof r[s]!="string")continue;var l=r[s].split(p);if(l.length!==2)continue;var x=l[0],E=l[1];n(x,E)}}var P=new K.default(0,0,""),_=P.align==="middle"?"middle":"center";function d(f,n,p){var o=f;function r(){var x=w(f);if(x===null)throw new Error("Malformed timestamp: "+o);return f=f.replace(/^[^\sa-zA-Z-]+/,""),x}function s(x,E){var y=new B;C(x,function(g,m){var c;switch(g){case"region":for(var u=p.length-1;u>=0;u--)if(p[u].id===m){y.set(g,p[u].region);break}break;case"vertical":y.alt(g,m,["rl","lr"]);break;case"line":c=m.split(","),y.integer(g,c[0]),y.percent(g,c[0])&&y.set("snapToLines",!1),y.alt(g,c[0],["auto"]),c.length===2&&y.alt("lineAlign",c[1],["start",_,"end"]);break;case"position":c=m.split(","),y.percent(g,c[0]),c.length===2&&y.alt("positionAlign",c[1],["start",_,"end","line-left","line-right","auto"]);break;case"size":y.percent(g,m);break;case"align":y.alt(g,m,["start",_,"end","left","right"]);break}},/:/,/\s/),E.region=y.get("region",null),E.vertical=y.get("vertical","");var L=y.get("line","auto");L==="auto"&&P.line===-1&&(L=-1),E.line=L,E.lineAlign=y.get("lineAlign","start"),E.snapToLines=y.get("snapToLines",!0),E.size=y.get("size",100),E.align=y.get("align",_);var R=y.get("position","auto");R==="auto"&&P.position===50&&(R=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=R}function l(){f=f.replace(/^\s+/,"")}if(l(),n.startTime=r(),l(),f.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+o);f=f.substr(3),l(),n.endTime=r(),l(),s(f,n)}function v(f){return f.replace(//gi,` `)}var b=function(){function f(){this.state="INITIAL",this.buffer="",this.decoder=new O,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var n=f.prototype;return n.parse=function(o){var r=this;o&&(r.buffer+=r.decoder.decode(o,{stream:!0}));function s(){var R=r.buffer,g=0;for(R=v(R);g9?parseInt(o.substr(0,o.indexOf(":"))):0;if(!Object(K.isFiniteNumber)(r)||!Object(K.isFiniteNumber)(s)||!Object(K.isFiniteNumber)(l)||!Object(K.isFiniteNumber)(x))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+o);return r+=1e3*s,r+=60*1e3*l,r+=60*60*1e3*x,r},v=function(o){for(var r=5381,s=o.length;s;)r=r*33^o.charCodeAt(--s);return(r>>>0).toString()};function b(p,o,r){return v(p.toString())+v(o.toString())+v(r)}var f=function(o,r,s){var l=o[r],x=o[l.prevCC];if(!x||!x.new&&l.new){o.ccOffset=o.presentationOffset=l.start,l.new=!1;return}for(;(E=x)!==null&&E!==void 0&&E.new;){var E;o.ccOffset+=l.start-x.start,l.new=!1,l=x,x=o[l.prevCC]}o.presentationOffset=s};function n(p,o,r,s,l,x,E,y){var L=new O.VTTParser,R=Object(w.utf8ArrayToStr)(new Uint8Array(p)).trim().replace(P,` `).split(` `),g=[],m=Object(B.toMpegTsClockFromTimescale)(o,r),c="00:00.000",u=0,D=0,T,A=!0,j=!1;L.oncue=function(U){var H=s[l],V=s.ccOffset,I=(u-m)/9e4;if(H!=null&&H.new&&(D!==void 0?V=s.ccOffset=H.start:f(s,l,I)),I&&(V=I-s.presentationOffset),j){var W=U.endTime-U.startTime,Q=Object(C.normalizePts)((U.startTime+V-D)*9e4,x*9e4)/9e4;U.startTime=Q,U.endTime=Q+W}var ie=U.text.trim();U.text=decodeURIComponent(encodeURIComponent(ie)),U.id||(U.id=b(U.startTime,U.endTime,ie)),U.endTime>0&&g.push(U)},L.onparsingerror=function(U){T=U},L.onflush=function(){if(T){y(T);return}E(g)},R.forEach(function(U){if(A)if(_(U,"X-TIMESTAMP-MAP=")){A=!1,j=!0,U.substr(16).split(",").forEach(function(H){_(H,"LOCAL:")?c=H.substr(6):_(H,"MPEGTS:")&&(u=parseInt(H.substr(7)))});try{D=d(c)/1e3}catch(H){j=!1,T=H}return}else U===""&&(A=!1);L.parse(U+` -`)}),L.flush()}},"./src/utils/xhr-loader.ts":function(ne,z,N){"use strict";N.r(z);var K=N("./src/utils/logger.ts"),O=N("./src/loader/load-stats.ts"),w=/^age:\s*[\d.]+\s*$/m,B=function(){function C(_){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=_?_.xhrSetup:null,this.stats=new O.LoadStats,this.retryDelay=0}var P=C.prototype;return P.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},P.abortInternal=function(){var d=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),d&&(d.onreadystatechange=null,d.onprogress=null,d.readyState!==4&&(this.stats.aborted=!0,d.abort()))},P.abort=function(){var d;this.abortInternal(),(d=this.callbacks)!==null&&d!==void 0&&d.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},P.load=function(d,v,b){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=d,this.config=v,this.callbacks=b,this.retryDelay=v.retryDelay,this.loadInternal()},P.loadInternal=function(){var d=this.config,v=this.context;if(!d)return;var b=this.loader=new self.XMLHttpRequest,f=this.stats;f.loading.first=0,f.loaded=0;var n=this.xhrSetup;try{if(n)try{n(b,v.url)}catch(r){b.open("GET",v.url,!0),n(b,v.url)}b.readyState||b.open("GET",v.url,!0);var p=this.context.headers;if(p)for(var o in p)b.setRequestHeader(o,p[o])}catch(r){this.callbacks.onError({code:b.status,text:r.message},v,b);return}v.rangeEnd&&b.setRequestHeader("Range","bytes="+v.rangeStart+"-"+(v.rangeEnd-1)),b.onreadystatechange=this.readystatechange.bind(this),b.onprogress=this.loadprogress.bind(this),b.responseType=v.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),d.timeout),b.send()},P.readystatechange=function(){var d=this.context,v=this.loader,b=this.stats;if(!d||!v)return;var f=v.readyState,n=this.config;if(b.aborted)return;if(f>=2)if(self.clearTimeout(this.requestTimeout),b.loading.first===0&&(b.loading.first=Math.max(self.performance.now(),b.loading.start)),f===4){v.onreadystatechange=null,v.onprogress=null;var p=v.status;if(p>=200&&p<300){b.loading.end=Math.max(self.performance.now(),b.loading.first);var o,r;if(d.responseType==="arraybuffer"?(o=v.response,r=o.byteLength):(o=v.responseText,r=o.length),b.loaded=b.total=r,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(b,d,o,v),!this.callbacks)return;var l={url:v.responseURL,data:o};this.callbacks.onSuccess(l,b,d,v)}else b.retry>=n.maxRetry||p>=400&&p<499?(K.logger.error(p+" while loading "+d.url),this.callbacks.onError({code:p,text:v.statusText},d,v)):(K.logger.warn(p+" while loading "+d.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),b.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},P.loadtimeout=function(){K.logger.warn("timeout while loading "+this.context.url);var d=this.callbacks;d&&(this.abortInternal(),d.onTimeout(this.stats,this.context,this.loader))},P.loadprogress=function(d){var v=this.stats;v.loaded=d.loaded,d.lengthComputable&&(v.total=d.total)},P.getCacheAge=function(){var d=null;if(this.loader&&w.test(this.loader.getAllResponseHeaders())){var v=this.loader.getResponseHeader("age");d=v?parseFloat(v):null}return d},C}();z.default=B}}).default})},vHTk:function(Vt,Ee,k){Vt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return It});var ne=k("rePB"),z=k("VTBJ"),N=k("KQm4"),K=k("U8pU"),O=k("ODXe"),w=k("q1tI"),B=k("TSYQ"),C=k.n(B),P=k("Gytx"),_=k.n(P),d=k("Kwbf"),v=k("t23M"),b=k("qx4F"),f=k("6eGT"),n=k("IBYe"),p=k("Ff2n"),o=k("c+Xe"),r=k("fyJ8"),s=k("biw7");function l(nt,He,pt,kt,st){var Et=pt[nt]||{},Fe=pt[He]||{},Se,Oe;Et.fixed==="left"?Se=kt.left[nt]:Fe.fixed==="right"&&(Oe=kt.right[He]);var ce=!1,he=!1,Ce=!1,Le=!1,at=pt[He+1],et=pt[nt-1];if(st==="rtl"){if(Se!==void 0){var Rt=et&&et.fixed==="left";Le=!Rt}else if(Oe!==void 0){var en=at&&at.fixed==="right";Ce=!en}}else if(Se!==void 0){var pn=at&&at.fixed==="left";ce=!pn}else if(Oe!==void 0){var on=et&&et.fixed==="right";he=!on}return{fixLeft:Se,fixRight:Oe,lastFixLeft:ce,firstFixRight:he,lastFixRight:Ce,firstFixLeft:Le,isSticky:kt.isSticky}}var x=k("sR1s");function E(nt){var He=nt.cells,pt=nt.stickyOffsets,kt=nt.flattenColumns,st=nt.rowComponent,Et=nt.cellComponent,Fe=nt.onHeaderRow,Se=nt.index,Oe=w.useContext(s.a),ce=Oe.prefixCls,he=Oe.direction,Ce;Fe&&(Ce=Fe(He.map(function(at){return at.column}),Se));var Le=Object(x.a)(He.map(function(at){return at.column}));return w.createElement(st,Object.assign({},Ce),He.map(function(at,et){var Rt=at.column,en=l(at.colStart,at.colEnd,kt,pt,he),pn;return Rt&&Rt.onHeaderCell&&(pn=at.column.onHeaderCell(Rt)),w.createElement(r.a,Object.assign({},at,{ellipsis:Rt.ellipsis,align:Rt.align,component:Et,prefixCls:ce,key:Le[et]},en,{additionalProps:pn,rowType:"header"}))}))}E.displayName="HeaderRow";var y=E;function L(nt){var He=[];function pt(Fe,Se){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;He[Oe]=He[Oe]||[];var ce=Se,he=Fe.filter(Boolean).map(function(Ce){var Le={key:Ce.key,className:Ce.className||"",children:Ce.title,column:Ce,colStart:ce},at=1,et=Ce.children;return et&&et.length>0&&(at=pt(et,ce,Oe+1).reduce(function(Rt,en){return Rt+en},0),Le.hasSubColumns=!0),"colSpan"in Ce&&(at=Ce.colSpan),"rowSpan"in Ce&&(Le.rowSpan=Ce.rowSpan),Le.colSpan=at,Le.colEnd=Le.colStart+at-1,He[Oe].push(Le),ce+=at,at});return he}pt(nt,0);for(var kt=He.length,st=function(Se){He[Se].forEach(function(Oe){!("rowSpan"in Oe)&&!Oe.hasSubColumns&&(Oe.rowSpan=kt-Se)})},Et=0;Et=0;Se-=1){var Oe=He[Se],ce=pt&&pt[Se],he=ce&&ce[m.a];(Oe||he||Fe)&&(st.unshift(w.createElement("col",Object.assign({key:Se,style:{width:Oe,minWidth:Oe}},he))),Fe=!0)}return w.createElement("colgroup",null,st)}var u=c;function D(nt,He){return Object(w.useMemo)(function(){for(var pt=[],kt=0;kt1?$-1:0),q=1;q<$;q++)te[q-1]=arguments[q];(M=Br).onClick.apply(M,[S].concat(te))}},la;typeof tn=="string"?la=tn:typeof tn=="function"&&(la=tn(kt,st,Ce));var jt=Object(x.a)(ge),On=w.createElement(Le,Object.assign({},Br,{"data-row-key":Et,className:C()(He,"".concat(en,"-row"),"".concat(en,"-row-level-").concat(Ce),la,Br&&Br.className),style:Object(z.a)(Object(z.a)({},pt),Br?Br.style:null),onClick:Jr}),ge.map(function(J,S){var M=J.render,$=J.dataIndex,te=J.className,q=jt[S],Xe=pn[S],zt;S===(sn||0)&&ea&&(zt=w.createElement(w.Fragment,null,w.createElement("span",{style:{paddingLeft:"".concat(it*Ce,"px")},className:"".concat(en,"-row-indent indent-level-").concat(Ce)}),vt({prefixCls:en,expanded:Sn,expandable:Ir,record:kt,onExpand:dt})));var gn;return J.onCell&&(gn=J.onCell(kt,st)),w.createElement(r.a,Object.assign({className:te,ellipsis:J.ellipsis,align:J.align,component:at,prefixCls:en,key:q,record:kt,index:st,dataIndex:$,render:M,shouldCellUpdate:J.shouldCellUpdate},Xe,{appendNode:zt,additionalProps:gn}))})),mr;if(Hr&&(fr||Sn)){var Dr=Ot(kt,st,Ce+1,Sn),Sr=nn&&nn(kt,st,Ce);mr=w.createElement(V,{expanded:Sn,className:C()("".concat(en,"-expanded-row"),"".concat(en,"-expanded-row-level-").concat(Ce+1),Sr),prefixCls:en,fixHeader:Kt,fixColumn:bt,horizonScroll:xt,component:Le,componentWidth:ct,cellComponent:at,colSpan:ge.length},Dr)}var Cr;return Ir&&Sn&&(Cr=(kt[et]||[]).map(function(J,S){var M=Fe(J,S);return w.createElement(I,Object.assign({},nt,{key:M,rowKey:M,record:J,recordKey:M,index:S,indent:Ce+1}))})),w.createElement(w.Fragment,null,On,mr,Cr)}I.displayName="BodyRow";var W=I,Q=w.createContext(null),ie=Q;function ae(nt){var He=nt.columnKey,pt=nt.onColumnResize,kt=w.useRef();return w.useEffect(function(){kt.current&&pt(He,kt.current.offsetWidth)},[]),w.createElement(v.a,{onResize:function(Et){var Fe=Et.offsetWidth;pt(He,Fe)}},w.createElement("td",{ref:kt,style:{padding:0,border:0,height:0}},w.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function xe(nt){var He=nt.data,pt=nt.getRowKey,kt=nt.measureColumnWidth,st=nt.expandedKeys,Et=nt.onRow,Fe=nt.rowExpandable,Se=nt.emptyNode,Oe=nt.childrenColumnName,ce=w.useContext(ie),he=ce.onColumnResize,Ce=w.useContext(s.a),Le=Ce.prefixCls,at=Ce.getComponent,et=w.useContext(U),Rt=et.fixHeader,en=et.horizonScroll,pn=et.flattenColumns,on=et.componentWidth;return w.useMemo(function(){var Kt=at(["body","wrapper"],"tbody"),bt=at(["body","row"],"tr"),xt=at(["body","cell"],"td"),ct;He.length?ct=He.map(function(Ne,Ct){var dt=pt(Ne,Ct);return w.createElement(W,{key:dt,rowKey:dt,record:Ne,recordKey:dt,index:Ct,rowComponent:bt,cellComponent:xt,expandedKeys:st,onRow:Et,getRowKey:pt,rowExpandable:Fe,childrenColumnName:Oe})}):ct=w.createElement(V,{expanded:!0,className:"".concat(Le,"-placeholder"),prefixCls:Le,fixHeader:Rt,fixColumn:en,horizonScroll:en,component:bt,componentWidth:on,cellComponent:xt,colSpan:pn.length},Se);var ge=Object(x.a)(pn);return w.createElement(Kt,{className:"".concat(Le,"-tbody")},kt&&w.createElement("tr",{"aria-hidden":"true",className:"".concat(Le,"-measure-row"),style:{height:0}},ge.map(function(Ne){return w.createElement(ae,{key:Ne,columnKey:Ne,onColumnResize:he})})),ct)},[He,Le,Et,kt,st,pt,at,on,Se,pn])}var Ze=w.memo(xe);Ze.displayName="Body";var Me=Ze,Be=k("wRmb"),qe=k("xEkU"),Ve=k.n(qe);function De(nt){var He=Object(w.useRef)(nt),pt=Object(w.useState)({}),kt=Object(O.a)(pt,2),st=kt[1],Et=Object(w.useRef)(null),Fe=Object(w.useRef)([]);function Se(Oe){Et.current===null&&(Fe.current=[],Et.current=Ve()(function(){Fe.current.forEach(function(ce){He.current=ce(He.current)}),Et.current=null,st({})})),Fe.current.push(Oe)}return Object(w.useEffect)(function(){return function(){Ve.a.cancel(Et.current)}},[]),[He.current,Se]}function pe(nt){var He=Object(w.useRef)(nt),pt=Object(w.useRef)(null);function kt(){window.clearTimeout(pt.current)}function st(Fe){He.current=Fe,kt(),pt.current=window.setTimeout(function(){He.current=null,pt.current=null},100)}function Et(){return He.current}return Object(w.useEffect)(function(){return kt},[]),[st,Et]}function se(nt,He,pt){var kt=Object(w.useMemo)(function(){for(var st=[],Et=[],Fe=0,Se=0,Oe=0;Oe=Ce&&(En=Ce-Le),Fe({scrollLeft:En/Ce*(he+2)}),on.current.x=it.pageX},dt=function(){var it=Object(ue.b)(Et.current).top,vt=it+Et.current.offsetHeight,Ot=document.documentElement.scrollTop+window.innerHeight;vt-Object(b.a)()<=Ot||it>=Ot-Se?pn(function(sn){return Object(z.a)(Object(z.a)({},sn),{},{isHiddenScrollBar:!0})}):pn(function(sn){return Object(z.a)(Object(z.a)({},sn),{},{isHiddenScrollBar:!1})})},tn=function(it){pn(function(vt){return Object(z.a)(Object(z.a)({},vt),{},{scrollLeft:it/he*Ce||0})})};return w.useImperativeHandle(pt,function(){return{setScrollLeft:tn}}),w.useEffect(function(){var nn=Object(Y.a)(document.body,"mouseup",ge,!1),it=Object(Y.a)(document.body,"mousemove",Ct,!1);return dt(),function(){nn.remove(),it.remove()}},[Le,xt]),w.useEffect(function(){var nn=Object(Y.a)(window,"scroll",dt,!1),it=Object(Y.a)(window,"resize",dt,!1);return function(){nn.remove(),it.remove()}},[]),w.useEffect(function(){en.isHiddenScrollBar||pn(function(nn){var it,vt;return Object(z.a)(Object(z.a)({},nn),{},{scrollLeft:Et.current.scrollLeft/((it=Et.current)===null||it===void 0?void 0:it.scrollWidth)*((vt=Et.current)===null||vt===void 0?void 0:vt.clientWidth)})})},[en.isHiddenScrollBar]),he<=Ce||!Le||en.isHiddenScrollBar?null:w.createElement("div",{style:{height:Object(b.a)(),width:Ce,bottom:Se},className:"".concat(ce,"-sticky-scroll")},w.createElement("div",{onMouseDown:Ne,ref:at,className:C()("".concat(ce,"-sticky-scroll-bar"),Object(ne.a)({},"".concat(ce,"-sticky-scroll-bar-active"),xt)),style:{width:"".concat(Le,"px"),transform:"translate3d(".concat(en.scrollLeft,"px, 0, 0)")}}))},We=w.forwardRef(be);function ze(nt,He){return w.useMemo(function(){var pt=!!nt;return{isSticky:pt,stickyClassName:pt?"".concat(He,"-sticky-header"):"",offsetHeader:Object(K.a)(nt)==="object"&&nt.offsetHeader||0,offsetScroll:Object(K.a)(nt)==="object"&&nt.offsetScroll||0}},[nt,He])}var Tt=[],Ut={},It="rc-table-internal-hook",Nt=w.memo(function(nt){var He=nt.children;return He},function(nt,He){return _()(nt.props,He.props)?nt.pingLeft!==He.pingLeft||nt.pingRight!==He.pingRight:!1});function qt(nt){var He,pt=nt.prefixCls,kt=nt.className,st=nt.rowClassName,Et=nt.style,Fe=nt.data,Se=nt.rowKey,Oe=nt.scroll,ce=nt.tableLayout,he=nt.direction,Ce=nt.title,Le=nt.footer,at=nt.summary,et=nt.id,Rt=nt.showHeader,en=nt.components,pn=nt.emptyText,on=nt.onRow,Kt=nt.onHeaderRow,bt=nt.internalHooks,xt=nt.transformColumns,ct=nt.internalRefs,ge=nt.sticky,Ne=Fe||Tt,Ct=!!Ne.length,dt=w.useState(0),tn=Object(O.a)(dt,2),nn=tn[0],it=tn[1];w.useEffect(function(){it(Object(b.a)())});var vt=w.useMemo(function(){return Object(x.c)(en,{})},[en]),Ot=w.useCallback(function(Fn,Xn){return Object(x.b)(vt,Fn)||Xn},[vt]),sn=w.useMemo(function(){return typeof Se=="function"?Se:function(Fn){var Xn=Fn&&Fn[Se];return Xn}},[Se]),En=Object(m.c)(nt),or=En.expandIcon,fr=En.expandedRowKeys,ar=En.defaultExpandedRowKeys,Sn=En.defaultExpandAllRows,Hr=En.expandedRowRender,ea=En.onExpand,Ir=En.onExpandedRowsChange,pr=En.expandRowByClick,Br=En.rowExpandable,Jr=En.expandIconColumnIndex,la=En.expandedRowClassName,jt=En.childrenColumnName,On=En.indentSize,mr=or||X,Dr=jt||"children",Sr=w.useMemo(function(){return Hr?"row":nt.expandable&&bt===It&&nt.expandable.__PARENT_RENDER_ICON__||Ne.some(function(Fn){return Fn&&Object(K.a)(Fn)==="object"&&Fn[Dr]})?"nest":!1},[!!Hr,Ne]),Cr=w.useState(function(){return ar||(Sn?G(Ne,sn,Dr):[])}),J=Object(O.a)(Cr,2),S=J[0],M=J[1],$=w.useMemo(function(){return new Set(fr||S||[])},[fr,S]),te=w.useCallback(function(Fn){var Xn=sn(Fn,Ne.indexOf(Fn)),Zn,Gr=$.has(Xn);Gr?($.delete(Xn),Zn=Object(N.a)($)):Zn=[].concat(Object(N.a)($),[Xn]),M(Zn),ea&&ea(!Gr,Fn),Ir&&Ir(Zn)},[sn,$,Ne,ea,Ir]),q=w.useState(0),Xe=Object(O.a)(q,2),zt=Xe[0],gn=Xe[1],Nn=Object(Be.b)(Object(z.a)(Object(z.a)(Object(z.a)({},nt),En),{},{expandable:!!Hr,expandedKeys:$,getRowKey:sn,onTriggerExpand:te,expandIcon:mr,expandIconColumnIndex:Jr,direction:he}),bt===It?xt:null),Yt=Object(O.a)(Nn,2),tr=Yt[0],an=Yt[1],Jt=w.useMemo(function(){return{columns:tr,flattenColumns:an}},[tr,an]),cn=w.useRef(),_n=w.useRef(),zn=w.useRef(),lr=w.useState(!1),ir=Object(O.a)(lr,2),Tr=ir[0],$n=ir[1],Vn=w.useState(!1),jn=Object(O.a)(Vn,2),mn=jn[0],Ar=jn[1],Pr=De(new Map),Dn=Object(O.a)(Pr,2),sr=Dn[0],Or=Dn[1],ee=Object(x.a)(an),Te=ee.map(function(Fn){return sr.get(Fn)}),Qe=w.useMemo(function(){return Te},[Te.join("_")]),Ge=we(Qe,an.length,he),ot=Oe&&Object(x.d)(Oe.y),ke=Oe&&Object(x.d)(Oe.x),ft=ke&&an.some(function(Fn){var Xn=Fn.fixed;return Xn}),yt=w.useRef(),Re=ze(ge,pt),mt=Re.isSticky,Wt=Re.offsetHeader,Dt=Re.offsetScroll,lt=Re.stickyClassName,At,Lt,$t;ot&&(Lt={overflowY:"scroll",maxHeight:Oe.y}),ke&&(At={overflowX:"auto"},ot||(Lt={overflowY:"hidden"}),$t={width:Oe.x===!0?"auto":Oe.x,minWidth:"100%"});var Ie=w.useCallback(function(Fn,Xn){Or(function(Zn){var Gr=new Map(Zn);return Gr.set(Fn,Xn),Gr})},[]),Pt=pe(null),Ht=Object(O.a)(Pt,2),fn=Ht[0],Wn=Ht[1];function bn(Fn,Xn){if(!Xn)return;typeof Xn=="function"?Xn(Fn):Xn.scrollLeft!==Fn&&(Xn.scrollLeft=Fn)}var xn=function(Xn){var Zn=Xn.currentTarget,Gr=Xn.scrollLeft,Zr=typeof Gr=="number"?Gr:Zn.scrollLeft,ta=Zn||Ut;if(!Wn()||Wn()===ta){var fa;fn(ta),bn(Zr,_n.current),bn(Zr,zn.current),bn(Zr,(fa=yt.current)===null||fa===void 0?void 0:fa.setScrollLeft)}if(Zn){var ia=Zn.scrollWidth,ha=Zn.clientWidth;$n(Zr>0),Ar(Zr0?[].concat(Object(z.a)(p),Object(z.a)(d(l).map(function(x){return Object(N.a)({fixed:s},x)}))):[].concat(Object(z.a)(p),[Object(N.a)(Object(N.a)({},o),{},{fixed:s})])},[])}function v(n){for(var p=!0,o=0;o=0;l-=1){var x=n[l];if(s&&x.fixed!=="right")s=!1;else if(!s&&x.fixed==="right"){Object(B.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function b(n){return n.map(function(p){var o=p.fixed,r=Object(K.a)(p,["fixed"]),s=o;return o==="left"?s="right":o==="right"&&(s="left"),Object(N.a)({fixed:s},r)})}function f(n,p){var o=n.prefixCls,r=n.columns,s=n.children,l=n.expandable,x=n.expandedKeys,E=n.getRowKey,y=n.onTriggerExpand,L=n.expandIcon,R=n.rowExpandable,g=n.expandIconColumnIndex,m=n.direction,c=n.expandRowByClick,u=O.useMemo(function(){return r||_(s)},[r,s]),D=O.useMemo(function(){if(l){var j,U=g||0,H=u[U],V=(j={},Object(ne.a)(j,P.a,{className:"".concat(o,"-expand-icon-col")}),Object(ne.a)(j,"title",""),Object(ne.a)(j,"fixed",H?H.fixed:null),Object(ne.a)(j,"className","".concat(o,"-row-expand-icon-cell")),Object(ne.a)(j,"render",function(Q,ie,ae){var xe=E(ie,ae),Ze=x.has(xe),Me=R?R(ie):!0,Be=L({prefixCls:o,expanded:Ze,expandable:Me,record:ie,onExpand:y});return c?O.createElement("span",{onClick:function(Ve){return Ve.stopPropagation()}},Be):Be}),j),I=u.slice();return U>=0&&I.splice(U,0,V),I}return u},[l,u,E,x,L,m]),T=O.useMemo(function(){var j=D;return p&&(j=p(j)),j.length||(j=[{render:function(){return null}}]),j},[p,D,m]),A=O.useMemo(function(){return m==="rtl"?b(d(T)):d(T)},[T,m]);return[T,A]}Ee.b=f},wzkS:function(Vt,Ee,k){"use strict";k.d(Ee,"c",function(){return O}),k.d(Ee,"b",function(){return w}),k.d(Ee,"d",function(){return B}),k.d(Ee,"a",function(){return P}),k.d(Ee,"e",function(){return _});var ne=k("9og8"),z=k("WmNS"),N=k.n(z),K=k("ErOA");function O(d){return Object(K.c)("libraries/".concat(d,".json"))}function w(){return Object(K.c)("library_tags.json")}function B(d){return C.apply(this,arguments)}function C(){return C=Object(ne.a)(N.a.mark(function d(v){var b;return N.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(K.b)("attachments/".concat(v,".json"));case 2:return b=n.sent,n.abrupt("return",b.status===0);case 4:case"end":return n.stop()}},d)})),C.apply(this,arguments)}function P(d){return Object(K.f)("libraries.json",d)}function _(d,v){return Object(K.g)("libraries/".concat(d,".json"),v)}},xOL1:function(Vt,Ee){Vt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y0+3":function(Vt,Ee,k){"use strict";k.d(Ee,"a",function(){return d}),k.d(Ee,"b",function(){return b});var ne=/margin|padding|width|height|max|min|offset/,z={left:!0,top:!0},N={cssFloat:1,styleFloat:1,float:1};function K(f){return f.nodeType===1?f.ownerDocument.defaultView.getComputedStyle(f,null):{}}function O(f,n,p){if(n=n.toLowerCase(),p==="auto"){if(n==="height")return f.offsetHeight;if(n==="width")return f.offsetWidth}return n in z||(z[n]=ne.test(n)),z[n]?parseFloat(p)||0:p}function w(f,n){var p=arguments.length,o=K(f);return n=N[n]?"cssFloat"in f.style?"cssFloat":"styleFloat":n,p===1?o:O(f,n,o[n]||f.style[n])}function B(f,n,p){var o=arguments.length;if(n=N[n]?"cssFloat"in f.style?"cssFloat":"styleFloat":n,o===3)return typeof p=="number"&&ne.test(n)&&(p="".concat(p,"px")),f.style[n]=p,p;for(var r in n)n.hasOwnProperty(r)&&B(f,r,n[r]);return K(f)}function C(f){return f===document.body?document.documentElement.clientWidth:f.offsetWidth}function P(f){return f===document.body?window.innerHeight||document.documentElement.clientHeight:f.offsetHeight}function _(){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:f,height:n}}function d(){var f=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:f,height:n}}function v(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function b(f){var n=f.getBoundingClientRect(),p=document.documentElement;return{left:n.left+(window.pageXOffset||p.scrollLeft)-(p.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||p.scrollTop)-(p.clientTop||document.body.clientTop||0)}}},y5JW:function(Vt,Ee,k){"use strict";k.d(Ee,"c",function(){return p}),k.d(Ee,"a",function(){return o});var ne=k("DZo9"),z=k("8z0m"),N=k("+L6B"),K=k("2/Rp"),O=k("9og8"),w=k("k1fw"),B=k("oBTY"),C=k("miYZ"),P=k("tsqr"),_=k("WmNS"),d=k.n(_),v=k("q1tI"),b=k.n(v),f=k("m3rI"),n=k("wzkS"),p="\u3000\u3000";function o(r){var s=["Bytes","KB","MB","GB","TB"];if(r==0)return"0 Byte";var l=parseInt(""+Math.floor(Math.log(r)/Math.log(1024)),10);return(r/Math.pow(1024,l)).toFixed(1)+" "+s[l]}Ee.b=function(r){var s=r.value,l=s===void 0?[]:s,x=r.action,E=r.onChange,y=r.className,L=r.maxSize,R=L===void 0?150:L,g=r.title,m=g===void 0?"\u6587\u4EF6\u4E0A\u4F20":g,c=r.accept,u=c===void 0?null:c,D={multiple:!1,fileList:l,accept:u,withCredentials:!0,beforeUpload:function(j){var U=j.size/1024/1024;return U0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:l.length>0,ghost:!0},m),b.a.createElement("span",{onClick:T,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",R,"M) ")))}}}]); +`)}),L.flush()}},"./src/utils/xhr-loader.ts":function(ne,z,N){"use strict";N.r(z);var K=N("./src/utils/logger.ts"),O=N("./src/loader/load-stats.ts"),w=/^age:\s*[\d.]+\s*$/m,B=function(){function C(_){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=_?_.xhrSetup:null,this.stats=new O.LoadStats,this.retryDelay=0}var P=C.prototype;return P.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},P.abortInternal=function(){var d=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),d&&(d.onreadystatechange=null,d.onprogress=null,d.readyState!==4&&(this.stats.aborted=!0,d.abort()))},P.abort=function(){var d;this.abortInternal(),(d=this.callbacks)!==null&&d!==void 0&&d.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},P.load=function(d,v,b){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=d,this.config=v,this.callbacks=b,this.retryDelay=v.retryDelay,this.loadInternal()},P.loadInternal=function(){var d=this.config,v=this.context;if(!d)return;var b=this.loader=new self.XMLHttpRequest,f=this.stats;f.loading.first=0,f.loaded=0;var n=this.xhrSetup;try{if(n)try{n(b,v.url)}catch(r){b.open("GET",v.url,!0),n(b,v.url)}b.readyState||b.open("GET",v.url,!0);var p=this.context.headers;if(p)for(var o in p)b.setRequestHeader(o,p[o])}catch(r){this.callbacks.onError({code:b.status,text:r.message},v,b);return}v.rangeEnd&&b.setRequestHeader("Range","bytes="+v.rangeStart+"-"+(v.rangeEnd-1)),b.onreadystatechange=this.readystatechange.bind(this),b.onprogress=this.loadprogress.bind(this),b.responseType=v.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),d.timeout),b.send()},P.readystatechange=function(){var d=this.context,v=this.loader,b=this.stats;if(!d||!v)return;var f=v.readyState,n=this.config;if(b.aborted)return;if(f>=2)if(self.clearTimeout(this.requestTimeout),b.loading.first===0&&(b.loading.first=Math.max(self.performance.now(),b.loading.start)),f===4){v.onreadystatechange=null,v.onprogress=null;var p=v.status;if(p>=200&&p<300){b.loading.end=Math.max(self.performance.now(),b.loading.first);var o,r;if(d.responseType==="arraybuffer"?(o=v.response,r=o.byteLength):(o=v.responseText,r=o.length),b.loaded=b.total=r,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(b,d,o,v),!this.callbacks)return;var l={url:v.responseURL,data:o};this.callbacks.onSuccess(l,b,d,v)}else b.retry>=n.maxRetry||p>=400&&p<499?(K.logger.error(p+" while loading "+d.url),this.callbacks.onError({code:p,text:v.statusText},d,v)):(K.logger.warn(p+" while loading "+d.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),b.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},P.loadtimeout=function(){K.logger.warn("timeout while loading "+this.context.url);var d=this.callbacks;d&&(this.abortInternal(),d.onTimeout(this.stats,this.context,this.loader))},P.loadprogress=function(d){var v=this.stats;v.loaded=d.loaded,d.lengthComputable&&(v.total=d.total)},P.getCacheAge=function(){var d=null;if(this.loader&&w.test(this.loader.getAllResponseHeaders())){var v=this.loader.getResponseHeader("age");d=v?parseFloat(v):null}return d},C}();z.default=B}}).default})},vHTk:function(Gt,Ee,k){Gt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return It});var ne=k("rePB"),z=k("VTBJ"),N=k("KQm4"),K=k("U8pU"),O=k("ODXe"),w=k("q1tI"),B=k("TSYQ"),C=k.n(B),P=k("Gytx"),_=k.n(P),d=k("Kwbf"),v=k("t23M"),b=k("qx4F"),f=k("6eGT"),n=k("IBYe"),p=k("Ff2n"),o=k("c+Xe"),r=k("fyJ8"),s=k("biw7");function l(nt,He,pt,Mt,st){var Et=pt[nt]||{},Fe=pt[He]||{},Se,Oe;Et.fixed==="left"?Se=Mt.left[nt]:Fe.fixed==="right"&&(Oe=Mt.right[He]);var ce=!1,he=!1,Ce=!1,Le=!1,at=pt[He+1],et=pt[nt-1];if(st==="rtl"){if(Se!==void 0){var Rt=et&&et.fixed==="left";Le=!Rt}else if(Oe!==void 0){var qt=at&&at.fixed==="right";Ce=!qt}}else if(Se!==void 0){var pn=at&&at.fixed==="left";ce=!pn}else if(Oe!==void 0){var an=et&&et.fixed==="right";he=!an}return{fixLeft:Se,fixRight:Oe,lastFixLeft:ce,firstFixRight:he,lastFixRight:Ce,firstFixLeft:Le,isSticky:Mt.isSticky}}var x=k("sR1s");function E(nt){var He=nt.cells,pt=nt.stickyOffsets,Mt=nt.flattenColumns,st=nt.rowComponent,Et=nt.cellComponent,Fe=nt.onHeaderRow,Se=nt.index,Oe=w.useContext(s.a),ce=Oe.prefixCls,he=Oe.direction,Ce;Fe&&(Ce=Fe(He.map(function(at){return at.column}),Se));var Le=Object(x.a)(He.map(function(at){return at.column}));return w.createElement(st,Object.assign({},Ce),He.map(function(at,et){var Rt=at.column,qt=l(at.colStart,at.colEnd,Mt,pt,he),pn;return Rt&&Rt.onHeaderCell&&(pn=at.column.onHeaderCell(Rt)),w.createElement(r.a,Object.assign({},at,{ellipsis:Rt.ellipsis,align:Rt.align,component:Et,prefixCls:ce,key:Le[et]},qt,{additionalProps:pn,rowType:"header"}))}))}E.displayName="HeaderRow";var y=E;function L(nt){var He=[];function pt(Fe,Se){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;He[Oe]=He[Oe]||[];var ce=Se,he=Fe.filter(Boolean).map(function(Ce){var Le={key:Ce.key,className:Ce.className||"",children:Ce.title,column:Ce,colStart:ce},at=1,et=Ce.children;return et&&et.length>0&&(at=pt(et,ce,Oe+1).reduce(function(Rt,qt){return Rt+qt},0),Le.hasSubColumns=!0),"colSpan"in Ce&&(at=Ce.colSpan),"rowSpan"in Ce&&(Le.rowSpan=Ce.rowSpan),Le.colSpan=at,Le.colEnd=Le.colStart+at-1,He[Oe].push(Le),ce+=at,at});return he}pt(nt,0);for(var Mt=He.length,st=function(Se){He[Se].forEach(function(Oe){!("rowSpan"in Oe)&&!Oe.hasSubColumns&&(Oe.rowSpan=Mt-Se)})},Et=0;Et=0;Se-=1){var Oe=He[Se],ce=pt&&pt[Se],he=ce&&ce[m.a];(Oe||he||Fe)&&(st.unshift(w.createElement("col",Object.assign({key:Se,style:{width:Oe,minWidth:Oe}},he))),Fe=!0)}return w.createElement("colgroup",null,st)}var u=c;function D(nt,He){return Object(w.useMemo)(function(){for(var pt=[],Mt=0;Mt1?$-1:0),q=1;q<$;q++)te[q-1]=arguments[q];(M=Br).onClick.apply(M,[S].concat(te))}},ua;typeof en=="string"?ua=en:typeof en=="function"&&(ua=en(Mt,st,Ce));var jt=Object(x.a)(ge),On=w.createElement(Le,Object.assign({},Br,{"data-row-key":Et,className:C()(He,"".concat(qt,"-row"),"".concat(qt,"-row-level-").concat(Ce),ua,Br&&Br.className),style:Object(z.a)(Object(z.a)({},pt),Br?Br.style:null),onClick:Zr}),ge.map(function(J,S){var M=J.render,$=J.dataIndex,te=J.className,q=jt[S],Xe=pn[S],Kt;S===(on||0)&&ta&&(Kt=w.createElement(w.Fragment,null,w.createElement("span",{style:{paddingLeft:"".concat(it*Ce,"px")},className:"".concat(qt,"-row-indent indent-level-").concat(Ce)}),vt({prefixCls:qt,expanded:Tn,expandable:jr,record:Mt,onExpand:dt})));var yn;return J.onCell&&(yn=J.onCell(Mt,st)),w.createElement(r.a,Object.assign({className:te,ellipsis:J.ellipsis,align:J.align,component:at,prefixCls:qt,key:q,record:Mt,index:st,dataIndex:$,render:M,shouldCellUpdate:J.shouldCellUpdate},Xe,{appendNode:Kt,additionalProps:yn}))})),vr;if(Wr&&(fr||Tn)){var Dr=Ot(Mt,st,Ce+1,Tn),Sr=tn&&tn(Mt,st,Ce);vr=w.createElement(V,{expanded:Tn,className:C()("".concat(qt,"-expanded-row"),"".concat(qt,"-expanded-row-level-").concat(Ce+1),Sr),prefixCls:qt,fixHeader:Ht,fixColumn:bt,horizonScroll:xt,component:Le,componentWidth:ct,cellComponent:at,colSpan:ge.length},Dr)}var xr;return jr&&Tn&&(xr=(Mt[et]||[]).map(function(J,S){var M=Fe(J,S);return w.createElement(I,Object.assign({},nt,{key:M,rowKey:M,record:J,recordKey:M,index:S,indent:Ce+1}))})),w.createElement(w.Fragment,null,On,vr,xr)}I.displayName="BodyRow";var W=I,Q=w.createContext(null),ie=Q;function ae(nt){var He=nt.columnKey,pt=nt.onColumnResize,Mt=w.useRef();return w.useEffect(function(){Mt.current&&pt(He,Mt.current.offsetWidth)},[]),w.createElement(v.a,{onResize:function(Et){var Fe=Et.offsetWidth;pt(He,Fe)}},w.createElement("td",{ref:Mt,style:{padding:0,border:0,height:0}},w.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function xe(nt){var He=nt.data,pt=nt.getRowKey,Mt=nt.measureColumnWidth,st=nt.expandedKeys,Et=nt.onRow,Fe=nt.rowExpandable,Se=nt.emptyNode,Oe=nt.childrenColumnName,ce=w.useContext(ie),he=ce.onColumnResize,Ce=w.useContext(s.a),Le=Ce.prefixCls,at=Ce.getComponent,et=w.useContext(U),Rt=et.fixHeader,qt=et.horizonScroll,pn=et.flattenColumns,an=et.componentWidth;return w.useMemo(function(){var Ht=at(["body","wrapper"],"tbody"),bt=at(["body","row"],"tr"),xt=at(["body","cell"],"td"),ct;He.length?ct=He.map(function(Ne,Ct){var dt=pt(Ne,Ct);return w.createElement(W,{key:dt,rowKey:dt,record:Ne,recordKey:dt,index:Ct,rowComponent:bt,cellComponent:xt,expandedKeys:st,onRow:Et,getRowKey:pt,rowExpandable:Fe,childrenColumnName:Oe})}):ct=w.createElement(V,{expanded:!0,className:"".concat(Le,"-placeholder"),prefixCls:Le,fixHeader:Rt,fixColumn:qt,horizonScroll:qt,component:bt,componentWidth:an,cellComponent:xt,colSpan:pn.length},Se);var ge=Object(x.a)(pn);return w.createElement(Ht,{className:"".concat(Le,"-tbody")},Mt&&w.createElement("tr",{"aria-hidden":"true",className:"".concat(Le,"-measure-row"),style:{height:0}},ge.map(function(Ne){return w.createElement(ae,{key:Ne,columnKey:Ne,onColumnResize:he})})),ct)},[He,Le,Et,Mt,st,pt,at,an,Se,pn])}var Ze=w.memo(xe);Ze.displayName="Body";var Me=Ze,Be=k("wRmb"),qe=k("xEkU"),Ve=k.n(qe);function De(nt){var He=Object(w.useRef)(nt),pt=Object(w.useState)({}),Mt=Object(O.a)(pt,2),st=Mt[1],Et=Object(w.useRef)(null),Fe=Object(w.useRef)([]);function Se(Oe){Et.current===null&&(Fe.current=[],Et.current=Ve()(function(){Fe.current.forEach(function(ce){He.current=ce(He.current)}),Et.current=null,st({})})),Fe.current.push(Oe)}return Object(w.useEffect)(function(){return function(){Ve.a.cancel(Et.current)}},[]),[He.current,Se]}function pe(nt){var He=Object(w.useRef)(nt),pt=Object(w.useRef)(null);function Mt(){window.clearTimeout(pt.current)}function st(Fe){He.current=Fe,Mt(),pt.current=window.setTimeout(function(){He.current=null,pt.current=null},100)}function Et(){return He.current}return Object(w.useEffect)(function(){return Mt},[]),[st,Et]}function se(nt,He,pt){var Mt=Object(w.useMemo)(function(){for(var st=[],Et=[],Fe=0,Se=0,Oe=0;Oe=Ce&&(xn=Ce-Le),Fe({scrollLeft:xn/Ce*(he+2)}),an.current.x=it.pageX},dt=function(){var it=Object(ue.b)(Et.current).top,vt=it+Et.current.offsetHeight,Ot=document.documentElement.scrollTop+window.innerHeight;vt-Object(b.a)()<=Ot||it>=Ot-Se?pn(function(on){return Object(z.a)(Object(z.a)({},on),{},{isHiddenScrollBar:!0})}):pn(function(on){return Object(z.a)(Object(z.a)({},on),{},{isHiddenScrollBar:!1})})},en=function(it){pn(function(vt){return Object(z.a)(Object(z.a)({},vt),{},{scrollLeft:it/he*Ce||0})})};return w.useImperativeHandle(pt,function(){return{setScrollLeft:en}}),w.useEffect(function(){var tn=Object(Y.a)(document.body,"mouseup",ge,!1),it=Object(Y.a)(document.body,"mousemove",Ct,!1);return dt(),function(){tn.remove(),it.remove()}},[Le,xt]),w.useEffect(function(){var tn=Object(Y.a)(window,"scroll",dt,!1),it=Object(Y.a)(window,"resize",dt,!1);return function(){tn.remove(),it.remove()}},[]),w.useEffect(function(){qt.isHiddenScrollBar||pn(function(tn){var it,vt;return Object(z.a)(Object(z.a)({},tn),{},{scrollLeft:Et.current.scrollLeft/((it=Et.current)===null||it===void 0?void 0:it.scrollWidth)*((vt=Et.current)===null||vt===void 0?void 0:vt.clientWidth)})})},[qt.isHiddenScrollBar]),he<=Ce||!Le||qt.isHiddenScrollBar?null:w.createElement("div",{style:{height:Object(b.a)(),width:Ce,bottom:Se},className:"".concat(ce,"-sticky-scroll")},w.createElement("div",{onMouseDown:Ne,ref:at,className:C()("".concat(ce,"-sticky-scroll-bar"),Object(ne.a)({},"".concat(ce,"-sticky-scroll-bar-active"),xt)),style:{width:"".concat(Le,"px"),transform:"translate3d(".concat(qt.scrollLeft,"px, 0, 0)")}}))},We=w.forwardRef(be);function ze(nt,He){return w.useMemo(function(){var pt=!!nt;return{isSticky:pt,stickyClassName:pt?"".concat(He,"-sticky-header"):"",offsetHeader:Object(K.a)(nt)==="object"&&nt.offsetHeader||0,offsetScroll:Object(K.a)(nt)==="object"&&nt.offsetScroll||0}},[nt,He])}var Tt=[],Ut={},It="rc-table-internal-hook",Nt=w.memo(function(nt){var He=nt.children;return He},function(nt,He){return _()(nt.props,He.props)?nt.pingLeft!==He.pingLeft||nt.pingRight!==He.pingRight:!1});function Zt(nt){var He,pt=nt.prefixCls,Mt=nt.className,st=nt.rowClassName,Et=nt.style,Fe=nt.data,Se=nt.rowKey,Oe=nt.scroll,ce=nt.tableLayout,he=nt.direction,Ce=nt.title,Le=nt.footer,at=nt.summary,et=nt.id,Rt=nt.showHeader,qt=nt.components,pn=nt.emptyText,an=nt.onRow,Ht=nt.onHeaderRow,bt=nt.internalHooks,xt=nt.transformColumns,ct=nt.internalRefs,ge=nt.sticky,Ne=Fe||Tt,Ct=!!Ne.length,dt=w.useState(0),en=Object(O.a)(dt,2),tn=en[0],it=en[1];w.useEffect(function(){it(Object(b.a)())});var vt=w.useMemo(function(){return Object(x.c)(qt,{})},[qt]),Ot=w.useCallback(function(Un,Yn){return Object(x.b)(vt,Un)||Yn},[vt]),on=w.useMemo(function(){return typeof Se=="function"?Se:function(Un){var Yn=Un&&Un[Se];return Yn}},[Se]),xn=Object(m.c)(nt),lr=xn.expandIcon,fr=xn.expandedRowKeys,ir=xn.defaultExpandedRowKeys,Tn=xn.defaultExpandAllRows,Wr=xn.expandedRowRender,ta=xn.onExpand,jr=xn.onExpandedRowsChange,mr=xn.expandRowByClick,Br=xn.rowExpandable,Zr=xn.expandIconColumnIndex,ua=xn.expandedRowClassName,jt=xn.childrenColumnName,On=xn.indentSize,vr=lr||X,Dr=jt||"children",Sr=w.useMemo(function(){return Wr?"row":nt.expandable&&bt===It&&nt.expandable.__PARENT_RENDER_ICON__||Ne.some(function(Un){return Un&&Object(K.a)(Un)==="object"&&Un[Dr]})?"nest":!1},[!!Wr,Ne]),xr=w.useState(function(){return ir||(Tn?G(Ne,on,Dr):[])}),J=Object(O.a)(xr,2),S=J[0],M=J[1],$=w.useMemo(function(){return new Set(fr||S||[])},[fr,S]),te=w.useCallback(function(Un){var Yn=on(Un,Ne.indexOf(Un)),er,Gr=$.has(Yn);Gr?($.delete(Yn),er=Object(N.a)($)):er=[].concat(Object(N.a)($),[Yn]),M(er),ta&&ta(!Gr,Un),jr&&jr(er)},[on,$,Ne,ta,jr]),q=w.useState(0),Xe=Object(O.a)(q,2),Kt=Xe[0],yn=Xe[1],In=Object(Be.b)(Object(z.a)(Object(z.a)(Object(z.a)({},nt),xn),{},{expandable:!!Wr,expandedKeys:$,getRowKey:on,onTriggerExpand:te,expandIcon:vr,expandIconColumnIndex:Zr,direction:he}),bt===It?xt:null),Xt=Object(O.a)(In,2),rr=Xt[0],nn=Xt[1],Qt=w.useMemo(function(){return{columns:rr,flattenColumns:nn}},[rr,nn]),un=w.useRef(),wn=w.useRef(),zn=w.useRef(),cr=w.useState(!1),sr=Object(O.a)(cr,2),Tr=sr[0],Zn=sr[1],Xn=w.useState(!1),Nn=Object(O.a)(Xn,2),mn=Nn[0],Pr=Nn[1],Lr=De(new Map),An=Object(O.a)(Lr,2),ur=An[0],Or=An[1],ee=Object(x.a)(nn),Te=ee.map(function(Un){return ur.get(Un)}),Qe=w.useMemo(function(){return Te},[Te.join("_")]),Ge=we(Qe,nn.length,he),ot=Oe&&Object(x.d)(Oe.y),ke=Oe&&Object(x.d)(Oe.x),ft=ke&&nn.some(function(Un){var Yn=Un.fixed;return Yn}),yt=w.useRef(),Re=ze(ge,pt),mt=Re.isSticky,Bt=Re.offsetHeader,Dt=Re.offsetScroll,lt=Re.stickyClassName,At,Lt,Yt;ot&&(Lt={overflowY:"scroll",maxHeight:Oe.y}),ke&&(At={overflowX:"auto"},ot||(Lt={overflowY:"hidden"}),Yt={width:Oe.x===!0?"auto":Oe.x,minWidth:"100%"});var Ie=w.useCallback(function(Un,Yn){Or(function(er){var Gr=new Map(er);return Gr.set(Un,Yn),Gr})},[]),Pt=pe(null),Wt=Object(O.a)(Pt,2),dn=Wt[0],Bn=Wt[1];function En(Un,Yn){if(!Yn)return;typeof Yn=="function"?Yn(Un):Yn.scrollLeft!==Un&&(Yn.scrollLeft=Un)}var Cn=function(Yn){var er=Yn.currentTarget,Gr=Yn.scrollLeft,qr=typeof Gr=="number"?Gr:er.scrollLeft,na=er||Ut;if(!Bn()||Bn()===na){var ha;dn(na),En(qr,wn.current),En(qr,zn.current),En(qr,(ha=yt.current)===null||ha===void 0?void 0:ha.setScrollLeft)}if(er){var oa=er.scrollWidth,pa=er.clientWidth;Zn(qr>0),Pr(qr0?[].concat(Object(z.a)(p),Object(z.a)(d(l).map(function(x){return Object(N.a)({fixed:s},x)}))):[].concat(Object(z.a)(p),[Object(N.a)(Object(N.a)({},o),{},{fixed:s})])},[])}function v(n){for(var p=!0,o=0;o=0;l-=1){var x=n[l];if(s&&x.fixed!=="right")s=!1;else if(!s&&x.fixed==="right"){Object(B.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function b(n){return n.map(function(p){var o=p.fixed,r=Object(K.a)(p,["fixed"]),s=o;return o==="left"?s="right":o==="right"&&(s="left"),Object(N.a)({fixed:s},r)})}function f(n,p){var o=n.prefixCls,r=n.columns,s=n.children,l=n.expandable,x=n.expandedKeys,E=n.getRowKey,y=n.onTriggerExpand,L=n.expandIcon,R=n.rowExpandable,g=n.expandIconColumnIndex,m=n.direction,c=n.expandRowByClick,u=O.useMemo(function(){return r||_(s)},[r,s]),D=O.useMemo(function(){if(l){var j,U=g||0,H=u[U],V=(j={},Object(ne.a)(j,P.a,{className:"".concat(o,"-expand-icon-col")}),Object(ne.a)(j,"title",""),Object(ne.a)(j,"fixed",H?H.fixed:null),Object(ne.a)(j,"className","".concat(o,"-row-expand-icon-cell")),Object(ne.a)(j,"render",function(Q,ie,ae){var xe=E(ie,ae),Ze=x.has(xe),Me=R?R(ie):!0,Be=L({prefixCls:o,expanded:Ze,expandable:Me,record:ie,onExpand:y});return c?O.createElement("span",{onClick:function(Ve){return Ve.stopPropagation()}},Be):Be}),j),I=u.slice();return U>=0&&I.splice(U,0,V),I}return u},[l,u,E,x,L,m]),T=O.useMemo(function(){var j=D;return p&&(j=p(j)),j.length||(j=[{render:function(){return null}}]),j},[p,D,m]),A=O.useMemo(function(){return m==="rtl"?b(d(T)):d(T)},[T,m]);return[T,A]}Ee.b=f},wzkS:function(Gt,Ee,k){"use strict";k.d(Ee,"c",function(){return O}),k.d(Ee,"b",function(){return w}),k.d(Ee,"d",function(){return B}),k.d(Ee,"a",function(){return P}),k.d(Ee,"e",function(){return _});var ne=k("9og8"),z=k("WmNS"),N=k.n(z),K=k("ErOA");function O(d){return Object(K.c)("libraries/".concat(d,".json"))}function w(){return Object(K.c)("library_tags.json")}function B(d){return C.apply(this,arguments)}function C(){return C=Object(ne.a)(N.a.mark(function d(v){var b;return N.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(K.b)("attachments/".concat(v,".json"));case 2:return b=n.sent,n.abrupt("return",b.status===0);case 4:case"end":return n.stop()}},d)})),C.apply(this,arguments)}function P(d){return Object(K.f)("libraries.json",d)}function _(d,v){return Object(K.g)("libraries/".concat(d,".json"),v)}},xOL1:function(Gt,Ee){Gt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y0+3":function(Gt,Ee,k){"use strict";k.d(Ee,"a",function(){return d}),k.d(Ee,"b",function(){return b});var ne=/margin|padding|width|height|max|min|offset/,z={left:!0,top:!0},N={cssFloat:1,styleFloat:1,float:1};function K(f){return f.nodeType===1?f.ownerDocument.defaultView.getComputedStyle(f,null):{}}function O(f,n,p){if(n=n.toLowerCase(),p==="auto"){if(n==="height")return f.offsetHeight;if(n==="width")return f.offsetWidth}return n in z||(z[n]=ne.test(n)),z[n]?parseFloat(p)||0:p}function w(f,n){var p=arguments.length,o=K(f);return n=N[n]?"cssFloat"in f.style?"cssFloat":"styleFloat":n,p===1?o:O(f,n,o[n]||f.style[n])}function B(f,n,p){var o=arguments.length;if(n=N[n]?"cssFloat"in f.style?"cssFloat":"styleFloat":n,o===3)return typeof p=="number"&&ne.test(n)&&(p="".concat(p,"px")),f.style[n]=p,p;for(var r in n)n.hasOwnProperty(r)&&B(f,r,n[r]);return K(f)}function C(f){return f===document.body?document.documentElement.clientWidth:f.offsetWidth}function P(f){return f===document.body?window.innerHeight||document.documentElement.clientHeight:f.offsetHeight}function _(){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:f,height:n}}function d(){var f=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:f,height:n}}function v(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function b(f){var n=f.getBoundingClientRect(),p=document.documentElement;return{left:n.left+(window.pageXOffset||p.scrollLeft)-(p.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||p.scrollTop)-(p.clientTop||document.body.clientTop||0)}}},y5JW:function(Gt,Ee,k){"use strict";k.d(Ee,"c",function(){return p}),k.d(Ee,"a",function(){return o});var ne=k("DZo9"),z=k("8z0m"),N=k("+L6B"),K=k("2/Rp"),O=k("9og8"),w=k("k1fw"),B=k("oBTY"),C=k("miYZ"),P=k("tsqr"),_=k("WmNS"),d=k.n(_),v=k("q1tI"),b=k.n(v),f=k("m3rI"),n=k("wzkS"),p="\u3000\u3000";function o(r){var s=["Bytes","KB","MB","GB","TB"];if(r==0)return"0 Byte";var l=parseInt(""+Math.floor(Math.log(r)/Math.log(1024)),10);return(r/Math.pow(1024,l)).toFixed(1)+" "+s[l]}Ee.b=function(r){var s=r.value,l=s===void 0?[]:s,x=r.action,E=r.onChange,y=r.className,L=r.maxSize,R=L===void 0?150:L,g=r.title,m=g===void 0?"\u6587\u4EF6\u4E0A\u4F20":g,c=r.accept,u=c===void 0?null:c,D={multiple:!1,fileList:l,accept:u,withCredentials:!0,beforeUpload:function(j){var U=j.size/1024/1024;return U0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:l.length>0,ghost:!0},m),b.a.createElement("span",{onClick:T,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",R,"M) ")))}}}]); diff --git a/p__Classrooms__Lists__Polls__index.1c277404.async.js b/p__Classrooms__Lists__Polls__index.1c277404.async.js index 0beacc888e..7d7c2fe043 100644 --- a/p__Classrooms__Lists__Polls__index.1c277404.async.js +++ b/p__Classrooms__Lists__Polls__index.1c277404.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[91,3,8,10],{"1j5w":function(Ht,Oe,a){"use strict";a.d(Oe,"d",function(){return hn}),a.d(Oe,"b",function(){return tt}),a.d(Oe,"c",function(){return Wt}),a.d(Oe,"a",function(){return kt});var D=a("VTBJ"),R=a("1OyB"),Ke=a("vuIU"),P=a("JX7q"),o=a("Ji7U"),C=a("LK+K"),I=a("q1tI"),u=a("I8Z2"),ae=a("BGR+"),xe=a("wx14"),Y=a("rePB"),Q=a("4IlW"),G=a("2GS6"),k=a("Gytx"),y=a.n(k),p=a("TSYQ"),A=a.n(p),_=a("U8pU"),Z=a("ODXe"),ie=/iPhone/i,le=/iPod/i,Ne=/iPad/i,H=/\bAndroid(?:.+)Mobile\b/i,z=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,r=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,c=/\bWindows(?:.+)ARM\b/i,L=/BlackBerry/i,V=/BB10/i,q=/Opera Mini/i,je=/\b(CriOS|Chrome)(?:.+)Mobile/i,J=/Mobile(?:.+)Firefox\b/i;function B(Se,te){return Se.test(te)}function Ue(Se){var te=Se||(typeof navigator!="undefined"?navigator.userAgent:""),pe=te.split("[FBAN");if(typeof pe[1]!="undefined"){var S=pe,i=Object(Z.a)(S,1);te=i[0]}if(pe=te.split("Twitter"),typeof pe[1]!="undefined"){var d=pe,ne=Object(Z.a)(d,1);te=ne[0]}var F={apple:{phone:B(ie,te)&&!B(h,te),ipod:B(le,te),tablet:!B(ie,te)&&B(Ne,te)&&!B(h,te),device:(B(ie,te)||B(le,te)||B(Ne,te))&&!B(h,te)},amazon:{phone:B(K,te),tablet:!B(K,te)&&B(r,te),device:B(K,te)||B(r,te)},android:{phone:!B(h,te)&&B(K,te)||!B(h,te)&&B(H,te),tablet:!B(h,te)&&!B(K,te)&&!B(H,te)&&(B(r,te)||B(z,te)),device:!B(h,te)&&(B(K,te)||B(r,te)||B(H,te)||B(z,te))||B(/\bokhttp\b/i,te)},windows:{phone:B(h,te),tablet:B(c,te),device:B(h,te)||B(c,te)},other:{blackberry:B(L,te),blackberry10:B(V,te),opera:B(q,te),firefox:B(J,te),chrome:B(je,te),device:B(L,te)||B(V,te)||B(q,te)||B(J,te)||B(je,te)},any:null,phone:null,tablet:null};return F.any=F.apple.device||F.android.device||F.windows.device||F.other.device,F.phone=F.apple.phone||F.android.phone||F.windows.phone,F.tablet=F.apple.tablet||F.android.tablet||F.windows.tablet,F}var rt=Object(D.a)(Object(D.a)({},Ue()),{},{isMobile:Ue}),Mt=rt;function Ve(){}function Te(Se,te,pe){var S=te||"";return Se.key||"".concat(S,"item_").concat(pe)}function lt(Se){return"".concat(Se,"-menu-")}function pt(Se,te){var pe=-1;I.Children.forEach(Se,function(S){pe+=1,S&&S.type&&S.type.isMenuItemGroup?I.Children.forEach(S.props.children,function(i){pe+=1,te(i,pe)}):te(S,pe)})}function mt(Se,te,pe){if(!Se||pe.find)return;I.Children.forEach(Se,function(S){if(S){var i=S.type;if(!i||!(i.isSubMenu||i.isMenuItem||i.isMenuItemGroup))return;te.indexOf(S.key)!==-1?pe.find=!0:S.props.children&&mt(S.props.children,te,pe)}})}var ht=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],oe=function(te){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=te&&typeof te.getBoundingClientRect=="function"&&te.getBoundingClientRect().width;if(S){if(pe){var i=getComputedStyle(te),d=i.marginLeft,ne=i.marginRight;S+=+d.replace("px","")+ +ne.replace("px","")}S=+S.toFixed(6)}return S||0},De=function(te,pe,S){te&&Object(_.a)(te.style)==="object"&&(te.style[pe]=S)},Ze=function(){return Mt.any},Be=a("KQm4"),fe=a("Ff2n"),ve=a("i8i4"),Xe=a("bdgK"),bt=a("uciX"),Nt=a("8XRh"),Fe={adjustX:1,adjustY:1},yt={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Fe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Fe,offset:[4,0]}},Yt={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Fe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Fe,offset:[4,0]}},Lt=yt,fn=0,En={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Jt=function(te,pe,S){var i=lt(pe),d=te.getState();te.setState({defaultActiveFirst:Object(D.a)(Object(D.a)({},d.defaultActiveFirst),{},Object(Y.a)({},i,S))})},Pt=function(Se){Object(o.a)(pe,Se);var te=Object(C.a)(pe);function pe(S){var i;Object(R.a)(this,pe),i=te.call(this,S),i.onDestroy=function(w){i.props.onDestroy(w)},i.onKeyDown=function(w){var re=w.keyCode,Le=i.menuInstance,Ot=i.props,st=Ot.isOpen,ln=Ot.store;if(re===Q.a.ENTER)return i.onTitleClick(w),Jt(ln,i.props.eventKey,!0),!0;if(re===Q.a.RIGHT)return st?Le.onKeyDown(w):(i.triggerOpenChange(!0),Jt(ln,i.props.eventKey,!0)),!0;if(re===Q.a.LEFT){var dn;if(st)dn=Le.onKeyDown(w);else return;return dn||(i.triggerOpenChange(!1),dn=!0),dn}return st&&(re===Q.a.UP||re===Q.a.DOWN)?Le.onKeyDown(w):void 0},i.onOpenChange=function(w){i.props.onOpenChange(w)},i.onPopupVisibleChange=function(w){i.triggerOpenChange(w,w?"mouseenter":"mouseleave")},i.onMouseEnter=function(w){var re=i.props,Le=re.eventKey,Ot=re.onMouseEnter,st=re.store;Jt(st,i.props.eventKey,!1),Ot({key:Le,domEvent:w})},i.onMouseLeave=function(w){var re=i.props,Le=re.parentMenu,Ot=re.eventKey,st=re.onMouseLeave;Le.subMenuInstance=Object(P.a)(i),st({key:Ot,domEvent:w})},i.onTitleMouseEnter=function(w){var re=i.props,Le=re.eventKey,Ot=re.onItemHover,st=re.onTitleMouseEnter;Ot({key:Le,hover:!0}),st({key:Le,domEvent:w})},i.onTitleMouseLeave=function(w){var re=i.props,Le=re.parentMenu,Ot=re.eventKey,st=re.onItemHover,ln=re.onTitleMouseLeave;Le.subMenuInstance=Object(P.a)(i),st({key:Ot,hover:!1}),ln({key:Ot,domEvent:w})},i.onTitleClick=function(w){var re=Object(P.a)(i),Le=re.props;if(Le.onTitleClick({key:Le.eventKey,domEvent:w}),Le.triggerSubMenuAction==="hover")return;i.triggerOpenChange(!Le.isOpen,"click"),Jt(Le.store,i.props.eventKey,!1)},i.onSubMenuClick=function(w){typeof i.props.onClick=="function"&&i.props.onClick(i.addKeyPath(w))},i.onSelect=function(w){i.props.onSelect(w)},i.onDeselect=function(w){i.props.onDeselect(w)},i.getPrefixCls=function(){return"".concat(i.props.rootPrefixCls,"-submenu")},i.getActiveClassName=function(){return"".concat(i.getPrefixCls(),"-active")},i.getDisabledClassName=function(){return"".concat(i.getPrefixCls(),"-disabled")},i.getSelectedClassName=function(){return"".concat(i.getPrefixCls(),"-selected")},i.getOpenClassName=function(){return"".concat(i.props.rootPrefixCls,"-submenu-open")},i.saveMenuInstance=function(w){i.menuInstance=w},i.addKeyPath=function(w){return Object(D.a)(Object(D.a)({},w),{},{keyPath:(w.keyPath||[]).concat(i.props.eventKey)})},i.triggerOpenChange=function(w,re){var Le=i.props.eventKey,Ot=function(){i.onOpenChange({key:Le,item:Object(P.a)(i),trigger:re,open:w})};re==="mouseenter"?i.mouseenterTimeout=setTimeout(function(){Ot()},0):Ot()},i.isChildrenSelected=function(){var w={find:!1};return mt(i.props.children,i.props.selectedKeys,w),w.find},i.isOpen=function(){return i.props.openKeys.indexOf(i.props.eventKey)!==-1},i.adjustWidth=function(){if(!i.subMenuTitle||!i.menuInstance)return;var w=ve.findDOMNode(i.menuInstance);if(w.offsetWidth>=i.subMenuTitle.offsetWidth)return;w.style.minWidth="".concat(i.subMenuTitle.offsetWidth,"px")},i.saveSubMenuTitle=function(w){i.subMenuTitle=w},i.getBaseProps=function(){var w=Object(P.a)(i),re=w.props;return{mode:re.mode==="horizontal"?"vertical":re.mode,visible:i.props.isOpen,level:re.level+1,inlineIndent:re.inlineIndent,focusable:!1,onClick:i.onSubMenuClick,onSelect:i.onSelect,onDeselect:i.onDeselect,onDestroy:i.onDestroy,selectedKeys:re.selectedKeys,eventKey:"".concat(re.eventKey,"-menu-"),openKeys:re.openKeys,motion:re.motion,onOpenChange:i.onOpenChange,subMenuOpenDelay:re.subMenuOpenDelay,parentMenu:Object(P.a)(i),subMenuCloseDelay:re.subMenuCloseDelay,forceSubMenuRender:re.forceSubMenuRender,triggerSubMenuAction:re.triggerSubMenuAction,builtinPlacements:re.builtinPlacements,defaultActiveFirst:re.store.getState().defaultActiveFirst[lt(re.eventKey)],multiple:re.multiple,prefixCls:re.rootPrefixCls,id:i.internalMenuId,manualRef:i.saveMenuInstance,itemIcon:re.itemIcon,expandIcon:re.expandIcon,direction:re.direction}},i.getMotion=function(w,re){var Le=Object(P.a)(i),Ot=Le.haveRendered,st=i.props,ln=st.motion,dn=st.rootPrefixCls,Un=Object(D.a)(Object(D.a)({},ln),{},{leavedClassName:"".concat(dn,"-hidden"),removeOnLeave:!1,motionAppear:Ot||!re||w!=="inline"});return Un};var d=S.store,ne=S.eventKey,F=d.getState(),ue=F.defaultActiveFirst;i.isRootMenu=!1;var se=!1;return ue&&(se=ue[ne]),Jt(d,ne,se),i}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var i=this,d=this.props,ne=d.mode,F=d.parentMenu,ue=d.manualRef;if(ue&&ue(this),ne!=="horizontal"||!F.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return i.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var i=this.props,d=i.onDestroy,ne=i.eventKey;d&&d(ne),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(i){var d=this,ne=this.getBaseProps(),F=this.getMotion(ne.mode,ne.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ne.visible||ne.forceSubMenuRender,!this.haveOpened)return I.createElement("div",null);var ue=ne.direction;return I.createElement(Nt.default,Object.assign({visible:ne.visible},F),function(se){var w=se.className,re=se.style,Le=A()("".concat(ne.prefixCls,"-sub"),w,Object(Y.a)({},"".concat(ne.prefixCls,"-rtl"),ue==="rtl"));return I.createElement($e,Object.assign({},ne,{id:d.internalMenuId,className:Le,style:re}),i)})}},{key:"render",value:function(){var i,d=Object(D.a)({},this.props),ne=d.isOpen,F=this.getPrefixCls(),ue=d.mode==="inline",se=A()(F,"".concat(F,"-").concat(d.mode),(i={},Object(Y.a)(i,d.className,!!d.className),Object(Y.a)(i,this.getOpenClassName(),ne),Object(Y.a)(i,this.getActiveClassName(),d.active||ne&&!ue),Object(Y.a)(i,this.getDisabledClassName(),d.disabled),Object(Y.a)(i,this.getSelectedClassName(),this.isChildrenSelected()),i));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(fn+=1,this.internalMenuId="$__$".concat(fn,"$Menu")));var w={},re={},Le={};d.disabled||(w={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},re={onClick:this.onTitleClick},Le={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ot={},st=d.direction;ue&&(st==="rtl"?Ot.paddingRight=d.inlineIndent*d.level:Ot.paddingLeft=d.inlineIndent*d.level);var ln={};this.props.isOpen&&(ln={"aria-owns":this.internalMenuId});var dn=null;d.mode!=="horizontal"&&(dn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(dn=I.createElement(this.props.expandIcon,Object(D.a)({},this.props))));var Un=I.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Ot,className:"".concat(F,"-title"),role:"button"},Le,re,{"aria-expanded":ne},ln,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,dn||I.createElement("i",{className:"".concat(F,"-arrow")})),Nn=this.renderChildren(d.children),et=d.parentMenu.isRootMenu?d.parentMenu.props.getPopupContainer:function(vn){return vn.parentNode},tn=En[d.mode],sn=d.popupOffset?{offset:d.popupOffset}:{},Sn=d.mode==="inline"?"":d.popupClassName;Sn+=st==="rtl"?" ".concat(F,"-rtl"):"";var Xt=d.disabled,Qt=d.triggerSubMenuAction,Rn=d.subMenuOpenDelay,$t=d.forceSubMenuRender,Hn=d.subMenuCloseDelay,Mn=d.builtinPlacements;ht.forEach(function(vn){return delete d[vn]}),delete d.onClick;var Rt=st==="rtl"?Object.assign({},Yt,Mn):Object.assign({},yt,Mn);return delete d.direction,I.createElement("li",Object.assign({},d,w,{className:se,role:"menuitem"}),ue&&Un,ue&&Nn,!ue&&I.createElement(bt.a,{prefixCls:F,popupClassName:A()("".concat(F,"-popup"),Sn),getPopupContainer:et,builtinPlacements:Rt,popupPlacement:tn,popupVisible:ne,popupAlign:sn,popup:Nn,action:Xt?[]:[Qt],mouseEnterDelay:Rn,mouseLeaveDelay:Hn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:$t},Un))}}]),pe}(I.Component);Pt.defaultProps={onMouseEnter:Ve,onMouseLeave:Ve,onTitleMouseEnter:Ve,onTitleMouseLeave:Ve,onTitleClick:Ve,manualRef:Ve,mode:"vertical",title:""};var Kt=Object(u.b)(function(Se,te){var pe=Se.openKeys,S=Se.activeKey,i=Se.selectedKeys,d=te.eventKey,ne=te.subMenuKey;return{isOpen:pe.indexOf(d)>-1,active:S[ne]===d,selectedKeys:i}})(Pt);Kt.isSubMenu=!0;var hn=Kt,Ln="menuitem-overflowed",In=.5,pn=function(Se){Object(o.a)(pe,Se);var te=Object(C.a)(pe);function pe(){var S;return Object(R.a)(this,pe),S=te.apply(this,arguments),S.resizeObserver=null,S.mutationObserver=null,S.originalTotalWidth=0,S.overflowedItems=[],S.menuItemSizes=[],S.cancelFrameId=null,S.state={lastVisibleIndex:void 0},S.getMenuItemNodes=function(){var i=S.props.prefixCls,d=ve.findDOMNode(Object(P.a)(S));return d?[].slice.call(d.children).filter(function(ne){return ne.className.split(" ").indexOf("".concat(i,"-overflowed-submenu"))<0}):[]},S.getOverflowedSubMenuItem=function(i,d,ne){var F=S.props,ue=F.overflowedIndicator,se=F.level,w=F.mode,re=F.prefixCls,Le=F.theme;if(se!==1||w!=="horizontal")return null;var Ot=S.props.children[0],st=Ot.props,ln=st.children,dn=st.title,Un=st.style,Nn=Object(fe.a)(st,["children","title","style"]),et=Object(D.a)({},Un),tn="".concat(i,"-overflowed-indicator"),sn="".concat(i,"-overflowed-indicator");d.length===0&&ne!==!0?et=Object(D.a)(Object(D.a)({},et),{},{display:"none"}):ne&&(et=Object(D.a)(Object(D.a)({},et),{},{visibility:"hidden",position:"absolute"}),tn="".concat(tn,"-placeholder"),sn="".concat(sn,"-placeholder"));var Sn=Le?"".concat(re,"-").concat(Le):"",Xt={};return ht.forEach(function(Qt){Nn[Qt]!==void 0&&(Xt[Qt]=Nn[Qt])}),I.createElement(hn,Object.assign({title:ue,className:"".concat(re,"-overflowed-submenu"),popupClassName:Sn},Xt,{key:tn,eventKey:sn,disabled:!1,style:et}),d)},S.setChildrenWidthAndResize=function(){if(S.props.mode!=="horizontal")return;var i=ve.findDOMNode(Object(P.a)(S));if(!i)return;var d=i.children;if(!d||d.length===0)return;var ne=i.children[d.length-1];De(ne,"display","inline-block");var F=S.getMenuItemNodes(),ue=F.filter(function(se){return se.className.split(" ").indexOf(Ln)>=0});ue.forEach(function(se){De(se,"display","inline-block")}),S.menuItemSizes=F.map(function(se){return oe(se,!0)}),ue.forEach(function(se){De(se,"display","none")}),S.overflowedIndicatorWidth=oe(i.children[i.children.length-1],!0),S.originalTotalWidth=S.menuItemSizes.reduce(function(se,w){return se+w},0),S.handleResize(),De(ne,"display","none")},S.handleResize=function(){if(S.props.mode!=="horizontal")return;var i=ve.findDOMNode(Object(P.a)(S));if(!i)return;var d=oe(i);S.overflowedItems=[];var ne=0,F;S.originalTotalWidth>d+In&&(F=-1,S.menuItemSizes.forEach(function(ue){ne+=ue,ne+S.overflowedIndicatorWidth<=d&&(F+=1)})),S.setState({lastVisibleIndex:F})},S}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){var i=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var d=ve.findDOMNode(this);if(!d)return;this.resizeObserver=new Xe.default(function(ne){ne.forEach(function(){var F=i.cancelFrameId;cancelAnimationFrame(F),i.cancelFrameId=requestAnimationFrame(i.setChildrenWidthAndResize)})}),[].slice.call(d.children).concat(d).forEach(function(ne){i.resizeObserver.observe(ne)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){i.resizeObserver.disconnect(),[].slice.call(d.children).concat(d).forEach(function(ne){i.resizeObserver.observe(ne)}),i.setChildrenWidthAndResize()}),this.mutationObserver.observe(d,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(i){var d=this,ne=this.state.lastVisibleIndex;return(i||[]).reduce(function(F,ue,se){var w=ue;if(d.props.mode==="horizontal"){var re=d.getOverflowedSubMenuItem(ue.props.eventKey,[]);ne!==void 0&&d.props.className.indexOf("".concat(d.props.prefixCls,"-root"))!==-1&&(se>ne&&(w=I.cloneElement(ue,{style:{display:"none"},eventKey:"".concat(ue.props.eventKey,"-hidden"),className:"".concat(Ln)})),se===ne+1&&(d.overflowedItems=i.slice(ne+1).map(function(Ot){return I.cloneElement(Ot,{key:Ot.props.eventKey,mode:"vertical-left"})}),re=d.getOverflowedSubMenuItem(ue.props.eventKey,d.overflowedItems)));var Le=[].concat(Object(Be.a)(F),[re,w]);return se===i.length-1&&Le.push(d.getOverflowedSubMenuItem(ue.props.eventKey,[],!0)),Le}return[].concat(Object(Be.a)(F),[w])},[])}},{key:"render",value:function(){var i=this.props,d=i.visible,ne=i.prefixCls,F=i.overflowedIndicator,ue=i.mode,se=i.level,w=i.tag,re=i.children,Le=i.theme,Ot=Object(fe.a)(i,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),st=w;return I.createElement(st,Object.assign({},Ot),this.renderChildren(re))}}]),pe}(I.Component);pn.defaultProps={tag:"div",className:""};var Dn=pn;function sa(Se){return Se.length?Se.every(function(te){return!!te.props.disabled}):!0}function U(Se,te,pe){var S=Se.getState();Se.setState({activeKey:Object(D.a)(Object(D.a)({},S.activeKey),{},Object(Y.a)({},te,pe))})}function Re(Se){return Se.eventKey||"0-menu-"}function _e(Se,te){var pe=te,S=Se.children,i=Se.eventKey;if(pe){var d;if(pt(S,function(ne,F){ne&&ne.props&&!ne.props.disabled&&pe===Te(ne,i,F)&&(d=!0)}),d)return pe}return pe=null,Se.defaultActiveFirst&&pt(S,function(ne,F){!pe&&ne&&!ne.props.disabled&&(pe=Te(ne,i,F))}),pe}function He(Se){if(Se){var te=this.instanceArray.indexOf(Se);te!==-1?this.instanceArray[te]=Se:this.instanceArray.push(Se)}}var it=function(Se){Object(o.a)(pe,Se);var te=Object(C.a)(pe);function pe(S){var i;return Object(R.a)(this,pe),i=te.call(this,S),i.onKeyDown=function(d,ne){var F=d.keyCode,ue;if(i.getFlatInstanceArray().forEach(function(w){w&&w.props.active&&w.onKeyDown&&(ue=w.onKeyDown(d))}),ue)return 1;var se=null;return(F===Q.a.UP||F===Q.a.DOWN)&&(se=i.step(F===Q.a.UP?-1:1)),se?(d.preventDefault(),U(i.props.store,Re(i.props),se.props.eventKey),typeof ne=="function"&&ne(se),1):void 0},i.onItemHover=function(d){var ne=d.key,F=d.hover;U(i.props.store,Re(i.props),F?ne:null)},i.onDeselect=function(d){i.props.onDeselect(d)},i.onSelect=function(d){i.props.onSelect(d)},i.onClick=function(d){i.props.onClick(d)},i.onOpenChange=function(d){i.props.onOpenChange(d)},i.onDestroy=function(d){i.props.onDestroy(d)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(d){var ne=i.getFlatInstanceArray(),F=i.props.store.getState().activeKey[Re(i.props)],ue=ne.length;if(!ue)return null;d<0&&(ne=ne.concat().reverse());var se=-1;if(ne.every(function(Ot,st){return Ot&&Ot.props.eventKey===F?(se=st,!1):!0}),!i.props.defaultActiveFirst&&se!==-1&&sa(ne.slice(se,ue-1)))return;var w=(se+1)%ue,re=w;do{var Le=ne[re];if(!Le||Le.props.disabled)re=(re+1)%ue;else return Le}while(re!==w);return null},i.renderCommonMenuItem=function(d,ne,F){var ue=i.props.store.getState(),se=Object(P.a)(i),w=se.props,re=Te(d,w.eventKey,ne),Le=d.props;if(!Le||typeof d.type=="string")return d;var Ot=re===ue.activeKey,st=Object(D.a)(Object(D.a)({mode:Le.mode||w.mode,level:w.level,inlineIndent:w.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:w.prefixCls,index:ne,parentMenu:w.parentMenu,manualRef:Le.disabled?void 0:Object(G.a)(d.ref,He.bind(Object(P.a)(i))),eventKey:re,active:!Le.disabled&&Ot,multiple:w.multiple,onClick:function(dn){(Le.onClick||Ve)(dn),i.onClick(dn)},onItemHover:i.onItemHover,motion:w.motion,subMenuOpenDelay:w.subMenuOpenDelay,subMenuCloseDelay:w.subMenuCloseDelay,forceSubMenuRender:w.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:w.builtinPlacements,itemIcon:Le.itemIcon||i.props.itemIcon,expandIcon:Le.expandIcon||i.props.expandIcon},F),{},{direction:w.direction});return(w.mode==="inline"||Ze())&&(st.triggerSubMenuAction="click"),I.cloneElement(d,st)},i.renderMenuItem=function(d,ne,F){if(!d)return null;var ue=i.props.store.getState(),se={openKeys:ue.openKeys,selectedKeys:ue.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:F};return i.renderCommonMenuItem(d,ne,se)},S.store.setState({activeKey:Object(D.a)(Object(D.a)({},S.store.getState().activeKey),{},Object(Y.a)({},S.eventKey,_e(S,S.activeKey)))}),i.instanceArray=[],i}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(i){return this.props.visible||i.visible||this.props.className!==i.className||!y()(this.props.style,i.style)}},{key:"componentDidUpdate",value:function(i){var d=this.props,ne="activeKey"in d?d.activeKey:d.store.getState().activeKey[Re(d)],F=_e(d,ne);if(F!==ne)U(d.store,Re(d),F);else if("activeKey"in i){var ue=_e(i,i.activeKey);F!==ue&&U(d.store,Re(d),F)}}},{key:"render",value:function(){var i=this,d=Object(xe.a)({},this.props);this.instanceArray=[];var ne=A()(d.prefixCls,d.className,"".concat(d.prefixCls,"-").concat(d.mode)),F={className:ne,role:d.role||"menu"};d.id&&(F.id=d.id),d.focusable&&(F.tabIndex=0,F.onKeyDown=this.onKeyDown);var ue=d.prefixCls,se=d.eventKey,w=d.visible,re=d.level,Le=d.mode,Ot=d.overflowedIndicator,st=d.theme;return ht.forEach(function(ln){return delete d[ln]}),delete d.onClick,I.createElement(Dn,Object.assign({},d,{prefixCls:ue,mode:Le,tag:"ul",level:re,theme:st,visible:w,overflowedIndicator:Ot},F),I.Children.map(d.children,function(ln,dn){return i.renderMenuItem(ln,dn,se||"0-menu-")}))}}]),pe}(I.Component);it.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ve};var qe=Object(u.b)()(it),$e=qe,We=a("Kwbf");function Ye(Se,te,pe){var S=Se.prefixCls,i=Se.motion,d=Se.defaultMotions,ne=d===void 0?{}:d,F=Se.openAnimation,ue=Se.openTransitionName,se=te.switchingModeFromInline;if(i)return i;if(Object(_.a)(F)==="object"&&F)Object(We.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof F=="string")return{motionName:"".concat(S,"-open-").concat(F)};if(ue)return{motionName:ue};var w=ne[pe];return w||(se?null:ne.other)}var Ge=function(Se){Object(o.a)(pe,Se);var te=Object(C.a)(pe);function pe(S){var i;Object(R.a)(this,pe),i=te.call(this,S),i.inlineOpenKeys=[],i.onSelect=function(F){var ue=Object(P.a)(i),se=ue.props;if(se.selectable){var w=i.store.getState(),re=w.selectedKeys,Le=F.key;se.multiple?re=re.concat([Le]):re=[Le],"selectedKeys"in se||i.store.setState({selectedKeys:re}),se.onSelect(Object(D.a)(Object(D.a)({},F),{},{selectedKeys:re}))}},i.onClick=function(F){var ue=i.getRealMenuMode(),se=Object(P.a)(i),w=se.store,re=se.props.onOpenChange;ue!=="inline"&&!("openKeys"in i.props)&&(w.setState({openKeys:[]}),re([])),i.props.onClick(F)},i.onKeyDown=function(F,ue){i.innerMenu.getWrappedInstance().onKeyDown(F,ue)},i.onOpenChange=function(F){var ue=Object(P.a)(i),se=ue.props,w=i.store.getState().openKeys.concat(),re=!1,Le=function(st){var ln=!1;if(st.open)ln=w.indexOf(st.key)===-1,ln&&w.push(st.key);else{var dn=w.indexOf(st.key);ln=dn!==-1,ln&&w.splice(dn,1)}re=re||ln};Array.isArray(F)?F.forEach(Le):Le(F),re&&("openKeys"in i.props||i.store.setState({openKeys:w}),se.onOpenChange(w))},i.onDeselect=function(F){var ue=Object(P.a)(i),se=ue.props;if(se.selectable){var w=i.store.getState().selectedKeys.concat(),re=F.key,Le=w.indexOf(re);Le!==-1&&w.splice(Le,1),"selectedKeys"in se||i.store.setState({selectedKeys:w}),se.onDeselect(Object(D.a)(Object(D.a)({},F),{},{selectedKeys:w}))}},i.onMouseEnter=function(F){i.restoreModeVerticalFromInline();var ue=i.props.onMouseEnter;ue&&ue(F)},i.onTransitionEnd=function(F){var ue=F.propertyName==="width"&&F.target===F.currentTarget,se=F.target.className,w=Object.prototype.toString.call(se)==="[object SVGAnimatedString]"?se.animVal:se,re=F.propertyName==="font-size"&&w.indexOf("anticon")>=0;(ue||re)&&i.restoreModeVerticalFromInline()},i.setInnerMenu=function(F){i.innerMenu=F},i.isRootMenu=!0;var d=S.defaultSelectedKeys,ne=S.defaultOpenKeys;return"selectedKeys"in S&&(d=S.selectedKeys||[]),"openKeys"in S&&(ne=S.openKeys||[]),i.store=Object(u.c)({selectedKeys:d,openKeys:ne,activeKey:{"0-menu-":_e(S,S.activeKey)}}),i.state={switchingModeFromInline:!1},i}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(i){this.updateOpentKeysWhenSwitchMode(i),this.updateMiniStore();var d=this.props,ne=d.siderCollapsed,F=d.inlineCollapsed,ue=d.onOpenChange;(!i.inlineCollapsed&&F||!i.siderCollapsed&&ne)&&ue([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(i){var d=this.props,ne=this.store,F=this.inlineOpenKeys,ue=ne.getState(),se={};i.mode==="inline"&&d.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in d||((d.inlineCollapsed&&!i.inlineCollapsed||d.siderCollapsed&&!i.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=ue.openKeys.concat(),se.openKeys=[]),(!d.inlineCollapsed&&i.inlineCollapsed||!d.siderCollapsed&&i.siderCollapsed)&&(se.openKeys=F,this.inlineOpenKeys=[])),Object.keys(se).length&&ne.setState(se)}},{key:"updateMenuDisplay",value:function(){var i=this.props.collapsedWidth,d=this.store,ne=this.prevOpenKeys,F=this.getInlineCollapsed()&&(i===0||i==="0"||i==="0px");F?(this.prevOpenKeys=d.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ne&&(this.store.setState({openKeys:ne}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var i=this.props.mode,d=this.state.switchingModeFromInline,ne=this.getInlineCollapsed();return d&&ne?"inline":ne?"vertical":i}},{key:"getInlineCollapsed",value:function(){var i=this.props,d=i.inlineCollapsed,ne=i.siderCollapsed;return ne!==void 0?ne:d}},{key:"restoreModeVerticalFromInline",value:function(){var i=this.state.switchingModeFromInline;i&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var i=Object(D.a)({},Object(ae.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),d=this.getRealMenuMode();return i.className+=" ".concat(i.prefixCls,"-root"),i.direction==="rtl"&&(i.className+=" ".concat(i.prefixCls,"-rtl")),i=Object(D.a)(Object(D.a)({},i),{},{mode:d,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ye(this.props,this.state,d)}),delete i.openAnimation,delete i.openTransitionName,I.createElement(u.a,{store:this.store},I.createElement($e,Object.assign({},i,{ref:this.setInnerMenu}),this.props.children))}}]),pe}(I.Component);Ge.defaultProps={selectable:!0,onClick:Ve,onSelect:Ve,onOpenChange:Ve,onDeselect:Ve,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:I.createElement("span",null,"\xB7\xB7\xB7")};var Me=Ge,Pe=function(Se){Object(o.a)(pe,Se);var te=Object(C.a)(pe);function pe(){var S;return Object(R.a)(this,pe),S=te.apply(this,arguments),S.onKeyDown=function(i){var d=i.keyCode;return d===Q.a.ENTER?(S.onClick(i),!0):void 0},S.onMouseLeave=function(i){var d=S.props,ne=d.eventKey,F=d.onItemHover,ue=d.onMouseLeave;F({key:ne,hover:!1}),ue({key:ne,domEvent:i})},S.onMouseEnter=function(i){var d=S.props,ne=d.eventKey,F=d.onItemHover,ue=d.onMouseEnter;F({key:ne,hover:!0}),ue({key:ne,domEvent:i})},S.onClick=function(i){var d=S.props,ne=d.eventKey,F=d.multiple,ue=d.onClick,se=d.onSelect,w=d.onDeselect,re=d.isSelected,Le={key:ne,keyPath:[ne],item:Object(P.a)(S),domEvent:i};ue(Le),F?re?w(Le):se(Le):re||se(Le)},S.saveNode=function(i){S.node=i},S}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var i=this.props;i.onDestroy&&i.onDestroy(i.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var i,d=Object(D.a)({},this.props),ne=A()(this.getPrefixCls(),d.className,(i={},Object(Y.a)(i,this.getActiveClassName(),!d.disabled&&d.active),Object(Y.a)(i,this.getSelectedClassName(),d.isSelected),Object(Y.a)(i,this.getDisabledClassName(),d.disabled),i)),F=Object(D.a)(Object(D.a)({},d.attribute),{},{title:typeof d.title=="string"?d.title:void 0,className:ne,role:d.role||"menuitem","aria-disabled":d.disabled});d.role==="option"?F=Object(D.a)(Object(D.a)({},F),{},{role:"option","aria-selected":d.isSelected}):(d.role===null||d.role==="none")&&(F.role="none");var ue={onClick:d.disabled?null:this.onClick,onMouseLeave:d.disabled?null:this.onMouseLeave,onMouseEnter:d.disabled?null:this.onMouseEnter},se=Object(D.a)({},d.style);d.mode==="inline"&&(d.direction==="rtl"?se.paddingRight=d.inlineIndent*d.level:se.paddingLeft=d.inlineIndent*d.level),ht.forEach(function(re){return delete d[re]}),delete d.direction;var w=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(w=I.createElement(this.props.itemIcon,this.props)),I.createElement("li",Object.assign({},Object(ae.default)(d,["onClick","onMouseEnter","onMouseLeave","onSelect"]),F,ue,{style:se,ref:this.saveNode}),d.children,w)}}]),pe}(I.Component);Pe.isMenuItem=!0,Pe.defaultProps={onSelect:Ve,onMouseEnter:Ve,onMouseLeave:Ve,manualRef:Ve};var Je=Object(u.b)(function(Se,te){var pe=Se.activeKey,S=Se.selectedKeys,i=te.eventKey,d=te.subMenuKey;return{active:pe[d]===i,isSelected:S.indexOf(i)!==-1}})(Pe),tt=Je,ct=function(Se){Object(o.a)(pe,Se);var te=Object(C.a)(pe);function pe(){var S;return Object(R.a)(this,pe),S=te.apply(this,arguments),S.renderInnerMenuItem=function(i){var d=S.props,ne=d.renderMenuItem,F=d.index;return ne(i,F,S.props.subMenuKey)},S}return Object(Ke.a)(pe,[{key:"render",value:function(){var i=Object(xe.a)({},this.props),d=i.className,ne=d===void 0?"":d,F=i.rootPrefixCls,ue="".concat(F,"-item-group-title"),se="".concat(F,"-item-group-list"),w=i.title,re=i.children;return ht.forEach(function(Le){return delete i[Le]}),delete i.onClick,delete i.direction,I.createElement("li",Object.assign({},i,{className:"".concat(ne," ").concat(F,"-item-group")}),I.createElement("div",{className:ue,title:typeof w=="string"?w:void 0},w),I.createElement("ul",{className:se},I.Children.map(re,this.renderInnerMenuItem)))}}]),pe}(I.Component);ct.isMenuItemGroup=!0,ct.defaultProps={disabled:!0};var Wt=ct,_t=function(te){var pe=te.className,S=te.rootPrefixCls,i=te.style;return I.createElement("li",{className:"".concat(pe," ").concat(S,"-item-divider"),style:i})};_t.defaultProps={disabled:!0,className:"",style:{}};var kt=_t,jt=Oe.e=Me},"55Ip":function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return Z}),a.d(Oe,"b",function(){return K});var D=a("Ty5D"),R=a("dI71"),Ke=a("q1tI"),P=a.n(Ke),o=a("YS25"),C=a("17x9"),I=a.n(C),u=a("wx14"),ae=a("zLVn"),xe=a("9R94"),Y=function(h){Object(R.a)(c,h);function c(){for(var V,q=arguments.length,je=new Array(q),J=0;J=0||q.relatedTarget.className.indexOf("".concat(Ue,"-next"))>=0))return;h.setState({goInputText:""}),B(h.getValidValue())},h.go=function(q){var je=h.state.goInputText;if(je==="")return;(q.keyCode===k.ENTER||q.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(o.a)(r,[{key:"getValidValue",value:function(){var c=this.state,L=c.goInputText,V=c.current;return!L||isNaN(L)?V:Number(L)}},{key:"getPageSizeOptions",value:function(){var c=this.props,L=c.pageSize,V=c.pageSizeOptions;return V.some(function(q){return q.toString()===L.toString()})?V:V.concat([L.toString()]).sort(function(q,je){var J=isNaN(Number(q))?0:Number(q),B=isNaN(Number(je))?0:Number(je);return J-B})}},{key:"render",value:function(){var c=this,L=this.props,V=L.pageSize,q=L.locale,je=L.rootPrefixCls,J=L.changeSize,B=L.quickGo,Ue=L.goButton,rt=L.selectComponentClass,Mt=L.buildOptionText,Ve=L.selectPrefixCls,Te=L.disabled,lt=this.state.goInputText,pt="".concat(je,"-options"),mt=rt,ht=null,oe=null,De=null;if(!J&&!B)return null;var Ze=this.getPageSizeOptions();if(J&&mt){var Be=Ze.map(function(fe,ve){return ae.a.createElement(mt.Option,{key:ve,value:fe.toString()},(Mt||c.buildOptionText)(fe))});ht=ae.a.createElement(mt,{disabled:Te,prefixCls:Ve,showSearch:!1,className:"".concat(pt,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(V||Ze[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ve){return ve.parentNode}},Be)}return B&&(Ue&&(De=typeof Ue=="boolean"?ae.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Te,className:"".concat(pt,"-quick-jumper-button")},q.jump_to_confirm):ae.a.createElement("span",{onClick:this.go,onKeyUp:this.go},Ue)),oe=ae.a.createElement("div",{className:"".concat(pt,"-quick-jumper")},q.jump_to,ae.a.createElement("input",{disabled:Te,type:"text",value:lt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),q.page,De)),ae.a.createElement("li",{className:"".concat(pt)},ht,oe)}}]),r}(ae.a.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=y,A=a("N2Kk");function _(){}function Z(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function ie(z,K,r){return r}function le(z,K,r){var h=typeof z=="undefined"?K.pageSize:z;return Math.floor((r.total-1)/h)+1}var Ne=function(z){Object(C.a)(r,z);var K=Object(I.a)(r);function r(h){var c;Object(P.a)(this,r),c=K.call(this,h),c.getJumpPrevPage=function(){return Math.max(1,c.state.current-(c.props.showLessItems?3:5))},c.getJumpNextPage=function(){return Math.min(le(void 0,c.state,c.props),c.state.current+(c.props.showLessItems?3:5))},c.getItemIcon=function(J,B){var Ue=c.props.prefixCls,rt=J||ae.a.createElement("button",{type:"button","aria-label":B,className:"".concat(Ue,"-item-link")});return typeof J=="function"&&(rt=ae.a.createElement(J,Object(Ke.a)({},c.props))),rt},c.savePaginationNode=function(J){c.paginationNode=J},c.isValid=function(J){return Z(J)&&J!==c.state.current},c.shouldDisplayQuickJumper=function(){var J=c.props,B=J.showQuickJumper,Ue=J.pageSize,rt=J.total;return rt<=Ue?!1:B},c.handleKeyDown=function(J){(J.keyCode===k.ARROW_UP||J.keyCode===k.ARROW_DOWN)&&J.preventDefault()},c.handleKeyUp=function(J){var B=c.getValidValue(J),Ue=c.state.currentInputValue;B!==Ue&&c.setState({currentInputValue:B}),J.keyCode===k.ENTER?c.handleChange(B):J.keyCode===k.ARROW_UP?c.handleChange(B-1):J.keyCode===k.ARROW_DOWN&&c.handleChange(B+1)},c.changePageSize=function(J){var B=c.state.current,Ue=le(J,c.state,c.props);B=B>Ue?Ue:B,Ue===0&&(B=c.state.current),typeof J=="number"&&("pageSize"in c.props||c.setState({pageSize:J}),"current"in c.props||c.setState({current:B,currentInputValue:B})),c.props.onShowSizeChange(B,J),"onChange"in c.props&&c.props.onChange&&c.props.onChange(B,J)},c.handleChange=function(J){var B=c.props.disabled,Ue=J;if(c.isValid(Ue)&&!B){var rt=le(void 0,c.state,c.props);Ue>rt?Ue=rt:Ue<1&&(Ue=1),"current"in c.props||c.setState({current:Ue,currentInputValue:Ue});var Mt=c.state.pageSize;return c.props.onChange(Ue,Mt),Ue}return c.state.current},c.prev=function(){c.hasPrev()&&c.handleChange(c.state.current-1)},c.next=function(){c.hasNext()&&c.handleChange(c.state.current+1)},c.jumpPrev=function(){c.handleChange(c.getJumpPrevPage())},c.jumpNext=function(){c.handleChange(c.getJumpNextPage())},c.hasPrev=function(){return c.state.current>1},c.hasNext=function(){return c.state.current2?Ue-2:0),Mt=2;Mt=V?je=V:je=Number(L),je}},{key:"getShowSizeChanger",value:function(){var c=this.props,L=c.showSizeChanger,V=c.total,q=c.totalBoundaryShowSizeChanger;return typeof L!="undefined"?L:V>q}},{key:"renderPrev",value:function(c){var L=this.props,V=L.prevIcon,q=L.itemRender,je=q(c,"prev",this.getItemIcon(V,"prev page")),J=!this.hasPrev();return Object(u.isValidElement)(je)?Object(u.cloneElement)(je,{disabled:J}):je}},{key:"renderNext",value:function(c){var L=this.props,V=L.nextIcon,q=L.itemRender,je=q(c,"next",this.getItemIcon(V,"next page")),J=!this.hasNext();return Object(u.isValidElement)(je)?Object(u.cloneElement)(je,{disabled:J}):je}},{key:"render",value:function(){var c=this,L=this.props,V=L.prefixCls,q=L.className,je=L.style,J=L.disabled,B=L.hideOnSinglePage,Ue=L.total,rt=L.locale,Mt=L.showQuickJumper,Ve=L.showLessItems,Te=L.showTitle,lt=L.showTotal,pt=L.simple,mt=L.itemRender,ht=L.showPrevNextJumpers,oe=L.jumpPrevIcon,De=L.jumpNextIcon,Ze=L.selectComponentClass,Be=L.selectPrefixCls,fe=L.pageSizeOptions,ve=this.state,Xe=ve.current,bt=ve.pageSize,Nt=ve.currentInputValue;if(B===!0&&Ue<=bt)return null;var Fe=le(void 0,this.state,this.props),yt=[],Yt=null,Lt=null,fn=null,En=null,Jt=null,Pt=Mt&&Mt.goButton,Kt=Ve?1:2,hn=Xe-1>0?Xe-1:0,Ln=Xe+1=Kt*2&&Xe!==1+2&&(yt[0]=Object(u.cloneElement)(yt[0],{className:"".concat(V,"-item-after-jump-prev")}),yt.unshift(Yt)),Fe-Xe>=Kt*2&&Xe!==Fe-2&&(yt[yt.length-1]=Object(u.cloneElement)(yt[yt.length-1],{className:"".concat(V,"-item-before-jump-next")}),yt.push(Lt)),_e!==1&&yt.unshift(fn),He!==Fe&&yt.push(En)}var $e=null;lt&&($e=ae.a.createElement("li",{className:"".concat(V,"-total-text")},lt(Ue,[Ue===0?0:(Xe-1)*bt+1,Xe*bt>Ue?Ue:Xe*bt])));var We=!this.hasPrev()||!Fe,Ye=!this.hasNext()||!Fe;return ae.a.createElement("ul",Object(D.a)({className:Y()(V,q,Object(R.a)({},"".concat(V,"-disabled"),J)),style:je,unselectable:"unselectable",ref:this.savePaginationNode},In),$e,ae.a.createElement("li",{title:Te?rt.prev_page:null,onClick:this.prev,tabIndex:We?null:0,onKeyPress:this.runIfEnterPrev,className:Y()("".concat(V,"-prev"),Object(R.a)({},"".concat(V,"-disabled"),We)),"aria-disabled":We},this.renderPrev(hn)),yt,ae.a.createElement("li",{title:Te?rt.next_page:null,onClick:this.next,tabIndex:Ye?null:0,onKeyPress:this.runIfEnterNext,className:Y()("".concat(V,"-next"),Object(R.a)({},"".concat(V,"-disabled"),Ye)),"aria-disabled":Ye},this.renderNext(Ln)),ae.a.createElement(p,{disabled:J,locale:rt,rootPrefixCls:V,selectComponentClass:Ze,selectPrefixCls:Be,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Xe,pageSize:bt,pageSizeOptions:fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Pt}))}}],[{key:"getDerivedStateFromProps",value:function(c,L){var V={};if("current"in c&&(V.current=c.current,c.current!==L.current&&(V.currentInputValue=V.current)),"pageSize"in c&&c.pageSize!==L.pageSize){var q=L.current,je=le(c.pageSize,L,c);q=q>je?je:q,"current"in c||(V.current=q,V.currentInputValue=q),V.pageSize=c.pageSize}return V}}]),r}(ae.a.Component);Ne.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:_,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:_,locale:A.a,style:{},itemRender:ie,totalBoundaryShowSizeChanger:50};var H=Ne},"6RRn":function(Ht,Oe,a){"use strict";var D=a("wCXF"),R=a("n6Qo");a.d(Oe,"b",function(){return R.a});var Ke=a("IBYe"),P=a("6eGT"),o=a("hW8S");a.d(Oe,"a",function(){return o.a}),Oe.c=D.b},"6eGT":function(Ht,Oe,a){"use strict";function D(R){return null}Oe.a=D},"7ixt":function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return Ke});var D={adjustX:1,adjustY:1},R=[0,0],Ke={left:{points:["cr","cl"],overflow:D,offset:[-4,0],targetOffset:R},right:{points:["cl","cr"],overflow:D,offset:[4,0],targetOffset:R},top:{points:["bc","tc"],overflow:D,offset:[0,-4],targetOffset:R},bottom:{points:["tc","bc"],overflow:D,offset:[0,4],targetOffset:R},topLeft:{points:["bl","tl"],overflow:D,offset:[0,-4],targetOffset:R},leftTop:{points:["tr","tl"],overflow:D,offset:[-4,0],targetOffset:R},topRight:{points:["br","tr"],overflow:D,offset:[0,-4],targetOffset:R},rightTop:{points:["tl","tr"],overflow:D,offset:[4,0],targetOffset:R},bottomRight:{points:["tr","br"],overflow:D,offset:[0,4],targetOffset:R},rightBottom:{points:["bl","br"],overflow:D,offset:[4,0],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:D,offset:[0,4],targetOffset:R},leftBottom:{points:["br","bl"],overflow:D,offset:[-4,0],targetOffset:R}},P=Ke},"815F":function(Ht,Oe,a){"use strict";a.d(Oe,"e",function(){return I}),a.d(Oe,"c",function(){return ae}),a.d(Oe,"d",function(){return xe}),a.d(Oe,"a",function(){return Q}),a.d(Oe,"f",function(){return G}),a.d(Oe,"b",function(){return k});var D=a("KQm4"),R=a("VTBJ"),Ke=a("Ff2n"),P=a("Zm9Q"),o=a("Kwbf"),C=a("OZM5");function I(y,p){return y!=null?y:p}function u(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function A(_){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(_||[]).forEach(function(ie){var le=ie.key,Ne=ie.children;Object(o.a)(le!=null,"Tree node must have a certain key: [".concat(Z).concat(le,"]"));var H=String(le);Object(o.a)(!p.has(H)||le===null||le===void 0,"Same 'key' exist in the Tree: ".concat(H)),p.set(H,!0),A(Ne,"".concat(Z).concat(H," > "))})}A(y)}function ae(y){function p(A){var _=Object(P.a)(A);return _.map(function(Z){if(!Object(C.i)(Z))return Object(o.a)(!Z,"Tree/TreeNode can only accept TreeNode as children."),null;var ie=Z.key,le=Z.props,Ne=le.children,H=Object(Ke.a)(le,["children"]),z=Object(R.a)({key:ie},H),K=p(Ne);return K.length&&(z.children=K),z}).filter(function(Z){return Z})}return p(y)}function xe(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],A=new Set(p===!0?[]:p),_=[];function Z(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ie.map(function(Ne,H){var z=Object(C.h)(le?le.pos:"0",H),K=I(Ne.key,z),r=Object(R.a)(Object(R.a)({},Ne),{},{parent:le,pos:z,children:null,data:Ne,isStart:[].concat(Object(D.a)(le?le.isStart:[]),[H===0]),isEnd:[].concat(Object(D.a)(le?le.isEnd:[]),[H===ie.length-1])});return _.push(r),p===!0||A.has(K)?r.children=Z(Ne.children||[],r):r.children=[],r})}return Z(y),_}function Y(y,p,A){var _;A?typeof A=="string"?_=function(le){return le[A]}:typeof A=="function"&&(_=function(le){return A(le)}):_=function(le,Ne){return I(le.key,Ne)};function Z(ie,le,Ne){var H=ie?ie.children:y,z=ie?Object(C.h)(Ne.pos,le):"0";if(ie){var K=_(ie,z),r={node:ie,index:le,pos:z,key:K,parentPos:Ne.node?Ne.pos:null,level:Ne.level+1};p(r)}H&&H.forEach(function(h,c){Z(h,c,{node:ie,pos:z,level:Ne?Ne.level+1:-1})})}Z(null)}function Q(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=p.initWrapper,_=p.processEntity,Z=p.onProcessFinished,ie=arguments.length>2?arguments[2]:void 0,le={},Ne={},H={posEntities:le,keyEntities:Ne};return A&&(H=A(H)||H),Y(y,function(z){var K=z.node,r=z.index,h=z.pos,c=z.key,L=z.parentPos,V=z.level,q={node:K,index:r,key:c,pos:h,level:V},je=I(c,h);le[h]=q,Ne[je]=q,q.parent=le[L],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),_&&_(q,H)},ie),Z&&Z(H),H}function G(y,p){var A=p.expandedKeys,_=p.selectedKeys,Z=p.loadedKeys,ie=p.loadingKeys,le=p.checkedKeys,Ne=p.halfCheckedKeys,H=p.dragOverNodeKey,z=p.dropPosition,K=p.keyEntities,r=K[y],h={eventKey:y,expanded:A.indexOf(y)!==-1,selected:_.indexOf(y)!==-1,loaded:Z.indexOf(y)!==-1,loading:ie.indexOf(y)!==-1,checked:le.indexOf(y)!==-1,halfChecked:Ne.indexOf(y)!==-1,pos:String(r?r.pos:""),dragOver:H===y&&z===0,dragOverGapTop:H===y&&z===-1,dragOverGapBottom:H===y&&z===1};return h}function k(y){var p=y.data,A=y.expanded,_=y.selected,Z=y.checked,ie=y.loaded,le=y.loading,Ne=y.halfChecked,H=y.dragOver,z=y.dragOverGapTop,K=y.dragOverGapBottom,r=y.pos,h=y.active,c=Object(R.a)(Object(R.a)({},p),{},{expanded:A,selected:_,checked:Z,loaded:ie,loading:le,halfChecked:Ne,dragOver:H,dragOverGapTop:z,dragOverGapBottom:K,pos:r,active:h});return"props"in c||Object.defineProperty(c,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),y}}),c}},A06Q:function(Ht,Oe,a){"use strict";a.r(Oe);var D=a("cWXX"),R=a("/ezw"),Ke=a("DjyN"),P=a("NUBc"),o=a("oBTY"),C=a("miYZ"),I=a("tsqr"),u=a("9og8"),ae=a("sRBo"),xe=a("kaz8"),Y=a("14J3"),Q=a("BMrR"),G=a("5NDa"),k=a("5rEg"),y=a("jCWc"),p=a("kPKH"),A=a("k1fw"),_=a("tJVT"),Z=a("B9cy"),ie=a("Ol7k"),le=a("lUTK"),Ne=a("BvKs"),H=a("WmNS"),z=a.n(H),K=a("q1tI"),r=a.n(K),h=a("Ty5D"),c=a("55Ip"),L=a("9kvl"),V=a("ErOA"),q=a("wd/R"),je=a.n(q),J=a("1vsH"),B=a("xKgJ"),Ue=a("BdwD"),rt=a("2qtc"),Mt=a("kLXV"),Ve=a("5Dmo"),Te=a("3S7+"),lt=a("jrin"),pt=a("+L6B"),mt=a("2/Rp"),ht=a("y8nQ"),oe=a("Vl3Y"),De=a("Znn+"),Ze=a("ZTPi"),Be=a("RotF"),fe=a.n(Be),ve=a("O9y4"),Xe=a.n(ve),bt=Ze.a.TabPane,Nt=function(Me){var Pe,Je=Me.polls,tt=Me.loading,ct=Me.dispatch,Wt=Object(h.i)(),_t=Object(h.h)(),kt=oe.a.useForm(),jt=Object(_.a)(kt,1),Se=jt[0],te=Je.brankList,pe=Object(K.useState)(!0),S=Object(_.a)(pe,2),i=S[0],d=S[1],ne=Object(K.useState)("myself"),F=Object(_.a)(ne,2),ue=F[0],se=F[1],w=Object(K.useState)([]),re=Object(_.a)(w,2),Le=re[0],Ot=re[1],st=Object(K.useState)(!1),ln=Object(_.a)(st,2),dn=ln[0],Un=ln[1],Nn=Object(K.useState)(),et=Object(_.a)(Nn,2),tn=et[0],sn=et[1],Sn=Object(K.useState)({page:0,limit:20,object_type:"poll",search:"",filter:"myself"}),Xt=Object(_.a)(Sn,2),Qt=Xt[0],Rn=Xt[1],$t=[{name:"\u6211\u7684\u8D44\u6E90",id:"myself"},{name:"\u516C\u5171\u8D44\u6E90",id:"public"}];Object(K.useEffect)(function(){Je.actionTabs.key==="\u95EE\u5377\u9009\u7528"&&Mn()},[Je.actionTabs.key]);var Hn=[],Mn=function(){var Rt=Object(u.a)(z.a.mark(function vn(){var un,Cn;return z.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(!i){Xn.next=13;break}return Un(!1),++Qt.page,d(!1),Xn.next=6,ct({type:"polls/getBrankList",payload:Object(A.a)({},Qt)});case 6:Cn=Xn.sent,Le=Object(o.a)(Le.concat(Cn.object_list)),sn(Cn.is_teacher),((un=Cn.object_list)===null||un===void 0?void 0:un.length)0&&(d([].concat(Object(o.a)(i),Object(o.a)($t==null?void 0:$t.course_info))),se($t==null?void 0:$t.count)),Un(!1),Rn||_t.setFieldsValue((Rt={},Object(lt.a)(Rt,"group_ids",$t==null||((Mn=$t.course_info)===null||Mn===void 0)?void 0:Mn.map(function(Cn){return String(Cn.course_group_id)})),Object(lt.a)(Rt,"end_time",je()(je()(new Date(Object(J.b)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))),Rt)));case 5:case"end":return un.stop()}},Qt)}));return function(Rn){return Xt.apply(this,arguments)}}(),et=function(Qt){te(Qt),Nn(Qt)},tn=function(){var Xt=Object(u.a)(z.a.mark(function Qt(){var Rn,$t;return z.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Rn=Object(A.a)({},_t.getFieldsValue()),Mn.next=3,Object(V.a)("/api/courses/".concat(tt.coursesId,"/polls/publish.json"),{method:"post",body:{check_ids:Object(o.a)(Pe.actionTabs.selectArrs),group_ids:Rn.group_ids?Object(o.a)(Rn.group_ids):[],end_time:je()(Rn.end_time).format("YYYY-MM-DD HH:mm")}});case 3:$t=Mn.sent,$t.status===0&&(Object(J.Y)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u7ACB\u5373\u53D1\u5E03"]),sn(),I.b.success("\u53D1\u5E03\u6210\u529F"),Je({type:"polls/setActionTabs",payload:{}}),Je({type:"classroomList/getClassroomPollsList",payload:Object(A.a)({},Pe.actionTabs.params)}));case 5:case"end":return Mn.stop()}},Qt)}));return function(){return Xt.apply(this,arguments)}}(),sn=function(){te(1),d([])},Sn=ue>Se*Le;return r.a.createElement(Mt.a,{centered:!0,title:"\u7ACB\u5373\u53D1\u5E03",visible:Pe.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u7ACB\u5373\u53D1\u5E03",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:tn,onCancel:function(){sn(),Je({type:"polls/setActionTabs",payload:{}})}},r.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u95EE\u5377",r.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u95EE\u5377\u6709\u6548'),i&&r.a.createElement(oe.a,{form:_t},r.a.createElement(Q.a,{className:"mt30"},r.a.createElement(p.a,{flex:1},"\u53D1\u5E03\u65F6\u95F4\uFF1A",je()().format("YYYY-MM-DD HH:mm")),r.a.createElement(p.a,null,r.a.createElement(Q.a,null,r.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),r.a.createElement(oe.a.Item,{name:"end_time"},r.a.createElement(fn.a,{style:{width:170},getPopupContainer:function(Qt){return Qt.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:je()(Object(J.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))))),(i==null?void 0:i.length)>0&&r.a.createElement("div",{style:{background:"#F4FAFF",maxHeight:260,overflow:"auto",padding:"16px 18px 0 18px"}},r.a.createElement(fe.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:et,hasMore:Sn,useWindow:!1},r.a.createElement(oe.a.Item,{name:"group_ids"},r.a.createElement(xe.a.Group,null,i.map(function(Xt,Qt){return r.a.createElement("div",{key:Qt},r.a.createElement(xe.a,{onChange:function($t){},key:Qt,value:String(Xt.course_group_id),defaultChecked:!0,style:{width:430},className:"multi-ellipsis1 multi-ellipsis1-checkbox"},r.a.createElement("span",null,Xt.course_group_name)))}))),dn&&r.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},r.a.createElement(Yt.a,null))))))},Pt=Object(L.a)(function(Ge){var Me=Ge.polls;return{polls:Me}})(Jt),Kt=a("PpiC"),hn=function(Me){var Pe=Me.polls,Je=Me.dispatch,tt=Me.user,ct=Object(Kt.a)(Me,["polls","dispatch","user"]),Wt=Object(h.i)(),_t=Object(K.useState)(!1),kt=Object(_.a)(_t,2),jt=kt[0],Se=kt[1];Object(K.useEffect)(function(){if(Pe.actionTabs.key==="\u5220\u9664"){if(Object(B.u)()){Se(!0);return}var pe={hasNum:0,noHasNum:0};Pe.actionTabs.selectArrsAll.map(function(S){var i;S.author_login===((i=tt.userInfo)===null||i===void 0?void 0:i.login)?++pe.hasNum:++pe.noHasNum}),pe.noHasNum>0?Mt.a.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:r.a.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",r.a.createElement("span",{className:"c-blue"},pe.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",r.a.createElement("span",{className:"c-red"},pe.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",r.a.createElement("br",null),"\u8BFE\u5802\u5185\u53EA\u80FD\u5220\u9664\u672C\u4EBA\u53D1\u5E03\u7684\u8D44\u6E90\uFF0C\u8BF7\u53D6\u6D88\u9009\u4E2D\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u7684\u8D44\u6E90\u3002"),onOk:function(){te()}}):Se(!0)}else Se(!1)},[Pe.actionTabs.key]);var te=function(){Je({type:"polls/setActionTabs",payload:{}})};return r.a.createElement(Mt.a,{centered:!0,title:"\u63D0\u793A",visible:jt,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(u.a)(z.a.mark(function pe(){var S;return z.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Object(V.a)("/api/courses/".concat(Wt.coursesId,"/polls/destroys.json"),{method:"post",body:{check_ids:Object(o.a)(Pe.actionTabs.selectArrs)}});case 2:S=d.sent,S.status===0&&(Object(J.Y)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u5220\u9664"]),I.b.success("\u5220\u9664\u6210\u529F"),Je({type:"polls/setActionTabs",payload:{}}),Je({type:"classroomList/getClassroomPollsList",payload:Object(A.a)({},Pe.actionTabs.params)}),Je({type:"classroomList/getClassroomLeftMenus",payload:{id:Wt.coursesId}}));case 4:case"end":return d.stop()}},pe)})),onCancel:function(){Je({type:"polls/setActionTabs",payload:{}})}},r.a.createElement("p",null,"\u63D0\u4EA4\u4F5C\u54C1\u5C06\u5168\u90E8\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u6062\u590D"),r.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},Ln=Object(L.a)(function(Ge){var Me=Ge.polls,Pe=Ge.user;return{polls:Me,user:Pe}})(hn),In=a("g9YV"),pn=a("wCAj"),Dn=function(Me){var Pe,Je=Me.polls,tt=Me.loading,ct=Me.dispatch,Wt=Object(h.i)(),_t=Object(h.h)(),kt=Object(K.useState)([]),jt=Object(_.a)(kt,2),Se=jt[0],te=jt[1];Object(K.useEffect)(function(){if(Je.actionTabs.key==="\u7ACB\u5373\u622A\u6B62")var F=ct({type:"polls/getEndGroups",payload:Object(A.a)(Object(A.a)({},Wt),{},{check_ids:[Je.actionTabs.selectArrs]})}).then(function(ue){if(!ue.status){var se,w=[];(se=ue.course_info)===null||se===void 0||se.map(function(re){w.push({id:re.course_group_id,checked:!0,time:je()().add(7,"days")})}),te([].concat(w))}})},[Je.actionTabs.key]);var pe=oe.a.useForm(),S=Object(_.a)(pe,1),i=S[0],d=function(ue){return ue&&ue0&&Object(B.c)()&&r.a.createElement("aside",{className:He.a.acitons},r.a.createElement("div",null,r.a.createElement(xe.a,{checked:((ct=d.polls)===null||ct===void 0?void 0:ct.length)===se.length,onChange:function(tn){if(tn.target.checked){var sn;w((sn=d.polls)===null||sn===void 0?void 0:sn.map(function(Sn){return Sn.id}))}else w([])}},r.a.createElement("span",{className:"ml5"},"\u5DF2\u9009\u62E9 ",se.length," \u4E2A \uFF08\u4E0D\u652F\u6301\u8DE8\u9875\u52FE\u9009\uFF09"))),r.a.createElement("div",null,Nn.map(function(et,tn){return r.a.createElement("p",{key:tn,onClick:Object(u.a)(z.a.mark(function sn(){var Sn,Xt,Qt;return z.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:if(!(se=="")){$t.next=6;break}Sn="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1",et==="\u6536\u85CF"&&(Sn="\u8BF7\u9009\u62E9\u8981\u6536\u85CF\u7684\u95EE\u5377"),I.b.error(Sn),$t.next=13;break;case 6:if(!(et==="\u6536\u85CF")){$t.next=12;break}return $t.next=9,Object(V.a)("/api/courses/".concat(S.id,"/polls/join_poll_banks.json"),{method:"post",body:{check_ids:Object(o.a)(se)}});case 9:return Qt=$t.sent,Qt.status===0&&I.b.success("\u64CD\u4F5C\u6210\u529F"),$t.abrupt("return",!1);case 12:Se({type:"polls/setActionTabs",payload:{key:et,selectArrs:se,selectArrsAll:(Xt=d.polls)===null||Xt===void 0?void 0:Xt.filter(function(Hn){return se.includes(Hn.id)}),params:S}});case 13:case"end":return $t.stop()}},sn)}))},r.a.createElement("span",null,et))}))),r.a.createElement(R.a,{loading:jt["classroomList/getClassroomPollsList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},d.polls_counts&&d.polls_counts.polls_all_counts===0&&r.a.createElement(Ue.a,null),d.polls&&d.polls.map(function(et,tn){var sn;return r.a.createElement("div",{className:He.a.listItem,key:tn,onClick:function(){(Object(B.s)()||Object(B.c)())&&L.d.push("/classrooms/".concat(S.coursesId,"/poll/").concat(et.id,"/detail"))}},Object(B.c)()&&r.a.createElement(xe.a,{checked:se.includes(et.id),className:"ml30",value:et.id,onClick:function(Xt){return Xt.stopPropagation()},onChange:function(Xt){var Qt=se.indexOf(et.id);se.indexOf(et.id)>-1?w(se.filter(function(Rn){return Rn!==et.id})):w(se.concat(et.id))}}),r.a.createElement("div",{className:He.a.info},r.a.createElement("div",{className:He.a.title},r.a.createElement("div",{className:He.a.titleLeft},r.a.createElement(c.a,{to:Object(B.c)()&&"/classrooms/".concat(S.coursesId,"/poll/").concat(et.id,"/detail")},r.a.createElement("strong",null,et.polls_name)),r.a.createElement(J.k,{status:[Un[et.polls_status]]})),r.a.createElement("div",{className:He.a.titleRight},Object(B.c)()&&r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{onClick:function(Xt){Xt.stopPropagation()},to:"/classrooms/".concat(S.coursesId,"/poll/").concat(et.id,"/edit")},"\u7F16\u8F91"),r.a.createElement(c.a,{onClick:function(Xt){Xt.stopPropagation()},to:"/classrooms/".concat(S.coursesId,"/poll/").concat(et.id,"/detail?tabs=3")},"\u8BBE\u7F6E")),Object(B.s)()&&r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{onClick:function(Xt){Xt.stopPropagation()},to:"/classrooms/".concat(S.coursesId,"/poll/").concat(et.id,"/users/").concat((sn=Wt.userInfo)===null||sn===void 0?void 0:sn.login)},et.current_status===0&&"\u7EE7\u7EED\u7B54\u9898",et.current_status===1&&"\u67E5\u770B\u7B54\u9898",et.current_status===2&&"\u5F00\u59CB\u7B54\u9898")))),r.a.createElement("p",null,r.a.createElement("span",null,et.author),et.publish_time&&et.polls_status===1&&r.a.createElement("span",{className:"ml20"},"\u5C06\u53D1\u5E03\u4E8E",je()(et.publish_time).format("YYYY-MM-DD HH:mm")),!et.publish_time&&et.created_at&&et.polls_status===1&&r.a.createElement("span",{className:"ml20"},"\u521B\u5EFA\u4E8E",je()(et.created_at).fromNow()),et.polls_status!==1&&r.a.createElement("span",{className:"ml20"},et.poll_answer,"\u5DF2\u7B54"),et.polls_status!==1&&r.a.createElement("span",{className:"ml20"},et.poll_unanswer,"\u672A\u7B54"),et.polls_status==2&&et.publish_time&&et.end_time&&r.a.createElement("span",{className:"ml20"},"\u63D0\u4EA4\u5269\u4F59\u65F6\u95F4\uFF1A",Object(J.X)((new Date(et.end_time).getTime()-new Date().getTime())/1e3)))))}),r.a.createElement("aside",{className:"tc mb50 mt30"},r.a.createElement(P.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:st,defaultCurrent:S.page,current:S.page||1,defaultPageSize:15,total:d.polls_counts&&d.polls_counts.polls_all_counts}))),r.a.createElement(Pt,null),r.a.createElement(Ln,null),r.a.createElement(Re,null),r.a.createElement(sa,null),r.a.createElement(Fe,{cb:function(){return w([])}}))},Ye=Oe.default=Object(L.a)(function(Ge){var Me=Ge.user,Pe=Ge.classroomList,Je=Ge.loading,tt=Ge.globalSetting;return{user:Me,classroomList:Pe,globalSetting:tt,loading:Je.effects}})(We)},BdwD:function(Ht,Oe,a){"use strict";var D=a("+L6B"),R=a("2/Rp"),Ke=a("0Owb"),P=a("k1fw"),o=a("q1tI"),C=a.n(o),I=a("FOrL"),u=a.n(I),ae=function(Y){var Q=Y.buttonProps,G=Q===void 0?{}:Q,k=Y.styles,y=k===void 0?{}:k,p=Y.customText,A=Y.ButtonText,_=Y.ButtonClick,Z=Y.Buttonclass,ie=Y.ButtonTwo;return C.a.createElement("section",{className:"tc animated fadeIn",style:Object(P.a)(Object(P.a)({},{color:"#999",margin:"200px auto"}),y)},C.a.createElement("img",{src:u.a}),C.a.createElement("p",{className:"mt20 font14"},p||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),A&&C.a.createElement(R.a,Object(Ke.a)({className:Z,onClick:_},G),A),ie&&ie)};Oe.a=ae},FOrL:function(Ht,Oe,a){Ht.exports=a.p+"static/nodata.a6b3f948.png"},Gytx:function(Ht,Oe){Ht.exports=function(D,R,Ke,P){var o=Ke?Ke.call(P,D,R):void 0;if(o!==void 0)return!!o;if(D===R)return!0;if(typeof D!="object"||!D||typeof R!="object"||!R)return!1;var C=Object.keys(D),I=Object.keys(R);if(C.length!==I.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(R),ae=0;ae=0)continue;if(!Object.prototype.hasOwnProperty.call(Q,y))continue;k[y]=Q[y]}return k}function u(Q,G){if(!(Q instanceof G))throw new TypeError("Cannot call a class as a function")}function ae(Q,G){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:Q}function xe(Q,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);Q.prototype=Object.create(G&&G.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,G):Q.__proto__=G)}var Y=function(Q){xe(G,Q);function G(k){u(this,G);var y=ae(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,k));return y.scrollListener=y.scrollListener.bind(y),y.eventListenerOptions=y.eventListenerOptions.bind(y),y.mousewheelListener=y.mousewheelListener.bind(y),y}return D(G,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var y=this.getParentElement(this.scrollComponent);y.scrollTop=y.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var y=!1,p={get passive(){y=!0}};try{document.addEventListener("test",null,p),document.removeEventListener("test",null,p)}catch(A){}return y}},{key:"eventListenerOptions",value:function(){var y=this.props.useCapture;return this.isPassiveSupported()&&(y={useCapture:this.props.useCapture,passive:!0}),y}},{key:"setDefaultLoader",value:function(y){this.defaultLoader=y}},{key:"detachMousewheelListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.scrollComponent.parentNode),y.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.getParentElement(this.scrollComponent)),y.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(y){var p=this.props.getScrollParent&&this.props.getScrollParent();return p!=null?p:y&&y.parentNode}},{key:"filterProps",value:function(y){return y}},{key:"attachScrollListener",value:function(){var y=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!y)return;var p=window;this.props.useWindow===!1&&(p=y),p.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),p.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),p.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(y){y.deltaY===1&&!this.isPassiveSupported()&&y.preventDefault()}},{key:"scrollListener",value:function(){var y=this.scrollComponent,p=window,A=this.getParentElement(y),_=void 0;if(this.props.useWindow){var Z=document.documentElement||document.body.parentNode||document.body,ie=p.pageYOffset!==void 0?p.pageYOffset:Z.scrollTop;this.props.isReverse?_=ie:_=this.calculateOffset(y,ie)}else this.props.isReverse?_=A.scrollTop:_=y.scrollHeight-A.scrollTop-A.clientHeight;_1&&arguments[1]!==void 0?arguments[1]:1,Ye=Kt.length,Ge=0;Ge1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(Ve).map(function(lt,pt){if(!o.isValidElement(lt)||!lt.type)return null;var mt=lt.type.isSelectOptGroup,ht=lt.key,oe=lt.props,De=oe.children,Ze=Object(I.a)(oe,["children"]);return Te||!mt?K(lt):Object(H.a)(Object(H.a)({key:"__RC_SELECT_GRP__".concat(ht===null?pt:ht,"__"),label:ht},Ze),{},{options:r(De)})}).filter(function(lt){return lt})}var h=a("2Qr1"),c=a("qNPg"),L=a("U8pU"),V=a("Kwbf"),q=a("WKfj");function je(Ve){var Te=Ve.mode,lt=Ve.options,pt=Ve.children,mt=Ve.backfill,ht=Ve.allowClear,oe=Ve.placeholder,De=Ve.getInputElement,Ze=Ve.showSearch,Be=Ve.onSearch,fe=Ve.defaultOpen,ve=Ve.autoFocus,Xe=Ve.labelInValue,bt=Ve.value,Nt=Ve.inputValue,Fe=Ve.optionLabelProp,yt=Te==="multiple"||Te==="tags",Yt=Ze!==void 0?Ze:yt||Te==="combobox",Lt=lt||r(pt);if(Object(V.a)(Te!=="tags"||Lt.every(function(Pt){return!Pt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Te==="tags"||Te==="combobox"){var fn=Lt.some(function(Pt){return Pt.options?Pt.options.some(function(Kt){return typeof("value"in Kt?Kt.value:Kt.key)=="number"}):typeof("value"in Pt?Pt.value:Pt.key)=="number"});Object(V.a)(!fn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(V.a)(Te!=="combobox"||!Fe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(V.a)(Te==="combobox"||!mt,"`backfill` only works with `combobox` mode."),Object(V.a)(Te==="combobox"||!De,"`getInputElement` only work with `combobox` mode."),Object(V.b)(Te!=="combobox"||!De||!ht||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Be&&!Yt&&Te!=="combobox"&&Te!=="tags"&&Object(V.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(V.b)(!fe||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),bt!=null){var En=Object(q.d)(bt);Object(V.a)(!Xe||En.every(function(Pt){return Object(L.a)(Pt)==="object"&&("key"in Pt||"value"in Pt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(V.a)(!yt||Array.isArray(bt),"`value` should be array when `mode` is `multiple` or `tags`")}if(pt){var Jt=null;Object(z.a)(pt).some(function(Pt){if(!o.isValidElement(Pt)||!Pt.type)return!1;var Kt=Pt.type;if(Kt.isSelectOption)return!1;if(Kt.isSelectOptGroup){var hn=Object(z.a)(Pt.props.children).every(function(Ln){return!o.isValidElement(Ln)||!Pt.type||Ln.type.isSelectOption?!0:(Jt=Ln.type,!1)});return!hn}return Jt=Kt,!0}),Jt&&Object(V.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Jt.displayName||Jt.name||Jt,"`.")),Object(V.a)(Nt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var J=je,B=Object(c.a)({prefixCls:"rc-select",components:{optionList:_},convertChildrenToData:r,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:J,fillOptionsWithMissingValue:h.a}),Ue=function(Ve){Object(Ke.a)(lt,Ve);var Te=Object(P.a)(lt);function lt(){var pt;return Object(D.a)(this,lt),pt=Te.apply(this,arguments),pt.selectRef=o.createRef(),pt.focus=function(){pt.selectRef.current.focus()},pt.blur=function(){pt.selectRef.current.blur()},pt}return Object(R.a)(lt,[{key:"render",value:function(){return o.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),lt}(o.Component);Ue.Option=ie,Ue.OptGroup=Ne;var rt=Ue,Mt=Oe.c=rt},NvD2:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return C});var D=a("Kwbf");function R(I,u){var ae=new Set;return I.forEach(function(xe){u.has(xe)||ae.add(xe)}),ae}function Ke(I){var u=I||{},ae=u.disabled,xe=u.disableCheckbox,Y=u.checkable;return!!(ae||xe)||Y===!1}function P(I,u,ae,xe){for(var Y=new Set(I),Q=new Set,G=0;G<=ae;G+=1){var k=u.get(G)||new Set;k.forEach(function(_){var Z=_.key,ie=_.node,le=_.children,Ne=le===void 0?[]:le;Y.has(Z)&&!xe(ie)&&Ne.filter(function(H){return!xe(H.node)}).forEach(function(H){Y.add(H.key)})})}for(var y=new Set,p=ae;p>=0;p-=1){var A=u.get(p)||new Set;A.forEach(function(_){var Z=_.parent,ie=_.node;if(xe(ie)||!_.parent||y.has(_.parent.key))return;if(xe(_.parent.node)){y.add(Z.key);return}var le=!0,Ne=!1;(Z.children||[]).filter(function(H){return!xe(H.node)}).forEach(function(H){var z=H.key,K=Y.has(z);le&&!K&&(le=!1),!Ne&&(K||Q.has(z))&&(Ne=!0)}),le&&Y.add(Z.key),Ne&&Q.add(Z.key),y.add(Z.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(R(Q,Y))}}function o(I,u,ae,xe,Y){for(var Q=new Set(I),G=new Set(u),k=0;k<=xe;k+=1){var y=ae.get(k)||new Set;y.forEach(function(Z){var ie=Z.key,le=Z.node,Ne=Z.children,H=Ne===void 0?[]:Ne;!Q.has(ie)&&!G.has(ie)&&!Y(le)&&H.filter(function(z){return!Y(z.node)}).forEach(function(z){Q.delete(z.key)})})}G=new Set;for(var p=new Set,A=xe;A>=0;A-=1){var _=ae.get(A)||new Set;_.forEach(function(Z){var ie=Z.parent,le=Z.node;if(Y(le)||!Z.parent||p.has(Z.parent.key))return;if(Y(Z.parent.node)){p.add(ie.key);return}var Ne=!0,H=!1;(ie.children||[]).filter(function(z){return!Y(z.node)}).forEach(function(z){var K=z.key,r=Q.has(K);Ne&&!r&&(Ne=!1),!H&&(r||G.has(K))&&(H=!0)}),Ne||Q.delete(ie.key),H&&G.add(ie.key),p.add(ie.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(R(G,Q))}}function C(I,u,ae,xe){var Y=[],Q;xe?Q=xe:Q=Ke;var G=new Set(I.filter(function(A){var _=!!ae[A];return _||Y.push(A),_})),k=new Map,y=0;Object.keys(ae).forEach(function(A){var _=ae[A],Z=_.level,ie=k.get(Z);ie||(ie=new Set,k.set(Z,ie)),ie.add(_),y=Math.max(y,Z)}),Object(D.a)(!Y.length,"Tree missing follow keys: ".concat(Y.slice(0,100).map(function(A){return"'".concat(A,"'")}).join(", ")));var p;return u===!0?p=P(G,k,y,Q):p=o(G,u.halfCheckedKeys,k,y,Q),p}},O9y4:function(Ht,Oe,a){Ht.exports={flex_box_center:"flex_box_center___URTJX",flex_space_between:"flex_space_between___1SMjG",flex_box_vertical_center:"flex_box_vertical_center___34UPH",flex_box_center_end:"flex_box_center_end___3ywkJ",flex_box_column:"flex_box_column___35jG3",line1:"line1___5PIy0",form:"form___BZfpg"}},OLES:function(Ht,Oe,a){"use strict";var D=a("U8pU"),R=a("VTBJ"),Ke=a("Ff2n"),P=a("q1tI"),o=a("uciX"),C=a("7ixt"),I=function(G){var k=G.overlay,y=G.prefixCls,p=G.id,A=G.overlayInnerStyle;return P.createElement("div",{className:"".concat(y,"-inner"),id:p,role:"tooltip",style:A},typeof k=="function"?k():k)},u=I,ae=function(G,k){var y=G.overlayClassName,p=G.trigger,A=p===void 0?["hover"]:p,_=G.mouseEnterDelay,Z=_===void 0?0:_,ie=G.mouseLeaveDelay,le=ie===void 0?.1:ie,Ne=G.overlayStyle,H=G.prefixCls,z=H===void 0?"rc-tooltip":H,K=G.children,r=G.onVisibleChange,h=G.afterVisibleChange,c=G.transitionName,L=G.animation,V=G.placement,q=V===void 0?"right":V,je=G.align,J=je===void 0?{}:je,B=G.destroyTooltipOnHide,Ue=B===void 0?!1:B,rt=G.defaultVisible,Mt=G.getTooltipContainer,Ve=G.overlayInnerStyle,Te=Object(Ke.a)(G,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),lt=Object(P.useRef)(null);Object(P.useImperativeHandle)(k,function(){return lt.current});var pt=Object(R.a)({},Te);"visible"in G&&(pt.popupVisible=G.visible);var mt=function(){var Be=G.arrowContent,fe=Be===void 0?null:Be,ve=G.overlay,Xe=G.id;return[P.createElement("div",{className:"".concat(z,"-arrow"),key:"arrow"},fe),P.createElement(u,{key:"content",prefixCls:z,id:Xe,overlay:ve,overlayInnerStyle:Ve})]},ht=!1,oe=!1;if(typeof Ue=="boolean")ht=Ue;else if(Ue&&Object(D.a)(Ue)==="object"){var De=Ue.keepParent;ht=De===!0,oe=De===!1}return P.createElement(o.a,Object.assign({popupClassName:y,prefixCls:z,popup:mt,action:A,builtinPlacements:C.a,popupPlacement:q,ref:lt,popupAlign:J,getPopupContainer:Mt,onPopupVisibleChange:r,afterPopupVisibleChange:h,popupTransitionName:c,popupAnimation:L,defaultPopupVisible:rt,destroyPopupOnHide:ht,autoDestroy:oe,mouseLeaveDelay:le,popupStyle:Ne,mouseEnterDelay:Z},pt),K)},xe=Object(P.forwardRef)(ae),Y=Oe.a=xe},OZM5:function(Ht,Oe,a){"use strict";a.d(Oe,"b",function(){return xe}),a.d(Oe,"a",function(){return Y}),a.d(Oe,"k",function(){return Q}),a.d(Oe,"h",function(){return G}),a.d(Oe,"i",function(){return k}),a.d(Oe,"g",function(){return y}),a.d(Oe,"c",function(){return p}),a.d(Oe,"d",function(){return A}),a.d(Oe,"j",function(){return ie}),a.d(Oe,"e",function(){return le}),a.d(Oe,"f",function(){return Ne});var D=a("KQm4"),R=a("U8pU"),Ke=a("Ff2n"),P=a("q1tI"),o=a.n(P),C=a("Kwbf"),I=a("WaYH"),u=.25,ae=2;function xe(H,z){var K=H.slice(),r=K.indexOf(z);return r>=0&&K.splice(r,1),K}function Y(H,z){var K=H.slice();return K.indexOf(z)===-1&&K.push(z),K}function Q(H){return H.split("-")}function G(H,z){return"".concat(H,"-").concat(z)}function k(H){return H&&H.type&&H.type.isTreeNode}function y(H,z){var K=[H],r=z[H];function h(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(L){var V=L.key,q=L.children;K.push(V),h(q)})}return h(r.children),K}function p(H,z){var K=H.clientY,r=z.selectHandle.getBoundingClientRect(),h=r.top,c=r.bottom,L=r.height,V=Math.max(L*u,ae);return K<=h+V?-1:K>=c-V?1:0}function A(H,z){if(!H)return;var K=z.multiple;return K?H.slice():H.length?[H[0]]:H}var _=function(z){return z};function Z(H,z){if(!H)return[];var K=z||{},r=K.processProps,h=r===void 0?_:r,c=Array.isArray(H)?H:[H];return c.map(function(L){var V=L.children,q=Object(Ke.a)(L,["children"]),je=Z(V,z);return o.a.createElement(I.a,Object.assign({},h(q)),je)})}function ie(H){if(!H)return null;var z;if(Array.isArray(H))z={checkedKeys:H,halfCheckedKeys:void 0};else if(Object(R.a)(H)==="object")z={checkedKeys:H.checked||void 0,halfCheckedKeys:H.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return z}function le(H,z){var K=new Set;function r(h){if(K.has(h))return;var c=z[h];if(!c)return;K.add(h);var L=c.parent,V=c.node;if(V.disabled)return;L&&r(L.key)}return(H||[]).forEach(function(h){r(h)}),Object(D.a)(K)}function Ne(H){var z={};return Object.keys(H).forEach(function(K){(K.startsWith("data-")||K.startsWith("aria-"))&&(z[K]=H[K])}),z}},QPFH:function(Ht,Oe,a){Ht.exports={flex_box_center:"flex_box_center___1-SU2",flex_space_between:"flex_space_between___3HlrS",flex_box_vertical_center:"flex_box_vertical_center___3tuuc",flex_box_center_end:"flex_box_center_end___1SKe0",flex_box_column:"flex_box_column___35vT0",bg:"bg___1EdmP",containerTitle:"containerTitle___CZaR2",containerDesc:"containerDesc___sJstJ",listItem:"listItem___sJDQR",info:"info___aoOo_",title:"title___1fPmh",titleLeft:"titleLeft___7Sms1",titleRight:"titleRight___34lOT",acitons:"acitons___2fHcW"}},RotF:function(Ht,Oe,a){Ht.exports=a("LSTS")},"SA+Z":function(Ht,Oe,a){var D=a("wTVA"),R=a("EbDI"),Ke=a("ZhPi"),P=a("wkBT");function o(C){return D(C)||R(C)||Ke(C)||P()}Ht.exports=o,Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports},WaYH:function(Ht,Oe,a){"use strict";var D=a("rePB"),R=a("Ff2n"),Ke=a("VTBJ"),P=a("1OyB"),o=a("vuIU"),C=a("JX7q"),I=a("Ji7U"),u=a("LK+K"),ae=a("q1tI"),xe=a("TSYQ"),Y=a.n(xe),Q=a("sboe"),G=a("OZM5"),k=function(z){var K=z.prefixCls,r=z.level,h=z.isStart,c=z.isEnd;if(!r)return null;for(var L="".concat(K,"-indent-unit"),V=[],q=0;q1&&arguments[1]!==void 0?arguments[1]:!1,T=te&&typeof te.getBoundingClientRect=="function"&&te.getBoundingClientRect().width;if(T){if(pe){var i=getComputedStyle(te),d=i.marginLeft,ne=i.marginRight;T+=+d.replace("px","")+ +ne.replace("px","")}T=+T.toFixed(6)}return T||0},De=function(te,pe,T){te&&Object(_.a)(te.style)==="object"&&(te.style[pe]=T)},Ze=function(){return Mt.any},Be=a("KQm4"),fe=a("Ff2n"),ve=a("i8i4"),Xe=a("bdgK"),bt=a("uciX"),Nt=a("8XRh"),Fe={adjustX:1,adjustY:1},yt={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Fe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Fe,offset:[4,0]}},Yt={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Fe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Fe,offset:[4,0]}},Lt=yt,fn=0,En={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Jt=function(te,pe,T){var i=lt(pe),d=te.getState();te.setState({defaultActiveFirst:Object(D.a)(Object(D.a)({},d.defaultActiveFirst),{},Object(Y.a)({},i,T))})},Pt=function(Te){Object(o.a)(pe,Te);var te=Object(C.a)(pe);function pe(T){var i;Object(R.a)(this,pe),i=te.call(this,T),i.onDestroy=function(w){i.props.onDestroy(w)},i.onKeyDown=function(w){var re=w.keyCode,Le=i.menuInstance,Ot=i.props,st=Ot.isOpen,ln=Ot.store;if(re===Q.a.ENTER)return i.onTitleClick(w),Jt(ln,i.props.eventKey,!0),!0;if(re===Q.a.RIGHT)return st?Le.onKeyDown(w):(i.triggerOpenChange(!0),Jt(ln,i.props.eventKey,!0)),!0;if(re===Q.a.LEFT){var dn;if(st)dn=Le.onKeyDown(w);else return;return dn||(i.triggerOpenChange(!1),dn=!0),dn}return st&&(re===Q.a.UP||re===Q.a.DOWN)?Le.onKeyDown(w):void 0},i.onOpenChange=function(w){i.props.onOpenChange(w)},i.onPopupVisibleChange=function(w){i.triggerOpenChange(w,w?"mouseenter":"mouseleave")},i.onMouseEnter=function(w){var re=i.props,Le=re.eventKey,Ot=re.onMouseEnter,st=re.store;Jt(st,i.props.eventKey,!1),Ot({key:Le,domEvent:w})},i.onMouseLeave=function(w){var re=i.props,Le=re.parentMenu,Ot=re.eventKey,st=re.onMouseLeave;Le.subMenuInstance=Object(P.a)(i),st({key:Ot,domEvent:w})},i.onTitleMouseEnter=function(w){var re=i.props,Le=re.eventKey,Ot=re.onItemHover,st=re.onTitleMouseEnter;Ot({key:Le,hover:!0}),st({key:Le,domEvent:w})},i.onTitleMouseLeave=function(w){var re=i.props,Le=re.parentMenu,Ot=re.eventKey,st=re.onItemHover,ln=re.onTitleMouseLeave;Le.subMenuInstance=Object(P.a)(i),st({key:Ot,hover:!1}),ln({key:Ot,domEvent:w})},i.onTitleClick=function(w){var re=Object(P.a)(i),Le=re.props;if(Le.onTitleClick({key:Le.eventKey,domEvent:w}),Le.triggerSubMenuAction==="hover")return;i.triggerOpenChange(!Le.isOpen,"click"),Jt(Le.store,i.props.eventKey,!1)},i.onSubMenuClick=function(w){typeof i.props.onClick=="function"&&i.props.onClick(i.addKeyPath(w))},i.onSelect=function(w){i.props.onSelect(w)},i.onDeselect=function(w){i.props.onDeselect(w)},i.getPrefixCls=function(){return"".concat(i.props.rootPrefixCls,"-submenu")},i.getActiveClassName=function(){return"".concat(i.getPrefixCls(),"-active")},i.getDisabledClassName=function(){return"".concat(i.getPrefixCls(),"-disabled")},i.getSelectedClassName=function(){return"".concat(i.getPrefixCls(),"-selected")},i.getOpenClassName=function(){return"".concat(i.props.rootPrefixCls,"-submenu-open")},i.saveMenuInstance=function(w){i.menuInstance=w},i.addKeyPath=function(w){return Object(D.a)(Object(D.a)({},w),{},{keyPath:(w.keyPath||[]).concat(i.props.eventKey)})},i.triggerOpenChange=function(w,re){var Le=i.props.eventKey,Ot=function(){i.onOpenChange({key:Le,item:Object(P.a)(i),trigger:re,open:w})};re==="mouseenter"?i.mouseenterTimeout=setTimeout(function(){Ot()},0):Ot()},i.isChildrenSelected=function(){var w={find:!1};return mt(i.props.children,i.props.selectedKeys,w),w.find},i.isOpen=function(){return i.props.openKeys.indexOf(i.props.eventKey)!==-1},i.adjustWidth=function(){if(!i.subMenuTitle||!i.menuInstance)return;var w=ve.findDOMNode(i.menuInstance);if(w.offsetWidth>=i.subMenuTitle.offsetWidth)return;w.style.minWidth="".concat(i.subMenuTitle.offsetWidth,"px")},i.saveSubMenuTitle=function(w){i.subMenuTitle=w},i.getBaseProps=function(){var w=Object(P.a)(i),re=w.props;return{mode:re.mode==="horizontal"?"vertical":re.mode,visible:i.props.isOpen,level:re.level+1,inlineIndent:re.inlineIndent,focusable:!1,onClick:i.onSubMenuClick,onSelect:i.onSelect,onDeselect:i.onDeselect,onDestroy:i.onDestroy,selectedKeys:re.selectedKeys,eventKey:"".concat(re.eventKey,"-menu-"),openKeys:re.openKeys,motion:re.motion,onOpenChange:i.onOpenChange,subMenuOpenDelay:re.subMenuOpenDelay,parentMenu:Object(P.a)(i),subMenuCloseDelay:re.subMenuCloseDelay,forceSubMenuRender:re.forceSubMenuRender,triggerSubMenuAction:re.triggerSubMenuAction,builtinPlacements:re.builtinPlacements,defaultActiveFirst:re.store.getState().defaultActiveFirst[lt(re.eventKey)],multiple:re.multiple,prefixCls:re.rootPrefixCls,id:i.internalMenuId,manualRef:i.saveMenuInstance,itemIcon:re.itemIcon,expandIcon:re.expandIcon,direction:re.direction}},i.getMotion=function(w,re){var Le=Object(P.a)(i),Ot=Le.haveRendered,st=i.props,ln=st.motion,dn=st.rootPrefixCls,Un=Object(D.a)(Object(D.a)({},ln),{},{leavedClassName:"".concat(dn,"-hidden"),removeOnLeave:!1,motionAppear:Ot||!re||w!=="inline"});return Un};var d=T.store,ne=T.eventKey,F=d.getState(),ue=F.defaultActiveFirst;i.isRootMenu=!1;var se=!1;return ue&&(se=ue[ne]),Jt(d,ne,se),i}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var i=this,d=this.props,ne=d.mode,F=d.parentMenu,ue=d.manualRef;if(ue&&ue(this),ne!=="horizontal"||!F.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return i.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var i=this.props,d=i.onDestroy,ne=i.eventKey;d&&d(ne),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(i){var d=this,ne=this.getBaseProps(),F=this.getMotion(ne.mode,ne.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ne.visible||ne.forceSubMenuRender,!this.haveOpened)return I.createElement("div",null);var ue=ne.direction;return I.createElement(Nt.default,Object.assign({visible:ne.visible},F),function(se){var w=se.className,re=se.style,Le=A()("".concat(ne.prefixCls,"-sub"),w,Object(Y.a)({},"".concat(ne.prefixCls,"-rtl"),ue==="rtl"));return I.createElement($e,Object.assign({},ne,{id:d.internalMenuId,className:Le,style:re}),i)})}},{key:"render",value:function(){var i,d=Object(D.a)({},this.props),ne=d.isOpen,F=this.getPrefixCls(),ue=d.mode==="inline",se=A()(F,"".concat(F,"-").concat(d.mode),(i={},Object(Y.a)(i,d.className,!!d.className),Object(Y.a)(i,this.getOpenClassName(),ne),Object(Y.a)(i,this.getActiveClassName(),d.active||ne&&!ue),Object(Y.a)(i,this.getDisabledClassName(),d.disabled),Object(Y.a)(i,this.getSelectedClassName(),this.isChildrenSelected()),i));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(fn+=1,this.internalMenuId="$__$".concat(fn,"$Menu")));var w={},re={},Le={};d.disabled||(w={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},re={onClick:this.onTitleClick},Le={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ot={},st=d.direction;ue&&(st==="rtl"?Ot.paddingRight=d.inlineIndent*d.level:Ot.paddingLeft=d.inlineIndent*d.level);var ln={};this.props.isOpen&&(ln={"aria-owns":this.internalMenuId});var dn=null;d.mode!=="horizontal"&&(dn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(dn=I.createElement(this.props.expandIcon,Object(D.a)({},this.props))));var Un=I.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Ot,className:"".concat(F,"-title"),role:"button"},Le,re,{"aria-expanded":ne},ln,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,dn||I.createElement("i",{className:"".concat(F,"-arrow")})),Nn=this.renderChildren(d.children),et=d.parentMenu.isRootMenu?d.parentMenu.props.getPopupContainer:function(vn){return vn.parentNode},tn=En[d.mode],sn=d.popupOffset?{offset:d.popupOffset}:{},Tn=d.mode==="inline"?"":d.popupClassName;Tn+=st==="rtl"?" ".concat(F,"-rtl"):"";var Xt=d.disabled,Qt=d.triggerSubMenuAction,Rn=d.subMenuOpenDelay,$t=d.forceSubMenuRender,Hn=d.subMenuCloseDelay,Mn=d.builtinPlacements;ht.forEach(function(vn){return delete d[vn]}),delete d.onClick;var Rt=st==="rtl"?Object.assign({},Yt,Mn):Object.assign({},yt,Mn);return delete d.direction,I.createElement("li",Object.assign({},d,w,{className:se,role:"menuitem"}),ue&&Un,ue&&Nn,!ue&&I.createElement(bt.a,{prefixCls:F,popupClassName:A()("".concat(F,"-popup"),Tn),getPopupContainer:et,builtinPlacements:Rt,popupPlacement:tn,popupVisible:ne,popupAlign:sn,popup:Nn,action:Xt?[]:[Qt],mouseEnterDelay:Rn,mouseLeaveDelay:Hn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:$t},Un))}}]),pe}(I.Component);Pt.defaultProps={onMouseEnter:Ve,onMouseLeave:Ve,onTitleMouseEnter:Ve,onTitleMouseLeave:Ve,onTitleClick:Ve,manualRef:Ve,mode:"vertical",title:""};var Kt=Object(u.b)(function(Te,te){var pe=Te.openKeys,T=Te.activeKey,i=Te.selectedKeys,d=te.eventKey,ne=te.subMenuKey;return{isOpen:pe.indexOf(d)>-1,active:T[ne]===d,selectedKeys:i}})(Pt);Kt.isSubMenu=!0;var hn=Kt,Ln="menuitem-overflowed",In=.5,pn=function(Te){Object(o.a)(pe,Te);var te=Object(C.a)(pe);function pe(){var T;return Object(R.a)(this,pe),T=te.apply(this,arguments),T.resizeObserver=null,T.mutationObserver=null,T.originalTotalWidth=0,T.overflowedItems=[],T.menuItemSizes=[],T.cancelFrameId=null,T.state={lastVisibleIndex:void 0},T.getMenuItemNodes=function(){var i=T.props.prefixCls,d=ve.findDOMNode(Object(P.a)(T));return d?[].slice.call(d.children).filter(function(ne){return ne.className.split(" ").indexOf("".concat(i,"-overflowed-submenu"))<0}):[]},T.getOverflowedSubMenuItem=function(i,d,ne){var F=T.props,ue=F.overflowedIndicator,se=F.level,w=F.mode,re=F.prefixCls,Le=F.theme;if(se!==1||w!=="horizontal")return null;var Ot=T.props.children[0],st=Ot.props,ln=st.children,dn=st.title,Un=st.style,Nn=Object(fe.a)(st,["children","title","style"]),et=Object(D.a)({},Un),tn="".concat(i,"-overflowed-indicator"),sn="".concat(i,"-overflowed-indicator");d.length===0&&ne!==!0?et=Object(D.a)(Object(D.a)({},et),{},{display:"none"}):ne&&(et=Object(D.a)(Object(D.a)({},et),{},{visibility:"hidden",position:"absolute"}),tn="".concat(tn,"-placeholder"),sn="".concat(sn,"-placeholder"));var Tn=Le?"".concat(re,"-").concat(Le):"",Xt={};return ht.forEach(function(Qt){Nn[Qt]!==void 0&&(Xt[Qt]=Nn[Qt])}),I.createElement(hn,Object.assign({title:ue,className:"".concat(re,"-overflowed-submenu"),popupClassName:Tn},Xt,{key:tn,eventKey:sn,disabled:!1,style:et}),d)},T.setChildrenWidthAndResize=function(){if(T.props.mode!=="horizontal")return;var i=ve.findDOMNode(Object(P.a)(T));if(!i)return;var d=i.children;if(!d||d.length===0)return;var ne=i.children[d.length-1];De(ne,"display","inline-block");var F=T.getMenuItemNodes(),ue=F.filter(function(se){return se.className.split(" ").indexOf(Ln)>=0});ue.forEach(function(se){De(se,"display","inline-block")}),T.menuItemSizes=F.map(function(se){return oe(se,!0)}),ue.forEach(function(se){De(se,"display","none")}),T.overflowedIndicatorWidth=oe(i.children[i.children.length-1],!0),T.originalTotalWidth=T.menuItemSizes.reduce(function(se,w){return se+w},0),T.handleResize(),De(ne,"display","none")},T.handleResize=function(){if(T.props.mode!=="horizontal")return;var i=ve.findDOMNode(Object(P.a)(T));if(!i)return;var d=oe(i);T.overflowedItems=[];var ne=0,F;T.originalTotalWidth>d+In&&(F=-1,T.menuItemSizes.forEach(function(ue){ne+=ue,ne+T.overflowedIndicatorWidth<=d&&(F+=1)})),T.setState({lastVisibleIndex:F})},T}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){var i=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var d=ve.findDOMNode(this);if(!d)return;this.resizeObserver=new Xe.default(function(ne){ne.forEach(function(){var F=i.cancelFrameId;cancelAnimationFrame(F),i.cancelFrameId=requestAnimationFrame(i.setChildrenWidthAndResize)})}),[].slice.call(d.children).concat(d).forEach(function(ne){i.resizeObserver.observe(ne)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){i.resizeObserver.disconnect(),[].slice.call(d.children).concat(d).forEach(function(ne){i.resizeObserver.observe(ne)}),i.setChildrenWidthAndResize()}),this.mutationObserver.observe(d,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(i){var d=this,ne=this.state.lastVisibleIndex;return(i||[]).reduce(function(F,ue,se){var w=ue;if(d.props.mode==="horizontal"){var re=d.getOverflowedSubMenuItem(ue.props.eventKey,[]);ne!==void 0&&d.props.className.indexOf("".concat(d.props.prefixCls,"-root"))!==-1&&(se>ne&&(w=I.cloneElement(ue,{style:{display:"none"},eventKey:"".concat(ue.props.eventKey,"-hidden"),className:"".concat(Ln)})),se===ne+1&&(d.overflowedItems=i.slice(ne+1).map(function(Ot){return I.cloneElement(Ot,{key:Ot.props.eventKey,mode:"vertical-left"})}),re=d.getOverflowedSubMenuItem(ue.props.eventKey,d.overflowedItems)));var Le=[].concat(Object(Be.a)(F),[re,w]);return se===i.length-1&&Le.push(d.getOverflowedSubMenuItem(ue.props.eventKey,[],!0)),Le}return[].concat(Object(Be.a)(F),[w])},[])}},{key:"render",value:function(){var i=this.props,d=i.visible,ne=i.prefixCls,F=i.overflowedIndicator,ue=i.mode,se=i.level,w=i.tag,re=i.children,Le=i.theme,Ot=Object(fe.a)(i,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),st=w;return I.createElement(st,Object.assign({},Ot),this.renderChildren(re))}}]),pe}(I.Component);pn.defaultProps={tag:"div",className:""};var Dn=pn;function sa(Te){return Te.length?Te.every(function(te){return!!te.props.disabled}):!0}function U(Te,te,pe){var T=Te.getState();Te.setState({activeKey:Object(D.a)(Object(D.a)({},T.activeKey),{},Object(Y.a)({},te,pe))})}function Re(Te){return Te.eventKey||"0-menu-"}function _e(Te,te){var pe=te,T=Te.children,i=Te.eventKey;if(pe){var d;if(pt(T,function(ne,F){ne&&ne.props&&!ne.props.disabled&&pe===Se(ne,i,F)&&(d=!0)}),d)return pe}return pe=null,Te.defaultActiveFirst&&pt(T,function(ne,F){!pe&&ne&&!ne.props.disabled&&(pe=Se(ne,i,F))}),pe}function He(Te){if(Te){var te=this.instanceArray.indexOf(Te);te!==-1?this.instanceArray[te]=Te:this.instanceArray.push(Te)}}var it=function(Te){Object(o.a)(pe,Te);var te=Object(C.a)(pe);function pe(T){var i;return Object(R.a)(this,pe),i=te.call(this,T),i.onKeyDown=function(d,ne){var F=d.keyCode,ue;if(i.getFlatInstanceArray().forEach(function(w){w&&w.props.active&&w.onKeyDown&&(ue=w.onKeyDown(d))}),ue)return 1;var se=null;return(F===Q.a.UP||F===Q.a.DOWN)&&(se=i.step(F===Q.a.UP?-1:1)),se?(d.preventDefault(),U(i.props.store,Re(i.props),se.props.eventKey),typeof ne=="function"&&ne(se),1):void 0},i.onItemHover=function(d){var ne=d.key,F=d.hover;U(i.props.store,Re(i.props),F?ne:null)},i.onDeselect=function(d){i.props.onDeselect(d)},i.onSelect=function(d){i.props.onSelect(d)},i.onClick=function(d){i.props.onClick(d)},i.onOpenChange=function(d){i.props.onOpenChange(d)},i.onDestroy=function(d){i.props.onDestroy(d)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(d){var ne=i.getFlatInstanceArray(),F=i.props.store.getState().activeKey[Re(i.props)],ue=ne.length;if(!ue)return null;d<0&&(ne=ne.concat().reverse());var se=-1;if(ne.every(function(Ot,st){return Ot&&Ot.props.eventKey===F?(se=st,!1):!0}),!i.props.defaultActiveFirst&&se!==-1&&sa(ne.slice(se,ue-1)))return;var w=(se+1)%ue,re=w;do{var Le=ne[re];if(!Le||Le.props.disabled)re=(re+1)%ue;else return Le}while(re!==w);return null},i.renderCommonMenuItem=function(d,ne,F){var ue=i.props.store.getState(),se=Object(P.a)(i),w=se.props,re=Se(d,w.eventKey,ne),Le=d.props;if(!Le||typeof d.type=="string")return d;var Ot=re===ue.activeKey,st=Object(D.a)(Object(D.a)({mode:Le.mode||w.mode,level:w.level,inlineIndent:w.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:w.prefixCls,index:ne,parentMenu:w.parentMenu,manualRef:Le.disabled?void 0:Object(G.a)(d.ref,He.bind(Object(P.a)(i))),eventKey:re,active:!Le.disabled&&Ot,multiple:w.multiple,onClick:function(dn){(Le.onClick||Ve)(dn),i.onClick(dn)},onItemHover:i.onItemHover,motion:w.motion,subMenuOpenDelay:w.subMenuOpenDelay,subMenuCloseDelay:w.subMenuCloseDelay,forceSubMenuRender:w.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:w.builtinPlacements,itemIcon:Le.itemIcon||i.props.itemIcon,expandIcon:Le.expandIcon||i.props.expandIcon},F),{},{direction:w.direction});return(w.mode==="inline"||Ze())&&(st.triggerSubMenuAction="click"),I.cloneElement(d,st)},i.renderMenuItem=function(d,ne,F){if(!d)return null;var ue=i.props.store.getState(),se={openKeys:ue.openKeys,selectedKeys:ue.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:F};return i.renderCommonMenuItem(d,ne,se)},T.store.setState({activeKey:Object(D.a)(Object(D.a)({},T.store.getState().activeKey),{},Object(Y.a)({},T.eventKey,_e(T,T.activeKey)))}),i.instanceArray=[],i}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(i){return this.props.visible||i.visible||this.props.className!==i.className||!y()(this.props.style,i.style)}},{key:"componentDidUpdate",value:function(i){var d=this.props,ne="activeKey"in d?d.activeKey:d.store.getState().activeKey[Re(d)],F=_e(d,ne);if(F!==ne)U(d.store,Re(d),F);else if("activeKey"in i){var ue=_e(i,i.activeKey);F!==ue&&U(d.store,Re(d),F)}}},{key:"render",value:function(){var i=this,d=Object(xe.a)({},this.props);this.instanceArray=[];var ne=A()(d.prefixCls,d.className,"".concat(d.prefixCls,"-").concat(d.mode)),F={className:ne,role:d.role||"menu"};d.id&&(F.id=d.id),d.focusable&&(F.tabIndex=0,F.onKeyDown=this.onKeyDown);var ue=d.prefixCls,se=d.eventKey,w=d.visible,re=d.level,Le=d.mode,Ot=d.overflowedIndicator,st=d.theme;return ht.forEach(function(ln){return delete d[ln]}),delete d.onClick,I.createElement(Dn,Object.assign({},d,{prefixCls:ue,mode:Le,tag:"ul",level:re,theme:st,visible:w,overflowedIndicator:Ot},F),I.Children.map(d.children,function(ln,dn){return i.renderMenuItem(ln,dn,se||"0-menu-")}))}}]),pe}(I.Component);it.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ve};var qe=Object(u.b)()(it),$e=qe,We=a("Kwbf");function Ye(Te,te,pe){var T=Te.prefixCls,i=Te.motion,d=Te.defaultMotions,ne=d===void 0?{}:d,F=Te.openAnimation,ue=Te.openTransitionName,se=te.switchingModeFromInline;if(i)return i;if(Object(_.a)(F)==="object"&&F)Object(We.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof F=="string")return{motionName:"".concat(T,"-open-").concat(F)};if(ue)return{motionName:ue};var w=ne[pe];return w||(se?null:ne.other)}var Ge=function(Te){Object(o.a)(pe,Te);var te=Object(C.a)(pe);function pe(T){var i;Object(R.a)(this,pe),i=te.call(this,T),i.inlineOpenKeys=[],i.onSelect=function(F){var ue=Object(P.a)(i),se=ue.props;if(se.selectable){var w=i.store.getState(),re=w.selectedKeys,Le=F.key;se.multiple?re=re.concat([Le]):re=[Le],"selectedKeys"in se||i.store.setState({selectedKeys:re}),se.onSelect(Object(D.a)(Object(D.a)({},F),{},{selectedKeys:re}))}},i.onClick=function(F){var ue=i.getRealMenuMode(),se=Object(P.a)(i),w=se.store,re=se.props.onOpenChange;ue!=="inline"&&!("openKeys"in i.props)&&(w.setState({openKeys:[]}),re([])),i.props.onClick(F)},i.onKeyDown=function(F,ue){i.innerMenu.getWrappedInstance().onKeyDown(F,ue)},i.onOpenChange=function(F){var ue=Object(P.a)(i),se=ue.props,w=i.store.getState().openKeys.concat(),re=!1,Le=function(st){var ln=!1;if(st.open)ln=w.indexOf(st.key)===-1,ln&&w.push(st.key);else{var dn=w.indexOf(st.key);ln=dn!==-1,ln&&w.splice(dn,1)}re=re||ln};Array.isArray(F)?F.forEach(Le):Le(F),re&&("openKeys"in i.props||i.store.setState({openKeys:w}),se.onOpenChange(w))},i.onDeselect=function(F){var ue=Object(P.a)(i),se=ue.props;if(se.selectable){var w=i.store.getState().selectedKeys.concat(),re=F.key,Le=w.indexOf(re);Le!==-1&&w.splice(Le,1),"selectedKeys"in se||i.store.setState({selectedKeys:w}),se.onDeselect(Object(D.a)(Object(D.a)({},F),{},{selectedKeys:w}))}},i.onMouseEnter=function(F){i.restoreModeVerticalFromInline();var ue=i.props.onMouseEnter;ue&&ue(F)},i.onTransitionEnd=function(F){var ue=F.propertyName==="width"&&F.target===F.currentTarget,se=F.target.className,w=Object.prototype.toString.call(se)==="[object SVGAnimatedString]"?se.animVal:se,re=F.propertyName==="font-size"&&w.indexOf("anticon")>=0;(ue||re)&&i.restoreModeVerticalFromInline()},i.setInnerMenu=function(F){i.innerMenu=F},i.isRootMenu=!0;var d=T.defaultSelectedKeys,ne=T.defaultOpenKeys;return"selectedKeys"in T&&(d=T.selectedKeys||[]),"openKeys"in T&&(ne=T.openKeys||[]),i.store=Object(u.c)({selectedKeys:d,openKeys:ne,activeKey:{"0-menu-":_e(T,T.activeKey)}}),i.state={switchingModeFromInline:!1},i}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(i){this.updateOpentKeysWhenSwitchMode(i),this.updateMiniStore();var d=this.props,ne=d.siderCollapsed,F=d.inlineCollapsed,ue=d.onOpenChange;(!i.inlineCollapsed&&F||!i.siderCollapsed&&ne)&&ue([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(i){var d=this.props,ne=this.store,F=this.inlineOpenKeys,ue=ne.getState(),se={};i.mode==="inline"&&d.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in d||((d.inlineCollapsed&&!i.inlineCollapsed||d.siderCollapsed&&!i.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=ue.openKeys.concat(),se.openKeys=[]),(!d.inlineCollapsed&&i.inlineCollapsed||!d.siderCollapsed&&i.siderCollapsed)&&(se.openKeys=F,this.inlineOpenKeys=[])),Object.keys(se).length&&ne.setState(se)}},{key:"updateMenuDisplay",value:function(){var i=this.props.collapsedWidth,d=this.store,ne=this.prevOpenKeys,F=this.getInlineCollapsed()&&(i===0||i==="0"||i==="0px");F?(this.prevOpenKeys=d.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ne&&(this.store.setState({openKeys:ne}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var i=this.props.mode,d=this.state.switchingModeFromInline,ne=this.getInlineCollapsed();return d&&ne?"inline":ne?"vertical":i}},{key:"getInlineCollapsed",value:function(){var i=this.props,d=i.inlineCollapsed,ne=i.siderCollapsed;return ne!==void 0?ne:d}},{key:"restoreModeVerticalFromInline",value:function(){var i=this.state.switchingModeFromInline;i&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var i=Object(D.a)({},Object(ae.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),d=this.getRealMenuMode();return i.className+=" ".concat(i.prefixCls,"-root"),i.direction==="rtl"&&(i.className+=" ".concat(i.prefixCls,"-rtl")),i=Object(D.a)(Object(D.a)({},i),{},{mode:d,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ye(this.props,this.state,d)}),delete i.openAnimation,delete i.openTransitionName,I.createElement(u.a,{store:this.store},I.createElement($e,Object.assign({},i,{ref:this.setInnerMenu}),this.props.children))}}]),pe}(I.Component);Ge.defaultProps={selectable:!0,onClick:Ve,onSelect:Ve,onOpenChange:Ve,onDeselect:Ve,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:I.createElement("span",null,"\xB7\xB7\xB7")};var Me=Ge,Pe=function(Te){Object(o.a)(pe,Te);var te=Object(C.a)(pe);function pe(){var T;return Object(R.a)(this,pe),T=te.apply(this,arguments),T.onKeyDown=function(i){var d=i.keyCode;return d===Q.a.ENTER?(T.onClick(i),!0):void 0},T.onMouseLeave=function(i){var d=T.props,ne=d.eventKey,F=d.onItemHover,ue=d.onMouseLeave;F({key:ne,hover:!1}),ue({key:ne,domEvent:i})},T.onMouseEnter=function(i){var d=T.props,ne=d.eventKey,F=d.onItemHover,ue=d.onMouseEnter;F({key:ne,hover:!0}),ue({key:ne,domEvent:i})},T.onClick=function(i){var d=T.props,ne=d.eventKey,F=d.multiple,ue=d.onClick,se=d.onSelect,w=d.onDeselect,re=d.isSelected,Le={key:ne,keyPath:[ne],item:Object(P.a)(T),domEvent:i};ue(Le),F?re?w(Le):se(Le):re||se(Le)},T.saveNode=function(i){T.node=i},T}return Object(Ke.a)(pe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var i=this.props;i.onDestroy&&i.onDestroy(i.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var i,d=Object(D.a)({},this.props),ne=A()(this.getPrefixCls(),d.className,(i={},Object(Y.a)(i,this.getActiveClassName(),!d.disabled&&d.active),Object(Y.a)(i,this.getSelectedClassName(),d.isSelected),Object(Y.a)(i,this.getDisabledClassName(),d.disabled),i)),F=Object(D.a)(Object(D.a)({},d.attribute),{},{title:typeof d.title=="string"?d.title:void 0,className:ne,role:d.role||"menuitem","aria-disabled":d.disabled});d.role==="option"?F=Object(D.a)(Object(D.a)({},F),{},{role:"option","aria-selected":d.isSelected}):(d.role===null||d.role==="none")&&(F.role="none");var ue={onClick:d.disabled?null:this.onClick,onMouseLeave:d.disabled?null:this.onMouseLeave,onMouseEnter:d.disabled?null:this.onMouseEnter},se=Object(D.a)({},d.style);d.mode==="inline"&&(d.direction==="rtl"?se.paddingRight=d.inlineIndent*d.level:se.paddingLeft=d.inlineIndent*d.level),ht.forEach(function(re){return delete d[re]}),delete d.direction;var w=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(w=I.createElement(this.props.itemIcon,this.props)),I.createElement("li",Object.assign({},Object(ae.default)(d,["onClick","onMouseEnter","onMouseLeave","onSelect"]),F,ue,{style:se,ref:this.saveNode}),d.children,w)}}]),pe}(I.Component);Pe.isMenuItem=!0,Pe.defaultProps={onSelect:Ve,onMouseEnter:Ve,onMouseLeave:Ve,manualRef:Ve};var Je=Object(u.b)(function(Te,te){var pe=Te.activeKey,T=Te.selectedKeys,i=te.eventKey,d=te.subMenuKey;return{active:pe[d]===i,isSelected:T.indexOf(i)!==-1}})(Pe),tt=Je,ct=function(Te){Object(o.a)(pe,Te);var te=Object(C.a)(pe);function pe(){var T;return Object(R.a)(this,pe),T=te.apply(this,arguments),T.renderInnerMenuItem=function(i){var d=T.props,ne=d.renderMenuItem,F=d.index;return ne(i,F,T.props.subMenuKey)},T}return Object(Ke.a)(pe,[{key:"render",value:function(){var i=Object(xe.a)({},this.props),d=i.className,ne=d===void 0?"":d,F=i.rootPrefixCls,ue="".concat(F,"-item-group-title"),se="".concat(F,"-item-group-list"),w=i.title,re=i.children;return ht.forEach(function(Le){return delete i[Le]}),delete i.onClick,delete i.direction,I.createElement("li",Object.assign({},i,{className:"".concat(ne," ").concat(F,"-item-group")}),I.createElement("div",{className:ue,title:typeof w=="string"?w:void 0},w),I.createElement("ul",{className:se},I.Children.map(re,this.renderInnerMenuItem)))}}]),pe}(I.Component);ct.isMenuItemGroup=!0,ct.defaultProps={disabled:!0};var Wt=ct,_t=function(te){var pe=te.className,T=te.rootPrefixCls,i=te.style;return I.createElement("li",{className:"".concat(pe," ").concat(T,"-item-divider"),style:i})};_t.defaultProps={disabled:!0,className:"",style:{}};var kt=_t,jt=Oe.e=Me},"55Ip":function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return Z}),a.d(Oe,"b",function(){return K});var D=a("Ty5D"),R=a("dI71"),Ke=a("q1tI"),P=a.n(Ke),o=a("YS25"),C=a("17x9"),I=a.n(C),u=a("wx14"),ae=a("zLVn"),xe=a("9R94"),Y=function(h){Object(R.a)(c,h);function c(){for(var V,q=arguments.length,je=new Array(q),J=0;J=0||q.relatedTarget.className.indexOf("".concat(Ue,"-next"))>=0))return;h.setState({goInputText:""}),B(h.getValidValue())},h.go=function(q){var je=h.state.goInputText;if(je==="")return;(q.keyCode===k.ENTER||q.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(o.a)(r,[{key:"getValidValue",value:function(){var c=this.state,L=c.goInputText,V=c.current;return!L||isNaN(L)?V:Number(L)}},{key:"getPageSizeOptions",value:function(){var c=this.props,L=c.pageSize,V=c.pageSizeOptions;return V.some(function(q){return q.toString()===L.toString()})?V:V.concat([L.toString()]).sort(function(q,je){var J=isNaN(Number(q))?0:Number(q),B=isNaN(Number(je))?0:Number(je);return J-B})}},{key:"render",value:function(){var c=this,L=this.props,V=L.pageSize,q=L.locale,je=L.rootPrefixCls,J=L.changeSize,B=L.quickGo,Ue=L.goButton,rt=L.selectComponentClass,Mt=L.buildOptionText,Ve=L.selectPrefixCls,Se=L.disabled,lt=this.state.goInputText,pt="".concat(je,"-options"),mt=rt,ht=null,oe=null,De=null;if(!J&&!B)return null;var Ze=this.getPageSizeOptions();if(J&&mt){var Be=Ze.map(function(fe,ve){return ae.a.createElement(mt.Option,{key:ve,value:fe.toString()},(Mt||c.buildOptionText)(fe))});ht=ae.a.createElement(mt,{disabled:Se,prefixCls:Ve,showSearch:!1,className:"".concat(pt,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(V||Ze[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ve){return ve.parentNode}},Be)}return B&&(Ue&&(De=typeof Ue=="boolean"?ae.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Se,className:"".concat(pt,"-quick-jumper-button")},q.jump_to_confirm):ae.a.createElement("span",{onClick:this.go,onKeyUp:this.go},Ue)),oe=ae.a.createElement("div",{className:"".concat(pt,"-quick-jumper")},q.jump_to,ae.a.createElement("input",{disabled:Se,type:"text",value:lt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),q.page,De)),ae.a.createElement("li",{className:"".concat(pt)},ht,oe)}}]),r}(ae.a.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=y,A=a("N2Kk");function _(){}function Z(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function ie(z,K,r){return r}function le(z,K,r){var h=typeof z=="undefined"?K.pageSize:z;return Math.floor((r.total-1)/h)+1}var Ne=function(z){Object(C.a)(r,z);var K=Object(I.a)(r);function r(h){var c;Object(P.a)(this,r),c=K.call(this,h),c.getJumpPrevPage=function(){return Math.max(1,c.state.current-(c.props.showLessItems?3:5))},c.getJumpNextPage=function(){return Math.min(le(void 0,c.state,c.props),c.state.current+(c.props.showLessItems?3:5))},c.getItemIcon=function(J,B){var Ue=c.props.prefixCls,rt=J||ae.a.createElement("button",{type:"button","aria-label":B,className:"".concat(Ue,"-item-link")});return typeof J=="function"&&(rt=ae.a.createElement(J,Object(Ke.a)({},c.props))),rt},c.savePaginationNode=function(J){c.paginationNode=J},c.isValid=function(J){return Z(J)&&J!==c.state.current},c.shouldDisplayQuickJumper=function(){var J=c.props,B=J.showQuickJumper,Ue=J.pageSize,rt=J.total;return rt<=Ue?!1:B},c.handleKeyDown=function(J){(J.keyCode===k.ARROW_UP||J.keyCode===k.ARROW_DOWN)&&J.preventDefault()},c.handleKeyUp=function(J){var B=c.getValidValue(J),Ue=c.state.currentInputValue;B!==Ue&&c.setState({currentInputValue:B}),J.keyCode===k.ENTER?c.handleChange(B):J.keyCode===k.ARROW_UP?c.handleChange(B-1):J.keyCode===k.ARROW_DOWN&&c.handleChange(B+1)},c.changePageSize=function(J){var B=c.state.current,Ue=le(J,c.state,c.props);B=B>Ue?Ue:B,Ue===0&&(B=c.state.current),typeof J=="number"&&("pageSize"in c.props||c.setState({pageSize:J}),"current"in c.props||c.setState({current:B,currentInputValue:B})),c.props.onShowSizeChange(B,J),"onChange"in c.props&&c.props.onChange&&c.props.onChange(B,J)},c.handleChange=function(J){var B=c.props.disabled,Ue=J;if(c.isValid(Ue)&&!B){var rt=le(void 0,c.state,c.props);Ue>rt?Ue=rt:Ue<1&&(Ue=1),"current"in c.props||c.setState({current:Ue,currentInputValue:Ue});var Mt=c.state.pageSize;return c.props.onChange(Ue,Mt),Ue}return c.state.current},c.prev=function(){c.hasPrev()&&c.handleChange(c.state.current-1)},c.next=function(){c.hasNext()&&c.handleChange(c.state.current+1)},c.jumpPrev=function(){c.handleChange(c.getJumpPrevPage())},c.jumpNext=function(){c.handleChange(c.getJumpNextPage())},c.hasPrev=function(){return c.state.current>1},c.hasNext=function(){return c.state.current2?Ue-2:0),Mt=2;Mt=V?je=V:je=Number(L),je}},{key:"getShowSizeChanger",value:function(){var c=this.props,L=c.showSizeChanger,V=c.total,q=c.totalBoundaryShowSizeChanger;return typeof L!="undefined"?L:V>q}},{key:"renderPrev",value:function(c){var L=this.props,V=L.prevIcon,q=L.itemRender,je=q(c,"prev",this.getItemIcon(V,"prev page")),J=!this.hasPrev();return Object(u.isValidElement)(je)?Object(u.cloneElement)(je,{disabled:J}):je}},{key:"renderNext",value:function(c){var L=this.props,V=L.nextIcon,q=L.itemRender,je=q(c,"next",this.getItemIcon(V,"next page")),J=!this.hasNext();return Object(u.isValidElement)(je)?Object(u.cloneElement)(je,{disabled:J}):je}},{key:"render",value:function(){var c=this,L=this.props,V=L.prefixCls,q=L.className,je=L.style,J=L.disabled,B=L.hideOnSinglePage,Ue=L.total,rt=L.locale,Mt=L.showQuickJumper,Ve=L.showLessItems,Se=L.showTitle,lt=L.showTotal,pt=L.simple,mt=L.itemRender,ht=L.showPrevNextJumpers,oe=L.jumpPrevIcon,De=L.jumpNextIcon,Ze=L.selectComponentClass,Be=L.selectPrefixCls,fe=L.pageSizeOptions,ve=this.state,Xe=ve.current,bt=ve.pageSize,Nt=ve.currentInputValue;if(B===!0&&Ue<=bt)return null;var Fe=le(void 0,this.state,this.props),yt=[],Yt=null,Lt=null,fn=null,En=null,Jt=null,Pt=Mt&&Mt.goButton,Kt=Ve?1:2,hn=Xe-1>0?Xe-1:0,Ln=Xe+1=Kt*2&&Xe!==1+2&&(yt[0]=Object(u.cloneElement)(yt[0],{className:"".concat(V,"-item-after-jump-prev")}),yt.unshift(Yt)),Fe-Xe>=Kt*2&&Xe!==Fe-2&&(yt[yt.length-1]=Object(u.cloneElement)(yt[yt.length-1],{className:"".concat(V,"-item-before-jump-next")}),yt.push(Lt)),_e!==1&&yt.unshift(fn),He!==Fe&&yt.push(En)}var $e=null;lt&&($e=ae.a.createElement("li",{className:"".concat(V,"-total-text")},lt(Ue,[Ue===0?0:(Xe-1)*bt+1,Xe*bt>Ue?Ue:Xe*bt])));var We=!this.hasPrev()||!Fe,Ye=!this.hasNext()||!Fe;return ae.a.createElement("ul",Object(D.a)({className:Y()(V,q,Object(R.a)({},"".concat(V,"-disabled"),J)),style:je,unselectable:"unselectable",ref:this.savePaginationNode},In),$e,ae.a.createElement("li",{title:Se?rt.prev_page:null,onClick:this.prev,tabIndex:We?null:0,onKeyPress:this.runIfEnterPrev,className:Y()("".concat(V,"-prev"),Object(R.a)({},"".concat(V,"-disabled"),We)),"aria-disabled":We},this.renderPrev(hn)),yt,ae.a.createElement("li",{title:Se?rt.next_page:null,onClick:this.next,tabIndex:Ye?null:0,onKeyPress:this.runIfEnterNext,className:Y()("".concat(V,"-next"),Object(R.a)({},"".concat(V,"-disabled"),Ye)),"aria-disabled":Ye},this.renderNext(Ln)),ae.a.createElement(p,{disabled:J,locale:rt,rootPrefixCls:V,selectComponentClass:Ze,selectPrefixCls:Be,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Xe,pageSize:bt,pageSizeOptions:fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Pt}))}}],[{key:"getDerivedStateFromProps",value:function(c,L){var V={};if("current"in c&&(V.current=c.current,c.current!==L.current&&(V.currentInputValue=V.current)),"pageSize"in c&&c.pageSize!==L.pageSize){var q=L.current,je=le(c.pageSize,L,c);q=q>je?je:q,"current"in c||(V.current=q,V.currentInputValue=q),V.pageSize=c.pageSize}return V}}]),r}(ae.a.Component);Ne.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:_,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:_,locale:A.a,style:{},itemRender:ie,totalBoundaryShowSizeChanger:50};var H=Ne},"6RRn":function(Ht,Oe,a){"use strict";var D=a("wCXF"),R=a("n6Qo");a.d(Oe,"b",function(){return R.a});var Ke=a("IBYe"),P=a("6eGT"),o=a("hW8S");a.d(Oe,"a",function(){return o.a}),Oe.c=D.b},"6eGT":function(Ht,Oe,a){"use strict";function D(R){return null}Oe.a=D},"7ixt":function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return Ke});var D={adjustX:1,adjustY:1},R=[0,0],Ke={left:{points:["cr","cl"],overflow:D,offset:[-4,0],targetOffset:R},right:{points:["cl","cr"],overflow:D,offset:[4,0],targetOffset:R},top:{points:["bc","tc"],overflow:D,offset:[0,-4],targetOffset:R},bottom:{points:["tc","bc"],overflow:D,offset:[0,4],targetOffset:R},topLeft:{points:["bl","tl"],overflow:D,offset:[0,-4],targetOffset:R},leftTop:{points:["tr","tl"],overflow:D,offset:[-4,0],targetOffset:R},topRight:{points:["br","tr"],overflow:D,offset:[0,-4],targetOffset:R},rightTop:{points:["tl","tr"],overflow:D,offset:[4,0],targetOffset:R},bottomRight:{points:["tr","br"],overflow:D,offset:[0,4],targetOffset:R},rightBottom:{points:["bl","br"],overflow:D,offset:[4,0],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:D,offset:[0,4],targetOffset:R},leftBottom:{points:["br","bl"],overflow:D,offset:[-4,0],targetOffset:R}},P=Ke},"815F":function(Ht,Oe,a){"use strict";a.d(Oe,"e",function(){return I}),a.d(Oe,"c",function(){return ae}),a.d(Oe,"d",function(){return xe}),a.d(Oe,"a",function(){return Q}),a.d(Oe,"f",function(){return G}),a.d(Oe,"b",function(){return k});var D=a("KQm4"),R=a("VTBJ"),Ke=a("Ff2n"),P=a("Zm9Q"),o=a("Kwbf"),C=a("OZM5");function I(y,p){return y!=null?y:p}function u(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function A(_){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(_||[]).forEach(function(ie){var le=ie.key,Ne=ie.children;Object(o.a)(le!=null,"Tree node must have a certain key: [".concat(Z).concat(le,"]"));var H=String(le);Object(o.a)(!p.has(H)||le===null||le===void 0,"Same 'key' exist in the Tree: ".concat(H)),p.set(H,!0),A(Ne,"".concat(Z).concat(H," > "))})}A(y)}function ae(y){function p(A){var _=Object(P.a)(A);return _.map(function(Z){if(!Object(C.i)(Z))return Object(o.a)(!Z,"Tree/TreeNode can only accept TreeNode as children."),null;var ie=Z.key,le=Z.props,Ne=le.children,H=Object(Ke.a)(le,["children"]),z=Object(R.a)({key:ie},H),K=p(Ne);return K.length&&(z.children=K),z}).filter(function(Z){return Z})}return p(y)}function xe(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],A=new Set(p===!0?[]:p),_=[];function Z(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ie.map(function(Ne,H){var z=Object(C.h)(le?le.pos:"0",H),K=I(Ne.key,z),r=Object(R.a)(Object(R.a)({},Ne),{},{parent:le,pos:z,children:null,data:Ne,isStart:[].concat(Object(D.a)(le?le.isStart:[]),[H===0]),isEnd:[].concat(Object(D.a)(le?le.isEnd:[]),[H===ie.length-1])});return _.push(r),p===!0||A.has(K)?r.children=Z(Ne.children||[],r):r.children=[],r})}return Z(y),_}function Y(y,p,A){var _;A?typeof A=="string"?_=function(le){return le[A]}:typeof A=="function"&&(_=function(le){return A(le)}):_=function(le,Ne){return I(le.key,Ne)};function Z(ie,le,Ne){var H=ie?ie.children:y,z=ie?Object(C.h)(Ne.pos,le):"0";if(ie){var K=_(ie,z),r={node:ie,index:le,pos:z,key:K,parentPos:Ne.node?Ne.pos:null,level:Ne.level+1};p(r)}H&&H.forEach(function(h,c){Z(h,c,{node:ie,pos:z,level:Ne?Ne.level+1:-1})})}Z(null)}function Q(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=p.initWrapper,_=p.processEntity,Z=p.onProcessFinished,ie=arguments.length>2?arguments[2]:void 0,le={},Ne={},H={posEntities:le,keyEntities:Ne};return A&&(H=A(H)||H),Y(y,function(z){var K=z.node,r=z.index,h=z.pos,c=z.key,L=z.parentPos,V=z.level,q={node:K,index:r,key:c,pos:h,level:V},je=I(c,h);le[h]=q,Ne[je]=q,q.parent=le[L],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),_&&_(q,H)},ie),Z&&Z(H),H}function G(y,p){var A=p.expandedKeys,_=p.selectedKeys,Z=p.loadedKeys,ie=p.loadingKeys,le=p.checkedKeys,Ne=p.halfCheckedKeys,H=p.dragOverNodeKey,z=p.dropPosition,K=p.keyEntities,r=K[y],h={eventKey:y,expanded:A.indexOf(y)!==-1,selected:_.indexOf(y)!==-1,loaded:Z.indexOf(y)!==-1,loading:ie.indexOf(y)!==-1,checked:le.indexOf(y)!==-1,halfChecked:Ne.indexOf(y)!==-1,pos:String(r?r.pos:""),dragOver:H===y&&z===0,dragOverGapTop:H===y&&z===-1,dragOverGapBottom:H===y&&z===1};return h}function k(y){var p=y.data,A=y.expanded,_=y.selected,Z=y.checked,ie=y.loaded,le=y.loading,Ne=y.halfChecked,H=y.dragOver,z=y.dragOverGapTop,K=y.dragOverGapBottom,r=y.pos,h=y.active,c=Object(R.a)(Object(R.a)({},p),{},{expanded:A,selected:_,checked:Z,loaded:ie,loading:le,halfChecked:Ne,dragOver:H,dragOverGapTop:z,dragOverGapBottom:K,pos:r,active:h});return"props"in c||Object.defineProperty(c,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),y}}),c}},A06Q:function(Ht,Oe,a){"use strict";a.r(Oe);var D=a("cWXX"),R=a("/ezw"),Ke=a("DjyN"),P=a("NUBc"),o=a("oBTY"),C=a("miYZ"),I=a("tsqr"),u=a("9og8"),ae=a("sRBo"),xe=a("kaz8"),Y=a("14J3"),Q=a("BMrR"),G=a("5NDa"),k=a("5rEg"),y=a("jCWc"),p=a("kPKH"),A=a("k1fw"),_=a("tJVT"),Z=a("B9cy"),ie=a("Ol7k"),le=a("lUTK"),Ne=a("BvKs"),H=a("WmNS"),z=a.n(H),K=a("q1tI"),r=a.n(K),h=a("Ty5D"),c=a("55Ip"),L=a("9kvl"),V=a("ErOA"),q=a("wd/R"),je=a.n(q),J=a("1vsH"),B=a("xKgJ"),Ue=a("BdwD"),rt=a("2qtc"),Mt=a("kLXV"),Ve=a("5Dmo"),Se=a("3S7+"),lt=a("jrin"),pt=a("+L6B"),mt=a("2/Rp"),ht=a("y8nQ"),oe=a("Vl3Y"),De=a("Znn+"),Ze=a("ZTPi"),Be=a("RotF"),fe=a.n(Be),ve=a("O9y4"),Xe=a.n(ve),bt=Ze.a.TabPane,Nt=function(Me){var Pe,Je=Me.polls,tt=Me.loading,ct=Me.dispatch,Wt=Object(h.i)(),_t=Object(h.h)(),kt=oe.a.useForm(),jt=Object(_.a)(kt,1),Te=jt[0],te=Je.brankList,pe=Object(K.useState)(!0),T=Object(_.a)(pe,2),i=T[0],d=T[1],ne=Object(K.useState)("myself"),F=Object(_.a)(ne,2),ue=F[0],se=F[1],w=Object(K.useState)([]),re=Object(_.a)(w,2),Le=re[0],Ot=re[1],st=Object(K.useState)(!1),ln=Object(_.a)(st,2),dn=ln[0],Un=ln[1],Nn=Object(K.useState)(),et=Object(_.a)(Nn,2),tn=et[0],sn=et[1],Tn=Object(K.useState)({page:0,limit:20,object_type:"poll",search:"",filter:"myself"}),Xt=Object(_.a)(Tn,2),Qt=Xt[0],Rn=Xt[1],$t=[{name:"\u6211\u7684\u8D44\u6E90",id:"myself"},{name:"\u516C\u5171\u8D44\u6E90",id:"public"}];Object(K.useEffect)(function(){Je.actionTabs.key==="\u95EE\u5377\u9009\u7528"&&Mn()},[Je.actionTabs.key]);var Hn=[],Mn=function(){var Rt=Object(u.a)(z.a.mark(function vn(){var un,Cn;return z.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(!i){Xn.next=13;break}return Un(!1),++Qt.page,d(!1),Xn.next=6,ct({type:"polls/getBrankList",payload:Object(A.a)({},Qt)});case 6:Cn=Xn.sent,Le=Object(o.a)(Le.concat(Cn.object_list)),sn(Cn.is_teacher),((un=Cn.object_list)===null||un===void 0?void 0:un.length)0&&(d([].concat(Object(o.a)(i),Object(o.a)($t==null?void 0:$t.course_info))),se($t==null?void 0:$t.count)),Un(!1),Rn||_t.setFieldsValue((Rt={},Object(lt.a)(Rt,"group_ids",$t==null||((Mn=$t.course_info)===null||Mn===void 0)?void 0:Mn.map(function(Cn){return String(Cn.course_group_id)})),Object(lt.a)(Rt,"end_time",je()(je()(new Date(Object(J.b)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))),Rt)));case 5:case"end":return un.stop()}},Qt)}));return function(Rn){return Xt.apply(this,arguments)}}(),et=function(Qt){te(Qt),Nn(Qt)},tn=function(){var Xt=Object(u.a)(z.a.mark(function Qt(){var Rn,$t;return z.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Rn=Object(A.a)({},_t.getFieldsValue()),Mn.next=3,Object(V.a)("/api/courses/".concat(tt.coursesId,"/polls/publish.json"),{method:"post",body:{check_ids:Object(o.a)(Pe.actionTabs.selectArrs),group_ids:Rn.group_ids?Object(o.a)(Rn.group_ids):[],end_time:je()(Rn.end_time).format("YYYY-MM-DD HH:mm")}});case 3:$t=Mn.sent,$t.status===0&&(Object(J.Y)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u7ACB\u5373\u53D1\u5E03"]),sn(),I.b.success("\u53D1\u5E03\u6210\u529F"),Je({type:"polls/setActionTabs",payload:{}}),Je({type:"classroomList/getClassroomPollsList",payload:Object(A.a)({},Pe.actionTabs.params)}));case 5:case"end":return Mn.stop()}},Qt)}));return function(){return Xt.apply(this,arguments)}}(),sn=function(){te(1),d([])},Tn=ue>Te*Le;return r.a.createElement(Mt.a,{centered:!0,title:"\u7ACB\u5373\u53D1\u5E03",visible:Pe.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u7ACB\u5373\u53D1\u5E03",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:tn,onCancel:function(){sn(),Je({type:"polls/setActionTabs",payload:{}})}},r.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u95EE\u5377",r.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u95EE\u5377\u6709\u6548'),i&&r.a.createElement(oe.a,{form:_t},r.a.createElement(Q.a,{className:"mt30"},r.a.createElement(p.a,{flex:1},"\u53D1\u5E03\u65F6\u95F4\uFF1A",je()().format("YYYY-MM-DD HH:mm")),r.a.createElement(p.a,null,r.a.createElement(Q.a,null,r.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),r.a.createElement(oe.a.Item,{name:"end_time"},r.a.createElement(fn.a,{style:{width:170},getPopupContainer:function(Qt){return Qt.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:je()(Object(J.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))))),(i==null?void 0:i.length)>0&&r.a.createElement("div",{style:{background:"#F4FAFF",maxHeight:260,overflow:"auto",padding:"16px 18px 0 18px"}},r.a.createElement(fe.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:et,hasMore:Tn,useWindow:!1},r.a.createElement(oe.a.Item,{name:"group_ids"},r.a.createElement(xe.a.Group,null,i.map(function(Xt,Qt){return r.a.createElement("div",{key:Qt},r.a.createElement(xe.a,{onChange:function($t){},key:Qt,value:String(Xt.course_group_id),defaultChecked:!0,style:{width:430},className:"multi-ellipsis1 multi-ellipsis1-checkbox"},r.a.createElement("span",null,Xt.course_group_name)))}))),dn&&r.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},r.a.createElement(Yt.a,null))))))},Pt=Object(L.a)(function(Ge){var Me=Ge.polls;return{polls:Me}})(Jt),Kt=a("PpiC"),hn=function(Me){var Pe=Me.polls,Je=Me.dispatch,tt=Me.user,ct=Object(Kt.a)(Me,["polls","dispatch","user"]),Wt=Object(h.i)(),_t=Object(K.useState)(!1),kt=Object(_.a)(_t,2),jt=kt[0],Te=kt[1];Object(K.useEffect)(function(){if(Pe.actionTabs.key==="\u5220\u9664"){if(Object(B.u)()){Te(!0);return}var pe={hasNum:0,noHasNum:0};Pe.actionTabs.selectArrsAll.map(function(T){var i;T.author_login===((i=tt.userInfo)===null||i===void 0?void 0:i.login)?++pe.hasNum:++pe.noHasNum}),pe.noHasNum>0?Mt.a.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:r.a.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",r.a.createElement("span",{className:"c-blue"},pe.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",r.a.createElement("span",{className:"c-red"},pe.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",r.a.createElement("br",null),"\u8BFE\u5802\u5185\u53EA\u80FD\u5220\u9664\u672C\u4EBA\u53D1\u5E03\u7684\u8D44\u6E90\uFF0C\u8BF7\u53D6\u6D88\u9009\u4E2D\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u7684\u8D44\u6E90\u3002"),onOk:function(){te()}}):Te(!0)}else Te(!1)},[Pe.actionTabs.key]);var te=function(){Je({type:"polls/setActionTabs",payload:{}})};return r.a.createElement(Mt.a,{centered:!0,title:"\u63D0\u793A",visible:jt,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(u.a)(z.a.mark(function pe(){var T;return z.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Object(V.a)("/api/courses/".concat(Wt.coursesId,"/polls/destroys.json"),{method:"post",body:{check_ids:Object(o.a)(Pe.actionTabs.selectArrs)}});case 2:T=d.sent,T.status===0&&(Object(J.Y)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u5220\u9664"]),I.b.success("\u5220\u9664\u6210\u529F"),Je({type:"polls/setActionTabs",payload:{}}),Je({type:"classroomList/getClassroomPollsList",payload:Object(A.a)({},Pe.actionTabs.params)}),Je({type:"classroomList/getClassroomLeftMenus",payload:{id:Wt.coursesId}}));case 4:case"end":return d.stop()}},pe)})),onCancel:function(){Je({type:"polls/setActionTabs",payload:{}})}},r.a.createElement("p",null,"\u63D0\u4EA4\u4F5C\u54C1\u5C06\u5168\u90E8\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u6062\u590D"),r.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},Ln=Object(L.a)(function(Ge){var Me=Ge.polls,Pe=Ge.user;return{polls:Me,user:Pe}})(hn),In=a("g9YV"),pn=a("wCAj"),Dn=function(Me){var Pe,Je=Me.polls,tt=Me.loading,ct=Me.dispatch,Wt=Object(h.i)(),_t=Object(h.h)(),kt=Object(K.useState)([]),jt=Object(_.a)(kt,2),Te=jt[0],te=jt[1];Object(K.useEffect)(function(){if(Je.actionTabs.key==="\u7ACB\u5373\u622A\u6B62")var F=ct({type:"polls/getEndGroups",payload:Object(A.a)(Object(A.a)({},Wt),{},{check_ids:[Je.actionTabs.selectArrs]})}).then(function(ue){if(!ue.status){var se,w=[];(se=ue.course_info)===null||se===void 0||se.map(function(re){w.push({id:re.course_group_id,checked:!0,time:je()().add(7,"days")})}),te([].concat(w))}})},[Je.actionTabs.key]);var pe=oe.a.useForm(),T=Object(_.a)(pe,1),i=T[0],d=function(ue){return ue&&ue0&&Object(B.c)()&&r.a.createElement("aside",{className:He.a.acitons},r.a.createElement("div",null,r.a.createElement(xe.a,{checked:((ct=d.polls)===null||ct===void 0?void 0:ct.length)===se.length,onChange:function(tn){if(tn.target.checked){var sn;w((sn=d.polls)===null||sn===void 0?void 0:sn.map(function(Tn){return Tn.id}))}else w([])}},r.a.createElement("span",{className:"ml5"},"\u5DF2\u9009\u62E9 ",se.length," \u4E2A \uFF08\u4E0D\u652F\u6301\u8DE8\u9875\u52FE\u9009\uFF09"))),r.a.createElement("div",null,Nn.map(function(et,tn){return r.a.createElement("p",{key:tn,onClick:Object(u.a)(z.a.mark(function sn(){var Tn,Xt,Qt;return z.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:if(!(se=="")){$t.next=6;break}Tn="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1",et==="\u6536\u85CF"&&(Tn="\u8BF7\u9009\u62E9\u8981\u6536\u85CF\u7684\u95EE\u5377"),I.b.error(Tn),$t.next=13;break;case 6:if(!(et==="\u6536\u85CF")){$t.next=12;break}return $t.next=9,Object(V.a)("/api/courses/".concat(T.id,"/polls/join_poll_banks.json"),{method:"post",body:{check_ids:Object(o.a)(se)}});case 9:return Qt=$t.sent,Qt.status===0&&I.b.success("\u64CD\u4F5C\u6210\u529F"),$t.abrupt("return",!1);case 12:Te({type:"polls/setActionTabs",payload:{key:et,selectArrs:se,selectArrsAll:(Xt=d.polls)===null||Xt===void 0?void 0:Xt.filter(function(Hn){return se.includes(Hn.id)}),params:T}});case 13:case"end":return $t.stop()}},sn)}))},r.a.createElement("span",null,et))}))),r.a.createElement(R.a,{loading:jt["classroomList/getClassroomPollsList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},d.polls_counts&&d.polls_counts.polls_all_counts===0&&r.a.createElement(Ue.a,null),d.polls&&d.polls.map(function(et,tn){var sn;return r.a.createElement("div",{className:He.a.listItem,key:tn,onClick:function(){(Object(B.s)()||Object(B.c)())&&L.d.push("/classrooms/".concat(T.coursesId,"/poll/").concat(et.id,"/detail"))}},Object(B.c)()&&r.a.createElement(xe.a,{checked:se.includes(et.id),className:"ml30",value:et.id,onClick:function(Xt){return Xt.stopPropagation()},onChange:function(Xt){var Qt=se.indexOf(et.id);se.indexOf(et.id)>-1?w(se.filter(function(Rn){return Rn!==et.id})):w(se.concat(et.id))}}),r.a.createElement("div",{className:He.a.info},r.a.createElement("div",{className:He.a.title},r.a.createElement("div",{className:He.a.titleLeft},r.a.createElement(c.a,{to:Object(B.c)()&&"/classrooms/".concat(T.coursesId,"/poll/").concat(et.id,"/detail")},r.a.createElement("strong",null,et.polls_name)),r.a.createElement(J.k,{status:[Un[et.polls_status]]})),r.a.createElement("div",{className:He.a.titleRight},Object(B.c)()&&r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{onClick:function(Xt){Xt.stopPropagation()},to:"/classrooms/".concat(T.coursesId,"/poll/").concat(et.id,"/edit")},"\u7F16\u8F91"),r.a.createElement(c.a,{onClick:function(Xt){Xt.stopPropagation()},to:"/classrooms/".concat(T.coursesId,"/poll/").concat(et.id,"/detail?tabs=3")},"\u8BBE\u7F6E")),Object(B.s)()&&r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{onClick:function(Xt){Xt.stopPropagation()},to:"/classrooms/".concat(T.coursesId,"/poll/").concat(et.id,"/users/").concat((sn=Wt.userInfo)===null||sn===void 0?void 0:sn.login)},et.current_status===0&&"\u7EE7\u7EED\u7B54\u9898",et.current_status===1&&"\u67E5\u770B\u7B54\u9898",et.current_status===2&&"\u5F00\u59CB\u7B54\u9898")))),r.a.createElement("p",null,r.a.createElement("span",null,et.author),et.publish_time&&et.polls_status===1&&r.a.createElement("span",{className:"ml20"},"\u5C06\u53D1\u5E03\u4E8E",je()(et.publish_time).format("YYYY-MM-DD HH:mm")),!et.publish_time&&et.created_at&&et.polls_status===1&&r.a.createElement("span",{className:"ml20"},"\u521B\u5EFA\u4E8E",je()(et.created_at).fromNow()),et.polls_status!==1&&r.a.createElement("span",{className:"ml20"},et.poll_answer,"\u5DF2\u7B54"),et.polls_status!==1&&r.a.createElement("span",{className:"ml20"},et.poll_unanswer,"\u672A\u7B54"),et.polls_status==2&&et.publish_time&&et.end_time&&r.a.createElement("span",{className:"ml20"},"\u63D0\u4EA4\u5269\u4F59\u65F6\u95F4\uFF1A",Object(J.X)((new Date(et.end_time).getTime()-new Date().getTime())/1e3)))))}),r.a.createElement("aside",{className:"tc mb50 mt30"},r.a.createElement(P.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:st,defaultCurrent:T.page,current:T.page||1,defaultPageSize:15,total:d.polls_counts&&d.polls_counts.polls_all_counts}))),r.a.createElement(Pt,null),r.a.createElement(Ln,null),r.a.createElement(Re,null),r.a.createElement(sa,null),r.a.createElement(Fe,{cb:function(){return w([])}}))},Ye=Oe.default=Object(L.a)(function(Ge){var Me=Ge.user,Pe=Ge.classroomList,Je=Ge.loading,tt=Ge.globalSetting;return{user:Me,classroomList:Pe,globalSetting:tt,loading:Je.effects}})(We)},BdwD:function(Ht,Oe,a){"use strict";var D=a("+L6B"),R=a("2/Rp"),Ke=a("0Owb"),P=a("k1fw"),o=a("q1tI"),C=a.n(o),I=a("FOrL"),u=a.n(I),ae=function(Y){var Q=Y.buttonProps,G=Q===void 0?{}:Q,k=Y.styles,y=k===void 0?{}:k,p=Y.customText,A=Y.ButtonText,_=Y.ButtonClick,Z=Y.Buttonclass,ie=Y.ButtonTwo;return C.a.createElement("section",{className:"tc animated fadeIn",style:Object(P.a)(Object(P.a)({},{color:"#999",margin:"200px auto"}),y)},C.a.createElement("img",{src:u.a}),C.a.createElement("p",{className:"mt20 font14"},p||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),A&&C.a.createElement(R.a,Object(Ke.a)({className:Z,onClick:_},G),A),ie&&ie)};Oe.a=ae},FOrL:function(Ht,Oe,a){Ht.exports=a.p+"static/nodata.a6b3f948.png"},Gytx:function(Ht,Oe){Ht.exports=function(D,R,Ke,P){var o=Ke?Ke.call(P,D,R):void 0;if(o!==void 0)return!!o;if(D===R)return!0;if(typeof D!="object"||!D||typeof R!="object"||!R)return!1;var C=Object.keys(D),I=Object.keys(R);if(C.length!==I.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(R),ae=0;ae=0)continue;if(!Object.prototype.hasOwnProperty.call(Q,y))continue;k[y]=Q[y]}return k}function u(Q,G){if(!(Q instanceof G))throw new TypeError("Cannot call a class as a function")}function ae(Q,G){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:Q}function xe(Q,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);Q.prototype=Object.create(G&&G.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,G):Q.__proto__=G)}var Y=function(Q){xe(G,Q);function G(k){u(this,G);var y=ae(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,k));return y.scrollListener=y.scrollListener.bind(y),y.eventListenerOptions=y.eventListenerOptions.bind(y),y.mousewheelListener=y.mousewheelListener.bind(y),y}return D(G,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var y=this.getParentElement(this.scrollComponent);y.scrollTop=y.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var y=!1,p={get passive(){y=!0}};try{document.addEventListener("test",null,p),document.removeEventListener("test",null,p)}catch(A){}return y}},{key:"eventListenerOptions",value:function(){var y=this.props.useCapture;return this.isPassiveSupported()&&(y={useCapture:this.props.useCapture,passive:!0}),y}},{key:"setDefaultLoader",value:function(y){this.defaultLoader=y}},{key:"detachMousewheelListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.scrollComponent.parentNode),y.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var y=window;this.props.useWindow===!1&&(y=this.getParentElement(this.scrollComponent)),y.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(y){var p=this.props.getScrollParent&&this.props.getScrollParent();return p!=null?p:y&&y.parentNode}},{key:"filterProps",value:function(y){return y}},{key:"attachScrollListener",value:function(){var y=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!y)return;var p=window;this.props.useWindow===!1&&(p=y),p.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),p.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),p.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(y){y.deltaY===1&&!this.isPassiveSupported()&&y.preventDefault()}},{key:"scrollListener",value:function(){var y=this.scrollComponent,p=window,A=this.getParentElement(y),_=void 0;if(this.props.useWindow){var Z=document.documentElement||document.body.parentNode||document.body,ie=p.pageYOffset!==void 0?p.pageYOffset:Z.scrollTop;this.props.isReverse?_=ie:_=this.calculateOffset(y,ie)}else this.props.isReverse?_=A.scrollTop:_=y.scrollHeight-A.scrollTop-A.clientHeight;_1&&arguments[1]!==void 0?arguments[1]:1,Ye=Kt.length,Ge=0;Ge1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(Ve).map(function(lt,pt){if(!o.isValidElement(lt)||!lt.type)return null;var mt=lt.type.isSelectOptGroup,ht=lt.key,oe=lt.props,De=oe.children,Ze=Object(I.a)(oe,["children"]);return Se||!mt?K(lt):Object(H.a)(Object(H.a)({key:"__RC_SELECT_GRP__".concat(ht===null?pt:ht,"__"),label:ht},Ze),{},{options:r(De)})}).filter(function(lt){return lt})}var h=a("2Qr1"),c=a("qNPg"),L=a("U8pU"),V=a("Kwbf"),q=a("WKfj");function je(Ve){var Se=Ve.mode,lt=Ve.options,pt=Ve.children,mt=Ve.backfill,ht=Ve.allowClear,oe=Ve.placeholder,De=Ve.getInputElement,Ze=Ve.showSearch,Be=Ve.onSearch,fe=Ve.defaultOpen,ve=Ve.autoFocus,Xe=Ve.labelInValue,bt=Ve.value,Nt=Ve.inputValue,Fe=Ve.optionLabelProp,yt=Se==="multiple"||Se==="tags",Yt=Ze!==void 0?Ze:yt||Se==="combobox",Lt=lt||r(pt);if(Object(V.a)(Se!=="tags"||Lt.every(function(Pt){return!Pt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Se==="tags"||Se==="combobox"){var fn=Lt.some(function(Pt){return Pt.options?Pt.options.some(function(Kt){return typeof("value"in Kt?Kt.value:Kt.key)=="number"}):typeof("value"in Pt?Pt.value:Pt.key)=="number"});Object(V.a)(!fn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(V.a)(Se!=="combobox"||!Fe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(V.a)(Se==="combobox"||!mt,"`backfill` only works with `combobox` mode."),Object(V.a)(Se==="combobox"||!De,"`getInputElement` only work with `combobox` mode."),Object(V.b)(Se!=="combobox"||!De||!ht||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Be&&!Yt&&Se!=="combobox"&&Se!=="tags"&&Object(V.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(V.b)(!fe||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),bt!=null){var En=Object(q.d)(bt);Object(V.a)(!Xe||En.every(function(Pt){return Object(L.a)(Pt)==="object"&&("key"in Pt||"value"in Pt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(V.a)(!yt||Array.isArray(bt),"`value` should be array when `mode` is `multiple` or `tags`")}if(pt){var Jt=null;Object(z.a)(pt).some(function(Pt){if(!o.isValidElement(Pt)||!Pt.type)return!1;var Kt=Pt.type;if(Kt.isSelectOption)return!1;if(Kt.isSelectOptGroup){var hn=Object(z.a)(Pt.props.children).every(function(Ln){return!o.isValidElement(Ln)||!Pt.type||Ln.type.isSelectOption?!0:(Jt=Ln.type,!1)});return!hn}return Jt=Kt,!0}),Jt&&Object(V.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Jt.displayName||Jt.name||Jt,"`.")),Object(V.a)(Nt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var J=je,B=Object(c.a)({prefixCls:"rc-select",components:{optionList:_},convertChildrenToData:r,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:J,fillOptionsWithMissingValue:h.a}),Ue=function(Ve){Object(Ke.a)(lt,Ve);var Se=Object(P.a)(lt);function lt(){var pt;return Object(D.a)(this,lt),pt=Se.apply(this,arguments),pt.selectRef=o.createRef(),pt.focus=function(){pt.selectRef.current.focus()},pt.blur=function(){pt.selectRef.current.blur()},pt}return Object(R.a)(lt,[{key:"render",value:function(){return o.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),lt}(o.Component);Ue.Option=ie,Ue.OptGroup=Ne;var rt=Ue,Mt=Oe.c=rt},NvD2:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return C});var D=a("Kwbf");function R(I,u){var ae=new Set;return I.forEach(function(xe){u.has(xe)||ae.add(xe)}),ae}function Ke(I){var u=I||{},ae=u.disabled,xe=u.disableCheckbox,Y=u.checkable;return!!(ae||xe)||Y===!1}function P(I,u,ae,xe){for(var Y=new Set(I),Q=new Set,G=0;G<=ae;G+=1){var k=u.get(G)||new Set;k.forEach(function(_){var Z=_.key,ie=_.node,le=_.children,Ne=le===void 0?[]:le;Y.has(Z)&&!xe(ie)&&Ne.filter(function(H){return!xe(H.node)}).forEach(function(H){Y.add(H.key)})})}for(var y=new Set,p=ae;p>=0;p-=1){var A=u.get(p)||new Set;A.forEach(function(_){var Z=_.parent,ie=_.node;if(xe(ie)||!_.parent||y.has(_.parent.key))return;if(xe(_.parent.node)){y.add(Z.key);return}var le=!0,Ne=!1;(Z.children||[]).filter(function(H){return!xe(H.node)}).forEach(function(H){var z=H.key,K=Y.has(z);le&&!K&&(le=!1),!Ne&&(K||Q.has(z))&&(Ne=!0)}),le&&Y.add(Z.key),Ne&&Q.add(Z.key),y.add(Z.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(R(Q,Y))}}function o(I,u,ae,xe,Y){for(var Q=new Set(I),G=new Set(u),k=0;k<=xe;k+=1){var y=ae.get(k)||new Set;y.forEach(function(Z){var ie=Z.key,le=Z.node,Ne=Z.children,H=Ne===void 0?[]:Ne;!Q.has(ie)&&!G.has(ie)&&!Y(le)&&H.filter(function(z){return!Y(z.node)}).forEach(function(z){Q.delete(z.key)})})}G=new Set;for(var p=new Set,A=xe;A>=0;A-=1){var _=ae.get(A)||new Set;_.forEach(function(Z){var ie=Z.parent,le=Z.node;if(Y(le)||!Z.parent||p.has(Z.parent.key))return;if(Y(Z.parent.node)){p.add(ie.key);return}var Ne=!0,H=!1;(ie.children||[]).filter(function(z){return!Y(z.node)}).forEach(function(z){var K=z.key,r=Q.has(K);Ne&&!r&&(Ne=!1),!H&&(r||G.has(K))&&(H=!0)}),Ne||Q.delete(ie.key),H&&G.add(ie.key),p.add(ie.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(R(G,Q))}}function C(I,u,ae,xe){var Y=[],Q;xe?Q=xe:Q=Ke;var G=new Set(I.filter(function(A){var _=!!ae[A];return _||Y.push(A),_})),k=new Map,y=0;Object.keys(ae).forEach(function(A){var _=ae[A],Z=_.level,ie=k.get(Z);ie||(ie=new Set,k.set(Z,ie)),ie.add(_),y=Math.max(y,Z)}),Object(D.a)(!Y.length,"Tree missing follow keys: ".concat(Y.slice(0,100).map(function(A){return"'".concat(A,"'")}).join(", ")));var p;return u===!0?p=P(G,k,y,Q):p=o(G,u.halfCheckedKeys,k,y,Q),p}},O9y4:function(Ht,Oe,a){Ht.exports={flex_box_center:"flex_box_center___URTJX",flex_space_between:"flex_space_between___1SMjG",flex_box_vertical_center:"flex_box_vertical_center___34UPH",flex_box_center_end:"flex_box_center_end___3ywkJ",flex_box_column:"flex_box_column___35jG3",line1:"line1___5PIy0",form:"form___BZfpg"}},OLES:function(Ht,Oe,a){"use strict";var D=a("U8pU"),R=a("VTBJ"),Ke=a("Ff2n"),P=a("q1tI"),o=a("uciX"),C=a("7ixt"),I=function(G){var k=G.overlay,y=G.prefixCls,p=G.id,A=G.overlayInnerStyle;return P.createElement("div",{className:"".concat(y,"-inner"),id:p,role:"tooltip",style:A},typeof k=="function"?k():k)},u=I,ae=function(G,k){var y=G.overlayClassName,p=G.trigger,A=p===void 0?["hover"]:p,_=G.mouseEnterDelay,Z=_===void 0?0:_,ie=G.mouseLeaveDelay,le=ie===void 0?.1:ie,Ne=G.overlayStyle,H=G.prefixCls,z=H===void 0?"rc-tooltip":H,K=G.children,r=G.onVisibleChange,h=G.afterVisibleChange,c=G.transitionName,L=G.animation,V=G.placement,q=V===void 0?"right":V,je=G.align,J=je===void 0?{}:je,B=G.destroyTooltipOnHide,Ue=B===void 0?!1:B,rt=G.defaultVisible,Mt=G.getTooltipContainer,Ve=G.overlayInnerStyle,Se=Object(Ke.a)(G,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),lt=Object(P.useRef)(null);Object(P.useImperativeHandle)(k,function(){return lt.current});var pt=Object(R.a)({},Se);"visible"in G&&(pt.popupVisible=G.visible);var mt=function(){var Be=G.arrowContent,fe=Be===void 0?null:Be,ve=G.overlay,Xe=G.id;return[P.createElement("div",{className:"".concat(z,"-arrow"),key:"arrow"},fe),P.createElement(u,{key:"content",prefixCls:z,id:Xe,overlay:ve,overlayInnerStyle:Ve})]},ht=!1,oe=!1;if(typeof Ue=="boolean")ht=Ue;else if(Ue&&Object(D.a)(Ue)==="object"){var De=Ue.keepParent;ht=De===!0,oe=De===!1}return P.createElement(o.a,Object.assign({popupClassName:y,prefixCls:z,popup:mt,action:A,builtinPlacements:C.a,popupPlacement:q,ref:lt,popupAlign:J,getPopupContainer:Mt,onPopupVisibleChange:r,afterPopupVisibleChange:h,popupTransitionName:c,popupAnimation:L,defaultPopupVisible:rt,destroyPopupOnHide:ht,autoDestroy:oe,mouseLeaveDelay:le,popupStyle:Ne,mouseEnterDelay:Z},pt),K)},xe=Object(P.forwardRef)(ae),Y=Oe.a=xe},OZM5:function(Ht,Oe,a){"use strict";a.d(Oe,"b",function(){return xe}),a.d(Oe,"a",function(){return Y}),a.d(Oe,"k",function(){return Q}),a.d(Oe,"h",function(){return G}),a.d(Oe,"i",function(){return k}),a.d(Oe,"g",function(){return y}),a.d(Oe,"c",function(){return p}),a.d(Oe,"d",function(){return A}),a.d(Oe,"j",function(){return ie}),a.d(Oe,"e",function(){return le}),a.d(Oe,"f",function(){return Ne});var D=a("KQm4"),R=a("U8pU"),Ke=a("Ff2n"),P=a("q1tI"),o=a.n(P),C=a("Kwbf"),I=a("WaYH"),u=.25,ae=2;function xe(H,z){var K=H.slice(),r=K.indexOf(z);return r>=0&&K.splice(r,1),K}function Y(H,z){var K=H.slice();return K.indexOf(z)===-1&&K.push(z),K}function Q(H){return H.split("-")}function G(H,z){return"".concat(H,"-").concat(z)}function k(H){return H&&H.type&&H.type.isTreeNode}function y(H,z){var K=[H],r=z[H];function h(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(L){var V=L.key,q=L.children;K.push(V),h(q)})}return h(r.children),K}function p(H,z){var K=H.clientY,r=z.selectHandle.getBoundingClientRect(),h=r.top,c=r.bottom,L=r.height,V=Math.max(L*u,ae);return K<=h+V?-1:K>=c-V?1:0}function A(H,z){if(!H)return;var K=z.multiple;return K?H.slice():H.length?[H[0]]:H}var _=function(z){return z};function Z(H,z){if(!H)return[];var K=z||{},r=K.processProps,h=r===void 0?_:r,c=Array.isArray(H)?H:[H];return c.map(function(L){var V=L.children,q=Object(Ke.a)(L,["children"]),je=Z(V,z);return o.a.createElement(I.a,Object.assign({},h(q)),je)})}function ie(H){if(!H)return null;var z;if(Array.isArray(H))z={checkedKeys:H,halfCheckedKeys:void 0};else if(Object(R.a)(H)==="object")z={checkedKeys:H.checked||void 0,halfCheckedKeys:H.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return z}function le(H,z){var K=new Set;function r(h){if(K.has(h))return;var c=z[h];if(!c)return;K.add(h);var L=c.parent,V=c.node;if(V.disabled)return;L&&r(L.key)}return(H||[]).forEach(function(h){r(h)}),Object(D.a)(K)}function Ne(H){var z={};return Object.keys(H).forEach(function(K){(K.startsWith("data-")||K.startsWith("aria-"))&&(z[K]=H[K])}),z}},QPFH:function(Ht,Oe,a){Ht.exports={flex_box_center:"flex_box_center___1-SU2",flex_space_between:"flex_space_between___3HlrS",flex_box_vertical_center:"flex_box_vertical_center___3tuuc",flex_box_center_end:"flex_box_center_end___1SKe0",flex_box_column:"flex_box_column___35vT0",bg:"bg___1EdmP",containerTitle:"containerTitle___CZaR2",containerDesc:"containerDesc___sJstJ",listItem:"listItem___sJDQR",info:"info___aoOo_",title:"title___1fPmh",titleLeft:"titleLeft___7Sms1",titleRight:"titleRight___34lOT",acitons:"acitons___2fHcW"}},RotF:function(Ht,Oe,a){Ht.exports=a("LSTS")},"SA+Z":function(Ht,Oe,a){var D=a("wTVA"),R=a("EbDI"),Ke=a("ZhPi"),P=a("wkBT");function o(C){return D(C)||R(C)||Ke(C)||P()}Ht.exports=o,Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports},WaYH:function(Ht,Oe,a){"use strict";var D=a("rePB"),R=a("Ff2n"),Ke=a("VTBJ"),P=a("1OyB"),o=a("vuIU"),C=a("JX7q"),I=a("Ji7U"),u=a("LK+K"),ae=a("q1tI"),xe=a("TSYQ"),Y=a.n(xe),Q=a("sboe"),G=a("OZM5"),k=function(z){var K=z.prefixCls,r=z.level,h=z.isStart,c=z.isEnd;if(!r)return null;for(var L="".concat(K,"-indent-unit"),V=[],q=0;q1&&arguments[1]!==void 0?arguments[1]:!1,Ze=oe.getAttribute("id")||oe.getAttribute("data-reactid")||oe.getAttribute("name");if(De&&J[Ze])return J[Ze];var Be=window.getComputedStyle(oe),fe=Be.getPropertyValue("box-sizing")||Be.getPropertyValue("-moz-box-sizing")||Be.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(Be.getPropertyValue("padding-bottom"))+parseFloat(Be.getPropertyValue("padding-top")),Xe=parseFloat(Be.getPropertyValue("border-bottom-width"))+parseFloat(Be.getPropertyValue("border-top-width")),bt=je.map(function(Fe){return"".concat(Fe,":").concat(Be.getPropertyValue(Fe))}).join(";"),Nt={sizingStyle:bt,paddingSize:ve,borderSize:Xe,boxSizing:fe};return De&&Ze&&(J[Ze]=Nt),Nt}function rt(oe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;B||(B=document.createElement("textarea"),B.setAttribute("tab-index","-1"),B.setAttribute("aria-hidden","true"),document.body.appendChild(B)),oe.getAttribute("wrap")?B.setAttribute("wrap",oe.getAttribute("wrap")):B.removeAttribute("wrap");var fe=Ue(oe,De),ve=fe.paddingSize,Xe=fe.borderSize,bt=fe.boxSizing,Nt=fe.sizingStyle;B.setAttribute("style","".concat(Nt,";").concat(q)),B.value=oe.value||oe.placeholder||"";var Fe=Number.MIN_SAFE_INTEGER,yt=Number.MAX_SAFE_INTEGER,Yt=B.scrollHeight,Lt;if(bt==="border-box"?Yt+=Xe:bt==="content-box"&&(Yt-=ve),Ze!==null||Be!==null){B.value=" ";var fn=B.scrollHeight-ve;Ze!==null&&(Fe=fn*Ze,bt==="border-box"&&(Fe=Fe+ve+Xe),Yt=Math.max(Fe,Yt)),Be!==null&&(yt=fn*Be,bt==="border-box"&&(yt=yt+ve+Xe),Lt=Yt>yt?"":"hidden",Yt=Math.min(yt,Yt))}return{height:Yt,minHeight:Fe,maxHeight:yt,overflowY:Lt,resize:"none"}}var Mt=a("Gytx"),Ve=a.n(Mt),Te;(function(oe){oe[oe.NONE=0]="NONE",oe[oe.RESIZING=1]="RESIZING",oe[oe.RESIZED=2]="RESIZED"})(Te||(Te={}));var lt=function(oe){Object(P.a)(Ze,oe);var De=Object(o.a)(Ze);function Ze(Be){var fe;return Object(R.a)(this,Ze),fe=De.call(this,Be),fe.nextFrameActionId=void 0,fe.resizeFrameId=void 0,fe.textArea=void 0,fe.saveTextArea=function(ve){fe.textArea=ve},fe.handleResize=function(ve){var Xe=fe.state.resizeStatus,bt=fe.props,Nt=bt.autoSize,Fe=bt.onResize;if(Xe!==Te.NONE)return;typeof Fe=="function"&&Fe(ve),Nt&&fe.resizeOnNextFrame()},fe.resizeOnNextFrame=function(){cancelAnimationFrame(fe.nextFrameActionId),fe.nextFrameActionId=requestAnimationFrame(fe.resizeTextarea)},fe.resizeTextarea=function(){var ve=fe.props.autoSize;if(!ve||!fe.textArea)return;var Xe=ve.minRows,bt=ve.maxRows,Nt=rt(fe.textArea,!1,Xe,bt);fe.setState({textareaStyles:Nt,resizeStatus:Te.RESIZING},function(){cancelAnimationFrame(fe.resizeFrameId),fe.resizeFrameId=requestAnimationFrame(function(){fe.setState({resizeStatus:Te.RESIZED},function(){fe.resizeFrameId=requestAnimationFrame(function(){fe.setState({resizeStatus:Te.NONE}),fe.fixFirefoxAutoScroll()})})})})},fe.renderTextArea=function(){var ve=fe.props,Xe=ve.prefixCls,bt=Xe===void 0?"rc-textarea":Xe,Nt=ve.autoSize,Fe=ve.onResize,yt=ve.className,Yt=ve.disabled,Lt=fe.state,fn=Lt.textareaStyles,En=Lt.resizeStatus,Jt=Object(c.a)(fe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Pt=V()(bt,yt,Object(u.a)({},"".concat(bt,"-disabled"),Yt));"value"in Jt&&(Jt.value=Jt.value||"");var Kt=Object(I.a)(Object(I.a)(Object(I.a)({},fe.props.style),fn),En===Te.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return C.createElement(h,{onResize:fe.handleResize,disabled:!(Nt||Fe)},C.createElement("textarea",Object(D.a)({},Jt,{className:Pt,style:Kt,ref:fe.saveTextArea})))},fe.state={textareaStyles:{},resizeStatus:Te.NONE},fe}return Object(Ke.a)(Ze,[{key:"componentDidUpdate",value:function(fe){(fe.value!==this.props.value||!Ve()(fe.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var fe=this.textArea.selectionStart,ve=this.textArea.selectionEnd;this.textArea.setSelectionRange(fe,ve)}}catch(Xe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ze}(C.Component),pt=lt,mt=function(oe){Object(P.a)(Ze,oe);var De=Object(o.a)(Ze);function Ze(Be){var fe;Object(R.a)(this,Ze),fe=De.call(this,Be),fe.resizableTextArea=void 0,fe.focus=function(){fe.resizableTextArea.textArea.focus()},fe.saveTextArea=function(Xe){fe.resizableTextArea=Xe},fe.handleChange=function(Xe){var bt=fe.props.onChange;fe.setValue(Xe.target.value,function(){fe.resizableTextArea.resizeTextarea()}),bt&&bt(Xe)},fe.handleKeyDown=function(Xe){var bt=fe.props,Nt=bt.onPressEnter,Fe=bt.onKeyDown;Xe.keyCode===13&&Nt&&Nt(Xe),Fe&&Fe(Xe)};var ve=typeof Be.value=="undefined"||Be.value===null?Be.defaultValue:Be.value;return fe.state={value:ve},fe}return Object(Ke.a)(Ze,[{key:"setValue",value:function(fe,ve){"value"in this.props||this.setState({value:fe},ve)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return C.createElement(pt,Object(D.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(fe){return"value"in fe?{value:fe.value}:null}}]),Ze}(C.Component),ht=Oe.default=mt},ZpRC:function(Ht,Oe,a){"use strict";function D(Y){return typeof Y=="object"&&Y!=null&&Y.nodeType===1}function R(Y,Q){return(!Q||Y!=="hidden")&&Y!=="visible"&&Y!=="clip"}function Ke(Y,Q){if(Y.clientHeightQ||p>Y&&A=Q&&_>=G?p-Y-k:A>Q&&_G?A-Q+y:0}var o=function(Y,Q){var G=window,k=Q.scrollMode,y=Q.block,p=Q.inline,A=Q.boundary,_=Q.skipOverflowHiddenElements,Z=typeof A=="function"?A:function(fn){return fn!==A};if(!D(Y))throw new TypeError("Invalid target");for(var ie=document.scrollingElement||document.documentElement,le=[],Ne=Y;D(Ne)&&Z(Ne);){if((Ne=Ne.parentElement)===ie){le.push(Ne);break}Ne!=null&&Ne===document.body&&Ke(Ne)&&!Ke(document.documentElement)||Ne!=null&&Ke(Ne,_)&&le.push(Ne)}for(var H=G.visualViewport?G.visualViewport.width:innerWidth,z=G.visualViewport?G.visualViewport.height:innerHeight,K=window.scrollX||pageXOffset,r=window.scrollY||pageYOffset,h=Y.getBoundingClientRect(),c=h.height,L=h.width,V=h.top,q=h.right,je=h.bottom,J=h.left,B=y==="start"||y==="nearest"?V:y==="end"?je:V+c/2,Ue=p==="center"?J+L/2:p==="end"?q:J,rt=[],Mt=0;Mt=0&&J>=0&&je<=z&&q<=H&&V>=mt&&je<=oe&&J>=De&&q<=ht)return rt;var Ze=getComputedStyle(Ve),Be=parseInt(Ze.borderLeftWidth,10),fe=parseInt(Ze.borderTopWidth,10),ve=parseInt(Ze.borderRightWidth,10),Xe=parseInt(Ze.borderBottomWidth,10),bt=0,Nt=0,Fe="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-Be-ve:0,yt="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-fe-Xe:0;if(ie===Ve)bt=y==="start"?B:y==="end"?B-z:y==="nearest"?P(r,r+z,z,fe,Xe,r+B,r+B+c,c):B-z/2,Nt=p==="start"?Ue:p==="center"?Ue-H/2:p==="end"?Ue-H:P(K,K+H,H,Be,ve,K+Ue,K+Ue+L,L),bt=Math.max(0,bt+r),Nt=Math.max(0,Nt+K);else{bt=y==="start"?B-mt-fe:y==="end"?B-oe+Xe+yt:y==="nearest"?P(mt,oe,lt,fe,Xe+yt,B,B+c,c):B-(mt+lt/2)+yt/2,Nt=p==="start"?Ue-De-Be:p==="center"?Ue-(De+pt/2)+Fe/2:p==="end"?Ue-ht+ve+Fe:P(De,ht,pt,Be,ve+Fe,Ue,Ue+L,L);var Yt=Ve.scrollLeft,Lt=Ve.scrollTop;B+=Lt-(bt=Math.max(0,Math.min(Lt+bt,Ve.scrollHeight-lt+yt))),Ue+=Yt-(Nt=Math.max(0,Math.min(Yt+Nt,Ve.scrollWidth-pt+Fe)))}rt.push({el:Ve,top:bt,left:Nt})}return rt};function C(Y){return Y===Object(Y)&&Object.keys(Y).length!==0}function I(Y,Q){Q===void 0&&(Q="auto");var G="scrollBehavior"in document.body.style;Y.forEach(function(k){var y=k.el,p=k.top,A=k.left;y.scroll&&G?y.scroll({top:p,left:A,behavior:Q}):(y.scrollTop=p,y.scrollLeft=A)})}function u(Y){return Y===!1?{block:"end",inline:"nearest"}:C(Y)?Y:{block:"start",inline:"nearest"}}function ae(Y,Q){var G=!Y.ownerDocument.documentElement.contains(Y);if(C(Q)&&typeof Q.behavior=="function")return Q.behavior(G?[]:o(Y,Q));if(G)return;var k=u(Q);return I(o(Y,k),k.behavior)}var xe=Oe.a=ae},bT9E:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return R});var D=a("VTBJ");function R(Ke,P){var o=Object(D.a)({},Ke);return Array.isArray(P)&&P.forEach(function(C){delete o[C]}),o}},biw7:function(Ht,Oe,a){"use strict";var D=a("q1tI"),R=a.n(D),Ke=D.createContext(null);Oe.a=Ke},fyJ8:function(Ht,Oe,a){"use strict";var D=a("rePB"),R=a("VTBJ"),Ke=a("Ff2n"),P=a("U8pU"),o=a("q1tI"),C=a.n(o),I=a("TSYQ"),u=a.n(I),ae=a("c+Xe"),xe=a("sR1s");function Y(p){return p&&Object(P.a)(p)==="object"&&!Array.isArray(p)&&!o.isValidElement(p)}function Q(p){return typeof p=="string"?!0:Object(ae.c)(p)}function G(p,A){var _,Z=p.prefixCls,ie=p.className,le=p.record,Ne=p.index,H=p.dataIndex,z=p.render,K=p.children,r=p.component,h=r===void 0?"td":r,c=p.colSpan,L=p.rowSpan,V=p.fixLeft,q=p.fixRight,je=p.firstFixLeft,J=p.lastFixLeft,B=p.firstFixRight,Ue=p.lastFixRight,rt=p.appendNode,Mt=p.additionalProps,Ve=Mt===void 0?{}:Mt,Te=p.ellipsis,lt=p.align,pt=p.rowType,mt=p.isSticky,ht="".concat(Z,"-cell"),oe,De;if(K)De=K;else{var Ze=Object(xe.b)(le,H);if(De=Ze,z){var Be=z(Ze,le,Ne);Y(Be)?(De=Be.children,oe=Be.props):De=Be}}Object(P.a)(De)==="object"&&!Array.isArray(De)&&!o.isValidElement(De)&&(De=null),Te&&(J||B)&&(De=o.createElement("span",{className:"".concat(ht,"-content")},De));var fe=oe||{},ve=fe.colSpan,Xe=fe.rowSpan,bt=fe.style,Nt=fe.className,Fe=Object(Ke.a)(fe,["colSpan","rowSpan","style","className"]),yt=ve!==void 0?ve:c,Yt=Xe!==void 0?Xe:L;if(yt===0||Yt===0)return null;var Lt={},fn=typeof V=="number",En=typeof q=="number";fn&&(Lt.position="sticky",Lt.left=V),En&&(Lt.position="sticky",Lt.right=q);var Jt={};lt&&(Jt.textAlign=lt);var Pt,Kt=Te===!0?{showTitle:!0}:Te;Kt&&(Kt.showTitle||pt==="header")&&(typeof De=="string"||typeof De=="number"?Pt=De.toString():o.isValidElement(De)&&typeof De.props.children=="string"&&(Pt=De.props.children));var hn=Object(R.a)(Object(R.a)(Object(R.a)({title:Pt},Fe),Ve),{},{colSpan:yt&&yt!==1?yt:null,rowSpan:Yt&&Yt!==1?Yt:null,className:u()(ht,ie,(_={},Object(D.a)(_,"".concat(ht,"-fix-left"),fn),Object(D.a)(_,"".concat(ht,"-fix-left-first"),je),Object(D.a)(_,"".concat(ht,"-fix-left-last"),J),Object(D.a)(_,"".concat(ht,"-fix-right"),En),Object(D.a)(_,"".concat(ht,"-fix-right-first"),B),Object(D.a)(_,"".concat(ht,"-fix-right-last"),Ue),Object(D.a)(_,"".concat(ht,"-ellipsis"),Te),Object(D.a)(_,"".concat(ht,"-with-append"),rt),Object(D.a)(_,"".concat(ht,"-fix-sticky"),(fn||En)&&mt),_),Ve.className,Nt),style:Object(R.a)(Object(R.a)(Object(R.a)(Object(R.a)({},Ve.style),Jt),Lt),bt),ref:Q(h)?A:null});return o.createElement(h,Object.assign({},hn),rt,De)}var k=o.forwardRef(G);k.displayName="Cell";var y=o.memo(k,function(p,A){return A.shouldCellUpdate?!A.shouldCellUpdate(A.record,p.record):!1});Oe.a=y},hW8S:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return P}),a.d(Oe,"c",function(){return o}),a.d(Oe,"b",function(){return C});var D=a("VTBJ"),R=a("Ff2n"),Ke=a("Kwbf"),P="RC_TABLE_INTERNAL_COL_DEFINE";function o(I){var u=I.expandable,ae=Object(R.a)(I,["expandable"]);return"expandable"in I?Object(D.a)(Object(D.a)({},ae),u):ae}function C(I){return Object.keys(I).reduce(function(u,ae){return(ae.substr(0,5)==="data-"||ae.substr(0,5)==="aria-")&&(u[ae]=I[ae]),u},{})}},k3GJ:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return oa});var D=a("rePB"),R=a("ODXe"),Ke=a("Ff2n"),P=a("VTBJ"),o=a("q1tI"),C=a("TSYQ"),I=a.n(C),u=a("Zm9Q"),ae=a("6cGi"),xe=a("KQm4"),Y=a("xEkU"),Q=a.n(Y),G=a("t23M");function k(s){var E=Object(o.useRef)(),M=Object(o.useRef)(!1);function m(){for(var t=arguments.length,l=new Array(t),n=0;nN&&(he=N-ce),Object(o.useMemo)(function(){if(!l.length)return[0,0];for(var Ie=l.length,at=Ie,xt=0;xtg+he){at=xt-1;break}}for(var Bt=0,zt=Ie-1;zt>=0;zt-=1){var At=s.get(l[zt].key)||le;if(At[j]1&&arguments[1]!==void 0?arguments[1]:!1,m=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(m){if(M){var t=getComputedStyle(E),l=t.marginLeft,n=t.marginRight;m+=+l.replace("px","")+ +n.replace("px","")}m=+m.toFixed(6)}return m||0},Pt=function(E,M,m){E&&Object(B.a)(E.style)==="object"&&(E.style[M]=m)},Kt=function(){return Nt.any},hn=a("bdgK"),Ln=a("i8i4"),In=a.n(Ln),pn=a("wgJM"),Dn=a("l4aY"),sa=a("m+aA"),U=a("c+Xe"),Re=a("zT1h"),_e=a("QC+M");function He(s,E,M){return M?s[0]===E[0]:s[0]===E[0]&&s[1]===E[1]}function it(s,E,M){var m=s[E]||{};return Object(P.a)(Object(P.a)({},m),M)}function qe(s,E,M,m){for(var t=M.points,l=Object.keys(s),n=0;n1&&arguments[1]!==void 0?arguments[1]:2;E();var l=Object(pn.a)(function(){t<=1?m({isCanceled:function(){return l!==s.current}}):M(m,t-1)});s.current=l}return o.useEffect(function(){return function(){E()}},[]),[M,E]},ln=[F,ue,se,w],dn=!1,Un=!0;function Nn(s){return s===se||s===w}var et=function(s,E){var M=o.useState(ne),m=Object(R.a)(M,2),t=m[0],l=m[1],n=st(),f=Object(R.a)(n,2),b=f[0],j=f[1];function g(){l(F)}return Ot(function(){if(t!==ne&&t!==w){var N=ln.indexOf(t),$=ln[N+1],ce=E(t);ce===dn?l($):b(function(he){function Ie(){if(he.isCanceled())return;l($)}ce===!0?Ie():Promise.resolve(ce).then(Ie)})}},[s,t]),o.useEffect(function(){return function(){j()}},[]),[g,t]},tn=function(s){var E=Object(o.useRef)(),M=Object(o.useRef)(s);M.current=s;var m=o.useCallback(function(n){M.current(n)},[]);function t(n){n&&(n.removeEventListener(Se,m),n.removeEventListener(jt,m))}function l(n){E.current&&E.current!==n&&t(E.current),n&&n!==E.current&&(n.addEventListener(Se,m),n.addEventListener(jt,m),E.current=n)}return o.useEffect(function(){return function(){t(E.current)}},[]),[l,t]};function sn(s,E,M,m){var t=m.motionEnter,l=t===void 0?!0:t,n=m.motionAppear,f=n===void 0?!0:n,b=m.motionLeave,j=b===void 0?!0:b,g=m.motionDeadline,N=m.motionLeaveImmediately,$=m.onAppearPrepare,ce=m.onEnterPrepare,he=m.onLeavePrepare,Ie=m.onAppearStart,at=m.onEnterStart,xt=m.onLeaveStart,Et=m.onAppearActive,Bt=m.onEnterActive,zt=m.onLeaveActive,At=m.onAppearEnd,Vt=m.onEnterEnd,qt=m.onLeaveEnd,Ct=m.onVisibleChanged,mn=re(),wt=Object(R.a)(mn,2),Ce=wt[0],ze=wt[1],It=re(pe),an=Object(R.a)(It,2),ut=an[0],cn=an[1],Tn=re(null),on=Object(R.a)(Tn,2),bn=on[0],wn=on[1],yn=Object(o.useRef)(!1),gn=Object(o.useRef)(null),Tt=Object(o.useRef)(!1),Jn=Object(o.useRef)(null);function wa(){var kn=M();return kn||Jn.current}var Ea=Object(o.useRef)(!1);function Sa(kn){var On=wa();if(kn&&!kn.deadline&&kn.target!==On)return;var ra;ut===S&&Ea.current?ra=At==null?void 0:At(On,kn):ut===i&&Ea.current?ra=Vt==null?void 0:Vt(On,kn):ut===d&&Ea.current&&(ra=qt==null?void 0:qt(On,kn)),ra!==!1&&!Tt.current&&(cn(pe),wn(null))}var Zn=tn(Sa),ua=Object(R.a)(Zn,1),Yn=ua[0],ea=o.useMemo(function(){var kn,On,ra;switch(ut){case"appear":return kn={},Object(D.a)(kn,F,$),Object(D.a)(kn,ue,Ie),Object(D.a)(kn,se,Et),kn;case"enter":return On={},Object(D.a)(On,F,ce),Object(D.a)(On,ue,at),Object(D.a)(On,se,Bt),On;case"leave":return ra={},Object(D.a)(ra,F,he),Object(D.a)(ra,ue,xt),Object(D.a)(ra,se,zt),ra;default:return{}}},[ut]),Ta=et(ut,function(kn){if(kn===F){var On=ea[F];return On?On(wa()):dn}if(An in ea){var ra;wn(((ra=ea[An])===null||ra===void 0?void 0:ra.call(ea,wa(),null))||null)}return An===se&&(Yn(wa()),g>0&&(clearTimeout(gn.current),gn.current=setTimeout(function(){Sa({deadline:!0})},g))),Un}),Va=Object(R.a)(Ta,2),Wa=Va[0],An=Va[1],_a=Nn(An);Ea.current=_a,Ot(function(){ze(E);var kn=yn.current;if(yn.current=!0,!s)return;var On;!kn&&E&&f&&(On=S),kn&&E&&l&&(On=i),(kn&&!E&&j||!kn&&N&&!E&&j)&&(On=d),On&&(cn(On),Wa())},[E]),Object(o.useEffect)(function(){(ut===S&&!f||ut===i&&!l||ut===d&&!j)&&cn(pe)},[f,l,j]),Object(o.useEffect)(function(){return function(){clearTimeout(gn.current),Tt.current=!0}},[]),Object(o.useEffect)(function(){Ce!==void 0&&ut===pe&&(Ct==null||Ct(Ce))},[Ce,ut]);var Aa=bn;return ea[F]&&An===ue&&(Aa=Object(P.a)({transition:"none"},Aa)),[ut,An,Aa,Ce!=null?Ce:E]}var Sn=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){return Object(z.a)(this,M),E.apply(this,arguments)}return Object(K.a)(M,[{key:"render",value:function(){return this.props.children}}]),M}(o.Component),Xt=Sn;function Qt(s){var E=s;Object(B.a)(s)==="object"&&(E=s.transitionSupport);function M(t){return!!(t.motionName&&E)}var m=o.forwardRef(function(t,l){var n=t.visible,f=n===void 0?!0:n,b=t.removeOnLeave,j=b===void 0?!0:b,g=t.forceRender,N=t.children,$=t.motionName,ce=t.leavedClassName,he=t.eventProps,Ie=M(t),at=Object(o.useRef)(),xt=Object(o.useRef)();function Et(){try{return Object(sa.a)(at.current||xt.current)}catch(cn){return null}}var Bt=sn(Ie,f,Et,t),zt=Object(R.a)(Bt,4),At=zt[0],Vt=zt[1],qt=zt[2],Ct=zt[3],mn=o.useRef(Ct);Ct&&(mn.current=!0);var wt=Object(o.useRef)(l);wt.current=l;var Ce=o.useCallback(function(cn){at.current=cn,Object(U.b)(wt.current,cn)},[]),ze,It=Object(P.a)(Object(P.a)({},he),{},{visible:f});if(!N)ze=null;else if(At===pe||!M(t))Ct?ze=N(Object(P.a)({},It),Ce):!j&&mn.current?ze=N(Object(P.a)(Object(P.a)({},It),{},{className:ce}),Ce):g?ze=N(Object(P.a)(Object(P.a)({},It),{},{style:{display:"none"}}),Ce):ze=null;else{var an,ut;Vt===F?ut="prepare":Nn(Vt)?ut="active":Vt===ue&&(ut="start"),ze=N(Object(P.a)(Object(P.a)({},It),{},{className:I()(te($,At),(an={},Object(D.a)(an,te($,"".concat(At,"-").concat(ut)),ut),Object(D.a)(an,$,typeof $=="string"),an)),style:qt}),Ce)}return o.createElement(Xt,{ref:xt},ze)});return m.displayName="CSSMotion",m}var Rn=Qt(kt),$t="add",Hn="keep",Mn="remove",Rt="removed";function vn(s){var E;return s&&Object(B.a)(s)==="object"&&"key"in s?E=s:E={key:s},Object(P.a)(Object(P.a)({},E),{},{key:String(E.key)})}function un(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return s.map(vn)}function Cn(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=[],m=0,t=E.length,l=un(s),n=un(E);l.forEach(function(j){for(var g=!1,N=m;N1});return b.forEach(function(j){M=M.filter(function(g){var N=g.key,$=g.status;return N!==j||$!==Mn}),M.forEach(function(g){g.key===j&&(g.status=Hn)})}),M}var Kn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Xn(s){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn,M=function(m){Object(h.a)(l,m);var t=Object(c.a)(l);function l(){var n;return Object(z.a)(this,l),n=t.apply(this,arguments),n.state={keyEntities:[]},n.removeKey=function(f){n.setState(function(b){var j=b.keyEntities;return{keyEntities:j.map(function(g){return g.key!==f?g:Object(P.a)(Object(P.a)({},g),{},{status:Rt})})}})},n}return Object(K.a)(l,[{key:"render",value:function(){var f=this,b=this.state.keyEntities,j=this.props,g=j.component,N=j.children,$=j.onVisibleChanged,ce=Object(Ke.a)(j,["component","children","onVisibleChanged"]),he=g||o.Fragment,Ie={};return Kn.forEach(function(at){Ie[at]=ce[at],delete ce[at]}),delete ce.keys,o.createElement(he,ce,b.map(function(at){var xt=at.status,Et=Object(Ke.a)(at,["status"]),Bt=xt===$t||xt===Hn;return o.createElement(E,Object(H.a)({},Ie,{key:Et.key,visible:Bt,eventProps:Et,onVisibleChanged:function(At){$==null||$(At,{key:Et.key}),At||f.removeKey(Et.key)}}),N)}))}}],[{key:"getDerivedStateFromProps",value:function(f,b){var j=f.keys,g=b.keyEntities,N=un(j),$=Cn(g,N);return{keyEntities:$.filter(function(ce){var he=g.find(function(Ie){var at=Ie.key;return ce.key===at});return!(he&&he.status===Rt&&ce.status===Mn)})}}}]),l}(o.Component);return M.defaultProps={component:"div"},M}var Gn=Xn(kt),pa=Rn;function ya(s){var E=s.prefixCls,M=s.motion,m=s.animation,t=s.transitionName;return M||(m?{motionName:"".concat(E,"-").concat(m)}:t?{motionName:t}:null)}function Za(s){var E=s.prefixCls,M=s.visible,m=s.zIndex,t=s.mask,l=s.maskMotion,n=s.maskAnimation,f=s.maskTransitionName;if(!t)return null;var b={};return(l||f||n)&&(b=Object(P.a)({motionAppear:!0},ya({motion:l,prefixCls:E,transitionName:f,animation:n}))),o.createElement(pa,Object(H.a)({},b,{visible:M,removeOnLeave:!0}),function(j){var g=j.className;return o.createElement("div",{style:{zIndex:m},className:I()("".concat(E,"-mask"),g)})})}var Ha=a("9mu1"),qa=a("o0o1"),io=a.n(qa),eo=a("HaE+"),Ia=["measure","align",null,"motion"],Fn=function(s,E){var M=Object(o.useState)(null),m=Object(R.a)(M,2),t=m[0],l=m[1],n=Object(o.useRef)(),f=Object(o.useRef)(!1);function b(N){f.current||l(N)}function j(){pn.a.cancel(n.current)}function g(N){j(),n.current=Object(pn.a)(function(){b(function($){switch(t){case"align":return"motion";case"motion":return"stable";default:}return $}),N==null||N()})}return Object(o.useEffect)(function(){b("measure")},[s]),Object(o.useEffect)(function(){switch(t){case"measure":E();break;default:}t&&(n.current=Object(pn.a)(Object(eo.a)(io.a.mark(function N(){var $,ce;return io.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:$=Ia.indexOf(t),ce=Ia[$+1],ce&&$!==-1&&b(ce);case 3:case"end":return Ie.stop()}},N)}))))},[t]),Object(o.useEffect)(function(){return function(){f.current=!0,j()}},[]),[t,g]},to=function(s){var E=o.useState({width:0,height:0}),M=Object(R.a)(E,2),m=M[0],t=M[1];function l(f){t({width:f.offsetWidth,height:f.offsetHeight})}var n=o.useMemo(function(){var f={};if(s){var b=m.width,j=m.height;s.indexOf("height")!==-1&&j?f.height=j:s.indexOf("minHeight")!==-1&&j&&(f.minHeight=j),s.indexOf("width")!==-1&&b?f.width=b:s.indexOf("minWidth")!==-1&&b&&(f.minWidth=b)}return f},[s,m]);return[n,l]},Ua=o.forwardRef(function(s,E){var M=s.visible,m=s.prefixCls,t=s.className,l=s.style,n=s.children,f=s.zIndex,b=s.stretch,j=s.destroyPopupOnHide,g=s.forceRender,N=s.align,$=s.point,ce=s.getRootDomNode,he=s.getClassNameFromAlign,Ie=s.onAlign,at=s.onMouseEnter,xt=s.onMouseLeave,Et=s.onMouseDown,Bt=s.onTouchStart,zt=Object(o.useRef)(),At=Object(o.useRef)(),Vt=Object(o.useState)(),qt=Object(R.a)(Vt,2),Ct=qt[0],mn=qt[1],wt=to(b),Ce=Object(R.a)(wt,2),ze=Ce[0],It=Ce[1];function an(){b&&It(ce())}var ut=Fn(M,an),cn=Object(R.a)(ut,2),Tn=cn[0],on=cn[1],bn=Object(o.useRef)();function wn(){return $||ce}function yn(){var Zn;(Zn=zt.current)===null||Zn===void 0||Zn.forceAlign()}function gn(Zn,ua){var Yn=he(ua);Ct!==Yn&&mn(Yn),Tn==="align"&&(Ct!==Yn?Promise.resolve().then(function(){yn()}):on(function(){var ea;(ea=bn.current)===null||ea===void 0||ea.call(bn)}),Ie==null||Ie(Zn,ua))}var Tt=Object(P.a)({},ya(s));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Zn){var ua=Tt[Zn];Tt[Zn]=function(Yn,ea){return on(),ua==null?void 0:ua(Yn,ea)}});function Jn(){return new Promise(function(Zn){bn.current=Zn})}o.useEffect(function(){!Tt.motionName&&Tn==="motion"&&on()},[Tt.motionName,Tn]),o.useImperativeHandle(E,function(){return{forceAlign:yn,getElement:function(){return At.current}}});var wa=Object(P.a)(Object(P.a)({},ze),{},{zIndex:f,opacity:Tn==="motion"||Tn==="stable"||!M?void 0:0,pointerEvents:Tn==="stable"?void 0:"none"},l),Ea=!0;(N==null?void 0:N.points)&&(Tn==="align"||Tn==="stable")&&(Ea=!1);var Sa=n;return o.Children.count(n)>1&&(Sa=o.createElement("div",{className:"".concat(m,"-content")},n)),o.createElement(pa,Object(H.a)({visible:M,ref:At,leavedClassName:"".concat(m,"-hidden")},Tt,{onAppearPrepare:Jn,onEnterPrepare:Jn,removeOnLeave:j,forceRender:g}),function(Zn,ua){var Yn=Zn.className,ea=Zn.style,Ta=I()(m,t,Ct,Yn);return o.createElement(Ha.a,{target:wn(),key:"popup",ref:zt,monitorWindowResize:!0,disabled:Ea,align:N,onAlign:gn},o.createElement("div",{ref:ua,className:Ta,onMouseEnter:at,onMouseLeave:xt,onMouseDownCapture:Et,onTouchStartCapture:Bt,style:Object(P.a)(Object(P.a)({},ea),wa)},Sa))})});Ua.displayName="PopupInner";var no=Ua,Na=o.forwardRef(function(s,E){var M=s.prefixCls,m=s.visible,t=s.zIndex,l=s.children,n=s.mobile;n=n===void 0?{}:n;var f=n.popupClassName,b=n.popupStyle,j=n.popupMotion,g=j===void 0?{}:j,N=n.popupRender,$=o.useRef();o.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return $.current}}});var ce=Object(P.a)({zIndex:t},b),he=l;return o.Children.count(l)>1&&(he=o.createElement("div",{className:"".concat(M,"-content")},l)),N&&(he=N(he)),o.createElement(pa,Object(H.a)({visible:m,ref:$,removeOnLeave:!0},g),function(Ie,at){var xt=Ie.className,Et=Ie.style,Bt=I()(M,f,xt);return o.createElement("div",{ref:at,className:Bt,style:Object(P.a)(Object(P.a)({},Et),ce)},he)})});Na.displayName="MobilePopupInner";var So=Na,go=["visible","mobile"],lo=o.forwardRef(function(s,E){var M=s.visible,m=s.mobile,t=Object(Ke.a)(s,go),l=Object(o.useState)(M),n=Object(R.a)(l,2),f=n[0],b=n[1],j=Object(o.useState)(!1),g=Object(R.a)(j,2),N=g[0],$=g[1],ce=Object(P.a)(Object(P.a)({},t),{},{visible:f});Object(o.useEffect)(function(){b(M),M&&m&&$($e())},[M,m]);var he=N?o.createElement(So,Object(H.a)({},ce,{mobile:m,ref:E})):o.createElement(no,Object(H.a)({},ce,{ref:E}));return o.createElement("div",null,o.createElement(Za,ce),he)});lo.displayName="Popup";var To=lo,No=o.createContext(null),so=No;function Xa(){}function Eo(){return""}function Ro(s){return s?s.ownerDocument:window.document}var Co=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Po(s){var E=function(M){Object(h.a)(t,M);var m=Object(c.a)(t);function t(l){var n;Object(z.a)(this,t),n=m.call(this,l),n.popupRef=o.createRef(),n.triggerRef=o.createRef(),n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(b){var j=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",b),n.delaySetPopupVisible(!0,j,j?null:b)},n.onMouseMove=function(b){n.fireEvents("onMouseMove",b),n.setPoint(b)},n.onMouseLeave=function(b){n.fireEvents("onMouseLeave",b),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(b){var j;if(b.relatedTarget&&!b.relatedTarget.setTimeout&&Object(Dn.a)((j=n.popupRef.current)===null||j===void 0?void 0:j.getElement(),b.relatedTarget))return;n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(b){n.fireEvents("onFocus",b),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(b){n.fireEvents("onMouseDown",b),n.preClickTime=Date.now()},n.onTouchStart=function(b){n.fireEvents("onTouchStart",b),n.preTouchTime=Date.now()},n.onBlur=function(b){n.fireEvents("onBlur",b),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(b){b.preventDefault(),n.fireEvents("onContextMenu",b),n.setPopupVisible(!0,b)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(b){if(n.fireEvents("onClick",b),n.focusTime){var j;if(n.preClickTime&&n.preTouchTime?j=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?j=n.preClickTime:n.preTouchTime&&(j=n.preTouchTime),Math.abs(j-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&b&&b.preventDefault&&b.preventDefault();var g=!n.state.popupVisible;(n.isClickToHide()&&!g||g&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,b)},n.onPopupMouseDown=function(){if(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout(function(){n.hasPopupMouseDown=!1},0),n.context){var b;(b=n.context).onPopupMouseDown.apply(b,arguments)}},n.onDocumentClick=function(b){if(n.props.mask&&!n.props.maskClosable)return;var j=b.target,g=n.getRootDomNode(),N=n.getPopupDomNode();(!Object(Dn.a)(g,j)||n.isContextMenuOnly())&&!Object(Dn.a)(N,j)&&!n.hasPopupMouseDown&&n.close()},n.getRootDomNode=function(){var b=n.props.getTriggerDOMNode;if(b)return b(n.triggerRef.current);try{var j=Object(sa.a)(n.triggerRef.current);if(j)return j}catch(g){}return In.a.findDOMNode(Object(r.a)(n))},n.getPopupClassNameFromAlign=function(b){var j=[],g=n.props,N=g.popupPlacement,$=g.builtinPlacements,ce=g.prefixCls,he=g.alignPoint,Ie=g.getPopupClassNameFromAlign;return N&&$&&j.push(qe($,ce,b,he)),Ie&&j.push(Ie(b)),j.join(" ")},n.getComponent=function(){var b=n.props,j=b.prefixCls,g=b.destroyPopupOnHide,N=b.popupClassName,$=b.onPopupAlign,ce=b.popupMotion,he=b.popupAnimation,Ie=b.popupTransitionName,at=b.popupStyle,xt=b.mask,Et=b.maskAnimation,Bt=b.maskTransitionName,zt=b.maskMotion,At=b.zIndex,Vt=b.popup,qt=b.stretch,Ct=b.alignPoint,mn=b.mobile,wt=b.forceRender,Ce=n.state,ze=Ce.popupVisible,It=Ce.point,an=n.getPopupAlign(),ut={};return n.isMouseEnterToShow()&&(ut.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(ut.onMouseLeave=n.onPopupMouseLeave),ut.onMouseDown=n.onPopupMouseDown,ut.onTouchStart=n.onPopupMouseDown,o.createElement(To,Object(H.a)({prefixCls:j,destroyPopupOnHide:g,visible:ze,point:Ct&&It,className:N,align:an,onAlign:$,animation:he,getClassNameFromAlign:n.getPopupClassNameFromAlign},ut,{stretch:qt,getRootDomNode:n.getRootDomNode,style:at,mask:xt,zIndex:At,transitionName:Ie,maskAnimation:Et,maskTransitionName:Bt,maskMotion:zt,ref:n.popupRef,motion:ce,mobile:mn,forceRender:wt}),typeof Vt=="function"?Vt():Vt)},n.attachParent=function(b){pn.a.cancel(n.attachId);var j=n.props,g=j.getPopupContainer,N=j.getDocument,$=n.getRootDomNode(),ce;g?($||g.length===0)&&(ce=g($)):ce=N(n.getRootDomNode()).body,ce?ce.appendChild(b):n.attachId=Object(pn.a)(function(){n.attachParent(b)})},n.getContainer=function(){var b=n.props.getDocument,j=b(n.getRootDomNode()).createElement("div");return j.style.position="absolute",j.style.top="0",j.style.left="0",j.style.width="100%",n.attachParent(j),j},n.setPoint=function(b){var j=n.props.alignPoint;if(!j||!b)return;n.setState({point:{pageX:b.pageX,pageY:b.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown};var f;return"popupVisible"in l?f=!!l.popupVisible:f=!!l.defaultPopupVisible,n.state={prevPopupVisible:f,popupVisible:f},Co.forEach(function(b){n["fire".concat(b)]=function(j){n.fireEvents(b,j)}}),n}return Object(K.a)(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var n=this.props,f=this.state;if(f.popupVisible){var b;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(b=n.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Re.a)(b,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(b=b||n.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Re.a)(b,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(b=b||n.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Re.a)(b,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Re.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),pn.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var n;return((n=this.popupRef.current)===null||n===void 0?void 0:n.getElement())||null}},{key:"getPopupAlign",value:function(){var n=this.props,f=n.popupPlacement,b=n.popupAlign,j=n.builtinPlacements;return f&&j?it(j,f,b):b}},{key:"setPopupVisible",value:function(n,f){var b=this.props.alignPoint,j=this.state.popupVisible;this.clearDelayTimer(),j!==n&&("popupVisible"in this.props||this.setState({popupVisible:n,prevPopupVisible:j}),this.props.onPopupVisibleChange(n)),b&&f&&n&&this.setPoint(f)}},{key:"delaySetPopupVisible",value:function(n,f,b){var j=this,g=f*1e3;if(this.clearDelayTimer(),g){var N=b?{pageX:b.pageX,pageY:b.pageY}:null;this.delayTimer=window.setTimeout(function(){j.setPopupVisible(n,N),j.clearDelayTimer()},g)}else this.setPopupVisible(n,b)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(n){var f=this.props.children.props,b=this.props;return f[n]&&b[n]?this["fire".concat(n)]:f[n]||b[n]}},{key:"isClickToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("click")!==-1||b.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var n=this.props.action;return n==="contextMenu"||n.length===1&&n[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("contextMenu")!==-1||b.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var n=this.props,f=n.action,b=n.hideAction;return f.indexOf("click")!==-1||b.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("hover")!==-1||b.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var n=this.props,f=n.action,b=n.hideAction;return f.indexOf("hover")!==-1||b.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("focus")!==-1||b.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var n=this.props,f=n.action,b=n.hideAction;return f.indexOf("focus")!==-1||b.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var n;(n=this.popupRef.current)===null||n===void 0||n.forceAlign()}}},{key:"fireEvents",value:function(n,f){var b=this.props.children.props[n];b&&b(f);var j=this.props[n];j&&j(f)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,f=this.props,b=f.children,j=f.forceRender,g=f.alignPoint,N=f.className,$=f.autoDestroy,ce=o.Children.only(b),he={key:"trigger"};this.isContextMenuToShow()?he.onContextMenu=this.onContextMenu:he.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(he.onClick=this.onClick,he.onMouseDown=this.onMouseDown,he.onTouchStart=this.onTouchStart):(he.onClick=this.createTwoChains("onClick"),he.onMouseDown=this.createTwoChains("onMouseDown"),he.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(he.onMouseEnter=this.onMouseEnter,g&&(he.onMouseMove=this.onMouseMove)):he.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?he.onMouseLeave=this.onMouseLeave:he.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(he.onFocus=this.onFocus,he.onBlur=this.onBlur):(he.onFocus=this.createTwoChains("onFocus"),he.onBlur=this.createTwoChains("onBlur"));var Ie=I()(ce&&ce.props&&ce.props.className,N);Ie&&(he.className=Ie);var at=Object(P.a)({},he);Object(U.c)(ce)&&(at.ref=Object(U.a)(this.triggerRef,ce.ref));var xt=o.cloneElement(ce,at),Et;return(n||this.popupRef.current||j)&&(Et=o.createElement(s,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&$&&(Et=null),o.createElement(so.Provider,{value:this.triggerContextValue},xt,Et)}}],[{key:"getDerivedStateFromProps",value:function(n,f){var b=n.popupVisible,j={};return b!==void 0&&f.popupVisible!==b&&(j.popupVisible=b,j.prevPopupVisible=f.popupVisible),j}}]),t}(o.Component);return E.contextType=so,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Eo,getDocument:Ro,onPopupVisibleChange:Xa,afterPopupVisibleChange:Xa,onPopupAlign:Xa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var Go=Po(_e.a),e={adjustX:1,adjustY:1},v={topLeft:{points:["bl","tl"],overflow:e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0]}},x={topLeft:{points:["bl","tl"],overflow:e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:e,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:e,offset:[4,0]}},O=v,W=0,T={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},X=function(E,M,m){var t=Yt(M),l=E.getState();E.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},l.defaultActiveFirst),{},Object(D.a)({},t,m))})},de=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(m){var t;Object(z.a)(this,M),t=E.call(this,m),t.onDestroy=function(g){t.props.onDestroy(g)},t.onKeyDown=function(g){var N=g.keyCode,$=t.menuInstance,ce=t.props.store,he=t.getVisible();if(N===p.a.ENTER)return t.onTitleClick(g),X(ce,t.props.eventKey,!0),!0;if(N===p.a.RIGHT)return he?$.onKeyDown(g):(t.triggerOpenChange(!0),X(ce,t.props.eventKey,!0)),!0;if(N===p.a.LEFT){var Ie;if(he)Ie=$.onKeyDown(g);else return;return Ie||(t.triggerOpenChange(!1),Ie=!0),Ie}return he&&(N===p.a.UP||N===p.a.DOWN)?$.onKeyDown(g):void 0},t.onOpenChange=function(g){t.props.onOpenChange(g)},t.onPopupVisibleChange=function(g){t.triggerOpenChange(g,g?"mouseenter":"mouseleave")},t.onMouseEnter=function(g){var N=t.props,$=N.eventKey,ce=N.onMouseEnter,he=N.store;X(he,t.props.eventKey,!1),ce({key:$,domEvent:g})},t.onMouseLeave=function(g){var N=t.props,$=N.parentMenu,ce=N.eventKey,he=N.onMouseLeave;$.subMenuInstance=Object(r.a)(t),he({key:ce,domEvent:g})},t.onTitleMouseEnter=function(g){var N=t.props,$=N.eventKey,ce=N.onItemHover,he=N.onTitleMouseEnter;ce({key:$,hover:!0}),he({key:$,domEvent:g})},t.onTitleMouseLeave=function(g){var N=t.props,$=N.parentMenu,ce=N.eventKey,he=N.onItemHover,Ie=N.onTitleMouseLeave;$.subMenuInstance=Object(r.a)(t),he({key:ce,hover:!1}),Ie({key:ce,domEvent:g})},t.onTitleClick=function(g){var N=Object(r.a)(t),$=N.props;if($.onTitleClick({key:$.eventKey,domEvent:g}),$.triggerSubMenuAction==="hover")return;t.triggerOpenChange(!t.getVisible(),"click"),X($.store,t.props.eventKey,!1)},t.onSubMenuClick=function(g){typeof t.props.onClick=="function"&&t.props.onClick(t.addKeyPath(g))},t.onSelect=function(g){t.props.onSelect(g)},t.onDeselect=function(g){t.props.onDeselect(g)},t.getPrefixCls=function(){return"".concat(t.props.rootPrefixCls,"-submenu")},t.getActiveClassName=function(){return"".concat(t.getPrefixCls(),"-active")},t.getDisabledClassName=function(){return"".concat(t.getPrefixCls(),"-disabled")},t.getSelectedClassName=function(){return"".concat(t.getPrefixCls(),"-selected")},t.getOpenClassName=function(){return"".concat(t.props.rootPrefixCls,"-submenu-open")},t.getVisible=function(){return t.state.isOpen},t.getMode=function(){return t.state.mode},t.saveMenuInstance=function(g){t.menuInstance=g},t.addKeyPath=function(g){return Object(P.a)(Object(P.a)({},g),{},{keyPath:(g.keyPath||[]).concat(t.props.eventKey)})},t.triggerOpenChange=function(g,N){var $=t.props.eventKey,ce=function(){t.onOpenChange({key:$,item:Object(r.a)(t),trigger:N,open:g})};N==="mouseenter"?t.mouseenterTimeout=setTimeout(function(){ce()},0):ce()},t.isChildrenSelected=function(){var g={find:!1};return fn(t.props.children,t.props.selectedKeys,g),g.find},t.isInlineMode=function(){return t.getMode()==="inline"},t.adjustWidth=function(){if(!t.subMenuTitle||!t.menuInstance)return;var g=Ln.findDOMNode(t.menuInstance);if(g.offsetWidth>=t.subMenuTitle.offsetWidth)return;g.style.minWidth="".concat(t.subMenuTitle.offsetWidth,"px")},t.saveSubMenuTitle=function(g){t.subMenuTitle=g},t.getBaseProps=function(){var g=Object(r.a)(t),N=g.props,$=t.getMode();return{mode:$==="horizontal"?"vertical":$,visible:t.getVisible(),level:N.level+1,inlineIndent:N.inlineIndent,focusable:!1,onClick:t.onSubMenuClick,onSelect:t.onSelect,onDeselect:t.onDeselect,onDestroy:t.onDestroy,selectedKeys:N.selectedKeys,eventKey:"".concat(N.eventKey,"-menu-"),openKeys:N.openKeys,motion:N.motion,onOpenChange:t.onOpenChange,subMenuOpenDelay:N.subMenuOpenDelay,parentMenu:Object(r.a)(t),subMenuCloseDelay:N.subMenuCloseDelay,forceSubMenuRender:N.forceSubMenuRender,triggerSubMenuAction:N.triggerSubMenuAction,builtinPlacements:N.builtinPlacements,defaultActiveFirst:N.store.getState().defaultActiveFirst[Yt(N.eventKey)],multiple:N.multiple,prefixCls:N.rootPrefixCls,id:t.internalMenuId,manualRef:t.saveMenuInstance,itemIcon:N.itemIcon,expandIcon:N.expandIcon,direction:N.direction}},t.getMotion=function(g,N){var $=Object(r.a)(t),ce=$.haveRendered,he=t.props,Ie=he.motion,at=he.rootPrefixCls,xt=Object(P.a)(Object(P.a)({},Ie),{},{leavedClassName:"".concat(at,"-hidden"),removeOnLeave:!1,motionAppear:ce||!N||g!=="inline"});return xt};var l=m.store,n=m.eventKey,f=l.getState(),b=f.defaultActiveFirst;t.isRootMenu=!1;var j=!1;return b&&(j=b[n]),X(l,n,j),t.state={mode:m.mode,isOpen:m.isOpen},t}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this,l=this.props,n=l.mode,f=l.parentMenu,b=l.manualRef,j=l.isOpen,g=function(){t.setState({mode:n,isOpen:j})},N=j!==this.state.isOpen,$=n!==this.state.mode;if(($||N)&&(pn.a.cancel(this.updateStateRaf),$?this.updateStateRaf=Object(pn.a)(g):g()),b&&b(this),n!=="horizontal"||!(f==null?void 0:f.isRootMenu)||!j)return;this.minWidthTimeout=setTimeout(function(){return t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var t=this.props,l=t.onDestroy,n=t.eventKey;l&&l(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),pn.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(t,l){var n=this.getBaseProps();return o.createElement(ft,Object(H.a)({},n,{id:this.internalMenuId,className:t,style:l}),this.props.children)}},{key:"renderChildren",value:function(){var t=this,l=this.getBaseProps(),n=l.mode,f=l.visible,b=l.forceSubMenuRender,j=l.direction,g=this.getMotion(n,f);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||f||b,!this.haveOpened)return o.createElement("div",null);var N=I()("".concat(l.prefixCls,"-sub"),Object(D.a)({},"".concat(l.prefixCls,"-rtl"),j==="rtl"));return this.isInlineMode()?o.createElement(pa,Object(H.a)({visible:l.visible,forceRender:b},g),function($){var ce=$.className,he=$.style,Ie=I()(N,ce);return t.renderPopupMenu(Ie,he)}):this.renderPopupMenu(N)}},{key:"render",value:function(){var t,l,n,f=Object(P.a)({},this.props),b=this.getVisible(),j=this.getPrefixCls(),g=this.isInlineMode(),N=this.getMode(),$=I()(j,"".concat(j,"-").concat(N),(t={},Object(D.a)(t,f.className,!!f.className),Object(D.a)(t,this.getOpenClassName(),b),Object(D.a)(t,this.getActiveClassName(),f.active||b&&!g),Object(D.a)(t,this.getDisabledClassName(),f.disabled),Object(D.a)(t,this.getSelectedClassName(),this.isChildrenSelected()),t));this.internalMenuId||(f.eventKey?this.internalMenuId="".concat(f.eventKey,"$Menu"):(W+=1,this.internalMenuId="$__$".concat(W,"$Menu")));var ce={},he={},Ie={};f.disabled||(ce={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},he={onClick:this.onTitleClick},Ie={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var at={},xt=f.direction,Et=xt==="rtl";g&&(Et?at.paddingRight=f.inlineIndent*f.level:at.paddingLeft=f.inlineIndent*f.level);var Bt={};this.getVisible()&&(Bt={"aria-owns":this.internalMenuId});var zt=null;N!=="horizontal"&&(zt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(zt=o.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var At=o.createElement("div",Object(H.a)({ref:this.saveSubMenuTitle,style:at,className:"".concat(j,"-title"),role:"button"},Ie,he,{"aria-expanded":b},Bt,{"aria-haspopup":"true",title:typeof f.title=="string"?f.title:void 0}),f.title,zt||o.createElement("i",{className:"".concat(j,"-arrow")})),Vt=this.renderChildren(),qt=((l=f.parentMenu)===null||l===void 0?void 0:l.isRootMenu)?f.parentMenu.props.getPopupContainer:function(wn){return wn.parentNode},Ct=T[N],mn=f.popupOffset?{offset:f.popupOffset}:{},wt=I()((n={},Object(D.a)(n,f.popupClassName,f.popupClassName&&!g),Object(D.a)(n,"".concat(j,"-rtl"),Et),n)),Ce=f.disabled,ze=f.triggerSubMenuAction,It=f.subMenuOpenDelay,an=f.forceSubMenuRender,ut=f.subMenuCloseDelay,cn=f.builtinPlacements;En.forEach(function(wn){return delete f[wn]}),delete f.onClick;var Tn=Et?Object(P.a)(Object(P.a)({},x),cn):Object(P.a)(Object(P.a)({},v),cn);delete f.direction;var on=this.getBaseProps(),bn=g?null:this.getMotion(on.mode,on.visible);return o.createElement("li",Object(H.a)({},f,ce,{className:$,role:"menuitem"}),o.createElement(Go,{prefixCls:j,popupClassName:I()("".concat(j,"-popup"),wt),getPopupContainer:qt,builtinPlacements:Tn,popupPlacement:Ct,popupVisible:g?!1:b,popupAlign:mn,popup:g?null:Vt,action:Ce||g?[]:[ze],mouseEnterDelay:It,mouseLeaveDelay:ut,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:an,popupMotion:bn},At),g?Vt:null)}}]),M}(o.Component);de.defaultProps={onMouseEnter:Fe,onMouseLeave:Fe,onTitleMouseEnter:Fe,onTitleMouseLeave:Fe,onTitleClick:Fe,manualRef:Fe,mode:"vertical",title:""};var be=Object(L.b)(function(s,E){var M=s.openKeys,m=s.activeKey,t=s.selectedKeys,l=E.eventKey,n=E.subMenuKey;return{isOpen:M.indexOf(l)>-1,active:m[n]===l,selectedKeys:t}})(de);be.isSubMenu=!0;var ge=be,ke="menuitem-overflowed",Ae=.5,ee=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){var m;return Object(z.a)(this,M),m=E.apply(this,arguments),m.resizeObserver=null,m.mutationObserver=null,m.originalTotalWidth=0,m.overflowedItems=[],m.menuItemSizes=[],m.cancelFrameId=null,m.state={lastVisibleIndex:void 0},m.childRef=o.createRef(),m.getMenuItemNodes=function(){var t=m.props.prefixCls,l=m.childRef.current;return l?[].slice.call(l.children).filter(function(n){return n.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0}):[]},m.getOverflowedSubMenuItem=function(t,l,n){var f=m.props,b=f.overflowedIndicator,j=f.level,g=f.mode,N=f.prefixCls,$=f.theme;if(j!==1||g!=="horizontal")return null;var ce=m.props.children[0],he=ce.props,Ie=he.children,at=he.title,xt=he.style,Et=Object(Ke.a)(he,["children","title","style"]),Bt=Object(P.a)({},xt),zt="".concat(t,"-overflowed-indicator"),At="".concat(t,"-overflowed-indicator");l.length===0&&n!==!0?Bt=Object(P.a)(Object(P.a)({},Bt),{},{display:"none"}):n&&(Bt=Object(P.a)(Object(P.a)({},Bt),{},{visibility:"hidden",position:"absolute"}),zt="".concat(zt,"-placeholder"),At="".concat(At,"-placeholder"));var Vt=$?"".concat(N,"-").concat($):"",qt={};return En.forEach(function(Ct){Et[Ct]!==void 0&&(qt[Ct]=Et[Ct])}),o.createElement(ge,Object(H.a)({title:b,className:"".concat(N,"-overflowed-submenu"),popupClassName:Vt},qt,{key:zt,eventKey:At,disabled:!1,style:Bt}),l)},m.setChildrenWidthAndResize=function(){if(m.props.mode!=="horizontal")return;var t=m.childRef.current;if(!t)return;var l=t.children;if(!l||l.length===0)return;var n=t.children[l.length-1];Pt(n,"display","inline-block");var f=m.getMenuItemNodes(),b=f.filter(function(j){return j.className.split(" ").indexOf(ke)>=0});b.forEach(function(j){Pt(j,"display","inline-block")}),m.menuItemSizes=f.map(function(j){return Jt(j,!0)}),b.forEach(function(j){Pt(j,"display","none")}),m.overflowedIndicatorWidth=Jt(t.children[t.children.length-1],!0),m.originalTotalWidth=m.menuItemSizes.reduce(function(j,g){return j+g},0),m.handleResize(),Pt(n,"display","none")},m.handleResize=function(){if(m.props.mode!=="horizontal")return;var t=m.childRef.current;if(!t)return;var l=Jt(t);m.overflowedItems=[];var n=0,f;m.originalTotalWidth>l+Ae&&(f=-1,m.menuItemSizes.forEach(function(b){n+=b,n+m.overflowedIndicatorWidth<=l&&(f+=1)})),m.setState({lastVisibleIndex:f})},m}return Object(K.a)(M,[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var l=this.childRef.current;if(!l)return;this.resizeObserver=new hn.default(function(n){n.forEach(function(){var f=t.cancelFrameId;cancelAnimationFrame(f),t.cancelFrameId=requestAnimationFrame(t.setChildrenWidthAndResize)})}),[].slice.call(l.children).concat(l).forEach(function(n){t.resizeObserver.observe(n)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){t.resizeObserver.disconnect(),[].slice.call(l.children).concat(l).forEach(function(n){t.resizeObserver.observe(n)}),t.setChildrenWidthAndResize()}),this.mutationObserver.observe(l,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(t){var l=this,n=this.state.lastVisibleIndex;return(t||[]).reduce(function(f,b,j){var g=b;if(l.props.mode==="horizontal"){var N=l.getOverflowedSubMenuItem(b.props.eventKey,[]);n!==void 0&&l.props.className.indexOf("".concat(l.props.prefixCls,"-root"))!==-1&&(j>n&&(g=o.cloneElement(b,{style:{display:"none"},eventKey:"".concat(b.props.eventKey,"-hidden"),className:"".concat(ke)})),j===n+1&&(l.overflowedItems=t.slice(n+1).map(function(ce){return o.cloneElement(ce,{key:ce.props.eventKey,mode:"vertical-left"})}),N=l.getOverflowedSubMenuItem(b.props.eventKey,l.overflowedItems)));var $=[].concat(Object(xe.a)(f),[N,g]);return j===t.length-1&&$.push(l.getOverflowedSubMenuItem(b.props.eventKey,[],!0)),$}return[].concat(Object(xe.a)(f),[g])},[])}},{key:"render",value:function(){var t=this.props,l=t.visible,n=t.prefixCls,f=t.overflowedIndicator,b=t.mode,j=t.level,g=t.tag,N=t.children,$=t.theme,ce=Object(Ke.a)(t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),he=g;return o.createElement(he,Object(H.a)({ref:this.childRef},ce),this.renderChildren(N))}}]),M}(o.Component);ee.defaultProps={tag:"div",className:""};var ye=ee;function me(s){return s.length?s.every(function(E){return!!E.props.disabled}):!0}function we(s,E,M){var m=s.getState();s.setState({activeKey:Object(P.a)(Object(P.a)({},m.activeKey),{},Object(D.a)({},E,M))})}function Ee(s){return s.eventKey||"0-menu-"}function Qe(s,E){var M=E,m=s.children,t=s.eventKey;if(M){var l;if(Lt(m,function(n,f){n&&n.props&&!n.props.disabled&&M===yt(n,t,f)&&(l=!0)}),l)return M}return M=null,s.defaultActiveFirst&&Lt(m,function(n,f){!M&&n&&!n.props.disabled&&(M=yt(n,t,f))}),M}function nt(s){if(!s)return;var E=this.instanceArray.indexOf(s);E!==-1?this.instanceArray[E]=s:this.instanceArray.push(s)}var Dt=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(m){var t;return Object(z.a)(this,M),t=E.call(this,m),t.onKeyDown=function(l,n){var f=l.keyCode,b;if(t.getFlatInstanceArray().forEach(function(g){g&&g.props.active&&g.onKeyDown&&(b=g.onKeyDown(l))}),b)return 1;var j=null;return(f===p.a.UP||f===p.a.DOWN)&&(j=t.step(f===p.a.UP?-1:1)),j?(l.preventDefault(),we(t.props.store,Ee(t.props),j.props.eventKey),typeof n=="function"&&n(j),1):void 0},t.onItemHover=function(l){var n=l.key,f=l.hover;we(t.props.store,Ee(t.props),f?n:null)},t.onDeselect=function(l){t.props.onDeselect(l)},t.onSelect=function(l){t.props.onSelect(l)},t.onClick=function(l){t.props.onClick(l)},t.onOpenChange=function(l){t.props.onOpenChange(l)},t.onDestroy=function(l){t.props.onDestroy(l)},t.getFlatInstanceArray=function(){return t.instanceArray},t.step=function(l){var n=t.getFlatInstanceArray(),f=t.props.store.getState().activeKey[Ee(t.props)],b=n.length;if(!b)return null;l<0&&(n=n.concat().reverse());var j=-1;if(n.every(function(ce,he){return ce&&ce.props.eventKey===f?(j=he,!1):!0}),!t.props.defaultActiveFirst&&j!==-1&&me(n.slice(j,b-1)))return;var g=(j+1)%b,N=g;do{var $=n[N];if(!$||$.props.disabled)N=(N+1)%b;else return $}while(N!==g);return null},t.renderCommonMenuItem=function(l,n,f){var b=t.props.store.getState(),j=Object(r.a)(t),g=j.props,N=yt(l,g.eventKey,n),$=l.props;if(!$||typeof l.type=="string")return l;var ce=N===b.activeKey,he=Object(P.a)(Object(P.a)({mode:$.mode||g.mode,level:g.level,inlineIndent:g.inlineIndent,renderMenuItem:t.renderMenuItem,rootPrefixCls:g.prefixCls,index:n,parentMenu:g.parentMenu,manualRef:$.disabled?void 0:Object(q.a)(l.ref,nt.bind(Object(r.a)(t))),eventKey:N,active:!$.disabled&&ce,multiple:g.multiple,onClick:function(at){($.onClick||Fe)(at),t.onClick(at)},onItemHover:t.onItemHover,motion:g.motion,subMenuOpenDelay:g.subMenuOpenDelay,subMenuCloseDelay:g.subMenuCloseDelay,forceSubMenuRender:g.forceSubMenuRender,onOpenChange:t.onOpenChange,onDeselect:t.onDeselect,onSelect:t.onSelect,builtinPlacements:g.builtinPlacements,itemIcon:$.itemIcon||t.props.itemIcon,expandIcon:$.expandIcon||t.props.expandIcon},f),{},{direction:g.direction});return(g.mode==="inline"||Kt())&&(he.triggerSubMenuAction="click"),o.cloneElement(l,Object(P.a)(Object(P.a)({},he),{},{key:N||n}))},t.renderMenuItem=function(l,n,f){if(!l)return null;var b=t.props.store.getState(),j={openKeys:b.openKeys,selectedKeys:b.selectedKeys,triggerSubMenuAction:t.props.triggerSubMenuAction,subMenuKey:f};return t.renderCommonMenuItem(l,n,j)},m.store.setState({activeKey:Object(P.a)(Object(P.a)({},m.store.getState().activeKey),{},Object(D.a)({},m.eventKey,Qe(m,m.activeKey)))}),t.instanceArray=[],t}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(t){return this.props.visible||t.visible||this.props.className!==t.className||!J()(this.props.style,t.style)}},{key:"componentDidUpdate",value:function(t){var l=this.props,n="activeKey"in l?l.activeKey:l.store.getState().activeKey[Ee(l)],f=Qe(l,n);if(f!==n)we(l.store,Ee(l),f);else if("activeKey"in t){var b=Qe(t,t.activeKey);f!==b&&we(l.store,Ee(l),f)}}},{key:"render",value:function(){var t=this,l=Object(H.a)({},this.props);this.instanceArray=[];var n=I()(l.prefixCls,l.className,"".concat(l.prefixCls,"-").concat(l.mode)),f={className:n,role:l.role||"menu"};l.id&&(f.id=l.id),l.focusable&&(f.tabIndex=0,f.onKeyDown=this.onKeyDown);var b=l.prefixCls,j=l.eventKey,g=l.visible,N=l.level,$=l.mode,ce=l.overflowedIndicator,he=l.theme;return En.forEach(function(Ie){return delete l[Ie]}),delete l.onClick,o.createElement(ye,Object(H.a)({},l,{prefixCls:b,mode:$,tag:"ul",level:N,theme:he,visible:g,overflowedIndicator:ce},f),Object(u.a)(l.children).map(function(Ie,at){return t.renderMenuItem(Ie,at,j||"0-menu-")}))}}]),M}(o.Component);Dt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Fe};var Zt=Object(L.b)()(Dt),ft=Zt,vt=a("Kwbf");function Ut(s,E,M){var m=s.prefixCls,t=s.motion,l=s.defaultMotions,n=l===void 0?{}:l,f=s.openAnimation,b=s.openTransitionName,j=E.switchingModeFromInline;if(t)return t;if(Object(B.a)(f)==="object"&&f)Object(vt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof f=="string")return{motionName:"".concat(m,"-open-").concat(f)};if(b)return{motionName:b};var g=n[M];return g||(j?null:n.other)}var Ft=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(m){var t;Object(z.a)(this,M),t=E.call(this,m),t.onSelect=function(f){var b=Object(r.a)(t),j=b.props;if(j.selectable){var g=t.store.getState(),N=g.selectedKeys,$=f.key;j.multiple?N=N.concat([$]):N=[$],"selectedKeys"in j||t.store.setState({selectedKeys:N}),j.onSelect(Object(P.a)(Object(P.a)({},f),{},{selectedKeys:N}))}},t.onClick=function(f){var b=t.getRealMenuMode(),j=Object(r.a)(t),g=j.store,N=j.props.onOpenChange;b!=="inline"&&!("openKeys"in t.props)&&(g.setState({openKeys:[]}),N([])),t.props.onClick(f)},t.onKeyDown=function(f,b){t.innerMenu.getWrappedInstance().onKeyDown(f,b)},t.onOpenChange=function(f){var b=Object(r.a)(t),j=b.props,g=t.store.getState().openKeys.concat(),N=!1,$=function(he){var Ie=!1;if(he.open)Ie=g.indexOf(he.key)===-1,Ie&&g.push(he.key);else{var at=g.indexOf(he.key);Ie=at!==-1,Ie&&g.splice(at,1)}N=N||Ie};Array.isArray(f)?f.forEach($):$(f),N&&("openKeys"in t.props||t.store.setState({openKeys:g}),j.onOpenChange(g))},t.onDeselect=function(f){var b=Object(r.a)(t),j=b.props;if(j.selectable){var g=t.store.getState().selectedKeys.concat(),N=f.key,$=g.indexOf(N);$!==-1&&g.splice($,1),"selectedKeys"in j||t.store.setState({selectedKeys:g}),j.onDeselect(Object(P.a)(Object(P.a)({},f),{},{selectedKeys:g}))}},t.onMouseEnter=function(f){t.restoreModeVerticalFromInline();var b=t.props.onMouseEnter;b&&b(f)},t.onTransitionEnd=function(f){var b=f.propertyName==="width"&&f.target===f.currentTarget,j=f.target.className,g=Object.prototype.toString.call(j)==="[object SVGAnimatedString]"?j.animVal:j,N=f.propertyName==="font-size"&&g.indexOf("anticon")>=0;(b||N)&&t.restoreModeVerticalFromInline()},t.setInnerMenu=function(f){t.innerMenu=f},t.isRootMenu=!0;var l=m.defaultSelectedKeys,n=m.defaultOpenKeys;return"selectedKeys"in m&&(l=m.selectedKeys||[]),"openKeys"in m&&(n=m.openKeys||[]),t.store=Object(L.c)({selectedKeys:l,openKeys:n,activeKey:{"0-menu-":Qe(m,m.activeKey)}}),t.state={switchingModeFromInline:!1,prevProps:m,inlineOpenKeys:[],store:t.store},t}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(t){var l=this.props,n=l.siderCollapsed,f=l.inlineCollapsed,b=l.onOpenChange;(!t.inlineCollapsed&&f||!t.siderCollapsed&&n)&&b([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var t=this.props.collapsedWidth,l=this.store,n=this.prevOpenKeys,f=this.getInlineCollapsed()&&(t===0||t==="0"||t==="0px");f?(this.prevOpenKeys=l.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var t=this.props.mode,l=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return l&&n?"inline":n?"vertical":t}},{key:"getInlineCollapsed",value:function(){var t=this.props,l=t.inlineCollapsed,n=t.siderCollapsed;return n!==void 0?n:l}},{key:"restoreModeVerticalFromInline",value:function(){var t=this.state.switchingModeFromInline;t&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var t=Object(P.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),l=this.getRealMenuMode();return t.className+=" ".concat(t.prefixCls,"-root"),t.direction==="rtl"&&(t.className+=" ".concat(t.prefixCls,"-rtl")),t=Object(P.a)(Object(P.a)({},t),{},{mode:l,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ut(this.props,this.state,l)}),delete t.openAnimation,delete t.openTransitionName,o.createElement(L.a,{store:this.store},o.createElement(ft,Object(H.a)({},t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(t,l){var n=l.prevProps,f=l.store,b=f.getState(),j={},g={prevProps:t};return n.mode==="inline"&&t.mode!=="inline"&&(g.switchingModeFromInline=!0),"openKeys"in t?j.openKeys=t.openKeys||[]:((t.inlineCollapsed&&!n.inlineCollapsed||t.siderCollapsed&&!n.siderCollapsed)&&(g.switchingModeFromInline=!0,g.inlineOpenKeys=b.openKeys,j.openKeys=[]),(!t.inlineCollapsed&&n.inlineCollapsed||!t.siderCollapsed&&n.siderCollapsed)&&(j.openKeys=l.inlineOpenKeys,g.inlineOpenKeys=[])),Object.keys(j).length&&f.setState(j),g}}]),M}(o.Component);Ft.defaultProps={selectable:!0,onClick:Fe,onSelect:Fe,onOpenChange:Fe,onDeselect:Fe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Vn=Ft,Pn=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){var m;return Object(z.a)(this,M),m=E.apply(this,arguments),m.onKeyDown=function(t){var l=t.keyCode;return l===p.a.ENTER?(m.onClick(t),!0):void 0},m.onMouseLeave=function(t){var l=m.props,n=l.eventKey,f=l.onItemHover,b=l.onMouseLeave;f({key:n,hover:!1}),b({key:n,domEvent:t})},m.onMouseEnter=function(t){var l=m.props,n=l.eventKey,f=l.onItemHover,b=l.onMouseEnter;f({key:n,hover:!0}),b({key:n,domEvent:t})},m.onClick=function(t){var l=m.props,n=l.eventKey,f=l.multiple,b=l.onClick,j=l.onSelect,g=l.onDeselect,N=l.isSelected,$={key:n,keyPath:[n],item:Object(r.a)(m),domEvent:t};b($),f?N?g($):j($):N||j($)},m.saveNode=function(t){m.node=t},m}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var t=this.props;t.onDestroy&&t.onDestroy(t.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var t,l=Object(P.a)({},this.props),n=I()(this.getPrefixCls(),l.className,(t={},Object(D.a)(t,this.getActiveClassName(),!l.disabled&&l.active),Object(D.a)(t,this.getSelectedClassName(),l.isSelected),Object(D.a)(t,this.getDisabledClassName(),l.disabled),t)),f=Object(P.a)(Object(P.a)({},l.attribute),{},{title:typeof l.title=="string"?l.title:void 0,className:n,role:l.role||"menuitem","aria-disabled":l.disabled});l.role==="option"?f=Object(P.a)(Object(P.a)({},f),{},{role:"option","aria-selected":l.isSelected}):(l.role===null||l.role==="none")&&(f.role="none");var b={onClick:l.disabled?null:this.onClick,onMouseLeave:l.disabled?null:this.onMouseLeave,onMouseEnter:l.disabled?null:this.onMouseEnter},j=Object(P.a)({},l.style);l.mode==="inline"&&(l.direction==="rtl"?j.paddingRight=l.inlineIndent*l.level:j.paddingLeft=l.inlineIndent*l.level),En.forEach(function(N){return delete l[N]}),delete l.direction;var g=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(g=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(H.a)({},Object(V.a)(l,["onClick","onMouseEnter","onMouseLeave","onSelect"]),f,b,{style:j,ref:this.saveNode}),l.children,g)}}]),M}(o.Component);Pn.isMenuItem=!0,Pn.defaultProps={onSelect:Fe,onMouseEnter:Fe,onMouseLeave:Fe,manualRef:Fe};var ta=Object(L.b)(function(s,E){var M=s.activeKey,m=s.selectedKeys,t=E.eventKey,l=E.subMenuKey;return{active:M[l]===t,isSelected:Array.isArray(m)?m.indexOf(t)!==-1:m===t}})(Pn),_n=ta,$n=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){var m;return Object(z.a)(this,M),m=E.apply(this,arguments),m.renderInnerMenuItem=function(t){var l=m.props,n=l.renderMenuItem,f=l.index;return n(t,f,m.props.subMenuKey)},m}return Object(K.a)(M,[{key:"render",value:function(){var t=Object(H.a)({},this.props),l=t.className,n=l===void 0?"":l,f=t.rootPrefixCls,b="".concat(f,"-item-group-title"),j="".concat(f,"-item-group-list"),g=t.title,N=t.children;return En.forEach(function($){return delete t[$]}),delete t.direction,o.createElement("li",Object(H.a)({},t,{onClick:function(ce){return ce.stopPropagation()},className:"".concat(n," ").concat(f,"-item-group")}),o.createElement("div",{className:b,title:typeof g=="string"?g:void 0},g),o.createElement("ul",{className:j},o.Children.map(N,this.renderInnerMenuItem)))}}]),M}(o.Component);$n.isMenuItemGroup=!0,$n.defaultProps={disabled:!0};var qn=$n,da=function(E){var M=E.className,m=E.rootPrefixCls,t=E.style;return o.createElement("li",{className:"".concat(M," ").concat(m,"-item-divider"),style:t})};da.defaultProps={disabled:!0,className:"",style:{}};var Oa=da,va=Vn,fa=a("eDIo");function xa(s,E){var M=s.prefixCls,m=s.editable,t=s.locale,l=s.style;return!m||m.showAdd===!1?null:o.createElement("button",{ref:E,type:"button",className:"".concat(M,"-nav-add"),style:l,"aria-label":(t==null?void 0:t.addAriaLabel)||"Add tab",onClick:function(f){m.onEdit("add",{event:f})}},m.addIcon||"+")}var ia=o.forwardRef(xa);function Pa(s,E){var M=s.prefixCls,m=s.id,t=s.tabs,l=s.locale,n=s.mobile,f=s.moreIcon,b=f===void 0?"More":f,j=s.moreTransitionName,g=s.style,N=s.className,$=s.editable,ce=s.tabBarGutter,he=s.rtl,Ie=s.onTabClick,at=Object(o.useState)(!1),xt=Object(R.a)(at,2),Et=xt[0],Bt=xt[1],zt=Object(o.useState)(null),At=Object(R.a)(zt,2),Vt=At[0],qt=At[1],Ct="".concat(m,"-more-popup"),mn="".concat(M,"-dropdown"),wt=Vt!==null?"".concat(Ct,"-").concat(Vt):null,Ce=l==null?void 0:l.dropdownAriaLabel,ze=o.createElement(va,{onClick:function(bn){var wn=bn.key,yn=bn.domEvent;Ie(wn,yn),Bt(!1)},id:Ct,tabIndex:-1,role:"listbox","aria-activedescendant":wt,selectedKeys:[Vt],"aria-label":Ce!==void 0?Ce:"expanded dropdown"},t.map(function(on){return o.createElement(_n,{key:on.key,id:"".concat(Ct,"-").concat(on.key),role:"option","aria-controls":m&&"".concat(m,"-panel-").concat(on.key),disabled:on.disabled},on.tab)}));function It(on){for(var bn=t.filter(function(Jn){return!Jn.disabled}),wn=bn.findIndex(function(Jn){return Jn.key===Vt})||0,yn=bn.length,gn=0;gncn?(an=ze,Ct.current="x"):(an=It,Ct.current="y");var Tn=Date.now();Tn-Vt.current>100&&(qt.current=!1),(E(-an,-an)||qt.current)&&(Ce.preventDefault(),qt.current=!0),Vt.current=Tn}var wt=Object(o.useRef)(null);wt.current={onTouchStart:Bt,onTouchMove:zt,onTouchEnd:At,onWheel:mn},o.useEffect(function(){function Ce(ut){wt.current.onTouchStart(ut)}function ze(ut){wt.current.onTouchMove(ut)}function It(ut){wt.current.onTouchEnd(ut)}function an(ut){wt.current.onWheel(ut)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",It,{passive:!1}),s.current.addEventListener("touchstart",Ce,{passive:!1}),s.current.addEventListener("wheel",an),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",It)}},[])}function na(){var s=Object(o.useRef)(new Map);function E(m){return s.current.has(m)||s.current.set(m,o.createRef()),s.current.get(m)}function M(m){s.current.delete(m)}return[E,M]}function la(s,E){var M=o.useRef(s),m=o.useState({}),t=Object(R.a)(m,2),l=t[1];function n(f){var b=typeof f=="function"?f(M.current):f;b!==M.current&&E(b,M.current),M.current=b,l({})}return[M.current,n]}var aa=function(E){var M=E.position,m=E.prefixCls,t=E.extra;if(!t)return null;var l,n=t;return M==="right"&&(l=n.right||!n.left&&n||null),M==="left"&&(l=n.left||null),l?o.createElement("div",{className:"".concat(m,"-extra-content")},l):null};function Ka(s,E){var M,m=o.useContext(Ma),t=m.prefixCls,l=m.tabs,n=s.className,f=s.style,b=s.id,j=s.animated,g=s.activeKey,N=s.rtl,$=s.extra,ce=s.editable,he=s.locale,Ie=s.tabPosition,at=s.tabBarGutter,xt=s.children,Et=s.onTabClick,Bt=s.onTabScroll,zt=Object(o.useRef)(),At=Object(o.useRef)(),Vt=Object(o.useRef)(),qt=Object(o.useRef)(),Ct=na(),mn=Object(R.a)(Ct,2),wt=mn[0],Ce=mn[1],ze=Ie==="top"||Ie==="bottom",It=la(0,function(xn,rn){ze&&Bt&&Bt({direction:xn>rn?"left":"right"})}),an=Object(R.a)(It,2),ut=an[0],cn=an[1],Tn=la(0,function(xn,rn){!ze&&Bt&&Bt({direction:xn>rn?"top":"bottom"})}),on=Object(R.a)(Tn,2),bn=on[0],wn=on[1],yn=Object(o.useState)(0),gn=Object(R.a)(yn,2),Tt=gn[0],Jn=gn[1],wa=Object(o.useState)(0),Ea=Object(R.a)(wa,2),Sa=Ea[0],Zn=Ea[1],ua=Object(o.useState)(0),Yn=Object(R.a)(ua,2),ea=Yn[0],Ta=Yn[1],Va=Object(o.useState)(0),Wa=Object(R.a)(Va,2),An=Wa[0],_a=Wa[1],Aa=Object(o.useState)(null),kn=Object(R.a)(Aa,2),On=kn[0],ra=kn[1],yo=Object(o.useState)(null),Qo=Object(R.a)(yo,2),Ya=Qo[0],fr=Qo[1],wo=Object(o.useState)(0),uo=Object(R.a)(wo,2),Jo=uo[0],Zo=uo[1],mr=Object(o.useState)(0),Oo=Object(R.a)(mr,2),xo=Oo[0],qo=Oo[1],er=y(new Map),tr=Object(R.a)(er,2),nr=tr[0],pr=tr[1],co=ie(l,nr,Tt),ar="".concat(t,"-nav-operations-hidden"),oo=0,La=0;ze?N?(oo=0,La=Math.max(0,Tt-On)):(oo=Math.min(0,On-Tt),La=0):(oo=Math.min(0,Ya-Sa),La=0);function Mo(xn){return xnLa?[La,!1]:[xn,!0]}var or=Object(o.useRef)(),_o=Object(o.useState)(),Ao=Object(R.a)(_o,2),Lo=Ao[0],ko=Ao[1];function Uo(){ko(Date.now())}function fo(){window.clearTimeout(or.current)}Qn(zt,function(xn,rn){var Bn=!1;function Ca(po,vo){po(function(ho){var ro=Mo(ho+vo),Ga=Object(R.a)(ro,2),jo=Ga[0],bo=Ga[1];return Bn=bo,jo})}if(ze){if(On>=Tt)return Bn;Ca(cn,xn)}else{if(Ya>=Sa)return Bn;Ca(wn,rn)}return fo(),Uo(),Bn}),Object(o.useEffect)(function(){return fo(),Lo&&(or.current=window.setTimeout(function(){ko(0)},100)),fo},[Lo]);function Io(){var xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g,rn=co.get(xn);if(!rn)return;if(ze){var Bn=ut;N?rn.rightut+On&&(Bn=rn.right+rn.width-On):rn.left<-ut?Bn=-rn.left:rn.left+rn.width>-ut+On&&(Bn=-(rn.left+rn.width-On)),wn(0),cn(Mo(Bn)[0])}else{var Ca=bn;rn.top<-bn?Ca=-rn.top:rn.top+rn.height>-bn+Ya&&(Ca=-(rn.top+rn.height-Ya)),cn(0),wn(Mo(Ca)[0])}}var vr=Ne(co,{width:On,height:Ya,left:ut,top:bn},{width:ea,height:An},{width:Jo,height:xo},Object(P.a)(Object(P.a)({},s),{},{tabs:l})),Ko=Object(R.a)(vr,2),hr=Ko[0],br=Ko[1],rr=l.map(function(xn){var rn=xn.key;return o.createElement(_,{id:b,prefixCls:t,key:rn,rtl:N,tab:xn,closable:xn.closable,editable:ce,active:rn===g,tabPosition:Ie,tabBarGutter:at,renderWrapper:xt,removeAriaLabel:he==null?void 0:he.removeAriaLabel,ref:wt(rn),onClick:function(Ca){Et(rn,Ca)},onRemove:function(){Ce(rn)},onFocus:function(){Io(rn),Uo(),N||(zt.current.scrollLeft=0),zt.current.scrollTop=0}})}),Fo=k(function(){var xn,rn,Bn,Ca,po,vo,ho,ro,Ga,jo=((xn=zt.current)===null||xn===void 0?void 0:xn.offsetWidth)||0,bo=((rn=zt.current)===null||rn===void 0?void 0:rn.offsetHeight)||0,Do=((Bn=qt.current)===null||Bn===void 0?void 0:Bn.offsetWidth)||0,dr=((Ca=qt.current)===null||Ca===void 0?void 0:Ca.offsetHeight)||0,Cr=((po=Vt.current)===null||po===void 0?void 0:po.offsetWidth)||0,en=((vo=Vt.current)===null||vo===void 0?void 0:vo.offsetHeight)||0;ra(jo),fr(bo),Zo(Do),qo(dr);var ot=(((ho=At.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-Do,St=(((ro=At.current)===null||ro===void 0?void 0:ro.offsetHeight)||0)-dr;Jn(ot),Zn(St);var nn=(Ga=Vt.current)===null||Ga===void 0?void 0:Ga.className.includes(ar);Ta(ot-(nn?0:Cr)),_a(St-(nn?0:en)),pr(function(){var zn=new Map;return l.forEach(function(Qa){var ka=Qa.key,ca=wt(ka).current;ca&&zn.set(ka,{width:ca.offsetWidth,height:ca.offsetHeight,left:ca.offsetLeft,top:ca.offsetTop})}),zn})}),ir=l.slice(0,hr),gr=l.slice(br+1),Vo=[].concat(Object(xe.a)(ir),Object(xe.a)(gr)),lr=Object(o.useState)(),Wo=Object(R.a)(lr,2),Er=Wo[0],sr=Wo[1],Ba=co.get(g),Bo=Object(o.useRef)();function zo(){Q.a.cancel(Bo.current)}Object(o.useEffect)(function(){var xn={};return Ba&&(ze?(N?xn.right=Ba.right:xn.left=Ba.left,xn.width=Ba.width):(xn.top=Ba.top,xn.height=Ba.height)),zo(),Bo.current=Q()(function(){sr(xn)}),zo},[Ba,ze,N]),Object(o.useEffect)(function(){Io()},[g,Ba,co,ze]),Object(o.useEffect)(function(){Fo()},[N,at,g,l.map(function(xn){return xn.key}).join("_")]);var Ho=!!Vo.length,mo="".concat(t,"-nav-wrap"),Xo,$o,ur,cr;return ze?N?($o=ut>0,Xo=ut+On2&&arguments[2]!==void 0?arguments[2]:"0",O=String(e);O.length=12,Vn%=12);var da=u.useMemo(function(){if(!ge)return[!1,!1];var dt=[!0,!0];return qn.forEach(function(gt){var Gt=gt.disabled,jn=gt.value;if(Gt)return;jn>=12?dt[1]=!1:dt[0]=!1}),dt},[ge,qn]),Oa=Object(I.a)(da,2),va=Oa[0],fa=Oa[1],xa=u.useMemo(function(){return ge?qn.filter(Ft?function(dt){return dt.value>=12}:function(dt){return dt.value<12}).map(function(dt){var gt=dt.value%12,Gt=gt===0?"12":lt(gt,2);return Object(C.a)(Object(C.a)({},dt),{},{label:Gt,value:gt})}):qn},[ge,qn]),ia=ve(0,59,ye,Qe&&Qe(Vn)),Pa=ve(0,59,we,nt&&nt(Vn,Pn));O.current={onUpDown:function(gt){var Gt=ft[W];if(Gt)for(var jn=Gt.units.findIndex(function(la){return la.value===Gt.value}),Wn=Gt.units.length,Qn=1;Qn1&&(X=v.addDate(X,-7)),X}function U(e,v,x){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(v){case"year":return x.addYear(e,O*10);case"quarter":case"month":return x.addYear(e,O);default:return x.addMonth(e,O)}}var Re=u.createContext({}),_e=Re;function He(e){var v=e.cellPrefixCls,x=e.generateConfig,O=e.rangedValue,W=e.hoverRangedValue,T=e.isInView,X=e.isSameCell,de=e.offsetCell,be=e.today,ge=e.value;function ke(Ae){var ee,ye=de(Ae,-1),me=de(Ae,1),we=oe(O,0),Ee=oe(O,1),Qe=oe(W,0),nt=oe(W,1),Dt=Dn(x,Qe,nt,Ae);function Zt(Pn){return X(we,Pn)}function ft(Pn){return X(Ee,Pn)}var vt=X(Qe,Ae),Ut=X(nt,Ae),Ft=(Dt||Ut)&&(!T(ye)||ft(ye)),Vn=(Dt||vt)&&(!T(me)||Zt(me));return ee={},Object(o.a)(ee,"".concat(v,"-in-view"),T(Ae)),Object(o.a)(ee,"".concat(v,"-in-range"),Dn(x,we,Ee,Ae)),Object(o.a)(ee,"".concat(v,"-range-start"),Zt(Ae)),Object(o.a)(ee,"".concat(v,"-range-end"),ft(Ae)),Object(o.a)(ee,"".concat(v,"-range-start-single"),Zt(Ae)&&!Ee),Object(o.a)(ee,"".concat(v,"-range-end-single"),ft(Ae)&&!we),Object(o.a)(ee,"".concat(v,"-range-start-near-hover"),Zt(Ae)&&(X(ye,Qe)||Dn(x,Qe,nt,ye))),Object(o.a)(ee,"".concat(v,"-range-end-near-hover"),ft(Ae)&&(X(me,nt)||Dn(x,Qe,nt,me))),Object(o.a)(ee,"".concat(v,"-range-hover"),Dt),Object(o.a)(ee,"".concat(v,"-range-hover-start"),vt),Object(o.a)(ee,"".concat(v,"-range-hover-end"),Ut),Object(o.a)(ee,"".concat(v,"-range-hover-edge-start"),Ft),Object(o.a)(ee,"".concat(v,"-range-hover-edge-end"),Vn),Object(o.a)(ee,"".concat(v,"-range-hover-edge-start-near-range"),Ft&&X(ye,Ee)),Object(o.a)(ee,"".concat(v,"-range-hover-edge-end-near-range"),Vn&&X(me,we)),Object(o.a)(ee,"".concat(v,"-today"),X(be,Ae)),Object(o.a)(ee,"".concat(v,"-selected"),X(ge,Ae)),ee}return ke}function it(e){for(var v=e.prefixCls,x=e.disabledDate,O=e.onSelect,W=e.rowNum,T=e.colNum,X=e.prefixColumn,de=e.rowClassName,be=e.baseDate,ge=e.getCellClassName,ke=e.getCellText,Ae=e.getCellNode,ee=e.getCellDate,ye=e.titleCell,me=e.headerCells,we=u.useContext(p),Ee=we.onDateMouseEnter,Qe=we.onDateMouseLeave,nt="".concat(v,"-cell"),Dt=[],Zt=0;Zt2&&arguments[2]!==void 0?arguments[2]:!1;(f===we||It)&&($a(Ce),Ut&&Ut(Ce),Wn&&Wn(Ce,ze),Ft&&!pn(de,Ce,ma)&&Ft(Ce))},Ie=function(Ce){return oa.current&&oa.current.onKeyDown?([k.a.LEFT,k.a.RIGHT,k.a.UP,k.a.DOWN,k.a.PAGE_UP,k.a.PAGE_DOWN,k.a.ENTER].includes(Ce.which)&&Ce.preventDefault(),oa.current.onKeyDown(Ce)):(Object(Y.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},at=function(Ce){oa.current&&oa.current.onBlur&&oa.current.onBlur(Ce)};Gt&&Ka!=="right"&&(Gt.current={onKeyDown:Ie,onClose:function(){oa.current&&oa.current.onClose&&oa.current.onClose()}}),u.useEffect(function(){be&&!ja.current&&M(be)},[be]),u.useEffect(function(){ja.current=!1},[]);var xt,Et=Object(C.a)(Object(C.a)({},e),{},{operationRef:oa,prefixCls:O,viewDate:E,value:ma,onViewDateChange:m,sourceMode:N,onPanelChange:ce,disabledDate:f!=="decade"?ee:void 0});delete Et.onChange,delete Et.onSelect;switch(f){case"decade":xt=u.createElement(Kn,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"year":xt=u.createElement(Xt,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"month":xt=u.createElement(ne,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"quarter":xt=u.createElement(st,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"week":xt=u.createElement(kt,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"time":delete Et.showTime,xt=u.createElement(yt,Object.assign({},Et,Object(G.a)(Dt)==="object"?Dt:null,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;default:Dt?xt=u.createElement(Wt,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}})):xt=u.createElement(Pe,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}))}var Bt,zt,At=function(){var Ce=de.getNow(),ze=Be(de.getHour(Ce),de.getMinute(Ce),de.getSecond(Ce),ha?Oa:1,Ma?fa:1,dt?ia:1),It=Ze(de,Ce,ze[0],ze[1],ze[2]);he(It,"submit")};Qn||(Bt=Xn(O,f,ft),zt=Gn({prefixCls:O,components:$n,needConfirmButton:Pa,okDisabled:!ma||ee&&ee(ma),locale:X,showNow:nt,onNow:Pa&&At,onOk:function(){ma&&(he(ma,"submit",!0),_n&&_n(ma))}}));var Vt;if(Zt&&f==="date"&&we==="date"&&!Dt){var qt=de.getNow(),Ct="".concat(O,"-today-btn"),mn=ee&&ee(qt);Vt=u.createElement("a",{className:xe()(Ct,mn&&"".concat(Ct,"-disabled")),"aria-disabled":mn,onClick:function(){mn||he(qt,"mouse",!0)}},X.today)}return u.createElement(p.Provider,{value:Object(C.a)(Object(C.a)({},gt),{},{hideHeader:"hideHeader"in e?vt:gt.hideHeader,hidePrevBtn:aa&&Ka==="right",hideNextBtn:aa&&Ka==="left"})},u.createElement("div",{tabIndex:Qe,className:xe()("".concat(O,"-panel"),W,(v={},Object(o.a)(v,"".concat(O,"-panel-has-range"),ba&&ba[0]&&ba[1]),Object(o.a)(v,"".concat(O,"-panel-has-range-hover"),Fa&&Fa[0]&&Fa[1]),Object(o.a)(v,"".concat(O,"-panel-rtl"),qn==="rtl"),v)),style:T,onKeyDown:Ie,onBlur:at,onMouseDown:Pn,ref:jn},xt,Bt||zt||Vt?u.createElement("div",{className:"".concat(O,"-footer")},Bt,zt,Vt):null))}var ya=pa,Za=a("uciX"),Ha={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function qa(e){var v,x=e.prefixCls,O=e.popupElement,W=e.popupStyle,T=e.visible,X=e.dropdownClassName,de=e.dropdownAlign,be=e.transitionName,ge=e.getPopupContainer,ke=e.children,Ae=e.range,ee=e.popupPlacement,ye=e.direction,me="".concat(x,"-dropdown"),we=function(){return ee!==void 0?ee:ye==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(Za.a,{showAction:[],hideAction:[],popupPlacement:we(),builtinPlacements:Ha,prefixCls:me,popupTransitionName:be,popup:O,popupAlign:de,popupVisible:T,popupClassName:xe()(X,(v={},Object(o.a)(v,"".concat(me,"-range"),Ae),Object(o.a)(v,"".concat(me,"-rtl"),ye==="rtl"),v)),popupStyle:W,getPopupContainer:ge},ke)}var io=qa;function eo(e){var v=e.open,x=e.value,O=e.isClickOutside,W=e.triggerOpen,T=e.forwardKeyDown,X=e.blurToCancel,de=e.onSubmit,be=e.onCancel,ge=e.onFocus,ke=e.onBlur,Ae=Object(u.useState)(!1),ee=Object(I.a)(Ae,2),ye=ee[0],me=ee[1],we=Object(u.useState)(!1),Ee=Object(I.a)(we,2),Qe=Ee[0],nt=Ee[1],Dt=Object(u.useRef)(!1),Zt=Object(u.useRef)(!1),ft={onMouseDown:function(){me(!0),W(!0)},onKeyDown:function(Ut){switch(Ut.which){case k.a.ENTER:{v?de()!==!1&&me(!0):W(!0),Ut.preventDefault();return}case k.a.TAB:{ye&&v&&!Ut.shiftKey?(me(!1),Ut.preventDefault()):!ye&&v&&(!T(Ut)&&Ut.shiftKey&&(me(!0),Ut.preventDefault()));return}case k.a.ESC:{me(!0),be();return}}!v&&![k.a.SHIFT].includes(Ut.which)?W(!0):ye||T(Ut)},onFocus:function(Ut){me(!0),nt(!0),ge&&ge(Ut)},onBlur:function(Ut){if(Dt.current||!O(document.activeElement)){Dt.current=!1;return}X?setTimeout(function(){O(document.activeElement)&&be()},0):v&&(W(!1),Zt.current&&de()),nt(!1),ke&&ke(Ut)}};return Object(u.useEffect)(function(){Zt.current=!1},[v]),Object(u.useEffect)(function(){Zt.current=!0},[x]),Object(u.useEffect)(function(){return q(function(vt){var Ut=vt.target;v&&(O(Ut)?Qe||W(!1):(Dt.current=!0,requestAnimationFrame(function(){Dt.current=!1})))})}),[ft,{focused:Qe,typing:ye}]}function Ia(e){var v=e.valueTexts,x=e.onTextChange,O=u.useState(""),W=Object(I.a)(O,2),T=W[0],X=W[1],de=u.useRef([]);de.current=v;function be(ke){X(ke),x(ke)}function ge(){X(de.current[0])}return u.useEffect(function(){v.every(function(ke){return ke!==T})&&ge()},[v.join("||")]),[T,be,ge]}var Fn=a("Gytx"),to=a.n(Fn);function Ua(e,v){var x=v.formatList,O=v.generateConfig,W=v.locale;return Object(Ne.a)(function(){if(!e)return[[""],""];for(var T="",X=[],de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(ge.current),Qe){be(Ee);return}ge.current=requestAnimationFrame(function(){be(Ee)})}var Ae=Ua(de,{formatList:x,generateConfig:O,locale:W}),ee=Object(I.a)(Ae,2),ye=ee[1];function me(Ee){ke(Ee)}function we(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ke(null,Ee)}return Object(u.useEffect)(function(){we(!0)},[e]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(ge.current)}},[]),[ye,me,we]}function Na(e){var v,x=e.prefixCls,O=x===void 0?"rc-picker":x,W=e.id,T=e.tabIndex,X=e.style,de=e.className,be=e.dropdownClassName,ge=e.dropdownAlign,ke=e.popupStyle,Ae=e.transitionName,ee=e.generateConfig,ye=e.locale,me=e.inputReadOnly,we=e.allowClear,Ee=e.autoFocus,Qe=e.showTime,nt=e.picker,Dt=nt===void 0?"date":nt,Zt=e.format,ft=e.use12Hours,vt=e.value,Ut=e.defaultValue,Ft=e.open,Vn=e.defaultOpen,Pn=e.defaultOpenValue,ta=e.suffixIcon,_n=e.clearIcon,$n=e.disabled,qn=e.disabledDate,da=e.placeholder,Oa=e.getPopupContainer,va=e.pickerRef,fa=e.panelRender,xa=e.onChange,ia=e.onOpenChange,Pa=e.onFocus,ha=e.onBlur,Ma=e.onMouseDown,dt=e.onMouseUp,gt=e.onMouseEnter,Gt=e.onMouseLeave,jn=e.onContextMenu,Wn=e.onClick,Qn=e.direction,na=e.autoComplete,la=na===void 0?"off":na,aa=u.useRef(null),Ka=Dt==="date"&&!!Qe||Dt==="time",ba=mt(h(Zt,Dt,Qe,ft)),Fa=u.useRef(null),oa=u.useRef(null),ja=Object(Q.a)(null,{value:vt,defaultValue:Ut}),ao=Object(I.a)(ja,2),ga=ao[0],ma=ao[1],$a=u.useState(ga),Da=Object(I.a)($a,2),s=Da[0],E=Da[1],M=u.useRef(null),m=Object(Q.a)(!1,{value:Ft,defaultValue:Vn,postState:function(Tt){return $n?!1:Tt},onChange:function(Tt){ia&&ia(Tt),!Tt&&M.current&&M.current.onClose&&M.current.onClose()}}),t=Object(I.a)(m,2),l=t[0],n=t[1],f=Ua(s,{formatList:ba,generateConfig:ee,locale:ye}),b=Object(I.a)(f,2),j=b[0],g=b[1],N=Ia({valueTexts:j,onTextChange:function(Tt){var Jn=ee.locale.parse(ye.locale,Tt,ba);Jn&&(!qn||!qn(Jn))&&E(Jn)}}),$=Object(I.a)(N,3),ce=$[0],he=$[1],Ie=$[2],at=function(Tt){E(Tt),ma(Tt),xa&&!pn(ee,ga,Tt)&&xa(Tt,Tt?ee.locale.format(ye.locale,Tt,ba[0]):"")},xt=function(Tt){if($n&&Tt)return;n(Tt)},Et=function(Tt){return l&&M.current&&M.current.onKeyDown?M.current.onKeyDown(Tt):(Object(Y.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Bt=function(){dt&&dt.apply(void 0,arguments),aa.current&&(aa.current.focus(),xt(!0))},zt=eo({blurToCancel:Ka,open:l,value:ce,triggerOpen:xt,forwardKeyDown:Et,isClickOutside:function(Tt){return!Mt([Fa.current,oa.current],Tt)},onSubmit:function(){return qn&&qn(s)?!1:(at(s),xt(!1),Ie(),!0)},onCancel:function(){xt(!1),E(ga),Ie()},onFocus:Pa,onBlur:ha}),At=Object(I.a)(zt,2),Vt=At[0],qt=At[1],Ct=qt.focused,mn=qt.typing;u.useEffect(function(){l||(E(ga),!j.length||j[0]===""?he(""):g!==ce&&Ie())},[l,j]),u.useEffect(function(){l||Ie()},[Dt]),u.useEffect(function(){E(ga)},[ga]),va&&(va.current={focus:function(){aa.current&&aa.current.focus()},blur:function(){aa.current&&aa.current.blur()}});var wt=Object(C.a)(Object(C.a)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Ce=u.createElement(ya,Object.assign({},wt,{generateConfig:ee,className:xe()(Object(o.a)({},"".concat(O,"-panel-focused"),!mn)),value:s,locale:ye,tabIndex:-1,onChange:E,direction:Qn}));fa&&(Ce=fa(Ce));var ze=u.createElement("div",{className:"".concat(O,"-panel-container"),onMouseDown:function(Tt){Tt.preventDefault()}},Ce),It;ta&&(It=u.createElement("span",{className:"".concat(O,"-suffix")},ta));var an;we&&ga&&!$n&&(an=u.createElement("span",{onMouseDown:function(Tt){Tt.preventDefault(),Tt.stopPropagation()},onMouseUp:function(Tt){Tt.preventDefault(),Tt.stopPropagation(),at(null),xt(!1)},className:"".concat(O,"-clear")},_n||u.createElement("span",{className:"".concat(O,"-clear-btn")})));var ut=function(Tt,Jn){(Jn==="submit"||Jn!=="key"&&!Ka)&&(at(Tt),xt(!1))},cn=Qn==="rtl"?"bottomRight":"bottomLeft",Tn=no(ce,{formatList:ba,generateConfig:ee,locale:ye}),on=Object(I.a)(Tn,3),bn=on[0],wn=on[1],yn=on[2];return u.createElement(p.Provider,{value:{operationRef:M,hideHeader:Dt==="time",panelRef:Fa,onSelect:ut,open:l,defaultOpenValue:Pn,onDateMouseEnter:wn,onDateMouseLeave:yn}},u.createElement(io,{visible:l,popupElement:ze,popupStyle:ke,prefixCls:O,dropdownClassName:be,dropdownAlign:ge,getPopupContainer:Oa,transitionName:Ae,popupPlacement:cn,direction:Qn},u.createElement("div",{className:xe()(O,de,(v={},Object(o.a)(v,"".concat(O,"-disabled"),$n),Object(o.a)(v,"".concat(O,"-focused"),Ct),Object(o.a)(v,"".concat(O,"-rtl"),Qn==="rtl"),v)),style:X,onMouseDown:Ma,onMouseUp:Bt,onMouseEnter:gt,onMouseLeave:Gt,onContextMenu:jn,onClick:Wn},u.createElement("div",{className:xe()("".concat(O,"-input"),Object(o.a)({},"".concat(O,"-input-placeholder"),!!bn)),ref:oa},u.createElement("input",Object.assign({id:W,tabIndex:T,disabled:$n,readOnly:me||!mn,value:bn||ce,onChange:function(Tt){he(Tt.target.value)},autoFocus:Ee,placeholder:da,ref:aa,title:ce},Vt,{size:c(Dt,ba[0])},ht(e),{autoComplete:la})),It,an))))}var So=function(e){Object(Ke.a)(x,e);var v=Object(P.a)(x);function x(){var O;return Object(D.a)(this,x),O=v.apply(this,arguments),O.pickerRef=u.createRef(),O.focus=function(){O.pickerRef.current&&O.pickerRef.current.focus()},O.blur=function(){O.pickerRef.current&&O.pickerRef.current.blur()},O}return Object(R.a)(x,[{key:"render",value:function(){return u.createElement(Na,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),x}(u.Component),go=So;function lo(e,v,x){var O=e.picker,W=e.locale,T=e.selectedValue,X=e.disabledDate,de=e.disabled,be=e.generateConfig,ge=oe(T,0),ke=oe(T,1);function Ae(Ee){var Qe=be.getYear(Ee),nt=be.locale.getWeek(W.locale,Ee);return Qe*100+nt}function ee(Ee){var Qe=be.getYear(Ee),nt=be.getMonth(Ee);return Qe*100+nt}function ye(Ee){var Qe=be.getYear(Ee),nt=Jt(be,Ee);return Qe*10+nt}var me=u.useCallback(function(Ee){if(X&&X(Ee))return!0;if(de[1]&&ke)return!hn(be,Ee,ke)&&be.isAfter(Ee,ke);if(v&&ke)switch(O){case"quarter":return ye(Ee)>ye(ke);case"month":return ee(Ee)>ee(ke);case"week":return Ae(Ee)>Ae(ke);default:return!hn(be,Ee,ke)&&be.isAfter(Ee,ke)}return!1},[X,de[1],ke,v]),we=u.useCallback(function(Ee){if(X&&X(Ee))return!0;if(de[0]&&ge)return!hn(be,Ee,ke)&&be.isAfter(ge,Ee);if(x&&ge)switch(O){case"quarter":return ye(Ee)0&&arguments[0]!==void 0?arguments[0]:!1,ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},St=null;yn&&La&&La[0]&&La[1]&&me.isAfter(La[1],La[0])&&(St=La);var nn=vt;if(vt&&Object(G.a)(vt)==="object"&&vt.defaultValue){var zn=vt.defaultValue;nn=Object(C.a)(Object(C.a)({},vt),{},{defaultValue:oe(zn,g)||void 0})}var Qa=null;return va&&(Qa=function(ca,za){return va(ca,za,{range:g?"end":"start"})}),u.createElement(_e.Provider,{value:{inRange:!0,panelPosition:en,rangedValue:pr||Ct,hoverRangedValue:St}},u.createElement(ya,Object.assign({},e,ot,{dateRender:Qa,showTime:nn,mode:ze[g],generateConfig:me,style:void 0,direction:ja,disabledDate:g===0?Tn:on,disabledTime:function(ca){return Oa?Oa(ca,g===0?"start":"end"):!1},className:xe()(Object(o.a)({},"".concat(T,"-panel-focused"),g===0?!Wo:!Ho)),value:oe(Ct,g),locale:we,tabIndex:-1,onPanelChange:function(ca,za){an(De(ze,za,g),De(Ct,ca,g));var Ja=ca;en==="right"&&ze[g]===za&&(Ja=U(Ja,za,me,-1)),At(Ja,g)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Bn=0,Ca=0;g&&M.current&&t.current&&E.current&&(Bn=M.current.offsetWidth+t.current.offsetWidth,E.current.offsetWidth&&Bn>E.current.offsetWidth&&(Ca=Bn));var po=ja==="rtl"?{right:Bn}:{left:Bn};function vo(){var en,ot=Xn(T,ze[g],jn),St=Gn({prefixCls:T,components:Fa,needConfirmButton:$a,okDisabled:!oe(Ct,g)||da&&da(Ct[g]),locale:we,rangeList:xn,onOk:function(){oe(Ct,g)&&(Ta(Ct,g),ba&&ba(Ct))}});if(ft!=="time"&&!vt){var nn=zt(g),zn=U(nn,ft,me),Qa=ze[g],ka=Qa===ft,ca=rn(ka?"left":!1,{pickerValue:nn,onPickerValueChange:function(Ra){At(Ra,g)}}),za=rn("right",{pickerValue:zn,onPickerValueChange:function(Ra){At(U(Ra,ft,me,-1),g)}});ja==="rtl"?en=u.createElement(u.Fragment,null,za,ka&&ca):en=u.createElement(u.Fragment,null,ca,ka&&za)}else en=rn();var Ja=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(T,"-panels")},en),(ot||St)&&u.createElement("div",{className:"".concat(T,"-footer")},ot,St));return fa&&(Ja=fa(Ja)),u.createElement("div",{className:"".concat(T,"-panel-container"),style:{marginLeft:Ca},ref:E,onMouseDown:function(Ra){Ra.preventDefault()}},Ja)}var ho=u.createElement("div",{className:xe()("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(ft,"-range-wrapper")),style:{minWidth:Sa}},u.createElement("div",{className:"".concat(T,"-range-arrow"),style:po}),vo()),ro;ha&&(ro=u.createElement("span",{className:"".concat(T,"-suffix")},ha));var Ga;Pa&&(oe(at,0)&&!ce[0]||oe(at,1)&&!ce[1])&&(Ga=u.createElement("span",{onMouseDown:function(ot){ot.preventDefault(),ot.stopPropagation()},onMouseUp:function(ot){ot.preventDefault(),ot.stopPropagation();var St=at;ce[0]||(St=De(St,null,0)),ce[1]||(St=De(St,null,1)),Ta(St,null),Yn(!1,g)},className:"".concat(T,"-clear")},Ma||u.createElement("span",{className:"".concat(T,"-clear-btn")})));var jo={size:c(ft,f[0])},bo=0,Do=0;M.current&&m.current&&t.current&&(g===0?Do=M.current.offsetWidth:(bo=Bn,Do=m.current.offsetWidth));var dr=ja==="rtl"?{right:bo}:{left:bo},Cr=function(ot,St){var nn=De(Ct,ot,g);St==="submit"||St!=="key"&&!$a?(Ta(nn,g),g===0?ko():Ko()):mn(nn)};return u.createElement(p.Provider,{value:{operationRef:$,hideHeader:ft==="time",onDateMouseEnter:hr,onDateMouseLeave:br,hideRanges:!0,onSelect:Cr,open:yn}},u.createElement(io,{visible:yn,popupElement:ho,popupStyle:ge,prefixCls:T,dropdownClassName:ke,dropdownAlign:ee,getPopupContainer:ye,transitionName:Ae,range:!0,direction:ja},u.createElement("div",Object.assign({ref:s,className:xe()(T,"".concat(T,"-range"),be,(v={},Object(o.a)(v,"".concat(T,"-disabled"),ce[0]&&ce[1]),Object(o.a)(v,"".concat(T,"-focused"),g===0?lr:zo),Object(o.a)(v,"".concat(T,"-rtl"),ja==="rtl"),v)),style:de,onClick:mo,onMouseDown:Xo},ht(e)),u.createElement("div",{className:xe()("".concat(T,"-input"),(x={},Object(o.a)(x,"".concat(T,"-input-active"),g===0),Object(o.a)(x,"".concat(T,"-input-placeholder"),!!Ao),x)),ref:M},u.createElement("input",Object.assign({id:X,disabled:ce[0],readOnly:gt||!Wo,value:Ao||uo,onChange:function(ot){Jo(ot.target.value)},autoFocus:Qe,placeholder:oe(Ee,0)||"",ref:l},gr,jo,{autoComplete:ma}))),u.createElement("div",{className:"".concat(T,"-range-separator"),ref:t},Vn),u.createElement("div",{className:xe()("".concat(T,"-input"),(O={},Object(o.a)(O,"".concat(T,"-input-active"),g===1),Object(o.a)(O,"".concat(T,"-input-placeholder"),!!Io),O)),ref:m},u.createElement("input",Object.assign({disabled:ce[1],readOnly:gt||!Ho,value:Io||xo,onChange:function(ot){qo(ot.target.value)},placeholder:oe(Ee,1)||"",ref:n},Ba,jo,{autoComplete:ma}))),u.createElement("div",{className:"".concat(T,"-active-bar"),style:Object(C.a)(Object(C.a)({},dr),{},{width:Do,position:"absolute"})}),ro,Ga)))}var Co=function(e){Object(Ke.a)(x,e);var v=Object(P.a)(x);function x(){var O;return Object(D.a)(this,x),O=v.apply(this,arguments),O.pickerRef=u.createRef(),O.focus=function(){O.pickerRef.current&&O.pickerRef.current.focus()},O.blur=function(){O.pickerRef.current&&O.pickerRef.current.blur()},O}return Object(R.a)(x,[{key:"render",value:function(){return u.createElement(Ro,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),x}(u.Component),Po=Co,Go=Oe.b=go},sR1s:function(Ht,Oe,a){"use strict";a.d(Oe,"b",function(){return P}),a.d(Oe,"a",function(){return o}),a.d(Oe,"c",function(){return C}),a.d(Oe,"d",function(){return I});var D=a("U8pU"),R="RC_TABLE_KEY";function Ke(u){return u==null?[]:Array.isArray(u)?u:[u]}function P(u,ae){if(!ae&&typeof ae!="number")return u;for(var xe=Ke(ae),Y=u,Q=0;Q1)Object(xe.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(ie.length===0)return Object(xe.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var le=ie[0];if(C.isValidElement(le)&&Object(Y.c)(le)){var Ne=le.ref;ie[0]=C.cloneElement(le,{ref:Object(Y.a)(Ne,this.setChildNode)})}return ie.length===1?ie[0]:ie.map(function(H,z){return!C.isValidElement(H)||"key"in H&&H.key!==null?H:C.cloneElement(H,{key:"".concat(G,"-").concat(z)})})}}]),A}(C.Component);k.displayName="ResizeObserver",Oe.a=k},wCXF:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return In});var D=a("rePB"),R=a("VTBJ"),Ke=a("KQm4"),P=a("U8pU"),o=a("ODXe"),C=a("q1tI"),I=a("TSYQ"),u=a.n(I),ae=a("Gytx"),xe=a.n(ae),Y=a("Kwbf"),Q=a("t23M"),G=a("qx4F"),k=a("6eGT"),y=a("IBYe"),p=a("Ff2n"),A=a("c+Xe"),_=a("fyJ8"),Z=a("biw7");function ie(U,Re,_e,He,it){var qe=_e[U]||{},$e=_e[Re]||{},We,Ye;qe.fixed==="left"?We=He.left[U]:$e.fixed==="right"&&(Ye=He.right[Re]);var Ge=!1,Me=!1,Pe=!1,Je=!1,tt=_e[Re+1],ct=_e[U-1];if(it==="rtl"){if(We!==void 0){var Wt=ct&&ct.fixed==="left";Je=!Wt}else if(Ye!==void 0){var _t=tt&&tt.fixed==="right";Pe=!_t}}else if(We!==void 0){var kt=tt&&tt.fixed==="left";Ge=!kt}else if(Ye!==void 0){var jt=ct&&ct.fixed==="right";Me=!jt}return{fixLeft:We,fixRight:Ye,lastFixLeft:Ge,firstFixRight:Me,lastFixRight:Pe,firstFixLeft:Je,isSticky:He.isSticky}}var le=a("sR1s");function Ne(U){var Re=U.cells,_e=U.stickyOffsets,He=U.flattenColumns,it=U.rowComponent,qe=U.cellComponent,$e=U.onHeaderRow,We=U.index,Ye=C.useContext(Z.a),Ge=Ye.prefixCls,Me=Ye.direction,Pe;$e&&(Pe=$e(Re.map(function(tt){return tt.column}),We));var Je=Object(le.a)(Re.map(function(tt){return tt.column}));return C.createElement(it,Object.assign({},Pe),Re.map(function(tt,ct){var Wt=tt.column,_t=ie(tt.colStart,tt.colEnd,He,_e,Me),kt;return Wt&&Wt.onHeaderCell&&(kt=tt.column.onHeaderCell(Wt)),C.createElement(_.a,Object.assign({},tt,{ellipsis:Wt.ellipsis,align:Wt.align,component:qe,prefixCls:Ge,key:Je[ct]},_t,{additionalProps:kt,rowType:"header"}))}))}Ne.displayName="HeaderRow";var H=Ne;function z(U){var Re=[];function _e($e,We){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[Ye]=Re[Ye]||[];var Ge=We,Me=$e.filter(Boolean).map(function(Pe){var Je={key:Pe.key,className:Pe.className||"",children:Pe.title,column:Pe,colStart:Ge},tt=1,ct=Pe.children;return ct&&ct.length>0&&(tt=_e(ct,Ge,Ye+1).reduce(function(Wt,_t){return Wt+_t},0),Je.hasSubColumns=!0),"colSpan"in Pe&&(tt=Pe.colSpan),"rowSpan"in Pe&&(Je.rowSpan=Pe.rowSpan),Je.colSpan=tt,Je.colEnd=Je.colStart+tt-1,Re[Ye].push(Je),Ge+=tt,tt});return Me}_e(U,0);for(var He=Re.length,it=function(We){Re[We].forEach(function(Ye){!("rowSpan"in Ye)&&!Ye.hasSubColumns&&(Ye.rowSpan=He-We)})},qe=0;qe=0;We-=1){var Ye=Re[We],Ge=_e&&_e[We],Me=Ge&&Ge[h.a];(Ye||Me||$e)&&(it.unshift(C.createElement("col",Object.assign({key:We,style:{width:Ye,minWidth:Ye}},Me))),$e=!0)}return C.createElement("colgroup",null,it)}var L=c;function V(U,Re){return Object(C.useMemo)(function(){for(var _e=[],He=0;He1?Gn-1:0),ya=1;ya=Pe&&(st=Pe-Je),$e({scrollLeft:st/Pe*(Me+2)}),jt.current.x=w.pageX},F=function(){var w=Object(En.b)(qe.current).top,re=w+qe.current.offsetHeight,Le=document.documentElement.scrollTop+window.innerHeight;re-Object(G.a)()<=Le||w>=Le-We?kt(function(Ot){return Object(R.a)(Object(R.a)({},Ot),{},{isHiddenScrollBar:!0})}):kt(function(Ot){return Object(R.a)(Object(R.a)({},Ot),{},{isHiddenScrollBar:!1})})},ue=function(w){kt(function(re){return Object(R.a)(Object(R.a)({},re),{},{scrollLeft:w/Me*Pe||0})})};return C.useImperativeHandle(_e,function(){return{setScrollLeft:ue}}),C.useEffect(function(){var se=Object(fn.a)(document.body,"mouseup",i,!1),w=Object(fn.a)(document.body,"mousemove",ne,!1);return F(),function(){se.remove(),w.remove()}},[Je,pe]),C.useEffect(function(){var se=Object(fn.a)(window,"scroll",F,!1),w=Object(fn.a)(window,"resize",F,!1);return function(){se.remove(),w.remove()}},[]),C.useEffect(function(){_t.isHiddenScrollBar||kt(function(se){var w,re;return Object(R.a)(Object(R.a)({},se),{},{scrollLeft:qe.current.scrollLeft/((w=qe.current)===null||w===void 0?void 0:w.scrollWidth)*((re=qe.current)===null||re===void 0?void 0:re.clientWidth)})})},[_t.isHiddenScrollBar]),Me<=Pe||!Je||_t.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(G.a)(),width:Pe,bottom:We},className:"".concat(Ge,"-sticky-scroll")},C.createElement("div",{onMouseDown:d,ref:tt,className:u()("".concat(Ge,"-sticky-scroll-bar"),Object(D.a)({},"".concat(Ge,"-sticky-scroll-bar-active"),pe)),style:{width:"".concat(Je,"px"),transform:"translate3d(".concat(_t.scrollLeft,"px, 0, 0)")}}))},Pt=C.forwardRef(Jt);function Kt(U,Re){return C.useMemo(function(){var _e=!!U;return{isSticky:_e,stickyClassName:_e?"".concat(Re,"-sticky-header"):"",offsetHeader:Object(P.a)(U)==="object"&&U.offsetHeader||0,offsetScroll:Object(P.a)(U)==="object"&&U.offsetScroll||0}},[U,Re])}var hn=[],Ln={},In="rc-table-internal-hook",pn=C.memo(function(U){var Re=U.children;return Re},function(U,Re){return xe()(U.props,Re.props)?U.pingLeft!==Re.pingLeft||U.pingRight!==Re.pingRight:!1});function Dn(U){var Re,_e=U.prefixCls,He=U.className,it=U.rowClassName,qe=U.style,$e=U.data,We=U.rowKey,Ye=U.scroll,Ge=U.tableLayout,Me=U.direction,Pe=U.title,Je=U.footer,tt=U.summary,ct=U.id,Wt=U.showHeader,_t=U.components,kt=U.emptyText,jt=U.onRow,Se=U.onHeaderRow,te=U.internalHooks,pe=U.transformColumns,S=U.internalRefs,i=U.sticky,d=$e||hn,ne=!!d.length,F=C.useState(0),ue=Object(o.a)(F,2),se=ue[0],w=ue[1];C.useEffect(function(){w(Object(G.a)())});var re=C.useMemo(function(){return Object(le.c)(_t,{})},[_t]),Le=C.useCallback(function(dt,gt){return Object(le.b)(re,dt)||gt},[re]),Ot=C.useMemo(function(){return typeof We=="function"?We:function(dt){var gt=dt&&dt[We];return gt}},[We]),st=Object(h.c)(U),ln=st.expandIcon,dn=st.expandedRowKeys,Un=st.defaultExpandedRowKeys,Nn=st.defaultExpandAllRows,et=st.expandedRowRender,tn=st.onExpand,sn=st.onExpandedRowsChange,Sn=st.expandRowByClick,Xt=st.rowExpandable,Qt=st.expandIconColumnIndex,Rn=st.expandedRowClassName,$t=st.childrenColumnName,Hn=st.indentSize,Mn=ln||Yt,Rt=$t||"children",vn=C.useMemo(function(){return et?"row":U.expandable&&te===In&&U.expandable.__PARENT_RENDER_ICON__||d.some(function(dt){return dt&&Object(P.a)(dt)==="object"&&dt[Rt]})?"nest":!1},[!!et,d]),un=C.useState(function(){return Un||(Nn?Lt(d,Ot,Rt):[])}),Cn=Object(o.a)(un,2),Kn=Cn[0],Xn=Cn[1],Gn=C.useMemo(function(){return new Set(dn||Kn||[])},[dn,Kn]),pa=C.useCallback(function(dt){var gt=Ot(dt,d.indexOf(dt)),Gt,jn=Gn.has(gt);jn?(Gn.delete(gt),Gt=Object(Ke.a)(Gn)):Gt=[].concat(Object(Ke.a)(Gn),[gt]),Xn(Gt),tn&&tn(!jn,dt),sn&&sn(Gt)},[Ot,Gn,d,tn,sn]),ya=C.useState(0),Za=Object(o.a)(ya,2),Ha=Za[0],qa=Za[1],io=Object(De.b)(Object(R.a)(Object(R.a)(Object(R.a)({},U),st),{},{expandable:!!et,expandedKeys:Gn,getRowKey:Ot,onTriggerExpand:pa,expandIcon:Mn,expandIconColumnIndex:Qt,direction:Me}),te===In?pe:null),eo=Object(o.a)(io,2),Ia=eo[0],Fn=eo[1],to=C.useMemo(function(){return{columns:Ia,flattenColumns:Fn}},[Ia,Fn]),Ua=C.useRef(),no=C.useRef(),Na=C.useRef(),So=C.useState(!1),go=Object(o.a)(So,2),lo=go[0],To=go[1],No=C.useState(!1),so=Object(o.a)(No,2),Xa=so[0],Eo=so[1],Ro=fe(new Map),Co=Object(o.a)(Ro,2),Po=Co[0],Go=Co[1],e=Object(le.a)(Fn),v=e.map(function(dt){return Po.get(dt)}),x=C.useMemo(function(){return v},[v.join("_")]),O=bt(x,Fn.length,Me),W=Ye&&Object(le.d)(Ye.y),T=Ye&&Object(le.d)(Ye.x),X=T&&Fn.some(function(dt){var gt=dt.fixed;return gt}),de=C.useRef(),be=Kt(i,_e),ge=be.isSticky,ke=be.offsetHeader,Ae=be.offsetScroll,ee=be.stickyClassName,ye,me,we;W&&(me={overflowY:"scroll",maxHeight:Ye.y}),T&&(ye={overflowX:"auto"},W||(me={overflowY:"hidden"}),we={width:Ye.x===!0?"auto":Ye.x,minWidth:"100%"});var Ee=C.useCallback(function(dt,gt){Go(function(Gt){var jn=new Map(Gt);return jn.set(dt,gt),jn})},[]),Qe=ve(null),nt=Object(o.a)(Qe,2),Dt=nt[0],Zt=nt[1];function ft(dt,gt){if(!gt)return;typeof gt=="function"?gt(dt):gt.scrollLeft!==dt&&(gt.scrollLeft=dt)}var vt=function(gt){var Gt=gt.currentTarget,jn=gt.scrollLeft,Wn=typeof jn=="number"?jn:Gt.scrollLeft,Qn=Gt||Ln;if(!Zt()||Zt()===Qn){var na;Dt(Qn),ft(Wn,no.current),ft(Wn,Na.current),ft(Wn,(na=de.current)===null||na===void 0?void 0:na.setScrollLeft)}if(Gt){var la=Gt.scrollWidth,aa=Gt.clientWidth;To(Wn>0),Eo(Wn0?[].concat(Object(R.a)(p),Object(R.a)(Y(ie).map(function(le){return Object(Ke.a)({fixed:Z},le)}))):[].concat(Object(R.a)(p),[Object(Ke.a)(Object(Ke.a)({},A),{},{fixed:Z})])},[])}function Q(y){for(var p=!0,A=0;A=0;ie-=1){var le=y[ie];if(Z&&le.fixed!=="right")Z=!1;else if(!Z&&le.fixed==="right"){Object(I.a)(!1,"Index ".concat(ie+1," of `columns` missing `fixed='right'` prop."));break}}}function G(y){return y.map(function(p){var A=p.fixed,_=Object(P.a)(p,["fixed"]),Z=A;return A==="left"?Z="right":A==="right"&&(Z="left"),Object(Ke.a)({fixed:Z},_)})}function k(y,p){var A=y.prefixCls,_=y.columns,Z=y.children,ie=y.expandable,le=y.expandedKeys,Ne=y.getRowKey,H=y.onTriggerExpand,z=y.expandIcon,K=y.rowExpandable,r=y.expandIconColumnIndex,h=y.direction,c=y.expandRowByClick,L=o.useMemo(function(){return _||xe(Z)},[_,Z]),V=o.useMemo(function(){if(ie){var J,B=r||0,Ue=L[B],rt=(J={},Object(D.a)(J,ae.a,{className:"".concat(A,"-expand-icon-col")}),Object(D.a)(J,"title",""),Object(D.a)(J,"fixed",Ue?Ue.fixed:null),Object(D.a)(J,"className","".concat(A,"-row-expand-icon-cell")),Object(D.a)(J,"render",function(Te,lt,pt){var mt=Ne(lt,pt),ht=le.has(mt),oe=K?K(lt):!0,De=z({prefixCls:A,expanded:ht,expandable:oe,record:lt,onExpand:H});return c?o.createElement("span",{onClick:function(Be){return Be.stopPropagation()}},De):De}),J),Mt=L.slice();return B>=0&&Mt.splice(B,0,rt),Mt}return L},[ie,L,Ne,le,z,h]),q=o.useMemo(function(){var J=V;return p&&(J=p(J)),J.length||(J=[{render:function(){return null}}]),J},[p,V,h]),je=o.useMemo(function(){return h==="rtl"?G(Y(q)):Y(q)},[q,h]);return[q,je]}Oe.b=k},"y0+3":function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return Y}),a.d(Oe,"b",function(){return G});var D=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ke={cssFloat:1,styleFloat:1,float:1};function P(k){return k.nodeType===1?k.ownerDocument.defaultView.getComputedStyle(k,null):{}}function o(k,y,p){if(y=y.toLowerCase(),p==="auto"){if(y==="height")return k.offsetHeight;if(y==="width")return k.offsetWidth}return y in R||(R[y]=D.test(y)),R[y]?parseFloat(p)||0:p}function C(k,y){var p=arguments.length,A=P(k);return y=Ke[y]?"cssFloat"in k.style?"cssFloat":"styleFloat":y,p===1?A:o(k,y,A[y]||k.style[y])}function I(k,y,p){var A=arguments.length;if(y=Ke[y]?"cssFloat"in k.style?"cssFloat":"styleFloat":y,A===3)return typeof p=="number"&&D.test(y)&&(p="".concat(p,"px")),k.style[y]=p,p;for(var _ in y)y.hasOwnProperty(_)&&I(k,_,y[_]);return P(k)}function u(k){return k===document.body?document.documentElement.clientWidth:k.offsetWidth}function ae(k){return k===document.body?window.innerHeight||document.documentElement.clientHeight:k.offsetHeight}function xe(){var k=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:k,height:y}}function Y(){var k=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:k,height:y}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function G(k){var y=k.getBoundingClientRect(),p=document.documentElement;return{left:y.left+(window.pageXOffset||p.scrollLeft)-(p.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||p.scrollTop)-(p.clientTop||document.body.clientTop||0)}}}}]); +`,je=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],J={},B;function Ue(oe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=oe.getAttribute("id")||oe.getAttribute("data-reactid")||oe.getAttribute("name");if(De&&J[Ze])return J[Ze];var Be=window.getComputedStyle(oe),fe=Be.getPropertyValue("box-sizing")||Be.getPropertyValue("-moz-box-sizing")||Be.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(Be.getPropertyValue("padding-bottom"))+parseFloat(Be.getPropertyValue("padding-top")),Xe=parseFloat(Be.getPropertyValue("border-bottom-width"))+parseFloat(Be.getPropertyValue("border-top-width")),bt=je.map(function(Fe){return"".concat(Fe,":").concat(Be.getPropertyValue(Fe))}).join(";"),Nt={sizingStyle:bt,paddingSize:ve,borderSize:Xe,boxSizing:fe};return De&&Ze&&(J[Ze]=Nt),Nt}function rt(oe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;B||(B=document.createElement("textarea"),B.setAttribute("tab-index","-1"),B.setAttribute("aria-hidden","true"),document.body.appendChild(B)),oe.getAttribute("wrap")?B.setAttribute("wrap",oe.getAttribute("wrap")):B.removeAttribute("wrap");var fe=Ue(oe,De),ve=fe.paddingSize,Xe=fe.borderSize,bt=fe.boxSizing,Nt=fe.sizingStyle;B.setAttribute("style","".concat(Nt,";").concat(q)),B.value=oe.value||oe.placeholder||"";var Fe=Number.MIN_SAFE_INTEGER,yt=Number.MAX_SAFE_INTEGER,Yt=B.scrollHeight,Lt;if(bt==="border-box"?Yt+=Xe:bt==="content-box"&&(Yt-=ve),Ze!==null||Be!==null){B.value=" ";var fn=B.scrollHeight-ve;Ze!==null&&(Fe=fn*Ze,bt==="border-box"&&(Fe=Fe+ve+Xe),Yt=Math.max(Fe,Yt)),Be!==null&&(yt=fn*Be,bt==="border-box"&&(yt=yt+ve+Xe),Lt=Yt>yt?"":"hidden",Yt=Math.min(yt,Yt))}return{height:Yt,minHeight:Fe,maxHeight:yt,overflowY:Lt,resize:"none"}}var Mt=a("Gytx"),Ve=a.n(Mt),Se;(function(oe){oe[oe.NONE=0]="NONE",oe[oe.RESIZING=1]="RESIZING",oe[oe.RESIZED=2]="RESIZED"})(Se||(Se={}));var lt=function(oe){Object(P.a)(Ze,oe);var De=Object(o.a)(Ze);function Ze(Be){var fe;return Object(R.a)(this,Ze),fe=De.call(this,Be),fe.nextFrameActionId=void 0,fe.resizeFrameId=void 0,fe.textArea=void 0,fe.saveTextArea=function(ve){fe.textArea=ve},fe.handleResize=function(ve){var Xe=fe.state.resizeStatus,bt=fe.props,Nt=bt.autoSize,Fe=bt.onResize;if(Xe!==Se.NONE)return;typeof Fe=="function"&&Fe(ve),Nt&&fe.resizeOnNextFrame()},fe.resizeOnNextFrame=function(){cancelAnimationFrame(fe.nextFrameActionId),fe.nextFrameActionId=requestAnimationFrame(fe.resizeTextarea)},fe.resizeTextarea=function(){var ve=fe.props.autoSize;if(!ve||!fe.textArea)return;var Xe=ve.minRows,bt=ve.maxRows,Nt=rt(fe.textArea,!1,Xe,bt);fe.setState({textareaStyles:Nt,resizeStatus:Se.RESIZING},function(){cancelAnimationFrame(fe.resizeFrameId),fe.resizeFrameId=requestAnimationFrame(function(){fe.setState({resizeStatus:Se.RESIZED},function(){fe.resizeFrameId=requestAnimationFrame(function(){fe.setState({resizeStatus:Se.NONE}),fe.fixFirefoxAutoScroll()})})})})},fe.renderTextArea=function(){var ve=fe.props,Xe=ve.prefixCls,bt=Xe===void 0?"rc-textarea":Xe,Nt=ve.autoSize,Fe=ve.onResize,yt=ve.className,Yt=ve.disabled,Lt=fe.state,fn=Lt.textareaStyles,En=Lt.resizeStatus,Jt=Object(c.a)(fe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Pt=V()(bt,yt,Object(u.a)({},"".concat(bt,"-disabled"),Yt));"value"in Jt&&(Jt.value=Jt.value||"");var Kt=Object(I.a)(Object(I.a)(Object(I.a)({},fe.props.style),fn),En===Se.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return C.createElement(h,{onResize:fe.handleResize,disabled:!(Nt||Fe)},C.createElement("textarea",Object(D.a)({},Jt,{className:Pt,style:Kt,ref:fe.saveTextArea})))},fe.state={textareaStyles:{},resizeStatus:Se.NONE},fe}return Object(Ke.a)(Ze,[{key:"componentDidUpdate",value:function(fe){(fe.value!==this.props.value||!Ve()(fe.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var fe=this.textArea.selectionStart,ve=this.textArea.selectionEnd;this.textArea.setSelectionRange(fe,ve)}}catch(Xe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ze}(C.Component),pt=lt,mt=function(oe){Object(P.a)(Ze,oe);var De=Object(o.a)(Ze);function Ze(Be){var fe;Object(R.a)(this,Ze),fe=De.call(this,Be),fe.resizableTextArea=void 0,fe.focus=function(){fe.resizableTextArea.textArea.focus()},fe.saveTextArea=function(Xe){fe.resizableTextArea=Xe},fe.handleChange=function(Xe){var bt=fe.props.onChange;fe.setValue(Xe.target.value,function(){fe.resizableTextArea.resizeTextarea()}),bt&&bt(Xe)},fe.handleKeyDown=function(Xe){var bt=fe.props,Nt=bt.onPressEnter,Fe=bt.onKeyDown;Xe.keyCode===13&&Nt&&Nt(Xe),Fe&&Fe(Xe)};var ve=typeof Be.value=="undefined"||Be.value===null?Be.defaultValue:Be.value;return fe.state={value:ve},fe}return Object(Ke.a)(Ze,[{key:"setValue",value:function(fe,ve){"value"in this.props||this.setState({value:fe},ve)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return C.createElement(pt,Object(D.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(fe){return"value"in fe?{value:fe.value}:null}}]),Ze}(C.Component),ht=Oe.default=mt},ZpRC:function(Ht,Oe,a){"use strict";function D(Y){return typeof Y=="object"&&Y!=null&&Y.nodeType===1}function R(Y,Q){return(!Q||Y!=="hidden")&&Y!=="visible"&&Y!=="clip"}function Ke(Y,Q){if(Y.clientHeightQ||p>Y&&A=Q&&_>=G?p-Y-k:A>Q&&_G?A-Q+y:0}var o=function(Y,Q){var G=window,k=Q.scrollMode,y=Q.block,p=Q.inline,A=Q.boundary,_=Q.skipOverflowHiddenElements,Z=typeof A=="function"?A:function(fn){return fn!==A};if(!D(Y))throw new TypeError("Invalid target");for(var ie=document.scrollingElement||document.documentElement,le=[],Ne=Y;D(Ne)&&Z(Ne);){if((Ne=Ne.parentElement)===ie){le.push(Ne);break}Ne!=null&&Ne===document.body&&Ke(Ne)&&!Ke(document.documentElement)||Ne!=null&&Ke(Ne,_)&&le.push(Ne)}for(var H=G.visualViewport?G.visualViewport.width:innerWidth,z=G.visualViewport?G.visualViewport.height:innerHeight,K=window.scrollX||pageXOffset,r=window.scrollY||pageYOffset,h=Y.getBoundingClientRect(),c=h.height,L=h.width,V=h.top,q=h.right,je=h.bottom,J=h.left,B=y==="start"||y==="nearest"?V:y==="end"?je:V+c/2,Ue=p==="center"?J+L/2:p==="end"?q:J,rt=[],Mt=0;Mt=0&&J>=0&&je<=z&&q<=H&&V>=mt&&je<=oe&&J>=De&&q<=ht)return rt;var Ze=getComputedStyle(Ve),Be=parseInt(Ze.borderLeftWidth,10),fe=parseInt(Ze.borderTopWidth,10),ve=parseInt(Ze.borderRightWidth,10),Xe=parseInt(Ze.borderBottomWidth,10),bt=0,Nt=0,Fe="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-Be-ve:0,yt="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-fe-Xe:0;if(ie===Ve)bt=y==="start"?B:y==="end"?B-z:y==="nearest"?P(r,r+z,z,fe,Xe,r+B,r+B+c,c):B-z/2,Nt=p==="start"?Ue:p==="center"?Ue-H/2:p==="end"?Ue-H:P(K,K+H,H,Be,ve,K+Ue,K+Ue+L,L),bt=Math.max(0,bt+r),Nt=Math.max(0,Nt+K);else{bt=y==="start"?B-mt-fe:y==="end"?B-oe+Xe+yt:y==="nearest"?P(mt,oe,lt,fe,Xe+yt,B,B+c,c):B-(mt+lt/2)+yt/2,Nt=p==="start"?Ue-De-Be:p==="center"?Ue-(De+pt/2)+Fe/2:p==="end"?Ue-ht+ve+Fe:P(De,ht,pt,Be,ve+Fe,Ue,Ue+L,L);var Yt=Ve.scrollLeft,Lt=Ve.scrollTop;B+=Lt-(bt=Math.max(0,Math.min(Lt+bt,Ve.scrollHeight-lt+yt))),Ue+=Yt-(Nt=Math.max(0,Math.min(Yt+Nt,Ve.scrollWidth-pt+Fe)))}rt.push({el:Ve,top:bt,left:Nt})}return rt};function C(Y){return Y===Object(Y)&&Object.keys(Y).length!==0}function I(Y,Q){Q===void 0&&(Q="auto");var G="scrollBehavior"in document.body.style;Y.forEach(function(k){var y=k.el,p=k.top,A=k.left;y.scroll&&G?y.scroll({top:p,left:A,behavior:Q}):(y.scrollTop=p,y.scrollLeft=A)})}function u(Y){return Y===!1?{block:"end",inline:"nearest"}:C(Y)?Y:{block:"start",inline:"nearest"}}function ae(Y,Q){var G=!Y.ownerDocument.documentElement.contains(Y);if(C(Q)&&typeof Q.behavior=="function")return Q.behavior(G?[]:o(Y,Q));if(G)return;var k=u(Q);return I(o(Y,k),k.behavior)}var xe=Oe.a=ae},bT9E:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return R});var D=a("VTBJ");function R(Ke,P){var o=Object(D.a)({},Ke);return Array.isArray(P)&&P.forEach(function(C){delete o[C]}),o}},biw7:function(Ht,Oe,a){"use strict";var D=a("q1tI"),R=a.n(D),Ke=D.createContext(null);Oe.a=Ke},fyJ8:function(Ht,Oe,a){"use strict";var D=a("rePB"),R=a("VTBJ"),Ke=a("Ff2n"),P=a("U8pU"),o=a("q1tI"),C=a.n(o),I=a("TSYQ"),u=a.n(I),ae=a("c+Xe"),xe=a("sR1s");function Y(p){return p&&Object(P.a)(p)==="object"&&!Array.isArray(p)&&!o.isValidElement(p)}function Q(p){return typeof p=="string"?!0:Object(ae.c)(p)}function G(p,A){var _,Z=p.prefixCls,ie=p.className,le=p.record,Ne=p.index,H=p.dataIndex,z=p.render,K=p.children,r=p.component,h=r===void 0?"td":r,c=p.colSpan,L=p.rowSpan,V=p.fixLeft,q=p.fixRight,je=p.firstFixLeft,J=p.lastFixLeft,B=p.firstFixRight,Ue=p.lastFixRight,rt=p.appendNode,Mt=p.additionalProps,Ve=Mt===void 0?{}:Mt,Se=p.ellipsis,lt=p.align,pt=p.rowType,mt=p.isSticky,ht="".concat(Z,"-cell"),oe,De;if(K)De=K;else{var Ze=Object(xe.b)(le,H);if(De=Ze,z){var Be=z(Ze,le,Ne);Y(Be)?(De=Be.children,oe=Be.props):De=Be}}Object(P.a)(De)==="object"&&!Array.isArray(De)&&!o.isValidElement(De)&&(De=null),Se&&(J||B)&&(De=o.createElement("span",{className:"".concat(ht,"-content")},De));var fe=oe||{},ve=fe.colSpan,Xe=fe.rowSpan,bt=fe.style,Nt=fe.className,Fe=Object(Ke.a)(fe,["colSpan","rowSpan","style","className"]),yt=ve!==void 0?ve:c,Yt=Xe!==void 0?Xe:L;if(yt===0||Yt===0)return null;var Lt={},fn=typeof V=="number",En=typeof q=="number";fn&&(Lt.position="sticky",Lt.left=V),En&&(Lt.position="sticky",Lt.right=q);var Jt={};lt&&(Jt.textAlign=lt);var Pt,Kt=Se===!0?{showTitle:!0}:Se;Kt&&(Kt.showTitle||pt==="header")&&(typeof De=="string"||typeof De=="number"?Pt=De.toString():o.isValidElement(De)&&typeof De.props.children=="string"&&(Pt=De.props.children));var hn=Object(R.a)(Object(R.a)(Object(R.a)({title:Pt},Fe),Ve),{},{colSpan:yt&&yt!==1?yt:null,rowSpan:Yt&&Yt!==1?Yt:null,className:u()(ht,ie,(_={},Object(D.a)(_,"".concat(ht,"-fix-left"),fn),Object(D.a)(_,"".concat(ht,"-fix-left-first"),je),Object(D.a)(_,"".concat(ht,"-fix-left-last"),J),Object(D.a)(_,"".concat(ht,"-fix-right"),En),Object(D.a)(_,"".concat(ht,"-fix-right-first"),B),Object(D.a)(_,"".concat(ht,"-fix-right-last"),Ue),Object(D.a)(_,"".concat(ht,"-ellipsis"),Se),Object(D.a)(_,"".concat(ht,"-with-append"),rt),Object(D.a)(_,"".concat(ht,"-fix-sticky"),(fn||En)&&mt),_),Ve.className,Nt),style:Object(R.a)(Object(R.a)(Object(R.a)(Object(R.a)({},Ve.style),Jt),Lt),bt),ref:Q(h)?A:null});return o.createElement(h,Object.assign({},hn),rt,De)}var k=o.forwardRef(G);k.displayName="Cell";var y=o.memo(k,function(p,A){return A.shouldCellUpdate?!A.shouldCellUpdate(A.record,p.record):!1});Oe.a=y},hW8S:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return P}),a.d(Oe,"c",function(){return o}),a.d(Oe,"b",function(){return C});var D=a("VTBJ"),R=a("Ff2n"),Ke=a("Kwbf"),P="RC_TABLE_INTERNAL_COL_DEFINE";function o(I){var u=I.expandable,ae=Object(R.a)(I,["expandable"]);return"expandable"in I?Object(D.a)(Object(D.a)({},ae),u):ae}function C(I){return Object.keys(I).reduce(function(u,ae){return(ae.substr(0,5)==="data-"||ae.substr(0,5)==="aria-")&&(u[ae]=I[ae]),u},{})}},k3GJ:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return oa});var D=a("rePB"),R=a("ODXe"),Ke=a("Ff2n"),P=a("VTBJ"),o=a("q1tI"),C=a("TSYQ"),I=a.n(C),u=a("Zm9Q"),ae=a("6cGi"),xe=a("KQm4"),Y=a("xEkU"),Q=a.n(Y),G=a("t23M");function k(s){var E=Object(o.useRef)(),M=Object(o.useRef)(!1);function m(){for(var t=arguments.length,l=new Array(t),n=0;nN&&(he=N-ce),Object(o.useMemo)(function(){if(!l.length)return[0,0];for(var Ie=l.length,at=Ie,xt=0;xtg+he){at=xt-1;break}}for(var Bt=0,zt=Ie-1;zt>=0;zt-=1){var At=s.get(l[zt].key)||le;if(At[j]1&&arguments[1]!==void 0?arguments[1]:!1,m=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(m){if(M){var t=getComputedStyle(E),l=t.marginLeft,n=t.marginRight;m+=+l.replace("px","")+ +n.replace("px","")}m=+m.toFixed(6)}return m||0},Pt=function(E,M,m){E&&Object(B.a)(E.style)==="object"&&(E.style[M]=m)},Kt=function(){return Nt.any},hn=a("bdgK"),Ln=a("i8i4"),In=a.n(Ln),pn=a("wgJM"),Dn=a("l4aY"),sa=a("m+aA"),U=a("c+Xe"),Re=a("zT1h"),_e=a("QC+M");function He(s,E,M){return M?s[0]===E[0]:s[0]===E[0]&&s[1]===E[1]}function it(s,E,M){var m=s[E]||{};return Object(P.a)(Object(P.a)({},m),M)}function qe(s,E,M,m){for(var t=M.points,l=Object.keys(s),n=0;n1&&arguments[1]!==void 0?arguments[1]:2;E();var l=Object(pn.a)(function(){t<=1?m({isCanceled:function(){return l!==s.current}}):M(m,t-1)});s.current=l}return o.useEffect(function(){return function(){E()}},[]),[M,E]},ln=[F,ue,se,w],dn=!1,Un=!0;function Nn(s){return s===se||s===w}var et=function(s,E){var M=o.useState(ne),m=Object(R.a)(M,2),t=m[0],l=m[1],n=st(),f=Object(R.a)(n,2),b=f[0],j=f[1];function g(){l(F)}return Ot(function(){if(t!==ne&&t!==w){var N=ln.indexOf(t),$=ln[N+1],ce=E(t);ce===dn?l($):b(function(he){function Ie(){if(he.isCanceled())return;l($)}ce===!0?Ie():Promise.resolve(ce).then(Ie)})}},[s,t]),o.useEffect(function(){return function(){j()}},[]),[g,t]},tn=function(s){var E=Object(o.useRef)(),M=Object(o.useRef)(s);M.current=s;var m=o.useCallback(function(n){M.current(n)},[]);function t(n){n&&(n.removeEventListener(Te,m),n.removeEventListener(jt,m))}function l(n){E.current&&E.current!==n&&t(E.current),n&&n!==E.current&&(n.addEventListener(Te,m),n.addEventListener(jt,m),E.current=n)}return o.useEffect(function(){return function(){t(E.current)}},[]),[l,t]};function sn(s,E,M,m){var t=m.motionEnter,l=t===void 0?!0:t,n=m.motionAppear,f=n===void 0?!0:n,b=m.motionLeave,j=b===void 0?!0:b,g=m.motionDeadline,N=m.motionLeaveImmediately,$=m.onAppearPrepare,ce=m.onEnterPrepare,he=m.onLeavePrepare,Ie=m.onAppearStart,at=m.onEnterStart,xt=m.onLeaveStart,Et=m.onAppearActive,Bt=m.onEnterActive,zt=m.onLeaveActive,At=m.onAppearEnd,Vt=m.onEnterEnd,qt=m.onLeaveEnd,Ct=m.onVisibleChanged,mn=re(),wt=Object(R.a)(mn,2),Ce=wt[0],ze=wt[1],It=re(pe),an=Object(R.a)(It,2),ut=an[0],cn=an[1],Sn=re(null),on=Object(R.a)(Sn,2),bn=on[0],wn=on[1],yn=Object(o.useRef)(!1),gn=Object(o.useRef)(null),St=Object(o.useRef)(!1),Jn=Object(o.useRef)(null);function wa(){var kn=M();return kn||Jn.current}var Ea=Object(o.useRef)(!1);function Ta(kn){var On=wa();if(kn&&!kn.deadline&&kn.target!==On)return;var ra;ut===T&&Ea.current?ra=At==null?void 0:At(On,kn):ut===i&&Ea.current?ra=Vt==null?void 0:Vt(On,kn):ut===d&&Ea.current&&(ra=qt==null?void 0:qt(On,kn)),ra!==!1&&!St.current&&(cn(pe),wn(null))}var Zn=tn(Ta),ua=Object(R.a)(Zn,1),Yn=ua[0],ea=o.useMemo(function(){var kn,On,ra;switch(ut){case"appear":return kn={},Object(D.a)(kn,F,$),Object(D.a)(kn,ue,Ie),Object(D.a)(kn,se,Et),kn;case"enter":return On={},Object(D.a)(On,F,ce),Object(D.a)(On,ue,at),Object(D.a)(On,se,Bt),On;case"leave":return ra={},Object(D.a)(ra,F,he),Object(D.a)(ra,ue,xt),Object(D.a)(ra,se,zt),ra;default:return{}}},[ut]),Sa=et(ut,function(kn){if(kn===F){var On=ea[F];return On?On(wa()):dn}if(An in ea){var ra;wn(((ra=ea[An])===null||ra===void 0?void 0:ra.call(ea,wa(),null))||null)}return An===se&&(Yn(wa()),g>0&&(clearTimeout(gn.current),gn.current=setTimeout(function(){Ta({deadline:!0})},g))),Un}),Va=Object(R.a)(Sa,2),Wa=Va[0],An=Va[1],_a=Nn(An);Ea.current=_a,Ot(function(){ze(E);var kn=yn.current;if(yn.current=!0,!s)return;var On;!kn&&E&&f&&(On=T),kn&&E&&l&&(On=i),(kn&&!E&&j||!kn&&N&&!E&&j)&&(On=d),On&&(cn(On),Wa())},[E]),Object(o.useEffect)(function(){(ut===T&&!f||ut===i&&!l||ut===d&&!j)&&cn(pe)},[f,l,j]),Object(o.useEffect)(function(){return function(){clearTimeout(gn.current),St.current=!0}},[]),Object(o.useEffect)(function(){Ce!==void 0&&ut===pe&&(Ct==null||Ct(Ce))},[Ce,ut]);var Aa=bn;return ea[F]&&An===ue&&(Aa=Object(P.a)({transition:"none"},Aa)),[ut,An,Aa,Ce!=null?Ce:E]}var Tn=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){return Object(z.a)(this,M),E.apply(this,arguments)}return Object(K.a)(M,[{key:"render",value:function(){return this.props.children}}]),M}(o.Component),Xt=Tn;function Qt(s){var E=s;Object(B.a)(s)==="object"&&(E=s.transitionSupport);function M(t){return!!(t.motionName&&E)}var m=o.forwardRef(function(t,l){var n=t.visible,f=n===void 0?!0:n,b=t.removeOnLeave,j=b===void 0?!0:b,g=t.forceRender,N=t.children,$=t.motionName,ce=t.leavedClassName,he=t.eventProps,Ie=M(t),at=Object(o.useRef)(),xt=Object(o.useRef)();function Et(){try{return Object(sa.a)(at.current||xt.current)}catch(cn){return null}}var Bt=sn(Ie,f,Et,t),zt=Object(R.a)(Bt,4),At=zt[0],Vt=zt[1],qt=zt[2],Ct=zt[3],mn=o.useRef(Ct);Ct&&(mn.current=!0);var wt=Object(o.useRef)(l);wt.current=l;var Ce=o.useCallback(function(cn){at.current=cn,Object(U.b)(wt.current,cn)},[]),ze,It=Object(P.a)(Object(P.a)({},he),{},{visible:f});if(!N)ze=null;else if(At===pe||!M(t))Ct?ze=N(Object(P.a)({},It),Ce):!j&&mn.current?ze=N(Object(P.a)(Object(P.a)({},It),{},{className:ce}),Ce):g?ze=N(Object(P.a)(Object(P.a)({},It),{},{style:{display:"none"}}),Ce):ze=null;else{var an,ut;Vt===F?ut="prepare":Nn(Vt)?ut="active":Vt===ue&&(ut="start"),ze=N(Object(P.a)(Object(P.a)({},It),{},{className:I()(te($,At),(an={},Object(D.a)(an,te($,"".concat(At,"-").concat(ut)),ut),Object(D.a)(an,$,typeof $=="string"),an)),style:qt}),Ce)}return o.createElement(Xt,{ref:xt},ze)});return m.displayName="CSSMotion",m}var Rn=Qt(kt),$t="add",Hn="keep",Mn="remove",Rt="removed";function vn(s){var E;return s&&Object(B.a)(s)==="object"&&"key"in s?E=s:E={key:s},Object(P.a)(Object(P.a)({},E),{},{key:String(E.key)})}function un(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return s.map(vn)}function Cn(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=[],m=0,t=E.length,l=un(s),n=un(E);l.forEach(function(j){for(var g=!1,N=m;N1});return b.forEach(function(j){M=M.filter(function(g){var N=g.key,$=g.status;return N!==j||$!==Mn}),M.forEach(function(g){g.key===j&&(g.status=Hn)})}),M}var Kn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Xn(s){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn,M=function(m){Object(h.a)(l,m);var t=Object(c.a)(l);function l(){var n;return Object(z.a)(this,l),n=t.apply(this,arguments),n.state={keyEntities:[]},n.removeKey=function(f){n.setState(function(b){var j=b.keyEntities;return{keyEntities:j.map(function(g){return g.key!==f?g:Object(P.a)(Object(P.a)({},g),{},{status:Rt})})}})},n}return Object(K.a)(l,[{key:"render",value:function(){var f=this,b=this.state.keyEntities,j=this.props,g=j.component,N=j.children,$=j.onVisibleChanged,ce=Object(Ke.a)(j,["component","children","onVisibleChanged"]),he=g||o.Fragment,Ie={};return Kn.forEach(function(at){Ie[at]=ce[at],delete ce[at]}),delete ce.keys,o.createElement(he,ce,b.map(function(at){var xt=at.status,Et=Object(Ke.a)(at,["status"]),Bt=xt===$t||xt===Hn;return o.createElement(E,Object(H.a)({},Ie,{key:Et.key,visible:Bt,eventProps:Et,onVisibleChanged:function(At){$==null||$(At,{key:Et.key}),At||f.removeKey(Et.key)}}),N)}))}}],[{key:"getDerivedStateFromProps",value:function(f,b){var j=f.keys,g=b.keyEntities,N=un(j),$=Cn(g,N);return{keyEntities:$.filter(function(ce){var he=g.find(function(Ie){var at=Ie.key;return ce.key===at});return!(he&&he.status===Rt&&ce.status===Mn)})}}}]),l}(o.Component);return M.defaultProps={component:"div"},M}var Gn=Xn(kt),pa=Rn;function ya(s){var E=s.prefixCls,M=s.motion,m=s.animation,t=s.transitionName;return M||(m?{motionName:"".concat(E,"-").concat(m)}:t?{motionName:t}:null)}function Za(s){var E=s.prefixCls,M=s.visible,m=s.zIndex,t=s.mask,l=s.maskMotion,n=s.maskAnimation,f=s.maskTransitionName;if(!t)return null;var b={};return(l||f||n)&&(b=Object(P.a)({motionAppear:!0},ya({motion:l,prefixCls:E,transitionName:f,animation:n}))),o.createElement(pa,Object(H.a)({},b,{visible:M,removeOnLeave:!0}),function(j){var g=j.className;return o.createElement("div",{style:{zIndex:m},className:I()("".concat(E,"-mask"),g)})})}var Ha=a("9mu1"),qa=a("o0o1"),io=a.n(qa),eo=a("HaE+"),Ia=["measure","align",null,"motion"],Fn=function(s,E){var M=Object(o.useState)(null),m=Object(R.a)(M,2),t=m[0],l=m[1],n=Object(o.useRef)(),f=Object(o.useRef)(!1);function b(N){f.current||l(N)}function j(){pn.a.cancel(n.current)}function g(N){j(),n.current=Object(pn.a)(function(){b(function($){switch(t){case"align":return"motion";case"motion":return"stable";default:}return $}),N==null||N()})}return Object(o.useEffect)(function(){b("measure")},[s]),Object(o.useEffect)(function(){switch(t){case"measure":E();break;default:}t&&(n.current=Object(pn.a)(Object(eo.a)(io.a.mark(function N(){var $,ce;return io.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:$=Ia.indexOf(t),ce=Ia[$+1],ce&&$!==-1&&b(ce);case 3:case"end":return Ie.stop()}},N)}))))},[t]),Object(o.useEffect)(function(){return function(){f.current=!0,j()}},[]),[t,g]},to=function(s){var E=o.useState({width:0,height:0}),M=Object(R.a)(E,2),m=M[0],t=M[1];function l(f){t({width:f.offsetWidth,height:f.offsetHeight})}var n=o.useMemo(function(){var f={};if(s){var b=m.width,j=m.height;s.indexOf("height")!==-1&&j?f.height=j:s.indexOf("minHeight")!==-1&&j&&(f.minHeight=j),s.indexOf("width")!==-1&&b?f.width=b:s.indexOf("minWidth")!==-1&&b&&(f.minWidth=b)}return f},[s,m]);return[n,l]},Ua=o.forwardRef(function(s,E){var M=s.visible,m=s.prefixCls,t=s.className,l=s.style,n=s.children,f=s.zIndex,b=s.stretch,j=s.destroyPopupOnHide,g=s.forceRender,N=s.align,$=s.point,ce=s.getRootDomNode,he=s.getClassNameFromAlign,Ie=s.onAlign,at=s.onMouseEnter,xt=s.onMouseLeave,Et=s.onMouseDown,Bt=s.onTouchStart,zt=Object(o.useRef)(),At=Object(o.useRef)(),Vt=Object(o.useState)(),qt=Object(R.a)(Vt,2),Ct=qt[0],mn=qt[1],wt=to(b),Ce=Object(R.a)(wt,2),ze=Ce[0],It=Ce[1];function an(){b&&It(ce())}var ut=Fn(M,an),cn=Object(R.a)(ut,2),Sn=cn[0],on=cn[1],bn=Object(o.useRef)();function wn(){return $||ce}function yn(){var Zn;(Zn=zt.current)===null||Zn===void 0||Zn.forceAlign()}function gn(Zn,ua){var Yn=he(ua);Ct!==Yn&&mn(Yn),Sn==="align"&&(Ct!==Yn?Promise.resolve().then(function(){yn()}):on(function(){var ea;(ea=bn.current)===null||ea===void 0||ea.call(bn)}),Ie==null||Ie(Zn,ua))}var St=Object(P.a)({},ya(s));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Zn){var ua=St[Zn];St[Zn]=function(Yn,ea){return on(),ua==null?void 0:ua(Yn,ea)}});function Jn(){return new Promise(function(Zn){bn.current=Zn})}o.useEffect(function(){!St.motionName&&Sn==="motion"&&on()},[St.motionName,Sn]),o.useImperativeHandle(E,function(){return{forceAlign:yn,getElement:function(){return At.current}}});var wa=Object(P.a)(Object(P.a)({},ze),{},{zIndex:f,opacity:Sn==="motion"||Sn==="stable"||!M?void 0:0,pointerEvents:Sn==="stable"?void 0:"none"},l),Ea=!0;(N==null?void 0:N.points)&&(Sn==="align"||Sn==="stable")&&(Ea=!1);var Ta=n;return o.Children.count(n)>1&&(Ta=o.createElement("div",{className:"".concat(m,"-content")},n)),o.createElement(pa,Object(H.a)({visible:M,ref:At,leavedClassName:"".concat(m,"-hidden")},St,{onAppearPrepare:Jn,onEnterPrepare:Jn,removeOnLeave:j,forceRender:g}),function(Zn,ua){var Yn=Zn.className,ea=Zn.style,Sa=I()(m,t,Ct,Yn);return o.createElement(Ha.a,{target:wn(),key:"popup",ref:zt,monitorWindowResize:!0,disabled:Ea,align:N,onAlign:gn},o.createElement("div",{ref:ua,className:Sa,onMouseEnter:at,onMouseLeave:xt,onMouseDownCapture:Et,onTouchStartCapture:Bt,style:Object(P.a)(Object(P.a)({},ea),wa)},Ta))})});Ua.displayName="PopupInner";var no=Ua,Na=o.forwardRef(function(s,E){var M=s.prefixCls,m=s.visible,t=s.zIndex,l=s.children,n=s.mobile;n=n===void 0?{}:n;var f=n.popupClassName,b=n.popupStyle,j=n.popupMotion,g=j===void 0?{}:j,N=n.popupRender,$=o.useRef();o.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return $.current}}});var ce=Object(P.a)({zIndex:t},b),he=l;return o.Children.count(l)>1&&(he=o.createElement("div",{className:"".concat(M,"-content")},l)),N&&(he=N(he)),o.createElement(pa,Object(H.a)({visible:m,ref:$,removeOnLeave:!0},g),function(Ie,at){var xt=Ie.className,Et=Ie.style,Bt=I()(M,f,xt);return o.createElement("div",{ref:at,className:Bt,style:Object(P.a)(Object(P.a)({},Et),ce)},he)})});Na.displayName="MobilePopupInner";var To=Na,go=["visible","mobile"],lo=o.forwardRef(function(s,E){var M=s.visible,m=s.mobile,t=Object(Ke.a)(s,go),l=Object(o.useState)(M),n=Object(R.a)(l,2),f=n[0],b=n[1],j=Object(o.useState)(!1),g=Object(R.a)(j,2),N=g[0],$=g[1],ce=Object(P.a)(Object(P.a)({},t),{},{visible:f});Object(o.useEffect)(function(){b(M),M&&m&&$($e())},[M,m]);var he=N?o.createElement(To,Object(H.a)({},ce,{mobile:m,ref:E})):o.createElement(no,Object(H.a)({},ce,{ref:E}));return o.createElement("div",null,o.createElement(Za,ce),he)});lo.displayName="Popup";var So=lo,No=o.createContext(null),so=No;function Xa(){}function Eo(){return""}function Ro(s){return s?s.ownerDocument:window.document}var Co=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Po(s){var E=function(M){Object(h.a)(t,M);var m=Object(c.a)(t);function t(l){var n;Object(z.a)(this,t),n=m.call(this,l),n.popupRef=o.createRef(),n.triggerRef=o.createRef(),n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(b){var j=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",b),n.delaySetPopupVisible(!0,j,j?null:b)},n.onMouseMove=function(b){n.fireEvents("onMouseMove",b),n.setPoint(b)},n.onMouseLeave=function(b){n.fireEvents("onMouseLeave",b),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(b){var j;if(b.relatedTarget&&!b.relatedTarget.setTimeout&&Object(Dn.a)((j=n.popupRef.current)===null||j===void 0?void 0:j.getElement(),b.relatedTarget))return;n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(b){n.fireEvents("onFocus",b),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(b){n.fireEvents("onMouseDown",b),n.preClickTime=Date.now()},n.onTouchStart=function(b){n.fireEvents("onTouchStart",b),n.preTouchTime=Date.now()},n.onBlur=function(b){n.fireEvents("onBlur",b),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(b){b.preventDefault(),n.fireEvents("onContextMenu",b),n.setPopupVisible(!0,b)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(b){if(n.fireEvents("onClick",b),n.focusTime){var j;if(n.preClickTime&&n.preTouchTime?j=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?j=n.preClickTime:n.preTouchTime&&(j=n.preTouchTime),Math.abs(j-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&b&&b.preventDefault&&b.preventDefault();var g=!n.state.popupVisible;(n.isClickToHide()&&!g||g&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,b)},n.onPopupMouseDown=function(){if(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout(function(){n.hasPopupMouseDown=!1},0),n.context){var b;(b=n.context).onPopupMouseDown.apply(b,arguments)}},n.onDocumentClick=function(b){if(n.props.mask&&!n.props.maskClosable)return;var j=b.target,g=n.getRootDomNode(),N=n.getPopupDomNode();(!Object(Dn.a)(g,j)||n.isContextMenuOnly())&&!Object(Dn.a)(N,j)&&!n.hasPopupMouseDown&&n.close()},n.getRootDomNode=function(){var b=n.props.getTriggerDOMNode;if(b)return b(n.triggerRef.current);try{var j=Object(sa.a)(n.triggerRef.current);if(j)return j}catch(g){}return In.a.findDOMNode(Object(r.a)(n))},n.getPopupClassNameFromAlign=function(b){var j=[],g=n.props,N=g.popupPlacement,$=g.builtinPlacements,ce=g.prefixCls,he=g.alignPoint,Ie=g.getPopupClassNameFromAlign;return N&&$&&j.push(qe($,ce,b,he)),Ie&&j.push(Ie(b)),j.join(" ")},n.getComponent=function(){var b=n.props,j=b.prefixCls,g=b.destroyPopupOnHide,N=b.popupClassName,$=b.onPopupAlign,ce=b.popupMotion,he=b.popupAnimation,Ie=b.popupTransitionName,at=b.popupStyle,xt=b.mask,Et=b.maskAnimation,Bt=b.maskTransitionName,zt=b.maskMotion,At=b.zIndex,Vt=b.popup,qt=b.stretch,Ct=b.alignPoint,mn=b.mobile,wt=b.forceRender,Ce=n.state,ze=Ce.popupVisible,It=Ce.point,an=n.getPopupAlign(),ut={};return n.isMouseEnterToShow()&&(ut.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(ut.onMouseLeave=n.onPopupMouseLeave),ut.onMouseDown=n.onPopupMouseDown,ut.onTouchStart=n.onPopupMouseDown,o.createElement(So,Object(H.a)({prefixCls:j,destroyPopupOnHide:g,visible:ze,point:Ct&&It,className:N,align:an,onAlign:$,animation:he,getClassNameFromAlign:n.getPopupClassNameFromAlign},ut,{stretch:qt,getRootDomNode:n.getRootDomNode,style:at,mask:xt,zIndex:At,transitionName:Ie,maskAnimation:Et,maskTransitionName:Bt,maskMotion:zt,ref:n.popupRef,motion:ce,mobile:mn,forceRender:wt}),typeof Vt=="function"?Vt():Vt)},n.attachParent=function(b){pn.a.cancel(n.attachId);var j=n.props,g=j.getPopupContainer,N=j.getDocument,$=n.getRootDomNode(),ce;g?($||g.length===0)&&(ce=g($)):ce=N(n.getRootDomNode()).body,ce?ce.appendChild(b):n.attachId=Object(pn.a)(function(){n.attachParent(b)})},n.getContainer=function(){var b=n.props.getDocument,j=b(n.getRootDomNode()).createElement("div");return j.style.position="absolute",j.style.top="0",j.style.left="0",j.style.width="100%",n.attachParent(j),j},n.setPoint=function(b){var j=n.props.alignPoint;if(!j||!b)return;n.setState({point:{pageX:b.pageX,pageY:b.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown};var f;return"popupVisible"in l?f=!!l.popupVisible:f=!!l.defaultPopupVisible,n.state={prevPopupVisible:f,popupVisible:f},Co.forEach(function(b){n["fire".concat(b)]=function(j){n.fireEvents(b,j)}}),n}return Object(K.a)(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var n=this.props,f=this.state;if(f.popupVisible){var b;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(b=n.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Re.a)(b,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(b=b||n.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Re.a)(b,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(b=b||n.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Re.a)(b,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Re.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),pn.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var n;return((n=this.popupRef.current)===null||n===void 0?void 0:n.getElement())||null}},{key:"getPopupAlign",value:function(){var n=this.props,f=n.popupPlacement,b=n.popupAlign,j=n.builtinPlacements;return f&&j?it(j,f,b):b}},{key:"setPopupVisible",value:function(n,f){var b=this.props.alignPoint,j=this.state.popupVisible;this.clearDelayTimer(),j!==n&&("popupVisible"in this.props||this.setState({popupVisible:n,prevPopupVisible:j}),this.props.onPopupVisibleChange(n)),b&&f&&n&&this.setPoint(f)}},{key:"delaySetPopupVisible",value:function(n,f,b){var j=this,g=f*1e3;if(this.clearDelayTimer(),g){var N=b?{pageX:b.pageX,pageY:b.pageY}:null;this.delayTimer=window.setTimeout(function(){j.setPopupVisible(n,N),j.clearDelayTimer()},g)}else this.setPopupVisible(n,b)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(n){var f=this.props.children.props,b=this.props;return f[n]&&b[n]?this["fire".concat(n)]:f[n]||b[n]}},{key:"isClickToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("click")!==-1||b.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var n=this.props.action;return n==="contextMenu"||n.length===1&&n[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("contextMenu")!==-1||b.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var n=this.props,f=n.action,b=n.hideAction;return f.indexOf("click")!==-1||b.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("hover")!==-1||b.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var n=this.props,f=n.action,b=n.hideAction;return f.indexOf("hover")!==-1||b.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var n=this.props,f=n.action,b=n.showAction;return f.indexOf("focus")!==-1||b.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var n=this.props,f=n.action,b=n.hideAction;return f.indexOf("focus")!==-1||b.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var n;(n=this.popupRef.current)===null||n===void 0||n.forceAlign()}}},{key:"fireEvents",value:function(n,f){var b=this.props.children.props[n];b&&b(f);var j=this.props[n];j&&j(f)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,f=this.props,b=f.children,j=f.forceRender,g=f.alignPoint,N=f.className,$=f.autoDestroy,ce=o.Children.only(b),he={key:"trigger"};this.isContextMenuToShow()?he.onContextMenu=this.onContextMenu:he.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(he.onClick=this.onClick,he.onMouseDown=this.onMouseDown,he.onTouchStart=this.onTouchStart):(he.onClick=this.createTwoChains("onClick"),he.onMouseDown=this.createTwoChains("onMouseDown"),he.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(he.onMouseEnter=this.onMouseEnter,g&&(he.onMouseMove=this.onMouseMove)):he.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?he.onMouseLeave=this.onMouseLeave:he.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(he.onFocus=this.onFocus,he.onBlur=this.onBlur):(he.onFocus=this.createTwoChains("onFocus"),he.onBlur=this.createTwoChains("onBlur"));var Ie=I()(ce&&ce.props&&ce.props.className,N);Ie&&(he.className=Ie);var at=Object(P.a)({},he);Object(U.c)(ce)&&(at.ref=Object(U.a)(this.triggerRef,ce.ref));var xt=o.cloneElement(ce,at),Et;return(n||this.popupRef.current||j)&&(Et=o.createElement(s,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&$&&(Et=null),o.createElement(so.Provider,{value:this.triggerContextValue},xt,Et)}}],[{key:"getDerivedStateFromProps",value:function(n,f){var b=n.popupVisible,j={};return b!==void 0&&f.popupVisible!==b&&(j.popupVisible=b,j.prevPopupVisible=f.popupVisible),j}}]),t}(o.Component);return E.contextType=so,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Eo,getDocument:Ro,onPopupVisibleChange:Xa,afterPopupVisibleChange:Xa,onPopupAlign:Xa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var Go=Po(_e.a),e={adjustX:1,adjustY:1},v={topLeft:{points:["bl","tl"],overflow:e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0]}},x={topLeft:{points:["bl","tl"],overflow:e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:e,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:e,offset:[4,0]}},O=v,W=0,S={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},X=function(E,M,m){var t=Yt(M),l=E.getState();E.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},l.defaultActiveFirst),{},Object(D.a)({},t,m))})},de=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(m){var t;Object(z.a)(this,M),t=E.call(this,m),t.onDestroy=function(g){t.props.onDestroy(g)},t.onKeyDown=function(g){var N=g.keyCode,$=t.menuInstance,ce=t.props.store,he=t.getVisible();if(N===p.a.ENTER)return t.onTitleClick(g),X(ce,t.props.eventKey,!0),!0;if(N===p.a.RIGHT)return he?$.onKeyDown(g):(t.triggerOpenChange(!0),X(ce,t.props.eventKey,!0)),!0;if(N===p.a.LEFT){var Ie;if(he)Ie=$.onKeyDown(g);else return;return Ie||(t.triggerOpenChange(!1),Ie=!0),Ie}return he&&(N===p.a.UP||N===p.a.DOWN)?$.onKeyDown(g):void 0},t.onOpenChange=function(g){t.props.onOpenChange(g)},t.onPopupVisibleChange=function(g){t.triggerOpenChange(g,g?"mouseenter":"mouseleave")},t.onMouseEnter=function(g){var N=t.props,$=N.eventKey,ce=N.onMouseEnter,he=N.store;X(he,t.props.eventKey,!1),ce({key:$,domEvent:g})},t.onMouseLeave=function(g){var N=t.props,$=N.parentMenu,ce=N.eventKey,he=N.onMouseLeave;$.subMenuInstance=Object(r.a)(t),he({key:ce,domEvent:g})},t.onTitleMouseEnter=function(g){var N=t.props,$=N.eventKey,ce=N.onItemHover,he=N.onTitleMouseEnter;ce({key:$,hover:!0}),he({key:$,domEvent:g})},t.onTitleMouseLeave=function(g){var N=t.props,$=N.parentMenu,ce=N.eventKey,he=N.onItemHover,Ie=N.onTitleMouseLeave;$.subMenuInstance=Object(r.a)(t),he({key:ce,hover:!1}),Ie({key:ce,domEvent:g})},t.onTitleClick=function(g){var N=Object(r.a)(t),$=N.props;if($.onTitleClick({key:$.eventKey,domEvent:g}),$.triggerSubMenuAction==="hover")return;t.triggerOpenChange(!t.getVisible(),"click"),X($.store,t.props.eventKey,!1)},t.onSubMenuClick=function(g){typeof t.props.onClick=="function"&&t.props.onClick(t.addKeyPath(g))},t.onSelect=function(g){t.props.onSelect(g)},t.onDeselect=function(g){t.props.onDeselect(g)},t.getPrefixCls=function(){return"".concat(t.props.rootPrefixCls,"-submenu")},t.getActiveClassName=function(){return"".concat(t.getPrefixCls(),"-active")},t.getDisabledClassName=function(){return"".concat(t.getPrefixCls(),"-disabled")},t.getSelectedClassName=function(){return"".concat(t.getPrefixCls(),"-selected")},t.getOpenClassName=function(){return"".concat(t.props.rootPrefixCls,"-submenu-open")},t.getVisible=function(){return t.state.isOpen},t.getMode=function(){return t.state.mode},t.saveMenuInstance=function(g){t.menuInstance=g},t.addKeyPath=function(g){return Object(P.a)(Object(P.a)({},g),{},{keyPath:(g.keyPath||[]).concat(t.props.eventKey)})},t.triggerOpenChange=function(g,N){var $=t.props.eventKey,ce=function(){t.onOpenChange({key:$,item:Object(r.a)(t),trigger:N,open:g})};N==="mouseenter"?t.mouseenterTimeout=setTimeout(function(){ce()},0):ce()},t.isChildrenSelected=function(){var g={find:!1};return fn(t.props.children,t.props.selectedKeys,g),g.find},t.isInlineMode=function(){return t.getMode()==="inline"},t.adjustWidth=function(){if(!t.subMenuTitle||!t.menuInstance)return;var g=Ln.findDOMNode(t.menuInstance);if(g.offsetWidth>=t.subMenuTitle.offsetWidth)return;g.style.minWidth="".concat(t.subMenuTitle.offsetWidth,"px")},t.saveSubMenuTitle=function(g){t.subMenuTitle=g},t.getBaseProps=function(){var g=Object(r.a)(t),N=g.props,$=t.getMode();return{mode:$==="horizontal"?"vertical":$,visible:t.getVisible(),level:N.level+1,inlineIndent:N.inlineIndent,focusable:!1,onClick:t.onSubMenuClick,onSelect:t.onSelect,onDeselect:t.onDeselect,onDestroy:t.onDestroy,selectedKeys:N.selectedKeys,eventKey:"".concat(N.eventKey,"-menu-"),openKeys:N.openKeys,motion:N.motion,onOpenChange:t.onOpenChange,subMenuOpenDelay:N.subMenuOpenDelay,parentMenu:Object(r.a)(t),subMenuCloseDelay:N.subMenuCloseDelay,forceSubMenuRender:N.forceSubMenuRender,triggerSubMenuAction:N.triggerSubMenuAction,builtinPlacements:N.builtinPlacements,defaultActiveFirst:N.store.getState().defaultActiveFirst[Yt(N.eventKey)],multiple:N.multiple,prefixCls:N.rootPrefixCls,id:t.internalMenuId,manualRef:t.saveMenuInstance,itemIcon:N.itemIcon,expandIcon:N.expandIcon,direction:N.direction}},t.getMotion=function(g,N){var $=Object(r.a)(t),ce=$.haveRendered,he=t.props,Ie=he.motion,at=he.rootPrefixCls,xt=Object(P.a)(Object(P.a)({},Ie),{},{leavedClassName:"".concat(at,"-hidden"),removeOnLeave:!1,motionAppear:ce||!N||g!=="inline"});return xt};var l=m.store,n=m.eventKey,f=l.getState(),b=f.defaultActiveFirst;t.isRootMenu=!1;var j=!1;return b&&(j=b[n]),X(l,n,j),t.state={mode:m.mode,isOpen:m.isOpen},t}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this,l=this.props,n=l.mode,f=l.parentMenu,b=l.manualRef,j=l.isOpen,g=function(){t.setState({mode:n,isOpen:j})},N=j!==this.state.isOpen,$=n!==this.state.mode;if(($||N)&&(pn.a.cancel(this.updateStateRaf),$?this.updateStateRaf=Object(pn.a)(g):g()),b&&b(this),n!=="horizontal"||!(f==null?void 0:f.isRootMenu)||!j)return;this.minWidthTimeout=setTimeout(function(){return t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var t=this.props,l=t.onDestroy,n=t.eventKey;l&&l(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),pn.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(t,l){var n=this.getBaseProps();return o.createElement(ft,Object(H.a)({},n,{id:this.internalMenuId,className:t,style:l}),this.props.children)}},{key:"renderChildren",value:function(){var t=this,l=this.getBaseProps(),n=l.mode,f=l.visible,b=l.forceSubMenuRender,j=l.direction,g=this.getMotion(n,f);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||f||b,!this.haveOpened)return o.createElement("div",null);var N=I()("".concat(l.prefixCls,"-sub"),Object(D.a)({},"".concat(l.prefixCls,"-rtl"),j==="rtl"));return this.isInlineMode()?o.createElement(pa,Object(H.a)({visible:l.visible,forceRender:b},g),function($){var ce=$.className,he=$.style,Ie=I()(N,ce);return t.renderPopupMenu(Ie,he)}):this.renderPopupMenu(N)}},{key:"render",value:function(){var t,l,n,f=Object(P.a)({},this.props),b=this.getVisible(),j=this.getPrefixCls(),g=this.isInlineMode(),N=this.getMode(),$=I()(j,"".concat(j,"-").concat(N),(t={},Object(D.a)(t,f.className,!!f.className),Object(D.a)(t,this.getOpenClassName(),b),Object(D.a)(t,this.getActiveClassName(),f.active||b&&!g),Object(D.a)(t,this.getDisabledClassName(),f.disabled),Object(D.a)(t,this.getSelectedClassName(),this.isChildrenSelected()),t));this.internalMenuId||(f.eventKey?this.internalMenuId="".concat(f.eventKey,"$Menu"):(W+=1,this.internalMenuId="$__$".concat(W,"$Menu")));var ce={},he={},Ie={};f.disabled||(ce={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},he={onClick:this.onTitleClick},Ie={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var at={},xt=f.direction,Et=xt==="rtl";g&&(Et?at.paddingRight=f.inlineIndent*f.level:at.paddingLeft=f.inlineIndent*f.level);var Bt={};this.getVisible()&&(Bt={"aria-owns":this.internalMenuId});var zt=null;N!=="horizontal"&&(zt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(zt=o.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var At=o.createElement("div",Object(H.a)({ref:this.saveSubMenuTitle,style:at,className:"".concat(j,"-title"),role:"button"},Ie,he,{"aria-expanded":b},Bt,{"aria-haspopup":"true",title:typeof f.title=="string"?f.title:void 0}),f.title,zt||o.createElement("i",{className:"".concat(j,"-arrow")})),Vt=this.renderChildren(),qt=((l=f.parentMenu)===null||l===void 0?void 0:l.isRootMenu)?f.parentMenu.props.getPopupContainer:function(wn){return wn.parentNode},Ct=S[N],mn=f.popupOffset?{offset:f.popupOffset}:{},wt=I()((n={},Object(D.a)(n,f.popupClassName,f.popupClassName&&!g),Object(D.a)(n,"".concat(j,"-rtl"),Et),n)),Ce=f.disabled,ze=f.triggerSubMenuAction,It=f.subMenuOpenDelay,an=f.forceSubMenuRender,ut=f.subMenuCloseDelay,cn=f.builtinPlacements;En.forEach(function(wn){return delete f[wn]}),delete f.onClick;var Sn=Et?Object(P.a)(Object(P.a)({},x),cn):Object(P.a)(Object(P.a)({},v),cn);delete f.direction;var on=this.getBaseProps(),bn=g?null:this.getMotion(on.mode,on.visible);return o.createElement("li",Object(H.a)({},f,ce,{className:$,role:"menuitem"}),o.createElement(Go,{prefixCls:j,popupClassName:I()("".concat(j,"-popup"),wt),getPopupContainer:qt,builtinPlacements:Sn,popupPlacement:Ct,popupVisible:g?!1:b,popupAlign:mn,popup:g?null:Vt,action:Ce||g?[]:[ze],mouseEnterDelay:It,mouseLeaveDelay:ut,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:an,popupMotion:bn},At),g?Vt:null)}}]),M}(o.Component);de.defaultProps={onMouseEnter:Fe,onMouseLeave:Fe,onTitleMouseEnter:Fe,onTitleMouseLeave:Fe,onTitleClick:Fe,manualRef:Fe,mode:"vertical",title:""};var be=Object(L.b)(function(s,E){var M=s.openKeys,m=s.activeKey,t=s.selectedKeys,l=E.eventKey,n=E.subMenuKey;return{isOpen:M.indexOf(l)>-1,active:m[n]===l,selectedKeys:t}})(de);be.isSubMenu=!0;var ge=be,ke="menuitem-overflowed",Ae=.5,ee=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){var m;return Object(z.a)(this,M),m=E.apply(this,arguments),m.resizeObserver=null,m.mutationObserver=null,m.originalTotalWidth=0,m.overflowedItems=[],m.menuItemSizes=[],m.cancelFrameId=null,m.state={lastVisibleIndex:void 0},m.childRef=o.createRef(),m.getMenuItemNodes=function(){var t=m.props.prefixCls,l=m.childRef.current;return l?[].slice.call(l.children).filter(function(n){return n.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0}):[]},m.getOverflowedSubMenuItem=function(t,l,n){var f=m.props,b=f.overflowedIndicator,j=f.level,g=f.mode,N=f.prefixCls,$=f.theme;if(j!==1||g!=="horizontal")return null;var ce=m.props.children[0],he=ce.props,Ie=he.children,at=he.title,xt=he.style,Et=Object(Ke.a)(he,["children","title","style"]),Bt=Object(P.a)({},xt),zt="".concat(t,"-overflowed-indicator"),At="".concat(t,"-overflowed-indicator");l.length===0&&n!==!0?Bt=Object(P.a)(Object(P.a)({},Bt),{},{display:"none"}):n&&(Bt=Object(P.a)(Object(P.a)({},Bt),{},{visibility:"hidden",position:"absolute"}),zt="".concat(zt,"-placeholder"),At="".concat(At,"-placeholder"));var Vt=$?"".concat(N,"-").concat($):"",qt={};return En.forEach(function(Ct){Et[Ct]!==void 0&&(qt[Ct]=Et[Ct])}),o.createElement(ge,Object(H.a)({title:b,className:"".concat(N,"-overflowed-submenu"),popupClassName:Vt},qt,{key:zt,eventKey:At,disabled:!1,style:Bt}),l)},m.setChildrenWidthAndResize=function(){if(m.props.mode!=="horizontal")return;var t=m.childRef.current;if(!t)return;var l=t.children;if(!l||l.length===0)return;var n=t.children[l.length-1];Pt(n,"display","inline-block");var f=m.getMenuItemNodes(),b=f.filter(function(j){return j.className.split(" ").indexOf(ke)>=0});b.forEach(function(j){Pt(j,"display","inline-block")}),m.menuItemSizes=f.map(function(j){return Jt(j,!0)}),b.forEach(function(j){Pt(j,"display","none")}),m.overflowedIndicatorWidth=Jt(t.children[t.children.length-1],!0),m.originalTotalWidth=m.menuItemSizes.reduce(function(j,g){return j+g},0),m.handleResize(),Pt(n,"display","none")},m.handleResize=function(){if(m.props.mode!=="horizontal")return;var t=m.childRef.current;if(!t)return;var l=Jt(t);m.overflowedItems=[];var n=0,f;m.originalTotalWidth>l+Ae&&(f=-1,m.menuItemSizes.forEach(function(b){n+=b,n+m.overflowedIndicatorWidth<=l&&(f+=1)})),m.setState({lastVisibleIndex:f})},m}return Object(K.a)(M,[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var l=this.childRef.current;if(!l)return;this.resizeObserver=new hn.default(function(n){n.forEach(function(){var f=t.cancelFrameId;cancelAnimationFrame(f),t.cancelFrameId=requestAnimationFrame(t.setChildrenWidthAndResize)})}),[].slice.call(l.children).concat(l).forEach(function(n){t.resizeObserver.observe(n)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){t.resizeObserver.disconnect(),[].slice.call(l.children).concat(l).forEach(function(n){t.resizeObserver.observe(n)}),t.setChildrenWidthAndResize()}),this.mutationObserver.observe(l,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(t){var l=this,n=this.state.lastVisibleIndex;return(t||[]).reduce(function(f,b,j){var g=b;if(l.props.mode==="horizontal"){var N=l.getOverflowedSubMenuItem(b.props.eventKey,[]);n!==void 0&&l.props.className.indexOf("".concat(l.props.prefixCls,"-root"))!==-1&&(j>n&&(g=o.cloneElement(b,{style:{display:"none"},eventKey:"".concat(b.props.eventKey,"-hidden"),className:"".concat(ke)})),j===n+1&&(l.overflowedItems=t.slice(n+1).map(function(ce){return o.cloneElement(ce,{key:ce.props.eventKey,mode:"vertical-left"})}),N=l.getOverflowedSubMenuItem(b.props.eventKey,l.overflowedItems)));var $=[].concat(Object(xe.a)(f),[N,g]);return j===t.length-1&&$.push(l.getOverflowedSubMenuItem(b.props.eventKey,[],!0)),$}return[].concat(Object(xe.a)(f),[g])},[])}},{key:"render",value:function(){var t=this.props,l=t.visible,n=t.prefixCls,f=t.overflowedIndicator,b=t.mode,j=t.level,g=t.tag,N=t.children,$=t.theme,ce=Object(Ke.a)(t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),he=g;return o.createElement(he,Object(H.a)({ref:this.childRef},ce),this.renderChildren(N))}}]),M}(o.Component);ee.defaultProps={tag:"div",className:""};var ye=ee;function me(s){return s.length?s.every(function(E){return!!E.props.disabled}):!0}function we(s,E,M){var m=s.getState();s.setState({activeKey:Object(P.a)(Object(P.a)({},m.activeKey),{},Object(D.a)({},E,M))})}function Ee(s){return s.eventKey||"0-menu-"}function Qe(s,E){var M=E,m=s.children,t=s.eventKey;if(M){var l;if(Lt(m,function(n,f){n&&n.props&&!n.props.disabled&&M===yt(n,t,f)&&(l=!0)}),l)return M}return M=null,s.defaultActiveFirst&&Lt(m,function(n,f){!M&&n&&!n.props.disabled&&(M=yt(n,t,f))}),M}function nt(s){if(!s)return;var E=this.instanceArray.indexOf(s);E!==-1?this.instanceArray[E]=s:this.instanceArray.push(s)}var Dt=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(m){var t;return Object(z.a)(this,M),t=E.call(this,m),t.onKeyDown=function(l,n){var f=l.keyCode,b;if(t.getFlatInstanceArray().forEach(function(g){g&&g.props.active&&g.onKeyDown&&(b=g.onKeyDown(l))}),b)return 1;var j=null;return(f===p.a.UP||f===p.a.DOWN)&&(j=t.step(f===p.a.UP?-1:1)),j?(l.preventDefault(),we(t.props.store,Ee(t.props),j.props.eventKey),typeof n=="function"&&n(j),1):void 0},t.onItemHover=function(l){var n=l.key,f=l.hover;we(t.props.store,Ee(t.props),f?n:null)},t.onDeselect=function(l){t.props.onDeselect(l)},t.onSelect=function(l){t.props.onSelect(l)},t.onClick=function(l){t.props.onClick(l)},t.onOpenChange=function(l){t.props.onOpenChange(l)},t.onDestroy=function(l){t.props.onDestroy(l)},t.getFlatInstanceArray=function(){return t.instanceArray},t.step=function(l){var n=t.getFlatInstanceArray(),f=t.props.store.getState().activeKey[Ee(t.props)],b=n.length;if(!b)return null;l<0&&(n=n.concat().reverse());var j=-1;if(n.every(function(ce,he){return ce&&ce.props.eventKey===f?(j=he,!1):!0}),!t.props.defaultActiveFirst&&j!==-1&&me(n.slice(j,b-1)))return;var g=(j+1)%b,N=g;do{var $=n[N];if(!$||$.props.disabled)N=(N+1)%b;else return $}while(N!==g);return null},t.renderCommonMenuItem=function(l,n,f){var b=t.props.store.getState(),j=Object(r.a)(t),g=j.props,N=yt(l,g.eventKey,n),$=l.props;if(!$||typeof l.type=="string")return l;var ce=N===b.activeKey,he=Object(P.a)(Object(P.a)({mode:$.mode||g.mode,level:g.level,inlineIndent:g.inlineIndent,renderMenuItem:t.renderMenuItem,rootPrefixCls:g.prefixCls,index:n,parentMenu:g.parentMenu,manualRef:$.disabled?void 0:Object(q.a)(l.ref,nt.bind(Object(r.a)(t))),eventKey:N,active:!$.disabled&&ce,multiple:g.multiple,onClick:function(at){($.onClick||Fe)(at),t.onClick(at)},onItemHover:t.onItemHover,motion:g.motion,subMenuOpenDelay:g.subMenuOpenDelay,subMenuCloseDelay:g.subMenuCloseDelay,forceSubMenuRender:g.forceSubMenuRender,onOpenChange:t.onOpenChange,onDeselect:t.onDeselect,onSelect:t.onSelect,builtinPlacements:g.builtinPlacements,itemIcon:$.itemIcon||t.props.itemIcon,expandIcon:$.expandIcon||t.props.expandIcon},f),{},{direction:g.direction});return(g.mode==="inline"||Kt())&&(he.triggerSubMenuAction="click"),o.cloneElement(l,Object(P.a)(Object(P.a)({},he),{},{key:N||n}))},t.renderMenuItem=function(l,n,f){if(!l)return null;var b=t.props.store.getState(),j={openKeys:b.openKeys,selectedKeys:b.selectedKeys,triggerSubMenuAction:t.props.triggerSubMenuAction,subMenuKey:f};return t.renderCommonMenuItem(l,n,j)},m.store.setState({activeKey:Object(P.a)(Object(P.a)({},m.store.getState().activeKey),{},Object(D.a)({},m.eventKey,Qe(m,m.activeKey)))}),t.instanceArray=[],t}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(t){return this.props.visible||t.visible||this.props.className!==t.className||!J()(this.props.style,t.style)}},{key:"componentDidUpdate",value:function(t){var l=this.props,n="activeKey"in l?l.activeKey:l.store.getState().activeKey[Ee(l)],f=Qe(l,n);if(f!==n)we(l.store,Ee(l),f);else if("activeKey"in t){var b=Qe(t,t.activeKey);f!==b&&we(l.store,Ee(l),f)}}},{key:"render",value:function(){var t=this,l=Object(H.a)({},this.props);this.instanceArray=[];var n=I()(l.prefixCls,l.className,"".concat(l.prefixCls,"-").concat(l.mode)),f={className:n,role:l.role||"menu"};l.id&&(f.id=l.id),l.focusable&&(f.tabIndex=0,f.onKeyDown=this.onKeyDown);var b=l.prefixCls,j=l.eventKey,g=l.visible,N=l.level,$=l.mode,ce=l.overflowedIndicator,he=l.theme;return En.forEach(function(Ie){return delete l[Ie]}),delete l.onClick,o.createElement(ye,Object(H.a)({},l,{prefixCls:b,mode:$,tag:"ul",level:N,theme:he,visible:g,overflowedIndicator:ce},f),Object(u.a)(l.children).map(function(Ie,at){return t.renderMenuItem(Ie,at,j||"0-menu-")}))}}]),M}(o.Component);Dt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Fe};var Zt=Object(L.b)()(Dt),ft=Zt,vt=a("Kwbf");function Ut(s,E,M){var m=s.prefixCls,t=s.motion,l=s.defaultMotions,n=l===void 0?{}:l,f=s.openAnimation,b=s.openTransitionName,j=E.switchingModeFromInline;if(t)return t;if(Object(B.a)(f)==="object"&&f)Object(vt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof f=="string")return{motionName:"".concat(m,"-open-").concat(f)};if(b)return{motionName:b};var g=n[M];return g||(j?null:n.other)}var Ft=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(m){var t;Object(z.a)(this,M),t=E.call(this,m),t.onSelect=function(f){var b=Object(r.a)(t),j=b.props;if(j.selectable){var g=t.store.getState(),N=g.selectedKeys,$=f.key;j.multiple?N=N.concat([$]):N=[$],"selectedKeys"in j||t.store.setState({selectedKeys:N}),j.onSelect(Object(P.a)(Object(P.a)({},f),{},{selectedKeys:N}))}},t.onClick=function(f){var b=t.getRealMenuMode(),j=Object(r.a)(t),g=j.store,N=j.props.onOpenChange;b!=="inline"&&!("openKeys"in t.props)&&(g.setState({openKeys:[]}),N([])),t.props.onClick(f)},t.onKeyDown=function(f,b){t.innerMenu.getWrappedInstance().onKeyDown(f,b)},t.onOpenChange=function(f){var b=Object(r.a)(t),j=b.props,g=t.store.getState().openKeys.concat(),N=!1,$=function(he){var Ie=!1;if(he.open)Ie=g.indexOf(he.key)===-1,Ie&&g.push(he.key);else{var at=g.indexOf(he.key);Ie=at!==-1,Ie&&g.splice(at,1)}N=N||Ie};Array.isArray(f)?f.forEach($):$(f),N&&("openKeys"in t.props||t.store.setState({openKeys:g}),j.onOpenChange(g))},t.onDeselect=function(f){var b=Object(r.a)(t),j=b.props;if(j.selectable){var g=t.store.getState().selectedKeys.concat(),N=f.key,$=g.indexOf(N);$!==-1&&g.splice($,1),"selectedKeys"in j||t.store.setState({selectedKeys:g}),j.onDeselect(Object(P.a)(Object(P.a)({},f),{},{selectedKeys:g}))}},t.onMouseEnter=function(f){t.restoreModeVerticalFromInline();var b=t.props.onMouseEnter;b&&b(f)},t.onTransitionEnd=function(f){var b=f.propertyName==="width"&&f.target===f.currentTarget,j=f.target.className,g=Object.prototype.toString.call(j)==="[object SVGAnimatedString]"?j.animVal:j,N=f.propertyName==="font-size"&&g.indexOf("anticon")>=0;(b||N)&&t.restoreModeVerticalFromInline()},t.setInnerMenu=function(f){t.innerMenu=f},t.isRootMenu=!0;var l=m.defaultSelectedKeys,n=m.defaultOpenKeys;return"selectedKeys"in m&&(l=m.selectedKeys||[]),"openKeys"in m&&(n=m.openKeys||[]),t.store=Object(L.c)({selectedKeys:l,openKeys:n,activeKey:{"0-menu-":Qe(m,m.activeKey)}}),t.state={switchingModeFromInline:!1,prevProps:m,inlineOpenKeys:[],store:t.store},t}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(t){var l=this.props,n=l.siderCollapsed,f=l.inlineCollapsed,b=l.onOpenChange;(!t.inlineCollapsed&&f||!t.siderCollapsed&&n)&&b([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var t=this.props.collapsedWidth,l=this.store,n=this.prevOpenKeys,f=this.getInlineCollapsed()&&(t===0||t==="0"||t==="0px");f?(this.prevOpenKeys=l.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var t=this.props.mode,l=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return l&&n?"inline":n?"vertical":t}},{key:"getInlineCollapsed",value:function(){var t=this.props,l=t.inlineCollapsed,n=t.siderCollapsed;return n!==void 0?n:l}},{key:"restoreModeVerticalFromInline",value:function(){var t=this.state.switchingModeFromInline;t&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var t=Object(P.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),l=this.getRealMenuMode();return t.className+=" ".concat(t.prefixCls,"-root"),t.direction==="rtl"&&(t.className+=" ".concat(t.prefixCls,"-rtl")),t=Object(P.a)(Object(P.a)({},t),{},{mode:l,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ut(this.props,this.state,l)}),delete t.openAnimation,delete t.openTransitionName,o.createElement(L.a,{store:this.store},o.createElement(ft,Object(H.a)({},t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(t,l){var n=l.prevProps,f=l.store,b=f.getState(),j={},g={prevProps:t};return n.mode==="inline"&&t.mode!=="inline"&&(g.switchingModeFromInline=!0),"openKeys"in t?j.openKeys=t.openKeys||[]:((t.inlineCollapsed&&!n.inlineCollapsed||t.siderCollapsed&&!n.siderCollapsed)&&(g.switchingModeFromInline=!0,g.inlineOpenKeys=b.openKeys,j.openKeys=[]),(!t.inlineCollapsed&&n.inlineCollapsed||!t.siderCollapsed&&n.siderCollapsed)&&(j.openKeys=l.inlineOpenKeys,g.inlineOpenKeys=[])),Object.keys(j).length&&f.setState(j),g}}]),M}(o.Component);Ft.defaultProps={selectable:!0,onClick:Fe,onSelect:Fe,onOpenChange:Fe,onDeselect:Fe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Vn=Ft,Pn=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){var m;return Object(z.a)(this,M),m=E.apply(this,arguments),m.onKeyDown=function(t){var l=t.keyCode;return l===p.a.ENTER?(m.onClick(t),!0):void 0},m.onMouseLeave=function(t){var l=m.props,n=l.eventKey,f=l.onItemHover,b=l.onMouseLeave;f({key:n,hover:!1}),b({key:n,domEvent:t})},m.onMouseEnter=function(t){var l=m.props,n=l.eventKey,f=l.onItemHover,b=l.onMouseEnter;f({key:n,hover:!0}),b({key:n,domEvent:t})},m.onClick=function(t){var l=m.props,n=l.eventKey,f=l.multiple,b=l.onClick,j=l.onSelect,g=l.onDeselect,N=l.isSelected,$={key:n,keyPath:[n],item:Object(r.a)(m),domEvent:t};b($),f?N?g($):j($):N||j($)},m.saveNode=function(t){m.node=t},m}return Object(K.a)(M,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var t=this.props;t.onDestroy&&t.onDestroy(t.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var t,l=Object(P.a)({},this.props),n=I()(this.getPrefixCls(),l.className,(t={},Object(D.a)(t,this.getActiveClassName(),!l.disabled&&l.active),Object(D.a)(t,this.getSelectedClassName(),l.isSelected),Object(D.a)(t,this.getDisabledClassName(),l.disabled),t)),f=Object(P.a)(Object(P.a)({},l.attribute),{},{title:typeof l.title=="string"?l.title:void 0,className:n,role:l.role||"menuitem","aria-disabled":l.disabled});l.role==="option"?f=Object(P.a)(Object(P.a)({},f),{},{role:"option","aria-selected":l.isSelected}):(l.role===null||l.role==="none")&&(f.role="none");var b={onClick:l.disabled?null:this.onClick,onMouseLeave:l.disabled?null:this.onMouseLeave,onMouseEnter:l.disabled?null:this.onMouseEnter},j=Object(P.a)({},l.style);l.mode==="inline"&&(l.direction==="rtl"?j.paddingRight=l.inlineIndent*l.level:j.paddingLeft=l.inlineIndent*l.level),En.forEach(function(N){return delete l[N]}),delete l.direction;var g=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(g=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(H.a)({},Object(V.a)(l,["onClick","onMouseEnter","onMouseLeave","onSelect"]),f,b,{style:j,ref:this.saveNode}),l.children,g)}}]),M}(o.Component);Pn.isMenuItem=!0,Pn.defaultProps={onSelect:Fe,onMouseEnter:Fe,onMouseLeave:Fe,manualRef:Fe};var ta=Object(L.b)(function(s,E){var M=s.activeKey,m=s.selectedKeys,t=E.eventKey,l=E.subMenuKey;return{active:M[l]===t,isSelected:Array.isArray(m)?m.indexOf(t)!==-1:m===t}})(Pn),_n=ta,$n=function(s){Object(h.a)(M,s);var E=Object(c.a)(M);function M(){var m;return Object(z.a)(this,M),m=E.apply(this,arguments),m.renderInnerMenuItem=function(t){var l=m.props,n=l.renderMenuItem,f=l.index;return n(t,f,m.props.subMenuKey)},m}return Object(K.a)(M,[{key:"render",value:function(){var t=Object(H.a)({},this.props),l=t.className,n=l===void 0?"":l,f=t.rootPrefixCls,b="".concat(f,"-item-group-title"),j="".concat(f,"-item-group-list"),g=t.title,N=t.children;return En.forEach(function($){return delete t[$]}),delete t.direction,o.createElement("li",Object(H.a)({},t,{onClick:function(ce){return ce.stopPropagation()},className:"".concat(n," ").concat(f,"-item-group")}),o.createElement("div",{className:b,title:typeof g=="string"?g:void 0},g),o.createElement("ul",{className:j},o.Children.map(N,this.renderInnerMenuItem)))}}]),M}(o.Component);$n.isMenuItemGroup=!0,$n.defaultProps={disabled:!0};var qn=$n,da=function(E){var M=E.className,m=E.rootPrefixCls,t=E.style;return o.createElement("li",{className:"".concat(M," ").concat(m,"-item-divider"),style:t})};da.defaultProps={disabled:!0,className:"",style:{}};var Oa=da,va=Vn,fa=a("eDIo");function xa(s,E){var M=s.prefixCls,m=s.editable,t=s.locale,l=s.style;return!m||m.showAdd===!1?null:o.createElement("button",{ref:E,type:"button",className:"".concat(M,"-nav-add"),style:l,"aria-label":(t==null?void 0:t.addAriaLabel)||"Add tab",onClick:function(f){m.onEdit("add",{event:f})}},m.addIcon||"+")}var ia=o.forwardRef(xa);function Pa(s,E){var M=s.prefixCls,m=s.id,t=s.tabs,l=s.locale,n=s.mobile,f=s.moreIcon,b=f===void 0?"More":f,j=s.moreTransitionName,g=s.style,N=s.className,$=s.editable,ce=s.tabBarGutter,he=s.rtl,Ie=s.onTabClick,at=Object(o.useState)(!1),xt=Object(R.a)(at,2),Et=xt[0],Bt=xt[1],zt=Object(o.useState)(null),At=Object(R.a)(zt,2),Vt=At[0],qt=At[1],Ct="".concat(m,"-more-popup"),mn="".concat(M,"-dropdown"),wt=Vt!==null?"".concat(Ct,"-").concat(Vt):null,Ce=l==null?void 0:l.dropdownAriaLabel,ze=o.createElement(va,{onClick:function(bn){var wn=bn.key,yn=bn.domEvent;Ie(wn,yn),Bt(!1)},id:Ct,tabIndex:-1,role:"listbox","aria-activedescendant":wt,selectedKeys:[Vt],"aria-label":Ce!==void 0?Ce:"expanded dropdown"},t.map(function(on){return o.createElement(_n,{key:on.key,id:"".concat(Ct,"-").concat(on.key),role:"option","aria-controls":m&&"".concat(m,"-panel-").concat(on.key),disabled:on.disabled},on.tab)}));function It(on){for(var bn=t.filter(function(Jn){return!Jn.disabled}),wn=bn.findIndex(function(Jn){return Jn.key===Vt})||0,yn=bn.length,gn=0;gncn?(an=ze,Ct.current="x"):(an=It,Ct.current="y");var Sn=Date.now();Sn-Vt.current>100&&(qt.current=!1),(E(-an,-an)||qt.current)&&(Ce.preventDefault(),qt.current=!0),Vt.current=Sn}var wt=Object(o.useRef)(null);wt.current={onTouchStart:Bt,onTouchMove:zt,onTouchEnd:At,onWheel:mn},o.useEffect(function(){function Ce(ut){wt.current.onTouchStart(ut)}function ze(ut){wt.current.onTouchMove(ut)}function It(ut){wt.current.onTouchEnd(ut)}function an(ut){wt.current.onWheel(ut)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",It,{passive:!1}),s.current.addEventListener("touchstart",Ce,{passive:!1}),s.current.addEventListener("wheel",an),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",It)}},[])}function na(){var s=Object(o.useRef)(new Map);function E(m){return s.current.has(m)||s.current.set(m,o.createRef()),s.current.get(m)}function M(m){s.current.delete(m)}return[E,M]}function la(s,E){var M=o.useRef(s),m=o.useState({}),t=Object(R.a)(m,2),l=t[1];function n(f){var b=typeof f=="function"?f(M.current):f;b!==M.current&&E(b,M.current),M.current=b,l({})}return[M.current,n]}var aa=function(E){var M=E.position,m=E.prefixCls,t=E.extra;if(!t)return null;var l,n=t;return M==="right"&&(l=n.right||!n.left&&n||null),M==="left"&&(l=n.left||null),l?o.createElement("div",{className:"".concat(m,"-extra-content")},l):null};function Ka(s,E){var M,m=o.useContext(Ma),t=m.prefixCls,l=m.tabs,n=s.className,f=s.style,b=s.id,j=s.animated,g=s.activeKey,N=s.rtl,$=s.extra,ce=s.editable,he=s.locale,Ie=s.tabPosition,at=s.tabBarGutter,xt=s.children,Et=s.onTabClick,Bt=s.onTabScroll,zt=Object(o.useRef)(),At=Object(o.useRef)(),Vt=Object(o.useRef)(),qt=Object(o.useRef)(),Ct=na(),mn=Object(R.a)(Ct,2),wt=mn[0],Ce=mn[1],ze=Ie==="top"||Ie==="bottom",It=la(0,function(xn,rn){ze&&Bt&&Bt({direction:xn>rn?"left":"right"})}),an=Object(R.a)(It,2),ut=an[0],cn=an[1],Sn=la(0,function(xn,rn){!ze&&Bt&&Bt({direction:xn>rn?"top":"bottom"})}),on=Object(R.a)(Sn,2),bn=on[0],wn=on[1],yn=Object(o.useState)(0),gn=Object(R.a)(yn,2),St=gn[0],Jn=gn[1],wa=Object(o.useState)(0),Ea=Object(R.a)(wa,2),Ta=Ea[0],Zn=Ea[1],ua=Object(o.useState)(0),Yn=Object(R.a)(ua,2),ea=Yn[0],Sa=Yn[1],Va=Object(o.useState)(0),Wa=Object(R.a)(Va,2),An=Wa[0],_a=Wa[1],Aa=Object(o.useState)(null),kn=Object(R.a)(Aa,2),On=kn[0],ra=kn[1],yo=Object(o.useState)(null),Qo=Object(R.a)(yo,2),Ya=Qo[0],fr=Qo[1],wo=Object(o.useState)(0),uo=Object(R.a)(wo,2),Jo=uo[0],Zo=uo[1],mr=Object(o.useState)(0),Oo=Object(R.a)(mr,2),xo=Oo[0],qo=Oo[1],er=y(new Map),tr=Object(R.a)(er,2),nr=tr[0],pr=tr[1],co=ie(l,nr,St),ar="".concat(t,"-nav-operations-hidden"),oo=0,La=0;ze?N?(oo=0,La=Math.max(0,St-On)):(oo=Math.min(0,On-St),La=0):(oo=Math.min(0,Ya-Ta),La=0);function Mo(xn){return xnLa?[La,!1]:[xn,!0]}var or=Object(o.useRef)(),_o=Object(o.useState)(),Ao=Object(R.a)(_o,2),Lo=Ao[0],ko=Ao[1];function Uo(){ko(Date.now())}function fo(){window.clearTimeout(or.current)}Qn(zt,function(xn,rn){var Bn=!1;function Ca(po,vo){po(function(ho){var ro=Mo(ho+vo),Ga=Object(R.a)(ro,2),jo=Ga[0],bo=Ga[1];return Bn=bo,jo})}if(ze){if(On>=St)return Bn;Ca(cn,xn)}else{if(Ya>=Ta)return Bn;Ca(wn,rn)}return fo(),Uo(),Bn}),Object(o.useEffect)(function(){return fo(),Lo&&(or.current=window.setTimeout(function(){ko(0)},100)),fo},[Lo]);function Io(){var xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g,rn=co.get(xn);if(!rn)return;if(ze){var Bn=ut;N?rn.rightut+On&&(Bn=rn.right+rn.width-On):rn.left<-ut?Bn=-rn.left:rn.left+rn.width>-ut+On&&(Bn=-(rn.left+rn.width-On)),wn(0),cn(Mo(Bn)[0])}else{var Ca=bn;rn.top<-bn?Ca=-rn.top:rn.top+rn.height>-bn+Ya&&(Ca=-(rn.top+rn.height-Ya)),cn(0),wn(Mo(Ca)[0])}}var vr=Ne(co,{width:On,height:Ya,left:ut,top:bn},{width:ea,height:An},{width:Jo,height:xo},Object(P.a)(Object(P.a)({},s),{},{tabs:l})),Ko=Object(R.a)(vr,2),hr=Ko[0],br=Ko[1],rr=l.map(function(xn){var rn=xn.key;return o.createElement(_,{id:b,prefixCls:t,key:rn,rtl:N,tab:xn,closable:xn.closable,editable:ce,active:rn===g,tabPosition:Ie,tabBarGutter:at,renderWrapper:xt,removeAriaLabel:he==null?void 0:he.removeAriaLabel,ref:wt(rn),onClick:function(Ca){Et(rn,Ca)},onRemove:function(){Ce(rn)},onFocus:function(){Io(rn),Uo(),N||(zt.current.scrollLeft=0),zt.current.scrollTop=0}})}),Fo=k(function(){var xn,rn,Bn,Ca,po,vo,ho,ro,Ga,jo=((xn=zt.current)===null||xn===void 0?void 0:xn.offsetWidth)||0,bo=((rn=zt.current)===null||rn===void 0?void 0:rn.offsetHeight)||0,Do=((Bn=qt.current)===null||Bn===void 0?void 0:Bn.offsetWidth)||0,dr=((Ca=qt.current)===null||Ca===void 0?void 0:Ca.offsetHeight)||0,Cr=((po=Vt.current)===null||po===void 0?void 0:po.offsetWidth)||0,en=((vo=Vt.current)===null||vo===void 0?void 0:vo.offsetHeight)||0;ra(jo),fr(bo),Zo(Do),qo(dr);var ot=(((ho=At.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-Do,Tt=(((ro=At.current)===null||ro===void 0?void 0:ro.offsetHeight)||0)-dr;Jn(ot),Zn(Tt);var nn=(Ga=Vt.current)===null||Ga===void 0?void 0:Ga.className.includes(ar);Sa(ot-(nn?0:Cr)),_a(Tt-(nn?0:en)),pr(function(){var zn=new Map;return l.forEach(function(Qa){var ka=Qa.key,ca=wt(ka).current;ca&&zn.set(ka,{width:ca.offsetWidth,height:ca.offsetHeight,left:ca.offsetLeft,top:ca.offsetTop})}),zn})}),ir=l.slice(0,hr),gr=l.slice(br+1),Vo=[].concat(Object(xe.a)(ir),Object(xe.a)(gr)),lr=Object(o.useState)(),Wo=Object(R.a)(lr,2),Er=Wo[0],sr=Wo[1],Ba=co.get(g),Bo=Object(o.useRef)();function zo(){Q.a.cancel(Bo.current)}Object(o.useEffect)(function(){var xn={};return Ba&&(ze?(N?xn.right=Ba.right:xn.left=Ba.left,xn.width=Ba.width):(xn.top=Ba.top,xn.height=Ba.height)),zo(),Bo.current=Q()(function(){sr(xn)}),zo},[Ba,ze,N]),Object(o.useEffect)(function(){Io()},[g,Ba,co,ze]),Object(o.useEffect)(function(){Fo()},[N,at,g,l.map(function(xn){return xn.key}).join("_")]);var Ho=!!Vo.length,mo="".concat(t,"-nav-wrap"),Xo,$o,ur,cr;return ze?N?($o=ut>0,Xo=ut+On2&&arguments[2]!==void 0?arguments[2]:"0",O=String(e);O.length=12,Vn%=12);var da=u.useMemo(function(){if(!ge)return[!1,!1];var dt=[!0,!0];return qn.forEach(function(gt){var Gt=gt.disabled,jn=gt.value;if(Gt)return;jn>=12?dt[1]=!1:dt[0]=!1}),dt},[ge,qn]),Oa=Object(I.a)(da,2),va=Oa[0],fa=Oa[1],xa=u.useMemo(function(){return ge?qn.filter(Ft?function(dt){return dt.value>=12}:function(dt){return dt.value<12}).map(function(dt){var gt=dt.value%12,Gt=gt===0?"12":lt(gt,2);return Object(C.a)(Object(C.a)({},dt),{},{label:Gt,value:gt})}):qn},[ge,qn]),ia=ve(0,59,ye,Qe&&Qe(Vn)),Pa=ve(0,59,we,nt&&nt(Vn,Pn));O.current={onUpDown:function(gt){var Gt=ft[W];if(Gt)for(var jn=Gt.units.findIndex(function(la){return la.value===Gt.value}),Wn=Gt.units.length,Qn=1;Qn1&&(X=v.addDate(X,-7)),X}function U(e,v,x){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(v){case"year":return x.addYear(e,O*10);case"quarter":case"month":return x.addYear(e,O);default:return x.addMonth(e,O)}}var Re=u.createContext({}),_e=Re;function He(e){var v=e.cellPrefixCls,x=e.generateConfig,O=e.rangedValue,W=e.hoverRangedValue,S=e.isInView,X=e.isSameCell,de=e.offsetCell,be=e.today,ge=e.value;function ke(Ae){var ee,ye=de(Ae,-1),me=de(Ae,1),we=oe(O,0),Ee=oe(O,1),Qe=oe(W,0),nt=oe(W,1),Dt=Dn(x,Qe,nt,Ae);function Zt(Pn){return X(we,Pn)}function ft(Pn){return X(Ee,Pn)}var vt=X(Qe,Ae),Ut=X(nt,Ae),Ft=(Dt||Ut)&&(!S(ye)||ft(ye)),Vn=(Dt||vt)&&(!S(me)||Zt(me));return ee={},Object(o.a)(ee,"".concat(v,"-in-view"),S(Ae)),Object(o.a)(ee,"".concat(v,"-in-range"),Dn(x,we,Ee,Ae)),Object(o.a)(ee,"".concat(v,"-range-start"),Zt(Ae)),Object(o.a)(ee,"".concat(v,"-range-end"),ft(Ae)),Object(o.a)(ee,"".concat(v,"-range-start-single"),Zt(Ae)&&!Ee),Object(o.a)(ee,"".concat(v,"-range-end-single"),ft(Ae)&&!we),Object(o.a)(ee,"".concat(v,"-range-start-near-hover"),Zt(Ae)&&(X(ye,Qe)||Dn(x,Qe,nt,ye))),Object(o.a)(ee,"".concat(v,"-range-end-near-hover"),ft(Ae)&&(X(me,nt)||Dn(x,Qe,nt,me))),Object(o.a)(ee,"".concat(v,"-range-hover"),Dt),Object(o.a)(ee,"".concat(v,"-range-hover-start"),vt),Object(o.a)(ee,"".concat(v,"-range-hover-end"),Ut),Object(o.a)(ee,"".concat(v,"-range-hover-edge-start"),Ft),Object(o.a)(ee,"".concat(v,"-range-hover-edge-end"),Vn),Object(o.a)(ee,"".concat(v,"-range-hover-edge-start-near-range"),Ft&&X(ye,Ee)),Object(o.a)(ee,"".concat(v,"-range-hover-edge-end-near-range"),Vn&&X(me,we)),Object(o.a)(ee,"".concat(v,"-today"),X(be,Ae)),Object(o.a)(ee,"".concat(v,"-selected"),X(ge,Ae)),ee}return ke}function it(e){for(var v=e.prefixCls,x=e.disabledDate,O=e.onSelect,W=e.rowNum,S=e.colNum,X=e.prefixColumn,de=e.rowClassName,be=e.baseDate,ge=e.getCellClassName,ke=e.getCellText,Ae=e.getCellNode,ee=e.getCellDate,ye=e.titleCell,me=e.headerCells,we=u.useContext(p),Ee=we.onDateMouseEnter,Qe=we.onDateMouseLeave,nt="".concat(v,"-cell"),Dt=[],Zt=0;Zt2&&arguments[2]!==void 0?arguments[2]:!1;(f===we||It)&&($a(Ce),Ut&&Ut(Ce),Wn&&Wn(Ce,ze),Ft&&!pn(de,Ce,ma)&&Ft(Ce))},Ie=function(Ce){return oa.current&&oa.current.onKeyDown?([k.a.LEFT,k.a.RIGHT,k.a.UP,k.a.DOWN,k.a.PAGE_UP,k.a.PAGE_DOWN,k.a.ENTER].includes(Ce.which)&&Ce.preventDefault(),oa.current.onKeyDown(Ce)):(Object(Y.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},at=function(Ce){oa.current&&oa.current.onBlur&&oa.current.onBlur(Ce)};Gt&&Ka!=="right"&&(Gt.current={onKeyDown:Ie,onClose:function(){oa.current&&oa.current.onClose&&oa.current.onClose()}}),u.useEffect(function(){be&&!ja.current&&M(be)},[be]),u.useEffect(function(){ja.current=!1},[]);var xt,Et=Object(C.a)(Object(C.a)({},e),{},{operationRef:oa,prefixCls:O,viewDate:E,value:ma,onViewDateChange:m,sourceMode:N,onPanelChange:ce,disabledDate:f!=="decade"?ee:void 0});delete Et.onChange,delete Et.onSelect;switch(f){case"decade":xt=u.createElement(Kn,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"year":xt=u.createElement(Xt,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"month":xt=u.createElement(ne,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"quarter":xt=u.createElement(st,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"week":xt=u.createElement(kt,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;case"time":delete Et.showTime,xt=u.createElement(yt,Object.assign({},Et,Object(G.a)(Dt)==="object"?Dt:null,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}));break;default:Dt?xt=u.createElement(Wt,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}})):xt=u.createElement(Pe,Object.assign({},Et,{onSelect:function(Ce,ze){m(Ce),he(Ce,ze)}}))}var Bt,zt,At=function(){var Ce=de.getNow(),ze=Be(de.getHour(Ce),de.getMinute(Ce),de.getSecond(Ce),ha?Oa:1,Ma?fa:1,dt?ia:1),It=Ze(de,Ce,ze[0],ze[1],ze[2]);he(It,"submit")};Qn||(Bt=Xn(O,f,ft),zt=Gn({prefixCls:O,components:$n,needConfirmButton:Pa,okDisabled:!ma||ee&&ee(ma),locale:X,showNow:nt,onNow:Pa&&At,onOk:function(){ma&&(he(ma,"submit",!0),_n&&_n(ma))}}));var Vt;if(Zt&&f==="date"&&we==="date"&&!Dt){var qt=de.getNow(),Ct="".concat(O,"-today-btn"),mn=ee&&ee(qt);Vt=u.createElement("a",{className:xe()(Ct,mn&&"".concat(Ct,"-disabled")),"aria-disabled":mn,onClick:function(){mn||he(qt,"mouse",!0)}},X.today)}return u.createElement(p.Provider,{value:Object(C.a)(Object(C.a)({},gt),{},{hideHeader:"hideHeader"in e?vt:gt.hideHeader,hidePrevBtn:aa&&Ka==="right",hideNextBtn:aa&&Ka==="left"})},u.createElement("div",{tabIndex:Qe,className:xe()("".concat(O,"-panel"),W,(v={},Object(o.a)(v,"".concat(O,"-panel-has-range"),ba&&ba[0]&&ba[1]),Object(o.a)(v,"".concat(O,"-panel-has-range-hover"),Fa&&Fa[0]&&Fa[1]),Object(o.a)(v,"".concat(O,"-panel-rtl"),qn==="rtl"),v)),style:S,onKeyDown:Ie,onBlur:at,onMouseDown:Pn,ref:jn},xt,Bt||zt||Vt?u.createElement("div",{className:"".concat(O,"-footer")},Bt,zt,Vt):null))}var ya=pa,Za=a("uciX"),Ha={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function qa(e){var v,x=e.prefixCls,O=e.popupElement,W=e.popupStyle,S=e.visible,X=e.dropdownClassName,de=e.dropdownAlign,be=e.transitionName,ge=e.getPopupContainer,ke=e.children,Ae=e.range,ee=e.popupPlacement,ye=e.direction,me="".concat(x,"-dropdown"),we=function(){return ee!==void 0?ee:ye==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(Za.a,{showAction:[],hideAction:[],popupPlacement:we(),builtinPlacements:Ha,prefixCls:me,popupTransitionName:be,popup:O,popupAlign:de,popupVisible:S,popupClassName:xe()(X,(v={},Object(o.a)(v,"".concat(me,"-range"),Ae),Object(o.a)(v,"".concat(me,"-rtl"),ye==="rtl"),v)),popupStyle:W,getPopupContainer:ge},ke)}var io=qa;function eo(e){var v=e.open,x=e.value,O=e.isClickOutside,W=e.triggerOpen,S=e.forwardKeyDown,X=e.blurToCancel,de=e.onSubmit,be=e.onCancel,ge=e.onFocus,ke=e.onBlur,Ae=Object(u.useState)(!1),ee=Object(I.a)(Ae,2),ye=ee[0],me=ee[1],we=Object(u.useState)(!1),Ee=Object(I.a)(we,2),Qe=Ee[0],nt=Ee[1],Dt=Object(u.useRef)(!1),Zt=Object(u.useRef)(!1),ft={onMouseDown:function(){me(!0),W(!0)},onKeyDown:function(Ut){switch(Ut.which){case k.a.ENTER:{v?de()!==!1&&me(!0):W(!0),Ut.preventDefault();return}case k.a.TAB:{ye&&v&&!Ut.shiftKey?(me(!1),Ut.preventDefault()):!ye&&v&&(!S(Ut)&&Ut.shiftKey&&(me(!0),Ut.preventDefault()));return}case k.a.ESC:{me(!0),be();return}}!v&&![k.a.SHIFT].includes(Ut.which)?W(!0):ye||S(Ut)},onFocus:function(Ut){me(!0),nt(!0),ge&&ge(Ut)},onBlur:function(Ut){if(Dt.current||!O(document.activeElement)){Dt.current=!1;return}X?setTimeout(function(){O(document.activeElement)&&be()},0):v&&(W(!1),Zt.current&&de()),nt(!1),ke&&ke(Ut)}};return Object(u.useEffect)(function(){Zt.current=!1},[v]),Object(u.useEffect)(function(){Zt.current=!0},[x]),Object(u.useEffect)(function(){return q(function(vt){var Ut=vt.target;v&&(O(Ut)?Qe||W(!1):(Dt.current=!0,requestAnimationFrame(function(){Dt.current=!1})))})}),[ft,{focused:Qe,typing:ye}]}function Ia(e){var v=e.valueTexts,x=e.onTextChange,O=u.useState(""),W=Object(I.a)(O,2),S=W[0],X=W[1],de=u.useRef([]);de.current=v;function be(ke){X(ke),x(ke)}function ge(){X(de.current[0])}return u.useEffect(function(){v.every(function(ke){return ke!==S})&&ge()},[v.join("||")]),[S,be,ge]}var Fn=a("Gytx"),to=a.n(Fn);function Ua(e,v){var x=v.formatList,O=v.generateConfig,W=v.locale;return Object(Ne.a)(function(){if(!e)return[[""],""];for(var S="",X=[],de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(ge.current),Qe){be(Ee);return}ge.current=requestAnimationFrame(function(){be(Ee)})}var Ae=Ua(de,{formatList:x,generateConfig:O,locale:W}),ee=Object(I.a)(Ae,2),ye=ee[1];function me(Ee){ke(Ee)}function we(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ke(null,Ee)}return Object(u.useEffect)(function(){we(!0)},[e]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(ge.current)}},[]),[ye,me,we]}function Na(e){var v,x=e.prefixCls,O=x===void 0?"rc-picker":x,W=e.id,S=e.tabIndex,X=e.style,de=e.className,be=e.dropdownClassName,ge=e.dropdownAlign,ke=e.popupStyle,Ae=e.transitionName,ee=e.generateConfig,ye=e.locale,me=e.inputReadOnly,we=e.allowClear,Ee=e.autoFocus,Qe=e.showTime,nt=e.picker,Dt=nt===void 0?"date":nt,Zt=e.format,ft=e.use12Hours,vt=e.value,Ut=e.defaultValue,Ft=e.open,Vn=e.defaultOpen,Pn=e.defaultOpenValue,ta=e.suffixIcon,_n=e.clearIcon,$n=e.disabled,qn=e.disabledDate,da=e.placeholder,Oa=e.getPopupContainer,va=e.pickerRef,fa=e.panelRender,xa=e.onChange,ia=e.onOpenChange,Pa=e.onFocus,ha=e.onBlur,Ma=e.onMouseDown,dt=e.onMouseUp,gt=e.onMouseEnter,Gt=e.onMouseLeave,jn=e.onContextMenu,Wn=e.onClick,Qn=e.direction,na=e.autoComplete,la=na===void 0?"off":na,aa=u.useRef(null),Ka=Dt==="date"&&!!Qe||Dt==="time",ba=mt(h(Zt,Dt,Qe,ft)),Fa=u.useRef(null),oa=u.useRef(null),ja=Object(Q.a)(null,{value:vt,defaultValue:Ut}),ao=Object(I.a)(ja,2),ga=ao[0],ma=ao[1],$a=u.useState(ga),Da=Object(I.a)($a,2),s=Da[0],E=Da[1],M=u.useRef(null),m=Object(Q.a)(!1,{value:Ft,defaultValue:Vn,postState:function(St){return $n?!1:St},onChange:function(St){ia&&ia(St),!St&&M.current&&M.current.onClose&&M.current.onClose()}}),t=Object(I.a)(m,2),l=t[0],n=t[1],f=Ua(s,{formatList:ba,generateConfig:ee,locale:ye}),b=Object(I.a)(f,2),j=b[0],g=b[1],N=Ia({valueTexts:j,onTextChange:function(St){var Jn=ee.locale.parse(ye.locale,St,ba);Jn&&(!qn||!qn(Jn))&&E(Jn)}}),$=Object(I.a)(N,3),ce=$[0],he=$[1],Ie=$[2],at=function(St){E(St),ma(St),xa&&!pn(ee,ga,St)&&xa(St,St?ee.locale.format(ye.locale,St,ba[0]):"")},xt=function(St){if($n&&St)return;n(St)},Et=function(St){return l&&M.current&&M.current.onKeyDown?M.current.onKeyDown(St):(Object(Y.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Bt=function(){dt&&dt.apply(void 0,arguments),aa.current&&(aa.current.focus(),xt(!0))},zt=eo({blurToCancel:Ka,open:l,value:ce,triggerOpen:xt,forwardKeyDown:Et,isClickOutside:function(St){return!Mt([Fa.current,oa.current],St)},onSubmit:function(){return qn&&qn(s)?!1:(at(s),xt(!1),Ie(),!0)},onCancel:function(){xt(!1),E(ga),Ie()},onFocus:Pa,onBlur:ha}),At=Object(I.a)(zt,2),Vt=At[0],qt=At[1],Ct=qt.focused,mn=qt.typing;u.useEffect(function(){l||(E(ga),!j.length||j[0]===""?he(""):g!==ce&&Ie())},[l,j]),u.useEffect(function(){l||Ie()},[Dt]),u.useEffect(function(){E(ga)},[ga]),va&&(va.current={focus:function(){aa.current&&aa.current.focus()},blur:function(){aa.current&&aa.current.blur()}});var wt=Object(C.a)(Object(C.a)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Ce=u.createElement(ya,Object.assign({},wt,{generateConfig:ee,className:xe()(Object(o.a)({},"".concat(O,"-panel-focused"),!mn)),value:s,locale:ye,tabIndex:-1,onChange:E,direction:Qn}));fa&&(Ce=fa(Ce));var ze=u.createElement("div",{className:"".concat(O,"-panel-container"),onMouseDown:function(St){St.preventDefault()}},Ce),It;ta&&(It=u.createElement("span",{className:"".concat(O,"-suffix")},ta));var an;we&&ga&&!$n&&(an=u.createElement("span",{onMouseDown:function(St){St.preventDefault(),St.stopPropagation()},onMouseUp:function(St){St.preventDefault(),St.stopPropagation(),at(null),xt(!1)},className:"".concat(O,"-clear")},_n||u.createElement("span",{className:"".concat(O,"-clear-btn")})));var ut=function(St,Jn){(Jn==="submit"||Jn!=="key"&&!Ka)&&(at(St),xt(!1))},cn=Qn==="rtl"?"bottomRight":"bottomLeft",Sn=no(ce,{formatList:ba,generateConfig:ee,locale:ye}),on=Object(I.a)(Sn,3),bn=on[0],wn=on[1],yn=on[2];return u.createElement(p.Provider,{value:{operationRef:M,hideHeader:Dt==="time",panelRef:Fa,onSelect:ut,open:l,defaultOpenValue:Pn,onDateMouseEnter:wn,onDateMouseLeave:yn}},u.createElement(io,{visible:l,popupElement:ze,popupStyle:ke,prefixCls:O,dropdownClassName:be,dropdownAlign:ge,getPopupContainer:Oa,transitionName:Ae,popupPlacement:cn,direction:Qn},u.createElement("div",{className:xe()(O,de,(v={},Object(o.a)(v,"".concat(O,"-disabled"),$n),Object(o.a)(v,"".concat(O,"-focused"),Ct),Object(o.a)(v,"".concat(O,"-rtl"),Qn==="rtl"),v)),style:X,onMouseDown:Ma,onMouseUp:Bt,onMouseEnter:gt,onMouseLeave:Gt,onContextMenu:jn,onClick:Wn},u.createElement("div",{className:xe()("".concat(O,"-input"),Object(o.a)({},"".concat(O,"-input-placeholder"),!!bn)),ref:oa},u.createElement("input",Object.assign({id:W,tabIndex:S,disabled:$n,readOnly:me||!mn,value:bn||ce,onChange:function(St){he(St.target.value)},autoFocus:Ee,placeholder:da,ref:aa,title:ce},Vt,{size:c(Dt,ba[0])},ht(e),{autoComplete:la})),It,an))))}var To=function(e){Object(Ke.a)(x,e);var v=Object(P.a)(x);function x(){var O;return Object(D.a)(this,x),O=v.apply(this,arguments),O.pickerRef=u.createRef(),O.focus=function(){O.pickerRef.current&&O.pickerRef.current.focus()},O.blur=function(){O.pickerRef.current&&O.pickerRef.current.blur()},O}return Object(R.a)(x,[{key:"render",value:function(){return u.createElement(Na,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),x}(u.Component),go=To;function lo(e,v,x){var O=e.picker,W=e.locale,S=e.selectedValue,X=e.disabledDate,de=e.disabled,be=e.generateConfig,ge=oe(S,0),ke=oe(S,1);function Ae(Ee){var Qe=be.getYear(Ee),nt=be.locale.getWeek(W.locale,Ee);return Qe*100+nt}function ee(Ee){var Qe=be.getYear(Ee),nt=be.getMonth(Ee);return Qe*100+nt}function ye(Ee){var Qe=be.getYear(Ee),nt=Jt(be,Ee);return Qe*10+nt}var me=u.useCallback(function(Ee){if(X&&X(Ee))return!0;if(de[1]&&ke)return!hn(be,Ee,ke)&&be.isAfter(Ee,ke);if(v&&ke)switch(O){case"quarter":return ye(Ee)>ye(ke);case"month":return ee(Ee)>ee(ke);case"week":return Ae(Ee)>Ae(ke);default:return!hn(be,Ee,ke)&&be.isAfter(Ee,ke)}return!1},[X,de[1],ke,v]),we=u.useCallback(function(Ee){if(X&&X(Ee))return!0;if(de[0]&&ge)return!hn(be,Ee,ke)&&be.isAfter(ge,Ee);if(x&&ge)switch(O){case"quarter":return ye(Ee)0&&arguments[0]!==void 0?arguments[0]:!1,ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=null;yn&&La&&La[0]&&La[1]&&me.isAfter(La[1],La[0])&&(Tt=La);var nn=vt;if(vt&&Object(G.a)(vt)==="object"&&vt.defaultValue){var zn=vt.defaultValue;nn=Object(C.a)(Object(C.a)({},vt),{},{defaultValue:oe(zn,g)||void 0})}var Qa=null;return va&&(Qa=function(ca,za){return va(ca,za,{range:g?"end":"start"})}),u.createElement(_e.Provider,{value:{inRange:!0,panelPosition:en,rangedValue:pr||Ct,hoverRangedValue:Tt}},u.createElement(ya,Object.assign({},e,ot,{dateRender:Qa,showTime:nn,mode:ze[g],generateConfig:me,style:void 0,direction:ja,disabledDate:g===0?Sn:on,disabledTime:function(ca){return Oa?Oa(ca,g===0?"start":"end"):!1},className:xe()(Object(o.a)({},"".concat(S,"-panel-focused"),g===0?!Wo:!Ho)),value:oe(Ct,g),locale:we,tabIndex:-1,onPanelChange:function(ca,za){an(De(ze,za,g),De(Ct,ca,g));var Ja=ca;en==="right"&&ze[g]===za&&(Ja=U(Ja,za,me,-1)),At(Ja,g)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Bn=0,Ca=0;g&&M.current&&t.current&&E.current&&(Bn=M.current.offsetWidth+t.current.offsetWidth,E.current.offsetWidth&&Bn>E.current.offsetWidth&&(Ca=Bn));var po=ja==="rtl"?{right:Bn}:{left:Bn};function vo(){var en,ot=Xn(S,ze[g],jn),Tt=Gn({prefixCls:S,components:Fa,needConfirmButton:$a,okDisabled:!oe(Ct,g)||da&&da(Ct[g]),locale:we,rangeList:xn,onOk:function(){oe(Ct,g)&&(Sa(Ct,g),ba&&ba(Ct))}});if(ft!=="time"&&!vt){var nn=zt(g),zn=U(nn,ft,me),Qa=ze[g],ka=Qa===ft,ca=rn(ka?"left":!1,{pickerValue:nn,onPickerValueChange:function(Ra){At(Ra,g)}}),za=rn("right",{pickerValue:zn,onPickerValueChange:function(Ra){At(U(Ra,ft,me,-1),g)}});ja==="rtl"?en=u.createElement(u.Fragment,null,za,ka&&ca):en=u.createElement(u.Fragment,null,ca,ka&&za)}else en=rn();var Ja=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(S,"-panels")},en),(ot||Tt)&&u.createElement("div",{className:"".concat(S,"-footer")},ot,Tt));return fa&&(Ja=fa(Ja)),u.createElement("div",{className:"".concat(S,"-panel-container"),style:{marginLeft:Ca},ref:E,onMouseDown:function(Ra){Ra.preventDefault()}},Ja)}var ho=u.createElement("div",{className:xe()("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(ft,"-range-wrapper")),style:{minWidth:Ta}},u.createElement("div",{className:"".concat(S,"-range-arrow"),style:po}),vo()),ro;ha&&(ro=u.createElement("span",{className:"".concat(S,"-suffix")},ha));var Ga;Pa&&(oe(at,0)&&!ce[0]||oe(at,1)&&!ce[1])&&(Ga=u.createElement("span",{onMouseDown:function(ot){ot.preventDefault(),ot.stopPropagation()},onMouseUp:function(ot){ot.preventDefault(),ot.stopPropagation();var Tt=at;ce[0]||(Tt=De(Tt,null,0)),ce[1]||(Tt=De(Tt,null,1)),Sa(Tt,null),Yn(!1,g)},className:"".concat(S,"-clear")},Ma||u.createElement("span",{className:"".concat(S,"-clear-btn")})));var jo={size:c(ft,f[0])},bo=0,Do=0;M.current&&m.current&&t.current&&(g===0?Do=M.current.offsetWidth:(bo=Bn,Do=m.current.offsetWidth));var dr=ja==="rtl"?{right:bo}:{left:bo},Cr=function(ot,Tt){var nn=De(Ct,ot,g);Tt==="submit"||Tt!=="key"&&!$a?(Sa(nn,g),g===0?ko():Ko()):mn(nn)};return u.createElement(p.Provider,{value:{operationRef:$,hideHeader:ft==="time",onDateMouseEnter:hr,onDateMouseLeave:br,hideRanges:!0,onSelect:Cr,open:yn}},u.createElement(io,{visible:yn,popupElement:ho,popupStyle:ge,prefixCls:S,dropdownClassName:ke,dropdownAlign:ee,getPopupContainer:ye,transitionName:Ae,range:!0,direction:ja},u.createElement("div",Object.assign({ref:s,className:xe()(S,"".concat(S,"-range"),be,(v={},Object(o.a)(v,"".concat(S,"-disabled"),ce[0]&&ce[1]),Object(o.a)(v,"".concat(S,"-focused"),g===0?lr:zo),Object(o.a)(v,"".concat(S,"-rtl"),ja==="rtl"),v)),style:de,onClick:mo,onMouseDown:Xo},ht(e)),u.createElement("div",{className:xe()("".concat(S,"-input"),(x={},Object(o.a)(x,"".concat(S,"-input-active"),g===0),Object(o.a)(x,"".concat(S,"-input-placeholder"),!!Ao),x)),ref:M},u.createElement("input",Object.assign({id:X,disabled:ce[0],readOnly:gt||!Wo,value:Ao||uo,onChange:function(ot){Jo(ot.target.value)},autoFocus:Qe,placeholder:oe(Ee,0)||"",ref:l},gr,jo,{autoComplete:ma}))),u.createElement("div",{className:"".concat(S,"-range-separator"),ref:t},Vn),u.createElement("div",{className:xe()("".concat(S,"-input"),(O={},Object(o.a)(O,"".concat(S,"-input-active"),g===1),Object(o.a)(O,"".concat(S,"-input-placeholder"),!!Io),O)),ref:m},u.createElement("input",Object.assign({disabled:ce[1],readOnly:gt||!Ho,value:Io||xo,onChange:function(ot){qo(ot.target.value)},placeholder:oe(Ee,1)||"",ref:n},Ba,jo,{autoComplete:ma}))),u.createElement("div",{className:"".concat(S,"-active-bar"),style:Object(C.a)(Object(C.a)({},dr),{},{width:Do,position:"absolute"})}),ro,Ga)))}var Co=function(e){Object(Ke.a)(x,e);var v=Object(P.a)(x);function x(){var O;return Object(D.a)(this,x),O=v.apply(this,arguments),O.pickerRef=u.createRef(),O.focus=function(){O.pickerRef.current&&O.pickerRef.current.focus()},O.blur=function(){O.pickerRef.current&&O.pickerRef.current.blur()},O}return Object(R.a)(x,[{key:"render",value:function(){return u.createElement(Ro,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),x}(u.Component),Po=Co,Go=Oe.b=go},sR1s:function(Ht,Oe,a){"use strict";a.d(Oe,"b",function(){return P}),a.d(Oe,"a",function(){return o}),a.d(Oe,"c",function(){return C}),a.d(Oe,"d",function(){return I});var D=a("U8pU"),R="RC_TABLE_KEY";function Ke(u){return u==null?[]:Array.isArray(u)?u:[u]}function P(u,ae){if(!ae&&typeof ae!="number")return u;for(var xe=Ke(ae),Y=u,Q=0;Q1)Object(xe.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(ie.length===0)return Object(xe.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var le=ie[0];if(C.isValidElement(le)&&Object(Y.c)(le)){var Ne=le.ref;ie[0]=C.cloneElement(le,{ref:Object(Y.a)(Ne,this.setChildNode)})}return ie.length===1?ie[0]:ie.map(function(H,z){return!C.isValidElement(H)||"key"in H&&H.key!==null?H:C.cloneElement(H,{key:"".concat(G,"-").concat(z)})})}}]),A}(C.Component);k.displayName="ResizeObserver",Oe.a=k},wCXF:function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return In});var D=a("rePB"),R=a("VTBJ"),Ke=a("KQm4"),P=a("U8pU"),o=a("ODXe"),C=a("q1tI"),I=a("TSYQ"),u=a.n(I),ae=a("Gytx"),xe=a.n(ae),Y=a("Kwbf"),Q=a("t23M"),G=a("qx4F"),k=a("6eGT"),y=a("IBYe"),p=a("Ff2n"),A=a("c+Xe"),_=a("fyJ8"),Z=a("biw7");function ie(U,Re,_e,He,it){var qe=_e[U]||{},$e=_e[Re]||{},We,Ye;qe.fixed==="left"?We=He.left[U]:$e.fixed==="right"&&(Ye=He.right[Re]);var Ge=!1,Me=!1,Pe=!1,Je=!1,tt=_e[Re+1],ct=_e[U-1];if(it==="rtl"){if(We!==void 0){var Wt=ct&&ct.fixed==="left";Je=!Wt}else if(Ye!==void 0){var _t=tt&&tt.fixed==="right";Pe=!_t}}else if(We!==void 0){var kt=tt&&tt.fixed==="left";Ge=!kt}else if(Ye!==void 0){var jt=ct&&ct.fixed==="right";Me=!jt}return{fixLeft:We,fixRight:Ye,lastFixLeft:Ge,firstFixRight:Me,lastFixRight:Pe,firstFixLeft:Je,isSticky:He.isSticky}}var le=a("sR1s");function Ne(U){var Re=U.cells,_e=U.stickyOffsets,He=U.flattenColumns,it=U.rowComponent,qe=U.cellComponent,$e=U.onHeaderRow,We=U.index,Ye=C.useContext(Z.a),Ge=Ye.prefixCls,Me=Ye.direction,Pe;$e&&(Pe=$e(Re.map(function(tt){return tt.column}),We));var Je=Object(le.a)(Re.map(function(tt){return tt.column}));return C.createElement(it,Object.assign({},Pe),Re.map(function(tt,ct){var Wt=tt.column,_t=ie(tt.colStart,tt.colEnd,He,_e,Me),kt;return Wt&&Wt.onHeaderCell&&(kt=tt.column.onHeaderCell(Wt)),C.createElement(_.a,Object.assign({},tt,{ellipsis:Wt.ellipsis,align:Wt.align,component:qe,prefixCls:Ge,key:Je[ct]},_t,{additionalProps:kt,rowType:"header"}))}))}Ne.displayName="HeaderRow";var H=Ne;function z(U){var Re=[];function _e($e,We){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[Ye]=Re[Ye]||[];var Ge=We,Me=$e.filter(Boolean).map(function(Pe){var Je={key:Pe.key,className:Pe.className||"",children:Pe.title,column:Pe,colStart:Ge},tt=1,ct=Pe.children;return ct&&ct.length>0&&(tt=_e(ct,Ge,Ye+1).reduce(function(Wt,_t){return Wt+_t},0),Je.hasSubColumns=!0),"colSpan"in Pe&&(tt=Pe.colSpan),"rowSpan"in Pe&&(Je.rowSpan=Pe.rowSpan),Je.colSpan=tt,Je.colEnd=Je.colStart+tt-1,Re[Ye].push(Je),Ge+=tt,tt});return Me}_e(U,0);for(var He=Re.length,it=function(We){Re[We].forEach(function(Ye){!("rowSpan"in Ye)&&!Ye.hasSubColumns&&(Ye.rowSpan=He-We)})},qe=0;qe=0;We-=1){var Ye=Re[We],Ge=_e&&_e[We],Me=Ge&&Ge[h.a];(Ye||Me||$e)&&(it.unshift(C.createElement("col",Object.assign({key:We,style:{width:Ye,minWidth:Ye}},Me))),$e=!0)}return C.createElement("colgroup",null,it)}var L=c;function V(U,Re){return Object(C.useMemo)(function(){for(var _e=[],He=0;He1?Gn-1:0),ya=1;ya=Pe&&(st=Pe-Je),$e({scrollLeft:st/Pe*(Me+2)}),jt.current.x=w.pageX},F=function(){var w=Object(En.b)(qe.current).top,re=w+qe.current.offsetHeight,Le=document.documentElement.scrollTop+window.innerHeight;re-Object(G.a)()<=Le||w>=Le-We?kt(function(Ot){return Object(R.a)(Object(R.a)({},Ot),{},{isHiddenScrollBar:!0})}):kt(function(Ot){return Object(R.a)(Object(R.a)({},Ot),{},{isHiddenScrollBar:!1})})},ue=function(w){kt(function(re){return Object(R.a)(Object(R.a)({},re),{},{scrollLeft:w/Me*Pe||0})})};return C.useImperativeHandle(_e,function(){return{setScrollLeft:ue}}),C.useEffect(function(){var se=Object(fn.a)(document.body,"mouseup",i,!1),w=Object(fn.a)(document.body,"mousemove",ne,!1);return F(),function(){se.remove(),w.remove()}},[Je,pe]),C.useEffect(function(){var se=Object(fn.a)(window,"scroll",F,!1),w=Object(fn.a)(window,"resize",F,!1);return function(){se.remove(),w.remove()}},[]),C.useEffect(function(){_t.isHiddenScrollBar||kt(function(se){var w,re;return Object(R.a)(Object(R.a)({},se),{},{scrollLeft:qe.current.scrollLeft/((w=qe.current)===null||w===void 0?void 0:w.scrollWidth)*((re=qe.current)===null||re===void 0?void 0:re.clientWidth)})})},[_t.isHiddenScrollBar]),Me<=Pe||!Je||_t.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(G.a)(),width:Pe,bottom:We},className:"".concat(Ge,"-sticky-scroll")},C.createElement("div",{onMouseDown:d,ref:tt,className:u()("".concat(Ge,"-sticky-scroll-bar"),Object(D.a)({},"".concat(Ge,"-sticky-scroll-bar-active"),pe)),style:{width:"".concat(Je,"px"),transform:"translate3d(".concat(_t.scrollLeft,"px, 0, 0)")}}))},Pt=C.forwardRef(Jt);function Kt(U,Re){return C.useMemo(function(){var _e=!!U;return{isSticky:_e,stickyClassName:_e?"".concat(Re,"-sticky-header"):"",offsetHeader:Object(P.a)(U)==="object"&&U.offsetHeader||0,offsetScroll:Object(P.a)(U)==="object"&&U.offsetScroll||0}},[U,Re])}var hn=[],Ln={},In="rc-table-internal-hook",pn=C.memo(function(U){var Re=U.children;return Re},function(U,Re){return xe()(U.props,Re.props)?U.pingLeft!==Re.pingLeft||U.pingRight!==Re.pingRight:!1});function Dn(U){var Re,_e=U.prefixCls,He=U.className,it=U.rowClassName,qe=U.style,$e=U.data,We=U.rowKey,Ye=U.scroll,Ge=U.tableLayout,Me=U.direction,Pe=U.title,Je=U.footer,tt=U.summary,ct=U.id,Wt=U.showHeader,_t=U.components,kt=U.emptyText,jt=U.onRow,Te=U.onHeaderRow,te=U.internalHooks,pe=U.transformColumns,T=U.internalRefs,i=U.sticky,d=$e||hn,ne=!!d.length,F=C.useState(0),ue=Object(o.a)(F,2),se=ue[0],w=ue[1];C.useEffect(function(){w(Object(G.a)())});var re=C.useMemo(function(){return Object(le.c)(_t,{})},[_t]),Le=C.useCallback(function(dt,gt){return Object(le.b)(re,dt)||gt},[re]),Ot=C.useMemo(function(){return typeof We=="function"?We:function(dt){var gt=dt&&dt[We];return gt}},[We]),st=Object(h.c)(U),ln=st.expandIcon,dn=st.expandedRowKeys,Un=st.defaultExpandedRowKeys,Nn=st.defaultExpandAllRows,et=st.expandedRowRender,tn=st.onExpand,sn=st.onExpandedRowsChange,Tn=st.expandRowByClick,Xt=st.rowExpandable,Qt=st.expandIconColumnIndex,Rn=st.expandedRowClassName,$t=st.childrenColumnName,Hn=st.indentSize,Mn=ln||Yt,Rt=$t||"children",vn=C.useMemo(function(){return et?"row":U.expandable&&te===In&&U.expandable.__PARENT_RENDER_ICON__||d.some(function(dt){return dt&&Object(P.a)(dt)==="object"&&dt[Rt]})?"nest":!1},[!!et,d]),un=C.useState(function(){return Un||(Nn?Lt(d,Ot,Rt):[])}),Cn=Object(o.a)(un,2),Kn=Cn[0],Xn=Cn[1],Gn=C.useMemo(function(){return new Set(dn||Kn||[])},[dn,Kn]),pa=C.useCallback(function(dt){var gt=Ot(dt,d.indexOf(dt)),Gt,jn=Gn.has(gt);jn?(Gn.delete(gt),Gt=Object(Ke.a)(Gn)):Gt=[].concat(Object(Ke.a)(Gn),[gt]),Xn(Gt),tn&&tn(!jn,dt),sn&&sn(Gt)},[Ot,Gn,d,tn,sn]),ya=C.useState(0),Za=Object(o.a)(ya,2),Ha=Za[0],qa=Za[1],io=Object(De.b)(Object(R.a)(Object(R.a)(Object(R.a)({},U),st),{},{expandable:!!et,expandedKeys:Gn,getRowKey:Ot,onTriggerExpand:pa,expandIcon:Mn,expandIconColumnIndex:Qt,direction:Me}),te===In?pe:null),eo=Object(o.a)(io,2),Ia=eo[0],Fn=eo[1],to=C.useMemo(function(){return{columns:Ia,flattenColumns:Fn}},[Ia,Fn]),Ua=C.useRef(),no=C.useRef(),Na=C.useRef(),To=C.useState(!1),go=Object(o.a)(To,2),lo=go[0],So=go[1],No=C.useState(!1),so=Object(o.a)(No,2),Xa=so[0],Eo=so[1],Ro=fe(new Map),Co=Object(o.a)(Ro,2),Po=Co[0],Go=Co[1],e=Object(le.a)(Fn),v=e.map(function(dt){return Po.get(dt)}),x=C.useMemo(function(){return v},[v.join("_")]),O=bt(x,Fn.length,Me),W=Ye&&Object(le.d)(Ye.y),S=Ye&&Object(le.d)(Ye.x),X=S&&Fn.some(function(dt){var gt=dt.fixed;return gt}),de=C.useRef(),be=Kt(i,_e),ge=be.isSticky,ke=be.offsetHeader,Ae=be.offsetScroll,ee=be.stickyClassName,ye,me,we;W&&(me={overflowY:"scroll",maxHeight:Ye.y}),S&&(ye={overflowX:"auto"},W||(me={overflowY:"hidden"}),we={width:Ye.x===!0?"auto":Ye.x,minWidth:"100%"});var Ee=C.useCallback(function(dt,gt){Go(function(Gt){var jn=new Map(Gt);return jn.set(dt,gt),jn})},[]),Qe=ve(null),nt=Object(o.a)(Qe,2),Dt=nt[0],Zt=nt[1];function ft(dt,gt){if(!gt)return;typeof gt=="function"?gt(dt):gt.scrollLeft!==dt&&(gt.scrollLeft=dt)}var vt=function(gt){var Gt=gt.currentTarget,jn=gt.scrollLeft,Wn=typeof jn=="number"?jn:Gt.scrollLeft,Qn=Gt||Ln;if(!Zt()||Zt()===Qn){var na;Dt(Qn),ft(Wn,no.current),ft(Wn,Na.current),ft(Wn,(na=de.current)===null||na===void 0?void 0:na.setScrollLeft)}if(Gt){var la=Gt.scrollWidth,aa=Gt.clientWidth;So(Wn>0),Eo(Wn0?[].concat(Object(R.a)(p),Object(R.a)(Y(ie).map(function(le){return Object(Ke.a)({fixed:Z},le)}))):[].concat(Object(R.a)(p),[Object(Ke.a)(Object(Ke.a)({},A),{},{fixed:Z})])},[])}function Q(y){for(var p=!0,A=0;A=0;ie-=1){var le=y[ie];if(Z&&le.fixed!=="right")Z=!1;else if(!Z&&le.fixed==="right"){Object(I.a)(!1,"Index ".concat(ie+1," of `columns` missing `fixed='right'` prop."));break}}}function G(y){return y.map(function(p){var A=p.fixed,_=Object(P.a)(p,["fixed"]),Z=A;return A==="left"?Z="right":A==="right"&&(Z="left"),Object(Ke.a)({fixed:Z},_)})}function k(y,p){var A=y.prefixCls,_=y.columns,Z=y.children,ie=y.expandable,le=y.expandedKeys,Ne=y.getRowKey,H=y.onTriggerExpand,z=y.expandIcon,K=y.rowExpandable,r=y.expandIconColumnIndex,h=y.direction,c=y.expandRowByClick,L=o.useMemo(function(){return _||xe(Z)},[_,Z]),V=o.useMemo(function(){if(ie){var J,B=r||0,Ue=L[B],rt=(J={},Object(D.a)(J,ae.a,{className:"".concat(A,"-expand-icon-col")}),Object(D.a)(J,"title",""),Object(D.a)(J,"fixed",Ue?Ue.fixed:null),Object(D.a)(J,"className","".concat(A,"-row-expand-icon-cell")),Object(D.a)(J,"render",function(Se,lt,pt){var mt=Ne(lt,pt),ht=le.has(mt),oe=K?K(lt):!0,De=z({prefixCls:A,expanded:ht,expandable:oe,record:lt,onExpand:H});return c?o.createElement("span",{onClick:function(Be){return Be.stopPropagation()}},De):De}),J),Mt=L.slice();return B>=0&&Mt.splice(B,0,rt),Mt}return L},[ie,L,Ne,le,z,h]),q=o.useMemo(function(){var J=V;return p&&(J=p(J)),J.length||(J=[{render:function(){return null}}]),J},[p,V,h]),je=o.useMemo(function(){return h==="rtl"?G(Y(q)):Y(q)},[q,h]);return[q,je]}Oe.b=k},"y0+3":function(Ht,Oe,a){"use strict";a.d(Oe,"a",function(){return Y}),a.d(Oe,"b",function(){return G});var D=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ke={cssFloat:1,styleFloat:1,float:1};function P(k){return k.nodeType===1?k.ownerDocument.defaultView.getComputedStyle(k,null):{}}function o(k,y,p){if(y=y.toLowerCase(),p==="auto"){if(y==="height")return k.offsetHeight;if(y==="width")return k.offsetWidth}return y in R||(R[y]=D.test(y)),R[y]?parseFloat(p)||0:p}function C(k,y){var p=arguments.length,A=P(k);return y=Ke[y]?"cssFloat"in k.style?"cssFloat":"styleFloat":y,p===1?A:o(k,y,A[y]||k.style[y])}function I(k,y,p){var A=arguments.length;if(y=Ke[y]?"cssFloat"in k.style?"cssFloat":"styleFloat":y,A===3)return typeof p=="number"&&D.test(y)&&(p="".concat(p,"px")),k.style[y]=p,p;for(var _ in y)y.hasOwnProperty(_)&&I(k,_,y[_]);return P(k)}function u(k){return k===document.body?document.documentElement.clientWidth:k.offsetWidth}function ae(k){return k===document.body?window.innerHeight||document.documentElement.clientHeight:k.offsetHeight}function xe(){var k=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:k,height:y}}function Y(){var k=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:k,height:y}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function G(k){var y=k.getBoundingClientRect(),p=document.documentElement;return{left:y.left+(window.pageXOffset||p.scrollLeft)-(p.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||p.scrollTop)-(p.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index.2b59be16.async.js b/p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index.2b59be16.async.js index 4b8199a03f..787ed08c9f 100644 --- a/p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index.2b59be16.async.js +++ b/p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index.2b59be16.async.js @@ -1,10 +1,10 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[94,8],{"+ua5":function(xe,x,t){},"/cxE":function(xe,x,t){"use strict";t.d(x,"e",function(){return H}),t.d(x,"f",function(){return k}),t.d(x,"g",function(){return P}),t.d(x,"d",function(){return V}),t.d(x,"a",function(){return U}),t.d(x,"b",function(){return v}),t.d(x,"c",function(){return C});var I=function(){function a(){this.listeners=[],this.unexpectedErrorHandler=function(s){setTimeout(function(){throw s.stack?new Error(s.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[94,8],{"+ua5":function(xe,x,t){},"/cxE":function(xe,x,t){"use strict";t.d(x,"e",function(){return H}),t.d(x,"f",function(){return k}),t.d(x,"g",function(){return T}),t.d(x,"d",function(){return V}),t.d(x,"a",function(){return U}),t.d(x,"b",function(){return v}),t.d(x,"c",function(){return C});var I=function(){function a(){this.listeners=[],this.unexpectedErrorHandler=function(s){setTimeout(function(){throw s.stack?new Error(s.message+` -`+s.stack):s},0)}}return a.prototype.emit=function(s){this.listeners.forEach(function(u){u(s)})},a.prototype.onUnexpectedError=function(s){this.unexpectedErrorHandler(s),this.emit(s)},a.prototype.onUnexpectedExternalError=function(s){this.unexpectedErrorHandler(s)},a}(),S=new I;function H(a){V(a)||S.onUnexpectedError(a);return}function k(a){V(a)||S.onUnexpectedExternalError(a);return}function P(a){if(a instanceof Error){var s=a.name,u=a.message,i=a.stacktrace||a.stack;return{$isError:!0,name:s,message:u,stack:i}}return a}var m="Canceled";function V(a){return a instanceof Error&&a.name===m&&a.message===m}function U(){var a=new Error(m);return a.name=a.message,a}function v(a){return a?new Error("Illegal argument: "+a):new Error("Illegal argument")}function C(a){return a?new Error("Illegal state: "+a):new Error("Illegal state")}},"24hK":function(xe,x,t){"use strict";t.d(x,"a",function(){return H});var I=t("JYp7"),S=function(){function k(P){this.element=P,this.next=k.Undefined,this.prev=k.Undefined}return k.Undefined=new k(void 0),k}(),H=function(){function k(){this._first=S.Undefined,this._last=S.Undefined,this._size=0}return Object.defineProperty(k.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),k.prototype.isEmpty=function(){return this._first===S.Undefined},k.prototype.clear=function(){this._first=S.Undefined,this._last=S.Undefined,this._size=0},k.prototype.unshift=function(P){return this._insert(P,!1)},k.prototype.push=function(P){return this._insert(P,!0)},k.prototype._insert=function(P,m){var V=this,U=new S(P);if(this._first===S.Undefined)this._first=U,this._last=U;else if(m){var v=this._last;this._last=U,U.prev=v,v.next=U}else{var C=this._first;this._first=U,U.next=C,C.prev=U}this._size+=1;var a=!1;return function(){a||(a=!0,V._remove(U))}},k.prototype.shift=function(){if(this._first===S.Undefined)return;var P=this._first.element;return this._remove(this._first),P},k.prototype.pop=function(){if(this._last===S.Undefined)return;var P=this._last.element;return this._remove(this._last),P},k.prototype._remove=function(P){if(P.prev!==S.Undefined&&P.next!==S.Undefined){var m=P.prev;m.next=P.next,P.next.prev=m}else P.prev===S.Undefined&&P.next===S.Undefined?(this._first=S.Undefined,this._last=S.Undefined):P.next===S.Undefined?(this._last=this._last.prev,this._last.next=S.Undefined):P.prev===S.Undefined&&(this._first=this._first.next,this._first.prev=S.Undefined);this._size-=1},k.prototype.iterator=function(){var P,m=this._first;return{next:function(){return m===S.Undefined?I.c:(P?P.value=m.element:P={done:!1,value:m.element},m=m.next,P)}}},k.prototype.toArray=function(){for(var P=[],m=this._first;m!==S.Undefined;m=m.next)P.push(m.element);return P},k}()},"55Ip":function(xe,x,t){"use strict";t.d(x,"a",function(){return l}),t.d(x,"b",function(){return F});var I=t("Ty5D"),S=t("dI71"),H=t("q1tI"),k=t.n(H),P=t("YS25"),m=t("17x9"),V=t.n(m),U=t("wx14"),v=t("zLVn"),C=t("9R94"),a=function(b){Object(S.a)(o,b);function o(){for(var N,M=arguments.length,p=new Array(M),f=0;f=0||M.relatedTarget.className.indexOf("".concat(g,"-next"))>=0))return;b.setState({goInputText:""}),j(b.getValidValue())},b.go=function(M){var p=b.state.goInputText;if(p==="")return;(M.keyCode===i.ENTER||M.type==="click")&&(b.setState({goInputText:""}),b.props.quickGo(b.getValidValue()))},b}return Object(P.a)(E,[{key:"getValidValue",value:function(){var o=this.state,D=o.goInputText,N=o.current;return!D||isNaN(D)?N:Number(D)}},{key:"getPageSizeOptions",value:function(){var o=this.props,D=o.pageSize,N=o.pageSizeOptions;return N.some(function(M){return M.toString()===D.toString()})?N:N.concat([D.toString()]).sort(function(M,p){var f=isNaN(Number(M))?0:Number(M),j=isNaN(Number(p))?0:Number(p);return f-j})}},{key:"render",value:function(){var o=this,D=this.props,N=D.pageSize,M=D.locale,p=D.rootPrefixCls,f=D.changeSize,j=D.quickGo,g=D.goButton,R=D.selectComponentClass,B=D.buildOptionText,W=D.selectPrefixCls,K=D.disabled,G=this.state.goInputText,J="".concat(p,"-options"),oe=R,te=null,Oe=null,ie=null;if(!f&&!j)return null;var De=this.getPageSizeOptions();if(f&&oe){var ye=De.map(function(ve,fe){return v.a.createElement(oe.Option,{key:fe,value:ve.toString()},(B||o.buildOptionText)(ve))});te=v.a.createElement(oe,{disabled:K,prefixCls:W,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(N||De[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fe){return fe.parentNode}},ye)}return j&&(g&&(ie=typeof g=="boolean"?v.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(J,"-quick-jumper-button")},M.jump_to_confirm):v.a.createElement("span",{onClick:this.go,onKeyUp:this.go},g)),Oe=v.a.createElement("div",{className:"".concat(J,"-quick-jumper")},M.jump_to,v.a.createElement("input",{disabled:K,type:"text",value:G,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),M.page,ie)),v.a.createElement("li",{className:"".concat(J)},te,Oe)}}]),E}(v.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=r,n=t("N2Kk");function e(){}function l(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A}function d(A,F,E){return E}function h(A,F,E){var b=typeof A=="undefined"?F.pageSize:A;return Math.floor((E.total-1)/b)+1}var L=function(A){Object(m.a)(E,A);var F=Object(V.a)(E);function E(b){var o;Object(k.a)(this,E),o=F.call(this,b),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(h(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(f,j){var g=o.props.prefixCls,R=f||v.a.createElement("button",{type:"button","aria-label":j,className:"".concat(g,"-item-link")});return typeof f=="function"&&(R=v.a.createElement(f,Object(H.a)({},o.props))),R},o.savePaginationNode=function(f){o.paginationNode=f},o.isValid=function(f){return l(f)&&f!==o.state.current},o.shouldDisplayQuickJumper=function(){var f=o.props,j=f.showQuickJumper,g=f.pageSize,R=f.total;return R<=g?!1:j},o.handleKeyDown=function(f){(f.keyCode===i.ARROW_UP||f.keyCode===i.ARROW_DOWN)&&f.preventDefault()},o.handleKeyUp=function(f){var j=o.getValidValue(f),g=o.state.currentInputValue;j!==g&&o.setState({currentInputValue:j}),f.keyCode===i.ENTER?o.handleChange(j):f.keyCode===i.ARROW_UP?o.handleChange(j-1):f.keyCode===i.ARROW_DOWN&&o.handleChange(j+1)},o.changePageSize=function(f){var j=o.state.current,g=h(f,o.state,o.props);j=j>g?g:j,g===0&&(j=o.state.current),typeof f=="number"&&("pageSize"in o.props||o.setState({pageSize:f}),"current"in o.props||o.setState({current:j,currentInputValue:j})),o.props.onShowSizeChange(j,f),"onChange"in o.props&&o.props.onChange&&o.props.onChange(j,f)},o.handleChange=function(f){var j=o.props.disabled,g=f;if(o.isValid(g)&&!j){var R=h(void 0,o.state,o.props);g>R?g=R:g<1&&(g=1),"current"in o.props||o.setState({current:g,currentInputValue:g});var B=o.state.pageSize;return o.props.onChange(g,B),g}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?g-2:0),B=2;B=N?p=N:p=Number(D),p}},{key:"getShowSizeChanger",value:function(){var o=this.props,D=o.showSizeChanger,N=o.total,M=o.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:N>M}},{key:"renderPrev",value:function(o){var D=this.props,N=D.prevIcon,M=D.itemRender,p=M(o,"prev",this.getItemIcon(N,"prev page")),f=!this.hasPrev();return Object(U.isValidElement)(p)?Object(U.cloneElement)(p,{disabled:f}):p}},{key:"renderNext",value:function(o){var D=this.props,N=D.nextIcon,M=D.itemRender,p=M(o,"next",this.getItemIcon(N,"next page")),f=!this.hasNext();return Object(U.isValidElement)(p)?Object(U.cloneElement)(p,{disabled:f}):p}},{key:"render",value:function(){var o=this,D=this.props,N=D.prefixCls,M=D.className,p=D.style,f=D.disabled,j=D.hideOnSinglePage,g=D.total,R=D.locale,B=D.showQuickJumper,W=D.showLessItems,K=D.showTitle,G=D.showTotal,J=D.simple,oe=D.itemRender,te=D.showPrevNextJumpers,Oe=D.jumpPrevIcon,ie=D.jumpNextIcon,De=D.selectComponentClass,ye=D.selectPrefixCls,ve=D.pageSizeOptions,fe=this.state,ce=fe.current,je=fe.pageSize,Re=fe.currentInputValue;if(j===!0&&g<=je)return null;var Ee=h(void 0,this.state,this.props),y=[],T=null,z=null,Y=null,de=null,se=null,ae=B&&B.goButton,he=W?1:2,Fe=ce-1>0?ce-1:0,Ge=ce+1=he*2&&ce!==1+2&&(y[0]=Object(U.cloneElement)(y[0],{className:"".concat(N,"-item-after-jump-prev")}),y.unshift(T)),Ee-ce>=he*2&&ce!==Ee-2&&(y[y.length-1]=Object(U.cloneElement)(y[y.length-1],{className:"".concat(N,"-item-before-jump-next")}),y.push(z)),X!==1&&y.unshift(Y),ne!==Ee&&y.push(de)}var Q=null;G&&(Q=v.a.createElement("li",{className:"".concat(N,"-total-text")},G(g,[g===0?0:(ce-1)*je+1,ce*je>g?g:ce*je])));var _=!this.hasPrev()||!Ee,q=!this.hasNext()||!Ee;return v.a.createElement("ul",Object(I.a)({className:a()(N,M,Object(S.a)({},"".concat(N,"-disabled"),f)),style:p,unselectable:"unselectable",ref:this.savePaginationNode},at),Q,v.a.createElement("li",{title:K?R.prev_page:null,onClick:this.prev,tabIndex:_?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(N,"-prev"),Object(S.a)({},"".concat(N,"-disabled"),_)),"aria-disabled":_},this.renderPrev(Fe)),y,v.a.createElement("li",{title:K?R.next_page:null,onClick:this.next,tabIndex:q?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(N,"-next"),Object(S.a)({},"".concat(N,"-disabled"),q)),"aria-disabled":q},this.renderNext(Ge)),v.a.createElement(c,{disabled:f,locale:R,rootPrefixCls:N,selectComponentClass:De,selectPrefixCls:ye,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ce,pageSize:je,pageSizeOptions:ve,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ae}))}}],[{key:"getDerivedStateFromProps",value:function(o,D){var N={};if("current"in o&&(N.current=o.current,o.current!==D.current&&(N.currentInputValue=N.current)),"pageSize"in o&&o.pageSize!==D.pageSize){var M=D.current,p=h(o.pageSize,D,o);M=M>p?p:M,"current"in o||(N.current=M,N.currentInputValue=M),N.pageSize=o.pageSize}return N}}]),E}(v.a.Component);L.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:e,locale:n.a,style:{},itemRender:d,totalBoundaryShowSizeChanger:50};var O=L},"6RRn":function(xe,x,t){"use strict";var I=t("wCXF"),S=t("n6Qo");t.d(x,"b",function(){return S.a});var H=t("IBYe"),k=t("6eGT"),P=t("hW8S");t.d(x,"a",function(){return P.a}),x.c=I.b},"6eGT":function(xe,x,t){"use strict";function I(S){return null}x.a=I},"746U":function(xe,x,t){"use strict";t.d(x,"d",function(){return S}),t.d(x,"j",function(){return H}),t.d(x,"i",function(){return k}),t.d(x,"h",function(){return P}),t.d(x,"e",function(){return m}),t.d(x,"k",function(){return V}),t.d(x,"l",function(){return U}),t.d(x,"a",function(){return v}),t.d(x,"f",function(){return a}),t.d(x,"g",function(){return s}),t.d(x,"m",function(){return u}),t.d(x,"c",function(){return c}),t.d(x,"b",function(){return n}),t.d(x,"n",function(){return e}),t.d(x,"o",function(){return l});var I={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function S(d){return Array.isArray?Array.isArray(d):!!(d&&typeof d.length===I.number&&d.constructor===Array)}function H(d){return typeof d===I.string||d instanceof String}function k(d){return typeof d===I.object&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}function P(d){return(typeof d===I.number||d instanceof Number)&&!isNaN(d)}function m(d){return d===!0||d===!1}function V(d){return typeof d===I.undefined}function U(d){return V(d)||d===null}function v(d,h){if(!d)throw new Error(h?"Unexpected type, expected '"+h+"'":"Unexpected type")}var C=Object.prototype.hasOwnProperty;function a(d){if(!k(d))return!1;for(var h in d)if(C.call(d,h))return!1;return!0}function s(d){return typeof d===I.function}function u(d,h){for(var L=Math.min(d.length,h.length),O=0;O0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function n(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(d){var h=d.key,L=d.children;Object(P.a)(h!=null,"Tree node must have a certain key: [".concat(l).concat(h,"]"));var O=String(h);Object(P.a)(!c.has(O)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(O)),c.set(O,!0),n(L,"".concat(l).concat(O," > "))})}n(r)}function v(r){function c(n){var e=Object(k.a)(n);return e.map(function(l){if(!Object(m.i)(l))return Object(P.a)(!l,"Tree/TreeNode can only accept TreeNode as children."),null;var d=l.key,h=l.props,L=h.children,O=Object(H.a)(h,["children"]),A=Object(S.a)({key:d},O),F=c(L);return F.length&&(A.children=F),A}).filter(function(l){return l})}return c(r)}function C(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=new Set(c===!0?[]:c),e=[];function l(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(L,O){var A=Object(m.h)(h?h.pos:"0",O),F=V(L.key,A),E=Object(S.a)(Object(S.a)({},L),{},{parent:h,pos:A,children:null,data:L,isStart:[].concat(Object(I.a)(h?h.isStart:[]),[O===0]),isEnd:[].concat(Object(I.a)(h?h.isEnd:[]),[O===d.length-1])});return e.push(E),c===!0||n.has(F)?E.children=l(L.children||[],E):E.children=[],E})}return l(r),e}function a(r,c,n){var e;n?typeof n=="string"?e=function(h){return h[n]}:typeof n=="function"&&(e=function(h){return n(h)}):e=function(h,L){return V(h.key,L)};function l(d,h,L){var O=d?d.children:r,A=d?Object(m.h)(L.pos,h):"0";if(d){var F=e(d,A),E={node:d,index:h,pos:A,key:F,parentPos:L.node?L.pos:null,level:L.level+1};c(E)}O&&O.forEach(function(b,o){l(b,o,{node:d,pos:A,level:L?L.level+1:-1})})}l(null)}function s(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.initWrapper,e=c.processEntity,l=c.onProcessFinished,d=arguments.length>2?arguments[2]:void 0,h={},L={},O={posEntities:h,keyEntities:L};return n&&(O=n(O)||O),a(r,function(A){var F=A.node,E=A.index,b=A.pos,o=A.key,D=A.parentPos,N=A.level,M={node:F,index:E,key:o,pos:b,level:N},p=V(o,b);h[b]=M,L[p]=M,M.parent=h[D],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),e&&e(M,O)},d),l&&l(O),O}function u(r,c){var n=c.expandedKeys,e=c.selectedKeys,l=c.loadedKeys,d=c.loadingKeys,h=c.checkedKeys,L=c.halfCheckedKeys,O=c.dragOverNodeKey,A=c.dropPosition,F=c.keyEntities,E=F[r],b={eventKey:r,expanded:n.indexOf(r)!==-1,selected:e.indexOf(r)!==-1,loaded:l.indexOf(r)!==-1,loading:d.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:L.indexOf(r)!==-1,pos:String(E?E.pos:""),dragOver:O===r&&A===0,dragOverGapTop:O===r&&A===-1,dragOverGapBottom:O===r&&A===1};return b}function i(r){var c=r.data,n=r.expanded,e=r.selected,l=r.checked,d=r.loaded,h=r.loading,L=r.halfChecked,O=r.dragOver,A=r.dragOverGapTop,F=r.dragOverGapBottom,E=r.pos,b=r.active,o=Object(S.a)(Object(S.a)({},c),{},{expanded:n,selected:e,checked:l,loaded:d,loading:h,halfChecked:L,dragOver:O,dragOverGapTop:A,dragOverGapBottom:F,pos:E,active:b});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(P.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),o}},"8HAY":function(xe,x,t){"use strict";t.d(x,"a",function(){return m}),t.d(x,"b",function(){return V});var I=t("pmY6"),S=t("MI8n"),H=function(){var U=function(v,C){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])},U(v,C)};return function(v,C){U(v,C);function a(){this.constructor=v}v.prototype=C===null?Object.create(C):(a.prototype=C.prototype,new a)}}(),k=function(U,v,C,a){function s(u){return u instanceof C?u:new C(function(i){i(u)})}return new(C||(C=Promise))(function(u,i){function r(e){try{n(a.next(e))}catch(l){i(l)}}function c(e){try{n(a.throw(e))}catch(l){i(l)}}function n(e){e.done?u(e.value):s(e.value).then(r,c)}n((a=a.apply(U,v||[])).next())})},P=function(U,v){var C={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},a,s,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(n){return function(e){return c([n,e])}}function c(n){if(a)throw new TypeError("Generator is already executing.");for(;C;)try{if(a=1,s&&(u=n[0]&2?s.return:n[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,n[1])).done)return u;(s=0,u)&&(n=[n[0]&2,u.value]);switch(n[0]){case 0:case 1:u=n;break;case 4:return C.label++,{value:n[1],done:!1};case 5:C.label++,s=n[1],n=[0];continue;case 7:n=C.ops.pop(),C.trys.pop();continue;default:if(!(u=C.trys,u=u.length>0&&u[u.length-1])&&(n[0]===6||n[0]===2)){C=0;continue}if(n[0]===3&&(!u||n[1]>u[0]&&n[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(I.a)())return null;var C=document.createElement("style");if((U=v.csp)===null||U===void 0?void 0:U.nonce){var a;C.nonce=(a=v.csp)===null||a===void 0?void 0:a.nonce}C.innerHTML=V;var s=H(v),u=s.firstChild;return v.prepend&&s.prepend?s.prepend(C):v.prepend&&u?s.insertBefore(C,u):s.appendChild(C),C}var P=new Map;function m(V,U){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=H(v);if(!P.has(C)){var a=k("",v),s=a.parentNode;P.set(C,s),s.removeChild(a)}var u=Array.from(P.get(C).children).find(function(e){return e.tagName==="STYLE"&&e[S]===U});if(u){var i,r;if(((i=v.csp)===null||i===void 0?void 0:i.nonce)&&u.nonce!==((r=v.csp)===null||r===void 0?void 0:r.nonce)){var c;u.nonce=(c=v.csp)===null||c===void 0?void 0:c.nonce}return u.innerHTML!==V&&(u.innerHTML=V),u}var n=k(V,v);return n[S]=U,n}},"C/vA":function(xe,x,t){"use strict";t.d(x,"a",function(){return I});function I(S){var H=this,k=!1,P;return function(){return k||(k=!0,P=S.apply(H,arguments)),P}}},"Cg/j":function(xe,x,t){"use strict";t.d(x,"b",function(){return I}),t.d(x,"a",function(){return S}),t.d(x,"c",function(){return k}),t.d(x,"d",function(){return P});var I;(function(m){m.serviceIds=new Map,m.DI_TARGET="$di$target",m.DI_DEPENDENCIES="$di$dependencies";function V(U){return U[m.DI_DEPENDENCIES]||[]}m.getServiceDependencies=V})(I||(I={}));var S=k("instantiationService");function H(m,V,U,v){V[I.DI_TARGET]===V?V[I.DI_DEPENDENCIES].push({id:m,index:U,optional:v}):(V[I.DI_DEPENDENCIES]=[{id:m,index:U,optional:v}],V[I.DI_TARGET]=V)}function k(m){if(I.serviceIds.has(m))return I.serviceIds.get(m);var V=function(U,v,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");H(V,U,C,!1)};return V.toString=function(){return m},I.serviceIds.set(m,V),V}function P(m){return function(V,U,v){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");H(m,V,v,!0)}}},IBYe:function(xe,x,t){"use strict";function I(S){return null}x.a=I},JYp7:function(xe,x,t){"use strict";t.d(x,"c",function(){return S}),t.d(x,"d",function(){return H}),t.d(x,"f",function(){return P}),t.d(x,"a",function(){return m}),t.d(x,"b",function(){return V}),t.d(x,"e",function(){return U});var I=function(){var v=function(C,a){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var i in u)u.hasOwnProperty(i)&&(s[i]=u[i])},v(C,a)};return function(C,a){v(C,a);function s(){this.constructor=C}C.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}}(),S={done:!0,value:void 0},H;(function(v){var C={next:function(){return S}};function a(){return C}v.empty=a;function s(L){var O=!1;return{next:function(){return O?S:(O=!0,{done:!1,value:L})}}}v.single=s;function u(L,O,A){return O===void 0&&(O=0),A===void 0&&(A=L.length),{next:function(){return O>=A?S:{done:!1,value:L[O++]}}}}v.fromArray=u;function i(L){return{next:function(){var O=L.next();return O.done?S:{done:!1,value:O.value}}}}v.fromNativeIterator=i;function r(L){return L?Array.isArray(L)?v.fromArray(L):L:v.empty()}v.from=r;function c(L,O){return{next:function(){var A=L.next();return A.done?S:{done:!1,value:O(A.value)}}}}v.map=c;function n(L,O){return{next:function(){for(;;){var A=L.next();if(A.done)return S;if(O(A.value))return{done:!1,value:A.value}}}}}v.filter=n;function e(L,O){for(var A=L.next();!A.done;A=L.next())O(A.value)}v.forEach=e;function l(L,O){O===void 0&&(O=Number.POSITIVE_INFINITY);var A=[];if(O===0)return A;for(var F=0,E=L.next();!E.done&&!(A.push(E.value),++F>=O);E=L.next());return A}v.collect=l;function d(){for(var L=[],O=0;O=L.length)return S;var F=L[A],E=F.next();return E.done?(A++,this.next()):E}}}v.concat=d;function h(L){return new k(L)}v.chain=h})(H||(H={}));var k=function(){function v(C){this.it=C}return v.prototype.next=function(){return this.it.next()},v}();function P(v){return Array.isArray(v)?H.fromArray(v):v||H.empty()}var m=function(){function v(C,a,s,u){a===void 0&&(a=0),s===void 0&&(s=C.length),u===void 0&&(u=a-1),this.items=C,this.start=a,this.end=s,this.index=u}return v.prototype.first=function(){return this.index=this.start,this.current()},v.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},v.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},v}(),V=function(v){I(C,v);function C(a,s,u,i){return s===void 0&&(s=0),u===void 0&&(u=a.length),i===void 0&&(i=s-1),v.call(this,a,s,u,i)||this}return C.prototype.current=function(){return v.prototype.current.call(this)},C.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},C.prototype.first=function(){return this.index=this.start,this.current()},C.prototype.last=function(){return this.index=this.end-1,this.current()},C.prototype.parent=function(){return null},C}(m),U=function(){function v(C,a){this.iterator=C,this.fn=a}return v.prototype.next=function(){return this.fn(this.iterator.next())},v}()},LdHM:function(xe,x,t){"use strict";t.d(x,"b",function(){return d}),t.d(x,"a",function(){return L});var I=t("1OyB"),S=t("vuIU"),H=t("Ji7U"),k=t("LK+K"),P=t("q1tI"),m=t("rePB"),V=t("Ff2n"),U=t("ODXe"),v=t("4IlW"),C=t("bX4T"),a=t("YrtM"),s=t("TSYQ"),u=t.n(s),i=t("+nKL"),r=t("8OUc"),c=function(K,G){var J=K.prefixCls,oe=K.id,te=K.flattenOptions,Oe=K.childrenAsData,ie=K.values,De=K.searchValue,ye=K.multiple,ve=K.defaultActiveFirstOption,fe=K.height,ce=K.itemHeight,je=K.notFoundContent,Re=K.open,Ee=K.menuItemSelectedIcon,y=K.virtual,T=K.onSelect,z=K.onToggleOpen,Y=K.onActiveValue,de=K.onScroll,se=K.onMouseEnter,ae="".concat(J,"-item"),he=Object(a.a)(function(){return te},[Re,te],function(ee,Q){return Q[0]&&ee[1]!==Q[1]}),Fe=P.useRef(null),Ge=function(Q){Q.preventDefault()},at=function(Q){Fe.current&&Fe.current.scrollTo({index:Q})},Je=function(Q){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=he.length,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(W).map(function(G,J){if(!P.isValidElement(G)||!G.type)return null;var oe=G.type.isSelectOptGroup,te=G.key,Oe=G.props,ie=Oe.children,De=Object(V.a)(Oe,["children"]);return K||!oe?F(G):Object(O.a)(Object(O.a)({key:"__RC_SELECT_GRP__".concat(te===null?J:te,"__"),label:te},De),{},{options:E(ie)})}).filter(function(G){return G})}var b=t("2Qr1"),o=t("qNPg"),D=t("U8pU"),N=t("Kwbf"),M=t("WKfj");function p(W){var K=W.mode,G=W.options,J=W.children,oe=W.backfill,te=W.allowClear,Oe=W.placeholder,ie=W.getInputElement,De=W.showSearch,ye=W.onSearch,ve=W.defaultOpen,fe=W.autoFocus,ce=W.labelInValue,je=W.value,Re=W.inputValue,Ee=W.optionLabelProp,y=K==="multiple"||K==="tags",T=De!==void 0?De:y||K==="combobox",z=G||E(J);if(Object(N.a)(K!=="tags"||z.every(function(ae){return!ae.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var Y=z.some(function(ae){return ae.options?ae.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in ae?ae.value:ae.key)=="number"});Object(N.a)(!Y,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(N.a)(K!=="combobox"||!Ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(N.a)(K==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(N.a)(K==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(N.b)(K!=="combobox"||!ie||!te||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!T&&K!=="combobox"&&K!=="tags"&&Object(N.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(N.b)(!ve||fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),je!=null){var de=Object(M.d)(je);Object(N.a)(!ce||de.every(function(ae){return Object(D.a)(ae)==="object"&&("key"in ae||"value"in ae)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(N.a)(!y||Array.isArray(je),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var se=null;Object(A.a)(J).some(function(ae){if(!P.isValidElement(ae)||!ae.type)return!1;var he=ae.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Fe=Object(A.a)(ae.props.children).every(function(Ge){return!P.isValidElement(Ge)||!ae.type||Ge.type.isSelectOption?!0:(se=Ge.type,!1)});return!Fe}return se=he,!0}),se&&Object(N.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(se.displayName||se.name||se,"`.")),Object(N.a)(Re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=p,j=Object(o.a)({prefixCls:"rc-select",components:{optionList:e},convertChildrenToData:E,flattenOptions:b.d,getLabeledValue:b.e,filterOptions:b.b,isValueDisabled:b.g,findValueOption:b.c,warningProps:f,fillOptionsWithMissingValue:b.a}),g=function(W){Object(H.a)(G,W);var K=Object(k.a)(G);function G(){var J;return Object(I.a)(this,G),J=K.apply(this,arguments),J.selectRef=P.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(S.a)(G,[{key:"render",value:function(){return P.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),G}(P.Component);g.Option=d,g.OptGroup=L;var R=g,B=x.c=R},MI8n:function(xe,x,t){"use strict";t.d(x,"b",function(){return m}),t.d(x,"a",function(){return v}),t.d(x,"e",function(){return C}),t.d(x,"d",function(){return a}),t.d(x,"c",function(){return s}),t.d(x,"f",function(){return u});var I=t("/cxE"),S=t("C/vA"),H=t("pmY6"),k=t("24hK"),P=function(){var i=function(r,c){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var l in e)e.hasOwnProperty(l)&&(n[l]=e[l])},i(r,c)};return function(r,c){i(r,c);function n(){this.constructor=r}r.prototype=c===null?Object.create(c):(n.prototype=c.prototype,new n)}}(),m;(function(i){i.None=function(){return H.a.None};function r(f){return function(j,g,R){g===void 0&&(g=null);var B=!1,W;return W=f(function(K){return B?void 0:(W?W.dispose():B=!0,j.call(g,K))},null,R),B&&W.dispose(),W}}i.once=r;function c(f,j){return L(function(g,R,B){return R===void 0&&(R=null),f(function(W){return g.call(R,j(W))},null,B)})}i.map=c;function n(f,j){return L(function(g,R,B){return R===void 0&&(R=null),f(function(W){j(W),g.call(R,W)},null,B)})}i.forEach=n;function e(f,j){return L(function(g,R,B){return R===void 0&&(R=null),f(function(W){return j(W)&&g.call(R,W)},null,B)})}i.filter=e;function l(f){return f}i.signal=l;function d(){for(var f=[],j=0;j1)&&oe.fire(Oe),J=0},g)})},onLastListenerRemove:function(){W.dispose()}});return oe.event}i.debounce=O;function A(f){var j=new Date().getTime();return c(r(f),function(g){return new Date().getTime()-j})}i.stopwatch=A;function F(f){var j=!0,g;return e(f,function(R){var B=j||R!==g;return j=!1,g=R,B})}i.latch=F;function E(f,j,g){j===void 0&&(j=!1),g===void 0&&(g=[]);var R=g.slice(),B=f(function(G){R?R.push(G):K.fire(G)}),W=function(){R&&R.forEach(function(G){return K.fire(G)}),R=null},K=new v({onFirstListenerAdd:function(){B||(B=f(function(G){return K.fire(G)}))},onFirstListenerDidAdd:function(){R&&(j?setTimeout(W):W())},onLastListenerRemove:function(){B&&B.dispose(),B=null}});return K.event}i.buffer=E;var b=function(){function f(j){this.event=j}return f.prototype.map=function(j){return new f(c(this.event,j))},f.prototype.forEach=function(j){return new f(n(this.event,j))},f.prototype.filter=function(j){return new f(e(this.event,j))},f.prototype.reduce=function(j,g){return new f(h(this.event,j,g))},f.prototype.latch=function(){return new f(F(this.event))},f.prototype.debounce=function(j,g,R,B){return g===void 0&&(g=100),R===void 0&&(R=!1),new f(O(this.event,j,g,R,B))},f.prototype.on=function(j,g,R){return this.event(j,g,R)},f.prototype.once=function(j,g,R){return r(this.event)(j,g,R)},f}();function o(f){return new b(f)}i.chain=o;function D(f,j,g){g===void 0&&(g=function(G){return G});var R=function(){for(var G=[],J=0;J=0||M.relatedTarget.className.indexOf("".concat(g,"-next"))>=0))return;b.setState({goInputText:""}),j(b.getValidValue())},b.go=function(M){var p=b.state.goInputText;if(p==="")return;(M.keyCode===i.ENTER||M.type==="click")&&(b.setState({goInputText:""}),b.props.quickGo(b.getValidValue()))},b}return Object(T.a)(E,[{key:"getValidValue",value:function(){var o=this.state,D=o.goInputText,N=o.current;return!D||isNaN(D)?N:Number(D)}},{key:"getPageSizeOptions",value:function(){var o=this.props,D=o.pageSize,N=o.pageSizeOptions;return N.some(function(M){return M.toString()===D.toString()})?N:N.concat([D.toString()]).sort(function(M,p){var f=isNaN(Number(M))?0:Number(M),j=isNaN(Number(p))?0:Number(p);return f-j})}},{key:"render",value:function(){var o=this,D=this.props,N=D.pageSize,M=D.locale,p=D.rootPrefixCls,f=D.changeSize,j=D.quickGo,g=D.goButton,R=D.selectComponentClass,B=D.buildOptionText,W=D.selectPrefixCls,K=D.disabled,G=this.state.goInputText,J="".concat(p,"-options"),oe=R,te=null,Oe=null,ie=null;if(!f&&!j)return null;var De=this.getPageSizeOptions();if(f&&oe){var ye=De.map(function(ve,fe){return v.a.createElement(oe.Option,{key:fe,value:ve.toString()},(B||o.buildOptionText)(ve))});te=v.a.createElement(oe,{disabled:K,prefixCls:W,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(N||De[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fe){return fe.parentNode}},ye)}return j&&(g&&(ie=typeof g=="boolean"?v.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(J,"-quick-jumper-button")},M.jump_to_confirm):v.a.createElement("span",{onClick:this.go,onKeyUp:this.go},g)),Oe=v.a.createElement("div",{className:"".concat(J,"-quick-jumper")},M.jump_to,v.a.createElement("input",{disabled:K,type:"text",value:G,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),M.page,ie)),v.a.createElement("li",{className:"".concat(J)},te,Oe)}}]),E}(v.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=r,n=t("N2Kk");function e(){}function l(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A}function d(A,F,E){return E}function h(A,F,E){var b=typeof A=="undefined"?F.pageSize:A;return Math.floor((E.total-1)/b)+1}var L=function(A){Object(m.a)(E,A);var F=Object(V.a)(E);function E(b){var o;Object(k.a)(this,E),o=F.call(this,b),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(h(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(f,j){var g=o.props.prefixCls,R=f||v.a.createElement("button",{type:"button","aria-label":j,className:"".concat(g,"-item-link")});return typeof f=="function"&&(R=v.a.createElement(f,Object(H.a)({},o.props))),R},o.savePaginationNode=function(f){o.paginationNode=f},o.isValid=function(f){return l(f)&&f!==o.state.current},o.shouldDisplayQuickJumper=function(){var f=o.props,j=f.showQuickJumper,g=f.pageSize,R=f.total;return R<=g?!1:j},o.handleKeyDown=function(f){(f.keyCode===i.ARROW_UP||f.keyCode===i.ARROW_DOWN)&&f.preventDefault()},o.handleKeyUp=function(f){var j=o.getValidValue(f),g=o.state.currentInputValue;j!==g&&o.setState({currentInputValue:j}),f.keyCode===i.ENTER?o.handleChange(j):f.keyCode===i.ARROW_UP?o.handleChange(j-1):f.keyCode===i.ARROW_DOWN&&o.handleChange(j+1)},o.changePageSize=function(f){var j=o.state.current,g=h(f,o.state,o.props);j=j>g?g:j,g===0&&(j=o.state.current),typeof f=="number"&&("pageSize"in o.props||o.setState({pageSize:f}),"current"in o.props||o.setState({current:j,currentInputValue:j})),o.props.onShowSizeChange(j,f),"onChange"in o.props&&o.props.onChange&&o.props.onChange(j,f)},o.handleChange=function(f){var j=o.props.disabled,g=f;if(o.isValid(g)&&!j){var R=h(void 0,o.state,o.props);g>R?g=R:g<1&&(g=1),"current"in o.props||o.setState({current:g,currentInputValue:g});var B=o.state.pageSize;return o.props.onChange(g,B),g}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?g-2:0),B=2;B=N?p=N:p=Number(D),p}},{key:"getShowSizeChanger",value:function(){var o=this.props,D=o.showSizeChanger,N=o.total,M=o.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:N>M}},{key:"renderPrev",value:function(o){var D=this.props,N=D.prevIcon,M=D.itemRender,p=M(o,"prev",this.getItemIcon(N,"prev page")),f=!this.hasPrev();return Object(U.isValidElement)(p)?Object(U.cloneElement)(p,{disabled:f}):p}},{key:"renderNext",value:function(o){var D=this.props,N=D.nextIcon,M=D.itemRender,p=M(o,"next",this.getItemIcon(N,"next page")),f=!this.hasNext();return Object(U.isValidElement)(p)?Object(U.cloneElement)(p,{disabled:f}):p}},{key:"render",value:function(){var o=this,D=this.props,N=D.prefixCls,M=D.className,p=D.style,f=D.disabled,j=D.hideOnSinglePage,g=D.total,R=D.locale,B=D.showQuickJumper,W=D.showLessItems,K=D.showTitle,G=D.showTotal,J=D.simple,oe=D.itemRender,te=D.showPrevNextJumpers,Oe=D.jumpPrevIcon,ie=D.jumpNextIcon,De=D.selectComponentClass,ye=D.selectPrefixCls,ve=D.pageSizeOptions,fe=this.state,ce=fe.current,je=fe.pageSize,Re=fe.currentInputValue;if(j===!0&&g<=je)return null;var Ee=h(void 0,this.state,this.props),y=[],P=null,z=null,Y=null,de=null,se=null,ae=B&&B.goButton,he=W?1:2,Fe=ce-1>0?ce-1:0,Ge=ce+1=he*2&&ce!==1+2&&(y[0]=Object(U.cloneElement)(y[0],{className:"".concat(N,"-item-after-jump-prev")}),y.unshift(P)),Ee-ce>=he*2&&ce!==Ee-2&&(y[y.length-1]=Object(U.cloneElement)(y[y.length-1],{className:"".concat(N,"-item-before-jump-next")}),y.push(z)),X!==1&&y.unshift(Y),ne!==Ee&&y.push(de)}var Q=null;G&&(Q=v.a.createElement("li",{className:"".concat(N,"-total-text")},G(g,[g===0?0:(ce-1)*je+1,ce*je>g?g:ce*je])));var _=!this.hasPrev()||!Ee,q=!this.hasNext()||!Ee;return v.a.createElement("ul",Object(I.a)({className:a()(N,M,Object(S.a)({},"".concat(N,"-disabled"),f)),style:p,unselectable:"unselectable",ref:this.savePaginationNode},at),Q,v.a.createElement("li",{title:K?R.prev_page:null,onClick:this.prev,tabIndex:_?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(N,"-prev"),Object(S.a)({},"".concat(N,"-disabled"),_)),"aria-disabled":_},this.renderPrev(Fe)),y,v.a.createElement("li",{title:K?R.next_page:null,onClick:this.next,tabIndex:q?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(N,"-next"),Object(S.a)({},"".concat(N,"-disabled"),q)),"aria-disabled":q},this.renderNext(Ge)),v.a.createElement(c,{disabled:f,locale:R,rootPrefixCls:N,selectComponentClass:De,selectPrefixCls:ye,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ce,pageSize:je,pageSizeOptions:ve,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ae}))}}],[{key:"getDerivedStateFromProps",value:function(o,D){var N={};if("current"in o&&(N.current=o.current,o.current!==D.current&&(N.currentInputValue=N.current)),"pageSize"in o&&o.pageSize!==D.pageSize){var M=D.current,p=h(o.pageSize,D,o);M=M>p?p:M,"current"in o||(N.current=M,N.currentInputValue=M),N.pageSize=o.pageSize}return N}}]),E}(v.a.Component);L.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:e,locale:n.a,style:{},itemRender:d,totalBoundaryShowSizeChanger:50};var O=L},"6RRn":function(xe,x,t){"use strict";var I=t("wCXF"),S=t("n6Qo");t.d(x,"b",function(){return S.a});var H=t("IBYe"),k=t("6eGT"),T=t("hW8S");t.d(x,"a",function(){return T.a}),x.c=I.b},"6eGT":function(xe,x,t){"use strict";function I(S){return null}x.a=I},"746U":function(xe,x,t){"use strict";t.d(x,"d",function(){return S}),t.d(x,"j",function(){return H}),t.d(x,"i",function(){return k}),t.d(x,"h",function(){return T}),t.d(x,"e",function(){return m}),t.d(x,"k",function(){return V}),t.d(x,"l",function(){return U}),t.d(x,"a",function(){return v}),t.d(x,"f",function(){return a}),t.d(x,"g",function(){return s}),t.d(x,"m",function(){return u}),t.d(x,"c",function(){return c}),t.d(x,"b",function(){return n}),t.d(x,"n",function(){return e}),t.d(x,"o",function(){return l});var I={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function S(d){return Array.isArray?Array.isArray(d):!!(d&&typeof d.length===I.number&&d.constructor===Array)}function H(d){return typeof d===I.string||d instanceof String}function k(d){return typeof d===I.object&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}function T(d){return(typeof d===I.number||d instanceof Number)&&!isNaN(d)}function m(d){return d===!0||d===!1}function V(d){return typeof d===I.undefined}function U(d){return V(d)||d===null}function v(d,h){if(!d)throw new Error(h?"Unexpected type, expected '"+h+"'":"Unexpected type")}var C=Object.prototype.hasOwnProperty;function a(d){if(!k(d))return!1;for(var h in d)if(C.call(d,h))return!1;return!0}function s(d){return typeof d===I.function}function u(d,h){for(var L=Math.min(d.length,h.length),O=0;O0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function n(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(d){var h=d.key,L=d.children;Object(T.a)(h!=null,"Tree node must have a certain key: [".concat(l).concat(h,"]"));var O=String(h);Object(T.a)(!c.has(O)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(O)),c.set(O,!0),n(L,"".concat(l).concat(O," > "))})}n(r)}function v(r){function c(n){var e=Object(k.a)(n);return e.map(function(l){if(!Object(m.i)(l))return Object(T.a)(!l,"Tree/TreeNode can only accept TreeNode as children."),null;var d=l.key,h=l.props,L=h.children,O=Object(H.a)(h,["children"]),A=Object(S.a)({key:d},O),F=c(L);return F.length&&(A.children=F),A}).filter(function(l){return l})}return c(r)}function C(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=new Set(c===!0?[]:c),e=[];function l(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(L,O){var A=Object(m.h)(h?h.pos:"0",O),F=V(L.key,A),E=Object(S.a)(Object(S.a)({},L),{},{parent:h,pos:A,children:null,data:L,isStart:[].concat(Object(I.a)(h?h.isStart:[]),[O===0]),isEnd:[].concat(Object(I.a)(h?h.isEnd:[]),[O===d.length-1])});return e.push(E),c===!0||n.has(F)?E.children=l(L.children||[],E):E.children=[],E})}return l(r),e}function a(r,c,n){var e;n?typeof n=="string"?e=function(h){return h[n]}:typeof n=="function"&&(e=function(h){return n(h)}):e=function(h,L){return V(h.key,L)};function l(d,h,L){var O=d?d.children:r,A=d?Object(m.h)(L.pos,h):"0";if(d){var F=e(d,A),E={node:d,index:h,pos:A,key:F,parentPos:L.node?L.pos:null,level:L.level+1};c(E)}O&&O.forEach(function(b,o){l(b,o,{node:d,pos:A,level:L?L.level+1:-1})})}l(null)}function s(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=c.initWrapper,e=c.processEntity,l=c.onProcessFinished,d=arguments.length>2?arguments[2]:void 0,h={},L={},O={posEntities:h,keyEntities:L};return n&&(O=n(O)||O),a(r,function(A){var F=A.node,E=A.index,b=A.pos,o=A.key,D=A.parentPos,N=A.level,M={node:F,index:E,key:o,pos:b,level:N},p=V(o,b);h[b]=M,L[p]=M,M.parent=h[D],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),e&&e(M,O)},d),l&&l(O),O}function u(r,c){var n=c.expandedKeys,e=c.selectedKeys,l=c.loadedKeys,d=c.loadingKeys,h=c.checkedKeys,L=c.halfCheckedKeys,O=c.dragOverNodeKey,A=c.dropPosition,F=c.keyEntities,E=F[r],b={eventKey:r,expanded:n.indexOf(r)!==-1,selected:e.indexOf(r)!==-1,loaded:l.indexOf(r)!==-1,loading:d.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:L.indexOf(r)!==-1,pos:String(E?E.pos:""),dragOver:O===r&&A===0,dragOverGapTop:O===r&&A===-1,dragOverGapBottom:O===r&&A===1};return b}function i(r){var c=r.data,n=r.expanded,e=r.selected,l=r.checked,d=r.loaded,h=r.loading,L=r.halfChecked,O=r.dragOver,A=r.dragOverGapTop,F=r.dragOverGapBottom,E=r.pos,b=r.active,o=Object(S.a)(Object(S.a)({},c),{},{expanded:n,selected:e,checked:l,loaded:d,loading:h,halfChecked:L,dragOver:O,dragOverGapTop:A,dragOverGapBottom:F,pos:E,active:b});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),o}},"8HAY":function(xe,x,t){"use strict";t.d(x,"a",function(){return m}),t.d(x,"b",function(){return V});var I=t("pmY6"),S=t("MI8n"),H=function(){var U=function(v,C){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])},U(v,C)};return function(v,C){U(v,C);function a(){this.constructor=v}v.prototype=C===null?Object.create(C):(a.prototype=C.prototype,new a)}}(),k=function(U,v,C,a){function s(u){return u instanceof C?u:new C(function(i){i(u)})}return new(C||(C=Promise))(function(u,i){function r(e){try{n(a.next(e))}catch(l){i(l)}}function c(e){try{n(a.throw(e))}catch(l){i(l)}}function n(e){e.done?u(e.value):s(e.value).then(r,c)}n((a=a.apply(U,v||[])).next())})},T=function(U,v){var C={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},a,s,u,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(n){return function(e){return c([n,e])}}function c(n){if(a)throw new TypeError("Generator is already executing.");for(;C;)try{if(a=1,s&&(u=n[0]&2?s.return:n[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,n[1])).done)return u;(s=0,u)&&(n=[n[0]&2,u.value]);switch(n[0]){case 0:case 1:u=n;break;case 4:return C.label++,{value:n[1],done:!1};case 5:C.label++,s=n[1],n=[0];continue;case 7:n=C.ops.pop(),C.trys.pop();continue;default:if(!(u=C.trys,u=u.length>0&&u[u.length-1])&&(n[0]===6||n[0]===2)){C=0;continue}if(n[0]===3&&(!u||n[1]>u[0]&&n[1]1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(I.a)())return null;var C=document.createElement("style");if((U=v.csp)===null||U===void 0?void 0:U.nonce){var a;C.nonce=(a=v.csp)===null||a===void 0?void 0:a.nonce}C.innerHTML=V;var s=H(v),u=s.firstChild;return v.prepend&&s.prepend?s.prepend(C):v.prepend&&u?s.insertBefore(C,u):s.appendChild(C),C}var T=new Map;function m(V,U){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=H(v);if(!T.has(C)){var a=k("",v),s=a.parentNode;T.set(C,s),s.removeChild(a)}var u=Array.from(T.get(C).children).find(function(e){return e.tagName==="STYLE"&&e[S]===U});if(u){var i,r;if(((i=v.csp)===null||i===void 0?void 0:i.nonce)&&u.nonce!==((r=v.csp)===null||r===void 0?void 0:r.nonce)){var c;u.nonce=(c=v.csp)===null||c===void 0?void 0:c.nonce}return u.innerHTML!==V&&(u.innerHTML=V),u}var n=k(V,v);return n[S]=U,n}},"C/vA":function(xe,x,t){"use strict";t.d(x,"a",function(){return I});function I(S){var H=this,k=!1,T;return function(){return k||(k=!0,T=S.apply(H,arguments)),T}}},"Cg/j":function(xe,x,t){"use strict";t.d(x,"b",function(){return I}),t.d(x,"a",function(){return S}),t.d(x,"c",function(){return k}),t.d(x,"d",function(){return T});var I;(function(m){m.serviceIds=new Map,m.DI_TARGET="$di$target",m.DI_DEPENDENCIES="$di$dependencies";function V(U){return U[m.DI_DEPENDENCIES]||[]}m.getServiceDependencies=V})(I||(I={}));var S=k("instantiationService");function H(m,V,U,v){V[I.DI_TARGET]===V?V[I.DI_DEPENDENCIES].push({id:m,index:U,optional:v}):(V[I.DI_DEPENDENCIES]=[{id:m,index:U,optional:v}],V[I.DI_TARGET]=V)}function k(m){if(I.serviceIds.has(m))return I.serviceIds.get(m);var V=function(U,v,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");H(V,U,C,!1)};return V.toString=function(){return m},I.serviceIds.set(m,V),V}function T(m){return function(V,U,v){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");H(m,V,v,!0)}}},IBYe:function(xe,x,t){"use strict";function I(S){return null}x.a=I},JYp7:function(xe,x,t){"use strict";t.d(x,"c",function(){return S}),t.d(x,"d",function(){return H}),t.d(x,"f",function(){return T}),t.d(x,"a",function(){return m}),t.d(x,"b",function(){return V}),t.d(x,"e",function(){return U});var I=function(){var v=function(C,a){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var i in u)u.hasOwnProperty(i)&&(s[i]=u[i])},v(C,a)};return function(C,a){v(C,a);function s(){this.constructor=C}C.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}}(),S={done:!0,value:void 0},H;(function(v){var C={next:function(){return S}};function a(){return C}v.empty=a;function s(L){var O=!1;return{next:function(){return O?S:(O=!0,{done:!1,value:L})}}}v.single=s;function u(L,O,A){return O===void 0&&(O=0),A===void 0&&(A=L.length),{next:function(){return O>=A?S:{done:!1,value:L[O++]}}}}v.fromArray=u;function i(L){return{next:function(){var O=L.next();return O.done?S:{done:!1,value:O.value}}}}v.fromNativeIterator=i;function r(L){return L?Array.isArray(L)?v.fromArray(L):L:v.empty()}v.from=r;function c(L,O){return{next:function(){var A=L.next();return A.done?S:{done:!1,value:O(A.value)}}}}v.map=c;function n(L,O){return{next:function(){for(;;){var A=L.next();if(A.done)return S;if(O(A.value))return{done:!1,value:A.value}}}}}v.filter=n;function e(L,O){for(var A=L.next();!A.done;A=L.next())O(A.value)}v.forEach=e;function l(L,O){O===void 0&&(O=Number.POSITIVE_INFINITY);var A=[];if(O===0)return A;for(var F=0,E=L.next();!E.done&&!(A.push(E.value),++F>=O);E=L.next());return A}v.collect=l;function d(){for(var L=[],O=0;O=L.length)return S;var F=L[A],E=F.next();return E.done?(A++,this.next()):E}}}v.concat=d;function h(L){return new k(L)}v.chain=h})(H||(H={}));var k=function(){function v(C){this.it=C}return v.prototype.next=function(){return this.it.next()},v}();function T(v){return Array.isArray(v)?H.fromArray(v):v||H.empty()}var m=function(){function v(C,a,s,u){a===void 0&&(a=0),s===void 0&&(s=C.length),u===void 0&&(u=a-1),this.items=C,this.start=a,this.end=s,this.index=u}return v.prototype.first=function(){return this.index=this.start,this.current()},v.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},v.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},v}(),V=function(v){I(C,v);function C(a,s,u,i){return s===void 0&&(s=0),u===void 0&&(u=a.length),i===void 0&&(i=s-1),v.call(this,a,s,u,i)||this}return C.prototype.current=function(){return v.prototype.current.call(this)},C.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},C.prototype.first=function(){return this.index=this.start,this.current()},C.prototype.last=function(){return this.index=this.end-1,this.current()},C.prototype.parent=function(){return null},C}(m),U=function(){function v(C,a){this.iterator=C,this.fn=a}return v.prototype.next=function(){return this.fn(this.iterator.next())},v}()},LdHM:function(xe,x,t){"use strict";t.d(x,"b",function(){return d}),t.d(x,"a",function(){return L});var I=t("1OyB"),S=t("vuIU"),H=t("Ji7U"),k=t("LK+K"),T=t("q1tI"),m=t("rePB"),V=t("Ff2n"),U=t("ODXe"),v=t("4IlW"),C=t("bX4T"),a=t("YrtM"),s=t("TSYQ"),u=t.n(s),i=t("+nKL"),r=t("8OUc"),c=function(K,G){var J=K.prefixCls,oe=K.id,te=K.flattenOptions,Oe=K.childrenAsData,ie=K.values,De=K.searchValue,ye=K.multiple,ve=K.defaultActiveFirstOption,fe=K.height,ce=K.itemHeight,je=K.notFoundContent,Re=K.open,Ee=K.menuItemSelectedIcon,y=K.virtual,P=K.onSelect,z=K.onToggleOpen,Y=K.onActiveValue,de=K.onScroll,se=K.onMouseEnter,ae="".concat(J,"-item"),he=Object(a.a)(function(){return te},[Re,te],function(ee,Q){return Q[0]&&ee[1]!==Q[1]}),Fe=T.useRef(null),Ge=function(Q){Q.preventDefault()},at=function(Q){Fe.current&&Fe.current.scrollTo({index:Q})},Je=function(Q){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=he.length,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(W).map(function(G,J){if(!T.isValidElement(G)||!G.type)return null;var oe=G.type.isSelectOptGroup,te=G.key,Oe=G.props,ie=Oe.children,De=Object(V.a)(Oe,["children"]);return K||!oe?F(G):Object(O.a)(Object(O.a)({key:"__RC_SELECT_GRP__".concat(te===null?J:te,"__"),label:te},De),{},{options:E(ie)})}).filter(function(G){return G})}var b=t("2Qr1"),o=t("qNPg"),D=t("U8pU"),N=t("Kwbf"),M=t("WKfj");function p(W){var K=W.mode,G=W.options,J=W.children,oe=W.backfill,te=W.allowClear,Oe=W.placeholder,ie=W.getInputElement,De=W.showSearch,ye=W.onSearch,ve=W.defaultOpen,fe=W.autoFocus,ce=W.labelInValue,je=W.value,Re=W.inputValue,Ee=W.optionLabelProp,y=K==="multiple"||K==="tags",P=De!==void 0?De:y||K==="combobox",z=G||E(J);if(Object(N.a)(K!=="tags"||z.every(function(ae){return!ae.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var Y=z.some(function(ae){return ae.options?ae.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in ae?ae.value:ae.key)=="number"});Object(N.a)(!Y,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(N.a)(K!=="combobox"||!Ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(N.a)(K==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(N.a)(K==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(N.b)(K!=="combobox"||!ie||!te||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!P&&K!=="combobox"&&K!=="tags"&&Object(N.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(N.b)(!ve||fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),je!=null){var de=Object(M.d)(je);Object(N.a)(!ce||de.every(function(ae){return Object(D.a)(ae)==="object"&&("key"in ae||"value"in ae)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(N.a)(!y||Array.isArray(je),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var se=null;Object(A.a)(J).some(function(ae){if(!T.isValidElement(ae)||!ae.type)return!1;var he=ae.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Fe=Object(A.a)(ae.props.children).every(function(Ge){return!T.isValidElement(Ge)||!ae.type||Ge.type.isSelectOption?!0:(se=Ge.type,!1)});return!Fe}return se=he,!0}),se&&Object(N.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(se.displayName||se.name||se,"`.")),Object(N.a)(Re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=p,j=Object(o.a)({prefixCls:"rc-select",components:{optionList:e},convertChildrenToData:E,flattenOptions:b.d,getLabeledValue:b.e,filterOptions:b.b,isValueDisabled:b.g,findValueOption:b.c,warningProps:f,fillOptionsWithMissingValue:b.a}),g=function(W){Object(H.a)(G,W);var K=Object(k.a)(G);function G(){var J;return Object(I.a)(this,G),J=K.apply(this,arguments),J.selectRef=T.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(S.a)(G,[{key:"render",value:function(){return T.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),G}(T.Component);g.Option=d,g.OptGroup=L;var R=g,B=x.c=R},MI8n:function(xe,x,t){"use strict";t.d(x,"b",function(){return m}),t.d(x,"a",function(){return v}),t.d(x,"e",function(){return C}),t.d(x,"d",function(){return a}),t.d(x,"c",function(){return s}),t.d(x,"f",function(){return u});var I=t("/cxE"),S=t("C/vA"),H=t("pmY6"),k=t("24hK"),T=function(){var i=function(r,c){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var l in e)e.hasOwnProperty(l)&&(n[l]=e[l])},i(r,c)};return function(r,c){i(r,c);function n(){this.constructor=r}r.prototype=c===null?Object.create(c):(n.prototype=c.prototype,new n)}}(),m;(function(i){i.None=function(){return H.a.None};function r(f){return function(j,g,R){g===void 0&&(g=null);var B=!1,W;return W=f(function(K){return B?void 0:(W?W.dispose():B=!0,j.call(g,K))},null,R),B&&W.dispose(),W}}i.once=r;function c(f,j){return L(function(g,R,B){return R===void 0&&(R=null),f(function(W){return g.call(R,j(W))},null,B)})}i.map=c;function n(f,j){return L(function(g,R,B){return R===void 0&&(R=null),f(function(W){j(W),g.call(R,W)},null,B)})}i.forEach=n;function e(f,j){return L(function(g,R,B){return R===void 0&&(R=null),f(function(W){return j(W)&&g.call(R,W)},null,B)})}i.filter=e;function l(f){return f}i.signal=l;function d(){for(var f=[],j=0;j1)&&oe.fire(Oe),J=0},g)})},onLastListenerRemove:function(){W.dispose()}});return oe.event}i.debounce=O;function A(f){var j=new Date().getTime();return c(r(f),function(g){return new Date().getTime()-j})}i.stopwatch=A;function F(f){var j=!0,g;return e(f,function(R){var B=j||R!==g;return j=!1,g=R,B})}i.latch=F;function E(f,j,g){j===void 0&&(j=!1),g===void 0&&(g=[]);var R=g.slice(),B=f(function(G){R?R.push(G):K.fire(G)}),W=function(){R&&R.forEach(function(G){return K.fire(G)}),R=null},K=new v({onFirstListenerAdd:function(){B||(B=f(function(G){return K.fire(G)}))},onFirstListenerDidAdd:function(){R&&(j?setTimeout(W):W())},onLastListenerRemove:function(){B&&B.dispose(),B=null}});return K.event}i.buffer=E;var b=function(){function f(j){this.event=j}return f.prototype.map=function(j){return new f(c(this.event,j))},f.prototype.forEach=function(j){return new f(n(this.event,j))},f.prototype.filter=function(j){return new f(e(this.event,j))},f.prototype.reduce=function(j,g){return new f(h(this.event,j,g))},f.prototype.latch=function(){return new f(F(this.event))},f.prototype.debounce=function(j,g,R,B){return g===void 0&&(g=100),R===void 0&&(R=!1),new f(O(this.event,j,g,R,B))},f.prototype.on=function(j,g,R){return this.event(j,g,R)},f.prototype.once=function(j,g,R){return r(this.event)(j,g,R)},f}();function o(f){return new b(f)}i.chain=o;function D(f,j,g){g===void 0&&(g=function(G){return G});var R=function(){for(var G=[],J=0;J0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(i.prototype,"event",{get:function(){var r=this;return this._event||(this._event=function(c,n,e){r._listeners||(r._listeners=new k.a);var l=r._listeners.isEmpty();l&&r._options&&r._options.onFirstListenerAdd&&r._options.onFirstListenerAdd(r);var d=r._listeners.push(n?[c,n]:c);l&&r._options&&r._options.onFirstListenerDidAdd&&r._options.onFirstListenerDidAdd(r),r._options&&r._options.onListenerDidAdd&&r._options.onListenerDidAdd(r,c,n);var h;r._leakageMon&&(h=r._leakageMon.check(r._listeners.size));var L;return L={dispose:function(){if(h&&h(),L.dispose=i._noop,!r._disposed&&(d(),r._options&&r._options.onLastListenerRemove)){var O=r._listeners&&!r._listeners.isEmpty();O||r._options.onLastListenerRemove(r)}}},e instanceof H.b?e.add(L):Array.isArray(e)&&e.push(L),L}),this._event},enumerable:!0,configurable:!0}),i.prototype.fire=function(r){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.a);for(var c=this._listeners.iterator(),n=c.next();!n.done;n=c.next())this._deliveryQueue.push([n.value,r]);for(;this._deliveryQueue.size>0;){var e=this._deliveryQueue.shift(),l=e[0],d=e[1];try{typeof l=="function"?l.call(void 0,d):l[0].call(l[1],d)}catch(h){Object(I.e)(h)}}}},i.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},i._noop=function(){},i}(),C=function(i){P(r,i);function r(c){var n=i.call(this,c)||this;return n._isPaused=0,n._eventQueue=new k.a,n._mergeFn=c&&c.merge,n}return r.prototype.pause=function(){this._isPaused++},r.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var c=this._eventQueue.toArray();this._eventQueue.clear(),i.prototype.fire.call(this,this._mergeFn(c))}else for(;!this._isPaused&&this._eventQueue.size!==0;)i.prototype.fire.call(this,this._eventQueue.shift())},r.prototype.fire=function(c){this._listeners&&(this._isPaused!==0?this._eventQueue.push(c):i.prototype.fire.call(this,c))},r}(v),a=function(){function i(){var r=this;this.hasListeners=!1,this.events=[],this.emitter=new v({onFirstListenerAdd:function(){return r.onFirstListenerAdd()},onLastListenerRemove:function(){return r.onLastListenerRemove()}})}return Object.defineProperty(i.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),i.prototype.add=function(r){var c=this,n={event:r,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var e=function(){c.hasListeners&&c.unhook(n);var l=c.events.indexOf(n);c.events.splice(l,1)};return Object(H.h)(Object(S.a)(e))},i.prototype.onFirstListenerAdd=function(){var r=this;this.hasListeners=!0,this.events.forEach(function(c){return r.hook(c)})},i.prototype.onLastListenerRemove=function(){var r=this;this.hasListeners=!1,this.events.forEach(function(c){return r.unhook(c)})},i.prototype.hook=function(r){var c=this;r.listener=r.event(function(n){return c.emitter.fire(n)})},i.prototype.unhook=function(r){r.listener&&r.listener.dispose(),r.listener=null},i.prototype.dispose=function(){this.emitter.dispose()},i}(),s=function(){function i(){this.buffers=[]}return i.prototype.wrapEvent=function(r){var c=this;return function(n,e,l){return r(function(d){var h=c.buffers[c.buffers.length-1];h?h.push(function(){return n.call(e,d)}):n.call(e,d)},void 0,l)}},i.prototype.bufferEvents=function(r){var c=[];this.buffers.push(c);var n=r();return this.buffers.pop(),c.forEach(function(e){return e()}),n},i}(),u=function(){function i(){var r=this;this.listening=!1,this.inputEvent=m.None,this.inputEventListener=H.a.None,this.emitter=new v({onFirstListenerDidAdd:function(){r.listening=!0,r.inputEventListener=r.inputEvent(r.emitter.fire,r.emitter)},onLastListenerRemove:function(){r.listening=!1,r.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(i.prototype,"input",{set:function(r){this.inputEvent=r,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=r(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},i}()},N0LK:function(xe,x,t){"use strict";t.d(x,"x",function(){return I}),t.d(x,"F",function(){return S}),t.d(x,"r",function(){return k}),t.d(x,"o",function(){return P}),t.d(x,"p",function(){return m}),t.d(x,"Q",function(){return V}),t.d(x,"K",function(){return v}),t.d(x,"k",function(){return C}),t.d(x,"N",function(){return a}),t.d(x,"m",function(){return s}),t.d(x,"l",function(){return u}),t.d(x,"I",function(){return i}),t.d(x,"H",function(){return r}),t.d(x,"q",function(){return c}),t.d(x,"t",function(){return n}),t.d(x,"D",function(){return e}),t.d(x,"e",function(){return l}),t.d(x,"f",function(){return d}),t.d(x,"B",function(){return h}),t.d(x,"C",function(){return L}),t.d(x,"n",function(){return A}),t.d(x,"O",function(){return E}),t.d(x,"c",function(){return b}),t.d(x,"d",function(){return o}),t.d(x,"z",function(){return D}),t.d(x,"A",function(){return N}),t.d(x,"u",function(){return M}),t.d(x,"E",function(){return f}),t.d(x,"G",function(){return j}),t.d(x,"i",function(){return R}),t.d(x,"g",function(){return W}),t.d(x,"v",function(){return G}),t.d(x,"h",function(){return J}),t.d(x,"y",function(){return oe}),t.d(x,"w",function(){return te}),t.d(x,"a",function(){return Oe}),t.d(x,"P",function(){return ie}),t.d(x,"L",function(){return De}),t.d(x,"J",function(){return ye}),t.d(x,"j",function(){return ve}),t.d(x,"M",function(){return fe}),t.d(x,"s",function(){return ce}),t.d(x,"b",function(){return je});function I(y){return!y||typeof y!="string"?!0:y.trim().length===0}function S(y,T,z){z===void 0&&(z="0");for(var Y=""+y,de=[Y],se=Y.length;se=T.length?Y:T[se]})}function P(y){return y.replace(/[<>&]/g,function(T){switch(T){case"<":return"<";case">":return">";case"&":return"&";default:return T}})}function m(y){return y.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function V(y,T){T===void 0&&(T=" ");var z=U(y,T);return v(z,T)}function U(y,T){if(!y||!T)return y;var z=T.length;if(z===0||y.length===0)return y;for(var Y=0;y.indexOf(T,Y)===Y;)Y=Y+z;return y.substring(Y)}function v(y,T){if(!y||!T)return y;var z=T.length,Y=y.length;if(z===0||Y===0)return y;for(var de=Y,se=-1;!(se=y.lastIndexOf(T,de-1),se===-1||se+z!==de);){if(se===0)return"";de=se}return y.substring(0,de)}function C(y){return y.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function a(y,T){if(y.length0?y.indexOf(T,z)===z:z===0?y===T:!1}function u(y,T,z){if(z===void 0&&(z={}),!y)throw new Error("Cannot create regex from empty string");T||(y=m(y)),z.wholeWord&&(/\B/.test(y.charAt(0))||(y="\\b"+y),/\B/.test(y.charAt(y.length-1))||(y=y+"\\b"));var Y="";return z.global&&(Y+="g"),z.matchCase||(Y+="i"),z.multiline&&(Y+="m"),z.unicode&&(Y+="u"),new RegExp(y,Y)}function i(y){if(y.source==="^"||y.source==="^$"||y.source==="$"||y.source==="^\\s*$")return!1;var T=y.exec("");return!!(T&&y.lastIndex===0)}function r(y){return(y.global?"g":"")+(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")}function c(y){for(var T=0,z=y.length;T=0;z--){var Y=y.charCodeAt(z);if(Y!==32&&Y!==9)return z}return-1}function l(y,T){return yT?1:0}function d(y,T){for(var z=Math.min(y.length,T.length),Y=0;YT.length?1:0}function h(y){return y>=97&&y<=122}function L(y){return y>=65&&y<=90}function O(y){return h(y)||L(y)}function A(y,T){return y.length===T.length&&F(y,T)}function F(y,T,z){z===void 0&&(z=y.length);for(var Y=0;Yy.length?!1:F(y,T,z)}function b(y,T){var z,Y=Math.min(y.length,T.length);for(z=0;z1){var Y=y.charCodeAt(T-2);if(D(Y))return(Y-55296<<10)+(z-56320)+65536}return z}function f(y,T){var z=Re.getInstance(),Y=T,de=y.length,se=M(y,de,T);T+=se>=65536?2:1;for(var ae=z.getGraphemeBreakType(se);T=65536?2:1,ae=Fe}return T-Y}function j(y,T){var z=Re.getInstance(),Y=T,de=p(y,T);T-=de>=65536?2:1;for(var se=z.getGraphemeBreakType(de);T>0;){var ae=p(y,T),he=z.getGraphemeBreakType(ae);if(je(he,se))break;T-=ae>=65536?2:1,se=he}return Y-T}var g=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function R(y){return g.test(y)}var B=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(y){return B.test(y)}var K=/^[\t\n\r\x20-\x7E]*$/;function G(y){return K.test(y)}function J(y){for(var T=0,z=y.length;T=11904&&y<=55215||y>=63744&&y<=64255||y>=65281&&y<=65374}function te(y){return y>=127462&&y<=127487||y>=9728&&y<=10175||y>=127744&&y<=128591||y>=128640&&y<=128764||y>=128992&&y<=129003||y>=129280&&y<=129535||y>=129648&&y<=129651||y>=129656&&y<=129666||y>=129680&&y<=129685}var Oe=String.fromCharCode(65279);function ie(y){return!!(y&&y.length>0&&y.charCodeAt(0)===65279)}function De(y){return btoa(encodeURIComponent(y))}function ye(y,T){for(var z="",Y=0;Yz[3*de+1])de=2*de+1;else return z[3*de+2];return 0},y._INSTANCE=null,y}();function Ee(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NvD2:function(xe,x,t){"use strict";t.d(x,"a",function(){return m});var I=t("Kwbf");function S(V,U){var v=new Set;return V.forEach(function(C){U.has(C)||v.add(C)}),v}function H(V){var U=V||{},v=U.disabled,C=U.disableCheckbox,a=U.checkable;return!!(v||C)||a===!1}function k(V,U,v,C){for(var a=new Set(V),s=new Set,u=0;u<=v;u+=1){var i=U.get(u)||new Set;i.forEach(function(e){var l=e.key,d=e.node,h=e.children,L=h===void 0?[]:h;a.has(l)&&!C(d)&&L.filter(function(O){return!C(O.node)}).forEach(function(O){a.add(O.key)})})}for(var r=new Set,c=v;c>=0;c-=1){var n=U.get(c)||new Set;n.forEach(function(e){var l=e.parent,d=e.node;if(C(d)||!e.parent||r.has(e.parent.key))return;if(C(e.parent.node)){r.add(l.key);return}var h=!0,L=!1;(l.children||[]).filter(function(O){return!C(O.node)}).forEach(function(O){var A=O.key,F=a.has(A);h&&!F&&(h=!1),!L&&(F||s.has(A))&&(L=!0)}),h&&a.add(l.key),L&&s.add(l.key),r.add(l.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(S(s,a))}}function P(V,U,v,C,a){for(var s=new Set(V),u=new Set(U),i=0;i<=C;i+=1){var r=v.get(i)||new Set;r.forEach(function(l){var d=l.key,h=l.node,L=l.children,O=L===void 0?[]:L;!s.has(d)&&!u.has(d)&&!a(h)&&O.filter(function(A){return!a(A.node)}).forEach(function(A){s.delete(A.key)})})}u=new Set;for(var c=new Set,n=C;n>=0;n-=1){var e=v.get(n)||new Set;e.forEach(function(l){var d=l.parent,h=l.node;if(a(h)||!l.parent||c.has(l.parent.key))return;if(a(l.parent.node)){c.add(d.key);return}var L=!0,O=!1;(d.children||[]).filter(function(A){return!a(A.node)}).forEach(function(A){var F=A.key,E=s.has(F);L&&!E&&(L=!1),!O&&(E||u.has(F))&&(O=!0)}),L||s.delete(d.key),O&&u.add(d.key),c.add(d.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(S(u,s))}}function m(V,U,v,C){var a=[],s;C?s=C:s=H;var u=new Set(V.filter(function(n){var e=!!v[n];return e||a.push(n),e})),i=new Map,r=0;Object.keys(v).forEach(function(n){var e=v[n],l=e.level,d=i.get(l);d||(d=new Set,i.set(l,d)),d.add(e),r=Math.max(r,l)}),Object(I.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(n){return"'".concat(n,"'")}).join(", ")));var c;return U===!0?c=k(u,i,r,s):c=P(u,U.halfCheckedKeys,i,r,s),c}},OZM5:function(xe,x,t){"use strict";t.d(x,"b",function(){return C}),t.d(x,"a",function(){return a}),t.d(x,"k",function(){return s}),t.d(x,"h",function(){return u}),t.d(x,"i",function(){return i}),t.d(x,"g",function(){return r}),t.d(x,"c",function(){return c}),t.d(x,"d",function(){return n}),t.d(x,"j",function(){return d}),t.d(x,"e",function(){return h}),t.d(x,"f",function(){return L});var I=t("KQm4"),S=t("U8pU"),H=t("Ff2n"),k=t("q1tI"),P=t.n(k),m=t("Kwbf"),V=t("WaYH"),U=.25,v=2;function C(O,A){var F=O.slice(),E=F.indexOf(A);return E>=0&&F.splice(E,1),F}function a(O,A){var F=O.slice();return F.indexOf(A)===-1&&F.push(A),F}function s(O){return O.split("-")}function u(O,A){return"".concat(O,"-").concat(A)}function i(O){return O&&O.type&&O.type.isTreeNode}function r(O,A){var F=[O],E=A[O];function b(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(D){var N=D.key,M=D.children;F.push(N),b(M)})}return b(E.children),F}function c(O,A){var F=O.clientY,E=A.selectHandle.getBoundingClientRect(),b=E.top,o=E.bottom,D=E.height,N=Math.max(D*U,v);return F<=b+N?-1:F>=o-N?1:0}function n(O,A){if(!O)return;var F=A.multiple;return F?O.slice():O.length?[O[0]]:O}var e=function(A){return A};function l(O,A){if(!O)return[];var F=A||{},E=F.processProps,b=E===void 0?e:E,o=Array.isArray(O)?O:[O];return o.map(function(D){var N=D.children,M=Object(H.a)(D,["children"]),p=l(N,A);return P.a.createElement(V.a,Object.assign({},b(M)),p)})}function d(O){if(!O)return null;var A;if(Array.isArray(O))A={checkedKeys:O,halfCheckedKeys:void 0};else if(Object(S.a)(O)==="object")A={checkedKeys:O.checked||void 0,halfCheckedKeys:O.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function h(O,A){var F=new Set;function E(b){if(F.has(b))return;var o=A[b];if(!o)return;F.add(b);var D=o.parent,N=o.node;if(N.disabled)return;D&&E(D.key)}return(O||[]).forEach(function(b){E(b)}),Object(I.a)(F)}function L(O){var A={};return Object.keys(O).forEach(function(F){(F.startsWith("data-")||F.startsWith("aria-"))&&(A[F]=O[F])}),A}},OipY:function(xe,x,t){"use strict";t.r(x);var I=t("g9YV"),S=t("wCAj"),H=t("14J3"),k=t("BMrR"),P=t("jCWc"),m=t("kPKH"),V=t("sPJy"),U=t("bE4q"),v=t("giR+"),C=t("fyUT"),a=t("miYZ"),s=t("tsqr"),u=t("k1fw"),i=t("9og8"),r=t("y8nQ"),c=t("Vl3Y"),n=t("tJVT"),e=t("WmNS"),l=t.n(e),d=t("q1tI"),h=t.n(d),L=t("jhfD"),O=t("wd/R"),A=t.n(O),F=t("Ty5D"),E=t("55Ip"),b=t("9kvl"),o=t("ZW9T"),D=t("dHP6"),N=t.n(D),M={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}},p=function(B){var W,K=B.shixunHomeworks,G=B.globalSetting,J=B.loading,oe=B.dispatch,te=Object(F.i)(),Oe=Object(F.h)(),ie=K.codeReviewDetail,De={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return h.a.createElement("section",{className:"pl20 pr20 pb20"},(W=ie.challenge_list)===null||W===void 0?void 0:W.map(function(ye,ve){var fe,ce;return h.a.createElement("aside",{key:ve},h.a.createElement("div",{className:"".concat(N.a.shixunTitle," mt20")},h.a.createElement(k.a,null,h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"fa fa-code "}),h.a.createElement("strong",{className:"c-black"},"\u7B2C",ve+1,"\u5173 ",h.a.createElement(E.a,{className:"c-black",to:"/tasks/".concat(ye.game_identifier)},ye.subject))),h.a.createElement(m.a,{className:"font16"},"\u4EE3\u7801\u6587\u4EF6:",ye==null||((fe=ye.code_list)===null||fe===void 0||((ce=fe[0])===null||ce===void 0))?void 0:ce.path))),h.a.createElement("div",{className:"font16 mt10"},ye.code_list.map(function(je,Re){return h.a.createElement("aside",{className:N.a.shixunWrp},h.a.createElement(k.a,{className:"pt10 pb20"},h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"c-red"},ye.username),"\u7684\u4EE3\u7801\u6587\u4EF6"),h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"c-green"},ye.copy_username),"\u7684\u4EE3\u7801\u6587\u4EF6")),h.a.createElement(o.a,{height:300,language:"python",original:je.origin_content,modified:je.target_content}))})))}))},f=Object(b.a)(function(R){var B=R.shixunHomeworks,W=R.loading,K=R.globalSetting;return{shixunHomeworks:B,globalSetting:K,loading:W.effects}})(p),j=function(B){var W=B.shixunHomeworks,K=B.loading,G=B.dispatch,J=Object(d.useState)(Object(F.i)()),oe=Object(n.a)(J,2),te=oe[0],Oe=oe[1],ie=Object(d.useState)({}),De=Object(n.a)(ie,1),ye=De[0],ve=Object(F.h)(),fe=W.codeReviewDetail,ce=Object(d.useState)({}),je=Object(n.a)(ce,2),Re=je[0],Ee=je[1],y=c.a.useForm(),T=Object(n.a)(y,1),z=T[0];Object(d.useEffect)(function(){ye.user_id=te.userId,ye.categoryId=te.categoryId,Y()},[te.userId]);var Y=function(){var se=Object(i.a)(l.a.mark(function ae(){var he;return l.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,G({type:"shixunHomeworks/getCodeReviewDetail",payload:Object(u.a)({},ye)});case 2:he=Ge.sent,he.status===-2&&setTimeout(function(){return Y()},1500);case 4:case"end":return Ge.stop()}},ae)}));return function(){return se.apply(this,arguments)}}(),de=[{title:"\u5173\u5361",dataIndex:"name",render:function(ae,he,Fe){return h.a.createElement("div",{className:"".concat(N.a.shixunTitle," mt10")},h.a.createElement("span",{className:"fa fa-code "}),h.a.createElement("strong",{className:"c-black"},"\u7B2C",Fe+1,"\u5173 ",he.subject))}},{title:"\u88AB\u67E5\u4F5C\u54C1",dataIndex:"username"},{title:"\u88AB\u67E5\u4F5C\u54C1\u5B8C\u6210\u65F6\u95F4",dataIndex:"end_time",render:function(ae){return ae?A()(ae).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"\u5F97\u5206/\u6EE1\u5206",dataIndex:"all_score",render:function(ae,he){return h.a.createElement(h.a.Fragment,null," ",h.a.createElement("span",{className:"c-orange"},he.final_score),"/",he.all_score)}},{title:"\u7591\u88AB\u6284\u88AD\u4F5C\u54C1",dataIndex:"copy_username",render:function(ae){return h.a.createElement("span",{className:"c-green"},ae)}},{title:"\u7591\u88AB\u6284\u88AD\u4F5C\u54C1\u5B8C\u6210\u65F6\u95F4",dataIndex:"copy_end_time",render:function(ae){return ae?A()(ae).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"\u8C03\u5206",dataIndex:"final_score",render:function(ae,he){return h.a.createElement(C.a,{min:0,max:he.game_score_full,defaultValue:ae,onBlur:function(){var Fe=Object(i.a)(l.a.mark(function Ge(at){var Je,We;return l.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(Je=at.target.value,!(Je!=ae)){w.next=6;break}return w.next=4,G({type:"shixunHomeworks/changeScore",payload:{categoryId:fe==null?void 0:fe.work_id,type:"review",score:Je,challenge_id:he.id,copy_user_id:he==null?void 0:he.copy_user_id,code_rate:he==null?void 0:he.code_rate}});case 4:We=w.sent,We.status===0&&(s.b.success("\u64CD\u4F5C\u6210\u529F"),Y());case 6:case"end":return w.stop()}},Ge)}));return function(Ge){return Fe.apply(this,arguments)}}()})}},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:function(ae){return h.a.createElement("span",{className:"c-red"},ae,"%")}}];return h.a.createElement("section",{className:"edu-container mb50"},(fe==null?void 0:fe.course_name)&&h.a.createElement("section",{className:"animated fadeIn"},h.a.createElement("aside",{className:"mt10"},h.a.createElement(U.a,{separator:">"},h.a.createElement(U.a.Item,null,h.a.createElement(E.a,{to:"/classrooms/".concat(fe.course_id,"/shixun_homework")},fe.course_name)),h.a.createElement(U.a.Item,null,h.a.createElement(E.a,{to:"/classrooms/".concat(fe.course_id,"/shixun_homework/").concat(te.categoryId,"/detail")},"\u8BFE\u7A0B\u5B9E\u9A8C")),h.a.createElement(U.a.Item,null,fe==null?void 0:fe.username))),h.a.createElement("aside",{className:[N.a.title,"mt20"].join(" ")},h.a.createElement(E.a,{to:"/classrooms/".concat(fe.course_id,"/shixun_homework/").concat(te.categoryId,"/detail?tabs=2")},h.a.createElement(L.a,{className:"font16 c-black"})),h.a.createElement("strong",{className:"font20 ml5"},fe.homework_common_name))),h.a.createElement("section",{className:"minH500 bg-white pt10 mt20"},h.a.createElement(k.a,{className:"pl20 pr20"},h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"c-red"},"\u975E\u7F16\u7A0B\u7C7B\u578B\u4EFB\u52A1\uFF0C\u4E0D\u53C2\u4E0E\u67E5\u91CD")),h.a.createElement(m.a,null,"\u88AB\u67E5\u4F5C\u54C1\uFF1A",h.a.createElement("span",{className:"c-red mr40"},fe==null?void 0:fe.username),"\u6700\u7EC8\u6210\u7EE9\uFF1A",h.a.createElement("span",{className:"c-red"},fe.final_score),"\u5206")),h.a.createElement(S.a,{className:"mt10",loading:K["shixunHomeworks/getCodeReviewDetail"],pagination:!1,dataSource:fe.challenge_list,columns:de,onChange:function(ae,he,Fe){Fe.order==="ascend"&&(te.b_order="asc"),Fe.order==="descend"&&(te.b_order="desc"),Fe.order||delete te.b_order,G({type:"shixunHomeworks/getCodeReview",payload:Object(u.a)({},te)})}}),h.a.createElement("div",{className:"font16 mt20 ml5"},"\u5B9E\u8BAD\u8BE6\u60C5"),h.a.createElement(f,null)))},g=x.default=Object(b.a)(function(R){var B=R.shixunHomeworks,W=R.loading;return{shixunHomeworks:B,loading:W.effects}})(j)},QDVR:function(xe,x,t){"use strict";t.d(x,"e",function(){return S}),t.d(x,"d",function(){return H}),t.d(x,"c",function(){return V}),t.d(x,"b",function(){return U}),t.d(x,"a",function(){return C});var I=function(){var a=function(s,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var c in r)r.hasOwnProperty(c)&&(i[c]=r[c])},a(s,u)};return function(s,u){a(s,u);function i(){this.constructor=s}s.prototype=u===null?Object.create(u):(i.prototype=u.prototype,new i)}}();function S(a){var s=[];return a.forEach(function(u){return s.push(u)}),s}function H(a){var s=[];return a.forEach(function(u,i){return s.push(i)}),s}var k=function(){function a(){this._value="",this._pos=0}return a.prototype.reset=function(s){return this._value=s,this._pos=0,this},a.prototype.next=function(){return this._pos+=1,this},a.prototype.hasNext=function(){return this._pos0)r.left||(r.left=new m,r.left.segment=i.value()),r=r.left;else if(c<0)r.right||(r.right=new m,r.right.segment=i.value()),r=r.right;else if(i.hasNext())i.next(),r.mid||(r.mid=new m,r.mid.segment=i.value()),r=r.mid;else break}var n=r.value;return r.value=u,r.key=s,n},a.prototype.get=function(s){for(var u=this._iter.reset(s),i=this._root;i;){var r=u.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(u.hasNext())u.next(),i=i.mid;else break}return i?i.value:void 0},a.prototype.findSubstr=function(s){for(var u=this._iter.reset(s),i=this._root,r=void 0;i;){var c=u.cmp(i.segment);if(c>0)i=i.left;else if(c<0)i=i.right;else if(u.hasNext())u.next(),r=i.value||r,i=i.mid;else break}return i&&i.value||r},a.prototype.forEach=function(s){this._forEach(this._root,s)},a.prototype._forEach=function(s,u){s&&(this._forEach(s.left,u),s.value&&u(s.value,s.key),this._forEach(s.mid,u),this._forEach(s.right,u))},a}(),U=function(){function a(){this.map=new Map,this.ignoreCase=!1}return a.prototype.set=function(s,u){this.map.set(this.toKey(s),u)},a.prototype.get=function(s){return this.map.get(this.toKey(s))},a.prototype.toKey=function(s){var u=s.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},a}(),v=function(){function a(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return a.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(a.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),a.prototype.get=function(s,u){u===void 0&&(u=0);var i=this._map.get(s);return i?(u!==0&&this.touch(i,u),i.value):void 0},a.prototype.set=function(s,u,i){i===void 0&&(i=0);var r=this._map.get(s);if(r)r.value=u,i!==0&&this.touch(r,i);else{r={key:s,value:u,next:void 0,previous:void 0};switch(i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(s,r),this._size++}},a.prototype.delete=function(s){return!!this.remove(s)},a.prototype.remove=function(s){var u=this._map.get(s);return u?(this._map.delete(s),this.removeItem(u),this._size--,u.value):void 0},a.prototype.forEach=function(s,u){for(var i=this._head;i;)u?s.bind(u)(i.value,i.key,this):s(i.value,i.key,this),i=i.next},a.prototype.trimOld=function(s){if(s>=this.size)return;if(s===0){this.clear();return}for(var u=this._head,i=this.size;u&&i>s;)this._map.delete(u.key),u=u.next,i--;this._head=u,this._size=i,u&&(u.previous=void 0)},a.prototype.addItemFirst=function(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s},a.prototype.addItemLast=function(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s},a.prototype.removeItem=function(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{var u=s.next,i=s.previous;if(!u||!i)throw new Error("Invalid list");u.previous=i,i.next=u}s.next=void 0,s.previous=void 0},a.prototype.touch=function(s,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(s===this._head)return;var i=s.next,r=s.previous;s===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s}else if(u===2){if(s===this._tail)return;var i=s.next,r=s.previous;s===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s}},a.prototype.toJSON=function(){var s=[];return this.forEach(function(u,i){s.push([i,u])}),s},a}(),C=function(a){I(s,a);function s(u,i){i===void 0&&(i=1);var r=a.call(this)||this;return r._limit=u,r._ratio=Math.min(Math.max(0,i),1),r}return s.prototype.get=function(u){return a.prototype.get.call(this,u,2)},s.prototype.peek=function(u){return a.prototype.get.call(this,u,0)},s.prototype.set=function(u,i){a.prototype.set.call(this,u,i,2),this.checkTrim()},s.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},s}(v)},"SA+Z":function(xe,x,t){var I=t("wTVA"),S=t("EbDI"),H=t("ZhPi"),k=t("wkBT");function P(m){return I(m)||S(m)||H(m)||k()}xe.exports=P,xe.exports.__esModule=!0,xe.exports.default=xe.exports},T8No:function(xe,x,t){"use strict";t.d(x,"a",function(){return k}),t.d(x,"b",function(){return u}),t.d(x,"d",function(){return i}),t.d(x,"c",function(){return r}),t.d(x,"e",function(){return c});var I=t("N0LK"),S=t("Cg/j"),H=function(){var n=function(e,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var L in h)h.hasOwnProperty(L)&&(d[L]=h[L])},n(e,l)};return function(e,l){n(e,l);function d(){this.constructor=e}e.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),k=function(){function n(){}return n.has=function(e){return m.create(e)},n.equals=function(e,l){return V.create(e,l)},n.regex=function(e,l){return C.create(e,l)},n.not=function(e){return v.create(e)},n.and=function(){for(var e=[],l=0;l=0){var d=e.split("!=");return U.create(d[0].trim(),this._deserializeValue(d[1],l))}if(e.indexOf("==")>=0){var d=e.split("==");return V.create(d[0].trim(),this._deserializeValue(d[1],l))}if(e.indexOf("=~")>=0){var d=e.split("=~");return C.create(d[0].trim(),this._deserializeRegexValue(d[1],l))}return/^\!\s*/.test(e)?v.create(e.substr(1).trim()):m.create(e)},n._deserializeValue=function(e,l){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;var d=/^'([^']*)'$/.exec(e);return d?d[1].trim():e},n._deserializeRegexValue=function(e,l){if(Object(I.x)(e)){if(l)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var d=e.indexOf("/"),h=e.lastIndexOf("/");if(d===h||d<0){if(l)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var L=e.slice(d+1,h),O=e[h+1]==="i"?"i":"";try{return new RegExp(L,O)}catch(A){if(l)throw new Error("bad regexp-value '"+e+"', parse error: "+A);return console.warn("bad regexp-value '"+e+"', parse error: "+A),null}},n}();function P(n,e){var l=n.getType(),d=e.getType();if(l!==d)return l-d;switch(l){case 1:return n.cmp(e);case 2:return n.cmp(e);case 3:return n.cmp(e);case 4:return n.cmp(e);case 6:return n.cmp(e);case 7:return n.cmp(e);case 5:return n.cmp(e);default:throw new Error("Unknown ContextKeyExpr!")}}var m=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 1},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return v.create(this.key)},n}(),V=function(){function n(e,l){this.key=e,this.value=l}return n.create=function(e,l){return typeof l=="boolean"?l?m.create(e):v.create(e):new n(e,l)},n.prototype.getType=function(){return 3},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return U.create(this.key,this.value)},n}(),U=function(){function n(e,l){this.key=e,this.value=l}return n.create=function(e,l){return typeof l=="boolean"?l?v.create(e):m.create(e):new n(e,l)},n.prototype.getType=function(){return 4},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return V.create(this.key,this.value)},n}(),v=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 2},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return m.create(this.key)},n}(),C=function(){function n(e,l){this.key=e,this.regexp=l}return n.create=function(e,l){return new n(e,l)},n.prototype.getType=function(){return 6},n.prototype.cmp=function(e){if(this.keye.key)return 1;var l=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return ld?1:0},n.prototype.equals=function(e){if(e instanceof n){var l=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return this.key===e.key&&l===d}return!1},n.prototype.evaluate=function(e){var l=e.getValue(this.key);return this.regexp?this.regexp.test(l):!1},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return a.create(this)},n}(),a=function(){function n(e){this._actual=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 7},n.prototype.cmp=function(e){return this._actual.cmp(e._actual)},n.prototype.equals=function(e){return e instanceof n?this._actual.equals(e._actual):!1},n.prototype.evaluate=function(e){return!this._actual.evaluate(e)},n.prototype.keys=function(){return this._actual.keys()},n.prototype.negate=function(){return this._actual},n}(),s=function(){function n(e){this.expr=e}return n.create=function(e){var l=n._normalizeArr(e);return l.length===0?void 0:l.length===1?l[0]:new n(l)},n.prototype.getType=function(){return 5},n.prototype.cmp=function(e){if(this.expr.lengthe.expr.length)return 1;for(var l=0,d=this.expr.length;l1;){for(var O=e.shift(),A=e.shift(),F=[],E=0,b=L(O);E0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(i.prototype,"event",{get:function(){var r=this;return this._event||(this._event=function(c,n,e){r._listeners||(r._listeners=new k.a);var l=r._listeners.isEmpty();l&&r._options&&r._options.onFirstListenerAdd&&r._options.onFirstListenerAdd(r);var d=r._listeners.push(n?[c,n]:c);l&&r._options&&r._options.onFirstListenerDidAdd&&r._options.onFirstListenerDidAdd(r),r._options&&r._options.onListenerDidAdd&&r._options.onListenerDidAdd(r,c,n);var h;r._leakageMon&&(h=r._leakageMon.check(r._listeners.size));var L;return L={dispose:function(){if(h&&h(),L.dispose=i._noop,!r._disposed&&(d(),r._options&&r._options.onLastListenerRemove)){var O=r._listeners&&!r._listeners.isEmpty();O||r._options.onLastListenerRemove(r)}}},e instanceof H.b?e.add(L):Array.isArray(e)&&e.push(L),L}),this._event},enumerable:!0,configurable:!0}),i.prototype.fire=function(r){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.a);for(var c=this._listeners.iterator(),n=c.next();!n.done;n=c.next())this._deliveryQueue.push([n.value,r]);for(;this._deliveryQueue.size>0;){var e=this._deliveryQueue.shift(),l=e[0],d=e[1];try{typeof l=="function"?l.call(void 0,d):l[0].call(l[1],d)}catch(h){Object(I.e)(h)}}}},i.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},i._noop=function(){},i}(),C=function(i){T(r,i);function r(c){var n=i.call(this,c)||this;return n._isPaused=0,n._eventQueue=new k.a,n._mergeFn=c&&c.merge,n}return r.prototype.pause=function(){this._isPaused++},r.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var c=this._eventQueue.toArray();this._eventQueue.clear(),i.prototype.fire.call(this,this._mergeFn(c))}else for(;!this._isPaused&&this._eventQueue.size!==0;)i.prototype.fire.call(this,this._eventQueue.shift())},r.prototype.fire=function(c){this._listeners&&(this._isPaused!==0?this._eventQueue.push(c):i.prototype.fire.call(this,c))},r}(v),a=function(){function i(){var r=this;this.hasListeners=!1,this.events=[],this.emitter=new v({onFirstListenerAdd:function(){return r.onFirstListenerAdd()},onLastListenerRemove:function(){return r.onLastListenerRemove()}})}return Object.defineProperty(i.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),i.prototype.add=function(r){var c=this,n={event:r,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var e=function(){c.hasListeners&&c.unhook(n);var l=c.events.indexOf(n);c.events.splice(l,1)};return Object(H.h)(Object(S.a)(e))},i.prototype.onFirstListenerAdd=function(){var r=this;this.hasListeners=!0,this.events.forEach(function(c){return r.hook(c)})},i.prototype.onLastListenerRemove=function(){var r=this;this.hasListeners=!1,this.events.forEach(function(c){return r.unhook(c)})},i.prototype.hook=function(r){var c=this;r.listener=r.event(function(n){return c.emitter.fire(n)})},i.prototype.unhook=function(r){r.listener&&r.listener.dispose(),r.listener=null},i.prototype.dispose=function(){this.emitter.dispose()},i}(),s=function(){function i(){this.buffers=[]}return i.prototype.wrapEvent=function(r){var c=this;return function(n,e,l){return r(function(d){var h=c.buffers[c.buffers.length-1];h?h.push(function(){return n.call(e,d)}):n.call(e,d)},void 0,l)}},i.prototype.bufferEvents=function(r){var c=[];this.buffers.push(c);var n=r();return this.buffers.pop(),c.forEach(function(e){return e()}),n},i}(),u=function(){function i(){var r=this;this.listening=!1,this.inputEvent=m.None,this.inputEventListener=H.a.None,this.emitter=new v({onFirstListenerDidAdd:function(){r.listening=!0,r.inputEventListener=r.inputEvent(r.emitter.fire,r.emitter)},onLastListenerRemove:function(){r.listening=!1,r.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(i.prototype,"input",{set:function(r){this.inputEvent=r,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=r(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},i}()},N0LK:function(xe,x,t){"use strict";t.d(x,"x",function(){return I}),t.d(x,"F",function(){return S}),t.d(x,"r",function(){return k}),t.d(x,"o",function(){return T}),t.d(x,"p",function(){return m}),t.d(x,"Q",function(){return V}),t.d(x,"K",function(){return v}),t.d(x,"k",function(){return C}),t.d(x,"N",function(){return a}),t.d(x,"m",function(){return s}),t.d(x,"l",function(){return u}),t.d(x,"I",function(){return i}),t.d(x,"H",function(){return r}),t.d(x,"q",function(){return c}),t.d(x,"t",function(){return n}),t.d(x,"D",function(){return e}),t.d(x,"e",function(){return l}),t.d(x,"f",function(){return d}),t.d(x,"B",function(){return h}),t.d(x,"C",function(){return L}),t.d(x,"n",function(){return A}),t.d(x,"O",function(){return E}),t.d(x,"c",function(){return b}),t.d(x,"d",function(){return o}),t.d(x,"z",function(){return D}),t.d(x,"A",function(){return N}),t.d(x,"u",function(){return M}),t.d(x,"E",function(){return f}),t.d(x,"G",function(){return j}),t.d(x,"i",function(){return R}),t.d(x,"g",function(){return W}),t.d(x,"v",function(){return G}),t.d(x,"h",function(){return J}),t.d(x,"y",function(){return oe}),t.d(x,"w",function(){return te}),t.d(x,"a",function(){return Oe}),t.d(x,"P",function(){return ie}),t.d(x,"L",function(){return De}),t.d(x,"J",function(){return ye}),t.d(x,"j",function(){return ve}),t.d(x,"M",function(){return fe}),t.d(x,"s",function(){return ce}),t.d(x,"b",function(){return je});function I(y){return!y||typeof y!="string"?!0:y.trim().length===0}function S(y,P,z){z===void 0&&(z="0");for(var Y=""+y,de=[Y],se=Y.length;se=P.length?Y:P[se]})}function T(y){return y.replace(/[<>&]/g,function(P){switch(P){case"<":return"<";case">":return">";case"&":return"&";default:return P}})}function m(y){return y.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function V(y,P){P===void 0&&(P=" ");var z=U(y,P);return v(z,P)}function U(y,P){if(!y||!P)return y;var z=P.length;if(z===0||y.length===0)return y;for(var Y=0;y.indexOf(P,Y)===Y;)Y=Y+z;return y.substring(Y)}function v(y,P){if(!y||!P)return y;var z=P.length,Y=y.length;if(z===0||Y===0)return y;for(var de=Y,se=-1;!(se=y.lastIndexOf(P,de-1),se===-1||se+z!==de);){if(se===0)return"";de=se}return y.substring(0,de)}function C(y){return y.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function a(y,P){if(y.length0?y.indexOf(P,z)===z:z===0?y===P:!1}function u(y,P,z){if(z===void 0&&(z={}),!y)throw new Error("Cannot create regex from empty string");P||(y=m(y)),z.wholeWord&&(/\B/.test(y.charAt(0))||(y="\\b"+y),/\B/.test(y.charAt(y.length-1))||(y=y+"\\b"));var Y="";return z.global&&(Y+="g"),z.matchCase||(Y+="i"),z.multiline&&(Y+="m"),z.unicode&&(Y+="u"),new RegExp(y,Y)}function i(y){if(y.source==="^"||y.source==="^$"||y.source==="$"||y.source==="^\\s*$")return!1;var P=y.exec("");return!!(P&&y.lastIndex===0)}function r(y){return(y.global?"g":"")+(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")}function c(y){for(var P=0,z=y.length;P=0;z--){var Y=y.charCodeAt(z);if(Y!==32&&Y!==9)return z}return-1}function l(y,P){return yP?1:0}function d(y,P){for(var z=Math.min(y.length,P.length),Y=0;YP.length?1:0}function h(y){return y>=97&&y<=122}function L(y){return y>=65&&y<=90}function O(y){return h(y)||L(y)}function A(y,P){return y.length===P.length&&F(y,P)}function F(y,P,z){z===void 0&&(z=y.length);for(var Y=0;Yy.length?!1:F(y,P,z)}function b(y,P){var z,Y=Math.min(y.length,P.length);for(z=0;z1){var Y=y.charCodeAt(P-2);if(D(Y))return(Y-55296<<10)+(z-56320)+65536}return z}function f(y,P){var z=Re.getInstance(),Y=P,de=y.length,se=M(y,de,P);P+=se>=65536?2:1;for(var ae=z.getGraphemeBreakType(se);P=65536?2:1,ae=Fe}return P-Y}function j(y,P){var z=Re.getInstance(),Y=P,de=p(y,P);P-=de>=65536?2:1;for(var se=z.getGraphemeBreakType(de);P>0;){var ae=p(y,P),he=z.getGraphemeBreakType(ae);if(je(he,se))break;P-=ae>=65536?2:1,se=he}return Y-P}var g=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function R(y){return g.test(y)}var B=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(y){return B.test(y)}var K=/^[\t\n\r\x20-\x7E]*$/;function G(y){return K.test(y)}function J(y){for(var P=0,z=y.length;P=11904&&y<=55215||y>=63744&&y<=64255||y>=65281&&y<=65374}function te(y){return y>=127462&&y<=127487||y>=9728&&y<=10175||y>=127744&&y<=128591||y>=128640&&y<=128764||y>=128992&&y<=129003||y>=129280&&y<=129535||y>=129648&&y<=129651||y>=129656&&y<=129666||y>=129680&&y<=129685}var Oe=String.fromCharCode(65279);function ie(y){return!!(y&&y.length>0&&y.charCodeAt(0)===65279)}function De(y){return btoa(encodeURIComponent(y))}function ye(y,P){for(var z="",Y=0;Yz[3*de+1])de=2*de+1;else return z[3*de+2];return 0},y._INSTANCE=null,y}();function Ee(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NvD2:function(xe,x,t){"use strict";t.d(x,"a",function(){return m});var I=t("Kwbf");function S(V,U){var v=new Set;return V.forEach(function(C){U.has(C)||v.add(C)}),v}function H(V){var U=V||{},v=U.disabled,C=U.disableCheckbox,a=U.checkable;return!!(v||C)||a===!1}function k(V,U,v,C){for(var a=new Set(V),s=new Set,u=0;u<=v;u+=1){var i=U.get(u)||new Set;i.forEach(function(e){var l=e.key,d=e.node,h=e.children,L=h===void 0?[]:h;a.has(l)&&!C(d)&&L.filter(function(O){return!C(O.node)}).forEach(function(O){a.add(O.key)})})}for(var r=new Set,c=v;c>=0;c-=1){var n=U.get(c)||new Set;n.forEach(function(e){var l=e.parent,d=e.node;if(C(d)||!e.parent||r.has(e.parent.key))return;if(C(e.parent.node)){r.add(l.key);return}var h=!0,L=!1;(l.children||[]).filter(function(O){return!C(O.node)}).forEach(function(O){var A=O.key,F=a.has(A);h&&!F&&(h=!1),!L&&(F||s.has(A))&&(L=!0)}),h&&a.add(l.key),L&&s.add(l.key),r.add(l.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(S(s,a))}}function T(V,U,v,C,a){for(var s=new Set(V),u=new Set(U),i=0;i<=C;i+=1){var r=v.get(i)||new Set;r.forEach(function(l){var d=l.key,h=l.node,L=l.children,O=L===void 0?[]:L;!s.has(d)&&!u.has(d)&&!a(h)&&O.filter(function(A){return!a(A.node)}).forEach(function(A){s.delete(A.key)})})}u=new Set;for(var c=new Set,n=C;n>=0;n-=1){var e=v.get(n)||new Set;e.forEach(function(l){var d=l.parent,h=l.node;if(a(h)||!l.parent||c.has(l.parent.key))return;if(a(l.parent.node)){c.add(d.key);return}var L=!0,O=!1;(d.children||[]).filter(function(A){return!a(A.node)}).forEach(function(A){var F=A.key,E=s.has(F);L&&!E&&(L=!1),!O&&(E||u.has(F))&&(O=!0)}),L||s.delete(d.key),O&&u.add(d.key),c.add(d.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(S(u,s))}}function m(V,U,v,C){var a=[],s;C?s=C:s=H;var u=new Set(V.filter(function(n){var e=!!v[n];return e||a.push(n),e})),i=new Map,r=0;Object.keys(v).forEach(function(n){var e=v[n],l=e.level,d=i.get(l);d||(d=new Set,i.set(l,d)),d.add(e),r=Math.max(r,l)}),Object(I.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(n){return"'".concat(n,"'")}).join(", ")));var c;return U===!0?c=k(u,i,r,s):c=T(u,U.halfCheckedKeys,i,r,s),c}},OZM5:function(xe,x,t){"use strict";t.d(x,"b",function(){return C}),t.d(x,"a",function(){return a}),t.d(x,"k",function(){return s}),t.d(x,"h",function(){return u}),t.d(x,"i",function(){return i}),t.d(x,"g",function(){return r}),t.d(x,"c",function(){return c}),t.d(x,"d",function(){return n}),t.d(x,"j",function(){return d}),t.d(x,"e",function(){return h}),t.d(x,"f",function(){return L});var I=t("KQm4"),S=t("U8pU"),H=t("Ff2n"),k=t("q1tI"),T=t.n(k),m=t("Kwbf"),V=t("WaYH"),U=.25,v=2;function C(O,A){var F=O.slice(),E=F.indexOf(A);return E>=0&&F.splice(E,1),F}function a(O,A){var F=O.slice();return F.indexOf(A)===-1&&F.push(A),F}function s(O){return O.split("-")}function u(O,A){return"".concat(O,"-").concat(A)}function i(O){return O&&O.type&&O.type.isTreeNode}function r(O,A){var F=[O],E=A[O];function b(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(D){var N=D.key,M=D.children;F.push(N),b(M)})}return b(E.children),F}function c(O,A){var F=O.clientY,E=A.selectHandle.getBoundingClientRect(),b=E.top,o=E.bottom,D=E.height,N=Math.max(D*U,v);return F<=b+N?-1:F>=o-N?1:0}function n(O,A){if(!O)return;var F=A.multiple;return F?O.slice():O.length?[O[0]]:O}var e=function(A){return A};function l(O,A){if(!O)return[];var F=A||{},E=F.processProps,b=E===void 0?e:E,o=Array.isArray(O)?O:[O];return o.map(function(D){var N=D.children,M=Object(H.a)(D,["children"]),p=l(N,A);return T.a.createElement(V.a,Object.assign({},b(M)),p)})}function d(O){if(!O)return null;var A;if(Array.isArray(O))A={checkedKeys:O,halfCheckedKeys:void 0};else if(Object(S.a)(O)==="object")A={checkedKeys:O.checked||void 0,halfCheckedKeys:O.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function h(O,A){var F=new Set;function E(b){if(F.has(b))return;var o=A[b];if(!o)return;F.add(b);var D=o.parent,N=o.node;if(N.disabled)return;D&&E(D.key)}return(O||[]).forEach(function(b){E(b)}),Object(I.a)(F)}function L(O){var A={};return Object.keys(O).forEach(function(F){(F.startsWith("data-")||F.startsWith("aria-"))&&(A[F]=O[F])}),A}},OipY:function(xe,x,t){"use strict";t.r(x);var I=t("g9YV"),S=t("wCAj"),H=t("14J3"),k=t("BMrR"),T=t("jCWc"),m=t("kPKH"),V=t("sPJy"),U=t("bE4q"),v=t("giR+"),C=t("fyUT"),a=t("miYZ"),s=t("tsqr"),u=t("k1fw"),i=t("9og8"),r=t("y8nQ"),c=t("Vl3Y"),n=t("tJVT"),e=t("WmNS"),l=t.n(e),d=t("q1tI"),h=t.n(d),L=t("jhfD"),O=t("wd/R"),A=t.n(O),F=t("Ty5D"),E=t("55Ip"),b=t("9kvl"),o=t("ZW9T"),D=t("dHP6"),N=t.n(D),M={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}},p=function(B){var W,K=B.shixunHomeworks,G=B.globalSetting,J=B.loading,oe=B.dispatch,te=Object(F.i)(),Oe=Object(F.h)(),ie=K.codeReviewDetail,De={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return h.a.createElement("section",{className:"pl20 pr20 pb20"},(W=ie.challenge_list)===null||W===void 0?void 0:W.map(function(ye,ve){var fe,ce;return h.a.createElement("aside",{key:ve},h.a.createElement("div",{className:"".concat(N.a.shixunTitle," mt20")},h.a.createElement(k.a,null,h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"fa fa-code "}),h.a.createElement("strong",{className:"c-black"},"\u7B2C",ve+1,"\u5173 ",h.a.createElement(E.a,{className:"c-black",to:"/tasks/".concat(ye.game_identifier)},ye.subject))),h.a.createElement(m.a,{className:"font16"},"\u4EE3\u7801\u6587\u4EF6:",ye==null||((fe=ye.code_list)===null||fe===void 0||((ce=fe[0])===null||ce===void 0))?void 0:ce.path))),h.a.createElement("div",{className:"font16 mt10"},ye.code_list.map(function(je,Re){return h.a.createElement("aside",{className:N.a.shixunWrp},h.a.createElement(k.a,{className:"pt10 pb20"},h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"c-red"},ye.username),"\u7684\u4EE3\u7801\u6587\u4EF6"),h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"c-green"},ye.copy_username),"\u7684\u4EE3\u7801\u6587\u4EF6")),h.a.createElement(o.a,{height:300,language:"python",original:je.origin_content,modified:je.target_content}))})))}))},f=Object(b.a)(function(R){var B=R.shixunHomeworks,W=R.loading,K=R.globalSetting;return{shixunHomeworks:B,globalSetting:K,loading:W.effects}})(p),j=function(B){var W=B.shixunHomeworks,K=B.loading,G=B.dispatch,J=Object(d.useState)(Object(F.i)()),oe=Object(n.a)(J,2),te=oe[0],Oe=oe[1],ie=Object(d.useState)({}),De=Object(n.a)(ie,1),ye=De[0],ve=Object(F.h)(),fe=W.codeReviewDetail,ce=Object(d.useState)({}),je=Object(n.a)(ce,2),Re=je[0],Ee=je[1],y=c.a.useForm(),P=Object(n.a)(y,1),z=P[0];Object(d.useEffect)(function(){ye.user_id=te.userId,ye.categoryId=te.categoryId,Y()},[te.userId]);var Y=function(){var se=Object(i.a)(l.a.mark(function ae(){var he;return l.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,G({type:"shixunHomeworks/getCodeReviewDetail",payload:Object(u.a)({},ye)});case 2:he=Ge.sent,he.status===-2&&setTimeout(function(){return Y()},1500);case 4:case"end":return Ge.stop()}},ae)}));return function(){return se.apply(this,arguments)}}(),de=[{title:"\u5173\u5361",dataIndex:"name",render:function(ae,he,Fe){return h.a.createElement("div",{className:"".concat(N.a.shixunTitle," mt10")},h.a.createElement("span",{className:"fa fa-code "}),h.a.createElement("strong",{className:"c-black"},"\u7B2C",Fe+1,"\u5173 ",he.subject))}},{title:"\u88AB\u67E5\u4F5C\u54C1",dataIndex:"username"},{title:"\u88AB\u67E5\u4F5C\u54C1\u5B8C\u6210\u65F6\u95F4",dataIndex:"end_time",render:function(ae){return ae?A()(ae).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"\u5F97\u5206/\u6EE1\u5206",dataIndex:"all_score",render:function(ae,he){return h.a.createElement(h.a.Fragment,null," ",h.a.createElement("span",{className:"c-orange"},he.final_score),"/",he.all_score)}},{title:"\u7591\u88AB\u6284\u88AD\u4F5C\u54C1",dataIndex:"copy_username",render:function(ae){return h.a.createElement("span",{className:"c-green"},ae)}},{title:"\u7591\u88AB\u6284\u88AD\u4F5C\u54C1\u5B8C\u6210\u65F6\u95F4",dataIndex:"copy_end_time",render:function(ae){return ae?A()(ae).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"\u8C03\u5206",dataIndex:"final_score",render:function(ae,he){return h.a.createElement(C.a,{min:0,max:he.game_score_full,defaultValue:ae,onBlur:function(){var Fe=Object(i.a)(l.a.mark(function Ge(at){var Je,We;return l.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(Je=at.target.value,!(Je!=ae)){w.next=6;break}return w.next=4,G({type:"shixunHomeworks/changeScore",payload:{categoryId:fe==null?void 0:fe.work_id,type:"review",score:Je,challenge_id:he.id,copy_user_id:he==null?void 0:he.copy_user_id,code_rate:he==null?void 0:he.code_rate}});case 4:We=w.sent,We.status===0&&(s.b.success("\u64CD\u4F5C\u6210\u529F"),Y());case 6:case"end":return w.stop()}},Ge)}));return function(Ge){return Fe.apply(this,arguments)}}()})}},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:function(ae){return h.a.createElement("span",{className:"c-red"},ae,"%")}}];return h.a.createElement("section",{className:"edu-container mb50"},(fe==null?void 0:fe.course_name)&&h.a.createElement("section",{className:"animated fadeIn"},h.a.createElement("aside",{className:"mt10"},h.a.createElement(U.a,{separator:">"},h.a.createElement(U.a.Item,null,h.a.createElement(E.a,{to:"/classrooms/".concat(fe.course_id,"/shixun_homework")},fe.course_name)),h.a.createElement(U.a.Item,null,h.a.createElement(E.a,{to:"/classrooms/".concat(fe.course_id,"/shixun_homework/").concat(te.categoryId,"/detail")},"\u8BFE\u7A0B\u5B9E\u9A8C")),h.a.createElement(U.a.Item,null,fe==null?void 0:fe.username))),h.a.createElement("aside",{className:[N.a.title,"mt20"].join(" ")},h.a.createElement(E.a,{to:"/classrooms/".concat(fe.course_id,"/shixun_homework/").concat(te.categoryId,"/detail?tabs=2")},h.a.createElement(L.a,{className:"font16 c-black"})),h.a.createElement("strong",{className:"font20 ml5"},fe.homework_common_name))),h.a.createElement("section",{className:"minH500 bg-white pt10 mt20"},h.a.createElement(k.a,{className:"pl20 pr20"},h.a.createElement(m.a,{flex:"1"},h.a.createElement("span",{className:"c-red"},"\u975E\u7F16\u7A0B\u7C7B\u578B\u4EFB\u52A1\uFF0C\u4E0D\u53C2\u4E0E\u67E5\u91CD")),h.a.createElement(m.a,null,"\u88AB\u67E5\u4F5C\u54C1\uFF1A",h.a.createElement("span",{className:"c-red mr40"},fe==null?void 0:fe.username),"\u6700\u7EC8\u6210\u7EE9\uFF1A",h.a.createElement("span",{className:"c-red"},fe.final_score),"\u5206")),h.a.createElement(S.a,{className:"mt10",loading:K["shixunHomeworks/getCodeReviewDetail"],pagination:!1,dataSource:fe.challenge_list,columns:de,onChange:function(ae,he,Fe){Fe.order==="ascend"&&(te.b_order="asc"),Fe.order==="descend"&&(te.b_order="desc"),Fe.order||delete te.b_order,G({type:"shixunHomeworks/getCodeReview",payload:Object(u.a)({},te)})}}),h.a.createElement("div",{className:"font16 mt20 ml5"},"\u5B9E\u8BAD\u8BE6\u60C5"),h.a.createElement(f,null)))},g=x.default=Object(b.a)(function(R){var B=R.shixunHomeworks,W=R.loading;return{shixunHomeworks:B,loading:W.effects}})(j)},QDVR:function(xe,x,t){"use strict";t.d(x,"e",function(){return S}),t.d(x,"d",function(){return H}),t.d(x,"c",function(){return V}),t.d(x,"b",function(){return U}),t.d(x,"a",function(){return C});var I=function(){var a=function(s,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var c in r)r.hasOwnProperty(c)&&(i[c]=r[c])},a(s,u)};return function(s,u){a(s,u);function i(){this.constructor=s}s.prototype=u===null?Object.create(u):(i.prototype=u.prototype,new i)}}();function S(a){var s=[];return a.forEach(function(u){return s.push(u)}),s}function H(a){var s=[];return a.forEach(function(u,i){return s.push(i)}),s}var k=function(){function a(){this._value="",this._pos=0}return a.prototype.reset=function(s){return this._value=s,this._pos=0,this},a.prototype.next=function(){return this._pos+=1,this},a.prototype.hasNext=function(){return this._pos0)r.left||(r.left=new m,r.left.segment=i.value()),r=r.left;else if(c<0)r.right||(r.right=new m,r.right.segment=i.value()),r=r.right;else if(i.hasNext())i.next(),r.mid||(r.mid=new m,r.mid.segment=i.value()),r=r.mid;else break}var n=r.value;return r.value=u,r.key=s,n},a.prototype.get=function(s){for(var u=this._iter.reset(s),i=this._root;i;){var r=u.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(u.hasNext())u.next(),i=i.mid;else break}return i?i.value:void 0},a.prototype.findSubstr=function(s){for(var u=this._iter.reset(s),i=this._root,r=void 0;i;){var c=u.cmp(i.segment);if(c>0)i=i.left;else if(c<0)i=i.right;else if(u.hasNext())u.next(),r=i.value||r,i=i.mid;else break}return i&&i.value||r},a.prototype.forEach=function(s){this._forEach(this._root,s)},a.prototype._forEach=function(s,u){s&&(this._forEach(s.left,u),s.value&&u(s.value,s.key),this._forEach(s.mid,u),this._forEach(s.right,u))},a}(),U=function(){function a(){this.map=new Map,this.ignoreCase=!1}return a.prototype.set=function(s,u){this.map.set(this.toKey(s),u)},a.prototype.get=function(s){return this.map.get(this.toKey(s))},a.prototype.toKey=function(s){var u=s.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},a}(),v=function(){function a(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return a.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(a.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),a.prototype.get=function(s,u){u===void 0&&(u=0);var i=this._map.get(s);return i?(u!==0&&this.touch(i,u),i.value):void 0},a.prototype.set=function(s,u,i){i===void 0&&(i=0);var r=this._map.get(s);if(r)r.value=u,i!==0&&this.touch(r,i);else{r={key:s,value:u,next:void 0,previous:void 0};switch(i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(s,r),this._size++}},a.prototype.delete=function(s){return!!this.remove(s)},a.prototype.remove=function(s){var u=this._map.get(s);return u?(this._map.delete(s),this.removeItem(u),this._size--,u.value):void 0},a.prototype.forEach=function(s,u){for(var i=this._head;i;)u?s.bind(u)(i.value,i.key,this):s(i.value,i.key,this),i=i.next},a.prototype.trimOld=function(s){if(s>=this.size)return;if(s===0){this.clear();return}for(var u=this._head,i=this.size;u&&i>s;)this._map.delete(u.key),u=u.next,i--;this._head=u,this._size=i,u&&(u.previous=void 0)},a.prototype.addItemFirst=function(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s},a.prototype.addItemLast=function(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s},a.prototype.removeItem=function(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{var u=s.next,i=s.previous;if(!u||!i)throw new Error("Invalid list");u.previous=i,i.next=u}s.next=void 0,s.previous=void 0},a.prototype.touch=function(s,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(s===this._head)return;var i=s.next,r=s.previous;s===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s}else if(u===2){if(s===this._tail)return;var i=s.next,r=s.previous;s===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s}},a.prototype.toJSON=function(){var s=[];return this.forEach(function(u,i){s.push([i,u])}),s},a}(),C=function(a){I(s,a);function s(u,i){i===void 0&&(i=1);var r=a.call(this)||this;return r._limit=u,r._ratio=Math.min(Math.max(0,i),1),r}return s.prototype.get=function(u){return a.prototype.get.call(this,u,2)},s.prototype.peek=function(u){return a.prototype.get.call(this,u,0)},s.prototype.set=function(u,i){a.prototype.set.call(this,u,i,2),this.checkTrim()},s.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},s}(v)},"SA+Z":function(xe,x,t){var I=t("wTVA"),S=t("EbDI"),H=t("ZhPi"),k=t("wkBT");function T(m){return I(m)||S(m)||H(m)||k()}xe.exports=T,xe.exports.__esModule=!0,xe.exports.default=xe.exports},T8No:function(xe,x,t){"use strict";t.d(x,"a",function(){return k}),t.d(x,"b",function(){return u}),t.d(x,"d",function(){return i}),t.d(x,"c",function(){return r}),t.d(x,"e",function(){return c});var I=t("N0LK"),S=t("Cg/j"),H=function(){var n=function(e,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var L in h)h.hasOwnProperty(L)&&(d[L]=h[L])},n(e,l)};return function(e,l){n(e,l);function d(){this.constructor=e}e.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),k=function(){function n(){}return n.has=function(e){return m.create(e)},n.equals=function(e,l){return V.create(e,l)},n.regex=function(e,l){return C.create(e,l)},n.not=function(e){return v.create(e)},n.and=function(){for(var e=[],l=0;l=0){var d=e.split("!=");return U.create(d[0].trim(),this._deserializeValue(d[1],l))}if(e.indexOf("==")>=0){var d=e.split("==");return V.create(d[0].trim(),this._deserializeValue(d[1],l))}if(e.indexOf("=~")>=0){var d=e.split("=~");return C.create(d[0].trim(),this._deserializeRegexValue(d[1],l))}return/^\!\s*/.test(e)?v.create(e.substr(1).trim()):m.create(e)},n._deserializeValue=function(e,l){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;var d=/^'([^']*)'$/.exec(e);return d?d[1].trim():e},n._deserializeRegexValue=function(e,l){if(Object(I.x)(e)){if(l)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var d=e.indexOf("/"),h=e.lastIndexOf("/");if(d===h||d<0){if(l)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var L=e.slice(d+1,h),O=e[h+1]==="i"?"i":"";try{return new RegExp(L,O)}catch(A){if(l)throw new Error("bad regexp-value '"+e+"', parse error: "+A);return console.warn("bad regexp-value '"+e+"', parse error: "+A),null}},n}();function T(n,e){var l=n.getType(),d=e.getType();if(l!==d)return l-d;switch(l){case 1:return n.cmp(e);case 2:return n.cmp(e);case 3:return n.cmp(e);case 4:return n.cmp(e);case 6:return n.cmp(e);case 7:return n.cmp(e);case 5:return n.cmp(e);default:throw new Error("Unknown ContextKeyExpr!")}}var m=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 1},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return v.create(this.key)},n}(),V=function(){function n(e,l){this.key=e,this.value=l}return n.create=function(e,l){return typeof l=="boolean"?l?m.create(e):v.create(e):new n(e,l)},n.prototype.getType=function(){return 3},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return U.create(this.key,this.value)},n}(),U=function(){function n(e,l){this.key=e,this.value=l}return n.create=function(e,l){return typeof l=="boolean"?l?v.create(e):m.create(e):new n(e,l)},n.prototype.getType=function(){return 4},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return V.create(this.key,this.value)},n}(),v=function(){function n(e){this.key=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 2},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!e.getValue(this.key)},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return m.create(this.key)},n}(),C=function(){function n(e,l){this.key=e,this.regexp=l}return n.create=function(e,l){return new n(e,l)},n.prototype.getType=function(){return 6},n.prototype.cmp=function(e){if(this.keye.key)return 1;var l=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return ld?1:0},n.prototype.equals=function(e){if(e instanceof n){var l=this.regexp?this.regexp.source:"",d=e.regexp?e.regexp.source:"";return this.key===e.key&&l===d}return!1},n.prototype.evaluate=function(e){var l=e.getValue(this.key);return this.regexp?this.regexp.test(l):!1},n.prototype.keys=function(){return[this.key]},n.prototype.negate=function(){return a.create(this)},n}(),a=function(){function n(e){this._actual=e}return n.create=function(e){return new n(e)},n.prototype.getType=function(){return 7},n.prototype.cmp=function(e){return this._actual.cmp(e._actual)},n.prototype.equals=function(e){return e instanceof n?this._actual.equals(e._actual):!1},n.prototype.evaluate=function(e){return!this._actual.evaluate(e)},n.prototype.keys=function(){return this._actual.keys()},n.prototype.negate=function(){return this._actual},n}(),s=function(){function n(e){this.expr=e}return n.create=function(e){var l=n._normalizeArr(e);return l.length===0?void 0:l.length===1?l[0]:new n(l)},n.prototype.getType=function(){return 5},n.prototype.cmp=function(e){if(this.expr.lengthe.expr.length)return 1;for(var l=0,d=this.expr.length;l1;){for(var O=e.shift(),A=e.shift(),F=[],E=0,b=L(O);E0&&arguments[0]!==void 0?arguments[0]:[],D=o;if(Array.isArray(o)){for(var N=0;N0||nt.target.offsetWidth>0)&&X.current.instance.layout()}}catch(et){ge.e(et)}finally{ge.f()}}),ue.observe($.current)),ue}function Ce(){P.b.warn({content:decodeURIComponent(c),key:"monaco-editor-tip"})}var Me=function(){var re=X.current.instance;if(f!=null&&re&&Z){var ge=re.getModel();ge&&f!==ge.getValue()&&(L=!0,ge.setValue(f),re.layout(),L=!1)}};Object(a.useEffect)(function(){try{var ue,re=X.current.instance;le.current&&clearTimeout(le.current),le.current=setTimeout(function(){Me()},500),re==null||((ue=re.updateOptions)===null||ue===void 0)||ue.call(re,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(f.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ge){debugger}},[f,Z,X.current]),Object(a.useEffect)(function(){try{if(Fe&&X.current&&X.current.instance){var ue=X.current.instance;ue.changeViewZones(function(ge){var Le=document.createElement("div");Le.style.padding="10px 20px",Le.style.width="calc(100% - 20px)",Le.className="my-error-line-wrp",Le.innerHTML=at,ge.addZone({afterLineNumber:Fe||11,heightInLines:3,domNode:Le})});var re={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ue.addOverlayWidget(re),ue.revealPositionInCenter({lineNumber:20,column:1})}}catch(ge){debugger}},[Fe,X.current,Z]),Object(a.useEffect)(function(){var ue;if((ue=X.current)!==null&&ue!==void 0&&ue.instance&&Z&&pt){var re=X.current.instance,ge=re.getModel();if(!ge)return;var Le=function(){var Ke=[],Pe=[],Be=ge.getAllDecorations(),Xe=Object(m.a)(Be),$e;try{for(Xe.s();!($e=Xe.n()).done;){var Ie=$e.value;if(Ie.options.className==="highlighted-line"){var ze;Ke.push(Ie==null||((ze=Ie.range)===null||ze===void 0)?void 0:ze.startLineNumber),Pe.push(Ie==null?void 0:Ie.id)}}}catch(Qe){Xe.e(Qe)}finally{Xe.f()}ge.deltaDecorations(Pe,[]);var st=ge.getLineCount();!!Je&&Je<=st&&(re.deltaDecorations([],[{range:new F.Range(Je,1,Je,ge.getLineMaxColumn(Je)),options:{isWholeLine:!0,className:"highlighted-line"}}]),re.revealLineInCenter(Je))};Le();var nt=function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Pe=[],Be=[],Xe=ge.getAllDecorations(),$e=Object(m.a)(Xe),Ie;try{for($e.s();!(Ie=$e.n()).done;){var ze=Ie.value;if(ze.options.linesDecorationsClassName==="breakpoints"){var st;Pe.push(ze==null||((st=ze.range)===null||st===void 0)?void 0:st.startLineNumber),Be.push(ze==null?void 0:ze.id)}}}catch(Qe){$e.e(Qe)}finally{$e.f()}if(Ke)return{lines:Pe,ids:Be};Y(Pe)},et=function(){var _e=Object(H.a)(C.a.mark(function Ke(Pe){var Be;return C.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Be={range:new F.Range(Pe,1,Pe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},$e.next=3,ge.deltaDecorations([],[Be]);case 3:nt();case 4:case"end":return $e.stop()}},Ke)}));return function(Pe){return _e.apply(this,arguments)}}(),ft=function(){var _e=Object(H.a)(C.a.mark(function Ke(Pe){var Be,Xe,$e,Ie,ze;return C.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:Be=[],Xe=re.getLineDecorations(Pe),$e=Object(m.a)(Xe);try{for($e.s();!(Ie=$e.n()).done;)ze=Ie.value,ze.options.linesDecorationsClassName==="breakpoints"&&Be.push(ze.id)}catch(gt){$e.e(gt)}finally{$e.f()}return Qe.next=6,ge.deltaDecorations(Be,[]);case 6:nt();case 7:case"end":return Qe.stop()}},Ke)}));return function(Pe){return _e.apply(this,arguments)}}(),ht=function(Ke){var Pe=re.getLineDecorations(Ke),Be=Object(m.a)(Pe),Xe;try{for(Be.s();!(Xe=Be.n()).done;){var $e=Xe.value;if($e.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Ie){Be.e(Ie)}finally{Be.f()}return!1};if(!Object(e.isEqual)(se,nt(!0).lines)){ge.deltaDecorations(nt(!0).ids,[]);var vt=se.map(function(_e){return{range:new F.Range(_e,1,_e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ge.deltaDecorations([],vt)}var Et=re.onDidChangeModelContent(function(_e){var Ke=re.getPosition();if(Ke){var Pe=Ke.lineNumber;ge.getLineContent(Pe).trim()===""?ft(Pe):ht(Pe)&&(ft(Pe),et(Pe))}}),Ct=re.onMouseDown(function(_e){var Ke,Pe,Be;if(_e.target.detail&&(Ke=_e.target)!==null&&Ke!==void 0&&(Pe=Ke.element)!==null&&Pe!==void 0&&(Be=Pe.className)!==null&&Be!==void 0&&Be.includes("line-numbers")){var Xe=_e.target.position.lineNumber;if(ge.getLineContent(Xe).trim()==="")return;ht(Xe)?ft(Xe):et(Xe)}}),Rt=function(Ke){var Pe={range:new F.Range(Ke,1,Ke,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ee.current=re.deltaDecorations(ee.current,[Pe])},dt=function(){ee.current=re.deltaDecorations(ee.current,[])},Dt=re.onMouseMove(function(_e){var Ke,Pe,Be;if(dt(),_e.target.detail&&(Ke=_e.target)!==null&&Ke!==void 0&&(Pe=Ke.element)!==null&&Pe!==void 0&&(Be=Pe.className)!==null&&Be!==void 0&&Be.includes("line-numbers")){var Xe=_e.target.position.lineNumber;if(ge.getLineContent(Xe).trim()==="")return;Rt(Xe)}}),xt=re.onMouseLeave(function(){dt()});return function(){Et.dispose(),Ct.dispose(),Dt.dispose(),xt.dispose()}}},[X.current,Z,se,Je,pt]);function He(){var ue=X.current.instance;if(ue){var re=ue.getSelection(),ge=X.current.pastePos||{},Le=new F.Range(ge.startLineNumber||re.endLineNumber,ge.startColumn||re.endColumn,ge.endLineNumber||re.endLineNumber,ge.endColumn||re.endColumn);setTimeout(function(){ue.executeEdits("",[{range:Le,text:""}])},300)}}function Te(ue){(window.navigator.platform.match("Mac")?ue.metaKey:ue.ctrlKey)&&ue.keyCode==83&&(ue.preventDefault(),ie())}var Ae=function(){if(ye&&X.current.instance){var re=X.current.instance.getContentHeight();Ve(re0||Re.target.offsetWidth>0)&&ye.layout()}}catch(Ee){ce.e(Ee)}finally{ce.f()}}),ve.observe(W.current)),ve}Object(a.useEffect)(function(){return W.current&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(ye){F=ye;var ve=F.editor.createDiffEditor(W.current,Object(I.a)(Object(I.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},B),{},{wordWrap:!0}));oe(ve);var fe=te(ve);return function(){ve.dispose();var ce=ve.getModel();ce&&ce.dispose(),fe.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(a.useEffect)(function(){J&&J.setModel({original:F.editor.createModel(f,g),modified:F.editor.createModel(j,g)})},[f,j,g,J]);var Oe=d(N),ie=d(p),De={width:Oe,height:ie};return s.a.createElement("div",{className:"my-diff-editor",ref:W,style:De})}},ZpRC:function(xe,x,t){"use strict";function I(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function S(a,s){return(!s||a!=="hidden")&&a!=="visible"&&a!=="clip"}function H(a,s){if(a.clientHeights||c>a&&n=s&&e>=u?c-a-i:n>s&&eu?n-s+r:0}var P=function(a,s){var u=window,i=s.scrollMode,r=s.block,c=s.inline,n=s.boundary,e=s.skipOverflowHiddenElements,l=typeof n=="function"?n:function(Y){return Y!==n};if(!I(a))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,h=[],L=a;I(L)&&l(L);){if((L=L.parentElement)===d){h.push(L);break}L!=null&&L===document.body&&H(L)&&!H(document.documentElement)||L!=null&&H(L,e)&&h.push(L)}for(var O=u.visualViewport?u.visualViewport.width:innerWidth,A=u.visualViewport?u.visualViewport.height:innerHeight,F=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,b=a.getBoundingClientRect(),o=b.height,D=b.width,N=b.top,M=b.right,p=b.bottom,f=b.left,j=r==="start"||r==="nearest"?N:r==="end"?p:N+o/2,g=c==="center"?f+D/2:c==="end"?M:f,R=[],B=0;B=0&&f>=0&&p<=A&&M<=O&&N>=oe&&p<=Oe&&f>=ie&&M<=te)return R;var De=getComputedStyle(W),ye=parseInt(De.borderLeftWidth,10),ve=parseInt(De.borderTopWidth,10),fe=parseInt(De.borderRightWidth,10),ce=parseInt(De.borderBottomWidth,10),je=0,Re=0,Ee="offsetWidth"in W?W.offsetWidth-W.clientWidth-ye-fe:0,y="offsetHeight"in W?W.offsetHeight-W.clientHeight-ve-ce:0;if(d===W)je=r==="start"?j:r==="end"?j-A:r==="nearest"?k(E,E+A,A,ve,ce,E+j,E+j+o,o):j-A/2,Re=c==="start"?g:c==="center"?g-O/2:c==="end"?g-O:k(F,F+O,O,ye,fe,F+g,F+g+D,D),je=Math.max(0,je+E),Re=Math.max(0,Re+F);else{je=r==="start"?j-oe-ve:r==="end"?j-Oe+ce+y:r==="nearest"?k(oe,Oe,G,ve,ce+y,j,j+o,o):j-(oe+G/2)+y/2,Re=c==="start"?g-ie-ye:c==="center"?g-(ie+J/2)+Ee/2:c==="end"?g-te+fe+Ee:k(ie,te,J,ye,fe+Ee,g,g+D,D);var T=W.scrollLeft,z=W.scrollTop;j+=z-(je=Math.max(0,Math.min(z+je,W.scrollHeight-G+y))),g+=T-(Re=Math.max(0,Math.min(T+Re,W.scrollWidth-J+Ee)))}R.push({el:W,top:je,left:Re})}return R};function m(a){return a===Object(a)&&Object.keys(a).length!==0}function V(a,s){s===void 0&&(s="auto");var u="scrollBehavior"in document.body.style;a.forEach(function(i){var r=i.el,c=i.top,n=i.left;r.scroll&&u?r.scroll({top:c,left:n,behavior:s}):(r.scrollTop=c,r.scrollLeft=n)})}function U(a){return a===!1?{block:"end",inline:"nearest"}:m(a)?a:{block:"start",inline:"nearest"}}function v(a,s){var u=!a.ownerDocument.documentElement.contains(a);if(m(s)&&typeof s.behavior=="function")return s.behavior(u?[]:P(a,s));if(u)return;var i=U(s);return V(P(a,i),i.behavior)}var C=x.a=v},biw7:function(xe,x,t){"use strict";var I=t("q1tI"),S=t.n(I),H=I.createContext(null);x.a=H},dHP6:function(xe,x,t){xe.exports={flex_box_center:"flex_box_center___x7p9B",flex_space_between:"flex_space_between___1dpUp",flex_box_vertical_center:"flex_box_vertical_center___1HpWl",flex_box_center_end:"flex_box_center_end___1j-WY",flex_box_column:"flex_box_column___CILC5",title:"title___1ypti",shixunTitle:"shixunTitle___3RarB",shixunWrp:"shixunWrp___3cvwg"}},dmUQ:function(xe,x,t){"use strict";var I=t("Ff2n"),S=t("rePB"),H=t("1OyB"),k=t("vuIU"),P=t("Ji7U"),m=t("md7G"),V=t("foSv"),U=t("q1tI"),v=t.n(U),C=t("TSYQ"),a=t.n(C),s=t("4IlW");function u(o,D){var N=Object.keys(o);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(o);D&&(M=M.filter(function(p){return Object.getOwnPropertyDescriptor(o,p).enumerable})),N.push.apply(N,M)}return N}function i(o){for(var D=1;D1?J-1:0),te=1;te1?B-1:0),K=1;K=0)return parseInt(R.slice(R.indexOf("e-")+2),10);var B=0;return R.indexOf(".")>=0&&(B=R.length-R.indexOf(".")-1),B},p.getInputDisplayValue=function(g){var R=g||p.state,B=R.focused,W=R.inputValue,K=R.value,G;B?G=W:G=p.toPrecisionAsStep(K),G==null&&(G="");var J=p.formatWrapper(G);return O(p.props.decimalSeparator)&&(J=J.toString().replace(".",p.props.decimalSeparator)),J},p.recordCursorPosition=function(){try{p.cursorStart=p.input.selectionStart,p.cursorEnd=p.input.selectionEnd,p.currentValue=p.input.value,p.cursorBefore=p.input.value.substring(0,p.cursorStart),p.cursorAfter=p.input.value.substring(p.cursorEnd)}catch(g){}},p.restoreByAfter=function(g){if(g===void 0)return!1;var R=p.input.value,B=R.lastIndexOf(g);if(B===-1)return!1;var W=p.cursorBefore.length;return p.lastKeyCode===s.a.DELETE&&p.cursorBefore.charAt(W-1)===g[0]?(p.fixCaret(W,W),!0):B+g.length===R.length?(p.fixCaret(B,B),!0):!1},p.partRestoreByAfter=function(g){return g===void 0?!1:Array.prototype.some.call(g,function(R,B){var W=g.substring(B);return p.restoreByAfter(W)})},p.isNotCompleteNumber=function(g){return isNaN(g)||g===""||g===null||g&&g.toString().indexOf(".")===g.toString().length-1},p.stop=function(){p.autoStepTimer&&clearTimeout(p.autoStepTimer)},p.down=function(g,R,B){p.pressingUpOrDown=!0,p.step("down",g,R,B)},p.up=function(g,R,B){p.pressingUpOrDown=!0,p.step("up",g,R,B)},p.saveInput=function(g){p.input=g};var f=M.value;f===void 0&&(f=M.defaultValue),p.state={focused:M.autoFocus};var j=p.getValidValue(p.toNumber(f));return p.state=i(i({},p.state),{},{inputValue:p.toPrecisionAsStep(j),value:j}),p}return Object(k.a)(N,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(p){var f=this.props,j=f.value,g=f.onChange,R=f.max,B=f.min,W=this.state.focused;if(p){if(!A(p.value,j)||!A(p.max,R)||!A(p.min,B)){var K=W?j:this.getValidValue(j),G;this.pressingUpOrDown?G=K:this.inputting?G=this.rawInput:G=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:G})}var J="value"in this.props?j:this.state.value;"max"in this.props&&p.max!==R&&typeof J=="number"&&J>R&&g&&g(R),"min"in this.props&&p.min!==B&&typeof J=="number"&&J1&&arguments[1]!==void 0?arguments[1]:this.props.min,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,g=parseFloat(p);return isNaN(g)?p:(gj&&(g=j),g)}},{key:"setValue",value:function(p,f){var j=this.props.precision,g=this.isNotCompleteNumber(parseFloat(p))?null:parseFloat(p),R=this.state.value,B=R===void 0?null:R,W=this.state.inputValue,K=W===void 0?null:W,G=typeof g=="number"?g.toFixed(j):"".concat(g),J=g!==B||G!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},f)):this.setState({value:g,inputValue:this.toPrecisionAsStep(p)},f),J&&this.props.onChange(g),g}},{key:"getMaxPrecision",value:function(p){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.props,g=j.precision,R=j.step;if(O(g))return g;var B=this.getPrecision(f),W=this.getPrecision(R),K=this.getPrecision(p);return p?Math.max(K,B+W):B+W}},{key:"getPrecisionFactor",value:function(p){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.getMaxPrecision(p,f);return Math.pow(10,j)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(p){return this.props.formatter?this.props.formatter(p):p}},{key:"toPrecisionAsStep",value:function(p){if(this.isNotCompleteNumber(p)||p==="")return p;var f=Math.abs(this.getMaxPrecision(p));return isNaN(f)?p.toString():Number(p).toFixed(f)}},{key:"toNumber",value:function(p){var f=this.props.precision,j=this.state.focused,g=p&&p.length>16&&j;return this.isNotCompleteNumber(p)||g?p:O(f)?Math.round(p*Math.pow(10,f))/Math.pow(10,f):Number(p)}},{key:"upStep",value:function(p,f){var j=this.props.step,g=this.getPrecisionFactor(p,f),R=Math.abs(this.getMaxPrecision(p,f)),B=((g*p+g*j*f)/g).toFixed(R);return this.toNumber(B)}},{key:"downStep",value:function(p,f){var j=this.props.step,g=this.getPrecisionFactor(p,f),R=Math.abs(this.getMaxPrecision(p,f)),B=((g*p-g*j*f)/g).toFixed(R);return this.toNumber(B)}},{key:"step",value:function(p,f){var j=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=arguments.length>3?arguments[3]:void 0;this.stop(),f&&(f.persist(),f.preventDefault());var B=this.props;if(B.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var K=this["".concat(p,"Step")](W,g),G=K>B.max||KB.max?K=B.max:K=oe),ee=(We||We===0)&&(isNaN(We)||Number(We)<=te),Q=le||g||R,_=ee||g||R,q=a()("".concat(j,"-handler"),"".concat(j,"-handler-up"),Object(S.a)({},"".concat(j,"-handler-up-disabled"),Q)),pe=a()("".concat(j,"-handler"),"".concat(j,"-handler-down"),Object(S.a)({},"".concat(j,"-handler-down-disabled"),_)),Z=B?{onTouchStart:Q?n:this.up,onTouchEnd:this.stop}:{onMouseDown:Q?n:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},me=B?{onTouchStart:_?n:this.down,onTouchEnd:this.stop}:{onMouseDown:_?n:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return v.a.createElement("div",{className:w,style:Oe,title:ie,onMouseEnter:De,onMouseLeave:ye,onMouseOver:ve,onMouseOut:fe,onFocus:function(){return null},onBlur:function(){return null}},v.a.createElement("div",{className:"".concat(j,"-handler-wrap")},v.a.createElement("span",Object.assign({unselectable:"on"},Z,{role:"button","aria-label":"Increase Value","aria-disabled":Q,className:q}),K||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner"),onClick:e})),v.a.createElement("span",Object.assign({unselectable:"on"},me,{role:"button","aria-label":"Decrease Value","aria-disabled":_,className:pe}),G||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner"),onClick:e}))),v.a.createElement("div",{className:"".concat(j,"-input-wrap")},v.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":te,"aria-valuemax":oe,"aria-valuenow":We,required:ce,type:Ee,placeholder:y,onPaste:Fe,onClick:je,onMouseUp:this.onMouseUp,className:"".concat(j,"-input"),tabIndex:Re,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:X?this.onKeyDown:n,onKeyUp:X?this.onKeyUp:n,autoFocus:ae,maxLength:se,readOnly:R,disabled:g,max:oe,min:te,step:de,name:he,title:ie,id:T,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ne),pattern:Y,inputMode:z,onInput:Ge},$))))}}]),N}(v.a.Component);F.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:L,min:-L,step:1,style:{},onChange:n,onKeyDown:n,onPressEnter:n,onFocus:n,onBlur:n,parser:l,required:!1,autoComplete:"off"};var E=F,b=x.a=E},fjLI:function(xe,x,t){"use strict";t.d(x,"e",function(){return C}),t.d(x,"a",function(){return a}),t.d(x,"c",function(){return s}),t.d(x,"d",function(){return i}),t.d(x,"b",function(){return r});var I=t("8HAY"),S=t("Cg/j"),H=t("T8No"),k=t("nnTU"),P=t("MI8n"),m=function(){var c=function(n,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])},c(n,e)};return function(n,e){c(n,e);function l(){this.constructor=n}n.prototype=e===null?Object.create(e):(l.prototype=e.prototype,new l)}}(),V=function(c,n,e,l){var d=arguments.length,h=d<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,e):l,L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(c,n,e,l);else for(var O=c.length-1;O>=0;O--)(L=c[O])&&(h=(d<3?L(h):d>3?L(n,e,h):L(n,e))||h);return d>3&&h&&Object.defineProperty(n,e,h),h},U=function(c,n){return function(e,l){n(e,l,c)}},v=function(){for(var c=0,n=0,e=arguments.length;n=0&&(d.splice(h,1),l._onDidChangeMenu.fire(n))}}},c.prototype.getMenuItems=function(n){var e=(this._menuItems.get(n)||[]).slice(0);return n===0&&this._appendImplicitItems(e),e},c.prototype._appendImplicitItems=function(n){for(var e=new Set,l=n.filter(function(F){return C(F)}),d=0,h=l;d=H.length?{done:!0}:{done:!1,value:H[m++]}},e:function(s){throw s},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,v=!1,C;return{s:function(){P=H[Symbol.iterator]()},n:function(){var s=P.next();return U=s.done,s},e:function(s){v=!0,C=s},f:function(){try{!U&&P.return!=null&&P.return()}finally{if(v)throw C}}}}},sR1s:function(xe,x,t){"use strict";t.d(x,"b",function(){return k}),t.d(x,"a",function(){return P}),t.d(x,"c",function(){return m}),t.d(x,"d",function(){return V});var I=t("U8pU"),S="RC_TABLE_KEY";function H(U){return U==null?[]:Array.isArray(U)?U:[U]}function k(U,v){if(!v&&typeof v!="number")return U;for(var C=H(v),a=U,s=0;s1)Object(C.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(d.length===0)return Object(C.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=d[0];if(m.isValidElement(h)&&Object(a.c)(h)){var L=h.ref;d[0]=m.cloneElement(h,{ref:Object(a.a)(L,this.setChildNode)})}return d.length===1?d[0]:d.map(function(O,A){return!m.isValidElement(O)||"key"in O&&O.key!==null?O:m.cloneElement(O,{key:"".concat(u,"-").concat(A)})})}}]),n}(m.Component);i.displayName="ResizeObserver",x.a=i},wCXF:function(xe,x,t){"use strict";t.d(x,"a",function(){return at});var I=t("rePB"),S=t("VTBJ"),H=t("KQm4"),k=t("U8pU"),P=t("ODXe"),m=t("q1tI"),V=t("TSYQ"),U=t.n(V),v=t("Gytx"),C=t.n(v),a=t("Kwbf"),s=t("t23M"),u=t("qx4F"),i=t("6eGT"),r=t("IBYe"),c=t("Ff2n"),n=t("c+Xe"),e=t("fyJ8"),l=t("biw7");function d(w,$,X,ne,le){var ee=X[w]||{},Q=X[$]||{},_,q;ee.fixed==="left"?_=ne.left[w]:Q.fixed==="right"&&(q=ne.right[$]);var pe=!1,Z=!1,me=!1,be=!1,Ce=X[$+1],Me=X[w-1];if(le==="rtl"){if(_!==void 0){var He=Me&&Me.fixed==="left";be=!He}else if(q!==void 0){var Te=Ce&&Ce.fixed==="right";me=!Te}}else if(_!==void 0){var Ae=Ce&&Ce.fixed==="left";pe=!Ae}else if(q!==void 0){var Ne=Me&&Me.fixed==="right";Z=!Ne}return{fixLeft:_,fixRight:q,lastFixLeft:pe,firstFixRight:Z,lastFixRight:me,firstFixLeft:be,isSticky:ne.isSticky}}var h=t("sR1s");function L(w){var $=w.cells,X=w.stickyOffsets,ne=w.flattenColumns,le=w.rowComponent,ee=w.cellComponent,Q=w.onHeaderRow,_=w.index,q=m.useContext(l.a),pe=q.prefixCls,Z=q.direction,me;Q&&(me=Q($.map(function(Ce){return Ce.column}),_));var be=Object(h.a)($.map(function(Ce){return Ce.column}));return m.createElement(le,Object.assign({},me),$.map(function(Ce,Me){var He=Ce.column,Te=d(Ce.colStart,Ce.colEnd,ne,X,Z),Ae;return He&&He.onHeaderCell&&(Ae=Ce.column.onHeaderCell(He)),m.createElement(e.a,Object.assign({},Ce,{ellipsis:He.ellipsis,align:He.align,component:ee,prefixCls:pe,key:be[Me]},Te,{additionalProps:Ae,rowType:"header"}))}))}L.displayName="HeaderRow";var O=L;function A(w){var $=[];function X(Q,_){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;$[q]=$[q]||[];var pe=_,Z=Q.filter(Boolean).map(function(me){var be={key:me.key,className:me.className||"",children:me.title,column:me,colStart:pe},Ce=1,Me=me.children;return Me&&Me.length>0&&(Ce=X(Me,pe,q+1).reduce(function(He,Te){return He+Te},0),be.hasSubColumns=!0),"colSpan"in me&&(Ce=me.colSpan),"rowSpan"in me&&(be.rowSpan=me.rowSpan),be.colSpan=Ce,be.colEnd=be.colStart+Ce-1,$[q].push(be),pe+=Ce,Ce});return Z}X(w,0);for(var ne=$.length,le=function(_){$[_].forEach(function(q){!("rowSpan"in q)&&!q.hasSubColumns&&(q.rowSpan=ne-_)})},ee=0;ee=0;_-=1){var q=$[_],pe=X&&X[_],Z=pe&&pe[b.a];(q||Z||Q)&&(le.unshift(m.createElement("col",Object.assign({key:_,style:{width:q,minWidth:q}},Z))),Q=!0)}return m.createElement("colgroup",null,le)}var D=o;function N(w,$){return Object(m.useMemo)(function(){for(var X=[],ne=0;ne<$;ne+=1){var le=w[ne];if(le!==void 0)X[ne]=le;else return null}return X},[w.join("_"),$])}var M=m.forwardRef(function(w,$){var X=w.noData,ne=w.columns,le=w.flattenColumns,ee=w.colWidths,Q=w.columCount,_=w.stickyOffsets,q=w.direction,pe=w.fixHeader,Z=w.offsetHeader,me=w.stickyClassName,be=w.onScroll,Ce=Object(c.a)(w,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Me=m.useContext(l.a),He=Me.prefixCls,Te=Me.scrollbarSize,Ae=Me.isSticky,Ne=Ae&&!pe?0:Te,it=m.useRef(null),Ze=m.useCallback(function(qe){Object(n.b)($,qe),Object(n.b)(it,qe)},[]);m.useEffect(function(){var qe;function Ve(Se){var ue=Se.currentTarget,re=Se.deltaX;re&&(be({currentTarget:ue,scrollLeft:ue.scrollLeft+re}),Se.preventDefault())}return(qe=it.current)===null||qe===void 0||qe.addEventListener("wheel",Ve),function(){var Se;(Se=it.current)===null||Se===void 0||Se.removeEventListener("wheel",Ve)}},[]);var Ye=le[le.length-1],tt={fixed:Ye?Ye.fixed:null,onHeaderCell:function(){return{className:"".concat(He,"-cell-scrollbar")}}},ut=Object(m.useMemo)(function(){return Ne?[].concat(Object(H.a)(ne),[tt]):ne},[Ne,ne]),ke=Object(m.useMemo)(function(){return Ne?[].concat(Object(H.a)(le),[tt]):le},[Ne,le]),ct=Object(m.useMemo)(function(){var qe=_.right,Ve=_.left;return Object(S.a)(Object(S.a)({},_),{},{left:q==="rtl"?[].concat(Object(H.a)(Ve.map(function(Se){return Se+Ne})),[0]):Ve,right:q==="rtl"?qe:[].concat(Object(H.a)(qe.map(function(Se){return Se+Ne})),[0]),isSticky:Ae})},[Ne,_,Ae]),ot=N(ee,Q);return m.createElement("div",{style:Object(S.a)({overflow:"hidden"},Ae?{top:Z}:{}),ref:Ze,className:U()("".concat(He,"-header"),Object(I.a)({},me,!!me))},m.createElement("table",{style:{tableLayout:"fixed",visibility:X||ot?null:"hidden"}},m.createElement(D,{colWidths:ot?[].concat(Object(H.a)(ot),[Ne]):[],columCount:Q+1,columns:ke}),m.createElement(E,Object.assign({},Ce,{stickyOffsets:ct,columns:ut,flattenColumns:ke}))))});M.displayName="FixedHeader";var p=M,f=m.createContext(null),j=f;function g(w){var $=w.prefixCls,X=w.children,ne=w.component,le=w.cellComponent,ee=w.fixHeader,Q=w.fixColumn,_=w.horizonScroll,q=w.className,pe=w.expanded,Z=w.componentWidth,me=w.colSpan,be=m.useContext(l.a),Ce=be.scrollbarSize;return m.useMemo(function(){var Me=X;return Q&&(Me=m.createElement("div",{style:{width:Z-(ee?Ce:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat($,"-expanded-row-fixed")},Me)),m.createElement(ne,{className:q,style:{display:pe?null:"none"}},m.createElement(e.a,{component:le,prefixCls:$,colSpan:me},Me))},[X,ne,ee,_,q,pe,Z,me,Ce])}var R=g;function B(w){var $=w.className,X=w.style,ne=w.record,le=w.index,ee=w.rowKey,Q=w.getRowKey,_=w.rowExpandable,q=w.expandedKeys,pe=w.onRow,Z=w.indent,me=Z===void 0?0:Z,be=w.rowComponent,Ce=w.cellComponent,Me=w.childrenColumnName,He=m.useContext(l.a),Te=He.prefixCls,Ae=He.fixedInfoList,Ne=m.useContext(j),it=Ne.fixHeader,Ze=Ne.fixColumn,Ye=Ne.horizonScroll,tt=Ne.componentWidth,ut=Ne.flattenColumns,ke=Ne.expandableType,ct=Ne.expandRowByClick,ot=Ne.onTriggerExpand,qe=Ne.rowClassName,Ve=Ne.expandedRowClassName,Se=Ne.indentSize,ue=Ne.expandIcon,re=Ne.expandedRowRender,ge=Ne.expandIconColumnIndex,Le=m.useState(!1),nt=Object(P.a)(Le,2),et=nt[0],ft=nt[1],ht=q&&q.has(w.recordKey);m.useEffect(function(){ht&&ft(!0)},[ht]);var vt=ke==="row"&&(!_||_(ne)),Et=ke==="nest",Ct=Me&&ne&&ne[Me],Rt=vt||Et,dt;pe&&(dt=pe(ne,le));var Dt=function(ze){if(ct&&Rt&&ot(ne,ze),dt&&dt.onClick){for(var st,Qe=arguments.length,gt=new Array(Qe>1?Qe-1:0),Ot=1;Ot=me&&(Le=me-be),Q({scrollLeft:Le/me*(Z+2)}),Ne.current.x=Se.pageX},ot=function(){var Se=Object(de.b)(ee.current).top,ue=Se+ee.current.offsetHeight,re=document.documentElement.scrollTop+window.innerHeight;ue-Object(u.a)()<=re||Se>=re-_?Ae(function(ge){return Object(S.a)(Object(S.a)({},ge),{},{isHiddenScrollBar:!0})}):Ae(function(ge){return Object(S.a)(Object(S.a)({},ge),{},{isHiddenScrollBar:!1})})},qe=function(Se){Ae(function(ue){return Object(S.a)(Object(S.a)({},ue),{},{scrollLeft:Se/Z*me||0})})};return m.useImperativeHandle(X,function(){return{setScrollLeft:qe}}),m.useEffect(function(){var Ve=Object(Y.a)(document.body,"mouseup",ut,!1),Se=Object(Y.a)(document.body,"mousemove",ct,!1);return ot(),function(){Ve.remove(),Se.remove()}},[be,Ye]),m.useEffect(function(){var Ve=Object(Y.a)(window,"scroll",ot,!1),Se=Object(Y.a)(window,"resize",ot,!1);return function(){Ve.remove(),Se.remove()}},[]),m.useEffect(function(){Te.isHiddenScrollBar||Ae(function(Ve){var Se,ue;return Object(S.a)(Object(S.a)({},Ve),{},{scrollLeft:ee.current.scrollLeft/((Se=ee.current)===null||Se===void 0?void 0:Se.scrollWidth)*((ue=ee.current)===null||ue===void 0?void 0:ue.clientWidth)})})},[Te.isHiddenScrollBar]),Z<=me||!be||Te.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(u.a)(),width:me,bottom:_},className:"".concat(pe,"-sticky-scroll")},m.createElement("div",{onMouseDown:ke,ref:Ce,className:U()("".concat(pe,"-sticky-scroll-bar"),Object(I.a)({},"".concat(pe,"-sticky-scroll-bar-active"),Ye)),style:{width:"".concat(be,"px"),transform:"translate3d(".concat(Te.scrollLeft,"px, 0, 0)")}}))},ae=m.forwardRef(se);function he(w,$){return m.useMemo(function(){var X=!!w;return{isSticky:X,stickyClassName:X?"".concat($,"-sticky-header"):"",offsetHeader:Object(k.a)(w)==="object"&&w.offsetHeader||0,offsetScroll:Object(k.a)(w)==="object"&&w.offsetScroll||0}},[w,$])}var Fe=[],Ge={},at="rc-table-internal-hook",Je=m.memo(function(w){var $=w.children;return $},function(w,$){return C()(w.props,$.props)?w.pingLeft!==$.pingLeft||w.pingRight!==$.pingRight:!1});function We(w){var $,X=w.prefixCls,ne=w.className,le=w.rowClassName,ee=w.style,Q=w.data,_=w.rowKey,q=w.scroll,pe=w.tableLayout,Z=w.direction,me=w.title,be=w.footer,Ce=w.summary,Me=w.id,He=w.showHeader,Te=w.components,Ae=w.emptyText,Ne=w.onRow,it=w.onHeaderRow,Ze=w.internalHooks,Ye=w.transformColumns,tt=w.internalRefs,ut=w.sticky,ke=Q||Fe,ct=!!ke.length,ot=m.useState(0),qe=Object(P.a)(ot,2),Ve=qe[0],Se=qe[1];m.useEffect(function(){Se(Object(u.a)())});var ue=m.useMemo(function(){return Object(h.c)(Te,{})},[Te]),re=m.useCallback(function(we,Ue){return Object(h.b)(ue,we)||Ue},[ue]),ge=m.useMemo(function(){return typeof _=="function"?_:function(we){var Ue=we&&we[_];return Ue}},[_]),Le=Object(b.c)(w),nt=Le.expandIcon,et=Le.expandedRowKeys,ft=Le.defaultExpandedRowKeys,ht=Le.defaultExpandAllRows,vt=Le.expandedRowRender,Et=Le.onExpand,Ct=Le.onExpandedRowsChange,Rt=Le.expandRowByClick,dt=Le.rowExpandable,Dt=Le.expandIconColumnIndex,xt=Le.expandedRowClassName,_e=Le.childrenColumnName,Ke=Le.indentSize,Pe=nt||T,Be=_e||"children",Xe=m.useMemo(function(){return vt?"row":w.expandable&&Ze===at&&w.expandable.__PARENT_RENDER_ICON__||ke.some(function(we){return we&&Object(k.a)(we)==="object"&&we[Be]})?"nest":!1},[!!vt,ke]),$e=m.useState(function(){return ft||(ht?z(ke,ge,Be):[])}),Ie=Object(P.a)($e,2),ze=Ie[0],st=Ie[1],Qe=m.useMemo(function(){return new Set(et||ze||[])},[et,ze]),gt=m.useCallback(function(we){var Ue=ge(we,ke.indexOf(we)),lt,mt=Qe.has(Ue);mt?(Qe.delete(Ue),lt=Object(H.a)(Qe)):lt=[].concat(Object(H.a)(Qe),[Ue]),st(lt),Et&&Et(!mt,we),Ct&&Ct(lt)},[ge,Qe,ke,Et,Ct]),Ot=m.useState(0),Tt=Object(P.a)(Ot,2),Lt=Tt[0],At=Tt[1],vn=Object(ie.b)(Object(S.a)(Object(S.a)(Object(S.a)({},w),Le),{},{expandable:!!vt,expandedKeys:Qe,getRowKey:ge,onTriggerExpand:gt,expandIcon:Pe,expandIconColumnIndex:Dt,direction:Z}),Ze===at?Ye:null),Yt=Object(P.a)(vn,2),Bt=Yt[0],rt=Yt[1],wt=m.useMemo(function(){return{columns:Bt,flattenColumns:rt}},[Bt,rt]),Wt=m.useRef(),Qt=m.useRef(),jt=m.useRef(),gn=m.useState(!1),Zt=Object(P.a)(gn,2),qt=Zt[0],yn=Zt[1],bn=m.useState(!1),en=Object(P.a)(bn,2),tn=en[0],En=en[1],Cn=ve(new Map),nn=Object(P.a)(Cn,2),xn=nn[0],On=nn[1],jn=Object(h.a)(rt),rn=jn.map(function(we){return xn.get(we)}),on=m.useMemo(function(){return rn},[rn.join("_")]),It=je(on,rt.length,Z),yt=q&&Object(h.d)(q.y),bt=q&&Object(h.d)(q.x),Mt=bt&&rt.some(function(we){var Ue=we.fixed;return Ue}),an=m.useRef(),Ut=he(ut,X),St=Ut.isSticky,Dn=Ut.offsetHeader,Rn=Ut.offsetScroll,Nn=Ut.stickyClassName,kt,Ft,Ht;yt&&(Ft={overflowY:"scroll",maxHeight:q.y}),bt&&(kt={overflowX:"auto"},yt||(Ft={overflowY:"hidden"}),Ht={width:q.x===!0?"auto":q.x,minWidth:"100%"});var sn=m.useCallback(function(we,Ue){On(function(lt){var mt=new Map(lt);return mt.set(we,Ue),mt})},[]),Ln=fe(null),ln=Object(P.a)(Ln,2),Mn=ln[0],un=ln[1];function zt(we,Ue){if(!Ue)return;typeof Ue=="function"?Ue(we):Ue.scrollLeft!==we&&(Ue.scrollLeft=we)}var Nt=function(Ue){var lt=Ue.currentTarget,mt=Ue.scrollLeft,Pt=typeof mt=="number"?mt:lt.scrollLeft,pn=lt||Ge;if(!un()||un()===pn){var Jt;Mn(pn),zt(Pt,Qt.current),zt(Pt,jt.current),zt(Pt,(Jt=an.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(lt){var Un=lt.scrollWidth,Fn=lt.clientWidth;yn(Pt>0),En(Pt0?[].concat(Object(S.a)(c),Object(S.a)(a(d).map(function(h){return Object(H.a)({fixed:l},h)}))):[].concat(Object(S.a)(c),[Object(H.a)(Object(H.a)({},n),{},{fixed:l})])},[])}function s(r){for(var c=!0,n=0;n=0;d-=1){var h=r[d];if(l&&h.fixed!=="right")l=!1;else if(!l&&h.fixed==="right"){Object(V.a)(!1,"Index ".concat(d+1," of `columns` missing `fixed='right'` prop."));break}}}function u(r){return r.map(function(c){var n=c.fixed,e=Object(k.a)(c,["fixed"]),l=n;return n==="left"?l="right":n==="right"&&(l="left"),Object(H.a)({fixed:l},e)})}function i(r,c){var n=r.prefixCls,e=r.columns,l=r.children,d=r.expandable,h=r.expandedKeys,L=r.getRowKey,O=r.onTriggerExpand,A=r.expandIcon,F=r.rowExpandable,E=r.expandIconColumnIndex,b=r.direction,o=r.expandRowByClick,D=P.useMemo(function(){return e||C(l)},[e,l]),N=P.useMemo(function(){if(d){var f,j=E||0,g=D[j],R=(f={},Object(I.a)(f,v.a,{className:"".concat(n,"-expand-icon-col")}),Object(I.a)(f,"title",""),Object(I.a)(f,"fixed",g?g.fixed:null),Object(I.a)(f,"className","".concat(n,"-row-expand-icon-cell")),Object(I.a)(f,"render",function(K,G,J){var oe=L(G,J),te=h.has(oe),Oe=F?F(G):!0,ie=A({prefixCls:n,expanded:te,expandable:Oe,record:G,onExpand:O});return o?P.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ie):ie}),f),B=D.slice();return j>=0&&B.splice(j,0,R),B}return D},[d,D,L,h,A,b]),M=P.useMemo(function(){var f=N;return c&&(f=c(f)),f.length||(f=[{render:function(){return null}}]),f},[c,N,b]),p=P.useMemo(function(){return b==="rtl"?u(a(M)):a(M)},[M,b]);return[M,p]}x.b=i},"y0+3":function(xe,x,t){"use strict";t.d(x,"a",function(){return a}),t.d(x,"b",function(){return u});var I=/margin|padding|width|height|max|min|offset/,S={left:!0,top:!0},H={cssFloat:1,styleFloat:1,float:1};function k(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function P(i,r,c){if(r=r.toLowerCase(),c==="auto"){if(r==="height")return i.offsetHeight;if(r==="width")return i.offsetWidth}return r in S||(S[r]=I.test(r)),S[r]?parseFloat(c)||0:c}function m(i,r){var c=arguments.length,n=k(i);return r=H[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,c===1?n:P(i,r,n[r]||i.style[r])}function V(i,r,c){var n=arguments.length;if(r=H[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,n===3)return typeof c=="number"&&I.test(r)&&(c="".concat(c,"px")),i.style[r]=c,c;for(var e in r)r.hasOwnProperty(e)&&V(i,e,r[e]);return k(i)}function U(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function v(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function C(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:r}}function a(){var i=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:r}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(i){var r=i.getBoundingClientRect(),c=document.documentElement;return{left:r.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}}}]); +`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet}],B=i(o,j,g,p,R);return{suggestions:B}}})},c="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",n=t("fjLI"),e=t("LvDl"),l=t("+ua5");function d(o){return/^\d+$/.test(o)?"".concat(o,"px"):o}function h(){}var L=!1,O={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function A(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=o;if(Array.isArray(o)){for(var N=0;N0||nt.target.offsetWidth>0)&&X.current.instance.layout()}}catch(et){ge.e(et)}finally{ge.f()}}),ue.observe($.current)),ue}function Ce(){T.b.warn({content:decodeURIComponent(c),key:"monaco-editor-tip"})}var Me=function(){var re=X.current.instance;if(f!=null&&re&&Z){var ge=re.getModel();ge&&f!==ge.getValue()&&(L=!0,ge.setValue(f),re.layout(),L=!1)}};Object(a.useEffect)(function(){try{var ue,re=X.current.instance;le.current&&clearTimeout(le.current),le.current=setTimeout(function(){Me()},500),re==null||((ue=re.updateOptions)===null||ue===void 0)||ue.call(re,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(f.split(/\r\n|\r|\n/g).length))+3,5)})}catch(ge){debugger}},[f,Z,X.current]),Object(a.useEffect)(function(){try{if(Fe&&X.current&&X.current.instance){var ue=X.current.instance;ue.changeViewZones(function(ge){var Le=document.createElement("div");Le.style.padding="10px 20px",Le.style.width="calc(100% - 20px)",Le.className="my-error-line-wrp",Le.innerHTML=at,ge.addZone({afterLineNumber:Fe||11,heightInLines:3,domNode:Le})});var re={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ue.addOverlayWidget(re),ue.revealPositionInCenter({lineNumber:20,column:1})}}catch(ge){debugger}},[Fe,X.current,Z]),Object(a.useEffect)(function(){var ue;if((ue=X.current)!==null&&ue!==void 0&&ue.instance&&Z&&pt){var re=X.current.instance,ge=re.getModel();if(!ge)return;var Le=function(){var Ke=[],Te=[],Be=ge.getAllDecorations(),Xe=Object(m.a)(Be),$e;try{for(Xe.s();!($e=Xe.n()).done;){var Ie=$e.value;if(Ie.options.className==="highlighted-line"){var ze;Ke.push(Ie==null||((ze=Ie.range)===null||ze===void 0)?void 0:ze.startLineNumber),Te.push(Ie==null?void 0:Ie.id)}}}catch(Qe){Xe.e(Qe)}finally{Xe.f()}ge.deltaDecorations(Te,[]);var st=ge.getLineCount();!!Je&&Je<=st&&(re.deltaDecorations([],[{range:new F.Range(Je,1,Je,ge.getLineMaxColumn(Je)),options:{isWholeLine:!0,className:"highlighted-line"}}]),re.revealLineInCenter(Je))};Le();var nt=function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Te=[],Be=[],Xe=ge.getAllDecorations(),$e=Object(m.a)(Xe),Ie;try{for($e.s();!(Ie=$e.n()).done;){var ze=Ie.value;if(ze.options.linesDecorationsClassName==="breakpoints"){var st;Te.push(ze==null||((st=ze.range)===null||st===void 0)?void 0:st.startLineNumber),Be.push(ze==null?void 0:ze.id)}}}catch(Qe){$e.e(Qe)}finally{$e.f()}if(Ke)return{lines:Te,ids:Be};Y(Te)},et=function(){var _e=Object(H.a)(C.a.mark(function Ke(Te){var Be;return C.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Be={range:new F.Range(Te,1,Te,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},$e.next=3,ge.deltaDecorations([],[Be]);case 3:nt();case 4:case"end":return $e.stop()}},Ke)}));return function(Te){return _e.apply(this,arguments)}}(),ft=function(){var _e=Object(H.a)(C.a.mark(function Ke(Te){var Be,Xe,$e,Ie,ze;return C.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:Be=[],Xe=re.getLineDecorations(Te),$e=Object(m.a)(Xe);try{for($e.s();!(Ie=$e.n()).done;)ze=Ie.value,ze.options.linesDecorationsClassName==="breakpoints"&&Be.push(ze.id)}catch(gt){$e.e(gt)}finally{$e.f()}return Qe.next=6,ge.deltaDecorations(Be,[]);case 6:nt();case 7:case"end":return Qe.stop()}},Ke)}));return function(Te){return _e.apply(this,arguments)}}(),ht=function(Ke){var Te=re.getLineDecorations(Ke),Be=Object(m.a)(Te),Xe;try{for(Be.s();!(Xe=Be.n()).done;){var $e=Xe.value;if($e.options.linesDecorationsClassName==="breakpoints")return!0}}catch(Ie){Be.e(Ie)}finally{Be.f()}return!1};if(!Object(e.isEqual)(se,nt(!0).lines)){ge.deltaDecorations(nt(!0).ids,[]);var vt=se.map(function(_e){return{range:new F.Range(_e,1,_e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});ge.deltaDecorations([],vt)}var Et=re.onDidChangeModelContent(function(_e){var Ke=re.getPosition();if(Ke){var Te=Ke.lineNumber;ge.getLineContent(Te).trim()===""?ft(Te):ht(Te)&&(ft(Te),et(Te))}}),Ct=re.onMouseDown(function(_e){var Ke,Te,Be;if(_e.target.detail&&(Ke=_e.target)!==null&&Ke!==void 0&&(Te=Ke.element)!==null&&Te!==void 0&&(Be=Te.className)!==null&&Be!==void 0&&Be.includes("line-numbers")){var Xe=_e.target.position.lineNumber;if(ge.getLineContent(Xe).trim()==="")return;ht(Xe)?ft(Xe):et(Xe)}}),Rt=function(Ke){var Te={range:new F.Range(Ke,1,Ke,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ee.current=re.deltaDecorations(ee.current,[Te])},dt=function(){ee.current=re.deltaDecorations(ee.current,[])},Dt=re.onMouseMove(function(_e){var Ke,Te,Be;if(dt(),_e.target.detail&&(Ke=_e.target)!==null&&Ke!==void 0&&(Te=Ke.element)!==null&&Te!==void 0&&(Be=Te.className)!==null&&Be!==void 0&&Be.includes("line-numbers")){var Xe=_e.target.position.lineNumber;if(ge.getLineContent(Xe).trim()==="")return;Rt(Xe)}}),xt=re.onMouseLeave(function(){dt()});return function(){Et.dispose(),Ct.dispose(),Dt.dispose(),xt.dispose()}}},[X.current,Z,se,Je,pt]);function He(){var ue=X.current.instance;if(ue){var re=ue.getSelection(),ge=X.current.pastePos||{},Le=new F.Range(ge.startLineNumber||re.endLineNumber,ge.startColumn||re.endColumn,ge.endLineNumber||re.endLineNumber,ge.endColumn||re.endColumn);setTimeout(function(){ue.executeEdits("",[{range:Le,text:""}])},300)}}function Pe(ue){(window.navigator.platform.match("Mac")?ue.metaKey:ue.ctrlKey)&&ue.keyCode==83&&(ue.preventDefault(),ie())}var Ae=function(){if(ye&&X.current.instance){var re=X.current.instance.getContentHeight();Ve(re0||Re.target.offsetWidth>0)&&ye.layout()}}catch(Ee){ce.e(Ee)}finally{ce.f()}}),ve.observe(W.current)),ve}Object(a.useEffect)(function(){return W.current&&t.e(27).then(t.t.bind(null,"M/lh",7)).then(function(ye){F=ye;var ve=F.editor.createDiffEditor(W.current,Object(I.a)(Object(I.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},B),{},{wordWrap:!0}));oe(ve);var fe=te(ve);return function(){ve.dispose();var ce=ve.getModel();ce&&ce.dispose(),fe.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(a.useEffect)(function(){J&&J.setModel({original:F.editor.createModel(f,g),modified:F.editor.createModel(j,g)})},[f,j,g,J]);var Oe=d(N),ie=d(p),De={width:Oe,height:ie};return s.a.createElement("div",{className:"my-diff-editor",ref:W,style:De})}},ZpRC:function(xe,x,t){"use strict";function I(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function S(a,s){return(!s||a!=="hidden")&&a!=="visible"&&a!=="clip"}function H(a,s){if(a.clientHeights||c>a&&n=s&&e>=u?c-a-i:n>s&&eu?n-s+r:0}var T=function(a,s){var u=window,i=s.scrollMode,r=s.block,c=s.inline,n=s.boundary,e=s.skipOverflowHiddenElements,l=typeof n=="function"?n:function(Y){return Y!==n};if(!I(a))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,h=[],L=a;I(L)&&l(L);){if((L=L.parentElement)===d){h.push(L);break}L!=null&&L===document.body&&H(L)&&!H(document.documentElement)||L!=null&&H(L,e)&&h.push(L)}for(var O=u.visualViewport?u.visualViewport.width:innerWidth,A=u.visualViewport?u.visualViewport.height:innerHeight,F=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,b=a.getBoundingClientRect(),o=b.height,D=b.width,N=b.top,M=b.right,p=b.bottom,f=b.left,j=r==="start"||r==="nearest"?N:r==="end"?p:N+o/2,g=c==="center"?f+D/2:c==="end"?M:f,R=[],B=0;B=0&&f>=0&&p<=A&&M<=O&&N>=oe&&p<=Oe&&f>=ie&&M<=te)return R;var De=getComputedStyle(W),ye=parseInt(De.borderLeftWidth,10),ve=parseInt(De.borderTopWidth,10),fe=parseInt(De.borderRightWidth,10),ce=parseInt(De.borderBottomWidth,10),je=0,Re=0,Ee="offsetWidth"in W?W.offsetWidth-W.clientWidth-ye-fe:0,y="offsetHeight"in W?W.offsetHeight-W.clientHeight-ve-ce:0;if(d===W)je=r==="start"?j:r==="end"?j-A:r==="nearest"?k(E,E+A,A,ve,ce,E+j,E+j+o,o):j-A/2,Re=c==="start"?g:c==="center"?g-O/2:c==="end"?g-O:k(F,F+O,O,ye,fe,F+g,F+g+D,D),je=Math.max(0,je+E),Re=Math.max(0,Re+F);else{je=r==="start"?j-oe-ve:r==="end"?j-Oe+ce+y:r==="nearest"?k(oe,Oe,G,ve,ce+y,j,j+o,o):j-(oe+G/2)+y/2,Re=c==="start"?g-ie-ye:c==="center"?g-(ie+J/2)+Ee/2:c==="end"?g-te+fe+Ee:k(ie,te,J,ye,fe+Ee,g,g+D,D);var P=W.scrollLeft,z=W.scrollTop;j+=z-(je=Math.max(0,Math.min(z+je,W.scrollHeight-G+y))),g+=P-(Re=Math.max(0,Math.min(P+Re,W.scrollWidth-J+Ee)))}R.push({el:W,top:je,left:Re})}return R};function m(a){return a===Object(a)&&Object.keys(a).length!==0}function V(a,s){s===void 0&&(s="auto");var u="scrollBehavior"in document.body.style;a.forEach(function(i){var r=i.el,c=i.top,n=i.left;r.scroll&&u?r.scroll({top:c,left:n,behavior:s}):(r.scrollTop=c,r.scrollLeft=n)})}function U(a){return a===!1?{block:"end",inline:"nearest"}:m(a)?a:{block:"start",inline:"nearest"}}function v(a,s){var u=!a.ownerDocument.documentElement.contains(a);if(m(s)&&typeof s.behavior=="function")return s.behavior(u?[]:T(a,s));if(u)return;var i=U(s);return V(T(a,i),i.behavior)}var C=x.a=v},biw7:function(xe,x,t){"use strict";var I=t("q1tI"),S=t.n(I),H=I.createContext(null);x.a=H},dHP6:function(xe,x,t){xe.exports={flex_box_center:"flex_box_center___x7p9B",flex_space_between:"flex_space_between___1dpUp",flex_box_vertical_center:"flex_box_vertical_center___1HpWl",flex_box_center_end:"flex_box_center_end___1j-WY",flex_box_column:"flex_box_column___CILC5",title:"title___1ypti",shixunTitle:"shixunTitle___3RarB",shixunWrp:"shixunWrp___3cvwg"}},dmUQ:function(xe,x,t){"use strict";var I=t("Ff2n"),S=t("rePB"),H=t("1OyB"),k=t("vuIU"),T=t("Ji7U"),m=t("md7G"),V=t("foSv"),U=t("q1tI"),v=t.n(U),C=t("TSYQ"),a=t.n(C),s=t("4IlW");function u(o,D){var N=Object.keys(o);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(o);D&&(M=M.filter(function(p){return Object.getOwnPropertyDescriptor(o,p).enumerable})),N.push.apply(N,M)}return N}function i(o){for(var D=1;D1?J-1:0),te=1;te1?B-1:0),K=1;K=0)return parseInt(R.slice(R.indexOf("e-")+2),10);var B=0;return R.indexOf(".")>=0&&(B=R.length-R.indexOf(".")-1),B},p.getInputDisplayValue=function(g){var R=g||p.state,B=R.focused,W=R.inputValue,K=R.value,G;B?G=W:G=p.toPrecisionAsStep(K),G==null&&(G="");var J=p.formatWrapper(G);return O(p.props.decimalSeparator)&&(J=J.toString().replace(".",p.props.decimalSeparator)),J},p.recordCursorPosition=function(){try{p.cursorStart=p.input.selectionStart,p.cursorEnd=p.input.selectionEnd,p.currentValue=p.input.value,p.cursorBefore=p.input.value.substring(0,p.cursorStart),p.cursorAfter=p.input.value.substring(p.cursorEnd)}catch(g){}},p.restoreByAfter=function(g){if(g===void 0)return!1;var R=p.input.value,B=R.lastIndexOf(g);if(B===-1)return!1;var W=p.cursorBefore.length;return p.lastKeyCode===s.a.DELETE&&p.cursorBefore.charAt(W-1)===g[0]?(p.fixCaret(W,W),!0):B+g.length===R.length?(p.fixCaret(B,B),!0):!1},p.partRestoreByAfter=function(g){return g===void 0?!1:Array.prototype.some.call(g,function(R,B){var W=g.substring(B);return p.restoreByAfter(W)})},p.isNotCompleteNumber=function(g){return isNaN(g)||g===""||g===null||g&&g.toString().indexOf(".")===g.toString().length-1},p.stop=function(){p.autoStepTimer&&clearTimeout(p.autoStepTimer)},p.down=function(g,R,B){p.pressingUpOrDown=!0,p.step("down",g,R,B)},p.up=function(g,R,B){p.pressingUpOrDown=!0,p.step("up",g,R,B)},p.saveInput=function(g){p.input=g};var f=M.value;f===void 0&&(f=M.defaultValue),p.state={focused:M.autoFocus};var j=p.getValidValue(p.toNumber(f));return p.state=i(i({},p.state),{},{inputValue:p.toPrecisionAsStep(j),value:j}),p}return Object(k.a)(N,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(p){var f=this.props,j=f.value,g=f.onChange,R=f.max,B=f.min,W=this.state.focused;if(p){if(!A(p.value,j)||!A(p.max,R)||!A(p.min,B)){var K=W?j:this.getValidValue(j),G;this.pressingUpOrDown?G=K:this.inputting?G=this.rawInput:G=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:G})}var J="value"in this.props?j:this.state.value;"max"in this.props&&p.max!==R&&typeof J=="number"&&J>R&&g&&g(R),"min"in this.props&&p.min!==B&&typeof J=="number"&&J1&&arguments[1]!==void 0?arguments[1]:this.props.min,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,g=parseFloat(p);return isNaN(g)?p:(gj&&(g=j),g)}},{key:"setValue",value:function(p,f){var j=this.props.precision,g=this.isNotCompleteNumber(parseFloat(p))?null:parseFloat(p),R=this.state.value,B=R===void 0?null:R,W=this.state.inputValue,K=W===void 0?null:W,G=typeof g=="number"?g.toFixed(j):"".concat(g),J=g!==B||G!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},f)):this.setState({value:g,inputValue:this.toPrecisionAsStep(p)},f),J&&this.props.onChange(g),g}},{key:"getMaxPrecision",value:function(p){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.props,g=j.precision,R=j.step;if(O(g))return g;var B=this.getPrecision(f),W=this.getPrecision(R),K=this.getPrecision(p);return p?Math.max(K,B+W):B+W}},{key:"getPrecisionFactor",value:function(p){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=this.getMaxPrecision(p,f);return Math.pow(10,j)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(p){return this.props.formatter?this.props.formatter(p):p}},{key:"toPrecisionAsStep",value:function(p){if(this.isNotCompleteNumber(p)||p==="")return p;var f=Math.abs(this.getMaxPrecision(p));return isNaN(f)?p.toString():Number(p).toFixed(f)}},{key:"toNumber",value:function(p){var f=this.props.precision,j=this.state.focused,g=p&&p.length>16&&j;return this.isNotCompleteNumber(p)||g?p:O(f)?Math.round(p*Math.pow(10,f))/Math.pow(10,f):Number(p)}},{key:"upStep",value:function(p,f){var j=this.props.step,g=this.getPrecisionFactor(p,f),R=Math.abs(this.getMaxPrecision(p,f)),B=((g*p+g*j*f)/g).toFixed(R);return this.toNumber(B)}},{key:"downStep",value:function(p,f){var j=this.props.step,g=this.getPrecisionFactor(p,f),R=Math.abs(this.getMaxPrecision(p,f)),B=((g*p-g*j*f)/g).toFixed(R);return this.toNumber(B)}},{key:"step",value:function(p,f){var j=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=arguments.length>3?arguments[3]:void 0;this.stop(),f&&(f.persist(),f.preventDefault());var B=this.props;if(B.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var K=this["".concat(p,"Step")](W,g),G=K>B.max||KB.max?K=B.max:K=oe),ee=(We||We===0)&&(isNaN(We)||Number(We)<=te),Q=le||g||R,_=ee||g||R,q=a()("".concat(j,"-handler"),"".concat(j,"-handler-up"),Object(S.a)({},"".concat(j,"-handler-up-disabled"),Q)),pe=a()("".concat(j,"-handler"),"".concat(j,"-handler-down"),Object(S.a)({},"".concat(j,"-handler-down-disabled"),_)),Z=B?{onTouchStart:Q?n:this.up,onTouchEnd:this.stop}:{onMouseDown:Q?n:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},me=B?{onTouchStart:_?n:this.down,onTouchEnd:this.stop}:{onMouseDown:_?n:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return v.a.createElement("div",{className:w,style:Oe,title:ie,onMouseEnter:De,onMouseLeave:ye,onMouseOver:ve,onMouseOut:fe,onFocus:function(){return null},onBlur:function(){return null}},v.a.createElement("div",{className:"".concat(j,"-handler-wrap")},v.a.createElement("span",Object.assign({unselectable:"on"},Z,{role:"button","aria-label":"Increase Value","aria-disabled":Q,className:q}),K||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner"),onClick:e})),v.a.createElement("span",Object.assign({unselectable:"on"},me,{role:"button","aria-label":"Decrease Value","aria-disabled":_,className:pe}),G||v.a.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner"),onClick:e}))),v.a.createElement("div",{className:"".concat(j,"-input-wrap")},v.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":te,"aria-valuemax":oe,"aria-valuenow":We,required:ce,type:Ee,placeholder:y,onPaste:Fe,onClick:je,onMouseUp:this.onMouseUp,className:"".concat(j,"-input"),tabIndex:Re,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:X?this.onKeyDown:n,onKeyUp:X?this.onKeyUp:n,autoFocus:ae,maxLength:se,readOnly:R,disabled:g,max:oe,min:te,step:de,name:he,title:ie,id:P,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ne),pattern:Y,inputMode:z,onInput:Ge},$))))}}]),N}(v.a.Component);F.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:L,min:-L,step:1,style:{},onChange:n,onKeyDown:n,onPressEnter:n,onFocus:n,onBlur:n,parser:l,required:!1,autoComplete:"off"};var E=F,b=x.a=E},fjLI:function(xe,x,t){"use strict";t.d(x,"e",function(){return C}),t.d(x,"a",function(){return a}),t.d(x,"c",function(){return s}),t.d(x,"d",function(){return i}),t.d(x,"b",function(){return r});var I=t("8HAY"),S=t("Cg/j"),H=t("T8No"),k=t("nnTU"),T=t("MI8n"),m=function(){var c=function(n,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])},c(n,e)};return function(n,e){c(n,e);function l(){this.constructor=n}n.prototype=e===null?Object.create(e):(l.prototype=e.prototype,new l)}}(),V=function(c,n,e,l){var d=arguments.length,h=d<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,e):l,L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(c,n,e,l);else for(var O=c.length-1;O>=0;O--)(L=c[O])&&(h=(d<3?L(h):d>3?L(n,e,h):L(n,e))||h);return d>3&&h&&Object.defineProperty(n,e,h),h},U=function(c,n){return function(e,l){n(e,l,c)}},v=function(){for(var c=0,n=0,e=arguments.length;n=0&&(d.splice(h,1),l._onDidChangeMenu.fire(n))}}},c.prototype.getMenuItems=function(n){var e=(this._menuItems.get(n)||[]).slice(0);return n===0&&this._appendImplicitItems(e),e},c.prototype._appendImplicitItems=function(n){for(var e=new Set,l=n.filter(function(F){return C(F)}),d=0,h=l;d=H.length?{done:!0}:{done:!1,value:H[m++]}},e:function(s){throw s},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,v=!1,C;return{s:function(){T=H[Symbol.iterator]()},n:function(){var s=T.next();return U=s.done,s},e:function(s){v=!0,C=s},f:function(){try{!U&&T.return!=null&&T.return()}finally{if(v)throw C}}}}},sR1s:function(xe,x,t){"use strict";t.d(x,"b",function(){return k}),t.d(x,"a",function(){return T}),t.d(x,"c",function(){return m}),t.d(x,"d",function(){return V});var I=t("U8pU"),S="RC_TABLE_KEY";function H(U){return U==null?[]:Array.isArray(U)?U:[U]}function k(U,v){if(!v&&typeof v!="number")return U;for(var C=H(v),a=U,s=0;s1)Object(C.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(d.length===0)return Object(C.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=d[0];if(m.isValidElement(h)&&Object(a.c)(h)){var L=h.ref;d[0]=m.cloneElement(h,{ref:Object(a.a)(L,this.setChildNode)})}return d.length===1?d[0]:d.map(function(O,A){return!m.isValidElement(O)||"key"in O&&O.key!==null?O:m.cloneElement(O,{key:"".concat(u,"-").concat(A)})})}}]),n}(m.Component);i.displayName="ResizeObserver",x.a=i},wCXF:function(xe,x,t){"use strict";t.d(x,"a",function(){return at});var I=t("rePB"),S=t("VTBJ"),H=t("KQm4"),k=t("U8pU"),T=t("ODXe"),m=t("q1tI"),V=t("TSYQ"),U=t.n(V),v=t("Gytx"),C=t.n(v),a=t("Kwbf"),s=t("t23M"),u=t("qx4F"),i=t("6eGT"),r=t("IBYe"),c=t("Ff2n"),n=t("c+Xe"),e=t("fyJ8"),l=t("biw7");function d(w,$,X,ne,le){var ee=X[w]||{},Q=X[$]||{},_,q;ee.fixed==="left"?_=ne.left[w]:Q.fixed==="right"&&(q=ne.right[$]);var pe=!1,Z=!1,me=!1,be=!1,Ce=X[$+1],Me=X[w-1];if(le==="rtl"){if(_!==void 0){var He=Me&&Me.fixed==="left";be=!He}else if(q!==void 0){var Pe=Ce&&Ce.fixed==="right";me=!Pe}}else if(_!==void 0){var Ae=Ce&&Ce.fixed==="left";pe=!Ae}else if(q!==void 0){var Ne=Me&&Me.fixed==="right";Z=!Ne}return{fixLeft:_,fixRight:q,lastFixLeft:pe,firstFixRight:Z,lastFixRight:me,firstFixLeft:be,isSticky:ne.isSticky}}var h=t("sR1s");function L(w){var $=w.cells,X=w.stickyOffsets,ne=w.flattenColumns,le=w.rowComponent,ee=w.cellComponent,Q=w.onHeaderRow,_=w.index,q=m.useContext(l.a),pe=q.prefixCls,Z=q.direction,me;Q&&(me=Q($.map(function(Ce){return Ce.column}),_));var be=Object(h.a)($.map(function(Ce){return Ce.column}));return m.createElement(le,Object.assign({},me),$.map(function(Ce,Me){var He=Ce.column,Pe=d(Ce.colStart,Ce.colEnd,ne,X,Z),Ae;return He&&He.onHeaderCell&&(Ae=Ce.column.onHeaderCell(He)),m.createElement(e.a,Object.assign({},Ce,{ellipsis:He.ellipsis,align:He.align,component:ee,prefixCls:pe,key:be[Me]},Pe,{additionalProps:Ae,rowType:"header"}))}))}L.displayName="HeaderRow";var O=L;function A(w){var $=[];function X(Q,_){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;$[q]=$[q]||[];var pe=_,Z=Q.filter(Boolean).map(function(me){var be={key:me.key,className:me.className||"",children:me.title,column:me,colStart:pe},Ce=1,Me=me.children;return Me&&Me.length>0&&(Ce=X(Me,pe,q+1).reduce(function(He,Pe){return He+Pe},0),be.hasSubColumns=!0),"colSpan"in me&&(Ce=me.colSpan),"rowSpan"in me&&(be.rowSpan=me.rowSpan),be.colSpan=Ce,be.colEnd=be.colStart+Ce-1,$[q].push(be),pe+=Ce,Ce});return Z}X(w,0);for(var ne=$.length,le=function(_){$[_].forEach(function(q){!("rowSpan"in q)&&!q.hasSubColumns&&(q.rowSpan=ne-_)})},ee=0;ee=0;_-=1){var q=$[_],pe=X&&X[_],Z=pe&&pe[b.a];(q||Z||Q)&&(le.unshift(m.createElement("col",Object.assign({key:_,style:{width:q,minWidth:q}},Z))),Q=!0)}return m.createElement("colgroup",null,le)}var D=o;function N(w,$){return Object(m.useMemo)(function(){for(var X=[],ne=0;ne<$;ne+=1){var le=w[ne];if(le!==void 0)X[ne]=le;else return null}return X},[w.join("_"),$])}var M=m.forwardRef(function(w,$){var X=w.noData,ne=w.columns,le=w.flattenColumns,ee=w.colWidths,Q=w.columCount,_=w.stickyOffsets,q=w.direction,pe=w.fixHeader,Z=w.offsetHeader,me=w.stickyClassName,be=w.onScroll,Ce=Object(c.a)(w,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Me=m.useContext(l.a),He=Me.prefixCls,Pe=Me.scrollbarSize,Ae=Me.isSticky,Ne=Ae&&!pe?0:Pe,it=m.useRef(null),Ze=m.useCallback(function(qe){Object(n.b)($,qe),Object(n.b)(it,qe)},[]);m.useEffect(function(){var qe;function Ve(Se){var ue=Se.currentTarget,re=Se.deltaX;re&&(be({currentTarget:ue,scrollLeft:ue.scrollLeft+re}),Se.preventDefault())}return(qe=it.current)===null||qe===void 0||qe.addEventListener("wheel",Ve),function(){var Se;(Se=it.current)===null||Se===void 0||Se.removeEventListener("wheel",Ve)}},[]);var Ye=le[le.length-1],tt={fixed:Ye?Ye.fixed:null,onHeaderCell:function(){return{className:"".concat(He,"-cell-scrollbar")}}},ut=Object(m.useMemo)(function(){return Ne?[].concat(Object(H.a)(ne),[tt]):ne},[Ne,ne]),ke=Object(m.useMemo)(function(){return Ne?[].concat(Object(H.a)(le),[tt]):le},[Ne,le]),ct=Object(m.useMemo)(function(){var qe=_.right,Ve=_.left;return Object(S.a)(Object(S.a)({},_),{},{left:q==="rtl"?[].concat(Object(H.a)(Ve.map(function(Se){return Se+Ne})),[0]):Ve,right:q==="rtl"?qe:[].concat(Object(H.a)(qe.map(function(Se){return Se+Ne})),[0]),isSticky:Ae})},[Ne,_,Ae]),ot=N(ee,Q);return m.createElement("div",{style:Object(S.a)({overflow:"hidden"},Ae?{top:Z}:{}),ref:Ze,className:U()("".concat(He,"-header"),Object(I.a)({},me,!!me))},m.createElement("table",{style:{tableLayout:"fixed",visibility:X||ot?null:"hidden"}},m.createElement(D,{colWidths:ot?[].concat(Object(H.a)(ot),[Ne]):[],columCount:Q+1,columns:ke}),m.createElement(E,Object.assign({},Ce,{stickyOffsets:ct,columns:ut,flattenColumns:ke}))))});M.displayName="FixedHeader";var p=M,f=m.createContext(null),j=f;function g(w){var $=w.prefixCls,X=w.children,ne=w.component,le=w.cellComponent,ee=w.fixHeader,Q=w.fixColumn,_=w.horizonScroll,q=w.className,pe=w.expanded,Z=w.componentWidth,me=w.colSpan,be=m.useContext(l.a),Ce=be.scrollbarSize;return m.useMemo(function(){var Me=X;return Q&&(Me=m.createElement("div",{style:{width:Z-(ee?Ce:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat($,"-expanded-row-fixed")},Me)),m.createElement(ne,{className:q,style:{display:pe?null:"none"}},m.createElement(e.a,{component:le,prefixCls:$,colSpan:me},Me))},[X,ne,ee,_,q,pe,Z,me,Ce])}var R=g;function B(w){var $=w.className,X=w.style,ne=w.record,le=w.index,ee=w.rowKey,Q=w.getRowKey,_=w.rowExpandable,q=w.expandedKeys,pe=w.onRow,Z=w.indent,me=Z===void 0?0:Z,be=w.rowComponent,Ce=w.cellComponent,Me=w.childrenColumnName,He=m.useContext(l.a),Pe=He.prefixCls,Ae=He.fixedInfoList,Ne=m.useContext(j),it=Ne.fixHeader,Ze=Ne.fixColumn,Ye=Ne.horizonScroll,tt=Ne.componentWidth,ut=Ne.flattenColumns,ke=Ne.expandableType,ct=Ne.expandRowByClick,ot=Ne.onTriggerExpand,qe=Ne.rowClassName,Ve=Ne.expandedRowClassName,Se=Ne.indentSize,ue=Ne.expandIcon,re=Ne.expandedRowRender,ge=Ne.expandIconColumnIndex,Le=m.useState(!1),nt=Object(T.a)(Le,2),et=nt[0],ft=nt[1],ht=q&&q.has(w.recordKey);m.useEffect(function(){ht&&ft(!0)},[ht]);var vt=ke==="row"&&(!_||_(ne)),Et=ke==="nest",Ct=Me&&ne&&ne[Me],Rt=vt||Et,dt;pe&&(dt=pe(ne,le));var Dt=function(ze){if(ct&&Rt&&ot(ne,ze),dt&&dt.onClick){for(var st,Qe=arguments.length,gt=new Array(Qe>1?Qe-1:0),Ot=1;Ot=me&&(Le=me-be),Q({scrollLeft:Le/me*(Z+2)}),Ne.current.x=Se.pageX},ot=function(){var Se=Object(de.b)(ee.current).top,ue=Se+ee.current.offsetHeight,re=document.documentElement.scrollTop+window.innerHeight;ue-Object(u.a)()<=re||Se>=re-_?Ae(function(ge){return Object(S.a)(Object(S.a)({},ge),{},{isHiddenScrollBar:!0})}):Ae(function(ge){return Object(S.a)(Object(S.a)({},ge),{},{isHiddenScrollBar:!1})})},qe=function(Se){Ae(function(ue){return Object(S.a)(Object(S.a)({},ue),{},{scrollLeft:Se/Z*me||0})})};return m.useImperativeHandle(X,function(){return{setScrollLeft:qe}}),m.useEffect(function(){var Ve=Object(Y.a)(document.body,"mouseup",ut,!1),Se=Object(Y.a)(document.body,"mousemove",ct,!1);return ot(),function(){Ve.remove(),Se.remove()}},[be,Ye]),m.useEffect(function(){var Ve=Object(Y.a)(window,"scroll",ot,!1),Se=Object(Y.a)(window,"resize",ot,!1);return function(){Ve.remove(),Se.remove()}},[]),m.useEffect(function(){Pe.isHiddenScrollBar||Ae(function(Ve){var Se,ue;return Object(S.a)(Object(S.a)({},Ve),{},{scrollLeft:ee.current.scrollLeft/((Se=ee.current)===null||Se===void 0?void 0:Se.scrollWidth)*((ue=ee.current)===null||ue===void 0?void 0:ue.clientWidth)})})},[Pe.isHiddenScrollBar]),Z<=me||!be||Pe.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(u.a)(),width:me,bottom:_},className:"".concat(pe,"-sticky-scroll")},m.createElement("div",{onMouseDown:ke,ref:Ce,className:U()("".concat(pe,"-sticky-scroll-bar"),Object(I.a)({},"".concat(pe,"-sticky-scroll-bar-active"),Ye)),style:{width:"".concat(be,"px"),transform:"translate3d(".concat(Pe.scrollLeft,"px, 0, 0)")}}))},ae=m.forwardRef(se);function he(w,$){return m.useMemo(function(){var X=!!w;return{isSticky:X,stickyClassName:X?"".concat($,"-sticky-header"):"",offsetHeader:Object(k.a)(w)==="object"&&w.offsetHeader||0,offsetScroll:Object(k.a)(w)==="object"&&w.offsetScroll||0}},[w,$])}var Fe=[],Ge={},at="rc-table-internal-hook",Je=m.memo(function(w){var $=w.children;return $},function(w,$){return C()(w.props,$.props)?w.pingLeft!==$.pingLeft||w.pingRight!==$.pingRight:!1});function We(w){var $,X=w.prefixCls,ne=w.className,le=w.rowClassName,ee=w.style,Q=w.data,_=w.rowKey,q=w.scroll,pe=w.tableLayout,Z=w.direction,me=w.title,be=w.footer,Ce=w.summary,Me=w.id,He=w.showHeader,Pe=w.components,Ae=w.emptyText,Ne=w.onRow,it=w.onHeaderRow,Ze=w.internalHooks,Ye=w.transformColumns,tt=w.internalRefs,ut=w.sticky,ke=Q||Fe,ct=!!ke.length,ot=m.useState(0),qe=Object(T.a)(ot,2),Ve=qe[0],Se=qe[1];m.useEffect(function(){Se(Object(u.a)())});var ue=m.useMemo(function(){return Object(h.c)(Pe,{})},[Pe]),re=m.useCallback(function(we,Ue){return Object(h.b)(ue,we)||Ue},[ue]),ge=m.useMemo(function(){return typeof _=="function"?_:function(we){var Ue=we&&we[_];return Ue}},[_]),Le=Object(b.c)(w),nt=Le.expandIcon,et=Le.expandedRowKeys,ft=Le.defaultExpandedRowKeys,ht=Le.defaultExpandAllRows,vt=Le.expandedRowRender,Et=Le.onExpand,Ct=Le.onExpandedRowsChange,Rt=Le.expandRowByClick,dt=Le.rowExpandable,Dt=Le.expandIconColumnIndex,xt=Le.expandedRowClassName,_e=Le.childrenColumnName,Ke=Le.indentSize,Te=nt||P,Be=_e||"children",Xe=m.useMemo(function(){return vt?"row":w.expandable&&Ze===at&&w.expandable.__PARENT_RENDER_ICON__||ke.some(function(we){return we&&Object(k.a)(we)==="object"&&we[Be]})?"nest":!1},[!!vt,ke]),$e=m.useState(function(){return ft||(ht?z(ke,ge,Be):[])}),Ie=Object(T.a)($e,2),ze=Ie[0],st=Ie[1],Qe=m.useMemo(function(){return new Set(et||ze||[])},[et,ze]),gt=m.useCallback(function(we){var Ue=ge(we,ke.indexOf(we)),lt,mt=Qe.has(Ue);mt?(Qe.delete(Ue),lt=Object(H.a)(Qe)):lt=[].concat(Object(H.a)(Qe),[Ue]),st(lt),Et&&Et(!mt,we),Ct&&Ct(lt)},[ge,Qe,ke,Et,Ct]),Ot=m.useState(0),Pt=Object(T.a)(Ot,2),Lt=Pt[0],At=Pt[1],vn=Object(ie.b)(Object(S.a)(Object(S.a)(Object(S.a)({},w),Le),{},{expandable:!!vt,expandedKeys:Qe,getRowKey:ge,onTriggerExpand:gt,expandIcon:Te,expandIconColumnIndex:Dt,direction:Z}),Ze===at?Ye:null),Yt=Object(T.a)(vn,2),Bt=Yt[0],rt=Yt[1],wt=m.useMemo(function(){return{columns:Bt,flattenColumns:rt}},[Bt,rt]),Wt=m.useRef(),Qt=m.useRef(),jt=m.useRef(),gn=m.useState(!1),Zt=Object(T.a)(gn,2),qt=Zt[0],yn=Zt[1],bn=m.useState(!1),en=Object(T.a)(bn,2),tn=en[0],En=en[1],Cn=ve(new Map),nn=Object(T.a)(Cn,2),xn=nn[0],On=nn[1],jn=Object(h.a)(rt),rn=jn.map(function(we){return xn.get(we)}),on=m.useMemo(function(){return rn},[rn.join("_")]),It=je(on,rt.length,Z),yt=q&&Object(h.d)(q.y),bt=q&&Object(h.d)(q.x),Mt=bt&&rt.some(function(we){var Ue=we.fixed;return Ue}),an=m.useRef(),Ut=he(ut,X),St=Ut.isSticky,Dn=Ut.offsetHeader,Rn=Ut.offsetScroll,Nn=Ut.stickyClassName,kt,Ft,Ht;yt&&(Ft={overflowY:"scroll",maxHeight:q.y}),bt&&(kt={overflowX:"auto"},yt||(Ft={overflowY:"hidden"}),Ht={width:q.x===!0?"auto":q.x,minWidth:"100%"});var sn=m.useCallback(function(we,Ue){On(function(lt){var mt=new Map(lt);return mt.set(we,Ue),mt})},[]),Ln=fe(null),ln=Object(T.a)(Ln,2),Mn=ln[0],un=ln[1];function zt(we,Ue){if(!Ue)return;typeof Ue=="function"?Ue(we):Ue.scrollLeft!==we&&(Ue.scrollLeft=we)}var Nt=function(Ue){var lt=Ue.currentTarget,mt=Ue.scrollLeft,Tt=typeof mt=="number"?mt:lt.scrollLeft,pn=lt||Ge;if(!un()||un()===pn){var Jt;Mn(pn),zt(Tt,Qt.current),zt(Tt,jt.current),zt(Tt,(Jt=an.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(lt){var Un=lt.scrollWidth,Fn=lt.clientWidth;yn(Tt>0),En(Tt0?[].concat(Object(S.a)(c),Object(S.a)(a(d).map(function(h){return Object(H.a)({fixed:l},h)}))):[].concat(Object(S.a)(c),[Object(H.a)(Object(H.a)({},n),{},{fixed:l})])},[])}function s(r){for(var c=!0,n=0;n=0;d-=1){var h=r[d];if(l&&h.fixed!=="right")l=!1;else if(!l&&h.fixed==="right"){Object(V.a)(!1,"Index ".concat(d+1," of `columns` missing `fixed='right'` prop."));break}}}function u(r){return r.map(function(c){var n=c.fixed,e=Object(k.a)(c,["fixed"]),l=n;return n==="left"?l="right":n==="right"&&(l="left"),Object(H.a)({fixed:l},e)})}function i(r,c){var n=r.prefixCls,e=r.columns,l=r.children,d=r.expandable,h=r.expandedKeys,L=r.getRowKey,O=r.onTriggerExpand,A=r.expandIcon,F=r.rowExpandable,E=r.expandIconColumnIndex,b=r.direction,o=r.expandRowByClick,D=T.useMemo(function(){return e||C(l)},[e,l]),N=T.useMemo(function(){if(d){var f,j=E||0,g=D[j],R=(f={},Object(I.a)(f,v.a,{className:"".concat(n,"-expand-icon-col")}),Object(I.a)(f,"title",""),Object(I.a)(f,"fixed",g?g.fixed:null),Object(I.a)(f,"className","".concat(n,"-row-expand-icon-cell")),Object(I.a)(f,"render",function(K,G,J){var oe=L(G,J),te=h.has(oe),Oe=F?F(G):!0,ie=A({prefixCls:n,expanded:te,expandable:Oe,record:G,onExpand:O});return o?T.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ie):ie}),f),B=D.slice();return j>=0&&B.splice(j,0,R),B}return D},[d,D,L,h,A,b]),M=T.useMemo(function(){var f=N;return c&&(f=c(f)),f.length||(f=[{render:function(){return null}}]),f},[c,N,b]),p=T.useMemo(function(){return b==="rtl"?u(a(M)):a(M)},[M,b]);return[M,p]}x.b=i},"y0+3":function(xe,x,t){"use strict";t.d(x,"a",function(){return a}),t.d(x,"b",function(){return u});var I=/margin|padding|width|height|max|min|offset/,S={left:!0,top:!0},H={cssFloat:1,styleFloat:1,float:1};function k(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function T(i,r,c){if(r=r.toLowerCase(),c==="auto"){if(r==="height")return i.offsetHeight;if(r==="width")return i.offsetWidth}return r in S||(S[r]=I.test(r)),S[r]?parseFloat(c)||0:c}function m(i,r){var c=arguments.length,n=k(i);return r=H[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,c===1?n:T(i,r,n[r]||i.style[r])}function V(i,r,c){var n=arguments.length;if(r=H[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,n===3)return typeof c=="number"&&I.test(r)&&(c="".concat(c,"px")),i.style[r]=c,c;for(var e in r)r.hasOwnProperty(e)&&V(i,e,r[e]);return k(i)}function U(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function v(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function C(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:r}}function a(){var i=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:r}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(i){var r=i.getBoundingClientRect(),c=document.documentElement;return{left:r.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.624f43a3.async.js b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.c8fb9f6a.async.js similarity index 82% rename from p__Classrooms__Lists__ShixunHomeworks__Detail__index.624f43a3.async.js rename to p__Classrooms__Lists__ShixunHomeworks__Detail__index.c8fb9f6a.async.js index d8d7207212..ca16110d7a 100644 --- a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.624f43a3.async.js +++ b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.c8fb9f6a.async.js @@ -1,14 +1,14 @@ (window.webpackJsonp=window.webpackJsonp||[]).push([[95,3,5,7,8,10],{"+NIl":function(ze,te,P){(function(X){X(P("VrN/"))})(function(X){"use strict";X.defineMode("stex",function(F,R){"use strict";function j(u,p){u.cmdState.push(p)}function T(u){return u.cmdState.length>0?u.cmdState[u.cmdState.length-1]:null}function S(u){var p=u.cmdState.pop();p&&p.closeBracket()}function M(u){for(var p=u.cmdState,v=p.length-1;v>=0;v--){var a=p[v];if(a.name=="DEFAULT")continue;return a}return{styleIdentifier:function(){return null}}}function c(u,p,v){return function(){this.name=u,this.bracketNo=0,this.style=p,this.styles=v,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var E={};E.importmodule=c("importmodule","tag",["string","builtin"]),E.documentclass=c("documentclass","tag",["","atom"]),E.usepackage=c("usepackage","tag",["atom"]),E.begin=c("begin","tag",["atom"]),E.end=c("end","tag",["atom"]),E.label=c("label","tag",["atom"]),E.ref=c("ref","tag",["atom"]),E.eqref=c("eqref","tag",["atom"]),E.cite=c("cite","tag",["atom"]),E.bibitem=c("bibitem","tag",["atom"]),E.Bibitem=c("Bibitem","tag",["atom"]),E.RBibitem=c("RBibitem","tag",["atom"]),E.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function g(u,p){u.f=p}function r(u,p){var v;if(u.match(/^\\[a-zA-Z@]+/)){var a=u.current().slice(1);return v=E.hasOwnProperty(a)?E[a]:E.DEFAULT,v=new v,j(p,v),g(p,b),v.style}if(u.match(/^\\[$&%#{}_]/))return"tag";if(u.match(/^\\[,;!\/\\]/))return"tag";if(u.match("\\["))return g(p,function(s,h){return l(s,h,"\\]")}),"keyword";if(u.match("\\("))return g(p,function(s,h){return l(s,h,"\\)")}),"keyword";if(u.match("$$"))return g(p,function(s,h){return l(s,h,"$$")}),"keyword";if(u.match("$"))return g(p,function(s,h){return l(s,h,"$")}),"keyword";var t=u.next();if(t=="%")return u.skipToEnd(),"comment";if(t=="}"||t=="]"){if(v=T(p),v)v.closeBracket(t),g(p,b);else return"error";return"bracket"}else return t=="{"||t=="["?(v=E.DEFAULT,v=new v,j(p,v),"bracket"):/\d/.test(t)?(u.eatWhile(/[\w.%]/),"atom"):(u.eatWhile(/[\w\-_]/),v=M(p),v.name=="begin"&&(v.argument=u.current()),v.styleIdentifier())}function l(u,p,v){if(u.eatSpace())return null;if(v&&u.match(v))return g(p,r),"keyword";if(u.match(/^\\[a-zA-Z@]+/))return"tag";if(u.match(/^[a-zA-Z]+/))return"variable-2";if(u.match(/^\\[$&%#{}_]/))return"tag";if(u.match(/^\\[,;!\/]/))return"tag";if(u.match(/^[\^_&]/))return"tag";if(u.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(u.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=u.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(u.skipToEnd(),"comment"):"error"}function b(u,p){var v=u.peek(),a;return v=="{"||v=="["?(a=T(p),a.openBracket(v),u.eat(v),g(p,r),"bracket"):/[ \t\r]/.test(v)?(u.eat(v),null):(g(p,r),S(p),r(u,p))}return{startState:function(){var u=R.inMathMode?function(p,v){return l(p,v)}:r;return{cmdState:[],f:u}},copyState:function(u){return{cmdState:u.cmdState.slice(),f:u.f}},token:function(u,p){return p.f(u,p)},blankLine:function(u){u.f=r,u.cmdState.length=0},lineComment:"%"}}),X.defineMIME("text/x-stex","stex"),X.defineMIME("text/x-latex","stex")})},"+ua5":function(ze,te,P){},"/cxE":function(ze,te,P){"use strict";P.d(te,"e",function(){return R}),P.d(te,"f",function(){return j}),P.d(te,"g",function(){return T}),P.d(te,"d",function(){return M}),P.d(te,"a",function(){return c}),P.d(te,"b",function(){return E}),P.d(te,"c",function(){return g});var X=function(){function r(){this.listeners=[],this.unexpectedErrorHandler=function(l){setTimeout(function(){throw l.stack?new Error(l.message+` -`+l.stack):l},0)}}return r.prototype.emit=function(l){this.listeners.forEach(function(b){b(l)})},r.prototype.onUnexpectedError=function(l){this.unexpectedErrorHandler(l),this.emit(l)},r.prototype.onUnexpectedExternalError=function(l){this.unexpectedErrorHandler(l)},r}(),F=new X;function R(r){M(r)||F.onUnexpectedError(r);return}function j(r){M(r)||F.onUnexpectedExternalError(r);return}function T(r){if(r instanceof Error){var l=r.name,b=r.message,u=r.stacktrace||r.stack;return{$isError:!0,name:l,message:b,stack:u}}return r}var S="Canceled";function M(r){return r instanceof Error&&r.name===S&&r.message===S}function c(){var r=new Error(S);return r.name=r.message,r}function E(r){return r?new Error("Illegal argument: "+r):new Error("Illegal argument")}function g(r){return r?new Error("Illegal state: "+r):new Error("Illegal state")}},"06Qe":function(ze,te,P){var X=P("ItGF"),F="urn:schemas-microsoft-com:vml",R=typeof window=="undefined"?null:window,j=!1,T=R&&R.document;function S(E){return M(E)}var M;if(T&&!X.canvasSupported)try{!T.namespaces.zrvml&&T.namespaces.add("zrvml",F),M=function(E){return T.createElement("')}}catch(E){M=function(g){return T.createElement("<"+g+' xmlns="'+F+'" class="zrvml">')}}function c(){if(j||!T)return;j=!0;var E=T.styleSheets;E.length<31?T.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):E[0].addRule(".zrvml","behavior:url(#default#VML)")}te.doc=T,te.createNode=S,te.initVML=c},"0s+r":function(ze,te,P){var X=P("bYtY"),F=P("QBsz"),R=P("y23F"),j=P("H6uX"),T=P("YH21"),S=P("C0SR"),M="silent";function c(v,a,t){return{type:v,event:t,target:a.target,topTarget:a.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:E}}function E(){T.stop(this.event)}function g(){}g.prototype.dispose=function(){};var r=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],l=function(v,a,t,s){j.call(this),this.storage=v,this.painter=a,this.painterRoot=s,t=t||new g,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,R.call(this),this.setHandlerProxy(t)};l.prototype={constructor:l,setHandlerProxy:function(v){this.proxy&&this.proxy.dispose(),v&&(X.each(r,function(a){v.on&&v.on(a,this[a],this)},this),v.handler=this),this.proxy=v},mousemove:function(v){var a=v.zrX,t=v.zrY,s=u(this,a,t),h=this._hovered,y=h.target;y&&!y.__zr&&(h=this.findHover(h.x,h.y),y=h.target);var D=this._hovered=s?{x:a,y:t}:this.findHover(a,t),C=D.target,I=this.proxy;I.setCursor&&I.setCursor(C?C.cursor:"default"),y&&C!==y&&this.dispatchToElement(h,"mouseout",v),this.dispatchToElement(D,"mousemove",v),C&&C!==y&&this.dispatchToElement(D,"mouseover",v)},mouseout:function(v){var a=v.zrEventControl,t=v.zrIsToLocalDOM;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",v),a!=="no_globalout"&&(!t&&this.trigger("globalout",{type:"globalout",event:v}))},resize:function(v){this._hovered={}},dispatch:function(v,a){var t=this[v];t&&t.call(this,a)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(v){var a=this.proxy;a.setCursor&&a.setCursor(v)},dispatchToElement:function(v,a,t){v=v||{};var s=v.target;if(s&&s.silent)return;for(var h="on"+a,y=c(a,v,t);s&&!(s[h]&&(y.cancelBubble=s[h].call(s,y)),s.trigger(a,y),s=s.parent,y.cancelBubble););y.cancelBubble||(this.trigger(a,y),this.painter&&this.painter.eachOtherLayer(function(D){typeof D[h]=="function"&&D[h].call(D,y),D.trigger&&D.trigger(a,y)}))},findHover:function(v,a,t){for(var s=this.storage.getDisplayList(),h={x:v,y:a},y=s.length-1;y>=0;y--){var D;if(s[y]!==t&&!s[y].ignore&&(D=b(s[y],v,a))&&(!h.topTarget&&(h.topTarget=s[y]),D!==M)){h.target=s[y];break}}return h},processGesture:function(v,a){this._gestureMgr||(this._gestureMgr=new S);var t=this._gestureMgr;a==="start"&&t.clear();var s=t.recognize(v,this.findHover(v.zrX,v.zrY,null).target,this.proxy.dom);if(a==="end"&&t.clear(),s){var h=s.type;v.gestureEvent=h,this.dispatchToElement({target:s.target},h,s.event)}}},X.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(v){l.prototype[v]=function(a){var t=a.zrX,s=a.zrY,h=u(this,t,s),y,D;if((v!=="mouseup"||!h)&&(y=this.findHover(t,s),D=y.target),v==="mousedown")this._downEl=D,this._downPoint=[a.zrX,a.zrY],this._upEl=D;else if(v==="mouseup")this._upEl=D;else if(v==="click"){if(this._downEl!==this._upEl||!this._downPoint||F.dist(this._downPoint,[a.zrX,a.zrY])>4)return;this._downPoint=null}this.dispatchToElement(y,v,a)}});function b(v,a,t){if(v[v.rectHover?"rectContain":"contain"](a,t)){for(var s=v,h;s;){if(s.clipPath&&!s.clipPath.contain(a,t))return!1;s.silent&&(h=!0),s=s.parent}return h?M:!0}return!1}function u(v,a,t){var s=v.painter;return a<0||a>s.getWidth()||t<0||t>s.getHeight()}X.mixin(l,j),X.mixin(l,R);var p=l;ze.exports=p},"19Vz":function(ze,te,P){(function(X){X(P("VrN/"))})(function(X){X.defineOption("placeholder","",function(c,E,g){var r=g&&g!=X.Init;if(E&&!r)c.on("blur",T),c.on("change",S),c.on("swapDoc",S),X.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){j(c)}),S(c);else if(!E&&r){c.off("blur",T),c.off("change",S),c.off("swapDoc",S),X.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),F(c);var l=c.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}E&&!c.hasFocus()&&T(c)});function F(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function R(c){F(c);var E=c.state.placeholder=document.createElement("pre");E.style.cssText="height: 0; overflow: visible",E.style.direction=c.getOption("direction"),E.className="CodeMirror-placeholder CodeMirror-line-like";var g=c.getOption("placeholder");typeof g=="string"&&(g=document.createTextNode(g)),E.appendChild(g),c.display.lineSpace.insertBefore(E,c.display.lineSpace.firstChild)}function j(c){setTimeout(function(){var E=!1,g=c.getInputField();g.nodeName=="TEXTAREA"?E=!g.value:c.lineCount()==1&&(E=!/[^\u200b]/.test(g.querySelector(".CodeMirror-line").textContent)),E?R(c):F(c)},20)}function T(c){M(c)&&R(c)}function S(c){var E=c.getWrapperElement(),g=M(c);E.className=E.className.replace(" CodeMirror-empty","")+(g?" CodeMirror-empty":""),g?R(c):F(c)}function M(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(ze,te,P){var X=P("y+Vt"),F=P("T6xi"),R=X.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(j,T){F.buildPath(j,T,!1)}});ze.exports=R},"1MYJ":function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var R=this.__dirtyPath,j=this.shape.paths,T=0;T=this._maxSize&&r>0){var b=c.head;c.remove(b),delete E[b.key],g=b.value,this._lastRemovedEntry=b}l?l.value=M:l=new F(M),l.key=S,c.insertEntry(l),E[S]=l}return g},j.get=function(S){var M=this._map[S],c=this._list;if(M!=null)return M!==c.tail&&(c.remove(M),c.insertEntry(M)),M.value},j.clear=function(){this._list.clear(),this._map={}};var T=R;ze.exports=T},"1ZF9":function(ze,te,P){ze.exports=P.p+"static/Authorize.cc9c212f.png"},"1bdT":function(ze,te,P){var X=P("3gBT"),F=P("H6uX"),R=P("DN4a"),j=P("vWvF"),T=P("bYtY"),S=function(c){R.call(this,c),F.call(this,c),j.call(this,c),this.id=c.id||X()};S.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(c,E){switch(this.draggable){case"horizontal":E=0;break;case"vertical":c=0;break}var g=this.transform;g||(g=this.transform=[1,0,0,1,0,0]),g[4]+=c,g[5]+=E,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(c,E){},attrKV:function(c,E){if(c==="position"||c==="scale"||c==="origin"){if(E){var g=this[c];g||(g=this[c]=[]),g[0]=E[0],g[1]=E[1]}}else this[c]=E},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(c,E){if(typeof c=="string")this.attrKV(c,E);else if(T.isObject(c))for(var g in c)c.hasOwnProperty(g)&&this.attrKV(g,c[g]);return this.dirty(!1),this},setClipPath:function(c){var E=this.__zr;E&&c.addSelfToZr(E),this.clipPath&&this.clipPath!==c&&this.removeClipPath(),this.clipPath=c,c.__zr=E,c.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var c=this.clipPath;c&&(c.__zr&&c.removeSelfFromZr(c.__zr),c.__zr=null,c.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(c){this.__zr=c;var E=this.animators;if(E)for(var g=0;g")):null:d.match("--")?O(p("comment","-->")):d.match("DOCTYPE",!0,!0)?(d.eatWhile(/[\w\._\-]/),O(v(1))):null:d.eat("?")?(d.eatWhile(/[\w\._\-]/),A.tokenize=p("meta","?>"),"meta"):(g=d.eat("/")?"closeTag":"openTag",A.tokenize=b,"tag bracket");if(m=="&"){var k;return d.eat("#")?d.eat("x")?k=d.eatWhile(/[a-fA-F\d]/)&&d.eat(";"):k=d.eatWhile(/[\d]/)&&d.eat(";"):k=d.eatWhile(/[\w\.\-:]/)&&d.eat(";"),k?"atom":"error"}else return d.eatWhile(/[^&<]/),null}l.isInText=!0;function b(d,A){var O=d.next();if(O==">"||O=="/"&&d.eat(">"))return A.tokenize=l,g=O==">"?"endTag":"selfcloseTag","tag bracket";if(O=="=")return g="equals",null;if(O=="<"){A.tokenize=l,A.state=h,A.tagName=A.tagStart=null;var m=A.tokenize(d,A);return m?m+" tag error":"tag error"}else return/[\'\"]/.test(O)?(A.tokenize=u(O),A.stringStartCol=d.column(),A.tokenize(d,A)):(d.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(d){var A=function(O,m){for(;!O.eol();)if(O.next()==d){m.tokenize=b;break}return"string"};return A.isInAttribute=!0,A}function p(d,A){return function(O,m){for(;!O.eol();){if(O.match(A)){m.tokenize=l;break}O.next()}return d}}function v(d){return function(A,O){for(var m;(m=A.next())!=null;){if(m=="<")return O.tokenize=v(d+1),O.tokenize(A,O);if(m==">")if(d==1){O.tokenize=l;break}else return O.tokenize=v(d-1),O.tokenize(A,O)}return"meta"}}function a(d,A,O){this.prev=d.context,this.tagName=A,this.indent=d.indented,this.startOfLine=O,(M.doNotIndent.hasOwnProperty(A)||d.context&&d.context.noIndent)&&(this.noIndent=!0)}function t(d){d.context&&(d.context=d.context.prev)}function s(d,A){for(var O;;){if(!d.context)return;if(O=d.context.tagName,!M.contextGrabbers.hasOwnProperty(O)||!M.contextGrabbers[O].hasOwnProperty(A))return;t(d)}}function h(d,A,O){return d=="openTag"?(O.tagStart=A.column(),y):d=="closeTag"?D:h}function y(d,A,O){return d=="word"?(O.tagName=A.current(),r="tag",_):M.allowMissingTagName&&d=="endTag"?(r="tag bracket",_(d,A,O)):(r="error",y)}function D(d,A,O){if(d=="word"){var m=A.current();return O.context&&O.context.tagName!=m&&M.implicitlyClosed.hasOwnProperty(O.context.tagName)&&t(O),O.context&&O.context.tagName==m||M.matchClosing===!1?(r="tag",C):(r="tag error",I)}else return M.allowMissingTagName&&d=="endTag"?(r="tag bracket",C(d,A,O)):(r="error",I)}function C(d,A,O){return d!="endTag"?(r="error",C):(t(O),h)}function I(d,A,O){return r="error",C(d,A,O)}function _(d,A,O){if(d=="word")return r="attribute",f;if(d=="endTag"||d=="selfcloseTag"){var m=O.tagName,k=O.tagStart;return O.tagName=O.tagStart=null,d=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(m)?s(O,m):(s(O,m),O.context=new a(O,m,k==O.indented)),h}return r="error",_}function f(d,A,O){return d=="equals"?o:(M.allowMissing||(r="error"),_(d,A,O))}function o(d,A,O){return d=="string"?i:d=="word"&&M.allowUnquoted?(r="string",_):(r="error",_(d,A,O))}function i(d,A,O){return d=="string"?i:_(d,A,O)}return{startState:function(d){var A={tokenize:l,state:h,indented:d||0,tagName:null,tagStart:null,context:null};return d!=null&&(A.baseIndent=d),A},token:function(d,A){if(!A.tagName&&d.sol()&&(A.indented=d.indentation()),d.eatSpace())return null;g=null;var O=A.tokenize(d,A);return(O||g)&&O!="comment"&&(r=null,A.state=A.state(g||O,d,A),r&&(O=r=="error"?O+" error":r)),O},indent:function(d,A,O){var m=d.context;if(d.tokenize.isInAttribute)return d.tagStart==d.indented?d.stringStartCol+1:d.indented+S;if(m&&m.noIndent)return X.Pass;if(d.tokenize!=b&&d.tokenize!=l)return O?O.match(/^(\s*)/)[0].length:0;if(d.tagName)return M.multilineTagIndentPastTag!==!1?d.tagStart+d.tagName.length+2:d.tagStart+S*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(d){d.state==o&&(d.state=_)},xmlCurrentTag:function(d){return d.tagName?{name:d.tagName,close:d.type=="closeTag"}:null},xmlCurrentContext:function(d){for(var A=[],O=d.context;O;O=O.prev)O.tagName&&A.push(O.tagName);return A.reverse()}}}),X.defineMIME("text/xml","xml"),X.defineMIME("application/xml","xml"),X.mimeModes.hasOwnProperty("text/html")||X.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(ze,te,P){"use strict";P.d(te,"d",function(){return Pt}),P.d(te,"b",function(){return Ye}),P.d(te,"c",function(){return Mt}),P.d(te,"a",function(){return sn});var X=P("VTBJ"),F=P("1OyB"),R=P("vuIU"),j=P("JX7q"),T=P("Ji7U"),S=P("LK+K"),M=P("q1tI"),c=P("I8Z2"),E=P("BGR+"),g=P("wx14"),r=P("rePB"),l=P("4IlW"),b=P("2GS6"),u=P("Gytx"),p=P.n(u),v=P("TSYQ"),a=P.n(v),t=P("U8pU"),s=P("ODXe"),h=/iPhone/i,y=/iPod/i,D=/iPad/i,C=/\bAndroid(?:.+)Mobile\b/i,I=/Android/i,_=/\bAndroid(?:.+)SD4930UR\b/i,f=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,o=/Windows Phone/i,i=/\bWindows(?:.+)ARM\b/i,d=/BlackBerry/i,A=/BB10/i,O=/Opera Mini/i,m=/\b(CriOS|Chrome)(?:.+)Mobile/i,k=/Mobile(?:.+)Firefox\b/i;function N(rn,St){return rn.test(St)}function B(rn){var St=rn||(typeof navigator!="undefined"?navigator.userAgent:""),Tt=St.split("[FBAN");if(typeof Tt[1]!="undefined"){var ct=Tt,ye=Object(s.a)(ct,1);St=ye[0]}if(Tt=St.split("Twitter"),typeof Tt[1]!="undefined"){var Pe=Tt,Lt=Object(s.a)(Pe,1);St=Lt[0]}var pt={apple:{phone:N(h,St)&&!N(o,St),ipod:N(y,St),tablet:!N(h,St)&&N(D,St)&&!N(o,St),device:(N(h,St)||N(y,St)||N(D,St))&&!N(o,St)},amazon:{phone:N(_,St),tablet:!N(_,St)&&N(f,St),device:N(_,St)||N(f,St)},android:{phone:!N(o,St)&&N(_,St)||!N(o,St)&&N(C,St),tablet:!N(o,St)&&!N(_,St)&&!N(C,St)&&(N(f,St)||N(I,St)),device:!N(o,St)&&(N(_,St)||N(f,St)||N(C,St)||N(I,St))||N(/\bokhttp\b/i,St)},windows:{phone:N(o,St),tablet:N(i,St),device:N(o,St)||N(i,St)},other:{blackberry:N(d,St),blackberry10:N(A,St),opera:N(O,St),firefox:N(k,St),chrome:N(m,St),device:N(d,St)||N(A,St)||N(O,St)||N(k,St)||N(m,St)},any:null,phone:null,tablet:null};return pt.any=pt.apple.device||pt.android.device||pt.windows.device||pt.other.device,pt.phone=pt.apple.phone||pt.android.phone||pt.windows.phone,pt.tablet=pt.apple.tablet||pt.android.tablet||pt.windows.tablet,pt}var G=Object(X.a)(Object(X.a)({},B()),{},{isMobile:B}),W=G;function z(){}function Y(rn,St,Tt){var ct=St||"";return rn.key||"".concat(ct,"item_").concat(Tt)}function V(rn){return"".concat(rn,"-menu-")}function q(rn,St){var Tt=-1;M.Children.forEach(rn,function(ct){Tt+=1,ct&&ct.type&&ct.type.isMenuItemGroup?M.Children.forEach(ct.props.children,function(ye){Tt+=1,St(ye,Tt)}):St(ct,Tt)})}function ne(rn,St,Tt){if(!rn||Tt.find)return;M.Children.forEach(rn,function(ct){if(ct){var ye=ct.type;if(!ye||!(ye.isSubMenu||ye.isMenuItem||ye.isMenuItemGroup))return;St.indexOf(ct.key)!==-1?Tt.find=!0:ct.props.children&&ne(ct.props.children,St,Tt)}})}var ve=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],le=function(St){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=St&&typeof St.getBoundingClientRect=="function"&&St.getBoundingClientRect().width;if(ct){if(Tt){var ye=getComputedStyle(St),Pe=ye.marginLeft,Lt=ye.marginRight;ct+=+Pe.replace("px","")+ +Lt.replace("px","")}ct=+ct.toFixed(6)}return ct||0},be=function(St,Tt,ct){St&&Object(t.a)(St.style)==="object"&&(St.style[Tt]=ct)},we=function(){return W.any},Re=P("KQm4"),ge=P("Ff2n"),fe=P("i8i4"),Ze=P("bdgK"),Ot=P("uciX"),Ee=P("8XRh"),ke={adjustX:1,adjustY:1},de={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},me={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},Le=de,rt=0,Oe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ge=function(St,Tt,ct){var ye=V(Tt),Pe=St.getState();St.setState({defaultActiveFirst:Object(X.a)(Object(X.a)({},Pe.defaultActiveFirst),{},Object(r.a)({},ye,ct))})},at=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(ct){var ye;Object(F.a)(this,Tt),ye=St.call(this,ct),ye.onDestroy=function(st){ye.props.onDestroy(st)},ye.onKeyDown=function(st){var xt=st.keyCode,Ut=ye.menuInstance,gn=ye.props,Mn=gn.isOpen,cr=gn.store;if(xt===l.a.ENTER)return ye.onTitleClick(st),Ge(cr,ye.props.eventKey,!0),!0;if(xt===l.a.RIGHT)return Mn?Ut.onKeyDown(st):(ye.triggerOpenChange(!0),Ge(cr,ye.props.eventKey,!0)),!0;if(xt===l.a.LEFT){var gr;if(Mn)gr=Ut.onKeyDown(st);else return;return gr||(ye.triggerOpenChange(!1),gr=!0),gr}return Mn&&(xt===l.a.UP||xt===l.a.DOWN)?Ut.onKeyDown(st):void 0},ye.onOpenChange=function(st){ye.props.onOpenChange(st)},ye.onPopupVisibleChange=function(st){ye.triggerOpenChange(st,st?"mouseenter":"mouseleave")},ye.onMouseEnter=function(st){var xt=ye.props,Ut=xt.eventKey,gn=xt.onMouseEnter,Mn=xt.store;Ge(Mn,ye.props.eventKey,!1),gn({key:Ut,domEvent:st})},ye.onMouseLeave=function(st){var xt=ye.props,Ut=xt.parentMenu,gn=xt.eventKey,Mn=xt.onMouseLeave;Ut.subMenuInstance=Object(j.a)(ye),Mn({key:gn,domEvent:st})},ye.onTitleMouseEnter=function(st){var xt=ye.props,Ut=xt.eventKey,gn=xt.onItemHover,Mn=xt.onTitleMouseEnter;gn({key:Ut,hover:!0}),Mn({key:Ut,domEvent:st})},ye.onTitleMouseLeave=function(st){var xt=ye.props,Ut=xt.parentMenu,gn=xt.eventKey,Mn=xt.onItemHover,cr=xt.onTitleMouseLeave;Ut.subMenuInstance=Object(j.a)(ye),Mn({key:gn,hover:!1}),cr({key:gn,domEvent:st})},ye.onTitleClick=function(st){var xt=Object(j.a)(ye),Ut=xt.props;if(Ut.onTitleClick({key:Ut.eventKey,domEvent:st}),Ut.triggerSubMenuAction==="hover")return;ye.triggerOpenChange(!Ut.isOpen,"click"),Ge(Ut.store,ye.props.eventKey,!1)},ye.onSubMenuClick=function(st){typeof ye.props.onClick=="function"&&ye.props.onClick(ye.addKeyPath(st))},ye.onSelect=function(st){ye.props.onSelect(st)},ye.onDeselect=function(st){ye.props.onDeselect(st)},ye.getPrefixCls=function(){return"".concat(ye.props.rootPrefixCls,"-submenu")},ye.getActiveClassName=function(){return"".concat(ye.getPrefixCls(),"-active")},ye.getDisabledClassName=function(){return"".concat(ye.getPrefixCls(),"-disabled")},ye.getSelectedClassName=function(){return"".concat(ye.getPrefixCls(),"-selected")},ye.getOpenClassName=function(){return"".concat(ye.props.rootPrefixCls,"-submenu-open")},ye.saveMenuInstance=function(st){ye.menuInstance=st},ye.addKeyPath=function(st){return Object(X.a)(Object(X.a)({},st),{},{keyPath:(st.keyPath||[]).concat(ye.props.eventKey)})},ye.triggerOpenChange=function(st,xt){var Ut=ye.props.eventKey,gn=function(){ye.onOpenChange({key:Ut,item:Object(j.a)(ye),trigger:xt,open:st})};xt==="mouseenter"?ye.mouseenterTimeout=setTimeout(function(){gn()},0):gn()},ye.isChildrenSelected=function(){var st={find:!1};return ne(ye.props.children,ye.props.selectedKeys,st),st.find},ye.isOpen=function(){return ye.props.openKeys.indexOf(ye.props.eventKey)!==-1},ye.adjustWidth=function(){if(!ye.subMenuTitle||!ye.menuInstance)return;var st=fe.findDOMNode(ye.menuInstance);if(st.offsetWidth>=ye.subMenuTitle.offsetWidth)return;st.style.minWidth="".concat(ye.subMenuTitle.offsetWidth,"px")},ye.saveSubMenuTitle=function(st){ye.subMenuTitle=st},ye.getBaseProps=function(){var st=Object(j.a)(ye),xt=st.props;return{mode:xt.mode==="horizontal"?"vertical":xt.mode,visible:ye.props.isOpen,level:xt.level+1,inlineIndent:xt.inlineIndent,focusable:!1,onClick:ye.onSubMenuClick,onSelect:ye.onSelect,onDeselect:ye.onDeselect,onDestroy:ye.onDestroy,selectedKeys:xt.selectedKeys,eventKey:"".concat(xt.eventKey,"-menu-"),openKeys:xt.openKeys,motion:xt.motion,onOpenChange:ye.onOpenChange,subMenuOpenDelay:xt.subMenuOpenDelay,parentMenu:Object(j.a)(ye),subMenuCloseDelay:xt.subMenuCloseDelay,forceSubMenuRender:xt.forceSubMenuRender,triggerSubMenuAction:xt.triggerSubMenuAction,builtinPlacements:xt.builtinPlacements,defaultActiveFirst:xt.store.getState().defaultActiveFirst[V(xt.eventKey)],multiple:xt.multiple,prefixCls:xt.rootPrefixCls,id:ye.internalMenuId,manualRef:ye.saveMenuInstance,itemIcon:xt.itemIcon,expandIcon:xt.expandIcon,direction:xt.direction}},ye.getMotion=function(st,xt){var Ut=Object(j.a)(ye),gn=Ut.haveRendered,Mn=ye.props,cr=Mn.motion,gr=Mn.rootPrefixCls,or=Object(X.a)(Object(X.a)({},cr),{},{leavedClassName:"".concat(gr,"-hidden"),removeOnLeave:!1,motionAppear:gn||!xt||st!=="inline"});return or};var Pe=ct.store,Lt=ct.eventKey,pt=Pe.getState(),en=pt.defaultActiveFirst;ye.isRootMenu=!1;var an=!1;return en&&(an=en[Lt]),Ge(Pe,Lt,an),ye}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ye=this,Pe=this.props,Lt=Pe.mode,pt=Pe.parentMenu,en=Pe.manualRef;if(en&&en(this),Lt!=="horizontal"||!pt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ye.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ye=this.props,Pe=ye.onDestroy,Lt=ye.eventKey;Pe&&Pe(Lt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ye){var Pe=this,Lt=this.getBaseProps(),pt=this.getMotion(Lt.mode,Lt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Lt.visible||Lt.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var en=Lt.direction;return M.createElement(Ee.default,Object.assign({visible:Lt.visible},pt),function(an){var st=an.className,xt=an.style,Ut=a()("".concat(Lt.prefixCls,"-sub"),st,Object(r.a)({},"".concat(Lt.prefixCls,"-rtl"),en==="rtl"));return M.createElement(Me,Object.assign({},Lt,{id:Pe.internalMenuId,className:Ut,style:xt}),ye)})}},{key:"render",value:function(){var ye,Pe=Object(X.a)({},this.props),Lt=Pe.isOpen,pt=this.getPrefixCls(),en=Pe.mode==="inline",an=a()(pt,"".concat(pt,"-").concat(Pe.mode),(ye={},Object(r.a)(ye,Pe.className,!!Pe.className),Object(r.a)(ye,this.getOpenClassName(),Lt),Object(r.a)(ye,this.getActiveClassName(),Pe.active||Lt&&!en),Object(r.a)(ye,this.getDisabledClassName(),Pe.disabled),Object(r.a)(ye,this.getSelectedClassName(),this.isChildrenSelected()),ye));this.internalMenuId||(Pe.eventKey?this.internalMenuId="".concat(Pe.eventKey,"$Menu"):(rt+=1,this.internalMenuId="$__$".concat(rt,"$Menu")));var st={},xt={},Ut={};Pe.disabled||(st={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},xt={onClick:this.onTitleClick},Ut={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var gn={},Mn=Pe.direction;en&&(Mn==="rtl"?gn.paddingRight=Pe.inlineIndent*Pe.level:gn.paddingLeft=Pe.inlineIndent*Pe.level);var cr={};this.props.isOpen&&(cr={"aria-owns":this.internalMenuId});var gr=null;Pe.mode!=="horizontal"&&(gr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(gr=M.createElement(this.props.expandIcon,Object(X.a)({},this.props))));var or=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:gn,className:"".concat(pt,"-title"),role:"button"},Ut,xt,{"aria-expanded":Lt},cr,{"aria-haspopup":"true",title:typeof Pe.title=="string"?Pe.title:void 0}),Pe.title,gr||M.createElement("i",{className:"".concat(pt,"-arrow")})),kn=this.renderChildren(Pe.children),Fr=Pe.parentMenu.isRootMenu?Pe.parentMenu.props.getPopupContainer:function(_r){return _r.parentNode},ea=Oe[Pe.mode],Mr=Pe.popupOffset?{offset:Pe.popupOffset}:{},pr=Pe.mode==="inline"?"":Pe.popupClassName;pr+=Mn==="rtl"?" ".concat(pt,"-rtl"):"";var Nr=Pe.disabled,ta=Pe.triggerSubMenuAction,ca=Pe.subMenuOpenDelay,Zt=Pe.forceSubMenuRender,In=Pe.subMenuCloseDelay,hr=Pe.builtinPlacements;ve.forEach(function(_r){return delete Pe[_r]}),delete Pe.onClick;var Or=Mn==="rtl"?Object.assign({},me,hr):Object.assign({},de,hr);return delete Pe.direction,M.createElement("li",Object.assign({},Pe,st,{className:an,role:"menuitem"}),en&&or,en&&kn,!en&&M.createElement(Ot.a,{prefixCls:pt,popupClassName:a()("".concat(pt,"-popup"),pr),getPopupContainer:Fr,builtinPlacements:Or,popupPlacement:ea,popupVisible:Lt,popupAlign:Mr,popup:kn,action:Nr?[]:[ta],mouseEnterDelay:ca,mouseLeaveDelay:In,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zt},or))}}]),Tt}(M.Component);at.defaultProps={onMouseEnter:z,onMouseLeave:z,onTitleMouseEnter:z,onTitleMouseLeave:z,onTitleClick:z,manualRef:z,mode:"vertical",title:""};var dt=Object(c.b)(function(rn,St){var Tt=rn.openKeys,ct=rn.activeKey,ye=rn.selectedKeys,Pe=St.eventKey,Lt=St.subMenuKey;return{isOpen:Tt.indexOf(Pe)>-1,active:ct[Lt]===Pe,selectedKeys:ye}})(at);dt.isSubMenu=!0;var Pt=dt,bt="menuitem-overflowed",zt=.5,It=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(){var ct;return Object(F.a)(this,Tt),ct=St.apply(this,arguments),ct.resizeObserver=null,ct.mutationObserver=null,ct.originalTotalWidth=0,ct.overflowedItems=[],ct.menuItemSizes=[],ct.cancelFrameId=null,ct.state={lastVisibleIndex:void 0},ct.getMenuItemNodes=function(){var ye=ct.props.prefixCls,Pe=fe.findDOMNode(Object(j.a)(ct));return Pe?[].slice.call(Pe.children).filter(function(Lt){return Lt.className.split(" ").indexOf("".concat(ye,"-overflowed-submenu"))<0}):[]},ct.getOverflowedSubMenuItem=function(ye,Pe,Lt){var pt=ct.props,en=pt.overflowedIndicator,an=pt.level,st=pt.mode,xt=pt.prefixCls,Ut=pt.theme;if(an!==1||st!=="horizontal")return null;var gn=ct.props.children[0],Mn=gn.props,cr=Mn.children,gr=Mn.title,or=Mn.style,kn=Object(ge.a)(Mn,["children","title","style"]),Fr=Object(X.a)({},or),ea="".concat(ye,"-overflowed-indicator"),Mr="".concat(ye,"-overflowed-indicator");Pe.length===0&&Lt!==!0?Fr=Object(X.a)(Object(X.a)({},Fr),{},{display:"none"}):Lt&&(Fr=Object(X.a)(Object(X.a)({},Fr),{},{visibility:"hidden",position:"absolute"}),ea="".concat(ea,"-placeholder"),Mr="".concat(Mr,"-placeholder"));var pr=Ut?"".concat(xt,"-").concat(Ut):"",Nr={};return ve.forEach(function(ta){kn[ta]!==void 0&&(Nr[ta]=kn[ta])}),M.createElement(Pt,Object.assign({title:en,className:"".concat(xt,"-overflowed-submenu"),popupClassName:pr},Nr,{key:ea,eventKey:Mr,disabled:!1,style:Fr}),Pe)},ct.setChildrenWidthAndResize=function(){if(ct.props.mode!=="horizontal")return;var ye=fe.findDOMNode(Object(j.a)(ct));if(!ye)return;var Pe=ye.children;if(!Pe||Pe.length===0)return;var Lt=ye.children[Pe.length-1];be(Lt,"display","inline-block");var pt=ct.getMenuItemNodes(),en=pt.filter(function(an){return an.className.split(" ").indexOf(bt)>=0});en.forEach(function(an){be(an,"display","inline-block")}),ct.menuItemSizes=pt.map(function(an){return le(an,!0)}),en.forEach(function(an){be(an,"display","none")}),ct.overflowedIndicatorWidth=le(ye.children[ye.children.length-1],!0),ct.originalTotalWidth=ct.menuItemSizes.reduce(function(an,st){return an+st},0),ct.handleResize(),be(Lt,"display","none")},ct.handleResize=function(){if(ct.props.mode!=="horizontal")return;var ye=fe.findDOMNode(Object(j.a)(ct));if(!ye)return;var Pe=le(ye);ct.overflowedItems=[];var Lt=0,pt;ct.originalTotalWidth>Pe+zt&&(pt=-1,ct.menuItemSizes.forEach(function(en){Lt+=en,Lt+ct.overflowedIndicatorWidth<=Pe&&(pt+=1)})),ct.setState({lastVisibleIndex:pt})},ct}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){var ye=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Pe=fe.findDOMNode(this);if(!Pe)return;this.resizeObserver=new Ze.default(function(Lt){Lt.forEach(function(){var pt=ye.cancelFrameId;cancelAnimationFrame(pt),ye.cancelFrameId=requestAnimationFrame(ye.setChildrenWidthAndResize)})}),[].slice.call(Pe.children).concat(Pe).forEach(function(Lt){ye.resizeObserver.observe(Lt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ye.resizeObserver.disconnect(),[].slice.call(Pe.children).concat(Pe).forEach(function(Lt){ye.resizeObserver.observe(Lt)}),ye.setChildrenWidthAndResize()}),this.mutationObserver.observe(Pe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ye){var Pe=this,Lt=this.state.lastVisibleIndex;return(ye||[]).reduce(function(pt,en,an){var st=en;if(Pe.props.mode==="horizontal"){var xt=Pe.getOverflowedSubMenuItem(en.props.eventKey,[]);Lt!==void 0&&Pe.props.className.indexOf("".concat(Pe.props.prefixCls,"-root"))!==-1&&(an>Lt&&(st=M.cloneElement(en,{style:{display:"none"},eventKey:"".concat(en.props.eventKey,"-hidden"),className:"".concat(bt)})),an===Lt+1&&(Pe.overflowedItems=ye.slice(Lt+1).map(function(gn){return M.cloneElement(gn,{key:gn.props.eventKey,mode:"vertical-left"})}),xt=Pe.getOverflowedSubMenuItem(en.props.eventKey,Pe.overflowedItems)));var Ut=[].concat(Object(Re.a)(pt),[xt,st]);return an===ye.length-1&&Ut.push(Pe.getOverflowedSubMenuItem(en.props.eventKey,[],!0)),Ut}return[].concat(Object(Re.a)(pt),[st])},[])}},{key:"render",value:function(){var ye=this.props,Pe=ye.visible,Lt=ye.prefixCls,pt=ye.overflowedIndicator,en=ye.mode,an=ye.level,st=ye.tag,xt=ye.children,Ut=ye.theme,gn=Object(ge.a)(ye,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Mn=st;return M.createElement(Mn,Object.assign({},gn),this.renderChildren(xt))}}]),Tt}(M.Component);It.defaultProps={tag:"div",className:""};var on=It;function dn(rn){return rn.length?rn.every(function(St){return!!St.props.disabled}):!0}function Ie(rn,St,Tt){var ct=rn.getState();rn.setState({activeKey:Object(X.a)(Object(X.a)({},ct.activeKey),{},Object(r.a)({},St,Tt))})}function De(rn){return rn.eventKey||"0-menu-"}function ot(rn,St){var Tt=St,ct=rn.children,ye=rn.eventKey;if(Tt){var Pe;if(q(ct,function(Lt,pt){Lt&&Lt.props&&!Lt.props.disabled&&Tt===Y(Lt,ye,pt)&&(Pe=!0)}),Pe)return Tt}return Tt=null,rn.defaultActiveFirst&&q(ct,function(Lt,pt){!Tt&&Lt&&!Lt.props.disabled&&(Tt=Y(Lt,ye,pt))}),Tt}function Et(rn){if(rn){var St=this.instanceArray.indexOf(rn);St!==-1?this.instanceArray[St]=rn:this.instanceArray.push(rn)}}var Je=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(ct){var ye;return Object(F.a)(this,Tt),ye=St.call(this,ct),ye.onKeyDown=function(Pe,Lt){var pt=Pe.keyCode,en;if(ye.getFlatInstanceArray().forEach(function(st){st&&st.props.active&&st.onKeyDown&&(en=st.onKeyDown(Pe))}),en)return 1;var an=null;return(pt===l.a.UP||pt===l.a.DOWN)&&(an=ye.step(pt===l.a.UP?-1:1)),an?(Pe.preventDefault(),Ie(ye.props.store,De(ye.props),an.props.eventKey),typeof Lt=="function"&&Lt(an),1):void 0},ye.onItemHover=function(Pe){var Lt=Pe.key,pt=Pe.hover;Ie(ye.props.store,De(ye.props),pt?Lt:null)},ye.onDeselect=function(Pe){ye.props.onDeselect(Pe)},ye.onSelect=function(Pe){ye.props.onSelect(Pe)},ye.onClick=function(Pe){ye.props.onClick(Pe)},ye.onOpenChange=function(Pe){ye.props.onOpenChange(Pe)},ye.onDestroy=function(Pe){ye.props.onDestroy(Pe)},ye.getFlatInstanceArray=function(){return ye.instanceArray},ye.step=function(Pe){var Lt=ye.getFlatInstanceArray(),pt=ye.props.store.getState().activeKey[De(ye.props)],en=Lt.length;if(!en)return null;Pe<0&&(Lt=Lt.concat().reverse());var an=-1;if(Lt.every(function(gn,Mn){return gn&&gn.props.eventKey===pt?(an=Mn,!1):!0}),!ye.props.defaultActiveFirst&&an!==-1&&dn(Lt.slice(an,en-1)))return;var st=(an+1)%en,xt=st;do{var Ut=Lt[xt];if(!Ut||Ut.props.disabled)xt=(xt+1)%en;else return Ut}while(xt!==st);return null},ye.renderCommonMenuItem=function(Pe,Lt,pt){var en=ye.props.store.getState(),an=Object(j.a)(ye),st=an.props,xt=Y(Pe,st.eventKey,Lt),Ut=Pe.props;if(!Ut||typeof Pe.type=="string")return Pe;var gn=xt===en.activeKey,Mn=Object(X.a)(Object(X.a)({mode:Ut.mode||st.mode,level:st.level,inlineIndent:st.inlineIndent,renderMenuItem:ye.renderMenuItem,rootPrefixCls:st.prefixCls,index:Lt,parentMenu:st.parentMenu,manualRef:Ut.disabled?void 0:Object(b.a)(Pe.ref,Et.bind(Object(j.a)(ye))),eventKey:xt,active:!Ut.disabled&&gn,multiple:st.multiple,onClick:function(gr){(Ut.onClick||z)(gr),ye.onClick(gr)},onItemHover:ye.onItemHover,motion:st.motion,subMenuOpenDelay:st.subMenuOpenDelay,subMenuCloseDelay:st.subMenuCloseDelay,forceSubMenuRender:st.forceSubMenuRender,onOpenChange:ye.onOpenChange,onDeselect:ye.onDeselect,onSelect:ye.onSelect,builtinPlacements:st.builtinPlacements,itemIcon:Ut.itemIcon||ye.props.itemIcon,expandIcon:Ut.expandIcon||ye.props.expandIcon},pt),{},{direction:st.direction});return(st.mode==="inline"||we())&&(Mn.triggerSubMenuAction="click"),M.cloneElement(Pe,Mn)},ye.renderMenuItem=function(Pe,Lt,pt){if(!Pe)return null;var en=ye.props.store.getState(),an={openKeys:en.openKeys,selectedKeys:en.selectedKeys,triggerSubMenuAction:ye.props.triggerSubMenuAction,subMenuKey:pt};return ye.renderCommonMenuItem(Pe,Lt,an)},ct.store.setState({activeKey:Object(X.a)(Object(X.a)({},ct.store.getState().activeKey),{},Object(r.a)({},ct.eventKey,ot(ct,ct.activeKey)))}),ye.instanceArray=[],ye}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ye){return this.props.visible||ye.visible||this.props.className!==ye.className||!p()(this.props.style,ye.style)}},{key:"componentDidUpdate",value:function(ye){var Pe=this.props,Lt="activeKey"in Pe?Pe.activeKey:Pe.store.getState().activeKey[De(Pe)],pt=ot(Pe,Lt);if(pt!==Lt)Ie(Pe.store,De(Pe),pt);else if("activeKey"in ye){var en=ot(ye,ye.activeKey);pt!==en&&Ie(Pe.store,De(Pe),pt)}}},{key:"render",value:function(){var ye=this,Pe=Object(g.a)({},this.props);this.instanceArray=[];var Lt=a()(Pe.prefixCls,Pe.className,"".concat(Pe.prefixCls,"-").concat(Pe.mode)),pt={className:Lt,role:Pe.role||"menu"};Pe.id&&(pt.id=Pe.id),Pe.focusable&&(pt.tabIndex=0,pt.onKeyDown=this.onKeyDown);var en=Pe.prefixCls,an=Pe.eventKey,st=Pe.visible,xt=Pe.level,Ut=Pe.mode,gn=Pe.overflowedIndicator,Mn=Pe.theme;return ve.forEach(function(cr){return delete Pe[cr]}),delete Pe.onClick,M.createElement(on,Object.assign({},Pe,{prefixCls:en,mode:Ut,tag:"ul",level:xt,theme:Mn,visible:st,overflowedIndicator:gn},pt),M.Children.map(Pe.children,function(cr,gr){return ye.renderMenuItem(cr,gr,an||"0-menu-")}))}}]),Tt}(M.Component);Je.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:z};var ft=Object(c.b)()(Je),Me=ft,xe=P("Kwbf");function Te(rn,St,Tt){var ct=rn.prefixCls,ye=rn.motion,Pe=rn.defaultMotions,Lt=Pe===void 0?{}:Pe,pt=rn.openAnimation,en=rn.openTransitionName,an=St.switchingModeFromInline;if(ye)return ye;if(Object(t.a)(pt)==="object"&&pt)Object(xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof pt=="string")return{motionName:"".concat(ct,"-open-").concat(pt)};if(en)return{motionName:en};var st=Lt[Tt];return st||(an?null:Lt.other)}var oe=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(ct){var ye;Object(F.a)(this,Tt),ye=St.call(this,ct),ye.inlineOpenKeys=[],ye.onSelect=function(pt){var en=Object(j.a)(ye),an=en.props;if(an.selectable){var st=ye.store.getState(),xt=st.selectedKeys,Ut=pt.key;an.multiple?xt=xt.concat([Ut]):xt=[Ut],"selectedKeys"in an||ye.store.setState({selectedKeys:xt}),an.onSelect(Object(X.a)(Object(X.a)({},pt),{},{selectedKeys:xt}))}},ye.onClick=function(pt){var en=ye.getRealMenuMode(),an=Object(j.a)(ye),st=an.store,xt=an.props.onOpenChange;en!=="inline"&&!("openKeys"in ye.props)&&(st.setState({openKeys:[]}),xt([])),ye.props.onClick(pt)},ye.onKeyDown=function(pt,en){ye.innerMenu.getWrappedInstance().onKeyDown(pt,en)},ye.onOpenChange=function(pt){var en=Object(j.a)(ye),an=en.props,st=ye.store.getState().openKeys.concat(),xt=!1,Ut=function(Mn){var cr=!1;if(Mn.open)cr=st.indexOf(Mn.key)===-1,cr&&st.push(Mn.key);else{var gr=st.indexOf(Mn.key);cr=gr!==-1,cr&&st.splice(gr,1)}xt=xt||cr};Array.isArray(pt)?pt.forEach(Ut):Ut(pt),xt&&("openKeys"in ye.props||ye.store.setState({openKeys:st}),an.onOpenChange(st))},ye.onDeselect=function(pt){var en=Object(j.a)(ye),an=en.props;if(an.selectable){var st=ye.store.getState().selectedKeys.concat(),xt=pt.key,Ut=st.indexOf(xt);Ut!==-1&&st.splice(Ut,1),"selectedKeys"in an||ye.store.setState({selectedKeys:st}),an.onDeselect(Object(X.a)(Object(X.a)({},pt),{},{selectedKeys:st}))}},ye.onMouseEnter=function(pt){ye.restoreModeVerticalFromInline();var en=ye.props.onMouseEnter;en&&en(pt)},ye.onTransitionEnd=function(pt){var en=pt.propertyName==="width"&&pt.target===pt.currentTarget,an=pt.target.className,st=Object.prototype.toString.call(an)==="[object SVGAnimatedString]"?an.animVal:an,xt=pt.propertyName==="font-size"&&st.indexOf("anticon")>=0;(en||xt)&&ye.restoreModeVerticalFromInline()},ye.setInnerMenu=function(pt){ye.innerMenu=pt},ye.isRootMenu=!0;var Pe=ct.defaultSelectedKeys,Lt=ct.defaultOpenKeys;return"selectedKeys"in ct&&(Pe=ct.selectedKeys||[]),"openKeys"in ct&&(Lt=ct.openKeys||[]),ye.store=Object(c.c)({selectedKeys:Pe,openKeys:Lt,activeKey:{"0-menu-":ot(ct,ct.activeKey)}}),ye.state={switchingModeFromInline:!1},ye}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ye){this.updateOpentKeysWhenSwitchMode(ye),this.updateMiniStore();var Pe=this.props,Lt=Pe.siderCollapsed,pt=Pe.inlineCollapsed,en=Pe.onOpenChange;(!ye.inlineCollapsed&&pt||!ye.siderCollapsed&&Lt)&&en([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ye){var Pe=this.props,Lt=this.store,pt=this.inlineOpenKeys,en=Lt.getState(),an={};ye.mode==="inline"&&Pe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Pe||((Pe.inlineCollapsed&&!ye.inlineCollapsed||Pe.siderCollapsed&&!ye.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=en.openKeys.concat(),an.openKeys=[]),(!Pe.inlineCollapsed&&ye.inlineCollapsed||!Pe.siderCollapsed&&ye.siderCollapsed)&&(an.openKeys=pt,this.inlineOpenKeys=[])),Object.keys(an).length&&Lt.setState(an)}},{key:"updateMenuDisplay",value:function(){var ye=this.props.collapsedWidth,Pe=this.store,Lt=this.prevOpenKeys,pt=this.getInlineCollapsed()&&(ye===0||ye==="0"||ye==="0px");pt?(this.prevOpenKeys=Pe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Lt&&(this.store.setState({openKeys:Lt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ye=this.props.mode,Pe=this.state.switchingModeFromInline,Lt=this.getInlineCollapsed();return Pe&&Lt?"inline":Lt?"vertical":ye}},{key:"getInlineCollapsed",value:function(){var ye=this.props,Pe=ye.inlineCollapsed,Lt=ye.siderCollapsed;return Lt!==void 0?Lt:Pe}},{key:"restoreModeVerticalFromInline",value:function(){var ye=this.state.switchingModeFromInline;ye&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ye=Object(X.a)({},Object(E.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Pe=this.getRealMenuMode();return ye.className+=" ".concat(ye.prefixCls,"-root"),ye.direction==="rtl"&&(ye.className+=" ".concat(ye.prefixCls,"-rtl")),ye=Object(X.a)(Object(X.a)({},ye),{},{mode:Pe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Te(this.props,this.state,Pe)}),delete ye.openAnimation,delete ye.openTransitionName,M.createElement(c.a,{store:this.store},M.createElement(Me,Object.assign({},ye,{ref:this.setInnerMenu}),this.props.children))}}]),Tt}(M.Component);oe.defaultProps={selectable:!0,onClick:z,onSelect:z,onOpenChange:z,onDeselect:z,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:M.createElement("span",null,"\xB7\xB7\xB7")};var ue=oe,pe=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(){var ct;return Object(F.a)(this,Tt),ct=St.apply(this,arguments),ct.onKeyDown=function(ye){var Pe=ye.keyCode;return Pe===l.a.ENTER?(ct.onClick(ye),!0):void 0},ct.onMouseLeave=function(ye){var Pe=ct.props,Lt=Pe.eventKey,pt=Pe.onItemHover,en=Pe.onMouseLeave;pt({key:Lt,hover:!1}),en({key:Lt,domEvent:ye})},ct.onMouseEnter=function(ye){var Pe=ct.props,Lt=Pe.eventKey,pt=Pe.onItemHover,en=Pe.onMouseEnter;pt({key:Lt,hover:!0}),en({key:Lt,domEvent:ye})},ct.onClick=function(ye){var Pe=ct.props,Lt=Pe.eventKey,pt=Pe.multiple,en=Pe.onClick,an=Pe.onSelect,st=Pe.onDeselect,xt=Pe.isSelected,Ut={key:Lt,keyPath:[Lt],item:Object(j.a)(ct),domEvent:ye};en(Ut),pt?xt?st(Ut):an(Ut):xt||an(Ut)},ct.saveNode=function(ye){ct.node=ye},ct}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ye=this.props;ye.onDestroy&&ye.onDestroy(ye.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ye,Pe=Object(X.a)({},this.props),Lt=a()(this.getPrefixCls(),Pe.className,(ye={},Object(r.a)(ye,this.getActiveClassName(),!Pe.disabled&&Pe.active),Object(r.a)(ye,this.getSelectedClassName(),Pe.isSelected),Object(r.a)(ye,this.getDisabledClassName(),Pe.disabled),ye)),pt=Object(X.a)(Object(X.a)({},Pe.attribute),{},{title:typeof Pe.title=="string"?Pe.title:void 0,className:Lt,role:Pe.role||"menuitem","aria-disabled":Pe.disabled});Pe.role==="option"?pt=Object(X.a)(Object(X.a)({},pt),{},{role:"option","aria-selected":Pe.isSelected}):(Pe.role===null||Pe.role==="none")&&(pt.role="none");var en={onClick:Pe.disabled?null:this.onClick,onMouseLeave:Pe.disabled?null:this.onMouseLeave,onMouseEnter:Pe.disabled?null:this.onMouseEnter},an=Object(X.a)({},Pe.style);Pe.mode==="inline"&&(Pe.direction==="rtl"?an.paddingRight=Pe.inlineIndent*Pe.level:an.paddingLeft=Pe.inlineIndent*Pe.level),ve.forEach(function(xt){return delete Pe[xt]}),delete Pe.direction;var st=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(st=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(E.default)(Pe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),pt,en,{style:an,ref:this.saveNode}),Pe.children,st)}}]),Tt}(M.Component);pe.isMenuItem=!0,pe.defaultProps={onSelect:z,onMouseEnter:z,onMouseLeave:z,manualRef:z};var _e=Object(c.b)(function(rn,St){var Tt=rn.activeKey,ct=rn.selectedKeys,ye=St.eventKey,Pe=St.subMenuKey;return{active:Tt[Pe]===ye,isSelected:ct.indexOf(ye)!==-1}})(pe),Ye=_e,Ue=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(){var ct;return Object(F.a)(this,Tt),ct=St.apply(this,arguments),ct.renderInnerMenuItem=function(ye){var Pe=ct.props,Lt=Pe.renderMenuItem,pt=Pe.index;return Lt(ye,pt,ct.props.subMenuKey)},ct}return Object(R.a)(Tt,[{key:"render",value:function(){var ye=Object(g.a)({},this.props),Pe=ye.className,Lt=Pe===void 0?"":Pe,pt=ye.rootPrefixCls,en="".concat(pt,"-item-group-title"),an="".concat(pt,"-item-group-list"),st=ye.title,xt=ye.children;return ve.forEach(function(Ut){return delete ye[Ut]}),delete ye.onClick,delete ye.direction,M.createElement("li",Object.assign({},ye,{className:"".concat(Lt," ").concat(pt,"-item-group")}),M.createElement("div",{className:en,title:typeof st=="string"?st:void 0},st),M.createElement("ul",{className:an},M.Children.map(xt,this.renderInnerMenuItem)))}}]),Tt}(M.Component);Ue.isMenuItemGroup=!0,Ue.defaultProps={disabled:!0};var Mt=Ue,tn=function(St){var Tt=St.className,ct=St.rootPrefixCls,ye=St.style;return M.createElement("li",{className:"".concat(Tt," ").concat(ct,"-item-divider"),style:ye})};tn.defaultProps={disabled:!0,className:"",style:{}};var sn=tn,nn=te.e=ue},"24YM":function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SensorTabIndex=te.SensorClassName=te.SizeSensorId=void 0;var X="size-sensor-id";te.SizeSensorId=X;var F="size-sensor-object";te.SensorClassName=F;var R="-1";te.SensorTabIndex=R},"24hK":function(ze,te,P){"use strict";P.d(te,"a",function(){return R});var X=P("JYp7"),F=function(){function j(T){this.element=T,this.next=j.Undefined,this.prev=j.Undefined}return j.Undefined=new j(void 0),j}(),R=function(){function j(){this._first=F.Undefined,this._last=F.Undefined,this._size=0}return Object.defineProperty(j.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),j.prototype.isEmpty=function(){return this._first===F.Undefined},j.prototype.clear=function(){this._first=F.Undefined,this._last=F.Undefined,this._size=0},j.prototype.unshift=function(T){return this._insert(T,!1)},j.prototype.push=function(T){return this._insert(T,!0)},j.prototype._insert=function(T,S){var M=this,c=new F(T);if(this._first===F.Undefined)this._first=c,this._last=c;else if(S){var E=this._last;this._last=c,c.prev=E,E.next=c}else{var g=this._first;this._first=c,c.next=g,g.prev=c}this._size+=1;var r=!1;return function(){r||(r=!0,M._remove(c))}},j.prototype.shift=function(){if(this._first===F.Undefined)return;var T=this._first.element;return this._remove(this._first),T},j.prototype.pop=function(){if(this._last===F.Undefined)return;var T=this._last.element;return this._remove(this._last),T},j.prototype._remove=function(T){if(T.prev!==F.Undefined&&T.next!==F.Undefined){var S=T.prev;S.next=T.next,T.next.prev=S}else T.prev===F.Undefined&&T.next===F.Undefined?(this._first=F.Undefined,this._last=F.Undefined):T.next===F.Undefined?(this._last=this._last.prev,this._last.next=F.Undefined):T.prev===F.Undefined&&(this._first=this._first.next,this._first.prev=F.Undefined);this._size-=1},j.prototype.iterator=function(){var T,S=this._first;return{next:function(){return S===F.Undefined?X.c:(T?T.value=S.element:T={done:!1,value:S.element},S=S.next,T)}}},j.prototype.toArray=function(){for(var T=[],S=this._first;S!==F.Undefined;S=S.next)T.push(S.element);return T},j}()},"2DNl":function(ze,te,P){var X=P("IMiH"),F=P("loD1"),R=P("59Ip"),j=P("aKvl"),T=P("n1HI"),S=P("hX1E"),M=S.normalizeRadian,c=P("Sj9i"),E=P("hyiK"),g=X.CMD,r=Math.PI*2,l=1e-4;function b(C,I){return Math.abs(C-I)I&&m>f&&m>i&&m>A||m1&&v(),G=c.cubicAt(I,f,i,A,p[0]),B>1&&(W=c.cubicAt(I,f,i,A,p[1]))),B===2?YI&&A>f&&A>i||A=0&&m<=1){for(var k=0,N=c.quadraticAt(I,f,i,m),B=0;B_||A<-_)return 0;var O=Math.sqrt(_*_-A*A);u[0]=-O,u[1]=O;var m=Math.abs(f-o);if(m<1e-4)return 0;if(m%r<1e-4){f=0,o=r;var k=i?1:-1;return d>=u[0]+C&&d<=u[1]+C?k:0}if(i){var O=f;f=M(o),o=M(O)}else f=M(f),o=M(o);f>o&&(o+=r);for(var N=0,B=0;B<2;B++){var G=u[B];if(G+C>d){var W=Math.atan2(A,G),k=i?1:-1;W<0&&(W=r+W),(W>=f&&W<=o||W+r>=f&&W+r<=o)&&(W>Math.PI/2&&W1&&(_||(i+=E(d,A,O,m,f,o))),k===1&&(d=C[k],A=C[k+1],O=d,m=A);switch(N){case g.M:O=C[k++],m=C[k++],d=O,A=m;break;case g.L:if(_){if(F.containStroke(d,A,C[k],C[k+1],I,f,o))return!0}else i+=E(d,A,C[k],C[k+1],f,o)||0;d=C[k++],A=C[k++];break;case g.C:if(_){if(R.containStroke(d,A,C[k++],C[k++],C[k++],C[k++],C[k],C[k+1],I,f,o))return!0}else i+=a(d,A,C[k++],C[k++],C[k++],C[k++],C[k],C[k+1],f,o)||0;d=C[k++],A=C[k++];break;case g.Q:if(_){if(j.containStroke(d,A,C[k++],C[k++],C[k],C[k+1],I,f,o))return!0}else i+=t(d,A,C[k++],C[k++],C[k],C[k+1],f,o)||0;d=C[k++],A=C[k++];break;case g.A:var B=C[k++],G=C[k++],W=C[k++],z=C[k++],Y=C[k++],V=C[k++];k+=1;var q=1-C[k++],ne=Math.cos(Y)*W+B,ve=Math.sin(Y)*z+G;k>1?i+=E(d,A,ne,ve,f,o):(O=ne,m=ve);var le=(f-B)*z/W+B;if(_){if(T.containStroke(B,G,z,Y,Y+V,q,I,le,o))return!0}else i+=s(B,G,z,Y,Y+V,q,le,o);d=Math.cos(Y+V)*W+B,A=Math.sin(Y+V)*z+G;break;case g.R:O=d=C[k++],m=A=C[k++];var be=C[k++],we=C[k++],ne=O+be,ve=m+we;if(_){if(F.containStroke(O,m,ne,m,I,f,o)||F.containStroke(ne,m,ne,ve,I,f,o)||F.containStroke(ne,ve,O,ve,I,f,o)||F.containStroke(O,ve,O,m,I,f,o))return!0}else i+=E(ne,m,ne,ve,f,o),i+=E(O,ve,O,m,f,o);break;case g.Z:if(_){if(F.containStroke(d,A,O,m,I,f,o))return!0}else i+=E(d,A,O,m,f,o);d=O,A=m;break}}return!_&&!b(A,m)&&(i+=E(d,A,O,m,f,o)||0),i!==0}function y(C,I,_){return h(C,0,!1,I,_)}function D(C,I,_,f){return h(C,I,!0,_,f)}te.contain=y,te.containStroke=D},"2fw6":function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(R,j,T){T&&R.moveTo(j.cx+j.r,j.cy),R.arc(j.cx,j.cy,j.r,0,Math.PI*2,!0)}});ze.exports=F},"3C/r":function(ze,te){var P=function(F,R){this.image=F,this.repeat=R,this.type="pattern"};P.prototype.getCanvasPattern=function(F){return F.createPattern(this.image,this.repeat||"repeat")};var X=P;ze.exports=X},"3CBa":function(ze,te,P){var X=P("hydK"),F=X.createElement,R=P("bYtY"),j=P("SUKs"),T=P("y+Vt"),S=P("Dagg"),M=P("dqUG"),c=P("DBLp"),E=P("sW+o"),g=P("n6Mw"),r=P("vKoX"),l=P("P47w"),b=l.path,u=l.image,p=l.text;function v(o){return parseInt(o,10)}function a(o){return o instanceof T?b:o instanceof S?u:o instanceof M?p:b}function t(o,i){return i&&o&&i.parentNode!==o}function s(o,i,d){if(t(o,i)&&d){var A=d.nextSibling;A?o.insertBefore(i,A):o.appendChild(i)}}function h(o,i){if(t(o,i)){var d=o.firstChild;d?o.insertBefore(i,d):o.appendChild(i)}}function y(o,i){i&&o&&i.parentNode===o&&o.removeChild(i)}function D(o){return o.__textSvgEl}function C(o){return o.__svgEl}var I=function(o,i,d,A){this.root=o,this.storage=i,this._opts=d=R.extend({},d||{});var O=F("svg");O.setAttribute("xmlns","http://www.w3.org/2000/svg"),O.setAttribute("version","1.1"),O.setAttribute("baseProfile","full"),O.style.cssText="user-select:none;position:absolute;left:0;top:0;";var m=F("g");O.appendChild(m);var k=F("g");O.appendChild(k),this.gradientManager=new E(A,k),this.clipPathManager=new g(A,k),this.shadowManager=new r(A,k);var N=document.createElement("div");N.style.cssText="overflow:hidden;position:relative",this._svgDom=O,this._svgRoot=k,this._backgroundRoot=m,this._viewport=N,o.appendChild(N),N.appendChild(O),this.resize(d.width,d.height),this._visibleList=[]};I.prototype={constructor:I,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var i=F("rect");i.setAttribute("width",this.getWidth()),i.setAttribute("height",this.getHeight()),i.setAttribute("x",0),i.setAttribute("y",0),i.setAttribute("id",0),i.style.fill=o,this._backgroundRoot.appendChild(i),this._backgroundNode=i},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var i=this._svgRoot,d=this._visibleList,A=o.length,O=[],m;for(m=0;m=0;--k)if(m[k]===O)return!0;return!1}),d}else return null;else return d[0]},resize:function(o,i){var d=this._viewport;d.style.display="none";var A=this._opts;if(o!=null&&(A.width=o),i!=null&&(A.height=i),o=this._getSize(0),i=this._getSize(1),d.style.display="",this._width!==o||this._height!==i){this._width=o,this._height=i;var O=d.style;O.width=o+"px",O.height=i+"px";var m=this._svgDom;m.setAttribute("width",o),m.setAttribute("height",i)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",i))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var i=this._opts,d=["width","height"][o],A=["clientWidth","clientHeight"][o],O=["paddingLeft","paddingTop"][o],m=["paddingRight","paddingBottom"][o];if(i[d]!=null&&i[d]!=="auto")return parseFloat(i[d]);var k=this.root,N=document.defaultView.getComputedStyle(k);return(k[A]||v(N[d])||v(k.style[d]))-(v(N[O])||0)-(v(N[m])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> -\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function _(o){return function(){j('In SVG mode painter not support method "'+o+'"')}}R.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){I.prototype[o]=_(o)});var f=I;ze.exports=f},"3e3G":function(ze,te,P){var X=P("bYtY"),F=P("QuXc"),R=function(T,S,M,c,E){this.x=T==null?.5:T,this.y=S==null?.5:S,this.r=M==null?.5:M,this.type="radial",this.global=E||!1,F.call(this,c)};R.prototype={constructor:R},X.inherits(R,F);var j=R;ze.exports=j},"3gBT":function(ze,te){var P=2311;function X(){return P++}ze.exports=X},"4fz+":function(ze,te,P){var X=P("bYtY"),F=P("1bdT"),R=P("mFDi"),j=function(S){S=S||{},F.call(this,S);for(var M in S)S.hasOwnProperty(M)&&(this[M]=S[M]);this._children=[],this.__storage=null,this.__dirty=!0};j.prototype={constructor:j,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(S){return this._children[S]},childOfName:function(S){for(var M=this._children,c=0;c=0&&(c.splice(E,0,S),this._doAdd(S))}return this},_doAdd:function(S){S.parent&&S.parent.remove(S),S.parent=this;var M=this.__storage,c=this.__zr;M&&M!==S.__storage&&(M.addToStorage(S),S instanceof j&&S.addChildrenToStorage(M)),c&&c.refresh()},remove:function(S){var M=this.__zr,c=this.__storage,E=this._children,g=X.indexOf(E,S);return g<0?this:(E.splice(g,1),S.parent=null,c&&(c.delFromStorage(S),S instanceof j&&S.delChildrenFromStorage(c)),M&&M.refresh(),this)},removeAll:function(){var S=this._children,M=this.__storage,c,E;for(E=0;E1e-4){_[0]=t-h,_[1]=s-y,f[0]=t+h,f[1]=s+y;return}if(c[0]=S(D)*h+t,c[1]=T(D)*y+s,E[0]=S(C)*h+t,E[1]=T(C)*y+s,o(_,c,E),i(f,c,E),D=D%M,D<0&&(D=D+M),C=C%M,C<0&&(C=C+M),D>C&&!I?C+=M:DD&&(g[0]=S(O)*h+t,g[1]=T(O)*y+s,o(_,g,_),i(f,g,f))}te.fromPoints=r,te.fromLine=l,te.fromCubic=p,te.fromQuadratic=v,te.fromArc=a},"4wi7":function(ze,te,P){"use strict";var X=P("14J3"),F=P("BMrR"),R=P("sRBo"),j=P("kaz8"),T=P("5NDa"),S=P("5rEg"),M=P("9og8"),c=P("tJVT"),E=P("WmNS"),g=P.n(E),r=P("q1tI"),l=P.n(r),b=P("oOBs"),u=P.n(b),p=P("xOL1"),v=P.n(p),a=P("BdwD"),t=function(h){var y=h.data,D=h.value,C=D===void 0?[]:D,I=h.handleChangePage,_=h.setSelectedRowKeys,f=h.selectedRowKeys,o=h.onChange,i=o===void 0?function(){}:o,d=Object(r.useState)([]),A=Object(c.a)(d,2),O=A[0],m=A[1],k=Object(r.useState)([]),N=Object(c.a)(k,2),B=N[0],G=N[1],W=Object(r.useState)([]),z=Object(c.a)(W,2),Y=z[0],V=z[1],q=Object(r.useState)(1),ne=Object(c.a)(q,2),ve=ne[0],le=ne[1],be=Object(r.useState)(),we=Object(c.a)(be,2),Re=we[0],ge=we[1];return Object(r.useEffect)(function(){m(y),G([]),V([])},[y]),Object(r.useEffect)(function(){_&&(G(f),V(f))},[f]),l.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},l.a.createElement("div",{className:u.a.leftdiv},l.a.createElement(S.a.Search,{size:"large",onChange:function(){var fe=Object(M.a)(g.a.mark(function Ze(Ot){return g.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:m(y.filter(function(de){var me;return de==null||((me=de.name)===null||me===void 0)?void 0:me.includes(Ot.target.value)}));case 1:case"end":return ke.stop()}},Ze)}));return function(Ze){return fe.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),O.length===0&&l.a.createElement(a.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),l.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},l.a.createElement(j.a.Group,{value:B.map(function(fe){return"".concat(fe.id)}),onChange:function(Ze){_(O.filter(function(Ot){return Ze.includes("".concat(Ot.id))}))},style:{marginTop:"10px"}},O.map(function(fe,Ze){return l.a.createElement(F.a,{key:fe.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},l.a.createElement(j.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:fe.is_published,value:"".concat(fe.id)},l.a.createElement("div",{className:u.a.listClass},l.a.createElement("span",{className:u.a.spantitle,style:{width:fe.is_published?"108px":"170px"}},fe.name),fe.is_published&&l.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),l.a.createElement("div",{className:u.a.rightdiv},l.a.createElement(S.a.Search,{onChange:function(Ze){V(B.filter(function(Ot){return Ot.name.includes(Ze.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Y.length===0&&l.a.createElement(a.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Y.length>0&&l.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},l.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Y.map(function(fe,Ze){return l.a.createElement(F.a,{justify:"space-between",style:{marginTop:"10px"},key:fe.id},l.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},fe.name),l.a.createElement("img",{src:v.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){_(B.filter(function(Ee){return"".concat(Ee.id)!="".concat(fe.id)}))}}))})))))};te.a=t},"55Ip":function(ze,te,P){"use strict";P.d(te,"a",function(){return s}),P.d(te,"b",function(){return _});var X=P("Ty5D"),F=P("dI71"),R=P("q1tI"),j=P.n(R),T=P("YS25"),S=P("17x9"),M=P.n(S),c=P("wx14"),E=P("zLVn"),g=P("9R94"),r=function(o){Object(F.a)(i,o);function i(){for(var A,O=arguments.length,m=new Array(O),k=0;kj+u&&b>S+u&&b>c+u&&b>g+u||bR+u&&l>T+u&&l>M+u&&l>E+u||l=0||O.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;o.setState({goInputText:""}),N(o.getValidValue())},o.go=function(O){var m=o.state.goInputText;if(m==="")return;(O.keyCode===u.ENTER||O.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(T.a)(f,[{key:"getValidValue",value:function(){var i=this.state,d=i.goInputText,A=i.current;return!d||isNaN(d)?A:Number(d)}},{key:"getPageSizeOptions",value:function(){var i=this.props,d=i.pageSize,A=i.pageSizeOptions;return A.some(function(O){return O.toString()===d.toString()})?A:A.concat([d.toString()]).sort(function(O,m){var k=isNaN(Number(O))?0:Number(O),N=isNaN(Number(m))?0:Number(m);return k-N})}},{key:"render",value:function(){var i=this,d=this.props,A=d.pageSize,O=d.locale,m=d.rootPrefixCls,k=d.changeSize,N=d.quickGo,B=d.goButton,G=d.selectComponentClass,W=d.buildOptionText,z=d.selectPrefixCls,Y=d.disabled,V=this.state.goInputText,q="".concat(m,"-options"),ne=G,ve=null,le=null,be=null;if(!k&&!N)return null;var we=this.getPageSizeOptions();if(k&&ne){var Re=we.map(function(ge,fe){return E.a.createElement(ne.Option,{key:fe,value:ge.toString()},(W||i.buildOptionText)(ge))});ve=E.a.createElement(ne,{disabled:Y,prefixCls:z,showSearch:!1,className:"".concat(q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(A||we[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fe){return fe.parentNode}},Re)}return N&&(B&&(be=typeof B=="boolean"?E.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Y,className:"".concat(q,"-quick-jumper-button")},O.jump_to_confirm):E.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),le=E.a.createElement("div",{className:"".concat(q,"-quick-jumper")},O.jump_to,E.a.createElement("input",{disabled:Y,type:"text",value:V,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),O.page,be)),E.a.createElement("li",{className:"".concat(q)},ve,le)}}]),f}(E.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var v=p,a=P("N2Kk");function t(){}function s(I){return typeof I=="number"&&isFinite(I)&&Math.floor(I)===I}function h(I,_,f){return f}function y(I,_,f){var o=typeof I=="undefined"?_.pageSize:I;return Math.floor((f.total-1)/o)+1}var D=function(I){Object(S.a)(f,I);var _=Object(M.a)(f);function f(o){var i;Object(j.a)(this,f),i=_.call(this,o),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(y(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(k,N){var B=i.props.prefixCls,G=k||E.a.createElement("button",{type:"button","aria-label":N,className:"".concat(B,"-item-link")});return typeof k=="function"&&(G=E.a.createElement(k,Object(R.a)({},i.props))),G},i.savePaginationNode=function(k){i.paginationNode=k},i.isValid=function(k){return s(k)&&k!==i.state.current},i.shouldDisplayQuickJumper=function(){var k=i.props,N=k.showQuickJumper,B=k.pageSize,G=k.total;return G<=B?!1:N},i.handleKeyDown=function(k){(k.keyCode===u.ARROW_UP||k.keyCode===u.ARROW_DOWN)&&k.preventDefault()},i.handleKeyUp=function(k){var N=i.getValidValue(k),B=i.state.currentInputValue;N!==B&&i.setState({currentInputValue:N}),k.keyCode===u.ENTER?i.handleChange(N):k.keyCode===u.ARROW_UP?i.handleChange(N-1):k.keyCode===u.ARROW_DOWN&&i.handleChange(N+1)},i.changePageSize=function(k){var N=i.state.current,B=y(k,i.state,i.props);N=N>B?B:N,B===0&&(N=i.state.current),typeof k=="number"&&("pageSize"in i.props||i.setState({pageSize:k}),"current"in i.props||i.setState({current:N,currentInputValue:N})),i.props.onShowSizeChange(N,k),"onChange"in i.props&&i.props.onChange&&i.props.onChange(N,k)},i.handleChange=function(k){var N=i.props.disabled,B=k;if(i.isValid(B)&&!N){var G=y(void 0,i.state,i.props);B>G?B=G:B<1&&(B=1),"current"in i.props||i.setState({current:B,currentInputValue:B});var W=i.state.pageSize;return i.props.onChange(B,W),B}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?B-2:0),W=2;W=A?m=A:m=Number(d),m}},{key:"getShowSizeChanger",value:function(){var i=this.props,d=i.showSizeChanger,A=i.total,O=i.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:A>O}},{key:"renderPrev",value:function(i){var d=this.props,A=d.prevIcon,O=d.itemRender,m=O(i,"prev",this.getItemIcon(A,"prev page")),k=!this.hasPrev();return Object(c.isValidElement)(m)?Object(c.cloneElement)(m,{disabled:k}):m}},{key:"renderNext",value:function(i){var d=this.props,A=d.nextIcon,O=d.itemRender,m=O(i,"next",this.getItemIcon(A,"next page")),k=!this.hasNext();return Object(c.isValidElement)(m)?Object(c.cloneElement)(m,{disabled:k}):m}},{key:"render",value:function(){var i=this,d=this.props,A=d.prefixCls,O=d.className,m=d.style,k=d.disabled,N=d.hideOnSinglePage,B=d.total,G=d.locale,W=d.showQuickJumper,z=d.showLessItems,Y=d.showTitle,V=d.showTotal,q=d.simple,ne=d.itemRender,ve=d.showPrevNextJumpers,le=d.jumpPrevIcon,be=d.jumpNextIcon,we=d.selectComponentClass,Re=d.selectPrefixCls,ge=d.pageSizeOptions,fe=this.state,Ze=fe.current,Ot=fe.pageSize,Ee=fe.currentInputValue;if(N===!0&&B<=Ot)return null;var ke=y(void 0,this.state,this.props),de=[],me=null,Le=null,rt=null,Oe=null,Ge=null,at=W&&W.goButton,dt=z?1:2,Pt=Ze-1>0?Ze-1:0,bt=Ze+1=dt*2&&Ze!==1+2&&(de[0]=Object(c.cloneElement)(de[0],{className:"".concat(A,"-item-after-jump-prev")}),de.unshift(me)),ke-Ze>=dt*2&&Ze!==ke-2&&(de[de.length-1]=Object(c.cloneElement)(de[de.length-1],{className:"".concat(A,"-item-before-jump-next")}),de.push(Le)),ot!==1&&de.unshift(rt),Et!==ke&&de.push(Oe)}var Me=null;V&&(Me=E.a.createElement("li",{className:"".concat(A,"-total-text")},V(B,[B===0?0:(Ze-1)*Ot+1,Ze*Ot>B?B:Ze*Ot])));var xe=!this.hasPrev()||!ke,Te=!this.hasNext()||!ke;return E.a.createElement("ul",Object(X.a)({className:r()(A,O,Object(F.a)({},"".concat(A,"-disabled"),k)),style:m,unselectable:"unselectable",ref:this.savePaginationNode},zt),Me,E.a.createElement("li",{title:Y?G.prev_page:null,onClick:this.prev,tabIndex:xe?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(A,"-prev"),Object(F.a)({},"".concat(A,"-disabled"),xe)),"aria-disabled":xe},this.renderPrev(Pt)),de,E.a.createElement("li",{title:Y?G.next_page:null,onClick:this.next,tabIndex:Te?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(A,"-next"),Object(F.a)({},"".concat(A,"-disabled"),Te)),"aria-disabled":Te},this.renderNext(bt)),E.a.createElement(v,{disabled:k,locale:G,rootPrefixCls:A,selectComponentClass:we,selectPrefixCls:Re,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ze,pageSize:Ot,pageSizeOptions:ge,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:at}))}}],[{key:"getDerivedStateFromProps",value:function(i,d){var A={};if("current"in i&&(A.current=i.current,i.current!==d.current&&(A.currentInputValue=A.current)),"pageSize"in i&&i.pageSize!==d.pageSize){var O=d.current,m=y(i.pageSize,d,i);O=O>m?m:O,"current"in i||(A.current=O,A.currentInputValue=O),A.pageSize=i.pageSize}return A}}]),f}(E.a.Component);D.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:t,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:t,locale:a.a,style:{},itemRender:h,totalBoundaryShowSizeChanger:50};var C=D},"6GrX":function(ze,te,P){var X=P("mFDi"),F=P("Xnb7"),R=P("bYtY"),j=R.getContext,T=R.extend,S=R.retrieve2,M=R.retrieve3,c=R.trim,E={},g=0,r=5e3,l=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,b="12px sans-serif",u={};function p(N,B){u[N]=B}function v(N,B){B=B||b;var G=N+":"+B;if(E[G])return E[G];for(var W=(N+"").split(` +`+l.stack):l},0)}}return r.prototype.emit=function(l){this.listeners.forEach(function(b){b(l)})},r.prototype.onUnexpectedError=function(l){this.unexpectedErrorHandler(l),this.emit(l)},r.prototype.onUnexpectedExternalError=function(l){this.unexpectedErrorHandler(l)},r}(),F=new X;function R(r){M(r)||F.onUnexpectedError(r);return}function j(r){M(r)||F.onUnexpectedExternalError(r);return}function T(r){if(r instanceof Error){var l=r.name,b=r.message,u=r.stacktrace||r.stack;return{$isError:!0,name:l,message:b,stack:u}}return r}var S="Canceled";function M(r){return r instanceof Error&&r.name===S&&r.message===S}function c(){var r=new Error(S);return r.name=r.message,r}function E(r){return r?new Error("Illegal argument: "+r):new Error("Illegal argument")}function g(r){return r?new Error("Illegal state: "+r):new Error("Illegal state")}},"06Qe":function(ze,te,P){var X=P("ItGF"),F="urn:schemas-microsoft-com:vml",R=typeof window=="undefined"?null:window,j=!1,T=R&&R.document;function S(E){return M(E)}var M;if(T&&!X.canvasSupported)try{!T.namespaces.zrvml&&T.namespaces.add("zrvml",F),M=function(E){return T.createElement("')}}catch(E){M=function(g){return T.createElement("<"+g+' xmlns="'+F+'" class="zrvml">')}}function c(){if(j||!T)return;j=!0;var E=T.styleSheets;E.length<31?T.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):E[0].addRule(".zrvml","behavior:url(#default#VML)")}te.doc=T,te.createNode=S,te.initVML=c},"0s+r":function(ze,te,P){var X=P("bYtY"),F=P("QBsz"),R=P("y23F"),j=P("H6uX"),T=P("YH21"),S=P("C0SR"),M="silent";function c(v,a,t){return{type:v,event:t,target:a.target,topTarget:a.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:E}}function E(){T.stop(this.event)}function g(){}g.prototype.dispose=function(){};var r=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],l=function(v,a,t,s){j.call(this),this.storage=v,this.painter=a,this.painterRoot=s,t=t||new g,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,R.call(this),this.setHandlerProxy(t)};l.prototype={constructor:l,setHandlerProxy:function(v){this.proxy&&this.proxy.dispose(),v&&(X.each(r,function(a){v.on&&v.on(a,this[a],this)},this),v.handler=this),this.proxy=v},mousemove:function(v){var a=v.zrX,t=v.zrY,s=u(this,a,t),h=this._hovered,y=h.target;y&&!y.__zr&&(h=this.findHover(h.x,h.y),y=h.target);var D=this._hovered=s?{x:a,y:t}:this.findHover(a,t),C=D.target,I=this.proxy;I.setCursor&&I.setCursor(C?C.cursor:"default"),y&&C!==y&&this.dispatchToElement(h,"mouseout",v),this.dispatchToElement(D,"mousemove",v),C&&C!==y&&this.dispatchToElement(D,"mouseover",v)},mouseout:function(v){var a=v.zrEventControl,t=v.zrIsToLocalDOM;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",v),a!=="no_globalout"&&(!t&&this.trigger("globalout",{type:"globalout",event:v}))},resize:function(v){this._hovered={}},dispatch:function(v,a){var t=this[v];t&&t.call(this,a)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(v){var a=this.proxy;a.setCursor&&a.setCursor(v)},dispatchToElement:function(v,a,t){v=v||{};var s=v.target;if(s&&s.silent)return;for(var h="on"+a,y=c(a,v,t);s&&!(s[h]&&(y.cancelBubble=s[h].call(s,y)),s.trigger(a,y),s=s.parent,y.cancelBubble););y.cancelBubble||(this.trigger(a,y),this.painter&&this.painter.eachOtherLayer(function(D){typeof D[h]=="function"&&D[h].call(D,y),D.trigger&&D.trigger(a,y)}))},findHover:function(v,a,t){for(var s=this.storage.getDisplayList(),h={x:v,y:a},y=s.length-1;y>=0;y--){var D;if(s[y]!==t&&!s[y].ignore&&(D=b(s[y],v,a))&&(!h.topTarget&&(h.topTarget=s[y]),D!==M)){h.target=s[y];break}}return h},processGesture:function(v,a){this._gestureMgr||(this._gestureMgr=new S);var t=this._gestureMgr;a==="start"&&t.clear();var s=t.recognize(v,this.findHover(v.zrX,v.zrY,null).target,this.proxy.dom);if(a==="end"&&t.clear(),s){var h=s.type;v.gestureEvent=h,this.dispatchToElement({target:s.target},h,s.event)}}},X.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(v){l.prototype[v]=function(a){var t=a.zrX,s=a.zrY,h=u(this,t,s),y,D;if((v!=="mouseup"||!h)&&(y=this.findHover(t,s),D=y.target),v==="mousedown")this._downEl=D,this._downPoint=[a.zrX,a.zrY],this._upEl=D;else if(v==="mouseup")this._upEl=D;else if(v==="click"){if(this._downEl!==this._upEl||!this._downPoint||F.dist(this._downPoint,[a.zrX,a.zrY])>4)return;this._downPoint=null}this.dispatchToElement(y,v,a)}});function b(v,a,t){if(v[v.rectHover?"rectContain":"contain"](a,t)){for(var s=v,h;s;){if(s.clipPath&&!s.clipPath.contain(a,t))return!1;s.silent&&(h=!0),s=s.parent}return h?M:!0}return!1}function u(v,a,t){var s=v.painter;return a<0||a>s.getWidth()||t<0||t>s.getHeight()}X.mixin(l,j),X.mixin(l,R);var p=l;ze.exports=p},"19Vz":function(ze,te,P){(function(X){X(P("VrN/"))})(function(X){X.defineOption("placeholder","",function(c,E,g){var r=g&&g!=X.Init;if(E&&!r)c.on("blur",T),c.on("change",S),c.on("swapDoc",S),X.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){j(c)}),S(c);else if(!E&&r){c.off("blur",T),c.off("change",S),c.off("swapDoc",S),X.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),F(c);var l=c.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}E&&!c.hasFocus()&&T(c)});function F(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function R(c){F(c);var E=c.state.placeholder=document.createElement("pre");E.style.cssText="height: 0; overflow: visible",E.style.direction=c.getOption("direction"),E.className="CodeMirror-placeholder CodeMirror-line-like";var g=c.getOption("placeholder");typeof g=="string"&&(g=document.createTextNode(g)),E.appendChild(g),c.display.lineSpace.insertBefore(E,c.display.lineSpace.firstChild)}function j(c){setTimeout(function(){var E=!1,g=c.getInputField();g.nodeName=="TEXTAREA"?E=!g.value:c.lineCount()==1&&(E=!/[^\u200b]/.test(g.querySelector(".CodeMirror-line").textContent)),E?R(c):F(c)},20)}function T(c){M(c)&&R(c)}function S(c){var E=c.getWrapperElement(),g=M(c);E.className=E.className.replace(" CodeMirror-empty","")+(g?" CodeMirror-empty":""),g?R(c):F(c)}function M(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(ze,te,P){var X=P("y+Vt"),F=P("T6xi"),R=X.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(j,T){F.buildPath(j,T,!1)}});ze.exports=R},"1MYJ":function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var R=this.__dirtyPath,j=this.shape.paths,T=0;T=this._maxSize&&r>0){var b=c.head;c.remove(b),delete E[b.key],g=b.value,this._lastRemovedEntry=b}l?l.value=M:l=new F(M),l.key=S,c.insertEntry(l),E[S]=l}return g},j.get=function(S){var M=this._map[S],c=this._list;if(M!=null)return M!==c.tail&&(c.remove(M),c.insertEntry(M)),M.value},j.clear=function(){this._list.clear(),this._map={}};var T=R;ze.exports=T},"1ZF9":function(ze,te,P){ze.exports=P.p+"static/Authorize.cc9c212f.png"},"1bdT":function(ze,te,P){var X=P("3gBT"),F=P("H6uX"),R=P("DN4a"),j=P("vWvF"),T=P("bYtY"),S=function(c){R.call(this,c),F.call(this,c),j.call(this,c),this.id=c.id||X()};S.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(c,E){switch(this.draggable){case"horizontal":E=0;break;case"vertical":c=0;break}var g=this.transform;g||(g=this.transform=[1,0,0,1,0,0]),g[4]+=c,g[5]+=E,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(c,E){},attrKV:function(c,E){if(c==="position"||c==="scale"||c==="origin"){if(E){var g=this[c];g||(g=this[c]=[]),g[0]=E[0],g[1]=E[1]}}else this[c]=E},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(c,E){if(typeof c=="string")this.attrKV(c,E);else if(T.isObject(c))for(var g in c)c.hasOwnProperty(g)&&this.attrKV(g,c[g]);return this.dirty(!1),this},setClipPath:function(c){var E=this.__zr;E&&c.addSelfToZr(E),this.clipPath&&this.clipPath!==c&&this.removeClipPath(),this.clipPath=c,c.__zr=E,c.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var c=this.clipPath;c&&(c.__zr&&c.removeSelfFromZr(c.__zr),c.__zr=null,c.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(c){this.__zr=c;var E=this.animators;if(E)for(var g=0;g")):null:d.match("--")?O(p("comment","-->")):d.match("DOCTYPE",!0,!0)?(d.eatWhile(/[\w\._\-]/),O(v(1))):null:d.eat("?")?(d.eatWhile(/[\w\._\-]/),A.tokenize=p("meta","?>"),"meta"):(g=d.eat("/")?"closeTag":"openTag",A.tokenize=b,"tag bracket");if(m=="&"){var k;return d.eat("#")?d.eat("x")?k=d.eatWhile(/[a-fA-F\d]/)&&d.eat(";"):k=d.eatWhile(/[\d]/)&&d.eat(";"):k=d.eatWhile(/[\w\.\-:]/)&&d.eat(";"),k?"atom":"error"}else return d.eatWhile(/[^&<]/),null}l.isInText=!0;function b(d,A){var O=d.next();if(O==">"||O=="/"&&d.eat(">"))return A.tokenize=l,g=O==">"?"endTag":"selfcloseTag","tag bracket";if(O=="=")return g="equals",null;if(O=="<"){A.tokenize=l,A.state=h,A.tagName=A.tagStart=null;var m=A.tokenize(d,A);return m?m+" tag error":"tag error"}else return/[\'\"]/.test(O)?(A.tokenize=u(O),A.stringStartCol=d.column(),A.tokenize(d,A)):(d.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(d){var A=function(O,m){for(;!O.eol();)if(O.next()==d){m.tokenize=b;break}return"string"};return A.isInAttribute=!0,A}function p(d,A){return function(O,m){for(;!O.eol();){if(O.match(A)){m.tokenize=l;break}O.next()}return d}}function v(d){return function(A,O){for(var m;(m=A.next())!=null;){if(m=="<")return O.tokenize=v(d+1),O.tokenize(A,O);if(m==">")if(d==1){O.tokenize=l;break}else return O.tokenize=v(d-1),O.tokenize(A,O)}return"meta"}}function a(d,A,O){this.prev=d.context,this.tagName=A,this.indent=d.indented,this.startOfLine=O,(M.doNotIndent.hasOwnProperty(A)||d.context&&d.context.noIndent)&&(this.noIndent=!0)}function t(d){d.context&&(d.context=d.context.prev)}function s(d,A){for(var O;;){if(!d.context)return;if(O=d.context.tagName,!M.contextGrabbers.hasOwnProperty(O)||!M.contextGrabbers[O].hasOwnProperty(A))return;t(d)}}function h(d,A,O){return d=="openTag"?(O.tagStart=A.column(),y):d=="closeTag"?D:h}function y(d,A,O){return d=="word"?(O.tagName=A.current(),r="tag",_):M.allowMissingTagName&&d=="endTag"?(r="tag bracket",_(d,A,O)):(r="error",y)}function D(d,A,O){if(d=="word"){var m=A.current();return O.context&&O.context.tagName!=m&&M.implicitlyClosed.hasOwnProperty(O.context.tagName)&&t(O),O.context&&O.context.tagName==m||M.matchClosing===!1?(r="tag",C):(r="tag error",I)}else return M.allowMissingTagName&&d=="endTag"?(r="tag bracket",C(d,A,O)):(r="error",I)}function C(d,A,O){return d!="endTag"?(r="error",C):(t(O),h)}function I(d,A,O){return r="error",C(d,A,O)}function _(d,A,O){if(d=="word")return r="attribute",f;if(d=="endTag"||d=="selfcloseTag"){var m=O.tagName,k=O.tagStart;return O.tagName=O.tagStart=null,d=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(m)?s(O,m):(s(O,m),O.context=new a(O,m,k==O.indented)),h}return r="error",_}function f(d,A,O){return d=="equals"?o:(M.allowMissing||(r="error"),_(d,A,O))}function o(d,A,O){return d=="string"?i:d=="word"&&M.allowUnquoted?(r="string",_):(r="error",_(d,A,O))}function i(d,A,O){return d=="string"?i:_(d,A,O)}return{startState:function(d){var A={tokenize:l,state:h,indented:d||0,tagName:null,tagStart:null,context:null};return d!=null&&(A.baseIndent=d),A},token:function(d,A){if(!A.tagName&&d.sol()&&(A.indented=d.indentation()),d.eatSpace())return null;g=null;var O=A.tokenize(d,A);return(O||g)&&O!="comment"&&(r=null,A.state=A.state(g||O,d,A),r&&(O=r=="error"?O+" error":r)),O},indent:function(d,A,O){var m=d.context;if(d.tokenize.isInAttribute)return d.tagStart==d.indented?d.stringStartCol+1:d.indented+S;if(m&&m.noIndent)return X.Pass;if(d.tokenize!=b&&d.tokenize!=l)return O?O.match(/^(\s*)/)[0].length:0;if(d.tagName)return M.multilineTagIndentPastTag!==!1?d.tagStart+d.tagName.length+2:d.tagStart+S*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(d){d.state==o&&(d.state=_)},xmlCurrentTag:function(d){return d.tagName?{name:d.tagName,close:d.type=="closeTag"}:null},xmlCurrentContext:function(d){for(var A=[],O=d.context;O;O=O.prev)O.tagName&&A.push(O.tagName);return A.reverse()}}}),X.defineMIME("text/xml","xml"),X.defineMIME("application/xml","xml"),X.mimeModes.hasOwnProperty("text/html")||X.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(ze,te,P){"use strict";P.d(te,"d",function(){return Rt}),P.d(te,"b",function(){return Ye}),P.d(te,"c",function(){return Mt}),P.d(te,"a",function(){return sn});var X=P("VTBJ"),F=P("1OyB"),R=P("vuIU"),j=P("JX7q"),T=P("Ji7U"),S=P("LK+K"),M=P("q1tI"),c=P("I8Z2"),E=P("BGR+"),g=P("wx14"),r=P("rePB"),l=P("4IlW"),b=P("2GS6"),u=P("Gytx"),p=P.n(u),v=P("TSYQ"),a=P.n(v),t=P("U8pU"),s=P("ODXe"),h=/iPhone/i,y=/iPod/i,D=/iPad/i,C=/\bAndroid(?:.+)Mobile\b/i,I=/Android/i,_=/\bAndroid(?:.+)SD4930UR\b/i,f=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,o=/Windows Phone/i,i=/\bWindows(?:.+)ARM\b/i,d=/BlackBerry/i,A=/BB10/i,O=/Opera Mini/i,m=/\b(CriOS|Chrome)(?:.+)Mobile/i,k=/Mobile(?:.+)Firefox\b/i;function N(rn,St){return rn.test(St)}function B(rn){var St=rn||(typeof navigator!="undefined"?navigator.userAgent:""),Tt=St.split("[FBAN");if(typeof Tt[1]!="undefined"){var ct=Tt,ye=Object(s.a)(ct,1);St=ye[0]}if(Tt=St.split("Twitter"),typeof Tt[1]!="undefined"){var Pe=Tt,Pt=Object(s.a)(Pe,1);St=Pt[0]}var pt={apple:{phone:N(h,St)&&!N(o,St),ipod:N(y,St),tablet:!N(h,St)&&N(D,St)&&!N(o,St),device:(N(h,St)||N(y,St)||N(D,St))&&!N(o,St)},amazon:{phone:N(_,St),tablet:!N(_,St)&&N(f,St),device:N(_,St)||N(f,St)},android:{phone:!N(o,St)&&N(_,St)||!N(o,St)&&N(C,St),tablet:!N(o,St)&&!N(_,St)&&!N(C,St)&&(N(f,St)||N(I,St)),device:!N(o,St)&&(N(_,St)||N(f,St)||N(C,St)||N(I,St))||N(/\bokhttp\b/i,St)},windows:{phone:N(o,St),tablet:N(i,St),device:N(o,St)||N(i,St)},other:{blackberry:N(d,St),blackberry10:N(A,St),opera:N(O,St),firefox:N(k,St),chrome:N(m,St),device:N(d,St)||N(A,St)||N(O,St)||N(k,St)||N(m,St)},any:null,phone:null,tablet:null};return pt.any=pt.apple.device||pt.android.device||pt.windows.device||pt.other.device,pt.phone=pt.apple.phone||pt.android.phone||pt.windows.phone,pt.tablet=pt.apple.tablet||pt.android.tablet||pt.windows.tablet,pt}var G=Object(X.a)(Object(X.a)({},B()),{},{isMobile:B}),W=G;function z(){}function Y(rn,St,Tt){var ct=St||"";return rn.key||"".concat(ct,"item_").concat(Tt)}function V(rn){return"".concat(rn,"-menu-")}function q(rn,St){var Tt=-1;M.Children.forEach(rn,function(ct){Tt+=1,ct&&ct.type&&ct.type.isMenuItemGroup?M.Children.forEach(ct.props.children,function(ye){Tt+=1,St(ye,Tt)}):St(ct,Tt)})}function ne(rn,St,Tt){if(!rn||Tt.find)return;M.Children.forEach(rn,function(ct){if(ct){var ye=ct.type;if(!ye||!(ye.isSubMenu||ye.isMenuItem||ye.isMenuItemGroup))return;St.indexOf(ct.key)!==-1?Tt.find=!0:ct.props.children&&ne(ct.props.children,St,Tt)}})}var ve=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],le=function(St){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=St&&typeof St.getBoundingClientRect=="function"&&St.getBoundingClientRect().width;if(ct){if(Tt){var ye=getComputedStyle(St),Pe=ye.marginLeft,Pt=ye.marginRight;ct+=+Pe.replace("px","")+ +Pt.replace("px","")}ct=+ct.toFixed(6)}return ct||0},be=function(St,Tt,ct){St&&Object(t.a)(St.style)==="object"&&(St.style[Tt]=ct)},we=function(){return W.any},Re=P("KQm4"),ge=P("Ff2n"),fe=P("i8i4"),Ze=P("bdgK"),Ot=P("uciX"),Ee=P("8XRh"),ke={adjustX:1,adjustY:1},de={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},me={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},Le=de,rt=0,Oe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ge=function(St,Tt,ct){var ye=V(Tt),Pe=St.getState();St.setState({defaultActiveFirst:Object(X.a)(Object(X.a)({},Pe.defaultActiveFirst),{},Object(r.a)({},ye,ct))})},at=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(ct){var ye;Object(F.a)(this,Tt),ye=St.call(this,ct),ye.onDestroy=function(st){ye.props.onDestroy(st)},ye.onKeyDown=function(st){var xt=st.keyCode,Nt=ye.menuInstance,yn=ye.props,Mn=yn.isOpen,hr=yn.store;if(xt===l.a.ENTER)return ye.onTitleClick(st),Ge(hr,ye.props.eventKey,!0),!0;if(xt===l.a.RIGHT)return Mn?Nt.onKeyDown(st):(ye.triggerOpenChange(!0),Ge(hr,ye.props.eventKey,!0)),!0;if(xt===l.a.LEFT){var yr;if(Mn)yr=Nt.onKeyDown(st);else return;return yr||(ye.triggerOpenChange(!1),yr=!0),yr}return Mn&&(xt===l.a.UP||xt===l.a.DOWN)?Nt.onKeyDown(st):void 0},ye.onOpenChange=function(st){ye.props.onOpenChange(st)},ye.onPopupVisibleChange=function(st){ye.triggerOpenChange(st,st?"mouseenter":"mouseleave")},ye.onMouseEnter=function(st){var xt=ye.props,Nt=xt.eventKey,yn=xt.onMouseEnter,Mn=xt.store;Ge(Mn,ye.props.eventKey,!1),yn({key:Nt,domEvent:st})},ye.onMouseLeave=function(st){var xt=ye.props,Nt=xt.parentMenu,yn=xt.eventKey,Mn=xt.onMouseLeave;Nt.subMenuInstance=Object(j.a)(ye),Mn({key:yn,domEvent:st})},ye.onTitleMouseEnter=function(st){var xt=ye.props,Nt=xt.eventKey,yn=xt.onItemHover,Mn=xt.onTitleMouseEnter;yn({key:Nt,hover:!0}),Mn({key:Nt,domEvent:st})},ye.onTitleMouseLeave=function(st){var xt=ye.props,Nt=xt.parentMenu,yn=xt.eventKey,Mn=xt.onItemHover,hr=xt.onTitleMouseLeave;Nt.subMenuInstance=Object(j.a)(ye),Mn({key:yn,hover:!1}),hr({key:yn,domEvent:st})},ye.onTitleClick=function(st){var xt=Object(j.a)(ye),Nt=xt.props;if(Nt.onTitleClick({key:Nt.eventKey,domEvent:st}),Nt.triggerSubMenuAction==="hover")return;ye.triggerOpenChange(!Nt.isOpen,"click"),Ge(Nt.store,ye.props.eventKey,!1)},ye.onSubMenuClick=function(st){typeof ye.props.onClick=="function"&&ye.props.onClick(ye.addKeyPath(st))},ye.onSelect=function(st){ye.props.onSelect(st)},ye.onDeselect=function(st){ye.props.onDeselect(st)},ye.getPrefixCls=function(){return"".concat(ye.props.rootPrefixCls,"-submenu")},ye.getActiveClassName=function(){return"".concat(ye.getPrefixCls(),"-active")},ye.getDisabledClassName=function(){return"".concat(ye.getPrefixCls(),"-disabled")},ye.getSelectedClassName=function(){return"".concat(ye.getPrefixCls(),"-selected")},ye.getOpenClassName=function(){return"".concat(ye.props.rootPrefixCls,"-submenu-open")},ye.saveMenuInstance=function(st){ye.menuInstance=st},ye.addKeyPath=function(st){return Object(X.a)(Object(X.a)({},st),{},{keyPath:(st.keyPath||[]).concat(ye.props.eventKey)})},ye.triggerOpenChange=function(st,xt){var Nt=ye.props.eventKey,yn=function(){ye.onOpenChange({key:Nt,item:Object(j.a)(ye),trigger:xt,open:st})};xt==="mouseenter"?ye.mouseenterTimeout=setTimeout(function(){yn()},0):yn()},ye.isChildrenSelected=function(){var st={find:!1};return ne(ye.props.children,ye.props.selectedKeys,st),st.find},ye.isOpen=function(){return ye.props.openKeys.indexOf(ye.props.eventKey)!==-1},ye.adjustWidth=function(){if(!ye.subMenuTitle||!ye.menuInstance)return;var st=fe.findDOMNode(ye.menuInstance);if(st.offsetWidth>=ye.subMenuTitle.offsetWidth)return;st.style.minWidth="".concat(ye.subMenuTitle.offsetWidth,"px")},ye.saveSubMenuTitle=function(st){ye.subMenuTitle=st},ye.getBaseProps=function(){var st=Object(j.a)(ye),xt=st.props;return{mode:xt.mode==="horizontal"?"vertical":xt.mode,visible:ye.props.isOpen,level:xt.level+1,inlineIndent:xt.inlineIndent,focusable:!1,onClick:ye.onSubMenuClick,onSelect:ye.onSelect,onDeselect:ye.onDeselect,onDestroy:ye.onDestroy,selectedKeys:xt.selectedKeys,eventKey:"".concat(xt.eventKey,"-menu-"),openKeys:xt.openKeys,motion:xt.motion,onOpenChange:ye.onOpenChange,subMenuOpenDelay:xt.subMenuOpenDelay,parentMenu:Object(j.a)(ye),subMenuCloseDelay:xt.subMenuCloseDelay,forceSubMenuRender:xt.forceSubMenuRender,triggerSubMenuAction:xt.triggerSubMenuAction,builtinPlacements:xt.builtinPlacements,defaultActiveFirst:xt.store.getState().defaultActiveFirst[V(xt.eventKey)],multiple:xt.multiple,prefixCls:xt.rootPrefixCls,id:ye.internalMenuId,manualRef:ye.saveMenuInstance,itemIcon:xt.itemIcon,expandIcon:xt.expandIcon,direction:xt.direction}},ye.getMotion=function(st,xt){var Nt=Object(j.a)(ye),yn=Nt.haveRendered,Mn=ye.props,hr=Mn.motion,yr=Mn.rootPrefixCls,lr=Object(X.a)(Object(X.a)({},hr),{},{leavedClassName:"".concat(yr,"-hidden"),removeOnLeave:!1,motionAppear:yn||!xt||st!=="inline"});return lr};var Pe=ct.store,Pt=ct.eventKey,pt=Pe.getState(),en=pt.defaultActiveFirst;ye.isRootMenu=!1;var an=!1;return en&&(an=en[Pt]),Ge(Pe,Pt,an),ye}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ye=this,Pe=this.props,Pt=Pe.mode,pt=Pe.parentMenu,en=Pe.manualRef;if(en&&en(this),Pt!=="horizontal"||!pt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ye.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ye=this.props,Pe=ye.onDestroy,Pt=ye.eventKey;Pe&&Pe(Pt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ye){var Pe=this,Pt=this.getBaseProps(),pt=this.getMotion(Pt.mode,Pt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Pt.visible||Pt.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var en=Pt.direction;return M.createElement(Ee.default,Object.assign({visible:Pt.visible},pt),function(an){var st=an.className,xt=an.style,Nt=a()("".concat(Pt.prefixCls,"-sub"),st,Object(r.a)({},"".concat(Pt.prefixCls,"-rtl"),en==="rtl"));return M.createElement(Me,Object.assign({},Pt,{id:Pe.internalMenuId,className:Nt,style:xt}),ye)})}},{key:"render",value:function(){var ye,Pe=Object(X.a)({},this.props),Pt=Pe.isOpen,pt=this.getPrefixCls(),en=Pe.mode==="inline",an=a()(pt,"".concat(pt,"-").concat(Pe.mode),(ye={},Object(r.a)(ye,Pe.className,!!Pe.className),Object(r.a)(ye,this.getOpenClassName(),Pt),Object(r.a)(ye,this.getActiveClassName(),Pe.active||Pt&&!en),Object(r.a)(ye,this.getDisabledClassName(),Pe.disabled),Object(r.a)(ye,this.getSelectedClassName(),this.isChildrenSelected()),ye));this.internalMenuId||(Pe.eventKey?this.internalMenuId="".concat(Pe.eventKey,"$Menu"):(rt+=1,this.internalMenuId="$__$".concat(rt,"$Menu")));var st={},xt={},Nt={};Pe.disabled||(st={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},xt={onClick:this.onTitleClick},Nt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var yn={},Mn=Pe.direction;en&&(Mn==="rtl"?yn.paddingRight=Pe.inlineIndent*Pe.level:yn.paddingLeft=Pe.inlineIndent*Pe.level);var hr={};this.props.isOpen&&(hr={"aria-owns":this.internalMenuId});var yr=null;Pe.mode!=="horizontal"&&(yr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(yr=M.createElement(this.props.expandIcon,Object(X.a)({},this.props))));var lr=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:yn,className:"".concat(pt,"-title"),role:"button"},Nt,xt,{"aria-expanded":Pt},hr,{"aria-haspopup":"true",title:typeof Pe.title=="string"?Pe.title:void 0}),Pe.title,yr||M.createElement("i",{className:"".concat(pt,"-arrow")})),kn=this.renderChildren(Pe.children),Wr=Pe.parentMenu.isRootMenu?Pe.parentMenu.props.getPopupContainer:function(Cr){return Cr.parentNode},ea=Oe[Pe.mode],Pr=Pe.popupOffset?{offset:Pe.popupOffset}:{},mr=Pe.mode==="inline"?"":Pe.popupClassName;mr+=Mn==="rtl"?" ".concat(pt,"-rtl"):"";var Fr=Pe.disabled,ta=Pe.triggerSubMenuAction,ca=Pe.subMenuOpenDelay,Zt=Pe.forceSubMenuRender,In=Pe.subMenuCloseDelay,fr=Pe.builtinPlacements;ve.forEach(function(Cr){return delete Pe[Cr]}),delete Pe.onClick;var Dr=Mn==="rtl"?Object.assign({},me,fr):Object.assign({},de,fr);return delete Pe.direction,M.createElement("li",Object.assign({},Pe,st,{className:an,role:"menuitem"}),en&&lr,en&&kn,!en&&M.createElement(Ot.a,{prefixCls:pt,popupClassName:a()("".concat(pt,"-popup"),mr),getPopupContainer:Wr,builtinPlacements:Dr,popupPlacement:ea,popupVisible:Pt,popupAlign:Pr,popup:kn,action:Fr?[]:[ta],mouseEnterDelay:ca,mouseLeaveDelay:In,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Zt},lr))}}]),Tt}(M.Component);at.defaultProps={onMouseEnter:z,onMouseLeave:z,onTitleMouseEnter:z,onTitleMouseLeave:z,onTitleClick:z,manualRef:z,mode:"vertical",title:""};var dt=Object(c.b)(function(rn,St){var Tt=rn.openKeys,ct=rn.activeKey,ye=rn.selectedKeys,Pe=St.eventKey,Pt=St.subMenuKey;return{isOpen:Tt.indexOf(Pe)>-1,active:ct[Pt]===Pe,selectedKeys:ye}})(at);dt.isSubMenu=!0;var Rt=dt,bt="menuitem-overflowed",Kt=.5,Lt=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(){var ct;return Object(F.a)(this,Tt),ct=St.apply(this,arguments),ct.resizeObserver=null,ct.mutationObserver=null,ct.originalTotalWidth=0,ct.overflowedItems=[],ct.menuItemSizes=[],ct.cancelFrameId=null,ct.state={lastVisibleIndex:void 0},ct.getMenuItemNodes=function(){var ye=ct.props.prefixCls,Pe=fe.findDOMNode(Object(j.a)(ct));return Pe?[].slice.call(Pe.children).filter(function(Pt){return Pt.className.split(" ").indexOf("".concat(ye,"-overflowed-submenu"))<0}):[]},ct.getOverflowedSubMenuItem=function(ye,Pe,Pt){var pt=ct.props,en=pt.overflowedIndicator,an=pt.level,st=pt.mode,xt=pt.prefixCls,Nt=pt.theme;if(an!==1||st!=="horizontal")return null;var yn=ct.props.children[0],Mn=yn.props,hr=Mn.children,yr=Mn.title,lr=Mn.style,kn=Object(ge.a)(Mn,["children","title","style"]),Wr=Object(X.a)({},lr),ea="".concat(ye,"-overflowed-indicator"),Pr="".concat(ye,"-overflowed-indicator");Pe.length===0&&Pt!==!0?Wr=Object(X.a)(Object(X.a)({},Wr),{},{display:"none"}):Pt&&(Wr=Object(X.a)(Object(X.a)({},Wr),{},{visibility:"hidden",position:"absolute"}),ea="".concat(ea,"-placeholder"),Pr="".concat(Pr,"-placeholder"));var mr=Nt?"".concat(xt,"-").concat(Nt):"",Fr={};return ve.forEach(function(ta){kn[ta]!==void 0&&(Fr[ta]=kn[ta])}),M.createElement(Rt,Object.assign({title:en,className:"".concat(xt,"-overflowed-submenu"),popupClassName:mr},Fr,{key:ea,eventKey:Pr,disabled:!1,style:Wr}),Pe)},ct.setChildrenWidthAndResize=function(){if(ct.props.mode!=="horizontal")return;var ye=fe.findDOMNode(Object(j.a)(ct));if(!ye)return;var Pe=ye.children;if(!Pe||Pe.length===0)return;var Pt=ye.children[Pe.length-1];be(Pt,"display","inline-block");var pt=ct.getMenuItemNodes(),en=pt.filter(function(an){return an.className.split(" ").indexOf(bt)>=0});en.forEach(function(an){be(an,"display","inline-block")}),ct.menuItemSizes=pt.map(function(an){return le(an,!0)}),en.forEach(function(an){be(an,"display","none")}),ct.overflowedIndicatorWidth=le(ye.children[ye.children.length-1],!0),ct.originalTotalWidth=ct.menuItemSizes.reduce(function(an,st){return an+st},0),ct.handleResize(),be(Pt,"display","none")},ct.handleResize=function(){if(ct.props.mode!=="horizontal")return;var ye=fe.findDOMNode(Object(j.a)(ct));if(!ye)return;var Pe=le(ye);ct.overflowedItems=[];var Pt=0,pt;ct.originalTotalWidth>Pe+Kt&&(pt=-1,ct.menuItemSizes.forEach(function(en){Pt+=en,Pt+ct.overflowedIndicatorWidth<=Pe&&(pt+=1)})),ct.setState({lastVisibleIndex:pt})},ct}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){var ye=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Pe=fe.findDOMNode(this);if(!Pe)return;this.resizeObserver=new Ze.default(function(Pt){Pt.forEach(function(){var pt=ye.cancelFrameId;cancelAnimationFrame(pt),ye.cancelFrameId=requestAnimationFrame(ye.setChildrenWidthAndResize)})}),[].slice.call(Pe.children).concat(Pe).forEach(function(Pt){ye.resizeObserver.observe(Pt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ye.resizeObserver.disconnect(),[].slice.call(Pe.children).concat(Pe).forEach(function(Pt){ye.resizeObserver.observe(Pt)}),ye.setChildrenWidthAndResize()}),this.mutationObserver.observe(Pe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ye){var Pe=this,Pt=this.state.lastVisibleIndex;return(ye||[]).reduce(function(pt,en,an){var st=en;if(Pe.props.mode==="horizontal"){var xt=Pe.getOverflowedSubMenuItem(en.props.eventKey,[]);Pt!==void 0&&Pe.props.className.indexOf("".concat(Pe.props.prefixCls,"-root"))!==-1&&(an>Pt&&(st=M.cloneElement(en,{style:{display:"none"},eventKey:"".concat(en.props.eventKey,"-hidden"),className:"".concat(bt)})),an===Pt+1&&(Pe.overflowedItems=ye.slice(Pt+1).map(function(yn){return M.cloneElement(yn,{key:yn.props.eventKey,mode:"vertical-left"})}),xt=Pe.getOverflowedSubMenuItem(en.props.eventKey,Pe.overflowedItems)));var Nt=[].concat(Object(Re.a)(pt),[xt,st]);return an===ye.length-1&&Nt.push(Pe.getOverflowedSubMenuItem(en.props.eventKey,[],!0)),Nt}return[].concat(Object(Re.a)(pt),[st])},[])}},{key:"render",value:function(){var ye=this.props,Pe=ye.visible,Pt=ye.prefixCls,pt=ye.overflowedIndicator,en=ye.mode,an=ye.level,st=ye.tag,xt=ye.children,Nt=ye.theme,yn=Object(ge.a)(ye,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Mn=st;return M.createElement(Mn,Object.assign({},yn),this.renderChildren(xt))}}]),Tt}(M.Component);Lt.defaultProps={tag:"div",className:""};var on=Lt;function un(rn){return rn.length?rn.every(function(St){return!!St.props.disabled}):!0}function Ie(rn,St,Tt){var ct=rn.getState();rn.setState({activeKey:Object(X.a)(Object(X.a)({},ct.activeKey),{},Object(r.a)({},St,Tt))})}function De(rn){return rn.eventKey||"0-menu-"}function ot(rn,St){var Tt=St,ct=rn.children,ye=rn.eventKey;if(Tt){var Pe;if(q(ct,function(Pt,pt){Pt&&Pt.props&&!Pt.props.disabled&&Tt===Y(Pt,ye,pt)&&(Pe=!0)}),Pe)return Tt}return Tt=null,rn.defaultActiveFirst&&q(ct,function(Pt,pt){!Tt&&Pt&&!Pt.props.disabled&&(Tt=Y(Pt,ye,pt))}),Tt}function Et(rn){if(rn){var St=this.instanceArray.indexOf(rn);St!==-1?this.instanceArray[St]=rn:this.instanceArray.push(rn)}}var Je=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(ct){var ye;return Object(F.a)(this,Tt),ye=St.call(this,ct),ye.onKeyDown=function(Pe,Pt){var pt=Pe.keyCode,en;if(ye.getFlatInstanceArray().forEach(function(st){st&&st.props.active&&st.onKeyDown&&(en=st.onKeyDown(Pe))}),en)return 1;var an=null;return(pt===l.a.UP||pt===l.a.DOWN)&&(an=ye.step(pt===l.a.UP?-1:1)),an?(Pe.preventDefault(),Ie(ye.props.store,De(ye.props),an.props.eventKey),typeof Pt=="function"&&Pt(an),1):void 0},ye.onItemHover=function(Pe){var Pt=Pe.key,pt=Pe.hover;Ie(ye.props.store,De(ye.props),pt?Pt:null)},ye.onDeselect=function(Pe){ye.props.onDeselect(Pe)},ye.onSelect=function(Pe){ye.props.onSelect(Pe)},ye.onClick=function(Pe){ye.props.onClick(Pe)},ye.onOpenChange=function(Pe){ye.props.onOpenChange(Pe)},ye.onDestroy=function(Pe){ye.props.onDestroy(Pe)},ye.getFlatInstanceArray=function(){return ye.instanceArray},ye.step=function(Pe){var Pt=ye.getFlatInstanceArray(),pt=ye.props.store.getState().activeKey[De(ye.props)],en=Pt.length;if(!en)return null;Pe<0&&(Pt=Pt.concat().reverse());var an=-1;if(Pt.every(function(yn,Mn){return yn&&yn.props.eventKey===pt?(an=Mn,!1):!0}),!ye.props.defaultActiveFirst&&an!==-1&&un(Pt.slice(an,en-1)))return;var st=(an+1)%en,xt=st;do{var Nt=Pt[xt];if(!Nt||Nt.props.disabled)xt=(xt+1)%en;else return Nt}while(xt!==st);return null},ye.renderCommonMenuItem=function(Pe,Pt,pt){var en=ye.props.store.getState(),an=Object(j.a)(ye),st=an.props,xt=Y(Pe,st.eventKey,Pt),Nt=Pe.props;if(!Nt||typeof Pe.type=="string")return Pe;var yn=xt===en.activeKey,Mn=Object(X.a)(Object(X.a)({mode:Nt.mode||st.mode,level:st.level,inlineIndent:st.inlineIndent,renderMenuItem:ye.renderMenuItem,rootPrefixCls:st.prefixCls,index:Pt,parentMenu:st.parentMenu,manualRef:Nt.disabled?void 0:Object(b.a)(Pe.ref,Et.bind(Object(j.a)(ye))),eventKey:xt,active:!Nt.disabled&&yn,multiple:st.multiple,onClick:function(yr){(Nt.onClick||z)(yr),ye.onClick(yr)},onItemHover:ye.onItemHover,motion:st.motion,subMenuOpenDelay:st.subMenuOpenDelay,subMenuCloseDelay:st.subMenuCloseDelay,forceSubMenuRender:st.forceSubMenuRender,onOpenChange:ye.onOpenChange,onDeselect:ye.onDeselect,onSelect:ye.onSelect,builtinPlacements:st.builtinPlacements,itemIcon:Nt.itemIcon||ye.props.itemIcon,expandIcon:Nt.expandIcon||ye.props.expandIcon},pt),{},{direction:st.direction});return(st.mode==="inline"||we())&&(Mn.triggerSubMenuAction="click"),M.cloneElement(Pe,Mn)},ye.renderMenuItem=function(Pe,Pt,pt){if(!Pe)return null;var en=ye.props.store.getState(),an={openKeys:en.openKeys,selectedKeys:en.selectedKeys,triggerSubMenuAction:ye.props.triggerSubMenuAction,subMenuKey:pt};return ye.renderCommonMenuItem(Pe,Pt,an)},ct.store.setState({activeKey:Object(X.a)(Object(X.a)({},ct.store.getState().activeKey),{},Object(r.a)({},ct.eventKey,ot(ct,ct.activeKey)))}),ye.instanceArray=[],ye}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ye){return this.props.visible||ye.visible||this.props.className!==ye.className||!p()(this.props.style,ye.style)}},{key:"componentDidUpdate",value:function(ye){var Pe=this.props,Pt="activeKey"in Pe?Pe.activeKey:Pe.store.getState().activeKey[De(Pe)],pt=ot(Pe,Pt);if(pt!==Pt)Ie(Pe.store,De(Pe),pt);else if("activeKey"in ye){var en=ot(ye,ye.activeKey);pt!==en&&Ie(Pe.store,De(Pe),pt)}}},{key:"render",value:function(){var ye=this,Pe=Object(g.a)({},this.props);this.instanceArray=[];var Pt=a()(Pe.prefixCls,Pe.className,"".concat(Pe.prefixCls,"-").concat(Pe.mode)),pt={className:Pt,role:Pe.role||"menu"};Pe.id&&(pt.id=Pe.id),Pe.focusable&&(pt.tabIndex=0,pt.onKeyDown=this.onKeyDown);var en=Pe.prefixCls,an=Pe.eventKey,st=Pe.visible,xt=Pe.level,Nt=Pe.mode,yn=Pe.overflowedIndicator,Mn=Pe.theme;return ve.forEach(function(hr){return delete Pe[hr]}),delete Pe.onClick,M.createElement(on,Object.assign({},Pe,{prefixCls:en,mode:Nt,tag:"ul",level:xt,theme:Mn,visible:st,overflowedIndicator:yn},pt),M.Children.map(Pe.children,function(hr,yr){return ye.renderMenuItem(hr,yr,an||"0-menu-")}))}}]),Tt}(M.Component);Je.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:z};var ft=Object(c.b)()(Je),Me=ft,xe=P("Kwbf");function Te(rn,St,Tt){var ct=rn.prefixCls,ye=rn.motion,Pe=rn.defaultMotions,Pt=Pe===void 0?{}:Pe,pt=rn.openAnimation,en=rn.openTransitionName,an=St.switchingModeFromInline;if(ye)return ye;if(Object(t.a)(pt)==="object"&&pt)Object(xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof pt=="string")return{motionName:"".concat(ct,"-open-").concat(pt)};if(en)return{motionName:en};var st=Pt[Tt];return st||(an?null:Pt.other)}var oe=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(ct){var ye;Object(F.a)(this,Tt),ye=St.call(this,ct),ye.inlineOpenKeys=[],ye.onSelect=function(pt){var en=Object(j.a)(ye),an=en.props;if(an.selectable){var st=ye.store.getState(),xt=st.selectedKeys,Nt=pt.key;an.multiple?xt=xt.concat([Nt]):xt=[Nt],"selectedKeys"in an||ye.store.setState({selectedKeys:xt}),an.onSelect(Object(X.a)(Object(X.a)({},pt),{},{selectedKeys:xt}))}},ye.onClick=function(pt){var en=ye.getRealMenuMode(),an=Object(j.a)(ye),st=an.store,xt=an.props.onOpenChange;en!=="inline"&&!("openKeys"in ye.props)&&(st.setState({openKeys:[]}),xt([])),ye.props.onClick(pt)},ye.onKeyDown=function(pt,en){ye.innerMenu.getWrappedInstance().onKeyDown(pt,en)},ye.onOpenChange=function(pt){var en=Object(j.a)(ye),an=en.props,st=ye.store.getState().openKeys.concat(),xt=!1,Nt=function(Mn){var hr=!1;if(Mn.open)hr=st.indexOf(Mn.key)===-1,hr&&st.push(Mn.key);else{var yr=st.indexOf(Mn.key);hr=yr!==-1,hr&&st.splice(yr,1)}xt=xt||hr};Array.isArray(pt)?pt.forEach(Nt):Nt(pt),xt&&("openKeys"in ye.props||ye.store.setState({openKeys:st}),an.onOpenChange(st))},ye.onDeselect=function(pt){var en=Object(j.a)(ye),an=en.props;if(an.selectable){var st=ye.store.getState().selectedKeys.concat(),xt=pt.key,Nt=st.indexOf(xt);Nt!==-1&&st.splice(Nt,1),"selectedKeys"in an||ye.store.setState({selectedKeys:st}),an.onDeselect(Object(X.a)(Object(X.a)({},pt),{},{selectedKeys:st}))}},ye.onMouseEnter=function(pt){ye.restoreModeVerticalFromInline();var en=ye.props.onMouseEnter;en&&en(pt)},ye.onTransitionEnd=function(pt){var en=pt.propertyName==="width"&&pt.target===pt.currentTarget,an=pt.target.className,st=Object.prototype.toString.call(an)==="[object SVGAnimatedString]"?an.animVal:an,xt=pt.propertyName==="font-size"&&st.indexOf("anticon")>=0;(en||xt)&&ye.restoreModeVerticalFromInline()},ye.setInnerMenu=function(pt){ye.innerMenu=pt},ye.isRootMenu=!0;var Pe=ct.defaultSelectedKeys,Pt=ct.defaultOpenKeys;return"selectedKeys"in ct&&(Pe=ct.selectedKeys||[]),"openKeys"in ct&&(Pt=ct.openKeys||[]),ye.store=Object(c.c)({selectedKeys:Pe,openKeys:Pt,activeKey:{"0-menu-":ot(ct,ct.activeKey)}}),ye.state={switchingModeFromInline:!1},ye}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ye){this.updateOpentKeysWhenSwitchMode(ye),this.updateMiniStore();var Pe=this.props,Pt=Pe.siderCollapsed,pt=Pe.inlineCollapsed,en=Pe.onOpenChange;(!ye.inlineCollapsed&&pt||!ye.siderCollapsed&&Pt)&&en([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ye){var Pe=this.props,Pt=this.store,pt=this.inlineOpenKeys,en=Pt.getState(),an={};ye.mode==="inline"&&Pe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Pe||((Pe.inlineCollapsed&&!ye.inlineCollapsed||Pe.siderCollapsed&&!ye.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=en.openKeys.concat(),an.openKeys=[]),(!Pe.inlineCollapsed&&ye.inlineCollapsed||!Pe.siderCollapsed&&ye.siderCollapsed)&&(an.openKeys=pt,this.inlineOpenKeys=[])),Object.keys(an).length&&Pt.setState(an)}},{key:"updateMenuDisplay",value:function(){var ye=this.props.collapsedWidth,Pe=this.store,Pt=this.prevOpenKeys,pt=this.getInlineCollapsed()&&(ye===0||ye==="0"||ye==="0px");pt?(this.prevOpenKeys=Pe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Pt&&(this.store.setState({openKeys:Pt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ye=this.props.mode,Pe=this.state.switchingModeFromInline,Pt=this.getInlineCollapsed();return Pe&&Pt?"inline":Pt?"vertical":ye}},{key:"getInlineCollapsed",value:function(){var ye=this.props,Pe=ye.inlineCollapsed,Pt=ye.siderCollapsed;return Pt!==void 0?Pt:Pe}},{key:"restoreModeVerticalFromInline",value:function(){var ye=this.state.switchingModeFromInline;ye&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ye=Object(X.a)({},Object(E.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Pe=this.getRealMenuMode();return ye.className+=" ".concat(ye.prefixCls,"-root"),ye.direction==="rtl"&&(ye.className+=" ".concat(ye.prefixCls,"-rtl")),ye=Object(X.a)(Object(X.a)({},ye),{},{mode:Pe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Te(this.props,this.state,Pe)}),delete ye.openAnimation,delete ye.openTransitionName,M.createElement(c.a,{store:this.store},M.createElement(Me,Object.assign({},ye,{ref:this.setInnerMenu}),this.props.children))}}]),Tt}(M.Component);oe.defaultProps={selectable:!0,onClick:z,onSelect:z,onOpenChange:z,onDeselect:z,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:M.createElement("span",null,"\xB7\xB7\xB7")};var ue=oe,pe=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(){var ct;return Object(F.a)(this,Tt),ct=St.apply(this,arguments),ct.onKeyDown=function(ye){var Pe=ye.keyCode;return Pe===l.a.ENTER?(ct.onClick(ye),!0):void 0},ct.onMouseLeave=function(ye){var Pe=ct.props,Pt=Pe.eventKey,pt=Pe.onItemHover,en=Pe.onMouseLeave;pt({key:Pt,hover:!1}),en({key:Pt,domEvent:ye})},ct.onMouseEnter=function(ye){var Pe=ct.props,Pt=Pe.eventKey,pt=Pe.onItemHover,en=Pe.onMouseEnter;pt({key:Pt,hover:!0}),en({key:Pt,domEvent:ye})},ct.onClick=function(ye){var Pe=ct.props,Pt=Pe.eventKey,pt=Pe.multiple,en=Pe.onClick,an=Pe.onSelect,st=Pe.onDeselect,xt=Pe.isSelected,Nt={key:Pt,keyPath:[Pt],item:Object(j.a)(ct),domEvent:ye};en(Nt),pt?xt?st(Nt):an(Nt):xt||an(Nt)},ct.saveNode=function(ye){ct.node=ye},ct}return Object(R.a)(Tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ye=this.props;ye.onDestroy&&ye.onDestroy(ye.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ye,Pe=Object(X.a)({},this.props),Pt=a()(this.getPrefixCls(),Pe.className,(ye={},Object(r.a)(ye,this.getActiveClassName(),!Pe.disabled&&Pe.active),Object(r.a)(ye,this.getSelectedClassName(),Pe.isSelected),Object(r.a)(ye,this.getDisabledClassName(),Pe.disabled),ye)),pt=Object(X.a)(Object(X.a)({},Pe.attribute),{},{title:typeof Pe.title=="string"?Pe.title:void 0,className:Pt,role:Pe.role||"menuitem","aria-disabled":Pe.disabled});Pe.role==="option"?pt=Object(X.a)(Object(X.a)({},pt),{},{role:"option","aria-selected":Pe.isSelected}):(Pe.role===null||Pe.role==="none")&&(pt.role="none");var en={onClick:Pe.disabled?null:this.onClick,onMouseLeave:Pe.disabled?null:this.onMouseLeave,onMouseEnter:Pe.disabled?null:this.onMouseEnter},an=Object(X.a)({},Pe.style);Pe.mode==="inline"&&(Pe.direction==="rtl"?an.paddingRight=Pe.inlineIndent*Pe.level:an.paddingLeft=Pe.inlineIndent*Pe.level),ve.forEach(function(xt){return delete Pe[xt]}),delete Pe.direction;var st=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(st=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(E.default)(Pe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),pt,en,{style:an,ref:this.saveNode}),Pe.children,st)}}]),Tt}(M.Component);pe.isMenuItem=!0,pe.defaultProps={onSelect:z,onMouseEnter:z,onMouseLeave:z,manualRef:z};var _e=Object(c.b)(function(rn,St){var Tt=rn.activeKey,ct=rn.selectedKeys,ye=St.eventKey,Pe=St.subMenuKey;return{active:Tt[Pe]===ye,isSelected:ct.indexOf(ye)!==-1}})(pe),Ye=_e,Ue=function(rn){Object(T.a)(Tt,rn);var St=Object(S.a)(Tt);function Tt(){var ct;return Object(F.a)(this,Tt),ct=St.apply(this,arguments),ct.renderInnerMenuItem=function(ye){var Pe=ct.props,Pt=Pe.renderMenuItem,pt=Pe.index;return Pt(ye,pt,ct.props.subMenuKey)},ct}return Object(R.a)(Tt,[{key:"render",value:function(){var ye=Object(g.a)({},this.props),Pe=ye.className,Pt=Pe===void 0?"":Pe,pt=ye.rootPrefixCls,en="".concat(pt,"-item-group-title"),an="".concat(pt,"-item-group-list"),st=ye.title,xt=ye.children;return ve.forEach(function(Nt){return delete ye[Nt]}),delete ye.onClick,delete ye.direction,M.createElement("li",Object.assign({},ye,{className:"".concat(Pt," ").concat(pt,"-item-group")}),M.createElement("div",{className:en,title:typeof st=="string"?st:void 0},st),M.createElement("ul",{className:an},M.Children.map(xt,this.renderInnerMenuItem)))}}]),Tt}(M.Component);Ue.isMenuItemGroup=!0,Ue.defaultProps={disabled:!0};var Mt=Ue,tn=function(St){var Tt=St.className,ct=St.rootPrefixCls,ye=St.style;return M.createElement("li",{className:"".concat(Tt," ").concat(ct,"-item-divider"),style:ye})};tn.defaultProps={disabled:!0,className:"",style:{}};var sn=tn,nn=te.e=ue},"24YM":function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SensorTabIndex=te.SensorClassName=te.SizeSensorId=void 0;var X="size-sensor-id";te.SizeSensorId=X;var F="size-sensor-object";te.SensorClassName=F;var R="-1";te.SensorTabIndex=R},"24hK":function(ze,te,P){"use strict";P.d(te,"a",function(){return R});var X=P("JYp7"),F=function(){function j(T){this.element=T,this.next=j.Undefined,this.prev=j.Undefined}return j.Undefined=new j(void 0),j}(),R=function(){function j(){this._first=F.Undefined,this._last=F.Undefined,this._size=0}return Object.defineProperty(j.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),j.prototype.isEmpty=function(){return this._first===F.Undefined},j.prototype.clear=function(){this._first=F.Undefined,this._last=F.Undefined,this._size=0},j.prototype.unshift=function(T){return this._insert(T,!1)},j.prototype.push=function(T){return this._insert(T,!0)},j.prototype._insert=function(T,S){var M=this,c=new F(T);if(this._first===F.Undefined)this._first=c,this._last=c;else if(S){var E=this._last;this._last=c,c.prev=E,E.next=c}else{var g=this._first;this._first=c,c.next=g,g.prev=c}this._size+=1;var r=!1;return function(){r||(r=!0,M._remove(c))}},j.prototype.shift=function(){if(this._first===F.Undefined)return;var T=this._first.element;return this._remove(this._first),T},j.prototype.pop=function(){if(this._last===F.Undefined)return;var T=this._last.element;return this._remove(this._last),T},j.prototype._remove=function(T){if(T.prev!==F.Undefined&&T.next!==F.Undefined){var S=T.prev;S.next=T.next,T.next.prev=S}else T.prev===F.Undefined&&T.next===F.Undefined?(this._first=F.Undefined,this._last=F.Undefined):T.next===F.Undefined?(this._last=this._last.prev,this._last.next=F.Undefined):T.prev===F.Undefined&&(this._first=this._first.next,this._first.prev=F.Undefined);this._size-=1},j.prototype.iterator=function(){var T,S=this._first;return{next:function(){return S===F.Undefined?X.c:(T?T.value=S.element:T={done:!1,value:S.element},S=S.next,T)}}},j.prototype.toArray=function(){for(var T=[],S=this._first;S!==F.Undefined;S=S.next)T.push(S.element);return T},j}()},"2DNl":function(ze,te,P){var X=P("IMiH"),F=P("loD1"),R=P("59Ip"),j=P("aKvl"),T=P("n1HI"),S=P("hX1E"),M=S.normalizeRadian,c=P("Sj9i"),E=P("hyiK"),g=X.CMD,r=Math.PI*2,l=1e-4;function b(C,I){return Math.abs(C-I)I&&m>f&&m>i&&m>A||m1&&v(),G=c.cubicAt(I,f,i,A,p[0]),B>1&&(W=c.cubicAt(I,f,i,A,p[1]))),B===2?YI&&A>f&&A>i||A=0&&m<=1){for(var k=0,N=c.quadraticAt(I,f,i,m),B=0;B_||A<-_)return 0;var O=Math.sqrt(_*_-A*A);u[0]=-O,u[1]=O;var m=Math.abs(f-o);if(m<1e-4)return 0;if(m%r<1e-4){f=0,o=r;var k=i?1:-1;return d>=u[0]+C&&d<=u[1]+C?k:0}if(i){var O=f;f=M(o),o=M(O)}else f=M(f),o=M(o);f>o&&(o+=r);for(var N=0,B=0;B<2;B++){var G=u[B];if(G+C>d){var W=Math.atan2(A,G),k=i?1:-1;W<0&&(W=r+W),(W>=f&&W<=o||W+r>=f&&W+r<=o)&&(W>Math.PI/2&&W1&&(_||(i+=E(d,A,O,m,f,o))),k===1&&(d=C[k],A=C[k+1],O=d,m=A);switch(N){case g.M:O=C[k++],m=C[k++],d=O,A=m;break;case g.L:if(_){if(F.containStroke(d,A,C[k],C[k+1],I,f,o))return!0}else i+=E(d,A,C[k],C[k+1],f,o)||0;d=C[k++],A=C[k++];break;case g.C:if(_){if(R.containStroke(d,A,C[k++],C[k++],C[k++],C[k++],C[k],C[k+1],I,f,o))return!0}else i+=a(d,A,C[k++],C[k++],C[k++],C[k++],C[k],C[k+1],f,o)||0;d=C[k++],A=C[k++];break;case g.Q:if(_){if(j.containStroke(d,A,C[k++],C[k++],C[k],C[k+1],I,f,o))return!0}else i+=t(d,A,C[k++],C[k++],C[k],C[k+1],f,o)||0;d=C[k++],A=C[k++];break;case g.A:var B=C[k++],G=C[k++],W=C[k++],z=C[k++],Y=C[k++],V=C[k++];k+=1;var q=1-C[k++],ne=Math.cos(Y)*W+B,ve=Math.sin(Y)*z+G;k>1?i+=E(d,A,ne,ve,f,o):(O=ne,m=ve);var le=(f-B)*z/W+B;if(_){if(T.containStroke(B,G,z,Y,Y+V,q,I,le,o))return!0}else i+=s(B,G,z,Y,Y+V,q,le,o);d=Math.cos(Y+V)*W+B,A=Math.sin(Y+V)*z+G;break;case g.R:O=d=C[k++],m=A=C[k++];var be=C[k++],we=C[k++],ne=O+be,ve=m+we;if(_){if(F.containStroke(O,m,ne,m,I,f,o)||F.containStroke(ne,m,ne,ve,I,f,o)||F.containStroke(ne,ve,O,ve,I,f,o)||F.containStroke(O,ve,O,m,I,f,o))return!0}else i+=E(ne,m,ne,ve,f,o),i+=E(O,ve,O,m,f,o);break;case g.Z:if(_){if(F.containStroke(d,A,O,m,I,f,o))return!0}else i+=E(d,A,O,m,f,o);d=O,A=m;break}}return!_&&!b(A,m)&&(i+=E(d,A,O,m,f,o)||0),i!==0}function y(C,I,_){return h(C,0,!1,I,_)}function D(C,I,_,f){return h(C,I,!0,_,f)}te.contain=y,te.containStroke=D},"2fw6":function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(R,j,T){T&&R.moveTo(j.cx+j.r,j.cy),R.arc(j.cx,j.cy,j.r,0,Math.PI*2,!0)}});ze.exports=F},"3C/r":function(ze,te){var P=function(F,R){this.image=F,this.repeat=R,this.type="pattern"};P.prototype.getCanvasPattern=function(F){return F.createPattern(this.image,this.repeat||"repeat")};var X=P;ze.exports=X},"3CBa":function(ze,te,P){var X=P("hydK"),F=X.createElement,R=P("bYtY"),j=P("SUKs"),T=P("y+Vt"),S=P("Dagg"),M=P("dqUG"),c=P("DBLp"),E=P("sW+o"),g=P("n6Mw"),r=P("vKoX"),l=P("P47w"),b=l.path,u=l.image,p=l.text;function v(o){return parseInt(o,10)}function a(o){return o instanceof T?b:o instanceof S?u:o instanceof M?p:b}function t(o,i){return i&&o&&i.parentNode!==o}function s(o,i,d){if(t(o,i)&&d){var A=d.nextSibling;A?o.insertBefore(i,A):o.appendChild(i)}}function h(o,i){if(t(o,i)){var d=o.firstChild;d?o.insertBefore(i,d):o.appendChild(i)}}function y(o,i){i&&o&&i.parentNode===o&&o.removeChild(i)}function D(o){return o.__textSvgEl}function C(o){return o.__svgEl}var I=function(o,i,d,A){this.root=o,this.storage=i,this._opts=d=R.extend({},d||{});var O=F("svg");O.setAttribute("xmlns","http://www.w3.org/2000/svg"),O.setAttribute("version","1.1"),O.setAttribute("baseProfile","full"),O.style.cssText="user-select:none;position:absolute;left:0;top:0;";var m=F("g");O.appendChild(m);var k=F("g");O.appendChild(k),this.gradientManager=new E(A,k),this.clipPathManager=new g(A,k),this.shadowManager=new r(A,k);var N=document.createElement("div");N.style.cssText="overflow:hidden;position:relative",this._svgDom=O,this._svgRoot=k,this._backgroundRoot=m,this._viewport=N,o.appendChild(N),N.appendChild(O),this.resize(d.width,d.height),this._visibleList=[]};I.prototype={constructor:I,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var i=F("rect");i.setAttribute("width",this.getWidth()),i.setAttribute("height",this.getHeight()),i.setAttribute("x",0),i.setAttribute("y",0),i.setAttribute("id",0),i.style.fill=o,this._backgroundRoot.appendChild(i),this._backgroundNode=i},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var i=this._svgRoot,d=this._visibleList,A=o.length,O=[],m;for(m=0;m=0;--k)if(m[k]===O)return!0;return!1}),d}else return null;else return d[0]},resize:function(o,i){var d=this._viewport;d.style.display="none";var A=this._opts;if(o!=null&&(A.width=o),i!=null&&(A.height=i),o=this._getSize(0),i=this._getSize(1),d.style.display="",this._width!==o||this._height!==i){this._width=o,this._height=i;var O=d.style;O.width=o+"px",O.height=i+"px";var m=this._svgDom;m.setAttribute("width",o),m.setAttribute("height",i)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",i))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var i=this._opts,d=["width","height"][o],A=["clientWidth","clientHeight"][o],O=["paddingLeft","paddingTop"][o],m=["paddingRight","paddingBottom"][o];if(i[d]!=null&&i[d]!=="auto")return parseFloat(i[d]);var k=this.root,N=document.defaultView.getComputedStyle(k);return(k[A]||v(N[d])||v(k.style[d]))-(v(N[O])||0)-(v(N[m])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> +\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function _(o){return function(){j('In SVG mode painter not support method "'+o+'"')}}R.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){I.prototype[o]=_(o)});var f=I;ze.exports=f},"3e3G":function(ze,te,P){var X=P("bYtY"),F=P("QuXc"),R=function(T,S,M,c,E){this.x=T==null?.5:T,this.y=S==null?.5:S,this.r=M==null?.5:M,this.type="radial",this.global=E||!1,F.call(this,c)};R.prototype={constructor:R},X.inherits(R,F);var j=R;ze.exports=j},"3gBT":function(ze,te){var P=2311;function X(){return P++}ze.exports=X},"4fz+":function(ze,te,P){var X=P("bYtY"),F=P("1bdT"),R=P("mFDi"),j=function(S){S=S||{},F.call(this,S);for(var M in S)S.hasOwnProperty(M)&&(this[M]=S[M]);this._children=[],this.__storage=null,this.__dirty=!0};j.prototype={constructor:j,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(S){return this._children[S]},childOfName:function(S){for(var M=this._children,c=0;c=0&&(c.splice(E,0,S),this._doAdd(S))}return this},_doAdd:function(S){S.parent&&S.parent.remove(S),S.parent=this;var M=this.__storage,c=this.__zr;M&&M!==S.__storage&&(M.addToStorage(S),S instanceof j&&S.addChildrenToStorage(M)),c&&c.refresh()},remove:function(S){var M=this.__zr,c=this.__storage,E=this._children,g=X.indexOf(E,S);return g<0?this:(E.splice(g,1),S.parent=null,c&&(c.delFromStorage(S),S instanceof j&&S.delChildrenFromStorage(c)),M&&M.refresh(),this)},removeAll:function(){var S=this._children,M=this.__storage,c,E;for(E=0;E1e-4){_[0]=t-h,_[1]=s-y,f[0]=t+h,f[1]=s+y;return}if(c[0]=S(D)*h+t,c[1]=T(D)*y+s,E[0]=S(C)*h+t,E[1]=T(C)*y+s,o(_,c,E),i(f,c,E),D=D%M,D<0&&(D=D+M),C=C%M,C<0&&(C=C+M),D>C&&!I?C+=M:DD&&(g[0]=S(O)*h+t,g[1]=T(O)*y+s,o(_,g,_),i(f,g,f))}te.fromPoints=r,te.fromLine=l,te.fromCubic=p,te.fromQuadratic=v,te.fromArc=a},"4wi7":function(ze,te,P){"use strict";var X=P("14J3"),F=P("BMrR"),R=P("sRBo"),j=P("kaz8"),T=P("5NDa"),S=P("5rEg"),M=P("9og8"),c=P("tJVT"),E=P("WmNS"),g=P.n(E),r=P("q1tI"),l=P.n(r),b=P("oOBs"),u=P.n(b),p=P("xOL1"),v=P.n(p),a=P("BdwD"),t=function(h){var y=h.data,D=h.value,C=D===void 0?[]:D,I=h.handleChangePage,_=h.setSelectedRowKeys,f=h.selectedRowKeys,o=h.onChange,i=o===void 0?function(){}:o,d=Object(r.useState)([]),A=Object(c.a)(d,2),O=A[0],m=A[1],k=Object(r.useState)([]),N=Object(c.a)(k,2),B=N[0],G=N[1],W=Object(r.useState)([]),z=Object(c.a)(W,2),Y=z[0],V=z[1],q=Object(r.useState)(1),ne=Object(c.a)(q,2),ve=ne[0],le=ne[1],be=Object(r.useState)(),we=Object(c.a)(be,2),Re=we[0],ge=we[1];return Object(r.useEffect)(function(){m(y),G([]),V([])},[y]),Object(r.useEffect)(function(){_&&(G(f),V(f))},[f]),l.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},l.a.createElement("div",{className:u.a.leftdiv},l.a.createElement(S.a.Search,{size:"large",onChange:function(){var fe=Object(M.a)(g.a.mark(function Ze(Ot){return g.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:m(y.filter(function(de){var me;return de==null||((me=de.name)===null||me===void 0)?void 0:me.includes(Ot.target.value)}));case 1:case"end":return ke.stop()}},Ze)}));return function(Ze){return fe.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),O.length===0&&l.a.createElement(a.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),l.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},l.a.createElement(j.a.Group,{value:B.map(function(fe){return"".concat(fe.id)}),onChange:function(Ze){_(O.filter(function(Ot){return Ze.includes("".concat(Ot.id))}))},style:{marginTop:"10px"}},O.map(function(fe,Ze){return l.a.createElement(F.a,{key:fe.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},l.a.createElement(j.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:fe.is_published,value:"".concat(fe.id)},l.a.createElement("div",{className:u.a.listClass},l.a.createElement("span",{className:u.a.spantitle,style:{width:fe.is_published?"108px":"170px"}},fe.name),fe.is_published&&l.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),l.a.createElement("div",{className:u.a.rightdiv},l.a.createElement(S.a.Search,{onChange:function(Ze){V(B.filter(function(Ot){return Ot.name.includes(Ze.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Y.length===0&&l.a.createElement(a.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Y.length>0&&l.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},l.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Y.map(function(fe,Ze){return l.a.createElement(F.a,{justify:"space-between",style:{marginTop:"10px"},key:fe.id},l.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},fe.name),l.a.createElement("img",{src:v.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){_(B.filter(function(Ee){return"".concat(Ee.id)!="".concat(fe.id)}))}}))})))))};te.a=t},"55Ip":function(ze,te,P){"use strict";P.d(te,"a",function(){return s}),P.d(te,"b",function(){return _});var X=P("Ty5D"),F=P("dI71"),R=P("q1tI"),j=P.n(R),T=P("YS25"),S=P("17x9"),M=P.n(S),c=P("wx14"),E=P("zLVn"),g=P("9R94"),r=function(o){Object(F.a)(i,o);function i(){for(var A,O=arguments.length,m=new Array(O),k=0;kj+u&&b>S+u&&b>c+u&&b>g+u||bR+u&&l>T+u&&l>M+u&&l>E+u||l=0||O.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;o.setState({goInputText:""}),N(o.getValidValue())},o.go=function(O){var m=o.state.goInputText;if(m==="")return;(O.keyCode===u.ENTER||O.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(T.a)(f,[{key:"getValidValue",value:function(){var i=this.state,d=i.goInputText,A=i.current;return!d||isNaN(d)?A:Number(d)}},{key:"getPageSizeOptions",value:function(){var i=this.props,d=i.pageSize,A=i.pageSizeOptions;return A.some(function(O){return O.toString()===d.toString()})?A:A.concat([d.toString()]).sort(function(O,m){var k=isNaN(Number(O))?0:Number(O),N=isNaN(Number(m))?0:Number(m);return k-N})}},{key:"render",value:function(){var i=this,d=this.props,A=d.pageSize,O=d.locale,m=d.rootPrefixCls,k=d.changeSize,N=d.quickGo,B=d.goButton,G=d.selectComponentClass,W=d.buildOptionText,z=d.selectPrefixCls,Y=d.disabled,V=this.state.goInputText,q="".concat(m,"-options"),ne=G,ve=null,le=null,be=null;if(!k&&!N)return null;var we=this.getPageSizeOptions();if(k&&ne){var Re=we.map(function(ge,fe){return E.a.createElement(ne.Option,{key:fe,value:ge.toString()},(W||i.buildOptionText)(ge))});ve=E.a.createElement(ne,{disabled:Y,prefixCls:z,showSearch:!1,className:"".concat(q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(A||we[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fe){return fe.parentNode}},Re)}return N&&(B&&(be=typeof B=="boolean"?E.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Y,className:"".concat(q,"-quick-jumper-button")},O.jump_to_confirm):E.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),le=E.a.createElement("div",{className:"".concat(q,"-quick-jumper")},O.jump_to,E.a.createElement("input",{disabled:Y,type:"text",value:V,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),O.page,be)),E.a.createElement("li",{className:"".concat(q)},ve,le)}}]),f}(E.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var v=p,a=P("N2Kk");function t(){}function s(I){return typeof I=="number"&&isFinite(I)&&Math.floor(I)===I}function h(I,_,f){return f}function y(I,_,f){var o=typeof I=="undefined"?_.pageSize:I;return Math.floor((f.total-1)/o)+1}var D=function(I){Object(S.a)(f,I);var _=Object(M.a)(f);function f(o){var i;Object(j.a)(this,f),i=_.call(this,o),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(y(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(k,N){var B=i.props.prefixCls,G=k||E.a.createElement("button",{type:"button","aria-label":N,className:"".concat(B,"-item-link")});return typeof k=="function"&&(G=E.a.createElement(k,Object(R.a)({},i.props))),G},i.savePaginationNode=function(k){i.paginationNode=k},i.isValid=function(k){return s(k)&&k!==i.state.current},i.shouldDisplayQuickJumper=function(){var k=i.props,N=k.showQuickJumper,B=k.pageSize,G=k.total;return G<=B?!1:N},i.handleKeyDown=function(k){(k.keyCode===u.ARROW_UP||k.keyCode===u.ARROW_DOWN)&&k.preventDefault()},i.handleKeyUp=function(k){var N=i.getValidValue(k),B=i.state.currentInputValue;N!==B&&i.setState({currentInputValue:N}),k.keyCode===u.ENTER?i.handleChange(N):k.keyCode===u.ARROW_UP?i.handleChange(N-1):k.keyCode===u.ARROW_DOWN&&i.handleChange(N+1)},i.changePageSize=function(k){var N=i.state.current,B=y(k,i.state,i.props);N=N>B?B:N,B===0&&(N=i.state.current),typeof k=="number"&&("pageSize"in i.props||i.setState({pageSize:k}),"current"in i.props||i.setState({current:N,currentInputValue:N})),i.props.onShowSizeChange(N,k),"onChange"in i.props&&i.props.onChange&&i.props.onChange(N,k)},i.handleChange=function(k){var N=i.props.disabled,B=k;if(i.isValid(B)&&!N){var G=y(void 0,i.state,i.props);B>G?B=G:B<1&&(B=1),"current"in i.props||i.setState({current:B,currentInputValue:B});var W=i.state.pageSize;return i.props.onChange(B,W),B}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?B-2:0),W=2;W=A?m=A:m=Number(d),m}},{key:"getShowSizeChanger",value:function(){var i=this.props,d=i.showSizeChanger,A=i.total,O=i.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:A>O}},{key:"renderPrev",value:function(i){var d=this.props,A=d.prevIcon,O=d.itemRender,m=O(i,"prev",this.getItemIcon(A,"prev page")),k=!this.hasPrev();return Object(c.isValidElement)(m)?Object(c.cloneElement)(m,{disabled:k}):m}},{key:"renderNext",value:function(i){var d=this.props,A=d.nextIcon,O=d.itemRender,m=O(i,"next",this.getItemIcon(A,"next page")),k=!this.hasNext();return Object(c.isValidElement)(m)?Object(c.cloneElement)(m,{disabled:k}):m}},{key:"render",value:function(){var i=this,d=this.props,A=d.prefixCls,O=d.className,m=d.style,k=d.disabled,N=d.hideOnSinglePage,B=d.total,G=d.locale,W=d.showQuickJumper,z=d.showLessItems,Y=d.showTitle,V=d.showTotal,q=d.simple,ne=d.itemRender,ve=d.showPrevNextJumpers,le=d.jumpPrevIcon,be=d.jumpNextIcon,we=d.selectComponentClass,Re=d.selectPrefixCls,ge=d.pageSizeOptions,fe=this.state,Ze=fe.current,Ot=fe.pageSize,Ee=fe.currentInputValue;if(N===!0&&B<=Ot)return null;var ke=y(void 0,this.state,this.props),de=[],me=null,Le=null,rt=null,Oe=null,Ge=null,at=W&&W.goButton,dt=z?1:2,Rt=Ze-1>0?Ze-1:0,bt=Ze+1=dt*2&&Ze!==1+2&&(de[0]=Object(c.cloneElement)(de[0],{className:"".concat(A,"-item-after-jump-prev")}),de.unshift(me)),ke-Ze>=dt*2&&Ze!==ke-2&&(de[de.length-1]=Object(c.cloneElement)(de[de.length-1],{className:"".concat(A,"-item-before-jump-next")}),de.push(Le)),ot!==1&&de.unshift(rt),Et!==ke&&de.push(Oe)}var Me=null;V&&(Me=E.a.createElement("li",{className:"".concat(A,"-total-text")},V(B,[B===0?0:(Ze-1)*Ot+1,Ze*Ot>B?B:Ze*Ot])));var xe=!this.hasPrev()||!ke,Te=!this.hasNext()||!ke;return E.a.createElement("ul",Object(X.a)({className:r()(A,O,Object(F.a)({},"".concat(A,"-disabled"),k)),style:m,unselectable:"unselectable",ref:this.savePaginationNode},Kt),Me,E.a.createElement("li",{title:Y?G.prev_page:null,onClick:this.prev,tabIndex:xe?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(A,"-prev"),Object(F.a)({},"".concat(A,"-disabled"),xe)),"aria-disabled":xe},this.renderPrev(Rt)),de,E.a.createElement("li",{title:Y?G.next_page:null,onClick:this.next,tabIndex:Te?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(A,"-next"),Object(F.a)({},"".concat(A,"-disabled"),Te)),"aria-disabled":Te},this.renderNext(bt)),E.a.createElement(v,{disabled:k,locale:G,rootPrefixCls:A,selectComponentClass:we,selectPrefixCls:Re,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ze,pageSize:Ot,pageSizeOptions:ge,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:at}))}}],[{key:"getDerivedStateFromProps",value:function(i,d){var A={};if("current"in i&&(A.current=i.current,i.current!==d.current&&(A.currentInputValue=A.current)),"pageSize"in i&&i.pageSize!==d.pageSize){var O=d.current,m=y(i.pageSize,d,i);O=O>m?m:O,"current"in i||(A.current=O,A.currentInputValue=O),A.pageSize=i.pageSize}return A}}]),f}(E.a.Component);D.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:t,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:t,locale:a.a,style:{},itemRender:h,totalBoundaryShowSizeChanger:50};var C=D},"6GrX":function(ze,te,P){var X=P("mFDi"),F=P("Xnb7"),R=P("bYtY"),j=R.getContext,T=R.extend,S=R.retrieve2,M=R.retrieve3,c=R.trim,E={},g=0,r=5e3,l=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,b="12px sans-serif",u={};function p(N,B){u[N]=B}function v(N,B){B=B||b;var G=N+":"+B;if(E[G])return E[G];for(var W=(N+"").split(` `),z=0,Y=0,V=W.length;Yr&&(g=0,E={}),g++,E[G]=z,z}function a(N,B,G,W,z,Y,V,q){return V?s(N,B,G,W,z,Y,V,q):t(N,B,G,W,z,Y,q)}function t(N,B,G,W,z,Y,V){var q=A(N,B,z,Y,V),ne=v(N,B);z&&(ne+=z[1]+z[3]);var ve=q.outerHeight,le=h(0,ne,G),be=y(0,ve,W),we=new X(le,be,ne,ve);return we.lineHeight=q.lineHeight,we}function s(N,B,G,W,z,Y,V,q){var ne=O(N,{rich:V,truncate:q,font:B,textAlign:G,textPadding:z,textLineHeight:Y}),ve=ne.outerWidth,le=ne.outerHeight,be=h(0,ve,G),we=y(0,le,W);return new X(be,we,ve,le)}function h(N,B,G){return G==="right"?N-=B:G==="center"&&(N-=B/2),N}function y(N,B,G){return G==="middle"?N-=B/2:G==="bottom"&&(N-=B),N}function D(N,B,G){var W=B.textPosition,z=B.textDistance,Y=G.x,V=G.y;z=z||0;var q=G.height,ne=G.width,ve=q/2,le="left",be="top";switch(W){case"left":Y-=z,V+=ve,le="right",be="middle";break;case"right":Y+=z+ne,V+=ve,be="middle";break;case"top":Y+=ne/2,V-=z,le="center",be="bottom";break;case"bottom":Y+=ne/2,V+=q+z,le="center";break;case"inside":Y+=ne/2,V+=ve,le="center",be="middle";break;case"insideLeft":Y+=z,V+=ve,be="middle";break;case"insideRight":Y+=ne-z,V+=ve,le="right",be="middle";break;case"insideTop":Y+=ne/2,V+=z,le="center";break;case"insideBottom":Y+=ne/2,V+=q-z,le="center",be="bottom";break;case"insideTopLeft":Y+=z,V+=z;break;case"insideTopRight":Y+=ne-z,V+=z,le="right";break;case"insideBottomLeft":Y+=z,V+=q-z,be="bottom";break;case"insideBottomRight":Y+=ne-z,V+=q-z,le="right",be="bottom";break}return N=N||{},N.x=Y,N.y=V,N.textAlign=le,N.textVerticalAlign=be,N}function C(N,B,G){var W={textPosition:N,textDistance:G};return D({},W,B)}function I(N,B,G,W,z){if(!B)return"";var Y=(N+"").split(` `);z=_(B,G,W,z);for(var V=0,q=Y.length;V=Y;q++)V-=Y;var ne=v(G,B);return ne>V&&(G="",ne=0),V=N-ne,W.ellipsis=G,W.ellipsisWidth=ne,W.contentWidth=V,W.containerWidth=N,W}function f(N,B){var G=B.containerWidth,W=B.font,z=B.contentWidth;if(!G)return"";var Y=v(N,W);if(Y<=G)return N;for(var V=0;;V++){if(Y<=z||V>=B.maxIterations){N+=B.ellipsis;break}var q=V===0?o(N,z,B.ascCharWidth,B.cnCharWidth):Y>0?Math.floor(N.length*z/Y):0;N=N.substr(0,q),Y=v(N,W)}return N===""&&(N=B.placeholder),N}function o(N,B,G,W){for(var z=0,Y=0,V=N.length;Yle)N="",V=[];else if(be!=null)for(var we=_(be-(G?G[1]+G[3]:0),B,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),Re=0,ge=V.length;ReW&&m(G,N.substring(W,Y)),m(G,z[2],z[1]),W=l.lastIndex}WRe)return{lines:[],width:0,height:0};ke.textWidth=v(ke.text,Le);var Oe=de.textWidth,Ge=Oe==null||Oe==="auto";if(typeof Oe=="string"&&Oe.charAt(Oe.length-1)==="%")ke.percentWidth=Oe,ve.push(ke),Oe=0;else{if(Ge){Oe=ke.textWidth;var at=de.textBackgroundColor,dt=at&&at.image;dt&&(dt=F.findExistImage(dt),F.isImageReady(dt)&&(Oe=Math.max(Oe,dt.width*rt/dt.height)))}var Pt=me?me[1]+me[3]:0;Oe+=Pt;var bt=we!=null?we-Ot:null;bt!=null&&btle)N="",V=[];else if(be!=null)for(var we=_(be-(G?G[1]+G[3]:0),B,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),Re=0,ge=V.length;ReW&&m(G,N.substring(W,Y)),m(G,z[2],z[1]),W=l.lastIndex}WRe)return{lines:[],width:0,height:0};ke.textWidth=v(ke.text,Le);var Oe=de.textWidth,Ge=Oe==null||Oe==="auto";if(typeof Oe=="string"&&Oe.charAt(Oe.length-1)==="%")ke.percentWidth=Oe,ve.push(ke),Oe=0;else{if(Ge){Oe=ke.textWidth;var at=de.textBackgroundColor,dt=at&&at.image;dt&&(dt=F.findExistImage(dt),F.isImageReady(dt)&&(Oe=Math.max(Oe,dt.width*rt/dt.height)))}var Rt=me?me[1]+me[3]:0;Oe+=Rt;var bt=we!=null?we-Ot:null;bt!=null&&bt1&&arguments[1]!==void 0?arguments[1]:0,p=(M[b[u+0]]+M[b[u+1]]+M[b[u+2]]+M[b[u+3]]+"-"+M[b[u+4]]+M[b[u+5]]+"-"+M[b[u+6]]+M[b[u+7]]+"-"+M[b[u+8]]+M[b[u+9]]+"-"+M[b[u+10]]+M[b[u+11]]+M[b[u+12]]+M[b[u+13]]+M[b[u+14]]+M[b[u+15]]).toLowerCase();if(!S(p))throw TypeError("Stringified UUID is invalid");return p}var g=E;function r(b,u,p){b=b||{};var v=b.random||(b.rng||R)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,u){p=p||0;for(var a=0;a<16;++a)u[p+a]=v[a];return u}return g(v)}var l=te.a=r},"7SHv":function(ze,te,P){var X=P("LPTA"),F=X.devicePixelRatio,R=P("bYtY"),j=P("SUKs"),T=P("mFDi"),S=P("BPZU"),M=P("Xmg4"),c=P("mLcG"),E=P("Dagg"),g=P("ItGF"),r=1e5,l=314159,b=.01,u=.001;function p(_){return parseInt(_,10)}function v(_){return _?_.__builtin__?!0:!(typeof _.resize!="function"||typeof _.refresh!="function"):!1}var a=new T(0,0,0,0),t=new T(0,0,0,0);function s(_,f,o){return a.copy(_.getBoundingRect()),_.transform&&a.applyTransform(_.transform),t.width=f,t.height=o,!a.intersect(t)}function h(_,f){if(_===f)return!1;if(!_||!f||_.length!==f.length)return!0;for(var o=0;o<_.length;o++)if(_[o]!==f[o])return!0;return!1}function y(_,f){for(var o=0;o<_.length;o++){var i=_[o];i.setTransform(f),f.beginPath(),i.buildPath(f,i.shape),f.clip(),i.restoreTransform(f)}}function D(_,f){var o=document.createElement("div");return o.style.cssText=["position:relative","width:"+_+"px","height:"+f+"px","padding:0","margin:0","border-width:0"].join(";")+";",o}var C=function(_,f,o){this.type="canvas";var i=!_.nodeName||_.nodeName.toUpperCase()==="CANVAS";this._opts=o=R.extend({},o||{}),this.dpr=o.devicePixelRatio||F,this._singleCanvas=i,this.root=_;var d=_.style;d&&(d["-webkit-tap-highlight-color"]="transparent",d["-webkit-user-select"]=d["user-select"]=d["-webkit-touch-callout"]="none",_.innerHTML=""),this.storage=f;var A=this._zlevelList=[],O=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var k=_.width,N=_.height;o.width!=null&&(k=o.width),o.height!=null&&(N=o.height),this.dpr=o.devicePixelRatio||1,_.width=k*this.dpr,_.height=N*this.dpr,this._width=k,this._height=N;var B=new M(_,this,this.dpr);B.__builtin__=!0,B.initContext(),O[l]=B,B.zlevel=l,A.push(l),this._domRoot=_}else{this._width=this._getSize(0),this._height=this._getSize(1);var m=this._domRoot=D(this._width,this._height);_.appendChild(m)}this._hoverlayer=null,this._hoverElements=[]};C.prototype={constructor:C,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var _=this.getViewportRoot();if(_)return{offsetLeft:_.offsetLeft||0,offsetTop:_.offsetTop||0}},refresh:function(_){var f=this.storage.getDisplayList(!0),o=this._zlevelList;this._redrawId=Math.random(),this._paintList(f,_,this._redrawId);for(var i=0;i=0&&o.splice(i,1),_.__hoverMir=null},clearHover:function(_){for(var f=this._hoverElements,o=0;o15)break}}A.__drawIndex=V,A.__drawIndex0&&_>i[0]){for(O=0;O_);O++);A=o[i[O]]}if(i.splice(O+1,0,_),o[_]=f,!f.virtual)if(A){var k=A.dom;k.nextSibling?m.insertBefore(f.dom,k.nextSibling):m.appendChild(f.dom)}else m.firstChild?m.insertBefore(f.dom,m.firstChild):m.appendChild(f.dom)},eachLayer:function(_,f){var o=this._zlevelList,i,d;for(d=0;d0?b:0),this._needsManuallyCompositing),k.__builtin__||j("ZLevel "+m+" has been used by unkown layer "+k.id),k!==d&&(k.__used=!0,k.__startIndex!==o&&(k.__dirty=!0),k.__startIndex=o,k.incremental?k.__drawIndex=-1:k.__drawIndex=o,f(o),d=k),i.__dirty&&(k.__dirty=!0,k.incremental&&k.__drawIndex<0&&(k.__drawIndex=o))}f(o),this.eachBuiltinLayer(function(N,B){!N.__used&&N.getElementCount()>0&&(N.__dirty=!0,N.__startIndex=N.__endIndex=N.__drawIndex=0),N.__dirty&&N.__drawIndex<0&&(N.__drawIndex=N.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(_){_.clear()},setBackgroundColor:function(_){this._backgroundColor=_},configLayer:function(_,f){if(f){var o=this._layerConfig;o[_]?R.merge(o[_],f,!0):o[_]=f;for(var i=0;i0&&arguments[0]!==void 0?arguments[0]:[],v=new Map;function a(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(t||[]).forEach(function(h){var y=h.key,D=h.children;Object(T.a)(y!=null,"Tree node must have a certain key: [".concat(s).concat(y,"]"));var C=String(y);Object(T.a)(!v.has(C)||y===null||y===void 0,"Same 'key' exist in the Tree: ".concat(C)),v.set(C,!0),a(D,"".concat(s).concat(C," > "))})}a(p)}function E(p){function v(a){var t=Object(j.a)(a);return t.map(function(s){if(!Object(S.i)(s))return Object(T.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var h=s.key,y=s.props,D=y.children,C=Object(R.a)(y,["children"]),I=Object(F.a)({key:h},C),_=v(D);return _.length&&(I.children=_),I}).filter(function(s){return s})}return v(p)}function g(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=new Set(v===!0?[]:v),t=[];function s(h){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(D,C){var I=Object(S.h)(y?y.pos:"0",C),_=M(D.key,I),f=Object(F.a)(Object(F.a)({},D),{},{parent:y,pos:I,children:null,data:D,isStart:[].concat(Object(X.a)(y?y.isStart:[]),[C===0]),isEnd:[].concat(Object(X.a)(y?y.isEnd:[]),[C===h.length-1])});return t.push(f),v===!0||a.has(_)?f.children=s(D.children||[],f):f.children=[],f})}return s(p),t}function r(p,v,a){var t;a?typeof a=="string"?t=function(y){return y[a]}:typeof a=="function"&&(t=function(y){return a(y)}):t=function(y,D){return M(y.key,D)};function s(h,y,D){var C=h?h.children:p,I=h?Object(S.h)(D.pos,y):"0";if(h){var _=t(h,I),f={node:h,index:y,pos:I,key:_,parentPos:D.node?D.pos:null,level:D.level+1};v(f)}C&&C.forEach(function(o,i){s(o,i,{node:h,pos:I,level:D?D.level+1:-1})})}s(null)}function l(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=v.initWrapper,t=v.processEntity,s=v.onProcessFinished,h=arguments.length>2?arguments[2]:void 0,y={},D={},C={posEntities:y,keyEntities:D};return a&&(C=a(C)||C),r(p,function(I){var _=I.node,f=I.index,o=I.pos,i=I.key,d=I.parentPos,A=I.level,O={node:_,index:f,key:i,pos:o,level:A},m=M(i,o);y[o]=O,D[m]=O,O.parent=y[d],O.parent&&(O.parent.children=O.parent.children||[],O.parent.children.push(O)),t&&t(O,C)},h),s&&s(C),C}function b(p,v){var a=v.expandedKeys,t=v.selectedKeys,s=v.loadedKeys,h=v.loadingKeys,y=v.checkedKeys,D=v.halfCheckedKeys,C=v.dragOverNodeKey,I=v.dropPosition,_=v.keyEntities,f=_[p],o={eventKey:p,expanded:a.indexOf(p)!==-1,selected:t.indexOf(p)!==-1,loaded:s.indexOf(p)!==-1,loading:h.indexOf(p)!==-1,checked:y.indexOf(p)!==-1,halfChecked:D.indexOf(p)!==-1,pos:String(f?f.pos:""),dragOver:C===p&&I===0,dragOverGapTop:C===p&&I===-1,dragOverGapBottom:C===p&&I===1};return o}function u(p){var v=p.data,a=p.expanded,t=p.selected,s=p.checked,h=p.loaded,y=p.loading,D=p.halfChecked,C=p.dragOver,I=p.dragOverGapTop,_=p.dragOverGapBottom,f=p.pos,o=p.active,i=Object(F.a)(Object(F.a)({},v),{},{expanded:a,selected:t,checked:s,loaded:h,loading:y,halfChecked:D,dragOver:C,dragOverGapTop:I,dragOverGapBottom:_,pos:f,active:o});return"props"in i||Object.defineProperty(i,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),p}}),i}},"8EBN":function(ze,te,P){(function(X){X(P("VrN/"))})(function(X){"use strict";X.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var F=0;F-1&&j.substring(M+1,j.length);if(c)return X.findModeByExtension(c)},X.findModeByName=function(j){j=j.toLowerCase();for(var T=0;T0&&b[b.length-1])&&(a[0]===6||a[0]===2)){g=0;continue}if(a[0]===3&&(!b||a[1]>b[0]&&a[1]=$.length?re.slice($.length):re}).join(` -`)}var a=[],t=["
                "],s=new u.a.Renderer,h=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function y(){a.length=0,t=["
                  "]}var D={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function C(J,U,H,$){if(U>=J.length||J[U].level<=H)return U;var re=J[U];$.push("
                • "+re.text+""),U++;var ee=[];return U=C(J,U,re.level,ee),ee.length>0&&($.push("
                    "),ee.forEach(function(Qe){$.push(Qe)}),$.push("
                  ")),$.push("
                • "),U=C(J,U,H,$),U}function I(){return C(a,0,0,t),t.push("
                "),t.join("")}var _={heading:function(U){var H=h.exec(U);if(H)return{type:"heading",raw:H[0],depth:H[1].length,text:H[2]}},fences:function(U){var H=this.rules.block.fences.exec(U);if(H){var $=H[0],re=v($,H[3]||""),ee=H[2]?H[2].trim():H[2];if(["latex","katex","math"].indexOf(ee)>=0){var Qe=i(),cn=re;re=Qe,d[Qe]={type:"block",expression:cn}}return{type:"code",raw:$,lang:ee,text:re}}}},f=/(?:\${2})([^\n`]+?)(?:\${2})/gi,o=0,i=function(){return"__special_katext_id_".concat(o++,"__")},d={};function A(){return d}function O(){o=0,d={}}function m(J){return J=J.replace(f,function(U,H){var $=i();return d[$]={type:"inline",expression:H},$}),J}var k=s.listitem;s.listitem=function(J){return k(m(J))};var N=s.paragraph;s.paragraph=function(J){return N(m(J))};var B=s.tablecell;s.tablecell=function(J,U){return B(m(J),U)},s.code=function(J,U,H){var $=(U||"").match(/\S*/)[0];return $?["latex","katex","math"].indexOf($)>=0?"

                ".concat(J,"

                "):'
                ').concat(H?J:Object(p.escape)(J,!0),`
                +`).map(function(re){var ee=re.match(/^\s+/);if(ee===null)return re;var Qe=Object(M.a)(ee,1),dn=Qe[0];return dn.length>=$.length?re.slice($.length):re}).join(` +`)}var a=[],t=["
                  "],s=new u.a.Renderer,h=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function y(){a.length=0,t=["
                    "]}var D={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function C(J,U,H,$){if(U>=J.length||J[U].level<=H)return U;var re=J[U];$.push("
                  • "+re.text+""),U++;var ee=[];return U=C(J,U,re.level,ee),ee.length>0&&($.push("
                      "),ee.forEach(function(Qe){$.push(Qe)}),$.push("
                    ")),$.push("
                  • "),U=C(J,U,H,$),U}function I(){return C(a,0,0,t),t.push("
                  "),t.join("")}var _={heading:function(U){var H=h.exec(U);if(H)return{type:"heading",raw:H[0],depth:H[1].length,text:H[2]}},fences:function(U){var H=this.rules.block.fences.exec(U);if(H){var $=H[0],re=v($,H[3]||""),ee=H[2]?H[2].trim():H[2];if(["latex","katex","math"].indexOf(ee)>=0){var Qe=i(),dn=re;re=Qe,d[Qe]={type:"block",expression:dn}}return{type:"code",raw:$,lang:ee,text:re}}}},f=/(?:\${2})([^\n`]+?)(?:\${2})/gi,o=0,i=function(){return"__special_katext_id_".concat(o++,"__")},d={};function A(){return d}function O(){o=0,d={}}function m(J){return J=J.replace(f,function(U,H){var $=i();return d[$]={type:"inline",expression:H},$}),J}var k=s.listitem;s.listitem=function(J){return k(m(J))};var N=s.paragraph;s.paragraph=function(J){return N(m(J))};var B=s.tablecell;s.tablecell=function(J,U){return B(m(J),U)},s.code=function(J,U,H){var $=(U||"").match(/\S*/)[0];return $?["latex","katex","math"].indexOf($)>=0?"

                  ".concat(J,"

                  "):'
                  ').concat(H?J:Object(p.escape)(J,!0),`
                  `):'
                  '+(H?J:Object(p.escape)(J,!0))+"
                  "},s.heading=function(J,U,H){var $=this.options.headerPrefix+H.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return a.push({anchor:$,level:U,text:J}),"'+J+""},u.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),u.a.use({tokenizer:_,renderer:s});var G=u.a,W=P("SJMd"),z=P("ulZh"),Y=P.n(z),V=P("m3rI"),q=P("Oy/b"),ne=P("p5ED"),ve=P("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -22,7 +22,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var le=function(J,U){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,$){H.__proto__=$}||function(H,$){for(var re in $)Object.prototype.hasOwnProperty.call($,re)&&(H[re]=$[re])})(J,U)};function be(J,U){function H(){this.constructor=J}le(J,U),J.prototype=U===null?Object.create(U):(H.prototype=U.prototype,new H)}function we(J,U,H,$){return new(H||(H=Promise))(function(re,ee){function Qe(Wn){try{Dn($.next(Wn))}catch(fn){ee(fn)}}function cn(Wn){try{Dn($.throw(Wn))}catch(fn){ee(fn)}}function Dn(Wn){var fn;Wn.done?re(Wn.value):(fn=Wn.value,fn instanceof H?fn:new H(function(tr){tr(fn)})).then(Qe,cn)}Dn(($=$.apply(J,U||[])).next())})}function Re(J,U){var H,$,re,ee,Qe={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return ee={next:cn(0),throw:cn(1),return:cn(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function cn(Dn){return function(Wn){return function(fn){if(H)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(H=1,$&&(re=2&fn[0]?$.return:fn[0]?$.throw||((re=$.return)&&re.call($),0):$.next)&&!(re=re.call($,fn[1])).done)return re;switch($=0,re&&(fn=[2&fn[0],re.value]),fn[0]){case 0:case 1:re=fn;break;case 4:return Qe.label++,{value:fn[1],done:!1};case 5:Qe.label++,$=fn[1],fn=[0];continue;case 7:fn=Qe.ops.pop(),Qe.trys.pop();continue;default:if(!(re=Qe.trys,(re=re.length>0&&re[re.length-1])||fn[0]!==6&&fn[0]!==2)){Qe=0;continue}if(fn[0]===3&&(!re||fn[1]>re[0]&&fn[1]0&&re[re.length-1])||pn[0]!==6&&pn[0]!==2)){Qe=0;continue}if(pn[0]===3&&(!re||pn[1]>re[0]&&pn[1]')||this;return Qe.colors=[],Qe.addTransparent=!1,Qe.colorBoxes=[],Qe.colors=$,Qe.currentColor=re,Qe.setCurrentColor=Qe.setCurrentColor.bind(Qe),Qe.getColorBox=Qe.getColorBox.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.whiteSpace="nowrap",this.colors.forEach(function(re){var ee=H.getColorBox(re);$.appendChild(ee),H.colorBoxes.push(ee)}),$},U.prototype.getColorBox=function(H){var $=this,re=this.uiStyleSettings.toolbarHeight/4,ee=this.uiStyleSettings.toolbarHeight-re,Qe=document.createElement("div");Qe.style.display="inline-block",Qe.style.boxSizing="content-box",Qe.style.width=ee-2+"px",Qe.style.height=ee-2+"px",Qe.style.padding="1px",Qe.style.marginRight="2px",Qe.style.marginBottom="2px",Qe.style.borderWidth="2px",Qe.style.borderStyle="solid",Qe.style.borderRadius=(ee+2)/2+"px",Qe.style.borderColor=H===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Qe.addEventListener("click",function(){$.setCurrentColor(H,Qe)});var cn=document.createElement("div");return cn.style.display="inline-block",cn.style.width=ee-2+"px",cn.style.height=ee-2+"px",cn.style.backgroundColor=H,cn.style.borderRadius=ee/2+"px",H==="transparent"&&(cn.style.fill=this.uiStyleSettings.toolboxAccentColor,cn.innerHTML=` + `))},J.prototype.show=function(U){var H;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=U,this.uiContainer.className=this.toolboxStyleClass.name+" "+((H=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&H!==void 0?H:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},J.prototype.setPanelButtons=function(U){var H,$,re=this;this.panels=U,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((H=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&H!==void 0?H:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(($=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&$!==void 0?$:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ee){var Qe;ee.uiStyleSettings=re.uiStyleSettings;var dn=document.createElement("div");dn.className=re.toolboxButtonStyleClass.name+" "+((Qe=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Qe!==void 0?Qe:re.toolboxButtonStyleColorsClass.name),dn.innerHTML=ee.icon,dn.title=ee.title,dn.addEventListener("click",function(){re.panelButtonClick(ee)}),re.panelButtons.push(dn),re.buttonRow.appendChild(dn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},J.prototype.panelButtonClick=function(U){var H=this,$=-1;if(U!==this.activePanel){$=this.panels.indexOf(U),this.panelRow.innerHTML="";var re=U.getUi();re.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(re),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=U}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){H.displayMode==="inline"?H.panelRow.style.display="none":H.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ee,Qe){var dn,On;ee.className=H.toolboxButtonStyleClass.name+" "+(Qe===$?""+((dn=H.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&dn!==void 0?dn:H.toolboxActiveButtonStyleColorsClass.name):""+((On=H.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&On!==void 0?On:H.toolboxButtonStyleColorsClass.name))})},J}(),Oe=function(J,U){this.title=J,this.icon=U},Ge=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.colors=[],Qe.addTransparent=!1,Qe.colorBoxes=[],Qe.colors=$,Qe.currentColor=re,Qe.setCurrentColor=Qe.setCurrentColor.bind(Qe),Qe.getColorBox=Qe.getColorBox.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.whiteSpace="nowrap",this.colors.forEach(function(re){var ee=H.getColorBox(re);$.appendChild(ee),H.colorBoxes.push(ee)}),$},U.prototype.getColorBox=function(H){var $=this,re=this.uiStyleSettings.toolbarHeight/4,ee=this.uiStyleSettings.toolbarHeight-re,Qe=document.createElement("div");Qe.style.display="inline-block",Qe.style.boxSizing="content-box",Qe.style.width=ee-2+"px",Qe.style.height=ee-2+"px",Qe.style.padding="1px",Qe.style.marginRight="2px",Qe.style.marginBottom="2px",Qe.style.borderWidth="2px",Qe.style.borderStyle="solid",Qe.style.borderRadius=(ee+2)/2+"px",Qe.style.borderColor=H===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Qe.addEventListener("click",function(){$.setCurrentColor(H,Qe)});var dn=document.createElement("div");return dn.style.display="inline-block",dn.style.width=ee-2+"px",dn.style.height=ee-2+"px",dn.style.backgroundColor=H,dn.style.borderRadius=ee/2+"px",H==="transparent"&&(dn.style.fill=this.uiStyleSettings.toolboxAccentColor,dn.innerHTML=` - `),Qe.appendChild(cn),Qe},U.prototype.setCurrentColor=function(H,$){var re=this;this.currentColor=H,this.colorBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(H)},U}(Oe),at=function(){function J(U,H,$){this._state="new",this._isSelected=!1,this._container=U,this._overlayContainer=H,this.globalSettings=$,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(J.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),J.prototype.ownsTarget=function(U){return!1},Object.defineProperty(J.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),J.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},J.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},J.prototype.pointerDown=function(U,H){},J.prototype.dblClick=function(U,H){},J.prototype.manipulate=function(U){},J.prototype.pointerUp=function(U){this.stateChanged()},J.prototype.dispose=function(){},J.prototype.addMarkerVisualToContainer=function(U){this.container.childNodes.length>0?this.container.insertBefore(U,this.container.childNodes[0]):this.container.appendChild(U)},J.prototype.getState=function(){return{typeName:J.typeName,state:this.state,notes:this.notes}},J.prototype.restoreState=function(U){this._state=U.state,this.notes=U.notes},J.prototype.scale=function(U,H){},J.prototype.colorChanged=function(U){this.onColorChanged&&this.onColorChanged(U),this.stateChanged()},J.prototype.fillColorChanged=function(U){this.onFillColorChanged&&this.onFillColorChanged(U),this.stateChanged()},J.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var U=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),U.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(U)&&this.onStateChanged(this)}},J.typeName="MarkerBase",J}(),dt=function(){function J(){this.findGripByVisual=this.findGripByVisual.bind(this)}return J.prototype.findGripByVisual=function(U){return this.topLeft.ownsTarget(U)?this.topLeft:this.topCenter.ownsTarget(U)?this.topCenter:this.topRight.ownsTarget(U)?this.topRight:this.centerLeft.ownsTarget(U)?this.centerLeft:this.centerRight.ownsTarget(U)?this.centerRight:this.bottomLeft.ownsTarget(U)?this.bottomLeft:this.bottomCenter.ownsTarget(U)?this.bottomCenter:this.bottomRight.ownsTarget(U)?this.bottomRight:void 0},J}(),Pt=function(){function J(){this.GRIP_SIZE=10,this.visual=fe.createGroup(),this.visual.appendChild(fe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(fe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(U){return U===this.visual||U===this.visual.childNodes[0]||U===this.visual.childNodes[1]},J}(),bt=function(){function J(){}return J.toITransformMatrix=function(U){return{a:U.a,b:U.b,c:U.c,d:U.d,e:U.e,f:U.f}},J.toSVGMatrix=function(U,H){return U.a=H.a,U.b=H.b,U.c=H.c,U.d=H.d,U.e=H.e,U.f=H.f,U},J}(),zt=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.left=0,ee.top=0,ee.width=0,ee.height=0,ee.defaultSize={x:50,y:20},ee.offsetX=0,ee.offsetY=0,ee.rotationAngle=0,ee.CB_DISTANCE=10,ee._suppressMarkerCreateEvent=!1,ee.container.transform.baseVal.appendItem(fe.createTransform()),ee.setupControlBox(),ee}return be(U,J),Object.defineProperty(U.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"visual",{get:function(){return this._visual},set:function(H){this._visual=H;var $=fe.createTransform();this._visual.transform.baseVal.appendItem($)},enumerable:!1,configurable:!0}),U.prototype.ownsTarget=function(H){return!!J.prototype.ownsTarget.call(this,H)||!!(this.controlGrips.findGripByVisual(H)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(H))},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="new"&&(this.left=H.x,this.top=H.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var re=this.unrotatePoint(H);if(this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.offsetX=re.x-this.left,this.offsetY=re.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual($),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($)){this.activeGrip=this.rotatorGrip;var ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ee.x-this.width/2,this.top=ee.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Qe=this.container.transform.baseVal.getItem(0);Qe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Qe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},U.prototype.pointerUp=function(H){var $=this.state;J.prototype.pointerUp.call(this,H),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(H),this._state="select",$==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},U.prototype.moveVisual=function(H){this.visual.style.transform="translate("+H.x+"px, "+H.y+"px)"},U.prototype.manipulate=function(H){var $=this.unrotatePoint(H);this.state==="creating"?this.resize(H):this.state==="move"?(this.left=this.manipulationStartLeft+($.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+($.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize($):this.state==="rotate"&&this.rotate(H)},U.prototype.resize=function(H){var $=this.manipulationStartLeft,re=this.manipulationStartWidth,ee=this.manipulationStartTop,Qe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:$=this.manipulationStartLeft+H.x-this.manipulationStartX,re=this.manipulationStartWidth+this.manipulationStartLeft-$;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:re=this.manipulationStartWidth+H.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ee=this.manipulationStartTop+H.y-this.manipulationStartY,Qe=this.manipulationStartHeight+this.manipulationStartTop-ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Qe=this.manipulationStartHeight+H.y-this.manipulationStartY}re>=0?(this.left=$,this.width=re):(this.left=$+re,this.width=-re),Qe>=0?(this.top=ee,this.height=Qe):(this.top=ee+Qe,this.height=-Qe),this.setSize()},U.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},U.prototype.rotate=function(H){if(Math.abs(H.x-this.centerX)>.1){var $=Math.sign(H.x-this.centerX);this.rotationAngle=180*Math.atan((H.y-this.centerY)/(H.x-this.centerX))/Math.PI+90*$,this.applyRotation()}},U.prototype.applyRotation=function(){var H=this.container.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(H,0)},U.prototype.rotatePoint=function(H){if(this.rotationAngle===0)return H;var $=this.container.getCTM(),re=fe.createPoint(H.x,H.y);return{x:(re=re.matrixTransform($)).x,y:re.y}},U.prototype.unrotatePoint=function(H){if(this.rotationAngle===0)return H;var $=this.container.getCTM();$=$.inverse();var re=fe.createPoint(H.x,H.y);return{x:(re=re.matrixTransform($)).x,y:re.y}},U.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},U.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},U.prototype.setupControlBox=function(){this.controlBox=fe.createGroup();var H=fe.createTransform();H.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(H),this.container.appendChild(this.controlBox),this.controlRect=fe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=fe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new dt,this.addControlGrips(),this.controlBox.style.display="none"},U.prototype.adjustControlBox=function(){var H=this.controlBox.transform.baseVal.getItem(0);H.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(H,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},U.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},U.prototype.createGrip=function(){var H=new Pt;return H.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(H.visual),H},U.prototype.positionGrips=function(){var H=this.controlGrips.topLeft.GRIP_SIZE,$=-H/2,re=$,ee=(this.width+this.CB_DISTANCE)/2-H/2,Qe=(this.height+this.CB_DISTANCE)/2-H/2,cn=this.height+this.CB_DISTANCE-H/2,Dn=this.width+this.CB_DISTANCE-H/2;this.positionGrip(this.controlGrips.topLeft.visual,$,re),this.positionGrip(this.controlGrips.topCenter.visual,ee,re),this.positionGrip(this.controlGrips.topRight.visual,Dn,re),this.positionGrip(this.controlGrips.centerLeft.visual,$,Qe),this.positionGrip(this.controlGrips.centerRight.visual,Dn,Qe),this.positionGrip(this.controlGrips.bottomLeft.visual,$,cn),this.positionGrip(this.controlGrips.bottomCenter.visual,ee,cn),this.positionGrip(this.controlGrips.bottomRight.visual,Dn,cn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ee,re-3*this.CB_DISTANCE)},U.prototype.positionGrip=function(H,$,re){var ee=H.transform.baseVal.getItem(0);ee.setTranslate($,re),H.transform.baseVal.replaceItem(ee,0)},U.prototype.hideControlBox=function(){this.controlBox.style.display="none"},U.prototype.showControlBox=function(){this.controlBox.style.display=""},U.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:bt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:bt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},J.prototype.getState.call(this))},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.left=$.left,this.top=$.top,this.width=$.width,this.height=$.height,this.rotationAngle=$.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(bt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,$.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(bt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,$.containerTransformMatrix))},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$);var re=this.rotatePoint({x:this.left,y:this.top}),ee=this.unrotatePoint({x:re.x*H,y:re.y*$});this.left=ee.x,this.top=ee.y,this.width=this.width*H,this.height=this.height*$,this.adjustControlBox()},U}(at),It=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.fillColor="transparent",ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.opacity=1,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setFillColor=ee.setFillColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.createVisual=ee.createVisual.bind(ee),ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual)},U.prototype.createVisual=function(){this.visual=fe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="new"&&(this.createVisual(),this.moveVisual(H),this._state="creating")},U.prototype.manipulate=function(H){J.prototype.manipulate.call(this,H)},U.prototype.resize=function(H){J.prototype.resize.call(this,H),this.setSize()},U.prototype.setSize=function(){J.prototype.setSize.call(this),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},U.prototype.pointerUp=function(H){J.prototype.pointerUp.call(this,H),this.setSize()},U.prototype.setStrokeColor=function(H){this.strokeColor=H,this.visual&&fe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(H),this.stateChanged()},U.prototype.setFillColor=function(H){this.fillColor=H,this.visual&&fe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},U.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.visual&&fe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},U.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.visual&&fe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},U.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},J.prototype.getState.call(this))},U.prototype.restoreState=function(H){var $=H;this.fillColor=$.fillColor,this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.opacity=$.opacity,this.createVisual(),J.prototype.restoreState.call(this,H),this.setSize()},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.setSize()},U.title="Rectangle marker",U}(zt),on=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.widths=[],Qe.widthBoxes=[],Qe.widths=$,Qe.currentWidth=re,Qe.setCurrentWidth=Qe.setCurrentWidth.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.widths.forEach(function(re){var ee=document.createElement("div");ee.style.display="flex",ee.style.flexGrow="2",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=re===H.currentWidth?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentWidth(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.innerText=re.toString(),Qe.style.marginRight="5px",ee.appendChild(Qe);var cn=document.createElement("div");cn.style.minHeight="20px",cn.style.flexGrow="2",cn.style.display="flex",cn.style.alignItems="center";var Dn=document.createElement("hr");Dn.style.minWidth="20px",Dn.style.border="0px",Dn.style.borderTop=re+"px solid "+H.uiStyleSettings.toolboxColor,Dn.style.flexGrow="2",cn.appendChild(Dn),ee.appendChild(cn),H.widthBoxes.push(ee)}),$},U.prototype.setCurrentWidth=function(H,$){var re=this;this.currentWidth=H,this.widthBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},U}(Oe),dn=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.styles=[],Qe.styleBoxes=[],Qe.styles=$,Qe.currentStyle=re,Qe.setCurrentStyle=Qe.setCurrentStyle.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.styles.forEach(function(re){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/H.styles.length-5+"%",ee.style.borderColor=re===H.currentStyle?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentStyle(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.style.minHeight="20px",Qe.style.flexGrow="2",Qe.style.overflow="hidden";var cn=` + `),Qe.appendChild(dn),Qe},U.prototype.setCurrentColor=function(H,$){var re=this;this.currentColor=H,this.colorBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(H)},U}(Oe),at=function(){function J(U,H,$){this._state="new",this._isSelected=!1,this._container=U,this._overlayContainer=H,this.globalSettings=$,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(J.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),J.prototype.ownsTarget=function(U){return!1},Object.defineProperty(J.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),J.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},J.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},J.prototype.pointerDown=function(U,H){},J.prototype.dblClick=function(U,H){},J.prototype.manipulate=function(U){},J.prototype.pointerUp=function(U){this.stateChanged()},J.prototype.dispose=function(){},J.prototype.addMarkerVisualToContainer=function(U){this.container.childNodes.length>0?this.container.insertBefore(U,this.container.childNodes[0]):this.container.appendChild(U)},J.prototype.getState=function(){return{typeName:J.typeName,state:this.state,notes:this.notes}},J.prototype.restoreState=function(U){this._state=U.state,this.notes=U.notes},J.prototype.scale=function(U,H){},J.prototype.colorChanged=function(U){this.onColorChanged&&this.onColorChanged(U),this.stateChanged()},J.prototype.fillColorChanged=function(U){this.onFillColorChanged&&this.onFillColorChanged(U),this.stateChanged()},J.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var U=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),U.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(U)&&this.onStateChanged(this)}},J.typeName="MarkerBase",J}(),dt=function(){function J(){this.findGripByVisual=this.findGripByVisual.bind(this)}return J.prototype.findGripByVisual=function(U){return this.topLeft.ownsTarget(U)?this.topLeft:this.topCenter.ownsTarget(U)?this.topCenter:this.topRight.ownsTarget(U)?this.topRight:this.centerLeft.ownsTarget(U)?this.centerLeft:this.centerRight.ownsTarget(U)?this.centerRight:this.bottomLeft.ownsTarget(U)?this.bottomLeft:this.bottomCenter.ownsTarget(U)?this.bottomCenter:this.bottomRight.ownsTarget(U)?this.bottomRight:void 0},J}(),Rt=function(){function J(){this.GRIP_SIZE=10,this.visual=fe.createGroup(),this.visual.appendChild(fe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(fe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(U){return U===this.visual||U===this.visual.childNodes[0]||U===this.visual.childNodes[1]},J}(),bt=function(){function J(){}return J.toITransformMatrix=function(U){return{a:U.a,b:U.b,c:U.c,d:U.d,e:U.e,f:U.f}},J.toSVGMatrix=function(U,H){return U.a=H.a,U.b=H.b,U.c=H.c,U.d=H.d,U.e=H.e,U.f=H.f,U},J}(),Kt=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.left=0,ee.top=0,ee.width=0,ee.height=0,ee.defaultSize={x:50,y:20},ee.offsetX=0,ee.offsetY=0,ee.rotationAngle=0,ee.CB_DISTANCE=10,ee._suppressMarkerCreateEvent=!1,ee.container.transform.baseVal.appendItem(fe.createTransform()),ee.setupControlBox(),ee}return be(U,J),Object.defineProperty(U.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"visual",{get:function(){return this._visual},set:function(H){this._visual=H;var $=fe.createTransform();this._visual.transform.baseVal.appendItem($)},enumerable:!1,configurable:!0}),U.prototype.ownsTarget=function(H){return!!J.prototype.ownsTarget.call(this,H)||!!(this.controlGrips.findGripByVisual(H)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(H))},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="new"&&(this.left=H.x,this.top=H.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var re=this.unrotatePoint(H);if(this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.offsetX=re.x-this.left,this.offsetY=re.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual($),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($)){this.activeGrip=this.rotatorGrip;var ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ee.x-this.width/2,this.top=ee.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Qe=this.container.transform.baseVal.getItem(0);Qe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Qe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},U.prototype.pointerUp=function(H){var $=this.state;J.prototype.pointerUp.call(this,H),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(H),this._state="select",$==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},U.prototype.moveVisual=function(H){this.visual.style.transform="translate("+H.x+"px, "+H.y+"px)"},U.prototype.manipulate=function(H){var $=this.unrotatePoint(H);this.state==="creating"?this.resize(H):this.state==="move"?(this.left=this.manipulationStartLeft+($.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+($.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize($):this.state==="rotate"&&this.rotate(H)},U.prototype.resize=function(H){var $=this.manipulationStartLeft,re=this.manipulationStartWidth,ee=this.manipulationStartTop,Qe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:$=this.manipulationStartLeft+H.x-this.manipulationStartX,re=this.manipulationStartWidth+this.manipulationStartLeft-$;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:re=this.manipulationStartWidth+H.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ee=this.manipulationStartTop+H.y-this.manipulationStartY,Qe=this.manipulationStartHeight+this.manipulationStartTop-ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Qe=this.manipulationStartHeight+H.y-this.manipulationStartY}re>=0?(this.left=$,this.width=re):(this.left=$+re,this.width=-re),Qe>=0?(this.top=ee,this.height=Qe):(this.top=ee+Qe,this.height=-Qe),this.setSize()},U.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},U.prototype.rotate=function(H){if(Math.abs(H.x-this.centerX)>.1){var $=Math.sign(H.x-this.centerX);this.rotationAngle=180*Math.atan((H.y-this.centerY)/(H.x-this.centerX))/Math.PI+90*$,this.applyRotation()}},U.prototype.applyRotation=function(){var H=this.container.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(H,0)},U.prototype.rotatePoint=function(H){if(this.rotationAngle===0)return H;var $=this.container.getCTM(),re=fe.createPoint(H.x,H.y);return{x:(re=re.matrixTransform($)).x,y:re.y}},U.prototype.unrotatePoint=function(H){if(this.rotationAngle===0)return H;var $=this.container.getCTM();$=$.inverse();var re=fe.createPoint(H.x,H.y);return{x:(re=re.matrixTransform($)).x,y:re.y}},U.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},U.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},U.prototype.setupControlBox=function(){this.controlBox=fe.createGroup();var H=fe.createTransform();H.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(H),this.container.appendChild(this.controlBox),this.controlRect=fe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=fe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new dt,this.addControlGrips(),this.controlBox.style.display="none"},U.prototype.adjustControlBox=function(){var H=this.controlBox.transform.baseVal.getItem(0);H.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(H,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},U.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},U.prototype.createGrip=function(){var H=new Rt;return H.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(H.visual),H},U.prototype.positionGrips=function(){var H=this.controlGrips.topLeft.GRIP_SIZE,$=-H/2,re=$,ee=(this.width+this.CB_DISTANCE)/2-H/2,Qe=(this.height+this.CB_DISTANCE)/2-H/2,dn=this.height+this.CB_DISTANCE-H/2,On=this.width+this.CB_DISTANCE-H/2;this.positionGrip(this.controlGrips.topLeft.visual,$,re),this.positionGrip(this.controlGrips.topCenter.visual,ee,re),this.positionGrip(this.controlGrips.topRight.visual,On,re),this.positionGrip(this.controlGrips.centerLeft.visual,$,Qe),this.positionGrip(this.controlGrips.centerRight.visual,On,Qe),this.positionGrip(this.controlGrips.bottomLeft.visual,$,dn),this.positionGrip(this.controlGrips.bottomCenter.visual,ee,dn),this.positionGrip(this.controlGrips.bottomRight.visual,On,dn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ee,re-3*this.CB_DISTANCE)},U.prototype.positionGrip=function(H,$,re){var ee=H.transform.baseVal.getItem(0);ee.setTranslate($,re),H.transform.baseVal.replaceItem(ee,0)},U.prototype.hideControlBox=function(){this.controlBox.style.display="none"},U.prototype.showControlBox=function(){this.controlBox.style.display=""},U.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:bt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:bt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},J.prototype.getState.call(this))},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.left=$.left,this.top=$.top,this.width=$.width,this.height=$.height,this.rotationAngle=$.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(bt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,$.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(bt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,$.containerTransformMatrix))},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$);var re=this.rotatePoint({x:this.left,y:this.top}),ee=this.unrotatePoint({x:re.x*H,y:re.y*$});this.left=ee.x,this.top=ee.y,this.width=this.width*H,this.height=this.height*$,this.adjustControlBox()},U}(at),Lt=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.fillColor="transparent",ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.opacity=1,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setFillColor=ee.setFillColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.createVisual=ee.createVisual.bind(ee),ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual)},U.prototype.createVisual=function(){this.visual=fe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="new"&&(this.createVisual(),this.moveVisual(H),this._state="creating")},U.prototype.manipulate=function(H){J.prototype.manipulate.call(this,H)},U.prototype.resize=function(H){J.prototype.resize.call(this,H),this.setSize()},U.prototype.setSize=function(){J.prototype.setSize.call(this),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},U.prototype.pointerUp=function(H){J.prototype.pointerUp.call(this,H),this.setSize()},U.prototype.setStrokeColor=function(H){this.strokeColor=H,this.visual&&fe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(H),this.stateChanged()},U.prototype.setFillColor=function(H){this.fillColor=H,this.visual&&fe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},U.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.visual&&fe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},U.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.visual&&fe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},U.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},J.prototype.getState.call(this))},U.prototype.restoreState=function(H){var $=H;this.fillColor=$.fillColor,this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.opacity=$.opacity,this.createVisual(),J.prototype.restoreState.call(this,H),this.setSize()},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.setSize()},U.title="Rectangle marker",U}(Kt),on=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.widths=[],Qe.widthBoxes=[],Qe.widths=$,Qe.currentWidth=re,Qe.setCurrentWidth=Qe.setCurrentWidth.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.widths.forEach(function(re){var ee=document.createElement("div");ee.style.display="flex",ee.style.flexGrow="2",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=re===H.currentWidth?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentWidth(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.innerText=re.toString(),Qe.style.marginRight="5px",ee.appendChild(Qe);var dn=document.createElement("div");dn.style.minHeight="20px",dn.style.flexGrow="2",dn.style.display="flex",dn.style.alignItems="center";var On=document.createElement("hr");On.style.minWidth="20px",On.style.border="0px",On.style.borderTop=re+"px solid "+H.uiStyleSettings.toolboxColor,On.style.flexGrow="2",dn.appendChild(On),ee.appendChild(dn),H.widthBoxes.push(ee)}),$},U.prototype.setCurrentWidth=function(H,$){var re=this;this.currentWidth=H,this.widthBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},U}(Oe),un=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.styles=[],Qe.styleBoxes=[],Qe.styles=$,Qe.currentStyle=re,Qe.setCurrentStyle=Qe.setCurrentStyle.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",this.styles.forEach(function(re){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/H.styles.length-5+"%",ee.style.borderColor=re===H.currentStyle?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentStyle(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.style.minHeight="20px",Qe.style.flexGrow="2",Qe.style.overflow="hidden";var dn=` - `;Qe.innerHTML=cn,ee.appendChild(Qe),H.styleBoxes.push(ee)}),$},U.prototype.setCurrentStyle=function(H,$){var re=this;this.currentStyle=H,this.styleBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},U}(Oe),Ie=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokeColor=re.defaultColor,ee.strokeWidth=re.defaultStrokeWidth,ee.strokeDasharray=re.defaultStrokeDasharray,ee.strokePanel=new Ge("Line color",re.defaultColorSet,re.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new dn("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return be(U,J),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="FrameMarker",U.title="Frame marker",U.icon='',U}(It),De=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ot=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.x1=0,ee.y1=0,ee.x2=0,ee.y2=0,ee.defaultLength=50,ee.manipulationStartX=0,ee.manipulationStartY=0,ee.manipulationStartX1=0,ee.manipulationStartY1=0,ee.manipulationStartX2=0,ee.manipulationStartY2=0,ee.setupControlBox(),ee}return be(U,J),U.prototype.ownsTarget=function(H){return!!J.prototype.ownsTarget.call(this,H)||!(!this.grip1.ownsTarget(H)&&!this.grip2.ownsTarget(H))},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.manipulationStartX=H.x,this.manipulationStartY=H.y,this.state==="new"&&(this.x1=H.x,this.y1=H.y,this.x2=H.x,this.y2=H.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget($)?this.activeGrip=this.grip1:this.grip2.ownsTarget($)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},U.prototype.pointerUp=function(H){var $=this.state;J.prototype.pointerUp.call(this,H),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(H),this._state="select",$==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},U.prototype.adjustVisual=function(){},U.prototype.manipulate=function(H){this.state==="creating"?this.resize(H):this.state==="move"?(this.x1=this.manipulationStartX1+H.x-this.manipulationStartX,this.y1=this.manipulationStartY1+H.y-this.manipulationStartY,this.x2=this.manipulationStartX2+H.x-this.manipulationStartX,this.y2=this.manipulationStartY2+H.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(H)},U.prototype.resize=function(H){switch(this.activeGrip){case this.grip1:this.x1=H.x,this.y1=H.y;break;case this.grip2:case void 0:this.x2=H.x,this.y2=H.y}this.adjustVisual(),this.adjustControlBox()},U.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},U.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},U.prototype.setupControlBox=function(){this.controlBox=fe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},U.prototype.adjustControlBox=function(){this.positionGrips()},U.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},U.prototype.createGrip=function(){var H=new Pt;return H.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(H.visual),H},U.prototype.positionGrips=function(){var H=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-H/2,this.y1-H/2),this.positionGrip(this.grip2.visual,this.x2-H/2,this.y2-H/2)},U.prototype.positionGrip=function(H,$,re){var ee=H.transform.baseVal.getItem(0);ee.setTranslate($,re),H.transform.baseVal.replaceItem(ee,0)},U.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},J.prototype.getState.call(this))},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.x1=$.x1,this.y1=$.y1,this.x2=$.x2,this.y2=$.y2},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.x1=this.x1*H,this.y1=this.y1*$,this.x2=this.x2*H,this.y2=this.y2*$,this.adjustVisual(),this.adjustControlBox()},U}(at),Et=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.strokeColor=re.defaultColor,ee.strokeWidth=re.defaultStrokeWidth,ee.strokeDasharray=re.defaultStrokeDasharray,ee.strokePanel=new Ge("Line color",re.defaultColorSet,re.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new dn("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorLine&&H!==this.visibleLine)},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.selectorLine=fe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=fe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},U.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),fe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),fe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),fe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},U.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},U.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},U.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.createVisual(),this.adjustVisual()},U.typeName="LineMarker",U.title="Line marker",U.icon='',U}(ot),Je=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.fonts=[],Qe.fontBoxes=[],Qe.fonts=$,Qe.currentFont=re,Qe.setCurrentFont=Qe.setCurrentFont.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.flexGrow="2",this.fonts.forEach(function(re){var ee=document.createElement("div");ee.style.display="inline-block",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/H.fonts.length-5+"%",ee.style.borderColor=re===H.currentFont?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentFont(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.style.display="flex",Qe.style.minHeight="20px",Qe.style.flexGrow="2",Qe.style.fontFamily=re,Qe.style.overflow="hidden";var cn=document.createElement("div");cn.style.whiteSpace="nowrap",cn.style.overflow="hidden",cn.style.textOverflow="ellipsis",cn.innerHTML="The quick brown fox jumps over the lazy dog",Qe.appendChild(cn),ee.appendChild(Qe),H.fontBoxes.push(ee)}),$},U.prototype.setCurrentFont=function(H,$){var re=this;this.currentFont=H,this.fontBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},U}(Oe),ft=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.color="transparent",ee.padding=5,ee.DEFAULT_TEXT="your text here",ee.text=ee.DEFAULT_TEXT,ee.isMoved=!1,ee.color=re.defaultColor,ee.fontFamily=re.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setColor=ee.setColor.bind(ee),ee.setFont=ee.setFont.bind(ee),ee.renderText=ee.renderText.bind(ee),ee.sizeText=ee.sizeText.bind(ee),ee.textEditDivClicked=ee.textEditDivClicked.bind(ee),ee.showTextEditor=ee.showTextEditor.bind(ee),ee.setSize=ee.setSize.bind(ee),ee.positionTextEditor=ee.positionTextEditor.bind(ee),ee.colorPanel=new Ge("Color",re.defaultColorSet,re.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.fontFamilyPanel=new Je("Font",re.defaultFontFamilies,re.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee}return be(U,J),U.prototype.ownsTarget=function(H){if(J.prototype.ownsTarget.call(this,H)||H===this.visual||H===this.textElement||H===this.bgRectangle)return!0;var $=!1;return this.textElement.childNodes.forEach(function(re){re===H&&($=!0)}),$},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.bgRectangle=fe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=fe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(fe.createTransform()),this.textElement.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.isMoved=!1,this.pointerDownPoint=H,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(H),this._state="creating")},U.prototype.renderText=function(){var H=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function($){H.textElement.appendChild(fe.createTSpan($.trim()===""?" ":$.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},U.prototype.getTextScale=function(){var H=this.textElement.getBBox(),$=1;if(H.width>0&&H.height>0){var re=(1*this.width-this.width*this.padding*2/100)/H.width,ee=(1*this.height-this.height*this.padding*2/100)/H.height;$=Math.min(re,ee)}return $},U.prototype.getTextPosition=function(H){var $=this.textElement.getBBox(),re=0,ee=0;return $.width>0&&$.height>0&&(re=(this.width-$.width*H)/2,ee=this.height/2-$.height*H/2),{x:re,y:ee}},U.prototype.sizeText=function(){var H=this.textElement.getBBox(),$=this.getTextScale(),re=this.getTextPosition($);re.y-=H.y*$,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+re.x+"px, "+re.y+"px) scale("+$+", "+$+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(re.x,re.y),this.textElement.transform.baseVal.getItem(1).setScale($,$))},U.prototype.manipulate=function(H){J.prototype.manipulate.call(this,H),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(H.x-this.pointerDownPoint.x)>5||Math.abs(H.y-this.pointerDownPoint.y)>5)},U.prototype.resize=function(H){J.prototype.resize.call(this,H),this.isMoved=!0,this.setSize(),this.sizeText()},U.prototype.setSize=function(){J.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},U.prototype.pointerUp=function(H){var $=this.state;$==="creating"&&(this._suppressMarkerCreateEvent=!0),J.prototype.pointerUp.call(this,H),this.setSize(),($==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},U.prototype.showTextEditor=function(){var H=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function($){$.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var $=Number.parseFloat(H.textEditor.style.fontSize);H.textEditor.clientWidth>=Number.parseInt(H.textEditor.style.maxWidth)&&$>.9;)$-=.1,H.textEditor.style.fontSize=Math.max($,.9)+"em"}),this.textEditor.addEventListener("keyup",function($){$.cancelBubble=!0}),this.textEditor.addEventListener("paste",function($){if($.clipboardData){var re=$.clipboardData.getData("text"),ee=window.getSelection();if(!ee.rangeCount)return!1;ee.deleteFromDocument(),ee.getRangeAt(0).insertNode(document.createTextNode(re)),$.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){H.textEditDivClicked(H.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},U.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var H=this.getTextScale(),$=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),re=this.textElement.getBBox(),ee={x:re.width*H,y:re.height*H};$.x-=ee.x/2,$.y-=ee.y/2,this.textEditor.style.top=$.y+"px",this.textEditor.style.left=$.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-$.x+"px",this.textEditor.style.fontSize=Math.max(16*H,12)+"px",this.textElement.style.display="none"}},U.prototype.textEditDivClicked=function(H){this.text=H.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},U.prototype.select=function(){J.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},U.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),J.prototype.deselect.call(this)},U.prototype.dblClick=function(H,$){J.prototype.dblClick.call(this,H,$),this.showTextEditor()},U.prototype.setColor=function(H){this.textElement&&fe.setAttributes(this.textElement,[["fill",H]]),this.color=H,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(H)},U.prototype.setFont=function(H){this.textElement&&fe.setAttributes(this.textElement,[["font-family",H]]),this.fontFamily=H,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},U.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},U.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){var $=H;this.color=$.color,this.fontFamily=$.fontFamily,this.padding=$.padding,this.text=$.text,this.createVisual(),J.prototype.restoreState.call(this,H),this.setSize()},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.setSize(),this.sizeText(),this.positionTextEditor()},U.typeName="TextMarker",U.title="Text marker",U.icon='',U}(zt),Me=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.color="transparent",ee.lineWidth=3,ee.drawing=!1,ee.pixelRatio=1,ee.color=re.defaultColor,ee.lineWidth=re.defaultStrokeWidth,ee.pixelRatio=re.freehandPixelRatio,ee.setColor=ee.setColor.bind(ee),ee.addCanvas=ee.addCanvas.bind(ee),ee.finishCreation=ee.finishCreation.bind(ee),ee.setLineWidth=ee.setLineWidth.bind(ee),ee.colorPanel=new Ge("Color",re.defaultColorSet,re.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.lineWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.lineWidthPanel.onWidthChanged=ee.setLineWidth,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.drawingImage)},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.drawingImage=fe.createImage(),this.visual.appendChild(this.drawingImage);var H=fe.createTransform();this.visual.transform.baseVal.appendItem(H),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(H.x,H.y),this.drawing=!0):J.prototype.pointerDown.call(this,H,$)},U.prototype.manipulate=function(H){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(H.x,H.y),this.canvasContext.stroke()):J.prototype.manipulate.call(this,H)},U.prototype.resize=function(H){J.prototype.resize.call(this,H),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},U.prototype.pointerUp=function(H){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):J.prototype.pointerUp.call(this,H)},U.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},U.prototype.select=function(){this.state==="creating"&&this.finishCreation(),J.prototype.select.call(this)},U.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),J.prototype.deselect.call(this)},U.prototype.finishCreation=function(){for(var H=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),$=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],re=$[0],ee=$[1],Qe=$[2],cn=$[3],Dn=!1,Wn=0;Wn0&&(Dn=!0,Wncn&&(cn=Wn),fn>Qe&&(Qe=fn));if(Dn){this.left=re/this.pixelRatio,this.top=ee/this.pixelRatio,this.width=(Qe-re)/this.pixelRatio,this.height=(cn-ee)/this.pixelRatio;var tr=document.createElement("canvas");tr.width=Qe-re,tr.height=cn-ee,tr.getContext("2d").putImageData(this.canvasContext.getImageData(re,ee,Qe-re,cn-ee),0,0),this.drawingImgUrl=tr.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},U.prototype.setDrawingImage=function(){fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},U.prototype.setColor=function(H){this.color=H,this.colorChanged(H)},U.prototype.setLineWidth=function(H){this.lineWidth=H},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({drawingImgUrl:this.drawingImgUrl},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){this.createVisual(),J.prototype.restoreState.call(this,H),this.drawingImgUrl=H.drawingImgUrl,this.setDrawingImage()},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.setDrawingImage()},U.typeName="FreehandMarker",U.title="Freehand marker",U.icon='',U}(zt),xe=function(J){function U(H,$,re){var ee=J.call(this,H,re||'')||this;return ee.typeBoxes=[],ee.currentType=$,ee.setCurrentType=ee.setCurrentType.bind(ee),ee}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");$.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2";for(var re=function(cn){var Dn="both";switch(cn){case 0:Dn="both";break;case 1:Dn="start";break;case 2:Dn="end";break;case 3:Dn="none"}var Wn=document.createElement("div");if(Wn.style.display="flex",Wn.style.flexGrow="2",Wn.style.alignItems="center",Wn.style.justifyContent="space-between",Wn.style.padding="5px",Wn.style.borderWidth="2px",Wn.style.borderStyle="solid",Wn.style.borderColor=Dn===ee.currentType?ee.uiStyleSettings.toolboxAccentColor:"transparent",Wn.addEventListener("click",function(){H.setCurrentType(Dn,Wn)}),$.appendChild(Wn),Dn==="both"||Dn==="start"){var fn=document.createElement("div");fn.style.display="flex",fn.style.alignItems="center",fn.style.minHeight="20px",fn.innerHTML=` + `;Qe.innerHTML=dn,ee.appendChild(Qe),H.styleBoxes.push(ee)}),$},U.prototype.setCurrentStyle=function(H,$){var re=this;this.currentStyle=H,this.styleBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},U}(Oe),Ie=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokeColor=re.defaultColor,ee.strokeWidth=re.defaultStrokeWidth,ee.strokeDasharray=re.defaultStrokeDasharray,ee.strokePanel=new Ge("Line color",re.defaultColorSet,re.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new un("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return be(U,J),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="FrameMarker",U.title="Frame marker",U.icon='',U}(Lt),De=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ot=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.x1=0,ee.y1=0,ee.x2=0,ee.y2=0,ee.defaultLength=50,ee.manipulationStartX=0,ee.manipulationStartY=0,ee.manipulationStartX1=0,ee.manipulationStartY1=0,ee.manipulationStartX2=0,ee.manipulationStartY2=0,ee.setupControlBox(),ee}return be(U,J),U.prototype.ownsTarget=function(H){return!!J.prototype.ownsTarget.call(this,H)||!(!this.grip1.ownsTarget(H)&&!this.grip2.ownsTarget(H))},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.manipulationStartX=H.x,this.manipulationStartY=H.y,this.state==="new"&&(this.x1=H.x,this.y1=H.y,this.x2=H.x,this.y2=H.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget($)?this.activeGrip=this.grip1:this.grip2.ownsTarget($)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},U.prototype.pointerUp=function(H){var $=this.state;J.prototype.pointerUp.call(this,H),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(H),this._state="select",$==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},U.prototype.adjustVisual=function(){},U.prototype.manipulate=function(H){this.state==="creating"?this.resize(H):this.state==="move"?(this.x1=this.manipulationStartX1+H.x-this.manipulationStartX,this.y1=this.manipulationStartY1+H.y-this.manipulationStartY,this.x2=this.manipulationStartX2+H.x-this.manipulationStartX,this.y2=this.manipulationStartY2+H.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(H)},U.prototype.resize=function(H){switch(this.activeGrip){case this.grip1:this.x1=H.x,this.y1=H.y;break;case this.grip2:case void 0:this.x2=H.x,this.y2=H.y}this.adjustVisual(),this.adjustControlBox()},U.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},U.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},U.prototype.setupControlBox=function(){this.controlBox=fe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},U.prototype.adjustControlBox=function(){this.positionGrips()},U.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},U.prototype.createGrip=function(){var H=new Rt;return H.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(H.visual),H},U.prototype.positionGrips=function(){var H=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-H/2,this.y1-H/2),this.positionGrip(this.grip2.visual,this.x2-H/2,this.y2-H/2)},U.prototype.positionGrip=function(H,$,re){var ee=H.transform.baseVal.getItem(0);ee.setTranslate($,re),H.transform.baseVal.replaceItem(ee,0)},U.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},J.prototype.getState.call(this))},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.x1=$.x1,this.y1=$.y1,this.x2=$.x2,this.y2=$.y2},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.x1=this.x1*H,this.y1=this.y1*$,this.x2=this.x2*H,this.y2=this.y2*$,this.adjustVisual(),this.adjustControlBox()},U}(at),Et=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.strokeColor=re.defaultColor,ee.strokeWidth=re.defaultStrokeWidth,ee.strokeDasharray=re.defaultStrokeDasharray,ee.strokePanel=new Ge("Line color",re.defaultColorSet,re.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new un("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorLine&&H!==this.visibleLine)},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.selectorLine=fe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=fe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},U.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),fe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),fe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),fe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},U.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},U.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},U.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.createVisual(),this.adjustVisual()},U.typeName="LineMarker",U.title="Line marker",U.icon='',U}(ot),Je=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.fonts=[],Qe.fontBoxes=[],Qe.fonts=$,Qe.currentFont=re,Qe.setCurrentFont=Qe.setCurrentFont.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.overflow="hidden",$.style.flexGrow="2",this.fonts.forEach(function(re){var ee=document.createElement("div");ee.style.display="inline-block",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/H.fonts.length-5+"%",ee.style.borderColor=re===H.currentFont?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentFont(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.style.display="flex",Qe.style.minHeight="20px",Qe.style.flexGrow="2",Qe.style.fontFamily=re,Qe.style.overflow="hidden";var dn=document.createElement("div");dn.style.whiteSpace="nowrap",dn.style.overflow="hidden",dn.style.textOverflow="ellipsis",dn.innerHTML="The quick brown fox jumps over the lazy dog",Qe.appendChild(dn),ee.appendChild(Qe),H.fontBoxes.push(ee)}),$},U.prototype.setCurrentFont=function(H,$){var re=this;this.currentFont=H,this.fontBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},U}(Oe),ft=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.color="transparent",ee.padding=5,ee.DEFAULT_TEXT="your text here",ee.text=ee.DEFAULT_TEXT,ee.isMoved=!1,ee.color=re.defaultColor,ee.fontFamily=re.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setColor=ee.setColor.bind(ee),ee.setFont=ee.setFont.bind(ee),ee.renderText=ee.renderText.bind(ee),ee.sizeText=ee.sizeText.bind(ee),ee.textEditDivClicked=ee.textEditDivClicked.bind(ee),ee.showTextEditor=ee.showTextEditor.bind(ee),ee.setSize=ee.setSize.bind(ee),ee.positionTextEditor=ee.positionTextEditor.bind(ee),ee.colorPanel=new Ge("Color",re.defaultColorSet,re.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.fontFamilyPanel=new Je("Font",re.defaultFontFamilies,re.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee}return be(U,J),U.prototype.ownsTarget=function(H){if(J.prototype.ownsTarget.call(this,H)||H===this.visual||H===this.textElement||H===this.bgRectangle)return!0;var $=!1;return this.textElement.childNodes.forEach(function(re){re===H&&($=!0)}),$},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.bgRectangle=fe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=fe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(fe.createTransform()),this.textElement.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.isMoved=!1,this.pointerDownPoint=H,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(H),this._state="creating")},U.prototype.renderText=function(){var H=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function($){H.textElement.appendChild(fe.createTSpan($.trim()===""?" ":$.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},U.prototype.getTextScale=function(){var H=this.textElement.getBBox(),$=1;if(H.width>0&&H.height>0){var re=(1*this.width-this.width*this.padding*2/100)/H.width,ee=(1*this.height-this.height*this.padding*2/100)/H.height;$=Math.min(re,ee)}return $},U.prototype.getTextPosition=function(H){var $=this.textElement.getBBox(),re=0,ee=0;return $.width>0&&$.height>0&&(re=(this.width-$.width*H)/2,ee=this.height/2-$.height*H/2),{x:re,y:ee}},U.prototype.sizeText=function(){var H=this.textElement.getBBox(),$=this.getTextScale(),re=this.getTextPosition($);re.y-=H.y*$,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+re.x+"px, "+re.y+"px) scale("+$+", "+$+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(re.x,re.y),this.textElement.transform.baseVal.getItem(1).setScale($,$))},U.prototype.manipulate=function(H){J.prototype.manipulate.call(this,H),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(H.x-this.pointerDownPoint.x)>5||Math.abs(H.y-this.pointerDownPoint.y)>5)},U.prototype.resize=function(H){J.prototype.resize.call(this,H),this.isMoved=!0,this.setSize(),this.sizeText()},U.prototype.setSize=function(){J.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},U.prototype.pointerUp=function(H){var $=this.state;$==="creating"&&(this._suppressMarkerCreateEvent=!0),J.prototype.pointerUp.call(this,H),this.setSize(),($==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},U.prototype.showTextEditor=function(){var H=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function($){$.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var $=Number.parseFloat(H.textEditor.style.fontSize);H.textEditor.clientWidth>=Number.parseInt(H.textEditor.style.maxWidth)&&$>.9;)$-=.1,H.textEditor.style.fontSize=Math.max($,.9)+"em"}),this.textEditor.addEventListener("keyup",function($){$.cancelBubble=!0}),this.textEditor.addEventListener("paste",function($){if($.clipboardData){var re=$.clipboardData.getData("text"),ee=window.getSelection();if(!ee.rangeCount)return!1;ee.deleteFromDocument(),ee.getRangeAt(0).insertNode(document.createTextNode(re)),$.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){H.textEditDivClicked(H.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},U.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var H=this.getTextScale(),$=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),re=this.textElement.getBBox(),ee={x:re.width*H,y:re.height*H};$.x-=ee.x/2,$.y-=ee.y/2,this.textEditor.style.top=$.y+"px",this.textEditor.style.left=$.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-$.x+"px",this.textEditor.style.fontSize=Math.max(16*H,12)+"px",this.textElement.style.display="none"}},U.prototype.textEditDivClicked=function(H){this.text=H.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},U.prototype.select=function(){J.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},U.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),J.prototype.deselect.call(this)},U.prototype.dblClick=function(H,$){J.prototype.dblClick.call(this,H,$),this.showTextEditor()},U.prototype.setColor=function(H){this.textElement&&fe.setAttributes(this.textElement,[["fill",H]]),this.color=H,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(H)},U.prototype.setFont=function(H){this.textElement&&fe.setAttributes(this.textElement,[["font-family",H]]),this.fontFamily=H,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},U.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},U.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){var $=H;this.color=$.color,this.fontFamily=$.fontFamily,this.padding=$.padding,this.text=$.text,this.createVisual(),J.prototype.restoreState.call(this,H),this.setSize()},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.setSize(),this.sizeText(),this.positionTextEditor()},U.typeName="TextMarker",U.title="Text marker",U.icon='',U}(Kt),Me=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.color="transparent",ee.lineWidth=3,ee.drawing=!1,ee.pixelRatio=1,ee.color=re.defaultColor,ee.lineWidth=re.defaultStrokeWidth,ee.pixelRatio=re.freehandPixelRatio,ee.setColor=ee.setColor.bind(ee),ee.addCanvas=ee.addCanvas.bind(ee),ee.finishCreation=ee.finishCreation.bind(ee),ee.setLineWidth=ee.setLineWidth.bind(ee),ee.colorPanel=new Ge("Color",re.defaultColorSet,re.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.lineWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.lineWidthPanel.onWidthChanged=ee.setLineWidth,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.drawingImage)},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.drawingImage=fe.createImage(),this.visual.appendChild(this.drawingImage);var H=fe.createTransform();this.visual.transform.baseVal.appendItem(H),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(H.x,H.y),this.drawing=!0):J.prototype.pointerDown.call(this,H,$)},U.prototype.manipulate=function(H){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(H.x,H.y),this.canvasContext.stroke()):J.prototype.manipulate.call(this,H)},U.prototype.resize=function(H){J.prototype.resize.call(this,H),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},U.prototype.pointerUp=function(H){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):J.prototype.pointerUp.call(this,H)},U.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},U.prototype.select=function(){this.state==="creating"&&this.finishCreation(),J.prototype.select.call(this)},U.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),J.prototype.deselect.call(this)},U.prototype.finishCreation=function(){for(var H=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),$=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],re=$[0],ee=$[1],Qe=$[2],dn=$[3],On=!1,Wn=0;Wn0&&(On=!0,Wndn&&(dn=Wn),pn>Qe&&(Qe=pn));if(On){this.left=re/this.pixelRatio,this.top=ee/this.pixelRatio,this.width=(Qe-re)/this.pixelRatio,this.height=(dn-ee)/this.pixelRatio;var er=document.createElement("canvas");er.width=Qe-re,er.height=dn-ee,er.getContext("2d").putImageData(this.canvasContext.getImageData(re,ee,Qe-re,dn-ee),0,0),this.drawingImgUrl=er.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},U.prototype.setDrawingImage=function(){fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},U.prototype.setColor=function(H){this.color=H,this.colorChanged(H)},U.prototype.setLineWidth=function(H){this.lineWidth=H},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({drawingImgUrl:this.drawingImgUrl},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){this.createVisual(),J.prototype.restoreState.call(this,H),this.drawingImgUrl=H.drawingImgUrl,this.setDrawingImage()},U.prototype.scale=function(H,$){J.prototype.scale.call(this,H,$),this.setDrawingImage()},U.typeName="FreehandMarker",U.title="Freehand marker",U.icon='',U}(Kt),xe=function(J){function U(H,$,re){var ee=J.call(this,H,re||'')||this;return ee.typeBoxes=[],ee.currentType=$,ee.setCurrentType=ee.setCurrentType.bind(ee),ee}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");$.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2";for(var re=function(dn){var On="both";switch(dn){case 0:On="both";break;case 1:On="start";break;case 2:On="end";break;case 3:On="none"}var Wn=document.createElement("div");if(Wn.style.display="flex",Wn.style.flexGrow="2",Wn.style.alignItems="center",Wn.style.justifyContent="space-between",Wn.style.padding="5px",Wn.style.borderWidth="2px",Wn.style.borderStyle="solid",Wn.style.borderColor=On===ee.currentType?ee.uiStyleSettings.toolboxAccentColor:"transparent",Wn.addEventListener("click",function(){H.setCurrentType(On,Wn)}),$.appendChild(Wn),On==="both"||On==="start"){var pn=document.createElement("div");pn.style.display="flex",pn.style.alignItems="center",pn.style.minHeight="20px",pn.innerHTML=` - `,fn.style.marginLeft="5px",Wn.appendChild(fn)}var tr=document.createElement("div");tr.style.display="flex",tr.style.alignItems="center",tr.style.minHeight="20px",tr.style.flexGrow="2";var nr=document.createElement("hr");if(nr.style.minWidth="20px",nr.style.border="0px",nr.style.borderTop="3px solid "+(ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxColor:"#eeeeee"),nr.style.flexGrow="2",tr.appendChild(nr),Wn.appendChild(tr),Dn==="both"||Dn==="end"){var jr=document.createElement("div");jr.style.display="flex",jr.style.alignItems="center",jr.style.minHeight="20px",jr.innerHTML=` + `,pn.style.marginLeft="5px",Wn.appendChild(pn)}var er=document.createElement("div");er.style.display="flex",er.style.alignItems="center",er.style.minHeight="20px",er.style.flexGrow="2";var tr=document.createElement("hr");if(tr.style.minWidth="20px",tr.style.border="0px",tr.style.borderTop="3px solid "+(ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxColor:"#eeeeee"),tr.style.flexGrow="2",er.appendChild(tr),Wn.appendChild(er),On==="both"||On==="end"){var Br=document.createElement("div");Br.style.display="flex",Br.style.alignItems="center",Br.style.minHeight="20px",Br.innerHTML=` - `,jr.style.marginRight="5px",Wn.appendChild(jr)}ee.typeBoxes.push(Wn)},ee=this,Qe=0;Qe<4;Qe++)re(Qe);return $},U.prototype.setCurrentType=function(H,$){var re=this;this.currentType=H,this.typeBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},U}(Oe),Te=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.arrowType="end",ee.arrowBaseHeight=10,ee.arrowBaseWidth=10,ee.getArrowPoints=ee.getArrowPoints.bind(ee),ee.setArrowType=ee.setArrowType.bind(ee),ee.arrowTypePanel=new xe("Arrow type","end"),ee.arrowTypePanel.onArrowTypeChanged=ee.setArrowType,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.arrow1&&H!==this.arrow2)},U.prototype.getArrowPoints=function(H,$){var re=this.arrowBaseWidth+2*this.strokeWidth,ee=this.arrowBaseHeight+2*this.strokeWidth;return H-re/2+","+($+ee/2)+" "+H+","+($-ee/2)+" "+(H+re/2)+","+($+ee/2)},U.prototype.createTips=function(){this.arrow1=fe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=fe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.arrow2)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="creating"&&this.createTips()},U.prototype.adjustVisual=function(){if(J.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",fe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),fe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.arrow1.transform.baseVal.getItem(0);$.setRotate(H,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem($,0);var re=this.arrow2.transform.baseVal.getItem(0);re.setRotate(H+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(re,0)}},U.prototype.setArrowType=function(H){this.arrowType=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({arrowType:this.arrowType},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.arrowType=$.arrowType,this.createTips(),this.adjustVisual()},U.typeName="ArrowMarker",U.title="Arrow marker",U.icon='',U}(Et),oe=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.fillColor=re.defaultFillColor,ee.strokeWidth=0,ee.fillPanel=new Ge("Color",re.defaultColorSet,re.defaultFillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee}return be(U,J),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="CoverMarker",U.title="Cover marker",U.icon='',U}(It),ue=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.opacities=[],Qe.opacityBoxes=[],Qe.opacities=$,Qe.currentOpacity=re,Qe.setCurrentOpacity=Qe.setCurrentOpacity.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",$.style.justifyContent="space-between",this.opacities.forEach(function(re){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="center",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=re===H.currentOpacity?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentOpacity(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.innerText=100*re+"%",ee.appendChild(Qe),H.opacityBoxes.push(ee)}),$},U.prototype.setCurrentOpacity=function(H,$){var re=this;this.currentOpacity=H,this.opacityBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},U}(Oe),pe=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.setOpacity=ee.setOpacity.bind(ee),ee.fillColor=re.defaultHighlightColor,ee.strokeWidth=0,ee.opacity=re.defaultHighlightOpacity,ee.fillPanel=new Ge("Color",re.defaultColorSet,ee.fillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee.opacityPanel=new ue("Opacity",re.defaultOpacitySteps,ee.opacity),ee.opacityPanel.onOpacityChanged=ee.setOpacity,ee}return be(U,J),U.prototype.setOpacity=function(H){this.opacity=H,this.visual&&fe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="HighlightMarker",U.title="Highlight marker",U.icon='',U}(oe),_e='',Ye=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.bgColor="transparent",ee.tipPosition={x:0,y:0},ee.tipBase1Position={x:0,y:0},ee.tipBase2Position={x:0,y:0},ee.tipMoving=!1,ee.color=re.defaultStrokeColor,ee.bgColor=re.defaultFillColor,ee.fontFamily=re.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setBgColor=ee.setBgColor.bind(ee),ee.getTipPoints=ee.getTipPoints.bind(ee),ee.positionTip=ee.positionTip.bind(ee),ee.setTipPoints=ee.setTipPoints.bind(ee),ee.colorPanel=new Ge("Text color",re.defaultColorSet,ee.color,''),ee.colorPanel.onColorChanged=ee.setColor,ee.bgColorPanel=new Ge("Fill color",re.defaultColorSet,ee.bgColor,_e),ee.bgColorPanel.onColorChanged=ee.setBgColor,ee.fontFamilyPanel=new Je("Font",re.defaultFontFamilies,re.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee.tipGrip=new Pt,ee.tipGrip.visual.transform.baseVal.appendItem(fe.createTransform()),ee.controlBox.appendChild(ee.tipGrip.visual),ee}return be(U,J),U.prototype.ownsTarget=function(H){return J.prototype.ownsTarget.call(this,H)||this.tipGrip.ownsTarget(H)||this.tip===H},U.prototype.createTip=function(){fe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=fe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},U.prototype.pointerDown=function(H,$){this.state==="new"&&J.prototype.pointerDown.call(this,H,$),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget($)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):J.prototype.pointerDown.call(this,H,$)},U.prototype.pointerUp=function(H){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,J.prototype.pointerUp.call(this,H);else{var $=this.state==="creating";J.prototype.pointerUp.call(this,H),this.setTipPoints($),this.positionTip()}},U.prototype.manipulate=function(H){if(this.tipMoving){var $=this.unrotatePoint(H);this.tipPosition={x:$.x-this.manipulationStartLeft,y:$.y-this.manipulationStartTop},this.positionTip()}else J.prototype.manipulate.call(this,H)},U.prototype.setBgColor=function(H){this.bgRectangle&&this.tip&&(fe.setAttributes(this.bgRectangle,[["fill",H]]),fe.setAttributes(this.tip,[["fill",H]])),this.bgColor=H,this.fillColorChanged(H)},U.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},U.prototype.setTipPoints=function(H){H===void 0&&(H=!1);var $=Math.min(this.height/2,15),re=this.height/5;H&&(this.tipPosition={x:$+re/2,y:this.height+20});var ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?ee.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.tip1.transform.baseVal.getItem(0);$.setRotate(H,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem($,0);var re=this.tip2.transform.baseVal.getItem(0);re.setRotate(H+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(re,0)}},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H),this.createTips(),this.adjustVisual()},U.typeName="MeasurementMarker",U.title="Measurement marker",U.icon='',U}(Et),tn=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokePanel.colors=re.defaultColorSet,ee.fillColor="transparent",ee}return be(U,J),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="EllipseFrameMarker",U.title="Ellipse frame marker",U.icon='',U}(Ue),sn=function(){function J(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),J.prototype.addUndoStep=function(U){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(U)||(this.undoStack.push(U),JSON.stringify(this.lastRedoStep)!==JSON.stringify(U)&&this.redoStack.splice(0,this.redoStack.length))},J.prototype.replaceLastUndoStep=function(U){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=U)},J.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},J.prototype.undo=function(){if(this.undoStack.length>1){var U=this.undoStack.pop();return U!==void 0&&this.redoStack.push(U),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},J.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},J}(),nn=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.curveX=0,ee.curveY=0,ee.manipulationStartCurveX=0,ee.manipulationStartCurveY=0,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.positionGrips=ee.positionGrips.bind(ee),ee.addControlGrips=ee.addControlGrips.bind(ee),ee.adjustVisual=ee.adjustVisual.bind(ee),ee.setupControlBox=ee.setupControlBox.bind(ee),ee.resize=ee.resize.bind(ee),ee.strokeColor=re.defaultColor,ee.strokeWidth=re.defaultStrokeWidth,ee.strokeDasharray=re.defaultStrokeDasharray,ee.strokePanel=new Ge("Line color",re.defaultColorSet,re.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new dn("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorCurve&&H!==this.visibleCurve&&!this.curveGrip.ownsTarget(H))},U.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.selectorCurve=fe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=fe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=H.x,this.curveY=H.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget($)&&(this.activeGrip=this.curveGrip,this._state="resize")},U.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),fe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),fe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),fe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},U.prototype.setupControlBox=function(){J.prototype.setupControlBox.call(this),this.curveControlLine1=fe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=fe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},U.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,J.prototype.addControlGrips.call(this)},U.prototype.positionGrips=function(){J.prototype.positionGrips.call(this);var H=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-H/2,this.curveY-H/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},U.prototype.manipulate=function(H){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+H.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+H.y-this.manipulationStartY),J.prototype.manipulate.call(this,H)},U.prototype.resize=function(H){this.activeGrip===this.curveGrip&&(this.curveX=H.x,this.curveY=H.y),J.prototype.resize.call(this,H),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},U.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},U.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},U.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual()},U.prototype.scale=function(H,$){this.curveX=this.curveX*H,this.curveY=this.curveY*$,J.prototype.scale.call(this,H,$)},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.curveX=$.curveX,this.curveY=$.curveY,this.createVisual(),this.adjustVisual()},U.typeName="CurveMarker",U.title="Curve marker",U.icon='',U}(ot),rn=function(){function J(U,H){H===void 0&&(H=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=U,this.cancelable=H}return Object.defineProperty(J.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),J.prototype.preventDefault=function(){this._defaultPrevented=!0},J}(),St=function(J){function U(H,$,re){var ee=J.call(this,H,!1)||this;return ee.dataUrl=$,ee.state=re,ee}return be(U,J),U}(rn),Tt=function(J){function U(H,$,re){re===void 0&&(re=!1);var ee=J.call(this,H,re)||this;return ee.marker=$,ee}return be(U,J),U}(rn),ct=function(){function J(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return J.prototype.addEventListener=function(U,H){this[U].push(H)},J.prototype.removeEventListener=function(U,H){var $=this[U].indexOf(H);$>-1&&this[U].splice($,1)},J}(),ye=function(){function J(U){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new De,this._isOpen=!1,this.undoRedoManager=new sn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=J.instanceCounter++,this.styles=new ke(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=U,this.targetRoot=document.body,this.width=U.clientWidth,this.height=U.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(J.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ie,Me,Te,ft,tn,Ue,pe,Ye,Mt,oe,Et,nn]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ie,Me,Te,ft,Ue,pe,Ye]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ie,Me,Te,ft,pe]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(U){var H=this;this._availableMarkerTypes.splice(0),U.forEach(function($){if(typeof $=="string"){var re=H.ALL_MARKER_TYPES.find(function(ee){return ee.typeName===$});re!==void 0&&H._availableMarkerTypes.push(re)}else H._availableMarkerTypes.push($)})},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(U){this._zoomLevel=U,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ze.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},J.prototype.show=function(){var U=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(H){return H(new rn(U))})},J.prototype.render=function(){return we(this,void 0,void 0,function(){var U;return Re(this,function(H){switch(H.label){case 0:return this.setCurrentMarker(),(U=new Ot).naturalSize=this.renderAtNaturalSize,U.imageType=this.renderImageType,U.imageQuality=this.renderImageQuality,U.markersOnly=this.renderMarkersOnly,U.width=this.renderWidth,U.height=this.renderHeight,[4,U.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return H.sent(),[4,U.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,H.sent()]}})})},J.prototype.close=function(U){var H=this;if(U===void 0&&(U=!1),this.isOpen){var $=!1;U||this.eventListeners.beforeclose.forEach(function(re){var ee=new rn(H,!0);re(ee),ee.defaultPrevented&&($=!0)}),$||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(re){return re(new rn(H))}),this.detachEvents(),this._isOpen=!1)}},J.prototype.addMarkersToToolbar=function(){for(var U,H=[],$=0;$this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*U:this.editorCanvas.clientWidth,$=H',U.title="Powered by marker.js",U.style.display="grid",U.style.alignItems="center",U.style.justifyItems="center",U.style.padding="3px",U.style.width="20px",U.style.height="20px",this.logoUI.appendChild(U),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},J.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},J.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},J.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},J.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var U=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=U+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Le(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(U),1),U.dispose()},J.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},J.prototype.toolbarButtonClicked=function(U,H){if(U==="marker"&&H!==void 0)this.createNewMarker(H);else if(U==="action")switch(H){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},J.prototype.deleteSelectedMarker=function(){var U=this;if(this._currentMarker!==void 0){var H=!1;if(this.eventListeners.markerbeforedelete.forEach(function(re){var ee=new Tt(U,U._currentMarker,!0);re(ee),ee.defaultPrevented&&(H=!0)}),!H){var $=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(re){return re(new Tt(U,$))})}}},J.prototype.clear=function(){var U=this,H=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Qe){var cn=new Tt(U,void 0,!0);Qe(cn),cn.defaultPrevented&&(H=!0)}),!H)){this.setCurrentMarker();for(var $=function(Qe){var cn=re.markers[Qe];re.setCurrentMarker(re.markers[Qe]),re._currentMarker.dispose(),re.markerImage.removeChild(re._currentMarker.container),re.markers.splice(re.markers.indexOf(re._currentMarker),1),re.eventListeners.markerdelete.forEach(function(Dn){return Dn(new Tt(U,cn))})},re=this,ee=this.markers.length-1;ee>=0;ee--)$(ee);this.addUndoStep()}},Object.defineProperty(J.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),J.prototype.showNotesEditor=function(){var U;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(U=this._currentMarker.notes)!==null&&U!==void 0?U:"",this.overlayContainer.appendChild(this.notesArea))},J.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},J.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},J.prototype.addUndoStep=function(){var U=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var H=this.getState(),$=this.undoRedoManager.getLastUndoStep();if(!$||$.width===H.width&&$.height===H.height){var re=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(H),re1&&this.panTo({x:U.clientX,y:U.clientY}))},J.prototype.onPointerUp=function(U){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(U.clientX,U.clientY)),this.isDragging=!1,this.addUndoStep()},J.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},J.prototype.onKeyUp=function(U){this._currentMarker===void 0||this.notesArea!==void 0||U.key!=="Delete"&&U.key!=="Backspace"||this.deleteSelectedMarker()},J.prototype.clientToLocalCoordinates=function(U,H){var $=this.markerImage.getBoundingClientRect();return{x:(U-$.left)/this.zoomLevel,y:(H-$.top)/this.zoomLevel}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var U=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=U+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},J.prototype.addLicenseKey=function(U){Ze.addKey(U)},J.prototype.addEventListener=function(U,H){this.eventListeners.addEventListener(U,H)},J.prototype.removeEventListener=function(U,H){this.eventListeners.removeEventListener(U,H)},J.prototype.renderState=function(U){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(U),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(J.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),J.prototype.focus=function(){var U=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(H){return H(new rn(U))}))},J.prototype.blur=function(){var U=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(H){return H(new rn(U))}))},J.instanceCounter=0,J}();/* ********************************** + `,Br.style.marginRight="5px",Wn.appendChild(Br)}ee.typeBoxes.push(Wn)},ee=this,Qe=0;Qe<4;Qe++)re(Qe);return $},U.prototype.setCurrentType=function(H,$){var re=this;this.currentType=H,this.typeBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},U}(Oe),Te=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.arrowType="end",ee.arrowBaseHeight=10,ee.arrowBaseWidth=10,ee.getArrowPoints=ee.getArrowPoints.bind(ee),ee.setArrowType=ee.setArrowType.bind(ee),ee.arrowTypePanel=new xe("Arrow type","end"),ee.arrowTypePanel.onArrowTypeChanged=ee.setArrowType,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.arrow1&&H!==this.arrow2)},U.prototype.getArrowPoints=function(H,$){var re=this.arrowBaseWidth+2*this.strokeWidth,ee=this.arrowBaseHeight+2*this.strokeWidth;return H-re/2+","+($+ee/2)+" "+H+","+($-ee/2)+" "+(H+re/2)+","+($+ee/2)},U.prototype.createTips=function(){this.arrow1=fe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=fe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.arrow2)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.state==="creating"&&this.createTips()},U.prototype.adjustVisual=function(){if(J.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",fe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),fe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.arrow1.transform.baseVal.getItem(0);$.setRotate(H,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem($,0);var re=this.arrow2.transform.baseVal.getItem(0);re.setRotate(H+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(re,0)}},U.prototype.setArrowType=function(H){this.arrowType=H,this.adjustVisual(),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({arrowType:this.arrowType},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.arrowType=$.arrowType,this.createTips(),this.adjustVisual()},U.typeName="ArrowMarker",U.title="Arrow marker",U.icon='',U}(Et),oe=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.fillColor=re.defaultFillColor,ee.strokeWidth=0,ee.fillPanel=new Ge("Color",re.defaultColorSet,re.defaultFillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee}return be(U,J),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="CoverMarker",U.title="Cover marker",U.icon='',U}(Lt),ue=function(J){function U(H,$,re,ee){var Qe=J.call(this,H,ee||'')||this;return Qe.opacities=[],Qe.opacityBoxes=[],Qe.opacities=$,Qe.currentOpacity=re,Qe.setCurrentOpacity=Qe.setCurrentOpacity.bind(Qe),Qe}return be(U,J),U.prototype.getUi=function(){var H=this,$=document.createElement("div");return $.style.display="flex",$.style.overflow="hidden",$.style.flexGrow="2",$.style.justifyContent="space-between",this.opacities.forEach(function(re){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="center",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=re===H.currentOpacity?H.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){H.setCurrentOpacity(re,ee)}),$.appendChild(ee);var Qe=document.createElement("div");Qe.innerText=100*re+"%",ee.appendChild(Qe),H.opacityBoxes.push(ee)}),$},U.prototype.setCurrentOpacity=function(H,$){var re=this;this.currentOpacity=H,this.opacityBoxes.forEach(function(ee){ee.style.borderColor=ee===$?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},U}(Oe),pe=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.setOpacity=ee.setOpacity.bind(ee),ee.fillColor=re.defaultHighlightColor,ee.strokeWidth=0,ee.opacity=re.defaultHighlightOpacity,ee.fillPanel=new Ge("Color",re.defaultColorSet,ee.fillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee.opacityPanel=new ue("Opacity",re.defaultOpacitySteps,ee.opacity),ee.opacityPanel.onOpacityChanged=ee.setOpacity,ee}return be(U,J),U.prototype.setOpacity=function(H){this.opacity=H,this.visual&&fe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="HighlightMarker",U.title="Highlight marker",U.icon='',U}(oe),_e='',Ye=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.bgColor="transparent",ee.tipPosition={x:0,y:0},ee.tipBase1Position={x:0,y:0},ee.tipBase2Position={x:0,y:0},ee.tipMoving=!1,ee.color=re.defaultStrokeColor,ee.bgColor=re.defaultFillColor,ee.fontFamily=re.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setBgColor=ee.setBgColor.bind(ee),ee.getTipPoints=ee.getTipPoints.bind(ee),ee.positionTip=ee.positionTip.bind(ee),ee.setTipPoints=ee.setTipPoints.bind(ee),ee.colorPanel=new Ge("Text color",re.defaultColorSet,ee.color,''),ee.colorPanel.onColorChanged=ee.setColor,ee.bgColorPanel=new Ge("Fill color",re.defaultColorSet,ee.bgColor,_e),ee.bgColorPanel.onColorChanged=ee.setBgColor,ee.fontFamilyPanel=new Je("Font",re.defaultFontFamilies,re.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee.tipGrip=new Rt,ee.tipGrip.visual.transform.baseVal.appendItem(fe.createTransform()),ee.controlBox.appendChild(ee.tipGrip.visual),ee}return be(U,J),U.prototype.ownsTarget=function(H){return J.prototype.ownsTarget.call(this,H)||this.tipGrip.ownsTarget(H)||this.tip===H},U.prototype.createTip=function(){fe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=fe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},U.prototype.pointerDown=function(H,$){this.state==="new"&&J.prototype.pointerDown.call(this,H,$),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget($)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):J.prototype.pointerDown.call(this,H,$)},U.prototype.pointerUp=function(H){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,J.prototype.pointerUp.call(this,H);else{var $=this.state==="creating";J.prototype.pointerUp.call(this,H),this.setTipPoints($),this.positionTip()}},U.prototype.manipulate=function(H){if(this.tipMoving){var $=this.unrotatePoint(H);this.tipPosition={x:$.x-this.manipulationStartLeft,y:$.y-this.manipulationStartTop},this.positionTip()}else J.prototype.manipulate.call(this,H)},U.prototype.setBgColor=function(H){this.bgRectangle&&this.tip&&(fe.setAttributes(this.bgRectangle,[["fill",H]]),fe.setAttributes(this.tip,[["fill",H]])),this.bgColor=H,this.fillColorChanged(H)},U.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},U.prototype.setTipPoints=function(H){H===void 0&&(H=!1);var $=Math.min(this.height/2,15),re=this.height/5;H&&(this.tipPosition={x:$+re/2,y:this.height+20});var ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?ee.1)){var H=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$=this.tip1.transform.baseVal.getItem(0);$.setRotate(H,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem($,0);var re=this.tip2.transform.baseVal.getItem(0);re.setRotate(H+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(re,0)}},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H),this.createTips(),this.adjustVisual()},U.typeName="MeasurementMarker",U.title="Measurement marker",U.icon='',U}(Et),tn=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokePanel.colors=re.defaultColorSet,ee.fillColor="transparent",ee}return be(U,J),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=J.prototype.getState.call(this);return H.typeName=U.typeName,H},U.typeName="EllipseFrameMarker",U.title="Ellipse frame marker",U.icon='',U}(Ue),sn=function(){function J(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),J.prototype.addUndoStep=function(U){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(U)||(this.undoStack.push(U),JSON.stringify(this.lastRedoStep)!==JSON.stringify(U)&&this.redoStack.splice(0,this.redoStack.length))},J.prototype.replaceLastUndoStep=function(U){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=U)},J.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},J.prototype.undo=function(){if(this.undoStack.length>1){var U=this.undoStack.pop();return U!==void 0&&this.redoStack.push(U),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},J.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},J}(),nn=function(J){function U(H,$,re){var ee=J.call(this,H,$,re)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.curveX=0,ee.curveY=0,ee.manipulationStartCurveX=0,ee.manipulationStartCurveY=0,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.positionGrips=ee.positionGrips.bind(ee),ee.addControlGrips=ee.addControlGrips.bind(ee),ee.adjustVisual=ee.adjustVisual.bind(ee),ee.setupControlBox=ee.setupControlBox.bind(ee),ee.resize=ee.resize.bind(ee),ee.strokeColor=re.defaultColor,ee.strokeWidth=re.defaultStrokeWidth,ee.strokeDasharray=re.defaultStrokeDasharray,ee.strokePanel=new Ge("Line color",re.defaultColorSet,re.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new on("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new un("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return be(U,J),U.prototype.ownsTarget=function(H){return!(!J.prototype.ownsTarget.call(this,H)&&H!==this.visual&&H!==this.selectorCurve&&H!==this.visibleCurve&&!this.curveGrip.ownsTarget(H))},U.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},U.prototype.createVisual=function(){this.visual=fe.createGroup(),this.selectorCurve=fe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=fe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(H,$){J.prototype.pointerDown.call(this,H,$),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=H.x,this.curveY=H.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget($)&&(this.activeGrip=this.curveGrip,this._state="resize")},U.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),fe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),fe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),fe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},U.prototype.setupControlBox=function(){J.prototype.setupControlBox.call(this),this.curveControlLine1=fe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=fe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},U.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,J.prototype.addControlGrips.call(this)},U.prototype.positionGrips=function(){J.prototype.positionGrips.call(this);var H=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-H/2,this.curveY-H/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},U.prototype.manipulate=function(H){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+H.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+H.y-this.manipulationStartY),J.prototype.manipulate.call(this,H)},U.prototype.resize=function(H){this.activeGrip===this.curveGrip&&(this.curveX=H.x,this.curveY=H.y),J.prototype.resize.call(this,H),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},U.prototype.setStrokeColor=function(H){this.strokeColor=H,this.adjustVisual(),this.colorChanged(H)},U.prototype.setStrokeWidth=function(H){this.strokeWidth=H,this.adjustVisual()},U.prototype.setStrokeDasharray=function(H){this.strokeDasharray=H,this.adjustVisual()},U.prototype.scale=function(H,$){this.curveX=this.curveX*H,this.curveY=this.curveY*$,J.prototype.scale.call(this,H,$)},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var H=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},J.prototype.getState.call(this));return H.typeName=U.typeName,H},U.prototype.restoreState=function(H){J.prototype.restoreState.call(this,H);var $=H;this.strokeColor=$.strokeColor,this.strokeWidth=$.strokeWidth,this.strokeDasharray=$.strokeDasharray,this.curveX=$.curveX,this.curveY=$.curveY,this.createVisual(),this.adjustVisual()},U.typeName="CurveMarker",U.title="Curve marker",U.icon='',U}(ot),rn=function(){function J(U,H){H===void 0&&(H=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=U,this.cancelable=H}return Object.defineProperty(J.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),J.prototype.preventDefault=function(){this._defaultPrevented=!0},J}(),St=function(J){function U(H,$,re){var ee=J.call(this,H,!1)||this;return ee.dataUrl=$,ee.state=re,ee}return be(U,J),U}(rn),Tt=function(J){function U(H,$,re){re===void 0&&(re=!1);var ee=J.call(this,H,re)||this;return ee.marker=$,ee}return be(U,J),U}(rn),ct=function(){function J(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return J.prototype.addEventListener=function(U,H){this[U].push(H)},J.prototype.removeEventListener=function(U,H){var $=this[U].indexOf(H);$>-1&&this[U].splice($,1)},J}(),ye=function(){function J(U){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new De,this._isOpen=!1,this.undoRedoManager=new sn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=J.instanceCounter++,this.styles=new ke(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=U,this.targetRoot=document.body,this.width=U.clientWidth,this.height=U.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(J.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ie,Me,Te,ft,tn,Ue,pe,Ye,Mt,oe,Et,nn]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ie,Me,Te,ft,Ue,pe,Ye]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ie,Me,Te,ft,pe]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(U){var H=this;this._availableMarkerTypes.splice(0),U.forEach(function($){if(typeof $=="string"){var re=H.ALL_MARKER_TYPES.find(function(ee){return ee.typeName===$});re!==void 0&&H._availableMarkerTypes.push(re)}else H._availableMarkerTypes.push($)})},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(U){this._zoomLevel=U,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ze.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},J.prototype.show=function(){var U=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(H){return H(new rn(U))})},J.prototype.render=function(){return we(this,void 0,void 0,function(){var U;return Re(this,function(H){switch(H.label){case 0:return this.setCurrentMarker(),(U=new Ot).naturalSize=this.renderAtNaturalSize,U.imageType=this.renderImageType,U.imageQuality=this.renderImageQuality,U.markersOnly=this.renderMarkersOnly,U.width=this.renderWidth,U.height=this.renderHeight,[4,U.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return H.sent(),[4,U.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,H.sent()]}})})},J.prototype.close=function(U){var H=this;if(U===void 0&&(U=!1),this.isOpen){var $=!1;U||this.eventListeners.beforeclose.forEach(function(re){var ee=new rn(H,!0);re(ee),ee.defaultPrevented&&($=!0)}),$||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(re){return re(new rn(H))}),this.detachEvents(),this._isOpen=!1)}},J.prototype.addMarkersToToolbar=function(){for(var U,H=[],$=0;$this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*U:this.editorCanvas.clientWidth,$=H',U.title="Powered by marker.js",U.style.display="grid",U.style.alignItems="center",U.style.justifyItems="center",U.style.padding="3px",U.style.width="20px",U.style.height="20px",this.logoUI.appendChild(U),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},J.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},J.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},J.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},J.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var U=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=U+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Le(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(U),1),U.dispose()},J.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},J.prototype.toolbarButtonClicked=function(U,H){if(U==="marker"&&H!==void 0)this.createNewMarker(H);else if(U==="action")switch(H){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},J.prototype.deleteSelectedMarker=function(){var U=this;if(this._currentMarker!==void 0){var H=!1;if(this.eventListeners.markerbeforedelete.forEach(function(re){var ee=new Tt(U,U._currentMarker,!0);re(ee),ee.defaultPrevented&&(H=!0)}),!H){var $=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(re){return re(new Tt(U,$))})}}},J.prototype.clear=function(){var U=this,H=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Qe){var dn=new Tt(U,void 0,!0);Qe(dn),dn.defaultPrevented&&(H=!0)}),!H)){this.setCurrentMarker();for(var $=function(Qe){var dn=re.markers[Qe];re.setCurrentMarker(re.markers[Qe]),re._currentMarker.dispose(),re.markerImage.removeChild(re._currentMarker.container),re.markers.splice(re.markers.indexOf(re._currentMarker),1),re.eventListeners.markerdelete.forEach(function(On){return On(new Tt(U,dn))})},re=this,ee=this.markers.length-1;ee>=0;ee--)$(ee);this.addUndoStep()}},Object.defineProperty(J.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),J.prototype.showNotesEditor=function(){var U;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(U=this._currentMarker.notes)!==null&&U!==void 0?U:"",this.overlayContainer.appendChild(this.notesArea))},J.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},J.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},J.prototype.addUndoStep=function(){var U=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var H=this.getState(),$=this.undoRedoManager.getLastUndoStep();if(!$||$.width===H.width&&$.height===H.height){var re=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(H),re1&&this.panTo({x:U.clientX,y:U.clientY}))},J.prototype.onPointerUp=function(U){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(U.clientX,U.clientY)),this.isDragging=!1,this.addUndoStep()},J.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},J.prototype.onKeyUp=function(U){this._currentMarker===void 0||this.notesArea!==void 0||U.key!=="Delete"&&U.key!=="Backspace"||this.deleteSelectedMarker()},J.prototype.clientToLocalCoordinates=function(U,H){var $=this.markerImage.getBoundingClientRect();return{x:(U-$.left)/this.zoomLevel,y:(H-$.top)/this.zoomLevel}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var U=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=U+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},J.prototype.addLicenseKey=function(U){Ze.addKey(U)},J.prototype.addEventListener=function(U,H){this.eventListeners.addEventListener(U,H)},J.prototype.removeEventListener=function(U,H){this.eventListeners.removeEventListener(U,H)},J.prototype.renderState=function(U){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(U),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(J.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),J.prototype.focus=function(){var U=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(H){return H(new rn(U))}))},J.prototype.blur=function(){var U=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(H){return H(new rn(U))}))},J.instanceCounter=0,J}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -154,27 +154,27 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Pe=function(J,U){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,$){H.__proto__=$}||function(H,$){for(var re in $)Object.prototype.hasOwnProperty.call($,re)&&(H[re]=$[re])})(J,U)};function Lt(J,U){if(typeof U!="function"&&U!==null)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");function H(){this.constructor=J}Pe(J,U),J.prototype=U===null?Object.create(U):(H.prototype=U.prototype,new H)}function pt(J,U,H,$){return new(H||(H=Promise))(function(re,ee){function Qe(Wn){try{Dn($.next(Wn))}catch(fn){ee(fn)}}function cn(Wn){try{Dn($.throw(Wn))}catch(fn){ee(fn)}}function Dn(Wn){var fn;Wn.done?re(Wn.value):(fn=Wn.value,fn instanceof H?fn:new H(function(tr){tr(fn)})).then(Qe,cn)}Dn(($=$.apply(J,U||[])).next())})}function en(J,U){var H,$,re,ee,Qe={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return ee={next:cn(0),throw:cn(1),return:cn(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function cn(Dn){return function(Wn){return function(fn){if(H)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(H=1,$&&(re=2&fn[0]?$.return:fn[0]?$.throw||((re=$.return)&&re.call($),0):$.next)&&!(re=re.call($,fn[1])).done)return re;switch($=0,re&&(fn=[2&fn[0],re.value]),fn[0]){case 0:case 1:re=fn;break;case 4:return Qe.label++,{value:fn[1],done:!1};case 5:Qe.label++,$=fn[1],fn=[0];continue;case 7:fn=Qe.ops.pop(),Qe.trys.pop();continue;default:if(!(re=Qe.trys,(re=re.length>0&&re[re.length-1])||fn[0]!==6&&fn[0]!==2)){Qe=0;continue}if(fn[0]===3&&(!re||fn[1]>re[0]&&fn[1]0&&re[re.length-1])||pn[0]!==6&&pn[0]!==2)){Qe=0;continue}if(pn[0]===3&&(!re||pn[1]>re[0]&&pn[1]0&&H>0){var $=new Fr(U,H),re=$.ratio>=1?20:$.getHorizontalLength(20),ee=$.ratio<1?20:$.getVerticalLength(20),Qe=document.createElementNS("http://www.w3.org/2000/svg","svg");Qe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qe.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Qe);var cn=st.createDefs();Qe.appendChild(cn);var Dn=st.createElement("clipPath",[["id","text-bg-clip"]]);cn.appendChild(Dn);var Wn=st.createPath(st.getHollowRectanglePath((24-re)/2,(24-ee)/2,re,ee,(24-re)/2+2,(24-ee)/2+2,re-4,ee-4));Qe.appendChild(Wn);var fn=st.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);fn.appendChild(st.createTSpan(U+":"+H)),Qe.appendChild(fn);var tr=fn.getBBox();st.setAttributes(fn,[["x",((24-tr.width)/2).toString()],["y",((24-tr.height)/2-tr.y).toString()]]);var nr=st.createPath(st.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(tr.width))/2,(24-Math.ceil(tr.height))/2,Math.ceil(tr.width),Math.ceil(tr.height)));return Dn.appendChild(nr),st.setAttributes(Wn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Qe),Qe.outerHTML}return''},J}(),Mr=function(J){function U(H,$,re){var ee=J.call(this,H,$)||this;return ee.isDropdownOpen=!1,ee.onClick=ee.dropdownButtonClicked,ee.dropdownButtons=re,ee}return Lt(U,J),U.prototype.setupDropdown=function(){var H=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function($){$.className=H.className,$.colorsClassName=H.colorsClassName,H.dropdownBlock.appendChild($.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},U.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},U.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},U.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},U.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},U.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},U}(or),pr=function(){function J(U,H){this.GRIP_SIZE=10,this.color=U,this.fillColor=H,this.visual=st.createGroup(),this.visual.appendChild(st.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(st.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(U){return U===this.visual||U===this.visual.childNodes[0]||U===this.visual.childNodes[1]},J.prototype.setCenter=function(U,H){this.visual.childNodes.forEach(function($){return st.setAttributes($,[["cx",U.toString()],["cy",H.toString()]])})},J}(),Nr=function(){function J(U,H,$,re){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=U,this.canvasHeight=H,this.margin=$,this.container=re,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(J.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(U){this._aspectRatio=U,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(U){this._isGridVisible=U,this.gridContainer&&st.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(U){this._zoomFactor=U,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),J.prototype.open=function(){var U=this;this.cropShadeElement=st.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=st.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var H=0;Hthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-H.height/2),st.setAttributes(this.cropRectElement,[["x",H.x.toString()],["y",H.y.toString()],["width",H.width.toString()],["height",H.height.toString()]]);var $=H.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(ee,Qe){var cn=H.y+$*(Qe+1);st.setAttributes(ee,[["x1",""+H.x],["y1",""+cn],["x2",""+(H.x+H.width)],["y2",""+cn]])});var re=H.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ee,Qe){var cn=H.x+re*(Qe+1);st.setAttributes(ee,[["x1",""+cn],["y1",""+H.y],["x2",""+cn],["y2",""+(H.y+H.height)]])}),st.setAttributes(this.cropShadeElement,[["d",st.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,H.x,H.y,H.width,H.height)]]),this.topLeftGrip.setCenter(H.x,H.y),this.topRightGrip.setCenter(H.x+H.width,H.y),this.bottomLeftGrip.setCenter(H.x,H.y+H.height),this.bottomRightGrip.setCenter(H.x+H.width,H.y+H.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},J.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},J.prototype.clientToLocalCoordinates=function(U,H){var $=this.container.getBoundingClientRect();return{x:U-$.left+this.margin,y:H-$.top+this.margin}},J.prototype.onPointerDown=function(U){this.container.setPointerCapture(U.pointerId),this.previousPoint=this.clientToLocalCoordinates(U.clientX,U.clientY),this.cropRectElement===U.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(U.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(U.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(U.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(U.target)&&(this.activeGrip=this.bottomRightGrip)},J.prototype.onPointerMove=function(U){if(this.isMoving)this.move(this.clientToLocalCoordinates(U.clientX,U.clientY));else if(this.activeGrip){var H=this.clientToLocalCoordinates(U.clientX,U.clientY);this.resize(H)}U.preventDefault()},J.prototype.onPointerUp=function(U){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(U.pointerId)},J.prototype.move=function(U){var H=U.x-this.previousPoint.x,$=U.y-this.previousPoint.y;this.zoomFactor!==1&&(H=-H/this.zoomFactor,$=-$/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+H),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+$),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=U},J.prototype.resize=function(U){var H=Object.assign({},this.cropRect),$=U.x-this.previousPoint.x,re=U.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:H.x+$this.canvasWidth*this.zoomFactor&&($=this.canvasWidth*this.zoomFactor-H.width),H.width+=$}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(H.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength($),H.height=this.aspectRatio.getVerticalLength(H.width)):(H.y+=re,H.height=this.cropRect.y+this.cropRect.height-H.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?H.height=this.aspectRatio.getVerticalLength(H.width):H.height+=re}H.width<10&&(H.x=this.cropRect.x,H.width=10),H.height<10&&(H.y=this.cropRect.y,H.height=10),this.previousPoint=U,H.x>=this.margin&&H.y>=this.margin&&H.x-this.margin+H.width<=this.canvasWidth&&H.y-this.margin+H.height<=this.canvasHeight&&(this.cropRect=H,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},J.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var U=this.cropRect.x+this.cropRect.width/2,H=this.cropRect.y+this.cropRect.height/2,$=this.aspectRatio.getHorizontalLength(this.cropRect.height),re=this.aspectRatio.getVerticalLength(this.cropRect.width);$/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=U-this.cropRect.width/2,this.cropRect.y=H-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},J.prototype.getRescaledRect=function(U,H,$,re,ee,Qe){var cn=$/U,Dn=re/H;return{x:(ee.x-Qe)*cn+Qe,y:(ee.y-Qe)*Dn+Qe,width:ee.width*cn,height:ee.height*Dn}},J.prototype.scaleCanvas=function(U,H){var $=this.getRescaledRect(this.canvasWidth,this.canvasHeight,U,H,this.cropRect,this.margin);this.canvasWidth=U,this.canvasHeight=H,this.onCropChange&&this.onCropChange($),this.setCropRectangle($)},J}(),ta=function(){function J(U){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=U,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(J.prototype,"angle",{get:function(){return this._angle},set:function(U){this._angle=U,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),J.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},J.prototype.onPointerDown=function(U){this.controlContainer.setPointerCapture(U.pointerId),this.isDragging=!0,this.previousPoint={x:U.clientX,y:U.clientY}},J.prototype.onPointerMove=function(U){this.isDragging&&(this.onAngleChange&&this.onAngleChange((U.clientX-this.previousPoint.x)/5),this.previousPoint.x=U.clientX)},J.prototype.onPointerUp=function(U){this.isDragging&&this.onAngleChange&&this.onAngleChange((U.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(U.pointerId)},J.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var U=this.angleLabelText.getBBox();st.setAttributes(this.angleLabelElement,[["x",((this.width-U.width)/2).toString()],["y",(this.height/2).toString()]])}},J.prototype.positionScaleShape=function(){if(this.scaleShape){var U=this.scaleShape.transform.baseVal.getItem(0);U.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(U,0)}},J.prototype.getVisual=function(){var U=document.createElementNS("http://www.w3.org/2000/svg","svg");U.setAttribute("xmlns","http://www.w3.org/2000/svg"),U.setAttribute("width",this.width+"px"),U.setAttribute("height",this.height+"px"),U.setAttribute("viewBox","0 0 "+this.width+" "+this.height),U.style.flexShrink="0",document.body.appendChild(U);for(var H="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,$=1;$<=this.width/5+10;$++){var re=$%5==0?this.height/3:this.height/6;H+="h4v"+-re+"h1v"+re}H+="v1H0Z",this.scaleShape=st.createPath(H);var ee=st.createTransform();this.scaleShape.transform.baseVal.appendItem(ee),U.appendChild(this.scaleShape),this.angleLabelElement=st.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=st.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Qe=st.createTSpan("");return Qe.innerHTML="°",this.angleLabelElement.appendChild(Qe),U.appendChild(this.angleLabelElement),document.body.removeChild(U),U},J}(),ca=function(){function J(){this.naturalSize=!1,this.imageType="image/png"}return J.prototype.rasterize=function(U,H,$,re,ee,Qe,cn){var Dn=this;return new Promise(function(Wn){var fn=document.createElement("canvas");fn.width=U.width.baseVal.value-2*re,fn.height=U.height.baseVal.value-2*re;var tr=1,nr=1;Dn.naturalSize===!0?(tr=H.naturalWidth/(U.width.baseVal.value-2*re)/Qe,nr=H.naturalHeight/(U.height.baseVal.value-2*re)/cn,fn.width=H.naturalWidth/Qe,fn.height=H.naturalHeight/cn):Dn.width!==void 0&&Dn.height!==void 0&&(tr=Dn.width/$.width,nr=Dn.height/$.height,fn.width*=tr,fn.height*=nr);var jr=fn.getContext("2d");jr.translate(fn.width/2,fn.height/2),jr.rotate(ee*Math.PI/180),jr.scale(Qe,cn),jr.translate(-fn.width/2,-fn.height/2),jr.drawImage(H,0,0,fn.width,fn.height);var ua=document.createElement("canvas");ua.width=$.width*tr,ua.height=$.height*nr,ua.getContext("2d").putImageData(jr.getImageData(($.x-re)*tr,($.y-re)*nr,$.width*tr,$.height*nr),0,0),Wn(ua.toDataURL(Dn.imageType,Dn.imageQuality))})},J}(),Zt=function(){function J(U){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=J.instanceCounter++,this.styles=new xt(this.instanceNo),this.target=U,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(U){this._zoomToCropEnabled=U,U?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(U){this._isGridVisible=U,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"gridLines",{get:function(){return this._gridLines},set:function(U){this._gridLines=U,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(U){this._rotationAngle=U,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"aspectRatio",{get:function(){var U;return(U=this._aspectRatio)!==null&&U!==void 0?U:this.aspectRatios[0]},set:function(U){this._aspectRatio=U},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},J.prototype.show=function(){this.showUI(),this.open()},J.prototype.close=function(U){U===void 0&&(U=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),U||this.closeEventListeners.forEach(function(H){return H()}),this._isOpen=!1)},J.prototype.addRenderEventListener=function(U){this.renderEventListeners.push(U)},J.prototype.removeRenderEventListener=function(U){this.renderEventListeners.indexOf(U)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(U),1)},J.prototype.addCloseEventListener=function(U){this.closeEventListeners.push(U)},J.prototype.removeCloseEventListener=function(U){this.closeEventListeners.indexOf(U)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(U),1)},J.prototype.setupResizeObserver=function(){var U=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){U.resize(U.target.clientWidth,U.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},J.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var U=1*this.target.clientWidth/this.target.clientHeight,H=this.contentDiv.clientWidth/U>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*U:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,$=H+2*this.CANVAS_MARGINU+this.CANVAS_MARGIN?this.target.offsetTop-(U+this.CANVAS_MARGIN):0;this.coverDiv.style.top=H+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},J.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},J.prototype.addTopToolbar=function(){var U=this;this.topToolbar=new Mn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new gr;H.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(H);var $=[];this.aspectRatios.forEach(function(nr){var jr=new or(ea.getIcon(nr.horizontal,nr.vertical),nr.horizontal===0&&nr.vertical===0?"FREE":nr.horizontal+":"+nr.vertical);jr.onClick=function(){return U.ratioButtonClicked(nr)},$.push(jr)}),this.aspectRatioButton=new Mr(ea.getIcon(0,0),"Aspect ratio",$),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,H.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var re=new or('',"Toggle grid");re.isActive=this.isGridVisible,re.onClick=function(){U.isGridVisible=!U.isGridVisible,re.isActive=U.isGridVisible},H.addButton(re);var ee=new or('',"Zoom to selection");if(ee.isActive=this.zoomToCropEnabled,ee.onClick=function(){U.zoomToCropEnabled=!U.zoomToCropEnabled,ee.isActive=U.zoomToCropEnabled},H.addButton(ee),!an.isLicensed){var Qe=new kn;this.topToolbar.addElementBlock(Qe);var cn=document.createElement("div");cn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Dn=document.createElement("a");Dn.style.color="currentColor",Dn.href="https://markerjs.com/products/cropro",Dn.target="_blank",Dn.innerHTML='',cn.appendChild(Dn),Qe.addElement(cn)}var Wn=new gr;Wn.minWidth=3*this.toolbarHeight+"px",Wn.contentAlign="end",this.topToolbar.addButtonBlock(Wn);var fn=new or('',"OK");fn.onClick=this.startRenderAndClose,Wn.addButton(fn),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(fn.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var tr=new or('',"Close");tr.onClick=this.close,Wn.addButton(tr),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(tr.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},J.prototype.addBottomToolbar=function(){var U=this;this.bottomToolbar=new Mn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new gr;H.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(H);var $=new or('',"Rotate left");$.onClick=this.rotateLeftButtonClicked,H.addButton($);var re=new or('',"Rotate right");re.onClick=this.rotateRightButtonClicked,H.addButton(re);var ee=new kn;ee.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(ee),this.straightener=new ta("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Wn){U.rotateBy(Wn),U.straightener.angle=U.rotationAngle},ee.addElement(this.straightener.getUI());var Qe=new gr;Qe.minWidth=2*this.toolbarHeight+"px",Qe.contentAlign="end",this.bottomToolbar.addButtonBlock(Qe);var cn=new or('',"Flip horizontal");cn.onClick=this.flipHorizontallyButtonClicked,Qe.addButton(cn);var Dn=new or('',"Flip vertical");Dn.onClick=this.flipVerticallyButtonClicked,Qe.addButton(Dn)},J.prototype.ratioButtonClicked=function(U){this.aspectRatio=U,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},J.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=ea.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},J.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Fr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},J.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},J.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},J.prototype.restoreState=function(U){if(U){var H=this.cropLayer.getRescaledRect(U.width,U.height,this.imageWidth,this.imageHeight,U.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(H),this.cropRectChanged(H),this.flippedHorizontally=U.flippedHorizontally,this.flippedVertically=U.flippedVertically,this.applyFlip(),this.rotationAngle=U.rotationAngle,this.applyRotation()}},J.prototype.clientToLocalCoordinates=function(U,H){var $=this.cropImage.getBoundingClientRect();return{x:U-$.left,y:H-$.top}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var U=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=U+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},J.prototype.rotateLeftButtonClicked=function(){var U=this.rotationAngle-90;this.rotationAngle%90!=0&&(U+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(U)},J.prototype.rotateRightButtonClicked=function(){var U=this.rotationAngle+90;this.rotationAngle%90!=0&&(U-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(U)},J.prototype.rotateTo=function(U){U=(U=U>180?U-360:U)<=-180?U+360:U,this.rotationAngle=U,this.applyRotation()},J.prototype.rotateBy=function(U){this.rotateTo((this.rotationAngle+U)%360)},J.prototype.applyRotation=function(){var U=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var H=this.editingTargetRotationContainer.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(H,0);var $=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/$.width,this.imageHeight/$.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=U},J.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},J.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},J.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},J.prototype.startRenderAndClose=function(){return pt(this,void 0,void 0,function(){var U,H;return en(this,function($){switch($.label){case 0:return[4,this.render()];case 1:return U=$.sent(),H=this.getState(),this.renderEventListeners.forEach(function(re){return re(U,H)}),this.close(!0),[2]}})})},J.prototype.render=function(){return pt(this,void 0,void 0,function(){var U;return en(this,function(H){switch(H.label){case 0:return(U=new ca).naturalSize=this.renderAtNaturalSize,U.imageType=this.renderImageType,U.imageQuality=this.renderImageQuality,U.width=this.renderWidth,U.height=this.renderHeight,this.unzoomFromCrop(),st.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,U.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return H.sent(),[4,U.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,H.sent()]}})})},J.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new gn("toolbar",` + `))},J.prototype.removeStyleSheet=function(){var U;this.styleSheet&&(((U=this.styleSheetRoot)!==null&&U!==void 0?U:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},J}(),Nt=function(J,U){this.selector=J,this.style=U},yn=function(J,U){this.localName=J,this.style=U},Mn=function(){function J(){this.blocks=[],this.display=""}return J.prototype.addButtonBlock=function(U){U.className=this.blockClassName,U.buttonClassName=this.buttonClassName,U.buttonColorsClassName=this.buttonColorsClassName,U.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(U)},J.prototype.addElementBlock=function(U){U.className===void 0&&(U.className=this.blockClassName),this.blocks.push(U)},J.prototype.getUI=function(){var U=document.createElement("div");return U.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,U.style.display=this.display,this.blocks.forEach(function(H){return U.appendChild(H.getUI())}),U},J}(),hr=function(){function J(){}return J.prototype.getUI=function(){var U=document.createElement("div");if(U.className=this.className,this.minWidth!==void 0&&(U.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":U.style.justifyContent="flex-start";break;case"center":U.style.justifyContent="center";break;case"end":U.style.justifyContent="flex-end"}return U.style.whiteSpace="nowrap",U},J}(),yr=function(J){function U(){var H=J!==null&&J.apply(this,arguments)||this;return H.buttons=[],H}return Pt(U,J),U.prototype.addButton=function(H){H.className=this.buttonClassName,H.colorsClassName=this.buttonColorsClassName,H.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(H)},U.prototype.getUI=function(){var H=J.prototype.getUI.call(this);return this.buttons.forEach(function($){return H.appendChild($.getUI())}),H},U}(hr),lr=function(){function J(U,H){this._isActive=!1,this._isHidden=!1,this._icon=U,this.title=H,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(J.prototype,"icon",{get:function(){return this._icon},set:function(U){this._icon=U,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isActive",{get:function(){return this._isActive},set:function(U){this._isActive=U,this.adjustClassName()},enumerable:!1,configurable:!0}),J.prototype.getUI=function(){var U=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return U.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},J.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},J.prototype.hide=function(){this._isHidden=!0},J}(),kn=function(J){function U(){var H=J!==null&&J.apply(this,arguments)||this;return H.elements=[],H}return Pt(U,J),U.prototype.addElement=function(H){this.elements.push(H)},U.prototype.getUI=function(){var H=J.prototype.getUI.call(this);return this.elements.forEach(function($){return H.appendChild($)}),H},U}(hr),Wr=function(){function J(U,H){this.horizontal=U,this.vertical=H}return Object.defineProperty(J.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),J.prototype.getVerticalLength=function(U){return U/this.ratio},J.prototype.getHorizontalLength=function(U){return U*this.ratio},J}(),ea=function(){function J(){}return J.getIcon=function(U,H){if(U>0&&H>0){var $=new Wr(U,H),re=$.ratio>=1?20:$.getHorizontalLength(20),ee=$.ratio<1?20:$.getVerticalLength(20),Qe=document.createElementNS("http://www.w3.org/2000/svg","svg");Qe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qe.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Qe);var dn=st.createDefs();Qe.appendChild(dn);var On=st.createElement("clipPath",[["id","text-bg-clip"]]);dn.appendChild(On);var Wn=st.createPath(st.getHollowRectanglePath((24-re)/2,(24-ee)/2,re,ee,(24-re)/2+2,(24-ee)/2+2,re-4,ee-4));Qe.appendChild(Wn);var pn=st.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);pn.appendChild(st.createTSpan(U+":"+H)),Qe.appendChild(pn);var er=pn.getBBox();st.setAttributes(pn,[["x",((24-er.width)/2).toString()],["y",((24-er.height)/2-er.y).toString()]]);var tr=st.createPath(st.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(er.width))/2,(24-Math.ceil(er.height))/2,Math.ceil(er.width),Math.ceil(er.height)));return On.appendChild(tr),st.setAttributes(Wn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Qe),Qe.outerHTML}return''},J}(),Pr=function(J){function U(H,$,re){var ee=J.call(this,H,$)||this;return ee.isDropdownOpen=!1,ee.onClick=ee.dropdownButtonClicked,ee.dropdownButtons=re,ee}return Pt(U,J),U.prototype.setupDropdown=function(){var H=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function($){$.className=H.className,$.colorsClassName=H.colorsClassName,H.dropdownBlock.appendChild($.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},U.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},U.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},U.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},U.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},U.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},U}(lr),mr=function(){function J(U,H){this.GRIP_SIZE=10,this.color=U,this.fillColor=H,this.visual=st.createGroup(),this.visual.appendChild(st.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(st.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return J.prototype.ownsTarget=function(U){return U===this.visual||U===this.visual.childNodes[0]||U===this.visual.childNodes[1]},J.prototype.setCenter=function(U,H){this.visual.childNodes.forEach(function($){return st.setAttributes($,[["cx",U.toString()],["cy",H.toString()]])})},J}(),Fr=function(){function J(U,H,$,re){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=U,this.canvasHeight=H,this.margin=$,this.container=re,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(J.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(U){this._aspectRatio=U,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(U){this._isGridVisible=U,this.gridContainer&&st.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(U){this._zoomFactor=U,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),J.prototype.open=function(){var U=this;this.cropShadeElement=st.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=st.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var H=0;Hthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-H.height/2),st.setAttributes(this.cropRectElement,[["x",H.x.toString()],["y",H.y.toString()],["width",H.width.toString()],["height",H.height.toString()]]);var $=H.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(ee,Qe){var dn=H.y+$*(Qe+1);st.setAttributes(ee,[["x1",""+H.x],["y1",""+dn],["x2",""+(H.x+H.width)],["y2",""+dn]])});var re=H.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ee,Qe){var dn=H.x+re*(Qe+1);st.setAttributes(ee,[["x1",""+dn],["y1",""+H.y],["x2",""+dn],["y2",""+(H.y+H.height)]])}),st.setAttributes(this.cropShadeElement,[["d",st.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,H.x,H.y,H.width,H.height)]]),this.topLeftGrip.setCenter(H.x,H.y),this.topRightGrip.setCenter(H.x+H.width,H.y),this.bottomLeftGrip.setCenter(H.x,H.y+H.height),this.bottomRightGrip.setCenter(H.x+H.width,H.y+H.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},J.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},J.prototype.clientToLocalCoordinates=function(U,H){var $=this.container.getBoundingClientRect();return{x:U-$.left+this.margin,y:H-$.top+this.margin}},J.prototype.onPointerDown=function(U){this.container.setPointerCapture(U.pointerId),this.previousPoint=this.clientToLocalCoordinates(U.clientX,U.clientY),this.cropRectElement===U.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(U.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(U.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(U.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(U.target)&&(this.activeGrip=this.bottomRightGrip)},J.prototype.onPointerMove=function(U){if(this.isMoving)this.move(this.clientToLocalCoordinates(U.clientX,U.clientY));else if(this.activeGrip){var H=this.clientToLocalCoordinates(U.clientX,U.clientY);this.resize(H)}U.preventDefault()},J.prototype.onPointerUp=function(U){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(U.pointerId)},J.prototype.move=function(U){var H=U.x-this.previousPoint.x,$=U.y-this.previousPoint.y;this.zoomFactor!==1&&(H=-H/this.zoomFactor,$=-$/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+H),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+$),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=U},J.prototype.resize=function(U){var H=Object.assign({},this.cropRect),$=U.x-this.previousPoint.x,re=U.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:H.x+$this.canvasWidth*this.zoomFactor&&($=this.canvasWidth*this.zoomFactor-H.width),H.width+=$}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(H.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength($),H.height=this.aspectRatio.getVerticalLength(H.width)):(H.y+=re,H.height=this.cropRect.y+this.cropRect.height-H.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?H.height=this.aspectRatio.getVerticalLength(H.width):H.height+=re}H.width<10&&(H.x=this.cropRect.x,H.width=10),H.height<10&&(H.y=this.cropRect.y,H.height=10),this.previousPoint=U,H.x>=this.margin&&H.y>=this.margin&&H.x-this.margin+H.width<=this.canvasWidth&&H.y-this.margin+H.height<=this.canvasHeight&&(this.cropRect=H,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},J.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var U=this.cropRect.x+this.cropRect.width/2,H=this.cropRect.y+this.cropRect.height/2,$=this.aspectRatio.getHorizontalLength(this.cropRect.height),re=this.aspectRatio.getVerticalLength(this.cropRect.width);$/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=U-this.cropRect.width/2,this.cropRect.y=H-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},J.prototype.getRescaledRect=function(U,H,$,re,ee,Qe){var dn=$/U,On=re/H;return{x:(ee.x-Qe)*dn+Qe,y:(ee.y-Qe)*On+Qe,width:ee.width*dn,height:ee.height*On}},J.prototype.scaleCanvas=function(U,H){var $=this.getRescaledRect(this.canvasWidth,this.canvasHeight,U,H,this.cropRect,this.margin);this.canvasWidth=U,this.canvasHeight=H,this.onCropChange&&this.onCropChange($),this.setCropRectangle($)},J}(),ta=function(){function J(U){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=U,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(J.prototype,"angle",{get:function(){return this._angle},set:function(U){this._angle=U,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),J.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},J.prototype.onPointerDown=function(U){this.controlContainer.setPointerCapture(U.pointerId),this.isDragging=!0,this.previousPoint={x:U.clientX,y:U.clientY}},J.prototype.onPointerMove=function(U){this.isDragging&&(this.onAngleChange&&this.onAngleChange((U.clientX-this.previousPoint.x)/5),this.previousPoint.x=U.clientX)},J.prototype.onPointerUp=function(U){this.isDragging&&this.onAngleChange&&this.onAngleChange((U.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(U.pointerId)},J.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var U=this.angleLabelText.getBBox();st.setAttributes(this.angleLabelElement,[["x",((this.width-U.width)/2).toString()],["y",(this.height/2).toString()]])}},J.prototype.positionScaleShape=function(){if(this.scaleShape){var U=this.scaleShape.transform.baseVal.getItem(0);U.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(U,0)}},J.prototype.getVisual=function(){var U=document.createElementNS("http://www.w3.org/2000/svg","svg");U.setAttribute("xmlns","http://www.w3.org/2000/svg"),U.setAttribute("width",this.width+"px"),U.setAttribute("height",this.height+"px"),U.setAttribute("viewBox","0 0 "+this.width+" "+this.height),U.style.flexShrink="0",document.body.appendChild(U);for(var H="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,$=1;$<=this.width/5+10;$++){var re=$%5==0?this.height/3:this.height/6;H+="h4v"+-re+"h1v"+re}H+="v1H0Z",this.scaleShape=st.createPath(H);var ee=st.createTransform();this.scaleShape.transform.baseVal.appendItem(ee),U.appendChild(this.scaleShape),this.angleLabelElement=st.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=st.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Qe=st.createTSpan("");return Qe.innerHTML="°",this.angleLabelElement.appendChild(Qe),U.appendChild(this.angleLabelElement),document.body.removeChild(U),U},J}(),ca=function(){function J(){this.naturalSize=!1,this.imageType="image/png"}return J.prototype.rasterize=function(U,H,$,re,ee,Qe,dn){var On=this;return new Promise(function(Wn){var pn=document.createElement("canvas");pn.width=U.width.baseVal.value-2*re,pn.height=U.height.baseVal.value-2*re;var er=1,tr=1;On.naturalSize===!0?(er=H.naturalWidth/(U.width.baseVal.value-2*re)/Qe,tr=H.naturalHeight/(U.height.baseVal.value-2*re)/dn,pn.width=H.naturalWidth/Qe,pn.height=H.naturalHeight/dn):On.width!==void 0&&On.height!==void 0&&(er=On.width/$.width,tr=On.height/$.height,pn.width*=er,pn.height*=tr);var Br=pn.getContext("2d");Br.translate(pn.width/2,pn.height/2),Br.rotate(ee*Math.PI/180),Br.scale(Qe,dn),Br.translate(-pn.width/2,-pn.height/2),Br.drawImage(H,0,0,pn.width,pn.height);var ua=document.createElement("canvas");ua.width=$.width*er,ua.height=$.height*tr,ua.getContext("2d").putImageData(Br.getImageData(($.x-re)*er,($.y-re)*tr,$.width*er,$.height*tr),0,0),Wn(ua.toDataURL(On.imageType,On.imageQuality))})},J}(),Zt=function(){function J(U){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=J.instanceCounter++,this.styles=new xt(this.instanceNo),this.target=U,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(J.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(U){this._zoomToCropEnabled=U,U?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(U){this._isGridVisible=U,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"gridLines",{get:function(){return this._gridLines},set:function(U){this._gridLines=U,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(U){this._rotationAngle=U,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"aspectRatio",{get:function(){var U;return(U=this._aspectRatio)!==null&&U!==void 0?U:this.aspectRatios[0]},set:function(U){this._aspectRatio=U},enumerable:!1,configurable:!0}),J.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},J.prototype.show=function(){this.showUI(),this.open()},J.prototype.close=function(U){U===void 0&&(U=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),U||this.closeEventListeners.forEach(function(H){return H()}),this._isOpen=!1)},J.prototype.addRenderEventListener=function(U){this.renderEventListeners.push(U)},J.prototype.removeRenderEventListener=function(U){this.renderEventListeners.indexOf(U)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(U),1)},J.prototype.addCloseEventListener=function(U){this.closeEventListeners.push(U)},J.prototype.removeCloseEventListener=function(U){this.closeEventListeners.indexOf(U)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(U),1)},J.prototype.setupResizeObserver=function(){var U=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){U.resize(U.target.clientWidth,U.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},J.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var U=1*this.target.clientWidth/this.target.clientHeight,H=this.contentDiv.clientWidth/U>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*U:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,$=H+2*this.CANVAS_MARGINU+this.CANVAS_MARGIN?this.target.offsetTop-(U+this.CANVAS_MARGIN):0;this.coverDiv.style.top=H+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},J.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},J.prototype.addTopToolbar=function(){var U=this;this.topToolbar=new Mn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new yr;H.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(H);var $=[];this.aspectRatios.forEach(function(tr){var Br=new lr(ea.getIcon(tr.horizontal,tr.vertical),tr.horizontal===0&&tr.vertical===0?"FREE":tr.horizontal+":"+tr.vertical);Br.onClick=function(){return U.ratioButtonClicked(tr)},$.push(Br)}),this.aspectRatioButton=new Pr(ea.getIcon(0,0),"Aspect ratio",$),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,H.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var re=new lr('',"Toggle grid");re.isActive=this.isGridVisible,re.onClick=function(){U.isGridVisible=!U.isGridVisible,re.isActive=U.isGridVisible},H.addButton(re);var ee=new lr('',"Zoom to selection");if(ee.isActive=this.zoomToCropEnabled,ee.onClick=function(){U.zoomToCropEnabled=!U.zoomToCropEnabled,ee.isActive=U.zoomToCropEnabled},H.addButton(ee),!an.isLicensed){var Qe=new kn;this.topToolbar.addElementBlock(Qe);var dn=document.createElement("div");dn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var On=document.createElement("a");On.style.color="currentColor",On.href="https://markerjs.com/products/cropro",On.target="_blank",On.innerHTML='',dn.appendChild(On),Qe.addElement(dn)}var Wn=new yr;Wn.minWidth=3*this.toolbarHeight+"px",Wn.contentAlign="end",this.topToolbar.addButtonBlock(Wn);var pn=new lr('',"OK");pn.onClick=this.startRenderAndClose,Wn.addButton(pn),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(pn.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var er=new lr('',"Close");er.onClick=this.close,Wn.addButton(er),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(er.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},J.prototype.addBottomToolbar=function(){var U=this;this.bottomToolbar=new Mn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var H=new yr;H.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(H);var $=new lr('',"Rotate left");$.onClick=this.rotateLeftButtonClicked,H.addButton($);var re=new lr('',"Rotate right");re.onClick=this.rotateRightButtonClicked,H.addButton(re);var ee=new kn;ee.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(ee),this.straightener=new ta("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Wn){U.rotateBy(Wn),U.straightener.angle=U.rotationAngle},ee.addElement(this.straightener.getUI());var Qe=new yr;Qe.minWidth=2*this.toolbarHeight+"px",Qe.contentAlign="end",this.bottomToolbar.addButtonBlock(Qe);var dn=new lr('',"Flip horizontal");dn.onClick=this.flipHorizontallyButtonClicked,Qe.addButton(dn);var On=new lr('',"Flip vertical");On.onClick=this.flipVerticallyButtonClicked,Qe.addButton(On)},J.prototype.ratioButtonClicked=function(U){this.aspectRatio=U,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},J.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=ea.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},J.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Wr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},J.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},J.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},J.prototype.restoreState=function(U){if(U){var H=this.cropLayer.getRescaledRect(U.width,U.height,this.imageWidth,this.imageHeight,U.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(H),this.cropRectChanged(H),this.flippedHorizontally=U.flippedHorizontally,this.flippedVertically=U.flippedVertically,this.applyFlip(),this.rotationAngle=U.rotationAngle,this.applyRotation()}},J.prototype.clientToLocalCoordinates=function(U,H){var $=this.cropImage.getBoundingClientRect();return{x:U-$.left,y:H-$.top}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var U=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=U+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},J.prototype.rotateLeftButtonClicked=function(){var U=this.rotationAngle-90;this.rotationAngle%90!=0&&(U+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(U)},J.prototype.rotateRightButtonClicked=function(){var U=this.rotationAngle+90;this.rotationAngle%90!=0&&(U-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(U)},J.prototype.rotateTo=function(U){U=(U=U>180?U-360:U)<=-180?U+360:U,this.rotationAngle=U,this.applyRotation()},J.prototype.rotateBy=function(U){this.rotateTo((this.rotationAngle+U)%360)},J.prototype.applyRotation=function(){var U=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var H=this.editingTargetRotationContainer.transform.baseVal.getItem(0);H.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(H,0);var $=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/$.width,this.imageHeight/$.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=U},J.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},J.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},J.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},J.prototype.startRenderAndClose=function(){return pt(this,void 0,void 0,function(){var U,H;return en(this,function($){switch($.label){case 0:return[4,this.render()];case 1:return U=$.sent(),H=this.getState(),this.renderEventListeners.forEach(function(re){return re(U,H)}),this.close(!0),[2]}})})},J.prototype.render=function(){return pt(this,void 0,void 0,function(){var U;return en(this,function(H){switch(H.label){case 0:return(U=new ca).naturalSize=this.renderAtNaturalSize,U.imageType=this.renderImageType,U.imageQuality=this.renderImageQuality,U.width=this.renderWidth,U.height=this.renderHeight,this.unzoomFromCrop(),st.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,U.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return H.sent(),[4,U.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,H.sent()]}})})},J.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new yn("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -184,13 +184,13 @@ PERFORMANCE OF THIS SOFTWARE. box-sizing: content-box; overflow: hidden; line-height: 0px; - `)),this.toolbarStyleColorsClass=this.styles.addClass(new gn("toolbar_colors",` + `)),this.toolbarStyleColorsClass=this.styles.addClass(new yn("toolbar_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; - `)),this.toolbarBlockStyleClass=this.styles.addClass(new gn("toolbar-block",` + `)),this.toolbarBlockStyleClass=this.styles.addClass(new yn("toolbar-block",` display: flex; align-items: center; box-sizing: content-box; - `));var U=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new gn("toolbar_button",` + `));var U=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new yn("toolbar_button",` display: inline-block; width: `+(this.toolbarHeight-2*U)+`px; height: `+(this.toolbarHeight-2*U)+`px; @@ -198,18 +198,18 @@ PERFORMANCE OF THIS SOFTWARE. cursor: default; user-select: none; box-sizing: content-box; - `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new gn("toolbar_button_colors",` + `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new yn("toolbar_button_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new gn("toolbar_active_button",` + `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new yn("toolbar_active_button",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; background-color: `+this.styles.settings.toolbarBackgroundActiveColor+` - `)),this.styles.addRule(new Ut("."+this.toolbarButtonStyleClass.name+" svg",` + `)),this.styles.addRule(new Nt("."+this.toolbarButtonStyleClass.name+" svg",` height: `+this.toolbarHeight/2+`px; - `)),this.styles.addRule(new Ut("."+this.toolbarButtonStyleColorsClass.name+":hover",` + `)),this.styles.addRule(new Nt("."+this.toolbarButtonStyleColorsClass.name+":hover",` background-color: `+this.styles.settings.toolbarBackgroundHoverColor+` - `)),this.toolbarDropdownStyleClass=this.styles.addClass(new gn("toolbar_dropdown",` + `)),this.toolbarDropdownStyleClass=this.styles.addClass(new yn("toolbar_dropdown",` position: absolute; max-width: `+4*this.toolbarHeight+`px; z-index: 20; @@ -218,14 +218,14 @@ PERFORMANCE OF THIS SOFTWARE. box-shadow: 3px 3px rgba(33, 33, 33, 0.1); margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px; line-height: 0px; - `)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new gn("toolbar_dropdown_colors",` + `)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new yn("toolbar_dropdown_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; - `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new gn("toolbar_straightener_block",` + `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new yn("toolbar_straightener_block",` display: flex; overflow: hidden; justify-content: center; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%); - `)),this.toolbarStraightenerStyleClass=this.styles.addClass(new gn("toolbar_straightener",` + `)),this.toolbarStraightenerStyleClass=this.styles.addClass(new yn("toolbar_straightener",` display: flex; overflow: hidden; justify-content: center; @@ -234,12 +234,12 @@ PERFORMANCE OF THIS SOFTWARE. cursor: default; user-select: none; box-sizing: content-box; - `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new gn("toolbar_straightener_colors",` + `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new yn("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},J.instanceCounter=0,J}(),In=P("8hTe"),hr=P.n(In),Or=/]*>/g;function _r(J){var U=document.createElement("div");return U.innerHTML=J,U.childNodes.length===0?"":U.childNodes[0].nodeValue}var Sr=te.a=function(J){var U=J.value,H=U===void 0?"":U,$=J.edit,re=$===void 0?!1:$,ee=J.className,Qe=J.showTextOnly,cn=J.showLines,Dn=J.replaces,Wn=J.zoomImg,fn=J.hasMask,tr=J.style,nr=tr===void 0?{}:tr,jr=J.stylesPrev,ua=jr===void 0?{}:jr,va=String(H),zr=Object(g.useRef)(),zn=Object(g.useRef)(),_n=Object(g.useState)(""),yn=Object(M.a)(_n,2),Hn=yn[0],mr=yn[1],Xn=Object(g.useState)("office"),Vn=Object(M.a)(Xn,2),Kn=Vn[0],lr=Vn[1],Yn=function(){var Ke=new Zt(zn.current);Ke.displayMode="popup",Ke.addRenderEventListener(function(){var lt=Object(S.a)(E.a.mark(function mt(ht){var _t;return E.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return zr.current.style.display="none",Nt.next=3,Object(ve.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ht}});case 3:_t=Nt.sent,_t!=null&&_t.id&&Dn(zn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(_t==null?void 0:_t.id,"?type=").concat(_t.content_type));case 5:case"end":return Nt.stop()}},mt)}));return function(mt){return lt.apply(this,arguments)}}()),Ke.show()},Jn=function(){var Ke=new ye(zn.current);Ke.settings.displayMode="popup",Ke.addEventListener("render",function(){var lt=Object(S.a)(E.a.mark(function mt(ht){var _t;return E.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(zr.current.style.display="none",!zn.current){Nt.next=6;break}return Nt.next=4,Object(ve.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ht.dataUrl}});case 4:_t=Nt.sent,_t!=null&&_t.id&&Dn(zn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(_t==null?void 0:_t.id,"?type=").concat(_t.content_type));case 6:case"end":return Nt.stop()}},mt)}));return function(mt){return lt.apply(this,arguments)}}()),Ke.show(),window.markerArea=Ke},fr=Object(g.useMemo)(function(){try{var ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ke=/\"\/api\/attachments\/|\"\/attachments\/download\//g,lt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;va=va.replace(ut,"("+V.a.API_SERVER+"/api/attachments/").replace(Ke,'"'+V.a.API_SERVER+"/api/attachments/").replace(lt,'"'+V.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` + `))},J.instanceCounter=0,J}(),In=P("8hTe"),fr=P.n(In),Dr=/]*>/g;function Cr(J){var U=document.createElement("div");return U.innerHTML=J,U.childNodes.length===0?"":U.childNodes[0].nodeValue}var wr=te.a=function(J){var U=J.value,H=U===void 0?"":U,$=J.edit,re=$===void 0?!1:$,ee=J.className,Qe=J.showTextOnly,dn=J.showLines,On=J.replaces,Wn=J.zoomImg,pn=J.hasMask,er=J.style,tr=er===void 0?{}:er,Br=J.stylesPrev,ua=Br===void 0?{}:Br,va=String(H),Gr=Object(g.useRef)(),zn=Object(g.useRef)(),_n=Object(g.useState)(""),bn=Object(M.a)(_n,2),Hn=bn[0],vr=bn[1],Xn=Object(g.useState)("office"),Vn=Object(M.a)(Xn,2),Gn=Vn[0],dr=Vn[1],Yn=function(){var Ke=new Zt(zn.current);Ke.displayMode="popup",Ke.addRenderEventListener(function(){var lt=Object(S.a)(E.a.mark(function mt(ht){var _t;return E.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return Gr.current.style.display="none",kt.next=3,Object(ve.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ht}});case 3:_t=kt.sent,_t!=null&&_t.id&&On(zn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(_t==null?void 0:_t.id,"?type=").concat(_t.content_type));case 5:case"end":return kt.stop()}},mt)}));return function(mt){return lt.apply(this,arguments)}}()),Ke.show()},Qn=function(){var Ke=new ye(zn.current);Ke.settings.displayMode="popup",Ke.addEventListener("render",function(){var lt=Object(S.a)(E.a.mark(function mt(ht){var _t;return E.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(Gr.current.style.display="none",!zn.current){kt.next=6;break}return kt.next=4,Object(ve.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ht.dataUrl}});case 4:_t=kt.sent,_t!=null&&_t.id&&On(zn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(_t==null?void 0:_t.id,"?type=").concat(_t.content_type));case 6:case"end":return kt.stop()}},mt)}));return function(mt){return lt.apply(this,arguments)}}()),Ke.show(),window.markerArea=Ke},pr=Object(g.useMemo)(function(){try{var ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ke=/\"\/api\/attachments\/|\"\/attachments\/download\//g,lt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;va=va.replace(ut,"("+V.a.API_SERVER+"/api/attachments/").replace(Ke,'"'+V.a.API_SERVER+"/api/attachments/").replace(lt,'"'+V.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),va=va.replace(new RegExp("(?[TOC]

                  ",I()),y()),mt=mt.replace(/(__special_katext_id_\d+__)/g,function($t,Nt){var vt=ht[Nt],nt=vt.type,Dt=vt.expression;return Object(q.renderToString)(_r(Dt)||"",{displayMode:nt==="block",throwOnError:!1,output:"html"})}),mt=mt.replace(/▁/g,"\u2581\u2581\u2581"),O(),Qe){var _t=document.createElement("div");return _t.innerHTML=mt,_t.innerText}return setTimeout(function(){return We()},500),mt},[va]),Q=Object(g.useRef)();D.WebkitLineClamp=cn,cn&&(nr=Object(T.a)(Object(T.a)({},nr),D));function Se(ut){var Ke=ut.target;if(Ke.tagName.toUpperCase()==="IMG"){if(Wn){var lt=Ke.getAttribute("src");mr(lt),lr("image")}}else if(Ke.tagName.toUpperCase()==="A"){var mt=Ke.getAttribute("href");if(mt.indexOf("office")>-1)ut.preventDefault(),mr(mt),lr("office");else if(mt.indexOf("application/pdf")>-1)ut.preventDefault(),mr(mt),lr("pdf");else if(mt.indexOf("type=text")>-1)ut.preventDefault(),mr(mt),lr("html");else if(mt.startsWith("#")){ut.preventDefault();var ht=document.getElementById(mt.replace("#",""));ht&&ht.scrollIntoView(!0)}}}var We=function(){var Ke,lt=(Ke=Q.current)===null||Ke===void 0?void 0:Ke.querySelectorAll("video");lt==null||lt.forEach(function(mt){if(mt.oncontextmenu=function(){return!1},mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(Y.a.isSupported()){var ht=new Y.a;ht.loadSource(mt.src),ht.attachMedia(mt)}}})};Object(g.useEffect)(function(){if(Q.current&&fr&&(fr.match(Or)&&window.PR.prettyPrint()),Q.current)return Q.current.addEventListener("click",Se),function(){Q.current.removeEventListener("click",Se),O(),y()}},[fr,Q.current,Se]);var Xe=function(Ke){if(!re)return;Ke.target.nodeName==="IMG"?(zr.current.style.display="flex",zr.current.style.width=Ke.target.clientWidth+"px",zr.current.style.height=Ke.target.clientHeight+"px",zr.current.style.top=Ke.target.offsetTop+"px",zr.current.style.left=Ke.target.offsetLeft+"px",zn.current.src=Ke.target.getAttribute("src")):zr.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:Q,style:Object(T.a)({},nr),className:"".concat(ee||""," markdown-body ").concat(hr.a.mdBody),onMouseOver:Xe,dangerouslySetInnerHTML:{__html:fr}}),r.a.createElement("div",{ref:zr,className:hr.a.button},r.a.createElement(F.a,null,r.a.createElement(j.a,{onClick:function(){return Yn()}},"\u88C1\u526A"),r.a.createElement(j.a,{onClick:function(){return Jn()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:zn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),r.a.createElement(ne.a,{close:!0,data:Hn,hasMask:fn,type:Hn!=null&&Hn.length?Kn:"",style:Object(T.a)({},ua),onClose:function(){return mr("")}}))}},"9VGf":function(ze,te,P){"use strict";P.d(te,"a",function(){return R});var X=P("q1tI"),F=P.n(X);function R(j,T){var S=Object(X.useRef)();Object(X.useEffect)(function(){S.current=j}),Object(X.useEffect)(function(){function M(){S.current()}if(T!==null){var c=setInterval(M,T);return function(){return clearInterval(c)}}},[T])}},Aocz:function(ze,te,P){ze.exports={flex_box_center:"flex_box_center___7n5J9",flex_space_between:"flex_space_between___1vC-V",flex_box_vertical_center:"flex_box_vertical_center___3gkLb",flex_box_center_end:"flex_box_center_end___26SUk",flex_box_column:"flex_box_column___2iv36",title:"title___ooa1w",menuTabs:"menuTabs___3mPq2",rightMenu:"rightMenu___2Vjbz",shixunDetail:"shixunDetail___2EXcB"}},BPZU:function(ze,te){var P=32,X=7,F=256;function R(r){for(var l=0;r>=P;)l|=r&1,r>>=1;return r+l}function j(r,l,b,u){var p=l+1;if(p===b)return 1;if(u(r[p++],r[l])<0){for(;p=0;)p++;return p-l}function T(r,l,b){for(b--;l>>1,p(v,r[s])<0?t=s:a=s+1;var h=u-a;switch(h){case 3:r[a+3]=r[a+2];case 2:r[a+2]=r[a+1];case 1:r[a+1]=r[a];break;default:for(;h>0;)r[a+h]=r[a+h-1],h--}r[a]=v}}function M(r,l,b,u,p,v){var a=0,t=0,s=1;if(v(r,l[b+p])>0){for(t=u-p;s0;)a=s,s=(s<<1)+1,s<=0&&(s=t);s>t&&(s=t),a+=p,s+=p}else{for(t=p+1;st&&(s=t);var h=a;a=p-s,s=p-h}for(a++;a>>1);v(r,l[b+y])>0?a=y+1:s=y}return s}function c(r,l,b,u,p,v){var a=0,t=0,s=1;if(v(r,l[b+p])<0){for(t=p+1;st&&(s=t);var h=a;a=p-s,s=p-h}else{for(t=u-p;s=0;)a=s,s=(s<<1)+1,s<=0&&(s=t);s>t&&(s=t),a+=p,s+=p}for(a++;a>>1);v(r,l[b+y])<0?s=y:a=y+1}return s}function E(r,l){var b=X,u=0,p=F,v=0,a,t,s=0;u=r.length,u<2*F&&(p=u>>>1);var h=[];v=u<120?5:u<1542?10:u<119151?19:40,a=[],t=[];function y(o,i){a[s]=o,t[s]=i,s+=1}function D(){for(;s>1;){var o=s-2;if(o>=1&&t[o-1]<=t[o]+t[o+1]||o>=2&&t[o-2]<=t[o]+t[o-1])t[o-1]t[o+1])break;I(o)}}function C(){for(;s>1;){var o=s-2;o>0&&t[o-1]=X||W>=X);if(z)break;B<0&&(B=0),B+=2}if(b=B,b<1&&(b=1),i===1){for(O=0;O=0;O--)r[G+O]=r[B+O];r[N]=h[k];return}for(var W=b;;){var z=0,Y=0,V=!1;do if(l(h[k],r[m])<0){if(r[N--]=r[m--],z++,Y=0,--i===0){V=!0;break}}else if(r[N--]=h[k--],Y++,z=0,--A===1){V=!0;break}while((z|Y)=0;O--)r[G+O]=r[B+O];if(i===0){V=!0;break}}if(r[N--]=h[k--],--A===1){V=!0;break}if(Y=A-M(r[m],h,0,A,A-1,l),Y!==0){for(N-=Y,k-=Y,A-=Y,G=N+1,B=k+1,O=0;O=X||Y>=X);if(V)break;W<0&&(W=0),W+=2}if(b=W,b<1&&(b=1),A===1){for(N-=i,m-=i,G=N+1,B=m+1,O=i-1;O>=0;O--)r[G+O]=r[B+O];r[N]=h[k]}else{if(A===0)throw new Error;for(B=N-(A-1),O=0;Ot&&(s=t),S(r,b,b+s,b+v,l),v=s}a.pushRun(b,v),a.mergeRuns(),p-=v,b+=v}while(p!==0);a.forceMergeRuns()}ze.exports=g},BU3w:function(ze,te,P){"use strict";P.d(te,"a",function(){return S});var X=P("MNnm"),F="rc-util-key";function R(M){if(M.attachTo)return M.attachTo;var c=document.querySelector("head");return c||document.body}function j(M){var c,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(X.a)())return null;var g=document.createElement("style");if((c=E.csp)===null||c===void 0?void 0:c.nonce){var r;g.nonce=(r=E.csp)===null||r===void 0?void 0:r.nonce}g.innerHTML=M;var l=R(E),b=l.firstChild;return E.prepend&&l.prepend?l.prepend(g):E.prepend&&b?l.insertBefore(g,b):l.appendChild(g),g}var T=new Map;function S(M,c){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=R(E);if(!T.has(g)){var r=j("",E),l=r.parentNode;T.set(g,l),l.removeChild(r)}var b=Array.from(T.get(g).children).find(function(t){return t.tagName==="STYLE"&&t[F]===c});if(b){var u,p;if(((u=E.csp)===null||u===void 0?void 0:u.nonce)&&b.nonce!==((p=E.csp)===null||p===void 0?void 0:p.nonce)){var v;b.nonce=(v=E.csp)===null||v===void 0?void 0:v.nonce}return b.innerHTML!==M&&(b.innerHTML=M),b}var a=j(M,E);return a[F]=c,a}},Bd2K:function(ze,te,P){(function(X){X(P("VrN/"),P("osHv"))})(function(X){X.defineOption("autoCloseTags",!1,function(E,g,r){if(r!=X.Init&&r&&E.removeKeyMap("autoCloseTags"),!g)return;var l={name:"autoCloseTags"};(typeof g!="object"||g.whenClosing!==!1)&&(l["'/'"]=function(b){return S(b)}),(typeof g!="object"||g.whenOpening!==!1)&&(l["'>'"]=function(b){return j(b)}),E.addKeyMap(l)});var F=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],R=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function j(E){if(E.getOption("disableInput"))return X.Pass;for(var g=E.listSelections(),r=[],l=E.getOption("autoCloseTags"),b=0;bu.ch&&(s=s.slice(0,s.length-p.end+u.ch));var C=s.toLowerCase();if(!s||p.type=="string"&&(p.end!=u.ch||!/[\"\']/.test(p.string.charAt(p.string.length-1))||p.string.length==1)||p.type=="tag"&&t.close||p.string.indexOf("/")==u.ch-p.start-1||y&&M(y,C)>-1||c(E,v.mode.xmlCurrentContext&&v.mode.xmlCurrentContext(a)||[],s,u,!0))return X.Pass;var I=typeof l=="object"&&l.emptyTags;if(I&&M(I,s)>-1){r[b]={text:"/>",newPos:X.Pos(u.line,u.ch+2)};continue}var _=D&&M(D,C)>-1;r[b]={indent:_,text:">"+(_?` +`)}catch($t){}var mt=G(va),ht=A();if(va.match(/\[TOC\]/)&&(mt=mt.replace("

                  [TOC]

                  ",I()),y()),mt=mt.replace(/(__special_katext_id_\d+__)/g,function($t,kt){var vt=ht[kt],et=vt.type,Dt=vt.expression;return Object(q.renderToString)(Cr(Dt)||"",{displayMode:et==="block",throwOnError:!1,output:"html"})}),mt=mt.replace(/▁/g,"\u2581\u2581\u2581"),O(),Qe){var _t=document.createElement("div");return _t.innerHTML=mt,_t.innerText}return setTimeout(function(){return We()},500),mt},[va]),Q=Object(g.useRef)();D.WebkitLineClamp=dn,dn&&(tr=Object(T.a)(Object(T.a)({},tr),D));function Se(ut){var Ke=ut.target;if(Ke.tagName.toUpperCase()==="IMG"){if(Wn){var lt=Ke.getAttribute("src");vr(lt),dr("image")}}else if(Ke.tagName.toUpperCase()==="A"){var mt=Ke.getAttribute("href");if(mt.indexOf("office")>-1)ut.preventDefault(),vr(mt),dr("office");else if(mt.indexOf("application/pdf")>-1)ut.preventDefault(),vr(mt),dr("pdf");else if(mt.indexOf("type=text")>-1)ut.preventDefault(),vr(mt),dr("html");else if(mt.startsWith("#")){ut.preventDefault();var ht=document.getElementById(mt.replace("#",""));ht&&ht.scrollIntoView(!0)}}}var We=function(){var Ke,lt=(Ke=Q.current)===null||Ke===void 0?void 0:Ke.querySelectorAll("video");lt==null||lt.forEach(function(mt){if(mt.oncontextmenu=function(){return!1},mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(Y.a.isSupported()){var ht=new Y.a;ht.loadSource(mt.src),ht.attachMedia(mt)}}})};Object(g.useEffect)(function(){if(Q.current&&pr&&(pr.match(Dr)&&window.PR.prettyPrint()),Q.current)return Q.current.addEventListener("click",Se),function(){Q.current.removeEventListener("click",Se),O(),y()}},[pr,Q.current,Se]);var Ve=function(Ke){if(!re)return;Ke.target.nodeName==="IMG"?(Gr.current.style.display="flex",Gr.current.style.width=Ke.target.clientWidth+"px",Gr.current.style.height=Ke.target.clientHeight+"px",Gr.current.style.top=Ke.target.offsetTop+"px",Gr.current.style.left=Ke.target.offsetLeft+"px",zn.current.src=Ke.target.getAttribute("src")):Gr.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:Q,style:Object(T.a)({},tr),className:"".concat(ee||""," markdown-body ").concat(fr.a.mdBody),onMouseOver:Ve,dangerouslySetInnerHTML:{__html:pr}}),r.a.createElement("div",{ref:Gr,className:fr.a.button},r.a.createElement(F.a,null,r.a.createElement(j.a,{onClick:function(){return Yn()}},"\u88C1\u526A"),r.a.createElement(j.a,{onClick:function(){return Qn()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:zn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),r.a.createElement(ne.a,{close:!0,data:Hn,hasMask:pn,type:Hn!=null&&Hn.length?Gn:"",style:Object(T.a)({},ua),onClose:function(){return vr("")}}))}},"9VGf":function(ze,te,P){"use strict";P.d(te,"a",function(){return R});var X=P("q1tI"),F=P.n(X);function R(j,T){var S=Object(X.useRef)();Object(X.useEffect)(function(){S.current=j}),Object(X.useEffect)(function(){function M(){S.current()}if(T!==null){var c=setInterval(M,T);return function(){return clearInterval(c)}}},[T])}},Aocz:function(ze,te,P){ze.exports={flex_box_center:"flex_box_center___7n5J9",flex_space_between:"flex_space_between___1vC-V",flex_box_vertical_center:"flex_box_vertical_center___3gkLb",flex_box_center_end:"flex_box_center_end___26SUk",flex_box_column:"flex_box_column___2iv36",title:"title___ooa1w",menuTabs:"menuTabs___3mPq2",rightMenu:"rightMenu___2Vjbz",shixunDetail:"shixunDetail___2EXcB"}},BPZU:function(ze,te){var P=32,X=7,F=256;function R(r){for(var l=0;r>=P;)l|=r&1,r>>=1;return r+l}function j(r,l,b,u){var p=l+1;if(p===b)return 1;if(u(r[p++],r[l])<0){for(;p=0;)p++;return p-l}function T(r,l,b){for(b--;l>>1,p(v,r[s])<0?t=s:a=s+1;var h=u-a;switch(h){case 3:r[a+3]=r[a+2];case 2:r[a+2]=r[a+1];case 1:r[a+1]=r[a];break;default:for(;h>0;)r[a+h]=r[a+h-1],h--}r[a]=v}}function M(r,l,b,u,p,v){var a=0,t=0,s=1;if(v(r,l[b+p])>0){for(t=u-p;s0;)a=s,s=(s<<1)+1,s<=0&&(s=t);s>t&&(s=t),a+=p,s+=p}else{for(t=p+1;st&&(s=t);var h=a;a=p-s,s=p-h}for(a++;a>>1);v(r,l[b+y])>0?a=y+1:s=y}return s}function c(r,l,b,u,p,v){var a=0,t=0,s=1;if(v(r,l[b+p])<0){for(t=p+1;st&&(s=t);var h=a;a=p-s,s=p-h}else{for(t=u-p;s=0;)a=s,s=(s<<1)+1,s<=0&&(s=t);s>t&&(s=t),a+=p,s+=p}for(a++;a>>1);v(r,l[b+y])<0?s=y:a=y+1}return s}function E(r,l){var b=X,u=0,p=F,v=0,a,t,s=0;u=r.length,u<2*F&&(p=u>>>1);var h=[];v=u<120?5:u<1542?10:u<119151?19:40,a=[],t=[];function y(o,i){a[s]=o,t[s]=i,s+=1}function D(){for(;s>1;){var o=s-2;if(o>=1&&t[o-1]<=t[o]+t[o+1]||o>=2&&t[o-2]<=t[o]+t[o-1])t[o-1]t[o+1])break;I(o)}}function C(){for(;s>1;){var o=s-2;o>0&&t[o-1]=X||W>=X);if(z)break;B<0&&(B=0),B+=2}if(b=B,b<1&&(b=1),i===1){for(O=0;O=0;O--)r[G+O]=r[B+O];r[N]=h[k];return}for(var W=b;;){var z=0,Y=0,V=!1;do if(l(h[k],r[m])<0){if(r[N--]=r[m--],z++,Y=0,--i===0){V=!0;break}}else if(r[N--]=h[k--],Y++,z=0,--A===1){V=!0;break}while((z|Y)=0;O--)r[G+O]=r[B+O];if(i===0){V=!0;break}}if(r[N--]=h[k--],--A===1){V=!0;break}if(Y=A-M(r[m],h,0,A,A-1,l),Y!==0){for(N-=Y,k-=Y,A-=Y,G=N+1,B=k+1,O=0;O=X||Y>=X);if(V)break;W<0&&(W=0),W+=2}if(b=W,b<1&&(b=1),A===1){for(N-=i,m-=i,G=N+1,B=m+1,O=i-1;O>=0;O--)r[G+O]=r[B+O];r[N]=h[k]}else{if(A===0)throw new Error;for(B=N-(A-1),O=0;Ot&&(s=t),S(r,b,b+s,b+v,l),v=s}a.pushRun(b,v),a.mergeRuns(),p-=v,b+=v}while(p!==0);a.forceMergeRuns()}ze.exports=g},BU3w:function(ze,te,P){"use strict";P.d(te,"a",function(){return S});var X=P("MNnm"),F="rc-util-key";function R(M){if(M.attachTo)return M.attachTo;var c=document.querySelector("head");return c||document.body}function j(M){var c,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(X.a)())return null;var g=document.createElement("style");if((c=E.csp)===null||c===void 0?void 0:c.nonce){var r;g.nonce=(r=E.csp)===null||r===void 0?void 0:r.nonce}g.innerHTML=M;var l=R(E),b=l.firstChild;return E.prepend&&l.prepend?l.prepend(g):E.prepend&&b?l.insertBefore(g,b):l.appendChild(g),g}var T=new Map;function S(M,c){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=R(E);if(!T.has(g)){var r=j("",E),l=r.parentNode;T.set(g,l),l.removeChild(r)}var b=Array.from(T.get(g).children).find(function(t){return t.tagName==="STYLE"&&t[F]===c});if(b){var u,p;if(((u=E.csp)===null||u===void 0?void 0:u.nonce)&&b.nonce!==((p=E.csp)===null||p===void 0?void 0:p.nonce)){var v;b.nonce=(v=E.csp)===null||v===void 0?void 0:v.nonce}return b.innerHTML!==M&&(b.innerHTML=M),b}var a=j(M,E);return a[F]=c,a}},Bd2K:function(ze,te,P){(function(X){X(P("VrN/"),P("osHv"))})(function(X){X.defineOption("autoCloseTags",!1,function(E,g,r){if(r!=X.Init&&r&&E.removeKeyMap("autoCloseTags"),!g)return;var l={name:"autoCloseTags"};(typeof g!="object"||g.whenClosing!==!1)&&(l["'/'"]=function(b){return S(b)}),(typeof g!="object"||g.whenOpening!==!1)&&(l["'>'"]=function(b){return j(b)}),E.addKeyMap(l)});var F=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],R=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function j(E){if(E.getOption("disableInput"))return X.Pass;for(var g=E.listSelections(),r=[],l=E.getOption("autoCloseTags"),b=0;bu.ch&&(s=s.slice(0,s.length-p.end+u.ch));var C=s.toLowerCase();if(!s||p.type=="string"&&(p.end!=u.ch||!/[\"\']/.test(p.string.charAt(p.string.length-1))||p.string.length==1)||p.type=="tag"&&t.close||p.string.indexOf("/")==u.ch-p.start-1||y&&M(y,C)>-1||c(E,v.mode.xmlCurrentContext&&v.mode.xmlCurrentContext(a)||[],s,u,!0))return X.Pass;var I=typeof l=="object"&&l.emptyTags;if(I&&M(I,s)>-1){r[b]={text:"/>",newPos:X.Pos(u.line,u.ch+2)};continue}var _=D&&M(D,C)>-1;r[b]={indent:_,text:">"+(_?` `:"")+"",newPos:_?X.Pos(u.line+1,0):X.Pos(u.line,u.ch+1)}}for(var f=typeof l=="object"&&l.dontIndentOnAutoClose,b=g.length-1;b>=0;b--){var o=r[b];E.replaceRange(o.text,g[b].head,g[b].anchor,"+insert");var i=E.listSelections().slice(0);i[b]={head:o.newPos,anchor:o.newPos},E.setSelections(i),!f&&o.indent&&(E.indentLine(o.newPos.line,null,!0),E.indentLine(o.newPos.line+1,null,!0))}}function T(E,g){for(var r=E.listSelections(),l=[],b=g?"/":""&&(y+=">"),l[v]=y}if(E.replaceSelections(l),r=E.listSelections(),!p)for(var v=0;v=0&&g[a]==r;a--)++v;l=p.to;for(var a=1;a0){for(var g=0;g1&&arguments[1]!==void 0?arguments[1]:"",g=[],r=0;r.5?D:y}function g(y,D,C,I,_){var f=y.length;if(_===1)for(var o=0;o_;if(f)y.length=_;else for(var o=I;o<_;o++)y.push(C===1?D[o]:T.call(D[o]))}for(var i=y[0]&&y[0].length,o=0;o=0&&!(W[Oe]<=rt);Oe--);Oe=Math.min(Oe,A-2)}else{for(Oe=be;Oert);Oe++);Oe=Math.min(Oe-1,A-2)}be=Oe,we=rt;var Ge=W[Oe+1]-W[Oe];if(Ge===0)return;if(ge=(rt-W[Oe])/Ge,d)if(Ze=z[Oe],fe=z[Oe===0?Oe:Oe-1],Ot=z[Oe>A-2?A-1:Oe+1],Ee=z[Oe>A-3?A-1:Oe+2],m)b(fe,Ze,Ot,Ee,ge,ge*ge,ge*ge*ge,o(Le,_),B);else{var at;if(k)at=b(fe,Ze,Ot,Ee,ge,ge*ge,ge*ge*ge,ke,1),at=v(ke);else{if(N)return E(Ze,Ot,ge);at=u(fe,Ze,Ot,Ee,ge,ge*ge,ge*ge*ge)}i(Le,_,at)}else if(m)g(z[Oe],z[Oe+1],ge,o(Le,_),B);else{var at;if(k)g(z[Oe],z[Oe+1],ge,ke,1),at=v(ke);else{if(N)return E(z[Oe],z[Oe+1],ge);at=c(z[Oe],z[Oe+1],ge)}i(Le,_,at)}},me=new X({target:y._target,life:G,loop:y._loop,delay:y._delay,onframe:de,ondestroy:C});return D&&D!=="spline"&&(me.easing=D),me}var s=function(y,D,C,I){this._tracks={},this._target=y,this._loop=D||!1,this._getter=C||S,this._setter=I||M,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};s.prototype={when:function(y,D){var C=this._tracks;for(var I in D){if(!D.hasOwnProperty(I))continue;if(!C[I]){C[I]=[];var _=this._getter(this._target,I);if(_==null)continue;y!==0&&C[I].push({time:0,value:p(_)})}C[I].push({time:y,value:D[I]})}return this},during:function(y){return this._onframeList.push(y),this},pause:function(){for(var y=0;y1&&g&&g.length>1){var l=R(g)/R(r);!isFinite(l)&&(l=1),c.pinchScale=l;var b=j(g);return c.pinchX=b[0],c.pinchY=b[1],{type:"pinch",target:M[0].target,event:c}}}},S=F;ze.exports=S},"Cg/j":function(ze,te,P){"use strict";P.d(te,"b",function(){return X}),P.d(te,"a",function(){return F}),P.d(te,"c",function(){return j}),P.d(te,"d",function(){return T});var X;(function(S){S.serviceIds=new Map,S.DI_TARGET="$di$target",S.DI_DEPENDENCIES="$di$dependencies";function M(c){return c[S.DI_DEPENDENCIES]||[]}S.getServiceDependencies=M})(X||(X={}));var F=j("instantiationService");function R(S,M,c,E){M[X.DI_TARGET]===M?M[X.DI_DEPENDENCIES].push({id:S,index:c,optional:E}):(M[X.DI_DEPENDENCIES]=[{id:S,index:c,optional:E}],M[X.DI_TARGET]=M)}function j(S){if(X.serviceIds.has(S))return X.serviceIds.get(S);var M=function(c,E,g){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");R(M,c,g,!1)};return M.toString=function(){return S},X.serviceIds.set(S,M),M}function T(S){return function(M,c,E){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");R(S,M,E,!0)}}},DBLp:function(ze,te){function P(){}P.prototype={diff:function(T,S,M){M||(M=function(s,h){return s===h}),this.equals=M;var c=this;T=T.slice(),S=S.slice();var E=S.length,g=T.length,r=1,l=E+g,b=[{newPos:-1,components:[]}],u=this.extractCommon(b[0],S,T,0);if(b[0].newPos+1>=E&&u+1>=g){for(var p=[],v=0;v=E&&C+1>=g)return X(c,h.components,S,T);b[s]=h}r++}for(;r<=l;){var t=a();if(t)return t}},pushComponent:function(T,S,M){var c=T[T.length-1];c&&c.added===S&&c.removed===M?T[T.length-1]={count:c.count+1,added:S,removed:M}:T.push({count:1,added:S,removed:M})},extractCommon:function(T,S,M,c){for(var E=S.length,g=M.length,r=T.newPos,l=r-c,b=0;r+1j||l<-j}var S=function(l){l=l||{},l.position||(this.position=[0,0]),l.rotation==null&&(this.rotation=0),l.scale||(this.scale=[1,1]),this.origin=this.origin||null},M=S.prototype;M.transform=null,M.needLocalTransform=function(){return T(this.rotation)||T(this.position[0])||T(this.position[1])||T(this.scale[0]-1)||T(this.scale[1]-1)};var c=[];M.updateTransform=function(){var l=this.parent,b=l&&l.transform,u=this.needLocalTransform(),p=this.transform;if(!(u||b)){p&&R(p);return}p=p||X.create(),u?this.getLocalTransform(p):R(p),b&&(u?X.mul(p,l.transform,p):X.copy(p,l.transform)),this.transform=p;var v=this.globalScaleRatio;if(v!=null&&v!==1){this.getGlobalScale(c);var a=c[0]<0?-1:1,t=c[1]<0?-1:1,s=((c[0]-a)*v+a)/c[0]||0,h=((c[1]-t)*v+t)/c[1]||0;p[0]*=s,p[1]*=s,p[2]*=h,p[3]*=h}this.invTransform=this.invTransform||X.create(),X.invert(this.invTransform,p)},M.getLocalTransform=function(l){return S.getLocalTransform(this,l)},M.setTransform=function(l){var b=this.transform,u=l.dpr||1;b?l.setTransform(u*b[0],u*b[1],u*b[2],u*b[3],u*b[4],u*b[5]):l.setTransform(u,0,0,u,0,0)},M.restoreTransform=function(l){var b=l.dpr||1;l.setTransform(b,0,0,b,0,0)};var E=[],g=X.create();M.setLocalTransform=function(l){if(!l)return;var b=l[0]*l[0]+l[1]*l[1],u=l[2]*l[2]+l[3]*l[3],p=this.position,v=this.scale;T(b-1)&&(b=Math.sqrt(b)),T(u-1)&&(u=Math.sqrt(u)),l[0]<0&&(b=-b),l[3]<0&&(u=-u),p[0]=l[4],p[1]=l[5],v[0]=b,v[1]=u,this.rotation=Math.atan2(-l[1]/u,l[0]/b)},M.decomposeTransform=function(){if(!this.transform)return;var l=this.parent,b=this.transform;l&&l.transform&&(X.mul(E,l.invTransform,b),b=E);var u=this.origin;u&&(u[0]||u[1])&&(g[4]=u[0],g[5]=u[1],X.mul(E,b,g),E[4]-=u[0],E[5]-=u[1],b=E),this.setLocalTransform(b)},M.getGlobalScale=function(l){var b=this.transform;return l=l||[],b?(l[0]=Math.sqrt(b[0]*b[0]+b[1]*b[1]),l[1]=Math.sqrt(b[2]*b[2]+b[3]*b[3]),b[0]<0&&(l[0]=-l[0]),b[3]<0&&(l[1]=-l[1]),l):(l[0]=1,l[1]=1,l)},M.transformCoordToLocal=function(l,b){var u=[l,b],p=this.invTransform;return p&&F.applyTransform(u,u,p),u},M.transformCoordToGlobal=function(l,b){var u=[l,b],p=this.transform;return p&&F.applyTransform(u,u,p),u},S.getLocalTransform=function(l,b){b=b||[],R(b);var u=l.origin,p=l.scale||[1,1],v=l.rotation||0,a=l.position||[0,0];return u&&(b[4]-=u[0],b[5]-=u[1]),X.scale(b,b,p),v&&X.rotate(b,b,v),u&&(b[4]+=u[0],b[5]+=u[1]),b[4]+=a[0],b[5]+=a[1],b};var r=S;ze.exports=r},Dagg:function(ze,te,P){var X=P("Gev7"),F=P("mFDi"),R=P("bYtY"),j=P("Xnb7");function T(M){X.call(this,M)}T.prototype={constructor:T,type:"image",brush:function(M,c){var E=this.style,g=E.image;E.bind(M,this,c);var r=this._image=j.createOrUpdateImage(g,this._image,this,this.onload);if(!r||!j.isImageReady(r))return;var l=E.x||0,b=E.y||0,u=E.width,p=E.height,v=r.width/r.height;if(u==null&&p!=null?u=p*v:p==null&&u!=null?p=u/v:u==null&&p==null&&(u=r.width,p=r.height),this.setTransform(M),E.sWidth&&E.sHeight){var a=E.sx||0,t=E.sy||0;M.drawImage(r,a,t,E.sWidth,E.sHeight,l,b,u,p)}else if(E.sx&&E.sy){var a=E.sx,t=E.sy,s=u-a,h=p-t;M.drawImage(r,a,t,s,h,l,b,u,p)}else M.drawImage(r,l,b,u,p);E.text!=null&&(this.restoreTransform(M),this.drawRectText(M,this.getBoundingRect()))},getBoundingRect:function(){var M=this.style;return this._rect||(this._rect=new F(M.x||0,M.y||0,M.width||0,M.height||0)),this._rect}},R.inherits(T,X);var S=T;ze.exports=S},DlQD:function(ze,te,P){(function(X,F){ze.exports=F()})(this,function(){"use strict";function X(Me,xe){for(var Te=0;TeMe.length)&&(xe=Me.length);for(var Te=0,oe=new Array(xe);Te=Me.length?{done:!0}:{done:!1,value:Me[oe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Te=Me[Symbol.iterator](),Te.next.bind(Te)}function S(Me,xe){return xe={exports:{}},Me(xe,xe.exports),xe.exports}var M=S(function(Me){function xe(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Te(oe){Me.exports.defaults=oe}Me.exports={defaults:xe(),getDefaults:xe,changeDefaults:Te}}),c=M.defaults,E=M.getDefaults,g=M.changeDefaults,r=/[&<>"']/,l=/[&<>"']/g,b=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,p={"&":"&","<":"<",">":">",'"':""","'":"'"},v=function(xe){return p[xe]};function a(Me,xe){if(xe){if(r.test(Me))return Me.replace(l,v)}else if(b.test(Me))return Me.replace(u,v);return Me}var t=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Me){return Me.replace(t,function(xe,Te){return Te=Te.toLowerCase(),Te==="colon"?":":Te.charAt(0)==="#"?Te.charAt(1)==="x"?String.fromCharCode(parseInt(Te.substring(2),16)):String.fromCharCode(+Te.substring(1)):""})}var h=/(^|[^\[])\^/g;function y(Me,xe){Me=Me.source||Me,xe=xe||"";var Te={replace:function(ue,pe){return pe=pe.source||pe,pe=pe.replace(h,"$1"),Me=Me.replace(ue,pe),Te},getRegex:function(){return new RegExp(Me,xe)}};return Te}var D=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function I(Me,xe,Te){if(Me){var oe;try{oe=decodeURIComponent(s(Te)).replace(D,"").toLowerCase()}catch(ue){return null}if(oe.indexOf("javascript:")===0||oe.indexOf("vbscript:")===0||oe.indexOf("data:")===0)return null}xe&&!C.test(Te)&&(Te=d(xe,Te));try{Te=encodeURI(Te).replace(/%25/g,"%")}catch(ue){return null}return Te}var _={},f=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(Me,xe){_[" "+Me]||(f.test(Me)?_[" "+Me]=Me+"/":_[" "+Me]=k(Me,"/",!0)),Me=_[" "+Me];var Te=Me.indexOf(":")===-1;return xe.substring(0,2)==="//"?Te?xe:Me.replace(o,"$1")+xe:xe.charAt(0)==="/"?Te?xe:Me.replace(i,"$1")+xe:Me+xe}var A={exec:function(){}};function O(Me){for(var xe=1,Te,oe;xe=0&&Ye[Mt]==="\\";)Ue=!Ue;return Ue?"|":" |"}),oe=Te.split(/ \|/),ue=0;if(oe.length>xe)oe.splice(xe);else for(;oe.length1?{type:"space",raw:ue[0]}:{raw:` `}},xe.code=function(oe,ue){var pe=this.rules.block.code.exec(oe);if(pe){var _e=ue[ue.length-1];if(_e&&_e.type==="paragraph")return{raw:pe[0],text:pe[0].trimRight()};var Ye=pe[0].replace(/^ {4}/gm,"");return{type:"code",raw:pe[0],codeBlockStyle:"indented",text:this.options.pedantic?Ye:z(Ye,` `)}}},xe.fences=function(oe){var ue=this.rules.block.fences.exec(oe);if(ue){var pe=ue[0],_e=ve(pe,ue[3]||"");return{type:"code",raw:pe,lang:ue[2]?ue[2].trim():ue[2],text:_e}}},xe.heading=function(oe){var ue=this.rules.block.heading.exec(oe);if(ue)return{type:"heading",raw:ue[0],depth:ue[1].length,text:ue[2]}},xe.nptable=function(oe){var ue=this.rules.block.nptable.exec(oe);if(ue){var pe={type:"table",header:Y(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` -`):[],raw:ue[0]};if(pe.header.length===pe.align.length){var _e=pe.align.length,Ye;for(Ye=0;Ye<_e;Ye++)/^ *-+: *$/.test(pe.align[Ye])?pe.align[Ye]="right":/^ *:-+: *$/.test(pe.align[Ye])?pe.align[Ye]="center":/^ *:-+ *$/.test(pe.align[Ye])?pe.align[Ye]="left":pe.align[Ye]=null;for(_e=pe.cells.length,Ye=0;Ye<_e;Ye++)pe.cells[Ye]=Y(pe.cells[Ye],pe.header.length);return pe}}},xe.hr=function(oe){var ue=this.rules.block.hr.exec(oe);if(ue)return{type:"hr",raw:ue[0]}},xe.blockquote=function(oe){var ue=this.rules.block.blockquote.exec(oe);if(ue){var pe=ue[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ue[0],text:pe}}},xe.list=function(oe){var ue=this.rules.block.list.exec(oe);if(ue){for(var pe=ue[0],_e=ue[2],Ye=_e.length>1,Ue=_e[_e.length-1]===")",Mt={type:"list",raw:pe,ordered:Ye,start:Ye?+_e.slice(0,-1):"",loose:!1,items:[]},tn=ue[0].match(this.rules.block.item),sn=!1,nn,rn,St,Tt,ct,ye,Pe,Lt=tn.length,pt=0;pt1||this.options.smartLists&&St!==_e)&&(Tt=tn.slice(pt+1).join(` -`),Mt.raw=Mt.raw.substring(0,Mt.raw.length-Tt.length),pt=Lt-1)),ct=sn||/\n\n(?!\s*$)/.test(nn),pt!==Lt-1&&(sn=nn.charAt(nn.length-1)===` +`):[],raw:ue[0]};if(pe.header.length===pe.align.length){var _e=pe.align.length,Ye;for(Ye=0;Ye<_e;Ye++)/^ *-+: *$/.test(pe.align[Ye])?pe.align[Ye]="right":/^ *:-+: *$/.test(pe.align[Ye])?pe.align[Ye]="center":/^ *:-+ *$/.test(pe.align[Ye])?pe.align[Ye]="left":pe.align[Ye]=null;for(_e=pe.cells.length,Ye=0;Ye<_e;Ye++)pe.cells[Ye]=Y(pe.cells[Ye],pe.header.length);return pe}}},xe.hr=function(oe){var ue=this.rules.block.hr.exec(oe);if(ue)return{type:"hr",raw:ue[0]}},xe.blockquote=function(oe){var ue=this.rules.block.blockquote.exec(oe);if(ue){var pe=ue[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ue[0],text:pe}}},xe.list=function(oe){var ue=this.rules.block.list.exec(oe);if(ue){for(var pe=ue[0],_e=ue[2],Ye=_e.length>1,Ue=_e[_e.length-1]===")",Mt={type:"list",raw:pe,ordered:Ye,start:Ye?+_e.slice(0,-1):"",loose:!1,items:[]},tn=ue[0].match(this.rules.block.item),sn=!1,nn,rn,St,Tt,ct,ye,Pe,Pt=tn.length,pt=0;pt1||this.options.smartLists&&St!==_e)&&(Tt=tn.slice(pt+1).join(` +`),Mt.raw=Mt.raw.substring(0,Mt.raw.length-Tt.length),pt=Pt-1)),ct=sn||/\n\n(?!\s*$)/.test(nn),pt!==Pt-1&&(sn=nn.charAt(nn.length-1)===` `,ct||(ct=sn)),ct&&(Mt.loose=!0),ye=/^\[[ xX]\] /.test(nn),Pe=void 0,ye&&(Pe=nn[1]!==" ",nn=nn.replace(/^\[[ xX]\] +/,"")),Mt.items.push({type:"list_item",raw:pe,task:ye,checked:Pe,loose:ct,text:nn});return Mt}},xe.html=function(oe){var ue=this.rules.block.html.exec(oe);if(ue)return{type:this.options.sanitize?"paragraph":"html",raw:ue[0],pre:!this.options.sanitizer&&(ue[1]==="pre"||ue[1]==="script"||ue[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ue[0]):V(ue[0]):ue[0]}},xe.def=function(oe){var ue=this.rules.block.def.exec(oe);if(ue){ue[3]&&(ue[3]=ue[3].substring(1,ue[3].length-1));var pe=ue[1].toLowerCase().replace(/\s+/g," ");return{tag:pe,raw:ue[0],href:ue[2],title:ue[3]}}},xe.table=function(oe){var ue=this.rules.block.table.exec(oe);if(ue){var pe={type:"table",header:Y(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` `):[]};if(pe.header.length===pe.align.length){pe.raw=ue[0];var _e=pe.align.length,Ye;for(Ye=0;Ye<_e;Ye++)/^ *-+: *$/.test(pe.align[Ye])?pe.align[Ye]="right":/^ *:-+: *$/.test(pe.align[Ye])?pe.align[Ye]="center":/^ *:-+ *$/.test(pe.align[Ye])?pe.align[Ye]="left":pe.align[Ye]=null;for(_e=pe.cells.length,Ye=0;Ye<_e;Ye++)pe.cells[Ye]=Y(pe.cells[Ye].replace(/^ *\| *| *\| *$/g,""),pe.header.length);return pe}}},xe.lheading=function(oe){var ue=this.rules.block.lheading.exec(oe);if(ue)return{type:"heading",raw:ue[0],depth:ue[2].charAt(0)==="="?1:2,text:ue[1]}},xe.paragraph=function(oe){var ue=this.rules.block.paragraph.exec(oe);if(ue)return{type:"paragraph",raw:ue[0],text:ue[1].charAt(ue[1].length-1)===` `?ue[1].slice(0,-1):ue[1]}},xe.text=function(oe,ue){var pe=this.rules.block.text.exec(oe);if(pe){var _e=ue[ue.length-1];return _e&&_e.type==="text"?{raw:pe[0],text:pe[0]}:{type:"text",raw:pe[0],text:pe[0]}}},xe.escape=function(oe){var ue=this.rules.inline.escape.exec(oe);if(ue)return{type:"escape",raw:ue[0],text:V(ue[1])}},xe.tag=function(oe,ue,pe){var _e=this.rules.inline.tag.exec(oe);if(_e)return!ue&&/^/i.test(_e[0])&&(ue=!1),!pe&&/^<(pre|code|kbd|script)(\s|>)/i.test(_e[0])?pe=!0:pe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(_e[0])&&(pe=!1),{type:this.options.sanitize?"text":"html",raw:_e[0],inLink:ue,inRawBlock:pe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):V(_e[0]):_e[0]}},xe.link=function(oe){var ue=this.rules.inline.link.exec(oe);if(ue){var pe=q(ue[2],"()");if(pe>-1){var _e=ue[0].indexOf("!")===0?5:4,Ye=_e+ue[1].length+pe;ue[2]=ue[2].substring(0,pe),ue[0]=ue[0].substring(0,Ye).trim(),ue[3]=""}var Ue=ue[2],Mt="";if(this.options.pedantic){var tn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ue);tn?(Ue=tn[1],Mt=tn[3]):Mt=""}else Mt=ue[3]?ue[3].slice(1,-1):"";Ue=Ue.trim().replace(/^<([\s\S]*)>$/,"$1");var sn=ne(ue,{href:Ue&&Ue.replace(this.rules.inline._escapes,"$1"),title:Mt&&Mt.replace(this.rules.inline._escapes,"$1")},ue[0]);return sn}},xe.reflink=function(oe,ue){var pe;if((pe=this.rules.inline.reflink.exec(oe))||(pe=this.rules.inline.nolink.exec(oe))){var _e=(pe[2]||pe[1]).replace(/\s+/g," ");if(_e=ue[_e.toLowerCase()],!_e||!_e.href){var Ye=pe[0].charAt(0);return{type:"text",raw:Ye,text:Ye}}var Ue=ne(pe,_e,pe[0]);return Ue}},xe.strong=function(oe,ue,pe){pe===void 0&&(pe="");var _e=this.rules.inline.strong.start.exec(oe);if(_e&&(!_e[1]||_e[1]&&(pe===""||this.rules.inline.punctuation.exec(pe)))){ue=ue.slice(-1*oe.length);var Ye=_e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ye.lastIndex=0;for(var Ue;(_e=Ye.exec(ue))!=null;)if(Ue=this.rules.inline.strong.middle.exec(ue.slice(0,_e.index+3)),Ue)return{type:"strong",raw:oe.slice(0,Ue[0].length),text:oe.slice(2,Ue[0].length-2)}}},xe.em=function(oe,ue,pe){pe===void 0&&(pe="");var _e=this.rules.inline.em.start.exec(oe);if(_e&&(!_e[1]||_e[1]&&(pe===""||this.rules.inline.punctuation.exec(pe)))){ue=ue.slice(-1*oe.length);var Ye=_e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ye.lastIndex=0;for(var Ue;(_e=Ye.exec(ue))!=null;)if(Ue=this.rules.inline.em.middle.exec(ue.slice(0,_e.index+2)),Ue)return{type:"em",raw:oe.slice(0,Ue[0].length),text:oe.slice(1,Ue[0].length-1)}}},xe.codespan=function(oe){var ue=this.rules.inline.code.exec(oe);if(ue){var pe=ue[2].replace(/\n/g," "),_e=/[^ ]/.test(pe),Ye=pe.startsWith(" ")&&pe.endsWith(" ");return _e&&Ye&&(pe=pe.substring(1,pe.length-1)),pe=V(pe,!0),{type:"codespan",raw:ue[0],text:pe}}},xe.br=function(oe){var ue=this.rules.inline.br.exec(oe);if(ue)return{type:"br",raw:ue[0]}},xe.del=function(oe){var ue=this.rules.inline.del.exec(oe);if(ue)return{type:"del",raw:ue[0],text:ue[1]}},xe.autolink=function(oe,ue){var pe=this.rules.inline.autolink.exec(oe);if(pe){var _e,Ye;return pe[2]==="@"?(_e=V(this.options.mangle?ue(pe[1]):pe[1]),Ye="mailto:"+_e):(_e=V(pe[1]),Ye=_e),{type:"link",raw:pe[0],text:_e,href:Ye,tokens:[{type:"text",raw:_e,text:_e}]}}},xe.url=function(oe,ue){var pe;if(pe=this.rules.inline.url.exec(oe)){var _e,Ye;if(pe[2]==="@")_e=V(this.options.mangle?ue(pe[0]):pe[0]),Ye="mailto:"+_e;else{var Ue;do Ue=pe[0],pe[0]=this.rules.inline._backpedal.exec(pe[0])[0];while(Ue!==pe[0]);_e=V(pe[0]),pe[1]==="www."?Ye="http://"+_e:Ye=_e}return{type:"link",raw:pe[0],text:_e,href:Ye,tokens:[{type:"text",raw:_e,text:_e}]}}},xe.inlineText=function(oe,ue,pe){var _e=this.rules.inline.text.exec(oe);if(_e){var Ye;return ue?Ye=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):V(_e[0]):_e[0]:Ye=V(this.options.smartypants?pe(_e[0]):_e[0]),{type:"text",raw:_e[0],text:Ye}}},Me}(),be=G.noopTest,we=G.edit,Re=G.merge,ge={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:be,table:be,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ge._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ge._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ge.def=we(ge.def).replace("label",ge._label).replace("title",ge._title).getRegex(),ge.bullet=/(?:[*+-]|\d{1,9}[.)])/,ge.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ge.item=we(ge.item,"gm").replace(/bull/g,ge.bullet).getRegex(),ge.list=we(ge.list).replace(/bull/g,ge.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ge.def.source+")").getRegex(),ge._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ge._comment=//,ge.html=we(ge.html,"i").replace("comment",ge._comment).replace("tag",ge._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ge.paragraph=we(ge._paragraph).replace("hr",ge.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ge._tag).getRegex(),ge.blockquote=we(ge.blockquote).replace("paragraph",ge.paragraph).getRegex(),ge.normal=Re({},ge),ge.gfm=Re({},ge.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ge.gfm.nptable=we(ge.gfm.nptable).replace("hr",ge.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ge._tag).getRegex(),ge.gfm.table=we(ge.gfm.table).replace("hr",ge.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ge._tag).getRegex(),ge.pedantic=Re({},ge.normal,{html:we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ge._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:be,paragraph:we(ge.normal._paragraph).replace("hr",ge.hr).replace("heading",` *#{1,6} *[^ @@ -277,23 +277,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},xe.tablerow=function(oe){return` `+oe+` `},xe.tablecell=function(oe,ue){var pe=ue.header?"th":"td",_e=ue.align?"<"+pe+' align="'+ue.align+'">':"<"+pe+">";return _e+oe+" -`},xe.strong=function(oe){return""+oe+""},xe.em=function(oe){return""+oe+""},xe.codespan=function(oe){return""+oe+""},xe.br=function(){return this.options.xhtml?"
                  ":"
                  "},xe.del=function(oe){return""+oe+""},xe.link=function(oe,ue,pe){if(oe=Oe(this.options.sanitize,this.options.baseUrl,oe),oe===null)return pe;var _e='
                  ",_e},xe.image=function(oe,ue,pe){if(oe=Oe(this.options.sanitize,this.options.baseUrl,oe),oe===null)return pe;var _e=''+pe+'":">",_e},xe.text=function(oe){return oe},Me}(),dt=function(){function Me(){}var xe=Me.prototype;return xe.strong=function(oe){return oe},xe.em=function(oe){return oe},xe.codespan=function(oe){return oe},xe.del=function(oe){return oe},xe.html=function(oe){return oe},xe.text=function(oe){return oe},xe.link=function(oe,ue,pe){return""+pe},xe.image=function(oe,ue,pe){return""+pe},xe.br=function(){return""},Me}(),Pt=function(){function Me(){this.seen={}}var xe=Me.prototype;return xe.slug=function(oe){var ue=oe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ue)){var pe=ue;do this.seen[pe]++,ue=pe+"-"+this.seen[pe];while(this.seen.hasOwnProperty(ue))}return this.seen[ue]=0,ue},Me}(),bt=M.defaults,zt=G.unescape,It=function(){function Me(Te){this.options=Te||bt,this.options.renderer=this.options.renderer||new at,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dt,this.slugger=new Pt}Me.parse=function(oe,ue){var pe=new Me(ue);return pe.parse(oe)};var xe=Me.prototype;return xe.parse=function(oe,ue){ue===void 0&&(ue=!0);var pe="",_e,Ye,Ue,Mt,tn,sn,nn,rn,St,Tt,ct,ye,Pe,Lt,pt,en,an,st,xt=oe.length;for(_e=0;_e0&&pt.tokens[0].type==="text"?(pt.tokens[0].text=st+" "+pt.tokens[0].text,pt.tokens[0].tokens&&pt.tokens[0].tokens.length>0&&pt.tokens[0].tokens[0].type==="text"&&(pt.tokens[0].tokens[0].text=st+" "+pt.tokens[0].tokens[0].text)):pt.tokens.unshift({type:"text",text:st}):Lt+=st),Lt+=this.parse(pt.tokens,Pe),St+=this.renderer.listitem(Lt,an,en);pe+=this.renderer.list(St,ct,ye);continue}case"html":{pe+=this.renderer.html(Tt.text);continue}case"paragraph":{pe+=this.renderer.paragraph(this.parseInline(Tt.tokens));continue}case"text":{for(St=Tt.tokens?this.parseInline(Tt.tokens):Tt.text;_e+1An error occurred:

                  "+Ie(Ue.message+"",!0)+"
                  ";throw Ue}}Je.options=Je.setOptions=function(Me){return on(Je.defaults,Me),ot(Je.defaults),Je},Je.getDefaults=De,Je.defaults=Et,Je.use=function(Me){var xe=on({},Me);if(Me.renderer&&function(){var oe=Je.defaults.renderer||new at,ue=function(Ye){var Ue=oe[Ye];oe[Ye]=function(){for(var Mt=arguments.length,tn=new Array(Mt),sn=0;sn`,triples:"",explode:"[]{}"},R=X.Pos;X.defineOption("autoCloseBrackets",!1,function(p,v,a){a&&a!=X.Init&&(p.removeKeyMap(T),p.state.closeBrackets=null),v&&(S(j(v,"pairs")),p.state.closeBrackets=v,p.addKeyMap(T))});function j(p,v){return v=="pairs"&&typeof p=="string"?p:typeof p=="object"&&p[v]!=null?p[v]:F[v]}var T={Backspace:E,Enter:g};function S(p){for(var v=0;v=0;s--){var y=t[s].head;p.replaceRange("",R(y.line,y.ch-1),R(y.line,y.ch+1),"+delete")}}function g(p){var v=c(p),a=v&&j(v,"explode");if(!a||p.getOption("disableInput"))return X.Pass;for(var t=p.listSelections(),s=0;s0;return{anchor:new R(p.anchor.line,p.anchor.ch+(v?-1:1)),head:new R(p.head.line,p.head.ch+(v?1:-1))}}function l(p,v){var a=c(p);if(!a||p.getOption("disableInput"))return X.Pass;var t=j(a,"pairs"),s=t.indexOf(v);if(s==-1)return X.Pass;for(var h=j(a,"closeBefore"),y=j(a,"triples"),D=t.charAt(s+1)==v,C=p.listSelections(),I=s%2==0,_,f=0;f=0&&p.getRange(i,R(i.line,i.ch+3))==v+v+v?d="skipThree":d="skip";else if(D&&i.ch>1&&y.indexOf(v)>=0&&p.getRange(R(i.line,i.ch-2),i)==v+v){if(i.ch>2&&/\bstring/.test(p.getTokenTypeAt(R(i.line,i.ch-2))))return X.Pass;d="addFour"}else if(D){var O=i.ch==0?" ":p.getRange(R(i.line,i.ch-1),i);if(!X.isWordChar(A)&&O!=v&&!X.isWordChar(O))d="both";else return X.Pass}else if(I&&(A.length===0||/\s/.test(A)||h.indexOf(A)>-1))d="both";else return X.Pass;if(!_)_=d;else if(_!=d)return X.Pass}var m=s%2?t.charAt(s-1):v,k=s%2?v:t.charAt(s+1);p.operation(function(){if(_=="skip")p.execCommand("goCharRight");else if(_=="skipThree")for(var N=0;N<3;N++)p.execCommand("goCharRight");else if(_=="surround"){for(var B=p.getSelections(),N=0;N3&&(c=P.call(c,1));for(var g=S.length,r=0;r4&&(c=P.call(c,1,c.length-1));for(var g=c[c.length-1],r=S.length,l=0;lthis._ux||a(D-this._yi)>this._uy||this._len<5;return this.addData(M.L,y,D),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(y,D):this._ctx.lineTo(y,D)),C&&(this._xi=y,this._yi=D),this},bezierCurveTo:function(y,D,C,I,_,f){return this.addData(M.C,y,D,C,I,_,f),this._ctx&&(this._needsDash()?this._dashedBezierTo(y,D,C,I,_,f):this._ctx.bezierCurveTo(y,D,C,I,_,f)),this._xi=_,this._yi=f,this},quadraticCurveTo:function(y,D,C,I){return this.addData(M.Q,y,D,C,I),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(y,D,C,I):this._ctx.quadraticCurveTo(y,D,C,I)),this._xi=C,this._yi=I,this},arc:function(y,D,C,I,_,f){return this.addData(M.A,y,D,C,C,I,_-I,0,f?0:1),this._ctx&&this._ctx.arc(y,D,C,I,_,f),this._xi=u(_)*C+y,this._yi=p(_)*C+D,this},arcTo:function(y,D,C,I,_){return this._ctx&&this._ctx.arcTo(y,D,C,I,_),this},rect:function(y,D,C,I){return this._ctx&&this._ctx.rect(y,D,C,I),this.addData(M.R,y,D,C,I),this},closePath:function(){this.addData(M.Z);var y=this._ctx,D=this._x0,C=this._y0;return y&&(this._needsDash()&&this._dashedLineTo(D,C),y.closePath()),this._xi=D,this._yi=C,this},fill:function(y){y&&y.fill(),this.toStatic()},stroke:function(y){y&&y.stroke(),this.toStatic()},setLineDash:function(y){if(y instanceof Array){this._lineDash=y,this._dashIdx=0;for(var D=0,C=0;CD.length&&(this._expandData(),D=this.data);for(var C=0;C0&&m<=y||d<0&&m>=y||d===0&&(A>0&&k<=D||A<0&&k>=D);){if(G=this._dashIdx,N=_[G],m+=d*N,k+=A*N,this._dashIdx=(G+1)%B,d>0&&mo||A>0&&ki)continue;f[G%2?"moveTo":"lineTo"](d>=0?l(m,y):b(m,y),A>=0?l(k,D):b(k,D))}d=m-y,A=k-D,this._dashOffset=-v(d*d+A*A)},_dashedBezierTo:function(y,D,C,I,_,f){var o=this._dashSum,i=this._dashOffset,d=this._lineDash,A=this._ctx,O=this._xi,m=this._yi,k,N,B,G=X.cubicAt,W=0,z=this._dashIdx,Y=d.length,V,q,ne=0;for(i<0&&(i=o+i),i%=o,k=0;k<1;k+=.1)N=G(O,y,C,_,k+.1)-G(O,y,C,_,k),B=G(m,D,I,f,k+.1)-G(m,D,I,f,k),W+=v(N*N+B*B);for(;zi);z++);for(k=(ne-i)/W;k<=1;)V=G(O,y,C,_,k),q=G(m,D,I,f,k),z%2?A.moveTo(V,q):A.lineTo(V,q),k+=d[z]/W,z=(z+1)%Y;z%2!==0&&A.lineTo(_,f),N=_-V,B=f-q,this._dashOffset=-v(N*N+B*B)},_dashedQuadraticTo:function(y,D,C,I){var _=C,f=I;C=(C+2*y)/3,I=(I+2*D)/3,y=(this._xi+2*y)/3,D=(this._yi+2*D)/3,this._dashedBezierTo(y,D,C,I,_,f)},toStatic:function(){var y=this.data;y instanceof Array&&(y.length=this._len,t&&(this.data=new Float32Array(y)))},getBoundingRect:function(){c[0]=c[1]=g[0]=g[1]=Number.MAX_VALUE,E[0]=E[1]=r[0]=r[1]=-Number.MAX_VALUE;for(var y=this.data,D=0,C=0,I=0,_=0,f=0;fd||a(i-f)>A||m===O-1)&&(y.lineTo(o,i),_=o,f=i);break;case M.C:y.bezierCurveTo(D[m++],D[m++],D[m++],D[m++],D[m++],D[m++]),_=D[m-2],f=D[m-1];break;case M.Q:y.quadraticCurveTo(D[m++],D[m++],D[m++],D[m++]),_=D[m-2],f=D[m-1];break;case M.A:var N=D[m++],B=D[m++],G=D[m++],W=D[m++],z=D[m++],Y=D[m++],V=D[m++],q=D[m++],ne=G>W?G:W,ve=G>W?1:G/W,le=G>W?W/G:1,be=Math.abs(G-W)>.001,we=z+Y;be?(y.translate(N,B),y.rotate(V),y.scale(ve,le),y.arc(0,0,ne,z,we,1-q),y.scale(1/ve,1/le),y.rotate(-V),y.translate(-N,-B)):y.arc(N,B,ne,z,we,1-q),m===1&&(C=u(z)*G+N,I=p(z)*W+B),_=u(we)*G+N,f=p(we)*W+B;break;case M.R:C=_=D[m],I=f=D[m+1],y.rect(D[m++],D[m++],D[m++],D[m++]);break;case M.Z:y.closePath(),_=C,f=I}}}},s.CMD=M;var h=s;ze.exports=h},ItGF:function(ze,te){var P={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?P={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?P={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?P={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:P=F(navigator.userAgent);var X=P;function F(R){var j={},T={},S=R.match(/Firefox\/([\d.]+)/),M=R.match(/MSIE\s([\d.]+)/)||R.match(/Trident\/.+?rv:(([\d.]+))/),c=R.match(/Edge\/([\d.]+)/),E=/micromessenger/i.test(R);return S&&(T.firefox=!0,T.version=S[1]),M&&(T.ie=!0,T.version=M[1]),c&&(T.edge=!0,T.version=c[1]),E&&(T.weChat=!0),{browser:T,os:j,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!T.ie&&!T.edge,pointerEventsSupported:"onpointerdown"in window&&(T.edge||T.ie&&T.version>=11),domSupported:typeof document!="undefined"}}ze.exports=X},JYp7:function(ze,te,P){"use strict";P.d(te,"c",function(){return F}),P.d(te,"d",function(){return R}),P.d(te,"f",function(){return T}),P.d(te,"a",function(){return S}),P.d(te,"b",function(){return M}),P.d(te,"e",function(){return c});var X=function(){var E=function(g,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,b){l.__proto__=b}||function(l,b){for(var u in b)b.hasOwnProperty(u)&&(l[u]=b[u])},E(g,r)};return function(g,r){E(g,r);function l(){this.constructor=g}g.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)}}(),F={done:!0,value:void 0},R;(function(E){var g={next:function(){return F}};function r(){return g}E.empty=r;function l(D){var C=!1;return{next:function(){return C?F:(C=!0,{done:!1,value:D})}}}E.single=l;function b(D,C,I){return C===void 0&&(C=0),I===void 0&&(I=D.length),{next:function(){return C>=I?F:{done:!1,value:D[C++]}}}}E.fromArray=b;function u(D){return{next:function(){var C=D.next();return C.done?F:{done:!1,value:C.value}}}}E.fromNativeIterator=u;function p(D){return D?Array.isArray(D)?E.fromArray(D):D:E.empty()}E.from=p;function v(D,C){return{next:function(){var I=D.next();return I.done?F:{done:!1,value:C(I.value)}}}}E.map=v;function a(D,C){return{next:function(){for(;;){var I=D.next();if(I.done)return F;if(C(I.value))return{done:!1,value:I.value}}}}}E.filter=a;function t(D,C){for(var I=D.next();!I.done;I=D.next())C(I.value)}E.forEach=t;function s(D,C){C===void 0&&(C=Number.POSITIVE_INFINITY);var I=[];if(C===0)return I;for(var _=0,f=D.next();!f.done&&!(I.push(f.value),++_>=C);f=D.next());return I}E.collect=s;function h(){for(var D=[],C=0;C=D.length)return F;var _=D[I],f=_.next();return f.done?(I++,this.next()):f}}}E.concat=h;function y(D){return new j(D)}E.chain=y})(R||(R={}));var j=function(){function E(g){this.it=g}return E.prototype.next=function(){return this.it.next()},E}();function T(E){return Array.isArray(E)?R.fromArray(E):E||R.empty()}var S=function(){function E(g,r,l,b){r===void 0&&(r=0),l===void 0&&(l=g.length),b===void 0&&(b=r-1),this.items=g,this.start=r,this.end=l,this.index=b}return E.prototype.first=function(){return this.index=this.start,this.current()},E.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},E.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},E}(),M=function(E){X(g,E);function g(r,l,b,u){return l===void 0&&(l=0),b===void 0&&(b=r.length),u===void 0&&(u=l-1),E.call(this,r,l,b,u)||this}return g.prototype.current=function(){return E.prototype.current.call(this)},g.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},g.prototype.first=function(){return this.index=this.start,this.current()},g.prototype.last=function(){return this.index=this.end-1,this.current()},g.prototype.parent=function(){return null},g}(S),c=function(){function E(g,r){this.iterator=g,this.fn=r}return E.prototype.next=function(){return this.fn(this.iterator.next())},E}()},K2GJ:function(ze,te,P){var X=P("fW2E"),F=P("gut8"),R=F.ContextCachedBy,j=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],T=function(l){this.extendFrom(l,!1)};function S(l,b,u){var p=b.x==null?0:b.x,v=b.x2==null?1:b.x2,a=b.y==null?0:b.y,t=b.y2==null?0:b.y2;b.global||(p=p*u.width+u.x,v=v*u.width+u.x,a=a*u.height+u.y,t=t*u.height+u.y),p=isNaN(p)?0:p,v=isNaN(v)?1:v,a=isNaN(a)?0:a,t=isNaN(t)?0:t;var s=l.createLinearGradient(p,a,v,t);return s}function M(l,b,u){var p=u.width,v=u.height,a=Math.min(p,v),t=b.x==null?.5:b.x,s=b.y==null?.5:b.y,h=b.r==null?.5:b.r;b.global||(t=t*p+u.x,s=s*v+u.y,h=h*a);var y=l.createRadialGradient(t,s,0,t,s,h);return y}T.prototype={constructor:T,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(l,b,u){var p=this,v=u&&u.style,a=!v||l.__attrCachedBy!==R.STYLE_BIND;l.__attrCachedBy=R.STYLE_BIND;for(var t=0;t0},extendFrom:function(l,b){if(l)for(var u in l)l.hasOwnProperty(u)&&(b===!0||(b===!1?!this.hasOwnProperty(u):l[u]!=null))&&(this[u]=l[u])},set:function(l,b){typeof l=="string"?this[l]=b:this.extendFrom(l,!0)},clone:function(){var l=new this.constructor;return l.extendFrom(this,!0),l},getGradient:function(l,b,u){for(var p=b.type==="radial"?M:S,v=p(l,b,u),a=b.colorStops,t=0;t=0)continue;if(!Object.prototype.hasOwnProperty.call(l,p))continue;u[p]=l[p]}return u}function c(l,b){if(!(l instanceof b))throw new TypeError("Cannot call a class as a function")}function E(l,b){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:l}function g(l,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);l.prototype=Object.create(b&&b.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(l,b):l.__proto__=b)}var r=function(l){g(b,l);function b(u){c(this,b);var p=E(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,u));return p.scrollListener=p.scrollListener.bind(p),p.eventListenerOptions=p.eventListenerOptions.bind(p),p.mousewheelListener=p.mousewheelListener.bind(p),p}return X(b,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var p=this.getParentElement(this.scrollComponent);p.scrollTop=p.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var p=!1,v={get passive(){p=!0}};try{document.addEventListener("test",null,v),document.removeEventListener("test",null,v)}catch(a){}return p}},{key:"eventListenerOptions",value:function(){var p=this.props.useCapture;return this.isPassiveSupported()&&(p={useCapture:this.props.useCapture,passive:!0}),p}},{key:"setDefaultLoader",value:function(p){this.defaultLoader=p}},{key:"detachMousewheelListener",value:function(){var p=window;this.props.useWindow===!1&&(p=this.scrollComponent.parentNode),p.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var p=window;this.props.useWindow===!1&&(p=this.getParentElement(this.scrollComponent)),p.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),p.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(p){var v=this.props.getScrollParent&&this.props.getScrollParent();return v!=null?v:p&&p.parentNode}},{key:"filterProps",value:function(p){return p}},{key:"attachScrollListener",value:function(){var p=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!p)return;var v=window;this.props.useWindow===!1&&(v=p),v.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),v.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),v.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(p){p.deltaY===1&&!this.isPassiveSupported()&&p.preventDefault()}},{key:"scrollListener",value:function(){var p=this.scrollComponent,v=window,a=this.getParentElement(p),t=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,h=v.pageYOffset!==void 0?v.pageYOffset:s.scrollTop;this.props.isReverse?t=h:t=this.calculateOffset(p,h)}else this.props.isReverse?t=a.scrollTop:t=p.scrollHeight-a.scrollTop-a.clientHeight;t1&&arguments[1]!==void 0?arguments[1]:1,Te=dt.length,oe=0;oe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(I.a)(z).map(function(V,q){if(!T.isValidElement(V)||!V.type)return null;var ne=V.type.isSelectOptGroup,ve=V.key,le=V.props,be=le.children,we=Object(M.a)(le,["children"]);return Y||!ne?_(V):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(ve===null?q:ve,"__"),label:ve},we),{},{options:f(be)})}).filter(function(V){return V})}var o=P("2Qr1"),i=P("qNPg"),d=P("U8pU"),A=P("Kwbf"),O=P("WKfj");function m(z){var Y=z.mode,V=z.options,q=z.children,ne=z.backfill,ve=z.allowClear,le=z.placeholder,be=z.getInputElement,we=z.showSearch,Re=z.onSearch,ge=z.defaultOpen,fe=z.autoFocus,Ze=z.labelInValue,Ot=z.value,Ee=z.inputValue,ke=z.optionLabelProp,de=Y==="multiple"||Y==="tags",me=we!==void 0?we:de||Y==="combobox",Le=V||f(q);if(Object(A.a)(Y!=="tags"||Le.every(function(at){return!at.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var rt=Le.some(function(at){return at.options?at.options.some(function(dt){return typeof("value"in dt?dt.value:dt.key)=="number"}):typeof("value"in at?at.value:at.key)=="number"});Object(A.a)(!rt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(A.a)(Y!=="combobox"||!ke,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(A.a)(Y==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(A.a)(Y==="combobox"||!be,"`getInputElement` only work with `combobox` mode."),Object(A.b)(Y!=="combobox"||!be||!ve||!le,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Re&&!me&&Y!=="combobox"&&Y!=="tags"&&Object(A.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(A.b)(!ge||fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ot!=null){var Oe=Object(O.d)(Ot);Object(A.a)(!Ze||Oe.every(function(at){return Object(d.a)(at)==="object"&&("key"in at||"value"in at)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(A.a)(!de||Array.isArray(Ot),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var Ge=null;Object(I.a)(q).some(function(at){if(!T.isValidElement(at)||!at.type)return!1;var dt=at.type;if(dt.isSelectOption)return!1;if(dt.isSelectOptGroup){var Pt=Object(I.a)(at.props.children).every(function(bt){return!T.isValidElement(bt)||!at.type||bt.type.isSelectOption?!0:(Ge=bt.type,!1)});return!Pt}return Ge=dt,!0}),Ge&&Object(A.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ge.displayName||Ge.name||Ge,"`.")),Object(A.a)(Ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var k=m,N=Object(i.a)({prefixCls:"rc-select",components:{optionList:t},convertChildrenToData:f,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:k,fillOptionsWithMissingValue:o.a}),B=function(z){Object(R.a)(V,z);var Y=Object(j.a)(V);function V(){var q;return Object(X.a)(this,V),q=Y.apply(this,arguments),q.selectRef=T.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(F.a)(V,[{key:"render",value:function(){return T.createElement(N,Object.assign({ref:this.selectRef},this.props))}}]),V}(T.Component);B.Option=h,B.OptGroup=D;var G=B,W=te.c=G},M8RZ:function(ze,te,P){"use strict";P.d(te,"a",function(){return E});var X=P("fWQN"),F=P("mtLc"),R=P("yKVA"),j=P("879j"),T=P("q1tI"),S=P.n(T),M=P("i8i4"),c=P.n(M),E=function(g){Object(R.a)(l,g);var r=Object(j.a)(l);function l(b){var u;Object(X.a)(this,l),u=r.call(this,b);var p=window.document;return u.node=p.createElement("div"),p.body.appendChild(u.node),u}return Object(F.a)(l,[{key:"render",value:function(){var u=this.props.children;return Object(M.createPortal)(u,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),l}(S.a.Component)},MEGo:function(ze,te,P){var X=P("4fz+"),F=P("Dagg"),R=P("dqUG"),j=P("2fw6"),T=P("x6Kt"),S=P("rmlV"),M=P("yxFR"),c=P("y+Vt"),E=P("h7HQ"),g=P("1Jh7"),r=P("SKnc"),l=P("K2GJ"),b=P("Fofx"),u=P("NC18"),p=u.createFromString,v=P("bYtY"),a=v.isString,t=v.extend,s=v.defaults,h=v.trim,y=v.each,D=/[\s,]+/;function C(V){if(a(V)){var q=new DOMParser;V=q.parseFromString(V,"text/xml")}for(V.nodeType===9&&(V=V.firstChild);V.nodeName.toLowerCase()!=="svg"||V.nodeType!==1;)V=V.nextSibling;return V}function I(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}I.prototype.parse=function(V,q){q=q||{};var ne=C(V);if(!ne)throw new Error("Illegal svg");var ve=new X;this._root=ve;var le=ne.getAttribute("viewBox")||"",be=parseFloat(ne.getAttribute("width")||q.width),we=parseFloat(ne.getAttribute("height")||q.height);isNaN(be)&&(be=null),isNaN(we)&&(we=null),O(ne,ve,null,!0);for(var Re=ne.firstChild;Re;)this._parseNode(Re,ve),Re=Re.nextSibling;var ge,fe;if(le){var Ze=h(le).split(D);Ze.length>=4&&(ge={x:parseFloat(Ze[0]||0),y:parseFloat(Ze[1]||0),width:parseFloat(Ze[2]),height:parseFloat(Ze[3])})}if(ge&&be!=null&&we!=null&&(fe=z(ge,be,we),!q.ignoreViewBox)){var Ot=ve;ve=new X,ve.add(Ot),Ot.scale=fe.scale.slice(),Ot.position=fe.position.slice()}return!q.ignoreRootClip&&be!=null&&we!=null&&ve.setClipPath(new T({shape:{x:0,y:0,width:be,height:we}})),{root:ve,width:be,height:we,viewBoxRect:ge,viewBoxTransform:fe}},I.prototype._parseNode=function(V,q){var ne=V.nodeName.toLowerCase();ne==="defs"?this._isDefine=!0:ne==="text"&&(this._isText=!0);var ve;if(this._isDefine){var le=f[ne];if(le){var be=le.call(this,V),we=V.getAttribute("id");we&&(this._defs[we]=be)}}else{var le=_[ne];le&&(ve=le.call(this,V,q),q.add(ve))}for(var Re=V.firstChild;Re;)Re.nodeType===1&&this._parseNode(Re,ve),Re.nodeType===3&&this._isText&&this._parseText(Re,ve),Re=Re.nextSibling;ne==="defs"?this._isDefine=!1:ne==="text"&&(this._isText=!1)},I.prototype._parseText=function(V,q){if(V.nodeType===1){var ne=V.getAttribute("dx")||0,ve=V.getAttribute("dy")||0;this._textX+=parseFloat(ne),this._textY+=parseFloat(ve)}var le=new R({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});i(q,le),O(V,le,this._defs);var be=le.style.fontSize;be&&be<9&&(le.style.fontSize=9,le.scale=le.scale||[1,1],le.scale[0]*=be/9,le.scale[1]*=be/9);var we=le.getBoundingRect();return this._textX+=we.width,q.add(le),le};var _={g:function(V,q){var ne=new X;return i(q,ne),O(V,ne,this._defs),ne},rect:function(V,q){var ne=new T;return i(q,ne),O(V,ne,this._defs),ne.setShape({x:parseFloat(V.getAttribute("x")||0),y:parseFloat(V.getAttribute("y")||0),width:parseFloat(V.getAttribute("width")||0),height:parseFloat(V.getAttribute("height")||0)}),ne},circle:function(V,q){var ne=new j;return i(q,ne),O(V,ne,this._defs),ne.setShape({cx:parseFloat(V.getAttribute("cx")||0),cy:parseFloat(V.getAttribute("cy")||0),r:parseFloat(V.getAttribute("r")||0)}),ne},line:function(V,q){var ne=new M;return i(q,ne),O(V,ne,this._defs),ne.setShape({x1:parseFloat(V.getAttribute("x1")||0),y1:parseFloat(V.getAttribute("y1")||0),x2:parseFloat(V.getAttribute("x2")||0),y2:parseFloat(V.getAttribute("y2")||0)}),ne},ellipse:function(V,q){var ne=new S;return i(q,ne),O(V,ne,this._defs),ne.setShape({cx:parseFloat(V.getAttribute("cx")||0),cy:parseFloat(V.getAttribute("cy")||0),rx:parseFloat(V.getAttribute("rx")||0),ry:parseFloat(V.getAttribute("ry")||0)}),ne},polygon:function(V,q){var ne=V.getAttribute("points");ne&&(ne=d(ne));var ve=new E({shape:{points:ne||[]}});return i(q,ve),O(V,ve,this._defs),ve},polyline:function(V,q){var ne=new c;i(q,ne),O(V,ne,this._defs);var ve=V.getAttribute("points");ve&&(ve=d(ve));var le=new g({shape:{points:ve||[]}});return le},image:function(V,q){var ne=new F;return i(q,ne),O(V,ne,this._defs),ne.setStyle({image:V.getAttribute("xlink:href"),x:V.getAttribute("x"),y:V.getAttribute("y"),width:V.getAttribute("width"),height:V.getAttribute("height")}),ne},text:function(V,q){var ne=V.getAttribute("x")||0,ve=V.getAttribute("y")||0,le=V.getAttribute("dx")||0,be=V.getAttribute("dy")||0;this._textX=parseFloat(ne)+parseFloat(le),this._textY=parseFloat(ve)+parseFloat(be);var we=new X;return i(q,we),O(V,we,this._defs),we},tspan:function(V,q){var ne=V.getAttribute("x"),ve=V.getAttribute("y");ne!=null&&(this._textX=parseFloat(ne)),ve!=null&&(this._textY=parseFloat(ve));var le=V.getAttribute("dx")||0,be=V.getAttribute("dy")||0,we=new X;return i(q,we),O(V,we,this._defs),this._textX+=le,this._textY+=be,we},path:function(V,q){var ne=V.getAttribute("d")||"",ve=p(ne);return i(q,ve),O(V,ve,this._defs),ve}},f={lineargradient:function(V){var q=parseInt(V.getAttribute("x1")||0,10),ne=parseInt(V.getAttribute("y1")||0,10),ve=parseInt(V.getAttribute("x2")||10,10),le=parseInt(V.getAttribute("y2")||0,10),be=new r(q,ne,ve,le);return o(V,be),be},radialgradient:function(V){}};function o(V,q){for(var ne=V.firstChild;ne;){if(ne.nodeType===1){var ve=ne.getAttribute("offset");ve.indexOf("%")>0?ve=parseInt(ve,10)/100:ve?ve=parseFloat(ve):ve=0;var le=ne.getAttribute("stop-color")||"#000000";q.addColorStop(ve,le)}ne=ne.nextSibling}}function i(V,q){V&&V.__inheritedStyle&&(q.__inheritedStyle||(q.__inheritedStyle={}),s(q.__inheritedStyle,V.__inheritedStyle))}function d(V){for(var q=h(V).split(D),ne=[],ve=0;ve0;be-=2){var we=le[be],Re=le[be-1];ve=ve||b.create();switch(Re){case"translate":we=h(we).split(D),b.translate(ve,ve,[parseFloat(we[0]),parseFloat(we[1]||0)]);break;case"scale":we=h(we).split(D),b.scale(ve,ve,[parseFloat(we[0]),parseFloat(we[1]||we[0])]);break;case"rotate":we=h(we).split(D),b.rotate(ve,ve,parseFloat(we[0]));break;case"skew":we=h(we).split(D),console.warn("Skew transform is not supported yet");break;case"matrix":var we=h(we).split(D);ve[0]=parseFloat(we[0]),ve[1]=parseFloat(we[1]),ve[2]=parseFloat(we[2]),ve[3]=parseFloat(we[3]),ve[4]=parseFloat(we[4]),ve[5]=parseFloat(we[5]);break}}q.setLocalTransform(ve)}}var G=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(V){var q=V.getAttribute("style"),ne={};if(!q)return ne;var ve={};G.lastIndex=0;for(var le;(le=G.exec(q))!=null;)ve[le[1]]=le[2];for(var be in A)A.hasOwnProperty(be)&&ve[be]!=null&&(ne[A[be]]=ve[be]);return ne}function z(V,q,ne){var ve=q/V.width,le=ne/V.height,be=Math.min(ve,le),we=[be,be],Re=[-(V.x+V.width/2)*be+q/2,-(V.y+V.height/2)*be+ne/2];return{scale:we,position:Re}}function Y(V,q){var ne=new I;return ne.parse(V,q)}te.parseXML=C,te.makeViewBoxTransform=z,te.parseSVG=Y},MI8n:function(ze,te,P){"use strict";P.d(te,"b",function(){return S}),P.d(te,"a",function(){return E}),P.d(te,"e",function(){return g}),P.d(te,"d",function(){return r}),P.d(te,"c",function(){return l}),P.d(te,"f",function(){return b});var X=P("/cxE"),F=P("C/vA"),R=P("pmY6"),j=P("24hK"),T=function(){var u=function(p,v){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var s in t)t.hasOwnProperty(s)&&(a[s]=t[s])},u(p,v)};return function(p,v){u(p,v);function a(){this.constructor=p}p.prototype=v===null?Object.create(v):(a.prototype=v.prototype,new a)}}(),S;(function(u){u.None=function(){return R.a.None};function p(k){return function(N,B,G){B===void 0&&(B=null);var W=!1,z;return z=k(function(Y){return W?void 0:(z?z.dispose():W=!0,N.call(B,Y))},null,G),W&&z.dispose(),z}}u.once=p;function v(k,N){return D(function(B,G,W){return G===void 0&&(G=null),k(function(z){return B.call(G,N(z))},null,W)})}u.map=v;function a(k,N){return D(function(B,G,W){return G===void 0&&(G=null),k(function(z){N(z),B.call(G,z)},null,W)})}u.forEach=a;function t(k,N){return D(function(B,G,W){return G===void 0&&(G=null),k(function(z){return N(z)&&B.call(G,z)},null,W)})}u.filter=t;function s(k){return k}u.signal=s;function h(){for(var k=[],N=0;N1)&&ne.fire(le),q=0},B)})},onLastListenerRemove:function(){z.dispose()}});return ne.event}u.debounce=C;function I(k){var N=new Date().getTime();return v(p(k),function(B){return new Date().getTime()-N})}u.stopwatch=I;function _(k){var N=!0,B;return t(k,function(G){var W=N||G!==B;return N=!1,B=G,W})}u.latch=_;function f(k,N,B){N===void 0&&(N=!1),B===void 0&&(B=[]);var G=B.slice(),W=k(function(V){G?G.push(V):Y.fire(V)}),z=function(){G&&G.forEach(function(V){return Y.fire(V)}),G=null},Y=new E({onFirstListenerAdd:function(){W||(W=k(function(V){return Y.fire(V)}))},onFirstListenerDidAdd:function(){G&&(N?setTimeout(z):z())},onLastListenerRemove:function(){W&&W.dispose(),W=null}});return Y.event}u.buffer=f;var o=function(){function k(N){this.event=N}return k.prototype.map=function(N){return new k(v(this.event,N))},k.prototype.forEach=function(N){return new k(a(this.event,N))},k.prototype.filter=function(N){return new k(t(this.event,N))},k.prototype.reduce=function(N,B){return new k(y(this.event,N,B))},k.prototype.latch=function(){return new k(_(this.event))},k.prototype.debounce=function(N,B,G,W){return B===void 0&&(B=100),G===void 0&&(G=!1),new k(C(this.event,N,B,G,W))},k.prototype.on=function(N,B,G){return this.event(N,B,G)},k.prototype.once=function(N,B,G){return p(this.event)(N,B,G)},k}();function i(k){return new o(k)}u.chain=i;function d(k,N,B){B===void 0&&(B=function(V){return V});var G=function(){for(var V=[],q=0;q"+oe+""},xe.em=function(oe){return""+oe+""},xe.codespan=function(oe){return""+oe+""},xe.br=function(){return this.options.xhtml?"
                  ":"
                  "},xe.del=function(oe){return""+oe+""},xe.link=function(oe,ue,pe){if(oe=Oe(this.options.sanitize,this.options.baseUrl,oe),oe===null)return pe;var _e='
                  ",_e},xe.image=function(oe,ue,pe){if(oe=Oe(this.options.sanitize,this.options.baseUrl,oe),oe===null)return pe;var _e=''+pe+'":">",_e},xe.text=function(oe){return oe},Me}(),dt=function(){function Me(){}var xe=Me.prototype;return xe.strong=function(oe){return oe},xe.em=function(oe){return oe},xe.codespan=function(oe){return oe},xe.del=function(oe){return oe},xe.html=function(oe){return oe},xe.text=function(oe){return oe},xe.link=function(oe,ue,pe){return""+pe},xe.image=function(oe,ue,pe){return""+pe},xe.br=function(){return""},Me}(),Rt=function(){function Me(){this.seen={}}var xe=Me.prototype;return xe.slug=function(oe){var ue=oe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ue)){var pe=ue;do this.seen[pe]++,ue=pe+"-"+this.seen[pe];while(this.seen.hasOwnProperty(ue))}return this.seen[ue]=0,ue},Me}(),bt=M.defaults,Kt=G.unescape,Lt=function(){function Me(Te){this.options=Te||bt,this.options.renderer=this.options.renderer||new at,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dt,this.slugger=new Rt}Me.parse=function(oe,ue){var pe=new Me(ue);return pe.parse(oe)};var xe=Me.prototype;return xe.parse=function(oe,ue){ue===void 0&&(ue=!0);var pe="",_e,Ye,Ue,Mt,tn,sn,nn,rn,St,Tt,ct,ye,Pe,Pt,pt,en,an,st,xt=oe.length;for(_e=0;_e0&&pt.tokens[0].type==="text"?(pt.tokens[0].text=st+" "+pt.tokens[0].text,pt.tokens[0].tokens&&pt.tokens[0].tokens.length>0&&pt.tokens[0].tokens[0].type==="text"&&(pt.tokens[0].tokens[0].text=st+" "+pt.tokens[0].tokens[0].text)):pt.tokens.unshift({type:"text",text:st}):Pt+=st),Pt+=this.parse(pt.tokens,Pe),St+=this.renderer.listitem(Pt,an,en);pe+=this.renderer.list(St,ct,ye);continue}case"html":{pe+=this.renderer.html(Tt.text);continue}case"paragraph":{pe+=this.renderer.paragraph(this.parseInline(Tt.tokens));continue}case"text":{for(St=Tt.tokens?this.parseInline(Tt.tokens):Tt.text;_e+1An error occurred:

                  "+Ie(Ue.message+"",!0)+"
                  ";throw Ue}}Je.options=Je.setOptions=function(Me){return on(Je.defaults,Me),ot(Je.defaults),Je},Je.getDefaults=De,Je.defaults=Et,Je.use=function(Me){var xe=on({},Me);if(Me.renderer&&function(){var oe=Je.defaults.renderer||new at,ue=function(Ye){var Ue=oe[Ye];oe[Ye]=function(){for(var Mt=arguments.length,tn=new Array(Mt),sn=0;sn`,triples:"",explode:"[]{}"},R=X.Pos;X.defineOption("autoCloseBrackets",!1,function(p,v,a){a&&a!=X.Init&&(p.removeKeyMap(T),p.state.closeBrackets=null),v&&(S(j(v,"pairs")),p.state.closeBrackets=v,p.addKeyMap(T))});function j(p,v){return v=="pairs"&&typeof p=="string"?p:typeof p=="object"&&p[v]!=null?p[v]:F[v]}var T={Backspace:E,Enter:g};function S(p){for(var v=0;v=0;s--){var y=t[s].head;p.replaceRange("",R(y.line,y.ch-1),R(y.line,y.ch+1),"+delete")}}function g(p){var v=c(p),a=v&&j(v,"explode");if(!a||p.getOption("disableInput"))return X.Pass;for(var t=p.listSelections(),s=0;s0;return{anchor:new R(p.anchor.line,p.anchor.ch+(v?-1:1)),head:new R(p.head.line,p.head.ch+(v?1:-1))}}function l(p,v){var a=c(p);if(!a||p.getOption("disableInput"))return X.Pass;var t=j(a,"pairs"),s=t.indexOf(v);if(s==-1)return X.Pass;for(var h=j(a,"closeBefore"),y=j(a,"triples"),D=t.charAt(s+1)==v,C=p.listSelections(),I=s%2==0,_,f=0;f=0&&p.getRange(i,R(i.line,i.ch+3))==v+v+v?d="skipThree":d="skip";else if(D&&i.ch>1&&y.indexOf(v)>=0&&p.getRange(R(i.line,i.ch-2),i)==v+v){if(i.ch>2&&/\bstring/.test(p.getTokenTypeAt(R(i.line,i.ch-2))))return X.Pass;d="addFour"}else if(D){var O=i.ch==0?" ":p.getRange(R(i.line,i.ch-1),i);if(!X.isWordChar(A)&&O!=v&&!X.isWordChar(O))d="both";else return X.Pass}else if(I&&(A.length===0||/\s/.test(A)||h.indexOf(A)>-1))d="both";else return X.Pass;if(!_)_=d;else if(_!=d)return X.Pass}var m=s%2?t.charAt(s-1):v,k=s%2?v:t.charAt(s+1);p.operation(function(){if(_=="skip")p.execCommand("goCharRight");else if(_=="skipThree")for(var N=0;N<3;N++)p.execCommand("goCharRight");else if(_=="surround"){for(var B=p.getSelections(),N=0;N3&&(c=P.call(c,1));for(var g=S.length,r=0;r4&&(c=P.call(c,1,c.length-1));for(var g=c[c.length-1],r=S.length,l=0;lthis._ux||a(D-this._yi)>this._uy||this._len<5;return this.addData(M.L,y,D),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(y,D):this._ctx.lineTo(y,D)),C&&(this._xi=y,this._yi=D),this},bezierCurveTo:function(y,D,C,I,_,f){return this.addData(M.C,y,D,C,I,_,f),this._ctx&&(this._needsDash()?this._dashedBezierTo(y,D,C,I,_,f):this._ctx.bezierCurveTo(y,D,C,I,_,f)),this._xi=_,this._yi=f,this},quadraticCurveTo:function(y,D,C,I){return this.addData(M.Q,y,D,C,I),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(y,D,C,I):this._ctx.quadraticCurveTo(y,D,C,I)),this._xi=C,this._yi=I,this},arc:function(y,D,C,I,_,f){return this.addData(M.A,y,D,C,C,I,_-I,0,f?0:1),this._ctx&&this._ctx.arc(y,D,C,I,_,f),this._xi=u(_)*C+y,this._yi=p(_)*C+D,this},arcTo:function(y,D,C,I,_){return this._ctx&&this._ctx.arcTo(y,D,C,I,_),this},rect:function(y,D,C,I){return this._ctx&&this._ctx.rect(y,D,C,I),this.addData(M.R,y,D,C,I),this},closePath:function(){this.addData(M.Z);var y=this._ctx,D=this._x0,C=this._y0;return y&&(this._needsDash()&&this._dashedLineTo(D,C),y.closePath()),this._xi=D,this._yi=C,this},fill:function(y){y&&y.fill(),this.toStatic()},stroke:function(y){y&&y.stroke(),this.toStatic()},setLineDash:function(y){if(y instanceof Array){this._lineDash=y,this._dashIdx=0;for(var D=0,C=0;CD.length&&(this._expandData(),D=this.data);for(var C=0;C0&&m<=y||d<0&&m>=y||d===0&&(A>0&&k<=D||A<0&&k>=D);){if(G=this._dashIdx,N=_[G],m+=d*N,k+=A*N,this._dashIdx=(G+1)%B,d>0&&mo||A>0&&ki)continue;f[G%2?"moveTo":"lineTo"](d>=0?l(m,y):b(m,y),A>=0?l(k,D):b(k,D))}d=m-y,A=k-D,this._dashOffset=-v(d*d+A*A)},_dashedBezierTo:function(y,D,C,I,_,f){var o=this._dashSum,i=this._dashOffset,d=this._lineDash,A=this._ctx,O=this._xi,m=this._yi,k,N,B,G=X.cubicAt,W=0,z=this._dashIdx,Y=d.length,V,q,ne=0;for(i<0&&(i=o+i),i%=o,k=0;k<1;k+=.1)N=G(O,y,C,_,k+.1)-G(O,y,C,_,k),B=G(m,D,I,f,k+.1)-G(m,D,I,f,k),W+=v(N*N+B*B);for(;zi);z++);for(k=(ne-i)/W;k<=1;)V=G(O,y,C,_,k),q=G(m,D,I,f,k),z%2?A.moveTo(V,q):A.lineTo(V,q),k+=d[z]/W,z=(z+1)%Y;z%2!==0&&A.lineTo(_,f),N=_-V,B=f-q,this._dashOffset=-v(N*N+B*B)},_dashedQuadraticTo:function(y,D,C,I){var _=C,f=I;C=(C+2*y)/3,I=(I+2*D)/3,y=(this._xi+2*y)/3,D=(this._yi+2*D)/3,this._dashedBezierTo(y,D,C,I,_,f)},toStatic:function(){var y=this.data;y instanceof Array&&(y.length=this._len,t&&(this.data=new Float32Array(y)))},getBoundingRect:function(){c[0]=c[1]=g[0]=g[1]=Number.MAX_VALUE,E[0]=E[1]=r[0]=r[1]=-Number.MAX_VALUE;for(var y=this.data,D=0,C=0,I=0,_=0,f=0;fd||a(i-f)>A||m===O-1)&&(y.lineTo(o,i),_=o,f=i);break;case M.C:y.bezierCurveTo(D[m++],D[m++],D[m++],D[m++],D[m++],D[m++]),_=D[m-2],f=D[m-1];break;case M.Q:y.quadraticCurveTo(D[m++],D[m++],D[m++],D[m++]),_=D[m-2],f=D[m-1];break;case M.A:var N=D[m++],B=D[m++],G=D[m++],W=D[m++],z=D[m++],Y=D[m++],V=D[m++],q=D[m++],ne=G>W?G:W,ve=G>W?1:G/W,le=G>W?W/G:1,be=Math.abs(G-W)>.001,we=z+Y;be?(y.translate(N,B),y.rotate(V),y.scale(ve,le),y.arc(0,0,ne,z,we,1-q),y.scale(1/ve,1/le),y.rotate(-V),y.translate(-N,-B)):y.arc(N,B,ne,z,we,1-q),m===1&&(C=u(z)*G+N,I=p(z)*W+B),_=u(we)*G+N,f=p(we)*W+B;break;case M.R:C=_=D[m],I=f=D[m+1],y.rect(D[m++],D[m++],D[m++],D[m++]);break;case M.Z:y.closePath(),_=C,f=I}}}},s.CMD=M;var h=s;ze.exports=h},ItGF:function(ze,te){var P={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?P={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?P={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?P={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:P=F(navigator.userAgent);var X=P;function F(R){var j={},T={},S=R.match(/Firefox\/([\d.]+)/),M=R.match(/MSIE\s([\d.]+)/)||R.match(/Trident\/.+?rv:(([\d.]+))/),c=R.match(/Edge\/([\d.]+)/),E=/micromessenger/i.test(R);return S&&(T.firefox=!0,T.version=S[1]),M&&(T.ie=!0,T.version=M[1]),c&&(T.edge=!0,T.version=c[1]),E&&(T.weChat=!0),{browser:T,os:j,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!T.ie&&!T.edge,pointerEventsSupported:"onpointerdown"in window&&(T.edge||T.ie&&T.version>=11),domSupported:typeof document!="undefined"}}ze.exports=X},JYp7:function(ze,te,P){"use strict";P.d(te,"c",function(){return F}),P.d(te,"d",function(){return R}),P.d(te,"f",function(){return T}),P.d(te,"a",function(){return S}),P.d(te,"b",function(){return M}),P.d(te,"e",function(){return c});var X=function(){var E=function(g,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,b){l.__proto__=b}||function(l,b){for(var u in b)b.hasOwnProperty(u)&&(l[u]=b[u])},E(g,r)};return function(g,r){E(g,r);function l(){this.constructor=g}g.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)}}(),F={done:!0,value:void 0},R;(function(E){var g={next:function(){return F}};function r(){return g}E.empty=r;function l(D){var C=!1;return{next:function(){return C?F:(C=!0,{done:!1,value:D})}}}E.single=l;function b(D,C,I){return C===void 0&&(C=0),I===void 0&&(I=D.length),{next:function(){return C>=I?F:{done:!1,value:D[C++]}}}}E.fromArray=b;function u(D){return{next:function(){var C=D.next();return C.done?F:{done:!1,value:C.value}}}}E.fromNativeIterator=u;function p(D){return D?Array.isArray(D)?E.fromArray(D):D:E.empty()}E.from=p;function v(D,C){return{next:function(){var I=D.next();return I.done?F:{done:!1,value:C(I.value)}}}}E.map=v;function a(D,C){return{next:function(){for(;;){var I=D.next();if(I.done)return F;if(C(I.value))return{done:!1,value:I.value}}}}}E.filter=a;function t(D,C){for(var I=D.next();!I.done;I=D.next())C(I.value)}E.forEach=t;function s(D,C){C===void 0&&(C=Number.POSITIVE_INFINITY);var I=[];if(C===0)return I;for(var _=0,f=D.next();!f.done&&!(I.push(f.value),++_>=C);f=D.next());return I}E.collect=s;function h(){for(var D=[],C=0;C=D.length)return F;var _=D[I],f=_.next();return f.done?(I++,this.next()):f}}}E.concat=h;function y(D){return new j(D)}E.chain=y})(R||(R={}));var j=function(){function E(g){this.it=g}return E.prototype.next=function(){return this.it.next()},E}();function T(E){return Array.isArray(E)?R.fromArray(E):E||R.empty()}var S=function(){function E(g,r,l,b){r===void 0&&(r=0),l===void 0&&(l=g.length),b===void 0&&(b=r-1),this.items=g,this.start=r,this.end=l,this.index=b}return E.prototype.first=function(){return this.index=this.start,this.current()},E.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},E.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},E}(),M=function(E){X(g,E);function g(r,l,b,u){return l===void 0&&(l=0),b===void 0&&(b=r.length),u===void 0&&(u=l-1),E.call(this,r,l,b,u)||this}return g.prototype.current=function(){return E.prototype.current.call(this)},g.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},g.prototype.first=function(){return this.index=this.start,this.current()},g.prototype.last=function(){return this.index=this.end-1,this.current()},g.prototype.parent=function(){return null},g}(S),c=function(){function E(g,r){this.iterator=g,this.fn=r}return E.prototype.next=function(){return this.fn(this.iterator.next())},E}()},K2GJ:function(ze,te,P){var X=P("fW2E"),F=P("gut8"),R=F.ContextCachedBy,j=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],T=function(l){this.extendFrom(l,!1)};function S(l,b,u){var p=b.x==null?0:b.x,v=b.x2==null?1:b.x2,a=b.y==null?0:b.y,t=b.y2==null?0:b.y2;b.global||(p=p*u.width+u.x,v=v*u.width+u.x,a=a*u.height+u.y,t=t*u.height+u.y),p=isNaN(p)?0:p,v=isNaN(v)?1:v,a=isNaN(a)?0:a,t=isNaN(t)?0:t;var s=l.createLinearGradient(p,a,v,t);return s}function M(l,b,u){var p=u.width,v=u.height,a=Math.min(p,v),t=b.x==null?.5:b.x,s=b.y==null?.5:b.y,h=b.r==null?.5:b.r;b.global||(t=t*p+u.x,s=s*v+u.y,h=h*a);var y=l.createRadialGradient(t,s,0,t,s,h);return y}T.prototype={constructor:T,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(l,b,u){var p=this,v=u&&u.style,a=!v||l.__attrCachedBy!==R.STYLE_BIND;l.__attrCachedBy=R.STYLE_BIND;for(var t=0;t0},extendFrom:function(l,b){if(l)for(var u in l)l.hasOwnProperty(u)&&(b===!0||(b===!1?!this.hasOwnProperty(u):l[u]!=null))&&(this[u]=l[u])},set:function(l,b){typeof l=="string"?this[l]=b:this.extendFrom(l,!0)},clone:function(){var l=new this.constructor;return l.extendFrom(this,!0),l},getGradient:function(l,b,u){for(var p=b.type==="radial"?M:S,v=p(l,b,u),a=b.colorStops,t=0;t=0)continue;if(!Object.prototype.hasOwnProperty.call(l,p))continue;u[p]=l[p]}return u}function c(l,b){if(!(l instanceof b))throw new TypeError("Cannot call a class as a function")}function E(l,b){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:l}function g(l,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);l.prototype=Object.create(b&&b.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(l,b):l.__proto__=b)}var r=function(l){g(b,l);function b(u){c(this,b);var p=E(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,u));return p.scrollListener=p.scrollListener.bind(p),p.eventListenerOptions=p.eventListenerOptions.bind(p),p.mousewheelListener=p.mousewheelListener.bind(p),p}return X(b,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var p=this.getParentElement(this.scrollComponent);p.scrollTop=p.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var p=!1,v={get passive(){p=!0}};try{document.addEventListener("test",null,v),document.removeEventListener("test",null,v)}catch(a){}return p}},{key:"eventListenerOptions",value:function(){var p=this.props.useCapture;return this.isPassiveSupported()&&(p={useCapture:this.props.useCapture,passive:!0}),p}},{key:"setDefaultLoader",value:function(p){this.defaultLoader=p}},{key:"detachMousewheelListener",value:function(){var p=window;this.props.useWindow===!1&&(p=this.scrollComponent.parentNode),p.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var p=window;this.props.useWindow===!1&&(p=this.getParentElement(this.scrollComponent)),p.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),p.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(p){var v=this.props.getScrollParent&&this.props.getScrollParent();return v!=null?v:p&&p.parentNode}},{key:"filterProps",value:function(p){return p}},{key:"attachScrollListener",value:function(){var p=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!p)return;var v=window;this.props.useWindow===!1&&(v=p),v.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),v.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),v.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(p){p.deltaY===1&&!this.isPassiveSupported()&&p.preventDefault()}},{key:"scrollListener",value:function(){var p=this.scrollComponent,v=window,a=this.getParentElement(p),t=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,h=v.pageYOffset!==void 0?v.pageYOffset:s.scrollTop;this.props.isReverse?t=h:t=this.calculateOffset(p,h)}else this.props.isReverse?t=a.scrollTop:t=p.scrollHeight-a.scrollTop-a.clientHeight;t1&&arguments[1]!==void 0?arguments[1]:1,Te=dt.length,oe=0;oe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(I.a)(z).map(function(V,q){if(!T.isValidElement(V)||!V.type)return null;var ne=V.type.isSelectOptGroup,ve=V.key,le=V.props,be=le.children,we=Object(M.a)(le,["children"]);return Y||!ne?_(V):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(ve===null?q:ve,"__"),label:ve},we),{},{options:f(be)})}).filter(function(V){return V})}var o=P("2Qr1"),i=P("qNPg"),d=P("U8pU"),A=P("Kwbf"),O=P("WKfj");function m(z){var Y=z.mode,V=z.options,q=z.children,ne=z.backfill,ve=z.allowClear,le=z.placeholder,be=z.getInputElement,we=z.showSearch,Re=z.onSearch,ge=z.defaultOpen,fe=z.autoFocus,Ze=z.labelInValue,Ot=z.value,Ee=z.inputValue,ke=z.optionLabelProp,de=Y==="multiple"||Y==="tags",me=we!==void 0?we:de||Y==="combobox",Le=V||f(q);if(Object(A.a)(Y!=="tags"||Le.every(function(at){return!at.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var rt=Le.some(function(at){return at.options?at.options.some(function(dt){return typeof("value"in dt?dt.value:dt.key)=="number"}):typeof("value"in at?at.value:at.key)=="number"});Object(A.a)(!rt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(A.a)(Y!=="combobox"||!ke,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(A.a)(Y==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(A.a)(Y==="combobox"||!be,"`getInputElement` only work with `combobox` mode."),Object(A.b)(Y!=="combobox"||!be||!ve||!le,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Re&&!me&&Y!=="combobox"&&Y!=="tags"&&Object(A.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(A.b)(!ge||fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ot!=null){var Oe=Object(O.d)(Ot);Object(A.a)(!Ze||Oe.every(function(at){return Object(d.a)(at)==="object"&&("key"in at||"value"in at)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(A.a)(!de||Array.isArray(Ot),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var Ge=null;Object(I.a)(q).some(function(at){if(!T.isValidElement(at)||!at.type)return!1;var dt=at.type;if(dt.isSelectOption)return!1;if(dt.isSelectOptGroup){var Rt=Object(I.a)(at.props.children).every(function(bt){return!T.isValidElement(bt)||!at.type||bt.type.isSelectOption?!0:(Ge=bt.type,!1)});return!Rt}return Ge=dt,!0}),Ge&&Object(A.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ge.displayName||Ge.name||Ge,"`.")),Object(A.a)(Ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var k=m,N=Object(i.a)({prefixCls:"rc-select",components:{optionList:t},convertChildrenToData:f,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:k,fillOptionsWithMissingValue:o.a}),B=function(z){Object(R.a)(V,z);var Y=Object(j.a)(V);function V(){var q;return Object(X.a)(this,V),q=Y.apply(this,arguments),q.selectRef=T.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(F.a)(V,[{key:"render",value:function(){return T.createElement(N,Object.assign({ref:this.selectRef},this.props))}}]),V}(T.Component);B.Option=h,B.OptGroup=D;var G=B,W=te.c=G},M8RZ:function(ze,te,P){"use strict";P.d(te,"a",function(){return E});var X=P("fWQN"),F=P("mtLc"),R=P("yKVA"),j=P("879j"),T=P("q1tI"),S=P.n(T),M=P("i8i4"),c=P.n(M),E=function(g){Object(R.a)(l,g);var r=Object(j.a)(l);function l(b){var u;Object(X.a)(this,l),u=r.call(this,b);var p=window.document;return u.node=p.createElement("div"),p.body.appendChild(u.node),u}return Object(F.a)(l,[{key:"render",value:function(){var u=this.props.children;return Object(M.createPortal)(u,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),l}(S.a.Component)},MEGo:function(ze,te,P){var X=P("4fz+"),F=P("Dagg"),R=P("dqUG"),j=P("2fw6"),T=P("x6Kt"),S=P("rmlV"),M=P("yxFR"),c=P("y+Vt"),E=P("h7HQ"),g=P("1Jh7"),r=P("SKnc"),l=P("K2GJ"),b=P("Fofx"),u=P("NC18"),p=u.createFromString,v=P("bYtY"),a=v.isString,t=v.extend,s=v.defaults,h=v.trim,y=v.each,D=/[\s,]+/;function C(V){if(a(V)){var q=new DOMParser;V=q.parseFromString(V,"text/xml")}for(V.nodeType===9&&(V=V.firstChild);V.nodeName.toLowerCase()!=="svg"||V.nodeType!==1;)V=V.nextSibling;return V}function I(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}I.prototype.parse=function(V,q){q=q||{};var ne=C(V);if(!ne)throw new Error("Illegal svg");var ve=new X;this._root=ve;var le=ne.getAttribute("viewBox")||"",be=parseFloat(ne.getAttribute("width")||q.width),we=parseFloat(ne.getAttribute("height")||q.height);isNaN(be)&&(be=null),isNaN(we)&&(we=null),O(ne,ve,null,!0);for(var Re=ne.firstChild;Re;)this._parseNode(Re,ve),Re=Re.nextSibling;var ge,fe;if(le){var Ze=h(le).split(D);Ze.length>=4&&(ge={x:parseFloat(Ze[0]||0),y:parseFloat(Ze[1]||0),width:parseFloat(Ze[2]),height:parseFloat(Ze[3])})}if(ge&&be!=null&&we!=null&&(fe=z(ge,be,we),!q.ignoreViewBox)){var Ot=ve;ve=new X,ve.add(Ot),Ot.scale=fe.scale.slice(),Ot.position=fe.position.slice()}return!q.ignoreRootClip&&be!=null&&we!=null&&ve.setClipPath(new T({shape:{x:0,y:0,width:be,height:we}})),{root:ve,width:be,height:we,viewBoxRect:ge,viewBoxTransform:fe}},I.prototype._parseNode=function(V,q){var ne=V.nodeName.toLowerCase();ne==="defs"?this._isDefine=!0:ne==="text"&&(this._isText=!0);var ve;if(this._isDefine){var le=f[ne];if(le){var be=le.call(this,V),we=V.getAttribute("id");we&&(this._defs[we]=be)}}else{var le=_[ne];le&&(ve=le.call(this,V,q),q.add(ve))}for(var Re=V.firstChild;Re;)Re.nodeType===1&&this._parseNode(Re,ve),Re.nodeType===3&&this._isText&&this._parseText(Re,ve),Re=Re.nextSibling;ne==="defs"?this._isDefine=!1:ne==="text"&&(this._isText=!1)},I.prototype._parseText=function(V,q){if(V.nodeType===1){var ne=V.getAttribute("dx")||0,ve=V.getAttribute("dy")||0;this._textX+=parseFloat(ne),this._textY+=parseFloat(ve)}var le=new R({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});i(q,le),O(V,le,this._defs);var be=le.style.fontSize;be&&be<9&&(le.style.fontSize=9,le.scale=le.scale||[1,1],le.scale[0]*=be/9,le.scale[1]*=be/9);var we=le.getBoundingRect();return this._textX+=we.width,q.add(le),le};var _={g:function(V,q){var ne=new X;return i(q,ne),O(V,ne,this._defs),ne},rect:function(V,q){var ne=new T;return i(q,ne),O(V,ne,this._defs),ne.setShape({x:parseFloat(V.getAttribute("x")||0),y:parseFloat(V.getAttribute("y")||0),width:parseFloat(V.getAttribute("width")||0),height:parseFloat(V.getAttribute("height")||0)}),ne},circle:function(V,q){var ne=new j;return i(q,ne),O(V,ne,this._defs),ne.setShape({cx:parseFloat(V.getAttribute("cx")||0),cy:parseFloat(V.getAttribute("cy")||0),r:parseFloat(V.getAttribute("r")||0)}),ne},line:function(V,q){var ne=new M;return i(q,ne),O(V,ne,this._defs),ne.setShape({x1:parseFloat(V.getAttribute("x1")||0),y1:parseFloat(V.getAttribute("y1")||0),x2:parseFloat(V.getAttribute("x2")||0),y2:parseFloat(V.getAttribute("y2")||0)}),ne},ellipse:function(V,q){var ne=new S;return i(q,ne),O(V,ne,this._defs),ne.setShape({cx:parseFloat(V.getAttribute("cx")||0),cy:parseFloat(V.getAttribute("cy")||0),rx:parseFloat(V.getAttribute("rx")||0),ry:parseFloat(V.getAttribute("ry")||0)}),ne},polygon:function(V,q){var ne=V.getAttribute("points");ne&&(ne=d(ne));var ve=new E({shape:{points:ne||[]}});return i(q,ve),O(V,ve,this._defs),ve},polyline:function(V,q){var ne=new c;i(q,ne),O(V,ne,this._defs);var ve=V.getAttribute("points");ve&&(ve=d(ve));var le=new g({shape:{points:ve||[]}});return le},image:function(V,q){var ne=new F;return i(q,ne),O(V,ne,this._defs),ne.setStyle({image:V.getAttribute("xlink:href"),x:V.getAttribute("x"),y:V.getAttribute("y"),width:V.getAttribute("width"),height:V.getAttribute("height")}),ne},text:function(V,q){var ne=V.getAttribute("x")||0,ve=V.getAttribute("y")||0,le=V.getAttribute("dx")||0,be=V.getAttribute("dy")||0;this._textX=parseFloat(ne)+parseFloat(le),this._textY=parseFloat(ve)+parseFloat(be);var we=new X;return i(q,we),O(V,we,this._defs),we},tspan:function(V,q){var ne=V.getAttribute("x"),ve=V.getAttribute("y");ne!=null&&(this._textX=parseFloat(ne)),ve!=null&&(this._textY=parseFloat(ve));var le=V.getAttribute("dx")||0,be=V.getAttribute("dy")||0,we=new X;return i(q,we),O(V,we,this._defs),this._textX+=le,this._textY+=be,we},path:function(V,q){var ne=V.getAttribute("d")||"",ve=p(ne);return i(q,ve),O(V,ve,this._defs),ve}},f={lineargradient:function(V){var q=parseInt(V.getAttribute("x1")||0,10),ne=parseInt(V.getAttribute("y1")||0,10),ve=parseInt(V.getAttribute("x2")||10,10),le=parseInt(V.getAttribute("y2")||0,10),be=new r(q,ne,ve,le);return o(V,be),be},radialgradient:function(V){}};function o(V,q){for(var ne=V.firstChild;ne;){if(ne.nodeType===1){var ve=ne.getAttribute("offset");ve.indexOf("%")>0?ve=parseInt(ve,10)/100:ve?ve=parseFloat(ve):ve=0;var le=ne.getAttribute("stop-color")||"#000000";q.addColorStop(ve,le)}ne=ne.nextSibling}}function i(V,q){V&&V.__inheritedStyle&&(q.__inheritedStyle||(q.__inheritedStyle={}),s(q.__inheritedStyle,V.__inheritedStyle))}function d(V){for(var q=h(V).split(D),ne=[],ve=0;ve0;be-=2){var we=le[be],Re=le[be-1];ve=ve||b.create();switch(Re){case"translate":we=h(we).split(D),b.translate(ve,ve,[parseFloat(we[0]),parseFloat(we[1]||0)]);break;case"scale":we=h(we).split(D),b.scale(ve,ve,[parseFloat(we[0]),parseFloat(we[1]||we[0])]);break;case"rotate":we=h(we).split(D),b.rotate(ve,ve,parseFloat(we[0]));break;case"skew":we=h(we).split(D),console.warn("Skew transform is not supported yet");break;case"matrix":var we=h(we).split(D);ve[0]=parseFloat(we[0]),ve[1]=parseFloat(we[1]),ve[2]=parseFloat(we[2]),ve[3]=parseFloat(we[3]),ve[4]=parseFloat(we[4]),ve[5]=parseFloat(we[5]);break}}q.setLocalTransform(ve)}}var G=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(V){var q=V.getAttribute("style"),ne={};if(!q)return ne;var ve={};G.lastIndex=0;for(var le;(le=G.exec(q))!=null;)ve[le[1]]=le[2];for(var be in A)A.hasOwnProperty(be)&&ve[be]!=null&&(ne[A[be]]=ve[be]);return ne}function z(V,q,ne){var ve=q/V.width,le=ne/V.height,be=Math.min(ve,le),we=[be,be],Re=[-(V.x+V.width/2)*be+q/2,-(V.y+V.height/2)*be+ne/2];return{scale:we,position:Re}}function Y(V,q){var ne=new I;return ne.parse(V,q)}te.parseXML=C,te.makeViewBoxTransform=z,te.parseSVG=Y},MI8n:function(ze,te,P){"use strict";P.d(te,"b",function(){return S}),P.d(te,"a",function(){return E}),P.d(te,"e",function(){return g}),P.d(te,"d",function(){return r}),P.d(te,"c",function(){return l}),P.d(te,"f",function(){return b});var X=P("/cxE"),F=P("C/vA"),R=P("pmY6"),j=P("24hK"),T=function(){var u=function(p,v){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var s in t)t.hasOwnProperty(s)&&(a[s]=t[s])},u(p,v)};return function(p,v){u(p,v);function a(){this.constructor=p}p.prototype=v===null?Object.create(v):(a.prototype=v.prototype,new a)}}(),S;(function(u){u.None=function(){return R.a.None};function p(k){return function(N,B,G){B===void 0&&(B=null);var W=!1,z;return z=k(function(Y){return W?void 0:(z?z.dispose():W=!0,N.call(B,Y))},null,G),W&&z.dispose(),z}}u.once=p;function v(k,N){return D(function(B,G,W){return G===void 0&&(G=null),k(function(z){return B.call(G,N(z))},null,W)})}u.map=v;function a(k,N){return D(function(B,G,W){return G===void 0&&(G=null),k(function(z){N(z),B.call(G,z)},null,W)})}u.forEach=a;function t(k,N){return D(function(B,G,W){return G===void 0&&(G=null),k(function(z){return N(z)&&B.call(G,z)},null,W)})}u.filter=t;function s(k){return k}u.signal=s;function h(){for(var k=[],N=0;N1)&&ne.fire(le),q=0},B)})},onLastListenerRemove:function(){z.dispose()}});return ne.event}u.debounce=C;function I(k){var N=new Date().getTime();return v(p(k),function(B){return new Date().getTime()-N})}u.stopwatch=I;function _(k){var N=!0,B;return t(k,function(G){var W=N||G!==B;return N=!1,B=G,W})}u.latch=_;function f(k,N,B){N===void 0&&(N=!1),B===void 0&&(B=[]);var G=B.slice(),W=k(function(V){G?G.push(V):Y.fire(V)}),z=function(){G&&G.forEach(function(V){return Y.fire(V)}),G=null},Y=new E({onFirstListenerAdd:function(){W||(W=k(function(V){return Y.fire(V)}))},onFirstListenerDidAdd:function(){G&&(N?setTimeout(z):z())},onLastListenerRemove:function(){W&&W.dispose(),W=null}});return Y.event}u.buffer=f;var o=function(){function k(N){this.event=N}return k.prototype.map=function(N){return new k(v(this.event,N))},k.prototype.forEach=function(N){return new k(a(this.event,N))},k.prototype.filter=function(N){return new k(t(this.event,N))},k.prototype.reduce=function(N,B){return new k(y(this.event,N,B))},k.prototype.latch=function(){return new k(_(this.event))},k.prototype.debounce=function(N,B,G,W){return B===void 0&&(B=100),G===void 0&&(G=!1),new k(C(this.event,N,B,G,W))},k.prototype.on=function(N,B,G){return this.event(N,B,G)},k.prototype.once=function(N,B,G){return p(this.event)(N,B,G)},k}();function i(k){return new o(k)}u.chain=i;function d(k,N,B){B===void 0&&(B=function(V){return V});var G=function(){for(var V=[],q=0;q0?new c(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(u.prototype,"event",{get:function(){var p=this;return this._event||(this._event=function(v,a,t){p._listeners||(p._listeners=new j.a);var s=p._listeners.isEmpty();s&&p._options&&p._options.onFirstListenerAdd&&p._options.onFirstListenerAdd(p);var h=p._listeners.push(a?[v,a]:v);s&&p._options&&p._options.onFirstListenerDidAdd&&p._options.onFirstListenerDidAdd(p),p._options&&p._options.onListenerDidAdd&&p._options.onListenerDidAdd(p,v,a);var y;p._leakageMon&&(y=p._leakageMon.check(p._listeners.size));var D;return D={dispose:function(){if(y&&y(),D.dispose=u._noop,!p._disposed&&(h(),p._options&&p._options.onLastListenerRemove)){var C=p._listeners&&!p._listeners.isEmpty();C||p._options.onLastListenerRemove(p)}}},t instanceof R.b?t.add(D):Array.isArray(t)&&t.push(D),D}),this._event},enumerable:!0,configurable:!0}),u.prototype.fire=function(p){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new j.a);for(var v=this._listeners.iterator(),a=v.next();!a.done;a=v.next())this._deliveryQueue.push([a.value,p]);for(;this._deliveryQueue.size>0;){var t=this._deliveryQueue.shift(),s=t[0],h=t[1];try{typeof s=="function"?s.call(void 0,h):s[0].call(s[1],h)}catch(y){Object(X.e)(y)}}}},u.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},u._noop=function(){},u}(),g=function(u){T(p,u);function p(v){var a=u.call(this,v)||this;return a._isPaused=0,a._eventQueue=new j.a,a._mergeFn=v&&v.merge,a}return p.prototype.pause=function(){this._isPaused++},p.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var v=this._eventQueue.toArray();this._eventQueue.clear(),u.prototype.fire.call(this,this._mergeFn(v))}else for(;!this._isPaused&&this._eventQueue.size!==0;)u.prototype.fire.call(this,this._eventQueue.shift())},p.prototype.fire=function(v){this._listeners&&(this._isPaused!==0?this._eventQueue.push(v):u.prototype.fire.call(this,v))},p}(E),r=function(){function u(){var p=this;this.hasListeners=!1,this.events=[],this.emitter=new E({onFirstListenerAdd:function(){return p.onFirstListenerAdd()},onLastListenerRemove:function(){return p.onLastListenerRemove()}})}return Object.defineProperty(u.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),u.prototype.add=function(p){var v=this,a={event:p,listener:null};this.events.push(a),this.hasListeners&&this.hook(a);var t=function(){v.hasListeners&&v.unhook(a);var s=v.events.indexOf(a);v.events.splice(s,1)};return Object(R.h)(Object(F.a)(t))},u.prototype.onFirstListenerAdd=function(){var p=this;this.hasListeners=!0,this.events.forEach(function(v){return p.hook(v)})},u.prototype.onLastListenerRemove=function(){var p=this;this.hasListeners=!1,this.events.forEach(function(v){return p.unhook(v)})},u.prototype.hook=function(p){var v=this;p.listener=p.event(function(a){return v.emitter.fire(a)})},u.prototype.unhook=function(p){p.listener&&p.listener.dispose(),p.listener=null},u.prototype.dispose=function(){this.emitter.dispose()},u}(),l=function(){function u(){this.buffers=[]}return u.prototype.wrapEvent=function(p){var v=this;return function(a,t,s){return p(function(h){var y=v.buffers[v.buffers.length-1];y?y.push(function(){return a.call(t,h)}):a.call(t,h)},void 0,s)}},u.prototype.bufferEvents=function(p){var v=[];this.buffers.push(v);var a=p();return this.buffers.pop(),v.forEach(function(t){return t()}),a},u}(),b=function(){function u(){var p=this;this.listening=!1,this.inputEvent=S.None,this.inputEventListener=R.a.None,this.emitter=new E({onFirstListenerDidAdd:function(){p.listening=!0,p.inputEventListener=p.inputEvent(p.emitter.fire,p.emitter)},onLastListenerRemove:function(){p.listening=!1,p.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(u.prototype,"input",{set:function(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),u.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},u}()},MKOG:function(ze,te,P){var X=P("bYtY"),F=P("YH21"),R=F.Dispatcher,j=P("mLcG"),T=P("Bq2U"),S=function(c){c=c||{},this.stage=c.stage||{},this.onframe=c.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,R.call(this)};S.prototype={constructor:S,addClip:function(c){this._clips.push(c)},addAnimator:function(c){c.animation=this;for(var E=c.getClips(),g=0;g=0&&this._clips.splice(E,1)},removeAnimator:function(c){for(var E=c.getClips(),g=0;g=me.length?rt:me[Ge]})}function T(de){return de.replace(/[<>&]/g,function(me){switch(me){case"<":return"<";case">":return">";case"&":return"&";default:return me}})}function S(de){return de.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function M(de,me){me===void 0&&(me=" ");var Le=c(de,me);return E(Le,me)}function c(de,me){if(!de||!me)return de;var Le=me.length;if(Le===0||de.length===0)return de;for(var rt=0;de.indexOf(me,rt)===rt;)rt=rt+Le;return de.substring(rt)}function E(de,me){if(!de||!me)return de;var Le=me.length,rt=de.length;if(Le===0||rt===0)return de;for(var Oe=rt,Ge=-1;!(Ge=de.lastIndexOf(me,Oe-1),Ge===-1||Ge+Le!==Oe);){if(Ge===0)return"";Oe=Ge}return de.substring(0,Oe)}function g(de){return de.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function r(de,me){if(de.length0?de.indexOf(me,Le)===Le:Le===0?de===me:!1}function b(de,me,Le){if(Le===void 0&&(Le={}),!de)throw new Error("Cannot create regex from empty string");me||(de=S(de)),Le.wholeWord&&(/\B/.test(de.charAt(0))||(de="\\b"+de),/\B/.test(de.charAt(de.length-1))||(de=de+"\\b"));var rt="";return Le.global&&(rt+="g"),Le.matchCase||(rt+="i"),Le.multiline&&(rt+="m"),Le.unicode&&(rt+="u"),new RegExp(de,rt)}function u(de){if(de.source==="^"||de.source==="^$"||de.source==="$"||de.source==="^\\s*$")return!1;var me=de.exec("");return!!(me&&de.lastIndex===0)}function p(de){return(de.global?"g":"")+(de.ignoreCase?"i":"")+(de.multiline?"m":"")+(de.unicode?"u":"")}function v(de){for(var me=0,Le=de.length;me=0;Le--){var rt=de.charCodeAt(Le);if(rt!==32&&rt!==9)return Le}return-1}function s(de,me){return deme?1:0}function h(de,me){for(var Le=Math.min(de.length,me.length),rt=0;rtme.length?1:0}function y(de){return de>=97&&de<=122}function D(de){return de>=65&&de<=90}function C(de){return y(de)||D(de)}function I(de,me){return de.length===me.length&&_(de,me)}function _(de,me,Le){Le===void 0&&(Le=de.length);for(var rt=0;rtde.length?!1:_(de,me,Le)}function o(de,me){var Le,rt=Math.min(de.length,me.length);for(Le=0;Le1){var rt=de.charCodeAt(me-2);if(d(rt))return(rt-55296<<10)+(Le-56320)+65536}return Le}function k(de,me){var Le=Ee.getInstance(),rt=me,Oe=de.length,Ge=O(de,Oe,me);me+=Ge>=65536?2:1;for(var at=Le.getGraphemeBreakType(Ge);me=65536?2:1,at=Pt}return me-rt}function N(de,me){var Le=Ee.getInstance(),rt=me,Oe=m(de,me);me-=Oe>=65536?2:1;for(var Ge=Le.getGraphemeBreakType(Oe);me>0;){var at=m(de,me),dt=Le.getGraphemeBreakType(at);if(Ot(dt,Ge))break;me-=at>=65536?2:1,Ge=dt}return rt-me}var B=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function G(de){return B.test(de)}var W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function z(de){return W.test(de)}var Y=/^[\t\n\r\x20-\x7E]*$/;function V(de){return Y.test(de)}function q(de){for(var me=0,Le=de.length;me=11904&&de<=55215||de>=63744&&de<=64255||de>=65281&&de<=65374}function ve(de){return de>=127462&&de<=127487||de>=9728&&de<=10175||de>=127744&&de<=128591||de>=128640&&de<=128764||de>=128992&&de<=129003||de>=129280&&de<=129535||de>=129648&&de<=129651||de>=129656&&de<=129666||de>=129680&&de<=129685}var le=String.fromCharCode(65279);function be(de){return!!(de&&de.length>0&&de.charCodeAt(0)===65279)}function we(de){return btoa(encodeURIComponent(de))}function Re(de,me){for(var Le="",rt=0;rtLe[3*Oe+1])Oe=2*Oe+1;else return Le[3*Oe+2];return 0},de._INSTANCE=null,de}();function ke(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NC18:function(ze,te,P){var X=P("y+Vt"),F=P("IMiH"),R=P("7oTu"),j=Math.sqrt,T=Math.sin,S=Math.cos,M=Math.PI,c=function(s){return Math.sqrt(s[0]*s[0]+s[1]*s[1])},E=function(s,h){return(s[0]*h[0]+s[1]*h[1])/(c(s)*c(h))},g=function(s,h){return(s[0]*h[1]1&&(_*=j(k),f*=j(k));var N=(C===I?-1:1)*j((_*_*(f*f)-_*_*(m*m)-f*f*(O*O))/(_*_*(m*m)+f*f*(O*O)))||0,B=N*_*m/f,G=N*-f*O/_,W=(s+y)/2+S(A)*B-T(A)*G,z=(h+D)/2+T(A)*B+S(A)*G,Y=g([1,0],[(O-B)/_,(m-G)/f]),V=[(O-B)/_,(m-G)/f],q=[(-1*O-B)/_,(-1*m-G)/f],ne=g(V,q);E(V,q)<=-1&&(ne=M),E(V,q)>=1&&(ne=0),I===0&&ne>0&&(ne=ne-2*M),I===1&&ne<0&&(ne=ne+2*M),d.addData(i,W,z,_,f,Y,ne,A,I)}var l=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,b=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(s){if(!s)return new F;for(var h=0,y=0,D=h,C=y,I,_=new F,f=F.CMD,o=s.match(l),i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;return!!(D(d)&&C(A))},D=function(d){return Object(r.p)()?!0:(d({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},C=function(){var d,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,O=Object(g.c)()._store.getState(),m=O.user;return(d=m.userInfo)!==null&&d!==void 0&&d.profile_completed?!0:(T.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:A?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){g.d.push("/account/profile/edit")}}),!1)},I=function(){var d,A=Object(g.c)()._store.getState(),O=A.user;return(d=O.userInfo)!==null&&d!==void 0&&d.professional_certification?!0:(T.a.confirm({title:"\u63D0\u793A",centered:!0,content:E.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(l.O)("/account/certification")}}),!1)},_=function(){return Object(r.a)()?!0:(T.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:E.a.createElement("div",{className:"tc",style:{marginLeft:-38}},E.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),E.a.createElement("img",{src:Object(r.t)()?s.a:"".concat(h.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},f=function(d,A){return d?!0:(T.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:E.a.createElement("div",null,E.a.createElement("p",null,A||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),E.a.createElement("div",{style:{marginLeft:"110px"}},E.a.createElement("img",{src:a.a,width:200}),E.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},o=function(d){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",O=Object(g.c)()._store.getState(),m=O.shixunsDetail.detail;return(m==null?void 0:m.public)===2||(m==null?void 0:m.public)===1||(m==null?void 0:m.shixun_status)===3?(T.a.info({centered:!0,icon:E.a.createElement(b.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:E.a.createElement("div",{className:"tc",style:{marginLeft:-38}},E.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},E.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(m==null?void 0:m.public)===2?"\u5DF2\u516C\u5F00":(m==null?void 0:m.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",A,"\u3002"),E.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),E.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(m==null?void 0:m.shixun_status)===2?(T.a.confirm({centered:!0,icon:E.a.createElement(b.a,null),title:"\u63D0\u793A",content:E.a.createElement("div",null,E.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",A,"\u3002"),E.a.createElement("br",null),E.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){T.a.confirm({width:440,centered:!0,icon:E.a.createElement(b.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var N=Object(R.a)(M.a.mark(function G(){var W;return M.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,d({type:"shixunsDetail/cancelRelease",payload:{id:m==null?void 0:m.identifier}});case 2:W=Y.sent,W.status!==401&&(F.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),d({type:"shixunsDetail/getShixunsDetail",payload:{id:m==null?void 0:m.identifier}}),d({type:"practiceSetting/getCommonData",payload:{id:m==null?void 0:m.identifier}}));case 4:case"end":return Y.stop()}},G)}));function B(){return N.apply(this,arguments)}return B}()})}}),!0):!1}},NohK:function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.default=void 0;var X=function(R){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,T=null;return function(){for(var S=this,M=arguments.length,c=new Array(M),E=0;E=0;v-=1){var a=c.get(v)||new Set;a.forEach(function(t){var s=t.parent,h=t.node;if(g(h)||!t.parent||p.has(t.parent.key))return;if(g(t.parent.node)){p.add(s.key);return}var y=!0,D=!1;(s.children||[]).filter(function(C){return!g(C.node)}).forEach(function(C){var I=C.key,_=r.has(I);y&&!_&&(y=!1),!D&&(_||l.has(I))&&(D=!0)}),y&&r.add(s.key),D&&l.add(s.key),p.add(s.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(F(l,r))}}function T(M,c,E,g,r){for(var l=new Set(M),b=new Set(c),u=0;u<=g;u+=1){var p=E.get(u)||new Set;p.forEach(function(s){var h=s.key,y=s.node,D=s.children,C=D===void 0?[]:D;!l.has(h)&&!b.has(h)&&!r(y)&&C.filter(function(I){return!r(I.node)}).forEach(function(I){l.delete(I.key)})})}b=new Set;for(var v=new Set,a=g;a>=0;a-=1){var t=E.get(a)||new Set;t.forEach(function(s){var h=s.parent,y=s.node;if(r(y)||!s.parent||v.has(s.parent.key))return;if(r(s.parent.node)){v.add(h.key);return}var D=!0,C=!1;(h.children||[]).filter(function(I){return!r(I.node)}).forEach(function(I){var _=I.key,f=l.has(_);D&&!f&&(D=!1),!C&&(f||b.has(_))&&(C=!0)}),D||l.delete(h.key),C&&b.add(h.key),v.add(h.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(F(b,l))}}function S(M,c,E,g){var r=[],l;g?l=g:l=R;var b=new Set(M.filter(function(a){var t=!!E[a];return t||r.push(a),t})),u=new Map,p=0;Object.keys(E).forEach(function(a){var t=E[a],s=t.level,h=u.get(s);h||(h=new Set,u.set(s,h)),h.add(t),p=Math.max(p,s)}),Object(X.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var v;return c===!0?v=j(b,u,p,l):v=T(b,c.halfCheckedKeys,u,p,l),v}},OLES:function(ze,te,P){"use strict";var X=P("U8pU"),F=P("VTBJ"),R=P("Ff2n"),j=P("q1tI"),T=P("uciX"),S=P("7ixt"),M=function(b){var u=b.overlay,p=b.prefixCls,v=b.id,a=b.overlayInnerStyle;return j.createElement("div",{className:"".concat(p,"-inner"),id:v,role:"tooltip",style:a},typeof u=="function"?u():u)},c=M,E=function(b,u){var p=b.overlayClassName,v=b.trigger,a=v===void 0?["hover"]:v,t=b.mouseEnterDelay,s=t===void 0?0:t,h=b.mouseLeaveDelay,y=h===void 0?.1:h,D=b.overlayStyle,C=b.prefixCls,I=C===void 0?"rc-tooltip":C,_=b.children,f=b.onVisibleChange,o=b.afterVisibleChange,i=b.transitionName,d=b.animation,A=b.placement,O=A===void 0?"right":A,m=b.align,k=m===void 0?{}:m,N=b.destroyTooltipOnHide,B=N===void 0?!1:N,G=b.defaultVisible,W=b.getTooltipContainer,z=b.overlayInnerStyle,Y=Object(R.a)(b,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),V=Object(j.useRef)(null);Object(j.useImperativeHandle)(u,function(){return V.current});var q=Object(F.a)({},Y);"visible"in b&&(q.popupVisible=b.visible);var ne=function(){var Re=b.arrowContent,ge=Re===void 0?null:Re,fe=b.overlay,Ze=b.id;return[j.createElement("div",{className:"".concat(I,"-arrow"),key:"arrow"},ge),j.createElement(c,{key:"content",prefixCls:I,id:Ze,overlay:fe,overlayInnerStyle:z})]},ve=!1,le=!1;if(typeof B=="boolean")ve=B;else if(B&&Object(X.a)(B)==="object"){var be=B.keepParent;ve=be===!0,le=be===!1}return j.createElement(T.a,Object.assign({popupClassName:p,prefixCls:I,popup:ne,action:a,builtinPlacements:S.a,popupPlacement:O,ref:V,popupAlign:k,getPopupContainer:W,onPopupVisibleChange:f,afterPopupVisibleChange:o,popupTransitionName:i,popupAnimation:d,defaultPopupVisible:G,destroyPopupOnHide:ve,autoDestroy:le,mouseLeaveDelay:y,popupStyle:D,mouseEnterDelay:s},q),_)},g=Object(j.forwardRef)(E),r=te.a=g},OS9S:function(ze,te,P){var X=P("bYtY"),F=X.inherits,R=P("Gev7"),j=P("mFDi");function T(c){R.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}T.prototype.incremental=!0,T.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},T.prototype.addDisplayable=function(c,E){E?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},T.prototype.addDisplayables=function(c,E){E=E||!1;for(var g=0;g=0&&_.splice(f,1),_}function r(C,I){var _=C.slice();return _.indexOf(I)===-1&&_.push(I),_}function l(C){return C.split("-")}function b(C,I){return"".concat(C,"-").concat(I)}function u(C){return C&&C.type&&C.type.isTreeNode}function p(C,I){var _=[C],f=I[C];function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(d){var A=d.key,O=d.children;_.push(A),o(O)})}return o(f.children),_}function v(C,I){var _=C.clientY,f=I.selectHandle.getBoundingClientRect(),o=f.top,i=f.bottom,d=f.height,A=Math.max(d*c,E);return _<=o+A?-1:_>=i-A?1:0}function a(C,I){if(!C)return;var _=I.multiple;return _?C.slice():C.length?[C[0]]:C}var t=function(I){return I};function s(C,I){if(!C)return[];var _=I||{},f=_.processProps,o=f===void 0?t:f,i=Array.isArray(C)?C:[C];return i.map(function(d){var A=d.children,O=Object(R.a)(d,["children"]),m=s(A,I);return T.a.createElement(M.a,Object.assign({},o(O)),m)})}function h(C){if(!C)return null;var I;if(Array.isArray(C))I={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(F.a)(C)==="object")I={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(S.a)(!1,"`checkedKeys` is not an array or an object"),null;return I}function y(C,I){var _=new Set;function f(o){if(_.has(o))return;var i=I[o];if(!i)return;_.add(o);var d=i.parent,A=i.node;if(A.disabled)return;d&&f(d.key)}return(C||[]).forEach(function(o){f(o)}),Object(X.a)(_)}function D(C){var I={};return Object.keys(C).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(I[_]=C[_])}),I}},Ot1p:function(ze,te,P){"use strict";var X=P("2qtc"),F=P("kLXV"),R=P("rAM+"),j=P("miYZ"),T=P("tsqr"),S=P("9og8"),M=P("tJVT"),c=P("jrin"),E=P("WmNS"),g=P.n(E),r=P("q1tI"),l=P.n(r),b=P("VrN/"),u=P.n(b),p=P("bdgK"),v=P("p77/"),a=P("Bd2K"),t=P("ELLl"),s=P("19Vz"),h=P("lZu9"),y=P("+NIl"),D=P("kSUc"),C=P("9Bee"),I=function(Ue){var Mt=Ue.value,tn=Mt===void 0?"":Mt,sn=Ue.className,nn=Ue.showTextOnly,rn=Ue.showLines,St=Ue.style,Tt=St===void 0?{}:St,ct=Object(r.useMemo)(function(){return""},[tn]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},_=P("0Owb"),f=P("dejd"),o=P("C+DQ"),i=P("1vsH"),d=P("m3rI"),A=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function O(Ue){var Mt=Ue.onActionCallback,tn=Ue.title,sn=Ue.icon,nn=Ue.actionName,rn=Ue.className,St=rn===void 0?"":rn,Tt=Ue.children;function ct(){Mt(nn)}return l.a.createElement("a",{title:tn,className:St,onClick:ct},l.a.createElement("i",{className:"md-iconfont ".concat(sn)}),Tt)}var m=function(Ue){var Mt=Ue.watch,tn=Ue.showNullButton,sn=Ue.onActionCallback,nn=Ue.fullScreen,rn=Ue.insertTemp,St=Ue.hidetoolBar,Tt=Ue.uuid,ct=Ue.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(i.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(i.D)("_educoder_session"),"&key=").concat(Tt,"&api=").concat(encodeURIComponent(d.a.PROXY_SERVER)));var ye=[].concat(A,[{title:"".concat(Mt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Mt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!St&&ye.map(function(Pe,Lt){return l.a.createElement("li",{key:Lt},Pe.actionName?l.a.createElement(O,Object(_.a)({},Pe,{onActionCallback:sn})):l.a.createElement("span",{className:"v-line"}))}),tn?l.a.createElement("li",null,l.a.createElement(O,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:sn},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,rn&&l.a.createElement("li",null,l.a.createElement(O,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(rn),onActionCallback:sn},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(O,{icon:"".concat(nn?"icon-shrink":"icon-enlarge"),title:nn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:sn})))},k=P("M8RZ"),N=P("+L6B"),B=P("2/Rp"),G=P("y8nQ"),W=P("Vl3Y"),z=P("5NDa"),Y=P("5rEg"),V={labelCol:{span:4},wrapperCol:{span:20}},q=function(Ue){var Mt=Ue.callback,tn=Ue.onCancel;function sn(nn){Mt(nn)}return l.a.createElement(W.a,Object(_.a)({},V,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:sn}),l.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(Y.a,null)),l.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(Y.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(B.a,{type:"ghost",onClick:tn},"\u53D6\u6D88")))},ne=P("7ahc"),ve=P("k1fw"),le=P("HmJG"),be=P("BjJ7"),we=W.a.useForm,Re={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}},fe=function(Ue){var Mt=Ue.callback,tn=Ue.onCancel,sn=we(),nn=Object(M.a)(sn,1),rn=nn[0],St=Object(r.useRef)();function Tt(Pe){Mt(Object(ve.a)(Object(ve.a)({},Pe),{},{name:St.current}))}function ct(Pe,Lt){rn.setFieldsValue({src:"/api/attachments/".concat(Pe.id,"?type=").concat(Pe.content_type),type:Lt.type})}function ye(Pe){var Lt=Pe.target.files[0];St.current=Lt.name,Ot(Lt,ct)}return l.a.createElement(W.a,Object(_.a)({form:rn},ge,{className:"upload-image-panel",onFinish:Tt}),l.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(W.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},l.a.createElement(Y.a,{style:Re})),l.a.createElement(Ze,{onFileChange:ye}))),l.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},l.a.createElement(Y.a,{style:{width:264}})),l.a.createElement(W.a.Item,{style:{textAlign:"right"}},l.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(B.a,{type:"ghost",onClick:tn},"\u53D6\u6D88")))};function Ze(Ue){var Mt=Ue.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:Mt}))}function Ot(Ue,Mt){if(!Ue)throw new String("\u6CA1\u6709\u6587\u4EF6");var tn=new FormData;tn.append("editormd-image-file",Ue),tn.append("file_param_name","editormd-image-file"),tn.append("byxhr","true");var sn=new window.XMLHttpRequest;sn.withCredentials=!0,sn.addEventListener("load",function(nn){Mt(JSON.parse(nn.target.responseText),Ue)},!1),sn.addEventListener("error",function(nn){console.error(nn)},!1),sn.open("POST","".concat(be.a,"/api/attachments.json")),sn.send(tn)}var Ee=P("giR+"),ke=P("fyUT"),de=P("7Kak"),me=P("9yH6"),Le=me.a.Group,rt={margin:"0 8px"},Oe=function(Ue){var Mt=Ue.callback,tn=Ue.onCancel;function sn(nn){Mt(nn)}return l.a.createElement(W.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:sn},l.a.createElement("div",{className:"flex-container"},l.a.createElement("span",{style:rt},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:rt},"\u884C\u6570"),l.a.createElement(W.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(ke.a,null)),l.a.createElement("span",{style:rt},"\u5217\u6570"),l.a.createElement(W.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(ke.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12}},l.a.createElement("span",{style:rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(W.a.Item,{name:"align"},l.a.createElement(Le,null,l.a.createElement(me.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(me.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(me.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(me.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(B.a,{type:"ghost",onClick:tn},"\u53D6\u6D88")))},Ge=P("ErOA"),at=P("7Cbv"),dt="link",Pt="upload-image",bt="code-block",zt="add-table",It="------------",on={default:It,left:":".concat(It),center:":".concat(It,":"),right:"".concat(It,":")},dn=P("9VGf"),Ie,De;function ot(){}var Et=0,Je=1e4,ft="\u2581",Me=` +`),s=this._stacks.get(t)||0;if(this._stacks.set(t,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=a*.5;var h,y=0;this._stacks.forEach(function(D,C){(!h||y0?new c(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(u.prototype,"event",{get:function(){var p=this;return this._event||(this._event=function(v,a,t){p._listeners||(p._listeners=new j.a);var s=p._listeners.isEmpty();s&&p._options&&p._options.onFirstListenerAdd&&p._options.onFirstListenerAdd(p);var h=p._listeners.push(a?[v,a]:v);s&&p._options&&p._options.onFirstListenerDidAdd&&p._options.onFirstListenerDidAdd(p),p._options&&p._options.onListenerDidAdd&&p._options.onListenerDidAdd(p,v,a);var y;p._leakageMon&&(y=p._leakageMon.check(p._listeners.size));var D;return D={dispose:function(){if(y&&y(),D.dispose=u._noop,!p._disposed&&(h(),p._options&&p._options.onLastListenerRemove)){var C=p._listeners&&!p._listeners.isEmpty();C||p._options.onLastListenerRemove(p)}}},t instanceof R.b?t.add(D):Array.isArray(t)&&t.push(D),D}),this._event},enumerable:!0,configurable:!0}),u.prototype.fire=function(p){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new j.a);for(var v=this._listeners.iterator(),a=v.next();!a.done;a=v.next())this._deliveryQueue.push([a.value,p]);for(;this._deliveryQueue.size>0;){var t=this._deliveryQueue.shift(),s=t[0],h=t[1];try{typeof s=="function"?s.call(void 0,h):s[0].call(s[1],h)}catch(y){Object(X.e)(y)}}}},u.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},u._noop=function(){},u}(),g=function(u){T(p,u);function p(v){var a=u.call(this,v)||this;return a._isPaused=0,a._eventQueue=new j.a,a._mergeFn=v&&v.merge,a}return p.prototype.pause=function(){this._isPaused++},p.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var v=this._eventQueue.toArray();this._eventQueue.clear(),u.prototype.fire.call(this,this._mergeFn(v))}else for(;!this._isPaused&&this._eventQueue.size!==0;)u.prototype.fire.call(this,this._eventQueue.shift())},p.prototype.fire=function(v){this._listeners&&(this._isPaused!==0?this._eventQueue.push(v):u.prototype.fire.call(this,v))},p}(E),r=function(){function u(){var p=this;this.hasListeners=!1,this.events=[],this.emitter=new E({onFirstListenerAdd:function(){return p.onFirstListenerAdd()},onLastListenerRemove:function(){return p.onLastListenerRemove()}})}return Object.defineProperty(u.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),u.prototype.add=function(p){var v=this,a={event:p,listener:null};this.events.push(a),this.hasListeners&&this.hook(a);var t=function(){v.hasListeners&&v.unhook(a);var s=v.events.indexOf(a);v.events.splice(s,1)};return Object(R.h)(Object(F.a)(t))},u.prototype.onFirstListenerAdd=function(){var p=this;this.hasListeners=!0,this.events.forEach(function(v){return p.hook(v)})},u.prototype.onLastListenerRemove=function(){var p=this;this.hasListeners=!1,this.events.forEach(function(v){return p.unhook(v)})},u.prototype.hook=function(p){var v=this;p.listener=p.event(function(a){return v.emitter.fire(a)})},u.prototype.unhook=function(p){p.listener&&p.listener.dispose(),p.listener=null},u.prototype.dispose=function(){this.emitter.dispose()},u}(),l=function(){function u(){this.buffers=[]}return u.prototype.wrapEvent=function(p){var v=this;return function(a,t,s){return p(function(h){var y=v.buffers[v.buffers.length-1];y?y.push(function(){return a.call(t,h)}):a.call(t,h)},void 0,s)}},u.prototype.bufferEvents=function(p){var v=[];this.buffers.push(v);var a=p();return this.buffers.pop(),v.forEach(function(t){return t()}),a},u}(),b=function(){function u(){var p=this;this.listening=!1,this.inputEvent=S.None,this.inputEventListener=R.a.None,this.emitter=new E({onFirstListenerDidAdd:function(){p.listening=!0,p.inputEventListener=p.inputEvent(p.emitter.fire,p.emitter)},onLastListenerRemove:function(){p.listening=!1,p.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(u.prototype,"input",{set:function(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),u.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},u}()},MKOG:function(ze,te,P){var X=P("bYtY"),F=P("YH21"),R=F.Dispatcher,j=P("mLcG"),T=P("Bq2U"),S=function(c){c=c||{},this.stage=c.stage||{},this.onframe=c.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,R.call(this)};S.prototype={constructor:S,addClip:function(c){this._clips.push(c)},addAnimator:function(c){c.animation=this;for(var E=c.getClips(),g=0;g=0&&this._clips.splice(E,1)},removeAnimator:function(c){for(var E=c.getClips(),g=0;g=me.length?rt:me[Ge]})}function T(de){return de.replace(/[<>&]/g,function(me){switch(me){case"<":return"<";case">":return">";case"&":return"&";default:return me}})}function S(de){return de.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function M(de,me){me===void 0&&(me=" ");var Le=c(de,me);return E(Le,me)}function c(de,me){if(!de||!me)return de;var Le=me.length;if(Le===0||de.length===0)return de;for(var rt=0;de.indexOf(me,rt)===rt;)rt=rt+Le;return de.substring(rt)}function E(de,me){if(!de||!me)return de;var Le=me.length,rt=de.length;if(Le===0||rt===0)return de;for(var Oe=rt,Ge=-1;!(Ge=de.lastIndexOf(me,Oe-1),Ge===-1||Ge+Le!==Oe);){if(Ge===0)return"";Oe=Ge}return de.substring(0,Oe)}function g(de){return de.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function r(de,me){if(de.length0?de.indexOf(me,Le)===Le:Le===0?de===me:!1}function b(de,me,Le){if(Le===void 0&&(Le={}),!de)throw new Error("Cannot create regex from empty string");me||(de=S(de)),Le.wholeWord&&(/\B/.test(de.charAt(0))||(de="\\b"+de),/\B/.test(de.charAt(de.length-1))||(de=de+"\\b"));var rt="";return Le.global&&(rt+="g"),Le.matchCase||(rt+="i"),Le.multiline&&(rt+="m"),Le.unicode&&(rt+="u"),new RegExp(de,rt)}function u(de){if(de.source==="^"||de.source==="^$"||de.source==="$"||de.source==="^\\s*$")return!1;var me=de.exec("");return!!(me&&de.lastIndex===0)}function p(de){return(de.global?"g":"")+(de.ignoreCase?"i":"")+(de.multiline?"m":"")+(de.unicode?"u":"")}function v(de){for(var me=0,Le=de.length;me=0;Le--){var rt=de.charCodeAt(Le);if(rt!==32&&rt!==9)return Le}return-1}function s(de,me){return deme?1:0}function h(de,me){for(var Le=Math.min(de.length,me.length),rt=0;rtme.length?1:0}function y(de){return de>=97&&de<=122}function D(de){return de>=65&&de<=90}function C(de){return y(de)||D(de)}function I(de,me){return de.length===me.length&&_(de,me)}function _(de,me,Le){Le===void 0&&(Le=de.length);for(var rt=0;rtde.length?!1:_(de,me,Le)}function o(de,me){var Le,rt=Math.min(de.length,me.length);for(Le=0;Le1){var rt=de.charCodeAt(me-2);if(d(rt))return(rt-55296<<10)+(Le-56320)+65536}return Le}function k(de,me){var Le=Ee.getInstance(),rt=me,Oe=de.length,Ge=O(de,Oe,me);me+=Ge>=65536?2:1;for(var at=Le.getGraphemeBreakType(Ge);me=65536?2:1,at=Rt}return me-rt}function N(de,me){var Le=Ee.getInstance(),rt=me,Oe=m(de,me);me-=Oe>=65536?2:1;for(var Ge=Le.getGraphemeBreakType(Oe);me>0;){var at=m(de,me),dt=Le.getGraphemeBreakType(at);if(Ot(dt,Ge))break;me-=at>=65536?2:1,Ge=dt}return rt-me}var B=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function G(de){return B.test(de)}var W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function z(de){return W.test(de)}var Y=/^[\t\n\r\x20-\x7E]*$/;function V(de){return Y.test(de)}function q(de){for(var me=0,Le=de.length;me=11904&&de<=55215||de>=63744&&de<=64255||de>=65281&&de<=65374}function ve(de){return de>=127462&&de<=127487||de>=9728&&de<=10175||de>=127744&&de<=128591||de>=128640&&de<=128764||de>=128992&&de<=129003||de>=129280&&de<=129535||de>=129648&&de<=129651||de>=129656&&de<=129666||de>=129680&&de<=129685}var le=String.fromCharCode(65279);function be(de){return!!(de&&de.length>0&&de.charCodeAt(0)===65279)}function we(de){return btoa(encodeURIComponent(de))}function Re(de,me){for(var Le="",rt=0;rtLe[3*Oe+1])Oe=2*Oe+1;else return Le[3*Oe+2];return 0},de._INSTANCE=null,de}();function ke(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NC18:function(ze,te,P){var X=P("y+Vt"),F=P("IMiH"),R=P("7oTu"),j=Math.sqrt,T=Math.sin,S=Math.cos,M=Math.PI,c=function(s){return Math.sqrt(s[0]*s[0]+s[1]*s[1])},E=function(s,h){return(s[0]*h[0]+s[1]*h[1])/(c(s)*c(h))},g=function(s,h){return(s[0]*h[1]1&&(_*=j(k),f*=j(k));var N=(C===I?-1:1)*j((_*_*(f*f)-_*_*(m*m)-f*f*(O*O))/(_*_*(m*m)+f*f*(O*O)))||0,B=N*_*m/f,G=N*-f*O/_,W=(s+y)/2+S(A)*B-T(A)*G,z=(h+D)/2+T(A)*B+S(A)*G,Y=g([1,0],[(O-B)/_,(m-G)/f]),V=[(O-B)/_,(m-G)/f],q=[(-1*O-B)/_,(-1*m-G)/f],ne=g(V,q);E(V,q)<=-1&&(ne=M),E(V,q)>=1&&(ne=0),I===0&&ne>0&&(ne=ne-2*M),I===1&&ne<0&&(ne=ne+2*M),d.addData(i,W,z,_,f,Y,ne,A,I)}var l=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,b=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(s){if(!s)return new F;for(var h=0,y=0,D=h,C=y,I,_=new F,f=F.CMD,o=s.match(l),i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;return!!(D(d)&&C(A))},D=function(d){return Object(r.p)()?!0:(d({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},C=function(){var d,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,O=Object(g.c)()._store.getState(),m=O.user;return(d=m.userInfo)!==null&&d!==void 0&&d.profile_completed?!0:(T.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:A?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){g.d.push("/account/profile/edit")}}),!1)},I=function(){var d,A=Object(g.c)()._store.getState(),O=A.user;return(d=O.userInfo)!==null&&d!==void 0&&d.professional_certification?!0:(T.a.confirm({title:"\u63D0\u793A",centered:!0,content:E.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(l.O)("/account/certification")}}),!1)},_=function(){return Object(r.a)()?!0:(T.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:E.a.createElement("div",{className:"tc",style:{marginLeft:-38}},E.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),E.a.createElement("img",{src:Object(r.t)()?s.a:"".concat(h.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},f=function(d,A){return d?!0:(T.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:E.a.createElement("div",null,E.a.createElement("p",null,A||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),E.a.createElement("div",{style:{marginLeft:"110px"}},E.a.createElement("img",{src:a.a,width:200}),E.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},o=function(d){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",O=Object(g.c)()._store.getState(),m=O.shixunsDetail.detail;return(m==null?void 0:m.public)===2||(m==null?void 0:m.public)===1||(m==null?void 0:m.shixun_status)===3?(T.a.info({centered:!0,icon:E.a.createElement(b.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:E.a.createElement("div",{className:"tc",style:{marginLeft:-38}},E.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},E.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(m==null?void 0:m.public)===2?"\u5DF2\u516C\u5F00":(m==null?void 0:m.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",A,"\u3002"),E.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),E.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(m==null?void 0:m.shixun_status)===2?(T.a.confirm({centered:!0,icon:E.a.createElement(b.a,null),title:"\u63D0\u793A",content:E.a.createElement("div",null,E.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",A,"\u3002"),E.a.createElement("br",null),E.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){T.a.confirm({width:440,centered:!0,icon:E.a.createElement(b.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var N=Object(R.a)(M.a.mark(function G(){var W;return M.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,d({type:"shixunsDetail/cancelRelease",payload:{id:m==null?void 0:m.identifier}});case 2:W=Y.sent,W.status!==401&&(F.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),d({type:"shixunsDetail/getShixunsDetail",payload:{id:m==null?void 0:m.identifier}}),d({type:"practiceSetting/getCommonData",payload:{id:m==null?void 0:m.identifier}}));case 4:case"end":return Y.stop()}},G)}));function B(){return N.apply(this,arguments)}return B}()})}}),!0):!1}},NohK:function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.default=void 0;var X=function(R){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,T=null;return function(){for(var S=this,M=arguments.length,c=new Array(M),E=0;E=0;v-=1){var a=c.get(v)||new Set;a.forEach(function(t){var s=t.parent,h=t.node;if(g(h)||!t.parent||p.has(t.parent.key))return;if(g(t.parent.node)){p.add(s.key);return}var y=!0,D=!1;(s.children||[]).filter(function(C){return!g(C.node)}).forEach(function(C){var I=C.key,_=r.has(I);y&&!_&&(y=!1),!D&&(_||l.has(I))&&(D=!0)}),y&&r.add(s.key),D&&l.add(s.key),p.add(s.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(F(l,r))}}function T(M,c,E,g,r){for(var l=new Set(M),b=new Set(c),u=0;u<=g;u+=1){var p=E.get(u)||new Set;p.forEach(function(s){var h=s.key,y=s.node,D=s.children,C=D===void 0?[]:D;!l.has(h)&&!b.has(h)&&!r(y)&&C.filter(function(I){return!r(I.node)}).forEach(function(I){l.delete(I.key)})})}b=new Set;for(var v=new Set,a=g;a>=0;a-=1){var t=E.get(a)||new Set;t.forEach(function(s){var h=s.parent,y=s.node;if(r(y)||!s.parent||v.has(s.parent.key))return;if(r(s.parent.node)){v.add(h.key);return}var D=!0,C=!1;(h.children||[]).filter(function(I){return!r(I.node)}).forEach(function(I){var _=I.key,f=l.has(_);D&&!f&&(D=!1),!C&&(f||b.has(_))&&(C=!0)}),D||l.delete(h.key),C&&b.add(h.key),v.add(h.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(F(b,l))}}function S(M,c,E,g){var r=[],l;g?l=g:l=R;var b=new Set(M.filter(function(a){var t=!!E[a];return t||r.push(a),t})),u=new Map,p=0;Object.keys(E).forEach(function(a){var t=E[a],s=t.level,h=u.get(s);h||(h=new Set,u.set(s,h)),h.add(t),p=Math.max(p,s)}),Object(X.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var v;return c===!0?v=j(b,u,p,l):v=T(b,c.halfCheckedKeys,u,p,l),v}},OLES:function(ze,te,P){"use strict";var X=P("U8pU"),F=P("VTBJ"),R=P("Ff2n"),j=P("q1tI"),T=P("uciX"),S=P("7ixt"),M=function(b){var u=b.overlay,p=b.prefixCls,v=b.id,a=b.overlayInnerStyle;return j.createElement("div",{className:"".concat(p,"-inner"),id:v,role:"tooltip",style:a},typeof u=="function"?u():u)},c=M,E=function(b,u){var p=b.overlayClassName,v=b.trigger,a=v===void 0?["hover"]:v,t=b.mouseEnterDelay,s=t===void 0?0:t,h=b.mouseLeaveDelay,y=h===void 0?.1:h,D=b.overlayStyle,C=b.prefixCls,I=C===void 0?"rc-tooltip":C,_=b.children,f=b.onVisibleChange,o=b.afterVisibleChange,i=b.transitionName,d=b.animation,A=b.placement,O=A===void 0?"right":A,m=b.align,k=m===void 0?{}:m,N=b.destroyTooltipOnHide,B=N===void 0?!1:N,G=b.defaultVisible,W=b.getTooltipContainer,z=b.overlayInnerStyle,Y=Object(R.a)(b,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),V=Object(j.useRef)(null);Object(j.useImperativeHandle)(u,function(){return V.current});var q=Object(F.a)({},Y);"visible"in b&&(q.popupVisible=b.visible);var ne=function(){var Re=b.arrowContent,ge=Re===void 0?null:Re,fe=b.overlay,Ze=b.id;return[j.createElement("div",{className:"".concat(I,"-arrow"),key:"arrow"},ge),j.createElement(c,{key:"content",prefixCls:I,id:Ze,overlay:fe,overlayInnerStyle:z})]},ve=!1,le=!1;if(typeof B=="boolean")ve=B;else if(B&&Object(X.a)(B)==="object"){var be=B.keepParent;ve=be===!0,le=be===!1}return j.createElement(T.a,Object.assign({popupClassName:p,prefixCls:I,popup:ne,action:a,builtinPlacements:S.a,popupPlacement:O,ref:V,popupAlign:k,getPopupContainer:W,onPopupVisibleChange:f,afterPopupVisibleChange:o,popupTransitionName:i,popupAnimation:d,defaultPopupVisible:G,destroyPopupOnHide:ve,autoDestroy:le,mouseLeaveDelay:y,popupStyle:D,mouseEnterDelay:s},q),_)},g=Object(j.forwardRef)(E),r=te.a=g},OS9S:function(ze,te,P){var X=P("bYtY"),F=X.inherits,R=P("Gev7"),j=P("mFDi");function T(c){R.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}T.prototype.incremental=!0,T.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},T.prototype.addDisplayable=function(c,E){E?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},T.prototype.addDisplayables=function(c,E){E=E||!1;for(var g=0;g=0&&_.splice(f,1),_}function r(C,I){var _=C.slice();return _.indexOf(I)===-1&&_.push(I),_}function l(C){return C.split("-")}function b(C,I){return"".concat(C,"-").concat(I)}function u(C){return C&&C.type&&C.type.isTreeNode}function p(C,I){var _=[C],f=I[C];function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(d){var A=d.key,O=d.children;_.push(A),o(O)})}return o(f.children),_}function v(C,I){var _=C.clientY,f=I.selectHandle.getBoundingClientRect(),o=f.top,i=f.bottom,d=f.height,A=Math.max(d*c,E);return _<=o+A?-1:_>=i-A?1:0}function a(C,I){if(!C)return;var _=I.multiple;return _?C.slice():C.length?[C[0]]:C}var t=function(I){return I};function s(C,I){if(!C)return[];var _=I||{},f=_.processProps,o=f===void 0?t:f,i=Array.isArray(C)?C:[C];return i.map(function(d){var A=d.children,O=Object(R.a)(d,["children"]),m=s(A,I);return T.a.createElement(M.a,Object.assign({},o(O)),m)})}function h(C){if(!C)return null;var I;if(Array.isArray(C))I={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(F.a)(C)==="object")I={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(S.a)(!1,"`checkedKeys` is not an array or an object"),null;return I}function y(C,I){var _=new Set;function f(o){if(_.has(o))return;var i=I[o];if(!i)return;_.add(o);var d=i.parent,A=i.node;if(A.disabled)return;d&&f(d.key)}return(C||[]).forEach(function(o){f(o)}),Object(X.a)(_)}function D(C){var I={};return Object.keys(C).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(I[_]=C[_])}),I}},Ot1p:function(ze,te,P){"use strict";var X=P("2qtc"),F=P("kLXV"),R=P("rAM+"),j=P("miYZ"),T=P("tsqr"),S=P("9og8"),M=P("tJVT"),c=P("jrin"),E=P("WmNS"),g=P.n(E),r=P("q1tI"),l=P.n(r),b=P("VrN/"),u=P.n(b),p=P("bdgK"),v=P("p77/"),a=P("Bd2K"),t=P("ELLl"),s=P("19Vz"),h=P("lZu9"),y=P("+NIl"),D=P("kSUc"),C=P("9Bee"),I=function(Ue){var Mt=Ue.value,tn=Mt===void 0?"":Mt,sn=Ue.className,nn=Ue.showTextOnly,rn=Ue.showLines,St=Ue.style,Tt=St===void 0?{}:St,ct=Object(r.useMemo)(function(){return""},[tn]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},_=P("0Owb"),f=P("dejd"),o=P("C+DQ"),i=P("1vsH"),d=P("m3rI"),A=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function O(Ue){var Mt=Ue.onActionCallback,tn=Ue.title,sn=Ue.icon,nn=Ue.actionName,rn=Ue.className,St=rn===void 0?"":rn,Tt=Ue.children;function ct(){Mt(nn)}return l.a.createElement("a",{title:tn,className:St,onClick:ct},l.a.createElement("i",{className:"md-iconfont ".concat(sn)}),Tt)}var m=function(Ue){var Mt=Ue.watch,tn=Ue.showNullButton,sn=Ue.onActionCallback,nn=Ue.fullScreen,rn=Ue.insertTemp,St=Ue.hidetoolBar,Tt=Ue.uuid,ct=Ue.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(i.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(i.D)("_educoder_session"),"&key=").concat(Tt,"&api=").concat(encodeURIComponent(d.a.PROXY_SERVER)));var ye=[].concat(A,[{title:"".concat(Mt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Mt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!St&&ye.map(function(Pe,Pt){return l.a.createElement("li",{key:Pt},Pe.actionName?l.a.createElement(O,Object(_.a)({},Pe,{onActionCallback:sn})):l.a.createElement("span",{className:"v-line"}))}),tn?l.a.createElement("li",null,l.a.createElement(O,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:sn},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,rn&&l.a.createElement("li",null,l.a.createElement(O,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(rn),onActionCallback:sn},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(O,{icon:"".concat(nn?"icon-shrink":"icon-enlarge"),title:nn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:sn})))},k=P("M8RZ"),N=P("+L6B"),B=P("2/Rp"),G=P("y8nQ"),W=P("Vl3Y"),z=P("5NDa"),Y=P("5rEg"),V={labelCol:{span:4},wrapperCol:{span:20}},q=function(Ue){var Mt=Ue.callback,tn=Ue.onCancel;function sn(nn){Mt(nn)}return l.a.createElement(W.a,Object(_.a)({},V,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:sn}),l.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(Y.a,null)),l.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(Y.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(B.a,{type:"ghost",onClick:tn},"\u53D6\u6D88")))},ne=P("7ahc"),ve=P("k1fw"),le=P("HmJG"),be=P("BjJ7"),we=W.a.useForm,Re={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}},fe=function(Ue){var Mt=Ue.callback,tn=Ue.onCancel,sn=we(),nn=Object(M.a)(sn,1),rn=nn[0],St=Object(r.useRef)();function Tt(Pe){Mt(Object(ve.a)(Object(ve.a)({},Pe),{},{name:St.current}))}function ct(Pe,Pt){rn.setFieldsValue({src:"/api/attachments/".concat(Pe.id,"?type=").concat(Pe.content_type),type:Pt.type})}function ye(Pe){var Pt=Pe.target.files[0];St.current=Pt.name,Ot(Pt,ct)}return l.a.createElement(W.a,Object(_.a)({form:rn},ge,{className:"upload-image-panel",onFinish:Tt}),l.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(W.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},l.a.createElement(Y.a,{style:Re})),l.a.createElement(Ze,{onFileChange:ye}))),l.a.createElement(W.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},l.a.createElement(Y.a,{style:{width:264}})),l.a.createElement(W.a.Item,{style:{textAlign:"right"}},l.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(B.a,{type:"ghost",onClick:tn},"\u53D6\u6D88")))};function Ze(Ue){var Mt=Ue.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:Mt}))}function Ot(Ue,Mt){if(!Ue)throw new String("\u6CA1\u6709\u6587\u4EF6");var tn=new FormData;tn.append("editormd-image-file",Ue),tn.append("file_param_name","editormd-image-file"),tn.append("byxhr","true");var sn=new window.XMLHttpRequest;sn.withCredentials=!0,sn.addEventListener("load",function(nn){Mt(JSON.parse(nn.target.responseText),Ue)},!1),sn.addEventListener("error",function(nn){console.error(nn)},!1),sn.open("POST","".concat(be.a,"/api/attachments.json")),sn.send(tn)}var Ee=P("giR+"),ke=P("fyUT"),de=P("7Kak"),me=P("9yH6"),Le=me.a.Group,rt={margin:"0 8px"},Oe=function(Ue){var Mt=Ue.callback,tn=Ue.onCancel;function sn(nn){Mt(nn)}return l.a.createElement(W.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:sn},l.a.createElement("div",{className:"flex-container"},l.a.createElement("span",{style:rt},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:rt},"\u884C\u6570"),l.a.createElement(W.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(ke.a,null)),l.a.createElement("span",{style:rt},"\u5217\u6570"),l.a.createElement(W.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(ke.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12}},l.a.createElement("span",{style:rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(W.a.Item,{name:"align"},l.a.createElement(Le,null,l.a.createElement(me.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(me.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(me.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(me.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(B.a,{type:"ghost",onClick:tn},"\u53D6\u6D88")))},Ge=P("ErOA"),at=P("7Cbv"),dt="link",Rt="upload-image",bt="code-block",Kt="add-table",Lt="------------",on={default:Lt,left:":".concat(Lt),center:":".concat(Lt,":"),right:"".concat(Lt,":")},un=P("9VGf"),Ie,De;function ot(){}var Et=0,Je=1e4,ft="\u2581",Me=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function xe(Ue){return/^\d+$/.test(Ue)?"".concat(Ue,"px"):Ue}var Te=navigator.platform.toUpperCase().indexOf("MAC")>=0,oe=Te?"Cmd":"Ctrl",ue=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],pe=(Ie={},Object(c.a)(Ie,oe+"-B","bold"),Object(c.a)(Ie,oe+"-I","italic"),Ie),_e=(De={},Object(c.a)(De,dt,"\u6DFB\u52A0\u94FE\u63A5"),Object(c.a)(De,bt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(c.a)(De,Pt,"\u6DFB\u52A0\u6587\u4EF6"),Object(c.a)(De,zt,"\u6DFB\u52A0\u8868\u683C"),De),Ye=te.a=function(Ue){var Mt=Ue.defaultValue,tn=Mt===void 0?"":Mt,sn=Ue.onChange,nn=Ue.width,rn=nn===void 0?"100%":nn,St=Ue.height,Tt=St===void 0?400:St,ct=Ue.miniToolbar,ye=ct===void 0?!1:ct,Pe=Ue.isFocus,Lt=Pe===void 0?!1:Pe,pt=Ue.watch,en=Ue.insertTemp,an=Ue.mode,st=an===void 0?"markdown":an,xt=Ue.id,Ut=xt===void 0?"markdown-editor-id":xt,gn=Ue.showResizeBar,Mn=gn===void 0?!1:gn,cr=Ue.noStorage,gr=cr===void 0?!1:cr,or=Ue.showNullButton,kn=or===void 0?!1:or,Fr=Ue.hidetoolBar,ea=Fr===void 0?!1:Fr,Mr=Ue.fullScreen,pr=Mr===void 0?!1:Mr,Nr=Ue.onBlur,ta=Ue.onCMBeforeChange,ca=Ue.onFullScreen,Zt=Ue.className,In=Zt===void 0?"":Zt,hr=Ue.disablePaste,Or=hr===void 0?!1:hr,_r=Ue.placeholder,Sr=_r===void 0?"":_r,J=Ue.values,U=J===void 0?"":J,H=Object(r.useState)(null),$=Object(M.a)(H,2),re=$[0],ee=$[1],Qe=Object(r.useState)(tn),cn=Object(M.a)(Qe,2),Dn=cn[0],Wn=cn[1],fn=Object(r.useState)(pt),tr=Object(M.a)(fn,2),nr=tr[0],jr=tr[1],ua=Object(r.useState)(pr),va=Object(M.a)(ua,2),zr=va[0],zn=va[1],_n=Object(r.useState)(""),yn=Object(M.a)(_n,2),Hn=yn[0],mr=yn[1],Xn=Object(r.useState)(0),Vn=Object(M.a)(Xn,2),Kn=Vn[0],lr=Vn[1],Yn=Object(r.useState)(Tt),Jn=Object(M.a)(Yn,2),fr=Jn[0],Q=Jn[1],Se=Object(r.useState)(!1),We=Object(M.a)(Se,2),Xe=We[0],ut=We[1],Ke=Object(r.useRef)(Object(at.a)()),lt=Object(r.useRef)(!1),mt=Object(r.useRef)(),ht=Object(r.useRef)(),_t=Object(r.useRef)(),$t=Object(r.useRef)(),Nt=Object(r.useRef)(),vt=function(){var ln=Object(S.a)(g.a.mark(function Qt(){var Vt,et;return g.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,Object(Ge.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ke.current}});case 2:et=Ht.sent,et!=null&&(Vt=et.attachments)!==null&&Vt!==void 0&&Vt.length&&(console.log("cm:",re,ht),et.attachments.map(function(Ct){Ct.content_type.indexOf("image")>-1?re.replaceSelection("![,](/api/attachments/".concat(Ct.id,"?type=").concat(Ct.content_type,")")):Ct.content_type.indexOf("video")>-1?re.replaceSelection('')):Ct.content_type.indexOf("pdf")>-1?re.replaceSelection('
                  ').concat(Ct.name,"")):re.replaceSelection("[".concat(Ct.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Ct.id,"?type=").concat(Ct.content_type,")"))}));case 4:case"end":return Ht.stop()}},Qt)}));return function(){return ln.apply(this,arguments)}}();Object(r.useEffect)(function(){Wn(U),re==null||re.setValue(U)},[U]),Object(r.useEffect)(function(){ca==null||ca(zr)},[zr]),Object(r.useEffect)(function(){if(ht.current){var ln=u.a.fromTextArea(ht.current,{mode:st,lineNumbers:!ye,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});Lt&&ln.focus();function Qt(Vt,et){if(Or){et.preventDefault();return}var Ve=et.clipboardData;if(Ve){var Ht=Ve.types.toString(),Ct=Ve.items;if(Ht==="Files"||Ve.types.indexOf("Files")>-1){if(et.preventDefault(),st=="stex")return;try{var Xt,Ft=Ct[1];((Xt=Ct[0])===null||Xt===void 0?void 0:Xt.kind)==="file"&&(Ft=Ct[0]);var On=Ft.getAsFile(),Ln=On.name.split(".").pop();Ot(On,function(qt){if(qt.id){var An,Pn,qn;(On==null||((An=On.type)===null||An===void 0)?void 0:An.indexOf("image"))>-1?ln.replaceSelection("![,](/api/attachments/".concat(qt.id,"?type=").concat(qt.content_type,")")):(On==null||((Pn=On.type)===null||Pn===void 0)?void 0:Pn.indexOf("video"))>-1?ln.replaceSelection('')):(On==null||((qn=On.type)===null||qn===void 0)?void 0:qn.indexOf("pdf"))>-1?ln.replaceSelection('').concat(On.name,"")):ue.includes(Ln)?ln.replaceSelection('').concat(On.name,"")):ln.replaceSelection("[".concat(On.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(qt.id,"?type=").concat(qt.content_type,")"))}else(qt==null?void 0:qt.status)===401&&(document.location.href="/user/login")})}catch(qt){T.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return ln.on("paste",Qt),ln.on("dragleave",function(Vt,et){_t.current.classList.remove("mouse-hover-md")}),ln.on("dragover",function(Vt,et){_t.current.classList.add("mouse-hover-md")}),ln.on("drop",function(Vt,et){_t.current.classList.add("mouse-hover-md");var Ve;if(Ve=et.dataTransfer.files,Ve.length>0){et.preventDefault(),et.stopPropagation();for(var Ht=function(Ft){var On=Ve[Ft],Ln=On.name.split(".").pop();Ot(On,function(qt){if(qt.id){var An,Pn,qn;(On==null||((An=On.type)===null||An===void 0)?void 0:An.indexOf("image"))>-1?ln.replaceSelection("![,](/api/attachments/".concat(qt.id,"?type=").concat(qt.content_type,")")):(On==null||((Pn=On.type)===null||Pn===void 0)?void 0:Pn.indexOf("video"))>-1?ln.replaceSelection('')):(On==null||((qn=On.type)===null||qn===void 0)?void 0:qn.indexOf("pdf"))>-1?ln.replaceSelection('').concat(On.name,"")):ue.includes(Ln)?ln.replaceSelection('').concat(On.name,"")):ln.replaceSelection("[".concat(On.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(qt.id,"?type=").concat(qt.content_type,")"))}else(qt==null?void 0:qt.status)===401&&(document.location.href="/user/login")})},Ct=0;Ct0||Ct.target.offsetWidth>0)&&(nt(),re.setSize("100%","100%"),re.refresh())}}catch(Xt){Ve.e(Xt)}finally{Ve.f()}});return Vt.observe(ht.current.parentElement),Vt}if(re){var Qt=ln();return function(){Qt.unobserve(ht.current.parentElement)}}},[re,nt]),Object(r.useEffect)(function(){if(re){for(var ln=[],Qt=function(){var Ct=et[Vt];Ve=Object(M.a)(Ct,2);var Xt=Ve[0],Ft=Ve[1],On=Object(c.a)({},Xt,function(){Dt(Ft)});ln.push(On),re.addKeyMap(On)},Vt=0,et=Object.entries(pe);Vt0){var ln=new Date().getTime(),Qt=window.sessionStorage.getItem(Ut);ln>=Kn+Je&&(!Qt||Qt!==Dn)&&(window.sessionStorage.setItem(Ut,Dn),ut(!0))}},Je),Object(r.useEffect)(function(){jr(pt)},[re,pt]),Object(r.useEffect)(function(){re&&(Lt&&re.focus())},[re,Lt]),Object(r.useEffect)(function(){if(nr&&re){var ln=re.getScrollerElement();function Qt(Vt){var et=Vt.target;if(Nt.current){var Ve=et.scrollTop/et.scrollHeight;Nt.current.scrollTop=Nt.current.scrollHeight*Ve}}return ln.addEventListener("scroll",Qt),function(){ln.removeEventListener("scroll",Qt)}}},[re,nr]),Object(r.useEffect)(function(){if(re&&ta){function ln(Qt,Vt){ta(Qt,Vt)}return re.on("beforeChange",ln),function(){re.off("beforeChange",ln)}}},[re,ta]),Object(r.useEffect)(function(){if(re&&Nr){function ln(){Nr(re.getValue())}return re.on("blur",ln),function(){re.off("blur",ln)}}},[re,Nr]),Object(r.useEffect)(function(){if(re){function ln(Qt){var Vt=Qt.getValue();Wn(Vt),lr(new Date().getTime()),Qt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),sn&&sn(Vt)}return re.on("change",ln),function(){re.off("change",ln)}}},[re,sn]),Object(r.useEffect)(function(){re&&(tn==null?(re.setValue(""),Wn("")):tn!==re.getValue()&&(re.setValue(tn),Wn(tn),re.setCursor(re.lineCount(),0)))},[re,tn]);var Dt=Object(r.useCallback)(function(ln){var Qt=re.getCursor(),Vt=re.getSelection(),et=Vt.split(` -`);switch(ln){case"bold":return re.replaceSelection("**"+Vt+"**"),Vt===""&&re.setCursor(Qt.line,Qt.ch+2),re.focus();case"italic":return re.replaceSelection("*"+Vt+"*"),Vt===""&&re.setCursor(Qt.line,Qt.ch+1),re.focus();case"code":return re.replaceSelection("`"+Vt+"`"),Vt===""&&re.setCursor(Qt.line,Qt.ch+1),re.focus();case"inline-latex":return re.replaceSelection("`$$"+Vt+"$$`"),Vt===""&&re.setCursor(Qt.line,Qt.ch+3),re.focus();case"latex":return re.replaceSelection("```latex\n"+Vt+"\n```"),re.setCursor(Qt.line+1,Vt.length+1),re.focus();case"line-break":return re.replaceSelection(`
                  -`),re.focus();case"list-ul":return Vt===""?re.replaceSelection("- "+Vt):re.replaceSelection(et.map(function(Ve){return Ve===""?"":"- ".concat(Ve)}).join(` -`)),re.focus();case"list-ol":return Vt===""?re.replaceSelection("1. "+Vt):re.replaceSelection(et.map(function(Ve,Ht){return Ve===""?"":"".concat(Ht+1,". ").concat(Ve)}).join(` -`)),re.focus();case"add-null-ch":return Vt===""&&re.setCursor(Qt.line,Qt.ch+1),re.replaceSelection(ft),re.focus();case"inster-template-1":return Vt===""&&re.setCursor(Qt.line,Qt.ch),re.replaceSelection(Me),re.focus();case"eraser":return re.setValue(""),re.focus();case"trigger-watch":return jr(!nr),re.focus();case"trigger-full-screen":return zn(!zr),re.focus();case dt:mr(dt);return;case bt:mr(bt);return;case Pt:mr(Pt);return;case zt:mr(zt);return;default:throw new Error}},[re,nr,zr]),Gt=Object(r.useCallback)(function(ln){mr("");switch(Hn){case dt:var Qt=ln.title,Vt=ln.link;return re.replaceSelection("[".concat(Qt,"](").concat(Vt,")")),re.focus();case bt:var et=ln.language,Ve=ln.content;return re.replaceSelection(["```"+et,Ve,"```"].join(` -`)),re.focus();case Pt:var Ht=ln.src,Ct=ln.alt,Xt=ln.name;return Ht.indexOf("type=image")>-1?re.replaceSelection("![ ".concat(Ct||""," ]( ").concat(Ht,' "').concat(Ct||"",'" )')):Ht.indexOf("type=application/pdf")>-1?re.replaceSelection('').concat(Xt,"")):re.replaceSelection('').concat(Xt,"")),re.focus();case zt:for(var Ft=ln.row,On=ln.col,Ln=ln.align,qt=` -`,An=0;An=0,oe=Te?"Cmd":"Ctrl",ue=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],pe=(Ie={},Object(c.a)(Ie,oe+"-B","bold"),Object(c.a)(Ie,oe+"-I","italic"),Ie),_e=(De={},Object(c.a)(De,dt,"\u6DFB\u52A0\u94FE\u63A5"),Object(c.a)(De,bt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(c.a)(De,Rt,"\u6DFB\u52A0\u6587\u4EF6"),Object(c.a)(De,Kt,"\u6DFB\u52A0\u8868\u683C"),De),Ye=te.a=function(Ue){var Mt=Ue.defaultValue,tn=Mt===void 0?"":Mt,sn=Ue.onChange,nn=Ue.width,rn=nn===void 0?"100%":nn,St=Ue.height,Tt=St===void 0?400:St,ct=Ue.miniToolbar,ye=ct===void 0?!1:ct,Pe=Ue.isFocus,Pt=Pe===void 0?!1:Pe,pt=Ue.watch,en=Ue.insertTemp,an=Ue.mode,st=an===void 0?"markdown":an,xt=Ue.id,Nt=xt===void 0?"markdown-editor-id":xt,yn=Ue.showResizeBar,Mn=yn===void 0?!1:yn,hr=Ue.noStorage,yr=hr===void 0?!1:hr,lr=Ue.showNullButton,kn=lr===void 0?!1:lr,Wr=Ue.hidetoolBar,ea=Wr===void 0?!1:Wr,Pr=Ue.fullScreen,mr=Pr===void 0?!1:Pr,Fr=Ue.onBlur,ta=Ue.onCMBeforeChange,ca=Ue.onFullScreen,Zt=Ue.className,In=Zt===void 0?"":Zt,fr=Ue.disablePaste,Dr=fr===void 0?!1:fr,Cr=Ue.placeholder,wr=Cr===void 0?"":Cr,J=Ue.values,U=J===void 0?"":J,H=Object(r.useState)(null),$=Object(M.a)(H,2),re=$[0],ee=$[1],Qe=Object(r.useState)(tn),dn=Object(M.a)(Qe,2),On=dn[0],Wn=dn[1],pn=Object(r.useState)(pt),er=Object(M.a)(pn,2),tr=er[0],Br=er[1],ua=Object(r.useState)(mr),va=Object(M.a)(ua,2),Gr=va[0],zn=va[1],_n=Object(r.useState)(""),bn=Object(M.a)(_n,2),Hn=bn[0],vr=bn[1],Xn=Object(r.useState)(0),Vn=Object(M.a)(Xn,2),Gn=Vn[0],dr=Vn[1],Yn=Object(r.useState)(Tt),Qn=Object(M.a)(Yn,2),pr=Qn[0],Q=Qn[1],Se=Object(r.useState)(!1),We=Object(M.a)(Se,2),Ve=We[0],ut=We[1],Ke=Object(r.useRef)(Object(at.a)()),lt=Object(r.useRef)(!1),mt=Object(r.useRef)(),ht=Object(r.useRef)(),_t=Object(r.useRef)(),$t=Object(r.useRef)(),kt=Object(r.useRef)(),vt=function(){var cn=Object(S.a)(g.a.mark(function Qt(){var Vt,tt;return g.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,Object(Ge.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ke.current}});case 2:tt=Ft.sent,tt!=null&&(Vt=tt.attachments)!==null&&Vt!==void 0&&Vt.length&&(console.log("cm:",re,ht),tt.attachments.map(function(Ct){Ct.content_type.indexOf("image")>-1?re.replaceSelection("![,](/api/attachments/".concat(Ct.id,"?type=").concat(Ct.content_type,")")):Ct.content_type.indexOf("video")>-1?re.replaceSelection('')):Ct.content_type.indexOf("pdf")>-1?re.replaceSelection('').concat(Ct.name,"")):re.replaceSelection("[".concat(Ct.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Ct.id,"?type=").concat(Ct.content_type,")"))}));case 4:case"end":return Ft.stop()}},Qt)}));return function(){return cn.apply(this,arguments)}}();Object(r.useEffect)(function(){Wn(U),re==null||re.setValue(U)},[U]),Object(r.useEffect)(function(){ca==null||ca(Gr)},[Gr]),Object(r.useEffect)(function(){if(ht.current){var cn=u.a.fromTextArea(ht.current,{mode:st,lineNumbers:!ye,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});Pt&&cn.focus();function Qt(Vt,tt){if(Dr){tt.preventDefault();return}var Xe=tt.clipboardData;if(Xe){var Ft=Xe.types.toString(),Ct=Xe.items;if(Ft==="Files"||Xe.types.indexOf("Files")>-1){if(tt.preventDefault(),st=="stex")return;try{var Xt,jt=Ct[1];((Xt=Ct[0])===null||Xt===void 0?void 0:Xt.kind)==="file"&&(jt=Ct[0]);var Tn=jt.getAsFile(),Ln=Tn.name.split(".").pop();Ot(Tn,function(qt){if(qt.id){var Dn,Pn,Zn;(Tn==null||((Dn=Tn.type)===null||Dn===void 0)?void 0:Dn.indexOf("image"))>-1?cn.replaceSelection("![,](/api/attachments/".concat(qt.id,"?type=").concat(qt.content_type,")")):(Tn==null||((Pn=Tn.type)===null||Pn===void 0)?void 0:Pn.indexOf("video"))>-1?cn.replaceSelection('')):(Tn==null||((Zn=Tn.type)===null||Zn===void 0)?void 0:Zn.indexOf("pdf"))>-1?cn.replaceSelection('').concat(Tn.name,"")):ue.includes(Ln)?cn.replaceSelection('').concat(Tn.name,"")):cn.replaceSelection("[".concat(Tn.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(qt.id,"?type=").concat(qt.content_type,")"))}else(qt==null?void 0:qt.status)===401&&(document.location.href="/user/login")})}catch(qt){T.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return cn.on("paste",Qt),cn.on("dragleave",function(Vt,tt){_t.current.classList.remove("mouse-hover-md")}),cn.on("dragover",function(Vt,tt){_t.current.classList.add("mouse-hover-md")}),cn.on("drop",function(Vt,tt){_t.current.classList.add("mouse-hover-md");var Xe;if(Xe=tt.dataTransfer.files,Xe.length>0){tt.preventDefault(),tt.stopPropagation();for(var Ft=function(jt){var Tn=Xe[jt],Ln=Tn.name.split(".").pop();Ot(Tn,function(qt){if(qt.id){var Dn,Pn,Zn;(Tn==null||((Dn=Tn.type)===null||Dn===void 0)?void 0:Dn.indexOf("image"))>-1?cn.replaceSelection("![,](/api/attachments/".concat(qt.id,"?type=").concat(qt.content_type,")")):(Tn==null||((Pn=Tn.type)===null||Pn===void 0)?void 0:Pn.indexOf("video"))>-1?cn.replaceSelection('')):(Tn==null||((Zn=Tn.type)===null||Zn===void 0)?void 0:Zn.indexOf("pdf"))>-1?cn.replaceSelection('').concat(Tn.name,"")):ue.includes(Ln)?cn.replaceSelection('').concat(Tn.name,"")):cn.replaceSelection("[".concat(Tn.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(qt.id,"?type=").concat(qt.content_type,")"))}else(qt==null?void 0:qt.status)===401&&(document.location.href="/user/login")})},Ct=0;Ct0||Ct.target.offsetWidth>0)&&(et(),re.setSize("100%","100%"),re.refresh())}}catch(Xt){Xe.e(Xt)}finally{Xe.f()}});return Vt.observe(ht.current.parentElement),Vt}if(re){var Qt=cn();return function(){Qt.unobserve(ht.current.parentElement)}}},[re,et]),Object(r.useEffect)(function(){if(re){for(var cn=[],Qt=function(){var Ct=tt[Vt];Xe=Object(M.a)(Ct,2);var Xt=Xe[0],jt=Xe[1],Tn=Object(c.a)({},Xt,function(){Dt(jt)});cn.push(Tn),re.addKeyMap(Tn)},Vt=0,tt=Object.entries(pe);Vt0){var cn=new Date().getTime(),Qt=window.sessionStorage.getItem(Nt);cn>=Gn+Je&&(!Qt||Qt!==On)&&(window.sessionStorage.setItem(Nt,On),ut(!0))}},Je),Object(r.useEffect)(function(){Br(pt)},[re,pt]),Object(r.useEffect)(function(){re&&(Pt&&re.focus())},[re,Pt]),Object(r.useEffect)(function(){if(tr&&re){var cn=re.getScrollerElement();function Qt(Vt){var tt=Vt.target;if(kt.current){var Xe=tt.scrollTop/tt.scrollHeight;kt.current.scrollTop=kt.current.scrollHeight*Xe}}return cn.addEventListener("scroll",Qt),function(){cn.removeEventListener("scroll",Qt)}}},[re,tr]),Object(r.useEffect)(function(){if(re&&ta){function cn(Qt,Vt){ta(Qt,Vt)}return re.on("beforeChange",cn),function(){re.off("beforeChange",cn)}}},[re,ta]),Object(r.useEffect)(function(){if(re&&Fr){function cn(){Fr(re.getValue())}return re.on("blur",cn),function(){re.off("blur",cn)}}},[re,Fr]),Object(r.useEffect)(function(){if(re){function cn(Qt){var Vt=Qt.getValue();Wn(Vt),dr(new Date().getTime()),Qt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),sn&&sn(Vt)}return re.on("change",cn),function(){re.off("change",cn)}}},[re,sn]),Object(r.useEffect)(function(){re&&(tn==null?(re.setValue(""),Wn("")):tn!==re.getValue()&&(re.setValue(tn),Wn(tn),re.setCursor(re.lineCount(),0)))},[re,tn]);var Dt=Object(r.useCallback)(function(cn){var Qt=re.getCursor(),Vt=re.getSelection(),tt=Vt.split(` +`);switch(cn){case"bold":return re.replaceSelection("**"+Vt+"**"),Vt===""&&re.setCursor(Qt.line,Qt.ch+2),re.focus();case"italic":return re.replaceSelection("*"+Vt+"*"),Vt===""&&re.setCursor(Qt.line,Qt.ch+1),re.focus();case"code":return re.replaceSelection("`"+Vt+"`"),Vt===""&&re.setCursor(Qt.line,Qt.ch+1),re.focus();case"inline-latex":return re.replaceSelection("`$$"+Vt+"$$`"),Vt===""&&re.setCursor(Qt.line,Qt.ch+3),re.focus();case"latex":return re.replaceSelection("```latex\n"+Vt+"\n```"),re.setCursor(Qt.line+1,Vt.length+1),re.focus();case"line-break":return re.replaceSelection(`
                  +`),re.focus();case"list-ul":return Vt===""?re.replaceSelection("- "+Vt):re.replaceSelection(tt.map(function(Xe){return Xe===""?"":"- ".concat(Xe)}).join(` +`)),re.focus();case"list-ol":return Vt===""?re.replaceSelection("1. "+Vt):re.replaceSelection(tt.map(function(Xe,Ft){return Xe===""?"":"".concat(Ft+1,". ").concat(Xe)}).join(` +`)),re.focus();case"add-null-ch":return Vt===""&&re.setCursor(Qt.line,Qt.ch+1),re.replaceSelection(ft),re.focus();case"inster-template-1":return Vt===""&&re.setCursor(Qt.line,Qt.ch),re.replaceSelection(Me),re.focus();case"eraser":return re.setValue(""),re.focus();case"trigger-watch":return Br(!tr),re.focus();case"trigger-full-screen":return zn(!Gr),re.focus();case dt:vr(dt);return;case bt:vr(bt);return;case Rt:vr(Rt);return;case Kt:vr(Kt);return;default:throw new Error}},[re,tr,Gr]),Gt=Object(r.useCallback)(function(cn){vr("");switch(Hn){case dt:var Qt=cn.title,Vt=cn.link;return re.replaceSelection("[".concat(Qt,"](").concat(Vt,")")),re.focus();case bt:var tt=cn.language,Xe=cn.content;return re.replaceSelection(["```"+tt,Xe,"```"].join(` +`)),re.focus();case Rt:var Ft=cn.src,Ct=cn.alt,Xt=cn.name;return Ft.indexOf("type=image")>-1?re.replaceSelection("![ ".concat(Ct||""," ]( ").concat(Ft,' "').concat(Ct||"",'" )')):Ft.indexOf("type=application/pdf")>-1?re.replaceSelection('').concat(Xt,"")):re.replaceSelection('').concat(Xt,"")),re.focus();case Kt:for(var jt=cn.row,Tn=cn.col,Ln=cn.align,qt=` +`,Dn=0;Dn300&&(Xt=300);var Ft=Tt+Xt+"px";Q(Ft)}}return ln.addEventListener("mousedown",et),document.addEventListener("mousemove",Ht),document.addEventListener("mouseup",Ve),function(){ln.removeEventListener("mousedown",et),document.removeEventListener("mousemove",Ht),document.removeEventListener("mouseup",Ve)}}},[re,$t]),Object(r.useEffect)(function(){Q(Tt)},[Tt]);var bn=xe(rn),En=xe(fr),Zn={width:bn,height:En},jt=Object(r.useMemo)(function(){if(Kn){var ln=new Date(Kn),Qt=ln.getHours(),Vt=ln.getMinutes(),et=ln.getSeconds();return Qt=Qt<10?"0"+Qt:Qt,Vt=Vt<10?"0"+Vt:Vt,et=et<10?"0"+et:et,"".concat(Qt,":").concat(Vt,":").concat(et)}return 0},[Kn]);function Wt(){window.sessionStorage.removeItem(Ut),ut(!1),lr(0)}function vn(){ut(!1),lr(0),re.setValue(window.sessionStorage.getItem(Ut))}function Kt(ln,Qt){var Vt=re.getValue();Vt=Vt.replace(ln,Qt),Wn(Vt),re==null||re.setValue(Vt)}return l.a.createElement(r.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:_t},l.a.createElement("div",{className:"markdown-editor-container ".concat(In," ").concat(nr?"on-preview":""," ").concat(ye?"mini":""," ").concat(zr?"full-screen":""),style:Zn},l.a.createElement(m,{insertTemp:en,watch:nr,fullScreen:zr,showNullButton:kn,onActionCallback:Dt,hidetoolBar:ea,uuid:Ke.current,setOpenPhones:function(){lt.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:ht,placeholder:Sr})),nr?l.a.createElement("div",{ref:Nt,className:"preview-container"},st==="stex"&&l.a.createElement(I,{value:Dn}),st!=="stex"&&l.a.createElement(C.a,{edit:!0,value:Dn,replaces:Kt})):null))),Mn?l.a.createElement("a",{ref:$t,className:"editor-resize"}):null,l.a.createElement(k.a,null,_e[Hn]?l.a.createElement(F.a,{centered:!0,title:_e[Hn],visible:!0,onCancel:wt,footer:null},Yt):null))}},P47w:function(ze,te,P){var X=P("hydK"),F=X.createElement,R=P("IMiH"),j=P("mFDi"),T=P("Fofx"),S=P("6GrX"),M=P("pzxd"),c=P("dqUG"),E=R.CMD,g=Array.prototype.join,r="none",l=Math.round,b=Math.sin,u=Math.cos,p=Math.PI,v=Math.PI*2,a=180/p,t=1e-4;function s(V){return l(V*1e4)/1e4}function h(V){return V-t}function y(V,q){var ne=q?V.textFill:V.fill;return ne!=null&&ne!==r}function D(V,q){var ne=q?V.textStroke:V.stroke;return ne!=null&&ne!==r}function C(V,q){q&&I(V,"transform","matrix("+g.call(q,",")+")")}function I(V,q,ne){(!ne||ne.type!=="linear"&&ne.type!=="radial")&&V.setAttribute(q,ne)}function _(V,q,ne){V.setAttributeNS("http://www.w3.org/1999/xlink",q,ne)}function f(V,q,ne,ve){if(y(q,ne)){var le=ne?q.textFill:q.fill;le=le==="transparent"?r:le,I(V,"fill",le),I(V,"fill-opacity",q.fillOpacity!=null?q.fillOpacity*q.opacity:q.opacity)}else I(V,"fill",r);if(D(q,ne)){var be=ne?q.textStroke:q.stroke;be=be==="transparent"?r:be,I(V,"stroke",be);var we=ne?q.textStrokeWidth:q.lineWidth,Re=!ne&&q.strokeNoScale?ve.getLineScale():1;I(V,"stroke-width",we/Re),I(V,"paint-order",ne?"stroke":"fill"),I(V,"stroke-opacity",q.strokeOpacity!=null?q.strokeOpacity:q.opacity);var ge=q.lineDash;ge?(I(V,"stroke-dasharray",q.lineDash.join(",")),I(V,"stroke-dashoffset",l(q.lineDashOffset||0))):I(V,"stroke-dasharray",""),q.lineCap&&I(V,"stroke-linecap",q.lineCap),q.lineJoin&&I(V,"stroke-linejoin",q.lineJoin),q.miterLimit&&I(V,"stroke-miterlimit",q.miterLimit)}else I(V,"stroke",r)}function o(V){for(var q=[],ne=V.data,ve=V.len(),le=0;le=v:-ke>=v),Oe=ke>0?ke%v:ke%v+v,Ge=!1;rt?Ge=!0:h(Le)?Ge=!1:Ge=Oe>=p===!!me;var at=s(ge+Ze*u(Ee)),dt=s(fe+Ot*b(Ee));rt&&(me?ke=v-1e-4:ke=-v+1e-4,Ge=!0,le===9&&q.push("M",at,dt));var Pt=s(ge+Ze*u(Ee+ke)),bt=s(fe+Ot*b(Ee+ke));q.push("A",s(Ze),s(Ot),l(de*a),+Ge,+me,Pt,bt);break;case E.Z:we="Z";break;case E.R:var Pt=s(ne[le++]),bt=s(ne[le++]),zt=s(ne[le++]),It=s(ne[le++]);q.push("M",Pt,bt,"L",Pt+zt,bt,"L",Pt+zt,bt+It,"L",Pt,bt+It,"L",Pt,bt);break}we&&q.push(we);for(var on=0;ondn){for(;It0)p.left||(p.left=new S,p.left.segment=u.value()),p=p.left;else if(v<0)p.right||(p.right=new S,p.right.segment=u.value()),p=p.right;else if(u.hasNext())u.next(),p.mid||(p.mid=new S,p.mid.segment=u.value()),p=p.mid;else break}var a=p.value;return p.value=b,p.key=l,a},r.prototype.get=function(l){for(var b=this._iter.reset(l),u=this._root;u;){var p=b.cmp(u.segment);if(p>0)u=u.left;else if(p<0)u=u.right;else if(b.hasNext())b.next(),u=u.mid;else break}return u?u.value:void 0},r.prototype.findSubstr=function(l){for(var b=this._iter.reset(l),u=this._root,p=void 0;u;){var v=b.cmp(u.segment);if(v>0)u=u.left;else if(v<0)u=u.right;else if(b.hasNext())b.next(),p=u.value||p,u=u.mid;else break}return u&&u.value||p},r.prototype.forEach=function(l){this._forEach(this._root,l)},r.prototype._forEach=function(l,b){l&&(this._forEach(l.left,b),l.value&&b(l.value,l.key),this._forEach(l.mid,b),this._forEach(l.right,b))},r}(),c=function(){function r(){this.map=new Map,this.ignoreCase=!1}return r.prototype.set=function(l,b){this.map.set(this.toKey(l),b)},r.prototype.get=function(l){return this.map.get(this.toKey(l))},r.prototype.toKey=function(l){var b=l.toString();return this.ignoreCase&&(b=b.toLowerCase()),b},r}(),E=function(){function r(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return r.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),r.prototype.get=function(l,b){b===void 0&&(b=0);var u=this._map.get(l);return u?(b!==0&&this.touch(u,b),u.value):void 0},r.prototype.set=function(l,b,u){u===void 0&&(u=0);var p=this._map.get(l);if(p)p.value=b,u!==0&&this.touch(p,u);else{p={key:l,value:b,next:void 0,previous:void 0};switch(u){case 0:this.addItemLast(p);break;case 1:this.addItemFirst(p);break;case 2:this.addItemLast(p);break;default:this.addItemLast(p);break}this._map.set(l,p),this._size++}},r.prototype.delete=function(l){return!!this.remove(l)},r.prototype.remove=function(l){var b=this._map.get(l);return b?(this._map.delete(l),this.removeItem(b),this._size--,b.value):void 0},r.prototype.forEach=function(l,b){for(var u=this._head;u;)b?l.bind(b)(u.value,u.key,this):l(u.value,u.key,this),u=u.next},r.prototype.trimOld=function(l){if(l>=this.size)return;if(l===0){this.clear();return}for(var b=this._head,u=this.size;b&&u>l;)this._map.delete(b.key),b=b.next,u--;this._head=b,this._size=u,b&&(b.previous=void 0)},r.prototype.addItemFirst=function(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l},r.prototype.addItemLast=function(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l},r.prototype.removeItem=function(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{var b=l.next,u=l.previous;if(!b||!u)throw new Error("Invalid list");b.previous=u,u.next=b}l.next=void 0,l.previous=void 0},r.prototype.touch=function(l,b){if(!this._head||!this._tail)throw new Error("Invalid list");if(b!==1&&b!==2)return;if(b===1){if(l===this._head)return;var u=l.next,p=l.previous;l===this._tail?(p.next=void 0,this._tail=p):(u.previous=p,p.next=u),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l}else if(b===2){if(l===this._tail)return;var u=l.next,p=l.previous;l===this._head?(u.previous=void 0,this._head=u):(u.previous=p,p.next=u),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l}},r.prototype.toJSON=function(){var l=[];return this.forEach(function(b,u){l.push([u,b])}),l},r}(),g=function(r){X(l,r);function l(b,u){u===void 0&&(u=1);var p=r.call(this)||this;return p._limit=b,p._ratio=Math.min(Math.max(0,u),1),p}return l.prototype.get=function(b){return r.prototype.get.call(this,b,2)},l.prototype.peek=function(b){return r.prototype.get.call(this,b,0)},l.prototype.set=function(b,u){r.prototype.set.call(this,b,u,2),this.checkTrim()},l.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},l}(E)},"QO+J":function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createSensor=void 0;var X=R(P("NohK")),F=P("24YM");function R(T){return T&&T.__esModule?T:{default:T}}var j=function(S){var M=void 0,c=[],E=function(){getComputedStyle(S).position==="static"&&(S.style.position="relative");var p=document.createElement("object");return p.onload=function(){p.contentDocument.defaultView.addEventListener("resize",g),g()},p.style.display="block",p.style.position="absolute",p.style.top="0",p.style.left="0",p.style.height="100%",p.style.width="100%",p.style.overflow="hidden",p.style.pointerEvents="none",p.style.zIndex="-1",p.style.opacity="0",p.setAttribute("class",F.SensorClassName),p.setAttribute("tabindex",F.SensorTabIndex),p.type="text/html",S.appendChild(p),p.data="about:blank",p},g=(0,X.default)(function(){c.forEach(function(u){u(S)})}),r=function(p){M||(M=E()),c.indexOf(p)===-1&&c.push(p)},l=function(){M&&M.parentNode&&(M.contentDocument&&M.contentDocument.defaultView.removeEventListener("resize",g),M.parentNode.removeChild(M),M=void 0,c=[])},b=function(p){var v=c.indexOf(p);v!==-1&&c.splice(v,1),c.length===0&&M&&l()};return{element:S,bind:r,destroy:l,unbind:b}};te.createSensor=j},Qe9p:function(ze,te,P){var X=P("1RvN"),F={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function R(o){return o=Math.round(o),o<0?0:o>255?255:o}function j(o){return o=Math.round(o),o<0?0:o>360?360:o}function T(o){return o<0?0:o>1?1:o}function S(o){return o.length&&o.charAt(o.length-1)==="%"?R(parseFloat(o)/100*255):R(parseInt(o,10))}function M(o){return o.length&&o.charAt(o.length-1)==="%"?T(parseFloat(o)/100):T(parseFloat(o))}function c(o,i,d){return d<0?d+=1:d>1&&(d-=1),d*6<1?o+(i-o)*d*6:d*2<1?i:d*3<2?o+(i-o)*(2/3-d)*6:o}function E(o,i,d){return o+(i-o)*d}function g(o,i,d,A,O){return o[0]=i,o[1]=d,o[2]=A,o[3]=O,o}function r(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o}var l=new X(20),b=null;function u(o,i){b&&r(b,i),b=l.put(o,b||i.slice())}function p(o,i){if(!o)return;i=i||[];var d=l.get(o);if(d)return r(i,d);o=o+"";var A=o.replace(/ /g,"").toLowerCase();if(A in F)return r(i,F[A]),u(o,i),i;if(A.charAt(0)==="#"){if(A.length===4){var O=parseInt(A.substr(1),16);if(!(O>=0&&O<=4095)){g(i,0,0,0,1);return}return g(i,(O&3840)>>4|(O&3840)>>8,O&240|(O&240)>>4,O&15|(O&15)<<4,1),u(o,i),i}else if(A.length===7){var O=parseInt(A.substr(1),16);if(!(O>=0&&O<=16777215)){g(i,0,0,0,1);return}return g(i,(O&16711680)>>16,(O&65280)>>8,O&255,1),u(o,i),i}return}var m=A.indexOf("("),k=A.indexOf(")");if(m!==-1&&k+1===A.length){var N=A.substr(0,m),B=A.substr(m+1,k-(m+1)).split(","),G=1;switch(N){case"rgba":if(B.length!==4){g(i,0,0,0,1);return}G=M(B.pop());case"rgb":if(B.length!==3){g(i,0,0,0,1);return}return g(i,S(B[0]),S(B[1]),S(B[2]),G),u(o,i),i;case"hsla":if(B.length!==4){g(i,0,0,0,1);return}return B[3]=M(B[3]),v(B,i),u(o,i),i;case"hsl":if(B.length!==3){g(i,0,0,0,1);return}return v(B,i),u(o,i),i;default:return}}g(i,0,0,0,1);return}function v(o,i){var d=(parseFloat(o[0])%360+360)%360/360,A=M(o[1]),O=M(o[2]),m=O<=.5?O*(A+1):O+A-O*A,k=O*2-m;return i=i||[],g(i,R(c(k,m,d+1/3)*255),R(c(k,m,d)*255),R(c(k,m,d-1/3)*255),1),o.length===4&&(i[3]=o[3]),i}function a(o){if(!o)return;var i=o[0]/255,d=o[1]/255,A=o[2]/255,O=Math.min(i,d,A),m=Math.max(i,d,A),k=m-O,N=(m+O)/2,B,G;if(k===0)B=0,G=0;else{N<.5?G=k/(m+O):G=k/(2-m-O);var W=((m-i)/6+k/2)/k,z=((m-d)/6+k/2)/k,Y=((m-A)/6+k/2)/k;i===m?B=Y-z:d===m?B=1/3+W-Y:A===m&&(B=2/3+z-W),B<0&&(B+=1),B>1&&(B-=1)}var V=[B*360,G,N];return o[3]!=null&&V.push(o[3]),V}function t(o,i){var d=p(o);if(d){for(var A=0;A<3;A++)i<0?d[A]=d[A]*(1-i)|0:d[A]=(255-d[A])*i+d[A]|0,d[A]>255?d[A]=255:o[A]<0&&(d[A]=0);return f(d,d.length===4?"rgba":"rgb")}}function s(o){var i=p(o);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function h(o,i,d){if(!(i&&i.length)||!(o>=0&&o<=1))return;d=d||[];var A=o*(i.length-1),O=Math.floor(A),m=Math.ceil(A),k=i[O],N=i[m],B=A-O;return d[0]=R(E(k[0],N[0],B)),d[1]=R(E(k[1],N[1],B)),d[2]=R(E(k[2],N[2],B)),d[3]=T(E(k[3],N[3],B)),d}var y=h;function D(o,i,d){if(!(i&&i.length)||!(o>=0&&o<=1))return;var A=o*(i.length-1),O=Math.floor(A),m=Math.ceil(A),k=p(i[O]),N=p(i[m]),B=A-O,G=f([R(E(k[0],N[0],B)),R(E(k[1],N[1],B)),R(E(k[2],N[2],B)),T(E(k[3],N[3],B))],"rgba");return d?{color:G,leftIndex:O,rightIndex:m,value:A}:G}var C=D;function I(o,i,d,A){if(o=p(o),o)return o=a(o),i!=null&&(o[0]=j(i)),d!=null&&(o[1]=M(d)),A!=null&&(o[2]=M(A)),f(v(o),"rgba")}function _(o,i){if(o=p(o),o&&i!=null)return o[3]=T(i),f(o,"rgba")}function f(o,i){if(!o||!o.length)return;var d=o[0]+","+o[1]+","+o[2];return(i==="rgba"||i==="hsva"||i==="hsla")&&(d+=","+o[3]),i+"("+d+")"}te.parse=p,te.lift=t,te.toHex=s,te.fastLerp=h,te.fastMapToColor=y,te.lerp=D,te.mapToColor=C,te.modifyHSL=I,te.modifyAlpha=_,te.stringify=f},QuXc:function(ze,te){var P=function(F){this.colorStops=F||[]};P.prototype={constructor:P,addColorStop:function(F,R){this.colorStops.push({offset:F,color:R})}};var X=P;ze.exports=X},R5GN:function(ze,te,P){"use strict";var X=P("2qtc"),F=P("kLXV"),R=P("g9YV"),j=P("wCAj"),T=P("5NDa"),S=P("5rEg"),M=P("14J3"),c=P("BMrR"),E=P("iQDF"),g=P("+eQT"),r=P("miYZ"),l=P("tsqr"),b=P("jrin"),u=P("oBTY"),p=P("k1fw"),v=P("9og8"),a=P("y8nQ"),t=P("Vl3Y"),s=P("tJVT"),h=P("WmNS"),y=P.n(h),D=P("q1tI"),C=P.n(D),I=P("wd/R"),_=P.n(I),f=P("ErOA"),o=P("1vsH"),i=P("Ty5D"),d=P("9kvl"),A=P("oUNq"),O=P("xKgJ"),m=function(N){var B=N.classroomList,G=N.dispatch,W=Object(i.i)(),z=t.a.useForm(),Y=Object(s.a)(z,1),V=Y[0],q=Object(D.useState)(1),ne=Object(s.a)(q,2),ve=ne[0],le=ne[1],be=Object(D.useState)([]),we=Object(s.a)(be,2),Re=we[0],ge=we[1],fe=Object(D.useState)(0),Ze=Object(s.a)(fe,2),Ot=Ze[0],Ee=Ze[1],ke=Object(D.useState)(2e4),de=Object(s.a)(ke,2),me=de[0],Le=de[1],rt=Object(D.useState)(!0),Oe=Object(s.a)(rt,2),Ge=Oe[0],at=Oe[1],dt=Object(D.useState)([]),Pt=Object(s.a)(dt,2),bt=Pt[0],zt=Pt[1],It=Object(D.useState)(),on=Object(s.a)(It,2),dn=on[0],Ie=on[1];Object(D.useEffect)(function(){B.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?De():(zt([]),ge([]))},[B.actionTabs.key]);var De=function(){var Me=Object(v.a)(y.a.mark(function xe(Te){var oe,ue,pe;return y.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return at(!0),Ye.next=3,Object(A.A)(Object(p.a)(Object(p.a)({},W),{},{page:Te||ve,limit:me,homework_id:B.actionTabs.type===1?"":B.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:oe=Ye.sent,oe==null||oe.course_groups.map(function(Ue,Mt){Ue.key=Ue.id}),oe&&(ge([].concat(Object(u.a)(Re),Object(u.a)(oe==null?void 0:oe.course_groups))),Ee(oe==null?void 0:oe.course_groups_count),Ie(oe==null?void 0:oe.course_groups),at(!1),Te||V.setFieldsValue((pe={},Object(b.a)(pe,"group_ids",oe==null||((ue=oe.course_groups)===null||ue===void 0)?void 0:ue.map(function(Ue){return String(Ue.id)})),Object(b.a)(pe,"end_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),pe)));case 6:case"end":return Ye.stop()}},xe)}));return function(Te){return Me.apply(this,arguments)}}(),ot=function(xe){le(xe),De(xe)},Et=function(){var Me=Object(v.a)(y.a.mark(function xe(){var Te,oe;return y.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Te=Object(p.a)({},V.getFieldsValue()),pe.next=3,Object(f.a)("/api/courses/".concat(W.coursesId,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(u.a)(B.actionTabs.selectArrs),group_ids:(bt==null?void 0:bt.length)>0?bt:[],unified_setting:!(Re!=null&&Re.length),end_time:_()(Te.end_time).format("YYYY-MM-DD HH:mm")}});case 3:oe=pe.sent,oe.status===0&&(Je(),Object(o.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u622A\u6B62"]),l.b.success("\u64CD\u4F5C\u6210\u529F"),G({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(O.c)()?B.actionTabs.detail?(G({type:"classroomList/setActionTabs",payload:{}}),G({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},W)}),G({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},W)})):G({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(p.a)(Object(p.a)({},B.actionTabs.params),{},{type:4})}):G({type:"classroomList/getClassroomShixunsList",payload:Object(p.a)({},B.actionTabs.params)}));case 5:case"end":return pe.stop()}},xe)}));return function(){return Me.apply(this,arguments)}}(),Je=function(){le(1),ge([])},ft=Ot>ve*me;return C.a.createElement(F.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:B.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:Et,onCancel:function(){Je(),G({type:"classroomList/setActionTabs",payload:{}})}},C.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",C.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),Re&&C.a.createElement(t.a,{form:V},C.a.createElement(c.a,null,C.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),C.a.createElement(t.a.Item,{name:"end_time"},C.a.createElement(g.a,{style:{width:170},getPopupContainer:function(xe){return xe.parentNode},disabledDate:function(xe){return xe&&xe<_()().subtract(0,"days")},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:_()(Object(o.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),(dn==null?void 0:dn.length)>0&&C.a.createElement(c.a,null,C.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),C.a.createElement(S.a.Search,{style:{width:"300px"},onChange:function(xe){ge(dn.filter(function(Te){return Te.name.indexOf(xe.target.value)>-1}))}})),(Re==null?void 0:Re.length)>0&&B.actionTabs.type===1&&C.a.createElement(j.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(xe,Te){zt(xe)}},pagination:!1,dataSource:Re,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(Re==null?void 0:Re.length)>0&&B.actionTabs.type===2&&C.a.createElement(j.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(xe,Te){zt(xe)}},pagination:!1,dataSource:Re,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))};te.a=Object(d.a)(function(k){var N=k.classroomList;return{classroomList:N}})(m)},RDYZ:function(ze,te,P){var X=P("dMvE");function F(j){this._target=j.target,this._life=j.life||1e3,this._delay=j.delay||0,this._initialized=!1,this.loop=j.loop==null?!1:j.loop,this.gap=j.gap||0,this.easing=j.easing||"Linear",this.onframe=j.onframe,this.ondestroy=j.ondestroy,this.onrestart=j.onrestart,this._pausedTime=0,this._paused=!1}F.prototype={constructor:F,step:function(j,T){if(this._initialized||(this._startTime=j+this._delay,this._initialized=!0),this._paused){this._pausedTime+=T;return}var S=(j-this._startTime-this._pausedTime)/this._life;if(S<0)return;S=Math.min(S,1);var M=this.easing,c=typeof M=="string"?X[M]:M,E=typeof c=="function"?c(S):S;return this.fire("frame",E),S===1?this.loop?(this.restart(j),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(j){var T=(j-this._startTime-this._pausedTime)%this._life;this._startTime=j-T+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(j,T){j="on"+j,this[j]&&this[j](this._target,T)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var R=F;ze.exports=R},RXMa:function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(R,j){var T=j.cx,S=j.cy,M=Math.PI*2;R.moveTo(T+j.r,S),R.arc(T,S,j.r,0,M,!1),R.moveTo(T+j.r0,S),R.arc(T,S,j.r0,0,M,!0)}});ze.exports=F},RotF:function(ze,te,P){ze.exports=P("LSTS")},"SA+Z":function(ze,te,P){var X=P("wTVA"),F=P("EbDI"),R=P("ZhPi"),j=P("wkBT");function T(S){return X(S)||F(S)||R(S)||j()}ze.exports=T,ze.exports.__esModule=!0,ze.exports.default=ze.exports},SJMd:function(ze,te){/** +`),re.focus();default:throw new Error}},[re,Hn]),Yt=Object(r.useMemo)(function(){switch(Hn){case dt:return l.a.createElement(q,{callback:Gt,onCancel:wt});case bt:return l.a.createElement(ne.b,{callback:Gt,onCancel:wt});case Rt:return l.a.createElement(fe,{callback:Gt,onCancel:wt});case Kt:return l.a.createElement(Oe,{callback:Gt,onCancel:wt});default:return null}},[Hn]);function wt(){vr("")}Object(r.useEffect)(function(){if($t.current){var cn=$t.current,Qt=!1,Vt=0;function tt(Ct){Qt=!0,Vt=Ct.pageY}function Xe(){Qt=!1}function Ft(Ct){if(Qt){var Xt=Ct.pageY-Vt;Xt<0&&(Xt=0),Xt>300&&(Xt=300);var jt=Tt+Xt+"px";Q(jt)}}return cn.addEventListener("mousedown",tt),document.addEventListener("mousemove",Ft),document.addEventListener("mouseup",Xe),function(){cn.removeEventListener("mousedown",tt),document.removeEventListener("mousemove",Ft),document.removeEventListener("mouseup",Xe)}}},[re,$t]),Object(r.useEffect)(function(){Q(Tt)},[Tt]);var En=xe(rn),xn=xe(pr),Jn={width:En,height:xn},It=Object(r.useMemo)(function(){if(Gn){var cn=new Date(Gn),Qt=cn.getHours(),Vt=cn.getMinutes(),tt=cn.getSeconds();return Qt=Qt<10?"0"+Qt:Qt,Vt=Vt<10?"0"+Vt:Vt,tt=tt<10?"0"+tt:tt,"".concat(Qt,":").concat(Vt,":").concat(tt)}return 0},[Gn]);function Wt(){window.sessionStorage.removeItem(Nt),ut(!1),dr(0)}function vn(){ut(!1),dr(0),re.setValue(window.sessionStorage.getItem(Nt))}function zt(cn,Qt){var Vt=re.getValue();Vt=Vt.replace(cn,Qt),Wn(Vt),re==null||re.setValue(Vt)}return l.a.createElement(r.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:_t},l.a.createElement("div",{className:"markdown-editor-container ".concat(In," ").concat(tr?"on-preview":""," ").concat(ye?"mini":""," ").concat(Gr?"full-screen":""),style:Jn},l.a.createElement(m,{insertTemp:en,watch:tr,fullScreen:Gr,showNullButton:kn,onActionCallback:Dt,hidetoolBar:ea,uuid:Ke.current,setOpenPhones:function(){lt.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:ht,placeholder:wr})),tr?l.a.createElement("div",{ref:kt,className:"preview-container"},st==="stex"&&l.a.createElement(I,{value:On}),st!=="stex"&&l.a.createElement(C.a,{edit:!0,value:On,replaces:zt})):null))),Mn?l.a.createElement("a",{ref:$t,className:"editor-resize"}):null,l.a.createElement(k.a,null,_e[Hn]?l.a.createElement(F.a,{centered:!0,title:_e[Hn],visible:!0,onCancel:wt,footer:null},Yt):null))}},P47w:function(ze,te,P){var X=P("hydK"),F=X.createElement,R=P("IMiH"),j=P("mFDi"),T=P("Fofx"),S=P("6GrX"),M=P("pzxd"),c=P("dqUG"),E=R.CMD,g=Array.prototype.join,r="none",l=Math.round,b=Math.sin,u=Math.cos,p=Math.PI,v=Math.PI*2,a=180/p,t=1e-4;function s(V){return l(V*1e4)/1e4}function h(V){return V-t}function y(V,q){var ne=q?V.textFill:V.fill;return ne!=null&&ne!==r}function D(V,q){var ne=q?V.textStroke:V.stroke;return ne!=null&&ne!==r}function C(V,q){q&&I(V,"transform","matrix("+g.call(q,",")+")")}function I(V,q,ne){(!ne||ne.type!=="linear"&&ne.type!=="radial")&&V.setAttribute(q,ne)}function _(V,q,ne){V.setAttributeNS("http://www.w3.org/1999/xlink",q,ne)}function f(V,q,ne,ve){if(y(q,ne)){var le=ne?q.textFill:q.fill;le=le==="transparent"?r:le,I(V,"fill",le),I(V,"fill-opacity",q.fillOpacity!=null?q.fillOpacity*q.opacity:q.opacity)}else I(V,"fill",r);if(D(q,ne)){var be=ne?q.textStroke:q.stroke;be=be==="transparent"?r:be,I(V,"stroke",be);var we=ne?q.textStrokeWidth:q.lineWidth,Re=!ne&&q.strokeNoScale?ve.getLineScale():1;I(V,"stroke-width",we/Re),I(V,"paint-order",ne?"stroke":"fill"),I(V,"stroke-opacity",q.strokeOpacity!=null?q.strokeOpacity:q.opacity);var ge=q.lineDash;ge?(I(V,"stroke-dasharray",q.lineDash.join(",")),I(V,"stroke-dashoffset",l(q.lineDashOffset||0))):I(V,"stroke-dasharray",""),q.lineCap&&I(V,"stroke-linecap",q.lineCap),q.lineJoin&&I(V,"stroke-linejoin",q.lineJoin),q.miterLimit&&I(V,"stroke-miterlimit",q.miterLimit)}else I(V,"stroke",r)}function o(V){for(var q=[],ne=V.data,ve=V.len(),le=0;le=v:-ke>=v),Oe=ke>0?ke%v:ke%v+v,Ge=!1;rt?Ge=!0:h(Le)?Ge=!1:Ge=Oe>=p===!!me;var at=s(ge+Ze*u(Ee)),dt=s(fe+Ot*b(Ee));rt&&(me?ke=v-1e-4:ke=-v+1e-4,Ge=!0,le===9&&q.push("M",at,dt));var Rt=s(ge+Ze*u(Ee+ke)),bt=s(fe+Ot*b(Ee+ke));q.push("A",s(Ze),s(Ot),l(de*a),+Ge,+me,Rt,bt);break;case E.Z:we="Z";break;case E.R:var Rt=s(ne[le++]),bt=s(ne[le++]),Kt=s(ne[le++]),Lt=s(ne[le++]);q.push("M",Rt,bt,"L",Rt+Kt,bt,"L",Rt+Kt,bt+Lt,"L",Rt,bt+Lt,"L",Rt,bt);break}we&&q.push(we);for(var on=0;onun){for(;Lt0)p.left||(p.left=new S,p.left.segment=u.value()),p=p.left;else if(v<0)p.right||(p.right=new S,p.right.segment=u.value()),p=p.right;else if(u.hasNext())u.next(),p.mid||(p.mid=new S,p.mid.segment=u.value()),p=p.mid;else break}var a=p.value;return p.value=b,p.key=l,a},r.prototype.get=function(l){for(var b=this._iter.reset(l),u=this._root;u;){var p=b.cmp(u.segment);if(p>0)u=u.left;else if(p<0)u=u.right;else if(b.hasNext())b.next(),u=u.mid;else break}return u?u.value:void 0},r.prototype.findSubstr=function(l){for(var b=this._iter.reset(l),u=this._root,p=void 0;u;){var v=b.cmp(u.segment);if(v>0)u=u.left;else if(v<0)u=u.right;else if(b.hasNext())b.next(),p=u.value||p,u=u.mid;else break}return u&&u.value||p},r.prototype.forEach=function(l){this._forEach(this._root,l)},r.prototype._forEach=function(l,b){l&&(this._forEach(l.left,b),l.value&&b(l.value,l.key),this._forEach(l.mid,b),this._forEach(l.right,b))},r}(),c=function(){function r(){this.map=new Map,this.ignoreCase=!1}return r.prototype.set=function(l,b){this.map.set(this.toKey(l),b)},r.prototype.get=function(l){return this.map.get(this.toKey(l))},r.prototype.toKey=function(l){var b=l.toString();return this.ignoreCase&&(b=b.toLowerCase()),b},r}(),E=function(){function r(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return r.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),r.prototype.get=function(l,b){b===void 0&&(b=0);var u=this._map.get(l);return u?(b!==0&&this.touch(u,b),u.value):void 0},r.prototype.set=function(l,b,u){u===void 0&&(u=0);var p=this._map.get(l);if(p)p.value=b,u!==0&&this.touch(p,u);else{p={key:l,value:b,next:void 0,previous:void 0};switch(u){case 0:this.addItemLast(p);break;case 1:this.addItemFirst(p);break;case 2:this.addItemLast(p);break;default:this.addItemLast(p);break}this._map.set(l,p),this._size++}},r.prototype.delete=function(l){return!!this.remove(l)},r.prototype.remove=function(l){var b=this._map.get(l);return b?(this._map.delete(l),this.removeItem(b),this._size--,b.value):void 0},r.prototype.forEach=function(l,b){for(var u=this._head;u;)b?l.bind(b)(u.value,u.key,this):l(u.value,u.key,this),u=u.next},r.prototype.trimOld=function(l){if(l>=this.size)return;if(l===0){this.clear();return}for(var b=this._head,u=this.size;b&&u>l;)this._map.delete(b.key),b=b.next,u--;this._head=b,this._size=u,b&&(b.previous=void 0)},r.prototype.addItemFirst=function(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l},r.prototype.addItemLast=function(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l},r.prototype.removeItem=function(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{var b=l.next,u=l.previous;if(!b||!u)throw new Error("Invalid list");b.previous=u,u.next=b}l.next=void 0,l.previous=void 0},r.prototype.touch=function(l,b){if(!this._head||!this._tail)throw new Error("Invalid list");if(b!==1&&b!==2)return;if(b===1){if(l===this._head)return;var u=l.next,p=l.previous;l===this._tail?(p.next=void 0,this._tail=p):(u.previous=p,p.next=u),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l}else if(b===2){if(l===this._tail)return;var u=l.next,p=l.previous;l===this._head?(u.previous=void 0,this._head=u):(u.previous=p,p.next=u),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l}},r.prototype.toJSON=function(){var l=[];return this.forEach(function(b,u){l.push([u,b])}),l},r}(),g=function(r){X(l,r);function l(b,u){u===void 0&&(u=1);var p=r.call(this)||this;return p._limit=b,p._ratio=Math.min(Math.max(0,u),1),p}return l.prototype.get=function(b){return r.prototype.get.call(this,b,2)},l.prototype.peek=function(b){return r.prototype.get.call(this,b,0)},l.prototype.set=function(b,u){r.prototype.set.call(this,b,u,2),this.checkTrim()},l.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},l}(E)},"QO+J":function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createSensor=void 0;var X=R(P("NohK")),F=P("24YM");function R(T){return T&&T.__esModule?T:{default:T}}var j=function(S){var M=void 0,c=[],E=function(){getComputedStyle(S).position==="static"&&(S.style.position="relative");var p=document.createElement("object");return p.onload=function(){p.contentDocument.defaultView.addEventListener("resize",g),g()},p.style.display="block",p.style.position="absolute",p.style.top="0",p.style.left="0",p.style.height="100%",p.style.width="100%",p.style.overflow="hidden",p.style.pointerEvents="none",p.style.zIndex="-1",p.style.opacity="0",p.setAttribute("class",F.SensorClassName),p.setAttribute("tabindex",F.SensorTabIndex),p.type="text/html",S.appendChild(p),p.data="about:blank",p},g=(0,X.default)(function(){c.forEach(function(u){u(S)})}),r=function(p){M||(M=E()),c.indexOf(p)===-1&&c.push(p)},l=function(){M&&M.parentNode&&(M.contentDocument&&M.contentDocument.defaultView.removeEventListener("resize",g),M.parentNode.removeChild(M),M=void 0,c=[])},b=function(p){var v=c.indexOf(p);v!==-1&&c.splice(v,1),c.length===0&&M&&l()};return{element:S,bind:r,destroy:l,unbind:b}};te.createSensor=j},Qe9p:function(ze,te,P){var X=P("1RvN"),F={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function R(o){return o=Math.round(o),o<0?0:o>255?255:o}function j(o){return o=Math.round(o),o<0?0:o>360?360:o}function T(o){return o<0?0:o>1?1:o}function S(o){return o.length&&o.charAt(o.length-1)==="%"?R(parseFloat(o)/100*255):R(parseInt(o,10))}function M(o){return o.length&&o.charAt(o.length-1)==="%"?T(parseFloat(o)/100):T(parseFloat(o))}function c(o,i,d){return d<0?d+=1:d>1&&(d-=1),d*6<1?o+(i-o)*d*6:d*2<1?i:d*3<2?o+(i-o)*(2/3-d)*6:o}function E(o,i,d){return o+(i-o)*d}function g(o,i,d,A,O){return o[0]=i,o[1]=d,o[2]=A,o[3]=O,o}function r(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o}var l=new X(20),b=null;function u(o,i){b&&r(b,i),b=l.put(o,b||i.slice())}function p(o,i){if(!o)return;i=i||[];var d=l.get(o);if(d)return r(i,d);o=o+"";var A=o.replace(/ /g,"").toLowerCase();if(A in F)return r(i,F[A]),u(o,i),i;if(A.charAt(0)==="#"){if(A.length===4){var O=parseInt(A.substr(1),16);if(!(O>=0&&O<=4095)){g(i,0,0,0,1);return}return g(i,(O&3840)>>4|(O&3840)>>8,O&240|(O&240)>>4,O&15|(O&15)<<4,1),u(o,i),i}else if(A.length===7){var O=parseInt(A.substr(1),16);if(!(O>=0&&O<=16777215)){g(i,0,0,0,1);return}return g(i,(O&16711680)>>16,(O&65280)>>8,O&255,1),u(o,i),i}return}var m=A.indexOf("("),k=A.indexOf(")");if(m!==-1&&k+1===A.length){var N=A.substr(0,m),B=A.substr(m+1,k-(m+1)).split(","),G=1;switch(N){case"rgba":if(B.length!==4){g(i,0,0,0,1);return}G=M(B.pop());case"rgb":if(B.length!==3){g(i,0,0,0,1);return}return g(i,S(B[0]),S(B[1]),S(B[2]),G),u(o,i),i;case"hsla":if(B.length!==4){g(i,0,0,0,1);return}return B[3]=M(B[3]),v(B,i),u(o,i),i;case"hsl":if(B.length!==3){g(i,0,0,0,1);return}return v(B,i),u(o,i),i;default:return}}g(i,0,0,0,1);return}function v(o,i){var d=(parseFloat(o[0])%360+360)%360/360,A=M(o[1]),O=M(o[2]),m=O<=.5?O*(A+1):O+A-O*A,k=O*2-m;return i=i||[],g(i,R(c(k,m,d+1/3)*255),R(c(k,m,d)*255),R(c(k,m,d-1/3)*255),1),o.length===4&&(i[3]=o[3]),i}function a(o){if(!o)return;var i=o[0]/255,d=o[1]/255,A=o[2]/255,O=Math.min(i,d,A),m=Math.max(i,d,A),k=m-O,N=(m+O)/2,B,G;if(k===0)B=0,G=0;else{N<.5?G=k/(m+O):G=k/(2-m-O);var W=((m-i)/6+k/2)/k,z=((m-d)/6+k/2)/k,Y=((m-A)/6+k/2)/k;i===m?B=Y-z:d===m?B=1/3+W-Y:A===m&&(B=2/3+z-W),B<0&&(B+=1),B>1&&(B-=1)}var V=[B*360,G,N];return o[3]!=null&&V.push(o[3]),V}function t(o,i){var d=p(o);if(d){for(var A=0;A<3;A++)i<0?d[A]=d[A]*(1-i)|0:d[A]=(255-d[A])*i+d[A]|0,d[A]>255?d[A]=255:o[A]<0&&(d[A]=0);return f(d,d.length===4?"rgba":"rgb")}}function s(o){var i=p(o);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function h(o,i,d){if(!(i&&i.length)||!(o>=0&&o<=1))return;d=d||[];var A=o*(i.length-1),O=Math.floor(A),m=Math.ceil(A),k=i[O],N=i[m],B=A-O;return d[0]=R(E(k[0],N[0],B)),d[1]=R(E(k[1],N[1],B)),d[2]=R(E(k[2],N[2],B)),d[3]=T(E(k[3],N[3],B)),d}var y=h;function D(o,i,d){if(!(i&&i.length)||!(o>=0&&o<=1))return;var A=o*(i.length-1),O=Math.floor(A),m=Math.ceil(A),k=p(i[O]),N=p(i[m]),B=A-O,G=f([R(E(k[0],N[0],B)),R(E(k[1],N[1],B)),R(E(k[2],N[2],B)),T(E(k[3],N[3],B))],"rgba");return d?{color:G,leftIndex:O,rightIndex:m,value:A}:G}var C=D;function I(o,i,d,A){if(o=p(o),o)return o=a(o),i!=null&&(o[0]=j(i)),d!=null&&(o[1]=M(d)),A!=null&&(o[2]=M(A)),f(v(o),"rgba")}function _(o,i){if(o=p(o),o&&i!=null)return o[3]=T(i),f(o,"rgba")}function f(o,i){if(!o||!o.length)return;var d=o[0]+","+o[1]+","+o[2];return(i==="rgba"||i==="hsva"||i==="hsla")&&(d+=","+o[3]),i+"("+d+")"}te.parse=p,te.lift=t,te.toHex=s,te.fastLerp=h,te.fastMapToColor=y,te.lerp=D,te.mapToColor=C,te.modifyHSL=I,te.modifyAlpha=_,te.stringify=f},QuXc:function(ze,te){var P=function(F){this.colorStops=F||[]};P.prototype={constructor:P,addColorStop:function(F,R){this.colorStops.push({offset:F,color:R})}};var X=P;ze.exports=X},R5GN:function(ze,te,P){"use strict";var X=P("2qtc"),F=P("kLXV"),R=P("g9YV"),j=P("wCAj"),T=P("5NDa"),S=P("5rEg"),M=P("14J3"),c=P("BMrR"),E=P("iQDF"),g=P("+eQT"),r=P("miYZ"),l=P("tsqr"),b=P("jrin"),u=P("oBTY"),p=P("k1fw"),v=P("9og8"),a=P("y8nQ"),t=P("Vl3Y"),s=P("tJVT"),h=P("WmNS"),y=P.n(h),D=P("q1tI"),C=P.n(D),I=P("wd/R"),_=P.n(I),f=P("ErOA"),o=P("1vsH"),i=P("Ty5D"),d=P("9kvl"),A=P("oUNq"),O=P("xKgJ"),m=function(N){var B=N.classroomList,G=N.dispatch,W=Object(i.i)(),z=t.a.useForm(),Y=Object(s.a)(z,1),V=Y[0],q=Object(D.useState)(1),ne=Object(s.a)(q,2),ve=ne[0],le=ne[1],be=Object(D.useState)([]),we=Object(s.a)(be,2),Re=we[0],ge=we[1],fe=Object(D.useState)(0),Ze=Object(s.a)(fe,2),Ot=Ze[0],Ee=Ze[1],ke=Object(D.useState)(2e4),de=Object(s.a)(ke,2),me=de[0],Le=de[1],rt=Object(D.useState)(!0),Oe=Object(s.a)(rt,2),Ge=Oe[0],at=Oe[1],dt=Object(D.useState)([]),Rt=Object(s.a)(dt,2),bt=Rt[0],Kt=Rt[1],Lt=Object(D.useState)(),on=Object(s.a)(Lt,2),un=on[0],Ie=on[1];Object(D.useEffect)(function(){B.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?De():(Kt([]),ge([]))},[B.actionTabs.key]);var De=function(){var Me=Object(v.a)(y.a.mark(function xe(Te){var oe,ue,pe;return y.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return at(!0),Ye.next=3,Object(A.A)(Object(p.a)(Object(p.a)({},W),{},{page:Te||ve,limit:me,homework_id:B.actionTabs.type===1?"":B.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:oe=Ye.sent,oe==null||oe.course_groups.map(function(Ue,Mt){Ue.key=Ue.id}),oe&&(ge([].concat(Object(u.a)(Re),Object(u.a)(oe==null?void 0:oe.course_groups))),Ee(oe==null?void 0:oe.course_groups_count),Ie(oe==null?void 0:oe.course_groups),at(!1),Te||V.setFieldsValue((pe={},Object(b.a)(pe,"group_ids",oe==null||((ue=oe.course_groups)===null||ue===void 0)?void 0:ue.map(function(Ue){return String(Ue.id)})),Object(b.a)(pe,"end_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),pe)));case 6:case"end":return Ye.stop()}},xe)}));return function(Te){return Me.apply(this,arguments)}}(),ot=function(xe){le(xe),De(xe)},Et=function(){var Me=Object(v.a)(y.a.mark(function xe(){var Te,oe;return y.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Te=Object(p.a)({},V.getFieldsValue()),pe.next=3,Object(f.a)("/api/courses/".concat(W.coursesId,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(u.a)(B.actionTabs.selectArrs),group_ids:(bt==null?void 0:bt.length)>0?bt:[],unified_setting:!(Re!=null&&Re.length),end_time:_()(Te.end_time).format("YYYY-MM-DD HH:mm")}});case 3:oe=pe.sent,oe.status===0&&(Je(),Object(o.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u622A\u6B62"]),l.b.success("\u64CD\u4F5C\u6210\u529F"),G({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(O.c)()?B.actionTabs.detail?(G({type:"classroomList/setActionTabs",payload:{}}),G({type:"shixunHomeworks/getWorkList",payload:Object(p.a)({},W)}),G({type:"shixunHomeworks/getWorkSetting",payload:Object(p.a)({},W)})):G({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(p.a)(Object(p.a)({},B.actionTabs.params),{},{type:4})}):G({type:"classroomList/getClassroomShixunsList",payload:Object(p.a)({},B.actionTabs.params)}));case 5:case"end":return pe.stop()}},xe)}));return function(){return Me.apply(this,arguments)}}(),Je=function(){le(1),ge([])},ft=Ot>ve*me;return C.a.createElement(F.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:B.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:Et,onCancel:function(){Je(),G({type:"classroomList/setActionTabs",payload:{}})}},C.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",C.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),Re&&C.a.createElement(t.a,{form:V},C.a.createElement(c.a,null,C.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),C.a.createElement(t.a.Item,{name:"end_time"},C.a.createElement(g.a,{style:{width:170},getPopupContainer:function(xe){return xe.parentNode},disabledDate:function(xe){return xe&&xe<_()().subtract(0,"days")},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:_()(Object(o.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),(un==null?void 0:un.length)>0&&C.a.createElement(c.a,null,C.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),C.a.createElement(S.a.Search,{style:{width:"300px"},onChange:function(xe){ge(un.filter(function(Te){return Te.name.indexOf(xe.target.value)>-1}))}})),(Re==null?void 0:Re.length)>0&&B.actionTabs.type===1&&C.a.createElement(j.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(xe,Te){Kt(xe)}},pagination:!1,dataSource:Re,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(Re==null?void 0:Re.length)>0&&B.actionTabs.type===2&&C.a.createElement(j.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(xe,Te){Kt(xe)}},pagination:!1,dataSource:Re,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))};te.a=Object(d.a)(function(k){var N=k.classroomList;return{classroomList:N}})(m)},RDYZ:function(ze,te,P){var X=P("dMvE");function F(j){this._target=j.target,this._life=j.life||1e3,this._delay=j.delay||0,this._initialized=!1,this.loop=j.loop==null?!1:j.loop,this.gap=j.gap||0,this.easing=j.easing||"Linear",this.onframe=j.onframe,this.ondestroy=j.ondestroy,this.onrestart=j.onrestart,this._pausedTime=0,this._paused=!1}F.prototype={constructor:F,step:function(j,T){if(this._initialized||(this._startTime=j+this._delay,this._initialized=!0),this._paused){this._pausedTime+=T;return}var S=(j-this._startTime-this._pausedTime)/this._life;if(S<0)return;S=Math.min(S,1);var M=this.easing,c=typeof M=="string"?X[M]:M,E=typeof c=="function"?c(S):S;return this.fire("frame",E),S===1?this.loop?(this.restart(j),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(j){var T=(j-this._startTime-this._pausedTime)%this._life;this._startTime=j-T+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(j,T){j="on"+j,this[j]&&this[j](this._target,T)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var R=F;ze.exports=R},RXMa:function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(R,j){var T=j.cx,S=j.cy,M=Math.PI*2;R.moveTo(T+j.r,S),R.arc(T,S,j.r,0,M,!1),R.moveTo(T+j.r0,S),R.arc(T,S,j.r0,0,M,!0)}});ze.exports=F},RotF:function(ze,te,P){ze.exports=P("LSTS")},"SA+Z":function(ze,te,P){var X=P("wTVA"),F=P("EbDI"),R=P("ZhPi"),j=P("wkBT");function T(S){return X(S)||F(S)||R(S)||j()}ze.exports=T,ze.exports.__esModule=!0,ze.exports.default=ze.exports},SJMd:function(ze,te){/** * @license * Copyright (C) 2006 Google Inc. * @@ -308,37 +308,37 @@ Please report this to https://github.com/markedjs/marked.`,xe.silent)return"

                  A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var P,X,F,R=!1,j,T;window.PR_SHOULD_USE_CONTINUATION=!0;var S,M;(function(){var c=window,E=["break,continue,do,else,for,if,return,while"],g=[E,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],r=[g,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],l=[r,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],b=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],u=[r,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],p="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",v=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],a="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",t=[E,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[E,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],h=[E,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],y=[l,u,b,v,a,t,s,h],D=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C="str",I="kwd",_="com",f="typ",o="lit",i="pun",d="pln",A="tag",O="dec",m="src",k="atn",N="atv",B="nocode",G="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(me){for(var Le=0,rt=!1,Oe=!1,Ge=0,at=me.length;Ge122||(oe<65||Te>90||ot.push([Math.max(65,Te)|32,Math.min(oe,90)|32]),oe<97||Te>122||ot.push([Math.max(97,Te)&~32,Math.min(oe,122)&~32]))}}ot.sort(function(Ye,Ue){return Ye[0]-Ue[0]||Ue[1]-Ye[1]});for(var ue=[],pe=[],ft=0;ft_e[0]&&(_e[1]+1>_e[0]&&Je.push("-"),Je.push(zt(_e[1])))}return Je.push("]"),Je.join("")}function on(Ie){for(var De=Ie.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ot=De.length,Et=[],Je=0,ft=0;Je=2&&Te==="["?De[Je]=It(Me):Te!=="\\"&&(De[Je]=Me.replace(/[a-zA-Z]/g,function(pe){var _e=pe.charCodeAt(0);return"["+String.fromCharCode(_e&~32,_e|32)+"]"}))}return De.join("")}for(var dn=[],Ge=0,at=me.length;Ge=0;)rt[dn.charAt(Ie)]=on;var De=on[1],ot=""+De;bt.hasOwnProperty(ot)||(Pt.push(De),bt[ot]=null)}Pt.push(/[\0-\uffff]/),Oe=W(Pt)})();var Ge=Le.length,at=function(dt){for(var Pt=dt.sourceCode,bt=dt.basePos,zt=dt.sourceNode,It=[bt,d],on=0,dn=Pt.match(Oe)||[],Ie={},De=0,ot=dn.length;De=5&&Je.substring(0,5)==="lang-",Me&&!(ft&&typeof ft[1]=="string")&&(Me=!1,Je=m),Me||(Ie[Et]=Je)}var oe=on;if(on+=Et.length,!Me)It.push(bt+oe,Je);else{var ue=ft[1],pe=Et.indexOf(ue),_e=pe+ue.length;ft[2]&&(_e=Et.length-ft[2].length,pe=_e-ue.length);var Ye=Je.substring(5);Y(zt,bt+oe,Et.substring(0,pe),at,It),Y(zt,bt+oe+pe,ue,fe(Ye,ue),It),Y(zt,bt+oe+_e,Et.substring(_e),at,It)}}dt.decorations=It};return at}function ve(me){var Le=[],rt=[];me.tripleQuotedStrings?Le.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):me.multiLineStrings?Le.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Le.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),me.verbatimStrings&&rt.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Oe=me.hashComments;Oe&&(me.cStyleComments?(Oe>1?Le.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Le.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),rt.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Le.push([_,/^#[^\r\n]*/,null,"#"])),me.cStyleComments&&(rt.push([_,/^\/\/[^\r\n]*/,null]),rt.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ge=me.regexLiterals;if(Ge){var at=Ge>1?"":` -\r`,dt=at?".":"[\\S\\s]",Pt="/(?=[^/*"+at+"])(?:[^/\\x5B\\x5C"+at+"]|\\x5C"+dt+"|\\x5B(?:[^\\x5C\\x5D"+at+"]|\\x5C"+dt+")*(?:\\x5D|$))+/";rt.push(["lang-regex",RegExp("^"+G+"("+Pt+")")])}var bt=me.types;bt&&rt.push([f,bt]);var zt=(""+me.keywords).replace(/^ | $/g,"");zt.length&&rt.push([I,new RegExp("^(?:"+zt.replace(/[\s,]+/g,"|")+")\\b"),null]),Le.push([d,/^\s+/,null,` \r - \xA0`]);var It="^.[^\\s\\w.$@'\"`/\\\\]*";return me.regexLiterals&&(It+="(?!s*/)"),rt.push([o,/^@[a-z_$][a-z_$@0-9]*/i,null],[f,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[d,/^[a-z_$][a-z_$@0-9]*/i,null],[o,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[d,/^\\[\s\S]?/,null],[i,new RegExp(It),null]),ne(Le,rt)}var le=ve({keywords:y,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function be(me,Le,rt){for(var Oe=/(?:^|\s)nocode(?:\s|$)/,Ge=/\r\n?|\n/,at=me.ownerDocument,dt=at.createElement("li");me.firstChild;)dt.appendChild(me.firstChild);var Pt=[dt];function bt(De){var ot=De.nodeType;if(ot==1&&!Oe.test(De.className))if(De.nodeName==="br")zt(De),De.parentNode&&De.parentNode.removeChild(De);else for(var Et=De.firstChild;Et;Et=Et.nextSibling)bt(Et);else if((ot==3||ot==4)&&rt){var Je=De.nodeValue,ft=Je.match(Ge);if(ft){var Me=Je.substring(0,ft.index);De.nodeValue=Me;var xe=Je.substring(ft.index+ft[0].length);if(xe){var Te=De.parentNode;Te.insertBefore(at.createTextNode(xe),De.nextSibling)}zt(De),Me||De.parentNode.removeChild(De)}}}function zt(De){for(;!De.nextSibling;)if(De=De.parentNode,!De)return;function ot(ft,Me){var xe=Me?ft.cloneNode(!1):ft,Te=ft.parentNode;if(Te){var oe=ot(Te,1),ue=ft.nextSibling;oe.appendChild(xe);for(var pe=ue;pe;pe=ue)ue=pe.nextSibling,oe.appendChild(pe)}return xe}for(var Et=ot(De.nextSibling,0),Je;(Je=Et.parentNode)&&Je.nodeType===1;)Et=Je;Pt.push(Et)}for(var It=0;It=Te&&(bt+=2),at>=oe&&(on+=2)}}finally{Je&&(Je.style.display=ft)}}var Re={};function ge(me,Le){for(var rt=Le.length;--rt>=0;){var Oe=Le[rt];Re.hasOwnProperty(Oe)?c.console&&console.warn("cannot override language handler %s",Oe):Re[Oe]=me}}function fe(me,Le){return me&&Re.hasOwnProperty(me)||(me=/^\s*]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[i,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ge(ne([[d,/^[\s]+/,null,` \r -`],[N,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[A,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[i,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ge(ne([],[[N,/^[\s\S]+/]]),["uq.val"]),ge(ve({keywords:l,hashComments:!0,cStyleComments:!0,types:D}),["c","cc","cpp","cxx","cyc","m"]),ge(ve({keywords:"null,true,false"}),["json"]),ge(ve({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:D}),["cs"]),ge(ve({keywords:b,cStyleComments:!0}),["java"]),ge(ve({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ge(ve({keywords:t,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ge(ve({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ge(ve({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ge(ve({keywords:v,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ge(ve({keywords:p,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ge(ne([],[[C,/^[\s\S]+/]]),["regex"]);function Ze(me){var Le=me.langExtension;try{var rt=z(me.sourceNode,me.pre),Oe=rt.sourceCode;me.sourceCode=Oe,me.spans=rt.spans,me.basePos=0,fe(Le,Oe)(me),we(me)}catch(Ge){c.console&&console.log(Ge&&Ge.stack||Ge)}}function Ot(me,Le,rt){var Oe=rt||!1,Ge=Le||null,at=document.createElement("div");at.innerHTML="

                  "+me+"
                  ",at=at.firstChild,Oe&&be(at,Oe,!0);var dt={langExtension:Ge,numberLines:Oe,sourceNode:at,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ze(dt),at.innerHTML}function Ee(me,Le){var rt=Le||document.body,Oe=rt.ownerDocument||document;function Ge(xe){return rt.getElementsByTagName(xe)}for(var at=[Ge("pre"),Ge("code"),Ge("xmp")],dt=[],Pt=0;Pt-S&&oS||o<-S}function p(o,i,d,A,O){var m=1-O;return m*m*(m*o+3*O*i)+O*O*(O*A+3*m*d)}function v(o,i,d,A,O){var m=1-O;return 3*(((i-o)*m+2*(d-i)*O)*m+(A-d)*O*O)}function a(o,i,d,A,O,m){var k=A+3*(i-d)-o,N=3*(d-i*2+o),B=3*(i-o),G=o-O,W=N*N-3*k*B,z=N*B-9*k*G,Y=B*B-3*N*G,V=0;if(b(W)&&b(z))if(b(N))m[0]=0;else{var q=-B/N;q>=0&&q<=1&&(m[V++]=q)}else{var ne=z*z-4*W*Y;if(b(ne)){var ve=z/W,q=-N/k+ve,le=-ve/2;q>=0&&q<=1&&(m[V++]=q),le>=0&&le<=1&&(m[V++]=le)}else if(ne>0){var be=T(ne),we=W*N+1.5*k*(-z+be),Re=W*N+1.5*k*(-z-be);we<0?we=-j(-we,E):we=j(we,E),Re<0?Re=-j(-Re,E):Re=j(Re,E);var q=(-N-(we+Re))/(3*k);q>=0&&q<=1&&(m[V++]=q)}else{var ge=(2*W*N-3*k*z)/(2*T(W*W*W)),fe=Math.acos(ge)/3,Ze=T(W),Ot=Math.cos(fe),q=(-N-2*Ze*Ot)/(3*k),le=(-N+Ze*(Ot+c*Math.sin(fe)))/(3*k),Ee=(-N+Ze*(Ot-c*Math.sin(fe)))/(3*k);q>=0&&q<=1&&(m[V++]=q),le>=0&&le<=1&&(m[V++]=le),Ee>=0&&Ee<=1&&(m[V++]=Ee)}}return V}function t(o,i,d,A,O){var m=6*d-12*i+6*o,k=9*i+3*A-3*o-9*d,N=3*i-3*o,B=0;if(b(k)){if(u(m)){var G=-N/m;G>=0&&G<=1&&(O[B++]=G)}}else{var W=m*m-4*k*N;if(b(W))O[0]=-m/(2*k);else if(W>0){var z=T(W),G=(-m+z)/(2*k),Y=(-m-z)/(2*k);G>=0&&G<=1&&(O[B++]=G),Y>=0&&Y<=1&&(O[B++]=Y)}}return B}function s(o,i,d,A,O,m){var k=(i-o)*O+o,N=(d-i)*O+i,B=(A-d)*O+d,G=(N-k)*O+k,W=(B-N)*O+N,z=(W-G)*O+G;m[0]=o,m[1]=k,m[2]=G,m[3]=z,m[4]=z,m[5]=W,m[6]=B,m[7]=A}function h(o,i,d,A,O,m,k,N,B,G,W){var z,Y=.005,V=Infinity,q,ne,ve,le;g[0]=B,g[1]=G;for(var be=0;be<1;be+=.05)r[0]=p(o,d,O,k,be),r[1]=p(i,A,m,N,be),ve=R(g,r),ve=0&&ve=0&&G<=1&&(O[B++]=G)}}else{var W=k*k-4*m*N;if(b(W)){var G=-k/(2*m);G>=0&&G<=1&&(O[B++]=G)}else if(W>0){var z=T(W),G=(-k+z)/(2*m),Y=(-k-z)/(2*m);G>=0&&G<=1&&(O[B++]=G),Y>=0&&Y<=1&&(O[B++]=Y)}}return B}function I(o,i,d){var A=o+d-2*i;return A===0?.5:(o-i)/A}function _(o,i,d,A,O){var m=(i-o)*A+o,k=(d-i)*A+i,N=(k-m)*A+m;O[0]=o,O[1]=m,O[2]=N,O[3]=N,O[4]=k,O[5]=d}function f(o,i,d,A,O,m,k,N,B){var G,W=.005,z=Infinity;g[0]=k,g[1]=N;for(var Y=0;Y<1;Y+=.05){r[0]=y(o,d,O,Y),r[1]=y(i,A,m,Y);var V=R(g,r);V=0&&V=0;--h)if(s[h]===t)return!0;return!1}),a):null:a[0]},b.prototype.update=function(p,v){if(!p)return;var a=this.getDefs(!1);if(p[this._domName]&&a.contains(p[this._domName]))typeof v=="function"&&v(p);else{var t=this.add(p);t&&(p[this._domName]=t)}},b.prototype.addDom=function(p){var v=this.getDefs(!0);v.appendChild(p)},b.prototype.removeDom=function(p){var v=this.getDefs(!1);v&&p[this._domName]&&(v.removeChild(p[this._domName]),p[this._domName]=null)},b.prototype.getDoms=function(){var p=this.getDefs(!1);if(!p)return[];var v=[];return R.each(this._tagNames,function(a){var t=p.getElementsByTagName(a);v=v.concat([].slice.call(t))}),v},b.prototype.markAllUnused=function(){var p=this.getDoms(),v=this;R.each(p,function(a){a[v._markLabel]=r})},b.prototype.markUsed=function(p){p&&(p[this._markLabel]=l)},b.prototype.removeUnused=function(){var p=this.getDefs(!1);if(!p)return;var v=this.getDoms(),a=this;R.each(v,function(t){t[a._markLabel]!==l&&p.removeChild(t)})},b.prototype.getSvgProxy=function(p){return p instanceof j?c:p instanceof T?E:p instanceof S?g:c},b.prototype.getTextSvgElement=function(p){return p.__textSvgEl},b.prototype.getSvgElement=function(p){return p.__svgEl};var u=b;ze.exports=u},T6xi:function(ze,te,P){var X=P("YgsL"),F=P("nCxF");function R(j,T,S){var M=T.points,c=T.smooth;if(M&&M.length>=2){if(c&&c!=="spline"){var E=F(M,c,S,T.smoothConstraint);j.moveTo(M[0][0],M[0][1]);for(var g=M.length,r=0;r<(S?g:g-1);r++){var l=E[r*2],b=E[r*2+1],u=M[(r+1)%g];j.bezierCurveTo(l[0],l[1],b[0],b[1],u[0],u[1])}}else{c==="spline"&&(M=X(M,S)),j.moveTo(M[0][0],M[0][1]);for(var r=1,p=M.length;r=0){var h=t.split("!=");return c.create(h[0].trim(),this._deserializeValue(h[1],s))}if(t.indexOf("==")>=0){var h=t.split("==");return M.create(h[0].trim(),this._deserializeValue(h[1],s))}if(t.indexOf("=~")>=0){var h=t.split("=~");return g.create(h[0].trim(),this._deserializeRegexValue(h[1],s))}return/^\!\s*/.test(t)?E.create(t.substr(1).trim()):S.create(t)},a._deserializeValue=function(t,s){if(t=t.trim(),t==="true")return!0;if(t==="false")return!1;var h=/^'([^']*)'$/.exec(t);return h?h[1].trim():t},a._deserializeRegexValue=function(t,s){if(Object(X.x)(t)){if(s)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var h=t.indexOf("/"),y=t.lastIndexOf("/");if(h===y||h<0){if(s)throw new Error("bad regexp-value '"+t+"', missing /-enclosure");return console.warn("bad regexp-value '"+t+"', missing /-enclosure"),null}var D=t.slice(h+1,y),C=t[y+1]==="i"?"i":"";try{return new RegExp(D,C)}catch(I){if(s)throw new Error("bad regexp-value '"+t+"', parse error: "+I);return console.warn("bad regexp-value '"+t+"', parse error: "+I),null}},a}();function T(a,t){var s=a.getType(),h=t.getType();if(s!==h)return s-h;switch(s){case 1:return a.cmp(t);case 2:return a.cmp(t);case 3:return a.cmp(t);case 4:return a.cmp(t);case 6:return a.cmp(t);case 7:return a.cmp(t);case 5:return a.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var S=function(){function a(t){this.key=t}return a.create=function(t){return new a(t)},a.prototype.getType=function(){return 1},a.prototype.cmp=function(t){return this.keyt.key?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key:!1},a.prototype.evaluate=function(t){return!!t.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return E.create(this.key)},a}(),M=function(){function a(t,s){this.key=t,this.value=s}return a.create=function(t,s){return typeof s=="boolean"?s?S.create(t):E.create(t):new a(t,s)},a.prototype.getType=function(){return 3},a.prototype.cmp=function(t){return this.keyt.key?1:this.valuet.value?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key&&this.value===t.value:!1},a.prototype.evaluate=function(t){return t.getValue(this.key)==this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return c.create(this.key,this.value)},a}(),c=function(){function a(t,s){this.key=t,this.value=s}return a.create=function(t,s){return typeof s=="boolean"?s?E.create(t):S.create(t):new a(t,s)},a.prototype.getType=function(){return 4},a.prototype.cmp=function(t){return this.keyt.key?1:this.valuet.value?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key&&this.value===t.value:!1},a.prototype.evaluate=function(t){return t.getValue(this.key)!=this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return M.create(this.key,this.value)},a}(),E=function(){function a(t){this.key=t}return a.create=function(t){return new a(t)},a.prototype.getType=function(){return 2},a.prototype.cmp=function(t){return this.keyt.key?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key:!1},a.prototype.evaluate=function(t){return!t.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return S.create(this.key)},a}(),g=function(){function a(t,s){this.key=t,this.regexp=s}return a.create=function(t,s){return new a(t,s)},a.prototype.getType=function(){return 6},a.prototype.cmp=function(t){if(this.keyt.key)return 1;var s=this.regexp?this.regexp.source:"",h=t.regexp?t.regexp.source:"";return sh?1:0},a.prototype.equals=function(t){if(t instanceof a){var s=this.regexp?this.regexp.source:"",h=t.regexp?t.regexp.source:"";return this.key===t.key&&s===h}return!1},a.prototype.evaluate=function(t){var s=t.getValue(this.key);return this.regexp?this.regexp.test(s):!1},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return r.create(this)},a}(),r=function(){function a(t){this._actual=t}return a.create=function(t){return new a(t)},a.prototype.getType=function(){return 7},a.prototype.cmp=function(t){return this._actual.cmp(t._actual)},a.prototype.equals=function(t){return t instanceof a?this._actual.equals(t._actual):!1},a.prototype.evaluate=function(t){return!this._actual.evaluate(t)},a.prototype.keys=function(){return this._actual.keys()},a.prototype.negate=function(){return this._actual},a}(),l=function(){function a(t){this.expr=t}return a.create=function(t){var s=a._normalizeArr(t);return s.length===0?void 0:s.length===1?s[0]:new a(s)},a.prototype.getType=function(){return 5},a.prototype.cmp=function(t){if(this.expr.lengtht.expr.length)return 1;for(var s=0,h=this.expr.length;s1;){for(var C=t.shift(),I=t.shift(),_=[],f=0,o=D(C);f47&&(He(47),mn(!0))}},[document.getElementById("divhe")]);var yr=function(kt,pn){nt.page=kt,nt.limit=20,wn()};function br(){Ka(1),Ia(""),Ca(""),tt(""),he(""),An([])}var vr=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:{showTitle:!1},render:function(kt,pn,Sn){return nt.limit*(nt.page-1)+Sn+1}},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:{showTitle:!1},render:function(kt){return t.a.createElement(S.a,{placement:"bottomLeft",title:kt},t.a.createElement("span",{className:"current"},kt))}},!(Kt!=null&&Kt.is_excellent)&&!Object(ge.r)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,fixed:"left",width:110,showSorterTooltip:!1,ellipsis:{showTitle:!1},sortOrder:nt.order==="student_id"?nt.b_order==="desc"?"descend":"ascend":null,render:function(kt){return t.a.createElement(S.a,{placement:"bottomLeft",title:kt||"--"},t.a.createElement("span",{className:"current"},kt||"--"))}},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",width:180,fixed:"left",ellipsis:{showTitle:!1},render:function(kt,pn){return kt?t.a.createElement(S.a,{placement:"bottom",title:kt},t.a.createElement("span",{className:"current"},kt)):"--"}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",width:80,fixed:"left",sorter:!0,ellipsis:{showTitle:!1},showSorterTooltip:!1,sortOrder:nt.order==="work_status"?nt.b_order==="desc"?"descend":"ascend":null,render:function(kt){return t.a.createElement(C.f,{status:kt})}},{title:t.a.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),dataIndex:"cost_time",align:"center",width:130,ellipsis:{showTitle:!1},showSorterTooltip:!1,sorter:!0,sortOrder:nt.order==="cost_time"?nt.b_order==="desc"?"descend":"ascend":null,render:function(kt,pn){return kt?t.a.createElement(S.a,{placement:"bottomLeft",title:kt},kt):"--"}},{title:"\u901A\u5173\u60C5\u51B5",align:"center",dataIndex:"complete_count",ellipsis:{showTitle:!1},render:function(kt,pn){return t.a.createElement("span",null,kt||0,"/",Kt.challenges_count)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",ellipsis:{showTitle:!1},sorter:!0,sortOrder:nt.order==="sum_evaluate_count"?nt.b_order==="desc"?"descend":"ascend":null,render:function(kt,pn){return kt&&kt!="--"?t.a.createElement(S.a,{placement:"bottom",title:kt},t.a.createElement("span",{className:"current"},kt)):"--"}},!Object(ge.r)()&&{title:t.a.createElement("span",null,"\u6700\u7EC8\u6210\u7EE9",t.a.createElement(S.a,{placement:"top",title:t.a.createElement("pre",null,"\u9F20\u6807\u505C\u7559\u5177\u4F53\u5206\u503C\u4E0A\u53EF\u67E5",t.a.createElement("br",null),"\u770B\u5F97\u5206\u660E\u7EC6",t.a.createElement("br",null))},t.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),dataIndex:"work_score",sorter:!0,align:"center",showSorterTooltip:!1,sortOrder:nt.order==="work_score"?nt.b_order==="desc"?"descend":"ascend":null,ellipsis:{showTitle:!1},render:function(kt,pn){var Sn,Rt;return kt>=0&&kt<=60?Rt=t.a.createElement("span",{className:"c-red"},kt):kt===100?Rt=t.a.createElement("span",{className:"c-green"},kt):kt>60?Rt=t.a.createElement("span",{className:"c-orange"},kt):Rt="--",t.a.createElement(S.a,{placement:"bottom",title:pn.ultimate_score?t.a.createElement("div",null,Rt==="--"?"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206":"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A".concat(pn.work_score,"\u5206")):t.a.createElement("div",null,t.a.createElement("div",null,pn.final_score?"\u5173\u5361\u5F97\u5206\uFF1A".concat(pn.final_score,"\u5206"):"\u5173\u5361\u5F97\u5206\uFF1A0\u5206"),t.a.createElement("div",null,pn.eff_score?"\u6548\u7387\u8BC4\u5206\uFF1A".concat(pn.eff_score,"\u5206"):"\u6548\u7387\u8BC4\u5206\uFF1A0\u5206"),t.a.createElement("div",null,pn.late_penalty?"\u8FDF\u4EA4\u6263\u5206\uFF1A".concat(pn.late_penalty,"\u5206"):"\u8FDF\u4EA4\u6263\u5206\uFF1A0\u5206"),!((Sn=Ke.workList)!==null&&Sn!==void 0&&Sn.answer_open_evaluation)&&t.a.createElement("div",null,"\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A",pn.view_answer_count,"\u5173"),t.a.createElement("div",null,pn.work_score?"\u6700\u7EC8\u6210\u7EE9\uFF1A".concat(pn.work_score,"\u5206"):"\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206"))},Rt)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",align:"center",render:function(kt){return kt||"- -"}},{title:t.a.createElement("span",null,"\u8BC4\u9605\u72B6\u6001",t.a.createElement(S.a,{overlayClassName:oe.a.reviewStatusTooltip,placement:"top",title:t.a.createElement("pre",null,"\u4EE5\u4E0B\u60C5\u5F62\u51FA\u73B0\u4E00\u79CD\uFF0C\u8BC4\u9605\u72B6\u6001\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\uFF1A",t.a.createElement("br",null),"1.\u5B66\u751F\u5F00\u542F\u4F5C\u4E1A\uFF0C\u7CFB\u7EDF\u5BF9\u5B66\u751F\u8FDB\u884C\u4E86\u81EA\u52A8\u6253\u5206\uFF1B",t.a.createElement("br",null),"2.\u8001\u5E08\u5BF9\u5B66\u751F\u4F5C\u4E1A\u8FDB\u884C\u5173\u5361\u8C03\u5206\u6216\u8005\u8FFD\u52A0\u70B9\u8BC4\uFF1B",t.a.createElement("br",null),"3.\u6574\u4E2A\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u6240\u6709\u5B66\u751F\u4F5C\u4E1A\u72B6\u6001\u5C06\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\u3002",t.a.createElement("br",null))},t.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),align:"center",dataIndex:"has_comment",width:90,fixed:"right",ellipsis:!0,render:function(kt){return kt?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},{title:"\u64CD\u4F5C",dataInex:"action",align:"center",width:70,fixed:"right",ellipsis:!0,className:"workListTable",render:function(kt,pn){var Sn,Rt,Tn;return Object(ge.s)()?t.a.createElement("div",null,Object(C.z)(pn==null?void 0:pn.work_status)==="\u672A\u5F00\u542F"?t.a.createElement("span",null,"--"):t.a.createElement(h.a,{target:"_blank",onClick:function(wr){wr.stopPropagation()},to:"/classrooms/".concat(nt.coursesId,"/shixun_homework/").concat(nt.categoryId,"/").concat(pn.id,"/comment")},"\u67E5\u770B")):t.a.createElement("div",null,t.a.createElement("span",{style:{color:"#0152d9"},onClick:function(wr){wr.stopPropagation(),mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:"",data:{name:pn==null?void 0:pn.user_name,homeworkId:pn==null?void 0:pn.id,work_comment:pn==null?void 0:pn.work_comment,work_comment_hidden:pn==null?void 0:pn.work_comment_hidden}}}})}},pn.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u8FFD\u52A0\u70B9\u8BC4"),(pn==null||((Sn=pn.shixun_detail)===null||Sn===void 0||((Rt=Sn[0])===null||Rt===void 0))?void 0:Rt.game_identifier)&&[1,2,3].includes(pn==null?void 0:pn.work_status)&&[t.a.createElement("br",null),t.a.createElement("a",{target:"_blank",onClick:function(wr){var $n;if(wr.stopPropagation(),($n=_t.userInfo)!==null&&$n!==void 0&&$n.professional_certification){var Dr,Kr;Object(C.O)("/tasks/".concat(pn==null||((Dr=pn.shixun_detail)===null||Dr===void 0||((Kr=Dr[0])===null||Kr===void 0))?void 0:Kr.game_identifier,"?homework_common_id=").concat($t.categoryId))}else return b.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(C.O)("/account/certification")}}),!1}},"\u67E5\u770B\u5B9E\u8BAD")],(Kt==null||((Tn=Kt.homework_status)===null||Tn===void 0)?void 0:Tn[0])!=="\u5DF2\u622A\u6B62"&&!!pn.myshixun_id&&[t.a.createElement("br",null),t.a.createElement("span",{className:oe.a.color32C,onClick:function(wr){wr.stopPropagation(),mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:pn,params:nt}})}},"\u6253\u56DE\u91CD\u505A")])}}].filter(function(Cn){return!!Cn}),Er=function(){var kt,pn;return t.a.createElement(at.a,null,t.a.createElement(at.a.Item,{onClick:function(){Object(Ue.h)(JSON.parse(sessionStorage.all_student_works_params),"shixun_work_list")},key:"1"},"\u5B66\u751F\u6210\u7EE9"),Object(ge.c)()&&(Kt==null?void 0:Kt.student_works.length)>0&&t.a.createElement(at.a.Item,{key:"3"},t.a.createElement(h.a,{onClick:function(Rt){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",type:2}})},to:"/classrooms/".concat(nt.coursesId,"/shixun_homework/").concat(nt.categoryId,"/").concat(Kt==null||((kt=Kt.student_works)===null||kt===void 0||((pn=kt[0])===null||pn===void 0))?void 0:pn.id,"/comment")},"\u5B9E\u8BAD\u62A5\u544A")),t.a.createElement(at.a.Item,{key:"2"},t.a.createElement(h.a,{to:"/classrooms/".concat(nt.coursesId,"/exportlist/shixun_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return t.a.createElement(t.a.Fragment,null,t.a.createElement("section",{className:"".concat(oe.a.wrap," minH500 bg-white pl30 pr30 pt30")},((yn=Kt.homework_status)===null||yn===void 0?void 0:yn.includes("\u672A\u53D1\u5E03"))&&t.a.createElement(De.a,null),!!et.length&&t.a.createElement(F.a,{className:"mb10",dataSource:et,columns:vr,pagination:!1,showHeader:!1,loading:!1}),!((Hn=Kt.homework_status)!==null&&Hn!==void 0&&Hn.includes("\u672A\u53D1\u5E03"))&&t.a.createElement("aside",null,!Object(ge.c)()&&t.a.createElement("div",{className:"c-light-black font12"},t.a.createElement("span",null,"\u5DF2\u5F00\u59CB\u505A\u9898 ",(Kt==null?void 0:Kt.commit_count)||0," \u4EBA"),t.a.createElement("span",{className:"ml5"},"\u672A\u5F00\u59CB\u505A\u9898 ",(Kt==null?void 0:Kt.uncommit_count)||0," \u4EBA"),(Kt==null?void 0:Kt.left_time)&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"ml20 c-black"},Kt==null||((mr=Kt.left_time)===null||mr===void 0)?void 0:mr.status),t.a.createElement("span",{className:"ml20 c-orange-ff9"},Kt==null||((Xn=Kt.left_time)===null||Xn===void 0)?void 0:Xn.time))),Object(ge.c)()&&t.a.createElement(t.a.Fragment,null,t.a.createElement(bt.a,{form:wt,onChange:ir,initialValues:(Vn={},Object(dt.a)(Vn,"task_status","all"),Object(dt.a)(Vn,"course_group_info","all"),Object(dt.a)(Vn,"teacher_comment","all"),Vn)},((Kn=Kt.task_status)===null||Kn===void 0?void 0:Kn.length)>0&&t.a.createElement(bt.a.Item,{name:"task_status"},t.a.createElement(Oe.a.Group,{value:[],style:{width:"100%"}},t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},Kt.task_status&&Kt.task_status.map(function(Cn,kt){return t.a.createElement(Oe.a,{name:"task_status",value:Cn.id},Cn.name,"(",Cn.count,")")}))))),((lr=Kt.course_group_info)===null||lr===void 0?void 0:lr.length)>0&&t.a.createElement(bt.a.Item,{name:"course_group_info"},t.a.createElement(Oe.a.Group,{style:{width:"100%"}},t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"font14",flex:"80px"},"\u5206\u73ED\u60C5\u51B5:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1",id:"divhe",style:{height:it+"px",overflow:"hidden"}},(Yn=Kt.course_group_info)===null||Yn===void 0?void 0:Yn.map(function(Cn,kt){return t.a.createElement(Oe.a,{value:Cn.course_group_id},Cn.group_group_name,"(",Cn.count,")")})),un&&t.a.createElement("span",{onClick:function(){var kt=document.getElementById("divhe").scrollHeight;it>47?He(47):He(kt)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},it===47?"\u5C55\u5F00":"\u6536\u8D77",it===47?t.a.createElement(zt.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):t.a.createElement(It.a,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((Jn=Kt.teacher_comment)===null||Jn===void 0?void 0:Jn.length)>0&&t.a.createElement(bt.a.Item,{name:"teacher_comment"},t.a.createElement(Oe.a.Group,{style:{width:"100%"}},t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},Kt.teacher_comment&&Kt.teacher_comment.map(function(Cn,kt){return t.a.createElement(Oe.a,{value:String(Cn.id)},Cn.name,"(",Cn.count,")")})))))),t.a.createElement(A.a,{align:"middle"},t.a.createElement(m.a,{flex:"1"},t.a.createElement(A.a,{align:"middle"},t.a.createElement(m.a,null,t.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(kt){nt.search=kt,nt.page=1,wn()},style:{width:240}})),t.a.createElement(m.a,null,t.a.createElement("span",{className:"ml5"},t.a.createElement("span",{className:"c-red"},Kt.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",Kt.work_count,"\u4E2A\u5B66\u751F\uFF09")))),t.a.createElement(m.a,null,Object(ge.c)()&&Kt.code_review&&t.a.createElement(N.a,{className:"ml10",onClick:function(){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:Kt.student_works.map(function(kt){return kt.id}),params:nt}})}},t.a.createElement("span",{className:"".concat(oe.a.tr1," iconfont icon-daimachazhong")}),"\u4EE3\u7801\u67E5\u91CD"),Object(ge.c)()&&Zn&&t.a.createElement(N.a,{className:"ml10",onClick:ar},t.a.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),(Kt==null||((fr=Kt.homework_status)===null||fr===void 0)?void 0:fr.includes("\u5DF2\u622A\u6B62"))&&Object(ge.c)()&&t.a.createElement(N.a,{className:"ml10",onClick:function(){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",selectArrs:Kt.student_works.map(function(kt){return kt.id}),params:nt}})}},t.a.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),t.a.createElement(N.a,{className:"ml10",onClick:function(){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4",selectArrs:Kt.student_works.map(function(kt){return kt.id}),params:nt}})}},t.a.createElement(on.a,{className:"mr5"}),"\u4E00\u952E\u70B9\u8BC4"),((Kt==null||((Q=Kt.homework_status)===null||Q===void 0)?void 0:Q.includes("\u63D0\u4EA4\u4E2D"))||(Kt==null||((Se=Kt.homework_status)===null||Se===void 0)?void 0:Se.includes("\u8865\u4EA4\u4E2D"))||(Kt==null||((We=Kt.homework_status)===null||We===void 0)?void 0:We.includes("\u8FDB\u884C\u4E2D")))&&t.a.createElement(N.a,{className:"ml10",onClick:function(){Ft(!0)}},"\u4E00\u952E\u6253\u56DE"),Object(ge.c)()&&t.a.createElement(Le.a,{overlay:Er,className:"ml10"},t.a.createElement(N.a,null,t.a.createElement(dn.a,null),"\u5BFC\u51FA",t.a.createElement(Ie.a,null)))))),t.a.createElement(A.a,{style:{justifyContent:"end",marginTop:"5px"}},Object(ge.c)()&&Zn&&t.a.createElement("span",null,t.a.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),t.a.createElement(F.a,{className:"mt30",loading:lt["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:function(kt){return{onClick:function(Sn){window.open("/classrooms/".concat(nt.coursesId,"/shixun_homework/").concat(nt.categoryId,"/").concat(kt.id,"/comment"),"_blank")}}},dataSource:Kt.student_works,columns:vr,onChange:function(kt,pn,Sn){Sn.field&&(nt.order=Sn.field),Sn.order||(nt.b_order="asc"),Sn.order==="ascend"&&(nt.b_order="asc"),Sn.order==="descend"&&(nt.b_order="desc"),Sn.order||(nt.b_order="asc"),wn()}}),t.a.createElement(xe,null),t.a.createElement(pe,null),t.a.createElement(ot.a,null)),t.a.createElement(b.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Xt,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(r.a)(v.a.mark(function Cn(){var kt,pn;return v.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(!(Yr===2)){Rt.next=13;break}if(!(qt.length<=0)){Rt.next=4;break}return g.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),Rt.abrupt("return");case 4:if(Ce){Rt.next=7;break}return g.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),Rt.abrupt("return");case 7:return Rt.next=9,Object(ft.a)("/api/homework_commons/".concat(nt.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:Ce,status:qt}});case 9:kt=Rt.sent,kt.status===0&&(Br(kt),Ft(!1),Jt(!0)),Rt.next=32;break;case 13:if(!($e===0||na===0)){Rt.next=16;break}Rt.next=22;break;case 16:if($e){Rt.next=19;break}return g.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),Rt.abrupt("return");case 19:if(na){Rt.next=22;break}return g.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),Rt.abrupt("return");case 22:if(!($e>na)){Rt.next=25;break}return g.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),Rt.abrupt("return");case 25:if(Ce){Rt.next=28;break}return g.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),Rt.abrupt("return");case 28:return Rt.next=30,Object(ft.a)("/api/homework_commons/".concat(nt.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:Ce,min_score:$e,max_score:na}});case 30:pn=Rt.sent,pn.status===0&&(Br(pn),Ft(!1),Jt(!0));case 32:case"end":return Rt.stop()}},Cn)})),onCancel:function(){Ft(!1),br()}},t.a.createElement("div",{style:{padding:"32px"}},t.a.createElement("div",null,t.a.createElement("div",null,t.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),t.a.createElement(de.a.Group,{value:Yr,onChange:function(kt){Ka(kt.target.value)}},t.a.createElement(de.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),t.a.createElement(de.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),Yr===1&&t.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},t.a.createElement("span",{style:{width:"70px",textAlign:"end"}},t.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),t.a.createElement(Ee.a,{min:0,max:100,value:$e,onChange:function(kt){return tt(kt)},style:{width:"100px"}}),t.a.createElement("span",{style:{width:"80px",textAlign:"end"}},t.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),t.a.createElement(Ee.a,{min:0,max:100,value:na,onChange:function(kt){return Ca(kt)},style:{width:"100px"}})),Yr===2&&t.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},t.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),t.a.createElement(Oe.a.Group,{onChange:function(kt){An(Object(f.a)(kt))},style:{width:"100%"}},(Xe=Kt.task_status)===null||Xe===void 0?void 0:Xe.map(function(Cn,kt){return t.a.createElement(Oe.a,{name:"task_status",value:Cn.id},Cn.name,"(",Cn.count,")")}))),t.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},t.a.createElement("span",{style:{width:"70px",textAlign:"end"}},t.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),t.a.createElement(G.a,{className:oe.a.MdEditor,onChange:function(kt){return he(kt)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),t.a.createElement(b.a,{visible:Nn,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(r.a)(v.a.mark(function Cn(){var kt,pn;return v.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(!(Yr===2)){Rt.next=7;break}return Rt.next=3,Object(ft.a)("/api/homework_commons/".concat(nt.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:Ce,status:qt}});case 3:kt=Rt.sent,kt.status===0&&(g.b.info("\u6253\u56DE\u6210\u529F"),br(),wn(),Jt(!1)),Rt.next=11;break;case 7:return Rt.next=9,Object(ft.a)("/api/homework_commons/".concat(nt.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:nt.categoryId,comment:Ce,min_score:$e,max_score:na}});case 9:pn=Rt.sent,pn.status===0&&(g.b.info("\u6253\u56DE\u6210\u529F"),br(),wn(),Jt(!1));case 11:case"end":return Rt.stop()}},Cn)})),onCancel:function(){br(),Jt(!1)}},t.a.createElement("div",{style:{padding:"32px"}},Yr===1&&t.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",$e,"-",na,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),Yr===2&&t.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((ut=Kt.task_status)===null||ut===void 0?void 0:ut.filter(function(Cn){return qt==null?void 0:qt.includes(Cn.id)}).map(function(Cn){return Cn.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),t.a.createElement("br",null),t.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Lr==null?void 0:Lr.count,"\u540D\u5B66\u751F")))),t.a.createElement(Ye,null),t.a.createElement("aside",{className:"tc mb50 mt30"},t.a.createElement(_.a,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:yr,current:nt.page||1,defaultPageSize:20,total:Kt.work_count})))},tn=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading,Hn=zn.user;return{shixunHomeworks:_n,loading:yn.effects,user:Hn}})(Mt),sn=P("fOrg"),nn=P("+KLJ"),rn=function(_n){var yn,Hn=_n.shixunHomeworks,mr=_n.loading,Xn=_n.dispatch,Vn=Object(s.i)(),Kn=Object(a.useState)(Object(B.a)(Object(B.a)({},{page:1,limit:20,group_ids:[]}),Vn)),lr=Object(u.a)(Kn,2),Yn=lr[0],Jn=lr[1],fr=Object(s.h)(),Q=Hn.codeReview,Se=Object(a.useState)({}),We=Object(u.a)(Se,2),Xe=We[0],ut=We[1],Ke=bt.a.useForm(),lt=Object(u.a)(Ke,1),mt=lt[0];Yn.order="code_rate",Yn.sort="desc",Yn.category=Yn.categoryId,Object(a.useEffect)(function(){ht(),console.log("params",Yn)},[Yn]),Object(a.useEffect)(function(){Hn.actionTabs.key==="\u6267\u884C\u4EE3\u7801\u67E5\u91CD"&&ht()},[Hn.actionTabs.key]);var ht=function(){var vt=Object(r.a)(v.a.mark(function nt(){var Dt;return v.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Xn({type:"shixunHomeworks/getCodeReview",payload:Object(B.a)({},Yn)});case 2:Dt=Yt.sent,Dt.status===-2&&setTimeout(function(){return ht()},1500);case 4:case"end":return Yt.stop()}},nt)}));return function(){return vt.apply(this,arguments)}}(),_t=function(){},$t=function(nt,Dt){Yn.page=nt,Yn.limit=20,Xn({type:"shixunHomeworks/getCodeReview",payload:Object(B.a)({},Yn)})},Nt=[{title:"\u5E8F\u53F7",dataIndex:"number",render:function(nt,Dt,Gt){return Yn.limit*(Yn.page-1)+Gt+1}},{title:"\u59D3\u540D",dataIndex:"username"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:function(nt){return t.a.createElement("span",{className:"c-orange"},nt)}},{title:"\u64CD\u4F5C",dataInex:"action",render:function(nt,Dt){return t.a.createElement("div",null,t.a.createElement(h.a,{target:"_blank",to:"/classrooms/".concat(Yn.coursesId,"/shixun_homework/").concat(Yn.categoryId,"/review_detail/").concat(Dt.user_id)},"\u67E5\u770B"),t.a.createElement("br",null))}}];return t.a.createElement("section",{className:"minH500 bg-white pl30 pr30 pt10"},(Q==null?void 0:Q.status)===-2&&t.a.createElement(nn.a,{message:"\u67E5\u91CD\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u2026\u2026",className:"mb10 font14",type:"error"}),t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"1"},t.a.createElement("p",{className:"mt10"},"\u67E5\u91CD\u65F6\u95F4\uFF1A",Q.last_review_time,t.a.createElement(N.a,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:function(){Xn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Yn}})}},"\u4EE3\u7801\u67E5\u91CD"))),t.a.createElement(m.a,null,t.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(nt){Yn.search=nt,Xn({type:"shixunHomeworks/getCodeReview",payload:Yn})},style:{width:200}}),t.a.createElement("span",{className:"ml5 c-red"}))),((yn=Q.group_info)===null||yn===void 0?void 0:yn.length)>0&&t.a.createElement(t.a.Fragment,null,t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{checked:Yn.group_ids=="",value:"all",onChange:function(nt){delete Yn.group_ids,Yn.group_ids=[],Yn.page=1,Jn(Object(B.a)({},Yn))}},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},Q.group_info&&Q.group_info.map(function(vt,nt){return t.a.createElement(Oe.a,{value:vt.id,checked:Yn.group_ids.includes(vt.id),onChange:function(Gt){Gt.target.checked?Yn.group_ids.push(vt.id):Yn.group_ids.splice(Yn.group_ids.indexOf(vt.id),1),Yn.page=1,Jn(Object(B.a)({},Yn))}},vt.name,"(",vt.members_count,")")}))),t.a.createElement(A.a,{className:"font14 c-red mt5"},t.a.createElement(m.a,null,"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u67E5\u91CD\u5206\u73ED"))),t.a.createElement("p",{className:"mt10"},t.a.createElement("span",{className:"c-red"},Q.copy_reviews_count),"\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08",Q.all_reviews_count,"\u4F5C\u54C1\uFF09"),t.a.createElement(F.a,{className:"mt30",loading:mr["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:Q.users_reviews,columns:Nt,onChange:function(nt,Dt,Gt){Gt.order==="ascend"&&(Yn.b_order="asc"),Gt.order==="descend"&&(Yn.b_order="desc"),Gt.order||delete Yn.b_order,Xn({type:"shixunHomeworks/getCodeReview",payload:Object(B.a)({},Yn)})}}),t.a.createElement("aside",{className:"tc mb50 mt30"},t.a.createElement(_.a,{showSizeChanger:!1,onChange:$t,defaultCurrent:Yn.page||1,current:Yn.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:Q.copy_reviews_count})))},St=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn.effects}})(rn),Tt=P("OaEy"),ct=P("2fM7"),ye=P("iQDF"),Pe=P("+eQT"),Lt=P("zetH"),pt=P.n(Lt),en=P("/zsF"),an=P("PArb"),st=P("w5pM"),xt=P("LvDl"),Ut=Pe.a.RangePicker,gn=ct.a.Option,Mn=function(_n){var yn,Hn,mr,Xn,Vn,Kn,lr=_n.shixunHomeworks,Yn=_n.loading,Jn=_n.dispatch,fr=Object(s.i)(),Q=lr.workSetting,Se=lr.workList,We=lr.changeData,Xe=Object(a.useState)(!0),ut=Object(u.a)(Xe,2),Ke=ut[0],lt=ut[1],mt=Object(a.useState)(!1),ht=Object(u.a)(mt,2),_t=ht[0],$t=ht[1],Nt=Object(a.useState)([]),vt=Object(u.a)(Nt,2),nt=vt[0],Dt=vt[1],Gt=Object(a.useState)([]),Yt=Object(u.a)(Gt,2),wt=Yt[0],bn=Yt[1],En=Object(a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0}),Zn=Object(u.a)(En,2),jt=Zn[0],Wt=Zn[1];Object(a.useEffect)(function(){return vn(),function(){Dt([].concat())}},[]);var vn=function(){Jn({type:"shixunHomeworks/getWorkSetting",payload:Object(B.a)({},fr)})};Object(a.useEffect)(function(){var Vt;if(!(Q!=null&&Q.course_id))return;Object.keys(jt).map(function(et){jt[et]=Q[et]}),(!jt.allow_late||!jt.unified_late)&&(jt.late_penalty=5),nt=JSON.parse(JSON.stringify(Q.group_settings.map(function(et){return Object(B.a)(Object(B.a)({},et),{},{group_name:[et.group_name]})}).filter(function(et){return et.publish_time!==null}))),wt=JSON.parse(JSON.stringify(Q.allow_late_settings.map(function(et){return Object(B.a)(Object(B.a)({},et),{},{group_name:[et.group_name]})}).filter(function(et){return et.late_time!==null}))),Wt(Object(B.a)({},jt)),Dt(Object(f.a)(nt)),((Vt=wt)===null||Vt===void 0?void 0:Vt.length)<=0?bn([{late_penalty:5}]):bn(Object(f.a)(wt))},[Q]);var Kt=function(){var et,Ve,Ht=JSON.parse(JSON.stringify(jt));if(Ht.challenge_settings.filter(function(Xt){return!Xt.hide}),Ht.categoryId=fr.categoryId,(et=Ht.challenge_settings)!==null&&et!==void 0&&et.every(function(Xt){return!Xt.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(jt.unified_setting||(nt=(Ve=nt)===null||Ve===void 0?void 0:Ve.map(function(Xt){var Ft;if(!Xt.publish_time||!Xt.end_time)throw g.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Xt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Xt.group_name=typeof(Xt==null?void 0:Xt.group_name)=="string"?[Xt==null?void 0:Xt.group_name]:Xt==null?void 0:Xt.group_name,Xt.group_id=(Ft=Q.group_settings)===null||Ft===void 0?void 0:Ft.filter(function(On){var Ln;return Xt==null||((Ln=Xt.group_name)===null||Ln===void 0)?void 0:Ln.includes(On.group_name)}).map(function(On){return On.group_id||On.id}).toString().split(","),Xt})),Ht.group_settings=nt,jt.allow_late)if(jt.unified_late){if(jt.late_penalty===null||jt.late_penalty===void 0||jt.late_penalty<0||jt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!jt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Ct;wt=(Ct=wt)===null||Ct===void 0?void 0:Ct.map(function(Xt){var Ft,On;if(Xt.late_penalty===null||Xt.late_penalty===void 0||Xt.late_penalty<0||Xt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Xt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Xt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Xt.group_name=typeof(Xt==null?void 0:Xt.group_name)=="string"?[Xt==null?void 0:Xt.group_name]:Xt==null?void 0:Xt.group_name,Xt.group_id=Xt==null||((Ft=Xt.group_name)===null||Ft===void 0||((On=Ft.map(function(Ln){var qt,An,Pn=(qt=Q.group_settings)===null||qt===void 0||((An=qt.filter(function(qn){return(qn==null?void 0:qn.group_name)===Ln}))===null||An===void 0)?void 0:An[0];return Pn==null?void 0:Pn.group_id}))===null||On===void 0))?void 0:On.toString().split(","),Xt}),Ht.allow_late_settings=wt}ln(Ht)},ln=function(et){var Ve,Ht;if(et.total_score===null){g.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(et!=null&&et.work_efficiency&&et.eff_score===null){g.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var Ct=et.challenge_settings.reduce(function(On,Ln){return On+Number(Ln.challenge_score)},0);if((Ct==null?void 0:Ct.toFixed(10))!==((Ve=et.total_score-et.eff_score)===null||Ve===void 0?void 0:Ve.toFixed(10))){g.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(et.total_score,"\u5206"));return}var Xt={shixun_evaluation:et.shixun_evaluation,challenge_settings:et.challenge_settings},Ft=function(){var On=Object(r.a)(v.a.mark(function Ln(){var qt;return v.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return $t(!0),Pn.next=3,Object(ft.a)("/api/homework_commons/".concat(fr.categoryId,"/publish_setting.json"),{method:"post",body:Object(B.a)({},et)});case 3:qt=Pn.sent,qt.status===0&&(g.b.success("\u66F4\u65B0\u6210\u529F"),lt(!0),vn(),Jn({type:"shixunHomeworks/getWorkList",payload:Object(B.a)({},fr)})),$t(!1);case 6:case"end":return Pn.stop()}},Ln)}));return function(){return On.apply(this,arguments)}}();!Object(xt.isEqual)(We,Xt)&&!(Se!=null&&(Ht=Se.homework_status)!==null&&Ht!==void 0&&Ht.includes("\u672A\u53D1\u5E03"))?b.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Ft}):Ft()},Qt=function(et){return et&&et0&&t.a.createElement(A.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},t.a.createElement(m.a,{span:24},t.a.createElement(A.a,null,t.a.createElement(m.a,{span:10}),t.a.createElement(m.a,{span:10},t.a.createElement(A.a,{className:"c-grey-c ml30"},t.a.createElement(m.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),t.a.createElement(m.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),t.a.createElement(m.a,{span:4}))),nt&&nt.map(function(Vt,et){var Ve,Ht;return t.a.createElement(m.a,{span:24,key:et},t.a.createElement(A.a,{gutter:[8,16]},t.a.createElement(m.a,{span:10},t.a.createElement(A.a,{gutter:[8,16]},t.a.createElement(m.a,null,"\u53D1\u5E03\u89C4\u5219 ",et+1),t.a.createElement(m.a,{flex:"1",style:{maxWidth:300}},t.a.createElement(ct.a,{disabled:Ke||!(Se!=null&&(Ve=Se.homework_status)!==null&&Ve!==void 0&&Ve.includes("\u672A\u53D1\u5E03"))&&Vt.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:Vt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(Xt){nt[et].group_name=Xt,nt[et].group_id=Vt.group_id;var Ft=Object(xt.flattenDeep)(nt.map(function(Ln){return Ln.group_name})),On=wt.map(function(Ln){var qt=(Ln==null?void 0:Ln.group_name)||[];return Object(B.a)(Object(B.a)({},Ln),{},{group_name:Object(xt.remove)(qt,function(An){return Ft.includes(An)})})});bn(On),Dt(nt.slice())}},Q.group_settings&&Q.group_settings.map(function(Ct){if(!nt.map(function(Xt){return Xt.group_name}).toString().split(",").includes(String(Ct.group_name)))return t.a.createElement(gn,{value:Ct.group_name,key:Ct.id},Ct.group_name)}))))),t.a.createElement(m.a,{span:10},t.a.createElement("div",{className:"ml30"},t.a.createElement(Ut,{allowClear:!1,disabled:Ke||!(Se!=null&&(Ht=Se.homework_status)!==null&&Ht!==void 0&&Ht.includes("\u672A\u53D1\u5E03"))&&Vt.id&&[!0,!1],style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:Qt,showTime:{format:"HH:mm",defaultValue:[ve()(Object(C.d)(),"HH:mm"),ve()(Object(C.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Vt.publish_time&&[ve()(Vt.publish_time),Vt.end_time?ve()(Vt.end_time):void 0],onChange:function(Xt,Ft){nt[et].publish_time=Ft[0],nt[et].end_time=Ft[1],Dt(Object(f.a)(nt))}}))),!Ke&&t.a.createElement(m.a,{span:4},et>0&&!Vt.id&&t.a.createElement(le.a,{onClick:function(){nt=nt.filter(function(Xt,Ft){return et!==Ft}),Dt(nt.slice()),setTimeout(function(){return Dt(nt.slice())},10)}}),t.a.createElement(st.a,{className:"c-green ml20",onClick:function(){Dt(nt.concat({}))}}))))})),t.a.createElement(an.a,null),t.a.createElement(A.a,null,t.a.createElement(m.a,null,t.a.createElement("h1",null,"\u8865\u4EA4\u8BBE\u7F6E")),t.a.createElement(m.a,{span:24,className:"mt15 pl30"},t.a.createElement(Oe.a,{checked:jt.allow_late,disabled:Ke,onChange:function(){jt.allow_late=!jt.allow_late,wt==""&&bn([{late_penalty:5}]),Wt(Object.assign({},jt))}},t.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u751F\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1)"))),(jt==null?void 0:jt.allow_late)&&t.a.createElement("div",{style:{marginLeft:22}},t.a.createElement("div",{className:"ml30 mt20"},t.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),t.a.createElement(de.a.Group,{disabled:Ke,value:jt.unified_late,onChange:function(et){jt.unified_late=et.target.value,wt==""&&!et.target.value&&bn([{late_penalty:5}]),Wt(Object(B.a)({},jt))}},(jt==null?void 0:jt.unified_setting)&&t.a.createElement(de.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(Q==null||((Kn=Q.group_settings)===null||Kn===void 0)?void 0:Kn.length)&&t.a.createElement(de.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),jt!=null&&jt.unified_late?t.a.createElement(t.a.Fragment,null,t.a.createElement(A.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(m.a,null,"\u8865\u4EA4\u6263\u5206:"),t.a.createElement(m.a,{className:"ml5"},t.a.createElement(Ee.a,{disabled:Ke||!jt.allow_late,value:jt.late_penalty,onChange:function(et){jt.late_penalty=et,Wt(Object.assign({},jt))}})),t.a.createElement(m.a,{flex:"1",className:"ml5"},"\u5206",t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1\u65F6\uFF0C\u5B66\u751F\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),t.a.createElement(A.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(m.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),t.a.createElement(m.a,{className:"ml5"},t.a.createElement(Pe.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ve()(Object(C.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Ke||!jt.allow_late,value:jt.late_time?ve()(jt.late_time):"",disabledDate:Qt,onChange:function(et,Ve){jt.late_time=Ve,Wt(Object.assign({},jt))}})),t.a.createElement(m.a,null,t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):wt.map(function(Vt,et){var Ve;return t.a.createElement(m.a,{span:24,key:et},t.a.createElement(A.a,{className:"mt25"},t.a.createElement(m.a,{style:{marginLeft:30}},t.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",et+1,"\uFF1A"),t.a.createElement(ct.a,{disabled:Ke||!(Se!=null&&(Ve=Se.homework_status)!==null&&Ve!==void 0&&Ve.includes("\u672A\u53D1\u5E03"))&&Vt.id,mode:"multiple",style:{width:306},value:typeof Vt.group_name=="string"?[Vt.group_name]:Vt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(Ct){wt[et].group_name=Ct,wt[et].group_id=Vt.group_id,bn(wt.slice())}},Q.group_settings&&Q.group_settings.map(function(Ht){if(jt!=null&&jt.unified_setting&&!wt.map(function(Ct){return Ct.group_name}).toString().split(",").includes(String(Ht.group_name)))return t.a.createElement(gn,{value:Ht.group_name,key:Ht.id},Ht.group_name);if(nt.map(function(Ct){return Ct.group_name}).toString().split(",").includes(String(Ht.group_name))&&!wt.map(function(Ct){return Ct.group_name}).toString().split(",").includes(String(Ht.group_name)))return t.a.createElement(gn,{value:Ht.group_name,key:Ht.id},Ht.group_name)}))),t.a.createElement(m.a,{className:"ml20"},t.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),t.a.createElement(Ee.a,{min:0,max:100,disabled:Ke,defaultValue:Vt.late_penalty,onChange:function(Ct){wt[et].late_penalty=Ct}})),t.a.createElement(m.a,{className:"ml20"},t.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),t.a.createElement(Pe.a,{disabled:Ke,style:{width:200},showTime:{format:"HH:mm",defaultValue:ve()(Object(C.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Qt,format:"YYYY-MM-DD HH:mm",value:Vt!=null&&Vt.late_time?ve()(Vt.late_time):void 0,onChange:function(Ct,Xt){wt[et].late_time=Xt,bn(Object(f.a)(wt))}})),!Ke&&t.a.createElement(m.a,{className:"ml20"},et>0&&!Vt.id&&t.a.createElement(le.a,{onClick:function(){wt=wt.filter(function(Ct,Xt){return et!==Xt}),bn(wt.slice()),setTimeout(function(){return bn(wt.slice())},10)}}),t.a.createElement(st.a,{className:"c-green ml20",onClick:function(){bn(wt.concat({late_penalty:5}))}}))))})),t.a.createElement(an.a,null),!Ke&&t.a.createElement(m.a,{className:"mb50"},t.a.createElement(N.a,{type:"primary",size:"large",style:{marginTop:"40px"},loading:_t,onClick:function(){return Kt()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){lt(!0),vn()}},"\u53D6\u6D88")))},cr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn.effects}})(Mn),gr=Pe.a.RangePicker,or=ct.a.Option,kn=function(_n){var yn=_n.shixunHomeworks,Hn=_n.loading,mr=_n.dispatch,Xn=Object(s.i)(),Vn=Object(s.h)(),Kn=yn.workSetting,lr=yn.workList,Yn=yn.changeData,Jn=Object(a.useState)(!0),fr=Object(u.a)(Jn,2),Q=fr[0],Se=fr[1],We=Object(a.useState)({}),Xe=Object(u.a)(We,2),ut=Xe[0],Ke=Xe[1],lt=Object(a.useState)(!1),mt=Object(u.a)(lt,2),ht=mt[0],_t=mt[1],$t=bt.a.useForm(),Nt=Object(u.a)($t,1),vt=Nt[0],nt=Object(a.useState)([]),Dt=Object(u.a)(nt,2),Gt=Dt[0],Yt=Dt[1],wt=Object(a.useState)([]),bn=Object(u.a)(wt,2),En=bn[0],Zn=bn[1],jt=Object(a.useState)(!1),Wt=Object(u.a)(jt,2),vn=Wt[0],Kt=Wt[1],ln=Object(a.useState)([]),Qt=Object(u.a)(ln,2),Vt=Qt[0],et=Qt[1],Ve=Object(a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0}),Ht=Object(u.a)(Ve,2),Ct=Ht[0],Xt=Ht[1];Object(a.useEffect)(function(){return Ft(),function(){Yt([].concat())}},[]);var Ft=function(){mr({type:"shixunHomeworks/getWorkSetting",payload:Object(B.a)({},Xn)})};Object(a.useEffect)(function(){if(!(Kn!=null&&Kn.course_id))return;Object.keys(Ct).map(function(qt){Ct[qt]=Kn[qt]}),(!Ct.allow_late||!Ct.unified_late)&&(Ct.late_penalty=5),Gt=JSON.parse(JSON.stringify(Kn.group_settings.map(function(qt){return Object(B.a)(Object(B.a)({},qt),{},{group_name:[qt.group_name]})}).filter(function(qt){return qt.publish_time!==null}))),En=JSON.parse(JSON.stringify(Kn.allow_late_settings.map(function(qt){return Object(B.a)(Object(B.a)({},qt),{},{group_name:[qt.group_name]})}).filter(function(qt){return qt.late_time!==null}))),Xt(Object(B.a)({},Ct)),Yt(Object(f.a)(Gt)),Zn(Object(f.a)(En))},[Kn]);var On=function(){var An,Pn,qn=JSON.parse(JSON.stringify(Ct));if(qn.challenge_settings.filter(function(Jt){return!Jt.hide}),qn.categoryId=Xn.categoryId,(An=qn.challenge_settings)!==null&&An!==void 0&&An.every(function(Jt){return!Jt.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Ct.unified_setting||(Gt=(Pn=Gt)===null||Pn===void 0?void 0:Pn.map(function(Jt){var Bn;if(!Jt.publish_time||!Jt.end_time)throw g.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Jt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Jt.group_name=typeof(Jt==null?void 0:Jt.group_name)=="string"?[Jt==null?void 0:Jt.group_name]:Jt==null?void 0:Jt.group_name,Jt.group_id=(Bn=Kn.group_settings)===null||Bn===void 0?void 0:Bn.filter(function(Tr){var Lr;return Jt==null||((Lr=Jt.group_name)===null||Lr===void 0)?void 0:Lr.includes(Tr.group_name)}).map(function(Tr){return Tr.group_id||Tr.id}).toString().split(","),Jt})),qn.group_settings=Gt,Ct.allow_late)if(Ct.unified_late){if(Ct.late_penalty===null||Ct.late_penalty===void 0||Ct.late_penalty<0||Ct.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ct.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Nn;En=(Nn=En)===null||Nn===void 0?void 0:Nn.map(function(Jt){var Bn,Tr;if(Jt.late_penalty===null||Jt.late_penalty===void 0||Jt.late_penalty<0||Jt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Jt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Jt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Jt.group_name=typeof(Jt==null?void 0:Jt.group_name)=="string"?[Jt==null?void 0:Jt.group_name]:Jt==null?void 0:Jt.group_name,Jt.group_id=Jt==null||((Bn=Jt.group_name)===null||Bn===void 0||((Tr=Bn.map(function(Lr){var Br,oa,Xr=(Br=Kn.group_settings)===null||Br===void 0||((oa=Br.filter(function(Yr){return(Yr==null?void 0:Yr.group_name)===Lr}))===null||oa===void 0)?void 0:oa[0];return Xr==null?void 0:Xr.group_id}))===null||Tr===void 0))?void 0:Tr.toString().split(","),Jt}),qn.allow_late_settings=En}Ln(qn)},Ln=function(An){var Pn,qn;if(console.log(An.total_score,An.eff_score),An.total_score===null){g.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(An!=null&&An.work_efficiency&&An.eff_score===null){g.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var Nn=An.challenge_settings.reduce(function(Tr,Lr){return Tr+Number(Lr.challenge_score)},0);if((Nn==null?void 0:Nn.toFixed(10))!==((Pn=An.total_score-An.eff_score)===null||Pn===void 0?void 0:Pn.toFixed(10))){g.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(An.total_score,"\u5206"));return}var Jt={shixun_evaluation:An.shixun_evaluation,challenge_settings:An.challenge_settings},Bn=function(){var Tr=Object(r.a)(v.a.mark(function Lr(){var Br;return v.a.wrap(function(Xr){for(;;)switch(Xr.prev=Xr.next){case 0:return _t(!0),Xr.next=3,Object(ft.a)("/api/homework_commons/".concat(Xn.categoryId,"/public_setting.json"),{method:"post",body:Object(B.a)({},An)});case 3:Br=Xr.sent,Br.status===0&&(g.b.success("\u66F4\u65B0\u6210\u529F"),Se(!0),Ft(),mr({type:"shixunHomeworks/getWorkList",payload:Object(B.a)({},Xn)})),_t(!1);case 6:case"end":return Xr.stop()}},Lr)}));return function(){return Tr.apply(this,arguments)}}();!Object(xt.isEqual)(Yn,Jt)&&!(lr!=null&&(qn=lr.homework_status)!==null&&qn!==void 0&&qn.includes("\u672A\u53D1\u5E03"))?b.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Bn}):Bn()};return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10"].join(" ")},t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"1"},t.a.createElement("span",{style:{fontSize:"16px"}},"\u516C\u5F00\u8BBE\u7F6E")),t.a.createElement(m.a,null,(Kn==null?void 0:Kn.can_edit)&&t.a.createElement(N.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Se(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),t.a.createElement(m.a,{span:24,className:"mt15 pl30"},t.a.createElement(Oe.a,{checked:Ct.score_open,disabled:Q,onChange:function(An){Ct.score_open=An.target.checked,Xt(Object.assign({},Ct))}},t.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u4F5C\u54C1\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9)")),t.a.createElement(m.a,{span:24,className:"mt15 pl30"},t.a.createElement(Oe.a,{checked:Ct.answer_public,disabled:Q,onChange:function(An){Ct.answer_public=An.target.checked,Xt(Object.assign({},Ct))}},t.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5B9E\u8BAD\u53C2\u8003\u7B54\u6848\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B\u7B54\u6848)")),t.a.createElement(m.a,{span:24,className:"mt15 pl30 pb40"},t.a.createElement(Oe.a,{checked:Ct.comment_public,disabled:Q,onChange:function(An){Ct.comment_public=An.target.checked,Xt(Object.assign({},Ct))}},t.a.createElement("strong",null,"\u516C\u5F00\u8BC4\u8BBA")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BFE\u7A0B\u5B9E\u9A8C\u7684\u8BC4\u8BBA\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B)")),!Q&&t.a.createElement(m.a,{className:"mb50"},t.a.createElement(N.a,{type:"primary",size:"large",loading:ht,onClick:function(){return On()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Se(!0),Ft()}},"\u53D6\u6D88"))),t.a.createElement(b.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:vn,onCancel:function(){return Kt(!1)}},t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",t.a.createElement(i.a.Search,{onChange:function(An){}})),t.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(An,Pn){et(An)}},pagination:!1,dataSource:[{name:"1"}],columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]}))))},Fr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn.effects}})(kn),ea=function(_n){var yn=_n.shixunHomeworks,Hn=_n.loading,mr=_n.dispatch,Xn=Object(s.i)(),Vn=yn.workSetting,Kn=yn.workList,lr=yn.changeData,Yn=Object(a.useState)(!0),Jn=Object(u.a)(Yn,2),fr=Jn[0],Q=Jn[1],Se=Object(a.useState)(!1),We=Object(u.a)(Se,2),Xe=We[0],ut=We[1],Ke=Object(a.useState)(!1),lt=Object(u.a)(Ke,2),mt=lt[0],ht=lt[1],_t=bt.a.useForm(),$t=Object(u.a)(_t,1),Nt=$t[0],vt=Object(a.useState)([]),nt=Object(u.a)(vt,2),Dt=nt[0],Gt=nt[1],Yt=Object(a.useState)([]),wt=Object(u.a)(Yt,2),bn=wt[0],En=wt[1],Zn=Object(a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,is_onpage_time:!0,training_time_rules:1}),jt=Object(u.a)(Zn,2),Wt=jt[0],vn=jt[1];Object(a.useEffect)(function(){return Kt(),function(){Gt([].concat())}},[]);var Kt=function(){mr({type:"shixunHomeworks/getWorkSetting",payload:Object(B.a)({},Xn)})};Object(a.useEffect)(function(){if(!(Vn!=null&&Vn.course_id))return;Object.keys(Wt).map(function(et){Wt[et]=Vn[et]}),(!Wt.allow_late||!Wt.unified_late)&&(Wt.late_penalty=5),Dt=JSON.parse(JSON.stringify(Vn.group_settings.map(function(et){return Object(B.a)(Object(B.a)({},et),{},{group_name:[et.group_name]})}).filter(function(et){return et.publish_time!==null}))),bn=JSON.parse(JSON.stringify(Vn.allow_late_settings.map(function(et){return Object(B.a)(Object(B.a)({},et),{},{group_name:[et.group_name]})}).filter(function(et){return et.late_time!==null}))),vn(Object(B.a)({},Wt)),Gt(Object(f.a)(Dt)),En(Object(f.a)(bn))},[Vn]);var ln=function(){var Ve,Ht,Ct=JSON.parse(JSON.stringify(Wt));if(Ct.challenge_settings.filter(function(Ft){return!Ft.hide}),Ct.categoryId=Xn.categoryId,(Ve=Ct.challenge_settings)!==null&&Ve!==void 0&&Ve.every(function(Ft){return!Ft.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Wt.unified_setting||(Dt=(Ht=Dt)===null||Ht===void 0?void 0:Ht.map(function(Ft){var On;if(!Ft.publish_time||!Ft.end_time)throw g.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ft.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ft.group_name=typeof(Ft==null?void 0:Ft.group_name)=="string"?[Ft==null?void 0:Ft.group_name]:Ft==null?void 0:Ft.group_name,Ft.group_id=(On=Vn.group_settings)===null||On===void 0?void 0:On.filter(function(Ln){var qt;return Ft==null||((qt=Ft.group_name)===null||qt===void 0)?void 0:qt.includes(Ln.group_name)}).map(function(Ln){return Ln.group_id||Ln.id}).toString().split(","),Ft})),Ct.group_settings=Dt,Wt.allow_late)if(Wt.unified_late){if(Wt.late_penalty===null||Wt.late_penalty===void 0||Wt.late_penalty<0||Wt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Wt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Xt;bn=(Xt=bn)===null||Xt===void 0?void 0:Xt.map(function(Ft){var On,Ln;if(Ft.late_penalty===null||Ft.late_penalty===void 0||Ft.late_penalty<0||Ft.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ft.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ft.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ft.group_name=typeof(Ft==null?void 0:Ft.group_name)=="string"?[Ft==null?void 0:Ft.group_name]:Ft==null?void 0:Ft.group_name,Ft.group_id=Ft==null||((On=Ft.group_name)===null||On===void 0||((Ln=On.map(function(qt){var An,Pn,qn=(An=Vn.group_settings)===null||An===void 0||((Pn=An.filter(function(Nn){return(Nn==null?void 0:Nn.group_name)===qt}))===null||Pn===void 0)?void 0:Pn[0];return qn==null?void 0:qn.group_id}))===null||Ln===void 0))?void 0:Ln.toString().split(","),Ft}),Ct.allow_late_settings=bn}Qt(Ct)},Qt=function(Ve){var Ht,Ct;if(console.log(Ve.total_score,Ve.eff_score),Ve.total_score===null){g.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ve!=null&&Ve.work_efficiency&&Ve.eff_score===null){g.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var Xt=Ve.challenge_settings.reduce(function(Ln,qt){return Ln+Number(qt.challenge_score)},0);if((Xt==null?void 0:Xt.toFixed(10))!==((Ht=Ve.total_score-Ve.eff_score)===null||Ht===void 0?void 0:Ht.toFixed(10))){g.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(Ve.total_score,"\u5206"));return}var Ft={shixun_evaluation:Ve.shixun_evaluation,challenge_settings:Ve.challenge_settings},On=function(){var Ln=Object(r.a)(v.a.mark(function qt(){var An;return v.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return ut(!0),qn.next=3,Object(ft.a)("/api/homework_commons/".concat(Xn.categoryId,"/score_setting.json"),{method:"post",body:Object(B.a)({},Ve)});case 3:An=qn.sent,An.status===0&&(g.b.success("\u66F4\u65B0\u6210\u529F"),Q(!0),Kt(),mr({type:"shixunHomeworks/getWorkList",payload:Object(B.a)({},Xn)})),ut(!1);case 6:case"end":return qn.stop()}},qt)}));return function(){return Ln.apply(this,arguments)}}();!Object(xt.isEqual)(lr,Ft)&&!(Kn!=null&&(Ct=Kn.homework_status)!==null&&Ct!==void 0&&Ct.includes("\u672A\u53D1\u5E03"))?b.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:On}):On()},Vt=function(){var Ve,Ht=Wt.eff_score,Ct=Wt.total_score,Xt=Ct-Ht,Ft=(Ve=Wt.challenge_settings)===null||Ve===void 0?void 0:Ve.filter(function(Jt){return Jt.checked}).length;if(!Ft){Wt.challenge_settings.map(function(Jt,Bn){Jt.challenge_score=0});return}var On=Wt.challenge_settings.filter(function(Jt){return Jt.checked}).map(function(Jt){return Jt.challenge_exp}).reduce(function(Jt,Bn){return Jt+Bn}),Ln=Xt/On,qt=0,An=0,Pn;switch(Wt.shixun_evaluation){case 0:var qn=(Xt/Ft).toFixed(1);Wt.challenge_settings.map(function(Jt,Bn){Jt.checked?(qt=Bn,Jt.challenge_score=qn>0?qn:0):Jt.challenge_score=0}),Pn=(Xt-qn*(Ft-1)).toFixed(1),Wt.challenge_settings[qt].challenge_score=Pn>0?Pn:0;break;case 1:Wt.challenge_settings.map(function(Jt,Bn){Jt.checked?(qt=Bn,An+=Number((Math.round(Jt.challenge_exp*Ln*10)/10).toFixed(1)),Jt.challenge_score=(Math.round(Jt.challenge_exp*Ln*10)/10).toFixed(1)):Jt.challenge_score=0});var Nn=Wt.challenge_settings[qt].challenge_score;Pn=(Xt-An+Number(Nn)).toFixed(1),Wt.challenge_settings[qt].challenge_score=Pn>0?Pn:0;break}};return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10 mb20 pb10"].join(" ")},t.a.createElement(A.a,{className:"mt25"},t.a.createElement(m.a,{flex:"1"}),t.a.createElement(m.a,null,(Vn==null?void 0:Vn.can_edit)&&t.a.createElement(N.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Q(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),t.a.createElement(m.a,{span:24,className:"pl30 mt10"},t.a.createElement("strong",null,"\u603B\u5206\u503C\uFF1A"),t.a.createElement(Ee.a,{min:0,value:Wt.total_score,disabled:fr,onChange:function(Ve){Wt.total_score=Ve,vn(Object.assign({},Wt)),Vt()}}),"\xA0\u5206"),t.a.createElement(m.a,{span:24,style:{paddingLeft:60,marginTop:20}},t.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u7684\u9009\u62E9\u548C\u5206\u503C\u8BBE\u7F6E"),t.a.createElement("span",{className:"c-orange"},"\xA0(\u603B\u5206\u503C = \u6548\u7387\u5206+ \u5173\u5361\u4EFB\u52A1\u603B\u5206)"))),t.a.createElement(A.a,{style:{paddingLeft:85,marginTop:30}},t.a.createElement(m.a,{flex:"1"},t.a.createElement(Oe.a,{disabled:fr,checked:Wt.work_efficiency,onChange:function(Ve){Wt.work_efficiency=Ve.target.checked,Wt.work_efficiency?Wt.eff_score=20:Wt.eff_score=0,vn(Object.assign({},Wt)),Vt()}},t.a.createElement("strong",null,"\u6548\u7387\u5206")),t.a.createElement("span",{className:"c-orange font12",style:{marginLeft:-4}},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u6700\u7EC8\u6210\u7EE9\u5305\u542B\u6548\u7387\u5206\u3002\u6548\u7387\u5206\u5728\u4F5C\u4E1A\u622A\u6B62\u6216\u8005\u8865\u4EA4\u7ED3\u675F\u540E\u7531\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210)")),t.a.createElement(m.a,{className:pt.a.efficiency},"\uFF08\u5B66\u751F\u5B66\u4E60\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)",t.a.createElement("br",null),"\uFF08\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5B66\u4E60\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8\u5B66\u4E60\u6548\u7387 * \u5206\u503C\uFF09",t.a.createElement("br",null),t.a.createElement("span",{style:{marginLeft:10}},"\u53E6\uFF1A\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B66\u751F\u6548\u7387\u5206\u8BB0 0 \u5206"))),t.a.createElement(A.a,{align:"middle",style:{paddingLeft:105}},t.a.createElement(m.a,null,t.a.createElement("span",{className:"mr5"},"\u6548\u7387\u5206"),t.a.createElement(Ee.a,{min:0,disabled:fr||!Wt.work_efficiency,value:Wt.eff_score,step:.1,onChange:function(Ve){Wt.eff_score=Ve,vn(Object.assign({},Wt)),Vt()}}),t.a.createElement("span",null,"\xA0\u5206"))),t.a.createElement(A.a,{align:"middle",style:{paddingLeft:105,marginTop:"20px"}},t.a.createElement(m.a,null,t.a.createElement("span",{className:"mr5"},"\u5B9E\u8BAD\u8017\u65F6\u89C4\u5219\uFF1A"),t.a.createElement(de.a.Group,{disabled:fr,value:Wt.training_time_rules,onChange:function(Ve){Wt.training_time_rules=Ve.target.value,vn(Object.assign({},Wt)),Vt()}},t.a.createElement(de.a,{value:1},"\u9875\u9762\u505C\u7559\u65F6\u957F"),t.a.createElement(de.a,{value:2},"\u5173\u5361\u603B\u8017\u65F6"),t.a.createElement(de.a,{value:3},"\u5373\u65F6\u901A\u5173\u65F6\u957F",t.a.createElement("i",{onClick:function(Ve){Ve.stopPropagation(),Ve.preventDefault(),ht(!0)},style:{marginLeft:10,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"}))))),t.a.createElement(A.a,{align:"middle",style:{paddingLeft:85,marginTop:35}},t.a.createElement(m.a,null,t.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u5206\u503C\u8BBE\u7F6E\u89C4\u5219")),t.a.createElement(m.a,{flex:"1"},t.a.createElement(bt.a.Item,{className:"ml5"},t.a.createElement(de.a.Group,{disabled:fr,value:Wt.shixun_evaluation,onChange:function(Ve){Wt.shixun_evaluation=Ve.target.value,vn(Object.assign({},Wt)),Vt()}},t.a.createElement(de.a,{value:0},"\u5747\u5206\u6BD4\u4F8B"),t.a.createElement(de.a,{value:1},"\u96BE\u6613\u5EA6"),t.a.createElement(de.a,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))))),t.a.createElement(A.a,null,t.a.createElement(m.a,{style:{marginLeft:145,marginTop:15}},t.a.createElement("span",{className:"font16"},"\u5173\u5361\u540D\u79F0"),t.a.createElement("span",{className:"font14 ml5 c-orange"},(Vn!=null&&Vn.task_pass,"(\u8BF7\u9009\u4E2D\u9700\u8981\u5B66\u751F\u5B8C\u6210\u7684\u5173\u5361\uFF0C\u8BE5\u5B9E\u8BAD\u652F\u6301\u8DF3\u5173\u5B66\u4E60)")))),Wt.challenge_settings&&Wt.challenge_settings.map(function(et,Ve){return t.a.createElement(A.a,{key:Ve,align:"middle",style:{paddingLeft:275,marginTop:20}},t.a.createElement(m.a,{flex:"1"},t.a.createElement(Oe.a,{disabled:fr,checked:et.checked,onChange:function(Ct){var Xt=Object(xt.cloneDeep)(Wt.challenge_settings);if(Xt[Ve].checked=Ct.target.checked,Xt!=null&&Xt.every(function(Ft){return!Ft.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}Wt.challenge_settings[Ve].checked=Ct.target.checked,Wt.challenge_settings[Ve].hide=Ct.target.checked,Wt.shixun_evaluation===2&&!Ct.target.checked&&(Wt.challenge_settings[Ve].challenge_score=0),vn(Object(B.a)({},Wt)),Vt()}},t.a.createElement("strong",null,et.challenge_name))),t.a.createElement(m.a,null,!et.checked&&t.a.createElement("span",{className:"tag-style-border-small bg-orange border-raduis-50 c-white mr10"},"\u53EF\u4E0D\u505A")),t.a.createElement(m.a,{flex:"150px"},t.a.createElement(Ee.a,{min:0,step:.1,value:et.challenge_score,disabled:fr||Wt.shixun_evaluation!==2||!et.checked,onChange:function(Ct){Wt.challenge_settings[Ve].challenge_score=Ct,vn(Object(B.a)({},Wt))}}),t.a.createElement("span",{className:"ml10"},"\u5206")),t.a.createElement(m.a,{flex:"300px"},t.a.createElement("span",{className:"tag-style-border-small bg-green c-white mr10"},et.difficulty),"\u91D1\u5E01\u5956\u52B1\u6570\uFF1A ",et.challenge_exp))}),t.a.createElement(A.a,{className:"mt30",style:{paddingLeft:65}},t.a.createElement(m.a,null,t.a.createElement("span",{className:"font16 c-black"},"\u67E5\u770B\u53C2\u8003\u7B54\u6848\u624D\u901A\u8FC7\u8BC4\u6D4B\u7684\u5173\u5361\u6263\u5206\u89C4\u5219"),t.a.createElement("span",{className:"font12 c-grey-c"},"\xA0(\u5B66\u751F\u901A\u8FC7\u8BC4\u6D4B\u540E\u518D\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF0C\u4E0D\u5BF9\u6210\u7EE9\u4EA7\u751F\u5F71\u54CD)"))),t.a.createElement(A.a,{style:{paddingLeft:65}},t.a.createElement(de.a.Group,{disabled:fr,value:Wt.answer_open_evaluation,onChange:function(Ve){Wt.answer_open_evaluation=Ve.target.value,vn(Object(B.a)({},Wt))}},t.a.createElement(de.a,{value:!1,style:{marginTop:15}},t.a.createElement("strong",null,"\u6309\u67E5\u770B\u7B54\u6848\u7EA7\u522B\u6263\u5206"),t.a.createElement("span",{className:"c-grey-c"},"(\u6839\u636E\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7684\u5B9E\u8BAD\u7B54\u6848\u7EA7\u522B(\u89E3\u9898\u601D\u8DEF\u3001\u5B8C\u6574\u7B54\u6848)\uFF0C\u6263\u51CF\u76F8\u5E94\u7684\u5206\u503C)")),t.a.createElement("br",null),t.a.createElement(de.a,{value:!0,style:{marginTop:15}},t.a.createElement("strong",null,"\u4E0D\u6263\u5206")))),!fr&&t.a.createElement(m.a,{className:"mb50",style:{marginTop:"10px"}},t.a.createElement(N.a,{type:"primary",size:"large",loading:Xe,onClick:function(){return ln()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Q(!0),Kt()}},"\u53D6\u6D88")),t.a.createElement(b.a,{visible:mt,width:860,onCancel:function(){ht(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},t.a.createElement("div",{style:{color:"#333333",fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),t.a.createElement("br",null),t.a.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),t.a.createElement("br",null),t.a.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),t.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),t.a.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),t.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),t.a.createElement("br",null),t.a.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),t.a.createElement("br",null),t.a.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),t.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),t.a.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),t.a.createElement("br",null),t.a.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),t.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"3\u3001\u5373\u65F6\u901A\u5173\u65F6\u957F"),t.a.createElement("br",null),t.a.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),t.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),t.a.createElement("br",null),t.a.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u8BA1\u65F6\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))))},Mr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn.effects}})(ea),pr=function(_n){var yn,Hn,mr=_n.shixunHomeworks,Xn=_n.loading,Vn=_n.dispatch,Kn=Object(a.useState)(!0),lr=Object(u.a)(Kn,2),Yn=lr[0],Jn=lr[1],fr=Object(a.useState)(!1),Q=Object(u.a)(fr,2),Se=Q[0],We=Q[1],Xe=Object(a.useState)([]),ut=Object(u.a)(Xe,2),Ke=ut[0],lt=ut[1],mt=Object(a.useState)([]),ht=Object(u.a)(mt,2),_t=ht[0],$t=ht[1],Nt=Object(a.useState)([]),vt=Object(u.a)(Nt,2),nt=vt[0],Dt=vt[1],Gt=Object(a.useState)([]),Yt=Object(u.a)(Gt,2),wt=Yt[0],bn=Yt[1],En=Object(s.i)();function Zn(){return jt.apply(this,arguments)}function jt(){return jt=Object(r.a)(v.a.mark(function ln(){var Qt;return v.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(ft.a)("/api/homework_commons/".concat(En.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Qt=et.sent,$t(Qt);case 4:case"end":return et.stop()}},ln)})),jt.apply(this,arguments)}function Wt(){return vn.apply(this,arguments)}function vn(){return vn=Object(r.a)(v.a.mark(function ln(){var Qt;return v.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(ft.a)("/api/courses/".concat(En==null?void 0:En.coursesId,"/teachers"),{method:"get",params:{homework_id:En.categoryId}});case 2:Qt=et.sent,Qt==null||Qt.teacher_list.map(function(Ve){Ve.key=Ve.user_id}),Dt(Qt==null?void 0:Qt.teacher_list),bn(Qt==null?void 0:Qt.teacher_list);case 6:case"end":return et.stop()}},ln)})),vn.apply(this,arguments)}Object(a.useEffect)(function(){Zn(),Wt()},[En]);var Kt=function(){};return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10"].join(" ")},t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"1"},t.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(_t==null?void 0:_t.can_edit)&&t.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){We(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),t.a.createElement(A.a,{style:{marginTop:"20px",marginBottom:"20px"}},(_t==null||((yn=_t.data)===null||yn===void 0)?void 0:yn.length)<=0&&t.a.createElement(De.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),_t==null||((Hn=_t.data)===null||Hn===void 0)?void 0:Hn.map(function(ln){return t.a.createElement("span",{style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px"}},t.a.createElement("span",{style:{flex:"1"}},ln==null?void 0:ln.real_name),(_t==null?void 0:_t.can_edit)&&t.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(r.a)(v.a.mark(function Qt(){var Vt;return v.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Object(ft.a)("/api/homework_commons/".concat(En.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:ln.id}});case 2:Vt=Ve.sent,Vt.status===0&&(g.b.info("\u5220\u9664\u6210\u529F"),Zn(),Wt());case 4:case"end":return Ve.stop()}},Qt)}))},"X"))})),t.a.createElement(A.a,null,!Yn&&t.a.createElement(m.a,{className:"mb50"},t.a.createElement(N.a,{type:"primary",size:"large",onClick:function(){return Kt()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Jn(!0)}},"\u53D6\u6D88"))),t.a.createElement(b.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Se,onCancel:function(){return We(!1)},onOk:Object(r.a)(v.a.mark(function ln(){var Qt;return v.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(!(Ke.length===0)){et.next=3;break}return g.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),et.abrupt("return");case 3:return et.next=5,Object(ft.a)("/api/homework_commons/".concat(En.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:Ke}});case 5:Qt=et.sent,Qt.status===0&&(g.b.info("\u6DFB\u52A0\u6210\u529F"),lt([]),Zn(),Wt(),We(!1));case 7:case"end":return et.stop()}},ln)}))},t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",t.a.createElement(i.a.Search,{onChange:function(Qt){Dt(wt.filter(function(Vt){return Vt.name.indexOf(Qt.target.value)>-1}))}})),t.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Qt,Vt){lt(Qt)},selectedRowKeys:Ke,getCheckboxProps:function(Qt){return{disabled:Qt.is_collaborator}}},pagination:!1,dataSource:nt,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},Nr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn.effects}})(pr),ta=Pe.a.RangePicker,ca=ct.a.Option,Zt=function(_n){var yn=_n.shixunHomeworks,Hn=_n.loading,mr=_n.dispatch;return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10"].join(" ")},t.a.createElement(j.a,null,t.a.createElement(j.a.TabPane,{tab:"\u53D1\u5E03\u8BBE\u7F6E",key:1},t.a.createElement(cr,null)),t.a.createElement(j.a.TabPane,{tab:"\u8BC4\u5206\u8BBE\u7F6E",key:2},t.a.createElement(Mr,null)),t.a.createElement(j.a.TabPane,{tab:"\u516C\u5F00\u8BBE\u7F6E",key:3},t.a.createElement(Fr,null)),t.a.createElement(j.a.TabPane,{tab:"\u534F\u4F5C\u8BBE\u7F6E",key:4},t.a.createElement(Nr,null))))},In=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn.effects}})(Zt),hr=P("lO7E"),Or=P.n(hr),_r=P("cVA7"),Sr=P.n(_r),J=function(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return console.log("---",_n,yn,Hn),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:Hn},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:yn},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:_n}]}},U=function(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return{dataset:[{source:_n}],tooltip:{show:!0,formatter:function(Hn){return Hn.value[2]+":"+Hn.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]}},H=function(_n){var yn,Hn,mr,Xn,Vn=_n.shixunHomeworks,Kn=_n.loading,lr=_n.dispatch,Yn=Object(s.i)(),Jn=Object(a.useState)(Object(B.a)(Object(B.a)({},{sort_by:"student_id",sort_direction:"desc"}),Yn)),fr=Object(u.a)(Jn,2),Q=fr[0],Se=fr[1],We=Object(a.useState)(),Xe=Object(u.a)(We,2),ut=Xe[0],Ke=Xe[1],lt=Object(a.useState)([]),mt=Object(u.a)(lt,2),ht=mt[0],_t=mt[1],$t=Object(a.useRef)(),Nt=Object(a.useState)(1),vt=Object(u.a)(Nt,2),nt=vt[0],Dt=vt[1],Gt=Object(a.useState)(10),Yt=Object(u.a)(Gt,2),wt=Yt[0],bn=Yt[1],En=Object(a.useState)([]),Zn=Object(u.a)(En,2),jt=Zn[0],Wt=Zn[1];Object(a.useEffect)(function(){Kt()},[]);var vn=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="student_number"?Q.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u5D29\u6E83",dataIndex:"bug",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.blocker)}},{title:"\u4E25\u91CD",dataIndex:"bug",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.critical)}},{title:"\u4E3B\u8981",dataIndex:"bug",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.major)}},{title:"\u6B21\u8981",dataIndex:"bug",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.minor)}},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Q.sort_by==="bug"?Q.sort_direction==="desc"?"descend":"ascend":null,render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.grade)}}]},{title:"\u6F0F\u6D1E",children:[{title:"\u5D29\u6E83",dataIndex:"vulnerability",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.blocker)}},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.critical)}},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.major)}},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.minor)}},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Q.sort_by==="vulnerability"?Q.sort_direction==="desc"?"descend":"ascend":null,render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.grade)}}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u5D29\u6E83",dataIndex:"specification",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.blocker)}},{title:"\u4E25\u91CD",dataIndex:"specification",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.critical)}},{title:"\u4E3B\u8981",dataIndex:"specification",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.major)}},{title:"\u6B21\u8981",dataIndex:"specification",render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.minor)}},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Q.sort_by==="specification"?Q.sort_direction==="desc"?"descend":"ascend":null,render:function(Ve){return t.a.createElement("span",{className:"current"},Ve==null?void 0:Ve.grade)}}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="complexity"?Q.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="total_row_number"?Q.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="quality_score"?Q.sort_direction==="desc"?"descend":"ascend":null}];Object(a.useEffect)(function(){return ut===2&&($t.current=setInterval(function(){Kt()},6e4)),function(){clearTimeout($t.current)}},[ut]);function Kt(){return ln.apply(this,arguments)}function ln(){return ln=Object(r.a)(v.a.mark(function et(){var Ve;return v.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(ft.a)("/api/homework_commons/".concat(Q.categoryId,"/code_quality_analyses/check_status.json"),{method:"GET"});case 2:Ve=Ct.sent,Ke(Ve.status),Ve.status!=2&&Ve.status!=-1&&(Qt({page:1,limit:10}),clearTimeout($t.current));case 5:case"end":return Ct.stop()}},et)})),ln.apply(this,arguments)}function Qt(et){return Vt.apply(this,arguments)}function Vt(){return Vt=Object(r.a)(v.a.mark(function et(Ve){var Ht;return v.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Dt(Ve==null?void 0:Ve.page),bn(Ve==null?void 0:Ve.limit),Xt.next=4,Object(ft.a)("/api/homework_commons/".concat(Q.categoryId,"/code_quality_analyses.json"),{method:"GET",params:Object(B.a)({},Ve)});case 4:Ht=Xt.sent,_t(Ht);case 6:case"end":return Xt.stop()}},et)})),Vt.apply(this,arguments)}return console.log("-------",ut),t.a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pl30 pr30 pt10"},(ut===0||ut===1)&&t.a.createElement("div",null,t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{flex:"1"}},t.a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",ht==null?void 0:ht.created_at)),t.a.createElement(N.a,{onClick:function(){lr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement(A.a,{style:{width:"100%"}},t.a.createElement(m.a,{flex:"80px"},t.a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{checked:(jt==null?void 0:jt.length)===0,onChange:function(Ve){Ve.target.checked&&(Wt([]),Qt({page:nt,limit:wt}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},t.a.createElement(Oe.a.Group,{value:jt,onChange:function(){var et=Object(r.a)(v.a.mark(function Ve(Ht){return v.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:Wt(Object(f.a)(Ht)),Qt({page:nt,limit:wt,group_course_ids:Ht});case 2:case"end":return Xt.stop()}},Ve)}));return function(Ve){return et.apply(this,arguments)}}(),style:{width:"100%",fontSize:"14px"}},ht==null||((yn=ht.course_groups)===null||yn===void 0)?void 0:yn.map(function(et,Ve){return t.a.createElement(Oe.a,{style:{fontSize:"14px"},value:et==null?void 0:et.id},et==null?void 0:et.name,"(",et==null?void 0:et.count,")")}))))),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",null,t.a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("div",null,t.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(ht==null?void 0:ht.grade_statistics)&&t.a.createElement(Sr.a,{option:J(ht==null||((Hn=ht.grade_statistics)===null||Hn===void 0)?void 0:Hn.map(function(et){return et.specification_count}),ht==null||((mr=ht.grade_statistics)===null||mr===void 0)?void 0:mr.map(function(et){return et.vulnerability_count}),ht==null||((Xn=ht.grade_statistics)===null||Xn===void 0)?void 0:Xn.map(function(et){return et.bug_count})),style:{height:400,width:600},opts:{renderer:"svg"}})),t.a.createElement("div",null,t.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(ht==null?void 0:ht.quality_scores)&&t.a.createElement(Sr.a,{option:U(ht==null?void 0:ht.quality_scores.map(function(et,Ve){return[Ve+1,et==null?void 0:et.quality_score,et==null?void 0:et.user_name]})),style:{height:400,width:600},opts:{renderer:"svg"}}))),t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),t.a.createElement(i.a.Search,{size:"large",onSearch:function(Ve){Qt({page:1,limit:wt,search:Ve})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),t.a.createElement(F.a,{columns:vn,dataSource:ht==null?void 0:ht.analysis,bordered:!0,scroll:{x:"calc(700px + 50%)"},pagination:!1,onChange:function(Ve,Ht,Ct){Ct.field&&(Q.sort_by=Ct.field),Ct.order||(Q.sort_direction="asc"),Ct.order==="ascend"&&(Q.sort_direction="asc"),Ct.order==="descend"&&(Q.sort_direction="desc"),Ct.order||(Q.sort_direction="asc"),Qt(Object(B.a)({page:1,limit:wt},Q))}}),t.a.createElement(_.a,{current:nt,total:ht==null?void 0:ht.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:wt,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:function(Ve,Ht){Dt(Ve),bn(Ht),Qt({page:Ve,limit:Ht,group_course_ids:jt})}}))),ut===2&&t.a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},t.a.createElement("img",{src:Or.a}),t.a.createElement("br",null),t.a.createElement(N.a,{type:"primary",style:{width:"120px",height:"40px"},onClick:function(){Kt()}},"\u5237\u65B0\u9875\u9762")),t.a.createElement(Ye,null))},$=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn.effects}})(H),re=P("RotF"),ee=P.n(re),Qe=function(_n){var yn,Hn=_n.shixunHomeworks,mr=_n.loading,Xn=_n.dispatch,Vn=Object(s.i)(),Kn=Object(s.h)(),lr=Object(a.useState)([]),Yn=Object(u.a)(lr,2),Jn=Yn[0],fr=Yn[1],Q=Object(a.useState)([]),Se=Object(u.a)(Q,2),We=Se[0],Xe=Se[1],ut=Object(a.useState)(!0),Ke=Object(u.a)(ut,2),lt=Ke[0],mt=Ke[1],ht=Object(a.useState)(!1),_t=Object(u.a)(ht,2),$t=_t[0],Nt=_t[1],vt=Object(a.useState)(1),nt=Object(u.a)(vt,2),Dt=nt[0],Gt=nt[1],Yt=Object(a.useState)([]),wt=Object(u.a)(Yt,2),bn=wt[0],En=wt[1],Zn=Object(a.useState)(!1),jt=Object(u.a)(Zn,2),Wt=jt[0],vn=jt[1],Kt=Object(a.useState)(!1),ln=Object(u.a)(Kt,2),Qt=ln[0],Vt=ln[1];Object(a.useEffect)(function(){Hn.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"?(Ht.resetFields(),fr([]),vn(!0),Xt()):vn(!1)},[Hn.actionTabs.key]);var et=bt.a.useForm(),Ve=Object(u.a)(et,1),Ht=Ve[0],Ct=[],Xt=function(){var Ln=Object(r.a)(v.a.mark(function qt(){var An,Pn,qn;return v.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(!(lt&&!$t)){Jt.next=11;break}return Nt(!0),Gt(Dt+1),Jt.next=5,Object(q.x)(Object(B.a)(Object(B.a)({},Vn),{},{page:Dt}));case 5:Pn=Jt.sent,qn=Object(f.a)(Pn.group_list),Pn!=null&&Pn.ungroup_list&&qn.push({id:Pn==null?void 0:Pn.ungroup_list.id,name:Pn==null?void 0:Pn.ungroup_list.name,works_count:Pn==null?void 0:Pn.ungroup_list.work_count,last_review_time:Pn==null?void 0:Pn.ungroup_list.last_review_time}),fr([].concat(Object(f.a)(Jn),Object(f.a)(qn))),Nt(!1),((An=Pn.group_list)===null||An===void 0?void 0:An.length)<10&&mt(!1);case 11:case"end":return Jt.stop()}},qt)}));return function(){return Ln.apply(this,arguments)}}(),Ft=function(){Xn({type:"shixunHomeworks/setActionTabs",payload:{}}),Vt(!1),mt(!0),Nt(!1),Gt(1),fr([]),Ht.resetFields()},On=[{title:"",dataIndex:"id",width:280,render:function(qt,An){return t.a.createElement(Oe.a,{disabled:!(An.works_count>1),value:String(An.id)},An.name)}},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4",dataIndex:"last_review_time",width:130}];return t.a.createElement(b.a,{centered:!0,title:"\u4EE3\u7801\u67E5\u91CD",keyboard:!1,maskClosable:!1,visible:Wt,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:820,bodyStyle:{minHeight:200},onOk:Object(r.a)(v.a.mark(function Ln(){var qt,An;return v.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qt=Ht.getFieldValue(),qn.next=3,Object(ft.a)("/api/homework_commons/".concat(Vn.categoryId,"/homework_code_repeat.json"),{method:"post",body:{group_ids:Object(f.a)(qt.group_ids)}});case 3:if(An=qn.sent,!(An.status===0)){qn.next=11;break}return Ft(),g.b.success("\u64CD\u4F5C\u6210\u529F"),qn.next=9,Xn({type:"shixunHomeworks/getWorkList",payload:Hn.actionTabs.params});case 9:y.d.push("/classrooms/".concat(Vn.coursesId,"/shixun_homework/").concat(Vn.categoryId,"/detail?tabs=2")),Xn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6267\u884C\u4EE3\u7801\u67E5\u91CD"}});case 11:case"end":return qn.stop()}},Ln)})),onCancel:Ft},Hn.codeReviewCourse&&t.a.createElement(bt.a,{form:Ht,onChange:function(qt){En(Object(B.a)({},Ht.getFieldValue()))},initialValues:(yn={},Object(dt.a)(yn,"group_ids",Ct),Object(dt.a)(yn,"end_time",ve()(ve()().add(7,"days").format("YYYY-MM-DD HH:mm"))),yn)},t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(F.a,{pagination:!1,dataSource:[],columns:On})),t.a.createElement(bt.a.Item,{name:"group_ids"},t.a.createElement(Oe.a.Group,{className:"w100"},t.a.createElement("div",{style:{width:"100%",maxHeight:260,overflow:"auto"}},t.a.createElement(ee.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(qt){Xt()},hasMore:lt,useWindow:!1},t.a.createElement(F.a,{loading:mr.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:On,dataSource:Jn,pagination:!1})))))),t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"ml10"},t.a.createElement(Oe.a,{checked:Qt,onChange:function(qt){Vt(qt.target.checked);var An=[];qt.target.checked&&(An=Jn.filter(function(Pn){return Pn.works_count>1}).map(function(Pn){return Pn.id+""})),Ht.setFieldsValue(Object(dt.a)({},"group_ids",An))}},"\u5168\u9009"))))},cn=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading;return{shixunHomeworks:_n,loading:yn}})(Qe),Dn=P("R5GN"),Wn=P("rhHp"),fn=P("Aocz"),tr=P.n(fn),nr=P("HBuW"),jr=P("NLgs"),ua=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u5D29\u6E83\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u5D29\u6E83\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}],va=function(_n){var yn,Hn,mr,Xn,Vn,Kn,lr,Yn,Jn=_n.shixunHomeworks,fr=_n.globalSetting,Q=_n.loading,Se=_n.dispatch,We=Object(s.i)(),Xe=Object(s.h)(),ut=Object(s.g)(),Ke=Object(a.useState)([]),lt=Object(u.a)(Ke,2),mt=lt[0],ht=lt[1],_t=Object(a.useState)(Xe.query.tabs||"0"),$t=Object(u.a)(_t,2),Nt=$t[0],vt=$t[1],nt=Object(a.useState)({}),Dt=Object(u.a)(nt,2),Gt=Dt[0],Yt=Dt[1],wt=Jn.workList,bn=Object(a.useState)(!1),En=Object(u.a)(bn,2),Zn=En[0],jt=En[1],Wt;We.category=Xe.query.category_id,We.order="work_score",We.b_order="desc";var vn=function(Ht){vt(Ht),Ht==="0"&&Se({type:"shixunHomeworks/getWorkList",payload:Gt})},Kt=function(){b.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u4F60\u5728\u8BE5\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A\uFF0C\u65E0\u6CD5\u6062\u590D",t.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u91CD\u505A\uFF1F"),onOk:function(){var Ht=Object(r.a)(v.a.mark(function Xt(){var Ft,On,Ln;return v.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return On=(Ft=Jn.workList)===null||Ft===void 0?void 0:Ft.myshixun_identifier,An.next=3,Object(q.T)({id:On});case 3:Ln=An.sent,Ln&&(g.b.info(`\u5DF2\u6E05\u7A7A\u672C\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55 + */var P,X,F,R=!1,j,T;window.PR_SHOULD_USE_CONTINUATION=!0;var S,M;(function(){var c=window,E=["break,continue,do,else,for,if,return,while"],g=[E,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],r=[g,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],l=[r,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],b=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],u=[r,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],p="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",v=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],a="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",t=[E,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[E,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],h=[E,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],y=[l,u,b,v,a,t,s,h],D=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C="str",I="kwd",_="com",f="typ",o="lit",i="pun",d="pln",A="tag",O="dec",m="src",k="atn",N="atv",B="nocode",G="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(me){for(var Le=0,rt=!1,Oe=!1,Ge=0,at=me.length;Ge122||(oe<65||Te>90||ot.push([Math.max(65,Te)|32,Math.min(oe,90)|32]),oe<97||Te>122||ot.push([Math.max(97,Te)&~32,Math.min(oe,122)&~32]))}}ot.sort(function(Ye,Ue){return Ye[0]-Ue[0]||Ue[1]-Ye[1]});for(var ue=[],pe=[],ft=0;ft_e[0]&&(_e[1]+1>_e[0]&&Je.push("-"),Je.push(Kt(_e[1])))}return Je.push("]"),Je.join("")}function on(Ie){for(var De=Ie.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ot=De.length,Et=[],Je=0,ft=0;Je=2&&Te==="["?De[Je]=Lt(Me):Te!=="\\"&&(De[Je]=Me.replace(/[a-zA-Z]/g,function(pe){var _e=pe.charCodeAt(0);return"["+String.fromCharCode(_e&~32,_e|32)+"]"}))}return De.join("")}for(var un=[],Ge=0,at=me.length;Ge=0;)rt[un.charAt(Ie)]=on;var De=on[1],ot=""+De;bt.hasOwnProperty(ot)||(Rt.push(De),bt[ot]=null)}Rt.push(/[\0-\uffff]/),Oe=W(Rt)})();var Ge=Le.length,at=function(dt){for(var Rt=dt.sourceCode,bt=dt.basePos,Kt=dt.sourceNode,Lt=[bt,d],on=0,un=Rt.match(Oe)||[],Ie={},De=0,ot=un.length;De=5&&Je.substring(0,5)==="lang-",Me&&!(ft&&typeof ft[1]=="string")&&(Me=!1,Je=m),Me||(Ie[Et]=Je)}var oe=on;if(on+=Et.length,!Me)Lt.push(bt+oe,Je);else{var ue=ft[1],pe=Et.indexOf(ue),_e=pe+ue.length;ft[2]&&(_e=Et.length-ft[2].length,pe=_e-ue.length);var Ye=Je.substring(5);Y(Kt,bt+oe,Et.substring(0,pe),at,Lt),Y(Kt,bt+oe+pe,ue,fe(Ye,ue),Lt),Y(Kt,bt+oe+_e,Et.substring(_e),at,Lt)}}dt.decorations=Lt};return at}function ve(me){var Le=[],rt=[];me.tripleQuotedStrings?Le.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):me.multiLineStrings?Le.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Le.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),me.verbatimStrings&&rt.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Oe=me.hashComments;Oe&&(me.cStyleComments?(Oe>1?Le.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Le.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),rt.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Le.push([_,/^#[^\r\n]*/,null,"#"])),me.cStyleComments&&(rt.push([_,/^\/\/[^\r\n]*/,null]),rt.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ge=me.regexLiterals;if(Ge){var at=Ge>1?"":` +\r`,dt=at?".":"[\\S\\s]",Rt="/(?=[^/*"+at+"])(?:[^/\\x5B\\x5C"+at+"]|\\x5C"+dt+"|\\x5B(?:[^\\x5C\\x5D"+at+"]|\\x5C"+dt+")*(?:\\x5D|$))+/";rt.push(["lang-regex",RegExp("^"+G+"("+Rt+")")])}var bt=me.types;bt&&rt.push([f,bt]);var Kt=(""+me.keywords).replace(/^ | $/g,"");Kt.length&&rt.push([I,new RegExp("^(?:"+Kt.replace(/[\s,]+/g,"|")+")\\b"),null]),Le.push([d,/^\s+/,null,` \r + \xA0`]);var Lt="^.[^\\s\\w.$@'\"`/\\\\]*";return me.regexLiterals&&(Lt+="(?!s*/)"),rt.push([o,/^@[a-z_$][a-z_$@0-9]*/i,null],[f,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[d,/^[a-z_$][a-z_$@0-9]*/i,null],[o,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[d,/^\\[\s\S]?/,null],[i,new RegExp(Lt),null]),ne(Le,rt)}var le=ve({keywords:y,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function be(me,Le,rt){for(var Oe=/(?:^|\s)nocode(?:\s|$)/,Ge=/\r\n?|\n/,at=me.ownerDocument,dt=at.createElement("li");me.firstChild;)dt.appendChild(me.firstChild);var Rt=[dt];function bt(De){var ot=De.nodeType;if(ot==1&&!Oe.test(De.className))if(De.nodeName==="br")Kt(De),De.parentNode&&De.parentNode.removeChild(De);else for(var Et=De.firstChild;Et;Et=Et.nextSibling)bt(Et);else if((ot==3||ot==4)&&rt){var Je=De.nodeValue,ft=Je.match(Ge);if(ft){var Me=Je.substring(0,ft.index);De.nodeValue=Me;var xe=Je.substring(ft.index+ft[0].length);if(xe){var Te=De.parentNode;Te.insertBefore(at.createTextNode(xe),De.nextSibling)}Kt(De),Me||De.parentNode.removeChild(De)}}}function Kt(De){for(;!De.nextSibling;)if(De=De.parentNode,!De)return;function ot(ft,Me){var xe=Me?ft.cloneNode(!1):ft,Te=ft.parentNode;if(Te){var oe=ot(Te,1),ue=ft.nextSibling;oe.appendChild(xe);for(var pe=ue;pe;pe=ue)ue=pe.nextSibling,oe.appendChild(pe)}return xe}for(var Et=ot(De.nextSibling,0),Je;(Je=Et.parentNode)&&Je.nodeType===1;)Et=Je;Rt.push(Et)}for(var Lt=0;Lt=Te&&(bt+=2),at>=oe&&(on+=2)}}finally{Je&&(Je.style.display=ft)}}var Re={};function ge(me,Le){for(var rt=Le.length;--rt>=0;){var Oe=Le[rt];Re.hasOwnProperty(Oe)?c.console&&console.warn("cannot override language handler %s",Oe):Re[Oe]=me}}function fe(me,Le){return me&&Re.hasOwnProperty(me)||(me=/^\s*]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[i,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ge(ne([[d,/^[\s]+/,null,` \r +`],[N,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[A,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[i,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ge(ne([],[[N,/^[\s\S]+/]]),["uq.val"]),ge(ve({keywords:l,hashComments:!0,cStyleComments:!0,types:D}),["c","cc","cpp","cxx","cyc","m"]),ge(ve({keywords:"null,true,false"}),["json"]),ge(ve({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:D}),["cs"]),ge(ve({keywords:b,cStyleComments:!0}),["java"]),ge(ve({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ge(ve({keywords:t,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ge(ve({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ge(ve({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ge(ve({keywords:v,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ge(ve({keywords:p,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ge(ne([],[[C,/^[\s\S]+/]]),["regex"]);function Ze(me){var Le=me.langExtension;try{var rt=z(me.sourceNode,me.pre),Oe=rt.sourceCode;me.sourceCode=Oe,me.spans=rt.spans,me.basePos=0,fe(Le,Oe)(me),we(me)}catch(Ge){c.console&&console.log(Ge&&Ge.stack||Ge)}}function Ot(me,Le,rt){var Oe=rt||!1,Ge=Le||null,at=document.createElement("div");at.innerHTML="
                  "+me+"
                  ",at=at.firstChild,Oe&&be(at,Oe,!0);var dt={langExtension:Ge,numberLines:Oe,sourceNode:at,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ze(dt),at.innerHTML}function Ee(me,Le){var rt=Le||document.body,Oe=rt.ownerDocument||document;function Ge(xe){return rt.getElementsByTagName(xe)}for(var at=[Ge("pre"),Ge("code"),Ge("xmp")],dt=[],Rt=0;Rt-S&&oS||o<-S}function p(o,i,d,A,O){var m=1-O;return m*m*(m*o+3*O*i)+O*O*(O*A+3*m*d)}function v(o,i,d,A,O){var m=1-O;return 3*(((i-o)*m+2*(d-i)*O)*m+(A-d)*O*O)}function a(o,i,d,A,O,m){var k=A+3*(i-d)-o,N=3*(d-i*2+o),B=3*(i-o),G=o-O,W=N*N-3*k*B,z=N*B-9*k*G,Y=B*B-3*N*G,V=0;if(b(W)&&b(z))if(b(N))m[0]=0;else{var q=-B/N;q>=0&&q<=1&&(m[V++]=q)}else{var ne=z*z-4*W*Y;if(b(ne)){var ve=z/W,q=-N/k+ve,le=-ve/2;q>=0&&q<=1&&(m[V++]=q),le>=0&&le<=1&&(m[V++]=le)}else if(ne>0){var be=T(ne),we=W*N+1.5*k*(-z+be),Re=W*N+1.5*k*(-z-be);we<0?we=-j(-we,E):we=j(we,E),Re<0?Re=-j(-Re,E):Re=j(Re,E);var q=(-N-(we+Re))/(3*k);q>=0&&q<=1&&(m[V++]=q)}else{var ge=(2*W*N-3*k*z)/(2*T(W*W*W)),fe=Math.acos(ge)/3,Ze=T(W),Ot=Math.cos(fe),q=(-N-2*Ze*Ot)/(3*k),le=(-N+Ze*(Ot+c*Math.sin(fe)))/(3*k),Ee=(-N+Ze*(Ot-c*Math.sin(fe)))/(3*k);q>=0&&q<=1&&(m[V++]=q),le>=0&&le<=1&&(m[V++]=le),Ee>=0&&Ee<=1&&(m[V++]=Ee)}}return V}function t(o,i,d,A,O){var m=6*d-12*i+6*o,k=9*i+3*A-3*o-9*d,N=3*i-3*o,B=0;if(b(k)){if(u(m)){var G=-N/m;G>=0&&G<=1&&(O[B++]=G)}}else{var W=m*m-4*k*N;if(b(W))O[0]=-m/(2*k);else if(W>0){var z=T(W),G=(-m+z)/(2*k),Y=(-m-z)/(2*k);G>=0&&G<=1&&(O[B++]=G),Y>=0&&Y<=1&&(O[B++]=Y)}}return B}function s(o,i,d,A,O,m){var k=(i-o)*O+o,N=(d-i)*O+i,B=(A-d)*O+d,G=(N-k)*O+k,W=(B-N)*O+N,z=(W-G)*O+G;m[0]=o,m[1]=k,m[2]=G,m[3]=z,m[4]=z,m[5]=W,m[6]=B,m[7]=A}function h(o,i,d,A,O,m,k,N,B,G,W){var z,Y=.005,V=Infinity,q,ne,ve,le;g[0]=B,g[1]=G;for(var be=0;be<1;be+=.05)r[0]=p(o,d,O,k,be),r[1]=p(i,A,m,N,be),ve=R(g,r),ve=0&&ve=0&&G<=1&&(O[B++]=G)}}else{var W=k*k-4*m*N;if(b(W)){var G=-k/(2*m);G>=0&&G<=1&&(O[B++]=G)}else if(W>0){var z=T(W),G=(-k+z)/(2*m),Y=(-k-z)/(2*m);G>=0&&G<=1&&(O[B++]=G),Y>=0&&Y<=1&&(O[B++]=Y)}}return B}function I(o,i,d){var A=o+d-2*i;return A===0?.5:(o-i)/A}function _(o,i,d,A,O){var m=(i-o)*A+o,k=(d-i)*A+i,N=(k-m)*A+m;O[0]=o,O[1]=m,O[2]=N,O[3]=N,O[4]=k,O[5]=d}function f(o,i,d,A,O,m,k,N,B){var G,W=.005,z=Infinity;g[0]=k,g[1]=N;for(var Y=0;Y<1;Y+=.05){r[0]=y(o,d,O,Y),r[1]=y(i,A,m,Y);var V=R(g,r);V=0&&V=0;--h)if(s[h]===t)return!0;return!1}),a):null:a[0]},b.prototype.update=function(p,v){if(!p)return;var a=this.getDefs(!1);if(p[this._domName]&&a.contains(p[this._domName]))typeof v=="function"&&v(p);else{var t=this.add(p);t&&(p[this._domName]=t)}},b.prototype.addDom=function(p){var v=this.getDefs(!0);v.appendChild(p)},b.prototype.removeDom=function(p){var v=this.getDefs(!1);v&&p[this._domName]&&(v.removeChild(p[this._domName]),p[this._domName]=null)},b.prototype.getDoms=function(){var p=this.getDefs(!1);if(!p)return[];var v=[];return R.each(this._tagNames,function(a){var t=p.getElementsByTagName(a);v=v.concat([].slice.call(t))}),v},b.prototype.markAllUnused=function(){var p=this.getDoms(),v=this;R.each(p,function(a){a[v._markLabel]=r})},b.prototype.markUsed=function(p){p&&(p[this._markLabel]=l)},b.prototype.removeUnused=function(){var p=this.getDefs(!1);if(!p)return;var v=this.getDoms(),a=this;R.each(v,function(t){t[a._markLabel]!==l&&p.removeChild(t)})},b.prototype.getSvgProxy=function(p){return p instanceof j?c:p instanceof T?E:p instanceof S?g:c},b.prototype.getTextSvgElement=function(p){return p.__textSvgEl},b.prototype.getSvgElement=function(p){return p.__svgEl};var u=b;ze.exports=u},T6xi:function(ze,te,P){var X=P("YgsL"),F=P("nCxF");function R(j,T,S){var M=T.points,c=T.smooth;if(M&&M.length>=2){if(c&&c!=="spline"){var E=F(M,c,S,T.smoothConstraint);j.moveTo(M[0][0],M[0][1]);for(var g=M.length,r=0;r<(S?g:g-1);r++){var l=E[r*2],b=E[r*2+1],u=M[(r+1)%g];j.bezierCurveTo(l[0],l[1],b[0],b[1],u[0],u[1])}}else{c==="spline"&&(M=X(M,S)),j.moveTo(M[0][0],M[0][1]);for(var r=1,p=M.length;r=0){var h=t.split("!=");return c.create(h[0].trim(),this._deserializeValue(h[1],s))}if(t.indexOf("==")>=0){var h=t.split("==");return M.create(h[0].trim(),this._deserializeValue(h[1],s))}if(t.indexOf("=~")>=0){var h=t.split("=~");return g.create(h[0].trim(),this._deserializeRegexValue(h[1],s))}return/^\!\s*/.test(t)?E.create(t.substr(1).trim()):S.create(t)},a._deserializeValue=function(t,s){if(t=t.trim(),t==="true")return!0;if(t==="false")return!1;var h=/^'([^']*)'$/.exec(t);return h?h[1].trim():t},a._deserializeRegexValue=function(t,s){if(Object(X.x)(t)){if(s)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var h=t.indexOf("/"),y=t.lastIndexOf("/");if(h===y||h<0){if(s)throw new Error("bad regexp-value '"+t+"', missing /-enclosure");return console.warn("bad regexp-value '"+t+"', missing /-enclosure"),null}var D=t.slice(h+1,y),C=t[y+1]==="i"?"i":"";try{return new RegExp(D,C)}catch(I){if(s)throw new Error("bad regexp-value '"+t+"', parse error: "+I);return console.warn("bad regexp-value '"+t+"', parse error: "+I),null}},a}();function T(a,t){var s=a.getType(),h=t.getType();if(s!==h)return s-h;switch(s){case 1:return a.cmp(t);case 2:return a.cmp(t);case 3:return a.cmp(t);case 4:return a.cmp(t);case 6:return a.cmp(t);case 7:return a.cmp(t);case 5:return a.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var S=function(){function a(t){this.key=t}return a.create=function(t){return new a(t)},a.prototype.getType=function(){return 1},a.prototype.cmp=function(t){return this.keyt.key?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key:!1},a.prototype.evaluate=function(t){return!!t.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return E.create(this.key)},a}(),M=function(){function a(t,s){this.key=t,this.value=s}return a.create=function(t,s){return typeof s=="boolean"?s?S.create(t):E.create(t):new a(t,s)},a.prototype.getType=function(){return 3},a.prototype.cmp=function(t){return this.keyt.key?1:this.valuet.value?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key&&this.value===t.value:!1},a.prototype.evaluate=function(t){return t.getValue(this.key)==this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return c.create(this.key,this.value)},a}(),c=function(){function a(t,s){this.key=t,this.value=s}return a.create=function(t,s){return typeof s=="boolean"?s?E.create(t):S.create(t):new a(t,s)},a.prototype.getType=function(){return 4},a.prototype.cmp=function(t){return this.keyt.key?1:this.valuet.value?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key&&this.value===t.value:!1},a.prototype.evaluate=function(t){return t.getValue(this.key)!=this.value},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return M.create(this.key,this.value)},a}(),E=function(){function a(t){this.key=t}return a.create=function(t){return new a(t)},a.prototype.getType=function(){return 2},a.prototype.cmp=function(t){return this.keyt.key?1:0},a.prototype.equals=function(t){return t instanceof a?this.key===t.key:!1},a.prototype.evaluate=function(t){return!t.getValue(this.key)},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return S.create(this.key)},a}(),g=function(){function a(t,s){this.key=t,this.regexp=s}return a.create=function(t,s){return new a(t,s)},a.prototype.getType=function(){return 6},a.prototype.cmp=function(t){if(this.keyt.key)return 1;var s=this.regexp?this.regexp.source:"",h=t.regexp?t.regexp.source:"";return sh?1:0},a.prototype.equals=function(t){if(t instanceof a){var s=this.regexp?this.regexp.source:"",h=t.regexp?t.regexp.source:"";return this.key===t.key&&s===h}return!1},a.prototype.evaluate=function(t){var s=t.getValue(this.key);return this.regexp?this.regexp.test(s):!1},a.prototype.keys=function(){return[this.key]},a.prototype.negate=function(){return r.create(this)},a}(),r=function(){function a(t){this._actual=t}return a.create=function(t){return new a(t)},a.prototype.getType=function(){return 7},a.prototype.cmp=function(t){return this._actual.cmp(t._actual)},a.prototype.equals=function(t){return t instanceof a?this._actual.equals(t._actual):!1},a.prototype.evaluate=function(t){return!this._actual.evaluate(t)},a.prototype.keys=function(){return this._actual.keys()},a.prototype.negate=function(){return this._actual},a}(),l=function(){function a(t){this.expr=t}return a.create=function(t){var s=a._normalizeArr(t);return s.length===0?void 0:s.length===1?s[0]:new a(s)},a.prototype.getType=function(){return 5},a.prototype.cmp=function(t){if(this.expr.lengtht.expr.length)return 1;for(var s=0,h=this.expr.length;s1;){for(var C=t.shift(),I=t.shift(),_=[],f=0,o=D(C);f47&&(He(47),mn(!0))}},[document.getElementById("divhe")]);var Tr=function(Ht,fn){et.page=Ht,et.limit=fn,or()},sr=function(){var Ht=et;Ht.limit=Number(ar),Ht.page=Number(1),Dt(Ht),or()};function Ar(){Ka(1),Ia(""),Ca(""),nt(""),he(""),Dn([])}var nr=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:{showTitle:!1},render:function(Ht,fn,wn){return et.limit*(et.page-1)+wn+1}},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:{showTitle:!1},render:function(Ht){return t.a.createElement(S.a,{placement:"bottomLeft",title:Ht},t.a.createElement("span",{className:"current"},Ht))}},!(zt!=null&&zt.is_excellent)&&!Object(ge.r)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,fixed:"left",width:110,showSorterTooltip:!1,ellipsis:{showTitle:!1},sortOrder:et.order==="student_id"?et.b_order==="desc"?"descend":"ascend":null,render:function(Ht){return t.a.createElement(S.a,{placement:"bottomLeft",title:Ht||"--"},t.a.createElement("span",{className:"current"},Ht||"--"))}},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",width:180,fixed:"left",ellipsis:{showTitle:!1},render:function(Ht,fn){return Ht?t.a.createElement(S.a,{placement:"bottom",title:Ht},t.a.createElement("span",{className:"current"},Ht)):"--"}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",width:80,fixed:"left",sorter:!0,ellipsis:{showTitle:!1},showSorterTooltip:!1,sortOrder:et.order==="work_status"?et.b_order==="desc"?"descend":"ascend":null,render:function(Ht){return t.a.createElement(C.f,{status:Ht})}},{title:t.a.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),dataIndex:"cost_time",align:"center",width:130,ellipsis:{showTitle:!1},showSorterTooltip:!1,sorter:!0,sortOrder:et.order==="cost_time"?et.b_order==="desc"?"descend":"ascend":null,render:function(Ht,fn){return Ht?t.a.createElement(S.a,{placement:"bottomLeft",title:Ht},Ht):"--"}},{title:"\u901A\u5173\u60C5\u51B5",align:"center",dataIndex:"complete_count",ellipsis:{showTitle:!1},render:function(Ht,fn){return t.a.createElement("span",null,Ht||0,"/",zt.challenges_count)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",ellipsis:{showTitle:!1},sorter:!0,sortOrder:et.order==="sum_evaluate_count"?et.b_order==="desc"?"descend":"ascend":null,render:function(Ht,fn){return Ht&&Ht!="--"?t.a.createElement(S.a,{placement:"bottom",title:Ht},t.a.createElement("span",{className:"current"},Ht)):"--"}},!Object(ge.r)()&&{title:t.a.createElement("span",null,"\u6700\u7EC8\u6210\u7EE9",t.a.createElement(S.a,{placement:"top",title:t.a.createElement("pre",null,"\u9F20\u6807\u505C\u7559\u5177\u4F53\u5206\u503C\u4E0A\u53EF\u67E5",t.a.createElement("br",null),"\u770B\u5F97\u5206\u660E\u7EC6",t.a.createElement("br",null))},t.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),dataIndex:"work_score",sorter:!0,align:"center",showSorterTooltip:!1,sortOrder:et.order==="work_score"?et.b_order==="desc"?"descend":"ascend":null,ellipsis:{showTitle:!1},render:function(Ht,fn){var wn,Sn;return Ht>=0&&Ht<=60?Sn=t.a.createElement("span",{className:"c-red"},Ht):Ht===100?Sn=t.a.createElement("span",{className:"c-green"},Ht):Ht>60?Sn=t.a.createElement("span",{className:"c-orange"},Ht):Sn="--",t.a.createElement(S.a,{placement:"bottom",title:fn.ultimate_score?t.a.createElement("div",null,Sn==="--"?"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206":"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A".concat(fn.work_score,"\u5206")):t.a.createElement("div",null,t.a.createElement("div",null,fn.final_score?"\u5173\u5361\u5F97\u5206\uFF1A".concat(fn.final_score,"\u5206"):"\u5173\u5361\u5F97\u5206\uFF1A0\u5206"),t.a.createElement("div",null,fn.eff_score?"\u6548\u7387\u8BC4\u5206\uFF1A".concat(fn.eff_score,"\u5206"):"\u6548\u7387\u8BC4\u5206\uFF1A0\u5206"),t.a.createElement("div",null,fn.late_penalty?"\u8FDF\u4EA4\u6263\u5206\uFF1A".concat(fn.late_penalty,"\u5206"):"\u8FDF\u4EA4\u6263\u5206\uFF1A0\u5206"),!((wn=Ke.workList)!==null&&wn!==void 0&&wn.answer_open_evaluation)&&t.a.createElement("div",null,"\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A",fn.view_answer_count,"\u5173"),t.a.createElement("div",null,fn.work_score?"\u6700\u7EC8\u6210\u7EE9\uFF1A".concat(fn.work_score,"\u5206"):"\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206"))},Sn)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",align:"center",render:function(Ht){return Ht||"- -"}},{title:t.a.createElement("span",null,"\u8BC4\u9605\u72B6\u6001",t.a.createElement(S.a,{overlayClassName:oe.a.reviewStatusTooltip,placement:"top",title:t.a.createElement("pre",null,"\u4EE5\u4E0B\u60C5\u5F62\u51FA\u73B0\u4E00\u79CD\uFF0C\u8BC4\u9605\u72B6\u6001\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\uFF1A",t.a.createElement("br",null),"1.\u5B66\u751F\u5F00\u542F\u4F5C\u4E1A\uFF0C\u7CFB\u7EDF\u5BF9\u5B66\u751F\u8FDB\u884C\u4E86\u81EA\u52A8\u6253\u5206\uFF1B",t.a.createElement("br",null),"2.\u8001\u5E08\u5BF9\u5B66\u751F\u4F5C\u4E1A\u8FDB\u884C\u5173\u5361\u8C03\u5206\u6216\u8005\u8FFD\u52A0\u70B9\u8BC4\uFF1B",t.a.createElement("br",null),"3.\u6574\u4E2A\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u6240\u6709\u5B66\u751F\u4F5C\u4E1A\u72B6\u6001\u5C06\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\u3002",t.a.createElement("br",null))},t.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),align:"center",dataIndex:"has_comment",width:90,fixed:"right",ellipsis:!0,render:function(Ht){return Ht?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},{title:"\u64CD\u4F5C",dataInex:"action",align:"center",width:70,fixed:"right",ellipsis:!0,className:"workListTable",render:function(Ht,fn){var wn,Sn,Hr;return Object(ge.s)()?t.a.createElement("div",null,Object(C.z)(fn==null?void 0:fn.work_status)==="\u672A\u5F00\u542F"?t.a.createElement("span",null,"--"):t.a.createElement(h.a,{target:"_blank",onClick:function(Lr){Lr.stopPropagation()},to:"/classrooms/".concat(et.coursesId,"/shixun_homework/").concat(et.categoryId,"/").concat(fn.id,"/comment")},"\u67E5\u770B")):t.a.createElement("div",null,t.a.createElement("span",{style:{color:"#0152d9"},onClick:function(Lr){Lr.stopPropagation(),mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:"",data:{name:fn==null?void 0:fn.user_name,homeworkId:fn==null?void 0:fn.id,work_comment:fn==null?void 0:fn.work_comment,work_comment_hidden:fn==null?void 0:fn.work_comment_hidden}}}})}},fn.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u8FFD\u52A0\u70B9\u8BC4"),(fn==null||((wn=fn.shixun_detail)===null||wn===void 0||((Sn=wn[0])===null||Sn===void 0))?void 0:Sn.game_identifier)&&[1,2,3].includes(fn==null?void 0:fn.work_status)&&[t.a.createElement("br",null),t.a.createElement("a",{target:"_blank",onClick:function(Lr){var Ur;if(Lr.stopPropagation(),(Ur=_t.userInfo)!==null&&Ur!==void 0&&Ur.professional_certification){var kr,Mr;Object(C.O)("/tasks/".concat(fn==null||((kr=fn.shixun_detail)===null||kr===void 0||((Mr=kr[0])===null||Mr===void 0))?void 0:Mr.game_identifier,"?homework_common_id=").concat($t.categoryId))}else return b.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(C.O)("/account/certification")}}),!1}},"\u67E5\u770B\u5B9E\u8BAD")],(zt==null||((Hr=zt.homework_status)===null||Hr===void 0)?void 0:Hr[0])!=="\u5DF2\u622A\u6B62"&&!!fn.myshixun_id&&[t.a.createElement("br",null),t.a.createElement("span",{className:oe.a.color32C,onClick:function(Lr){Lr.stopPropagation(),mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:fn,params:et}})}},"\u6253\u56DE\u91CD\u505A")])}}].filter(function(Bt){return!!Bt}),gn=function(){var Ht,fn;return t.a.createElement(at.a,null,t.a.createElement(at.a.Item,{onClick:function(){Object(Ue.h)(JSON.parse(sessionStorage.all_student_works_params),"shixun_work_list")},key:"1"},"\u5B66\u751F\u6210\u7EE9"),Object(ge.c)()&&(zt==null?void 0:zt.student_works.length)>0&&t.a.createElement(at.a.Item,{key:"3"},t.a.createElement(h.a,{onClick:function(Sn){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",type:2}})},to:"/classrooms/".concat(et.coursesId,"/shixun_homework/").concat(et.categoryId,"/").concat(zt==null||((Ht=zt.student_works)===null||Ht===void 0||((fn=Ht[0])===null||fn===void 0))?void 0:fn.id,"/comment")},"\u5B9E\u8BAD\u62A5\u544A")),t.a.createElement(at.a.Item,{key:"2"},t.a.createElement(h.a,{to:"/classrooms/".concat(et.coursesId,"/exportlist/shixun_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return t.a.createElement(t.a.Fragment,null,t.a.createElement("section",{className:"".concat(oe.a.wrap," minH500 bg-white pl30 pr30 pt30")},((bn=zt.homework_status)===null||bn===void 0?void 0:bn.includes("\u672A\u53D1\u5E03"))&&t.a.createElement(De.a,null),!!tt.length&&t.a.createElement(F.a,{className:"mb10",dataSource:tt,columns:nr,pagination:!1,showHeader:!1,loading:!1}),!((Hn=zt.homework_status)!==null&&Hn!==void 0&&Hn.includes("\u672A\u53D1\u5E03"))&&t.a.createElement("aside",null,!Object(ge.c)()&&t.a.createElement("div",{className:"c-light-black font12"},t.a.createElement("span",null,"\u5DF2\u5F00\u59CB\u505A\u9898 ",(zt==null?void 0:zt.commit_count)||0," \u4EBA"),t.a.createElement("span",{className:"ml5"},"\u672A\u5F00\u59CB\u505A\u9898 ",(zt==null?void 0:zt.uncommit_count)||0," \u4EBA"),(zt==null?void 0:zt.left_time)&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"ml20 c-black"},zt==null||((vr=zt.left_time)===null||vr===void 0)?void 0:vr.status),t.a.createElement("span",{className:"ml20 c-orange-ff9"},zt==null||((Xn=zt.left_time)===null||Xn===void 0)?void 0:Xn.time))),Object(ge.c)()&&t.a.createElement(t.a.Fragment,null,t.a.createElement(bt.a,{form:wt,onChange:br,initialValues:(Vn={},Object(dt.a)(Vn,"task_status","all"),Object(dt.a)(Vn,"course_group_info","all"),Object(dt.a)(Vn,"teacher_comment","all"),Vn)},((Gn=zt.task_status)===null||Gn===void 0?void 0:Gn.length)>0&&t.a.createElement(bt.a.Item,{name:"task_status"},t.a.createElement(Oe.a.Group,{value:[],style:{width:"100%"}},t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},zt.task_status&&zt.task_status.map(function(Bt,Ht){return t.a.createElement(Oe.a,{name:"task_status",value:Bt.id},Bt.name,"(",Bt.count,")")}))))),((dr=zt.course_group_info)===null||dr===void 0?void 0:dr.length)>0&&t.a.createElement(bt.a.Item,{name:"course_group_info"},t.a.createElement(Oe.a.Group,{style:{width:"100%"}},t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"font14",flex:"80px"},"\u5206\u73ED\u60C5\u51B5:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1",id:"divhe",style:{height:it+"px",overflow:"hidden"}},(Yn=zt.course_group_info)===null||Yn===void 0?void 0:Yn.map(function(Bt,Ht){return t.a.createElement(Oe.a,{value:Bt.course_group_id},Bt.group_group_name,"(",Bt.count,")")})),ln&&t.a.createElement("span",{onClick:function(){var Ht=document.getElementById("divhe").scrollHeight;it>47?He(47):He(Ht)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},it===47?"\u5C55\u5F00":"\u6536\u8D77",it===47?t.a.createElement(Kt.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):t.a.createElement(Lt.a,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((Qn=zt.teacher_comment)===null||Qn===void 0?void 0:Qn.length)>0&&t.a.createElement(bt.a.Item,{name:"teacher_comment"},t.a.createElement(Oe.a.Group,{style:{width:"100%"}},t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},zt.teacher_comment&&zt.teacher_comment.map(function(Bt,Ht){return t.a.createElement(Oe.a,{value:String(Bt.id)},Bt.name,"(",Bt.count,")")})))))),t.a.createElement(A.a,{align:"middle"},t.a.createElement(m.a,{flex:"1"},t.a.createElement(A.a,{align:"middle"},t.a.createElement(m.a,null,t.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(Ht){et.search=Ht,et.page=1,or()},style:{width:240}})),t.a.createElement(m.a,null,t.a.createElement("span",{className:"ml5"},t.a.createElement("span",{className:"c-red"},zt.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",zt.work_count,"\u4E2A\u5B66\u751F\uFF09")))),t.a.createElement(m.a,null,Object(ge.c)()&&zt.code_review&&t.a.createElement(N.a,{className:"ml10",onClick:function(){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:zt.student_works.map(function(Ht){return Ht.id}),params:et}})}},t.a.createElement("span",{className:"".concat(oe.a.tr1," iconfont icon-daimachazhong")}),"\u4EE3\u7801\u67E5\u91CD"),Object(ge.c)()&&Jn&&t.a.createElement(N.a,{className:"ml10",onClick:gr},t.a.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),(zt==null||((pr=zt.homework_status)===null||pr===void 0)?void 0:pr.includes("\u5DF2\u622A\u6B62"))&&Object(ge.c)()&&t.a.createElement(N.a,{className:"ml10",onClick:function(){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",selectArrs:zt.student_works.map(function(Ht){return Ht.id}),params:et}})}},t.a.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),t.a.createElement(N.a,{className:"ml10",onClick:function(){mt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4",selectArrs:zt.student_works.map(function(Ht){return Ht.id}),params:et}})}},t.a.createElement(on.a,{className:"mr5"}),"\u4E00\u952E\u70B9\u8BC4"),((zt==null||((Q=zt.homework_status)===null||Q===void 0)?void 0:Q.includes("\u63D0\u4EA4\u4E2D"))||(zt==null||((Se=zt.homework_status)===null||Se===void 0)?void 0:Se.includes("\u8865\u4EA4\u4E2D"))||(zt==null||((We=zt.homework_status)===null||We===void 0)?void 0:We.includes("\u8FDB\u884C\u4E2D")))&&t.a.createElement(N.a,{className:"ml10",onClick:function(){jt(!0)}},"\u4E00\u952E\u6253\u56DE"),Object(ge.c)()&&t.a.createElement(Le.a,{overlay:gn,className:"ml10"},t.a.createElement(N.a,null,t.a.createElement(un.a,null),"\u5BFC\u51FA",t.a.createElement(Ie.a,null)))))),t.a.createElement(A.a,{style:{justifyContent:"end",marginTop:"5px"}},Object(ge.c)()&&Jn&&t.a.createElement("span",null,t.a.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),t.a.createElement(F.a,{className:"mt30",loading:lt["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:function(Ht){return{onClick:function(wn){window.open("/classrooms/".concat(et.coursesId,"/shixun_homework/").concat(et.categoryId,"/").concat(Ht.id,"/comment"),"_blank")}}},dataSource:zt.student_works,columns:nr,onChange:function(Ht,fn,wn){wn.field&&(et.order=wn.field),wn.order||(et.b_order="asc"),wn.order==="ascend"&&(et.b_order="asc"),wn.order==="descend"&&(et.b_order="desc"),wn.order||(et.b_order="asc"),or()}}),t.a.createElement(xe,null),t.a.createElement(pe,null),t.a.createElement(ot.a,null)),t.a.createElement(b.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Xt,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(r.a)(v.a.mark(function Bt(){var Ht,fn;return v.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(!(Yr===2)){Sn.next=13;break}if(!(qt.length<=0)){Sn.next=4;break}return g.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),Sn.abrupt("return");case 4:if(Ce){Sn.next=7;break}return g.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),Sn.abrupt("return");case 7:return Sn.next=9,Object(ft.a)("/api/homework_commons/".concat(et.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:et.categoryId,comment:Ce,status:qt}});case 9:Ht=Sn.sent,Ht.status===0&&(zr(Ht),jt(!1),Jt(!0)),Sn.next=32;break;case 13:if(!($e===0||na===0)){Sn.next=16;break}Sn.next=22;break;case 16:if($e){Sn.next=19;break}return g.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),Sn.abrupt("return");case 19:if(na){Sn.next=22;break}return g.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),Sn.abrupt("return");case 22:if(!($e>na)){Sn.next=25;break}return g.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),Sn.abrupt("return");case 25:if(Ce){Sn.next=28;break}return g.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),Sn.abrupt("return");case 28:return Sn.next=30,Object(ft.a)("/api/homework_commons/".concat(et.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:et.categoryId,comment:Ce,min_score:$e,max_score:na}});case 30:fn=Sn.sent,fn.status===0&&(zr(fn),jt(!1),Jt(!0));case 32:case"end":return Sn.stop()}},Bt)})),onCancel:function(){jt(!1),Ar()}},t.a.createElement("div",{style:{padding:"32px"}},t.a.createElement("div",null,t.a.createElement("div",null,t.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),t.a.createElement(de.a.Group,{value:Yr,onChange:function(Ht){Ka(Ht.target.value)}},t.a.createElement(de.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),t.a.createElement(de.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),Yr===1&&t.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},t.a.createElement("span",{style:{width:"70px",textAlign:"end"}},t.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),t.a.createElement(Ee.a,{min:0,max:100,value:$e,onChange:function(Ht){return nt(Ht)},style:{width:"100px"}}),t.a.createElement("span",{style:{width:"80px",textAlign:"end"}},t.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),t.a.createElement(Ee.a,{min:0,max:100,value:na,onChange:function(Ht){return Ca(Ht)},style:{width:"100px"}})),Yr===2&&t.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},t.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),t.a.createElement(Oe.a.Group,{onChange:function(Ht){Dn(Object(f.a)(Ht))},style:{width:"100%"}},(Ve=zt.task_status)===null||Ve===void 0?void 0:Ve.map(function(Bt,Ht){return t.a.createElement(Oe.a,{name:"task_status",value:Bt.id},Bt.name,"(",Bt.count,")")}))),t.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},t.a.createElement("span",{style:{width:"70px",textAlign:"end"}},t.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),t.a.createElement(G.a,{className:oe.a.MdEditor,onChange:function(Ht){return he(Ht)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),t.a.createElement(b.a,{visible:Nn,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(r.a)(v.a.mark(function Bt(){var Ht,fn;return v.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(!(Yr===2)){Sn.next=7;break}return Sn.next=3,Object(ft.a)("/api/homework_commons/".concat(et.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:et.categoryId,comment:Ce,status:qt}});case 3:Ht=Sn.sent,Ht.status===0&&(g.b.info("\u6253\u56DE\u6210\u529F"),Ar(),or(),Jt(!1)),Sn.next=11;break;case 7:return Sn.next=9,Object(ft.a)("/api/homework_commons/".concat(et.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:et.categoryId,comment:Ce,min_score:$e,max_score:na}});case 9:fn=Sn.sent,fn.status===0&&(g.b.info("\u6253\u56DE\u6210\u529F"),Ar(),or(),Jt(!1));case 11:case"end":return Sn.stop()}},Bt)})),onCancel:function(){Ar(),Jt(!1)}},t.a.createElement("div",{style:{padding:"32px"}},Yr===1&&t.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",$e,"-",na,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),Yr===2&&t.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((ut=zt.task_status)===null||ut===void 0?void 0:ut.filter(function(Bt){return qt==null?void 0:qt.includes(Bt.id)}).map(function(Bt){return Bt.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),t.a.createElement("br",null),t.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Nr==null?void 0:Nr.count,"\u540D\u5B66\u751F")))),t.a.createElement(Ye,null),t.a.createElement("aside",{className:"tc mb50 mt30"},zt.work_count>0&&t.a.createElement("div",{style:{display:"flex",margin:"auto",textAlign:"center",justifyContent:"center"}},t.a.createElement(_.a,{onChange:Tr,defaultCurrent:et.page||1,current:et.page||1,defaultPageSize:et.limit||1,pageSize:et.limit||1,total:zt.work_count}),t.a.createElement(i.a,{suffix:"\u6761/\u9875",type:"number",value:ar,onChange:function(Ht){return ir(Ht.target.value)},min:1,onBlur:sr,style:{width:"80px",height:"29px",lineHeight:"29px",marginLeft:"10px"}}))))},tn=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading,Hn=zn.user;return{shixunHomeworks:_n,loading:bn.effects,user:Hn}})(Mt),sn=P("fOrg"),nn=P("+KLJ"),rn=function(_n){var bn,Hn=_n.shixunHomeworks,vr=_n.loading,Xn=_n.dispatch,Vn=Object(s.i)(),Gn=Object(a.useState)(Object(B.a)(Object(B.a)({},{page:1,limit:20,group_ids:[]}),Vn)),dr=Object(u.a)(Gn,2),Yn=dr[0],Qn=dr[1],pr=Object(s.h)(),Q=Hn.codeReview,Se=Object(a.useState)({}),We=Object(u.a)(Se,2),Ve=We[0],ut=We[1],Ke=bt.a.useForm(),lt=Object(u.a)(Ke,1),mt=lt[0];Yn.order="code_rate",Yn.sort="desc",Yn.category=Yn.categoryId,Object(a.useEffect)(function(){ht(),console.log("params",Yn)},[Yn]),Object(a.useEffect)(function(){Hn.actionTabs.key==="\u6267\u884C\u4EE3\u7801\u67E5\u91CD"&&ht()},[Hn.actionTabs.key]);var ht=function(){var vt=Object(r.a)(v.a.mark(function et(){var Dt;return v.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Xn({type:"shixunHomeworks/getCodeReview",payload:Object(B.a)({},Yn)});case 2:Dt=Yt.sent,Dt.status===-2&&setTimeout(function(){return ht()},1500);case 4:case"end":return Yt.stop()}},et)}));return function(){return vt.apply(this,arguments)}}(),_t=function(){},$t=function(et,Dt){Yn.page=et,Yn.limit=20,Xn({type:"shixunHomeworks/getCodeReview",payload:Object(B.a)({},Yn)})},kt=[{title:"\u5E8F\u53F7",dataIndex:"number",render:function(et,Dt,Gt){return Yn.limit*(Yn.page-1)+Gt+1}},{title:"\u59D3\u540D",dataIndex:"username"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:function(et){return t.a.createElement("span",{className:"c-orange"},et)}},{title:"\u64CD\u4F5C",dataInex:"action",render:function(et,Dt){return t.a.createElement("div",null,t.a.createElement(h.a,{target:"_blank",to:"/classrooms/".concat(Yn.coursesId,"/shixun_homework/").concat(Yn.categoryId,"/review_detail/").concat(Dt.user_id)},"\u67E5\u770B"),t.a.createElement("br",null))}}];return t.a.createElement("section",{className:"minH500 bg-white pl30 pr30 pt10"},(Q==null?void 0:Q.status)===-2&&t.a.createElement(nn.a,{message:"\u67E5\u91CD\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u2026\u2026",className:"mb10 font14",type:"error"}),t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"1"},t.a.createElement("p",{className:"mt10"},"\u67E5\u91CD\u65F6\u95F4\uFF1A",Q.last_review_time,t.a.createElement(N.a,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:function(){Xn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Yn}})}},"\u4EE3\u7801\u67E5\u91CD"))),t.a.createElement(m.a,null,t.a.createElement(i.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(et){Yn.search=et,Xn({type:"shixunHomeworks/getCodeReview",payload:Yn})},style:{width:200}}),t.a.createElement("span",{className:"ml5 c-red"}))),((bn=Q.group_info)===null||bn===void 0?void 0:bn.length)>0&&t.a.createElement(t.a.Fragment,null,t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{checked:Yn.group_ids=="",value:"all",onChange:function(et){delete Yn.group_ids,Yn.group_ids=[],Yn.page=1,Qn(Object(B.a)({},Yn))}},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},Q.group_info&&Q.group_info.map(function(vt,et){return t.a.createElement(Oe.a,{value:vt.id,checked:Yn.group_ids.includes(vt.id),onChange:function(Gt){Gt.target.checked?Yn.group_ids.push(vt.id):Yn.group_ids.splice(Yn.group_ids.indexOf(vt.id),1),Yn.page=1,Qn(Object(B.a)({},Yn))}},vt.name,"(",vt.members_count,")")}))),t.a.createElement(A.a,{className:"font14 c-red mt5"},t.a.createElement(m.a,null,"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u67E5\u91CD\u5206\u73ED"))),t.a.createElement("p",{className:"mt10"},t.a.createElement("span",{className:"c-red"},Q.copy_reviews_count),"\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08",Q.all_reviews_count,"\u4F5C\u54C1\uFF09"),t.a.createElement(F.a,{className:"mt30",loading:vr["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:Q.users_reviews,columns:kt,onChange:function(et,Dt,Gt){Gt.order==="ascend"&&(Yn.b_order="asc"),Gt.order==="descend"&&(Yn.b_order="desc"),Gt.order||delete Yn.b_order,Xn({type:"shixunHomeworks/getCodeReview",payload:Object(B.a)({},Yn)})}}),t.a.createElement("aside",{className:"tc mb50 mt30"},t.a.createElement(_.a,{showSizeChanger:!1,onChange:$t,defaultCurrent:Yn.page||1,current:Yn.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:Q.copy_reviews_count})))},St=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn.effects}})(rn),Tt=P("OaEy"),ct=P("2fM7"),ye=P("iQDF"),Pe=P("+eQT"),Pt=P("zetH"),pt=P.n(Pt),en=P("/zsF"),an=P("PArb"),st=P("w5pM"),xt=P("LvDl"),Nt=Pe.a.RangePicker,yn=ct.a.Option,Mn=function(_n){var bn,Hn,vr,Xn,Vn,Gn,dr=_n.shixunHomeworks,Yn=_n.loading,Qn=_n.dispatch,pr=Object(s.i)(),Q=dr.workSetting,Se=dr.workList,We=dr.changeData,Ve=Object(a.useState)(!0),ut=Object(u.a)(Ve,2),Ke=ut[0],lt=ut[1],mt=Object(a.useState)(!1),ht=Object(u.a)(mt,2),_t=ht[0],$t=ht[1],kt=Object(a.useState)([]),vt=Object(u.a)(kt,2),et=vt[0],Dt=vt[1],Gt=Object(a.useState)([]),Yt=Object(u.a)(Gt,2),wt=Yt[0],En=Yt[1],xn=Object(a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0}),Jn=Object(u.a)(xn,2),It=Jn[0],Wt=Jn[1];Object(a.useEffect)(function(){return vn(),function(){Dt([].concat())}},[]);var vn=function(){Qn({type:"shixunHomeworks/getWorkSetting",payload:Object(B.a)({},pr)})};Object(a.useEffect)(function(){var Vt;if(!(Q!=null&&Q.course_id))return;Object.keys(It).map(function(tt){It[tt]=Q[tt]}),(!It.allow_late||!It.unified_late)&&(It.late_penalty=5),et=JSON.parse(JSON.stringify(Q.group_settings.map(function(tt){return Object(B.a)(Object(B.a)({},tt),{},{group_name:[tt.group_name]})}).filter(function(tt){return tt.publish_time!==null}))),wt=JSON.parse(JSON.stringify(Q.allow_late_settings.map(function(tt){return Object(B.a)(Object(B.a)({},tt),{},{group_name:[tt.group_name]})}).filter(function(tt){return tt.late_time!==null}))),Wt(Object(B.a)({},It)),Dt(Object(f.a)(et)),((Vt=wt)===null||Vt===void 0?void 0:Vt.length)<=0?En([{late_penalty:5}]):En(Object(f.a)(wt))},[Q]);var zt=function(){var tt,Xe,Ft=JSON.parse(JSON.stringify(It));if(Ft.challenge_settings.filter(function(Xt){return!Xt.hide}),Ft.categoryId=pr.categoryId,(tt=Ft.challenge_settings)!==null&&tt!==void 0&&tt.every(function(Xt){return!Xt.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(It.unified_setting||(et=(Xe=et)===null||Xe===void 0?void 0:Xe.map(function(Xt){var jt;if(!Xt.publish_time||!Xt.end_time)throw g.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Xt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Xt.group_name=typeof(Xt==null?void 0:Xt.group_name)=="string"?[Xt==null?void 0:Xt.group_name]:Xt==null?void 0:Xt.group_name,Xt.group_id=(jt=Q.group_settings)===null||jt===void 0?void 0:jt.filter(function(Tn){var Ln;return Xt==null||((Ln=Xt.group_name)===null||Ln===void 0)?void 0:Ln.includes(Tn.group_name)}).map(function(Tn){return Tn.group_id||Tn.id}).toString().split(","),Xt})),Ft.group_settings=et,It.allow_late)if(It.unified_late){if(It.late_penalty===null||It.late_penalty===void 0||It.late_penalty<0||It.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!It.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Ct;wt=(Ct=wt)===null||Ct===void 0?void 0:Ct.map(function(Xt){var jt,Tn;if(Xt.late_penalty===null||Xt.late_penalty===void 0||Xt.late_penalty<0||Xt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Xt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Xt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Xt.group_name=typeof(Xt==null?void 0:Xt.group_name)=="string"?[Xt==null?void 0:Xt.group_name]:Xt==null?void 0:Xt.group_name,Xt.group_id=Xt==null||((jt=Xt.group_name)===null||jt===void 0||((Tn=jt.map(function(Ln){var qt,Dn,Pn=(qt=Q.group_settings)===null||qt===void 0||((Dn=qt.filter(function(Zn){return(Zn==null?void 0:Zn.group_name)===Ln}))===null||Dn===void 0)?void 0:Dn[0];return Pn==null?void 0:Pn.group_id}))===null||Tn===void 0))?void 0:Tn.toString().split(","),Xt}),Ft.allow_late_settings=wt}cn(Ft)},cn=function(tt){var Xe,Ft;if(tt.total_score===null){g.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(tt!=null&&tt.work_efficiency&&tt.eff_score===null){g.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var Ct=tt.challenge_settings.reduce(function(Tn,Ln){return Tn+Number(Ln.challenge_score)},0);if((Ct==null?void 0:Ct.toFixed(10))!==((Xe=tt.total_score-tt.eff_score)===null||Xe===void 0?void 0:Xe.toFixed(10))){g.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(tt.total_score,"\u5206"));return}var Xt={shixun_evaluation:tt.shixun_evaluation,challenge_settings:tt.challenge_settings},jt=function(){var Tn=Object(r.a)(v.a.mark(function Ln(){var qt;return v.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return $t(!0),Pn.next=3,Object(ft.a)("/api/homework_commons/".concat(pr.categoryId,"/publish_setting.json"),{method:"post",body:Object(B.a)({},tt)});case 3:qt=Pn.sent,qt.status===0&&(g.b.success("\u66F4\u65B0\u6210\u529F"),lt(!0),vn(),Qn({type:"shixunHomeworks/getWorkList",payload:Object(B.a)({},pr)})),$t(!1);case 6:case"end":return Pn.stop()}},Ln)}));return function(){return Tn.apply(this,arguments)}}();!Object(xt.isEqual)(We,Xt)&&!(Se!=null&&(Ft=Se.homework_status)!==null&&Ft!==void 0&&Ft.includes("\u672A\u53D1\u5E03"))?b.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:jt}):jt()},Qt=function(tt){return tt&&tt0&&t.a.createElement(A.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},t.a.createElement(m.a,{span:24},t.a.createElement(A.a,null,t.a.createElement(m.a,{span:10}),t.a.createElement(m.a,{span:10},t.a.createElement(A.a,{className:"c-grey-c ml30"},t.a.createElement(m.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),t.a.createElement(m.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),t.a.createElement(m.a,{span:4}))),et&&et.map(function(Vt,tt){var Xe,Ft;return t.a.createElement(m.a,{span:24,key:tt},t.a.createElement(A.a,{gutter:[8,16]},t.a.createElement(m.a,{span:10},t.a.createElement(A.a,{gutter:[8,16]},t.a.createElement(m.a,null,"\u53D1\u5E03\u89C4\u5219 ",tt+1),t.a.createElement(m.a,{flex:"1",style:{maxWidth:300}},t.a.createElement(ct.a,{disabled:Ke||!(Se!=null&&(Xe=Se.homework_status)!==null&&Xe!==void 0&&Xe.includes("\u672A\u53D1\u5E03"))&&Vt.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:Vt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(Xt){et[tt].group_name=Xt,et[tt].group_id=Vt.group_id;var jt=Object(xt.flattenDeep)(et.map(function(Ln){return Ln.group_name})),Tn=wt.map(function(Ln){var qt=(Ln==null?void 0:Ln.group_name)||[];return Object(B.a)(Object(B.a)({},Ln),{},{group_name:Object(xt.remove)(qt,function(Dn){return jt.includes(Dn)})})});En(Tn),Dt(et.slice())}},Q.group_settings&&Q.group_settings.map(function(Ct){if(!et.map(function(Xt){return Xt.group_name}).toString().split(",").includes(String(Ct.group_name)))return t.a.createElement(yn,{value:Ct.group_name,key:Ct.id},Ct.group_name)}))))),t.a.createElement(m.a,{span:10},t.a.createElement("div",{className:"ml30"},t.a.createElement(Nt,{allowClear:!1,disabled:Ke||!(Se!=null&&(Ft=Se.homework_status)!==null&&Ft!==void 0&&Ft.includes("\u672A\u53D1\u5E03"))&&Vt.id&&[!0,!1],style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:Qt,showTime:{format:"HH:mm",defaultValue:[ve()(Object(C.d)(),"HH:mm"),ve()(Object(C.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Vt.publish_time&&[ve()(Vt.publish_time),Vt.end_time?ve()(Vt.end_time):void 0],onChange:function(Xt,jt){et[tt].publish_time=jt[0],et[tt].end_time=jt[1],Dt(Object(f.a)(et))}}))),!Ke&&t.a.createElement(m.a,{span:4},tt>0&&!Vt.id&&t.a.createElement(le.a,{onClick:function(){et=et.filter(function(Xt,jt){return tt!==jt}),Dt(et.slice()),setTimeout(function(){return Dt(et.slice())},10)}}),t.a.createElement(st.a,{className:"c-green ml20",onClick:function(){Dt(et.concat({}))}}))))})),t.a.createElement(an.a,null),t.a.createElement(A.a,null,t.a.createElement(m.a,null,t.a.createElement("h1",null,"\u8865\u4EA4\u8BBE\u7F6E")),t.a.createElement(m.a,{span:24,className:"mt15 pl30"},t.a.createElement(Oe.a,{checked:It.allow_late,disabled:Ke,onChange:function(){It.allow_late=!It.allow_late,wt==""&&En([{late_penalty:5}]),Wt(Object.assign({},It))}},t.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u751F\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1)"))),(It==null?void 0:It.allow_late)&&t.a.createElement("div",{style:{marginLeft:22}},t.a.createElement("div",{className:"ml30 mt20"},t.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),t.a.createElement(de.a.Group,{disabled:Ke,value:It.unified_late,onChange:function(tt){It.unified_late=tt.target.value,wt==""&&!tt.target.value&&En([{late_penalty:5}]),Wt(Object(B.a)({},It))}},(It==null?void 0:It.unified_setting)&&t.a.createElement(de.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(Q==null||((Gn=Q.group_settings)===null||Gn===void 0)?void 0:Gn.length)&&t.a.createElement(de.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),It!=null&&It.unified_late?t.a.createElement(t.a.Fragment,null,t.a.createElement(A.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(m.a,null,"\u8865\u4EA4\u6263\u5206:"),t.a.createElement(m.a,{className:"ml5"},t.a.createElement(Ee.a,{disabled:Ke||!It.allow_late,value:It.late_penalty,onChange:function(tt){It.late_penalty=tt,Wt(Object.assign({},It))}})),t.a.createElement(m.a,{flex:"1",className:"ml5"},"\u5206",t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5EF6\u65F6\u63D0\u4EA4\u4F5C\u54C1\u65F6\uFF0C\u5B66\u751F\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C)"))),t.a.createElement(A.a,{align:"middle",className:"mt25 pl30"},t.a.createElement(m.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),t.a.createElement(m.a,{className:"ml5"},t.a.createElement(Pe.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ve()(Object(C.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Ke||!It.allow_late,value:It.late_time?ve()(It.late_time):"",disabledDate:Qt,onChange:function(tt,Xe){It.late_time=Xe,Wt(Object.assign({},It))}})),t.a.createElement(m.a,null,t.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):wt.map(function(Vt,tt){var Xe;return t.a.createElement(m.a,{span:24,key:tt},t.a.createElement(A.a,{className:"mt25"},t.a.createElement(m.a,{style:{marginLeft:30}},t.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",tt+1,"\uFF1A"),t.a.createElement(ct.a,{disabled:Ke||!(Se!=null&&(Xe=Se.homework_status)!==null&&Xe!==void 0&&Xe.includes("\u672A\u53D1\u5E03"))&&Vt.id,mode:"multiple",style:{width:306},value:typeof Vt.group_name=="string"?[Vt.group_name]:Vt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(Ct){wt[tt].group_name=Ct,wt[tt].group_id=Vt.group_id,En(wt.slice())}},Q.group_settings&&Q.group_settings.map(function(Ft){if(It!=null&&It.unified_setting&&!wt.map(function(Ct){return Ct.group_name}).toString().split(",").includes(String(Ft.group_name)))return t.a.createElement(yn,{value:Ft.group_name,key:Ft.id},Ft.group_name);if(et.map(function(Ct){return Ct.group_name}).toString().split(",").includes(String(Ft.group_name))&&!wt.map(function(Ct){return Ct.group_name}).toString().split(",").includes(String(Ft.group_name)))return t.a.createElement(yn,{value:Ft.group_name,key:Ft.id},Ft.group_name)}))),t.a.createElement(m.a,{className:"ml20"},t.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),t.a.createElement(Ee.a,{min:0,max:100,disabled:Ke,defaultValue:Vt.late_penalty,onChange:function(Ct){wt[tt].late_penalty=Ct}})),t.a.createElement(m.a,{className:"ml20"},t.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),t.a.createElement(Pe.a,{disabled:Ke,style:{width:200},showTime:{format:"HH:mm",defaultValue:ve()(Object(C.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Qt,format:"YYYY-MM-DD HH:mm",value:Vt!=null&&Vt.late_time?ve()(Vt.late_time):void 0,onChange:function(Ct,Xt){wt[tt].late_time=Xt,En(Object(f.a)(wt))}})),!Ke&&t.a.createElement(m.a,{className:"ml20"},tt>0&&!Vt.id&&t.a.createElement(le.a,{onClick:function(){wt=wt.filter(function(Ct,Xt){return tt!==Xt}),En(wt.slice()),setTimeout(function(){return En(wt.slice())},10)}}),t.a.createElement(st.a,{className:"c-green ml20",onClick:function(){En(wt.concat({late_penalty:5}))}}))))})),t.a.createElement(an.a,null),!Ke&&t.a.createElement(m.a,{className:"mb50"},t.a.createElement(N.a,{type:"primary",size:"large",style:{marginTop:"40px"},loading:_t,onClick:function(){return zt()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){lt(!0),vn()}},"\u53D6\u6D88")))},hr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn.effects}})(Mn),yr=Pe.a.RangePicker,lr=ct.a.Option,kn=function(_n){var bn=_n.shixunHomeworks,Hn=_n.loading,vr=_n.dispatch,Xn=Object(s.i)(),Vn=Object(s.h)(),Gn=bn.workSetting,dr=bn.workList,Yn=bn.changeData,Qn=Object(a.useState)(!0),pr=Object(u.a)(Qn,2),Q=pr[0],Se=pr[1],We=Object(a.useState)({}),Ve=Object(u.a)(We,2),ut=Ve[0],Ke=Ve[1],lt=Object(a.useState)(!1),mt=Object(u.a)(lt,2),ht=mt[0],_t=mt[1],$t=bt.a.useForm(),kt=Object(u.a)($t,1),vt=kt[0],et=Object(a.useState)([]),Dt=Object(u.a)(et,2),Gt=Dt[0],Yt=Dt[1],wt=Object(a.useState)([]),En=Object(u.a)(wt,2),xn=En[0],Jn=En[1],It=Object(a.useState)(!1),Wt=Object(u.a)(It,2),vn=Wt[0],zt=Wt[1],cn=Object(a.useState)([]),Qt=Object(u.a)(cn,2),Vt=Qt[0],tt=Qt[1],Xe=Object(a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0}),Ft=Object(u.a)(Xe,2),Ct=Ft[0],Xt=Ft[1];Object(a.useEffect)(function(){return jt(),function(){Yt([].concat())}},[]);var jt=function(){vr({type:"shixunHomeworks/getWorkSetting",payload:Object(B.a)({},Xn)})};Object(a.useEffect)(function(){if(!(Gn!=null&&Gn.course_id))return;Object.keys(Ct).map(function(qt){Ct[qt]=Gn[qt]}),(!Ct.allow_late||!Ct.unified_late)&&(Ct.late_penalty=5),Gt=JSON.parse(JSON.stringify(Gn.group_settings.map(function(qt){return Object(B.a)(Object(B.a)({},qt),{},{group_name:[qt.group_name]})}).filter(function(qt){return qt.publish_time!==null}))),xn=JSON.parse(JSON.stringify(Gn.allow_late_settings.map(function(qt){return Object(B.a)(Object(B.a)({},qt),{},{group_name:[qt.group_name]})}).filter(function(qt){return qt.late_time!==null}))),Xt(Object(B.a)({},Ct)),Yt(Object(f.a)(Gt)),Jn(Object(f.a)(xn))},[Gn]);var Tn=function(){var Dn,Pn,Zn=JSON.parse(JSON.stringify(Ct));if(Zn.challenge_settings.filter(function(Jt){return!Jt.hide}),Zn.categoryId=Xn.categoryId,(Dn=Zn.challenge_settings)!==null&&Dn!==void 0&&Dn.every(function(Jt){return!Jt.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Ct.unified_setting||(Gt=(Pn=Gt)===null||Pn===void 0?void 0:Pn.map(function(Jt){var Bn;if(!Jt.publish_time||!Jt.end_time)throw g.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Jt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Jt.group_name=typeof(Jt==null?void 0:Jt.group_name)=="string"?[Jt==null?void 0:Jt.group_name]:Jt==null?void 0:Jt.group_name,Jt.group_id=(Bn=Gn.group_settings)===null||Bn===void 0?void 0:Bn.filter(function(Or){var Nr;return Jt==null||((Nr=Jt.group_name)===null||Nr===void 0)?void 0:Nr.includes(Or.group_name)}).map(function(Or){return Or.group_id||Or.id}).toString().split(","),Jt})),Zn.group_settings=Gt,Ct.allow_late)if(Ct.unified_late){if(Ct.late_penalty===null||Ct.late_penalty===void 0||Ct.late_penalty<0||Ct.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ct.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Nn;xn=(Nn=xn)===null||Nn===void 0?void 0:Nn.map(function(Jt){var Bn,Or;if(Jt.late_penalty===null||Jt.late_penalty===void 0||Jt.late_penalty<0||Jt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Jt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Jt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Jt.group_name=typeof(Jt==null?void 0:Jt.group_name)=="string"?[Jt==null?void 0:Jt.group_name]:Jt==null?void 0:Jt.group_name,Jt.group_id=Jt==null||((Bn=Jt.group_name)===null||Bn===void 0||((Or=Bn.map(function(Nr){var zr,oa,Xr=(zr=Gn.group_settings)===null||zr===void 0||((oa=zr.filter(function(Yr){return(Yr==null?void 0:Yr.group_name)===Nr}))===null||oa===void 0)?void 0:oa[0];return Xr==null?void 0:Xr.group_id}))===null||Or===void 0))?void 0:Or.toString().split(","),Jt}),Zn.allow_late_settings=xn}Ln(Zn)},Ln=function(Dn){var Pn,Zn;if(console.log(Dn.total_score,Dn.eff_score),Dn.total_score===null){g.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Dn!=null&&Dn.work_efficiency&&Dn.eff_score===null){g.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var Nn=Dn.challenge_settings.reduce(function(Or,Nr){return Or+Number(Nr.challenge_score)},0);if((Nn==null?void 0:Nn.toFixed(10))!==((Pn=Dn.total_score-Dn.eff_score)===null||Pn===void 0?void 0:Pn.toFixed(10))){g.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(Dn.total_score,"\u5206"));return}var Jt={shixun_evaluation:Dn.shixun_evaluation,challenge_settings:Dn.challenge_settings},Bn=function(){var Or=Object(r.a)(v.a.mark(function Nr(){var zr;return v.a.wrap(function(Xr){for(;;)switch(Xr.prev=Xr.next){case 0:return _t(!0),Xr.next=3,Object(ft.a)("/api/homework_commons/".concat(Xn.categoryId,"/public_setting.json"),{method:"post",body:Object(B.a)({},Dn)});case 3:zr=Xr.sent,zr.status===0&&(g.b.success("\u66F4\u65B0\u6210\u529F"),Se(!0),jt(),vr({type:"shixunHomeworks/getWorkList",payload:Object(B.a)({},Xn)})),_t(!1);case 6:case"end":return Xr.stop()}},Nr)}));return function(){return Or.apply(this,arguments)}}();!Object(xt.isEqual)(Yn,Jt)&&!(dr!=null&&(Zn=dr.homework_status)!==null&&Zn!==void 0&&Zn.includes("\u672A\u53D1\u5E03"))?b.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Bn}):Bn()};return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10"].join(" ")},t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"1"},t.a.createElement("span",{style:{fontSize:"16px"}},"\u516C\u5F00\u8BBE\u7F6E")),t.a.createElement(m.a,null,(Gn==null?void 0:Gn.can_edit)&&t.a.createElement(N.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Se(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),t.a.createElement(m.a,{span:24,className:"mt15 pl30"},t.a.createElement(Oe.a,{checked:Ct.score_open,disabled:Q,onChange:function(Dn){Ct.score_open=Dn.target.checked,Xt(Object.assign({},Ct))}},t.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u4F5C\u54C1\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9)")),t.a.createElement(m.a,{span:24,className:"mt15 pl30"},t.a.createElement(Oe.a,{checked:Ct.answer_public,disabled:Q,onChange:function(Dn){Ct.answer_public=Dn.target.checked,Xt(Object.assign({},Ct))}},t.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5B9E\u8BAD\u53C2\u8003\u7B54\u6848\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B\u7B54\u6848)")),t.a.createElement(m.a,{span:24,className:"mt15 pl30 pb40"},t.a.createElement(Oe.a,{checked:Ct.comment_public,disabled:Q,onChange:function(Dn){Ct.comment_public=Dn.target.checked,Xt(Object.assign({},Ct))}},t.a.createElement("strong",null,"\u516C\u5F00\u8BC4\u8BBA")),t.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BFE\u7A0B\u5B9E\u9A8C\u7684\u8BC4\u8BBA\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B)")),!Q&&t.a.createElement(m.a,{className:"mb50"},t.a.createElement(N.a,{type:"primary",size:"large",loading:ht,onClick:function(){return Tn()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Se(!0),jt()}},"\u53D6\u6D88"))),t.a.createElement(b.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:vn,onCancel:function(){return zt(!1)}},t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",t.a.createElement(i.a.Search,{onChange:function(Dn){}})),t.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Dn,Pn){tt(Dn)}},pagination:!1,dataSource:[{name:"1"}],columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]}))))},Wr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn.effects}})(kn),ea=function(_n){var bn=_n.shixunHomeworks,Hn=_n.loading,vr=_n.dispatch,Xn=Object(s.i)(),Vn=bn.workSetting,Gn=bn.workList,dr=bn.changeData,Yn=Object(a.useState)(!0),Qn=Object(u.a)(Yn,2),pr=Qn[0],Q=Qn[1],Se=Object(a.useState)(!1),We=Object(u.a)(Se,2),Ve=We[0],ut=We[1],Ke=Object(a.useState)(!1),lt=Object(u.a)(Ke,2),mt=lt[0],ht=lt[1],_t=bt.a.useForm(),$t=Object(u.a)(_t,1),kt=$t[0],vt=Object(a.useState)([]),et=Object(u.a)(vt,2),Dt=et[0],Gt=et[1],Yt=Object(a.useState)([]),wt=Object(u.a)(Yt,2),En=wt[0],xn=wt[1],Jn=Object(a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,is_onpage_time:!0,training_time_rules:1}),It=Object(u.a)(Jn,2),Wt=It[0],vn=It[1];Object(a.useEffect)(function(){return zt(),function(){Gt([].concat())}},[]);var zt=function(){vr({type:"shixunHomeworks/getWorkSetting",payload:Object(B.a)({},Xn)})};Object(a.useEffect)(function(){if(!(Vn!=null&&Vn.course_id))return;Object.keys(Wt).map(function(tt){Wt[tt]=Vn[tt]}),(!Wt.allow_late||!Wt.unified_late)&&(Wt.late_penalty=5),Dt=JSON.parse(JSON.stringify(Vn.group_settings.map(function(tt){return Object(B.a)(Object(B.a)({},tt),{},{group_name:[tt.group_name]})}).filter(function(tt){return tt.publish_time!==null}))),En=JSON.parse(JSON.stringify(Vn.allow_late_settings.map(function(tt){return Object(B.a)(Object(B.a)({},tt),{},{group_name:[tt.group_name]})}).filter(function(tt){return tt.late_time!==null}))),vn(Object(B.a)({},Wt)),Gt(Object(f.a)(Dt)),xn(Object(f.a)(En))},[Vn]);var cn=function(){var Xe,Ft,Ct=JSON.parse(JSON.stringify(Wt));if(Ct.challenge_settings.filter(function(jt){return!jt.hide}),Ct.categoryId=Xn.categoryId,(Xe=Ct.challenge_settings)!==null&&Xe!==void 0&&Xe.every(function(jt){return!jt.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Wt.unified_setting||(Dt=(Ft=Dt)===null||Ft===void 0?void 0:Ft.map(function(jt){var Tn;if(!jt.publish_time||!jt.end_time)throw g.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!jt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return jt.group_name=typeof(jt==null?void 0:jt.group_name)=="string"?[jt==null?void 0:jt.group_name]:jt==null?void 0:jt.group_name,jt.group_id=(Tn=Vn.group_settings)===null||Tn===void 0?void 0:Tn.filter(function(Ln){var qt;return jt==null||((qt=jt.group_name)===null||qt===void 0)?void 0:qt.includes(Ln.group_name)}).map(function(Ln){return Ln.group_id||Ln.id}).toString().split(","),jt})),Ct.group_settings=Dt,Wt.allow_late)if(Wt.unified_late){if(Wt.late_penalty===null||Wt.late_penalty===void 0||Wt.late_penalty<0||Wt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Wt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Xt;En=(Xt=En)===null||Xt===void 0?void 0:Xt.map(function(jt){var Tn,Ln;if(jt.late_penalty===null||jt.late_penalty===void 0||jt.late_penalty<0||jt.late_penalty>100)throw g.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!jt.late_time)throw g.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!jt.group_name)throw g.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return jt.group_name=typeof(jt==null?void 0:jt.group_name)=="string"?[jt==null?void 0:jt.group_name]:jt==null?void 0:jt.group_name,jt.group_id=jt==null||((Tn=jt.group_name)===null||Tn===void 0||((Ln=Tn.map(function(qt){var Dn,Pn,Zn=(Dn=Vn.group_settings)===null||Dn===void 0||((Pn=Dn.filter(function(Nn){return(Nn==null?void 0:Nn.group_name)===qt}))===null||Pn===void 0)?void 0:Pn[0];return Zn==null?void 0:Zn.group_id}))===null||Ln===void 0))?void 0:Ln.toString().split(","),jt}),Ct.allow_late_settings=En}Qt(Ct)},Qt=function(Xe){var Ft,Ct;if(console.log(Xe.total_score,Xe.eff_score),Xe.total_score===null){g.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Xe!=null&&Xe.work_efficiency&&Xe.eff_score===null){g.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var Xt=Xe.challenge_settings.reduce(function(Ln,qt){return Ln+Number(qt.challenge_score)},0);if((Xt==null?void 0:Xt.toFixed(10))!==((Ft=Xe.total_score-Xe.eff_score)===null||Ft===void 0?void 0:Ft.toFixed(10))){g.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(Xe.total_score,"\u5206"));return}var jt={shixun_evaluation:Xe.shixun_evaluation,challenge_settings:Xe.challenge_settings},Tn=function(){var Ln=Object(r.a)(v.a.mark(function qt(){var Dn;return v.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:return ut(!0),Zn.next=3,Object(ft.a)("/api/homework_commons/".concat(Xn.categoryId,"/score_setting.json"),{method:"post",body:Object(B.a)({},Xe)});case 3:Dn=Zn.sent,Dn.status===0&&(g.b.success("\u66F4\u65B0\u6210\u529F"),Q(!0),zt(),vr({type:"shixunHomeworks/getWorkList",payload:Object(B.a)({},Xn)})),ut(!1);case 6:case"end":return Zn.stop()}},qt)}));return function(){return Ln.apply(this,arguments)}}();!Object(xt.isEqual)(dr,jt)&&!(Gn!=null&&(Ct=Gn.homework_status)!==null&&Ct!==void 0&&Ct.includes("\u672A\u53D1\u5E03"))?b.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Tn}):Tn()},Vt=function(){var Xe,Ft=Wt.eff_score,Ct=Wt.total_score,Xt=Ct-Ft,jt=(Xe=Wt.challenge_settings)===null||Xe===void 0?void 0:Xe.filter(function(Jt){return Jt.checked}).length;if(!jt){Wt.challenge_settings.map(function(Jt,Bn){Jt.challenge_score=0});return}var Tn=Wt.challenge_settings.filter(function(Jt){return Jt.checked}).map(function(Jt){return Jt.challenge_exp}).reduce(function(Jt,Bn){return Jt+Bn}),Ln=Xt/Tn,qt=0,Dn=0,Pn;switch(Wt.shixun_evaluation){case 0:var Zn=(Xt/jt).toFixed(1);Wt.challenge_settings.map(function(Jt,Bn){Jt.checked?(qt=Bn,Jt.challenge_score=Zn>0?Zn:0):Jt.challenge_score=0}),Pn=(Xt-Zn*(jt-1)).toFixed(1),Wt.challenge_settings[qt].challenge_score=Pn>0?Pn:0;break;case 1:Wt.challenge_settings.map(function(Jt,Bn){Jt.checked?(qt=Bn,Dn+=Number((Math.round(Jt.challenge_exp*Ln*10)/10).toFixed(1)),Jt.challenge_score=(Math.round(Jt.challenge_exp*Ln*10)/10).toFixed(1)):Jt.challenge_score=0});var Nn=Wt.challenge_settings[qt].challenge_score;Pn=(Xt-Dn+Number(Nn)).toFixed(1),Wt.challenge_settings[qt].challenge_score=Pn>0?Pn:0;break}};return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10 mb20 pb10"].join(" ")},t.a.createElement(A.a,{className:"mt25"},t.a.createElement(m.a,{flex:"1"}),t.a.createElement(m.a,null,(Vn==null?void 0:Vn.can_edit)&&t.a.createElement(N.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Q(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),t.a.createElement(m.a,{span:24,className:"pl30 mt10"},t.a.createElement("strong",null,"\u603B\u5206\u503C\uFF1A"),t.a.createElement(Ee.a,{min:0,value:Wt.total_score,disabled:pr,onChange:function(Xe){Wt.total_score=Xe,vn(Object.assign({},Wt)),Vt()}}),"\xA0\u5206"),t.a.createElement(m.a,{span:24,style:{paddingLeft:60,marginTop:20}},t.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u7684\u9009\u62E9\u548C\u5206\u503C\u8BBE\u7F6E"),t.a.createElement("span",{className:"c-orange"},"\xA0(\u603B\u5206\u503C = \u6548\u7387\u5206+ \u5173\u5361\u4EFB\u52A1\u603B\u5206)"))),t.a.createElement(A.a,{style:{paddingLeft:85,marginTop:30}},t.a.createElement(m.a,{flex:"1"},t.a.createElement(Oe.a,{disabled:pr,checked:Wt.work_efficiency,onChange:function(Xe){Wt.work_efficiency=Xe.target.checked,Wt.work_efficiency?Wt.eff_score=20:Wt.eff_score=0,vn(Object.assign({},Wt)),Vt()}},t.a.createElement("strong",null,"\u6548\u7387\u5206")),t.a.createElement("span",{className:"c-orange font12",style:{marginLeft:-4}},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u6700\u7EC8\u6210\u7EE9\u5305\u542B\u6548\u7387\u5206\u3002\u6548\u7387\u5206\u5728\u4F5C\u4E1A\u622A\u6B62\u6216\u8005\u8865\u4EA4\u7ED3\u675F\u540E\u7531\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210)")),t.a.createElement(m.a,{className:pt.a.efficiency},"\uFF08\u5B66\u751F\u5B66\u4E60\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)",t.a.createElement("br",null),"\uFF08\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5B66\u4E60\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8\u5B66\u4E60\u6548\u7387 * \u5206\u503C\uFF09",t.a.createElement("br",null),t.a.createElement("span",{style:{marginLeft:10}},"\u53E6\uFF1A\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B66\u751F\u6548\u7387\u5206\u8BB0 0 \u5206"))),t.a.createElement(A.a,{align:"middle",style:{paddingLeft:105}},t.a.createElement(m.a,null,t.a.createElement("span",{className:"mr5"},"\u6548\u7387\u5206"),t.a.createElement(Ee.a,{min:0,disabled:pr||!Wt.work_efficiency,value:Wt.eff_score,step:.1,onChange:function(Xe){Wt.eff_score=Xe,vn(Object.assign({},Wt)),Vt()}}),t.a.createElement("span",null,"\xA0\u5206"))),t.a.createElement(A.a,{align:"middle",style:{paddingLeft:105,marginTop:"20px"}},t.a.createElement(m.a,null,t.a.createElement("span",{className:"mr5"},"\u5B9E\u8BAD\u8017\u65F6\u89C4\u5219\uFF1A"),t.a.createElement(de.a.Group,{disabled:pr,value:Wt.training_time_rules,onChange:function(Xe){Wt.training_time_rules=Xe.target.value,vn(Object.assign({},Wt)),Vt()}},t.a.createElement(de.a,{value:1},"\u9875\u9762\u505C\u7559\u65F6\u957F"),t.a.createElement(de.a,{value:2},"\u5173\u5361\u603B\u8017\u65F6"),t.a.createElement(de.a,{value:3},"\u5373\u65F6\u901A\u5173\u65F6\u957F",t.a.createElement("i",{onClick:function(Xe){Xe.stopPropagation(),Xe.preventDefault(),ht(!0)},style:{marginLeft:10,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"}))))),t.a.createElement(A.a,{align:"middle",style:{paddingLeft:85,marginTop:35}},t.a.createElement(m.a,null,t.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u5206\u503C\u8BBE\u7F6E\u89C4\u5219")),t.a.createElement(m.a,{flex:"1"},t.a.createElement(bt.a.Item,{className:"ml5"},t.a.createElement(de.a.Group,{disabled:pr,value:Wt.shixun_evaluation,onChange:function(Xe){Wt.shixun_evaluation=Xe.target.value,vn(Object.assign({},Wt)),Vt()}},t.a.createElement(de.a,{value:0},"\u5747\u5206\u6BD4\u4F8B"),t.a.createElement(de.a,{value:1},"\u96BE\u6613\u5EA6"),t.a.createElement(de.a,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))))),t.a.createElement(A.a,null,t.a.createElement(m.a,{style:{marginLeft:145,marginTop:15}},t.a.createElement("span",{className:"font16"},"\u5173\u5361\u540D\u79F0"),t.a.createElement("span",{className:"font14 ml5 c-orange"},(Vn!=null&&Vn.task_pass,"(\u8BF7\u9009\u4E2D\u9700\u8981\u5B66\u751F\u5B8C\u6210\u7684\u5173\u5361\uFF0C\u8BE5\u5B9E\u8BAD\u652F\u6301\u8DF3\u5173\u5B66\u4E60)")))),Wt.challenge_settings&&Wt.challenge_settings.map(function(tt,Xe){return t.a.createElement(A.a,{key:Xe,align:"middle",style:{paddingLeft:275,marginTop:20}},t.a.createElement(m.a,{flex:"1"},t.a.createElement(Oe.a,{disabled:pr,checked:tt.checked,onChange:function(Ct){var Xt=Object(xt.cloneDeep)(Wt.challenge_settings);if(Xt[Xe].checked=Ct.target.checked,Xt!=null&&Xt.every(function(jt){return!jt.checked})){g.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}Wt.challenge_settings[Xe].checked=Ct.target.checked,Wt.challenge_settings[Xe].hide=Ct.target.checked,Wt.shixun_evaluation===2&&!Ct.target.checked&&(Wt.challenge_settings[Xe].challenge_score=0),vn(Object(B.a)({},Wt)),Vt()}},t.a.createElement("strong",null,tt.challenge_name))),t.a.createElement(m.a,null,!tt.checked&&t.a.createElement("span",{className:"tag-style-border-small bg-orange border-raduis-50 c-white mr10"},"\u53EF\u4E0D\u505A")),t.a.createElement(m.a,{flex:"150px"},t.a.createElement(Ee.a,{min:0,step:.1,value:tt.challenge_score,disabled:pr||Wt.shixun_evaluation!==2||!tt.checked,onChange:function(Ct){Wt.challenge_settings[Xe].challenge_score=Ct,vn(Object(B.a)({},Wt))}}),t.a.createElement("span",{className:"ml10"},"\u5206")),t.a.createElement(m.a,{flex:"300px"},t.a.createElement("span",{className:"tag-style-border-small bg-green c-white mr10"},tt.difficulty),"\u91D1\u5E01\u5956\u52B1\u6570\uFF1A ",tt.challenge_exp))}),t.a.createElement(A.a,{className:"mt30",style:{paddingLeft:65}},t.a.createElement(m.a,null,t.a.createElement("span",{className:"font16 c-black"},"\u67E5\u770B\u53C2\u8003\u7B54\u6848\u624D\u901A\u8FC7\u8BC4\u6D4B\u7684\u5173\u5361\u6263\u5206\u89C4\u5219"),t.a.createElement("span",{className:"font12 c-grey-c"},"\xA0(\u5B66\u751F\u901A\u8FC7\u8BC4\u6D4B\u540E\u518D\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF0C\u4E0D\u5BF9\u6210\u7EE9\u4EA7\u751F\u5F71\u54CD)"))),t.a.createElement(A.a,{style:{paddingLeft:65}},t.a.createElement(de.a.Group,{disabled:pr,value:Wt.answer_open_evaluation,onChange:function(Xe){Wt.answer_open_evaluation=Xe.target.value,vn(Object(B.a)({},Wt))}},t.a.createElement(de.a,{value:!1,style:{marginTop:15}},t.a.createElement("strong",null,"\u6309\u67E5\u770B\u7B54\u6848\u7EA7\u522B\u6263\u5206"),t.a.createElement("span",{className:"c-grey-c"},"(\u6839\u636E\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7684\u5B9E\u8BAD\u7B54\u6848\u7EA7\u522B(\u89E3\u9898\u601D\u8DEF\u3001\u5B8C\u6574\u7B54\u6848)\uFF0C\u6263\u51CF\u76F8\u5E94\u7684\u5206\u503C)")),t.a.createElement("br",null),t.a.createElement(de.a,{value:!0,style:{marginTop:15}},t.a.createElement("strong",null,"\u4E0D\u6263\u5206")))),!pr&&t.a.createElement(m.a,{className:"mb50",style:{marginTop:"10px"}},t.a.createElement(N.a,{type:"primary",size:"large",loading:Ve,onClick:function(){return cn()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Q(!0),zt()}},"\u53D6\u6D88")),t.a.createElement(b.a,{visible:mt,width:860,onCancel:function(){ht(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},t.a.createElement("div",{style:{color:"#333333",fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),t.a.createElement("br",null),t.a.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),t.a.createElement("br",null),t.a.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),t.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),t.a.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),t.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),t.a.createElement("br",null),t.a.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),t.a.createElement("br",null),t.a.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),t.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),t.a.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),t.a.createElement("br",null),t.a.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),t.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"3\u3001\u5373\u65F6\u901A\u5173\u65F6\u957F"),t.a.createElement("br",null),t.a.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),t.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},t.a.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),t.a.createElement("br",null),t.a.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u8BA1\u65F6\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))))},Pr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn.effects}})(ea),mr=function(_n){var bn,Hn,vr=_n.shixunHomeworks,Xn=_n.loading,Vn=_n.dispatch,Gn=Object(a.useState)(!0),dr=Object(u.a)(Gn,2),Yn=dr[0],Qn=dr[1],pr=Object(a.useState)(!1),Q=Object(u.a)(pr,2),Se=Q[0],We=Q[1],Ve=Object(a.useState)([]),ut=Object(u.a)(Ve,2),Ke=ut[0],lt=ut[1],mt=Object(a.useState)([]),ht=Object(u.a)(mt,2),_t=ht[0],$t=ht[1],kt=Object(a.useState)([]),vt=Object(u.a)(kt,2),et=vt[0],Dt=vt[1],Gt=Object(a.useState)([]),Yt=Object(u.a)(Gt,2),wt=Yt[0],En=Yt[1],xn=Object(s.i)();function Jn(){return It.apply(this,arguments)}function It(){return It=Object(r.a)(v.a.mark(function cn(){var Qt;return v.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(ft.a)("/api/homework_commons/".concat(xn.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Qt=tt.sent,$t(Qt);case 4:case"end":return tt.stop()}},cn)})),It.apply(this,arguments)}function Wt(){return vn.apply(this,arguments)}function vn(){return vn=Object(r.a)(v.a.mark(function cn(){var Qt;return v.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(ft.a)("/api/courses/".concat(xn==null?void 0:xn.coursesId,"/teachers"),{method:"get",params:{homework_id:xn.categoryId}});case 2:Qt=tt.sent,Qt==null||Qt.teacher_list.map(function(Xe){Xe.key=Xe.user_id}),Dt(Qt==null?void 0:Qt.teacher_list),En(Qt==null?void 0:Qt.teacher_list);case 6:case"end":return tt.stop()}},cn)})),vn.apply(this,arguments)}Object(a.useEffect)(function(){Jn(),Wt()},[xn]);var zt=function(){};return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10"].join(" ")},t.a.createElement(A.a,null,t.a.createElement(m.a,{flex:"1"},t.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(_t==null?void 0:_t.can_edit)&&t.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){We(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),t.a.createElement(A.a,{style:{marginTop:"20px",marginBottom:"20px"}},(_t==null||((bn=_t.data)===null||bn===void 0)?void 0:bn.length)<=0&&t.a.createElement(De.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),_t==null||((Hn=_t.data)===null||Hn===void 0)?void 0:Hn.map(function(cn){return t.a.createElement("span",{style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px"}},t.a.createElement("span",{style:{flex:"1"}},cn==null?void 0:cn.real_name),(_t==null?void 0:_t.can_edit)&&t.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(r.a)(v.a.mark(function Qt(){var Vt;return v.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Object(ft.a)("/api/homework_commons/".concat(xn.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:cn.id}});case 2:Vt=Xe.sent,Vt.status===0&&(g.b.info("\u5220\u9664\u6210\u529F"),Jn(),Wt());case 4:case"end":return Xe.stop()}},Qt)}))},"X"))})),t.a.createElement(A.a,null,!Yn&&t.a.createElement(m.a,{className:"mb50"},t.a.createElement(N.a,{type:"primary",size:"large",onClick:function(){return zt()}},"\u63D0\u4EA4"),t.a.createElement(N.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Qn(!0)}},"\u53D6\u6D88"))),t.a.createElement(b.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Se,onCancel:function(){return We(!1)},onOk:Object(r.a)(v.a.mark(function cn(){var Qt;return v.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!(Ke.length===0)){tt.next=3;break}return g.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),tt.abrupt("return");case 3:return tt.next=5,Object(ft.a)("/api/homework_commons/".concat(xn.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:Ke}});case 5:Qt=tt.sent,Qt.status===0&&(g.b.info("\u6DFB\u52A0\u6210\u529F"),lt([]),Jn(),Wt(),We(!1));case 7:case"end":return tt.stop()}},cn)}))},t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",t.a.createElement(i.a.Search,{onChange:function(Qt){Dt(wt.filter(function(Vt){return Vt.name.indexOf(Qt.target.value)>-1}))}})),t.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Qt,Vt){lt(Qt)},selectedRowKeys:Ke,getCheckboxProps:function(Qt){return{disabled:Qt.is_collaborator}}},pagination:!1,dataSource:et,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},Fr=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn.effects}})(mr),ta=Pe.a.RangePicker,ca=ct.a.Option,Zt=function(_n){var bn=_n.shixunHomeworks,Hn=_n.loading,vr=_n.dispatch;return t.a.createElement("section",{className:[pt.a.form," bg-white pl30 pr30 pt10"].join(" ")},t.a.createElement(j.a,null,t.a.createElement(j.a.TabPane,{tab:"\u53D1\u5E03\u8BBE\u7F6E",key:1},t.a.createElement(hr,null)),t.a.createElement(j.a.TabPane,{tab:"\u8BC4\u5206\u8BBE\u7F6E",key:2},t.a.createElement(Pr,null)),t.a.createElement(j.a.TabPane,{tab:"\u516C\u5F00\u8BBE\u7F6E",key:3},t.a.createElement(Wr,null)),t.a.createElement(j.a.TabPane,{tab:"\u534F\u4F5C\u8BBE\u7F6E",key:4},t.a.createElement(Fr,null))))},In=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn.effects}})(Zt),fr=P("lO7E"),Dr=P.n(fr),Cr=P("cVA7"),wr=P.n(Cr),J=function(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return console.log("---",_n,bn,Hn),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:Hn},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:bn},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:_n}]}},U=function(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return{dataset:[{source:_n}],tooltip:{show:!0,formatter:function(Hn){return Hn.value[2]+":"+Hn.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]}},H=function(_n){var bn,Hn,vr,Xn,Vn=_n.shixunHomeworks,Gn=_n.loading,dr=_n.dispatch,Yn=Object(s.i)(),Qn=Object(a.useState)(Object(B.a)(Object(B.a)({},{sort_by:"student_id",sort_direction:"desc"}),Yn)),pr=Object(u.a)(Qn,2),Q=pr[0],Se=pr[1],We=Object(a.useState)(),Ve=Object(u.a)(We,2),ut=Ve[0],Ke=Ve[1],lt=Object(a.useState)([]),mt=Object(u.a)(lt,2),ht=mt[0],_t=mt[1],$t=Object(a.useRef)(),kt=Object(a.useState)(1),vt=Object(u.a)(kt,2),et=vt[0],Dt=vt[1],Gt=Object(a.useState)(10),Yt=Object(u.a)(Gt,2),wt=Yt[0],En=Yt[1],xn=Object(a.useState)([]),Jn=Object(u.a)(xn,2),It=Jn[0],Wt=Jn[1];Object(a.useEffect)(function(){zt()},[]);var vn=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="student_number"?Q.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u5D29\u6E83",dataIndex:"bug",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.blocker)}},{title:"\u4E25\u91CD",dataIndex:"bug",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.critical)}},{title:"\u4E3B\u8981",dataIndex:"bug",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.major)}},{title:"\u6B21\u8981",dataIndex:"bug",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.minor)}},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Q.sort_by==="bug"?Q.sort_direction==="desc"?"descend":"ascend":null,render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.grade)}}]},{title:"\u6F0F\u6D1E",children:[{title:"\u5D29\u6E83",dataIndex:"vulnerability",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.blocker)}},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.critical)}},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.major)}},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.minor)}},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Q.sort_by==="vulnerability"?Q.sort_direction==="desc"?"descend":"ascend":null,render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.grade)}}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u5D29\u6E83",dataIndex:"specification",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.blocker)}},{title:"\u4E25\u91CD",dataIndex:"specification",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.critical)}},{title:"\u4E3B\u8981",dataIndex:"specification",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.major)}},{title:"\u6B21\u8981",dataIndex:"specification",render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.minor)}},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Q.sort_by==="specification"?Q.sort_direction==="desc"?"descend":"ascend":null,render:function(Xe){return t.a.createElement("span",{className:"current"},Xe==null?void 0:Xe.grade)}}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="complexity"?Q.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="total_row_number"?Q.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Q.sort_by==="quality_score"?Q.sort_direction==="desc"?"descend":"ascend":null}];Object(a.useEffect)(function(){return ut===2&&($t.current=setInterval(function(){zt()},6e4)),function(){clearTimeout($t.current)}},[ut]);function zt(){return cn.apply(this,arguments)}function cn(){return cn=Object(r.a)(v.a.mark(function tt(){var Xe;return v.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(ft.a)("/api/homework_commons/".concat(Q.categoryId,"/code_quality_analyses/check_status.json"),{method:"GET"});case 2:Xe=Ct.sent,Ke(Xe.status),Xe.status!=2&&Xe.status!=-1&&(Qt({page:1,limit:10}),clearTimeout($t.current));case 5:case"end":return Ct.stop()}},tt)})),cn.apply(this,arguments)}function Qt(tt){return Vt.apply(this,arguments)}function Vt(){return Vt=Object(r.a)(v.a.mark(function tt(Xe){var Ft;return v.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Dt(Xe==null?void 0:Xe.page),En(Xe==null?void 0:Xe.limit),Xt.next=4,Object(ft.a)("/api/homework_commons/".concat(Q.categoryId,"/code_quality_analyses.json"),{method:"GET",params:Object(B.a)({},Xe)});case 4:Ft=Xt.sent,_t(Ft);case 6:case"end":return Xt.stop()}},tt)})),Vt.apply(this,arguments)}return console.log("-------",ut),t.a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pl30 pr30 pt10"},(ut===0||ut===1)&&t.a.createElement("div",null,t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{flex:"1"}},t.a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",ht==null?void 0:ht.created_at)),t.a.createElement(N.a,{onClick:function(){dr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement(A.a,{style:{width:"100%"}},t.a.createElement(m.a,{flex:"80px"},t.a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),t.a.createElement(m.a,{flex:"80px"},t.a.createElement(Oe.a,{checked:(It==null?void 0:It.length)===0,onChange:function(Xe){Xe.target.checked&&(Wt([]),Qt({page:et,limit:wt}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),t.a.createElement(m.a,{flex:"1"},t.a.createElement(Oe.a.Group,{value:It,onChange:function(){var tt=Object(r.a)(v.a.mark(function Xe(Ft){return v.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:Wt(Object(f.a)(Ft)),Qt({page:et,limit:wt,group_course_ids:Ft});case 2:case"end":return Xt.stop()}},Xe)}));return function(Xe){return tt.apply(this,arguments)}}(),style:{width:"100%",fontSize:"14px"}},ht==null||((bn=ht.course_groups)===null||bn===void 0)?void 0:bn.map(function(tt,Xe){return t.a.createElement(Oe.a,{style:{fontSize:"14px"},value:tt==null?void 0:tt.id},tt==null?void 0:tt.name,"(",tt==null?void 0:tt.count,")")}))))),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",null,t.a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("div",null,t.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(ht==null?void 0:ht.grade_statistics)&&t.a.createElement(wr.a,{option:J(ht==null||((Hn=ht.grade_statistics)===null||Hn===void 0)?void 0:Hn.map(function(tt){return tt.specification_count}),ht==null||((vr=ht.grade_statistics)===null||vr===void 0)?void 0:vr.map(function(tt){return tt.vulnerability_count}),ht==null||((Xn=ht.grade_statistics)===null||Xn===void 0)?void 0:Xn.map(function(tt){return tt.bug_count})),style:{height:400,width:600},opts:{renderer:"svg"}})),t.a.createElement("div",null,t.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(ht==null?void 0:ht.quality_scores)&&t.a.createElement(wr.a,{option:U(ht==null?void 0:ht.quality_scores.map(function(tt,Xe){return[Xe+1,tt==null?void 0:tt.quality_score,tt==null?void 0:tt.user_name]})),style:{height:400,width:600},opts:{renderer:"svg"}}))),t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),t.a.createElement(i.a.Search,{size:"large",onSearch:function(Xe){Qt({page:1,limit:wt,search:Xe})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),t.a.createElement(F.a,{columns:vn,dataSource:ht==null?void 0:ht.analysis,bordered:!0,scroll:{x:"calc(700px + 50%)"},pagination:!1,onChange:function(Xe,Ft,Ct){Ct.field&&(Q.sort_by=Ct.field),Ct.order||(Q.sort_direction="asc"),Ct.order==="ascend"&&(Q.sort_direction="asc"),Ct.order==="descend"&&(Q.sort_direction="desc"),Ct.order||(Q.sort_direction="asc"),Qt(Object(B.a)({page:1,limit:wt},Q))}}),t.a.createElement(_.a,{current:et,total:ht==null?void 0:ht.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:wt,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:function(Xe,Ft){Dt(Xe),En(Ft),Qt({page:Xe,limit:Ft,group_course_ids:It})}}))),ut===2&&t.a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},t.a.createElement("img",{src:Dr.a}),t.a.createElement("br",null),t.a.createElement(N.a,{type:"primary",style:{width:"120px",height:"40px"},onClick:function(){zt()}},"\u5237\u65B0\u9875\u9762")),t.a.createElement(Ye,null))},$=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn.effects}})(H),re=P("RotF"),ee=P.n(re),Qe=function(_n){var bn,Hn=_n.shixunHomeworks,vr=_n.loading,Xn=_n.dispatch,Vn=Object(s.i)(),Gn=Object(s.h)(),dr=Object(a.useState)([]),Yn=Object(u.a)(dr,2),Qn=Yn[0],pr=Yn[1],Q=Object(a.useState)([]),Se=Object(u.a)(Q,2),We=Se[0],Ve=Se[1],ut=Object(a.useState)(!0),Ke=Object(u.a)(ut,2),lt=Ke[0],mt=Ke[1],ht=Object(a.useState)(!1),_t=Object(u.a)(ht,2),$t=_t[0],kt=_t[1],vt=Object(a.useState)(1),et=Object(u.a)(vt,2),Dt=et[0],Gt=et[1],Yt=Object(a.useState)([]),wt=Object(u.a)(Yt,2),En=wt[0],xn=wt[1],Jn=Object(a.useState)(!1),It=Object(u.a)(Jn,2),Wt=It[0],vn=It[1],zt=Object(a.useState)(!1),cn=Object(u.a)(zt,2),Qt=cn[0],Vt=cn[1];Object(a.useEffect)(function(){Hn.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"?(Ft.resetFields(),pr([]),vn(!0),Xt()):vn(!1)},[Hn.actionTabs.key]);var tt=bt.a.useForm(),Xe=Object(u.a)(tt,1),Ft=Xe[0],Ct=[],Xt=function(){var Ln=Object(r.a)(v.a.mark(function qt(){var Dn,Pn,Zn;return v.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(!(lt&&!$t)){Jt.next=11;break}return kt(!0),Gt(Dt+1),Jt.next=5,Object(q.x)(Object(B.a)(Object(B.a)({},Vn),{},{page:Dt}));case 5:Pn=Jt.sent,Zn=Object(f.a)(Pn.group_list),Pn!=null&&Pn.ungroup_list&&Zn.push({id:Pn==null?void 0:Pn.ungroup_list.id,name:Pn==null?void 0:Pn.ungroup_list.name,works_count:Pn==null?void 0:Pn.ungroup_list.work_count,last_review_time:Pn==null?void 0:Pn.ungroup_list.last_review_time}),pr([].concat(Object(f.a)(Qn),Object(f.a)(Zn))),kt(!1),((Dn=Pn.group_list)===null||Dn===void 0?void 0:Dn.length)<10&&mt(!1);case 11:case"end":return Jt.stop()}},qt)}));return function(){return Ln.apply(this,arguments)}}(),jt=function(){Xn({type:"shixunHomeworks/setActionTabs",payload:{}}),Vt(!1),mt(!0),kt(!1),Gt(1),pr([]),Ft.resetFields()},Tn=[{title:"",dataIndex:"id",width:280,render:function(qt,Dn){return t.a.createElement(Oe.a,{disabled:!(Dn.works_count>1),value:String(Dn.id)},Dn.name)}},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4",dataIndex:"last_review_time",width:130}];return t.a.createElement(b.a,{centered:!0,title:"\u4EE3\u7801\u67E5\u91CD",keyboard:!1,maskClosable:!1,visible:Wt,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:820,bodyStyle:{minHeight:200},onOk:Object(r.a)(v.a.mark(function Ln(){var qt,Dn;return v.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:return qt=Ft.getFieldValue(),Zn.next=3,Object(ft.a)("/api/homework_commons/".concat(Vn.categoryId,"/homework_code_repeat.json"),{method:"post",body:{group_ids:Object(f.a)(qt.group_ids)}});case 3:if(Dn=Zn.sent,!(Dn.status===0)){Zn.next=11;break}return jt(),g.b.success("\u64CD\u4F5C\u6210\u529F"),Zn.next=9,Xn({type:"shixunHomeworks/getWorkList",payload:Hn.actionTabs.params});case 9:y.d.push("/classrooms/".concat(Vn.coursesId,"/shixun_homework/").concat(Vn.categoryId,"/detail?tabs=2")),Xn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6267\u884C\u4EE3\u7801\u67E5\u91CD"}});case 11:case"end":return Zn.stop()}},Ln)})),onCancel:jt},Hn.codeReviewCourse&&t.a.createElement(bt.a,{form:Ft,onChange:function(qt){xn(Object(B.a)({},Ft.getFieldValue()))},initialValues:(bn={},Object(dt.a)(bn,"group_ids",Ct),Object(dt.a)(bn,"end_time",ve()(ve()().add(7,"days").format("YYYY-MM-DD HH:mm"))),bn)},t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(F.a,{pagination:!1,dataSource:[],columns:Tn})),t.a.createElement(bt.a.Item,{name:"group_ids"},t.a.createElement(Oe.a.Group,{className:"w100"},t.a.createElement("div",{style:{width:"100%",maxHeight:260,overflow:"auto"}},t.a.createElement(ee.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(qt){Xt()},hasMore:lt,useWindow:!1},t.a.createElement(F.a,{loading:vr.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:Tn,dataSource:Qn,pagination:!1})))))),t.a.createElement(A.a,null,t.a.createElement(m.a,{className:"ml10"},t.a.createElement(Oe.a,{checked:Qt,onChange:function(qt){Vt(qt.target.checked);var Dn=[];qt.target.checked&&(Dn=Qn.filter(function(Pn){return Pn.works_count>1}).map(function(Pn){return Pn.id+""})),Ft.setFieldsValue(Object(dt.a)({},"group_ids",Dn))}},"\u5168\u9009"))))},dn=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading;return{shixunHomeworks:_n,loading:bn}})(Qe),On=P("R5GN"),Wn=P("rhHp"),pn=P("Aocz"),er=P.n(pn),tr=P("HBuW"),Br=P("NLgs"),ua=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u5D29\u6E83\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u5D29\u6E83\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}],va=function(_n){var bn,Hn,vr,Xn,Vn,Gn,dr,Yn,Qn=_n.shixunHomeworks,pr=_n.globalSetting,Q=_n.loading,Se=_n.dispatch,We=Object(s.i)(),Ve=Object(s.h)(),ut=Object(s.g)(),Ke=Object(a.useState)([]),lt=Object(u.a)(Ke,2),mt=lt[0],ht=lt[1],_t=Object(a.useState)(Ve.query.tabs||"0"),$t=Object(u.a)(_t,2),kt=$t[0],vt=$t[1],et=Object(a.useState)({}),Dt=Object(u.a)(et,2),Gt=Dt[0],Yt=Dt[1],wt=Qn.workList,En=Object(a.useState)(!1),xn=Object(u.a)(En,2),Jn=xn[0],It=xn[1],Wt;We.category=Ve.query.category_id,We.order="work_score",We.b_order="desc";var vn=function(Ft){vt(Ft),Ft==="0"&&Se({type:"shixunHomeworks/getWorkList",payload:Gt})},zt=function(){b.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u4F60\u5728\u8BE5\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A\uFF0C\u65E0\u6CD5\u6062\u590D",t.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u91CD\u505A\uFF1F"),onOk:function(){var Ft=Object(r.a)(v.a.mark(function Xt(){var jt,Tn,Ln;return v.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Tn=(jt=Qn.workList)===null||jt===void 0?void 0:jt.myshixun_identifier,Dn.next=3,Object(q.T)({id:Tn});case 3:Ln=Dn.sent,Ln&&(g.b.info(`\u5DF2\u6E05\u7A7A\u672C\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55 -\u8BF7\u70B9\u51FB\u201C\u5F00\u542F\u6311\u6218\u201D\u91CD\u505A\u8BFE\u7A0B\u5B9E\u9A8C`),Se({type:"shixunHomeworks/getWorkList",payload:Gt}));case 5:case"end":return An.stop()}},Xt)}));function Ct(){return Ht.apply(this,arguments)}return Ct}()})},ln=function Ve(Ht){var Ct;Ht=(Ct=Ht)!==null&&Ct!==void 0&&Ct.includes(".json")?Ht:"".concat(Ht,".json"),b.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Xt=Object(r.a)(v.a.mark(function On(){var Ln,qt;return v.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Pn.next=2,Object(nr.Ab)({url:Ht});case 2:if(Ln=Pn.sent,Ln){Pn.next=5;break}return Pn.abrupt("return");case 5:return g.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Pn.next=8,Object(nr.D)({id:Ln.shixun_identifier});case 8:if(qt=Pn.sent,!(qt!=null&&qt.game_identifier)){Pn.next=12;break}return Object(C.O)("/tasks/".concat(qt.game_identifier,"?coursesId=").concat(We.coursesId)),Pn.abrupt("return");case 12:(qt==null?void 0:qt.status)===2?Ve(qt==null?void 0:qt.message):(qt==null?void 0:qt.status)===3&&Qt(qt==null?void 0:qt.message);case 13:case"end":return Pn.stop()}},On)}));function Ft(){return Xt.apply(this,arguments)}return Ft}()})},Qt=function(Ht){b.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ht,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Vt=function(){var Ve=Object(r.a)(v.a.mark(function Ht(Ct){var Xt,Ft;return v.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ct=(Xt=Ct)!==null&&Xt!==void 0&&Xt.includes(".json")?Ct:"".concat(Ct,".json"),Ln.next=3,Object(nr.Ab)({url:Ct});case 3:if(Ft=Ln.sent,console.log(Ft,"execRes"),!(Ft!=null&&Ft.game_identifier)){Ln.next=8;break}return Object(C.O)("/tasks/".concat(Ft.game_identifier,"?coursesId=").concat(We.coursesId)),Ln.abrupt("return");case 8:(Ft==null?void 0:Ft.status)===-3?Object(C.o)():(Ft==null?void 0:Ft.status)===2?ln(Ft==null?void 0:Ft.message):(Ft==null?void 0:Ft.status)===3&&Qt(Ft==null?void 0:Ft.message);case 9:case"end":return Ln.stop()}},Ht)}));return function(Ct){return Ve.apply(this,arguments)}}(),et=[{name:"\u4F5C\u4E1A\u5217\u8868",id:"0",compontent:t.a.createElement(tn,{setExportParams:Yt}),forceRender:!0},{name:"\u4F5C\u4E1A\u63CF\u8FF0",id:"1",compontent:t.a.createElement(Ze,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:"2",compontent:t.a.createElement(St,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:"4",compontent:t.a.createElement($,null)},{name:Object(ge.c)()?"\u8BBE\u7F6E":"\u5F97\u5206\u89C4\u5219",id:"3",compontent:t.a.createElement(In,null)}].filter(function(Ve){var Ht;if(Object(ge.s)())return Ve.name!=="\u4EE3\u7801\u67E5\u91CD";if(Object(ge.s)()||(wt==null||((Ht=wt.homework_status)===null||Ht===void 0)?void 0:Ht[0])!=="\u5DF2\u622A\u6B62")return Ve.name!=="\u8D28\u91CF\u68C0\u6D4B";var Ct;return!wt.code_review&&(wt==null||((Ct=wt.homework_status)===null||Ct===void 0)?void 0:Ct[0])!=="\u672A\u53D1\u5E03"?!0:Ve.name!=="\u4EE3\u7801\u67E5\u91CD"}).filter(function(Ve){return wt.open_code_quality_analysis?!0:Ve.name!=="\u8D28\u91CF\u68C0\u6D4B"});return t.a.createElement("section",null,t.a.createElement("div",{className:"edu-container"},wt.homework_name&&t.a.createElement("section",{className:"animated fadeIn"},t.a.createElement("aside",{className:"mt10"},wt.category&&t.a.createElement(c.a,{separator:">"},t.a.createElement(c.a.Item,null,t.a.createElement(h.a,{to:"/classrooms/".concat(wt.course_id,"/shixun_homework")},wt.course_name)),t.a.createElement(c.a.Item,null,t.a.createElement(h.a,{to:"/classrooms/".concat(wt.course_id,"/shixun_homework/").concat(wt.category.main?"":wt.category.category_id)},wt.category.category_name)),t.a.createElement(c.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),t.a.createElement("aside",{className:[tr.a.title,"mt20"].join(" ")},t.a.createElement(h.a,{to:"/classrooms/".concat(wt.course_id,"/shixun_homework/").concat(wt.category.main?"":wt.category.category_id)},t.a.createElement(D.a,{className:"font16 c-black"})),t.a.createElement(S.a,{title:wt.homework_name,placement:"bottom"},t.a.createElement("strong",{className:"font20 ml5"},wt.homework_name)),t.a.createElement(C.k,{temporary:!0,status:wt.homework_status}),Nt==="4"&&t.a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:function(){jt(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),t.a.createElement("aside",{className:"mt30 relative"},t.a.createElement("aside",{className:tr.a.rightMenu},Object(ge.s)()&&((yn=Jn.workList)===null||yn===void 0?void 0:yn.redo_work)&&t.a.createElement("p",{onClick:Kt},t.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x"}),"\u91CD\u505A"),((Hn=Jn.workList)===null||Hn===void 0?void 0:Hn.shixun_status)>1&&((mr=Jn.workList)===null||mr===void 0?void 0:mr.time_status)<5&&Object(ge.s)()&&t.a.createElement("p",{onClick:function(){var Ht,Ct,Xt,Ft,On,Ln,qt;if(!Object(jr.e)(Se,!0))return;(Ht=Jn.workList)!==null&&Ht!==void 0&&(Ct=Ht.task_operation)!==null&&Ct!==void 0&&(Xt=Ct[1])!==null&&Xt!==void 0&&Xt.includes("/")?Vt((Ft=Jn.workList)===null||Ft===void 0||((On=Ft.task_operation)===null||On===void 0)?void 0:On[1]):Object(C.O)("/tasks/".concat((Ln=Jn.workList)===null||Ln===void 0||((qt=Ln.task_operation)===null||qt===void 0)?void 0:qt[1]))}},t.a.createElement("span",{className:"iconfont icon-kaiqizhong"}),(Xn=Jn.workList)===null||Xn===void 0||((Vn=Xn.task_operation)===null||Vn===void 0)?void 0:Vn[0]),((Kn=Jn.workList)===null||Kn===void 0?void 0:Kn.commit_des)&&t.a.createElement("p",{onClick:function(){var Ht;Object(C.O)("/classrooms/".concat(We.coursesId,"/shixun_homework/").concat(We.categoryId,"/").concat((Ht=Jn.workList)===null||Ht===void 0?void 0:Ht.id,"/commitsummary"))}},t.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),(lr=Jn.workList)===null||lr===void 0?void 0:lr.commit_des),Nt=="1"&&Object(ge.c)()&&t.a.createElement("p",{onClick:function(){Se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u7F16\u8F91\u4F5C\u4E1A"}})}},t.a.createElement("span",{className:"iconfont icon-bianjishijuan3x translateY1"}),"\u7F16\u8F91\u4F5C\u4E1A"),Object(ge.c)()&&wt.publish_immediately&&(wt==null?void 0:wt.can_edit)&&t.a.createElement("p",{onClick:function(){Se({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[We.categoryId],params:We,detail:!0,type:2}})}},t.a.createElement("span",{className:"iconfont icon-yishezhifabushijian1 translateY1"}),"\u7ACB\u5373\u53D1\u5E03"),((Yn=Jn.workList)===null||Yn===void 0?void 0:Yn.is_enter_shixun)&&t.a.createElement("p",{onClick:function(){Object(C.O)("/shixuns/".concat(wt.shixun_identifier,"/challenges"))}},t.a.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8FDB\u5165\u5B9E\u8BAD"),Object(ge.c)()&&wt.end_immediately&&(wt==null?void 0:wt.can_edit)&&t.a.createElement("p",{style:{background:"#0152d9",color:"#fff"},onClick:function(){Se({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",params:We,type:2,detail:!0,selectArrs:[We.categoryId]}})}},t.a.createElement("span",{style:{color:"#fff"},className:"iconfont icon-jiezhishiyan"}),"\u7ACB\u5373\u622A\u6B62")),t.a.createElement(j.a,{defaultActiveKey:Nt,activeKey:Nt,onChange:vn,className:tr.a.menuTabs},et.map(function(Ve,Ht){return t.a.createElement(j.a.TabPane,{tab:Ve.name,key:Ve.id,forceRender:Ve.forceRender},Ve.compontent)})))),t.a.createElement(cn,null),t.a.createElement(Dn.a,null),t.a.createElement(Wn.a,null),t.a.createElement(b.a,{visible:Zn,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:function(){jt(!1)}},t.a.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),t.a.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),t.a.createElement("p",{style:{marginLeft:"10px"}},t.a.createElement(F.a,{dataSource:ua,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),t.a.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),t.a.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),t.a.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),t.a.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u5D29\u6E83\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")))},zr=te.default=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,yn=zn.loading,Hn=zn.globalSetting;return{shixunHomeworks:_n,globalSetting:Hn,loading:yn.effects}})(va)},VpOo:function(ze,te){function P(X,F){var R=F.x,j=F.y,T=F.width,S=F.height,M=F.r,c,E,g,r;T<0&&(R=R+T,T=-T),S<0&&(j=j+S,S=-S),typeof M=="number"?c=E=g=r=M:M instanceof Array?M.length===1?c=E=g=r=M[0]:M.length===2?(c=g=M[0],E=r=M[1]):M.length===3?(c=M[0],E=r=M[1],g=M[2]):(c=M[0],E=M[1],g=M[2],r=M[3]):c=E=g=r=0;var l;c+E>T&&(l=c+E,c*=T/l,E*=T/l),g+r>T&&(l=g+r,g*=T/l,r*=T/l),E+g>S&&(l=E+g,E*=S/l,g*=S/l),c+r>S&&(l=c+r,c*=S/l,r*=S/l),X.moveTo(R+c,j),X.lineTo(R+T-E,j),E!==0&&X.arc(R+T-E,j+E,E,-Math.PI/2,0),X.lineTo(R+T,j+S-g),g!==0&&X.arc(R+T-g,j+S-g,g,0,Math.PI/2),X.lineTo(R+r,j+S),r!==0&&X.arc(R+r,j+S-r,r,Math.PI/2,Math.PI),X.lineTo(R,j+c),c!==0&&X.arc(R+c,j+c,c,Math.PI,Math.PI*1.5)}te.buildPath=P},"VrN/":function(ze,te,P){(function(X,F){ze.exports=F()})(this,function(){"use strict";var X=navigator.userAgent,F=navigator.platform,R=/gecko\/\d/i.test(X),j=/MSIE \d/.test(X),T=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),S=/Edge\/(\d+)/.exec(X),M=j||T||S,c=M&&(j?document.documentMode||6:+(S||T)[1]),E=!S&&/WebKit\//.test(X),g=E&&/Qt\/\d+\.\d+/.test(X),r=!S&&/Chrome\//.test(X),l=/Opera\//.test(X),b=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),p=/PhantomJS/.test(X),v=!S&&/AppleWebKit/.test(X)&&/Mobile\/\w+/.test(X),a=/Android/.test(X),t=v||a||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),s=v||/Mac/.test(F),h=/\bCrOS\b/.test(X),y=/win/i.test(F),D=l&&X.match(/Version\/(\d*\.\d*)/);D&&(D=Number(D[1])),D&&D>=15&&(l=!1,E=!0);var C=s&&(g||l&&(D==null||D<12.11)),I=R||M&&c>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var f=function(e,n){var w=e.className,x=_(n).exec(w);if(x){var L=w.slice(x.index+x[0].length);e.className=w.slice(0,x.index)+(L?x[1]+L:"")}};function o(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function i(e,n){return o(e).appendChild(n)}function d(e,n,w,x){var L=document.createElement(e);if(w&&(L.className=w),x&&(L.style.cssText=x),typeof n=="string")L.appendChild(document.createTextNode(n));else if(n)for(var K=0;K=n)return Z+(n-K);Z+=ae-K,Z+=w-Z%w,K=ae+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};V.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},V.prototype.set=function(e,n){this.f=n;var w=+new Date+e;(!this.id||w=n)return x+Math.min(Z,n-L);if(L+=K-x,L+=w-L%w,x=K+1,L>=n)return x}}var ge=[""];function fe(e){for(;ge.length<=e;)ge.push(Ze(ge)+" ");return ge[e]}function Ze(e){return e[e.length-1]}function Ot(e,n){for(var w=[],x=0;x"\x80"&&(e.toUpperCase()!=e.toLowerCase()||me.test(e))}function rt(e,n){return n?n.source.indexOf("\\w")>-1&&Le(e)?!0:n.test(e):Le(e)}function Oe(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function at(e){return e.charCodeAt(0)>=768&&Ge.test(e)}function dt(e,n,w){for(;(w<0?n>0:nw?-1:1;;){if(n==w)return n;var L=(n+w)/2,K=x<0?Math.ceil(L):Math.floor(L);if(K==n)return e(K)?n:w;e(K)?w=K:n=K+x}}function bt(e,n,w,x){if(!e)return x(n,w,"ltr",0);for(var L=!1,K=0;Kn||n==w&&Z.to==n)&&(x(Math.max(Z.from,n),Math.min(Z.to,w),Z.level==1?"rtl":"ltr",K),L=!0)}L||x(n,w,"ltr")}var zt=null;function It(e,n,w){var x;zt=null;for(var L=0;Ln)return L;K.to==n&&(K.from!=K.to&&w=="before"?x=L:zt=L),K.from==n&&(K.from!=K.to&&w!="before"?x=L:zt=L)}return x!=null?x:zt}var on=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function w(ce){return ce<=247?e.charAt(ce):1424<=ce&&ce<=1524?"R":1536<=ce&&ce<=1785?n.charAt(ce-1536):1774<=ce&&ce<=2220?"r":8192<=ce&&ce<=8203?"w":ce==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,L=/[stwN]/,K=/[LRr]/,Z=/[Lb1n]/,ae=/[1n]/;function ie(ce,Be,qe){this.level=ce,this.from=Be,this.to=qe}return function(ce,Be){var qe=Be=="ltr"?"L":"R";if(ce.length==0||Be=="ltr"&&!x.test(ce))return!1;for(var At=ce.length,yt=[],hn=0;hn-1&&(x[n]=L.slice(0,K).concat(L.slice(K+1)))}}}function Je(e,n){var w=ot(e,n);if(!w.length)return;for(var x=Array.prototype.slice.call(arguments,2),L=0;L0}function Te(e){e.prototype.on=function(n,w){De(this,n,w)},e.prototype.off=function(n,w){Et(this,n,w)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ue(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function pe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function _e(e){oe(e),ue(e)}function Ye(e){return e.target||e.srcElement}function Ue(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),s&&e.ctrlKey&&n==1&&(n=3),n}var Mt=function(){if(M&&c<9)return!1;var e=d("div");return"draggable"in e||"dragDrop"in e}(),tn;function sn(e){if(tn==null){var n=d("span","\u200B");i(e,d("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(tn=n.offsetWidth<=1&&n.offsetHeight>2&&!(M&&c<8))}var w=tn?d("span","\u200B"):d("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return w.setAttribute("cm-text",""),w}var nn;function rn(e){if(nn!=null)return nn;var n=i(e,document.createTextNode("A\u062EA")),w=O(n,0,1).getBoundingClientRect(),x=O(n,1,2).getBoundingClientRect();return o(e),!w||w.left==w.right?!1:nn=x.right-w.right<3}var St=` +\u8BF7\u70B9\u51FB\u201C\u5F00\u542F\u6311\u6218\u201D\u91CD\u505A\u8BFE\u7A0B\u5B9E\u9A8C`),Se({type:"shixunHomeworks/getWorkList",payload:Gt}));case 5:case"end":return Dn.stop()}},Xt)}));function Ct(){return Ft.apply(this,arguments)}return Ct}()})},cn=function Xe(Ft){var Ct;Ft=(Ct=Ft)!==null&&Ct!==void 0&&Ct.includes(".json")?Ft:"".concat(Ft,".json"),b.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Xt=Object(r.a)(v.a.mark(function Tn(){var Ln,qt;return v.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return Pn.next=2,Object(tr.Ab)({url:Ft});case 2:if(Ln=Pn.sent,Ln){Pn.next=5;break}return Pn.abrupt("return");case 5:return g.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Pn.next=8,Object(tr.D)({id:Ln.shixun_identifier});case 8:if(qt=Pn.sent,!(qt!=null&&qt.game_identifier)){Pn.next=12;break}return Object(C.O)("/tasks/".concat(qt.game_identifier,"?coursesId=").concat(We.coursesId)),Pn.abrupt("return");case 12:(qt==null?void 0:qt.status)===2?Xe(qt==null?void 0:qt.message):(qt==null?void 0:qt.status)===3&&Qt(qt==null?void 0:qt.message);case 13:case"end":return Pn.stop()}},Tn)}));function jt(){return Xt.apply(this,arguments)}return jt}()})},Qt=function(Ft){b.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ft,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Vt=function(){var Xe=Object(r.a)(v.a.mark(function Ft(Ct){var Xt,jt;return v.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ct=(Xt=Ct)!==null&&Xt!==void 0&&Xt.includes(".json")?Ct:"".concat(Ct,".json"),Ln.next=3,Object(tr.Ab)({url:Ct});case 3:if(jt=Ln.sent,console.log(jt,"execRes"),!(jt!=null&&jt.game_identifier)){Ln.next=8;break}return Object(C.O)("/tasks/".concat(jt.game_identifier,"?coursesId=").concat(We.coursesId)),Ln.abrupt("return");case 8:(jt==null?void 0:jt.status)===-3?Object(C.o)():(jt==null?void 0:jt.status)===2?cn(jt==null?void 0:jt.message):(jt==null?void 0:jt.status)===3&&Qt(jt==null?void 0:jt.message);case 9:case"end":return Ln.stop()}},Ft)}));return function(Ct){return Xe.apply(this,arguments)}}(),tt=[{name:"\u4F5C\u4E1A\u5217\u8868",id:"0",compontent:t.a.createElement(tn,{setExportParams:Yt}),forceRender:!0},{name:"\u4F5C\u4E1A\u63CF\u8FF0",id:"1",compontent:t.a.createElement(Ze,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:"2",compontent:t.a.createElement(St,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:"4",compontent:t.a.createElement($,null)},{name:Object(ge.c)()?"\u8BBE\u7F6E":"\u5F97\u5206\u89C4\u5219",id:"3",compontent:t.a.createElement(In,null)}].filter(function(Xe){var Ft;if(Object(ge.s)())return Xe.name!=="\u4EE3\u7801\u67E5\u91CD";if(Object(ge.s)()||(wt==null||((Ft=wt.homework_status)===null||Ft===void 0)?void 0:Ft[0])!=="\u5DF2\u622A\u6B62")return Xe.name!=="\u8D28\u91CF\u68C0\u6D4B";var Ct;return!wt.code_review&&(wt==null||((Ct=wt.homework_status)===null||Ct===void 0)?void 0:Ct[0])!=="\u672A\u53D1\u5E03"?!0:Xe.name!=="\u4EE3\u7801\u67E5\u91CD"}).filter(function(Xe){return wt.open_code_quality_analysis?!0:Xe.name!=="\u8D28\u91CF\u68C0\u6D4B"});return t.a.createElement("section",null,t.a.createElement("div",{className:"edu-container"},wt.homework_name&&t.a.createElement("section",{className:"animated fadeIn"},t.a.createElement("aside",{className:"mt10"},wt.category&&t.a.createElement(c.a,{separator:">"},t.a.createElement(c.a.Item,null,t.a.createElement(h.a,{to:"/classrooms/".concat(wt.course_id,"/shixun_homework")},wt.course_name)),t.a.createElement(c.a.Item,null,t.a.createElement(h.a,{to:"/classrooms/".concat(wt.course_id,"/shixun_homework/").concat(wt.category.main?"":wt.category.category_id)},wt.category.category_name)),t.a.createElement(c.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),t.a.createElement("aside",{className:[er.a.title,"mt20"].join(" ")},t.a.createElement(h.a,{to:"/classrooms/".concat(wt.course_id,"/shixun_homework/").concat(wt.category.main?"":wt.category.category_id)},t.a.createElement(D.a,{className:"font16 c-black"})),t.a.createElement(S.a,{title:wt.homework_name,placement:"bottom"},t.a.createElement("strong",{className:"font20 ml5"},wt.homework_name)),t.a.createElement(C.k,{temporary:!0,status:wt.homework_status}),kt==="4"&&t.a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:function(){It(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),t.a.createElement("aside",{className:"mt30 relative"},t.a.createElement("aside",{className:er.a.rightMenu},Object(ge.s)()&&((bn=Qn.workList)===null||bn===void 0?void 0:bn.redo_work)&&t.a.createElement("p",{onClick:zt},t.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x"}),"\u91CD\u505A"),((Hn=Qn.workList)===null||Hn===void 0?void 0:Hn.shixun_status)>1&&((vr=Qn.workList)===null||vr===void 0?void 0:vr.time_status)<5&&Object(ge.s)()&&t.a.createElement("p",{onClick:function(){var Ft,Ct,Xt,jt,Tn,Ln,qt;if(!Object(Br.e)(Se,!0))return;(Ft=Qn.workList)!==null&&Ft!==void 0&&(Ct=Ft.task_operation)!==null&&Ct!==void 0&&(Xt=Ct[1])!==null&&Xt!==void 0&&Xt.includes("/")?Vt((jt=Qn.workList)===null||jt===void 0||((Tn=jt.task_operation)===null||Tn===void 0)?void 0:Tn[1]):Object(C.O)("/tasks/".concat((Ln=Qn.workList)===null||Ln===void 0||((qt=Ln.task_operation)===null||qt===void 0)?void 0:qt[1]))}},t.a.createElement("span",{className:"iconfont icon-kaiqizhong"}),(Xn=Qn.workList)===null||Xn===void 0||((Vn=Xn.task_operation)===null||Vn===void 0)?void 0:Vn[0]),((Gn=Qn.workList)===null||Gn===void 0?void 0:Gn.commit_des)&&t.a.createElement("p",{onClick:function(){var Ft;Object(C.O)("/classrooms/".concat(We.coursesId,"/shixun_homework/").concat(We.categoryId,"/").concat((Ft=Qn.workList)===null||Ft===void 0?void 0:Ft.id,"/commitsummary"))}},t.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),(dr=Qn.workList)===null||dr===void 0?void 0:dr.commit_des),kt=="1"&&Object(ge.c)()&&t.a.createElement("p",{onClick:function(){Se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u7F16\u8F91\u4F5C\u4E1A"}})}},t.a.createElement("span",{className:"iconfont icon-bianjishijuan3x translateY1"}),"\u7F16\u8F91\u4F5C\u4E1A"),Object(ge.c)()&&wt.publish_immediately&&(wt==null?void 0:wt.can_edit)&&t.a.createElement("p",{onClick:function(){Se({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[We.categoryId],params:We,detail:!0,type:2}})}},t.a.createElement("span",{className:"iconfont icon-yishezhifabushijian1 translateY1"}),"\u7ACB\u5373\u53D1\u5E03"),((Yn=Qn.workList)===null||Yn===void 0?void 0:Yn.is_enter_shixun)&&t.a.createElement("p",{onClick:function(){Object(C.O)("/shixuns/".concat(wt.shixun_identifier,"/challenges"))}},t.a.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8FDB\u5165\u5B9E\u8BAD"),Object(ge.c)()&&wt.end_immediately&&(wt==null?void 0:wt.can_edit)&&t.a.createElement("p",{style:{background:"#0152d9",color:"#fff"},onClick:function(){Se({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",params:We,type:2,detail:!0,selectArrs:[We.categoryId]}})}},t.a.createElement("span",{style:{color:"#fff"},className:"iconfont icon-jiezhishiyan"}),"\u7ACB\u5373\u622A\u6B62")),t.a.createElement(j.a,{defaultActiveKey:kt,activeKey:kt,onChange:vn,className:er.a.menuTabs},tt.map(function(Xe,Ft){return t.a.createElement(j.a.TabPane,{tab:Xe.name,key:Xe.id,forceRender:Xe.forceRender},Xe.compontent)})))),t.a.createElement(dn,null),t.a.createElement(On.a,null),t.a.createElement(Wn.a,null),t.a.createElement(b.a,{visible:Jn,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:function(){It(!1)}},t.a.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),t.a.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),t.a.createElement("p",{style:{marginLeft:"10px"}},t.a.createElement(F.a,{dataSource:ua,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),t.a.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),t.a.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),t.a.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),t.a.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u5D29\u6E83\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),t.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")))},Gr=te.default=Object(y.a)(function(zn){var _n=zn.shixunHomeworks,bn=zn.loading,Hn=zn.globalSetting;return{shixunHomeworks:_n,globalSetting:Hn,loading:bn.effects}})(va)},VpOo:function(ze,te){function P(X,F){var R=F.x,j=F.y,T=F.width,S=F.height,M=F.r,c,E,g,r;T<0&&(R=R+T,T=-T),S<0&&(j=j+S,S=-S),typeof M=="number"?c=E=g=r=M:M instanceof Array?M.length===1?c=E=g=r=M[0]:M.length===2?(c=g=M[0],E=r=M[1]):M.length===3?(c=M[0],E=r=M[1],g=M[2]):(c=M[0],E=M[1],g=M[2],r=M[3]):c=E=g=r=0;var l;c+E>T&&(l=c+E,c*=T/l,E*=T/l),g+r>T&&(l=g+r,g*=T/l,r*=T/l),E+g>S&&(l=E+g,E*=S/l,g*=S/l),c+r>S&&(l=c+r,c*=S/l,r*=S/l),X.moveTo(R+c,j),X.lineTo(R+T-E,j),E!==0&&X.arc(R+T-E,j+E,E,-Math.PI/2,0),X.lineTo(R+T,j+S-g),g!==0&&X.arc(R+T-g,j+S-g,g,0,Math.PI/2),X.lineTo(R+r,j+S),r!==0&&X.arc(R+r,j+S-r,r,Math.PI/2,Math.PI),X.lineTo(R,j+c),c!==0&&X.arc(R+c,j+c,c,Math.PI,Math.PI*1.5)}te.buildPath=P},"VrN/":function(ze,te,P){(function(X,F){ze.exports=F()})(this,function(){"use strict";var X=navigator.userAgent,F=navigator.platform,R=/gecko\/\d/i.test(X),j=/MSIE \d/.test(X),T=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),S=/Edge\/(\d+)/.exec(X),M=j||T||S,c=M&&(j?document.documentMode||6:+(S||T)[1]),E=!S&&/WebKit\//.test(X),g=E&&/Qt\/\d+\.\d+/.test(X),r=!S&&/Chrome\//.test(X),l=/Opera\//.test(X),b=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),p=/PhantomJS/.test(X),v=!S&&/AppleWebKit/.test(X)&&/Mobile\/\w+/.test(X),a=/Android/.test(X),t=v||a||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),s=v||/Mac/.test(F),h=/\bCrOS\b/.test(X),y=/win/i.test(F),D=l&&X.match(/Version\/(\d*\.\d*)/);D&&(D=Number(D[1])),D&&D>=15&&(l=!1,E=!0);var C=s&&(g||l&&(D==null||D<12.11)),I=R||M&&c>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var f=function(e,n){var w=e.className,x=_(n).exec(w);if(x){var L=w.slice(x.index+x[0].length);e.className=w.slice(0,x.index)+(L?x[1]+L:"")}};function o(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function i(e,n){return o(e).appendChild(n)}function d(e,n,w,x){var L=document.createElement(e);if(w&&(L.className=w),x&&(L.style.cssText=x),typeof n=="string")L.appendChild(document.createTextNode(n));else if(n)for(var K=0;K=n)return Z+(n-K);Z+=ae-K,Z+=w-Z%w,K=ae+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};V.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},V.prototype.set=function(e,n){this.f=n;var w=+new Date+e;(!this.id||w=n)return x+Math.min(Z,n-L);if(L+=K-x,L+=w-L%w,x=K+1,L>=n)return x}}var ge=[""];function fe(e){for(;ge.length<=e;)ge.push(Ze(ge)+" ");return ge[e]}function Ze(e){return e[e.length-1]}function Ot(e,n){for(var w=[],x=0;x"\x80"&&(e.toUpperCase()!=e.toLowerCase()||me.test(e))}function rt(e,n){return n?n.source.indexOf("\\w")>-1&&Le(e)?!0:n.test(e):Le(e)}function Oe(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function at(e){return e.charCodeAt(0)>=768&&Ge.test(e)}function dt(e,n,w){for(;(w<0?n>0:nw?-1:1;;){if(n==w)return n;var L=(n+w)/2,K=x<0?Math.ceil(L):Math.floor(L);if(K==n)return e(K)?n:w;e(K)?w=K:n=K+x}}function bt(e,n,w,x){if(!e)return x(n,w,"ltr",0);for(var L=!1,K=0;Kn||n==w&&Z.to==n)&&(x(Math.max(Z.from,n),Math.min(Z.to,w),Z.level==1?"rtl":"ltr",K),L=!0)}L||x(n,w,"ltr")}var Kt=null;function Lt(e,n,w){var x;Kt=null;for(var L=0;Ln)return L;K.to==n&&(K.from!=K.to&&w=="before"?x=L:Kt=L),K.from==n&&(K.from!=K.to&&w!="before"?x=L:Kt=L)}return x!=null?x:Kt}var on=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function w(ce){return ce<=247?e.charAt(ce):1424<=ce&&ce<=1524?"R":1536<=ce&&ce<=1785?n.charAt(ce-1536):1774<=ce&&ce<=2220?"r":8192<=ce&&ce<=8203?"w":ce==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,L=/[stwN]/,K=/[LRr]/,Z=/[Lb1n]/,ae=/[1n]/;function ie(ce,Be,qe){this.level=ce,this.from=Be,this.to=qe}return function(ce,Be){var qe=Be=="ltr"?"L":"R";if(ce.length==0||Be=="ltr"&&!x.test(ce))return!1;for(var At=ce.length,yt=[],hn=0;hn-1&&(x[n]=L.slice(0,K).concat(L.slice(K+1)))}}}function Je(e,n){var w=ot(e,n);if(!w.length)return;for(var x=Array.prototype.slice.call(arguments,2),L=0;L0}function Te(e){e.prototype.on=function(n,w){De(this,n,w)},e.prototype.off=function(n,w){Et(this,n,w)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ue(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function pe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function _e(e){oe(e),ue(e)}function Ye(e){return e.target||e.srcElement}function Ue(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),s&&e.ctrlKey&&n==1&&(n=3),n}var Mt=function(){if(M&&c<9)return!1;var e=d("div");return"draggable"in e||"dragDrop"in e}(),tn;function sn(e){if(tn==null){var n=d("span","\u200B");i(e,d("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(tn=n.offsetWidth<=1&&n.offsetHeight>2&&!(M&&c<8))}var w=tn?d("span","\u200B"):d("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return w.setAttribute("cm-text",""),w}var nn;function rn(e){if(nn!=null)return nn;var n=i(e,document.createTextNode("A\u062EA")),w=O(n,0,1).getBoundingClientRect(),x=O(n,1,2).getBoundingClientRect();return o(e),!w||w.left==w.right?!1:nn=x.right-w.right<3}var St=` b`.split(/\n/).length!=3?function(e){for(var n=0,w=[],x=e.length;n<=x;){var L=e.indexOf(` -`,n);L==-1&&(L=e.length);var K=e.slice(n,e.charAt(L-1)=="\r"?L-1:L),Z=K.indexOf("\r");Z!=-1?(w.push(K.slice(0,Z)),n+=Z+1):(w.push(K),n=L+1)}return w}:function(e){return e.split(/\r\n?|\n/)},Tt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(w){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},ct=function(){var e=d("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ye=null;function Pe(e){if(ye!=null)return ye;var n=i(e,d("span","x")),w=n.getBoundingClientRect(),x=O(n,0,1).getBoundingClientRect();return ye=Math.abs(w.left-x.left)>1}var Lt={},pt={};function en(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Lt[e]=n}function an(e,n){pt[e]=n}function st(e){if(typeof e=="string"&&pt.hasOwnProperty(e))e=pt[e];else if(e&&typeof e.name=="string"&&pt.hasOwnProperty(e.name)){var n=pt[e.name];typeof n=="string"&&(n={name:n}),e=de(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return st("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return st("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function xt(e,n){n=st(n);var w=Lt[n.name];if(!w)return xt(e,"text/plain");var x=w(e,n);if(Ut.hasOwnProperty(n.name)){var L=Ut[n.name];for(var K in L){if(!L.hasOwnProperty(K))continue;x.hasOwnProperty(K)&&(x["_"+K]=x[K]),x[K]=L[K]}}if(x.name=n.name,n.helperType&&(x.helperType=n.helperType),n.modeProps)for(var Z in n.modeProps)x[Z]=n.modeProps[Z];return x}var Ut={};function gn(e,n){var w=Ut.hasOwnProperty(e)?Ut[e]:Ut[e]={};z(n,w)}function Mn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var w={};for(var x in n){var L=n[x];L instanceof Array&&(L=L.concat([])),w[x]=L}return w}function cr(e,n){for(var w;e.innerMode&&!(w=e.innerMode(n),!w||w.mode==e);)n=w.state,e=w.mode;return w||{mode:e,state:n}}function gr(e,n,w){return e.startState?e.startState(n,w):!0}var or=function(e,n,w){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=w};or.prototype.eol=function(){return this.pos>=this.string.length},or.prototype.sol=function(){return this.pos==this.lineStart},or.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},or.prototype.next=function(){if(this.posn},or.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},or.prototype.skipToEnd=function(){this.pos=this.string.length},or.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},or.prototype.backUp=function(e){this.pos-=e},or.prototype.column=function(){return this.lastColumnPos0?null:(K&&n!==!1&&(this.pos+=K[0].length),K)}},or.prototype.current=function(){return this.string.slice(this.start,this.pos)},or.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},or.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},or.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function kn(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var w=e;!w.lines;)for(var x=0;;++x){var L=w.children[x],K=L.chunkSize();if(n=e.first&&nw?Zt(w,kn(e,w).text.length):H(n,kn(e,n.line).text.length)}function H(e,n){var w=e.ch;return w==null||w>n?Zt(e.line,n):w<0?Zt(e.line,0):e}function $(e,n){for(var w=[],x=0;xthis.maxLookAhead&&(this.maxLookAhead=e),n},ee.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ee.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ee.fromSaved=function(e,n,w){return n instanceof re?new ee(e,Mn(e.mode,n.state),w,n.lookAhead):new ee(e,Mn(e.mode,n),w)},ee.prototype.save=function(e){var n=e!==!1?Mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new re(n,this.maxLookAhead):n};function Qe(e,n,w,x){var L=[e.state.modeGen],K={};va(e,n.text,e.doc.mode,w,function(ce,Be){return L.push(ce,Be)},K,x);for(var Z=w.state,ae=function(ce){w.baseTokens=L;var Be=e.state.overlays[ce],qe=1,At=0;w.state=!0,va(e,n.text,Be.mode,w,function(yt,hn){for(var xn=qe;Atyt&&L.splice(qe,1,yt,L[qe+1],Rn),qe+=2,At=Math.min(yt,Rn)}if(!hn)return;if(Be.opaque)L.splice(xn,qe-xn,yt,"overlay "+hn),qe=xn+2;else for(;xne.options.maxHighlightLength&&Mn(e.doc.mode,x.state),K=Qe(e,n,x);L&&(x.state=L),n.stateAfter=x.save(!L),n.styles=K.styles,K.classes?n.styleClasses=K.classes:n.styleClasses&&(n.styleClasses=null),w===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function Dn(e,n,w){var x=e.doc,L=e.display;if(!x.mode.startState)return new ee(x,!0,n);var K=zr(e,n,w),Z=K>x.first&&kn(x,K-1).stateAfter,ae=Z?ee.fromSaved(x,Z,K):new ee(x,gr(x.mode),K);return x.iter(K,n,function(ie){Wn(e,ie.text,ae);var ce=ae.line;ie.stateAfter=ce==n-1||ce%5==0||ce>=L.viewFrom&&cen.start)return K}throw new Error("Mode "+e.name+" failed to advance stream.")}var nr=function(e,n,w){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=w};function jr(e,n,w,x){var L=e.doc,K=L.mode,Z;n=U(L,n);var ae=kn(L,n.line),ie=Dn(e,n.line,w),ce=new or(ae.text,e.options.tabSize,ie),Be;for(x&&(Be=[]);(x||ce.pose.options.maxHighlightLength?(ae=!1,Z&&Wn(e,n,x,Be.pos),Be.pos=n.length,qe=null):qe=ua(tr(w,Be,x.state,At),K),At){var yt=At[0].name;yt&&(qe="m-"+(qe?yt+" "+qe:yt))}if(!ae||ce!=qe){for(;ieZ;--ae){if(ae<=K.first)return K.first;var ie=kn(K,ae-1),ce=ie.stateAfter;if(ce&&(!w||ae+(ce instanceof re?ce.lookAhead:0)<=K.modeFrontier))return ae;var Be=Y(ie.text,null,e.options.tabSize);(L==null||x>Be)&&(L=ae-1,x=Be)}return L}function zn(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),e.highlightFrontierw;x--){var L=kn(e,x).stateAfter;if(L&&(!(L instanceof re)||x+L.lookAhead=n:K.to>n);(x||(x=[])).push(new Xn(Z,K.from,ie?null:K.to))}}return x}function Jn(e,n,w){var x;if(e)for(var L=0;L=n:K.to>n);if(ae||K.from==n&&Z.type=="bookmark"&&(!w||K.marker.insertLeft)){var ie=K.from==null||(Z.inclusiveLeft?K.from<=n:K.from0&&ae)for(var er=0;er0)continue;var Be=[ie,1],qe=In(ce.from,ae.from),At=In(ce.to,ae.to);(qe<0||!Z.inclusiveLeft&&!qe)&&Be.push({from:ce.from,to:ae.from}),(At>0||!Z.inclusiveRight&&!At)&&Be.push({from:ae.to,to:ce.to}),L.splice.apply(L,Be),ie+=Be.length-3}return L}function We(e){var n=e.markedSpans;if(!n)return;for(var w=0;wn)&&(!x||lt(x,K.marker)<0)&&(x=K.marker)}return x}function Nt(e,n,w,x,L){var K=kn(e,n),Z=yn&&K.markedSpans;if(Z)for(var ae=0;ae=0&&qe<=0||Be<=0&&qe>=0)continue;if(Be<=0&&(ie.marker.inclusiveRight&&L.inclusiveLeft?In(ce.to,w)>=0:In(ce.to,w)>0)||Be>=0&&(ie.marker.inclusiveRight&&L.inclusiveLeft?In(ce.from,x)<=0:In(ce.from,x)<0))return!0}}function vt(e){for(var n;n=ht(e);)e=n.find(-1,!0).line;return e}function nt(e){for(var n;n=_t(e);)e=n.find(1,!0).line;return e}function Dt(e){for(var n,w;n=_t(e);)e=n.find(1,!0).line,(w||(w=[])).push(e);return w}function Gt(e,n){var w=kn(e,n),x=vt(w);return w==x?n:pr(x)}function Yt(e,n){if(n>e.lastLine())return n;var w=kn(e,n),x;if(!wt(e,w))return n;for(;x=_t(w);)w=x.find(1,!0).line;return pr(w)+1}function wt(e,n){var w=yn&&n.markedSpans;if(w)for(var x=void 0,L=0;Ln.maxLineLength&&(n.maxLineLength=L,n.maxLine=x)})}var Wt=function(e,n,w){this.text=e,Xe(this,n),this.height=w?w(this):1};Wt.prototype.lineNo=function(){return pr(this)},Te(Wt);function vn(e,n,w,x){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),We(e),Xe(e,w);var L=x?x(e):1;L!=e.height&&Mr(e,L)}function Kt(e){e.parent=null,We(e)}var ln={},Qt={};function Vt(e,n){if(!e||/^\s*$/.test(e))return null;var w=n.addModeClass?Qt:ln;return w[e]||(w[e]=e.replace(/\S+/g,"cm-$&"))}function et(e,n){var w=A("span",null,null,E?"padding-right: .1px":null),x={pre:A("pre",[w],"CodeMirror-line"),content:w,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var L=0;L<=(n.rest?n.rest.length:0);L++){var K=L?n.rest[L-1]:n.line,Z=void 0;x.pos=0,x.addToken=Ht,rn(e.display.measure)&&(Z=dn(K,e.doc.direction))&&(x.addToken=Xt(x.addToken,Z)),x.map=[];var ae=n!=e.display.externalMeasured&&pr(K);On(K,x,cn(e,K,ae)),K.styleClasses&&(K.styleClasses.bgClass&&(x.bgClass=B(K.styleClasses.bgClass,x.bgClass||"")),K.styleClasses.textClass&&(x.textClass=B(K.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(sn(e.display.measure))),L==0?(n.measure.map=x.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(x.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(E){var ie=x.content.lastChild;(/\bcm-tab\b/.test(ie.className)||ie.querySelector&&ie.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return Je(e,"renderLine",e,n.line,x.pre),x.pre.className&&(x.textClass=B(x.pre.className,x.textClass||"")),x}function Ve(e){var n=d("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ht(e,n,w,x,L,K,Z){if(!n)return;var ae=e.splitSpaces?Ct(n,e.trailingSpace):n,ie=e.cm.state.specialChars,ce=!1,Be;if(!ie.test(n))e.col+=n.length,Be=document.createTextNode(ae),e.map.push(e.pos,e.pos+n.length,Be),M&&c<9&&(ce=!0),e.pos+=n.length;else{Be=document.createDocumentFragment();for(var qe=0;;){ie.lastIndex=qe;var At=ie.exec(n),yt=At?At.index-qe:n.length-qe;if(yt){var hn=document.createTextNode(ae.slice(qe,qe+yt));M&&c<9?Be.appendChild(d("span",[hn])):Be.appendChild(hn),e.map.push(e.pos,e.pos+yt,hn),e.col+=yt,e.pos+=yt}if(!At)break;qe+=yt+1;var xn=void 0;if(At[0]==" "){var Rn=e.cm.options.tabSize,jn=Rn-e.col%Rn;xn=Be.appendChild(d("span",fe(jn),"cm-tab")),xn.setAttribute("role","presentation"),xn.setAttribute("cm-text"," "),e.col+=jn}else At[0]=="\r"||At[0]==` -`?(xn=Be.appendChild(d("span",At[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xn.setAttribute("cm-text",At[0]),e.col+=1):(xn=e.cm.options.specialCharPlaceholder(At[0]),xn.setAttribute("cm-text",At[0]),M&&c<9?Be.appendChild(d("span",[xn])):Be.appendChild(xn),e.col+=1);e.map.push(e.pos,e.pos+1,xn),e.pos++}}if(e.trailingSpace=ae.charCodeAt(n.length-1)==32,w||x||L||ce||K||Z){var Qn=w||"";x&&(Qn+=x),L&&(Qn+=L);var Un=d("span",[Be],Qn,K);if(Z)for(var er in Z)Z.hasOwnProperty(er)&&er!="style"&&er!="class"&&Un.setAttribute(er,Z[er]);return e.content.appendChild(Un)}e.content.appendChild(Be)}function Ct(e,n){if(e.length>1&&!/ /.test(e))return e;for(var w=n,x="",L=0;Lce&&qe.from<=ce);At++);if(qe.to>=Be)return e(w,x,L,K,Z,ae,ie);e(w,x.slice(0,qe.to-ce),L,K,null,ae,ie),K=null,x=x.slice(qe.to-ce),ce=qe.to}}}function Ft(e,n,w,x){var L=!x&&w.widgetNode;L&&e.map.push(e.pos,e.pos+n,L),!x&&e.cm.display.input.needsContentAttribute&&(L||(L=e.content.appendChild(document.createElement("span"))),L.setAttribute("cm-marker",w.id)),L&&(e.cm.display.input.setUneditable(L),e.content.appendChild(L)),e.pos+=n,e.trailingSpace=!1}function On(e,n,w){var x=e.markedSpans,L=e.text,K=0;if(!x){for(var Z=1;Zie||kr.collapsed&&dr.to==ie&&dr.from==ie)){if(dr.to!=null&&dr.to!=ie&&yt>dr.to&&(yt=dr.to,xn=""),kr.className&&(hn+=" "+kr.className),kr.css&&(At=(At?At+";":"")+kr.css),kr.startStyle&&dr.from==ie&&(Rn+=" "+kr.startStyle),kr.endStyle&&dr.to==yt&&(er||(er=[])).push(kr.endStyle,dr.to),kr.title&&((Qn||(Qn={})).title=kr.title),kr.attributes)for(var la in kr.attributes)(Qn||(Qn={}))[la]=kr.attributes[la];kr.collapsed&&(!jn||lt(jn.marker,kr)<0)&&(jn=dr)}else dr.from>ie&&yt>dr.from&&(yt=dr.from)}if(er)for(var Fa=0;Fa=ae)break;for(var ii=Math.min(ae,yt);;){if(Be){var ti=ie+Be.length;if(!jn){var Aa=ti>ii?Be.slice(0,ii-ie):Be;n.addToken(n,Aa,qe?qe+hn:hn,Rn,ie+Aa.length==yt?xn:"",At,Qn)}if(ti>=ii){Be=Be.slice(ii-ie),ie=ii;break}ie=ti,Rn=""}Be=L.slice(K,K=w[ce++]),qe=Vt(w[ce++],n.cm.options)}}}function Ln(e,n,w){this.line=n,this.rest=Dt(n),this.size=this.rest?pr(Ze(this.rest))-w+1:1,this.node=this.text=null,this.hidden=wt(e,n)}function qt(e,n,w){for(var x=[],L,K=n;K2&&K.push((ie.bottom+ce.top)/2-w.top)}}K.push(w.bottom-w.top)}}function he(e,n,w){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};for(var x=0;xw)return{map:e.measure.maps[L],cache:e.measure.caches[L],before:!0}}function je(e,n){n=vt(n);var w=pr(n),x=e.display.externalMeasured=new Ln(e.doc,n,w);x.lineN=w;var L=x.built=et(e,x);return x.text=L.pre,i(e.display.lineMeasure,L.pre),x}function Fe(e,n,w,x){return gt(e,He(e,n),w,x)}function it(e,n){if(n>=e.display.viewFrom&&n=w.lineN&&nn)&&(K=ie-ae,L=K-1,n>=ie&&(Z="right")),L!=null){if(x=e[ce+2],ae==ie&&w==(x.insertLeft?"left":"right")&&(Z=w),w=="left"&&L==0)for(;ce&&e[ce-2]==e[ce-3]&&e[ce-1].insertLeft;)x=e[(ce-=3)+2],Z="left";if(w=="right"&&L==ie-ae)for(;ce=0&&!((w=e[L]).left!=w.right);L--);return w}function wn(e,n,w,x){var L=un(n.map,w,x),K=L.node,Z=L.start,ae=L.end,ie=L.collapse,ce;if(K.nodeType==3){for(var Be=0;Be<4;Be++){for(;Z&&at(n.line.text.charAt(L.coverStart+Z));)--Z;for(;L.coverStart+ae0&&(ie=x="right");var qe;e.options.lineWrapping&&(qe=K.getClientRects()).length>1?ce=qe[x=="right"?qe.length-1:0]:ce=K.getBoundingClientRect()}if(M&&c<9&&!Z&&(!ce||!ce.left&&!ce.right)){var At=K.parentNode.getClientRects()[0];At?ce={left:At.left,right:At.left+Ir(e.display),top:At.top,bottom:At.bottom}:ce=Bt}for(var yt=ce.top-n.rect.top,hn=ce.bottom-n.rect.top,xn=(yt+hn)/2,Rn=n.view.measure.heights,jn=0;jn=x.text.length?(ie=x.text.length,ce="before"):ie<=0&&(ie=0,ce="after"),!ae)return Z(ce=="before"?ie-1:ie,ce=="before");function Be(hn,xn,Rn){var jn=ae[xn],Qn=jn.level==1;return Z(Rn?hn-1:hn,Qn!=Rn)}var qe=It(ae,ie,ce),At=zt,yt=Be(ie,qe,ce=="before");return At!=null&&(yt.other=Be(ie,At,ce!="before")),yt}function Rt(e,n){var w=0;n=U(e.doc,n),e.options.lineWrapping||(w=Ir(e.display)*n.ch);var x=kn(e.doc,n.line),L=En(x)+Ta(e.display);return{left:w,right:w,top:L,bottom:L+x.height}}function Tn(e,n,w,x,L){var K=Zt(e,n,w);return K.xRel=L,x&&(K.outside=x),K}function sr(e,n,w){var x=e.doc;if(w+=e.display.viewOffset,w<0)return Tn(x.first,0,null,-1,-1);var L=Nr(x,w),K=x.first+x.size-1;if(L>K)return Tn(x.first+x.size-1,kn(x,K).text.length,null,1,1);n<0&&(n=0);for(var Z=kn(x,L);;){var ae=Kr(e,Z,L,n,w),ie=$t(Z,ae.ch+(ae.xRel>0||ae.outside>0?1:0));if(!ie)return ae;var ce=ie.find(1);if(ce.line==L)return ce;Z=kn(x,L=ce.line)}}function wr(e,n,w,x){x-=Er(n);var L=n.text.length,K=Pt(function(Z){return gt(e,w,Z-1).bottom<=x},L,0);return L=Pt(function(Z){return gt(e,w,Z).top>x},K,L),{begin:K,end:L}}function $n(e,n,w,x){w||(w=He(e,n));var L=Cn(e,n,gt(e,w,x),"line").top;return wr(e,n,w,L)}function Dr(e,n,w,x){return e.bottom<=w?!1:e.top>w?!0:(x?e.left:e.right)>n}function Kr(e,n,w,x,L){L-=En(n);var K=He(e,n),Z=Er(n),ae=0,ie=n.text.length,ce=!0,Be=dn(n,e.doc.direction);if(Be){var qe=(e.options.lineWrapping?Gr:Rr)(e,n,w,K,Be,x,L);ce=qe.level!=1,ae=ce?qe.from:qe.to-1,ie=ce?qe.to:qe.from-1}var At=null,yt=null,hn=Pt(function(xr){var dr=gt(e,K,xr);return dr.top+=Z,dr.bottom+=Z,Dr(dr,x,L,!1)?(dr.top<=L&&dr.left<=x&&(At=xr,yt=dr),!0):!1},ae,ie),xn,Rn,jn=!1;if(yt){var Qn=x-yt.left=er.bottom?1:0}return hn=dt(n.text,hn,1),Tn(w,hn,Rn,jn,x-xn)}function Rr(e,n,w,x,L,K,Z){var ae=Pt(function(qe){var At=L[qe],yt=At.level!=1;return Dr(Sn(e,Zt(w,yt?At.to:At.from,yt?"before":"after"),"line",n,x),K,Z,!0)},0,L.length-1),ie=L[ae];if(ae>0){var ce=ie.level!=1,Be=Sn(e,Zt(w,ce?ie.from:ie.to,ce?"after":"before"),"line",n,x);Dr(Be,K,Z,!0)&&Be.top>Z&&(ie=L[ae-1])}return ie}function Gr(e,n,w,x,L,K,Z){var ae=wr(e,n,x,Z),ie=ae.begin,ce=ae.end;/\s/.test(n.text.charAt(ce-1))&&ce--;for(var Be=null,qe=null,At=0;At=ce||yt.to<=ie)continue;var hn=yt.level!=1,xn=gt(e,x,hn?Math.min(ce,yt.to)-1:Math.max(ie,yt.from)).right,Rn=xnRn)&&(Be=yt,qe=Rn)}return Be||(Be=L[L.length-1]),Be.fromce&&(Be={from:Be.from,to:ce,level:Be.level}),Be}var Hr;function Ur(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Hr==null){Hr=d("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Hr.appendChild(document.createTextNode("x")),Hr.appendChild(d("br"));Hr.appendChild(document.createTextNode("x"))}i(e.measure,Hr);var w=Hr.offsetHeight/50;return w>3&&(e.cachedTextHeight=w),o(e.measure),w||1}function Ir(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=d("span","xxxxxxxxxx"),w=d("pre",[n],"CodeMirror-line-like");i(e.measure,w);var x=n.getBoundingClientRect(),L=(x.right-x.left)/10;return L>2&&(e.cachedCharWidth=L),L||10}function ur(e){for(var n=e.display,w={},x={},L=n.gutters.clientLeft,K=n.gutters.firstChild,Z=0;K;K=K.nextSibling,++Z){var ae=e.display.gutterSpecs[Z].className;w[ae]=K.offsetLeft+K.clientLeft+L,x[ae]=K.clientWidth}return{fixedPos:ha(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:w,gutterWidth:x,wrapperWidth:n.wrapper.clientWidth}}function ha(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Qa(e){var n=Ur(e.display),w=e.options.lineWrapping,x=w&&Math.max(5,e.display.scroller.clientWidth/Ir(e.display)-3);return function(L){if(wt(e.doc,L))return 0;var K=0;if(L.widgets)for(var Z=0;Z0&&(ce=kn(e.doc,ie.line).text).length==ie.ch){var Be=Y(ce,ce.length,e.options.tabSize)-ce.length;ie=Zt(ie.line,Math.max(0,Math.round((K-$e(e.display).left)/Ir(e.display))-Be))}return ie}function ra(e,n){if(n>=e.display.viewTo)return null;if(n-=e.display.viewFrom,n<0)return null;for(var w=e.display.view,x=0;xn)&&(L.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=L.viewTo)yn&&Gt(e.doc,n)L.viewFrom?aa(e):(L.viewFrom+=x,L.viewTo+=x);else if(n<=L.viewFrom&&w>=L.viewTo)aa(e);else if(n<=L.viewFrom){var K=ja(e,w,w+x,1);K?(L.view=L.view.slice(K.index),L.viewFrom=K.lineN,L.viewTo+=x):aa(e)}else if(w>=L.viewTo){var Z=ja(e,n,n,-1);Z?(L.view=L.view.slice(0,Z.index),L.viewTo=Z.lineN):aa(e)}else{var ae=ja(e,n,n,-1),ie=ja(e,w,w+x,1);ae&&ie?(L.view=L.view.slice(0,ae.index).concat(qt(e,ae.lineN,ie.lineN)).concat(L.view.slice(ie.index)),L.viewTo+=x):aa(e)}var ce=L.externalMeasured;ce&&(w=L.lineN&&n=x.viewTo)return;var K=x.view[ra(e,n)];if(K.node==null)return;var Z=K.changes||(K.changes=[]);q(Z,w)==-1&&Z.push(w)}function aa(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ja(e,n,w,x){var L=ra(e,n),K,Z=e.display.view;if(!yn||w==e.doc.first+e.doc.size)return{index:L,lineN:w};for(var ae=e.display.viewFrom,ie=0;ie0){if(L==Z.length-1)return null;K=ae+Z[L].size-n,L++}else K=ae-n;n+=K,w+=K}for(;Gt(e.doc,w)!=w;){if(L==(x<0?0:Z.length-1))return null;w+=x*Z[L-(x<0?1:0)].size,L+=x}return{index:L,lineN:w}}function hi(e,n,w){var x=e.display,L=x.view;L.length==0||n>=x.viewTo||w<=x.viewFrom?(x.view=qt(e,n,w),x.viewFrom=n):(x.viewFrom>n?x.view=qt(e,n,x.viewFrom).concat(x.view):x.viewFromw&&(x.view=x.view.slice(0,ra(e,w)))),x.viewTo=w}function si(e){for(var n=e.display.view,w=0,x=0;x=e.display.viewTo||ae.to().line0?n.blinker=setInterval(function(){e.hasFocus()||wi(e),n.cursorDiv.style.visibility=(w=!w)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}function Li(e){e.state.focused||(e.display.input.focus(),li(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,wi(e))},100)}function li(e,n){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Je(e,"focus",e,n),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),E&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ya(e)}function wi(e,n){if(e.state.delayingBlurEvent)return;e.state.focused&&(Je(e,"blur",e,n),e.state.focused=!1,f(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Si(e){for(var n=e.display,w=n.lineDiv.offsetTop,x=0;x.005||Be<-.005)&&(Mr(L.line,Z),Ti(L.line),L.rest))for(var qe=0;qee.display.sizerWidth){var At=Math.ceil(ae/Ir(e.display));At>e.display.maxLineLength&&(e.display.maxLineLength=At,e.display.maxLine=L.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var n=0;n=Z&&(K=Nr(n,En(kn(n,ie))-e.wrapper.clientHeight),Z=ie)}return{from:K,to:Math.max(Z,K+1)}}function co(e,n){if(ft(e,"scrollCursorIntoView"))return;var w=e.display,x=w.sizer.getBoundingClientRect(),L=null;if(n.top+x.top<0?L=!0:n.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(L=!1),L!=null&&!p){var K=d("div","\u200B",null,`position: absolute; +`,n);L==-1&&(L=e.length);var K=e.slice(n,e.charAt(L-1)=="\r"?L-1:L),Z=K.indexOf("\r");Z!=-1?(w.push(K.slice(0,Z)),n+=Z+1):(w.push(K),n=L+1)}return w}:function(e){return e.split(/\r\n?|\n/)},Tt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(w){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},ct=function(){var e=d("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ye=null;function Pe(e){if(ye!=null)return ye;var n=i(e,d("span","x")),w=n.getBoundingClientRect(),x=O(n,0,1).getBoundingClientRect();return ye=Math.abs(w.left-x.left)>1}var Pt={},pt={};function en(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Pt[e]=n}function an(e,n){pt[e]=n}function st(e){if(typeof e=="string"&&pt.hasOwnProperty(e))e=pt[e];else if(e&&typeof e.name=="string"&&pt.hasOwnProperty(e.name)){var n=pt[e.name];typeof n=="string"&&(n={name:n}),e=de(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return st("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return st("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function xt(e,n){n=st(n);var w=Pt[n.name];if(!w)return xt(e,"text/plain");var x=w(e,n);if(Nt.hasOwnProperty(n.name)){var L=Nt[n.name];for(var K in L){if(!L.hasOwnProperty(K))continue;x.hasOwnProperty(K)&&(x["_"+K]=x[K]),x[K]=L[K]}}if(x.name=n.name,n.helperType&&(x.helperType=n.helperType),n.modeProps)for(var Z in n.modeProps)x[Z]=n.modeProps[Z];return x}var Nt={};function yn(e,n){var w=Nt.hasOwnProperty(e)?Nt[e]:Nt[e]={};z(n,w)}function Mn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var w={};for(var x in n){var L=n[x];L instanceof Array&&(L=L.concat([])),w[x]=L}return w}function hr(e,n){for(var w;e.innerMode&&!(w=e.innerMode(n),!w||w.mode==e);)n=w.state,e=w.mode;return w||{mode:e,state:n}}function yr(e,n,w){return e.startState?e.startState(n,w):!0}var lr=function(e,n,w){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=w};lr.prototype.eol=function(){return this.pos>=this.string.length},lr.prototype.sol=function(){return this.pos==this.lineStart},lr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},lr.prototype.next=function(){if(this.posn},lr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},lr.prototype.skipToEnd=function(){this.pos=this.string.length},lr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},lr.prototype.backUp=function(e){this.pos-=e},lr.prototype.column=function(){return this.lastColumnPos0?null:(K&&n!==!1&&(this.pos+=K[0].length),K)}},lr.prototype.current=function(){return this.string.slice(this.start,this.pos)},lr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},lr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},lr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function kn(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var w=e;!w.lines;)for(var x=0;;++x){var L=w.children[x],K=L.chunkSize();if(n=e.first&&nw?Zt(w,kn(e,w).text.length):H(n,kn(e,n.line).text.length)}function H(e,n){var w=e.ch;return w==null||w>n?Zt(e.line,n):w<0?Zt(e.line,0):e}function $(e,n){for(var w=[],x=0;xthis.maxLookAhead&&(this.maxLookAhead=e),n},ee.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ee.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ee.fromSaved=function(e,n,w){return n instanceof re?new ee(e,Mn(e.mode,n.state),w,n.lookAhead):new ee(e,Mn(e.mode,n),w)},ee.prototype.save=function(e){var n=e!==!1?Mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new re(n,this.maxLookAhead):n};function Qe(e,n,w,x){var L=[e.state.modeGen],K={};va(e,n.text,e.doc.mode,w,function(ce,Be){return L.push(ce,Be)},K,x);for(var Z=w.state,ae=function(ce){w.baseTokens=L;var Be=e.state.overlays[ce],qe=1,At=0;w.state=!0,va(e,n.text,Be.mode,w,function(yt,hn){for(var Cn=qe;Atyt&&L.splice(qe,1,yt,L[qe+1],Rn),qe+=2,At=Math.min(yt,Rn)}if(!hn)return;if(Be.opaque)L.splice(Cn,qe-Cn,yt,"overlay "+hn),qe=Cn+2;else for(;Cne.options.maxHighlightLength&&Mn(e.doc.mode,x.state),K=Qe(e,n,x);L&&(x.state=L),n.stateAfter=x.save(!L),n.styles=K.styles,K.classes?n.styleClasses=K.classes:n.styleClasses&&(n.styleClasses=null),w===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function On(e,n,w){var x=e.doc,L=e.display;if(!x.mode.startState)return new ee(x,!0,n);var K=Gr(e,n,w),Z=K>x.first&&kn(x,K-1).stateAfter,ae=Z?ee.fromSaved(x,Z,K):new ee(x,yr(x.mode),K);return x.iter(K,n,function(ie){Wn(e,ie.text,ae);var ce=ae.line;ie.stateAfter=ce==n-1||ce%5==0||ce>=L.viewFrom&&cen.start)return K}throw new Error("Mode "+e.name+" failed to advance stream.")}var tr=function(e,n,w){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=w};function Br(e,n,w,x){var L=e.doc,K=L.mode,Z;n=U(L,n);var ae=kn(L,n.line),ie=On(e,n.line,w),ce=new lr(ae.text,e.options.tabSize,ie),Be;for(x&&(Be=[]);(x||ce.pose.options.maxHighlightLength?(ae=!1,Z&&Wn(e,n,x,Be.pos),Be.pos=n.length,qe=null):qe=ua(er(w,Be,x.state,At),K),At){var yt=At[0].name;yt&&(qe="m-"+(qe?yt+" "+qe:yt))}if(!ae||ce!=qe){for(;ieZ;--ae){if(ae<=K.first)return K.first;var ie=kn(K,ae-1),ce=ie.stateAfter;if(ce&&(!w||ae+(ce instanceof re?ce.lookAhead:0)<=K.modeFrontier))return ae;var Be=Y(ie.text,null,e.options.tabSize);(L==null||x>Be)&&(L=ae-1,x=Be)}return L}function zn(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),e.highlightFrontierw;x--){var L=kn(e,x).stateAfter;if(L&&(!(L instanceof re)||x+L.lookAhead=n:K.to>n);(x||(x=[])).push(new Xn(Z,K.from,ie?null:K.to))}}return x}function Qn(e,n,w){var x;if(e)for(var L=0;L=n:K.to>n);if(ae||K.from==n&&Z.type=="bookmark"&&(!w||K.marker.insertLeft)){var ie=K.from==null||(Z.inclusiveLeft?K.from<=n:K.from0&&ae)for(var qn=0;qn0)continue;var Be=[ie,1],qe=In(ce.from,ae.from),At=In(ce.to,ae.to);(qe<0||!Z.inclusiveLeft&&!qe)&&Be.push({from:ce.from,to:ae.from}),(At>0||!Z.inclusiveRight&&!At)&&Be.push({from:ae.to,to:ce.to}),L.splice.apply(L,Be),ie+=Be.length-3}return L}function We(e){var n=e.markedSpans;if(!n)return;for(var w=0;wn)&&(!x||lt(x,K.marker)<0)&&(x=K.marker)}return x}function kt(e,n,w,x,L){var K=kn(e,n),Z=bn&&K.markedSpans;if(Z)for(var ae=0;ae=0&&qe<=0||Be<=0&&qe>=0)continue;if(Be<=0&&(ie.marker.inclusiveRight&&L.inclusiveLeft?In(ce.to,w)>=0:In(ce.to,w)>0)||Be>=0&&(ie.marker.inclusiveRight&&L.inclusiveLeft?In(ce.from,x)<=0:In(ce.from,x)<0))return!0}}function vt(e){for(var n;n=ht(e);)e=n.find(-1,!0).line;return e}function et(e){for(var n;n=_t(e);)e=n.find(1,!0).line;return e}function Dt(e){for(var n,w;n=_t(e);)e=n.find(1,!0).line,(w||(w=[])).push(e);return w}function Gt(e,n){var w=kn(e,n),x=vt(w);return w==x?n:mr(x)}function Yt(e,n){if(n>e.lastLine())return n;var w=kn(e,n),x;if(!wt(e,w))return n;for(;x=_t(w);)w=x.find(1,!0).line;return mr(w)+1}function wt(e,n){var w=bn&&n.markedSpans;if(w)for(var x=void 0,L=0;Ln.maxLineLength&&(n.maxLineLength=L,n.maxLine=x)})}var Wt=function(e,n,w){this.text=e,Ve(this,n),this.height=w?w(this):1};Wt.prototype.lineNo=function(){return mr(this)},Te(Wt);function vn(e,n,w,x){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),We(e),Ve(e,w);var L=x?x(e):1;L!=e.height&&Pr(e,L)}function zt(e){e.parent=null,We(e)}var cn={},Qt={};function Vt(e,n){if(!e||/^\s*$/.test(e))return null;var w=n.addModeClass?Qt:cn;return w[e]||(w[e]=e.replace(/\S+/g,"cm-$&"))}function tt(e,n){var w=A("span",null,null,E?"padding-right: .1px":null),x={pre:A("pre",[w],"CodeMirror-line"),content:w,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var L=0;L<=(n.rest?n.rest.length:0);L++){var K=L?n.rest[L-1]:n.line,Z=void 0;x.pos=0,x.addToken=Ft,rn(e.display.measure)&&(Z=un(K,e.doc.direction))&&(x.addToken=Xt(x.addToken,Z)),x.map=[];var ae=n!=e.display.externalMeasured&&mr(K);Tn(K,x,dn(e,K,ae)),K.styleClasses&&(K.styleClasses.bgClass&&(x.bgClass=B(K.styleClasses.bgClass,x.bgClass||"")),K.styleClasses.textClass&&(x.textClass=B(K.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(sn(e.display.measure))),L==0?(n.measure.map=x.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(x.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(E){var ie=x.content.lastChild;(/\bcm-tab\b/.test(ie.className)||ie.querySelector&&ie.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return Je(e,"renderLine",e,n.line,x.pre),x.pre.className&&(x.textClass=B(x.pre.className,x.textClass||"")),x}function Xe(e){var n=d("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ft(e,n,w,x,L,K,Z){if(!n)return;var ae=e.splitSpaces?Ct(n,e.trailingSpace):n,ie=e.cm.state.specialChars,ce=!1,Be;if(!ie.test(n))e.col+=n.length,Be=document.createTextNode(ae),e.map.push(e.pos,e.pos+n.length,Be),M&&c<9&&(ce=!0),e.pos+=n.length;else{Be=document.createDocumentFragment();for(var qe=0;;){ie.lastIndex=qe;var At=ie.exec(n),yt=At?At.index-qe:n.length-qe;if(yt){var hn=document.createTextNode(ae.slice(qe,qe+yt));M&&c<9?Be.appendChild(d("span",[hn])):Be.appendChild(hn),e.map.push(e.pos,e.pos+yt,hn),e.col+=yt,e.pos+=yt}if(!At)break;qe+=yt+1;var Cn=void 0;if(At[0]==" "){var Rn=e.cm.options.tabSize,jn=Rn-e.col%Rn;Cn=Be.appendChild(d("span",fe(jn),"cm-tab")),Cn.setAttribute("role","presentation"),Cn.setAttribute("cm-text"," "),e.col+=jn}else At[0]=="\r"||At[0]==` +`?(Cn=Be.appendChild(d("span",At[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Cn.setAttribute("cm-text",At[0]),e.col+=1):(Cn=e.cm.options.specialCharPlaceholder(At[0]),Cn.setAttribute("cm-text",At[0]),M&&c<9?Be.appendChild(d("span",[Cn])):Be.appendChild(Cn),e.col+=1);e.map.push(e.pos,e.pos+1,Cn),e.pos++}}if(e.trailingSpace=ae.charCodeAt(n.length-1)==32,w||x||L||ce||K||Z){var $n=w||"";x&&($n+=x),L&&($n+=L);var Un=d("span",[Be],$n,K);if(Z)for(var qn in Z)Z.hasOwnProperty(qn)&&qn!="style"&&qn!="class"&&Un.setAttribute(qn,Z[qn]);return e.content.appendChild(Un)}e.content.appendChild(Be)}function Ct(e,n){if(e.length>1&&!/ /.test(e))return e;for(var w=n,x="",L=0;Lce&&qe.from<=ce);At++);if(qe.to>=Be)return e(w,x,L,K,Z,ae,ie);e(w,x.slice(0,qe.to-ce),L,K,null,ae,ie),K=null,x=x.slice(qe.to-ce),ce=qe.to}}}function jt(e,n,w,x){var L=!x&&w.widgetNode;L&&e.map.push(e.pos,e.pos+n,L),!x&&e.cm.display.input.needsContentAttribute&&(L||(L=e.content.appendChild(document.createElement("span"))),L.setAttribute("cm-marker",w.id)),L&&(e.cm.display.input.setUneditable(L),e.content.appendChild(L)),e.pos+=n,e.trailingSpace=!1}function Tn(e,n,w){var x=e.markedSpans,L=e.text,K=0;if(!x){for(var Z=1;Zie||jr.collapsed&&cr.to==ie&&cr.from==ie)){if(cr.to!=null&&cr.to!=ie&&yt>cr.to&&(yt=cr.to,Cn=""),jr.className&&(hn+=" "+jr.className),jr.css&&(At=(At?At+";":"")+jr.css),jr.startStyle&&cr.from==ie&&(Rn+=" "+jr.startStyle),jr.endStyle&&cr.to==yt&&(qn||(qn=[])).push(jr.endStyle,cr.to),jr.title&&(($n||($n={})).title=jr.title),jr.attributes)for(var la in jr.attributes)($n||($n={}))[la]=jr.attributes[la];jr.collapsed&&(!jn||lt(jn.marker,jr)<0)&&(jn=cr)}else cr.from>ie&&yt>cr.from&&(yt=cr.from)}if(qn)for(var Fa=0;Fa=ae)break;for(var ii=Math.min(ae,yt);;){if(Be){var ti=ie+Be.length;if(!jn){var Aa=ti>ii?Be.slice(0,ii-ie):Be;n.addToken(n,Aa,qe?qe+hn:hn,Rn,ie+Aa.length==yt?Cn:"",At,$n)}if(ti>=ii){Be=Be.slice(ii-ie),ie=ii;break}ie=ti,Rn=""}Be=L.slice(K,K=w[ce++]),qe=Vt(w[ce++],n.cm.options)}}}function Ln(e,n,w){this.line=n,this.rest=Dt(n),this.size=this.rest?mr(Ze(this.rest))-w+1:1,this.node=this.text=null,this.hidden=wt(e,n)}function qt(e,n,w){for(var x=[],L,K=n;K2&&K.push((ie.bottom+ce.top)/2-w.top)}}K.push(w.bottom-w.top)}}function he(e,n,w){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};for(var x=0;xw)return{map:e.measure.maps[L],cache:e.measure.caches[L],before:!0}}function je(e,n){n=vt(n);var w=mr(n),x=e.display.externalMeasured=new Ln(e.doc,n,w);x.lineN=w;var L=x.built=tt(e,x);return x.text=L.pre,i(e.display.lineMeasure,L.pre),x}function Fe(e,n,w,x){return gt(e,He(e,n),w,x)}function it(e,n){if(n>=e.display.viewFrom&&n=w.lineN&&nn)&&(K=ie-ae,L=K-1,n>=ie&&(Z="right")),L!=null){if(x=e[ce+2],ae==ie&&w==(x.insertLeft?"left":"right")&&(Z=w),w=="left"&&L==0)for(;ce&&e[ce-2]==e[ce-3]&&e[ce-1].insertLeft;)x=e[(ce-=3)+2],Z="left";if(w=="right"&&L==ie-ae)for(;ce=0&&!((w=e[L]).left!=w.right);L--);return w}function An(e,n,w,x){var L=ln(n.map,w,x),K=L.node,Z=L.start,ae=L.end,ie=L.collapse,ce;if(K.nodeType==3){for(var Be=0;Be<4;Be++){for(;Z&&at(n.line.text.charAt(L.coverStart+Z));)--Z;for(;L.coverStart+ae0&&(ie=x="right");var qe;e.options.lineWrapping&&(qe=K.getClientRects()).length>1?ce=qe[x=="right"?qe.length-1:0]:ce=K.getBoundingClientRect()}if(M&&c<9&&!Z&&(!ce||!ce.left&&!ce.right)){var At=K.parentNode.getClientRects()[0];At?ce={left:At.left,right:At.left+Mr(e.display),top:At.top,bottom:At.bottom}:ce=Ut}for(var yt=ce.top-n.rect.top,hn=ce.bottom-n.rect.top,Cn=(yt+hn)/2,Rn=n.view.measure.heights,jn=0;jn=x.text.length?(ie=x.text.length,ce="before"):ie<=0&&(ie=0,ce="after"),!ae)return Z(ce=="before"?ie-1:ie,ce=="before");function Be(hn,Cn,Rn){var jn=ae[Cn],$n=jn.level==1;return Z(Rn?hn-1:hn,$n!=Rn)}var qe=Lt(ae,ie,ce),At=Kt,yt=Be(ie,qe,ce=="before");return At!=null&&(yt.other=Be(ie,At,ce!="before")),yt}function gn(e,n){var w=0;n=U(e.doc,n),e.options.lineWrapping||(w=Mr(e.display)*n.ch);var x=kn(e.doc,n.line),L=xn(x)+Ta(e.display);return{left:w,right:w,top:L,bottom:L+x.height}}function Bt(e,n,w,x,L){var K=Zt(e,n,w);return K.xRel=L,x&&(K.outside=x),K}function Ht(e,n,w){var x=e.doc;if(w+=e.display.viewOffset,w<0)return Bt(x.first,0,null,-1,-1);var L=Fr(x,w),K=x.first+x.size-1;if(L>K)return Bt(x.first+x.size-1,kn(x,K).text.length,null,1,1);n<0&&(n=0);for(var Z=kn(x,L);;){var ae=Hr(e,Z,L,n,w),ie=$t(Z,ae.ch+(ae.xRel>0||ae.outside>0?1:0));if(!ie)return ae;var ce=ie.find(1);if(ce.line==L)return ce;Z=kn(x,L=ce.line)}}function fn(e,n,w,x){x-=br(n);var L=n.text.length,K=Rt(function(Z){return gt(e,w,Z-1).bottom<=x},L,0);return L=Rt(function(Z){return gt(e,w,Z).top>x},K,L),{begin:K,end:L}}function wn(e,n,w,x){w||(w=He(e,n));var L=Tr(e,n,gt(e,w,x),"line").top;return fn(e,n,w,L)}function Sn(e,n,w,x){return e.bottom<=w?!1:e.top>w?!0:(x?e.left:e.right)>n}function Hr(e,n,w,x,L){L-=xn(n);var K=He(e,n),Z=br(n),ae=0,ie=n.text.length,ce=!0,Be=un(n,e.doc.direction);if(Be){var qe=(e.options.lineWrapping?Lr:Sr)(e,n,w,K,Be,x,L);ce=qe.level!=1,ae=ce?qe.from:qe.to-1,ie=ce?qe.to:qe.from-1}var At=null,yt=null,hn=Rt(function(Er){var cr=gt(e,K,Er);return cr.top+=Z,cr.bottom+=Z,Sn(cr,x,L,!1)?(cr.top<=L&&cr.left<=x&&(At=Er,yt=cr),!0):!1},ae,ie),Cn,Rn,jn=!1;if(yt){var $n=x-yt.left=qn.bottom?1:0}return hn=dt(n.text,hn,1),Bt(w,hn,Rn,jn,x-Cn)}function Sr(e,n,w,x,L,K,Z){var ae=Rt(function(qe){var At=L[qe],yt=At.level!=1;return Sn(nr(e,Zt(w,yt?At.to:At.from,yt?"before":"after"),"line",n,x),K,Z,!0)},0,L.length-1),ie=L[ae];if(ae>0){var ce=ie.level!=1,Be=nr(e,Zt(w,ce?ie.from:ie.to,ce?"after":"before"),"line",n,x);Sn(Be,K,Z,!0)&&Be.top>Z&&(ie=L[ae-1])}return ie}function Lr(e,n,w,x,L,K,Z){var ae=fn(e,n,x,Z),ie=ae.begin,ce=ae.end;/\s/.test(n.text.charAt(ce-1))&&ce--;for(var Be=null,qe=null,At=0;At=ce||yt.to<=ie)continue;var hn=yt.level!=1,Cn=gt(e,x,hn?Math.min(ce,yt.to)-1:Math.max(ie,yt.from)).right,Rn=CnRn)&&(Be=yt,qe=Rn)}return Be||(Be=L[L.length-1]),Be.fromce&&(Be={from:Be.from,to:ce,level:Be.level}),Be}var Ur;function kr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ur==null){Ur=d("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Ur.appendChild(document.createTextNode("x")),Ur.appendChild(d("br"));Ur.appendChild(document.createTextNode("x"))}i(e.measure,Ur);var w=Ur.offsetHeight/50;return w>3&&(e.cachedTextHeight=w),o(e.measure),w||1}function Mr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=d("span","xxxxxxxxxx"),w=d("pre",[n],"CodeMirror-line-like");i(e.measure,w);var x=n.getBoundingClientRect(),L=(x.right-x.left)/10;return L>2&&(e.cachedCharWidth=L),L||10}function ur(e){for(var n=e.display,w={},x={},L=n.gutters.clientLeft,K=n.gutters.firstChild,Z=0;K;K=K.nextSibling,++Z){var ae=e.display.gutterSpecs[Z].className;w[ae]=K.offsetLeft+K.clientLeft+L,x[ae]=K.clientWidth}return{fixedPos:ha(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:w,gutterWidth:x,wrapperWidth:n.wrapper.clientWidth}}function ha(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Qa(e){var n=kr(e.display),w=e.options.lineWrapping,x=w&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(L){if(wt(e.doc,L))return 0;var K=0;if(L.widgets)for(var Z=0;Z0&&(ce=kn(e.doc,ie.line).text).length==ie.ch){var Be=Y(ce,ce.length,e.options.tabSize)-ce.length;ie=Zt(ie.line,Math.max(0,Math.round((K-$e(e.display).left)/Mr(e.display))-Be))}return ie}function ra(e,n){if(n>=e.display.viewTo)return null;if(n-=e.display.viewFrom,n<0)return null;for(var w=e.display.view,x=0;xn)&&(L.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=L.viewTo)bn&&Gt(e.doc,n)L.viewFrom?aa(e):(L.viewFrom+=x,L.viewTo+=x);else if(n<=L.viewFrom&&w>=L.viewTo)aa(e);else if(n<=L.viewFrom){var K=ja(e,w,w+x,1);K?(L.view=L.view.slice(K.index),L.viewFrom=K.lineN,L.viewTo+=x):aa(e)}else if(w>=L.viewTo){var Z=ja(e,n,n,-1);Z?(L.view=L.view.slice(0,Z.index),L.viewTo=Z.lineN):aa(e)}else{var ae=ja(e,n,n,-1),ie=ja(e,w,w+x,1);ae&&ie?(L.view=L.view.slice(0,ae.index).concat(qt(e,ae.lineN,ie.lineN)).concat(L.view.slice(ie.index)),L.viewTo+=x):aa(e)}var ce=L.externalMeasured;ce&&(w=L.lineN&&n=x.viewTo)return;var K=x.view[ra(e,n)];if(K.node==null)return;var Z=K.changes||(K.changes=[]);q(Z,w)==-1&&Z.push(w)}function aa(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ja(e,n,w,x){var L=ra(e,n),K,Z=e.display.view;if(!bn||w==e.doc.first+e.doc.size)return{index:L,lineN:w};for(var ae=e.display.viewFrom,ie=0;ie0){if(L==Z.length-1)return null;K=ae+Z[L].size-n,L++}else K=ae-n;n+=K,w+=K}for(;Gt(e.doc,w)!=w;){if(L==(x<0?0:Z.length-1))return null;w+=x*Z[L-(x<0?1:0)].size,L+=x}return{index:L,lineN:w}}function hi(e,n,w){var x=e.display,L=x.view;L.length==0||n>=x.viewTo||w<=x.viewFrom?(x.view=qt(e,n,w),x.viewFrom=n):(x.viewFrom>n?x.view=qt(e,n,x.viewFrom).concat(x.view):x.viewFromw&&(x.view=x.view.slice(0,ra(e,w)))),x.viewTo=w}function si(e){for(var n=e.display.view,w=0,x=0;x=e.display.viewTo||ae.to().line0?n.blinker=setInterval(function(){e.hasFocus()||wi(e),n.cursorDiv.style.visibility=(w=!w)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}function Li(e){e.state.focused||(e.display.input.focus(),li(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,wi(e))},100)}function li(e,n){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Je(e,"focus",e,n),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),E&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ya(e)}function wi(e,n){if(e.state.delayingBlurEvent)return;e.state.focused&&(Je(e,"blur",e,n),e.state.focused=!1,f(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Si(e){for(var n=e.display,w=n.lineDiv.offsetTop,x=0;x.005||Be<-.005)&&(Pr(L.line,Z),Ti(L.line),L.rest))for(var qe=0;qee.display.sizerWidth){var At=Math.ceil(ae/Mr(e.display));At>e.display.maxLineLength&&(e.display.maxLineLength=At,e.display.maxLine=L.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var n=0;n=Z&&(K=Fr(n,xn(kn(n,ie))-e.wrapper.clientHeight),Z=ie)}return{from:K,to:Math.max(Z,K+1)}}function co(e,n){if(ft(e,"scrollCursorIntoView"))return;var w=e.display,x=w.sizer.getBoundingClientRect(),L=null;if(n.top+x.top<0?L=!0:n.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(L=!1),L!=null&&!p){var K=d("div","\u200B",null,`position: absolute; top: `+(n.top-w.viewOffset-Ta(e.display))+`px; - height: `+(n.bottom-n.top+tt(e)+w.barHeight)+`px; - left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(K),K.scrollIntoView(L),e.display.lineSpace.removeChild(K)}}function Do(e,n,w,x){x==null&&(x=0);var L;!e.options.lineWrapping&&n==w&&(n=n.ch?Zt(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n,w=n.sticky=="before"?Zt(n.line,n.ch+1,"before"):n);for(var K=0;K<5;K++){var Z=!1,ae=Sn(e,n),ie=!w||w==n?ae:Sn(e,w);L={left:Math.min(ae.left,ie.left),top:Math.min(ae.top,ie.top)-x,right:Math.max(ae.left,ie.left),bottom:Math.max(ae.bottom,ie.bottom)+x};var ce=Oi(e,L),Be=e.doc.scrollTop,qe=e.doc.scrollLeft;if(ce.scrollTop!=null&&(Mi(e,ce.scrollTop),Math.abs(e.doc.scrollTop-Be)>1&&(Z=!0)),ce.scrollLeft!=null&&(La(e,ce.scrollLeft),Math.abs(e.doc.scrollLeft-qe)>1&&(Z=!0)),!Z)break}return L}function Gi(e,n){var w=Oi(e,n);w.scrollTop!=null&&Mi(e,w.scrollTop),w.scrollLeft!=null&&La(e,w.scrollLeft)}function Oi(e,n){var w=e.display,x=Ur(e.display);n.top<0&&(n.top=0);var L=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:w.scroller.scrollTop,K=se(e),Z={};n.bottom-n.top>K&&(n.bottom=n.top+K);var ae=e.doc.height+Ae(w),ie=n.topae-x;if(n.topL+K){var Be=Math.min(n.top,(ce?ae:n.bottom)-K);Be!=L&&(Z.scrollTop=Be)}var qe=e.options.fixedGutter?0:w.gutters.offsetWidth,At=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:w.scroller.scrollLeft-qe,yt=Ne(e)-w.gutters.offsetWidth,hn=n.right-n.left>yt;return hn&&(n.right=n.left+yt),n.left<10?Z.scrollLeft=0:n.leftyt+At-3&&(Z.scrollLeft=n.right+(hn?0:10)-yt),Z}function Vi(e,n){if(n==null)return;Xi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n}function yi(e){Xi(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Di(e,n,w){(n!=null||w!=null)&&Xi(e),n!=null&&(e.curOp.scrollLeft=n),w!=null&&(e.curOp.scrollTop=w)}function ho(e,n){Xi(e),e.curOp.scrollToPos=n}function Xi(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var w=Rt(e,n.from),x=Rt(e,n.to);Ai(e,w,x,n.margin)}}function Ai(e,n,w,x){var L=Oi(e,{left:Math.min(n.left,w.left),top:Math.min(n.top,w.top)-x,right:Math.max(n.right,w.right),bottom:Math.max(n.bottom,w.bottom)+x});Di(e,L.scrollLeft,L.scrollTop)}function Mi(e,n){if(Math.abs(e.doc.scrollTop-n)<2)return;R||ji(e,{top:n}),bi(e,n,!0),R&&ji(e),Ni(e,100)}function bi(e,n,w){if(n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),e.display.scroller.scrollTop==n&&!w)return;e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n)}function La(e,n,w,x){if(n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(w?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!x)return;e.doc.scrollLeft=n,Pr(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n)}function fi(e){var n=e.display,w=n.gutters.offsetWidth,x=Math.round(e.doc.height+Ae(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?w:0,docHeight:x,scrollHeight:x+tt(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:w}}var pi=function(e,n,w){this.cm=w;var x=this.vert=d("div",[d("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),L=this.horiz=d("div",[d("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=L.tabIndex=-1,e(x),e(L),De(x,"scroll",function(){x.clientHeight&&n(x.scrollTop,"vertical")}),De(L,"scroll",function(){L.clientWidth&&n(L.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,w=e.scrollHeight>e.clientHeight+1,x=e.nativeBarWidth;if(w){this.vert.style.display="block",this.vert.style.bottom=n?x+"px":"0";var L=e.viewHeight-(n?x:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+L)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=w?x+"px":"0",this.horiz.style.left=e.barLeft+"px";var K=e.viewWidth-e.barLeft-(w?x:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+K)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:w?x:0,bottom:n?x:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=s&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},pi.prototype.enableZeroWidthBar=function(e,n,w){e.style.pointerEvents="auto";function x(){var L=e.getBoundingClientRect(),K=w=="vert"?document.elementFromPoint(L.right-1,(L.top+L.bottom)/2):document.elementFromPoint((L.right+L.left)/2,L.bottom-1);K!=e?e.style.pointerEvents="none":n.set(1e3,x)}n.set(1e3,x)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ei=function(){};Ei.prototype.update=function(){return{bottom:0,right:0}},Ei.prototype.setScrollLeft=function(){},Ei.prototype.setScrollTop=function(){},Ei.prototype.clear=function(){};function mi(e,n){n||(n=fi(e));var w=e.display.barWidth,x=e.display.barHeight;Yi(e,n);for(var L=0;L<4&&w!=e.display.barWidth||x!=e.display.barHeight;L++)w!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,fi(e)),w=e.display.barWidth,x=e.display.barHeight}function Yi(e,n){var w=e.display,x=w.scrollbars.update(n);w.sizer.style.paddingRight=(w.barWidth=x.right)+"px",w.sizer.style.paddingBottom=(w.barHeight=x.bottom)+"px",w.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(w.scrollbarFiller.style.display="block",w.scrollbarFiller.style.height=x.bottom+"px",w.scrollbarFiller.style.width=x.right+"px"):w.scrollbarFiller.style.display="",x.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(w.gutterFiller.style.display="block",w.gutterFiller.style.height=x.bottom+"px",w.gutterFiller.style.width=n.gutterWidth+"px"):w.gutterFiller.style.display=""}var $i={native:pi,null:Ei};function Qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&f(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),De(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,w){w=="horizontal"?La(e,n):Mi(e,n)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Ii=0;function ui(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ii},Pn(e.curOp)}function xi(e){var n=e.curOp;n&&Nn(n,function(w){for(var x=0;x=w.viewTo)||w.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new qa(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mo(e){e.updatedDisplay=e.mustUpdate&&Ci(e.cm,e.update)}function fo(e){var n=e.cm,w=n.display;e.updatedDisplay&&Si(n),e.barMeasure=fi(n),w.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=Fe(n,w.maxLine,w.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(w.scroller.clientWidth,w.sizer.offsetLeft+e.adjustWidthTo+tt(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,w.sizer.offsetLeft+e.adjustWidthTo-Ne(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=w.input.prepareSelection())}function ao(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var w=+new Date+e.options.workTime,x=Dn(e,n.highlightFrontier),L=[];n.iter(x.line,Math.min(n.first+n.size,e.display.viewTo+500),function(K){if(x.line>=e.display.viewFrom){var Z=K.styles,ae=K.text.length>e.options.maxHighlightLength?Mn(n.mode,x.state):null,ie=Qe(e,K,x,!0);ae&&(x.state=ae),K.styles=ie.styles;var ce=K.styleClasses,Be=ie.classes;Be?K.styleClasses=Be:ce&&(K.styleClasses=null);for(var qe=!Z||Z.length!=K.styles.length||ce!=Be&&(!ce||!Be||ce.bgClass!=Be.bgClass||ce.textClass!=Be.textClass),At=0;!qe&&Atw)return Ni(e,e.options.workDelay),!0}),n.highlightFrontier=x.line,n.modeFrontier=Math.max(n.modeFrontier,x.line),L.length&&Ha(e,function(){for(var K=0;K=w.viewFrom&&n.visible.to<=w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>=w.viewTo)&&w.renderedView==w.view&&si(e)==0)return!1;da(e)&&(aa(e),n.dims=ur(e));var L=x.first+x.size,K=Math.max(n.visible.from-e.options.viewportMargin,x.first),Z=Math.min(L,n.visible.to+e.options.viewportMargin);w.viewFromZ&&w.viewTo-Z<20&&(Z=Math.min(L,w.viewTo)),yn&&(K=Gt(e.doc,K),Z=Yt(e.doc,Z));var ae=K!=w.viewFrom||Z!=w.viewTo||w.lastWrapHeight!=n.wrapperHeight||w.lastWrapWidth!=n.wrapperWidth;hi(e,K,Z),w.viewOffset=En(kn(e.doc,w.viewFrom)),e.display.mover.style.top=w.viewOffset+"px";var ie=si(e);if(!ae&&ie==0&&!n.force&&w.renderedView==w.view&&(w.updateLineNumbers==null||w.updateLineNumbers>=w.viewTo))return!1;var ce=oo(e);return ie>4&&(w.lineDiv.style.display="none"),vo(e,w.updateLineNumbers,n.dims),ie>4&&(w.lineDiv.style.display=""),w.renderedView=w.view,so(ce),o(w.cursorDiv),o(w.selectionDiv),w.gutters.style.height=w.sizer.style.minHeight=0,ae&&(w.lastWrapHeight=n.wrapperHeight,w.lastWrapWidth=n.wrapperWidth,Ni(e,400)),w.updateLineNumbers=null,!0}function Ji(e,n){for(var w=n.viewport,x=!0;;x=!1){if(!x||!e.options.lineWrapping||n.oldDisplayWidth==Ne(e)){if(w&&w.top!=null&&(w={top:Math.min(e.doc.height+Ae(e.display)-se(e),w.top)}),n.visible=ki(e.display,e.doc,w),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else x&&(n.visible=ki(e.display,e.doc,w));if(!Ci(e,n))break;Si(e);var L=fi(e);Jr(e),mi(e,L),Vr(e,L),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,n){var w=new qa(e,n);if(Ci(e,w)){Si(e),Ji(e,w);var x=fi(e);Jr(e),mi(e,x),Vr(e,x),w.finish()}}function vo(e,n,w){var x=e.display,L=e.options.lineNumbers,K=x.lineDiv,Z=K.firstChild;function ae(hn){var xn=hn.nextSibling;return E&&s&&e.display.currentWheelTarget==hn?hn.style.display="none":hn.parentNode.removeChild(hn),xn}for(var ie=x.view,ce=x.viewFrom,Be=0;Be-1&&(yt=!1),Lr(e,qe,ce,w)),yt&&(o(qe.lineNumber),qe.lineNumber.appendChild(document.createTextNode(ca(e.options,ce)))),Z=qe.node.nextSibling}ce+=qe.size}for(;Z;)Z=ae(Z)}function Zi(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px"}function Vr(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+tt(e)+"px"}function Pr(e){var n=e.display,w=n.view;if(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))return;for(var x=ha(n)-n.scroller.scrollLeft+e.doc.scrollLeft,L=n.gutters.offsetWidth,K=x+"px",Z=0;ZZ.clientWidth,ie=Z.scrollHeight>Z.clientHeight;if(!(x&&ae||L&&ie))return;if(L&&s&&E){e:for(var ce=n.target,Be=K.view;ce!=Z;ce=ce.parentNode)for(var qe=0;qe=0&&In(e,x.to())<=0)return w}return-1};var Wr=function(e,n){this.anchor=e,this.head=n};Wr.prototype.from=function(){return Sr(this.anchor,this.head)},Wr.prototype.to=function(){return _r(this.anchor,this.head)},Wr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Cr(e,n,w){var x=e&&e.options.selectionsMayTouch,L=n[w];n.sort(function(At,yt){return In(At.from(),yt.from())}),w=q(n,L);for(var K=1;K0:ie>=0){var ce=Sr(ae.from(),Z.from()),Be=_r(ae.to(),Z.to()),qe=ae.empty()?Z.from()==Z.head:ae.from()==ae.head;K<=w&&--w,n.splice(--K,2,new Wr(qe?Be:ce,qe?ce:Be))}}return new Wa(n,w)}function Fn(e,n){return new Wa([new Wr(e,n||e)],0)}function rr(e){return e.text?Zt(e.from.line+e.text.length-1,Ze(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ar(e,n){if(In(e,n.from)<0)return e;if(In(e,n.to)<=0)return rr(n);var w=e.line+n.text.length-(n.to.line-n.from.line)-1,x=e.ch;return e.line==n.to.line&&(x+=rr(n).ch-n.to.ch),Zt(w,x)}function sa(e,n){for(var w=[],x=0;x1&&e.remove(ae.line+1,hn-1),e.insert(ae.line+1,jn)}Bn(e,"change",e,n)}function wa(e,n,w){function x(L,K,Z){if(L.linked)for(var ae=0;ae1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ze(e.done)}function Es(e,n,w,x){var L=e.history;L.undone.length=0;var K=+new Date,Z,ae;if((L.lastOp==x||L.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&L.lastModTime>K-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(Z=pl(L,L.lastOp==x)))ae=Ze(Z.changes),In(n.from,n.to)==0&&In(n.from,ae.to)==0?ae.to=rr(n):Z.changes.push(rs(e,n));else{var ie=Ze(L.done);for((!ie||!ie.ranges)&&Go(e.sel,L.done),Z={changes:[rs(e,n)],generation:L.generation},L.done.push(Z);L.done.length>L.undoDepth;)L.done.shift(),L.done[0].ranges||L.done.shift()}L.done.push(w),L.generation=++L.maxGeneration,L.lastModTime=L.lastSelTime=K,L.lastOp=L.lastSelOp=x,L.lastOrigin=L.lastSelOrigin=n.origin,ae||Je(e,"historyAdded")}function ml(e,n,w,x){var L=n.charAt(0);return L=="*"||L=="+"&&w.ranges.length==x.ranges.length&&w.somethingSelected()==x.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,n,w,x){var L=e.history,K=x&&x.origin;w==L.lastSelOp||K&&L.lastSelOrigin==K&&(L.lastModTime==L.lastSelTime&&L.lastOrigin==K||ml(e,K,Ze(L.done),n))?L.done[L.done.length-1]=n:Go(n,L.done),L.lastSelTime=+new Date,L.lastSelOrigin=K,L.lastSelOp=w,x&&x.clearRedo!==!1&&bs(L.undone)}function Go(e,n){var w=Ze(n);w&&w.ranges&&w.equals(e)||n.push(e)}function xs(e,n,w,x){var L=n["spans_"+e.id],K=0;e.iter(Math.max(e.first,w),Math.min(e.first+e.size,x),function(Z){Z.markedSpans&&((L||(L=n["spans_"+e.id]={}))[K]=Z.markedSpans),++K})}function gl(e){if(!e)return null;for(var n,w=0;w-1&&(Ze(ae)[qe]=ce[qe],delete ce[qe]))}}return x}function as(e,n,w,x){if(x){var L=e.anchor;if(w){var K=In(n,L)<0;K!=In(w,L)<0?(L=n,n=w):K!=In(n,w)<0&&(n=w)}return new Wr(L,n)}else return new Wr(w||n,n)}function Vo(e,n,w,x,L){L==null&&(L=e.cm&&(e.cm.display.shift||e.extend)),Ga(e,new Wa([as(e.sel.primary(),n,w,L)],0),x)}function _s(e,n,w){for(var x=[],L=e.cm&&(e.cm.display.shift||e.extend),K=0;K=n.ch:ae.to>n.ch))){if(L&&(Je(ie,"beforeCursorEnter"),ie.explicitlyCleared))if(K.markedSpans){--Z;continue}else break;if(!ie.atomic)continue;if(w){var qe=ie.find(x<0?1:-1),At=void 0;if((x<0?Be:ce)&&(qe=As(e,qe,-x,qe&&qe.line==n.line?K:null)),qe&&qe.line==n.line&&(At=In(qe,w))&&(x<0?At<0:At>0))return yo(e,qe,n,x,L)}var yt=ie.find(x<0?-1:1);return(x<0?ce:Be)&&(yt=As(e,yt,x,yt.line==n.line?K:null)),yt?yo(e,yt,n,x,L):null}}return n}function Yo(e,n,w,x,L){var K=x||1,Z=yo(e,n,w,K,L)||!L&&yo(e,n,w,K,!0)||yo(e,n,w,-K,L)||!L&&yo(e,n,w,-K,!0);return Z||(e.cantEdit=!0,Zt(e.first,0))}function As(e,n,w,x){return w<0&&n.ch==0?n.line>e.first?U(e,Zt(n.line-1)):null:w>0&&n.ch==(x||kn(e,n.line)).text.length?n.line=0;--L)Ps(e,{from:x[L].from,to:x[L].to,text:L?[""]:n.text,origin:n.origin});else Ps(e,n)}function Ps(e,n){if(n.text.length==1&&n.text[0]==""&&In(n.from,n.to)==0)return;var w=sa(e,n);Es(e,n,w,e.cm?e.cm.curOp.id:NaN),Ro(e,n,w,fr(e,n));var x=[];wa(e,function(L,K){!K&&q(x,L.history)==-1&&(Ns(L.history,n),x.push(L.history)),Ro(L,n,null,fr(L,n))})}function $o(e,n,w){var x=e.cm&&e.cm.state.suppressEdits;if(x&&!w)return;for(var L=e.history,K,Z=e.sel,ae=n=="undo"?L.done:L.undone,ie=n=="undo"?L.undone:L.done,ce=0;ce=0;--yt){var hn=At(yt);if(hn)return hn.v}}function Ls(e,n){if(n==0)return;if(e.first+=n,e.sel=new Wa(Ot(e.sel.ranges,function(L){return new Wr(Zt(L.anchor.line+n,L.anchor.ch),Zt(L.head.line+n,L.head.ch))}),e.sel.primIndex),e.cm){Qr(e.cm,e.first,e.first-n,n);for(var w=e.cm.display,x=w.viewFrom;xe.lastLine())return;if(n.from.lineK&&(n={from:n.from,to:Zt(K,kn(e,K).text.length),text:[n.text[0]],origin:n.origin}),n.removed=Fr(e,n.from,n.to),w||(w=sa(e,n)),e.cm?El(e.cm,n,x):Wi(e,n,x),Xo(e,w,le),e.cantEdit&&Yo(e,Zt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,n,w){var x=e.doc,L=e.display,K=n.from,Z=n.to,ae=!1,ie=K.line;e.options.lineWrapping||(ie=pr(vt(kn(x,K.line))),x.iter(ie,Z.line+1,function(yt){if(yt==L.maxLine)return ae=!0,!0})),x.sel.contains(n.from,n.to)>-1&&Me(e),Wi(x,n,w,Qa(e)),e.options.lineWrapping||(x.iter(ie,K.line+n.text.length,function(yt){var hn=Zn(yt);hn>L.maxLineLength&&(L.maxLine=yt,L.maxLineLength=hn,L.maxLineChanged=!0,ae=!1)}),ae&&(e.curOp.updateMaxLine=!0)),zn(x,K.line),Ni(e,400);var ce=n.text.length-(Z.line-K.line)-1;n.full?Qr(e):K.line==Z.line&&n.text.length==1&&!gi(e.doc,n)?Zr(e,K.line,"text"):Qr(e,K.line,Z.line+1,ce);var Be=xe(e,"changes"),qe=xe(e,"change");if(qe||Be){var At={from:K,to:Z,text:n.text,removed:n.removed,origin:n.origin};qe&&Bn(e,"change",e,At),Be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(At)}e.display.selForContextMenu=null}function Eo(e,n,w,x,L){var K;x||(x=w),In(x,w)<0&&(K=[x,w],w=K[0],x=K[1]),typeof n=="string"&&(n=e.splitLines(n)),bo(e,{from:w,to:x,text:n,origin:L})}function ks(e,n,w,x){w1||!(this.children[0]instanceof Lo))){var ae=[];this.collapse(ae),this.children=[new Lo(ae)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n50){for(var Z=L.lines.length%25+25,ae=Z;ae10);e.parent.maybeSpill()},iterN:function(e,n,w){for(var x=0;xe.display.maxLineLength&&(e.display.maxLine=ce,e.display.maxLineLength=Be,e.display.maxLineChanged=!0)}x!=null&&e&&this.collapsed&&Qr(e,x,L+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Bn(e,"markerCleared",e,this,x,L),n&&xi(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var w,x,L=0;L0||Z==0&&K.clearWhenEmpty!==!1)return K;if(K.replacedWith&&(K.collapsed=!0,K.widgetNode=A("span",[K.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||K.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(K.widgetNode.insertLeft=!0)),K.collapsed){if(Nt(e,n.line,n,w,K)||n.line!=w.line&&Nt(e,w.line,n,w,K))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}K.addToHistory&&Es(e,{from:n,to:w,origin:"markText"},e.sel,NaN);var ae=n.line,ie=e.cm,ce;if(e.iter(ae,w.line+1,function(qe){ie&&K.collapsed&&!ie.options.lineWrapping&&vt(qe)==ie.display.maxLine&&(ce=!0),K.collapsed&&ae!=n.line&&Mr(qe,0),lr(qe,new Xn(K,ae==n.line?n.ch:null,ae==w.line?w.ch:null)),++ae}),K.collapsed&&e.iter(n.line,w.line+1,function(qe){wt(e,qe)&&Mr(qe,0)}),K.clearOnEnter&&De(K,"beforeCursorEnter",function(){return K.clear()}),K.readOnly&&(Hn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),K.collapsed&&(K.id=++Us,K.atomic=!0),ie){if(ce&&(ie.curOp.updateMaxLine=!0),K.collapsed)Qr(ie,n.line,w.line+1);else if(K.className||K.startStyle||K.endStyle||K.css||K.attributes||K.title)for(var Be=n.line;Be<=w.line;Be++)Zr(ie,Be,"text");K.atomic&&Os(ie.doc),Bn(ie,"markerAdded",ie,K)}return K}var No=function(e,n){this.markers=e,this.primary=n;for(var w=0;w=0;ie--)bo(this,x[ie]);ae?Ss(this,ae):this.cm&&yi(this.cm)}),undo:pa(function(){$o(this,"undo")}),redo:pa(function(){$o(this,"redo")}),undoSelection:pa(function(){$o(this,"undo",!0)}),redoSelection:pa(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,w=0,x=0;x=e.ch)&&n.push(L.marker.parent||L.marker)}return n},findMarks:function(e,n,w){e=U(this,e),n=U(this,n);var x=[],L=e.line;return this.iter(e.line,n.line+1,function(K){var Z=K.markedSpans;if(Z)for(var ae=0;ae=ie.to||ie.from==null&&L!=e.line||ie.from!=null&&L==n.line&&ie.from>=n.ch)&&(!w||w(ie.marker))&&x.push(ie.marker.parent||ie.marker)}++L}),x},getAllMarks:function(){var e=[];return this.iter(function(n){var w=n.markedSpans;if(w)for(var x=0;xe)return n=e,!0;e-=K,++w}),U(this,Zt(w,n))},indexFromPos:function(e){e=U(this,e);var n=e.ch;if(e.linen&&(n=e.from),e.to!=null&&e.to-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var Be=e.dataTransfer.getData("Text");if(Be){var qe;if(n.state.draggingText&&!n.state.draggingText.copy&&(qe=n.listSelections()),Xo(n.doc,Fn(w,w)),qe)for(var At=0;At=0;ae--)Eo(e.doc,"",x[ae].from,x[ae].to,"+delete");yi(e)})}function os(e,n,w){var x=dt(e.text,n+w,w);return x<0||x>e.text.length?null:x}function ss(e,n,w){var x=os(e,n.ch,w);return x==null?null:new Zt(n.line,x,w<0?"after":"before")}function ls(e,n,w,x,L){if(e){n.doc.direction=="rtl"&&(L=-L);var K=dn(w,n.doc.direction);if(K){var Z=L<0?Ze(K):K[0],ae=L<0==(Z.level==1),ie=ae?"after":"before",ce;if(Z.level>0||n.doc.direction=="rtl"){var Be=He(n,w);ce=L<0?w.text.length-1:0;var qe=gt(n,Be,ce).top;ce=Pt(function(At){return gt(n,Be,At).top==qe},L<0==(Z.level==1)?Z.from:Z.to-1,ce),ie=="before"&&(ce=os(w,ce,1))}else ce=L<0?Z.to:Z.from;return new Zt(x,ce,ie)}}return new Zt(x,L<0?w.text.length:0,L<0?"before":"after")}function kl(e,n,w,x){var L=dn(n,e.doc.direction);if(!L)return ss(n,w,x);w.ch>=n.text.length?(w.ch=n.text.length,w.sticky="before"):w.ch<=0&&(w.ch=0,w.sticky="after");var K=It(L,w.ch,w.sticky),Z=L[K];if(e.doc.direction=="ltr"&&Z.level%2==0&&(x>0?Z.to>w.ch:Z.from=Z.from&&At>=Be.begin)){var yt=qe?"before":"after";return new Zt(w.line,At,yt)}}var hn=function(jn,Qn,Un){for(var er=function(la,Fa){return Fa?new Zt(w.line,ae(la,1),"before"):new Zt(w.line,la,"after")};jn>=0&&jn0==(xr.level!=1),kr=dr?Un.begin:ae(Un.end,-1);if(xr.from<=kr&&kr0?Be.end:ae(Be.begin,-1);return Rn!=null&&!(x>0&&Rn==n.text.length)&&(xn=hn(x>0?0:L.length-1,x,ce(Rn)),xn)?xn:null}var Fo={selectAll:Ms,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),le)},killLine:function(e){return _o(e,function(n){if(n.empty()){var w=kn(e.doc,n.head.line).text.length;return n.head.ch==w&&n.head.line0)L=new Zt(L.line,L.ch+1),e.replaceRange(K.charAt(L.ch-1)+K.charAt(L.ch-2),Zt(L.line,L.ch-2),L,"+transpose");else if(L.line>e.doc.first){var Z=kn(e.doc,L.line-1).text;Z&&(L=new Zt(L.line,1),e.replaceRange(K.charAt(0)+e.doc.lineSeparator()+Z.charAt(Z.length-1),Zt(L.line-1,Z.length-1),L,"+transpose"))}}w.push(new Wr(L,L))}e.setSelections(w)})},newlineAndIndent:function(e){return Ha(e,function(){for(var n=e.listSelections(),w=n.length-1;w>=0;w--)e.replaceRange(e.doc.lineSeparator(),n[w].anchor,n[w].head,"+input");n=e.listSelections();for(var x=0;xe&&In(n,this.pos)==0&&w==this.button};var Ho,Wo;function Hl(e,n){var w=+new Date;return Wo&&Wo.compare(w,e,n)?(Ho=Wo=null,"triple"):Ho&&Ho.compare(w,e,n)?(Wo=new ds(w,e,n),Ho=null,"double"):(Ho=new ds(w,e,n),Wo=null,"single")}function el(e){var n=this,w=n.display;if(ft(n,e)||w.activeTouch&&w.input.supportsTouch())return;if(w.input.ensurePolled(),w.shift=e.shiftKey,Ca(w,e)){E||(w.scroller.draggable=!1,setTimeout(function(){return w.scroller.draggable=!0},100));return}if(cs(n,e))return;var x=_a(n,e),L=Ue(e),K=x?Hl(x,L):"single";if(window.focus(),L==1&&n.state.selectingText&&n.state.selectingText(e),x&&Wl(n,L,x,K,e))return;L==1?x?Kl(n,x,K,e):Ye(e)==w.scroller&&oe(e):L==2?(x&&Vo(n.doc,x),setTimeout(function(){return w.input.focus()},20)):L==3&&(I?n.display.input.onContextMenu(e):no(n))}function Wl(e,n,w,x,L){var K="Click";return x=="double"?K="Double"+K:x=="triple"&&(K="Triple"+K),K=(n==1?"Left":n==2?"Middle":"Right")+K,Bo(e,Gs(K,L),L,function(Z){if(typeof Z=="string"&&(Z=Fo[Z]),!Z)return!1;var ae=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ae=Z(e,w)!=ve}finally{e.state.suppressEdits=!1}return ae})}function zl(e,n,w){var x=e.getOption("configureMouse"),L=x?x(e,n,w):{};if(L.unit==null){var K=h?w.shiftKey&&w.metaKey:w.altKey;L.unit=K?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(L.extend==null||e.doc.extend)&&(L.extend=e.doc.extend||w.shiftKey),L.addNew==null&&(L.addNew=s?w.metaKey:w.ctrlKey),L.moveOnDrag==null&&(L.moveOnDrag=!(s?w.altKey:w.ctrlKey)),L}function Kl(e,n,w,x){M?setTimeout(W(Li,e),0):e.curOp.focus=k();var L=zl(e,w,x),K=e.doc.sel,Z;e.options.dragDrop&&Mt&&!e.isReadOnly()&&w=="single"&&(Z=K.contains(n))>-1&&(In((Z=K.ranges[Z]).from(),n)<0||n.xRel>0)&&(In(Z.to(),n)>0||n.xRel<0)?Gl(e,x,n,L):Vl(e,x,n,L)}function Gl(e,n,w,x){var L=e.display,K=!1,Z=fa(e,function(ce){E&&(L.scroller.draggable=!1),e.state.draggingText=!1,Et(L.wrapper.ownerDocument,"mouseup",Z),Et(L.wrapper.ownerDocument,"mousemove",ae),Et(L.scroller,"dragstart",ie),Et(L.scroller,"drop",Z),K||(oe(ce),x.addNew||Vo(e.doc,w,null,null,x.extend),E&&!b||M&&c==9?setTimeout(function(){L.wrapper.ownerDocument.body.focus({preventScroll:!0}),L.input.focus()},20):L.input.focus())}),ae=function(ce){K=K||Math.abs(n.clientX-ce.clientX)+Math.abs(n.clientY-ce.clientY)>=10},ie=function(){return K=!0};E&&(L.scroller.draggable=!0),e.state.draggingText=Z,Z.copy=!x.moveOnDrag,L.scroller.dragDrop&&L.scroller.dragDrop(),De(L.wrapper.ownerDocument,"mouseup",Z),De(L.wrapper.ownerDocument,"mousemove",ae),De(L.scroller,"dragstart",ie),De(L.scroller,"drop",Z),no(e),setTimeout(function(){return L.input.focus()},20)}function tl(e,n,w){if(w=="char")return new Wr(n,n);if(w=="word")return e.findWordAt(n);if(w=="line")return new Wr(Zt(n.line,0),U(e.doc,Zt(n.line+1,0)));var x=w(e,n);return new Wr(x.from,x.to)}function Vl(e,n,w,x){var L=e.display,K=e.doc;oe(n);var Z,ae,ie=K.sel,ce=ie.ranges;if(x.addNew&&!x.extend?(ae=K.sel.contains(w),ae>-1?Z=ce[ae]:Z=new Wr(w,w)):(Z=K.sel.primary(),ae=K.sel.primIndex),x.unit=="rectangle")x.addNew||(Z=new Wr(w,w)),w=_a(e,n,!0,!0),ae=-1;else{var Be=tl(e,w,x.unit);x.extend?Z=as(Z,Be.anchor,Be.head,x.extend):Z=Be}x.addNew?ae==-1?(ae=ce.length,Ga(K,Cr(e,ce.concat([Z]),ae),{scroll:!1,origin:"*mouse"})):ce.length>1&&ce[ae].empty()&&x.unit=="char"&&!x.extend?(Ga(K,Cr(e,ce.slice(0,ae).concat(ce.slice(ae+1)),0),{scroll:!1,origin:"*mouse"}),ie=K.sel):is(K,ae,Z,be):(ae=0,Ga(K,new Wa([Z],0),be),ie=K.sel);var qe=w;function At(Un){if(In(qe,Un)==0)return;if(qe=Un,x.unit=="rectangle"){for(var er=[],xr=e.options.tabSize,dr=Y(kn(K,w.line).text,w.ch,xr),kr=Y(kn(K,Un.line).text,Un.ch,xr),la=Math.min(dr,kr),Fa=Math.max(dr,kr),ga=Math.min(w.line,Un.line),ii=Math.min(e.lastLine(),Math.max(w.line,Un.line));ga<=ii;ga++){var ti=kn(K,ga).text,Aa=Re(ti,la,xr);la==Fa?er.push(new Wr(Zt(ga,Aa),Zt(ga,Aa))):ti.length>Aa&&er.push(new Wr(Zt(ga,Aa),Zt(ga,Re(ti,Fa,xr))))}er.length||er.push(new Wr(w,w)),Ga(K,Cr(e,ie.ranges.slice(0,ae).concat(er),ae),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Un)}else{var ni=Z,za=tl(e,Un,x.unit),ka=ni.anchor,Ma;In(za.anchor,ka)>0?(Ma=za.head,ka=Sr(ni.from(),za.anchor)):(Ma=za.anchor,ka=_r(ni.to(),za.head));var Ea=ie.ranges.slice(0);Ea[ae]=Xl(e,new Wr(U(K,ka),Ma)),Ga(K,Cr(e,Ea,ae),be)}}var yt=L.wrapper.getBoundingClientRect(),hn=0;function xn(Un){var er=++hn,xr=_a(e,Un,!0,x.unit=="rectangle");if(!xr)return;if(In(xr,qe)!=0){e.curOp.focus=k(),At(xr);var dr=ki(L,K);(xr.line>=dr.to||xr.lineyt.bottom?20:0;kr&&setTimeout(fa(e,function(){if(hn!=er)return;L.scroller.scrollTop+=kr,xn(Un)}),50)}}function Rn(Un){e.state.selectingText=!1,hn=Infinity,Un&&(oe(Un),L.input.focus()),Et(L.wrapper.ownerDocument,"mousemove",jn),Et(L.wrapper.ownerDocument,"mouseup",Qn),K.history.lastSelOrigin=null}var jn=fa(e,function(Un){Un.buttons===0||!Ue(Un)?Rn(Un):xn(Un)}),Qn=fa(e,Rn);e.state.selectingText=Qn,De(L.wrapper.ownerDocument,"mousemove",jn),De(L.wrapper.ownerDocument,"mouseup",Qn)}function Xl(e,n){var w=n.anchor,x=n.head,L=kn(e.doc,w.line);if(In(w,x)==0&&w.sticky==x.sticky)return n;var K=dn(L);if(!K)return n;var Z=It(K,w.ch,w.sticky),ae=K[Z];if(ae.from!=w.ch&&ae.to!=w.ch)return n;var ie=Z+(ae.from==w.ch==(ae.level!=1)?0:1);if(ie==0||ie==K.length)return n;var ce;if(x.line!=w.line)ce=(x.line-w.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Be=It(K,x.ch,x.sticky),qe=Be-Z||(x.ch-w.ch)*(ae.level==1?-1:1);Be==ie-1||Be==ie?ce=qe<0:ce=qe>0}var At=K[ie+(ce?-1:0)],yt=ce==(At.level==1),hn=yt?At.from:At.to,xn=yt?"after":"before";return w.ch==hn&&w.sticky==xn?n:new Wr(new Zt(w.line,hn,xn),x)}function nl(e,n,w,x){var L,K;if(n.touches)L=n.touches[0].clientX,K=n.touches[0].clientY;else try{L=n.clientX,K=n.clientY}catch(At){return!1}if(L>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;x&&oe(n);var Z=e.display,ae=Z.lineDiv.getBoundingClientRect();if(K>ae.bottom||!xe(e,w))return pe(n);K-=ae.top-Z.viewOffset;for(var ie=0;ie=L){var Be=Nr(e.doc,K),qe=e.display.gutterSpecs[ie];return Je(e,w,e,Be,qe.className,n),pe(n)}}}function cs(e,n){return nl(e,n,"gutterClick",!0)}function rl(e,n){if(Ca(e.display,n)||Yl(e,n))return;if(ft(e,n,"contextmenu"))return;I||e.display.input.onContextMenu(n)}function Yl(e,n){return xe(e,"gutterContextMenu")?nl(e,n,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yr(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var n=e.optionHandlers;function w(x,L,K,Z){e.defaults[x]=L,K&&(n[x]=Z?function(ae,ie,ce){ce!=wo&&K(ae,ie,ce)}:K)}e.defineOption=w,e.Init=wo,w("value","",function(x,L){return x.setValue(L)},!0),w("mode",null,function(x,L){x.doc.modeOption=L,Da(x)},!0),w("indentUnit",2,Da,!0),w("indentWithTabs",!1),w("smartIndent",!0),w("tabSize",4,function(x){Xa(x),yr(x),Qr(x)},!0),w("lineSeparator",null,function(x,L){if(x.doc.lineSep=L,!L)return;var K=[],Z=x.doc.first;x.doc.iter(function(ie){for(var ce=0;;){var Be=ie.text.indexOf(L,ce);if(Be==-1)break;ce=Be+L.length,K.push(Zt(Z,Be))}Z++});for(var ae=K.length-1;ae>=0;ae--)Eo(x.doc,L,K[ae],Zt(K[ae].line,K[ae].ch+L.length))}),w("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,L,K){x.state.specialChars=new RegExp(L.source+(L.test(" ")?"":"| "),"g"),K!=wo&&x.refresh()}),w("specialCharPlaceholder",Ve,function(x){return x.refresh()},!0),w("electricChars",!0),w("inputStyle",t?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),w("spellcheck",!1,function(x,L){return x.getInputField().spellcheck=L},!0),w("autocorrect",!1,function(x,L){return x.getInputField().autocorrect=L},!0),w("autocapitalize",!1,function(x,L){return x.getInputField().autocapitalize=L},!0),w("rtlMoveVisually",!y),w("wholeLineUpdateBefore",!0),w("theme","default",function(x){al(x),di(x)},!0),w("keyMap","default",function(x,L,K){var Z=Jo(L),ae=K!=wo&&Jo(K);ae&&ae.detach&&ae.detach(x,Z),Z.attach&&Z.attach(x,ae||null)}),w("extraKeys",null),w("configureMouse",null),w("lineWrapping",!1,Jl,!0),w("gutters",[],function(x,L){x.display.gutterSpecs=Ua(L,x.options.lineNumbers),di(x)},!0),w("fixedGutter",!0,function(x,L){x.display.gutters.style.left=L?ha(x.display)+"px":"0",x.refresh()},!0),w("coverGutterNextToScrollbar",!1,function(x){return mi(x)},!0),w("scrollbarStyle","native",function(x){Qi(x),mi(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),w("lineNumbers",!1,function(x,L){x.display.gutterSpecs=Ua(x.options.gutters,L),di(x)},!0),w("firstLineNumber",1,di,!0),w("lineNumberFormatter",function(x){return x},di,!0),w("showCursorWhenSelecting",!1,Jr,!0),w("resetSelectionOnContextMenu",!0),w("lineWiseCopyCut",!0),w("pasteLinesPerSelection",!0),w("selectionsMayTouch",!1),w("readOnly",!1,function(x,L){L=="nocursor"&&(wi(x),x.display.input.blur()),x.display.input.readOnlyChanged(L)}),w("screenReaderLabel",null,function(x,L){L=L===""?null:L,x.display.input.screenReaderLabelChanged(L)}),w("disableInput",!1,function(x,L){L||x.display.input.reset()},!0),w("dragDrop",!0,Ql),w("allowDropFileTypes",null),w("cursorBlinkRate",530),w("cursorScrollMargin",0),w("cursorHeight",1,Jr,!0),w("singleCursorHeightPerLine",!0,Jr,!0),w("workTime",100),w("workDelay",100),w("flattenSpans",!0,Xa,!0),w("addModeClass",!1,Xa,!0),w("pollInterval",100),w("undoDepth",200,function(x,L){return x.doc.history.undoDepth=L}),w("historyEventDelay",1250),w("viewportMargin",10,function(x){return x.refresh()},!0),w("maxHighlightLength",1e4,Xa,!0),w("moveInputWithCursor",!0,function(x,L){L||x.display.input.resetPosition()}),w("tabindex",null,function(x,L){return x.display.input.getField().tabIndex=L||""}),w("autofocus",null),w("direction","ltr",function(x,L){return x.doc.setDirection(L)},!0),w("phrases",null)}function Ql(e,n,w){var x=w&&w!=wo;if(!n!=!x){var L=e.display.dragFunctions,K=n?De:Et;K(e.display.scroller,"dragstart",L.start),K(e.display.scroller,"dragenter",L.enter),K(e.display.scroller,"dragover",L.over),K(e.display.scroller,"dragleave",L.leave),K(e.display.scroller,"drop",L.drop)}}function Jl(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(f(e.display.wrapper,"CodeMirror-wrap"),jt(e)),Na(e),Qr(e),yr(e),setTimeout(function(){return mi(e)},100)}function ma(e,n){var w=this;if(!(this instanceof ma))return new ma(e,n);this.options=n=n?z(n):{},z(il,n,!1);var x=n.value;typeof x=="string"?x=new ei(x,n.mode,null,n.lineSeparator,n.direction):n.mode&&(x.modeOption=n.mode),this.doc=x;var L=new ma.inputStyles[n.inputStyle](this),K=this.display=new Ui(e,x,L,n);K.wrapper.CodeMirror=this,al(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},n.autofocus&&!t&&K.input.focus(),M&&c<11&&setTimeout(function(){return w.display.input.reset(!0)},20),Zl(this),Al(),ui(this),this.curOp.forceUpdate=!0,gs(this,x),n.autofocus&&!t||this.hasFocus()?setTimeout(function(){w.hasFocus()&&!w.state.focused&&li(w)},20):wi(this);for(var Z in qo)qo.hasOwnProperty(Z)&&qo[Z](this,n[Z],wo);da(this),n.finishInit&&n.finishInit(this);for(var ae=0;ae20*20}De(n.scroller,"touchstart",function(ie){if(!ft(e,ie)&&!K(ie)&&!cs(e,ie)){n.input.ensurePolled(),clearTimeout(w);var ce=+new Date;n.activeTouch={start:ce,moved:!1,prev:ce-x.end<=300?x:null},ie.touches.length==1&&(n.activeTouch.left=ie.touches[0].pageX,n.activeTouch.top=ie.touches[0].pageY)}}),De(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),De(n.scroller,"touchend",function(ie){var ce=n.activeTouch;if(ce&&!Ca(n,ie)&&ce.left!=null&&!ce.moved&&new Date-ce.start<300){var Be=e.coordsChar(n.activeTouch,"page"),qe;!ce.prev||Z(ce,ce.prev)?qe=new Wr(Be,Be):!ce.prev.prev||Z(ce,ce.prev.prev)?qe=e.findWordAt(Be):qe=new Wr(Zt(Be.line,0),U(e.doc,Zt(Be.line+1,0))),e.setSelection(qe.anchor,qe.head),e.focus(),oe(ie)}L()}),De(n.scroller,"touchcancel",L),De(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Mi(e,n.scroller.scrollTop),La(e,n.scroller.scrollLeft,!0),Je(e,"scroll",e))}),De(n.scroller,"mousewheel",function(ie){return Hi(e,ie)}),De(n.scroller,"DOMMouseScroll",function(ie){return Hi(e,ie)}),De(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(ie){ft(e,ie)||_e(ie)},over:function(ie){ft(e,ie)||(Dl(e,ie),_e(ie))},start:function(ie){return Ol(e,ie)},drop:fa(e,Tl),leave:function(ie){ft(e,ie)||Hs(e)}};var ae=n.input.getField();De(ae,"keyup",function(ie){return Zs.call(e,ie)}),De(ae,"keydown",fa(e,Js)),De(ae,"keypress",fa(e,qs)),De(ae,"focus",function(ie){return li(e,ie)}),De(ae,"blur",function(ie){return wi(e,ie)})}var hs=[];ma.defineInitHook=function(e){return hs.push(e)};function zo(e,n,w,x){var L=e.doc,K;w==null&&(w="add"),w=="smart"&&(L.mode.indent?K=Dn(e,n).state:w="prev");var Z=e.options.tabSize,ae=kn(L,n),ie=Y(ae.text,null,Z);ae.stateAfter&&(ae.stateAfter=null);var ce=ae.text.match(/^\s*/)[0],Be;if(!x&&!/\S/.test(ae.text))Be=0,w="not";else if(w=="smart"&&(Be=L.mode.indent(K,ae.text.slice(ce.length),ae.text),Be==ve||Be>150)){if(!x)return;w="prev"}w=="prev"?n>L.first?Be=Y(kn(L,n-1).text,null,Z):Be=0:w=="add"?Be=ie+e.options.indentUnit:w=="subtract"?Be=ie-e.options.indentUnit:typeof w=="number"&&(Be=ie+w),Be=Math.max(0,Be);var qe="",At=0;if(e.options.indentWithTabs)for(var yt=Math.floor(Be/Z);yt;--yt)At+=Z,qe+=" ";if(AtZ,ie=St(n),ce=null;if(ae&&x.ranges.length>1)if(_i&&_i.text.join(` -`)==n){if(x.ranges.length%_i.text.length==0){ce=[];for(var Be=0;Be<_i.text.length;Be++)ce.push(K.splitLines(_i.text[Be]))}}else ie.length==x.ranges.length&&e.options.pasteLinesPerSelection&&(ce=Ot(ie,function(jn){return[jn]}));for(var qe=e.curOp.updateInput,At=x.ranges.length-1;At>=0;At--){var yt=x.ranges[At],hn=yt.from(),xn=yt.to();yt.empty()&&(w&&w>0?hn=Zt(hn.line,hn.ch-w):e.state.overwrite&&!ae?xn=Zt(xn.line,Math.min(kn(K,xn.line).text.length,xn.ch+Ze(ie).length)):ae&&_i&&_i.lineWise&&_i.text.join(` + height: `+(n.bottom-n.top+nt(e)+w.barHeight)+`px; + left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(K),K.scrollIntoView(L),e.display.lineSpace.removeChild(K)}}function Do(e,n,w,x){x==null&&(x=0);var L;!e.options.lineWrapping&&n==w&&(n=n.ch?Zt(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n,w=n.sticky=="before"?Zt(n.line,n.ch+1,"before"):n);for(var K=0;K<5;K++){var Z=!1,ae=nr(e,n),ie=!w||w==n?ae:nr(e,w);L={left:Math.min(ae.left,ie.left),top:Math.min(ae.top,ie.top)-x,right:Math.max(ae.left,ie.left),bottom:Math.max(ae.bottom,ie.bottom)+x};var ce=Oi(e,L),Be=e.doc.scrollTop,qe=e.doc.scrollLeft;if(ce.scrollTop!=null&&(Mi(e,ce.scrollTop),Math.abs(e.doc.scrollTop-Be)>1&&(Z=!0)),ce.scrollLeft!=null&&(La(e,ce.scrollLeft),Math.abs(e.doc.scrollLeft-qe)>1&&(Z=!0)),!Z)break}return L}function Gi(e,n){var w=Oi(e,n);w.scrollTop!=null&&Mi(e,w.scrollTop),w.scrollLeft!=null&&La(e,w.scrollLeft)}function Oi(e,n){var w=e.display,x=kr(e.display);n.top<0&&(n.top=0);var L=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:w.scroller.scrollTop,K=se(e),Z={};n.bottom-n.top>K&&(n.bottom=n.top+K);var ae=e.doc.height+Ae(w),ie=n.topae-x;if(n.topL+K){var Be=Math.min(n.top,(ce?ae:n.bottom)-K);Be!=L&&(Z.scrollTop=Be)}var qe=e.options.fixedGutter?0:w.gutters.offsetWidth,At=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:w.scroller.scrollLeft-qe,yt=Ne(e)-w.gutters.offsetWidth,hn=n.right-n.left>yt;return hn&&(n.right=n.left+yt),n.left<10?Z.scrollLeft=0:n.leftyt+At-3&&(Z.scrollLeft=n.right+(hn?0:10)-yt),Z}function Vi(e,n){if(n==null)return;Xi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n}function yi(e){Xi(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Di(e,n,w){(n!=null||w!=null)&&Xi(e),n!=null&&(e.curOp.scrollLeft=n),w!=null&&(e.curOp.scrollTop=w)}function ho(e,n){Xi(e),e.curOp.scrollToPos=n}function Xi(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var w=gn(e,n.from),x=gn(e,n.to);Ai(e,w,x,n.margin)}}function Ai(e,n,w,x){var L=Oi(e,{left:Math.min(n.left,w.left),top:Math.min(n.top,w.top)-x,right:Math.max(n.right,w.right),bottom:Math.max(n.bottom,w.bottom)+x});Di(e,L.scrollLeft,L.scrollTop)}function Mi(e,n){if(Math.abs(e.doc.scrollTop-n)<2)return;R||ji(e,{top:n}),bi(e,n,!0),R&&ji(e),Ni(e,100)}function bi(e,n,w){if(n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),e.display.scroller.scrollTop==n&&!w)return;e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n)}function La(e,n,w,x){if(n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(w?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!x)return;e.doc.scrollLeft=n,Ir(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n)}function fi(e){var n=e.display,w=n.gutters.offsetWidth,x=Math.round(e.doc.height+Ae(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?w:0,docHeight:x,scrollHeight:x+nt(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:w}}var pi=function(e,n,w){this.cm=w;var x=this.vert=d("div",[d("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),L=this.horiz=d("div",[d("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=L.tabIndex=-1,e(x),e(L),De(x,"scroll",function(){x.clientHeight&&n(x.scrollTop,"vertical")}),De(L,"scroll",function(){L.clientWidth&&n(L.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,w=e.scrollHeight>e.clientHeight+1,x=e.nativeBarWidth;if(w){this.vert.style.display="block",this.vert.style.bottom=n?x+"px":"0";var L=e.viewHeight-(n?x:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+L)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=w?x+"px":"0",this.horiz.style.left=e.barLeft+"px";var K=e.viewWidth-e.barLeft-(w?x:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+K)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:w?x:0,bottom:n?x:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=s&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},pi.prototype.enableZeroWidthBar=function(e,n,w){e.style.pointerEvents="auto";function x(){var L=e.getBoundingClientRect(),K=w=="vert"?document.elementFromPoint(L.right-1,(L.top+L.bottom)/2):document.elementFromPoint((L.right+L.left)/2,L.bottom-1);K!=e?e.style.pointerEvents="none":n.set(1e3,x)}n.set(1e3,x)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ei=function(){};Ei.prototype.update=function(){return{bottom:0,right:0}},Ei.prototype.setScrollLeft=function(){},Ei.prototype.setScrollTop=function(){},Ei.prototype.clear=function(){};function mi(e,n){n||(n=fi(e));var w=e.display.barWidth,x=e.display.barHeight;Yi(e,n);for(var L=0;L<4&&w!=e.display.barWidth||x!=e.display.barHeight;L++)w!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,fi(e)),w=e.display.barWidth,x=e.display.barHeight}function Yi(e,n){var w=e.display,x=w.scrollbars.update(n);w.sizer.style.paddingRight=(w.barWidth=x.right)+"px",w.sizer.style.paddingBottom=(w.barHeight=x.bottom)+"px",w.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(w.scrollbarFiller.style.display="block",w.scrollbarFiller.style.height=x.bottom+"px",w.scrollbarFiller.style.width=x.right+"px"):w.scrollbarFiller.style.display="",x.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(w.gutterFiller.style.display="block",w.gutterFiller.style.height=x.bottom+"px",w.gutterFiller.style.width=n.gutterWidth+"px"):w.gutterFiller.style.display=""}var $i={native:pi,null:Ei};function Qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&f(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),De(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,w){w=="horizontal"?La(e,n):Mi(e,n)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Ii=0;function ui(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ii},Pn(e.curOp)}function xi(e){var n=e.curOp;n&&Nn(n,function(w){for(var x=0;x=w.viewTo)||w.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new qa(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mo(e){e.updatedDisplay=e.mustUpdate&&Ci(e.cm,e.update)}function fo(e){var n=e.cm,w=n.display;e.updatedDisplay&&Si(n),e.barMeasure=fi(n),w.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=Fe(n,w.maxLine,w.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(w.scroller.clientWidth,w.sizer.offsetLeft+e.adjustWidthTo+nt(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,w.sizer.offsetLeft+e.adjustWidthTo-Ne(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=w.input.prepareSelection())}function ao(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var w=+new Date+e.options.workTime,x=On(e,n.highlightFrontier),L=[];n.iter(x.line,Math.min(n.first+n.size,e.display.viewTo+500),function(K){if(x.line>=e.display.viewFrom){var Z=K.styles,ae=K.text.length>e.options.maxHighlightLength?Mn(n.mode,x.state):null,ie=Qe(e,K,x,!0);ae&&(x.state=ae),K.styles=ie.styles;var ce=K.styleClasses,Be=ie.classes;Be?K.styleClasses=Be:ce&&(K.styleClasses=null);for(var qe=!Z||Z.length!=K.styles.length||ce!=Be&&(!ce||!Be||ce.bgClass!=Be.bgClass||ce.textClass!=Be.textClass),At=0;!qe&&Atw)return Ni(e,e.options.workDelay),!0}),n.highlightFrontier=x.line,n.modeFrontier=Math.max(n.modeFrontier,x.line),L.length&&Ha(e,function(){for(var K=0;K=w.viewFrom&&n.visible.to<=w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>=w.viewTo)&&w.renderedView==w.view&&si(e)==0)return!1;da(e)&&(aa(e),n.dims=ur(e));var L=x.first+x.size,K=Math.max(n.visible.from-e.options.viewportMargin,x.first),Z=Math.min(L,n.visible.to+e.options.viewportMargin);w.viewFromZ&&w.viewTo-Z<20&&(Z=Math.min(L,w.viewTo)),bn&&(K=Gt(e.doc,K),Z=Yt(e.doc,Z));var ae=K!=w.viewFrom||Z!=w.viewTo||w.lastWrapHeight!=n.wrapperHeight||w.lastWrapWidth!=n.wrapperWidth;hi(e,K,Z),w.viewOffset=xn(kn(e.doc,w.viewFrom)),e.display.mover.style.top=w.viewOffset+"px";var ie=si(e);if(!ae&&ie==0&&!n.force&&w.renderedView==w.view&&(w.updateLineNumbers==null||w.updateLineNumbers>=w.viewTo))return!1;var ce=oo(e);return ie>4&&(w.lineDiv.style.display="none"),vo(e,w.updateLineNumbers,n.dims),ie>4&&(w.lineDiv.style.display=""),w.renderedView=w.view,so(ce),o(w.cursorDiv),o(w.selectionDiv),w.gutters.style.height=w.sizer.style.minHeight=0,ae&&(w.lastWrapHeight=n.wrapperHeight,w.lastWrapWidth=n.wrapperWidth,Ni(e,400)),w.updateLineNumbers=null,!0}function Ji(e,n){for(var w=n.viewport,x=!0;;x=!1){if(!x||!e.options.lineWrapping||n.oldDisplayWidth==Ne(e)){if(w&&w.top!=null&&(w={top:Math.min(e.doc.height+Ae(e.display)-se(e),w.top)}),n.visible=ki(e.display,e.doc,w),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else x&&(n.visible=ki(e.display,e.doc,w));if(!Ci(e,n))break;Si(e);var L=fi(e);Jr(e),mi(e,L),Vr(e,L),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,n){var w=new qa(e,n);if(Ci(e,w)){Si(e),Ji(e,w);var x=fi(e);Jr(e),mi(e,x),Vr(e,x),w.finish()}}function vo(e,n,w){var x=e.display,L=e.options.lineNumbers,K=x.lineDiv,Z=K.firstChild;function ae(hn){var Cn=hn.nextSibling;return E&&s&&e.display.currentWheelTarget==hn?hn.style.display="none":hn.parentNode.removeChild(hn),Cn}for(var ie=x.view,ce=x.viewFrom,Be=0;Be-1&&(yt=!1),Nr(e,qe,ce,w)),yt&&(o(qe.lineNumber),qe.lineNumber.appendChild(document.createTextNode(ca(e.options,ce)))),Z=qe.node.nextSibling}ce+=qe.size}for(;Z;)Z=ae(Z)}function Zi(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px"}function Vr(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+nt(e)+"px"}function Ir(e){var n=e.display,w=n.view;if(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))return;for(var x=ha(n)-n.scroller.scrollLeft+e.doc.scrollLeft,L=n.gutters.offsetWidth,K=x+"px",Z=0;ZZ.clientWidth,ie=Z.scrollHeight>Z.clientHeight;if(!(x&&ae||L&&ie))return;if(L&&s&&E){e:for(var ce=n.target,Be=K.view;ce!=Z;ce=ce.parentNode)for(var qe=0;qe=0&&In(e,x.to())<=0)return w}return-1};var Kr=function(e,n){this.anchor=e,this.head=n};Kr.prototype.from=function(){return wr(this.anchor,this.head)},Kr.prototype.to=function(){return Cr(this.anchor,this.head)},Kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(e,n,w){var x=e&&e.options.selectionsMayTouch,L=n[w];n.sort(function(At,yt){return In(At.from(),yt.from())}),w=q(n,L);for(var K=1;K0:ie>=0){var ce=wr(ae.from(),Z.from()),Be=Cr(ae.to(),Z.to()),qe=ae.empty()?Z.from()==Z.head:ae.from()==ae.head;K<=w&&--w,n.splice(--K,2,new Kr(qe?Be:ce,qe?ce:Be))}}return new Wa(n,w)}function Fn(e,n){return new Wa([new Kr(e,n||e)],0)}function rr(e){return e.text?Zt(e.from.line+e.text.length-1,Ze(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Rr(e,n){if(In(e,n.from)<0)return e;if(In(e,n.to)<=0)return rr(n);var w=e.line+n.text.length-(n.to.line-n.from.line)-1,x=e.ch;return e.line==n.to.line&&(x+=rr(n).ch-n.to.ch),Zt(w,x)}function sa(e,n){for(var w=[],x=0;x1&&e.remove(ae.line+1,hn-1),e.insert(ae.line+1,jn)}Bn(e,"change",e,n)}function wa(e,n,w){function x(L,K,Z){if(L.linked)for(var ae=0;ae1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ze(e.done)}function Es(e,n,w,x){var L=e.history;L.undone.length=0;var K=+new Date,Z,ae;if((L.lastOp==x||L.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&L.lastModTime>K-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(Z=pl(L,L.lastOp==x)))ae=Ze(Z.changes),In(n.from,n.to)==0&&In(n.from,ae.to)==0?ae.to=rr(n):Z.changes.push(rs(e,n));else{var ie=Ze(L.done);for((!ie||!ie.ranges)&&Go(e.sel,L.done),Z={changes:[rs(e,n)],generation:L.generation},L.done.push(Z);L.done.length>L.undoDepth;)L.done.shift(),L.done[0].ranges||L.done.shift()}L.done.push(w),L.generation=++L.maxGeneration,L.lastModTime=L.lastSelTime=K,L.lastOp=L.lastSelOp=x,L.lastOrigin=L.lastSelOrigin=n.origin,ae||Je(e,"historyAdded")}function ml(e,n,w,x){var L=n.charAt(0);return L=="*"||L=="+"&&w.ranges.length==x.ranges.length&&w.somethingSelected()==x.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,n,w,x){var L=e.history,K=x&&x.origin;w==L.lastSelOp||K&&L.lastSelOrigin==K&&(L.lastModTime==L.lastSelTime&&L.lastOrigin==K||ml(e,K,Ze(L.done),n))?L.done[L.done.length-1]=n:Go(n,L.done),L.lastSelTime=+new Date,L.lastSelOrigin=K,L.lastSelOp=w,x&&x.clearRedo!==!1&&bs(L.undone)}function Go(e,n){var w=Ze(n);w&&w.ranges&&w.equals(e)||n.push(e)}function xs(e,n,w,x){var L=n["spans_"+e.id],K=0;e.iter(Math.max(e.first,w),Math.min(e.first+e.size,x),function(Z){Z.markedSpans&&((L||(L=n["spans_"+e.id]={}))[K]=Z.markedSpans),++K})}function gl(e){if(!e)return null;for(var n,w=0;w-1&&(Ze(ae)[qe]=ce[qe],delete ce[qe]))}}return x}function as(e,n,w,x){if(x){var L=e.anchor;if(w){var K=In(n,L)<0;K!=In(w,L)<0?(L=n,n=w):K!=In(n,w)<0&&(n=w)}return new Kr(L,n)}else return new Kr(w||n,n)}function Vo(e,n,w,x,L){L==null&&(L=e.cm&&(e.cm.display.shift||e.extend)),Ga(e,new Wa([as(e.sel.primary(),n,w,L)],0),x)}function _s(e,n,w){for(var x=[],L=e.cm&&(e.cm.display.shift||e.extend),K=0;K=n.ch:ae.to>n.ch))){if(L&&(Je(ie,"beforeCursorEnter"),ie.explicitlyCleared))if(K.markedSpans){--Z;continue}else break;if(!ie.atomic)continue;if(w){var qe=ie.find(x<0?1:-1),At=void 0;if((x<0?Be:ce)&&(qe=As(e,qe,-x,qe&&qe.line==n.line?K:null)),qe&&qe.line==n.line&&(At=In(qe,w))&&(x<0?At<0:At>0))return yo(e,qe,n,x,L)}var yt=ie.find(x<0?-1:1);return(x<0?ce:Be)&&(yt=As(e,yt,x,yt.line==n.line?K:null)),yt?yo(e,yt,n,x,L):null}}return n}function Yo(e,n,w,x,L){var K=x||1,Z=yo(e,n,w,K,L)||!L&&yo(e,n,w,K,!0)||yo(e,n,w,-K,L)||!L&&yo(e,n,w,-K,!0);return Z||(e.cantEdit=!0,Zt(e.first,0))}function As(e,n,w,x){return w<0&&n.ch==0?n.line>e.first?U(e,Zt(n.line-1)):null:w>0&&n.ch==(x||kn(e,n.line)).text.length?n.line=0;--L)Ps(e,{from:x[L].from,to:x[L].to,text:L?[""]:n.text,origin:n.origin});else Ps(e,n)}function Ps(e,n){if(n.text.length==1&&n.text[0]==""&&In(n.from,n.to)==0)return;var w=sa(e,n);Es(e,n,w,e.cm?e.cm.curOp.id:NaN),Ro(e,n,w,pr(e,n));var x=[];wa(e,function(L,K){!K&&q(x,L.history)==-1&&(Ns(L.history,n),x.push(L.history)),Ro(L,n,null,pr(L,n))})}function $o(e,n,w){var x=e.cm&&e.cm.state.suppressEdits;if(x&&!w)return;for(var L=e.history,K,Z=e.sel,ae=n=="undo"?L.done:L.undone,ie=n=="undo"?L.undone:L.done,ce=0;ce=0;--yt){var hn=At(yt);if(hn)return hn.v}}function Ls(e,n){if(n==0)return;if(e.first+=n,e.sel=new Wa(Ot(e.sel.ranges,function(L){return new Kr(Zt(L.anchor.line+n,L.anchor.ch),Zt(L.head.line+n,L.head.ch))}),e.sel.primIndex),e.cm){Qr(e.cm,e.first,e.first-n,n);for(var w=e.cm.display,x=w.viewFrom;xe.lastLine())return;if(n.from.lineK&&(n={from:n.from,to:Zt(K,kn(e,K).text.length),text:[n.text[0]],origin:n.origin}),n.removed=Wr(e,n.from,n.to),w||(w=sa(e,n)),e.cm?El(e.cm,n,x):Wi(e,n,x),Xo(e,w,le),e.cantEdit&&Yo(e,Zt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,n,w){var x=e.doc,L=e.display,K=n.from,Z=n.to,ae=!1,ie=K.line;e.options.lineWrapping||(ie=mr(vt(kn(x,K.line))),x.iter(ie,Z.line+1,function(yt){if(yt==L.maxLine)return ae=!0,!0})),x.sel.contains(n.from,n.to)>-1&&Me(e),Wi(x,n,w,Qa(e)),e.options.lineWrapping||(x.iter(ie,K.line+n.text.length,function(yt){var hn=Jn(yt);hn>L.maxLineLength&&(L.maxLine=yt,L.maxLineLength=hn,L.maxLineChanged=!0,ae=!1)}),ae&&(e.curOp.updateMaxLine=!0)),zn(x,K.line),Ni(e,400);var ce=n.text.length-(Z.line-K.line)-1;n.full?Qr(e):K.line==Z.line&&n.text.length==1&&!gi(e.doc,n)?Zr(e,K.line,"text"):Qr(e,K.line,Z.line+1,ce);var Be=xe(e,"changes"),qe=xe(e,"change");if(qe||Be){var At={from:K,to:Z,text:n.text,removed:n.removed,origin:n.origin};qe&&Bn(e,"change",e,At),Be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(At)}e.display.selForContextMenu=null}function Eo(e,n,w,x,L){var K;x||(x=w),In(x,w)<0&&(K=[x,w],w=K[0],x=K[1]),typeof n=="string"&&(n=e.splitLines(n)),bo(e,{from:w,to:x,text:n,origin:L})}function ks(e,n,w,x){w1||!(this.children[0]instanceof Lo))){var ae=[];this.collapse(ae),this.children=[new Lo(ae)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n50){for(var Z=L.lines.length%25+25,ae=Z;ae10);e.parent.maybeSpill()},iterN:function(e,n,w){for(var x=0;xe.display.maxLineLength&&(e.display.maxLine=ce,e.display.maxLineLength=Be,e.display.maxLineChanged=!0)}x!=null&&e&&this.collapsed&&Qr(e,x,L+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Bn(e,"markerCleared",e,this,x,L),n&&xi(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var w,x,L=0;L0||Z==0&&K.clearWhenEmpty!==!1)return K;if(K.replacedWith&&(K.collapsed=!0,K.widgetNode=A("span",[K.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||K.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(K.widgetNode.insertLeft=!0)),K.collapsed){if(kt(e,n.line,n,w,K)||n.line!=w.line&&kt(e,w.line,n,w,K))throw new Error("Inserting collapsed marker partially overlapping an existing one");vr()}K.addToHistory&&Es(e,{from:n,to:w,origin:"markText"},e.sel,NaN);var ae=n.line,ie=e.cm,ce;if(e.iter(ae,w.line+1,function(qe){ie&&K.collapsed&&!ie.options.lineWrapping&&vt(qe)==ie.display.maxLine&&(ce=!0),K.collapsed&&ae!=n.line&&Pr(qe,0),dr(qe,new Xn(K,ae==n.line?n.ch:null,ae==w.line?w.ch:null)),++ae}),K.collapsed&&e.iter(n.line,w.line+1,function(qe){wt(e,qe)&&Pr(qe,0)}),K.clearOnEnter&&De(K,"beforeCursorEnter",function(){return K.clear()}),K.readOnly&&(Hn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),K.collapsed&&(K.id=++Us,K.atomic=!0),ie){if(ce&&(ie.curOp.updateMaxLine=!0),K.collapsed)Qr(ie,n.line,w.line+1);else if(K.className||K.startStyle||K.endStyle||K.css||K.attributes||K.title)for(var Be=n.line;Be<=w.line;Be++)Zr(ie,Be,"text");K.atomic&&Os(ie.doc),Bn(ie,"markerAdded",ie,K)}return K}var No=function(e,n){this.markers=e,this.primary=n;for(var w=0;w=0;ie--)bo(this,x[ie]);ae?Ss(this,ae):this.cm&&yi(this.cm)}),undo:pa(function(){$o(this,"undo")}),redo:pa(function(){$o(this,"redo")}),undoSelection:pa(function(){$o(this,"undo",!0)}),redoSelection:pa(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,w=0,x=0;x=e.ch)&&n.push(L.marker.parent||L.marker)}return n},findMarks:function(e,n,w){e=U(this,e),n=U(this,n);var x=[],L=e.line;return this.iter(e.line,n.line+1,function(K){var Z=K.markedSpans;if(Z)for(var ae=0;ae=ie.to||ie.from==null&&L!=e.line||ie.from!=null&&L==n.line&&ie.from>=n.ch)&&(!w||w(ie.marker))&&x.push(ie.marker.parent||ie.marker)}++L}),x},getAllMarks:function(){var e=[];return this.iter(function(n){var w=n.markedSpans;if(w)for(var x=0;xe)return n=e,!0;e-=K,++w}),U(this,Zt(w,n))},indexFromPos:function(e){e=U(this,e);var n=e.ch;if(e.linen&&(n=e.from),e.to!=null&&e.to-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var Be=e.dataTransfer.getData("Text");if(Be){var qe;if(n.state.draggingText&&!n.state.draggingText.copy&&(qe=n.listSelections()),Xo(n.doc,Fn(w,w)),qe)for(var At=0;At=0;ae--)Eo(e.doc,"",x[ae].from,x[ae].to,"+delete");yi(e)})}function os(e,n,w){var x=dt(e.text,n+w,w);return x<0||x>e.text.length?null:x}function ss(e,n,w){var x=os(e,n.ch,w);return x==null?null:new Zt(n.line,x,w<0?"after":"before")}function ls(e,n,w,x,L){if(e){n.doc.direction=="rtl"&&(L=-L);var K=un(w,n.doc.direction);if(K){var Z=L<0?Ze(K):K[0],ae=L<0==(Z.level==1),ie=ae?"after":"before",ce;if(Z.level>0||n.doc.direction=="rtl"){var Be=He(n,w);ce=L<0?w.text.length-1:0;var qe=gt(n,Be,ce).top;ce=Rt(function(At){return gt(n,Be,At).top==qe},L<0==(Z.level==1)?Z.from:Z.to-1,ce),ie=="before"&&(ce=os(w,ce,1))}else ce=L<0?Z.to:Z.from;return new Zt(x,ce,ie)}}return new Zt(x,L<0?w.text.length:0,L<0?"before":"after")}function kl(e,n,w,x){var L=un(n,e.doc.direction);if(!L)return ss(n,w,x);w.ch>=n.text.length?(w.ch=n.text.length,w.sticky="before"):w.ch<=0&&(w.ch=0,w.sticky="after");var K=Lt(L,w.ch,w.sticky),Z=L[K];if(e.doc.direction=="ltr"&&Z.level%2==0&&(x>0?Z.to>w.ch:Z.from=Z.from&&At>=Be.begin)){var yt=qe?"before":"after";return new Zt(w.line,At,yt)}}var hn=function(jn,$n,Un){for(var qn=function(la,Fa){return Fa?new Zt(w.line,ae(la,1),"before"):new Zt(w.line,la,"after")};jn>=0&&jn0==(Er.level!=1),jr=cr?Un.begin:ae(Un.end,-1);if(Er.from<=jr&&jr0?Be.end:ae(Be.begin,-1);return Rn!=null&&!(x>0&&Rn==n.text.length)&&(Cn=hn(x>0?0:L.length-1,x,ce(Rn)),Cn)?Cn:null}var Fo={selectAll:Ms,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),le)},killLine:function(e){return _o(e,function(n){if(n.empty()){var w=kn(e.doc,n.head.line).text.length;return n.head.ch==w&&n.head.line0)L=new Zt(L.line,L.ch+1),e.replaceRange(K.charAt(L.ch-1)+K.charAt(L.ch-2),Zt(L.line,L.ch-2),L,"+transpose");else if(L.line>e.doc.first){var Z=kn(e.doc,L.line-1).text;Z&&(L=new Zt(L.line,1),e.replaceRange(K.charAt(0)+e.doc.lineSeparator()+Z.charAt(Z.length-1),Zt(L.line-1,Z.length-1),L,"+transpose"))}}w.push(new Kr(L,L))}e.setSelections(w)})},newlineAndIndent:function(e){return Ha(e,function(){for(var n=e.listSelections(),w=n.length-1;w>=0;w--)e.replaceRange(e.doc.lineSeparator(),n[w].anchor,n[w].head,"+input");n=e.listSelections();for(var x=0;xe&&In(n,this.pos)==0&&w==this.button};var Ho,Wo;function Hl(e,n){var w=+new Date;return Wo&&Wo.compare(w,e,n)?(Ho=Wo=null,"triple"):Ho&&Ho.compare(w,e,n)?(Wo=new ds(w,e,n),Ho=null,"double"):(Ho=new ds(w,e,n),Wo=null,"single")}function el(e){var n=this,w=n.display;if(ft(n,e)||w.activeTouch&&w.input.supportsTouch())return;if(w.input.ensurePolled(),w.shift=e.shiftKey,Ca(w,e)){E||(w.scroller.draggable=!1,setTimeout(function(){return w.scroller.draggable=!0},100));return}if(cs(n,e))return;var x=_a(n,e),L=Ue(e),K=x?Hl(x,L):"single";if(window.focus(),L==1&&n.state.selectingText&&n.state.selectingText(e),x&&Wl(n,L,x,K,e))return;L==1?x?Kl(n,x,K,e):Ye(e)==w.scroller&&oe(e):L==2?(x&&Vo(n.doc,x),setTimeout(function(){return w.input.focus()},20)):L==3&&(I?n.display.input.onContextMenu(e):no(n))}function Wl(e,n,w,x,L){var K="Click";return x=="double"?K="Double"+K:x=="triple"&&(K="Triple"+K),K=(n==1?"Left":n==2?"Middle":"Right")+K,Bo(e,Gs(K,L),L,function(Z){if(typeof Z=="string"&&(Z=Fo[Z]),!Z)return!1;var ae=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ae=Z(e,w)!=ve}finally{e.state.suppressEdits=!1}return ae})}function zl(e,n,w){var x=e.getOption("configureMouse"),L=x?x(e,n,w):{};if(L.unit==null){var K=h?w.shiftKey&&w.metaKey:w.altKey;L.unit=K?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(L.extend==null||e.doc.extend)&&(L.extend=e.doc.extend||w.shiftKey),L.addNew==null&&(L.addNew=s?w.metaKey:w.ctrlKey),L.moveOnDrag==null&&(L.moveOnDrag=!(s?w.altKey:w.ctrlKey)),L}function Kl(e,n,w,x){M?setTimeout(W(Li,e),0):e.curOp.focus=k();var L=zl(e,w,x),K=e.doc.sel,Z;e.options.dragDrop&&Mt&&!e.isReadOnly()&&w=="single"&&(Z=K.contains(n))>-1&&(In((Z=K.ranges[Z]).from(),n)<0||n.xRel>0)&&(In(Z.to(),n)>0||n.xRel<0)?Gl(e,x,n,L):Vl(e,x,n,L)}function Gl(e,n,w,x){var L=e.display,K=!1,Z=fa(e,function(ce){E&&(L.scroller.draggable=!1),e.state.draggingText=!1,Et(L.wrapper.ownerDocument,"mouseup",Z),Et(L.wrapper.ownerDocument,"mousemove",ae),Et(L.scroller,"dragstart",ie),Et(L.scroller,"drop",Z),K||(oe(ce),x.addNew||Vo(e.doc,w,null,null,x.extend),E&&!b||M&&c==9?setTimeout(function(){L.wrapper.ownerDocument.body.focus({preventScroll:!0}),L.input.focus()},20):L.input.focus())}),ae=function(ce){K=K||Math.abs(n.clientX-ce.clientX)+Math.abs(n.clientY-ce.clientY)>=10},ie=function(){return K=!0};E&&(L.scroller.draggable=!0),e.state.draggingText=Z,Z.copy=!x.moveOnDrag,L.scroller.dragDrop&&L.scroller.dragDrop(),De(L.wrapper.ownerDocument,"mouseup",Z),De(L.wrapper.ownerDocument,"mousemove",ae),De(L.scroller,"dragstart",ie),De(L.scroller,"drop",Z),no(e),setTimeout(function(){return L.input.focus()},20)}function tl(e,n,w){if(w=="char")return new Kr(n,n);if(w=="word")return e.findWordAt(n);if(w=="line")return new Kr(Zt(n.line,0),U(e.doc,Zt(n.line+1,0)));var x=w(e,n);return new Kr(x.from,x.to)}function Vl(e,n,w,x){var L=e.display,K=e.doc;oe(n);var Z,ae,ie=K.sel,ce=ie.ranges;if(x.addNew&&!x.extend?(ae=K.sel.contains(w),ae>-1?Z=ce[ae]:Z=new Kr(w,w)):(Z=K.sel.primary(),ae=K.sel.primIndex),x.unit=="rectangle")x.addNew||(Z=new Kr(w,w)),w=_a(e,n,!0,!0),ae=-1;else{var Be=tl(e,w,x.unit);x.extend?Z=as(Z,Be.anchor,Be.head,x.extend):Z=Be}x.addNew?ae==-1?(ae=ce.length,Ga(K,xr(e,ce.concat([Z]),ae),{scroll:!1,origin:"*mouse"})):ce.length>1&&ce[ae].empty()&&x.unit=="char"&&!x.extend?(Ga(K,xr(e,ce.slice(0,ae).concat(ce.slice(ae+1)),0),{scroll:!1,origin:"*mouse"}),ie=K.sel):is(K,ae,Z,be):(ae=0,Ga(K,new Wa([Z],0),be),ie=K.sel);var qe=w;function At(Un){if(In(qe,Un)==0)return;if(qe=Un,x.unit=="rectangle"){for(var qn=[],Er=e.options.tabSize,cr=Y(kn(K,w.line).text,w.ch,Er),jr=Y(kn(K,Un.line).text,Un.ch,Er),la=Math.min(cr,jr),Fa=Math.max(cr,jr),ga=Math.min(w.line,Un.line),ii=Math.min(e.lastLine(),Math.max(w.line,Un.line));ga<=ii;ga++){var ti=kn(K,ga).text,Aa=Re(ti,la,Er);la==Fa?qn.push(new Kr(Zt(ga,Aa),Zt(ga,Aa))):ti.length>Aa&&qn.push(new Kr(Zt(ga,Aa),Zt(ga,Re(ti,Fa,Er))))}qn.length||qn.push(new Kr(w,w)),Ga(K,xr(e,ie.ranges.slice(0,ae).concat(qn),ae),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Un)}else{var ni=Z,za=tl(e,Un,x.unit),ka=ni.anchor,Ma;In(za.anchor,ka)>0?(Ma=za.head,ka=wr(ni.from(),za.anchor)):(Ma=za.anchor,ka=Cr(ni.to(),za.head));var Ea=ie.ranges.slice(0);Ea[ae]=Xl(e,new Kr(U(K,ka),Ma)),Ga(K,xr(e,Ea,ae),be)}}var yt=L.wrapper.getBoundingClientRect(),hn=0;function Cn(Un){var qn=++hn,Er=_a(e,Un,!0,x.unit=="rectangle");if(!Er)return;if(In(Er,qe)!=0){e.curOp.focus=k(),At(Er);var cr=ki(L,K);(Er.line>=cr.to||Er.lineyt.bottom?20:0;jr&&setTimeout(fa(e,function(){if(hn!=qn)return;L.scroller.scrollTop+=jr,Cn(Un)}),50)}}function Rn(Un){e.state.selectingText=!1,hn=Infinity,Un&&(oe(Un),L.input.focus()),Et(L.wrapper.ownerDocument,"mousemove",jn),Et(L.wrapper.ownerDocument,"mouseup",$n),K.history.lastSelOrigin=null}var jn=fa(e,function(Un){Un.buttons===0||!Ue(Un)?Rn(Un):Cn(Un)}),$n=fa(e,Rn);e.state.selectingText=$n,De(L.wrapper.ownerDocument,"mousemove",jn),De(L.wrapper.ownerDocument,"mouseup",$n)}function Xl(e,n){var w=n.anchor,x=n.head,L=kn(e.doc,w.line);if(In(w,x)==0&&w.sticky==x.sticky)return n;var K=un(L);if(!K)return n;var Z=Lt(K,w.ch,w.sticky),ae=K[Z];if(ae.from!=w.ch&&ae.to!=w.ch)return n;var ie=Z+(ae.from==w.ch==(ae.level!=1)?0:1);if(ie==0||ie==K.length)return n;var ce;if(x.line!=w.line)ce=(x.line-w.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Be=Lt(K,x.ch,x.sticky),qe=Be-Z||(x.ch-w.ch)*(ae.level==1?-1:1);Be==ie-1||Be==ie?ce=qe<0:ce=qe>0}var At=K[ie+(ce?-1:0)],yt=ce==(At.level==1),hn=yt?At.from:At.to,Cn=yt?"after":"before";return w.ch==hn&&w.sticky==Cn?n:new Kr(new Zt(w.line,hn,Cn),x)}function nl(e,n,w,x){var L,K;if(n.touches)L=n.touches[0].clientX,K=n.touches[0].clientY;else try{L=n.clientX,K=n.clientY}catch(At){return!1}if(L>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;x&&oe(n);var Z=e.display,ae=Z.lineDiv.getBoundingClientRect();if(K>ae.bottom||!xe(e,w))return pe(n);K-=ae.top-Z.viewOffset;for(var ie=0;ie=L){var Be=Fr(e.doc,K),qe=e.display.gutterSpecs[ie];return Je(e,w,e,Be,qe.className,n),pe(n)}}}function cs(e,n){return nl(e,n,"gutterClick",!0)}function rl(e,n){if(Ca(e.display,n)||Yl(e,n))return;if(ft(e,n,"contextmenu"))return;I||e.display.input.onContextMenu(n)}function Yl(e,n){return xe(e,"gutterContextMenu")?nl(e,n,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),or(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var n=e.optionHandlers;function w(x,L,K,Z){e.defaults[x]=L,K&&(n[x]=Z?function(ae,ie,ce){ce!=wo&&K(ae,ie,ce)}:K)}e.defineOption=w,e.Init=wo,w("value","",function(x,L){return x.setValue(L)},!0),w("mode",null,function(x,L){x.doc.modeOption=L,Da(x)},!0),w("indentUnit",2,Da,!0),w("indentWithTabs",!1),w("smartIndent",!0),w("tabSize",4,function(x){Xa(x),or(x),Qr(x)},!0),w("lineSeparator",null,function(x,L){if(x.doc.lineSep=L,!L)return;var K=[],Z=x.doc.first;x.doc.iter(function(ie){for(var ce=0;;){var Be=ie.text.indexOf(L,ce);if(Be==-1)break;ce=Be+L.length,K.push(Zt(Z,Be))}Z++});for(var ae=K.length-1;ae>=0;ae--)Eo(x.doc,L,K[ae],Zt(K[ae].line,K[ae].ch+L.length))}),w("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,L,K){x.state.specialChars=new RegExp(L.source+(L.test(" ")?"":"| "),"g"),K!=wo&&x.refresh()}),w("specialCharPlaceholder",Xe,function(x){return x.refresh()},!0),w("electricChars",!0),w("inputStyle",t?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),w("spellcheck",!1,function(x,L){return x.getInputField().spellcheck=L},!0),w("autocorrect",!1,function(x,L){return x.getInputField().autocorrect=L},!0),w("autocapitalize",!1,function(x,L){return x.getInputField().autocapitalize=L},!0),w("rtlMoveVisually",!y),w("wholeLineUpdateBefore",!0),w("theme","default",function(x){al(x),di(x)},!0),w("keyMap","default",function(x,L,K){var Z=Jo(L),ae=K!=wo&&Jo(K);ae&&ae.detach&&ae.detach(x,Z),Z.attach&&Z.attach(x,ae||null)}),w("extraKeys",null),w("configureMouse",null),w("lineWrapping",!1,Jl,!0),w("gutters",[],function(x,L){x.display.gutterSpecs=Ua(L,x.options.lineNumbers),di(x)},!0),w("fixedGutter",!0,function(x,L){x.display.gutters.style.left=L?ha(x.display)+"px":"0",x.refresh()},!0),w("coverGutterNextToScrollbar",!1,function(x){return mi(x)},!0),w("scrollbarStyle","native",function(x){Qi(x),mi(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),w("lineNumbers",!1,function(x,L){x.display.gutterSpecs=Ua(x.options.gutters,L),di(x)},!0),w("firstLineNumber",1,di,!0),w("lineNumberFormatter",function(x){return x},di,!0),w("showCursorWhenSelecting",!1,Jr,!0),w("resetSelectionOnContextMenu",!0),w("lineWiseCopyCut",!0),w("pasteLinesPerSelection",!0),w("selectionsMayTouch",!1),w("readOnly",!1,function(x,L){L=="nocursor"&&(wi(x),x.display.input.blur()),x.display.input.readOnlyChanged(L)}),w("screenReaderLabel",null,function(x,L){L=L===""?null:L,x.display.input.screenReaderLabelChanged(L)}),w("disableInput",!1,function(x,L){L||x.display.input.reset()},!0),w("dragDrop",!0,Ql),w("allowDropFileTypes",null),w("cursorBlinkRate",530),w("cursorScrollMargin",0),w("cursorHeight",1,Jr,!0),w("singleCursorHeightPerLine",!0,Jr,!0),w("workTime",100),w("workDelay",100),w("flattenSpans",!0,Xa,!0),w("addModeClass",!1,Xa,!0),w("pollInterval",100),w("undoDepth",200,function(x,L){return x.doc.history.undoDepth=L}),w("historyEventDelay",1250),w("viewportMargin",10,function(x){return x.refresh()},!0),w("maxHighlightLength",1e4,Xa,!0),w("moveInputWithCursor",!0,function(x,L){L||x.display.input.resetPosition()}),w("tabindex",null,function(x,L){return x.display.input.getField().tabIndex=L||""}),w("autofocus",null),w("direction","ltr",function(x,L){return x.doc.setDirection(L)},!0),w("phrases",null)}function Ql(e,n,w){var x=w&&w!=wo;if(!n!=!x){var L=e.display.dragFunctions,K=n?De:Et;K(e.display.scroller,"dragstart",L.start),K(e.display.scroller,"dragenter",L.enter),K(e.display.scroller,"dragover",L.over),K(e.display.scroller,"dragleave",L.leave),K(e.display.scroller,"drop",L.drop)}}function Jl(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(f(e.display.wrapper,"CodeMirror-wrap"),It(e)),Na(e),Qr(e),or(e),setTimeout(function(){return mi(e)},100)}function ma(e,n){var w=this;if(!(this instanceof ma))return new ma(e,n);this.options=n=n?z(n):{},z(il,n,!1);var x=n.value;typeof x=="string"?x=new ei(x,n.mode,null,n.lineSeparator,n.direction):n.mode&&(x.modeOption=n.mode),this.doc=x;var L=new ma.inputStyles[n.inputStyle](this),K=this.display=new Ui(e,x,L,n);K.wrapper.CodeMirror=this,al(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},n.autofocus&&!t&&K.input.focus(),M&&c<11&&setTimeout(function(){return w.display.input.reset(!0)},20),Zl(this),Al(),ui(this),this.curOp.forceUpdate=!0,gs(this,x),n.autofocus&&!t||this.hasFocus()?setTimeout(function(){w.hasFocus()&&!w.state.focused&&li(w)},20):wi(this);for(var Z in qo)qo.hasOwnProperty(Z)&&qo[Z](this,n[Z],wo);da(this),n.finishInit&&n.finishInit(this);for(var ae=0;ae20*20}De(n.scroller,"touchstart",function(ie){if(!ft(e,ie)&&!K(ie)&&!cs(e,ie)){n.input.ensurePolled(),clearTimeout(w);var ce=+new Date;n.activeTouch={start:ce,moved:!1,prev:ce-x.end<=300?x:null},ie.touches.length==1&&(n.activeTouch.left=ie.touches[0].pageX,n.activeTouch.top=ie.touches[0].pageY)}}),De(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),De(n.scroller,"touchend",function(ie){var ce=n.activeTouch;if(ce&&!Ca(n,ie)&&ce.left!=null&&!ce.moved&&new Date-ce.start<300){var Be=e.coordsChar(n.activeTouch,"page"),qe;!ce.prev||Z(ce,ce.prev)?qe=new Kr(Be,Be):!ce.prev.prev||Z(ce,ce.prev.prev)?qe=e.findWordAt(Be):qe=new Kr(Zt(Be.line,0),U(e.doc,Zt(Be.line+1,0))),e.setSelection(qe.anchor,qe.head),e.focus(),oe(ie)}L()}),De(n.scroller,"touchcancel",L),De(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Mi(e,n.scroller.scrollTop),La(e,n.scroller.scrollLeft,!0),Je(e,"scroll",e))}),De(n.scroller,"mousewheel",function(ie){return Hi(e,ie)}),De(n.scroller,"DOMMouseScroll",function(ie){return Hi(e,ie)}),De(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(ie){ft(e,ie)||_e(ie)},over:function(ie){ft(e,ie)||(Dl(e,ie),_e(ie))},start:function(ie){return Ol(e,ie)},drop:fa(e,Tl),leave:function(ie){ft(e,ie)||Hs(e)}};var ae=n.input.getField();De(ae,"keyup",function(ie){return Zs.call(e,ie)}),De(ae,"keydown",fa(e,Js)),De(ae,"keypress",fa(e,qs)),De(ae,"focus",function(ie){return li(e,ie)}),De(ae,"blur",function(ie){return wi(e,ie)})}var hs=[];ma.defineInitHook=function(e){return hs.push(e)};function zo(e,n,w,x){var L=e.doc,K;w==null&&(w="add"),w=="smart"&&(L.mode.indent?K=On(e,n).state:w="prev");var Z=e.options.tabSize,ae=kn(L,n),ie=Y(ae.text,null,Z);ae.stateAfter&&(ae.stateAfter=null);var ce=ae.text.match(/^\s*/)[0],Be;if(!x&&!/\S/.test(ae.text))Be=0,w="not";else if(w=="smart"&&(Be=L.mode.indent(K,ae.text.slice(ce.length),ae.text),Be==ve||Be>150)){if(!x)return;w="prev"}w=="prev"?n>L.first?Be=Y(kn(L,n-1).text,null,Z):Be=0:w=="add"?Be=ie+e.options.indentUnit:w=="subtract"?Be=ie-e.options.indentUnit:typeof w=="number"&&(Be=ie+w),Be=Math.max(0,Be);var qe="",At=0;if(e.options.indentWithTabs)for(var yt=Math.floor(Be/Z);yt;--yt)At+=Z,qe+=" ";if(AtZ,ie=St(n),ce=null;if(ae&&x.ranges.length>1)if(_i&&_i.text.join(` +`)==n){if(x.ranges.length%_i.text.length==0){ce=[];for(var Be=0;Be<_i.text.length;Be++)ce.push(K.splitLines(_i.text[Be]))}}else ie.length==x.ranges.length&&e.options.pasteLinesPerSelection&&(ce=Ot(ie,function(jn){return[jn]}));for(var qe=e.curOp.updateInput,At=x.ranges.length-1;At>=0;At--){var yt=x.ranges[At],hn=yt.from(),Cn=yt.to();yt.empty()&&(w&&w>0?hn=Zt(hn.line,hn.ch-w):e.state.overwrite&&!ae?Cn=Zt(Cn.line,Math.min(kn(K,Cn.line).text.length,Cn.ch+Ze(ie).length)):ae&&_i&&_i.lineWise&&_i.text.join(` `)==ie.join(` -`)&&(hn=xn=Zt(hn.line,0)));var Rn={from:hn,to:xn,text:ce?ce[At%ce.length]:ie,origin:L||(ae?"paste":e.state.cutIncoming>Z?"cut":"+input")};bo(e.doc,Rn),Bn(e,"inputRead",e,Rn)}n&&!ae&&sl(e,n),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=qe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,n){var w=e.clipboardData&&e.clipboardData.getData("Text");if(w)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Ha(n,function(){return fs(n,w,0,null,"paste")}),!0}function sl(e,n){if(!e.options.electricChars||!e.options.smartIndent)return;for(var w=e.doc.sel,x=w.ranges.length-1;x>=0;x--){var L=w.ranges[x];if(L.head.ch>100||x&&w.ranges[x-1].head.line==L.head.line)continue;var K=e.getModeAt(L.head),Z=!1;if(K.electricChars){for(var ae=0;ae-1){Z=zo(e,L.head.line,"smart");break}}else K.electricInput&&(K.electricInput.test(kn(e.doc,L.head.line).text.slice(0,L.head.ch))&&(Z=zo(e,L.head.line,"smart")));Z&&Bn(e,"electricInput",e,L.head.line)}}function ll(e){for(var n=[],w=[],x=0;xK&&(zo(this,ae.head.line,x,!0),K=ae.head.line,Z==this.doc.sel.primIndex&&yi(this));else{var ie=ae.from(),ce=ae.to(),Be=Math.max(K,ie.line);K=Math.min(this.lastLine(),ce.line-(ce.ch?0:1))+1;for(var qe=Be;qe0&&is(this.doc,Z,new Wr(ie,At[Z].to()),le)}}}),getTokenAt:function(x,L){return jr(this,x,L)},getLineTokens:function(x,L){return jr(this,Zt(x),L,!0)},getTokenTypeAt:function(x){x=U(this.doc,x);var L=cn(this,kn(this.doc,x.line)),K=0,Z=(L.length-1)/2,ae=x.ch,ie;if(ae==0)ie=L[2];else for(;;){var ce=K+Z>>1;if((ce?L[ce*2-1]:0)>=ae)Z=ce;else if(L[ce*2+1]ie&&(x=ie,Z=!0),ae=kn(this.doc,x)}else ae=x;return Cn(this,ae,{top:0,left:0},L||"page",K||Z).top+(Z?this.doc.height-En(ae):0)},defaultTextHeight:function(){return Ur(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,L,K,Z,ae){var ie=this.display;x=Sn(this,U(this.doc,x));var ce=x.bottom,Be=x.left;if(L.style.position="absolute",L.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(L),ie.sizer.appendChild(L),Z=="over")ce=x.top;else if(Z=="above"||Z=="near"){var qe=Math.max(ie.wrapper.clientHeight,this.doc.height),At=Math.max(ie.sizer.clientWidth,ie.lineSpace.clientWidth);(Z=="above"||x.bottom+L.offsetHeight>qe)&&x.top>L.offsetHeight?ce=x.top-L.offsetHeight:x.bottom+L.offsetHeight<=qe&&(ce=x.bottom),Be+L.offsetWidth>At&&(Be=At-L.offsetWidth)}L.style.top=ce+"px",L.style.left=L.style.right="",ae=="right"?(Be=ie.sizer.clientWidth-L.offsetWidth,L.style.right="0px"):(ae=="left"?Be=0:ae=="middle"&&(Be=(ie.sizer.clientWidth-L.offsetWidth)/2),L.style.left=Be+"px"),K&&Gi(this,{left:Be,top:ce,right:Be+L.offsetWidth,bottom:ce+L.offsetHeight})},triggerOnKeyDown:Oa(Js),triggerOnKeyPress:Oa(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Oa(el),execCommand:function(x){if(Fo.hasOwnProperty(x))return Fo[x].call(null,this)},triggerElectric:Oa(function(x){sl(this,x)}),findPosH:function(x,L,K,Z){var ae=1;L<0&&(ae=-1,L=-L);for(var ie=U(this.doc,x),ce=0;ce0&&Be(K.charAt(Z-1));)--Z;for(;ae.5||this.options.lineWrapping)&&Na(this),Je(this,"refresh",this)}),swapDoc:Oa(function(x){var L=this.doc;return L.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,x),yr(this),this.display.input.reset(),Di(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Bn(this,"swapDoc",this,L),L}),phrase:function(x){var L=this.options.phrases;return L&&Object.prototype.hasOwnProperty.call(L,x)?L[x]:x},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Te(e),e.registerHelper=function(x,L,K){w.hasOwnProperty(x)||(w[x]=e[x]={_global:[]}),w[x][L]=K},e.registerGlobalHelper=function(x,L,K,Z){e.registerHelper(x,L,Z),w[x]._global.push({pred:K,val:Z})}}function ps(e,n,w,x,L){var K=n,Z=w,ae=kn(e,n.line),ie=L&&e.direction=="rtl"?-w:w;function ce(){var Qn=n.line+ie;return Qn=e.first+e.size?!1:(n=new Zt(Qn,n.ch,n.sticky),ae=kn(e,Qn))}function Be(Qn){var Un;if(x=="codepoint"){var er=ae.text.charCodeAt(n.ch+(x>0?0:-1));isNaN(er)?Un=null:Un=new Zt(n.line,Math.max(0,Math.min(ae.text.length,n.ch+w*(er>=55296&&er<56320?2:1))),-w)}else L?Un=kl(e.cm,ae,n,w):Un=ss(ae,n,w);if(Un==null)if(!Qn&&ce())n=ls(L,e.cm,ae,n.line,ie);else return!1;else n=Un;return!0}if(x=="char"||x=="codepoint")Be();else if(x=="column")Be(!0);else if(x=="word"||x=="group")for(var qe=null,At=x=="group",yt=e.cm&&e.cm.getHelper(n,"wordChars"),hn=!0;!(w<0&&!Be(!hn));hn=!1){var xn=ae.text.charAt(n.ch)||` -`,Rn=rt(xn,yt)?"w":At&&xn==` -`?"n":!At||/\s/.test(xn)?null:"p";if(At&&!hn&&!Rn&&(Rn="s"),qe&&qe!=Rn){w<0&&(w=1,Be(),n.sticky="after");break}if(Rn&&(qe=Rn),w>0&&!Be(!hn))break}var jn=Yo(e,n,K,Z,!0);return hr(K,jn)&&(jn.hitSide=!0),jn}function cl(e,n,w,x){var L=e.doc,K=n.left,Z;if(x=="page"){var ae=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ie=Math.max(ae-.5*Ur(e.display),3);Z=(w>0?n.bottom:n.top)+w*ie}else x=="line"&&(Z=w>0?n.bottom+3:n.top-3);for(var ce;!(ce=sr(e,K,Z),!ce.outside);){if(w<0?Z<=0:Z>=L.height){ce.hitSide=!0;break}Z+=w*5}return ce}var ia=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ia.prototype.init=function(e){var n=this,w=this,x=w.cm,L=w.div=e.lineDiv;ul(L,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function K(ae){for(var ie=ae.target;ie;ie=ie.parentNode){if(ie==L)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ie.className))break}return!1}De(L,"paste",function(ae){if(!K(ae)||ft(x,ae)||ol(ae,x))return;c<=11&&setTimeout(fa(x,function(){return n.updateFromDOM()}),20)}),De(L,"compositionstart",function(ae){n.composing={data:ae.data,done:!1}}),De(L,"compositionupdate",function(ae){n.composing||(n.composing={data:ae.data,done:!1})}),De(L,"compositionend",function(ae){n.composing&&(ae.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),De(L,"touchstart",function(){return w.forceCompositionEnd()}),De(L,"input",function(){n.composing||n.readFromDOMSoon()});function Z(ae){if(!K(ae)||ft(x,ae))return;if(x.somethingSelected())es({lineWise:!1,text:x.getSelections()}),ae.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var ie=ll(x);es({lineWise:!0,text:ie.text}),ae.type=="cut"&&x.operation(function(){x.setSelections(ie.ranges,0,le),x.replaceSelection("",null,"cut")})}else return;if(ae.clipboardData){ae.clipboardData.clearData();var ce=_i.text.join(` +`)&&(hn=Cn=Zt(hn.line,0)));var Rn={from:hn,to:Cn,text:ce?ce[At%ce.length]:ie,origin:L||(ae?"paste":e.state.cutIncoming>Z?"cut":"+input")};bo(e.doc,Rn),Bn(e,"inputRead",e,Rn)}n&&!ae&&sl(e,n),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=qe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,n){var w=e.clipboardData&&e.clipboardData.getData("Text");if(w)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Ha(n,function(){return fs(n,w,0,null,"paste")}),!0}function sl(e,n){if(!e.options.electricChars||!e.options.smartIndent)return;for(var w=e.doc.sel,x=w.ranges.length-1;x>=0;x--){var L=w.ranges[x];if(L.head.ch>100||x&&w.ranges[x-1].head.line==L.head.line)continue;var K=e.getModeAt(L.head),Z=!1;if(K.electricChars){for(var ae=0;ae-1){Z=zo(e,L.head.line,"smart");break}}else K.electricInput&&(K.electricInput.test(kn(e.doc,L.head.line).text.slice(0,L.head.ch))&&(Z=zo(e,L.head.line,"smart")));Z&&Bn(e,"electricInput",e,L.head.line)}}function ll(e){for(var n=[],w=[],x=0;xK&&(zo(this,ae.head.line,x,!0),K=ae.head.line,Z==this.doc.sel.primIndex&&yi(this));else{var ie=ae.from(),ce=ae.to(),Be=Math.max(K,ie.line);K=Math.min(this.lastLine(),ce.line-(ce.ch?0:1))+1;for(var qe=Be;qe0&&is(this.doc,Z,new Kr(ie,At[Z].to()),le)}}}),getTokenAt:function(x,L){return Br(this,x,L)},getLineTokens:function(x,L){return Br(this,Zt(x),L,!0)},getTokenTypeAt:function(x){x=U(this.doc,x);var L=dn(this,kn(this.doc,x.line)),K=0,Z=(L.length-1)/2,ae=x.ch,ie;if(ae==0)ie=L[2];else for(;;){var ce=K+Z>>1;if((ce?L[ce*2-1]:0)>=ae)Z=ce;else if(L[ce*2+1]ie&&(x=ie,Z=!0),ae=kn(this.doc,x)}else ae=x;return Tr(this,ae,{top:0,left:0},L||"page",K||Z).top+(Z?this.doc.height-xn(ae):0)},defaultTextHeight:function(){return kr(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,L,K,Z,ae){var ie=this.display;x=nr(this,U(this.doc,x));var ce=x.bottom,Be=x.left;if(L.style.position="absolute",L.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(L),ie.sizer.appendChild(L),Z=="over")ce=x.top;else if(Z=="above"||Z=="near"){var qe=Math.max(ie.wrapper.clientHeight,this.doc.height),At=Math.max(ie.sizer.clientWidth,ie.lineSpace.clientWidth);(Z=="above"||x.bottom+L.offsetHeight>qe)&&x.top>L.offsetHeight?ce=x.top-L.offsetHeight:x.bottom+L.offsetHeight<=qe&&(ce=x.bottom),Be+L.offsetWidth>At&&(Be=At-L.offsetWidth)}L.style.top=ce+"px",L.style.left=L.style.right="",ae=="right"?(Be=ie.sizer.clientWidth-L.offsetWidth,L.style.right="0px"):(ae=="left"?Be=0:ae=="middle"&&(Be=(ie.sizer.clientWidth-L.offsetWidth)/2),L.style.left=Be+"px"),K&&Gi(this,{left:Be,top:ce,right:Be+L.offsetWidth,bottom:ce+L.offsetHeight})},triggerOnKeyDown:Oa(Js),triggerOnKeyPress:Oa(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Oa(el),execCommand:function(x){if(Fo.hasOwnProperty(x))return Fo[x].call(null,this)},triggerElectric:Oa(function(x){sl(this,x)}),findPosH:function(x,L,K,Z){var ae=1;L<0&&(ae=-1,L=-L);for(var ie=U(this.doc,x),ce=0;ce0&&Be(K.charAt(Z-1));)--Z;for(;ae.5||this.options.lineWrapping)&&Na(this),Je(this,"refresh",this)}),swapDoc:Oa(function(x){var L=this.doc;return L.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,x),or(this),this.display.input.reset(),Di(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Bn(this,"swapDoc",this,L),L}),phrase:function(x){var L=this.options.phrases;return L&&Object.prototype.hasOwnProperty.call(L,x)?L[x]:x},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Te(e),e.registerHelper=function(x,L,K){w.hasOwnProperty(x)||(w[x]=e[x]={_global:[]}),w[x][L]=K},e.registerGlobalHelper=function(x,L,K,Z){e.registerHelper(x,L,Z),w[x]._global.push({pred:K,val:Z})}}function ps(e,n,w,x,L){var K=n,Z=w,ae=kn(e,n.line),ie=L&&e.direction=="rtl"?-w:w;function ce(){var $n=n.line+ie;return $n=e.first+e.size?!1:(n=new Zt($n,n.ch,n.sticky),ae=kn(e,$n))}function Be($n){var Un;if(x=="codepoint"){var qn=ae.text.charCodeAt(n.ch+(x>0?0:-1));isNaN(qn)?Un=null:Un=new Zt(n.line,Math.max(0,Math.min(ae.text.length,n.ch+w*(qn>=55296&&qn<56320?2:1))),-w)}else L?Un=kl(e.cm,ae,n,w):Un=ss(ae,n,w);if(Un==null)if(!$n&&ce())n=ls(L,e.cm,ae,n.line,ie);else return!1;else n=Un;return!0}if(x=="char"||x=="codepoint")Be();else if(x=="column")Be(!0);else if(x=="word"||x=="group")for(var qe=null,At=x=="group",yt=e.cm&&e.cm.getHelper(n,"wordChars"),hn=!0;!(w<0&&!Be(!hn));hn=!1){var Cn=ae.text.charAt(n.ch)||` +`,Rn=rt(Cn,yt)?"w":At&&Cn==` +`?"n":!At||/\s/.test(Cn)?null:"p";if(At&&!hn&&!Rn&&(Rn="s"),qe&&qe!=Rn){w<0&&(w=1,Be(),n.sticky="after");break}if(Rn&&(qe=Rn),w>0&&!Be(!hn))break}var jn=Yo(e,n,K,Z,!0);return fr(K,jn)&&(jn.hitSide=!0),jn}function cl(e,n,w,x){var L=e.doc,K=n.left,Z;if(x=="page"){var ae=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ie=Math.max(ae-.5*kr(e.display),3);Z=(w>0?n.bottom:n.top)+w*ie}else x=="line"&&(Z=w>0?n.bottom+3:n.top-3);for(var ce;!(ce=Ht(e,K,Z),!ce.outside);){if(w<0?Z<=0:Z>=L.height){ce.hitSide=!0;break}Z+=w*5}return ce}var ia=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ia.prototype.init=function(e){var n=this,w=this,x=w.cm,L=w.div=e.lineDiv;ul(L,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function K(ae){for(var ie=ae.target;ie;ie=ie.parentNode){if(ie==L)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ie.className))break}return!1}De(L,"paste",function(ae){if(!K(ae)||ft(x,ae)||ol(ae,x))return;c<=11&&setTimeout(fa(x,function(){return n.updateFromDOM()}),20)}),De(L,"compositionstart",function(ae){n.composing={data:ae.data,done:!1}}),De(L,"compositionupdate",function(ae){n.composing||(n.composing={data:ae.data,done:!1})}),De(L,"compositionend",function(ae){n.composing&&(ae.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),De(L,"touchstart",function(){return w.forceCompositionEnd()}),De(L,"input",function(){n.composing||n.readFromDOMSoon()});function Z(ae){if(!K(ae)||ft(x,ae))return;if(x.somethingSelected())es({lineWise:!1,text:x.getSelections()}),ae.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var ie=ll(x);es({lineWise:!0,text:ie.text}),ae.type=="cut"&&x.operation(function(){x.setSelections(ie.ranges,0,le),x.replaceSelection("",null,"cut")})}else return;if(ae.clipboardData){ae.clipboardData.clearData();var ce=_i.text.join(` `);if(ae.clipboardData.setData("Text",ce),ae.clipboardData.getData("Text")==ce){ae.preventDefault();return}}var Be=dl(),qe=Be.firstChild;x.display.lineSpace.insertBefore(Be,x.display.lineSpace.firstChild),qe.value=_i.text.join(` -`);var At=document.activeElement;G(qe),setTimeout(function(){x.display.lineSpace.removeChild(Be),At.focus(),At==L&&w.showPrimarySelection()},50)}De(L,"copy",Z),De(L,"cut",Z)},ia.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var e=Ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},ia.prototype.showSelection=function(e,n){if(!e||!this.cm.display.view.length)return;(e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ia.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ia.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,w=n.doc.sel.primary(),x=w.from(),L=w.to();if(n.display.viewTo==n.display.viewFrom||x.line>=n.display.viewTo||L.line=n.display.viewFrom&&hl(n,x)||{node:ae[0].measure.map[2],offset:0},ce=L.linee.firstLine()&&(x=Zt(x.line-1,kn(e.doc,x.line-1).length)),L.ch==kn(e.doc,L.line).text.length&&L.linen.viewTo-1)return!1;var K,Z,ae;x.line==n.viewFrom||(K=ra(e,x.line))==0?(Z=pr(n.view[0].line),ae=n.view[0].node):(Z=pr(n.view[K].line),ae=n.view[K-1].node.nextSibling);var ie=ra(e,L.line),ce,Be;if(ie==n.view.length-1?(ce=n.viewTo-1,Be=n.lineDiv.lastChild):(ce=pr(n.view[ie+1].line)-1,Be=n.view[ie+1].node.previousSibling),!ae)return!1;for(var qe=e.doc.splitLines(tu(e,ae,Be,Z,ce)),At=Fr(e.doc,Zt(Z,0),Zt(ce,kn(e.doc,ce).text.length));qe.length>1&&At.length>1;)if(Ze(qe)==Ze(At))qe.pop(),At.pop(),ce--;else if(qe[0]==At[0])qe.shift(),At.shift(),Z++;else break;for(var yt=0,hn=0,xn=qe[0],Rn=At[0],jn=Math.min(xn.length,Rn.length);ytx.ch&&Qn.charCodeAt(Qn.length-hn-1)==Un.charCodeAt(Un.length-hn-1);)yt--,hn++;qe[qe.length-1]=Qn.slice(0,Qn.length-hn).replace(/^\u200b+/,""),qe[0]=qe[0].slice(yt).replace(/\u200b+$/,"");var xr=Zt(Z,yt),dr=Zt(ce,At.length?Ze(At).length-hn:0);if(qe.length>1||qe[0]||In(xr,dr))return Eo(e.doc,qe,xr,dr,"+input"),!0},ia.prototype.ensurePolled=function(){this.forceCompositionEnd()},ia.prototype.reset=function(){this.forceCompositionEnd()},ia.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ia.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ia.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ha(this.cm,function(){return Qr(e.cm)})},ia.prototype.setUneditable=function(e){e.contentEditable="false"},ia.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||fa(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ia.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ia.prototype.onContextMenu=function(){},ia.prototype.resetPosition=function(){},ia.prototype.needsContentAttribute=!0;function hl(e,n){var w=it(e,n.line);if(!w||w.hidden)return null;var x=kn(e.doc,n.line),L=he(w,x,n.line),K=dn(x,e.doc.direction),Z="left";if(K){var ae=It(K,n.ch);Z=ae%2?"right":"left"}var ie=un(L.map,n.ch,Z);return ie.offset=ie.collapse=="right"?ie.end:ie.start,ie}function eu(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function So(e,n){return n&&(e.bad=!0),e}function tu(e,n,w,x,L){var K="",Z=!1,ae=e.doc.lineSeparator(),ie=!1;function ce(yt){return function(hn){return hn.id==yt}}function Be(){Z&&(K+=ae,ie&&(K+=ae),Z=ie=!1)}function qe(yt){yt&&(Be(),K+=yt)}function At(yt){if(yt.nodeType==1){var hn=yt.getAttribute("cm-text");if(hn){qe(hn);return}var xn=yt.getAttribute("cm-marker"),Rn;if(xn){var jn=e.findMarks(Zt(x,0),Zt(L+1,0),ce(+xn));jn.length&&(Rn=jn[0].find(0))&&qe(Fr(e.doc,Rn.from,Rn.to).join(ae));return}if(yt.getAttribute("contenteditable")=="false")return;var Qn=/^(pre|div|p|li|table|br)$/i.test(yt.nodeName);if(!/^br$/i.test(yt.nodeName)&&yt.textContent.length==0)return;Qn&&Be();for(var Un=0;Un=9&&n.hasSelection&&(n.hasSelection=null),w.poll()}),De(L,"paste",function(Z){if(ft(x,Z)||ol(Z,x))return;x.state.pasteIncoming=+new Date,w.fastPoll()});function K(Z){if(ft(x,Z))return;if(x.somethingSelected())es({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var ae=ll(x);es({lineWise:!0,text:ae.text}),Z.type=="cut"?x.setSelections(ae.ranges,null,le):(w.prevInput="",L.value=ae.text.join(` -`),G(L))}else return;Z.type=="cut"&&(x.state.cutIncoming=+new Date)}De(L,"cut",K),De(L,"copy",K),De(e.scroller,"paste",function(Z){if(Ca(e,Z)||ft(x,Z))return;if(!L.dispatchEvent){x.state.pasteIncoming=+new Date,w.focus();return}var ae=new Event("paste");ae.clipboardData=Z.clipboardData,L.dispatchEvent(ae)}),De(e.lineSpace,"selectstart",function(Z){Ca(e,Z)||oe(Z)}),De(L,"compositionstart",function(){var Z=x.getCursor("from");w.composing&&w.composing.range.clear(),w.composing={start:Z,range:x.markText(Z,x.getCursor("to"),{className:"CodeMirror-composing"})}}),De(L,"compositionend",function(){w.composing&&(w.poll(),w.composing.range.clear(),w.composing=null)})},Sa.prototype.createField=function(e){this.wrapper=dl(),this.textarea=this.wrapper.firstChild},Sa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var e=this.cm,n=e.display,w=e.doc,x=Ja(e);if(e.options.moveInputWithCursor){var L=Sn(e,w.sel.primary().head,"div"),K=n.wrapper.getBoundingClientRect(),Z=n.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,L.top+Z.top-K.top)),x.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,L.left+Z.left-K.left))}return x},Sa.prototype.showSelection=function(e){var n=this.cm,w=n.display;i(w.cursorDiv,e.cursors),i(w.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sa.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var n=this.cm;if(n.somethingSelected()){this.prevInput="";var w=n.getSelection();this.textarea.value=w,n.state.focused&&G(this.textarea),M&&c>=9&&(this.hasSelection=w)}else e||(this.prevInput=this.textarea.value="",M&&c>=9&&(this.hasSelection=null))},Sa.prototype.getField=function(){return this.textarea},Sa.prototype.supportsTouch=function(){return!1},Sa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!t||k()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sa.prototype.blur=function(){this.textarea.blur()},Sa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sa.prototype.receivedFocus=function(){this.slowPoll()},Sa.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sa.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function w(){var x=n.poll();!x&&!e?(e=!0,n.polling.set(60,w)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,w)},Sa.prototype.poll=function(){var e=this,n=this.cm,w=this.textarea,x=this.prevInput;if(this.contextMenuPending||!n.state.focused||Tt(w)&&!x&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var L=w.value;if(L==x&&!n.somethingSelected())return!1;if(M&&c>=9&&this.hasSelection===L||s&&/[\uf700-\uf7ff]/.test(L))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var K=L.charCodeAt(0);if(K==8203&&!x&&(x="\u200B"),K==8666)return this.reset(),this.cm.execCommand("undo")}for(var Z=0,ae=Math.min(x.length,L.length);Z1e3||L.indexOf(` +`);var At=document.activeElement;G(qe),setTimeout(function(){x.display.lineSpace.removeChild(Be),At.focus(),At==L&&w.showPrimarySelection()},50)}De(L,"copy",Z),De(L,"cut",Z)},ia.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var e=Ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},ia.prototype.showSelection=function(e,n){if(!e||!this.cm.display.view.length)return;(e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ia.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ia.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,w=n.doc.sel.primary(),x=w.from(),L=w.to();if(n.display.viewTo==n.display.viewFrom||x.line>=n.display.viewTo||L.line=n.display.viewFrom&&hl(n,x)||{node:ae[0].measure.map[2],offset:0},ce=L.linee.firstLine()&&(x=Zt(x.line-1,kn(e.doc,x.line-1).length)),L.ch==kn(e.doc,L.line).text.length&&L.linen.viewTo-1)return!1;var K,Z,ae;x.line==n.viewFrom||(K=ra(e,x.line))==0?(Z=mr(n.view[0].line),ae=n.view[0].node):(Z=mr(n.view[K].line),ae=n.view[K-1].node.nextSibling);var ie=ra(e,L.line),ce,Be;if(ie==n.view.length-1?(ce=n.viewTo-1,Be=n.lineDiv.lastChild):(ce=mr(n.view[ie+1].line)-1,Be=n.view[ie+1].node.previousSibling),!ae)return!1;for(var qe=e.doc.splitLines(tu(e,ae,Be,Z,ce)),At=Wr(e.doc,Zt(Z,0),Zt(ce,kn(e.doc,ce).text.length));qe.length>1&&At.length>1;)if(Ze(qe)==Ze(At))qe.pop(),At.pop(),ce--;else if(qe[0]==At[0])qe.shift(),At.shift(),Z++;else break;for(var yt=0,hn=0,Cn=qe[0],Rn=At[0],jn=Math.min(Cn.length,Rn.length);ytx.ch&&$n.charCodeAt($n.length-hn-1)==Un.charCodeAt(Un.length-hn-1);)yt--,hn++;qe[qe.length-1]=$n.slice(0,$n.length-hn).replace(/^\u200b+/,""),qe[0]=qe[0].slice(yt).replace(/\u200b+$/,"");var Er=Zt(Z,yt),cr=Zt(ce,At.length?Ze(At).length-hn:0);if(qe.length>1||qe[0]||In(Er,cr))return Eo(e.doc,qe,Er,cr,"+input"),!0},ia.prototype.ensurePolled=function(){this.forceCompositionEnd()},ia.prototype.reset=function(){this.forceCompositionEnd()},ia.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ia.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ia.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ha(this.cm,function(){return Qr(e.cm)})},ia.prototype.setUneditable=function(e){e.contentEditable="false"},ia.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||fa(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ia.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ia.prototype.onContextMenu=function(){},ia.prototype.resetPosition=function(){},ia.prototype.needsContentAttribute=!0;function hl(e,n){var w=it(e,n.line);if(!w||w.hidden)return null;var x=kn(e.doc,n.line),L=he(w,x,n.line),K=un(x,e.doc.direction),Z="left";if(K){var ae=Lt(K,n.ch);Z=ae%2?"right":"left"}var ie=ln(L.map,n.ch,Z);return ie.offset=ie.collapse=="right"?ie.end:ie.start,ie}function eu(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function So(e,n){return n&&(e.bad=!0),e}function tu(e,n,w,x,L){var K="",Z=!1,ae=e.doc.lineSeparator(),ie=!1;function ce(yt){return function(hn){return hn.id==yt}}function Be(){Z&&(K+=ae,ie&&(K+=ae),Z=ie=!1)}function qe(yt){yt&&(Be(),K+=yt)}function At(yt){if(yt.nodeType==1){var hn=yt.getAttribute("cm-text");if(hn){qe(hn);return}var Cn=yt.getAttribute("cm-marker"),Rn;if(Cn){var jn=e.findMarks(Zt(x,0),Zt(L+1,0),ce(+Cn));jn.length&&(Rn=jn[0].find(0))&&qe(Wr(e.doc,Rn.from,Rn.to).join(ae));return}if(yt.getAttribute("contenteditable")=="false")return;var $n=/^(pre|div|p|li|table|br)$/i.test(yt.nodeName);if(!/^br$/i.test(yt.nodeName)&&yt.textContent.length==0)return;$n&&Be();for(var Un=0;Un=9&&n.hasSelection&&(n.hasSelection=null),w.poll()}),De(L,"paste",function(Z){if(ft(x,Z)||ol(Z,x))return;x.state.pasteIncoming=+new Date,w.fastPoll()});function K(Z){if(ft(x,Z))return;if(x.somethingSelected())es({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var ae=ll(x);es({lineWise:!0,text:ae.text}),Z.type=="cut"?x.setSelections(ae.ranges,null,le):(w.prevInput="",L.value=ae.text.join(` +`),G(L))}else return;Z.type=="cut"&&(x.state.cutIncoming=+new Date)}De(L,"cut",K),De(L,"copy",K),De(e.scroller,"paste",function(Z){if(Ca(e,Z)||ft(x,Z))return;if(!L.dispatchEvent){x.state.pasteIncoming=+new Date,w.focus();return}var ae=new Event("paste");ae.clipboardData=Z.clipboardData,L.dispatchEvent(ae)}),De(e.lineSpace,"selectstart",function(Z){Ca(e,Z)||oe(Z)}),De(L,"compositionstart",function(){var Z=x.getCursor("from");w.composing&&w.composing.range.clear(),w.composing={start:Z,range:x.markText(Z,x.getCursor("to"),{className:"CodeMirror-composing"})}}),De(L,"compositionend",function(){w.composing&&(w.poll(),w.composing.range.clear(),w.composing=null)})},Sa.prototype.createField=function(e){this.wrapper=dl(),this.textarea=this.wrapper.firstChild},Sa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var e=this.cm,n=e.display,w=e.doc,x=Ja(e);if(e.options.moveInputWithCursor){var L=nr(e,w.sel.primary().head,"div"),K=n.wrapper.getBoundingClientRect(),Z=n.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,L.top+Z.top-K.top)),x.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,L.left+Z.left-K.left))}return x},Sa.prototype.showSelection=function(e){var n=this.cm,w=n.display;i(w.cursorDiv,e.cursors),i(w.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sa.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var n=this.cm;if(n.somethingSelected()){this.prevInput="";var w=n.getSelection();this.textarea.value=w,n.state.focused&&G(this.textarea),M&&c>=9&&(this.hasSelection=w)}else e||(this.prevInput=this.textarea.value="",M&&c>=9&&(this.hasSelection=null))},Sa.prototype.getField=function(){return this.textarea},Sa.prototype.supportsTouch=function(){return!1},Sa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!t||k()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sa.prototype.blur=function(){this.textarea.blur()},Sa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sa.prototype.receivedFocus=function(){this.slowPoll()},Sa.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sa.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function w(){var x=n.poll();!x&&!e?(e=!0,n.polling.set(60,w)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,w)},Sa.prototype.poll=function(){var e=this,n=this.cm,w=this.textarea,x=this.prevInput;if(this.contextMenuPending||!n.state.focused||Tt(w)&&!x&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var L=w.value;if(L==x&&!n.somethingSelected())return!1;if(M&&c>=9&&this.hasSelection===L||s&&/[\uf700-\uf7ff]/.test(L))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var K=L.charCodeAt(0);if(K==8203&&!x&&(x="\u200B"),K==8666)return this.reset(),this.cm.execCommand("undo")}for(var Z=0,ae=Math.min(x.length,L.length);Z1e3||L.indexOf(` `)>-1?w.value=e.prevInput="":e.prevInput=L,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Sa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sa.prototype.onKeyPress=function(){M&&c>=9&&(this.hasSelection=null),this.fastPoll()},Sa.prototype.onContextMenu=function(e){var n=this,w=n.cm,x=w.display,L=n.textarea;n.contextMenuPending&&n.contextMenuPending();var K=_a(w,e),Z=x.scroller.scrollTop;if(!K||l)return;var ae=w.options.resetSelectionOnContextMenu;ae&&w.doc.sel.contains(K)==-1&&fa(w,Ga)(w.doc,Fn(K),le);var ie=L.style.cssText,ce=n.wrapper.style.cssText,Be=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",L.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Be.top-5)+"px; left: "+(e.clientX-Be.left-5)+`px; z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qe;E&&(qe=window.scrollY),x.input.focus(),E&&window.scrollTo(null,qe),x.input.reset(),w.somethingSelected()||(L.value=n.prevInput=" "),n.contextMenuPending=yt,x.selForContextMenu=w.doc.sel,clearTimeout(x.detectingSelectAll);function At(){if(L.selectionStart!=null){var xn=w.somethingSelected(),Rn="\u200B"+(xn?L.value:"");L.value="\u21DA",L.value=Rn,n.prevInput=xn?"":"\u200B",L.selectionStart=1,L.selectionEnd=Rn.length,x.selForContextMenu=w.doc.sel}}function yt(){if(n.contextMenuPending!=yt)return;if(n.contextMenuPending=!1,n.wrapper.style.cssText=ce,L.style.cssText=ie,M&&c<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=Z),L.selectionStart!=null){(!M||M&&c<9)&&At();var xn=0,Rn=function(){x.selForContextMenu==w.doc.sel&&L.selectionStart==0&&L.selectionEnd>0&&n.prevInput=="\u200B"?fa(w,Ms)(w):xn++<10?x.detectingSelectAll=setTimeout(Rn,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Rn,200)}}if(M&&c>=9&&At(),I){_e(e);var hn=function(){Et(window,"mouseup",hn),setTimeout(yt,20)};De(window,"mouseup",hn)}else setTimeout(yt,50)},Sa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sa.prototype.setUneditable=function(){},Sa.prototype.needsContentAttribute=!1;function ru(e,n){if(n=n?z(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var w=k();n.autofocus=w==e||e.getAttribute("autofocus")!=null&&w==document.body}function x(){e.value=ae.getValue()}var L;if(e.form&&(De(e.form,"submit",x),!n.leaveSubmitMethodAlone)){var K=e.form;L=K.submit;try{var Z=K.submit=function(){x(),K.submit=L,K.submit(),K.submit=Z}}catch(ie){}}n.finishInit=function(ie){ie.save=x,ie.getTextArea=function(){return e},ie.toTextArea=function(){ie.toTextArea=isNaN,x(),e.parentNode.removeChild(ie.getWrapperElement()),e.style.display="",e.form&&(Et(e.form,"submit",x),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=L))}},e.style.display="none";var ae=ma(function(ie){return e.parentNode.insertBefore(ie,e.nextSibling)},n);return ae}function au(e){e.off=Et,e.on=De,e.wheelEventPixels=Bi,e.Doc=ei,e.splitLines=St,e.countColumn=Y,e.findColumn=Re,e.isWordChar=Le,e.Pass=ve,e.signal=Je,e.Line=Wt,e.changeEnd=rr,e.scrollbarModel=$i,e.Pos=Zt,e.cmpPos=In,e.modes=Lt,e.mimeModes=pt,e.resolveMode=st,e.getMode=xt,e.modeExtensions=Ut,e.extendMode=gn,e.copyState=Mn,e.startState=gr,e.innerMode=cr,e.commands=Fo,e.keyMap=zi,e.keyName=Vs,e.isModifierKey=Ks,e.lookupKey=Co,e.normalizeKeyMap=Ll,e.StringStream=or,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=oe,e.e_stopPropagation=ue,e.e_stop=_e,e.addClass=N,e.contains=m,e.rmClass=f,e.keyNames=eo}$l(ma),ql(ma);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ei.prototype)ei.prototype.hasOwnProperty(ns)&&q(iu,ns)<0&&(ma.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ei.prototype[ns]));return Te(ei),ma.inputStyles={textarea:Sa,contenteditable:ia},ma.defineMode=function(e){!ma.defaults.mode&&e!="null"&&(ma.defaults.mode=e),en.apply(this,arguments)},ma.defineMIME=an,ma.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ma.defineMIME("text/plain","null"),ma.defineExtension=function(e,n){ma.prototype[e]=n},ma.defineDocExtension=function(e,n){ei.prototype[e]=n},ma.fromTextArea=ru,au(ma),ma.version="5.58.2",ma})},WaYH:function(ze,te,P){"use strict";var X=P("rePB"),F=P("Ff2n"),R=P("VTBJ"),j=P("1OyB"),T=P("vuIU"),S=P("JX7q"),M=P("Ji7U"),c=P("LK+K"),E=P("q1tI"),g=P("TSYQ"),r=P.n(g),l=P("sboe"),b=P("OZM5"),u=function(I){var _=I.prefixCls,f=I.level,o=I.isStart,i=I.isEnd;if(!f)return null;for(var d="".concat(_,"-indent-unit"),A=[],O=0;O0&&n.prevInput=="\u200B"?fa(w,Ms)(w):Cn++<10?x.detectingSelectAll=setTimeout(Rn,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Rn,200)}}if(M&&c>=9&&At(),I){_e(e);var hn=function(){Et(window,"mouseup",hn),setTimeout(yt,20)};De(window,"mouseup",hn)}else setTimeout(yt,50)},Sa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sa.prototype.setUneditable=function(){},Sa.prototype.needsContentAttribute=!1;function ru(e,n){if(n=n?z(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var w=k();n.autofocus=w==e||e.getAttribute("autofocus")!=null&&w==document.body}function x(){e.value=ae.getValue()}var L;if(e.form&&(De(e.form,"submit",x),!n.leaveSubmitMethodAlone)){var K=e.form;L=K.submit;try{var Z=K.submit=function(){x(),K.submit=L,K.submit(),K.submit=Z}}catch(ie){}}n.finishInit=function(ie){ie.save=x,ie.getTextArea=function(){return e},ie.toTextArea=function(){ie.toTextArea=isNaN,x(),e.parentNode.removeChild(ie.getWrapperElement()),e.style.display="",e.form&&(Et(e.form,"submit",x),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=L))}},e.style.display="none";var ae=ma(function(ie){return e.parentNode.insertBefore(ie,e.nextSibling)},n);return ae}function au(e){e.off=Et,e.on=De,e.wheelEventPixels=Bi,e.Doc=ei,e.splitLines=St,e.countColumn=Y,e.findColumn=Re,e.isWordChar=Le,e.Pass=ve,e.signal=Je,e.Line=Wt,e.changeEnd=rr,e.scrollbarModel=$i,e.Pos=Zt,e.cmpPos=In,e.modes=Pt,e.mimeModes=pt,e.resolveMode=st,e.getMode=xt,e.modeExtensions=Nt,e.extendMode=yn,e.copyState=Mn,e.startState=yr,e.innerMode=hr,e.commands=Fo,e.keyMap=zi,e.keyName=Vs,e.isModifierKey=Ks,e.lookupKey=Co,e.normalizeKeyMap=Ll,e.StringStream=lr,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=oe,e.e_stopPropagation=ue,e.e_stop=_e,e.addClass=N,e.contains=m,e.rmClass=f,e.keyNames=eo}$l(ma),ql(ma);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ei.prototype)ei.prototype.hasOwnProperty(ns)&&q(iu,ns)<0&&(ma.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ei.prototype[ns]));return Te(ei),ma.inputStyles={textarea:Sa,contenteditable:ia},ma.defineMode=function(e){!ma.defaults.mode&&e!="null"&&(ma.defaults.mode=e),en.apply(this,arguments)},ma.defineMIME=an,ma.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ma.defineMIME("text/plain","null"),ma.defineExtension=function(e,n){ma.prototype[e]=n},ma.defineDocExtension=function(e,n){ei.prototype[e]=n},ma.fromTextArea=ru,au(ma),ma.version="5.58.2",ma})},WaYH:function(ze,te,P){"use strict";var X=P("rePB"),F=P("Ff2n"),R=P("VTBJ"),j=P("1OyB"),T=P("vuIU"),S=P("JX7q"),M=P("Ji7U"),c=P("LK+K"),E=P("q1tI"),g=P("TSYQ"),r=P.n(g),l=P("sboe"),b=P("OZM5"),u=function(I){var _=I.prefixCls,f=I.level,o=I.isStart,i=I.isEnd;if(!f)return null;for(var d="".concat(_,"-indent-unit"),A=[],O=0;O0&&arguments[0]!==void 0?arguments[0]:[],d=i;if(Array.isArray(i)){for(var A=0;A0||cr.target.offsetWidth>0)&&ot.current.instance.layout()}}catch(gr){gn.e(gr)}finally{gn.f()}}),xt.observe(De.current)),xt}function Ye(){T.b.warn({content:decodeURIComponent(v),key:"monaco-editor-tip"})}var Ue=function(){var Ut=ot.current.instance;if(k!=null&&Ut&&ue){var gn=Ut.getModel();gn&&k!==gn.getValue()&&(D=!0,gn.setValue(k),Ut.layout(),D=!1)}};Object(r.useEffect)(function(){try{var xt,Ut=ot.current.instance;Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){Ue()},500),Ut==null||((xt=Ut.updateOptions)===null||xt===void 0)||xt.call(Ut,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(k.split(/\r\n|\r|\n/g).length))+3,5)})}catch(gn){debugger}},[k,ue,ot.current]),Object(r.useEffect)(function(){try{if(Pt&&ot.current&&ot.current.instance){var xt=ot.current.instance;xt.changeViewZones(function(gn){var Mn=document.createElement("div");Mn.style.padding="10px 20px",Mn.style.width="calc(100% - 20px)",Mn.className="my-error-line-wrp",Mn.innerHTML=zt,gn.addZone({afterLineNumber:Pt||11,heightInLines:3,domNode:Mn})});var Ut={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};xt.addOverlayWidget(Ut),xt.revealPositionInCenter({lineNumber:20,column:1})}}catch(gn){debugger}},[Pt,ot.current,ue]),Object(r.useEffect)(function(){var xt;if((xt=ot.current)!==null&&xt!==void 0&&xt.instance&&ue&&dn){var Ut=ot.current.instance,gn=Ut.getModel();if(!gn)return;var Mn=function(){var In=[],hr=[],Or=gn.getAllDecorations(),_r=Object(S.a)(Or),Sr;try{for(_r.s();!(Sr=_r.n()).done;){var J=Sr.value;if(J.options.className==="highlighted-line"){var U;In.push(J==null||((U=J.range)===null||U===void 0)?void 0:U.startLineNumber),hr.push(J==null?void 0:J.id)}}}catch($){_r.e($)}finally{_r.f()}gn.deltaDecorations(hr,[]);var H=gn.getLineCount();!!It&&It<=H&&(Ut.deltaDecorations([],[{range:new _.Range(It,1,It,gn.getLineMaxColumn(It)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ut.revealLineInCenter(It))};Mn();var cr=function(){var In=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,hr=[],Or=[],_r=gn.getAllDecorations(),Sr=Object(S.a)(_r),J;try{for(Sr.s();!(J=Sr.n()).done;){var U=J.value;if(U.options.linesDecorationsClassName==="breakpoints"){var H;hr.push(U==null||((H=U.range)===null||H===void 0)?void 0:H.startLineNumber),Or.push(U==null?void 0:U.id)}}}catch($){Sr.e($)}finally{Sr.f()}if(In)return{lines:hr,ids:Or};rt(hr)},gr=function(){var Zt=Object(R.a)(g.a.mark(function In(hr){var Or;return g.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:return Or={range:new _.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Sr.next=3,gn.deltaDecorations([],[Or]);case 3:cr();case 4:case"end":return Sr.stop()}},In)}));return function(hr){return Zt.apply(this,arguments)}}(),or=function(){var Zt=Object(R.a)(g.a.mark(function In(hr){var Or,_r,Sr,J,U;return g.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:Or=[],_r=Ut.getLineDecorations(hr),Sr=Object(S.a)(_r);try{for(Sr.s();!(J=Sr.n()).done;)U=J.value,U.options.linesDecorationsClassName==="breakpoints"&&Or.push(U.id)}catch(re){Sr.e(re)}finally{Sr.f()}return $.next=6,gn.deltaDecorations(Or,[]);case 6:cr();case 7:case"end":return $.stop()}},In)}));return function(hr){return Zt.apply(this,arguments)}}(),kn=function(In){var hr=Ut.getLineDecorations(In),Or=Object(S.a)(hr),_r;try{for(Or.s();!(_r=Or.n()).done;){var Sr=_r.value;if(Sr.options.linesDecorationsClassName==="breakpoints")return!0}}catch(J){Or.e(J)}finally{Or.f()}return!1};if(!Object(t.isEqual)(Ge,cr(!0).lines)){gn.deltaDecorations(cr(!0).ids,[]);var Fr=Ge.map(function(Zt){return{range:new _.Range(Zt,1,Zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});gn.deltaDecorations([],Fr)}var ea=Ut.onDidChangeModelContent(function(Zt){var In=Ut.getPosition();if(In){var hr=In.lineNumber;gn.getLineContent(hr).trim()===""?or(hr):kn(hr)&&(or(hr),gr(hr))}}),Mr=Ut.onMouseDown(function(Zt){var In,hr,Or;if(Zt.target.detail&&(In=Zt.target)!==null&&In!==void 0&&(hr=In.element)!==null&&hr!==void 0&&(Or=hr.className)!==null&&Or!==void 0&&Or.includes("line-numbers")){var _r=Zt.target.position.lineNumber;if(gn.getLineContent(_r).trim()==="")return;kn(_r)?or(_r):gr(_r)}}),pr=function(In){var hr={range:new _.Range(In,1,In,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ft.current=Ut.deltaDecorations(ft.current,[hr])},Nr=function(){ft.current=Ut.deltaDecorations(ft.current,[])},ta=Ut.onMouseMove(function(Zt){var In,hr,Or;if(Nr(),Zt.target.detail&&(In=Zt.target)!==null&&In!==void 0&&(hr=In.element)!==null&&hr!==void 0&&(Or=hr.className)!==null&&Or!==void 0&&Or.includes("line-numbers")){var _r=Zt.target.position.lineNumber;if(gn.getLineContent(_r).trim()==="")return;pr(_r)}}),ca=Ut.onMouseLeave(function(){Nr()});return function(){ea.dispose(),Mr.dispose(),ta.dispose(),ca.dispose()}}},[ot.current,ue,Ge,It,dn]);function Mt(){var xt=ot.current.instance;if(xt){var Ut=xt.getSelection(),gn=ot.current.pastePos||{},Mn=new _.Range(gn.startLineNumber||Ut.endLineNumber,gn.startColumn||Ut.endColumn,gn.endLineNumber||Ut.endLineNumber,gn.endColumn||Ut.endColumn);setTimeout(function(){xt.executeEdits("",[{range:Mn,text:""}])},300)}}function tn(xt){(window.navigator.platform.match("Mac")?xt.metaKey:xt.ctrlKey)&&xt.keyCode==83&&(xt.preventDefault(),be())}var sn=function(){if(Re&&ot.current.instance){var Ut=ot.current.instance.getContentHeight();an(Ut0||Ee.target.offsetWidth>0)&&Re.layout()}}catch(ke){Ze.e(ke)}finally{Ze.f()}}),ge.observe(z.current)),ge}Object(r.useEffect)(function(){return z.current&&P.e(27).then(P.t.bind(null,"M/lh",7)).then(function(Re){_=Re;var ge=_.editor.createDiffEditor(z.current,Object(X.a)(Object(X.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},W),{},{wordWrap:!0}));ne(ge);var fe=ve(ge);return function(){ge.dispose();var Ze=ge.getModel();Ze&&Ze.dispose(),fe.unobserve(z.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(r.useEffect)(function(){q&&q.setModel({original:_.editor.createModel(k,B),modified:_.editor.createModel(N,B)})},[k,N,B,q]);var le=h(A),be=h(m),we={width:le,height:be};return l.a.createElement("div",{className:"my-diff-editor",ref:z,style:we})}},Ze12:function(ze,te,P){var X=P("ItGF"),F=P("hOwI"),R=F.buildTransformer,j="___zrEVENTSAVED",T=[];function S(r,l,b,u,p){return M(T,l,u,p,!0)&&M(r,b,T[0],T[1])}function M(r,l,b,u,p){if(l.getBoundingClientRect&&X.domSupported&&!g(l)){var v=l[j]||(l[j]={}),a=c(l,v),t=E(a,v,p);if(t)return t(r,b,u),!0}return!1}function c(r,l){var b=l.markers;if(b)return b;b=l.markers=[];for(var u=["left","right"],p=["top","bottom"],v=0;v<4;v++){var a=document.createElement("div"),t=a.style,s=v%2,h=(v>>1)%2;t.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[s]+":0",p[h]+":0",u[1-s]+":auto",p[1-h]+":auto",""].join("!important;"),r.appendChild(a),b.push(a)}return b}function E(r,l,b){for(var u=b?"invTrans":"trans",p=l[u],v=l.srcCoords,a=!0,t=[],s=[],h=0;h<4;h++){var y=r[h].getBoundingClientRect(),D=2*h,C=y.left,I=y.top;t.push(C,I),a=a&&v&&C===v[D]&&I===v[D+1],s.push(r[h].offsetLeft,r[h].offsetTop)}return a&&p?p:(l.srcCoords=t,l[u]=b?R(s,t):R(t,s))}function g(r){return r.nodeName.toUpperCase()==="CANVAS"}te.transformLocalCoord=S,te.transformCoordWithViewport=M,te.isCanvasEl=g},ZpRC:function(ze,te,P){"use strict";function X(r){return typeof r=="object"&&r!=null&&r.nodeType===1}function F(r,l){return(!l||r!=="hidden")&&r!=="visible"&&r!=="clip"}function R(r,l){if(r.clientHeightl||v>r&&a=l&&t>=b?v-r-u:a>l&&tb?a-l+p:0}var T=function(r,l){var b=window,u=l.scrollMode,p=l.block,v=l.inline,a=l.boundary,t=l.skipOverflowHiddenElements,s=typeof a=="function"?a:function(rt){return rt!==a};if(!X(r))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,y=[],D=r;X(D)&&s(D);){if((D=D.parentElement)===h){y.push(D);break}D!=null&&D===document.body&&R(D)&&!R(document.documentElement)||D!=null&&R(D,t)&&y.push(D)}for(var C=b.visualViewport?b.visualViewport.width:innerWidth,I=b.visualViewport?b.visualViewport.height:innerHeight,_=window.scrollX||pageXOffset,f=window.scrollY||pageYOffset,o=r.getBoundingClientRect(),i=o.height,d=o.width,A=o.top,O=o.right,m=o.bottom,k=o.left,N=p==="start"||p==="nearest"?A:p==="end"?m:A+i/2,B=v==="center"?k+d/2:v==="end"?O:k,G=[],W=0;W=0&&k>=0&&m<=I&&O<=C&&A>=ne&&m<=le&&k>=be&&O<=ve)return G;var we=getComputedStyle(z),Re=parseInt(we.borderLeftWidth,10),ge=parseInt(we.borderTopWidth,10),fe=parseInt(we.borderRightWidth,10),Ze=parseInt(we.borderBottomWidth,10),Ot=0,Ee=0,ke="offsetWidth"in z?z.offsetWidth-z.clientWidth-Re-fe:0,de="offsetHeight"in z?z.offsetHeight-z.clientHeight-ge-Ze:0;if(h===z)Ot=p==="start"?N:p==="end"?N-I:p==="nearest"?j(f,f+I,I,ge,Ze,f+N,f+N+i,i):N-I/2,Ee=v==="start"?B:v==="center"?B-C/2:v==="end"?B-C:j(_,_+C,C,Re,fe,_+B,_+B+d,d),Ot=Math.max(0,Ot+f),Ee=Math.max(0,Ee+_);else{Ot=p==="start"?N-ne-ge:p==="end"?N-le+Ze+de:p==="nearest"?j(ne,le,V,ge,Ze+de,N,N+i,i):N-(ne+V/2)+de/2,Ee=v==="start"?B-be-Re:v==="center"?B-(be+q/2)+ke/2:v==="end"?B-ve+fe+ke:j(be,ve,q,Re,fe+ke,B,B+d,d);var me=z.scrollLeft,Le=z.scrollTop;N+=Le-(Ot=Math.max(0,Math.min(Le+Ot,z.scrollHeight-V+de))),B+=me-(Ee=Math.max(0,Math.min(me+Ee,z.scrollWidth-q+ke)))}G.push({el:z,top:Ot,left:Ee})}return G};function S(r){return r===Object(r)&&Object.keys(r).length!==0}function M(r,l){l===void 0&&(l="auto");var b="scrollBehavior"in document.body.style;r.forEach(function(u){var p=u.el,v=u.top,a=u.left;p.scroll&&b?p.scroll({top:v,left:a,behavior:l}):(p.scrollTop=v,p.scrollLeft=a)})}function c(r){return r===!1?{block:"end",inline:"nearest"}:S(r)?r:{block:"start",inline:"nearest"}}function E(r,l){var b=!r.ownerDocument.documentElement.contains(r);if(S(l)&&typeof l.behavior=="function")return l.behavior(b?[]:T(r,l));if(b)return;var u=c(l);return M(T(r,u),u.behavior)}var g=te.a=E},aKvl:function(ze,te,P){var X=P("Sj9i"),F=X.quadraticProjectPoint;function R(j,T,S,M,c,E,g,r,l){if(g===0)return!1;var b=g;if(l>T+b&&l>M+b&&l>E+b||lj+b&&r>S+b&&r>c+b||r0&&arguments[0]!==void 0?arguments[0]:[],d=i;if(Array.isArray(i)){for(var A=0;A0||hr.target.offsetWidth>0)&&ot.current.instance.layout()}}catch(yr){yn.e(yr)}finally{yn.f()}}),xt.observe(De.current)),xt}function Ye(){T.b.warn({content:decodeURIComponent(v),key:"monaco-editor-tip"})}var Ue=function(){var Nt=ot.current.instance;if(k!=null&&Nt&&ue){var yn=Nt.getModel();yn&&k!==yn.getValue()&&(D=!0,yn.setValue(k),Nt.layout(),D=!1)}};Object(r.useEffect)(function(){try{var xt,Nt=ot.current.instance;Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){Ue()},500),Nt==null||((xt=Nt.updateOptions)===null||xt===void 0)||xt.call(Nt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(k.split(/\r\n|\r|\n/g).length))+3,5)})}catch(yn){debugger}},[k,ue,ot.current]),Object(r.useEffect)(function(){try{if(Rt&&ot.current&&ot.current.instance){var xt=ot.current.instance;xt.changeViewZones(function(yn){var Mn=document.createElement("div");Mn.style.padding="10px 20px",Mn.style.width="calc(100% - 20px)",Mn.className="my-error-line-wrp",Mn.innerHTML=Kt,yn.addZone({afterLineNumber:Rt||11,heightInLines:3,domNode:Mn})});var Nt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};xt.addOverlayWidget(Nt),xt.revealPositionInCenter({lineNumber:20,column:1})}}catch(yn){debugger}},[Rt,ot.current,ue]),Object(r.useEffect)(function(){var xt;if((xt=ot.current)!==null&&xt!==void 0&&xt.instance&&ue&&un){var Nt=ot.current.instance,yn=Nt.getModel();if(!yn)return;var Mn=function(){var In=[],fr=[],Dr=yn.getAllDecorations(),Cr=Object(S.a)(Dr),wr;try{for(Cr.s();!(wr=Cr.n()).done;){var J=wr.value;if(J.options.className==="highlighted-line"){var U;In.push(J==null||((U=J.range)===null||U===void 0)?void 0:U.startLineNumber),fr.push(J==null?void 0:J.id)}}}catch($){Cr.e($)}finally{Cr.f()}yn.deltaDecorations(fr,[]);var H=yn.getLineCount();!!Lt&&Lt<=H&&(Nt.deltaDecorations([],[{range:new _.Range(Lt,1,Lt,yn.getLineMaxColumn(Lt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Nt.revealLineInCenter(Lt))};Mn();var hr=function(){var In=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,fr=[],Dr=[],Cr=yn.getAllDecorations(),wr=Object(S.a)(Cr),J;try{for(wr.s();!(J=wr.n()).done;){var U=J.value;if(U.options.linesDecorationsClassName==="breakpoints"){var H;fr.push(U==null||((H=U.range)===null||H===void 0)?void 0:H.startLineNumber),Dr.push(U==null?void 0:U.id)}}}catch($){wr.e($)}finally{wr.f()}if(In)return{lines:fr,ids:Dr};rt(fr)},yr=function(){var Zt=Object(R.a)(g.a.mark(function In(fr){var Dr;return g.a.wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:return Dr={range:new _.Range(fr,1,fr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},wr.next=3,yn.deltaDecorations([],[Dr]);case 3:hr();case 4:case"end":return wr.stop()}},In)}));return function(fr){return Zt.apply(this,arguments)}}(),lr=function(){var Zt=Object(R.a)(g.a.mark(function In(fr){var Dr,Cr,wr,J,U;return g.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:Dr=[],Cr=Nt.getLineDecorations(fr),wr=Object(S.a)(Cr);try{for(wr.s();!(J=wr.n()).done;)U=J.value,U.options.linesDecorationsClassName==="breakpoints"&&Dr.push(U.id)}catch(re){wr.e(re)}finally{wr.f()}return $.next=6,yn.deltaDecorations(Dr,[]);case 6:hr();case 7:case"end":return $.stop()}},In)}));return function(fr){return Zt.apply(this,arguments)}}(),kn=function(In){var fr=Nt.getLineDecorations(In),Dr=Object(S.a)(fr),Cr;try{for(Dr.s();!(Cr=Dr.n()).done;){var wr=Cr.value;if(wr.options.linesDecorationsClassName==="breakpoints")return!0}}catch(J){Dr.e(J)}finally{Dr.f()}return!1};if(!Object(t.isEqual)(Ge,hr(!0).lines)){yn.deltaDecorations(hr(!0).ids,[]);var Wr=Ge.map(function(Zt){return{range:new _.Range(Zt,1,Zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});yn.deltaDecorations([],Wr)}var ea=Nt.onDidChangeModelContent(function(Zt){var In=Nt.getPosition();if(In){var fr=In.lineNumber;yn.getLineContent(fr).trim()===""?lr(fr):kn(fr)&&(lr(fr),yr(fr))}}),Pr=Nt.onMouseDown(function(Zt){var In,fr,Dr;if(Zt.target.detail&&(In=Zt.target)!==null&&In!==void 0&&(fr=In.element)!==null&&fr!==void 0&&(Dr=fr.className)!==null&&Dr!==void 0&&Dr.includes("line-numbers")){var Cr=Zt.target.position.lineNumber;if(yn.getLineContent(Cr).trim()==="")return;kn(Cr)?lr(Cr):yr(Cr)}}),mr=function(In){var fr={range:new _.Range(In,1,In,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ft.current=Nt.deltaDecorations(ft.current,[fr])},Fr=function(){ft.current=Nt.deltaDecorations(ft.current,[])},ta=Nt.onMouseMove(function(Zt){var In,fr,Dr;if(Fr(),Zt.target.detail&&(In=Zt.target)!==null&&In!==void 0&&(fr=In.element)!==null&&fr!==void 0&&(Dr=fr.className)!==null&&Dr!==void 0&&Dr.includes("line-numbers")){var Cr=Zt.target.position.lineNumber;if(yn.getLineContent(Cr).trim()==="")return;mr(Cr)}}),ca=Nt.onMouseLeave(function(){Fr()});return function(){ea.dispose(),Pr.dispose(),ta.dispose(),ca.dispose()}}},[ot.current,ue,Ge,Lt,un]);function Mt(){var xt=ot.current.instance;if(xt){var Nt=xt.getSelection(),yn=ot.current.pastePos||{},Mn=new _.Range(yn.startLineNumber||Nt.endLineNumber,yn.startColumn||Nt.endColumn,yn.endLineNumber||Nt.endLineNumber,yn.endColumn||Nt.endColumn);setTimeout(function(){xt.executeEdits("",[{range:Mn,text:""}])},300)}}function tn(xt){(window.navigator.platform.match("Mac")?xt.metaKey:xt.ctrlKey)&&xt.keyCode==83&&(xt.preventDefault(),be())}var sn=function(){if(Re&&ot.current.instance){var Nt=ot.current.instance.getContentHeight();an(Nt0||Ee.target.offsetWidth>0)&&Re.layout()}}catch(ke){Ze.e(ke)}finally{Ze.f()}}),ge.observe(z.current)),ge}Object(r.useEffect)(function(){return z.current&&P.e(27).then(P.t.bind(null,"M/lh",7)).then(function(Re){_=Re;var ge=_.editor.createDiffEditor(z.current,Object(X.a)(Object(X.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},W),{},{wordWrap:!0}));ne(ge);var fe=ve(ge);return function(){ge.dispose();var Ze=ge.getModel();Ze&&Ze.dispose(),fe.unobserve(z.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(r.useEffect)(function(){q&&q.setModel({original:_.editor.createModel(k,B),modified:_.editor.createModel(N,B)})},[k,N,B,q]);var le=h(A),be=h(m),we={width:le,height:be};return l.a.createElement("div",{className:"my-diff-editor",ref:z,style:we})}},Ze12:function(ze,te,P){var X=P("ItGF"),F=P("hOwI"),R=F.buildTransformer,j="___zrEVENTSAVED",T=[];function S(r,l,b,u,p){return M(T,l,u,p,!0)&&M(r,b,T[0],T[1])}function M(r,l,b,u,p){if(l.getBoundingClientRect&&X.domSupported&&!g(l)){var v=l[j]||(l[j]={}),a=c(l,v),t=E(a,v,p);if(t)return t(r,b,u),!0}return!1}function c(r,l){var b=l.markers;if(b)return b;b=l.markers=[];for(var u=["left","right"],p=["top","bottom"],v=0;v<4;v++){var a=document.createElement("div"),t=a.style,s=v%2,h=(v>>1)%2;t.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[s]+":0",p[h]+":0",u[1-s]+":auto",p[1-h]+":auto",""].join("!important;"),r.appendChild(a),b.push(a)}return b}function E(r,l,b){for(var u=b?"invTrans":"trans",p=l[u],v=l.srcCoords,a=!0,t=[],s=[],h=0;h<4;h++){var y=r[h].getBoundingClientRect(),D=2*h,C=y.left,I=y.top;t.push(C,I),a=a&&v&&C===v[D]&&I===v[D+1],s.push(r[h].offsetLeft,r[h].offsetTop)}return a&&p?p:(l.srcCoords=t,l[u]=b?R(s,t):R(t,s))}function g(r){return r.nodeName.toUpperCase()==="CANVAS"}te.transformLocalCoord=S,te.transformCoordWithViewport=M,te.isCanvasEl=g},ZpRC:function(ze,te,P){"use strict";function X(r){return typeof r=="object"&&r!=null&&r.nodeType===1}function F(r,l){return(!l||r!=="hidden")&&r!=="visible"&&r!=="clip"}function R(r,l){if(r.clientHeightl||v>r&&a=l&&t>=b?v-r-u:a>l&&tb?a-l+p:0}var T=function(r,l){var b=window,u=l.scrollMode,p=l.block,v=l.inline,a=l.boundary,t=l.skipOverflowHiddenElements,s=typeof a=="function"?a:function(rt){return rt!==a};if(!X(r))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,y=[],D=r;X(D)&&s(D);){if((D=D.parentElement)===h){y.push(D);break}D!=null&&D===document.body&&R(D)&&!R(document.documentElement)||D!=null&&R(D,t)&&y.push(D)}for(var C=b.visualViewport?b.visualViewport.width:innerWidth,I=b.visualViewport?b.visualViewport.height:innerHeight,_=window.scrollX||pageXOffset,f=window.scrollY||pageYOffset,o=r.getBoundingClientRect(),i=o.height,d=o.width,A=o.top,O=o.right,m=o.bottom,k=o.left,N=p==="start"||p==="nearest"?A:p==="end"?m:A+i/2,B=v==="center"?k+d/2:v==="end"?O:k,G=[],W=0;W=0&&k>=0&&m<=I&&O<=C&&A>=ne&&m<=le&&k>=be&&O<=ve)return G;var we=getComputedStyle(z),Re=parseInt(we.borderLeftWidth,10),ge=parseInt(we.borderTopWidth,10),fe=parseInt(we.borderRightWidth,10),Ze=parseInt(we.borderBottomWidth,10),Ot=0,Ee=0,ke="offsetWidth"in z?z.offsetWidth-z.clientWidth-Re-fe:0,de="offsetHeight"in z?z.offsetHeight-z.clientHeight-ge-Ze:0;if(h===z)Ot=p==="start"?N:p==="end"?N-I:p==="nearest"?j(f,f+I,I,ge,Ze,f+N,f+N+i,i):N-I/2,Ee=v==="start"?B:v==="center"?B-C/2:v==="end"?B-C:j(_,_+C,C,Re,fe,_+B,_+B+d,d),Ot=Math.max(0,Ot+f),Ee=Math.max(0,Ee+_);else{Ot=p==="start"?N-ne-ge:p==="end"?N-le+Ze+de:p==="nearest"?j(ne,le,V,ge,Ze+de,N,N+i,i):N-(ne+V/2)+de/2,Ee=v==="start"?B-be-Re:v==="center"?B-(be+q/2)+ke/2:v==="end"?B-ve+fe+ke:j(be,ve,q,Re,fe+ke,B,B+d,d);var me=z.scrollLeft,Le=z.scrollTop;N+=Le-(Ot=Math.max(0,Math.min(Le+Ot,z.scrollHeight-V+de))),B+=me-(Ee=Math.max(0,Math.min(me+Ee,z.scrollWidth-q+ke)))}G.push({el:z,top:Ot,left:Ee})}return G};function S(r){return r===Object(r)&&Object.keys(r).length!==0}function M(r,l){l===void 0&&(l="auto");var b="scrollBehavior"in document.body.style;r.forEach(function(u){var p=u.el,v=u.top,a=u.left;p.scroll&&b?p.scroll({top:v,left:a,behavior:l}):(p.scrollTop=v,p.scrollLeft=a)})}function c(r){return r===!1?{block:"end",inline:"nearest"}:S(r)?r:{block:"start",inline:"nearest"}}function E(r,l){var b=!r.ownerDocument.documentElement.contains(r);if(S(l)&&typeof l.behavior=="function")return l.behavior(b?[]:T(r,l));if(b)return;var u=c(l);return M(T(r,u),u.behavior)}var g=te.a=E},aKvl:function(ze,te,P){var X=P("Sj9i"),F=X.quadraticProjectPoint;function R(j,T,S,M,c,E,g,r,l){if(g===0)return!1;var b=g;if(l>T+b&&l>M+b&&l>E+b||lj+b&&r>S+b&&r>c+b||r1?q-1:0),ve=1;ve1?W-1:0),Y=1;Y=0)return parseInt(G.slice(G.indexOf("e-")+2),10);var W=0;return G.indexOf(".")>=0&&(W=G.length-G.indexOf(".")-1),W},m.getInputDisplayValue=function(B){var G=B||m.state,W=G.focused,z=G.inputValue,Y=G.value,V;W?V=z:V=m.toPrecisionAsStep(Y),V==null&&(V="");var q=m.formatWrapper(V);return C(m.props.decimalSeparator)&&(q=q.toString().replace(".",m.props.decimalSeparator)),q},m.recordCursorPosition=function(){try{m.cursorStart=m.input.selectionStart,m.cursorEnd=m.input.selectionEnd,m.currentValue=m.input.value,m.cursorBefore=m.input.value.substring(0,m.cursorStart),m.cursorAfter=m.input.value.substring(m.cursorEnd)}catch(B){}},m.restoreByAfter=function(B){if(B===void 0)return!1;var G=m.input.value,W=G.lastIndexOf(B);if(W===-1)return!1;var z=m.cursorBefore.length;return m.lastKeyCode===l.a.DELETE&&m.cursorBefore.charAt(z-1)===B[0]?(m.fixCaret(z,z),!0):W+B.length===G.length?(m.fixCaret(W,W),!0):!1},m.partRestoreByAfter=function(B){return B===void 0?!1:Array.prototype.some.call(B,function(G,W){var z=B.substring(W);return m.restoreByAfter(z)})},m.isNotCompleteNumber=function(B){return isNaN(B)||B===""||B===null||B&&B.toString().indexOf(".")===B.toString().length-1},m.stop=function(){m.autoStepTimer&&clearTimeout(m.autoStepTimer)},m.down=function(B,G,W){m.pressingUpOrDown=!0,m.step("down",B,G,W)},m.up=function(B,G,W){m.pressingUpOrDown=!0,m.step("up",B,G,W)},m.saveInput=function(B){m.input=B};var k=O.value;k===void 0&&(k=O.defaultValue),m.state={focused:O.autoFocus};var N=m.getValidValue(m.toNumber(k));return m.state=u(u({},m.state),{},{inputValue:m.toPrecisionAsStep(N),value:N}),m}return Object(j.a)(A,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(m){var k=this.props,N=k.value,B=k.onChange,G=k.max,W=k.min,z=this.state.focused;if(m){if(!I(m.value,N)||!I(m.max,G)||!I(m.min,W)){var Y=z?N:this.getValidValue(N),V;this.pressingUpOrDown?V=Y:this.inputting?V=this.rawInput:V=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:V})}var q="value"in this.props?N:this.state.value;"max"in this.props&&m.max!==G&&typeof q=="number"&&q>G&&B&&B(G),"min"in this.props&&m.min!==W&&typeof q=="number"&&q1&&arguments[1]!==void 0?arguments[1]:this.props.min,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,B=parseFloat(m);return isNaN(B)?m:(BN&&(B=N),B)}},{key:"setValue",value:function(m,k){var N=this.props.precision,B=this.isNotCompleteNumber(parseFloat(m))?null:parseFloat(m),G=this.state.value,W=G===void 0?null:G,z=this.state.inputValue,Y=z===void 0?null:z,V=typeof B=="number"?B.toFixed(N):"".concat(B),q=B!==W||V!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},k)):this.setState({value:B,inputValue:this.toPrecisionAsStep(m)},k),q&&this.props.onChange(B),B}},{key:"getMaxPrecision",value:function(m){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.props,B=N.precision,G=N.step;if(C(B))return B;var W=this.getPrecision(k),z=this.getPrecision(G),Y=this.getPrecision(m);return m?Math.max(Y,W+z):W+z}},{key:"getPrecisionFactor",value:function(m){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.getMaxPrecision(m,k);return Math.pow(10,N)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(m){return this.props.formatter?this.props.formatter(m):m}},{key:"toPrecisionAsStep",value:function(m){if(this.isNotCompleteNumber(m)||m==="")return m;var k=Math.abs(this.getMaxPrecision(m));return isNaN(k)?m.toString():Number(m).toFixed(k)}},{key:"toNumber",value:function(m){var k=this.props.precision,N=this.state.focused,B=m&&m.length>16&&N;return this.isNotCompleteNumber(m)||B?m:C(k)?Math.round(m*Math.pow(10,k))/Math.pow(10,k):Number(m)}},{key:"upStep",value:function(m,k){var N=this.props.step,B=this.getPrecisionFactor(m,k),G=Math.abs(this.getMaxPrecision(m,k)),W=((B*m+B*N*k)/B).toFixed(G);return this.toNumber(W)}},{key:"downStep",value:function(m,k){var N=this.props.step,B=this.getPrecisionFactor(m,k),G=Math.abs(this.getMaxPrecision(m,k)),W=((B*m-B*N*k)/B).toFixed(G);return this.toNumber(W)}},{key:"step",value:function(m,k){var N=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,G=arguments.length>3?arguments[3]:void 0;this.stop(),k&&(k.persist(),k.preventDefault());var W=this.props;if(W.disabled)return;var z=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(z))return;var Y=this["".concat(m,"Step")](z,B),V=Y>W.max||YW.max?Y=W.max:Y=ne),ft=(on||on===0)&&(isNaN(on)||Number(on)<=ve),Me=Je||B||G,xe=ft||B||G,Te=r()("".concat(N,"-handler"),"".concat(N,"-handler-up"),Object(F.a)({},"".concat(N,"-handler-up-disabled"),Me)),oe=r()("".concat(N,"-handler"),"".concat(N,"-handler-down"),Object(F.a)({},"".concat(N,"-handler-down-disabled"),xe)),ue=W?{onTouchStart:Me?a:this.up,onTouchEnd:this.stop}:{onMouseDown:Me?a:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},pe=W?{onTouchStart:xe?a:this.down,onTouchEnd:this.stop}:{onMouseDown:xe?a:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return E.a.createElement("div",{className:Ie,style:le,title:be,onMouseEnter:we,onMouseLeave:Re,onMouseOver:ge,onMouseOut:fe,onFocus:function(){return null},onBlur:function(){return null}},E.a.createElement("div",{className:"".concat(N,"-handler-wrap")},E.a.createElement("span",Object.assign({unselectable:"on"},ue,{role:"button","aria-label":"Increase Value","aria-disabled":Me,className:Te}),Y||E.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-up-inner"),onClick:t})),E.a.createElement("span",Object.assign({unselectable:"on"},pe,{role:"button","aria-label":"Decrease Value","aria-disabled":xe,className:oe}),V||E.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-down-inner"),onClick:t}))),E.a.createElement("div",{className:"".concat(N,"-input-wrap")},E.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":ve,"aria-valuemax":ne,"aria-valuenow":on,required:Ze,type:ke,placeholder:de,onPaste:Pt,onClick:Ot,onMouseUp:this.onMouseUp,className:"".concat(N,"-input"),tabIndex:Ee,autoComplete:z,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ot?this.onKeyDown:a,onKeyUp:ot?this.onKeyUp:a,autoFocus:at,maxLength:Ge,readOnly:G,disabled:B,max:ne,min:ve,step:Oe,name:dt,title:be,id:me,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Et),pattern:rt,inputMode:Le,onInput:bt},De))))}}]),A}(E.a.Component);_.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:D,min:-D,step:1,style:{},onChange:a,onKeyDown:a,onPressEnter:a,onFocus:a,onBlur:a,parser:s,required:!1,autoComplete:"off"};var f=_,o=te.a=f},dqUG:function(ze,te,P){var X=P("Gev7"),F=P("bYtY"),R=P("6GrX"),j=P("pzxd"),T=P("gut8"),S=T.ContextCachedBy,M=function(E){X.call(this,E)};M.prototype={constructor:M,type:"text",brush:function(E,g){var r=this.style;this.__dirty&&j.normalizeTextStyle(r,!0),r.fill=r.stroke=r.shadowBlur=r.shadowColor=r.shadowOffsetX=r.shadowOffsetY=null;var l=r.text;if(l!=null&&(l+=""),!j.needDrawText(l,r)){E.__attrCachedBy=S.NONE;return}this.setTransform(E),j.renderText(this,E,l,r,null,g),this.restoreTransform(E)},getBoundingRect:function(){var E=this.style;if(this.__dirty&&j.normalizeTextStyle(E,!0),!this._rect){var g=E.text;g!=null?g+="":g="";var r=R.getBoundingRect(E.text+"",E.font,E.textAlign,E.textVerticalAlign,E.textPadding,E.textLineHeight,E.rich);if(r.x+=E.x||0,r.y+=E.y||0,j.getStroke(E.textStroke,E.textStrokeWidth)){var l=E.textStrokeWidth;r.x-=l/2,r.y-=l/2,r.width+=l,r.height+=l}this._rect=r}return this._rect}},F.inherits(M,X);var c=M;ze.exports=c},fW2E:function(ze,te){var P={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function X(F,R,j){return P.hasOwnProperty(R)?j*=F.dpr:j}ze.exports=X},fjLI:function(ze,te,P){"use strict";P.d(te,"e",function(){return g}),P.d(te,"a",function(){return r}),P.d(te,"c",function(){return l}),P.d(te,"d",function(){return u}),P.d(te,"b",function(){return p});var X=P("8HAY"),F=P("Cg/j"),R=P("T8No"),j=P("nnTU"),T=P("MI8n"),S=function(){var v=function(a,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,h){s.__proto__=h}||function(s,h){for(var y in h)h.hasOwnProperty(y)&&(s[y]=h[y])},v(a,t)};return function(a,t){v(a,t);function s(){this.constructor=a}a.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}}(),M=function(v,a,t,s){var h=arguments.length,y=h<3?a:s===null?s=Object.getOwnPropertyDescriptor(a,t):s,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(v,a,t,s);else for(var C=v.length-1;C>=0;C--)(D=v[C])&&(y=(h<3?D(y):h>3?D(a,t,y):D(a,t))||y);return h>3&&y&&Object.defineProperty(a,t,y),y},c=function(v,a){return function(t,s){a(t,s,v)}},E=function(){for(var v=0,a=0,t=arguments.length;a=0&&(h.splice(y,1),s._onDidChangeMenu.fire(a))}}},v.prototype.getMenuItems=function(a){var t=(this._menuItems.get(a)||[]).slice(0);return a===0&&this._appendImplicitItems(t),t},v.prototype._appendImplicitItems=function(a){for(var t=new Set,s=a.filter(function(_){return g(_)}),h=0,y=s;hF&&S>j||ST?M:0}ze.exports=P},iXp4:function(ze,te,P){var X=P("ItGF"),F=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function R(j){return X.browser.ie&&X.browser.version>=11?function(){var T=this.__clipPaths,S=this.style,M;if(T)for(var c=0;cgt&&(mn=gt-un),Object(T.useMemo)(function(){if(!Ce.length)return[0,0];for(var wn=Ce.length,Gn=wn,ar=0;arHe+mn){Gn=ar-1;break}}for(var yr=0,br=wn-1;br>=0;br-=1){var vr=Ae.get(Ce[br].key)||y;if(vr[it]1&&arguments[1]!==void 0?arguments[1]:!1,Ne=$e&&typeof $e.getBoundingClientRect=="function"&&$e.getBoundingClientRect().width;if(Ne){if(tt){var se=getComputedStyle($e),Ce=se.marginLeft,he=se.marginRight;Ne+=+Ce.replace("px","")+ +he.replace("px","")}Ne=+Ne.toFixed(6)}return Ne||0},at=function($e,tt,Ne){$e&&Object(N.a)($e.style)==="object"&&($e.style[tt]=Ne)},dt=function(){return Ee.any},Pt=P("bdgK"),bt=P("i8i4"),zt=P.n(bt),It=P("wgJM"),on=P("l4aY"),dn=P("m+aA"),Ie=P("c+Xe"),De=P("zT1h"),ot=P("QC+M");function Et(Ae,$e,tt){return tt?Ae[0]===$e[0]:Ae[0]===$e[0]&&Ae[1]===$e[1]}function Je(Ae,$e,tt){var Ne=Ae[$e]||{};return Object(j.a)(Object(j.a)({},Ne),tt)}function ft(Ae,$e,tt,Ne){for(var se=tt.points,Ce=Object.keys(Ae),he=0;he1&&arguments[1]!==void 0?arguments[1]:2;$e();var Ce=Object(It.a)(function(){se<=1?Ne({isCanceled:function(){return Ce!==Ae.current}}):tt(Ne,se-1)});Ae.current=Ce}return T.useEffect(function(){return function(){$e()}},[]),[tt,$e]},cr=[pt,en,an,st],gr=!1,or=!0;function kn(Ae){return Ae===an||Ae===st}var Fr=function(Ae,$e){var tt=T.useState(Lt),Ne=Object(F.a)(tt,2),se=Ne[0],Ce=Ne[1],he=Mn(),je=Object(F.a)(he,2),Fe=je[0],it=je[1];function He(){Ce(pt)}return gn(function(){if(se!==Lt&&se!==st){var gt=cr.indexOf(se),Bt=cr[gt+1],un=$e(se);un===gr?Ce(Bt):Fe(function(mn){function wn(){if(mn.isCanceled())return;Ce(Bt)}un===!0?wn():Promise.resolve(un).then(wn)})}},[Ae,se]),T.useEffect(function(){return function(){it()}},[]),[He,se]},ea=function(Ae){var $e=Object(T.useRef)(),tt=Object(T.useRef)(Ae);tt.current=Ae;var Ne=T.useCallback(function(he){tt.current(he)},[]);function se(he){he&&(he.removeEventListener(rn,Ne),he.removeEventListener(nn,Ne))}function Ce(he){$e.current&&$e.current!==he&&se($e.current),he&&he!==$e.current&&(he.addEventListener(rn,Ne),he.addEventListener(nn,Ne),$e.current=he)}return T.useEffect(function(){return function(){se($e.current)}},[]),[Ce,se]};function Mr(Ae,$e,tt,Ne){var se=Ne.motionEnter,Ce=se===void 0?!0:se,he=Ne.motionAppear,je=he===void 0?!0:he,Fe=Ne.motionLeave,it=Fe===void 0?!0:Fe,He=Ne.motionDeadline,gt=Ne.motionLeaveImmediately,Bt=Ne.onAppearPrepare,un=Ne.onEnterPrepare,mn=Ne.onLeavePrepare,wn=Ne.onAppearStart,Gn=Ne.onEnterStart,ar=Ne.onLeaveStart,ir=Ne.onAppearActive,yr=Ne.onEnterActive,br=Ne.onLeaveActive,vr=Ne.onAppearEnd,Er=Ne.onEnterEnd,Cn=Ne.onLeaveEnd,kt=Ne.onVisibleChanged,pn=xt(),Sn=Object(F.a)(pn,2),Rt=Sn[0],Tn=Sn[1],sr=xt(Tt),wr=Object(F.a)(sr,2),$n=wr[0],Dr=wr[1],Kr=xt(null),Rr=Object(F.a)(Kr,2),Gr=Rr[0],Hr=Rr[1],Ur=Object(T.useRef)(!1),Ir=Object(T.useRef)(null),ur=Object(T.useRef)(!1),ha=Object(T.useRef)(null);function Qa(){var qr=tt();return qr||ha.current}var Na=Object(T.useRef)(!1);function _a(qr){var $r=Qa();if(qr&&!qr.deadline&&qr.target!==$r)return;var ya;$n===ct&&Na.current?ya=vr==null?void 0:vr($r,qr):$n===ye&&Na.current?ya=Er==null?void 0:Er($r,qr):$n===Pe&&Na.current&&(ya=Cn==null?void 0:Cn($r,qr)),ya!==!1&&!ur.current&&(Dr(Tt),Hr(null))}var ra=ea(_a),Qr=Object(F.a)(ra,1),Zr=Qr[0],aa=T.useMemo(function(){var qr,$r,ya;switch($n){case"appear":return qr={},Object(X.a)(qr,pt,Bt),Object(X.a)(qr,en,wn),Object(X.a)(qr,an,ir),qr;case"enter":return $r={},Object(X.a)($r,pt,un),Object(X.a)($r,en,Gn),Object(X.a)($r,an,yr),$r;case"leave":return ya={},Object(X.a)(ya,pt,mn),Object(X.a)(ya,en,ar),Object(X.a)(ya,an,br),ya;default:return{}}},[$n]),ja=Fr($n,function(qr){if(qr===pt){var $r=aa[pt];return $r?$r(Qa()):gr}if(Jr in aa){var ya;Hr(((ya=aa[Jr])===null||ya===void 0?void 0:ya.call(aa,Qa(),null))||null)}return Jr===an&&(Zr(Qa()),He>0&&(clearTimeout(Ir.current),Ir.current=setTimeout(function(){_a({deadline:!0})},He))),or}),hi=Object(F.a)(ja,2),si=hi[0],Jr=hi[1],Ja=kn(Jr);Na.current=Ja,gn(function(){Tn($e);var qr=Ur.current;if(Ur.current=!0,!Ae)return;var $r;!qr&&$e&&je&&($r=ct),qr&&$e&&Ce&&($r=ye),(qr&&!$e&&it||!qr&>&&!$e&&it)&&($r=Pe),$r&&(Dr($r),si())},[$e]),Object(T.useEffect)(function(){($n===ct&&!je||$n===ye&&!Ce||$n===Pe&&!it)&&Dr(Tt)},[je,Ce,it]),Object(T.useEffect)(function(){return function(){clearTimeout(Ir.current),ur.current=!0}},[]),Object(T.useEffect)(function(){Rt!==void 0&&$n===Tt&&(kt==null||kt(Rt))},[Rt,$n]);var Za=Gr;return aa[pt]&&Jr===en&&(Za=Object(j.a)({transition:"none"},Za)),[$n,Jr,Za,Rt!=null?Rt:$e]}var pr=function(Ae){Object(o.a)(tt,Ae);var $e=Object(i.a)(tt);function tt(){return Object(I.a)(this,tt),$e.apply(this,arguments)}return Object(_.a)(tt,[{key:"render",value:function(){return this.props.children}}]),tt}(T.Component),Nr=pr;function ta(Ae){var $e=Ae;Object(N.a)(Ae)==="object"&&($e=Ae.transitionSupport);function tt(se){return!!(se.motionName&&$e)}var Ne=T.forwardRef(function(se,Ce){var he=se.visible,je=he===void 0?!0:he,Fe=se.removeOnLeave,it=Fe===void 0?!0:Fe,He=se.forceRender,gt=se.children,Bt=se.motionName,un=se.leavedClassName,mn=se.eventProps,wn=tt(se),Gn=Object(T.useRef)(),ar=Object(T.useRef)();function ir(){try{return Object(dn.a)(Gn.current||ar.current)}catch(Dr){return null}}var yr=Mr(wn,je,ir,se),br=Object(F.a)(yr,4),vr=br[0],Er=br[1],Cn=br[2],kt=br[3],pn=T.useRef(kt);kt&&(pn.current=!0);var Sn=Object(T.useRef)(Ce);Sn.current=Ce;var Rt=T.useCallback(function(Dr){Gn.current=Dr,Object(Ie.b)(Sn.current,Dr)},[]),Tn,sr=Object(j.a)(Object(j.a)({},mn),{},{visible:je});if(!gt)Tn=null;else if(vr===Tt||!tt(se))kt?Tn=gt(Object(j.a)({},sr),Rt):!it&&pn.current?Tn=gt(Object(j.a)(Object(j.a)({},sr),{},{className:un}),Rt):He?Tn=gt(Object(j.a)(Object(j.a)({},sr),{},{style:{display:"none"}}),Rt):Tn=null;else{var wr,$n;Er===pt?$n="prepare":kn(Er)?$n="active":Er===en&&($n="start"),Tn=gt(Object(j.a)(Object(j.a)({},sr),{},{className:M()(St(Bt,vr),(wr={},Object(X.a)(wr,St(Bt,"".concat(vr,"-").concat($n)),$n),Object(X.a)(wr,Bt,typeof Bt=="string"),wr)),style:Cn}),Rt)}return T.createElement(Nr,{ref:ar},Tn)});return Ne.displayName="CSSMotion",Ne}var ca=ta(sn),Zt="add",In="keep",hr="remove",Or="removed";function _r(Ae){var $e;return Ae&&Object(N.a)(Ae)==="object"&&"key"in Ae?$e=Ae:$e={key:Ae},Object(j.a)(Object(j.a)({},$e),{},{key:String($e.key)})}function Sr(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ae.map(_r)}function J(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tt=[],Ne=0,se=$e.length,Ce=Sr(Ae),he=Sr($e);Ce.forEach(function(it){for(var He=!1,gt=Ne;gt1});return Fe.forEach(function(it){tt=tt.filter(function(He){var gt=He.key,Bt=He.status;return gt!==it||Bt!==hr}),tt.forEach(function(He){He.key===it&&(He.status=In)})}),tt}var U=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function H(Ae){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca,tt=function(Ne){Object(o.a)(Ce,Ne);var se=Object(i.a)(Ce);function Ce(){var he;return Object(I.a)(this,Ce),he=se.apply(this,arguments),he.state={keyEntities:[]},he.removeKey=function(je){he.setState(function(Fe){var it=Fe.keyEntities;return{keyEntities:it.map(function(He){return He.key!==je?He:Object(j.a)(Object(j.a)({},He),{},{status:Or})})}})},he}return Object(_.a)(Ce,[{key:"render",value:function(){var je=this,Fe=this.state.keyEntities,it=this.props,He=it.component,gt=it.children,Bt=it.onVisibleChanged,un=Object(R.a)(it,["component","children","onVisibleChanged"]),mn=He||T.Fragment,wn={};return U.forEach(function(Gn){wn[Gn]=un[Gn],delete un[Gn]}),delete un.keys,T.createElement(mn,un,Fe.map(function(Gn){var ar=Gn.status,ir=Object(R.a)(Gn,["status"]),yr=ar===Zt||ar===In;return T.createElement($e,Object(C.a)({},wn,{key:ir.key,visible:yr,eventProps:ir,onVisibleChanged:function(vr){Bt==null||Bt(vr,{key:ir.key}),vr||je.removeKey(ir.key)}}),gt)}))}}],[{key:"getDerivedStateFromProps",value:function(je,Fe){var it=je.keys,He=Fe.keyEntities,gt=Sr(it),Bt=J(He,gt);return{keyEntities:Bt.filter(function(un){var mn=He.find(function(wn){var Gn=wn.key;return un.key===Gn});return!(mn&&mn.status===Or&&un.status===hr)})}}}]),Ce}(T.Component);return tt.defaultProps={component:"div"},tt}var $=H(sn),re=ca;function ee(Ae){var $e=Ae.prefixCls,tt=Ae.motion,Ne=Ae.animation,se=Ae.transitionName;return tt||(Ne?{motionName:"".concat($e,"-").concat(Ne)}:se?{motionName:se}:null)}function Qe(Ae){var $e=Ae.prefixCls,tt=Ae.visible,Ne=Ae.zIndex,se=Ae.mask,Ce=Ae.maskMotion,he=Ae.maskAnimation,je=Ae.maskTransitionName;if(!se)return null;var Fe={};return(Ce||je||he)&&(Fe=Object(j.a)({motionAppear:!0},ee({motion:Ce,prefixCls:$e,transitionName:je,animation:he}))),T.createElement(re,Object(C.a)({},Fe,{visible:tt,removeOnLeave:!0}),function(it){var He=it.className;return T.createElement("div",{style:{zIndex:Ne},className:M()("".concat($e,"-mask"),He)})})}var cn=P("9mu1"),Dn=P("o0o1"),Wn=P.n(Dn),fn=P("HaE+"),tr=["measure","align",null,"motion"],nr=function(Ae,$e){var tt=Object(T.useState)(null),Ne=Object(F.a)(tt,2),se=Ne[0],Ce=Ne[1],he=Object(T.useRef)(),je=Object(T.useRef)(!1);function Fe(gt){je.current||Ce(gt)}function it(){It.a.cancel(he.current)}function He(gt){it(),he.current=Object(It.a)(function(){Fe(function(Bt){switch(se){case"align":return"motion";case"motion":return"stable";default:}return Bt}),gt==null||gt()})}return Object(T.useEffect)(function(){Fe("measure")},[Ae]),Object(T.useEffect)(function(){switch(se){case"measure":$e();break;default:}se&&(he.current=Object(It.a)(Object(fn.a)(Wn.a.mark(function gt(){var Bt,un;return Wn.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:Bt=tr.indexOf(se),un=tr[Bt+1],un&&Bt!==-1&&Fe(un);case 3:case"end":return wn.stop()}},gt)}))))},[se]),Object(T.useEffect)(function(){return function(){je.current=!0,it()}},[]),[se,He]},jr=function(Ae){var $e=T.useState({width:0,height:0}),tt=Object(F.a)($e,2),Ne=tt[0],se=tt[1];function Ce(je){se({width:je.offsetWidth,height:je.offsetHeight})}var he=T.useMemo(function(){var je={};if(Ae){var Fe=Ne.width,it=Ne.height;Ae.indexOf("height")!==-1&&it?je.height=it:Ae.indexOf("minHeight")!==-1&&it&&(je.minHeight=it),Ae.indexOf("width")!==-1&&Fe?je.width=Fe:Ae.indexOf("minWidth")!==-1&&Fe&&(je.minWidth=Fe)}return je},[Ae,Ne]);return[he,Ce]},ua=T.forwardRef(function(Ae,$e){var tt=Ae.visible,Ne=Ae.prefixCls,se=Ae.className,Ce=Ae.style,he=Ae.children,je=Ae.zIndex,Fe=Ae.stretch,it=Ae.destroyPopupOnHide,He=Ae.forceRender,gt=Ae.align,Bt=Ae.point,un=Ae.getRootDomNode,mn=Ae.getClassNameFromAlign,wn=Ae.onAlign,Gn=Ae.onMouseEnter,ar=Ae.onMouseLeave,ir=Ae.onMouseDown,yr=Ae.onTouchStart,br=Object(T.useRef)(),vr=Object(T.useRef)(),Er=Object(T.useState)(),Cn=Object(F.a)(Er,2),kt=Cn[0],pn=Cn[1],Sn=jr(Fe),Rt=Object(F.a)(Sn,2),Tn=Rt[0],sr=Rt[1];function wr(){Fe&&sr(un())}var $n=nr(tt,wr),Dr=Object(F.a)($n,2),Kr=Dr[0],Rr=Dr[1],Gr=Object(T.useRef)();function Hr(){return Bt||un}function Ur(){var ra;(ra=br.current)===null||ra===void 0||ra.forceAlign()}function Ir(ra,Qr){var Zr=mn(Qr);kt!==Zr&&pn(Zr),Kr==="align"&&(kt!==Zr?Promise.resolve().then(function(){Ur()}):Rr(function(){var aa;(aa=Gr.current)===null||aa===void 0||aa.call(Gr)}),wn==null||wn(ra,Qr))}var ur=Object(j.a)({},ee(Ae));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ra){var Qr=ur[ra];ur[ra]=function(Zr,aa){return Rr(),Qr==null?void 0:Qr(Zr,aa)}});function ha(){return new Promise(function(ra){Gr.current=ra})}T.useEffect(function(){!ur.motionName&&Kr==="motion"&&Rr()},[ur.motionName,Kr]),T.useImperativeHandle($e,function(){return{forceAlign:Ur,getElement:function(){return vr.current}}});var Qa=Object(j.a)(Object(j.a)({},Tn),{},{zIndex:je,opacity:Kr==="motion"||Kr==="stable"||!tt?void 0:0,pointerEvents:Kr==="stable"?void 0:"none"},Ce),Na=!0;(gt==null?void 0:gt.points)&&(Kr==="align"||Kr==="stable")&&(Na=!1);var _a=he;return T.Children.count(he)>1&&(_a=T.createElement("div",{className:"".concat(Ne,"-content")},he)),T.createElement(re,Object(C.a)({visible:tt,ref:vr,leavedClassName:"".concat(Ne,"-hidden")},ur,{onAppearPrepare:ha,onEnterPrepare:ha,removeOnLeave:it,forceRender:He}),function(ra,Qr){var Zr=ra.className,aa=ra.style,ja=M()(Ne,se,kt,Zr);return T.createElement(cn.a,{target:Hr(),key:"popup",ref:br,monitorWindowResize:!0,disabled:Na,align:gt,onAlign:Ir},T.createElement("div",{ref:Qr,className:ja,onMouseEnter:Gn,onMouseLeave:ar,onMouseDownCapture:ir,onTouchStartCapture:yr,style:Object(j.a)(Object(j.a)({},aa),Qa)},_a))})});ua.displayName="PopupInner";var va=ua,zr=T.forwardRef(function(Ae,$e){var tt=Ae.prefixCls,Ne=Ae.visible,se=Ae.zIndex,Ce=Ae.children,he=Ae.mobile;he=he===void 0?{}:he;var je=he.popupClassName,Fe=he.popupStyle,it=he.popupMotion,He=it===void 0?{}:it,gt=he.popupRender,Bt=T.useRef();T.useImperativeHandle($e,function(){return{forceAlign:function(){},getElement:function(){return Bt.current}}});var un=Object(j.a)({zIndex:se},Fe),mn=Ce;return T.Children.count(Ce)>1&&(mn=T.createElement("div",{className:"".concat(tt,"-content")},Ce)),gt&&(mn=gt(mn)),T.createElement(re,Object(C.a)({visible:Ne,ref:Bt,removeOnLeave:!0},He),function(wn,Gn){var ar=wn.className,ir=wn.style,yr=M()(tt,je,ar);return T.createElement("div",{ref:Gn,className:yr,style:Object(j.a)(Object(j.a)({},ir),un)},mn)})});zr.displayName="MobilePopupInner";var zn=zr,_n=["visible","mobile"],yn=T.forwardRef(function(Ae,$e){var tt=Ae.visible,Ne=Ae.mobile,se=Object(R.a)(Ae,_n),Ce=Object(T.useState)(tt),he=Object(F.a)(Ce,2),je=he[0],Fe=he[1],it=Object(T.useState)(!1),He=Object(F.a)(it,2),gt=He[0],Bt=He[1],un=Object(j.a)(Object(j.a)({},se),{},{visible:je});Object(T.useEffect)(function(){Fe(tt),tt&&Ne&&Bt(Me())},[tt,Ne]);var mn=gt?T.createElement(zn,Object(C.a)({},un,{mobile:Ne,ref:$e})):T.createElement(va,Object(C.a)({},un,{ref:$e}));return T.createElement("div",null,T.createElement(Qe,un),mn)});yn.displayName="Popup";var Hn=yn,mr=T.createContext(null),Xn=mr;function Vn(){}function Kn(){return""}function lr(Ae){return Ae?Ae.ownerDocument:window.document}var Yn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Jn(Ae){var $e=function(tt){Object(o.a)(se,tt);var Ne=Object(i.a)(se);function se(Ce){var he;Object(I.a)(this,se),he=Ne.call(this,Ce),he.popupRef=T.createRef(),he.triggerRef=T.createRef(),he.attachId=void 0,he.clickOutsideHandler=void 0,he.touchOutsideHandler=void 0,he.contextMenuOutsideHandler1=void 0,he.contextMenuOutsideHandler2=void 0,he.mouseDownTimeout=void 0,he.focusTime=void 0,he.preClickTime=void 0,he.preTouchTime=void 0,he.delayTimer=void 0,he.hasPopupMouseDown=void 0,he.onMouseEnter=function(Fe){var it=he.props.mouseEnterDelay;he.fireEvents("onMouseEnter",Fe),he.delaySetPopupVisible(!0,it,it?null:Fe)},he.onMouseMove=function(Fe){he.fireEvents("onMouseMove",Fe),he.setPoint(Fe)},he.onMouseLeave=function(Fe){he.fireEvents("onMouseLeave",Fe),he.delaySetPopupVisible(!1,he.props.mouseLeaveDelay)},he.onPopupMouseEnter=function(){he.clearDelayTimer()},he.onPopupMouseLeave=function(Fe){var it;if(Fe.relatedTarget&&!Fe.relatedTarget.setTimeout&&Object(on.a)((it=he.popupRef.current)===null||it===void 0?void 0:it.getElement(),Fe.relatedTarget))return;he.delaySetPopupVisible(!1,he.props.mouseLeaveDelay)},he.onFocus=function(Fe){he.fireEvents("onFocus",Fe),he.clearDelayTimer(),he.isFocusToShow()&&(he.focusTime=Date.now(),he.delaySetPopupVisible(!0,he.props.focusDelay))},he.onMouseDown=function(Fe){he.fireEvents("onMouseDown",Fe),he.preClickTime=Date.now()},he.onTouchStart=function(Fe){he.fireEvents("onTouchStart",Fe),he.preTouchTime=Date.now()},he.onBlur=function(Fe){he.fireEvents("onBlur",Fe),he.clearDelayTimer(),he.isBlurToHide()&&he.delaySetPopupVisible(!1,he.props.blurDelay)},he.onContextMenu=function(Fe){Fe.preventDefault(),he.fireEvents("onContextMenu",Fe),he.setPopupVisible(!0,Fe)},he.onContextMenuClose=function(){he.isContextMenuToShow()&&he.close()},he.onClick=function(Fe){if(he.fireEvents("onClick",Fe),he.focusTime){var it;if(he.preClickTime&&he.preTouchTime?it=Math.min(he.preClickTime,he.preTouchTime):he.preClickTime?it=he.preClickTime:he.preTouchTime&&(it=he.preTouchTime),Math.abs(it-he.focusTime)<20)return;he.focusTime=0}he.preClickTime=0,he.preTouchTime=0,he.isClickToShow()&&(he.isClickToHide()||he.isBlurToHide())&&Fe&&Fe.preventDefault&&Fe.preventDefault();var He=!he.state.popupVisible;(he.isClickToHide()&&!He||He&&he.isClickToShow())&&he.setPopupVisible(!he.state.popupVisible,Fe)},he.onPopupMouseDown=function(){if(he.hasPopupMouseDown=!0,clearTimeout(he.mouseDownTimeout),he.mouseDownTimeout=window.setTimeout(function(){he.hasPopupMouseDown=!1},0),he.context){var Fe;(Fe=he.context).onPopupMouseDown.apply(Fe,arguments)}},he.onDocumentClick=function(Fe){if(he.props.mask&&!he.props.maskClosable)return;var it=Fe.target,He=he.getRootDomNode(),gt=he.getPopupDomNode();(!Object(on.a)(He,it)||he.isContextMenuOnly())&&!Object(on.a)(gt,it)&&!he.hasPopupMouseDown&&he.close()},he.getRootDomNode=function(){var Fe=he.props.getTriggerDOMNode;if(Fe)return Fe(he.triggerRef.current);try{var it=Object(dn.a)(he.triggerRef.current);if(it)return it}catch(He){}return zt.a.findDOMNode(Object(f.a)(he))},he.getPopupClassNameFromAlign=function(Fe){var it=[],He=he.props,gt=He.popupPlacement,Bt=He.builtinPlacements,un=He.prefixCls,mn=He.alignPoint,wn=He.getPopupClassNameFromAlign;return gt&&Bt&&it.push(ft(Bt,un,Fe,mn)),wn&&it.push(wn(Fe)),it.join(" ")},he.getComponent=function(){var Fe=he.props,it=Fe.prefixCls,He=Fe.destroyPopupOnHide,gt=Fe.popupClassName,Bt=Fe.onPopupAlign,un=Fe.popupMotion,mn=Fe.popupAnimation,wn=Fe.popupTransitionName,Gn=Fe.popupStyle,ar=Fe.mask,ir=Fe.maskAnimation,yr=Fe.maskTransitionName,br=Fe.maskMotion,vr=Fe.zIndex,Er=Fe.popup,Cn=Fe.stretch,kt=Fe.alignPoint,pn=Fe.mobile,Sn=Fe.forceRender,Rt=he.state,Tn=Rt.popupVisible,sr=Rt.point,wr=he.getPopupAlign(),$n={};return he.isMouseEnterToShow()&&($n.onMouseEnter=he.onPopupMouseEnter),he.isMouseLeaveToHide()&&($n.onMouseLeave=he.onPopupMouseLeave),$n.onMouseDown=he.onPopupMouseDown,$n.onTouchStart=he.onPopupMouseDown,T.createElement(Hn,Object(C.a)({prefixCls:it,destroyPopupOnHide:He,visible:Tn,point:kt&&sr,className:gt,align:wr,onAlign:Bt,animation:mn,getClassNameFromAlign:he.getPopupClassNameFromAlign},$n,{stretch:Cn,getRootDomNode:he.getRootDomNode,style:Gn,mask:ar,zIndex:vr,transitionName:wn,maskAnimation:ir,maskTransitionName:yr,maskMotion:br,ref:he.popupRef,motion:un,mobile:pn,forceRender:Sn}),typeof Er=="function"?Er():Er)},he.attachParent=function(Fe){It.a.cancel(he.attachId);var it=he.props,He=it.getPopupContainer,gt=it.getDocument,Bt=he.getRootDomNode(),un;He?(Bt||He.length===0)&&(un=He(Bt)):un=gt(he.getRootDomNode()).body,un?un.appendChild(Fe):he.attachId=Object(It.a)(function(){he.attachParent(Fe)})},he.getContainer=function(){var Fe=he.props.getDocument,it=Fe(he.getRootDomNode()).createElement("div");return it.style.position="absolute",it.style.top="0",it.style.left="0",it.style.width="100%",he.attachParent(it),it},he.setPoint=function(Fe){var it=he.props.alignPoint;if(!it||!Fe)return;he.setState({point:{pageX:Fe.pageX,pageY:Fe.pageY}})},he.handlePortalUpdate=function(){he.state.prevPopupVisible!==he.state.popupVisible&&he.props.afterPopupVisibleChange(he.state.popupVisible)},he.triggerContextValue={onPopupMouseDown:he.onPopupMouseDown};var je;return"popupVisible"in Ce?je=!!Ce.popupVisible:je=!!Ce.defaultPopupVisible,he.state={prevPopupVisible:je,popupVisible:je},Yn.forEach(function(Fe){he["fire".concat(Fe)]=function(it){he.fireEvents(Fe,it)}}),he}return Object(_.a)(se,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var he=this.props,je=this.state;if(je.popupVisible){var Fe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Fe=he.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(De.a)(Fe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Fe=Fe||he.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(De.a)(Fe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Fe=Fe||he.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(De.a)(Fe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(De.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),It.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var he;return((he=this.popupRef.current)===null||he===void 0?void 0:he.getElement())||null}},{key:"getPopupAlign",value:function(){var he=this.props,je=he.popupPlacement,Fe=he.popupAlign,it=he.builtinPlacements;return je&&it?Je(it,je,Fe):Fe}},{key:"setPopupVisible",value:function(he,je){var Fe=this.props.alignPoint,it=this.state.popupVisible;this.clearDelayTimer(),it!==he&&("popupVisible"in this.props||this.setState({popupVisible:he,prevPopupVisible:it}),this.props.onPopupVisibleChange(he)),Fe&&je&&he&&this.setPoint(je)}},{key:"delaySetPopupVisible",value:function(he,je,Fe){var it=this,He=je*1e3;if(this.clearDelayTimer(),He){var gt=Fe?{pageX:Fe.pageX,pageY:Fe.pageY}:null;this.delayTimer=window.setTimeout(function(){it.setPopupVisible(he,gt),it.clearDelayTimer()},He)}else this.setPopupVisible(he,Fe)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(he){var je=this.props.children.props,Fe=this.props;return je[he]&&Fe[he]?this["fire".concat(he)]:je[he]||Fe[he]}},{key:"isClickToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("click")!==-1||Fe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var he=this.props.action;return he==="contextMenu"||he.length===1&&he[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("contextMenu")!==-1||Fe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var he=this.props,je=he.action,Fe=he.hideAction;return je.indexOf("click")!==-1||Fe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("hover")!==-1||Fe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var he=this.props,je=he.action,Fe=he.hideAction;return je.indexOf("hover")!==-1||Fe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("focus")!==-1||Fe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var he=this.props,je=he.action,Fe=he.hideAction;return je.indexOf("focus")!==-1||Fe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var he;(he=this.popupRef.current)===null||he===void 0||he.forceAlign()}}},{key:"fireEvents",value:function(he,je){var Fe=this.props.children.props[he];Fe&&Fe(je);var it=this.props[he];it&&it(je)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var he=this.state.popupVisible,je=this.props,Fe=je.children,it=je.forceRender,He=je.alignPoint,gt=je.className,Bt=je.autoDestroy,un=T.Children.only(Fe),mn={key:"trigger"};this.isContextMenuToShow()?mn.onContextMenu=this.onContextMenu:mn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(mn.onClick=this.onClick,mn.onMouseDown=this.onMouseDown,mn.onTouchStart=this.onTouchStart):(mn.onClick=this.createTwoChains("onClick"),mn.onMouseDown=this.createTwoChains("onMouseDown"),mn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(mn.onMouseEnter=this.onMouseEnter,He&&(mn.onMouseMove=this.onMouseMove)):mn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?mn.onMouseLeave=this.onMouseLeave:mn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(mn.onFocus=this.onFocus,mn.onBlur=this.onBlur):(mn.onFocus=this.createTwoChains("onFocus"),mn.onBlur=this.createTwoChains("onBlur"));var wn=M()(un&&un.props&&un.props.className,gt);wn&&(mn.className=wn);var Gn=Object(j.a)({},mn);Object(Ie.c)(un)&&(Gn.ref=Object(Ie.a)(this.triggerRef,un.ref));var ar=T.cloneElement(un,Gn),ir;return(he||this.popupRef.current||it)&&(ir=T.createElement(Ae,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!he&&Bt&&(ir=null),T.createElement(Xn.Provider,{value:this.triggerContextValue},ar,ir)}}],[{key:"getDerivedStateFromProps",value:function(he,je){var Fe=he.popupVisible,it={};return Fe!==void 0&&je.popupVisible!==Fe&&(it.popupVisible=Fe,it.prevPopupVisible=je.popupVisible),it}}]),se}(T.Component);return $e.contextType=Xn,$e.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Kn,getDocument:lr,onPopupVisibleChange:Vn,afterPopupVisibleChange:Vn,onPopupAlign:Vn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},$e}var fr=Jn(ot.a),Q={adjustX:1,adjustY:1},Se={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Q,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Q,offset:[4,0]}},We={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Q,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Q,offset:[4,0]}},Xe=Se,ut=0,Ke={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},lt=function($e,tt,Ne){var se=me(tt),Ce=$e.getState();$e.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},Ce.defaultActiveFirst),{},Object(X.a)({},se,Ne))})},mt=function(Ae){Object(o.a)(tt,Ae);var $e=Object(i.a)(tt);function tt(Ne){var se;Object(I.a)(this,tt),se=$e.call(this,Ne),se.onDestroy=function(He){se.props.onDestroy(He)},se.onKeyDown=function(He){var gt=He.keyCode,Bt=se.menuInstance,un=se.props.store,mn=se.getVisible();if(gt===v.a.ENTER)return se.onTitleClick(He),lt(un,se.props.eventKey,!0),!0;if(gt===v.a.RIGHT)return mn?Bt.onKeyDown(He):(se.triggerOpenChange(!0),lt(un,se.props.eventKey,!0)),!0;if(gt===v.a.LEFT){var wn;if(mn)wn=Bt.onKeyDown(He);else return;return wn||(se.triggerOpenChange(!1),wn=!0),wn}return mn&&(gt===v.a.UP||gt===v.a.DOWN)?Bt.onKeyDown(He):void 0},se.onOpenChange=function(He){se.props.onOpenChange(He)},se.onPopupVisibleChange=function(He){se.triggerOpenChange(He,He?"mouseenter":"mouseleave")},se.onMouseEnter=function(He){var gt=se.props,Bt=gt.eventKey,un=gt.onMouseEnter,mn=gt.store;lt(mn,se.props.eventKey,!1),un({key:Bt,domEvent:He})},se.onMouseLeave=function(He){var gt=se.props,Bt=gt.parentMenu,un=gt.eventKey,mn=gt.onMouseLeave;Bt.subMenuInstance=Object(f.a)(se),mn({key:un,domEvent:He})},se.onTitleMouseEnter=function(He){var gt=se.props,Bt=gt.eventKey,un=gt.onItemHover,mn=gt.onTitleMouseEnter;un({key:Bt,hover:!0}),mn({key:Bt,domEvent:He})},se.onTitleMouseLeave=function(He){var gt=se.props,Bt=gt.parentMenu,un=gt.eventKey,mn=gt.onItemHover,wn=gt.onTitleMouseLeave;Bt.subMenuInstance=Object(f.a)(se),mn({key:un,hover:!1}),wn({key:un,domEvent:He})},se.onTitleClick=function(He){var gt=Object(f.a)(se),Bt=gt.props;if(Bt.onTitleClick({key:Bt.eventKey,domEvent:He}),Bt.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!se.getVisible(),"click"),lt(Bt.store,se.props.eventKey,!1)},se.onSubMenuClick=function(He){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(He))},se.onSelect=function(He){se.props.onSelect(He)},se.onDeselect=function(He){se.props.onDeselect(He)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.getVisible=function(){return se.state.isOpen},se.getMode=function(){return se.state.mode},se.saveMenuInstance=function(He){se.menuInstance=He},se.addKeyPath=function(He){return Object(j.a)(Object(j.a)({},He),{},{keyPath:(He.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(He,gt){var Bt=se.props.eventKey,un=function(){se.onOpenChange({key:Bt,item:Object(f.a)(se),trigger:gt,open:He})};gt==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){un()},0):un()},se.isChildrenSelected=function(){var He={find:!1};return rt(se.props.children,se.props.selectedKeys,He),He.find},se.isInlineMode=function(){return se.getMode()==="inline"},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var He=bt.findDOMNode(se.menuInstance);if(He.offsetWidth>=se.subMenuTitle.offsetWidth)return;He.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(He){se.subMenuTitle=He},se.getBaseProps=function(){var He=Object(f.a)(se),gt=He.props,Bt=se.getMode();return{mode:Bt==="horizontal"?"vertical":Bt,visible:se.getVisible(),level:gt.level+1,inlineIndent:gt.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:gt.selectedKeys,eventKey:"".concat(gt.eventKey,"-menu-"),openKeys:gt.openKeys,motion:gt.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:gt.subMenuOpenDelay,parentMenu:Object(f.a)(se),subMenuCloseDelay:gt.subMenuCloseDelay,forceSubMenuRender:gt.forceSubMenuRender,triggerSubMenuAction:gt.triggerSubMenuAction,builtinPlacements:gt.builtinPlacements,defaultActiveFirst:gt.store.getState().defaultActiveFirst[me(gt.eventKey)],multiple:gt.multiple,prefixCls:gt.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:gt.itemIcon,expandIcon:gt.expandIcon,direction:gt.direction}},se.getMotion=function(He,gt){var Bt=Object(f.a)(se),un=Bt.haveRendered,mn=se.props,wn=mn.motion,Gn=mn.rootPrefixCls,ar=Object(j.a)(Object(j.a)({},wn),{},{leavedClassName:"".concat(Gn,"-hidden"),removeOnLeave:!1,motionAppear:un||!gt||He!=="inline"});return ar};var Ce=Ne.store,he=Ne.eventKey,je=Ce.getState(),Fe=je.defaultActiveFirst;se.isRootMenu=!1;var it=!1;return Fe&&(it=Fe[he]),lt(Ce,he,it),se.state={mode:Ne.mode,isOpen:Ne.isOpen},se}return Object(_.a)(tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,Ce=this.props,he=Ce.mode,je=Ce.parentMenu,Fe=Ce.manualRef,it=Ce.isOpen,He=function(){se.setState({mode:he,isOpen:it})},gt=it!==this.state.isOpen,Bt=he!==this.state.mode;if((Bt||gt)&&(It.a.cancel(this.updateStateRaf),Bt?this.updateStateRaf=Object(It.a)(He):He()),Fe&&Fe(this),he!=="horizontal"||!(je==null?void 0:je.isRootMenu)||!it)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,Ce=se.onDestroy,he=se.eventKey;Ce&&Ce(he),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),It.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(se,Ce){var he=this.getBaseProps();return T.createElement(jt,Object(C.a)({},he,{id:this.internalMenuId,className:se,style:Ce}),this.props.children)}},{key:"renderChildren",value:function(){var se=this,Ce=this.getBaseProps(),he=Ce.mode,je=Ce.visible,Fe=Ce.forceSubMenuRender,it=Ce.direction,He=this.getMotion(he,je);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||je||Fe,!this.haveOpened)return T.createElement("div",null);var gt=M()("".concat(Ce.prefixCls,"-sub"),Object(X.a)({},"".concat(Ce.prefixCls,"-rtl"),it==="rtl"));return this.isInlineMode()?T.createElement(re,Object(C.a)({visible:Ce.visible,forceRender:Fe},He),function(Bt){var un=Bt.className,mn=Bt.style,wn=M()(gt,un);return se.renderPopupMenu(wn,mn)}):this.renderPopupMenu(gt)}},{key:"render",value:function(){var se,Ce,he,je=Object(j.a)({},this.props),Fe=this.getVisible(),it=this.getPrefixCls(),He=this.isInlineMode(),gt=this.getMode(),Bt=M()(it,"".concat(it,"-").concat(gt),(se={},Object(X.a)(se,je.className,!!je.className),Object(X.a)(se,this.getOpenClassName(),Fe),Object(X.a)(se,this.getActiveClassName(),je.active||Fe&&!He),Object(X.a)(se,this.getDisabledClassName(),je.disabled),Object(X.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(ut+=1,this.internalMenuId="$__$".concat(ut,"$Menu")));var un={},mn={},wn={};je.disabled||(un={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},mn={onClick:this.onTitleClick},wn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Gn={},ar=je.direction,ir=ar==="rtl";He&&(ir?Gn.paddingRight=je.inlineIndent*je.level:Gn.paddingLeft=je.inlineIndent*je.level);var yr={};this.getVisible()&&(yr={"aria-owns":this.internalMenuId});var br=null;gt!=="horizontal"&&(br=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(br=T.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var vr=T.createElement("div",Object(C.a)({ref:this.saveSubMenuTitle,style:Gn,className:"".concat(it,"-title"),role:"button"},wn,mn,{"aria-expanded":Fe},yr,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,br||T.createElement("i",{className:"".concat(it,"-arrow")})),Er=this.renderChildren(),Cn=((Ce=je.parentMenu)===null||Ce===void 0?void 0:Ce.isRootMenu)?je.parentMenu.props.getPopupContainer:function(Hr){return Hr.parentNode},kt=Ke[gt],pn=je.popupOffset?{offset:je.popupOffset}:{},Sn=M()((he={},Object(X.a)(he,je.popupClassName,je.popupClassName&&!He),Object(X.a)(he,"".concat(it,"-rtl"),ir),he)),Rt=je.disabled,Tn=je.triggerSubMenuAction,sr=je.subMenuOpenDelay,wr=je.forceSubMenuRender,$n=je.subMenuCloseDelay,Dr=je.builtinPlacements;Oe.forEach(function(Hr){return delete je[Hr]}),delete je.onClick;var Kr=ir?Object(j.a)(Object(j.a)({},We),Dr):Object(j.a)(Object(j.a)({},Se),Dr);delete je.direction;var Rr=this.getBaseProps(),Gr=He?null:this.getMotion(Rr.mode,Rr.visible);return T.createElement("li",Object(C.a)({},je,un,{className:Bt,role:"menuitem"}),T.createElement(fr,{prefixCls:it,popupClassName:M()("".concat(it,"-popup"),Sn),getPopupContainer:Cn,builtinPlacements:Kr,popupPlacement:kt,popupVisible:He?!1:Fe,popupAlign:pn,popup:He?null:Er,action:Rt||He?[]:[Tn],mouseEnterDelay:sr,mouseLeaveDelay:$n,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:wr,popupMotion:Gr},vr),He?Er:null)}}]),tt}(T.Component);mt.defaultProps={onMouseEnter:ke,onMouseLeave:ke,onTitleMouseEnter:ke,onTitleMouseLeave:ke,onTitleClick:ke,manualRef:ke,mode:"vertical",title:""};var ht=Object(d.b)(function(Ae,$e){var tt=Ae.openKeys,Ne=Ae.activeKey,se=Ae.selectedKeys,Ce=$e.eventKey,he=$e.subMenuKey;return{isOpen:tt.indexOf(Ce)>-1,active:Ne[he]===Ce,selectedKeys:se}})(mt);ht.isSubMenu=!0;var _t=ht,$t="menuitem-overflowed",Nt=.5,vt=function(Ae){Object(o.a)(tt,Ae);var $e=Object(i.a)(tt);function tt(){var Ne;return Object(I.a)(this,tt),Ne=$e.apply(this,arguments),Ne.resizeObserver=null,Ne.mutationObserver=null,Ne.originalTotalWidth=0,Ne.overflowedItems=[],Ne.menuItemSizes=[],Ne.cancelFrameId=null,Ne.state={lastVisibleIndex:void 0},Ne.childRef=T.createRef(),Ne.getMenuItemNodes=function(){var se=Ne.props.prefixCls,Ce=Ne.childRef.current;return Ce?[].slice.call(Ce.children).filter(function(he){return he.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},Ne.getOverflowedSubMenuItem=function(se,Ce,he){var je=Ne.props,Fe=je.overflowedIndicator,it=je.level,He=je.mode,gt=je.prefixCls,Bt=je.theme;if(it!==1||He!=="horizontal")return null;var un=Ne.props.children[0],mn=un.props,wn=mn.children,Gn=mn.title,ar=mn.style,ir=Object(R.a)(mn,["children","title","style"]),yr=Object(j.a)({},ar),br="".concat(se,"-overflowed-indicator"),vr="".concat(se,"-overflowed-indicator");Ce.length===0&&he!==!0?yr=Object(j.a)(Object(j.a)({},yr),{},{display:"none"}):he&&(yr=Object(j.a)(Object(j.a)({},yr),{},{visibility:"hidden",position:"absolute"}),br="".concat(br,"-placeholder"),vr="".concat(vr,"-placeholder"));var Er=Bt?"".concat(gt,"-").concat(Bt):"",Cn={};return Oe.forEach(function(kt){ir[kt]!==void 0&&(Cn[kt]=ir[kt])}),T.createElement(_t,Object(C.a)({title:Fe,className:"".concat(gt,"-overflowed-submenu"),popupClassName:Er},Cn,{key:br,eventKey:vr,disabled:!1,style:yr}),Ce)},Ne.setChildrenWidthAndResize=function(){if(Ne.props.mode!=="horizontal")return;var se=Ne.childRef.current;if(!se)return;var Ce=se.children;if(!Ce||Ce.length===0)return;var he=se.children[Ce.length-1];at(he,"display","inline-block");var je=Ne.getMenuItemNodes(),Fe=je.filter(function(it){return it.className.split(" ").indexOf($t)>=0});Fe.forEach(function(it){at(it,"display","inline-block")}),Ne.menuItemSizes=je.map(function(it){return Ge(it,!0)}),Fe.forEach(function(it){at(it,"display","none")}),Ne.overflowedIndicatorWidth=Ge(se.children[se.children.length-1],!0),Ne.originalTotalWidth=Ne.menuItemSizes.reduce(function(it,He){return it+He},0),Ne.handleResize(),at(he,"display","none")},Ne.handleResize=function(){if(Ne.props.mode!=="horizontal")return;var se=Ne.childRef.current;if(!se)return;var Ce=Ge(se);Ne.overflowedItems=[];var he=0,je;Ne.originalTotalWidth>Ce+Nt&&(je=-1,Ne.menuItemSizes.forEach(function(Fe){he+=Fe,he+Ne.overflowedIndicatorWidth<=Ce&&(je+=1)})),Ne.setState({lastVisibleIndex:je})},Ne}return Object(_.a)(tt,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ce=this.childRef.current;if(!Ce)return;this.resizeObserver=new Pt.default(function(he){he.forEach(function(){var je=se.cancelFrameId;cancelAnimationFrame(je),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(Ce.children).concat(Ce).forEach(function(he){se.resizeObserver.observe(he)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(Ce.children).concat(Ce).forEach(function(he){se.resizeObserver.observe(he)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ce,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(se){var Ce=this,he=this.state.lastVisibleIndex;return(se||[]).reduce(function(je,Fe,it){var He=Fe;if(Ce.props.mode==="horizontal"){var gt=Ce.getOverflowedSubMenuItem(Fe.props.eventKey,[]);he!==void 0&&Ce.props.className.indexOf("".concat(Ce.props.prefixCls,"-root"))!==-1&&(it>he&&(He=T.cloneElement(Fe,{style:{display:"none"},eventKey:"".concat(Fe.props.eventKey,"-hidden"),className:"".concat($t)})),it===he+1&&(Ce.overflowedItems=se.slice(he+1).map(function(un){return T.cloneElement(un,{key:un.props.eventKey,mode:"vertical-left"})}),gt=Ce.getOverflowedSubMenuItem(Fe.props.eventKey,Ce.overflowedItems)));var Bt=[].concat(Object(g.a)(je),[gt,He]);return it===se.length-1&&Bt.push(Ce.getOverflowedSubMenuItem(Fe.props.eventKey,[],!0)),Bt}return[].concat(Object(g.a)(je),[He])},[])}},{key:"render",value:function(){var se=this.props,Ce=se.visible,he=se.prefixCls,je=se.overflowedIndicator,Fe=se.mode,it=se.level,He=se.tag,gt=se.children,Bt=se.theme,un=Object(R.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=He;return T.createElement(mn,Object(C.a)({ref:this.childRef},un),this.renderChildren(gt))}}]),tt}(T.Component);vt.defaultProps={tag:"div",className:""};var nt=vt;function Dt(Ae){return Ae.length?Ae.every(function($e){return!!$e.props.disabled}):!0}function Gt(Ae,$e,tt){var Ne=Ae.getState();Ae.setState({activeKey:Object(j.a)(Object(j.a)({},Ne.activeKey),{},Object(X.a)({},$e,tt))})}function Yt(Ae){return Ae.eventKey||"0-menu-"}function wt(Ae,$e){var tt=$e,Ne=Ae.children,se=Ae.eventKey;if(tt){var Ce;if(Le(Ne,function(he,je){he&&he.props&&!he.props.disabled&&tt===de(he,se,je)&&(Ce=!0)}),Ce)return tt}return tt=null,Ae.defaultActiveFirst&&Le(Ne,function(he,je){!tt&&he&&!he.props.disabled&&(tt=de(he,se,je))}),tt}function bn(Ae){if(!Ae)return;var $e=this.instanceArray.indexOf(Ae);$e!==-1?this.instanceArray[$e]=Ae:this.instanceArray.push(Ae)}var En=function(Ae){Object(o.a)(tt,Ae);var $e=Object(i.a)(tt);function tt(Ne){var se;return Object(I.a)(this,tt),se=$e.call(this,Ne),se.onKeyDown=function(Ce,he){var je=Ce.keyCode,Fe;if(se.getFlatInstanceArray().forEach(function(He){He&&He.props.active&&He.onKeyDown&&(Fe=He.onKeyDown(Ce))}),Fe)return 1;var it=null;return(je===v.a.UP||je===v.a.DOWN)&&(it=se.step(je===v.a.UP?-1:1)),it?(Ce.preventDefault(),Gt(se.props.store,Yt(se.props),it.props.eventKey),typeof he=="function"&&he(it),1):void 0},se.onItemHover=function(Ce){var he=Ce.key,je=Ce.hover;Gt(se.props.store,Yt(se.props),je?he:null)},se.onDeselect=function(Ce){se.props.onDeselect(Ce)},se.onSelect=function(Ce){se.props.onSelect(Ce)},se.onClick=function(Ce){se.props.onClick(Ce)},se.onOpenChange=function(Ce){se.props.onOpenChange(Ce)},se.onDestroy=function(Ce){se.props.onDestroy(Ce)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(Ce){var he=se.getFlatInstanceArray(),je=se.props.store.getState().activeKey[Yt(se.props)],Fe=he.length;if(!Fe)return null;Ce<0&&(he=he.concat().reverse());var it=-1;if(he.every(function(un,mn){return un&&un.props.eventKey===je?(it=mn,!1):!0}),!se.props.defaultActiveFirst&&it!==-1&&Dt(he.slice(it,Fe-1)))return;var He=(it+1)%Fe,gt=He;do{var Bt=he[gt];if(!Bt||Bt.props.disabled)gt=(gt+1)%Fe;else return Bt}while(gt!==He);return null},se.renderCommonMenuItem=function(Ce,he,je){var Fe=se.props.store.getState(),it=Object(f.a)(se),He=it.props,gt=de(Ce,He.eventKey,he),Bt=Ce.props;if(!Bt||typeof Ce.type=="string")return Ce;var un=gt===Fe.activeKey,mn=Object(j.a)(Object(j.a)({mode:Bt.mode||He.mode,level:He.level,inlineIndent:He.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:He.prefixCls,index:he,parentMenu:He.parentMenu,manualRef:Bt.disabled?void 0:Object(O.a)(Ce.ref,bn.bind(Object(f.a)(se))),eventKey:gt,active:!Bt.disabled&&un,multiple:He.multiple,onClick:function(Gn){(Bt.onClick||ke)(Gn),se.onClick(Gn)},onItemHover:se.onItemHover,motion:He.motion,subMenuOpenDelay:He.subMenuOpenDelay,subMenuCloseDelay:He.subMenuCloseDelay,forceSubMenuRender:He.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:He.builtinPlacements,itemIcon:Bt.itemIcon||se.props.itemIcon,expandIcon:Bt.expandIcon||se.props.expandIcon},je),{},{direction:He.direction});return(He.mode==="inline"||dt())&&(mn.triggerSubMenuAction="click"),T.cloneElement(Ce,Object(j.a)(Object(j.a)({},mn),{},{key:gt||he}))},se.renderMenuItem=function(Ce,he,je){if(!Ce)return null;var Fe=se.props.store.getState(),it={openKeys:Fe.openKeys,selectedKeys:Fe.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:je};return se.renderCommonMenuItem(Ce,he,it)},Ne.store.setState({activeKey:Object(j.a)(Object(j.a)({},Ne.store.getState().activeKey),{},Object(X.a)({},Ne.eventKey,wt(Ne,Ne.activeKey)))}),se.instanceArray=[],se}return Object(_.a)(tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!k()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var Ce=this.props,he="activeKey"in Ce?Ce.activeKey:Ce.store.getState().activeKey[Yt(Ce)],je=wt(Ce,he);if(je!==he)Gt(Ce.store,Yt(Ce),je);else if("activeKey"in se){var Fe=wt(se,se.activeKey);je!==Fe&&Gt(Ce.store,Yt(Ce),je)}}},{key:"render",value:function(){var se=this,Ce=Object(C.a)({},this.props);this.instanceArray=[];var he=M()(Ce.prefixCls,Ce.className,"".concat(Ce.prefixCls,"-").concat(Ce.mode)),je={className:he,role:Ce.role||"menu"};Ce.id&&(je.id=Ce.id),Ce.focusable&&(je.tabIndex=0,je.onKeyDown=this.onKeyDown);var Fe=Ce.prefixCls,it=Ce.eventKey,He=Ce.visible,gt=Ce.level,Bt=Ce.mode,un=Ce.overflowedIndicator,mn=Ce.theme;return Oe.forEach(function(wn){return delete Ce[wn]}),delete Ce.onClick,T.createElement(nt,Object(C.a)({},Ce,{prefixCls:Fe,mode:Bt,tag:"ul",level:gt,theme:mn,visible:He,overflowedIndicator:un},je),Object(c.a)(Ce.children).map(function(wn,Gn){return se.renderMenuItem(wn,Gn,it||"0-menu-")}))}}]),tt}(T.Component);En.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ke};var Zn=Object(d.b)()(En),jt=Zn,Wt=P("Kwbf");function vn(Ae,$e,tt){var Ne=Ae.prefixCls,se=Ae.motion,Ce=Ae.defaultMotions,he=Ce===void 0?{}:Ce,je=Ae.openAnimation,Fe=Ae.openTransitionName,it=$e.switchingModeFromInline;if(se)return se;if(Object(N.a)(je)==="object"&&je)Object(Wt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof je=="string")return{motionName:"".concat(Ne,"-open-").concat(je)};if(Fe)return{motionName:Fe};var He=he[tt];return He||(it?null:he.other)}var Kt=function(Ae){Object(o.a)(tt,Ae);var $e=Object(i.a)(tt);function tt(Ne){var se;Object(I.a)(this,tt),se=$e.call(this,Ne),se.onSelect=function(je){var Fe=Object(f.a)(se),it=Fe.props;if(it.selectable){var He=se.store.getState(),gt=He.selectedKeys,Bt=je.key;it.multiple?gt=gt.concat([Bt]):gt=[Bt],"selectedKeys"in it||se.store.setState({selectedKeys:gt}),it.onSelect(Object(j.a)(Object(j.a)({},je),{},{selectedKeys:gt}))}},se.onClick=function(je){var Fe=se.getRealMenuMode(),it=Object(f.a)(se),He=it.store,gt=it.props.onOpenChange;Fe!=="inline"&&!("openKeys"in se.props)&&(He.setState({openKeys:[]}),gt([])),se.props.onClick(je)},se.onKeyDown=function(je,Fe){se.innerMenu.getWrappedInstance().onKeyDown(je,Fe)},se.onOpenChange=function(je){var Fe=Object(f.a)(se),it=Fe.props,He=se.store.getState().openKeys.concat(),gt=!1,Bt=function(mn){var wn=!1;if(mn.open)wn=He.indexOf(mn.key)===-1,wn&&He.push(mn.key);else{var Gn=He.indexOf(mn.key);wn=Gn!==-1,wn&&He.splice(Gn,1)}gt=gt||wn};Array.isArray(je)?je.forEach(Bt):Bt(je),gt&&("openKeys"in se.props||se.store.setState({openKeys:He}),it.onOpenChange(He))},se.onDeselect=function(je){var Fe=Object(f.a)(se),it=Fe.props;if(it.selectable){var He=se.store.getState().selectedKeys.concat(),gt=je.key,Bt=He.indexOf(gt);Bt!==-1&&He.splice(Bt,1),"selectedKeys"in it||se.store.setState({selectedKeys:He}),it.onDeselect(Object(j.a)(Object(j.a)({},je),{},{selectedKeys:He}))}},se.onMouseEnter=function(je){se.restoreModeVerticalFromInline();var Fe=se.props.onMouseEnter;Fe&&Fe(je)},se.onTransitionEnd=function(je){var Fe=je.propertyName==="width"&&je.target===je.currentTarget,it=je.target.className,He=Object.prototype.toString.call(it)==="[object SVGAnimatedString]"?it.animVal:it,gt=je.propertyName==="font-size"&&He.indexOf("anticon")>=0;(Fe||gt)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(je){se.innerMenu=je},se.isRootMenu=!0;var Ce=Ne.defaultSelectedKeys,he=Ne.defaultOpenKeys;return"selectedKeys"in Ne&&(Ce=Ne.selectedKeys||[]),"openKeys"in Ne&&(he=Ne.openKeys||[]),se.store=Object(d.c)({selectedKeys:Ce,openKeys:he,activeKey:{"0-menu-":wt(Ne,Ne.activeKey)}}),se.state={switchingModeFromInline:!1,prevProps:Ne,inlineOpenKeys:[],store:se.store},se}return Object(_.a)(tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){var Ce=this.props,he=Ce.siderCollapsed,je=Ce.inlineCollapsed,Fe=Ce.onOpenChange;(!se.inlineCollapsed&&je||!se.siderCollapsed&&he)&&Fe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,Ce=this.store,he=this.prevOpenKeys,je=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");je?(this.prevOpenKeys=Ce.getState().openKeys.concat(),this.store.setState({openKeys:[]})):he&&(this.store.setState({openKeys:he}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,Ce=this.state.switchingModeFromInline,he=this.getInlineCollapsed();return Ce&&he?"inline":he?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,Ce=se.inlineCollapsed,he=se.siderCollapsed;return he!==void 0?he:Ce}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var se=Object(j.a)({},Object(A.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ce=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(j.a)(Object(j.a)({},se),{},{mode:Ce,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:vn(this.props,this.state,Ce)}),delete se.openAnimation,delete se.openTransitionName,T.createElement(d.a,{store:this.store},T.createElement(jt,Object(C.a)({},se,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(se,Ce){var he=Ce.prevProps,je=Ce.store,Fe=je.getState(),it={},He={prevProps:se};return he.mode==="inline"&&se.mode!=="inline"&&(He.switchingModeFromInline=!0),"openKeys"in se?it.openKeys=se.openKeys||[]:((se.inlineCollapsed&&!he.inlineCollapsed||se.siderCollapsed&&!he.siderCollapsed)&&(He.switchingModeFromInline=!0,He.inlineOpenKeys=Fe.openKeys,it.openKeys=[]),(!se.inlineCollapsed&&he.inlineCollapsed||!se.siderCollapsed&&he.siderCollapsed)&&(it.openKeys=Ce.inlineOpenKeys,He.inlineOpenKeys=[])),Object.keys(it).length&&je.setState(it),He}}]),tt}(T.Component);Kt.defaultProps={selectable:!0,onClick:ke,onSelect:ke,onOpenChange:ke,onDeselect:ke,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:T.createElement("span",null,"\xB7\xB7\xB7")};var ln=Kt,Qt=function(Ae){Object(o.a)(tt,Ae);var $e=Object(i.a)(tt);function tt(){var Ne;return Object(I.a)(this,tt),Ne=$e.apply(this,arguments),Ne.onKeyDown=function(se){var Ce=se.keyCode;return Ce===v.a.ENTER?(Ne.onClick(se),!0):void 0},Ne.onMouseLeave=function(se){var Ce=Ne.props,he=Ce.eventKey,je=Ce.onItemHover,Fe=Ce.onMouseLeave;je({key:he,hover:!1}),Fe({key:he,domEvent:se})},Ne.onMouseEnter=function(se){var Ce=Ne.props,he=Ce.eventKey,je=Ce.onItemHover,Fe=Ce.onMouseEnter;je({key:he,hover:!0}),Fe({key:he,domEvent:se})},Ne.onClick=function(se){var Ce=Ne.props,he=Ce.eventKey,je=Ce.multiple,Fe=Ce.onClick,it=Ce.onSelect,He=Ce.onDeselect,gt=Ce.isSelected,Bt={key:he,keyPath:[he],item:Object(f.a)(Ne),domEvent:se};Fe(Bt),je?gt?He(Bt):it(Bt):gt||it(Bt)},Ne.saveNode=function(se){Ne.node=se},Ne}return Object(_.a)(tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var se,Ce=Object(j.a)({},this.props),he=M()(this.getPrefixCls(),Ce.className,(se={},Object(X.a)(se,this.getActiveClassName(),!Ce.disabled&&Ce.active),Object(X.a)(se,this.getSelectedClassName(),Ce.isSelected),Object(X.a)(se,this.getDisabledClassName(),Ce.disabled),se)),je=Object(j.a)(Object(j.a)({},Ce.attribute),{},{title:typeof Ce.title=="string"?Ce.title:void 0,className:he,role:Ce.role||"menuitem","aria-disabled":Ce.disabled});Ce.role==="option"?je=Object(j.a)(Object(j.a)({},je),{},{role:"option","aria-selected":Ce.isSelected}):(Ce.role===null||Ce.role==="none")&&(je.role="none");var Fe={onClick:Ce.disabled?null:this.onClick,onMouseLeave:Ce.disabled?null:this.onMouseLeave,onMouseEnter:Ce.disabled?null:this.onMouseEnter},it=Object(j.a)({},Ce.style);Ce.mode==="inline"&&(Ce.direction==="rtl"?it.paddingRight=Ce.inlineIndent*Ce.level:it.paddingLeft=Ce.inlineIndent*Ce.level),Oe.forEach(function(gt){return delete Ce[gt]}),delete Ce.direction;var He=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(He=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object(C.a)({},Object(A.a)(Ce,["onClick","onMouseEnter","onMouseLeave","onSelect"]),je,Fe,{style:it,ref:this.saveNode}),Ce.children,He)}}]),tt}(T.Component);Qt.isMenuItem=!0,Qt.defaultProps={onSelect:ke,onMouseEnter:ke,onMouseLeave:ke,manualRef:ke};var Vt=Object(d.b)(function(Ae,$e){var tt=Ae.activeKey,Ne=Ae.selectedKeys,se=$e.eventKey,Ce=$e.subMenuKey;return{active:tt[Ce]===se,isSelected:Array.isArray(Ne)?Ne.indexOf(se)!==-1:Ne===se}})(Qt),et=Vt,Ve=function(Ae){Object(o.a)(tt,Ae);var $e=Object(i.a)(tt);function tt(){var Ne;return Object(I.a)(this,tt),Ne=$e.apply(this,arguments),Ne.renderInnerMenuItem=function(se){var Ce=Ne.props,he=Ce.renderMenuItem,je=Ce.index;return he(se,je,Ne.props.subMenuKey)},Ne}return Object(_.a)(tt,[{key:"render",value:function(){var se=Object(C.a)({},this.props),Ce=se.className,he=Ce===void 0?"":Ce,je=se.rootPrefixCls,Fe="".concat(je,"-item-group-title"),it="".concat(je,"-item-group-list"),He=se.title,gt=se.children;return Oe.forEach(function(Bt){return delete se[Bt]}),delete se.direction,T.createElement("li",Object(C.a)({},se,{onClick:function(un){return un.stopPropagation()},className:"".concat(he," ").concat(je,"-item-group")}),T.createElement("div",{className:Fe,title:typeof He=="string"?He:void 0},He),T.createElement("ul",{className:it},T.Children.map(gt,this.renderInnerMenuItem)))}}]),tt}(T.Component);Ve.isMenuItemGroup=!0,Ve.defaultProps={disabled:!0};var Ht=Ve,Ct=function($e){var tt=$e.className,Ne=$e.rootPrefixCls,se=$e.style;return T.createElement("li",{className:"".concat(tt," ").concat(Ne,"-item-divider"),style:se})};Ct.defaultProps={disabled:!0,className:"",style:{}};var Xt=Ct,Ft=ln,On=P("eDIo");function Ln(Ae,$e){var tt=Ae.prefixCls,Ne=Ae.editable,se=Ae.locale,Ce=Ae.style;return!Ne||Ne.showAdd===!1?null:T.createElement("button",{ref:$e,type:"button",className:"".concat(tt,"-nav-add"),style:Ce,"aria-label":(se==null?void 0:se.addAriaLabel)||"Add tab",onClick:function(je){Ne.onEdit("add",{event:je})}},Ne.addIcon||"+")}var qt=T.forwardRef(Ln);function An(Ae,$e){var tt=Ae.prefixCls,Ne=Ae.id,se=Ae.tabs,Ce=Ae.locale,he=Ae.mobile,je=Ae.moreIcon,Fe=je===void 0?"More":je,it=Ae.moreTransitionName,He=Ae.style,gt=Ae.className,Bt=Ae.editable,un=Ae.tabBarGutter,mn=Ae.rtl,wn=Ae.onTabClick,Gn=Object(T.useState)(!1),ar=Object(F.a)(Gn,2),ir=ar[0],yr=ar[1],br=Object(T.useState)(null),vr=Object(F.a)(br,2),Er=vr[0],Cn=vr[1],kt="".concat(Ne,"-more-popup"),pn="".concat(tt,"-dropdown"),Sn=Er!==null?"".concat(kt,"-").concat(Er):null,Rt=Ce==null?void 0:Ce.dropdownAriaLabel,Tn=T.createElement(Ft,{onClick:function(Gr){var Hr=Gr.key,Ur=Gr.domEvent;wn(Hr,Ur),yr(!1)},id:kt,tabIndex:-1,role:"listbox","aria-activedescendant":Sn,selectedKeys:[Er],"aria-label":Rt!==void 0?Rt:"expanded dropdown"},se.map(function(Rr){return T.createElement(et,{key:Rr.key,id:"".concat(kt,"-").concat(Rr.key),role:"option","aria-controls":Ne&&"".concat(Ne,"-panel-").concat(Rr.key),disabled:Rr.disabled},Rr.tab)}));function sr(Rr){for(var Gr=se.filter(function(ha){return!ha.disabled}),Hr=Gr.findIndex(function(ha){return ha.key===Er})||0,Ur=Gr.length,Ir=0;IrDr?(wr=Tn,kt.current="x"):(wr=sr,kt.current="y");var Kr=Date.now();Kr-Er.current>100&&(Cn.current=!1),($e(-wr,-wr)||Cn.current)&&(Rt.preventDefault(),Cn.current=!0),Er.current=Kr}var Sn=Object(T.useRef)(null);Sn.current={onTouchStart:yr,onTouchMove:br,onTouchEnd:vr,onWheel:pn},T.useEffect(function(){function Rt($n){Sn.current.onTouchStart($n)}function Tn($n){Sn.current.onTouchMove($n)}function sr($n){Sn.current.onTouchEnd($n)}function wr($n){Sn.current.onWheel($n)}return document.addEventListener("touchmove",Tn,{passive:!1}),document.addEventListener("touchend",sr,{passive:!1}),Ae.current.addEventListener("touchstart",Rt,{passive:!1}),Ae.current.addEventListener("wheel",wr),function(){document.removeEventListener("touchmove",Tn),document.removeEventListener("touchend",sr)}},[])}function oa(){var Ae=Object(T.useRef)(new Map);function $e(Ne){return Ae.current.has(Ne)||Ae.current.set(Ne,T.createRef()),Ae.current.get(Ne)}function tt(Ne){Ae.current.delete(Ne)}return[$e,tt]}function Xr(Ae,$e){var tt=T.useRef(Ae),Ne=T.useState({}),se=Object(F.a)(Ne,2),Ce=se[1];function he(je){var Fe=typeof je=="function"?je(tt.current):je;Fe!==tt.current&&$e(Fe,tt.current),tt.current=Fe,Ce({})}return[tt.current,he]}var Yr=function($e){var tt=$e.position,Ne=$e.prefixCls,se=$e.extra;if(!se)return null;var Ce,he=se;return tt==="right"&&(Ce=he.right||!he.left&&he||null),tt==="left"&&(Ce=he.left||null),Ce?T.createElement("div",{className:"".concat(Ne,"-extra-content")},Ce):null};function Ka(Ae,$e){var tt,Ne=T.useContext(qn),se=Ne.prefixCls,Ce=Ne.tabs,he=Ae.className,je=Ae.style,Fe=Ae.id,it=Ae.animated,He=Ae.activeKey,gt=Ae.rtl,Bt=Ae.extra,un=Ae.editable,mn=Ae.locale,wn=Ae.tabPosition,Gn=Ae.tabBarGutter,ar=Ae.children,ir=Ae.onTabClick,yr=Ae.onTabScroll,br=Object(T.useRef)(),vr=Object(T.useRef)(),Er=Object(T.useRef)(),Cn=Object(T.useRef)(),kt=oa(),pn=Object(F.a)(kt,2),Sn=pn[0],Rt=pn[1],Tn=wn==="top"||wn==="bottom",sr=Xr(0,function(Vr,Pr){Tn&&yr&&yr({direction:Vr>Pr?"left":"right"})}),wr=Object(F.a)(sr,2),$n=wr[0],Dr=wr[1],Kr=Xr(0,function(Vr,Pr){!Tn&&yr&&yr({direction:Vr>Pr?"top":"bottom"})}),Rr=Object(F.a)(Kr,2),Gr=Rr[0],Hr=Rr[1],Ur=Object(T.useState)(0),Ir=Object(F.a)(Ur,2),ur=Ir[0],ha=Ir[1],Qa=Object(T.useState)(0),Na=Object(F.a)(Qa,2),_a=Na[0],ra=Na[1],Qr=Object(T.useState)(0),Zr=Object(F.a)(Qr,2),aa=Zr[0],ja=Zr[1],hi=Object(T.useState)(0),si=Object(F.a)(hi,2),Jr=si[0],Ja=si[1],Za=Object(T.useState)(null),qr=Object(F.a)(Za,2),$r=qr[0],ya=qr[1],Li=Object(T.useState)(null),no=Object(F.a)(Li,2),li=no[0],wi=no[1],Si=Object(T.useState)(0),Ti=Object(F.a)(Si,2),ki=Ti[0],co=Ti[1],Do=Object(T.useState)(0),Gi=Object(F.a)(Do,2),Oi=Gi[0],Vi=Gi[1],yi=p(new Map),Di=Object(F.a)(yi,2),ho=Di[0],Xi=Di[1],Ai=h(Ce,ho,ur),Mi="".concat(se,"-nav-operations-hidden"),bi=0,La=0;Tn?gt?(bi=0,La=Math.max(0,ur-$r)):(bi=Math.min(0,$r-ur),La=0):(bi=Math.min(0,li-_a),La=0);function fi(Vr){return VrLa?[La,!1]:[Vr,!0]}var pi=Object(T.useRef)(),Ei=Object(T.useState)(),mi=Object(F.a)(Ei,2),Yi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}Br(br,function(Vr,Pr){var da=!1;function Ua(Ri,di){Ri(function(Ui){var ci=fi(Ui+di),ba=Object(F.a)(ci,2),Fi=ba[0],Bi=ba[1];return da=Bi,Fi})}if(Tn){if($r>=ur)return da;Ua(Dr,Vr)}else{if(li>=_a)return da;Ua(Hr,Pr)}return Ii(),Qi(),da}),Object(T.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ui(){var Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:He,Pr=Ai.get(Vr);if(!Pr)return;if(Tn){var da=$n;gt?Pr.right<$n?da=Pr.right:Pr.right+Pr.width>$n+$r&&(da=Pr.right+Pr.width-$r):Pr.left<-$n?da=-Pr.left:Pr.left+Pr.width>-$n+$r&&(da=-(Pr.left+Pr.width-$r)),Hr(0),Dr(fi(da)[0])}else{var Ua=Gr;Pr.top<-Gr?Ua=-Pr.top:Pr.top+Pr.height>-Gr+li&&(Ua=-(Pr.top+Pr.height-li)),Dr(0),Hr(fi(Ua)[0])}}var xi=D(Ai,{width:$r,height:li,left:$n,top:Gr},{width:aa,height:Jr},{width:ki,height:Oi},Object(j.a)(Object(j.a)({},Ae),{},{tabs:Ce})),ro=Object(F.a)(xi,2),Ao=ro[0],Mo=ro[1],fo=Ce.map(function(Vr){var Pr=Vr.key;return T.createElement(t,{id:Fe,prefixCls:se,key:Pr,rtl:gt,tab:Vr,closable:Vr.closable,editable:un,active:Pr===He,tabPosition:wn,tabBarGutter:Gn,renderWrapper:ar,removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,ref:Sn(Pr),onClick:function(Ua){ir(Pr,Ua)},onRemove:function(){Rt(Pr)},onFocus:function(){ui(Pr),Qi(),gt||(br.current.scrollLeft=0),br.current.scrollTop=0}})}),ao=u(function(){var Vr,Pr,da,Ua,Ri,di,Ui,ci,ba,Fi=((Vr=br.current)===null||Vr===void 0?void 0:Vr.offsetWidth)||0,Bi=((Pr=br.current)===null||Pr===void 0?void 0:Pr.offsetHeight)||0,Hi=((da=Cn.current)===null||da===void 0?void 0:da.offsetWidth)||0,Wa=((Ua=Cn.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0,Wr=((Ri=Er.current)===null||Ri===void 0?void 0:Ri.offsetWidth)||0,Cr=((di=Er.current)===null||di===void 0?void 0:di.offsetHeight)||0;ya(Fi),wi(Bi),co(Hi),Vi(Wa);var Fn=(((Ui=vr.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Hi,rr=(((ci=vr.current)===null||ci===void 0?void 0:ci.offsetHeight)||0)-Wa;ha(Fn),ra(rr);var Ar=(ba=Er.current)===null||ba===void 0?void 0:ba.className.includes(Mi);ja(Fn-(Ar?0:Wr)),Ja(rr-(Ar?0:Cr)),Xi(function(){var sa=new Map;return Ce.forEach(function(vi){var ai=vi.key,Da=Sn(ai).current;Da&&sa.set(ai,{width:Da.offsetWidth,height:Da.offsetHeight,left:Da.offsetLeft,top:Da.offsetTop})}),sa})}),po=Ce.slice(0,Ao),Ha=Ce.slice(Mo+1),fa=[].concat(Object(g.a)(po),Object(g.a)(Ha)),Oa=Object(T.useState)(),pa=Object(F.a)(Oa,2),Ni=pa[0],mo=pa[1],qa=Ai.get(He),io=Object(T.useRef)();function oo(){l.a.cancel(io.current)}Object(T.useEffect)(function(){var Vr={};return qa&&(Tn?(gt?Vr.right=qa.right:Vr.left=qa.left,Vr.width=qa.width):(Vr.top=qa.top,Vr.height=qa.height)),oo(),io.current=l()(function(){mo(Vr)}),oo},[qa,Tn,gt]),Object(T.useEffect)(function(){ui()},[He,qa,Ai,Tn]),Object(T.useEffect)(function(){ao()},[gt,Gn,He,Ce.map(function(Vr){return Vr.key}).join("_")]);var so=!!fa.length,Ci="".concat(se,"-nav-wrap"),Ji,ji,vo,Zi;return Tn?gt?(ji=$n>0,Ji=$n+$r` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,v=/^\s*\[[^\]]+?\]:.*$/,a=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,t=" ";function s(W,z,Y){return z.f=z.inline=Y,Y(W,z)}function h(W,z,Y){return z.f=z.block=Y,Y(W,z)}function y(W){return!W||!/\S/.test(W.string)}function D(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==I){var z=T;if(!z){var Y=X.innerMode(j,W.htmlState);z=Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText}z&&(W.f=i,W.block=C,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function C(W,z){var Y=W.column()===z.indentation,V=y(z.prevLine.stream),q=z.indentedCode,ne=z.prevLine.hr,ve=z.list!==!1,le=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var be=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,ve)){for(z.list=null;be=4&&(q||z.prevLine.fencedCodeEnd||z.prevLine.header||V))return W.skipToEnd(),z.indentedCode=!0,M.code;if(W.eatSpace())return null;if(Y&&z.indentation<=le&&(ge=W.match(l))&&ge[1].length<=6)return z.quote=0,z.header=ge[1].length,z.thisLine.header=!0,R.highlightFormatting&&(z.formatting="header"),z.f=z.inline,f(z);if(z.indentation<=le&&W.eat(">"))return z.quote=Y?1:z.quote+1,R.highlightFormatting&&(z.formatting="quote"),W.eatSpace(),f(z);if(!Re&&!z.setext&&Y&&z.indentation<=le&&(ge=W.match(g))){var fe=ge[1]?"ol":"ul";return z.indentation=be+W.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,R.taskLists&&W.match(r,!1)&&(z.taskList=!0),z.f=z.inline,R.highlightFormatting&&(z.formatting=["list","list-"+fe]),f(z)}else{if(Y&&z.indentation<=le&&(ge=W.match(p,!0)))return z.quote=0,z.fencedEndRE=new RegExp(ge[1]+"+ *$"),z.localMode=R.fencedCodeBlockHighlighting&&S(ge[2]||R.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=X.startState(z.localMode)),z.f=z.block=_,R.highlightFormatting&&(z.formatting="code-block"),z.code=-1,f(z);if(z.setext||(!we||!ve)&&!z.quote&&z.list===!1&&!z.code&&!Re&&!v.test(W.string)&&(ge=W.lookAhead(1))&&(ge=ge.match(b)))return z.setext?(z.header=z.setext,z.setext=0,W.skipToEnd(),R.highlightFormatting&&(z.formatting="header")):(z.header=ge[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,f(z);if(Re)return W.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,M.hr;if(W.peek()==="[")return s(W,z,k)}return s(W,z,z.inline)}function I(W,z){var Y=j.token(W,z.htmlState);if(!T){var V=X.innerMode(j,z.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||z.md_inside&&W.current().indexOf(">")>-1)&&(z.f=i,z.block=C,z.htmlState=null)}return Y}function _(W,z){var Y=z.listStack[z.listStack.length-1]||0,V=z.indentation=W.quote?z.push(M.formatting+"-"+W.formatting[Y]+"-"+W.quote):z.push("error"))}if(W.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(W.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(W.linkHref?z.push(M.linkHref,"url"):(W.strong&&z.push(M.strong),W.em&&z.push(M.em),W.strikethrough&&z.push(M.strikethrough),W.emoji&&z.push(M.emoji),W.linkText&&z.push(M.linkText),W.code&&z.push(M.code),W.image&&z.push(M.image),W.imageAltText&&z.push(M.imageAltText,"link"),W.imageMarker&&z.push(M.imageMarker)),W.header&&z.push(M.header,M.header+"-"+W.header),W.quote&&(z.push(M.quote),!R.maxBlockquoteDepth||R.maxBlockquoteDepth>=W.quote?z.push(M.quote+"-"+W.quote):z.push(M.quote+"-"+R.maxBlockquoteDepth)),W.list!==!1){var V=(W.listStack.length-1)%3;V?V===1?z.push(M.list2):z.push(M.list3):z.push(M.list1)}return W.trailingSpaceNewLine?z.push("trailing-space-new-line"):W.trailingSpace&&z.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function o(W,z){return W.match(u,!0)?f(z):void 0}function i(W,z){var Y=z.text(W,z);if(typeof Y!="undefined")return Y;if(z.list)return z.list=null,f(z);if(z.taskList){var V=W.match(r,!0)[1]===" ";return V?z.taskOpen=!0:z.taskClosed=!0,R.highlightFormatting&&(z.formatting="task"),z.taskList=!1,f(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&W.match(/^#+$/,!0))return R.highlightFormatting&&(z.formatting="header"),f(z);var q=W.next();if(z.linkTitle){z.linkTitle=!1;var ne=q;q==="("&&(ne=")"),ne=(ne+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ve="^\\s*(?:[^"+ne+"\\\\]+|\\\\\\\\|\\\\.)"+ne;if(W.match(new RegExp(ve),!0))return M.linkHref}if(q==="`"){var le=z.formatting;R.highlightFormatting&&(z.formatting="code"),W.eatWhile("`");var be=W.current().length;if(z.code==0&&(!z.quote||be==1))return z.code=be,f(z);if(be==z.code){var we=f(z);return z.code=0,we}else return z.formatting=le,f(z)}else if(z.code)return f(z);if(q==="\\"&&(W.next(),R.highlightFormatting)){var Re=f(z),ge=M.formatting+"-escape";return Re?Re+" "+ge:ge}if(q==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,R.highlightFormatting&&(z.formatting="image"),f(z);if(q==="["&&z.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,R.highlightFormatting&&(z.formatting="image"),f(z);if(q==="]"&&z.imageAltText){R.highlightFormatting&&(z.formatting="image");var Re=f(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=A,Re}if(q==="["&&!z.image)return z.linkText&&W.match(/^.*?\]/)||(z.linkText=!0,R.highlightFormatting&&(z.formatting="link")),f(z);if(q==="]"&&z.linkText){R.highlightFormatting&&(z.formatting="link");var Re=f(z);return z.linkText=!1,z.inline=z.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?A:i,Re}if(q==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=d,R.highlightFormatting&&(z.formatting="link");var Re=f(z);return Re?Re+=" ":Re="",Re+M.linkInline}if(q==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=d,R.highlightFormatting&&(z.formatting="link");var Re=f(z);return Re?Re+=" ":Re="",Re+M.linkEmail}if(R.xml&&q==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var fe=W.string.indexOf(">",W.pos);if(fe!=-1){var Ze=W.string.substring(W.start,fe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ze)&&(z.md_inside=!0)}return W.backUp(1),z.htmlState=X.startState(j),h(W,z,I)}if(R.xml&&q==="<"&&W.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(q==="*"||q==="_"){for(var Ot=1,Ee=W.pos==1?" ":W.string.charAt(W.pos-2);Ot<3&&W.eat(q);)Ot++;var ke=W.peek()||" ",de=!/\s/.test(ke)&&(!a.test(ke)||/\s/.test(Ee)||a.test(Ee)),me=!/\s/.test(Ee)&&(!a.test(Ee)||/\s/.test(ke)||a.test(ke)),Le=null,rt=null;if(Ot%2&&(!z.em&&de&&(q==="*"||!me||a.test(Ee))?Le=!0:z.em==q&&me&&(q==="*"||!de||a.test(ke))&&(Le=!1)),Ot>1&&(!z.strong&&de&&(q==="*"||!me||a.test(Ee))?rt=!0:z.strong==q&&me&&(q==="*"||!de||a.test(ke))&&(rt=!1)),rt!=null||Le!=null){R.highlightFormatting&&(z.formatting=Le==null?"strong":rt==null?"em":"strong em"),Le===!0&&(z.em=q),rt===!0&&(z.strong=q);var we=f(z);return Le===!1&&(z.em=!1),rt===!1&&(z.strong=!1),we}}else if(q===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return f(z);W.backUp(1)}if(R.strikethrough){if(q==="~"&&W.eatWhile(q)){if(z.strikethrough){R.highlightFormatting&&(z.formatting="strikethrough");var we=f(z);return z.strikethrough=!1,we}else if(W.match(/^[^\s]/,!1))return z.strikethrough=!0,R.highlightFormatting&&(z.formatting="strikethrough"),f(z)}else if(q===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return f(z);W.backUp(2)}}if(R.emoji&&q===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,R.highlightFormatting&&(z.formatting="emoji");var Oe=f(z);return z.emoji=!1,Oe}return q===" "&&(W.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),f(z)}function d(W,z){var Y=W.next();if(Y===">"){z.f=z.inline=i,R.highlightFormatting&&(z.formatting="link");var V=f(z);return V?V+=" ":V="",V+M.linkInline}return W.match(/^[^>]+/,!0),M.linkInline}function A(W,z){if(W.eatSpace())return null;var Y=W.next();return Y==="("||Y==="["?(z.f=z.inline=m(Y==="("?")":"]"),R.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,f(z)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function m(W){return function(z,Y){var V=z.next();if(V===W){Y.f=Y.inline=i,R.highlightFormatting&&(Y.formatting="link-string");var q=f(Y);return Y.linkHref=!1,q}return z.match(O[W]),Y.linkHref=!0,f(Y)}}function k(W,z){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=N,W.next(),R.highlightFormatting&&(z.formatting="link"),z.linkText=!0,f(z)):s(W,z,i)}function N(W,z){if(W.match(/^\]:/,!0)){z.f=z.inline=B,R.highlightFormatting&&(z.formatting="link");var Y=f(z);return z.linkText=!1,Y}return W.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function B(W,z){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?z.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=i,M.linkHref+" url")}var G={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:i,text:o,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(W){return{f:W.f,prevLine:W.prevLine,thisLine:W.thisLine,block:W.block,htmlState:W.htmlState&&X.copyState(j,W.htmlState),indentation:W.indentation,localMode:W.localMode,localState:W.localMode?X.copyState(W.localMode,W.localState):null,inline:W.inline,text:W.text,formatting:!1,linkText:W.linkText,linkTitle:W.linkTitle,linkHref:W.linkHref,code:W.code,em:W.em,strong:W.strong,strikethrough:W.strikethrough,emoji:W.emoji,header:W.header,setext:W.setext,hr:W.hr,taskList:W.taskList,list:W.list,listStack:W.listStack.slice(0),quote:W.quote,indentedCode:W.indentedCode,trailingSpace:W.trailingSpace,trailingSpaceNewLine:W.trailingSpaceNewLine,md_inside:W.md_inside,fencedEndRE:W.fencedEndRE}},token:function(W,z){if(z.formatting=!1,W!=z.thisLine.stream){if(z.header=0,z.hr=!1,W.match(/^\s*$/,!0))return D(z),null;if(z.prevLine=z.thisLine,z.thisLine={stream:W},z.taskList=!1,z.trailingSpace=0,z.trailingSpaceNewLine=!1,!z.localState&&(z.f=z.block,z.f!=I)){var Y=W.match(/^\s*/,!0)[0].replace(/\t/g,t).length;if(z.indentation=Y,z.indentationDiff=null,Y>0)return null}}return z.f(W,z)},innerMode:function(W){return W.block==I?{state:W.htmlState,mode:j}:W.localState?{state:W.localState,mode:W.localMode}:{state:W,mode:G}},indent:function(W,z,Y){return W.block==I&&j.indent?j.indent(W.htmlState,z,Y):W.localState&&W.localMode.indent?W.localMode.indent(W.localState,z,Y):X.Pass},blankLine:D,getType:f,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return G},"xml"),X.defineMIME("text/markdown","markdown"),X.defineMIME("text/x-markdown","markdown")})},loD1:function(ze,te){function P(X,F,R,j,T,S,M){if(T===0)return!1;var c=T,E=0,g=X;if(M>F+c&&M>j+c||MX+c&&S>R+c||S=g.x&&c<=g.x+g.width&&E>=g.y&&E<=g.y+g.height},clone:function(){return new S(this.x,this.y,this.width,this.height)},copy:function(c){this.x=c.x,this.y=c.y,this.width=c.width,this.height=c.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},S.create=function(c){return new S(c.x,c.y,c.width,c.height)};var M=S;ze.exports=M},mLcG:function(ze,te){var P=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(X){setTimeout(X,16)};ze.exports=P},mOS8:function(ze,te,P){ze.exports=P.p+"static/403Qrcode.6c17b6f4.png"},mgmH:function(ze,te,P){"use strict";P.d(te,"d",function(){return b}),P.d(te,"b",function(){return u}),P.d(te,"e",function(){return p}),P.d(te,"c",function(){return v}),P.d(te,"n",function(){return a}),P.d(te,"g",function(){return t}),P.d(te,"h",function(){return s}),P.d(te,"j",function(){return y}),P.d(te,"a",function(){return D}),P.d(te,"l",function(){return C}),P.d(te,"f",function(){return I}),P.d(te,"k",function(){return _}),P.d(te,"m",function(){return f}),P.d(te,"i",function(){return o}),P.d(te,"o",function(){return i}),P.d(te,"r",function(){return d}),P.d(te,"q",function(){return A}),P.d(te,"p",function(){return O});var X=P("miYZ"),F=P("tsqr"),R=P("k1fw"),j=P("9og8"),T=P("WmNS"),S=P.n(T),M=P("oUNq"),c=P("9kvl"),E=P("1vsH"),g=P("m3rI"),r=function(){Object(c.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},l=function(){Object(c.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},b=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return r(),W.next=3,Object(M.s)(Object(R.a)({},N));case 3:if(B=W.sent,!(B.status===0)){W.next=7;break}return W.next=7,Object(E.u)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/export_couser_info.json"),query:N}));case 7:l();case 8:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),u=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.q)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_member_act_score")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),p=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.t)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_score")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_score")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),v=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.r)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),a=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.y)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),t=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.u)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_homework")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),s=function(){var m=Object(j.a)(S.a.mark(function k(N,B){var G;return S.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(M.w)(Object(R.a)({},N));case 2:G=z.sent,G.status===0?(F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/").concat(B))):G.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/").concat(B)));case 4:case"end":return z.stop()}},k)}));return function(N,B){return m.apply(this,arguments)}}(),h=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return r(),W.next=3,Object(M.v)(Object(R.a)({},N));case 3:if(B=W.sent,!(B.status===0)){W.next=7;break}return W.next=7,Object(E.u)("",Object(E.U)({url:g.a.API_SERVER+"/api/homework_commons/".concat(N.categoryId,"/works_list.zip"),query:N}));case 7:l();case 8:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),y=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return r(),W.next=3,Object(M.z)(Object(R.a)({},N));case 3:if(B=W.sent,!(B.status===0)){W.next=7;break}return W.next=7,Object(E.u)("",Object(E.U)({url:g.a.API_SERVER+"/api/polls/".concat(N.categoryId,"/commit_result.xlsx"),query:N}));case 7:l();case 8:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),D=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/attendances/export_xlsx_data.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),C=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/video_study_statics.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),I=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/export_course_students_info.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),_=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/item_banks/export.xlsx",query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),f=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),o=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.x)(Object(R.a)({},N));case 2:B=W.sent,B.status===0?(F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/exercise_score"))):B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/exercise_score")));case 4:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),i=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),G.next=3,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/export_records/".concat(N.id,".xlsx"),query:N}));case 3:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),d=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),A=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/ec_years/".concat(N==null?void 0:N.ec_year_id,"/ec_training_objectives.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),O=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/ec_years/".concat(N==null?void 0:N.ec_year_id,"/ec_graduation_requirements.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}()},n1HI:function(ze,te,P){var X=P("hX1E"),F=X.normalizeRadian,R=Math.PI*2;function j(T,S,M,c,E,g,r,l,b){if(r===0)return!1;var u=r;l-=T,b-=S;var p=Math.sqrt(l*l+b*b);if(p-u>M||p+uE&&(E+=R);var a=Math.atan2(b,l);return a<0&&(a+=R),a>=c&&a<=E||a+R>=c&&a+R<=E}te.containStroke=j},n6Mw:function(ze,te,P){var X=P("SrGk"),F=P("bYtY"),R=P("Fofx");function j(S,M){X.call(this,S,M,"clipPath","__clippath_in_use__")}F.inherits(j,X),j.prototype.update=function(S){var M=this.getSvgElement(S);M&&this.updateDom(M,S.__clipPaths,!1);var c=this.getTextSvgElement(S);c&&this.updateDom(c,S.__clipPaths,!0),this.markUsed(S)},j.prototype.updateDom=function(S,M,c){if(M&&M.length>0){var E=this.getDefs(!0),g=M[0],r,l,b=c?"_textDom":"_dom";g[b]?(l=g[b].getAttribute("id"),r=g[b],E.contains(r)||E.appendChild(r)):(l="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,r=this.createElement("clipPath"),r.setAttribute("id",l),E.appendChild(r),g[b]=r);var u=this.getSvgProxy(g);if(g.transform&&g.parent.invTransform&&!c){var p=Array.prototype.slice.call(g.transform);R.mul(g.transform,g.parent.invTransform,g.transform),u.brush(g),g.transform=p}else u.brush(g);var v=this.getSvgElement(g);r.innerHTML="",r.appendChild(v.cloneNode()),S.setAttribute("clip-path","url(#"+l+")"),M.length>1&&this.updateDom(r,M.slice(1),c)}else S&&S.setAttribute("clip-path","none")},j.prototype.markUsed=function(S){var M=this;S.__clipPaths&&F.each(S.__clipPaths,function(c){c._dom&&X.prototype.markUsed.call(M,c._dom),c._textDom&&X.prototype.markUsed.call(M,c._textDom)})};var T=j;ze.exports=T},n6Qo:function(ze,te,P){"use strict";P.d(te,"a",function(){return c});var X=P("q1tI"),F=P("biw7"),R=P("fyJ8");function j(E){var g=E.className,r=E.index,l=E.children,b=E.colSpan,u=E.rowSpan,p=X.useContext(F.a),v=p.prefixCls,a=p.fixedInfoList,t=a[r];return X.createElement(R.a,Object.assign({className:g,index:r,component:"td",prefixCls:v,record:null,dataIndex:null,render:function(){return{children:l,props:{colSpan:b,rowSpan:u}}}},t))}function T(E){return X.createElement("tr",Object.assign({},E))}function S(E){var g=E.children,r=X.useContext(F.a),l=r.prefixCls;return X.createElement("tfoot",{className:"".concat(l,"-summary")},g)}var M=te.b=S,c={Cell:j,Row:T}},nCxF:function(ze,te,P){var X=P("QBsz"),F=X.min,R=X.max,j=X.scale,T=X.distance,S=X.add,M=X.clone,c=X.sub;function E(g,r,l,b){var u=[],p=[],v=[],a=[],t,s,h,y;if(b){h=[Infinity,Infinity],y=[-Infinity,-Infinity];for(var D=0,C=g.length;D2&&arguments[2]!==void 0?arguments[2]:"0",Xe=String(Q);Xe.length=12,ln%=12);var Ct=c.useMemo(function(){if(!_t)return[!1,!1];var Nn=[!0,!0];return Ht.forEach(function(Jt){var Bn=Jt.disabled,Tr=Jt.value;if(Bn)return;Tr>=12?Nn[1]=!1:Nn[0]=!1}),Nn},[_t,Ht]),Xt=Object(M.a)(Ct,2),Ft=Xt[0],On=Xt[1],Ln=c.useMemo(function(){return _t?Ht.filter(Kt?function(Nn){return Nn.value>=12}:function(Nn){return Nn.value<12}).map(function(Nn){var Jt=Nn.value%12,Bn=Jt===0?"12":V(Jt,2);return Object(S.a)(Object(S.a)({},Nn),{},{label:Bn,value:Jt})}):Ht},[_t,Ht]),qt=fe(0,59,nt,wt&&wt(ln)),An=fe(0,59,Gt,bn&&bn(ln,Qt));Xe.current={onUpDown:function(Jt){var Bn=jt[ut];if(Bn)for(var Tr=Bn.units.findIndex(function(Xr){return Xr.value===Bn.value}),Lr=Bn.units.length,Br=1;Br1&&(lt=Se.addDate(lt,-7)),lt}function Ie(Q,Se,We){var Xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Se){case"year":return We.addYear(Q,Xe*10);case"quarter":case"month":return We.addYear(Q,Xe);default:return We.addMonth(Q,Xe)}}var De=c.createContext({}),ot=De;function Et(Q){var Se=Q.cellPrefixCls,We=Q.generateConfig,Xe=Q.rangedValue,ut=Q.hoverRangedValue,Ke=Q.isInView,lt=Q.isSameCell,mt=Q.offsetCell,ht=Q.today,_t=Q.value;function $t(Nt){var vt,nt=mt(Nt,-1),Dt=mt(Nt,1),Gt=le(Xe,0),Yt=le(Xe,1),wt=le(ut,0),bn=le(ut,1),En=on(We,wt,bn,Nt);function Zn(Qt){return lt(Gt,Qt)}function jt(Qt){return lt(Yt,Qt)}var Wt=lt(wt,Nt),vn=lt(bn,Nt),Kt=(En||vn)&&(!Ke(nt)||jt(nt)),ln=(En||Wt)&&(!Ke(Dt)||Zn(Dt));return vt={},Object(T.a)(vt,"".concat(Se,"-in-view"),Ke(Nt)),Object(T.a)(vt,"".concat(Se,"-in-range"),on(We,Gt,Yt,Nt)),Object(T.a)(vt,"".concat(Se,"-range-start"),Zn(Nt)),Object(T.a)(vt,"".concat(Se,"-range-end"),jt(Nt)),Object(T.a)(vt,"".concat(Se,"-range-start-single"),Zn(Nt)&&!Yt),Object(T.a)(vt,"".concat(Se,"-range-end-single"),jt(Nt)&&!Gt),Object(T.a)(vt,"".concat(Se,"-range-start-near-hover"),Zn(Nt)&&(lt(nt,wt)||on(We,wt,bn,nt))),Object(T.a)(vt,"".concat(Se,"-range-end-near-hover"),jt(Nt)&&(lt(Dt,bn)||on(We,wt,bn,Dt))),Object(T.a)(vt,"".concat(Se,"-range-hover"),En),Object(T.a)(vt,"".concat(Se,"-range-hover-start"),Wt),Object(T.a)(vt,"".concat(Se,"-range-hover-end"),vn),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-start"),Kt),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-end"),ln),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-start-near-range"),Kt&<(nt,Yt)),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-end-near-range"),ln&<(Dt,Gt)),Object(T.a)(vt,"".concat(Se,"-today"),lt(ht,Nt)),Object(T.a)(vt,"".concat(Se,"-selected"),lt(_t,Nt)),vt}return $t}function Je(Q){for(var Se=Q.prefixCls,We=Q.disabledDate,Xe=Q.onSelect,ut=Q.rowNum,Ke=Q.colNum,lt=Q.prefixColumn,mt=Q.rowClassName,ht=Q.baseDate,_t=Q.getCellClassName,$t=Q.getCellText,Nt=Q.getCellNode,vt=Q.getCellDate,nt=Q.titleCell,Dt=Q.headerCells,Gt=c.useContext(v),Yt=Gt.onDateMouseEnter,wt=Gt.onDateMouseLeave,bn="".concat(Se,"-cell"),En=[],Zn=0;Zn2&&arguments[2]!==void 0?arguments[2]:!1;(je===Gt||sr)&&(Ca(Rt),vn&&vn(Rt),Lr&&Lr(Rt,Tn),Kt&&!It(mt,Rt,na)&&Kt(Rt))},wn=function(Rt){return xa.current&&xa.current.onKeyDown?([u.a.LEFT,u.a.RIGHT,u.a.UP,u.a.DOWN,u.a.PAGE_UP,u.a.PAGE_DOWN,u.a.ENTER].includes(Rt.which)&&Rt.preventDefault(),xa.current.onKeyDown(Rt)):(Object(r.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Gn=function(Rt){xa.current&&xa.current.onBlur&&xa.current.onBlur(Rt)};Bn&&Ka!=="right"&&(Bn.current={onKeyDown:wn,onClose:function(){xa.current&&xa.current.onClose&&xa.current.onClose()}}),c.useEffect(function(){ht&&!Ia.current&&tt(ht)},[ht]),c.useEffect(function(){Ia.current=!1},[]);var ar,ir=Object(S.a)(Object(S.a)({},Q),{},{operationRef:xa,prefixCls:Xe,viewDate:$e,value:na,onViewDateChange:Ne,sourceMode:gt,onPanelChange:un,disabledDate:je!=="decade"?vt:void 0});delete ir.onChange,delete ir.onSelect;switch(je){case"decade":ar=c.createElement(U,Object.assign({},ir,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}}));break;case"year":ar=c.createElement(Nr,Object.assign({},ir,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}}));break;case"month":ar=c.createElement(Lt,Object.assign({},ir,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}}));break;case"quarter":ar=c.createElement(Mn,Object.assign({},ir,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}}));break;case"week":ar=c.createElement(sn,Object.assign({},ir,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}}));break;case"time":delete ir.showTime,ar=c.createElement(de,Object.assign({},ir,Object(b.a)(En)==="object"?En:null,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}}));break;default:En?ar=c.createElement(Mt,Object.assign({},ir,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}})):ar=c.createElement(pe,Object.assign({},ir,{onSelect:function(Rt,Tn){Ne(Rt),mn(Rt,Tn)}}))}var yr,br,vr=function(){var Rt=mt.getNow(),Tn=Re(mt.getHour(Rt),mt.getMinute(Rt),mt.getSecond(Rt),Pn?Xt:1,qn?On:1,Nn?qt:1),sr=we(mt,Rt,Tn[0],Tn[1],Tn[2]);mn(sr,"submit")};Br||(yr=H(Xe,je,jt),br=$({prefixCls:Xe,components:Ve,needConfirmButton:An,okDisabled:!na||vt&&vt(na),locale:lt,showNow:bn,onNow:An&&vr,onOk:function(){na&&(mn(na,"submit",!0),et&&et(na))}}));var Er;if(Zn&&je==="date"&&Gt==="date"&&!En){var Cn=mt.getNow(),kt="".concat(Xe,"-today-btn"),pn=vt&&vt(Cn);Er=c.createElement("a",{className:g()(kt,pn&&"".concat(kt,"-disabled")),"aria-disabled":pn,onClick:function(){pn||mn(Cn,"mouse",!0)}},lt.today)}return c.createElement(v.Provider,{value:Object(S.a)(Object(S.a)({},Jt),{},{hideHeader:"hideHeader"in Q?Wt:Jt.hideHeader,hidePrevBtn:Yr&&Ka==="right",hideNextBtn:Yr&&Ka==="left"})},c.createElement("div",{tabIndex:wt,className:g()("".concat(Xe,"-panel"),ut,(Se={},Object(T.a)(Se,"".concat(Xe,"-panel-has-range"),Ra&&Ra[0]&&Ra[1]),Object(T.a)(Se,"".concat(Xe,"-panel-has-range-hover"),$a&&$a[0]&&$a[1]),Object(T.a)(Se,"".concat(Xe,"-panel-rtl"),Ht==="rtl"),Se)),style:Ke,onKeyDown:wn,onBlur:Gn,onMouseDown:Qt,ref:Tr},ar,yr||br||Er?c.createElement("div",{className:"".concat(Xe,"-footer")},yr,br,Er):null))}var ee=re,Qe=P("uciX"),cn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Dn(Q){var Se,We=Q.prefixCls,Xe=Q.popupElement,ut=Q.popupStyle,Ke=Q.visible,lt=Q.dropdownClassName,mt=Q.dropdownAlign,ht=Q.transitionName,_t=Q.getPopupContainer,$t=Q.children,Nt=Q.range,vt=Q.popupPlacement,nt=Q.direction,Dt="".concat(We,"-dropdown"),Gt=function(){return vt!==void 0?vt:nt==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(Qe.a,{showAction:[],hideAction:[],popupPlacement:Gt(),builtinPlacements:cn,prefixCls:Dt,popupTransitionName:ht,popup:Xe,popupAlign:mt,popupVisible:Ke,popupClassName:g()(lt,(Se={},Object(T.a)(Se,"".concat(Dt,"-range"),Nt),Object(T.a)(Se,"".concat(Dt,"-rtl"),nt==="rtl"),Se)),popupStyle:ut,getPopupContainer:_t},$t)}var Wn=Dn;function fn(Q){var Se=Q.open,We=Q.value,Xe=Q.isClickOutside,ut=Q.triggerOpen,Ke=Q.forwardKeyDown,lt=Q.blurToCancel,mt=Q.onSubmit,ht=Q.onCancel,_t=Q.onFocus,$t=Q.onBlur,Nt=Object(c.useState)(!1),vt=Object(M.a)(Nt,2),nt=vt[0],Dt=vt[1],Gt=Object(c.useState)(!1),Yt=Object(M.a)(Gt,2),wt=Yt[0],bn=Yt[1],En=Object(c.useRef)(!1),Zn=Object(c.useRef)(!1),jt={onMouseDown:function(){Dt(!0),ut(!0)},onKeyDown:function(vn){switch(vn.which){case u.a.ENTER:{Se?mt()!==!1&&Dt(!0):ut(!0),vn.preventDefault();return}case u.a.TAB:{nt&&Se&&!vn.shiftKey?(Dt(!1),vn.preventDefault()):!nt&&Se&&(!Ke(vn)&&vn.shiftKey&&(Dt(!0),vn.preventDefault()));return}case u.a.ESC:{Dt(!0),ht();return}}!Se&&![u.a.SHIFT].includes(vn.which)?ut(!0):nt||Ke(vn)},onFocus:function(vn){Dt(!0),bn(!0),_t&&_t(vn)},onBlur:function(vn){if(En.current||!Xe(document.activeElement)){En.current=!1;return}lt?setTimeout(function(){Xe(document.activeElement)&&ht()},0):Se&&(ut(!1),Zn.current&&mt()),bn(!1),$t&&$t(vn)}};return Object(c.useEffect)(function(){Zn.current=!1},[Se]),Object(c.useEffect)(function(){Zn.current=!0},[We]),Object(c.useEffect)(function(){return O(function(Wt){var vn=Wt.target;Se&&(Xe(vn)?wt||ut(!1):(En.current=!0,requestAnimationFrame(function(){En.current=!1})))})}),[jt,{focused:wt,typing:nt}]}function tr(Q){var Se=Q.valueTexts,We=Q.onTextChange,Xe=c.useState(""),ut=Object(M.a)(Xe,2),Ke=ut[0],lt=ut[1],mt=c.useRef([]);mt.current=Se;function ht($t){lt($t),We($t)}function _t(){lt(mt.current[0])}return c.useEffect(function(){Se.every(function($t){return $t!==Ke})&&_t()},[Se.join("||")]),[Ke,ht,_t]}var nr=P("Gytx"),jr=P.n(nr);function ua(Q,Se){var We=Se.formatList,Xe=Se.generateConfig,ut=Se.locale;return Object(D.a)(function(){if(!Q)return[[""],""];for(var Ke="",lt=[],mt=0;mt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(_t.current),wt){ht(Yt);return}_t.current=requestAnimationFrame(function(){ht(Yt)})}var Nt=ua(mt,{formatList:We,generateConfig:Xe,locale:ut}),vt=Object(M.a)(Nt,2),nt=vt[1];function Dt(Yt){$t(Yt)}function Gt(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;$t(null,Yt)}return Object(c.useEffect)(function(){Gt(!0)},[Q]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(_t.current)}},[]),[nt,Dt,Gt]}function zr(Q){var Se,We=Q.prefixCls,Xe=We===void 0?"rc-picker":We,ut=Q.id,Ke=Q.tabIndex,lt=Q.style,mt=Q.className,ht=Q.dropdownClassName,_t=Q.dropdownAlign,$t=Q.popupStyle,Nt=Q.transitionName,vt=Q.generateConfig,nt=Q.locale,Dt=Q.inputReadOnly,Gt=Q.allowClear,Yt=Q.autoFocus,wt=Q.showTime,bn=Q.picker,En=bn===void 0?"date":bn,Zn=Q.format,jt=Q.use12Hours,Wt=Q.value,vn=Q.defaultValue,Kt=Q.open,ln=Q.defaultOpen,Qt=Q.defaultOpenValue,Vt=Q.suffixIcon,et=Q.clearIcon,Ve=Q.disabled,Ht=Q.disabledDate,Ct=Q.placeholder,Xt=Q.getPopupContainer,Ft=Q.pickerRef,On=Q.panelRender,Ln=Q.onChange,qt=Q.onOpenChange,An=Q.onFocus,Pn=Q.onBlur,qn=Q.onMouseDown,Nn=Q.onMouseUp,Jt=Q.onMouseEnter,Bn=Q.onMouseLeave,Tr=Q.onContextMenu,Lr=Q.onClick,Br=Q.direction,oa=Q.autoComplete,Xr=oa===void 0?"off":oa,Yr=c.useRef(null),Ka=En==="date"&&!!wt||En==="time",Ra=ne(o(Zn,En,wt,jt)),$a=c.useRef(null),xa=c.useRef(null),Ia=Object(l.a)(null,{value:Wt,defaultValue:vn}),oi=Object(M.a)(Ia,2),Pa=oi[0],na=oi[1],Ca=c.useState(Pa),Ta=Object(M.a)(Ca,2),Ae=Ta[0],$e=Ta[1],tt=c.useRef(null),Ne=Object(l.a)(!1,{value:Kt,defaultValue:ln,postState:function(ur){return Ve?!1:ur},onChange:function(ur){qt&&qt(ur),!ur&&tt.current&&tt.current.onClose&&tt.current.onClose()}}),se=Object(M.a)(Ne,2),Ce=se[0],he=se[1],je=ua(Ae,{formatList:Ra,generateConfig:vt,locale:nt}),Fe=Object(M.a)(je,2),it=Fe[0],He=Fe[1],gt=tr({valueTexts:it,onTextChange:function(ur){var ha=vt.locale.parse(nt.locale,ur,Ra);ha&&(!Ht||!Ht(ha))&&$e(ha)}}),Bt=Object(M.a)(gt,3),un=Bt[0],mn=Bt[1],wn=Bt[2],Gn=function(ur){$e(ur),na(ur),Ln&&!It(vt,Pa,ur)&&Ln(ur,ur?vt.locale.format(nt.locale,ur,Ra[0]):"")},ar=function(ur){if(Ve&&ur)return;he(ur)},ir=function(ur){return Ce&&tt.current&&tt.current.onKeyDown?tt.current.onKeyDown(ur):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},yr=function(){Nn&&Nn.apply(void 0,arguments),Yr.current&&(Yr.current.focus(),ar(!0))},br=fn({blurToCancel:Ka,open:Ce,value:un,triggerOpen:ar,forwardKeyDown:ir,isClickOutside:function(ur){return!W([$a.current,xa.current],ur)},onSubmit:function(){return Ht&&Ht(Ae)?!1:(Gn(Ae),ar(!1),wn(),!0)},onCancel:function(){ar(!1),$e(Pa),wn()},onFocus:An,onBlur:Pn}),vr=Object(M.a)(br,2),Er=vr[0],Cn=vr[1],kt=Cn.focused,pn=Cn.typing;c.useEffect(function(){Ce||($e(Pa),!it.length||it[0]===""?mn(""):He!==un&&wn())},[Ce,it]),c.useEffect(function(){Ce||wn()},[En]),c.useEffect(function(){$e(Pa)},[Pa]),Ft&&(Ft.current={focus:function(){Yr.current&&Yr.current.focus()},blur:function(){Yr.current&&Yr.current.blur()}});var Sn=Object(S.a)(Object(S.a)({},Q),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Rt=c.createElement(ee,Object.assign({},Sn,{generateConfig:vt,className:g()(Object(T.a)({},"".concat(Xe,"-panel-focused"),!pn)),value:Ae,locale:nt,tabIndex:-1,onChange:$e,direction:Br}));On&&(Rt=On(Rt));var Tn=c.createElement("div",{className:"".concat(Xe,"-panel-container"),onMouseDown:function(ur){ur.preventDefault()}},Rt),sr;Vt&&(sr=c.createElement("span",{className:"".concat(Xe,"-suffix")},Vt));var wr;Gt&&Pa&&!Ve&&(wr=c.createElement("span",{onMouseDown:function(ur){ur.preventDefault(),ur.stopPropagation()},onMouseUp:function(ur){ur.preventDefault(),ur.stopPropagation(),Gn(null),ar(!1)},className:"".concat(Xe,"-clear")},et||c.createElement("span",{className:"".concat(Xe,"-clear-btn")})));var $n=function(ur,ha){(ha==="submit"||ha!=="key"&&!Ka)&&(Gn(ur),ar(!1))},Dr=Br==="rtl"?"bottomRight":"bottomLeft",Kr=va(un,{formatList:Ra,generateConfig:vt,locale:nt}),Rr=Object(M.a)(Kr,3),Gr=Rr[0],Hr=Rr[1],Ur=Rr[2];return c.createElement(v.Provider,{value:{operationRef:tt,hideHeader:En==="time",panelRef:$a,onSelect:$n,open:Ce,defaultOpenValue:Qt,onDateMouseEnter:Hr,onDateMouseLeave:Ur}},c.createElement(Wn,{visible:Ce,popupElement:Tn,popupStyle:$t,prefixCls:Xe,dropdownClassName:ht,dropdownAlign:_t,getPopupContainer:Xt,transitionName:Nt,popupPlacement:Dr,direction:Br},c.createElement("div",{className:g()(Xe,mt,(Se={},Object(T.a)(Se,"".concat(Xe,"-disabled"),Ve),Object(T.a)(Se,"".concat(Xe,"-focused"),kt),Object(T.a)(Se,"".concat(Xe,"-rtl"),Br==="rtl"),Se)),style:lt,onMouseDown:qn,onMouseUp:yr,onMouseEnter:Jt,onMouseLeave:Bn,onContextMenu:Tr,onClick:Lr},c.createElement("div",{className:g()("".concat(Xe,"-input"),Object(T.a)({},"".concat(Xe,"-input-placeholder"),!!Gr)),ref:xa},c.createElement("input",Object.assign({id:ut,tabIndex:Ke,disabled:Ve,readOnly:Dt||!pn,value:Gr||un,onChange:function(ur){mn(ur.target.value)},autoFocus:Yt,placeholder:Ct,ref:Yr,title:un},Er,{size:i(En,Ra[0])},ve(Q),{autoComplete:Xr})),sr,wr))))}var zn=function(Q){Object(R.a)(We,Q);var Se=Object(j.a)(We);function We(){var Xe;return Object(X.a)(this,We),Xe=Se.apply(this,arguments),Xe.pickerRef=c.createRef(),Xe.focus=function(){Xe.pickerRef.current&&Xe.pickerRef.current.focus()},Xe.blur=function(){Xe.pickerRef.current&&Xe.pickerRef.current.blur()},Xe}return Object(F.a)(We,[{key:"render",value:function(){return c.createElement(zr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),We}(c.Component),_n=zn;function yn(Q,Se,We){var Xe=Q.picker,ut=Q.locale,Ke=Q.selectedValue,lt=Q.disabledDate,mt=Q.disabled,ht=Q.generateConfig,_t=le(Ke,0),$t=le(Ke,1);function Nt(Yt){var wt=ht.getYear(Yt),bn=ht.locale.getWeek(ut.locale,Yt);return wt*100+bn}function vt(Yt){var wt=ht.getYear(Yt),bn=ht.getMonth(Yt);return wt*100+bn}function nt(Yt){var wt=ht.getYear(Yt),bn=Ge(ht,Yt);return wt*10+bn}var Dt=c.useCallback(function(Yt){if(lt&<(Yt))return!0;if(mt[1]&&$t)return!Pt(ht,Yt,$t)&&ht.isAfter(Yt,$t);if(Se&&$t)switch(Xe){case"quarter":return nt(Yt)>nt($t);case"month":return vt(Yt)>vt($t);case"week":return Nt(Yt)>Nt($t);default:return!Pt(ht,Yt,$t)&&ht.isAfter(Yt,$t)}return!1},[lt,mt[1],$t,Se]),Gt=c.useCallback(function(Yt){if(lt&<(Yt))return!0;if(mt[0]&&_t)return!Pt(ht,Yt,$t)&&ht.isAfter(_t,Yt);if(We&&_t)switch(Xe){case"quarter":return nt(Yt)0&&arguments[0]!==void 0?arguments[0]:!1,Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rr=null;Ur&&La&&La[0]&&La[1]&&Dt.isAfter(La[1],La[0])&&(rr=La);var Ar=Wt;if(Wt&&Object(b.a)(Wt)==="object"&&Wt.defaultValue){var sa=Wt.defaultValue;Ar=Object(S.a)(Object(S.a)({},Wt),{},{defaultValue:le(sa,He)||void 0})}var vi=null;return Ft&&(vi=function(Da,Xa){return Ft(Da,Xa,{range:He?"end":"start"})}),c.createElement(ot.Provider,{value:{inRange:!0,panelPosition:Cr,rangedValue:Xi||kt,hoverRangedValue:rr}},c.createElement(ee,Object.assign({},Q,Fn,{dateRender:vi,showTime:Ar,mode:Tn[He],generateConfig:Dt,style:void 0,direction:Ia,disabledDate:He===0?Kr:Rr,disabledTime:function(Da){return Xt?Xt(Da,He===0?"start":"end"):!1},className:g()(Object(T.a)({},"".concat(Ke,"-panel-focused"),He===0?!pa:!so)),value:le(kt,He),locale:Gt,tabIndex:-1,onPanelChange:function(Da,Xa){wr(be(Tn,Xa,He),be(kt,Da,He));var gi=Da;Cr==="right"&&Tn[He]===Xa&&(gi=Ie(gi,Xa,Dt,-1)),vr(gi,He)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var da=0,Ua=0;He&&tt.current&&se.current&&$e.current&&(da=tt.current.offsetWidth+se.current.offsetWidth,$e.current.offsetWidth&&da>$e.current.offsetWidth&&(Ua=da));var Ri=Ia==="rtl"?{right:da}:{left:da};function di(){var Cr,Fn=H(Ke,Tn[He],Tr),rr=$({prefixCls:Ke,components:$a,needConfirmButton:Ca,okDisabled:!le(kt,He)||Ct&&Ct(kt[He]),locale:Gt,rangeList:Vr,onOk:function(){le(kt,He)&&(ja(kt,He),Ra&&Ra(kt))}});if(jt!=="time"&&!Wt){var Ar=br(He),sa=Ie(Ar,jt,Dt),vi=Tn[He],ai=vi===jt,Da=Pr(ai?"left":!1,{pickerValue:Ar,onPickerValueChange:function(wa){vr(wa,He)}}),Xa=Pr("right",{pickerValue:sa,onPickerValueChange:function(wa){vr(Ie(wa,jt,Dt,-1),He)}});Ia==="rtl"?Cr=c.createElement(c.Fragment,null,Xa,ai&&Da):Cr=c.createElement(c.Fragment,null,Da,ai&&Xa)}else Cr=Pr();var gi=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(Ke,"-panels")},Cr),(Fn||rr)&&c.createElement("div",{className:"".concat(Ke,"-footer")},Fn,rr));return On&&(gi=On(gi)),c.createElement("div",{className:"".concat(Ke,"-panel-container"),style:{marginLeft:Ua},ref:$e,onMouseDown:function(wa){wa.preventDefault()}},gi)}var Ui=c.createElement("div",{className:g()("".concat(Ke,"-range-wrapper"),"".concat(Ke,"-").concat(jt,"-range-wrapper")),style:{minWidth:_a}},c.createElement("div",{className:"".concat(Ke,"-range-arrow"),style:Ri}),di()),ci;Pn&&(ci=c.createElement("span",{className:"".concat(Ke,"-suffix")},Pn));var ba;An&&(le(Gn,0)&&!un[0]||le(Gn,1)&&!un[1])&&(ba=c.createElement("span",{onMouseDown:function(Fn){Fn.preventDefault(),Fn.stopPropagation()},onMouseUp:function(Fn){Fn.preventDefault(),Fn.stopPropagation();var rr=Gn;un[0]||(rr=be(rr,null,0)),un[1]||(rr=be(rr,null,1)),ja(rr,null),Zr(!1,He)},className:"".concat(Ke,"-clear")},qn||c.createElement("span",{className:"".concat(Ke,"-clear-btn")})));var Fi={size:i(jt,je[0])},Bi=0,Hi=0;tt.current&&Ne.current&&se.current&&(He===0?Hi=tt.current.offsetWidth:(Bi=da,Hi=Ne.current.offsetWidth));var Wa=Ia==="rtl"?{right:Bi}:{left:Bi},Wr=function(Fn,rr){var Ar=be(kt,Fn,He);rr==="submit"||rr!=="key"&&!Ca?(ja(Ar,He),He===0?$i():ro()):pn(Ar)};return c.createElement(v.Provider,{value:{operationRef:Bt,hideHeader:jt==="time",onDateMouseEnter:Ao,onDateMouseLeave:Mo,hideRanges:!0,onSelect:Wr,open:Ur}},c.createElement(Wn,{visible:Ur,popupElement:Ui,popupStyle:_t,prefixCls:Ke,dropdownClassName:$t,dropdownAlign:vt,getPopupContainer:nt,transitionName:Nt,range:!0,direction:Ia},c.createElement("div",Object.assign({ref:Ae,className:g()(Ke,"".concat(Ke,"-range"),ht,(Se={},Object(T.a)(Se,"".concat(Ke,"-disabled"),un[0]&&un[1]),Object(T.a)(Se,"".concat(Ke,"-focused"),He===0?Oa:oo),Object(T.a)(Se,"".concat(Ke,"-rtl"),Ia==="rtl"),Se)),style:mt,onClick:Ci,onMouseDown:Ji},ve(Q)),c.createElement("div",{className:g()("".concat(Ke,"-input"),(We={},Object(T.a)(We,"".concat(Ke,"-input-active"),He===0),Object(T.a)(We,"".concat(Ke,"-input-placeholder"),!!mi),We)),ref:tt},c.createElement("input",Object.assign({id:lt,disabled:un[0],readOnly:Jt||!pa,value:mi||Ti,onChange:function(Fn){ki(Fn.target.value)},autoFocus:wt,placeholder:le(Yt,0)||"",ref:Ce},Ha,Fi,{autoComplete:na}))),c.createElement("div",{className:"".concat(Ke,"-range-separator"),ref:se},ln),c.createElement("div",{className:g()("".concat(Ke,"-input"),(Xe={},Object(T.a)(Xe,"".concat(Ke,"-input-active"),He===1),Object(T.a)(Xe,"".concat(Ke,"-input-placeholder"),!!ui),Xe)),ref:Ne},c.createElement("input",Object.assign({disabled:un[1],readOnly:Jt||!so,value:ui||Oi,onChange:function(Fn){Vi(Fn.target.value)},placeholder:le(Yt,1)||"",ref:he},qa,Fi,{autoComplete:na}))),c.createElement("div",{className:"".concat(Ke,"-active-bar"),style:Object(S.a)(Object(S.a)({},Wa),{},{width:Hi,position:"absolute"})}),ci,ba)))}var Yn=function(Q){Object(R.a)(We,Q);var Se=Object(j.a)(We);function We(){var Xe;return Object(X.a)(this,We),Xe=Se.apply(this,arguments),Xe.pickerRef=c.createRef(),Xe.focus=function(){Xe.pickerRef.current&&Xe.pickerRef.current.focus()},Xe.blur=function(){Xe.pickerRef.current&&Xe.pickerRef.current.blur()},Xe}return Object(F.a)(We,[{key:"render",value:function(){return c.createElement(lr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),We}(c.Component),Jn=Yn,fr=te.b=_n},osHv:function(ze,te,P){(function(X){X(P("VrN/"))})(function(X){"use strict";var F=X.Pos;function R(a,t){return a.line-t.line||a.ch-t.ch}var j="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",T=j+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",S=new RegExp("<(/?)(["+j+"]["+T+"]*)","g");function M(a,t,s,h){this.line=t,this.ch=s,this.cm=a,this.text=a.getLine(t),this.min=h?Math.max(h.from,a.firstLine()):a.firstLine(),this.max=h?Math.min(h.to-1,a.lastLine()):a.lastLine()}function c(a,t){var s=a.cm.getTokenTypeAt(F(a.line,t));return s&&/\btag\b/.test(s)}function E(a){return a.line>=a.max?void 0:(a.ch=0,a.text=a.cm.getLine(++a.line),!0)}function g(a){return a.line<=a.min?void 0:(a.text=a.cm.getLine(--a.line),a.ch=a.text.length,!0)}function r(a){for(;;){var t=a.text.indexOf(">",a.ch);if(t==-1){if(E(a))continue;return}if(!c(a,t+1)){a.ch=t+1;continue}var s=a.text.lastIndexOf("/",t),h=s>-1&&!/\S/.test(a.text.slice(s+1,t));return a.ch=t+1,h?"selfClose":"regular"}}function l(a){for(;;){var t=a.ch?a.text.lastIndexOf("<",a.ch-1):-1;if(t==-1){if(g(a))continue;return}if(!c(a,t+1)){a.ch=t;continue}S.lastIndex=t,a.ch=t;var s=S.exec(a.text);if(s&&s.index==t)return s}}function b(a){for(;;){S.lastIndex=a.ch;var t=S.exec(a.text);if(!t){if(E(a))continue;return}if(!c(a,t.index+1)){a.ch=t.index+1;continue}return a.ch=t.index+t[0].length,t}}function u(a){for(;;){var t=a.ch?a.text.lastIndexOf(">",a.ch-1):-1;if(t==-1){if(g(a))continue;return}if(!c(a,t+1)){a.ch=t;continue}var s=a.text.lastIndexOf("/",t),h=s>-1&&!/\S/.test(a.text.slice(s+1,t));return a.ch=t+1,h?"selfClose":"regular"}}function p(a,t){for(var s=[];;){var h=b(a),y,D=a.line,C=a.ch-(h?h[0].length:0);if(!h||!(y=r(a)))return;if(y=="selfClose")continue;if(h[1]){for(var I=s.length-1;I>=0;--I)if(s[I]==h[2]){s.length=I;break}if(I<0&&(!t||t==h[2]))return{tag:h[2],from:F(D,C),to:F(a.line,a.ch)}}else s.push(h[2])}}function v(a,t){for(var s=[];;){var h=u(a);if(!h)return;if(h=="selfClose"){l(a);continue}var y=a.line,D=a.ch,C=l(a);if(!C)return;if(C[1])s.push(C[2]);else{for(var I=s.length-1;I>=0;--I)if(s[I]==C[2]){s.length=I;break}if(I<0&&(!t||t==C[2]))return{tag:C[2],from:F(a.line,a.ch),to:F(y,D)}}}}X.registerHelper("fold","xml",function(a,t){for(var s=new M(a,t.line,0);;){var h=b(s);if(!h||s.line!=t.line)return;var y=r(s);if(!y)return;if(!h[1]&&y!="selfClose"){var D=F(s.line,s.ch),C=p(s,h[2]);return C&&R(C.from,D)>0?{from:D,to:C.from}:null}}}),X.findMatchingTag=function(a,t,s){var h=new M(a,t.line,t.ch,s);if(h.text.indexOf(">")==-1&&h.text.indexOf("<")==-1)return;var y=r(h),D=y&&F(h.line,h.ch),C=y&&l(h);if(!y||!C||R(h,t)>0)return;var I={from:F(h.line,h.ch),to:D,tag:C[2]};return y=="selfClose"?{open:I,close:null,at:"open"}:C[1]?{open:v(h,C[2]),close:I,at:"close"}:(h=new M(a,D.line,D.ch,s),{open:I,close:p(h,C[2]),at:"open"})},X.findEnclosingTag=function(a,t,s,h){for(var y=new M(a,t.line,t.ch,s);;){var D=v(y,h);if(!D)break;var C=new M(a,t.line,t.ch,s),I=p(C,D.tag);if(I)return{open:D,close:I}}},X.scanForClosingTag=function(a,t,s,h){var y=new M(a,t.line,t.ch,h?{from:0,to:h}:null);return p(y,s)}})},p5ED:function(ze,te,P){"use strict";var X=P("+L6B"),F=P("2/Rp"),R=P("5Dmo"),j=P("3S7+"),T=P("k1fw"),S=P("9og8"),M=P("tJVT"),c=P("WmNS"),E=P.n(c),g=P("q1tI"),r=P.n(g),l=P("vHTk"),b=P.n(l),u=P("yEEn"),p=P("ZW9T"),v=P("1vsH"),a=P("V0Rq"),t=P("m3rI");te.a=function(s){var h,y,D,C,I,_,f=s.editOffice,o=f===void 0?"view":f,i=s.name,d=s.data,A=s.theme,O=s.type,m=s.filename,k=s.monacoEditor,N=s.className,B=s.style,G=s.close,W=s.onClose,z=s.hasMask,Y=s.disabledDownload,V=s.onImgDimensions,q=s.otherData,ne=Object(g.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ve=Object(M.a)(ne,2),le=ve[0],be=ve[1],we=Object(g.useState)(""),Re=Object(M.a)(we,2),ge=Re[0],fe=Re[1],Ze=Object(g.useState)(),Ot=Object(M.a)(Ze,2),Ee=Ot[0],ke=Ot[1],de=window.ENV==="build"?"/react/build":"",me=location.host.startsWith("localhost")?t.a.PROXY_SERVER:t.a.API_SERVER,Le,rt=1024*1024,Oe=10*rt,Ge=Object(g.useRef)();(h=d)!==null&&h!==void 0&&h.startsWith("/api")&&O!=="txt"&&(d=t.a.API_SERVER+d),O==="office"&&(Le=Object(v.P)(d).filesize,Le>Oe&&(O="other")),m&&(k.filename=m),Object(g.useEffect)(function(){var bt,zt,It=(bt=document.cookie)===null||bt===void 0||((zt=bt.replace(/\s/g,""))===null||zt===void 0)?void 0:zt.split(";");It==null||It.map(function(on){var dn=on.split("=");dn[0]==="_educoder_session"&&fe(dn[1])})},[]),Object(g.useEffect)(function(){O==="office"&&at()},[O,d]);var at=function(){var bt=Object(S.a)(E.a.mark(function zt(){var It,on,dn;return E.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return console.log("data:",d),It=d,d.startsWith("http")||(It=location.origin+It),on=new URL(It).pathname.split("/").pop(),De.next=6,Object(a.U)({attachment_id:on});case 6:dn=De.sent,ke(dn);case 8:case"end":return De.stop()}},zt)}));return function(){return bt.apply(this,arguments)}}(),dt=function(){if(d.startsWith("http")||d.startsWith("blob:")){Pt();return}Object(v.x)(m||"educoder",d,m)},Pt=function(){Object(v.v)(m||"educoder",decodeURIComponent(d))};return r.a.createElement("div",{style:Object(T.a)({},B||{}),className:"".concat(z&&b.a.bgBlack," ").concat(O?b.a.wrp:"hide")},G&&r.a.createElement("div",{className:b.a.close,ref:Ge},!!V&&r.a.createElement(j.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ge.current}},r.a.createElement("span",{onClick:function(){W(),V()}},r.a.createElement("i",{className:"icon-yulanpizhu"}))),!Y&&r.a.createElement(j.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},r.a.createElement("span",{onClick:Pt},r.a.createElement("i",{className:"icon-quxiaozhiding"}))),r.a.createElement(j.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},r.a.createElement("span",{className:"",onClick:W},r.a.createElement("i",{className:"icon-guanbi1"})))),r.a.createElement("div",{className:"".concat(b.a[N]," ").concat(N," ").concat(b.a.monaco," ").concat(O==="txt"?"show":"hide")},O==="txt"&&r.a.createElement(p.b,k)),O==="audio"&&r.a.createElement("audio",{src:"".concat(((y=d)===null||y===void 0?void 0:y.indexOf("http://"))>-1||((D=d)===null||D===void 0?void 0:D.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(d),autoPlay:!0}),O==="video"&&r.a.createElement(r.a.Fragment,null,((C=d)===null||C===void 0?void 0:C.indexOf("http"))>-1?r.a.createElement("video",{controls:!0,src:"".concat(d),autoPlay:!0}):r.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(d),autoPlay:!0})),O==="office"&&Ee&&r.a.createElement("iframe",{src:"".concat(de,"/office.html?key=").concat(Ee.key,"&url=").concat(me+Ee.url,"&callbackUrl=").concat(me+Ee.callbackUrl,"&fileType=").concat(Ee.fileType,"&title=").concat(Ee.title,"&model=").concat(o,"&officeServer=").concat(t.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),(O==="xlsx"||O==="doc"||O==="pptx"||O==="docx")&&r.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(q.key,"&url=").concat(t.a.API_SERVER+q.url,"&callbackUrl=").concat(t.a.API_SERVER+q.callbackUrl,"&fileType=").concat(q.fileType,"&title=").concat(q.title,"&model=").concat(q.model)}),O==="html"&&r.a.createElement("iframe",{src:d+"&disposition=inline"}),O==="pdf"&&r.a.createElement("embed",{className:b.a.embed,src:d}),O==="image"&&r.a.createElement("img",{src:"".concat(((I=d)===null||I===void 0?void 0:I.indexOf("http://"))>-1||((_=d)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(d)}),O==="other"&&r.a.createElement("div",null,r.a.createElement(F.a,{type:"primary",size:"large",onClick:dt},r.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),O==="download"&&r.a.createElement(F.a,{type:"primary",size:"large",onClick:dt},r.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(ze,te,P){},pmY6:function(ze,te,P){"use strict";P.d(te,"g",function(){return T}),P.d(te,"f",function(){return S}),P.d(te,"e",function(){return M}),P.d(te,"h",function(){return c}),P.d(te,"b",function(){return E}),P.d(te,"a",function(){return g}),P.d(te,"d",function(){return r}),P.d(te,"c",function(){return l});var X=!1,F="__is_disposable_tracked__";function R(b){if(!X)return;if(b&&b!==g.None)try{b[F]=!0}catch(u){}}function j(b){if(!X)return b;var u=new Error("Potentially leaked disposable").stack;return setTimeout(function(){b[F]||console.log(u)},3e3),b}function T(b){return typeof b.dispose=="function"&&b.dispose.length===0}function S(b){return Array.isArray(b)?(b.forEach(function(u){u&&(R(u),u.dispose())}),[]):b?(R(b),b.dispose(),b):void 0}function M(){for(var b=[],u=0;u=0&&(Ie=at[dn],Ie.textAlign==="right");)i(Y,V,Ie,ne,Pt,Le,on,"right"),bt-=Ie.width,on-=Ie.width,dn--;for(It+=(le-(It-me)-(rt-on)-bt)/2;zt<=dn;)Ie=at[zt],i(Y,V,Ie,ne,Pt,Le,It+Ie.width/2,"center"),It+=Ie.width,zt++;Le+=Pt}}function o(Y,V,q,ne,ve){if(q&&V.textRotation){var le=V.textOrigin;le==="center"?(ne=q.width/2+q.x,ve=q.height/2+q.y):le&&(ne=le[0]+q.x,ve=le[1]+q.y),Y.translate(ne,ve),Y.rotate(-V.textRotation),Y.translate(-ne,-ve)}}function i(Y,V,q,ne,ve,le,be,we){var Re=ne.rich[q.styleName]||{};Re.text=q.text;var ge=q.textVerticalAlign,fe=le+ve/2;ge==="top"?fe=le+q.height/2:ge==="bottom"&&(fe=le+ve-q.height/2),!q.isLineHolder&&d(Re)&&A(Y,V,Re,we==="right"?be-q.width:we==="center"?be-q.width/2:be,fe-q.height/2,q.width,q.height);var Ze=q.textPadding;Ze&&(be=W(be,we,Ze),fe-=q.height/2-Ze[2]-q.textHeight/2),k(V,"shadowBlur",R(Re.textShadowBlur,ne.textShadowBlur,0)),k(V,"shadowColor",Re.textShadowColor||ne.textShadowColor||"transparent"),k(V,"shadowOffsetX",R(Re.textShadowOffsetX,ne.textShadowOffsetX,0)),k(V,"shadowOffsetY",R(Re.textShadowOffsetY,ne.textShadowOffsetY,0)),k(V,"textAlign",we),k(V,"textBaseline","middle"),k(V,"font",q.font||p);var Ot=N(Re.textStroke||ne.textStroke,ke),Ee=B(Re.textFill||ne.textFill),ke=F(Re.textStrokeWidth,ne.textStrokeWidth);Ot&&(k(V,"lineWidth",ke),k(V,"strokeStyle",Ot),V.strokeText(q.text,be,fe)),Ee&&(k(V,"fillStyle",Ee),V.fillText(q.text,be,fe))}function d(Y){return!!(Y.textBackgroundColor||Y.textBorderWidth&&Y.textBorderColor)}function A(Y,V,q,ne,ve,le,be){var we=q.textBackgroundColor,Re=q.textBorderWidth,ge=q.textBorderColor,fe=S(we);if(k(V,"shadowBlur",q.textBoxShadowBlur||0),k(V,"shadowColor",q.textBoxShadowColor||"transparent"),k(V,"shadowOffsetX",q.textBoxShadowOffsetX||0),k(V,"shadowOffsetY",q.textBoxShadowOffsetY||0),fe||Re&&ge){V.beginPath();var Ze=q.textBorderRadius;Ze?E.buildPath(V,{x:ne,y:ve,width:le,height:be,r:Ze}):V.rect(ne,ve,le,be),V.closePath()}if(fe)if(k(V,"fillStyle",we),q.fillOpacity!=null){var Ot=V.globalAlpha;V.globalAlpha=q.fillOpacity*q.opacity,V.fill(),V.globalAlpha=Ot}else V.fill();else if(M(we)){var Ee=we.image;Ee=g.createOrUpdateImage(Ee,null,Y,O,we),Ee&&g.isImageReady(Ee)&&V.drawImage(Ee,ne,ve,le,be)}if(Re&&ge)if(k(V,"lineWidth",Re),k(V,"strokeStyle",ge),q.strokeOpacity!=null){var Ot=V.globalAlpha;V.globalAlpha=q.strokeOpacity*q.opacity,V.stroke(),V.globalAlpha=Ot}else V.stroke()}function O(Y,V){V.image=Y}function m(Y,V,q,ne){var ve=q.x||0,le=q.y||0,be=q.textAlign,we=q.textVerticalAlign;if(ne){var Re=q.textPosition;if(Re instanceof Array)ve=ne.x+G(Re[0],ne.width),le=ne.y+G(Re[1],ne.height);else{var ge=V&&V.calculateTextPosition?V.calculateTextPosition(s,q,ne):c.calculateTextPosition(s,q,ne);ve=ge.x,le=ge.y,be=be||ge.textAlign,we=we||ge.textVerticalAlign}var fe=q.textOffset;fe&&(ve+=fe[0],le+=fe[1])}return Y=Y||{},Y.baseX=ve,Y.baseY=le,Y.textAlign=be,Y.textVerticalAlign=we,Y}function k(Y,V,q){return Y[V]=r(Y,V,q),Y[V]}function N(Y,V){return Y==null||V<=0||Y==="transparent"||Y==="none"?null:Y.image||Y.colorStops?"#000":Y}function B(Y){return Y==null||Y==="none"?null:Y.image||Y.colorStops?"#000":Y}function G(Y,V){return typeof Y=="string"?Y.lastIndexOf("%")>=0?parseFloat(Y)/100*V:parseFloat(Y):Y}function W(Y,V,q){return V==="right"?Y-q[1]:V==="center"?Y+q[3]/2-q[1]/2:Y+q[3]}function z(Y,V){return Y!=null&&(Y||V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor||V.textPadding)}te.normalizeTextStyle=y,te.renderText=C,te.getBoxPosition=m,te.getStroke=N,te.getFill=B,te.parsePercent=G,te.needDrawText=z},qH13:function(ze,te,P){var X=P("ItGF"),F=P("QBsz"),R=F.applyTransform,j=P("mFDi"),T=P("Qe9p"),S=P("6GrX"),M=P("pzxd"),c=P("ni6a"),E=P("Gev7"),g=P("Dagg"),r=P("dqUG"),l=P("y+Vt"),b=P("IMiH"),u=P("QuXc"),p=P("06Qe"),v=b.CMD,a=Math.round,t=Math.sqrt,s=Math.abs,h=Math.cos,y=Math.sin,D=Math.max;if(!X.canvasSupported){var C=",",I="progid:DXImageTransform.Microsoft",_=21600,f=_/2,o=1e5,i=1e3,d=function(Oe){Oe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Oe.coordsize=_+","+_,Oe.coordorigin="0,0"},A=function(Oe){return String(Oe).replace(/&/g,"&").replace(/"/g,""")},O=function(Oe,Ge,at){return"rgb("+[Oe,Ge,at].join(",")+")"},m=function(Oe,Ge){Ge&&Oe&&Ge.parentNode!==Oe&&Oe.appendChild(Ge)},k=function(Oe,Ge){Ge&&Oe&&Ge.parentNode===Oe&&Oe.removeChild(Ge)},N=function(Oe,Ge,at){return(parseFloat(Oe)||0)*o+(parseFloat(Ge)||0)*i+at},B=M.parsePercent,G=function(Oe,Ge,at){var dt=T.parse(Ge);at=+at,isNaN(at)&&(at=1),dt&&(Oe.color=O(dt[0],dt[1],dt[2]),Oe.opacity=at*dt[3])},W=function(Oe){var Ge=T.parse(Oe);return[O(Ge[0],Ge[1],Ge[2]),Ge[3]]},z=function(Oe,Ge,at){var dt=Ge.fill;if(dt!=null)if(dt instanceof u){var Pt,bt=0,zt=[0,0],It=0,on=1,dn=at.getBoundingRect(),Ie=dn.width,De=dn.height;if(dt.type==="linear"){Pt="gradient";var ot=at.transform,Et=[dt.x*Ie,dt.y*De],Je=[dt.x2*Ie,dt.y2*De];ot&&(R(Et,Et,ot),R(Je,Je,ot));var ft=Je[0]-Et[0],Me=Je[1]-Et[1];bt=Math.atan2(ft,Me)*180/Math.PI,bt<0&&(bt+=360),bt<1e-6&&(bt=0)}else{Pt="gradientradial";var Et=[dt.x*Ie,dt.y*De],ot=at.transform,xe=at.scale,Te=Ie,oe=De;zt=[(Et[0]-dn.x)/Te,(Et[1]-dn.y)/oe],ot&&R(Et,Et,ot),Te/=xe[0]*_,oe/=xe[1]*_;var ue=D(Te,oe);It=2*0/ue,on=2*dt.r/ue-It}var pe=dt.colorStops.slice();pe.sort(function(ct,ye){return ct.offset-ye.offset});for(var _e=pe.length,Ye=[],Ue=[],Mt=0;Mt<_e;Mt++){var tn=pe[Mt],sn=W(tn.color);Ue.push(tn.offset*on+It+" "+sn[0]),(Mt===0||Mt===_e-1)&&Ye.push(sn)}if(_e>=2){var nn=Ye[0][0],rn=Ye[1][0],St=Ye[0][1]*Ge.opacity,Tt=Ye[1][1]*Ge.opacity;Oe.type=Pt,Oe.method="none",Oe.focus="100%",Oe.angle=bt,Oe.color=nn,Oe.color2=rn,Oe.colors=Ue.join(","),Oe.opacity=Tt,Oe.opacity2=St}Pt==="radial"&&(Oe.focusposition=zt.join(","))}else G(Oe,dt,Ge.opacity)},Y=function(Oe,Ge){Ge.lineDash&&(Oe.dashstyle=Ge.lineDash.join(" ")),Ge.stroke!=null&&!(Ge.stroke instanceof u)&&G(Oe,Ge.stroke,Ge.opacity)},V=function(Oe,Ge,at,dt){var Pt=Ge==="fill",bt=Oe.getElementsByTagName(Ge)[0];at[Ge]!=null&&at[Ge]!=="none"&&(Pt||!Pt&&at.lineWidth)?(Oe[Pt?"filled":"stroked"]="true",at[Ge]instanceof u&&k(Oe,bt),bt||(bt=p.createNode(Ge)),Pt?z(bt,at,dt):Y(bt,at),m(Oe,bt)):(Oe[Pt?"filled":"stroked"]="false",k(Oe,bt))},q=[[],[],[]],ne=function(Oe,Ge){var at=v.M,dt=v.C,Pt=v.L,bt=v.A,zt=v.Q,It=[],on,dn,Ie,De,ot,Et,Je=Oe.data,ft=Oe.len();for(De=0;De.01?ye&&(Pe+=270/_):Math.abs(Lt-nn)<1e-4?ye&&Pesn?xe-=270/_:xe+=270/_:ye&&Ltnn?Me+=270/_:Me-=270/_),It.push(pt,a(((sn-rn)*Ue+_e)*_-f),C,a(((nn-St)*Mt+Ye)*_-f),C,a(((sn+rn)*Ue+_e)*_-f),C,a(((nn+St)*Mt+Ye)*_-f),C,a((Pe*Ue+_e)*_-f),C,a((Lt*Mt+Ye)*_-f),C,a((Me*Ue+_e)*_-f),C,a((xe*Mt+Ye)*_-f)),ot=Me,Et=xe;break;case v.R:var en=q[0],an=q[1];en[0]=Je[De++],en[1]=Je[De++],an[0]=en[0]+Je[De++],an[1]=en[1]+Je[De++],Ge&&(R(en,en,Ge),R(an,an,Ge)),en[0]=a(en[0]*_-f),an[0]=a(an[0]*_-f),en[1]=a(en[1]*_-f),an[1]=a(an[1]*_-f),It.push(" m ",en[0],C,en[1]," l ",an[0],C,en[1]," l ",an[0],C,an[1]," l ",en[0],C,an[1]);break;case v.Z:It.push(" x ")}if(on>0){It.push(dn);for(var st=0;stRe&&(we=0,be={});var at=ge.style,dt;try{at.font=Oe,dt=at.fontFamily.split(",")[0]}catch(Pt){}Ge={style:at.fontStyle||le,variant:at.fontVariant||le,weight:at.fontWeight||le,size:parseFloat(at.fontSize||12)|0,family:dt||"Microsoft YaHei"},be[Oe]=Ge,we++}return Ge},Ze;S.$override("measureText",function(Oe,Ge){var at=p.doc;Ze||(Ze=at.createElement("div"),Ze.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(Ze));try{Ze.style.font=Ge}catch(dt){}return Ze.innerHTML="",Ze.appendChild(at.createTextNode(Oe)),{width:Ze.offsetWidth}});for(var Ot=new j,Ee=function(Oe,Ge,at,dt){var Pt=this.style;this.__dirty&&M.normalizeTextStyle(Pt,!0);var bt=Pt.text;if(bt!=null&&(bt+=""),!bt)return;if(Pt.rich){var zt=S.parseRichText(bt,Pt);bt=[];for(var It=0;It=0&&(this.delFromStorage(c),this._roots.splice(l,1),c instanceof R&&c.delChildrenFromStorage(this))},addToStorage:function(c){return c&&(c.__storage=this,c.dirty(!1)),this},delFromStorage:function(c){return c&&(c.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:T};var M=S;ze.exports=M},rA99:function(ze,te,P){var X=P("y+Vt"),F=P("QBsz"),R=P("Sj9i"),j=R.quadraticSubdivide,T=R.cubicSubdivide,S=R.quadraticAt,M=R.cubicAt,c=R.quadraticDerivativeAt,E=R.cubicDerivativeAt,g=[];function r(b,u,p){var v=b.cpx2,a=b.cpy2;return v===null||a===null?[(p?E:M)(b.x1,b.cpx1,b.cpx2,b.x2,u),(p?E:M)(b.y1,b.cpy1,b.cpy2,b.y2,u)]:[(p?c:S)(b.x1,b.cpx1,b.x2,u),(p?c:S)(b.y1,b.cpy1,b.y2,u)]}var l=X.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(b,u){var p=u.x1,v=u.y1,a=u.x2,t=u.y2,s=u.cpx1,h=u.cpy1,y=u.cpx2,D=u.cpy2,C=u.percent;if(C===0)return;b.moveTo(p,v),y==null||D==null?(C<1&&(j(p,s,a,C,g),s=g[1],a=g[2],j(v,h,t,C,g),h=g[1],t=g[2]),b.quadraticCurveTo(s,h,a,t)):(C<1&&(T(p,s,y,a,C,g),s=g[1],y=g[2],a=g[3],T(v,h,D,t,C,g),h=g[1],D=g[2],t=g[3]),b.bezierCurveTo(s,h,y,D,a,t))},pointAt:function(b){return r(this.shape,b,!1)},tangentAt:function(b){var u=r(this.shape,b,!0);return F.normalize(u,u)}});ze.exports=l},"rAM+":function(ze,te,P){"use strict";P.d(te,"a",function(){return F});var X=P("Qw5x");function F(R,j){var T;if(typeof Symbol=="undefined"||R[Symbol.iterator]==null){if(Array.isArray(R)||(T=Object(X.a)(R))||j&&R&&typeof R.length=="number"){T&&(R=T);var S=0,M=function(){};return{s:M,n:function(){return S>=R.length?{done:!0}:{done:!1,value:R[S++]}},e:function(l){throw l},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,E=!1,g;return{s:function(){T=R[Symbol.iterator]()},n:function(){var l=T.next();return c=l.done,l},e:function(l){E=!0,g=l},f:function(){try{!c&&T.return!=null&&T.return()}finally{if(E)throw g}}}}},rUJ1:function(ze,te){const P=/[&<>"']/,X=/[&<>"']/g,F=/[<>"']|&(?!#?\w+;)/,R=/[<>"']|&(?!#?\w+;)/g,j={"&":"&","<":"<",">":">",'"':""","'":"'"},T=_=>j[_];function S(_,f){if(f){if(P.test(_))return _.replace(X,T)}else if(F.test(_))return _.replace(R,T);return _}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(_){return _.replace(M,(f,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const E=/(^|[^\[])\^/g;function g(_,f){_=_.source||_,f=f||"";const o={replace:(i,d)=>(d=d.source||d,d=d.replace(E,"$1"),_=_.replace(i,d),o),getRegex:()=>new RegExp(_,f)};return o}const r=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(_,f,o){if(_){let i;try{i=decodeURIComponent(c(o)).replace(r,"").toLowerCase()}catch(d){return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}f&&!l.test(o)&&(o=t(f,o));try{o=encodeURI(o).replace(/%25/g,"%")}catch(i){return null}return o}const u={},p=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function t(_,f){u[" "+_]||(p.test(_)?u[" "+_]=_+"/":u[" "+_]=D(_,"/",!0)),_=u[" "+_];const o=_.indexOf(":")===-1;return f.substring(0,2)==="//"?o?f:_.replace(v,"$1")+f:f.charAt(0)==="/"?o?f:_.replace(a,"$1")+f:_+f}const s={exec:function(){}};function h(_){let f=1,o,i;for(;f{let k=!1,N=O;for(;--N>=0&&m[N]==="\\";)k=!k;return k?"|":" |"}),i=o.split(/ \|/);let d=0;if(i.length>f)i.splice(f);else for(;i.length0)){sn.next=7;break}return u.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),sn.abrupt("return");case 7:return Ue={homework_ids:Object(v.a)(V.actionTabs.selectArrs),group_ids:Ie.map(function(nn){return nn.id}),end_time:o()(Ye.end_time).format("YYYY-MM-DD HH:mm"),publish_time:o()(Ye.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Ie.length},sn.next=10,Object(i.a)("/api/courses/".concat(ne.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(a.a)({},Ue)});case 10:Mt=sn.sent,Mt.status===0&&(oe(),Object(d.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),u.b.success("\u53D1\u5E03\u6210\u529F"),q({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(m.c)()?V.actionTabs.detail?(q({type:"shixunHomeworks/setActionTabs",payload:{}}),q({type:"shixunHomeworks/getWorkList",payload:Object(a.a)({},ne)}),q({type:"shixunHomeworks/getWorkSetting",payload:Object(a.a)({},ne)})):q({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(a.a)(Object(a.a)({},V.actionTabs.params),{},{type:4})}):q({type:"classroomList/getClassroomShixunsList",payload:Object(a.a)({},V.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||q({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:_.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return sn.stop()}},_e)}));return function(){return pe.apply(this,arguments)}}(),oe=function(){fe(1),ke([]),De([])},ue=Le>ge*at;return _.a.createElement(F.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:V.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Te,onCancel:function(){oe(),q({type:"classroomList/setActionTabs",payload:{}})}},_.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",_.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),Ee&&_.a.createElement(h.a,{form:be},_.a.createElement("div",{style:{paddingLeft:0}},_.a.createElement(c.a,{className:"mt30",align:"middle"},_.a.createElement(g.a,null,_.a.createElement(h.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},_.a.createElement(l.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(_e){return _e.parentNode},disabledDate:function(_e){return _e&&_e<=o()().subtract(0,"days")},disabledTime:G,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(d.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),_.a.createElement(g.a,{className:"ml20"},_.a.createElement(h.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},_.a.createElement(l.a,{style:{width:170},getPopupContainer:function(_e){return _e.parentNode},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(d.d)(),"HH:mm")},disabledDate:function(_e){return _e&&_e0&&_.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},_.a.createElement("span",{style:{flex:1}},_.a.createElement(j.a,{checked:Ie.length===Ee.length,onChange:function(_e){Ie.length===Ee.length?De([]):De(Ee)}},"\u5168\u9009")," "),_.a.createElement("span",{style:{width:16}}),_.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ie.length||0,"\u4E2A\u5206\u73ED")),(V.actionTabs.type===1||!Je)&&Ee.length>0&&_.a.createElement(N.a,{data:Ee,selectedRowKeys:Ie,setSelectedRowKeys:De})))};te.a=Object(O.a)(function(z){var Y=z.classroomList,V=z.user;return{classroomList:Y,user:V}})(W)},rmlV:function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(R,j){var T=.5522848,S=j.cx,M=j.cy,c=j.rx,E=j.ry,g=c*T,r=E*T;R.moveTo(S-c,M),R.bezierCurveTo(S-c,M-r,S-g,M-E,S,M-E),R.bezierCurveTo(S+g,M-E,S+c,M-r,S+c,M),R.bezierCurveTo(S+c,M+r,S+g,M+E,S,M+E),R.bezierCurveTo(S-g,M+E,S-c,M+r,S-c,M),R.closePath()}});ze.exports=F},sR1s:function(ze,te,P){"use strict";P.d(te,"b",function(){return j}),P.d(te,"a",function(){return T}),P.d(te,"c",function(){return S}),P.d(te,"d",function(){return M});var X=P("U8pU"),F="RC_TABLE_KEY";function R(c){return c==null?[]:Array.isArray(c)?c:[c]}function j(c,E){if(!E&&typeof E!="number")return c;for(var g=R(E),r=c,l=0;l-1)){var u=j.parse(b)[3],p=j.toHex(b);l.setAttribute("stop-color","#"+p),l.setAttribute("stop-opacity",u)}else l.setAttribute("stop-color",E[g].color);c.appendChild(l)}M._dom=c},T.prototype.markUsed=function(M){if(M.style){var c=M.style.fill;c&&c._dom&&X.prototype.markUsed.call(this,c._dom),c=M.style.stroke,c&&c._dom&&X.prototype.markUsed.call(this,c._dom)}};var S=T;ze.exports=S},sboe:function(ze,te,P){"use strict";P.d(te,"a",function(){return R});var X=P("q1tI"),F=P.n(X),R=X.createContext(null)},t23M:function(ze,te,P){"use strict";var X=P("VTBJ"),F=P("1OyB"),R=P("vuIU"),j=P("Ji7U"),T=P("LK+K"),S=P("q1tI"),M=P.n(S),c=P("m+aA"),E=P("Zm9Q"),g=P("Kwbf"),r=P("c+Xe"),l=P("bdgK"),b="rc-observer-key",u=function(p){Object(j.a)(a,p);var v=Object(T.a)(a);function a(){var t;return Object(F.a)(this,a),t=v.apply(this,arguments),t.resizeObserver=null,t.childNode=null,t.currentElement=null,t.state={width:0,height:0,offsetHeight:0,offsetWidth:0},t.onResize=function(s){var h=t.props.onResize,y=s[0].target,D=y.getBoundingClientRect(),C=D.width,I=D.height,_=y.offsetWidth,f=y.offsetHeight,o=Math.floor(C),i=Math.floor(I);if(t.state.width!==o||t.state.height!==i||t.state.offsetWidth!==_||t.state.offsetHeight!==f){var d={width:o,height:i,offsetWidth:_,offsetHeight:f};t.setState(d),h&&Promise.resolve().then(function(){h(Object(X.a)(Object(X.a)({},d),{},{offsetWidth:_,offsetHeight:f}))})}},t.setChildNode=function(s){t.childNode=s},t}return Object(R.a)(a,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var s=this.props.disabled;if(s){this.destroyObserver();return}var h=Object(c.a)(this.childNode||this),y=h!==this.currentElement;y&&(this.destroyObserver(),this.currentElement=h),!this.resizeObserver&&h&&(this.resizeObserver=new l.default(this.onResize),this.resizeObserver.observe(h))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,h=Object(E.a)(s);if(h.length>1)Object(g.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(h.length===0)return Object(g.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var y=h[0];if(S.isValidElement(y)&&Object(r.c)(y)){var D=y.ref;h[0]=S.cloneElement(y,{ref:Object(r.a)(D,this.setChildNode)})}return h.length===1?h[0]:h.map(function(C,I){return!S.isValidElement(C)||"key"in C&&C.key!==null?C:S.cloneElement(C,{key:"".concat(b,"-").concat(I)})})}}]),a}(S.Component);u.displayName="ResizeObserver",te.a=u},u3os:function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ver=te.clear=te.bind=void 0;var X=P("P4Qj"),F=function(S,M){var c=(0,X.getSensor)(S);return c.bind(M),function(){c.unbind(M)}};te.bind=F;var R=function(S){var M=(0,X.getSensor)(S);(0,X.removeSensor)(M)};te.clear=R;var j="1.0.1";te.ver=j},ulZh:function(ze,te,P){typeof window!="undefined"&&function(F,R){ze.exports=R()}(this,function(){return function(X){var F={};function R(j){if(F[j])return F[j].exports;var T=F[j]={i:j,l:!1,exports:{}};return X[j].call(T.exports,T,T.exports,R),T.l=!0,T.exports}return R.m=X,R.c=F,R.d=function(j,T,S){R.o(j,T)||Object.defineProperty(j,T,{enumerable:!0,get:S})},R.r=function(j){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},R.t=function(j,T){if(T&1&&(j=R(j)),T&8)return j;if(T&4&&typeof j=="object"&&j&&j.__esModule)return j;var S=Object.create(null);if(R.r(S),Object.defineProperty(S,"default",{enumerable:!0,value:j}),T&2&&typeof j!="string")for(var M in j)R.d(S,M,function(c){return j[c]}.bind(null,M));return S},R.n=function(j){var T=j&&j.__esModule?function(){return j.default}:function(){return j};return R.d(T,"a",T),T},R.o=function(j,T){return Object.prototype.hasOwnProperty.call(j,T)},R.p="/dist/",R(R.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(X,F,R){"use strict";var j=Object.prototype.hasOwnProperty,T="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(T=!1));function M(r,l,b){this.fn=r,this.context=l,this.once=b||!1}function c(r,l,b,u,p){if(typeof b!="function")throw new TypeError("The listener must be a function");var v=new M(b,u||r,p),a=T?T+l:l;return r._events[a]?r._events[a].fn?r._events[a]=[r._events[a],v]:r._events[a].push(v):(r._events[a]=v,r._eventsCount++),r}function E(r,l){--r._eventsCount===0?r._events=new S:delete r._events[l]}function g(){this._events=new S,this._eventsCount=0}g.prototype.eventNames=function(){var l=[],b,u;if(this._eventsCount===0)return l;for(u in b=this._events)j.call(b,u)&&l.push(T?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(b)):l},g.prototype.listeners=function(l){var b=T?T+l:l,u=this._events[b];if(!u)return[];if(u.fn)return[u.fn];for(var p=0,v=u.length,a=new Array(v);p0},!1)}function r(l,b){for(var u={main:[b]},p={main:[]},v={main:{}};g(u);)for(var a=Object.keys(u),t=0;t1?q-1:0),ve=1;ve1?W-1:0),Y=1;Y=0)return parseInt(G.slice(G.indexOf("e-")+2),10);var W=0;return G.indexOf(".")>=0&&(W=G.length-G.indexOf(".")-1),W},m.getInputDisplayValue=function(B){var G=B||m.state,W=G.focused,z=G.inputValue,Y=G.value,V;W?V=z:V=m.toPrecisionAsStep(Y),V==null&&(V="");var q=m.formatWrapper(V);return C(m.props.decimalSeparator)&&(q=q.toString().replace(".",m.props.decimalSeparator)),q},m.recordCursorPosition=function(){try{m.cursorStart=m.input.selectionStart,m.cursorEnd=m.input.selectionEnd,m.currentValue=m.input.value,m.cursorBefore=m.input.value.substring(0,m.cursorStart),m.cursorAfter=m.input.value.substring(m.cursorEnd)}catch(B){}},m.restoreByAfter=function(B){if(B===void 0)return!1;var G=m.input.value,W=G.lastIndexOf(B);if(W===-1)return!1;var z=m.cursorBefore.length;return m.lastKeyCode===l.a.DELETE&&m.cursorBefore.charAt(z-1)===B[0]?(m.fixCaret(z,z),!0):W+B.length===G.length?(m.fixCaret(W,W),!0):!1},m.partRestoreByAfter=function(B){return B===void 0?!1:Array.prototype.some.call(B,function(G,W){var z=B.substring(W);return m.restoreByAfter(z)})},m.isNotCompleteNumber=function(B){return isNaN(B)||B===""||B===null||B&&B.toString().indexOf(".")===B.toString().length-1},m.stop=function(){m.autoStepTimer&&clearTimeout(m.autoStepTimer)},m.down=function(B,G,W){m.pressingUpOrDown=!0,m.step("down",B,G,W)},m.up=function(B,G,W){m.pressingUpOrDown=!0,m.step("up",B,G,W)},m.saveInput=function(B){m.input=B};var k=O.value;k===void 0&&(k=O.defaultValue),m.state={focused:O.autoFocus};var N=m.getValidValue(m.toNumber(k));return m.state=u(u({},m.state),{},{inputValue:m.toPrecisionAsStep(N),value:N}),m}return Object(j.a)(A,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(m){var k=this.props,N=k.value,B=k.onChange,G=k.max,W=k.min,z=this.state.focused;if(m){if(!I(m.value,N)||!I(m.max,G)||!I(m.min,W)){var Y=z?N:this.getValidValue(N),V;this.pressingUpOrDown?V=Y:this.inputting?V=this.rawInput:V=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:V})}var q="value"in this.props?N:this.state.value;"max"in this.props&&m.max!==G&&typeof q=="number"&&q>G&&B&&B(G),"min"in this.props&&m.min!==W&&typeof q=="number"&&q1&&arguments[1]!==void 0?arguments[1]:this.props.min,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,B=parseFloat(m);return isNaN(B)?m:(BN&&(B=N),B)}},{key:"setValue",value:function(m,k){var N=this.props.precision,B=this.isNotCompleteNumber(parseFloat(m))?null:parseFloat(m),G=this.state.value,W=G===void 0?null:G,z=this.state.inputValue,Y=z===void 0?null:z,V=typeof B=="number"?B.toFixed(N):"".concat(B),q=B!==W||V!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},k)):this.setState({value:B,inputValue:this.toPrecisionAsStep(m)},k),q&&this.props.onChange(B),B}},{key:"getMaxPrecision",value:function(m){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.props,B=N.precision,G=N.step;if(C(B))return B;var W=this.getPrecision(k),z=this.getPrecision(G),Y=this.getPrecision(m);return m?Math.max(Y,W+z):W+z}},{key:"getPrecisionFactor",value:function(m){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.getMaxPrecision(m,k);return Math.pow(10,N)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(m){return this.props.formatter?this.props.formatter(m):m}},{key:"toPrecisionAsStep",value:function(m){if(this.isNotCompleteNumber(m)||m==="")return m;var k=Math.abs(this.getMaxPrecision(m));return isNaN(k)?m.toString():Number(m).toFixed(k)}},{key:"toNumber",value:function(m){var k=this.props.precision,N=this.state.focused,B=m&&m.length>16&&N;return this.isNotCompleteNumber(m)||B?m:C(k)?Math.round(m*Math.pow(10,k))/Math.pow(10,k):Number(m)}},{key:"upStep",value:function(m,k){var N=this.props.step,B=this.getPrecisionFactor(m,k),G=Math.abs(this.getMaxPrecision(m,k)),W=((B*m+B*N*k)/B).toFixed(G);return this.toNumber(W)}},{key:"downStep",value:function(m,k){var N=this.props.step,B=this.getPrecisionFactor(m,k),G=Math.abs(this.getMaxPrecision(m,k)),W=((B*m-B*N*k)/B).toFixed(G);return this.toNumber(W)}},{key:"step",value:function(m,k){var N=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,G=arguments.length>3?arguments[3]:void 0;this.stop(),k&&(k.persist(),k.preventDefault());var W=this.props;if(W.disabled)return;var z=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(z))return;var Y=this["".concat(m,"Step")](z,B),V=Y>W.max||YW.max?Y=W.max:Y=ne),ft=(on||on===0)&&(isNaN(on)||Number(on)<=ve),Me=Je||B||G,xe=ft||B||G,Te=r()("".concat(N,"-handler"),"".concat(N,"-handler-up"),Object(F.a)({},"".concat(N,"-handler-up-disabled"),Me)),oe=r()("".concat(N,"-handler"),"".concat(N,"-handler-down"),Object(F.a)({},"".concat(N,"-handler-down-disabled"),xe)),ue=W?{onTouchStart:Me?a:this.up,onTouchEnd:this.stop}:{onMouseDown:Me?a:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},pe=W?{onTouchStart:xe?a:this.down,onTouchEnd:this.stop}:{onMouseDown:xe?a:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return E.a.createElement("div",{className:Ie,style:le,title:be,onMouseEnter:we,onMouseLeave:Re,onMouseOver:ge,onMouseOut:fe,onFocus:function(){return null},onBlur:function(){return null}},E.a.createElement("div",{className:"".concat(N,"-handler-wrap")},E.a.createElement("span",Object.assign({unselectable:"on"},ue,{role:"button","aria-label":"Increase Value","aria-disabled":Me,className:Te}),Y||E.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-up-inner"),onClick:t})),E.a.createElement("span",Object.assign({unselectable:"on"},pe,{role:"button","aria-label":"Decrease Value","aria-disabled":xe,className:oe}),V||E.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-down-inner"),onClick:t}))),E.a.createElement("div",{className:"".concat(N,"-input-wrap")},E.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":ve,"aria-valuemax":ne,"aria-valuenow":on,required:Ze,type:ke,placeholder:de,onPaste:Rt,onClick:Ot,onMouseUp:this.onMouseUp,className:"".concat(N,"-input"),tabIndex:Ee,autoComplete:z,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ot?this.onKeyDown:a,onKeyUp:ot?this.onKeyUp:a,autoFocus:at,maxLength:Ge,readOnly:G,disabled:B,max:ne,min:ve,step:Oe,name:dt,title:be,id:me,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Et),pattern:rt,inputMode:Le,onInput:bt},De))))}}]),A}(E.a.Component);_.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:D,min:-D,step:1,style:{},onChange:a,onKeyDown:a,onPressEnter:a,onFocus:a,onBlur:a,parser:s,required:!1,autoComplete:"off"};var f=_,o=te.a=f},dqUG:function(ze,te,P){var X=P("Gev7"),F=P("bYtY"),R=P("6GrX"),j=P("pzxd"),T=P("gut8"),S=T.ContextCachedBy,M=function(E){X.call(this,E)};M.prototype={constructor:M,type:"text",brush:function(E,g){var r=this.style;this.__dirty&&j.normalizeTextStyle(r,!0),r.fill=r.stroke=r.shadowBlur=r.shadowColor=r.shadowOffsetX=r.shadowOffsetY=null;var l=r.text;if(l!=null&&(l+=""),!j.needDrawText(l,r)){E.__attrCachedBy=S.NONE;return}this.setTransform(E),j.renderText(this,E,l,r,null,g),this.restoreTransform(E)},getBoundingRect:function(){var E=this.style;if(this.__dirty&&j.normalizeTextStyle(E,!0),!this._rect){var g=E.text;g!=null?g+="":g="";var r=R.getBoundingRect(E.text+"",E.font,E.textAlign,E.textVerticalAlign,E.textPadding,E.textLineHeight,E.rich);if(r.x+=E.x||0,r.y+=E.y||0,j.getStroke(E.textStroke,E.textStrokeWidth)){var l=E.textStrokeWidth;r.x-=l/2,r.y-=l/2,r.width+=l,r.height+=l}this._rect=r}return this._rect}},F.inherits(M,X);var c=M;ze.exports=c},fW2E:function(ze,te){var P={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function X(F,R,j){return P.hasOwnProperty(R)?j*=F.dpr:j}ze.exports=X},fjLI:function(ze,te,P){"use strict";P.d(te,"e",function(){return g}),P.d(te,"a",function(){return r}),P.d(te,"c",function(){return l}),P.d(te,"d",function(){return u}),P.d(te,"b",function(){return p});var X=P("8HAY"),F=P("Cg/j"),R=P("T8No"),j=P("nnTU"),T=P("MI8n"),S=function(){var v=function(a,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,h){s.__proto__=h}||function(s,h){for(var y in h)h.hasOwnProperty(y)&&(s[y]=h[y])},v(a,t)};return function(a,t){v(a,t);function s(){this.constructor=a}a.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}}(),M=function(v,a,t,s){var h=arguments.length,y=h<3?a:s===null?s=Object.getOwnPropertyDescriptor(a,t):s,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(v,a,t,s);else for(var C=v.length-1;C>=0;C--)(D=v[C])&&(y=(h<3?D(y):h>3?D(a,t,y):D(a,t))||y);return h>3&&y&&Object.defineProperty(a,t,y),y},c=function(v,a){return function(t,s){a(t,s,v)}},E=function(){for(var v=0,a=0,t=arguments.length;a=0&&(h.splice(y,1),s._onDidChangeMenu.fire(a))}}},v.prototype.getMenuItems=function(a){var t=(this._menuItems.get(a)||[]).slice(0);return a===0&&this._appendImplicitItems(t),t},v.prototype._appendImplicitItems=function(a){for(var t=new Set,s=a.filter(function(_){return g(_)}),h=0,y=s;hF&&S>j||ST?M:0}ze.exports=P},iXp4:function(ze,te,P){var X=P("ItGF"),F=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function R(j){return X.browser.ie&&X.browser.version>=11?function(){var T=this.__clipPaths,S=this.style,M;if(T)for(var c=0;cgt&&(mn=gt-ln),Object(T.useMemo)(function(){if(!Ce.length)return[0,0];for(var An=Ce.length,Kn=An,ar=0;arHe+mn){Kn=ar-1;break}}for(var or=0,_r=An-1;_r>=0;_r-=1){var gr=Ae.get(Ce[_r].key)||y;if(gr[it]1&&arguments[1]!==void 0?arguments[1]:!1,Ne=$e&&typeof $e.getBoundingClientRect=="function"&&$e.getBoundingClientRect().width;if(Ne){if(nt){var se=getComputedStyle($e),Ce=se.marginLeft,he=se.marginRight;Ne+=+Ce.replace("px","")+ +he.replace("px","")}Ne=+Ne.toFixed(6)}return Ne||0},at=function($e,nt,Ne){$e&&Object(N.a)($e.style)==="object"&&($e.style[nt]=Ne)},dt=function(){return Ee.any},Rt=P("bdgK"),bt=P("i8i4"),Kt=P.n(bt),Lt=P("wgJM"),on=P("l4aY"),un=P("m+aA"),Ie=P("c+Xe"),De=P("zT1h"),ot=P("QC+M");function Et(Ae,$e,nt){return nt?Ae[0]===$e[0]:Ae[0]===$e[0]&&Ae[1]===$e[1]}function Je(Ae,$e,nt){var Ne=Ae[$e]||{};return Object(j.a)(Object(j.a)({},Ne),nt)}function ft(Ae,$e,nt,Ne){for(var se=nt.points,Ce=Object.keys(Ae),he=0;he1&&arguments[1]!==void 0?arguments[1]:2;$e();var Ce=Object(Lt.a)(function(){se<=1?Ne({isCanceled:function(){return Ce!==Ae.current}}):nt(Ne,se-1)});Ae.current=Ce}return T.useEffect(function(){return function(){$e()}},[]),[nt,$e]},hr=[pt,en,an,st],yr=!1,lr=!0;function kn(Ae){return Ae===an||Ae===st}var Wr=function(Ae,$e){var nt=T.useState(Pt),Ne=Object(F.a)(nt,2),se=Ne[0],Ce=Ne[1],he=Mn(),je=Object(F.a)(he,2),Fe=je[0],it=je[1];function He(){Ce(pt)}return yn(function(){if(se!==Pt&&se!==st){var gt=hr.indexOf(se),Ut=hr[gt+1],ln=$e(se);ln===yr?Ce(Ut):Fe(function(mn){function An(){if(mn.isCanceled())return;Ce(Ut)}ln===!0?An():Promise.resolve(ln).then(An)})}},[Ae,se]),T.useEffect(function(){return function(){it()}},[]),[He,se]},ea=function(Ae){var $e=Object(T.useRef)(),nt=Object(T.useRef)(Ae);nt.current=Ae;var Ne=T.useCallback(function(he){nt.current(he)},[]);function se(he){he&&(he.removeEventListener(rn,Ne),he.removeEventListener(nn,Ne))}function Ce(he){$e.current&&$e.current!==he&&se($e.current),he&&he!==$e.current&&(he.addEventListener(rn,Ne),he.addEventListener(nn,Ne),$e.current=he)}return T.useEffect(function(){return function(){se($e.current)}},[]),[Ce,se]};function Pr(Ae,$e,nt,Ne){var se=Ne.motionEnter,Ce=se===void 0?!0:se,he=Ne.motionAppear,je=he===void 0?!0:he,Fe=Ne.motionLeave,it=Fe===void 0?!0:Fe,He=Ne.motionDeadline,gt=Ne.motionLeaveImmediately,Ut=Ne.onAppearPrepare,ln=Ne.onEnterPrepare,mn=Ne.onLeavePrepare,An=Ne.onAppearStart,Kn=Ne.onEnterStart,ar=Ne.onLeaveStart,ir=Ne.onAppearActive,or=Ne.onEnterActive,_r=Ne.onLeaveActive,gr=Ne.onAppearEnd,br=Ne.onEnterEnd,Tr=Ne.onLeaveEnd,sr=Ne.onVisibleChanged,Ar=xt(),nr=Object(F.a)(Ar,2),gn=nr[0],Bt=nr[1],Ht=xt(Tt),fn=Object(F.a)(Ht,2),wn=fn[0],Sn=fn[1],Hr=xt(null),Sr=Object(F.a)(Hr,2),Lr=Sr[0],Ur=Sr[1],kr=Object(T.useRef)(!1),Mr=Object(T.useRef)(null),ur=Object(T.useRef)(!1),ha=Object(T.useRef)(null);function Qa(){var qr=nt();return qr||ha.current}var Na=Object(T.useRef)(!1);function _a(qr){var $r=Qa();if(qr&&!qr.deadline&&qr.target!==$r)return;var ya;wn===ct&&Na.current?ya=gr==null?void 0:gr($r,qr):wn===ye&&Na.current?ya=br==null?void 0:br($r,qr):wn===Pe&&Na.current&&(ya=Tr==null?void 0:Tr($r,qr)),ya!==!1&&!ur.current&&(Sn(Tt),Ur(null))}var ra=ea(_a),Qr=Object(F.a)(ra,1),Zr=Qr[0],aa=T.useMemo(function(){var qr,$r,ya;switch(wn){case"appear":return qr={},Object(X.a)(qr,pt,Ut),Object(X.a)(qr,en,An),Object(X.a)(qr,an,ir),qr;case"enter":return $r={},Object(X.a)($r,pt,ln),Object(X.a)($r,en,Kn),Object(X.a)($r,an,or),$r;case"leave":return ya={},Object(X.a)(ya,pt,mn),Object(X.a)(ya,en,ar),Object(X.a)(ya,an,_r),ya;default:return{}}},[wn]),ja=Wr(wn,function(qr){if(qr===pt){var $r=aa[pt];return $r?$r(Qa()):yr}if(Jr in aa){var ya;Ur(((ya=aa[Jr])===null||ya===void 0?void 0:ya.call(aa,Qa(),null))||null)}return Jr===an&&(Zr(Qa()),He>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){_a({deadline:!0})},He))),lr}),hi=Object(F.a)(ja,2),si=hi[0],Jr=hi[1],Ja=kn(Jr);Na.current=Ja,yn(function(){Bt($e);var qr=kr.current;if(kr.current=!0,!Ae)return;var $r;!qr&&$e&&je&&($r=ct),qr&&$e&&Ce&&($r=ye),(qr&&!$e&&it||!qr&>&&!$e&&it)&&($r=Pe),$r&&(Sn($r),si())},[$e]),Object(T.useEffect)(function(){(wn===ct&&!je||wn===ye&&!Ce||wn===Pe&&!it)&&Sn(Tt)},[je,Ce,it]),Object(T.useEffect)(function(){return function(){clearTimeout(Mr.current),ur.current=!0}},[]),Object(T.useEffect)(function(){gn!==void 0&&wn===Tt&&(sr==null||sr(gn))},[gn,wn]);var Za=Lr;return aa[pt]&&Jr===en&&(Za=Object(j.a)({transition:"none"},Za)),[wn,Jr,Za,gn!=null?gn:$e]}var mr=function(Ae){Object(o.a)(nt,Ae);var $e=Object(i.a)(nt);function nt(){return Object(I.a)(this,nt),$e.apply(this,arguments)}return Object(_.a)(nt,[{key:"render",value:function(){return this.props.children}}]),nt}(T.Component),Fr=mr;function ta(Ae){var $e=Ae;Object(N.a)(Ae)==="object"&&($e=Ae.transitionSupport);function nt(se){return!!(se.motionName&&$e)}var Ne=T.forwardRef(function(se,Ce){var he=se.visible,je=he===void 0?!0:he,Fe=se.removeOnLeave,it=Fe===void 0?!0:Fe,He=se.forceRender,gt=se.children,Ut=se.motionName,ln=se.leavedClassName,mn=se.eventProps,An=nt(se),Kn=Object(T.useRef)(),ar=Object(T.useRef)();function ir(){try{return Object(un.a)(Kn.current||ar.current)}catch(Sn){return null}}var or=Pr(An,je,ir,se),_r=Object(F.a)(or,4),gr=_r[0],br=_r[1],Tr=_r[2],sr=_r[3],Ar=T.useRef(sr);sr&&(Ar.current=!0);var nr=Object(T.useRef)(Ce);nr.current=Ce;var gn=T.useCallback(function(Sn){Kn.current=Sn,Object(Ie.b)(nr.current,Sn)},[]),Bt,Ht=Object(j.a)(Object(j.a)({},mn),{},{visible:je});if(!gt)Bt=null;else if(gr===Tt||!nt(se))sr?Bt=gt(Object(j.a)({},Ht),gn):!it&&Ar.current?Bt=gt(Object(j.a)(Object(j.a)({},Ht),{},{className:ln}),gn):He?Bt=gt(Object(j.a)(Object(j.a)({},Ht),{},{style:{display:"none"}}),gn):Bt=null;else{var fn,wn;br===pt?wn="prepare":kn(br)?wn="active":br===en&&(wn="start"),Bt=gt(Object(j.a)(Object(j.a)({},Ht),{},{className:M()(St(Ut,gr),(fn={},Object(X.a)(fn,St(Ut,"".concat(gr,"-").concat(wn)),wn),Object(X.a)(fn,Ut,typeof Ut=="string"),fn)),style:Tr}),gn)}return T.createElement(Fr,{ref:ar},Bt)});return Ne.displayName="CSSMotion",Ne}var ca=ta(sn),Zt="add",In="keep",fr="remove",Dr="removed";function Cr(Ae){var $e;return Ae&&Object(N.a)(Ae)==="object"&&"key"in Ae?$e=Ae:$e={key:Ae},Object(j.a)(Object(j.a)({},$e),{},{key:String($e.key)})}function wr(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ae.map(Cr)}function J(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],nt=[],Ne=0,se=$e.length,Ce=wr(Ae),he=wr($e);Ce.forEach(function(it){for(var He=!1,gt=Ne;gt1});return Fe.forEach(function(it){nt=nt.filter(function(He){var gt=He.key,Ut=He.status;return gt!==it||Ut!==fr}),nt.forEach(function(He){He.key===it&&(He.status=In)})}),nt}var U=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function H(Ae){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca,nt=function(Ne){Object(o.a)(Ce,Ne);var se=Object(i.a)(Ce);function Ce(){var he;return Object(I.a)(this,Ce),he=se.apply(this,arguments),he.state={keyEntities:[]},he.removeKey=function(je){he.setState(function(Fe){var it=Fe.keyEntities;return{keyEntities:it.map(function(He){return He.key!==je?He:Object(j.a)(Object(j.a)({},He),{},{status:Dr})})}})},he}return Object(_.a)(Ce,[{key:"render",value:function(){var je=this,Fe=this.state.keyEntities,it=this.props,He=it.component,gt=it.children,Ut=it.onVisibleChanged,ln=Object(R.a)(it,["component","children","onVisibleChanged"]),mn=He||T.Fragment,An={};return U.forEach(function(Kn){An[Kn]=ln[Kn],delete ln[Kn]}),delete ln.keys,T.createElement(mn,ln,Fe.map(function(Kn){var ar=Kn.status,ir=Object(R.a)(Kn,["status"]),or=ar===Zt||ar===In;return T.createElement($e,Object(C.a)({},An,{key:ir.key,visible:or,eventProps:ir,onVisibleChanged:function(gr){Ut==null||Ut(gr,{key:ir.key}),gr||je.removeKey(ir.key)}}),gt)}))}}],[{key:"getDerivedStateFromProps",value:function(je,Fe){var it=je.keys,He=Fe.keyEntities,gt=wr(it),Ut=J(He,gt);return{keyEntities:Ut.filter(function(ln){var mn=He.find(function(An){var Kn=An.key;return ln.key===Kn});return!(mn&&mn.status===Dr&&ln.status===fr)})}}}]),Ce}(T.Component);return nt.defaultProps={component:"div"},nt}var $=H(sn),re=ca;function ee(Ae){var $e=Ae.prefixCls,nt=Ae.motion,Ne=Ae.animation,se=Ae.transitionName;return nt||(Ne?{motionName:"".concat($e,"-").concat(Ne)}:se?{motionName:se}:null)}function Qe(Ae){var $e=Ae.prefixCls,nt=Ae.visible,Ne=Ae.zIndex,se=Ae.mask,Ce=Ae.maskMotion,he=Ae.maskAnimation,je=Ae.maskTransitionName;if(!se)return null;var Fe={};return(Ce||je||he)&&(Fe=Object(j.a)({motionAppear:!0},ee({motion:Ce,prefixCls:$e,transitionName:je,animation:he}))),T.createElement(re,Object(C.a)({},Fe,{visible:nt,removeOnLeave:!0}),function(it){var He=it.className;return T.createElement("div",{style:{zIndex:Ne},className:M()("".concat($e,"-mask"),He)})})}var dn=P("9mu1"),On=P("o0o1"),Wn=P.n(On),pn=P("HaE+"),er=["measure","align",null,"motion"],tr=function(Ae,$e){var nt=Object(T.useState)(null),Ne=Object(F.a)(nt,2),se=Ne[0],Ce=Ne[1],he=Object(T.useRef)(),je=Object(T.useRef)(!1);function Fe(gt){je.current||Ce(gt)}function it(){Lt.a.cancel(he.current)}function He(gt){it(),he.current=Object(Lt.a)(function(){Fe(function(Ut){switch(se){case"align":return"motion";case"motion":return"stable";default:}return Ut}),gt==null||gt()})}return Object(T.useEffect)(function(){Fe("measure")},[Ae]),Object(T.useEffect)(function(){switch(se){case"measure":$e();break;default:}se&&(he.current=Object(Lt.a)(Object(pn.a)(Wn.a.mark(function gt(){var Ut,ln;return Wn.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:Ut=er.indexOf(se),ln=er[Ut+1],ln&&Ut!==-1&&Fe(ln);case 3:case"end":return An.stop()}},gt)}))))},[se]),Object(T.useEffect)(function(){return function(){je.current=!0,it()}},[]),[se,He]},Br=function(Ae){var $e=T.useState({width:0,height:0}),nt=Object(F.a)($e,2),Ne=nt[0],se=nt[1];function Ce(je){se({width:je.offsetWidth,height:je.offsetHeight})}var he=T.useMemo(function(){var je={};if(Ae){var Fe=Ne.width,it=Ne.height;Ae.indexOf("height")!==-1&&it?je.height=it:Ae.indexOf("minHeight")!==-1&&it&&(je.minHeight=it),Ae.indexOf("width")!==-1&&Fe?je.width=Fe:Ae.indexOf("minWidth")!==-1&&Fe&&(je.minWidth=Fe)}return je},[Ae,Ne]);return[he,Ce]},ua=T.forwardRef(function(Ae,$e){var nt=Ae.visible,Ne=Ae.prefixCls,se=Ae.className,Ce=Ae.style,he=Ae.children,je=Ae.zIndex,Fe=Ae.stretch,it=Ae.destroyPopupOnHide,He=Ae.forceRender,gt=Ae.align,Ut=Ae.point,ln=Ae.getRootDomNode,mn=Ae.getClassNameFromAlign,An=Ae.onAlign,Kn=Ae.onMouseEnter,ar=Ae.onMouseLeave,ir=Ae.onMouseDown,or=Ae.onTouchStart,_r=Object(T.useRef)(),gr=Object(T.useRef)(),br=Object(T.useState)(),Tr=Object(F.a)(br,2),sr=Tr[0],Ar=Tr[1],nr=Br(Fe),gn=Object(F.a)(nr,2),Bt=gn[0],Ht=gn[1];function fn(){Fe&&Ht(ln())}var wn=tr(nt,fn),Sn=Object(F.a)(wn,2),Hr=Sn[0],Sr=Sn[1],Lr=Object(T.useRef)();function Ur(){return Ut||ln}function kr(){var ra;(ra=_r.current)===null||ra===void 0||ra.forceAlign()}function Mr(ra,Qr){var Zr=mn(Qr);sr!==Zr&&Ar(Zr),Hr==="align"&&(sr!==Zr?Promise.resolve().then(function(){kr()}):Sr(function(){var aa;(aa=Lr.current)===null||aa===void 0||aa.call(Lr)}),An==null||An(ra,Qr))}var ur=Object(j.a)({},ee(Ae));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ra){var Qr=ur[ra];ur[ra]=function(Zr,aa){return Sr(),Qr==null?void 0:Qr(Zr,aa)}});function ha(){return new Promise(function(ra){Lr.current=ra})}T.useEffect(function(){!ur.motionName&&Hr==="motion"&&Sr()},[ur.motionName,Hr]),T.useImperativeHandle($e,function(){return{forceAlign:kr,getElement:function(){return gr.current}}});var Qa=Object(j.a)(Object(j.a)({},Bt),{},{zIndex:je,opacity:Hr==="motion"||Hr==="stable"||!nt?void 0:0,pointerEvents:Hr==="stable"?void 0:"none"},Ce),Na=!0;(gt==null?void 0:gt.points)&&(Hr==="align"||Hr==="stable")&&(Na=!1);var _a=he;return T.Children.count(he)>1&&(_a=T.createElement("div",{className:"".concat(Ne,"-content")},he)),T.createElement(re,Object(C.a)({visible:nt,ref:gr,leavedClassName:"".concat(Ne,"-hidden")},ur,{onAppearPrepare:ha,onEnterPrepare:ha,removeOnLeave:it,forceRender:He}),function(ra,Qr){var Zr=ra.className,aa=ra.style,ja=M()(Ne,se,sr,Zr);return T.createElement(dn.a,{target:Ur(),key:"popup",ref:_r,monitorWindowResize:!0,disabled:Na,align:gt,onAlign:Mr},T.createElement("div",{ref:Qr,className:ja,onMouseEnter:Kn,onMouseLeave:ar,onMouseDownCapture:ir,onTouchStartCapture:or,style:Object(j.a)(Object(j.a)({},aa),Qa)},_a))})});ua.displayName="PopupInner";var va=ua,Gr=T.forwardRef(function(Ae,$e){var nt=Ae.prefixCls,Ne=Ae.visible,se=Ae.zIndex,Ce=Ae.children,he=Ae.mobile;he=he===void 0?{}:he;var je=he.popupClassName,Fe=he.popupStyle,it=he.popupMotion,He=it===void 0?{}:it,gt=he.popupRender,Ut=T.useRef();T.useImperativeHandle($e,function(){return{forceAlign:function(){},getElement:function(){return Ut.current}}});var ln=Object(j.a)({zIndex:se},Fe),mn=Ce;return T.Children.count(Ce)>1&&(mn=T.createElement("div",{className:"".concat(nt,"-content")},Ce)),gt&&(mn=gt(mn)),T.createElement(re,Object(C.a)({visible:Ne,ref:Ut,removeOnLeave:!0},He),function(An,Kn){var ar=An.className,ir=An.style,or=M()(nt,je,ar);return T.createElement("div",{ref:Kn,className:or,style:Object(j.a)(Object(j.a)({},ir),ln)},mn)})});Gr.displayName="MobilePopupInner";var zn=Gr,_n=["visible","mobile"],bn=T.forwardRef(function(Ae,$e){var nt=Ae.visible,Ne=Ae.mobile,se=Object(R.a)(Ae,_n),Ce=Object(T.useState)(nt),he=Object(F.a)(Ce,2),je=he[0],Fe=he[1],it=Object(T.useState)(!1),He=Object(F.a)(it,2),gt=He[0],Ut=He[1],ln=Object(j.a)(Object(j.a)({},se),{},{visible:je});Object(T.useEffect)(function(){Fe(nt),nt&&Ne&&Ut(Me())},[nt,Ne]);var mn=gt?T.createElement(zn,Object(C.a)({},ln,{mobile:Ne,ref:$e})):T.createElement(va,Object(C.a)({},ln,{ref:$e}));return T.createElement("div",null,T.createElement(Qe,ln),mn)});bn.displayName="Popup";var Hn=bn,vr=T.createContext(null),Xn=vr;function Vn(){}function Gn(){return""}function dr(Ae){return Ae?Ae.ownerDocument:window.document}var Yn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Qn(Ae){var $e=function(nt){Object(o.a)(se,nt);var Ne=Object(i.a)(se);function se(Ce){var he;Object(I.a)(this,se),he=Ne.call(this,Ce),he.popupRef=T.createRef(),he.triggerRef=T.createRef(),he.attachId=void 0,he.clickOutsideHandler=void 0,he.touchOutsideHandler=void 0,he.contextMenuOutsideHandler1=void 0,he.contextMenuOutsideHandler2=void 0,he.mouseDownTimeout=void 0,he.focusTime=void 0,he.preClickTime=void 0,he.preTouchTime=void 0,he.delayTimer=void 0,he.hasPopupMouseDown=void 0,he.onMouseEnter=function(Fe){var it=he.props.mouseEnterDelay;he.fireEvents("onMouseEnter",Fe),he.delaySetPopupVisible(!0,it,it?null:Fe)},he.onMouseMove=function(Fe){he.fireEvents("onMouseMove",Fe),he.setPoint(Fe)},he.onMouseLeave=function(Fe){he.fireEvents("onMouseLeave",Fe),he.delaySetPopupVisible(!1,he.props.mouseLeaveDelay)},he.onPopupMouseEnter=function(){he.clearDelayTimer()},he.onPopupMouseLeave=function(Fe){var it;if(Fe.relatedTarget&&!Fe.relatedTarget.setTimeout&&Object(on.a)((it=he.popupRef.current)===null||it===void 0?void 0:it.getElement(),Fe.relatedTarget))return;he.delaySetPopupVisible(!1,he.props.mouseLeaveDelay)},he.onFocus=function(Fe){he.fireEvents("onFocus",Fe),he.clearDelayTimer(),he.isFocusToShow()&&(he.focusTime=Date.now(),he.delaySetPopupVisible(!0,he.props.focusDelay))},he.onMouseDown=function(Fe){he.fireEvents("onMouseDown",Fe),he.preClickTime=Date.now()},he.onTouchStart=function(Fe){he.fireEvents("onTouchStart",Fe),he.preTouchTime=Date.now()},he.onBlur=function(Fe){he.fireEvents("onBlur",Fe),he.clearDelayTimer(),he.isBlurToHide()&&he.delaySetPopupVisible(!1,he.props.blurDelay)},he.onContextMenu=function(Fe){Fe.preventDefault(),he.fireEvents("onContextMenu",Fe),he.setPopupVisible(!0,Fe)},he.onContextMenuClose=function(){he.isContextMenuToShow()&&he.close()},he.onClick=function(Fe){if(he.fireEvents("onClick",Fe),he.focusTime){var it;if(he.preClickTime&&he.preTouchTime?it=Math.min(he.preClickTime,he.preTouchTime):he.preClickTime?it=he.preClickTime:he.preTouchTime&&(it=he.preTouchTime),Math.abs(it-he.focusTime)<20)return;he.focusTime=0}he.preClickTime=0,he.preTouchTime=0,he.isClickToShow()&&(he.isClickToHide()||he.isBlurToHide())&&Fe&&Fe.preventDefault&&Fe.preventDefault();var He=!he.state.popupVisible;(he.isClickToHide()&&!He||He&&he.isClickToShow())&&he.setPopupVisible(!he.state.popupVisible,Fe)},he.onPopupMouseDown=function(){if(he.hasPopupMouseDown=!0,clearTimeout(he.mouseDownTimeout),he.mouseDownTimeout=window.setTimeout(function(){he.hasPopupMouseDown=!1},0),he.context){var Fe;(Fe=he.context).onPopupMouseDown.apply(Fe,arguments)}},he.onDocumentClick=function(Fe){if(he.props.mask&&!he.props.maskClosable)return;var it=Fe.target,He=he.getRootDomNode(),gt=he.getPopupDomNode();(!Object(on.a)(He,it)||he.isContextMenuOnly())&&!Object(on.a)(gt,it)&&!he.hasPopupMouseDown&&he.close()},he.getRootDomNode=function(){var Fe=he.props.getTriggerDOMNode;if(Fe)return Fe(he.triggerRef.current);try{var it=Object(un.a)(he.triggerRef.current);if(it)return it}catch(He){}return Kt.a.findDOMNode(Object(f.a)(he))},he.getPopupClassNameFromAlign=function(Fe){var it=[],He=he.props,gt=He.popupPlacement,Ut=He.builtinPlacements,ln=He.prefixCls,mn=He.alignPoint,An=He.getPopupClassNameFromAlign;return gt&&Ut&&it.push(ft(Ut,ln,Fe,mn)),An&&it.push(An(Fe)),it.join(" ")},he.getComponent=function(){var Fe=he.props,it=Fe.prefixCls,He=Fe.destroyPopupOnHide,gt=Fe.popupClassName,Ut=Fe.onPopupAlign,ln=Fe.popupMotion,mn=Fe.popupAnimation,An=Fe.popupTransitionName,Kn=Fe.popupStyle,ar=Fe.mask,ir=Fe.maskAnimation,or=Fe.maskTransitionName,_r=Fe.maskMotion,gr=Fe.zIndex,br=Fe.popup,Tr=Fe.stretch,sr=Fe.alignPoint,Ar=Fe.mobile,nr=Fe.forceRender,gn=he.state,Bt=gn.popupVisible,Ht=gn.point,fn=he.getPopupAlign(),wn={};return he.isMouseEnterToShow()&&(wn.onMouseEnter=he.onPopupMouseEnter),he.isMouseLeaveToHide()&&(wn.onMouseLeave=he.onPopupMouseLeave),wn.onMouseDown=he.onPopupMouseDown,wn.onTouchStart=he.onPopupMouseDown,T.createElement(Hn,Object(C.a)({prefixCls:it,destroyPopupOnHide:He,visible:Bt,point:sr&&Ht,className:gt,align:fn,onAlign:Ut,animation:mn,getClassNameFromAlign:he.getPopupClassNameFromAlign},wn,{stretch:Tr,getRootDomNode:he.getRootDomNode,style:Kn,mask:ar,zIndex:gr,transitionName:An,maskAnimation:ir,maskTransitionName:or,maskMotion:_r,ref:he.popupRef,motion:ln,mobile:Ar,forceRender:nr}),typeof br=="function"?br():br)},he.attachParent=function(Fe){Lt.a.cancel(he.attachId);var it=he.props,He=it.getPopupContainer,gt=it.getDocument,Ut=he.getRootDomNode(),ln;He?(Ut||He.length===0)&&(ln=He(Ut)):ln=gt(he.getRootDomNode()).body,ln?ln.appendChild(Fe):he.attachId=Object(Lt.a)(function(){he.attachParent(Fe)})},he.getContainer=function(){var Fe=he.props.getDocument,it=Fe(he.getRootDomNode()).createElement("div");return it.style.position="absolute",it.style.top="0",it.style.left="0",it.style.width="100%",he.attachParent(it),it},he.setPoint=function(Fe){var it=he.props.alignPoint;if(!it||!Fe)return;he.setState({point:{pageX:Fe.pageX,pageY:Fe.pageY}})},he.handlePortalUpdate=function(){he.state.prevPopupVisible!==he.state.popupVisible&&he.props.afterPopupVisibleChange(he.state.popupVisible)},he.triggerContextValue={onPopupMouseDown:he.onPopupMouseDown};var je;return"popupVisible"in Ce?je=!!Ce.popupVisible:je=!!Ce.defaultPopupVisible,he.state={prevPopupVisible:je,popupVisible:je},Yn.forEach(function(Fe){he["fire".concat(Fe)]=function(it){he.fireEvents(Fe,it)}}),he}return Object(_.a)(se,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var he=this.props,je=this.state;if(je.popupVisible){var Fe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Fe=he.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(De.a)(Fe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Fe=Fe||he.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(De.a)(Fe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Fe=Fe||he.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(De.a)(Fe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(De.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Lt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var he;return((he=this.popupRef.current)===null||he===void 0?void 0:he.getElement())||null}},{key:"getPopupAlign",value:function(){var he=this.props,je=he.popupPlacement,Fe=he.popupAlign,it=he.builtinPlacements;return je&&it?Je(it,je,Fe):Fe}},{key:"setPopupVisible",value:function(he,je){var Fe=this.props.alignPoint,it=this.state.popupVisible;this.clearDelayTimer(),it!==he&&("popupVisible"in this.props||this.setState({popupVisible:he,prevPopupVisible:it}),this.props.onPopupVisibleChange(he)),Fe&&je&&he&&this.setPoint(je)}},{key:"delaySetPopupVisible",value:function(he,je,Fe){var it=this,He=je*1e3;if(this.clearDelayTimer(),He){var gt=Fe?{pageX:Fe.pageX,pageY:Fe.pageY}:null;this.delayTimer=window.setTimeout(function(){it.setPopupVisible(he,gt),it.clearDelayTimer()},He)}else this.setPopupVisible(he,Fe)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(he){var je=this.props.children.props,Fe=this.props;return je[he]&&Fe[he]?this["fire".concat(he)]:je[he]||Fe[he]}},{key:"isClickToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("click")!==-1||Fe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var he=this.props.action;return he==="contextMenu"||he.length===1&&he[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("contextMenu")!==-1||Fe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var he=this.props,je=he.action,Fe=he.hideAction;return je.indexOf("click")!==-1||Fe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("hover")!==-1||Fe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var he=this.props,je=he.action,Fe=he.hideAction;return je.indexOf("hover")!==-1||Fe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var he=this.props,je=he.action,Fe=he.showAction;return je.indexOf("focus")!==-1||Fe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var he=this.props,je=he.action,Fe=he.hideAction;return je.indexOf("focus")!==-1||Fe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var he;(he=this.popupRef.current)===null||he===void 0||he.forceAlign()}}},{key:"fireEvents",value:function(he,je){var Fe=this.props.children.props[he];Fe&&Fe(je);var it=this.props[he];it&&it(je)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var he=this.state.popupVisible,je=this.props,Fe=je.children,it=je.forceRender,He=je.alignPoint,gt=je.className,Ut=je.autoDestroy,ln=T.Children.only(Fe),mn={key:"trigger"};this.isContextMenuToShow()?mn.onContextMenu=this.onContextMenu:mn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(mn.onClick=this.onClick,mn.onMouseDown=this.onMouseDown,mn.onTouchStart=this.onTouchStart):(mn.onClick=this.createTwoChains("onClick"),mn.onMouseDown=this.createTwoChains("onMouseDown"),mn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(mn.onMouseEnter=this.onMouseEnter,He&&(mn.onMouseMove=this.onMouseMove)):mn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?mn.onMouseLeave=this.onMouseLeave:mn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(mn.onFocus=this.onFocus,mn.onBlur=this.onBlur):(mn.onFocus=this.createTwoChains("onFocus"),mn.onBlur=this.createTwoChains("onBlur"));var An=M()(ln&&ln.props&&ln.props.className,gt);An&&(mn.className=An);var Kn=Object(j.a)({},mn);Object(Ie.c)(ln)&&(Kn.ref=Object(Ie.a)(this.triggerRef,ln.ref));var ar=T.cloneElement(ln,Kn),ir;return(he||this.popupRef.current||it)&&(ir=T.createElement(Ae,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!he&&Ut&&(ir=null),T.createElement(Xn.Provider,{value:this.triggerContextValue},ar,ir)}}],[{key:"getDerivedStateFromProps",value:function(he,je){var Fe=he.popupVisible,it={};return Fe!==void 0&&je.popupVisible!==Fe&&(it.popupVisible=Fe,it.prevPopupVisible=je.popupVisible),it}}]),se}(T.Component);return $e.contextType=Xn,$e.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Gn,getDocument:dr,onPopupVisibleChange:Vn,afterPopupVisibleChange:Vn,onPopupAlign:Vn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},$e}var pr=Qn(ot.a),Q={adjustX:1,adjustY:1},Se={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Q,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Q,offset:[4,0]}},We={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Q,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Q,offset:[4,0]}},Ve=Se,ut=0,Ke={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},lt=function($e,nt,Ne){var se=me(nt),Ce=$e.getState();$e.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},Ce.defaultActiveFirst),{},Object(X.a)({},se,Ne))})},mt=function(Ae){Object(o.a)(nt,Ae);var $e=Object(i.a)(nt);function nt(Ne){var se;Object(I.a)(this,nt),se=$e.call(this,Ne),se.onDestroy=function(He){se.props.onDestroy(He)},se.onKeyDown=function(He){var gt=He.keyCode,Ut=se.menuInstance,ln=se.props.store,mn=se.getVisible();if(gt===v.a.ENTER)return se.onTitleClick(He),lt(ln,se.props.eventKey,!0),!0;if(gt===v.a.RIGHT)return mn?Ut.onKeyDown(He):(se.triggerOpenChange(!0),lt(ln,se.props.eventKey,!0)),!0;if(gt===v.a.LEFT){var An;if(mn)An=Ut.onKeyDown(He);else return;return An||(se.triggerOpenChange(!1),An=!0),An}return mn&&(gt===v.a.UP||gt===v.a.DOWN)?Ut.onKeyDown(He):void 0},se.onOpenChange=function(He){se.props.onOpenChange(He)},se.onPopupVisibleChange=function(He){se.triggerOpenChange(He,He?"mouseenter":"mouseleave")},se.onMouseEnter=function(He){var gt=se.props,Ut=gt.eventKey,ln=gt.onMouseEnter,mn=gt.store;lt(mn,se.props.eventKey,!1),ln({key:Ut,domEvent:He})},se.onMouseLeave=function(He){var gt=se.props,Ut=gt.parentMenu,ln=gt.eventKey,mn=gt.onMouseLeave;Ut.subMenuInstance=Object(f.a)(se),mn({key:ln,domEvent:He})},se.onTitleMouseEnter=function(He){var gt=se.props,Ut=gt.eventKey,ln=gt.onItemHover,mn=gt.onTitleMouseEnter;ln({key:Ut,hover:!0}),mn({key:Ut,domEvent:He})},se.onTitleMouseLeave=function(He){var gt=se.props,Ut=gt.parentMenu,ln=gt.eventKey,mn=gt.onItemHover,An=gt.onTitleMouseLeave;Ut.subMenuInstance=Object(f.a)(se),mn({key:ln,hover:!1}),An({key:ln,domEvent:He})},se.onTitleClick=function(He){var gt=Object(f.a)(se),Ut=gt.props;if(Ut.onTitleClick({key:Ut.eventKey,domEvent:He}),Ut.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!se.getVisible(),"click"),lt(Ut.store,se.props.eventKey,!1)},se.onSubMenuClick=function(He){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(He))},se.onSelect=function(He){se.props.onSelect(He)},se.onDeselect=function(He){se.props.onDeselect(He)},se.getPrefixCls=function(){return"".concat(se.props.rootPrefixCls,"-submenu")},se.getActiveClassName=function(){return"".concat(se.getPrefixCls(),"-active")},se.getDisabledClassName=function(){return"".concat(se.getPrefixCls(),"-disabled")},se.getSelectedClassName=function(){return"".concat(se.getPrefixCls(),"-selected")},se.getOpenClassName=function(){return"".concat(se.props.rootPrefixCls,"-submenu-open")},se.getVisible=function(){return se.state.isOpen},se.getMode=function(){return se.state.mode},se.saveMenuInstance=function(He){se.menuInstance=He},se.addKeyPath=function(He){return Object(j.a)(Object(j.a)({},He),{},{keyPath:(He.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(He,gt){var Ut=se.props.eventKey,ln=function(){se.onOpenChange({key:Ut,item:Object(f.a)(se),trigger:gt,open:He})};gt==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){ln()},0):ln()},se.isChildrenSelected=function(){var He={find:!1};return rt(se.props.children,se.props.selectedKeys,He),He.find},se.isInlineMode=function(){return se.getMode()==="inline"},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var He=bt.findDOMNode(se.menuInstance);if(He.offsetWidth>=se.subMenuTitle.offsetWidth)return;He.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(He){se.subMenuTitle=He},se.getBaseProps=function(){var He=Object(f.a)(se),gt=He.props,Ut=se.getMode();return{mode:Ut==="horizontal"?"vertical":Ut,visible:se.getVisible(),level:gt.level+1,inlineIndent:gt.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:gt.selectedKeys,eventKey:"".concat(gt.eventKey,"-menu-"),openKeys:gt.openKeys,motion:gt.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:gt.subMenuOpenDelay,parentMenu:Object(f.a)(se),subMenuCloseDelay:gt.subMenuCloseDelay,forceSubMenuRender:gt.forceSubMenuRender,triggerSubMenuAction:gt.triggerSubMenuAction,builtinPlacements:gt.builtinPlacements,defaultActiveFirst:gt.store.getState().defaultActiveFirst[me(gt.eventKey)],multiple:gt.multiple,prefixCls:gt.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:gt.itemIcon,expandIcon:gt.expandIcon,direction:gt.direction}},se.getMotion=function(He,gt){var Ut=Object(f.a)(se),ln=Ut.haveRendered,mn=se.props,An=mn.motion,Kn=mn.rootPrefixCls,ar=Object(j.a)(Object(j.a)({},An),{},{leavedClassName:"".concat(Kn,"-hidden"),removeOnLeave:!1,motionAppear:ln||!gt||He!=="inline"});return ar};var Ce=Ne.store,he=Ne.eventKey,je=Ce.getState(),Fe=je.defaultActiveFirst;se.isRootMenu=!1;var it=!1;return Fe&&(it=Fe[he]),lt(Ce,he,it),se.state={mode:Ne.mode,isOpen:Ne.isOpen},se}return Object(_.a)(nt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,Ce=this.props,he=Ce.mode,je=Ce.parentMenu,Fe=Ce.manualRef,it=Ce.isOpen,He=function(){se.setState({mode:he,isOpen:it})},gt=it!==this.state.isOpen,Ut=he!==this.state.mode;if((Ut||gt)&&(Lt.a.cancel(this.updateStateRaf),Ut?this.updateStateRaf=Object(Lt.a)(He):He()),Fe&&Fe(this),he!=="horizontal"||!(je==null?void 0:je.isRootMenu)||!it)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,Ce=se.onDestroy,he=se.eventKey;Ce&&Ce(he),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Lt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(se,Ce){var he=this.getBaseProps();return T.createElement(It,Object(C.a)({},he,{id:this.internalMenuId,className:se,style:Ce}),this.props.children)}},{key:"renderChildren",value:function(){var se=this,Ce=this.getBaseProps(),he=Ce.mode,je=Ce.visible,Fe=Ce.forceSubMenuRender,it=Ce.direction,He=this.getMotion(he,je);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||je||Fe,!this.haveOpened)return T.createElement("div",null);var gt=M()("".concat(Ce.prefixCls,"-sub"),Object(X.a)({},"".concat(Ce.prefixCls,"-rtl"),it==="rtl"));return this.isInlineMode()?T.createElement(re,Object(C.a)({visible:Ce.visible,forceRender:Fe},He),function(Ut){var ln=Ut.className,mn=Ut.style,An=M()(gt,ln);return se.renderPopupMenu(An,mn)}):this.renderPopupMenu(gt)}},{key:"render",value:function(){var se,Ce,he,je=Object(j.a)({},this.props),Fe=this.getVisible(),it=this.getPrefixCls(),He=this.isInlineMode(),gt=this.getMode(),Ut=M()(it,"".concat(it,"-").concat(gt),(se={},Object(X.a)(se,je.className,!!je.className),Object(X.a)(se,this.getOpenClassName(),Fe),Object(X.a)(se,this.getActiveClassName(),je.active||Fe&&!He),Object(X.a)(se,this.getDisabledClassName(),je.disabled),Object(X.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(ut+=1,this.internalMenuId="$__$".concat(ut,"$Menu")));var ln={},mn={},An={};je.disabled||(ln={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},mn={onClick:this.onTitleClick},An={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Kn={},ar=je.direction,ir=ar==="rtl";He&&(ir?Kn.paddingRight=je.inlineIndent*je.level:Kn.paddingLeft=je.inlineIndent*je.level);var or={};this.getVisible()&&(or={"aria-owns":this.internalMenuId});var _r=null;gt!=="horizontal"&&(_r=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(_r=T.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var gr=T.createElement("div",Object(C.a)({ref:this.saveSubMenuTitle,style:Kn,className:"".concat(it,"-title"),role:"button"},An,mn,{"aria-expanded":Fe},or,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,_r||T.createElement("i",{className:"".concat(it,"-arrow")})),br=this.renderChildren(),Tr=((Ce=je.parentMenu)===null||Ce===void 0?void 0:Ce.isRootMenu)?je.parentMenu.props.getPopupContainer:function(Ur){return Ur.parentNode},sr=Ke[gt],Ar=je.popupOffset?{offset:je.popupOffset}:{},nr=M()((he={},Object(X.a)(he,je.popupClassName,je.popupClassName&&!He),Object(X.a)(he,"".concat(it,"-rtl"),ir),he)),gn=je.disabled,Bt=je.triggerSubMenuAction,Ht=je.subMenuOpenDelay,fn=je.forceSubMenuRender,wn=je.subMenuCloseDelay,Sn=je.builtinPlacements;Oe.forEach(function(Ur){return delete je[Ur]}),delete je.onClick;var Hr=ir?Object(j.a)(Object(j.a)({},We),Sn):Object(j.a)(Object(j.a)({},Se),Sn);delete je.direction;var Sr=this.getBaseProps(),Lr=He?null:this.getMotion(Sr.mode,Sr.visible);return T.createElement("li",Object(C.a)({},je,ln,{className:Ut,role:"menuitem"}),T.createElement(pr,{prefixCls:it,popupClassName:M()("".concat(it,"-popup"),nr),getPopupContainer:Tr,builtinPlacements:Hr,popupPlacement:sr,popupVisible:He?!1:Fe,popupAlign:Ar,popup:He?null:br,action:gn||He?[]:[Bt],mouseEnterDelay:Ht,mouseLeaveDelay:wn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:fn,popupMotion:Lr},gr),He?br:null)}}]),nt}(T.Component);mt.defaultProps={onMouseEnter:ke,onMouseLeave:ke,onTitleMouseEnter:ke,onTitleMouseLeave:ke,onTitleClick:ke,manualRef:ke,mode:"vertical",title:""};var ht=Object(d.b)(function(Ae,$e){var nt=Ae.openKeys,Ne=Ae.activeKey,se=Ae.selectedKeys,Ce=$e.eventKey,he=$e.subMenuKey;return{isOpen:nt.indexOf(Ce)>-1,active:Ne[he]===Ce,selectedKeys:se}})(mt);ht.isSubMenu=!0;var _t=ht,$t="menuitem-overflowed",kt=.5,vt=function(Ae){Object(o.a)(nt,Ae);var $e=Object(i.a)(nt);function nt(){var Ne;return Object(I.a)(this,nt),Ne=$e.apply(this,arguments),Ne.resizeObserver=null,Ne.mutationObserver=null,Ne.originalTotalWidth=0,Ne.overflowedItems=[],Ne.menuItemSizes=[],Ne.cancelFrameId=null,Ne.state={lastVisibleIndex:void 0},Ne.childRef=T.createRef(),Ne.getMenuItemNodes=function(){var se=Ne.props.prefixCls,Ce=Ne.childRef.current;return Ce?[].slice.call(Ce.children).filter(function(he){return he.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},Ne.getOverflowedSubMenuItem=function(se,Ce,he){var je=Ne.props,Fe=je.overflowedIndicator,it=je.level,He=je.mode,gt=je.prefixCls,Ut=je.theme;if(it!==1||He!=="horizontal")return null;var ln=Ne.props.children[0],mn=ln.props,An=mn.children,Kn=mn.title,ar=mn.style,ir=Object(R.a)(mn,["children","title","style"]),or=Object(j.a)({},ar),_r="".concat(se,"-overflowed-indicator"),gr="".concat(se,"-overflowed-indicator");Ce.length===0&&he!==!0?or=Object(j.a)(Object(j.a)({},or),{},{display:"none"}):he&&(or=Object(j.a)(Object(j.a)({},or),{},{visibility:"hidden",position:"absolute"}),_r="".concat(_r,"-placeholder"),gr="".concat(gr,"-placeholder"));var br=Ut?"".concat(gt,"-").concat(Ut):"",Tr={};return Oe.forEach(function(sr){ir[sr]!==void 0&&(Tr[sr]=ir[sr])}),T.createElement(_t,Object(C.a)({title:Fe,className:"".concat(gt,"-overflowed-submenu"),popupClassName:br},Tr,{key:_r,eventKey:gr,disabled:!1,style:or}),Ce)},Ne.setChildrenWidthAndResize=function(){if(Ne.props.mode!=="horizontal")return;var se=Ne.childRef.current;if(!se)return;var Ce=se.children;if(!Ce||Ce.length===0)return;var he=se.children[Ce.length-1];at(he,"display","inline-block");var je=Ne.getMenuItemNodes(),Fe=je.filter(function(it){return it.className.split(" ").indexOf($t)>=0});Fe.forEach(function(it){at(it,"display","inline-block")}),Ne.menuItemSizes=je.map(function(it){return Ge(it,!0)}),Fe.forEach(function(it){at(it,"display","none")}),Ne.overflowedIndicatorWidth=Ge(se.children[se.children.length-1],!0),Ne.originalTotalWidth=Ne.menuItemSizes.reduce(function(it,He){return it+He},0),Ne.handleResize(),at(he,"display","none")},Ne.handleResize=function(){if(Ne.props.mode!=="horizontal")return;var se=Ne.childRef.current;if(!se)return;var Ce=Ge(se);Ne.overflowedItems=[];var he=0,je;Ne.originalTotalWidth>Ce+kt&&(je=-1,Ne.menuItemSizes.forEach(function(Fe){he+=Fe,he+Ne.overflowedIndicatorWidth<=Ce&&(je+=1)})),Ne.setState({lastVisibleIndex:je})},Ne}return Object(_.a)(nt,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ce=this.childRef.current;if(!Ce)return;this.resizeObserver=new Rt.default(function(he){he.forEach(function(){var je=se.cancelFrameId;cancelAnimationFrame(je),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(Ce.children).concat(Ce).forEach(function(he){se.resizeObserver.observe(he)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(Ce.children).concat(Ce).forEach(function(he){se.resizeObserver.observe(he)}),se.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ce,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(se){var Ce=this,he=this.state.lastVisibleIndex;return(se||[]).reduce(function(je,Fe,it){var He=Fe;if(Ce.props.mode==="horizontal"){var gt=Ce.getOverflowedSubMenuItem(Fe.props.eventKey,[]);he!==void 0&&Ce.props.className.indexOf("".concat(Ce.props.prefixCls,"-root"))!==-1&&(it>he&&(He=T.cloneElement(Fe,{style:{display:"none"},eventKey:"".concat(Fe.props.eventKey,"-hidden"),className:"".concat($t)})),it===he+1&&(Ce.overflowedItems=se.slice(he+1).map(function(ln){return T.cloneElement(ln,{key:ln.props.eventKey,mode:"vertical-left"})}),gt=Ce.getOverflowedSubMenuItem(Fe.props.eventKey,Ce.overflowedItems)));var Ut=[].concat(Object(g.a)(je),[gt,He]);return it===se.length-1&&Ut.push(Ce.getOverflowedSubMenuItem(Fe.props.eventKey,[],!0)),Ut}return[].concat(Object(g.a)(je),[He])},[])}},{key:"render",value:function(){var se=this.props,Ce=se.visible,he=se.prefixCls,je=se.overflowedIndicator,Fe=se.mode,it=se.level,He=se.tag,gt=se.children,Ut=se.theme,ln=Object(R.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=He;return T.createElement(mn,Object(C.a)({ref:this.childRef},ln),this.renderChildren(gt))}}]),nt}(T.Component);vt.defaultProps={tag:"div",className:""};var et=vt;function Dt(Ae){return Ae.length?Ae.every(function($e){return!!$e.props.disabled}):!0}function Gt(Ae,$e,nt){var Ne=Ae.getState();Ae.setState({activeKey:Object(j.a)(Object(j.a)({},Ne.activeKey),{},Object(X.a)({},$e,nt))})}function Yt(Ae){return Ae.eventKey||"0-menu-"}function wt(Ae,$e){var nt=$e,Ne=Ae.children,se=Ae.eventKey;if(nt){var Ce;if(Le(Ne,function(he,je){he&&he.props&&!he.props.disabled&&nt===de(he,se,je)&&(Ce=!0)}),Ce)return nt}return nt=null,Ae.defaultActiveFirst&&Le(Ne,function(he,je){!nt&&he&&!he.props.disabled&&(nt=de(he,se,je))}),nt}function En(Ae){if(!Ae)return;var $e=this.instanceArray.indexOf(Ae);$e!==-1?this.instanceArray[$e]=Ae:this.instanceArray.push(Ae)}var xn=function(Ae){Object(o.a)(nt,Ae);var $e=Object(i.a)(nt);function nt(Ne){var se;return Object(I.a)(this,nt),se=$e.call(this,Ne),se.onKeyDown=function(Ce,he){var je=Ce.keyCode,Fe;if(se.getFlatInstanceArray().forEach(function(He){He&&He.props.active&&He.onKeyDown&&(Fe=He.onKeyDown(Ce))}),Fe)return 1;var it=null;return(je===v.a.UP||je===v.a.DOWN)&&(it=se.step(je===v.a.UP?-1:1)),it?(Ce.preventDefault(),Gt(se.props.store,Yt(se.props),it.props.eventKey),typeof he=="function"&&he(it),1):void 0},se.onItemHover=function(Ce){var he=Ce.key,je=Ce.hover;Gt(se.props.store,Yt(se.props),je?he:null)},se.onDeselect=function(Ce){se.props.onDeselect(Ce)},se.onSelect=function(Ce){se.props.onSelect(Ce)},se.onClick=function(Ce){se.props.onClick(Ce)},se.onOpenChange=function(Ce){se.props.onOpenChange(Ce)},se.onDestroy=function(Ce){se.props.onDestroy(Ce)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(Ce){var he=se.getFlatInstanceArray(),je=se.props.store.getState().activeKey[Yt(se.props)],Fe=he.length;if(!Fe)return null;Ce<0&&(he=he.concat().reverse());var it=-1;if(he.every(function(ln,mn){return ln&&ln.props.eventKey===je?(it=mn,!1):!0}),!se.props.defaultActiveFirst&&it!==-1&&Dt(he.slice(it,Fe-1)))return;var He=(it+1)%Fe,gt=He;do{var Ut=he[gt];if(!Ut||Ut.props.disabled)gt=(gt+1)%Fe;else return Ut}while(gt!==He);return null},se.renderCommonMenuItem=function(Ce,he,je){var Fe=se.props.store.getState(),it=Object(f.a)(se),He=it.props,gt=de(Ce,He.eventKey,he),Ut=Ce.props;if(!Ut||typeof Ce.type=="string")return Ce;var ln=gt===Fe.activeKey,mn=Object(j.a)(Object(j.a)({mode:Ut.mode||He.mode,level:He.level,inlineIndent:He.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:He.prefixCls,index:he,parentMenu:He.parentMenu,manualRef:Ut.disabled?void 0:Object(O.a)(Ce.ref,En.bind(Object(f.a)(se))),eventKey:gt,active:!Ut.disabled&&ln,multiple:He.multiple,onClick:function(Kn){(Ut.onClick||ke)(Kn),se.onClick(Kn)},onItemHover:se.onItemHover,motion:He.motion,subMenuOpenDelay:He.subMenuOpenDelay,subMenuCloseDelay:He.subMenuCloseDelay,forceSubMenuRender:He.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:He.builtinPlacements,itemIcon:Ut.itemIcon||se.props.itemIcon,expandIcon:Ut.expandIcon||se.props.expandIcon},je),{},{direction:He.direction});return(He.mode==="inline"||dt())&&(mn.triggerSubMenuAction="click"),T.cloneElement(Ce,Object(j.a)(Object(j.a)({},mn),{},{key:gt||he}))},se.renderMenuItem=function(Ce,he,je){if(!Ce)return null;var Fe=se.props.store.getState(),it={openKeys:Fe.openKeys,selectedKeys:Fe.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:je};return se.renderCommonMenuItem(Ce,he,it)},Ne.store.setState({activeKey:Object(j.a)(Object(j.a)({},Ne.store.getState().activeKey),{},Object(X.a)({},Ne.eventKey,wt(Ne,Ne.activeKey)))}),se.instanceArray=[],se}return Object(_.a)(nt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(se){return this.props.visible||se.visible||this.props.className!==se.className||!k()(this.props.style,se.style)}},{key:"componentDidUpdate",value:function(se){var Ce=this.props,he="activeKey"in Ce?Ce.activeKey:Ce.store.getState().activeKey[Yt(Ce)],je=wt(Ce,he);if(je!==he)Gt(Ce.store,Yt(Ce),je);else if("activeKey"in se){var Fe=wt(se,se.activeKey);je!==Fe&&Gt(Ce.store,Yt(Ce),je)}}},{key:"render",value:function(){var se=this,Ce=Object(C.a)({},this.props);this.instanceArray=[];var he=M()(Ce.prefixCls,Ce.className,"".concat(Ce.prefixCls,"-").concat(Ce.mode)),je={className:he,role:Ce.role||"menu"};Ce.id&&(je.id=Ce.id),Ce.focusable&&(je.tabIndex=0,je.onKeyDown=this.onKeyDown);var Fe=Ce.prefixCls,it=Ce.eventKey,He=Ce.visible,gt=Ce.level,Ut=Ce.mode,ln=Ce.overflowedIndicator,mn=Ce.theme;return Oe.forEach(function(An){return delete Ce[An]}),delete Ce.onClick,T.createElement(et,Object(C.a)({},Ce,{prefixCls:Fe,mode:Ut,tag:"ul",level:gt,theme:mn,visible:He,overflowedIndicator:ln},je),Object(c.a)(Ce.children).map(function(An,Kn){return se.renderMenuItem(An,Kn,it||"0-menu-")}))}}]),nt}(T.Component);xn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ke};var Jn=Object(d.b)()(xn),It=Jn,Wt=P("Kwbf");function vn(Ae,$e,nt){var Ne=Ae.prefixCls,se=Ae.motion,Ce=Ae.defaultMotions,he=Ce===void 0?{}:Ce,je=Ae.openAnimation,Fe=Ae.openTransitionName,it=$e.switchingModeFromInline;if(se)return se;if(Object(N.a)(je)==="object"&&je)Object(Wt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof je=="string")return{motionName:"".concat(Ne,"-open-").concat(je)};if(Fe)return{motionName:Fe};var He=he[nt];return He||(it?null:he.other)}var zt=function(Ae){Object(o.a)(nt,Ae);var $e=Object(i.a)(nt);function nt(Ne){var se;Object(I.a)(this,nt),se=$e.call(this,Ne),se.onSelect=function(je){var Fe=Object(f.a)(se),it=Fe.props;if(it.selectable){var He=se.store.getState(),gt=He.selectedKeys,Ut=je.key;it.multiple?gt=gt.concat([Ut]):gt=[Ut],"selectedKeys"in it||se.store.setState({selectedKeys:gt}),it.onSelect(Object(j.a)(Object(j.a)({},je),{},{selectedKeys:gt}))}},se.onClick=function(je){var Fe=se.getRealMenuMode(),it=Object(f.a)(se),He=it.store,gt=it.props.onOpenChange;Fe!=="inline"&&!("openKeys"in se.props)&&(He.setState({openKeys:[]}),gt([])),se.props.onClick(je)},se.onKeyDown=function(je,Fe){se.innerMenu.getWrappedInstance().onKeyDown(je,Fe)},se.onOpenChange=function(je){var Fe=Object(f.a)(se),it=Fe.props,He=se.store.getState().openKeys.concat(),gt=!1,Ut=function(mn){var An=!1;if(mn.open)An=He.indexOf(mn.key)===-1,An&&He.push(mn.key);else{var Kn=He.indexOf(mn.key);An=Kn!==-1,An&&He.splice(Kn,1)}gt=gt||An};Array.isArray(je)?je.forEach(Ut):Ut(je),gt&&("openKeys"in se.props||se.store.setState({openKeys:He}),it.onOpenChange(He))},se.onDeselect=function(je){var Fe=Object(f.a)(se),it=Fe.props;if(it.selectable){var He=se.store.getState().selectedKeys.concat(),gt=je.key,Ut=He.indexOf(gt);Ut!==-1&&He.splice(Ut,1),"selectedKeys"in it||se.store.setState({selectedKeys:He}),it.onDeselect(Object(j.a)(Object(j.a)({},je),{},{selectedKeys:He}))}},se.onMouseEnter=function(je){se.restoreModeVerticalFromInline();var Fe=se.props.onMouseEnter;Fe&&Fe(je)},se.onTransitionEnd=function(je){var Fe=je.propertyName==="width"&&je.target===je.currentTarget,it=je.target.className,He=Object.prototype.toString.call(it)==="[object SVGAnimatedString]"?it.animVal:it,gt=je.propertyName==="font-size"&&He.indexOf("anticon")>=0;(Fe||gt)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(je){se.innerMenu=je},se.isRootMenu=!0;var Ce=Ne.defaultSelectedKeys,he=Ne.defaultOpenKeys;return"selectedKeys"in Ne&&(Ce=Ne.selectedKeys||[]),"openKeys"in Ne&&(he=Ne.openKeys||[]),se.store=Object(d.c)({selectedKeys:Ce,openKeys:he,activeKey:{"0-menu-":wt(Ne,Ne.activeKey)}}),se.state={switchingModeFromInline:!1,prevProps:Ne,inlineOpenKeys:[],store:se.store},se}return Object(_.a)(nt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){var Ce=this.props,he=Ce.siderCollapsed,je=Ce.inlineCollapsed,Fe=Ce.onOpenChange;(!se.inlineCollapsed&&je||!se.siderCollapsed&&he)&&Fe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,Ce=this.store,he=this.prevOpenKeys,je=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");je?(this.prevOpenKeys=Ce.getState().openKeys.concat(),this.store.setState({openKeys:[]})):he&&(this.store.setState({openKeys:he}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var se=this.props.mode,Ce=this.state.switchingModeFromInline,he=this.getInlineCollapsed();return Ce&&he?"inline":he?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,Ce=se.inlineCollapsed,he=se.siderCollapsed;return he!==void 0?he:Ce}},{key:"restoreModeVerticalFromInline",value:function(){var se=this.state.switchingModeFromInline;se&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var se=Object(j.a)({},Object(A.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ce=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(j.a)(Object(j.a)({},se),{},{mode:Ce,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:vn(this.props,this.state,Ce)}),delete se.openAnimation,delete se.openTransitionName,T.createElement(d.a,{store:this.store},T.createElement(It,Object(C.a)({},se,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(se,Ce){var he=Ce.prevProps,je=Ce.store,Fe=je.getState(),it={},He={prevProps:se};return he.mode==="inline"&&se.mode!=="inline"&&(He.switchingModeFromInline=!0),"openKeys"in se?it.openKeys=se.openKeys||[]:((se.inlineCollapsed&&!he.inlineCollapsed||se.siderCollapsed&&!he.siderCollapsed)&&(He.switchingModeFromInline=!0,He.inlineOpenKeys=Fe.openKeys,it.openKeys=[]),(!se.inlineCollapsed&&he.inlineCollapsed||!se.siderCollapsed&&he.siderCollapsed)&&(it.openKeys=Ce.inlineOpenKeys,He.inlineOpenKeys=[])),Object.keys(it).length&&je.setState(it),He}}]),nt}(T.Component);zt.defaultProps={selectable:!0,onClick:ke,onSelect:ke,onOpenChange:ke,onDeselect:ke,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:T.createElement("span",null,"\xB7\xB7\xB7")};var cn=zt,Qt=function(Ae){Object(o.a)(nt,Ae);var $e=Object(i.a)(nt);function nt(){var Ne;return Object(I.a)(this,nt),Ne=$e.apply(this,arguments),Ne.onKeyDown=function(se){var Ce=se.keyCode;return Ce===v.a.ENTER?(Ne.onClick(se),!0):void 0},Ne.onMouseLeave=function(se){var Ce=Ne.props,he=Ce.eventKey,je=Ce.onItemHover,Fe=Ce.onMouseLeave;je({key:he,hover:!1}),Fe({key:he,domEvent:se})},Ne.onMouseEnter=function(se){var Ce=Ne.props,he=Ce.eventKey,je=Ce.onItemHover,Fe=Ce.onMouseEnter;je({key:he,hover:!0}),Fe({key:he,domEvent:se})},Ne.onClick=function(se){var Ce=Ne.props,he=Ce.eventKey,je=Ce.multiple,Fe=Ce.onClick,it=Ce.onSelect,He=Ce.onDeselect,gt=Ce.isSelected,Ut={key:he,keyPath:[he],item:Object(f.a)(Ne),domEvent:se};Fe(Ut),je?gt?He(Ut):it(Ut):gt||it(Ut)},Ne.saveNode=function(se){Ne.node=se},Ne}return Object(_.a)(nt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var se=this.props;se.onDestroy&&se.onDestroy(se.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var se,Ce=Object(j.a)({},this.props),he=M()(this.getPrefixCls(),Ce.className,(se={},Object(X.a)(se,this.getActiveClassName(),!Ce.disabled&&Ce.active),Object(X.a)(se,this.getSelectedClassName(),Ce.isSelected),Object(X.a)(se,this.getDisabledClassName(),Ce.disabled),se)),je=Object(j.a)(Object(j.a)({},Ce.attribute),{},{title:typeof Ce.title=="string"?Ce.title:void 0,className:he,role:Ce.role||"menuitem","aria-disabled":Ce.disabled});Ce.role==="option"?je=Object(j.a)(Object(j.a)({},je),{},{role:"option","aria-selected":Ce.isSelected}):(Ce.role===null||Ce.role==="none")&&(je.role="none");var Fe={onClick:Ce.disabled?null:this.onClick,onMouseLeave:Ce.disabled?null:this.onMouseLeave,onMouseEnter:Ce.disabled?null:this.onMouseEnter},it=Object(j.a)({},Ce.style);Ce.mode==="inline"&&(Ce.direction==="rtl"?it.paddingRight=Ce.inlineIndent*Ce.level:it.paddingLeft=Ce.inlineIndent*Ce.level),Oe.forEach(function(gt){return delete Ce[gt]}),delete Ce.direction;var He=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(He=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object(C.a)({},Object(A.a)(Ce,["onClick","onMouseEnter","onMouseLeave","onSelect"]),je,Fe,{style:it,ref:this.saveNode}),Ce.children,He)}}]),nt}(T.Component);Qt.isMenuItem=!0,Qt.defaultProps={onSelect:ke,onMouseEnter:ke,onMouseLeave:ke,manualRef:ke};var Vt=Object(d.b)(function(Ae,$e){var nt=Ae.activeKey,Ne=Ae.selectedKeys,se=$e.eventKey,Ce=$e.subMenuKey;return{active:nt[Ce]===se,isSelected:Array.isArray(Ne)?Ne.indexOf(se)!==-1:Ne===se}})(Qt),tt=Vt,Xe=function(Ae){Object(o.a)(nt,Ae);var $e=Object(i.a)(nt);function nt(){var Ne;return Object(I.a)(this,nt),Ne=$e.apply(this,arguments),Ne.renderInnerMenuItem=function(se){var Ce=Ne.props,he=Ce.renderMenuItem,je=Ce.index;return he(se,je,Ne.props.subMenuKey)},Ne}return Object(_.a)(nt,[{key:"render",value:function(){var se=Object(C.a)({},this.props),Ce=se.className,he=Ce===void 0?"":Ce,je=se.rootPrefixCls,Fe="".concat(je,"-item-group-title"),it="".concat(je,"-item-group-list"),He=se.title,gt=se.children;return Oe.forEach(function(Ut){return delete se[Ut]}),delete se.direction,T.createElement("li",Object(C.a)({},se,{onClick:function(ln){return ln.stopPropagation()},className:"".concat(he," ").concat(je,"-item-group")}),T.createElement("div",{className:Fe,title:typeof He=="string"?He:void 0},He),T.createElement("ul",{className:it},T.Children.map(gt,this.renderInnerMenuItem)))}}]),nt}(T.Component);Xe.isMenuItemGroup=!0,Xe.defaultProps={disabled:!0};var Ft=Xe,Ct=function($e){var nt=$e.className,Ne=$e.rootPrefixCls,se=$e.style;return T.createElement("li",{className:"".concat(nt," ").concat(Ne,"-item-divider"),style:se})};Ct.defaultProps={disabled:!0,className:"",style:{}};var Xt=Ct,jt=cn,Tn=P("eDIo");function Ln(Ae,$e){var nt=Ae.prefixCls,Ne=Ae.editable,se=Ae.locale,Ce=Ae.style;return!Ne||Ne.showAdd===!1?null:T.createElement("button",{ref:$e,type:"button",className:"".concat(nt,"-nav-add"),style:Ce,"aria-label":(se==null?void 0:se.addAriaLabel)||"Add tab",onClick:function(je){Ne.onEdit("add",{event:je})}},Ne.addIcon||"+")}var qt=T.forwardRef(Ln);function Dn(Ae,$e){var nt=Ae.prefixCls,Ne=Ae.id,se=Ae.tabs,Ce=Ae.locale,he=Ae.mobile,je=Ae.moreIcon,Fe=je===void 0?"More":je,it=Ae.moreTransitionName,He=Ae.style,gt=Ae.className,Ut=Ae.editable,ln=Ae.tabBarGutter,mn=Ae.rtl,An=Ae.onTabClick,Kn=Object(T.useState)(!1),ar=Object(F.a)(Kn,2),ir=ar[0],or=ar[1],_r=Object(T.useState)(null),gr=Object(F.a)(_r,2),br=gr[0],Tr=gr[1],sr="".concat(Ne,"-more-popup"),Ar="".concat(nt,"-dropdown"),nr=br!==null?"".concat(sr,"-").concat(br):null,gn=Ce==null?void 0:Ce.dropdownAriaLabel,Bt=T.createElement(jt,{onClick:function(Lr){var Ur=Lr.key,kr=Lr.domEvent;An(Ur,kr),or(!1)},id:sr,tabIndex:-1,role:"listbox","aria-activedescendant":nr,selectedKeys:[br],"aria-label":gn!==void 0?gn:"expanded dropdown"},se.map(function(Sr){return T.createElement(tt,{key:Sr.key,id:"".concat(sr,"-").concat(Sr.key),role:"option","aria-controls":Ne&&"".concat(Ne,"-panel-").concat(Sr.key),disabled:Sr.disabled},Sr.tab)}));function Ht(Sr){for(var Lr=se.filter(function(ha){return!ha.disabled}),Ur=Lr.findIndex(function(ha){return ha.key===br})||0,kr=Lr.length,Mr=0;MrSn?(fn=Bt,sr.current="x"):(fn=Ht,sr.current="y");var Hr=Date.now();Hr-br.current>100&&(Tr.current=!1),($e(-fn,-fn)||Tr.current)&&(gn.preventDefault(),Tr.current=!0),br.current=Hr}var nr=Object(T.useRef)(null);nr.current={onTouchStart:or,onTouchMove:_r,onTouchEnd:gr,onWheel:Ar},T.useEffect(function(){function gn(wn){nr.current.onTouchStart(wn)}function Bt(wn){nr.current.onTouchMove(wn)}function Ht(wn){nr.current.onTouchEnd(wn)}function fn(wn){nr.current.onWheel(wn)}return document.addEventListener("touchmove",Bt,{passive:!1}),document.addEventListener("touchend",Ht,{passive:!1}),Ae.current.addEventListener("touchstart",gn,{passive:!1}),Ae.current.addEventListener("wheel",fn),function(){document.removeEventListener("touchmove",Bt),document.removeEventListener("touchend",Ht)}},[])}function oa(){var Ae=Object(T.useRef)(new Map);function $e(Ne){return Ae.current.has(Ne)||Ae.current.set(Ne,T.createRef()),Ae.current.get(Ne)}function nt(Ne){Ae.current.delete(Ne)}return[$e,nt]}function Xr(Ae,$e){var nt=T.useRef(Ae),Ne=T.useState({}),se=Object(F.a)(Ne,2),Ce=se[1];function he(je){var Fe=typeof je=="function"?je(nt.current):je;Fe!==nt.current&&$e(Fe,nt.current),nt.current=Fe,Ce({})}return[nt.current,he]}var Yr=function($e){var nt=$e.position,Ne=$e.prefixCls,se=$e.extra;if(!se)return null;var Ce,he=se;return nt==="right"&&(Ce=he.right||!he.left&&he||null),nt==="left"&&(Ce=he.left||null),Ce?T.createElement("div",{className:"".concat(Ne,"-extra-content")},Ce):null};function Ka(Ae,$e){var nt,Ne=T.useContext(Zn),se=Ne.prefixCls,Ce=Ne.tabs,he=Ae.className,je=Ae.style,Fe=Ae.id,it=Ae.animated,He=Ae.activeKey,gt=Ae.rtl,Ut=Ae.extra,ln=Ae.editable,mn=Ae.locale,An=Ae.tabPosition,Kn=Ae.tabBarGutter,ar=Ae.children,ir=Ae.onTabClick,or=Ae.onTabScroll,_r=Object(T.useRef)(),gr=Object(T.useRef)(),br=Object(T.useRef)(),Tr=Object(T.useRef)(),sr=oa(),Ar=Object(F.a)(sr,2),nr=Ar[0],gn=Ar[1],Bt=An==="top"||An==="bottom",Ht=Xr(0,function(Vr,Ir){Bt&&or&&or({direction:Vr>Ir?"left":"right"})}),fn=Object(F.a)(Ht,2),wn=fn[0],Sn=fn[1],Hr=Xr(0,function(Vr,Ir){!Bt&&or&&or({direction:Vr>Ir?"top":"bottom"})}),Sr=Object(F.a)(Hr,2),Lr=Sr[0],Ur=Sr[1],kr=Object(T.useState)(0),Mr=Object(F.a)(kr,2),ur=Mr[0],ha=Mr[1],Qa=Object(T.useState)(0),Na=Object(F.a)(Qa,2),_a=Na[0],ra=Na[1],Qr=Object(T.useState)(0),Zr=Object(F.a)(Qr,2),aa=Zr[0],ja=Zr[1],hi=Object(T.useState)(0),si=Object(F.a)(hi,2),Jr=si[0],Ja=si[1],Za=Object(T.useState)(null),qr=Object(F.a)(Za,2),$r=qr[0],ya=qr[1],Li=Object(T.useState)(null),no=Object(F.a)(Li,2),li=no[0],wi=no[1],Si=Object(T.useState)(0),Ti=Object(F.a)(Si,2),ki=Ti[0],co=Ti[1],Do=Object(T.useState)(0),Gi=Object(F.a)(Do,2),Oi=Gi[0],Vi=Gi[1],yi=p(new Map),Di=Object(F.a)(yi,2),ho=Di[0],Xi=Di[1],Ai=h(Ce,ho,ur),Mi="".concat(se,"-nav-operations-hidden"),bi=0,La=0;Bt?gt?(bi=0,La=Math.max(0,ur-$r)):(bi=Math.min(0,$r-ur),La=0):(bi=Math.min(0,li-_a),La=0);function fi(Vr){return VrLa?[La,!1]:[Vr,!0]}var pi=Object(T.useRef)(),Ei=Object(T.useState)(),mi=Object(F.a)(Ei,2),Yi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}zr(_r,function(Vr,Ir){var da=!1;function Ua(Ri,di){Ri(function(Ui){var ci=fi(Ui+di),ba=Object(F.a)(ci,2),Fi=ba[0],Bi=ba[1];return da=Bi,Fi})}if(Bt){if($r>=ur)return da;Ua(Sn,Vr)}else{if(li>=_a)return da;Ua(Ur,Ir)}return Ii(),Qi(),da}),Object(T.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ui(){var Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:He,Ir=Ai.get(Vr);if(!Ir)return;if(Bt){var da=wn;gt?Ir.rightwn+$r&&(da=Ir.right+Ir.width-$r):Ir.left<-wn?da=-Ir.left:Ir.left+Ir.width>-wn+$r&&(da=-(Ir.left+Ir.width-$r)),Ur(0),Sn(fi(da)[0])}else{var Ua=Lr;Ir.top<-Lr?Ua=-Ir.top:Ir.top+Ir.height>-Lr+li&&(Ua=-(Ir.top+Ir.height-li)),Sn(0),Ur(fi(Ua)[0])}}var xi=D(Ai,{width:$r,height:li,left:wn,top:Lr},{width:aa,height:Jr},{width:ki,height:Oi},Object(j.a)(Object(j.a)({},Ae),{},{tabs:Ce})),ro=Object(F.a)(xi,2),Ao=ro[0],Mo=ro[1],fo=Ce.map(function(Vr){var Ir=Vr.key;return T.createElement(t,{id:Fe,prefixCls:se,key:Ir,rtl:gt,tab:Vr,closable:Vr.closable,editable:ln,active:Ir===He,tabPosition:An,tabBarGutter:Kn,renderWrapper:ar,removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,ref:nr(Ir),onClick:function(Ua){ir(Ir,Ua)},onRemove:function(){gn(Ir)},onFocus:function(){ui(Ir),Qi(),gt||(_r.current.scrollLeft=0),_r.current.scrollTop=0}})}),ao=u(function(){var Vr,Ir,da,Ua,Ri,di,Ui,ci,ba,Fi=((Vr=_r.current)===null||Vr===void 0?void 0:Vr.offsetWidth)||0,Bi=((Ir=_r.current)===null||Ir===void 0?void 0:Ir.offsetHeight)||0,Hi=((da=Tr.current)===null||da===void 0?void 0:da.offsetWidth)||0,Wa=((Ua=Tr.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0,Kr=((Ri=br.current)===null||Ri===void 0?void 0:Ri.offsetWidth)||0,xr=((di=br.current)===null||di===void 0?void 0:di.offsetHeight)||0;ya(Fi),wi(Bi),co(Hi),Vi(Wa);var Fn=(((Ui=gr.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Hi,rr=(((ci=gr.current)===null||ci===void 0?void 0:ci.offsetHeight)||0)-Wa;ha(Fn),ra(rr);var Rr=(ba=br.current)===null||ba===void 0?void 0:ba.className.includes(Mi);ja(Fn-(Rr?0:Kr)),Ja(rr-(Rr?0:xr)),Xi(function(){var sa=new Map;return Ce.forEach(function(vi){var ai=vi.key,Da=nr(ai).current;Da&&sa.set(ai,{width:Da.offsetWidth,height:Da.offsetHeight,left:Da.offsetLeft,top:Da.offsetTop})}),sa})}),po=Ce.slice(0,Ao),Ha=Ce.slice(Mo+1),fa=[].concat(Object(g.a)(po),Object(g.a)(Ha)),Oa=Object(T.useState)(),pa=Object(F.a)(Oa,2),Ni=pa[0],mo=pa[1],qa=Ai.get(He),io=Object(T.useRef)();function oo(){l.a.cancel(io.current)}Object(T.useEffect)(function(){var Vr={};return qa&&(Bt?(gt?Vr.right=qa.right:Vr.left=qa.left,Vr.width=qa.width):(Vr.top=qa.top,Vr.height=qa.height)),oo(),io.current=l()(function(){mo(Vr)}),oo},[qa,Bt,gt]),Object(T.useEffect)(function(){ui()},[He,qa,Ai,Bt]),Object(T.useEffect)(function(){ao()},[gt,Kn,He,Ce.map(function(Vr){return Vr.key}).join("_")]);var so=!!fa.length,Ci="".concat(se,"-nav-wrap"),Ji,ji,vo,Zi;return Bt?gt?(ji=wn>0,Ji=wn+$r` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,v=/^\s*\[[^\]]+?\]:.*$/,a=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,t=" ";function s(W,z,Y){return z.f=z.inline=Y,Y(W,z)}function h(W,z,Y){return z.f=z.block=Y,Y(W,z)}function y(W){return!W||!/\S/.test(W.string)}function D(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==I){var z=T;if(!z){var Y=X.innerMode(j,W.htmlState);z=Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText}z&&(W.f=i,W.block=C,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function C(W,z){var Y=W.column()===z.indentation,V=y(z.prevLine.stream),q=z.indentedCode,ne=z.prevLine.hr,ve=z.list!==!1,le=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var be=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,ve)){for(z.list=null;be=4&&(q||z.prevLine.fencedCodeEnd||z.prevLine.header||V))return W.skipToEnd(),z.indentedCode=!0,M.code;if(W.eatSpace())return null;if(Y&&z.indentation<=le&&(ge=W.match(l))&&ge[1].length<=6)return z.quote=0,z.header=ge[1].length,z.thisLine.header=!0,R.highlightFormatting&&(z.formatting="header"),z.f=z.inline,f(z);if(z.indentation<=le&&W.eat(">"))return z.quote=Y?1:z.quote+1,R.highlightFormatting&&(z.formatting="quote"),W.eatSpace(),f(z);if(!Re&&!z.setext&&Y&&z.indentation<=le&&(ge=W.match(g))){var fe=ge[1]?"ol":"ul";return z.indentation=be+W.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,R.taskLists&&W.match(r,!1)&&(z.taskList=!0),z.f=z.inline,R.highlightFormatting&&(z.formatting=["list","list-"+fe]),f(z)}else{if(Y&&z.indentation<=le&&(ge=W.match(p,!0)))return z.quote=0,z.fencedEndRE=new RegExp(ge[1]+"+ *$"),z.localMode=R.fencedCodeBlockHighlighting&&S(ge[2]||R.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=X.startState(z.localMode)),z.f=z.block=_,R.highlightFormatting&&(z.formatting="code-block"),z.code=-1,f(z);if(z.setext||(!we||!ve)&&!z.quote&&z.list===!1&&!z.code&&!Re&&!v.test(W.string)&&(ge=W.lookAhead(1))&&(ge=ge.match(b)))return z.setext?(z.header=z.setext,z.setext=0,W.skipToEnd(),R.highlightFormatting&&(z.formatting="header")):(z.header=ge[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,f(z);if(Re)return W.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,M.hr;if(W.peek()==="[")return s(W,z,k)}return s(W,z,z.inline)}function I(W,z){var Y=j.token(W,z.htmlState);if(!T){var V=X.innerMode(j,z.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||z.md_inside&&W.current().indexOf(">")>-1)&&(z.f=i,z.block=C,z.htmlState=null)}return Y}function _(W,z){var Y=z.listStack[z.listStack.length-1]||0,V=z.indentation=W.quote?z.push(M.formatting+"-"+W.formatting[Y]+"-"+W.quote):z.push("error"))}if(W.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(W.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(W.linkHref?z.push(M.linkHref,"url"):(W.strong&&z.push(M.strong),W.em&&z.push(M.em),W.strikethrough&&z.push(M.strikethrough),W.emoji&&z.push(M.emoji),W.linkText&&z.push(M.linkText),W.code&&z.push(M.code),W.image&&z.push(M.image),W.imageAltText&&z.push(M.imageAltText,"link"),W.imageMarker&&z.push(M.imageMarker)),W.header&&z.push(M.header,M.header+"-"+W.header),W.quote&&(z.push(M.quote),!R.maxBlockquoteDepth||R.maxBlockquoteDepth>=W.quote?z.push(M.quote+"-"+W.quote):z.push(M.quote+"-"+R.maxBlockquoteDepth)),W.list!==!1){var V=(W.listStack.length-1)%3;V?V===1?z.push(M.list2):z.push(M.list3):z.push(M.list1)}return W.trailingSpaceNewLine?z.push("trailing-space-new-line"):W.trailingSpace&&z.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function o(W,z){return W.match(u,!0)?f(z):void 0}function i(W,z){var Y=z.text(W,z);if(typeof Y!="undefined")return Y;if(z.list)return z.list=null,f(z);if(z.taskList){var V=W.match(r,!0)[1]===" ";return V?z.taskOpen=!0:z.taskClosed=!0,R.highlightFormatting&&(z.formatting="task"),z.taskList=!1,f(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&W.match(/^#+$/,!0))return R.highlightFormatting&&(z.formatting="header"),f(z);var q=W.next();if(z.linkTitle){z.linkTitle=!1;var ne=q;q==="("&&(ne=")"),ne=(ne+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ve="^\\s*(?:[^"+ne+"\\\\]+|\\\\\\\\|\\\\.)"+ne;if(W.match(new RegExp(ve),!0))return M.linkHref}if(q==="`"){var le=z.formatting;R.highlightFormatting&&(z.formatting="code"),W.eatWhile("`");var be=W.current().length;if(z.code==0&&(!z.quote||be==1))return z.code=be,f(z);if(be==z.code){var we=f(z);return z.code=0,we}else return z.formatting=le,f(z)}else if(z.code)return f(z);if(q==="\\"&&(W.next(),R.highlightFormatting)){var Re=f(z),ge=M.formatting+"-escape";return Re?Re+" "+ge:ge}if(q==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,R.highlightFormatting&&(z.formatting="image"),f(z);if(q==="["&&z.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,R.highlightFormatting&&(z.formatting="image"),f(z);if(q==="]"&&z.imageAltText){R.highlightFormatting&&(z.formatting="image");var Re=f(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=A,Re}if(q==="["&&!z.image)return z.linkText&&W.match(/^.*?\]/)||(z.linkText=!0,R.highlightFormatting&&(z.formatting="link")),f(z);if(q==="]"&&z.linkText){R.highlightFormatting&&(z.formatting="link");var Re=f(z);return z.linkText=!1,z.inline=z.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?A:i,Re}if(q==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=d,R.highlightFormatting&&(z.formatting="link");var Re=f(z);return Re?Re+=" ":Re="",Re+M.linkInline}if(q==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=d,R.highlightFormatting&&(z.formatting="link");var Re=f(z);return Re?Re+=" ":Re="",Re+M.linkEmail}if(R.xml&&q==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var fe=W.string.indexOf(">",W.pos);if(fe!=-1){var Ze=W.string.substring(W.start,fe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ze)&&(z.md_inside=!0)}return W.backUp(1),z.htmlState=X.startState(j),h(W,z,I)}if(R.xml&&q==="<"&&W.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(q==="*"||q==="_"){for(var Ot=1,Ee=W.pos==1?" ":W.string.charAt(W.pos-2);Ot<3&&W.eat(q);)Ot++;var ke=W.peek()||" ",de=!/\s/.test(ke)&&(!a.test(ke)||/\s/.test(Ee)||a.test(Ee)),me=!/\s/.test(Ee)&&(!a.test(Ee)||/\s/.test(ke)||a.test(ke)),Le=null,rt=null;if(Ot%2&&(!z.em&&de&&(q==="*"||!me||a.test(Ee))?Le=!0:z.em==q&&me&&(q==="*"||!de||a.test(ke))&&(Le=!1)),Ot>1&&(!z.strong&&de&&(q==="*"||!me||a.test(Ee))?rt=!0:z.strong==q&&me&&(q==="*"||!de||a.test(ke))&&(rt=!1)),rt!=null||Le!=null){R.highlightFormatting&&(z.formatting=Le==null?"strong":rt==null?"em":"strong em"),Le===!0&&(z.em=q),rt===!0&&(z.strong=q);var we=f(z);return Le===!1&&(z.em=!1),rt===!1&&(z.strong=!1),we}}else if(q===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return f(z);W.backUp(1)}if(R.strikethrough){if(q==="~"&&W.eatWhile(q)){if(z.strikethrough){R.highlightFormatting&&(z.formatting="strikethrough");var we=f(z);return z.strikethrough=!1,we}else if(W.match(/^[^\s]/,!1))return z.strikethrough=!0,R.highlightFormatting&&(z.formatting="strikethrough"),f(z)}else if(q===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return f(z);W.backUp(2)}}if(R.emoji&&q===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,R.highlightFormatting&&(z.formatting="emoji");var Oe=f(z);return z.emoji=!1,Oe}return q===" "&&(W.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),f(z)}function d(W,z){var Y=W.next();if(Y===">"){z.f=z.inline=i,R.highlightFormatting&&(z.formatting="link");var V=f(z);return V?V+=" ":V="",V+M.linkInline}return W.match(/^[^>]+/,!0),M.linkInline}function A(W,z){if(W.eatSpace())return null;var Y=W.next();return Y==="("||Y==="["?(z.f=z.inline=m(Y==="("?")":"]"),R.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,f(z)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function m(W){return function(z,Y){var V=z.next();if(V===W){Y.f=Y.inline=i,R.highlightFormatting&&(Y.formatting="link-string");var q=f(Y);return Y.linkHref=!1,q}return z.match(O[W]),Y.linkHref=!0,f(Y)}}function k(W,z){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=N,W.next(),R.highlightFormatting&&(z.formatting="link"),z.linkText=!0,f(z)):s(W,z,i)}function N(W,z){if(W.match(/^\]:/,!0)){z.f=z.inline=B,R.highlightFormatting&&(z.formatting="link");var Y=f(z);return z.linkText=!1,Y}return W.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function B(W,z){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?z.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=i,M.linkHref+" url")}var G={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:i,text:o,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(W){return{f:W.f,prevLine:W.prevLine,thisLine:W.thisLine,block:W.block,htmlState:W.htmlState&&X.copyState(j,W.htmlState),indentation:W.indentation,localMode:W.localMode,localState:W.localMode?X.copyState(W.localMode,W.localState):null,inline:W.inline,text:W.text,formatting:!1,linkText:W.linkText,linkTitle:W.linkTitle,linkHref:W.linkHref,code:W.code,em:W.em,strong:W.strong,strikethrough:W.strikethrough,emoji:W.emoji,header:W.header,setext:W.setext,hr:W.hr,taskList:W.taskList,list:W.list,listStack:W.listStack.slice(0),quote:W.quote,indentedCode:W.indentedCode,trailingSpace:W.trailingSpace,trailingSpaceNewLine:W.trailingSpaceNewLine,md_inside:W.md_inside,fencedEndRE:W.fencedEndRE}},token:function(W,z){if(z.formatting=!1,W!=z.thisLine.stream){if(z.header=0,z.hr=!1,W.match(/^\s*$/,!0))return D(z),null;if(z.prevLine=z.thisLine,z.thisLine={stream:W},z.taskList=!1,z.trailingSpace=0,z.trailingSpaceNewLine=!1,!z.localState&&(z.f=z.block,z.f!=I)){var Y=W.match(/^\s*/,!0)[0].replace(/\t/g,t).length;if(z.indentation=Y,z.indentationDiff=null,Y>0)return null}}return z.f(W,z)},innerMode:function(W){return W.block==I?{state:W.htmlState,mode:j}:W.localState?{state:W.localState,mode:W.localMode}:{state:W,mode:G}},indent:function(W,z,Y){return W.block==I&&j.indent?j.indent(W.htmlState,z,Y):W.localState&&W.localMode.indent?W.localMode.indent(W.localState,z,Y):X.Pass},blankLine:D,getType:f,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return G},"xml"),X.defineMIME("text/markdown","markdown"),X.defineMIME("text/x-markdown","markdown")})},loD1:function(ze,te){function P(X,F,R,j,T,S,M){if(T===0)return!1;var c=T,E=0,g=X;if(M>F+c&&M>j+c||MX+c&&S>R+c||S=g.x&&c<=g.x+g.width&&E>=g.y&&E<=g.y+g.height},clone:function(){return new S(this.x,this.y,this.width,this.height)},copy:function(c){this.x=c.x,this.y=c.y,this.width=c.width,this.height=c.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},S.create=function(c){return new S(c.x,c.y,c.width,c.height)};var M=S;ze.exports=M},mLcG:function(ze,te){var P=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(X){setTimeout(X,16)};ze.exports=P},mOS8:function(ze,te,P){ze.exports=P.p+"static/403Qrcode.6c17b6f4.png"},mgmH:function(ze,te,P){"use strict";P.d(te,"d",function(){return b}),P.d(te,"b",function(){return u}),P.d(te,"e",function(){return p}),P.d(te,"c",function(){return v}),P.d(te,"n",function(){return a}),P.d(te,"g",function(){return t}),P.d(te,"h",function(){return s}),P.d(te,"j",function(){return y}),P.d(te,"a",function(){return D}),P.d(te,"l",function(){return C}),P.d(te,"f",function(){return I}),P.d(te,"k",function(){return _}),P.d(te,"m",function(){return f}),P.d(te,"i",function(){return o}),P.d(te,"o",function(){return i}),P.d(te,"r",function(){return d}),P.d(te,"q",function(){return A}),P.d(te,"p",function(){return O});var X=P("miYZ"),F=P("tsqr"),R=P("k1fw"),j=P("9og8"),T=P("WmNS"),S=P.n(T),M=P("oUNq"),c=P("9kvl"),E=P("1vsH"),g=P("m3rI"),r=function(){Object(c.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},l=function(){Object(c.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},b=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return r(),W.next=3,Object(M.s)(Object(R.a)({},N));case 3:if(B=W.sent,!(B.status===0)){W.next=7;break}return W.next=7,Object(E.u)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/export_couser_info.json"),query:N}));case 7:l();case 8:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),u=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.q)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_member_act_score")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),p=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.t)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_score")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_score")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),v=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.r)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),a=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.y)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),t=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.u)(Object(R.a)({},N));case 2:if(B=W.sent,!(B.status===0)){W.next=8;break}F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_homework")),W.next=13;break;case 8:if(!(B.status===-2)){W.next=12;break}return W.abrupt("return",B);case 12:B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),s=function(){var m=Object(j.a)(S.a.mark(function k(N,B){var G;return S.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(M.w)(Object(R.a)({},N));case 2:G=z.sent,G.status===0?(F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/").concat(B))):G.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/").concat(B)));case 4:case"end":return z.stop()}},k)}));return function(N,B){return m.apply(this,arguments)}}(),h=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return r(),W.next=3,Object(M.v)(Object(R.a)({},N));case 3:if(B=W.sent,!(B.status===0)){W.next=7;break}return W.next=7,Object(E.u)("",Object(E.U)({url:g.a.API_SERVER+"/api/homework_commons/".concat(N.categoryId,"/works_list.zip"),query:N}));case 7:l();case 8:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),y=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return r(),W.next=3,Object(M.z)(Object(R.a)({},N));case 3:if(B=W.sent,!(B.status===0)){W.next=7;break}return W.next=7,Object(E.u)("",Object(E.U)({url:g.a.API_SERVER+"/api/polls/".concat(N.categoryId,"/commit_result.xlsx"),query:N}));case 7:l();case 8:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),D=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/attendances/export_xlsx_data.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),C=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/video_study_statics.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),I=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/courses/".concat(N.coursesId,"/export_course_students_info.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),_=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/item_banks/export.xlsx",query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),f=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),o=function(){var m=Object(j.a)(S.a.mark(function k(N){var B;return S.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(M.x)(Object(R.a)({},N));case 2:B=W.sent,B.status===0?(F.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/exercise_score"))):B.status===-3&&(Object(c.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),c.d.push("/classrooms/".concat(N.coursesId,"/exportlist/exercise_score")));case 4:case"end":return W.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),i=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),G.next=3,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/export_records/".concat(N.id,".xlsx"),query:N}));case 3:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),d=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),A=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/ec_years/".concat(N==null?void 0:N.ec_year_id,"/ec_training_objectives.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}(),O=function(){var m=Object(j.a)(S.a.mark(function k(N){return S.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(E.t)("",Object(E.U)({url:g.a.API_SERVER+"/api/ec_years/".concat(N==null?void 0:N.ec_year_id,"/ec_graduation_requirements.xlsx"),query:N}));case 2:case"end":return G.stop()}},k)}));return function(N){return m.apply(this,arguments)}}()},n1HI:function(ze,te,P){var X=P("hX1E"),F=X.normalizeRadian,R=Math.PI*2;function j(T,S,M,c,E,g,r,l,b){if(r===0)return!1;var u=r;l-=T,b-=S;var p=Math.sqrt(l*l+b*b);if(p-u>M||p+uE&&(E+=R);var a=Math.atan2(b,l);return a<0&&(a+=R),a>=c&&a<=E||a+R>=c&&a+R<=E}te.containStroke=j},n6Mw:function(ze,te,P){var X=P("SrGk"),F=P("bYtY"),R=P("Fofx");function j(S,M){X.call(this,S,M,"clipPath","__clippath_in_use__")}F.inherits(j,X),j.prototype.update=function(S){var M=this.getSvgElement(S);M&&this.updateDom(M,S.__clipPaths,!1);var c=this.getTextSvgElement(S);c&&this.updateDom(c,S.__clipPaths,!0),this.markUsed(S)},j.prototype.updateDom=function(S,M,c){if(M&&M.length>0){var E=this.getDefs(!0),g=M[0],r,l,b=c?"_textDom":"_dom";g[b]?(l=g[b].getAttribute("id"),r=g[b],E.contains(r)||E.appendChild(r)):(l="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,r=this.createElement("clipPath"),r.setAttribute("id",l),E.appendChild(r),g[b]=r);var u=this.getSvgProxy(g);if(g.transform&&g.parent.invTransform&&!c){var p=Array.prototype.slice.call(g.transform);R.mul(g.transform,g.parent.invTransform,g.transform),u.brush(g),g.transform=p}else u.brush(g);var v=this.getSvgElement(g);r.innerHTML="",r.appendChild(v.cloneNode()),S.setAttribute("clip-path","url(#"+l+")"),M.length>1&&this.updateDom(r,M.slice(1),c)}else S&&S.setAttribute("clip-path","none")},j.prototype.markUsed=function(S){var M=this;S.__clipPaths&&F.each(S.__clipPaths,function(c){c._dom&&X.prototype.markUsed.call(M,c._dom),c._textDom&&X.prototype.markUsed.call(M,c._textDom)})};var T=j;ze.exports=T},n6Qo:function(ze,te,P){"use strict";P.d(te,"a",function(){return c});var X=P("q1tI"),F=P("biw7"),R=P("fyJ8");function j(E){var g=E.className,r=E.index,l=E.children,b=E.colSpan,u=E.rowSpan,p=X.useContext(F.a),v=p.prefixCls,a=p.fixedInfoList,t=a[r];return X.createElement(R.a,Object.assign({className:g,index:r,component:"td",prefixCls:v,record:null,dataIndex:null,render:function(){return{children:l,props:{colSpan:b,rowSpan:u}}}},t))}function T(E){return X.createElement("tr",Object.assign({},E))}function S(E){var g=E.children,r=X.useContext(F.a),l=r.prefixCls;return X.createElement("tfoot",{className:"".concat(l,"-summary")},g)}var M=te.b=S,c={Cell:j,Row:T}},nCxF:function(ze,te,P){var X=P("QBsz"),F=X.min,R=X.max,j=X.scale,T=X.distance,S=X.add,M=X.clone,c=X.sub;function E(g,r,l,b){var u=[],p=[],v=[],a=[],t,s,h,y;if(b){h=[Infinity,Infinity],y=[-Infinity,-Infinity];for(var D=0,C=g.length;D2&&arguments[2]!==void 0?arguments[2]:"0",Ve=String(Q);Ve.length=12,cn%=12);var Ct=c.useMemo(function(){if(!_t)return[!1,!1];var Nn=[!0,!0];return Ft.forEach(function(Jt){var Bn=Jt.disabled,Or=Jt.value;if(Bn)return;Or>=12?Nn[1]=!1:Nn[0]=!1}),Nn},[_t,Ft]),Xt=Object(M.a)(Ct,2),jt=Xt[0],Tn=Xt[1],Ln=c.useMemo(function(){return _t?Ft.filter(zt?function(Nn){return Nn.value>=12}:function(Nn){return Nn.value<12}).map(function(Nn){var Jt=Nn.value%12,Bn=Jt===0?"12":V(Jt,2);return Object(S.a)(Object(S.a)({},Nn),{},{label:Bn,value:Jt})}):Ft},[_t,Ft]),qt=fe(0,59,et,wt&&wt(cn)),Dn=fe(0,59,Gt,En&&En(cn,Qt));Ve.current={onUpDown:function(Jt){var Bn=It[ut];if(Bn)for(var Or=Bn.units.findIndex(function(Xr){return Xr.value===Bn.value}),Nr=Bn.units.length,zr=1;zr1&&(lt=Se.addDate(lt,-7)),lt}function Ie(Q,Se,We){var Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Se){case"year":return We.addYear(Q,Ve*10);case"quarter":case"month":return We.addYear(Q,Ve);default:return We.addMonth(Q,Ve)}}var De=c.createContext({}),ot=De;function Et(Q){var Se=Q.cellPrefixCls,We=Q.generateConfig,Ve=Q.rangedValue,ut=Q.hoverRangedValue,Ke=Q.isInView,lt=Q.isSameCell,mt=Q.offsetCell,ht=Q.today,_t=Q.value;function $t(kt){var vt,et=mt(kt,-1),Dt=mt(kt,1),Gt=le(Ve,0),Yt=le(Ve,1),wt=le(ut,0),En=le(ut,1),xn=on(We,wt,En,kt);function Jn(Qt){return lt(Gt,Qt)}function It(Qt){return lt(Yt,Qt)}var Wt=lt(wt,kt),vn=lt(En,kt),zt=(xn||vn)&&(!Ke(et)||It(et)),cn=(xn||Wt)&&(!Ke(Dt)||Jn(Dt));return vt={},Object(T.a)(vt,"".concat(Se,"-in-view"),Ke(kt)),Object(T.a)(vt,"".concat(Se,"-in-range"),on(We,Gt,Yt,kt)),Object(T.a)(vt,"".concat(Se,"-range-start"),Jn(kt)),Object(T.a)(vt,"".concat(Se,"-range-end"),It(kt)),Object(T.a)(vt,"".concat(Se,"-range-start-single"),Jn(kt)&&!Yt),Object(T.a)(vt,"".concat(Se,"-range-end-single"),It(kt)&&!Gt),Object(T.a)(vt,"".concat(Se,"-range-start-near-hover"),Jn(kt)&&(lt(et,wt)||on(We,wt,En,et))),Object(T.a)(vt,"".concat(Se,"-range-end-near-hover"),It(kt)&&(lt(Dt,En)||on(We,wt,En,Dt))),Object(T.a)(vt,"".concat(Se,"-range-hover"),xn),Object(T.a)(vt,"".concat(Se,"-range-hover-start"),Wt),Object(T.a)(vt,"".concat(Se,"-range-hover-end"),vn),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-start"),zt),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-end"),cn),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-start-near-range"),zt&<(et,Yt)),Object(T.a)(vt,"".concat(Se,"-range-hover-edge-end-near-range"),cn&<(Dt,Gt)),Object(T.a)(vt,"".concat(Se,"-today"),lt(ht,kt)),Object(T.a)(vt,"".concat(Se,"-selected"),lt(_t,kt)),vt}return $t}function Je(Q){for(var Se=Q.prefixCls,We=Q.disabledDate,Ve=Q.onSelect,ut=Q.rowNum,Ke=Q.colNum,lt=Q.prefixColumn,mt=Q.rowClassName,ht=Q.baseDate,_t=Q.getCellClassName,$t=Q.getCellText,kt=Q.getCellNode,vt=Q.getCellDate,et=Q.titleCell,Dt=Q.headerCells,Gt=c.useContext(v),Yt=Gt.onDateMouseEnter,wt=Gt.onDateMouseLeave,En="".concat(Se,"-cell"),xn=[],Jn=0;Jn2&&arguments[2]!==void 0?arguments[2]:!1;(je===Gt||Ht)&&(Ca(gn),vn&&vn(gn),Nr&&Nr(gn,Bt),zt&&!Lt(mt,gn,na)&&zt(gn))},An=function(gn){return xa.current&&xa.current.onKeyDown?([u.a.LEFT,u.a.RIGHT,u.a.UP,u.a.DOWN,u.a.PAGE_UP,u.a.PAGE_DOWN,u.a.ENTER].includes(gn.which)&&gn.preventDefault(),xa.current.onKeyDown(gn)):(Object(r.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Kn=function(gn){xa.current&&xa.current.onBlur&&xa.current.onBlur(gn)};Bn&&Ka!=="right"&&(Bn.current={onKeyDown:An,onClose:function(){xa.current&&xa.current.onClose&&xa.current.onClose()}}),c.useEffect(function(){ht&&!Ia.current&&nt(ht)},[ht]),c.useEffect(function(){Ia.current=!1},[]);var ar,ir=Object(S.a)(Object(S.a)({},Q),{},{operationRef:xa,prefixCls:Ve,viewDate:$e,value:na,onViewDateChange:Ne,sourceMode:gt,onPanelChange:ln,disabledDate:je!=="decade"?vt:void 0});delete ir.onChange,delete ir.onSelect;switch(je){case"decade":ar=c.createElement(U,Object.assign({},ir,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}}));break;case"year":ar=c.createElement(Fr,Object.assign({},ir,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}}));break;case"month":ar=c.createElement(Pt,Object.assign({},ir,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}}));break;case"quarter":ar=c.createElement(Mn,Object.assign({},ir,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}}));break;case"week":ar=c.createElement(sn,Object.assign({},ir,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}}));break;case"time":delete ir.showTime,ar=c.createElement(de,Object.assign({},ir,Object(b.a)(xn)==="object"?xn:null,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}}));break;default:xn?ar=c.createElement(Mt,Object.assign({},ir,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}})):ar=c.createElement(pe,Object.assign({},ir,{onSelect:function(gn,Bt){Ne(gn),mn(gn,Bt)}}))}var or,_r,gr=function(){var gn=mt.getNow(),Bt=Re(mt.getHour(gn),mt.getMinute(gn),mt.getSecond(gn),Pn?Xt:1,Zn?Tn:1,Nn?qt:1),Ht=we(mt,gn,Bt[0],Bt[1],Bt[2]);mn(Ht,"submit")};zr||(or=H(Ve,je,It),_r=$({prefixCls:Ve,components:Xe,needConfirmButton:Dn,okDisabled:!na||vt&&vt(na),locale:lt,showNow:En,onNow:Dn&&gr,onOk:function(){na&&(mn(na,"submit",!0),tt&&tt(na))}}));var br;if(Jn&&je==="date"&&Gt==="date"&&!xn){var Tr=mt.getNow(),sr="".concat(Ve,"-today-btn"),Ar=vt&&vt(Tr);br=c.createElement("a",{className:g()(sr,Ar&&"".concat(sr,"-disabled")),"aria-disabled":Ar,onClick:function(){Ar||mn(Tr,"mouse",!0)}},lt.today)}return c.createElement(v.Provider,{value:Object(S.a)(Object(S.a)({},Jt),{},{hideHeader:"hideHeader"in Q?Wt:Jt.hideHeader,hidePrevBtn:Yr&&Ka==="right",hideNextBtn:Yr&&Ka==="left"})},c.createElement("div",{tabIndex:wt,className:g()("".concat(Ve,"-panel"),ut,(Se={},Object(T.a)(Se,"".concat(Ve,"-panel-has-range"),Ra&&Ra[0]&&Ra[1]),Object(T.a)(Se,"".concat(Ve,"-panel-has-range-hover"),$a&&$a[0]&&$a[1]),Object(T.a)(Se,"".concat(Ve,"-panel-rtl"),Ft==="rtl"),Se)),style:Ke,onKeyDown:An,onBlur:Kn,onMouseDown:Qt,ref:Or},ar,or||_r||br?c.createElement("div",{className:"".concat(Ve,"-footer")},or,_r,br):null))}var ee=re,Qe=P("uciX"),dn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function On(Q){var Se,We=Q.prefixCls,Ve=Q.popupElement,ut=Q.popupStyle,Ke=Q.visible,lt=Q.dropdownClassName,mt=Q.dropdownAlign,ht=Q.transitionName,_t=Q.getPopupContainer,$t=Q.children,kt=Q.range,vt=Q.popupPlacement,et=Q.direction,Dt="".concat(We,"-dropdown"),Gt=function(){return vt!==void 0?vt:et==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(Qe.a,{showAction:[],hideAction:[],popupPlacement:Gt(),builtinPlacements:dn,prefixCls:Dt,popupTransitionName:ht,popup:Ve,popupAlign:mt,popupVisible:Ke,popupClassName:g()(lt,(Se={},Object(T.a)(Se,"".concat(Dt,"-range"),kt),Object(T.a)(Se,"".concat(Dt,"-rtl"),et==="rtl"),Se)),popupStyle:ut,getPopupContainer:_t},$t)}var Wn=On;function pn(Q){var Se=Q.open,We=Q.value,Ve=Q.isClickOutside,ut=Q.triggerOpen,Ke=Q.forwardKeyDown,lt=Q.blurToCancel,mt=Q.onSubmit,ht=Q.onCancel,_t=Q.onFocus,$t=Q.onBlur,kt=Object(c.useState)(!1),vt=Object(M.a)(kt,2),et=vt[0],Dt=vt[1],Gt=Object(c.useState)(!1),Yt=Object(M.a)(Gt,2),wt=Yt[0],En=Yt[1],xn=Object(c.useRef)(!1),Jn=Object(c.useRef)(!1),It={onMouseDown:function(){Dt(!0),ut(!0)},onKeyDown:function(vn){switch(vn.which){case u.a.ENTER:{Se?mt()!==!1&&Dt(!0):ut(!0),vn.preventDefault();return}case u.a.TAB:{et&&Se&&!vn.shiftKey?(Dt(!1),vn.preventDefault()):!et&&Se&&(!Ke(vn)&&vn.shiftKey&&(Dt(!0),vn.preventDefault()));return}case u.a.ESC:{Dt(!0),ht();return}}!Se&&![u.a.SHIFT].includes(vn.which)?ut(!0):et||Ke(vn)},onFocus:function(vn){Dt(!0),En(!0),_t&&_t(vn)},onBlur:function(vn){if(xn.current||!Ve(document.activeElement)){xn.current=!1;return}lt?setTimeout(function(){Ve(document.activeElement)&&ht()},0):Se&&(ut(!1),Jn.current&&mt()),En(!1),$t&&$t(vn)}};return Object(c.useEffect)(function(){Jn.current=!1},[Se]),Object(c.useEffect)(function(){Jn.current=!0},[We]),Object(c.useEffect)(function(){return O(function(Wt){var vn=Wt.target;Se&&(Ve(vn)?wt||ut(!1):(xn.current=!0,requestAnimationFrame(function(){xn.current=!1})))})}),[It,{focused:wt,typing:et}]}function er(Q){var Se=Q.valueTexts,We=Q.onTextChange,Ve=c.useState(""),ut=Object(M.a)(Ve,2),Ke=ut[0],lt=ut[1],mt=c.useRef([]);mt.current=Se;function ht($t){lt($t),We($t)}function _t(){lt(mt.current[0])}return c.useEffect(function(){Se.every(function($t){return $t!==Ke})&&_t()},[Se.join("||")]),[Ke,ht,_t]}var tr=P("Gytx"),Br=P.n(tr);function ua(Q,Se){var We=Se.formatList,Ve=Se.generateConfig,ut=Se.locale;return Object(D.a)(function(){if(!Q)return[[""],""];for(var Ke="",lt=[],mt=0;mt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(_t.current),wt){ht(Yt);return}_t.current=requestAnimationFrame(function(){ht(Yt)})}var kt=ua(mt,{formatList:We,generateConfig:Ve,locale:ut}),vt=Object(M.a)(kt,2),et=vt[1];function Dt(Yt){$t(Yt)}function Gt(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;$t(null,Yt)}return Object(c.useEffect)(function(){Gt(!0)},[Q]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(_t.current)}},[]),[et,Dt,Gt]}function Gr(Q){var Se,We=Q.prefixCls,Ve=We===void 0?"rc-picker":We,ut=Q.id,Ke=Q.tabIndex,lt=Q.style,mt=Q.className,ht=Q.dropdownClassName,_t=Q.dropdownAlign,$t=Q.popupStyle,kt=Q.transitionName,vt=Q.generateConfig,et=Q.locale,Dt=Q.inputReadOnly,Gt=Q.allowClear,Yt=Q.autoFocus,wt=Q.showTime,En=Q.picker,xn=En===void 0?"date":En,Jn=Q.format,It=Q.use12Hours,Wt=Q.value,vn=Q.defaultValue,zt=Q.open,cn=Q.defaultOpen,Qt=Q.defaultOpenValue,Vt=Q.suffixIcon,tt=Q.clearIcon,Xe=Q.disabled,Ft=Q.disabledDate,Ct=Q.placeholder,Xt=Q.getPopupContainer,jt=Q.pickerRef,Tn=Q.panelRender,Ln=Q.onChange,qt=Q.onOpenChange,Dn=Q.onFocus,Pn=Q.onBlur,Zn=Q.onMouseDown,Nn=Q.onMouseUp,Jt=Q.onMouseEnter,Bn=Q.onMouseLeave,Or=Q.onContextMenu,Nr=Q.onClick,zr=Q.direction,oa=Q.autoComplete,Xr=oa===void 0?"off":oa,Yr=c.useRef(null),Ka=xn==="date"&&!!wt||xn==="time",Ra=ne(o(Jn,xn,wt,It)),$a=c.useRef(null),xa=c.useRef(null),Ia=Object(l.a)(null,{value:Wt,defaultValue:vn}),oi=Object(M.a)(Ia,2),Pa=oi[0],na=oi[1],Ca=c.useState(Pa),Ta=Object(M.a)(Ca,2),Ae=Ta[0],$e=Ta[1],nt=c.useRef(null),Ne=Object(l.a)(!1,{value:zt,defaultValue:cn,postState:function(ur){return Xe?!1:ur},onChange:function(ur){qt&&qt(ur),!ur&&nt.current&&nt.current.onClose&&nt.current.onClose()}}),se=Object(M.a)(Ne,2),Ce=se[0],he=se[1],je=ua(Ae,{formatList:Ra,generateConfig:vt,locale:et}),Fe=Object(M.a)(je,2),it=Fe[0],He=Fe[1],gt=er({valueTexts:it,onTextChange:function(ur){var ha=vt.locale.parse(et.locale,ur,Ra);ha&&(!Ft||!Ft(ha))&&$e(ha)}}),Ut=Object(M.a)(gt,3),ln=Ut[0],mn=Ut[1],An=Ut[2],Kn=function(ur){$e(ur),na(ur),Ln&&!Lt(vt,Pa,ur)&&Ln(ur,ur?vt.locale.format(et.locale,ur,Ra[0]):"")},ar=function(ur){if(Xe&&ur)return;he(ur)},ir=function(ur){return Ce&&nt.current&&nt.current.onKeyDown?nt.current.onKeyDown(ur):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},or=function(){Nn&&Nn.apply(void 0,arguments),Yr.current&&(Yr.current.focus(),ar(!0))},_r=pn({blurToCancel:Ka,open:Ce,value:ln,triggerOpen:ar,forwardKeyDown:ir,isClickOutside:function(ur){return!W([$a.current,xa.current],ur)},onSubmit:function(){return Ft&&Ft(Ae)?!1:(Kn(Ae),ar(!1),An(),!0)},onCancel:function(){ar(!1),$e(Pa),An()},onFocus:Dn,onBlur:Pn}),gr=Object(M.a)(_r,2),br=gr[0],Tr=gr[1],sr=Tr.focused,Ar=Tr.typing;c.useEffect(function(){Ce||($e(Pa),!it.length||it[0]===""?mn(""):He!==ln&&An())},[Ce,it]),c.useEffect(function(){Ce||An()},[xn]),c.useEffect(function(){$e(Pa)},[Pa]),jt&&(jt.current={focus:function(){Yr.current&&Yr.current.focus()},blur:function(){Yr.current&&Yr.current.blur()}});var nr=Object(S.a)(Object(S.a)({},Q),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),gn=c.createElement(ee,Object.assign({},nr,{generateConfig:vt,className:g()(Object(T.a)({},"".concat(Ve,"-panel-focused"),!Ar)),value:Ae,locale:et,tabIndex:-1,onChange:$e,direction:zr}));Tn&&(gn=Tn(gn));var Bt=c.createElement("div",{className:"".concat(Ve,"-panel-container"),onMouseDown:function(ur){ur.preventDefault()}},gn),Ht;Vt&&(Ht=c.createElement("span",{className:"".concat(Ve,"-suffix")},Vt));var fn;Gt&&Pa&&!Xe&&(fn=c.createElement("span",{onMouseDown:function(ur){ur.preventDefault(),ur.stopPropagation()},onMouseUp:function(ur){ur.preventDefault(),ur.stopPropagation(),Kn(null),ar(!1)},className:"".concat(Ve,"-clear")},tt||c.createElement("span",{className:"".concat(Ve,"-clear-btn")})));var wn=function(ur,ha){(ha==="submit"||ha!=="key"&&!Ka)&&(Kn(ur),ar(!1))},Sn=zr==="rtl"?"bottomRight":"bottomLeft",Hr=va(ln,{formatList:Ra,generateConfig:vt,locale:et}),Sr=Object(M.a)(Hr,3),Lr=Sr[0],Ur=Sr[1],kr=Sr[2];return c.createElement(v.Provider,{value:{operationRef:nt,hideHeader:xn==="time",panelRef:$a,onSelect:wn,open:Ce,defaultOpenValue:Qt,onDateMouseEnter:Ur,onDateMouseLeave:kr}},c.createElement(Wn,{visible:Ce,popupElement:Bt,popupStyle:$t,prefixCls:Ve,dropdownClassName:ht,dropdownAlign:_t,getPopupContainer:Xt,transitionName:kt,popupPlacement:Sn,direction:zr},c.createElement("div",{className:g()(Ve,mt,(Se={},Object(T.a)(Se,"".concat(Ve,"-disabled"),Xe),Object(T.a)(Se,"".concat(Ve,"-focused"),sr),Object(T.a)(Se,"".concat(Ve,"-rtl"),zr==="rtl"),Se)),style:lt,onMouseDown:Zn,onMouseUp:or,onMouseEnter:Jt,onMouseLeave:Bn,onContextMenu:Or,onClick:Nr},c.createElement("div",{className:g()("".concat(Ve,"-input"),Object(T.a)({},"".concat(Ve,"-input-placeholder"),!!Lr)),ref:xa},c.createElement("input",Object.assign({id:ut,tabIndex:Ke,disabled:Xe,readOnly:Dt||!Ar,value:Lr||ln,onChange:function(ur){mn(ur.target.value)},autoFocus:Yt,placeholder:Ct,ref:Yr,title:ln},br,{size:i(xn,Ra[0])},ve(Q),{autoComplete:Xr})),Ht,fn))))}var zn=function(Q){Object(R.a)(We,Q);var Se=Object(j.a)(We);function We(){var Ve;return Object(X.a)(this,We),Ve=Se.apply(this,arguments),Ve.pickerRef=c.createRef(),Ve.focus=function(){Ve.pickerRef.current&&Ve.pickerRef.current.focus()},Ve.blur=function(){Ve.pickerRef.current&&Ve.pickerRef.current.blur()},Ve}return Object(F.a)(We,[{key:"render",value:function(){return c.createElement(Gr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),We}(c.Component),_n=zn;function bn(Q,Se,We){var Ve=Q.picker,ut=Q.locale,Ke=Q.selectedValue,lt=Q.disabledDate,mt=Q.disabled,ht=Q.generateConfig,_t=le(Ke,0),$t=le(Ke,1);function kt(Yt){var wt=ht.getYear(Yt),En=ht.locale.getWeek(ut.locale,Yt);return wt*100+En}function vt(Yt){var wt=ht.getYear(Yt),En=ht.getMonth(Yt);return wt*100+En}function et(Yt){var wt=ht.getYear(Yt),En=Ge(ht,Yt);return wt*10+En}var Dt=c.useCallback(function(Yt){if(lt&<(Yt))return!0;if(mt[1]&&$t)return!Rt(ht,Yt,$t)&&ht.isAfter(Yt,$t);if(Se&&$t)switch(Ve){case"quarter":return et(Yt)>et($t);case"month":return vt(Yt)>vt($t);case"week":return kt(Yt)>kt($t);default:return!Rt(ht,Yt,$t)&&ht.isAfter(Yt,$t)}return!1},[lt,mt[1],$t,Se]),Gt=c.useCallback(function(Yt){if(lt&<(Yt))return!0;if(mt[0]&&_t)return!Rt(ht,Yt,$t)&&ht.isAfter(_t,Yt);if(We&&_t)switch(Ve){case"quarter":return et(Yt)0&&arguments[0]!==void 0?arguments[0]:!1,Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rr=null;kr&&La&&La[0]&&La[1]&&Dt.isAfter(La[1],La[0])&&(rr=La);var Rr=Wt;if(Wt&&Object(b.a)(Wt)==="object"&&Wt.defaultValue){var sa=Wt.defaultValue;Rr=Object(S.a)(Object(S.a)({},Wt),{},{defaultValue:le(sa,He)||void 0})}var vi=null;return jt&&(vi=function(Da,Xa){return jt(Da,Xa,{range:He?"end":"start"})}),c.createElement(ot.Provider,{value:{inRange:!0,panelPosition:xr,rangedValue:Xi||sr,hoverRangedValue:rr}},c.createElement(ee,Object.assign({},Q,Fn,{dateRender:vi,showTime:Rr,mode:Bt[He],generateConfig:Dt,style:void 0,direction:Ia,disabledDate:He===0?Hr:Sr,disabledTime:function(Da){return Xt?Xt(Da,He===0?"start":"end"):!1},className:g()(Object(T.a)({},"".concat(Ke,"-panel-focused"),He===0?!pa:!so)),value:le(sr,He),locale:Gt,tabIndex:-1,onPanelChange:function(Da,Xa){fn(be(Bt,Xa,He),be(sr,Da,He));var gi=Da;xr==="right"&&Bt[He]===Xa&&(gi=Ie(gi,Xa,Dt,-1)),gr(gi,He)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var da=0,Ua=0;He&&nt.current&&se.current&&$e.current&&(da=nt.current.offsetWidth+se.current.offsetWidth,$e.current.offsetWidth&&da>$e.current.offsetWidth&&(Ua=da));var Ri=Ia==="rtl"?{right:da}:{left:da};function di(){var xr,Fn=H(Ke,Bt[He],Or),rr=$({prefixCls:Ke,components:$a,needConfirmButton:Ca,okDisabled:!le(sr,He)||Ct&&Ct(sr[He]),locale:Gt,rangeList:Vr,onOk:function(){le(sr,He)&&(ja(sr,He),Ra&&Ra(sr))}});if(It!=="time"&&!Wt){var Rr=_r(He),sa=Ie(Rr,It,Dt),vi=Bt[He],ai=vi===It,Da=Ir(ai?"left":!1,{pickerValue:Rr,onPickerValueChange:function(wa){gr(wa,He)}}),Xa=Ir("right",{pickerValue:sa,onPickerValueChange:function(wa){gr(Ie(wa,It,Dt,-1),He)}});Ia==="rtl"?xr=c.createElement(c.Fragment,null,Xa,ai&&Da):xr=c.createElement(c.Fragment,null,Da,ai&&Xa)}else xr=Ir();var gi=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(Ke,"-panels")},xr),(Fn||rr)&&c.createElement("div",{className:"".concat(Ke,"-footer")},Fn,rr));return Tn&&(gi=Tn(gi)),c.createElement("div",{className:"".concat(Ke,"-panel-container"),style:{marginLeft:Ua},ref:$e,onMouseDown:function(wa){wa.preventDefault()}},gi)}var Ui=c.createElement("div",{className:g()("".concat(Ke,"-range-wrapper"),"".concat(Ke,"-").concat(It,"-range-wrapper")),style:{minWidth:_a}},c.createElement("div",{className:"".concat(Ke,"-range-arrow"),style:Ri}),di()),ci;Pn&&(ci=c.createElement("span",{className:"".concat(Ke,"-suffix")},Pn));var ba;Dn&&(le(Kn,0)&&!ln[0]||le(Kn,1)&&!ln[1])&&(ba=c.createElement("span",{onMouseDown:function(Fn){Fn.preventDefault(),Fn.stopPropagation()},onMouseUp:function(Fn){Fn.preventDefault(),Fn.stopPropagation();var rr=Kn;ln[0]||(rr=be(rr,null,0)),ln[1]||(rr=be(rr,null,1)),ja(rr,null),Zr(!1,He)},className:"".concat(Ke,"-clear")},Zn||c.createElement("span",{className:"".concat(Ke,"-clear-btn")})));var Fi={size:i(It,je[0])},Bi=0,Hi=0;nt.current&&Ne.current&&se.current&&(He===0?Hi=nt.current.offsetWidth:(Bi=da,Hi=Ne.current.offsetWidth));var Wa=Ia==="rtl"?{right:Bi}:{left:Bi},Kr=function(Fn,rr){var Rr=be(sr,Fn,He);rr==="submit"||rr!=="key"&&!Ca?(ja(Rr,He),He===0?$i():ro()):Ar(Rr)};return c.createElement(v.Provider,{value:{operationRef:Ut,hideHeader:It==="time",onDateMouseEnter:Ao,onDateMouseLeave:Mo,hideRanges:!0,onSelect:Kr,open:kr}},c.createElement(Wn,{visible:kr,popupElement:Ui,popupStyle:_t,prefixCls:Ke,dropdownClassName:$t,dropdownAlign:vt,getPopupContainer:et,transitionName:kt,range:!0,direction:Ia},c.createElement("div",Object.assign({ref:Ae,className:g()(Ke,"".concat(Ke,"-range"),ht,(Se={},Object(T.a)(Se,"".concat(Ke,"-disabled"),ln[0]&&ln[1]),Object(T.a)(Se,"".concat(Ke,"-focused"),He===0?Oa:oo),Object(T.a)(Se,"".concat(Ke,"-rtl"),Ia==="rtl"),Se)),style:mt,onClick:Ci,onMouseDown:Ji},ve(Q)),c.createElement("div",{className:g()("".concat(Ke,"-input"),(We={},Object(T.a)(We,"".concat(Ke,"-input-active"),He===0),Object(T.a)(We,"".concat(Ke,"-input-placeholder"),!!mi),We)),ref:nt},c.createElement("input",Object.assign({id:lt,disabled:ln[0],readOnly:Jt||!pa,value:mi||Ti,onChange:function(Fn){ki(Fn.target.value)},autoFocus:wt,placeholder:le(Yt,0)||"",ref:Ce},Ha,Fi,{autoComplete:na}))),c.createElement("div",{className:"".concat(Ke,"-range-separator"),ref:se},cn),c.createElement("div",{className:g()("".concat(Ke,"-input"),(Ve={},Object(T.a)(Ve,"".concat(Ke,"-input-active"),He===1),Object(T.a)(Ve,"".concat(Ke,"-input-placeholder"),!!ui),Ve)),ref:Ne},c.createElement("input",Object.assign({disabled:ln[1],readOnly:Jt||!so,value:ui||Oi,onChange:function(Fn){Vi(Fn.target.value)},placeholder:le(Yt,1)||"",ref:he},qa,Fi,{autoComplete:na}))),c.createElement("div",{className:"".concat(Ke,"-active-bar"),style:Object(S.a)(Object(S.a)({},Wa),{},{width:Hi,position:"absolute"})}),ci,ba)))}var Yn=function(Q){Object(R.a)(We,Q);var Se=Object(j.a)(We);function We(){var Ve;return Object(X.a)(this,We),Ve=Se.apply(this,arguments),Ve.pickerRef=c.createRef(),Ve.focus=function(){Ve.pickerRef.current&&Ve.pickerRef.current.focus()},Ve.blur=function(){Ve.pickerRef.current&&Ve.pickerRef.current.blur()},Ve}return Object(F.a)(We,[{key:"render",value:function(){return c.createElement(dr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),We}(c.Component),Qn=Yn,pr=te.b=_n},osHv:function(ze,te,P){(function(X){X(P("VrN/"))})(function(X){"use strict";var F=X.Pos;function R(a,t){return a.line-t.line||a.ch-t.ch}var j="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",T=j+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",S=new RegExp("<(/?)(["+j+"]["+T+"]*)","g");function M(a,t,s,h){this.line=t,this.ch=s,this.cm=a,this.text=a.getLine(t),this.min=h?Math.max(h.from,a.firstLine()):a.firstLine(),this.max=h?Math.min(h.to-1,a.lastLine()):a.lastLine()}function c(a,t){var s=a.cm.getTokenTypeAt(F(a.line,t));return s&&/\btag\b/.test(s)}function E(a){return a.line>=a.max?void 0:(a.ch=0,a.text=a.cm.getLine(++a.line),!0)}function g(a){return a.line<=a.min?void 0:(a.text=a.cm.getLine(--a.line),a.ch=a.text.length,!0)}function r(a){for(;;){var t=a.text.indexOf(">",a.ch);if(t==-1){if(E(a))continue;return}if(!c(a,t+1)){a.ch=t+1;continue}var s=a.text.lastIndexOf("/",t),h=s>-1&&!/\S/.test(a.text.slice(s+1,t));return a.ch=t+1,h?"selfClose":"regular"}}function l(a){for(;;){var t=a.ch?a.text.lastIndexOf("<",a.ch-1):-1;if(t==-1){if(g(a))continue;return}if(!c(a,t+1)){a.ch=t;continue}S.lastIndex=t,a.ch=t;var s=S.exec(a.text);if(s&&s.index==t)return s}}function b(a){for(;;){S.lastIndex=a.ch;var t=S.exec(a.text);if(!t){if(E(a))continue;return}if(!c(a,t.index+1)){a.ch=t.index+1;continue}return a.ch=t.index+t[0].length,t}}function u(a){for(;;){var t=a.ch?a.text.lastIndexOf(">",a.ch-1):-1;if(t==-1){if(g(a))continue;return}if(!c(a,t+1)){a.ch=t;continue}var s=a.text.lastIndexOf("/",t),h=s>-1&&!/\S/.test(a.text.slice(s+1,t));return a.ch=t+1,h?"selfClose":"regular"}}function p(a,t){for(var s=[];;){var h=b(a),y,D=a.line,C=a.ch-(h?h[0].length:0);if(!h||!(y=r(a)))return;if(y=="selfClose")continue;if(h[1]){for(var I=s.length-1;I>=0;--I)if(s[I]==h[2]){s.length=I;break}if(I<0&&(!t||t==h[2]))return{tag:h[2],from:F(D,C),to:F(a.line,a.ch)}}else s.push(h[2])}}function v(a,t){for(var s=[];;){var h=u(a);if(!h)return;if(h=="selfClose"){l(a);continue}var y=a.line,D=a.ch,C=l(a);if(!C)return;if(C[1])s.push(C[2]);else{for(var I=s.length-1;I>=0;--I)if(s[I]==C[2]){s.length=I;break}if(I<0&&(!t||t==C[2]))return{tag:C[2],from:F(a.line,a.ch),to:F(y,D)}}}}X.registerHelper("fold","xml",function(a,t){for(var s=new M(a,t.line,0);;){var h=b(s);if(!h||s.line!=t.line)return;var y=r(s);if(!y)return;if(!h[1]&&y!="selfClose"){var D=F(s.line,s.ch),C=p(s,h[2]);return C&&R(C.from,D)>0?{from:D,to:C.from}:null}}}),X.findMatchingTag=function(a,t,s){var h=new M(a,t.line,t.ch,s);if(h.text.indexOf(">")==-1&&h.text.indexOf("<")==-1)return;var y=r(h),D=y&&F(h.line,h.ch),C=y&&l(h);if(!y||!C||R(h,t)>0)return;var I={from:F(h.line,h.ch),to:D,tag:C[2]};return y=="selfClose"?{open:I,close:null,at:"open"}:C[1]?{open:v(h,C[2]),close:I,at:"close"}:(h=new M(a,D.line,D.ch,s),{open:I,close:p(h,C[2]),at:"open"})},X.findEnclosingTag=function(a,t,s,h){for(var y=new M(a,t.line,t.ch,s);;){var D=v(y,h);if(!D)break;var C=new M(a,t.line,t.ch,s),I=p(C,D.tag);if(I)return{open:D,close:I}}},X.scanForClosingTag=function(a,t,s,h){var y=new M(a,t.line,t.ch,h?{from:0,to:h}:null);return p(y,s)}})},p5ED:function(ze,te,P){"use strict";var X=P("+L6B"),F=P("2/Rp"),R=P("5Dmo"),j=P("3S7+"),T=P("k1fw"),S=P("9og8"),M=P("tJVT"),c=P("WmNS"),E=P.n(c),g=P("q1tI"),r=P.n(g),l=P("vHTk"),b=P.n(l),u=P("yEEn"),p=P("ZW9T"),v=P("1vsH"),a=P("V0Rq"),t=P("m3rI");te.a=function(s){var h,y,D,C,I,_,f=s.editOffice,o=f===void 0?"view":f,i=s.name,d=s.data,A=s.theme,O=s.type,m=s.filename,k=s.monacoEditor,N=s.className,B=s.style,G=s.close,W=s.onClose,z=s.hasMask,Y=s.disabledDownload,V=s.onImgDimensions,q=s.otherData,ne=Object(g.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ve=Object(M.a)(ne,2),le=ve[0],be=ve[1],we=Object(g.useState)(""),Re=Object(M.a)(we,2),ge=Re[0],fe=Re[1],Ze=Object(g.useState)(),Ot=Object(M.a)(Ze,2),Ee=Ot[0],ke=Ot[1],de=window.ENV==="build"?"/react/build":"",me=location.host.startsWith("localhost")?t.a.PROXY_SERVER:t.a.API_SERVER,Le,rt=1024*1024,Oe=10*rt,Ge=Object(g.useRef)();(h=d)!==null&&h!==void 0&&h.startsWith("/api")&&O!=="txt"&&(d=t.a.API_SERVER+d),O==="office"&&(Le=Object(v.P)(d).filesize,Le>Oe&&(O="other")),m&&(k.filename=m),Object(g.useEffect)(function(){var bt,Kt,Lt=(bt=document.cookie)===null||bt===void 0||((Kt=bt.replace(/\s/g,""))===null||Kt===void 0)?void 0:Kt.split(";");Lt==null||Lt.map(function(on){var un=on.split("=");un[0]==="_educoder_session"&&fe(un[1])})},[]),Object(g.useEffect)(function(){O==="office"&&at()},[O,d]);var at=function(){var bt=Object(S.a)(E.a.mark(function Kt(){var Lt,on,un;return E.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return console.log("data:",d),Lt=d,d.startsWith("http")||(Lt=location.origin+Lt),on=new URL(Lt).pathname.split("/").pop(),De.next=6,Object(a.U)({attachment_id:on});case 6:un=De.sent,ke(un);case 8:case"end":return De.stop()}},Kt)}));return function(){return bt.apply(this,arguments)}}(),dt=function(){if(d.startsWith("http")||d.startsWith("blob:")){Rt();return}Object(v.x)(m||"educoder",d,m)},Rt=function(){Object(v.v)(m||"educoder",decodeURIComponent(d))};return r.a.createElement("div",{style:Object(T.a)({},B||{}),className:"".concat(z&&b.a.bgBlack," ").concat(O?b.a.wrp:"hide")},G&&r.a.createElement("div",{className:b.a.close,ref:Ge},!!V&&r.a.createElement(j.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ge.current}},r.a.createElement("span",{onClick:function(){W(),V()}},r.a.createElement("i",{className:"icon-yulanpizhu"}))),!Y&&r.a.createElement(j.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},r.a.createElement("span",{onClick:Rt},r.a.createElement("i",{className:"icon-quxiaozhiding"}))),r.a.createElement(j.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},r.a.createElement("span",{className:"",onClick:W},r.a.createElement("i",{className:"icon-guanbi1"})))),r.a.createElement("div",{className:"".concat(b.a[N]," ").concat(N," ").concat(b.a.monaco," ").concat(O==="txt"?"show":"hide")},O==="txt"&&r.a.createElement(p.b,k)),O==="audio"&&r.a.createElement("audio",{src:"".concat(((y=d)===null||y===void 0?void 0:y.indexOf("http://"))>-1||((D=d)===null||D===void 0?void 0:D.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(d),autoPlay:!0}),O==="video"&&r.a.createElement(r.a.Fragment,null,((C=d)===null||C===void 0?void 0:C.indexOf("http"))>-1?r.a.createElement("video",{controls:!0,src:"".concat(d),autoPlay:!0}):r.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(d),autoPlay:!0})),O==="office"&&Ee&&r.a.createElement("iframe",{src:"".concat(de,"/office.html?key=").concat(Ee.key,"&url=").concat(me+Ee.url,"&callbackUrl=").concat(me+Ee.callbackUrl,"&fileType=").concat(Ee.fileType,"&title=").concat(Ee.title,"&model=").concat(o,"&officeServer=").concat(t.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),(O==="xlsx"||O==="doc"||O==="pptx"||O==="docx")&&r.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(q.key,"&url=").concat(t.a.API_SERVER+q.url,"&callbackUrl=").concat(t.a.API_SERVER+q.callbackUrl,"&fileType=").concat(q.fileType,"&title=").concat(q.title,"&model=").concat(q.model)}),O==="html"&&r.a.createElement("iframe",{src:d+"&disposition=inline"}),O==="pdf"&&r.a.createElement("embed",{className:b.a.embed,src:d}),O==="image"&&r.a.createElement("img",{src:"".concat(((I=d)===null||I===void 0?void 0:I.indexOf("http://"))>-1||((_=d)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(d)}),O==="other"&&r.a.createElement("div",null,r.a.createElement(F.a,{type:"primary",size:"large",onClick:dt},r.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),O==="download"&&r.a.createElement(F.a,{type:"primary",size:"large",onClick:dt},r.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(ze,te,P){},pmY6:function(ze,te,P){"use strict";P.d(te,"g",function(){return T}),P.d(te,"f",function(){return S}),P.d(te,"e",function(){return M}),P.d(te,"h",function(){return c}),P.d(te,"b",function(){return E}),P.d(te,"a",function(){return g}),P.d(te,"d",function(){return r}),P.d(te,"c",function(){return l});var X=!1,F="__is_disposable_tracked__";function R(b){if(!X)return;if(b&&b!==g.None)try{b[F]=!0}catch(u){}}function j(b){if(!X)return b;var u=new Error("Potentially leaked disposable").stack;return setTimeout(function(){b[F]||console.log(u)},3e3),b}function T(b){return typeof b.dispose=="function"&&b.dispose.length===0}function S(b){return Array.isArray(b)?(b.forEach(function(u){u&&(R(u),u.dispose())}),[]):b?(R(b),b.dispose(),b):void 0}function M(){for(var b=[],u=0;u=0&&(Ie=at[un],Ie.textAlign==="right");)i(Y,V,Ie,ne,Rt,Le,on,"right"),bt-=Ie.width,on-=Ie.width,un--;for(Lt+=(le-(Lt-me)-(rt-on)-bt)/2;Kt<=un;)Ie=at[Kt],i(Y,V,Ie,ne,Rt,Le,Lt+Ie.width/2,"center"),Lt+=Ie.width,Kt++;Le+=Rt}}function o(Y,V,q,ne,ve){if(q&&V.textRotation){var le=V.textOrigin;le==="center"?(ne=q.width/2+q.x,ve=q.height/2+q.y):le&&(ne=le[0]+q.x,ve=le[1]+q.y),Y.translate(ne,ve),Y.rotate(-V.textRotation),Y.translate(-ne,-ve)}}function i(Y,V,q,ne,ve,le,be,we){var Re=ne.rich[q.styleName]||{};Re.text=q.text;var ge=q.textVerticalAlign,fe=le+ve/2;ge==="top"?fe=le+q.height/2:ge==="bottom"&&(fe=le+ve-q.height/2),!q.isLineHolder&&d(Re)&&A(Y,V,Re,we==="right"?be-q.width:we==="center"?be-q.width/2:be,fe-q.height/2,q.width,q.height);var Ze=q.textPadding;Ze&&(be=W(be,we,Ze),fe-=q.height/2-Ze[2]-q.textHeight/2),k(V,"shadowBlur",R(Re.textShadowBlur,ne.textShadowBlur,0)),k(V,"shadowColor",Re.textShadowColor||ne.textShadowColor||"transparent"),k(V,"shadowOffsetX",R(Re.textShadowOffsetX,ne.textShadowOffsetX,0)),k(V,"shadowOffsetY",R(Re.textShadowOffsetY,ne.textShadowOffsetY,0)),k(V,"textAlign",we),k(V,"textBaseline","middle"),k(V,"font",q.font||p);var Ot=N(Re.textStroke||ne.textStroke,ke),Ee=B(Re.textFill||ne.textFill),ke=F(Re.textStrokeWidth,ne.textStrokeWidth);Ot&&(k(V,"lineWidth",ke),k(V,"strokeStyle",Ot),V.strokeText(q.text,be,fe)),Ee&&(k(V,"fillStyle",Ee),V.fillText(q.text,be,fe))}function d(Y){return!!(Y.textBackgroundColor||Y.textBorderWidth&&Y.textBorderColor)}function A(Y,V,q,ne,ve,le,be){var we=q.textBackgroundColor,Re=q.textBorderWidth,ge=q.textBorderColor,fe=S(we);if(k(V,"shadowBlur",q.textBoxShadowBlur||0),k(V,"shadowColor",q.textBoxShadowColor||"transparent"),k(V,"shadowOffsetX",q.textBoxShadowOffsetX||0),k(V,"shadowOffsetY",q.textBoxShadowOffsetY||0),fe||Re&&ge){V.beginPath();var Ze=q.textBorderRadius;Ze?E.buildPath(V,{x:ne,y:ve,width:le,height:be,r:Ze}):V.rect(ne,ve,le,be),V.closePath()}if(fe)if(k(V,"fillStyle",we),q.fillOpacity!=null){var Ot=V.globalAlpha;V.globalAlpha=q.fillOpacity*q.opacity,V.fill(),V.globalAlpha=Ot}else V.fill();else if(M(we)){var Ee=we.image;Ee=g.createOrUpdateImage(Ee,null,Y,O,we),Ee&&g.isImageReady(Ee)&&V.drawImage(Ee,ne,ve,le,be)}if(Re&&ge)if(k(V,"lineWidth",Re),k(V,"strokeStyle",ge),q.strokeOpacity!=null){var Ot=V.globalAlpha;V.globalAlpha=q.strokeOpacity*q.opacity,V.stroke(),V.globalAlpha=Ot}else V.stroke()}function O(Y,V){V.image=Y}function m(Y,V,q,ne){var ve=q.x||0,le=q.y||0,be=q.textAlign,we=q.textVerticalAlign;if(ne){var Re=q.textPosition;if(Re instanceof Array)ve=ne.x+G(Re[0],ne.width),le=ne.y+G(Re[1],ne.height);else{var ge=V&&V.calculateTextPosition?V.calculateTextPosition(s,q,ne):c.calculateTextPosition(s,q,ne);ve=ge.x,le=ge.y,be=be||ge.textAlign,we=we||ge.textVerticalAlign}var fe=q.textOffset;fe&&(ve+=fe[0],le+=fe[1])}return Y=Y||{},Y.baseX=ve,Y.baseY=le,Y.textAlign=be,Y.textVerticalAlign=we,Y}function k(Y,V,q){return Y[V]=r(Y,V,q),Y[V]}function N(Y,V){return Y==null||V<=0||Y==="transparent"||Y==="none"?null:Y.image||Y.colorStops?"#000":Y}function B(Y){return Y==null||Y==="none"?null:Y.image||Y.colorStops?"#000":Y}function G(Y,V){return typeof Y=="string"?Y.lastIndexOf("%")>=0?parseFloat(Y)/100*V:parseFloat(Y):Y}function W(Y,V,q){return V==="right"?Y-q[1]:V==="center"?Y+q[3]/2-q[1]/2:Y+q[3]}function z(Y,V){return Y!=null&&(Y||V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor||V.textPadding)}te.normalizeTextStyle=y,te.renderText=C,te.getBoxPosition=m,te.getStroke=N,te.getFill=B,te.parsePercent=G,te.needDrawText=z},qH13:function(ze,te,P){var X=P("ItGF"),F=P("QBsz"),R=F.applyTransform,j=P("mFDi"),T=P("Qe9p"),S=P("6GrX"),M=P("pzxd"),c=P("ni6a"),E=P("Gev7"),g=P("Dagg"),r=P("dqUG"),l=P("y+Vt"),b=P("IMiH"),u=P("QuXc"),p=P("06Qe"),v=b.CMD,a=Math.round,t=Math.sqrt,s=Math.abs,h=Math.cos,y=Math.sin,D=Math.max;if(!X.canvasSupported){var C=",",I="progid:DXImageTransform.Microsoft",_=21600,f=_/2,o=1e5,i=1e3,d=function(Oe){Oe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Oe.coordsize=_+","+_,Oe.coordorigin="0,0"},A=function(Oe){return String(Oe).replace(/&/g,"&").replace(/"/g,""")},O=function(Oe,Ge,at){return"rgb("+[Oe,Ge,at].join(",")+")"},m=function(Oe,Ge){Ge&&Oe&&Ge.parentNode!==Oe&&Oe.appendChild(Ge)},k=function(Oe,Ge){Ge&&Oe&&Ge.parentNode===Oe&&Oe.removeChild(Ge)},N=function(Oe,Ge,at){return(parseFloat(Oe)||0)*o+(parseFloat(Ge)||0)*i+at},B=M.parsePercent,G=function(Oe,Ge,at){var dt=T.parse(Ge);at=+at,isNaN(at)&&(at=1),dt&&(Oe.color=O(dt[0],dt[1],dt[2]),Oe.opacity=at*dt[3])},W=function(Oe){var Ge=T.parse(Oe);return[O(Ge[0],Ge[1],Ge[2]),Ge[3]]},z=function(Oe,Ge,at){var dt=Ge.fill;if(dt!=null)if(dt instanceof u){var Rt,bt=0,Kt=[0,0],Lt=0,on=1,un=at.getBoundingRect(),Ie=un.width,De=un.height;if(dt.type==="linear"){Rt="gradient";var ot=at.transform,Et=[dt.x*Ie,dt.y*De],Je=[dt.x2*Ie,dt.y2*De];ot&&(R(Et,Et,ot),R(Je,Je,ot));var ft=Je[0]-Et[0],Me=Je[1]-Et[1];bt=Math.atan2(ft,Me)*180/Math.PI,bt<0&&(bt+=360),bt<1e-6&&(bt=0)}else{Rt="gradientradial";var Et=[dt.x*Ie,dt.y*De],ot=at.transform,xe=at.scale,Te=Ie,oe=De;Kt=[(Et[0]-un.x)/Te,(Et[1]-un.y)/oe],ot&&R(Et,Et,ot),Te/=xe[0]*_,oe/=xe[1]*_;var ue=D(Te,oe);Lt=2*0/ue,on=2*dt.r/ue-Lt}var pe=dt.colorStops.slice();pe.sort(function(ct,ye){return ct.offset-ye.offset});for(var _e=pe.length,Ye=[],Ue=[],Mt=0;Mt<_e;Mt++){var tn=pe[Mt],sn=W(tn.color);Ue.push(tn.offset*on+Lt+" "+sn[0]),(Mt===0||Mt===_e-1)&&Ye.push(sn)}if(_e>=2){var nn=Ye[0][0],rn=Ye[1][0],St=Ye[0][1]*Ge.opacity,Tt=Ye[1][1]*Ge.opacity;Oe.type=Rt,Oe.method="none",Oe.focus="100%",Oe.angle=bt,Oe.color=nn,Oe.color2=rn,Oe.colors=Ue.join(","),Oe.opacity=Tt,Oe.opacity2=St}Rt==="radial"&&(Oe.focusposition=Kt.join(","))}else G(Oe,dt,Ge.opacity)},Y=function(Oe,Ge){Ge.lineDash&&(Oe.dashstyle=Ge.lineDash.join(" ")),Ge.stroke!=null&&!(Ge.stroke instanceof u)&&G(Oe,Ge.stroke,Ge.opacity)},V=function(Oe,Ge,at,dt){var Rt=Ge==="fill",bt=Oe.getElementsByTagName(Ge)[0];at[Ge]!=null&&at[Ge]!=="none"&&(Rt||!Rt&&at.lineWidth)?(Oe[Rt?"filled":"stroked"]="true",at[Ge]instanceof u&&k(Oe,bt),bt||(bt=p.createNode(Ge)),Rt?z(bt,at,dt):Y(bt,at),m(Oe,bt)):(Oe[Rt?"filled":"stroked"]="false",k(Oe,bt))},q=[[],[],[]],ne=function(Oe,Ge){var at=v.M,dt=v.C,Rt=v.L,bt=v.A,Kt=v.Q,Lt=[],on,un,Ie,De,ot,Et,Je=Oe.data,ft=Oe.len();for(De=0;De.01?ye&&(Pe+=270/_):Math.abs(Pt-nn)<1e-4?ye&&Pesn?xe-=270/_:xe+=270/_:ye&&Ptnn?Me+=270/_:Me-=270/_),Lt.push(pt,a(((sn-rn)*Ue+_e)*_-f),C,a(((nn-St)*Mt+Ye)*_-f),C,a(((sn+rn)*Ue+_e)*_-f),C,a(((nn+St)*Mt+Ye)*_-f),C,a((Pe*Ue+_e)*_-f),C,a((Pt*Mt+Ye)*_-f),C,a((Me*Ue+_e)*_-f),C,a((xe*Mt+Ye)*_-f)),ot=Me,Et=xe;break;case v.R:var en=q[0],an=q[1];en[0]=Je[De++],en[1]=Je[De++],an[0]=en[0]+Je[De++],an[1]=en[1]+Je[De++],Ge&&(R(en,en,Ge),R(an,an,Ge)),en[0]=a(en[0]*_-f),an[0]=a(an[0]*_-f),en[1]=a(en[1]*_-f),an[1]=a(an[1]*_-f),Lt.push(" m ",en[0],C,en[1]," l ",an[0],C,en[1]," l ",an[0],C,an[1]," l ",en[0],C,an[1]);break;case v.Z:Lt.push(" x ")}if(on>0){Lt.push(un);for(var st=0;stRe&&(we=0,be={});var at=ge.style,dt;try{at.font=Oe,dt=at.fontFamily.split(",")[0]}catch(Rt){}Ge={style:at.fontStyle||le,variant:at.fontVariant||le,weight:at.fontWeight||le,size:parseFloat(at.fontSize||12)|0,family:dt||"Microsoft YaHei"},be[Oe]=Ge,we++}return Ge},Ze;S.$override("measureText",function(Oe,Ge){var at=p.doc;Ze||(Ze=at.createElement("div"),Ze.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(Ze));try{Ze.style.font=Ge}catch(dt){}return Ze.innerHTML="",Ze.appendChild(at.createTextNode(Oe)),{width:Ze.offsetWidth}});for(var Ot=new j,Ee=function(Oe,Ge,at,dt){var Rt=this.style;this.__dirty&&M.normalizeTextStyle(Rt,!0);var bt=Rt.text;if(bt!=null&&(bt+=""),!bt)return;if(Rt.rich){var Kt=S.parseRichText(bt,Rt);bt=[];for(var Lt=0;Lt=0&&(this.delFromStorage(c),this._roots.splice(l,1),c instanceof R&&c.delChildrenFromStorage(this))},addToStorage:function(c){return c&&(c.__storage=this,c.dirty(!1)),this},delFromStorage:function(c){return c&&(c.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:T};var M=S;ze.exports=M},rA99:function(ze,te,P){var X=P("y+Vt"),F=P("QBsz"),R=P("Sj9i"),j=R.quadraticSubdivide,T=R.cubicSubdivide,S=R.quadraticAt,M=R.cubicAt,c=R.quadraticDerivativeAt,E=R.cubicDerivativeAt,g=[];function r(b,u,p){var v=b.cpx2,a=b.cpy2;return v===null||a===null?[(p?E:M)(b.x1,b.cpx1,b.cpx2,b.x2,u),(p?E:M)(b.y1,b.cpy1,b.cpy2,b.y2,u)]:[(p?c:S)(b.x1,b.cpx1,b.x2,u),(p?c:S)(b.y1,b.cpy1,b.y2,u)]}var l=X.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(b,u){var p=u.x1,v=u.y1,a=u.x2,t=u.y2,s=u.cpx1,h=u.cpy1,y=u.cpx2,D=u.cpy2,C=u.percent;if(C===0)return;b.moveTo(p,v),y==null||D==null?(C<1&&(j(p,s,a,C,g),s=g[1],a=g[2],j(v,h,t,C,g),h=g[1],t=g[2]),b.quadraticCurveTo(s,h,a,t)):(C<1&&(T(p,s,y,a,C,g),s=g[1],y=g[2],a=g[3],T(v,h,D,t,C,g),h=g[1],D=g[2],t=g[3]),b.bezierCurveTo(s,h,y,D,a,t))},pointAt:function(b){return r(this.shape,b,!1)},tangentAt:function(b){var u=r(this.shape,b,!0);return F.normalize(u,u)}});ze.exports=l},"rAM+":function(ze,te,P){"use strict";P.d(te,"a",function(){return F});var X=P("Qw5x");function F(R,j){var T;if(typeof Symbol=="undefined"||R[Symbol.iterator]==null){if(Array.isArray(R)||(T=Object(X.a)(R))||j&&R&&typeof R.length=="number"){T&&(R=T);var S=0,M=function(){};return{s:M,n:function(){return S>=R.length?{done:!0}:{done:!1,value:R[S++]}},e:function(l){throw l},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,E=!1,g;return{s:function(){T=R[Symbol.iterator]()},n:function(){var l=T.next();return c=l.done,l},e:function(l){E=!0,g=l},f:function(){try{!c&&T.return!=null&&T.return()}finally{if(E)throw g}}}}},rUJ1:function(ze,te){const P=/[&<>"']/,X=/[&<>"']/g,F=/[<>"']|&(?!#?\w+;)/,R=/[<>"']|&(?!#?\w+;)/g,j={"&":"&","<":"<",">":">",'"':""","'":"'"},T=_=>j[_];function S(_,f){if(f){if(P.test(_))return _.replace(X,T)}else if(F.test(_))return _.replace(R,T);return _}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(_){return _.replace(M,(f,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const E=/(^|[^\[])\^/g;function g(_,f){_=_.source||_,f=f||"";const o={replace:(i,d)=>(d=d.source||d,d=d.replace(E,"$1"),_=_.replace(i,d),o),getRegex:()=>new RegExp(_,f)};return o}const r=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(_,f,o){if(_){let i;try{i=decodeURIComponent(c(o)).replace(r,"").toLowerCase()}catch(d){return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}f&&!l.test(o)&&(o=t(f,o));try{o=encodeURI(o).replace(/%25/g,"%")}catch(i){return null}return o}const u={},p=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function t(_,f){u[" "+_]||(p.test(_)?u[" "+_]=_+"/":u[" "+_]=D(_,"/",!0)),_=u[" "+_];const o=_.indexOf(":")===-1;return f.substring(0,2)==="//"?o?f:_.replace(v,"$1")+f:f.charAt(0)==="/"?o?f:_.replace(a,"$1")+f:_+f}const s={exec:function(){}};function h(_){let f=1,o,i;for(;f{let k=!1,N=O;for(;--N>=0&&m[N]==="\\";)k=!k;return k?"|":" |"}),i=o.split(/ \|/);let d=0;if(i.length>f)i.splice(f);else for(;i.length0)){sn.next=7;break}return u.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),sn.abrupt("return");case 7:return Ue={homework_ids:Object(v.a)(V.actionTabs.selectArrs),group_ids:Ie.map(function(nn){return nn.id}),end_time:o()(Ye.end_time).format("YYYY-MM-DD HH:mm"),publish_time:o()(Ye.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Ie.length},sn.next=10,Object(i.a)("/api/courses/".concat(ne.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(a.a)({},Ue)});case 10:Mt=sn.sent,Mt.status===0&&(oe(),Object(d.Y)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),u.b.success("\u53D1\u5E03\u6210\u529F"),q({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(m.c)()?V.actionTabs.detail?(q({type:"shixunHomeworks/setActionTabs",payload:{}}),q({type:"shixunHomeworks/getWorkList",payload:Object(a.a)({},ne)}),q({type:"shixunHomeworks/getWorkSetting",payload:Object(a.a)({},ne)})):q({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(a.a)(Object(a.a)({},V.actionTabs.params),{},{type:4})}):q({type:"classroomList/getClassroomShixunsList",payload:Object(a.a)({},V.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||q({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:_.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return sn.stop()}},_e)}));return function(){return pe.apply(this,arguments)}}(),oe=function(){fe(1),ke([]),De([])},ue=Le>ge*at;return _.a.createElement(F.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:V.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Te,onCancel:function(){oe(),q({type:"classroomList/setActionTabs",payload:{}})}},_.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",_.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),Ee&&_.a.createElement(h.a,{form:be},_.a.createElement("div",{style:{paddingLeft:0}},_.a.createElement(c.a,{className:"mt30",align:"middle"},_.a.createElement(g.a,null,_.a.createElement(h.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},_.a.createElement(l.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(_e){return _e.parentNode},disabledDate:function(_e){return _e&&_e<=o()().subtract(0,"days")},disabledTime:G,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(d.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),_.a.createElement(g.a,{className:"ml20"},_.a.createElement(h.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},_.a.createElement(l.a,{style:{width:170},getPopupContainer:function(_e){return _e.parentNode},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:o()(Object(d.d)(),"HH:mm")},disabledDate:function(_e){return _e&&_e0&&_.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},_.a.createElement("span",{style:{flex:1}},_.a.createElement(j.a,{checked:Ie.length===Ee.length,onChange:function(_e){Ie.length===Ee.length?De([]):De(Ee)}},"\u5168\u9009")," "),_.a.createElement("span",{style:{width:16}}),_.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ie.length||0,"\u4E2A\u5206\u73ED")),(V.actionTabs.type===1||!Je)&&Ee.length>0&&_.a.createElement(N.a,{data:Ee,selectedRowKeys:Ie,setSelectedRowKeys:De})))};te.a=Object(O.a)(function(z){var Y=z.classroomList,V=z.user;return{classroomList:Y,user:V}})(W)},rmlV:function(ze,te,P){var X=P("y+Vt"),F=X.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(R,j){var T=.5522848,S=j.cx,M=j.cy,c=j.rx,E=j.ry,g=c*T,r=E*T;R.moveTo(S-c,M),R.bezierCurveTo(S-c,M-r,S-g,M-E,S,M-E),R.bezierCurveTo(S+g,M-E,S+c,M-r,S+c,M),R.bezierCurveTo(S+c,M+r,S+g,M+E,S,M+E),R.bezierCurveTo(S-g,M+E,S-c,M+r,S-c,M),R.closePath()}});ze.exports=F},sR1s:function(ze,te,P){"use strict";P.d(te,"b",function(){return j}),P.d(te,"a",function(){return T}),P.d(te,"c",function(){return S}),P.d(te,"d",function(){return M});var X=P("U8pU"),F="RC_TABLE_KEY";function R(c){return c==null?[]:Array.isArray(c)?c:[c]}function j(c,E){if(!E&&typeof E!="number")return c;for(var g=R(E),r=c,l=0;l-1)){var u=j.parse(b)[3],p=j.toHex(b);l.setAttribute("stop-color","#"+p),l.setAttribute("stop-opacity",u)}else l.setAttribute("stop-color",E[g].color);c.appendChild(l)}M._dom=c},T.prototype.markUsed=function(M){if(M.style){var c=M.style.fill;c&&c._dom&&X.prototype.markUsed.call(this,c._dom),c=M.style.stroke,c&&c._dom&&X.prototype.markUsed.call(this,c._dom)}};var S=T;ze.exports=S},sboe:function(ze,te,P){"use strict";P.d(te,"a",function(){return R});var X=P("q1tI"),F=P.n(X),R=X.createContext(null)},t23M:function(ze,te,P){"use strict";var X=P("VTBJ"),F=P("1OyB"),R=P("vuIU"),j=P("Ji7U"),T=P("LK+K"),S=P("q1tI"),M=P.n(S),c=P("m+aA"),E=P("Zm9Q"),g=P("Kwbf"),r=P("c+Xe"),l=P("bdgK"),b="rc-observer-key",u=function(p){Object(j.a)(a,p);var v=Object(T.a)(a);function a(){var t;return Object(F.a)(this,a),t=v.apply(this,arguments),t.resizeObserver=null,t.childNode=null,t.currentElement=null,t.state={width:0,height:0,offsetHeight:0,offsetWidth:0},t.onResize=function(s){var h=t.props.onResize,y=s[0].target,D=y.getBoundingClientRect(),C=D.width,I=D.height,_=y.offsetWidth,f=y.offsetHeight,o=Math.floor(C),i=Math.floor(I);if(t.state.width!==o||t.state.height!==i||t.state.offsetWidth!==_||t.state.offsetHeight!==f){var d={width:o,height:i,offsetWidth:_,offsetHeight:f};t.setState(d),h&&Promise.resolve().then(function(){h(Object(X.a)(Object(X.a)({},d),{},{offsetWidth:_,offsetHeight:f}))})}},t.setChildNode=function(s){t.childNode=s},t}return Object(R.a)(a,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var s=this.props.disabled;if(s){this.destroyObserver();return}var h=Object(c.a)(this.childNode||this),y=h!==this.currentElement;y&&(this.destroyObserver(),this.currentElement=h),!this.resizeObserver&&h&&(this.resizeObserver=new l.default(this.onResize),this.resizeObserver.observe(h))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,h=Object(E.a)(s);if(h.length>1)Object(g.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(h.length===0)return Object(g.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var y=h[0];if(S.isValidElement(y)&&Object(r.c)(y)){var D=y.ref;h[0]=S.cloneElement(y,{ref:Object(r.a)(D,this.setChildNode)})}return h.length===1?h[0]:h.map(function(C,I){return!S.isValidElement(C)||"key"in C&&C.key!==null?C:S.cloneElement(C,{key:"".concat(b,"-").concat(I)})})}}]),a}(S.Component);u.displayName="ResizeObserver",te.a=u},u3os:function(ze,te,P){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ver=te.clear=te.bind=void 0;var X=P("P4Qj"),F=function(S,M){var c=(0,X.getSensor)(S);return c.bind(M),function(){c.unbind(M)}};te.bind=F;var R=function(S){var M=(0,X.getSensor)(S);(0,X.removeSensor)(M)};te.clear=R;var j="1.0.1";te.ver=j},ulZh:function(ze,te,P){typeof window!="undefined"&&function(F,R){ze.exports=R()}(this,function(){return function(X){var F={};function R(j){if(F[j])return F[j].exports;var T=F[j]={i:j,l:!1,exports:{}};return X[j].call(T.exports,T,T.exports,R),T.l=!0,T.exports}return R.m=X,R.c=F,R.d=function(j,T,S){R.o(j,T)||Object.defineProperty(j,T,{enumerable:!0,get:S})},R.r=function(j){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},R.t=function(j,T){if(T&1&&(j=R(j)),T&8)return j;if(T&4&&typeof j=="object"&&j&&j.__esModule)return j;var S=Object.create(null);if(R.r(S),Object.defineProperty(S,"default",{enumerable:!0,value:j}),T&2&&typeof j!="string")for(var M in j)R.d(S,M,function(c){return j[c]}.bind(null,M));return S},R.n=function(j){var T=j&&j.__esModule?function(){return j.default}:function(){return j};return R.d(T,"a",T),T},R.o=function(j,T){return Object.prototype.hasOwnProperty.call(j,T)},R.p="/dist/",R(R.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(X,F,R){"use strict";var j=Object.prototype.hasOwnProperty,T="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(T=!1));function M(r,l,b){this.fn=r,this.context=l,this.once=b||!1}function c(r,l,b,u,p){if(typeof b!="function")throw new TypeError("The listener must be a function");var v=new M(b,u||r,p),a=T?T+l:l;return r._events[a]?r._events[a].fn?r._events[a]=[r._events[a],v]:r._events[a].push(v):(r._events[a]=v,r._eventsCount++),r}function E(r,l){--r._eventsCount===0?r._events=new S:delete r._events[l]}function g(){this._events=new S,this._eventsCount=0}g.prototype.eventNames=function(){var l=[],b,u;if(this._eventsCount===0)return l;for(u in b=this._events)j.call(b,u)&&l.push(T?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(b)):l},g.prototype.listeners=function(l){var b=T?T+l:l,u=this._events[b];if(!u)return[];if(u.fn)return[u.fn];for(var p=0,v=u.length,a=new Array(v);p0},!1)}function r(l,b){for(var u={main:[b]},p={main:[]},v={main:{}};g(u);)for(var a=Object.keys(u),t=0;t=2*I/f||m<=N)return;var B=Number.POSITIVE_INFINITY,G;for(G=a.level-1;G>i;G--){var W=o[G].maxBitrate;if(B=I*W/(8*.8*O),B=m)return;var z=this.bwEstimator.getEstimate();g.logger.warn("Fragment "+a.sn+(t?" part "+t.index:"")+" of level "+a.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+G+` Current BW estimate: `+(Object(j.isFiniteNumber)(z)?(z/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+m.toFixed(3)+` s @@ -373,7 +373,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho trackSwitch: `+B+` contiguous: `+z+` accurateTimeOffset: `+_+` - timeOffset: `+O);var q=new M.TransmuxConfig(h,y,s,I,o);this.configureTransmuxer(q)}if(this.frag=D,this.part=C,A)A.postMessage({cmd:"demux",data:t,decryptdata:m,chunkMeta:f,state:V},t instanceof ArrayBuffer?[t]:[]);else if(d){var ne=d.push(t,m,f,V);Object(M.isPromise)(ne)?ne.then(function(ve){i.handleTransmuxComplete(ve)}):this.handleTransmuxComplete(ne)}},v.flush=function(t){var s=this;t.transmuxing.start=self.performance.now();var h=this.transmuxer,y=this.worker;if(y)y.postMessage({cmd:"flush",chunkMeta:t});else if(h){var D=h.flush(t);Object(M.isPromise)(D)?D.then(function(C){s.handleFlushResult(C,t)}):this.handleFlushResult(D,t)}},v.handleFlushResult=function(t,s){var h=this;t.forEach(function(y){h.handleTransmuxComplete(y)}),this.onFlush(s)},v.onWorkerMessage=function(t){var s=t.data,h=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,h.trigger(s.event,s.data);break}}},v.configureTransmuxer=function(t){var s=this.worker,h=this.transmuxer;s?s.postMessage({cmd:"configure",config:t}):h&&h.configure(t)},v.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},p}()},"./src/demux/transmuxer-worker.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return E});var j=R("./src/demux/transmuxer.ts"),T=R("./src/events.ts"),S=R("./src/utils/logger.ts"),M=R("./node_modules/eventemitter3/index.js"),c=R.n(M);function E(u){var p=new M.EventEmitter,v=function(t,s){u.postMessage({event:t,data:s})};p.on(T.Events.FRAG_DECRYPTED,v),p.on(T.Events.ERROR,v),u.addEventListener("message",function(a){var t=a.data;switch(t.cmd){case"init":{var s=JSON.parse(t.config);u.transmuxer=new j.default(p,t.typeSupported,s,t.vendor,t.id),Object(S.enableLogs)(s.debug),v("init",null);break}case"configure":{u.transmuxer.configure(t.config);break}case"demux":{var h=u.transmuxer.push(t.data,t.decryptdata,t.chunkMeta,t.state);Object(j.isPromise)(h)?h.then(function(C){g(u,C)}):g(u,h);break}case"flush":{var y=t.chunkMeta,D=u.transmuxer.flush(y);Object(j.isPromise)(D)?D.then(function(C){l(u,C,y)}):l(u,D,y);break}default:break}})}function g(u,p){if(b(p.remuxResult))return;var v=[],a=p.remuxResult,t=a.audio,s=a.video;t&&r(v,t),s&&r(v,s),u.postMessage({event:"transmuxComplete",data:p},v)}function r(u,p){p.data1&&u.push(p.data1.buffer),p.data2&&u.push(p.data2.buffer)}function l(u,p,v){p.forEach(function(a){g(u,a)}),u.postMessage({event:"flush",data:v})}function b(u){return!u.audio&&!u.video&&!u.text&&!u.id3&&!u.initSegment}},"./src/demux/transmuxer.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return s}),R.d(F,"isPromise",function(){return D}),R.d(F,"TransmuxConfig",function(){return C}),R.d(F,"TransmuxState",function(){return I});var j=R("./src/events.ts"),T=R("./src/errors.ts"),S=R("./src/crypt/decrypter.ts"),M=R("./src/demux/aacdemuxer.ts"),c=R("./src/demux/mp4demuxer.ts"),E=R("./src/demux/tsdemuxer.ts"),g=R("./src/demux/mp3demuxer.ts"),r=R("./src/remux/mp4-remuxer.ts"),l=R("./src/remux/passthrough-remuxer.ts"),b=R("./src/demux/chunk-cache.ts"),u=R("./src/utils/mp4-tools.ts"),p=R("./src/utils/logger.ts"),v;try{v=self.performance.now.bind(self.performance)}catch(_){p.logger.debug("Unable to use Performance API on this environment"),v=self.Date.now}var a=[{demux:E.default,remux:r.default},{demux:c.default,remux:l.default},{demux:M.default,remux:r.default},{demux:g.default,remux:r.default}],t=1024;a.forEach(function(_){var f=_.demux;t=Math.max(t,f.minProbeByteLength)});var s=function(){function _(o,i,d,A,O){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new b.default,this.observer=o,this.typeSupported=i,this.config=d,this.vendor=A,this.id=O}var f=_.prototype;return f.configure=function(i){this.transmuxConfig=i,this.decrypter&&this.decrypter.reset()},f.push=function(i,d,A,O){var m=this,k=A.transmuxing;k.executeStart=v();var N=new Uint8Array(i),B=this.cache,G=this.config,W=this.currentTransmuxState,z=this.transmuxConfig;O&&(this.currentTransmuxState=O);var Y=h(N,d);if(Y&&Y.method==="AES-128"){var V=this.getDecrypter();if(G.enableSoftwareAES){var q=V.softwareDecrypt(N,Y.key.buffer,Y.iv.buffer);if(!q)return k.executeEnd=v(),y(A);N=new Uint8Array(q)}else return this.decryptionPromise=V.webCryptoDecrypt(N,Y.key.buffer,Y.iv.buffer).then(function(Le){var rt=m.push(Le,null,A);return m.decryptionPromise=null,rt}),this.decryptionPromise}var ne=O||W,ve=ne.contiguous,le=ne.discontinuity,be=ne.trackSwitch,we=ne.accurateTimeOffset,Re=ne.timeOffset,ge=z.audioCodec,fe=z.videoCodec,Ze=z.defaultInitPts,Ot=z.duration,Ee=z.initSegmentData;if((le||be)&&this.resetInitSegment(Ee,ge,fe,Ot),le&&this.resetInitialTimestamp(Ze),ve||this.resetContiguity(),this.needsProbing(N,le,be)){if(B.dataLength){var ke=B.flush();N=Object(u.appendUint8Array)(ke,N)}this.configureTransmuxer(N,z)}var de=this.transmux(N,Y,Re,we,A),me=this.currentTransmuxState;return me.contiguous=!0,me.discontinuity=!1,me.trackSwitch=!1,k.executeEnd=v(),de},f.flush=function(i){var d=this,A=i.transmuxing;A.executeStart=v();var O=this.decrypter,m=this.cache,k=this.currentTransmuxState,N=this.decryptionPromise;if(N)return N.then(function(){return d.flush(i)});var B=[],G=k.timeOffset;if(O){var W=O.flush();W&&B.push(this.push(W,null,i))}var z=m.dataLength;m.reset();var Y=this.demuxer,V=this.remuxer;if(!Y||!V)return z>=t&&this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),A.executeEnd=v(),[y(i)];var q=Y.flush(G);return D(q)?q.then(function(ne){return d.flushRemux(B,ne,i),B}):(this.flushRemux(B,q,i),B)},f.flushRemux=function(i,d,A){var O=d.audioTrack,m=d.avcTrack,k=d.id3Track,N=d.textTrack,B=this.currentTransmuxState,G=B.accurateTimeOffset,W=B.timeOffset;p.logger.log("[transmuxer.ts]: Flushed fragment "+A.sn+(A.part>-1?" p: "+A.part:"")+" of level "+A.level);var z=this.remuxer.remux(O,m,k,N,W,G,!0,this.id);i.push({remuxResult:z,chunkMeta:A}),A.transmuxing.executeEnd=v()},f.resetInitialTimestamp=function(i){var d=this.demuxer,A=this.remuxer;if(!d||!A)return;d.resetTimeStamp(i),A.resetTimeStamp(i)},f.resetContiguity=function(){var i=this.demuxer,d=this.remuxer;if(!i||!d)return;i.resetContiguity(),d.resetNextTimestamp()},f.resetInitSegment=function(i,d,A,O){var m=this.demuxer,k=this.remuxer;if(!m||!k)return;m.resetInitSegment(d,A,O),k.resetInitSegment(i,d,A)},f.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},f.transmux=function(i,d,A,O,m){var k;return d&&d.method==="SAMPLE-AES"?k=this.transmuxSampleAes(i,d,A,O,m):k=this.transmuxUnencrypted(i,A,O,m),k},f.transmuxUnencrypted=function(i,d,A,O){var m=this.demuxer.demux(i,d,!1,!this.config.progressive),k=m.audioTrack,N=m.avcTrack,B=m.id3Track,G=m.textTrack,W=this.remuxer.remux(k,N,B,G,d,A,!1,this.id);return{remuxResult:W,chunkMeta:O}},f.transmuxSampleAes=function(i,d,A,O,m){var k=this;return this.demuxer.demuxSampleAes(i,d,A).then(function(N){var B=k.remuxer.remux(N.audioTrack,N.avcTrack,N.id3Track,N.textTrack,A,O,!1,k.id);return{remuxResult:B,chunkMeta:m}})},f.configureTransmuxer=function(i,d){for(var A=this.config,O=this.observer,m=this.typeSupported,k=this.vendor,N=d.audioCodec,B=d.defaultInitPts,G=d.duration,W=d.initSegmentData,z=d.videoCodec,Y,V=0,q=a.length;V0&&f!=null&&f.key!=null&&f.iv!==null&&f.method!=null&&(o=f),o}var y=function(f){return{remuxResult:{},chunkMeta:f}};function D(_){return"then"in _&&_.then instanceof Function}var C=function(f,o,i,d,A){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=f,this.videoCodec=o,this.initSegmentData=i,this.duration=d,this.defaultInitPts=A},I=function(f,o,i,d,A){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=f,this.contiguous=o,this.accurateTimeOffset=i,this.trackSwitch=d,this.timeOffset=A}},"./src/demux/tsdemuxer.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"discardEPB",function(){return y});var j=R("./src/demux/adts.ts"),T=R("./src/demux/mpegaudio.ts"),S=R("./src/demux/exp-golomb.ts"),M=R("./src/demux/id3.ts"),c=R("./src/demux/sample-aes.ts"),E=R("./src/events.ts"),g=R("./src/utils/mp4-tools.ts"),r=R("./src/utils/logger.ts"),l=R("./src/errors.ts"),b={video:1,audio:2,id3:3,text:4},u=function(){function D(I,_,f){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=I,this.config=_,this.typeSupported=f}D.probe=function(_){var f=D.syncOffset(_);return f<0?!1:(f&&r.logger.warn("MPEG2-TS detected but first sync word found @ offset "+f+", junk ahead ?"),!0)},D.syncOffset=function(_){for(var f=Math.min(1e3,_.length-3*188),o=0;o>4,ge=void 0;if(Re>1){if(ge=le+5+_[le+4],ge===le+188)continue}else ge=le+4;switch(we){case k:be&&(N&&(d=t(N))&&this.parseAVCPES(d,!1),N={data:[],size:0}),N&&(N.data.push(_.subarray(ge,le+188)),N.size+=le+188-ge);break;case B:be&&(W&&(d=t(W))&&(O.isAAC?this.parseAACPES(d):this.parseMPEGPES(d)),W={data:[],size:0}),W&&(W.data.push(_.subarray(ge,le+188)),W.size+=le+188-ge);break;case G:be&&(z&&(d=t(z))&&this.parseID3PES(d),z={data:[],size:0}),z&&(z.data.push(_.subarray(ge,le+188)),z.size+=le+188-ge);break;case 0:be&&(ge+=_[ge]+1),q=this._pmtId=v(_,ge);break;case q:{be&&(ge+=_[ge]+1);var fe=a(_,ge,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,o);k=fe.avc,k>0&&(A.pid=k),B=fe.audio,B>0&&(O.pid=B,O.isAAC=fe.isAAC),G=fe.id3,G>0&&(m.pid=G),Y&&!V&&(r.logger.log("reparse from beginning"),Y=!1,le=ve-188),V=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=!0;break}}else this.observer.emit(E.Events.ERROR,E.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});A.pesData=N,O.pesData=W,m.pesData=z;var Ze={audioTrack:O,avcTrack:A,id3Track:m,textTrack:this._txtTrack};return i&&this.extractRemainingSamples(Ze),Ze},C.flush=function(){var _=this.remainderData;this.remainderData=null;var f;return _?f=this.demux(_,-1,!1,!0):f={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(f),this.sampleAes?this.decrypt(f,this.sampleAes):f},C.extractRemainingSamples=function(_){var f=_.audioTrack,o=_.avcTrack,i=_.id3Track,d=o.pesData,A=f.pesData,O=i.pesData,m;d&&(m=t(d))?(this.parseAVCPES(m,!0),o.pesData=null):o.pesData=d,A&&(m=t(A))?(f.isAAC?this.parseAACPES(m):this.parseMPEGPES(m),f.pesData=null):(A!=null&&A.size&&r.logger.log("last AAC PES packet truncated,might overlap between fragments"),f.pesData=A),O&&(m=t(O))?(this.parseID3PES(m),i.pesData=null):i.pesData=O},C.demuxSampleAes=function(_,f,o){var i=this.demux(_,o,!0,!this.config.progressive),d=this.sampleAes=new c.default(this.observer,this.config,f);return this.decrypt(i,d)},C.decrypt=function(_,f){return new Promise(function(o){var i=_.audioTrack,d=_.avcTrack;i.samples&&i.isAAC?f.decryptAacSamples(i.samples,0,function(){d.samples?f.decryptAvcSamples(d.samples,0,0,function(){o(_)}):o(_)}):d.samples&&f.decryptAvcSamples(d.samples,0,0,function(){o(_)})})},C.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},C.parseAVCPES=function(_,f){var o=this,i=this._avcTrack,d=this.parseAVCNALu(_.data),A=!1,O=this.avcSample,m,k=!1;_.data=null,O&&d.length&&!i.audFound&&(s(O,i),O=this.avcSample=p(!1,_.pts,_.dts,"")),d.forEach(function(N){switch(N.type){case 1:{m=!0,O||(O=o.avcSample=p(!0,_.pts,_.dts,"")),A&&(O.debug+="NDR "),O.frame=!0;var B=N.data;if(k&&B.length>4){var G=new S.default(B).readSliceType();(G===2||G===4||G===7||G===9)&&(O.key=!0)}break}case 5:m=!0,O||(O=o.avcSample=p(!0,_.pts,_.dts,"")),A&&(O.debug+="IDR "),O.key=!0,O.frame=!0;break;case 6:{m=!0,A&&O&&(O.debug+="SEI ");var W=new S.default(y(N.data));W.readUByte();for(var z=0,Y=0,V=!1,q=0;!V&&W.bytesAvailable>1;){z=0;do q=W.readUByte(),z+=q;while(q===255);Y=0;do q=W.readUByte(),Y+=q;while(q===255);if(z===4&&W.bytesAvailable!==0){V=!0;var ne=W.readUByte();if(ne===181){var ve=W.readUShort();if(ve===49){var le=W.readUInt();if(le===1195456820){var be=W.readUByte();if(be===3){for(var we=W.readUByte(),Re=W.readUByte(),ge=31&we,fe=[we,Re],Ze=0;Ze16){for(var Ot=[],Ee=0;Ee<16;Ee++)Ot.push(W.readUByte().toString(16)),(Ee===3||Ee===5||Ee===7||Ee===9)&&Ot.push("-");for(var ke=Y-16,de=new Uint8Array(ke),me=0;me=0){var W={data:_.subarray(B,O-i-1),type:G};A.push(W)}else{var z=this.getLastNalUnit();if(z&&(d&&O<=4-d&&(z.state&&(z.data=z.data.subarray(0,z.data.byteLength-d))),k=O-i-1,k>0)){var Y=new Uint8Array(z.data.byteLength+k);Y.set(z.data,0),Y.set(_.subarray(0,k),z.data.byteLength),z.data=Y,z.state=0}}O=0&&i>=0){var V={data:_.subarray(B,f),type:G,state:i};A.push(V)}if(A.length===0){var q=this.getLastNalUnit();if(q){var ne=new Uint8Array(q.data.byteLength+_.byteLength);ne.set(q.data,0),ne.set(_,q.data.byteLength),q.data=ne}}return o.naluState=i,A},C.parseAACPES=function(_){var f=0,o=this._audioTrack,i=this.aacOverFlow,d=_.data;if(i){this.aacOverFlow=null;var A=i.sample.unit.byteLength,O=Math.min(i.missing,A),m=A-O;i.sample.unit.set(d.subarray(0,O),m),o.samples.push(i.sample),f=i.missing}var k,N;for(k=f,N=d.length;k1;){var A=new Uint8Array(d[0].length+d[1].length);A.set(d[0]),A.set(d[1],d[0].length),d[0]=A,d.splice(1,1)}I=d[0];var O=(I[0]<<16)+(I[1]<<8)+I[2];if(O===1){if(_=(I[4]<<8)+I[5],_&&_>D.size-6)return null;var m=I[7];m&192&&(o=(I[9]&14)*536870912+(I[10]&255)*4194304+(I[11]&254)*16384+(I[12]&255)*128+(I[13]&254)/2,m&64?(i=(I[14]&14)*536870912+(I[15]&255)*4194304+(I[16]&254)*16384+(I[17]&255)*128+(I[18]&254)/2,o-i>60*9e4&&(r.logger.warn(Math.round((o-i)/9e4)+"s delta between PTS and DTS, align them"),o=i)):i=o),f=I[8];var k=f+9;if(D.size<=k)return null;D.size-=k;for(var N=new Uint8Array(D.size),B=0,G=d.length;BW){k-=W;continue}else I=I.subarray(k),W-=k,k=0;N.set(I,C),C+=W}return _&&(_-=f+3),{data:N,pts:o,dts:i,len:_}}return null}function s(D,C){if(D.units.length&&D.frame){if(D.pts===void 0){var I=C.samples,_=I.length;if(_){var f=I[_-1];D.pts=f.pts,D.dts=f.dts}else{C.dropped++;return}}C.samples.push(D)}D.debug.length&&r.logger.log(D.pts+"/"+D.dts+":"+D.debug)}function h(D,C){var I=D.length;if(I>0){if(C.pts>=D[I-1].pts)D.push(C);else for(var _=I-1;_>=0;_--)if(C.ptso)return d;return 0}},{key:"maxAutoLevel",get:function(){var f=this.levels,o=this.autoLevelCapping,i;return o===-1&&f&&f.length?i=f.length-1:i=o,i}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(f){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,f)}},{key:"audioTracks",get:function(){var f=this.audioTrackController;return f?f.audioTracks:[]}},{key:"audioTrack",get:function(){var f=this.audioTrackController;return f?f.audioTrack:-1},set:function(f){var o=this.audioTrackController;o&&(o.audioTrack=f)}},{key:"subtitleTracks",get:function(){var f=this.subtitleTrackController;return f?f.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var f=this.subtitleTrackController;return f?f.subtitleTrack:-1},set:function(f){var o=this.subtitleTrackController;o&&(o.subtitleTrack=f)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var f=this.subtitleTrackController;return f?f.subtitleDisplay:!1},set:function(f){var o=this.subtitleTrackController;o&&(o.subtitleDisplay=f)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(f){this.config.lowLatencyMode=f}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return t.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return C.defaultConfig?C.defaultConfig:p.hlsDefaultConfig},set:function(f){C.defaultConfig=f}}]),C}();D.defaultConfig=void 0},"./src/is-supported.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"isSupported",function(){return S}),R.d(F,"changeTypeSupported",function(){return M});var j=R("./src/utils/mediasource-helper.ts");function T(){return self.SourceBuffer||self.WebKitSourceBuffer}function S(){var c=Object(j.getMediaSource)();if(!c)return!1;var E=T(),g=c&&typeof c.isTypeSupported=="function"&&c.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!E||E.prototype&&typeof E.prototype.appendBuffer=="function"&&typeof E.prototype.remove=="function";return!!g&&!!r}function M(){var c,E=T();return typeof(E==null||((c=E.prototype)===null||c===void 0)?void 0:c.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return u}),R.d(F,"LoadError",function(){return v});var j=R("./src/polyfills/number.ts"),T=R("./src/errors.ts");function S(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,r(a,t)}function M(a){var t=typeof Map=="function"?new Map:void 0;return M=function(h){if(h===null||!g(h))return h;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(h))return t.get(h);t.set(h,y)}function y(){return c(h,arguments,l(this).constructor)}return y.prototype=Object.create(h.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),r(y,h)},M(a)}function c(a,t,s){return E()?c=Reflect.construct:c=function(y,D,C){var I=[null];I.push.apply(I,D);var _=Function.bind.apply(y,I),f=new _;return C&&r(f,C.prototype),f},c.apply(null,arguments)}function E(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function g(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function r(a,t){return r=Object.setPrototypeOf||function(h,y){return h.__proto__=y,h},r(a,t)}function l(a){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},l(a)}var b=Math.pow(2,17),u=function(){function a(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var t=a.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(h,y){var D=this,C=h.url;if(!C)return Promise.reject(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,networkDetails:null},"Fragment does not have a "+(C?"part list":"url")));this.abort();var I=this.config,_=I.fLoader,f=I.loader;return new Promise(function(o,i){D.loader&&D.loader.destroy();var d=D.loader=h.loader=_?new _(I):new f(I),A=p(h),O={timeout:I.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:I.fragLoadingMaxRetryTimeout,highWaterMark:b};h.stats=d.stats,d.load(A,O,{onSuccess:function(k,N,B,G){D.resetLoader(h,d),o({frag:h,part:null,payload:k.data,networkDetails:G})},onError:function(k,N,B){D.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,response:k,networkDetails:B}))},onAbort:function(k,N,B){D.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,networkDetails:B}))},onTimeout:function(k,N,B){D.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,networkDetails:B}))},onProgress:function(k,N,B,G){y&&y({frag:h,part:null,payload:B,networkDetails:G})}})})},t.loadPart=function(h,y,D){var C=this;this.abort();var I=this.config,_=I.fLoader,f=I.loader;return new Promise(function(o,i){C.loader&&C.loader.destroy();var d=C.loader=h.loader=_?new _(I):new f(I),A=p(h,y),O={timeout:I.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:I.fragLoadingMaxRetryTimeout,highWaterMark:b};y.stats=d.stats,d.load(A,O,{onSuccess:function(k,N,B,G){C.resetLoader(h,d),C.updateStatsFromPart(h,y);var W={frag:h,part:y,payload:k.data,networkDetails:G};D(W),o(W)},onError:function(k,N,B){C.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,part:y,response:k,networkDetails:B}))},onAbort:function(k,N,B){h.stats.aborted=y.stats.aborted,C.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,part:y,networkDetails:B}))},onTimeout:function(k,N,B){C.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,part:y,networkDetails:B}))}})})},t.updateStatsFromPart=function(h,y){var D=h.stats,C=y.stats,I=C.total;if(D.loaded+=C.loaded,I){var _=Math.round(h.duration/y.duration),f=Math.min(Math.round(D.loaded/I),_),o=_-f,i=o*Math.round(D.loaded/f);D.total=D.loaded+i}else D.total=Math.max(D.loaded,D.total);var d=D.loading,A=C.loading;d.start?d.first+=A.first-A.start:(d.start=A.start,d.first=A.first),d.end=A.end},t.resetLoader=function(h,y){h.loader=null,this.loader===y&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),y.destroy()},a}();function p(a,t){t===void 0&&(t=null);var s=t||a,h={frag:a,part:t,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},y=s.byteRangeStartOffset,D=s.byteRangeEndOffset;return Object(j.isFiniteNumber)(y)&&Object(j.isFiniteNumber)(D)&&(h.rangeStart=y,h.rangeEnd=D),h}var v=function(a){S(t,a);function t(s){for(var h,y=arguments.length,D=new Array(y>1?y-1:0),C=1;C>8*(15-I)&255;return C},h.setDecryptDataFromLevelKey=function(D,C){var I=D;return(D==null?void 0:D.method)==="AES-128"&&D.uri&&!D.iv&&(I=c.LevelKey.fromURI(D.uri),I.method=D.method,I.iv=this.createInitializationVector(C),I.keyFormat="identity"),I},h.setElementaryStreamInfo=function(D,C,I,_,f,o){o===void 0&&(o=!1);var i=this.elementaryStreams,d=i[D];if(!d){i[D]={startPTS:C,endPTS:I,startDTS:_,endDTS:f,partial:o};return}d.startPTS=Math.min(d.startPTS,C),d.endPTS=Math.max(d.endPTS,I),d.startDTS=Math.min(d.startDTS,_),d.endDTS=Math.max(d.endDTS,f)},h.clearElementaryStreamInfo=function(){var D=this.elementaryStreams;D[u.AUDIO]=null,D[u.VIDEO]=null,D[u.AUDIOVIDEO]=null},b(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var D=this.sn;typeof D!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),D=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,D)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(j.isFiniteNumber)(this.programDateTime))return null;var D=Object(j.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+D*1e3}},{key:"encrypted",get:function(){var D;return!!((D=this.decryptdata)!==null&&D!==void 0&&D.keyFormat&&this.decryptdata.uri)}}]),s}(p),a=function(t){g(s,t);function s(h,y,D,C,I){var _;_=t.call(this,D)||this,_.fragOffset=0,_.duration=0,_.gap=!1,_.independent=!1,_.relurl=void 0,_.fragment=void 0,_.index=void 0,_.stats=new E.LoadStats,_.duration=h.decimalFloatingPoint("DURATION"),_.gap=h.bool("GAP"),_.independent=h.bool("INDEPENDENT"),_.relurl=h.enumeratedString("URI"),_.fragment=y,_.index=C;var f=h.enumeratedString("BYTERANGE");return f&&_.setByteRange(f,I),I&&(_.fragOffset=I.fragOffset+I.duration),_}return b(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var y=this.elementaryStreams;return!!(y.audio||y.video||y.audiovideo)}}]),s}(p)},"./src/loader/key-loader.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return M});var j=R("./src/events.ts"),T=R("./src/errors.ts"),S=R("./src/utils/logger.ts"),M=function(){function c(g){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=g,this._registerListeners()}var E=c.prototype;return E._registerListeners=function(){this.hls.on(j.Events.KEY_LOADING,this.onKeyLoading,this)},E._unregisterListeners=function(){this.hls.off(j.Events.KEY_LOADING,this.onKeyLoading)},E.destroy=function(){this._unregisterListeners();for(var r in this.loaders){var l=this.loaders[r];l&&l.destroy()}this.loaders={}},E.onKeyLoading=function(r,l){var b=l.frag,u=b.type,p=this.loaders[u];if(!b.decryptdata){S.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var v=b.decryptdata.uri;if(v!==this.decrypturl||this.decryptkey===null){var a=this.hls.config;if(p&&(S.logger.warn("abort previous key loader for type:"+u),p.abort()),!v){S.logger.warn("key uri is falsy");return}var t=a.loader,s=b.loader=this.loaders[u]=new t(a);this.decrypturl=v,this.decryptkey=null;var h={url:v,frag:b,responseType:"arraybuffer"},y={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(h,y,D)}else this.decryptkey&&(b.decryptdata.key=this.decryptkey,this.hls.trigger(j.Events.KEY_LOADED,{frag:b}))},E.loadsuccess=function(r,l,b){var u=b.frag;if(!u.decryptdata){S.logger.error("after key load, decryptdata unset");return}this.decryptkey=u.decryptdata.key=new Uint8Array(r.data),u.loader=null,delete this.loaders[u.type],this.hls.trigger(j.Events.KEY_LOADED,{frag:u})},E.loaderror=function(r,l){var b=l.frag,u=b.loader;u&&u.abort(),delete this.loaders[b.type],this.hls.trigger(j.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:b,response:r})},E.loadtimeout=function(r,l){var b=l.frag,u=b.loader;u&&u.abort(),delete this.loaders[b.type],this.hls.trigger(j.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:b})},c}()},"./src/loader/level-details.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"LevelDetails",function(){return c});var j=R("./src/polyfills/number.ts");function T(E,g){for(var r=0;rl.endSN||b>0||b===0&&u>0,this.updated||this.advanced?this.misses=Math.floor(l.misses*.6):this.misses=l.misses+1,this.availabilityDelay=l.availabilityDelay},S(E,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(j.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var l=this.driftEndTime-this.driftStartTime;if(l>0){var b=this.driftEnd-this.driftStart;return b*1e3/l}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var l;return(l=this.fragments)!==null&&l!==void 0&&l.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),E}()},"./src/loader/level-key.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"LevelKey",function(){return c});var j=R("./node_modules/url-toolkit/src/url-toolkit.js"),T=R.n(j);function S(E,g){for(var r=0;r2){var i=o.shift()+".";return i+=parseInt(o.shift()).toString(16),i+=("000"+parseInt(o.shift()).toString(16)).substr(-4),i}return f},I.resolve=function(f,o){return T.buildAbsoluteURL(o,f,{alwaysNormalize:!0})},I.parseMasterPlaylist=function(f,o){var i=[],d={},A=!1;b.lastIndex=0;for(var O;(O=b.exec(f))!=null;)if(O[1]){var m=new g.AttrList(O[1]),k={attrs:m,bitrate:m.decimalInteger("AVERAGE-BANDWIDTH")||m.decimalInteger("BANDWIDTH"),name:m.NAME,url:I.resolve(O[2],o)},N=m.decimalResolution("RESOLUTION");N&&(k.width=N.width,k.height=N.height),h((m.CODECS||"").split(/[ ,]+/).filter(function(G){return G}),k),k.videoCodec&&k.videoCodec.indexOf("avc1")!==-1&&(k.videoCodec=I.convertAVC1ToAVCOTI(k.videoCodec)),i.push(k)}else if(O[3]){var B=new g.AttrList(O[3]);B["DATA-ID"]&&(A=!0,d[B["DATA-ID"]]=B)}return{levels:i,sessionData:A?d:null}},I.parseMasterPlaylistMedia=function(f,o,i,d){d===void 0&&(d=[]);var A,O=[],m=0;for(u.lastIndex=0;(A=u.exec(f))!==null;){var k=new g.AttrList(A[1]);if(k.TYPE===i){var N={attrs:k,bitrate:0,id:m++,groupId:k["GROUP-ID"],instreamId:k["INSTREAM-ID"],name:k.NAME||k.LANGUAGE||"",type:i,default:k.bool("DEFAULT"),autoselect:k.bool("AUTOSELECT"),forced:k.bool("FORCED"),lang:k.LANGUAGE,url:k.URI?I.resolve(k.URI,o):""};if(d.length){var B=I.findGroup(d,N.groupId)||d[0];y(N,B,"audioCodec"),y(N,B,"textCodec")}O.push(N)}}return O},I.parseLevelPlaylist=function(f,o,i,d,A){var O=new c.LevelDetails(o),m=O.fragments,k=null,N=0,B=0,G=0,W=0,z=null,Y=new M.Fragment(d,o),V,q,ne,ve=-1,le=!1;for(p.lastIndex=0,O.m3u8=f;(V=p.exec(f))!==null;){le&&(le=!1,Y=new M.Fragment(d,o),Y.start=G,Y.sn=N,Y.cc=W,Y.level=i,k&&(Y.initSegment=k,Y.rawProgramDateTime=k.rawProgramDateTime));var be=V[1];if(be){Y.duration=parseFloat(be);var we=(" "+V[2]).slice(1);Y.title=we||null,Y.tagList.push(we?["INF",be,we]:["INF",be])}else if(V[3])Object(j.isFiniteNumber)(Y.duration)&&(Y.start=G,ne&&(Y.levelkey=ne),Y.sn=N,Y.level=i,Y.cc=W,Y.urlId=A,m.push(Y),Y.relurl=(" "+V[3]).slice(1),C(Y,z),z=Y,G+=Y.duration,N++,B=0,le=!0);else if(V[4]){var Re=(" "+V[4]).slice(1);z?Y.setByteRange(Re,z):Y.setByteRange(Re)}else if(V[5])Y.rawProgramDateTime=(" "+V[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),ve===-1&&(ve=m.length);else{if(V=V[0].match(v),!V){r.logger.warn("No matches on slow regex match for level playlist!");continue}for(q=1;q-1){r.logger.warn("Keyformat "+Pt+" is not supported from the manifest");continue}else if(Pt!=="identity")continue;rt&&(ne=E.LevelKey.fromURL(o,Oe),Oe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(rt)>=0&&(ne.method=rt,ne.keyFormat=Pt,dt&&(ne.keyID=dt),at&&(ne.keyFormatVersions=at),ne.iv=Ge));break}case"START":{var zt=new g.AttrList(fe),It=zt.decimalFloatingPoint("TIME-OFFSET");Object(j.isFiniteNumber)(It)&&(O.startTimeOffset=It);break}case"MAP":{var on=new g.AttrList(fe);Y.relurl=on.URI,on.BYTERANGE&&Y.setByteRange(on.BYTERANGE),Y.level=i,Y.sn="initSegment",ne&&(Y.levelkey=ne),Y.initSegment=null,k=Y,le=!0;break}case"SERVER-CONTROL":{var dn=new g.AttrList(fe);O.canBlockReload=dn.bool("CAN-BLOCK-RELOAD"),O.canSkipUntil=dn.optionalFloat("CAN-SKIP-UNTIL",0),O.canSkipDateRanges=O.canSkipUntil>0&&dn.bool("CAN-SKIP-DATERANGES"),O.partHoldBack=dn.optionalFloat("PART-HOLD-BACK",0),O.holdBack=dn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ie=new g.AttrList(fe);O.partTarget=Ie.decimalFloatingPoint("PART-TARGET");break}case"PART":{var De=O.partList;De||(De=O.partList=[]);var ot=B>0?De[De.length-1]:void 0,Et=B++,Je=new M.Part(new g.AttrList(fe),Y,o,Et,ot);De.push(Je),Y.duration+=Je.duration;break}case"PRELOAD-HINT":{var ft=new g.AttrList(fe);O.preloadHint=ft;break}case"RENDITION-REPORT":{var Me=new g.AttrList(fe);O.renditionReports=O.renditionReports||[],O.renditionReports.push(Me);break}default:r.logger.warn("line parsed but not handled: "+V);break}}}z&&!z.relurl?(m.pop(),G-=z.duration,O.partList&&(O.fragmentHint=z)):O.partList&&(C(Y,z),Y.cc=W,O.fragmentHint=Y);var xe=m.length,Te=m[0],oe=m[xe-1];if(G+=O.skippedSegments*O.targetduration,G>0&&xe&&oe){O.averagetargetduration=G/xe;var ue=oe.sn;O.endSN=ue!=="initSegment"?ue:0,Te&&(O.startCC=Te.cc,Te.initSegment||O.fragments.every(function(pe){return pe.relurl&&t(pe.relurl)})&&(r.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new M.Fragment(d,o),Y.relurl=oe.relurl,Y.level=i,Y.sn="initSegment",Te.initSegment=Y,O.needSidxRanges=!0))}else O.endSN=0,O.startCC=0;return O.fragmentHint&&(G+=O.fragmentHint.duration),O.totalduration=G,O.endCC=W,ve>0&&D(m,ve),O},I}();function h(I,_){["video","audio","text"].forEach(function(f){var o=I.filter(function(d){return Object(l.isCodecType)(d,f)});if(o.length){var i=o.filter(function(d){return d.lastIndexOf("avc1",0)===0||d.lastIndexOf("mp4a",0)===0});_[f+"Codec"]=i.length>0?i[0]:o[0],I=I.filter(function(d){return o.indexOf(d)===-1})}}),_.unknownCodecs=I}function y(I,_,f){var o=_[f];o&&(I[f]=o)}function D(I,_){for(var f=I[_],o=_;o--;){var i=I[o];if(!i)return;i.programDateTime=f.programDateTime-i.duration*1e3,f=i}}function C(I,_){I.rawProgramDateTime?I.programDateTime=Date.parse(I.rawProgramDateTime):_!=null&&_.programDateTime&&(I.programDateTime=_.endProgramDateTime),Object(j.isFiniteNumber)(I.programDateTime)||(I.programDateTime=null,I.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(X,F,R){"use strict";R.r(F);var j=R("./src/polyfills/number.ts"),T=R("./src/events.ts"),S=R("./src/errors.ts"),M=R("./src/utils/logger.ts"),c=R("./src/utils/mp4-tools.ts"),E=R("./src/loader/m3u8-parser.ts"),g=R("./src/types/loader.ts"),r=R("./src/utils/attr-list.ts");function l(p){var v=p.type;switch(v){case g.PlaylistContextType.AUDIO_TRACK:return g.PlaylistLevelType.AUDIO;case g.PlaylistContextType.SUBTITLE_TRACK:return g.PlaylistLevelType.SUBTITLE;default:return g.PlaylistLevelType.MAIN}}function b(p,v){var a=p.url;return(a===void 0||a.indexOf("data:")===0)&&(a=v.url),a}var u=function(){function p(a){this.hls=void 0,this.loaders=Object.create(null),this.hls=a,this.registerListeners()}var v=p.prototype;return v.registerListeners=function(){var t=this.hls;t.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},v.unregisterListeners=function(){var t=this.hls;t.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.Events.LEVEL_LOADING,this.onLevelLoading,this),t.off(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},v.createInternalLoader=function(t){var s=this.hls.config,h=s.pLoader,y=s.loader,D=h||y,C=new D(s);return t.loader=C,this.loaders[t.type]=C,C},v.getInternalLoader=function(t){return this.loaders[t.type]},v.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},v.destroyInternalLoaders=function(){for(var t in this.loaders){var s=this.loaders[t];s&&s.destroy(),this.resetInternalLoader(t)}},v.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},v.onManifestLoading=function(t,s){var h=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:g.PlaylistContextType.MANIFEST,url:h,deliveryDirectives:null})},v.onLevelLoading=function(t,s){var h=s.id,y=s.level,D=s.url,C=s.deliveryDirectives;this.load({id:h,groupId:null,level:y,responseType:"text",type:g.PlaylistContextType.LEVEL,url:D,deliveryDirectives:C})},v.onAudioTrackLoading=function(t,s){var h=s.id,y=s.groupId,D=s.url,C=s.deliveryDirectives;this.load({id:h,groupId:y,level:null,responseType:"text",type:g.PlaylistContextType.AUDIO_TRACK,url:D,deliveryDirectives:C})},v.onSubtitleTrackLoading=function(t,s){var h=s.id,y=s.groupId,D=s.url,C=s.deliveryDirectives;this.load({id:h,groupId:y,level:null,responseType:"text",type:g.PlaylistContextType.SUBTITLE_TRACK,url:D,deliveryDirectives:C})},v.load=function(t){var s,h=this.hls.config,y=this.getInternalLoader(t);if(y){var D=y.context;if(D&&D.url===t.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+t.type),y.abort()}var C,I,_,f;switch(t.type){case g.PlaylistContextType.MANIFEST:C=h.manifestLoadingMaxRetry,I=h.manifestLoadingTimeOut,_=h.manifestLoadingRetryDelay,f=h.manifestLoadingMaxRetryTimeout;break;case g.PlaylistContextType.LEVEL:case g.PlaylistContextType.AUDIO_TRACK:case g.PlaylistContextType.SUBTITLE_TRACK:C=0,I=h.levelLoadingTimeOut;break;default:C=h.levelLoadingMaxRetry,I=h.levelLoadingTimeOut,_=h.levelLoadingRetryDelay,f=h.levelLoadingMaxRetryTimeout;break}if(y=this.createInternalLoader(t),(s=t.deliveryDirectives)!==null&&s!==void 0&&s.part){var o;if(t.type===g.PlaylistContextType.LEVEL&&t.level!==null?o=this.hls.levels[t.level].details:t.type===g.PlaylistContextType.AUDIO_TRACK&&t.id!==null?o=this.hls.audioTracks[t.id].details:t.type===g.PlaylistContextType.SUBTITLE_TRACK&&t.id!==null&&(o=this.hls.subtitleTracks[t.id].details),o){var i=o.partTarget,d=o.targetduration;i&&d&&(I=Math.min(Math.max(i*3,d*.8)*1e3,I))}}var A={timeout:I,maxRetry:C,retryDelay:_,maxRetryDelay:f,highWaterMark:0},O={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};y.load(t,A,O)},v.loadsuccess=function(t,s,h,y){if(y===void 0&&(y=null),h.isSidxRequest){this.handleSidxRequest(t,h),this.handlePlaylistLoaded(t,s,h,y);return}this.resetInternalLoader(h.type);var D=t.data;if(D.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(t,h,"no EXTM3U delimiter",y);return}s.parsing.start=performance.now(),D.indexOf("#EXTINF:")>0||D.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(t,s,h,y):this.handleMasterPlaylist(t,s,h,y)},v.loaderror=function(t,s,h){h===void 0&&(h=null),this.handleNetworkError(s,h,!1,t)},v.loadtimeout=function(t,s,h){h===void 0&&(h=null),this.handleNetworkError(s,h,!0)},v.handleMasterPlaylist=function(t,s,h,y){var D=this.hls,C=t.data,I=b(t,h),_=E.default.parseMasterPlaylist(C,I),f=_.levels,o=_.sessionData;if(!f.length){this.handleManifestParsingError(t,h,"no level found in manifest",y);return}var i=f.map(function(N){return{id:N.attrs.AUDIO,audioCodec:N.audioCodec}}),d=f.map(function(N){return{id:N.attrs.SUBTITLES,textCodec:N.textCodec}}),A=E.default.parseMasterPlaylistMedia(C,I,"AUDIO",i),O=E.default.parseMasterPlaylistMedia(C,I,"SUBTITLES",d),m=E.default.parseMasterPlaylistMedia(C,I,"CLOSED-CAPTIONS");if(A.length){var k=A.some(function(N){return!N.url});!k&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),A.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new r.AttrList({}),bitrate:0,url:""}))}D.trigger(T.Events.MANIFEST_LOADED,{levels:f,audioTracks:A,subtitles:O,captions:m,url:I,stats:s,networkDetails:y,sessionData:o})},v.handleTrackOrLevelPlaylist=function(t,s,h,y){var D=this.hls,C=h.id,I=h.level,_=h.type,f=b(t,h),o=Object(j.isFiniteNumber)(C)?C:0,i=Object(j.isFiniteNumber)(I)?I:o,d=l(h),A=E.default.parseLevelPlaylist(t.data,f,i,d,o);if(!A.fragments.length){D.trigger(T.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:f,reason:"no fragments found in level",level:typeof h.level=="number"?h.level:void 0});return}if(_===g.PlaylistContextType.MANIFEST){var O={attrs:new r.AttrList({}),bitrate:0,details:A,name:"",url:f};D.trigger(T.Events.MANIFEST_LOADED,{levels:[O],audioTracks:[],url:f,stats:s,networkDetails:y,sessionData:null})}if(s.parsing.end=performance.now(),A.needSidxRanges){var m,k=(m=A.fragments[0].initSegment)===null||m===void 0?void 0:m.url;this.load({url:k,isSidxRequest:!0,type:_,level:I,levelDetails:A,id:C,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}h.levelDetails=A,this.handlePlaylistLoaded(t,s,h,y)},v.handleSidxRequest=function(t,s){var h=Object(c.parseSegmentIndex)(new Uint8Array(t.data));if(!h)return;var y=h.references,D=s.levelDetails;y.forEach(function(C,I){var _=C.info,f=D.fragments[I];f.byteRange.length===0&&f.setByteRange(String(1+_.end-_.start)+"@"+String(_.start)),f.initSegment&&f.initSegment.setByteRange(String(h.moovEndOffset)+"@0")})},v.handleManifestParsingError=function(t,s,h,y){this.hls.trigger(T.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===g.PlaylistContextType.MANIFEST,url:t.url,reason:h,response:t,context:s,networkDetails:y})},v.handleNetworkError=function(t,s,h,y){h===void 0&&(h=!1),M.logger.warn("[playlist-loader]: A network "+(h?"timeout":"error")+" occurred while loading "+t.type+" level: "+t.level+" id: "+t.id+' group-id: "'+t.groupId+'"');var D=S.ErrorDetails.UNKNOWN,C=!1,I=this.getInternalLoader(t);switch(t.type){case g.PlaylistContextType.MANIFEST:D=h?S.ErrorDetails.MANIFEST_LOAD_TIMEOUT:S.ErrorDetails.MANIFEST_LOAD_ERROR,C=!0;break;case g.PlaylistContextType.LEVEL:D=h?S.ErrorDetails.LEVEL_LOAD_TIMEOUT:S.ErrorDetails.LEVEL_LOAD_ERROR,C=!1;break;case g.PlaylistContextType.AUDIO_TRACK:D=h?S.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:S.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,C=!1;break;case g.PlaylistContextType.SUBTITLE_TRACK:D=h?S.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:S.ErrorDetails.SUBTITLE_LOAD_ERROR,C=!1;break}I&&this.resetInternalLoader(t.type);var _={type:S.ErrorTypes.NETWORK_ERROR,details:D,fatal:C,url:t.url,loader:I,context:t,networkDetails:s};y&&(_.response=y),this.hls.trigger(T.Events.ERROR,_)},v.handlePlaylistLoaded=function(t,s,h,y){var D=h.type,C=h.level,I=h.id,_=h.groupId,f=h.loader,o=h.levelDetails,i=h.deliveryDirectives;if(!(o!=null&&o.targetduration)){this.handleManifestParsingError(t,h,"invalid target duration",y);return}if(!f)return;o.live&&(f.getCacheAge&&(o.ageHeader=f.getCacheAge()||0),(!f.getCacheAge||isNaN(o.ageHeader))&&(o.ageHeader=0));switch(D){case g.PlaylistContextType.MANIFEST:case g.PlaylistContextType.LEVEL:this.hls.trigger(T.Events.LEVEL_LOADED,{details:o,level:C||0,id:I||0,stats:s,networkDetails:y,deliveryDirectives:i});break;case g.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(T.Events.AUDIO_TRACK_LOADED,{details:o,id:I||0,groupId:_||"",stats:s,networkDetails:y,deliveryDirectives:i});break;case g.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(T.Events.SUBTITLE_TRACK_LOADED,{details:o,id:I||0,groupId:_||"",stats:s,networkDetails:y,deliveryDirectives:i});break}},p}();F.default=u},"./src/polyfills/number.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"isFiniteNumber",function(){return j}),R.d(F,"MAX_SAFE_INTEGER",function(){return T});var j=Number.isFinite||function(S){return typeof S=="number"&&isFinite(S)},T=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(X,F,R){"use strict";R.r(F);var j=function(){function T(){}return T.getSilentFrame=function(M,c){switch(M){case"mp4a.40.2":if(c===1)return new Uint8Array([0,200,0,128,35,128]);if(c===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(c===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(c===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(c===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(c===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(c===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(c===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(c===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},T}();F.default=j},"./src/remux/mp4-generator.ts":function(X,F,R){"use strict";R.r(F);var j=Math.pow(2,32)-1,T=function(){function S(){}return S.init=function(){S.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var c;for(c in S.types)S.types.hasOwnProperty(c)&&(S.types[c]=[c.charCodeAt(0),c.charCodeAt(1),c.charCodeAt(2),c.charCodeAt(3)]);var E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),g=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);S.HDLR_TYPES={video:E,audio:g};var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),l=new Uint8Array([0,0,0,0,0,0,0,0]);S.STTS=S.STSC=S.STCO=l,S.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),S.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),S.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),S.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var b=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),p=new Uint8Array([0,0,0,1]);S.FTYP=S.box(S.types.ftyp,b,p,b,u),S.DINF=S.box(S.types.dinf,S.box(S.types.dref,r))},S.box=function(c){for(var E=8,g=arguments.length,r=new Array(g>1?g-1:0),l=1;l>24&255,p[1]=E>>16&255,p[2]=E>>8&255,p[3]=E&255,p.set(c,4),b=0,E=8;b>24&255,c>>16&255,c>>8&255,c&255,g>>24,g>>16&255,g>>8&255,g&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))},S.mdia=function(c){return S.box(S.types.mdia,S.mdhd(c.timescale,c.duration),S.hdlr(c.type),S.minf(c))},S.mfhd=function(c){return S.box(S.types.mfhd,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255]))},S.minf=function(c){return c.type==="audio"?S.box(S.types.minf,S.box(S.types.smhd,S.SMHD),S.DINF,S.stbl(c)):S.box(S.types.minf,S.box(S.types.vmhd,S.VMHD),S.DINF,S.stbl(c))},S.moof=function(c,E,g){return S.box(S.types.moof,S.mfhd(c),S.traf(g,E))},S.moov=function(c){for(var E=c.length,g=[];E--;)g[E]=S.trak(c[E]);return S.box.apply(null,[S.types.moov,S.mvhd(c[0].timescale,c[0].duration)].concat(g).concat(S.mvex(c)))},S.mvex=function(c){for(var E=c.length,g=[];E--;)g[E]=S.trex(c[E]);return S.box.apply(null,[S.types.mvex].concat(g))},S.mvhd=function(c,E){E*=c;var g=Math.floor(E/(j+1)),r=Math.floor(E%(j+1)),l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,c>>24&255,c>>16&255,c>>8&255,c&255,g>>24,g>>16&255,g>>8&255,g&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return S.box(S.types.mvhd,l)},S.sdtp=function(c){var E=c.samples||[],g=new Uint8Array(4+E.length),r,l;for(r=0;r>>8&255),E.push(b&255),E=E.concat(Array.prototype.slice.call(l));for(r=0;r>>8&255),g.push(b&255),g=g.concat(Array.prototype.slice.call(l));var u=S.box(S.types.avcC,new Uint8Array([1,E[3],E[4],E[5],252|3,224|c.sps.length].concat(E).concat([c.pps.length]).concat(g))),p=c.width,v=c.height,a=c.pixelRatio[0],t=c.pixelRatio[1];return S.box(S.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,p>>8&255,p&255,v>>8&255,v&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,S.box(S.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),S.box(S.types.pasp,new Uint8Array([a>>24,a>>16&255,a>>8&255,a&255,t>>24,t>>16&255,t>>8&255,t&255])))},S.esds=function(c){var E=c.config.length;return new Uint8Array([0,0,0,0,3,23+E,0,1,0,4,15+E,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([E]).concat(c.config).concat([6,1,2]))},S.mp4a=function(c){var E=c.samplerate;return S.box(S.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,c.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]),S.box(S.types.esds,S.esds(c)))},S.mp3=function(c){var E=c.samplerate;return S.box(S.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,c.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]))},S.stsd=function(c){return c.type==="audio"?!c.isAAC&&c.codec==="mp3"?S.box(S.types.stsd,S.STSD,S.mp3(c)):S.box(S.types.stsd,S.STSD,S.mp4a(c)):S.box(S.types.stsd,S.STSD,S.avc1(c))},S.tkhd=function(c){var E=c.id,g=c.duration*c.timescale,r=c.width,l=c.height,b=Math.floor(g/(j+1)),u=Math.floor(g%(j+1));return S.box(S.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,E>>24&255,E>>16&255,E>>8&255,E&255,0,0,0,0,b>>24,b>>16&255,b>>8&255,b&255,u>>24,u>>16&255,u>>8&255,u&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,l>>8&255,l&255,0,0]))},S.traf=function(c,E){var g=S.sdtp(c),r=c.id,l=Math.floor(E/(j+1)),b=Math.floor(E%(j+1));return S.box(S.types.traf,S.box(S.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),S.box(S.types.tfdt,new Uint8Array([1,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,b>>24,b>>16&255,b>>8&255,b&255])),S.trun(c,g.length+16+20+8+16+8+8),g)},S.trak=function(c){return c.duration=c.duration||4294967295,S.box(S.types.trak,S.tkhd(c),S.mdia(c))},S.trex=function(c){var E=c.id;return S.box(S.types.trex,new Uint8Array([0,0,0,0,E>>24,E>>16&255,E>>8&255,E&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},S.trun=function(c,E){var g=c.samples||[],r=g.length,l=12+16*r,b=new Uint8Array(l),u,p,v,a,t,s;for(E+=8+l,b.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255],0),u=0;u>>24&255,v>>>16&255,v>>>8&255,v&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,t.isLeading<<2|t.dependsOn,t.isDependedOn<<6|t.hasRedundancy<<4|t.paddingValue<<1|t.isNonSync,t.degradPrio&240<<8,t.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*u);return S.box(S.types.trun,b)},S.initSegment=function(c){S.types||S.init();var E=S.moov(c),g=new Uint8Array(S.FTYP.byteLength+E.byteLength);return g.set(S.FTYP),g.set(E,S.FTYP.byteLength),g},S}();T.types=void 0,T.HDLR_TYPES=void 0,T.STTS=void 0,T.STSC=void 0,T.STCO=void 0,T.STSZ=void 0,T.VMHD=void 0,T.SMHD=void 0,T.STSD=void 0,T.FTYP=void 0,T.DINF=void 0,F.default=T},"./src/remux/mp4-remuxer.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return s}),R.d(F,"normalizePts",function(){return h});var j=R("./src/polyfills/number.ts"),T=R("./src/remux/aac-helper.ts"),S=R("./src/remux/mp4-generator.ts"),M=R("./src/events.ts"),c=R("./src/errors.ts"),E=R("./src/utils/logger.ts"),g=R("./src/types/loader.ts"),r=R("./src/utils/timescale-conversion.ts");function l(){return l=Object.assign||function(I){for(var _=1;_0?A:O.pts},o[0].pts);return i&&E.logger.debug("PTS rollover detected"),d},_.remux=function(o,i,d,A,O,m,k,N){var B,G,W,z,Y,V,q=O,ne=O,ve=o.pid>-1,le=i.pid>-1,be=i.samples.length,we=o.samples.length>0,Re=be>1,ge=(!ve||we)&&(!le||Re)||this.ISGenerated||k;if(ge){this.ISGenerated||(W=this.generateIS(o,i,O));var fe=this.isVideoContiguous,Ze=-1;if(Re&&(Ze=y(i.samples),!fe&&this.config.forceKeyFrameOnDiscontinuity))if(V=!0,Ze>0){E.logger.warn("[mp4-remuxer]: Dropped "+Ze+" out of "+be+" video samples due to a missing keyframe");var Ot=this.getVideoStartPts(i.samples);i.samples=i.samples.slice(Ze),i.dropped+=Ze,ne+=(i.samples[0].pts-Ot)/(i.timescale||9e4)}else Ze===-1&&(E.logger.warn("[mp4-remuxer]: No keyframe found out of "+be+" video samples"),V=!1);if(this.ISGenerated){if(we&&Re){var Ee=this.getVideoStartPts(i.samples),ke=h(o.samples[0].pts,Ee)-Ee,de=ke/i.inputTimeScale;q+=Math.max(0,de),ne+=Math.max(0,-de)}if(we){if(o.samplerate||(E.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),W=this.generateIS(o,i,O)),G=this.remuxAudio(o,q,this.isAudioContiguous,m,le||Re||N===g.PlaylistLevelType.AUDIO?ne:void 0),Re){var me=G?G.endPTS-G.startPTS:0;i.inputTimeScale||(E.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),W=this.generateIS(o,i,O)),B=this.remuxVideo(i,ne,fe,me)}}else Re&&(B=this.remuxVideo(i,ne,fe,0));B&&(B.firstKeyFrame=Ze,B.independent=Ze!==-1)}}return this.ISGenerated&&(d.samples.length&&(Y=this.remuxID3(d,O)),A.samples.length&&(z=this.remuxText(A,O))),{audio:G,video:B,initSegment:W,independent:V,text:z,id3:Y}},_.generateIS=function(o,i,d){var A=o.samples,O=i.samples,m=this.typeSupported,k={},N=!Object(j.isFiniteNumber)(this._initPTS),B="audio/mp4",G,W,z;if(N&&(G=W=Infinity),o.config&&A.length&&(o.timescale=o.samplerate,o.isAAC||(m.mpeg?(B="audio/mpeg",o.codec=""):m.mp3&&(o.codec="mp3")),k.audio={id:"audio",container:B,codec:o.codec,initSegment:!o.isAAC&&m.mpeg?new Uint8Array(0):S.default.initSegment([o]),metadata:{channelCount:o.channelCount}},N&&(z=o.inputTimeScale,G=W=A[0].pts-Math.round(z*d))),i.sps&&i.pps&&O.length&&(i.timescale=i.inputTimeScale,k.video={id:"main",container:"video/mp4",codec:i.codec,initSegment:S.default.initSegment([i]),metadata:{width:i.width,height:i.height}},N)){z=i.inputTimeScale;var Y=this.getVideoStartPts(O),V=Math.round(z*d);W=Math.min(W,h(O[0].dts,Y)-V),G=Math.min(G,Y-V)}if(Object.keys(k).length)return this.ISGenerated=!0,N&&(this._initPTS=G,this._initDTS=W),{tracks:k,initPTS:G,timescale:z}},_.remuxVideo=function(o,i,d,A){var O=o.inputTimeScale,m=o.samples,k=[],N=m.length,B=this._initPTS,G=this.nextAvcDts,W=8,z,Y,V,q=Number.POSITIVE_INFINITY,ne=Number.NEGATIVE_INFINITY,ve=0,le=!1;if(!d||G===null){var be=i*O,we=m[0].pts-h(m[0].dts,m[0].pts);G=be-we}for(var Re=0;Rege.pts){var fe=9e4*.2;ve=Math.max(Math.min(ve,ge.pts-ge.dts),-1*fe)}ge.dts0?Re-1:Re].dts&&(le=!0)}le&&m.sort(function(rn,St){var Tt=rn.dts-St.dts,ct=rn.pts-St.pts;return Tt||ct}),Y=m[0].dts,V=m[m.length-1].dts;var Ze=Math.round((V-Y)/(N-1));if(ve<0){if(veZe,Le=de<-1;if(me||Le){me?E.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(de,!0)+" ms ("+de+"dts) hole between fragments detected, filling it"):E.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(-de,!0)+" ms ("+de+"dts) overlapping between fragments detected"),Y=G;var rt=m[0].pts-de;m[0].dts=Y,m[0].pts=rt,E.logger.log("Video: First PTS/DTS adjusted: "+Object(r.toMsFromMpegTsClock)(rt,!0)+"/"+Object(r.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(r.toMsFromMpegTsClock)(de,!0)+" ms")}}t&&(Y=Math.max(0,Y));for(var Oe=0,Ge=0,at=0;at0?De-1:De].dts;if(ue.stretchShortVideoTrack&&this.nextAudioPts!==null){var _e=Math.floor(ue.maxBufferHole*O),Ye=(A?q+A*O:this.nextAudioPts)-ot.pts;Ye>_e?(z=Ye-pe,z<0&&(z=pe),E.logger.log("[mp4-remuxer]: It is approximately "+Ye/90+" ms to the next segment; using duration "+z/90+" ms for the last video frame.")):z=pe}else z=pe}var Ue=Math.round(ot.pts-ot.dts);k.push(new D(ot.key,z,Je,Ue))}if(k.length&&v&&v<70){var Mt=k[0].flags;Mt.dependsOn=2,Mt.isNonSync=0}console.assert(z!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=G=V+z,this.isVideoContiguous=!0;var tn=S.default.moof(o.sequenceNumber++,Y,l({},o,{samples:k})),sn="video",nn={data1:tn,data2:dn,startPTS:q/O,endPTS:(ne+z)/O,startDTS:Y/O,endDTS:G/O,type:sn,hasAudio:!1,hasVideo:!0,nb:k.length,dropped:o.dropped};return o.samples=[],o.dropped=0,console.assert(dn.length,"MDAT length must not be zero"),nn},_.remuxAudio=function(o,i,d,A,O){var m=o.inputTimeScale,k=o.samplerate?o.samplerate:m,N=m/k,B=o.isAAC?u:p,G=B*N,W=this._initPTS,z=!o.isAAC&&this.typeSupported.mpeg,Y=[],V=o.samples,q=z?0:8,ne=this.nextAudioPts||-1,ve=i*m;if(this.isAudioContiguous=d=d||V.length&&ne>0&&(A&&Math.abs(ve-ne)<9e3||Math.abs(h(V[0].pts-W,ve)-ne)<20*G),V.forEach(function(Te){Te.pts=h(Te.pts-W,ve)}),!d||ne<0){if(V=V.filter(function(Te){return Te.pts>=0}),!V.length)return;O===0?ne=0:A?ne=Math.max(0,ve):ne=V[0].pts}if(o.isAAC)for(var le=O!==void 0,be=this.config.maxAudioFramesDrift,we=0,Re=ne;we=be*G&&Ot0){Ge+=q;try{Oe=new Uint8Array(Ge)}catch(Te){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:c.ErrorTypes.MUX_ERROR,details:c.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ge,reason:"fail allocating audio mdat "+Ge});return}if(!z){var dn=new DataView(Oe.buffer);dn.setUint32(0,Ge),Oe.set(S.default.types.mdat,4)}}else return;Oe.set(zt,q);var Ie=zt.byteLength;q+=Ie,Y.push(new D(!0,B,Ie,0)),rt=It}var De=Y.length;if(!De)return;var ot=Y[Y.length-1];this.nextAudioPts=ne=rt+N*ot.duration;var Et=z?new Uint8Array(0):S.default.moof(o.sequenceNumber++,Le/N,l({},o,{samples:Y}));o.samples=[];var Je=Le/m,ft=ne/m,Me="audio",xe={data1:Et,data2:Oe,startPTS:Je,endPTS:ft,startDTS:Je,endDTS:ft,type:Me,hasAudio:!0,hasVideo:!1,nb:De};return this.isAudioContiguous=!0,console.assert(Oe.length,"MDAT length must not be zero"),xe},_.remuxEmptyAudio=function(o,i,d,A){var O=o.inputTimeScale,m=o.samplerate?o.samplerate:O,k=O/m,N=this.nextAudioPts,B=(N!==null?N:A.startDTS*O)+this._initDTS,G=A.endDTS*O+this._initDTS,W=k*u,z=Math.ceil((G-B)/W),Y=T.default.getSilentFrame(o.manifestCodec||o.codec,o.channelCount);if(E.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){E.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var V=[],q=0;q4294967296;)I+=f;return I}function y(I){for(var _=0;_0?this.lastEndDTS=o:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var i=!!I.audio,d=!!I.video,A="";i&&(A+="audio"),d&&(A+="video");var O={data1:D,startPTS:f,startDTS:f,endPTS:o,endDTS:o,type:A,hasAudio:i,hasVideo:d,nb:1,dropped:0};return y.audio=O.type==="audio"?O:void 0,y.video=O.type!=="audio"?O:void 0,y.text=a,y.id3=v,y.initSegment=C,y},r}(),E=function(l,b,u){return Object(T.getStartDTS)(l,b)-u};function g(r,l){var b=r==null?void 0:r.codec;return b&&b.length>4?b:b==="hvc1"?"hvc1.1.c.L120.90":b==="av01"?"av01.0.04M.08":b==="avc1"||l===S.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}F.default=c},"./src/task-loop.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return j});var j=function(){function T(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var S=T.prototype;return S.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},S.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},S.onHandlerDestroyed=function(){},S.hasInterval=function(){return!!this._tickInterval},S.hasNextTick=function(){return!!this._tickTimer},S.setInterval=function(c){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,c),!0)},S.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},S.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},S.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},S.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},S.doTick=function(){},T}()},"./src/types/cmcd.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"CMCDVersion",function(){return j}),R.d(F,"CMCDObjectType",function(){return T}),R.d(F,"CMCDStreamingFormat",function(){return S}),R.d(F,"CMCDStreamType",function(){return M});var j=1,T;(function(c){c.MANIFEST="m",c.AUDIO="a",c.VIDEO="v",c.MUXED="av",c.INIT="i",c.CAPTION="c",c.TIMED_TEXT="tt",c.KEY="k",c.OTHER="o"})(T||(T={}));var S;(function(c){c.DASH="d",c.HLS="h",c.SMOOTH="s",c.OTHER="o"})(S||(S={}));var M;(function(c){c.VOD="v",c.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"HlsSkip",function(){return S}),R.d(F,"getSkipValue",function(){return M}),R.d(F,"HlsUrlParameters",function(){return c}),R.d(F,"Level",function(){return E});function j(g,r){for(var l=0;lNumber.MAX_SAFE_INTEGER?Infinity:r},c.hexadecimalInteger=function(g){if(this[g]){var r=(this[g]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var l=new Uint8Array(r.length/2),b=0;bNumber.MAX_SAFE_INTEGER?Infinity:r},c.decimalFloatingPoint=function(g){return parseFloat(this[g])},c.optionalFloat=function(g,r){var l=this[g];return l?parseFloat(l):r},c.enumeratedString=function(g){return this[g]},c.bool=function(g){return this[g]==="YES"},c.decimalResolution=function(g){var r=j.exec(this[g]);return r===null?void 0:{width:parseInt(r[1],10),height:parseInt(r[2],10)}},M.parseAttrList=function(g){var r,l={},b='"';for(T.lastIndex=0;(r=T.exec(g))!==null;){var u=r[2];u.indexOf(b)===0&&u.lastIndexOf(b)===u.length-1&&(u=u.slice(1,-1)),l[r[1]]=u}return l},M}()},"./src/utils/binary-search.ts":function(X,F,R){"use strict";R.r(F);var j={search:function(S,M){for(var c=0,E=S.length-1,g=null,r=null;c<=E;){g=(c+E)/2|0,r=S[g];var l=M(r);if(l>0)c=g+1;else if(l<0)E=g-1;else return r}return null}};F.default=j},"./src/utils/buffer-helper.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"BufferHelper",function(){return S});var j=R("./src/utils/logger.ts"),T={length:0,start:function(){return 0},end:function(){return 0}},S=function(){function M(){}return M.isBuffered=function(E,g){try{if(E){for(var r=M.getBuffered(E),l=0;l=r.start(l)&&g<=r.end(l))return!0}}catch(b){}return!1},M.bufferInfo=function(E,g,r){try{if(E){var l=M.getBuffered(E),b=[],u;for(u=0;up&&(l[u-1].end=E[b].end):l.push(E[b])}else l.push(E[b])}else l=E;for(var v=0,a,t=g,s=g,h=0;h=y&&g=d&&j.logger.log(this.time+" ["+d+"] "+A)},f}(),v=function(o){for(var i=[],d=0;dc&&(this.logger.log(u.DEBUG,"Too large cursor position "+this.pos),this.pos=c)},o.moveCursor=function(d){var A=this.pos+d;if(d>1)for(var O=this.pos+1;O=144&&this.backSpace();var A=S(d);if(this.pos>=c){this.logger.log(u.ERROR,"Cannot insert "+d.toString(16)+" ("+A+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(A,this.currPenState),this.moveCursor(1)},o.clearFromPos=function(d){var A;for(A=d;A0&&(d?O="["+A.join(" | ")+"]":O=A.join(` + timeOffset: `+O);var q=new M.TransmuxConfig(h,y,s,I,o);this.configureTransmuxer(q)}if(this.frag=D,this.part=C,A)A.postMessage({cmd:"demux",data:t,decryptdata:m,chunkMeta:f,state:V},t instanceof ArrayBuffer?[t]:[]);else if(d){var ne=d.push(t,m,f,V);Object(M.isPromise)(ne)?ne.then(function(ve){i.handleTransmuxComplete(ve)}):this.handleTransmuxComplete(ne)}},v.flush=function(t){var s=this;t.transmuxing.start=self.performance.now();var h=this.transmuxer,y=this.worker;if(y)y.postMessage({cmd:"flush",chunkMeta:t});else if(h){var D=h.flush(t);Object(M.isPromise)(D)?D.then(function(C){s.handleFlushResult(C,t)}):this.handleFlushResult(D,t)}},v.handleFlushResult=function(t,s){var h=this;t.forEach(function(y){h.handleTransmuxComplete(y)}),this.onFlush(s)},v.onWorkerMessage=function(t){var s=t.data,h=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,h.trigger(s.event,s.data);break}}},v.configureTransmuxer=function(t){var s=this.worker,h=this.transmuxer;s?s.postMessage({cmd:"configure",config:t}):h&&h.configure(t)},v.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},p}()},"./src/demux/transmuxer-worker.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return E});var j=R("./src/demux/transmuxer.ts"),T=R("./src/events.ts"),S=R("./src/utils/logger.ts"),M=R("./node_modules/eventemitter3/index.js"),c=R.n(M);function E(u){var p=new M.EventEmitter,v=function(t,s){u.postMessage({event:t,data:s})};p.on(T.Events.FRAG_DECRYPTED,v),p.on(T.Events.ERROR,v),u.addEventListener("message",function(a){var t=a.data;switch(t.cmd){case"init":{var s=JSON.parse(t.config);u.transmuxer=new j.default(p,t.typeSupported,s,t.vendor,t.id),Object(S.enableLogs)(s.debug),v("init",null);break}case"configure":{u.transmuxer.configure(t.config);break}case"demux":{var h=u.transmuxer.push(t.data,t.decryptdata,t.chunkMeta,t.state);Object(j.isPromise)(h)?h.then(function(C){g(u,C)}):g(u,h);break}case"flush":{var y=t.chunkMeta,D=u.transmuxer.flush(y);Object(j.isPromise)(D)?D.then(function(C){l(u,C,y)}):l(u,D,y);break}default:break}})}function g(u,p){if(b(p.remuxResult))return;var v=[],a=p.remuxResult,t=a.audio,s=a.video;t&&r(v,t),s&&r(v,s),u.postMessage({event:"transmuxComplete",data:p},v)}function r(u,p){p.data1&&u.push(p.data1.buffer),p.data2&&u.push(p.data2.buffer)}function l(u,p,v){p.forEach(function(a){g(u,a)}),u.postMessage({event:"flush",data:v})}function b(u){return!u.audio&&!u.video&&!u.text&&!u.id3&&!u.initSegment}},"./src/demux/transmuxer.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return s}),R.d(F,"isPromise",function(){return D}),R.d(F,"TransmuxConfig",function(){return C}),R.d(F,"TransmuxState",function(){return I});var j=R("./src/events.ts"),T=R("./src/errors.ts"),S=R("./src/crypt/decrypter.ts"),M=R("./src/demux/aacdemuxer.ts"),c=R("./src/demux/mp4demuxer.ts"),E=R("./src/demux/tsdemuxer.ts"),g=R("./src/demux/mp3demuxer.ts"),r=R("./src/remux/mp4-remuxer.ts"),l=R("./src/remux/passthrough-remuxer.ts"),b=R("./src/demux/chunk-cache.ts"),u=R("./src/utils/mp4-tools.ts"),p=R("./src/utils/logger.ts"),v;try{v=self.performance.now.bind(self.performance)}catch(_){p.logger.debug("Unable to use Performance API on this environment"),v=self.Date.now}var a=[{demux:E.default,remux:r.default},{demux:c.default,remux:l.default},{demux:M.default,remux:r.default},{demux:g.default,remux:r.default}],t=1024;a.forEach(function(_){var f=_.demux;t=Math.max(t,f.minProbeByteLength)});var s=function(){function _(o,i,d,A,O){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new b.default,this.observer=o,this.typeSupported=i,this.config=d,this.vendor=A,this.id=O}var f=_.prototype;return f.configure=function(i){this.transmuxConfig=i,this.decrypter&&this.decrypter.reset()},f.push=function(i,d,A,O){var m=this,k=A.transmuxing;k.executeStart=v();var N=new Uint8Array(i),B=this.cache,G=this.config,W=this.currentTransmuxState,z=this.transmuxConfig;O&&(this.currentTransmuxState=O);var Y=h(N,d);if(Y&&Y.method==="AES-128"){var V=this.getDecrypter();if(G.enableSoftwareAES){var q=V.softwareDecrypt(N,Y.key.buffer,Y.iv.buffer);if(!q)return k.executeEnd=v(),y(A);N=new Uint8Array(q)}else return this.decryptionPromise=V.webCryptoDecrypt(N,Y.key.buffer,Y.iv.buffer).then(function(Le){var rt=m.push(Le,null,A);return m.decryptionPromise=null,rt}),this.decryptionPromise}var ne=O||W,ve=ne.contiguous,le=ne.discontinuity,be=ne.trackSwitch,we=ne.accurateTimeOffset,Re=ne.timeOffset,ge=z.audioCodec,fe=z.videoCodec,Ze=z.defaultInitPts,Ot=z.duration,Ee=z.initSegmentData;if((le||be)&&this.resetInitSegment(Ee,ge,fe,Ot),le&&this.resetInitialTimestamp(Ze),ve||this.resetContiguity(),this.needsProbing(N,le,be)){if(B.dataLength){var ke=B.flush();N=Object(u.appendUint8Array)(ke,N)}this.configureTransmuxer(N,z)}var de=this.transmux(N,Y,Re,we,A),me=this.currentTransmuxState;return me.contiguous=!0,me.discontinuity=!1,me.trackSwitch=!1,k.executeEnd=v(),de},f.flush=function(i){var d=this,A=i.transmuxing;A.executeStart=v();var O=this.decrypter,m=this.cache,k=this.currentTransmuxState,N=this.decryptionPromise;if(N)return N.then(function(){return d.flush(i)});var B=[],G=k.timeOffset;if(O){var W=O.flush();W&&B.push(this.push(W,null,i))}var z=m.dataLength;m.reset();var Y=this.demuxer,V=this.remuxer;if(!Y||!V)return z>=t&&this.observer.emit(j.Events.ERROR,j.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),A.executeEnd=v(),[y(i)];var q=Y.flush(G);return D(q)?q.then(function(ne){return d.flushRemux(B,ne,i),B}):(this.flushRemux(B,q,i),B)},f.flushRemux=function(i,d,A){var O=d.audioTrack,m=d.avcTrack,k=d.id3Track,N=d.textTrack,B=this.currentTransmuxState,G=B.accurateTimeOffset,W=B.timeOffset;p.logger.log("[transmuxer.ts]: Flushed fragment "+A.sn+(A.part>-1?" p: "+A.part:"")+" of level "+A.level);var z=this.remuxer.remux(O,m,k,N,W,G,!0,this.id);i.push({remuxResult:z,chunkMeta:A}),A.transmuxing.executeEnd=v()},f.resetInitialTimestamp=function(i){var d=this.demuxer,A=this.remuxer;if(!d||!A)return;d.resetTimeStamp(i),A.resetTimeStamp(i)},f.resetContiguity=function(){var i=this.demuxer,d=this.remuxer;if(!i||!d)return;i.resetContiguity(),d.resetNextTimestamp()},f.resetInitSegment=function(i,d,A,O){var m=this.demuxer,k=this.remuxer;if(!m||!k)return;m.resetInitSegment(d,A,O),k.resetInitSegment(i,d,A)},f.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},f.transmux=function(i,d,A,O,m){var k;return d&&d.method==="SAMPLE-AES"?k=this.transmuxSampleAes(i,d,A,O,m):k=this.transmuxUnencrypted(i,A,O,m),k},f.transmuxUnencrypted=function(i,d,A,O){var m=this.demuxer.demux(i,d,!1,!this.config.progressive),k=m.audioTrack,N=m.avcTrack,B=m.id3Track,G=m.textTrack,W=this.remuxer.remux(k,N,B,G,d,A,!1,this.id);return{remuxResult:W,chunkMeta:O}},f.transmuxSampleAes=function(i,d,A,O,m){var k=this;return this.demuxer.demuxSampleAes(i,d,A).then(function(N){var B=k.remuxer.remux(N.audioTrack,N.avcTrack,N.id3Track,N.textTrack,A,O,!1,k.id);return{remuxResult:B,chunkMeta:m}})},f.configureTransmuxer=function(i,d){for(var A=this.config,O=this.observer,m=this.typeSupported,k=this.vendor,N=d.audioCodec,B=d.defaultInitPts,G=d.duration,W=d.initSegmentData,z=d.videoCodec,Y,V=0,q=a.length;V0&&f!=null&&f.key!=null&&f.iv!==null&&f.method!=null&&(o=f),o}var y=function(f){return{remuxResult:{},chunkMeta:f}};function D(_){return"then"in _&&_.then instanceof Function}var C=function(f,o,i,d,A){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=f,this.videoCodec=o,this.initSegmentData=i,this.duration=d,this.defaultInitPts=A},I=function(f,o,i,d,A){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=f,this.contiguous=o,this.accurateTimeOffset=i,this.trackSwitch=d,this.timeOffset=A}},"./src/demux/tsdemuxer.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"discardEPB",function(){return y});var j=R("./src/demux/adts.ts"),T=R("./src/demux/mpegaudio.ts"),S=R("./src/demux/exp-golomb.ts"),M=R("./src/demux/id3.ts"),c=R("./src/demux/sample-aes.ts"),E=R("./src/events.ts"),g=R("./src/utils/mp4-tools.ts"),r=R("./src/utils/logger.ts"),l=R("./src/errors.ts"),b={video:1,audio:2,id3:3,text:4},u=function(){function D(I,_,f){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=I,this.config=_,this.typeSupported=f}D.probe=function(_){var f=D.syncOffset(_);return f<0?!1:(f&&r.logger.warn("MPEG2-TS detected but first sync word found @ offset "+f+", junk ahead ?"),!0)},D.syncOffset=function(_){for(var f=Math.min(1e3,_.length-3*188),o=0;o>4,ge=void 0;if(Re>1){if(ge=le+5+_[le+4],ge===le+188)continue}else ge=le+4;switch(we){case k:be&&(N&&(d=t(N))&&this.parseAVCPES(d,!1),N={data:[],size:0}),N&&(N.data.push(_.subarray(ge,le+188)),N.size+=le+188-ge);break;case B:be&&(W&&(d=t(W))&&(O.isAAC?this.parseAACPES(d):this.parseMPEGPES(d)),W={data:[],size:0}),W&&(W.data.push(_.subarray(ge,le+188)),W.size+=le+188-ge);break;case G:be&&(z&&(d=t(z))&&this.parseID3PES(d),z={data:[],size:0}),z&&(z.data.push(_.subarray(ge,le+188)),z.size+=le+188-ge);break;case 0:be&&(ge+=_[ge]+1),q=this._pmtId=v(_,ge);break;case q:{be&&(ge+=_[ge]+1);var fe=a(_,ge,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,o);k=fe.avc,k>0&&(A.pid=k),B=fe.audio,B>0&&(O.pid=B,O.isAAC=fe.isAAC),G=fe.id3,G>0&&(m.pid=G),Y&&!V&&(r.logger.log("reparse from beginning"),Y=!1,le=ve-188),V=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=!0;break}}else this.observer.emit(E.Events.ERROR,E.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});A.pesData=N,O.pesData=W,m.pesData=z;var Ze={audioTrack:O,avcTrack:A,id3Track:m,textTrack:this._txtTrack};return i&&this.extractRemainingSamples(Ze),Ze},C.flush=function(){var _=this.remainderData;this.remainderData=null;var f;return _?f=this.demux(_,-1,!1,!0):f={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(f),this.sampleAes?this.decrypt(f,this.sampleAes):f},C.extractRemainingSamples=function(_){var f=_.audioTrack,o=_.avcTrack,i=_.id3Track,d=o.pesData,A=f.pesData,O=i.pesData,m;d&&(m=t(d))?(this.parseAVCPES(m,!0),o.pesData=null):o.pesData=d,A&&(m=t(A))?(f.isAAC?this.parseAACPES(m):this.parseMPEGPES(m),f.pesData=null):(A!=null&&A.size&&r.logger.log("last AAC PES packet truncated,might overlap between fragments"),f.pesData=A),O&&(m=t(O))?(this.parseID3PES(m),i.pesData=null):i.pesData=O},C.demuxSampleAes=function(_,f,o){var i=this.demux(_,o,!0,!this.config.progressive),d=this.sampleAes=new c.default(this.observer,this.config,f);return this.decrypt(i,d)},C.decrypt=function(_,f){return new Promise(function(o){var i=_.audioTrack,d=_.avcTrack;i.samples&&i.isAAC?f.decryptAacSamples(i.samples,0,function(){d.samples?f.decryptAvcSamples(d.samples,0,0,function(){o(_)}):o(_)}):d.samples&&f.decryptAvcSamples(d.samples,0,0,function(){o(_)})})},C.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},C.parseAVCPES=function(_,f){var o=this,i=this._avcTrack,d=this.parseAVCNALu(_.data),A=!1,O=this.avcSample,m,k=!1;_.data=null,O&&d.length&&!i.audFound&&(s(O,i),O=this.avcSample=p(!1,_.pts,_.dts,"")),d.forEach(function(N){switch(N.type){case 1:{m=!0,O||(O=o.avcSample=p(!0,_.pts,_.dts,"")),A&&(O.debug+="NDR "),O.frame=!0;var B=N.data;if(k&&B.length>4){var G=new S.default(B).readSliceType();(G===2||G===4||G===7||G===9)&&(O.key=!0)}break}case 5:m=!0,O||(O=o.avcSample=p(!0,_.pts,_.dts,"")),A&&(O.debug+="IDR "),O.key=!0,O.frame=!0;break;case 6:{m=!0,A&&O&&(O.debug+="SEI ");var W=new S.default(y(N.data));W.readUByte();for(var z=0,Y=0,V=!1,q=0;!V&&W.bytesAvailable>1;){z=0;do q=W.readUByte(),z+=q;while(q===255);Y=0;do q=W.readUByte(),Y+=q;while(q===255);if(z===4&&W.bytesAvailable!==0){V=!0;var ne=W.readUByte();if(ne===181){var ve=W.readUShort();if(ve===49){var le=W.readUInt();if(le===1195456820){var be=W.readUByte();if(be===3){for(var we=W.readUByte(),Re=W.readUByte(),ge=31&we,fe=[we,Re],Ze=0;Ze16){for(var Ot=[],Ee=0;Ee<16;Ee++)Ot.push(W.readUByte().toString(16)),(Ee===3||Ee===5||Ee===7||Ee===9)&&Ot.push("-");for(var ke=Y-16,de=new Uint8Array(ke),me=0;me=0){var W={data:_.subarray(B,O-i-1),type:G};A.push(W)}else{var z=this.getLastNalUnit();if(z&&(d&&O<=4-d&&(z.state&&(z.data=z.data.subarray(0,z.data.byteLength-d))),k=O-i-1,k>0)){var Y=new Uint8Array(z.data.byteLength+k);Y.set(z.data,0),Y.set(_.subarray(0,k),z.data.byteLength),z.data=Y,z.state=0}}O=0&&i>=0){var V={data:_.subarray(B,f),type:G,state:i};A.push(V)}if(A.length===0){var q=this.getLastNalUnit();if(q){var ne=new Uint8Array(q.data.byteLength+_.byteLength);ne.set(q.data,0),ne.set(_,q.data.byteLength),q.data=ne}}return o.naluState=i,A},C.parseAACPES=function(_){var f=0,o=this._audioTrack,i=this.aacOverFlow,d=_.data;if(i){this.aacOverFlow=null;var A=i.sample.unit.byteLength,O=Math.min(i.missing,A),m=A-O;i.sample.unit.set(d.subarray(0,O),m),o.samples.push(i.sample),f=i.missing}var k,N;for(k=f,N=d.length;k1;){var A=new Uint8Array(d[0].length+d[1].length);A.set(d[0]),A.set(d[1],d[0].length),d[0]=A,d.splice(1,1)}I=d[0];var O=(I[0]<<16)+(I[1]<<8)+I[2];if(O===1){if(_=(I[4]<<8)+I[5],_&&_>D.size-6)return null;var m=I[7];m&192&&(o=(I[9]&14)*536870912+(I[10]&255)*4194304+(I[11]&254)*16384+(I[12]&255)*128+(I[13]&254)/2,m&64?(i=(I[14]&14)*536870912+(I[15]&255)*4194304+(I[16]&254)*16384+(I[17]&255)*128+(I[18]&254)/2,o-i>60*9e4&&(r.logger.warn(Math.round((o-i)/9e4)+"s delta between PTS and DTS, align them"),o=i)):i=o),f=I[8];var k=f+9;if(D.size<=k)return null;D.size-=k;for(var N=new Uint8Array(D.size),B=0,G=d.length;BW){k-=W;continue}else I=I.subarray(k),W-=k,k=0;N.set(I,C),C+=W}return _&&(_-=f+3),{data:N,pts:o,dts:i,len:_}}return null}function s(D,C){if(D.units.length&&D.frame){if(D.pts===void 0){var I=C.samples,_=I.length;if(_){var f=I[_-1];D.pts=f.pts,D.dts=f.dts}else{C.dropped++;return}}C.samples.push(D)}D.debug.length&&r.logger.log(D.pts+"/"+D.dts+":"+D.debug)}function h(D,C){var I=D.length;if(I>0){if(C.pts>=D[I-1].pts)D.push(C);else for(var _=I-1;_>=0;_--)if(C.ptso)return d;return 0}},{key:"maxAutoLevel",get:function(){var f=this.levels,o=this.autoLevelCapping,i;return o===-1&&f&&f.length?i=f.length-1:i=o,i}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(f){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,f)}},{key:"audioTracks",get:function(){var f=this.audioTrackController;return f?f.audioTracks:[]}},{key:"audioTrack",get:function(){var f=this.audioTrackController;return f?f.audioTrack:-1},set:function(f){var o=this.audioTrackController;o&&(o.audioTrack=f)}},{key:"subtitleTracks",get:function(){var f=this.subtitleTrackController;return f?f.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var f=this.subtitleTrackController;return f?f.subtitleTrack:-1},set:function(f){var o=this.subtitleTrackController;o&&(o.subtitleTrack=f)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var f=this.subtitleTrackController;return f?f.subtitleDisplay:!1},set:function(f){var o=this.subtitleTrackController;o&&(o.subtitleDisplay=f)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(f){this.config.lowLatencyMode=f}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return t.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return C.defaultConfig?C.defaultConfig:p.hlsDefaultConfig},set:function(f){C.defaultConfig=f}}]),C}();D.defaultConfig=void 0},"./src/is-supported.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"isSupported",function(){return S}),R.d(F,"changeTypeSupported",function(){return M});var j=R("./src/utils/mediasource-helper.ts");function T(){return self.SourceBuffer||self.WebKitSourceBuffer}function S(){var c=Object(j.getMediaSource)();if(!c)return!1;var E=T(),g=c&&typeof c.isTypeSupported=="function"&&c.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!E||E.prototype&&typeof E.prototype.appendBuffer=="function"&&typeof E.prototype.remove=="function";return!!g&&!!r}function M(){var c,E=T();return typeof(E==null||((c=E.prototype)===null||c===void 0)?void 0:c.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return u}),R.d(F,"LoadError",function(){return v});var j=R("./src/polyfills/number.ts"),T=R("./src/errors.ts");function S(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,r(a,t)}function M(a){var t=typeof Map=="function"?new Map:void 0;return M=function(h){if(h===null||!g(h))return h;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(h))return t.get(h);t.set(h,y)}function y(){return c(h,arguments,l(this).constructor)}return y.prototype=Object.create(h.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),r(y,h)},M(a)}function c(a,t,s){return E()?c=Reflect.construct:c=function(y,D,C){var I=[null];I.push.apply(I,D);var _=Function.bind.apply(y,I),f=new _;return C&&r(f,C.prototype),f},c.apply(null,arguments)}function E(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function g(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function r(a,t){return r=Object.setPrototypeOf||function(h,y){return h.__proto__=y,h},r(a,t)}function l(a){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},l(a)}var b=Math.pow(2,17),u=function(){function a(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var t=a.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(h,y){var D=this,C=h.url;if(!C)return Promise.reject(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,networkDetails:null},"Fragment does not have a "+(C?"part list":"url")));this.abort();var I=this.config,_=I.fLoader,f=I.loader;return new Promise(function(o,i){D.loader&&D.loader.destroy();var d=D.loader=h.loader=_?new _(I):new f(I),A=p(h),O={timeout:I.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:I.fragLoadingMaxRetryTimeout,highWaterMark:b};h.stats=d.stats,d.load(A,O,{onSuccess:function(k,N,B,G){D.resetLoader(h,d),o({frag:h,part:null,payload:k.data,networkDetails:G})},onError:function(k,N,B){D.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,response:k,networkDetails:B}))},onAbort:function(k,N,B){D.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,networkDetails:B}))},onTimeout:function(k,N,B){D.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,networkDetails:B}))},onProgress:function(k,N,B,G){y&&y({frag:h,part:null,payload:B,networkDetails:G})}})})},t.loadPart=function(h,y,D){var C=this;this.abort();var I=this.config,_=I.fLoader,f=I.loader;return new Promise(function(o,i){C.loader&&C.loader.destroy();var d=C.loader=h.loader=_?new _(I):new f(I),A=p(h,y),O={timeout:I.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:I.fragLoadingMaxRetryTimeout,highWaterMark:b};y.stats=d.stats,d.load(A,O,{onSuccess:function(k,N,B,G){C.resetLoader(h,d),C.updateStatsFromPart(h,y);var W={frag:h,part:y,payload:k.data,networkDetails:G};D(W),o(W)},onError:function(k,N,B){C.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,part:y,response:k,networkDetails:B}))},onAbort:function(k,N,B){h.stats.aborted=y.stats.aborted,C.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,part:y,networkDetails:B}))},onTimeout:function(k,N,B){C.resetLoader(h,d),i(new v({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,part:y,networkDetails:B}))}})})},t.updateStatsFromPart=function(h,y){var D=h.stats,C=y.stats,I=C.total;if(D.loaded+=C.loaded,I){var _=Math.round(h.duration/y.duration),f=Math.min(Math.round(D.loaded/I),_),o=_-f,i=o*Math.round(D.loaded/f);D.total=D.loaded+i}else D.total=Math.max(D.loaded,D.total);var d=D.loading,A=C.loading;d.start?d.first+=A.first-A.start:(d.start=A.start,d.first=A.first),d.end=A.end},t.resetLoader=function(h,y){h.loader=null,this.loader===y&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),y.destroy()},a}();function p(a,t){t===void 0&&(t=null);var s=t||a,h={frag:a,part:t,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},y=s.byteRangeStartOffset,D=s.byteRangeEndOffset;return Object(j.isFiniteNumber)(y)&&Object(j.isFiniteNumber)(D)&&(h.rangeStart=y,h.rangeEnd=D),h}var v=function(a){S(t,a);function t(s){for(var h,y=arguments.length,D=new Array(y>1?y-1:0),C=1;C>8*(15-I)&255;return C},h.setDecryptDataFromLevelKey=function(D,C){var I=D;return(D==null?void 0:D.method)==="AES-128"&&D.uri&&!D.iv&&(I=c.LevelKey.fromURI(D.uri),I.method=D.method,I.iv=this.createInitializationVector(C),I.keyFormat="identity"),I},h.setElementaryStreamInfo=function(D,C,I,_,f,o){o===void 0&&(o=!1);var i=this.elementaryStreams,d=i[D];if(!d){i[D]={startPTS:C,endPTS:I,startDTS:_,endDTS:f,partial:o};return}d.startPTS=Math.min(d.startPTS,C),d.endPTS=Math.max(d.endPTS,I),d.startDTS=Math.min(d.startDTS,_),d.endDTS=Math.max(d.endDTS,f)},h.clearElementaryStreamInfo=function(){var D=this.elementaryStreams;D[u.AUDIO]=null,D[u.VIDEO]=null,D[u.AUDIOVIDEO]=null},b(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var D=this.sn;typeof D!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),D=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,D)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(j.isFiniteNumber)(this.programDateTime))return null;var D=Object(j.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+D*1e3}},{key:"encrypted",get:function(){var D;return!!((D=this.decryptdata)!==null&&D!==void 0&&D.keyFormat&&this.decryptdata.uri)}}]),s}(p),a=function(t){g(s,t);function s(h,y,D,C,I){var _;_=t.call(this,D)||this,_.fragOffset=0,_.duration=0,_.gap=!1,_.independent=!1,_.relurl=void 0,_.fragment=void 0,_.index=void 0,_.stats=new E.LoadStats,_.duration=h.decimalFloatingPoint("DURATION"),_.gap=h.bool("GAP"),_.independent=h.bool("INDEPENDENT"),_.relurl=h.enumeratedString("URI"),_.fragment=y,_.index=C;var f=h.enumeratedString("BYTERANGE");return f&&_.setByteRange(f,I),I&&(_.fragOffset=I.fragOffset+I.duration),_}return b(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var y=this.elementaryStreams;return!!(y.audio||y.video||y.audiovideo)}}]),s}(p)},"./src/loader/key-loader.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return M});var j=R("./src/events.ts"),T=R("./src/errors.ts"),S=R("./src/utils/logger.ts"),M=function(){function c(g){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=g,this._registerListeners()}var E=c.prototype;return E._registerListeners=function(){this.hls.on(j.Events.KEY_LOADING,this.onKeyLoading,this)},E._unregisterListeners=function(){this.hls.off(j.Events.KEY_LOADING,this.onKeyLoading)},E.destroy=function(){this._unregisterListeners();for(var r in this.loaders){var l=this.loaders[r];l&&l.destroy()}this.loaders={}},E.onKeyLoading=function(r,l){var b=l.frag,u=b.type,p=this.loaders[u];if(!b.decryptdata){S.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var v=b.decryptdata.uri;if(v!==this.decrypturl||this.decryptkey===null){var a=this.hls.config;if(p&&(S.logger.warn("abort previous key loader for type:"+u),p.abort()),!v){S.logger.warn("key uri is falsy");return}var t=a.loader,s=b.loader=this.loaders[u]=new t(a);this.decrypturl=v,this.decryptkey=null;var h={url:v,frag:b,responseType:"arraybuffer"},y={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(h,y,D)}else this.decryptkey&&(b.decryptdata.key=this.decryptkey,this.hls.trigger(j.Events.KEY_LOADED,{frag:b}))},E.loadsuccess=function(r,l,b){var u=b.frag;if(!u.decryptdata){S.logger.error("after key load, decryptdata unset");return}this.decryptkey=u.decryptdata.key=new Uint8Array(r.data),u.loader=null,delete this.loaders[u.type],this.hls.trigger(j.Events.KEY_LOADED,{frag:u})},E.loaderror=function(r,l){var b=l.frag,u=b.loader;u&&u.abort(),delete this.loaders[b.type],this.hls.trigger(j.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:b,response:r})},E.loadtimeout=function(r,l){var b=l.frag,u=b.loader;u&&u.abort(),delete this.loaders[b.type],this.hls.trigger(j.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:b})},c}()},"./src/loader/level-details.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"LevelDetails",function(){return c});var j=R("./src/polyfills/number.ts");function T(E,g){for(var r=0;rl.endSN||b>0||b===0&&u>0,this.updated||this.advanced?this.misses=Math.floor(l.misses*.6):this.misses=l.misses+1,this.availabilityDelay=l.availabilityDelay},S(E,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(j.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var l=this.driftEndTime-this.driftStartTime;if(l>0){var b=this.driftEnd-this.driftStart;return b*1e3/l}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var l;return(l=this.fragments)!==null&&l!==void 0&&l.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),E}()},"./src/loader/level-key.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"LevelKey",function(){return c});var j=R("./node_modules/url-toolkit/src/url-toolkit.js"),T=R.n(j);function S(E,g){for(var r=0;r2){var i=o.shift()+".";return i+=parseInt(o.shift()).toString(16),i+=("000"+parseInt(o.shift()).toString(16)).substr(-4),i}return f},I.resolve=function(f,o){return T.buildAbsoluteURL(o,f,{alwaysNormalize:!0})},I.parseMasterPlaylist=function(f,o){var i=[],d={},A=!1;b.lastIndex=0;for(var O;(O=b.exec(f))!=null;)if(O[1]){var m=new g.AttrList(O[1]),k={attrs:m,bitrate:m.decimalInteger("AVERAGE-BANDWIDTH")||m.decimalInteger("BANDWIDTH"),name:m.NAME,url:I.resolve(O[2],o)},N=m.decimalResolution("RESOLUTION");N&&(k.width=N.width,k.height=N.height),h((m.CODECS||"").split(/[ ,]+/).filter(function(G){return G}),k),k.videoCodec&&k.videoCodec.indexOf("avc1")!==-1&&(k.videoCodec=I.convertAVC1ToAVCOTI(k.videoCodec)),i.push(k)}else if(O[3]){var B=new g.AttrList(O[3]);B["DATA-ID"]&&(A=!0,d[B["DATA-ID"]]=B)}return{levels:i,sessionData:A?d:null}},I.parseMasterPlaylistMedia=function(f,o,i,d){d===void 0&&(d=[]);var A,O=[],m=0;for(u.lastIndex=0;(A=u.exec(f))!==null;){var k=new g.AttrList(A[1]);if(k.TYPE===i){var N={attrs:k,bitrate:0,id:m++,groupId:k["GROUP-ID"],instreamId:k["INSTREAM-ID"],name:k.NAME||k.LANGUAGE||"",type:i,default:k.bool("DEFAULT"),autoselect:k.bool("AUTOSELECT"),forced:k.bool("FORCED"),lang:k.LANGUAGE,url:k.URI?I.resolve(k.URI,o):""};if(d.length){var B=I.findGroup(d,N.groupId)||d[0];y(N,B,"audioCodec"),y(N,B,"textCodec")}O.push(N)}}return O},I.parseLevelPlaylist=function(f,o,i,d,A){var O=new c.LevelDetails(o),m=O.fragments,k=null,N=0,B=0,G=0,W=0,z=null,Y=new M.Fragment(d,o),V,q,ne,ve=-1,le=!1;for(p.lastIndex=0,O.m3u8=f;(V=p.exec(f))!==null;){le&&(le=!1,Y=new M.Fragment(d,o),Y.start=G,Y.sn=N,Y.cc=W,Y.level=i,k&&(Y.initSegment=k,Y.rawProgramDateTime=k.rawProgramDateTime));var be=V[1];if(be){Y.duration=parseFloat(be);var we=(" "+V[2]).slice(1);Y.title=we||null,Y.tagList.push(we?["INF",be,we]:["INF",be])}else if(V[3])Object(j.isFiniteNumber)(Y.duration)&&(Y.start=G,ne&&(Y.levelkey=ne),Y.sn=N,Y.level=i,Y.cc=W,Y.urlId=A,m.push(Y),Y.relurl=(" "+V[3]).slice(1),C(Y,z),z=Y,G+=Y.duration,N++,B=0,le=!0);else if(V[4]){var Re=(" "+V[4]).slice(1);z?Y.setByteRange(Re,z):Y.setByteRange(Re)}else if(V[5])Y.rawProgramDateTime=(" "+V[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),ve===-1&&(ve=m.length);else{if(V=V[0].match(v),!V){r.logger.warn("No matches on slow regex match for level playlist!");continue}for(q=1;q-1){r.logger.warn("Keyformat "+Rt+" is not supported from the manifest");continue}else if(Rt!=="identity")continue;rt&&(ne=E.LevelKey.fromURL(o,Oe),Oe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(rt)>=0&&(ne.method=rt,ne.keyFormat=Rt,dt&&(ne.keyID=dt),at&&(ne.keyFormatVersions=at),ne.iv=Ge));break}case"START":{var Kt=new g.AttrList(fe),Lt=Kt.decimalFloatingPoint("TIME-OFFSET");Object(j.isFiniteNumber)(Lt)&&(O.startTimeOffset=Lt);break}case"MAP":{var on=new g.AttrList(fe);Y.relurl=on.URI,on.BYTERANGE&&Y.setByteRange(on.BYTERANGE),Y.level=i,Y.sn="initSegment",ne&&(Y.levelkey=ne),Y.initSegment=null,k=Y,le=!0;break}case"SERVER-CONTROL":{var un=new g.AttrList(fe);O.canBlockReload=un.bool("CAN-BLOCK-RELOAD"),O.canSkipUntil=un.optionalFloat("CAN-SKIP-UNTIL",0),O.canSkipDateRanges=O.canSkipUntil>0&&un.bool("CAN-SKIP-DATERANGES"),O.partHoldBack=un.optionalFloat("PART-HOLD-BACK",0),O.holdBack=un.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ie=new g.AttrList(fe);O.partTarget=Ie.decimalFloatingPoint("PART-TARGET");break}case"PART":{var De=O.partList;De||(De=O.partList=[]);var ot=B>0?De[De.length-1]:void 0,Et=B++,Je=new M.Part(new g.AttrList(fe),Y,o,Et,ot);De.push(Je),Y.duration+=Je.duration;break}case"PRELOAD-HINT":{var ft=new g.AttrList(fe);O.preloadHint=ft;break}case"RENDITION-REPORT":{var Me=new g.AttrList(fe);O.renditionReports=O.renditionReports||[],O.renditionReports.push(Me);break}default:r.logger.warn("line parsed but not handled: "+V);break}}}z&&!z.relurl?(m.pop(),G-=z.duration,O.partList&&(O.fragmentHint=z)):O.partList&&(C(Y,z),Y.cc=W,O.fragmentHint=Y);var xe=m.length,Te=m[0],oe=m[xe-1];if(G+=O.skippedSegments*O.targetduration,G>0&&xe&&oe){O.averagetargetduration=G/xe;var ue=oe.sn;O.endSN=ue!=="initSegment"?ue:0,Te&&(O.startCC=Te.cc,Te.initSegment||O.fragments.every(function(pe){return pe.relurl&&t(pe.relurl)})&&(r.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new M.Fragment(d,o),Y.relurl=oe.relurl,Y.level=i,Y.sn="initSegment",Te.initSegment=Y,O.needSidxRanges=!0))}else O.endSN=0,O.startCC=0;return O.fragmentHint&&(G+=O.fragmentHint.duration),O.totalduration=G,O.endCC=W,ve>0&&D(m,ve),O},I}();function h(I,_){["video","audio","text"].forEach(function(f){var o=I.filter(function(d){return Object(l.isCodecType)(d,f)});if(o.length){var i=o.filter(function(d){return d.lastIndexOf("avc1",0)===0||d.lastIndexOf("mp4a",0)===0});_[f+"Codec"]=i.length>0?i[0]:o[0],I=I.filter(function(d){return o.indexOf(d)===-1})}}),_.unknownCodecs=I}function y(I,_,f){var o=_[f];o&&(I[f]=o)}function D(I,_){for(var f=I[_],o=_;o--;){var i=I[o];if(!i)return;i.programDateTime=f.programDateTime-i.duration*1e3,f=i}}function C(I,_){I.rawProgramDateTime?I.programDateTime=Date.parse(I.rawProgramDateTime):_!=null&&_.programDateTime&&(I.programDateTime=_.endProgramDateTime),Object(j.isFiniteNumber)(I.programDateTime)||(I.programDateTime=null,I.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(X,F,R){"use strict";R.r(F);var j=R("./src/polyfills/number.ts"),T=R("./src/events.ts"),S=R("./src/errors.ts"),M=R("./src/utils/logger.ts"),c=R("./src/utils/mp4-tools.ts"),E=R("./src/loader/m3u8-parser.ts"),g=R("./src/types/loader.ts"),r=R("./src/utils/attr-list.ts");function l(p){var v=p.type;switch(v){case g.PlaylistContextType.AUDIO_TRACK:return g.PlaylistLevelType.AUDIO;case g.PlaylistContextType.SUBTITLE_TRACK:return g.PlaylistLevelType.SUBTITLE;default:return g.PlaylistLevelType.MAIN}}function b(p,v){var a=p.url;return(a===void 0||a.indexOf("data:")===0)&&(a=v.url),a}var u=function(){function p(a){this.hls=void 0,this.loaders=Object.create(null),this.hls=a,this.registerListeners()}var v=p.prototype;return v.registerListeners=function(){var t=this.hls;t.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},v.unregisterListeners=function(){var t=this.hls;t.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.Events.LEVEL_LOADING,this.onLevelLoading,this),t.off(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},v.createInternalLoader=function(t){var s=this.hls.config,h=s.pLoader,y=s.loader,D=h||y,C=new D(s);return t.loader=C,this.loaders[t.type]=C,C},v.getInternalLoader=function(t){return this.loaders[t.type]},v.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},v.destroyInternalLoaders=function(){for(var t in this.loaders){var s=this.loaders[t];s&&s.destroy(),this.resetInternalLoader(t)}},v.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},v.onManifestLoading=function(t,s){var h=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:g.PlaylistContextType.MANIFEST,url:h,deliveryDirectives:null})},v.onLevelLoading=function(t,s){var h=s.id,y=s.level,D=s.url,C=s.deliveryDirectives;this.load({id:h,groupId:null,level:y,responseType:"text",type:g.PlaylistContextType.LEVEL,url:D,deliveryDirectives:C})},v.onAudioTrackLoading=function(t,s){var h=s.id,y=s.groupId,D=s.url,C=s.deliveryDirectives;this.load({id:h,groupId:y,level:null,responseType:"text",type:g.PlaylistContextType.AUDIO_TRACK,url:D,deliveryDirectives:C})},v.onSubtitleTrackLoading=function(t,s){var h=s.id,y=s.groupId,D=s.url,C=s.deliveryDirectives;this.load({id:h,groupId:y,level:null,responseType:"text",type:g.PlaylistContextType.SUBTITLE_TRACK,url:D,deliveryDirectives:C})},v.load=function(t){var s,h=this.hls.config,y=this.getInternalLoader(t);if(y){var D=y.context;if(D&&D.url===t.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+t.type),y.abort()}var C,I,_,f;switch(t.type){case g.PlaylistContextType.MANIFEST:C=h.manifestLoadingMaxRetry,I=h.manifestLoadingTimeOut,_=h.manifestLoadingRetryDelay,f=h.manifestLoadingMaxRetryTimeout;break;case g.PlaylistContextType.LEVEL:case g.PlaylistContextType.AUDIO_TRACK:case g.PlaylistContextType.SUBTITLE_TRACK:C=0,I=h.levelLoadingTimeOut;break;default:C=h.levelLoadingMaxRetry,I=h.levelLoadingTimeOut,_=h.levelLoadingRetryDelay,f=h.levelLoadingMaxRetryTimeout;break}if(y=this.createInternalLoader(t),(s=t.deliveryDirectives)!==null&&s!==void 0&&s.part){var o;if(t.type===g.PlaylistContextType.LEVEL&&t.level!==null?o=this.hls.levels[t.level].details:t.type===g.PlaylistContextType.AUDIO_TRACK&&t.id!==null?o=this.hls.audioTracks[t.id].details:t.type===g.PlaylistContextType.SUBTITLE_TRACK&&t.id!==null&&(o=this.hls.subtitleTracks[t.id].details),o){var i=o.partTarget,d=o.targetduration;i&&d&&(I=Math.min(Math.max(i*3,d*.8)*1e3,I))}}var A={timeout:I,maxRetry:C,retryDelay:_,maxRetryDelay:f,highWaterMark:0},O={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};y.load(t,A,O)},v.loadsuccess=function(t,s,h,y){if(y===void 0&&(y=null),h.isSidxRequest){this.handleSidxRequest(t,h),this.handlePlaylistLoaded(t,s,h,y);return}this.resetInternalLoader(h.type);var D=t.data;if(D.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(t,h,"no EXTM3U delimiter",y);return}s.parsing.start=performance.now(),D.indexOf("#EXTINF:")>0||D.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(t,s,h,y):this.handleMasterPlaylist(t,s,h,y)},v.loaderror=function(t,s,h){h===void 0&&(h=null),this.handleNetworkError(s,h,!1,t)},v.loadtimeout=function(t,s,h){h===void 0&&(h=null),this.handleNetworkError(s,h,!0)},v.handleMasterPlaylist=function(t,s,h,y){var D=this.hls,C=t.data,I=b(t,h),_=E.default.parseMasterPlaylist(C,I),f=_.levels,o=_.sessionData;if(!f.length){this.handleManifestParsingError(t,h,"no level found in manifest",y);return}var i=f.map(function(N){return{id:N.attrs.AUDIO,audioCodec:N.audioCodec}}),d=f.map(function(N){return{id:N.attrs.SUBTITLES,textCodec:N.textCodec}}),A=E.default.parseMasterPlaylistMedia(C,I,"AUDIO",i),O=E.default.parseMasterPlaylistMedia(C,I,"SUBTITLES",d),m=E.default.parseMasterPlaylistMedia(C,I,"CLOSED-CAPTIONS");if(A.length){var k=A.some(function(N){return!N.url});!k&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),A.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new r.AttrList({}),bitrate:0,url:""}))}D.trigger(T.Events.MANIFEST_LOADED,{levels:f,audioTracks:A,subtitles:O,captions:m,url:I,stats:s,networkDetails:y,sessionData:o})},v.handleTrackOrLevelPlaylist=function(t,s,h,y){var D=this.hls,C=h.id,I=h.level,_=h.type,f=b(t,h),o=Object(j.isFiniteNumber)(C)?C:0,i=Object(j.isFiniteNumber)(I)?I:o,d=l(h),A=E.default.parseLevelPlaylist(t.data,f,i,d,o);if(!A.fragments.length){D.trigger(T.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:f,reason:"no fragments found in level",level:typeof h.level=="number"?h.level:void 0});return}if(_===g.PlaylistContextType.MANIFEST){var O={attrs:new r.AttrList({}),bitrate:0,details:A,name:"",url:f};D.trigger(T.Events.MANIFEST_LOADED,{levels:[O],audioTracks:[],url:f,stats:s,networkDetails:y,sessionData:null})}if(s.parsing.end=performance.now(),A.needSidxRanges){var m,k=(m=A.fragments[0].initSegment)===null||m===void 0?void 0:m.url;this.load({url:k,isSidxRequest:!0,type:_,level:I,levelDetails:A,id:C,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}h.levelDetails=A,this.handlePlaylistLoaded(t,s,h,y)},v.handleSidxRequest=function(t,s){var h=Object(c.parseSegmentIndex)(new Uint8Array(t.data));if(!h)return;var y=h.references,D=s.levelDetails;y.forEach(function(C,I){var _=C.info,f=D.fragments[I];f.byteRange.length===0&&f.setByteRange(String(1+_.end-_.start)+"@"+String(_.start)),f.initSegment&&f.initSegment.setByteRange(String(h.moovEndOffset)+"@0")})},v.handleManifestParsingError=function(t,s,h,y){this.hls.trigger(T.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===g.PlaylistContextType.MANIFEST,url:t.url,reason:h,response:t,context:s,networkDetails:y})},v.handleNetworkError=function(t,s,h,y){h===void 0&&(h=!1),M.logger.warn("[playlist-loader]: A network "+(h?"timeout":"error")+" occurred while loading "+t.type+" level: "+t.level+" id: "+t.id+' group-id: "'+t.groupId+'"');var D=S.ErrorDetails.UNKNOWN,C=!1,I=this.getInternalLoader(t);switch(t.type){case g.PlaylistContextType.MANIFEST:D=h?S.ErrorDetails.MANIFEST_LOAD_TIMEOUT:S.ErrorDetails.MANIFEST_LOAD_ERROR,C=!0;break;case g.PlaylistContextType.LEVEL:D=h?S.ErrorDetails.LEVEL_LOAD_TIMEOUT:S.ErrorDetails.LEVEL_LOAD_ERROR,C=!1;break;case g.PlaylistContextType.AUDIO_TRACK:D=h?S.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:S.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,C=!1;break;case g.PlaylistContextType.SUBTITLE_TRACK:D=h?S.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:S.ErrorDetails.SUBTITLE_LOAD_ERROR,C=!1;break}I&&this.resetInternalLoader(t.type);var _={type:S.ErrorTypes.NETWORK_ERROR,details:D,fatal:C,url:t.url,loader:I,context:t,networkDetails:s};y&&(_.response=y),this.hls.trigger(T.Events.ERROR,_)},v.handlePlaylistLoaded=function(t,s,h,y){var D=h.type,C=h.level,I=h.id,_=h.groupId,f=h.loader,o=h.levelDetails,i=h.deliveryDirectives;if(!(o!=null&&o.targetduration)){this.handleManifestParsingError(t,h,"invalid target duration",y);return}if(!f)return;o.live&&(f.getCacheAge&&(o.ageHeader=f.getCacheAge()||0),(!f.getCacheAge||isNaN(o.ageHeader))&&(o.ageHeader=0));switch(D){case g.PlaylistContextType.MANIFEST:case g.PlaylistContextType.LEVEL:this.hls.trigger(T.Events.LEVEL_LOADED,{details:o,level:C||0,id:I||0,stats:s,networkDetails:y,deliveryDirectives:i});break;case g.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(T.Events.AUDIO_TRACK_LOADED,{details:o,id:I||0,groupId:_||"",stats:s,networkDetails:y,deliveryDirectives:i});break;case g.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(T.Events.SUBTITLE_TRACK_LOADED,{details:o,id:I||0,groupId:_||"",stats:s,networkDetails:y,deliveryDirectives:i});break}},p}();F.default=u},"./src/polyfills/number.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"isFiniteNumber",function(){return j}),R.d(F,"MAX_SAFE_INTEGER",function(){return T});var j=Number.isFinite||function(S){return typeof S=="number"&&isFinite(S)},T=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(X,F,R){"use strict";R.r(F);var j=function(){function T(){}return T.getSilentFrame=function(M,c){switch(M){case"mp4a.40.2":if(c===1)return new Uint8Array([0,200,0,128,35,128]);if(c===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(c===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(c===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(c===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(c===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(c===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(c===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(c===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},T}();F.default=j},"./src/remux/mp4-generator.ts":function(X,F,R){"use strict";R.r(F);var j=Math.pow(2,32)-1,T=function(){function S(){}return S.init=function(){S.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var c;for(c in S.types)S.types.hasOwnProperty(c)&&(S.types[c]=[c.charCodeAt(0),c.charCodeAt(1),c.charCodeAt(2),c.charCodeAt(3)]);var E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),g=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);S.HDLR_TYPES={video:E,audio:g};var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),l=new Uint8Array([0,0,0,0,0,0,0,0]);S.STTS=S.STSC=S.STCO=l,S.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),S.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),S.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),S.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var b=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),p=new Uint8Array([0,0,0,1]);S.FTYP=S.box(S.types.ftyp,b,p,b,u),S.DINF=S.box(S.types.dinf,S.box(S.types.dref,r))},S.box=function(c){for(var E=8,g=arguments.length,r=new Array(g>1?g-1:0),l=1;l>24&255,p[1]=E>>16&255,p[2]=E>>8&255,p[3]=E&255,p.set(c,4),b=0,E=8;b>24&255,c>>16&255,c>>8&255,c&255,g>>24,g>>16&255,g>>8&255,g&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))},S.mdia=function(c){return S.box(S.types.mdia,S.mdhd(c.timescale,c.duration),S.hdlr(c.type),S.minf(c))},S.mfhd=function(c){return S.box(S.types.mfhd,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255]))},S.minf=function(c){return c.type==="audio"?S.box(S.types.minf,S.box(S.types.smhd,S.SMHD),S.DINF,S.stbl(c)):S.box(S.types.minf,S.box(S.types.vmhd,S.VMHD),S.DINF,S.stbl(c))},S.moof=function(c,E,g){return S.box(S.types.moof,S.mfhd(c),S.traf(g,E))},S.moov=function(c){for(var E=c.length,g=[];E--;)g[E]=S.trak(c[E]);return S.box.apply(null,[S.types.moov,S.mvhd(c[0].timescale,c[0].duration)].concat(g).concat(S.mvex(c)))},S.mvex=function(c){for(var E=c.length,g=[];E--;)g[E]=S.trex(c[E]);return S.box.apply(null,[S.types.mvex].concat(g))},S.mvhd=function(c,E){E*=c;var g=Math.floor(E/(j+1)),r=Math.floor(E%(j+1)),l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,c>>24&255,c>>16&255,c>>8&255,c&255,g>>24,g>>16&255,g>>8&255,g&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return S.box(S.types.mvhd,l)},S.sdtp=function(c){var E=c.samples||[],g=new Uint8Array(4+E.length),r,l;for(r=0;r>>8&255),E.push(b&255),E=E.concat(Array.prototype.slice.call(l));for(r=0;r>>8&255),g.push(b&255),g=g.concat(Array.prototype.slice.call(l));var u=S.box(S.types.avcC,new Uint8Array([1,E[3],E[4],E[5],252|3,224|c.sps.length].concat(E).concat([c.pps.length]).concat(g))),p=c.width,v=c.height,a=c.pixelRatio[0],t=c.pixelRatio[1];return S.box(S.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,p>>8&255,p&255,v>>8&255,v&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,S.box(S.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),S.box(S.types.pasp,new Uint8Array([a>>24,a>>16&255,a>>8&255,a&255,t>>24,t>>16&255,t>>8&255,t&255])))},S.esds=function(c){var E=c.config.length;return new Uint8Array([0,0,0,0,3,23+E,0,1,0,4,15+E,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([E]).concat(c.config).concat([6,1,2]))},S.mp4a=function(c){var E=c.samplerate;return S.box(S.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,c.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]),S.box(S.types.esds,S.esds(c)))},S.mp3=function(c){var E=c.samplerate;return S.box(S.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,c.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]))},S.stsd=function(c){return c.type==="audio"?!c.isAAC&&c.codec==="mp3"?S.box(S.types.stsd,S.STSD,S.mp3(c)):S.box(S.types.stsd,S.STSD,S.mp4a(c)):S.box(S.types.stsd,S.STSD,S.avc1(c))},S.tkhd=function(c){var E=c.id,g=c.duration*c.timescale,r=c.width,l=c.height,b=Math.floor(g/(j+1)),u=Math.floor(g%(j+1));return S.box(S.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,E>>24&255,E>>16&255,E>>8&255,E&255,0,0,0,0,b>>24,b>>16&255,b>>8&255,b&255,u>>24,u>>16&255,u>>8&255,u&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,l>>8&255,l&255,0,0]))},S.traf=function(c,E){var g=S.sdtp(c),r=c.id,l=Math.floor(E/(j+1)),b=Math.floor(E%(j+1));return S.box(S.types.traf,S.box(S.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),S.box(S.types.tfdt,new Uint8Array([1,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,b>>24,b>>16&255,b>>8&255,b&255])),S.trun(c,g.length+16+20+8+16+8+8),g)},S.trak=function(c){return c.duration=c.duration||4294967295,S.box(S.types.trak,S.tkhd(c),S.mdia(c))},S.trex=function(c){var E=c.id;return S.box(S.types.trex,new Uint8Array([0,0,0,0,E>>24,E>>16&255,E>>8&255,E&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},S.trun=function(c,E){var g=c.samples||[],r=g.length,l=12+16*r,b=new Uint8Array(l),u,p,v,a,t,s;for(E+=8+l,b.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255],0),u=0;u>>24&255,v>>>16&255,v>>>8&255,v&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,t.isLeading<<2|t.dependsOn,t.isDependedOn<<6|t.hasRedundancy<<4|t.paddingValue<<1|t.isNonSync,t.degradPrio&240<<8,t.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*u);return S.box(S.types.trun,b)},S.initSegment=function(c){S.types||S.init();var E=S.moov(c),g=new Uint8Array(S.FTYP.byteLength+E.byteLength);return g.set(S.FTYP),g.set(E,S.FTYP.byteLength),g},S}();T.types=void 0,T.HDLR_TYPES=void 0,T.STTS=void 0,T.STSC=void 0,T.STCO=void 0,T.STSZ=void 0,T.VMHD=void 0,T.SMHD=void 0,T.STSD=void 0,T.FTYP=void 0,T.DINF=void 0,F.default=T},"./src/remux/mp4-remuxer.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return s}),R.d(F,"normalizePts",function(){return h});var j=R("./src/polyfills/number.ts"),T=R("./src/remux/aac-helper.ts"),S=R("./src/remux/mp4-generator.ts"),M=R("./src/events.ts"),c=R("./src/errors.ts"),E=R("./src/utils/logger.ts"),g=R("./src/types/loader.ts"),r=R("./src/utils/timescale-conversion.ts");function l(){return l=Object.assign||function(I){for(var _=1;_0?A:O.pts},o[0].pts);return i&&E.logger.debug("PTS rollover detected"),d},_.remux=function(o,i,d,A,O,m,k,N){var B,G,W,z,Y,V,q=O,ne=O,ve=o.pid>-1,le=i.pid>-1,be=i.samples.length,we=o.samples.length>0,Re=be>1,ge=(!ve||we)&&(!le||Re)||this.ISGenerated||k;if(ge){this.ISGenerated||(W=this.generateIS(o,i,O));var fe=this.isVideoContiguous,Ze=-1;if(Re&&(Ze=y(i.samples),!fe&&this.config.forceKeyFrameOnDiscontinuity))if(V=!0,Ze>0){E.logger.warn("[mp4-remuxer]: Dropped "+Ze+" out of "+be+" video samples due to a missing keyframe");var Ot=this.getVideoStartPts(i.samples);i.samples=i.samples.slice(Ze),i.dropped+=Ze,ne+=(i.samples[0].pts-Ot)/(i.timescale||9e4)}else Ze===-1&&(E.logger.warn("[mp4-remuxer]: No keyframe found out of "+be+" video samples"),V=!1);if(this.ISGenerated){if(we&&Re){var Ee=this.getVideoStartPts(i.samples),ke=h(o.samples[0].pts,Ee)-Ee,de=ke/i.inputTimeScale;q+=Math.max(0,de),ne+=Math.max(0,-de)}if(we){if(o.samplerate||(E.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),W=this.generateIS(o,i,O)),G=this.remuxAudio(o,q,this.isAudioContiguous,m,le||Re||N===g.PlaylistLevelType.AUDIO?ne:void 0),Re){var me=G?G.endPTS-G.startPTS:0;i.inputTimeScale||(E.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),W=this.generateIS(o,i,O)),B=this.remuxVideo(i,ne,fe,me)}}else Re&&(B=this.remuxVideo(i,ne,fe,0));B&&(B.firstKeyFrame=Ze,B.independent=Ze!==-1)}}return this.ISGenerated&&(d.samples.length&&(Y=this.remuxID3(d,O)),A.samples.length&&(z=this.remuxText(A,O))),{audio:G,video:B,initSegment:W,independent:V,text:z,id3:Y}},_.generateIS=function(o,i,d){var A=o.samples,O=i.samples,m=this.typeSupported,k={},N=!Object(j.isFiniteNumber)(this._initPTS),B="audio/mp4",G,W,z;if(N&&(G=W=Infinity),o.config&&A.length&&(o.timescale=o.samplerate,o.isAAC||(m.mpeg?(B="audio/mpeg",o.codec=""):m.mp3&&(o.codec="mp3")),k.audio={id:"audio",container:B,codec:o.codec,initSegment:!o.isAAC&&m.mpeg?new Uint8Array(0):S.default.initSegment([o]),metadata:{channelCount:o.channelCount}},N&&(z=o.inputTimeScale,G=W=A[0].pts-Math.round(z*d))),i.sps&&i.pps&&O.length&&(i.timescale=i.inputTimeScale,k.video={id:"main",container:"video/mp4",codec:i.codec,initSegment:S.default.initSegment([i]),metadata:{width:i.width,height:i.height}},N)){z=i.inputTimeScale;var Y=this.getVideoStartPts(O),V=Math.round(z*d);W=Math.min(W,h(O[0].dts,Y)-V),G=Math.min(G,Y-V)}if(Object.keys(k).length)return this.ISGenerated=!0,N&&(this._initPTS=G,this._initDTS=W),{tracks:k,initPTS:G,timescale:z}},_.remuxVideo=function(o,i,d,A){var O=o.inputTimeScale,m=o.samples,k=[],N=m.length,B=this._initPTS,G=this.nextAvcDts,W=8,z,Y,V,q=Number.POSITIVE_INFINITY,ne=Number.NEGATIVE_INFINITY,ve=0,le=!1;if(!d||G===null){var be=i*O,we=m[0].pts-h(m[0].dts,m[0].pts);G=be-we}for(var Re=0;Rege.pts){var fe=9e4*.2;ve=Math.max(Math.min(ve,ge.pts-ge.dts),-1*fe)}ge.dts0?Re-1:Re].dts&&(le=!0)}le&&m.sort(function(rn,St){var Tt=rn.dts-St.dts,ct=rn.pts-St.pts;return Tt||ct}),Y=m[0].dts,V=m[m.length-1].dts;var Ze=Math.round((V-Y)/(N-1));if(ve<0){if(veZe,Le=de<-1;if(me||Le){me?E.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(de,!0)+" ms ("+de+"dts) hole between fragments detected, filling it"):E.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(-de,!0)+" ms ("+de+"dts) overlapping between fragments detected"),Y=G;var rt=m[0].pts-de;m[0].dts=Y,m[0].pts=rt,E.logger.log("Video: First PTS/DTS adjusted: "+Object(r.toMsFromMpegTsClock)(rt,!0)+"/"+Object(r.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(r.toMsFromMpegTsClock)(de,!0)+" ms")}}t&&(Y=Math.max(0,Y));for(var Oe=0,Ge=0,at=0;at0?De-1:De].dts;if(ue.stretchShortVideoTrack&&this.nextAudioPts!==null){var _e=Math.floor(ue.maxBufferHole*O),Ye=(A?q+A*O:this.nextAudioPts)-ot.pts;Ye>_e?(z=Ye-pe,z<0&&(z=pe),E.logger.log("[mp4-remuxer]: It is approximately "+Ye/90+" ms to the next segment; using duration "+z/90+" ms for the last video frame.")):z=pe}else z=pe}var Ue=Math.round(ot.pts-ot.dts);k.push(new D(ot.key,z,Je,Ue))}if(k.length&&v&&v<70){var Mt=k[0].flags;Mt.dependsOn=2,Mt.isNonSync=0}console.assert(z!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=G=V+z,this.isVideoContiguous=!0;var tn=S.default.moof(o.sequenceNumber++,Y,l({},o,{samples:k})),sn="video",nn={data1:tn,data2:un,startPTS:q/O,endPTS:(ne+z)/O,startDTS:Y/O,endDTS:G/O,type:sn,hasAudio:!1,hasVideo:!0,nb:k.length,dropped:o.dropped};return o.samples=[],o.dropped=0,console.assert(un.length,"MDAT length must not be zero"),nn},_.remuxAudio=function(o,i,d,A,O){var m=o.inputTimeScale,k=o.samplerate?o.samplerate:m,N=m/k,B=o.isAAC?u:p,G=B*N,W=this._initPTS,z=!o.isAAC&&this.typeSupported.mpeg,Y=[],V=o.samples,q=z?0:8,ne=this.nextAudioPts||-1,ve=i*m;if(this.isAudioContiguous=d=d||V.length&&ne>0&&(A&&Math.abs(ve-ne)<9e3||Math.abs(h(V[0].pts-W,ve)-ne)<20*G),V.forEach(function(Te){Te.pts=h(Te.pts-W,ve)}),!d||ne<0){if(V=V.filter(function(Te){return Te.pts>=0}),!V.length)return;O===0?ne=0:A?ne=Math.max(0,ve):ne=V[0].pts}if(o.isAAC)for(var le=O!==void 0,be=this.config.maxAudioFramesDrift,we=0,Re=ne;we=be*G&&Ot0){Ge+=q;try{Oe=new Uint8Array(Ge)}catch(Te){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:c.ErrorTypes.MUX_ERROR,details:c.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ge,reason:"fail allocating audio mdat "+Ge});return}if(!z){var un=new DataView(Oe.buffer);un.setUint32(0,Ge),Oe.set(S.default.types.mdat,4)}}else return;Oe.set(Kt,q);var Ie=Kt.byteLength;q+=Ie,Y.push(new D(!0,B,Ie,0)),rt=Lt}var De=Y.length;if(!De)return;var ot=Y[Y.length-1];this.nextAudioPts=ne=rt+N*ot.duration;var Et=z?new Uint8Array(0):S.default.moof(o.sequenceNumber++,Le/N,l({},o,{samples:Y}));o.samples=[];var Je=Le/m,ft=ne/m,Me="audio",xe={data1:Et,data2:Oe,startPTS:Je,endPTS:ft,startDTS:Je,endDTS:ft,type:Me,hasAudio:!0,hasVideo:!1,nb:De};return this.isAudioContiguous=!0,console.assert(Oe.length,"MDAT length must not be zero"),xe},_.remuxEmptyAudio=function(o,i,d,A){var O=o.inputTimeScale,m=o.samplerate?o.samplerate:O,k=O/m,N=this.nextAudioPts,B=(N!==null?N:A.startDTS*O)+this._initDTS,G=A.endDTS*O+this._initDTS,W=k*u,z=Math.ceil((G-B)/W),Y=T.default.getSilentFrame(o.manifestCodec||o.codec,o.channelCount);if(E.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){E.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var V=[],q=0;q4294967296;)I+=f;return I}function y(I){for(var _=0;_0?this.lastEndDTS=o:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var i=!!I.audio,d=!!I.video,A="";i&&(A+="audio"),d&&(A+="video");var O={data1:D,startPTS:f,startDTS:f,endPTS:o,endDTS:o,type:A,hasAudio:i,hasVideo:d,nb:1,dropped:0};return y.audio=O.type==="audio"?O:void 0,y.video=O.type!=="audio"?O:void 0,y.text=a,y.id3=v,y.initSegment=C,y},r}(),E=function(l,b,u){return Object(T.getStartDTS)(l,b)-u};function g(r,l){var b=r==null?void 0:r.codec;return b&&b.length>4?b:b==="hvc1"?"hvc1.1.c.L120.90":b==="av01"?"av01.0.04M.08":b==="avc1"||l===S.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}F.default=c},"./src/task-loop.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"default",function(){return j});var j=function(){function T(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var S=T.prototype;return S.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},S.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},S.onHandlerDestroyed=function(){},S.hasInterval=function(){return!!this._tickInterval},S.hasNextTick=function(){return!!this._tickTimer},S.setInterval=function(c){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,c),!0)},S.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},S.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},S.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},S.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},S.doTick=function(){},T}()},"./src/types/cmcd.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"CMCDVersion",function(){return j}),R.d(F,"CMCDObjectType",function(){return T}),R.d(F,"CMCDStreamingFormat",function(){return S}),R.d(F,"CMCDStreamType",function(){return M});var j=1,T;(function(c){c.MANIFEST="m",c.AUDIO="a",c.VIDEO="v",c.MUXED="av",c.INIT="i",c.CAPTION="c",c.TIMED_TEXT="tt",c.KEY="k",c.OTHER="o"})(T||(T={}));var S;(function(c){c.DASH="d",c.HLS="h",c.SMOOTH="s",c.OTHER="o"})(S||(S={}));var M;(function(c){c.VOD="v",c.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"HlsSkip",function(){return S}),R.d(F,"getSkipValue",function(){return M}),R.d(F,"HlsUrlParameters",function(){return c}),R.d(F,"Level",function(){return E});function j(g,r){for(var l=0;lNumber.MAX_SAFE_INTEGER?Infinity:r},c.hexadecimalInteger=function(g){if(this[g]){var r=(this[g]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var l=new Uint8Array(r.length/2),b=0;bNumber.MAX_SAFE_INTEGER?Infinity:r},c.decimalFloatingPoint=function(g){return parseFloat(this[g])},c.optionalFloat=function(g,r){var l=this[g];return l?parseFloat(l):r},c.enumeratedString=function(g){return this[g]},c.bool=function(g){return this[g]==="YES"},c.decimalResolution=function(g){var r=j.exec(this[g]);return r===null?void 0:{width:parseInt(r[1],10),height:parseInt(r[2],10)}},M.parseAttrList=function(g){var r,l={},b='"';for(T.lastIndex=0;(r=T.exec(g))!==null;){var u=r[2];u.indexOf(b)===0&&u.lastIndexOf(b)===u.length-1&&(u=u.slice(1,-1)),l[r[1]]=u}return l},M}()},"./src/utils/binary-search.ts":function(X,F,R){"use strict";R.r(F);var j={search:function(S,M){for(var c=0,E=S.length-1,g=null,r=null;c<=E;){g=(c+E)/2|0,r=S[g];var l=M(r);if(l>0)c=g+1;else if(l<0)E=g-1;else return r}return null}};F.default=j},"./src/utils/buffer-helper.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"BufferHelper",function(){return S});var j=R("./src/utils/logger.ts"),T={length:0,start:function(){return 0},end:function(){return 0}},S=function(){function M(){}return M.isBuffered=function(E,g){try{if(E){for(var r=M.getBuffered(E),l=0;l=r.start(l)&&g<=r.end(l))return!0}}catch(b){}return!1},M.bufferInfo=function(E,g,r){try{if(E){var l=M.getBuffered(E),b=[],u;for(u=0;up&&(l[u-1].end=E[b].end):l.push(E[b])}else l.push(E[b])}else l=E;for(var v=0,a,t=g,s=g,h=0;h=y&&g=d&&j.logger.log(this.time+" ["+d+"] "+A)},f}(),v=function(o){for(var i=[],d=0;dc&&(this.logger.log(u.DEBUG,"Too large cursor position "+this.pos),this.pos=c)},o.moveCursor=function(d){var A=this.pos+d;if(d>1)for(var O=this.pos+1;O=144&&this.backSpace();var A=S(d);if(this.pos>=c){this.logger.log(u.ERROR,"Cannot insert "+d.toString(16)+" ("+A+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(A,this.currPenState),this.moveCursor(1)},o.clearFromPos=function(d){var A;for(A=d;A0&&(d?O="["+A.join(" | ")+"]":O=A.join(` `)),O},o.getTextAndFormat=function(){return this.rows},f}(),y=function(){function f(i,d,A){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=i,this.outputFilter=d,this.mode=null,this.verbose=0,this.displayedMemory=new h(A),this.nonDisplayedMemory=new h(A),this.lastOutputScreen=new h(A),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=A}var o=f.prototype;return o.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},o.getHandler=function(){return this.outputFilter},o.setHandler=function(d){this.outputFilter=d},o.setPAC=function(d){this.writeScreen.setPAC(d)},o.setBkgData=function(d){this.writeScreen.setBkgData(d)},o.setMode=function(d){if(d===this.mode)return;this.mode=d,this.logger.log(u.INFO,"MODE="+d),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=d},o.insertChars=function(d){for(var A=0;A=46,A.italics)A.foreground="white";else{var O=Math.floor(d/2)-16,m=["white","green","blue","cyan","red","yellow","magenta"];A.foreground=m[O]}this.logger.log(u.INFO,"MIDROW: "+JSON.stringify(A)),this.writeScreen.setPen(A)},o.outputDataUpdate=function(d){d===void 0&&(d=!1);var A=this.logger.time;if(A===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=A:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,A,this.lastOutputScreen),d&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:A),this.lastOutputScreen.copy(this.displayedMemory))},o.cueSplitAtTime=function(d){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,d,this.displayedMemory),this.cueStartTime=d))},f}(),D=function(){function f(i,d,A){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var O=new p;this.channels=[null,new y(i,d,O),new y(i+1,A,O)],this.cmdHistory=_(),this.logger=O}var o=f.prototype;return o.getHandler=function(d){return this.channels[d].getHandler()},o.setHandler=function(d,A){this.channels[d].setHandler(A)},o.addData=function(d,A){var O,m,k,N=!1;this.logger.time=d;for(var B=0;B ("+v([m,k])+")"),O=this.parseCmd(m,k),O||(O=this.parseMidrow(m,k)),O||(O=this.parsePAC(m,k)),O||(O=this.parseBackgroundAttributes(m,k)),!O&&(N=this.parseChars(m,k),N)){var G=this.currentChannel;if(G&&G>0){var W=this.channels[G];W.insertChars(N)}else this.logger.log(u.WARNING,"No channel found yet. TEXT-MODE?")}!O&&!N&&this.logger.log(u.WARNING,"Couldn't parse cleaned data "+v([m,k])+" orig: "+v([A[B],A[B+1]]))}},o.parseCmd=function(d,A){var O=this.cmdHistory,m=(d===20||d===28||d===21||d===29)&&A>=32&&A<=47,k=(d===23||d===31)&&A>=33&&A<=35;if(!(m||k))return!1;if(I(d,A,O))return C(null,null,O),this.logger.log(u.DEBUG,"Repeated command ("+v([d,A])+") is dropped"),!0;var N=d===20||d===21||d===23?1:2,B=this.channels[N];return d===20||d===21||d===28||d===29?A===32?B.ccRCL():A===33?B.ccBS():A===34?B.ccAOF():A===35?B.ccAON():A===36?B.ccDER():A===37?B.ccRU(2):A===38?B.ccRU(3):A===39?B.ccRU(4):A===40?B.ccFON():A===41?B.ccRDC():A===42?B.ccTR():A===43?B.ccRTD():A===44?B.ccEDM():A===45?B.ccCR():A===46?B.ccENM():A===47&&B.ccEOC():B.ccTO(A-32),C(d,A,O),this.currentChannel=N,!0},o.parseMidrow=function(d,A){var O=0;if((d===17||d===25)&&A>=32&&A<=47){if(d===17?O=1:O=2,O!==this.currentChannel)return this.logger.log(u.ERROR,"Mismatch channel in midrow parsing"),!1;var m=this.channels[O];return m?(m.ccMIDROW(A),this.logger.log(u.DEBUG,"MIDROW ("+v([d,A])+")"),!0):!1}return!1},o.parsePAC=function(d,A){var O,m=this.cmdHistory,k=(d>=17&&d<=23||d>=25&&d<=31)&&A>=64&&A<=127,N=(d===16||d===24)&&A>=64&&A<=95;if(!(k||N))return!1;if(I(d,A,m))return C(null,null,m),!0;var B=d<=23?1:2;A>=64&&A<=95?O=B===1?E[d]:r[d]:O=B===1?g[d]:l[d];var G=this.channels[B];return G?(G.setPAC(this.interpretPAC(O,A)),C(d,A,m),this.currentChannel=B,!0):!1},o.interpretPAC=function(d,A){var O,m={color:null,italics:!1,indent:null,underline:!1,row:d};return A>95?O=A-96:O=A-64,m.underline=(O&1)===1,O<=13?m.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(O/2)]:O<=15?(m.italics=!0,m.color="white"):m.indent=Math.floor((O-16)/2)*4,m},o.parseChars=function(d,A){var O,m=null,k=null;if(d>=25?(O=2,k=d-8):(O=1,k=d),k>=17&&k<=19){var N;k===17?N=A+80:k===18?N=A+112:N=A+144,this.logger.log(u.INFO,"Special char '"+S(N)+"' in channel "+O),m=[N]}else d>=32&&d<=127&&(m=A===0?[d]:[d,A]);if(m){var B=v(m);this.logger.log(u.DEBUG,"Char codes = "+B.join(",")),C(d,A,this.cmdHistory)}return m},o.parseBackgroundAttributes=function(d,A){var O=(d===16||d===24)&&A>=32&&A<=47,m=(d===23||d===31)&&A>=45&&A<=47;if(!(O||m))return!1;var k,N={};d===16||d===24?(k=Math.floor((A-32)/2),N.background=b[k],A%2===1&&(N.background=N.background+"_semi")):A===45?N.background="transparent":(N.foreground="black",A===47&&(N.underline=!0));var B=d<=23?1:2,G=this.channels[B];return G.setBkgData(N),C(d,A,this.cmdHistory),!0},o.reset=function(){for(var d=0;d=16?t--:t++;var C=Object(j.fixLineBreaks)(s.trim()),I=Object(T.generateCueId)(r,l,C);(!g||!g.cues||!g.cues.getCueById(I))&&(v=new h(r,l,C),v.id=I,v.line=y+1,v.align="left",v.position=10+Math.min(80,Math.floor(t*8/32)*10),u.push(v))}return g&&u.length&&(u.sort(function(_,f){return _.line==="auto"||f.line==="auto"?0:_.line>8&&f.line>8?f.line-_.line:_.line-f.line}),u.forEach(function(_){return Object(S.addCueToTrack)(g,_)})),u}};F.default=c},"./src/utils/discontinuities.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"findFirstFragWithCC",function(){return M}),R.d(F,"shouldAlignOnDiscontinuities",function(){return c}),R.d(F,"findDiscontinuousReferenceFrag",function(){return E}),R.d(F,"adjustSlidingStart",function(){return r}),R.d(F,"alignStream",function(){return l}),R.d(F,"alignPDT",function(){return u}),R.d(F,"alignFragmentByPDTDelta",function(){return p}),R.d(F,"alignMediaPlaylistByPDT",function(){return v});var j=R("./src/polyfills/number.ts"),T=R("./src/utils/logger.ts"),S=R("./src/controller/level-helper.ts");function M(a,t){for(var s=null,h=0,y=a.length;hs.startCC||a&&a.cc=this.minWeight_},M.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},M.destroy=function(){},S}();F.default=T},"./src/utils/ewma.ts":function(X,F,R){"use strict";R.r(F);var j=function(){function T(M,c,E){c===void 0&&(c=0),E===void 0&&(E=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=M,this.alpha_=M?Math.exp(Math.log(.5)/M):0,this.estimate_=c,this.totalWeight_=E}var S=T.prototype;return S.sample=function(c,E){var g=Math.pow(this.alpha_,c);this.estimate_=E*(1-g)+g*this.estimate_,this.totalWeight_+=c},S.getTotalWeight=function(){return this.totalWeight_},S.getEstimate=function(){if(this.alpha_){var c=1-Math.pow(this.alpha_,this.totalWeight_);if(c)return this.estimate_/c}return this.estimate_},T}();F.default=j},"./src/utils/fetch-loader.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"fetchSupported",function(){return p});var j=R("./src/polyfills/number.ts"),T=R("./src/loader/load-stats.ts"),S=R("./src/demux/chunk-cache.ts");function M(h,y){h.prototype=Object.create(y.prototype),h.prototype.constructor=h,l(h,y)}function c(h){var y=typeof Map=="function"?new Map:void 0;return c=function(C){if(C===null||!r(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(typeof y!="undefined"){if(y.has(C))return y.get(C);y.set(C,I)}function I(){return E(C,arguments,b(this).constructor)}return I.prototype=Object.create(C.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),l(I,C)},c(h)}function E(h,y,D){return g()?E=Reflect.construct:E=function(I,_,f){var o=[null];o.push.apply(o,_);var i=Function.bind.apply(I,o),d=new i;return f&&l(d,f.prototype),d},E.apply(null,arguments)}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}function r(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function l(h,y){return l=Object.setPrototypeOf||function(C,I){return C.__proto__=I,C},l(h,y)}function b(h){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},b(h)}function u(){return u=Object.assign||function(h){for(var y=1;y=f&&o(I,_,i.flush(),C)):o(I,_,k,C),O()}).catch(function(){return Promise.reject()})};return A()},h}();function a(h,y){var D={method:"GET",mode:"cors",credentials:"same-origin",signal:y,headers:new self.Headers(u({},h.headers))};return h.rangeEnd&&D.headers.set("Range","bytes="+h.rangeStart+"-"+String(h.rangeEnd-1)),D}function t(h,y){return new self.Request(h.url,y)}var s=function(h){M(y,h);function y(D,C,I){var _;return _=h.call(this,D)||this,_.code=void 0,_.details=void 0,_.code=C,_.details=I,_}return y}(c(Error));F.default=v},"./src/utils/imsc1-ttml-parser.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"IMSC1_CODEC",function(){return r}),R.d(F,"parseIMSC1",function(){return p});var j=R("./src/utils/mp4-tools.ts"),T=R("./src/utils/vttparser.ts"),S=R("./src/utils/vttcue.ts"),M=R("./src/demux/id3.ts"),c=R("./src/utils/timescale-conversion.ts"),E=R("./src/utils/webvtt-parser.ts");function g(){return g=Object.assign||function(f){for(var o=1;o"):j}function c(r){for(var l=arguments.length,b=new Array(l>1?l-1:0),u=1;u>24,y[D+1]=C>>16&255,y[D+2]=C>>8&255,y[D+3]=C&255}function l(y,D){var C=[];if(!D.length)return C;var I,_,f;"data"in y?(I=y.data,_=y.start,f=y.end):(I=y,_=0,f=I.byteLength);for(var o=_;o1?o+i:f;if(d===D[0])if(D.length===1)C.push({data:I,start:o+8,end:A});else{var O=l({data:I,start:o+8,end:A},D.slice(1));O.length&&M.apply(C,O)}o=A}return C}function b(y){var D=l(y,["moov"]),C=D[0],I=C?C.end:null,_=l(y,["sidx"]);if(!_||!_[0])return null;var f=[],o=_[0],i=o.data[0],d=i===0?8:16,A=g(o,d);d+=4;var O=0,m=0;i===0?d+=8:d+=16,d+=2;var k=o.end+m,N=E(o,d);d+=2;for(var B=0;B>>31;if(Y===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var V=g(o,G);G+=4,f.push({referenceSize:z,subsegmentDuration:V,info:{duration:V/A,start:k,end:k+z-1}}),k+=z,G+=4,d=G}return{earliestPresentationTime:O,timescale:A,version:i,referencesCount:N,references:f,moovEndOffset:I}}function u(y){for(var D=[],C=l(y,["moov","trak"]),I=0;Ic)&&(this.startTime=c),this.endTime=E,this.screen=g,this.timelineController.createCaptionsTrack(this.trackName)},S.reset=function(){this.cueRanges=[]},T}()},"./src/utils/texttrack-utils.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"sendAddTrackEvent",function(){return T}),R.d(F,"addCueToTrack",function(){return S}),R.d(F,"clearCurrentCues",function(){return M}),R.d(F,"removeCuesInRange",function(){return c}),R.d(F,"getCuesInRange",function(){return g});var j=R("./src/utils/logger.ts");function T(r,l){var b;try{b=new Event("addtrack")}catch(u){b=document.createEvent("Event"),b.initEvent("addtrack",!1,!1)}b.track=r,l.dispatchEvent(b)}function S(r,l){var b=r.mode;if(b==="disabled"&&(r.mode="hidden"),r.cues&&!r.cues.getCueById(l.id))try{if(r.addCue(l),!r.cues.getCueById(l.id))throw new Error("addCue is failed for: "+l)}catch(p){j.logger.debug("[texttrack-utils]: "+p);var u=new self.TextTrackCue(l.startTime,l.endTime,l.text);u.id=l.id,r.addCue(u)}b==="disabled"&&(r.mode=b)}function M(r){var l=r.mode;if(l==="disabled"&&(r.mode="hidden"),r.cues)for(var b=r.cues.length;b--;)r.removeCue(r.cues[b]);l==="disabled"&&(r.mode=l)}function c(r,l,b){var u=r.mode;if(u==="disabled"&&(r.mode="hidden"),r.cues&&r.cues.length>0)for(var p=g(r.cues,l,b),v=0;vr[b].endTime)return-1;for(var u=0,p=b;u<=p;){var v=Math.floor((p+u)/2);if(lr[v].startTime&&u-1)for(var v=p,a=r.length;v=l&&t.endTime<=b)u.push(t);else if(t.startTime>b)return u}return u}},"./src/utils/time-ranges.ts":function(X,F,R){"use strict";R.r(F);var j={toString:function(S){for(var M="",c=S.length,E=0;E1?l-1:0),u=1;u100)throw new Error("Position must be between 0 and 100.");f=O,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",E({},p,{get:function(){return o},set:function(O){var m=c(O);if(!m)throw new SyntaxError("An invalid or illegal string was specified.");o=m,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",E({},p,{get:function(){return i},set:function(O){if(O<0||O>100)throw new Error("Size must be between 0 and 100.");i=O,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",E({},p,{get:function(){return d},set:function(O){var m=c(O);if(!m)throw new SyntaxError("An invalid or illegal string was specified.");d=m,this.hasBeenReset=!0}})),u.displayState=void 0}return g.prototype.getCueAsHTML=function(){var r=self.WebVTT;return r.convertCueToDOMTree(self,this.text)},g}()},"./src/utils/vttparser.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"parseTimeStamp",function(){return S}),R.d(F,"fixLineBreaks",function(){return l}),R.d(F,"VTTParser",function(){return b});var j=R("./src/utils/vttcue.ts"),T=function(){function u(){}var p=u.prototype;return p.decode=function(a,t){if(!a)return"";if(typeof a!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))},u}();function S(u){function p(a,t,s,h){return(a|0)*3600+(t|0)*60+(s|0)+parseFloat(h||0)}var v=u.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return v?parseFloat(v[2])>59?p(v[2],v[3],0,v[4]):p(v[1],v[2],v[3],v[4]):null}var M=function(){function u(){this.values=Object.create(null)}var p=u.prototype;return p.set=function(a,t){!this.get(a)&&t!==""&&(this.values[a]=t)},p.get=function(a,t,s){return s?this.has(a)?this.values[a]:t[s]:this.has(a)?this.values[a]:t},p.has=function(a){return a in this.values},p.alt=function(a,t,s){for(var h=0;h=0&&s<=100)return this.set(a,s),!0}return!1},u}();function c(u,p,v,a){var t=a?u.split(a):[u];for(var s in t){if(typeof t[s]!="string")continue;var h=t[s].split(v);if(h.length!==2)continue;var y=h[0],D=h[1];p(y,D)}}var E=new j.default(0,0,""),g=E.align==="middle"?"middle":"center";function r(u,p,v){var a=u;function t(){var y=S(u);if(y===null)throw new Error("Malformed timestamp: "+a);return u=u.replace(/^[^\sa-zA-Z-]+/,""),y}function s(y,D){var C=new M;c(y,function(f,o){var i;switch(f){case"region":for(var d=v.length-1;d>=0;d--)if(v[d].id===o){C.set(f,v[d].region);break}break;case"vertical":C.alt(f,o,["rl","lr"]);break;case"line":i=o.split(","),C.integer(f,i[0]),C.percent(f,i[0])&&C.set("snapToLines",!1),C.alt(f,i[0],["auto"]),i.length===2&&C.alt("lineAlign",i[1],["start",g,"end"]);break;case"position":i=o.split(","),C.percent(f,i[0]),i.length===2&&C.alt("positionAlign",i[1],["start",g,"end","line-left","line-right","auto"]);break;case"size":C.percent(f,o);break;case"align":C.alt(f,o,["start",g,"end","left","right"]);break}},/:/,/\s/),D.region=C.get("region",null),D.vertical=C.get("vertical","");var I=C.get("line","auto");I==="auto"&&E.line===-1&&(I=-1),D.line=I,D.lineAlign=C.get("lineAlign","start"),D.snapToLines=C.get("snapToLines",!0),D.size=C.get("size",100),D.align=C.get("align",g);var _=C.get("position","auto");_==="auto"&&E.position===50&&(_=D.align==="start"||D.align==="left"?0:D.align==="end"||D.align==="right"?100:50),D.position=_}function h(){u=u.replace(/^\s+/,"")}if(h(),p.startTime=t(),h(),u.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+a);u=u.substr(3),h(),p.endTime=t(),h(),s(u,p)}function l(u){return u.replace(//gi,` `)}var b=function(){function u(){this.state="INITIAL",this.buffer="",this.decoder=new T,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var p=u.prototype;return p.parse=function(a){var t=this;a&&(t.buffer+=t.decoder.decode(a,{stream:!0}));function s(){var _=t.buffer,f=0;for(_=l(_);f<_.length&&_[f]!=="\r"&&_[f]!==` @@ -384,4 +384,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,a.parse()),a.state==="INITIAL"||a.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){a.onparsingerror&&a.onparsingerror(t)}return a.onflush&&a.onflush(),this},u}()},"./src/utils/webvtt-parser.ts":function(X,F,R){"use strict";R.r(F),R.d(F,"generateCueId",function(){return b}),R.d(F,"parseWebVTT",function(){return p});var j=R("./src/polyfills/number.ts"),T=R("./src/utils/vttparser.ts"),S=R("./src/demux/id3.ts"),M=R("./src/utils/timescale-conversion.ts"),c=R("./src/remux/mp4-remuxer.ts"),E=/\r\n|\n\r|\n|\r/g,g=function(a,t,s){return s===void 0&&(s=0),a.substr(s,t.length)===t},r=function(a){var t=parseInt(a.substr(-3)),s=parseInt(a.substr(-6,2)),h=parseInt(a.substr(-9,2)),y=a.length>9?parseInt(a.substr(0,a.indexOf(":"))):0;if(!Object(j.isFiniteNumber)(t)||!Object(j.isFiniteNumber)(s)||!Object(j.isFiniteNumber)(h)||!Object(j.isFiniteNumber)(y))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+a);return t+=1e3*s,t+=60*1e3*h,t+=60*60*1e3*y,t},l=function(a){for(var t=5381,s=a.length;s;)t=t*33^a.charCodeAt(--s);return(t>>>0).toString()};function b(v,a,t){return l(v.toString())+l(a.toString())+l(t)}var u=function(a,t,s){var h=a[t],y=a[h.prevCC];if(!y||!y.new&&h.new){a.ccOffset=a.presentationOffset=h.start,h.new=!1;return}for(;(D=y)!==null&&D!==void 0&&D.new;){var D;a.ccOffset+=h.start-y.start,h.new=!1,h=y,y=a[h.prevCC]}a.presentationOffset=s};function p(v,a,t,s,h,y,D,C){var I=new T.VTTParser,_=Object(S.utf8ArrayToStr)(new Uint8Array(v)).trim().replace(E,` `).split(` `),f=[],o=Object(M.toMpegTsClockFromTimescale)(a,t),i="00:00.000",d=0,A=0,O,m=!0,k=!1;I.oncue=function(N){var B=s[h],G=s.ccOffset,W=(d-o)/9e4;if(B!=null&&B.new&&(A!==void 0?G=s.ccOffset=B.start:u(s,h,W)),W&&(G=W-s.presentationOffset),k){var z=N.endTime-N.startTime,Y=Object(c.normalizePts)((N.startTime+G-A)*9e4,y*9e4)/9e4;N.startTime=Y,N.endTime=Y+z}var V=N.text.trim();N.text=decodeURIComponent(encodeURIComponent(V)),N.id||(N.id=b(N.startTime,N.endTime,V)),N.endTime>0&&f.push(N)},I.onparsingerror=function(N){O=N},I.onflush=function(){if(O){C(O);return}D(f)},_.forEach(function(N){if(m)if(g(N,"X-TIMESTAMP-MAP=")){m=!1,k=!0,N.substr(16).split(",").forEach(function(B){g(B,"LOCAL:")?i=B.substr(6):g(B,"MPEGTS:")&&(d=parseInt(B.substr(7)))});try{A=r(i)/1e3}catch(B){k=!1,O=B}return}else N===""&&(m=!1);I.parse(N+` -`)}),I.flush()}},"./src/utils/xhr-loader.ts":function(X,F,R){"use strict";R.r(F);var j=R("./src/utils/logger.ts"),T=R("./src/loader/load-stats.ts"),S=/^age:\s*[\d.]+\s*$/m,M=function(){function c(g){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=g?g.xhrSetup:null,this.stats=new T.LoadStats,this.retryDelay=0}var E=c.prototype;return E.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},E.abortInternal=function(){var r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))},E.abort=function(){var r;this.abortInternal(),(r=this.callbacks)!==null&&r!==void 0&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},E.load=function(r,l,b){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=l,this.callbacks=b,this.retryDelay=l.retryDelay,this.loadInternal()},E.loadInternal=function(){var r=this.config,l=this.context;if(!r)return;var b=this.loader=new self.XMLHttpRequest,u=this.stats;u.loading.first=0,u.loaded=0;var p=this.xhrSetup;try{if(p)try{p(b,l.url)}catch(t){b.open("GET",l.url,!0),p(b,l.url)}b.readyState||b.open("GET",l.url,!0);var v=this.context.headers;if(v)for(var a in v)b.setRequestHeader(a,v[a])}catch(t){this.callbacks.onError({code:b.status,text:t.message},l,b);return}l.rangeEnd&&b.setRequestHeader("Range","bytes="+l.rangeStart+"-"+(l.rangeEnd-1)),b.onreadystatechange=this.readystatechange.bind(this),b.onprogress=this.loadprogress.bind(this),b.responseType=l.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),b.send()},E.readystatechange=function(){var r=this.context,l=this.loader,b=this.stats;if(!r||!l)return;var u=l.readyState,p=this.config;if(b.aborted)return;if(u>=2)if(self.clearTimeout(this.requestTimeout),b.loading.first===0&&(b.loading.first=Math.max(self.performance.now(),b.loading.start)),u===4){l.onreadystatechange=null,l.onprogress=null;var v=l.status;if(v>=200&&v<300){b.loading.end=Math.max(self.performance.now(),b.loading.first);var a,t;if(r.responseType==="arraybuffer"?(a=l.response,t=a.byteLength):(a=l.responseText,t=a.length),b.loaded=b.total=t,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(b,r,a,l),!this.callbacks)return;var h={url:l.responseURL,data:a};this.callbacks.onSuccess(h,b,r,l)}else b.retry>=p.maxRetry||v>=400&&v<499?(j.logger.error(v+" while loading "+r.url),this.callbacks.onError({code:v,text:l.statusText},r,l)):(j.logger.warn(v+" while loading "+r.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,p.maxRetryDelay),b.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),p.timeout)},E.loadtimeout=function(){j.logger.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))},E.loadprogress=function(r){var l=this.stats;l.loaded=r.loaded,r.lengthComputable&&(l.total=r.total)},E.getCacheAge=function(){var r=null;if(this.loader&&S.test(this.loader.getAllResponseHeaders())){var l=this.loader.getResponseHeader("age");r=l?parseFloat(l):null}return r},c}();F.default=M}}).default})},vHTk:function(ze,te,P){ze.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(ze,te,P){var X=P("SrGk"),F=P("bYtY");function R(S,M){X.call(this,S,M,["filter"],"__filter_in_use__","_shadowDom")}F.inherits(R,X),R.prototype.addWithoutUpdate=function(S,M){if(M&&j(M.style)){var c;if(M._shadowDom){c=M._shadowDom;var E=this.getDefs(!0);E.contains(M._shadowDom)||this.addDom(c)}else c=this.add(M);this.markUsed(M);var g=c.getAttribute("id");S.style.filter="url(#"+g+")"}},R.prototype.add=function(S){var M=this.createElement("filter");return S._shadowDomId=S._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+S._shadowDomId),this.updateDom(S,M),this.addDom(M),M},R.prototype.update=function(S,M){var c=M.style;if(j(c)){var E=this;X.prototype.update.call(this,M,function(){E.updateDom(M,M._shadowDom)})}else this.remove(S,M)},R.prototype.remove=function(S,M){M._shadowDomId!=null&&(this.removeDom(S),S.style.filter="")},R.prototype.updateDom=function(S,M){var c=M.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var E=S.style,g=S.scale&&S.scale[0]||1,r=S.scale&&S.scale[1]||1,l,b,u,p;if(E.shadowBlur||E.shadowOffsetX||E.shadowOffsetY)l=E.shadowOffsetX||0,b=E.shadowOffsetY||0,u=E.shadowBlur,p=E.shadowColor;else if(E.textShadowBlur)l=E.textShadowOffsetX||0,b=E.textShadowOffsetY||0,u=E.textShadowBlur,p=E.textShadowColor;else{this.removeDom(M,E);return}c.setAttribute("dx",l/g),c.setAttribute("dy",b/r),c.setAttribute("flood-color",p);var v=u/2/g,a=u/2/r,t=v+" "+a;c.setAttribute("stdDeviation",t),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(u/2*200)+"%"),M.setAttribute("height",Math.ceil(u/2*200)+"%"),M.appendChild(c),S._shadowDom=M},R.prototype.markUsed=function(S){S._shadowDom&&X.prototype.markUsed.call(this,S._shadowDom)};function j(S){return S&&(S.shadowBlur||S.shadowOffsetX||S.shadowOffsetY||S.textShadowBlur||S.textShadowOffsetX||S.textShadowOffsetY)}var T=R;ze.exports=T},vWvF:function(ze,te,P){var X=P("Bq2U"),F=P("SUKs"),R=P("bYtY"),j=R.isString,T=R.isFunction,S=R.isObject,M=R.isArrayLike,c=R.indexOf,E=function(){this.animators=[]};E.prototype={constructor:E,animate:function(u,p){var v,a=!1,t=this,s=this.__zr;if(u){var h=u.split("."),y=t;a=h[0]==="shape";for(var D=0,C=h.length;D0&&u.animate(p,!1).when(t==null?500:t,y).delay(s||0)}function l(u,p,v,a){if(!p)u.attr(v,a);else{var t={};t[p]={},t[p][v]=a,u.attr(t)}}var b=E;ze.exports=b},wCXF:function(ze,te,P){"use strict";P.d(te,"a",function(){return zt});var X=P("rePB"),F=P("VTBJ"),R=P("KQm4"),j=P("U8pU"),T=P("ODXe"),S=P("q1tI"),M=P("TSYQ"),c=P.n(M),E=P("Gytx"),g=P.n(E),r=P("Kwbf"),l=P("t23M"),b=P("qx4F"),u=P("6eGT"),p=P("IBYe"),v=P("Ff2n"),a=P("c+Xe"),t=P("fyJ8"),s=P("biw7");function h(Ie,De,ot,Et,Je){var ft=ot[Ie]||{},Me=ot[De]||{},xe,Te;ft.fixed==="left"?xe=Et.left[Ie]:Me.fixed==="right"&&(Te=Et.right[De]);var oe=!1,ue=!1,pe=!1,_e=!1,Ye=ot[De+1],Ue=ot[Ie-1];if(Je==="rtl"){if(xe!==void 0){var Mt=Ue&&Ue.fixed==="left";_e=!Mt}else if(Te!==void 0){var tn=Ye&&Ye.fixed==="right";pe=!tn}}else if(xe!==void 0){var sn=Ye&&Ye.fixed==="left";oe=!sn}else if(Te!==void 0){var nn=Ue&&Ue.fixed==="right";ue=!nn}return{fixLeft:xe,fixRight:Te,lastFixLeft:oe,firstFixRight:ue,lastFixRight:pe,firstFixLeft:_e,isSticky:Et.isSticky}}var y=P("sR1s");function D(Ie){var De=Ie.cells,ot=Ie.stickyOffsets,Et=Ie.flattenColumns,Je=Ie.rowComponent,ft=Ie.cellComponent,Me=Ie.onHeaderRow,xe=Ie.index,Te=S.useContext(s.a),oe=Te.prefixCls,ue=Te.direction,pe;Me&&(pe=Me(De.map(function(Ye){return Ye.column}),xe));var _e=Object(y.a)(De.map(function(Ye){return Ye.column}));return S.createElement(Je,Object.assign({},pe),De.map(function(Ye,Ue){var Mt=Ye.column,tn=h(Ye.colStart,Ye.colEnd,Et,ot,ue),sn;return Mt&&Mt.onHeaderCell&&(sn=Ye.column.onHeaderCell(Mt)),S.createElement(t.a,Object.assign({},Ye,{ellipsis:Mt.ellipsis,align:Mt.align,component:ft,prefixCls:oe,key:_e[Ue]},tn,{additionalProps:sn,rowType:"header"}))}))}D.displayName="HeaderRow";var C=D;function I(Ie){var De=[];function ot(Me,xe){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;De[Te]=De[Te]||[];var oe=xe,ue=Me.filter(Boolean).map(function(pe){var _e={key:pe.key,className:pe.className||"",children:pe.title,column:pe,colStart:oe},Ye=1,Ue=pe.children;return Ue&&Ue.length>0&&(Ye=ot(Ue,oe,Te+1).reduce(function(Mt,tn){return Mt+tn},0),_e.hasSubColumns=!0),"colSpan"in pe&&(Ye=pe.colSpan),"rowSpan"in pe&&(_e.rowSpan=pe.rowSpan),_e.colSpan=Ye,_e.colEnd=_e.colStart+Ye-1,De[Te].push(_e),oe+=Ye,Ye});return ue}ot(Ie,0);for(var Et=De.length,Je=function(xe){De[xe].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=Et-xe)})},ft=0;ft=0;xe-=1){var Te=De[xe],oe=ot&&ot[xe],ue=oe&&oe[o.a];(Te||ue||Me)&&(Je.unshift(S.createElement("col",Object.assign({key:xe,style:{width:Te,minWidth:Te}},ue))),Me=!0)}return S.createElement("colgroup",null,Je)}var d=i;function A(Ie,De){return Object(S.useMemo)(function(){for(var ot=[],Et=0;Et1?$-1:0),ee=1;ee<$;ee++)re[ee-1]=arguments[ee];(H=Nr).onClick.apply(H,[U].concat(re))}},ca;typeof en=="string"?ca=en:typeof en=="function"&&(ca=en(Et,Je,pe));var Zt=Object(y.a)(ye),In=S.createElement(_e,Object.assign({},Nr,{"data-row-key":ft,className:c()(De,"".concat(tn,"-row"),"".concat(tn,"-row-level-").concat(pe),ca,Nr&&Nr.className),style:Object(F.a)(Object(F.a)({},ot),Nr?Nr.style:null),onClick:ta}),ye.map(function(J,U){var H=J.render,$=J.dataIndex,re=J.className,ee=Zt[U],Qe=sn[U],cn;U===(gn||0)&&ea&&(cn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(st*pe,"px")},className:"".concat(tn,"-row-indent indent-level-").concat(pe)}),xt({prefixCls:tn,expanded:kn,expandable:Mr,record:Et,onExpand:pt})));var Dn;return J.onCell&&(Dn=J.onCell(Et,Je)),S.createElement(t.a,Object.assign({className:re,ellipsis:J.ellipsis,align:J.align,component:Ye,prefixCls:tn,key:ee,record:Et,index:Je,dataIndex:$,render:H,shouldCellUpdate:J.shouldCellUpdate},Qe,{appendNode:cn,additionalProps:Dn}))})),hr;if(Fr&&(gr||kn)){var Or=Ut(Et,Je,pe+1,kn),_r=an&&an(Et,Je,pe);hr=S.createElement(G,{expanded:kn,className:c()("".concat(tn,"-expanded-row"),"".concat(tn,"-expanded-row-level-").concat(pe+1),_r),prefixCls:tn,fixHeader:rn,fixColumn:St,horizonScroll:Tt,component:_e,componentWidth:ct,cellComponent:Ye,colSpan:ye.length},Or)}var Sr;return Mr&&kn&&(Sr=(Et[Ue]||[]).map(function(J,U){var H=Me(J,U);return S.createElement(W,Object.assign({},Ie,{key:H,rowKey:H,record:J,recordKey:H,index:U,indent:pe+1}))})),S.createElement(S.Fragment,null,In,hr,Sr)}W.displayName="BodyRow";var z=W,Y=S.createContext(null),V=Y;function q(Ie){var De=Ie.columnKey,ot=Ie.onColumnResize,Et=S.useRef();return S.useEffect(function(){Et.current&&ot(De,Et.current.offsetWidth)},[]),S.createElement(l.a,{onResize:function(ft){var Me=ft.offsetWidth;ot(De,Me)}},S.createElement("td",{ref:Et,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ne(Ie){var De=Ie.data,ot=Ie.getRowKey,Et=Ie.measureColumnWidth,Je=Ie.expandedKeys,ft=Ie.onRow,Me=Ie.rowExpandable,xe=Ie.emptyNode,Te=Ie.childrenColumnName,oe=S.useContext(V),ue=oe.onColumnResize,pe=S.useContext(s.a),_e=pe.prefixCls,Ye=pe.getComponent,Ue=S.useContext(N),Mt=Ue.fixHeader,tn=Ue.horizonScroll,sn=Ue.flattenColumns,nn=Ue.componentWidth;return S.useMemo(function(){var rn=Ye(["body","wrapper"],"tbody"),St=Ye(["body","row"],"tr"),Tt=Ye(["body","cell"],"td"),ct;De.length?ct=De.map(function(Pe,Lt){var pt=ot(Pe,Lt);return S.createElement(z,{key:pt,rowKey:pt,record:Pe,recordKey:pt,index:Lt,rowComponent:St,cellComponent:Tt,expandedKeys:Je,onRow:ft,getRowKey:ot,rowExpandable:Me,childrenColumnName:Te})}):ct=S.createElement(G,{expanded:!0,className:"".concat(_e,"-placeholder"),prefixCls:_e,fixHeader:Mt,fixColumn:tn,horizonScroll:tn,component:St,componentWidth:nn,cellComponent:Tt,colSpan:sn.length},xe);var ye=Object(y.a)(sn);return S.createElement(rn,{className:"".concat(_e,"-tbody")},Et&&S.createElement("tr",{"aria-hidden":"true",className:"".concat(_e,"-measure-row"),style:{height:0}},ye.map(function(Pe){return S.createElement(q,{key:Pe,columnKey:Pe,onColumnResize:ue})})),ct)},[De,_e,ft,Et,Je,ot,Ye,nn,xe,sn])}var ve=S.memo(ne);ve.displayName="Body";var le=ve,be=P("wRmb"),we=P("xEkU"),Re=P.n(we);function ge(Ie){var De=Object(S.useRef)(Ie),ot=Object(S.useState)({}),Et=Object(T.a)(ot,2),Je=Et[1],ft=Object(S.useRef)(null),Me=Object(S.useRef)([]);function xe(Te){ft.current===null&&(Me.current=[],ft.current=Re()(function(){Me.current.forEach(function(oe){De.current=oe(De.current)}),ft.current=null,Je({})})),Me.current.push(Te)}return Object(S.useEffect)(function(){return function(){Re.a.cancel(ft.current)}},[]),[De.current,xe]}function fe(Ie){var De=Object(S.useRef)(Ie),ot=Object(S.useRef)(null);function Et(){window.clearTimeout(ot.current)}function Je(Me){De.current=Me,Et(),ot.current=window.setTimeout(function(){De.current=null,ot.current=null},100)}function ft(){return De.current}return Object(S.useEffect)(function(){return Et},[]),[Je,ft]}function Ze(Ie,De,ot){var Et=Object(S.useMemo)(function(){for(var Je=[],ft=[],Me=0,xe=0,Te=0;Te=pe&&(Mn=pe-_e),Me({scrollLeft:Mn/pe*(ue+2)}),nn.current.x=st.pageX},pt=function(){var st=Object(Oe.b)(ft.current).top,xt=st+ft.current.offsetHeight,Ut=document.documentElement.scrollTop+window.innerHeight;xt-Object(b.a)()<=Ut||st>=Ut-xe?sn(function(gn){return Object(F.a)(Object(F.a)({},gn),{},{isHiddenScrollBar:!0})}):sn(function(gn){return Object(F.a)(Object(F.a)({},gn),{},{isHiddenScrollBar:!1})})},en=function(st){sn(function(xt){return Object(F.a)(Object(F.a)({},xt),{},{scrollLeft:st/ue*pe||0})})};return S.useImperativeHandle(ot,function(){return{setScrollLeft:en}}),S.useEffect(function(){var an=Object(rt.a)(document.body,"mouseup",ye,!1),st=Object(rt.a)(document.body,"mousemove",Lt,!1);return pt(),function(){an.remove(),st.remove()}},[_e,Tt]),S.useEffect(function(){var an=Object(rt.a)(window,"scroll",pt,!1),st=Object(rt.a)(window,"resize",pt,!1);return function(){an.remove(),st.remove()}},[]),S.useEffect(function(){tn.isHiddenScrollBar||sn(function(an){var st,xt;return Object(F.a)(Object(F.a)({},an),{},{scrollLeft:ft.current.scrollLeft/((st=ft.current)===null||st===void 0?void 0:st.scrollWidth)*((xt=ft.current)===null||xt===void 0?void 0:xt.clientWidth)})})},[tn.isHiddenScrollBar]),ue<=pe||!_e||tn.isHiddenScrollBar?null:S.createElement("div",{style:{height:Object(b.a)(),width:pe,bottom:xe},className:"".concat(oe,"-sticky-scroll")},S.createElement("div",{onMouseDown:Pe,ref:Ye,className:c()("".concat(oe,"-sticky-scroll-bar"),Object(X.a)({},"".concat(oe,"-sticky-scroll-bar-active"),Tt)),style:{width:"".concat(_e,"px"),transform:"translate3d(".concat(tn.scrollLeft,"px, 0, 0)")}}))},at=S.forwardRef(Ge);function dt(Ie,De){return S.useMemo(function(){var ot=!!Ie;return{isSticky:ot,stickyClassName:ot?"".concat(De,"-sticky-header"):"",offsetHeader:Object(j.a)(Ie)==="object"&&Ie.offsetHeader||0,offsetScroll:Object(j.a)(Ie)==="object"&&Ie.offsetScroll||0}},[Ie,De])}var Pt=[],bt={},zt="rc-table-internal-hook",It=S.memo(function(Ie){var De=Ie.children;return De},function(Ie,De){return g()(Ie.props,De.props)?Ie.pingLeft!==De.pingLeft||Ie.pingRight!==De.pingRight:!1});function on(Ie){var De,ot=Ie.prefixCls,Et=Ie.className,Je=Ie.rowClassName,ft=Ie.style,Me=Ie.data,xe=Ie.rowKey,Te=Ie.scroll,oe=Ie.tableLayout,ue=Ie.direction,pe=Ie.title,_e=Ie.footer,Ye=Ie.summary,Ue=Ie.id,Mt=Ie.showHeader,tn=Ie.components,sn=Ie.emptyText,nn=Ie.onRow,rn=Ie.onHeaderRow,St=Ie.internalHooks,Tt=Ie.transformColumns,ct=Ie.internalRefs,ye=Ie.sticky,Pe=Me||Pt,Lt=!!Pe.length,pt=S.useState(0),en=Object(T.a)(pt,2),an=en[0],st=en[1];S.useEffect(function(){st(Object(b.a)())});var xt=S.useMemo(function(){return Object(y.c)(tn,{})},[tn]),Ut=S.useCallback(function(Nn,Jt){return Object(y.b)(xt,Nn)||Jt},[xt]),gn=S.useMemo(function(){return typeof xe=="function"?xe:function(Nn){var Jt=Nn&&Nn[xe];return Jt}},[xe]),Mn=Object(o.c)(Ie),cr=Mn.expandIcon,gr=Mn.expandedRowKeys,or=Mn.defaultExpandedRowKeys,kn=Mn.defaultExpandAllRows,Fr=Mn.expandedRowRender,ea=Mn.onExpand,Mr=Mn.onExpandedRowsChange,pr=Mn.expandRowByClick,Nr=Mn.rowExpandable,ta=Mn.expandIconColumnIndex,ca=Mn.expandedRowClassName,Zt=Mn.childrenColumnName,In=Mn.indentSize,hr=cr||me,Or=Zt||"children",_r=S.useMemo(function(){return Fr?"row":Ie.expandable&&St===zt&&Ie.expandable.__PARENT_RENDER_ICON__||Pe.some(function(Nn){return Nn&&Object(j.a)(Nn)==="object"&&Nn[Or]})?"nest":!1},[!!Fr,Pe]),Sr=S.useState(function(){return or||(kn?Le(Pe,gn,Or):[])}),J=Object(T.a)(Sr,2),U=J[0],H=J[1],$=S.useMemo(function(){return new Set(gr||U||[])},[gr,U]),re=S.useCallback(function(Nn){var Jt=gn(Nn,Pe.indexOf(Nn)),Bn,Tr=$.has(Jt);Tr?($.delete(Jt),Bn=Object(R.a)($)):Bn=[].concat(Object(R.a)($),[Jt]),H(Bn),ea&&ea(!Tr,Nn),Mr&&Mr(Bn)},[gn,$,Pe,ea,Mr]),ee=S.useState(0),Qe=Object(T.a)(ee,2),cn=Qe[0],Dn=Qe[1],Wn=Object(be.b)(Object(F.a)(Object(F.a)(Object(F.a)({},Ie),Mn),{},{expandable:!!Fr,expandedKeys:$,getRowKey:gn,onTriggerExpand:re,expandIcon:hr,expandIconColumnIndex:ta,direction:ue}),St===zt?Tt:null),fn=Object(T.a)(Wn,2),tr=fn[0],nr=fn[1],jr=S.useMemo(function(){return{columns:tr,flattenColumns:nr}},[tr,nr]),ua=S.useRef(),va=S.useRef(),zr=S.useRef(),zn=S.useState(!1),_n=Object(T.a)(zn,2),yn=_n[0],Hn=_n[1],mr=S.useState(!1),Xn=Object(T.a)(mr,2),Vn=Xn[0],Kn=Xn[1],lr=ge(new Map),Yn=Object(T.a)(lr,2),Jn=Yn[0],fr=Yn[1],Q=Object(y.a)(nr),Se=Q.map(function(Nn){return Jn.get(Nn)}),We=S.useMemo(function(){return Se},[Se.join("_")]),Xe=Ot(We,nr.length,ue),ut=Te&&Object(y.d)(Te.y),Ke=Te&&Object(y.d)(Te.x),lt=Ke&&nr.some(function(Nn){var Jt=Nn.fixed;return Jt}),mt=S.useRef(),ht=dt(ye,ot),_t=ht.isSticky,$t=ht.offsetHeader,Nt=ht.offsetScroll,vt=ht.stickyClassName,nt,Dt,Gt;ut&&(Dt={overflowY:"scroll",maxHeight:Te.y}),Ke&&(nt={overflowX:"auto"},ut||(Dt={overflowY:"hidden"}),Gt={width:Te.x===!0?"auto":Te.x,minWidth:"100%"});var Yt=S.useCallback(function(Nn,Jt){fr(function(Bn){var Tr=new Map(Bn);return Tr.set(Nn,Jt),Tr})},[]),wt=fe(null),bn=Object(T.a)(wt,2),En=bn[0],Zn=bn[1];function jt(Nn,Jt){if(!Jt)return;typeof Jt=="function"?Jt(Nn):Jt.scrollLeft!==Nn&&(Jt.scrollLeft=Nn)}var Wt=function(Jt){var Bn=Jt.currentTarget,Tr=Jt.scrollLeft,Lr=typeof Tr=="number"?Tr:Bn.scrollLeft,Br=Bn||bt;if(!Zn()||Zn()===Br){var oa;En(Br),jt(Lr,va.current),jt(Lr,zr.current),jt(Lr,(oa=mt.current)===null||oa===void 0?void 0:oa.setScrollLeft)}if(Bn){var Xr=Bn.scrollWidth,Yr=Bn.clientWidth;Hn(Lr>0),Kn(Lr0?[].concat(Object(F.a)(v),Object(F.a)(r(h).map(function(y){return Object(R.a)({fixed:s},y)}))):[].concat(Object(F.a)(v),[Object(R.a)(Object(R.a)({},a),{},{fixed:s})])},[])}function l(p){for(var v=!0,a=0;a=0;h-=1){var y=p[h];if(s&&y.fixed!=="right")s=!1;else if(!s&&y.fixed==="right"){Object(M.a)(!1,"Index ".concat(h+1," of `columns` missing `fixed='right'` prop."));break}}}function b(p){return p.map(function(v){var a=v.fixed,t=Object(j.a)(v,["fixed"]),s=a;return a==="left"?s="right":a==="right"&&(s="left"),Object(R.a)({fixed:s},t)})}function u(p,v){var a=p.prefixCls,t=p.columns,s=p.children,h=p.expandable,y=p.expandedKeys,D=p.getRowKey,C=p.onTriggerExpand,I=p.expandIcon,_=p.rowExpandable,f=p.expandIconColumnIndex,o=p.direction,i=p.expandRowByClick,d=T.useMemo(function(){return t||g(s)},[t,s]),A=T.useMemo(function(){if(h){var k,N=f||0,B=d[N],G=(k={},Object(X.a)(k,E.a,{className:"".concat(a,"-expand-icon-col")}),Object(X.a)(k,"title",""),Object(X.a)(k,"fixed",B?B.fixed:null),Object(X.a)(k,"className","".concat(a,"-row-expand-icon-cell")),Object(X.a)(k,"render",function(Y,V,q){var ne=D(V,q),ve=y.has(ne),le=_?_(V):!0,be=I({prefixCls:a,expanded:ve,expandable:le,record:V,onExpand:C});return i?T.createElement("span",{onClick:function(Re){return Re.stopPropagation()}},be):be}),k),W=d.slice();return N>=0&&W.splice(N,0,G),W}return d},[h,d,D,y,I,o]),O=T.useMemo(function(){var k=A;return v&&(k=v(k)),k.length||(k=[{render:function(){return null}}]),k},[v,A,o]),m=T.useMemo(function(){return o==="rtl"?b(r(O)):r(O)},[O,o]);return[O,m]}te.b=u},x6Kt:function(ze,te,P){var X=P("y+Vt"),F=P("VpOo"),R=P("nPnh"),j=R.subPixelOptimizeRect,T={},S=X.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,c){var E,g,r,l;this.subPixelOptimize?(j(T,c,this.style),E=T.x,g=T.y,r=T.width,l=T.height,T.r=c.r,c=T):(E=c.x,g=c.y,r=c.width,l=c.height),c.r?F.buildPath(M,c):M.rect(E,g,r,l),M.closePath();return}});ze.exports=S},xOL1:function(ze,te){ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y+Vt":function(ze,te,P){var X=P("Gev7"),F=P("bYtY"),R=P("IMiH"),j=P("2DNl"),T=P("3C/r"),S=T.prototype.getCanvasPattern,M=Math.abs,c=new R(!0);function E(r){X.call(this,r),this.path=null}E.prototype={constructor:E,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(r,l){var b=this.style,u=this.path||c,p=b.hasStroke(),v=b.hasFill(),a=b.fill,t=b.stroke,s=v&&!!a.colorStops,h=p&&!!t.colorStops,y=v&&!!a.image,D=p&&!!t.image;if(b.bind(r,this,l),this.setTransform(r),this.__dirty){var C;s&&(C=C||this.getBoundingRect(),this._fillGradient=b.getGradient(r,a,C)),h&&(C=C||this.getBoundingRect(),this._strokeGradient=b.getGradient(r,t,C))}s?r.fillStyle=this._fillGradient:y&&(r.fillStyle=S.call(a,r)),h?r.strokeStyle=this._strokeGradient:D&&(r.strokeStyle=S.call(t,r));var I=b.lineDash,_=b.lineDashOffset,f=!!r.setLineDash,o=this.getGlobalScale();if(u.setScale(o[0],o[1],this.segmentIgnoreThreshold),this.__dirtyPath||I&&!f&&p?(u.beginPath(r),I&&!f&&(u.setLineDash(I),u.setLineDashOffset(_)),this.buildPath(u,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(r.beginPath(),this.path.rebuildPath(r)),v)if(b.fillOpacity!=null){var i=r.globalAlpha;r.globalAlpha=b.fillOpacity*b.opacity,u.fill(r),r.globalAlpha=i}else u.fill(r);if(I&&f&&(r.setLineDash(I),r.lineDashOffset=_),p)if(b.strokeOpacity!=null){var i=r.globalAlpha;r.globalAlpha=b.strokeOpacity*b.opacity,u.stroke(r),r.globalAlpha=i}else u.stroke(r);I&&f&&r.setLineDash([]),b.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},buildPath:function(r,l,b){},createPathProxy:function(){this.path=new R},getBoundingRect:function(){var r=this._rect,l=this.style,b=!r;if(b){var u=this.path;u||(u=this.path=new R),this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape,!1)),r=u.getBoundingRect()}if(this._rect=r,l.hasStroke()){var p=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||b){p.copy(r);var v=l.lineWidth,a=l.strokeNoScale?this.getLineScale():1;l.hasFill()||(v=Math.max(v,this.strokeContainThreshold||4)),a>1e-10&&(p.width+=v/a,p.height+=v/a,p.x-=v/a/2,p.y-=v/a/2)}return p}return r},contain:function(r,l){var b=this.transformCoordToLocal(r,l),u=this.getBoundingRect(),p=this.style;if(r=b[0],l=b[1],u.contain(r,l)){var v=this.path.data;if(p.hasStroke()){var a=p.lineWidth,t=p.strokeNoScale?this.getLineScale():1;if(t>1e-10&&(p.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),j.containStroke(v,a/t,r,l)))return!0}if(p.hasFill())return j.contain(v,r,l)}return!1},dirty:function(r){r==null&&(r=!0),r&&(this.__dirtyPath=r,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(r){return this.animate("shape",r)},attrKV:function(r,l){r==="shape"?(this.setShape(l),this.__dirtyPath=!0,this._rect=null):X.prototype.attrKV.call(this,r,l)},setShape:function(r,l){var b=this.shape;if(b){if(F.isObject(r))for(var u in r)r.hasOwnProperty(u)&&(b[u]=r[u]);else b[r]=l;this.dirty(!0)}return this},getLineScale:function(){var r=this.transform;return r&&M(r[0]-1)>1e-10&&M(r[3]-1)>1e-10?Math.sqrt(M(r[0]*r[3]-r[2]*r[1])):1}},E.extend=function(r){var l=function(u){E.call(this,u),r.style&&this.style.extendFrom(r.style,!1);var p=r.shape;if(p){this.shape=this.shape||{};var v=this.shape;for(var a in p)!v.hasOwnProperty(a)&&p.hasOwnProperty(a)&&(v[a]=p[a])}r.init&&r.init.call(this,u)};F.inherits(l,E);for(var b in r)b!=="style"&&b!=="shape"&&(l.prototype[b]=r[b]);return l},F.inherits(E,X);var g=E;ze.exports=g},"y0+3":function(ze,te,P){"use strict";P.d(te,"a",function(){return r}),P.d(te,"b",function(){return b});var X=/margin|padding|width|height|max|min|offset/,F={left:!0,top:!0},R={cssFloat:1,styleFloat:1,float:1};function j(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function T(u,p,v){if(p=p.toLowerCase(),v==="auto"){if(p==="height")return u.offsetHeight;if(p==="width")return u.offsetWidth}return p in F||(F[p]=X.test(p)),F[p]?parseFloat(v)||0:v}function S(u,p){var v=arguments.length,a=j(u);return p=R[p]?"cssFloat"in u.style?"cssFloat":"styleFloat":p,v===1?a:T(u,p,a[p]||u.style[p])}function M(u,p,v){var a=arguments.length;if(p=R[p]?"cssFloat"in u.style?"cssFloat":"styleFloat":p,a===3)return typeof v=="number"&&X.test(p)&&(v="".concat(v,"px")),u.style[p]=v,v;for(var t in p)p.hasOwnProperty(t)&&M(u,t,p[t]);return j(u)}function c(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function E(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function g(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:p}}function r(){var u=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:p}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function b(u){var p=u.getBoundingClientRect(),v=document.documentElement;return{left:p.left+(window.pageXOffset||v.scrollLeft)-(v.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||v.scrollTop)-(v.clientTop||document.body.clientTop||0)}}},y23F:function(ze,te){function P(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}P.prototype={constructor:P,_dragStart:function(R){for(var j=R.target;j&&!j.draggable;)j=j.parent;j&&(this._draggingTarget=j,j.dragging=!0,this._x=R.offsetX,this._y=R.offsetY,this.dispatchToElement(X(j,R),"dragstart",R.event))},_drag:function(R){var j=this._draggingTarget;if(j){var T=R.offsetX,S=R.offsetY,M=T-this._x,c=S-this._y;this._x=T,this._y=S,j.drift(M,c,R),this.dispatchToElement(X(j,R),"drag",R.event);var E=this.findHover(T,S,j).target,g=this._dropTarget;this._dropTarget=E,j!==E&&(g&&E!==g&&this.dispatchToElement(X(g,R),"dragleave",R.event),E&&E!==g&&this.dispatchToElement(X(E,R),"dragenter",R.event))}},_dragEnd:function(R){var j=this._draggingTarget;j&&(j.dragging=!1),this.dispatchToElement(X(j,R),"dragend",R.event),this._dropTarget&&this.dispatchToElement(X(this._dropTarget,R),"drop",R.event),this._draggingTarget=null,this._dropTarget=null}};function X(R,j){return{target:R,topTarget:j&&j.topTarget}}var F=P;ze.exports=F},yxFR:function(ze,te,P){var X=P("y+Vt"),F=P("nPnh"),R=F.subPixelOptimizeLine,j={},T=X.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(S,M){var c,E,g,r;this.subPixelOptimize?(R(j,M,this.style),c=j.x1,E=j.y1,g=j.x2,r=j.y2):(c=M.x1,E=M.y1,g=M.x2,r=M.y2);var l=M.percent;if(l===0)return;S.moveTo(c,E),l<1&&(g=c*(1-l)+g*l,r=E*(1-l)+r*l),S.lineTo(g,r)},pointAt:function(S){var M=this.shape;return[M.x1*(1-S)+M.x2*S,M.y1*(1-S)+M.y2*S]}});ze.exports=T},zarK:function(ze,te,P){var X=P("YH21"),F=X.addEventListener,R=X.removeEventListener,j=X.normalizeEvent,T=X.getNativeEvent,S=P("bYtY"),M=P("H6uX"),c=P("ItGF"),E=300,g=c.domSupported,r=function(){var m=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],k=["touchstart","touchend","touchmove"],N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},B=S.map(m,function(G){var W=G.replace("mouse","pointer");return N.hasOwnProperty(W)?W:G});return{mouse:m,touch:k,pointer:B}}(),l={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function b(m){return m==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":m}function u(m){var k=m.pointerType;return k==="pen"||k==="touch"}function p(m){m.touching=!0,m.touchTimer!=null&&(clearTimeout(m.touchTimer),m.touchTimer=null),m.touchTimer=setTimeout(function(){m.touching=!1,m.touchTimer=null},700)}function v(m){m&&(m.zrByTouch=!0)}function a(m,k){return j(m.dom,new s(m,k),!0)}function t(m,k){for(var N=k,B=!1;N&&N.nodeType!==9&&!(B=N.domBelongToZr||N!==k&&N===m.painterRoot);)N=N.parentNode;return B}function s(m,k){this.type=k.type,this.target=this.currentTarget=m.dom,this.pointerType=k.pointerType,this.clientX=k.clientX,this.clientY=k.clientY}var h=s.prototype;h.stopPropagation=h.stopImmediatePropagation=h.preventDefault=S.noop;var y={mousedown:function(m){m=j(this.dom,m),this._mayPointerCapture=[m.zrX,m.zrY],this.trigger("mousedown",m)},mousemove:function(m){m=j(this.dom,m);var k=this._mayPointerCapture;k&&(m.zrX!==k[0]||m.zrY!==k[1])&&o(this,!0),this.trigger("mousemove",m)},mouseup:function(m){m=j(this.dom,m),o(this,!1),this.trigger("mouseup",m)},mouseout:function(m){m=j(this.dom,m),this._pointerCapturing&&(m.zrEventControl="no_globalout");var k=m.toElement||m.relatedTarget;m.zrIsToLocalDOM=t(this,k),this.trigger("mouseout",m)},touchstart:function(m){m=j(this.dom,m),v(m),this._lastTouchMoment=new Date,this.handler.processGesture(m,"start"),y.mousemove.call(this,m),y.mousedown.call(this,m)},touchmove:function(m){m=j(this.dom,m),v(m),this.handler.processGesture(m,"change"),y.mousemove.call(this,m)},touchend:function(m){m=j(this.dom,m),v(m),this.handler.processGesture(m,"end"),y.mouseup.call(this,m),+new Date-this._lastTouchMoment=2)if(self.clearTimeout(this.requestTimeout),b.loading.first===0&&(b.loading.first=Math.max(self.performance.now(),b.loading.start)),u===4){l.onreadystatechange=null,l.onprogress=null;var v=l.status;if(v>=200&&v<300){b.loading.end=Math.max(self.performance.now(),b.loading.first);var a,t;if(r.responseType==="arraybuffer"?(a=l.response,t=a.byteLength):(a=l.responseText,t=a.length),b.loaded=b.total=t,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(b,r,a,l),!this.callbacks)return;var h={url:l.responseURL,data:a};this.callbacks.onSuccess(h,b,r,l)}else b.retry>=p.maxRetry||v>=400&&v<499?(j.logger.error(v+" while loading "+r.url),this.callbacks.onError({code:v,text:l.statusText},r,l)):(j.logger.warn(v+" while loading "+r.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,p.maxRetryDelay),b.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),p.timeout)},E.loadtimeout=function(){j.logger.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))},E.loadprogress=function(r){var l=this.stats;l.loaded=r.loaded,r.lengthComputable&&(l.total=r.total)},E.getCacheAge=function(){var r=null;if(this.loader&&S.test(this.loader.getAllResponseHeaders())){var l=this.loader.getResponseHeader("age");r=l?parseFloat(l):null}return r},c}();F.default=M}}).default})},vHTk:function(ze,te,P){ze.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(ze,te,P){var X=P("SrGk"),F=P("bYtY");function R(S,M){X.call(this,S,M,["filter"],"__filter_in_use__","_shadowDom")}F.inherits(R,X),R.prototype.addWithoutUpdate=function(S,M){if(M&&j(M.style)){var c;if(M._shadowDom){c=M._shadowDom;var E=this.getDefs(!0);E.contains(M._shadowDom)||this.addDom(c)}else c=this.add(M);this.markUsed(M);var g=c.getAttribute("id");S.style.filter="url(#"+g+")"}},R.prototype.add=function(S){var M=this.createElement("filter");return S._shadowDomId=S._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+S._shadowDomId),this.updateDom(S,M),this.addDom(M),M},R.prototype.update=function(S,M){var c=M.style;if(j(c)){var E=this;X.prototype.update.call(this,M,function(){E.updateDom(M,M._shadowDom)})}else this.remove(S,M)},R.prototype.remove=function(S,M){M._shadowDomId!=null&&(this.removeDom(S),S.style.filter="")},R.prototype.updateDom=function(S,M){var c=M.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var E=S.style,g=S.scale&&S.scale[0]||1,r=S.scale&&S.scale[1]||1,l,b,u,p;if(E.shadowBlur||E.shadowOffsetX||E.shadowOffsetY)l=E.shadowOffsetX||0,b=E.shadowOffsetY||0,u=E.shadowBlur,p=E.shadowColor;else if(E.textShadowBlur)l=E.textShadowOffsetX||0,b=E.textShadowOffsetY||0,u=E.textShadowBlur,p=E.textShadowColor;else{this.removeDom(M,E);return}c.setAttribute("dx",l/g),c.setAttribute("dy",b/r),c.setAttribute("flood-color",p);var v=u/2/g,a=u/2/r,t=v+" "+a;c.setAttribute("stdDeviation",t),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(u/2*200)+"%"),M.setAttribute("height",Math.ceil(u/2*200)+"%"),M.appendChild(c),S._shadowDom=M},R.prototype.markUsed=function(S){S._shadowDom&&X.prototype.markUsed.call(this,S._shadowDom)};function j(S){return S&&(S.shadowBlur||S.shadowOffsetX||S.shadowOffsetY||S.textShadowBlur||S.textShadowOffsetX||S.textShadowOffsetY)}var T=R;ze.exports=T},vWvF:function(ze,te,P){var X=P("Bq2U"),F=P("SUKs"),R=P("bYtY"),j=R.isString,T=R.isFunction,S=R.isObject,M=R.isArrayLike,c=R.indexOf,E=function(){this.animators=[]};E.prototype={constructor:E,animate:function(u,p){var v,a=!1,t=this,s=this.__zr;if(u){var h=u.split("."),y=t;a=h[0]==="shape";for(var D=0,C=h.length;D0&&u.animate(p,!1).when(t==null?500:t,y).delay(s||0)}function l(u,p,v,a){if(!p)u.attr(v,a);else{var t={};t[p]={},t[p][v]=a,u.attr(t)}}var b=E;ze.exports=b},wCXF:function(ze,te,P){"use strict";P.d(te,"a",function(){return Kt});var X=P("rePB"),F=P("VTBJ"),R=P("KQm4"),j=P("U8pU"),T=P("ODXe"),S=P("q1tI"),M=P("TSYQ"),c=P.n(M),E=P("Gytx"),g=P.n(E),r=P("Kwbf"),l=P("t23M"),b=P("qx4F"),u=P("6eGT"),p=P("IBYe"),v=P("Ff2n"),a=P("c+Xe"),t=P("fyJ8"),s=P("biw7");function h(Ie,De,ot,Et,Je){var ft=ot[Ie]||{},Me=ot[De]||{},xe,Te;ft.fixed==="left"?xe=Et.left[Ie]:Me.fixed==="right"&&(Te=Et.right[De]);var oe=!1,ue=!1,pe=!1,_e=!1,Ye=ot[De+1],Ue=ot[Ie-1];if(Je==="rtl"){if(xe!==void 0){var Mt=Ue&&Ue.fixed==="left";_e=!Mt}else if(Te!==void 0){var tn=Ye&&Ye.fixed==="right";pe=!tn}}else if(xe!==void 0){var sn=Ye&&Ye.fixed==="left";oe=!sn}else if(Te!==void 0){var nn=Ue&&Ue.fixed==="right";ue=!nn}return{fixLeft:xe,fixRight:Te,lastFixLeft:oe,firstFixRight:ue,lastFixRight:pe,firstFixLeft:_e,isSticky:Et.isSticky}}var y=P("sR1s");function D(Ie){var De=Ie.cells,ot=Ie.stickyOffsets,Et=Ie.flattenColumns,Je=Ie.rowComponent,ft=Ie.cellComponent,Me=Ie.onHeaderRow,xe=Ie.index,Te=S.useContext(s.a),oe=Te.prefixCls,ue=Te.direction,pe;Me&&(pe=Me(De.map(function(Ye){return Ye.column}),xe));var _e=Object(y.a)(De.map(function(Ye){return Ye.column}));return S.createElement(Je,Object.assign({},pe),De.map(function(Ye,Ue){var Mt=Ye.column,tn=h(Ye.colStart,Ye.colEnd,Et,ot,ue),sn;return Mt&&Mt.onHeaderCell&&(sn=Ye.column.onHeaderCell(Mt)),S.createElement(t.a,Object.assign({},Ye,{ellipsis:Mt.ellipsis,align:Mt.align,component:ft,prefixCls:oe,key:_e[Ue]},tn,{additionalProps:sn,rowType:"header"}))}))}D.displayName="HeaderRow";var C=D;function I(Ie){var De=[];function ot(Me,xe){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;De[Te]=De[Te]||[];var oe=xe,ue=Me.filter(Boolean).map(function(pe){var _e={key:pe.key,className:pe.className||"",children:pe.title,column:pe,colStart:oe},Ye=1,Ue=pe.children;return Ue&&Ue.length>0&&(Ye=ot(Ue,oe,Te+1).reduce(function(Mt,tn){return Mt+tn},0),_e.hasSubColumns=!0),"colSpan"in pe&&(Ye=pe.colSpan),"rowSpan"in pe&&(_e.rowSpan=pe.rowSpan),_e.colSpan=Ye,_e.colEnd=_e.colStart+Ye-1,De[Te].push(_e),oe+=Ye,Ye});return ue}ot(Ie,0);for(var Et=De.length,Je=function(xe){De[xe].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=Et-xe)})},ft=0;ft=0;xe-=1){var Te=De[xe],oe=ot&&ot[xe],ue=oe&&oe[o.a];(Te||ue||Me)&&(Je.unshift(S.createElement("col",Object.assign({key:xe,style:{width:Te,minWidth:Te}},ue))),Me=!0)}return S.createElement("colgroup",null,Je)}var d=i;function A(Ie,De){return Object(S.useMemo)(function(){for(var ot=[],Et=0;Et1?$-1:0),ee=1;ee<$;ee++)re[ee-1]=arguments[ee];(H=Fr).onClick.apply(H,[U].concat(re))}},ca;typeof en=="string"?ca=en:typeof en=="function"&&(ca=en(Et,Je,pe));var Zt=Object(y.a)(ye),In=S.createElement(_e,Object.assign({},Fr,{"data-row-key":ft,className:c()(De,"".concat(tn,"-row"),"".concat(tn,"-row-level-").concat(pe),ca,Fr&&Fr.className),style:Object(F.a)(Object(F.a)({},ot),Fr?Fr.style:null),onClick:ta}),ye.map(function(J,U){var H=J.render,$=J.dataIndex,re=J.className,ee=Zt[U],Qe=sn[U],dn;U===(yn||0)&&ea&&(dn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(st*pe,"px")},className:"".concat(tn,"-row-indent indent-level-").concat(pe)}),xt({prefixCls:tn,expanded:kn,expandable:Pr,record:Et,onExpand:pt})));var On;return J.onCell&&(On=J.onCell(Et,Je)),S.createElement(t.a,Object.assign({className:re,ellipsis:J.ellipsis,align:J.align,component:Ye,prefixCls:tn,key:ee,record:Et,index:Je,dataIndex:$,render:H,shouldCellUpdate:J.shouldCellUpdate},Qe,{appendNode:dn,additionalProps:On}))})),fr;if(Wr&&(yr||kn)){var Dr=Nt(Et,Je,pe+1,kn),Cr=an&&an(Et,Je,pe);fr=S.createElement(G,{expanded:kn,className:c()("".concat(tn,"-expanded-row"),"".concat(tn,"-expanded-row-level-").concat(pe+1),Cr),prefixCls:tn,fixHeader:rn,fixColumn:St,horizonScroll:Tt,component:_e,componentWidth:ct,cellComponent:Ye,colSpan:ye.length},Dr)}var wr;return Pr&&kn&&(wr=(Et[Ue]||[]).map(function(J,U){var H=Me(J,U);return S.createElement(W,Object.assign({},Ie,{key:H,rowKey:H,record:J,recordKey:H,index:U,indent:pe+1}))})),S.createElement(S.Fragment,null,In,fr,wr)}W.displayName="BodyRow";var z=W,Y=S.createContext(null),V=Y;function q(Ie){var De=Ie.columnKey,ot=Ie.onColumnResize,Et=S.useRef();return S.useEffect(function(){Et.current&&ot(De,Et.current.offsetWidth)},[]),S.createElement(l.a,{onResize:function(ft){var Me=ft.offsetWidth;ot(De,Me)}},S.createElement("td",{ref:Et,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ne(Ie){var De=Ie.data,ot=Ie.getRowKey,Et=Ie.measureColumnWidth,Je=Ie.expandedKeys,ft=Ie.onRow,Me=Ie.rowExpandable,xe=Ie.emptyNode,Te=Ie.childrenColumnName,oe=S.useContext(V),ue=oe.onColumnResize,pe=S.useContext(s.a),_e=pe.prefixCls,Ye=pe.getComponent,Ue=S.useContext(N),Mt=Ue.fixHeader,tn=Ue.horizonScroll,sn=Ue.flattenColumns,nn=Ue.componentWidth;return S.useMemo(function(){var rn=Ye(["body","wrapper"],"tbody"),St=Ye(["body","row"],"tr"),Tt=Ye(["body","cell"],"td"),ct;De.length?ct=De.map(function(Pe,Pt){var pt=ot(Pe,Pt);return S.createElement(z,{key:pt,rowKey:pt,record:Pe,recordKey:pt,index:Pt,rowComponent:St,cellComponent:Tt,expandedKeys:Je,onRow:ft,getRowKey:ot,rowExpandable:Me,childrenColumnName:Te})}):ct=S.createElement(G,{expanded:!0,className:"".concat(_e,"-placeholder"),prefixCls:_e,fixHeader:Mt,fixColumn:tn,horizonScroll:tn,component:St,componentWidth:nn,cellComponent:Tt,colSpan:sn.length},xe);var ye=Object(y.a)(sn);return S.createElement(rn,{className:"".concat(_e,"-tbody")},Et&&S.createElement("tr",{"aria-hidden":"true",className:"".concat(_e,"-measure-row"),style:{height:0}},ye.map(function(Pe){return S.createElement(q,{key:Pe,columnKey:Pe,onColumnResize:ue})})),ct)},[De,_e,ft,Et,Je,ot,Ye,nn,xe,sn])}var ve=S.memo(ne);ve.displayName="Body";var le=ve,be=P("wRmb"),we=P("xEkU"),Re=P.n(we);function ge(Ie){var De=Object(S.useRef)(Ie),ot=Object(S.useState)({}),Et=Object(T.a)(ot,2),Je=Et[1],ft=Object(S.useRef)(null),Me=Object(S.useRef)([]);function xe(Te){ft.current===null&&(Me.current=[],ft.current=Re()(function(){Me.current.forEach(function(oe){De.current=oe(De.current)}),ft.current=null,Je({})})),Me.current.push(Te)}return Object(S.useEffect)(function(){return function(){Re.a.cancel(ft.current)}},[]),[De.current,xe]}function fe(Ie){var De=Object(S.useRef)(Ie),ot=Object(S.useRef)(null);function Et(){window.clearTimeout(ot.current)}function Je(Me){De.current=Me,Et(),ot.current=window.setTimeout(function(){De.current=null,ot.current=null},100)}function ft(){return De.current}return Object(S.useEffect)(function(){return Et},[]),[Je,ft]}function Ze(Ie,De,ot){var Et=Object(S.useMemo)(function(){for(var Je=[],ft=[],Me=0,xe=0,Te=0;Te=pe&&(Mn=pe-_e),Me({scrollLeft:Mn/pe*(ue+2)}),nn.current.x=st.pageX},pt=function(){var st=Object(Oe.b)(ft.current).top,xt=st+ft.current.offsetHeight,Nt=document.documentElement.scrollTop+window.innerHeight;xt-Object(b.a)()<=Nt||st>=Nt-xe?sn(function(yn){return Object(F.a)(Object(F.a)({},yn),{},{isHiddenScrollBar:!0})}):sn(function(yn){return Object(F.a)(Object(F.a)({},yn),{},{isHiddenScrollBar:!1})})},en=function(st){sn(function(xt){return Object(F.a)(Object(F.a)({},xt),{},{scrollLeft:st/ue*pe||0})})};return S.useImperativeHandle(ot,function(){return{setScrollLeft:en}}),S.useEffect(function(){var an=Object(rt.a)(document.body,"mouseup",ye,!1),st=Object(rt.a)(document.body,"mousemove",Pt,!1);return pt(),function(){an.remove(),st.remove()}},[_e,Tt]),S.useEffect(function(){var an=Object(rt.a)(window,"scroll",pt,!1),st=Object(rt.a)(window,"resize",pt,!1);return function(){an.remove(),st.remove()}},[]),S.useEffect(function(){tn.isHiddenScrollBar||sn(function(an){var st,xt;return Object(F.a)(Object(F.a)({},an),{},{scrollLeft:ft.current.scrollLeft/((st=ft.current)===null||st===void 0?void 0:st.scrollWidth)*((xt=ft.current)===null||xt===void 0?void 0:xt.clientWidth)})})},[tn.isHiddenScrollBar]),ue<=pe||!_e||tn.isHiddenScrollBar?null:S.createElement("div",{style:{height:Object(b.a)(),width:pe,bottom:xe},className:"".concat(oe,"-sticky-scroll")},S.createElement("div",{onMouseDown:Pe,ref:Ye,className:c()("".concat(oe,"-sticky-scroll-bar"),Object(X.a)({},"".concat(oe,"-sticky-scroll-bar-active"),Tt)),style:{width:"".concat(_e,"px"),transform:"translate3d(".concat(tn.scrollLeft,"px, 0, 0)")}}))},at=S.forwardRef(Ge);function dt(Ie,De){return S.useMemo(function(){var ot=!!Ie;return{isSticky:ot,stickyClassName:ot?"".concat(De,"-sticky-header"):"",offsetHeader:Object(j.a)(Ie)==="object"&&Ie.offsetHeader||0,offsetScroll:Object(j.a)(Ie)==="object"&&Ie.offsetScroll||0}},[Ie,De])}var Rt=[],bt={},Kt="rc-table-internal-hook",Lt=S.memo(function(Ie){var De=Ie.children;return De},function(Ie,De){return g()(Ie.props,De.props)?Ie.pingLeft!==De.pingLeft||Ie.pingRight!==De.pingRight:!1});function on(Ie){var De,ot=Ie.prefixCls,Et=Ie.className,Je=Ie.rowClassName,ft=Ie.style,Me=Ie.data,xe=Ie.rowKey,Te=Ie.scroll,oe=Ie.tableLayout,ue=Ie.direction,pe=Ie.title,_e=Ie.footer,Ye=Ie.summary,Ue=Ie.id,Mt=Ie.showHeader,tn=Ie.components,sn=Ie.emptyText,nn=Ie.onRow,rn=Ie.onHeaderRow,St=Ie.internalHooks,Tt=Ie.transformColumns,ct=Ie.internalRefs,ye=Ie.sticky,Pe=Me||Rt,Pt=!!Pe.length,pt=S.useState(0),en=Object(T.a)(pt,2),an=en[0],st=en[1];S.useEffect(function(){st(Object(b.a)())});var xt=S.useMemo(function(){return Object(y.c)(tn,{})},[tn]),Nt=S.useCallback(function(Nn,Jt){return Object(y.b)(xt,Nn)||Jt},[xt]),yn=S.useMemo(function(){return typeof xe=="function"?xe:function(Nn){var Jt=Nn&&Nn[xe];return Jt}},[xe]),Mn=Object(o.c)(Ie),hr=Mn.expandIcon,yr=Mn.expandedRowKeys,lr=Mn.defaultExpandedRowKeys,kn=Mn.defaultExpandAllRows,Wr=Mn.expandedRowRender,ea=Mn.onExpand,Pr=Mn.onExpandedRowsChange,mr=Mn.expandRowByClick,Fr=Mn.rowExpandable,ta=Mn.expandIconColumnIndex,ca=Mn.expandedRowClassName,Zt=Mn.childrenColumnName,In=Mn.indentSize,fr=hr||me,Dr=Zt||"children",Cr=S.useMemo(function(){return Wr?"row":Ie.expandable&&St===Kt&&Ie.expandable.__PARENT_RENDER_ICON__||Pe.some(function(Nn){return Nn&&Object(j.a)(Nn)==="object"&&Nn[Dr]})?"nest":!1},[!!Wr,Pe]),wr=S.useState(function(){return lr||(kn?Le(Pe,yn,Dr):[])}),J=Object(T.a)(wr,2),U=J[0],H=J[1],$=S.useMemo(function(){return new Set(yr||U||[])},[yr,U]),re=S.useCallback(function(Nn){var Jt=yn(Nn,Pe.indexOf(Nn)),Bn,Or=$.has(Jt);Or?($.delete(Jt),Bn=Object(R.a)($)):Bn=[].concat(Object(R.a)($),[Jt]),H(Bn),ea&&ea(!Or,Nn),Pr&&Pr(Bn)},[yn,$,Pe,ea,Pr]),ee=S.useState(0),Qe=Object(T.a)(ee,2),dn=Qe[0],On=Qe[1],Wn=Object(be.b)(Object(F.a)(Object(F.a)(Object(F.a)({},Ie),Mn),{},{expandable:!!Wr,expandedKeys:$,getRowKey:yn,onTriggerExpand:re,expandIcon:fr,expandIconColumnIndex:ta,direction:ue}),St===Kt?Tt:null),pn=Object(T.a)(Wn,2),er=pn[0],tr=pn[1],Br=S.useMemo(function(){return{columns:er,flattenColumns:tr}},[er,tr]),ua=S.useRef(),va=S.useRef(),Gr=S.useRef(),zn=S.useState(!1),_n=Object(T.a)(zn,2),bn=_n[0],Hn=_n[1],vr=S.useState(!1),Xn=Object(T.a)(vr,2),Vn=Xn[0],Gn=Xn[1],dr=ge(new Map),Yn=Object(T.a)(dr,2),Qn=Yn[0],pr=Yn[1],Q=Object(y.a)(tr),Se=Q.map(function(Nn){return Qn.get(Nn)}),We=S.useMemo(function(){return Se},[Se.join("_")]),Ve=Ot(We,tr.length,ue),ut=Te&&Object(y.d)(Te.y),Ke=Te&&Object(y.d)(Te.x),lt=Ke&&tr.some(function(Nn){var Jt=Nn.fixed;return Jt}),mt=S.useRef(),ht=dt(ye,ot),_t=ht.isSticky,$t=ht.offsetHeader,kt=ht.offsetScroll,vt=ht.stickyClassName,et,Dt,Gt;ut&&(Dt={overflowY:"scroll",maxHeight:Te.y}),Ke&&(et={overflowX:"auto"},ut||(Dt={overflowY:"hidden"}),Gt={width:Te.x===!0?"auto":Te.x,minWidth:"100%"});var Yt=S.useCallback(function(Nn,Jt){pr(function(Bn){var Or=new Map(Bn);return Or.set(Nn,Jt),Or})},[]),wt=fe(null),En=Object(T.a)(wt,2),xn=En[0],Jn=En[1];function It(Nn,Jt){if(!Jt)return;typeof Jt=="function"?Jt(Nn):Jt.scrollLeft!==Nn&&(Jt.scrollLeft=Nn)}var Wt=function(Jt){var Bn=Jt.currentTarget,Or=Jt.scrollLeft,Nr=typeof Or=="number"?Or:Bn.scrollLeft,zr=Bn||bt;if(!Jn()||Jn()===zr){var oa;xn(zr),It(Nr,va.current),It(Nr,Gr.current),It(Nr,(oa=mt.current)===null||oa===void 0?void 0:oa.setScrollLeft)}if(Bn){var Xr=Bn.scrollWidth,Yr=Bn.clientWidth;Hn(Nr>0),Gn(Nr0?[].concat(Object(F.a)(v),Object(F.a)(r(h).map(function(y){return Object(R.a)({fixed:s},y)}))):[].concat(Object(F.a)(v),[Object(R.a)(Object(R.a)({},a),{},{fixed:s})])},[])}function l(p){for(var v=!0,a=0;a=0;h-=1){var y=p[h];if(s&&y.fixed!=="right")s=!1;else if(!s&&y.fixed==="right"){Object(M.a)(!1,"Index ".concat(h+1," of `columns` missing `fixed='right'` prop."));break}}}function b(p){return p.map(function(v){var a=v.fixed,t=Object(j.a)(v,["fixed"]),s=a;return a==="left"?s="right":a==="right"&&(s="left"),Object(R.a)({fixed:s},t)})}function u(p,v){var a=p.prefixCls,t=p.columns,s=p.children,h=p.expandable,y=p.expandedKeys,D=p.getRowKey,C=p.onTriggerExpand,I=p.expandIcon,_=p.rowExpandable,f=p.expandIconColumnIndex,o=p.direction,i=p.expandRowByClick,d=T.useMemo(function(){return t||g(s)},[t,s]),A=T.useMemo(function(){if(h){var k,N=f||0,B=d[N],G=(k={},Object(X.a)(k,E.a,{className:"".concat(a,"-expand-icon-col")}),Object(X.a)(k,"title",""),Object(X.a)(k,"fixed",B?B.fixed:null),Object(X.a)(k,"className","".concat(a,"-row-expand-icon-cell")),Object(X.a)(k,"render",function(Y,V,q){var ne=D(V,q),ve=y.has(ne),le=_?_(V):!0,be=I({prefixCls:a,expanded:ve,expandable:le,record:V,onExpand:C});return i?T.createElement("span",{onClick:function(Re){return Re.stopPropagation()}},be):be}),k),W=d.slice();return N>=0&&W.splice(N,0,G),W}return d},[h,d,D,y,I,o]),O=T.useMemo(function(){var k=A;return v&&(k=v(k)),k.length||(k=[{render:function(){return null}}]),k},[v,A,o]),m=T.useMemo(function(){return o==="rtl"?b(r(O)):r(O)},[O,o]);return[O,m]}te.b=u},x6Kt:function(ze,te,P){var X=P("y+Vt"),F=P("VpOo"),R=P("nPnh"),j=R.subPixelOptimizeRect,T={},S=X.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,c){var E,g,r,l;this.subPixelOptimize?(j(T,c,this.style),E=T.x,g=T.y,r=T.width,l=T.height,T.r=c.r,c=T):(E=c.x,g=c.y,r=c.width,l=c.height),c.r?F.buildPath(M,c):M.rect(E,g,r,l),M.closePath();return}});ze.exports=S},xOL1:function(ze,te){ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y+Vt":function(ze,te,P){var X=P("Gev7"),F=P("bYtY"),R=P("IMiH"),j=P("2DNl"),T=P("3C/r"),S=T.prototype.getCanvasPattern,M=Math.abs,c=new R(!0);function E(r){X.call(this,r),this.path=null}E.prototype={constructor:E,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(r,l){var b=this.style,u=this.path||c,p=b.hasStroke(),v=b.hasFill(),a=b.fill,t=b.stroke,s=v&&!!a.colorStops,h=p&&!!t.colorStops,y=v&&!!a.image,D=p&&!!t.image;if(b.bind(r,this,l),this.setTransform(r),this.__dirty){var C;s&&(C=C||this.getBoundingRect(),this._fillGradient=b.getGradient(r,a,C)),h&&(C=C||this.getBoundingRect(),this._strokeGradient=b.getGradient(r,t,C))}s?r.fillStyle=this._fillGradient:y&&(r.fillStyle=S.call(a,r)),h?r.strokeStyle=this._strokeGradient:D&&(r.strokeStyle=S.call(t,r));var I=b.lineDash,_=b.lineDashOffset,f=!!r.setLineDash,o=this.getGlobalScale();if(u.setScale(o[0],o[1],this.segmentIgnoreThreshold),this.__dirtyPath||I&&!f&&p?(u.beginPath(r),I&&!f&&(u.setLineDash(I),u.setLineDashOffset(_)),this.buildPath(u,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(r.beginPath(),this.path.rebuildPath(r)),v)if(b.fillOpacity!=null){var i=r.globalAlpha;r.globalAlpha=b.fillOpacity*b.opacity,u.fill(r),r.globalAlpha=i}else u.fill(r);if(I&&f&&(r.setLineDash(I),r.lineDashOffset=_),p)if(b.strokeOpacity!=null){var i=r.globalAlpha;r.globalAlpha=b.strokeOpacity*b.opacity,u.stroke(r),r.globalAlpha=i}else u.stroke(r);I&&f&&r.setLineDash([]),b.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},buildPath:function(r,l,b){},createPathProxy:function(){this.path=new R},getBoundingRect:function(){var r=this._rect,l=this.style,b=!r;if(b){var u=this.path;u||(u=this.path=new R),this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape,!1)),r=u.getBoundingRect()}if(this._rect=r,l.hasStroke()){var p=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||b){p.copy(r);var v=l.lineWidth,a=l.strokeNoScale?this.getLineScale():1;l.hasFill()||(v=Math.max(v,this.strokeContainThreshold||4)),a>1e-10&&(p.width+=v/a,p.height+=v/a,p.x-=v/a/2,p.y-=v/a/2)}return p}return r},contain:function(r,l){var b=this.transformCoordToLocal(r,l),u=this.getBoundingRect(),p=this.style;if(r=b[0],l=b[1],u.contain(r,l)){var v=this.path.data;if(p.hasStroke()){var a=p.lineWidth,t=p.strokeNoScale?this.getLineScale():1;if(t>1e-10&&(p.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),j.containStroke(v,a/t,r,l)))return!0}if(p.hasFill())return j.contain(v,r,l)}return!1},dirty:function(r){r==null&&(r=!0),r&&(this.__dirtyPath=r,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(r){return this.animate("shape",r)},attrKV:function(r,l){r==="shape"?(this.setShape(l),this.__dirtyPath=!0,this._rect=null):X.prototype.attrKV.call(this,r,l)},setShape:function(r,l){var b=this.shape;if(b){if(F.isObject(r))for(var u in r)r.hasOwnProperty(u)&&(b[u]=r[u]);else b[r]=l;this.dirty(!0)}return this},getLineScale:function(){var r=this.transform;return r&&M(r[0]-1)>1e-10&&M(r[3]-1)>1e-10?Math.sqrt(M(r[0]*r[3]-r[2]*r[1])):1}},E.extend=function(r){var l=function(u){E.call(this,u),r.style&&this.style.extendFrom(r.style,!1);var p=r.shape;if(p){this.shape=this.shape||{};var v=this.shape;for(var a in p)!v.hasOwnProperty(a)&&p.hasOwnProperty(a)&&(v[a]=p[a])}r.init&&r.init.call(this,u)};F.inherits(l,E);for(var b in r)b!=="style"&&b!=="shape"&&(l.prototype[b]=r[b]);return l},F.inherits(E,X);var g=E;ze.exports=g},"y0+3":function(ze,te,P){"use strict";P.d(te,"a",function(){return r}),P.d(te,"b",function(){return b});var X=/margin|padding|width|height|max|min|offset/,F={left:!0,top:!0},R={cssFloat:1,styleFloat:1,float:1};function j(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function T(u,p,v){if(p=p.toLowerCase(),v==="auto"){if(p==="height")return u.offsetHeight;if(p==="width")return u.offsetWidth}return p in F||(F[p]=X.test(p)),F[p]?parseFloat(v)||0:v}function S(u,p){var v=arguments.length,a=j(u);return p=R[p]?"cssFloat"in u.style?"cssFloat":"styleFloat":p,v===1?a:T(u,p,a[p]||u.style[p])}function M(u,p,v){var a=arguments.length;if(p=R[p]?"cssFloat"in u.style?"cssFloat":"styleFloat":p,a===3)return typeof v=="number"&&X.test(p)&&(v="".concat(v,"px")),u.style[p]=v,v;for(var t in p)p.hasOwnProperty(t)&&M(u,t,p[t]);return j(u)}function c(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function E(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function g(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:p}}function r(){var u=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:p}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function b(u){var p=u.getBoundingClientRect(),v=document.documentElement;return{left:p.left+(window.pageXOffset||v.scrollLeft)-(v.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||v.scrollTop)-(v.clientTop||document.body.clientTop||0)}}},y23F:function(ze,te){function P(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}P.prototype={constructor:P,_dragStart:function(R){for(var j=R.target;j&&!j.draggable;)j=j.parent;j&&(this._draggingTarget=j,j.dragging=!0,this._x=R.offsetX,this._y=R.offsetY,this.dispatchToElement(X(j,R),"dragstart",R.event))},_drag:function(R){var j=this._draggingTarget;if(j){var T=R.offsetX,S=R.offsetY,M=T-this._x,c=S-this._y;this._x=T,this._y=S,j.drift(M,c,R),this.dispatchToElement(X(j,R),"drag",R.event);var E=this.findHover(T,S,j).target,g=this._dropTarget;this._dropTarget=E,j!==E&&(g&&E!==g&&this.dispatchToElement(X(g,R),"dragleave",R.event),E&&E!==g&&this.dispatchToElement(X(E,R),"dragenter",R.event))}},_dragEnd:function(R){var j=this._draggingTarget;j&&(j.dragging=!1),this.dispatchToElement(X(j,R),"dragend",R.event),this._dropTarget&&this.dispatchToElement(X(this._dropTarget,R),"drop",R.event),this._draggingTarget=null,this._dropTarget=null}};function X(R,j){return{target:R,topTarget:j&&j.topTarget}}var F=P;ze.exports=F},yxFR:function(ze,te,P){var X=P("y+Vt"),F=P("nPnh"),R=F.subPixelOptimizeLine,j={},T=X.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(S,M){var c,E,g,r;this.subPixelOptimize?(R(j,M,this.style),c=j.x1,E=j.y1,g=j.x2,r=j.y2):(c=M.x1,E=M.y1,g=M.x2,r=M.y2);var l=M.percent;if(l===0)return;S.moveTo(c,E),l<1&&(g=c*(1-l)+g*l,r=E*(1-l)+r*l),S.lineTo(g,r)},pointAt:function(S){var M=this.shape;return[M.x1*(1-S)+M.x2*S,M.y1*(1-S)+M.y2*S]}});ze.exports=T},zarK:function(ze,te,P){var X=P("YH21"),F=X.addEventListener,R=X.removeEventListener,j=X.normalizeEvent,T=X.getNativeEvent,S=P("bYtY"),M=P("H6uX"),c=P("ItGF"),E=300,g=c.domSupported,r=function(){var m=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],k=["touchstart","touchend","touchmove"],N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},B=S.map(m,function(G){var W=G.replace("mouse","pointer");return N.hasOwnProperty(W)?W:G});return{mouse:m,touch:k,pointer:B}}(),l={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function b(m){return m==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":m}function u(m){var k=m.pointerType;return k==="pen"||k==="touch"}function p(m){m.touching=!0,m.touchTimer!=null&&(clearTimeout(m.touchTimer),m.touchTimer=null),m.touchTimer=setTimeout(function(){m.touching=!1,m.touchTimer=null},700)}function v(m){m&&(m.zrByTouch=!0)}function a(m,k){return j(m.dom,new s(m,k),!0)}function t(m,k){for(var N=k,B=!1;N&&N.nodeType!==9&&!(B=N.domBelongToZr||N!==k&&N===m.painterRoot);)N=N.parentNode;return B}function s(m,k){this.type=k.type,this.target=this.currentTarget=m.dom,this.pointerType=k.pointerType,this.clientX=k.clientX,this.clientY=k.clientY}var h=s.prototype;h.stopPropagation=h.stopImmediatePropagation=h.preventDefault=S.noop;var y={mousedown:function(m){m=j(this.dom,m),this._mayPointerCapture=[m.zrX,m.zrY],this.trigger("mousedown",m)},mousemove:function(m){m=j(this.dom,m);var k=this._mayPointerCapture;k&&(m.zrX!==k[0]||m.zrY!==k[1])&&o(this,!0),this.trigger("mousemove",m)},mouseup:function(m){m=j(this.dom,m),o(this,!1),this.trigger("mouseup",m)},mouseout:function(m){m=j(this.dom,m),this._pointerCapturing&&(m.zrEventControl="no_globalout");var k=m.toElement||m.relatedTarget;m.zrIsToLocalDOM=t(this,k),this.trigger("mouseout",m)},touchstart:function(m){m=j(this.dom,m),v(m),this._lastTouchMoment=new Date,this.handler.processGesture(m,"start"),y.mousemove.call(this,m),y.mousedown.call(this,m)},touchmove:function(m){m=j(this.dom,m),v(m),this.handler.processGesture(m,"change"),y.mousemove.call(this,m)},touchend:function(m){m=j(this.dom,m),v(m),this.handler.processGesture(m,"end"),y.mouseup.call(this,m),+new Date-this._lastTouchMoment=0||A.relatedTarget.className.indexOf("".concat(de,"-next"))>=0))return;f.setState({goInputText:""}),ie(f.getValidValue())},f.go=function(A){var ee=f.state.goInputText;if(ee==="")return;(A.keyCode===q.ENTER||A.type==="click")&&(f.setState({goInputText:""}),f.props.quickGo(f.getValidValue()))},f}return Object(o.a)(b,[{key:"getValidValue",value:function(){var s=this.state,j=s.goInputText,R=s.current;return!j||isNaN(j)?R:Number(j)}},{key:"getPageSizeOptions",value:function(){var s=this.props,j=s.pageSize,R=s.pageSizeOptions;return R.some(function(A){return A.toString()===j.toString()})?R:R.concat([j.toString()]).sort(function(A,ee){var L=isNaN(Number(A))?0:Number(A),ie=isNaN(Number(ee))?0:Number(ee);return L-ie})}},{key:"render",value:function(){var s=this,j=this.props,R=j.pageSize,A=j.locale,ee=j.rootPrefixCls,L=j.changeSize,ie=j.quickGo,de=j.goButton,ve=j.selectComponentClass,Be=j.buildOptionText,_e=j.selectPrefixCls,oe=j.disabled,ye=this.state.goInputText,Se="".concat(ee,"-options"),Pe=ve,De=null,Ge=null,Ce=null;if(!L&&!ie)return null;var ht=this.getPageSizeOptions();if(L&&Pe){var ct=ht.map(function(Xe,le){return D.a.createElement(Pe.Option,{key:le,value:Xe.toString()},(Be||s.buildOptionText)(Xe))});De=D.a.createElement(Pe,{disabled:oe,prefixCls:_e,showSearch:!1,className:"".concat(Se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(R||ht[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},ct)}return ie&&(de&&(Ce=typeof de=="boolean"?D.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:oe,className:"".concat(Se,"-quick-jumper-button")},A.jump_to_confirm):D.a.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),Ge=D.a.createElement("div",{className:"".concat(Se,"-quick-jumper")},A.jump_to,D.a.createElement("input",{disabled:oe,type:"text",value:ye,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),A.page,Ce)),D.a.createElement("li",{className:"".concat(Se)},De,Ge)}}]),b}(D.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=_,u=r("N2Kk");function U(){}function H(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function X(k,E,b){return b}function F(k,E,b){var f=typeof k=="undefined"?E.pageSize:k;return Math.floor((b.total-1)/f)+1}var se=function(k){Object(C.a)(b,k);var E=Object(ae.a)(b);function b(f){var s;Object(S.a)(this,b),s=E.call(this,f),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(F(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(L,ie){var de=s.props.prefixCls,ve=L||D.a.createElement("button",{type:"button","aria-label":ie,className:"".concat(de,"-item-link")});return typeof L=="function"&&(ve=D.a.createElement(L,Object(he.a)({},s.props))),ve},s.savePaginationNode=function(L){s.paginationNode=L},s.isValid=function(L){return H(L)&&L!==s.state.current},s.shouldDisplayQuickJumper=function(){var L=s.props,ie=L.showQuickJumper,de=L.pageSize,ve=L.total;return ve<=de?!1:ie},s.handleKeyDown=function(L){(L.keyCode===q.ARROW_UP||L.keyCode===q.ARROW_DOWN)&&L.preventDefault()},s.handleKeyUp=function(L){var ie=s.getValidValue(L),de=s.state.currentInputValue;ie!==de&&s.setState({currentInputValue:ie}),L.keyCode===q.ENTER?s.handleChange(ie):L.keyCode===q.ARROW_UP?s.handleChange(ie-1):L.keyCode===q.ARROW_DOWN&&s.handleChange(ie+1)},s.changePageSize=function(L){var ie=s.state.current,de=F(L,s.state,s.props);ie=ie>de?de:ie,de===0&&(ie=s.state.current),typeof L=="number"&&("pageSize"in s.props||s.setState({pageSize:L}),"current"in s.props||s.setState({current:ie,currentInputValue:ie})),s.props.onShowSizeChange(ie,L),"onChange"in s.props&&s.props.onChange&&s.props.onChange(ie,L)},s.handleChange=function(L){var ie=s.props.disabled,de=L;if(s.isValid(de)&&!ie){var ve=F(void 0,s.state,s.props);de>ve?de=ve:de<1&&(de=1),"current"in s.props||s.setState({current:de,currentInputValue:de});var Be=s.state.pageSize;return s.props.onChange(de,Be),de}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?de-2:0),Be=2;Be=R?ee=R:ee=Number(j),ee}},{key:"getShowSizeChanger",value:function(){var s=this.props,j=s.showSizeChanger,R=s.total,A=s.totalBoundaryShowSizeChanger;return typeof j!="undefined"?j:R>A}},{key:"renderPrev",value:function(s){var j=this.props,R=j.prevIcon,A=j.itemRender,ee=A(s,"prev",this.getItemIcon(R,"prev page")),L=!this.hasPrev();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"renderNext",value:function(s){var j=this.props,R=j.nextIcon,A=j.itemRender,ee=A(s,"next",this.getItemIcon(R,"next page")),L=!this.hasNext();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"render",value:function(){var s=this,j=this.props,R=j.prefixCls,A=j.className,ee=j.style,L=j.disabled,ie=j.hideOnSinglePage,de=j.total,ve=j.locale,Be=j.showQuickJumper,_e=j.showLessItems,oe=j.showTitle,ye=j.showTotal,Se=j.simple,Pe=j.itemRender,De=j.showPrevNextJumpers,Ge=j.jumpPrevIcon,Ce=j.jumpNextIcon,ht=j.selectComponentClass,ct=j.selectPrefixCls,Xe=j.pageSizeOptions,le=this.state,we=le.current,wt=le.pageSize,Te=le.currentInputValue;if(ie===!0&&de<=wt)return null;var Y=F(void 0,this.state,this.props),be=[],Je=null,bt=null,xt=null,tt=null,dt=null,Me=Be&&Be.goButton,Re=_e?1:2,ge=we-1>0?we-1:0,Mt=we+1=Re*2&&we!==1+2&&(be[0]=Object(Q.cloneElement)(be[0],{className:"".concat(R,"-item-after-jump-prev")}),be.unshift(Je)),Y-we>=Re*2&&we!==Y-2&&(be[be.length-1]=Object(Q.cloneElement)(be[be.length-1],{className:"".concat(R,"-item-before-jump-next")}),be.push(bt)),$!==1&&be.unshift(xt),m!==Y&&be.push(tt)}var P=null;ye&&(P=D.a.createElement("li",{className:"".concat(R,"-total-text")},ye(de,[de===0?0:(we-1)*wt+1,we*wt>de?de:we*wt])));var K=!this.hasPrev()||!Y,W=!this.hasNext()||!Y;return D.a.createElement("ul",Object(N.a)({className:J()(R,A,Object(M.a)({},"".concat(R,"-disabled"),L)),style:ee,unselectable:"unselectable",ref:this.savePaginationNode},Pt),P,D.a.createElement("li",{title:oe?ve.prev_page:null,onClick:this.prev,tabIndex:K?null:0,onKeyPress:this.runIfEnterPrev,className:J()("".concat(R,"-prev"),Object(M.a)({},"".concat(R,"-disabled"),K)),"aria-disabled":K},this.renderPrev(ge)),be,D.a.createElement("li",{title:oe?ve.next_page:null,onClick:this.next,tabIndex:W?null:0,onKeyPress:this.runIfEnterNext,className:J()("".concat(R,"-next"),Object(M.a)({},"".concat(R,"-disabled"),W)),"aria-disabled":W},this.renderNext(Mt)),D.a.createElement(g,{disabled:L,locale:ve,rootPrefixCls:R,selectComponentClass:ht,selectPrefixCls:ct,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:we,pageSize:wt,pageSizeOptions:Xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Me}))}}],[{key:"getDerivedStateFromProps",value:function(s,j){var R={};if("current"in s&&(R.current=s.current,s.current!==j.current&&(R.currentInputValue=R.current)),"pageSize"in s&&s.pageSize!==j.pageSize){var A=j.current,ee=F(s.pageSize,j,s);A=A>ee?ee:A,"current"in s||(R.current=A,R.currentInputValue=A),R.pageSize=s.pageSize}return R}}]),b}(D.a.Component);se.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:U,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:U,locale:u.a,style:{},itemRender:X,totalBoundaryShowSizeChanger:50};var w=se},"6RRn":function(mt,ne,r){"use strict";var N=r("wCXF"),M=r("n6Qo");r.d(ne,"b",function(){return M.a});var he=r("IBYe"),S=r("6eGT"),o=r("hW8S");r.d(ne,"a",function(){return o.a}),ne.c=N.b},"6eGT":function(mt,ne,r){"use strict";function N(M){return null}ne.a=N},"815F":function(mt,ne,r){"use strict";r.d(ne,"e",function(){return ae}),r.d(ne,"c",function(){return D}),r.d(ne,"d",function(){return G}),r.d(ne,"a",function(){return me}),r.d(ne,"f",function(){return re}),r.d(ne,"b",function(){return q});var N=r("KQm4"),M=r("VTBJ"),he=r("Ff2n"),S=r("Zm9Q"),o=r("Kwbf"),C=r("OZM5");function ae(_,g){return _!=null?_:g}function Q(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function u(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(U||[]).forEach(function(X){var F=X.key,se=X.children;Object(o.a)(F!=null,"Tree node must have a certain key: [".concat(H).concat(F,"]"));var w=String(F);Object(o.a)(!g.has(w)||F===null||F===void 0,"Same 'key' exist in the Tree: ".concat(w)),g.set(w,!0),u(se,"".concat(H).concat(w," > "))})}u(_)}function D(_){function g(u){var U=Object(S.a)(u);return U.map(function(H){if(!Object(C.i)(H))return Object(o.a)(!H,"Tree/TreeNode can only accept TreeNode as children."),null;var X=H.key,F=H.props,se=F.children,w=Object(he.a)(F,["children"]),k=Object(M.a)({key:X},w),E=g(se);return E.length&&(k.children=E),k}).filter(function(H){return H})}return g(_)}function G(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=new Set(g===!0?[]:g),U=[];function H(X){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return X.map(function(se,w){var k=Object(C.h)(F?F.pos:"0",w),E=ae(se.key,k),b=Object(M.a)(Object(M.a)({},se),{},{parent:F,pos:k,children:null,data:se,isStart:[].concat(Object(N.a)(F?F.isStart:[]),[w===0]),isEnd:[].concat(Object(N.a)(F?F.isEnd:[]),[w===X.length-1])});return U.push(b),g===!0||u.has(E)?b.children=H(se.children||[],b):b.children=[],b})}return H(_),U}function J(_,g,u){var U;u?typeof u=="string"?U=function(F){return F[u]}:typeof u=="function"&&(U=function(F){return u(F)}):U=function(F,se){return ae(F.key,se)};function H(X,F,se){var w=X?X.children:_,k=X?Object(C.h)(se.pos,F):"0";if(X){var E=U(X,k),b={node:X,index:F,pos:k,key:E,parentPos:se.node?se.pos:null,level:se.level+1};g(b)}w&&w.forEach(function(f,s){H(f,s,{node:X,pos:k,level:se?se.level+1:-1})})}H(null)}function me(_){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=g.initWrapper,U=g.processEntity,H=g.onProcessFinished,X=arguments.length>2?arguments[2]:void 0,F={},se={},w={posEntities:F,keyEntities:se};return u&&(w=u(w)||w),J(_,function(k){var E=k.node,b=k.index,f=k.pos,s=k.key,j=k.parentPos,R=k.level,A={node:E,index:b,key:s,pos:f,level:R},ee=ae(s,f);F[f]=A,se[ee]=A,A.parent=F[j],A.parent&&(A.parent.children=A.parent.children||[],A.parent.children.push(A)),U&&U(A,w)},X),H&&H(w),w}function re(_,g){var u=g.expandedKeys,U=g.selectedKeys,H=g.loadedKeys,X=g.loadingKeys,F=g.checkedKeys,se=g.halfCheckedKeys,w=g.dragOverNodeKey,k=g.dropPosition,E=g.keyEntities,b=E[_],f={eventKey:_,expanded:u.indexOf(_)!==-1,selected:U.indexOf(_)!==-1,loaded:H.indexOf(_)!==-1,loading:X.indexOf(_)!==-1,checked:F.indexOf(_)!==-1,halfChecked:se.indexOf(_)!==-1,pos:String(b?b.pos:""),dragOver:w===_&&k===0,dragOverGapTop:w===_&&k===-1,dragOverGapBottom:w===_&&k===1};return f}function q(_){var g=_.data,u=_.expanded,U=_.selected,H=_.checked,X=_.loaded,F=_.loading,se=_.halfChecked,w=_.dragOver,k=_.dragOverGapTop,E=_.dragOverGapBottom,b=_.pos,f=_.active,s=Object(M.a)(Object(M.a)({},g),{},{expanded:u,selected:U,checked:H,loaded:X,loading:F,halfChecked:se,dragOver:w,dragOverGapTop:k,dragOverGapBottom:E,pos:b,active:f});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),s}},BU3w:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var N=r("MNnm"),M="rc-util-key";function he(ae){if(ae.attachTo)return ae.attachTo;var Q=document.querySelector("head");return Q||document.body}function S(ae){var Q,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(N.a)())return null;var G=document.createElement("style");if((Q=D.csp)===null||Q===void 0?void 0:Q.nonce){var J;G.nonce=(J=D.csp)===null||J===void 0?void 0:J.nonce}G.innerHTML=ae;var me=he(D),re=me.firstChild;return D.prepend&&me.prepend?me.prepend(G):D.prepend&&re?me.insertBefore(G,re):me.appendChild(G),G}var o=new Map;function C(ae,Q){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=he(D);if(!o.has(G)){var J=S("",D),me=J.parentNode;o.set(G,me),me.removeChild(J)}var re=Array.from(o.get(G).children).find(function(U){return U.tagName==="STYLE"&&U[M]===Q});if(re){var q,_;if(((q=D.csp)===null||q===void 0?void 0:q.nonce)&&re.nonce!==((_=D.csp)===null||_===void 0?void 0:_.nonce)){var g;re.nonce=(g=D.csp)===null||g===void 0?void 0:g.nonce}return re.innerHTML!==ae&&(re.innerHTML=ae),re}var u=S(ae,D);return u[M]=Q,u}},IBYe:function(mt,ne,r){"use strict";function N(M){return null}ne.a=N},LH4l:function(mt,ne,r){mt.exports={flex_box_center:"flex_box_center___2kM9t",flex_space_between:"flex_space_between___2GWTm",flex_box_vertical_center:"flex_box_vertical_center___1fefq",flex_box_center_end:"flex_box_center_end___1W7v1",flex_box_column:"flex_box_column___1ghF4",bg:"bg___2u1mi",title:"title___2oznh",img:"img___e7qFG",right:"right___2qEm7",top:"top___64ioH",spanfont:"spanfont___1M2sf",bottom:"bottom___uHkeQ",rightdiv:"rightdiv___3xV1j",fonttitle:"fonttitle___35Nl1",ling:"ling___348jK",content:"content___cYR2j",bgs:"bgs___3sNmI",contenttitle:"contenttitle___BbdDe",titlecoent:"titlecoent___1aw6d",es:"es___3bs0Z"}},LdHM:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return X}),r.d(ne,"a",function(){return se});var N=r("1OyB"),M=r("vuIU"),he=r("Ji7U"),S=r("LK+K"),o=r("q1tI"),C=r("rePB"),ae=r("Ff2n"),Q=r("ODXe"),D=r("4IlW"),G=r("bX4T"),J=r("YrtM"),me=r("TSYQ"),re=r.n(me),q=r("+nKL"),_=r("8OUc"),g=function(oe,ye){var Se=oe.prefixCls,Pe=oe.id,De=oe.flattenOptions,Ge=oe.childrenAsData,Ce=oe.values,ht=oe.searchValue,ct=oe.multiple,Xe=oe.defaultActiveFirstOption,le=oe.height,we=oe.itemHeight,wt=oe.notFoundContent,Te=oe.open,Y=oe.menuItemSelectedIcon,be=oe.virtual,Je=oe.onSelect,bt=oe.onToggleOpen,xt=oe.onActiveValue,tt=oe.onScroll,dt=oe.onMouseEnter,Me="".concat(Se,"-item"),Re=Object(J.a)(function(){return De},[Te,De],function(x,P){return P[0]&&x[1]!==P[1]}),ge=o.useRef(null),Mt=function(P){P.preventDefault()},Pt=function(P){ge.current&&ge.current.scrollTo({index:P})},Ye=function(P){for(var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,W=Re.length,fe=0;fe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(_e).map(function(ye,Se){if(!o.isValidElement(ye)||!ye.type)return null;var Pe=ye.type.isSelectOptGroup,De=ye.key,Ge=ye.props,Ce=Ge.children,ht=Object(ae.a)(Ge,["children"]);return oe||!Pe?E(ye):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(De===null?Se:De,"__"),label:De},ht),{},{options:b(Ce)})}).filter(function(ye){return ye})}var f=r("2Qr1"),s=r("qNPg"),j=r("U8pU"),R=r("Kwbf"),A=r("WKfj");function ee(_e){var oe=_e.mode,ye=_e.options,Se=_e.children,Pe=_e.backfill,De=_e.allowClear,Ge=_e.placeholder,Ce=_e.getInputElement,ht=_e.showSearch,ct=_e.onSearch,Xe=_e.defaultOpen,le=_e.autoFocus,we=_e.labelInValue,wt=_e.value,Te=_e.inputValue,Y=_e.optionLabelProp,be=oe==="multiple"||oe==="tags",Je=ht!==void 0?ht:be||oe==="combobox",bt=ye||b(Se);if(Object(R.a)(oe!=="tags"||bt.every(function(Me){return!Me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),oe==="tags"||oe==="combobox"){var xt=bt.some(function(Me){return Me.options?Me.options.some(function(Re){return typeof("value"in Re?Re.value:Re.key)=="number"}):typeof("value"in Me?Me.value:Me.key)=="number"});Object(R.a)(!xt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)(oe!=="combobox"||!Y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)(oe==="combobox"||!Pe,"`backfill` only works with `combobox` mode."),Object(R.a)(oe==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(R.b)(oe!=="combobox"||!Ce||!De||!Ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ct&&!Je&&oe!=="combobox"&&oe!=="tags"&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!Xe||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),wt!=null){var tt=Object(A.d)(wt);Object(R.a)(!we||tt.every(function(Me){return Object(j.a)(Me)==="object"&&("key"in Me||"value"in Me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!be||Array.isArray(wt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Se){var dt=null;Object(k.a)(Se).some(function(Me){if(!o.isValidElement(Me)||!Me.type)return!1;var Re=Me.type;if(Re.isSelectOption)return!1;if(Re.isSelectOptGroup){var ge=Object(k.a)(Me.props.children).every(function(Mt){return!o.isValidElement(Mt)||!Me.type||Mt.type.isSelectOption?!0:(dt=Mt.type,!1)});return!ge}return dt=Re,!0}),dt&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(dt.displayName||dt.name||dt,"`.")),Object(R.a)(Te===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=ee,ie=Object(s.a)({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:b,flattenOptions:f.d,getLabeledValue:f.e,filterOptions:f.b,isValueDisabled:f.g,findValueOption:f.c,warningProps:L,fillOptionsWithMissingValue:f.a}),de=function(_e){Object(he.a)(ye,_e);var oe=Object(S.a)(ye);function ye(){var Se;return Object(N.a)(this,ye),Se=oe.apply(this,arguments),Se.selectRef=o.createRef(),Se.focus=function(){Se.selectRef.current.focus()},Se.blur=function(){Se.selectRef.current.blur()},Se}return Object(M.a)(ye,[{key:"render",value:function(){return o.createElement(ie,Object.assign({ref:this.selectRef},this.props))}}]),ye}(o.Component);de.Option=X,de.OptGroup=se;var ve=de,Be=ne.c=ve},NvD2:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var N=r("Kwbf");function M(ae,Q){var D=new Set;return ae.forEach(function(G){Q.has(G)||D.add(G)}),D}function he(ae){var Q=ae||{},D=Q.disabled,G=Q.disableCheckbox,J=Q.checkable;return!!(D||G)||J===!1}function S(ae,Q,D,G){for(var J=new Set(ae),me=new Set,re=0;re<=D;re+=1){var q=Q.get(re)||new Set;q.forEach(function(U){var H=U.key,X=U.node,F=U.children,se=F===void 0?[]:F;J.has(H)&&!G(X)&&se.filter(function(w){return!G(w.node)}).forEach(function(w){J.add(w.key)})})}for(var _=new Set,g=D;g>=0;g-=1){var u=Q.get(g)||new Set;u.forEach(function(U){var H=U.parent,X=U.node;if(G(X)||!U.parent||_.has(U.parent.key))return;if(G(U.parent.node)){_.add(H.key);return}var F=!0,se=!1;(H.children||[]).filter(function(w){return!G(w.node)}).forEach(function(w){var k=w.key,E=J.has(k);F&&!E&&(F=!1),!se&&(E||me.has(k))&&(se=!0)}),F&&J.add(H.key),se&&me.add(H.key),_.add(H.key)})}return{checkedKeys:Array.from(J),halfCheckedKeys:Array.from(M(me,J))}}function o(ae,Q,D,G,J){for(var me=new Set(ae),re=new Set(Q),q=0;q<=G;q+=1){var _=D.get(q)||new Set;_.forEach(function(H){var X=H.key,F=H.node,se=H.children,w=se===void 0?[]:se;!me.has(X)&&!re.has(X)&&!J(F)&&w.filter(function(k){return!J(k.node)}).forEach(function(k){me.delete(k.key)})})}re=new Set;for(var g=new Set,u=G;u>=0;u-=1){var U=D.get(u)||new Set;U.forEach(function(H){var X=H.parent,F=H.node;if(J(F)||!H.parent||g.has(H.parent.key))return;if(J(H.parent.node)){g.add(X.key);return}var se=!0,w=!1;(X.children||[]).filter(function(k){return!J(k.node)}).forEach(function(k){var E=k.key,b=me.has(E);se&&!b&&(se=!1),!w&&(b||re.has(E))&&(w=!0)}),se||me.delete(X.key),w&&re.add(X.key),g.add(X.key)})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(M(re,me))}}function C(ae,Q,D,G){var J=[],me;G?me=G:me=he;var re=new Set(ae.filter(function(u){var U=!!D[u];return U||J.push(u),U})),q=new Map,_=0;Object.keys(D).forEach(function(u){var U=D[u],H=U.level,X=q.get(H);X||(X=new Set,q.set(H,X)),X.add(U),_=Math.max(_,H)}),Object(N.a)(!J.length,"Tree missing follow keys: ".concat(J.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var g;return Q===!0?g=S(re,q,_,me):g=o(re,Q.halfCheckedKeys,q,_,me),g}},OZM5:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return G}),r.d(ne,"a",function(){return J}),r.d(ne,"k",function(){return me}),r.d(ne,"h",function(){return re}),r.d(ne,"i",function(){return q}),r.d(ne,"g",function(){return _}),r.d(ne,"c",function(){return g}),r.d(ne,"d",function(){return u}),r.d(ne,"j",function(){return X}),r.d(ne,"e",function(){return F}),r.d(ne,"f",function(){return se});var N=r("KQm4"),M=r("U8pU"),he=r("Ff2n"),S=r("q1tI"),o=r.n(S),C=r("Kwbf"),ae=r("WaYH"),Q=.25,D=2;function G(w,k){var E=w.slice(),b=E.indexOf(k);return b>=0&&E.splice(b,1),E}function J(w,k){var E=w.slice();return E.indexOf(k)===-1&&E.push(k),E}function me(w){return w.split("-")}function re(w,k){return"".concat(w,"-").concat(k)}function q(w){return w&&w.type&&w.type.isTreeNode}function _(w,k){var E=[w],b=k[w];function f(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(j){var R=j.key,A=j.children;E.push(R),f(A)})}return f(b.children),E}function g(w,k){var E=w.clientY,b=k.selectHandle.getBoundingClientRect(),f=b.top,s=b.bottom,j=b.height,R=Math.max(j*Q,D);return E<=f+R?-1:E>=s-R?1:0}function u(w,k){if(!w)return;var E=k.multiple;return E?w.slice():w.length?[w[0]]:w}var U=function(k){return k};function H(w,k){if(!w)return[];var E=k||{},b=E.processProps,f=b===void 0?U:b,s=Array.isArray(w)?w:[w];return s.map(function(j){var R=j.children,A=Object(he.a)(j,["children"]),ee=H(R,k);return o.a.createElement(ae.a,Object.assign({},f(A)),ee)})}function X(w){if(!w)return null;var k;if(Array.isArray(w))k={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(M.a)(w)==="object")k={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function F(w,k){var E=new Set;function b(f){if(E.has(f))return;var s=k[f];if(!s)return;E.add(f);var j=s.parent,R=s.node;if(R.disabled)return;j&&b(j.key)}return(w||[]).forEach(function(f){b(f)}),Object(N.a)(E)}function se(w){var k={};return Object.keys(w).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(k[E]=w[E])}),k}},"SA+Z":function(mt,ne,r){var N=r("wTVA"),M=r("EbDI"),he=r("ZhPi"),S=r("wkBT");function o(C){return N(C)||M(C)||he(C)||S()}mt.exports=o,mt.exports.__esModule=!0,mt.exports.default=mt.exports},TljI:function(mt,ne,r){"use strict";r.r(ne);var N=r("qVdP"),M=r("jsC+"),he=r("DYRE"),S=r("zeV3"),o=r("lUTK"),C=r("BvKs"),ae=r("sPJy"),Q=r("bE4q"),D=r("9og8"),G=r("k1fw"),J=r("tJVT"),me=r("Znn+"),re=r("ZTPi"),q=r("WmNS"),_=r.n(q),g=r("q1tI"),u=r.n(g),U=r("wd/R"),H=r.n(U),X=r("Ty5D"),F=r("55Ip"),se=r("9kvl"),w=r("ErOA"),k=r("LH4l"),E=r.n(k),b=r("8Skl"),f=r("DjyN"),s=r("NUBc"),j=r("g9YV"),R=r("wCAj");H.a.locale("zh-cn");var A=re.a.TabPane,ee=[{text:"\u672A\u5F00\u542F",color:"#272A3A"},{text:"\u672A\u901A\u5173",color:"#E30000"},{text:"\u6309\u65F6\u901A\u5173",color:"#038D00"},{text:"\u8FDF\u4EA4\u901A\u5173",color:"#0152D9"}],L=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="1"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u5B9E\u9A8C\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/shixun_homework/").concat(P==null?void 0:P.id,"/").concat(P==null?void 0:P.student_work_id,"/comment"),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=ee[x])===null||P===void 0?void 0:P.color}},(K=ee[x])===null||K===void 0?void 0:K.text)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",key:"sum_evaluate_count"},{title:"\u901A\u5173\u60C5\u51B5",dataIndex:"current_complete_count",align:"center",key:"current_complete_count",render:function(x,P){return u.a.createElement("span",null,x+"/"+(P==null?void 0:P.complete_count))}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"work_score",align:"center",key:"address",render:function(x){return u.a.createElement("span",{style:{color:parseInt(x)===100?"#FF6800":"#E30000"}},x)}},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u5B9E\u9A8C")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u542F")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#E30000"}},m==null?void 0:m.uncompelete_count),u.a.createElement("div",null,"\u672A\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.opportune_compelete_count),u.a.createElement("div",null,"\u6309\u65F6\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.late_compelete_count),u.a.createElement("div",null,"\u8FDF\u4EA4\u901A\u5173")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_challenges_count),u.a.createElement("div",null,"\u5168\u90E8\u5173\u5361")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.compelete_count),u.a.createElement("div",null,"\u5DF2\u8FC7\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_evaluate_count)||0),u.a.createElement("div",null,"\u8BC4\u6D4B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ie=Object(se.a)(function(Te){var Y=Te.classroomList,be=Te.loading,Je=Te.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(L);H.a.locale("zh-cn");var de=re.a.TabPane,ve=[{text:"\u672A\u5F00\u59CB",color:"#272A3A"},{text:"\u8003\u8BD5\u4E2D",color:"#0152D9"},{text:"\u5DF2\u4EA4\u5377",color:"#038D00"},{text:"\u5DF2\u4EA4\u5377/\u672A\u7B54",color:"#038D00"}],Be=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:5,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="4"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u8003\u8BD5\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"36%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/exercise/").concat(P==null?void 0:P.id,"/review/").concat(ge.login),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",key:"commit_status",width:"11%",render:function(x){var P,K;return u.a.createElement("span",{style:{color:(P=ve[x])===null||P===void 0?void 0:P.color}},(K=ve[x])===null||K===void 0?void 0:K.text)}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",key:"end_at",width:"27%",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",width:"11%"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",width:"15%",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(be=parseFloat(m==null?void 0:m.total_score))===null||be===void 0?void 0:be.toFixed(2)),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},m==null?void 0:m.total_count),u.a.createElement("div",null,"\u5168\u90E8\u8003\u8BD5")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.total_unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u59CB")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_examing_count),u.a.createElement("div",null,"\u8003\u8BD5\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.total_commit_count,u.a.createElement("span",{style:{color:"#272A3A"}},"/",m==null?void 0:m.total_uncommit_count)),u.a.createElement("div",null,"\u5DF2\u4EA4\u5377/\u672A\u7B54"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},_e=Object(se.a)(function(Te){var Y=Te.classroomList,be=Te.loading,Je=Te.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Be);H.a.locale("zh-cn");var oe=re.a.TabPane,ye=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Se=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:1,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="2"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/common_homework/").concat(P==null?void 0:P.id,"/review/").concat(P==null?void 0:P.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=ye[x])===null||P===void 0?void 0:P.color}},(K=ye[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},Pe=Object(se.a)(function(Te){var Y=Te.classroomList,be=Te.loading,Je=Te.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Se);H.a.locale("zh-cn");var De=re.a.TabPane,Ge=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Ce=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:3,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="3"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/group_homework/").concat(P==null?void 0:P.id,"/review/").concat(P==null?void 0:P.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u5206\u7EC4",dataIndex:"work_group",key:"work_group",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=Ge[x])===null||P===void 0?void 0:P.color}},(K=Ge[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ht=Object(se.a)(function(Te){var Y=Te.classroomList,be=Te.loading,Je=Te.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Ce),ct=r("m3rI"),Xe=r("xKgJ");H.a.locale("zh-cn");var le=re.a.TabPane,we=function(Y){var be,Je,bt,xt,tt,dt,Me,Re,ge,Mt,Pt,Ye,Et,Wt,O,I,$,m=Y.classroomList,V=Y.globalSetting,x=Y.loading,P=Y.dispatch,K=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4})),W=Object(J.a)(K,2),fe=W[0],ue=W[1],Ee=Object(g.useState)(),Ne=Object(J.a)(Ee,2),Z=Ne[0],ke=Ne[1],pt=Object(g.useState)(),Qe=Object(J.a)(pt,2),nt=Qe[0],Ae=Qe[1],zt=Object(g.useState)("1"),Rt=Object(J.a)(zt,2),it=Rt[0],jt=Rt[1],Ht=Object(X.h)();Object(g.useEffect)(function(){at(Object(G.a)({},fe)),Ot(Object(G.a)({},fe)),P({type:"classroomList/getClassroomLeftMenus",payload:Object(G.a)({},fe)})},[]),Object(g.useEffect)(function(){var ce,Ie,gt,Lt,Fe,fn,mn,En,tn;m!=null&&(ce=m.detailLeftMenus)!==null&&ce!==void 0&&(Ie=ce.course_modules)!==null&&Ie!==void 0&&Ie.map(function(St){return St.type}).find(function(St){return St==="shixun_homework"})?jt("1"):m!=null&&(gt=m.detailLeftMenus)!==null&>!==void 0&&(Lt=gt.course_modules)!==null&&Lt!==void 0&&Lt.map(function(St){return St.type}).find(function(St){return St==="common_homework"})?jt("2"):m!=null&&(Fe=m.detailLeftMenus)!==null&&Fe!==void 0&&(fn=Fe.course_modules)!==null&&fn!==void 0&&fn.map(function(St){return St.type}).find(function(St){return St==="group_homework"})?jt("3"):m!=null&&(mn=m.detailLeftMenus)!==null&&mn!==void 0&&(En=mn.course_modules)!==null&&En!==void 0&&En.map(function(St){return St.type}).find(function(St){return St==="exercise"})&&jt("4")},[m==null||((be=m.detailLeftMenus)===null||be===void 0)?void 0:be.course_modules]);function at(ce){return Bt.apply(this,arguments)}function Bt(){return Bt=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/course_members/").concat(Ie.login,"/learning_statistics"),{method:"get",params:Ie});case 2:gt=Fe.sent,ue(Object(G.a)({},Ie)),gt&&ke(gt);case 5:case"end":return Fe.stop()}},ce)})),Bt.apply(this,arguments)}function Ot(ce){return ft.apply(this,arguments)}function ft(){return ft=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/students.json"),{method:"get",params:Object(G.a)({limit:2e3},Ie)});case 2:gt=Fe.sent,gt&&Ae(gt);case 4:case"end":return Fe.stop()}},ce)})),ft.apply(this,arguments)}var Le=m==null||((Je=m.detailLeftMenus)===null||Je===void 0||((bt=Je.course_modules)===null||bt===void 0))?void 0:bt.map(function(ce){return ce.type});return u.a.createElement("section",{className:E.a.bg},u.a.createElement(Q.a,{separator:">",style:{marginTop:20}},u.a.createElement(Q.a.Item,null,"\u6559\u5B66\u8BFE\u5802"),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:"/classrooms/".concat(fe==null?void 0:fe.coursesId)},Z==null?void 0:Z.course_name)),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:m==null||((xt=m.detailLeftMenus)===null||xt===void 0||((tt=xt.course_modules)===null||tt===void 0||((dt=tt.filter(function(ce){return ce.type==="statistics"}))===null||dt===void 0||((Me=dt[0])===null||Me===void 0))))?void 0:Me.category_url},"\u5B66\u751F\u5206\u6790")),u.a.createElement(Q.a.Item,null,"\u5B66\u751F\u5B66\u4E60\u8BE6\u60C5")),u.a.createElement("div",{className:E.a.title},u.a.createElement("div",{className:E.a.img},u.a.createElement("img",{src:ct.a.IMG_SERVER+"/images/"+(Z==null?void 0:Z.image_url)})),u.a.createElement("div",{className:E.a.right},u.a.createElement("div",{className:E.a.top},u.a.createElement("div",null,u.a.createElement("span",{className:E.a.spanfont},"\u59D3\u540D\uFF1A",u.a.createElement("span",null,Z==null?void 0:Z.username)),u.a.createElement("span",{className:E.a.spanfont},"\u5B66\u53F7\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.student_id)||"- -")),u.a.createElement("span",{className:E.a.spanfont},"\u5206\u73ED\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.course_group)||"- -"))),!Object(Xe.s)()&&u.a.createElement(M.a,{overlay:u.a.createElement(C.a,{selectedKeys:[fe==null?void 0:fe.login],style:{maxHeight:"380px",overflow:"auto"}},nt==null||((Re=nt.students)===null||Re===void 0)?void 0:Re.map(function(ce,Ie){return u.a.createElement(C.a.Item,{onClick:function(){se.d.push("/classrooms/".concat(fe==null?void 0:fe.coursesId,"/Studentdetail/").concat(ce==null?void 0:ce.login)),window.location.reload()},key:ce==null?void 0:ce.login},ce.name)}))},u.a.createElement(S.a,{style:{fontSize:14}},Z==null?void 0:Z.username,u.a.createElement(b.a,{style:{color:"#0152D9"}})))),u.a.createElement("div",{className:E.a.bottom},u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},Z==null||((ge=Z.total_score)===null||ge===void 0)?void 0:ge.toFixed(2)),u.a.createElement("div",null,"\u603B\u6210\u7EE9")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.course_group_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.course_group_user_ranking_count)),u.a.createElement("div",null,"\u5206\u73ED\u6392\u540D\uFF08\u6392\u540D / \u5206\u73ED\u4EBA\u6570\uFF09")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.overall_rating),u.a.createElement("div",null,"\u7EFC\u5408\u8BC4\u5206")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.total_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.total_user_ranking_count)),u.a.createElement("div",null,"\u7EFC\u5408\u603B\u6392\u540D\uFF08\u6392\u540D / \u603B\u4EBA\u6570\uFF09"))))),u.a.createElement("div",{className:E.a.content},u.a.createElement(re.a,{accessKey:it,onChange:function(Ie){jt(Ie)},tabBarStyle:{padding:"0px 40px",height:55}},(Le==null?void 0:Le.find(function(ce){return ce==="shixun_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Mt=m.detailLeftMenusNames)===null||Mt===void 0)?void 0:Mt.shixun_homework},m==null||((Pt=m.detailLeftMenusNames)===null||Pt===void 0)?void 0:Pt.shixun_homework),key:"1"},u.a.createElement(ie,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="common_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Ye=m.detailLeftMenusNames)===null||Ye===void 0)?void 0:Ye.common_homework},m==null||((Et=m.detailLeftMenusNames)===null||Et===void 0)?void 0:Et.common_homework),key:"2"},u.a.createElement(Pe,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="group_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Wt=m.detailLeftMenusNames)===null||Wt===void 0)?void 0:Wt.group_homework},m==null||((O=m.detailLeftMenusNames)===null||O===void 0)?void 0:O.group_homework),key:"3"},u.a.createElement(ht,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="exercise"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((I=m.detailLeftMenusNames)===null||I===void 0)?void 0:I.exercise},m==null||(($=m.detailLeftMenusNames)===null||$===void 0)?void 0:$.exercise),key:"4"},u.a.createElement(_e,{activitykey:it})))))},wt=ne.default=Object(se.a)(function(Te){var Y=Te.classroomList,be=Te.loading,Je=Te.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(we)},WaYH:function(mt,ne,r){"use strict";var N=r("rePB"),M=r("Ff2n"),he=r("VTBJ"),S=r("1OyB"),o=r("vuIU"),C=r("JX7q"),ae=r("Ji7U"),Q=r("LK+K"),D=r("q1tI"),G=r("TSYQ"),J=r.n(G),me=r("sboe"),re=r("OZM5"),q=function(k){var E=k.prefixCls,b=k.level,f=k.isStart,s=k.isEnd;if(!b)return null;for(var j="".concat(E,"-indent-unit"),R=[],A=0;Ay&&(B=y-z),Object(o.useMemo)(function(){if(!n.length)return[0,0];for(var te=n.length,je=te,ze=0;zep+B){je=ze-1;break}}for(var Ve=0,He=te-1;He>=0;He-=1){var Ke=a.get(n[He].key)||F;if(Ke[h]1&&arguments[1]!==void 0?arguments[1]:!1,l=d&&typeof d.getBoundingClientRect=="function"&&d.getBoundingClientRect().width;if(l){if(v){var e=getComputedStyle(d),n=e.marginLeft,t=e.marginRight;l+=+n.replace("px","")+ +t.replace("px","")}l=+l.toFixed(6)}return l||0},Me=function(d,v,l){d&&Object(ie.a)(d.style)==="object"&&(d.style[v]=l)},Re=function(){return Te.any},ge=r("bdgK"),Mt=r("i8i4"),Pt=r.n(Mt),Ye=r("wgJM"),Et=r("l4aY"),Wt=r("m+aA"),O=r("c+Xe"),I=r("zT1h"),$=r("QC+M");function m(a,d,v){return v?a[0]===d[0]:a[0]===d[0]&&a[1]===d[1]}function V(a,d,v){var l=a[d]||{};return Object(S.a)(Object(S.a)({},l),v)}function x(a,d,v,l){for(var e=v.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;d();var n=Object(Ye.a)(function(){e<=1?l({isCanceled:function(){return n!==a.current}}):v(l,e-1)});a.current=n}return o.useEffect(function(){return function(){d()}},[]),[v,d]},fn=[Ot,ft,Le,ce],mn=!1,En=!0;function tn(a){return a===Le||a===ce}var St=function(a,d){var v=o.useState(Bt),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Fe(),i=Object(M.a)(t,2),c=i[0],h=i[1];function p(){n(Ot)}return Lt(function(){if(e!==Bt&&e!==ce){var y=fn.indexOf(e),T=fn[y+1],z=d(e);z===mn?n(T):c(function(B){function te(){if(B.isCanceled())return;n(T)}z===!0?te():Promise.resolve(z).then(te)})}},[a,e]),o.useEffect(function(){return function(){h()}},[]),[p,e]},jn=function(a){var d=Object(o.useRef)(),v=Object(o.useRef)(a);v.current=a;var l=o.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(zt,l),t.removeEventListener(Ae,l))}function n(t){d.current&&d.current!==t&&e(d.current),t&&t!==d.current&&(t.addEventListener(zt,l),t.addEventListener(Ae,l),d.current=t)}return o.useEffect(function(){return function(){e(d.current)}},[]),[n,e]};function Mn(a,d,v,l){var e=l.motionEnter,n=e===void 0?!0:e,t=l.motionAppear,i=t===void 0?!0:t,c=l.motionLeave,h=c===void 0?!0:c,p=l.motionDeadline,y=l.motionLeaveImmediately,T=l.onAppearPrepare,z=l.onEnterPrepare,B=l.onLeavePrepare,te=l.onAppearStart,je=l.onEnterStart,ze=l.onLeaveStart,Ue=l.onAppearActive,Ve=l.onEnterActive,He=l.onLeaveActive,Ke=l.onAppearEnd,We=l.onEnterEnd,lt=l.onLeaveEnd,$e=l.onVisibleChanged,It=Ie(),yt=Object(M.a)(It,2),xe=yt[0],Oe=yt[1],Ze=Ie(it),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Tt=Ie(null),ut=Object(M.a)(Tt,2),_t=ut[0],At=ut[1],Gt=Object(o.useRef)(!1),rn=Object(o.useRef)(null),Kt=Object(o.useRef)(!1),ln=Object(o.useRef)(null);function Cn(){var Dt=v();return Dt||ln.current}var un=Object(o.useRef)(!1);function cn(Dt){var vt=Cn();if(Dt&&!Dt.deadline&&Dt.target!==vt)return;var Yt;pe===jt&&un.current?Yt=Ke==null?void 0:Ke(vt,Dt):pe===Ht&&un.current?Yt=We==null?void 0:We(vt,Dt):pe===at&&un.current&&(Yt=lt==null?void 0:lt(vt,Dt)),Yt!==!1&&!Kt.current&&(st(it),At(null))}var Ft=jn(cn),en=Object(M.a)(Ft,1),Jt=en[0],$t=o.useMemo(function(){var Dt,vt,Yt;switch(pe){case"appear":return Dt={},Object(N.a)(Dt,Ot,T),Object(N.a)(Dt,ft,te),Object(N.a)(Dt,Le,Ue),Dt;case"enter":return vt={},Object(N.a)(vt,Ot,z),Object(N.a)(vt,ft,je),Object(N.a)(vt,Le,Ve),vt;case"leave":return Yt={},Object(N.a)(Yt,Ot,B),Object(N.a)(Yt,ft,ze),Object(N.a)(Yt,Le,He),Yt;default:return{}}},[pe]),wn=St(pe,function(Dt){if(Dt===Ot){var vt=$t[Ot];return vt?vt(Cn()):mn}if(Nt in $t){var Yt;At(((Yt=$t[Nt])===null||Yt===void 0?void 0:Yt.call($t,Cn(),null))||null)}return Nt===Le&&(Jt(Cn()),p>0&&(clearTimeout(rn.current),rn.current=setTimeout(function(){cn({deadline:!0})},p))),En}),An=Object(M.a)(wn,2),Fn=An[0],Nt=An[1],xn=tn(Nt);un.current=xn,Lt(function(){Oe(d);var Dt=Gt.current;if(Gt.current=!0,!a)return;var vt;!Dt&&d&&i&&(vt=jt),Dt&&d&&n&&(vt=Ht),(Dt&&!d&&h||!Dt&&y&&!d&&h)&&(vt=at),vt&&(st(vt),Fn())},[d]),Object(o.useEffect)(function(){(pe===jt&&!i||pe===Ht&&!n||pe===at&&!h)&&st(it)},[i,n,h]),Object(o.useEffect)(function(){return function(){clearTimeout(rn.current),Kt.current=!0}},[]),Object(o.useEffect)(function(){xe!==void 0&&pe===it&&($e==null||$e(xe))},[xe,pe]);var zn=_t;return $t[Ot]&&Nt===ft&&(zn=Object(S.a)({transition:"none"},zn)),[pe,Nt,zn,xe!=null?xe:d]}var Hn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){return Object(k.a)(this,v),d.apply(this,arguments)}return Object(E.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(o.Component),nn=Hn;function Un(a){var d=a;Object(ie.a)(a)==="object"&&(d=a.transitionSupport);function v(e){return!!(e.motionName&&d)}var l=o.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,c=e.removeOnLeave,h=c===void 0?!0:c,p=e.forceRender,y=e.children,T=e.motionName,z=e.leavedClassName,B=e.eventProps,te=v(e),je=Object(o.useRef)(),ze=Object(o.useRef)();function Ue(){try{return Object(Wt.a)(je.current||ze.current)}catch(st){return null}}var Ve=Mn(te,i,Ue,e),He=Object(M.a)(Ve,4),Ke=He[0],We=He[1],lt=He[2],$e=He[3],It=o.useRef($e);$e&&(It.current=!0);var yt=Object(o.useRef)(n);yt.current=n;var xe=o.useCallback(function(st){je.current=st,Object(O.b)(yt.current,st)},[]),Oe,Ze=Object(S.a)(Object(S.a)({},B),{},{visible:i});if(!y)Oe=null;else if(Ke===it||!v(e))$e?Oe=y(Object(S.a)({},Ze),xe):!h&&It.current?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:z}),xe):p?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{style:{display:"none"}}),xe):Oe=null;else{var et,pe;We===Ot?pe="prepare":tn(We)?pe="active":We===ft&&(pe="start"),Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:ae()(Rt(T,Ke),(et={},Object(N.a)(et,Rt(T,"".concat(Ke,"-").concat(pe)),pe),Object(N.a)(et,T,typeof T=="string"),et)),style:lt}),xe)}return o.createElement(nn,{ref:ze},Oe)});return l.displayName="CSSMotion",l}var On=Un(nt),kn="add",Rn="keep",gn="remove",Sn="removed";function Vn(a){var d;return a&&Object(ie.a)(a)==="object"&&"key"in a?d=a:d={key:a},Object(S.a)(Object(S.a)({},d),{},{key:String(d.key)})}function Pn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Vt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],l=0,e=d.length,n=Pn(a),t=Pn(d);n.forEach(function(h){for(var p=!1,y=l;y1});return c.forEach(function(h){v=v.filter(function(p){var y=p.key,T=p.status;return y!==h||T!==gn}),v.forEach(function(p){p.key===h&&(p.status=Rn)})}),v}var qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:On,v=function(l){Object(f.a)(n,l);var e=Object(s.a)(n);function n(){var t;return Object(k.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(c){var h=c.keyEntities;return{keyEntities:h.map(function(p){return p.key!==i?p:Object(S.a)(Object(S.a)({},p),{},{status:Sn})})}})},t}return Object(E.a)(n,[{key:"render",value:function(){var i=this,c=this.state.keyEntities,h=this.props,p=h.component,y=h.children,T=h.onVisibleChanged,z=Object(he.a)(h,["component","children","onVisibleChanged"]),B=p||o.Fragment,te={};return qt.forEach(function(je){te[je]=z[je],delete z[je]}),delete z.keys,o.createElement(B,z,c.map(function(je){var ze=je.status,Ue=Object(he.a)(je,["status"]),Ve=ze===kn||ze===Rn;return o.createElement(d,Object(w.a)({},te,{key:Ue.key,visible:Ve,eventProps:Ue,onVisibleChanged:function(Ke){T==null||T(Ke,{key:Ue.key}),Ke||i.removeKey(Ue.key)}}),y)}))}}],[{key:"getDerivedStateFromProps",value:function(i,c){var h=i.keys,p=c.keyEntities,y=Pn(h),T=Vt(p,y);return{keyEntities:T.filter(function(z){var B=p.find(function(te){var je=te.key;return z.key===je});return!(B&&B.status===Sn&&z.status===gn)})}}}]),n}(o.Component);return v.defaultProps={component:"div"},v}var Qt=sn(nt),an=On;function pn(a){var d=a.prefixCls,v=a.motion,l=a.animation,e=a.transitionName;return v||(l?{motionName:"".concat(d,"-").concat(l)}:e?{motionName:e}:null)}function $n(a){var d=a.prefixCls,v=a.visible,l=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var c={};return(n||i||t)&&(c=Object(S.a)({motionAppear:!0},pn({motion:n,prefixCls:d,transitionName:i,animation:t}))),o.createElement(an,Object(w.a)({},c,{visible:v,removeOnLeave:!0}),function(h){var p=h.className;return o.createElement("div",{style:{zIndex:l},className:ae()("".concat(d,"-mask"),p)})})}var In=r("9mu1"),Xn=r("o0o1"),Ma=r.n(Xn),Ra=r("HaE+"),Gn=["measure","align",null,"motion"],Ut=function(a,d){var v=Object(o.useState)(null),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Object(o.useRef)(),i=Object(o.useRef)(!1);function c(y){i.current||n(y)}function h(){Ye.a.cancel(t.current)}function p(y){h(),t.current=Object(Ye.a)(function(){c(function(T){switch(e){case"align":return"motion";case"motion":return"stable";default:}return T}),y==null||y()})}return Object(o.useEffect)(function(){c("measure")},[a]),Object(o.useEffect)(function(){switch(e){case"measure":d();break;default:}e&&(t.current=Object(Ye.a)(Object(Ra.a)(Ma.a.mark(function y(){var T,z;return Ma.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:T=Gn.indexOf(e),z=Gn[T+1],z&&T!==-1&&c(z);case 3:case"end":return te.stop()}},y)}))))},[e]),Object(o.useEffect)(function(){return function(){i.current=!0,h()}},[]),[e,p]},Jn=function(a){var d=o.useState({width:0,height:0}),v=Object(M.a)(d,2),l=v[0],e=v[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=o.useMemo(function(){var i={};if(a){var c=l.width,h=l.height;a.indexOf("height")!==-1&&h?i.height=h:a.indexOf("minHeight")!==-1&&h&&(i.minHeight=h),a.indexOf("width")!==-1&&c?i.width=c:a.indexOf("minWidth")!==-1&&c&&(i.minWidth=c)}return i},[a,l]);return[t,n]},Yn=o.forwardRef(function(a,d){var v=a.visible,l=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,c=a.stretch,h=a.destroyPopupOnHide,p=a.forceRender,y=a.align,T=a.point,z=a.getRootDomNode,B=a.getClassNameFromAlign,te=a.onAlign,je=a.onMouseEnter,ze=a.onMouseLeave,Ue=a.onMouseDown,Ve=a.onTouchStart,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useState)(),lt=Object(M.a)(We,2),$e=lt[0],It=lt[1],yt=Jn(c),xe=Object(M.a)(yt,2),Oe=xe[0],Ze=xe[1];function et(){c&&Ze(z())}var pe=Ut(v,et),st=Object(M.a)(pe,2),Tt=st[0],ut=st[1],_t=Object(o.useRef)();function At(){return T||z}function Gt(){var Ft;(Ft=He.current)===null||Ft===void 0||Ft.forceAlign()}function rn(Ft,en){var Jt=B(en);$e!==Jt&&It(Jt),Tt==="align"&&($e!==Jt?Promise.resolve().then(function(){Gt()}):ut(function(){var $t;($t=_t.current)===null||$t===void 0||$t.call(_t)}),te==null||te(Ft,en))}var Kt=Object(S.a)({},pn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ft){var en=Kt[Ft];Kt[Ft]=function(Jt,$t){return ut(),en==null?void 0:en(Jt,$t)}});function ln(){return new Promise(function(Ft){_t.current=Ft})}o.useEffect(function(){!Kt.motionName&&Tt==="motion"&&ut()},[Kt.motionName,Tt]),o.useImperativeHandle(d,function(){return{forceAlign:Gt,getElement:function(){return Ke.current}}});var Cn=Object(S.a)(Object(S.a)({},Oe),{},{zIndex:i,opacity:Tt==="motion"||Tt==="stable"||!v?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},n),un=!0;(y==null?void 0:y.points)&&(Tt==="align"||Tt==="stable")&&(un=!1);var cn=t;return o.Children.count(t)>1&&(cn=o.createElement("div",{className:"".concat(l,"-content")},t)),o.createElement(an,Object(w.a)({visible:v,ref:Ke,leavedClassName:"".concat(l,"-hidden")},Kt,{onAppearPrepare:ln,onEnterPrepare:ln,removeOnLeave:h,forceRender:p}),function(Ft,en){var Jt=Ft.className,$t=Ft.style,wn=ae()(l,e,$e,Jt);return o.createElement(In.a,{target:At(),key:"popup",ref:He,monitorWindowResize:!0,disabled:un,align:y,onAlign:rn},o.createElement("div",{ref:en,className:wn,onMouseEnter:je,onMouseLeave:ze,onMouseDownCapture:Ue,onTouchStartCapture:Ve,style:Object(S.a)(Object(S.a)({},$t),Cn)},cn))})});Yn.displayName="PopupInner";var Sa=Yn,vn=o.forwardRef(function(a,d){var v=a.prefixCls,l=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,c=t.popupStyle,h=t.popupMotion,p=h===void 0?{}:h,y=t.popupRender,T=o.useRef();o.useImperativeHandle(d,function(){return{forceAlign:function(){},getElement:function(){return T.current}}});var z=Object(S.a)({zIndex:e},c),B=n;return o.Children.count(n)>1&&(B=o.createElement("div",{className:"".concat(v,"-content")},n)),y&&(B=y(B)),o.createElement(an,Object(w.a)({visible:l,ref:T,removeOnLeave:!0},p),function(te,je){var ze=te.className,Ue=te.style,Ve=ae()(v,i,ze);return o.createElement("div",{ref:je,className:Ve,style:Object(S.a)(Object(S.a)({},Ue),z)},B)})});vn.displayName="MobilePopupInner";var Ha=vn,Pa=["visible","mobile"],oa=o.forwardRef(function(a,d){var v=a.visible,l=a.mobile,e=Object(he.a)(a,Pa),n=Object(o.useState)(v),t=Object(M.a)(n,2),i=t[0],c=t[1],h=Object(o.useState)(!1),p=Object(M.a)(h,2),y=p[0],T=p[1],z=Object(S.a)(Object(S.a)({},e),{},{visible:i});Object(o.useEffect)(function(){c(v),v&&l&&T(P())},[v,l]);var B=y?o.createElement(Ha,Object(w.a)({},z,{mobile:l,ref:d})):o.createElement(Sa,Object(w.a)({},z,{ref:d}));return o.createElement("div",null,o.createElement($n,z),B)});oa.displayName="Popup";var Va=oa,$a=o.createContext(null),ra=$a;function Qn(){}function Xa(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Na=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var d=function(v){Object(f.a)(e,v);var l=Object(s.a)(e);function e(n){var t;Object(k.a)(this,e),t=l.call(this,n),t.popupRef=o.createRef(),t.triggerRef=o.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var h=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,h,h?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var h;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Et.a)((h=t.popupRef.current)===null||h===void 0?void 0:h.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var h;if(t.preClickTime&&t.preTouchTime?h=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?h=t.preClickTime:t.preTouchTime&&(h=t.preTouchTime),Math.abs(h-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var p=!t.state.popupVisible;(t.isClickToHide()&&!p||p&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var h=c.target,p=t.getRootDomNode(),y=t.getPopupDomNode();(!Object(Et.a)(p,h)||t.isContextMenuOnly())&&!Object(Et.a)(y,h)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var h=Object(Wt.a)(t.triggerRef.current);if(h)return h}catch(p){}return Pt.a.findDOMNode(Object(b.a)(t))},t.getPopupClassNameFromAlign=function(c){var h=[],p=t.props,y=p.popupPlacement,T=p.builtinPlacements,z=p.prefixCls,B=p.alignPoint,te=p.getPopupClassNameFromAlign;return y&&T&&h.push(x(T,z,c,B)),te&&h.push(te(c)),h.join(" ")},t.getComponent=function(){var c=t.props,h=c.prefixCls,p=c.destroyPopupOnHide,y=c.popupClassName,T=c.onPopupAlign,z=c.popupMotion,B=c.popupAnimation,te=c.popupTransitionName,je=c.popupStyle,ze=c.mask,Ue=c.maskAnimation,Ve=c.maskTransitionName,He=c.maskMotion,Ke=c.zIndex,We=c.popup,lt=c.stretch,$e=c.alignPoint,It=c.mobile,yt=c.forceRender,xe=t.state,Oe=xe.popupVisible,Ze=xe.point,et=t.getPopupAlign(),pe={};return t.isMouseEnterToShow()&&(pe.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(pe.onMouseLeave=t.onPopupMouseLeave),pe.onMouseDown=t.onPopupMouseDown,pe.onTouchStart=t.onPopupMouseDown,o.createElement(Va,Object(w.a)({prefixCls:h,destroyPopupOnHide:p,visible:Oe,point:$e&&Ze,className:y,align:et,onAlign:T,animation:B,getClassNameFromAlign:t.getPopupClassNameFromAlign},pe,{stretch:lt,getRootDomNode:t.getRootDomNode,style:je,mask:ze,zIndex:Ke,transitionName:te,maskAnimation:Ue,maskTransitionName:Ve,maskMotion:He,ref:t.popupRef,motion:z,mobile:It,forceRender:yt}),typeof We=="function"?We():We)},t.attachParent=function(c){Ye.a.cancel(t.attachId);var h=t.props,p=h.getPopupContainer,y=h.getDocument,T=t.getRootDomNode(),z;p?(T||p.length===0)&&(z=p(T)):z=y(t.getRootDomNode()).body,z?z.appendChild(c):t.attachId=Object(Ye.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,h=c(t.getRootDomNode()).createElement("div");return h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.width="100%",t.attachParent(h),h},t.setPoint=function(c){var h=t.props.alignPoint;if(!h||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Na.forEach(function(c){t["fire".concat(c)]=function(h){t.fireEvents(c,h)}}),t}return Object(E.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(I.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(I.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(I.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(I.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ye.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,c=t.popupAlign,h=t.builtinPlacements;return i&&h?V(h,i,c):c}},{key:"setPopupVisible",value:function(t,i){var c=this.props.alignPoint,h=this.state.popupVisible;this.clearDelayTimer(),h!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:h}),this.props.onPopupVisibleChange(t)),c&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,c){var h=this,p=i*1e3;if(this.clearDelayTimer(),p){var y=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){h.setPopupVisible(t,y),h.clearDelayTimer()},p)}else this.setPopupVisible(t,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var i=this.props.children.props,c=this.props;return i[t]&&c[t]?this["fire".concat(t)]:i[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var c=this.props.children.props[t];c&&c(i);var h=this.props[t];h&&h(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,c=i.children,h=i.forceRender,p=i.alignPoint,y=i.className,T=i.autoDestroy,z=o.Children.only(c),B={key:"trigger"};this.isContextMenuToShow()?B.onContextMenu=this.onContextMenu:B.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(B.onClick=this.onClick,B.onMouseDown=this.onMouseDown,B.onTouchStart=this.onTouchStart):(B.onClick=this.createTwoChains("onClick"),B.onMouseDown=this.createTwoChains("onMouseDown"),B.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(B.onMouseEnter=this.onMouseEnter,p&&(B.onMouseMove=this.onMouseMove)):B.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?B.onMouseLeave=this.onMouseLeave:B.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(B.onFocus=this.onFocus,B.onBlur=this.onBlur):(B.onFocus=this.createTwoChains("onFocus"),B.onBlur=this.createTwoChains("onBlur"));var te=ae()(z&&z.props&&z.props.className,y);te&&(B.className=te);var je=Object(S.a)({},B);Object(O.c)(z)&&(je.ref=Object(O.a)(this.triggerRef,z.ref));var ze=o.cloneElement(z,je),Ue;return(t||this.popupRef.current||h)&&(Ue=o.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&T&&(Ue=null),o.createElement(ra.Provider,{value:this.triggerContextValue},ze,Ue)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var c=t.popupVisible,h={};return c!==void 0&&i.popupVisible!==c&&(h.popupVisible=c,h.prevPopupVisible=i.popupVisible),h}}]),e}(o.Component);return d.contextType=ra,d.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xa,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},d}var Ya=Ja($.a),yn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},Ta={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},la=ia,on=0,hn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},bn=function(d,v,l){var e=Je(v),n=d.getState();d.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},n.defaultActiveFirst),{},Object(N.a)({},e,l))})},sa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onDestroy=function(p){e.props.onDestroy(p)},e.onKeyDown=function(p){var y=p.keyCode,T=e.menuInstance,z=e.props.store,B=e.getVisible();if(y===g.a.ENTER)return e.onTitleClick(p),bn(z,e.props.eventKey,!0),!0;if(y===g.a.RIGHT)return B?T.onKeyDown(p):(e.triggerOpenChange(!0),bn(z,e.props.eventKey,!0)),!0;if(y===g.a.LEFT){var te;if(B)te=T.onKeyDown(p);else return;return te||(e.triggerOpenChange(!1),te=!0),te}return B&&(y===g.a.UP||y===g.a.DOWN)?T.onKeyDown(p):void 0},e.onOpenChange=function(p){e.props.onOpenChange(p)},e.onPopupVisibleChange=function(p){e.triggerOpenChange(p,p?"mouseenter":"mouseleave")},e.onMouseEnter=function(p){var y=e.props,T=y.eventKey,z=y.onMouseEnter,B=y.store;bn(B,e.props.eventKey,!1),z({key:T,domEvent:p})},e.onMouseLeave=function(p){var y=e.props,T=y.parentMenu,z=y.eventKey,B=y.onMouseLeave;T.subMenuInstance=Object(b.a)(e),B({key:z,domEvent:p})},e.onTitleMouseEnter=function(p){var y=e.props,T=y.eventKey,z=y.onItemHover,B=y.onTitleMouseEnter;z({key:T,hover:!0}),B({key:T,domEvent:p})},e.onTitleMouseLeave=function(p){var y=e.props,T=y.parentMenu,z=y.eventKey,B=y.onItemHover,te=y.onTitleMouseLeave;T.subMenuInstance=Object(b.a)(e),B({key:z,hover:!1}),te({key:z,domEvent:p})},e.onTitleClick=function(p){var y=Object(b.a)(e),T=y.props;if(T.onTitleClick({key:T.eventKey,domEvent:p}),T.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),bn(T.store,e.props.eventKey,!1)},e.onSubMenuClick=function(p){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(p))},e.onSelect=function(p){e.props.onSelect(p)},e.onDeselect=function(p){e.props.onDeselect(p)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(p){e.menuInstance=p},e.addKeyPath=function(p){return Object(S.a)(Object(S.a)({},p),{},{keyPath:(p.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(p,y){var T=e.props.eventKey,z=function(){e.onOpenChange({key:T,item:Object(b.a)(e),trigger:y,open:p})};y==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){z()},0):z()},e.isChildrenSelected=function(){var p={find:!1};return xt(e.props.children,e.props.selectedKeys,p),p.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var p=Mt.findDOMNode(e.menuInstance);if(p.offsetWidth>=e.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(p){e.subMenuTitle=p},e.getBaseProps=function(){var p=Object(b.a)(e),y=p.props,T=e.getMode();return{mode:T==="horizontal"?"vertical":T,visible:e.getVisible(),level:y.level+1,inlineIndent:y.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:y.selectedKeys,eventKey:"".concat(y.eventKey,"-menu-"),openKeys:y.openKeys,motion:y.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:y.subMenuOpenDelay,parentMenu:Object(b.a)(e),subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,triggerSubMenuAction:y.triggerSubMenuAction,builtinPlacements:y.builtinPlacements,defaultActiveFirst:y.store.getState().defaultActiveFirst[Je(y.eventKey)],multiple:y.multiple,prefixCls:y.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:y.itemIcon,expandIcon:y.expandIcon,direction:y.direction}},e.getMotion=function(p,y){var T=Object(b.a)(e),z=T.haveRendered,B=e.props,te=B.motion,je=B.rootPrefixCls,ze=Object(S.a)(Object(S.a)({},te),{},{leavedClassName:"".concat(je,"-hidden"),removeOnLeave:!1,motionAppear:z||!y||p!=="inline"});return ze};var n=l.store,t=l.eventKey,i=n.getState(),c=i.defaultActiveFirst;e.isRootMenu=!1;var h=!1;return c&&(h=c[t]),bn(n,t,h),e.state={mode:l.mode,isOpen:l.isOpen},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,c=n.manualRef,h=n.isOpen,p=function(){e.setState({mode:t,isOpen:h})},y=h!==this.state.isOpen,T=t!==this.state.mode;if((T||y)&&(Ye.a.cancel(this.updateStateRaf),T?this.updateStateRaf=Object(Ye.a)(p):p()),c&&c(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!h)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ye.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return o.createElement(ea,Object(w.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,c=n.forceSubMenuRender,h=n.direction,p=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||c,!this.haveOpened)return o.createElement("div",null);var y=ae()("".concat(n.prefixCls,"-sub"),Object(N.a)({},"".concat(n.prefixCls,"-rtl"),h==="rtl"));return this.isInlineMode()?o.createElement(an,Object(w.a)({visible:n.visible,forceRender:c},p),function(T){var z=T.className,B=T.style,te=ae()(y,z);return e.renderPopupMenu(te,B)}):this.renderPopupMenu(y)}},{key:"render",value:function(){var e,n,t,i=Object(S.a)({},this.props),c=this.getVisible(),h=this.getPrefixCls(),p=this.isInlineMode(),y=this.getMode(),T=ae()(h,"".concat(h,"-").concat(y),(e={},Object(N.a)(e,i.className,!!i.className),Object(N.a)(e,this.getOpenClassName(),c),Object(N.a)(e,this.getActiveClassName(),i.active||c&&!p),Object(N.a)(e,this.getDisabledClassName(),i.disabled),Object(N.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(on+=1,this.internalMenuId="$__$".concat(on,"$Menu")));var z={},B={},te={};i.disabled||(z={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},B={onClick:this.onTitleClick},te={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var je={},ze=i.direction,Ue=ze==="rtl";p&&(Ue?je.paddingRight=i.inlineIndent*i.level:je.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var He=null;y!=="horizontal"&&(He=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(He=o.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var Ke=o.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:je,className:"".concat(h,"-title"),role:"button"},te,B,{"aria-expanded":c},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,He||o.createElement("i",{className:"".concat(h,"-arrow")})),We=this.renderChildren(),lt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(At){return At.parentNode},$e=hn[y],It=i.popupOffset?{offset:i.popupOffset}:{},yt=ae()((t={},Object(N.a)(t,i.popupClassName,i.popupClassName&&!p),Object(N.a)(t,"".concat(h,"-rtl"),Ue),t)),xe=i.disabled,Oe=i.triggerSubMenuAction,Ze=i.subMenuOpenDelay,et=i.forceSubMenuRender,pe=i.subMenuCloseDelay,st=i.builtinPlacements;tt.forEach(function(At){return delete i[At]}),delete i.onClick;var Tt=Ue?Object(S.a)(Object(S.a)({},Ta),st):Object(S.a)(Object(S.a)({},ia),st);delete i.direction;var ut=this.getBaseProps(),_t=p?null:this.getMotion(ut.mode,ut.visible);return o.createElement("li",Object(w.a)({},i,z,{className:T,role:"menuitem"}),o.createElement(Ya,{prefixCls:h,popupClassName:ae()("".concat(h,"-popup"),yt),getPopupContainer:lt,builtinPlacements:Tt,popupPlacement:$e,popupVisible:p?!1:c,popupAlign:It,popup:p?null:We,action:xe||p?[]:[Oe],mouseEnterDelay:Ze,mouseLeaveDelay:pe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:et,popupMotion:_t},Ke),p?We:null)}}]),v}(o.Component);sa.defaultProps={onMouseEnter:Y,onMouseLeave:Y,onTitleMouseEnter:Y,onTitleMouseLeave:Y,onTitleClick:Y,manualRef:Y,mode:"vertical",title:""};var Kn=Object(j.b)(function(a,d){var v=a.openKeys,l=a.activeKey,e=a.selectedKeys,n=d.eventKey,t=d.subMenuKey;return{isOpen:v.indexOf(n)>-1,active:l[t]===n,selectedKeys:e}})(sa);Kn.isSubMenu=!0;var Wn=Kn,Da="menuitem-overflowed",Qa=.5,wa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=o.createRef(),l.getMenuItemNodes=function(){var e=l.props.prefixCls,n=l.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(e,n,t){var i=l.props,c=i.overflowedIndicator,h=i.level,p=i.mode,y=i.prefixCls,T=i.theme;if(h!==1||p!=="horizontal")return null;var z=l.props.children[0],B=z.props,te=B.children,je=B.title,ze=B.style,Ue=Object(he.a)(B,["children","title","style"]),Ve=Object(S.a)({},ze),He="".concat(e,"-overflowed-indicator"),Ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(S.a)(Object(S.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(S.a)(Object(S.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),He="".concat(He,"-placeholder"),Ke="".concat(Ke,"-placeholder"));var We=T?"".concat(y,"-").concat(T):"",lt={};return tt.forEach(function($e){Ue[$e]!==void 0&&(lt[$e]=Ue[$e])}),o.createElement(Wn,Object(w.a)({title:c,className:"".concat(y,"-overflowed-submenu"),popupClassName:We},lt,{key:He,eventKey:Ke,disabled:!1,style:Ve}),n)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];Me(t,"display","inline-block");var i=l.getMenuItemNodes(),c=i.filter(function(h){return h.className.split(" ").indexOf(Da)>=0});c.forEach(function(h){Me(h,"display","inline-block")}),l.menuItemSizes=i.map(function(h){return dt(h,!0)}),c.forEach(function(h){Me(h,"display","none")}),l.overflowedIndicatorWidth=dt(e.children[e.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(h,p){return h+p},0),l.handleResize(),Me(t,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=dt(e);l.overflowedItems=[];var t=0,i;l.originalTotalWidth>n+Qa&&(i=-1,l.menuItemSizes.forEach(function(c){t+=c,t+l.overflowedIndicatorWidth<=n&&(i+=1)})),l.setState({lastVisibleIndex:i})},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new ge.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,c,h){var p=c;if(n.props.mode==="horizontal"){var y=n.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(h>t&&(p=o.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),h===t+1&&(n.overflowedItems=e.slice(t+1).map(function(z){return o.cloneElement(z,{key:z.props.eventKey,mode:"vertical-left"})}),y=n.getOverflowedSubMenuItem(c.props.eventKey,n.overflowedItems)));var T=[].concat(Object(G.a)(i),[y,p]);return h===e.length-1&&T.push(n.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),T}return[].concat(Object(G.a)(i),[p])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,c=e.mode,h=e.level,p=e.tag,y=e.children,T=e.theme,z=Object(he.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),B=p;return o.createElement(B,Object(w.a)({ref:this.childRef},z),this.renderChildren(y))}}]),v}(o.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(d){return!!d.props.disabled}):!0}function Nn(a,d,v){var l=a.getState();a.setState({activeKey:Object(S.a)(Object(S.a)({},l.activeKey),{},Object(N.a)({},d,v))})}function _n(a){return a.eventKey||"0-menu-"}function qn(a,d){var v=d,l=a.children,e=a.eventKey;if(v){var n;if(bt(l,function(t,i){t&&t.props&&!t.props.disabled&&v===be(t,e,i)&&(n=!0)}),n)return v}return v=null,a.defaultActiveFirst&&bt(l,function(t,i){!v&&t&&!t.props.disabled&&(v=be(t,e,i))}),v}function Aa(a){if(!a)return;var d=this.instanceArray.indexOf(a);d!==-1?this.instanceArray[d]=a:this.instanceArray.push(a)}var La=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;return Object(k.a)(this,v),e=d.call(this,l),e.onKeyDown=function(n,t){var i=n.keyCode,c;if(e.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(c=p.onKeyDown(n))}),c)return 1;var h=null;return(i===g.a.UP||i===g.a.DOWN)&&(h=e.step(i===g.a.UP?-1:1)),h?(n.preventDefault(),Nn(e.props.store,_n(e.props),h.props.eventKey),typeof t=="function"&&t(h),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Nn(e.props.store,_n(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[_n(e.props)],c=t.length;if(!c)return null;n<0&&(t=t.concat().reverse());var h=-1;if(t.every(function(z,B){return z&&z.props.eventKey===i?(h=B,!1):!0}),!e.props.defaultActiveFirst&&h!==-1&&Zn(t.slice(h,c-1)))return;var p=(h+1)%c,y=p;do{var T=t[y];if(!T||T.props.disabled)y=(y+1)%c;else return T}while(y!==p);return null},e.renderCommonMenuItem=function(n,t,i){var c=e.props.store.getState(),h=Object(b.a)(e),p=h.props,y=be(n,p.eventKey,t),T=n.props;if(!T||typeof n.type=="string")return n;var z=y===c.activeKey,B=Object(S.a)(Object(S.a)({mode:T.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:p.prefixCls,index:t,parentMenu:p.parentMenu,manualRef:T.disabled?void 0:Object(A.a)(n.ref,Aa.bind(Object(b.a)(e))),eventKey:y,active:!T.disabled&&z,multiple:p.multiple,onClick:function(je){(T.onClick||Y)(je),e.onClick(je)},onItemHover:e.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:T.itemIcon||e.props.itemIcon,expandIcon:T.expandIcon||e.props.expandIcon},i),{},{direction:p.direction});return(p.mode==="inline"||Re())&&(B.triggerSubMenuAction="click"),o.cloneElement(n,Object(S.a)(Object(S.a)({},B),{},{key:y||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var c=e.props.store.getState(),h={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,h)},l.store.setState({activeKey:Object(S.a)(Object(S.a)({},l.store.getState().activeKey),{},Object(N.a)({},l.eventKey,qn(l,l.activeKey)))}),e.instanceArray=[],e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!L()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[_n(n)],i=qn(n,t);if(i!==t)Nn(n.store,_n(n),i);else if("activeKey"in e){var c=qn(e,e.activeKey);i!==c&&Nn(n.store,_n(n),i)}}},{key:"render",value:function(){var e=this,n=Object(w.a)({},this.props);this.instanceArray=[];var t=ae()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var c=n.prefixCls,h=n.eventKey,p=n.visible,y=n.level,T=n.mode,z=n.overflowedIndicator,B=n.theme;return tt.forEach(function(te){return delete n[te]}),delete n.onClick,o.createElement(ua,Object(w.a)({},n,{prefixCls:c,mode:T,tag:"ul",level:y,theme:B,visible:p,overflowedIndicator:z},i),Object(Q.a)(n.children).map(function(te,je){return e.renderMenuItem(te,je,h||"0-menu-")}))}}]),v}(o.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Y};var Ua=Object(j.b)()(La),ea=Ua,Tn=r("Kwbf");function ca(a,d,v){var l=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,c=a.openTransitionName,h=d.switchingModeFromInline;if(e)return e;if(Object(ie.a)(i)==="object"&&i)Object(Tn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(l,"-open-").concat(i)};if(c)return{motionName:c};var p=t[v];return p||(h?null:t.other)}var ka=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onSelect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState(),y=p.selectedKeys,T=i.key;h.multiple?y=y.concat([T]):y=[T],"selectedKeys"in h||e.store.setState({selectedKeys:y}),h.onSelect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:y}))}},e.onClick=function(i){var c=e.getRealMenuMode(),h=Object(b.a)(e),p=h.store,y=h.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(p.setState({openKeys:[]}),y([])),e.props.onClick(i)},e.onKeyDown=function(i,c){e.innerMenu.getWrappedInstance().onKeyDown(i,c)},e.onOpenChange=function(i){var c=Object(b.a)(e),h=c.props,p=e.store.getState().openKeys.concat(),y=!1,T=function(B){var te=!1;if(B.open)te=p.indexOf(B.key)===-1,te&&p.push(B.key);else{var je=p.indexOf(B.key);te=je!==-1,te&&p.splice(je,1)}y=y||te};Array.isArray(i)?i.forEach(T):T(i),y&&("openKeys"in e.props||e.store.setState({openKeys:p}),h.onOpenChange(p))},e.onDeselect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState().selectedKeys.concat(),y=i.key,T=p.indexOf(y);T!==-1&&p.splice(T,1),"selectedKeys"in h||e.store.setState({selectedKeys:p}),h.onDeselect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:p}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(i)},e.onTransitionEnd=function(i){var c=i.propertyName==="width"&&i.target===i.currentTarget,h=i.target.className,p=Object.prototype.toString.call(h)==="[object SVGAnimatedString]"?h.animVal:h,y=i.propertyName==="font-size"&&p.indexOf("anticon")>=0;(c||y)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=l.defaultSelectedKeys,t=l.defaultOpenKeys;return"selectedKeys"in l&&(n=l.selectedKeys||[]),"openKeys"in l&&(t=l.openKeys||[]),e.store=Object(j.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(l,l.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:e.store},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,c=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(S.a)({},Object(R.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(S.a)(Object(S.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,o.createElement(j.a,{store:this.store},o.createElement(ea,Object(w.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,c=i.getState(),h={},p={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in e?h.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=c.openKeys,h.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(h.openKeys=n.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(h).length&&i.setState(h),p}}]),v}(o.Component);ka.defaultProps={selectable:!0,onClick:Y,onSelect:Y,onOpenChange:Y,onDeselect:Y,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Dn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(l.onClick(e),!0):void 0},l.onMouseLeave=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseLeave;i({key:t,hover:!1}),c({key:t,domEvent:e})},l.onMouseEnter=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseEnter;i({key:t,hover:!0}),c({key:t,domEvent:e})},l.onClick=function(e){var n=l.props,t=n.eventKey,i=n.multiple,c=n.onClick,h=n.onSelect,p=n.onDeselect,y=n.isSelected,T={key:t,keyPath:[t],item:Object(b.a)(l),domEvent:e};c(T),i?y?p(T):h(T):y||h(T)},l.saveNode=function(e){l.node=e},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,n=Object(S.a)({},this.props),t=ae()(this.getPrefixCls(),n.className,(e={},Object(N.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(N.a)(e,this.getSelectedClassName(),n.isSelected),Object(N.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(S.a)(Object(S.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(S.a)(Object(S.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var c={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},h=Object(S.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?h.paddingRight=n.inlineIndent*n.level:h.paddingLeft=n.inlineIndent*n.level),tt.forEach(function(y){return delete n[y]}),delete n.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(w.a)({},Object(R.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,c,{style:h,ref:this.saveNode}),n.children,p)}}]),v}(o.Component);Dn.isMenuItem=!0,Dn.defaultProps={onSelect:Y,onMouseEnter:Y,onMouseLeave:Y,manualRef:Y};var da=Object(j.b)(function(a,d){var v=a.activeKey,l=a.selectedKeys,e=d.eventKey,n=d.subMenuKey;return{active:v[n]===e,isSelected:Array.isArray(l)?l.indexOf(e)!==-1:l===e}})(Dn),fa=da,ma=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.renderInnerMenuItem=function(e){var n=l.props,t=n.renderMenuItem,i=n.index;return t(e,i,l.props.subMenuKey)},l}return Object(E.a)(v,[{key:"render",value:function(){var e=Object(w.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,c="".concat(i,"-item-group-title"),h="".concat(i,"-item-group-list"),p=e.title,y=e.children;return tt.forEach(function(T){return delete e[T]}),delete e.direction,o.createElement("li",Object(w.a)({},e,{onClick:function(z){return z.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),o.createElement("div",{className:c,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:h},o.Children.map(y,this.renderInnerMenuItem)))}}]),v}(o.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(d){var v=d.className,l=d.rootPrefixCls,e=d.style;return o.createElement("li",{className:"".concat(v," ").concat(l,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,va=r("eDIo");function eo(a,d){var v=a.prefixCls,l=a.editable,e=a.locale,n=a.style;return!l||l.showAdd===!1?null:o.createElement("button",{ref:d,type:"button",className:"".concat(v,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){l.onEdit("add",{event:i})}},l.addIcon||"+")}var ta=o.forwardRef(eo);function to(a,d){var v=a.prefixCls,l=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,c=i===void 0?"More":i,h=a.moreTransitionName,p=a.style,y=a.className,T=a.editable,z=a.tabBarGutter,B=a.rtl,te=a.onTabClick,je=Object(o.useState)(!1),ze=Object(M.a)(je,2),Ue=ze[0],Ve=ze[1],He=Object(o.useState)(null),Ke=Object(M.a)(He,2),We=Ke[0],lt=Ke[1],$e="".concat(l,"-more-popup"),It="".concat(v,"-dropdown"),yt=We!==null?"".concat($e,"-").concat(We):null,xe=n==null?void 0:n.dropdownAriaLabel,Oe=o.createElement(Ka,{onClick:function(_t){var At=_t.key,Gt=_t.domEvent;te(At,Gt),Ve(!1)},id:$e,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[We],"aria-label":xe!==void 0?xe:"expanded dropdown"},e.map(function(ut){return o.createElement(fa,{key:ut.key,id:"".concat($e,"-").concat(ut.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(ut.key),disabled:ut.disabled},ut.tab)}));function Ze(ut){for(var _t=e.filter(function(ln){return!ln.disabled}),At=_t.findIndex(function(ln){return ln.key===We})||0,Gt=_t.length,rn=0;rnst?(et=Oe,$e.current="x"):(et=Ze,$e.current="y");var Tt=Date.now();Tt-We.current>100&&(lt.current=!1),(d(-et,-et)||lt.current)&&(xe.preventDefault(),lt.current=!0),We.current=Tt}var yt=Object(o.useRef)(null);yt.current={onTouchStart:Ve,onTouchMove:He,onTouchEnd:Ke,onWheel:It},o.useEffect(function(){function xe(pe){yt.current.onTouchStart(pe)}function Oe(pe){yt.current.onTouchMove(pe)}function Ze(pe){yt.current.onTouchEnd(pe)}function et(pe){yt.current.onWheel(pe)}return document.addEventListener("touchmove",Oe,{passive:!1}),document.addEventListener("touchend",Ze,{passive:!1}),a.current.addEventListener("touchstart",xe,{passive:!1}),a.current.addEventListener("wheel",et),function(){document.removeEventListener("touchmove",Oe),document.removeEventListener("touchend",Ze)}},[])}function ba(){var a=Object(o.useRef)(new Map);function d(l){return a.current.has(l)||a.current.set(l,o.createRef()),a.current.get(l)}function v(l){a.current.delete(l)}return[d,v]}function Ba(a,d){var v=o.useRef(a),l=o.useState({}),e=Object(M.a)(l,2),n=e[1];function t(i){var c=typeof i=="function"?i(v.current):i;c!==v.current&&d(c,v.current),v.current=c,n({})}return[v.current,t]}var Fa=function(d){var v=d.position,l=d.prefixCls,e=d.extra;if(!e)return null;var n,t=e;return v==="right"&&(n=t.right||!t.left&&t||null),v==="left"&&(n=t.left||null),n?o.createElement("div",{className:"".concat(l,"-extra-content")},n):null};function Bo(a,d){var v,l=o.useContext(ha),e=l.prefixCls,n=l.tabs,t=a.className,i=a.style,c=a.id,h=a.animated,p=a.activeKey,y=a.rtl,T=a.extra,z=a.editable,B=a.locale,te=a.tabPosition,je=a.tabBarGutter,ze=a.children,Ue=a.onTabClick,Ve=a.onTabScroll,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useRef)(),lt=Object(o.useRef)(),$e=ba(),It=Object(M.a)($e,2),yt=It[0],xe=It[1],Oe=te==="top"||te==="bottom",Ze=Ba(0,function(Ct,qe){Oe&&Ve&&Ve({direction:Ct>qe?"left":"right"})}),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Tt=Ba(0,function(Ct,qe){!Oe&&Ve&&Ve({direction:Ct>qe?"top":"bottom"})}),ut=Object(M.a)(Tt,2),_t=ut[0],At=ut[1],Gt=Object(o.useState)(0),rn=Object(M.a)(Gt,2),Kt=rn[0],ln=rn[1],Cn=Object(o.useState)(0),un=Object(M.a)(Cn,2),cn=un[0],Ft=un[1],en=Object(o.useState)(0),Jt=Object(M.a)(en,2),$t=Jt[0],wn=Jt[1],An=Object(o.useState)(0),Fn=Object(M.a)(An,2),Nt=Fn[0],xn=Fn[1],zn=Object(o.useState)(null),Dt=Object(M.a)(zn,2),vt=Dt[0],Yt=Dt[1],$o=Object(o.useState)(null),bo=Object(M.a)($o,2),na=bo[0],Xo=bo[1],Go=Object(o.useState)(0),Eo=Object(M.a)(Go,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(o.useState)(0),go=Object(M.a)(Qo,2),Zo=go[0],qo=go[1],er=_(new Map),yo=Object(M.a)(er,2),tr=yo[0],nr=yo[1],za=X(n,tr,Kt),Co="".concat(e,"-nav-operations-hidden"),Ea=0,ga=0;Oe?y?(Ea=0,ga=Math.max(0,Kt-vt)):(Ea=Math.min(0,vt-Kt),ga=0):(Ea=Math.min(0,na-cn),ga=0);function ao(Ct){return Ctga?[ga,!1]:[Ct,!0]}var Oo=Object(o.useRef)(),ar=Object(o.useState)(),_o=Object(M.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(He,function(Ct,qe){var Xt=!1;function dn(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(M.a)(xa,2),co=aa[0],fo=aa[1];return Xt=fo,co})}if(Oe){if(vt>=Kt)return Xt;dn(st,Ct)}else{if(na>=cn)return Xt;dn(At,qe)}return io(),ro(),Xt}),Object(o.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,qe=za.get(Ct);if(!qe)return;if(Oe){var Xt=pe;y?qe.rightpe+vt&&(Xt=qe.right+qe.width-vt):qe.left<-pe?Xt=-qe.left:qe.left+qe.width>-pe+vt&&(Xt=-(qe.left+qe.width-vt)),At(0),st(ao(Xt)[0])}else{var dn=_t;qe.top<-_t?dn=-qe.top:qe.top+qe.height>-_t+na&&(dn=-(qe.top+qe.height-na)),st(0),At(ao(dn)[0])}}var or=se(za,{width:vt,height:na,left:pe,top:_t},{width:$t,height:Nt},{width:Jo,height:Zo},Object(S.a)(Object(S.a)({},a),{},{tabs:n})),Mo=Object(M.a)(or,2),rr=Mo[0],ir=Mo[1],lr=n.map(function(Ct){var qe=Ct.key;return o.createElement(U,{id:c,prefixCls:e,key:qe,rtl:y,tab:Ct,closable:Ct.closable,editable:z,active:qe===p,tabPosition:te,tabBarGutter:je,renderWrapper:ze,removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:yt(qe),onClick:function(dn){Ue(qe,dn)},onRemove:function(){xe(qe)},onFocus:function(){jo(qe),ro(),y||(He.current.scrollLeft=0),He.current.scrollTop=0}})}),lo=q(function(){var Ct,qe,Xt,dn,Ca,Oa,_a,xa,aa,co=((Ct=He.current)===null||Ct===void 0?void 0:Ct.offsetWidth)||0,fo=((qe=He.current)===null||qe===void 0?void 0:qe.offsetHeight)||0,Ao=((Xt=lt.current)===null||Xt===void 0?void 0:Xt.offsetWidth)||0,Lo=((dn=lt.current)===null||dn===void 0?void 0:dn.offsetHeight)||0,mr=((Ca=We.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=We.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),Xo(fo),Yo(Ao),qo(Lo);var Uo=(((_a=Ke.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-Ao,ko=(((xa=Ke.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;ln(Uo),Ft(ko);var Io=(aa=We.current)===null||aa===void 0?void 0:aa.className.includes(Co);wn(Uo-(Io?0:mr)),xn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(vr){var Wo=vr.key,ja=yt(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),sr=n.slice(0,rr),ur=n.slice(ir+1),Ro=[].concat(Object(G.a)(sr),Object(G.a)(ur)),cr=Object(o.useState)(),So=Object(M.a)(cr,2),dr=So[0],fr=So[1],Ln=za.get(p),Po=Object(o.useRef)();function No(){me.a.cancel(Po.current)}Object(o.useEffect)(function(){var Ct={};return Ln&&(Oe?(y?Ct.right=Ln.right:Ct.left=Ln.left,Ct.width=Ln.width):(Ct.top=Ln.top,Ct.height=Ln.height)),No(),Po.current=me()(function(){fr(Ct)}),No},[Ln,Oe,y]),Object(o.useEffect)(function(){jo()},[p,Ln,za,Oe]),Object(o.useEffect)(function(){lo()},[y,je,p,n.map(function(Ct){return Ct.key}).join("_")]);var To=!!Ro.length,ya="".concat(e,"-nav-wrap"),so,uo,Do,wo;return Oe?y?(uo=pe>0,so=pe+vt1)Object(G.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(X.length===0)return Object(G.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var F=X[0];if(C.isValidElement(F)&&Object(J.c)(F)){var se=F.ref;X[0]=C.cloneElement(F,{ref:Object(J.a)(se,this.setChildNode)})}return X.length===1?X[0]:X.map(function(w,k){return!C.isValidElement(w)||"key"in w&&w.key!==null?w:C.cloneElement(w,{key:"".concat(re,"-").concat(k)})})}}]),u}(C.Component);q.displayName="ResizeObserver",ne.a=q},wCXF:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return Pt});var N=r("rePB"),M=r("VTBJ"),he=r("KQm4"),S=r("U8pU"),o=r("ODXe"),C=r("q1tI"),ae=r("TSYQ"),Q=r.n(ae),D=r("Gytx"),G=r.n(D),J=r("Kwbf"),me=r("t23M"),re=r("qx4F"),q=r("6eGT"),_=r("IBYe"),g=r("Ff2n"),u=r("c+Xe"),U=r("fyJ8"),H=r("biw7");function X(O,I,$,m,V){var x=$[O]||{},P=$[I]||{},K,W;x.fixed==="left"?K=m.left[O]:P.fixed==="right"&&(W=m.right[I]);var fe=!1,ue=!1,Ee=!1,Ne=!1,Z=$[I+1],ke=$[O-1];if(V==="rtl"){if(K!==void 0){var pt=ke&&ke.fixed==="left";Ne=!pt}else if(W!==void 0){var Qe=Z&&Z.fixed==="right";Ee=!Qe}}else if(K!==void 0){var nt=Z&&Z.fixed==="left";fe=!nt}else if(W!==void 0){var Ae=ke&&ke.fixed==="right";ue=!Ae}return{fixLeft:K,fixRight:W,lastFixLeft:fe,firstFixRight:ue,lastFixRight:Ee,firstFixLeft:Ne,isSticky:m.isSticky}}var F=r("sR1s");function se(O){var I=O.cells,$=O.stickyOffsets,m=O.flattenColumns,V=O.rowComponent,x=O.cellComponent,P=O.onHeaderRow,K=O.index,W=C.useContext(H.a),fe=W.prefixCls,ue=W.direction,Ee;P&&(Ee=P(I.map(function(Z){return Z.column}),K));var Ne=Object(F.a)(I.map(function(Z){return Z.column}));return C.createElement(V,Object.assign({},Ee),I.map(function(Z,ke){var pt=Z.column,Qe=X(Z.colStart,Z.colEnd,m,$,ue),nt;return pt&&pt.onHeaderCell&&(nt=Z.column.onHeaderCell(pt)),C.createElement(U.a,Object.assign({},Z,{ellipsis:pt.ellipsis,align:pt.align,component:x,prefixCls:fe,key:Ne[ke]},Qe,{additionalProps:nt,rowType:"header"}))}))}se.displayName="HeaderRow";var w=se;function k(O){var I=[];function $(P,K){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;I[W]=I[W]||[];var fe=K,ue=P.filter(Boolean).map(function(Ee){var Ne={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:fe},Z=1,ke=Ee.children;return ke&&ke.length>0&&(Z=$(ke,fe,W+1).reduce(function(pt,Qe){return pt+Qe},0),Ne.hasSubColumns=!0),"colSpan"in Ee&&(Z=Ee.colSpan),"rowSpan"in Ee&&(Ne.rowSpan=Ee.rowSpan),Ne.colSpan=Z,Ne.colEnd=Ne.colStart+Z-1,I[W].push(Ne),fe+=Z,Z});return ue}$(O,0);for(var m=I.length,V=function(K){I[K].forEach(function(W){!("rowSpan"in W)&&!W.hasSubColumns&&(W.rowSpan=m-K)})},x=0;x=0;K-=1){var W=I[K],fe=$&&$[K],ue=fe&&fe[f.a];(W||ue||P)&&(V.unshift(C.createElement("col",Object.assign({key:K,style:{width:W,minWidth:W}},ue))),P=!0)}return C.createElement("colgroup",null,V)}var j=s;function R(O,I){return Object(C.useMemo)(function(){for(var $=[],m=0;m1?Qt-1:0),pn=1;pn=Ee&&(Fe=Ee-Ne),P({scrollLeft:Fe/Ee*(ue+2)}),Ae.current.x=ce.pageX},Ot=function(){var ce=Object(tt.b)(x.current).top,Ie=ce+x.current.offsetHeight,gt=document.documentElement.scrollTop+window.innerHeight;Ie-Object(re.a)()<=gt||ce>=gt-K?nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!0})}):nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!1})})},ft=function(ce){nt(function(Ie){return Object(M.a)(Object(M.a)({},Ie),{},{scrollLeft:ce/ue*Ee||0})})};return C.useImperativeHandle($,function(){return{setScrollLeft:ft}}),C.useEffect(function(){var Le=Object(xt.a)(document.body,"mouseup",Ht,!1),ce=Object(xt.a)(document.body,"mousemove",Bt,!1);return Ot(),function(){Le.remove(),ce.remove()}},[Ne,it]),C.useEffect(function(){var Le=Object(xt.a)(window,"scroll",Ot,!1),ce=Object(xt.a)(window,"resize",Ot,!1);return function(){Le.remove(),ce.remove()}},[]),C.useEffect(function(){Qe.isHiddenScrollBar||nt(function(Le){var ce,Ie;return Object(M.a)(Object(M.a)({},Le),{},{scrollLeft:x.current.scrollLeft/((ce=x.current)===null||ce===void 0?void 0:ce.scrollWidth)*((Ie=x.current)===null||Ie===void 0?void 0:Ie.clientWidth)})})},[Qe.isHiddenScrollBar]),ue<=Ee||!Ne||Qe.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(re.a)(),width:Ee,bottom:K},className:"".concat(fe,"-sticky-scroll")},C.createElement("div",{onMouseDown:at,ref:Z,className:Q()("".concat(fe,"-sticky-scroll-bar"),Object(N.a)({},"".concat(fe,"-sticky-scroll-bar-active"),it)),style:{width:"".concat(Ne,"px"),transform:"translate3d(".concat(Qe.scrollLeft,"px, 0, 0)")}}))},Me=C.forwardRef(dt);function Re(O,I){return C.useMemo(function(){var $=!!O;return{isSticky:$,stickyClassName:$?"".concat(I,"-sticky-header"):"",offsetHeader:Object(S.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(S.a)(O)==="object"&&O.offsetScroll||0}},[O,I])}var ge=[],Mt={},Pt="rc-table-internal-hook",Ye=C.memo(function(O){var I=O.children;return I},function(O,I){return G()(O.props,I.props)?O.pingLeft!==I.pingLeft||O.pingRight!==I.pingRight:!1});function Et(O){var I,$=O.prefixCls,m=O.className,V=O.rowClassName,x=O.style,P=O.data,K=O.rowKey,W=O.scroll,fe=O.tableLayout,ue=O.direction,Ee=O.title,Ne=O.footer,Z=O.summary,ke=O.id,pt=O.showHeader,Qe=O.components,nt=O.emptyText,Ae=O.onRow,zt=O.onHeaderRow,Rt=O.internalHooks,it=O.transformColumns,jt=O.internalRefs,Ht=O.sticky,at=P||ge,Bt=!!at.length,Ot=C.useState(0),ft=Object(o.a)(Ot,2),Le=ft[0],ce=ft[1];C.useEffect(function(){ce(Object(re.a)())});var Ie=C.useMemo(function(){return Object(F.c)(Qe,{})},[Qe]),gt=C.useCallback(function(ot,rt){return Object(F.b)(Ie,ot)||rt},[Ie]),Lt=C.useMemo(function(){return typeof K=="function"?K:function(ot){var rt=ot&&ot[K];return rt}},[K]),Fe=Object(f.c)(O),fn=Fe.expandIcon,mn=Fe.expandedRowKeys,En=Fe.defaultExpandedRowKeys,tn=Fe.defaultExpandAllRows,St=Fe.expandedRowRender,jn=Fe.onExpand,Mn=Fe.onExpandedRowsChange,Hn=Fe.expandRowByClick,nn=Fe.rowExpandable,Un=Fe.expandIconColumnIndex,On=Fe.expandedRowClassName,kn=Fe.childrenColumnName,Rn=Fe.indentSize,gn=fn||Je,Sn=kn||"children",Vn=C.useMemo(function(){return St?"row":O.expandable&&Rt===Pt&&O.expandable.__PARENT_RENDER_ICON__||at.some(function(ot){return ot&&Object(S.a)(ot)==="object"&&ot[Sn]})?"nest":!1},[!!St,at]),Pn=C.useState(function(){return En||(tn?bt(at,Lt,Sn):[])}),Vt=Object(o.a)(Pn,2),qt=Vt[0],sn=Vt[1],Qt=C.useMemo(function(){return new Set(mn||qt||[])},[mn,qt]),an=C.useCallback(function(ot){var rt=Lt(ot,at.indexOf(ot)),kt,Zt=Qt.has(rt);Zt?(Qt.delete(rt),kt=Object(he.a)(Qt)):kt=[].concat(Object(he.a)(Qt),[rt]),sn(kt),jn&&jn(!Zt,ot),Mn&&Mn(kt)},[Lt,Qt,at,jn,Mn]),pn=C.useState(0),$n=Object(o.a)(pn,2),In=$n[0],Xn=$n[1],Ma=Object(Ce.b)(Object(M.a)(Object(M.a)(Object(M.a)({},O),Fe),{},{expandable:!!St,expandedKeys:Qt,getRowKey:Lt,onTriggerExpand:an,expandIcon:gn,expandIconColumnIndex:Un,direction:ue}),Rt===Pt?it:null),Ra=Object(o.a)(Ma,2),Gn=Ra[0],Ut=Ra[1],Jn=C.useMemo(function(){return{columns:Gn,flattenColumns:Ut}},[Gn,Ut]),Yn=C.useRef(),Sa=C.useRef(),vn=C.useRef(),Ha=C.useState(!1),Pa=Object(o.a)(Ha,2),oa=Pa[0],Va=Pa[1],$a=C.useState(!1),ra=Object(o.a)($a,2),Qn=ra[0],Xa=ra[1],Ga=Xe(new Map),Na=Object(o.a)(Ga,2),Ja=Na[0],Ya=Na[1],yn=Object(F.a)(Ut),ia=yn.map(function(ot){return Ja.get(ot)}),Ta=C.useMemo(function(){return ia},[ia.join("_")]),la=wt(Ta,Ut.length,ue),on=W&&Object(F.d)(W.y),hn=W&&Object(F.d)(W.x),bn=hn&&Ut.some(function(ot){var rt=ot.fixed;return rt}),sa=C.useRef(),Kn=Re(Ht,$),Wn=Kn.isSticky,Da=Kn.offsetHeader,Qa=Kn.offsetScroll,wa=Kn.stickyClassName,ua,Zn,Nn;on&&(Zn={overflowY:"scroll",maxHeight:W.y}),hn&&(ua={overflowX:"auto"},on||(Zn={overflowY:"hidden"}),Nn={width:W.x===!0?"auto":W.x,minWidth:"100%"});var _n=C.useCallback(function(ot,rt){Ya(function(kt){var Zt=new Map(kt);return Zt.set(ot,rt),Zt})},[]),qn=le(null),Aa=Object(o.a)(qn,2),La=Aa[0],Ua=Aa[1];function ea(ot,rt){if(!rt)return;typeof rt=="function"?rt(ot):rt.scrollLeft!==ot&&(rt.scrollLeft=ot)}var Tn=function(rt){var kt=rt.currentTarget,Zt=rt.scrollLeft,Bn=typeof Zt=="number"?Zt:kt.scrollLeft,Wa=kt||Mt;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Sa.current),ea(Bn,vn.current),ea(Bn,(ba=sa.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(kt){var Ba=kt.scrollWidth,Fa=kt.clientWidth;Va(Bn>0),Xa(Bn0?[].concat(Object(M.a)(g),Object(M.a)(J(X).map(function(F){return Object(he.a)({fixed:H},F)}))):[].concat(Object(M.a)(g),[Object(he.a)(Object(he.a)({},u),{},{fixed:H})])},[])}function me(_){for(var g=!0,u=0;u<_.length;u+=1){var U=_[u];if(g&&U.fixed!=="left")g=!1;else if(!g&&U.fixed==="left"){Object(ae.a)(!1,"Index ".concat(u-1," of `columns` missing `fixed='left'` prop."));break}}for(var H=!0,X=_.length-1;X>=0;X-=1){var F=_[X];if(H&&F.fixed!=="right")H=!1;else if(!H&&F.fixed==="right"){Object(ae.a)(!1,"Index ".concat(X+1," of `columns` missing `fixed='right'` prop."));break}}}function re(_){return _.map(function(g){var u=g.fixed,U=Object(S.a)(g,["fixed"]),H=u;return u==="left"?H="right":u==="right"&&(H="left"),Object(he.a)({fixed:H},U)})}function q(_,g){var u=_.prefixCls,U=_.columns,H=_.children,X=_.expandable,F=_.expandedKeys,se=_.getRowKey,w=_.onTriggerExpand,k=_.expandIcon,E=_.rowExpandable,b=_.expandIconColumnIndex,f=_.direction,s=_.expandRowByClick,j=o.useMemo(function(){return U||G(H)},[U,H]),R=o.useMemo(function(){if(X){var L,ie=b||0,de=j[ie],ve=(L={},Object(N.a)(L,D.a,{className:"".concat(u,"-expand-icon-col")}),Object(N.a)(L,"title",""),Object(N.a)(L,"fixed",de?de.fixed:null),Object(N.a)(L,"className","".concat(u,"-row-expand-icon-cell")),Object(N.a)(L,"render",function(oe,ye,Se){var Pe=se(ye,Se),De=F.has(Pe),Ge=E?E(ye):!0,Ce=k({prefixCls:u,expanded:De,expandable:Ge,record:ye,onExpand:w});return s?o.createElement("span",{onClick:function(ct){return ct.stopPropagation()}},Ce):Ce}),L),Be=j.slice();return ie>=0&&Be.splice(ie,0,ve),Be}return j},[X,j,se,F,k,f]),A=o.useMemo(function(){var L=R;return g&&(L=g(L)),L.length||(L=[{render:function(){return null}}]),L},[g,R,f]),ee=o.useMemo(function(){return f==="rtl"?re(J(A)):J(A)},[A,f]);return[A,ee]}ne.b=q},"y0+3":function(mt,ne,r){"use strict";r.d(ne,"a",function(){return J}),r.d(ne,"b",function(){return re});var N=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},he={cssFloat:1,styleFloat:1,float:1};function S(q){return q.nodeType===1?q.ownerDocument.defaultView.getComputedStyle(q,null):{}}function o(q,_,g){if(_=_.toLowerCase(),g==="auto"){if(_==="height")return q.offsetHeight;if(_==="width")return q.offsetWidth}return _ in M||(M[_]=N.test(_)),M[_]?parseFloat(g)||0:g}function C(q,_){var g=arguments.length,u=S(q);return _=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,g===1?u:o(q,_,u[_]||q.style[_])}function ae(q,_,g){var u=arguments.length;if(_=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,u===3)return typeof g=="number"&&N.test(_)&&(g="".concat(g,"px")),q.style[_]=g,g;for(var U in _)_.hasOwnProperty(U)&&ae(q,U,_[U]);return S(q)}function Q(q){return q===document.body?document.documentElement.clientWidth:q.offsetWidth}function D(q){return q===document.body?window.innerHeight||document.documentElement.clientHeight:q.offsetHeight}function G(){var q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:q,height:_}}function J(){var q=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:q,height:_}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function re(q){var _=q.getBoundingClientRect(),g=document.documentElement;return{left:_.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[98,8,10],{"55Ip":function(mt,ne,r){"use strict";r.d(ne,"a",function(){return H}),r.d(ne,"b",function(){return E});var T=r("Ty5D"),M=r("dI71"),he=r("q1tI"),S=r.n(he),o=r("YS25"),C=r("17x9"),ae=r.n(C),Q=r("wx14"),D=r("zLVn"),G=r("9R94"),J=function(f){Object(M.a)(s,f);function s(){for(var R,A=arguments.length,ee=new Array(A),L=0;L=0||A.relatedTarget.className.indexOf("".concat(de,"-next"))>=0))return;f.setState({goInputText:""}),ie(f.getValidValue())},f.go=function(A){var ee=f.state.goInputText;if(ee==="")return;(A.keyCode===q.ENTER||A.type==="click")&&(f.setState({goInputText:""}),f.props.quickGo(f.getValidValue()))},f}return Object(o.a)(b,[{key:"getValidValue",value:function(){var s=this.state,j=s.goInputText,R=s.current;return!j||isNaN(j)?R:Number(j)}},{key:"getPageSizeOptions",value:function(){var s=this.props,j=s.pageSize,R=s.pageSizeOptions;return R.some(function(A){return A.toString()===j.toString()})?R:R.concat([j.toString()]).sort(function(A,ee){var L=isNaN(Number(A))?0:Number(A),ie=isNaN(Number(ee))?0:Number(ee);return L-ie})}},{key:"render",value:function(){var s=this,j=this.props,R=j.pageSize,A=j.locale,ee=j.rootPrefixCls,L=j.changeSize,ie=j.quickGo,de=j.goButton,ve=j.selectComponentClass,Be=j.buildOptionText,_e=j.selectPrefixCls,oe=j.disabled,ye=this.state.goInputText,Se="".concat(ee,"-options"),Pe=ve,De=null,Ge=null,Ce=null;if(!L&&!ie)return null;var ht=this.getPageSizeOptions();if(L&&Pe){var ct=ht.map(function(Xe,le){return D.a.createElement(Pe.Option,{key:le,value:Xe.toString()},(Be||s.buildOptionText)(Xe))});De=D.a.createElement(Pe,{disabled:oe,prefixCls:_e,showSearch:!1,className:"".concat(Se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(R||ht[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},ct)}return ie&&(de&&(Ce=typeof de=="boolean"?D.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:oe,className:"".concat(Se,"-quick-jumper-button")},A.jump_to_confirm):D.a.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),Ge=D.a.createElement("div",{className:"".concat(Se,"-quick-jumper")},A.jump_to,D.a.createElement("input",{disabled:oe,type:"text",value:ye,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),A.page,Ce)),D.a.createElement("li",{className:"".concat(Se)},De,Ge)}}]),b}(D.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=_,u=r("N2Kk");function U(){}function H(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function X(k,E,b){return b}function F(k,E,b){var f=typeof k=="undefined"?E.pageSize:k;return Math.floor((b.total-1)/f)+1}var se=function(k){Object(C.a)(b,k);var E=Object(ae.a)(b);function b(f){var s;Object(S.a)(this,b),s=E.call(this,f),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(F(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(L,ie){var de=s.props.prefixCls,ve=L||D.a.createElement("button",{type:"button","aria-label":ie,className:"".concat(de,"-item-link")});return typeof L=="function"&&(ve=D.a.createElement(L,Object(he.a)({},s.props))),ve},s.savePaginationNode=function(L){s.paginationNode=L},s.isValid=function(L){return H(L)&&L!==s.state.current},s.shouldDisplayQuickJumper=function(){var L=s.props,ie=L.showQuickJumper,de=L.pageSize,ve=L.total;return ve<=de?!1:ie},s.handleKeyDown=function(L){(L.keyCode===q.ARROW_UP||L.keyCode===q.ARROW_DOWN)&&L.preventDefault()},s.handleKeyUp=function(L){var ie=s.getValidValue(L),de=s.state.currentInputValue;ie!==de&&s.setState({currentInputValue:ie}),L.keyCode===q.ENTER?s.handleChange(ie):L.keyCode===q.ARROW_UP?s.handleChange(ie-1):L.keyCode===q.ARROW_DOWN&&s.handleChange(ie+1)},s.changePageSize=function(L){var ie=s.state.current,de=F(L,s.state,s.props);ie=ie>de?de:ie,de===0&&(ie=s.state.current),typeof L=="number"&&("pageSize"in s.props||s.setState({pageSize:L}),"current"in s.props||s.setState({current:ie,currentInputValue:ie})),s.props.onShowSizeChange(ie,L),"onChange"in s.props&&s.props.onChange&&s.props.onChange(ie,L)},s.handleChange=function(L){var ie=s.props.disabled,de=L;if(s.isValid(de)&&!ie){var ve=F(void 0,s.state,s.props);de>ve?de=ve:de<1&&(de=1),"current"in s.props||s.setState({current:de,currentInputValue:de});var Be=s.state.pageSize;return s.props.onChange(de,Be),de}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?de-2:0),Be=2;Be=R?ee=R:ee=Number(j),ee}},{key:"getShowSizeChanger",value:function(){var s=this.props,j=s.showSizeChanger,R=s.total,A=s.totalBoundaryShowSizeChanger;return typeof j!="undefined"?j:R>A}},{key:"renderPrev",value:function(s){var j=this.props,R=j.prevIcon,A=j.itemRender,ee=A(s,"prev",this.getItemIcon(R,"prev page")),L=!this.hasPrev();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"renderNext",value:function(s){var j=this.props,R=j.nextIcon,A=j.itemRender,ee=A(s,"next",this.getItemIcon(R,"next page")),L=!this.hasNext();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"render",value:function(){var s=this,j=this.props,R=j.prefixCls,A=j.className,ee=j.style,L=j.disabled,ie=j.hideOnSinglePage,de=j.total,ve=j.locale,Be=j.showQuickJumper,_e=j.showLessItems,oe=j.showTitle,ye=j.showTotal,Se=j.simple,Pe=j.itemRender,De=j.showPrevNextJumpers,Ge=j.jumpPrevIcon,Ce=j.jumpNextIcon,ht=j.selectComponentClass,ct=j.selectPrefixCls,Xe=j.pageSizeOptions,le=this.state,we=le.current,wt=le.pageSize,Ne=le.currentInputValue;if(ie===!0&&de<=wt)return null;var Y=F(void 0,this.state,this.props),be=[],Je=null,bt=null,xt=null,tt=null,dt=null,Me=Be&&Be.goButton,Re=_e?1:2,ge=we-1>0?we-1:0,Mt=we+1=Re*2&&we!==1+2&&(be[0]=Object(Q.cloneElement)(be[0],{className:"".concat(R,"-item-after-jump-prev")}),be.unshift(Je)),Y-we>=Re*2&&we!==Y-2&&(be[be.length-1]=Object(Q.cloneElement)(be[be.length-1],{className:"".concat(R,"-item-before-jump-next")}),be.push(bt)),$!==1&&be.unshift(xt),m!==Y&&be.push(tt)}var P=null;ye&&(P=D.a.createElement("li",{className:"".concat(R,"-total-text")},ye(de,[de===0?0:(we-1)*wt+1,we*wt>de?de:we*wt])));var K=!this.hasPrev()||!Y,W=!this.hasNext()||!Y;return D.a.createElement("ul",Object(T.a)({className:J()(R,A,Object(M.a)({},"".concat(R,"-disabled"),L)),style:ee,unselectable:"unselectable",ref:this.savePaginationNode},Pt),P,D.a.createElement("li",{title:oe?ve.prev_page:null,onClick:this.prev,tabIndex:K?null:0,onKeyPress:this.runIfEnterPrev,className:J()("".concat(R,"-prev"),Object(M.a)({},"".concat(R,"-disabled"),K)),"aria-disabled":K},this.renderPrev(ge)),be,D.a.createElement("li",{title:oe?ve.next_page:null,onClick:this.next,tabIndex:W?null:0,onKeyPress:this.runIfEnterNext,className:J()("".concat(R,"-next"),Object(M.a)({},"".concat(R,"-disabled"),W)),"aria-disabled":W},this.renderNext(Mt)),D.a.createElement(g,{disabled:L,locale:ve,rootPrefixCls:R,selectComponentClass:ht,selectPrefixCls:ct,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:we,pageSize:wt,pageSizeOptions:Xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Me}))}}],[{key:"getDerivedStateFromProps",value:function(s,j){var R={};if("current"in s&&(R.current=s.current,s.current!==j.current&&(R.currentInputValue=R.current)),"pageSize"in s&&s.pageSize!==j.pageSize){var A=j.current,ee=F(s.pageSize,j,s);A=A>ee?ee:A,"current"in s||(R.current=A,R.currentInputValue=A),R.pageSize=s.pageSize}return R}}]),b}(D.a.Component);se.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:U,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:U,locale:u.a,style:{},itemRender:X,totalBoundaryShowSizeChanger:50};var w=se},"6RRn":function(mt,ne,r){"use strict";var T=r("wCXF"),M=r("n6Qo");r.d(ne,"b",function(){return M.a});var he=r("IBYe"),S=r("6eGT"),o=r("hW8S");r.d(ne,"a",function(){return o.a}),ne.c=T.b},"6eGT":function(mt,ne,r){"use strict";function T(M){return null}ne.a=T},"815F":function(mt,ne,r){"use strict";r.d(ne,"e",function(){return ae}),r.d(ne,"c",function(){return D}),r.d(ne,"d",function(){return G}),r.d(ne,"a",function(){return me}),r.d(ne,"f",function(){return re}),r.d(ne,"b",function(){return q});var T=r("KQm4"),M=r("VTBJ"),he=r("Ff2n"),S=r("Zm9Q"),o=r("Kwbf"),C=r("OZM5");function ae(_,g){return _!=null?_:g}function Q(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function u(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(U||[]).forEach(function(X){var F=X.key,se=X.children;Object(o.a)(F!=null,"Tree node must have a certain key: [".concat(H).concat(F,"]"));var w=String(F);Object(o.a)(!g.has(w)||F===null||F===void 0,"Same 'key' exist in the Tree: ".concat(w)),g.set(w,!0),u(se,"".concat(H).concat(w," > "))})}u(_)}function D(_){function g(u){var U=Object(S.a)(u);return U.map(function(H){if(!Object(C.i)(H))return Object(o.a)(!H,"Tree/TreeNode can only accept TreeNode as children."),null;var X=H.key,F=H.props,se=F.children,w=Object(he.a)(F,["children"]),k=Object(M.a)({key:X},w),E=g(se);return E.length&&(k.children=E),k}).filter(function(H){return H})}return g(_)}function G(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=new Set(g===!0?[]:g),U=[];function H(X){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return X.map(function(se,w){var k=Object(C.h)(F?F.pos:"0",w),E=ae(se.key,k),b=Object(M.a)(Object(M.a)({},se),{},{parent:F,pos:k,children:null,data:se,isStart:[].concat(Object(T.a)(F?F.isStart:[]),[w===0]),isEnd:[].concat(Object(T.a)(F?F.isEnd:[]),[w===X.length-1])});return U.push(b),g===!0||u.has(E)?b.children=H(se.children||[],b):b.children=[],b})}return H(_),U}function J(_,g,u){var U;u?typeof u=="string"?U=function(F){return F[u]}:typeof u=="function"&&(U=function(F){return u(F)}):U=function(F,se){return ae(F.key,se)};function H(X,F,se){var w=X?X.children:_,k=X?Object(C.h)(se.pos,F):"0";if(X){var E=U(X,k),b={node:X,index:F,pos:k,key:E,parentPos:se.node?se.pos:null,level:se.level+1};g(b)}w&&w.forEach(function(f,s){H(f,s,{node:X,pos:k,level:se?se.level+1:-1})})}H(null)}function me(_){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=g.initWrapper,U=g.processEntity,H=g.onProcessFinished,X=arguments.length>2?arguments[2]:void 0,F={},se={},w={posEntities:F,keyEntities:se};return u&&(w=u(w)||w),J(_,function(k){var E=k.node,b=k.index,f=k.pos,s=k.key,j=k.parentPos,R=k.level,A={node:E,index:b,key:s,pos:f,level:R},ee=ae(s,f);F[f]=A,se[ee]=A,A.parent=F[j],A.parent&&(A.parent.children=A.parent.children||[],A.parent.children.push(A)),U&&U(A,w)},X),H&&H(w),w}function re(_,g){var u=g.expandedKeys,U=g.selectedKeys,H=g.loadedKeys,X=g.loadingKeys,F=g.checkedKeys,se=g.halfCheckedKeys,w=g.dragOverNodeKey,k=g.dropPosition,E=g.keyEntities,b=E[_],f={eventKey:_,expanded:u.indexOf(_)!==-1,selected:U.indexOf(_)!==-1,loaded:H.indexOf(_)!==-1,loading:X.indexOf(_)!==-1,checked:F.indexOf(_)!==-1,halfChecked:se.indexOf(_)!==-1,pos:String(b?b.pos:""),dragOver:w===_&&k===0,dragOverGapTop:w===_&&k===-1,dragOverGapBottom:w===_&&k===1};return f}function q(_){var g=_.data,u=_.expanded,U=_.selected,H=_.checked,X=_.loaded,F=_.loading,se=_.halfChecked,w=_.dragOver,k=_.dragOverGapTop,E=_.dragOverGapBottom,b=_.pos,f=_.active,s=Object(M.a)(Object(M.a)({},g),{},{expanded:u,selected:U,checked:H,loaded:X,loading:F,halfChecked:se,dragOver:w,dragOverGapTop:k,dragOverGapBottom:E,pos:b,active:f});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),s}},BU3w:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var T=r("MNnm"),M="rc-util-key";function he(ae){if(ae.attachTo)return ae.attachTo;var Q=document.querySelector("head");return Q||document.body}function S(ae){var Q,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(T.a)())return null;var G=document.createElement("style");if((Q=D.csp)===null||Q===void 0?void 0:Q.nonce){var J;G.nonce=(J=D.csp)===null||J===void 0?void 0:J.nonce}G.innerHTML=ae;var me=he(D),re=me.firstChild;return D.prepend&&me.prepend?me.prepend(G):D.prepend&&re?me.insertBefore(G,re):me.appendChild(G),G}var o=new Map;function C(ae,Q){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=he(D);if(!o.has(G)){var J=S("",D),me=J.parentNode;o.set(G,me),me.removeChild(J)}var re=Array.from(o.get(G).children).find(function(U){return U.tagName==="STYLE"&&U[M]===Q});if(re){var q,_;if(((q=D.csp)===null||q===void 0?void 0:q.nonce)&&re.nonce!==((_=D.csp)===null||_===void 0?void 0:_.nonce)){var g;re.nonce=(g=D.csp)===null||g===void 0?void 0:g.nonce}return re.innerHTML!==ae&&(re.innerHTML=ae),re}var u=S(ae,D);return u[M]=Q,u}},IBYe:function(mt,ne,r){"use strict";function T(M){return null}ne.a=T},LH4l:function(mt,ne,r){mt.exports={flex_box_center:"flex_box_center___2kM9t",flex_space_between:"flex_space_between___2GWTm",flex_box_vertical_center:"flex_box_vertical_center___1fefq",flex_box_center_end:"flex_box_center_end___1W7v1",flex_box_column:"flex_box_column___1ghF4",bg:"bg___2u1mi",title:"title___2oznh",img:"img___e7qFG",right:"right___2qEm7",top:"top___64ioH",spanfont:"spanfont___1M2sf",bottom:"bottom___uHkeQ",rightdiv:"rightdiv___3xV1j",fonttitle:"fonttitle___35Nl1",ling:"ling___348jK",content:"content___cYR2j",bgs:"bgs___3sNmI",contenttitle:"contenttitle___BbdDe",titlecoent:"titlecoent___1aw6d",es:"es___3bs0Z"}},LdHM:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return X}),r.d(ne,"a",function(){return se});var T=r("1OyB"),M=r("vuIU"),he=r("Ji7U"),S=r("LK+K"),o=r("q1tI"),C=r("rePB"),ae=r("Ff2n"),Q=r("ODXe"),D=r("4IlW"),G=r("bX4T"),J=r("YrtM"),me=r("TSYQ"),re=r.n(me),q=r("+nKL"),_=r("8OUc"),g=function(oe,ye){var Se=oe.prefixCls,Pe=oe.id,De=oe.flattenOptions,Ge=oe.childrenAsData,Ce=oe.values,ht=oe.searchValue,ct=oe.multiple,Xe=oe.defaultActiveFirstOption,le=oe.height,we=oe.itemHeight,wt=oe.notFoundContent,Ne=oe.open,Y=oe.menuItemSelectedIcon,be=oe.virtual,Je=oe.onSelect,bt=oe.onToggleOpen,xt=oe.onActiveValue,tt=oe.onScroll,dt=oe.onMouseEnter,Me="".concat(Se,"-item"),Re=Object(J.a)(function(){return De},[Ne,De],function(x,P){return P[0]&&x[1]!==P[1]}),ge=o.useRef(null),Mt=function(P){P.preventDefault()},Pt=function(P){ge.current&&ge.current.scrollTo({index:P})},Ye=function(P){for(var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,W=Re.length,fe=0;fe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(_e).map(function(ye,Se){if(!o.isValidElement(ye)||!ye.type)return null;var Pe=ye.type.isSelectOptGroup,De=ye.key,Ge=ye.props,Ce=Ge.children,ht=Object(ae.a)(Ge,["children"]);return oe||!Pe?E(ye):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(De===null?Se:De,"__"),label:De},ht),{},{options:b(Ce)})}).filter(function(ye){return ye})}var f=r("2Qr1"),s=r("qNPg"),j=r("U8pU"),R=r("Kwbf"),A=r("WKfj");function ee(_e){var oe=_e.mode,ye=_e.options,Se=_e.children,Pe=_e.backfill,De=_e.allowClear,Ge=_e.placeholder,Ce=_e.getInputElement,ht=_e.showSearch,ct=_e.onSearch,Xe=_e.defaultOpen,le=_e.autoFocus,we=_e.labelInValue,wt=_e.value,Ne=_e.inputValue,Y=_e.optionLabelProp,be=oe==="multiple"||oe==="tags",Je=ht!==void 0?ht:be||oe==="combobox",bt=ye||b(Se);if(Object(R.a)(oe!=="tags"||bt.every(function(Me){return!Me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),oe==="tags"||oe==="combobox"){var xt=bt.some(function(Me){return Me.options?Me.options.some(function(Re){return typeof("value"in Re?Re.value:Re.key)=="number"}):typeof("value"in Me?Me.value:Me.key)=="number"});Object(R.a)(!xt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)(oe!=="combobox"||!Y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)(oe==="combobox"||!Pe,"`backfill` only works with `combobox` mode."),Object(R.a)(oe==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(R.b)(oe!=="combobox"||!Ce||!De||!Ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ct&&!Je&&oe!=="combobox"&&oe!=="tags"&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!Xe||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),wt!=null){var tt=Object(A.d)(wt);Object(R.a)(!we||tt.every(function(Me){return Object(j.a)(Me)==="object"&&("key"in Me||"value"in Me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!be||Array.isArray(wt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Se){var dt=null;Object(k.a)(Se).some(function(Me){if(!o.isValidElement(Me)||!Me.type)return!1;var Re=Me.type;if(Re.isSelectOption)return!1;if(Re.isSelectOptGroup){var ge=Object(k.a)(Me.props.children).every(function(Mt){return!o.isValidElement(Mt)||!Me.type||Mt.type.isSelectOption?!0:(dt=Mt.type,!1)});return!ge}return dt=Re,!0}),dt&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(dt.displayName||dt.name||dt,"`.")),Object(R.a)(Ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=ee,ie=Object(s.a)({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:b,flattenOptions:f.d,getLabeledValue:f.e,filterOptions:f.b,isValueDisabled:f.g,findValueOption:f.c,warningProps:L,fillOptionsWithMissingValue:f.a}),de=function(_e){Object(he.a)(ye,_e);var oe=Object(S.a)(ye);function ye(){var Se;return Object(T.a)(this,ye),Se=oe.apply(this,arguments),Se.selectRef=o.createRef(),Se.focus=function(){Se.selectRef.current.focus()},Se.blur=function(){Se.selectRef.current.blur()},Se}return Object(M.a)(ye,[{key:"render",value:function(){return o.createElement(ie,Object.assign({ref:this.selectRef},this.props))}}]),ye}(o.Component);de.Option=X,de.OptGroup=se;var ve=de,Be=ne.c=ve},NvD2:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var T=r("Kwbf");function M(ae,Q){var D=new Set;return ae.forEach(function(G){Q.has(G)||D.add(G)}),D}function he(ae){var Q=ae||{},D=Q.disabled,G=Q.disableCheckbox,J=Q.checkable;return!!(D||G)||J===!1}function S(ae,Q,D,G){for(var J=new Set(ae),me=new Set,re=0;re<=D;re+=1){var q=Q.get(re)||new Set;q.forEach(function(U){var H=U.key,X=U.node,F=U.children,se=F===void 0?[]:F;J.has(H)&&!G(X)&&se.filter(function(w){return!G(w.node)}).forEach(function(w){J.add(w.key)})})}for(var _=new Set,g=D;g>=0;g-=1){var u=Q.get(g)||new Set;u.forEach(function(U){var H=U.parent,X=U.node;if(G(X)||!U.parent||_.has(U.parent.key))return;if(G(U.parent.node)){_.add(H.key);return}var F=!0,se=!1;(H.children||[]).filter(function(w){return!G(w.node)}).forEach(function(w){var k=w.key,E=J.has(k);F&&!E&&(F=!1),!se&&(E||me.has(k))&&(se=!0)}),F&&J.add(H.key),se&&me.add(H.key),_.add(H.key)})}return{checkedKeys:Array.from(J),halfCheckedKeys:Array.from(M(me,J))}}function o(ae,Q,D,G,J){for(var me=new Set(ae),re=new Set(Q),q=0;q<=G;q+=1){var _=D.get(q)||new Set;_.forEach(function(H){var X=H.key,F=H.node,se=H.children,w=se===void 0?[]:se;!me.has(X)&&!re.has(X)&&!J(F)&&w.filter(function(k){return!J(k.node)}).forEach(function(k){me.delete(k.key)})})}re=new Set;for(var g=new Set,u=G;u>=0;u-=1){var U=D.get(u)||new Set;U.forEach(function(H){var X=H.parent,F=H.node;if(J(F)||!H.parent||g.has(H.parent.key))return;if(J(H.parent.node)){g.add(X.key);return}var se=!0,w=!1;(X.children||[]).filter(function(k){return!J(k.node)}).forEach(function(k){var E=k.key,b=me.has(E);se&&!b&&(se=!1),!w&&(b||re.has(E))&&(w=!0)}),se||me.delete(X.key),w&&re.add(X.key),g.add(X.key)})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(M(re,me))}}function C(ae,Q,D,G){var J=[],me;G?me=G:me=he;var re=new Set(ae.filter(function(u){var U=!!D[u];return U||J.push(u),U})),q=new Map,_=0;Object.keys(D).forEach(function(u){var U=D[u],H=U.level,X=q.get(H);X||(X=new Set,q.set(H,X)),X.add(U),_=Math.max(_,H)}),Object(T.a)(!J.length,"Tree missing follow keys: ".concat(J.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var g;return Q===!0?g=S(re,q,_,me):g=o(re,Q.halfCheckedKeys,q,_,me),g}},OZM5:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return G}),r.d(ne,"a",function(){return J}),r.d(ne,"k",function(){return me}),r.d(ne,"h",function(){return re}),r.d(ne,"i",function(){return q}),r.d(ne,"g",function(){return _}),r.d(ne,"c",function(){return g}),r.d(ne,"d",function(){return u}),r.d(ne,"j",function(){return X}),r.d(ne,"e",function(){return F}),r.d(ne,"f",function(){return se});var T=r("KQm4"),M=r("U8pU"),he=r("Ff2n"),S=r("q1tI"),o=r.n(S),C=r("Kwbf"),ae=r("WaYH"),Q=.25,D=2;function G(w,k){var E=w.slice(),b=E.indexOf(k);return b>=0&&E.splice(b,1),E}function J(w,k){var E=w.slice();return E.indexOf(k)===-1&&E.push(k),E}function me(w){return w.split("-")}function re(w,k){return"".concat(w,"-").concat(k)}function q(w){return w&&w.type&&w.type.isTreeNode}function _(w,k){var E=[w],b=k[w];function f(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(j){var R=j.key,A=j.children;E.push(R),f(A)})}return f(b.children),E}function g(w,k){var E=w.clientY,b=k.selectHandle.getBoundingClientRect(),f=b.top,s=b.bottom,j=b.height,R=Math.max(j*Q,D);return E<=f+R?-1:E>=s-R?1:0}function u(w,k){if(!w)return;var E=k.multiple;return E?w.slice():w.length?[w[0]]:w}var U=function(k){return k};function H(w,k){if(!w)return[];var E=k||{},b=E.processProps,f=b===void 0?U:b,s=Array.isArray(w)?w:[w];return s.map(function(j){var R=j.children,A=Object(he.a)(j,["children"]),ee=H(R,k);return o.a.createElement(ae.a,Object.assign({},f(A)),ee)})}function X(w){if(!w)return null;var k;if(Array.isArray(w))k={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(M.a)(w)==="object")k={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function F(w,k){var E=new Set;function b(f){if(E.has(f))return;var s=k[f];if(!s)return;E.add(f);var j=s.parent,R=s.node;if(R.disabled)return;j&&b(j.key)}return(w||[]).forEach(function(f){b(f)}),Object(T.a)(E)}function se(w){var k={};return Object.keys(w).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(k[E]=w[E])}),k}},"SA+Z":function(mt,ne,r){var T=r("wTVA"),M=r("EbDI"),he=r("ZhPi"),S=r("wkBT");function o(C){return T(C)||M(C)||he(C)||S()}mt.exports=o,mt.exports.__esModule=!0,mt.exports.default=mt.exports},TljI:function(mt,ne,r){"use strict";r.r(ne);var T=r("qVdP"),M=r("jsC+"),he=r("DYRE"),S=r("zeV3"),o=r("lUTK"),C=r("BvKs"),ae=r("sPJy"),Q=r("bE4q"),D=r("9og8"),G=r("k1fw"),J=r("tJVT"),me=r("Znn+"),re=r("ZTPi"),q=r("WmNS"),_=r.n(q),g=r("q1tI"),u=r.n(g),U=r("wd/R"),H=r.n(U),X=r("Ty5D"),F=r("55Ip"),se=r("9kvl"),w=r("ErOA"),k=r("LH4l"),E=r.n(k),b=r("8Skl"),f=r("DjyN"),s=r("NUBc"),j=r("g9YV"),R=r("wCAj");H.a.locale("zh-cn");var A=re.a.TabPane,ee=[{text:"\u672A\u5F00\u542F",color:"#272A3A"},{text:"\u672A\u901A\u5173",color:"#E30000"},{text:"\u6309\u65F6\u901A\u5173",color:"#038D00"},{text:"\u8FDF\u4EA4\u901A\u5173",color:"#0152D9"}],L=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="1"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u5B9E\u9A8C\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/shixun_homework/").concat(P==null?void 0:P.id,"/").concat(P==null?void 0:P.student_work_id,"/comment"),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=ee[x])===null||P===void 0?void 0:P.color}},(K=ee[x])===null||K===void 0?void 0:K.text)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",key:"sum_evaluate_count"},{title:"\u901A\u5173\u60C5\u51B5",dataIndex:"current_complete_count",align:"center",key:"current_complete_count",render:function(x,P){return u.a.createElement("span",null,x+"/"+(P==null?void 0:P.complete_count))}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"work_score",align:"center",key:"address",render:function(x){return u.a.createElement("span",{style:{color:parseInt(x)===100?"#FF6800":"#E30000"}},x)}},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u5B9E\u9A8C")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u542F")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#E30000"}},m==null?void 0:m.uncompelete_count),u.a.createElement("div",null,"\u672A\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.opportune_compelete_count),u.a.createElement("div",null,"\u6309\u65F6\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.late_compelete_count),u.a.createElement("div",null,"\u8FDF\u4EA4\u901A\u5173")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_challenges_count),u.a.createElement("div",null,"\u5168\u90E8\u5173\u5361")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.compelete_count),u.a.createElement("div",null,"\u5DF2\u8FC7\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_evaluate_count)||0),u.a.createElement("div",null,"\u8BC4\u6D4B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ie=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(L);H.a.locale("zh-cn");var de=re.a.TabPane,ve=[{text:"\u672A\u5F00\u59CB",color:"#272A3A"},{text:"\u8003\u8BD5\u4E2D",color:"#0152D9"},{text:"\u5DF2\u4EA4\u5377",color:"#038D00"},{text:"\u5DF2\u4EA4\u5377/\u672A\u7B54",color:"#038D00"}],Be=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:5,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="4"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u8003\u8BD5\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"36%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/exercise/").concat(P==null?void 0:P.id,"/review/").concat(ge.login),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",key:"commit_status",width:"11%",render:function(x){var P,K;return u.a.createElement("span",{style:{color:(P=ve[x])===null||P===void 0?void 0:P.color}},(K=ve[x])===null||K===void 0?void 0:K.text)}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",key:"end_at",width:"27%",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",width:"11%"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",width:"15%",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(be=parseFloat(m==null?void 0:m.total_score))===null||be===void 0?void 0:be.toFixed(2)),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},m==null?void 0:m.total_count),u.a.createElement("div",null,"\u5168\u90E8\u8003\u8BD5")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.total_unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u59CB")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_examing_count),u.a.createElement("div",null,"\u8003\u8BD5\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.total_commit_count,u.a.createElement("span",{style:{color:"#272A3A"}},"/",m==null?void 0:m.total_uncommit_count)),u.a.createElement("div",null,"\u5DF2\u4EA4\u5377/\u672A\u7B54"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},_e=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Be);H.a.locale("zh-cn");var oe=re.a.TabPane,ye=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Se=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:1,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="2"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/common_homework/").concat(P==null?void 0:P.id,"/review/").concat(P==null?void 0:P.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=ye[x])===null||P===void 0?void 0:P.color}},(K=ye[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},Pe=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Se);H.a.locale("zh-cn");var De=re.a.TabPane,Ge=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Ce=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:3,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="3"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/group_homework/").concat(P==null?void 0:P.id,"/review/").concat(P==null?void 0:P.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u5206\u7EC4",dataIndex:"work_group",key:"work_group",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=Ge[x])===null||P===void 0?void 0:P.color}},(K=Ge[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ht=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Ce),ct=r("m3rI"),Xe=r("xKgJ");H.a.locale("zh-cn");var le=re.a.TabPane,we=function(Y){var be,Je,bt,xt,tt,dt,Me,Re,ge,Mt,Pt,Ye,Et,Wt,O,I,$,m=Y.classroomList,V=Y.globalSetting,x=Y.loading,P=Y.dispatch,K=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4})),W=Object(J.a)(K,2),fe=W[0],ue=W[1],Ee=Object(g.useState)(),Te=Object(J.a)(Ee,2),Z=Te[0],ke=Te[1],pt=Object(g.useState)(),Qe=Object(J.a)(pt,2),nt=Qe[0],Ae=Qe[1],zt=Object(g.useState)("1"),Rt=Object(J.a)(zt,2),it=Rt[0],jt=Rt[1],Ht=Object(X.h)();Object(g.useEffect)(function(){at(Object(G.a)({},fe)),Ot(Object(G.a)({},fe)),P({type:"classroomList/getClassroomLeftMenus",payload:Object(G.a)({},fe)})},[]),Object(g.useEffect)(function(){var ce,Ie,gt,Lt,Fe,fn,mn,En,tn;m!=null&&(ce=m.detailLeftMenus)!==null&&ce!==void 0&&(Ie=ce.course_modules)!==null&&Ie!==void 0&&Ie.map(function(St){return St.type}).find(function(St){return St==="shixun_homework"})?jt("1"):m!=null&&(gt=m.detailLeftMenus)!==null&>!==void 0&&(Lt=gt.course_modules)!==null&&Lt!==void 0&&Lt.map(function(St){return St.type}).find(function(St){return St==="common_homework"})?jt("2"):m!=null&&(Fe=m.detailLeftMenus)!==null&&Fe!==void 0&&(fn=Fe.course_modules)!==null&&fn!==void 0&&fn.map(function(St){return St.type}).find(function(St){return St==="group_homework"})?jt("3"):m!=null&&(mn=m.detailLeftMenus)!==null&&mn!==void 0&&(En=mn.course_modules)!==null&&En!==void 0&&En.map(function(St){return St.type}).find(function(St){return St==="exercise"})&&jt("4")},[m==null||((be=m.detailLeftMenus)===null||be===void 0)?void 0:be.course_modules]);function at(ce){return Bt.apply(this,arguments)}function Bt(){return Bt=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/course_members/").concat(Ie.login,"/learning_statistics"),{method:"get",params:Ie});case 2:gt=Fe.sent,ue(Object(G.a)({},Ie)),gt&&ke(gt);case 5:case"end":return Fe.stop()}},ce)})),Bt.apply(this,arguments)}function Ot(ce){return ft.apply(this,arguments)}function ft(){return ft=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/students.json"),{method:"get",params:Object(G.a)({limit:2e3},Ie)});case 2:gt=Fe.sent,gt&&Ae(gt);case 4:case"end":return Fe.stop()}},ce)})),ft.apply(this,arguments)}var Le=m==null||((Je=m.detailLeftMenus)===null||Je===void 0||((bt=Je.course_modules)===null||bt===void 0))?void 0:bt.map(function(ce){return ce.type});return u.a.createElement("section",{className:E.a.bg},u.a.createElement(Q.a,{separator:">",style:{marginTop:20}},u.a.createElement(Q.a.Item,null,"\u6559\u5B66\u8BFE\u5802"),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:"/classrooms/".concat(fe==null?void 0:fe.coursesId)},Z==null?void 0:Z.course_name)),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:m==null||((xt=m.detailLeftMenus)===null||xt===void 0||((tt=xt.course_modules)===null||tt===void 0||((dt=tt.filter(function(ce){return ce.type==="statistics"}))===null||dt===void 0||((Me=dt[0])===null||Me===void 0))))?void 0:Me.category_url},"\u5B66\u751F\u5206\u6790")),u.a.createElement(Q.a.Item,null,"\u5B66\u751F\u5B66\u4E60\u8BE6\u60C5")),u.a.createElement("div",{className:E.a.title},u.a.createElement("div",{className:E.a.img},u.a.createElement("img",{src:ct.a.IMG_SERVER+"/images/"+(Z==null?void 0:Z.image_url)})),u.a.createElement("div",{className:E.a.right},u.a.createElement("div",{className:E.a.top},u.a.createElement("div",null,u.a.createElement("span",{className:E.a.spanfont},"\u59D3\u540D\uFF1A",u.a.createElement("span",null,Z==null?void 0:Z.username)),u.a.createElement("span",{className:E.a.spanfont},"\u5B66\u53F7\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.student_id)||"- -")),u.a.createElement("span",{className:E.a.spanfont},"\u5206\u73ED\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.course_group)||"- -"))),!Object(Xe.s)()&&u.a.createElement(M.a,{overlay:u.a.createElement(C.a,{selectedKeys:[fe==null?void 0:fe.login],style:{maxHeight:"380px",overflow:"auto"}},nt==null||((Re=nt.students)===null||Re===void 0)?void 0:Re.map(function(ce,Ie){return u.a.createElement(C.a.Item,{onClick:function(){se.d.push("/classrooms/".concat(fe==null?void 0:fe.coursesId,"/Studentdetail/").concat(ce==null?void 0:ce.login)),window.location.reload()},key:ce==null?void 0:ce.login},ce.name)}))},u.a.createElement(S.a,{style:{fontSize:14}},Z==null?void 0:Z.username,u.a.createElement(b.a,{style:{color:"#0152D9"}})))),u.a.createElement("div",{className:E.a.bottom},u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},Z==null||((ge=Z.total_score)===null||ge===void 0)?void 0:ge.toFixed(2)),u.a.createElement("div",null,"\u603B\u6210\u7EE9")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.course_group_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.course_group_user_ranking_count)),u.a.createElement("div",null,"\u5206\u73ED\u6392\u540D\uFF08\u6392\u540D / \u5206\u73ED\u4EBA\u6570\uFF09")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.overall_rating),u.a.createElement("div",null,"\u7EFC\u5408\u8BC4\u5206")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.total_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.total_user_ranking_count)),u.a.createElement("div",null,"\u7EFC\u5408\u603B\u6392\u540D\uFF08\u6392\u540D / \u603B\u4EBA\u6570\uFF09"))))),u.a.createElement("div",{className:E.a.content},u.a.createElement(re.a,{accessKey:it,onChange:function(Ie){jt(Ie)},tabBarStyle:{padding:"0px 40px",height:55}},(Le==null?void 0:Le.find(function(ce){return ce==="shixun_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Mt=m.detailLeftMenusNames)===null||Mt===void 0)?void 0:Mt.shixun_homework},m==null||((Pt=m.detailLeftMenusNames)===null||Pt===void 0)?void 0:Pt.shixun_homework),key:"1"},u.a.createElement(ie,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="common_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Ye=m.detailLeftMenusNames)===null||Ye===void 0)?void 0:Ye.common_homework},m==null||((Et=m.detailLeftMenusNames)===null||Et===void 0)?void 0:Et.common_homework),key:"2"},u.a.createElement(Pe,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="group_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Wt=m.detailLeftMenusNames)===null||Wt===void 0)?void 0:Wt.group_homework},m==null||((O=m.detailLeftMenusNames)===null||O===void 0)?void 0:O.group_homework),key:"3"},u.a.createElement(ht,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="exercise"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((I=m.detailLeftMenusNames)===null||I===void 0)?void 0:I.exercise},m==null||(($=m.detailLeftMenusNames)===null||$===void 0)?void 0:$.exercise),key:"4"},u.a.createElement(_e,{activitykey:it})))))},wt=ne.default=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(we)},WaYH:function(mt,ne,r){"use strict";var T=r("rePB"),M=r("Ff2n"),he=r("VTBJ"),S=r("1OyB"),o=r("vuIU"),C=r("JX7q"),ae=r("Ji7U"),Q=r("LK+K"),D=r("q1tI"),G=r("TSYQ"),J=r.n(G),me=r("sboe"),re=r("OZM5"),q=function(k){var E=k.prefixCls,b=k.level,f=k.isStart,s=k.isEnd;if(!b)return null;for(var j="".concat(E,"-indent-unit"),R=[],A=0;Ay&&(B=y-z),Object(o.useMemo)(function(){if(!n.length)return[0,0];for(var te=n.length,je=te,ze=0;zep+B){je=ze-1;break}}for(var Ve=0,He=te-1;He>=0;He-=1){var Ke=a.get(n[He].key)||F;if(Ke[h]1&&arguments[1]!==void 0?arguments[1]:!1,l=d&&typeof d.getBoundingClientRect=="function"&&d.getBoundingClientRect().width;if(l){if(v){var e=getComputedStyle(d),n=e.marginLeft,t=e.marginRight;l+=+n.replace("px","")+ +t.replace("px","")}l=+l.toFixed(6)}return l||0},Me=function(d,v,l){d&&Object(ie.a)(d.style)==="object"&&(d.style[v]=l)},Re=function(){return Ne.any},ge=r("bdgK"),Mt=r("i8i4"),Pt=r.n(Mt),Ye=r("wgJM"),Et=r("l4aY"),Wt=r("m+aA"),O=r("c+Xe"),I=r("zT1h"),$=r("QC+M");function m(a,d,v){return v?a[0]===d[0]:a[0]===d[0]&&a[1]===d[1]}function V(a,d,v){var l=a[d]||{};return Object(S.a)(Object(S.a)({},l),v)}function x(a,d,v,l){for(var e=v.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;d();var n=Object(Ye.a)(function(){e<=1?l({isCanceled:function(){return n!==a.current}}):v(l,e-1)});a.current=n}return o.useEffect(function(){return function(){d()}},[]),[v,d]},fn=[Ot,ft,Le,ce],mn=!1,En=!0;function tn(a){return a===Le||a===ce}var St=function(a,d){var v=o.useState(Bt),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Fe(),i=Object(M.a)(t,2),c=i[0],h=i[1];function p(){n(Ot)}return Lt(function(){if(e!==Bt&&e!==ce){var y=fn.indexOf(e),N=fn[y+1],z=d(e);z===mn?n(N):c(function(B){function te(){if(B.isCanceled())return;n(N)}z===!0?te():Promise.resolve(z).then(te)})}},[a,e]),o.useEffect(function(){return function(){h()}},[]),[p,e]},jn=function(a){var d=Object(o.useRef)(),v=Object(o.useRef)(a);v.current=a;var l=o.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(zt,l),t.removeEventListener(Ae,l))}function n(t){d.current&&d.current!==t&&e(d.current),t&&t!==d.current&&(t.addEventListener(zt,l),t.addEventListener(Ae,l),d.current=t)}return o.useEffect(function(){return function(){e(d.current)}},[]),[n,e]};function Mn(a,d,v,l){var e=l.motionEnter,n=e===void 0?!0:e,t=l.motionAppear,i=t===void 0?!0:t,c=l.motionLeave,h=c===void 0?!0:c,p=l.motionDeadline,y=l.motionLeaveImmediately,N=l.onAppearPrepare,z=l.onEnterPrepare,B=l.onLeavePrepare,te=l.onAppearStart,je=l.onEnterStart,ze=l.onLeaveStart,Ue=l.onAppearActive,Ve=l.onEnterActive,He=l.onLeaveActive,Ke=l.onAppearEnd,We=l.onEnterEnd,lt=l.onLeaveEnd,$e=l.onVisibleChanged,It=Ie(),yt=Object(M.a)(It,2),xe=yt[0],Oe=yt[1],Ze=Ie(it),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Nt=Ie(null),ut=Object(M.a)(Nt,2),_t=ut[0],At=ut[1],Gt=Object(o.useRef)(!1),rn=Object(o.useRef)(null),Kt=Object(o.useRef)(!1),ln=Object(o.useRef)(null);function Cn(){var Dt=v();return Dt||ln.current}var un=Object(o.useRef)(!1);function cn(Dt){var vt=Cn();if(Dt&&!Dt.deadline&&Dt.target!==vt)return;var Yt;pe===jt&&un.current?Yt=Ke==null?void 0:Ke(vt,Dt):pe===Ht&&un.current?Yt=We==null?void 0:We(vt,Dt):pe===at&&un.current&&(Yt=lt==null?void 0:lt(vt,Dt)),Yt!==!1&&!Kt.current&&(st(it),At(null))}var Ft=jn(cn),en=Object(M.a)(Ft,1),Jt=en[0],$t=o.useMemo(function(){var Dt,vt,Yt;switch(pe){case"appear":return Dt={},Object(T.a)(Dt,Ot,N),Object(T.a)(Dt,ft,te),Object(T.a)(Dt,Le,Ue),Dt;case"enter":return vt={},Object(T.a)(vt,Ot,z),Object(T.a)(vt,ft,je),Object(T.a)(vt,Le,Ve),vt;case"leave":return Yt={},Object(T.a)(Yt,Ot,B),Object(T.a)(Yt,ft,ze),Object(T.a)(Yt,Le,He),Yt;default:return{}}},[pe]),wn=St(pe,function(Dt){if(Dt===Ot){var vt=$t[Ot];return vt?vt(Cn()):mn}if(Tt in $t){var Yt;At(((Yt=$t[Tt])===null||Yt===void 0?void 0:Yt.call($t,Cn(),null))||null)}return Tt===Le&&(Jt(Cn()),p>0&&(clearTimeout(rn.current),rn.current=setTimeout(function(){cn({deadline:!0})},p))),En}),An=Object(M.a)(wn,2),Fn=An[0],Tt=An[1],xn=tn(Tt);un.current=xn,Lt(function(){Oe(d);var Dt=Gt.current;if(Gt.current=!0,!a)return;var vt;!Dt&&d&&i&&(vt=jt),Dt&&d&&n&&(vt=Ht),(Dt&&!d&&h||!Dt&&y&&!d&&h)&&(vt=at),vt&&(st(vt),Fn())},[d]),Object(o.useEffect)(function(){(pe===jt&&!i||pe===Ht&&!n||pe===at&&!h)&&st(it)},[i,n,h]),Object(o.useEffect)(function(){return function(){clearTimeout(rn.current),Kt.current=!0}},[]),Object(o.useEffect)(function(){xe!==void 0&&pe===it&&($e==null||$e(xe))},[xe,pe]);var zn=_t;return $t[Ot]&&Tt===ft&&(zn=Object(S.a)({transition:"none"},zn)),[pe,Tt,zn,xe!=null?xe:d]}var Hn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){return Object(k.a)(this,v),d.apply(this,arguments)}return Object(E.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(o.Component),nn=Hn;function Un(a){var d=a;Object(ie.a)(a)==="object"&&(d=a.transitionSupport);function v(e){return!!(e.motionName&&d)}var l=o.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,c=e.removeOnLeave,h=c===void 0?!0:c,p=e.forceRender,y=e.children,N=e.motionName,z=e.leavedClassName,B=e.eventProps,te=v(e),je=Object(o.useRef)(),ze=Object(o.useRef)();function Ue(){try{return Object(Wt.a)(je.current||ze.current)}catch(st){return null}}var Ve=Mn(te,i,Ue,e),He=Object(M.a)(Ve,4),Ke=He[0],We=He[1],lt=He[2],$e=He[3],It=o.useRef($e);$e&&(It.current=!0);var yt=Object(o.useRef)(n);yt.current=n;var xe=o.useCallback(function(st){je.current=st,Object(O.b)(yt.current,st)},[]),Oe,Ze=Object(S.a)(Object(S.a)({},B),{},{visible:i});if(!y)Oe=null;else if(Ke===it||!v(e))$e?Oe=y(Object(S.a)({},Ze),xe):!h&&It.current?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:z}),xe):p?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{style:{display:"none"}}),xe):Oe=null;else{var et,pe;We===Ot?pe="prepare":tn(We)?pe="active":We===ft&&(pe="start"),Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:ae()(Rt(N,Ke),(et={},Object(T.a)(et,Rt(N,"".concat(Ke,"-").concat(pe)),pe),Object(T.a)(et,N,typeof N=="string"),et)),style:lt}),xe)}return o.createElement(nn,{ref:ze},Oe)});return l.displayName="CSSMotion",l}var On=Un(nt),kn="add",Rn="keep",gn="remove",Sn="removed";function Vn(a){var d;return a&&Object(ie.a)(a)==="object"&&"key"in a?d=a:d={key:a},Object(S.a)(Object(S.a)({},d),{},{key:String(d.key)})}function Pn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Vt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],l=0,e=d.length,n=Pn(a),t=Pn(d);n.forEach(function(h){for(var p=!1,y=l;y1});return c.forEach(function(h){v=v.filter(function(p){var y=p.key,N=p.status;return y!==h||N!==gn}),v.forEach(function(p){p.key===h&&(p.status=Rn)})}),v}var qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:On,v=function(l){Object(f.a)(n,l);var e=Object(s.a)(n);function n(){var t;return Object(k.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(c){var h=c.keyEntities;return{keyEntities:h.map(function(p){return p.key!==i?p:Object(S.a)(Object(S.a)({},p),{},{status:Sn})})}})},t}return Object(E.a)(n,[{key:"render",value:function(){var i=this,c=this.state.keyEntities,h=this.props,p=h.component,y=h.children,N=h.onVisibleChanged,z=Object(he.a)(h,["component","children","onVisibleChanged"]),B=p||o.Fragment,te={};return qt.forEach(function(je){te[je]=z[je],delete z[je]}),delete z.keys,o.createElement(B,z,c.map(function(je){var ze=je.status,Ue=Object(he.a)(je,["status"]),Ve=ze===kn||ze===Rn;return o.createElement(d,Object(w.a)({},te,{key:Ue.key,visible:Ve,eventProps:Ue,onVisibleChanged:function(Ke){N==null||N(Ke,{key:Ue.key}),Ke||i.removeKey(Ue.key)}}),y)}))}}],[{key:"getDerivedStateFromProps",value:function(i,c){var h=i.keys,p=c.keyEntities,y=Pn(h),N=Vt(p,y);return{keyEntities:N.filter(function(z){var B=p.find(function(te){var je=te.key;return z.key===je});return!(B&&B.status===Sn&&z.status===gn)})}}}]),n}(o.Component);return v.defaultProps={component:"div"},v}var Qt=sn(nt),an=On;function pn(a){var d=a.prefixCls,v=a.motion,l=a.animation,e=a.transitionName;return v||(l?{motionName:"".concat(d,"-").concat(l)}:e?{motionName:e}:null)}function $n(a){var d=a.prefixCls,v=a.visible,l=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var c={};return(n||i||t)&&(c=Object(S.a)({motionAppear:!0},pn({motion:n,prefixCls:d,transitionName:i,animation:t}))),o.createElement(an,Object(w.a)({},c,{visible:v,removeOnLeave:!0}),function(h){var p=h.className;return o.createElement("div",{style:{zIndex:l},className:ae()("".concat(d,"-mask"),p)})})}var In=r("9mu1"),Xn=r("o0o1"),Ma=r.n(Xn),Ra=r("HaE+"),Gn=["measure","align",null,"motion"],Ut=function(a,d){var v=Object(o.useState)(null),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Object(o.useRef)(),i=Object(o.useRef)(!1);function c(y){i.current||n(y)}function h(){Ye.a.cancel(t.current)}function p(y){h(),t.current=Object(Ye.a)(function(){c(function(N){switch(e){case"align":return"motion";case"motion":return"stable";default:}return N}),y==null||y()})}return Object(o.useEffect)(function(){c("measure")},[a]),Object(o.useEffect)(function(){switch(e){case"measure":d();break;default:}e&&(t.current=Object(Ye.a)(Object(Ra.a)(Ma.a.mark(function y(){var N,z;return Ma.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:N=Gn.indexOf(e),z=Gn[N+1],z&&N!==-1&&c(z);case 3:case"end":return te.stop()}},y)}))))},[e]),Object(o.useEffect)(function(){return function(){i.current=!0,h()}},[]),[e,p]},Jn=function(a){var d=o.useState({width:0,height:0}),v=Object(M.a)(d,2),l=v[0],e=v[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=o.useMemo(function(){var i={};if(a){var c=l.width,h=l.height;a.indexOf("height")!==-1&&h?i.height=h:a.indexOf("minHeight")!==-1&&h&&(i.minHeight=h),a.indexOf("width")!==-1&&c?i.width=c:a.indexOf("minWidth")!==-1&&c&&(i.minWidth=c)}return i},[a,l]);return[t,n]},Yn=o.forwardRef(function(a,d){var v=a.visible,l=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,c=a.stretch,h=a.destroyPopupOnHide,p=a.forceRender,y=a.align,N=a.point,z=a.getRootDomNode,B=a.getClassNameFromAlign,te=a.onAlign,je=a.onMouseEnter,ze=a.onMouseLeave,Ue=a.onMouseDown,Ve=a.onTouchStart,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useState)(),lt=Object(M.a)(We,2),$e=lt[0],It=lt[1],yt=Jn(c),xe=Object(M.a)(yt,2),Oe=xe[0],Ze=xe[1];function et(){c&&Ze(z())}var pe=Ut(v,et),st=Object(M.a)(pe,2),Nt=st[0],ut=st[1],_t=Object(o.useRef)();function At(){return N||z}function Gt(){var Ft;(Ft=He.current)===null||Ft===void 0||Ft.forceAlign()}function rn(Ft,en){var Jt=B(en);$e!==Jt&&It(Jt),Nt==="align"&&($e!==Jt?Promise.resolve().then(function(){Gt()}):ut(function(){var $t;($t=_t.current)===null||$t===void 0||$t.call(_t)}),te==null||te(Ft,en))}var Kt=Object(S.a)({},pn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ft){var en=Kt[Ft];Kt[Ft]=function(Jt,$t){return ut(),en==null?void 0:en(Jt,$t)}});function ln(){return new Promise(function(Ft){_t.current=Ft})}o.useEffect(function(){!Kt.motionName&&Nt==="motion"&&ut()},[Kt.motionName,Nt]),o.useImperativeHandle(d,function(){return{forceAlign:Gt,getElement:function(){return Ke.current}}});var Cn=Object(S.a)(Object(S.a)({},Oe),{},{zIndex:i,opacity:Nt==="motion"||Nt==="stable"||!v?void 0:0,pointerEvents:Nt==="stable"?void 0:"none"},n),un=!0;(y==null?void 0:y.points)&&(Nt==="align"||Nt==="stable")&&(un=!1);var cn=t;return o.Children.count(t)>1&&(cn=o.createElement("div",{className:"".concat(l,"-content")},t)),o.createElement(an,Object(w.a)({visible:v,ref:Ke,leavedClassName:"".concat(l,"-hidden")},Kt,{onAppearPrepare:ln,onEnterPrepare:ln,removeOnLeave:h,forceRender:p}),function(Ft,en){var Jt=Ft.className,$t=Ft.style,wn=ae()(l,e,$e,Jt);return o.createElement(In.a,{target:At(),key:"popup",ref:He,monitorWindowResize:!0,disabled:un,align:y,onAlign:rn},o.createElement("div",{ref:en,className:wn,onMouseEnter:je,onMouseLeave:ze,onMouseDownCapture:Ue,onTouchStartCapture:Ve,style:Object(S.a)(Object(S.a)({},$t),Cn)},cn))})});Yn.displayName="PopupInner";var Sa=Yn,vn=o.forwardRef(function(a,d){var v=a.prefixCls,l=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,c=t.popupStyle,h=t.popupMotion,p=h===void 0?{}:h,y=t.popupRender,N=o.useRef();o.useImperativeHandle(d,function(){return{forceAlign:function(){},getElement:function(){return N.current}}});var z=Object(S.a)({zIndex:e},c),B=n;return o.Children.count(n)>1&&(B=o.createElement("div",{className:"".concat(v,"-content")},n)),y&&(B=y(B)),o.createElement(an,Object(w.a)({visible:l,ref:N,removeOnLeave:!0},p),function(te,je){var ze=te.className,Ue=te.style,Ve=ae()(v,i,ze);return o.createElement("div",{ref:je,className:Ve,style:Object(S.a)(Object(S.a)({},Ue),z)},B)})});vn.displayName="MobilePopupInner";var Ha=vn,Pa=["visible","mobile"],oa=o.forwardRef(function(a,d){var v=a.visible,l=a.mobile,e=Object(he.a)(a,Pa),n=Object(o.useState)(v),t=Object(M.a)(n,2),i=t[0],c=t[1],h=Object(o.useState)(!1),p=Object(M.a)(h,2),y=p[0],N=p[1],z=Object(S.a)(Object(S.a)({},e),{},{visible:i});Object(o.useEffect)(function(){c(v),v&&l&&N(P())},[v,l]);var B=y?o.createElement(Ha,Object(w.a)({},z,{mobile:l,ref:d})):o.createElement(Sa,Object(w.a)({},z,{ref:d}));return o.createElement("div",null,o.createElement($n,z),B)});oa.displayName="Popup";var Va=oa,$a=o.createContext(null),ra=$a;function Qn(){}function Xa(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Ta=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var d=function(v){Object(f.a)(e,v);var l=Object(s.a)(e);function e(n){var t;Object(k.a)(this,e),t=l.call(this,n),t.popupRef=o.createRef(),t.triggerRef=o.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var h=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,h,h?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var h;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Et.a)((h=t.popupRef.current)===null||h===void 0?void 0:h.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var h;if(t.preClickTime&&t.preTouchTime?h=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?h=t.preClickTime:t.preTouchTime&&(h=t.preTouchTime),Math.abs(h-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var p=!t.state.popupVisible;(t.isClickToHide()&&!p||p&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var h=c.target,p=t.getRootDomNode(),y=t.getPopupDomNode();(!Object(Et.a)(p,h)||t.isContextMenuOnly())&&!Object(Et.a)(y,h)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var h=Object(Wt.a)(t.triggerRef.current);if(h)return h}catch(p){}return Pt.a.findDOMNode(Object(b.a)(t))},t.getPopupClassNameFromAlign=function(c){var h=[],p=t.props,y=p.popupPlacement,N=p.builtinPlacements,z=p.prefixCls,B=p.alignPoint,te=p.getPopupClassNameFromAlign;return y&&N&&h.push(x(N,z,c,B)),te&&h.push(te(c)),h.join(" ")},t.getComponent=function(){var c=t.props,h=c.prefixCls,p=c.destroyPopupOnHide,y=c.popupClassName,N=c.onPopupAlign,z=c.popupMotion,B=c.popupAnimation,te=c.popupTransitionName,je=c.popupStyle,ze=c.mask,Ue=c.maskAnimation,Ve=c.maskTransitionName,He=c.maskMotion,Ke=c.zIndex,We=c.popup,lt=c.stretch,$e=c.alignPoint,It=c.mobile,yt=c.forceRender,xe=t.state,Oe=xe.popupVisible,Ze=xe.point,et=t.getPopupAlign(),pe={};return t.isMouseEnterToShow()&&(pe.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(pe.onMouseLeave=t.onPopupMouseLeave),pe.onMouseDown=t.onPopupMouseDown,pe.onTouchStart=t.onPopupMouseDown,o.createElement(Va,Object(w.a)({prefixCls:h,destroyPopupOnHide:p,visible:Oe,point:$e&&Ze,className:y,align:et,onAlign:N,animation:B,getClassNameFromAlign:t.getPopupClassNameFromAlign},pe,{stretch:lt,getRootDomNode:t.getRootDomNode,style:je,mask:ze,zIndex:Ke,transitionName:te,maskAnimation:Ue,maskTransitionName:Ve,maskMotion:He,ref:t.popupRef,motion:z,mobile:It,forceRender:yt}),typeof We=="function"?We():We)},t.attachParent=function(c){Ye.a.cancel(t.attachId);var h=t.props,p=h.getPopupContainer,y=h.getDocument,N=t.getRootDomNode(),z;p?(N||p.length===0)&&(z=p(N)):z=y(t.getRootDomNode()).body,z?z.appendChild(c):t.attachId=Object(Ye.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,h=c(t.getRootDomNode()).createElement("div");return h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.width="100%",t.attachParent(h),h},t.setPoint=function(c){var h=t.props.alignPoint;if(!h||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Ta.forEach(function(c){t["fire".concat(c)]=function(h){t.fireEvents(c,h)}}),t}return Object(E.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(I.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(I.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(I.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(I.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ye.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,c=t.popupAlign,h=t.builtinPlacements;return i&&h?V(h,i,c):c}},{key:"setPopupVisible",value:function(t,i){var c=this.props.alignPoint,h=this.state.popupVisible;this.clearDelayTimer(),h!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:h}),this.props.onPopupVisibleChange(t)),c&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,c){var h=this,p=i*1e3;if(this.clearDelayTimer(),p){var y=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){h.setPopupVisible(t,y),h.clearDelayTimer()},p)}else this.setPopupVisible(t,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var i=this.props.children.props,c=this.props;return i[t]&&c[t]?this["fire".concat(t)]:i[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var c=this.props.children.props[t];c&&c(i);var h=this.props[t];h&&h(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,c=i.children,h=i.forceRender,p=i.alignPoint,y=i.className,N=i.autoDestroy,z=o.Children.only(c),B={key:"trigger"};this.isContextMenuToShow()?B.onContextMenu=this.onContextMenu:B.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(B.onClick=this.onClick,B.onMouseDown=this.onMouseDown,B.onTouchStart=this.onTouchStart):(B.onClick=this.createTwoChains("onClick"),B.onMouseDown=this.createTwoChains("onMouseDown"),B.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(B.onMouseEnter=this.onMouseEnter,p&&(B.onMouseMove=this.onMouseMove)):B.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?B.onMouseLeave=this.onMouseLeave:B.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(B.onFocus=this.onFocus,B.onBlur=this.onBlur):(B.onFocus=this.createTwoChains("onFocus"),B.onBlur=this.createTwoChains("onBlur"));var te=ae()(z&&z.props&&z.props.className,y);te&&(B.className=te);var je=Object(S.a)({},B);Object(O.c)(z)&&(je.ref=Object(O.a)(this.triggerRef,z.ref));var ze=o.cloneElement(z,je),Ue;return(t||this.popupRef.current||h)&&(Ue=o.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&N&&(Ue=null),o.createElement(ra.Provider,{value:this.triggerContextValue},ze,Ue)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var c=t.popupVisible,h={};return c!==void 0&&i.popupVisible!==c&&(h.popupVisible=c,h.prevPopupVisible=i.popupVisible),h}}]),e}(o.Component);return d.contextType=ra,d.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xa,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},d}var Ya=Ja($.a),yn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},Na={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},la=ia,on=0,hn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},bn=function(d,v,l){var e=Je(v),n=d.getState();d.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},n.defaultActiveFirst),{},Object(T.a)({},e,l))})},sa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onDestroy=function(p){e.props.onDestroy(p)},e.onKeyDown=function(p){var y=p.keyCode,N=e.menuInstance,z=e.props.store,B=e.getVisible();if(y===g.a.ENTER)return e.onTitleClick(p),bn(z,e.props.eventKey,!0),!0;if(y===g.a.RIGHT)return B?N.onKeyDown(p):(e.triggerOpenChange(!0),bn(z,e.props.eventKey,!0)),!0;if(y===g.a.LEFT){var te;if(B)te=N.onKeyDown(p);else return;return te||(e.triggerOpenChange(!1),te=!0),te}return B&&(y===g.a.UP||y===g.a.DOWN)?N.onKeyDown(p):void 0},e.onOpenChange=function(p){e.props.onOpenChange(p)},e.onPopupVisibleChange=function(p){e.triggerOpenChange(p,p?"mouseenter":"mouseleave")},e.onMouseEnter=function(p){var y=e.props,N=y.eventKey,z=y.onMouseEnter,B=y.store;bn(B,e.props.eventKey,!1),z({key:N,domEvent:p})},e.onMouseLeave=function(p){var y=e.props,N=y.parentMenu,z=y.eventKey,B=y.onMouseLeave;N.subMenuInstance=Object(b.a)(e),B({key:z,domEvent:p})},e.onTitleMouseEnter=function(p){var y=e.props,N=y.eventKey,z=y.onItemHover,B=y.onTitleMouseEnter;z({key:N,hover:!0}),B({key:N,domEvent:p})},e.onTitleMouseLeave=function(p){var y=e.props,N=y.parentMenu,z=y.eventKey,B=y.onItemHover,te=y.onTitleMouseLeave;N.subMenuInstance=Object(b.a)(e),B({key:z,hover:!1}),te({key:z,domEvent:p})},e.onTitleClick=function(p){var y=Object(b.a)(e),N=y.props;if(N.onTitleClick({key:N.eventKey,domEvent:p}),N.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),bn(N.store,e.props.eventKey,!1)},e.onSubMenuClick=function(p){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(p))},e.onSelect=function(p){e.props.onSelect(p)},e.onDeselect=function(p){e.props.onDeselect(p)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(p){e.menuInstance=p},e.addKeyPath=function(p){return Object(S.a)(Object(S.a)({},p),{},{keyPath:(p.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(p,y){var N=e.props.eventKey,z=function(){e.onOpenChange({key:N,item:Object(b.a)(e),trigger:y,open:p})};y==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){z()},0):z()},e.isChildrenSelected=function(){var p={find:!1};return xt(e.props.children,e.props.selectedKeys,p),p.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var p=Mt.findDOMNode(e.menuInstance);if(p.offsetWidth>=e.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(p){e.subMenuTitle=p},e.getBaseProps=function(){var p=Object(b.a)(e),y=p.props,N=e.getMode();return{mode:N==="horizontal"?"vertical":N,visible:e.getVisible(),level:y.level+1,inlineIndent:y.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:y.selectedKeys,eventKey:"".concat(y.eventKey,"-menu-"),openKeys:y.openKeys,motion:y.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:y.subMenuOpenDelay,parentMenu:Object(b.a)(e),subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,triggerSubMenuAction:y.triggerSubMenuAction,builtinPlacements:y.builtinPlacements,defaultActiveFirst:y.store.getState().defaultActiveFirst[Je(y.eventKey)],multiple:y.multiple,prefixCls:y.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:y.itemIcon,expandIcon:y.expandIcon,direction:y.direction}},e.getMotion=function(p,y){var N=Object(b.a)(e),z=N.haveRendered,B=e.props,te=B.motion,je=B.rootPrefixCls,ze=Object(S.a)(Object(S.a)({},te),{},{leavedClassName:"".concat(je,"-hidden"),removeOnLeave:!1,motionAppear:z||!y||p!=="inline"});return ze};var n=l.store,t=l.eventKey,i=n.getState(),c=i.defaultActiveFirst;e.isRootMenu=!1;var h=!1;return c&&(h=c[t]),bn(n,t,h),e.state={mode:l.mode,isOpen:l.isOpen},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,c=n.manualRef,h=n.isOpen,p=function(){e.setState({mode:t,isOpen:h})},y=h!==this.state.isOpen,N=t!==this.state.mode;if((N||y)&&(Ye.a.cancel(this.updateStateRaf),N?this.updateStateRaf=Object(Ye.a)(p):p()),c&&c(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!h)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ye.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return o.createElement(ea,Object(w.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,c=n.forceSubMenuRender,h=n.direction,p=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||c,!this.haveOpened)return o.createElement("div",null);var y=ae()("".concat(n.prefixCls,"-sub"),Object(T.a)({},"".concat(n.prefixCls,"-rtl"),h==="rtl"));return this.isInlineMode()?o.createElement(an,Object(w.a)({visible:n.visible,forceRender:c},p),function(N){var z=N.className,B=N.style,te=ae()(y,z);return e.renderPopupMenu(te,B)}):this.renderPopupMenu(y)}},{key:"render",value:function(){var e,n,t,i=Object(S.a)({},this.props),c=this.getVisible(),h=this.getPrefixCls(),p=this.isInlineMode(),y=this.getMode(),N=ae()(h,"".concat(h,"-").concat(y),(e={},Object(T.a)(e,i.className,!!i.className),Object(T.a)(e,this.getOpenClassName(),c),Object(T.a)(e,this.getActiveClassName(),i.active||c&&!p),Object(T.a)(e,this.getDisabledClassName(),i.disabled),Object(T.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(on+=1,this.internalMenuId="$__$".concat(on,"$Menu")));var z={},B={},te={};i.disabled||(z={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},B={onClick:this.onTitleClick},te={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var je={},ze=i.direction,Ue=ze==="rtl";p&&(Ue?je.paddingRight=i.inlineIndent*i.level:je.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var He=null;y!=="horizontal"&&(He=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(He=o.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var Ke=o.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:je,className:"".concat(h,"-title"),role:"button"},te,B,{"aria-expanded":c},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,He||o.createElement("i",{className:"".concat(h,"-arrow")})),We=this.renderChildren(),lt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(At){return At.parentNode},$e=hn[y],It=i.popupOffset?{offset:i.popupOffset}:{},yt=ae()((t={},Object(T.a)(t,i.popupClassName,i.popupClassName&&!p),Object(T.a)(t,"".concat(h,"-rtl"),Ue),t)),xe=i.disabled,Oe=i.triggerSubMenuAction,Ze=i.subMenuOpenDelay,et=i.forceSubMenuRender,pe=i.subMenuCloseDelay,st=i.builtinPlacements;tt.forEach(function(At){return delete i[At]}),delete i.onClick;var Nt=Ue?Object(S.a)(Object(S.a)({},Na),st):Object(S.a)(Object(S.a)({},ia),st);delete i.direction;var ut=this.getBaseProps(),_t=p?null:this.getMotion(ut.mode,ut.visible);return o.createElement("li",Object(w.a)({},i,z,{className:N,role:"menuitem"}),o.createElement(Ya,{prefixCls:h,popupClassName:ae()("".concat(h,"-popup"),yt),getPopupContainer:lt,builtinPlacements:Nt,popupPlacement:$e,popupVisible:p?!1:c,popupAlign:It,popup:p?null:We,action:xe||p?[]:[Oe],mouseEnterDelay:Ze,mouseLeaveDelay:pe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:et,popupMotion:_t},Ke),p?We:null)}}]),v}(o.Component);sa.defaultProps={onMouseEnter:Y,onMouseLeave:Y,onTitleMouseEnter:Y,onTitleMouseLeave:Y,onTitleClick:Y,manualRef:Y,mode:"vertical",title:""};var Kn=Object(j.b)(function(a,d){var v=a.openKeys,l=a.activeKey,e=a.selectedKeys,n=d.eventKey,t=d.subMenuKey;return{isOpen:v.indexOf(n)>-1,active:l[t]===n,selectedKeys:e}})(sa);Kn.isSubMenu=!0;var Wn=Kn,Da="menuitem-overflowed",Qa=.5,wa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=o.createRef(),l.getMenuItemNodes=function(){var e=l.props.prefixCls,n=l.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(e,n,t){var i=l.props,c=i.overflowedIndicator,h=i.level,p=i.mode,y=i.prefixCls,N=i.theme;if(h!==1||p!=="horizontal")return null;var z=l.props.children[0],B=z.props,te=B.children,je=B.title,ze=B.style,Ue=Object(he.a)(B,["children","title","style"]),Ve=Object(S.a)({},ze),He="".concat(e,"-overflowed-indicator"),Ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(S.a)(Object(S.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(S.a)(Object(S.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),He="".concat(He,"-placeholder"),Ke="".concat(Ke,"-placeholder"));var We=N?"".concat(y,"-").concat(N):"",lt={};return tt.forEach(function($e){Ue[$e]!==void 0&&(lt[$e]=Ue[$e])}),o.createElement(Wn,Object(w.a)({title:c,className:"".concat(y,"-overflowed-submenu"),popupClassName:We},lt,{key:He,eventKey:Ke,disabled:!1,style:Ve}),n)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];Me(t,"display","inline-block");var i=l.getMenuItemNodes(),c=i.filter(function(h){return h.className.split(" ").indexOf(Da)>=0});c.forEach(function(h){Me(h,"display","inline-block")}),l.menuItemSizes=i.map(function(h){return dt(h,!0)}),c.forEach(function(h){Me(h,"display","none")}),l.overflowedIndicatorWidth=dt(e.children[e.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(h,p){return h+p},0),l.handleResize(),Me(t,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=dt(e);l.overflowedItems=[];var t=0,i;l.originalTotalWidth>n+Qa&&(i=-1,l.menuItemSizes.forEach(function(c){t+=c,t+l.overflowedIndicatorWidth<=n&&(i+=1)})),l.setState({lastVisibleIndex:i})},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new ge.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,c,h){var p=c;if(n.props.mode==="horizontal"){var y=n.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(h>t&&(p=o.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),h===t+1&&(n.overflowedItems=e.slice(t+1).map(function(z){return o.cloneElement(z,{key:z.props.eventKey,mode:"vertical-left"})}),y=n.getOverflowedSubMenuItem(c.props.eventKey,n.overflowedItems)));var N=[].concat(Object(G.a)(i),[y,p]);return h===e.length-1&&N.push(n.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),N}return[].concat(Object(G.a)(i),[p])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,c=e.mode,h=e.level,p=e.tag,y=e.children,N=e.theme,z=Object(he.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),B=p;return o.createElement(B,Object(w.a)({ref:this.childRef},z),this.renderChildren(y))}}]),v}(o.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(d){return!!d.props.disabled}):!0}function Tn(a,d,v){var l=a.getState();a.setState({activeKey:Object(S.a)(Object(S.a)({},l.activeKey),{},Object(T.a)({},d,v))})}function _n(a){return a.eventKey||"0-menu-"}function qn(a,d){var v=d,l=a.children,e=a.eventKey;if(v){var n;if(bt(l,function(t,i){t&&t.props&&!t.props.disabled&&v===be(t,e,i)&&(n=!0)}),n)return v}return v=null,a.defaultActiveFirst&&bt(l,function(t,i){!v&&t&&!t.props.disabled&&(v=be(t,e,i))}),v}function Aa(a){if(!a)return;var d=this.instanceArray.indexOf(a);d!==-1?this.instanceArray[d]=a:this.instanceArray.push(a)}var La=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;return Object(k.a)(this,v),e=d.call(this,l),e.onKeyDown=function(n,t){var i=n.keyCode,c;if(e.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(c=p.onKeyDown(n))}),c)return 1;var h=null;return(i===g.a.UP||i===g.a.DOWN)&&(h=e.step(i===g.a.UP?-1:1)),h?(n.preventDefault(),Tn(e.props.store,_n(e.props),h.props.eventKey),typeof t=="function"&&t(h),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Tn(e.props.store,_n(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[_n(e.props)],c=t.length;if(!c)return null;n<0&&(t=t.concat().reverse());var h=-1;if(t.every(function(z,B){return z&&z.props.eventKey===i?(h=B,!1):!0}),!e.props.defaultActiveFirst&&h!==-1&&Zn(t.slice(h,c-1)))return;var p=(h+1)%c,y=p;do{var N=t[y];if(!N||N.props.disabled)y=(y+1)%c;else return N}while(y!==p);return null},e.renderCommonMenuItem=function(n,t,i){var c=e.props.store.getState(),h=Object(b.a)(e),p=h.props,y=be(n,p.eventKey,t),N=n.props;if(!N||typeof n.type=="string")return n;var z=y===c.activeKey,B=Object(S.a)(Object(S.a)({mode:N.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:p.prefixCls,index:t,parentMenu:p.parentMenu,manualRef:N.disabled?void 0:Object(A.a)(n.ref,Aa.bind(Object(b.a)(e))),eventKey:y,active:!N.disabled&&z,multiple:p.multiple,onClick:function(je){(N.onClick||Y)(je),e.onClick(je)},onItemHover:e.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:N.itemIcon||e.props.itemIcon,expandIcon:N.expandIcon||e.props.expandIcon},i),{},{direction:p.direction});return(p.mode==="inline"||Re())&&(B.triggerSubMenuAction="click"),o.cloneElement(n,Object(S.a)(Object(S.a)({},B),{},{key:y||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var c=e.props.store.getState(),h={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,h)},l.store.setState({activeKey:Object(S.a)(Object(S.a)({},l.store.getState().activeKey),{},Object(T.a)({},l.eventKey,qn(l,l.activeKey)))}),e.instanceArray=[],e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!L()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[_n(n)],i=qn(n,t);if(i!==t)Tn(n.store,_n(n),i);else if("activeKey"in e){var c=qn(e,e.activeKey);i!==c&&Tn(n.store,_n(n),i)}}},{key:"render",value:function(){var e=this,n=Object(w.a)({},this.props);this.instanceArray=[];var t=ae()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var c=n.prefixCls,h=n.eventKey,p=n.visible,y=n.level,N=n.mode,z=n.overflowedIndicator,B=n.theme;return tt.forEach(function(te){return delete n[te]}),delete n.onClick,o.createElement(ua,Object(w.a)({},n,{prefixCls:c,mode:N,tag:"ul",level:y,theme:B,visible:p,overflowedIndicator:z},i),Object(Q.a)(n.children).map(function(te,je){return e.renderMenuItem(te,je,h||"0-menu-")}))}}]),v}(o.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Y};var Ua=Object(j.b)()(La),ea=Ua,Nn=r("Kwbf");function ca(a,d,v){var l=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,c=a.openTransitionName,h=d.switchingModeFromInline;if(e)return e;if(Object(ie.a)(i)==="object"&&i)Object(Nn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(l,"-open-").concat(i)};if(c)return{motionName:c};var p=t[v];return p||(h?null:t.other)}var ka=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onSelect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState(),y=p.selectedKeys,N=i.key;h.multiple?y=y.concat([N]):y=[N],"selectedKeys"in h||e.store.setState({selectedKeys:y}),h.onSelect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:y}))}},e.onClick=function(i){var c=e.getRealMenuMode(),h=Object(b.a)(e),p=h.store,y=h.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(p.setState({openKeys:[]}),y([])),e.props.onClick(i)},e.onKeyDown=function(i,c){e.innerMenu.getWrappedInstance().onKeyDown(i,c)},e.onOpenChange=function(i){var c=Object(b.a)(e),h=c.props,p=e.store.getState().openKeys.concat(),y=!1,N=function(B){var te=!1;if(B.open)te=p.indexOf(B.key)===-1,te&&p.push(B.key);else{var je=p.indexOf(B.key);te=je!==-1,te&&p.splice(je,1)}y=y||te};Array.isArray(i)?i.forEach(N):N(i),y&&("openKeys"in e.props||e.store.setState({openKeys:p}),h.onOpenChange(p))},e.onDeselect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState().selectedKeys.concat(),y=i.key,N=p.indexOf(y);N!==-1&&p.splice(N,1),"selectedKeys"in h||e.store.setState({selectedKeys:p}),h.onDeselect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:p}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(i)},e.onTransitionEnd=function(i){var c=i.propertyName==="width"&&i.target===i.currentTarget,h=i.target.className,p=Object.prototype.toString.call(h)==="[object SVGAnimatedString]"?h.animVal:h,y=i.propertyName==="font-size"&&p.indexOf("anticon")>=0;(c||y)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=l.defaultSelectedKeys,t=l.defaultOpenKeys;return"selectedKeys"in l&&(n=l.selectedKeys||[]),"openKeys"in l&&(t=l.openKeys||[]),e.store=Object(j.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(l,l.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:e.store},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,c=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(S.a)({},Object(R.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(S.a)(Object(S.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,o.createElement(j.a,{store:this.store},o.createElement(ea,Object(w.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,c=i.getState(),h={},p={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in e?h.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=c.openKeys,h.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(h.openKeys=n.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(h).length&&i.setState(h),p}}]),v}(o.Component);ka.defaultProps={selectable:!0,onClick:Y,onSelect:Y,onOpenChange:Y,onDeselect:Y,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Dn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(l.onClick(e),!0):void 0},l.onMouseLeave=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseLeave;i({key:t,hover:!1}),c({key:t,domEvent:e})},l.onMouseEnter=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseEnter;i({key:t,hover:!0}),c({key:t,domEvent:e})},l.onClick=function(e){var n=l.props,t=n.eventKey,i=n.multiple,c=n.onClick,h=n.onSelect,p=n.onDeselect,y=n.isSelected,N={key:t,keyPath:[t],item:Object(b.a)(l),domEvent:e};c(N),i?y?p(N):h(N):y||h(N)},l.saveNode=function(e){l.node=e},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,n=Object(S.a)({},this.props),t=ae()(this.getPrefixCls(),n.className,(e={},Object(T.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(T.a)(e,this.getSelectedClassName(),n.isSelected),Object(T.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(S.a)(Object(S.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(S.a)(Object(S.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var c={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},h=Object(S.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?h.paddingRight=n.inlineIndent*n.level:h.paddingLeft=n.inlineIndent*n.level),tt.forEach(function(y){return delete n[y]}),delete n.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(w.a)({},Object(R.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,c,{style:h,ref:this.saveNode}),n.children,p)}}]),v}(o.Component);Dn.isMenuItem=!0,Dn.defaultProps={onSelect:Y,onMouseEnter:Y,onMouseLeave:Y,manualRef:Y};var da=Object(j.b)(function(a,d){var v=a.activeKey,l=a.selectedKeys,e=d.eventKey,n=d.subMenuKey;return{active:v[n]===e,isSelected:Array.isArray(l)?l.indexOf(e)!==-1:l===e}})(Dn),fa=da,ma=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.renderInnerMenuItem=function(e){var n=l.props,t=n.renderMenuItem,i=n.index;return t(e,i,l.props.subMenuKey)},l}return Object(E.a)(v,[{key:"render",value:function(){var e=Object(w.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,c="".concat(i,"-item-group-title"),h="".concat(i,"-item-group-list"),p=e.title,y=e.children;return tt.forEach(function(N){return delete e[N]}),delete e.direction,o.createElement("li",Object(w.a)({},e,{onClick:function(z){return z.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),o.createElement("div",{className:c,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:h},o.Children.map(y,this.renderInnerMenuItem)))}}]),v}(o.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(d){var v=d.className,l=d.rootPrefixCls,e=d.style;return o.createElement("li",{className:"".concat(v," ").concat(l,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,va=r("eDIo");function eo(a,d){var v=a.prefixCls,l=a.editable,e=a.locale,n=a.style;return!l||l.showAdd===!1?null:o.createElement("button",{ref:d,type:"button",className:"".concat(v,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){l.onEdit("add",{event:i})}},l.addIcon||"+")}var ta=o.forwardRef(eo);function to(a,d){var v=a.prefixCls,l=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,c=i===void 0?"More":i,h=a.moreTransitionName,p=a.style,y=a.className,N=a.editable,z=a.tabBarGutter,B=a.rtl,te=a.onTabClick,je=Object(o.useState)(!1),ze=Object(M.a)(je,2),Ue=ze[0],Ve=ze[1],He=Object(o.useState)(null),Ke=Object(M.a)(He,2),We=Ke[0],lt=Ke[1],$e="".concat(l,"-more-popup"),It="".concat(v,"-dropdown"),yt=We!==null?"".concat($e,"-").concat(We):null,xe=n==null?void 0:n.dropdownAriaLabel,Oe=o.createElement(Ka,{onClick:function(_t){var At=_t.key,Gt=_t.domEvent;te(At,Gt),Ve(!1)},id:$e,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[We],"aria-label":xe!==void 0?xe:"expanded dropdown"},e.map(function(ut){return o.createElement(fa,{key:ut.key,id:"".concat($e,"-").concat(ut.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(ut.key),disabled:ut.disabled},ut.tab)}));function Ze(ut){for(var _t=e.filter(function(ln){return!ln.disabled}),At=_t.findIndex(function(ln){return ln.key===We})||0,Gt=_t.length,rn=0;rnst?(et=Oe,$e.current="x"):(et=Ze,$e.current="y");var Nt=Date.now();Nt-We.current>100&&(lt.current=!1),(d(-et,-et)||lt.current)&&(xe.preventDefault(),lt.current=!0),We.current=Nt}var yt=Object(o.useRef)(null);yt.current={onTouchStart:Ve,onTouchMove:He,onTouchEnd:Ke,onWheel:It},o.useEffect(function(){function xe(pe){yt.current.onTouchStart(pe)}function Oe(pe){yt.current.onTouchMove(pe)}function Ze(pe){yt.current.onTouchEnd(pe)}function et(pe){yt.current.onWheel(pe)}return document.addEventListener("touchmove",Oe,{passive:!1}),document.addEventListener("touchend",Ze,{passive:!1}),a.current.addEventListener("touchstart",xe,{passive:!1}),a.current.addEventListener("wheel",et),function(){document.removeEventListener("touchmove",Oe),document.removeEventListener("touchend",Ze)}},[])}function ba(){var a=Object(o.useRef)(new Map);function d(l){return a.current.has(l)||a.current.set(l,o.createRef()),a.current.get(l)}function v(l){a.current.delete(l)}return[d,v]}function Ba(a,d){var v=o.useRef(a),l=o.useState({}),e=Object(M.a)(l,2),n=e[1];function t(i){var c=typeof i=="function"?i(v.current):i;c!==v.current&&d(c,v.current),v.current=c,n({})}return[v.current,t]}var Fa=function(d){var v=d.position,l=d.prefixCls,e=d.extra;if(!e)return null;var n,t=e;return v==="right"&&(n=t.right||!t.left&&t||null),v==="left"&&(n=t.left||null),n?o.createElement("div",{className:"".concat(l,"-extra-content")},n):null};function Bo(a,d){var v,l=o.useContext(ha),e=l.prefixCls,n=l.tabs,t=a.className,i=a.style,c=a.id,h=a.animated,p=a.activeKey,y=a.rtl,N=a.extra,z=a.editable,B=a.locale,te=a.tabPosition,je=a.tabBarGutter,ze=a.children,Ue=a.onTabClick,Ve=a.onTabScroll,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useRef)(),lt=Object(o.useRef)(),$e=ba(),It=Object(M.a)($e,2),yt=It[0],xe=It[1],Oe=te==="top"||te==="bottom",Ze=Ba(0,function(Ct,qe){Oe&&Ve&&Ve({direction:Ct>qe?"left":"right"})}),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Nt=Ba(0,function(Ct,qe){!Oe&&Ve&&Ve({direction:Ct>qe?"top":"bottom"})}),ut=Object(M.a)(Nt,2),_t=ut[0],At=ut[1],Gt=Object(o.useState)(0),rn=Object(M.a)(Gt,2),Kt=rn[0],ln=rn[1],Cn=Object(o.useState)(0),un=Object(M.a)(Cn,2),cn=un[0],Ft=un[1],en=Object(o.useState)(0),Jt=Object(M.a)(en,2),$t=Jt[0],wn=Jt[1],An=Object(o.useState)(0),Fn=Object(M.a)(An,2),Tt=Fn[0],xn=Fn[1],zn=Object(o.useState)(null),Dt=Object(M.a)(zn,2),vt=Dt[0],Yt=Dt[1],$o=Object(o.useState)(null),bo=Object(M.a)($o,2),na=bo[0],Xo=bo[1],Go=Object(o.useState)(0),Eo=Object(M.a)(Go,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(o.useState)(0),go=Object(M.a)(Qo,2),Zo=go[0],qo=go[1],er=_(new Map),yo=Object(M.a)(er,2),tr=yo[0],nr=yo[1],za=X(n,tr,Kt),Co="".concat(e,"-nav-operations-hidden"),Ea=0,ga=0;Oe?y?(Ea=0,ga=Math.max(0,Kt-vt)):(Ea=Math.min(0,vt-Kt),ga=0):(Ea=Math.min(0,na-cn),ga=0);function ao(Ct){return Ctga?[ga,!1]:[Ct,!0]}var Oo=Object(o.useRef)(),ar=Object(o.useState)(),_o=Object(M.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(He,function(Ct,qe){var Xt=!1;function dn(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(M.a)(xa,2),co=aa[0],fo=aa[1];return Xt=fo,co})}if(Oe){if(vt>=Kt)return Xt;dn(st,Ct)}else{if(na>=cn)return Xt;dn(At,qe)}return io(),ro(),Xt}),Object(o.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,qe=za.get(Ct);if(!qe)return;if(Oe){var Xt=pe;y?qe.rightpe+vt&&(Xt=qe.right+qe.width-vt):qe.left<-pe?Xt=-qe.left:qe.left+qe.width>-pe+vt&&(Xt=-(qe.left+qe.width-vt)),At(0),st(ao(Xt)[0])}else{var dn=_t;qe.top<-_t?dn=-qe.top:qe.top+qe.height>-_t+na&&(dn=-(qe.top+qe.height-na)),st(0),At(ao(dn)[0])}}var or=se(za,{width:vt,height:na,left:pe,top:_t},{width:$t,height:Tt},{width:Jo,height:Zo},Object(S.a)(Object(S.a)({},a),{},{tabs:n})),Mo=Object(M.a)(or,2),rr=Mo[0],ir=Mo[1],lr=n.map(function(Ct){var qe=Ct.key;return o.createElement(U,{id:c,prefixCls:e,key:qe,rtl:y,tab:Ct,closable:Ct.closable,editable:z,active:qe===p,tabPosition:te,tabBarGutter:je,renderWrapper:ze,removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:yt(qe),onClick:function(dn){Ue(qe,dn)},onRemove:function(){xe(qe)},onFocus:function(){jo(qe),ro(),y||(He.current.scrollLeft=0),He.current.scrollTop=0}})}),lo=q(function(){var Ct,qe,Xt,dn,Ca,Oa,_a,xa,aa,co=((Ct=He.current)===null||Ct===void 0?void 0:Ct.offsetWidth)||0,fo=((qe=He.current)===null||qe===void 0?void 0:qe.offsetHeight)||0,Ao=((Xt=lt.current)===null||Xt===void 0?void 0:Xt.offsetWidth)||0,Lo=((dn=lt.current)===null||dn===void 0?void 0:dn.offsetHeight)||0,mr=((Ca=We.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=We.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),Xo(fo),Yo(Ao),qo(Lo);var Uo=(((_a=Ke.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-Ao,ko=(((xa=Ke.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;ln(Uo),Ft(ko);var Io=(aa=We.current)===null||aa===void 0?void 0:aa.className.includes(Co);wn(Uo-(Io?0:mr)),xn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(vr){var Wo=vr.key,ja=yt(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),sr=n.slice(0,rr),ur=n.slice(ir+1),Ro=[].concat(Object(G.a)(sr),Object(G.a)(ur)),cr=Object(o.useState)(),So=Object(M.a)(cr,2),dr=So[0],fr=So[1],Ln=za.get(p),Po=Object(o.useRef)();function To(){me.a.cancel(Po.current)}Object(o.useEffect)(function(){var Ct={};return Ln&&(Oe?(y?Ct.right=Ln.right:Ct.left=Ln.left,Ct.width=Ln.width):(Ct.top=Ln.top,Ct.height=Ln.height)),To(),Po.current=me()(function(){fr(Ct)}),To},[Ln,Oe,y]),Object(o.useEffect)(function(){jo()},[p,Ln,za,Oe]),Object(o.useEffect)(function(){lo()},[y,je,p,n.map(function(Ct){return Ct.key}).join("_")]);var No=!!Ro.length,ya="".concat(e,"-nav-wrap"),so,uo,Do,wo;return Oe?y?(uo=pe>0,so=pe+vt1)Object(G.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(X.length===0)return Object(G.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var F=X[0];if(C.isValidElement(F)&&Object(J.c)(F)){var se=F.ref;X[0]=C.cloneElement(F,{ref:Object(J.a)(se,this.setChildNode)})}return X.length===1?X[0]:X.map(function(w,k){return!C.isValidElement(w)||"key"in w&&w.key!==null?w:C.cloneElement(w,{key:"".concat(re,"-").concat(k)})})}}]),u}(C.Component);q.displayName="ResizeObserver",ne.a=q},wCXF:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return Pt});var T=r("rePB"),M=r("VTBJ"),he=r("KQm4"),S=r("U8pU"),o=r("ODXe"),C=r("q1tI"),ae=r("TSYQ"),Q=r.n(ae),D=r("Gytx"),G=r.n(D),J=r("Kwbf"),me=r("t23M"),re=r("qx4F"),q=r("6eGT"),_=r("IBYe"),g=r("Ff2n"),u=r("c+Xe"),U=r("fyJ8"),H=r("biw7");function X(O,I,$,m,V){var x=$[O]||{},P=$[I]||{},K,W;x.fixed==="left"?K=m.left[O]:P.fixed==="right"&&(W=m.right[I]);var fe=!1,ue=!1,Ee=!1,Te=!1,Z=$[I+1],ke=$[O-1];if(V==="rtl"){if(K!==void 0){var pt=ke&&ke.fixed==="left";Te=!pt}else if(W!==void 0){var Qe=Z&&Z.fixed==="right";Ee=!Qe}}else if(K!==void 0){var nt=Z&&Z.fixed==="left";fe=!nt}else if(W!==void 0){var Ae=ke&&ke.fixed==="right";ue=!Ae}return{fixLeft:K,fixRight:W,lastFixLeft:fe,firstFixRight:ue,lastFixRight:Ee,firstFixLeft:Te,isSticky:m.isSticky}}var F=r("sR1s");function se(O){var I=O.cells,$=O.stickyOffsets,m=O.flattenColumns,V=O.rowComponent,x=O.cellComponent,P=O.onHeaderRow,K=O.index,W=C.useContext(H.a),fe=W.prefixCls,ue=W.direction,Ee;P&&(Ee=P(I.map(function(Z){return Z.column}),K));var Te=Object(F.a)(I.map(function(Z){return Z.column}));return C.createElement(V,Object.assign({},Ee),I.map(function(Z,ke){var pt=Z.column,Qe=X(Z.colStart,Z.colEnd,m,$,ue),nt;return pt&&pt.onHeaderCell&&(nt=Z.column.onHeaderCell(pt)),C.createElement(U.a,Object.assign({},Z,{ellipsis:pt.ellipsis,align:pt.align,component:x,prefixCls:fe,key:Te[ke]},Qe,{additionalProps:nt,rowType:"header"}))}))}se.displayName="HeaderRow";var w=se;function k(O){var I=[];function $(P,K){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;I[W]=I[W]||[];var fe=K,ue=P.filter(Boolean).map(function(Ee){var Te={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:fe},Z=1,ke=Ee.children;return ke&&ke.length>0&&(Z=$(ke,fe,W+1).reduce(function(pt,Qe){return pt+Qe},0),Te.hasSubColumns=!0),"colSpan"in Ee&&(Z=Ee.colSpan),"rowSpan"in Ee&&(Te.rowSpan=Ee.rowSpan),Te.colSpan=Z,Te.colEnd=Te.colStart+Z-1,I[W].push(Te),fe+=Z,Z});return ue}$(O,0);for(var m=I.length,V=function(K){I[K].forEach(function(W){!("rowSpan"in W)&&!W.hasSubColumns&&(W.rowSpan=m-K)})},x=0;x=0;K-=1){var W=I[K],fe=$&&$[K],ue=fe&&fe[f.a];(W||ue||P)&&(V.unshift(C.createElement("col",Object.assign({key:K,style:{width:W,minWidth:W}},ue))),P=!0)}return C.createElement("colgroup",null,V)}var j=s;function R(O,I){return Object(C.useMemo)(function(){for(var $=[],m=0;m1?Qt-1:0),pn=1;pn=Ee&&(Fe=Ee-Te),P({scrollLeft:Fe/Ee*(ue+2)}),Ae.current.x=ce.pageX},Ot=function(){var ce=Object(tt.b)(x.current).top,Ie=ce+x.current.offsetHeight,gt=document.documentElement.scrollTop+window.innerHeight;Ie-Object(re.a)()<=gt||ce>=gt-K?nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!0})}):nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!1})})},ft=function(ce){nt(function(Ie){return Object(M.a)(Object(M.a)({},Ie),{},{scrollLeft:ce/ue*Ee||0})})};return C.useImperativeHandle($,function(){return{setScrollLeft:ft}}),C.useEffect(function(){var Le=Object(xt.a)(document.body,"mouseup",Ht,!1),ce=Object(xt.a)(document.body,"mousemove",Bt,!1);return Ot(),function(){Le.remove(),ce.remove()}},[Te,it]),C.useEffect(function(){var Le=Object(xt.a)(window,"scroll",Ot,!1),ce=Object(xt.a)(window,"resize",Ot,!1);return function(){Le.remove(),ce.remove()}},[]),C.useEffect(function(){Qe.isHiddenScrollBar||nt(function(Le){var ce,Ie;return Object(M.a)(Object(M.a)({},Le),{},{scrollLeft:x.current.scrollLeft/((ce=x.current)===null||ce===void 0?void 0:ce.scrollWidth)*((Ie=x.current)===null||Ie===void 0?void 0:Ie.clientWidth)})})},[Qe.isHiddenScrollBar]),ue<=Ee||!Te||Qe.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(re.a)(),width:Ee,bottom:K},className:"".concat(fe,"-sticky-scroll")},C.createElement("div",{onMouseDown:at,ref:Z,className:Q()("".concat(fe,"-sticky-scroll-bar"),Object(T.a)({},"".concat(fe,"-sticky-scroll-bar-active"),it)),style:{width:"".concat(Te,"px"),transform:"translate3d(".concat(Qe.scrollLeft,"px, 0, 0)")}}))},Me=C.forwardRef(dt);function Re(O,I){return C.useMemo(function(){var $=!!O;return{isSticky:$,stickyClassName:$?"".concat(I,"-sticky-header"):"",offsetHeader:Object(S.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(S.a)(O)==="object"&&O.offsetScroll||0}},[O,I])}var ge=[],Mt={},Pt="rc-table-internal-hook",Ye=C.memo(function(O){var I=O.children;return I},function(O,I){return G()(O.props,I.props)?O.pingLeft!==I.pingLeft||O.pingRight!==I.pingRight:!1});function Et(O){var I,$=O.prefixCls,m=O.className,V=O.rowClassName,x=O.style,P=O.data,K=O.rowKey,W=O.scroll,fe=O.tableLayout,ue=O.direction,Ee=O.title,Te=O.footer,Z=O.summary,ke=O.id,pt=O.showHeader,Qe=O.components,nt=O.emptyText,Ae=O.onRow,zt=O.onHeaderRow,Rt=O.internalHooks,it=O.transformColumns,jt=O.internalRefs,Ht=O.sticky,at=P||ge,Bt=!!at.length,Ot=C.useState(0),ft=Object(o.a)(Ot,2),Le=ft[0],ce=ft[1];C.useEffect(function(){ce(Object(re.a)())});var Ie=C.useMemo(function(){return Object(F.c)(Qe,{})},[Qe]),gt=C.useCallback(function(ot,rt){return Object(F.b)(Ie,ot)||rt},[Ie]),Lt=C.useMemo(function(){return typeof K=="function"?K:function(ot){var rt=ot&&ot[K];return rt}},[K]),Fe=Object(f.c)(O),fn=Fe.expandIcon,mn=Fe.expandedRowKeys,En=Fe.defaultExpandedRowKeys,tn=Fe.defaultExpandAllRows,St=Fe.expandedRowRender,jn=Fe.onExpand,Mn=Fe.onExpandedRowsChange,Hn=Fe.expandRowByClick,nn=Fe.rowExpandable,Un=Fe.expandIconColumnIndex,On=Fe.expandedRowClassName,kn=Fe.childrenColumnName,Rn=Fe.indentSize,gn=fn||Je,Sn=kn||"children",Vn=C.useMemo(function(){return St?"row":O.expandable&&Rt===Pt&&O.expandable.__PARENT_RENDER_ICON__||at.some(function(ot){return ot&&Object(S.a)(ot)==="object"&&ot[Sn]})?"nest":!1},[!!St,at]),Pn=C.useState(function(){return En||(tn?bt(at,Lt,Sn):[])}),Vt=Object(o.a)(Pn,2),qt=Vt[0],sn=Vt[1],Qt=C.useMemo(function(){return new Set(mn||qt||[])},[mn,qt]),an=C.useCallback(function(ot){var rt=Lt(ot,at.indexOf(ot)),kt,Zt=Qt.has(rt);Zt?(Qt.delete(rt),kt=Object(he.a)(Qt)):kt=[].concat(Object(he.a)(Qt),[rt]),sn(kt),jn&&jn(!Zt,ot),Mn&&Mn(kt)},[Lt,Qt,at,jn,Mn]),pn=C.useState(0),$n=Object(o.a)(pn,2),In=$n[0],Xn=$n[1],Ma=Object(Ce.b)(Object(M.a)(Object(M.a)(Object(M.a)({},O),Fe),{},{expandable:!!St,expandedKeys:Qt,getRowKey:Lt,onTriggerExpand:an,expandIcon:gn,expandIconColumnIndex:Un,direction:ue}),Rt===Pt?it:null),Ra=Object(o.a)(Ma,2),Gn=Ra[0],Ut=Ra[1],Jn=C.useMemo(function(){return{columns:Gn,flattenColumns:Ut}},[Gn,Ut]),Yn=C.useRef(),Sa=C.useRef(),vn=C.useRef(),Ha=C.useState(!1),Pa=Object(o.a)(Ha,2),oa=Pa[0],Va=Pa[1],$a=C.useState(!1),ra=Object(o.a)($a,2),Qn=ra[0],Xa=ra[1],Ga=Xe(new Map),Ta=Object(o.a)(Ga,2),Ja=Ta[0],Ya=Ta[1],yn=Object(F.a)(Ut),ia=yn.map(function(ot){return Ja.get(ot)}),Na=C.useMemo(function(){return ia},[ia.join("_")]),la=wt(Na,Ut.length,ue),on=W&&Object(F.d)(W.y),hn=W&&Object(F.d)(W.x),bn=hn&&Ut.some(function(ot){var rt=ot.fixed;return rt}),sa=C.useRef(),Kn=Re(Ht,$),Wn=Kn.isSticky,Da=Kn.offsetHeader,Qa=Kn.offsetScroll,wa=Kn.stickyClassName,ua,Zn,Tn;on&&(Zn={overflowY:"scroll",maxHeight:W.y}),hn&&(ua={overflowX:"auto"},on||(Zn={overflowY:"hidden"}),Tn={width:W.x===!0?"auto":W.x,minWidth:"100%"});var _n=C.useCallback(function(ot,rt){Ya(function(kt){var Zt=new Map(kt);return Zt.set(ot,rt),Zt})},[]),qn=le(null),Aa=Object(o.a)(qn,2),La=Aa[0],Ua=Aa[1];function ea(ot,rt){if(!rt)return;typeof rt=="function"?rt(ot):rt.scrollLeft!==ot&&(rt.scrollLeft=ot)}var Nn=function(rt){var kt=rt.currentTarget,Zt=rt.scrollLeft,Bn=typeof Zt=="number"?Zt:kt.scrollLeft,Wa=kt||Mt;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Sa.current),ea(Bn,vn.current),ea(Bn,(ba=sa.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(kt){var Ba=kt.scrollWidth,Fa=kt.clientWidth;Va(Bn>0),Xa(Bn0?[].concat(Object(M.a)(g),Object(M.a)(J(X).map(function(F){return Object(he.a)({fixed:H},F)}))):[].concat(Object(M.a)(g),[Object(he.a)(Object(he.a)({},u),{},{fixed:H})])},[])}function me(_){for(var g=!0,u=0;u<_.length;u+=1){var U=_[u];if(g&&U.fixed!=="left")g=!1;else if(!g&&U.fixed==="left"){Object(ae.a)(!1,"Index ".concat(u-1," of `columns` missing `fixed='left'` prop."));break}}for(var H=!0,X=_.length-1;X>=0;X-=1){var F=_[X];if(H&&F.fixed!=="right")H=!1;else if(!H&&F.fixed==="right"){Object(ae.a)(!1,"Index ".concat(X+1," of `columns` missing `fixed='right'` prop."));break}}}function re(_){return _.map(function(g){var u=g.fixed,U=Object(S.a)(g,["fixed"]),H=u;return u==="left"?H="right":u==="right"&&(H="left"),Object(he.a)({fixed:H},U)})}function q(_,g){var u=_.prefixCls,U=_.columns,H=_.children,X=_.expandable,F=_.expandedKeys,se=_.getRowKey,w=_.onTriggerExpand,k=_.expandIcon,E=_.rowExpandable,b=_.expandIconColumnIndex,f=_.direction,s=_.expandRowByClick,j=o.useMemo(function(){return U||G(H)},[U,H]),R=o.useMemo(function(){if(X){var L,ie=b||0,de=j[ie],ve=(L={},Object(T.a)(L,D.a,{className:"".concat(u,"-expand-icon-col")}),Object(T.a)(L,"title",""),Object(T.a)(L,"fixed",de?de.fixed:null),Object(T.a)(L,"className","".concat(u,"-row-expand-icon-cell")),Object(T.a)(L,"render",function(oe,ye,Se){var Pe=se(ye,Se),De=F.has(Pe),Ge=E?E(ye):!0,Ce=k({prefixCls:u,expanded:De,expandable:Ge,record:ye,onExpand:w});return s?o.createElement("span",{onClick:function(ct){return ct.stopPropagation()}},Ce):Ce}),L),Be=j.slice();return ie>=0&&Be.splice(ie,0,ve),Be}return j},[X,j,se,F,k,f]),A=o.useMemo(function(){var L=R;return g&&(L=g(L)),L.length||(L=[{render:function(){return null}}]),L},[g,R,f]),ee=o.useMemo(function(){return f==="rtl"?re(J(A)):J(A)},[A,f]);return[A,ee]}ne.b=q},"y0+3":function(mt,ne,r){"use strict";r.d(ne,"a",function(){return J}),r.d(ne,"b",function(){return re});var T=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},he={cssFloat:1,styleFloat:1,float:1};function S(q){return q.nodeType===1?q.ownerDocument.defaultView.getComputedStyle(q,null):{}}function o(q,_,g){if(_=_.toLowerCase(),g==="auto"){if(_==="height")return q.offsetHeight;if(_==="width")return q.offsetWidth}return _ in M||(M[_]=T.test(_)),M[_]?parseFloat(g)||0:g}function C(q,_){var g=arguments.length,u=S(q);return _=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,g===1?u:o(q,_,u[_]||q.style[_])}function ae(q,_,g){var u=arguments.length;if(_=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,u===3)return typeof g=="number"&&T.test(_)&&(g="".concat(g,"px")),q.style[_]=g,g;for(var U in _)_.hasOwnProperty(U)&&ae(q,U,_[U]);return S(q)}function Q(q){return q===document.body?document.documentElement.clientWidth:q.offsetWidth}function D(q){return q===document.body?window.innerHeight||document.documentElement.clientHeight:q.offsetHeight}function G(){var q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:q,height:_}}function J(){var q=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:q,height:_}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function re(q){var _=q.getBoundingClientRect(),g=document.documentElement;return{left:_.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Statistics__StudentStatistics__index.e53ef587.async.js b/p__Classrooms__Lists__Statistics__StudentStatistics__index.e53ef587.async.js index 164314aa0a..994064e356 100644 --- a/p__Classrooms__Lists__Statistics__StudentStatistics__index.e53ef587.async.js +++ b/p__Classrooms__Lists__Statistics__StudentStatistics__index.e53ef587.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[100,8],{"37Gi":function(Ce,k,t){Ce.exports={flex_box_center:"flex_box_center___3mkn-",flex_space_between:"flex_space_between___2bg1h",flex_box_vertical_center:"flex_box_vertical_center___2_fPo",flex_box_center_end:"flex_box_center_end___2ALIF",flex_box_column:"flex_box_column___2rR-N",containerTitle:"containerTitle___3ahUe",menu:"menu___2NU_4"}},"6+eU":function(Ce,k,t){"use strict";t.d(k,"a",function(){return p});var O=t("wx14"),j=t("rePB"),J=t("VTBJ"),ne=t("1OyB"),P=t("vuIU"),o=t("Ji7U"),Y=t("LK+K"),M=t("q1tI"),c=t.n(M),G=t("TSYQ"),D=t.n(G),F=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=D()(a,"".concat(a,"-").concat(b.page),(n={},Object(j.a)(n,"".concat(a,"-active"),b.active),Object(j.a)(n,b.className,!!b.className),Object(j.a)(n,"".concat(a,"-disabled"),!b.page),n)),i=function(){b.onClick(b.page)},d=function(I){b.onKeyPress(I,b.onClick,b.page)};return c.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:i,onKeyPress:d,tabIndex:"0"},b.itemRender(b.page,"page",c.a.createElement("a",{rel:"nofollow"},b.page)))},z=F,w={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(Y.a)(n);function n(){var a;Object(ne.a)(this,n);for(var e=arguments.length,i=new Array(e),d=0;d=0||u.relatedTarget.className.indexOf("".concat(C,"-next"))>=0))return;a.setState({goInputText:""}),U(a.getValidValue())},a.go=function(u){var I=a.state.goInputText;if(I==="")return;(u.keyCode===w.ENTER||u.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(P.a)(n,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,d=e.current;return!i||isNaN(i)?d:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,d=e.pageSizeOptions;return d.some(function(u){return u.toString()===i.toString()})?d:d.concat([i.toString()]).sort(function(u,I){var f=isNaN(Number(u))?0:Number(u),U=isNaN(Number(I))?0:Number(I);return f-U})}},{key:"render",value:function(){var e=this,i=this.props,d=i.pageSize,u=i.locale,I=i.rootPrefixCls,f=i.changeSize,U=i.quickGo,C=i.goButton,V=i.selectComponentClass,te=i.buildOptionText,Q=i.selectPrefixCls,W=i.disabled,ee=this.state.goInputText,ae="".concat(I,"-options"),ce=V,oe=null,Ee=null,Z=null;if(!f&&!U)return null;var Ne=this.getPageSizeOptions();if(f&&ce){var Oe=Ne.map(function(me,pe){return c.a.createElement(ce.Option,{key:pe,value:me.toString()},(te||e.buildOptionText)(me))});oe=c.a.createElement(ce,{disabled:W,prefixCls:Q,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(pe){return pe.parentNode}},Oe)}return U&&(C&&(Z=typeof C=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:W,className:"".concat(ae,"-quick-jumper-button")},u.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},C)),Ee=c.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},u.jump_to,c.a.createElement("input",{disabled:W,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,Z)),c.a.createElement("li",{className:"".concat(ae)},oe,Ee)}}]),n}(c.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,R=t("N2Kk");function m(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function S(v,b,n){return n}function h(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var $=function(v){Object(o.a)(n,v);var b=Object(Y.a)(n);function n(a){var e;Object(ne.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,U){var C=e.props.prefixCls,V=f||c.a.createElement("button",{type:"button","aria-label":U,className:"".concat(C,"-item-link")});return typeof f=="function"&&(V=c.a.createElement(f,Object(J.a)({},e.props))),V},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,U=f.showQuickJumper,C=f.pageSize,V=f.total;return V<=C?!1:U},e.handleKeyDown=function(f){(f.keyCode===w.ARROW_UP||f.keyCode===w.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var U=e.getValidValue(f),C=e.state.currentInputValue;U!==C&&e.setState({currentInputValue:U}),f.keyCode===w.ENTER?e.handleChange(U):f.keyCode===w.ARROW_UP?e.handleChange(U-1):f.keyCode===w.ARROW_DOWN&&e.handleChange(U+1)},e.changePageSize=function(f){var U=e.state.current,C=h(f,e.state,e.props);U=U>C?C:U,C===0&&(U=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:U,currentInputValue:U})),e.props.onShowSizeChange(U,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(U,f)},e.handleChange=function(f){var U=e.props.disabled,C=f;if(e.isValid(C)&&!U){var V=h(void 0,e.state,e.props);C>V?C=V:C<1&&(C=1),"current"in e.props||e.setState({current:C,currentInputValue:C});var te=e.state.pageSize;return e.props.onChange(C,te),C}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?C-2:0),te=2;te=d?I=d:I=Number(i),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,d=e.total,u=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:d>u}},{key:"renderPrev",value:function(e){var i=this.props,d=i.prevIcon,u=i.itemRender,I=u(e,"prev",this.getItemIcon(d,"prev page")),f=!this.hasPrev();return Object(M.isValidElement)(I)?Object(M.cloneElement)(I,{disabled:f}):I}},{key:"renderNext",value:function(e){var i=this.props,d=i.nextIcon,u=i.itemRender,I=u(e,"next",this.getItemIcon(d,"next page")),f=!this.hasNext();return Object(M.isValidElement)(I)?Object(M.cloneElement)(I,{disabled:f}):I}},{key:"render",value:function(){var e=this,i=this.props,d=i.prefixCls,u=i.className,I=i.style,f=i.disabled,U=i.hideOnSinglePage,C=i.total,V=i.locale,te=i.showQuickJumper,Q=i.showLessItems,W=i.showTitle,ee=i.showTotal,ae=i.simple,ce=i.itemRender,oe=i.showPrevNextJumpers,Ee=i.jumpPrevIcon,Z=i.jumpNextIcon,Ne=i.selectComponentClass,Oe=i.selectPrefixCls,me=i.pageSizeOptions,pe=this.state,re=pe.current,De=pe.pageSize,Le=pe.currentInputValue;if(U===!0&&C<=De)return null;var ue=h(void 0,this.state,this.props),ve=[],Re=null,Ae=null,Ie=null,He=null,Te=null,se=te&&te.goButton,fe=Q?1:2,Xe=re-1>0?re-1:0,Ge=re+1=fe*2&&re!==1+2&&(ve[0]=Object(M.cloneElement)(ve[0],{className:"".concat(d,"-item-after-jump-prev")}),ve.unshift(Re)),ue-re>=fe*2&&re!==ue-2&&(ve[ve.length-1]=Object(M.cloneElement)(ve[ve.length-1],{className:"".concat(d,"-item-before-jump-next")}),ve.push(Ae)),T!==1&&ve.unshift(Ie),B!==ue&&ve.push(He)}var A=null;ee&&(A=c.a.createElement("li",{className:"".concat(d,"-total-text")},ee(C,[C===0?0:(re-1)*De+1,re*De>C?C:re*De])));var E=!this.hasPrev()||!ue,x=!this.hasNext()||!ue;return c.a.createElement("ul",Object(O.a)({className:D()(d,u,Object(j.a)({},"".concat(d,"-disabled"),f)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},Je),A,c.a.createElement("li",{title:W?V.prev_page:null,onClick:this.prev,tabIndex:E?null:0,onKeyPress:this.runIfEnterPrev,className:D()("".concat(d,"-prev"),Object(j.a)({},"".concat(d,"-disabled"),E)),"aria-disabled":E},this.renderPrev(Xe)),ve,c.a.createElement("li",{title:W?V.next_page:null,onClick:this.next,tabIndex:x?null:0,onKeyPress:this.runIfEnterNext,className:D()("".concat(d,"-next"),Object(j.a)({},"".concat(d,"-disabled"),x)),"aria-disabled":x},this.renderNext(Ge)),c.a.createElement(l,{disabled:f,locale:V,rootPrefixCls:d,selectComponentClass:Ne,selectPrefixCls:Oe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:re,pageSize:De,pageSizeOptions:me,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:se}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var d={};if("current"in e&&(d.current=e.current,e.current!==i.current&&(d.currentInputValue=d.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var u=i.current,I=h(e.pageSize,i,e);u=u>I?I:u,"current"in e||(d.current=u,d.currentInputValue=u),d.pageSize=e.pageSize}return d}}]),n}(c.a.Component);$.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:R.a,style:{},itemRender:S,totalBoundaryShowSizeChanger:50};var p=$},"6RRn":function(Ce,k,t){"use strict";var O=t("wCXF"),j=t("n6Qo");t.d(k,"b",function(){return j.a});var J=t("IBYe"),ne=t("6eGT"),P=t("hW8S");t.d(k,"a",function(){return P.a}),k.c=O.b},"6eGT":function(Ce,k,t){"use strict";function O(j){return null}k.a=O},"815F":function(Ce,k,t){"use strict";t.d(k,"e",function(){return Y}),t.d(k,"c",function(){return c}),t.d(k,"d",function(){return G}),t.d(k,"a",function(){return F}),t.d(k,"f",function(){return z}),t.d(k,"b",function(){return w});var O=t("KQm4"),j=t("VTBJ"),J=t("Ff2n"),ne=t("Zm9Q"),P=t("Kwbf"),o=t("OZM5");function Y(s,l){return s!=null?s:l}function M(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function R(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(S){var h=S.key,$=S.children;Object(P.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var p=String(h);Object(P.a)(!l.has(p)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(p)),l.set(p,!0),R($,"".concat(g).concat(p," > "))})}R(s)}function c(s){function l(R){var m=Object(ne.a)(R);return m.map(function(g){if(!Object(o.i)(g))return Object(P.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var S=g.key,h=g.props,$=h.children,p=Object(J.a)(h,["children"]),v=Object(j.a)({key:S},p),b=l($);return b.length&&(v.children=b),v}).filter(function(g){return g})}return l(s)}function G(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(l===!0?[]:l),m=[];function g(S){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return S.map(function($,p){var v=Object(o.h)(h?h.pos:"0",p),b=Y($.key,v),n=Object(j.a)(Object(j.a)({},$),{},{parent:h,pos:v,children:null,data:$,isStart:[].concat(Object(O.a)(h?h.isStart:[]),[p===0]),isEnd:[].concat(Object(O.a)(h?h.isEnd:[]),[p===S.length-1])});return m.push(n),l===!0||R.has(b)?n.children=g($.children||[],n):n.children=[],n})}return g(s),m}function D(s,l,R){var m;R?typeof R=="string"?m=function(h){return h[R]}:typeof R=="function"&&(m=function(h){return R(h)}):m=function(h,$){return Y(h.key,$)};function g(S,h,$){var p=S?S.children:s,v=S?Object(o.h)($.pos,h):"0";if(S){var b=m(S,v),n={node:S,index:h,pos:v,key:b,parentPos:$.node?$.pos:null,level:$.level+1};l(n)}p&&p.forEach(function(a,e){g(a,e,{node:S,pos:v,level:$?$.level+1:-1})})}g(null)}function F(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=l.initWrapper,m=l.processEntity,g=l.onProcessFinished,S=arguments.length>2?arguments[2]:void 0,h={},$={},p={posEntities:h,keyEntities:$};return R&&(p=R(p)||p),D(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,i=v.parentPos,d=v.level,u={node:b,index:n,key:e,pos:a,level:d},I=Y(e,a);h[a]=u,$[I]=u,u.parent=h[i],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),m&&m(u,p)},S),g&&g(p),p}function z(s,l){var R=l.expandedKeys,m=l.selectedKeys,g=l.loadedKeys,S=l.loadingKeys,h=l.checkedKeys,$=l.halfCheckedKeys,p=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:R.indexOf(s)!==-1,selected:m.indexOf(s)!==-1,loaded:g.indexOf(s)!==-1,loading:S.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:$.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:p===s&&v===0,dragOverGapTop:p===s&&v===-1,dragOverGapBottom:p===s&&v===1};return a}function w(s){var l=s.data,R=s.expanded,m=s.selected,g=s.checked,S=s.loaded,h=s.loading,$=s.halfChecked,p=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(j.a)(Object(j.a)({},l),{},{expanded:R,selected:m,checked:g,loaded:S,loading:h,halfChecked:$,dragOver:p,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(P.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BdwD:function(Ce,k,t){"use strict";var O=t("+L6B"),j=t("2/Rp"),J=t("0Owb"),ne=t("k1fw"),P=t("q1tI"),o=t.n(P),Y=t("FOrL"),M=t.n(Y),c=function(D){var F=D.buttonProps,z=F===void 0?{}:F,w=D.styles,s=w===void 0?{}:w,l=D.customText,R=D.ButtonText,m=D.ButtonClick,g=D.Buttonclass,S=D.ButtonTwo;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(ne.a)(Object(ne.a)({},{color:"#999",margin:"200px auto"}),s)},o.a.createElement("img",{src:M.a}),o.a.createElement("p",{className:"mt20 font14"},l||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),R&&o.a.createElement(j.a,Object(J.a)({className:g,onClick:m},z),R),S&&S)};k.a=c},FOrL:function(Ce,k,t){Ce.exports=t.p+"static/nodata.a6b3f948.png"},G1O7:function(Ce,k,t){"use strict";t.r(k);var O=t("cWXX"),j=t("/ezw"),J=t("g9YV"),ne=t("wCAj"),P=t("lUTK"),o=t("BvKs"),Y=t("9og8"),M=t("k1fw"),c=t("tJVT"),G=t("WmNS"),D=t.n(G),F=t("q1tI"),z=t.n(F),w=t("Ty5D"),s=t("9kvl"),l=t("ErOA"),R=t("37Gi"),m=t.n(R),g=t("1vsH"),S=t("wd/R"),h=t.n(S),$=[{type:"shixun",sorter:{field:"",order:""},column:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.field,u=d===void 0?"":d,I=i.order,f=I===void 0?"":I;return[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:70,render:function(C,V,te){return e.limit*(e.page-1)+te+1}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0},{title:"\u6311\u6218\u5B9E\u8BAD\u6570",dataIndex:"shixuns_count",sortOrder:u==="shixuns_count"&&f,sorter:!0,width:104,render:function(C){return C||0}},{title:"\u901A\u5173\u5B9E\u8BAD\u6570",dataIndex:"passed_count",sortOrder:u==="passed_count"&&f,sorter:!0,width:104,render:function(C){return C||0}},{title:"\u5B8C\u6210\u5173\u5361\u6570",dataIndex:"passed_game_count",sortOrder:u==="passed_game_count"&&f,sorter:!0,width:104,render:function(C){return C||0}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",sortOrder:u==="evaluate_count"&&f,sorter:!0,width:90,render:function(C){return C||0}},{title:"\u6240\u7528\u65F6\u95F4",dataIndex:"cost_time",sortOrder:u==="cost_time"&&f,sorter:!0,width:130,render:function(C){return C&&Object(g.X)(C)||0}},{title:"\u64CD\u4F5C",width:60,dataIndex:"user_id",render:function(C,V){return(V==null?void 0:V.shixuns_count)===null?"":z.a.createElement("a",{href:"/classrooms/".concat(e==null?void 0:e.coursesId,"/student_statistics/").concat(e==null?void 0:e.categoryId,"/").concat(C,"/shixun"),target:"_blank"},"\u8BE6\u60C5")}}]}},{type:"video",sorter:{field:"",order:""},column:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.field,u=d===void 0?"":d,I=i.order,f=I===void 0?"":I;return[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:70,render:function(C,V,te){return e.limit*(e.page-1)+te+1}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0},{title:"\u5B66\u4E60\u89C6\u9891\u6570",dataIndex:"num",sortOrder:u==="num"&&f,sorter:!0,width:104},{title:"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F",dataIndex:"total_duration",sortOrder:u==="total_duration"&&f,sorter:!0,width:130,render:function(C){return C&&Object(g.X)(C)||0}},{title:"\u5E73\u5747\u5B66\u4E60\u5B8C\u6210\u5EA6",dataIndex:"rate",sortOrder:u==="rate"&&f,sorter:!0,width:130,render:function(C){return C&&"".concat(C,"%")||0}},{title:"\u5F00\u59CB\u5B66\u4E60\u65F6\u95F4",dataIndex:"start_at",width:170,render:function(C){return C&&h()(C).format("YYYY-MM-DD HH:mm:ss")||"-"}},{title:"\u6700\u540E\u5B66\u4E60\u65F6\u95F4",dataIndex:"end_at",width:170,render:function(C){return C&&h()(C).format("YYYY-MM-DD HH:mm:ss")||"-"}},{title:"\u64CD\u4F5C",width:60,dataIndex:"user_id",render:function(C,V){return(V==null?void 0:V.total_duration)===""?"":z.a.createElement("a",{href:"/classrooms/".concat(e==null?void 0:e.coursesId,"/student_statistics/").concat(e==null?void 0:e.categoryId,"/").concat(C,"/video"),target:"_blank"},"\u8BE6\u60C5")}}]}},{type:"files",sorter:{field:"",order:""},column:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.field,u=d===void 0?"":d,I=i.order,f=I===void 0?"":I;return[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:70,render:function(C,V,te){return e.limit*(e.page-1)+te+1}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0},{title:"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570",dataIndex:"num",sortOrder:u==="num"&&f,sorter:!0,render:function(C){return C||0}},{title:"\u6700\u540E\u4E0B\u8F7D\u65F6\u95F4",dataIndex:"end_at",render:function(C){return C&&h()(C).format("YYYY-MM-DD HH:mm:ss")||"-"}},{title:"\u64CD\u4F5C",dataIndex:"user_id",width:60,render:function(C,V){return(V==null?void 0:V.num)===null?"":z.a.createElement("a",{href:"/classrooms/".concat(e==null?void 0:e.coursesId,"/student_statistics/").concat(e==null?void 0:e.categoryId,"/").concat(C,"/files"),target:"_blank"},"\u8BE6\u60C5")}}]}}],p=t("LvDl"),v=t("BdwD"),b=function(e){var i,d=e.classroomList,u=e.globalSetting,I=e.dispatch,f=Object(w.i)(),U=Object(w.h)(),C=Object(F.useState)(Object(M.a)(Object(M.a)({},f),{},{page:1,limit:10})),V=Object(c.a)(C,2),te=V[0],Q=V[1],W=Object(F.useState)(!0),ee=Object(c.a)(W,2),ae=ee[0],ce=ee[1],oe=Object(F.useState)(!0),Ee=Object(c.a)(oe,2),Z=Ee[0],Ne=Ee[1],Oe=Object(F.useState)((U==null||((i=U.query)===null||i===void 0)?void 0:i.type)||"shixun"),me=Object(c.a)(Oe,2),pe=me[0],re=me[1],De=Object(F.useState)([]),Le=Object(c.a)(De,2),ue=Le[0],ve=Le[1],Re=function(x){return $.find(function(L){return L.type===x})},Ae=Object(F.useState)(Re(pe).column(te)),Ie=Object(c.a)(Ae,2),He=Ie[0],Te=Ie[1],se=Object(F.useState)(Re(pe).sorter),fe=Object(c.a)(se,2),Xe=fe[0],Ge=fe[1],Je=Object(F.useState)(0),nt=Object(c.a)(Je,2),ze=nt[0],ft=nt[1],r=Object(F.useState)([]),N=Object(c.a)(r,2),T=N[0],B=N[1],X=[{name:"\u5B9E\u8DF5\u9879\u76EE",id:"shixun"},{name:"\u89C6\u9891",id:"video"},{name:"\u6559\u5B66\u8BFE\u4EF6",id:"files"}],K=function(){var E=Object(Y.a)(D.a.mark(function x(L){var _,y;return D.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return console.log(L,"gather"),ce(!0),H.next=4,Object(l.a)("/api/courses/".concat(L==null?void 0:L.coursesId,"/").concat(L==null?void 0:L.menuKey,"_statistic.json"),{params:{sort_by:L==null?void 0:L.field,sort_direction:L!=null&&L.order?L==null||((_=L.order)===null||_===void 0)?void 0:_.slice(0,-3):"",page:L==null?void 0:L.page,limit:L==null?void 0:L.limit}});case 4:if(y=H.sent,!(y!=null&&y.data)){H.next=19;break}if(ve((y==null?void 0:y.data)||[]),ft(y==null?void 0:y.count),ce(!1),!(T.length===0)){H.next=19;break}if(B([y==null?void 0:y.shixuns_count,y==null?void 0:y.videos_count,y==null?void 0:y.files_count]),Ne(!1),y!=null&&y.shixuns_count){H.next=19;break}if(!(y!=null&&y.videos_count)){H.next=16;break}return re("video"),H.abrupt("return");case 16:if(!(y!=null&&y.files_count)){H.next=19;break}return re("files"),H.abrupt("return");case 19:case"end":return H.stop()}},x)}));return function(L){return E.apply(this,arguments)}}();Object(F.useEffect)(function(){var E=Object(M.a)(Object(M.a)({menuKey:pe},te),{},{page:1,limit:10},Re(pe).sorter);Q(Object(M.a)(Object(M.a)({},te),{},{page:1,limit:10})),Te(Re(pe).column(E)),K(E)},[pe]);var A=function(x,L,_){console.log(_,"sorterData");var y={field:_.field,order:_.order};if((_==null?void 0:_.order)===!1&&(y={field:"",order:""}),!Object(p.isEqual)(y,Xe)){_.order||(y=Re(pe).sorter);var q=Object(M.a)(Object(M.a)({menuKey:pe},te),{},{page:1,limit:10},y);Q(Object(M.a)(Object(M.a)({},te),{},{page:1,limit:10})),Ge(y),K(q),Te(Re(pe).column(q,y));return}var H=Object(M.a)(Object(M.a)({menuKey:pe},te),{},{page:x.current,limit:x.pageSize},y);Q(Object(M.a)(Object(M.a)({},te),{},{page:x.current,limit:x.pageSize})),Te(Re(pe).column(H,y)),K(H)};return z.a.createElement("section",{className:m.a.bg},z.a.createElement("div",{className:m.a.containerTitle},z.a.createElement("div",{className:"font16"},"\u5B66\u751F\u5206\u6790")),z.a.createElement(j.a,{loading:Z,active:!0,paragraph:{rows:5}},T.every(function(E){return!E})?z.a.createElement(v.a,null):z.a.createElement(z.a.Fragment,null,z.a.createElement(o.a,{className:m.a.menu,mode:"horizontal",onClick:function(x){re(x.key)},selectedKeys:pe},X.map(function(E,x){return T[x]?z.a.createElement(o.a.Item,{className:"font16",style:{padding:"0 0 12px 0 ",margin:"0 30px"},key:E.id},E.name):null})),z.a.createElement(ne.a,{className:"table-layout bg-white mt20 mb20",columns:He,dataSource:ue,rowKey:function(x){return x.id},loading:ae,onChange:A,pagination:{pageSize:te.limit,total:ze,current:te.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}))))},n=k.default=Object(s.a)(function(a){var e=a.classroomList,i=a.globalSetting;return{classroomList:e,globalSetting:i}})(b)},IBYe:function(Ce,k,t){"use strict";function O(j){return null}k.a=O},LdHM:function(Ce,k,t){"use strict";t.d(k,"b",function(){return S}),t.d(k,"a",function(){return $});var O=t("1OyB"),j=t("vuIU"),J=t("Ji7U"),ne=t("LK+K"),P=t("q1tI"),o=t("rePB"),Y=t("Ff2n"),M=t("ODXe"),c=t("4IlW"),G=t("bX4T"),D=t("YrtM"),F=t("TSYQ"),z=t.n(F),w=t("+nKL"),s=t("8OUc"),l=function(W,ee){var ae=W.prefixCls,ce=W.id,oe=W.flattenOptions,Ee=W.childrenAsData,Z=W.values,Ne=W.searchValue,Oe=W.multiple,me=W.defaultActiveFirstOption,pe=W.height,re=W.itemHeight,De=W.notFoundContent,Le=W.open,ue=W.menuItemSelectedIcon,ve=W.virtual,Re=W.onSelect,Ae=W.onToggleOpen,Ie=W.onActiveValue,He=W.onScroll,Te=W.onMouseEnter,se="".concat(ae,"-item"),fe=Object(D.a)(function(){return oe},[Le,oe],function(K,A){return A[0]&&K[1]!==A[1]}),Xe=P.useRef(null),Ge=function(A){A.preventDefault()},Je=function(A){Xe.current&&Xe.current.scrollTo({index:A})},nt=function(A){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,x=fe.length,L=0;L1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Q).map(function(ee,ae){if(!P.isValidElement(ee)||!ee.type)return null;var ce=ee.type.isSelectOptGroup,oe=ee.key,Ee=ee.props,Z=Ee.children,Ne=Object(Y.a)(Ee,["children"]);return W||!ce?b(ee):Object(p.a)(Object(p.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},Ne),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),i=t("U8pU"),d=t("Kwbf"),u=t("WKfj");function I(Q){var W=Q.mode,ee=Q.options,ae=Q.children,ce=Q.backfill,oe=Q.allowClear,Ee=Q.placeholder,Z=Q.getInputElement,Ne=Q.showSearch,Oe=Q.onSearch,me=Q.defaultOpen,pe=Q.autoFocus,re=Q.labelInValue,De=Q.value,Le=Q.inputValue,ue=Q.optionLabelProp,ve=W==="multiple"||W==="tags",Re=Ne!==void 0?Ne:ve||W==="combobox",Ae=ee||n(ae);if(Object(d.a)(W!=="tags"||Ae.every(function(se){return!se.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),W==="tags"||W==="combobox"){var Ie=Ae.some(function(se){return se.options?se.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in se?se.value:se.key)=="number"});Object(d.a)(!Ie,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(W!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(W==="combobox"||!ce,"`backfill` only works with `combobox` mode."),Object(d.a)(W==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(d.b)(W!=="combobox"||!Z||!oe||!Ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Oe&&!Re&&W!=="combobox"&&W!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!me||pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var He=Object(u.d)(De);Object(d.a)(!re||He.every(function(se){return Object(i.a)(se)==="object"&&("key"in se||"value"in se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!ve||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Te=null;Object(v.a)(ae).some(function(se){if(!P.isValidElement(se)||!se.type)return!1;var fe=se.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Xe=Object(v.a)(se.props.children).every(function(Ge){return!P.isValidElement(Ge)||!se.type||Ge.type.isSelectOption?!0:(Te=Ge.type,!1)});return!Xe}return Te=fe,!0}),Te&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Te.displayName||Te.name||Te,"`.")),Object(d.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=I,U=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:f,fillOptionsWithMissingValue:a.a}),C=function(Q){Object(J.a)(ee,Q);var W=Object(ne.a)(ee);function ee(){var ae;return Object(O.a)(this,ee),ae=W.apply(this,arguments),ae.selectRef=P.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(j.a)(ee,[{key:"render",value:function(){return P.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),ee}(P.Component);C.Option=S,C.OptGroup=$;var V=C,te=k.c=V},NvD2:function(Ce,k,t){"use strict";t.d(k,"a",function(){return o});var O=t("Kwbf");function j(Y,M){var c=new Set;return Y.forEach(function(G){M.has(G)||c.add(G)}),c}function J(Y){var M=Y||{},c=M.disabled,G=M.disableCheckbox,D=M.checkable;return!!(c||G)||D===!1}function ne(Y,M,c,G){for(var D=new Set(Y),F=new Set,z=0;z<=c;z+=1){var w=M.get(z)||new Set;w.forEach(function(m){var g=m.key,S=m.node,h=m.children,$=h===void 0?[]:h;D.has(g)&&!G(S)&&$.filter(function(p){return!G(p.node)}).forEach(function(p){D.add(p.key)})})}for(var s=new Set,l=c;l>=0;l-=1){var R=M.get(l)||new Set;R.forEach(function(m){var g=m.parent,S=m.node;if(G(S)||!m.parent||s.has(m.parent.key))return;if(G(m.parent.node)){s.add(g.key);return}var h=!0,$=!1;(g.children||[]).filter(function(p){return!G(p.node)}).forEach(function(p){var v=p.key,b=D.has(v);h&&!b&&(h=!1),!$&&(b||F.has(v))&&($=!0)}),h&&D.add(g.key),$&&F.add(g.key),s.add(g.key)})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(j(F,D))}}function P(Y,M,c,G,D){for(var F=new Set(Y),z=new Set(M),w=0;w<=G;w+=1){var s=c.get(w)||new Set;s.forEach(function(g){var S=g.key,h=g.node,$=g.children,p=$===void 0?[]:$;!F.has(S)&&!z.has(S)&&!D(h)&&p.filter(function(v){return!D(v.node)}).forEach(function(v){F.delete(v.key)})})}z=new Set;for(var l=new Set,R=G;R>=0;R-=1){var m=c.get(R)||new Set;m.forEach(function(g){var S=g.parent,h=g.node;if(D(h)||!g.parent||l.has(g.parent.key))return;if(D(g.parent.node)){l.add(S.key);return}var $=!0,p=!1;(S.children||[]).filter(function(v){return!D(v.node)}).forEach(function(v){var b=v.key,n=F.has(b);$&&!n&&($=!1),!p&&(n||z.has(b))&&(p=!0)}),$||F.delete(S.key),p&&z.add(S.key),l.add(S.key)})}return{checkedKeys:Array.from(F),halfCheckedKeys:Array.from(j(z,F))}}function o(Y,M,c,G){var D=[],F;G?F=G:F=J;var z=new Set(Y.filter(function(R){var m=!!c[R];return m||D.push(R),m})),w=new Map,s=0;Object.keys(c).forEach(function(R){var m=c[R],g=m.level,S=w.get(g);S||(S=new Set,w.set(g,S)),S.add(m),s=Math.max(s,g)}),Object(O.a)(!D.length,"Tree missing follow keys: ".concat(D.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var l;return M===!0?l=ne(z,w,s,F):l=P(z,M.halfCheckedKeys,w,s,F),l}},OZM5:function(Ce,k,t){"use strict";t.d(k,"b",function(){return G}),t.d(k,"a",function(){return D}),t.d(k,"k",function(){return F}),t.d(k,"h",function(){return z}),t.d(k,"i",function(){return w}),t.d(k,"g",function(){return s}),t.d(k,"c",function(){return l}),t.d(k,"d",function(){return R}),t.d(k,"j",function(){return S}),t.d(k,"e",function(){return h}),t.d(k,"f",function(){return $});var O=t("KQm4"),j=t("U8pU"),J=t("Ff2n"),ne=t("q1tI"),P=t.n(ne),o=t("Kwbf"),Y=t("WaYH"),M=.25,c=2;function G(p,v){var b=p.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function D(p,v){var b=p.slice();return b.indexOf(v)===-1&&b.push(v),b}function F(p){return p.split("-")}function z(p,v){return"".concat(p,"-").concat(v)}function w(p){return p&&p.type&&p.type.isTreeNode}function s(p,v){var b=[p],n=v[p];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var d=i.key,u=i.children;b.push(d),a(u)})}return a(n.children),b}function l(p,v){var b=p.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,i=n.height,d=Math.max(i*M,c);return b<=a+d?-1:b>=e-d?1:0}function R(p,v){if(!p)return;var b=v.multiple;return b?p.slice():p.length?[p[0]]:p}var m=function(v){return v};function g(p,v){if(!p)return[];var b=v||{},n=b.processProps,a=n===void 0?m:n,e=Array.isArray(p)?p:[p];return e.map(function(i){var d=i.children,u=Object(J.a)(i,["children"]),I=g(d,v);return P.a.createElement(Y.a,Object.assign({},a(u)),I)})}function S(p){if(!p)return null;var v;if(Array.isArray(p))v={checkedKeys:p,halfCheckedKeys:void 0};else if(Object(j.a)(p)==="object")v={checkedKeys:p.checked||void 0,halfCheckedKeys:p.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(p,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var i=e.parent,d=e.node;if(d.disabled)return;i&&n(i.key)}return(p||[]).forEach(function(a){n(a)}),Object(O.a)(b)}function $(p){var v={};return Object.keys(p).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=p[b])}),v}},"SA+Z":function(Ce,k,t){var O=t("wTVA"),j=t("EbDI"),J=t("ZhPi"),ne=t("wkBT");function P(o){return O(o)||j(o)||J(o)||ne()}Ce.exports=P,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},WaYH:function(Ce,k,t){"use strict";var O=t("rePB"),j=t("Ff2n"),J=t("VTBJ"),ne=t("1OyB"),P=t("vuIU"),o=t("JX7q"),Y=t("Ji7U"),M=t("LK+K"),c=t("q1tI"),G=t("TSYQ"),D=t.n(G),F=t("sboe"),z=t("OZM5"),w=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var i="".concat(b,"-indent-unit"),d=[],u=0;u1)Object(G.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(S.length===0)return Object(G.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=S[0];if(o.isValidElement(h)&&Object(D.c)(h)){var $=h.ref;S[0]=o.cloneElement(h,{ref:Object(D.a)($,this.setChildNode)})}return S.length===1?S[0]:S.map(function(p,v){return!o.isValidElement(p)||"key"in p&&p.key!==null?p:o.cloneElement(p,{key:"".concat(z,"-").concat(v)})})}}]),R}(o.Component);w.displayName="ResizeObserver",k.a=w},wCXF:function(Ce,k,t){"use strict";t.d(k,"a",function(){return Je});var O=t("rePB"),j=t("VTBJ"),J=t("KQm4"),ne=t("U8pU"),P=t("ODXe"),o=t("q1tI"),Y=t("TSYQ"),M=t.n(Y),c=t("Gytx"),G=t.n(c),D=t("Kwbf"),F=t("t23M"),z=t("qx4F"),w=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),R=t("c+Xe"),m=t("fyJ8"),g=t("biw7");function S(r,N,T,B,X){var K=T[r]||{},A=T[N]||{},E,x;K.fixed==="left"?E=B.left[r]:A.fixed==="right"&&(x=B.right[N]);var L=!1,_=!1,y=!1,q=!1,H=T[N+1],ie=T[r-1];if(X==="rtl"){if(E!==void 0){var je=ie&&ie.fixed==="left";q=!je}else if(x!==void 0){var ge=H&&H.fixed==="right";y=!ge}}else if(E!==void 0){var ye=H&&H.fixed==="left";L=!ye}else if(x!==void 0){var le=ie&&ie.fixed==="right";_=!le}return{fixLeft:E,fixRight:x,lastFixLeft:L,firstFixRight:_,lastFixRight:y,firstFixLeft:q,isSticky:B.isSticky}}var h=t("sR1s");function $(r){var N=r.cells,T=r.stickyOffsets,B=r.flattenColumns,X=r.rowComponent,K=r.cellComponent,A=r.onHeaderRow,E=r.index,x=o.useContext(g.a),L=x.prefixCls,_=x.direction,y;A&&(y=A(N.map(function(H){return H.column}),E));var q=Object(h.a)(N.map(function(H){return H.column}));return o.createElement(X,Object.assign({},y),N.map(function(H,ie){var je=H.column,ge=S(H.colStart,H.colEnd,B,T,_),ye;return je&&je.onHeaderCell&&(ye=H.column.onHeaderCell(je)),o.createElement(m.a,Object.assign({},H,{ellipsis:je.ellipsis,align:je.align,component:K,prefixCls:L,key:q[ie]},ge,{additionalProps:ye,rowType:"header"}))}))}$.displayName="HeaderRow";var p=$;function v(r){var N=[];function T(A,E){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;N[x]=N[x]||[];var L=E,_=A.filter(Boolean).map(function(y){var q={key:y.key,className:y.className||"",children:y.title,column:y,colStart:L},H=1,ie=y.children;return ie&&ie.length>0&&(H=T(ie,L,x+1).reduce(function(je,ge){return je+ge},0),q.hasSubColumns=!0),"colSpan"in y&&(H=y.colSpan),"rowSpan"in y&&(q.rowSpan=y.rowSpan),q.colSpan=H,q.colEnd=q.colStart+H-1,N[x].push(q),L+=H,H});return _}T(r,0);for(var B=N.length,X=function(E){N[E].forEach(function(x){!("rowSpan"in x)&&!x.hasSubColumns&&(x.rowSpan=B-E)})},K=0;K=0;E-=1){var x=N[E],L=T&&T[E],_=L&&L[a.a];(x||_||A)&&(X.unshift(o.createElement("col",Object.assign({key:E,style:{width:x,minWidth:x}},_))),A=!0)}return o.createElement("colgroup",null,X)}var i=e;function d(r,N){return Object(o.useMemo)(function(){for(var T=[],B=0;B1?$e-1:0),ct=1;ct<$e;ct++)dt[ct-1]=arguments[ct];(ot=at).onClick.apply(ot,[et].concat(dt))}},ht;typeof Ue=="string"?ht=Ue:typeof Ue=="function"&&(ht=Ue(B,X,y));var Kt=Object(h.a)(Qe),Tt=o.createElement(q,Object.assign({},at,{"data-row-key":K,className:M()(N,"".concat(ge,"-row"),"".concat(ge,"-row-level-").concat(y),ht,at&&at.className),style:Object(j.a)(Object(j.a)({},T),at?at.style:null),onClick:Et}),Qe.map(function(Fe,et){var ot=Fe.render,$e=Fe.dataIndex,dt=Fe.className,ct=Kt[et],Dt=ye[et],Ct;et===(qe||0)&&mt&&(Ct=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(de*y,"px")},className:"".concat(ge,"-row-indent indent-level-").concat(y)}),Ke({prefixCls:ge,expanded:lt,expandable:pt,record:B,onExpand:We})));var Lt;return Fe.onCell&&(Lt=Fe.onCell(B,X)),o.createElement(m.a,Object.assign({className:dt,ellipsis:Fe.ellipsis,align:Fe.align,component:H,prefixCls:ge,key:ct,record:B,index:X,dataIndex:$e,render:ot,shouldCellUpdate:Fe.shouldCellUpdate},Dt,{appendNode:Ct,additionalProps:Lt}))})),vt;if(it&&(St||lt)){var gt=Ve(B,X,y+1,lt),Mt=Se&&Se(B,X,y);vt=o.createElement(V,{expanded:lt,className:M()("".concat(ge,"-expanded-row"),"".concat(ge,"-expanded-row-level-").concat(y+1),Mt),prefixCls:ge,fixHeader:Ye,fixColumn:we,horizonScroll:Pe,component:q,componentWidth:ke,cellComponent:H,colSpan:Qe.length},gt)}var Pt;return pt&<&&(Pt=(B[ie]||[]).map(function(Fe,et){var ot=A(Fe,et);return o.createElement(te,Object.assign({},r,{key:ot,rowKey:ot,record:Fe,recordKey:ot,index:et,indent:y+1}))})),o.createElement(o.Fragment,null,Tt,vt,Pt)}te.displayName="BodyRow";var Q=te,W=o.createContext(null),ee=W;function ae(r){var N=r.columnKey,T=r.onColumnResize,B=o.useRef();return o.useEffect(function(){B.current&&T(N,B.current.offsetWidth)},[]),o.createElement(F.a,{onResize:function(K){var A=K.offsetWidth;T(N,A)}},o.createElement("td",{ref:B,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ce(r){var N=r.data,T=r.getRowKey,B=r.measureColumnWidth,X=r.expandedKeys,K=r.onRow,A=r.rowExpandable,E=r.emptyNode,x=r.childrenColumnName,L=o.useContext(ee),_=L.onColumnResize,y=o.useContext(g.a),q=y.prefixCls,H=y.getComponent,ie=o.useContext(U),je=ie.fixHeader,ge=ie.horizonScroll,ye=ie.flattenColumns,le=ie.componentWidth;return o.useMemo(function(){var Ye=H(["body","wrapper"],"tbody"),we=H(["body","row"],"tr"),Pe=H(["body","cell"],"td"),ke;N.length?ke=N.map(function(xe,Ze){var We=T(xe,Ze);return o.createElement(Q,{key:We,rowKey:We,record:xe,recordKey:We,index:Ze,rowComponent:we,cellComponent:Pe,expandedKeys:X,onRow:K,getRowKey:T,rowExpandable:A,childrenColumnName:x})}):ke=o.createElement(V,{expanded:!0,className:"".concat(q,"-placeholder"),prefixCls:q,fixHeader:je,fixColumn:ge,horizonScroll:ge,component:we,componentWidth:le,cellComponent:Pe,colSpan:ye.length},E);var Qe=Object(h.a)(ye);return o.createElement(Ye,{className:"".concat(q,"-tbody")},B&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(q,"-measure-row"),style:{height:0}},Qe.map(function(xe){return o.createElement(ae,{key:xe,columnKey:xe,onColumnResize:_})})),ke)},[N,q,K,B,X,T,H,le,E,ye])}var oe=o.memo(ce);oe.displayName="Body";var Ee=oe,Z=t("wRmb"),Ne=t("xEkU"),Oe=t.n(Ne);function me(r){var N=Object(o.useRef)(r),T=Object(o.useState)({}),B=Object(P.a)(T,2),X=B[1],K=Object(o.useRef)(null),A=Object(o.useRef)([]);function E(x){K.current===null&&(A.current=[],K.current=Oe()(function(){A.current.forEach(function(L){N.current=L(N.current)}),K.current=null,X({})})),A.current.push(x)}return Object(o.useEffect)(function(){return function(){Oe.a.cancel(K.current)}},[]),[N.current,E]}function pe(r){var N=Object(o.useRef)(r),T=Object(o.useRef)(null);function B(){window.clearTimeout(T.current)}function X(A){N.current=A,B(),T.current=window.setTimeout(function(){N.current=null,T.current=null},100)}function K(){return N.current}return Object(o.useEffect)(function(){return B},[]),[X,K]}function re(r,N,T){var B=Object(o.useMemo)(function(){for(var X=[],K=[],A=0,E=0,x=0;x=y&&(Me=y-q),A({scrollLeft:Me/y*(_+2)}),le.current.x=de.pageX},We=function(){var de=Object(He.b)(K.current).top,Ke=de+K.current.offsetHeight,Ve=document.documentElement.scrollTop+window.innerHeight;Ke-Object(z.a)()<=Ve||de>=Ve-E?ye(function(qe){return Object(j.a)(Object(j.a)({},qe),{},{isHiddenScrollBar:!0})}):ye(function(qe){return Object(j.a)(Object(j.a)({},qe),{},{isHiddenScrollBar:!1})})},Ue=function(de){ye(function(Ke){return Object(j.a)(Object(j.a)({},Ke),{},{scrollLeft:de/_*y||0})})};return o.useImperativeHandle(T,function(){return{setScrollLeft:Ue}}),o.useEffect(function(){var Se=Object(Ie.a)(document.body,"mouseup",Qe,!1),de=Object(Ie.a)(document.body,"mousemove",Ze,!1);return We(),function(){Se.remove(),de.remove()}},[q,Pe]),o.useEffect(function(){var Se=Object(Ie.a)(window,"scroll",We,!1),de=Object(Ie.a)(window,"resize",We,!1);return function(){Se.remove(),de.remove()}},[]),o.useEffect(function(){ge.isHiddenScrollBar||ye(function(Se){var de,Ke;return Object(j.a)(Object(j.a)({},Se),{},{scrollLeft:K.current.scrollLeft/((de=K.current)===null||de===void 0?void 0:de.scrollWidth)*((Ke=K.current)===null||Ke===void 0?void 0:Ke.clientWidth)})})},[ge.isHiddenScrollBar]),_<=y||!q||ge.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(z.a)(),width:y,bottom:E},className:"".concat(L,"-sticky-scroll")},o.createElement("div",{onMouseDown:xe,ref:H,className:M()("".concat(L,"-sticky-scroll-bar"),Object(O.a)({},"".concat(L,"-sticky-scroll-bar-active"),Pe)),style:{width:"".concat(q,"px"),transform:"translate3d(".concat(ge.scrollLeft,"px, 0, 0)")}}))},se=o.forwardRef(Te);function fe(r,N){return o.useMemo(function(){var T=!!r;return{isSticky:T,stickyClassName:T?"".concat(N,"-sticky-header"):"",offsetHeader:Object(ne.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(ne.a)(r)==="object"&&r.offsetScroll||0}},[r,N])}var Xe=[],Ge={},Je="rc-table-internal-hook",nt=o.memo(function(r){var N=r.children;return N},function(r,N){return G()(r.props,N.props)?r.pingLeft!==N.pingLeft||r.pingRight!==N.pingRight:!1});function ze(r){var N,T=r.prefixCls,B=r.className,X=r.rowClassName,K=r.style,A=r.data,E=r.rowKey,x=r.scroll,L=r.tableLayout,_=r.direction,y=r.title,q=r.footer,H=r.summary,ie=r.id,je=r.showHeader,ge=r.components,ye=r.emptyText,le=r.onRow,Ye=r.onHeaderRow,we=r.internalHooks,Pe=r.transformColumns,ke=r.internalRefs,Qe=r.sticky,xe=A||Xe,Ze=!!xe.length,We=o.useState(0),Ue=Object(P.a)(We,2),Se=Ue[0],de=Ue[1];o.useEffect(function(){de(Object(z.a)())});var Ke=o.useMemo(function(){return Object(h.c)(ge,{})},[ge]),Ve=o.useCallback(function(he,be){return Object(h.b)(Ke,he)||be},[Ke]),qe=o.useMemo(function(){return typeof E=="function"?E:function(he){var be=he&&he[E];return be}},[E]),Me=Object(a.c)(r),jt=Me.expandIcon,St=Me.expandedRowKeys,Nt=Me.defaultExpandedRowKeys,lt=Me.defaultExpandAllRows,it=Me.expandedRowRender,mt=Me.onExpand,pt=Me.onExpandedRowsChange,Rt=Me.expandRowByClick,at=Me.rowExpandable,Et=Me.expandIconColumnIndex,ht=Me.expandedRowClassName,Kt=Me.childrenColumnName,Tt=Me.indentSize,vt=jt||Re,gt=Kt||"children",Mt=o.useMemo(function(){return it?"row":r.expandable&&we===Je&&r.expandable.__PARENT_RENDER_ICON__||xe.some(function(he){return he&&Object(ne.a)(he)==="object"&&he[gt]})?"nest":!1},[!!it,xe]),Pt=o.useState(function(){return Nt||(lt?Ae(xe,qe,gt):[])}),Fe=Object(P.a)(Pt,2),et=Fe[0],ot=Fe[1],$e=o.useMemo(function(){return new Set(St||et||[])},[St,et]),dt=o.useCallback(function(he){var be=qe(he,xe.indexOf(he)),Be,tt=$e.has(be);tt?($e.delete(be),Be=Object(J.a)($e)):Be=[].concat(Object(J.a)($e),[be]),ot(Be),mt&&mt(!tt,he),pt&&pt(Be)},[qe,$e,xe,mt,pt]),ct=o.useState(0),Dt=Object(P.a)(ct,2),Ct=Dt[0],Lt=Dt[1],vn=Object(Z.b)(Object(j.a)(Object(j.a)(Object(j.a)({},r),Me),{},{expandable:!!it,expandedKeys:$e,getRowKey:qe,onTriggerExpand:dt,expandIcon:vt,expandIconColumnIndex:Et,direction:_}),we===Je?Pe:null),Yt=Object(P.a)(vn,2),kt=Yt[0],_e=Yt[1],At=o.useMemo(function(){return{columns:kt,flattenColumns:_e}},[kt,_e]),Bt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(P.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(P.a)(gn,2),tn=en[0],Cn=en[1],xn=me(new Map),nn=Object(P.a)(xn,2),yn=nn[0],On=nn[1],jn=Object(h.a)(_e),an=jn.map(function(he){return yn.get(he)}),on=o.useMemo(function(){return an},[an.join("_")]),wt=De(on,_e.length,_),rt=x&&Object(h.d)(x.y),st=x&&Object(h.d)(x.x),xt=st&&_e.some(function(he){var be=he.fixed;return be}),rn=o.useRef(),Ut=fe(Qe,T),yt=Ut.isSticky,Sn=Ut.offsetHeader,Nn=Ut.offsetScroll,Rn=Ut.stickyClassName,Wt,_t,zt;rt&&(_t={overflowY:"scroll",maxHeight:x.y}),st&&(Wt={overflowX:"auto"},rt||(_t={overflowY:"hidden"}),zt={width:x.x===!0?"auto":x.x,minWidth:"100%"});var ln=o.useCallback(function(he,be){On(function(Be){var tt=new Map(Be);return tt.set(he,be),tt})},[]),Tn=pe(null),sn=Object(P.a)(Tn,2),Mn=sn[0],dn=sn[1];function Ft(he,be){if(!be)return;typeof be=="function"?be(he):be.scrollLeft!==he&&(be.scrollLeft=he)}var bt=function(be){var Be=be.currentTarget,tt=be.scrollLeft,Ot=typeof tt=="number"?tt:Be.scrollLeft,hn=Be||Ge;if(!dn()||dn()===hn){var Jt;Mn(hn),Ft(Ot,Qt.current),Ft(Ot,ut.current),Ft(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Be){var _n=Be.scrollWidth,In=Be.clientWidth;En(Ot>0),Cn(Ot<_n-In)}},Ht=function(){ut.current&&bt({currentTarget:ut.current})},Pn=function(be){var Be=be.width;Ht(),Lt(Bt.current?Bt.current.offsetWidth:Be)};o.useEffect(function(){return Ht},[]),o.useEffect(function(){st&&Ht()},[st]),o.useEffect(function(){we===Je&&ke&&(ke.body.current=ut.current)});var cn=Ve(["table"],"table"),It=o.useMemo(function(){return L||(xt?x.x==="max-content"?"auto":"fixed":rt||_e.some(function(he){var be=he.ellipsis;return be})?"fixed":"auto")},[rt,xt,_e,L]),Xt,Vt={colWidths:on,columCount:_e.length,stickyOffsets:wt,onHeaderRow:Ye,fixHeader:rt},Dn=o.useMemo(function(){return Ze?null:typeof ye=="function"?ye():ye},[Ze,ye]),un=o.createElement(Ee,{data:xe,measureColumnWidth:rt||st||yt,expandedKeys:$e,rowExpandable:at,getRowKey:qe,onRow:le,emptyNode:Dn,childrenColumnName:gt}),fn=o.createElement(i,{colWidths:_e.map(function(he){var be=he.width;return be}),columns:_e}),mn=H&&o.createElement(ve.b,null,H(xe)),pn=Ve(["body"]);if(rt||yt){var $t;typeof pn=="function"?($t=pn(xe,{scrollbarSize:Se,ref:ut,onScroll:bt}),Vt.colWidths=_e.map(function(he,be){var Be=he.width,tt=be===kt.length-1?Be-Se:Be;return typeof tt=="number"&&!Number.isNaN(tt)?tt:(Object(D.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):$t=o.createElement("div",{style:Object(j.a)(Object(j.a)({},Wt),_t),onScroll:bt,ref:ut,className:M()("".concat(T,"-body"))},o.createElement(cn,{style:Object(j.a)(Object(j.a)({},zt),{},{tableLayout:It})},fn,un,mn),yt&&o.createElement(se,{ref:rn,offsetScroll:Nn,scrollBodyRef:ut,onScroll:bt})),Xt=o.createElement(o.Fragment,null,je!==!1&&o.createElement(I,Object.assign({noData:!xe.length},Vt,At,{direction:_,offsetHeader:Sn,stickyClassName:Rn,ref:Qt,onScroll:bt})),$t)}else Xt=o.createElement("div",{style:Object(j.a)(Object(j.a)({},Wt),_t),className:M()("".concat(T,"-content")),onScroll:bt,ref:ut},o.createElement(cn,{style:Object(j.a)(Object(j.a)({},zt),{},{tableLayout:It})},fn,je!==!1&&o.createElement(n,Object.assign({},Vt,At)),un,mn));var Ln=Object(a.b)(r),Gt=o.createElement("div",Object.assign({className:M()(T,B,(N={},Object(O.a)(N,"".concat(T,"-rtl"),_==="rtl"),Object(O.a)(N,"".concat(T,"-ping-left"),qt),Object(O.a)(N,"".concat(T,"-ping-right"),tn),Object(O.a)(N,"".concat(T,"-layout-fixed"),L==="fixed"),Object(O.a)(N,"".concat(T,"-fixed-header"),rt),Object(O.a)(N,"".concat(T,"-fixed-column"),xt),Object(O.a)(N,"".concat(T,"-scroll-horizontal"),st),Object(O.a)(N,"".concat(T,"-has-fix-left"),_e[0]&&_e[0].fixed),Object(O.a)(N,"".concat(T,"-has-fix-right"),_e[_e.length-1]&&_e[_e.length-1].fixed==="right"),N)),style:K,id:ie,ref:Bt},Ln),o.createElement(nt,{pingLeft:qt,pingRight:tn,props:Object(j.a)(Object(j.a)({},r),{},{stickyOffsets:wt,mergedExpandedKeys:$e})},y&&o.createElement(ue,{className:"".concat(T,"-title")},y(xe)),o.createElement("div",{className:"".concat(T,"-container")},Xt),q&&o.createElement(ue,{className:"".concat(T,"-footer")},q(xe))));st&&(Gt=o.createElement(F.a,{onResize:Pn},Gt));var An=o.useMemo(function(){return{prefixCls:T,getComponent:Ve,scrollbarSize:Se,direction:_,fixedInfoList:_e.map(function(he,be){return S(be,be,_e,wt,_)}),isSticky:yt}},[T,Ve,Se,_,_e,wt,_,yt]),wn=o.useMemo(function(){return Object(j.a)(Object(j.a)({},At),{},{tableLayout:It,rowClassName:X,expandedRowClassName:ht,componentWidth:Ct,fixHeader:rt,fixColumn:xt,horizonScroll:st,expandIcon:vt,expandableType:Mt,expandRowByClick:Rt,expandedRowRender:it,onTriggerExpand:dt,expandIconColumnIndex:Et,indentSize:Tt})},[At,It,X,ht,Ct,rt,xt,st,vt,Mt,Rt,it,dt,Et,Tt]),Un=o.useMemo(function(){return{onColumnResize:ln}},[ln]);return o.createElement(g.a.Provider,{value:An},o.createElement(U.Provider,{value:wn},o.createElement(ee.Provider,{value:Un},Gt)))}ze.Column=s.a,ze.ColumnGroup=w.a,ze.Summary=ve.a,ze.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var ft=k.b=ze},wRmb:function(Ce,k,t){"use strict";t.d(k,"a",function(){return G});var O=t("rePB"),j=t("KQm4"),J=t("VTBJ"),ne=t("Ff2n"),P=t("q1tI"),o=t.n(P),Y=t("Kwbf"),M=t("Zm9Q"),c=t("hW8S");function G(s){return Object(M.a)(s).filter(function(l){return P.isValidElement(l)}).map(function(l){var R=l.key,m=l.props,g=m.children,S=Object(ne.a)(m,["children"]),h=Object(J.a)({key:R},S);return g&&(h.children=G(g)),h})}function D(s){return s.reduce(function(l,R){var m=R.fixed,g=m===!0?"left":m,S=R.children;return S&&S.length>0?[].concat(Object(j.a)(l),Object(j.a)(D(S).map(function(h){return Object(J.a)({fixed:g},h)}))):[].concat(Object(j.a)(l),[Object(J.a)(Object(J.a)({},R),{},{fixed:g})])},[])}function F(s){for(var l=!0,R=0;R=0;S-=1){var h=s[S];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(Y.a)(!1,"Index ".concat(S+1," of `columns` missing `fixed='right'` prop."));break}}}function z(s){return s.map(function(l){var R=l.fixed,m=Object(ne.a)(l,["fixed"]),g=R;return R==="left"?g="right":R==="right"&&(g="left"),Object(J.a)({fixed:g},m)})}function w(s,l){var R=s.prefixCls,m=s.columns,g=s.children,S=s.expandable,h=s.expandedKeys,$=s.getRowKey,p=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,i=P.useMemo(function(){return m||G(g)},[m,g]),d=P.useMemo(function(){if(S){var f,U=n||0,C=i[U],V=(f={},Object(O.a)(f,c.a,{className:"".concat(R,"-expand-icon-col")}),Object(O.a)(f,"title",""),Object(O.a)(f,"fixed",C?C.fixed:null),Object(O.a)(f,"className","".concat(R,"-row-expand-icon-cell")),Object(O.a)(f,"render",function(W,ee,ae){var ce=$(ee,ae),oe=h.has(ce),Ee=b?b(ee):!0,Z=v({prefixCls:R,expanded:oe,expandable:Ee,record:ee,onExpand:p});return e?P.createElement("span",{onClick:function(Oe){return Oe.stopPropagation()}},Z):Z}),f),te=i.slice();return U>=0&&te.splice(U,0,V),te}return i},[S,i,$,h,v,a]),u=P.useMemo(function(){var f=d;return l&&(f=l(f)),f.length||(f=[{render:function(){return null}}]),f},[l,d,a]),I=P.useMemo(function(){return a==="rtl"?z(D(u)):D(u)},[u,a]);return[u,I]}k.b=w},"y0+3":function(Ce,k,t){"use strict";t.d(k,"a",function(){return D}),t.d(k,"b",function(){return z});var O=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},J={cssFloat:1,styleFloat:1,float:1};function ne(w){return w.nodeType===1?w.ownerDocument.defaultView.getComputedStyle(w,null):{}}function P(w,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return w.offsetHeight;if(s==="width")return w.offsetWidth}return s in j||(j[s]=O.test(s)),j[s]?parseFloat(l)||0:l}function o(w,s){var l=arguments.length,R=ne(w);return s=J[s]?"cssFloat"in w.style?"cssFloat":"styleFloat":s,l===1?R:P(w,s,R[s]||w.style[s])}function Y(w,s,l){var R=arguments.length;if(s=J[s]?"cssFloat"in w.style?"cssFloat":"styleFloat":s,R===3)return typeof l=="number"&&O.test(s)&&(l="".concat(l,"px")),w.style[s]=l,l;for(var m in s)s.hasOwnProperty(m)&&Y(w,m,s[m]);return ne(w)}function M(w){return w===document.body?document.documentElement.clientWidth:w.offsetWidth}function c(w){return w===document.body?window.innerHeight||document.documentElement.clientHeight:w.offsetHeight}function G(){var w=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:w,height:s}}function D(){var w=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:w,height:s}}function F(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function z(w){var s=w.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[100,8],{"37Gi":function(Ce,k,t){Ce.exports={flex_box_center:"flex_box_center___3mkn-",flex_space_between:"flex_space_between___2bg1h",flex_box_vertical_center:"flex_box_vertical_center___2_fPo",flex_box_center_end:"flex_box_center_end___2ALIF",flex_box_column:"flex_box_column___2rR-N",containerTitle:"containerTitle___3ahUe",menu:"menu___2NU_4"}},"6+eU":function(Ce,k,t){"use strict";t.d(k,"a",function(){return p});var O=t("wx14"),j=t("rePB"),J=t("VTBJ"),ne=t("1OyB"),P=t("vuIU"),o=t("Ji7U"),Y=t("LK+K"),M=t("q1tI"),c=t.n(M),G=t("TSYQ"),D=t.n(G),F=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=D()(a,"".concat(a,"-").concat(b.page),(n={},Object(j.a)(n,"".concat(a,"-active"),b.active),Object(j.a)(n,b.className,!!b.className),Object(j.a)(n,"".concat(a,"-disabled"),!b.page),n)),i=function(){b.onClick(b.page)},d=function(I){b.onKeyPress(I,b.onClick,b.page)};return c.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:i,onKeyPress:d,tabIndex:"0"},b.itemRender(b.page,"page",c.a.createElement("a",{rel:"nofollow"},b.page)))},z=F,w={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(Y.a)(n);function n(){var a;Object(ne.a)(this,n);for(var e=arguments.length,i=new Array(e),d=0;d=0||u.relatedTarget.className.indexOf("".concat(C,"-next"))>=0))return;a.setState({goInputText:""}),U(a.getValidValue())},a.go=function(u){var I=a.state.goInputText;if(I==="")return;(u.keyCode===w.ENTER||u.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(P.a)(n,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,d=e.current;return!i||isNaN(i)?d:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,d=e.pageSizeOptions;return d.some(function(u){return u.toString()===i.toString()})?d:d.concat([i.toString()]).sort(function(u,I){var f=isNaN(Number(u))?0:Number(u),U=isNaN(Number(I))?0:Number(I);return f-U})}},{key:"render",value:function(){var e=this,i=this.props,d=i.pageSize,u=i.locale,I=i.rootPrefixCls,f=i.changeSize,U=i.quickGo,C=i.goButton,V=i.selectComponentClass,te=i.buildOptionText,Q=i.selectPrefixCls,W=i.disabled,ee=this.state.goInputText,ae="".concat(I,"-options"),ce=V,oe=null,Ee=null,Z=null;if(!f&&!U)return null;var Se=this.getPageSizeOptions();if(f&&ce){var Oe=Se.map(function(me,pe){return c.a.createElement(ce.Option,{key:pe,value:me.toString()},(te||e.buildOptionText)(me))});oe=c.a.createElement(ce,{disabled:W,prefixCls:Q,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||Se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(pe){return pe.parentNode}},Oe)}return U&&(C&&(Z=typeof C=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:W,className:"".concat(ae,"-quick-jumper-button")},u.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},C)),Ee=c.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},u.jump_to,c.a.createElement("input",{disabled:W,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,Z)),c.a.createElement("li",{className:"".concat(ae)},oe,Ee)}}]),n}(c.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,R=t("N2Kk");function m(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function N(v,b,n){return n}function h(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var $=function(v){Object(o.a)(n,v);var b=Object(Y.a)(n);function n(a){var e;Object(ne.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,U){var C=e.props.prefixCls,V=f||c.a.createElement("button",{type:"button","aria-label":U,className:"".concat(C,"-item-link")});return typeof f=="function"&&(V=c.a.createElement(f,Object(J.a)({},e.props))),V},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,U=f.showQuickJumper,C=f.pageSize,V=f.total;return V<=C?!1:U},e.handleKeyDown=function(f){(f.keyCode===w.ARROW_UP||f.keyCode===w.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var U=e.getValidValue(f),C=e.state.currentInputValue;U!==C&&e.setState({currentInputValue:U}),f.keyCode===w.ENTER?e.handleChange(U):f.keyCode===w.ARROW_UP?e.handleChange(U-1):f.keyCode===w.ARROW_DOWN&&e.handleChange(U+1)},e.changePageSize=function(f){var U=e.state.current,C=h(f,e.state,e.props);U=U>C?C:U,C===0&&(U=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:U,currentInputValue:U})),e.props.onShowSizeChange(U,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(U,f)},e.handleChange=function(f){var U=e.props.disabled,C=f;if(e.isValid(C)&&!U){var V=h(void 0,e.state,e.props);C>V?C=V:C<1&&(C=1),"current"in e.props||e.setState({current:C,currentInputValue:C});var te=e.state.pageSize;return e.props.onChange(C,te),C}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?C-2:0),te=2;te=d?I=d:I=Number(i),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,d=e.total,u=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:d>u}},{key:"renderPrev",value:function(e){var i=this.props,d=i.prevIcon,u=i.itemRender,I=u(e,"prev",this.getItemIcon(d,"prev page")),f=!this.hasPrev();return Object(M.isValidElement)(I)?Object(M.cloneElement)(I,{disabled:f}):I}},{key:"renderNext",value:function(e){var i=this.props,d=i.nextIcon,u=i.itemRender,I=u(e,"next",this.getItemIcon(d,"next page")),f=!this.hasNext();return Object(M.isValidElement)(I)?Object(M.cloneElement)(I,{disabled:f}):I}},{key:"render",value:function(){var e=this,i=this.props,d=i.prefixCls,u=i.className,I=i.style,f=i.disabled,U=i.hideOnSinglePage,C=i.total,V=i.locale,te=i.showQuickJumper,Q=i.showLessItems,W=i.showTitle,ee=i.showTotal,ae=i.simple,ce=i.itemRender,oe=i.showPrevNextJumpers,Ee=i.jumpPrevIcon,Z=i.jumpNextIcon,Se=i.selectComponentClass,Oe=i.selectPrefixCls,me=i.pageSizeOptions,pe=this.state,re=pe.current,De=pe.pageSize,Le=pe.currentInputValue;if(U===!0&&C<=De)return null;var ue=h(void 0,this.state,this.props),ve=[],Re=null,Ae=null,Ie=null,He=null,Te=null,se=te&&te.goButton,fe=Q?1:2,Xe=re-1>0?re-1:0,Ge=re+1=fe*2&&re!==1+2&&(ve[0]=Object(M.cloneElement)(ve[0],{className:"".concat(d,"-item-after-jump-prev")}),ve.unshift(Re)),ue-re>=fe*2&&re!==ue-2&&(ve[ve.length-1]=Object(M.cloneElement)(ve[ve.length-1],{className:"".concat(d,"-item-before-jump-next")}),ve.push(Ae)),T!==1&&ve.unshift(Ie),B!==ue&&ve.push(He)}var A=null;ee&&(A=c.a.createElement("li",{className:"".concat(d,"-total-text")},ee(C,[C===0?0:(re-1)*De+1,re*De>C?C:re*De])));var E=!this.hasPrev()||!ue,x=!this.hasNext()||!ue;return c.a.createElement("ul",Object(O.a)({className:D()(d,u,Object(j.a)({},"".concat(d,"-disabled"),f)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},Je),A,c.a.createElement("li",{title:W?V.prev_page:null,onClick:this.prev,tabIndex:E?null:0,onKeyPress:this.runIfEnterPrev,className:D()("".concat(d,"-prev"),Object(j.a)({},"".concat(d,"-disabled"),E)),"aria-disabled":E},this.renderPrev(Xe)),ve,c.a.createElement("li",{title:W?V.next_page:null,onClick:this.next,tabIndex:x?null:0,onKeyPress:this.runIfEnterNext,className:D()("".concat(d,"-next"),Object(j.a)({},"".concat(d,"-disabled"),x)),"aria-disabled":x},this.renderNext(Ge)),c.a.createElement(l,{disabled:f,locale:V,rootPrefixCls:d,selectComponentClass:Se,selectPrefixCls:Oe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:re,pageSize:De,pageSizeOptions:me,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:se}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var d={};if("current"in e&&(d.current=e.current,e.current!==i.current&&(d.currentInputValue=d.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var u=i.current,I=h(e.pageSize,i,e);u=u>I?I:u,"current"in e||(d.current=u,d.currentInputValue=u),d.pageSize=e.pageSize}return d}}]),n}(c.a.Component);$.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:R.a,style:{},itemRender:N,totalBoundaryShowSizeChanger:50};var p=$},"6RRn":function(Ce,k,t){"use strict";var O=t("wCXF"),j=t("n6Qo");t.d(k,"b",function(){return j.a});var J=t("IBYe"),ne=t("6eGT"),P=t("hW8S");t.d(k,"a",function(){return P.a}),k.c=O.b},"6eGT":function(Ce,k,t){"use strict";function O(j){return null}k.a=O},"815F":function(Ce,k,t){"use strict";t.d(k,"e",function(){return Y}),t.d(k,"c",function(){return c}),t.d(k,"d",function(){return G}),t.d(k,"a",function(){return F}),t.d(k,"f",function(){return z}),t.d(k,"b",function(){return w});var O=t("KQm4"),j=t("VTBJ"),J=t("Ff2n"),ne=t("Zm9Q"),P=t("Kwbf"),o=t("OZM5");function Y(s,l){return s!=null?s:l}function M(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function R(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(N){var h=N.key,$=N.children;Object(P.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var p=String(h);Object(P.a)(!l.has(p)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(p)),l.set(p,!0),R($,"".concat(g).concat(p," > "))})}R(s)}function c(s){function l(R){var m=Object(ne.a)(R);return m.map(function(g){if(!Object(o.i)(g))return Object(P.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var N=g.key,h=g.props,$=h.children,p=Object(J.a)(h,["children"]),v=Object(j.a)({key:N},p),b=l($);return b.length&&(v.children=b),v}).filter(function(g){return g})}return l(s)}function G(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(l===!0?[]:l),m=[];function g(N){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return N.map(function($,p){var v=Object(o.h)(h?h.pos:"0",p),b=Y($.key,v),n=Object(j.a)(Object(j.a)({},$),{},{parent:h,pos:v,children:null,data:$,isStart:[].concat(Object(O.a)(h?h.isStart:[]),[p===0]),isEnd:[].concat(Object(O.a)(h?h.isEnd:[]),[p===N.length-1])});return m.push(n),l===!0||R.has(b)?n.children=g($.children||[],n):n.children=[],n})}return g(s),m}function D(s,l,R){var m;R?typeof R=="string"?m=function(h){return h[R]}:typeof R=="function"&&(m=function(h){return R(h)}):m=function(h,$){return Y(h.key,$)};function g(N,h,$){var p=N?N.children:s,v=N?Object(o.h)($.pos,h):"0";if(N){var b=m(N,v),n={node:N,index:h,pos:v,key:b,parentPos:$.node?$.pos:null,level:$.level+1};l(n)}p&&p.forEach(function(a,e){g(a,e,{node:N,pos:v,level:$?$.level+1:-1})})}g(null)}function F(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=l.initWrapper,m=l.processEntity,g=l.onProcessFinished,N=arguments.length>2?arguments[2]:void 0,h={},$={},p={posEntities:h,keyEntities:$};return R&&(p=R(p)||p),D(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,i=v.parentPos,d=v.level,u={node:b,index:n,key:e,pos:a,level:d},I=Y(e,a);h[a]=u,$[I]=u,u.parent=h[i],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),m&&m(u,p)},N),g&&g(p),p}function z(s,l){var R=l.expandedKeys,m=l.selectedKeys,g=l.loadedKeys,N=l.loadingKeys,h=l.checkedKeys,$=l.halfCheckedKeys,p=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:R.indexOf(s)!==-1,selected:m.indexOf(s)!==-1,loaded:g.indexOf(s)!==-1,loading:N.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:$.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:p===s&&v===0,dragOverGapTop:p===s&&v===-1,dragOverGapBottom:p===s&&v===1};return a}function w(s){var l=s.data,R=s.expanded,m=s.selected,g=s.checked,N=s.loaded,h=s.loading,$=s.halfChecked,p=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(j.a)(Object(j.a)({},l),{},{expanded:R,selected:m,checked:g,loaded:N,loading:h,halfChecked:$,dragOver:p,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(P.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BdwD:function(Ce,k,t){"use strict";var O=t("+L6B"),j=t("2/Rp"),J=t("0Owb"),ne=t("k1fw"),P=t("q1tI"),o=t.n(P),Y=t("FOrL"),M=t.n(Y),c=function(D){var F=D.buttonProps,z=F===void 0?{}:F,w=D.styles,s=w===void 0?{}:w,l=D.customText,R=D.ButtonText,m=D.ButtonClick,g=D.Buttonclass,N=D.ButtonTwo;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(ne.a)(Object(ne.a)({},{color:"#999",margin:"200px auto"}),s)},o.a.createElement("img",{src:M.a}),o.a.createElement("p",{className:"mt20 font14"},l||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),R&&o.a.createElement(j.a,Object(J.a)({className:g,onClick:m},z),R),N&&N)};k.a=c},FOrL:function(Ce,k,t){Ce.exports=t.p+"static/nodata.a6b3f948.png"},G1O7:function(Ce,k,t){"use strict";t.r(k);var O=t("cWXX"),j=t("/ezw"),J=t("g9YV"),ne=t("wCAj"),P=t("lUTK"),o=t("BvKs"),Y=t("9og8"),M=t("k1fw"),c=t("tJVT"),G=t("WmNS"),D=t.n(G),F=t("q1tI"),z=t.n(F),w=t("Ty5D"),s=t("9kvl"),l=t("ErOA"),R=t("37Gi"),m=t.n(R),g=t("1vsH"),N=t("wd/R"),h=t.n(N),$=[{type:"shixun",sorter:{field:"",order:""},column:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.field,u=d===void 0?"":d,I=i.order,f=I===void 0?"":I;return[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:70,render:function(C,V,te){return e.limit*(e.page-1)+te+1}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0},{title:"\u6311\u6218\u5B9E\u8BAD\u6570",dataIndex:"shixuns_count",sortOrder:u==="shixuns_count"&&f,sorter:!0,width:104,render:function(C){return C||0}},{title:"\u901A\u5173\u5B9E\u8BAD\u6570",dataIndex:"passed_count",sortOrder:u==="passed_count"&&f,sorter:!0,width:104,render:function(C){return C||0}},{title:"\u5B8C\u6210\u5173\u5361\u6570",dataIndex:"passed_game_count",sortOrder:u==="passed_game_count"&&f,sorter:!0,width:104,render:function(C){return C||0}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",sortOrder:u==="evaluate_count"&&f,sorter:!0,width:90,render:function(C){return C||0}},{title:"\u6240\u7528\u65F6\u95F4",dataIndex:"cost_time",sortOrder:u==="cost_time"&&f,sorter:!0,width:130,render:function(C){return C&&Object(g.X)(C)||0}},{title:"\u64CD\u4F5C",width:60,dataIndex:"user_id",render:function(C,V){return(V==null?void 0:V.shixuns_count)===null?"":z.a.createElement("a",{href:"/classrooms/".concat(e==null?void 0:e.coursesId,"/student_statistics/").concat(e==null?void 0:e.categoryId,"/").concat(C,"/shixun"),target:"_blank"},"\u8BE6\u60C5")}}]}},{type:"video",sorter:{field:"",order:""},column:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.field,u=d===void 0?"":d,I=i.order,f=I===void 0?"":I;return[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:70,render:function(C,V,te){return e.limit*(e.page-1)+te+1}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0},{title:"\u5B66\u4E60\u89C6\u9891\u6570",dataIndex:"num",sortOrder:u==="num"&&f,sorter:!0,width:104},{title:"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F",dataIndex:"total_duration",sortOrder:u==="total_duration"&&f,sorter:!0,width:130,render:function(C){return C&&Object(g.X)(C)||0}},{title:"\u5E73\u5747\u5B66\u4E60\u5B8C\u6210\u5EA6",dataIndex:"rate",sortOrder:u==="rate"&&f,sorter:!0,width:130,render:function(C){return C&&"".concat(C,"%")||0}},{title:"\u5F00\u59CB\u5B66\u4E60\u65F6\u95F4",dataIndex:"start_at",width:170,render:function(C){return C&&h()(C).format("YYYY-MM-DD HH:mm:ss")||"-"}},{title:"\u6700\u540E\u5B66\u4E60\u65F6\u95F4",dataIndex:"end_at",width:170,render:function(C){return C&&h()(C).format("YYYY-MM-DD HH:mm:ss")||"-"}},{title:"\u64CD\u4F5C",width:60,dataIndex:"user_id",render:function(C,V){return(V==null?void 0:V.total_duration)===""?"":z.a.createElement("a",{href:"/classrooms/".concat(e==null?void 0:e.coursesId,"/student_statistics/").concat(e==null?void 0:e.categoryId,"/").concat(C,"/video"),target:"_blank"},"\u8BE6\u60C5")}}]}},{type:"files",sorter:{field:"",order:""},column:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.field,u=d===void 0?"":d,I=i.order,f=I===void 0?"":I;return[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:70,render:function(C,V,te){return e.limit*(e.page-1)+te+1}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0},{title:"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570",dataIndex:"num",sortOrder:u==="num"&&f,sorter:!0,render:function(C){return C||0}},{title:"\u6700\u540E\u4E0B\u8F7D\u65F6\u95F4",dataIndex:"end_at",render:function(C){return C&&h()(C).format("YYYY-MM-DD HH:mm:ss")||"-"}},{title:"\u64CD\u4F5C",dataIndex:"user_id",width:60,render:function(C,V){return(V==null?void 0:V.num)===null?"":z.a.createElement("a",{href:"/classrooms/".concat(e==null?void 0:e.coursesId,"/student_statistics/").concat(e==null?void 0:e.categoryId,"/").concat(C,"/files"),target:"_blank"},"\u8BE6\u60C5")}}]}}],p=t("LvDl"),v=t("BdwD"),b=function(e){var i,d=e.classroomList,u=e.globalSetting,I=e.dispatch,f=Object(w.i)(),U=Object(w.h)(),C=Object(F.useState)(Object(M.a)(Object(M.a)({},f),{},{page:1,limit:10})),V=Object(c.a)(C,2),te=V[0],Q=V[1],W=Object(F.useState)(!0),ee=Object(c.a)(W,2),ae=ee[0],ce=ee[1],oe=Object(F.useState)(!0),Ee=Object(c.a)(oe,2),Z=Ee[0],Se=Ee[1],Oe=Object(F.useState)((U==null||((i=U.query)===null||i===void 0)?void 0:i.type)||"shixun"),me=Object(c.a)(Oe,2),pe=me[0],re=me[1],De=Object(F.useState)([]),Le=Object(c.a)(De,2),ue=Le[0],ve=Le[1],Re=function(x){return $.find(function(L){return L.type===x})},Ae=Object(F.useState)(Re(pe).column(te)),Ie=Object(c.a)(Ae,2),He=Ie[0],Te=Ie[1],se=Object(F.useState)(Re(pe).sorter),fe=Object(c.a)(se,2),Xe=fe[0],Ge=fe[1],Je=Object(F.useState)(0),nt=Object(c.a)(Je,2),ze=nt[0],ft=nt[1],r=Object(F.useState)([]),S=Object(c.a)(r,2),T=S[0],B=S[1],X=[{name:"\u5B9E\u8DF5\u9879\u76EE",id:"shixun"},{name:"\u89C6\u9891",id:"video"},{name:"\u6559\u5B66\u8BFE\u4EF6",id:"files"}],K=function(){var E=Object(Y.a)(D.a.mark(function x(L){var _,y;return D.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return console.log(L,"gather"),ce(!0),H.next=4,Object(l.a)("/api/courses/".concat(L==null?void 0:L.coursesId,"/").concat(L==null?void 0:L.menuKey,"_statistic.json"),{params:{sort_by:L==null?void 0:L.field,sort_direction:L!=null&&L.order?L==null||((_=L.order)===null||_===void 0)?void 0:_.slice(0,-3):"",page:L==null?void 0:L.page,limit:L==null?void 0:L.limit}});case 4:if(y=H.sent,!(y!=null&&y.data)){H.next=19;break}if(ve((y==null?void 0:y.data)||[]),ft(y==null?void 0:y.count),ce(!1),!(T.length===0)){H.next=19;break}if(B([y==null?void 0:y.shixuns_count,y==null?void 0:y.videos_count,y==null?void 0:y.files_count]),Se(!1),y!=null&&y.shixuns_count){H.next=19;break}if(!(y!=null&&y.videos_count)){H.next=16;break}return re("video"),H.abrupt("return");case 16:if(!(y!=null&&y.files_count)){H.next=19;break}return re("files"),H.abrupt("return");case 19:case"end":return H.stop()}},x)}));return function(L){return E.apply(this,arguments)}}();Object(F.useEffect)(function(){var E=Object(M.a)(Object(M.a)({menuKey:pe},te),{},{page:1,limit:10},Re(pe).sorter);Q(Object(M.a)(Object(M.a)({},te),{},{page:1,limit:10})),Te(Re(pe).column(E)),K(E)},[pe]);var A=function(x,L,_){console.log(_,"sorterData");var y={field:_.field,order:_.order};if((_==null?void 0:_.order)===!1&&(y={field:"",order:""}),!Object(p.isEqual)(y,Xe)){_.order||(y=Re(pe).sorter);var q=Object(M.a)(Object(M.a)({menuKey:pe},te),{},{page:1,limit:10},y);Q(Object(M.a)(Object(M.a)({},te),{},{page:1,limit:10})),Ge(y),K(q),Te(Re(pe).column(q,y));return}var H=Object(M.a)(Object(M.a)({menuKey:pe},te),{},{page:x.current,limit:x.pageSize},y);Q(Object(M.a)(Object(M.a)({},te),{},{page:x.current,limit:x.pageSize})),Te(Re(pe).column(H,y)),K(H)};return z.a.createElement("section",{className:m.a.bg},z.a.createElement("div",{className:m.a.containerTitle},z.a.createElement("div",{className:"font16"},"\u5B66\u751F\u5206\u6790")),z.a.createElement(j.a,{loading:Z,active:!0,paragraph:{rows:5}},T.every(function(E){return!E})?z.a.createElement(v.a,null):z.a.createElement(z.a.Fragment,null,z.a.createElement(o.a,{className:m.a.menu,mode:"horizontal",onClick:function(x){re(x.key)},selectedKeys:pe},X.map(function(E,x){return T[x]?z.a.createElement(o.a.Item,{className:"font16",style:{padding:"0 0 12px 0 ",margin:"0 30px"},key:E.id},E.name):null})),z.a.createElement(ne.a,{className:"table-layout bg-white mt20 mb20",columns:He,dataSource:ue,rowKey:function(x){return x.id},loading:ae,onChange:A,pagination:{pageSize:te.limit,total:ze,current:te.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}))))},n=k.default=Object(s.a)(function(a){var e=a.classroomList,i=a.globalSetting;return{classroomList:e,globalSetting:i}})(b)},IBYe:function(Ce,k,t){"use strict";function O(j){return null}k.a=O},LdHM:function(Ce,k,t){"use strict";t.d(k,"b",function(){return N}),t.d(k,"a",function(){return $});var O=t("1OyB"),j=t("vuIU"),J=t("Ji7U"),ne=t("LK+K"),P=t("q1tI"),o=t("rePB"),Y=t("Ff2n"),M=t("ODXe"),c=t("4IlW"),G=t("bX4T"),D=t("YrtM"),F=t("TSYQ"),z=t.n(F),w=t("+nKL"),s=t("8OUc"),l=function(W,ee){var ae=W.prefixCls,ce=W.id,oe=W.flattenOptions,Ee=W.childrenAsData,Z=W.values,Se=W.searchValue,Oe=W.multiple,me=W.defaultActiveFirstOption,pe=W.height,re=W.itemHeight,De=W.notFoundContent,Le=W.open,ue=W.menuItemSelectedIcon,ve=W.virtual,Re=W.onSelect,Ae=W.onToggleOpen,Ie=W.onActiveValue,He=W.onScroll,Te=W.onMouseEnter,se="".concat(ae,"-item"),fe=Object(D.a)(function(){return oe},[Le,oe],function(K,A){return A[0]&&K[1]!==A[1]}),Xe=P.useRef(null),Ge=function(A){A.preventDefault()},Je=function(A){Xe.current&&Xe.current.scrollTo({index:A})},nt=function(A){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,x=fe.length,L=0;L1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Q).map(function(ee,ae){if(!P.isValidElement(ee)||!ee.type)return null;var ce=ee.type.isSelectOptGroup,oe=ee.key,Ee=ee.props,Z=Ee.children,Se=Object(Y.a)(Ee,["children"]);return W||!ce?b(ee):Object(p.a)(Object(p.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},Se),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),i=t("U8pU"),d=t("Kwbf"),u=t("WKfj");function I(Q){var W=Q.mode,ee=Q.options,ae=Q.children,ce=Q.backfill,oe=Q.allowClear,Ee=Q.placeholder,Z=Q.getInputElement,Se=Q.showSearch,Oe=Q.onSearch,me=Q.defaultOpen,pe=Q.autoFocus,re=Q.labelInValue,De=Q.value,Le=Q.inputValue,ue=Q.optionLabelProp,ve=W==="multiple"||W==="tags",Re=Se!==void 0?Se:ve||W==="combobox",Ae=ee||n(ae);if(Object(d.a)(W!=="tags"||Ae.every(function(se){return!se.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),W==="tags"||W==="combobox"){var Ie=Ae.some(function(se){return se.options?se.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in se?se.value:se.key)=="number"});Object(d.a)(!Ie,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(W!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(W==="combobox"||!ce,"`backfill` only works with `combobox` mode."),Object(d.a)(W==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(d.b)(W!=="combobox"||!Z||!oe||!Ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Oe&&!Re&&W!=="combobox"&&W!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!me||pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var He=Object(u.d)(De);Object(d.a)(!re||He.every(function(se){return Object(i.a)(se)==="object"&&("key"in se||"value"in se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!ve||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Te=null;Object(v.a)(ae).some(function(se){if(!P.isValidElement(se)||!se.type)return!1;var fe=se.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Xe=Object(v.a)(se.props.children).every(function(Ge){return!P.isValidElement(Ge)||!se.type||Ge.type.isSelectOption?!0:(Te=Ge.type,!1)});return!Xe}return Te=fe,!0}),Te&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Te.displayName||Te.name||Te,"`.")),Object(d.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=I,U=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:f,fillOptionsWithMissingValue:a.a}),C=function(Q){Object(J.a)(ee,Q);var W=Object(ne.a)(ee);function ee(){var ae;return Object(O.a)(this,ee),ae=W.apply(this,arguments),ae.selectRef=P.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(j.a)(ee,[{key:"render",value:function(){return P.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),ee}(P.Component);C.Option=N,C.OptGroup=$;var V=C,te=k.c=V},NvD2:function(Ce,k,t){"use strict";t.d(k,"a",function(){return o});var O=t("Kwbf");function j(Y,M){var c=new Set;return Y.forEach(function(G){M.has(G)||c.add(G)}),c}function J(Y){var M=Y||{},c=M.disabled,G=M.disableCheckbox,D=M.checkable;return!!(c||G)||D===!1}function ne(Y,M,c,G){for(var D=new Set(Y),F=new Set,z=0;z<=c;z+=1){var w=M.get(z)||new Set;w.forEach(function(m){var g=m.key,N=m.node,h=m.children,$=h===void 0?[]:h;D.has(g)&&!G(N)&&$.filter(function(p){return!G(p.node)}).forEach(function(p){D.add(p.key)})})}for(var s=new Set,l=c;l>=0;l-=1){var R=M.get(l)||new Set;R.forEach(function(m){var g=m.parent,N=m.node;if(G(N)||!m.parent||s.has(m.parent.key))return;if(G(m.parent.node)){s.add(g.key);return}var h=!0,$=!1;(g.children||[]).filter(function(p){return!G(p.node)}).forEach(function(p){var v=p.key,b=D.has(v);h&&!b&&(h=!1),!$&&(b||F.has(v))&&($=!0)}),h&&D.add(g.key),$&&F.add(g.key),s.add(g.key)})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(j(F,D))}}function P(Y,M,c,G,D){for(var F=new Set(Y),z=new Set(M),w=0;w<=G;w+=1){var s=c.get(w)||new Set;s.forEach(function(g){var N=g.key,h=g.node,$=g.children,p=$===void 0?[]:$;!F.has(N)&&!z.has(N)&&!D(h)&&p.filter(function(v){return!D(v.node)}).forEach(function(v){F.delete(v.key)})})}z=new Set;for(var l=new Set,R=G;R>=0;R-=1){var m=c.get(R)||new Set;m.forEach(function(g){var N=g.parent,h=g.node;if(D(h)||!g.parent||l.has(g.parent.key))return;if(D(g.parent.node)){l.add(N.key);return}var $=!0,p=!1;(N.children||[]).filter(function(v){return!D(v.node)}).forEach(function(v){var b=v.key,n=F.has(b);$&&!n&&($=!1),!p&&(n||z.has(b))&&(p=!0)}),$||F.delete(N.key),p&&z.add(N.key),l.add(N.key)})}return{checkedKeys:Array.from(F),halfCheckedKeys:Array.from(j(z,F))}}function o(Y,M,c,G){var D=[],F;G?F=G:F=J;var z=new Set(Y.filter(function(R){var m=!!c[R];return m||D.push(R),m})),w=new Map,s=0;Object.keys(c).forEach(function(R){var m=c[R],g=m.level,N=w.get(g);N||(N=new Set,w.set(g,N)),N.add(m),s=Math.max(s,g)}),Object(O.a)(!D.length,"Tree missing follow keys: ".concat(D.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var l;return M===!0?l=ne(z,w,s,F):l=P(z,M.halfCheckedKeys,w,s,F),l}},OZM5:function(Ce,k,t){"use strict";t.d(k,"b",function(){return G}),t.d(k,"a",function(){return D}),t.d(k,"k",function(){return F}),t.d(k,"h",function(){return z}),t.d(k,"i",function(){return w}),t.d(k,"g",function(){return s}),t.d(k,"c",function(){return l}),t.d(k,"d",function(){return R}),t.d(k,"j",function(){return N}),t.d(k,"e",function(){return h}),t.d(k,"f",function(){return $});var O=t("KQm4"),j=t("U8pU"),J=t("Ff2n"),ne=t("q1tI"),P=t.n(ne),o=t("Kwbf"),Y=t("WaYH"),M=.25,c=2;function G(p,v){var b=p.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function D(p,v){var b=p.slice();return b.indexOf(v)===-1&&b.push(v),b}function F(p){return p.split("-")}function z(p,v){return"".concat(p,"-").concat(v)}function w(p){return p&&p.type&&p.type.isTreeNode}function s(p,v){var b=[p],n=v[p];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var d=i.key,u=i.children;b.push(d),a(u)})}return a(n.children),b}function l(p,v){var b=p.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,i=n.height,d=Math.max(i*M,c);return b<=a+d?-1:b>=e-d?1:0}function R(p,v){if(!p)return;var b=v.multiple;return b?p.slice():p.length?[p[0]]:p}var m=function(v){return v};function g(p,v){if(!p)return[];var b=v||{},n=b.processProps,a=n===void 0?m:n,e=Array.isArray(p)?p:[p];return e.map(function(i){var d=i.children,u=Object(J.a)(i,["children"]),I=g(d,v);return P.a.createElement(Y.a,Object.assign({},a(u)),I)})}function N(p){if(!p)return null;var v;if(Array.isArray(p))v={checkedKeys:p,halfCheckedKeys:void 0};else if(Object(j.a)(p)==="object")v={checkedKeys:p.checked||void 0,halfCheckedKeys:p.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(p,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var i=e.parent,d=e.node;if(d.disabled)return;i&&n(i.key)}return(p||[]).forEach(function(a){n(a)}),Object(O.a)(b)}function $(p){var v={};return Object.keys(p).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=p[b])}),v}},"SA+Z":function(Ce,k,t){var O=t("wTVA"),j=t("EbDI"),J=t("ZhPi"),ne=t("wkBT");function P(o){return O(o)||j(o)||J(o)||ne()}Ce.exports=P,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},WaYH:function(Ce,k,t){"use strict";var O=t("rePB"),j=t("Ff2n"),J=t("VTBJ"),ne=t("1OyB"),P=t("vuIU"),o=t("JX7q"),Y=t("Ji7U"),M=t("LK+K"),c=t("q1tI"),G=t("TSYQ"),D=t.n(G),F=t("sboe"),z=t("OZM5"),w=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var i="".concat(b,"-indent-unit"),d=[],u=0;u1)Object(G.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(N.length===0)return Object(G.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=N[0];if(o.isValidElement(h)&&Object(D.c)(h)){var $=h.ref;N[0]=o.cloneElement(h,{ref:Object(D.a)($,this.setChildNode)})}return N.length===1?N[0]:N.map(function(p,v){return!o.isValidElement(p)||"key"in p&&p.key!==null?p:o.cloneElement(p,{key:"".concat(z,"-").concat(v)})})}}]),R}(o.Component);w.displayName="ResizeObserver",k.a=w},wCXF:function(Ce,k,t){"use strict";t.d(k,"a",function(){return Je});var O=t("rePB"),j=t("VTBJ"),J=t("KQm4"),ne=t("U8pU"),P=t("ODXe"),o=t("q1tI"),Y=t("TSYQ"),M=t.n(Y),c=t("Gytx"),G=t.n(c),D=t("Kwbf"),F=t("t23M"),z=t("qx4F"),w=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),R=t("c+Xe"),m=t("fyJ8"),g=t("biw7");function N(r,S,T,B,X){var K=T[r]||{},A=T[S]||{},E,x;K.fixed==="left"?E=B.left[r]:A.fixed==="right"&&(x=B.right[S]);var L=!1,_=!1,y=!1,q=!1,H=T[S+1],ie=T[r-1];if(X==="rtl"){if(E!==void 0){var je=ie&&ie.fixed==="left";q=!je}else if(x!==void 0){var ge=H&&H.fixed==="right";y=!ge}}else if(E!==void 0){var ye=H&&H.fixed==="left";L=!ye}else if(x!==void 0){var le=ie&&ie.fixed==="right";_=!le}return{fixLeft:E,fixRight:x,lastFixLeft:L,firstFixRight:_,lastFixRight:y,firstFixLeft:q,isSticky:B.isSticky}}var h=t("sR1s");function $(r){var S=r.cells,T=r.stickyOffsets,B=r.flattenColumns,X=r.rowComponent,K=r.cellComponent,A=r.onHeaderRow,E=r.index,x=o.useContext(g.a),L=x.prefixCls,_=x.direction,y;A&&(y=A(S.map(function(H){return H.column}),E));var q=Object(h.a)(S.map(function(H){return H.column}));return o.createElement(X,Object.assign({},y),S.map(function(H,ie){var je=H.column,ge=N(H.colStart,H.colEnd,B,T,_),ye;return je&&je.onHeaderCell&&(ye=H.column.onHeaderCell(je)),o.createElement(m.a,Object.assign({},H,{ellipsis:je.ellipsis,align:je.align,component:K,prefixCls:L,key:q[ie]},ge,{additionalProps:ye,rowType:"header"}))}))}$.displayName="HeaderRow";var p=$;function v(r){var S=[];function T(A,E){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;S[x]=S[x]||[];var L=E,_=A.filter(Boolean).map(function(y){var q={key:y.key,className:y.className||"",children:y.title,column:y,colStart:L},H=1,ie=y.children;return ie&&ie.length>0&&(H=T(ie,L,x+1).reduce(function(je,ge){return je+ge},0),q.hasSubColumns=!0),"colSpan"in y&&(H=y.colSpan),"rowSpan"in y&&(q.rowSpan=y.rowSpan),q.colSpan=H,q.colEnd=q.colStart+H-1,S[x].push(q),L+=H,H});return _}T(r,0);for(var B=S.length,X=function(E){S[E].forEach(function(x){!("rowSpan"in x)&&!x.hasSubColumns&&(x.rowSpan=B-E)})},K=0;K=0;E-=1){var x=S[E],L=T&&T[E],_=L&&L[a.a];(x||_||A)&&(X.unshift(o.createElement("col",Object.assign({key:E,style:{width:x,minWidth:x}},_))),A=!0)}return o.createElement("colgroup",null,X)}var i=e;function d(r,S){return Object(o.useMemo)(function(){for(var T=[],B=0;B1?$e-1:0),ct=1;ct<$e;ct++)dt[ct-1]=arguments[ct];(ot=at).onClick.apply(ot,[et].concat(dt))}},ht;typeof Ue=="string"?ht=Ue:typeof Ue=="function"&&(ht=Ue(B,X,y));var Kt=Object(h.a)(Qe),Tt=o.createElement(q,Object.assign({},at,{"data-row-key":K,className:M()(S,"".concat(ge,"-row"),"".concat(ge,"-row-level-").concat(y),ht,at&&at.className),style:Object(j.a)(Object(j.a)({},T),at?at.style:null),onClick:Et}),Qe.map(function(Fe,et){var ot=Fe.render,$e=Fe.dataIndex,dt=Fe.className,ct=Kt[et],Dt=ye[et],Ct;et===(qe||0)&&mt&&(Ct=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(de*y,"px")},className:"".concat(ge,"-row-indent indent-level-").concat(y)}),Ke({prefixCls:ge,expanded:lt,expandable:pt,record:B,onExpand:We})));var Lt;return Fe.onCell&&(Lt=Fe.onCell(B,X)),o.createElement(m.a,Object.assign({className:dt,ellipsis:Fe.ellipsis,align:Fe.align,component:H,prefixCls:ge,key:ct,record:B,index:X,dataIndex:$e,render:ot,shouldCellUpdate:Fe.shouldCellUpdate},Dt,{appendNode:Ct,additionalProps:Lt}))})),vt;if(it&&(Nt||lt)){var gt=Ve(B,X,y+1,lt),Mt=Ne&&Ne(B,X,y);vt=o.createElement(V,{expanded:lt,className:M()("".concat(ge,"-expanded-row"),"".concat(ge,"-expanded-row-level-").concat(y+1),Mt),prefixCls:ge,fixHeader:Ye,fixColumn:we,horizonScroll:Pe,component:q,componentWidth:ke,cellComponent:H,colSpan:Qe.length},gt)}var Pt;return pt&<&&(Pt=(B[ie]||[]).map(function(Fe,et){var ot=A(Fe,et);return o.createElement(te,Object.assign({},r,{key:ot,rowKey:ot,record:Fe,recordKey:ot,index:et,indent:y+1}))})),o.createElement(o.Fragment,null,Tt,vt,Pt)}te.displayName="BodyRow";var Q=te,W=o.createContext(null),ee=W;function ae(r){var S=r.columnKey,T=r.onColumnResize,B=o.useRef();return o.useEffect(function(){B.current&&T(S,B.current.offsetWidth)},[]),o.createElement(F.a,{onResize:function(K){var A=K.offsetWidth;T(S,A)}},o.createElement("td",{ref:B,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ce(r){var S=r.data,T=r.getRowKey,B=r.measureColumnWidth,X=r.expandedKeys,K=r.onRow,A=r.rowExpandable,E=r.emptyNode,x=r.childrenColumnName,L=o.useContext(ee),_=L.onColumnResize,y=o.useContext(g.a),q=y.prefixCls,H=y.getComponent,ie=o.useContext(U),je=ie.fixHeader,ge=ie.horizonScroll,ye=ie.flattenColumns,le=ie.componentWidth;return o.useMemo(function(){var Ye=H(["body","wrapper"],"tbody"),we=H(["body","row"],"tr"),Pe=H(["body","cell"],"td"),ke;S.length?ke=S.map(function(xe,Ze){var We=T(xe,Ze);return o.createElement(Q,{key:We,rowKey:We,record:xe,recordKey:We,index:Ze,rowComponent:we,cellComponent:Pe,expandedKeys:X,onRow:K,getRowKey:T,rowExpandable:A,childrenColumnName:x})}):ke=o.createElement(V,{expanded:!0,className:"".concat(q,"-placeholder"),prefixCls:q,fixHeader:je,fixColumn:ge,horizonScroll:ge,component:we,componentWidth:le,cellComponent:Pe,colSpan:ye.length},E);var Qe=Object(h.a)(ye);return o.createElement(Ye,{className:"".concat(q,"-tbody")},B&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(q,"-measure-row"),style:{height:0}},Qe.map(function(xe){return o.createElement(ae,{key:xe,columnKey:xe,onColumnResize:_})})),ke)},[S,q,K,B,X,T,H,le,E,ye])}var oe=o.memo(ce);oe.displayName="Body";var Ee=oe,Z=t("wRmb"),Se=t("xEkU"),Oe=t.n(Se);function me(r){var S=Object(o.useRef)(r),T=Object(o.useState)({}),B=Object(P.a)(T,2),X=B[1],K=Object(o.useRef)(null),A=Object(o.useRef)([]);function E(x){K.current===null&&(A.current=[],K.current=Oe()(function(){A.current.forEach(function(L){S.current=L(S.current)}),K.current=null,X({})})),A.current.push(x)}return Object(o.useEffect)(function(){return function(){Oe.a.cancel(K.current)}},[]),[S.current,E]}function pe(r){var S=Object(o.useRef)(r),T=Object(o.useRef)(null);function B(){window.clearTimeout(T.current)}function X(A){S.current=A,B(),T.current=window.setTimeout(function(){S.current=null,T.current=null},100)}function K(){return S.current}return Object(o.useEffect)(function(){return B},[]),[X,K]}function re(r,S,T){var B=Object(o.useMemo)(function(){for(var X=[],K=[],A=0,E=0,x=0;x=y&&(Me=y-q),A({scrollLeft:Me/y*(_+2)}),le.current.x=de.pageX},We=function(){var de=Object(He.b)(K.current).top,Ke=de+K.current.offsetHeight,Ve=document.documentElement.scrollTop+window.innerHeight;Ke-Object(z.a)()<=Ve||de>=Ve-E?ye(function(qe){return Object(j.a)(Object(j.a)({},qe),{},{isHiddenScrollBar:!0})}):ye(function(qe){return Object(j.a)(Object(j.a)({},qe),{},{isHiddenScrollBar:!1})})},Ue=function(de){ye(function(Ke){return Object(j.a)(Object(j.a)({},Ke),{},{scrollLeft:de/_*y||0})})};return o.useImperativeHandle(T,function(){return{setScrollLeft:Ue}}),o.useEffect(function(){var Ne=Object(Ie.a)(document.body,"mouseup",Qe,!1),de=Object(Ie.a)(document.body,"mousemove",Ze,!1);return We(),function(){Ne.remove(),de.remove()}},[q,Pe]),o.useEffect(function(){var Ne=Object(Ie.a)(window,"scroll",We,!1),de=Object(Ie.a)(window,"resize",We,!1);return function(){Ne.remove(),de.remove()}},[]),o.useEffect(function(){ge.isHiddenScrollBar||ye(function(Ne){var de,Ke;return Object(j.a)(Object(j.a)({},Ne),{},{scrollLeft:K.current.scrollLeft/((de=K.current)===null||de===void 0?void 0:de.scrollWidth)*((Ke=K.current)===null||Ke===void 0?void 0:Ke.clientWidth)})})},[ge.isHiddenScrollBar]),_<=y||!q||ge.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(z.a)(),width:y,bottom:E},className:"".concat(L,"-sticky-scroll")},o.createElement("div",{onMouseDown:xe,ref:H,className:M()("".concat(L,"-sticky-scroll-bar"),Object(O.a)({},"".concat(L,"-sticky-scroll-bar-active"),Pe)),style:{width:"".concat(q,"px"),transform:"translate3d(".concat(ge.scrollLeft,"px, 0, 0)")}}))},se=o.forwardRef(Te);function fe(r,S){return o.useMemo(function(){var T=!!r;return{isSticky:T,stickyClassName:T?"".concat(S,"-sticky-header"):"",offsetHeader:Object(ne.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(ne.a)(r)==="object"&&r.offsetScroll||0}},[r,S])}var Xe=[],Ge={},Je="rc-table-internal-hook",nt=o.memo(function(r){var S=r.children;return S},function(r,S){return G()(r.props,S.props)?r.pingLeft!==S.pingLeft||r.pingRight!==S.pingRight:!1});function ze(r){var S,T=r.prefixCls,B=r.className,X=r.rowClassName,K=r.style,A=r.data,E=r.rowKey,x=r.scroll,L=r.tableLayout,_=r.direction,y=r.title,q=r.footer,H=r.summary,ie=r.id,je=r.showHeader,ge=r.components,ye=r.emptyText,le=r.onRow,Ye=r.onHeaderRow,we=r.internalHooks,Pe=r.transformColumns,ke=r.internalRefs,Qe=r.sticky,xe=A||Xe,Ze=!!xe.length,We=o.useState(0),Ue=Object(P.a)(We,2),Ne=Ue[0],de=Ue[1];o.useEffect(function(){de(Object(z.a)())});var Ke=o.useMemo(function(){return Object(h.c)(ge,{})},[ge]),Ve=o.useCallback(function(he,be){return Object(h.b)(Ke,he)||be},[Ke]),qe=o.useMemo(function(){return typeof E=="function"?E:function(he){var be=he&&he[E];return be}},[E]),Me=Object(a.c)(r),jt=Me.expandIcon,Nt=Me.expandedRowKeys,St=Me.defaultExpandedRowKeys,lt=Me.defaultExpandAllRows,it=Me.expandedRowRender,mt=Me.onExpand,pt=Me.onExpandedRowsChange,Rt=Me.expandRowByClick,at=Me.rowExpandable,Et=Me.expandIconColumnIndex,ht=Me.expandedRowClassName,Kt=Me.childrenColumnName,Tt=Me.indentSize,vt=jt||Re,gt=Kt||"children",Mt=o.useMemo(function(){return it?"row":r.expandable&&we===Je&&r.expandable.__PARENT_RENDER_ICON__||xe.some(function(he){return he&&Object(ne.a)(he)==="object"&&he[gt]})?"nest":!1},[!!it,xe]),Pt=o.useState(function(){return St||(lt?Ae(xe,qe,gt):[])}),Fe=Object(P.a)(Pt,2),et=Fe[0],ot=Fe[1],$e=o.useMemo(function(){return new Set(Nt||et||[])},[Nt,et]),dt=o.useCallback(function(he){var be=qe(he,xe.indexOf(he)),Be,tt=$e.has(be);tt?($e.delete(be),Be=Object(J.a)($e)):Be=[].concat(Object(J.a)($e),[be]),ot(Be),mt&&mt(!tt,he),pt&&pt(Be)},[qe,$e,xe,mt,pt]),ct=o.useState(0),Dt=Object(P.a)(ct,2),Ct=Dt[0],Lt=Dt[1],vn=Object(Z.b)(Object(j.a)(Object(j.a)(Object(j.a)({},r),Me),{},{expandable:!!it,expandedKeys:$e,getRowKey:qe,onTriggerExpand:dt,expandIcon:vt,expandIconColumnIndex:Et,direction:_}),we===Je?Pe:null),Yt=Object(P.a)(vn,2),kt=Yt[0],_e=Yt[1],At=o.useMemo(function(){return{columns:kt,flattenColumns:_e}},[kt,_e]),Bt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(P.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(P.a)(gn,2),tn=en[0],Cn=en[1],xn=me(new Map),nn=Object(P.a)(xn,2),yn=nn[0],On=nn[1],jn=Object(h.a)(_e),an=jn.map(function(he){return yn.get(he)}),on=o.useMemo(function(){return an},[an.join("_")]),wt=De(on,_e.length,_),rt=x&&Object(h.d)(x.y),st=x&&Object(h.d)(x.x),xt=st&&_e.some(function(he){var be=he.fixed;return be}),rn=o.useRef(),Ut=fe(Qe,T),yt=Ut.isSticky,Nn=Ut.offsetHeader,Sn=Ut.offsetScroll,Rn=Ut.stickyClassName,Wt,_t,zt;rt&&(_t={overflowY:"scroll",maxHeight:x.y}),st&&(Wt={overflowX:"auto"},rt||(_t={overflowY:"hidden"}),zt={width:x.x===!0?"auto":x.x,minWidth:"100%"});var ln=o.useCallback(function(he,be){On(function(Be){var tt=new Map(Be);return tt.set(he,be),tt})},[]),Tn=pe(null),sn=Object(P.a)(Tn,2),Mn=sn[0],dn=sn[1];function Ft(he,be){if(!be)return;typeof be=="function"?be(he):be.scrollLeft!==he&&(be.scrollLeft=he)}var bt=function(be){var Be=be.currentTarget,tt=be.scrollLeft,Ot=typeof tt=="number"?tt:Be.scrollLeft,hn=Be||Ge;if(!dn()||dn()===hn){var Jt;Mn(hn),Ft(Ot,Qt.current),Ft(Ot,ut.current),Ft(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Be){var _n=Be.scrollWidth,In=Be.clientWidth;En(Ot>0),Cn(Ot<_n-In)}},Ht=function(){ut.current&&bt({currentTarget:ut.current})},Pn=function(be){var Be=be.width;Ht(),Lt(Bt.current?Bt.current.offsetWidth:Be)};o.useEffect(function(){return Ht},[]),o.useEffect(function(){st&&Ht()},[st]),o.useEffect(function(){we===Je&&ke&&(ke.body.current=ut.current)});var cn=Ve(["table"],"table"),It=o.useMemo(function(){return L||(xt?x.x==="max-content"?"auto":"fixed":rt||_e.some(function(he){var be=he.ellipsis;return be})?"fixed":"auto")},[rt,xt,_e,L]),Xt,Vt={colWidths:on,columCount:_e.length,stickyOffsets:wt,onHeaderRow:Ye,fixHeader:rt},Dn=o.useMemo(function(){return Ze?null:typeof ye=="function"?ye():ye},[Ze,ye]),un=o.createElement(Ee,{data:xe,measureColumnWidth:rt||st||yt,expandedKeys:$e,rowExpandable:at,getRowKey:qe,onRow:le,emptyNode:Dn,childrenColumnName:gt}),fn=o.createElement(i,{colWidths:_e.map(function(he){var be=he.width;return be}),columns:_e}),mn=H&&o.createElement(ve.b,null,H(xe)),pn=Ve(["body"]);if(rt||yt){var $t;typeof pn=="function"?($t=pn(xe,{scrollbarSize:Ne,ref:ut,onScroll:bt}),Vt.colWidths=_e.map(function(he,be){var Be=he.width,tt=be===kt.length-1?Be-Ne:Be;return typeof tt=="number"&&!Number.isNaN(tt)?tt:(Object(D.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):$t=o.createElement("div",{style:Object(j.a)(Object(j.a)({},Wt),_t),onScroll:bt,ref:ut,className:M()("".concat(T,"-body"))},o.createElement(cn,{style:Object(j.a)(Object(j.a)({},zt),{},{tableLayout:It})},fn,un,mn),yt&&o.createElement(se,{ref:rn,offsetScroll:Sn,scrollBodyRef:ut,onScroll:bt})),Xt=o.createElement(o.Fragment,null,je!==!1&&o.createElement(I,Object.assign({noData:!xe.length},Vt,At,{direction:_,offsetHeader:Nn,stickyClassName:Rn,ref:Qt,onScroll:bt})),$t)}else Xt=o.createElement("div",{style:Object(j.a)(Object(j.a)({},Wt),_t),className:M()("".concat(T,"-content")),onScroll:bt,ref:ut},o.createElement(cn,{style:Object(j.a)(Object(j.a)({},zt),{},{tableLayout:It})},fn,je!==!1&&o.createElement(n,Object.assign({},Vt,At)),un,mn));var Ln=Object(a.b)(r),Gt=o.createElement("div",Object.assign({className:M()(T,B,(S={},Object(O.a)(S,"".concat(T,"-rtl"),_==="rtl"),Object(O.a)(S,"".concat(T,"-ping-left"),qt),Object(O.a)(S,"".concat(T,"-ping-right"),tn),Object(O.a)(S,"".concat(T,"-layout-fixed"),L==="fixed"),Object(O.a)(S,"".concat(T,"-fixed-header"),rt),Object(O.a)(S,"".concat(T,"-fixed-column"),xt),Object(O.a)(S,"".concat(T,"-scroll-horizontal"),st),Object(O.a)(S,"".concat(T,"-has-fix-left"),_e[0]&&_e[0].fixed),Object(O.a)(S,"".concat(T,"-has-fix-right"),_e[_e.length-1]&&_e[_e.length-1].fixed==="right"),S)),style:K,id:ie,ref:Bt},Ln),o.createElement(nt,{pingLeft:qt,pingRight:tn,props:Object(j.a)(Object(j.a)({},r),{},{stickyOffsets:wt,mergedExpandedKeys:$e})},y&&o.createElement(ue,{className:"".concat(T,"-title")},y(xe)),o.createElement("div",{className:"".concat(T,"-container")},Xt),q&&o.createElement(ue,{className:"".concat(T,"-footer")},q(xe))));st&&(Gt=o.createElement(F.a,{onResize:Pn},Gt));var An=o.useMemo(function(){return{prefixCls:T,getComponent:Ve,scrollbarSize:Ne,direction:_,fixedInfoList:_e.map(function(he,be){return N(be,be,_e,wt,_)}),isSticky:yt}},[T,Ve,Ne,_,_e,wt,_,yt]),wn=o.useMemo(function(){return Object(j.a)(Object(j.a)({},At),{},{tableLayout:It,rowClassName:X,expandedRowClassName:ht,componentWidth:Ct,fixHeader:rt,fixColumn:xt,horizonScroll:st,expandIcon:vt,expandableType:Mt,expandRowByClick:Rt,expandedRowRender:it,onTriggerExpand:dt,expandIconColumnIndex:Et,indentSize:Tt})},[At,It,X,ht,Ct,rt,xt,st,vt,Mt,Rt,it,dt,Et,Tt]),Un=o.useMemo(function(){return{onColumnResize:ln}},[ln]);return o.createElement(g.a.Provider,{value:An},o.createElement(U.Provider,{value:wn},o.createElement(ee.Provider,{value:Un},Gt)))}ze.Column=s.a,ze.ColumnGroup=w.a,ze.Summary=ve.a,ze.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var ft=k.b=ze},wRmb:function(Ce,k,t){"use strict";t.d(k,"a",function(){return G});var O=t("rePB"),j=t("KQm4"),J=t("VTBJ"),ne=t("Ff2n"),P=t("q1tI"),o=t.n(P),Y=t("Kwbf"),M=t("Zm9Q"),c=t("hW8S");function G(s){return Object(M.a)(s).filter(function(l){return P.isValidElement(l)}).map(function(l){var R=l.key,m=l.props,g=m.children,N=Object(ne.a)(m,["children"]),h=Object(J.a)({key:R},N);return g&&(h.children=G(g)),h})}function D(s){return s.reduce(function(l,R){var m=R.fixed,g=m===!0?"left":m,N=R.children;return N&&N.length>0?[].concat(Object(j.a)(l),Object(j.a)(D(N).map(function(h){return Object(J.a)({fixed:g},h)}))):[].concat(Object(j.a)(l),[Object(J.a)(Object(J.a)({},R),{},{fixed:g})])},[])}function F(s){for(var l=!0,R=0;R=0;N-=1){var h=s[N];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(Y.a)(!1,"Index ".concat(N+1," of `columns` missing `fixed='right'` prop."));break}}}function z(s){return s.map(function(l){var R=l.fixed,m=Object(ne.a)(l,["fixed"]),g=R;return R==="left"?g="right":R==="right"&&(g="left"),Object(J.a)({fixed:g},m)})}function w(s,l){var R=s.prefixCls,m=s.columns,g=s.children,N=s.expandable,h=s.expandedKeys,$=s.getRowKey,p=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,i=P.useMemo(function(){return m||G(g)},[m,g]),d=P.useMemo(function(){if(N){var f,U=n||0,C=i[U],V=(f={},Object(O.a)(f,c.a,{className:"".concat(R,"-expand-icon-col")}),Object(O.a)(f,"title",""),Object(O.a)(f,"fixed",C?C.fixed:null),Object(O.a)(f,"className","".concat(R,"-row-expand-icon-cell")),Object(O.a)(f,"render",function(W,ee,ae){var ce=$(ee,ae),oe=h.has(ce),Ee=b?b(ee):!0,Z=v({prefixCls:R,expanded:oe,expandable:Ee,record:ee,onExpand:p});return e?P.createElement("span",{onClick:function(Oe){return Oe.stopPropagation()}},Z):Z}),f),te=i.slice();return U>=0&&te.splice(U,0,V),te}return i},[N,i,$,h,v,a]),u=P.useMemo(function(){var f=d;return l&&(f=l(f)),f.length||(f=[{render:function(){return null}}]),f},[l,d,a]),I=P.useMemo(function(){return a==="rtl"?z(D(u)):D(u)},[u,a]);return[u,I]}k.b=w},"y0+3":function(Ce,k,t){"use strict";t.d(k,"a",function(){return D}),t.d(k,"b",function(){return z});var O=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},J={cssFloat:1,styleFloat:1,float:1};function ne(w){return w.nodeType===1?w.ownerDocument.defaultView.getComputedStyle(w,null):{}}function P(w,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return w.offsetHeight;if(s==="width")return w.offsetWidth}return s in j||(j[s]=O.test(s)),j[s]?parseFloat(l)||0:l}function o(w,s){var l=arguments.length,R=ne(w);return s=J[s]?"cssFloat"in w.style?"cssFloat":"styleFloat":s,l===1?R:P(w,s,R[s]||w.style[s])}function Y(w,s,l){var R=arguments.length;if(s=J[s]?"cssFloat"in w.style?"cssFloat":"styleFloat":s,R===3)return typeof l=="number"&&O.test(s)&&(l="".concat(l,"px")),w.style[s]=l,l;for(var m in s)s.hasOwnProperty(m)&&Y(w,m,s[m]);return ne(w)}function M(w){return w===document.body?document.documentElement.clientWidth:w.offsetWidth}function c(w){return w===document.body?window.innerHeight||document.documentElement.clientHeight:w.offsetHeight}function G(){var w=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:w,height:s}}function D(){var w=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:w,height:s}}function F(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function z(w){var s=w.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js b/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js index 8b1a607a20..27085173ab 100644 --- a/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js +++ b/p__Classrooms__Lists__Statistics__StudentVideo__index.8a4fe866.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[101,8],{"2TgF":function(he,A,t){he.exports={divback:"divback___19CJW",title:"title___2aAOE",divstyle:"divstyle___1ehDw"}},"6+eU":function(he,A,t){"use strict";t.d(A,"a",function(){return m});var g=t("wx14"),E=t("rePB"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("Ji7U"),X=t("LK+K"),P=t("q1tI"),i=t.n(P),k=t("TSYQ"),y=t.n(k),_=function(p){var n,a="".concat(p.rootPrefixCls,"-item"),e=y()(a,"".concat(a,"-").concat(p.page),(n={},Object(E.a)(n,"".concat(a,"-active"),p.active),Object(E.a)(n,p.className,!!p.className),Object(E.a)(n,"".concat(a,"-disabled"),!p.page),n)),d=function(){p.onClick(p.page)},c=function(I){p.onKeyPress(I,p.onClick,p.page)};return i.a.createElement("li",{title:p.showTitle?p.page:null,className:e,onClick:d,onKeyPress:c,tabIndex:"0"},p.itemRender(p.page,"page",i.a.createElement("a",{rel:"nofollow"},p.page)))},B=_,T={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(){var a;Object(q.a)(this,n);for(var e=arguments.length,d=new Array(e),c=0;c=0||f.relatedTarget.className.indexOf("".concat(V,"-next"))>=0))return;a.setState({goInputText:""}),F(a.getValidValue())},a.go=function(f){var I=a.state.goInputText;if(I==="")return;(f.keyCode===T.ENTER||f.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(j.a)(n,[{key:"getValidValue",value:function(){var e=this.state,d=e.goInputText,c=e.current;return!d||isNaN(d)?c:Number(d)}},{key:"getPageSizeOptions",value:function(){var e=this.props,d=e.pageSize,c=e.pageSizeOptions;return c.some(function(f){return f.toString()===d.toString()})?c:c.concat([d.toString()]).sort(function(f,I){var b=isNaN(Number(f))?0:Number(f),F=isNaN(Number(I))?0:Number(I);return b-F})}},{key:"render",value:function(){var e=this,d=this.props,c=d.pageSize,f=d.locale,I=d.rootPrefixCls,b=d.changeSize,F=d.quickGo,V=d.goButton,Q=d.selectComponentClass,ae=d.buildOptionText,H=d.selectPrefixCls,L=d.disabled,ee=this.state.goInputText,te="".concat(I,"-options"),ue=Q,re=null,Ce=null,Z=null;if(!b&&!F)return null;var Ne=this.getPageSizeOptions();if(b&&ue){var je=Ne.map(function(be,Me){return i.a.createElement(ue.Option,{key:Me,value:be.toString()},(ae||e.buildOptionText)(be))});re=i.a.createElement(ue,{disabled:L,prefixCls:H,showSearch:!1,className:"".concat(te,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Me){return Me.parentNode}},je)}return F&&(V&&(Z=typeof V=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:L,className:"".concat(te,"-quick-jumper-button")},f.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},V)),Ce=i.a.createElement("div",{className:"".concat(te,"-quick-jumper")},f.jump_to,i.a.createElement("input",{disabled:L,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,Z)),i.a.createElement("li",{className:"".concat(te)},re,Ce)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function u(){}function C(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function x(v,p,n){return n}function h(v,p,n){var a=typeof v=="undefined"?p.pageSize:v;return Math.floor((n.total-1)/a)+1}var W=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(a){var e;Object(q.a)(this,n),e=p.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(b,F){var V=e.props.prefixCls,Q=b||i.a.createElement("button",{type:"button","aria-label":F,className:"".concat(V,"-item-link")});return typeof b=="function"&&(Q=i.a.createElement(b,Object(G.a)({},e.props))),Q},e.savePaginationNode=function(b){e.paginationNode=b},e.isValid=function(b){return C(b)&&b!==e.state.current},e.shouldDisplayQuickJumper=function(){var b=e.props,F=b.showQuickJumper,V=b.pageSize,Q=b.total;return Q<=V?!1:F},e.handleKeyDown=function(b){(b.keyCode===T.ARROW_UP||b.keyCode===T.ARROW_DOWN)&&b.preventDefault()},e.handleKeyUp=function(b){var F=e.getValidValue(b),V=e.state.currentInputValue;F!==V&&e.setState({currentInputValue:F}),b.keyCode===T.ENTER?e.handleChange(F):b.keyCode===T.ARROW_UP?e.handleChange(F-1):b.keyCode===T.ARROW_DOWN&&e.handleChange(F+1)},e.changePageSize=function(b){var F=e.state.current,V=h(b,e.state,e.props);F=F>V?V:F,V===0&&(F=e.state.current),typeof b=="number"&&("pageSize"in e.props||e.setState({pageSize:b}),"current"in e.props||e.setState({current:F,currentInputValue:F})),e.props.onShowSizeChange(F,b),"onChange"in e.props&&e.props.onChange&&e.props.onChange(F,b)},e.handleChange=function(b){var F=e.props.disabled,V=b;if(e.isValid(V)&&!F){var Q=h(void 0,e.state,e.props);V>Q?V=Q:V<1&&(V=1),"current"in e.props||e.setState({current:V,currentInputValue:V});var ae=e.state.pageSize;return e.props.onChange(V,ae),V}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?V-2:0),ae=2;ae=c?I=c:I=Number(d),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,d=e.showSizeChanger,c=e.total,f=e.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:c>f}},{key:"renderPrev",value:function(e){var d=this.props,c=d.prevIcon,f=d.itemRender,I=f(e,"prev",this.getItemIcon(c,"prev page")),b=!this.hasPrev();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"renderNext",value:function(e){var d=this.props,c=d.nextIcon,f=d.itemRender,I=f(e,"next",this.getItemIcon(c,"next page")),b=!this.hasNext();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"render",value:function(){var e=this,d=this.props,c=d.prefixCls,f=d.className,I=d.style,b=d.disabled,F=d.hideOnSinglePage,V=d.total,Q=d.locale,ae=d.showQuickJumper,H=d.showLessItems,L=d.showTitle,ee=d.showTotal,te=d.simple,ue=d.itemRender,re=d.showPrevNextJumpers,Ce=d.jumpPrevIcon,Z=d.jumpNextIcon,Ne=d.selectComponentClass,je=d.selectPrefixCls,be=d.pageSizeOptions,Me=this.state,ie=Me.current,Ae=Me.pageSize,we=Me.currentInputValue;if(F===!0&&V<=Ae)return null;var ce=h(void 0,this.state,this.props),Ee=[],We=null,Ue=null,ke=null,Ye=null,_e=null,de=ae&&ae.goButton,fe=H?1:2,Qe=ie-1>0?ie-1:0,et=ie+1=fe*2&&ie!==1+2&&(Ee[0]=Object(P.cloneElement)(Ee[0],{className:"".concat(c,"-item-after-jump-prev")}),Ee.unshift(We)),ce-ie>=fe*2&&ie!==ce-2&&(Ee[Ee.length-1]=Object(P.cloneElement)(Ee[Ee.length-1],{className:"".concat(c,"-item-before-jump-next")}),Ee.push(Ue)),N!==1&&Ee.unshift(ke),w!==ce&&Ee.push(Ye)}var D=null;ee&&(D=i.a.createElement("li",{className:"".concat(c,"-total-text")},ee(V,[V===0?0:(ie-1)*Ae+1,ie*Ae>V?V:ie*Ae])));var S=!this.hasPrev()||!ce,M=!this.hasNext()||!ce;return i.a.createElement("ul",Object(g.a)({className:y()(c,f,Object(E.a)({},"".concat(c,"-disabled"),b)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},tt),D,i.a.createElement("li",{title:L?Q.prev_page:null,onClick:this.prev,tabIndex:S?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(c,"-prev"),Object(E.a)({},"".concat(c,"-disabled"),S)),"aria-disabled":S},this.renderPrev(Qe)),Ee,i.a.createElement("li",{title:L?Q.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(c,"-next"),Object(E.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),i.a.createElement(l,{disabled:b,locale:Q,rootPrefixCls:c,selectComponentClass:Ne,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Ae,pageSizeOptions:be,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,d){var c={};if("current"in e&&(c.current=e.current,e.current!==d.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==d.pageSize){var f=d.current,I=h(e.pageSize,d,e);f=f>I?I:f,"current"in e||(c.current=f,c.currentInputValue=f),c.pageSize=e.pageSize}return c}}]),n}(i.a.Component);W.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:O.a,style:{},itemRender:x,totalBoundaryShowSizeChanger:50};var m=W},"6RRn":function(he,A,t){"use strict";var g=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var G=t("IBYe"),q=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=g.b},"6eGT":function(he,A,t){"use strict";function g(E){return null}A.a=g},"815F":function(he,A,t){"use strict";t.d(A,"e",function(){return X}),t.d(A,"c",function(){return i}),t.d(A,"d",function(){return k}),t.d(A,"a",function(){return _}),t.d(A,"f",function(){return B}),t.d(A,"b",function(){return T});var g=t("KQm4"),E=t("VTBJ"),G=t("Ff2n"),q=t("Zm9Q"),j=t("Kwbf"),o=t("OZM5");function X(s,l){return s!=null?s:l}function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(x){var h=x.key,W=x.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(C).concat(h,"]"));var m=String(h);Object(j.a)(!l.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),O(W,"".concat(C).concat(m," > "))})}O(s)}function i(s){function l(O){var u=Object(q.a)(O);return u.map(function(C){if(!Object(o.i)(C))return Object(j.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var x=C.key,h=C.props,W=h.children,m=Object(G.a)(h,["children"]),v=Object(E.a)({key:x},m),p=l(W);return p.length&&(v.children=p),v}).filter(function(C){return C})}return l(s)}function k(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),u=[];function C(x){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return x.map(function(W,m){var v=Object(o.h)(h?h.pos:"0",m),p=X(W.key,v),n=Object(E.a)(Object(E.a)({},W),{},{parent:h,pos:v,children:null,data:W,isStart:[].concat(Object(g.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(g.a)(h?h.isEnd:[]),[m===x.length-1])});return u.push(n),l===!0||O.has(p)?n.children=C(W.children||[],n):n.children=[],n})}return C(s),u}function y(s,l,O){var u;O?typeof O=="string"?u=function(h){return h[O]}:typeof O=="function"&&(u=function(h){return O(h)}):u=function(h,W){return X(h.key,W)};function C(x,h,W){var m=x?x.children:s,v=x?Object(o.h)(W.pos,h):"0";if(x){var p=u(x,v),n={node:x,index:h,pos:v,key:p,parentPos:W.node?W.pos:null,level:W.level+1};l(n)}m&&m.forEach(function(a,e){C(a,e,{node:x,pos:v,level:W?W.level+1:-1})})}C(null)}function _(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,u=l.processEntity,C=l.onProcessFinished,x=arguments.length>2?arguments[2]:void 0,h={},W={},m={posEntities:h,keyEntities:W};return O&&(m=O(m)||m),y(s,function(v){var p=v.node,n=v.index,a=v.pos,e=v.key,d=v.parentPos,c=v.level,f={node:p,index:n,key:e,pos:a,level:c},I=X(e,a);h[a]=f,W[I]=f,f.parent=h[d],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),u&&u(f,m)},x),C&&C(m),m}function B(s,l){var O=l.expandedKeys,u=l.selectedKeys,C=l.loadedKeys,x=l.loadingKeys,h=l.checkedKeys,W=l.halfCheckedKeys,m=l.dragOverNodeKey,v=l.dropPosition,p=l.keyEntities,n=p[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:C.indexOf(s)!==-1,loading:x.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:W.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:m===s&&v===0,dragOverGapTop:m===s&&v===-1,dragOverGapBottom:m===s&&v===1};return a}function T(s){var l=s.data,O=s.expanded,u=s.selected,C=s.checked,x=s.loaded,h=s.loading,W=s.halfChecked,m=s.dragOver,v=s.dragOverGapTop,p=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(E.a)(Object(E.a)({},l),{},{expanded:O,selected:u,checked:C,loaded:x,loading:h,halfChecked:W,dragOver:m,dragOverGapTop:v,dragOverGapBottom:p,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("MNnm"),E="rc-util-key";function G(X){if(X.attachTo)return X.attachTo;var P=document.querySelector("head");return P||document.body}function q(X){var P,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(g.a)())return null;var k=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var y;k.nonce=(y=i.csp)===null||y===void 0?void 0:y.nonce}k.innerHTML=X;var _=G(i),B=_.firstChild;return i.prepend&&_.prepend?_.prepend(k):i.prepend&&B?_.insertBefore(k,B):_.appendChild(k),k}var j=new Map;function o(X,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=G(i);if(!j.has(k)){var y=q("",i),_=y.parentNode;j.set(k,_),_.removeChild(y)}var B=Array.from(j.get(k).children).find(function(u){return u.tagName==="STYLE"&&u[E]===P});if(B){var T,s;if(((T=i.csp)===null||T===void 0?void 0:T.nonce)&&B.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;B.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return B.innerHTML!==X&&(B.innerHTML=X),B}var O=q(X,i);return O[E]=P,O}},BdwD:function(he,A,t){"use strict";var g=t("+L6B"),E=t("2/Rp"),G=t("0Owb"),q=t("k1fw"),j=t("q1tI"),o=t.n(j),X=t("FOrL"),P=t.n(X),i=function(y){var _=y.buttonProps,B=_===void 0?{}:_,T=y.styles,s=T===void 0?{}:T,l=y.customText,O=y.ButtonText,u=y.ButtonClick,C=y.Buttonclass,x=y.ButtonTwo;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(q.a)(Object(q.a)({},{color:"#999",margin:"200px auto"}),s)},o.a.createElement("img",{src:P.a}),o.a.createElement("p",{className:"mt20 font14"},l||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&o.a.createElement(E.a,Object(G.a)({className:C,onClick:u},B),O),x&&x)};A.a=i},FOrL:function(he,A,t){he.exports=t.p+"static/nodata.a6b3f948.png"},IBYe:function(he,A,t){"use strict";function g(E){return null}A.a=g},LdHM:function(he,A,t){"use strict";t.d(A,"b",function(){return x}),t.d(A,"a",function(){return W});var g=t("1OyB"),E=t("vuIU"),G=t("Ji7U"),q=t("LK+K"),j=t("q1tI"),o=t("rePB"),X=t("Ff2n"),P=t("ODXe"),i=t("4IlW"),k=t("bX4T"),y=t("YrtM"),_=t("TSYQ"),B=t.n(_),T=t("+nKL"),s=t("8OUc"),l=function(L,ee){var te=L.prefixCls,ue=L.id,re=L.flattenOptions,Ce=L.childrenAsData,Z=L.values,Ne=L.searchValue,je=L.multiple,be=L.defaultActiveFirstOption,Me=L.height,ie=L.itemHeight,Ae=L.notFoundContent,we=L.open,ce=L.menuItemSelectedIcon,Ee=L.virtual,We=L.onSelect,Ue=L.onToggleOpen,ke=L.onActiveValue,Ye=L.onScroll,_e=L.onMouseEnter,de="".concat(te,"-item"),fe=Object(y.a)(function(){return re},[we,re],function(U,D){return D[0]&&U[1]!==D[1]}),Qe=j.useRef(null),et=function(D){D.preventDefault()},tt=function(D){Qe.current&&Qe.current.scrollTo({index:D})},st=function(D){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=fe.length,J=0;J1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(H).map(function(ee,te){if(!j.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,re=ee.key,Ce=ee.props,Z=Ce.children,Ne=Object(X.a)(Ce,["children"]);return L||!ue?p(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(re===null?te:re,"__"),label:re},Ne),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),d=t("U8pU"),c=t("Kwbf"),f=t("WKfj");function I(H){var L=H.mode,ee=H.options,te=H.children,ue=H.backfill,re=H.allowClear,Ce=H.placeholder,Z=H.getInputElement,Ne=H.showSearch,je=H.onSearch,be=H.defaultOpen,Me=H.autoFocus,ie=H.labelInValue,Ae=H.value,we=H.inputValue,ce=H.optionLabelProp,Ee=L==="multiple"||L==="tags",We=Ne!==void 0?Ne:Ee||L==="combobox",Ue=ee||n(te);if(Object(c.a)(L!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),L==="tags"||L==="combobox"){var ke=Ue.some(function(de){return de.options?de.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(L!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(L==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(c.a)(L==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(c.b)(L!=="combobox"||!Z||!re||!Ce,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!We&&L!=="combobox"&&L!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!be||Me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var Ye=Object(f.d)(Ae);Object(c.a)(!ie||Ye.every(function(de){return Object(d.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!Ee||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(te){var _e=null;Object(v.a)(te).some(function(de){if(!j.isValidElement(de)||!de.type)return!1;var fe=de.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!j.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(_e=et.type,!1)});return!Qe}return _e=fe,!0}),_e&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_e.displayName||_e.name||_e,"`.")),Object(c.a)(we===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=I,F=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:b,fillOptionsWithMissingValue:a.a}),V=function(H){Object(G.a)(ee,H);var L=Object(q.a)(ee);function ee(){var te;return Object(g.a)(this,ee),te=L.apply(this,arguments),te.selectRef=j.createRef(),te.focus=function(){te.selectRef.current.focus()},te.blur=function(){te.selectRef.current.blur()},te}return Object(E.a)(ee,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);V.Option=x,V.OptGroup=W;var Q=V,ae=A.c=Q},NvD2:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("Kwbf");function E(X,P){var i=new Set;return X.forEach(function(k){P.has(k)||i.add(k)}),i}function G(X){var P=X||{},i=P.disabled,k=P.disableCheckbox,y=P.checkable;return!!(i||k)||y===!1}function q(X,P,i,k){for(var y=new Set(X),_=new Set,B=0;B<=i;B+=1){var T=P.get(B)||new Set;T.forEach(function(u){var C=u.key,x=u.node,h=u.children,W=h===void 0?[]:h;y.has(C)&&!k(x)&&W.filter(function(m){return!k(m.node)}).forEach(function(m){y.add(m.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var O=P.get(l)||new Set;O.forEach(function(u){var C=u.parent,x=u.node;if(k(x)||!u.parent||s.has(u.parent.key))return;if(k(u.parent.node)){s.add(C.key);return}var h=!0,W=!1;(C.children||[]).filter(function(m){return!k(m.node)}).forEach(function(m){var v=m.key,p=y.has(v);h&&!p&&(h=!1),!W&&(p||_.has(v))&&(W=!0)}),h&&y.add(C.key),W&&_.add(C.key),s.add(C.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(E(_,y))}}function j(X,P,i,k,y){for(var _=new Set(X),B=new Set(P),T=0;T<=k;T+=1){var s=i.get(T)||new Set;s.forEach(function(C){var x=C.key,h=C.node,W=C.children,m=W===void 0?[]:W;!_.has(x)&&!B.has(x)&&!y(h)&&m.filter(function(v){return!y(v.node)}).forEach(function(v){_.delete(v.key)})})}B=new Set;for(var l=new Set,O=k;O>=0;O-=1){var u=i.get(O)||new Set;u.forEach(function(C){var x=C.parent,h=C.node;if(y(h)||!C.parent||l.has(C.parent.key))return;if(y(C.parent.node)){l.add(x.key);return}var W=!0,m=!1;(x.children||[]).filter(function(v){return!y(v.node)}).forEach(function(v){var p=v.key,n=_.has(p);W&&!n&&(W=!1),!m&&(n||B.has(p))&&(m=!0)}),W||_.delete(x.key),m&&B.add(x.key),l.add(x.key)})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(E(B,_))}}function o(X,P,i,k){var y=[],_;k?_=k:_=G;var B=new Set(X.filter(function(O){var u=!!i[O];return u||y.push(O),u})),T=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],C=u.level,x=T.get(C);x||(x=new Set,T.set(C,x)),x.add(u),s=Math.max(s,C)}),Object(g.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return P===!0?l=q(B,T,s,_):l=j(B,P.halfCheckedKeys,T,s,_),l}},OZM5:function(he,A,t){"use strict";t.d(A,"b",function(){return k}),t.d(A,"a",function(){return y}),t.d(A,"k",function(){return _}),t.d(A,"h",function(){return B}),t.d(A,"i",function(){return T}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return l}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return x}),t.d(A,"e",function(){return h}),t.d(A,"f",function(){return W});var g=t("KQm4"),E=t("U8pU"),G=t("Ff2n"),q=t("q1tI"),j=t.n(q),o=t("Kwbf"),X=t("WaYH"),P=.25,i=2;function k(m,v){var p=m.slice(),n=p.indexOf(v);return n>=0&&p.splice(n,1),p}function y(m,v){var p=m.slice();return p.indexOf(v)===-1&&p.push(v),p}function _(m){return m.split("-")}function B(m,v){return"".concat(m,"-").concat(v)}function T(m){return m&&m.type&&m.type.isTreeNode}function s(m,v){var p=[m],n=v[m];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(d){var c=d.key,f=d.children;p.push(c),a(f)})}return a(n.children),p}function l(m,v){var p=m.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,d=n.height,c=Math.max(d*P,i);return p<=a+c?-1:p>=e-c?1:0}function O(m,v){if(!m)return;var p=v.multiple;return p?m.slice():m.length?[m[0]]:m}var u=function(v){return v};function C(m,v){if(!m)return[];var p=v||{},n=p.processProps,a=n===void 0?u:n,e=Array.isArray(m)?m:[m];return e.map(function(d){var c=d.children,f=Object(G.a)(d,["children"]),I=C(c,v);return j.a.createElement(X.a,Object.assign({},a(f)),I)})}function x(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(E.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var p=new Set;function n(a){if(p.has(a))return;var e=v[a];if(!e)return;p.add(a);var d=e.parent,c=e.node;if(c.disabled)return;d&&n(d.key)}return(m||[]).forEach(function(a){n(a)}),Object(g.a)(p)}function W(m){var v={};return Object.keys(m).forEach(function(p){(p.startsWith("data-")||p.startsWith("aria-"))&&(v[p]=m[p])}),v}},"SA+Z":function(he,A,t){var g=t("wTVA"),E=t("EbDI"),G=t("ZhPi"),q=t("wkBT");function j(o){return g(o)||E(o)||G(o)||q()}he.exports=j,he.exports.__esModule=!0,he.exports.default=he.exports},WaYH:function(he,A,t){"use strict";var g=t("rePB"),E=t("Ff2n"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("JX7q"),X=t("Ji7U"),P=t("LK+K"),i=t("q1tI"),k=t("TSYQ"),y=t.n(k),_=t("sboe"),B=t("OZM5"),T=function(v){var p=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var d="".concat(p,"-indent-unit"),c=[],f=0;f0&&_.a.createElement(q.a,{dataSource:e==null?void 0:e.student,pagination:!1,columns:Q}),_.a.createElement("aside",{className:"tc mb50 mt30 mb20"},_.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(H,L){F(H)},current:I||1,defaultPageSize:10,total:e==null?void 0:e.count})))}A.default=Object(C.a)(function(W){var m=W.user;return{user:m}})(h)},fyJ8:function(he,A,t){"use strict";var g=t("rePB"),E=t("VTBJ"),G=t("Ff2n"),q=t("U8pU"),j=t("q1tI"),o=t.n(j),X=t("TSYQ"),P=t.n(X),i=t("c+Xe"),k=t("sR1s");function y(l){return l&&Object(q.a)(l)==="object"&&!Array.isArray(l)&&!j.isValidElement(l)}function _(l){return typeof l=="string"?!0:Object(i.c)(l)}function B(l,O){var u,C=l.prefixCls,x=l.className,h=l.record,W=l.index,m=l.dataIndex,v=l.render,p=l.children,n=l.component,a=n===void 0?"td":n,e=l.colSpan,d=l.rowSpan,c=l.fixLeft,f=l.fixRight,I=l.firstFixLeft,b=l.lastFixLeft,F=l.firstFixRight,V=l.lastFixRight,Q=l.appendNode,ae=l.additionalProps,H=ae===void 0?{}:ae,L=l.ellipsis,ee=l.align,te=l.rowType,ue=l.isSticky,re="".concat(C,"-cell"),Ce,Z;if(p)Z=p;else{var Ne=Object(k.b)(h,m);if(Z=Ne,v){var je=v(Ne,h,W);y(je)?(Z=je.children,Ce=je.props):Z=je}}Object(q.a)(Z)==="object"&&!Array.isArray(Z)&&!j.isValidElement(Z)&&(Z=null),L&&(b||F)&&(Z=j.createElement("span",{className:"".concat(re,"-content")},Z));var be=Ce||{},Me=be.colSpan,ie=be.rowSpan,Ae=be.style,we=be.className,ce=Object(G.a)(be,["colSpan","rowSpan","style","className"]),Ee=Me!==void 0?Me:e,We=ie!==void 0?ie:d;if(Ee===0||We===0)return null;var Ue={},ke=typeof c=="number",Ye=typeof f=="number";ke&&(Ue.position="sticky",Ue.left=c),Ye&&(Ue.position="sticky",Ue.right=f);var _e={};ee&&(_e.textAlign=ee);var de,fe=L===!0?{showTitle:!0}:L;fe&&(fe.showTitle||te==="header")&&(typeof Z=="string"||typeof Z=="number"?de=Z.toString():j.isValidElement(Z)&&typeof Z.props.children=="string"&&(de=Z.props.children));var Qe=Object(E.a)(Object(E.a)(Object(E.a)({title:de},ce),H),{},{colSpan:Ee&&Ee!==1?Ee:null,rowSpan:We&&We!==1?We:null,className:P()(re,x,(u={},Object(g.a)(u,"".concat(re,"-fix-left"),ke),Object(g.a)(u,"".concat(re,"-fix-left-first"),I),Object(g.a)(u,"".concat(re,"-fix-left-last"),b),Object(g.a)(u,"".concat(re,"-fix-right"),Ye),Object(g.a)(u,"".concat(re,"-fix-right-first"),F),Object(g.a)(u,"".concat(re,"-fix-right-last"),V),Object(g.a)(u,"".concat(re,"-ellipsis"),L),Object(g.a)(u,"".concat(re,"-with-append"),Q),Object(g.a)(u,"".concat(re,"-fix-sticky"),(ke||Ye)&&ue),u),H.className,we),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},H.style),_e),Ue),Ae),ref:_(a)?O:null});return j.createElement(a,Object.assign({},Qe),Q,Z)}var T=j.forwardRef(B);T.displayName="Cell";var s=j.memo(T,function(l,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,l.record):!1});A.a=s},hW8S:function(he,A,t){"use strict";t.d(A,"a",function(){return q}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return o});var g=t("VTBJ"),E=t("Ff2n"),G=t("Kwbf"),q="RC_TABLE_INTERNAL_COL_DEFINE";function j(X){var P=X.expandable,i=Object(E.a)(X,["expandable"]);return"expandable"in X?Object(g.a)(Object(g.a)({},i),P):i}function o(X){return Object.keys(X).reduce(function(P,i){return(i.substr(0,5)==="data-"||i.substr(0,5)==="aria-")&&(P[i]=X[i]),P},{})}},n6Qo:function(he,A,t){"use strict";t.d(A,"a",function(){return P});var g=t("q1tI"),E=t("biw7"),G=t("fyJ8");function q(i){var k=i.className,y=i.index,_=i.children,B=i.colSpan,T=i.rowSpan,s=g.useContext(E.a),l=s.prefixCls,O=s.fixedInfoList,u=O[y];return g.createElement(G.a,Object.assign({className:k,index:y,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:_,props:{colSpan:B,rowSpan:T}}}},u))}function j(i){return g.createElement("tr",Object.assign({},i))}function o(i){var k=i.children,y=g.useContext(E.a),_=y.prefixCls;return g.createElement("tfoot",{className:"".concat(_,"-summary")},k)}var X=A.b=o,P={Cell:q,Row:j}},sR1s:function(he,A,t){"use strict";t.d(A,"b",function(){return q}),t.d(A,"a",function(){return j}),t.d(A,"c",function(){return o}),t.d(A,"d",function(){return X});var g=t("U8pU"),E="RC_TABLE_KEY";function G(P){return P==null?[]:Array.isArray(P)?P:[P]}function q(P,i){if(!i&&typeof i!="number")return P;for(var k=G(i),y=P,_=0;_1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(x.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=x[0];if(o.isValidElement(h)&&Object(y.c)(h)){var W=h.ref;x[0]=o.cloneElement(h,{ref:Object(y.a)(W,this.setChildNode)})}return x.length===1?x[0]:x.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(B,"-").concat(v)})})}}]),O}(o.Component);T.displayName="ResizeObserver",A.a=T},wCXF:function(he,A,t){"use strict";t.d(A,"a",function(){return tt});var g=t("rePB"),E=t("VTBJ"),G=t("KQm4"),q=t("U8pU"),j=t("ODXe"),o=t("q1tI"),X=t("TSYQ"),P=t.n(X),i=t("Gytx"),k=t.n(i),y=t("Kwbf"),_=t("t23M"),B=t("qx4F"),T=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),u=t("fyJ8"),C=t("biw7");function x(r,R,N,w,z){var U=N[r]||{},D=N[R]||{},S,M;U.fixed==="left"?S=w.left[r]:D.fixed==="right"&&(M=w.right[R]);var J=!1,K=!1,$=!1,ne=!1,Y=N[R+1],le=N[r-1];if(z==="rtl"){if(S!==void 0){var Oe=le&&le.fixed==="left";ne=!Oe}else if(M!==void 0){var ve=Y&&Y.fixed==="right";$=!ve}}else if(S!==void 0){var ye=Y&&Y.fixed==="left";J=!ye}else if(M!==void 0){var oe=le&&le.fixed==="right";K=!oe}return{fixLeft:S,fixRight:M,lastFixLeft:J,firstFixRight:K,lastFixRight:$,firstFixLeft:ne,isSticky:w.isSticky}}var h=t("sR1s");function W(r){var R=r.cells,N=r.stickyOffsets,w=r.flattenColumns,z=r.rowComponent,U=r.cellComponent,D=r.onHeaderRow,S=r.index,M=o.useContext(C.a),J=M.prefixCls,K=M.direction,$;D&&($=D(R.map(function(Y){return Y.column}),S));var ne=Object(h.a)(R.map(function(Y){return Y.column}));return o.createElement(z,Object.assign({},$),R.map(function(Y,le){var Oe=Y.column,ve=x(Y.colStart,Y.colEnd,w,N,K),ye;return Oe&&Oe.onHeaderCell&&(ye=Y.column.onHeaderCell(Oe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:Oe.ellipsis,align:Oe.align,component:U,prefixCls:J,key:ne[le]},ve,{additionalProps:ye,rowType:"header"}))}))}W.displayName="HeaderRow";var m=W;function v(r){var R=[];function N(D,S){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var J=S,K=D.filter(Boolean).map(function($){var ne={key:$.key,className:$.className||"",children:$.title,column:$,colStart:J},Y=1,le=$.children;return le&&le.length>0&&(Y=N(le,J,M+1).reduce(function(Oe,ve){return Oe+ve},0),ne.hasSubColumns=!0),"colSpan"in $&&(Y=$.colSpan),"rowSpan"in $&&(ne.rowSpan=$.rowSpan),ne.colSpan=Y,ne.colEnd=ne.colStart+Y-1,R[M].push(ne),J+=Y,Y});return K}N(r,0);for(var w=R.length,z=function(S){R[S].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=w-S)})},U=0;U=0;S-=1){var M=R[S],J=N&&N[S],K=J&&J[a.a];(M||K||D)&&(z.unshift(o.createElement("col",Object.assign({key:S,style:{width:M,minWidth:M}},K))),D=!0)}return o.createElement("colgroup",null,z)}var d=e;function c(r,R){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),ct=1;ct=$&&(Re=$-ne),D({scrollLeft:Re/$*(K+2)}),oe.current.x=se.pageX},Be=function(){var se=Object(Ye.b)(U.current).top,Le=se+U.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Le-Object(B.a)()<=Fe||se>=Fe-S?ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(se){ye(function(Le){return Object(E.a)(Object(E.a)({},Le),{},{scrollLeft:se/K*$||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var xe=Object(ke.a)(document.body,"mouseup",$e,!1),se=Object(ke.a)(document.body,"mousemove",Ge,!1);return Be(),function(){xe.remove(),se.remove()}},[ne,Pe]),o.useEffect(function(){var xe=Object(ke.a)(window,"scroll",Be,!1),se=Object(ke.a)(window,"resize",Be,!1);return function(){xe.remove(),se.remove()}},[]),o.useEffect(function(){ve.isHiddenScrollBar||ye(function(xe){var se,Le;return Object(E.a)(Object(E.a)({},xe),{},{scrollLeft:U.current.scrollLeft/((se=U.current)===null||se===void 0?void 0:se.scrollWidth)*((Le=U.current)===null||Le===void 0?void 0:Le.clientWidth)})})},[ve.isHiddenScrollBar]),K<=$||!ne||ve.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:$,bottom:S},className:"".concat(J,"-sticky-scroll")},o.createElement("div",{onMouseDown:ge,ref:Y,className:P()("".concat(J,"-sticky-scroll-bar"),Object(g.a)({},"".concat(J,"-sticky-scroll-bar-active"),Pe)),style:{width:"".concat(ne,"px"),transform:"translate3d(".concat(ve.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(_e);function fe(r,R){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(R,"-sticky-header"):"",offsetHeader:Object(q.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(q.a)(r)==="object"&&r.offsetScroll||0}},[r,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var R=r.children;return R},function(r,R){return k()(r.props,R.props)?r.pingLeft!==R.pingLeft||r.pingRight!==R.pingRight:!1});function Ve(r){var R,N=r.prefixCls,w=r.className,z=r.rowClassName,U=r.style,D=r.data,S=r.rowKey,M=r.scroll,J=r.tableLayout,K=r.direction,$=r.title,ne=r.footer,Y=r.summary,le=r.id,Oe=r.showHeader,ve=r.components,ye=r.emptyText,oe=r.onRow,Xe=r.onHeaderRow,Te=r.internalHooks,Pe=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,ge=D||Qe,Ge=!!ge.length,Be=o.useState(0),Se=Object(j.a)(Be,2),xe=Se[0],se=Se[1];o.useEffect(function(){se(Object(B.a)())});var Le=o.useMemo(function(){return Object(h.c)(ve,{})},[ve]),Fe=o.useCallback(function(me,pe){return Object(h.b)(Le,me)||pe},[Le]),Je=o.useMemo(function(){return typeof S=="function"?S:function(me){var pe=me&&me[S];return pe}},[S]),Re=Object(a.c)(r),jt=Re.expandIcon,Rt=Re.expandedRowKeys,Nt=Re.defaultExpandedRowKeys,rt=Re.defaultExpandAllRows,it=Re.expandedRowRender,ft=Re.onExpand,mt=Re.onExpandedRowsChange,Pt=Re.expandRowByClick,nt=Re.rowExpandable,Et=Re.expandIconColumnIndex,pt=Re.expandedRowClassName,Kt=Re.childrenColumnName,Tt=Re.indentSize,ht=jt||We,gt=Kt||"children",St=o.useMemo(function(){return it?"row":r.expandable&&Te===tt&&r.expandable.__PARENT_RENDER_ICON__||ge.some(function(me){return me&&Object(q.a)(me)==="object"&&me[gt]})?"nest":!1},[!!it,ge]),Dt=o.useState(function(){return Nt||(rt?Ue(ge,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),dt=o.useCallback(function(me){var pe=Je(me,ge.indexOf(me)),Ke,qe=He.has(pe);qe?(He.delete(pe),Ke=Object(G.a)(He)):Ke=[].concat(Object(G.a)(He),[pe]),at(Ke),ft&&ft(!qe,me),mt&&mt(Ke)},[Je,He,ge,ft,mt]),ct=o.useState(0),Mt=Object(j.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(Z.b)(Object(E.a)(Object(E.a)(Object(E.a)({},r),Re),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:dt,expandIcon:ht,expandIconColumnIndex:Et,direction:K}),Te===tt?Pe:null),Yt=Object(j.a)(vn,2),kt=Yt[0],De=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:De}},[kt,De]),Bt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=be(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return On.get(me)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Ae(on,De.length,K),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&De.some(function(me){var pe=me.fixed;return pe}),rn=o.useRef(),Ut=fe($e,N),Ot=Ut.isSticky,Rn=Ut.offsetHeader,Nn=Ut.offsetScroll,Pn=Ut.stickyClassName,Wt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:M.y}),lt&&(Wt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(me,pe){xn(function(Ke){var qe=new Map(Ke);return qe.set(me,pe),qe})},[]),Tn=Me(null),sn=Object(j.a)(Tn,2),Sn=sn[0],dn=sn[1];function Ft(me,pe){if(!pe)return;typeof pe=="function"?pe(me):pe.scrollLeft!==me&&(pe.scrollLeft=me)}var vt=function(pe){var Ke=pe.currentTarget,qe=pe.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!dn()||dn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(E.a)(l),Object(E.a)(y(x).map(function(h){return Object(G.a)({fixed:C},h)}))):[].concat(Object(E.a)(l),[Object(G.a)(Object(G.a)({},O),{},{fixed:C})])},[])}function _(s){for(var l=!0,O=0;O=0;x-=1){var h=s[x];if(C&&h.fixed!=="right")C=!1;else if(!C&&h.fixed==="right"){Object(X.a)(!1,"Index ".concat(x+1," of `columns` missing `fixed='right'` prop."));break}}}function B(s){return s.map(function(l){var O=l.fixed,u=Object(q.a)(l,["fixed"]),C=O;return O==="left"?C="right":O==="right"&&(C="left"),Object(G.a)({fixed:C},u)})}function T(s,l){var O=s.prefixCls,u=s.columns,C=s.children,x=s.expandable,h=s.expandedKeys,W=s.getRowKey,m=s.onTriggerExpand,v=s.expandIcon,p=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,d=j.useMemo(function(){return u||k(C)},[u,C]),c=j.useMemo(function(){if(x){var b,F=n||0,V=d[F],Q=(b={},Object(g.a)(b,i.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(b,"title",""),Object(g.a)(b,"fixed",V?V.fixed:null),Object(g.a)(b,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(b,"render",function(L,ee,te){var ue=W(ee,te),re=h.has(ue),Ce=p?p(ee):!0,Z=v({prefixCls:O,expanded:re,expandable:Ce,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(je){return je.stopPropagation()}},Z):Z}),b),ae=d.slice();return F>=0&&ae.splice(F,0,Q),ae}return d},[x,d,W,h,v,a]),f=j.useMemo(function(){var b=c;return l&&(b=l(b)),b.length||(b=[{render:function(){return null}}]),b},[l,c,a]),I=j.useMemo(function(){return a==="rtl"?B(y(f)):y(f)},[f,a]);return[f,I]}A.b=T},"y0+3":function(he,A,t){"use strict";t.d(A,"a",function(){return y}),t.d(A,"b",function(){return B});var g=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},G={cssFloat:1,styleFloat:1,float:1};function q(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function j(T,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return T.offsetHeight;if(s==="width")return T.offsetWidth}return s in E||(E[s]=g.test(s)),E[s]?parseFloat(l)||0:l}function o(T,s){var l=arguments.length,O=q(T);return s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,l===1?O:j(T,s,O[s]||T.style[s])}function X(T,s,l){var O=arguments.length;if(s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),T.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&X(T,u,s[u]);return q(T)}function P(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function i(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function k(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:s}}function y(){var T=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:s}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function B(T){var s=T.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[101,8],{"2TgF":function(he,A,t){he.exports={divback:"divback___19CJW",title:"title___2aAOE",divstyle:"divstyle___1ehDw"}},"6+eU":function(he,A,t){"use strict";t.d(A,"a",function(){return m});var g=t("wx14"),E=t("rePB"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("Ji7U"),X=t("LK+K"),P=t("q1tI"),i=t.n(P),B=t("TSYQ"),y=t.n(B),_=function(p){var n,a="".concat(p.rootPrefixCls,"-item"),e=y()(a,"".concat(a,"-").concat(p.page),(n={},Object(E.a)(n,"".concat(a,"-active"),p.active),Object(E.a)(n,p.className,!!p.className),Object(E.a)(n,"".concat(a,"-disabled"),!p.page),n)),d=function(){p.onClick(p.page)},c=function(I){p.onKeyPress(I,p.onClick,p.page)};return i.a.createElement("li",{title:p.showTitle?p.page:null,className:e,onClick:d,onKeyPress:c,tabIndex:"0"},p.itemRender(p.page,"page",i.a.createElement("a",{rel:"nofollow"},p.page)))},W=_,T={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(){var a;Object(q.a)(this,n);for(var e=arguments.length,d=new Array(e),c=0;c=0||f.relatedTarget.className.indexOf("".concat(V,"-next"))>=0))return;a.setState({goInputText:""}),F(a.getValidValue())},a.go=function(f){var I=a.state.goInputText;if(I==="")return;(f.keyCode===T.ENTER||f.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(j.a)(n,[{key:"getValidValue",value:function(){var e=this.state,d=e.goInputText,c=e.current;return!d||isNaN(d)?c:Number(d)}},{key:"getPageSizeOptions",value:function(){var e=this.props,d=e.pageSize,c=e.pageSizeOptions;return c.some(function(f){return f.toString()===d.toString()})?c:c.concat([d.toString()]).sort(function(f,I){var b=isNaN(Number(f))?0:Number(f),F=isNaN(Number(I))?0:Number(I);return b-F})}},{key:"render",value:function(){var e=this,d=this.props,c=d.pageSize,f=d.locale,I=d.rootPrefixCls,b=d.changeSize,F=d.quickGo,V=d.goButton,Q=d.selectComponentClass,ae=d.buildOptionText,H=d.selectPrefixCls,L=d.disabled,ee=this.state.goInputText,te="".concat(I,"-options"),ue=Q,re=null,Ce=null,Z=null;if(!b&&!F)return null;var Ne=this.getPageSizeOptions();if(b&&ue){var je=Ne.map(function(be,Me){return i.a.createElement(ue.Option,{key:Me,value:be.toString()},(ae||e.buildOptionText)(be))});re=i.a.createElement(ue,{disabled:L,prefixCls:H,showSearch:!1,className:"".concat(te,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Me){return Me.parentNode}},je)}return F&&(V&&(Z=typeof V=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:L,className:"".concat(te,"-quick-jumper-button")},f.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},V)),Ce=i.a.createElement("div",{className:"".concat(te,"-quick-jumper")},f.jump_to,i.a.createElement("input",{disabled:L,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,Z)),i.a.createElement("li",{className:"".concat(te)},re,Ce)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function u(){}function C(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function x(v,p,n){return n}function h(v,p,n){var a=typeof v=="undefined"?p.pageSize:v;return Math.floor((n.total-1)/a)+1}var k=function(v){Object(o.a)(n,v);var p=Object(X.a)(n);function n(a){var e;Object(q.a)(this,n),e=p.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(b,F){var V=e.props.prefixCls,Q=b||i.a.createElement("button",{type:"button","aria-label":F,className:"".concat(V,"-item-link")});return typeof b=="function"&&(Q=i.a.createElement(b,Object(G.a)({},e.props))),Q},e.savePaginationNode=function(b){e.paginationNode=b},e.isValid=function(b){return C(b)&&b!==e.state.current},e.shouldDisplayQuickJumper=function(){var b=e.props,F=b.showQuickJumper,V=b.pageSize,Q=b.total;return Q<=V?!1:F},e.handleKeyDown=function(b){(b.keyCode===T.ARROW_UP||b.keyCode===T.ARROW_DOWN)&&b.preventDefault()},e.handleKeyUp=function(b){var F=e.getValidValue(b),V=e.state.currentInputValue;F!==V&&e.setState({currentInputValue:F}),b.keyCode===T.ENTER?e.handleChange(F):b.keyCode===T.ARROW_UP?e.handleChange(F-1):b.keyCode===T.ARROW_DOWN&&e.handleChange(F+1)},e.changePageSize=function(b){var F=e.state.current,V=h(b,e.state,e.props);F=F>V?V:F,V===0&&(F=e.state.current),typeof b=="number"&&("pageSize"in e.props||e.setState({pageSize:b}),"current"in e.props||e.setState({current:F,currentInputValue:F})),e.props.onShowSizeChange(F,b),"onChange"in e.props&&e.props.onChange&&e.props.onChange(F,b)},e.handleChange=function(b){var F=e.props.disabled,V=b;if(e.isValid(V)&&!F){var Q=h(void 0,e.state,e.props);V>Q?V=Q:V<1&&(V=1),"current"in e.props||e.setState({current:V,currentInputValue:V});var ae=e.state.pageSize;return e.props.onChange(V,ae),V}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?V-2:0),ae=2;ae=c?I=c:I=Number(d),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,d=e.showSizeChanger,c=e.total,f=e.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:c>f}},{key:"renderPrev",value:function(e){var d=this.props,c=d.prevIcon,f=d.itemRender,I=f(e,"prev",this.getItemIcon(c,"prev page")),b=!this.hasPrev();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"renderNext",value:function(e){var d=this.props,c=d.nextIcon,f=d.itemRender,I=f(e,"next",this.getItemIcon(c,"next page")),b=!this.hasNext();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:b}):I}},{key:"render",value:function(){var e=this,d=this.props,c=d.prefixCls,f=d.className,I=d.style,b=d.disabled,F=d.hideOnSinglePage,V=d.total,Q=d.locale,ae=d.showQuickJumper,H=d.showLessItems,L=d.showTitle,ee=d.showTotal,te=d.simple,ue=d.itemRender,re=d.showPrevNextJumpers,Ce=d.jumpPrevIcon,Z=d.jumpNextIcon,Ne=d.selectComponentClass,je=d.selectPrefixCls,be=d.pageSizeOptions,Me=this.state,ie=Me.current,Ae=Me.pageSize,we=Me.currentInputValue;if(F===!0&&V<=Ae)return null;var ce=h(void 0,this.state,this.props),Ee=[],ke=null,Ue=null,Be=null,Ye=null,_e=null,de=ae&&ae.goButton,fe=H?1:2,Qe=ie-1>0?ie-1:0,et=ie+1=fe*2&&ie!==1+2&&(Ee[0]=Object(P.cloneElement)(Ee[0],{className:"".concat(c,"-item-after-jump-prev")}),Ee.unshift(ke)),ce-ie>=fe*2&&ie!==ce-2&&(Ee[Ee.length-1]=Object(P.cloneElement)(Ee[Ee.length-1],{className:"".concat(c,"-item-before-jump-next")}),Ee.push(Ue)),N!==1&&Ee.unshift(Be),w!==ce&&Ee.push(Ye)}var D=null;ee&&(D=i.a.createElement("li",{className:"".concat(c,"-total-text")},ee(V,[V===0?0:(ie-1)*Ae+1,ie*Ae>V?V:ie*Ae])));var S=!this.hasPrev()||!ce,M=!this.hasNext()||!ce;return i.a.createElement("ul",Object(g.a)({className:y()(c,f,Object(E.a)({},"".concat(c,"-disabled"),b)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},tt),D,i.a.createElement("li",{title:L?Q.prev_page:null,onClick:this.prev,tabIndex:S?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(c,"-prev"),Object(E.a)({},"".concat(c,"-disabled"),S)),"aria-disabled":S},this.renderPrev(Qe)),Ee,i.a.createElement("li",{title:L?Q.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(c,"-next"),Object(E.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),i.a.createElement(l,{disabled:b,locale:Q,rootPrefixCls:c,selectComponentClass:Ne,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Ae,pageSizeOptions:be,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,d){var c={};if("current"in e&&(c.current=e.current,e.current!==d.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==d.pageSize){var f=d.current,I=h(e.pageSize,d,e);f=f>I?I:f,"current"in e||(c.current=f,c.currentInputValue=f),c.pageSize=e.pageSize}return c}}]),n}(i.a.Component);k.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:O.a,style:{},itemRender:x,totalBoundaryShowSizeChanger:50};var m=k},"6RRn":function(he,A,t){"use strict";var g=t("wCXF"),E=t("n6Qo");t.d(A,"b",function(){return E.a});var G=t("IBYe"),q=t("6eGT"),j=t("hW8S");t.d(A,"a",function(){return j.a}),A.c=g.b},"6eGT":function(he,A,t){"use strict";function g(E){return null}A.a=g},"815F":function(he,A,t){"use strict";t.d(A,"e",function(){return X}),t.d(A,"c",function(){return i}),t.d(A,"d",function(){return B}),t.d(A,"a",function(){return _}),t.d(A,"f",function(){return W}),t.d(A,"b",function(){return T});var g=t("KQm4"),E=t("VTBJ"),G=t("Ff2n"),q=t("Zm9Q"),j=t("Kwbf"),o=t("OZM5");function X(s,l){return s!=null?s:l}function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(x){var h=x.key,k=x.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(C).concat(h,"]"));var m=String(h);Object(j.a)(!l.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),O(k,"".concat(C).concat(m," > "))})}O(s)}function i(s){function l(O){var u=Object(q.a)(O);return u.map(function(C){if(!Object(o.i)(C))return Object(j.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var x=C.key,h=C.props,k=h.children,m=Object(G.a)(h,["children"]),v=Object(E.a)({key:x},m),p=l(k);return p.length&&(v.children=p),v}).filter(function(C){return C})}return l(s)}function B(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),u=[];function C(x){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return x.map(function(k,m){var v=Object(o.h)(h?h.pos:"0",m),p=X(k.key,v),n=Object(E.a)(Object(E.a)({},k),{},{parent:h,pos:v,children:null,data:k,isStart:[].concat(Object(g.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(g.a)(h?h.isEnd:[]),[m===x.length-1])});return u.push(n),l===!0||O.has(p)?n.children=C(k.children||[],n):n.children=[],n})}return C(s),u}function y(s,l,O){var u;O?typeof O=="string"?u=function(h){return h[O]}:typeof O=="function"&&(u=function(h){return O(h)}):u=function(h,k){return X(h.key,k)};function C(x,h,k){var m=x?x.children:s,v=x?Object(o.h)(k.pos,h):"0";if(x){var p=u(x,v),n={node:x,index:h,pos:v,key:p,parentPos:k.node?k.pos:null,level:k.level+1};l(n)}m&&m.forEach(function(a,e){C(a,e,{node:x,pos:v,level:k?k.level+1:-1})})}C(null)}function _(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,u=l.processEntity,C=l.onProcessFinished,x=arguments.length>2?arguments[2]:void 0,h={},k={},m={posEntities:h,keyEntities:k};return O&&(m=O(m)||m),y(s,function(v){var p=v.node,n=v.index,a=v.pos,e=v.key,d=v.parentPos,c=v.level,f={node:p,index:n,key:e,pos:a,level:c},I=X(e,a);h[a]=f,k[I]=f,f.parent=h[d],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),u&&u(f,m)},x),C&&C(m),m}function W(s,l){var O=l.expandedKeys,u=l.selectedKeys,C=l.loadedKeys,x=l.loadingKeys,h=l.checkedKeys,k=l.halfCheckedKeys,m=l.dragOverNodeKey,v=l.dropPosition,p=l.keyEntities,n=p[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:C.indexOf(s)!==-1,loading:x.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:k.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:m===s&&v===0,dragOverGapTop:m===s&&v===-1,dragOverGapBottom:m===s&&v===1};return a}function T(s){var l=s.data,O=s.expanded,u=s.selected,C=s.checked,x=s.loaded,h=s.loading,k=s.halfChecked,m=s.dragOver,v=s.dragOverGapTop,p=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(E.a)(Object(E.a)({},l),{},{expanded:O,selected:u,checked:C,loaded:x,loading:h,halfChecked:k,dragOver:m,dragOverGapTop:v,dragOverGapBottom:p,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("MNnm"),E="rc-util-key";function G(X){if(X.attachTo)return X.attachTo;var P=document.querySelector("head");return P||document.body}function q(X){var P,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(g.a)())return null;var B=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var y;B.nonce=(y=i.csp)===null||y===void 0?void 0:y.nonce}B.innerHTML=X;var _=G(i),W=_.firstChild;return i.prepend&&_.prepend?_.prepend(B):i.prepend&&W?_.insertBefore(B,W):_.appendChild(B),B}var j=new Map;function o(X,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=G(i);if(!j.has(B)){var y=q("",i),_=y.parentNode;j.set(B,_),_.removeChild(y)}var W=Array.from(j.get(B).children).find(function(u){return u.tagName==="STYLE"&&u[E]===P});if(W){var T,s;if(((T=i.csp)===null||T===void 0?void 0:T.nonce)&&W.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;W.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return W.innerHTML!==X&&(W.innerHTML=X),W}var O=q(X,i);return O[E]=P,O}},BdwD:function(he,A,t){"use strict";var g=t("+L6B"),E=t("2/Rp"),G=t("0Owb"),q=t("k1fw"),j=t("q1tI"),o=t.n(j),X=t("FOrL"),P=t.n(X),i=function(y){var _=y.buttonProps,W=_===void 0?{}:_,T=y.styles,s=T===void 0?{}:T,l=y.customText,O=y.ButtonText,u=y.ButtonClick,C=y.Buttonclass,x=y.ButtonTwo;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(q.a)(Object(q.a)({},{color:"#999",margin:"200px auto"}),s)},o.a.createElement("img",{src:P.a}),o.a.createElement("p",{className:"mt20 font14"},l||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),O&&o.a.createElement(E.a,Object(G.a)({className:C,onClick:u},W),O),x&&x)};A.a=i},FOrL:function(he,A,t){he.exports=t.p+"static/nodata.a6b3f948.png"},IBYe:function(he,A,t){"use strict";function g(E){return null}A.a=g},LdHM:function(he,A,t){"use strict";t.d(A,"b",function(){return x}),t.d(A,"a",function(){return k});var g=t("1OyB"),E=t("vuIU"),G=t("Ji7U"),q=t("LK+K"),j=t("q1tI"),o=t("rePB"),X=t("Ff2n"),P=t("ODXe"),i=t("4IlW"),B=t("bX4T"),y=t("YrtM"),_=t("TSYQ"),W=t.n(_),T=t("+nKL"),s=t("8OUc"),l=function(L,ee){var te=L.prefixCls,ue=L.id,re=L.flattenOptions,Ce=L.childrenAsData,Z=L.values,Ne=L.searchValue,je=L.multiple,be=L.defaultActiveFirstOption,Me=L.height,ie=L.itemHeight,Ae=L.notFoundContent,we=L.open,ce=L.menuItemSelectedIcon,Ee=L.virtual,ke=L.onSelect,Ue=L.onToggleOpen,Be=L.onActiveValue,Ye=L.onScroll,_e=L.onMouseEnter,de="".concat(te,"-item"),fe=Object(y.a)(function(){return re},[we,re],function(U,D){return D[0]&&U[1]!==D[1]}),Qe=j.useRef(null),et=function(D){D.preventDefault()},tt=function(D){Qe.current&&Qe.current.scrollTo({index:D})},st=function(D){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=fe.length,J=0;J1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(H).map(function(ee,te){if(!j.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,re=ee.key,Ce=ee.props,Z=Ce.children,Ne=Object(X.a)(Ce,["children"]);return L||!ue?p(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(re===null?te:re,"__"),label:re},Ne),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),d=t("U8pU"),c=t("Kwbf"),f=t("WKfj");function I(H){var L=H.mode,ee=H.options,te=H.children,ue=H.backfill,re=H.allowClear,Ce=H.placeholder,Z=H.getInputElement,Ne=H.showSearch,je=H.onSearch,be=H.defaultOpen,Me=H.autoFocus,ie=H.labelInValue,Ae=H.value,we=H.inputValue,ce=H.optionLabelProp,Ee=L==="multiple"||L==="tags",ke=Ne!==void 0?Ne:Ee||L==="combobox",Ue=ee||n(te);if(Object(c.a)(L!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),L==="tags"||L==="combobox"){var Be=Ue.some(function(de){return de.options?de.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(L!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(L==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(c.a)(L==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(c.b)(L!=="combobox"||!Z||!re||!Ce,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!ke&&L!=="combobox"&&L!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!be||Me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var Ye=Object(f.d)(Ae);Object(c.a)(!ie||Ye.every(function(de){return Object(d.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!Ee||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(te){var _e=null;Object(v.a)(te).some(function(de){if(!j.isValidElement(de)||!de.type)return!1;var fe=de.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!j.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(_e=et.type,!1)});return!Qe}return _e=fe,!0}),_e&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_e.displayName||_e.name||_e,"`.")),Object(c.a)(we===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=I,F=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:b,fillOptionsWithMissingValue:a.a}),V=function(H){Object(G.a)(ee,H);var L=Object(q.a)(ee);function ee(){var te;return Object(g.a)(this,ee),te=L.apply(this,arguments),te.selectRef=j.createRef(),te.focus=function(){te.selectRef.current.focus()},te.blur=function(){te.selectRef.current.blur()},te}return Object(E.a)(ee,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);V.Option=x,V.OptGroup=k;var Q=V,ae=A.c=Q},NvD2:function(he,A,t){"use strict";t.d(A,"a",function(){return o});var g=t("Kwbf");function E(X,P){var i=new Set;return X.forEach(function(B){P.has(B)||i.add(B)}),i}function G(X){var P=X||{},i=P.disabled,B=P.disableCheckbox,y=P.checkable;return!!(i||B)||y===!1}function q(X,P,i,B){for(var y=new Set(X),_=new Set,W=0;W<=i;W+=1){var T=P.get(W)||new Set;T.forEach(function(u){var C=u.key,x=u.node,h=u.children,k=h===void 0?[]:h;y.has(C)&&!B(x)&&k.filter(function(m){return!B(m.node)}).forEach(function(m){y.add(m.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var O=P.get(l)||new Set;O.forEach(function(u){var C=u.parent,x=u.node;if(B(x)||!u.parent||s.has(u.parent.key))return;if(B(u.parent.node)){s.add(C.key);return}var h=!0,k=!1;(C.children||[]).filter(function(m){return!B(m.node)}).forEach(function(m){var v=m.key,p=y.has(v);h&&!p&&(h=!1),!k&&(p||_.has(v))&&(k=!0)}),h&&y.add(C.key),k&&_.add(C.key),s.add(C.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(E(_,y))}}function j(X,P,i,B,y){for(var _=new Set(X),W=new Set(P),T=0;T<=B;T+=1){var s=i.get(T)||new Set;s.forEach(function(C){var x=C.key,h=C.node,k=C.children,m=k===void 0?[]:k;!_.has(x)&&!W.has(x)&&!y(h)&&m.filter(function(v){return!y(v.node)}).forEach(function(v){_.delete(v.key)})})}W=new Set;for(var l=new Set,O=B;O>=0;O-=1){var u=i.get(O)||new Set;u.forEach(function(C){var x=C.parent,h=C.node;if(y(h)||!C.parent||l.has(C.parent.key))return;if(y(C.parent.node)){l.add(x.key);return}var k=!0,m=!1;(x.children||[]).filter(function(v){return!y(v.node)}).forEach(function(v){var p=v.key,n=_.has(p);k&&!n&&(k=!1),!m&&(n||W.has(p))&&(m=!0)}),k||_.delete(x.key),m&&W.add(x.key),l.add(x.key)})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(E(W,_))}}function o(X,P,i,B){var y=[],_;B?_=B:_=G;var W=new Set(X.filter(function(O){var u=!!i[O];return u||y.push(O),u})),T=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],C=u.level,x=T.get(C);x||(x=new Set,T.set(C,x)),x.add(u),s=Math.max(s,C)}),Object(g.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return P===!0?l=q(W,T,s,_):l=j(W,P.halfCheckedKeys,T,s,_),l}},OZM5:function(he,A,t){"use strict";t.d(A,"b",function(){return B}),t.d(A,"a",function(){return y}),t.d(A,"k",function(){return _}),t.d(A,"h",function(){return W}),t.d(A,"i",function(){return T}),t.d(A,"g",function(){return s}),t.d(A,"c",function(){return l}),t.d(A,"d",function(){return O}),t.d(A,"j",function(){return x}),t.d(A,"e",function(){return h}),t.d(A,"f",function(){return k});var g=t("KQm4"),E=t("U8pU"),G=t("Ff2n"),q=t("q1tI"),j=t.n(q),o=t("Kwbf"),X=t("WaYH"),P=.25,i=2;function B(m,v){var p=m.slice(),n=p.indexOf(v);return n>=0&&p.splice(n,1),p}function y(m,v){var p=m.slice();return p.indexOf(v)===-1&&p.push(v),p}function _(m){return m.split("-")}function W(m,v){return"".concat(m,"-").concat(v)}function T(m){return m&&m.type&&m.type.isTreeNode}function s(m,v){var p=[m],n=v[m];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(d){var c=d.key,f=d.children;p.push(c),a(f)})}return a(n.children),p}function l(m,v){var p=m.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,d=n.height,c=Math.max(d*P,i);return p<=a+c?-1:p>=e-c?1:0}function O(m,v){if(!m)return;var p=v.multiple;return p?m.slice():m.length?[m[0]]:m}var u=function(v){return v};function C(m,v){if(!m)return[];var p=v||{},n=p.processProps,a=n===void 0?u:n,e=Array.isArray(m)?m:[m];return e.map(function(d){var c=d.children,f=Object(G.a)(d,["children"]),I=C(c,v);return j.a.createElement(X.a,Object.assign({},a(f)),I)})}function x(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(E.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var p=new Set;function n(a){if(p.has(a))return;var e=v[a];if(!e)return;p.add(a);var d=e.parent,c=e.node;if(c.disabled)return;d&&n(d.key)}return(m||[]).forEach(function(a){n(a)}),Object(g.a)(p)}function k(m){var v={};return Object.keys(m).forEach(function(p){(p.startsWith("data-")||p.startsWith("aria-"))&&(v[p]=m[p])}),v}},"SA+Z":function(he,A,t){var g=t("wTVA"),E=t("EbDI"),G=t("ZhPi"),q=t("wkBT");function j(o){return g(o)||E(o)||G(o)||q()}he.exports=j,he.exports.__esModule=!0,he.exports.default=he.exports},WaYH:function(he,A,t){"use strict";var g=t("rePB"),E=t("Ff2n"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("JX7q"),X=t("Ji7U"),P=t("LK+K"),i=t("q1tI"),B=t("TSYQ"),y=t.n(B),_=t("sboe"),W=t("OZM5"),T=function(v){var p=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var d="".concat(p,"-indent-unit"),c=[],f=0;f0&&_.a.createElement(q.a,{dataSource:e==null?void 0:e.student,pagination:!1,columns:Q}),_.a.createElement("aside",{className:"tc mb50 mt30 mb20"},_.a.createElement(E.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(H,L){F(H)},current:I||1,defaultPageSize:10,total:e==null?void 0:e.count})))}A.default=Object(C.a)(function(k){var m=k.user;return{user:m}})(h)},fyJ8:function(he,A,t){"use strict";var g=t("rePB"),E=t("VTBJ"),G=t("Ff2n"),q=t("U8pU"),j=t("q1tI"),o=t.n(j),X=t("TSYQ"),P=t.n(X),i=t("c+Xe"),B=t("sR1s");function y(l){return l&&Object(q.a)(l)==="object"&&!Array.isArray(l)&&!j.isValidElement(l)}function _(l){return typeof l=="string"?!0:Object(i.c)(l)}function W(l,O){var u,C=l.prefixCls,x=l.className,h=l.record,k=l.index,m=l.dataIndex,v=l.render,p=l.children,n=l.component,a=n===void 0?"td":n,e=l.colSpan,d=l.rowSpan,c=l.fixLeft,f=l.fixRight,I=l.firstFixLeft,b=l.lastFixLeft,F=l.firstFixRight,V=l.lastFixRight,Q=l.appendNode,ae=l.additionalProps,H=ae===void 0?{}:ae,L=l.ellipsis,ee=l.align,te=l.rowType,ue=l.isSticky,re="".concat(C,"-cell"),Ce,Z;if(p)Z=p;else{var Ne=Object(B.b)(h,m);if(Z=Ne,v){var je=v(Ne,h,k);y(je)?(Z=je.children,Ce=je.props):Z=je}}Object(q.a)(Z)==="object"&&!Array.isArray(Z)&&!j.isValidElement(Z)&&(Z=null),L&&(b||F)&&(Z=j.createElement("span",{className:"".concat(re,"-content")},Z));var be=Ce||{},Me=be.colSpan,ie=be.rowSpan,Ae=be.style,we=be.className,ce=Object(G.a)(be,["colSpan","rowSpan","style","className"]),Ee=Me!==void 0?Me:e,ke=ie!==void 0?ie:d;if(Ee===0||ke===0)return null;var Ue={},Be=typeof c=="number",Ye=typeof f=="number";Be&&(Ue.position="sticky",Ue.left=c),Ye&&(Ue.position="sticky",Ue.right=f);var _e={};ee&&(_e.textAlign=ee);var de,fe=L===!0?{showTitle:!0}:L;fe&&(fe.showTitle||te==="header")&&(typeof Z=="string"||typeof Z=="number"?de=Z.toString():j.isValidElement(Z)&&typeof Z.props.children=="string"&&(de=Z.props.children));var Qe=Object(E.a)(Object(E.a)(Object(E.a)({title:de},ce),H),{},{colSpan:Ee&&Ee!==1?Ee:null,rowSpan:ke&&ke!==1?ke:null,className:P()(re,x,(u={},Object(g.a)(u,"".concat(re,"-fix-left"),Be),Object(g.a)(u,"".concat(re,"-fix-left-first"),I),Object(g.a)(u,"".concat(re,"-fix-left-last"),b),Object(g.a)(u,"".concat(re,"-fix-right"),Ye),Object(g.a)(u,"".concat(re,"-fix-right-first"),F),Object(g.a)(u,"".concat(re,"-fix-right-last"),V),Object(g.a)(u,"".concat(re,"-ellipsis"),L),Object(g.a)(u,"".concat(re,"-with-append"),Q),Object(g.a)(u,"".concat(re,"-fix-sticky"),(Be||Ye)&&ue),u),H.className,we),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},H.style),_e),Ue),Ae),ref:_(a)?O:null});return j.createElement(a,Object.assign({},Qe),Q,Z)}var T=j.forwardRef(W);T.displayName="Cell";var s=j.memo(T,function(l,O){return O.shouldCellUpdate?!O.shouldCellUpdate(O.record,l.record):!1});A.a=s},hW8S:function(he,A,t){"use strict";t.d(A,"a",function(){return q}),t.d(A,"c",function(){return j}),t.d(A,"b",function(){return o});var g=t("VTBJ"),E=t("Ff2n"),G=t("Kwbf"),q="RC_TABLE_INTERNAL_COL_DEFINE";function j(X){var P=X.expandable,i=Object(E.a)(X,["expandable"]);return"expandable"in X?Object(g.a)(Object(g.a)({},i),P):i}function o(X){return Object.keys(X).reduce(function(P,i){return(i.substr(0,5)==="data-"||i.substr(0,5)==="aria-")&&(P[i]=X[i]),P},{})}},n6Qo:function(he,A,t){"use strict";t.d(A,"a",function(){return P});var g=t("q1tI"),E=t("biw7"),G=t("fyJ8");function q(i){var B=i.className,y=i.index,_=i.children,W=i.colSpan,T=i.rowSpan,s=g.useContext(E.a),l=s.prefixCls,O=s.fixedInfoList,u=O[y];return g.createElement(G.a,Object.assign({className:B,index:y,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:_,props:{colSpan:W,rowSpan:T}}}},u))}function j(i){return g.createElement("tr",Object.assign({},i))}function o(i){var B=i.children,y=g.useContext(E.a),_=y.prefixCls;return g.createElement("tfoot",{className:"".concat(_,"-summary")},B)}var X=A.b=o,P={Cell:q,Row:j}},sR1s:function(he,A,t){"use strict";t.d(A,"b",function(){return q}),t.d(A,"a",function(){return j}),t.d(A,"c",function(){return o}),t.d(A,"d",function(){return X});var g=t("U8pU"),E="RC_TABLE_KEY";function G(P){return P==null?[]:Array.isArray(P)?P:[P]}function q(P,i){if(!i&&typeof i!="number")return P;for(var B=G(i),y=P,_=0;_1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(x.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=x[0];if(o.isValidElement(h)&&Object(y.c)(h)){var k=h.ref;x[0]=o.cloneElement(h,{ref:Object(y.a)(k,this.setChildNode)})}return x.length===1?x[0]:x.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(W,"-").concat(v)})})}}]),O}(o.Component);T.displayName="ResizeObserver",A.a=T},wCXF:function(he,A,t){"use strict";t.d(A,"a",function(){return tt});var g=t("rePB"),E=t("VTBJ"),G=t("KQm4"),q=t("U8pU"),j=t("ODXe"),o=t("q1tI"),X=t("TSYQ"),P=t.n(X),i=t("Gytx"),B=t.n(i),y=t("Kwbf"),_=t("t23M"),W=t("qx4F"),T=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),u=t("fyJ8"),C=t("biw7");function x(r,R,N,w,z){var U=N[r]||{},D=N[R]||{},S,M;U.fixed==="left"?S=w.left[r]:D.fixed==="right"&&(M=w.right[R]);var J=!1,K=!1,$=!1,ne=!1,Y=N[R+1],le=N[r-1];if(z==="rtl"){if(S!==void 0){var Oe=le&&le.fixed==="left";ne=!Oe}else if(M!==void 0){var ve=Y&&Y.fixed==="right";$=!ve}}else if(S!==void 0){var ye=Y&&Y.fixed==="left";J=!ye}else if(M!==void 0){var oe=le&&le.fixed==="right";K=!oe}return{fixLeft:S,fixRight:M,lastFixLeft:J,firstFixRight:K,lastFixRight:$,firstFixLeft:ne,isSticky:w.isSticky}}var h=t("sR1s");function k(r){var R=r.cells,N=r.stickyOffsets,w=r.flattenColumns,z=r.rowComponent,U=r.cellComponent,D=r.onHeaderRow,S=r.index,M=o.useContext(C.a),J=M.prefixCls,K=M.direction,$;D&&($=D(R.map(function(Y){return Y.column}),S));var ne=Object(h.a)(R.map(function(Y){return Y.column}));return o.createElement(z,Object.assign({},$),R.map(function(Y,le){var Oe=Y.column,ve=x(Y.colStart,Y.colEnd,w,N,K),ye;return Oe&&Oe.onHeaderCell&&(ye=Y.column.onHeaderCell(Oe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:Oe.ellipsis,align:Oe.align,component:U,prefixCls:J,key:ne[le]},ve,{additionalProps:ye,rowType:"header"}))}))}k.displayName="HeaderRow";var m=k;function v(r){var R=[];function N(D,S){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var J=S,K=D.filter(Boolean).map(function($){var ne={key:$.key,className:$.className||"",children:$.title,column:$,colStart:J},Y=1,le=$.children;return le&&le.length>0&&(Y=N(le,J,M+1).reduce(function(Oe,ve){return Oe+ve},0),ne.hasSubColumns=!0),"colSpan"in $&&(Y=$.colSpan),"rowSpan"in $&&(ne.rowSpan=$.rowSpan),ne.colSpan=Y,ne.colEnd=ne.colStart+Y-1,R[M].push(ne),J+=Y,Y});return K}N(r,0);for(var w=R.length,z=function(S){R[S].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=w-S)})},U=0;U=0;S-=1){var M=R[S],J=N&&N[S],K=J&&J[a.a];(M||K||D)&&(z.unshift(o.createElement("col",Object.assign({key:S,style:{width:M,minWidth:M}},K))),D=!0)}return o.createElement("colgroup",null,z)}var d=e;function c(r,R){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),ct=1;ct=$&&(Re=$-ne),D({scrollLeft:Re/$*(K+2)}),oe.current.x=se.pageX},We=function(){var se=Object(Ye.b)(U.current).top,Le=se+U.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Le-Object(W.a)()<=Fe||se>=Fe-S?ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(E.a)(Object(E.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(se){ye(function(Le){return Object(E.a)(Object(E.a)({},Le),{},{scrollLeft:se/K*$||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var xe=Object(Be.a)(document.body,"mouseup",$e,!1),se=Object(Be.a)(document.body,"mousemove",Ge,!1);return We(),function(){xe.remove(),se.remove()}},[ne,Pe]),o.useEffect(function(){var xe=Object(Be.a)(window,"scroll",We,!1),se=Object(Be.a)(window,"resize",We,!1);return function(){xe.remove(),se.remove()}},[]),o.useEffect(function(){ve.isHiddenScrollBar||ye(function(xe){var se,Le;return Object(E.a)(Object(E.a)({},xe),{},{scrollLeft:U.current.scrollLeft/((se=U.current)===null||se===void 0?void 0:se.scrollWidth)*((Le=U.current)===null||Le===void 0?void 0:Le.clientWidth)})})},[ve.isHiddenScrollBar]),K<=$||!ne||ve.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(W.a)(),width:$,bottom:S},className:"".concat(J,"-sticky-scroll")},o.createElement("div",{onMouseDown:ge,ref:Y,className:P()("".concat(J,"-sticky-scroll-bar"),Object(g.a)({},"".concat(J,"-sticky-scroll-bar-active"),Pe)),style:{width:"".concat(ne,"px"),transform:"translate3d(".concat(ve.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(_e);function fe(r,R){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(R,"-sticky-header"):"",offsetHeader:Object(q.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(q.a)(r)==="object"&&r.offsetScroll||0}},[r,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var R=r.children;return R},function(r,R){return B()(r.props,R.props)?r.pingLeft!==R.pingLeft||r.pingRight!==R.pingRight:!1});function Ve(r){var R,N=r.prefixCls,w=r.className,z=r.rowClassName,U=r.style,D=r.data,S=r.rowKey,M=r.scroll,J=r.tableLayout,K=r.direction,$=r.title,ne=r.footer,Y=r.summary,le=r.id,Oe=r.showHeader,ve=r.components,ye=r.emptyText,oe=r.onRow,Xe=r.onHeaderRow,Te=r.internalHooks,Pe=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,ge=D||Qe,Ge=!!ge.length,We=o.useState(0),Se=Object(j.a)(We,2),xe=Se[0],se=Se[1];o.useEffect(function(){se(Object(W.a)())});var Le=o.useMemo(function(){return Object(h.c)(ve,{})},[ve]),Fe=o.useCallback(function(me,pe){return Object(h.b)(Le,me)||pe},[Le]),Je=o.useMemo(function(){return typeof S=="function"?S:function(me){var pe=me&&me[S];return pe}},[S]),Re=Object(a.c)(r),jt=Re.expandIcon,Rt=Re.expandedRowKeys,Nt=Re.defaultExpandedRowKeys,rt=Re.defaultExpandAllRows,it=Re.expandedRowRender,ft=Re.onExpand,mt=Re.onExpandedRowsChange,Pt=Re.expandRowByClick,nt=Re.rowExpandable,Et=Re.expandIconColumnIndex,pt=Re.expandedRowClassName,Kt=Re.childrenColumnName,Tt=Re.indentSize,ht=jt||ke,gt=Kt||"children",St=o.useMemo(function(){return it?"row":r.expandable&&Te===tt&&r.expandable.__PARENT_RENDER_ICON__||ge.some(function(me){return me&&Object(q.a)(me)==="object"&&me[gt]})?"nest":!1},[!!it,ge]),Dt=o.useState(function(){return Nt||(rt?Ue(ge,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),dt=o.useCallback(function(me){var pe=Je(me,ge.indexOf(me)),Ke,qe=He.has(pe);qe?(He.delete(pe),Ke=Object(G.a)(He)):Ke=[].concat(Object(G.a)(He),[pe]),at(Ke),ft&&ft(!qe,me),mt&&mt(Ke)},[Je,He,ge,ft,mt]),ct=o.useState(0),Mt=Object(j.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(Z.b)(Object(E.a)(Object(E.a)(Object(E.a)({},r),Re),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:dt,expandIcon:ht,expandIconColumnIndex:Et,direction:K}),Te===tt?Pe:null),Yt=Object(j.a)(vn,2),Bt=Yt[0],De=Yt[1],Lt=o.useMemo(function(){return{columns:Bt,flattenColumns:De}},[Bt,De]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=be(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return On.get(me)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Ae(on,De.length,K),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&De.some(function(me){var pe=me.fixed;return pe}),rn=o.useRef(),Ut=fe($e,N),Ot=Ut.isSticky,Rn=Ut.offsetHeader,Nn=Ut.offsetScroll,Pn=Ut.stickyClassName,kt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:M.y}),lt&&(kt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(me,pe){xn(function(Ke){var qe=new Map(Ke);return qe.set(me,pe),qe})},[]),Tn=Me(null),sn=Object(j.a)(Tn,2),Sn=sn[0],dn=sn[1];function Ft(me,pe){if(!pe)return;typeof pe=="function"?pe(me):pe.scrollLeft!==me&&(pe.scrollLeft=me)}var vt=function(pe){var Ke=pe.currentTarget,qe=pe.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!dn()||dn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(E.a)(l),Object(E.a)(y(x).map(function(h){return Object(G.a)({fixed:C},h)}))):[].concat(Object(E.a)(l),[Object(G.a)(Object(G.a)({},O),{},{fixed:C})])},[])}function _(s){for(var l=!0,O=0;O=0;x-=1){var h=s[x];if(C&&h.fixed!=="right")C=!1;else if(!C&&h.fixed==="right"){Object(X.a)(!1,"Index ".concat(x+1," of `columns` missing `fixed='right'` prop."));break}}}function W(s){return s.map(function(l){var O=l.fixed,u=Object(q.a)(l,["fixed"]),C=O;return O==="left"?C="right":O==="right"&&(C="left"),Object(G.a)({fixed:C},u)})}function T(s,l){var O=s.prefixCls,u=s.columns,C=s.children,x=s.expandable,h=s.expandedKeys,k=s.getRowKey,m=s.onTriggerExpand,v=s.expandIcon,p=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,d=j.useMemo(function(){return u||B(C)},[u,C]),c=j.useMemo(function(){if(x){var b,F=n||0,V=d[F],Q=(b={},Object(g.a)(b,i.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(b,"title",""),Object(g.a)(b,"fixed",V?V.fixed:null),Object(g.a)(b,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(b,"render",function(L,ee,te){var ue=k(ee,te),re=h.has(ue),Ce=p?p(ee):!0,Z=v({prefixCls:O,expanded:re,expandable:Ce,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(je){return je.stopPropagation()}},Z):Z}),b),ae=d.slice();return F>=0&&ae.splice(F,0,Q),ae}return d},[x,d,k,h,v,a]),f=j.useMemo(function(){var b=c;return l&&(b=l(b)),b.length||(b=[{render:function(){return null}}]),b},[l,c,a]),I=j.useMemo(function(){return a==="rtl"?W(y(f)):y(f)},[f,a]);return[f,I]}A.b=T},"y0+3":function(he,A,t){"use strict";t.d(A,"a",function(){return y}),t.d(A,"b",function(){return W});var g=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},G={cssFloat:1,styleFloat:1,float:1};function q(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function j(T,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return T.offsetHeight;if(s==="width")return T.offsetWidth}return s in E||(E[s]=g.test(s)),E[s]?parseFloat(l)||0:l}function o(T,s){var l=arguments.length,O=q(T);return s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,l===1?O:j(T,s,O[s]||T.style[s])}function X(T,s,l){var O=arguments.length;if(s=G[s]?"cssFloat"in T.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),T.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&X(T,u,s[u]);return q(T)}function P(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function i(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function B(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:s}}function y(){var T=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:s}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function W(T){var s=T.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Students.a4bd600c.async.js b/p__Classrooms__Lists__Students.a4bd600c.async.js index e805d955ed..735727916b 100644 --- a/p__Classrooms__Lists__Students.a4bd600c.async.js +++ b/p__Classrooms__Lists__Students.a4bd600c.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[104,6,8],{"55Ip":function(Oe,X,e){"use strict";e.d(X,"a",function(){return G}),e.d(X,"b",function(){return $});var K=e("Ty5D"),g=e("dI71"),te=e("q1tI"),J=e.n(te),L=e("YS25"),a=e("17x9"),C=e.n(a),N=e("wx14"),E=e("zLVn"),O=e("9R94"),j=function(l){Object(g.a)(o,l);function o(){for(var y,A=arguments.length,D=new Array(A),v=0;v=0||A.relatedTarget.className.indexOf("".concat(m,"-next"))>=0))return;l.setState({goInputText:""}),i(l.getValidValue())},l.go=function(A){var D=l.state.goInputText;if(D==="")return;(A.keyCode===x.ENTER||A.type==="click")&&(l.setState({goInputText:""}),l.props.quickGo(l.getValidValue()))},l}return Object(L.a)(p,[{key:"getValidValue",value:function(){var o=this.state,_=o.goInputText,y=o.current;return!_||isNaN(_)?y:Number(_)}},{key:"getPageSizeOptions",value:function(){var o=this.props,_=o.pageSize,y=o.pageSizeOptions;return y.some(function(A){return A.toString()===_.toString()})?y:y.concat([_.toString()]).sort(function(A,D){var v=isNaN(Number(A))?0:Number(A),i=isNaN(Number(D))?0:Number(D);return v-i})}},{key:"render",value:function(){var o=this,_=this.props,y=_.pageSize,A=_.locale,D=_.rootPrefixCls,v=_.changeSize,i=_.quickGo,m=_.goButton,s=_.selectComponentClass,n=_.buildOptionText,b=_.selectPrefixCls,d=_.disabled,h=this.state.goInputText,I="".concat(D,"-options"),Y=s,ee=null,B=null,z=null;if(!v&&!i)return null;var Q=this.getPageSizeOptions();if(v&&Y){var W=Q.map(function(M,ie){return E.a.createElement(Y.Option,{key:ie,value:M.toString()},(n||o.buildOptionText)(M))});ee=E.a.createElement(Y,{disabled:d,prefixCls:b,showSearch:!1,className:"".concat(I,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(y||Q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ie){return ie.parentNode}},W)}return i&&(m&&(z=typeof m=="boolean"?E.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(I,"-quick-jumper-button")},A.jump_to_confirm):E.a.createElement("span",{onClick:this.go,onKeyUp:this.go},m)),B=E.a.createElement("div",{className:"".concat(I,"-quick-jumper")},A.jump_to,E.a.createElement("input",{disabled:d,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),A.page,z)),E.a.createElement("li",{className:"".concat(I)},ee,B)}}]),p}(E.a.Component);u.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=u,k=e("N2Kk");function P(){}function G(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function Z(F,$,p){return p}function V(F,$,p){var l=typeof F=="undefined"?$.pageSize:F;return Math.floor((p.total-1)/l)+1}var ae=function(F){Object(a.a)(p,F);var $=Object(C.a)(p);function p(l){var o;Object(J.a)(this,p),o=$.call(this,l),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(V(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(v,i){var m=o.props.prefixCls,s=v||E.a.createElement("button",{type:"button","aria-label":i,className:"".concat(m,"-item-link")});return typeof v=="function"&&(s=E.a.createElement(v,Object(te.a)({},o.props))),s},o.savePaginationNode=function(v){o.paginationNode=v},o.isValid=function(v){return G(v)&&v!==o.state.current},o.shouldDisplayQuickJumper=function(){var v=o.props,i=v.showQuickJumper,m=v.pageSize,s=v.total;return s<=m?!1:i},o.handleKeyDown=function(v){(v.keyCode===x.ARROW_UP||v.keyCode===x.ARROW_DOWN)&&v.preventDefault()},o.handleKeyUp=function(v){var i=o.getValidValue(v),m=o.state.currentInputValue;i!==m&&o.setState({currentInputValue:i}),v.keyCode===x.ENTER?o.handleChange(i):v.keyCode===x.ARROW_UP?o.handleChange(i-1):v.keyCode===x.ARROW_DOWN&&o.handleChange(i+1)},o.changePageSize=function(v){var i=o.state.current,m=V(v,o.state,o.props);i=i>m?m:i,m===0&&(i=o.state.current),typeof v=="number"&&("pageSize"in o.props||o.setState({pageSize:v}),"current"in o.props||o.setState({current:i,currentInputValue:i})),o.props.onShowSizeChange(i,v),"onChange"in o.props&&o.props.onChange&&o.props.onChange(i,v)},o.handleChange=function(v){var i=o.props.disabled,m=v;if(o.isValid(m)&&!i){var s=V(void 0,o.state,o.props);m>s?m=s:m<1&&(m=1),"current"in o.props||o.setState({current:m,currentInputValue:m});var n=o.state.pageSize;return o.props.onChange(m,n),m}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?m-2:0),n=2;n=y?D=y:D=Number(_),D}},{key:"getShowSizeChanger",value:function(){var o=this.props,_=o.showSizeChanger,y=o.total,A=o.totalBoundaryShowSizeChanger;return typeof _!="undefined"?_:y>A}},{key:"renderPrev",value:function(o){var _=this.props,y=_.prevIcon,A=_.itemRender,D=A(o,"prev",this.getItemIcon(y,"prev page")),v=!this.hasPrev();return Object(N.isValidElement)(D)?Object(N.cloneElement)(D,{disabled:v}):D}},{key:"renderNext",value:function(o){var _=this.props,y=_.nextIcon,A=_.itemRender,D=A(o,"next",this.getItemIcon(y,"next page")),v=!this.hasNext();return Object(N.isValidElement)(D)?Object(N.cloneElement)(D,{disabled:v}):D}},{key:"render",value:function(){var o=this,_=this.props,y=_.prefixCls,A=_.className,D=_.style,v=_.disabled,i=_.hideOnSinglePage,m=_.total,s=_.locale,n=_.showQuickJumper,b=_.showLessItems,d=_.showTitle,h=_.showTotal,I=_.simple,Y=_.itemRender,ee=_.showPrevNextJumpers,B=_.jumpPrevIcon,z=_.jumpNextIcon,Q=_.selectComponentClass,W=_.selectPrefixCls,M=_.pageSizeOptions,ie=this.state,t=ie.current,c=ie.pageSize,r=ie.currentInputValue;if(i===!0&&m<=c)return null;var R=V(void 0,this.state,this.props),H=[],ne=null,ce=null,ge=null,Re=null,ye=null,fe=n&&n.goButton,be=b?1:2,ke=t-1>0?t-1:0,Be=t+1=be*2&&t!==1+2&&(H[0]=Object(N.cloneElement)(H[0],{className:"".concat(y,"-item-after-jump-prev")}),H.unshift(ne)),R-t>=be*2&&t!==R-2&&(H[H.length-1]=Object(N.cloneElement)(H[H.length-1],{className:"".concat(y,"-item-before-jump-next")}),H.push(ce)),re!==1&&H.unshift(ge),me!==R&&H.push(Re)}var q=null;h&&(q=E.a.createElement("li",{className:"".concat(y,"-total-text")},h(m,[m===0?0:(t-1)*c+1,t*c>m?m:t*c])));var le=!this.hasPrev()||!R,ue=!this.hasNext()||!R;return E.a.createElement("ul",Object(K.a)({className:j()(y,A,Object(g.a)({},"".concat(y,"-disabled"),v)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},Ge),q,E.a.createElement("li",{title:d?s.prev_page:null,onClick:this.prev,tabIndex:le?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(y,"-prev"),Object(g.a)({},"".concat(y,"-disabled"),le)),"aria-disabled":le},this.renderPrev(ke)),H,E.a.createElement("li",{title:d?s.next_page:null,onClick:this.next,tabIndex:ue?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(y,"-next"),Object(g.a)({},"".concat(y,"-disabled"),ue)),"aria-disabled":ue},this.renderNext(Be)),E.a.createElement(f,{disabled:v,locale:s,rootPrefixCls:y,selectComponentClass:Q,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:t,pageSize:c,pageSizeOptions:M,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:fe}))}}],[{key:"getDerivedStateFromProps",value:function(o,_){var y={};if("current"in o&&(y.current=o.current,o.current!==_.current&&(y.currentInputValue=y.current)),"pageSize"in o&&o.pageSize!==_.pageSize){var A=_.current,D=V(o.pageSize,_,o);A=A>D?D:A,"current"in o||(y.current=A,y.currentInputValue=A),y.pageSize=o.pageSize}return y}}]),p}(E.a.Component);ae.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:P,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:P,locale:k.a,style:{},itemRender:Z,totalBoundaryShowSizeChanger:50};var w=ae},"6RRn":function(Oe,X,e){"use strict";var K=e("wCXF"),g=e("n6Qo");e.d(X,"b",function(){return g.a});var te=e("IBYe"),J=e("6eGT"),L=e("hW8S");e.d(X,"a",function(){return L.a}),X.c=K.b},"6eGT":function(Oe,X,e){"use strict";function K(g){return null}X.a=K},"815F":function(Oe,X,e){"use strict";e.d(X,"e",function(){return C}),e.d(X,"c",function(){return E}),e.d(X,"d",function(){return O}),e.d(X,"a",function(){return T}),e.d(X,"f",function(){return U}),e.d(X,"b",function(){return x});var K=e("KQm4"),g=e("VTBJ"),te=e("Ff2n"),J=e("Zm9Q"),L=e("Kwbf"),a=e("OZM5");function C(u,f){return u!=null?u:f}function N(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function k(P){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(P||[]).forEach(function(Z){var V=Z.key,ae=Z.children;Object(L.a)(V!=null,"Tree node must have a certain key: [".concat(G).concat(V,"]"));var w=String(V);Object(L.a)(!f.has(w)||V===null||V===void 0,"Same 'key' exist in the Tree: ".concat(w)),f.set(w,!0),k(ae,"".concat(G).concat(w," > "))})}k(u)}function E(u){function f(k){var P=Object(J.a)(k);return P.map(function(G){if(!Object(a.i)(G))return Object(L.a)(!G,"Tree/TreeNode can only accept TreeNode as children."),null;var Z=G.key,V=G.props,ae=V.children,w=Object(te.a)(V,["children"]),F=Object(g.a)({key:Z},w),$=f(ae);return $.length&&(F.children=$),F}).filter(function(G){return G})}return f(u)}function O(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],k=new Set(f===!0?[]:f),P=[];function G(Z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Z.map(function(ae,w){var F=Object(a.h)(V?V.pos:"0",w),$=C(ae.key,F),p=Object(g.a)(Object(g.a)({},ae),{},{parent:V,pos:F,children:null,data:ae,isStart:[].concat(Object(K.a)(V?V.isStart:[]),[w===0]),isEnd:[].concat(Object(K.a)(V?V.isEnd:[]),[w===Z.length-1])});return P.push(p),f===!0||k.has($)?p.children=G(ae.children||[],p):p.children=[],p})}return G(u),P}function j(u,f,k){var P;k?typeof k=="string"?P=function(V){return V[k]}:typeof k=="function"&&(P=function(V){return k(V)}):P=function(V,ae){return C(V.key,ae)};function G(Z,V,ae){var w=Z?Z.children:u,F=Z?Object(a.h)(ae.pos,V):"0";if(Z){var $=P(Z,F),p={node:Z,index:V,pos:F,key:$,parentPos:ae.node?ae.pos:null,level:ae.level+1};f(p)}w&&w.forEach(function(l,o){G(l,o,{node:Z,pos:F,level:ae?ae.level+1:-1})})}G(null)}function T(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=f.initWrapper,P=f.processEntity,G=f.onProcessFinished,Z=arguments.length>2?arguments[2]:void 0,V={},ae={},w={posEntities:V,keyEntities:ae};return k&&(w=k(w)||w),j(u,function(F){var $=F.node,p=F.index,l=F.pos,o=F.key,_=F.parentPos,y=F.level,A={node:$,index:p,key:o,pos:l,level:y},D=C(o,l);V[l]=A,ae[D]=A,A.parent=V[_],A.parent&&(A.parent.children=A.parent.children||[],A.parent.children.push(A)),P&&P(A,w)},Z),G&&G(w),w}function U(u,f){var k=f.expandedKeys,P=f.selectedKeys,G=f.loadedKeys,Z=f.loadingKeys,V=f.checkedKeys,ae=f.halfCheckedKeys,w=f.dragOverNodeKey,F=f.dropPosition,$=f.keyEntities,p=$[u],l={eventKey:u,expanded:k.indexOf(u)!==-1,selected:P.indexOf(u)!==-1,loaded:G.indexOf(u)!==-1,loading:Z.indexOf(u)!==-1,checked:V.indexOf(u)!==-1,halfChecked:ae.indexOf(u)!==-1,pos:String(p?p.pos:""),dragOver:w===u&&F===0,dragOverGapTop:w===u&&F===-1,dragOverGapBottom:w===u&&F===1};return l}function x(u){var f=u.data,k=u.expanded,P=u.selected,G=u.checked,Z=u.loaded,V=u.loading,ae=u.halfChecked,w=u.dragOver,F=u.dragOverGapTop,$=u.dragOverGapBottom,p=u.pos,l=u.active,o=Object(g.a)(Object(g.a)({},f),{},{expanded:k,selected:P,checked:G,loaded:Z,loading:V,halfChecked:ae,dragOver:w,dragOverGapTop:F,dragOverGapBottom:$,pos:p,active:l});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(L.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),o}},"8uFS":function(Oe,X,e){"use strict";var K=e("q1tI"),g=e.n(K),te=e("Ty5D"),J=e("9kvl"),L=e("RI+Y"),a=e.n(L),C=function(E){var O=E.children,j=E.active,T=Object(te.i)();return g.a.createElement("div",{className:a.a.ManageHead},g.a.createElement("div",{className:a.a.tabs},g.a.createElement("div",{onClick:function(){return J.d.push("/classrooms/".concat(T.coursesId,"/teachers"))},className:"".concat(a.a.title," ").concat(j===1?a.a.active:"")},"\u6559\u5E08\u5217\u8868"),g.a.createElement("div",{onClick:function(){return J.d.push("/classrooms/".concat(T.coursesId,"/students"))},className:"".concat(a.a.title," ").concat(j===2?a.a.active:"")},"\u5B66\u751F\u5217\u8868")),g.a.createElement("div",null,O))};X.a=C},BU3w:function(Oe,X,e){"use strict";e.d(X,"a",function(){return a});var K=e("MNnm"),g="rc-util-key";function te(C){if(C.attachTo)return C.attachTo;var N=document.querySelector("head");return N||document.body}function J(C){var N,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(K.a)())return null;var O=document.createElement("style");if((N=E.csp)===null||N===void 0?void 0:N.nonce){var j;O.nonce=(j=E.csp)===null||j===void 0?void 0:j.nonce}O.innerHTML=C;var T=te(E),U=T.firstChild;return E.prepend&&T.prepend?T.prepend(O):E.prepend&&U?T.insertBefore(O,U):T.appendChild(O),O}var L=new Map;function a(C,N){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=te(E);if(!L.has(O)){var j=J("",E),T=j.parentNode;L.set(O,T),T.removeChild(j)}var U=Array.from(L.get(O).children).find(function(P){return P.tagName==="STYLE"&&P[g]===N});if(U){var x,u;if(((x=E.csp)===null||x===void 0?void 0:x.nonce)&&U.nonce!==((u=E.csp)===null||u===void 0?void 0:u.nonce)){var f;U.nonce=(f=E.csp)===null||f===void 0?void 0:f.nonce}return U.innerHTML!==C&&(U.innerHTML=C),U}var k=J(C,E);return k[g]=N,k}},BdwD:function(Oe,X,e){"use strict";var K=e("+L6B"),g=e("2/Rp"),te=e("0Owb"),J=e("k1fw"),L=e("q1tI"),a=e.n(L),C=e("FOrL"),N=e.n(C),E=function(j){var T=j.buttonProps,U=T===void 0?{}:T,x=j.styles,u=x===void 0?{}:x,f=j.customText,k=j.ButtonText,P=j.ButtonClick,G=j.Buttonclass,Z=j.ButtonTwo;return a.a.createElement("section",{className:"tc animated fadeIn",style:Object(J.a)(Object(J.a)({},{color:"#999",margin:"200px auto"}),u)},a.a.createElement("img",{src:N.a}),a.a.createElement("p",{className:"mt20 font14"},f||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),k&&a.a.createElement(g.a,Object(te.a)({className:G,onClick:P},U),k),Z&&Z)};X.a=E},FOrL:function(Oe,X,e){Oe.exports=e.p+"static/nodata.a6b3f948.png"},GfqC:function(Oe,X,e){"use strict";var K=e("q1tI"),g=e.n(K),te=e("TSYQ"),J=e.n(te);function L(s,n){var b="cannot "+s.method+" "+s.action+" "+n.status+"'",d=new Error(b);return d.status=n.status,d.method=s.method,d.url=s.action,d}function a(s){var n=s.responseText||s.response;if(!n)return n;try{return JSON.parse(n)}catch(b){return n}}function C(s){var n=new XMLHttpRequest;s.onProgress&&n.upload&&(n.upload.onprogress=function(I){I.total>0&&(I.percent=I.loaded/I.total*100),s.onProgress(I)});var b=new FormData;s.data&&Object.keys(s.data).forEach(function(h){var I=s.data[h];if(Array.isArray(I)){I.forEach(function(Y){b.append(h+"[]",Y)});return}b.append(h,s.data[h])}),s.file instanceof Blob?b.append(s.filename,s.file,s.file.name):b.append(s.filename,s.file),n.onerror=function(I){s.onError(I)},n.onload=function(){return n.status<200||n.status>=300?s.onError(L(s,n),a(n)):s.onSuccess(a(n),n)},n.open(s.method,s.action,!0),s.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var d=s.headers||{};return d["X-Requested-With"]!==null&&n.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(d).forEach(function(h){d[h]!==null&&n.setRequestHeader(h,d[h])}),n.send(b),{abort:function(){n.abort()}}}var N=+new Date,E=0;function O(){return"rc-upload-"+N+"-"+ ++E}function j(s,n){return s.indexOf(n,s.length-n.length)!==-1}var T=function(s,n){if(s&&n){var b=Array.isArray(n)?n:n.split(","),d=s.name||"",h=s.type||"",I=h.replace(/\/.*$/,"");return b.some(function(Y){var ee=Y.trim();return ee.charAt(0)==="."?j(d.toLowerCase(),ee.toLowerCase()):/\/\*$/.test(ee)?I===ee.replace(/\/.*$/,""):h===ee})}return!0};function U(s,n){var b=s.createReader(),d=[];function h(){b.readEntries(function(I){var Y=Array.prototype.slice.apply(I);d=d.concat(Y);var ee=!Y.length;ee?n(d):h()})}h()}var x=function(n,b,d){var h=function I(Y,ee){ee=ee||"",Y.isFile?Y.file(function(B){d(B)&&(Y.fullPath&&!B.webkitRelativePath&&(Object.defineProperties(B,{webkitRelativePath:{writable:!0}}),B.webkitRelativePath=Y.fullPath.replace(/^\//,""),Object.defineProperties(B,{webkitRelativePath:{writable:!1}})),b([B]))}):Y.isDirectory&&U(Y,function(B){B.forEach(function(z){I(z,""+ee+Y.name+"/")})})};n.forEach(function(I){h(I.webkitGetAsEntry())})},u=x,f=Object.assign||function(s){for(var n=1;n=0)continue;if(!Object.prototype.hasOwnProperty.call(s,d))continue;b[d]=s[d]}return b}function V(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function ae(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function w(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var F=function(n){return Object.keys(n).reduce(function(b,d){return(d.substr(0,5)==="data-"||d.substr(0,5)==="aria-"||d==="role")&&(b[d]=n[d]),b},{})},$=function(s){w(n,s);function n(){var b,d,h,I;V(this,n);for(var Y=arguments.length,ee=Array(Y),B=0;B-1?Ce.splice(Ce.indexOf(_e),1):Ce.push(_e),Ce!=null&&Ce.includes("ASSISTANT_PROFESSOR")&&Ce!==null&&Ce!==void 0&&Ce.includes("PROFESSOR")&&(_e==="PROFESSOR"&&Ce.splice(Ce.indexOf("ASSISTANT_PROFESSOR"),1),_e==="ASSISTANT_PROFESSOR"&&Ce.splice(Ce.indexOf("PROFESSOR"),1)),ot(Object(b.a)(Ce))},Rt=[{title:"\u5E8F\u53F7",dataIndex:"name",width:70,align:"center",render:function(_e,Ee,Se){return gt?C.a.createElement(n.a,{onChange:function(Ye){Fe.includes(Ye.target.value)?lt(Object(b.a)(Fe.filter(function(Me){return Me!=Ye.target.value}))):(Fe.push(Ye.target.value),lt(Object(b.a)(Fe)))},value:Ee==null?void 0:Ee.course_member_id,checked:Fe.includes(Ee==null?void 0:Ee.course_member_id)},q.limit*(q.page-1)+Se+1):q.limit*(q.page-1)+Se+1}},{title:"\u59D3\u540D",width:110,align:"center",dataIndex:"name",render:function(_e,Ee){return C.a.createElement(B.a,{target:"_blank",to:"/users/".concat(Ee==null?void 0:Ee.login,"/classrooms")},_e)}},{title:"\u8BC1\u4EF6\u7167",width:60,align:"center",dataIndex:"face_image",render:function(_e){return C.a.createElement("img",{style:{width:33,height:46,display:!_e&&"none"},src:c.a.API_SERVER+_e,onClick:function(){t.a.publish("preview-image",c.a.API_SERVER+_e)}})}},!(pe!=null&&pe.excellent)&&{title:"\u5B66\u53F7",width:110,align:"center",dataIndex:"student_id",sortOrder:Ze.student_id,sortDirections:["descend","ascend"],sorter:function(_e,Ee){return _e.id-Ee.id},render:function(_e){return C.a.createElement("span",{className:"c-black"},_e||"--")}},!(pe!=null&&pe.is_public)&&{title:"\u624B\u673A\u53F7",width:100,align:"center",dataIndex:"user_phone",render:function(_e,Ee){return C.a.createElement("span",{className:"c-black"},_e||"--")}},!(pe!=null&&pe.is_public)&&{title:"\u90AE\u7BB1",width:120,align:"center",dataIndex:"user_mail",render:function(_e,Ee){return C.a.createElement("span",{className:"c-black"},_e||"--")}},(pe==null?void 0:pe.is_public)&&{title:"\u5B66\u6821/\u5355\u4F4D",width:140,align:"center",dataIndex:"school_name",render:function(_e,Ee){return C.a.createElement("span",{className:"c-black"},_e||"--")}},{title:"\u5206\u73ED",width:100,align:"center",dataIndex:"course_group_name",sortOrder:Ze.course_group_name,sortDirections:["descend","ascend"],sorter:function(_e,Ee){return _e.id-Ee.id},render:function(_e){return _e||"--"}},Object(j.c)()&&{title:"\u64CD\u4F5C",align:"center",dataIndex:"name",render:function(_e,Ee){var Se,De,Ye;return C.a.createElement("div",null,C.a.createElement(m.a,{icon:C.a.createElement("span",null),onVisibleChange:function(){ot(Object(b.a)(Ee.member_roles))},onConfirm:Object(I.a)(ee.a.mark(function Me(){var et;return ee.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Object(z.b)(Object(te.a)(Object(te.a)({},q),{},{roles:Ce,user_id:Ee.user_id}));case 2:et=Xe.sent,et.status===0&&(h.b.success("\u4FEE\u6539\u6210\u529F"),dt());case 4:case"end":return Xe.stop()}},Me)})),title:C.a.createElement("div",null,C.a.createElement(n.a.Group,{value:Ce,defaultValue:Ee.member_roles},(Ee==null||((Se=Ee.member_roles)===null||Se===void 0)?void 0:Se.includes("CREATOR"))&&C.a.createElement(n.a,{disabled:!0,onClick:function(){return _t("CREATOR")},checked:!0,value:"CREATOR"},"\u7BA1\u7406\u5458"),!(Ee!=null&&(De=Ee.member_roles)!==null&&De!==void 0&&De.includes("CREATOR"))&&C.a.createElement(n.a,{onClick:function(){return _t("PROFESSOR")},value:"PROFESSOR"},"\u8001\u5E08"),C.a.createElement(n.a,{disabled:!!(Ee!=null&&(Ye=Ee.member_roles)!==null&&Ye!==void 0&&Ye.includes("CREATOR")),onClick:function(){return _t("ASSISTANT_PROFESSOR")},value:"ASSISTANT_PROFESSOR"},"\u52A9\u6559"),C.a.createElement(n.a,{onClick:function(){return _t("STUDENT")},value:"STUDENT"},"\u5B66\u751F")))},C.a.createElement("span",{className:"c-blue current"},"\u4FEE\u6539\u89D2\u8272")),C.a.createElement(v.a,{overlay:ft(Ee)},C.a.createElement("span",{className:"c-blue current",style:{margin:"0px 10px"},onClick:function(){}},"\u79FB\u52A8\u5206\u73ED")),C.a.createElement("span",{className:"current",style:{color:"red"},onClick:function(){A.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",onOk:function(){var et=Object(I.a)(ee.a.mark(function Xe(){var bt;return ee.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,Object(z.d)(Object(te.a)(Object(te.a)({},q),{},{students:[{course_member_id:Ee.course_member_id}]}));case 2:bt=At.sent,bt.status===0&&(h.b.success("\u5220\u9664\u6210\u529F"),dt(),re({type:"classroomList/getClassroomTopBanner",payload:{id:q.coursesId}}));case 4:case"end":return At.stop()}},Xe)}));function ct(){return et.apply(this,arguments)}return ct}()})}},"\u5220\u9664"))}}].filter(function(je){return!!je});return C.a.createElement("section",null,C.a.createElement("aside",{className:"bg-white pl30 pr30 pt20 pb20"},C.a.createElement(V.a,null,C.a.createElement(l.a,{flex:1},C.a.createElement(_.a,{defaultValue:"\u5168\u90E8",size:"large",onChange:function(){var je=Object(I.a)(ee.a.mark(function _e(Ee){return ee.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return q.page=1,De.next=3,re({type:"teachers/getStudentsList",payload:Object(te.a)(Object(te.a)({},q),{},{course_group_id:Ee==="\u5168\u90E8"?"":Ee})});case 3:q.course_group_id=Ee==="\u5168\u90E8"?"":Ee,le(Object(te.a)({},q)),ze(!1),lt([]),Ot(!1);case 8:case"end":return De.stop()}},_e)}));return function(_e){return je.apply(this,arguments)}}(),style:{width:200,marginRight:20}},C.a.createElement(_.a.Option,{value:"\u5168\u90E8"},"\u5168\u90E8\u5206\u73ED"),C.a.createElement(_.a.Option,{value:"0"},"\u672A\u5206\u73ED"),he==null||((ke=he.course_groups)===null||ke===void 0)?void 0:ke.map(function(je){return C.a.createElement(_.a.Option,{value:je==null?void 0:je.id},je==null?void 0:je.name)}))," \u5171 ",C.a.createElement("span",{className:"c-orange"},oe==null?void 0:oe.students_count)," \u4E2A\u5B66\u751F"),C.a.createElement(l.a,{style:{display:"flex",alignItems:"center"}},C.a.createElement($.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onSearch:function(_e){q.search=_e,q.page=1,dt()},style:{width:200,marginRight:15}}),Object(j.c)()&&C.a.createElement(w.a,{style:{fontSize:"12px"},onClick:function(){Ot(!gt),gt&<([])},size:"large"},C.a.createElement("i",{className:"iconfont icon-piliangcaozuo font12 mr5"})," ",gt?"\u53D6\u6D88\u64CD\u4F5C":"\u6279\u91CF\u64CD\u4F5C")))),oe.students_count===0&&C.a.createElement(Q.a,null),C.a.createElement("div",{className:"".concat(!!(oe!=null&&(Be=oe.students)!==null&&Be!==void 0&&Be.length)&&"bg-white"," pl30 pr30 mt10 pt20")},C.a.createElement(k.a,{loading:at,active:!0,avatar:{size:40},paragraph:{rows:5}},!!(oe!=null&&(Ge=oe.students)!==null&&Ge!==void 0&&Ge.length)&&C.a.createElement(G.a,{onChange:function(_e,Ee,Se){Ze={},Se.column?(Se.order===void 0?(Ze[Se.field]="descend",q.sort="desc"):(q.sort=Se.order.replace("end",""),Ze[Se.field]=Se.order),q.order=2,Se.column.dataIndex=="student_id"&&(q.order=1)):(Ze={},q.sort="",q.order=""),it(Object(te.a)({},Ze)),dt()},columns:Rt,dataSource:oe==null?void 0:oe.students,pagination:!1}))),C.a.createElement("aside",{className:"tc mb50 mt30"},C.a.createElement(u.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:xt,defaultCurrent:1,current:q.page||1,defaultPageSize:20,total:oe==null?void 0:oe.students_count})),C.a.createElement(ie.a,null),gt&&C.a.createElement(U.a,{offsetBottom:0},C.a.createElement("div",{style:{height:62,background:"#fff",paddingLeft:"39px",width:"100%",boxShadow:"0px -4px 11px 0px rgba(218, 218, 218, 0.5)",display:"flex",alignItems:"center"}},C.a.createElement("div",{style:{flex:1}},C.a.createElement(n.a,{checked:(Fe==null?void 0:Fe.length)===(oe==null||((qe=oe.students)===null||qe===void 0)?void 0:qe.length),onClick:function(){var _e;(Fe==null?void 0:Fe.length)<(oe==null||((_e=oe.students)===null||_e===void 0)?void 0:_e.length)?lt(Object(b.a)(oe==null?void 0:oe.students.map(function(Ee){return Ee.course_member_id}))):lt([])}},"\u5168\u9009\u672C\u9875/",C.a.createElement("span",null,"\u5DF2\u9009 \uFF08",Fe==null?void 0:Fe.length,"\uFF09")),C.a.createElement(v.a,{placement:"topCenter",overlay:St},C.a.createElement(w.a,{style:{margin:"0px 15px",fontSize:"12px",color:"#145DFF",display:"inline-flex",alignItems:"center"}},"\u6279\u91CF\u79FB\u52A8 ",C.a.createElement(M.a,{style:{color:"#464F66"}}))),C.a.createElement(w.a,{style:{fontSize:"12px",color:"#145DFF"},onClick:function(){if((Fe==null?void 0:Fe.length)<=0){h.b.info("\u8BF7\u9009\u62E9\u5B66\u751F");return}A.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u9009\u4E2D\u5B66\u751F\u5C06\u5168\u90E8\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u6062\u590D\uFF0C\u662F\u5426\u7EE7\u7EED\u5220\u9664",onOk:function(){var _e=Object(I.a)(ee.a.mark(function Se(){var De;return ee.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,Object(z.d)(Object(te.a)(Object(te.a)({},q),{},{students:Fe.map(function(et){return{course_member_id:et}})}));case 2:De=Me.sent,De.status===0&&(h.b.success("\u5220\u9664\u6210\u529F"),dt(),re({type:"classroomList/getClassroomTopBanner",payload:{id:q.coursesId}}));case 4:case"end":return Me.stop()}},Se)}));function Ee(){return _e.apply(this,arguments)}return Ee}()})}},C.a.createElement("i",{style:{color:"#F65160",display:"inline-flex",alignItems:"center"},className:"iconfont icon-piliangshanchu2 font14 mr5"})," \u6279\u91CF\u5220\u9664")),C.a.createElement(w.a,{style:{marginRight:30,fontSize:"12px",display:"inline-flex",alignItems:"center",color:"#333333"},onClick:function(){Ot(!1),lt([])}},C.a.createElement("i",{className:"iconfont icon-piliangcaozuo font12 mr5"}),"\u53D6\u6D88\u64CD\u4F5C"))))},R=Object(E.a)(function(ye){var fe=ye.teachers,be=ye.loading,ke=ye.globalSetting,Be=ye.classroomList;return{teachers:fe,globalSetting:ke,loading:be.effects,classroomList:Be}})(r),H=e("qdDa"),ne=e("8uFS"),ce=e("Jiyw"),ge=function(fe){var be=fe.teachers,ke=fe.globalSetting,Be=fe.classroomList,Ge=fe.loading,qe=fe.dispatch,We=fe.match,Et=Object(L.a)(fe,["teachers","globalSetting","classroomList","loading","dispatch","match"]),S=Be.detailTopBanner,se=Object(a.useState)("0"),re=Object(J.a)(se,2),me=re[0],ve=re[1],de=Object(N.i)(),q=function(he){ve(he.key)},le=C.a.createElement(g.a,{onClick:function(he){switch(he.key){case"1":Object(O.d)(Object(te.a)({},We.params));break;case"2":Object(O.b)(Object(te.a)({},We.params));break;case"3":Object(O.e)(Object(te.a)({},We.params));break}}},C.a.createElement(g.a.Item,{key:1},"\u8BFE\u5802\u4FE1\u606F"),C.a.createElement(g.a.Item,{key:2},"\u6D3B\u8DC3\u5EA6"),C.a.createElement(g.a.Item,{key:3},"\u603B\u6210\u7EE9"));return C.a.createElement("section",null,C.a.createElement(ne.a,{active:2},Object(j.f)()&&C.a.createElement("span",{className:"font16 mr20 current c-blue",onClick:function(){qe({type:"teachers/setActionTabs",payload:{key:"\u5BFC\u5165\u6210\u5458",reload:!1}})}},"\u5BFC\u5165\u6210\u5458"),Object(j.f)()&&C.a.createElement("span",{className:"font16 mr20 current c-blue",onClick:function(){qe({type:"teachers/setActionTabs",payload:{key:"\u66F4\u6362\u7BA1\u7406\u5458"}})}},"\u66F4\u6362\u7BA1\u7406\u5458"),Object(j.j)()&&C.a.createElement("span",{className:"font16 current c-blue",onClick:function(he){Object(O.f)(de)}},"\u5BFC\u51FA\u5B66\u751F")),C.a.createElement(R,null),C.a.createElement(H.a,null),C.a.createElement(ce.a,null))},Re=X.default=Object(E.a)(function(ye){var fe=ye.teachers,be=ye.loading,ke=ye.globalSetting,Be=ye.classroomList;return{teachers:fe,globalSetting:ke,classroomList:Be,loading:be.effects}})(ge)},LSTS:function(Oe,X,e){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var K=function(){function T(U,x){for(var u=0;u=0)continue;if(!Object.prototype.hasOwnProperty.call(T,u))continue;x[u]=T[u]}return x}function N(T,U){if(!(T instanceof U))throw new TypeError("Cannot call a class as a function")}function E(T,U){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:T}function O(T,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);T.prototype=Object.create(U&&U.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(T,U):T.__proto__=U)}var j=function(T){O(U,T);function U(x){N(this,U);var u=E(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,x));return u.scrollListener=u.scrollListener.bind(u),u.eventListenerOptions=u.eventListenerOptions.bind(u),u.mousewheelListener=u.mousewheelListener.bind(u),u}return K(U,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var u=this.getParentElement(this.scrollComponent);u.scrollTop=u.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var u=!1,f={get passive(){u=!0}};try{document.addEventListener("test",null,f),document.removeEventListener("test",null,f)}catch(k){}return u}},{key:"eventListenerOptions",value:function(){var u=this.props.useCapture;return this.isPassiveSupported()&&(u={useCapture:this.props.useCapture,passive:!0}),u}},{key:"setDefaultLoader",value:function(u){this.defaultLoader=u}},{key:"detachMousewheelListener",value:function(){var u=window;this.props.useWindow===!1&&(u=this.scrollComponent.parentNode),u.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var u=window;this.props.useWindow===!1&&(u=this.getParentElement(this.scrollComponent)),u.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),u.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(u){var f=this.props.getScrollParent&&this.props.getScrollParent();return f!=null?f:u&&u.parentNode}},{key:"filterProps",value:function(u){return u}},{key:"attachScrollListener",value:function(){var u=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!u)return;var f=window;this.props.useWindow===!1&&(f=u),f.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),f.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),f.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(u){u.deltaY===1&&!this.isPassiveSupported()&&u.preventDefault()}},{key:"scrollListener",value:function(){var u=this.scrollComponent,f=window,k=this.getParentElement(u),P=void 0;if(this.props.useWindow){var G=document.documentElement||document.body.parentNode||document.body,Z=f.pageYOffset!==void 0?f.pageYOffset:G.scrollTop;this.props.isReverse?P=Z:P=this.calculateOffset(u,Z)}else this.props.isReverse?P=k.scrollTop:P=u.scrollHeight-k.scrollTop-k.clientHeight;P1&&arguments[1]!==void 0?arguments[1]:1,ue=be.length,he=0;he1&&arguments[1]!==void 0?arguments[1]:!1;return Object(F.a)(b).map(function(h,I){if(!L.isValidElement(h)||!h.type)return null;var Y=h.type.isSelectOptGroup,ee=h.key,B=h.props,z=B.children,Q=Object(C.a)(B,["children"]);return d||!Y?$(h):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(ee===null?I:ee,"__"),label:ee},Q),{},{options:p(z)})}).filter(function(h){return h})}var l=e("2Qr1"),o=e("qNPg"),_=e("U8pU"),y=e("Kwbf"),A=e("WKfj");function D(b){var d=b.mode,h=b.options,I=b.children,Y=b.backfill,ee=b.allowClear,B=b.placeholder,z=b.getInputElement,Q=b.showSearch,W=b.onSearch,M=b.defaultOpen,ie=b.autoFocus,t=b.labelInValue,c=b.value,r=b.inputValue,R=b.optionLabelProp,H=d==="multiple"||d==="tags",ne=Q!==void 0?Q:H||d==="combobox",ce=h||p(I);if(Object(y.a)(d!=="tags"||ce.every(function(fe){return!fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),d==="tags"||d==="combobox"){var ge=ce.some(function(fe){return fe.options?fe.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in fe?fe.value:fe.key)=="number"});Object(y.a)(!ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(y.a)(d!=="combobox"||!R,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(y.a)(d==="combobox"||!Y,"`backfill` only works with `combobox` mode."),Object(y.a)(d==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(y.b)(d!=="combobox"||!z||!ee||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!ne&&d!=="combobox"&&d!=="tags"&&Object(y.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(y.b)(!M||ie,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),c!=null){var Re=Object(A.d)(c);Object(y.a)(!t||Re.every(function(fe){return Object(_.a)(fe)==="object"&&("key"in fe||"value"in fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(y.a)(!H||Array.isArray(c),"`value` should be array when `mode` is `multiple` or `tags`")}if(I){var ye=null;Object(F.a)(I).some(function(fe){if(!L.isValidElement(fe)||!fe.type)return!1;var be=fe.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var ke=Object(F.a)(fe.props.children).every(function(Be){return!L.isValidElement(Be)||!fe.type||Be.type.isSelectOption?!0:(ye=Be.type,!1)});return!ke}return ye=be,!0}),ye&&Object(y.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ye.displayName||ye.name||ye,"`.")),Object(y.a)(r===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var v=D,i=Object(o.a)({prefixCls:"rc-select",components:{optionList:P},convertChildrenToData:p,flattenOptions:l.d,getLabeledValue:l.e,filterOptions:l.b,isValueDisabled:l.g,findValueOption:l.c,warningProps:v,fillOptionsWithMissingValue:l.a}),m=function(b){Object(te.a)(h,b);var d=Object(J.a)(h);function h(){var I;return Object(K.a)(this,h),I=d.apply(this,arguments),I.selectRef=L.createRef(),I.focus=function(){I.selectRef.current.focus()},I.blur=function(){I.selectRef.current.blur()},I}return Object(g.a)(h,[{key:"render",value:function(){return L.createElement(i,Object.assign({ref:this.selectRef},this.props))}}]),h}(L.Component);m.Option=Z,m.OptGroup=ae;var s=m,n=X.c=s},NvD2:function(Oe,X,e){"use strict";e.d(X,"a",function(){return a});var K=e("Kwbf");function g(C,N){var E=new Set;return C.forEach(function(O){N.has(O)||E.add(O)}),E}function te(C){var N=C||{},E=N.disabled,O=N.disableCheckbox,j=N.checkable;return!!(E||O)||j===!1}function J(C,N,E,O){for(var j=new Set(C),T=new Set,U=0;U<=E;U+=1){var x=N.get(U)||new Set;x.forEach(function(P){var G=P.key,Z=P.node,V=P.children,ae=V===void 0?[]:V;j.has(G)&&!O(Z)&&ae.filter(function(w){return!O(w.node)}).forEach(function(w){j.add(w.key)})})}for(var u=new Set,f=E;f>=0;f-=1){var k=N.get(f)||new Set;k.forEach(function(P){var G=P.parent,Z=P.node;if(O(Z)||!P.parent||u.has(P.parent.key))return;if(O(P.parent.node)){u.add(G.key);return}var V=!0,ae=!1;(G.children||[]).filter(function(w){return!O(w.node)}).forEach(function(w){var F=w.key,$=j.has(F);V&&!$&&(V=!1),!ae&&($||T.has(F))&&(ae=!0)}),V&&j.add(G.key),ae&&T.add(G.key),u.add(G.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(g(T,j))}}function L(C,N,E,O,j){for(var T=new Set(C),U=new Set(N),x=0;x<=O;x+=1){var u=E.get(x)||new Set;u.forEach(function(G){var Z=G.key,V=G.node,ae=G.children,w=ae===void 0?[]:ae;!T.has(Z)&&!U.has(Z)&&!j(V)&&w.filter(function(F){return!j(F.node)}).forEach(function(F){T.delete(F.key)})})}U=new Set;for(var f=new Set,k=O;k>=0;k-=1){var P=E.get(k)||new Set;P.forEach(function(G){var Z=G.parent,V=G.node;if(j(V)||!G.parent||f.has(G.parent.key))return;if(j(G.parent.node)){f.add(Z.key);return}var ae=!0,w=!1;(Z.children||[]).filter(function(F){return!j(F.node)}).forEach(function(F){var $=F.key,p=T.has($);ae&&!p&&(ae=!1),!w&&(p||U.has($))&&(w=!0)}),ae||T.delete(Z.key),w&&U.add(Z.key),f.add(Z.key)})}return{checkedKeys:Array.from(T),halfCheckedKeys:Array.from(g(U,T))}}function a(C,N,E,O){var j=[],T;O?T=O:T=te;var U=new Set(C.filter(function(k){var P=!!E[k];return P||j.push(k),P})),x=new Map,u=0;Object.keys(E).forEach(function(k){var P=E[k],G=P.level,Z=x.get(G);Z||(Z=new Set,x.set(G,Z)),Z.add(P),u=Math.max(u,G)}),Object(K.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(k){return"'".concat(k,"'")}).join(", ")));var f;return N===!0?f=J(U,x,u,T):f=L(U,N.halfCheckedKeys,x,u,T),f}},OZM5:function(Oe,X,e){"use strict";e.d(X,"b",function(){return O}),e.d(X,"a",function(){return j}),e.d(X,"k",function(){return T}),e.d(X,"h",function(){return U}),e.d(X,"i",function(){return x}),e.d(X,"g",function(){return u}),e.d(X,"c",function(){return f}),e.d(X,"d",function(){return k}),e.d(X,"j",function(){return Z}),e.d(X,"e",function(){return V}),e.d(X,"f",function(){return ae});var K=e("KQm4"),g=e("U8pU"),te=e("Ff2n"),J=e("q1tI"),L=e.n(J),a=e("Kwbf"),C=e("WaYH"),N=.25,E=2;function O(w,F){var $=w.slice(),p=$.indexOf(F);return p>=0&&$.splice(p,1),$}function j(w,F){var $=w.slice();return $.indexOf(F)===-1&&$.push(F),$}function T(w){return w.split("-")}function U(w,F){return"".concat(w,"-").concat(F)}function x(w){return w&&w.type&&w.type.isTreeNode}function u(w,F){var $=[w],p=F[w];function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(_){var y=_.key,A=_.children;$.push(y),l(A)})}return l(p.children),$}function f(w,F){var $=w.clientY,p=F.selectHandle.getBoundingClientRect(),l=p.top,o=p.bottom,_=p.height,y=Math.max(_*N,E);return $<=l+y?-1:$>=o-y?1:0}function k(w,F){if(!w)return;var $=F.multiple;return $?w.slice():w.length?[w[0]]:w}var P=function(F){return F};function G(w,F){if(!w)return[];var $=F||{},p=$.processProps,l=p===void 0?P:p,o=Array.isArray(w)?w:[w];return o.map(function(_){var y=_.children,A=Object(te.a)(_,["children"]),D=G(y,F);return L.a.createElement(C.a,Object.assign({},l(A)),D)})}function Z(w){if(!w)return null;var F;if(Array.isArray(w))F={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(g.a)(w)==="object")F={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;return F}function V(w,F){var $=new Set;function p(l){if($.has(l))return;var o=F[l];if(!o)return;$.add(l);var _=o.parent,y=o.node;if(y.disabled)return;_&&p(_.key)}return(w||[]).forEach(function(l){p(l)}),Object(K.a)($)}function ae(w){var F={};return Object.keys(w).forEach(function($){($.startsWith("data-")||$.startsWith("aria-"))&&(F[$]=w[$])}),F}},"RI+Y":function(Oe,X,e){Oe.exports={ManageHead:"ManageHead___2IMvb",tabs:"tabs___1NuAo",title:"title___1rlAS",active:"active___xTnBU"}},RotF:function(Oe,X,e){Oe.exports=e("LSTS")},"SA+Z":function(Oe,X,e){var K=e("wTVA"),g=e("EbDI"),te=e("ZhPi"),J=e("wkBT");function L(a){return K(a)||g(a)||te(a)||J()}Oe.exports=L,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,X,e){"use strict";var K=e("rePB"),g=e("Ff2n"),te=e("VTBJ"),J=e("1OyB"),L=e("vuIU"),a=e("JX7q"),C=e("Ji7U"),N=e("LK+K"),E=e("q1tI"),O=e("TSYQ"),j=e.n(O),T=e("sboe"),U=e("OZM5"),x=function(F){var $=F.prefixCls,p=F.level,l=F.isStart,o=F.isEnd;if(!p)return null;for(var _="".concat($,"-indent-unit"),y=[],A=0;A=0||T.relatedTarget.className.indexOf("".concat(m,"-next"))>=0))return;l.setState({goInputText:""}),i(l.getValidValue())},l.go=function(T){var D=l.state.goInputText;if(D==="")return;(T.keyCode===x.ENTER||T.type==="click")&&(l.setState({goInputText:""}),l.props.quickGo(l.getValidValue()))},l}return Object(L.a)(p,[{key:"getValidValue",value:function(){var o=this.state,_=o.goInputText,y=o.current;return!_||isNaN(_)?y:Number(_)}},{key:"getPageSizeOptions",value:function(){var o=this.props,_=o.pageSize,y=o.pageSizeOptions;return y.some(function(T){return T.toString()===_.toString()})?y:y.concat([_.toString()]).sort(function(T,D){var v=isNaN(Number(T))?0:Number(T),i=isNaN(Number(D))?0:Number(D);return v-i})}},{key:"render",value:function(){var o=this,_=this.props,y=_.pageSize,T=_.locale,D=_.rootPrefixCls,v=_.changeSize,i=_.quickGo,m=_.goButton,s=_.selectComponentClass,n=_.buildOptionText,b=_.selectPrefixCls,d=_.disabled,h=this.state.goInputText,I="".concat(D,"-options"),Y=s,ee=null,B=null,z=null;if(!v&&!i)return null;var Q=this.getPageSizeOptions();if(v&&Y){var W=Q.map(function(M,ie){return E.a.createElement(Y.Option,{key:ie,value:M.toString()},(n||o.buildOptionText)(M))});ee=E.a.createElement(Y,{disabled:d,prefixCls:b,showSearch:!1,className:"".concat(I,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(y||Q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ie){return ie.parentNode}},W)}return i&&(m&&(z=typeof m=="boolean"?E.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(I,"-quick-jumper-button")},T.jump_to_confirm):E.a.createElement("span",{onClick:this.go,onKeyUp:this.go},m)),B=E.a.createElement("div",{className:"".concat(I,"-quick-jumper")},T.jump_to,E.a.createElement("input",{disabled:d,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,z)),E.a.createElement("li",{className:"".concat(I)},ee,B)}}]),p}(E.a.Component);u.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=u,k=e("N2Kk");function P(){}function G(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function Z(F,$,p){return p}function V(F,$,p){var l=typeof F=="undefined"?$.pageSize:F;return Math.floor((p.total-1)/l)+1}var ae=function(F){Object(a.a)(p,F);var $=Object(C.a)(p);function p(l){var o;Object(J.a)(this,p),o=$.call(this,l),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(V(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(v,i){var m=o.props.prefixCls,s=v||E.a.createElement("button",{type:"button","aria-label":i,className:"".concat(m,"-item-link")});return typeof v=="function"&&(s=E.a.createElement(v,Object(te.a)({},o.props))),s},o.savePaginationNode=function(v){o.paginationNode=v},o.isValid=function(v){return G(v)&&v!==o.state.current},o.shouldDisplayQuickJumper=function(){var v=o.props,i=v.showQuickJumper,m=v.pageSize,s=v.total;return s<=m?!1:i},o.handleKeyDown=function(v){(v.keyCode===x.ARROW_UP||v.keyCode===x.ARROW_DOWN)&&v.preventDefault()},o.handleKeyUp=function(v){var i=o.getValidValue(v),m=o.state.currentInputValue;i!==m&&o.setState({currentInputValue:i}),v.keyCode===x.ENTER?o.handleChange(i):v.keyCode===x.ARROW_UP?o.handleChange(i-1):v.keyCode===x.ARROW_DOWN&&o.handleChange(i+1)},o.changePageSize=function(v){var i=o.state.current,m=V(v,o.state,o.props);i=i>m?m:i,m===0&&(i=o.state.current),typeof v=="number"&&("pageSize"in o.props||o.setState({pageSize:v}),"current"in o.props||o.setState({current:i,currentInputValue:i})),o.props.onShowSizeChange(i,v),"onChange"in o.props&&o.props.onChange&&o.props.onChange(i,v)},o.handleChange=function(v){var i=o.props.disabled,m=v;if(o.isValid(m)&&!i){var s=V(void 0,o.state,o.props);m>s?m=s:m<1&&(m=1),"current"in o.props||o.setState({current:m,currentInputValue:m});var n=o.state.pageSize;return o.props.onChange(m,n),m}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?m-2:0),n=2;n=y?D=y:D=Number(_),D}},{key:"getShowSizeChanger",value:function(){var o=this.props,_=o.showSizeChanger,y=o.total,T=o.totalBoundaryShowSizeChanger;return typeof _!="undefined"?_:y>T}},{key:"renderPrev",value:function(o){var _=this.props,y=_.prevIcon,T=_.itemRender,D=T(o,"prev",this.getItemIcon(y,"prev page")),v=!this.hasPrev();return Object(N.isValidElement)(D)?Object(N.cloneElement)(D,{disabled:v}):D}},{key:"renderNext",value:function(o){var _=this.props,y=_.nextIcon,T=_.itemRender,D=T(o,"next",this.getItemIcon(y,"next page")),v=!this.hasNext();return Object(N.isValidElement)(D)?Object(N.cloneElement)(D,{disabled:v}):D}},{key:"render",value:function(){var o=this,_=this.props,y=_.prefixCls,T=_.className,D=_.style,v=_.disabled,i=_.hideOnSinglePage,m=_.total,s=_.locale,n=_.showQuickJumper,b=_.showLessItems,d=_.showTitle,h=_.showTotal,I=_.simple,Y=_.itemRender,ee=_.showPrevNextJumpers,B=_.jumpPrevIcon,z=_.jumpNextIcon,Q=_.selectComponentClass,W=_.selectPrefixCls,M=_.pageSizeOptions,ie=this.state,t=ie.current,c=ie.pageSize,r=ie.currentInputValue;if(i===!0&&m<=c)return null;var R=V(void 0,this.state,this.props),H=[],ne=null,ce=null,ge=null,Re=null,ye=null,fe=n&&n.goButton,be=b?1:2,ke=t-1>0?t-1:0,Be=t+1=be*2&&t!==1+2&&(H[0]=Object(N.cloneElement)(H[0],{className:"".concat(y,"-item-after-jump-prev")}),H.unshift(ne)),R-t>=be*2&&t!==R-2&&(H[H.length-1]=Object(N.cloneElement)(H[H.length-1],{className:"".concat(y,"-item-before-jump-next")}),H.push(ce)),re!==1&&H.unshift(ge),me!==R&&H.push(Re)}var q=null;h&&(q=E.a.createElement("li",{className:"".concat(y,"-total-text")},h(m,[m===0?0:(t-1)*c+1,t*c>m?m:t*c])));var le=!this.hasPrev()||!R,ue=!this.hasNext()||!R;return E.a.createElement("ul",Object(K.a)({className:j()(y,T,Object(g.a)({},"".concat(y,"-disabled"),v)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},Ge),q,E.a.createElement("li",{title:d?s.prev_page:null,onClick:this.prev,tabIndex:le?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(y,"-prev"),Object(g.a)({},"".concat(y,"-disabled"),le)),"aria-disabled":le},this.renderPrev(ke)),H,E.a.createElement("li",{title:d?s.next_page:null,onClick:this.next,tabIndex:ue?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(y,"-next"),Object(g.a)({},"".concat(y,"-disabled"),ue)),"aria-disabled":ue},this.renderNext(Be)),E.a.createElement(f,{disabled:v,locale:s,rootPrefixCls:y,selectComponentClass:Q,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:t,pageSize:c,pageSizeOptions:M,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:fe}))}}],[{key:"getDerivedStateFromProps",value:function(o,_){var y={};if("current"in o&&(y.current=o.current,o.current!==_.current&&(y.currentInputValue=y.current)),"pageSize"in o&&o.pageSize!==_.pageSize){var T=_.current,D=V(o.pageSize,_,o);T=T>D?D:T,"current"in o||(y.current=T,y.currentInputValue=T),y.pageSize=o.pageSize}return y}}]),p}(E.a.Component);ae.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:P,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:P,locale:k.a,style:{},itemRender:Z,totalBoundaryShowSizeChanger:50};var w=ae},"6RRn":function(Oe,X,e){"use strict";var K=e("wCXF"),g=e("n6Qo");e.d(X,"b",function(){return g.a});var te=e("IBYe"),J=e("6eGT"),L=e("hW8S");e.d(X,"a",function(){return L.a}),X.c=K.b},"6eGT":function(Oe,X,e){"use strict";function K(g){return null}X.a=K},"815F":function(Oe,X,e){"use strict";e.d(X,"e",function(){return C}),e.d(X,"c",function(){return E}),e.d(X,"d",function(){return O}),e.d(X,"a",function(){return A}),e.d(X,"f",function(){return U}),e.d(X,"b",function(){return x});var K=e("KQm4"),g=e("VTBJ"),te=e("Ff2n"),J=e("Zm9Q"),L=e("Kwbf"),a=e("OZM5");function C(u,f){return u!=null?u:f}function N(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function k(P){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(P||[]).forEach(function(Z){var V=Z.key,ae=Z.children;Object(L.a)(V!=null,"Tree node must have a certain key: [".concat(G).concat(V,"]"));var w=String(V);Object(L.a)(!f.has(w)||V===null||V===void 0,"Same 'key' exist in the Tree: ".concat(w)),f.set(w,!0),k(ae,"".concat(G).concat(w," > "))})}k(u)}function E(u){function f(k){var P=Object(J.a)(k);return P.map(function(G){if(!Object(a.i)(G))return Object(L.a)(!G,"Tree/TreeNode can only accept TreeNode as children."),null;var Z=G.key,V=G.props,ae=V.children,w=Object(te.a)(V,["children"]),F=Object(g.a)({key:Z},w),$=f(ae);return $.length&&(F.children=$),F}).filter(function(G){return G})}return f(u)}function O(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],k=new Set(f===!0?[]:f),P=[];function G(Z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Z.map(function(ae,w){var F=Object(a.h)(V?V.pos:"0",w),$=C(ae.key,F),p=Object(g.a)(Object(g.a)({},ae),{},{parent:V,pos:F,children:null,data:ae,isStart:[].concat(Object(K.a)(V?V.isStart:[]),[w===0]),isEnd:[].concat(Object(K.a)(V?V.isEnd:[]),[w===Z.length-1])});return P.push(p),f===!0||k.has($)?p.children=G(ae.children||[],p):p.children=[],p})}return G(u),P}function j(u,f,k){var P;k?typeof k=="string"?P=function(V){return V[k]}:typeof k=="function"&&(P=function(V){return k(V)}):P=function(V,ae){return C(V.key,ae)};function G(Z,V,ae){var w=Z?Z.children:u,F=Z?Object(a.h)(ae.pos,V):"0";if(Z){var $=P(Z,F),p={node:Z,index:V,pos:F,key:$,parentPos:ae.node?ae.pos:null,level:ae.level+1};f(p)}w&&w.forEach(function(l,o){G(l,o,{node:Z,pos:F,level:ae?ae.level+1:-1})})}G(null)}function A(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=f.initWrapper,P=f.processEntity,G=f.onProcessFinished,Z=arguments.length>2?arguments[2]:void 0,V={},ae={},w={posEntities:V,keyEntities:ae};return k&&(w=k(w)||w),j(u,function(F){var $=F.node,p=F.index,l=F.pos,o=F.key,_=F.parentPos,y=F.level,T={node:$,index:p,key:o,pos:l,level:y},D=C(o,l);V[l]=T,ae[D]=T,T.parent=V[_],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),P&&P(T,w)},Z),G&&G(w),w}function U(u,f){var k=f.expandedKeys,P=f.selectedKeys,G=f.loadedKeys,Z=f.loadingKeys,V=f.checkedKeys,ae=f.halfCheckedKeys,w=f.dragOverNodeKey,F=f.dropPosition,$=f.keyEntities,p=$[u],l={eventKey:u,expanded:k.indexOf(u)!==-1,selected:P.indexOf(u)!==-1,loaded:G.indexOf(u)!==-1,loading:Z.indexOf(u)!==-1,checked:V.indexOf(u)!==-1,halfChecked:ae.indexOf(u)!==-1,pos:String(p?p.pos:""),dragOver:w===u&&F===0,dragOverGapTop:w===u&&F===-1,dragOverGapBottom:w===u&&F===1};return l}function x(u){var f=u.data,k=u.expanded,P=u.selected,G=u.checked,Z=u.loaded,V=u.loading,ae=u.halfChecked,w=u.dragOver,F=u.dragOverGapTop,$=u.dragOverGapBottom,p=u.pos,l=u.active,o=Object(g.a)(Object(g.a)({},f),{},{expanded:k,selected:P,checked:G,loaded:Z,loading:V,halfChecked:ae,dragOver:w,dragOverGapTop:F,dragOverGapBottom:$,pos:p,active:l});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(L.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),o}},"8uFS":function(Oe,X,e){"use strict";var K=e("q1tI"),g=e.n(K),te=e("Ty5D"),J=e("9kvl"),L=e("RI+Y"),a=e.n(L),C=function(E){var O=E.children,j=E.active,A=Object(te.i)();return g.a.createElement("div",{className:a.a.ManageHead},g.a.createElement("div",{className:a.a.tabs},g.a.createElement("div",{onClick:function(){return J.d.push("/classrooms/".concat(A.coursesId,"/teachers"))},className:"".concat(a.a.title," ").concat(j===1?a.a.active:"")},"\u6559\u5E08\u5217\u8868"),g.a.createElement("div",{onClick:function(){return J.d.push("/classrooms/".concat(A.coursesId,"/students"))},className:"".concat(a.a.title," ").concat(j===2?a.a.active:"")},"\u5B66\u751F\u5217\u8868")),g.a.createElement("div",null,O))};X.a=C},BU3w:function(Oe,X,e){"use strict";e.d(X,"a",function(){return a});var K=e("MNnm"),g="rc-util-key";function te(C){if(C.attachTo)return C.attachTo;var N=document.querySelector("head");return N||document.body}function J(C){var N,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(K.a)())return null;var O=document.createElement("style");if((N=E.csp)===null||N===void 0?void 0:N.nonce){var j;O.nonce=(j=E.csp)===null||j===void 0?void 0:j.nonce}O.innerHTML=C;var A=te(E),U=A.firstChild;return E.prepend&&A.prepend?A.prepend(O):E.prepend&&U?A.insertBefore(O,U):A.appendChild(O),O}var L=new Map;function a(C,N){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=te(E);if(!L.has(O)){var j=J("",E),A=j.parentNode;L.set(O,A),A.removeChild(j)}var U=Array.from(L.get(O).children).find(function(P){return P.tagName==="STYLE"&&P[g]===N});if(U){var x,u;if(((x=E.csp)===null||x===void 0?void 0:x.nonce)&&U.nonce!==((u=E.csp)===null||u===void 0?void 0:u.nonce)){var f;U.nonce=(f=E.csp)===null||f===void 0?void 0:f.nonce}return U.innerHTML!==C&&(U.innerHTML=C),U}var k=J(C,E);return k[g]=N,k}},BdwD:function(Oe,X,e){"use strict";var K=e("+L6B"),g=e("2/Rp"),te=e("0Owb"),J=e("k1fw"),L=e("q1tI"),a=e.n(L),C=e("FOrL"),N=e.n(C),E=function(j){var A=j.buttonProps,U=A===void 0?{}:A,x=j.styles,u=x===void 0?{}:x,f=j.customText,k=j.ButtonText,P=j.ButtonClick,G=j.Buttonclass,Z=j.ButtonTwo;return a.a.createElement("section",{className:"tc animated fadeIn",style:Object(J.a)(Object(J.a)({},{color:"#999",margin:"200px auto"}),u)},a.a.createElement("img",{src:N.a}),a.a.createElement("p",{className:"mt20 font14"},f||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),k&&a.a.createElement(g.a,Object(te.a)({className:G,onClick:P},U),k),Z&&Z)};X.a=E},FOrL:function(Oe,X,e){Oe.exports=e.p+"static/nodata.a6b3f948.png"},GfqC:function(Oe,X,e){"use strict";var K=e("q1tI"),g=e.n(K),te=e("TSYQ"),J=e.n(te);function L(s,n){var b="cannot "+s.method+" "+s.action+" "+n.status+"'",d=new Error(b);return d.status=n.status,d.method=s.method,d.url=s.action,d}function a(s){var n=s.responseText||s.response;if(!n)return n;try{return JSON.parse(n)}catch(b){return n}}function C(s){var n=new XMLHttpRequest;s.onProgress&&n.upload&&(n.upload.onprogress=function(I){I.total>0&&(I.percent=I.loaded/I.total*100),s.onProgress(I)});var b=new FormData;s.data&&Object.keys(s.data).forEach(function(h){var I=s.data[h];if(Array.isArray(I)){I.forEach(function(Y){b.append(h+"[]",Y)});return}b.append(h,s.data[h])}),s.file instanceof Blob?b.append(s.filename,s.file,s.file.name):b.append(s.filename,s.file),n.onerror=function(I){s.onError(I)},n.onload=function(){return n.status<200||n.status>=300?s.onError(L(s,n),a(n)):s.onSuccess(a(n),n)},n.open(s.method,s.action,!0),s.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var d=s.headers||{};return d["X-Requested-With"]!==null&&n.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(d).forEach(function(h){d[h]!==null&&n.setRequestHeader(h,d[h])}),n.send(b),{abort:function(){n.abort()}}}var N=+new Date,E=0;function O(){return"rc-upload-"+N+"-"+ ++E}function j(s,n){return s.indexOf(n,s.length-n.length)!==-1}var A=function(s,n){if(s&&n){var b=Array.isArray(n)?n:n.split(","),d=s.name||"",h=s.type||"",I=h.replace(/\/.*$/,"");return b.some(function(Y){var ee=Y.trim();return ee.charAt(0)==="."?j(d.toLowerCase(),ee.toLowerCase()):/\/\*$/.test(ee)?I===ee.replace(/\/.*$/,""):h===ee})}return!0};function U(s,n){var b=s.createReader(),d=[];function h(){b.readEntries(function(I){var Y=Array.prototype.slice.apply(I);d=d.concat(Y);var ee=!Y.length;ee?n(d):h()})}h()}var x=function(n,b,d){var h=function I(Y,ee){ee=ee||"",Y.isFile?Y.file(function(B){d(B)&&(Y.fullPath&&!B.webkitRelativePath&&(Object.defineProperties(B,{webkitRelativePath:{writable:!0}}),B.webkitRelativePath=Y.fullPath.replace(/^\//,""),Object.defineProperties(B,{webkitRelativePath:{writable:!1}})),b([B]))}):Y.isDirectory&&U(Y,function(B){B.forEach(function(z){I(z,""+ee+Y.name+"/")})})};n.forEach(function(I){h(I.webkitGetAsEntry())})},u=x,f=Object.assign||function(s){for(var n=1;n=0)continue;if(!Object.prototype.hasOwnProperty.call(s,d))continue;b[d]=s[d]}return b}function V(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function ae(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function w(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var F=function(n){return Object.keys(n).reduce(function(b,d){return(d.substr(0,5)==="data-"||d.substr(0,5)==="aria-"||d==="role")&&(b[d]=n[d]),b},{})},$=function(s){w(n,s);function n(){var b,d,h,I;V(this,n);for(var Y=arguments.length,ee=Array(Y),B=0;B-1?Ce.splice(Ce.indexOf(_e),1):Ce.push(_e),Ce!=null&&Ce.includes("ASSISTANT_PROFESSOR")&&Ce!==null&&Ce!==void 0&&Ce.includes("PROFESSOR")&&(_e==="PROFESSOR"&&Ce.splice(Ce.indexOf("ASSISTANT_PROFESSOR"),1),_e==="ASSISTANT_PROFESSOR"&&Ce.splice(Ce.indexOf("PROFESSOR"),1)),ot(Object(b.a)(Ce))},Rt=[{title:"\u5E8F\u53F7",dataIndex:"name",width:70,align:"center",render:function(_e,Ee,Se){return gt?C.a.createElement(n.a,{onChange:function(Ye){Fe.includes(Ye.target.value)?lt(Object(b.a)(Fe.filter(function(Me){return Me!=Ye.target.value}))):(Fe.push(Ye.target.value),lt(Object(b.a)(Fe)))},value:Ee==null?void 0:Ee.course_member_id,checked:Fe.includes(Ee==null?void 0:Ee.course_member_id)},q.limit*(q.page-1)+Se+1):q.limit*(q.page-1)+Se+1}},{title:"\u59D3\u540D",width:110,align:"center",dataIndex:"name",render:function(_e,Ee){return C.a.createElement(B.a,{target:"_blank",to:"/users/".concat(Ee==null?void 0:Ee.login,"/classrooms")},_e)}},{title:"\u8BC1\u4EF6\u7167",width:60,align:"center",dataIndex:"face_image",render:function(_e){return C.a.createElement("img",{style:{width:33,height:46,display:!_e&&"none"},src:c.a.API_SERVER+_e,onClick:function(){t.a.publish("preview-image",c.a.API_SERVER+_e)}})}},!(pe!=null&&pe.excellent)&&{title:"\u5B66\u53F7",width:110,align:"center",dataIndex:"student_id",sortOrder:Ze.student_id,sortDirections:["descend","ascend"],sorter:function(_e,Ee){return _e.id-Ee.id},render:function(_e){return C.a.createElement("span",{className:"c-black"},_e||"--")}},!(pe!=null&&pe.is_public)&&{title:"\u624B\u673A\u53F7",width:100,align:"center",dataIndex:"user_phone",render:function(_e,Ee){return C.a.createElement("span",{className:"c-black"},_e||"--")}},!(pe!=null&&pe.is_public)&&{title:"\u90AE\u7BB1",width:120,align:"center",dataIndex:"user_mail",render:function(_e,Ee){return C.a.createElement("span",{className:"c-black"},_e||"--")}},(pe==null?void 0:pe.is_public)&&{title:"\u5B66\u6821/\u5355\u4F4D",width:140,align:"center",dataIndex:"school_name",render:function(_e,Ee){return C.a.createElement("span",{className:"c-black"},_e||"--")}},{title:"\u5206\u73ED",width:100,align:"center",dataIndex:"course_group_name",sortOrder:Ze.course_group_name,sortDirections:["descend","ascend"],sorter:function(_e,Ee){return _e.id-Ee.id},render:function(_e){return _e||"--"}},Object(j.c)()&&{title:"\u64CD\u4F5C",align:"center",dataIndex:"name",render:function(_e,Ee){var Se,De,Ye;return C.a.createElement("div",null,C.a.createElement(m.a,{icon:C.a.createElement("span",null),onVisibleChange:function(){ot(Object(b.a)(Ee.member_roles))},onConfirm:Object(I.a)(ee.a.mark(function Me(){var et;return ee.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Object(z.b)(Object(te.a)(Object(te.a)({},q),{},{roles:Ce,user_id:Ee.user_id}));case 2:et=Xe.sent,et.status===0&&(h.b.success("\u4FEE\u6539\u6210\u529F"),dt());case 4:case"end":return Xe.stop()}},Me)})),title:C.a.createElement("div",null,C.a.createElement(n.a.Group,{value:Ce,defaultValue:Ee.member_roles},(Ee==null||((Se=Ee.member_roles)===null||Se===void 0)?void 0:Se.includes("CREATOR"))&&C.a.createElement(n.a,{disabled:!0,onClick:function(){return _t("CREATOR")},checked:!0,value:"CREATOR"},"\u7BA1\u7406\u5458"),!(Ee!=null&&(De=Ee.member_roles)!==null&&De!==void 0&&De.includes("CREATOR"))&&C.a.createElement(n.a,{onClick:function(){return _t("PROFESSOR")},value:"PROFESSOR"},"\u8001\u5E08"),C.a.createElement(n.a,{disabled:!!(Ee!=null&&(Ye=Ee.member_roles)!==null&&Ye!==void 0&&Ye.includes("CREATOR")),onClick:function(){return _t("ASSISTANT_PROFESSOR")},value:"ASSISTANT_PROFESSOR"},"\u52A9\u6559"),C.a.createElement(n.a,{onClick:function(){return _t("STUDENT")},value:"STUDENT"},"\u5B66\u751F")))},C.a.createElement("span",{className:"c-blue current"},"\u4FEE\u6539\u89D2\u8272")),C.a.createElement(v.a,{overlay:ft(Ee)},C.a.createElement("span",{className:"c-blue current",style:{margin:"0px 10px"},onClick:function(){}},"\u79FB\u52A8\u5206\u73ED")),C.a.createElement("span",{className:"current",style:{color:"red"},onClick:function(){T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",onOk:function(){var et=Object(I.a)(ee.a.mark(function Xe(){var bt;return ee.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,Object(z.d)(Object(te.a)(Object(te.a)({},q),{},{students:[{course_member_id:Ee.course_member_id}]}));case 2:bt=Tt.sent,bt.status===0&&(h.b.success("\u5220\u9664\u6210\u529F"),dt(),re({type:"classroomList/getClassroomTopBanner",payload:{id:q.coursesId}}));case 4:case"end":return Tt.stop()}},Xe)}));function ct(){return et.apply(this,arguments)}return ct}()})}},"\u5220\u9664"))}}].filter(function(je){return!!je});return C.a.createElement("section",null,C.a.createElement("aside",{className:"bg-white pl30 pr30 pt20 pb20"},C.a.createElement(V.a,null,C.a.createElement(l.a,{flex:1},C.a.createElement(_.a,{defaultValue:"\u5168\u90E8",size:"large",onChange:function(){var je=Object(I.a)(ee.a.mark(function _e(Ee){return ee.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return q.page=1,De.next=3,re({type:"teachers/getStudentsList",payload:Object(te.a)(Object(te.a)({},q),{},{course_group_id:Ee==="\u5168\u90E8"?"":Ee})});case 3:q.course_group_id=Ee==="\u5168\u90E8"?"":Ee,le(Object(te.a)({},q)),ze(!1),lt([]),Ot(!1);case 8:case"end":return De.stop()}},_e)}));return function(_e){return je.apply(this,arguments)}}(),style:{width:200,marginRight:20}},C.a.createElement(_.a.Option,{value:"\u5168\u90E8"},"\u5168\u90E8\u5206\u73ED"),C.a.createElement(_.a.Option,{value:"0"},"\u672A\u5206\u73ED"),he==null||((ke=he.course_groups)===null||ke===void 0)?void 0:ke.map(function(je){return C.a.createElement(_.a.Option,{value:je==null?void 0:je.id},je==null?void 0:je.name)}))," \u5171 ",C.a.createElement("span",{className:"c-orange"},oe==null?void 0:oe.students_count)," \u4E2A\u5B66\u751F"),C.a.createElement(l.a,{style:{display:"flex",alignItems:"center"}},C.a.createElement($.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onSearch:function(_e){q.search=_e,q.page=1,dt()},style:{width:200,marginRight:15}}),Object(j.c)()&&C.a.createElement(w.a,{style:{fontSize:"12px"},onClick:function(){Ot(!gt),gt&<([])},size:"large"},C.a.createElement("i",{className:"iconfont icon-piliangcaozuo font12 mr5"})," ",gt?"\u53D6\u6D88\u64CD\u4F5C":"\u6279\u91CF\u64CD\u4F5C")))),oe.students_count===0&&C.a.createElement(Q.a,null),C.a.createElement("div",{className:"".concat(!!(oe!=null&&(Be=oe.students)!==null&&Be!==void 0&&Be.length)&&"bg-white"," pl30 pr30 mt10 pt20")},C.a.createElement(k.a,{loading:at,active:!0,avatar:{size:40},paragraph:{rows:5}},!!(oe!=null&&(Ge=oe.students)!==null&&Ge!==void 0&&Ge.length)&&C.a.createElement(G.a,{onChange:function(_e,Ee,Se){Ze={},Se.column?(Se.order===void 0?(Ze[Se.field]="descend",q.sort="desc"):(q.sort=Se.order.replace("end",""),Ze[Se.field]=Se.order),q.order=2,Se.column.dataIndex=="student_id"&&(q.order=1)):(Ze={},q.sort="",q.order=""),it(Object(te.a)({},Ze)),dt()},columns:Rt,dataSource:oe==null?void 0:oe.students,pagination:!1}))),C.a.createElement("aside",{className:"tc mb50 mt30"},C.a.createElement(u.a,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:xt,defaultCurrent:1,current:q.page||1,defaultPageSize:20,total:oe==null?void 0:oe.students_count})),C.a.createElement(ie.a,null),gt&&C.a.createElement(U.a,{offsetBottom:0},C.a.createElement("div",{style:{height:62,background:"#fff",paddingLeft:"39px",width:"100%",boxShadow:"0px -4px 11px 0px rgba(218, 218, 218, 0.5)",display:"flex",alignItems:"center"}},C.a.createElement("div",{style:{flex:1}},C.a.createElement(n.a,{checked:(Fe==null?void 0:Fe.length)===(oe==null||((qe=oe.students)===null||qe===void 0)?void 0:qe.length),onClick:function(){var _e;(Fe==null?void 0:Fe.length)<(oe==null||((_e=oe.students)===null||_e===void 0)?void 0:_e.length)?lt(Object(b.a)(oe==null?void 0:oe.students.map(function(Ee){return Ee.course_member_id}))):lt([])}},"\u5168\u9009\u672C\u9875/",C.a.createElement("span",null,"\u5DF2\u9009 \uFF08",Fe==null?void 0:Fe.length,"\uFF09")),C.a.createElement(v.a,{placement:"topCenter",overlay:St},C.a.createElement(w.a,{style:{margin:"0px 15px",fontSize:"12px",color:"#145DFF",display:"inline-flex",alignItems:"center"}},"\u6279\u91CF\u79FB\u52A8 ",C.a.createElement(M.a,{style:{color:"#464F66"}}))),C.a.createElement(w.a,{style:{fontSize:"12px",color:"#145DFF"},onClick:function(){if((Fe==null?void 0:Fe.length)<=0){h.b.info("\u8BF7\u9009\u62E9\u5B66\u751F");return}T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u9009\u4E2D\u5B66\u751F\u5C06\u5168\u90E8\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u6062\u590D\uFF0C\u662F\u5426\u7EE7\u7EED\u5220\u9664",onOk:function(){var _e=Object(I.a)(ee.a.mark(function Se(){var De;return ee.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,Object(z.d)(Object(te.a)(Object(te.a)({},q),{},{students:Fe.map(function(et){return{course_member_id:et}})}));case 2:De=Me.sent,De.status===0&&(h.b.success("\u5220\u9664\u6210\u529F"),dt(),re({type:"classroomList/getClassroomTopBanner",payload:{id:q.coursesId}}));case 4:case"end":return Me.stop()}},Se)}));function Ee(){return _e.apply(this,arguments)}return Ee}()})}},C.a.createElement("i",{style:{color:"#F65160",display:"inline-flex",alignItems:"center"},className:"iconfont icon-piliangshanchu2 font14 mr5"})," \u6279\u91CF\u5220\u9664")),C.a.createElement(w.a,{style:{marginRight:30,fontSize:"12px",display:"inline-flex",alignItems:"center",color:"#333333"},onClick:function(){Ot(!1),lt([])}},C.a.createElement("i",{className:"iconfont icon-piliangcaozuo font12 mr5"}),"\u53D6\u6D88\u64CD\u4F5C"))))},R=Object(E.a)(function(ye){var fe=ye.teachers,be=ye.loading,ke=ye.globalSetting,Be=ye.classroomList;return{teachers:fe,globalSetting:ke,loading:be.effects,classroomList:Be}})(r),H=e("qdDa"),ne=e("8uFS"),ce=e("Jiyw"),ge=function(fe){var be=fe.teachers,ke=fe.globalSetting,Be=fe.classroomList,Ge=fe.loading,qe=fe.dispatch,We=fe.match,Et=Object(L.a)(fe,["teachers","globalSetting","classroomList","loading","dispatch","match"]),S=Be.detailTopBanner,se=Object(a.useState)("0"),re=Object(J.a)(se,2),me=re[0],ve=re[1],de=Object(N.i)(),q=function(he){ve(he.key)},le=C.a.createElement(g.a,{onClick:function(he){switch(he.key){case"1":Object(O.d)(Object(te.a)({},We.params));break;case"2":Object(O.b)(Object(te.a)({},We.params));break;case"3":Object(O.e)(Object(te.a)({},We.params));break}}},C.a.createElement(g.a.Item,{key:1},"\u8BFE\u5802\u4FE1\u606F"),C.a.createElement(g.a.Item,{key:2},"\u6D3B\u8DC3\u5EA6"),C.a.createElement(g.a.Item,{key:3},"\u603B\u6210\u7EE9"));return C.a.createElement("section",null,C.a.createElement(ne.a,{active:2},Object(j.f)()&&C.a.createElement("span",{className:"font16 mr20 current c-blue",onClick:function(){qe({type:"teachers/setActionTabs",payload:{key:"\u5BFC\u5165\u6210\u5458",reload:!1}})}},"\u5BFC\u5165\u6210\u5458"),Object(j.f)()&&C.a.createElement("span",{className:"font16 mr20 current c-blue",onClick:function(){qe({type:"teachers/setActionTabs",payload:{key:"\u66F4\u6362\u7BA1\u7406\u5458"}})}},"\u66F4\u6362\u7BA1\u7406\u5458"),Object(j.j)()&&C.a.createElement("span",{className:"font16 current c-blue",onClick:function(he){Object(O.f)(de)}},"\u5BFC\u51FA\u5B66\u751F")),C.a.createElement(R,null),C.a.createElement(H.a,null),C.a.createElement(ce.a,null))},Re=X.default=Object(E.a)(function(ye){var fe=ye.teachers,be=ye.loading,ke=ye.globalSetting,Be=ye.classroomList;return{teachers:fe,globalSetting:ke,classroomList:Be,loading:be.effects}})(ge)},LSTS:function(Oe,X,e){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var K=function(){function A(U,x){for(var u=0;u=0)continue;if(!Object.prototype.hasOwnProperty.call(A,u))continue;x[u]=A[u]}return x}function N(A,U){if(!(A instanceof U))throw new TypeError("Cannot call a class as a function")}function E(A,U){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:A}function O(A,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);A.prototype=Object.create(U&&U.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(A,U):A.__proto__=U)}var j=function(A){O(U,A);function U(x){N(this,U);var u=E(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,x));return u.scrollListener=u.scrollListener.bind(u),u.eventListenerOptions=u.eventListenerOptions.bind(u),u.mousewheelListener=u.mousewheelListener.bind(u),u}return K(U,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var u=this.getParentElement(this.scrollComponent);u.scrollTop=u.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var u=!1,f={get passive(){u=!0}};try{document.addEventListener("test",null,f),document.removeEventListener("test",null,f)}catch(k){}return u}},{key:"eventListenerOptions",value:function(){var u=this.props.useCapture;return this.isPassiveSupported()&&(u={useCapture:this.props.useCapture,passive:!0}),u}},{key:"setDefaultLoader",value:function(u){this.defaultLoader=u}},{key:"detachMousewheelListener",value:function(){var u=window;this.props.useWindow===!1&&(u=this.scrollComponent.parentNode),u.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var u=window;this.props.useWindow===!1&&(u=this.getParentElement(this.scrollComponent)),u.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),u.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(u){var f=this.props.getScrollParent&&this.props.getScrollParent();return f!=null?f:u&&u.parentNode}},{key:"filterProps",value:function(u){return u}},{key:"attachScrollListener",value:function(){var u=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!u)return;var f=window;this.props.useWindow===!1&&(f=u),f.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),f.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),f.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(u){u.deltaY===1&&!this.isPassiveSupported()&&u.preventDefault()}},{key:"scrollListener",value:function(){var u=this.scrollComponent,f=window,k=this.getParentElement(u),P=void 0;if(this.props.useWindow){var G=document.documentElement||document.body.parentNode||document.body,Z=f.pageYOffset!==void 0?f.pageYOffset:G.scrollTop;this.props.isReverse?P=Z:P=this.calculateOffset(u,Z)}else this.props.isReverse?P=k.scrollTop:P=u.scrollHeight-k.scrollTop-k.clientHeight;P1&&arguments[1]!==void 0?arguments[1]:1,ue=be.length,he=0;he1&&arguments[1]!==void 0?arguments[1]:!1;return Object(F.a)(b).map(function(h,I){if(!L.isValidElement(h)||!h.type)return null;var Y=h.type.isSelectOptGroup,ee=h.key,B=h.props,z=B.children,Q=Object(C.a)(B,["children"]);return d||!Y?$(h):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(ee===null?I:ee,"__"),label:ee},Q),{},{options:p(z)})}).filter(function(h){return h})}var l=e("2Qr1"),o=e("qNPg"),_=e("U8pU"),y=e("Kwbf"),T=e("WKfj");function D(b){var d=b.mode,h=b.options,I=b.children,Y=b.backfill,ee=b.allowClear,B=b.placeholder,z=b.getInputElement,Q=b.showSearch,W=b.onSearch,M=b.defaultOpen,ie=b.autoFocus,t=b.labelInValue,c=b.value,r=b.inputValue,R=b.optionLabelProp,H=d==="multiple"||d==="tags",ne=Q!==void 0?Q:H||d==="combobox",ce=h||p(I);if(Object(y.a)(d!=="tags"||ce.every(function(fe){return!fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),d==="tags"||d==="combobox"){var ge=ce.some(function(fe){return fe.options?fe.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in fe?fe.value:fe.key)=="number"});Object(y.a)(!ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(y.a)(d!=="combobox"||!R,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(y.a)(d==="combobox"||!Y,"`backfill` only works with `combobox` mode."),Object(y.a)(d==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(y.b)(d!=="combobox"||!z||!ee||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!ne&&d!=="combobox"&&d!=="tags"&&Object(y.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(y.b)(!M||ie,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),c!=null){var Re=Object(T.d)(c);Object(y.a)(!t||Re.every(function(fe){return Object(_.a)(fe)==="object"&&("key"in fe||"value"in fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(y.a)(!H||Array.isArray(c),"`value` should be array when `mode` is `multiple` or `tags`")}if(I){var ye=null;Object(F.a)(I).some(function(fe){if(!L.isValidElement(fe)||!fe.type)return!1;var be=fe.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var ke=Object(F.a)(fe.props.children).every(function(Be){return!L.isValidElement(Be)||!fe.type||Be.type.isSelectOption?!0:(ye=Be.type,!1)});return!ke}return ye=be,!0}),ye&&Object(y.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ye.displayName||ye.name||ye,"`.")),Object(y.a)(r===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var v=D,i=Object(o.a)({prefixCls:"rc-select",components:{optionList:P},convertChildrenToData:p,flattenOptions:l.d,getLabeledValue:l.e,filterOptions:l.b,isValueDisabled:l.g,findValueOption:l.c,warningProps:v,fillOptionsWithMissingValue:l.a}),m=function(b){Object(te.a)(h,b);var d=Object(J.a)(h);function h(){var I;return Object(K.a)(this,h),I=d.apply(this,arguments),I.selectRef=L.createRef(),I.focus=function(){I.selectRef.current.focus()},I.blur=function(){I.selectRef.current.blur()},I}return Object(g.a)(h,[{key:"render",value:function(){return L.createElement(i,Object.assign({ref:this.selectRef},this.props))}}]),h}(L.Component);m.Option=Z,m.OptGroup=ae;var s=m,n=X.c=s},NvD2:function(Oe,X,e){"use strict";e.d(X,"a",function(){return a});var K=e("Kwbf");function g(C,N){var E=new Set;return C.forEach(function(O){N.has(O)||E.add(O)}),E}function te(C){var N=C||{},E=N.disabled,O=N.disableCheckbox,j=N.checkable;return!!(E||O)||j===!1}function J(C,N,E,O){for(var j=new Set(C),A=new Set,U=0;U<=E;U+=1){var x=N.get(U)||new Set;x.forEach(function(P){var G=P.key,Z=P.node,V=P.children,ae=V===void 0?[]:V;j.has(G)&&!O(Z)&&ae.filter(function(w){return!O(w.node)}).forEach(function(w){j.add(w.key)})})}for(var u=new Set,f=E;f>=0;f-=1){var k=N.get(f)||new Set;k.forEach(function(P){var G=P.parent,Z=P.node;if(O(Z)||!P.parent||u.has(P.parent.key))return;if(O(P.parent.node)){u.add(G.key);return}var V=!0,ae=!1;(G.children||[]).filter(function(w){return!O(w.node)}).forEach(function(w){var F=w.key,$=j.has(F);V&&!$&&(V=!1),!ae&&($||A.has(F))&&(ae=!0)}),V&&j.add(G.key),ae&&A.add(G.key),u.add(G.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(g(A,j))}}function L(C,N,E,O,j){for(var A=new Set(C),U=new Set(N),x=0;x<=O;x+=1){var u=E.get(x)||new Set;u.forEach(function(G){var Z=G.key,V=G.node,ae=G.children,w=ae===void 0?[]:ae;!A.has(Z)&&!U.has(Z)&&!j(V)&&w.filter(function(F){return!j(F.node)}).forEach(function(F){A.delete(F.key)})})}U=new Set;for(var f=new Set,k=O;k>=0;k-=1){var P=E.get(k)||new Set;P.forEach(function(G){var Z=G.parent,V=G.node;if(j(V)||!G.parent||f.has(G.parent.key))return;if(j(G.parent.node)){f.add(Z.key);return}var ae=!0,w=!1;(Z.children||[]).filter(function(F){return!j(F.node)}).forEach(function(F){var $=F.key,p=A.has($);ae&&!p&&(ae=!1),!w&&(p||U.has($))&&(w=!0)}),ae||A.delete(Z.key),w&&U.add(Z.key),f.add(Z.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(g(U,A))}}function a(C,N,E,O){var j=[],A;O?A=O:A=te;var U=new Set(C.filter(function(k){var P=!!E[k];return P||j.push(k),P})),x=new Map,u=0;Object.keys(E).forEach(function(k){var P=E[k],G=P.level,Z=x.get(G);Z||(Z=new Set,x.set(G,Z)),Z.add(P),u=Math.max(u,G)}),Object(K.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(k){return"'".concat(k,"'")}).join(", ")));var f;return N===!0?f=J(U,x,u,A):f=L(U,N.halfCheckedKeys,x,u,A),f}},OZM5:function(Oe,X,e){"use strict";e.d(X,"b",function(){return O}),e.d(X,"a",function(){return j}),e.d(X,"k",function(){return A}),e.d(X,"h",function(){return U}),e.d(X,"i",function(){return x}),e.d(X,"g",function(){return u}),e.d(X,"c",function(){return f}),e.d(X,"d",function(){return k}),e.d(X,"j",function(){return Z}),e.d(X,"e",function(){return V}),e.d(X,"f",function(){return ae});var K=e("KQm4"),g=e("U8pU"),te=e("Ff2n"),J=e("q1tI"),L=e.n(J),a=e("Kwbf"),C=e("WaYH"),N=.25,E=2;function O(w,F){var $=w.slice(),p=$.indexOf(F);return p>=0&&$.splice(p,1),$}function j(w,F){var $=w.slice();return $.indexOf(F)===-1&&$.push(F),$}function A(w){return w.split("-")}function U(w,F){return"".concat(w,"-").concat(F)}function x(w){return w&&w.type&&w.type.isTreeNode}function u(w,F){var $=[w],p=F[w];function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(_){var y=_.key,T=_.children;$.push(y),l(T)})}return l(p.children),$}function f(w,F){var $=w.clientY,p=F.selectHandle.getBoundingClientRect(),l=p.top,o=p.bottom,_=p.height,y=Math.max(_*N,E);return $<=l+y?-1:$>=o-y?1:0}function k(w,F){if(!w)return;var $=F.multiple;return $?w.slice():w.length?[w[0]]:w}var P=function(F){return F};function G(w,F){if(!w)return[];var $=F||{},p=$.processProps,l=p===void 0?P:p,o=Array.isArray(w)?w:[w];return o.map(function(_){var y=_.children,T=Object(te.a)(_,["children"]),D=G(y,F);return L.a.createElement(C.a,Object.assign({},l(T)),D)})}function Z(w){if(!w)return null;var F;if(Array.isArray(w))F={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(g.a)(w)==="object")F={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;return F}function V(w,F){var $=new Set;function p(l){if($.has(l))return;var o=F[l];if(!o)return;$.add(l);var _=o.parent,y=o.node;if(y.disabled)return;_&&p(_.key)}return(w||[]).forEach(function(l){p(l)}),Object(K.a)($)}function ae(w){var F={};return Object.keys(w).forEach(function($){($.startsWith("data-")||$.startsWith("aria-"))&&(F[$]=w[$])}),F}},"RI+Y":function(Oe,X,e){Oe.exports={ManageHead:"ManageHead___2IMvb",tabs:"tabs___1NuAo",title:"title___1rlAS",active:"active___xTnBU"}},RotF:function(Oe,X,e){Oe.exports=e("LSTS")},"SA+Z":function(Oe,X,e){var K=e("wTVA"),g=e("EbDI"),te=e("ZhPi"),J=e("wkBT");function L(a){return K(a)||g(a)||te(a)||J()}Oe.exports=L,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,X,e){"use strict";var K=e("rePB"),g=e("Ff2n"),te=e("VTBJ"),J=e("1OyB"),L=e("vuIU"),a=e("JX7q"),C=e("Ji7U"),N=e("LK+K"),E=e("q1tI"),O=e("TSYQ"),j=e.n(O),A=e("sboe"),U=e("OZM5"),x=function(F){var $=F.prefixCls,p=F.level,l=F.isStart,o=F.isEnd;if(!p)return null;for(var _="".concat($,"-indent-unit"),y=[],T=0;T1&&arguments[1]!==void 0?arguments[1]:!1,Q=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(z&&v[Q])return v[Q];var W=window.getComputedStyle(B),M=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),ie=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),t=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),c=D.map(function(R){return"".concat(R,":").concat(W.getPropertyValue(R))}).join(";"),r={sizingStyle:c,paddingSize:ie,borderSize:t,boxSizing:M};return z&&Q&&(v[Q]=r),r}function s(B){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;i||(i=document.createElement("textarea"),i.setAttribute("tab-index","-1"),i.setAttribute("aria-hidden","true"),document.body.appendChild(i)),B.getAttribute("wrap")?i.setAttribute("wrap",B.getAttribute("wrap")):i.removeAttribute("wrap");var M=m(B,z),ie=M.paddingSize,t=M.borderSize,c=M.boxSizing,r=M.sizingStyle;i.setAttribute("style","".concat(r,";").concat(A)),i.value=B.value||B.placeholder||"";var R=Number.MIN_SAFE_INTEGER,H=Number.MAX_SAFE_INTEGER,ne=i.scrollHeight,ce;if(c==="border-box"?ne+=t:c==="content-box"&&(ne-=ie),Q!==null||W!==null){i.value=" ";var ge=i.scrollHeight-ie;Q!==null&&(R=ge*Q,c==="border-box"&&(R=R+ie+t),ne=Math.max(R,ne)),W!==null&&(H=ge*W,c==="border-box"&&(H=H+ie+t),ce=ne>H?"":"hidden",ne=Math.min(H,ne))}return{height:ne,minHeight:R,maxHeight:H,overflowY:ce,resize:"none"}}var n=e("Gytx"),b=e.n(n),d;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(d||(d={}));var h=function(B){Object(J.a)(Q,B);var z=Object(L.a)(Q);function Q(W){var M;return Object(g.a)(this,Q),M=z.call(this,W),M.nextFrameActionId=void 0,M.resizeFrameId=void 0,M.textArea=void 0,M.saveTextArea=function(ie){M.textArea=ie},M.handleResize=function(ie){var t=M.state.resizeStatus,c=M.props,r=c.autoSize,R=c.onResize;if(t!==d.NONE)return;typeof R=="function"&&R(ie),r&&M.resizeOnNextFrame()},M.resizeOnNextFrame=function(){cancelAnimationFrame(M.nextFrameActionId),M.nextFrameActionId=requestAnimationFrame(M.resizeTextarea)},M.resizeTextarea=function(){var ie=M.props.autoSize;if(!ie||!M.textArea)return;var t=ie.minRows,c=ie.maxRows,r=s(M.textArea,!1,t,c);M.setState({textareaStyles:r,resizeStatus:d.RESIZING},function(){cancelAnimationFrame(M.resizeFrameId),M.resizeFrameId=requestAnimationFrame(function(){M.setState({resizeStatus:d.RESIZED},function(){M.resizeFrameId=requestAnimationFrame(function(){M.setState({resizeStatus:d.NONE}),M.fixFirefoxAutoScroll()})})})})},M.renderTextArea=function(){var ie=M.props,t=ie.prefixCls,c=t===void 0?"rc-textarea":t,r=ie.autoSize,R=ie.onResize,H=ie.className,ne=ie.disabled,ce=M.state,ge=ce.textareaStyles,Re=ce.resizeStatus,ye=Object(o.a)(M.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),fe=y()(c,H,Object(N.a)({},"".concat(c,"-disabled"),ne));"value"in ye&&(ye.value=ye.value||"");var be=Object(C.a)(Object(C.a)(Object(C.a)({},M.props.style),ge),Re===d.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return a.createElement(l,{onResize:M.handleResize,disabled:!(r||R)},a.createElement("textarea",Object(K.a)({},ye,{className:fe,style:be,ref:M.saveTextArea})))},M.state={textareaStyles:{},resizeStatus:d.NONE},M}return Object(te.a)(Q,[{key:"componentDidUpdate",value:function(M){(M.value!==this.props.value||!b()(M.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var M=this.textArea.selectionStart,ie=this.textArea.selectionEnd;this.textArea.setSelectionRange(M,ie)}}catch(t){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Q}(a.Component),I=h,Y=function(B){Object(J.a)(Q,B);var z=Object(L.a)(Q);function Q(W){var M;Object(g.a)(this,Q),M=z.call(this,W),M.resizableTextArea=void 0,M.focus=function(){M.resizableTextArea.textArea.focus()},M.saveTextArea=function(t){M.resizableTextArea=t},M.handleChange=function(t){var c=M.props.onChange;M.setValue(t.target.value,function(){M.resizableTextArea.resizeTextarea()}),c&&c(t)},M.handleKeyDown=function(t){var c=M.props,r=c.onPressEnter,R=c.onKeyDown;t.keyCode===13&&r&&r(t),R&&R(t)};var ie=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return M.state={value:ie},M}return Object(te.a)(Q,[{key:"setValue",value:function(M,ie){"value"in this.props||this.setState({value:M},ie)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return a.createElement(I,Object(K.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(M){return"value"in M?{value:M.value}:null}}]),Q}(a.Component),ee=X.default=Y},ZpRC:function(Oe,X,e){"use strict";function K(j){return typeof j=="object"&&j!=null&&j.nodeType===1}function g(j,T){return(!T||j!=="hidden")&&j!=="visible"&&j!=="clip"}function te(j,T){if(j.clientHeightT||f>j&&k=T&&P>=U?f-j-x:k>T&&PU?k-T+u:0}var L=function(j,T){var U=window,x=T.scrollMode,u=T.block,f=T.inline,k=T.boundary,P=T.skipOverflowHiddenElements,G=typeof k=="function"?k:function(ge){return ge!==k};if(!K(j))throw new TypeError("Invalid target");for(var Z=document.scrollingElement||document.documentElement,V=[],ae=j;K(ae)&&G(ae);){if((ae=ae.parentElement)===Z){V.push(ae);break}ae!=null&&ae===document.body&&te(ae)&&!te(document.documentElement)||ae!=null&&te(ae,P)&&V.push(ae)}for(var w=U.visualViewport?U.visualViewport.width:innerWidth,F=U.visualViewport?U.visualViewport.height:innerHeight,$=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,l=j.getBoundingClientRect(),o=l.height,_=l.width,y=l.top,A=l.right,D=l.bottom,v=l.left,i=u==="start"||u==="nearest"?y:u==="end"?D:y+o/2,m=f==="center"?v+_/2:f==="end"?A:v,s=[],n=0;n=0&&v>=0&&D<=F&&A<=w&&y>=Y&&D<=B&&v>=z&&A<=ee)return s;var Q=getComputedStyle(b),W=parseInt(Q.borderLeftWidth,10),M=parseInt(Q.borderTopWidth,10),ie=parseInt(Q.borderRightWidth,10),t=parseInt(Q.borderBottomWidth,10),c=0,r=0,R="offsetWidth"in b?b.offsetWidth-b.clientWidth-W-ie:0,H="offsetHeight"in b?b.offsetHeight-b.clientHeight-M-t:0;if(Z===b)c=u==="start"?i:u==="end"?i-F:u==="nearest"?J(p,p+F,F,M,t,p+i,p+i+o,o):i-F/2,r=f==="start"?m:f==="center"?m-w/2:f==="end"?m-w:J($,$+w,w,W,ie,$+m,$+m+_,_),c=Math.max(0,c+p),r=Math.max(0,r+$);else{c=u==="start"?i-Y-M:u==="end"?i-B+t+H:u==="nearest"?J(Y,B,h,M,t+H,i,i+o,o):i-(Y+h/2)+H/2,r=f==="start"?m-z-W:f==="center"?m-(z+I/2)+R/2:f==="end"?m-ee+ie+R:J(z,ee,I,W,ie+R,m,m+_,_);var ne=b.scrollLeft,ce=b.scrollTop;i+=ce-(c=Math.max(0,Math.min(ce+c,b.scrollHeight-h+H))),m+=ne-(r=Math.max(0,Math.min(ne+r,b.scrollWidth-I+R)))}s.push({el:b,top:c,left:r})}return s};function a(j){return j===Object(j)&&Object.keys(j).length!==0}function C(j,T){T===void 0&&(T="auto");var U="scrollBehavior"in document.body.style;j.forEach(function(x){var u=x.el,f=x.top,k=x.left;u.scroll&&U?u.scroll({top:f,left:k,behavior:T}):(u.scrollTop=f,u.scrollLeft=k)})}function N(j){return j===!1?{block:"end",inline:"nearest"}:a(j)?j:{block:"start",inline:"nearest"}}function E(j,T){var U=!j.ownerDocument.documentElement.contains(j);if(a(T)&&typeof T.behavior=="function")return T.behavior(U?[]:L(j,T));if(U)return;var x=N(T);return C(L(j,x),x.behavior)}var O=X.a=E},Zss7:function(Oe,X,e){var K;(function(g){var te=/^\s+/,J=/\s+$/,L=0,a=g.round,C=g.min,N=g.max,E=g.random;function O(t,c){if(t=t||"",c=c||{},t instanceof O)return t;if(!(this instanceof O))return new O(t,c);var r=j(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=a(100*this._a)/100,this._format=c.format||r.format,this._gradientType=c.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=r.ok,this._tc_id=L++}O.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 t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),c,r,R,H,ne,ce;return c=t.r/255,r=t.g/255,R=t.b/255,c<=.03928?H=c/12.92:H=g.pow((c+.055)/1.055,2.4),r<=.03928?ne=r/12.92:ne=g.pow((r+.055)/1.055,2.4),R<=.03928?ce=R/12.92:ce=g.pow((R+.055)/1.055,2.4),.2126*H+.7152*ne+.0722*ce},setAlpha:function(t){return this._a=s(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=u(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u(this._r,this._g,this._b),c=a(t.h*360),r=a(t.s*100),R=a(t.v*100);return this._a==1?"hsv("+c+", "+r+"%, "+R+"%)":"hsva("+c+", "+r+"%, "+R+"%, "+this._roundA+")"},toHsl:function(){var t=U(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=U(this._r,this._g,this._b),c=a(t.h*360),r=a(t.s*100),R=a(t.l*100);return this._a==1?"hsl("+c+", "+r+"%, "+R+"%)":"hsla("+c+", "+r+"%, "+R+"%, "+this._roundA+")"},toHex:function(t){return k(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return P(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(n(this._r,255)*100)+"%",g:a(n(this._g,255)*100)+"%",b:a(n(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(n(this._r,255)*100)+"%, "+a(n(this._g,255)*100)+"%, "+a(n(this._b,255)*100)+"%)":"rgba("+a(n(this._r,255)*100)+"%, "+a(n(this._g,255)*100)+"%, "+a(n(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:i[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var c="#"+G(this._r,this._g,this._b,this._a),r=c,R=this._gradientType?"GradientType = 1, ":"";if(t){var H=O(t);r="#"+G(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+R+"startColorstr="+c+",endColorstr="+r+")"},toString:function(t){var c=!!t;t=t||this._format;var r=!1,R=this._a<1&&this._a>=0,H=!c&&R&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return H?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return O(this.toString())},_applyModification:function(t,c){var r=t.apply(null,[this].concat([].slice.call(c)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(Z,arguments)},saturate:function(){return this._applyModification(V,arguments)},greyscale:function(){return this._applyModification(ae,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(t,c){return t.apply(null,[this].concat([].slice.call(c)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(l,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(o,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},O.fromRatio=function(t,c){if(typeof t=="object"){var r={};for(var R in t)t.hasOwnProperty(R)&&(R==="a"?r[R]=t[R]:r[R]=ee(t[R]));t=r}return O(t,c)};function j(t){var c={r:0,g:0,b:0},r=1,R=null,H=null,ne=null,ce=!1,ge=!1;return typeof t=="string"&&(t=M(t)),typeof t=="object"&&(W(t.r)&&W(t.g)&&W(t.b)?(c=T(t.r,t.g,t.b),ce=!0,ge=String(t.r).substr(-1)==="%"?"prgb":"rgb"):W(t.h)&&W(t.s)&&W(t.v)?(R=ee(t.s),H=ee(t.v),c=f(t.h,R,H),ce=!0,ge="hsv"):W(t.h)&&W(t.s)&&W(t.l)&&(R=ee(t.s),ne=ee(t.l),c=x(t.h,R,ne),ce=!0,ge="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=s(r),{ok:ce,format:t.format||ge,r:C(255,N(c.r,0)),g:C(255,N(c.g,0)),b:C(255,N(c.b,0)),a:r}}function T(t,c,r){return{r:n(t,255)*255,g:n(c,255)*255,b:n(r,255)*255}}function U(t,c,r){t=n(t,255),c=n(c,255),r=n(r,255);var R=N(t,c,r),H=C(t,c,r),ne,ce,ge=(R+H)/2;if(R==H)ne=ce=0;else{var Re=R-H;ce=ge>.5?Re/(2-R-H):Re/(R+H);switch(R){case t:ne=(c-r)/Re+(c1&&(be-=1),be<1/6?ye+(fe-ye)*6*be:be<1/2?fe:be<2/3?ye+(fe-ye)*(2/3-be)*6:ye}if(c===0)R=H=ne=r;else{var ge=r<.5?r*(1+c):r+c-r*c,Re=2*r-ge;R=ce(Re,ge,t+1/3),H=ce(Re,ge,t),ne=ce(Re,ge,t-1/3)}return{r:R*255,g:H*255,b:ne*255}}function u(t,c,r){t=n(t,255),c=n(c,255),r=n(r,255);var R=N(t,c,r),H=C(t,c,r),ne,ce,ge=R,Re=R-H;if(ce=R===0?0:Re/R,R==H)ne=0;else{switch(R){case t:ne=(c-r)/Re+(c>1)+720)%360;--c;)R.h=(R.h+H)%360,ne.push(O(R));return ne}function D(t,c){c=c||6;for(var r=O(t).toHsv(),R=r.h,H=r.s,ne=r.v,ce=[],ge=1/c;c--;)ce.push(O({h:R,s:H,v:ne})),ne=(ne+ge)%1;return ce}O.mix=function(t,c,r){r=r===0?0:r||50;var R=O(t).toRgb(),H=O(c).toRgb(),ne=r/100,ce={r:(H.r-R.r)*ne+R.r,g:(H.g-R.g)*ne+R.g,b:(H.b-R.b)*ne+R.b,a:(H.a-R.a)*ne+R.a};return O(ce)},O.readability=function(t,c){var r=O(t),R=O(c);return(g.max(r.getLuminance(),R.getLuminance())+.05)/(g.min(r.getLuminance(),R.getLuminance())+.05)},O.isReadable=function(t,c,r){var R=O.readability(t,c),H,ne;ne=!1,H=ie(r);switch(H.level+H.size){case"AAsmall":case"AAAlarge":ne=R>=4.5;break;case"AAlarge":ne=R>=3;break;case"AAAsmall":ne=R>=7;break}return ne},O.mostReadable=function(t,c,r){var R=null,H=0,ne,ce,ge,Re;r=r||{},ce=r.includeFallbackColors,ge=r.level,Re=r.size;for(var ye=0;yeH&&(H=ne,R=O(c[ye]));return O.isReadable(t,R,{level:ge,size:Re})||!ce?R:(r.includeFallbackColors=!1,O.mostReadable(t,["#fff","#000"],r))};var v=O.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"},i=O.hexNames=m(v);function m(t){var c={};for(var r in t)t.hasOwnProperty(r)&&(c[t[r]]=r);return c}function s(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function n(t,c){h(t)&&(t="100%");var r=I(t);return t=C(c,N(0,parseFloat(t))),r&&(t=parseInt(t*c,10)/100),g.abs(t-c)<1e-6?1:t%c/parseFloat(c)}function b(t){return C(1,N(0,t))}function d(t){return parseInt(t,16)}function h(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function I(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Y(t){return t.length==1?"0"+t:""+t}function ee(t){return t<=1&&(t=t*100+"%"),t}function B(t){return g.round(parseFloat(t)*255).toString(16)}function z(t){return d(t)/255}var Q=function(){var t="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",r="(?:"+c+")|(?:"+t+")",R="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",H="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+H),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 W(t){return!!Q.CSS_UNIT.exec(t)}function M(t){t=t.replace(te,"").replace(J,"").toLowerCase();var c=!1;if(v[t])t=v[t],c=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Q.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Q.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Q.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Q.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Q.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Q.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Q.hex8.exec(t))?{r:d(r[1]),g:d(r[2]),b:d(r[3]),a:z(r[4]),format:c?"name":"hex8"}:(r=Q.hex6.exec(t))?{r:d(r[1]),g:d(r[2]),b:d(r[3]),format:c?"name":"hex"}:(r=Q.hex4.exec(t))?{r:d(r[1]+""+r[1]),g:d(r[2]+""+r[2]),b:d(r[3]+""+r[3]),a:z(r[4]+""+r[4]),format:c?"name":"hex8"}:(r=Q.hex3.exec(t))?{r:d(r[1]+""+r[1]),g:d(r[2]+""+r[2]),b:d(r[3]+""+r[3]),format:c?"name":"hex"}:!1}function ie(t){var c,r;return t=t||{level:"AA",size:"small"},c=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),c!=="AA"&&c!=="AAA"&&(c="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:c,size:r}}Oe.exports?Oe.exports=O:!(K=function(){return O}.call(X,e,X,Oe),K!==void 0&&(Oe.exports=K))})(Math)},bT9E:function(Oe,X,e){"use strict";e.d(X,"a",function(){return g});var K=e("VTBJ");function g(te,J){var L=Object(K.a)({},te);return Array.isArray(J)&&J.forEach(function(a){delete L[a]}),L}},biw7:function(Oe,X,e){"use strict";var K=e("q1tI"),g=e.n(K),te=K.createContext(null);X.a=te},fyJ8:function(Oe,X,e){"use strict";var K=e("rePB"),g=e("VTBJ"),te=e("Ff2n"),J=e("U8pU"),L=e("q1tI"),a=e.n(L),C=e("TSYQ"),N=e.n(C),E=e("c+Xe"),O=e("sR1s");function j(f){return f&&Object(J.a)(f)==="object"&&!Array.isArray(f)&&!L.isValidElement(f)}function T(f){return typeof f=="string"?!0:Object(E.c)(f)}function U(f,k){var P,G=f.prefixCls,Z=f.className,V=f.record,ae=f.index,w=f.dataIndex,F=f.render,$=f.children,p=f.component,l=p===void 0?"td":p,o=f.colSpan,_=f.rowSpan,y=f.fixLeft,A=f.fixRight,D=f.firstFixLeft,v=f.lastFixLeft,i=f.firstFixRight,m=f.lastFixRight,s=f.appendNode,n=f.additionalProps,b=n===void 0?{}:n,d=f.ellipsis,h=f.align,I=f.rowType,Y=f.isSticky,ee="".concat(G,"-cell"),B,z;if($)z=$;else{var Q=Object(O.b)(V,w);if(z=Q,F){var W=F(Q,V,ae);j(W)?(z=W.children,B=W.props):z=W}}Object(J.a)(z)==="object"&&!Array.isArray(z)&&!L.isValidElement(z)&&(z=null),d&&(v||i)&&(z=L.createElement("span",{className:"".concat(ee,"-content")},z));var M=B||{},ie=M.colSpan,t=M.rowSpan,c=M.style,r=M.className,R=Object(te.a)(M,["colSpan","rowSpan","style","className"]),H=ie!==void 0?ie:o,ne=t!==void 0?t:_;if(H===0||ne===0)return null;var ce={},ge=typeof y=="number",Re=typeof A=="number";ge&&(ce.position="sticky",ce.left=y),Re&&(ce.position="sticky",ce.right=A);var ye={};h&&(ye.textAlign=h);var fe,be=d===!0?{showTitle:!0}:d;be&&(be.showTitle||I==="header")&&(typeof z=="string"||typeof z=="number"?fe=z.toString():L.isValidElement(z)&&typeof z.props.children=="string"&&(fe=z.props.children));var ke=Object(g.a)(Object(g.a)(Object(g.a)({title:fe},R),b),{},{colSpan:H&&H!==1?H:null,rowSpan:ne&&ne!==1?ne:null,className:N()(ee,Z,(P={},Object(K.a)(P,"".concat(ee,"-fix-left"),ge),Object(K.a)(P,"".concat(ee,"-fix-left-first"),D),Object(K.a)(P,"".concat(ee,"-fix-left-last"),v),Object(K.a)(P,"".concat(ee,"-fix-right"),Re),Object(K.a)(P,"".concat(ee,"-fix-right-first"),i),Object(K.a)(P,"".concat(ee,"-fix-right-last"),m),Object(K.a)(P,"".concat(ee,"-ellipsis"),d),Object(K.a)(P,"".concat(ee,"-with-append"),s),Object(K.a)(P,"".concat(ee,"-fix-sticky"),(ge||Re)&&Y),P),b.className,r),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},b.style),ye),ce),c),ref:T(l)?k:null});return L.createElement(l,Object.assign({},ke),s,z)}var x=L.forwardRef(U);x.displayName="Cell";var u=L.memo(x,function(f,k){return k.shouldCellUpdate?!k.shouldCellUpdate(k.record,f.record):!1});X.a=u},h78n:function(Oe,X,e){"use strict";e.d(X,"a",function(){return D});var K=e("q1tI"),g=e.n(K),te=e("TSYQ"),J=e.n(te),L={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},a=function(m){var s=m.map(function(){return Object(K.useRef)()}),n=Object(K.useRef)();return Object(K.useEffect)(function(){var b=Date.now(),d=!1;Object.keys(s).forEach(function(h){var I=s[h].current;if(!I)return;d=!0;var Y=I.style;Y.transitionDuration=".3s, .3s, .3s, .06s",n.current&&b-n.current<100&&(Y.transitionDuration="0s, 0s")}),d&&(n.current=Date.now())}),[s]};function C(){return C=Object.assign||function(i){for(var m=1;mi.length)&&(m=i.length);for(var s=0,n=new Array(m);s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(i,n))continue;s[n]=i[n]}}return s}function u(i,m){if(i==null)return{};var s={},n=Object.keys(i),b,d;for(d=0;d=0)continue;s[b]=i[b]}return s}var f=function(m){var s=m.className,n=m.percent,b=m.prefixCls,d=m.strokeColor,h=m.strokeLinecap,I=m.strokeWidth,Y=m.style,ee=m.trailColor,B=m.trailWidth,z=m.transition,Q=x(m,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Q.gapPosition;var W=Array.isArray(n)?n:[n],M=Array.isArray(d)?d:[d],ie=a(W),t=N(ie,1),c=t[0],r=I/2,R=100-I/2,H="M ".concat(h==="round"?r:0,",").concat(r,` +`,D=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],v={},i;function m(B){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(z&&v[Q])return v[Q];var W=window.getComputedStyle(B),M=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),ie=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),t=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),c=D.map(function(R){return"".concat(R,":").concat(W.getPropertyValue(R))}).join(";"),r={sizingStyle:c,paddingSize:ie,borderSize:t,boxSizing:M};return z&&Q&&(v[Q]=r),r}function s(B){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;i||(i=document.createElement("textarea"),i.setAttribute("tab-index","-1"),i.setAttribute("aria-hidden","true"),document.body.appendChild(i)),B.getAttribute("wrap")?i.setAttribute("wrap",B.getAttribute("wrap")):i.removeAttribute("wrap");var M=m(B,z),ie=M.paddingSize,t=M.borderSize,c=M.boxSizing,r=M.sizingStyle;i.setAttribute("style","".concat(r,";").concat(T)),i.value=B.value||B.placeholder||"";var R=Number.MIN_SAFE_INTEGER,H=Number.MAX_SAFE_INTEGER,ne=i.scrollHeight,ce;if(c==="border-box"?ne+=t:c==="content-box"&&(ne-=ie),Q!==null||W!==null){i.value=" ";var ge=i.scrollHeight-ie;Q!==null&&(R=ge*Q,c==="border-box"&&(R=R+ie+t),ne=Math.max(R,ne)),W!==null&&(H=ge*W,c==="border-box"&&(H=H+ie+t),ce=ne>H?"":"hidden",ne=Math.min(H,ne))}return{height:ne,minHeight:R,maxHeight:H,overflowY:ce,resize:"none"}}var n=e("Gytx"),b=e.n(n),d;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(d||(d={}));var h=function(B){Object(J.a)(Q,B);var z=Object(L.a)(Q);function Q(W){var M;return Object(g.a)(this,Q),M=z.call(this,W),M.nextFrameActionId=void 0,M.resizeFrameId=void 0,M.textArea=void 0,M.saveTextArea=function(ie){M.textArea=ie},M.handleResize=function(ie){var t=M.state.resizeStatus,c=M.props,r=c.autoSize,R=c.onResize;if(t!==d.NONE)return;typeof R=="function"&&R(ie),r&&M.resizeOnNextFrame()},M.resizeOnNextFrame=function(){cancelAnimationFrame(M.nextFrameActionId),M.nextFrameActionId=requestAnimationFrame(M.resizeTextarea)},M.resizeTextarea=function(){var ie=M.props.autoSize;if(!ie||!M.textArea)return;var t=ie.minRows,c=ie.maxRows,r=s(M.textArea,!1,t,c);M.setState({textareaStyles:r,resizeStatus:d.RESIZING},function(){cancelAnimationFrame(M.resizeFrameId),M.resizeFrameId=requestAnimationFrame(function(){M.setState({resizeStatus:d.RESIZED},function(){M.resizeFrameId=requestAnimationFrame(function(){M.setState({resizeStatus:d.NONE}),M.fixFirefoxAutoScroll()})})})})},M.renderTextArea=function(){var ie=M.props,t=ie.prefixCls,c=t===void 0?"rc-textarea":t,r=ie.autoSize,R=ie.onResize,H=ie.className,ne=ie.disabled,ce=M.state,ge=ce.textareaStyles,Re=ce.resizeStatus,ye=Object(o.a)(M.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),fe=y()(c,H,Object(N.a)({},"".concat(c,"-disabled"),ne));"value"in ye&&(ye.value=ye.value||"");var be=Object(C.a)(Object(C.a)(Object(C.a)({},M.props.style),ge),Re===d.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return a.createElement(l,{onResize:M.handleResize,disabled:!(r||R)},a.createElement("textarea",Object(K.a)({},ye,{className:fe,style:be,ref:M.saveTextArea})))},M.state={textareaStyles:{},resizeStatus:d.NONE},M}return Object(te.a)(Q,[{key:"componentDidUpdate",value:function(M){(M.value!==this.props.value||!b()(M.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var M=this.textArea.selectionStart,ie=this.textArea.selectionEnd;this.textArea.setSelectionRange(M,ie)}}catch(t){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Q}(a.Component),I=h,Y=function(B){Object(J.a)(Q,B);var z=Object(L.a)(Q);function Q(W){var M;Object(g.a)(this,Q),M=z.call(this,W),M.resizableTextArea=void 0,M.focus=function(){M.resizableTextArea.textArea.focus()},M.saveTextArea=function(t){M.resizableTextArea=t},M.handleChange=function(t){var c=M.props.onChange;M.setValue(t.target.value,function(){M.resizableTextArea.resizeTextarea()}),c&&c(t)},M.handleKeyDown=function(t){var c=M.props,r=c.onPressEnter,R=c.onKeyDown;t.keyCode===13&&r&&r(t),R&&R(t)};var ie=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return M.state={value:ie},M}return Object(te.a)(Q,[{key:"setValue",value:function(M,ie){"value"in this.props||this.setState({value:M},ie)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return a.createElement(I,Object(K.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(M){return"value"in M?{value:M.value}:null}}]),Q}(a.Component),ee=X.default=Y},ZpRC:function(Oe,X,e){"use strict";function K(j){return typeof j=="object"&&j!=null&&j.nodeType===1}function g(j,A){return(!A||j!=="hidden")&&j!=="visible"&&j!=="clip"}function te(j,A){if(j.clientHeightA||f>j&&k=A&&P>=U?f-j-x:k>A&&PU?k-A+u:0}var L=function(j,A){var U=window,x=A.scrollMode,u=A.block,f=A.inline,k=A.boundary,P=A.skipOverflowHiddenElements,G=typeof k=="function"?k:function(ge){return ge!==k};if(!K(j))throw new TypeError("Invalid target");for(var Z=document.scrollingElement||document.documentElement,V=[],ae=j;K(ae)&&G(ae);){if((ae=ae.parentElement)===Z){V.push(ae);break}ae!=null&&ae===document.body&&te(ae)&&!te(document.documentElement)||ae!=null&&te(ae,P)&&V.push(ae)}for(var w=U.visualViewport?U.visualViewport.width:innerWidth,F=U.visualViewport?U.visualViewport.height:innerHeight,$=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,l=j.getBoundingClientRect(),o=l.height,_=l.width,y=l.top,T=l.right,D=l.bottom,v=l.left,i=u==="start"||u==="nearest"?y:u==="end"?D:y+o/2,m=f==="center"?v+_/2:f==="end"?T:v,s=[],n=0;n=0&&v>=0&&D<=F&&T<=w&&y>=Y&&D<=B&&v>=z&&T<=ee)return s;var Q=getComputedStyle(b),W=parseInt(Q.borderLeftWidth,10),M=parseInt(Q.borderTopWidth,10),ie=parseInt(Q.borderRightWidth,10),t=parseInt(Q.borderBottomWidth,10),c=0,r=0,R="offsetWidth"in b?b.offsetWidth-b.clientWidth-W-ie:0,H="offsetHeight"in b?b.offsetHeight-b.clientHeight-M-t:0;if(Z===b)c=u==="start"?i:u==="end"?i-F:u==="nearest"?J(p,p+F,F,M,t,p+i,p+i+o,o):i-F/2,r=f==="start"?m:f==="center"?m-w/2:f==="end"?m-w:J($,$+w,w,W,ie,$+m,$+m+_,_),c=Math.max(0,c+p),r=Math.max(0,r+$);else{c=u==="start"?i-Y-M:u==="end"?i-B+t+H:u==="nearest"?J(Y,B,h,M,t+H,i,i+o,o):i-(Y+h/2)+H/2,r=f==="start"?m-z-W:f==="center"?m-(z+I/2)+R/2:f==="end"?m-ee+ie+R:J(z,ee,I,W,ie+R,m,m+_,_);var ne=b.scrollLeft,ce=b.scrollTop;i+=ce-(c=Math.max(0,Math.min(ce+c,b.scrollHeight-h+H))),m+=ne-(r=Math.max(0,Math.min(ne+r,b.scrollWidth-I+R)))}s.push({el:b,top:c,left:r})}return s};function a(j){return j===Object(j)&&Object.keys(j).length!==0}function C(j,A){A===void 0&&(A="auto");var U="scrollBehavior"in document.body.style;j.forEach(function(x){var u=x.el,f=x.top,k=x.left;u.scroll&&U?u.scroll({top:f,left:k,behavior:A}):(u.scrollTop=f,u.scrollLeft=k)})}function N(j){return j===!1?{block:"end",inline:"nearest"}:a(j)?j:{block:"start",inline:"nearest"}}function E(j,A){var U=!j.ownerDocument.documentElement.contains(j);if(a(A)&&typeof A.behavior=="function")return A.behavior(U?[]:L(j,A));if(U)return;var x=N(A);return C(L(j,x),x.behavior)}var O=X.a=E},Zss7:function(Oe,X,e){var K;(function(g){var te=/^\s+/,J=/\s+$/,L=0,a=g.round,C=g.min,N=g.max,E=g.random;function O(t,c){if(t=t||"",c=c||{},t instanceof O)return t;if(!(this instanceof O))return new O(t,c);var r=j(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=a(100*this._a)/100,this._format=c.format||r.format,this._gradientType=c.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=r.ok,this._tc_id=L++}O.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 t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),c,r,R,H,ne,ce;return c=t.r/255,r=t.g/255,R=t.b/255,c<=.03928?H=c/12.92:H=g.pow((c+.055)/1.055,2.4),r<=.03928?ne=r/12.92:ne=g.pow((r+.055)/1.055,2.4),R<=.03928?ce=R/12.92:ce=g.pow((R+.055)/1.055,2.4),.2126*H+.7152*ne+.0722*ce},setAlpha:function(t){return this._a=s(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=u(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u(this._r,this._g,this._b),c=a(t.h*360),r=a(t.s*100),R=a(t.v*100);return this._a==1?"hsv("+c+", "+r+"%, "+R+"%)":"hsva("+c+", "+r+"%, "+R+"%, "+this._roundA+")"},toHsl:function(){var t=U(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=U(this._r,this._g,this._b),c=a(t.h*360),r=a(t.s*100),R=a(t.l*100);return this._a==1?"hsl("+c+", "+r+"%, "+R+"%)":"hsla("+c+", "+r+"%, "+R+"%, "+this._roundA+")"},toHex:function(t){return k(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return P(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(n(this._r,255)*100)+"%",g:a(n(this._g,255)*100)+"%",b:a(n(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(n(this._r,255)*100)+"%, "+a(n(this._g,255)*100)+"%, "+a(n(this._b,255)*100)+"%)":"rgba("+a(n(this._r,255)*100)+"%, "+a(n(this._g,255)*100)+"%, "+a(n(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:i[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var c="#"+G(this._r,this._g,this._b,this._a),r=c,R=this._gradientType?"GradientType = 1, ":"";if(t){var H=O(t);r="#"+G(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+R+"startColorstr="+c+",endColorstr="+r+")"},toString:function(t){var c=!!t;t=t||this._format;var r=!1,R=this._a<1&&this._a>=0,H=!c&&R&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return H?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return O(this.toString())},_applyModification:function(t,c){var r=t.apply(null,[this].concat([].slice.call(c)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(Z,arguments)},saturate:function(){return this._applyModification(V,arguments)},greyscale:function(){return this._applyModification(ae,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(t,c){return t.apply(null,[this].concat([].slice.call(c)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(l,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(o,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},O.fromRatio=function(t,c){if(typeof t=="object"){var r={};for(var R in t)t.hasOwnProperty(R)&&(R==="a"?r[R]=t[R]:r[R]=ee(t[R]));t=r}return O(t,c)};function j(t){var c={r:0,g:0,b:0},r=1,R=null,H=null,ne=null,ce=!1,ge=!1;return typeof t=="string"&&(t=M(t)),typeof t=="object"&&(W(t.r)&&W(t.g)&&W(t.b)?(c=A(t.r,t.g,t.b),ce=!0,ge=String(t.r).substr(-1)==="%"?"prgb":"rgb"):W(t.h)&&W(t.s)&&W(t.v)?(R=ee(t.s),H=ee(t.v),c=f(t.h,R,H),ce=!0,ge="hsv"):W(t.h)&&W(t.s)&&W(t.l)&&(R=ee(t.s),ne=ee(t.l),c=x(t.h,R,ne),ce=!0,ge="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=s(r),{ok:ce,format:t.format||ge,r:C(255,N(c.r,0)),g:C(255,N(c.g,0)),b:C(255,N(c.b,0)),a:r}}function A(t,c,r){return{r:n(t,255)*255,g:n(c,255)*255,b:n(r,255)*255}}function U(t,c,r){t=n(t,255),c=n(c,255),r=n(r,255);var R=N(t,c,r),H=C(t,c,r),ne,ce,ge=(R+H)/2;if(R==H)ne=ce=0;else{var Re=R-H;ce=ge>.5?Re/(2-R-H):Re/(R+H);switch(R){case t:ne=(c-r)/Re+(c1&&(be-=1),be<1/6?ye+(fe-ye)*6*be:be<1/2?fe:be<2/3?ye+(fe-ye)*(2/3-be)*6:ye}if(c===0)R=H=ne=r;else{var ge=r<.5?r*(1+c):r+c-r*c,Re=2*r-ge;R=ce(Re,ge,t+1/3),H=ce(Re,ge,t),ne=ce(Re,ge,t-1/3)}return{r:R*255,g:H*255,b:ne*255}}function u(t,c,r){t=n(t,255),c=n(c,255),r=n(r,255);var R=N(t,c,r),H=C(t,c,r),ne,ce,ge=R,Re=R-H;if(ce=R===0?0:Re/R,R==H)ne=0;else{switch(R){case t:ne=(c-r)/Re+(c>1)+720)%360;--c;)R.h=(R.h+H)%360,ne.push(O(R));return ne}function D(t,c){c=c||6;for(var r=O(t).toHsv(),R=r.h,H=r.s,ne=r.v,ce=[],ge=1/c;c--;)ce.push(O({h:R,s:H,v:ne})),ne=(ne+ge)%1;return ce}O.mix=function(t,c,r){r=r===0?0:r||50;var R=O(t).toRgb(),H=O(c).toRgb(),ne=r/100,ce={r:(H.r-R.r)*ne+R.r,g:(H.g-R.g)*ne+R.g,b:(H.b-R.b)*ne+R.b,a:(H.a-R.a)*ne+R.a};return O(ce)},O.readability=function(t,c){var r=O(t),R=O(c);return(g.max(r.getLuminance(),R.getLuminance())+.05)/(g.min(r.getLuminance(),R.getLuminance())+.05)},O.isReadable=function(t,c,r){var R=O.readability(t,c),H,ne;ne=!1,H=ie(r);switch(H.level+H.size){case"AAsmall":case"AAAlarge":ne=R>=4.5;break;case"AAlarge":ne=R>=3;break;case"AAAsmall":ne=R>=7;break}return ne},O.mostReadable=function(t,c,r){var R=null,H=0,ne,ce,ge,Re;r=r||{},ce=r.includeFallbackColors,ge=r.level,Re=r.size;for(var ye=0;yeH&&(H=ne,R=O(c[ye]));return O.isReadable(t,R,{level:ge,size:Re})||!ce?R:(r.includeFallbackColors=!1,O.mostReadable(t,["#fff","#000"],r))};var v=O.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"},i=O.hexNames=m(v);function m(t){var c={};for(var r in t)t.hasOwnProperty(r)&&(c[t[r]]=r);return c}function s(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function n(t,c){h(t)&&(t="100%");var r=I(t);return t=C(c,N(0,parseFloat(t))),r&&(t=parseInt(t*c,10)/100),g.abs(t-c)<1e-6?1:t%c/parseFloat(c)}function b(t){return C(1,N(0,t))}function d(t){return parseInt(t,16)}function h(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function I(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Y(t){return t.length==1?"0"+t:""+t}function ee(t){return t<=1&&(t=t*100+"%"),t}function B(t){return g.round(parseFloat(t)*255).toString(16)}function z(t){return d(t)/255}var Q=function(){var t="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",r="(?:"+c+")|(?:"+t+")",R="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",H="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+H),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 W(t){return!!Q.CSS_UNIT.exec(t)}function M(t){t=t.replace(te,"").replace(J,"").toLowerCase();var c=!1;if(v[t])t=v[t],c=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Q.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=Q.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Q.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=Q.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Q.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=Q.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Q.hex8.exec(t))?{r:d(r[1]),g:d(r[2]),b:d(r[3]),a:z(r[4]),format:c?"name":"hex8"}:(r=Q.hex6.exec(t))?{r:d(r[1]),g:d(r[2]),b:d(r[3]),format:c?"name":"hex"}:(r=Q.hex4.exec(t))?{r:d(r[1]+""+r[1]),g:d(r[2]+""+r[2]),b:d(r[3]+""+r[3]),a:z(r[4]+""+r[4]),format:c?"name":"hex8"}:(r=Q.hex3.exec(t))?{r:d(r[1]+""+r[1]),g:d(r[2]+""+r[2]),b:d(r[3]+""+r[3]),format:c?"name":"hex"}:!1}function ie(t){var c,r;return t=t||{level:"AA",size:"small"},c=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),c!=="AA"&&c!=="AAA"&&(c="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:c,size:r}}Oe.exports?Oe.exports=O:!(K=function(){return O}.call(X,e,X,Oe),K!==void 0&&(Oe.exports=K))})(Math)},bT9E:function(Oe,X,e){"use strict";e.d(X,"a",function(){return g});var K=e("VTBJ");function g(te,J){var L=Object(K.a)({},te);return Array.isArray(J)&&J.forEach(function(a){delete L[a]}),L}},biw7:function(Oe,X,e){"use strict";var K=e("q1tI"),g=e.n(K),te=K.createContext(null);X.a=te},fyJ8:function(Oe,X,e){"use strict";var K=e("rePB"),g=e("VTBJ"),te=e("Ff2n"),J=e("U8pU"),L=e("q1tI"),a=e.n(L),C=e("TSYQ"),N=e.n(C),E=e("c+Xe"),O=e("sR1s");function j(f){return f&&Object(J.a)(f)==="object"&&!Array.isArray(f)&&!L.isValidElement(f)}function A(f){return typeof f=="string"?!0:Object(E.c)(f)}function U(f,k){var P,G=f.prefixCls,Z=f.className,V=f.record,ae=f.index,w=f.dataIndex,F=f.render,$=f.children,p=f.component,l=p===void 0?"td":p,o=f.colSpan,_=f.rowSpan,y=f.fixLeft,T=f.fixRight,D=f.firstFixLeft,v=f.lastFixLeft,i=f.firstFixRight,m=f.lastFixRight,s=f.appendNode,n=f.additionalProps,b=n===void 0?{}:n,d=f.ellipsis,h=f.align,I=f.rowType,Y=f.isSticky,ee="".concat(G,"-cell"),B,z;if($)z=$;else{var Q=Object(O.b)(V,w);if(z=Q,F){var W=F(Q,V,ae);j(W)?(z=W.children,B=W.props):z=W}}Object(J.a)(z)==="object"&&!Array.isArray(z)&&!L.isValidElement(z)&&(z=null),d&&(v||i)&&(z=L.createElement("span",{className:"".concat(ee,"-content")},z));var M=B||{},ie=M.colSpan,t=M.rowSpan,c=M.style,r=M.className,R=Object(te.a)(M,["colSpan","rowSpan","style","className"]),H=ie!==void 0?ie:o,ne=t!==void 0?t:_;if(H===0||ne===0)return null;var ce={},ge=typeof y=="number",Re=typeof T=="number";ge&&(ce.position="sticky",ce.left=y),Re&&(ce.position="sticky",ce.right=T);var ye={};h&&(ye.textAlign=h);var fe,be=d===!0?{showTitle:!0}:d;be&&(be.showTitle||I==="header")&&(typeof z=="string"||typeof z=="number"?fe=z.toString():L.isValidElement(z)&&typeof z.props.children=="string"&&(fe=z.props.children));var ke=Object(g.a)(Object(g.a)(Object(g.a)({title:fe},R),b),{},{colSpan:H&&H!==1?H:null,rowSpan:ne&&ne!==1?ne:null,className:N()(ee,Z,(P={},Object(K.a)(P,"".concat(ee,"-fix-left"),ge),Object(K.a)(P,"".concat(ee,"-fix-left-first"),D),Object(K.a)(P,"".concat(ee,"-fix-left-last"),v),Object(K.a)(P,"".concat(ee,"-fix-right"),Re),Object(K.a)(P,"".concat(ee,"-fix-right-first"),i),Object(K.a)(P,"".concat(ee,"-fix-right-last"),m),Object(K.a)(P,"".concat(ee,"-ellipsis"),d),Object(K.a)(P,"".concat(ee,"-with-append"),s),Object(K.a)(P,"".concat(ee,"-fix-sticky"),(ge||Re)&&Y),P),b.className,r),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},b.style),ye),ce),c),ref:A(l)?k:null});return L.createElement(l,Object.assign({},ke),s,z)}var x=L.forwardRef(U);x.displayName="Cell";var u=L.memo(x,function(f,k){return k.shouldCellUpdate?!k.shouldCellUpdate(k.record,f.record):!1});X.a=u},h78n:function(Oe,X,e){"use strict";e.d(X,"a",function(){return D});var K=e("q1tI"),g=e.n(K),te=e("TSYQ"),J=e.n(te),L={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},a=function(m){var s=m.map(function(){return Object(K.useRef)()}),n=Object(K.useRef)();return Object(K.useEffect)(function(){var b=Date.now(),d=!1;Object.keys(s).forEach(function(h){var I=s[h].current;if(!I)return;d=!0;var Y=I.style;Y.transitionDuration=".3s, .3s, .3s, .06s",n.current&&b-n.current<100&&(Y.transitionDuration="0s, 0s")}),d&&(n.current=Date.now())}),[s]};function C(){return C=Object.assign||function(i){for(var m=1;mi.length)&&(m=i.length);for(var s=0,n=new Array(m);s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(i,n))continue;s[n]=i[n]}}return s}function u(i,m){if(i==null)return{};var s={},n=Object.keys(i),b,d;for(d=0;d=0)continue;s[b]=i[b]}return s}var f=function(m){var s=m.className,n=m.percent,b=m.prefixCls,d=m.strokeColor,h=m.strokeLinecap,I=m.strokeWidth,Y=m.style,ee=m.trailColor,B=m.trailWidth,z=m.transition,Q=x(m,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Q.gapPosition;var W=Array.isArray(n)?n:[n],M=Array.isArray(d)?d:[d],ie=a(W),t=N(ie,1),c=t[0],r=I/2,R=100-I/2,H="M ".concat(h==="round"?r:0,",").concat(r,` L `).concat(h==="round"?R:100,",").concat(r),ne="0 0 100 ".concat(I),ce=0;return g.a.createElement("svg",C({className:J()("".concat(b,"-line"),s),viewBox:ne,preserveAspectRatio:"none",style:Y},Q),g.a.createElement("path",{className:"".concat(b,"-line-trail"),d:H,strokeLinecap:h,stroke:ee,strokeWidth:B||I,fillOpacity:"0"}),W.map(function(ge,Re){var ye={strokeDasharray:"".concat(ge,"px, 100px"),strokeDashoffset:"-".concat(ce,"px"),transition:z||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},fe=M[Re]||M[M.length-1];return ce+=ge,g.a.createElement("path",{key:Re,className:"".concat(b,"-line-path"),d:H,strokeLinecap:h,stroke:fe,strokeWidth:I,fillOpacity:"0",ref:c[Re],style:ye})}))};f.defaultProps=L;var k=f;function P(){return P=Object.assign||function(i){for(var m=1;mi.length)&&(m=i.length);for(var s=0,n=new Array(m);s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(i,n))continue;s[n]=i[n]}}return s}function p(i,m){if(i==null)return{};var s={},n=Object.keys(i),b,d;for(d=0;d=0)continue;s[b]=i[b]}return s}var l=0;function o(i){return+i.replace("%","")}function _(i){return Array.isArray(i)?i:[i]}function y(i,m,s,n){var b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,d=arguments.length>5?arguments[5]:void 0,h=50-n/2,I=0,Y=-h,ee=0,B=-2*h;switch(d){case"left":I=-h,Y=0,ee=2*h,B=0;break;case"right":I=h,Y=0,ee=-2*h,B=0;break;case"bottom":Y=h,B=2*h;break;default:}var z="M 50,50 m ".concat(I,",").concat(Y,` a `).concat(h,",").concat(h," 0 1 1 ").concat(ee,",").concat(-B,` - a `).concat(h,",").concat(h," 0 1 1 ").concat(-ee,",").concat(B),Q=Math.PI*2*h,W={stroke:s,strokeDasharray:"".concat(m/100*(Q-b),"px ").concat(Q,"px"),strokeDashoffset:"-".concat(b/2+i/100*(Q-b),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:z,pathStyle:W}}var A=function(m){var s=m.prefixCls,n=m.strokeWidth,b=m.trailWidth,d=m.gapDegree,h=m.gapPosition,I=m.trailColor,Y=m.strokeLinecap,ee=m.style,B=m.className,z=m.strokeColor,Q=m.percent,W=$(m,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),M=Object(K.useMemo)(function(){return l+=1,l},[]),ie=y(0,100,I,n,d,h),t=ie.pathString,c=ie.pathStyle,r=_(Q),R=_(z),H=R.find(function(ye){return Object.prototype.toString.call(ye)==="[object Object]"}),ne=a(r),ce=G(ne,1),ge=ce[0],Re=function(){var fe=0;return r.map(function(be,ke){var Be=R[ke]||R[R.length-1],Ge=Object.prototype.toString.call(Be)==="[object Object]"?"url(#".concat(s,"-gradient-").concat(M,")"):"",qe=y(fe,be,Be,n,d,h);return fe+=be,g.a.createElement("path",{key:ke,className:"".concat(s,"-circle-path"),d:qe.pathString,stroke:Ge,strokeLinecap:Y,strokeWidth:n,opacity:be===0?0:1,fillOpacity:"0",style:qe.pathStyle,ref:ge[ke]})})};return g.a.createElement("svg",P({className:J()("".concat(s,"-circle"),B),viewBox:"0 0 100 100",style:ee},W),H&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(s,"-gradient-").concat(M),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(H).sort(function(ye,fe){return o(ye)-o(fe)}).map(function(ye,fe){return g.a.createElement("stop",{key:fe,offset:ye,stopColor:H[ye]})}))),g.a.createElement("path",{className:"".concat(s,"-circle-trail"),d:t,stroke:I,strokeLinecap:Y,strokeWidth:b||n,fillOpacity:"0",style:c}),Re().reverse())};A.defaultProps=L;var D=A,v={Line:k,Circle:D}},hW8S:function(Oe,X,e){"use strict";e.d(X,"a",function(){return J}),e.d(X,"c",function(){return L}),e.d(X,"b",function(){return a});var K=e("VTBJ"),g=e("Ff2n"),te=e("Kwbf"),J="RC_TABLE_INTERNAL_COL_DEFINE";function L(C){var N=C.expandable,E=Object(g.a)(C,["expandable"]);return"expandable"in C?Object(K.a)(Object(K.a)({},E),N):E}function a(C){return Object.keys(C).reduce(function(N,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-")&&(N[E]=C[E]),N},{})}},"kaH+":function(Oe,X,e){"use strict";var K=e("+L6B"),g=e("2/Rp"),te=e("tJVT"),J=e("q1tI"),L=e.n(J),a=e("XFxt"),C=e.n(a),N=e("dhSg"),E=e("rLCj"),O=e("dF/Y"),j=e("4i/N");X.a=function(){var T=Object(J.useState)(""),U=Object(te.a)(T,2),x=U[0],u=U[1],f=Object(J.useState)(0),k=Object(te.a)(f,2),P=k[0],G=k[1],Z=Object(J.useRef)("");Object(J.useEffect)(function(){var F=N.a.subscribe("preview-image",function($){u($),document.body.style.overflow="hidden"});return F},[]),Object(J.useEffect)(function(){return document.addEventListener("keydown",V),function(){document.removeEventListener("keydown",V)}},[]),Object(J.useEffect)(function(){Z.current=x},[x]);function V(F){F.keyCode==27&&Z.current&&ae()}function ae(){document.body.style.overflow="auto",u("")}function w(){G(P+90)}return L.a.createElement(J.Fragment,null,x?L.a.createElement("div",{className:C.a["image-preview-container"]},L.a.createElement("div",{className:C.a["button-group"]},L.a.createElement(g.a,{onClick:w},"\u65CB\u8F6C",L.a.createElement(E.a,null)),L.a.createElement(g.a,{href:x},"\u4E0B\u8F7D",L.a.createElement(O.a,null)),L.a.createElement(g.a,{onClick:ae},"\u5173\u95ED",L.a.createElement(j.a,null))),L.a.createElement("div",{className:C.a["preview-wrp-group"]},L.a.createElement("img",{className:C.a["image-preview"],src:x,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(P,"deg)")}}))):null)}},mgmH:function(Oe,X,e){"use strict";e.d(X,"d",function(){return U}),e.d(X,"b",function(){return x}),e.d(X,"e",function(){return u}),e.d(X,"c",function(){return f}),e.d(X,"n",function(){return k}),e.d(X,"g",function(){return P}),e.d(X,"h",function(){return G}),e.d(X,"j",function(){return V}),e.d(X,"a",function(){return ae}),e.d(X,"l",function(){return w}),e.d(X,"f",function(){return F}),e.d(X,"k",function(){return $}),e.d(X,"m",function(){return p}),e.d(X,"i",function(){return l}),e.d(X,"o",function(){return o}),e.d(X,"r",function(){return _}),e.d(X,"q",function(){return y}),e.d(X,"p",function(){return A});var K=e("miYZ"),g=e("tsqr"),te=e("k1fw"),J=e("9og8"),L=e("WmNS"),a=e.n(L),C=e("oUNq"),N=e("9kvl"),E=e("1vsH"),O=e("m3rI"),j=function(){Object(N.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},T=function(){Object(N.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},U=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return j(),n.next=3,Object(C.s)(Object(te.a)({},i));case 3:if(m=n.sent,!(m.status===0)){n.next=7;break}return n.next=7,Object(E.u)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/export_couser_info.json"),query:i}));case 7:T();case 8:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),x=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.q)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_member_act_score")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),u=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.t)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_score")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_score")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),f=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.r)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),k=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.y)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),P=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.u)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_homework")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),G=function(){var D=Object(J.a)(a.a.mark(function v(i,m){var s;return a.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,Object(C.w)(Object(te.a)({},i));case 2:s=b.sent,s.status===0?(g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/").concat(m))):s.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/").concat(m)));case 4:case"end":return b.stop()}},v)}));return function(i,m){return D.apply(this,arguments)}}(),Z=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return j(),n.next=3,Object(C.v)(Object(te.a)({},i));case 3:if(m=n.sent,!(m.status===0)){n.next=7;break}return n.next=7,Object(E.u)("",Object(E.U)({url:O.a.API_SERVER+"/api/homework_commons/".concat(i.categoryId,"/works_list.zip"),query:i}));case 7:T();case 8:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),V=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return j(),n.next=3,Object(C.z)(Object(te.a)({},i));case 3:if(m=n.sent,!(m.status===0)){n.next=7;break}return n.next=7,Object(E.u)("",Object(E.U)({url:O.a.API_SERVER+"/api/polls/".concat(i.categoryId,"/commit_result.xlsx"),query:i}));case 7:T();case 8:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),ae=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/attendances/export_xlsx_data.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),w=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/video_study_statics.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),F=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/export_course_students_info.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),$=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/item_banks/export.xlsx",query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),p=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),l=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.x)(Object(te.a)({},i));case 2:m=n.sent,m.status===0?(g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/exercise_score"))):m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/exercise_score")));case 4:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),o=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),s.next=3,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/export_records/".concat(i.id,".xlsx"),query:i}));case 3:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),_=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),y=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/ec_years/".concat(i==null?void 0:i.ec_year_id,"/ec_training_objectives.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),A=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/ec_years/".concat(i==null?void 0:i.ec_year_id,"/ec_graduation_requirements.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}()},n6Qo:function(Oe,X,e){"use strict";e.d(X,"a",function(){return N});var K=e("q1tI"),g=e("biw7"),te=e("fyJ8");function J(E){var O=E.className,j=E.index,T=E.children,U=E.colSpan,x=E.rowSpan,u=K.useContext(g.a),f=u.prefixCls,k=u.fixedInfoList,P=k[j];return K.createElement(te.a,Object.assign({className:O,index:j,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:T,props:{colSpan:U,rowSpan:x}}}},P))}function L(E){return K.createElement("tr",Object.assign({},E))}function a(E){var O=E.children,j=K.useContext(g.a),T=j.prefixCls;return K.createElement("tfoot",{className:"".concat(T,"-summary")},O)}var C=X.b=a,N={Cell:J,Row:L}},qdDa:function(Oe,X,e){"use strict";var K=e("2qtc"),g=e("kLXV"),te=e("T2oS"),J=e("W9HT"),L=e("sRBo"),a=e("kaz8"),C=e("miYZ"),N=e("tsqr"),E=e("y8nQ"),O=e("Vl3Y"),j=e("oBTY"),T=e("k1fw"),U=e("9og8"),x=e("tJVT"),u=e("WmNS"),f=e.n(u),k=e("q1tI"),P=e.n(k),G=e("qtVS"),Z=e("RotF"),V=e.n(Z),ae=e("Ty5D"),w=e("9kvl"),F=function(p){var l=p.teachers,o=p.loading,_=p.dispatch,y=Object(ae.i)(),A=Object(k.useState)([]),D=Object(x.a)(A,2),v=D[0],i=D[1],m=Object(k.useState)(!1),s=Object(x.a)(m,2),n=s[0],b=s[1],d=Object(k.useState)(!0),h=Object(x.a)(d,2),I=h[0],Y=h[1];y.id=y.coursesId,y.course_id=y.coursesId,y.limit=20,y.page=1;var ee=function(){var W=Object(U.a)(f.a.mark(function M(){var ie;return f.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return b(!0),c.next=3,Object(G.i)(Object(T.a)({},y));case 3:ie=c.sent,ie!=null&&ie.teacher_list&&(y.page++,i([].concat(Object(j.a)(v),Object(j.a)(ie.teacher_list))),ie.teacher_list.length!==y.limit&&Y(!1)),b(!1);case 6:case"end":return c.stop()}},M)}));return function(){return W.apply(this,arguments)}}();Object(k.useEffect)(function(){l.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458"&&(y.page=1,i([]),ee())},[l.actionTabs.key]);var B=O.a.useForm(),z=Object(x.a)(B,1),Q=z[0];return P.a.createElement(g.a,{centered:!0,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:l.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:200},onOk:Object(U.a)(f.a.mark(function W(){var M,ie,t;return f.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(M=Q.getFieldsValue(),console.log(M),!M.course_member_id){r.next=10;break}return ie=M.course_member_id,r.next=6,Object(G.a)(Object(T.a)(Object(T.a)({},y),{},{course_member_id:ie}));case 6:t=r.sent,t.status===0&&(i([]),N.b.success("\u4FEE\u6539\u6210\u529F"),_({type:"user/getUserInfo",payload:Object(T.a)({},y)}),_({type:"teachers/getList",payload:Object(T.a)({},y)}),_({type:"classroomList/getClassroomTopBanner",payload:{id:y.coursesId}}),_({type:"teachers/setActionTabs",payload:{}})),r.next=11;break;case 10:N.b.error("\u8BF7\u9009\u62E9\u7BA1\u7406\u5458");case 11:case"end":return r.stop()}},W)})),onCancel:function(){i([]),_({type:"teachers/setActionTabs",payload:{}})}},P.a.createElement("p",{className:"tc"},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",P.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u6559\u5E08\u56E2\u961F\u7684\u4E00\u5458"),P.a.createElement(O.a,{form:Q},P.a.createElement("div",{style:{background:"#F4FAFF",padding:20}},P.a.createElement("div",{style:{maxHeight:200,overflow:"auto"}},P.a.createElement(V.a,{initialLoad:!1,pageStart:0,loadMore:function(){return ee()},hasMore:!n&&I,useWindow:!1},P.a.createElement(J.a,{spinning:n},P.a.createElement(O.a.Item,{name:"course_member_id",style:{marginBottom:0}},P.a.createElement(a.a.Group,null,v==null?void 0:v.map(function(W,M){return P.a.createElement("div",{key:M,style:{marginBottom:6}},P.a.createElement(a.a,{value:W.course_member_id},W.name))})))))))))};X.a=Object(w.a)(function($){var p=$.teachers,l=$.loading;return{teachers:p,loading:l}})(F)},sR1s:function(Oe,X,e){"use strict";e.d(X,"b",function(){return J}),e.d(X,"a",function(){return L}),e.d(X,"c",function(){return a}),e.d(X,"d",function(){return C});var K=e("U8pU"),g="RC_TABLE_KEY";function te(N){return N==null?[]:Array.isArray(N)?N:[N]}function J(N,E){if(!E&&typeof E!="number")return N;for(var O=te(E),j=N,T=0;T1)Object(O.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Z.length===0)return Object(O.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var V=Z[0];if(a.isValidElement(V)&&Object(j.c)(V)){var ae=V.ref;Z[0]=a.cloneElement(V,{ref:Object(j.a)(ae,this.setChildNode)})}return Z.length===1?Z[0]:Z.map(function(w,F){return!a.isValidElement(w)||"key"in w&&w.key!==null?w:a.cloneElement(w,{key:"".concat(U,"-").concat(F)})})}}]),k}(a.Component);x.displayName="ResizeObserver",X.a=x},wCXF:function(Oe,X,e){"use strict";e.d(X,"a",function(){return Ge});var K=e("rePB"),g=e("VTBJ"),te=e("KQm4"),J=e("U8pU"),L=e("ODXe"),a=e("q1tI"),C=e("TSYQ"),N=e.n(C),E=e("Gytx"),O=e.n(E),j=e("Kwbf"),T=e("t23M"),U=e("qx4F"),x=e("6eGT"),u=e("IBYe"),f=e("Ff2n"),k=e("c+Xe"),P=e("fyJ8"),G=e("biw7");function Z(S,se,re,me,ve){var de=re[S]||{},q=re[se]||{},le,ue;de.fixed==="left"?le=me.left[S]:q.fixed==="right"&&(ue=me.right[se]);var he=!1,oe=!1,pe=!1,Pe=!1,xe=re[se+1],Ae=re[S-1];if(ve==="rtl"){if(le!==void 0){var Ke=Ae&&Ae.fixed==="left";Pe=!Ke}else if(ue!==void 0){var Le=xe&&xe.fixed==="right";pe=!Le}}else if(le!==void 0){var we=xe&&xe.fixed==="left";he=!we}else if(ue!==void 0){var Ce=Ae&&Ae.fixed==="right";oe=!Ce}return{fixLeft:le,fixRight:ue,lastFixLeft:he,firstFixRight:oe,lastFixRight:pe,firstFixLeft:Pe,isSticky:me.isSticky}}var V=e("sR1s");function ae(S){var se=S.cells,re=S.stickyOffsets,me=S.flattenColumns,ve=S.rowComponent,de=S.cellComponent,q=S.onHeaderRow,le=S.index,ue=a.useContext(G.a),he=ue.prefixCls,oe=ue.direction,pe;q&&(pe=q(se.map(function(xe){return xe.column}),le));var Pe=Object(V.a)(se.map(function(xe){return xe.column}));return a.createElement(ve,Object.assign({},pe),se.map(function(xe,Ae){var Ke=xe.column,Le=Z(xe.colStart,xe.colEnd,me,re,oe),we;return Ke&&Ke.onHeaderCell&&(we=xe.column.onHeaderCell(Ke)),a.createElement(P.a,Object.assign({},xe,{ellipsis:Ke.ellipsis,align:Ke.align,component:de,prefixCls:he,key:Pe[Ae]},Le,{additionalProps:we,rowType:"header"}))}))}ae.displayName="HeaderRow";var w=ae;function F(S){var se=[];function re(q,le){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;se[ue]=se[ue]||[];var he=le,oe=q.filter(Boolean).map(function(pe){var Pe={key:pe.key,className:pe.className||"",children:pe.title,column:pe,colStart:he},xe=1,Ae=pe.children;return Ae&&Ae.length>0&&(xe=re(Ae,he,ue+1).reduce(function(Ke,Le){return Ke+Le},0),Pe.hasSubColumns=!0),"colSpan"in pe&&(xe=pe.colSpan),"rowSpan"in pe&&(Pe.rowSpan=pe.rowSpan),Pe.colSpan=xe,Pe.colEnd=Pe.colStart+xe-1,se[ue].push(Pe),he+=xe,xe});return oe}re(S,0);for(var me=se.length,ve=function(le){se[le].forEach(function(ue){!("rowSpan"in ue)&&!ue.hasSubColumns&&(ue.rowSpan=me-le)})},de=0;de=0;le-=1){var ue=se[le],he=re&&re[le],oe=he&&he[l.a];(ue||oe||q)&&(ve.unshift(a.createElement("col",Object.assign({key:le,style:{width:ue,minWidth:ue}},oe))),q=!0)}return a.createElement("colgroup",null,ve)}var _=o;function y(S,se){return Object(a.useMemo)(function(){for(var re=[],me=0;me1?Me-1:0),ct=1;ct=pe&&($e=pe-Pe),q({scrollLeft:$e/pe*(oe+2)}),Ce.current.x=Te.pageX},at=function(){var Te=Object(Re.b)(de.current).top,Qe=Te+de.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;Qe-Object(U.a)()<=Ze||Te>=Ze-le?we(function(it){return Object(g.a)(Object(g.a)({},it),{},{isHiddenScrollBar:!0})}):we(function(it){return Object(g.a)(Object(g.a)({},it),{},{isHiddenScrollBar:!1})})},ze=function(Te){we(function(Qe){return Object(g.a)(Object(g.a)({},Qe),{},{scrollLeft:Te/oe*pe||0})})};return a.useImperativeHandle(re,function(){return{setScrollLeft:ze}}),a.useEffect(function(){var He=Object(ge.a)(document.body,"mouseup",ut,!1),Te=Object(ge.a)(document.body,"mousemove",st,!1);return at(),function(){He.remove(),Te.remove()}},[Pe,Ve]),a.useEffect(function(){var He=Object(ge.a)(window,"scroll",at,!1),Te=Object(ge.a)(window,"resize",at,!1);return function(){He.remove(),Te.remove()}},[]),a.useEffect(function(){Le.isHiddenScrollBar||we(function(He){var Te,Qe;return Object(g.a)(Object(g.a)({},He),{},{scrollLeft:de.current.scrollLeft/((Te=de.current)===null||Te===void 0?void 0:Te.scrollWidth)*((Qe=de.current)===null||Qe===void 0?void 0:Qe.clientWidth)})})},[Le.isHiddenScrollBar]),oe<=pe||!Pe||Le.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(U.a)(),width:pe,bottom:le},className:"".concat(he,"-sticky-scroll")},a.createElement("div",{onMouseDown:Ie,ref:xe,className:N()("".concat(he,"-sticky-scroll-bar"),Object(K.a)({},"".concat(he,"-sticky-scroll-bar-active"),Ve)),style:{width:"".concat(Pe,"px"),transform:"translate3d(".concat(Le.scrollLeft,"px, 0, 0)")}}))},fe=a.forwardRef(ye);function be(S,se){return a.useMemo(function(){var re=!!S;return{isSticky:re,stickyClassName:re?"".concat(se,"-sticky-header"):"",offsetHeader:Object(J.a)(S)==="object"&&S.offsetHeader||0,offsetScroll:Object(J.a)(S)==="object"&&S.offsetScroll||0}},[S,se])}var ke=[],Be={},Ge="rc-table-internal-hook",qe=a.memo(function(S){var se=S.children;return se},function(S,se){return O()(S.props,se.props)?S.pingLeft!==se.pingLeft||S.pingRight!==se.pingRight:!1});function We(S){var se,re=S.prefixCls,me=S.className,ve=S.rowClassName,de=S.style,q=S.data,le=S.rowKey,ue=S.scroll,he=S.tableLayout,oe=S.direction,pe=S.title,Pe=S.footer,xe=S.summary,Ae=S.id,Ke=S.showHeader,Le=S.components,we=S.emptyText,Ce=S.onRow,ot=S.onHeaderRow,Je=S.internalHooks,Ve=S.transformColumns,nt=S.internalRefs,ut=S.sticky,Ie=q||ke,st=!!Ie.length,at=a.useState(0),ze=Object(L.a)(at,2),He=ze[0],Te=ze[1];a.useEffect(function(){Te(Object(U.a)())});var Qe=a.useMemo(function(){return Object(V.c)(Le,{})},[Le]),Ze=a.useCallback(function(Ne,Ue){return Object(V.b)(Qe,Ne)||Ue},[Qe]),it=a.useMemo(function(){return typeof le=="function"?le:function(Ne){var Ue=Ne&&Ne[le];return Ue}},[le]),$e=Object(l.c)(S),Pt=$e.expandIcon,gt=$e.expandedRowKeys,Ot=$e.defaultExpandedRowKeys,ht=$e.defaultExpandAllRows,vt=$e.expandedRowRender,Fe=$e.onExpand,lt=$e.onExpandedRowsChange,dt=$e.expandRowByClick,ft=$e.rowExpandable,St=$e.expandIconColumnIndex,xt=$e.expandedRowClassName,Nt=$e.childrenColumnName,_t=$e.indentSize,Rt=Pt||ne,je=Nt||"children",_e=a.useMemo(function(){return vt?"row":S.expandable&&Je===Ge&&S.expandable.__PARENT_RENDER_ICON__||Ie.some(function(Ne){return Ne&&Object(J.a)(Ne)==="object"&&Ne[je]})?"nest":!1},[!!vt,Ie]),Ee=a.useState(function(){return Ot||(ht?ce(Ie,it,je):[])}),Se=Object(L.a)(Ee,2),De=Se[0],Ye=Se[1],Me=a.useMemo(function(){return new Set(gt||De||[])},[gt,De]),et=a.useCallback(function(Ne){var Ue=it(Ne,Ie.indexOf(Ne)),rt,pt=Me.has(Ue);pt?(Me.delete(Ue),rt=Object(te.a)(Me)):rt=[].concat(Object(te.a)(Me),[Ue]),Ye(rt),Fe&&Fe(!pt,Ne),lt&<(rt)},[it,Me,Ie,Fe,lt]),ct=a.useState(0),Xe=Object(L.a)(ct,2),bt=Xe[0],mt=Xe[1],At=Object(z.b)(Object(g.a)(Object(g.a)(Object(g.a)({},S),$e),{},{expandable:!!vt,expandedKeys:Me,getRowKey:it,onTriggerExpand:et,expandIcon:Rt,expandIconColumnIndex:St,direction:oe}),Je===Ge?Ve:null),Qt=Object(L.a)(At,2),Wt=Qt[0],tt=Qt[1],Ut=a.useMemo(function(){return{columns:Wt,flattenColumns:tt}},[Wt,tt]),Kt=a.useRef(),Zt=a.useRef(),jt=a.useRef(),bn=a.useState(!1),qt=Object(L.a)(bn,2),en=qt[0],En=qt[1],gn=a.useState(!1),tn=Object(L.a)(gn,2),nn=tn[0],yn=tn[1],_n=M(new Map),an=Object(L.a)(_n,2),Cn=an[0],On=an[1],xn=Object(V.a)(tt),rn=xn.map(function(Ne){return Cn.get(Ne)}),on=a.useMemo(function(){return rn},[rn.join("_")]),wt=c(on,tt.length,oe),yt=ue&&Object(V.d)(ue.y),Ct=ue&&Object(V.d)(ue.x),Mt=Ct&&tt.some(function(Ne){var Ue=Ne.fixed;return Ue}),sn=a.useRef(),It=be(ut,re),Dt=It.isSticky,Rn=It.offsetHeader,jn=It.offsetScroll,Pn=It.stickyClassName,Ft,kt,zt;yt&&(kt={overflowY:"scroll",maxHeight:ue.y}),Ct&&(Ft={overflowX:"auto"},yt||(kt={overflowY:"hidden"}),zt={width:ue.x===!0?"auto":ue.x,minWidth:"100%"});var ln=a.useCallback(function(Ne,Ue){On(function(rt){var pt=new Map(rt);return pt.set(Ne,Ue),pt})},[]),Sn=ie(null),un=Object(L.a)(Sn,2),An=un[0],cn=un[1];function Ht(Ne,Ue){if(!Ue)return;typeof Ue=="function"?Ue(Ne):Ue.scrollLeft!==Ne&&(Ue.scrollLeft=Ne)}var Tt=function(Ue){var rt=Ue.currentTarget,pt=Ue.scrollLeft,Lt=typeof pt=="number"?pt:rt.scrollLeft,vn=rt||Be;if(!cn()||cn()===vn){var Jt;An(vn),Ht(Lt,Zt.current),Ht(Lt,jt.current),Ht(Lt,(Jt=sn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(rt){var wn=rt.scrollWidth,In=rt.clientWidth;En(Lt>0),yn(Lt0?[].concat(Object(g.a)(f),Object(g.a)(j(Z).map(function(V){return Object(te.a)({fixed:G},V)}))):[].concat(Object(g.a)(f),[Object(te.a)(Object(te.a)({},k),{},{fixed:G})])},[])}function T(u){for(var f=!0,k=0;k=0;Z-=1){var V=u[Z];if(G&&V.fixed!=="right")G=!1;else if(!G&&V.fixed==="right"){Object(C.a)(!1,"Index ".concat(Z+1," of `columns` missing `fixed='right'` prop."));break}}}function U(u){return u.map(function(f){var k=f.fixed,P=Object(J.a)(f,["fixed"]),G=k;return k==="left"?G="right":k==="right"&&(G="left"),Object(te.a)({fixed:G},P)})}function x(u,f){var k=u.prefixCls,P=u.columns,G=u.children,Z=u.expandable,V=u.expandedKeys,ae=u.getRowKey,w=u.onTriggerExpand,F=u.expandIcon,$=u.rowExpandable,p=u.expandIconColumnIndex,l=u.direction,o=u.expandRowByClick,_=L.useMemo(function(){return P||O(G)},[P,G]),y=L.useMemo(function(){if(Z){var v,i=p||0,m=_[i],s=(v={},Object(K.a)(v,E.a,{className:"".concat(k,"-expand-icon-col")}),Object(K.a)(v,"title",""),Object(K.a)(v,"fixed",m?m.fixed:null),Object(K.a)(v,"className","".concat(k,"-row-expand-icon-cell")),Object(K.a)(v,"render",function(d,h,I){var Y=ae(h,I),ee=V.has(Y),B=$?$(h):!0,z=F({prefixCls:k,expanded:ee,expandable:B,record:h,onExpand:w});return o?L.createElement("span",{onClick:function(W){return W.stopPropagation()}},z):z}),v),n=_.slice();return i>=0&&n.splice(i,0,s),n}return _},[Z,_,ae,V,F,l]),A=L.useMemo(function(){var v=y;return f&&(v=f(v)),v.length||(v=[{render:function(){return null}}]),v},[f,y,l]),D=L.useMemo(function(){return l==="rtl"?U(j(A)):j(A)},[A,l]);return[A,D]}X.b=x},"y0+3":function(Oe,X,e){"use strict";e.d(X,"a",function(){return j}),e.d(X,"b",function(){return U});var K=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},te={cssFloat:1,styleFloat:1,float:1};function J(x){return x.nodeType===1?x.ownerDocument.defaultView.getComputedStyle(x,null):{}}function L(x,u,f){if(u=u.toLowerCase(),f==="auto"){if(u==="height")return x.offsetHeight;if(u==="width")return x.offsetWidth}return u in g||(g[u]=K.test(u)),g[u]?parseFloat(f)||0:f}function a(x,u){var f=arguments.length,k=J(x);return u=te[u]?"cssFloat"in x.style?"cssFloat":"styleFloat":u,f===1?k:L(x,u,k[u]||x.style[u])}function C(x,u,f){var k=arguments.length;if(u=te[u]?"cssFloat"in x.style?"cssFloat":"styleFloat":u,k===3)return typeof f=="number"&&K.test(u)&&(f="".concat(f,"px")),x.style[u]=f,f;for(var P in u)u.hasOwnProperty(P)&&C(x,P,u[P]);return J(x)}function N(x){return x===document.body?document.documentElement.clientWidth:x.offsetWidth}function E(x){return x===document.body?window.innerHeight||document.documentElement.clientHeight:x.offsetHeight}function O(){var x=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),u=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:x,height:u}}function j(){var x=document.documentElement.clientWidth,u=window.innerHeight||document.documentElement.clientHeight;return{width:x,height:u}}function T(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function U(x){var u=x.getBoundingClientRect(),f=document.documentElement;return{left:u.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:u.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(h,",").concat(h," 0 1 1 ").concat(-ee,",").concat(B),Q=Math.PI*2*h,W={stroke:s,strokeDasharray:"".concat(m/100*(Q-b),"px ").concat(Q,"px"),strokeDashoffset:"-".concat(b/2+i/100*(Q-b),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:z,pathStyle:W}}var T=function(m){var s=m.prefixCls,n=m.strokeWidth,b=m.trailWidth,d=m.gapDegree,h=m.gapPosition,I=m.trailColor,Y=m.strokeLinecap,ee=m.style,B=m.className,z=m.strokeColor,Q=m.percent,W=$(m,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),M=Object(K.useMemo)(function(){return l+=1,l},[]),ie=y(0,100,I,n,d,h),t=ie.pathString,c=ie.pathStyle,r=_(Q),R=_(z),H=R.find(function(ye){return Object.prototype.toString.call(ye)==="[object Object]"}),ne=a(r),ce=G(ne,1),ge=ce[0],Re=function(){var fe=0;return r.map(function(be,ke){var Be=R[ke]||R[R.length-1],Ge=Object.prototype.toString.call(Be)==="[object Object]"?"url(#".concat(s,"-gradient-").concat(M,")"):"",qe=y(fe,be,Be,n,d,h);return fe+=be,g.a.createElement("path",{key:ke,className:"".concat(s,"-circle-path"),d:qe.pathString,stroke:Ge,strokeLinecap:Y,strokeWidth:n,opacity:be===0?0:1,fillOpacity:"0",style:qe.pathStyle,ref:ge[ke]})})};return g.a.createElement("svg",P({className:J()("".concat(s,"-circle"),B),viewBox:"0 0 100 100",style:ee},W),H&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(s,"-gradient-").concat(M),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(H).sort(function(ye,fe){return o(ye)-o(fe)}).map(function(ye,fe){return g.a.createElement("stop",{key:fe,offset:ye,stopColor:H[ye]})}))),g.a.createElement("path",{className:"".concat(s,"-circle-trail"),d:t,stroke:I,strokeLinecap:Y,strokeWidth:b||n,fillOpacity:"0",style:c}),Re().reverse())};T.defaultProps=L;var D=T,v={Line:k,Circle:D}},hW8S:function(Oe,X,e){"use strict";e.d(X,"a",function(){return J}),e.d(X,"c",function(){return L}),e.d(X,"b",function(){return a});var K=e("VTBJ"),g=e("Ff2n"),te=e("Kwbf"),J="RC_TABLE_INTERNAL_COL_DEFINE";function L(C){var N=C.expandable,E=Object(g.a)(C,["expandable"]);return"expandable"in C?Object(K.a)(Object(K.a)({},E),N):E}function a(C){return Object.keys(C).reduce(function(N,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-")&&(N[E]=C[E]),N},{})}},"kaH+":function(Oe,X,e){"use strict";var K=e("+L6B"),g=e("2/Rp"),te=e("tJVT"),J=e("q1tI"),L=e.n(J),a=e("XFxt"),C=e.n(a),N=e("dhSg"),E=e("rLCj"),O=e("dF/Y"),j=e("4i/N");X.a=function(){var A=Object(J.useState)(""),U=Object(te.a)(A,2),x=U[0],u=U[1],f=Object(J.useState)(0),k=Object(te.a)(f,2),P=k[0],G=k[1],Z=Object(J.useRef)("");Object(J.useEffect)(function(){var F=N.a.subscribe("preview-image",function($){u($),document.body.style.overflow="hidden"});return F},[]),Object(J.useEffect)(function(){return document.addEventListener("keydown",V),function(){document.removeEventListener("keydown",V)}},[]),Object(J.useEffect)(function(){Z.current=x},[x]);function V(F){F.keyCode==27&&Z.current&&ae()}function ae(){document.body.style.overflow="auto",u("")}function w(){G(P+90)}return L.a.createElement(J.Fragment,null,x?L.a.createElement("div",{className:C.a["image-preview-container"]},L.a.createElement("div",{className:C.a["button-group"]},L.a.createElement(g.a,{onClick:w},"\u65CB\u8F6C",L.a.createElement(E.a,null)),L.a.createElement(g.a,{href:x},"\u4E0B\u8F7D",L.a.createElement(O.a,null)),L.a.createElement(g.a,{onClick:ae},"\u5173\u95ED",L.a.createElement(j.a,null))),L.a.createElement("div",{className:C.a["preview-wrp-group"]},L.a.createElement("img",{className:C.a["image-preview"],src:x,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(P,"deg)")}}))):null)}},mgmH:function(Oe,X,e){"use strict";e.d(X,"d",function(){return U}),e.d(X,"b",function(){return x}),e.d(X,"e",function(){return u}),e.d(X,"c",function(){return f}),e.d(X,"n",function(){return k}),e.d(X,"g",function(){return P}),e.d(X,"h",function(){return G}),e.d(X,"j",function(){return V}),e.d(X,"a",function(){return ae}),e.d(X,"l",function(){return w}),e.d(X,"f",function(){return F}),e.d(X,"k",function(){return $}),e.d(X,"m",function(){return p}),e.d(X,"i",function(){return l}),e.d(X,"o",function(){return o}),e.d(X,"r",function(){return _}),e.d(X,"q",function(){return y}),e.d(X,"p",function(){return T});var K=e("miYZ"),g=e("tsqr"),te=e("k1fw"),J=e("9og8"),L=e("WmNS"),a=e.n(L),C=e("oUNq"),N=e("9kvl"),E=e("1vsH"),O=e("m3rI"),j=function(){Object(N.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},A=function(){Object(N.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},U=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return j(),n.next=3,Object(C.s)(Object(te.a)({},i));case 3:if(m=n.sent,!(m.status===0)){n.next=7;break}return n.next=7,Object(E.u)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/export_couser_info.json"),query:i}));case 7:A();case 8:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),x=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.q)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_member_act_score")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),u=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.t)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_score")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_score")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),f=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.r)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),k=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.y)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),P=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.u)(Object(te.a)({},i));case 2:if(m=n.sent,!(m.status===0)){n.next=8;break}g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_homework")),n.next=13;break;case 8:if(!(m.status===-2)){n.next=12;break}return n.abrupt("return",m);case 12:m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),G=function(){var D=Object(J.a)(a.a.mark(function v(i,m){var s;return a.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,Object(C.w)(Object(te.a)({},i));case 2:s=b.sent,s.status===0?(g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/").concat(m))):s.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/").concat(m)));case 4:case"end":return b.stop()}},v)}));return function(i,m){return D.apply(this,arguments)}}(),Z=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return j(),n.next=3,Object(C.v)(Object(te.a)({},i));case 3:if(m=n.sent,!(m.status===0)){n.next=7;break}return n.next=7,Object(E.u)("",Object(E.U)({url:O.a.API_SERVER+"/api/homework_commons/".concat(i.categoryId,"/works_list.zip"),query:i}));case 7:A();case 8:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),V=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return j(),n.next=3,Object(C.z)(Object(te.a)({},i));case 3:if(m=n.sent,!(m.status===0)){n.next=7;break}return n.next=7,Object(E.u)("",Object(E.U)({url:O.a.API_SERVER+"/api/polls/".concat(i.categoryId,"/commit_result.xlsx"),query:i}));case 7:A();case 8:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),ae=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/attendances/export_xlsx_data.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),w=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/video_study_statics.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),F=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/courses/".concat(i.coursesId,"/export_course_students_info.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),$=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/item_banks/export.xlsx",query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),p=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),l=function(){var D=Object(J.a)(a.a.mark(function v(i){var m;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(C.x)(Object(te.a)({},i));case 2:m=n.sent,m.status===0?(g.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/exercise_score"))):m.status===-3&&(Object(N.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),N.d.push("/classrooms/".concat(i.coursesId,"/exportlist/exercise_score")));case 4:case"end":return n.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),o=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),s.next=3,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/export_records/".concat(i.id,".xlsx"),query:i}));case 3:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),_=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),y=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/ec_years/".concat(i==null?void 0:i.ec_year_id,"/ec_training_objectives.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}(),T=function(){var D=Object(J.a)(a.a.mark(function v(i){return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(E.t)("",Object(E.U)({url:O.a.API_SERVER+"/api/ec_years/".concat(i==null?void 0:i.ec_year_id,"/ec_graduation_requirements.xlsx"),query:i}));case 2:case"end":return s.stop()}},v)}));return function(i){return D.apply(this,arguments)}}()},n6Qo:function(Oe,X,e){"use strict";e.d(X,"a",function(){return N});var K=e("q1tI"),g=e("biw7"),te=e("fyJ8");function J(E){var O=E.className,j=E.index,A=E.children,U=E.colSpan,x=E.rowSpan,u=K.useContext(g.a),f=u.prefixCls,k=u.fixedInfoList,P=k[j];return K.createElement(te.a,Object.assign({className:O,index:j,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:A,props:{colSpan:U,rowSpan:x}}}},P))}function L(E){return K.createElement("tr",Object.assign({},E))}function a(E){var O=E.children,j=K.useContext(g.a),A=j.prefixCls;return K.createElement("tfoot",{className:"".concat(A,"-summary")},O)}var C=X.b=a,N={Cell:J,Row:L}},qdDa:function(Oe,X,e){"use strict";var K=e("2qtc"),g=e("kLXV"),te=e("T2oS"),J=e("W9HT"),L=e("sRBo"),a=e("kaz8"),C=e("miYZ"),N=e("tsqr"),E=e("y8nQ"),O=e("Vl3Y"),j=e("oBTY"),A=e("k1fw"),U=e("9og8"),x=e("tJVT"),u=e("WmNS"),f=e.n(u),k=e("q1tI"),P=e.n(k),G=e("qtVS"),Z=e("RotF"),V=e.n(Z),ae=e("Ty5D"),w=e("9kvl"),F=function(p){var l=p.teachers,o=p.loading,_=p.dispatch,y=Object(ae.i)(),T=Object(k.useState)([]),D=Object(x.a)(T,2),v=D[0],i=D[1],m=Object(k.useState)(!1),s=Object(x.a)(m,2),n=s[0],b=s[1],d=Object(k.useState)(!0),h=Object(x.a)(d,2),I=h[0],Y=h[1];y.id=y.coursesId,y.course_id=y.coursesId,y.limit=20,y.page=1;var ee=function(){var W=Object(U.a)(f.a.mark(function M(){var ie;return f.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return b(!0),c.next=3,Object(G.i)(Object(A.a)({},y));case 3:ie=c.sent,ie!=null&&ie.teacher_list&&(y.page++,i([].concat(Object(j.a)(v),Object(j.a)(ie.teacher_list))),ie.teacher_list.length!==y.limit&&Y(!1)),b(!1);case 6:case"end":return c.stop()}},M)}));return function(){return W.apply(this,arguments)}}();Object(k.useEffect)(function(){l.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458"&&(y.page=1,i([]),ee())},[l.actionTabs.key]);var B=O.a.useForm(),z=Object(x.a)(B,1),Q=z[0];return P.a.createElement(g.a,{centered:!0,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:l.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:200},onOk:Object(U.a)(f.a.mark(function W(){var M,ie,t;return f.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(M=Q.getFieldsValue(),console.log(M),!M.course_member_id){r.next=10;break}return ie=M.course_member_id,r.next=6,Object(G.a)(Object(A.a)(Object(A.a)({},y),{},{course_member_id:ie}));case 6:t=r.sent,t.status===0&&(i([]),N.b.success("\u4FEE\u6539\u6210\u529F"),_({type:"user/getUserInfo",payload:Object(A.a)({},y)}),_({type:"teachers/getList",payload:Object(A.a)({},y)}),_({type:"classroomList/getClassroomTopBanner",payload:{id:y.coursesId}}),_({type:"teachers/setActionTabs",payload:{}})),r.next=11;break;case 10:N.b.error("\u8BF7\u9009\u62E9\u7BA1\u7406\u5458");case 11:case"end":return r.stop()}},W)})),onCancel:function(){i([]),_({type:"teachers/setActionTabs",payload:{}})}},P.a.createElement("p",{className:"tc"},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",P.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u6559\u5E08\u56E2\u961F\u7684\u4E00\u5458"),P.a.createElement(O.a,{form:Q},P.a.createElement("div",{style:{background:"#F4FAFF",padding:20}},P.a.createElement("div",{style:{maxHeight:200,overflow:"auto"}},P.a.createElement(V.a,{initialLoad:!1,pageStart:0,loadMore:function(){return ee()},hasMore:!n&&I,useWindow:!1},P.a.createElement(J.a,{spinning:n},P.a.createElement(O.a.Item,{name:"course_member_id",style:{marginBottom:0}},P.a.createElement(a.a.Group,null,v==null?void 0:v.map(function(W,M){return P.a.createElement("div",{key:M,style:{marginBottom:6}},P.a.createElement(a.a,{value:W.course_member_id},W.name))})))))))))};X.a=Object(w.a)(function($){var p=$.teachers,l=$.loading;return{teachers:p,loading:l}})(F)},sR1s:function(Oe,X,e){"use strict";e.d(X,"b",function(){return J}),e.d(X,"a",function(){return L}),e.d(X,"c",function(){return a}),e.d(X,"d",function(){return C});var K=e("U8pU"),g="RC_TABLE_KEY";function te(N){return N==null?[]:Array.isArray(N)?N:[N]}function J(N,E){if(!E&&typeof E!="number")return N;for(var O=te(E),j=N,A=0;A1)Object(O.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Z.length===0)return Object(O.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var V=Z[0];if(a.isValidElement(V)&&Object(j.c)(V)){var ae=V.ref;Z[0]=a.cloneElement(V,{ref:Object(j.a)(ae,this.setChildNode)})}return Z.length===1?Z[0]:Z.map(function(w,F){return!a.isValidElement(w)||"key"in w&&w.key!==null?w:a.cloneElement(w,{key:"".concat(U,"-").concat(F)})})}}]),k}(a.Component);x.displayName="ResizeObserver",X.a=x},wCXF:function(Oe,X,e){"use strict";e.d(X,"a",function(){return Ge});var K=e("rePB"),g=e("VTBJ"),te=e("KQm4"),J=e("U8pU"),L=e("ODXe"),a=e("q1tI"),C=e("TSYQ"),N=e.n(C),E=e("Gytx"),O=e.n(E),j=e("Kwbf"),A=e("t23M"),U=e("qx4F"),x=e("6eGT"),u=e("IBYe"),f=e("Ff2n"),k=e("c+Xe"),P=e("fyJ8"),G=e("biw7");function Z(S,se,re,me,ve){var de=re[S]||{},q=re[se]||{},le,ue;de.fixed==="left"?le=me.left[S]:q.fixed==="right"&&(ue=me.right[se]);var he=!1,oe=!1,pe=!1,Pe=!1,xe=re[se+1],Te=re[S-1];if(ve==="rtl"){if(le!==void 0){var Ke=Te&&Te.fixed==="left";Pe=!Ke}else if(ue!==void 0){var Le=xe&&xe.fixed==="right";pe=!Le}}else if(le!==void 0){var we=xe&&xe.fixed==="left";he=!we}else if(ue!==void 0){var Ce=Te&&Te.fixed==="right";oe=!Ce}return{fixLeft:le,fixRight:ue,lastFixLeft:he,firstFixRight:oe,lastFixRight:pe,firstFixLeft:Pe,isSticky:me.isSticky}}var V=e("sR1s");function ae(S){var se=S.cells,re=S.stickyOffsets,me=S.flattenColumns,ve=S.rowComponent,de=S.cellComponent,q=S.onHeaderRow,le=S.index,ue=a.useContext(G.a),he=ue.prefixCls,oe=ue.direction,pe;q&&(pe=q(se.map(function(xe){return xe.column}),le));var Pe=Object(V.a)(se.map(function(xe){return xe.column}));return a.createElement(ve,Object.assign({},pe),se.map(function(xe,Te){var Ke=xe.column,Le=Z(xe.colStart,xe.colEnd,me,re,oe),we;return Ke&&Ke.onHeaderCell&&(we=xe.column.onHeaderCell(Ke)),a.createElement(P.a,Object.assign({},xe,{ellipsis:Ke.ellipsis,align:Ke.align,component:de,prefixCls:he,key:Pe[Te]},Le,{additionalProps:we,rowType:"header"}))}))}ae.displayName="HeaderRow";var w=ae;function F(S){var se=[];function re(q,le){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;se[ue]=se[ue]||[];var he=le,oe=q.filter(Boolean).map(function(pe){var Pe={key:pe.key,className:pe.className||"",children:pe.title,column:pe,colStart:he},xe=1,Te=pe.children;return Te&&Te.length>0&&(xe=re(Te,he,ue+1).reduce(function(Ke,Le){return Ke+Le},0),Pe.hasSubColumns=!0),"colSpan"in pe&&(xe=pe.colSpan),"rowSpan"in pe&&(Pe.rowSpan=pe.rowSpan),Pe.colSpan=xe,Pe.colEnd=Pe.colStart+xe-1,se[ue].push(Pe),he+=xe,xe});return oe}re(S,0);for(var me=se.length,ve=function(le){se[le].forEach(function(ue){!("rowSpan"in ue)&&!ue.hasSubColumns&&(ue.rowSpan=me-le)})},de=0;de=0;le-=1){var ue=se[le],he=re&&re[le],oe=he&&he[l.a];(ue||oe||q)&&(ve.unshift(a.createElement("col",Object.assign({key:le,style:{width:ue,minWidth:ue}},oe))),q=!0)}return a.createElement("colgroup",null,ve)}var _=o;function y(S,se){return Object(a.useMemo)(function(){for(var re=[],me=0;me1?Me-1:0),ct=1;ct=pe&&($e=pe-Pe),q({scrollLeft:$e/pe*(oe+2)}),Ce.current.x=Ae.pageX},at=function(){var Ae=Object(Re.b)(de.current).top,Qe=Ae+de.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;Qe-Object(U.a)()<=Ze||Ae>=Ze-le?we(function(it){return Object(g.a)(Object(g.a)({},it),{},{isHiddenScrollBar:!0})}):we(function(it){return Object(g.a)(Object(g.a)({},it),{},{isHiddenScrollBar:!1})})},ze=function(Ae){we(function(Qe){return Object(g.a)(Object(g.a)({},Qe),{},{scrollLeft:Ae/oe*pe||0})})};return a.useImperativeHandle(re,function(){return{setScrollLeft:ze}}),a.useEffect(function(){var He=Object(ge.a)(document.body,"mouseup",ut,!1),Ae=Object(ge.a)(document.body,"mousemove",st,!1);return at(),function(){He.remove(),Ae.remove()}},[Pe,Ve]),a.useEffect(function(){var He=Object(ge.a)(window,"scroll",at,!1),Ae=Object(ge.a)(window,"resize",at,!1);return function(){He.remove(),Ae.remove()}},[]),a.useEffect(function(){Le.isHiddenScrollBar||we(function(He){var Ae,Qe;return Object(g.a)(Object(g.a)({},He),{},{scrollLeft:de.current.scrollLeft/((Ae=de.current)===null||Ae===void 0?void 0:Ae.scrollWidth)*((Qe=de.current)===null||Qe===void 0?void 0:Qe.clientWidth)})})},[Le.isHiddenScrollBar]),oe<=pe||!Pe||Le.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(U.a)(),width:pe,bottom:le},className:"".concat(he,"-sticky-scroll")},a.createElement("div",{onMouseDown:Ie,ref:xe,className:N()("".concat(he,"-sticky-scroll-bar"),Object(K.a)({},"".concat(he,"-sticky-scroll-bar-active"),Ve)),style:{width:"".concat(Pe,"px"),transform:"translate3d(".concat(Le.scrollLeft,"px, 0, 0)")}}))},fe=a.forwardRef(ye);function be(S,se){return a.useMemo(function(){var re=!!S;return{isSticky:re,stickyClassName:re?"".concat(se,"-sticky-header"):"",offsetHeader:Object(J.a)(S)==="object"&&S.offsetHeader||0,offsetScroll:Object(J.a)(S)==="object"&&S.offsetScroll||0}},[S,se])}var ke=[],Be={},Ge="rc-table-internal-hook",qe=a.memo(function(S){var se=S.children;return se},function(S,se){return O()(S.props,se.props)?S.pingLeft!==se.pingLeft||S.pingRight!==se.pingRight:!1});function We(S){var se,re=S.prefixCls,me=S.className,ve=S.rowClassName,de=S.style,q=S.data,le=S.rowKey,ue=S.scroll,he=S.tableLayout,oe=S.direction,pe=S.title,Pe=S.footer,xe=S.summary,Te=S.id,Ke=S.showHeader,Le=S.components,we=S.emptyText,Ce=S.onRow,ot=S.onHeaderRow,Je=S.internalHooks,Ve=S.transformColumns,nt=S.internalRefs,ut=S.sticky,Ie=q||ke,st=!!Ie.length,at=a.useState(0),ze=Object(L.a)(at,2),He=ze[0],Ae=ze[1];a.useEffect(function(){Ae(Object(U.a)())});var Qe=a.useMemo(function(){return Object(V.c)(Le,{})},[Le]),Ze=a.useCallback(function(Ne,Ue){return Object(V.b)(Qe,Ne)||Ue},[Qe]),it=a.useMemo(function(){return typeof le=="function"?le:function(Ne){var Ue=Ne&&Ne[le];return Ue}},[le]),$e=Object(l.c)(S),Pt=$e.expandIcon,gt=$e.expandedRowKeys,Ot=$e.defaultExpandedRowKeys,ht=$e.defaultExpandAllRows,vt=$e.expandedRowRender,Fe=$e.onExpand,lt=$e.onExpandedRowsChange,dt=$e.expandRowByClick,ft=$e.rowExpandable,St=$e.expandIconColumnIndex,xt=$e.expandedRowClassName,Nt=$e.childrenColumnName,_t=$e.indentSize,Rt=Pt||ne,je=Nt||"children",_e=a.useMemo(function(){return vt?"row":S.expandable&&Je===Ge&&S.expandable.__PARENT_RENDER_ICON__||Ie.some(function(Ne){return Ne&&Object(J.a)(Ne)==="object"&&Ne[je]})?"nest":!1},[!!vt,Ie]),Ee=a.useState(function(){return Ot||(ht?ce(Ie,it,je):[])}),Se=Object(L.a)(Ee,2),De=Se[0],Ye=Se[1],Me=a.useMemo(function(){return new Set(gt||De||[])},[gt,De]),et=a.useCallback(function(Ne){var Ue=it(Ne,Ie.indexOf(Ne)),rt,pt=Me.has(Ue);pt?(Me.delete(Ue),rt=Object(te.a)(Me)):rt=[].concat(Object(te.a)(Me),[Ue]),Ye(rt),Fe&&Fe(!pt,Ne),lt&<(rt)},[it,Me,Ie,Fe,lt]),ct=a.useState(0),Xe=Object(L.a)(ct,2),bt=Xe[0],mt=Xe[1],Tt=Object(z.b)(Object(g.a)(Object(g.a)(Object(g.a)({},S),$e),{},{expandable:!!vt,expandedKeys:Me,getRowKey:it,onTriggerExpand:et,expandIcon:Rt,expandIconColumnIndex:St,direction:oe}),Je===Ge?Ve:null),Qt=Object(L.a)(Tt,2),Wt=Qt[0],tt=Qt[1],Ut=a.useMemo(function(){return{columns:Wt,flattenColumns:tt}},[Wt,tt]),Kt=a.useRef(),Zt=a.useRef(),jt=a.useRef(),bn=a.useState(!1),qt=Object(L.a)(bn,2),en=qt[0],En=qt[1],gn=a.useState(!1),tn=Object(L.a)(gn,2),nn=tn[0],yn=tn[1],_n=M(new Map),an=Object(L.a)(_n,2),Cn=an[0],On=an[1],xn=Object(V.a)(tt),rn=xn.map(function(Ne){return Cn.get(Ne)}),on=a.useMemo(function(){return rn},[rn.join("_")]),wt=c(on,tt.length,oe),yt=ue&&Object(V.d)(ue.y),Ct=ue&&Object(V.d)(ue.x),Mt=Ct&&tt.some(function(Ne){var Ue=Ne.fixed;return Ue}),sn=a.useRef(),It=be(ut,re),Dt=It.isSticky,Rn=It.offsetHeader,jn=It.offsetScroll,Pn=It.stickyClassName,Ft,kt,zt;yt&&(kt={overflowY:"scroll",maxHeight:ue.y}),Ct&&(Ft={overflowX:"auto"},yt||(kt={overflowY:"hidden"}),zt={width:ue.x===!0?"auto":ue.x,minWidth:"100%"});var ln=a.useCallback(function(Ne,Ue){On(function(rt){var pt=new Map(rt);return pt.set(Ne,Ue),pt})},[]),Sn=ie(null),un=Object(L.a)(Sn,2),Tn=un[0],cn=un[1];function Ht(Ne,Ue){if(!Ue)return;typeof Ue=="function"?Ue(Ne):Ue.scrollLeft!==Ne&&(Ue.scrollLeft=Ne)}var At=function(Ue){var rt=Ue.currentTarget,pt=Ue.scrollLeft,Lt=typeof pt=="number"?pt:rt.scrollLeft,vn=rt||Be;if(!cn()||cn()===vn){var Jt;Tn(vn),Ht(Lt,Zt.current),Ht(Lt,jt.current),Ht(Lt,(Jt=sn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(rt){var wn=rt.scrollWidth,In=rt.clientWidth;En(Lt>0),yn(Lt0?[].concat(Object(g.a)(f),Object(g.a)(j(Z).map(function(V){return Object(te.a)({fixed:G},V)}))):[].concat(Object(g.a)(f),[Object(te.a)(Object(te.a)({},k),{},{fixed:G})])},[])}function A(u){for(var f=!0,k=0;k=0;Z-=1){var V=u[Z];if(G&&V.fixed!=="right")G=!1;else if(!G&&V.fixed==="right"){Object(C.a)(!1,"Index ".concat(Z+1," of `columns` missing `fixed='right'` prop."));break}}}function U(u){return u.map(function(f){var k=f.fixed,P=Object(J.a)(f,["fixed"]),G=k;return k==="left"?G="right":k==="right"&&(G="left"),Object(te.a)({fixed:G},P)})}function x(u,f){var k=u.prefixCls,P=u.columns,G=u.children,Z=u.expandable,V=u.expandedKeys,ae=u.getRowKey,w=u.onTriggerExpand,F=u.expandIcon,$=u.rowExpandable,p=u.expandIconColumnIndex,l=u.direction,o=u.expandRowByClick,_=L.useMemo(function(){return P||O(G)},[P,G]),y=L.useMemo(function(){if(Z){var v,i=p||0,m=_[i],s=(v={},Object(K.a)(v,E.a,{className:"".concat(k,"-expand-icon-col")}),Object(K.a)(v,"title",""),Object(K.a)(v,"fixed",m?m.fixed:null),Object(K.a)(v,"className","".concat(k,"-row-expand-icon-cell")),Object(K.a)(v,"render",function(d,h,I){var Y=ae(h,I),ee=V.has(Y),B=$?$(h):!0,z=F({prefixCls:k,expanded:ee,expandable:B,record:h,onExpand:w});return o?L.createElement("span",{onClick:function(W){return W.stopPropagation()}},z):z}),v),n=_.slice();return i>=0&&n.splice(i,0,s),n}return _},[Z,_,ae,V,F,l]),T=L.useMemo(function(){var v=y;return f&&(v=f(v)),v.length||(v=[{render:function(){return null}}]),v},[f,y,l]),D=L.useMemo(function(){return l==="rtl"?U(j(T)):j(T)},[T,l]);return[T,D]}X.b=x},"y0+3":function(Oe,X,e){"use strict";e.d(X,"a",function(){return j}),e.d(X,"b",function(){return U});var K=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},te={cssFloat:1,styleFloat:1,float:1};function J(x){return x.nodeType===1?x.ownerDocument.defaultView.getComputedStyle(x,null):{}}function L(x,u,f){if(u=u.toLowerCase(),f==="auto"){if(u==="height")return x.offsetHeight;if(u==="width")return x.offsetWidth}return u in g||(g[u]=K.test(u)),g[u]?parseFloat(f)||0:f}function a(x,u){var f=arguments.length,k=J(x);return u=te[u]?"cssFloat"in x.style?"cssFloat":"styleFloat":u,f===1?k:L(x,u,k[u]||x.style[u])}function C(x,u,f){var k=arguments.length;if(u=te[u]?"cssFloat"in x.style?"cssFloat":"styleFloat":u,k===3)return typeof f=="number"&&K.test(u)&&(f="".concat(f,"px")),x.style[u]=f,f;for(var P in u)u.hasOwnProperty(P)&&C(x,P,u[P]);return J(x)}function N(x){return x===document.body?document.documentElement.clientWidth:x.offsetWidth}function E(x){return x===document.body?window.innerHeight||document.documentElement.clientHeight:x.offsetHeight}function O(){var x=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),u=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:x,height:u}}function j(){var x=document.documentElement.clientWidth,u=window.innerHeight||document.documentElement.clientHeight;return{width:x,height:u}}function A(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function U(x){var u=x.getBoundingClientRect(),f=document.documentElement;return{left:u.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:u.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Video__Statistics__Detail__index.1edc1b8d.async.js b/p__Classrooms__Lists__Video__Statistics__Detail__index.1edc1b8d.async.js index ab5f101f53..28512febfa 100644 --- a/p__Classrooms__Lists__Video__Statistics__Detail__index.1edc1b8d.async.js +++ b/p__Classrooms__Lists__Video__Statistics__Detail__index.1edc1b8d.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[110,8],{"6+eU":function(Oe,L,t){"use strict";t.d(L,"a",function(){return f});var E=t("wx14"),g=t("rePB"),$=t("VTBJ"),ne=t("1OyB"),x=t("vuIU"),o=t("Ji7U"),X=t("LK+K"),T=t("q1tI"),i=t.n(T),K=t("TSYQ"),j=t.n(K),R=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=j()(a,"".concat(a,"-").concat(b.page),(n={},Object(g.a)(n,"".concat(a,"-active"),b.active),Object(g.a)(n,b.className,!!b.className),Object(g.a)(n,"".concat(a,"-disabled"),!b.page),n)),c=function(){b.onClick(b.page)},d=function(U){b.onKeyPress(U,b.onClick,b.page)};return i.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:c,onKeyPress:d,tabIndex:"0"},b.itemRender(b.page,"page",i.a.createElement("a",{rel:"nofollow"},b.page)))},B=R,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(h){Object(o.a)(n,h);var b=Object(X.a)(n);function n(){var a;Object(ne.a)(this,n);for(var e=arguments.length,c=new Array(e),d=0;d=0||m.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;a.setState({goInputText:""}),F(a.getValidValue())},a.go=function(m){var U=a.state.goInputText;if(U==="")return;(m.keyCode===D.ENTER||m.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(x.a)(n,[{key:"getValidValue",value:function(){var e=this.state,c=e.goInputText,d=e.current;return!c||isNaN(c)?d:Number(c)}},{key:"getPageSizeOptions",value:function(){var e=this.props,c=e.pageSize,d=e.pageSizeOptions;return d.some(function(m){return m.toString()===c.toString()})?d:d.concat([c.toString()]).sort(function(m,U){var v=isNaN(Number(m))?0:Number(m),F=isNaN(Number(U))?0:Number(U);return v-F})}},{key:"render",value:function(){var e=this,c=this.props,d=c.pageSize,m=c.locale,U=c.rootPrefixCls,v=c.changeSize,F=c.quickGo,H=c.goButton,Z=c.selectComponentClass,ge=c.buildOptionText,Y=c.selectPrefixCls,I=c.disabled,q=this.state.goInputText,oe="".concat(U,"-options"),fe=Z,ee=null,me=null,Q=null;if(!v&&!F)return null;var Se=this.getPageSizeOptions();if(v&&fe){var Ne=Se.map(function(pe,Pe){return i.a.createElement(fe.Option,{key:Pe,value:pe.toString()},(ge||e.buildOptionText)(pe))});ee=i.a.createElement(fe,{disabled:I,prefixCls:Y,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||Se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Pe){return Pe.parentNode}},Ne)}return F&&(H&&(Q=typeof H=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:I,className:"".concat(oe,"-quick-jumper-button")},m.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),me=i.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},m.jump_to,i.a.createElement("input",{disabled:I,type:"text",value:q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),m.page,Q)),i.a.createElement("li",{className:"".concat(oe)},ee,me)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function u(){}function C(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h}function y(h,b,n){return n}function p(h,b,n){var a=typeof h=="undefined"?b.pageSize:h;return Math.floor((n.total-1)/a)+1}var W=function(h){Object(o.a)(n,h);var b=Object(X.a)(n);function n(a){var e;Object(ne.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(v,F){var H=e.props.prefixCls,Z=v||i.a.createElement("button",{type:"button","aria-label":F,className:"".concat(H,"-item-link")});return typeof v=="function"&&(Z=i.a.createElement(v,Object($.a)({},e.props))),Z},e.savePaginationNode=function(v){e.paginationNode=v},e.isValid=function(v){return C(v)&&v!==e.state.current},e.shouldDisplayQuickJumper=function(){var v=e.props,F=v.showQuickJumper,H=v.pageSize,Z=v.total;return Z<=H?!1:F},e.handleKeyDown=function(v){(v.keyCode===D.ARROW_UP||v.keyCode===D.ARROW_DOWN)&&v.preventDefault()},e.handleKeyUp=function(v){var F=e.getValidValue(v),H=e.state.currentInputValue;F!==H&&e.setState({currentInputValue:F}),v.keyCode===D.ENTER?e.handleChange(F):v.keyCode===D.ARROW_UP?e.handleChange(F-1):v.keyCode===D.ARROW_DOWN&&e.handleChange(F+1)},e.changePageSize=function(v){var F=e.state.current,H=p(v,e.state,e.props);F=F>H?H:F,H===0&&(F=e.state.current),typeof v=="number"&&("pageSize"in e.props||e.setState({pageSize:v}),"current"in e.props||e.setState({current:F,currentInputValue:F})),e.props.onShowSizeChange(F,v),"onChange"in e.props&&e.props.onChange&&e.props.onChange(F,v)},e.handleChange=function(v){var F=e.props.disabled,H=v;if(e.isValid(H)&&!F){var Z=p(void 0,e.state,e.props);H>Z?H=Z:H<1&&(H=1),"current"in e.props||e.setState({current:H,currentInputValue:H});var ge=e.state.pageSize;return e.props.onChange(H,ge),H}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?H-2:0),ge=2;ge=d?U=d:U=Number(c),U}},{key:"getShowSizeChanger",value:function(){var e=this.props,c=e.showSizeChanger,d=e.total,m=e.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:d>m}},{key:"renderPrev",value:function(e){var c=this.props,d=c.prevIcon,m=c.itemRender,U=m(e,"prev",this.getItemIcon(d,"prev page")),v=!this.hasPrev();return Object(T.isValidElement)(U)?Object(T.cloneElement)(U,{disabled:v}):U}},{key:"renderNext",value:function(e){var c=this.props,d=c.nextIcon,m=c.itemRender,U=m(e,"next",this.getItemIcon(d,"next page")),v=!this.hasNext();return Object(T.isValidElement)(U)?Object(T.cloneElement)(U,{disabled:v}):U}},{key:"render",value:function(){var e=this,c=this.props,d=c.prefixCls,m=c.className,U=c.style,v=c.disabled,F=c.hideOnSinglePage,H=c.total,Z=c.locale,ge=c.showQuickJumper,Y=c.showLessItems,I=c.showTitle,q=c.showTotal,oe=c.simple,fe=c.itemRender,ee=c.showPrevNextJumpers,me=c.jumpPrevIcon,Q=c.jumpNextIcon,Se=c.selectComponentClass,Ne=c.selectPrefixCls,pe=c.pageSizeOptions,Pe=this.state,se=Pe.current,Le=Pe.pageSize,Ae=Pe.currentInputValue;if(F===!0&&H<=Le)return null;var le=p(void 0,this.state,this.props),be=[],ke=null,ae=null,ie=null,De=null,xe=null,ue=ge&&ge.goButton,he=Y?1:2,Qe=se-1>0?se-1:0,et=se+1=he*2&&se!==1+2&&(be[0]=Object(T.cloneElement)(be[0],{className:"".concat(d,"-item-after-jump-prev")}),be.unshift(ke)),le-se>=he*2&&se!==le-2&&(be[be.length-1]=Object(T.cloneElement)(be[be.length-1],{className:"".concat(d,"-item-before-jump-next")}),be.push(ae)),N!==1&&be.unshift(ie),w!==le&&be.push(De)}var M=null;q&&(M=i.a.createElement("li",{className:"".concat(d,"-total-text")},q(H,[H===0?0:(se-1)*Le+1,se*Le>H?H:se*Le])));var P=!this.hasPrev()||!le,_=!this.hasNext()||!le;return i.a.createElement("ul",Object(E.a)({className:j()(d,m,Object(g.a)({},"".concat(d,"-disabled"),v)),style:U,unselectable:"unselectable",ref:this.savePaginationNode},tt),M,i.a.createElement("li",{title:I?Z.prev_page:null,onClick:this.prev,tabIndex:P?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(d,"-prev"),Object(g.a)({},"".concat(d,"-disabled"),P)),"aria-disabled":P},this.renderPrev(Qe)),be,i.a.createElement("li",{title:I?Z.next_page:null,onClick:this.next,tabIndex:_?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(d,"-next"),Object(g.a)({},"".concat(d,"-disabled"),_)),"aria-disabled":_},this.renderNext(et)),i.a.createElement(l,{disabled:v,locale:Z,rootPrefixCls:d,selectComponentClass:Se,selectPrefixCls:Ne,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:Le,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ue}))}}],[{key:"getDerivedStateFromProps",value:function(e,c){var d={};if("current"in e&&(d.current=e.current,e.current!==c.current&&(d.currentInputValue=d.current)),"pageSize"in e&&e.pageSize!==c.pageSize){var m=c.current,U=p(e.pageSize,c,e);m=m>U?U:m,"current"in e||(d.current=m,d.currentInputValue=m),d.pageSize=e.pageSize}return d}}]),n}(i.a.Component);W.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:O.a,style:{},itemRender:y,totalBoundaryShowSizeChanger:50};var f=W},"6RRn":function(Oe,L,t){"use strict";var E=t("wCXF"),g=t("n6Qo");t.d(L,"b",function(){return g.a});var $=t("IBYe"),ne=t("6eGT"),x=t("hW8S");t.d(L,"a",function(){return x.a}),L.c=E.b},"6eGT":function(Oe,L,t){"use strict";function E(g){return null}L.a=E},"815F":function(Oe,L,t){"use strict";t.d(L,"e",function(){return X}),t.d(L,"c",function(){return i}),t.d(L,"d",function(){return K}),t.d(L,"a",function(){return R}),t.d(L,"f",function(){return B}),t.d(L,"b",function(){return D});var E=t("KQm4"),g=t("VTBJ"),$=t("Ff2n"),ne=t("Zm9Q"),x=t("Kwbf"),o=t("OZM5");function X(s,l){return s!=null?s:l}function T(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(y){var p=y.key,W=y.children;Object(x.a)(p!=null,"Tree node must have a certain key: [".concat(C).concat(p,"]"));var f=String(p);Object(x.a)(!l.has(f)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),O(W,"".concat(C).concat(f," > "))})}O(s)}function i(s){function l(O){var u=Object(ne.a)(O);return u.map(function(C){if(!Object(o.i)(C))return Object(x.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var y=C.key,p=C.props,W=p.children,f=Object($.a)(p,["children"]),h=Object(g.a)({key:y},f),b=l(W);return b.length&&(h.children=b),h}).filter(function(C){return C})}return l(s)}function K(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),u=[];function C(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return y.map(function(W,f){var h=Object(o.h)(p?p.pos:"0",f),b=X(W.key,h),n=Object(g.a)(Object(g.a)({},W),{},{parent:p,pos:h,children:null,data:W,isStart:[].concat(Object(E.a)(p?p.isStart:[]),[f===0]),isEnd:[].concat(Object(E.a)(p?p.isEnd:[]),[f===y.length-1])});return u.push(n),l===!0||O.has(b)?n.children=C(W.children||[],n):n.children=[],n})}return C(s),u}function j(s,l,O){var u;O?typeof O=="string"?u=function(p){return p[O]}:typeof O=="function"&&(u=function(p){return O(p)}):u=function(p,W){return X(p.key,W)};function C(y,p,W){var f=y?y.children:s,h=y?Object(o.h)(W.pos,p):"0";if(y){var b=u(y,h),n={node:y,index:p,pos:h,key:b,parentPos:W.node?W.pos:null,level:W.level+1};l(n)}f&&f.forEach(function(a,e){C(a,e,{node:y,pos:h,level:W?W.level+1:-1})})}C(null)}function R(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,u=l.processEntity,C=l.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,p={},W={},f={posEntities:p,keyEntities:W};return O&&(f=O(f)||f),j(s,function(h){var b=h.node,n=h.index,a=h.pos,e=h.key,c=h.parentPos,d=h.level,m={node:b,index:n,key:e,pos:a,level:d},U=X(e,a);p[a]=m,W[U]=m,m.parent=p[c],m.parent&&(m.parent.children=m.parent.children||[],m.parent.children.push(m)),u&&u(m,f)},y),C&&C(f),f}function B(s,l){var O=l.expandedKeys,u=l.selectedKeys,C=l.loadedKeys,y=l.loadingKeys,p=l.checkedKeys,W=l.halfCheckedKeys,f=l.dragOverNodeKey,h=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:C.indexOf(s)!==-1,loading:y.indexOf(s)!==-1,checked:p.indexOf(s)!==-1,halfChecked:W.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&h===0,dragOverGapTop:f===s&&h===-1,dragOverGapBottom:f===s&&h===1};return a}function D(s){var l=s.data,O=s.expanded,u=s.selected,C=s.checked,y=s.loaded,p=s.loading,W=s.halfChecked,f=s.dragOver,h=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(g.a)(Object(g.a)({},l),{},{expanded:O,selected:u,checked:C,loaded:y,loading:p,halfChecked:W,dragOver:f,dragOverGapTop:h,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(x.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(Oe,L,t){"use strict";t.d(L,"a",function(){return o});var E=t("MNnm"),g="rc-util-key";function $(X){if(X.attachTo)return X.attachTo;var T=document.querySelector("head");return T||document.body}function ne(X){var T,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(E.a)())return null;var K=document.createElement("style");if((T=i.csp)===null||T===void 0?void 0:T.nonce){var j;K.nonce=(j=i.csp)===null||j===void 0?void 0:j.nonce}K.innerHTML=X;var R=$(i),B=R.firstChild;return i.prepend&&R.prepend?R.prepend(K):i.prepend&&B?R.insertBefore(K,B):R.appendChild(K),K}var x=new Map;function o(X,T){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=$(i);if(!x.has(K)){var j=ne("",i),R=j.parentNode;x.set(K,R),R.removeChild(j)}var B=Array.from(x.get(K).children).find(function(u){return u.tagName==="STYLE"&&u[g]===T});if(B){var D,s;if(((D=i.csp)===null||D===void 0?void 0:D.nonce)&&B.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;B.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return B.innerHTML!==X&&(B.innerHTML=X),B}var O=ne(X,i);return O[g]=T,O}},IBYe:function(Oe,L,t){"use strict";function E(g){return null}L.a=E},LdHM:function(Oe,L,t){"use strict";t.d(L,"b",function(){return y}),t.d(L,"a",function(){return W});var E=t("1OyB"),g=t("vuIU"),$=t("Ji7U"),ne=t("LK+K"),x=t("q1tI"),o=t("rePB"),X=t("Ff2n"),T=t("ODXe"),i=t("4IlW"),K=t("bX4T"),j=t("YrtM"),R=t("TSYQ"),B=t.n(R),D=t("+nKL"),s=t("8OUc"),l=function(I,q){var oe=I.prefixCls,fe=I.id,ee=I.flattenOptions,me=I.childrenAsData,Q=I.values,Se=I.searchValue,Ne=I.multiple,pe=I.defaultActiveFirstOption,Pe=I.height,se=I.itemHeight,Le=I.notFoundContent,Ae=I.open,le=I.menuItemSelectedIcon,be=I.virtual,ke=I.onSelect,ae=I.onToggleOpen,ie=I.onActiveValue,De=I.onScroll,xe=I.onMouseEnter,ue="".concat(oe,"-item"),he=Object(j.a)(function(){return ee},[Ae,ee],function(A,M){return M[0]&&A[1]!==M[1]}),Qe=x.useRef(null),et=function(M){M.preventDefault()},tt=function(M){Qe.current&&Qe.current.scrollTo({index:M})},st=function(M){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=he.length,G=0;G<_;G+=1){var k=(M+G*P+_)%_,V=he[k],te=V.group,J=V.data;if(!te&&!J.disabled)return k}return-1},Xe=x.useState(function(){return st(0)}),bt=Object(T.a)(Xe,2),r=bt[0],S=bt[1],N=function(M){S(M);var P=he[M];if(!P){ie(null,-1);return}ie(P.data.value,M)};x.useEffect(function(){N(pe!==!1?st(0):-1)},[he.length,Se]),x.useEffect(function(){var A=setTimeout(function(){if(!Ne&&Ae&&Q.size===1){var M=Array.from(Q)[0],P=he.findIndex(function(_){var G=_.data;return G.value===M});N(P),tt(P)}});return function(){return clearTimeout(A)}},[Ae]);var w=function(M){M!==void 0&&ke(M,{selected:!Q.has(M)}),Ne||ae(!1)};if(x.useImperativeHandle(q,function(){return{onKeyDown:function(M){var P=M.which;switch(P){case i.a.UP:case i.a.DOWN:{var _=0;if(P===i.a.UP?_=-1:P===i.a.DOWN&&(_=1),_!==0){var G=st(r+_,_);tt(G),N(G)}break}case i.a.ENTER:{var k=he[r];k&&!k.data.disabled?w(k.data.value):w(void 0),Ae&&M.preventDefault();break}case i.a.ESC:ae(!1)}},onKeyUp:function(){},scrollTo:function(M){tt(M)}}}),he.length===0)return x.createElement("div",{role:"listbox",id:"".concat(fe,"_list"),className:"".concat(ue,"-empty"),onMouseDown:et},Le);function z(A){var M=he[A];if(!M)return null;var P=M.data||{},_=P.value,G=P.label,k=P.children,V=Object(K.a)(P,!0),te=me?k:G;return M?x.createElement("div",Object.assign({"aria-label":typeof te=="string"?te:null},V,{key:A,role:"option",id:"".concat(fe,"_list_").concat(A),"aria-selected":Q.has(_)}),_):null}return x.createElement(x.Fragment,null,x.createElement("div",{role:"listbox",id:"".concat(fe,"_list"),style:{height:0,width:0,overflow:"hidden"}},z(r-1),z(r),z(r+1)),x.createElement(D.a,{itemKey:"key",ref:Qe,data:he,height:Pe,itemHeight:se,fullHeight:!1,onMouseDown:et,onScroll:De,virtual:be,onMouseEnter:xe},function(A,M){var P,_=A.group,G=A.groupOption,k=A.data,V=k.label,te=k.key;if(_)return x.createElement("div",{className:B()(ue,"".concat(ue,"-group"))},V!==void 0?V:te);var J=k.disabled,de=k.value,Re=k.title,Ce=k.children,je=k.style,re=k.className,Ge=Object(X.a)(k,["disabled","value","title","children","style","className"]),we=Q.has(de),_e="".concat(ue,"-option"),We=B()(ue,_e,re,(P={},Object(o.a)(P,"".concat(_e,"-grouped"),G),Object(o.a)(P,"".concat(_e,"-active"),r===M&&!J),Object(o.a)(P,"".concat(_e,"-disabled"),J),Object(o.a)(P,"".concat(_e,"-selected"),we),P)),$e=me?Ce:V,ye=!le||typeof le=="function"||we;return x.createElement("div",Object.assign({},Ge,{"aria-selected":we,className:We,title:Re,onMouseMove:function(){if(r===M||J)return;N(M)},onClick:function(){J||w(de)},style:je}),x.createElement("div",{className:"".concat(_e,"-content")},$e||de),x.isValidElement(le)||we,ye&&x.createElement(s.a,{className:"".concat(ue,"-option-state"),customizeIcon:le,customizeIconProps:{isSelected:we}},we?"\u2713":null))}))},O=x.forwardRef(l);O.displayName="OptionList";var u=O,C=function(){return null};C.isSelectOption=!0;var y=C,p=function(){return null};p.isSelectOptGroup=!0;var W=p,f=t("VTBJ"),h=t("Zm9Q");function b(Y){var I=Y.key,q=Y.props,oe=q.children,fe=q.value,ee=Object(X.a)(q,["children","value"]);return Object(f.a)({key:I,value:fe!==void 0?fe:I,children:oe},ee)}function n(Y){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(h.a)(Y).map(function(q,oe){if(!x.isValidElement(q)||!q.type)return null;var fe=q.type.isSelectOptGroup,ee=q.key,me=q.props,Q=me.children,Se=Object(X.a)(me,["children"]);return I||!fe?b(q):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(ee===null?oe:ee,"__"),label:ee},Se),{},{options:n(Q)})}).filter(function(q){return q})}var a=t("2Qr1"),e=t("qNPg"),c=t("U8pU"),d=t("Kwbf"),m=t("WKfj");function U(Y){var I=Y.mode,q=Y.options,oe=Y.children,fe=Y.backfill,ee=Y.allowClear,me=Y.placeholder,Q=Y.getInputElement,Se=Y.showSearch,Ne=Y.onSearch,pe=Y.defaultOpen,Pe=Y.autoFocus,se=Y.labelInValue,Le=Y.value,Ae=Y.inputValue,le=Y.optionLabelProp,be=I==="multiple"||I==="tags",ke=Se!==void 0?Se:be||I==="combobox",ae=q||n(oe);if(Object(d.a)(I!=="tags"||ae.every(function(ue){return!ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),I==="tags"||I==="combobox"){var ie=ae.some(function(ue){return ue.options?ue.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in ue?ue.value:ue.key)=="number"});Object(d.a)(!ie,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(I!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(I==="combobox"||!fe,"`backfill` only works with `combobox` mode."),Object(d.a)(I==="combobox"||!Q,"`getInputElement` only work with `combobox` mode."),Object(d.b)(I!=="combobox"||!Q||!ee||!me,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ne&&!ke&&I!=="combobox"&&I!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!pe||Pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Le!=null){var De=Object(m.d)(Le);Object(d.a)(!se||De.every(function(ue){return Object(c.a)(ue)==="object"&&("key"in ue||"value"in ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!be||Array.isArray(Le),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var xe=null;Object(h.a)(oe).some(function(ue){if(!x.isValidElement(ue)||!ue.type)return!1;var he=ue.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Qe=Object(h.a)(ue.props.children).every(function(et){return!x.isValidElement(et)||!ue.type||et.type.isSelectOption?!0:(xe=et.type,!1)});return!Qe}return xe=he,!0}),xe&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xe.displayName||xe.name||xe,"`.")),Object(d.a)(Ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var v=U,F=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:v,fillOptionsWithMissingValue:a.a}),H=function(Y){Object($.a)(q,Y);var I=Object(ne.a)(q);function q(){var oe;return Object(E.a)(this,q),oe=I.apply(this,arguments),oe.selectRef=x.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(g.a)(q,[{key:"render",value:function(){return x.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),q}(x.Component);H.Option=y,H.OptGroup=W;var Z=H,ge=L.c=Z},NvD2:function(Oe,L,t){"use strict";t.d(L,"a",function(){return o});var E=t("Kwbf");function g(X,T){var i=new Set;return X.forEach(function(K){T.has(K)||i.add(K)}),i}function $(X){var T=X||{},i=T.disabled,K=T.disableCheckbox,j=T.checkable;return!!(i||K)||j===!1}function ne(X,T,i,K){for(var j=new Set(X),R=new Set,B=0;B<=i;B+=1){var D=T.get(B)||new Set;D.forEach(function(u){var C=u.key,y=u.node,p=u.children,W=p===void 0?[]:p;j.has(C)&&!K(y)&&W.filter(function(f){return!K(f.node)}).forEach(function(f){j.add(f.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var O=T.get(l)||new Set;O.forEach(function(u){var C=u.parent,y=u.node;if(K(y)||!u.parent||s.has(u.parent.key))return;if(K(u.parent.node)){s.add(C.key);return}var p=!0,W=!1;(C.children||[]).filter(function(f){return!K(f.node)}).forEach(function(f){var h=f.key,b=j.has(h);p&&!b&&(p=!1),!W&&(b||R.has(h))&&(W=!0)}),p&&j.add(C.key),W&&R.add(C.key),s.add(C.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(g(R,j))}}function x(X,T,i,K,j){for(var R=new Set(X),B=new Set(T),D=0;D<=K;D+=1){var s=i.get(D)||new Set;s.forEach(function(C){var y=C.key,p=C.node,W=C.children,f=W===void 0?[]:W;!R.has(y)&&!B.has(y)&&!j(p)&&f.filter(function(h){return!j(h.node)}).forEach(function(h){R.delete(h.key)})})}B=new Set;for(var l=new Set,O=K;O>=0;O-=1){var u=i.get(O)||new Set;u.forEach(function(C){var y=C.parent,p=C.node;if(j(p)||!C.parent||l.has(C.parent.key))return;if(j(C.parent.node)){l.add(y.key);return}var W=!0,f=!1;(y.children||[]).filter(function(h){return!j(h.node)}).forEach(function(h){var b=h.key,n=R.has(b);W&&!n&&(W=!1),!f&&(n||B.has(b))&&(f=!0)}),W||R.delete(y.key),f&&B.add(y.key),l.add(y.key)})}return{checkedKeys:Array.from(R),halfCheckedKeys:Array.from(g(B,R))}}function o(X,T,i,K){var j=[],R;K?R=K:R=$;var B=new Set(X.filter(function(O){var u=!!i[O];return u||j.push(O),u})),D=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],C=u.level,y=D.get(C);y||(y=new Set,D.set(C,y)),y.add(u),s=Math.max(s,C)}),Object(E.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return T===!0?l=ne(B,D,s,R):l=x(B,T.halfCheckedKeys,D,s,R),l}},OZM5:function(Oe,L,t){"use strict";t.d(L,"b",function(){return K}),t.d(L,"a",function(){return j}),t.d(L,"k",function(){return R}),t.d(L,"h",function(){return B}),t.d(L,"i",function(){return D}),t.d(L,"g",function(){return s}),t.d(L,"c",function(){return l}),t.d(L,"d",function(){return O}),t.d(L,"j",function(){return y}),t.d(L,"e",function(){return p}),t.d(L,"f",function(){return W});var E=t("KQm4"),g=t("U8pU"),$=t("Ff2n"),ne=t("q1tI"),x=t.n(ne),o=t("Kwbf"),X=t("WaYH"),T=.25,i=2;function K(f,h){var b=f.slice(),n=b.indexOf(h);return n>=0&&b.splice(n,1),b}function j(f,h){var b=f.slice();return b.indexOf(h)===-1&&b.push(h),b}function R(f){return f.split("-")}function B(f,h){return"".concat(f,"-").concat(h)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,h){var b=[f],n=h[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(c){var d=c.key,m=c.children;b.push(d),a(m)})}return a(n.children),b}function l(f,h){var b=f.clientY,n=h.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,c=n.height,d=Math.max(c*T,i);return b<=a+d?-1:b>=e-d?1:0}function O(f,h){if(!f)return;var b=h.multiple;return b?f.slice():f.length?[f[0]]:f}var u=function(h){return h};function C(f,h){if(!f)return[];var b=h||{},n=b.processProps,a=n===void 0?u:n,e=Array.isArray(f)?f:[f];return e.map(function(c){var d=c.children,m=Object($.a)(c,["children"]),U=C(d,h);return x.a.createElement(X.a,Object.assign({},a(m)),U)})}function y(f){if(!f)return null;var h;if(Array.isArray(f))h={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(g.a)(f)==="object")h={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return h}function p(f,h){var b=new Set;function n(a){if(b.has(a))return;var e=h[a];if(!e)return;b.add(a);var c=e.parent,d=e.node;if(d.disabled)return;c&&n(c.key)}return(f||[]).forEach(function(a){n(a)}),Object(E.a)(b)}function W(f){var h={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(h[b]=f[b])}),h}},Rw3n:function(Oe,L,t){Oe.exports={flex_box_center:"flex_box_center___2Ey6N",flex_space_between:"flex_space_between___1oJXW",flex_box_vertical_center:"flex_box_vertical_center___1xNWT",flex_box_center_end:"flex_box_center_end___2peJt",flex_box_column:"flex_box_column___357v_",title:"title___3T4Q7",statisticsWrp:"statisticsWrp___1rIgG",infoWrp:"infoWrp___1Mhp7",warp_task_hide:"warp_task_hide___1DgmR",task_hide:"task_hide___1hGaZ"}},"SA+Z":function(Oe,L,t){var E=t("wTVA"),g=t("EbDI"),$=t("ZhPi"),ne=t("wkBT");function x(o){return E(o)||g(o)||$(o)||ne()}Oe.exports=x,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,L,t){"use strict";var E=t("rePB"),g=t("Ff2n"),$=t("VTBJ"),ne=t("1OyB"),x=t("vuIU"),o=t("JX7q"),X=t("Ji7U"),T=t("LK+K"),i=t("q1tI"),K=t("TSYQ"),j=t.n(K),R=t("sboe"),B=t("OZM5"),D=function(h){var b=h.prefixCls,n=h.level,a=h.isStart,e=h.isEnd;if(!n)return null;for(var c="".concat(b,"-indent-unit"),d=[],m=0;m1)Object(K.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(y.length===0)return Object(K.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=y[0];if(o.isValidElement(p)&&Object(j.c)(p)){var W=p.ref;y[0]=o.cloneElement(p,{ref:Object(j.a)(W,this.setChildNode)})}return y.length===1?y[0]:y.map(function(f,h){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(B,"-").concat(h)})})}}]),O}(o.Component);D.displayName="ResizeObserver",L.a=D},wCXF:function(Oe,L,t){"use strict";t.d(L,"a",function(){return tt});var E=t("rePB"),g=t("VTBJ"),$=t("KQm4"),ne=t("U8pU"),x=t("ODXe"),o=t("q1tI"),X=t("TSYQ"),T=t.n(X),i=t("Gytx"),K=t.n(i),j=t("Kwbf"),R=t("t23M"),B=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),u=t("fyJ8"),C=t("biw7");function y(r,S,N,w,z){var A=N[r]||{},M=N[S]||{},P,_;A.fixed==="left"?P=w.left[r]:M.fixed==="right"&&(_=w.right[S]);var G=!1,k=!1,V=!1,te=!1,J=N[S+1],de=N[r-1];if(z==="rtl"){if(P!==void 0){var Re=de&&de.fixed==="left";te=!Re}else if(_!==void 0){var Ce=J&&J.fixed==="right";V=!Ce}}else if(P!==void 0){var je=J&&J.fixed==="left";G=!je}else if(_!==void 0){var re=de&&de.fixed==="right";k=!re}return{fixLeft:P,fixRight:_,lastFixLeft:G,firstFixRight:k,lastFixRight:V,firstFixLeft:te,isSticky:w.isSticky}}var p=t("sR1s");function W(r){var S=r.cells,N=r.stickyOffsets,w=r.flattenColumns,z=r.rowComponent,A=r.cellComponent,M=r.onHeaderRow,P=r.index,_=o.useContext(C.a),G=_.prefixCls,k=_.direction,V;M&&(V=M(S.map(function(J){return J.column}),P));var te=Object(p.a)(S.map(function(J){return J.column}));return o.createElement(z,Object.assign({},V),S.map(function(J,de){var Re=J.column,Ce=y(J.colStart,J.colEnd,w,N,k),je;return Re&&Re.onHeaderCell&&(je=J.column.onHeaderCell(Re)),o.createElement(u.a,Object.assign({},J,{ellipsis:Re.ellipsis,align:Re.align,component:A,prefixCls:G,key:te[de]},Ce,{additionalProps:je,rowType:"header"}))}))}W.displayName="HeaderRow";var f=W;function h(r){var S=[];function N(M,P){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;S[_]=S[_]||[];var G=P,k=M.filter(Boolean).map(function(V){var te={key:V.key,className:V.className||"",children:V.title,column:V,colStart:G},J=1,de=V.children;return de&&de.length>0&&(J=N(de,G,_+1).reduce(function(Re,Ce){return Re+Ce},0),te.hasSubColumns=!0),"colSpan"in V&&(J=V.colSpan),"rowSpan"in V&&(te.rowSpan=V.rowSpan),te.colSpan=J,te.colEnd=te.colStart+J-1,S[_].push(te),G+=J,J});return k}N(r,0);for(var w=S.length,z=function(P){S[P].forEach(function(_){!("rowSpan"in _)&&!_.hasSubColumns&&(_.rowSpan=w-P)})},A=0;A=0;P-=1){var _=S[P],G=N&&N[P],k=G&&G[a.a];(_||k||M)&&(z.unshift(o.createElement("col",Object.assign({key:P,style:{width:_,minWidth:_}},k))),M=!0)}return o.createElement("colgroup",null,z)}var c=e;function d(r,S){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?Ve-1:0),ct=1;ct=V&&(Me=V-te),M({scrollLeft:Me/V*(k+2)}),re.current.x=ce.pageX},ze=function(){var ce=Object(De.b)(A.current).top,Ke=ce+A.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;Ke-Object(B.a)()<=He||ce>=He-P?je(function(Ye){return Object(g.a)(Object(g.a)({},Ye),{},{isHiddenScrollBar:!0})}):je(function(Ye){return Object(g.a)(Object(g.a)({},Ye),{},{isHiddenScrollBar:!1})})},Ue=function(ce){je(function(Ke){return Object(g.a)(Object(g.a)({},Ke),{},{scrollLeft:ce/k*V||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Ue}}),o.useEffect(function(){var Te=Object(ie.a)(document.body,"mouseup",$e,!1),ce=Object(ie.a)(document.body,"mousemove",Je,!1);return ze(),function(){Te.remove(),ce.remove()}},[te,_e]),o.useEffect(function(){var Te=Object(ie.a)(window,"scroll",ze,!1),ce=Object(ie.a)(window,"resize",ze,!1);return function(){Te.remove(),ce.remove()}},[]),o.useEffect(function(){Ce.isHiddenScrollBar||je(function(Te){var ce,Ke;return Object(g.a)(Object(g.a)({},Te),{},{scrollLeft:A.current.scrollLeft/((ce=A.current)===null||ce===void 0?void 0:ce.scrollWidth)*((Ke=A.current)===null||Ke===void 0?void 0:Ke.clientWidth)})})},[Ce.isHiddenScrollBar]),k<=V||!te||Ce.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:V,bottom:P},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:ye,ref:J,className:T()("".concat(G,"-sticky-scroll-bar"),Object(E.a)({},"".concat(G,"-sticky-scroll-bar-active"),_e)),style:{width:"".concat(te,"px"),transform:"translate3d(".concat(Ce.scrollLeft,"px, 0, 0)")}}))},ue=o.forwardRef(xe);function he(r,S){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(S,"-sticky-header"):"",offsetHeader:Object(ne.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(ne.a)(r)==="object"&&r.offsetScroll||0}},[r,S])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var S=r.children;return S},function(r,S){return K()(r.props,S.props)?r.pingLeft!==S.pingLeft||r.pingRight!==S.pingRight:!1});function Xe(r){var S,N=r.prefixCls,w=r.className,z=r.rowClassName,A=r.style,M=r.data,P=r.rowKey,_=r.scroll,G=r.tableLayout,k=r.direction,V=r.title,te=r.footer,J=r.summary,de=r.id,Re=r.showHeader,Ce=r.components,je=r.emptyText,re=r.onRow,Ge=r.onHeaderRow,we=r.internalHooks,_e=r.transformColumns,We=r.internalRefs,$e=r.sticky,ye=M||Qe,Je=!!ye.length,ze=o.useState(0),Ue=Object(x.a)(ze,2),Te=Ue[0],ce=Ue[1];o.useEffect(function(){ce(Object(B.a)())});var Ke=o.useMemo(function(){return Object(p.c)(Ce,{})},[Ce]),He=o.useCallback(function(ve,Ee){return Object(p.b)(Ke,ve)||Ee},[Ke]),Ye=o.useMemo(function(){return typeof P=="function"?P:function(ve){var Ee=ve&&ve[P];return Ee}},[P]),Me=Object(a.c)(r),jt=Me.expandIcon,St=Me.expandedRowKeys,Nt=Me.defaultExpandedRowKeys,rt=Me.defaultExpandAllRows,it=Me.expandedRowRender,ft=Me.onExpand,mt=Me.onExpandedRowsChange,Rt=Me.expandRowByClick,nt=Me.rowExpandable,Et=Me.expandIconColumnIndex,pt=Me.expandedRowClassName,Kt=Me.childrenColumnName,Pt=Me.indentSize,ht=jt||ke,gt=Kt||"children",Tt=o.useMemo(function(){return it?"row":r.expandable&&we===tt&&r.expandable.__PARENT_RENDER_ICON__||ye.some(function(ve){return ve&&Object(ne.a)(ve)==="object"&&ve[gt]})?"nest":!1},[!!it,ye]),Dt=o.useState(function(){return Nt||(rt?ae(ye,Ye,gt):[])}),Fe=Object(x.a)(Dt,2),Ze=Fe[0],at=Fe[1],Ve=o.useMemo(function(){return new Set(St||Ze||[])},[St,Ze]),dt=o.useCallback(function(ve){var Ee=Ye(ve,ye.indexOf(ve)),Be,qe=Ve.has(Ee);qe?(Ve.delete(Ee),Be=Object($.a)(Ve)):Be=[].concat(Object($.a)(Ve),[Ee]),at(Be),ft&&ft(!qe,ve),mt&&mt(Be)},[Ye,Ve,ye,ft,mt]),ct=o.useState(0),Mt=Object(x.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(Q.b)(Object(g.a)(Object(g.a)(Object(g.a)({},r),Me),{},{expandable:!!it,expandedKeys:Ve,getRowKey:Ye,onTriggerExpand:dt,expandIcon:ht,expandIconColumnIndex:Et,direction:k}),we===tt?_e:null),Yt=Object(x.a)(vn,2),kt=Yt[0],Ie=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Ie}},[kt,Ie]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(x.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(x.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(x.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Ie),an=jn.map(function(ve){return On.get(ve)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Le(on,Ie.length,k),ot=_&&Object(p.d)(_.y),lt=_&&Object(p.d)(_.x),yt=lt&&Ie.some(function(ve){var Ee=ve.fixed;return Ee}),rn=o.useRef(),wt=he($e,N),Ot=wt.isSticky,Sn=wt.offsetHeader,Nn=wt.offsetScroll,Rn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:_.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:_.x===!0?"auto":_.x,minWidth:"100%"});var ln=o.useCallback(function(ve,Ee){xn(function(Be){var qe=new Map(Be);return qe.set(ve,Ee),qe})},[]),Pn=Pe(null),sn=Object(x.a)(Pn,2),Tn=sn[0],dn=sn[1];function Ft(ve,Ee){if(!Ee)return;typeof Ee=="function"?Ee(ve):Ee.scrollLeft!==ve&&(Ee.scrollLeft=ve)}var vt=function(Ee){var Be=Ee.currentTarget,qe=Ee.scrollLeft,xt=typeof qe=="number"?qe:Be.scrollLeft,hn=Be||et;if(!dn()||dn()===hn){var Jt;Tn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Be){var Un=Be.scrollWidth,In=Be.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(g.a)(l),Object(g.a)(j(y).map(function(p){return Object($.a)({fixed:C},p)}))):[].concat(Object(g.a)(l),[Object($.a)(Object($.a)({},O),{},{fixed:C})])},[])}function R(s){for(var l=!0,O=0;O=0;y-=1){var p=s[y];if(C&&p.fixed!=="right")C=!1;else if(!C&&p.fixed==="right"){Object(X.a)(!1,"Index ".concat(y+1," of `columns` missing `fixed='right'` prop."));break}}}function B(s){return s.map(function(l){var O=l.fixed,u=Object(ne.a)(l,["fixed"]),C=O;return O==="left"?C="right":O==="right"&&(C="left"),Object($.a)({fixed:C},u)})}function D(s,l){var O=s.prefixCls,u=s.columns,C=s.children,y=s.expandable,p=s.expandedKeys,W=s.getRowKey,f=s.onTriggerExpand,h=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,c=x.useMemo(function(){return u||K(C)},[u,C]),d=x.useMemo(function(){if(y){var v,F=n||0,H=c[F],Z=(v={},Object(E.a)(v,i.a,{className:"".concat(O,"-expand-icon-col")}),Object(E.a)(v,"title",""),Object(E.a)(v,"fixed",H?H.fixed:null),Object(E.a)(v,"className","".concat(O,"-row-expand-icon-cell")),Object(E.a)(v,"render",function(I,q,oe){var fe=W(q,oe),ee=p.has(fe),me=b?b(q):!0,Q=h({prefixCls:O,expanded:ee,expandable:me,record:q,onExpand:f});return e?x.createElement("span",{onClick:function(Ne){return Ne.stopPropagation()}},Q):Q}),v),ge=c.slice();return F>=0&&ge.splice(F,0,Z),ge}return c},[y,c,W,p,h,a]),m=x.useMemo(function(){var v=d;return l&&(v=l(v)),v.length||(v=[{render:function(){return null}}]),v},[l,d,a]),U=x.useMemo(function(){return a==="rtl"?B(j(m)):j(m)},[m,a]);return[m,U]}L.b=D},"y0+3":function(Oe,L,t){"use strict";t.d(L,"a",function(){return j}),t.d(L,"b",function(){return B});var E=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function ne(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function x(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in g||(g[s]=E.test(s)),g[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,O=ne(D);return s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:x(D,s,O[s]||D.style[s])}function X(D,s,l){var O=arguments.length;if(s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&E.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&X(D,u,s[u]);return ne(D)}function T(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function i(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function K(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function j(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function R(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function B(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[110,8],{"6+eU":function(Oe,L,t){"use strict";t.d(L,"a",function(){return f});var E=t("wx14"),g=t("rePB"),$=t("VTBJ"),ne=t("1OyB"),x=t("vuIU"),o=t("Ji7U"),X=t("LK+K"),P=t("q1tI"),i=t.n(P),K=t("TSYQ"),j=t.n(K),S=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=j()(a,"".concat(a,"-").concat(b.page),(n={},Object(g.a)(n,"".concat(a,"-active"),b.active),Object(g.a)(n,b.className,!!b.className),Object(g.a)(n,"".concat(a,"-disabled"),!b.page),n)),c=function(){b.onClick(b.page)},d=function(U){b.onKeyPress(U,b.onClick,b.page)};return i.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:c,onKeyPress:d,tabIndex:"0"},b.itemRender(b.page,"page",i.a.createElement("a",{rel:"nofollow"},b.page)))},B=S,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(h){Object(o.a)(n,h);var b=Object(X.a)(n);function n(){var a;Object(ne.a)(this,n);for(var e=arguments.length,c=new Array(e),d=0;d=0||m.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;a.setState({goInputText:""}),F(a.getValidValue())},a.go=function(m){var U=a.state.goInputText;if(U==="")return;(m.keyCode===D.ENTER||m.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(x.a)(n,[{key:"getValidValue",value:function(){var e=this.state,c=e.goInputText,d=e.current;return!c||isNaN(c)?d:Number(c)}},{key:"getPageSizeOptions",value:function(){var e=this.props,c=e.pageSize,d=e.pageSizeOptions;return d.some(function(m){return m.toString()===c.toString()})?d:d.concat([c.toString()]).sort(function(m,U){var v=isNaN(Number(m))?0:Number(m),F=isNaN(Number(U))?0:Number(U);return v-F})}},{key:"render",value:function(){var e=this,c=this.props,d=c.pageSize,m=c.locale,U=c.rootPrefixCls,v=c.changeSize,F=c.quickGo,H=c.goButton,Z=c.selectComponentClass,ge=c.buildOptionText,Y=c.selectPrefixCls,I=c.disabled,q=this.state.goInputText,oe="".concat(U,"-options"),fe=Z,ee=null,me=null,Q=null;if(!v&&!F)return null;var Ne=this.getPageSizeOptions();if(v&&fe){var Re=Ne.map(function(pe,Te){return i.a.createElement(fe.Option,{key:Te,value:pe.toString()},(ge||e.buildOptionText)(pe))});ee=i.a.createElement(fe,{disabled:I,prefixCls:Y,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Te){return Te.parentNode}},Re)}return F&&(H&&(Q=typeof H=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:I,className:"".concat(oe,"-quick-jumper-button")},m.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),me=i.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},m.jump_to,i.a.createElement("input",{disabled:I,type:"text",value:q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),m.page,Q)),i.a.createElement("li",{className:"".concat(oe)},ee,me)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function u(){}function C(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h}function y(h,b,n){return n}function p(h,b,n){var a=typeof h=="undefined"?b.pageSize:h;return Math.floor((n.total-1)/a)+1}var W=function(h){Object(o.a)(n,h);var b=Object(X.a)(n);function n(a){var e;Object(ne.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(v,F){var H=e.props.prefixCls,Z=v||i.a.createElement("button",{type:"button","aria-label":F,className:"".concat(H,"-item-link")});return typeof v=="function"&&(Z=i.a.createElement(v,Object($.a)({},e.props))),Z},e.savePaginationNode=function(v){e.paginationNode=v},e.isValid=function(v){return C(v)&&v!==e.state.current},e.shouldDisplayQuickJumper=function(){var v=e.props,F=v.showQuickJumper,H=v.pageSize,Z=v.total;return Z<=H?!1:F},e.handleKeyDown=function(v){(v.keyCode===D.ARROW_UP||v.keyCode===D.ARROW_DOWN)&&v.preventDefault()},e.handleKeyUp=function(v){var F=e.getValidValue(v),H=e.state.currentInputValue;F!==H&&e.setState({currentInputValue:F}),v.keyCode===D.ENTER?e.handleChange(F):v.keyCode===D.ARROW_UP?e.handleChange(F-1):v.keyCode===D.ARROW_DOWN&&e.handleChange(F+1)},e.changePageSize=function(v){var F=e.state.current,H=p(v,e.state,e.props);F=F>H?H:F,H===0&&(F=e.state.current),typeof v=="number"&&("pageSize"in e.props||e.setState({pageSize:v}),"current"in e.props||e.setState({current:F,currentInputValue:F})),e.props.onShowSizeChange(F,v),"onChange"in e.props&&e.props.onChange&&e.props.onChange(F,v)},e.handleChange=function(v){var F=e.props.disabled,H=v;if(e.isValid(H)&&!F){var Z=p(void 0,e.state,e.props);H>Z?H=Z:H<1&&(H=1),"current"in e.props||e.setState({current:H,currentInputValue:H});var ge=e.state.pageSize;return e.props.onChange(H,ge),H}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?H-2:0),ge=2;ge=d?U=d:U=Number(c),U}},{key:"getShowSizeChanger",value:function(){var e=this.props,c=e.showSizeChanger,d=e.total,m=e.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:d>m}},{key:"renderPrev",value:function(e){var c=this.props,d=c.prevIcon,m=c.itemRender,U=m(e,"prev",this.getItemIcon(d,"prev page")),v=!this.hasPrev();return Object(P.isValidElement)(U)?Object(P.cloneElement)(U,{disabled:v}):U}},{key:"renderNext",value:function(e){var c=this.props,d=c.nextIcon,m=c.itemRender,U=m(e,"next",this.getItemIcon(d,"next page")),v=!this.hasNext();return Object(P.isValidElement)(U)?Object(P.cloneElement)(U,{disabled:v}):U}},{key:"render",value:function(){var e=this,c=this.props,d=c.prefixCls,m=c.className,U=c.style,v=c.disabled,F=c.hideOnSinglePage,H=c.total,Z=c.locale,ge=c.showQuickJumper,Y=c.showLessItems,I=c.showTitle,q=c.showTotal,oe=c.simple,fe=c.itemRender,ee=c.showPrevNextJumpers,me=c.jumpPrevIcon,Q=c.jumpNextIcon,Ne=c.selectComponentClass,Re=c.selectPrefixCls,pe=c.pageSizeOptions,Te=this.state,se=Te.current,Le=Te.pageSize,Ae=Te.currentInputValue;if(F===!0&&H<=Le)return null;var le=p(void 0,this.state,this.props),be=[],ke=null,ae=null,ie=null,De=null,xe=null,ue=ge&&ge.goButton,he=Y?1:2,Qe=se-1>0?se-1:0,et=se+1=he*2&&se!==1+2&&(be[0]=Object(P.cloneElement)(be[0],{className:"".concat(d,"-item-after-jump-prev")}),be.unshift(ke)),le-se>=he*2&&se!==le-2&&(be[be.length-1]=Object(P.cloneElement)(be[be.length-1],{className:"".concat(d,"-item-before-jump-next")}),be.push(ae)),R!==1&&be.unshift(ie),w!==le&&be.push(De)}var M=null;q&&(M=i.a.createElement("li",{className:"".concat(d,"-total-text")},q(H,[H===0?0:(se-1)*Le+1,se*Le>H?H:se*Le])));var T=!this.hasPrev()||!le,_=!this.hasNext()||!le;return i.a.createElement("ul",Object(E.a)({className:j()(d,m,Object(g.a)({},"".concat(d,"-disabled"),v)),style:U,unselectable:"unselectable",ref:this.savePaginationNode},tt),M,i.a.createElement("li",{title:I?Z.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(d,"-prev"),Object(g.a)({},"".concat(d,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),be,i.a.createElement("li",{title:I?Z.next_page:null,onClick:this.next,tabIndex:_?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(d,"-next"),Object(g.a)({},"".concat(d,"-disabled"),_)),"aria-disabled":_},this.renderNext(et)),i.a.createElement(l,{disabled:v,locale:Z,rootPrefixCls:d,selectComponentClass:Ne,selectPrefixCls:Re,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:Le,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ue}))}}],[{key:"getDerivedStateFromProps",value:function(e,c){var d={};if("current"in e&&(d.current=e.current,e.current!==c.current&&(d.currentInputValue=d.current)),"pageSize"in e&&e.pageSize!==c.pageSize){var m=c.current,U=p(e.pageSize,c,e);m=m>U?U:m,"current"in e||(d.current=m,d.currentInputValue=m),d.pageSize=e.pageSize}return d}}]),n}(i.a.Component);W.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:O.a,style:{},itemRender:y,totalBoundaryShowSizeChanger:50};var f=W},"6RRn":function(Oe,L,t){"use strict";var E=t("wCXF"),g=t("n6Qo");t.d(L,"b",function(){return g.a});var $=t("IBYe"),ne=t("6eGT"),x=t("hW8S");t.d(L,"a",function(){return x.a}),L.c=E.b},"6eGT":function(Oe,L,t){"use strict";function E(g){return null}L.a=E},"815F":function(Oe,L,t){"use strict";t.d(L,"e",function(){return X}),t.d(L,"c",function(){return i}),t.d(L,"d",function(){return K}),t.d(L,"a",function(){return S}),t.d(L,"f",function(){return B}),t.d(L,"b",function(){return D});var E=t("KQm4"),g=t("VTBJ"),$=t("Ff2n"),ne=t("Zm9Q"),x=t("Kwbf"),o=t("OZM5");function X(s,l){return s!=null?s:l}function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(y){var p=y.key,W=y.children;Object(x.a)(p!=null,"Tree node must have a certain key: [".concat(C).concat(p,"]"));var f=String(p);Object(x.a)(!l.has(f)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),O(W,"".concat(C).concat(f," > "))})}O(s)}function i(s){function l(O){var u=Object(ne.a)(O);return u.map(function(C){if(!Object(o.i)(C))return Object(x.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var y=C.key,p=C.props,W=p.children,f=Object($.a)(p,["children"]),h=Object(g.a)({key:y},f),b=l(W);return b.length&&(h.children=b),h}).filter(function(C){return C})}return l(s)}function K(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),u=[];function C(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return y.map(function(W,f){var h=Object(o.h)(p?p.pos:"0",f),b=X(W.key,h),n=Object(g.a)(Object(g.a)({},W),{},{parent:p,pos:h,children:null,data:W,isStart:[].concat(Object(E.a)(p?p.isStart:[]),[f===0]),isEnd:[].concat(Object(E.a)(p?p.isEnd:[]),[f===y.length-1])});return u.push(n),l===!0||O.has(b)?n.children=C(W.children||[],n):n.children=[],n})}return C(s),u}function j(s,l,O){var u;O?typeof O=="string"?u=function(p){return p[O]}:typeof O=="function"&&(u=function(p){return O(p)}):u=function(p,W){return X(p.key,W)};function C(y,p,W){var f=y?y.children:s,h=y?Object(o.h)(W.pos,p):"0";if(y){var b=u(y,h),n={node:y,index:p,pos:h,key:b,parentPos:W.node?W.pos:null,level:W.level+1};l(n)}f&&f.forEach(function(a,e){C(a,e,{node:y,pos:h,level:W?W.level+1:-1})})}C(null)}function S(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,u=l.processEntity,C=l.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,p={},W={},f={posEntities:p,keyEntities:W};return O&&(f=O(f)||f),j(s,function(h){var b=h.node,n=h.index,a=h.pos,e=h.key,c=h.parentPos,d=h.level,m={node:b,index:n,key:e,pos:a,level:d},U=X(e,a);p[a]=m,W[U]=m,m.parent=p[c],m.parent&&(m.parent.children=m.parent.children||[],m.parent.children.push(m)),u&&u(m,f)},y),C&&C(f),f}function B(s,l){var O=l.expandedKeys,u=l.selectedKeys,C=l.loadedKeys,y=l.loadingKeys,p=l.checkedKeys,W=l.halfCheckedKeys,f=l.dragOverNodeKey,h=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:C.indexOf(s)!==-1,loading:y.indexOf(s)!==-1,checked:p.indexOf(s)!==-1,halfChecked:W.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&h===0,dragOverGapTop:f===s&&h===-1,dragOverGapBottom:f===s&&h===1};return a}function D(s){var l=s.data,O=s.expanded,u=s.selected,C=s.checked,y=s.loaded,p=s.loading,W=s.halfChecked,f=s.dragOver,h=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(g.a)(Object(g.a)({},l),{},{expanded:O,selected:u,checked:C,loaded:y,loading:p,halfChecked:W,dragOver:f,dragOverGapTop:h,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(x.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(Oe,L,t){"use strict";t.d(L,"a",function(){return o});var E=t("MNnm"),g="rc-util-key";function $(X){if(X.attachTo)return X.attachTo;var P=document.querySelector("head");return P||document.body}function ne(X){var P,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(E.a)())return null;var K=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var j;K.nonce=(j=i.csp)===null||j===void 0?void 0:j.nonce}K.innerHTML=X;var S=$(i),B=S.firstChild;return i.prepend&&S.prepend?S.prepend(K):i.prepend&&B?S.insertBefore(K,B):S.appendChild(K),K}var x=new Map;function o(X,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=$(i);if(!x.has(K)){var j=ne("",i),S=j.parentNode;x.set(K,S),S.removeChild(j)}var B=Array.from(x.get(K).children).find(function(u){return u.tagName==="STYLE"&&u[g]===P});if(B){var D,s;if(((D=i.csp)===null||D===void 0?void 0:D.nonce)&&B.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;B.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return B.innerHTML!==X&&(B.innerHTML=X),B}var O=ne(X,i);return O[g]=P,O}},IBYe:function(Oe,L,t){"use strict";function E(g){return null}L.a=E},LdHM:function(Oe,L,t){"use strict";t.d(L,"b",function(){return y}),t.d(L,"a",function(){return W});var E=t("1OyB"),g=t("vuIU"),$=t("Ji7U"),ne=t("LK+K"),x=t("q1tI"),o=t("rePB"),X=t("Ff2n"),P=t("ODXe"),i=t("4IlW"),K=t("bX4T"),j=t("YrtM"),S=t("TSYQ"),B=t.n(S),D=t("+nKL"),s=t("8OUc"),l=function(I,q){var oe=I.prefixCls,fe=I.id,ee=I.flattenOptions,me=I.childrenAsData,Q=I.values,Ne=I.searchValue,Re=I.multiple,pe=I.defaultActiveFirstOption,Te=I.height,se=I.itemHeight,Le=I.notFoundContent,Ae=I.open,le=I.menuItemSelectedIcon,be=I.virtual,ke=I.onSelect,ae=I.onToggleOpen,ie=I.onActiveValue,De=I.onScroll,xe=I.onMouseEnter,ue="".concat(oe,"-item"),he=Object(j.a)(function(){return ee},[Ae,ee],function(A,M){return M[0]&&A[1]!==M[1]}),Qe=x.useRef(null),et=function(M){M.preventDefault()},tt=function(M){Qe.current&&Qe.current.scrollTo({index:M})},st=function(M){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=he.length,G=0;G<_;G+=1){var k=(M+G*T+_)%_,V=he[k],te=V.group,J=V.data;if(!te&&!J.disabled)return k}return-1},Xe=x.useState(function(){return st(0)}),bt=Object(P.a)(Xe,2),r=bt[0],N=bt[1],R=function(M){N(M);var T=he[M];if(!T){ie(null,-1);return}ie(T.data.value,M)};x.useEffect(function(){R(pe!==!1?st(0):-1)},[he.length,Ne]),x.useEffect(function(){var A=setTimeout(function(){if(!Re&&Ae&&Q.size===1){var M=Array.from(Q)[0],T=he.findIndex(function(_){var G=_.data;return G.value===M});R(T),tt(T)}});return function(){return clearTimeout(A)}},[Ae]);var w=function(M){M!==void 0&&ke(M,{selected:!Q.has(M)}),Re||ae(!1)};if(x.useImperativeHandle(q,function(){return{onKeyDown:function(M){var T=M.which;switch(T){case i.a.UP:case i.a.DOWN:{var _=0;if(T===i.a.UP?_=-1:T===i.a.DOWN&&(_=1),_!==0){var G=st(r+_,_);tt(G),R(G)}break}case i.a.ENTER:{var k=he[r];k&&!k.data.disabled?w(k.data.value):w(void 0),Ae&&M.preventDefault();break}case i.a.ESC:ae(!1)}},onKeyUp:function(){},scrollTo:function(M){tt(M)}}}),he.length===0)return x.createElement("div",{role:"listbox",id:"".concat(fe,"_list"),className:"".concat(ue,"-empty"),onMouseDown:et},Le);function z(A){var M=he[A];if(!M)return null;var T=M.data||{},_=T.value,G=T.label,k=T.children,V=Object(K.a)(T,!0),te=me?k:G;return M?x.createElement("div",Object.assign({"aria-label":typeof te=="string"?te:null},V,{key:A,role:"option",id:"".concat(fe,"_list_").concat(A),"aria-selected":Q.has(_)}),_):null}return x.createElement(x.Fragment,null,x.createElement("div",{role:"listbox",id:"".concat(fe,"_list"),style:{height:0,width:0,overflow:"hidden"}},z(r-1),z(r),z(r+1)),x.createElement(D.a,{itemKey:"key",ref:Qe,data:he,height:Te,itemHeight:se,fullHeight:!1,onMouseDown:et,onScroll:De,virtual:be,onMouseEnter:xe},function(A,M){var T,_=A.group,G=A.groupOption,k=A.data,V=k.label,te=k.key;if(_)return x.createElement("div",{className:B()(ue,"".concat(ue,"-group"))},V!==void 0?V:te);var J=k.disabled,de=k.value,Se=k.title,Ce=k.children,je=k.style,re=k.className,Ge=Object(X.a)(k,["disabled","value","title","children","style","className"]),we=Q.has(de),_e="".concat(ue,"-option"),We=B()(ue,_e,re,(T={},Object(o.a)(T,"".concat(_e,"-grouped"),G),Object(o.a)(T,"".concat(_e,"-active"),r===M&&!J),Object(o.a)(T,"".concat(_e,"-disabled"),J),Object(o.a)(T,"".concat(_e,"-selected"),we),T)),$e=me?Ce:V,ye=!le||typeof le=="function"||we;return x.createElement("div",Object.assign({},Ge,{"aria-selected":we,className:We,title:Se,onMouseMove:function(){if(r===M||J)return;R(M)},onClick:function(){J||w(de)},style:je}),x.createElement("div",{className:"".concat(_e,"-content")},$e||de),x.isValidElement(le)||we,ye&&x.createElement(s.a,{className:"".concat(ue,"-option-state"),customizeIcon:le,customizeIconProps:{isSelected:we}},we?"\u2713":null))}))},O=x.forwardRef(l);O.displayName="OptionList";var u=O,C=function(){return null};C.isSelectOption=!0;var y=C,p=function(){return null};p.isSelectOptGroup=!0;var W=p,f=t("VTBJ"),h=t("Zm9Q");function b(Y){var I=Y.key,q=Y.props,oe=q.children,fe=q.value,ee=Object(X.a)(q,["children","value"]);return Object(f.a)({key:I,value:fe!==void 0?fe:I,children:oe},ee)}function n(Y){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(h.a)(Y).map(function(q,oe){if(!x.isValidElement(q)||!q.type)return null;var fe=q.type.isSelectOptGroup,ee=q.key,me=q.props,Q=me.children,Ne=Object(X.a)(me,["children"]);return I||!fe?b(q):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(ee===null?oe:ee,"__"),label:ee},Ne),{},{options:n(Q)})}).filter(function(q){return q})}var a=t("2Qr1"),e=t("qNPg"),c=t("U8pU"),d=t("Kwbf"),m=t("WKfj");function U(Y){var I=Y.mode,q=Y.options,oe=Y.children,fe=Y.backfill,ee=Y.allowClear,me=Y.placeholder,Q=Y.getInputElement,Ne=Y.showSearch,Re=Y.onSearch,pe=Y.defaultOpen,Te=Y.autoFocus,se=Y.labelInValue,Le=Y.value,Ae=Y.inputValue,le=Y.optionLabelProp,be=I==="multiple"||I==="tags",ke=Ne!==void 0?Ne:be||I==="combobox",ae=q||n(oe);if(Object(d.a)(I!=="tags"||ae.every(function(ue){return!ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),I==="tags"||I==="combobox"){var ie=ae.some(function(ue){return ue.options?ue.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in ue?ue.value:ue.key)=="number"});Object(d.a)(!ie,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(I!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(I==="combobox"||!fe,"`backfill` only works with `combobox` mode."),Object(d.a)(I==="combobox"||!Q,"`getInputElement` only work with `combobox` mode."),Object(d.b)(I!=="combobox"||!Q||!ee||!me,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Re&&!ke&&I!=="combobox"&&I!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!pe||Te,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Le!=null){var De=Object(m.d)(Le);Object(d.a)(!se||De.every(function(ue){return Object(c.a)(ue)==="object"&&("key"in ue||"value"in ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!be||Array.isArray(Le),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var xe=null;Object(h.a)(oe).some(function(ue){if(!x.isValidElement(ue)||!ue.type)return!1;var he=ue.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Qe=Object(h.a)(ue.props.children).every(function(et){return!x.isValidElement(et)||!ue.type||et.type.isSelectOption?!0:(xe=et.type,!1)});return!Qe}return xe=he,!0}),xe&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xe.displayName||xe.name||xe,"`.")),Object(d.a)(Ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var v=U,F=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:v,fillOptionsWithMissingValue:a.a}),H=function(Y){Object($.a)(q,Y);var I=Object(ne.a)(q);function q(){var oe;return Object(E.a)(this,q),oe=I.apply(this,arguments),oe.selectRef=x.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(g.a)(q,[{key:"render",value:function(){return x.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),q}(x.Component);H.Option=y,H.OptGroup=W;var Z=H,ge=L.c=Z},NvD2:function(Oe,L,t){"use strict";t.d(L,"a",function(){return o});var E=t("Kwbf");function g(X,P){var i=new Set;return X.forEach(function(K){P.has(K)||i.add(K)}),i}function $(X){var P=X||{},i=P.disabled,K=P.disableCheckbox,j=P.checkable;return!!(i||K)||j===!1}function ne(X,P,i,K){for(var j=new Set(X),S=new Set,B=0;B<=i;B+=1){var D=P.get(B)||new Set;D.forEach(function(u){var C=u.key,y=u.node,p=u.children,W=p===void 0?[]:p;j.has(C)&&!K(y)&&W.filter(function(f){return!K(f.node)}).forEach(function(f){j.add(f.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var O=P.get(l)||new Set;O.forEach(function(u){var C=u.parent,y=u.node;if(K(y)||!u.parent||s.has(u.parent.key))return;if(K(u.parent.node)){s.add(C.key);return}var p=!0,W=!1;(C.children||[]).filter(function(f){return!K(f.node)}).forEach(function(f){var h=f.key,b=j.has(h);p&&!b&&(p=!1),!W&&(b||S.has(h))&&(W=!0)}),p&&j.add(C.key),W&&S.add(C.key),s.add(C.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(g(S,j))}}function x(X,P,i,K,j){for(var S=new Set(X),B=new Set(P),D=0;D<=K;D+=1){var s=i.get(D)||new Set;s.forEach(function(C){var y=C.key,p=C.node,W=C.children,f=W===void 0?[]:W;!S.has(y)&&!B.has(y)&&!j(p)&&f.filter(function(h){return!j(h.node)}).forEach(function(h){S.delete(h.key)})})}B=new Set;for(var l=new Set,O=K;O>=0;O-=1){var u=i.get(O)||new Set;u.forEach(function(C){var y=C.parent,p=C.node;if(j(p)||!C.parent||l.has(C.parent.key))return;if(j(C.parent.node)){l.add(y.key);return}var W=!0,f=!1;(y.children||[]).filter(function(h){return!j(h.node)}).forEach(function(h){var b=h.key,n=S.has(b);W&&!n&&(W=!1),!f&&(n||B.has(b))&&(f=!0)}),W||S.delete(y.key),f&&B.add(y.key),l.add(y.key)})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(g(B,S))}}function o(X,P,i,K){var j=[],S;K?S=K:S=$;var B=new Set(X.filter(function(O){var u=!!i[O];return u||j.push(O),u})),D=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],C=u.level,y=D.get(C);y||(y=new Set,D.set(C,y)),y.add(u),s=Math.max(s,C)}),Object(E.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return P===!0?l=ne(B,D,s,S):l=x(B,P.halfCheckedKeys,D,s,S),l}},OZM5:function(Oe,L,t){"use strict";t.d(L,"b",function(){return K}),t.d(L,"a",function(){return j}),t.d(L,"k",function(){return S}),t.d(L,"h",function(){return B}),t.d(L,"i",function(){return D}),t.d(L,"g",function(){return s}),t.d(L,"c",function(){return l}),t.d(L,"d",function(){return O}),t.d(L,"j",function(){return y}),t.d(L,"e",function(){return p}),t.d(L,"f",function(){return W});var E=t("KQm4"),g=t("U8pU"),$=t("Ff2n"),ne=t("q1tI"),x=t.n(ne),o=t("Kwbf"),X=t("WaYH"),P=.25,i=2;function K(f,h){var b=f.slice(),n=b.indexOf(h);return n>=0&&b.splice(n,1),b}function j(f,h){var b=f.slice();return b.indexOf(h)===-1&&b.push(h),b}function S(f){return f.split("-")}function B(f,h){return"".concat(f,"-").concat(h)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,h){var b=[f],n=h[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(c){var d=c.key,m=c.children;b.push(d),a(m)})}return a(n.children),b}function l(f,h){var b=f.clientY,n=h.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,c=n.height,d=Math.max(c*P,i);return b<=a+d?-1:b>=e-d?1:0}function O(f,h){if(!f)return;var b=h.multiple;return b?f.slice():f.length?[f[0]]:f}var u=function(h){return h};function C(f,h){if(!f)return[];var b=h||{},n=b.processProps,a=n===void 0?u:n,e=Array.isArray(f)?f:[f];return e.map(function(c){var d=c.children,m=Object($.a)(c,["children"]),U=C(d,h);return x.a.createElement(X.a,Object.assign({},a(m)),U)})}function y(f){if(!f)return null;var h;if(Array.isArray(f))h={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(g.a)(f)==="object")h={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return h}function p(f,h){var b=new Set;function n(a){if(b.has(a))return;var e=h[a];if(!e)return;b.add(a);var c=e.parent,d=e.node;if(d.disabled)return;c&&n(c.key)}return(f||[]).forEach(function(a){n(a)}),Object(E.a)(b)}function W(f){var h={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(h[b]=f[b])}),h}},Rw3n:function(Oe,L,t){Oe.exports={flex_box_center:"flex_box_center___2Ey6N",flex_space_between:"flex_space_between___1oJXW",flex_box_vertical_center:"flex_box_vertical_center___1xNWT",flex_box_center_end:"flex_box_center_end___2peJt",flex_box_column:"flex_box_column___357v_",title:"title___3T4Q7",statisticsWrp:"statisticsWrp___1rIgG",infoWrp:"infoWrp___1Mhp7",warp_task_hide:"warp_task_hide___1DgmR",task_hide:"task_hide___1hGaZ"}},"SA+Z":function(Oe,L,t){var E=t("wTVA"),g=t("EbDI"),$=t("ZhPi"),ne=t("wkBT");function x(o){return E(o)||g(o)||$(o)||ne()}Oe.exports=x,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,L,t){"use strict";var E=t("rePB"),g=t("Ff2n"),$=t("VTBJ"),ne=t("1OyB"),x=t("vuIU"),o=t("JX7q"),X=t("Ji7U"),P=t("LK+K"),i=t("q1tI"),K=t("TSYQ"),j=t.n(K),S=t("sboe"),B=t("OZM5"),D=function(h){var b=h.prefixCls,n=h.level,a=h.isStart,e=h.isEnd;if(!n)return null;for(var c="".concat(b,"-indent-unit"),d=[],m=0;m1)Object(K.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(y.length===0)return Object(K.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=y[0];if(o.isValidElement(p)&&Object(j.c)(p)){var W=p.ref;y[0]=o.cloneElement(p,{ref:Object(j.a)(W,this.setChildNode)})}return y.length===1?y[0]:y.map(function(f,h){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(B,"-").concat(h)})})}}]),O}(o.Component);D.displayName="ResizeObserver",L.a=D},wCXF:function(Oe,L,t){"use strict";t.d(L,"a",function(){return tt});var E=t("rePB"),g=t("VTBJ"),$=t("KQm4"),ne=t("U8pU"),x=t("ODXe"),o=t("q1tI"),X=t("TSYQ"),P=t.n(X),i=t("Gytx"),K=t.n(i),j=t("Kwbf"),S=t("t23M"),B=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),u=t("fyJ8"),C=t("biw7");function y(r,N,R,w,z){var A=R[r]||{},M=R[N]||{},T,_;A.fixed==="left"?T=w.left[r]:M.fixed==="right"&&(_=w.right[N]);var G=!1,k=!1,V=!1,te=!1,J=R[N+1],de=R[r-1];if(z==="rtl"){if(T!==void 0){var Se=de&&de.fixed==="left";te=!Se}else if(_!==void 0){var Ce=J&&J.fixed==="right";V=!Ce}}else if(T!==void 0){var je=J&&J.fixed==="left";G=!je}else if(_!==void 0){var re=de&&de.fixed==="right";k=!re}return{fixLeft:T,fixRight:_,lastFixLeft:G,firstFixRight:k,lastFixRight:V,firstFixLeft:te,isSticky:w.isSticky}}var p=t("sR1s");function W(r){var N=r.cells,R=r.stickyOffsets,w=r.flattenColumns,z=r.rowComponent,A=r.cellComponent,M=r.onHeaderRow,T=r.index,_=o.useContext(C.a),G=_.prefixCls,k=_.direction,V;M&&(V=M(N.map(function(J){return J.column}),T));var te=Object(p.a)(N.map(function(J){return J.column}));return o.createElement(z,Object.assign({},V),N.map(function(J,de){var Se=J.column,Ce=y(J.colStart,J.colEnd,w,R,k),je;return Se&&Se.onHeaderCell&&(je=J.column.onHeaderCell(Se)),o.createElement(u.a,Object.assign({},J,{ellipsis:Se.ellipsis,align:Se.align,component:A,prefixCls:G,key:te[de]},Ce,{additionalProps:je,rowType:"header"}))}))}W.displayName="HeaderRow";var f=W;function h(r){var N=[];function R(M,T){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;N[_]=N[_]||[];var G=T,k=M.filter(Boolean).map(function(V){var te={key:V.key,className:V.className||"",children:V.title,column:V,colStart:G},J=1,de=V.children;return de&&de.length>0&&(J=R(de,G,_+1).reduce(function(Se,Ce){return Se+Ce},0),te.hasSubColumns=!0),"colSpan"in V&&(J=V.colSpan),"rowSpan"in V&&(te.rowSpan=V.rowSpan),te.colSpan=J,te.colEnd=te.colStart+J-1,N[_].push(te),G+=J,J});return k}R(r,0);for(var w=N.length,z=function(T){N[T].forEach(function(_){!("rowSpan"in _)&&!_.hasSubColumns&&(_.rowSpan=w-T)})},A=0;A=0;T-=1){var _=N[T],G=R&&R[T],k=G&&G[a.a];(_||k||M)&&(z.unshift(o.createElement("col",Object.assign({key:T,style:{width:_,minWidth:_}},k))),M=!0)}return o.createElement("colgroup",null,z)}var c=e;function d(r,N){return Object(o.useMemo)(function(){for(var R=[],w=0;w1?Ve-1:0),ct=1;ct=V&&(Me=V-te),M({scrollLeft:Me/V*(k+2)}),re.current.x=ce.pageX},ze=function(){var ce=Object(De.b)(A.current).top,Ke=ce+A.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;Ke-Object(B.a)()<=He||ce>=He-T?je(function(Ye){return Object(g.a)(Object(g.a)({},Ye),{},{isHiddenScrollBar:!0})}):je(function(Ye){return Object(g.a)(Object(g.a)({},Ye),{},{isHiddenScrollBar:!1})})},Ue=function(ce){je(function(Ke){return Object(g.a)(Object(g.a)({},Ke),{},{scrollLeft:ce/k*V||0})})};return o.useImperativeHandle(R,function(){return{setScrollLeft:Ue}}),o.useEffect(function(){var Pe=Object(ie.a)(document.body,"mouseup",$e,!1),ce=Object(ie.a)(document.body,"mousemove",Je,!1);return ze(),function(){Pe.remove(),ce.remove()}},[te,_e]),o.useEffect(function(){var Pe=Object(ie.a)(window,"scroll",ze,!1),ce=Object(ie.a)(window,"resize",ze,!1);return function(){Pe.remove(),ce.remove()}},[]),o.useEffect(function(){Ce.isHiddenScrollBar||je(function(Pe){var ce,Ke;return Object(g.a)(Object(g.a)({},Pe),{},{scrollLeft:A.current.scrollLeft/((ce=A.current)===null||ce===void 0?void 0:ce.scrollWidth)*((Ke=A.current)===null||Ke===void 0?void 0:Ke.clientWidth)})})},[Ce.isHiddenScrollBar]),k<=V||!te||Ce.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:V,bottom:T},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:ye,ref:J,className:P()("".concat(G,"-sticky-scroll-bar"),Object(E.a)({},"".concat(G,"-sticky-scroll-bar-active"),_e)),style:{width:"".concat(te,"px"),transform:"translate3d(".concat(Ce.scrollLeft,"px, 0, 0)")}}))},ue=o.forwardRef(xe);function he(r,N){return o.useMemo(function(){var R=!!r;return{isSticky:R,stickyClassName:R?"".concat(N,"-sticky-header"):"",offsetHeader:Object(ne.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(ne.a)(r)==="object"&&r.offsetScroll||0}},[r,N])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var N=r.children;return N},function(r,N){return K()(r.props,N.props)?r.pingLeft!==N.pingLeft||r.pingRight!==N.pingRight:!1});function Xe(r){var N,R=r.prefixCls,w=r.className,z=r.rowClassName,A=r.style,M=r.data,T=r.rowKey,_=r.scroll,G=r.tableLayout,k=r.direction,V=r.title,te=r.footer,J=r.summary,de=r.id,Se=r.showHeader,Ce=r.components,je=r.emptyText,re=r.onRow,Ge=r.onHeaderRow,we=r.internalHooks,_e=r.transformColumns,We=r.internalRefs,$e=r.sticky,ye=M||Qe,Je=!!ye.length,ze=o.useState(0),Ue=Object(x.a)(ze,2),Pe=Ue[0],ce=Ue[1];o.useEffect(function(){ce(Object(B.a)())});var Ke=o.useMemo(function(){return Object(p.c)(Ce,{})},[Ce]),He=o.useCallback(function(ve,Ee){return Object(p.b)(Ke,ve)||Ee},[Ke]),Ye=o.useMemo(function(){return typeof T=="function"?T:function(ve){var Ee=ve&&ve[T];return Ee}},[T]),Me=Object(a.c)(r),jt=Me.expandIcon,Nt=Me.expandedRowKeys,Rt=Me.defaultExpandedRowKeys,rt=Me.defaultExpandAllRows,it=Me.expandedRowRender,ft=Me.onExpand,mt=Me.onExpandedRowsChange,St=Me.expandRowByClick,nt=Me.rowExpandable,Et=Me.expandIconColumnIndex,pt=Me.expandedRowClassName,Kt=Me.childrenColumnName,Tt=Me.indentSize,ht=jt||ke,gt=Kt||"children",Pt=o.useMemo(function(){return it?"row":r.expandable&&we===tt&&r.expandable.__PARENT_RENDER_ICON__||ye.some(function(ve){return ve&&Object(ne.a)(ve)==="object"&&ve[gt]})?"nest":!1},[!!it,ye]),Dt=o.useState(function(){return Rt||(rt?ae(ye,Ye,gt):[])}),Fe=Object(x.a)(Dt,2),Ze=Fe[0],at=Fe[1],Ve=o.useMemo(function(){return new Set(Nt||Ze||[])},[Nt,Ze]),dt=o.useCallback(function(ve){var Ee=Ye(ve,ye.indexOf(ve)),Be,qe=Ve.has(Ee);qe?(Ve.delete(Ee),Be=Object($.a)(Ve)):Be=[].concat(Object($.a)(Ve),[Ee]),at(Be),ft&&ft(!qe,ve),mt&&mt(Be)},[Ye,Ve,ye,ft,mt]),ct=o.useState(0),Mt=Object(x.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(Q.b)(Object(g.a)(Object(g.a)(Object(g.a)({},r),Me),{},{expandable:!!it,expandedKeys:Ve,getRowKey:Ye,onTriggerExpand:dt,expandIcon:ht,expandIconColumnIndex:Et,direction:k}),we===tt?_e:null),Yt=Object(x.a)(vn,2),kt=Yt[0],Ie=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Ie}},[kt,Ie]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(x.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(x.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(x.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Ie),an=jn.map(function(ve){return On.get(ve)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Le(on,Ie.length,k),ot=_&&Object(p.d)(_.y),lt=_&&Object(p.d)(_.x),yt=lt&&Ie.some(function(ve){var Ee=ve.fixed;return Ee}),rn=o.useRef(),wt=he($e,R),Ot=wt.isSticky,Nn=wt.offsetHeader,Rn=wt.offsetScroll,Sn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:_.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:_.x===!0?"auto":_.x,minWidth:"100%"});var ln=o.useCallback(function(ve,Ee){xn(function(Be){var qe=new Map(Be);return qe.set(ve,Ee),qe})},[]),Tn=Te(null),sn=Object(x.a)(Tn,2),Pn=sn[0],dn=sn[1];function Ft(ve,Ee){if(!Ee)return;typeof Ee=="function"?Ee(ve):Ee.scrollLeft!==ve&&(Ee.scrollLeft=ve)}var vt=function(Ee){var Be=Ee.currentTarget,qe=Ee.scrollLeft,xt=typeof qe=="number"?qe:Be.scrollLeft,hn=Be||et;if(!dn()||dn()===hn){var Jt;Pn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Be){var Un=Be.scrollWidth,In=Be.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(g.a)(l),Object(g.a)(j(y).map(function(p){return Object($.a)({fixed:C},p)}))):[].concat(Object(g.a)(l),[Object($.a)(Object($.a)({},O),{},{fixed:C})])},[])}function S(s){for(var l=!0,O=0;O=0;y-=1){var p=s[y];if(C&&p.fixed!=="right")C=!1;else if(!C&&p.fixed==="right"){Object(X.a)(!1,"Index ".concat(y+1," of `columns` missing `fixed='right'` prop."));break}}}function B(s){return s.map(function(l){var O=l.fixed,u=Object(ne.a)(l,["fixed"]),C=O;return O==="left"?C="right":O==="right"&&(C="left"),Object($.a)({fixed:C},u)})}function D(s,l){var O=s.prefixCls,u=s.columns,C=s.children,y=s.expandable,p=s.expandedKeys,W=s.getRowKey,f=s.onTriggerExpand,h=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,c=x.useMemo(function(){return u||K(C)},[u,C]),d=x.useMemo(function(){if(y){var v,F=n||0,H=c[F],Z=(v={},Object(E.a)(v,i.a,{className:"".concat(O,"-expand-icon-col")}),Object(E.a)(v,"title",""),Object(E.a)(v,"fixed",H?H.fixed:null),Object(E.a)(v,"className","".concat(O,"-row-expand-icon-cell")),Object(E.a)(v,"render",function(I,q,oe){var fe=W(q,oe),ee=p.has(fe),me=b?b(q):!0,Q=h({prefixCls:O,expanded:ee,expandable:me,record:q,onExpand:f});return e?x.createElement("span",{onClick:function(Re){return Re.stopPropagation()}},Q):Q}),v),ge=c.slice();return F>=0&&ge.splice(F,0,Z),ge}return c},[y,c,W,p,h,a]),m=x.useMemo(function(){var v=d;return l&&(v=l(v)),v.length||(v=[{render:function(){return null}}]),v},[l,d,a]),U=x.useMemo(function(){return a==="rtl"?B(j(m)):j(m)},[m,a]);return[m,U]}L.b=D},"y0+3":function(Oe,L,t){"use strict";t.d(L,"a",function(){return j}),t.d(L,"b",function(){return B});var E=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function ne(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function x(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in g||(g[s]=E.test(s)),g[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,O=ne(D);return s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:x(D,s,O[s]||D.style[s])}function X(D,s,l){var O=arguments.length;if(s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&E.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&X(D,u,s[u]);return ne(D)}function P(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function i(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function K(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function j(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function S(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function B(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.f8fc36f1.async.js b/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.f8fc36f1.async.js index 9c110d2bd0..974245724a 100644 --- a/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.f8fc36f1.async.js +++ b/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.f8fc36f1.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[111,8],{"6+eU":function(ge,_,t){"use strict";t.d(_,"a",function(){return f});var g=t("wx14"),C=t("rePB"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("Ji7U"),F=t("LK+K"),P=t("q1tI"),i=t.n(P),O=t("TSYQ"),T=t.n(O),B=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=T()(a,"".concat(a,"-").concat(b.page),(n={},Object(C.a)(n,"".concat(a,"-active"),b.active),Object(C.a)(n,b.className,!!b.className),Object(C.a)(n,"".concat(a,"-disabled"),!b.page),n)),c=function(){b.onClick(b.page)},d=function(I){b.onKeyPress(I,b.onClick,b.page)};return i.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:c,onKeyPress:d,tabIndex:"0"},b.itemRender(b.page,"page",i.a.createElement("a",{rel:"nofollow"},b.page)))},k=B,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(F.a)(n);function n(){var a;Object(q.a)(this,n);for(var e=arguments.length,c=new Array(e),d=0;d=0||m.relatedTarget.className.indexOf("".concat(V,"-next"))>=0))return;a.setState({goInputText:""}),W(a.getValidValue())},a.go=function(m){var I=a.state.goInputText;if(I==="")return;(m.keyCode===D.ENTER||m.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(j.a)(n,[{key:"getValidValue",value:function(){var e=this.state,c=e.goInputText,d=e.current;return!c||isNaN(c)?d:Number(c)}},{key:"getPageSizeOptions",value:function(){var e=this.props,c=e.pageSize,d=e.pageSizeOptions;return d.some(function(m){return m.toString()===c.toString()})?d:d.concat([c.toString()]).sort(function(m,I){var p=isNaN(Number(m))?0:Number(m),W=isNaN(Number(I))?0:Number(I);return p-W})}},{key:"render",value:function(){var e=this,c=this.props,d=c.pageSize,m=c.locale,I=c.rootPrefixCls,p=c.changeSize,W=c.quickGo,V=c.goButton,J=c.selectComponentClass,ne=c.buildOptionText,Q=c.selectPrefixCls,A=c.disabled,ee=this.state.goInputText,oe="".concat(I,"-options"),ue=J,re=null,Ce=null,Z=null;if(!p&&!W)return null;var Re=this.getPageSizeOptions();if(p&&ue){var je=Re.map(function(ve,Me){return i.a.createElement(ue.Option,{key:Me,value:ve.toString()},(ne||e.buildOptionText)(ve))});re=i.a.createElement(ue,{disabled:A,prefixCls:Q,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||Re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Me){return Me.parentNode}},je)}return W&&(V&&(Z=typeof V=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(oe,"-quick-jumper-button")},m.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},V)),Ce=i.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},m.jump_to,i.a.createElement("input",{disabled:A,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),m.page,Z)),i.a.createElement("li",{className:"".concat(oe)},re,Ce)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,x=t("N2Kk");function u(){}function E(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function y(v,b,n){return n}function h(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var H=function(v){Object(o.a)(n,v);var b=Object(F.a)(n);function n(a){var e;Object(q.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(p,W){var V=e.props.prefixCls,J=p||i.a.createElement("button",{type:"button","aria-label":W,className:"".concat(V,"-item-link")});return typeof p=="function"&&(J=i.a.createElement(p,Object(G.a)({},e.props))),J},e.savePaginationNode=function(p){e.paginationNode=p},e.isValid=function(p){return E(p)&&p!==e.state.current},e.shouldDisplayQuickJumper=function(){var p=e.props,W=p.showQuickJumper,V=p.pageSize,J=p.total;return J<=V?!1:W},e.handleKeyDown=function(p){(p.keyCode===D.ARROW_UP||p.keyCode===D.ARROW_DOWN)&&p.preventDefault()},e.handleKeyUp=function(p){var W=e.getValidValue(p),V=e.state.currentInputValue;W!==V&&e.setState({currentInputValue:W}),p.keyCode===D.ENTER?e.handleChange(W):p.keyCode===D.ARROW_UP?e.handleChange(W-1):p.keyCode===D.ARROW_DOWN&&e.handleChange(W+1)},e.changePageSize=function(p){var W=e.state.current,V=h(p,e.state,e.props);W=W>V?V:W,V===0&&(W=e.state.current),typeof p=="number"&&("pageSize"in e.props||e.setState({pageSize:p}),"current"in e.props||e.setState({current:W,currentInputValue:W})),e.props.onShowSizeChange(W,p),"onChange"in e.props&&e.props.onChange&&e.props.onChange(W,p)},e.handleChange=function(p){var W=e.props.disabled,V=p;if(e.isValid(V)&&!W){var J=h(void 0,e.state,e.props);V>J?V=J:V<1&&(V=1),"current"in e.props||e.setState({current:V,currentInputValue:V});var ne=e.state.pageSize;return e.props.onChange(V,ne),V}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?V-2:0),ne=2;ne=d?I=d:I=Number(c),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,c=e.showSizeChanger,d=e.total,m=e.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:d>m}},{key:"renderPrev",value:function(e){var c=this.props,d=c.prevIcon,m=c.itemRender,I=m(e,"prev",this.getItemIcon(d,"prev page")),p=!this.hasPrev();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:p}):I}},{key:"renderNext",value:function(e){var c=this.props,d=c.nextIcon,m=c.itemRender,I=m(e,"next",this.getItemIcon(d,"next page")),p=!this.hasNext();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:p}):I}},{key:"render",value:function(){var e=this,c=this.props,d=c.prefixCls,m=c.className,I=c.style,p=c.disabled,W=c.hideOnSinglePage,V=c.total,J=c.locale,ne=c.showQuickJumper,Q=c.showLessItems,A=c.showTitle,ee=c.showTotal,oe=c.simple,ue=c.itemRender,re=c.showPrevNextJumpers,Ce=c.jumpPrevIcon,Z=c.jumpNextIcon,Re=c.selectComponentClass,je=c.selectPrefixCls,ve=c.pageSizeOptions,Me=this.state,ie=Me.current,Ae=Me.pageSize,Ue=Me.currentInputValue;if(W===!0&&V<=Ae)return null;var de=h(void 0,this.state,this.props),be=[],Be=null,we=null,ke=null,Ye=null,Le=null,ce=ne&&ne.goButton,fe=Q?1:2,Qe=ie-1>0?ie-1:0,et=ie+1=fe*2&&ie!==1+2&&(be[0]=Object(P.cloneElement)(be[0],{className:"".concat(d,"-item-after-jump-prev")}),be.unshift(Be)),de-ie>=fe*2&&ie!==de-2&&(be[be.length-1]=Object(P.cloneElement)(be[be.length-1],{className:"".concat(d,"-item-before-jump-next")}),be.push(we)),R!==1&&be.unshift(ke),U!==de&&be.push(Ye)}var M=null;ee&&(M=i.a.createElement("li",{className:"".concat(d,"-total-text")},ee(V,[V===0?0:(ie-1)*Ae+1,ie*Ae>V?V:ie*Ae])));var S=!this.hasPrev()||!de,L=!this.hasNext()||!de;return i.a.createElement("ul",Object(g.a)({className:T()(d,m,Object(C.a)({},"".concat(d,"-disabled"),p)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},tt),M,i.a.createElement("li",{title:A?J.prev_page:null,onClick:this.prev,tabIndex:S?null:0,onKeyPress:this.runIfEnterPrev,className:T()("".concat(d,"-prev"),Object(C.a)({},"".concat(d,"-disabled"),S)),"aria-disabled":S},this.renderPrev(Qe)),be,i.a.createElement("li",{title:A?J.next_page:null,onClick:this.next,tabIndex:L?null:0,onKeyPress:this.runIfEnterNext,className:T()("".concat(d,"-next"),Object(C.a)({},"".concat(d,"-disabled"),L)),"aria-disabled":L},this.renderNext(et)),i.a.createElement(l,{disabled:p,locale:J,rootPrefixCls:d,selectComponentClass:Re,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Ae,pageSizeOptions:ve,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ce}))}}],[{key:"getDerivedStateFromProps",value:function(e,c){var d={};if("current"in e&&(d.current=e.current,e.current!==c.current&&(d.currentInputValue=d.current)),"pageSize"in e&&e.pageSize!==c.pageSize){var m=c.current,I=h(e.pageSize,c,e);m=m>I?I:m,"current"in e||(d.current=m,d.currentInputValue=m),d.pageSize=e.pageSize}return d}}]),n}(i.a.Component);H.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:x.a,style:{},itemRender:y,totalBoundaryShowSizeChanger:50};var f=H},"6RRn":function(ge,_,t){"use strict";var g=t("wCXF"),C=t("n6Qo");t.d(_,"b",function(){return C.a});var G=t("IBYe"),q=t("6eGT"),j=t("hW8S");t.d(_,"a",function(){return j.a}),_.c=g.b},"6eGT":function(ge,_,t){"use strict";function g(C){return null}_.a=g},"815F":function(ge,_,t){"use strict";t.d(_,"e",function(){return F}),t.d(_,"c",function(){return i}),t.d(_,"d",function(){return O}),t.d(_,"a",function(){return B}),t.d(_,"f",function(){return k}),t.d(_,"b",function(){return D});var g=t("KQm4"),C=t("VTBJ"),G=t("Ff2n"),q=t("Zm9Q"),j=t("Kwbf"),o=t("OZM5");function F(s,l){return s!=null?s:l}function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function x(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(y){var h=y.key,H=y.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(E).concat(h,"]"));var f=String(h);Object(j.a)(!l.has(f)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),x(H,"".concat(E).concat(f," > "))})}x(s)}function i(s){function l(x){var u=Object(q.a)(x);return u.map(function(E){if(!Object(o.i)(E))return Object(j.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var y=E.key,h=E.props,H=h.children,f=Object(G.a)(h,["children"]),v=Object(C.a)({key:y},f),b=l(H);return b.length&&(v.children=b),v}).filter(function(E){return E})}return l(s)}function O(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(l===!0?[]:l),u=[];function E(y){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return y.map(function(H,f){var v=Object(o.h)(h?h.pos:"0",f),b=F(H.key,v),n=Object(C.a)(Object(C.a)({},H),{},{parent:h,pos:v,children:null,data:H,isStart:[].concat(Object(g.a)(h?h.isStart:[]),[f===0]),isEnd:[].concat(Object(g.a)(h?h.isEnd:[]),[f===y.length-1])});return u.push(n),l===!0||x.has(b)?n.children=E(H.children||[],n):n.children=[],n})}return E(s),u}function T(s,l,x){var u;x?typeof x=="string"?u=function(h){return h[x]}:typeof x=="function"&&(u=function(h){return x(h)}):u=function(h,H){return F(h.key,H)};function E(y,h,H){var f=y?y.children:s,v=y?Object(o.h)(H.pos,h):"0";if(y){var b=u(y,v),n={node:y,index:h,pos:v,key:b,parentPos:H.node?H.pos:null,level:H.level+1};l(n)}f&&f.forEach(function(a,e){E(a,e,{node:y,pos:v,level:H?H.level+1:-1})})}E(null)}function B(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=l.initWrapper,u=l.processEntity,E=l.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,h={},H={},f={posEntities:h,keyEntities:H};return x&&(f=x(f)||f),T(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,c=v.parentPos,d=v.level,m={node:b,index:n,key:e,pos:a,level:d},I=F(e,a);h[a]=m,H[I]=m,m.parent=h[c],m.parent&&(m.parent.children=m.parent.children||[],m.parent.children.push(m)),u&&u(m,f)},y),E&&E(f),f}function k(s,l){var x=l.expandedKeys,u=l.selectedKeys,E=l.loadedKeys,y=l.loadingKeys,h=l.checkedKeys,H=l.halfCheckedKeys,f=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:x.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:E.indexOf(s)!==-1,loading:y.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:H.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&v===0,dragOverGapTop:f===s&&v===-1,dragOverGapBottom:f===s&&v===1};return a}function D(s){var l=s.data,x=s.expanded,u=s.selected,E=s.checked,y=s.loaded,h=s.loading,H=s.halfChecked,f=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(C.a)(Object(C.a)({},l),{},{expanded:x,selected:u,checked:E,loaded:y,loading:h,halfChecked:H,dragOver:f,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(ge,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("MNnm"),C="rc-util-key";function G(F){if(F.attachTo)return F.attachTo;var P=document.querySelector("head");return P||document.body}function q(F){var P,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(g.a)())return null;var O=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var T;O.nonce=(T=i.csp)===null||T===void 0?void 0:T.nonce}O.innerHTML=F;var B=G(i),k=B.firstChild;return i.prepend&&B.prepend?B.prepend(O):i.prepend&&k?B.insertBefore(O,k):B.appendChild(O),O}var j=new Map;function o(F,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=G(i);if(!j.has(O)){var T=q("",i),B=T.parentNode;j.set(O,B),B.removeChild(T)}var k=Array.from(j.get(O).children).find(function(u){return u.tagName==="STYLE"&&u[C]===P});if(k){var D,s;if(((D=i.csp)===null||D===void 0?void 0:D.nonce)&&k.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;k.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return k.innerHTML!==F&&(k.innerHTML=F),k}var x=q(F,i);return x[C]=P,x}},IBYe:function(ge,_,t){"use strict";function g(C){return null}_.a=g},LdHM:function(ge,_,t){"use strict";t.d(_,"b",function(){return y}),t.d(_,"a",function(){return H});var g=t("1OyB"),C=t("vuIU"),G=t("Ji7U"),q=t("LK+K"),j=t("q1tI"),o=t("rePB"),F=t("Ff2n"),P=t("ODXe"),i=t("4IlW"),O=t("bX4T"),T=t("YrtM"),B=t("TSYQ"),k=t.n(B),D=t("+nKL"),s=t("8OUc"),l=function(A,ee){var oe=A.prefixCls,ue=A.id,re=A.flattenOptions,Ce=A.childrenAsData,Z=A.values,Re=A.searchValue,je=A.multiple,ve=A.defaultActiveFirstOption,Me=A.height,ie=A.itemHeight,Ae=A.notFoundContent,Ue=A.open,de=A.menuItemSelectedIcon,be=A.virtual,Be=A.onSelect,we=A.onToggleOpen,ke=A.onActiveValue,Ye=A.onScroll,Le=A.onMouseEnter,ce="".concat(oe,"-item"),fe=Object(T.a)(function(){return re},[Ue,re],function(w,M){return M[0]&&w[1]!==M[1]}),Qe=j.useRef(null),et=function(M){M.preventDefault()},tt=function(M){Qe.current&&Qe.current.scrollTo({index:M})},st=function(M){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,L=fe.length,$=0;$1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Q).map(function(ee,oe){if(!j.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,re=ee.key,Ce=ee.props,Z=Ce.children,Re=Object(F.a)(Ce,["children"]);return A||!ue?b(ee):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(re===null?oe:re,"__"),label:re},Re),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),c=t("U8pU"),d=t("Kwbf"),m=t("WKfj");function I(Q){var A=Q.mode,ee=Q.options,oe=Q.children,ue=Q.backfill,re=Q.allowClear,Ce=Q.placeholder,Z=Q.getInputElement,Re=Q.showSearch,je=Q.onSearch,ve=Q.defaultOpen,Me=Q.autoFocus,ie=Q.labelInValue,Ae=Q.value,Ue=Q.inputValue,de=Q.optionLabelProp,be=A==="multiple"||A==="tags",Be=Re!==void 0?Re:be||A==="combobox",we=ee||n(oe);if(Object(d.a)(A!=="tags"||we.every(function(ce){return!ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var ke=we.some(function(ce){return ce.options?ce.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in ce?ce.value:ce.key)=="number"});Object(d.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(A!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(A==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(d.a)(A==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(d.b)(A!=="combobox"||!Z||!re||!Ce,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!Be&&A!=="combobox"&&A!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!ve||Me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var Ye=Object(m.d)(Ae);Object(d.a)(!ie||Ye.every(function(ce){return Object(c.a)(ce)==="object"&&("key"in ce||"value"in ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!be||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var Le=null;Object(v.a)(oe).some(function(ce){if(!j.isValidElement(ce)||!ce.type)return!1;var fe=ce.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Qe=Object(v.a)(ce.props.children).every(function(et){return!j.isValidElement(et)||!ce.type||et.type.isSelectOption?!0:(Le=et.type,!1)});return!Qe}return Le=fe,!0}),Le&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(d.a)(Ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var p=I,W=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:p,fillOptionsWithMissingValue:a.a}),V=function(Q){Object(G.a)(ee,Q);var A=Object(q.a)(ee);function ee(){var oe;return Object(g.a)(this,ee),oe=A.apply(this,arguments),oe.selectRef=j.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(C.a)(ee,[{key:"render",value:function(){return j.createElement(W,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);V.Option=y,V.OptGroup=H;var J=V,ne=_.c=J},NvD2:function(ge,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("Kwbf");function C(F,P){var i=new Set;return F.forEach(function(O){P.has(O)||i.add(O)}),i}function G(F){var P=F||{},i=P.disabled,O=P.disableCheckbox,T=P.checkable;return!!(i||O)||T===!1}function q(F,P,i,O){for(var T=new Set(F),B=new Set,k=0;k<=i;k+=1){var D=P.get(k)||new Set;D.forEach(function(u){var E=u.key,y=u.node,h=u.children,H=h===void 0?[]:h;T.has(E)&&!O(y)&&H.filter(function(f){return!O(f.node)}).forEach(function(f){T.add(f.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var x=P.get(l)||new Set;x.forEach(function(u){var E=u.parent,y=u.node;if(O(y)||!u.parent||s.has(u.parent.key))return;if(O(u.parent.node)){s.add(E.key);return}var h=!0,H=!1;(E.children||[]).filter(function(f){return!O(f.node)}).forEach(function(f){var v=f.key,b=T.has(v);h&&!b&&(h=!1),!H&&(b||B.has(v))&&(H=!0)}),h&&T.add(E.key),H&&B.add(E.key),s.add(E.key)})}return{checkedKeys:Array.from(T),halfCheckedKeys:Array.from(C(B,T))}}function j(F,P,i,O,T){for(var B=new Set(F),k=new Set(P),D=0;D<=O;D+=1){var s=i.get(D)||new Set;s.forEach(function(E){var y=E.key,h=E.node,H=E.children,f=H===void 0?[]:H;!B.has(y)&&!k.has(y)&&!T(h)&&f.filter(function(v){return!T(v.node)}).forEach(function(v){B.delete(v.key)})})}k=new Set;for(var l=new Set,x=O;x>=0;x-=1){var u=i.get(x)||new Set;u.forEach(function(E){var y=E.parent,h=E.node;if(T(h)||!E.parent||l.has(E.parent.key))return;if(T(E.parent.node)){l.add(y.key);return}var H=!0,f=!1;(y.children||[]).filter(function(v){return!T(v.node)}).forEach(function(v){var b=v.key,n=B.has(b);H&&!n&&(H=!1),!f&&(n||k.has(b))&&(f=!0)}),H||B.delete(y.key),f&&k.add(y.key),l.add(y.key)})}return{checkedKeys:Array.from(B),halfCheckedKeys:Array.from(C(k,B))}}function o(F,P,i,O){var T=[],B;O?B=O:B=G;var k=new Set(F.filter(function(x){var u=!!i[x];return u||T.push(x),u})),D=new Map,s=0;Object.keys(i).forEach(function(x){var u=i[x],E=u.level,y=D.get(E);y||(y=new Set,D.set(E,y)),y.add(u),s=Math.max(s,E)}),Object(g.a)(!T.length,"Tree missing follow keys: ".concat(T.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var l;return P===!0?l=q(k,D,s,B):l=j(k,P.halfCheckedKeys,D,s,B),l}},OZM5:function(ge,_,t){"use strict";t.d(_,"b",function(){return O}),t.d(_,"a",function(){return T}),t.d(_,"k",function(){return B}),t.d(_,"h",function(){return k}),t.d(_,"i",function(){return D}),t.d(_,"g",function(){return s}),t.d(_,"c",function(){return l}),t.d(_,"d",function(){return x}),t.d(_,"j",function(){return y}),t.d(_,"e",function(){return h}),t.d(_,"f",function(){return H});var g=t("KQm4"),C=t("U8pU"),G=t("Ff2n"),q=t("q1tI"),j=t.n(q),o=t("Kwbf"),F=t("WaYH"),P=.25,i=2;function O(f,v){var b=f.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function T(f,v){var b=f.slice();return b.indexOf(v)===-1&&b.push(v),b}function B(f){return f.split("-")}function k(f,v){return"".concat(f,"-").concat(v)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,v){var b=[f],n=v[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(c){var d=c.key,m=c.children;b.push(d),a(m)})}return a(n.children),b}function l(f,v){var b=f.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,c=n.height,d=Math.max(c*P,i);return b<=a+d?-1:b>=e-d?1:0}function x(f,v){if(!f)return;var b=v.multiple;return b?f.slice():f.length?[f[0]]:f}var u=function(v){return v};function E(f,v){if(!f)return[];var b=v||{},n=b.processProps,a=n===void 0?u:n,e=Array.isArray(f)?f:[f];return e.map(function(c){var d=c.children,m=Object(G.a)(c,["children"]),I=E(d,v);return j.a.createElement(F.a,Object.assign({},a(m)),I)})}function y(f){if(!f)return null;var v;if(Array.isArray(f))v={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(C.a)(f)==="object")v={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(f,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var c=e.parent,d=e.node;if(d.disabled)return;c&&n(c.key)}return(f||[]).forEach(function(a){n(a)}),Object(g.a)(b)}function H(f){var v={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=f[b])}),v}},QLuO:function(ge,_,t){"use strict";t.r(_);var g=t("g9YV"),C=t("wCAj"),G=t("14J3"),q=t("BMrR"),j=t("jCWc"),o=t("kPKH"),F=t("k1fw"),P=t("tJVT"),i=t("q1tI"),O=t.n(i),T=t("1vsH"),B=t("Ty5D"),k=t("9kvl"),D=t("5bA4"),s=t("cdMw"),l=t.n(s),x=function(E){var y=E.video,h=E.globalSetting,H=E.loading,f=E.dispatch,v=Object(i.useState)(Object(F.a)({},Object(B.i)())),b=Object(P.a)(v,2),n=b[0],a=b[1],e=Object(i.useState)(1),c=Object(P.a)(e,2),d=c[0],m=c[1],I=Object(B.h)(),p=y.StudentvideoStatistics,W=y.videoStatistics;n.category=I.query.category_id,Object(i.useEffect)(function(){f({type:"video/getStudentVideoStatisticsList",payload:Object(F.a)(Object(F.a)({},n),{},{page:d})}),f({type:"video/getVideoStatistics",payload:Object(F.a)({},n)})},[n.coursesId]);var V=[{title:"\u5E8F\u53F7",dataIndex:"name",render:function(ne,Q,A){return A+1}},{title:"\u89C6\u9891\u540D\u79F0",dataIndex:"title"},{title:"\u89C2\u770B\u6B21\u6570",dataIndex:"freq",render:function(ne){return ne||"--"}},{title:"\u89C2\u770B\u65F6\u957F",dataIndex:"total_duration",render:function(ne){return O.a.createElement("span",null,ne?Object(T.X)(ne):"--")}},{title:"\u53D1\u5E03\u4EBA",dataIndex:"user_name"},{title:"\u662F\u5426\u770B\u5B8C",dataInex:"is_finished",render:function(ne,Q,A){return O.a.createElement("span",null,ne!=null&&ne.is_finished?"\u662F":"\u5426")}}];return O.a.createElement("section",{className:l.a.bg},O.a.createElement("aside",{className:l.a.statisticsWrp},O.a.createElement(q.a,{justify:"space-between",className:"mt10 mb20"},O.a.createElement(o.a,{span:"16"},O.a.createElement(D.a,{className:"current mr10 font16",onClick:function(){return k.d.goBack()}}),O.a.createElement("strong",{className:"font16"},"\u89C6\u9891\u7EDF\u8BA1\u603B\u89C8")),O.a.createElement(o.a,{span:"8",className:"c-light-black tr"},"\u64AD\u653E\u6570\u636E\u4ECE ",W.begin_at," \u5F00\u59CB\u7EDF\u8BA1")),O.a.createElement(q.a,{justify:"space-between",className:l.a.statistics},O.a.createElement(o.a,{span:"7"},O.a.createElement("span",null,"\u89C2\u770B\u603B\u6B21\u6570 \uFF08\u6B21\uFF09"),O.a.createElement("br",null),O.a.createElement("strong",null,W.freq)),O.a.createElement(o.a,{span:"7"},O.a.createElement("span",null,"\u89C2\u770B\u603B\u4E2A\u6570 \uFF08\u4E2A\uFF09"),O.a.createElement("br",null),O.a.createElement("strong",null,W.num)),O.a.createElement(o.a,{span:"7"},O.a.createElement("span",null,"\u603B\u89C2\u770B\u65F6\u5E38 \uFF08\u65F6\uFF09"),O.a.createElement("br",null),O.a.createElement("strong",null,Object(T.X)(W.total_duration))))),O.a.createElement("aside",{className:l.a.infoWrp},O.a.createElement("div",null,O.a.createElement("strong",{className:"font16"},"\u7EDF\u8BA1\u5217\u8868")),O.a.createElement(C.a,{className:"mt20",loading:H["video/getStudentVideoStatisticsList"],pagination:{position:["bottomCenter"],hideOnSinglePage:!0,total:p==null?void 0:p.count,current:d,showSizeChanger:!1,defaultPageSize:20},dataSource:p==null?void 0:p.data,columns:V,onChange:function(ne,Q,A){m(ne.current),f({type:"video/getStudentVideoStatisticsList",payload:Object(F.a)(Object(F.a)({},n),{},{page:ne.current})})}})))};_.default=Object(k.a)(function(u){var E=u.video,y=u.loading,h=u.globalSetting;return{video:E,globalSetting:h,loading:y.effects}})(x)},"SA+Z":function(ge,_,t){var g=t("wTVA"),C=t("EbDI"),G=t("ZhPi"),q=t("wkBT");function j(o){return g(o)||C(o)||G(o)||q()}ge.exports=j,ge.exports.__esModule=!0,ge.exports.default=ge.exports},WaYH:function(ge,_,t){"use strict";var g=t("rePB"),C=t("Ff2n"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("JX7q"),F=t("Ji7U"),P=t("LK+K"),i=t("q1tI"),O=t("TSYQ"),T=t.n(O),B=t("sboe"),k=t("OZM5"),D=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var c="".concat(b,"-indent-unit"),d=[],m=0;m1)Object(O.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(y.length===0)return Object(O.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=y[0];if(o.isValidElement(h)&&Object(T.c)(h)){var H=h.ref;y[0]=o.cloneElement(h,{ref:Object(T.a)(H,this.setChildNode)})}return y.length===1?y[0]:y.map(function(f,v){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(k,"-").concat(v)})})}}]),x}(o.Component);D.displayName="ResizeObserver",_.a=D},wCXF:function(ge,_,t){"use strict";t.d(_,"a",function(){return tt});var g=t("rePB"),C=t("VTBJ"),G=t("KQm4"),q=t("U8pU"),j=t("ODXe"),o=t("q1tI"),F=t("TSYQ"),P=t.n(F),i=t("Gytx"),O=t.n(i),T=t("Kwbf"),B=t("t23M"),k=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),x=t("c+Xe"),u=t("fyJ8"),E=t("biw7");function y(r,N,R,U,z){var w=R[r]||{},M=R[N]||{},S,L;w.fixed==="left"?S=U.left[r]:M.fixed==="right"&&(L=U.right[N]);var $=!1,K=!1,X=!1,te=!1,Y=R[N+1],le=R[r-1];if(z==="rtl"){if(S!==void 0){var Oe=le&&le.fixed==="left";te=!Oe}else if(L!==void 0){var he=Y&&Y.fixed==="right";X=!he}}else if(S!==void 0){var ye=Y&&Y.fixed==="left";$=!ye}else if(L!==void 0){var ae=le&&le.fixed==="right";K=!ae}return{fixLeft:S,fixRight:L,lastFixLeft:$,firstFixRight:K,lastFixRight:X,firstFixLeft:te,isSticky:U.isSticky}}var h=t("sR1s");function H(r){var N=r.cells,R=r.stickyOffsets,U=r.flattenColumns,z=r.rowComponent,w=r.cellComponent,M=r.onHeaderRow,S=r.index,L=o.useContext(E.a),$=L.prefixCls,K=L.direction,X;M&&(X=M(N.map(function(Y){return Y.column}),S));var te=Object(h.a)(N.map(function(Y){return Y.column}));return o.createElement(z,Object.assign({},X),N.map(function(Y,le){var Oe=Y.column,he=y(Y.colStart,Y.colEnd,U,R,K),ye;return Oe&&Oe.onHeaderCell&&(ye=Y.column.onHeaderCell(Oe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:Oe.ellipsis,align:Oe.align,component:w,prefixCls:$,key:te[le]},he,{additionalProps:ye,rowType:"header"}))}))}H.displayName="HeaderRow";var f=H;function v(r){var N=[];function R(M,S){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;N[L]=N[L]||[];var $=S,K=M.filter(Boolean).map(function(X){var te={key:X.key,className:X.className||"",children:X.title,column:X,colStart:$},Y=1,le=X.children;return le&&le.length>0&&(Y=R(le,$,L+1).reduce(function(Oe,he){return Oe+he},0),te.hasSubColumns=!0),"colSpan"in X&&(Y=X.colSpan),"rowSpan"in X&&(te.rowSpan=X.rowSpan),te.colSpan=Y,te.colEnd=te.colStart+Y-1,N[L].push(te),$+=Y,Y});return K}R(r,0);for(var U=N.length,z=function(S){N[S].forEach(function(L){!("rowSpan"in L)&&!L.hasSubColumns&&(L.rowSpan=U-S)})},w=0;w=0;S-=1){var L=N[S],$=R&&R[S],K=$&&$[a.a];(L||K||M)&&(z.unshift(o.createElement("col",Object.assign({key:S,style:{width:L,minWidth:L}},K))),M=!0)}return o.createElement("colgroup",null,z)}var c=e;function d(r,N){return Object(o.useMemo)(function(){for(var R=[],U=0;U1?He-1:0),dt=1;dt=X&&(Ne=X-te),M({scrollLeft:Ne/X*(K+2)}),ae.current.x=se.pageX},We=function(){var se=Object(Ye.b)(w.current).top,_e=se+w.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;_e-Object(k.a)()<=Fe||se>=Fe-S?ye(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},Te=function(se){ye(function(_e){return Object(C.a)(Object(C.a)({},_e),{},{scrollLeft:se/K*X||0})})};return o.useImperativeHandle(R,function(){return{setScrollLeft:Te}}),o.useEffect(function(){var xe=Object(ke.a)(document.body,"mouseup",$e,!1),se=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){xe.remove(),se.remove()}},[te,Se]),o.useEffect(function(){var xe=Object(ke.a)(window,"scroll",We,!1),se=Object(ke.a)(window,"resize",We,!1);return function(){xe.remove(),se.remove()}},[]),o.useEffect(function(){he.isHiddenScrollBar||ye(function(xe){var se,_e;return Object(C.a)(Object(C.a)({},xe),{},{scrollLeft:w.current.scrollLeft/((se=w.current)===null||se===void 0?void 0:se.scrollWidth)*((_e=w.current)===null||_e===void 0?void 0:_e.clientWidth)})})},[he.isHiddenScrollBar]),K<=X||!te||he.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(k.a)(),width:X,bottom:S},className:"".concat($,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ee,ref:Y,className:P()("".concat($,"-sticky-scroll-bar"),Object(g.a)({},"".concat($,"-sticky-scroll-bar-active"),Se)),style:{width:"".concat(te,"px"),transform:"translate3d(".concat(he.scrollLeft,"px, 0, 0)")}}))},ce=o.forwardRef(Le);function fe(r,N){return o.useMemo(function(){var R=!!r;return{isSticky:R,stickyClassName:R?"".concat(N,"-sticky-header"):"",offsetHeader:Object(q.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(q.a)(r)==="object"&&r.offsetScroll||0}},[r,N])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var N=r.children;return N},function(r,N){return O()(r.props,N.props)?r.pingLeft!==N.pingLeft||r.pingRight!==N.pingRight:!1});function Ve(r){var N,R=r.prefixCls,U=r.className,z=r.rowClassName,w=r.style,M=r.data,S=r.rowKey,L=r.scroll,$=r.tableLayout,K=r.direction,X=r.title,te=r.footer,Y=r.summary,le=r.id,Oe=r.showHeader,he=r.components,ye=r.emptyText,ae=r.onRow,Xe=r.onHeaderRow,Pe=r.internalHooks,Se=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,Ee=M||Qe,Ge=!!Ee.length,We=o.useState(0),Te=Object(j.a)(We,2),xe=Te[0],se=Te[1];o.useEffect(function(){se(Object(k.a)())});var _e=o.useMemo(function(){return Object(h.c)(he,{})},[he]),Fe=o.useCallback(function(me,pe){return Object(h.b)(_e,me)||pe},[_e]),Je=o.useMemo(function(){return typeof S=="function"?S:function(me){var pe=me&&me[S];return pe}},[S]),Ne=Object(a.c)(r),jt=Ne.expandIcon,Nt=Ne.expandedRowKeys,Rt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,St=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Pt=Ne.indentSize,ht=jt||Be,gt=Kt||"children",Tt=o.useMemo(function(){return it?"row":r.expandable&&Pe===tt&&r.expandable.__PARENT_RENDER_ICON__||Ee.some(function(me){return me&&Object(q.a)(me)==="object"&&me[gt]})?"nest":!1},[!!it,Ee]),Dt=o.useState(function(){return Rt||(rt?we(Ee,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Nt||Ze||[])},[Nt,Ze]),ct=o.useCallback(function(me){var pe=Je(me,Ee.indexOf(me)),Ke,qe=He.has(pe);qe?(He.delete(pe),Ke=Object(G.a)(He)):Ke=[].concat(Object(G.a)(He),[pe]),at(Ke),ft&&ft(!qe,me),mt&&mt(Ke)},[Je,He,Ee,ft,mt]),dt=o.useState(0),Mt=Object(j.a)(dt,2),Ct=Mt[0],Lt=Mt[1],vn=Object(Z.b)(Object(C.a)(Object(C.a)(Object(C.a)({},r),Ne),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:K}),Pe===tt?Se:null),Yt=Object(j.a)(vn,2),kt=Yt[0],De=Yt[1],_t=o.useMemo(function(){return{columns:kt,flattenColumns:De}},[kt,De]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=ve(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return On.get(me)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Ae(on,De.length,K),ot=L&&Object(h.d)(L.y),lt=L&&Object(h.d)(L.x),yt=lt&&De.some(function(me){var pe=me.fixed;return pe}),rn=o.useRef(),wt=fe($e,R),Ot=wt.isSticky,Nn=wt.offsetHeader,Rn=wt.offsetScroll,Sn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:L.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:L.x===!0?"auto":L.x,minWidth:"100%"});var ln=o.useCallback(function(me,pe){xn(function(Ke){var qe=new Map(Ke);return qe.set(me,pe),qe})},[]),Pn=Me(null),sn=Object(j.a)(Pn,2),Tn=sn[0],cn=sn[1];function Ft(me,pe){if(!pe)return;typeof pe=="function"?pe(me):pe.scrollLeft!==me&&(pe.scrollLeft=me)}var vt=function(pe){var Ke=pe.currentTarget,qe=pe.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Tn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(l),Object(C.a)(T(y).map(function(h){return Object(G.a)({fixed:E},h)}))):[].concat(Object(C.a)(l),[Object(G.a)(Object(G.a)({},x),{},{fixed:E})])},[])}function B(s){for(var l=!0,x=0;x=0;y-=1){var h=s[y];if(E&&h.fixed!=="right")E=!1;else if(!E&&h.fixed==="right"){Object(F.a)(!1,"Index ".concat(y+1," of `columns` missing `fixed='right'` prop."));break}}}function k(s){return s.map(function(l){var x=l.fixed,u=Object(q.a)(l,["fixed"]),E=x;return x==="left"?E="right":x==="right"&&(E="left"),Object(G.a)({fixed:E},u)})}function D(s,l){var x=s.prefixCls,u=s.columns,E=s.children,y=s.expandable,h=s.expandedKeys,H=s.getRowKey,f=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,c=j.useMemo(function(){return u||O(E)},[u,E]),d=j.useMemo(function(){if(y){var p,W=n||0,V=c[W],J=(p={},Object(g.a)(p,i.a,{className:"".concat(x,"-expand-icon-col")}),Object(g.a)(p,"title",""),Object(g.a)(p,"fixed",V?V.fixed:null),Object(g.a)(p,"className","".concat(x,"-row-expand-icon-cell")),Object(g.a)(p,"render",function(A,ee,oe){var ue=H(ee,oe),re=h.has(ue),Ce=b?b(ee):!0,Z=v({prefixCls:x,expanded:re,expandable:Ce,record:ee,onExpand:f});return e?j.createElement("span",{onClick:function(je){return je.stopPropagation()}},Z):Z}),p),ne=c.slice();return W>=0&&ne.splice(W,0,J),ne}return c},[y,c,H,h,v,a]),m=j.useMemo(function(){var p=d;return l&&(p=l(p)),p.length||(p=[{render:function(){return null}}]),p},[l,d,a]),I=j.useMemo(function(){return a==="rtl"?k(T(m)):T(m)},[m,a]);return[m,I]}_.b=D},"y0+3":function(ge,_,t){"use strict";t.d(_,"a",function(){return T}),t.d(_,"b",function(){return k});var g=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},G={cssFloat:1,styleFloat:1,float:1};function q(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function j(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in C||(C[s]=g.test(s)),C[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,x=q(D);return s=G[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?x:j(D,s,x[s]||D.style[s])}function F(D,s,l){var x=arguments.length;if(s=G[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,x===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&F(D,u,s[u]);return q(D)}function P(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function i(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function O(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function T(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function B(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function k(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[111,8],{"6+eU":function(ge,_,t){"use strict";t.d(_,"a",function(){return f});var g=t("wx14"),C=t("rePB"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("Ji7U"),F=t("LK+K"),P=t("q1tI"),i=t.n(P),O=t("TSYQ"),T=t.n(O),k=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=T()(a,"".concat(a,"-").concat(b.page),(n={},Object(C.a)(n,"".concat(a,"-active"),b.active),Object(C.a)(n,b.className,!!b.className),Object(C.a)(n,"".concat(a,"-disabled"),!b.page),n)),c=function(){b.onClick(b.page)},d=function(I){b.onKeyPress(I,b.onClick,b.page)};return i.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:c,onKeyPress:d,tabIndex:"0"},b.itemRender(b.page,"page",i.a.createElement("a",{rel:"nofollow"},b.page)))},W=k,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(F.a)(n);function n(){var a;Object(q.a)(this,n);for(var e=arguments.length,c=new Array(e),d=0;d=0||m.relatedTarget.className.indexOf("".concat(V,"-next"))>=0))return;a.setState({goInputText:""}),B(a.getValidValue())},a.go=function(m){var I=a.state.goInputText;if(I==="")return;(m.keyCode===D.ENTER||m.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(j.a)(n,[{key:"getValidValue",value:function(){var e=this.state,c=e.goInputText,d=e.current;return!c||isNaN(c)?d:Number(c)}},{key:"getPageSizeOptions",value:function(){var e=this.props,c=e.pageSize,d=e.pageSizeOptions;return d.some(function(m){return m.toString()===c.toString()})?d:d.concat([c.toString()]).sort(function(m,I){var p=isNaN(Number(m))?0:Number(m),B=isNaN(Number(I))?0:Number(I);return p-B})}},{key:"render",value:function(){var e=this,c=this.props,d=c.pageSize,m=c.locale,I=c.rootPrefixCls,p=c.changeSize,B=c.quickGo,V=c.goButton,J=c.selectComponentClass,ne=c.buildOptionText,Q=c.selectPrefixCls,A=c.disabled,ee=this.state.goInputText,oe="".concat(I,"-options"),ue=J,re=null,Ce=null,Z=null;if(!p&&!B)return null;var Re=this.getPageSizeOptions();if(p&&ue){var je=Re.map(function(ve,Me){return i.a.createElement(ue.Option,{key:Me,value:ve.toString()},(ne||e.buildOptionText)(ve))});re=i.a.createElement(ue,{disabled:A,prefixCls:Q,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||Re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Me){return Me.parentNode}},je)}return B&&(V&&(Z=typeof V=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(oe,"-quick-jumper-button")},m.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},V)),Ce=i.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},m.jump_to,i.a.createElement("input",{disabled:A,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),m.page,Z)),i.a.createElement("li",{className:"".concat(oe)},re,Ce)}}]),n}(i.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,x=t("N2Kk");function u(){}function E(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function y(v,b,n){return n}function h(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var H=function(v){Object(o.a)(n,v);var b=Object(F.a)(n);function n(a){var e;Object(q.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(p,B){var V=e.props.prefixCls,J=p||i.a.createElement("button",{type:"button","aria-label":B,className:"".concat(V,"-item-link")});return typeof p=="function"&&(J=i.a.createElement(p,Object(G.a)({},e.props))),J},e.savePaginationNode=function(p){e.paginationNode=p},e.isValid=function(p){return E(p)&&p!==e.state.current},e.shouldDisplayQuickJumper=function(){var p=e.props,B=p.showQuickJumper,V=p.pageSize,J=p.total;return J<=V?!1:B},e.handleKeyDown=function(p){(p.keyCode===D.ARROW_UP||p.keyCode===D.ARROW_DOWN)&&p.preventDefault()},e.handleKeyUp=function(p){var B=e.getValidValue(p),V=e.state.currentInputValue;B!==V&&e.setState({currentInputValue:B}),p.keyCode===D.ENTER?e.handleChange(B):p.keyCode===D.ARROW_UP?e.handleChange(B-1):p.keyCode===D.ARROW_DOWN&&e.handleChange(B+1)},e.changePageSize=function(p){var B=e.state.current,V=h(p,e.state,e.props);B=B>V?V:B,V===0&&(B=e.state.current),typeof p=="number"&&("pageSize"in e.props||e.setState({pageSize:p}),"current"in e.props||e.setState({current:B,currentInputValue:B})),e.props.onShowSizeChange(B,p),"onChange"in e.props&&e.props.onChange&&e.props.onChange(B,p)},e.handleChange=function(p){var B=e.props.disabled,V=p;if(e.isValid(V)&&!B){var J=h(void 0,e.state,e.props);V>J?V=J:V<1&&(V=1),"current"in e.props||e.setState({current:V,currentInputValue:V});var ne=e.state.pageSize;return e.props.onChange(V,ne),V}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?V-2:0),ne=2;ne=d?I=d:I=Number(c),I}},{key:"getShowSizeChanger",value:function(){var e=this.props,c=e.showSizeChanger,d=e.total,m=e.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:d>m}},{key:"renderPrev",value:function(e){var c=this.props,d=c.prevIcon,m=c.itemRender,I=m(e,"prev",this.getItemIcon(d,"prev page")),p=!this.hasPrev();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:p}):I}},{key:"renderNext",value:function(e){var c=this.props,d=c.nextIcon,m=c.itemRender,I=m(e,"next",this.getItemIcon(d,"next page")),p=!this.hasNext();return Object(P.isValidElement)(I)?Object(P.cloneElement)(I,{disabled:p}):I}},{key:"render",value:function(){var e=this,c=this.props,d=c.prefixCls,m=c.className,I=c.style,p=c.disabled,B=c.hideOnSinglePage,V=c.total,J=c.locale,ne=c.showQuickJumper,Q=c.showLessItems,A=c.showTitle,ee=c.showTotal,oe=c.simple,ue=c.itemRender,re=c.showPrevNextJumpers,Ce=c.jumpPrevIcon,Z=c.jumpNextIcon,Re=c.selectComponentClass,je=c.selectPrefixCls,ve=c.pageSizeOptions,Me=this.state,ie=Me.current,Ae=Me.pageSize,Ue=Me.currentInputValue;if(B===!0&&V<=Ae)return null;var de=h(void 0,this.state,this.props),be=[],ke=null,we=null,We=null,Ye=null,Le=null,ce=ne&&ne.goButton,fe=Q?1:2,Qe=ie-1>0?ie-1:0,et=ie+1=fe*2&&ie!==1+2&&(be[0]=Object(P.cloneElement)(be[0],{className:"".concat(d,"-item-after-jump-prev")}),be.unshift(ke)),de-ie>=fe*2&&ie!==de-2&&(be[be.length-1]=Object(P.cloneElement)(be[be.length-1],{className:"".concat(d,"-item-before-jump-next")}),be.push(we)),R!==1&&be.unshift(We),U!==de&&be.push(Ye)}var M=null;ee&&(M=i.a.createElement("li",{className:"".concat(d,"-total-text")},ee(V,[V===0?0:(ie-1)*Ae+1,ie*Ae>V?V:ie*Ae])));var S=!this.hasPrev()||!de,L=!this.hasNext()||!de;return i.a.createElement("ul",Object(g.a)({className:T()(d,m,Object(C.a)({},"".concat(d,"-disabled"),p)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},tt),M,i.a.createElement("li",{title:A?J.prev_page:null,onClick:this.prev,tabIndex:S?null:0,onKeyPress:this.runIfEnterPrev,className:T()("".concat(d,"-prev"),Object(C.a)({},"".concat(d,"-disabled"),S)),"aria-disabled":S},this.renderPrev(Qe)),be,i.a.createElement("li",{title:A?J.next_page:null,onClick:this.next,tabIndex:L?null:0,onKeyPress:this.runIfEnterNext,className:T()("".concat(d,"-next"),Object(C.a)({},"".concat(d,"-disabled"),L)),"aria-disabled":L},this.renderNext(et)),i.a.createElement(l,{disabled:p,locale:J,rootPrefixCls:d,selectComponentClass:Re,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ie,pageSize:Ae,pageSizeOptions:ve,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ce}))}}],[{key:"getDerivedStateFromProps",value:function(e,c){var d={};if("current"in e&&(d.current=e.current,e.current!==c.current&&(d.currentInputValue=d.current)),"pageSize"in e&&e.pageSize!==c.pageSize){var m=c.current,I=h(e.pageSize,c,e);m=m>I?I:m,"current"in e||(d.current=m,d.currentInputValue=m),d.pageSize=e.pageSize}return d}}]),n}(i.a.Component);H.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:x.a,style:{},itemRender:y,totalBoundaryShowSizeChanger:50};var f=H},"6RRn":function(ge,_,t){"use strict";var g=t("wCXF"),C=t("n6Qo");t.d(_,"b",function(){return C.a});var G=t("IBYe"),q=t("6eGT"),j=t("hW8S");t.d(_,"a",function(){return j.a}),_.c=g.b},"6eGT":function(ge,_,t){"use strict";function g(C){return null}_.a=g},"815F":function(ge,_,t){"use strict";t.d(_,"e",function(){return F}),t.d(_,"c",function(){return i}),t.d(_,"d",function(){return O}),t.d(_,"a",function(){return k}),t.d(_,"f",function(){return W}),t.d(_,"b",function(){return D});var g=t("KQm4"),C=t("VTBJ"),G=t("Ff2n"),q=t("Zm9Q"),j=t("Kwbf"),o=t("OZM5");function F(s,l){return s!=null?s:l}function P(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function x(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(y){var h=y.key,H=y.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(E).concat(h,"]"));var f=String(h);Object(j.a)(!l.has(f)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),x(H,"".concat(E).concat(f," > "))})}x(s)}function i(s){function l(x){var u=Object(q.a)(x);return u.map(function(E){if(!Object(o.i)(E))return Object(j.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var y=E.key,h=E.props,H=h.children,f=Object(G.a)(h,["children"]),v=Object(C.a)({key:y},f),b=l(H);return b.length&&(v.children=b),v}).filter(function(E){return E})}return l(s)}function O(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(l===!0?[]:l),u=[];function E(y){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return y.map(function(H,f){var v=Object(o.h)(h?h.pos:"0",f),b=F(H.key,v),n=Object(C.a)(Object(C.a)({},H),{},{parent:h,pos:v,children:null,data:H,isStart:[].concat(Object(g.a)(h?h.isStart:[]),[f===0]),isEnd:[].concat(Object(g.a)(h?h.isEnd:[]),[f===y.length-1])});return u.push(n),l===!0||x.has(b)?n.children=E(H.children||[],n):n.children=[],n})}return E(s),u}function T(s,l,x){var u;x?typeof x=="string"?u=function(h){return h[x]}:typeof x=="function"&&(u=function(h){return x(h)}):u=function(h,H){return F(h.key,H)};function E(y,h,H){var f=y?y.children:s,v=y?Object(o.h)(H.pos,h):"0";if(y){var b=u(y,v),n={node:y,index:h,pos:v,key:b,parentPos:H.node?H.pos:null,level:H.level+1};l(n)}f&&f.forEach(function(a,e){E(a,e,{node:y,pos:v,level:H?H.level+1:-1})})}E(null)}function k(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=l.initWrapper,u=l.processEntity,E=l.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,h={},H={},f={posEntities:h,keyEntities:H};return x&&(f=x(f)||f),T(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,c=v.parentPos,d=v.level,m={node:b,index:n,key:e,pos:a,level:d},I=F(e,a);h[a]=m,H[I]=m,m.parent=h[c],m.parent&&(m.parent.children=m.parent.children||[],m.parent.children.push(m)),u&&u(m,f)},y),E&&E(f),f}function W(s,l){var x=l.expandedKeys,u=l.selectedKeys,E=l.loadedKeys,y=l.loadingKeys,h=l.checkedKeys,H=l.halfCheckedKeys,f=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:x.indexOf(s)!==-1,selected:u.indexOf(s)!==-1,loaded:E.indexOf(s)!==-1,loading:y.indexOf(s)!==-1,checked:h.indexOf(s)!==-1,halfChecked:H.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&v===0,dragOverGapTop:f===s&&v===-1,dragOverGapBottom:f===s&&v===1};return a}function D(s){var l=s.data,x=s.expanded,u=s.selected,E=s.checked,y=s.loaded,h=s.loading,H=s.halfChecked,f=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(C.a)(Object(C.a)({},l),{},{expanded:x,selected:u,checked:E,loaded:y,loading:h,halfChecked:H,dragOver:f,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},BU3w:function(ge,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("MNnm"),C="rc-util-key";function G(F){if(F.attachTo)return F.attachTo;var P=document.querySelector("head");return P||document.body}function q(F){var P,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(g.a)())return null;var O=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var T;O.nonce=(T=i.csp)===null||T===void 0?void 0:T.nonce}O.innerHTML=F;var k=G(i),W=k.firstChild;return i.prepend&&k.prepend?k.prepend(O):i.prepend&&W?k.insertBefore(O,W):k.appendChild(O),O}var j=new Map;function o(F,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=G(i);if(!j.has(O)){var T=q("",i),k=T.parentNode;j.set(O,k),k.removeChild(T)}var W=Array.from(j.get(O).children).find(function(u){return u.tagName==="STYLE"&&u[C]===P});if(W){var D,s;if(((D=i.csp)===null||D===void 0?void 0:D.nonce)&&W.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var l;W.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return W.innerHTML!==F&&(W.innerHTML=F),W}var x=q(F,i);return x[C]=P,x}},IBYe:function(ge,_,t){"use strict";function g(C){return null}_.a=g},LdHM:function(ge,_,t){"use strict";t.d(_,"b",function(){return y}),t.d(_,"a",function(){return H});var g=t("1OyB"),C=t("vuIU"),G=t("Ji7U"),q=t("LK+K"),j=t("q1tI"),o=t("rePB"),F=t("Ff2n"),P=t("ODXe"),i=t("4IlW"),O=t("bX4T"),T=t("YrtM"),k=t("TSYQ"),W=t.n(k),D=t("+nKL"),s=t("8OUc"),l=function(A,ee){var oe=A.prefixCls,ue=A.id,re=A.flattenOptions,Ce=A.childrenAsData,Z=A.values,Re=A.searchValue,je=A.multiple,ve=A.defaultActiveFirstOption,Me=A.height,ie=A.itemHeight,Ae=A.notFoundContent,Ue=A.open,de=A.menuItemSelectedIcon,be=A.virtual,ke=A.onSelect,we=A.onToggleOpen,We=A.onActiveValue,Ye=A.onScroll,Le=A.onMouseEnter,ce="".concat(oe,"-item"),fe=Object(T.a)(function(){return re},[Ue,re],function(w,M){return M[0]&&w[1]!==M[1]}),Qe=j.useRef(null),et=function(M){M.preventDefault()},tt=function(M){Qe.current&&Qe.current.scrollTo({index:M})},st=function(M){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,L=fe.length,$=0;$1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Q).map(function(ee,oe){if(!j.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,re=ee.key,Ce=ee.props,Z=Ce.children,Re=Object(F.a)(Ce,["children"]);return A||!ue?b(ee):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(re===null?oe:re,"__"),label:re},Re),{},{options:n(Z)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),c=t("U8pU"),d=t("Kwbf"),m=t("WKfj");function I(Q){var A=Q.mode,ee=Q.options,oe=Q.children,ue=Q.backfill,re=Q.allowClear,Ce=Q.placeholder,Z=Q.getInputElement,Re=Q.showSearch,je=Q.onSearch,ve=Q.defaultOpen,Me=Q.autoFocus,ie=Q.labelInValue,Ae=Q.value,Ue=Q.inputValue,de=Q.optionLabelProp,be=A==="multiple"||A==="tags",ke=Re!==void 0?Re:be||A==="combobox",we=ee||n(oe);if(Object(d.a)(A!=="tags"||we.every(function(ce){return!ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var We=we.some(function(ce){return ce.options?ce.options.some(function(fe){return typeof("value"in fe?fe.value:fe.key)=="number"}):typeof("value"in ce?ce.value:ce.key)=="number"});Object(d.a)(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(A!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(A==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(d.a)(A==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(d.b)(A!=="combobox"||!Z||!re||!Ce,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!ke&&A!=="combobox"&&A!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!ve||Me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var Ye=Object(m.d)(Ae);Object(d.a)(!ie||Ye.every(function(ce){return Object(c.a)(ce)==="object"&&("key"in ce||"value"in ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!be||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var Le=null;Object(v.a)(oe).some(function(ce){if(!j.isValidElement(ce)||!ce.type)return!1;var fe=ce.type;if(fe.isSelectOption)return!1;if(fe.isSelectOptGroup){var Qe=Object(v.a)(ce.props.children).every(function(et){return!j.isValidElement(et)||!ce.type||et.type.isSelectOption?!0:(Le=et.type,!1)});return!Qe}return Le=fe,!0}),Le&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(d.a)(Ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var p=I,B=Object(e.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:p,fillOptionsWithMissingValue:a.a}),V=function(Q){Object(G.a)(ee,Q);var A=Object(q.a)(ee);function ee(){var oe;return Object(g.a)(this,ee),oe=A.apply(this,arguments),oe.selectRef=j.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(C.a)(ee,[{key:"render",value:function(){return j.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);V.Option=y,V.OptGroup=H;var J=V,ne=_.c=J},NvD2:function(ge,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("Kwbf");function C(F,P){var i=new Set;return F.forEach(function(O){P.has(O)||i.add(O)}),i}function G(F){var P=F||{},i=P.disabled,O=P.disableCheckbox,T=P.checkable;return!!(i||O)||T===!1}function q(F,P,i,O){for(var T=new Set(F),k=new Set,W=0;W<=i;W+=1){var D=P.get(W)||new Set;D.forEach(function(u){var E=u.key,y=u.node,h=u.children,H=h===void 0?[]:h;T.has(E)&&!O(y)&&H.filter(function(f){return!O(f.node)}).forEach(function(f){T.add(f.key)})})}for(var s=new Set,l=i;l>=0;l-=1){var x=P.get(l)||new Set;x.forEach(function(u){var E=u.parent,y=u.node;if(O(y)||!u.parent||s.has(u.parent.key))return;if(O(u.parent.node)){s.add(E.key);return}var h=!0,H=!1;(E.children||[]).filter(function(f){return!O(f.node)}).forEach(function(f){var v=f.key,b=T.has(v);h&&!b&&(h=!1),!H&&(b||k.has(v))&&(H=!0)}),h&&T.add(E.key),H&&k.add(E.key),s.add(E.key)})}return{checkedKeys:Array.from(T),halfCheckedKeys:Array.from(C(k,T))}}function j(F,P,i,O,T){for(var k=new Set(F),W=new Set(P),D=0;D<=O;D+=1){var s=i.get(D)||new Set;s.forEach(function(E){var y=E.key,h=E.node,H=E.children,f=H===void 0?[]:H;!k.has(y)&&!W.has(y)&&!T(h)&&f.filter(function(v){return!T(v.node)}).forEach(function(v){k.delete(v.key)})})}W=new Set;for(var l=new Set,x=O;x>=0;x-=1){var u=i.get(x)||new Set;u.forEach(function(E){var y=E.parent,h=E.node;if(T(h)||!E.parent||l.has(E.parent.key))return;if(T(E.parent.node)){l.add(y.key);return}var H=!0,f=!1;(y.children||[]).filter(function(v){return!T(v.node)}).forEach(function(v){var b=v.key,n=k.has(b);H&&!n&&(H=!1),!f&&(n||W.has(b))&&(f=!0)}),H||k.delete(y.key),f&&W.add(y.key),l.add(y.key)})}return{checkedKeys:Array.from(k),halfCheckedKeys:Array.from(C(W,k))}}function o(F,P,i,O){var T=[],k;O?k=O:k=G;var W=new Set(F.filter(function(x){var u=!!i[x];return u||T.push(x),u})),D=new Map,s=0;Object.keys(i).forEach(function(x){var u=i[x],E=u.level,y=D.get(E);y||(y=new Set,D.set(E,y)),y.add(u),s=Math.max(s,E)}),Object(g.a)(!T.length,"Tree missing follow keys: ".concat(T.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var l;return P===!0?l=q(W,D,s,k):l=j(W,P.halfCheckedKeys,D,s,k),l}},OZM5:function(ge,_,t){"use strict";t.d(_,"b",function(){return O}),t.d(_,"a",function(){return T}),t.d(_,"k",function(){return k}),t.d(_,"h",function(){return W}),t.d(_,"i",function(){return D}),t.d(_,"g",function(){return s}),t.d(_,"c",function(){return l}),t.d(_,"d",function(){return x}),t.d(_,"j",function(){return y}),t.d(_,"e",function(){return h}),t.d(_,"f",function(){return H});var g=t("KQm4"),C=t("U8pU"),G=t("Ff2n"),q=t("q1tI"),j=t.n(q),o=t("Kwbf"),F=t("WaYH"),P=.25,i=2;function O(f,v){var b=f.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function T(f,v){var b=f.slice();return b.indexOf(v)===-1&&b.push(v),b}function k(f){return f.split("-")}function W(f,v){return"".concat(f,"-").concat(v)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,v){var b=[f],n=v[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(c){var d=c.key,m=c.children;b.push(d),a(m)})}return a(n.children),b}function l(f,v){var b=f.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,c=n.height,d=Math.max(c*P,i);return b<=a+d?-1:b>=e-d?1:0}function x(f,v){if(!f)return;var b=v.multiple;return b?f.slice():f.length?[f[0]]:f}var u=function(v){return v};function E(f,v){if(!f)return[];var b=v||{},n=b.processProps,a=n===void 0?u:n,e=Array.isArray(f)?f:[f];return e.map(function(c){var d=c.children,m=Object(G.a)(c,["children"]),I=E(d,v);return j.a.createElement(F.a,Object.assign({},a(m)),I)})}function y(f){if(!f)return null;var v;if(Array.isArray(f))v={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(C.a)(f)==="object")v={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(f,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var c=e.parent,d=e.node;if(d.disabled)return;c&&n(c.key)}return(f||[]).forEach(function(a){n(a)}),Object(g.a)(b)}function H(f){var v={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=f[b])}),v}},QLuO:function(ge,_,t){"use strict";t.r(_);var g=t("g9YV"),C=t("wCAj"),G=t("14J3"),q=t("BMrR"),j=t("jCWc"),o=t("kPKH"),F=t("k1fw"),P=t("tJVT"),i=t("q1tI"),O=t.n(i),T=t("1vsH"),k=t("Ty5D"),W=t("9kvl"),D=t("5bA4"),s=t("cdMw"),l=t.n(s),x=function(E){var y=E.video,h=E.globalSetting,H=E.loading,f=E.dispatch,v=Object(i.useState)(Object(F.a)({},Object(k.i)())),b=Object(P.a)(v,2),n=b[0],a=b[1],e=Object(i.useState)(1),c=Object(P.a)(e,2),d=c[0],m=c[1],I=Object(k.h)(),p=y.StudentvideoStatistics,B=y.videoStatistics;n.category=I.query.category_id,Object(i.useEffect)(function(){f({type:"video/getStudentVideoStatisticsList",payload:Object(F.a)(Object(F.a)({},n),{},{page:d})}),f({type:"video/getVideoStatistics",payload:Object(F.a)({},n)})},[n.coursesId]);var V=[{title:"\u5E8F\u53F7",dataIndex:"name",render:function(ne,Q,A){return A+1}},{title:"\u89C6\u9891\u540D\u79F0",dataIndex:"title"},{title:"\u89C2\u770B\u6B21\u6570",dataIndex:"freq",render:function(ne){return ne||"--"}},{title:"\u89C2\u770B\u65F6\u957F",dataIndex:"total_duration",render:function(ne){return O.a.createElement("span",null,ne?Object(T.X)(ne):"--")}},{title:"\u53D1\u5E03\u4EBA",dataIndex:"user_name"},{title:"\u662F\u5426\u770B\u5B8C",dataInex:"is_finished",render:function(ne,Q,A){return O.a.createElement("span",null,ne!=null&&ne.is_finished?"\u662F":"\u5426")}}];return O.a.createElement("section",{className:l.a.bg},O.a.createElement("aside",{className:l.a.statisticsWrp},O.a.createElement(q.a,{justify:"space-between",className:"mt10 mb20"},O.a.createElement(o.a,{span:"16"},O.a.createElement(D.a,{className:"current mr10 font16",onClick:function(){return W.d.goBack()}}),O.a.createElement("strong",{className:"font16"},"\u89C6\u9891\u7EDF\u8BA1\u603B\u89C8")),O.a.createElement(o.a,{span:"8",className:"c-light-black tr"},"\u64AD\u653E\u6570\u636E\u4ECE ",B.begin_at," \u5F00\u59CB\u7EDF\u8BA1")),O.a.createElement(q.a,{justify:"space-between",className:l.a.statistics},O.a.createElement(o.a,{span:"7"},O.a.createElement("span",null,"\u89C2\u770B\u603B\u6B21\u6570 \uFF08\u6B21\uFF09"),O.a.createElement("br",null),O.a.createElement("strong",null,B.freq)),O.a.createElement(o.a,{span:"7"},O.a.createElement("span",null,"\u89C2\u770B\u603B\u4E2A\u6570 \uFF08\u4E2A\uFF09"),O.a.createElement("br",null),O.a.createElement("strong",null,B.num)),O.a.createElement(o.a,{span:"7"},O.a.createElement("span",null,"\u603B\u89C2\u770B\u65F6\u5E38 \uFF08\u65F6\uFF09"),O.a.createElement("br",null),O.a.createElement("strong",null,Object(T.X)(B.total_duration))))),O.a.createElement("aside",{className:l.a.infoWrp},O.a.createElement("div",null,O.a.createElement("strong",{className:"font16"},"\u7EDF\u8BA1\u5217\u8868")),O.a.createElement(C.a,{className:"mt20",loading:H["video/getStudentVideoStatisticsList"],pagination:{position:["bottomCenter"],hideOnSinglePage:!0,total:p==null?void 0:p.count,current:d,showSizeChanger:!1,defaultPageSize:20},dataSource:p==null?void 0:p.data,columns:V,onChange:function(ne,Q,A){m(ne.current),f({type:"video/getStudentVideoStatisticsList",payload:Object(F.a)(Object(F.a)({},n),{},{page:ne.current})})}})))};_.default=Object(W.a)(function(u){var E=u.video,y=u.loading,h=u.globalSetting;return{video:E,globalSetting:h,loading:y.effects}})(x)},"SA+Z":function(ge,_,t){var g=t("wTVA"),C=t("EbDI"),G=t("ZhPi"),q=t("wkBT");function j(o){return g(o)||C(o)||G(o)||q()}ge.exports=j,ge.exports.__esModule=!0,ge.exports.default=ge.exports},WaYH:function(ge,_,t){"use strict";var g=t("rePB"),C=t("Ff2n"),G=t("VTBJ"),q=t("1OyB"),j=t("vuIU"),o=t("JX7q"),F=t("Ji7U"),P=t("LK+K"),i=t("q1tI"),O=t("TSYQ"),T=t.n(O),k=t("sboe"),W=t("OZM5"),D=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var c="".concat(b,"-indent-unit"),d=[],m=0;m1)Object(O.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(y.length===0)return Object(O.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=y[0];if(o.isValidElement(h)&&Object(T.c)(h)){var H=h.ref;y[0]=o.cloneElement(h,{ref:Object(T.a)(H,this.setChildNode)})}return y.length===1?y[0]:y.map(function(f,v){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(W,"-").concat(v)})})}}]),x}(o.Component);D.displayName="ResizeObserver",_.a=D},wCXF:function(ge,_,t){"use strict";t.d(_,"a",function(){return tt});var g=t("rePB"),C=t("VTBJ"),G=t("KQm4"),q=t("U8pU"),j=t("ODXe"),o=t("q1tI"),F=t("TSYQ"),P=t.n(F),i=t("Gytx"),O=t.n(i),T=t("Kwbf"),k=t("t23M"),W=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),x=t("c+Xe"),u=t("fyJ8"),E=t("biw7");function y(r,N,R,U,z){var w=R[r]||{},M=R[N]||{},S,L;w.fixed==="left"?S=U.left[r]:M.fixed==="right"&&(L=U.right[N]);var $=!1,K=!1,X=!1,te=!1,Y=R[N+1],le=R[r-1];if(z==="rtl"){if(S!==void 0){var Oe=le&&le.fixed==="left";te=!Oe}else if(L!==void 0){var he=Y&&Y.fixed==="right";X=!he}}else if(S!==void 0){var ye=Y&&Y.fixed==="left";$=!ye}else if(L!==void 0){var ae=le&&le.fixed==="right";K=!ae}return{fixLeft:S,fixRight:L,lastFixLeft:$,firstFixRight:K,lastFixRight:X,firstFixLeft:te,isSticky:U.isSticky}}var h=t("sR1s");function H(r){var N=r.cells,R=r.stickyOffsets,U=r.flattenColumns,z=r.rowComponent,w=r.cellComponent,M=r.onHeaderRow,S=r.index,L=o.useContext(E.a),$=L.prefixCls,K=L.direction,X;M&&(X=M(N.map(function(Y){return Y.column}),S));var te=Object(h.a)(N.map(function(Y){return Y.column}));return o.createElement(z,Object.assign({},X),N.map(function(Y,le){var Oe=Y.column,he=y(Y.colStart,Y.colEnd,U,R,K),ye;return Oe&&Oe.onHeaderCell&&(ye=Y.column.onHeaderCell(Oe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:Oe.ellipsis,align:Oe.align,component:w,prefixCls:$,key:te[le]},he,{additionalProps:ye,rowType:"header"}))}))}H.displayName="HeaderRow";var f=H;function v(r){var N=[];function R(M,S){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;N[L]=N[L]||[];var $=S,K=M.filter(Boolean).map(function(X){var te={key:X.key,className:X.className||"",children:X.title,column:X,colStart:$},Y=1,le=X.children;return le&&le.length>0&&(Y=R(le,$,L+1).reduce(function(Oe,he){return Oe+he},0),te.hasSubColumns=!0),"colSpan"in X&&(Y=X.colSpan),"rowSpan"in X&&(te.rowSpan=X.rowSpan),te.colSpan=Y,te.colEnd=te.colStart+Y-1,N[L].push(te),$+=Y,Y});return K}R(r,0);for(var U=N.length,z=function(S){N[S].forEach(function(L){!("rowSpan"in L)&&!L.hasSubColumns&&(L.rowSpan=U-S)})},w=0;w=0;S-=1){var L=N[S],$=R&&R[S],K=$&&$[a.a];(L||K||M)&&(z.unshift(o.createElement("col",Object.assign({key:S,style:{width:L,minWidth:L}},K))),M=!0)}return o.createElement("colgroup",null,z)}var c=e;function d(r,N){return Object(o.useMemo)(function(){for(var R=[],U=0;U1?He-1:0),dt=1;dt=X&&(Ne=X-te),M({scrollLeft:Ne/X*(K+2)}),ae.current.x=se.pageX},Be=function(){var se=Object(Ye.b)(w.current).top,_e=se+w.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;_e-Object(W.a)()<=Fe||se>=Fe-S?ye(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},Te=function(se){ye(function(_e){return Object(C.a)(Object(C.a)({},_e),{},{scrollLeft:se/K*X||0})})};return o.useImperativeHandle(R,function(){return{setScrollLeft:Te}}),o.useEffect(function(){var xe=Object(We.a)(document.body,"mouseup",$e,!1),se=Object(We.a)(document.body,"mousemove",Ge,!1);return Be(),function(){xe.remove(),se.remove()}},[te,Se]),o.useEffect(function(){var xe=Object(We.a)(window,"scroll",Be,!1),se=Object(We.a)(window,"resize",Be,!1);return function(){xe.remove(),se.remove()}},[]),o.useEffect(function(){he.isHiddenScrollBar||ye(function(xe){var se,_e;return Object(C.a)(Object(C.a)({},xe),{},{scrollLeft:w.current.scrollLeft/((se=w.current)===null||se===void 0?void 0:se.scrollWidth)*((_e=w.current)===null||_e===void 0?void 0:_e.clientWidth)})})},[he.isHiddenScrollBar]),K<=X||!te||he.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(W.a)(),width:X,bottom:S},className:"".concat($,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ee,ref:Y,className:P()("".concat($,"-sticky-scroll-bar"),Object(g.a)({},"".concat($,"-sticky-scroll-bar-active"),Se)),style:{width:"".concat(te,"px"),transform:"translate3d(".concat(he.scrollLeft,"px, 0, 0)")}}))},ce=o.forwardRef(Le);function fe(r,N){return o.useMemo(function(){var R=!!r;return{isSticky:R,stickyClassName:R?"".concat(N,"-sticky-header"):"",offsetHeader:Object(q.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(q.a)(r)==="object"&&r.offsetScroll||0}},[r,N])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var N=r.children;return N},function(r,N){return O()(r.props,N.props)?r.pingLeft!==N.pingLeft||r.pingRight!==N.pingRight:!1});function Ve(r){var N,R=r.prefixCls,U=r.className,z=r.rowClassName,w=r.style,M=r.data,S=r.rowKey,L=r.scroll,$=r.tableLayout,K=r.direction,X=r.title,te=r.footer,Y=r.summary,le=r.id,Oe=r.showHeader,he=r.components,ye=r.emptyText,ae=r.onRow,Xe=r.onHeaderRow,Pe=r.internalHooks,Se=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,Ee=M||Qe,Ge=!!Ee.length,Be=o.useState(0),Te=Object(j.a)(Be,2),xe=Te[0],se=Te[1];o.useEffect(function(){se(Object(W.a)())});var _e=o.useMemo(function(){return Object(h.c)(he,{})},[he]),Fe=o.useCallback(function(me,pe){return Object(h.b)(_e,me)||pe},[_e]),Je=o.useMemo(function(){return typeof S=="function"?S:function(me){var pe=me&&me[S];return pe}},[S]),Ne=Object(a.c)(r),jt=Ne.expandIcon,Nt=Ne.expandedRowKeys,Rt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,St=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Pt=Ne.indentSize,ht=jt||ke,gt=Kt||"children",Tt=o.useMemo(function(){return it?"row":r.expandable&&Pe===tt&&r.expandable.__PARENT_RENDER_ICON__||Ee.some(function(me){return me&&Object(q.a)(me)==="object"&&me[gt]})?"nest":!1},[!!it,Ee]),Dt=o.useState(function(){return Rt||(rt?we(Ee,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Nt||Ze||[])},[Nt,Ze]),ct=o.useCallback(function(me){var pe=Je(me,Ee.indexOf(me)),Ke,qe=He.has(pe);qe?(He.delete(pe),Ke=Object(G.a)(He)):Ke=[].concat(Object(G.a)(He),[pe]),at(Ke),ft&&ft(!qe,me),mt&&mt(Ke)},[Je,He,Ee,ft,mt]),dt=o.useState(0),Mt=Object(j.a)(dt,2),Ct=Mt[0],Lt=Mt[1],vn=Object(Z.b)(Object(C.a)(Object(C.a)(Object(C.a)({},r),Ne),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:K}),Pe===tt?Se:null),Yt=Object(j.a)(vn,2),Wt=Yt[0],De=Yt[1],_t=o.useMemo(function(){return{columns:Wt,flattenColumns:De}},[Wt,De]),Bt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=ve(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return On.get(me)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Ae(on,De.length,K),ot=L&&Object(h.d)(L.y),lt=L&&Object(h.d)(L.x),yt=lt&&De.some(function(me){var pe=me.fixed;return pe}),rn=o.useRef(),wt=fe($e,R),Ot=wt.isSticky,Nn=wt.offsetHeader,Rn=wt.offsetScroll,Sn=wt.stickyClassName,kt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:L.y}),lt&&(kt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:L.x===!0?"auto":L.x,minWidth:"100%"});var ln=o.useCallback(function(me,pe){xn(function(Ke){var qe=new Map(Ke);return qe.set(me,pe),qe})},[]),Pn=Me(null),sn=Object(j.a)(Pn,2),Tn=sn[0],cn=sn[1];function Ft(me,pe){if(!pe)return;typeof pe=="function"?pe(me):pe.scrollLeft!==me&&(pe.scrollLeft=me)}var vt=function(pe){var Ke=pe.currentTarget,qe=pe.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Tn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(l),Object(C.a)(T(y).map(function(h){return Object(G.a)({fixed:E},h)}))):[].concat(Object(C.a)(l),[Object(G.a)(Object(G.a)({},x),{},{fixed:E})])},[])}function k(s){for(var l=!0,x=0;x=0;y-=1){var h=s[y];if(E&&h.fixed!=="right")E=!1;else if(!E&&h.fixed==="right"){Object(F.a)(!1,"Index ".concat(y+1," of `columns` missing `fixed='right'` prop."));break}}}function W(s){return s.map(function(l){var x=l.fixed,u=Object(q.a)(l,["fixed"]),E=x;return x==="left"?E="right":x==="right"&&(E="left"),Object(G.a)({fixed:E},u)})}function D(s,l){var x=s.prefixCls,u=s.columns,E=s.children,y=s.expandable,h=s.expandedKeys,H=s.getRowKey,f=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,c=j.useMemo(function(){return u||O(E)},[u,E]),d=j.useMemo(function(){if(y){var p,B=n||0,V=c[B],J=(p={},Object(g.a)(p,i.a,{className:"".concat(x,"-expand-icon-col")}),Object(g.a)(p,"title",""),Object(g.a)(p,"fixed",V?V.fixed:null),Object(g.a)(p,"className","".concat(x,"-row-expand-icon-cell")),Object(g.a)(p,"render",function(A,ee,oe){var ue=H(ee,oe),re=h.has(ue),Ce=b?b(ee):!0,Z=v({prefixCls:x,expanded:re,expandable:Ce,record:ee,onExpand:f});return e?j.createElement("span",{onClick:function(je){return je.stopPropagation()}},Z):Z}),p),ne=c.slice();return B>=0&&ne.splice(B,0,J),ne}return c},[y,c,H,h,v,a]),m=j.useMemo(function(){var p=d;return l&&(p=l(p)),p.length||(p=[{render:function(){return null}}]),p},[l,d,a]),I=j.useMemo(function(){return a==="rtl"?W(T(m)):T(m)},[m,a]);return[m,I]}_.b=D},"y0+3":function(ge,_,t){"use strict";t.d(_,"a",function(){return T}),t.d(_,"b",function(){return W});var g=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},G={cssFloat:1,styleFloat:1,float:1};function q(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function j(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in C||(C[s]=g.test(s)),C[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,x=q(D);return s=G[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?x:j(D,s,x[s]||D.style[s])}function F(D,s,l){var x=arguments.length;if(s=G[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,x===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var u in s)s.hasOwnProperty(u)&&F(D,u,s[u]);return q(D)}function P(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function i(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function O(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function T(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function k(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function W(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Video__Statistics__index.7a71a870.async.js b/p__Classrooms__Lists__Video__Statistics__index.7a71a870.async.js index 6290fff5e3..9ca8c13984 100644 --- a/p__Classrooms__Lists__Video__Statistics__index.7a71a870.async.js +++ b/p__Classrooms__Lists__Video__Statistics__index.7a71a870.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[112,8],{"/Fp4":function(Ce,U,t){Ce.exports={flex_box_center:"flex_box_center___HN6MI",flex_space_between:"flex_space_between___3r4Gb",flex_box_vertical_center:"flex_box_vertical_center____a0pw",flex_box_center_end:"flex_box_center_end___q--gl",flex_box_column:"flex_box_column___28zUL",title:"title___2xhIc",statisticsWrp:"statisticsWrp___1thFu",statistics:"statistics___yQFce",infoWrp:"infoWrp___1I5LI",divwidth:"divwidth___1T67H"}},"55Ip":function(Ce,U,t){"use strict";t.d(U,"a",function(){return b}),t.d(U,"b",function(){return g});var E=t("Ty5D"),C=t("dI71"),J=t("q1tI"),Q=t.n(J),y=t("YS25"),o=t("17x9"),$=t.n(o),j=t("wx14"),d=t("zLVn"),W=t("9R94"),N=function(n){Object(C.a)(e,n);function e(){for(var c,u=arguments.length,D=new Array(u),f=0;f=0||u.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;n.setState({goInputText:""}),w(n.getValidValue())},n.go=function(u){var D=n.state.goInputText;if(D==="")return;(u.keyCode===T.ENTER||u.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return Object(y.a)(a,[{key:"getValidValue",value:function(){var e=this.state,r=e.goInputText,c=e.current;return!r||isNaN(r)?c:Number(r)}},{key:"getPageSizeOptions",value:function(){var e=this.props,r=e.pageSize,c=e.pageSizeOptions;return c.some(function(u){return u.toString()===r.toString()})?c:c.concat([r.toString()]).sort(function(u,D){var f=isNaN(Number(u))?0:Number(u),w=isNaN(Number(D))?0:Number(D);return f-w})}},{key:"render",value:function(){var e=this,r=this.props,c=r.pageSize,u=r.locale,D=r.rootPrefixCls,f=r.changeSize,w=r.quickGo,F=r.goButton,V=r.selectComponentClass,ie=r.buildOptionText,ee=r.selectPrefixCls,A=r.disabled,q=this.state.goInputText,Z="".concat(D,"-options"),re=V,te=null,ae=null,X=null;if(!f&&!w)return null;var fe=this.getPageSizeOptions();if(f&&re){var xe=fe.map(function(pe,Pe){return d.a.createElement(re.Option,{key:Pe,value:pe.toString()},(ie||e.buildOptionText)(pe))});te=d.a.createElement(re,{disabled:A,prefixCls:ee,showSearch:!1,className:"".concat(Z,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||fe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Pe){return Pe.parentNode}},xe)}return w&&(F&&(X=typeof F=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(Z,"-quick-jumper-button")},u.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),ae=d.a.createElement("div",{className:"".concat(Z,"-quick-jumper")},u.jump_to,d.a.createElement("input",{disabled:A,type:"text",value:q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,X)),d.a.createElement("li",{className:"".concat(Z)},te,ae)}}]),a}(d.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=i,x=t("N2Kk");function p(){}function b(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function R(v,g,a){return a}function h(v,g,a){var n=typeof v=="undefined"?g.pageSize:v;return Math.floor((a.total-1)/n)+1}var k=function(v){Object(o.a)(a,v);var g=Object($.a)(a);function a(n){var e;Object(Q.a)(this,a),e=g.call(this,n),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,w){var F=e.props.prefixCls,V=f||d.a.createElement("button",{type:"button","aria-label":w,className:"".concat(F,"-item-link")});return typeof f=="function"&&(V=d.a.createElement(f,Object(J.a)({},e.props))),V},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return b(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,w=f.showQuickJumper,F=f.pageSize,V=f.total;return V<=F?!1:w},e.handleKeyDown=function(f){(f.keyCode===T.ARROW_UP||f.keyCode===T.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var w=e.getValidValue(f),F=e.state.currentInputValue;w!==F&&e.setState({currentInputValue:w}),f.keyCode===T.ENTER?e.handleChange(w):f.keyCode===T.ARROW_UP?e.handleChange(w-1):f.keyCode===T.ARROW_DOWN&&e.handleChange(w+1)},e.changePageSize=function(f){var w=e.state.current,F=h(f,e.state,e.props);w=w>F?F:w,F===0&&(w=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:w,currentInputValue:w})),e.props.onShowSizeChange(w,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(w,f)},e.handleChange=function(f){var w=e.props.disabled,F=f;if(e.isValid(F)&&!w){var V=h(void 0,e.state,e.props);F>V?F=V:F<1&&(F=1),"current"in e.props||e.setState({current:F,currentInputValue:F});var ie=e.state.pageSize;return e.props.onChange(F,ie),F}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?F-2:0),ie=2;ie=c?D=c:D=Number(r),D}},{key:"getShowSizeChanger",value:function(){var e=this.props,r=e.showSizeChanger,c=e.total,u=e.totalBoundaryShowSizeChanger;return typeof r!="undefined"?r:c>u}},{key:"renderPrev",value:function(e){var r=this.props,c=r.prevIcon,u=r.itemRender,D=u(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(j.isValidElement)(D)?Object(j.cloneElement)(D,{disabled:f}):D}},{key:"renderNext",value:function(e){var r=this.props,c=r.nextIcon,u=r.itemRender,D=u(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(j.isValidElement)(D)?Object(j.cloneElement)(D,{disabled:f}):D}},{key:"render",value:function(){var e=this,r=this.props,c=r.prefixCls,u=r.className,D=r.style,f=r.disabled,w=r.hideOnSinglePage,F=r.total,V=r.locale,ie=r.showQuickJumper,ee=r.showLessItems,A=r.showTitle,q=r.showTotal,Z=r.simple,re=r.itemRender,te=r.showPrevNextJumpers,ae=r.jumpPrevIcon,X=r.jumpNextIcon,fe=r.selectComponentClass,xe=r.selectPrefixCls,pe=r.pageSizeOptions,Pe=this.state,le=Pe.current,Te=Pe.pageSize,Le=Pe.currentInputValue;if(w===!0&&F<=Te)return null;var ce=h(void 0,this.state,this.props),ge=[],ke=null,we=null,Be=null,Ye=null,Ae=null,me=ie&&ie.goButton,he=ee?1:2,Qe=le-1>0?le-1:0,et=le+1=he*2&&le!==1+2&&(ge[0]=Object(j.cloneElement)(ge[0],{className:"".concat(c,"-item-after-jump-prev")}),ge.unshift(ke)),ce-le>=he*2&&le!==ce-2&&(ge[ge.length-1]=Object(j.cloneElement)(ge[ge.length-1],{className:"".concat(c,"-item-before-jump-next")}),ge.push(we)),S!==1&&ge.unshift(Be),B!==ce&&ge.push(Ye)}var _=null;q&&(_=d.a.createElement("li",{className:"".concat(c,"-total-text")},q(F,[F===0?0:(le-1)*Te+1,le*Te>F?F:le*Te])));var M=!this.hasPrev()||!ce,L=!this.hasNext()||!ce;return d.a.createElement("ul",Object(E.a)({className:N()(c,u,Object(C.a)({},"".concat(c,"-disabled"),f)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},tt),_,d.a.createElement("li",{title:A?V.prev_page:null,onClick:this.prev,tabIndex:M?null:0,onKeyPress:this.runIfEnterPrev,className:N()("".concat(c,"-prev"),Object(C.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderPrev(Qe)),ge,d.a.createElement("li",{title:A?V.next_page:null,onClick:this.next,tabIndex:L?null:0,onKeyPress:this.runIfEnterNext,className:N()("".concat(c,"-next"),Object(C.a)({},"".concat(c,"-disabled"),L)),"aria-disabled":L},this.renderNext(et)),d.a.createElement(s,{disabled:f,locale:V,rootPrefixCls:c,selectComponentClass:fe,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:le,pageSize:Te,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var c={};if("current"in e&&(c.current=e.current,e.current!==r.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==r.pageSize){var u=r.current,D=h(e.pageSize,r,e);u=u>D?D:u,"current"in e||(c.current=u,c.currentInputValue=u),c.pageSize=e.pageSize}return c}}]),a}(d.a.Component);k.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:R,totalBoundaryShowSizeChanger:50};var m=k},"6RRn":function(Ce,U,t){"use strict";var E=t("wCXF"),C=t("n6Qo");t.d(U,"b",function(){return C.a});var J=t("IBYe"),Q=t("6eGT"),y=t("hW8S");t.d(U,"a",function(){return y.a}),U.c=E.b},"6eGT":function(Ce,U,t){"use strict";function E(C){return null}U.a=E},"815F":function(Ce,U,t){"use strict";t.d(U,"e",function(){return $}),t.d(U,"c",function(){return d}),t.d(U,"d",function(){return W}),t.d(U,"a",function(){return O}),t.d(U,"f",function(){return K}),t.d(U,"b",function(){return T});var E=t("KQm4"),C=t("VTBJ"),J=t("Ff2n"),Q=t("Zm9Q"),y=t("Kwbf"),o=t("OZM5");function $(i,s){return i!=null?i:s}function j(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(R){var h=R.key,k=R.children;Object(y.a)(h!=null,"Tree node must have a certain key: [".concat(b).concat(h,"]"));var m=String(h);Object(y.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(k,"".concat(b).concat(m," > "))})}x(i)}function d(i){function s(x){var p=Object(Q.a)(x);return p.map(function(b){if(!Object(o.i)(b))return Object(y.a)(!b,"Tree/TreeNode can only accept TreeNode as children."),null;var R=b.key,h=b.props,k=h.children,m=Object(J.a)(h,["children"]),v=Object(C.a)({key:R},m),g=s(k);return g.length&&(v.children=g),v}).filter(function(b){return b})}return s(i)}function W(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function b(R){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return R.map(function(k,m){var v=Object(o.h)(h?h.pos:"0",m),g=$(k.key,v),a=Object(C.a)(Object(C.a)({},k),{},{parent:h,pos:v,children:null,data:k,isStart:[].concat(Object(E.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(E.a)(h?h.isEnd:[]),[m===R.length-1])});return p.push(a),s===!0||x.has(g)?a.children=b(k.children||[],a):a.children=[],a})}return b(i),p}function N(i,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,k){return $(h.key,k)};function b(R,h,k){var m=R?R.children:i,v=R?Object(o.h)(k.pos,h):"0";if(R){var g=p(R,v),a={node:R,index:h,pos:v,key:g,parentPos:k.node?k.pos:null,level:k.level+1};s(a)}m&&m.forEach(function(n,e){b(n,e,{node:R,pos:v,level:k?k.level+1:-1})})}b(null)}function O(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,b=s.onProcessFinished,R=arguments.length>2?arguments[2]:void 0,h={},k={},m={posEntities:h,keyEntities:k};return x&&(m=x(m)||m),N(i,function(v){var g=v.node,a=v.index,n=v.pos,e=v.key,r=v.parentPos,c=v.level,u={node:g,index:a,key:e,pos:n,level:c},D=$(e,n);h[n]=u,k[D]=u,u.parent=h[r],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),p&&p(u,m)},R),b&&b(m),m}function K(i,s){var x=s.expandedKeys,p=s.selectedKeys,b=s.loadedKeys,R=s.loadingKeys,h=s.checkedKeys,k=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,g=s.keyEntities,a=g[i],n={eventKey:i,expanded:x.indexOf(i)!==-1,selected:p.indexOf(i)!==-1,loaded:b.indexOf(i)!==-1,loading:R.indexOf(i)!==-1,checked:h.indexOf(i)!==-1,halfChecked:k.indexOf(i)!==-1,pos:String(a?a.pos:""),dragOver:m===i&&v===0,dragOverGapTop:m===i&&v===-1,dragOverGapBottom:m===i&&v===1};return n}function T(i){var s=i.data,x=i.expanded,p=i.selected,b=i.checked,R=i.loaded,h=i.loading,k=i.halfChecked,m=i.dragOver,v=i.dragOverGapTop,g=i.dragOverGapBottom,a=i.pos,n=i.active,e=Object(C.a)(Object(C.a)({},s),{},{expanded:x,selected:p,checked:b,loaded:R,loading:h,halfChecked:k,dragOver:m,dragOverGapTop:v,dragOverGapBottom:g,pos:a,active:n});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),e}},BU3w:function(Ce,U,t){"use strict";t.d(U,"a",function(){return o});var E=t("MNnm"),C="rc-util-key";function J($){if($.attachTo)return $.attachTo;var j=document.querySelector("head");return j||document.body}function Q($){var j,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(E.a)())return null;var W=document.createElement("style");if((j=d.csp)===null||j===void 0?void 0:j.nonce){var N;W.nonce=(N=d.csp)===null||N===void 0?void 0:N.nonce}W.innerHTML=$;var O=J(d),K=O.firstChild;return d.prepend&&O.prepend?O.prepend(W):d.prepend&&K?O.insertBefore(W,K):O.appendChild(W),W}var y=new Map;function o($,j){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=J(d);if(!y.has(W)){var N=Q("",d),O=N.parentNode;y.set(W,O),O.removeChild(N)}var K=Array.from(y.get(W).children).find(function(p){return p.tagName==="STYLE"&&p[C]===j});if(K){var T,i;if(((T=d.csp)===null||T===void 0?void 0:T.nonce)&&K.nonce!==((i=d.csp)===null||i===void 0?void 0:i.nonce)){var s;K.nonce=(s=d.csp)===null||s===void 0?void 0:s.nonce}return K.innerHTML!==$&&(K.innerHTML=$),K}var x=Q($,d);return x[C]=j,x}},IBYe:function(Ce,U,t){"use strict";function E(C){return null}U.a=E},LdHM:function(Ce,U,t){"use strict";t.d(U,"b",function(){return R}),t.d(U,"a",function(){return k});var E=t("1OyB"),C=t("vuIU"),J=t("Ji7U"),Q=t("LK+K"),y=t("q1tI"),o=t("rePB"),$=t("Ff2n"),j=t("ODXe"),d=t("4IlW"),W=t("bX4T"),N=t("YrtM"),O=t("TSYQ"),K=t.n(O),T=t("+nKL"),i=t("8OUc"),s=function(A,q){var Z=A.prefixCls,re=A.id,te=A.flattenOptions,ae=A.childrenAsData,X=A.values,fe=A.searchValue,xe=A.multiple,pe=A.defaultActiveFirstOption,Pe=A.height,le=A.itemHeight,Te=A.notFoundContent,Le=A.open,ce=A.menuItemSelectedIcon,ge=A.virtual,ke=A.onSelect,we=A.onToggleOpen,Be=A.onActiveValue,Ye=A.onScroll,Ae=A.onMouseEnter,me="".concat(Z,"-item"),he=Object(N.a)(function(){return te},[Le,te],function(I,_){return _[0]&&I[1]!==_[1]}),Qe=y.useRef(null),et=function(_){_.preventDefault()},tt=function(_){Qe.current&&Qe.current.scrollTo({index:_})},st=function(_){for(var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,L=he.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(ee).map(function(q,Z){if(!y.isValidElement(q)||!q.type)return null;var re=q.type.isSelectOptGroup,te=q.key,ae=q.props,X=ae.children,fe=Object($.a)(ae,["children"]);return A||!re?g(q):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(te===null?Z:te,"__"),label:te},fe),{},{options:a(X)})}).filter(function(q){return q})}var n=t("2Qr1"),e=t("qNPg"),r=t("U8pU"),c=t("Kwbf"),u=t("WKfj");function D(ee){var A=ee.mode,q=ee.options,Z=ee.children,re=ee.backfill,te=ee.allowClear,ae=ee.placeholder,X=ee.getInputElement,fe=ee.showSearch,xe=ee.onSearch,pe=ee.defaultOpen,Pe=ee.autoFocus,le=ee.labelInValue,Te=ee.value,Le=ee.inputValue,ce=ee.optionLabelProp,ge=A==="multiple"||A==="tags",ke=fe!==void 0?fe:ge||A==="combobox",we=q||a(Z);if(Object(c.a)(A!=="tags"||we.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var Be=we.some(function(me){return me.options?me.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(A!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(A==="combobox"||!re,"`backfill` only works with `combobox` mode."),Object(c.a)(A==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(c.b)(A!=="combobox"||!X||!te||!ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!ke&&A!=="combobox"&&A!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||Pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Te!=null){var Ye=Object(u.d)(Te);Object(c.a)(!le||Ye.every(function(me){return Object(r.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ge||Array.isArray(Te),"`value` should be array when `mode` is `multiple` or `tags`")}if(Z){var Ae=null;Object(v.a)(Z).some(function(me){if(!y.isValidElement(me)||!me.type)return!1;var he=me.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!y.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=he,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=D,w=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:n.d,getLabeledValue:n.e,filterOptions:n.b,isValueDisabled:n.g,findValueOption:n.c,warningProps:f,fillOptionsWithMissingValue:n.a}),F=function(ee){Object(J.a)(q,ee);var A=Object(Q.a)(q);function q(){var Z;return Object(E.a)(this,q),Z=A.apply(this,arguments),Z.selectRef=y.createRef(),Z.focus=function(){Z.selectRef.current.focus()},Z.blur=function(){Z.selectRef.current.blur()},Z}return Object(C.a)(q,[{key:"render",value:function(){return y.createElement(w,Object.assign({ref:this.selectRef},this.props))}}]),q}(y.Component);F.Option=R,F.OptGroup=k;var V=F,ie=U.c=V},NvD2:function(Ce,U,t){"use strict";t.d(U,"a",function(){return o});var E=t("Kwbf");function C($,j){var d=new Set;return $.forEach(function(W){j.has(W)||d.add(W)}),d}function J($){var j=$||{},d=j.disabled,W=j.disableCheckbox,N=j.checkable;return!!(d||W)||N===!1}function Q($,j,d,W){for(var N=new Set($),O=new Set,K=0;K<=d;K+=1){var T=j.get(K)||new Set;T.forEach(function(p){var b=p.key,R=p.node,h=p.children,k=h===void 0?[]:h;N.has(b)&&!W(R)&&k.filter(function(m){return!W(m.node)}).forEach(function(m){N.add(m.key)})})}for(var i=new Set,s=d;s>=0;s-=1){var x=j.get(s)||new Set;x.forEach(function(p){var b=p.parent,R=p.node;if(W(R)||!p.parent||i.has(p.parent.key))return;if(W(p.parent.node)){i.add(b.key);return}var h=!0,k=!1;(b.children||[]).filter(function(m){return!W(m.node)}).forEach(function(m){var v=m.key,g=N.has(v);h&&!g&&(h=!1),!k&&(g||O.has(v))&&(k=!0)}),h&&N.add(b.key),k&&O.add(b.key),i.add(b.key)})}return{checkedKeys:Array.from(N),halfCheckedKeys:Array.from(C(O,N))}}function y($,j,d,W,N){for(var O=new Set($),K=new Set(j),T=0;T<=W;T+=1){var i=d.get(T)||new Set;i.forEach(function(b){var R=b.key,h=b.node,k=b.children,m=k===void 0?[]:k;!O.has(R)&&!K.has(R)&&!N(h)&&m.filter(function(v){return!N(v.node)}).forEach(function(v){O.delete(v.key)})})}K=new Set;for(var s=new Set,x=W;x>=0;x-=1){var p=d.get(x)||new Set;p.forEach(function(b){var R=b.parent,h=b.node;if(N(h)||!b.parent||s.has(b.parent.key))return;if(N(b.parent.node)){s.add(R.key);return}var k=!0,m=!1;(R.children||[]).filter(function(v){return!N(v.node)}).forEach(function(v){var g=v.key,a=O.has(g);k&&!a&&(k=!1),!m&&(a||K.has(g))&&(m=!0)}),k||O.delete(R.key),m&&K.add(R.key),s.add(R.key)})}return{checkedKeys:Array.from(O),halfCheckedKeys:Array.from(C(K,O))}}function o($,j,d,W){var N=[],O;W?O=W:O=J;var K=new Set($.filter(function(x){var p=!!d[x];return p||N.push(x),p})),T=new Map,i=0;Object.keys(d).forEach(function(x){var p=d[x],b=p.level,R=T.get(b);R||(R=new Set,T.set(b,R)),R.add(p),i=Math.max(i,b)}),Object(E.a)(!N.length,"Tree missing follow keys: ".concat(N.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return j===!0?s=Q(K,T,i,O):s=y(K,j.halfCheckedKeys,T,i,O),s}},OZM5:function(Ce,U,t){"use strict";t.d(U,"b",function(){return W}),t.d(U,"a",function(){return N}),t.d(U,"k",function(){return O}),t.d(U,"h",function(){return K}),t.d(U,"i",function(){return T}),t.d(U,"g",function(){return i}),t.d(U,"c",function(){return s}),t.d(U,"d",function(){return x}),t.d(U,"j",function(){return R}),t.d(U,"e",function(){return h}),t.d(U,"f",function(){return k});var E=t("KQm4"),C=t("U8pU"),J=t("Ff2n"),Q=t("q1tI"),y=t.n(Q),o=t("Kwbf"),$=t("WaYH"),j=.25,d=2;function W(m,v){var g=m.slice(),a=g.indexOf(v);return a>=0&&g.splice(a,1),g}function N(m,v){var g=m.slice();return g.indexOf(v)===-1&&g.push(v),g}function O(m){return m.split("-")}function K(m,v){return"".concat(m,"-").concat(v)}function T(m){return m&&m.type&&m.type.isTreeNode}function i(m,v){var g=[m],a=v[m];function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(r){var c=r.key,u=r.children;g.push(c),n(u)})}return n(a.children),g}function s(m,v){var g=m.clientY,a=v.selectHandle.getBoundingClientRect(),n=a.top,e=a.bottom,r=a.height,c=Math.max(r*j,d);return g<=n+c?-1:g>=e-c?1:0}function x(m,v){if(!m)return;var g=v.multiple;return g?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function b(m,v){if(!m)return[];var g=v||{},a=g.processProps,n=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(r){var c=r.children,u=Object(J.a)(r,["children"]),D=b(c,v);return y.a.createElement($.a,Object.assign({},n(u)),D)})}function R(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(C.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var g=new Set;function a(n){if(g.has(n))return;var e=v[n];if(!e)return;g.add(n);var r=e.parent,c=e.node;if(c.disabled)return;r&&a(r.key)}return(m||[]).forEach(function(n){a(n)}),Object(E.a)(g)}function k(m){var v={};return Object.keys(m).forEach(function(g){(g.startsWith("data-")||g.startsWith("aria-"))&&(v[g]=m[g])}),v}},"SA+Z":function(Ce,U,t){var E=t("wTVA"),C=t("EbDI"),J=t("ZhPi"),Q=t("wkBT");function y(o){return E(o)||C(o)||J(o)||Q()}Ce.exports=y,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},WaYH:function(Ce,U,t){"use strict";var E=t("rePB"),C=t("Ff2n"),J=t("VTBJ"),Q=t("1OyB"),y=t("vuIU"),o=t("JX7q"),$=t("Ji7U"),j=t("LK+K"),d=t("q1tI"),W=t("TSYQ"),N=t.n(W),O=t("sboe"),K=t("OZM5"),T=function(v){var g=v.prefixCls,a=v.level,n=v.isStart,e=v.isEnd;if(!a)return null;for(var r="".concat(g,"-indent-unit"),c=[],u=0;u1)Object(W.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(R.length===0)return Object(W.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=R[0];if(o.isValidElement(h)&&Object(N.c)(h)){var k=h.ref;R[0]=o.cloneElement(h,{ref:Object(N.a)(k,this.setChildNode)})}return R.length===1?R[0]:R.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(K,"-").concat(v)})})}}]),x}(o.Component);T.displayName="ResizeObserver",U.a=T},wCXF:function(Ce,U,t){"use strict";t.d(U,"a",function(){return tt});var E=t("rePB"),C=t("VTBJ"),J=t("KQm4"),Q=t("U8pU"),y=t("ODXe"),o=t("q1tI"),$=t("TSYQ"),j=t.n($),d=t("Gytx"),W=t.n(d),N=t("Kwbf"),O=t("t23M"),K=t("qx4F"),T=t("6eGT"),i=t("IBYe"),s=t("Ff2n"),x=t("c+Xe"),p=t("fyJ8"),b=t("biw7");function R(l,P,S,B,H){var I=S[l]||{},_=S[P]||{},M,L;I.fixed==="left"?M=B.left[l]:_.fixed==="right"&&(L=B.right[P]);var Y=!1,z=!1,G=!1,oe=!1,ne=S[P+1],de=S[l-1];if(H==="rtl"){if(M!==void 0){var je=de&&de.fixed==="left";oe=!je}else if(L!==void 0){var Ee=ne&&ne.fixed==="right";G=!Ee}}else if(M!==void 0){var Oe=ne&&ne.fixed==="left";Y=!Oe}else if(L!==void 0){var se=de&&de.fixed==="right";z=!se}return{fixLeft:M,fixRight:L,lastFixLeft:Y,firstFixRight:z,lastFixRight:G,firstFixLeft:oe,isSticky:B.isSticky}}var h=t("sR1s");function k(l){var P=l.cells,S=l.stickyOffsets,B=l.flattenColumns,H=l.rowComponent,I=l.cellComponent,_=l.onHeaderRow,M=l.index,L=o.useContext(b.a),Y=L.prefixCls,z=L.direction,G;_&&(G=_(P.map(function(ne){return ne.column}),M));var oe=Object(h.a)(P.map(function(ne){return ne.column}));return o.createElement(H,Object.assign({},G),P.map(function(ne,de){var je=ne.column,Ee=R(ne.colStart,ne.colEnd,B,S,z),Oe;return je&&je.onHeaderCell&&(Oe=ne.column.onHeaderCell(je)),o.createElement(p.a,Object.assign({},ne,{ellipsis:je.ellipsis,align:je.align,component:I,prefixCls:Y,key:oe[de]},Ee,{additionalProps:Oe,rowType:"header"}))}))}k.displayName="HeaderRow";var m=k;function v(l){var P=[];function S(_,M){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;P[L]=P[L]||[];var Y=M,z=_.filter(Boolean).map(function(G){var oe={key:G.key,className:G.className||"",children:G.title,column:G,colStart:Y},ne=1,de=G.children;return de&&de.length>0&&(ne=S(de,Y,L+1).reduce(function(je,Ee){return je+Ee},0),oe.hasSubColumns=!0),"colSpan"in G&&(ne=G.colSpan),"rowSpan"in G&&(oe.rowSpan=G.rowSpan),oe.colSpan=ne,oe.colEnd=oe.colStart+ne-1,P[L].push(oe),Y+=ne,ne});return z}S(l,0);for(var B=P.length,H=function(M){P[M].forEach(function(L){!("rowSpan"in L)&&!L.hasSubColumns&&(L.rowSpan=B-M)})},I=0;I=0;M-=1){var L=P[M],Y=S&&S[M],z=Y&&Y[n.a];(L||z||_)&&(H.unshift(o.createElement("col",Object.assign({key:M,style:{width:L,minWidth:L}},z))),_=!0)}return o.createElement("colgroup",null,H)}var r=e;function c(l,P){return Object(o.useMemo)(function(){for(var S=[],B=0;B1?He-1:0),dt=1;dt=G&&(Ne=G-oe),_({scrollLeft:Ne/G*(z+2)}),se.current.x=ue.pageX},We=function(){var ue=Object(Ye.b)(I.current).top,Ue=ue+I.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Ue-Object(K.a)()<=Fe||ue>=Fe-M?Oe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):Oe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},Me=function(ue){Oe(function(Ue){return Object(C.a)(Object(C.a)({},Ue),{},{scrollLeft:ue/z*G||0})})};return o.useImperativeHandle(S,function(){return{setScrollLeft:Me}}),o.useEffect(function(){var Re=Object(Be.a)(document.body,"mouseup",$e,!1),ue=Object(Be.a)(document.body,"mousemove",Ge,!1);return We(),function(){Re.remove(),ue.remove()}},[oe,Se]),o.useEffect(function(){var Re=Object(Be.a)(window,"scroll",We,!1),ue=Object(Be.a)(window,"resize",We,!1);return function(){Re.remove(),ue.remove()}},[]),o.useEffect(function(){Ee.isHiddenScrollBar||Oe(function(Re){var ue,Ue;return Object(C.a)(Object(C.a)({},Re),{},{scrollLeft:I.current.scrollLeft/((ue=I.current)===null||ue===void 0?void 0:ue.scrollWidth)*((Ue=I.current)===null||Ue===void 0?void 0:Ue.clientWidth)})})},[Ee.isHiddenScrollBar]),z<=G||!oe||Ee.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(K.a)(),width:G,bottom:M},className:"".concat(Y,"-sticky-scroll")},o.createElement("div",{onMouseDown:ye,ref:ne,className:j()("".concat(Y,"-sticky-scroll-bar"),Object(E.a)({},"".concat(Y,"-sticky-scroll-bar-active"),Se)),style:{width:"".concat(oe,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function he(l,P){return o.useMemo(function(){var S=!!l;return{isSticky:S,stickyClassName:S?"".concat(P,"-sticky-header"):"",offsetHeader:Object(Q.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(Q.a)(l)==="object"&&l.offsetScroll||0}},[l,P])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var P=l.children;return P},function(l,P){return W()(l.props,P.props)?l.pingLeft!==P.pingLeft||l.pingRight!==P.pingRight:!1});function Ve(l){var P,S=l.prefixCls,B=l.className,H=l.rowClassName,I=l.style,_=l.data,M=l.rowKey,L=l.scroll,Y=l.tableLayout,z=l.direction,G=l.title,oe=l.footer,ne=l.summary,de=l.id,je=l.showHeader,Ee=l.components,Oe=l.emptyText,se=l.onRow,Xe=l.onHeaderRow,De=l.internalHooks,Se=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,ye=_||Qe,Ge=!!ye.length,We=o.useState(0),Me=Object(y.a)(We,2),Re=Me[0],ue=Me[1];o.useEffect(function(){ue(Object(K.a)())});var Ue=o.useMemo(function(){return Object(h.c)(Ee,{})},[Ee]),Fe=o.useCallback(function(ve,be){return Object(h.b)(Ue,ve)||be},[Ue]),Je=o.useMemo(function(){return typeof M=="function"?M:function(ve){var be=ve&&ve[M];return be}},[M]),Ne=Object(n.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,St=Ne.indentSize,ht=jt||ke,gt=Kt||"children",Tt=o.useMemo(function(){return it?"row":l.expandable&&De===tt&&l.expandable.__PARENT_RENDER_ICON__||ye.some(function(ve){return ve&&Object(Q.a)(ve)==="object"&&ve[gt]})?"nest":!1},[!!it,ye]),Dt=o.useState(function(){return Pt||(rt?we(ye,Je,gt):[])}),ze=Object(y.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(ve){var be=Je(ve,ye.indexOf(ve)),Ke,qe=He.has(be);qe?(He.delete(be),Ke=Object(J.a)(He)):Ke=[].concat(Object(J.a)(He),[be]),at(Ke),ft&&ft(!qe,ve),mt&&mt(Ke)},[Je,He,ye,ft,mt]),dt=o.useState(0),Mt=Object(y.a)(dt,2),Ct=Mt[0],_t=Mt[1],vn=Object(X.b)(Object(C.a)(Object(C.a)(Object(C.a)({},l),Ne),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:z}),De===tt?Se:null),Yt=Object(y.a)(vn,2),Bt=Yt[0],_e=Yt[1],Lt=o.useMemo(function(){return{columns:Bt,flattenColumns:_e}},[Bt,_e]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(y.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(y.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(y.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(_e),an=jn.map(function(ve){return On.get(ve)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Te(on,_e.length,z),ot=L&&Object(h.d)(L.y),lt=L&&Object(h.d)(L.x),yt=lt&&_e.some(function(ve){var be=ve.fixed;return be}),rn=o.useRef(),Ut=he($e,S),Ot=Ut.isSticky,Rn=Ut.offsetHeader,Pn=Ut.offsetScroll,Nn=Ut.stickyClassName,kt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:L.y}),lt&&(kt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:L.x===!0?"auto":L.x,minWidth:"100%"});var ln=o.useCallback(function(ve,be){xn(function(Ke){var qe=new Map(Ke);return qe.set(ve,be),qe})},[]),Sn=Pe(null),sn=Object(y.a)(Sn,2),Tn=sn[0],cn=sn[1];function Ft(ve,be){if(!be)return;typeof be=="function"?be(ve):be.scrollLeft!==ve&&(be.scrollLeft=ve)}var vt=function(be){var Ke=be.currentTarget,qe=be.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Tn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(s),Object(C.a)(N(R).map(function(h){return Object(J.a)({fixed:b},h)}))):[].concat(Object(C.a)(s),[Object(J.a)(Object(J.a)({},x),{},{fixed:b})])},[])}function O(i){for(var s=!0,x=0;x=0;R-=1){var h=i[R];if(b&&h.fixed!=="right")b=!1;else if(!b&&h.fixed==="right"){Object($.a)(!1,"Index ".concat(R+1," of `columns` missing `fixed='right'` prop."));break}}}function K(i){return i.map(function(s){var x=s.fixed,p=Object(Q.a)(s,["fixed"]),b=x;return x==="left"?b="right":x==="right"&&(b="left"),Object(J.a)({fixed:b},p)})}function T(i,s){var x=i.prefixCls,p=i.columns,b=i.children,R=i.expandable,h=i.expandedKeys,k=i.getRowKey,m=i.onTriggerExpand,v=i.expandIcon,g=i.rowExpandable,a=i.expandIconColumnIndex,n=i.direction,e=i.expandRowByClick,r=y.useMemo(function(){return p||W(b)},[p,b]),c=y.useMemo(function(){if(R){var f,w=a||0,F=r[w],V=(f={},Object(E.a)(f,d.a,{className:"".concat(x,"-expand-icon-col")}),Object(E.a)(f,"title",""),Object(E.a)(f,"fixed",F?F.fixed:null),Object(E.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(E.a)(f,"render",function(A,q,Z){var re=k(q,Z),te=h.has(re),ae=g?g(q):!0,X=v({prefixCls:x,expanded:te,expandable:ae,record:q,onExpand:m});return e?y.createElement("span",{onClick:function(xe){return xe.stopPropagation()}},X):X}),f),ie=r.slice();return w>=0&&ie.splice(w,0,V),ie}return r},[R,r,k,h,v,n]),u=y.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,n]),D=y.useMemo(function(){return n==="rtl"?K(N(u)):N(u)},[u,n]);return[u,D]}U.b=T},"y0+3":function(Ce,U,t){"use strict";t.d(U,"a",function(){return N}),t.d(U,"b",function(){return K});var E=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},J={cssFloat:1,styleFloat:1,float:1};function Q(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function y(T,i,s){if(i=i.toLowerCase(),s==="auto"){if(i==="height")return T.offsetHeight;if(i==="width")return T.offsetWidth}return i in C||(C[i]=E.test(i)),C[i]?parseFloat(s)||0:s}function o(T,i){var s=arguments.length,x=Q(T);return i=J[i]?"cssFloat"in T.style?"cssFloat":"styleFloat":i,s===1?x:y(T,i,x[i]||T.style[i])}function $(T,i,s){var x=arguments.length;if(i=J[i]?"cssFloat"in T.style?"cssFloat":"styleFloat":i,x===3)return typeof s=="number"&&E.test(i)&&(s="".concat(s,"px")),T.style[i]=s,s;for(var p in i)i.hasOwnProperty(p)&&$(T,p,i[p]);return Q(T)}function j(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function d(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function W(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:i}}function N(){var T=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:i}}function O(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function K(T){var i=T.getBoundingClientRect(),s=document.documentElement;return{left:i.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[112,8],{"/Fp4":function(Ce,U,t){Ce.exports={flex_box_center:"flex_box_center___HN6MI",flex_space_between:"flex_space_between___3r4Gb",flex_box_vertical_center:"flex_box_vertical_center____a0pw",flex_box_center_end:"flex_box_center_end___q--gl",flex_box_column:"flex_box_column___28zUL",title:"title___2xhIc",statisticsWrp:"statisticsWrp___1thFu",statistics:"statistics___yQFce",infoWrp:"infoWrp___1I5LI",divwidth:"divwidth___1T67H"}},"55Ip":function(Ce,U,t){"use strict";t.d(U,"a",function(){return b}),t.d(U,"b",function(){return g});var E=t("Ty5D"),C=t("dI71"),J=t("q1tI"),Q=t.n(J),y=t("YS25"),o=t("17x9"),$=t.n(o),j=t("wx14"),d=t("zLVn"),W=t("9R94"),N=function(n){Object(C.a)(e,n);function e(){for(var c,u=arguments.length,D=new Array(u),f=0;f=0||u.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;n.setState({goInputText:""}),w(n.getValidValue())},n.go=function(u){var D=n.state.goInputText;if(D==="")return;(u.keyCode===S.ENTER||u.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return Object(y.a)(a,[{key:"getValidValue",value:function(){var e=this.state,r=e.goInputText,c=e.current;return!r||isNaN(r)?c:Number(r)}},{key:"getPageSizeOptions",value:function(){var e=this.props,r=e.pageSize,c=e.pageSizeOptions;return c.some(function(u){return u.toString()===r.toString()})?c:c.concat([r.toString()]).sort(function(u,D){var f=isNaN(Number(u))?0:Number(u),w=isNaN(Number(D))?0:Number(D);return f-w})}},{key:"render",value:function(){var e=this,r=this.props,c=r.pageSize,u=r.locale,D=r.rootPrefixCls,f=r.changeSize,w=r.quickGo,F=r.goButton,V=r.selectComponentClass,ie=r.buildOptionText,ee=r.selectPrefixCls,A=r.disabled,q=this.state.goInputText,Z="".concat(D,"-options"),re=V,te=null,ae=null,X=null;if(!f&&!w)return null;var fe=this.getPageSizeOptions();if(f&&re){var xe=fe.map(function(pe,Pe){return d.a.createElement(re.Option,{key:Pe,value:pe.toString()},(ie||e.buildOptionText)(pe))});te=d.a.createElement(re,{disabled:A,prefixCls:ee,showSearch:!1,className:"".concat(Z,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||fe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Pe){return Pe.parentNode}},xe)}return w&&(F&&(X=typeof F=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(Z,"-quick-jumper-button")},u.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),ae=d.a.createElement("div",{className:"".concat(Z,"-quick-jumper")},u.jump_to,d.a.createElement("input",{disabled:A,type:"text",value:q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,X)),d.a.createElement("li",{className:"".concat(Z)},te,ae)}}]),a}(d.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=i,x=t("N2Kk");function p(){}function b(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function R(v,g,a){return a}function h(v,g,a){var n=typeof v=="undefined"?g.pageSize:v;return Math.floor((a.total-1)/n)+1}var k=function(v){Object(o.a)(a,v);var g=Object($.a)(a);function a(n){var e;Object(Q.a)(this,a),e=g.call(this,n),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,w){var F=e.props.prefixCls,V=f||d.a.createElement("button",{type:"button","aria-label":w,className:"".concat(F,"-item-link")});return typeof f=="function"&&(V=d.a.createElement(f,Object(J.a)({},e.props))),V},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return b(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,w=f.showQuickJumper,F=f.pageSize,V=f.total;return V<=F?!1:w},e.handleKeyDown=function(f){(f.keyCode===S.ARROW_UP||f.keyCode===S.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var w=e.getValidValue(f),F=e.state.currentInputValue;w!==F&&e.setState({currentInputValue:w}),f.keyCode===S.ENTER?e.handleChange(w):f.keyCode===S.ARROW_UP?e.handleChange(w-1):f.keyCode===S.ARROW_DOWN&&e.handleChange(w+1)},e.changePageSize=function(f){var w=e.state.current,F=h(f,e.state,e.props);w=w>F?F:w,F===0&&(w=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:w,currentInputValue:w})),e.props.onShowSizeChange(w,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(w,f)},e.handleChange=function(f){var w=e.props.disabled,F=f;if(e.isValid(F)&&!w){var V=h(void 0,e.state,e.props);F>V?F=V:F<1&&(F=1),"current"in e.props||e.setState({current:F,currentInputValue:F});var ie=e.state.pageSize;return e.props.onChange(F,ie),F}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?F-2:0),ie=2;ie=c?D=c:D=Number(r),D}},{key:"getShowSizeChanger",value:function(){var e=this.props,r=e.showSizeChanger,c=e.total,u=e.totalBoundaryShowSizeChanger;return typeof r!="undefined"?r:c>u}},{key:"renderPrev",value:function(e){var r=this.props,c=r.prevIcon,u=r.itemRender,D=u(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(j.isValidElement)(D)?Object(j.cloneElement)(D,{disabled:f}):D}},{key:"renderNext",value:function(e){var r=this.props,c=r.nextIcon,u=r.itemRender,D=u(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(j.isValidElement)(D)?Object(j.cloneElement)(D,{disabled:f}):D}},{key:"render",value:function(){var e=this,r=this.props,c=r.prefixCls,u=r.className,D=r.style,f=r.disabled,w=r.hideOnSinglePage,F=r.total,V=r.locale,ie=r.showQuickJumper,ee=r.showLessItems,A=r.showTitle,q=r.showTotal,Z=r.simple,re=r.itemRender,te=r.showPrevNextJumpers,ae=r.jumpPrevIcon,X=r.jumpNextIcon,fe=r.selectComponentClass,xe=r.selectPrefixCls,pe=r.pageSizeOptions,Pe=this.state,le=Pe.current,Se=Pe.pageSize,Le=Pe.currentInputValue;if(w===!0&&F<=Se)return null;var ce=h(void 0,this.state,this.props),ge=[],ke=null,we=null,Be=null,Ye=null,Ae=null,me=ie&&ie.goButton,he=ee?1:2,Qe=le-1>0?le-1:0,et=le+1=he*2&&le!==1+2&&(ge[0]=Object(j.cloneElement)(ge[0],{className:"".concat(c,"-item-after-jump-prev")}),ge.unshift(ke)),ce-le>=he*2&&le!==ce-2&&(ge[ge.length-1]=Object(j.cloneElement)(ge[ge.length-1],{className:"".concat(c,"-item-before-jump-next")}),ge.push(we)),T!==1&&ge.unshift(Be),B!==ce&&ge.push(Ye)}var _=null;q&&(_=d.a.createElement("li",{className:"".concat(c,"-total-text")},q(F,[F===0?0:(le-1)*Se+1,le*Se>F?F:le*Se])));var M=!this.hasPrev()||!ce,L=!this.hasNext()||!ce;return d.a.createElement("ul",Object(E.a)({className:N()(c,u,Object(C.a)({},"".concat(c,"-disabled"),f)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},tt),_,d.a.createElement("li",{title:A?V.prev_page:null,onClick:this.prev,tabIndex:M?null:0,onKeyPress:this.runIfEnterPrev,className:N()("".concat(c,"-prev"),Object(C.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderPrev(Qe)),ge,d.a.createElement("li",{title:A?V.next_page:null,onClick:this.next,tabIndex:L?null:0,onKeyPress:this.runIfEnterNext,className:N()("".concat(c,"-next"),Object(C.a)({},"".concat(c,"-disabled"),L)),"aria-disabled":L},this.renderNext(et)),d.a.createElement(s,{disabled:f,locale:V,rootPrefixCls:c,selectComponentClass:fe,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:le,pageSize:Se,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var c={};if("current"in e&&(c.current=e.current,e.current!==r.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==r.pageSize){var u=r.current,D=h(e.pageSize,r,e);u=u>D?D:u,"current"in e||(c.current=u,c.currentInputValue=u),c.pageSize=e.pageSize}return c}}]),a}(d.a.Component);k.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:R,totalBoundaryShowSizeChanger:50};var m=k},"6RRn":function(Ce,U,t){"use strict";var E=t("wCXF"),C=t("n6Qo");t.d(U,"b",function(){return C.a});var J=t("IBYe"),Q=t("6eGT"),y=t("hW8S");t.d(U,"a",function(){return y.a}),U.c=E.b},"6eGT":function(Ce,U,t){"use strict";function E(C){return null}U.a=E},"815F":function(Ce,U,t){"use strict";t.d(U,"e",function(){return $}),t.d(U,"c",function(){return d}),t.d(U,"d",function(){return W}),t.d(U,"a",function(){return O}),t.d(U,"f",function(){return K}),t.d(U,"b",function(){return S});var E=t("KQm4"),C=t("VTBJ"),J=t("Ff2n"),Q=t("Zm9Q"),y=t("Kwbf"),o=t("OZM5");function $(i,s){return i!=null?i:s}function j(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(R){var h=R.key,k=R.children;Object(y.a)(h!=null,"Tree node must have a certain key: [".concat(b).concat(h,"]"));var m=String(h);Object(y.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(k,"".concat(b).concat(m," > "))})}x(i)}function d(i){function s(x){var p=Object(Q.a)(x);return p.map(function(b){if(!Object(o.i)(b))return Object(y.a)(!b,"Tree/TreeNode can only accept TreeNode as children."),null;var R=b.key,h=b.props,k=h.children,m=Object(J.a)(h,["children"]),v=Object(C.a)({key:R},m),g=s(k);return g.length&&(v.children=g),v}).filter(function(b){return b})}return s(i)}function W(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function b(R){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return R.map(function(k,m){var v=Object(o.h)(h?h.pos:"0",m),g=$(k.key,v),a=Object(C.a)(Object(C.a)({},k),{},{parent:h,pos:v,children:null,data:k,isStart:[].concat(Object(E.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(E.a)(h?h.isEnd:[]),[m===R.length-1])});return p.push(a),s===!0||x.has(g)?a.children=b(k.children||[],a):a.children=[],a})}return b(i),p}function N(i,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,k){return $(h.key,k)};function b(R,h,k){var m=R?R.children:i,v=R?Object(o.h)(k.pos,h):"0";if(R){var g=p(R,v),a={node:R,index:h,pos:v,key:g,parentPos:k.node?k.pos:null,level:k.level+1};s(a)}m&&m.forEach(function(n,e){b(n,e,{node:R,pos:v,level:k?k.level+1:-1})})}b(null)}function O(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,b=s.onProcessFinished,R=arguments.length>2?arguments[2]:void 0,h={},k={},m={posEntities:h,keyEntities:k};return x&&(m=x(m)||m),N(i,function(v){var g=v.node,a=v.index,n=v.pos,e=v.key,r=v.parentPos,c=v.level,u={node:g,index:a,key:e,pos:n,level:c},D=$(e,n);h[n]=u,k[D]=u,u.parent=h[r],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),p&&p(u,m)},R),b&&b(m),m}function K(i,s){var x=s.expandedKeys,p=s.selectedKeys,b=s.loadedKeys,R=s.loadingKeys,h=s.checkedKeys,k=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,g=s.keyEntities,a=g[i],n={eventKey:i,expanded:x.indexOf(i)!==-1,selected:p.indexOf(i)!==-1,loaded:b.indexOf(i)!==-1,loading:R.indexOf(i)!==-1,checked:h.indexOf(i)!==-1,halfChecked:k.indexOf(i)!==-1,pos:String(a?a.pos:""),dragOver:m===i&&v===0,dragOverGapTop:m===i&&v===-1,dragOverGapBottom:m===i&&v===1};return n}function S(i){var s=i.data,x=i.expanded,p=i.selected,b=i.checked,R=i.loaded,h=i.loading,k=i.halfChecked,m=i.dragOver,v=i.dragOverGapTop,g=i.dragOverGapBottom,a=i.pos,n=i.active,e=Object(C.a)(Object(C.a)({},s),{},{expanded:x,selected:p,checked:b,loaded:R,loading:h,halfChecked:k,dragOver:m,dragOverGapTop:v,dragOverGapBottom:g,pos:a,active:n});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),e}},BU3w:function(Ce,U,t){"use strict";t.d(U,"a",function(){return o});var E=t("MNnm"),C="rc-util-key";function J($){if($.attachTo)return $.attachTo;var j=document.querySelector("head");return j||document.body}function Q($){var j,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(E.a)())return null;var W=document.createElement("style");if((j=d.csp)===null||j===void 0?void 0:j.nonce){var N;W.nonce=(N=d.csp)===null||N===void 0?void 0:N.nonce}W.innerHTML=$;var O=J(d),K=O.firstChild;return d.prepend&&O.prepend?O.prepend(W):d.prepend&&K?O.insertBefore(W,K):O.appendChild(W),W}var y=new Map;function o($,j){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=J(d);if(!y.has(W)){var N=Q("",d),O=N.parentNode;y.set(W,O),O.removeChild(N)}var K=Array.from(y.get(W).children).find(function(p){return p.tagName==="STYLE"&&p[C]===j});if(K){var S,i;if(((S=d.csp)===null||S===void 0?void 0:S.nonce)&&K.nonce!==((i=d.csp)===null||i===void 0?void 0:i.nonce)){var s;K.nonce=(s=d.csp)===null||s===void 0?void 0:s.nonce}return K.innerHTML!==$&&(K.innerHTML=$),K}var x=Q($,d);return x[C]=j,x}},IBYe:function(Ce,U,t){"use strict";function E(C){return null}U.a=E},LdHM:function(Ce,U,t){"use strict";t.d(U,"b",function(){return R}),t.d(U,"a",function(){return k});var E=t("1OyB"),C=t("vuIU"),J=t("Ji7U"),Q=t("LK+K"),y=t("q1tI"),o=t("rePB"),$=t("Ff2n"),j=t("ODXe"),d=t("4IlW"),W=t("bX4T"),N=t("YrtM"),O=t("TSYQ"),K=t.n(O),S=t("+nKL"),i=t("8OUc"),s=function(A,q){var Z=A.prefixCls,re=A.id,te=A.flattenOptions,ae=A.childrenAsData,X=A.values,fe=A.searchValue,xe=A.multiple,pe=A.defaultActiveFirstOption,Pe=A.height,le=A.itemHeight,Se=A.notFoundContent,Le=A.open,ce=A.menuItemSelectedIcon,ge=A.virtual,ke=A.onSelect,we=A.onToggleOpen,Be=A.onActiveValue,Ye=A.onScroll,Ae=A.onMouseEnter,me="".concat(Z,"-item"),he=Object(N.a)(function(){return te},[Le,te],function(I,_){return _[0]&&I[1]!==_[1]}),Qe=y.useRef(null),et=function(_){_.preventDefault()},tt=function(_){Qe.current&&Qe.current.scrollTo({index:_})},st=function(_){for(var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,L=he.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(ee).map(function(q,Z){if(!y.isValidElement(q)||!q.type)return null;var re=q.type.isSelectOptGroup,te=q.key,ae=q.props,X=ae.children,fe=Object($.a)(ae,["children"]);return A||!re?g(q):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(te===null?Z:te,"__"),label:te},fe),{},{options:a(X)})}).filter(function(q){return q})}var n=t("2Qr1"),e=t("qNPg"),r=t("U8pU"),c=t("Kwbf"),u=t("WKfj");function D(ee){var A=ee.mode,q=ee.options,Z=ee.children,re=ee.backfill,te=ee.allowClear,ae=ee.placeholder,X=ee.getInputElement,fe=ee.showSearch,xe=ee.onSearch,pe=ee.defaultOpen,Pe=ee.autoFocus,le=ee.labelInValue,Se=ee.value,Le=ee.inputValue,ce=ee.optionLabelProp,ge=A==="multiple"||A==="tags",ke=fe!==void 0?fe:ge||A==="combobox",we=q||a(Z);if(Object(c.a)(A!=="tags"||we.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var Be=we.some(function(me){return me.options?me.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(A!=="combobox"||!ce,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(A==="combobox"||!re,"`backfill` only works with `combobox` mode."),Object(c.a)(A==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(c.b)(A!=="combobox"||!X||!te||!ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!ke&&A!=="combobox"&&A!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||Pe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Se!=null){var Ye=Object(u.d)(Se);Object(c.a)(!le||Ye.every(function(me){return Object(r.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ge||Array.isArray(Se),"`value` should be array when `mode` is `multiple` or `tags`")}if(Z){var Ae=null;Object(v.a)(Z).some(function(me){if(!y.isValidElement(me)||!me.type)return!1;var he=me.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!y.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=he,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=D,w=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:n.d,getLabeledValue:n.e,filterOptions:n.b,isValueDisabled:n.g,findValueOption:n.c,warningProps:f,fillOptionsWithMissingValue:n.a}),F=function(ee){Object(J.a)(q,ee);var A=Object(Q.a)(q);function q(){var Z;return Object(E.a)(this,q),Z=A.apply(this,arguments),Z.selectRef=y.createRef(),Z.focus=function(){Z.selectRef.current.focus()},Z.blur=function(){Z.selectRef.current.blur()},Z}return Object(C.a)(q,[{key:"render",value:function(){return y.createElement(w,Object.assign({ref:this.selectRef},this.props))}}]),q}(y.Component);F.Option=R,F.OptGroup=k;var V=F,ie=U.c=V},NvD2:function(Ce,U,t){"use strict";t.d(U,"a",function(){return o});var E=t("Kwbf");function C($,j){var d=new Set;return $.forEach(function(W){j.has(W)||d.add(W)}),d}function J($){var j=$||{},d=j.disabled,W=j.disableCheckbox,N=j.checkable;return!!(d||W)||N===!1}function Q($,j,d,W){for(var N=new Set($),O=new Set,K=0;K<=d;K+=1){var S=j.get(K)||new Set;S.forEach(function(p){var b=p.key,R=p.node,h=p.children,k=h===void 0?[]:h;N.has(b)&&!W(R)&&k.filter(function(m){return!W(m.node)}).forEach(function(m){N.add(m.key)})})}for(var i=new Set,s=d;s>=0;s-=1){var x=j.get(s)||new Set;x.forEach(function(p){var b=p.parent,R=p.node;if(W(R)||!p.parent||i.has(p.parent.key))return;if(W(p.parent.node)){i.add(b.key);return}var h=!0,k=!1;(b.children||[]).filter(function(m){return!W(m.node)}).forEach(function(m){var v=m.key,g=N.has(v);h&&!g&&(h=!1),!k&&(g||O.has(v))&&(k=!0)}),h&&N.add(b.key),k&&O.add(b.key),i.add(b.key)})}return{checkedKeys:Array.from(N),halfCheckedKeys:Array.from(C(O,N))}}function y($,j,d,W,N){for(var O=new Set($),K=new Set(j),S=0;S<=W;S+=1){var i=d.get(S)||new Set;i.forEach(function(b){var R=b.key,h=b.node,k=b.children,m=k===void 0?[]:k;!O.has(R)&&!K.has(R)&&!N(h)&&m.filter(function(v){return!N(v.node)}).forEach(function(v){O.delete(v.key)})})}K=new Set;for(var s=new Set,x=W;x>=0;x-=1){var p=d.get(x)||new Set;p.forEach(function(b){var R=b.parent,h=b.node;if(N(h)||!b.parent||s.has(b.parent.key))return;if(N(b.parent.node)){s.add(R.key);return}var k=!0,m=!1;(R.children||[]).filter(function(v){return!N(v.node)}).forEach(function(v){var g=v.key,a=O.has(g);k&&!a&&(k=!1),!m&&(a||K.has(g))&&(m=!0)}),k||O.delete(R.key),m&&K.add(R.key),s.add(R.key)})}return{checkedKeys:Array.from(O),halfCheckedKeys:Array.from(C(K,O))}}function o($,j,d,W){var N=[],O;W?O=W:O=J;var K=new Set($.filter(function(x){var p=!!d[x];return p||N.push(x),p})),S=new Map,i=0;Object.keys(d).forEach(function(x){var p=d[x],b=p.level,R=S.get(b);R||(R=new Set,S.set(b,R)),R.add(p),i=Math.max(i,b)}),Object(E.a)(!N.length,"Tree missing follow keys: ".concat(N.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return j===!0?s=Q(K,S,i,O):s=y(K,j.halfCheckedKeys,S,i,O),s}},OZM5:function(Ce,U,t){"use strict";t.d(U,"b",function(){return W}),t.d(U,"a",function(){return N}),t.d(U,"k",function(){return O}),t.d(U,"h",function(){return K}),t.d(U,"i",function(){return S}),t.d(U,"g",function(){return i}),t.d(U,"c",function(){return s}),t.d(U,"d",function(){return x}),t.d(U,"j",function(){return R}),t.d(U,"e",function(){return h}),t.d(U,"f",function(){return k});var E=t("KQm4"),C=t("U8pU"),J=t("Ff2n"),Q=t("q1tI"),y=t.n(Q),o=t("Kwbf"),$=t("WaYH"),j=.25,d=2;function W(m,v){var g=m.slice(),a=g.indexOf(v);return a>=0&&g.splice(a,1),g}function N(m,v){var g=m.slice();return g.indexOf(v)===-1&&g.push(v),g}function O(m){return m.split("-")}function K(m,v){return"".concat(m,"-").concat(v)}function S(m){return m&&m.type&&m.type.isTreeNode}function i(m,v){var g=[m],a=v[m];function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(r){var c=r.key,u=r.children;g.push(c),n(u)})}return n(a.children),g}function s(m,v){var g=m.clientY,a=v.selectHandle.getBoundingClientRect(),n=a.top,e=a.bottom,r=a.height,c=Math.max(r*j,d);return g<=n+c?-1:g>=e-c?1:0}function x(m,v){if(!m)return;var g=v.multiple;return g?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function b(m,v){if(!m)return[];var g=v||{},a=g.processProps,n=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(r){var c=r.children,u=Object(J.a)(r,["children"]),D=b(c,v);return y.a.createElement($.a,Object.assign({},n(u)),D)})}function R(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(C.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var g=new Set;function a(n){if(g.has(n))return;var e=v[n];if(!e)return;g.add(n);var r=e.parent,c=e.node;if(c.disabled)return;r&&a(r.key)}return(m||[]).forEach(function(n){a(n)}),Object(E.a)(g)}function k(m){var v={};return Object.keys(m).forEach(function(g){(g.startsWith("data-")||g.startsWith("aria-"))&&(v[g]=m[g])}),v}},"SA+Z":function(Ce,U,t){var E=t("wTVA"),C=t("EbDI"),J=t("ZhPi"),Q=t("wkBT");function y(o){return E(o)||C(o)||J(o)||Q()}Ce.exports=y,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},WaYH:function(Ce,U,t){"use strict";var E=t("rePB"),C=t("Ff2n"),J=t("VTBJ"),Q=t("1OyB"),y=t("vuIU"),o=t("JX7q"),$=t("Ji7U"),j=t("LK+K"),d=t("q1tI"),W=t("TSYQ"),N=t.n(W),O=t("sboe"),K=t("OZM5"),S=function(v){var g=v.prefixCls,a=v.level,n=v.isStart,e=v.isEnd;if(!a)return null;for(var r="".concat(g,"-indent-unit"),c=[],u=0;u1)Object(W.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(R.length===0)return Object(W.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=R[0];if(o.isValidElement(h)&&Object(N.c)(h)){var k=h.ref;R[0]=o.cloneElement(h,{ref:Object(N.a)(k,this.setChildNode)})}return R.length===1?R[0]:R.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(K,"-").concat(v)})})}}]),x}(o.Component);S.displayName="ResizeObserver",U.a=S},wCXF:function(Ce,U,t){"use strict";t.d(U,"a",function(){return tt});var E=t("rePB"),C=t("VTBJ"),J=t("KQm4"),Q=t("U8pU"),y=t("ODXe"),o=t("q1tI"),$=t("TSYQ"),j=t.n($),d=t("Gytx"),W=t.n(d),N=t("Kwbf"),O=t("t23M"),K=t("qx4F"),S=t("6eGT"),i=t("IBYe"),s=t("Ff2n"),x=t("c+Xe"),p=t("fyJ8"),b=t("biw7");function R(l,P,T,B,H){var I=T[l]||{},_=T[P]||{},M,L;I.fixed==="left"?M=B.left[l]:_.fixed==="right"&&(L=B.right[P]);var Y=!1,z=!1,G=!1,oe=!1,ne=T[P+1],de=T[l-1];if(H==="rtl"){if(M!==void 0){var je=de&&de.fixed==="left";oe=!je}else if(L!==void 0){var Ee=ne&&ne.fixed==="right";G=!Ee}}else if(M!==void 0){var Oe=ne&&ne.fixed==="left";Y=!Oe}else if(L!==void 0){var se=de&&de.fixed==="right";z=!se}return{fixLeft:M,fixRight:L,lastFixLeft:Y,firstFixRight:z,lastFixRight:G,firstFixLeft:oe,isSticky:B.isSticky}}var h=t("sR1s");function k(l){var P=l.cells,T=l.stickyOffsets,B=l.flattenColumns,H=l.rowComponent,I=l.cellComponent,_=l.onHeaderRow,M=l.index,L=o.useContext(b.a),Y=L.prefixCls,z=L.direction,G;_&&(G=_(P.map(function(ne){return ne.column}),M));var oe=Object(h.a)(P.map(function(ne){return ne.column}));return o.createElement(H,Object.assign({},G),P.map(function(ne,de){var je=ne.column,Ee=R(ne.colStart,ne.colEnd,B,T,z),Oe;return je&&je.onHeaderCell&&(Oe=ne.column.onHeaderCell(je)),o.createElement(p.a,Object.assign({},ne,{ellipsis:je.ellipsis,align:je.align,component:I,prefixCls:Y,key:oe[de]},Ee,{additionalProps:Oe,rowType:"header"}))}))}k.displayName="HeaderRow";var m=k;function v(l){var P=[];function T(_,M){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;P[L]=P[L]||[];var Y=M,z=_.filter(Boolean).map(function(G){var oe={key:G.key,className:G.className||"",children:G.title,column:G,colStart:Y},ne=1,de=G.children;return de&&de.length>0&&(ne=T(de,Y,L+1).reduce(function(je,Ee){return je+Ee},0),oe.hasSubColumns=!0),"colSpan"in G&&(ne=G.colSpan),"rowSpan"in G&&(oe.rowSpan=G.rowSpan),oe.colSpan=ne,oe.colEnd=oe.colStart+ne-1,P[L].push(oe),Y+=ne,ne});return z}T(l,0);for(var B=P.length,H=function(M){P[M].forEach(function(L){!("rowSpan"in L)&&!L.hasSubColumns&&(L.rowSpan=B-M)})},I=0;I=0;M-=1){var L=P[M],Y=T&&T[M],z=Y&&Y[n.a];(L||z||_)&&(H.unshift(o.createElement("col",Object.assign({key:M,style:{width:L,minWidth:L}},z))),_=!0)}return o.createElement("colgroup",null,H)}var r=e;function c(l,P){return Object(o.useMemo)(function(){for(var T=[],B=0;B1?He-1:0),dt=1;dt=G&&(Ne=G-oe),_({scrollLeft:Ne/G*(z+2)}),se.current.x=ue.pageX},We=function(){var ue=Object(Ye.b)(I.current).top,Ue=ue+I.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;Ue-Object(K.a)()<=Fe||ue>=Fe-M?Oe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):Oe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},Me=function(ue){Oe(function(Ue){return Object(C.a)(Object(C.a)({},Ue),{},{scrollLeft:ue/z*G||0})})};return o.useImperativeHandle(T,function(){return{setScrollLeft:Me}}),o.useEffect(function(){var Re=Object(Be.a)(document.body,"mouseup",$e,!1),ue=Object(Be.a)(document.body,"mousemove",Ge,!1);return We(),function(){Re.remove(),ue.remove()}},[oe,Te]),o.useEffect(function(){var Re=Object(Be.a)(window,"scroll",We,!1),ue=Object(Be.a)(window,"resize",We,!1);return function(){Re.remove(),ue.remove()}},[]),o.useEffect(function(){Ee.isHiddenScrollBar||Oe(function(Re){var ue,Ue;return Object(C.a)(Object(C.a)({},Re),{},{scrollLeft:I.current.scrollLeft/((ue=I.current)===null||ue===void 0?void 0:ue.scrollWidth)*((Ue=I.current)===null||Ue===void 0?void 0:Ue.clientWidth)})})},[Ee.isHiddenScrollBar]),z<=G||!oe||Ee.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(K.a)(),width:G,bottom:M},className:"".concat(Y,"-sticky-scroll")},o.createElement("div",{onMouseDown:ye,ref:ne,className:j()("".concat(Y,"-sticky-scroll-bar"),Object(E.a)({},"".concat(Y,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(oe,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function he(l,P){return o.useMemo(function(){var T=!!l;return{isSticky:T,stickyClassName:T?"".concat(P,"-sticky-header"):"",offsetHeader:Object(Q.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(Q.a)(l)==="object"&&l.offsetScroll||0}},[l,P])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var P=l.children;return P},function(l,P){return W()(l.props,P.props)?l.pingLeft!==P.pingLeft||l.pingRight!==P.pingRight:!1});function Ve(l){var P,T=l.prefixCls,B=l.className,H=l.rowClassName,I=l.style,_=l.data,M=l.rowKey,L=l.scroll,Y=l.tableLayout,z=l.direction,G=l.title,oe=l.footer,ne=l.summary,de=l.id,je=l.showHeader,Ee=l.components,Oe=l.emptyText,se=l.onRow,Xe=l.onHeaderRow,De=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,ye=_||Qe,Ge=!!ye.length,We=o.useState(0),Me=Object(y.a)(We,2),Re=Me[0],ue=Me[1];o.useEffect(function(){ue(Object(K.a)())});var Ue=o.useMemo(function(){return Object(h.c)(Ee,{})},[Ee]),Fe=o.useCallback(function(ve,be){return Object(h.b)(Ue,ve)||be},[Ue]),Je=o.useMemo(function(){return typeof M=="function"?M:function(ve){var be=ve&&ve[M];return be}},[M]),Ne=Object(n.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Tt=Ne.indentSize,ht=jt||ke,gt=Kt||"children",St=o.useMemo(function(){return it?"row":l.expandable&&De===tt&&l.expandable.__PARENT_RENDER_ICON__||ye.some(function(ve){return ve&&Object(Q.a)(ve)==="object"&&ve[gt]})?"nest":!1},[!!it,ye]),Dt=o.useState(function(){return Pt||(rt?we(ye,Je,gt):[])}),ze=Object(y.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(ve){var be=Je(ve,ye.indexOf(ve)),Ke,qe=He.has(be);qe?(He.delete(be),Ke=Object(J.a)(He)):Ke=[].concat(Object(J.a)(He),[be]),at(Ke),ft&&ft(!qe,ve),mt&&mt(Ke)},[Je,He,ye,ft,mt]),dt=o.useState(0),Mt=Object(y.a)(dt,2),Ct=Mt[0],_t=Mt[1],vn=Object(X.b)(Object(C.a)(Object(C.a)(Object(C.a)({},l),Ne),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:z}),De===tt?Te:null),Yt=Object(y.a)(vn,2),Bt=Yt[0],_e=Yt[1],Lt=o.useMemo(function(){return{columns:Bt,flattenColumns:_e}},[Bt,_e]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(y.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(y.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(y.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(_e),an=jn.map(function(ve){return On.get(ve)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Se(on,_e.length,z),ot=L&&Object(h.d)(L.y),lt=L&&Object(h.d)(L.x),yt=lt&&_e.some(function(ve){var be=ve.fixed;return be}),rn=o.useRef(),Ut=he($e,T),Ot=Ut.isSticky,Rn=Ut.offsetHeader,Pn=Ut.offsetScroll,Nn=Ut.stickyClassName,kt,wt,zt;ot&&(wt={overflowY:"scroll",maxHeight:L.y}),lt&&(kt={overflowX:"auto"},ot||(wt={overflowY:"hidden"}),zt={width:L.x===!0?"auto":L.x,minWidth:"100%"});var ln=o.useCallback(function(ve,be){xn(function(Ke){var qe=new Map(Ke);return qe.set(ve,be),qe})},[]),Tn=Pe(null),sn=Object(y.a)(Tn,2),Sn=sn[0],cn=sn[1];function Ft(ve,be){if(!be)return;typeof be=="function"?be(ve):be.scrollLeft!==ve&&(be.scrollLeft=ve)}var vt=function(be){var Ke=be.currentTarget,qe=be.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var wn=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(s),Object(C.a)(N(R).map(function(h){return Object(J.a)({fixed:b},h)}))):[].concat(Object(C.a)(s),[Object(J.a)(Object(J.a)({},x),{},{fixed:b})])},[])}function O(i){for(var s=!0,x=0;x=0;R-=1){var h=i[R];if(b&&h.fixed!=="right")b=!1;else if(!b&&h.fixed==="right"){Object($.a)(!1,"Index ".concat(R+1," of `columns` missing `fixed='right'` prop."));break}}}function K(i){return i.map(function(s){var x=s.fixed,p=Object(Q.a)(s,["fixed"]),b=x;return x==="left"?b="right":x==="right"&&(b="left"),Object(J.a)({fixed:b},p)})}function S(i,s){var x=i.prefixCls,p=i.columns,b=i.children,R=i.expandable,h=i.expandedKeys,k=i.getRowKey,m=i.onTriggerExpand,v=i.expandIcon,g=i.rowExpandable,a=i.expandIconColumnIndex,n=i.direction,e=i.expandRowByClick,r=y.useMemo(function(){return p||W(b)},[p,b]),c=y.useMemo(function(){if(R){var f,w=a||0,F=r[w],V=(f={},Object(E.a)(f,d.a,{className:"".concat(x,"-expand-icon-col")}),Object(E.a)(f,"title",""),Object(E.a)(f,"fixed",F?F.fixed:null),Object(E.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(E.a)(f,"render",function(A,q,Z){var re=k(q,Z),te=h.has(re),ae=g?g(q):!0,X=v({prefixCls:x,expanded:te,expandable:ae,record:q,onExpand:m});return e?y.createElement("span",{onClick:function(xe){return xe.stopPropagation()}},X):X}),f),ie=r.slice();return w>=0&&ie.splice(w,0,V),ie}return r},[R,r,k,h,v,n]),u=y.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,n]),D=y.useMemo(function(){return n==="rtl"?K(N(u)):N(u)},[u,n]);return[u,D]}U.b=S},"y0+3":function(Ce,U,t){"use strict";t.d(U,"a",function(){return N}),t.d(U,"b",function(){return K});var E=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},J={cssFloat:1,styleFloat:1,float:1};function Q(S){return S.nodeType===1?S.ownerDocument.defaultView.getComputedStyle(S,null):{}}function y(S,i,s){if(i=i.toLowerCase(),s==="auto"){if(i==="height")return S.offsetHeight;if(i==="width")return S.offsetWidth}return i in C||(C[i]=E.test(i)),C[i]?parseFloat(s)||0:s}function o(S,i){var s=arguments.length,x=Q(S);return i=J[i]?"cssFloat"in S.style?"cssFloat":"styleFloat":i,s===1?x:y(S,i,x[i]||S.style[i])}function $(S,i,s){var x=arguments.length;if(i=J[i]?"cssFloat"in S.style?"cssFloat":"styleFloat":i,x===3)return typeof s=="number"&&E.test(i)&&(s="".concat(s,"px")),S.style[i]=s,s;for(var p in i)i.hasOwnProperty(p)&&$(S,p,i[p]);return Q(S)}function j(S){return S===document.body?document.documentElement.clientWidth:S.offsetWidth}function d(S){return S===document.body?window.innerHeight||document.documentElement.clientHeight:S.offsetHeight}function W(){var S=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:S,height:i}}function N(){var S=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:S,height:i}}function O(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function K(S){var i=S.getBoundingClientRect(),s=document.documentElement;return{left:i.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Competitions__Detail.eb6e2d2d.async.js b/p__Competitions__Detail.eb6e2d2d.async.js index f77110a648..03be99653b 100644 --- a/p__Competitions__Detail.eb6e2d2d.async.js +++ b/p__Competitions__Detail.eb6e2d2d.async.js @@ -1,8 +1,8 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[118,5,6,7,8,10,16],{"+NIl":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";L.defineMode("stex",function(g,T){"use strict";function P(o,h){o.cmdState.push(h)}function p(o){return o.cmdState.length>0?o.cmdState[o.cmdState.length-1]:null}function v(o){var h=o.cmdState.pop();h&&h.closeBracket()}function _(o){for(var h=o.cmdState,m=h.length-1;m>=0;m--){var s=h[m];if(s.name=="DEFAULT")continue;return s}return{styleIdentifier:function(){return null}}}function b(o,h,m){return function(){this.name=o,this.bracketNo=0,this.style=h,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var d={};d.importmodule=b("importmodule","tag",["string","builtin"]),d.documentclass=b("documentclass","tag",["","atom"]),d.usepackage=b("usepackage","tag",["atom"]),d.begin=b("begin","tag",["atom"]),d.end=b("end","tag",["atom"]),d.label=b("label","tag",["atom"]),d.ref=b("ref","tag",["atom"]),d.eqref=b("eqref","tag",["atom"]),d.cite=b("cite","tag",["atom"]),d.bibitem=b("bibitem","tag",["atom"]),d.Bibitem=b("Bibitem","tag",["atom"]),d.RBibitem=b("RBibitem","tag",["atom"]),d.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function l(o,h){o.f=h}function n(o,h){var m;if(o.match(/^\\[a-zA-Z@]+/)){var s=o.current().slice(1);return m=d.hasOwnProperty(s)?d[s]:d.DEFAULT,m=new m,P(h,m),l(h,u),m.style}if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/\\]/))return"tag";if(o.match("\\["))return l(h,function(a,t){return c(a,t,"\\]")}),"keyword";if(o.match("\\("))return l(h,function(a,t){return c(a,t,"\\)")}),"keyword";if(o.match("$$"))return l(h,function(a,t){return c(a,t,"$$")}),"keyword";if(o.match("$"))return l(h,function(a,t){return c(a,t,"$")}),"keyword";var r=o.next();if(r=="%")return o.skipToEnd(),"comment";if(r=="}"||r=="]"){if(m=p(h),m)m.closeBracket(r),l(h,u);else return"error";return"bracket"}else return r=="{"||r=="["?(m=d.DEFAULT,m=new m,P(h,m),"bracket"):/\d/.test(r)?(o.eatWhile(/[\w.%]/),"atom"):(o.eatWhile(/[\w\-_]/),m=_(h),m.name=="begin"&&(m.argument=o.current()),m.styleIdentifier())}function c(o,h,m){if(o.eatSpace())return null;if(m&&o.match(m))return l(h,n),"keyword";if(o.match(/^\\[a-zA-Z@]+/))return"tag";if(o.match(/^[a-zA-Z]+/))return"variable-2";if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/]/))return"tag";if(o.match(/^[\^_&]/))return"tag";if(o.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(o.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var s=o.next();return s=="{"||s=="}"||s=="["||s=="]"||s=="("||s==")"?"bracket":s=="%"?(o.skipToEnd(),"comment"):"error"}function u(o,h){var m=o.peek(),s;return m=="{"||m=="["?(s=p(h),s.openBracket(m),o.eat(m),l(h,n),"bracket"):/[ \t\r]/.test(m)?(o.eat(m),null):(l(h,n),v(h),n(o,h))}return{startState:function(){var o=T.inMathMode?function(h,m){return c(h,m)}:n;return{cmdState:[],f:o}},copyState:function(o){return{cmdState:o.cmdState.slice(),f:o.f}},token:function(o,h){return h.f(o,h)},blankLine:function(o){o.f=n,o.cmdState.length=0},lineComment:"%"}}),L.defineMIME("text/x-stex","stex"),L.defineMIME("text/x-latex","stex")})},"+ua5":function(j,Y,D){},"/cxE":function(j,Y,D){"use strict";D.d(Y,"e",function(){return T}),D.d(Y,"f",function(){return P}),D.d(Y,"g",function(){return p}),D.d(Y,"d",function(){return _}),D.d(Y,"a",function(){return b}),D.d(Y,"b",function(){return d}),D.d(Y,"c",function(){return l});var L=function(){function n(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(function(){throw c.stack?new Error(c.message+` +(window.webpackJsonp=window.webpackJsonp||[]).push([[118,5,6,7,8,10,16],{"+NIl":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";L.defineMode("stex",function(g,T){"use strict";function P(o,h){o.cmdState.push(h)}function p(o){return o.cmdState.length>0?o.cmdState[o.cmdState.length-1]:null}function v(o){var h=o.cmdState.pop();h&&h.closeBracket()}function S(o){for(var h=o.cmdState,m=h.length-1;m>=0;m--){var s=h[m];if(s.name=="DEFAULT")continue;return s}return{styleIdentifier:function(){return null}}}function b(o,h,m){return function(){this.name=o,this.bracketNo=0,this.style=h,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var d={};d.importmodule=b("importmodule","tag",["string","builtin"]),d.documentclass=b("documentclass","tag",["","atom"]),d.usepackage=b("usepackage","tag",["atom"]),d.begin=b("begin","tag",["atom"]),d.end=b("end","tag",["atom"]),d.label=b("label","tag",["atom"]),d.ref=b("ref","tag",["atom"]),d.eqref=b("eqref","tag",["atom"]),d.cite=b("cite","tag",["atom"]),d.bibitem=b("bibitem","tag",["atom"]),d.Bibitem=b("Bibitem","tag",["atom"]),d.RBibitem=b("RBibitem","tag",["atom"]),d.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function l(o,h){o.f=h}function n(o,h){var m;if(o.match(/^\\[a-zA-Z@]+/)){var s=o.current().slice(1);return m=d.hasOwnProperty(s)?d[s]:d.DEFAULT,m=new m,P(h,m),l(h,u),m.style}if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/\\]/))return"tag";if(o.match("\\["))return l(h,function(a,t){return c(a,t,"\\]")}),"keyword";if(o.match("\\("))return l(h,function(a,t){return c(a,t,"\\)")}),"keyword";if(o.match("$$"))return l(h,function(a,t){return c(a,t,"$$")}),"keyword";if(o.match("$"))return l(h,function(a,t){return c(a,t,"$")}),"keyword";var r=o.next();if(r=="%")return o.skipToEnd(),"comment";if(r=="}"||r=="]"){if(m=p(h),m)m.closeBracket(r),l(h,u);else return"error";return"bracket"}else return r=="{"||r=="["?(m=d.DEFAULT,m=new m,P(h,m),"bracket"):/\d/.test(r)?(o.eatWhile(/[\w.%]/),"atom"):(o.eatWhile(/[\w\-_]/),m=S(h),m.name=="begin"&&(m.argument=o.current()),m.styleIdentifier())}function c(o,h,m){if(o.eatSpace())return null;if(m&&o.match(m))return l(h,n),"keyword";if(o.match(/^\\[a-zA-Z@]+/))return"tag";if(o.match(/^[a-zA-Z]+/))return"variable-2";if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/]/))return"tag";if(o.match(/^[\^_&]/))return"tag";if(o.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(o.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var s=o.next();return s=="{"||s=="}"||s=="["||s=="]"||s=="("||s==")"?"bracket":s=="%"?(o.skipToEnd(),"comment"):"error"}function u(o,h){var m=o.peek(),s;return m=="{"||m=="["?(s=p(h),s.openBracket(m),o.eat(m),l(h,n),"bracket"):/[ \t\r]/.test(m)?(o.eat(m),null):(l(h,n),v(h),n(o,h))}return{startState:function(){var o=T.inMathMode?function(h,m){return c(h,m)}:n;return{cmdState:[],f:o}},copyState:function(o){return{cmdState:o.cmdState.slice(),f:o.f}},token:function(o,h){return h.f(o,h)},blankLine:function(o){o.f=n,o.cmdState.length=0},lineComment:"%"}}),L.defineMIME("text/x-stex","stex"),L.defineMIME("text/x-latex","stex")})},"+ua5":function(j,Y,D){},"/cxE":function(j,Y,D){"use strict";D.d(Y,"e",function(){return T}),D.d(Y,"f",function(){return P}),D.d(Y,"g",function(){return p}),D.d(Y,"d",function(){return S}),D.d(Y,"a",function(){return b}),D.d(Y,"b",function(){return d}),D.d(Y,"c",function(){return l});var L=function(){function n(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(function(){throw c.stack?new Error(c.message+` -`+c.stack):c},0)}}return n.prototype.emit=function(c){this.listeners.forEach(function(u){u(c)})},n.prototype.onUnexpectedError=function(c){this.unexpectedErrorHandler(c),this.emit(c)},n.prototype.onUnexpectedExternalError=function(c){this.unexpectedErrorHandler(c)},n}(),g=new L;function T(n){_(n)||g.onUnexpectedError(n);return}function P(n){_(n)||g.onUnexpectedExternalError(n);return}function p(n){if(n instanceof Error){var c=n.name,u=n.message,o=n.stacktrace||n.stack;return{$isError:!0,name:c,message:u,stack:o}}return n}var v="Canceled";function _(n){return n instanceof Error&&n.name===v&&n.message===v}function b(){var n=new Error(v);return n.name=n.message,n}function d(n){return n?new Error("Illegal argument: "+n):new Error("Illegal argument")}function l(n){return n?new Error("Illegal state: "+n):new Error("Illegal state")}},"19Vz":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){L.defineOption("placeholder","",function(b,d,l){var n=l&&l!=L.Init;if(d&&!n)b.on("blur",p),b.on("change",v),b.on("swapDoc",v),L.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){P(b)}),v(b);else if(!d&&n){b.off("blur",p),b.off("change",v),b.off("swapDoc",v),L.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),g(b);var c=b.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}d&&!b.hasFocus()&&p(b)});function g(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function T(b){g(b);var d=b.state.placeholder=document.createElement("pre");d.style.cssText="height: 0; overflow: visible",d.style.direction=b.getOption("direction"),d.className="CodeMirror-placeholder CodeMirror-line-like";var l=b.getOption("placeholder");typeof l=="string"&&(l=document.createTextNode(l)),d.appendChild(l),b.display.lineSpace.insertBefore(d,b.display.lineSpace.firstChild)}function P(b){setTimeout(function(){var d=!1,l=b.getInputField();l.nodeName=="TEXTAREA"?d=!l.value:b.lineCount()==1&&(d=!/[^\u200b]/.test(l.querySelector(".CodeMirror-line").textContent)),d?T(b):g(b)},20)}function p(b){_(b)&&T(b)}function v(b){var d=b.getWrapperElement(),l=_(b);d.className=d.className.replace(" CodeMirror-empty","")+(l?" CodeMirror-empty":""),l?T(b):g(b)}function _(b){return b.lineCount()===1&&b.getLine(0)===""}})},"1ZF9":function(j,Y,D){j.exports=D.p+"static/Authorize.cc9c212f.png"},"1eCo":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";var g={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};L.defineMode("xml",function(P,p){var v=P.indentUnit,_={},b=p.htmlMode?g:T;for(var d in b)_[d]=b[d];for(var d in p)_[d]=p[d];var l,n;function c(S,M){function I(H){return M.tokenize=H,H(S,M)}var N=S.next();if(N=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?I(h("atom","]]>")):null:S.match("--")?I(h("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),I(m(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),M.tokenize=h("meta","?>"),"meta"):(l=S.eat("/")?"closeTag":"openTag",M.tokenize=u,"tag bracket");if(N=="&"){var G;return S.eat("#")?S.eat("x")?G=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):G=S.eatWhile(/[\d]/)&&S.eat(";"):G=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),G?"atom":"error"}else return S.eatWhile(/[^&<]/),null}c.isInText=!0;function u(S,M){var I=S.next();if(I==">"||I=="/"&&S.eat(">"))return M.tokenize=c,l=I==">"?"endTag":"selfcloseTag","tag bracket";if(I=="=")return l="equals",null;if(I=="<"){M.tokenize=c,M.state=t,M.tagName=M.tagStart=null;var N=M.tokenize(S,M);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(I)?(M.tokenize=o(I),M.stringStartCol=S.column(),M.tokenize(S,M)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(S){var M=function(I,N){for(;!I.eol();)if(I.next()==S){N.tokenize=u;break}return"string"};return M.isInAttribute=!0,M}function h(S,M){return function(I,N){for(;!I.eol();){if(I.match(M)){N.tokenize=c;break}I.next()}return S}}function m(S){return function(M,I){for(var N;(N=M.next())!=null;){if(N=="<")return I.tokenize=m(S+1),I.tokenize(M,I);if(N==">")if(S==1){I.tokenize=c;break}else return I.tokenize=m(S-1),I.tokenize(M,I)}return"meta"}}function s(S,M,I){this.prev=S.context,this.tagName=M,this.indent=S.indented,this.startOfLine=I,(_.doNotIndent.hasOwnProperty(M)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function r(S){S.context&&(S.context=S.context.prev)}function a(S,M){for(var I;;){if(!S.context)return;if(I=S.context.tagName,!_.contextGrabbers.hasOwnProperty(I)||!_.contextGrabbers[I].hasOwnProperty(M))return;r(S)}}function t(S,M,I){return S=="openTag"?(I.tagStart=M.column(),w):S=="closeTag"?E:t}function w(S,M,I){return S=="word"?(I.tagName=M.current(),n="tag",O):_.allowMissingTagName&&S=="endTag"?(n="tag bracket",O(S,M,I)):(n="error",w)}function E(S,M,I){if(S=="word"){var N=M.current();return I.context&&I.context.tagName!=N&&_.implicitlyClosed.hasOwnProperty(I.context.tagName)&&r(I),I.context&&I.context.tagName==N||_.matchClosing===!1?(n="tag",f):(n="tag error",k)}else return _.allowMissingTagName&&S=="endTag"?(n="tag bracket",f(S,M,I)):(n="error",k)}function f(S,M,I){return S!="endTag"?(n="error",f):(r(I),t)}function k(S,M,I){return n="error",f(S,M,I)}function O(S,M,I){if(S=="word")return n="attribute",C;if(S=="endTag"||S=="selfcloseTag"){var N=I.tagName,G=I.tagStart;return I.tagName=I.tagStart=null,S=="selfcloseTag"||_.autoSelfClosers.hasOwnProperty(N)?a(I,N):(a(I,N),I.context=new s(I,N,G==I.indented)),t}return n="error",O}function C(S,M,I){return S=="equals"?x:(_.allowMissing||(n="error"),O(S,M,I))}function x(S,M,I){return S=="string"?y:S=="word"&&_.allowUnquoted?(n="string",O):(n="error",O(S,M,I))}function y(S,M,I){return S=="string"?y:O(S,M,I)}return{startState:function(S){var M={tokenize:c,state:t,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(M.baseIndent=S),M},token:function(S,M){if(!M.tagName&&S.sol()&&(M.indented=S.indentation()),S.eatSpace())return null;l=null;var I=M.tokenize(S,M);return(I||l)&&I!="comment"&&(n=null,M.state=M.state(l||I,S,M),n&&(I=n=="error"?I+" error":n)),I},indent:function(S,M,I){var N=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+v;if(N&&N.noIndent)return L.Pass;if(S.tokenize!=u&&S.tokenize!=c)return I?I.match(/^(\s*)/)[0].length:0;if(S.tagName)return _.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+v*(_.multilineTagIndentFactor||1);if(_.alignCDATA&&/$/,blockCommentStart:"",configuration:_.htmlMode?"html":"xml",helperType:_.htmlMode?"html":"xml",skipAttribute:function(S){S.state==x&&(S.state=O)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var M=[],I=S.context;I;I=I.prev)I.tagName&&M.push(I.tagName);return M.reverse()}}}),L.defineMIME("text/xml","xml"),L.defineMIME("application/xml","xml"),L.mimeModes.hasOwnProperty("text/html")||L.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1uat":function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Hasher,p=g.x64,v=p.Word,_=p.WordArray,b=g.algo;function d(){return v.create.apply(v,arguments)}var l=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],n=[];(function(){for(var u=0;u<80;u++)n[u]=d()})();var c=b.SHA512=P.extend({_doReset:function(){this._hash=new _.init([new v.init(1779033703,4089235720),new v.init(3144134277,2227873595),new v.init(1013904242,4271175723),new v.init(2773480762,1595750129),new v.init(1359893119,2917565137),new v.init(2600822924,725511199),new v.init(528734635,4215389547),new v.init(1541459225,327033209)])},_doProcessBlock:function(u,o){for(var h=this._hash.words,m=h[0],s=h[1],r=h[2],a=h[3],t=h[4],w=h[5],E=h[6],f=h[7],k=m.high,O=m.low,C=s.high,x=s.low,y=r.high,S=r.low,M=a.high,I=a.low,N=t.high,G=t.low,H=w.high,B=w.low,K=E.high,U=E.low,W=f.high,X=f.low,ne=k,fe=O,me=C,Ae=x,De=y,ye=S,Oe=M,xe=I,ue=N,le=G,re=H,pe=B,ee=K,te=U,ce=W,q=X,Q=0;Q<80;Q++){var V,Z,be=n[Q];if(Q<16)Z=be.high=u[o+Q*2]|0,V=be.low=u[o+Q*2+1]|0;else{var ge=n[Q-15],Te=ge.high,Je=ge.low,rt=(Te>>>1|Je<<31)^(Te>>>8|Je<<24)^Te>>>7,nt=(Je>>>1|Te<<31)^(Je>>>8|Te<<24)^(Je>>>7|Te<<25),at=n[Q-2],ct=at.high,ht=at.low,He=(ct>>>19|ht<<13)^(ct<<3|ht>>>29)^ct>>>6,Re=(ht>>>19|ct<<13)^(ht<<3|ct>>>29)^(ht>>>6|ct<<26),tt=n[Q-7],ft=tt.high,Qe=tt.low,lt=n[Q-16],Ue=lt.high,Le=lt.low;V=nt+Qe,Z=rt+ft+(V>>>0>>0?1:0),V=V+Re,Z=Z+He+(V>>>0>>0?1:0),V=V+Le,Z=Z+Ue+(V>>>0>>0?1:0),be.high=Z,be.low=V}var Ie=ue&re^~ue&ee,Ce=le&pe^~le&te,_e=ne&me^ne&De^me&De,ke=fe&Ae^fe&ye^Ae&ye,Ne=(ne>>>28|fe<<4)^(ne<<30|fe>>>2)^(ne<<25|fe>>>7),et=(fe>>>28|ne<<4)^(fe<<30|ne>>>2)^(fe<<25|ne>>>7),$e=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),bt=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),gt=l[Q],Ut=gt.high,Nt=gt.low,hr=q+bt,mr=ce+$e+(hr>>>0>>0?1:0),hr=hr+Ce,mr=mr+Ie+(hr>>>0>>0?1:0),hr=hr+Nt,mr=mr+Ut+(hr>>>0>>0?1:0),hr=hr+V,mr=mr+Z+(hr>>>0>>0?1:0),_t=et+ke,Yr=Ne+_e+(_t>>>0>>0?1:0);ce=ee,q=te,ee=re,te=pe,re=ue,pe=le,le=xe+hr|0,ue=Oe+mr+(le>>>0>>0?1:0)|0,Oe=De,xe=ye,De=me,ye=Ae,me=ne,Ae=fe,fe=hr+_t|0,ne=mr+Yr+(fe>>>0
                  >>0?1:0)|0}O=m.low=O+fe,m.high=k+ne+(O>>>0>>0?1:0),x=s.low=x+Ae,s.high=C+me+(x>>>0>>0?1:0),S=r.low=S+ye,r.high=y+De+(S>>>0>>0?1:0),I=a.low=I+xe,a.high=M+Oe+(I>>>0>>0?1:0),G=t.low=G+le,t.high=N+ue+(G>>>0>>0?1:0),B=w.low=B+pe,w.high=H+re+(B>>>0>>0?1:0),U=E.low=U+te,E.high=K+ee+(U>>>0>>0?1:0),X=f.low=X+q,f.high=W+ce+(X>>>0>>0?1:0)},_doFinalize:function(){var u=this._data,o=u.words,h=this._nDataBytes*8,m=u.sigBytes*8;o[m>>>5]|=128<<24-m%32,o[(m+128>>>10<<5)+30]=Math.floor(h/4294967296),o[(m+128>>>10<<5)+31]=h,u.sigBytes=o.length*4,this._process();var s=this._hash.toX32();return s},clone:function(){var u=P.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});g.SHA512=P._createHelper(c),g.HmacSHA512=P._createHmacHelper(c)}(),L.SHA512})},"24hK":function(j,Y,D){"use strict";D.d(Y,"a",function(){return T});var L=D("JYp7"),g=function(){function P(p){this.element=p,this.next=P.Undefined,this.prev=P.Undefined}return P.Undefined=new P(void 0),P}(),T=function(){function P(){this._first=g.Undefined,this._last=g.Undefined,this._size=0}return Object.defineProperty(P.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),P.prototype.isEmpty=function(){return this._first===g.Undefined},P.prototype.clear=function(){this._first=g.Undefined,this._last=g.Undefined,this._size=0},P.prototype.unshift=function(p){return this._insert(p,!1)},P.prototype.push=function(p){return this._insert(p,!0)},P.prototype._insert=function(p,v){var _=this,b=new g(p);if(this._first===g.Undefined)this._first=b,this._last=b;else if(v){var d=this._last;this._last=b,b.prev=d,d.next=b}else{var l=this._first;this._first=b,b.next=l,l.prev=b}this._size+=1;var n=!1;return function(){n||(n=!0,_._remove(b))}},P.prototype.shift=function(){if(this._first===g.Undefined)return;var p=this._first.element;return this._remove(this._first),p},P.prototype.pop=function(){if(this._last===g.Undefined)return;var p=this._last.element;return this._remove(this._last),p},P.prototype._remove=function(p){if(p.prev!==g.Undefined&&p.next!==g.Undefined){var v=p.prev;v.next=p.next,p.next.prev=v}else p.prev===g.Undefined&&p.next===g.Undefined?(this._first=g.Undefined,this._last=g.Undefined):p.next===g.Undefined?(this._last=this._last.prev,this._last.next=g.Undefined):p.prev===g.Undefined&&(this._first=this._first.next,this._first.prev=g.Undefined);this._size-=1},P.prototype.iterator=function(){var p,v=this._first;return{next:function(){return v===g.Undefined?L.c:(p?p.value=v.element:p={done:!1,value:v.element},v=v.next,p)}}},P.prototype.toArray=function(){for(var p=[],v=this._first;v!==g.Undefined;v=v.next)p.push(v.element);return p},P}()},"3y9D":function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=T.Hasher,v=g.algo,_=[],b=v.SHA1=p.extend({_doReset:function(){this._hash=new P.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,l){for(var n=this._hash.words,c=n[0],u=n[1],o=n[2],h=n[3],m=n[4],s=0;s<80;s++){if(s<16)_[s]=d[l+s]|0;else{var r=_[s-3]^_[s-8]^_[s-14]^_[s-16];_[s]=r<<1|r>>>31}var a=(c<<5|c>>>27)+m+_[s];s<20?a+=(u&o|~u&h)+1518500249:s<40?a+=(u^o^h)+1859775393:s<60?a+=(u&o|u&h|o&h)-1894007588:a+=(u^o^h)-899497514,m=h,h=o,o=u<<30|u>>>2,u=c,c=a}n[0]=n[0]+c|0,n[1]=n[1]+u|0,n[2]=n[2]+o|0,n[3]=n[3]+h|0,n[4]=n[4]+m|0},_doFinalize:function(){var d=this._data,l=d.words,n=this._nDataBytes*8,c=d.sigBytes*8;return l[c>>>5]|=128<<24-c%32,l[(c+64>>>9<<4)+14]=Math.floor(n/4294967296),l[(c+64>>>9<<4)+15]=n,d.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var d=p.clone.call(this);return d._hash=this._hash.clone(),d}});g.SHA1=p._createHelper(b),g.HmacSHA1=p._createHmacHelper(b)}(),L.SHA1})},4:function(j,Y){},"55Ip":function(j,Y,D){"use strict";D.d(Y,"a",function(){return a}),D.d(Y,"b",function(){return O});var L=D("Ty5D"),g=D("dI71"),T=D("q1tI"),P=D.n(T),p=D("YS25"),v=D("17x9"),_=D.n(v),b=D("wx14"),d=D("zLVn"),l=D("9R94"),n=function(x){Object(g.a)(y,x);function y(){for(var M,I=arguments.length,N=new Array(I),G=0;G>>24)&16711935|(t<<24|t>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=s[a];E.high^=w,E.low^=t}for(var f=0;f<24;f++){for(var k=0;k<5;k++){for(var O=0,C=0,x=0;x<5;x++){var E=s[k+5*x];O^=E.high,C^=E.low}var y=u[k];y.high=O,y.low=C}for(var k=0;k<5;k++)for(var S=u[(k+4)%5],M=u[(k+1)%5],I=M.high,N=M.low,O=S.high^(I<<1|N>>>31),C=S.low^(N<<1|I>>>31),x=0;x<5;x++){var E=s[k+5*x];E.high^=O,E.low^=C}for(var G=1;G<25;G++){var O,C,E=s[G],H=E.high,B=E.low,K=l[G];K<32?(O=H<>>32-K,C=B<>>32-K):(O=B<>>64-K,C=H<>>64-K);var U=u[n[G]];U.high=O,U.low=C}var W=u[0],X=s[0];W.high=X.high,W.low=X.low;for(var k=0;k<5;k++)for(var x=0;x<5;x++){var G=k+5*x,E=s[G],ne=u[G],fe=u[(k+1)%5+5*x],me=u[(k+2)%5+5*x];E.high=ne.high^~fe.high&me.high,E.low=ne.low^~fe.low&me.low}var E=s[0],Ae=c[f];E.high^=Ae.high,E.low^=Ae.low}},_doFinalize:function(){var h=this._data,m=h.words,s=this._nDataBytes*8,r=h.sigBytes*8,a=this.blockSize*32;m[r>>>5]|=1<<24-r%32,m[(g.ceil((r+1)/a)*a>>>5)-1]|=128,h.sigBytes=m.length*4,this._process();for(var t=this._state,w=this.cfg.outputLength/8,E=w/8,f=[],k=0;k>>24)&16711935|(C<<24|C>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,f.push(x),f.push(C)}return new p.init(f,w)},clone:function(){for(var h=v.clone.call(this),m=h._state=this._state.slice(0),s=0;s<25;s++)m[s]=m[s].clone();return h}});T.SHA3=v._createHelper(o),T.HmacSHA3=v._createHmacHelper(o)}(Math),L.SHA3})},"6+eU":function(j,Y,D){"use strict";D.d(Y,"a",function(){return f});var L=D("wx14"),g=D("rePB"),T=D("VTBJ"),P=D("1OyB"),p=D("vuIU"),v=D("Ji7U"),_=D("LK+K"),b=D("q1tI"),d=D.n(b),l=D("TSYQ"),n=D.n(l),c=function(O){var C,x="".concat(O.rootPrefixCls,"-item"),y=n()(x,"".concat(x,"-").concat(O.page),(C={},Object(g.a)(C,"".concat(x,"-active"),O.active),Object(g.a)(C,O.className,!!O.className),Object(g.a)(C,"".concat(x,"-disabled"),!O.page),C)),S=function(){O.onClick(O.page)},M=function(N){O.onKeyPress(N,O.onClick,O.page)};return d.a.createElement("li",{title:O.showTitle?O.page:null,className:y,onClick:S,onKeyPress:M,tabIndex:"0"},O.itemRender(O.page,"page",d.a.createElement("a",{rel:"nofollow"},O.page)))},u=c,o={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(k){Object(v.a)(C,k);var O=Object(_.a)(C);function C(){var x;Object(P.a)(this,C);for(var y=arguments.length,S=new Array(y),M=0;M=0||I.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;x.setState({goInputText:""}),H(x.getValidValue())},x.go=function(I){var N=x.state.goInputText;if(N==="")return;(I.keyCode===o.ENTER||I.type==="click")&&(x.setState({goInputText:""}),x.props.quickGo(x.getValidValue()))},x}return Object(p.a)(C,[{key:"getValidValue",value:function(){var y=this.state,S=y.goInputText,M=y.current;return!S||isNaN(S)?M:Number(S)}},{key:"getPageSizeOptions",value:function(){var y=this.props,S=y.pageSize,M=y.pageSizeOptions;return M.some(function(I){return I.toString()===S.toString()})?M:M.concat([S.toString()]).sort(function(I,N){var G=isNaN(Number(I))?0:Number(I),H=isNaN(Number(N))?0:Number(N);return G-H})}},{key:"render",value:function(){var y=this,S=this.props,M=S.pageSize,I=S.locale,N=S.rootPrefixCls,G=S.changeSize,H=S.quickGo,B=S.goButton,K=S.selectComponentClass,U=S.buildOptionText,W=S.selectPrefixCls,X=S.disabled,ne=this.state.goInputText,fe="".concat(N,"-options"),me=K,Ae=null,De=null,ye=null;if(!G&&!H)return null;var Oe=this.getPageSizeOptions();if(G&&me){var xe=Oe.map(function(ue,le){return d.a.createElement(me.Option,{key:le,value:ue.toString()},(U||y.buildOptionText)(ue))});Ae=d.a.createElement(me,{disabled:X,prefixCls:W,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},xe)}return H&&(B&&(ye=typeof B=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:X,className:"".concat(fe,"-quick-jumper-button")},I.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),De=d.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},I.jump_to,d.a.createElement("input",{disabled:X,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),I.page,ye)),d.a.createElement("li",{className:"".concat(fe)},Ae,De)}}]),C}(d.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=h,s=D("N2Kk");function r(){}function a(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function t(k,O,C){return C}function w(k,O,C){var x=typeof k=="undefined"?O.pageSize:k;return Math.floor((C.total-1)/x)+1}var E=function(k){Object(v.a)(C,k);var O=Object(_.a)(C);function C(x){var y;Object(P.a)(this,C),y=O.call(this,x),y.getJumpPrevPage=function(){return Math.max(1,y.state.current-(y.props.showLessItems?3:5))},y.getJumpNextPage=function(){return Math.min(w(void 0,y.state,y.props),y.state.current+(y.props.showLessItems?3:5))},y.getItemIcon=function(G,H){var B=y.props.prefixCls,K=G||d.a.createElement("button",{type:"button","aria-label":H,className:"".concat(B,"-item-link")});return typeof G=="function"&&(K=d.a.createElement(G,Object(T.a)({},y.props))),K},y.savePaginationNode=function(G){y.paginationNode=G},y.isValid=function(G){return a(G)&&G!==y.state.current},y.shouldDisplayQuickJumper=function(){var G=y.props,H=G.showQuickJumper,B=G.pageSize,K=G.total;return K<=B?!1:H},y.handleKeyDown=function(G){(G.keyCode===o.ARROW_UP||G.keyCode===o.ARROW_DOWN)&&G.preventDefault()},y.handleKeyUp=function(G){var H=y.getValidValue(G),B=y.state.currentInputValue;H!==B&&y.setState({currentInputValue:H}),G.keyCode===o.ENTER?y.handleChange(H):G.keyCode===o.ARROW_UP?y.handleChange(H-1):G.keyCode===o.ARROW_DOWN&&y.handleChange(H+1)},y.changePageSize=function(G){var H=y.state.current,B=w(G,y.state,y.props);H=H>B?B:H,B===0&&(H=y.state.current),typeof G=="number"&&("pageSize"in y.props||y.setState({pageSize:G}),"current"in y.props||y.setState({current:H,currentInputValue:H})),y.props.onShowSizeChange(H,G),"onChange"in y.props&&y.props.onChange&&y.props.onChange(H,G)},y.handleChange=function(G){var H=y.props.disabled,B=G;if(y.isValid(B)&&!H){var K=w(void 0,y.state,y.props);B>K?B=K:B<1&&(B=1),"current"in y.props||y.setState({current:B,currentInputValue:B});var U=y.state.pageSize;return y.props.onChange(B,U),B}return y.state.current},y.prev=function(){y.hasPrev()&&y.handleChange(y.state.current-1)},y.next=function(){y.hasNext()&&y.handleChange(y.state.current+1)},y.jumpPrev=function(){y.handleChange(y.getJumpPrevPage())},y.jumpNext=function(){y.handleChange(y.getJumpNextPage())},y.hasPrev=function(){return y.state.current>1},y.hasNext=function(){return y.state.current2?B-2:0),U=2;U=M?N=M:N=Number(S),N}},{key:"getShowSizeChanger",value:function(){var y=this.props,S=y.showSizeChanger,M=y.total,I=y.totalBoundaryShowSizeChanger;return typeof S!="undefined"?S:M>I}},{key:"renderPrev",value:function(y){var S=this.props,M=S.prevIcon,I=S.itemRender,N=I(y,"prev",this.getItemIcon(M,"prev page")),G=!this.hasPrev();return Object(b.isValidElement)(N)?Object(b.cloneElement)(N,{disabled:G}):N}},{key:"renderNext",value:function(y){var S=this.props,M=S.nextIcon,I=S.itemRender,N=I(y,"next",this.getItemIcon(M,"next page")),G=!this.hasNext();return Object(b.isValidElement)(N)?Object(b.cloneElement)(N,{disabled:G}):N}},{key:"render",value:function(){var y=this,S=this.props,M=S.prefixCls,I=S.className,N=S.style,G=S.disabled,H=S.hideOnSinglePage,B=S.total,K=S.locale,U=S.showQuickJumper,W=S.showLessItems,X=S.showTitle,ne=S.showTotal,fe=S.simple,me=S.itemRender,Ae=S.showPrevNextJumpers,De=S.jumpPrevIcon,ye=S.jumpNextIcon,Oe=S.selectComponentClass,xe=S.selectPrefixCls,ue=S.pageSizeOptions,le=this.state,re=le.current,pe=le.pageSize,ee=le.currentInputValue;if(H===!0&&B<=pe)return null;var te=w(void 0,this.state,this.props),ce=[],q=null,Q=null,V=null,Z=null,be=null,ge=U&&U.goButton,Te=W?1:2,Je=re-1>0?re-1:0,rt=re+1=Te*2&&re!==1+2&&(ce[0]=Object(b.cloneElement)(ce[0],{className:"".concat(M,"-item-after-jump-prev")}),ce.unshift(q)),te-re>=Te*2&&re!==te-2&&(ce[ce.length-1]=Object(b.cloneElement)(ce[ce.length-1],{className:"".concat(M,"-item-before-jump-next")}),ce.push(Q)),tt!==1&&ce.unshift(V),ft!==te&&ce.push(Z)}var Ue=null;ne&&(Ue=d.a.createElement("li",{className:"".concat(M,"-total-text")},ne(B,[B===0?0:(re-1)*pe+1,re*pe>B?B:re*pe])));var Le=!this.hasPrev()||!te,Ie=!this.hasNext()||!te;return d.a.createElement("ul",Object(L.a)({className:n()(M,I,Object(g.a)({},"".concat(M,"-disabled"),G)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},nt),Ue,d.a.createElement("li",{title:X?K.prev_page:null,onClick:this.prev,tabIndex:Le?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(M,"-prev"),Object(g.a)({},"".concat(M,"-disabled"),Le)),"aria-disabled":Le},this.renderPrev(Je)),ce,d.a.createElement("li",{title:X?K.next_page:null,onClick:this.next,tabIndex:Ie?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(M,"-next"),Object(g.a)({},"".concat(M,"-disabled"),Ie)),"aria-disabled":Ie},this.renderNext(rt)),d.a.createElement(m,{disabled:G,locale:K,rootPrefixCls:M,selectComponentClass:Oe,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:re,pageSize:pe,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(y,S){var M={};if("current"in y&&(M.current=y.current,y.current!==S.current&&(M.currentInputValue=M.current)),"pageSize"in y&&y.pageSize!==S.pageSize){var I=S.current,N=w(y.pageSize,S,y);I=I>N?N:I,"current"in y||(M.current=I,M.currentInputValue=I),M.pageSize=y.pageSize}return M}}]),C}(d.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:s.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var f=E},"6RRn":function(j,Y,D){"use strict";var L=D("wCXF"),g=D("n6Qo");D.d(Y,"b",function(){return g.a});var T=D("IBYe"),P=D("6eGT"),p=D("hW8S");D.d(Y,"a",function(){return p.a}),Y.c=L.b},"6eGT":function(j,Y,D){"use strict";function L(g){return null}Y.a=L},"746U":function(j,Y,D){"use strict";D.d(Y,"d",function(){return g}),D.d(Y,"j",function(){return T}),D.d(Y,"i",function(){return P}),D.d(Y,"h",function(){return p}),D.d(Y,"e",function(){return v}),D.d(Y,"k",function(){return _}),D.d(Y,"l",function(){return b}),D.d(Y,"a",function(){return d}),D.d(Y,"f",function(){return n}),D.d(Y,"g",function(){return c}),D.d(Y,"m",function(){return u}),D.d(Y,"c",function(){return m}),D.d(Y,"b",function(){return s}),D.d(Y,"n",function(){return r}),D.d(Y,"o",function(){return a});var L={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function g(t){return Array.isArray?Array.isArray(t):!!(t&&typeof t.length===L.number&&t.constructor===Array)}function T(t){return typeof t===L.string||t instanceof String}function P(t){return typeof t===L.object&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function p(t){return(typeof t===L.number||t instanceof Number)&&!isNaN(t)}function v(t){return t===!0||t===!1}function _(t){return typeof t===L.undefined}function b(t){return _(t)||t===null}function d(t,w){if(!t)throw new Error(w?"Unexpected type, expected '"+w+"'":"Unexpected type")}var l=Object.prototype.hasOwnProperty;function n(t){if(!P(t))return!1;for(var w in t)if(l.call(t,w))return!1;return!0}function c(t){return typeof t===L.function}function u(t,w){for(var E=Math.min(t.length,w.length),f=0;f1&&arguments[1]!==void 0?arguments[1]:0,h=(_[u[o+0]]+_[u[o+1]]+_[u[o+2]]+_[u[o+3]]+"-"+_[u[o+4]]+_[u[o+5]]+"-"+_[u[o+6]]+_[u[o+7]]+"-"+_[u[o+8]]+_[u[o+9]]+"-"+_[u[o+10]]+_[u[o+11]]+_[u[o+12]]+_[u[o+13]]+_[u[o+14]]+_[u[o+15]]).toLowerCase();if(!v(h))throw TypeError("Stringified UUID is invalid");return h}var l=d;function n(u,o,h){u=u||{};var m=u.random||(u.rng||T)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,o){h=h||0;for(var s=0;s<16;++s)o[h+s]=m[s];return o}return l(m)}var c=Y.a=n},"7ahc":function(j,Y,D){"use strict";D.d(Y,"a",function(){return w});var L=D("k1fw"),g=D("0Owb"),T=D("+L6B"),P=D("2/Rp"),p=D("y8nQ"),v=D("Vl3Y"),_=D("tJVT"),b=D("OaEy"),d=D("2fM7"),l=D("q1tI"),n=D.n(l),c=D("VrN/"),u=D.n(c),o=D("p77/"),h=D.n(o),m=D("c5Ni"),s=D.n(m),r=d.a.Option,a={labelCol:{span:4},wrapperCol:{span:20}},t={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Y.b=function(E){var f=E.callback,k=E.onCancel,O=Object(l.useState)("python"),C=Object(_.a)(O,2),x=C[0],y=C[1];function S(I){y(t[I][1])}function M(I){f(I)}return n.a.createElement(v.a,Object(g.a)({},a,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:M}),n.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},n.a.createElement(d.a,{onChange:S},Object.keys(t).map(function(I){return n.a.createElement(r,{key:I,value:I},t[I][0])}))),n.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},n.a.createElement(w,{mode:x})),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(P.a,{type:"ghost",onClick:k},"\u53D6\u6D88")))};function w(E){var f=E.value,k=E.onChange,O=E.mode,C=E.options,x=C===void 0?{}:C,y=Object(l.useRef)(),S=Object(l.useState)(),M=Object(_.a)(S,2),I=M[0],N=M[1];return Object(l.useEffect)(function(){if(I){function G(H){var B=H.getValue();k&&k(B)}return I.on("change",G),function(){I.off("change",G)}}},[I,k]),Object(l.useEffect)(function(){I&&I.setOption("mode",O)},[I,O]),Object(l.useEffect)(function(){I&&((f!==I.getValue()||f==="")&&setTimeout(function(){I.setValue(f||" ")},300))},[I,f]),Object(l.useEffect)(function(){if(y.current&&!I){var G=u.a.fromTextArea(y.current,Object(L.a)({mode:O,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},x));N(G)}},[y.current,I]),n.a.createElement("div",{className:"my-codemirror-container"},n.a.createElement("textarea",{ref:y}))}},"815F":function(j,Y,D){"use strict";D.d(Y,"e",function(){return _}),D.d(Y,"c",function(){return d}),D.d(Y,"d",function(){return l}),D.d(Y,"a",function(){return c}),D.d(Y,"f",function(){return u}),D.d(Y,"b",function(){return o});var L=D("KQm4"),g=D("VTBJ"),T=D("Ff2n"),P=D("Zm9Q"),p=D("Kwbf"),v=D("OZM5");function _(h,m){return h!=null?h:m}function b(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function s(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(t){var w=t.key,E=t.children;Object(p.a)(w!=null,"Tree node must have a certain key: [".concat(a).concat(w,"]"));var f=String(w);Object(p.a)(!m.has(f)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(f)),m.set(f,!0),s(E,"".concat(a).concat(f," > "))})}s(h)}function d(h){function m(s){var r=Object(P.a)(s);return r.map(function(a){if(!Object(v.i)(a))return Object(p.a)(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var t=a.key,w=a.props,E=w.children,f=Object(T.a)(w,["children"]),k=Object(g.a)({key:t},f),O=m(E);return O.length&&(k.children=O),k}).filter(function(a){return a})}return m(h)}function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(m===!0?[]:m),r=[];function a(t){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(E,f){var k=Object(v.h)(w?w.pos:"0",f),O=_(E.key,k),C=Object(g.a)(Object(g.a)({},E),{},{parent:w,pos:k,children:null,data:E,isStart:[].concat(Object(L.a)(w?w.isStart:[]),[f===0]),isEnd:[].concat(Object(L.a)(w?w.isEnd:[]),[f===t.length-1])});return r.push(C),m===!0||s.has(O)?C.children=a(E.children||[],C):C.children=[],C})}return a(h),r}function n(h,m,s){var r;s?typeof s=="string"?r=function(w){return w[s]}:typeof s=="function"&&(r=function(w){return s(w)}):r=function(w,E){return _(w.key,E)};function a(t,w,E){var f=t?t.children:h,k=t?Object(v.h)(E.pos,w):"0";if(t){var O=r(t,k),C={node:t,index:w,pos:k,key:O,parentPos:E.node?E.pos:null,level:E.level+1};m(C)}f&&f.forEach(function(x,y){a(x,y,{node:t,pos:k,level:E?E.level+1:-1})})}a(null)}function c(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=m.initWrapper,r=m.processEntity,a=m.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,w={},E={},f={posEntities:w,keyEntities:E};return s&&(f=s(f)||f),n(h,function(k){var O=k.node,C=k.index,x=k.pos,y=k.key,S=k.parentPos,M=k.level,I={node:O,index:C,key:y,pos:x,level:M},N=_(y,x);w[x]=I,E[N]=I,I.parent=w[S],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,f)},t),a&&a(f),f}function u(h,m){var s=m.expandedKeys,r=m.selectedKeys,a=m.loadedKeys,t=m.loadingKeys,w=m.checkedKeys,E=m.halfCheckedKeys,f=m.dragOverNodeKey,k=m.dropPosition,O=m.keyEntities,C=O[h],x={eventKey:h,expanded:s.indexOf(h)!==-1,selected:r.indexOf(h)!==-1,loaded:a.indexOf(h)!==-1,loading:t.indexOf(h)!==-1,checked:w.indexOf(h)!==-1,halfChecked:E.indexOf(h)!==-1,pos:String(C?C.pos:""),dragOver:f===h&&k===0,dragOverGapTop:f===h&&k===-1,dragOverGapBottom:f===h&&k===1};return x}function o(h){var m=h.data,s=h.expanded,r=h.selected,a=h.checked,t=h.loaded,w=h.loading,E=h.halfChecked,f=h.dragOver,k=h.dragOverGapTop,O=h.dragOverGapBottom,C=h.pos,x=h.active,y=Object(g.a)(Object(g.a)({},m),{},{expanded:s,selected:r,checked:a,loaded:t,loading:w,halfChecked:E,dragOver:f,dragOverGapTop:k,dragOverGapBottom:O,pos:C,active:x});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Object(p.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),h}}),y}},"8EBN":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";L.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var g=0;g-1&&P.substring(_+1,P.length);if(b)return L.findModeByExtension(b)},L.findModeByName=function(P){P=P.toLowerCase();for(var p=0;p0&&u[u.length-1])&&(s[0]===6||s[0]===2)){l=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]=ie.length?de.slice(ie.length):de}).join(` -`)}var s=[],r=["
                    "],a=new o.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){s.length=0,r=["
                      "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(ae,z,$,ie){if(z>=ae.length||ae[z].level<=$)return z;var de=ae[z];ie.push("
                    • "+de.text+""),z++;var se=[];return z=f(ae,z,de.level,se),se.length>0&&(ie.push("
                        "),se.forEach(function(Ke){ie.push(Ke)}),ie.push("
                      ")),ie.push("
                    • "),z=f(ae,z,$,ie),z}function k(){return f(s,0,0,r),r.push("
                    "),r.join("")}var O={heading:function(z){var $=t.exec(z);if($)return{type:"heading",raw:$[0],depth:$[1].length,text:$[2]}},fences:function(z){var $=this.rules.block.fences.exec(z);if($){var ie=$[0],de=m(ie,$[3]||""),se=$[2]?$[2].trim():$[2];if(["latex","katex","math"].indexOf(se)>=0){var Ke=y(),Rt=de;de=Ke,S[Ke]={type:"block",expression:Rt}}return{type:"code",raw:ie,lang:se,text:de}}}},C=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,y=function(){return"__special_katext_id_".concat(x++,"__")},S={};function M(){return S}function I(){x=0,S={}}function N(ae){return ae=ae.replace(C,function(z,$){var ie=y();return S[ie]={type:"inline",expression:$},ie}),ae}var G=a.listitem;a.listitem=function(ae){return G(N(ae))};var H=a.paragraph;a.paragraph=function(ae){return H(N(ae))};var B=a.tablecell;a.tablecell=function(ae,z){return B(N(ae),z)},a.code=function(ae,z,$){var ie=(z||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"

                    ".concat(ae,"

                    "):'
                    ').concat($?ae:Object(h.escape)(ae,!0),`
                    +`+c.stack):c},0)}}return n.prototype.emit=function(c){this.listeners.forEach(function(u){u(c)})},n.prototype.onUnexpectedError=function(c){this.unexpectedErrorHandler(c),this.emit(c)},n.prototype.onUnexpectedExternalError=function(c){this.unexpectedErrorHandler(c)},n}(),g=new L;function T(n){S(n)||g.onUnexpectedError(n);return}function P(n){S(n)||g.onUnexpectedExternalError(n);return}function p(n){if(n instanceof Error){var c=n.name,u=n.message,o=n.stacktrace||n.stack;return{$isError:!0,name:c,message:u,stack:o}}return n}var v="Canceled";function S(n){return n instanceof Error&&n.name===v&&n.message===v}function b(){var n=new Error(v);return n.name=n.message,n}function d(n){return n?new Error("Illegal argument: "+n):new Error("Illegal argument")}function l(n){return n?new Error("Illegal state: "+n):new Error("Illegal state")}},"19Vz":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){L.defineOption("placeholder","",function(b,d,l){var n=l&&l!=L.Init;if(d&&!n)b.on("blur",p),b.on("change",v),b.on("swapDoc",v),L.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){P(b)}),v(b);else if(!d&&n){b.off("blur",p),b.off("change",v),b.off("swapDoc",v),L.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),g(b);var c=b.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}d&&!b.hasFocus()&&p(b)});function g(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function T(b){g(b);var d=b.state.placeholder=document.createElement("pre");d.style.cssText="height: 0; overflow: visible",d.style.direction=b.getOption("direction"),d.className="CodeMirror-placeholder CodeMirror-line-like";var l=b.getOption("placeholder");typeof l=="string"&&(l=document.createTextNode(l)),d.appendChild(l),b.display.lineSpace.insertBefore(d,b.display.lineSpace.firstChild)}function P(b){setTimeout(function(){var d=!1,l=b.getInputField();l.nodeName=="TEXTAREA"?d=!l.value:b.lineCount()==1&&(d=!/[^\u200b]/.test(l.querySelector(".CodeMirror-line").textContent)),d?T(b):g(b)},20)}function p(b){S(b)&&T(b)}function v(b){var d=b.getWrapperElement(),l=S(b);d.className=d.className.replace(" CodeMirror-empty","")+(l?" CodeMirror-empty":""),l?T(b):g(b)}function S(b){return b.lineCount()===1&&b.getLine(0)===""}})},"1ZF9":function(j,Y,D){j.exports=D.p+"static/Authorize.cc9c212f.png"},"1eCo":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";var g={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};L.defineMode("xml",function(P,p){var v=P.indentUnit,S={},b=p.htmlMode?g:T;for(var d in b)S[d]=b[d];for(var d in p)S[d]=p[d];var l,n;function c(_,M){function I(H){return M.tokenize=H,H(_,M)}var N=_.next();if(N=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?I(h("atom","]]>")):null:_.match("--")?I(h("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),I(m(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),M.tokenize=h("meta","?>"),"meta"):(l=_.eat("/")?"closeTag":"openTag",M.tokenize=u,"tag bracket");if(N=="&"){var G;return _.eat("#")?_.eat("x")?G=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):G=_.eatWhile(/[\d]/)&&_.eat(";"):G=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),G?"atom":"error"}else return _.eatWhile(/[^&<]/),null}c.isInText=!0;function u(_,M){var I=_.next();if(I==">"||I=="/"&&_.eat(">"))return M.tokenize=c,l=I==">"?"endTag":"selfcloseTag","tag bracket";if(I=="=")return l="equals",null;if(I=="<"){M.tokenize=c,M.state=t,M.tagName=M.tagStart=null;var N=M.tokenize(_,M);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(I)?(M.tokenize=o(I),M.stringStartCol=_.column(),M.tokenize(_,M)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(_){var M=function(I,N){for(;!I.eol();)if(I.next()==_){N.tokenize=u;break}return"string"};return M.isInAttribute=!0,M}function h(_,M){return function(I,N){for(;!I.eol();){if(I.match(M)){N.tokenize=c;break}I.next()}return _}}function m(_){return function(M,I){for(var N;(N=M.next())!=null;){if(N=="<")return I.tokenize=m(_+1),I.tokenize(M,I);if(N==">")if(_==1){I.tokenize=c;break}else return I.tokenize=m(_-1),I.tokenize(M,I)}return"meta"}}function s(_,M,I){this.prev=_.context,this.tagName=M,this.indent=_.indented,this.startOfLine=I,(S.doNotIndent.hasOwnProperty(M)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function r(_){_.context&&(_.context=_.context.prev)}function a(_,M){for(var I;;){if(!_.context)return;if(I=_.context.tagName,!S.contextGrabbers.hasOwnProperty(I)||!S.contextGrabbers[I].hasOwnProperty(M))return;r(_)}}function t(_,M,I){return _=="openTag"?(I.tagStart=M.column(),w):_=="closeTag"?E:t}function w(_,M,I){return _=="word"?(I.tagName=M.current(),n="tag",O):S.allowMissingTagName&&_=="endTag"?(n="tag bracket",O(_,M,I)):(n="error",w)}function E(_,M,I){if(_=="word"){var N=M.current();return I.context&&I.context.tagName!=N&&S.implicitlyClosed.hasOwnProperty(I.context.tagName)&&r(I),I.context&&I.context.tagName==N||S.matchClosing===!1?(n="tag",f):(n="tag error",k)}else return S.allowMissingTagName&&_=="endTag"?(n="tag bracket",f(_,M,I)):(n="error",k)}function f(_,M,I){return _!="endTag"?(n="error",f):(r(I),t)}function k(_,M,I){return n="error",f(_,M,I)}function O(_,M,I){if(_=="word")return n="attribute",C;if(_=="endTag"||_=="selfcloseTag"){var N=I.tagName,G=I.tagStart;return I.tagName=I.tagStart=null,_=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(N)?a(I,N):(a(I,N),I.context=new s(I,N,G==I.indented)),t}return n="error",O}function C(_,M,I){return _=="equals"?x:(S.allowMissing||(n="error"),O(_,M,I))}function x(_,M,I){return _=="string"?y:_=="word"&&S.allowUnquoted?(n="string",O):(n="error",O(_,M,I))}function y(_,M,I){return _=="string"?y:O(_,M,I)}return{startState:function(_){var M={tokenize:c,state:t,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(M.baseIndent=_),M},token:function(_,M){if(!M.tagName&&_.sol()&&(M.indented=_.indentation()),_.eatSpace())return null;l=null;var I=M.tokenize(_,M);return(I||l)&&I!="comment"&&(n=null,M.state=M.state(l||I,_,M),n&&(I=n=="error"?I+" error":n)),I},indent:function(_,M,I){var N=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+v;if(N&&N.noIndent)return L.Pass;if(_.tokenize!=u&&_.tokenize!=c)return I?I.match(/^(\s*)/)[0].length:0;if(_.tagName)return S.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+v*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/$/,blockCommentStart:"",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(_){_.state==x&&(_.state=O)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var M=[],I=_.context;I;I=I.prev)I.tagName&&M.push(I.tagName);return M.reverse()}}}),L.defineMIME("text/xml","xml"),L.defineMIME("application/xml","xml"),L.mimeModes.hasOwnProperty("text/html")||L.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1uat":function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Hasher,p=g.x64,v=p.Word,S=p.WordArray,b=g.algo;function d(){return v.create.apply(v,arguments)}var l=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],n=[];(function(){for(var u=0;u<80;u++)n[u]=d()})();var c=b.SHA512=P.extend({_doReset:function(){this._hash=new S.init([new v.init(1779033703,4089235720),new v.init(3144134277,2227873595),new v.init(1013904242,4271175723),new v.init(2773480762,1595750129),new v.init(1359893119,2917565137),new v.init(2600822924,725511199),new v.init(528734635,4215389547),new v.init(1541459225,327033209)])},_doProcessBlock:function(u,o){for(var h=this._hash.words,m=h[0],s=h[1],r=h[2],a=h[3],t=h[4],w=h[5],E=h[6],f=h[7],k=m.high,O=m.low,C=s.high,x=s.low,y=r.high,_=r.low,M=a.high,I=a.low,N=t.high,G=t.low,H=w.high,B=w.low,K=E.high,U=E.low,W=f.high,X=f.low,ne=k,fe=O,me=C,Ae=x,De=y,ye=_,Oe=M,xe=I,ue=N,le=G,re=H,pe=B,ee=K,te=U,ce=W,q=X,Q=0;Q<80;Q++){var V,Z,be=n[Q];if(Q<16)Z=be.high=u[o+Q*2]|0,V=be.low=u[o+Q*2+1]|0;else{var ge=n[Q-15],Te=ge.high,Je=ge.low,rt=(Te>>>1|Je<<31)^(Te>>>8|Je<<24)^Te>>>7,nt=(Je>>>1|Te<<31)^(Je>>>8|Te<<24)^(Je>>>7|Te<<25),at=n[Q-2],ct=at.high,ht=at.low,He=(ct>>>19|ht<<13)^(ct<<3|ht>>>29)^ct>>>6,Re=(ht>>>19|ct<<13)^(ht<<3|ct>>>29)^(ht>>>6|ct<<26),tt=n[Q-7],ft=tt.high,Qe=tt.low,lt=n[Q-16],Ue=lt.high,Le=lt.low;V=nt+Qe,Z=rt+ft+(V>>>0>>0?1:0),V=V+Re,Z=Z+He+(V>>>0>>0?1:0),V=V+Le,Z=Z+Ue+(V>>>0>>0?1:0),be.high=Z,be.low=V}var Ie=ue&re^~ue&ee,Ce=le&pe^~le&te,Se=ne&me^ne&De^me&De,ke=fe&Ae^fe&ye^Ae&ye,Ne=(ne>>>28|fe<<4)^(ne<<30|fe>>>2)^(ne<<25|fe>>>7),et=(fe>>>28|ne<<4)^(fe<<30|ne>>>2)^(fe<<25|ne>>>7),$e=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),bt=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),gt=l[Q],Ut=gt.high,Nt=gt.low,hr=q+bt,mr=ce+$e+(hr>>>0>>0?1:0),hr=hr+Ce,mr=mr+Ie+(hr>>>0>>0?1:0),hr=hr+Nt,mr=mr+Ut+(hr>>>0>>0?1:0),hr=hr+V,mr=mr+Z+(hr>>>0>>0?1:0),St=et+ke,Yr=Ne+Se+(St>>>0>>0?1:0);ce=ee,q=te,ee=re,te=pe,re=ue,pe=le,le=xe+hr|0,ue=Oe+mr+(le>>>0>>0?1:0)|0,Oe=De,xe=ye,De=me,ye=Ae,me=ne,Ae=fe,fe=hr+St|0,ne=mr+Yr+(fe>>>0
                    >>0?1:0)|0}O=m.low=O+fe,m.high=k+ne+(O>>>0>>0?1:0),x=s.low=x+Ae,s.high=C+me+(x>>>0>>0?1:0),_=r.low=_+ye,r.high=y+De+(_>>>0>>0?1:0),I=a.low=I+xe,a.high=M+Oe+(I>>>0>>0?1:0),G=t.low=G+le,t.high=N+ue+(G>>>0>>0?1:0),B=w.low=B+pe,w.high=H+re+(B>>>0>>0?1:0),U=E.low=U+te,E.high=K+ee+(U>>>0>>0?1:0),X=f.low=X+q,f.high=W+ce+(X>>>0>>0?1:0)},_doFinalize:function(){var u=this._data,o=u.words,h=this._nDataBytes*8,m=u.sigBytes*8;o[m>>>5]|=128<<24-m%32,o[(m+128>>>10<<5)+30]=Math.floor(h/4294967296),o[(m+128>>>10<<5)+31]=h,u.sigBytes=o.length*4,this._process();var s=this._hash.toX32();return s},clone:function(){var u=P.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});g.SHA512=P._createHelper(c),g.HmacSHA512=P._createHmacHelper(c)}(),L.SHA512})},"24hK":function(j,Y,D){"use strict";D.d(Y,"a",function(){return T});var L=D("JYp7"),g=function(){function P(p){this.element=p,this.next=P.Undefined,this.prev=P.Undefined}return P.Undefined=new P(void 0),P}(),T=function(){function P(){this._first=g.Undefined,this._last=g.Undefined,this._size=0}return Object.defineProperty(P.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),P.prototype.isEmpty=function(){return this._first===g.Undefined},P.prototype.clear=function(){this._first=g.Undefined,this._last=g.Undefined,this._size=0},P.prototype.unshift=function(p){return this._insert(p,!1)},P.prototype.push=function(p){return this._insert(p,!0)},P.prototype._insert=function(p,v){var S=this,b=new g(p);if(this._first===g.Undefined)this._first=b,this._last=b;else if(v){var d=this._last;this._last=b,b.prev=d,d.next=b}else{var l=this._first;this._first=b,b.next=l,l.prev=b}this._size+=1;var n=!1;return function(){n||(n=!0,S._remove(b))}},P.prototype.shift=function(){if(this._first===g.Undefined)return;var p=this._first.element;return this._remove(this._first),p},P.prototype.pop=function(){if(this._last===g.Undefined)return;var p=this._last.element;return this._remove(this._last),p},P.prototype._remove=function(p){if(p.prev!==g.Undefined&&p.next!==g.Undefined){var v=p.prev;v.next=p.next,p.next.prev=v}else p.prev===g.Undefined&&p.next===g.Undefined?(this._first=g.Undefined,this._last=g.Undefined):p.next===g.Undefined?(this._last=this._last.prev,this._last.next=g.Undefined):p.prev===g.Undefined&&(this._first=this._first.next,this._first.prev=g.Undefined);this._size-=1},P.prototype.iterator=function(){var p,v=this._first;return{next:function(){return v===g.Undefined?L.c:(p?p.value=v.element:p={done:!1,value:v.element},v=v.next,p)}}},P.prototype.toArray=function(){for(var p=[],v=this._first;v!==g.Undefined;v=v.next)p.push(v.element);return p},P}()},"3y9D":function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=T.Hasher,v=g.algo,S=[],b=v.SHA1=p.extend({_doReset:function(){this._hash=new P.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,l){for(var n=this._hash.words,c=n[0],u=n[1],o=n[2],h=n[3],m=n[4],s=0;s<80;s++){if(s<16)S[s]=d[l+s]|0;else{var r=S[s-3]^S[s-8]^S[s-14]^S[s-16];S[s]=r<<1|r>>>31}var a=(c<<5|c>>>27)+m+S[s];s<20?a+=(u&o|~u&h)+1518500249:s<40?a+=(u^o^h)+1859775393:s<60?a+=(u&o|u&h|o&h)-1894007588:a+=(u^o^h)-899497514,m=h,h=o,o=u<<30|u>>>2,u=c,c=a}n[0]=n[0]+c|0,n[1]=n[1]+u|0,n[2]=n[2]+o|0,n[3]=n[3]+h|0,n[4]=n[4]+m|0},_doFinalize:function(){var d=this._data,l=d.words,n=this._nDataBytes*8,c=d.sigBytes*8;return l[c>>>5]|=128<<24-c%32,l[(c+64>>>9<<4)+14]=Math.floor(n/4294967296),l[(c+64>>>9<<4)+15]=n,d.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var d=p.clone.call(this);return d._hash=this._hash.clone(),d}});g.SHA1=p._createHelper(b),g.HmacSHA1=p._createHmacHelper(b)}(),L.SHA1})},4:function(j,Y){},"55Ip":function(j,Y,D){"use strict";D.d(Y,"a",function(){return a}),D.d(Y,"b",function(){return O});var L=D("Ty5D"),g=D("dI71"),T=D("q1tI"),P=D.n(T),p=D("YS25"),v=D("17x9"),S=D.n(v),b=D("wx14"),d=D("zLVn"),l=D("9R94"),n=function(x){Object(g.a)(y,x);function y(){for(var M,I=arguments.length,N=new Array(I),G=0;G>>24)&16711935|(t<<24|t>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=s[a];E.high^=w,E.low^=t}for(var f=0;f<24;f++){for(var k=0;k<5;k++){for(var O=0,C=0,x=0;x<5;x++){var E=s[k+5*x];O^=E.high,C^=E.low}var y=u[k];y.high=O,y.low=C}for(var k=0;k<5;k++)for(var _=u[(k+4)%5],M=u[(k+1)%5],I=M.high,N=M.low,O=_.high^(I<<1|N>>>31),C=_.low^(N<<1|I>>>31),x=0;x<5;x++){var E=s[k+5*x];E.high^=O,E.low^=C}for(var G=1;G<25;G++){var O,C,E=s[G],H=E.high,B=E.low,K=l[G];K<32?(O=H<>>32-K,C=B<>>32-K):(O=B<>>64-K,C=H<>>64-K);var U=u[n[G]];U.high=O,U.low=C}var W=u[0],X=s[0];W.high=X.high,W.low=X.low;for(var k=0;k<5;k++)for(var x=0;x<5;x++){var G=k+5*x,E=s[G],ne=u[G],fe=u[(k+1)%5+5*x],me=u[(k+2)%5+5*x];E.high=ne.high^~fe.high&me.high,E.low=ne.low^~fe.low&me.low}var E=s[0],Ae=c[f];E.high^=Ae.high,E.low^=Ae.low}},_doFinalize:function(){var h=this._data,m=h.words,s=this._nDataBytes*8,r=h.sigBytes*8,a=this.blockSize*32;m[r>>>5]|=1<<24-r%32,m[(g.ceil((r+1)/a)*a>>>5)-1]|=128,h.sigBytes=m.length*4,this._process();for(var t=this._state,w=this.cfg.outputLength/8,E=w/8,f=[],k=0;k>>24)&16711935|(C<<24|C>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,f.push(x),f.push(C)}return new p.init(f,w)},clone:function(){for(var h=v.clone.call(this),m=h._state=this._state.slice(0),s=0;s<25;s++)m[s]=m[s].clone();return h}});T.SHA3=v._createHelper(o),T.HmacSHA3=v._createHmacHelper(o)}(Math),L.SHA3})},"6+eU":function(j,Y,D){"use strict";D.d(Y,"a",function(){return f});var L=D("wx14"),g=D("rePB"),T=D("VTBJ"),P=D("1OyB"),p=D("vuIU"),v=D("Ji7U"),S=D("LK+K"),b=D("q1tI"),d=D.n(b),l=D("TSYQ"),n=D.n(l),c=function(O){var C,x="".concat(O.rootPrefixCls,"-item"),y=n()(x,"".concat(x,"-").concat(O.page),(C={},Object(g.a)(C,"".concat(x,"-active"),O.active),Object(g.a)(C,O.className,!!O.className),Object(g.a)(C,"".concat(x,"-disabled"),!O.page),C)),_=function(){O.onClick(O.page)},M=function(N){O.onKeyPress(N,O.onClick,O.page)};return d.a.createElement("li",{title:O.showTitle?O.page:null,className:y,onClick:_,onKeyPress:M,tabIndex:"0"},O.itemRender(O.page,"page",d.a.createElement("a",{rel:"nofollow"},O.page)))},u=c,o={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(k){Object(v.a)(C,k);var O=Object(S.a)(C);function C(){var x;Object(P.a)(this,C);for(var y=arguments.length,_=new Array(y),M=0;M=0||I.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;x.setState({goInputText:""}),H(x.getValidValue())},x.go=function(I){var N=x.state.goInputText;if(N==="")return;(I.keyCode===o.ENTER||I.type==="click")&&(x.setState({goInputText:""}),x.props.quickGo(x.getValidValue()))},x}return Object(p.a)(C,[{key:"getValidValue",value:function(){var y=this.state,_=y.goInputText,M=y.current;return!_||isNaN(_)?M:Number(_)}},{key:"getPageSizeOptions",value:function(){var y=this.props,_=y.pageSize,M=y.pageSizeOptions;return M.some(function(I){return I.toString()===_.toString()})?M:M.concat([_.toString()]).sort(function(I,N){var G=isNaN(Number(I))?0:Number(I),H=isNaN(Number(N))?0:Number(N);return G-H})}},{key:"render",value:function(){var y=this,_=this.props,M=_.pageSize,I=_.locale,N=_.rootPrefixCls,G=_.changeSize,H=_.quickGo,B=_.goButton,K=_.selectComponentClass,U=_.buildOptionText,W=_.selectPrefixCls,X=_.disabled,ne=this.state.goInputText,fe="".concat(N,"-options"),me=K,Ae=null,De=null,ye=null;if(!G&&!H)return null;var Oe=this.getPageSizeOptions();if(G&&me){var xe=Oe.map(function(ue,le){return d.a.createElement(me.Option,{key:le,value:ue.toString()},(U||y.buildOptionText)(ue))});Ae=d.a.createElement(me,{disabled:X,prefixCls:W,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},xe)}return H&&(B&&(ye=typeof B=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:X,className:"".concat(fe,"-quick-jumper-button")},I.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),De=d.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},I.jump_to,d.a.createElement("input",{disabled:X,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),I.page,ye)),d.a.createElement("li",{className:"".concat(fe)},Ae,De)}}]),C}(d.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=h,s=D("N2Kk");function r(){}function a(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function t(k,O,C){return C}function w(k,O,C){var x=typeof k=="undefined"?O.pageSize:k;return Math.floor((C.total-1)/x)+1}var E=function(k){Object(v.a)(C,k);var O=Object(S.a)(C);function C(x){var y;Object(P.a)(this,C),y=O.call(this,x),y.getJumpPrevPage=function(){return Math.max(1,y.state.current-(y.props.showLessItems?3:5))},y.getJumpNextPage=function(){return Math.min(w(void 0,y.state,y.props),y.state.current+(y.props.showLessItems?3:5))},y.getItemIcon=function(G,H){var B=y.props.prefixCls,K=G||d.a.createElement("button",{type:"button","aria-label":H,className:"".concat(B,"-item-link")});return typeof G=="function"&&(K=d.a.createElement(G,Object(T.a)({},y.props))),K},y.savePaginationNode=function(G){y.paginationNode=G},y.isValid=function(G){return a(G)&&G!==y.state.current},y.shouldDisplayQuickJumper=function(){var G=y.props,H=G.showQuickJumper,B=G.pageSize,K=G.total;return K<=B?!1:H},y.handleKeyDown=function(G){(G.keyCode===o.ARROW_UP||G.keyCode===o.ARROW_DOWN)&&G.preventDefault()},y.handleKeyUp=function(G){var H=y.getValidValue(G),B=y.state.currentInputValue;H!==B&&y.setState({currentInputValue:H}),G.keyCode===o.ENTER?y.handleChange(H):G.keyCode===o.ARROW_UP?y.handleChange(H-1):G.keyCode===o.ARROW_DOWN&&y.handleChange(H+1)},y.changePageSize=function(G){var H=y.state.current,B=w(G,y.state,y.props);H=H>B?B:H,B===0&&(H=y.state.current),typeof G=="number"&&("pageSize"in y.props||y.setState({pageSize:G}),"current"in y.props||y.setState({current:H,currentInputValue:H})),y.props.onShowSizeChange(H,G),"onChange"in y.props&&y.props.onChange&&y.props.onChange(H,G)},y.handleChange=function(G){var H=y.props.disabled,B=G;if(y.isValid(B)&&!H){var K=w(void 0,y.state,y.props);B>K?B=K:B<1&&(B=1),"current"in y.props||y.setState({current:B,currentInputValue:B});var U=y.state.pageSize;return y.props.onChange(B,U),B}return y.state.current},y.prev=function(){y.hasPrev()&&y.handleChange(y.state.current-1)},y.next=function(){y.hasNext()&&y.handleChange(y.state.current+1)},y.jumpPrev=function(){y.handleChange(y.getJumpPrevPage())},y.jumpNext=function(){y.handleChange(y.getJumpNextPage())},y.hasPrev=function(){return y.state.current>1},y.hasNext=function(){return y.state.current2?B-2:0),U=2;U=M?N=M:N=Number(_),N}},{key:"getShowSizeChanger",value:function(){var y=this.props,_=y.showSizeChanger,M=y.total,I=y.totalBoundaryShowSizeChanger;return typeof _!="undefined"?_:M>I}},{key:"renderPrev",value:function(y){var _=this.props,M=_.prevIcon,I=_.itemRender,N=I(y,"prev",this.getItemIcon(M,"prev page")),G=!this.hasPrev();return Object(b.isValidElement)(N)?Object(b.cloneElement)(N,{disabled:G}):N}},{key:"renderNext",value:function(y){var _=this.props,M=_.nextIcon,I=_.itemRender,N=I(y,"next",this.getItemIcon(M,"next page")),G=!this.hasNext();return Object(b.isValidElement)(N)?Object(b.cloneElement)(N,{disabled:G}):N}},{key:"render",value:function(){var y=this,_=this.props,M=_.prefixCls,I=_.className,N=_.style,G=_.disabled,H=_.hideOnSinglePage,B=_.total,K=_.locale,U=_.showQuickJumper,W=_.showLessItems,X=_.showTitle,ne=_.showTotal,fe=_.simple,me=_.itemRender,Ae=_.showPrevNextJumpers,De=_.jumpPrevIcon,ye=_.jumpNextIcon,Oe=_.selectComponentClass,xe=_.selectPrefixCls,ue=_.pageSizeOptions,le=this.state,re=le.current,pe=le.pageSize,ee=le.currentInputValue;if(H===!0&&B<=pe)return null;var te=w(void 0,this.state,this.props),ce=[],q=null,Q=null,V=null,Z=null,be=null,ge=U&&U.goButton,Te=W?1:2,Je=re-1>0?re-1:0,rt=re+1=Te*2&&re!==1+2&&(ce[0]=Object(b.cloneElement)(ce[0],{className:"".concat(M,"-item-after-jump-prev")}),ce.unshift(q)),te-re>=Te*2&&re!==te-2&&(ce[ce.length-1]=Object(b.cloneElement)(ce[ce.length-1],{className:"".concat(M,"-item-before-jump-next")}),ce.push(Q)),tt!==1&&ce.unshift(V),ft!==te&&ce.push(Z)}var Ue=null;ne&&(Ue=d.a.createElement("li",{className:"".concat(M,"-total-text")},ne(B,[B===0?0:(re-1)*pe+1,re*pe>B?B:re*pe])));var Le=!this.hasPrev()||!te,Ie=!this.hasNext()||!te;return d.a.createElement("ul",Object(L.a)({className:n()(M,I,Object(g.a)({},"".concat(M,"-disabled"),G)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},nt),Ue,d.a.createElement("li",{title:X?K.prev_page:null,onClick:this.prev,tabIndex:Le?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(M,"-prev"),Object(g.a)({},"".concat(M,"-disabled"),Le)),"aria-disabled":Le},this.renderPrev(Je)),ce,d.a.createElement("li",{title:X?K.next_page:null,onClick:this.next,tabIndex:Ie?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(M,"-next"),Object(g.a)({},"".concat(M,"-disabled"),Ie)),"aria-disabled":Ie},this.renderNext(rt)),d.a.createElement(m,{disabled:G,locale:K,rootPrefixCls:M,selectComponentClass:Oe,selectPrefixCls:xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:re,pageSize:pe,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(y,_){var M={};if("current"in y&&(M.current=y.current,y.current!==_.current&&(M.currentInputValue=M.current)),"pageSize"in y&&y.pageSize!==_.pageSize){var I=_.current,N=w(y.pageSize,_,y);I=I>N?N:I,"current"in y||(M.current=I,M.currentInputValue=I),M.pageSize=y.pageSize}return M}}]),C}(d.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:s.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var f=E},"6RRn":function(j,Y,D){"use strict";var L=D("wCXF"),g=D("n6Qo");D.d(Y,"b",function(){return g.a});var T=D("IBYe"),P=D("6eGT"),p=D("hW8S");D.d(Y,"a",function(){return p.a}),Y.c=L.b},"6eGT":function(j,Y,D){"use strict";function L(g){return null}Y.a=L},"746U":function(j,Y,D){"use strict";D.d(Y,"d",function(){return g}),D.d(Y,"j",function(){return T}),D.d(Y,"i",function(){return P}),D.d(Y,"h",function(){return p}),D.d(Y,"e",function(){return v}),D.d(Y,"k",function(){return S}),D.d(Y,"l",function(){return b}),D.d(Y,"a",function(){return d}),D.d(Y,"f",function(){return n}),D.d(Y,"g",function(){return c}),D.d(Y,"m",function(){return u}),D.d(Y,"c",function(){return m}),D.d(Y,"b",function(){return s}),D.d(Y,"n",function(){return r}),D.d(Y,"o",function(){return a});var L={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function g(t){return Array.isArray?Array.isArray(t):!!(t&&typeof t.length===L.number&&t.constructor===Array)}function T(t){return typeof t===L.string||t instanceof String}function P(t){return typeof t===L.object&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function p(t){return(typeof t===L.number||t instanceof Number)&&!isNaN(t)}function v(t){return t===!0||t===!1}function S(t){return typeof t===L.undefined}function b(t){return S(t)||t===null}function d(t,w){if(!t)throw new Error(w?"Unexpected type, expected '"+w+"'":"Unexpected type")}var l=Object.prototype.hasOwnProperty;function n(t){if(!P(t))return!1;for(var w in t)if(l.call(t,w))return!1;return!0}function c(t){return typeof t===L.function}function u(t,w){for(var E=Math.min(t.length,w.length),f=0;f1&&arguments[1]!==void 0?arguments[1]:0,h=(S[u[o+0]]+S[u[o+1]]+S[u[o+2]]+S[u[o+3]]+"-"+S[u[o+4]]+S[u[o+5]]+"-"+S[u[o+6]]+S[u[o+7]]+"-"+S[u[o+8]]+S[u[o+9]]+"-"+S[u[o+10]]+S[u[o+11]]+S[u[o+12]]+S[u[o+13]]+S[u[o+14]]+S[u[o+15]]).toLowerCase();if(!v(h))throw TypeError("Stringified UUID is invalid");return h}var l=d;function n(u,o,h){u=u||{};var m=u.random||(u.rng||T)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,o){h=h||0;for(var s=0;s<16;++s)o[h+s]=m[s];return o}return l(m)}var c=Y.a=n},"7ahc":function(j,Y,D){"use strict";D.d(Y,"a",function(){return w});var L=D("k1fw"),g=D("0Owb"),T=D("+L6B"),P=D("2/Rp"),p=D("y8nQ"),v=D("Vl3Y"),S=D("tJVT"),b=D("OaEy"),d=D("2fM7"),l=D("q1tI"),n=D.n(l),c=D("VrN/"),u=D.n(c),o=D("p77/"),h=D.n(o),m=D("c5Ni"),s=D.n(m),r=d.a.Option,a={labelCol:{span:4},wrapperCol:{span:20}},t={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Y.b=function(E){var f=E.callback,k=E.onCancel,O=Object(l.useState)("python"),C=Object(S.a)(O,2),x=C[0],y=C[1];function _(I){y(t[I][1])}function M(I){f(I)}return n.a.createElement(v.a,Object(g.a)({},a,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:M}),n.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},n.a.createElement(d.a,{onChange:_},Object.keys(t).map(function(I){return n.a.createElement(r,{key:I,value:I},t[I][0])}))),n.a.createElement(v.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},n.a.createElement(w,{mode:x})),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(P.a,{type:"ghost",onClick:k},"\u53D6\u6D88")))};function w(E){var f=E.value,k=E.onChange,O=E.mode,C=E.options,x=C===void 0?{}:C,y=Object(l.useRef)(),_=Object(l.useState)(),M=Object(S.a)(_,2),I=M[0],N=M[1];return Object(l.useEffect)(function(){if(I){function G(H){var B=H.getValue();k&&k(B)}return I.on("change",G),function(){I.off("change",G)}}},[I,k]),Object(l.useEffect)(function(){I&&I.setOption("mode",O)},[I,O]),Object(l.useEffect)(function(){I&&((f!==I.getValue()||f==="")&&setTimeout(function(){I.setValue(f||" ")},300))},[I,f]),Object(l.useEffect)(function(){if(y.current&&!I){var G=u.a.fromTextArea(y.current,Object(L.a)({mode:O,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},x));N(G)}},[y.current,I]),n.a.createElement("div",{className:"my-codemirror-container"},n.a.createElement("textarea",{ref:y}))}},"815F":function(j,Y,D){"use strict";D.d(Y,"e",function(){return S}),D.d(Y,"c",function(){return d}),D.d(Y,"d",function(){return l}),D.d(Y,"a",function(){return c}),D.d(Y,"f",function(){return u}),D.d(Y,"b",function(){return o});var L=D("KQm4"),g=D("VTBJ"),T=D("Ff2n"),P=D("Zm9Q"),p=D("Kwbf"),v=D("OZM5");function S(h,m){return h!=null?h:m}function b(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function s(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(t){var w=t.key,E=t.children;Object(p.a)(w!=null,"Tree node must have a certain key: [".concat(a).concat(w,"]"));var f=String(w);Object(p.a)(!m.has(f)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(f)),m.set(f,!0),s(E,"".concat(a).concat(f," > "))})}s(h)}function d(h){function m(s){var r=Object(P.a)(s);return r.map(function(a){if(!Object(v.i)(a))return Object(p.a)(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var t=a.key,w=a.props,E=w.children,f=Object(T.a)(w,["children"]),k=Object(g.a)({key:t},f),O=m(E);return O.length&&(k.children=O),k}).filter(function(a){return a})}return m(h)}function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(m===!0?[]:m),r=[];function a(t){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(E,f){var k=Object(v.h)(w?w.pos:"0",f),O=S(E.key,k),C=Object(g.a)(Object(g.a)({},E),{},{parent:w,pos:k,children:null,data:E,isStart:[].concat(Object(L.a)(w?w.isStart:[]),[f===0]),isEnd:[].concat(Object(L.a)(w?w.isEnd:[]),[f===t.length-1])});return r.push(C),m===!0||s.has(O)?C.children=a(E.children||[],C):C.children=[],C})}return a(h),r}function n(h,m,s){var r;s?typeof s=="string"?r=function(w){return w[s]}:typeof s=="function"&&(r=function(w){return s(w)}):r=function(w,E){return S(w.key,E)};function a(t,w,E){var f=t?t.children:h,k=t?Object(v.h)(E.pos,w):"0";if(t){var O=r(t,k),C={node:t,index:w,pos:k,key:O,parentPos:E.node?E.pos:null,level:E.level+1};m(C)}f&&f.forEach(function(x,y){a(x,y,{node:t,pos:k,level:E?E.level+1:-1})})}a(null)}function c(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=m.initWrapper,r=m.processEntity,a=m.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,w={},E={},f={posEntities:w,keyEntities:E};return s&&(f=s(f)||f),n(h,function(k){var O=k.node,C=k.index,x=k.pos,y=k.key,_=k.parentPos,M=k.level,I={node:O,index:C,key:y,pos:x,level:M},N=S(y,x);w[x]=I,E[N]=I,I.parent=w[_],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,f)},t),a&&a(f),f}function u(h,m){var s=m.expandedKeys,r=m.selectedKeys,a=m.loadedKeys,t=m.loadingKeys,w=m.checkedKeys,E=m.halfCheckedKeys,f=m.dragOverNodeKey,k=m.dropPosition,O=m.keyEntities,C=O[h],x={eventKey:h,expanded:s.indexOf(h)!==-1,selected:r.indexOf(h)!==-1,loaded:a.indexOf(h)!==-1,loading:t.indexOf(h)!==-1,checked:w.indexOf(h)!==-1,halfChecked:E.indexOf(h)!==-1,pos:String(C?C.pos:""),dragOver:f===h&&k===0,dragOverGapTop:f===h&&k===-1,dragOverGapBottom:f===h&&k===1};return x}function o(h){var m=h.data,s=h.expanded,r=h.selected,a=h.checked,t=h.loaded,w=h.loading,E=h.halfChecked,f=h.dragOver,k=h.dragOverGapTop,O=h.dragOverGapBottom,C=h.pos,x=h.active,y=Object(g.a)(Object(g.a)({},m),{},{expanded:s,selected:r,checked:a,loaded:t,loading:w,halfChecked:E,dragOver:f,dragOverGapTop:k,dragOverGapBottom:O,pos:C,active:x});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Object(p.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),h}}),y}},"8EBN":function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";L.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var g=0;g-1&&P.substring(S+1,P.length);if(b)return L.findModeByExtension(b)},L.findModeByName=function(P){P=P.toLowerCase();for(var p=0;p0&&u[u.length-1])&&(s[0]===6||s[0]===2)){l=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]=ie.length?de.slice(ie.length):de}).join(` +`)}var s=[],r=["
                      "],a=new o.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){s.length=0,r=["
                        "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(ae,z,$,ie){if(z>=ae.length||ae[z].level<=$)return z;var de=ae[z];ie.push("
                      • "+de.text+""),z++;var se=[];return z=f(ae,z,de.level,se),se.length>0&&(ie.push("
                          "),se.forEach(function(Ke){ie.push(Ke)}),ie.push("
                        ")),ie.push("
                      • "),z=f(ae,z,$,ie),z}function k(){return f(s,0,0,r),r.push("
                      "),r.join("")}var O={heading:function(z){var $=t.exec(z);if($)return{type:"heading",raw:$[0],depth:$[1].length,text:$[2]}},fences:function(z){var $=this.rules.block.fences.exec(z);if($){var ie=$[0],de=m(ie,$[3]||""),se=$[2]?$[2].trim():$[2];if(["latex","katex","math"].indexOf(se)>=0){var Ke=y(),Rt=de;de=Ke,_[Ke]={type:"block",expression:Rt}}return{type:"code",raw:ie,lang:se,text:de}}}},C=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,y=function(){return"__special_katext_id_".concat(x++,"__")},_={};function M(){return _}function I(){x=0,_={}}function N(ae){return ae=ae.replace(C,function(z,$){var ie=y();return _[ie]={type:"inline",expression:$},ie}),ae}var G=a.listitem;a.listitem=function(ae){return G(N(ae))};var H=a.paragraph;a.paragraph=function(ae){return H(N(ae))};var B=a.tablecell;a.tablecell=function(ae,z){return B(N(ae),z)},a.code=function(ae,z,$){var ie=(z||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"

                      ".concat(ae,"

                      "):'
                      ').concat($?ae:Object(h.escape)(ae,!0),`
                      `):'
                      '+($?ae:Object(h.escape)(ae,!0))+"
                      "},a.heading=function(ae,z,$){var ie=this.options.headerPrefix+$.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:ie,level:z,text:ae}),"'+ae+""},o.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),o.a.use({tokenizer:O,renderer:a});var K=o.a,U=D("SJMd"),W=D("ulZh"),X=D.n(W),ne=D("m3rI"),fe=D("Oy/b"),me=D("p5ED"),Ae=D("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -129,7 +129,7 @@ PERFORMANCE OF THIS SOFTWARE. `,Lt.style.marginLeft="5px",Er.appendChild(Lt)}var zr=document.createElement("div");zr.style.display="flex",zr.style.alignItems="center",zr.style.minHeight="20px",zr.style.flexGrow="2";var Br=document.createElement("hr");if(Br.style.minWidth="20px",Br.style.border="0px",Br.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),Br.style.flexGrow="2",zr.appendChild(Br),Er.appendChild(zr),Vt==="both"||Vt==="end"){var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.innerHTML=` - `,En.style.marginRight="5px",Er.appendChild(En)}se.typeBoxes.push(Er)},se=this,Ke=0;Ke<4;Ke++)de(Ke);return ie},z.prototype.setCurrentType=function($,ie){var de=this;this.currentType=$,this.typeBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(Z),Ie=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new Le("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.arrow1&&$!==this.arrow2)},z.prototype.getArrowPoints=function($,ie){var de=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return $-de/2+","+(ie+se/2)+" "+$+","+(ie-se/2)+" "+($+de/2)+","+(ie+se/2)},z.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var $=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate($,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate($+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},z.prototype.setArrowType=function($){this.arrowType=$,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='',z}(ft),Ce=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.fillColor=de.defaultFillColor,se.strokeWidth=0,se.fillPanel=new be("Color",de.defaultColorSet,de.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return ye(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="CoverMarker",z.title="Cover marker",z.icon='',z}(at),_e=function(ae){function z($,ie,de,se){var Ke=ae.call(this,$,se||'')||this;return Ke.opacities=[],Ke.opacityBoxes=[],Ke.opacities=ie,Ke.currentOpacity=de,Ke.setCurrentOpacity=Ke.setCurrentOpacity.bind(Ke),Ke}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=de===$.currentOpacity?$.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){$.setCurrentOpacity(de,se)}),ie.appendChild(se);var Ke=document.createElement("div");Ke.innerText=100*de+"%",se.appendChild(Ke),$.opacityBoxes.push(se)}),ie},z.prototype.setCurrentOpacity=function($,ie){var de=this;this.currentOpacity=$,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(Z),ke=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=de.defaultHighlightColor,se.strokeWidth=0,se.opacity=de.defaultHighlightOpacity,se.fillPanel=new be("Color",de.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new _e("Opacity",de.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ye(z,ae),z.prototype.setOpacity=function($){this.opacity=$,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='',z}(Ce),Ne='',et=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=de.defaultStrokeColor,se.bgColor=de.defaultFillColor,se.fontFamily=de.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new be("Text color",de.defaultColorSet,se.color,''),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new be("Fill color",de.defaultColorSet,se.bgColor,Ne),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Qe("Font",de.defaultFontFamilies,de.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new Je,se.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return ye(z,ae),z.prototype.ownsTarget=function($){return ae.prototype.ownsTarget.call(this,$)||this.tipGrip.ownsTarget($)||this.tip===$},z.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function($,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,$,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,$,ie)},z.prototype.pointerUp=function($){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,$);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,$),this.setTipPoints(ie),this.positionTip()}},z.prototype.manipulate=function($){if(this.tipMoving){var ie=this.unrotatePoint($);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,$)},z.prototype.setBgColor=function($){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",$]]),le.setAttributes(this.tip,[["fill",$]])),this.bgColor=$,this.fillColorChanged($)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function($){$===void 0&&($=!1);var ie=Math.min(this.height/2,15),de=this.height/5;$&&(this.tipPosition={x:ie+de/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?se.1)){var $=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate($,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate($+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='',z}(ft),gt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokePanel.colors=de.defaultColorSet,se.fillColor="transparent",se}return ye(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='',z}($e),Ut=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Nt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new be("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ct("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ht("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.visual&&$!==this.selectorCurve&&$!==this.visibleCurve&&!this.curveGrip.ownsTarget($))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=$.x,this.curveY=$.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var $=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-$/2,this.curveY-$/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},z.prototype.manipulate=function($){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+$.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+$.y-this.manipulationStartY),ae.prototype.manipulate.call(this,$)},z.prototype.resize=function($){this.activeGrip===this.curveGrip&&(this.curveX=$.x,this.curveY=$.y),ae.prototype.resize.call(this,$),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function($){this.strokeColor=$,this.adjustVisual(),this.colorChanged($)},z.prototype.setStrokeWidth=function($){this.strokeWidth=$,this.adjustVisual()},z.prototype.setStrokeDasharray=function($){this.strokeDasharray=$,this.adjustVisual()},z.prototype.scale=function($,ie){this.curveX=this.curveX*$,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,$,ie)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='',z}(tt),hr=function(){function ae(z,$){$===void 0&&($=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=$}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),mr=function(ae){function z($,ie,de){var se=ae.call(this,$,!1)||this;return se.dataUrl=ie,se.state=de,se}return ye(z,ae),z}(hr),_t=function(ae){function z($,ie,de){de===void 0&&(de=!1);var se=ae.call(this,$,de)||this;return se.marker=ie,se}return ye(z,ae),z}(hr),Yr=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(z,$){this[z].push($)},ae.prototype.removeEventListener=function(z,$){var ie=this[z].indexOf($);ie>-1&&this[z].splice(ie,1)},ae}(),Jr=function(){function ae(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Re,this._isOpen=!1,this.undoRedoManager=new Ut,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Yr,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,gt,$e,ke,et,bt,Ce,ft,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,$e,ke,et]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var $=this;this._availableMarkerTypes.splice(0),z.forEach(function(ie){if(typeof ie=="string"){var de=$.ALL_MARKER_TYPES.find(function(se){return se.typeName===ie});de!==void 0&&$._availableMarkerTypes.push(de)}else $._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function($){return $(new hr(z))})},ae.prototype.render=function(){return Oe(this,void 0,void 0,function(){var z;return xe(this,function($){switch($.label){case 0:return this.setCurrentMarker(),(z=new pe).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return $.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,$.sent()]}})})},ae.prototype.close=function(z){var $=this;if(z===void 0&&(z=!1),this.isOpen){var ie=!1;z||this.eventListeners.beforeclose.forEach(function(de){var se=new hr($,!0);de(se),se.defaultPrevented&&(ie=!0)}),ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(de){return de(new hr($))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var z,$=[],ie=0;iethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,ie=$',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Q(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(z,$){if(z==="marker"&&$!==void 0)this.createNewMarker($);else if(z==="action")switch($){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var $=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var se=new _t(z,z._currentMarker,!0);de(se),se.defaultPrevented&&($=!0)}),!$){var ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(de){return de(new _t(z,ie))})}}},ae.prototype.clear=function(){var z=this,$=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ke){var Rt=new _t(z,void 0,!0);Ke(Rt),Rt.defaultPrevented&&($=!0)}),!$)){this.setCurrentMarker();for(var ie=function(Ke){var Rt=de.markers[Ke];de.setCurrentMarker(de.markers[Ke]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Vt){return Vt(new _t(z,Rt))})},de=this,se=this.markers.length-1;se>=0;se--)ie(se);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var $=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===$.width&&ie.height===$.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep($),de1&&this.panTo({x:z.clientX,y:z.clientY}))},ae.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(z,$){var ie=this.markerImage.getBoundingClientRect();return{x:(z-ie.left)/this.zoomLevel,y:($-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(z){re.addKey(z)},ae.prototype.addEventListener=function(z,$){this.eventListeners.addEventListener(z,$)},ae.prototype.removeEventListener=function(z,$){this.eventListeners.removeEventListener(z,$)},ae.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function($){return $(new hr(z))}))},ae.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function($){return $(new hr(z))}))},ae.instanceCounter=0,ae}();/* ********************************** + `,En.style.marginRight="5px",Er.appendChild(En)}se.typeBoxes.push(Er)},se=this,Ke=0;Ke<4;Ke++)de(Ke);return ie},z.prototype.setCurrentType=function($,ie){var de=this;this.currentType=$,this.typeBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(Z),Ie=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new Le("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.arrow1&&$!==this.arrow2)},z.prototype.getArrowPoints=function($,ie){var de=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return $-de/2+","+(ie+se/2)+" "+$+","+(ie-se/2)+" "+($+de/2)+","+(ie+se/2)},z.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var $=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate($,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate($+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},z.prototype.setArrowType=function($){this.arrowType=$,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='',z}(ft),Ce=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.fillColor=de.defaultFillColor,se.strokeWidth=0,se.fillPanel=new be("Color",de.defaultColorSet,de.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return ye(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="CoverMarker",z.title="Cover marker",z.icon='',z}(at),Se=function(ae){function z($,ie,de,se){var Ke=ae.call(this,$,se||'')||this;return Ke.opacities=[],Ke.opacityBoxes=[],Ke.opacities=ie,Ke.currentOpacity=de,Ke.setCurrentOpacity=Ke.setCurrentOpacity.bind(Ke),Ke}return ye(z,ae),z.prototype.getUi=function(){var $=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=de===$.currentOpacity?$.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){$.setCurrentOpacity(de,se)}),ie.appendChild(se);var Ke=document.createElement("div");Ke.innerText=100*de+"%",se.appendChild(Ke),$.opacityBoxes.push(se)}),ie},z.prototype.setCurrentOpacity=function($,ie){var de=this;this.currentOpacity=$,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===ie?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(Z),ke=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=de.defaultHighlightColor,se.strokeWidth=0,se.opacity=de.defaultHighlightOpacity,se.fillPanel=new be("Color",de.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Se("Opacity",de.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ye(z,ae),z.prototype.setOpacity=function($){this.opacity=$,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='',z}(Ce),Ne='',et=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=de.defaultStrokeColor,se.bgColor=de.defaultFillColor,se.fontFamily=de.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new be("Text color",de.defaultColorSet,se.color,''),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new be("Fill color",de.defaultColorSet,se.bgColor,Ne),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Qe("Font",de.defaultFontFamilies,de.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new Je,se.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return ye(z,ae),z.prototype.ownsTarget=function($){return ae.prototype.ownsTarget.call(this,$)||this.tipGrip.ownsTarget($)||this.tip===$},z.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function($,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,$,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,$,ie)},z.prototype.pointerUp=function($){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,$);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,$),this.setTipPoints(ie),this.positionTip()}},z.prototype.manipulate=function($){if(this.tipMoving){var ie=this.unrotatePoint($);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,$)},z.prototype.setBgColor=function($){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",$]]),le.setAttributes(this.tip,[["fill",$]])),this.bgColor=$,this.fillColorChanged($)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function($){$===void 0&&($=!1);var ie=Math.min(this.height/2,15),de=this.height/5;$&&(this.tipPosition={x:ie+de/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?se.1)){var $=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate($,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate($+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='',z}(ft),gt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokePanel.colors=de.defaultColorSet,se.fillColor="transparent",se}return ye(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=ae.prototype.getState.call(this);return $.typeName=z.typeName,$},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='',z}($e),Ut=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Nt=function(ae){function z($,ie,de){var se=ae.call(this,$,ie,de)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new be("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ct("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ht("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ye(z,ae),z.prototype.ownsTarget=function($){return!(!ae.prototype.ownsTarget.call(this,$)&&$!==this.visual&&$!==this.selectorCurve&&$!==this.visibleCurve&&!this.curveGrip.ownsTarget($))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function($,ie){ae.prototype.pointerDown.call(this,$,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=$.x,this.curveY=$.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var $=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-$/2,this.curveY-$/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},z.prototype.manipulate=function($){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+$.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+$.y-this.manipulationStartY),ae.prototype.manipulate.call(this,$)},z.prototype.resize=function($){this.activeGrip===this.curveGrip&&(this.curveX=$.x,this.curveY=$.y),ae.prototype.resize.call(this,$),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function($){this.strokeColor=$,this.adjustVisual(),this.colorChanged($)},z.prototype.setStrokeWidth=function($){this.strokeWidth=$,this.adjustVisual()},z.prototype.setStrokeDasharray=function($){this.strokeDasharray=$,this.adjustVisual()},z.prototype.scale=function($,ie){this.curveX=this.curveX*$,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,$,ie)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var $=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return $.typeName=z.typeName,$},z.prototype.restoreState=function($){ae.prototype.restoreState.call(this,$);var ie=$;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='',z}(tt),hr=function(){function ae(z,$){$===void 0&&($=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=$}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),mr=function(ae){function z($,ie,de){var se=ae.call(this,$,!1)||this;return se.dataUrl=ie,se.state=de,se}return ye(z,ae),z}(hr),St=function(ae){function z($,ie,de){de===void 0&&(de=!1);var se=ae.call(this,$,de)||this;return se.marker=ie,se}return ye(z,ae),z}(hr),Yr=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(z,$){this[z].push($)},ae.prototype.removeEventListener=function(z,$){var ie=this[z].indexOf($);ie>-1&&this[z].splice(ie,1)},ae}(),Jr=function(){function ae(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Re,this._isOpen=!1,this.undoRedoManager=new Ut,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Yr,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,gt,$e,ke,et,bt,Ce,ft,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,$e,ke,et]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[He,Ue,Ie,lt,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var $=this;this._availableMarkerTypes.splice(0),z.forEach(function(ie){if(typeof ie=="string"){var de=$.ALL_MARKER_TYPES.find(function(se){return se.typeName===ie});de!==void 0&&$._availableMarkerTypes.push(de)}else $._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function($){return $(new hr(z))})},ae.prototype.render=function(){return Oe(this,void 0,void 0,function(){var z;return xe(this,function($){switch($.label){case 0:return this.setCurrentMarker(),(z=new pe).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return $.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,$.sent()]}})})},ae.prototype.close=function(z){var $=this;if(z===void 0&&(z=!1),this.isOpen){var ie=!1;z||this.eventListeners.beforeclose.forEach(function(de){var se=new hr($,!0);de(se),se.defaultPrevented&&(ie=!0)}),ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(de){return de(new hr($))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var z,$=[],ie=0;iethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,ie=$',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Q(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(z,$){if(z==="marker"&&$!==void 0)this.createNewMarker($);else if(z==="action")switch($){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var $=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var se=new St(z,z._currentMarker,!0);de(se),se.defaultPrevented&&($=!0)}),!$){var ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(de){return de(new St(z,ie))})}}},ae.prototype.clear=function(){var z=this,$=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ke){var Rt=new St(z,void 0,!0);Ke(Rt),Rt.defaultPrevented&&($=!0)}),!$)){this.setCurrentMarker();for(var ie=function(Ke){var Rt=de.markers[Ke];de.setCurrentMarker(de.markers[Ke]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Vt){return Vt(new St(z,Rt))})},de=this,se=this.markers.length-1;se>=0;se--)ie(se);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var $=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===$.width&&ie.height===$.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep($),de1&&this.panTo({x:z.clientX,y:z.clientY}))},ae.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(z,$){var ie=this.markerImage.getBoundingClientRect();return{x:(z-ie.left)/this.zoomLevel,y:($-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(z){re.addKey(z)},ae.prototype.addEventListener=function(z,$){this.eventListeners.addEventListener(z,$)},ae.prototype.removeEventListener=function(z,$){this.eventListeners.removeEventListener(z,$)},ae.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function($){return $(new hr(z))}))},ae.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function($){return $(new hr(z))}))},ae.instanceCounter=0,ae}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -231,50 +231,50 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new gr("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},ae.instanceCounter=0,ae}(),$t=D("8hTe"),en=D.n($t),Cn=/]*>/g;function Sn(ae){var z=document.createElement("div");return z.innerHTML=ae,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var On=Y.a=function(ae){var z=ae.value,$=z===void 0?"":z,ie=ae.edit,de=ie===void 0?!1:ie,se=ae.className,Ke=ae.showTextOnly,Rt=ae.showLines,Vt=ae.replaces,Er=ae.zoomImg,Lt=ae.hasMask,zr=ae.style,Br=zr===void 0?{}:zr,En=ae.stylesPrev,ui=En===void 0?{}:En,Ei=String($),In=Object(l.useRef)(),Li=Object(l.useRef)(),qi=Object(l.useState)(""),ni=Object(_.a)(qi,2),Ti=ni[0],xi=ni[1],Fi=Object(l.useState)("office"),Ci=Object(_.a)(Fi,2),Gi=Ci[0],Mi=Ci[1],oa=function(){var mt=new wt(Li.current);mt.displayMode="popup",mt.addRenderEventListener(function(){var Ct=Object(v.a)(d.a.mark(function It(Pt){var Ht;return d.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return In.current.style.display="none",dt.next=3,Object(Ae.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pt}});case 3:Ht=dt.sent,Ht!=null&&Ht.id&&Vt(Li.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(Ht==null?void 0:Ht.id,"?type=").concat(Ht.content_type));case 5:case"end":return dt.stop()}},It)}));return function(It){return Ct.apply(this,arguments)}}()),mt.show()},sa=function(){var mt=new Jr(Li.current);mt.settings.displayMode="popup",mt.addEventListener("render",function(){var Ct=Object(v.a)(d.a.mark(function It(Pt){var Ht;return d.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(In.current.style.display="none",!Li.current){dt.next=6;break}return dt.next=4,Object(Ae.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pt.dataUrl}});case 4:Ht=dt.sent,Ht!=null&&Ht.id&&Vt(Li.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(Ht==null?void 0:Ht.id,"?type=").concat(Ht.content_type));case 6:case"end":return dt.stop()}},It)}));return function(It){return Ct.apply(this,arguments)}}()),mt.show(),window.markerArea=mt},Ii=Object(l.useMemo)(function(){try{var it=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ct=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(it,"("+ne.a.API_SERVER+"/api/attachments/").replace(mt,'"'+ne.a.API_SERVER+"/api/attachments/").replace(Ct,'"'+ne.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` + `))},ae.instanceCounter=0,ae}(),$t=D("8hTe"),en=D.n($t),Cn=/]*>/g;function _n(ae){var z=document.createElement("div");return z.innerHTML=ae,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var On=Y.a=function(ae){var z=ae.value,$=z===void 0?"":z,ie=ae.edit,de=ie===void 0?!1:ie,se=ae.className,Ke=ae.showTextOnly,Rt=ae.showLines,Vt=ae.replaces,Er=ae.zoomImg,Lt=ae.hasMask,zr=ae.style,Br=zr===void 0?{}:zr,En=ae.stylesPrev,ui=En===void 0?{}:En,Ei=String($),In=Object(l.useRef)(),Li=Object(l.useRef)(),qi=Object(l.useState)(""),ni=Object(S.a)(qi,2),Ti=ni[0],xi=ni[1],Fi=Object(l.useState)("office"),Ci=Object(S.a)(Fi,2),Gi=Ci[0],Mi=Ci[1],oa=function(){var mt=new wt(Li.current);mt.displayMode="popup",mt.addRenderEventListener(function(){var Ct=Object(v.a)(d.a.mark(function It(Pt){var Ht;return d.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return In.current.style.display="none",dt.next=3,Object(Ae.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pt}});case 3:Ht=dt.sent,Ht!=null&&Ht.id&&Vt(Li.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(Ht==null?void 0:Ht.id,"?type=").concat(Ht.content_type));case 5:case"end":return dt.stop()}},It)}));return function(It){return Ct.apply(this,arguments)}}()),mt.show()},sa=function(){var mt=new Jr(Li.current);mt.settings.displayMode="popup",mt.addEventListener("render",function(){var Ct=Object(v.a)(d.a.mark(function It(Pt){var Ht;return d.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(In.current.style.display="none",!Li.current){dt.next=6;break}return dt.next=4,Object(Ae.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Pt.dataUrl}});case 4:Ht=dt.sent,Ht!=null&&Ht.id&&Vt(Li.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(Ht==null?void 0:Ht.id,"?type=").concat(Ht.content_type));case 6:case"end":return dt.stop()}},It)}));return function(It){return Ct.apply(this,arguments)}}()),mt.show(),window.markerArea=mt},Ii=Object(l.useMemo)(function(){try{var it=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ct=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(it,"("+ne.a.API_SERVER+"/api/attachments/").replace(mt,'"'+ne.a.API_SERVER+"/api/attachments/").replace(Ct,'"'+ne.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Ei=Ei.replace(new RegExp("(?[TOC]

                      ",k()),w()),It=It.replace(/(__special_katext_id_\d+__)/g,function(Wt,dt){var At=Pt[dt],Dt=At.type,yr=At.expression;return Object(fe.renderToString)(Sn(yr)||"",{displayMode:Dt==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581"),I(),Ke){var Ht=document.createElement("div");return Ht.innerHTML=It,Ht.innerText}return setTimeout(function(){return ta()},500),It},[Ei]),qn=Object(l.useRef)();E.WebkitLineClamp=Rt,Rt&&(Br=Object(p.a)(Object(p.a)({},Br),E));function Vi(it){var mt=it.target;if(mt.tagName.toUpperCase()==="IMG"){if(Er){var Ct=mt.getAttribute("src");xi(Ct),Mi("image")}}else if(mt.tagName.toUpperCase()==="A"){var It=mt.getAttribute("href");if(It.indexOf("office")>-1)it.preventDefault(),xi(It),Mi("office");else if(It.indexOf("application/pdf")>-1)it.preventDefault(),xi(It),Mi("pdf");else if(It.indexOf("type=text")>-1)it.preventDefault(),xi(It),Mi("html");else if(It.startsWith("#")){it.preventDefault();var Pt=document.getElementById(It.replace("#",""));Pt&&Pt.scrollIntoView(!0)}}}var ta=function(){var mt,Ct=(mt=qn.current)===null||mt===void 0?void 0:mt.querySelectorAll("video");Ct==null||Ct.forEach(function(It){if(It.oncontextmenu=function(){return!1},It.src.indexOf(".m3u8")>-1&&!It.canPlayType("application/vnd.apple.mpegurl")){if(X.a.isSupported()){var Pt=new X.a;Pt.loadSource(It.src),Pt.attachMedia(It)}}})};Object(l.useEffect)(function(){if(qn.current&&Ii&&(Ii.match(Cn)&&window.PR.prettyPrint()),qn.current)return qn.current.addEventListener("click",Vi),function(){qn.current.removeEventListener("click",Vi),I(),w()}},[Ii,qn.current,Vi]);var Tt=function(mt){if(!de)return;mt.target.nodeName==="IMG"?(In.current.style.display="flex",In.current.style.width=mt.target.clientWidth+"px",In.current.style.height=mt.target.clientHeight+"px",In.current.style.top=mt.target.offsetTop+"px",In.current.style.left=mt.target.offsetLeft+"px",Li.current.src=mt.target.getAttribute("src")):In.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:qn,style:Object(p.a)({},Br),className:"".concat(se||""," markdown-body ").concat(en.a.mdBody),onMouseOver:Tt,dangerouslySetInnerHTML:{__html:Ii}}),n.a.createElement("div",{ref:In,className:en.a.button},n.a.createElement(g.a,null,n.a.createElement(P.a,{onClick:function(){return oa()}},"\u88C1\u526A"),n.a.createElement(P.a,{onClick:function(){return sa()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:Li,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),n.a.createElement(me.a,{close:!0,data:Ti,hasMask:Lt,type:Ti!=null&&Ti.length?Gi:"",style:Object(p.a)({},ui),onClose:function(){return xi("")}}))}},"9OqN":function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.mode.CTR=function(){var g=L.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(P,p){var v=this._cipher,_=v.blockSize,b=this._iv,d=this._counter;b&&(d=this._counter=b.slice(0),this._iv=void 0);var l=d.slice(0);v.encryptBlock(l,0),d[_-1]=d[_-1]+1|0;for(var n=0;n<_;n++)P[p+n]^=l[n]}});return g.Decryptor=T,g}(),L.mode.CTR})},"9VGf":function(j,Y,D){"use strict";D.d(Y,"a",function(){return T});var L=D("q1tI"),g=D.n(L);function T(P,p){var v=Object(L.useRef)();Object(L.useEffect)(function(){v.current=P}),Object(L.useEffect)(function(){function _(){v.current()}if(p!==null){var b=setInterval(_,p);return function(){return clearInterval(b)}}},[p])}},ALsQ:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.mode.CFB=function(){var g=L.lib.BlockCipherMode.extend();g.Encryptor=g.extend({processBlock:function(P,p){var v=this._cipher,_=v.blockSize;T.call(this,P,p,_,v),this._prevBlock=P.slice(p,p+_)}}),g.Decryptor=g.extend({processBlock:function(P,p){var v=this._cipher,_=v.blockSize,b=P.slice(p,p+_);T.call(this,P,p,_,v),this._prevBlock=b}});function T(P,p,v,_){var b,d=this._iv;d?(b=d.slice(0),this._iv=void 0):b=this._prevBlock,_.encryptBlock(b,0);for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var l=document.createElement("style");if((b=d.csp)===null||b===void 0?void 0:b.nonce){var n;l.nonce=(n=d.csp)===null||n===void 0?void 0:n.nonce}l.innerHTML=_;var c=T(d),u=c.firstChild;return d.prepend&&c.prepend?c.prepend(l):d.prepend&&u?c.insertBefore(l,u):c.appendChild(l),l}var p=new Map;function v(_,b){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=T(d);if(!p.has(l)){var n=P("",d),c=n.parentNode;p.set(l,c),c.removeChild(n)}var u=Array.from(p.get(l).children).find(function(r){return r.tagName==="STYLE"&&r[g]===b});if(u){var o,h;if(((o=d.csp)===null||o===void 0?void 0:o.nonce)&&u.nonce!==((h=d.csp)===null||h===void 0?void 0:h.nonce)){var m;u.nonce=(m=d.csp)===null||m===void 0?void 0:m.nonce}return u.innerHTML!==_&&(u.innerHTML=_),u}var s=P(_,d);return s[g]=b,s}},Bd2K:function(j,Y,D){(function(L){L(D("VrN/"),D("osHv"))})(function(L){L.defineOption("autoCloseTags",!1,function(d,l,n){if(n!=L.Init&&n&&d.removeKeyMap("autoCloseTags"),!l)return;var c={name:"autoCloseTags"};(typeof l!="object"||l.whenClosing!==!1)&&(c["'/'"]=function(u){return v(u)}),(typeof l!="object"||l.whenOpening!==!1)&&(c["'>'"]=function(u){return P(u)}),d.addKeyMap(c)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function P(d){if(d.getOption("disableInput"))return L.Pass;for(var l=d.listSelections(),n=[],c=d.getOption("autoCloseTags"),u=0;uo.ch&&(a=a.slice(0,a.length-h.end+o.ch));var f=a.toLowerCase();if(!a||h.type=="string"&&(h.end!=o.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||h.string.length==1)||h.type=="tag"&&r.close||h.string.indexOf("/")==o.ch-h.start-1||w&&_(w,f)>-1||b(d,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(s)||[],a,o,!0))return L.Pass;var k=typeof c=="object"&&c.emptyTags;if(k&&_(k,a)>-1){n[u]={text:"/>",newPos:L.Pos(o.line,o.ch+2)};continue}var O=E&&_(E,f)>-1;n[u]={indent:O,text:">"+(O?` +`)}catch(Wt){}var It=K(Ei),Pt=M();if(Ei.match(/\[TOC\]/)&&(It=It.replace("

                      [TOC]

                      ",k()),w()),It=It.replace(/(__special_katext_id_\d+__)/g,function(Wt,dt){var At=Pt[dt],Dt=At.type,yr=At.expression;return Object(fe.renderToString)(_n(yr)||"",{displayMode:Dt==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581"),I(),Ke){var Ht=document.createElement("div");return Ht.innerHTML=It,Ht.innerText}return setTimeout(function(){return ta()},500),It},[Ei]),qn=Object(l.useRef)();E.WebkitLineClamp=Rt,Rt&&(Br=Object(p.a)(Object(p.a)({},Br),E));function Vi(it){var mt=it.target;if(mt.tagName.toUpperCase()==="IMG"){if(Er){var Ct=mt.getAttribute("src");xi(Ct),Mi("image")}}else if(mt.tagName.toUpperCase()==="A"){var It=mt.getAttribute("href");if(It.indexOf("office")>-1)it.preventDefault(),xi(It),Mi("office");else if(It.indexOf("application/pdf")>-1)it.preventDefault(),xi(It),Mi("pdf");else if(It.indexOf("type=text")>-1)it.preventDefault(),xi(It),Mi("html");else if(It.startsWith("#")){it.preventDefault();var Pt=document.getElementById(It.replace("#",""));Pt&&Pt.scrollIntoView(!0)}}}var ta=function(){var mt,Ct=(mt=qn.current)===null||mt===void 0?void 0:mt.querySelectorAll("video");Ct==null||Ct.forEach(function(It){if(It.oncontextmenu=function(){return!1},It.src.indexOf(".m3u8")>-1&&!It.canPlayType("application/vnd.apple.mpegurl")){if(X.a.isSupported()){var Pt=new X.a;Pt.loadSource(It.src),Pt.attachMedia(It)}}})};Object(l.useEffect)(function(){if(qn.current&&Ii&&(Ii.match(Cn)&&window.PR.prettyPrint()),qn.current)return qn.current.addEventListener("click",Vi),function(){qn.current.removeEventListener("click",Vi),I(),w()}},[Ii,qn.current,Vi]);var Tt=function(mt){if(!de)return;mt.target.nodeName==="IMG"?(In.current.style.display="flex",In.current.style.width=mt.target.clientWidth+"px",In.current.style.height=mt.target.clientHeight+"px",In.current.style.top=mt.target.offsetTop+"px",In.current.style.left=mt.target.offsetLeft+"px",Li.current.src=mt.target.getAttribute("src")):In.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:qn,style:Object(p.a)({},Br),className:"".concat(se||""," markdown-body ").concat(en.a.mdBody),onMouseOver:Tt,dangerouslySetInnerHTML:{__html:Ii}}),n.a.createElement("div",{ref:In,className:en.a.button},n.a.createElement(g.a,null,n.a.createElement(P.a,{onClick:function(){return oa()}},"\u88C1\u526A"),n.a.createElement(P.a,{onClick:function(){return sa()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:Li,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),n.a.createElement(me.a,{close:!0,data:Ti,hasMask:Lt,type:Ti!=null&&Ti.length?Gi:"",style:Object(p.a)({},ui),onClose:function(){return xi("")}}))}},"9OqN":function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.mode.CTR=function(){var g=L.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(P,p){var v=this._cipher,S=v.blockSize,b=this._iv,d=this._counter;b&&(d=this._counter=b.slice(0),this._iv=void 0);var l=d.slice(0);v.encryptBlock(l,0),d[S-1]=d[S-1]+1|0;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var l=document.createElement("style");if((b=d.csp)===null||b===void 0?void 0:b.nonce){var n;l.nonce=(n=d.csp)===null||n===void 0?void 0:n.nonce}l.innerHTML=S;var c=T(d),u=c.firstChild;return d.prepend&&c.prepend?c.prepend(l):d.prepend&&u?c.insertBefore(l,u):c.appendChild(l),l}var p=new Map;function v(S,b){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=T(d);if(!p.has(l)){var n=P("",d),c=n.parentNode;p.set(l,c),c.removeChild(n)}var u=Array.from(p.get(l).children).find(function(r){return r.tagName==="STYLE"&&r[g]===b});if(u){var o,h;if(((o=d.csp)===null||o===void 0?void 0:o.nonce)&&u.nonce!==((h=d.csp)===null||h===void 0?void 0:h.nonce)){var m;u.nonce=(m=d.csp)===null||m===void 0?void 0:m.nonce}return u.innerHTML!==S&&(u.innerHTML=S),u}var s=P(S,d);return s[g]=b,s}},Bd2K:function(j,Y,D){(function(L){L(D("VrN/"),D("osHv"))})(function(L){L.defineOption("autoCloseTags",!1,function(d,l,n){if(n!=L.Init&&n&&d.removeKeyMap("autoCloseTags"),!l)return;var c={name:"autoCloseTags"};(typeof l!="object"||l.whenClosing!==!1)&&(c["'/'"]=function(u){return v(u)}),(typeof l!="object"||l.whenOpening!==!1)&&(c["'>'"]=function(u){return P(u)}),d.addKeyMap(c)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function P(d){if(d.getOption("disableInput"))return L.Pass;for(var l=d.listSelections(),n=[],c=d.getOption("autoCloseTags"),u=0;uo.ch&&(a=a.slice(0,a.length-h.end+o.ch));var f=a.toLowerCase();if(!a||h.type=="string"&&(h.end!=o.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||h.string.length==1)||h.type=="tag"&&r.close||h.string.indexOf("/")==o.ch-h.start-1||w&&S(w,f)>-1||b(d,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(s)||[],a,o,!0))return L.Pass;var k=typeof c=="object"&&c.emptyTags;if(k&&S(k,a)>-1){n[u]={text:"/>",newPos:L.Pos(o.line,o.ch+2)};continue}var O=E&&S(E,f)>-1;n[u]={indent:O,text:">"+(O?` -`:"")+"",newPos:O?L.Pos(o.line+1,0):L.Pos(o.line,o.ch+1)}}for(var C=typeof c=="object"&&c.dontIndentOnAutoClose,u=l.length-1;u>=0;u--){var x=n[u];d.replaceRange(x.text,l[u].head,l[u].anchor,"+insert");var y=d.listSelections().slice(0);y[u]={head:x.newPos,anchor:x.newPos},d.setSelections(y),!C&&x.indent&&(d.indentLine(x.newPos.line,null,!0),d.indentLine(x.newPos.line+1,null,!0))}}function p(d,l){for(var n=d.listSelections(),c=[],u=l?"/":""&&(w+=">"),c[m]=w}if(d.replaceSelections(c),n=d.listSelections(),!h)for(var m=0;m=0&&l[s]==n;s--)++m;c=h.to;for(var s=1;s0){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:"",l=[],n=0;nUe.length)&&(Le=Ue.length);for(var Ie=0,Ce=new Array(Le);Ie=Ue.length?{done:!0}:{done:!1,value:Ue[Ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Ie=Ue[Symbol.iterator](),Ie.next.bind(Ie)}function v(Ue,Le){return Le={exports:{}},Ue(Le,Le.exports),Le.exports}var _=v(function(Ue){function Le(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Ie(Ce){Ue.exports.defaults=Ce}Ue.exports={defaults:Le(),getDefaults:Le,changeDefaults:Ie}}),b=_.defaults,d=_.getDefaults,l=_.changeDefaults,n=/[&<>"']/,c=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(Le){return h[Le]};function s(Ue,Le){if(Le){if(n.test(Ue))return Ue.replace(c,m)}else if(u.test(Ue))return Ue.replace(o,m);return Ue}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function a(Ue){return Ue.replace(r,function(Le,Ie){return Ie=Ie.toLowerCase(),Ie==="colon"?":":Ie.charAt(0)==="#"?Ie.charAt(1)==="x"?String.fromCharCode(parseInt(Ie.substring(2),16)):String.fromCharCode(+Ie.substring(1)):""})}var t=/(^|[^\[])\^/g;function w(Ue,Le){Ue=Ue.source||Ue,Le=Le||"";var Ie={replace:function(_e,ke){return ke=ke.source||ke,ke=ke.replace(t,"$1"),Ue=Ue.replace(_e,ke),Ie},getRegex:function(){return new RegExp(Ue,Le)}};return Ie}var E=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(Ue,Le,Ie){if(Ue){var Ce;try{Ce=decodeURIComponent(a(Ie)).replace(E,"").toLowerCase()}catch(_e){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}Le&&!f.test(Ie)&&(Ie=S(Le,Ie));try{Ie=encodeURI(Ie).replace(/%25/g,"%")}catch(_e){return null}return Ie}var O={},C=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function S(Ue,Le){O[" "+Ue]||(C.test(Ue)?O[" "+Ue]=Ue+"/":O[" "+Ue]=G(Ue,"/",!0)),Ue=O[" "+Ue];var Ie=Ue.indexOf(":")===-1;return Le.substring(0,2)==="//"?Ie?Le:Ue.replace(x,"$1")+Le:Le.charAt(0)==="/"?Ie?Le:Ue.replace(y,"$1")+Le:Ue+Le}var M={exec:function(){}};function I(Ue){for(var Le=1,Ie,Ce;Le=0&&et[bt]==="\\";)$e=!$e;return $e?"|":" |"}),Ce=Ie.split(/ \|/),_e=0;if(Ce.length>Le)Ce.splice(Le);else for(;Ce.length=Ce.length?_e.slice(Ce.length):_e}).join(` -`)}var De=function(){function Ue(Ie){this.options=Ie||U}var Le=Ue.prototype;return Le.space=function(Ce){var _e=this.rules.block.newline.exec(Ce);if(_e)return _e[0].length>1?{type:"space",raw:_e[0]}:{raw:` -`}},Le.code=function(Ce,_e){var ke=this.rules.block.code.exec(Ce);if(ke){var Ne=_e[_e.length-1];if(Ne&&Ne.type==="paragraph")return{raw:ke[0],text:ke[0].trimRight()};var et=ke[0].replace(/^ {4}/gm,"");return{type:"code",raw:ke[0],codeBlockStyle:"indented",text:this.options.pedantic?et:W(et,` -`)}}},Le.fences=function(Ce){var _e=this.rules.block.fences.exec(Ce);if(_e){var ke=_e[0],Ne=Ae(ke,_e[3]||"");return{type:"code",raw:ke,lang:_e[2]?_e[2].trim():_e[2],text:Ne}}},Le.heading=function(Ce){var _e=this.rules.block.heading.exec(Ce);if(_e)return{type:"heading",raw:_e[0],depth:_e[1].length,text:_e[2]}},Le.nptable=function(Ce){var _e=this.rules.block.nptable.exec(Ce);if(_e){var ke={type:"table",header:X(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(` -`):[],raw:_e[0]};if(ke.header.length===ke.align.length){var Ne=ke.align.length,et;for(et=0;et ?/gm,"");return{type:"blockquote",raw:_e[0],text:ke}}},Le.list=function(Ce){var _e=this.rules.block.list.exec(Ce);if(_e){for(var ke=_e[0],Ne=_e[2],et=Ne.length>1,$e=Ne[Ne.length-1]===")",bt={type:"list",raw:ke,ordered:et,start:et?+Ne.slice(0,-1):"",loose:!1,items:[]},gt=_e[0].match(this.rules.block.item),Ut=!1,Nt,hr,mr,_t,Yr,Jr,Hr,un=gt.length,Ar=0;Ar1||this.options.smartLists&&mr!==Ne)&&(_t=gt.slice(Ar+1).join(` -`),bt.raw=bt.raw.substring(0,bt.raw.length-_t.length),Ar=un-1)),Yr=Ut||/\n\n(?!\s*$)/.test(Nt),Ar!==un-1&&(Ut=Nt.charAt(Nt.length-1)===` -`,Yr||(Yr=Ut)),Yr&&(bt.loose=!0),Jr=/^\[[ xX]\] /.test(Nt),Hr=void 0,Jr&&(Hr=Nt[1]!==" ",Nt=Nt.replace(/^\[[ xX]\] +/,"")),bt.items.push({type:"list_item",raw:ke,task:Jr,checked:Hr,loose:Yr,text:Nt});return bt}},Le.html=function(Ce){var _e=this.rules.block.html.exec(Ce);if(_e)return{type:this.options.sanitize?"paragraph":"html",raw:_e[0],pre:!this.options.sanitizer&&(_e[1]==="pre"||_e[1]==="script"||_e[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):ne(_e[0]):_e[0]}},Le.def=function(Ce){var _e=this.rules.block.def.exec(Ce);if(_e){_e[3]&&(_e[3]=_e[3].substring(1,_e[3].length-1));var ke=_e[1].toLowerCase().replace(/\s+/g," ");return{tag:ke,raw:_e[0],href:_e[2],title:_e[3]}}},Le.table=function(Ce){var _e=this.rules.block.table.exec(Ce);if(_e){var ke={type:"table",header:X(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(` -`):[]};if(ke.header.length===ke.align.length){ke.raw=_e[0];var Ne=ke.align.length,et;for(et=0;et/i.test(Ne[0])&&(_e=!1),!ke&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ne[0])?ke=!0:ke&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ne[0])&&(ke=!1),{type:this.options.sanitize?"text":"html",raw:Ne[0],inLink:_e,inRawBlock:ke,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):ne(Ne[0]):Ne[0]}},Le.link=function(Ce){var _e=this.rules.inline.link.exec(Ce);if(_e){var ke=fe(_e[2],"()");if(ke>-1){var Ne=_e[0].indexOf("!")===0?5:4,et=Ne+_e[1].length+ke;_e[2]=_e[2].substring(0,ke),_e[0]=_e[0].substring(0,et).trim(),_e[3]=""}var $e=_e[2],bt="";if(this.options.pedantic){var gt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);gt?($e=gt[1],bt=gt[3]):bt=""}else bt=_e[3]?_e[3].slice(1,-1):"";$e=$e.trim().replace(/^<([\s\S]*)>$/,"$1");var Ut=me(_e,{href:$e&&$e.replace(this.rules.inline._escapes,"$1"),title:bt&&bt.replace(this.rules.inline._escapes,"$1")},_e[0]);return Ut}},Le.reflink=function(Ce,_e){var ke;if((ke=this.rules.inline.reflink.exec(Ce))||(ke=this.rules.inline.nolink.exec(Ce))){var Ne=(ke[2]||ke[1]).replace(/\s+/g," ");if(Ne=_e[Ne.toLowerCase()],!Ne||!Ne.href){var et=ke[0].charAt(0);return{type:"text",raw:et,text:et}}var $e=me(ke,Ne,ke[0]);return $e}},Le.strong=function(Ce,_e,ke){ke===void 0&&(ke="");var Ne=this.rules.inline.strong.start.exec(Ce);if(Ne&&(!Ne[1]||Ne[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){_e=_e.slice(-1*Ce.length);var et=Ne[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;et.lastIndex=0;for(var $e;(Ne=et.exec(_e))!=null;)if($e=this.rules.inline.strong.middle.exec(_e.slice(0,Ne.index+3)),$e)return{type:"strong",raw:Ce.slice(0,$e[0].length),text:Ce.slice(2,$e[0].length-2)}}},Le.em=function(Ce,_e,ke){ke===void 0&&(ke="");var Ne=this.rules.inline.em.start.exec(Ce);if(Ne&&(!Ne[1]||Ne[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){_e=_e.slice(-1*Ce.length);var et=Ne[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;et.lastIndex=0;for(var $e;(Ne=et.exec(_e))!=null;)if($e=this.rules.inline.em.middle.exec(_e.slice(0,Ne.index+2)),$e)return{type:"em",raw:Ce.slice(0,$e[0].length),text:Ce.slice(1,$e[0].length-1)}}},Le.codespan=function(Ce){var _e=this.rules.inline.code.exec(Ce);if(_e){var ke=_e[2].replace(/\n/g," "),Ne=/[^ ]/.test(ke),et=ke.startsWith(" ")&&ke.endsWith(" ");return Ne&&et&&(ke=ke.substring(1,ke.length-1)),ke=ne(ke,!0),{type:"codespan",raw:_e[0],text:ke}}},Le.br=function(Ce){var _e=this.rules.inline.br.exec(Ce);if(_e)return{type:"br",raw:_e[0]}},Le.del=function(Ce){var _e=this.rules.inline.del.exec(Ce);if(_e)return{type:"del",raw:_e[0],text:_e[1]}},Le.autolink=function(Ce,_e){var ke=this.rules.inline.autolink.exec(Ce);if(ke){var Ne,et;return ke[2]==="@"?(Ne=ne(this.options.mangle?_e(ke[1]):ke[1]),et="mailto:"+Ne):(Ne=ne(ke[1]),et=Ne),{type:"link",raw:ke[0],text:Ne,href:et,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Le.url=function(Ce,_e){var ke;if(ke=this.rules.inline.url.exec(Ce)){var Ne,et;if(ke[2]==="@")Ne=ne(this.options.mangle?_e(ke[0]):ke[0]),et="mailto:"+Ne;else{var $e;do $e=ke[0],ke[0]=this.rules.inline._backpedal.exec(ke[0])[0];while($e!==ke[0]);Ne=ne(ke[0]),ke[1]==="www."?et="http://"+Ne:et=Ne}return{type:"link",raw:ke[0],text:Ne,href:et,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Le.inlineText=function(Ce,_e,ke){var Ne=this.rules.inline.text.exec(Ce);if(Ne){var et;return _e?et=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):ne(Ne[0]):Ne[0]:et=ne(this.options.smartypants?ke(Ne[0]):Ne[0]),{type:"text",raw:Ne[0],text:et}}},Ue}(),ye=K.noopTest,Oe=K.edit,xe=K.merge,ue={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ye,table:ye,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=Oe(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=Oe(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=Oe(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ue._comment=//,ue.html=Oe(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=Oe(ue._paragraph).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.blockquote=Oe(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=xe({},ue),ue.gfm=xe({},ue.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ue.gfm.nptable=Oe(ue.gfm.nptable).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.gfm.table=Oe(ue.gfm.table).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.pedantic=xe({},ue.normal,{html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ye,paragraph:Oe(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ye,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ye,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",le.punctuation=Oe(le.punctuation).replace(/punctuation/g,le._punctuation).getRegex(),le._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",le._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",le.em.start=Oe(le.em.start).replace(/punctuation/g,le._punctuation).getRegex(),le.em.middle=Oe(le.em.middle).replace(/punctuation/g,le._punctuation).replace(/overlapSkip/g,le._overlapSkip).getRegex(),le.em.endAst=Oe(le.em.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.em.endUnd=Oe(le.em.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.start=Oe(le.strong.start).replace(/punctuation/g,le._punctuation).getRegex(),le.strong.middle=Oe(le.strong.middle).replace(/punctuation/g,le._punctuation).replace(/blockSkip/g,le._blockSkip).getRegex(),le.strong.endAst=Oe(le.strong.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.endUnd=Oe(le.strong.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.blockSkip=Oe(le._blockSkip,"g").getRegex(),le.overlapSkip=Oe(le._overlapSkip,"g").getRegex(),le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,le._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,le.autolink=Oe(le.autolink).replace("scheme",le._scheme).replace("email",le._email).getRegex(),le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,le.tag=Oe(le.tag).replace("comment",ue._comment).replace("attribute",le._attribute).getRegex(),le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,le._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,le.link=Oe(le.link).replace("label",le._label).replace("href",le._href).replace("title",le._title).getRegex(),le.reflink=Oe(le.reflink).replace("label",le._label).getRegex(),le.reflinkSearch=Oe(le.reflinkSearch,"g").replace("reflink",le.reflink).replace("nolink",le.nolink).getRegex(),le.normal=xe({},le),le.pedantic=xe({},le.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",le._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",le._label).getRegex()}),le.gfm=xe({},le.normal,{escape:Oe(le.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(Ce="x"+Ce.toString(16)),Le+="&#"+Ce+";";return Le}var Q=function(){function Ue(Ie){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ie||pe,this.options.tokenizer=this.options.tokenizer||new De,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ce={block:ee.normal,inline:te.normal};this.options.pedantic?(Ce.block=ee.pedantic,Ce.inline=te.pedantic):this.options.gfm&&(Ce.block=ee.gfm,this.options.breaks?Ce.inline=te.breaks:Ce.inline=te.gfm),this.tokenizer.rules=Ce}Ue.lex=function(Ce,_e){var ke=new Ue(_e);return ke.lex(Ce)};var Le=Ue.prototype;return Le.lex=function(Ce){return Ce=Ce.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(Ce,this.tokens,!0),this.inline(this.tokens),this.tokens},Le.blockTokens=function(Ce,_e,ke){_e===void 0&&(_e=[]),ke===void 0&&(ke=!0),Ce=Ce.replace(/^ +$/gm,"");for(var Ne,et,$e,bt;Ce;){if(Ne=this.tokenizer.space(Ce)){Ce=Ce.substring(Ne.raw.length),Ne.type&&_e.push(Ne);continue}if(Ne=this.tokenizer.code(Ce,_e)){Ce=Ce.substring(Ne.raw.length),Ne.type?_e.push(Ne):(bt=_e[_e.length-1],bt.raw+=` +`:"")+"",newPos:O?L.Pos(o.line+1,0):L.Pos(o.line,o.ch+1)}}for(var C=typeof c=="object"&&c.dontIndentOnAutoClose,u=l.length-1;u>=0;u--){var x=n[u];d.replaceRange(x.text,l[u].head,l[u].anchor,"+insert");var y=d.listSelections().slice(0);y[u]={head:x.newPos,anchor:x.newPos},d.setSelections(y),!C&&x.indent&&(d.indentLine(x.newPos.line,null,!0),d.indentLine(x.newPos.line+1,null,!0))}}function p(d,l){for(var n=d.listSelections(),c=[],u=l?"/":""&&(w+=">"),c[m]=w}if(d.replaceSelections(c),n=d.listSelections(),!h)for(var m=0;m=0&&l[s]==n;s--)++m;c=h.to;for(var s=1;s0){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:"",l=[],n=0;nUe.length)&&(Le=Ue.length);for(var Ie=0,Ce=new Array(Le);Ie=Ue.length?{done:!0}:{done:!1,value:Ue[Ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Ie=Ue[Symbol.iterator](),Ie.next.bind(Ie)}function v(Ue,Le){return Le={exports:{}},Ue(Le,Le.exports),Le.exports}var S=v(function(Ue){function Le(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Ie(Ce){Ue.exports.defaults=Ce}Ue.exports={defaults:Le(),getDefaults:Le,changeDefaults:Ie}}),b=S.defaults,d=S.getDefaults,l=S.changeDefaults,n=/[&<>"']/,c=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(Le){return h[Le]};function s(Ue,Le){if(Le){if(n.test(Ue))return Ue.replace(c,m)}else if(u.test(Ue))return Ue.replace(o,m);return Ue}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function a(Ue){return Ue.replace(r,function(Le,Ie){return Ie=Ie.toLowerCase(),Ie==="colon"?":":Ie.charAt(0)==="#"?Ie.charAt(1)==="x"?String.fromCharCode(parseInt(Ie.substring(2),16)):String.fromCharCode(+Ie.substring(1)):""})}var t=/(^|[^\[])\^/g;function w(Ue,Le){Ue=Ue.source||Ue,Le=Le||"";var Ie={replace:function(Se,ke){return ke=ke.source||ke,ke=ke.replace(t,"$1"),Ue=Ue.replace(Se,ke),Ie},getRegex:function(){return new RegExp(Ue,Le)}};return Ie}var E=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(Ue,Le,Ie){if(Ue){var Ce;try{Ce=decodeURIComponent(a(Ie)).replace(E,"").toLowerCase()}catch(Se){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}Le&&!f.test(Ie)&&(Ie=_(Le,Ie));try{Ie=encodeURI(Ie).replace(/%25/g,"%")}catch(Se){return null}return Ie}var O={},C=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(Ue,Le){O[" "+Ue]||(C.test(Ue)?O[" "+Ue]=Ue+"/":O[" "+Ue]=G(Ue,"/",!0)),Ue=O[" "+Ue];var Ie=Ue.indexOf(":")===-1;return Le.substring(0,2)==="//"?Ie?Le:Ue.replace(x,"$1")+Le:Le.charAt(0)==="/"?Ie?Le:Ue.replace(y,"$1")+Le:Ue+Le}var M={exec:function(){}};function I(Ue){for(var Le=1,Ie,Ce;Le=0&&et[bt]==="\\";)$e=!$e;return $e?"|":" |"}),Ce=Ie.split(/ \|/),Se=0;if(Ce.length>Le)Ce.splice(Le);else for(;Ce.length=Ce.length?Se.slice(Ce.length):Se}).join(` +`)}var De=function(){function Ue(Ie){this.options=Ie||U}var Le=Ue.prototype;return Le.space=function(Ce){var Se=this.rules.block.newline.exec(Ce);if(Se)return Se[0].length>1?{type:"space",raw:Se[0]}:{raw:` +`}},Le.code=function(Ce,Se){var ke=this.rules.block.code.exec(Ce);if(ke){var Ne=Se[Se.length-1];if(Ne&&Ne.type==="paragraph")return{raw:ke[0],text:ke[0].trimRight()};var et=ke[0].replace(/^ {4}/gm,"");return{type:"code",raw:ke[0],codeBlockStyle:"indented",text:this.options.pedantic?et:W(et,` +`)}}},Le.fences=function(Ce){var Se=this.rules.block.fences.exec(Ce);if(Se){var ke=Se[0],Ne=Ae(ke,Se[3]||"");return{type:"code",raw:ke,lang:Se[2]?Se[2].trim():Se[2],text:Ne}}},Le.heading=function(Ce){var Se=this.rules.block.heading.exec(Ce);if(Se)return{type:"heading",raw:Se[0],depth:Se[1].length,text:Se[2]}},Le.nptable=function(Ce){var Se=this.rules.block.nptable.exec(Ce);if(Se){var ke={type:"table",header:X(Se[1].replace(/^ *| *\| *$/g,"")),align:Se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Se[3]?Se[3].replace(/\n$/,"").split(` +`):[],raw:Se[0]};if(ke.header.length===ke.align.length){var Ne=ke.align.length,et;for(et=0;et ?/gm,"");return{type:"blockquote",raw:Se[0],text:ke}}},Le.list=function(Ce){var Se=this.rules.block.list.exec(Ce);if(Se){for(var ke=Se[0],Ne=Se[2],et=Ne.length>1,$e=Ne[Ne.length-1]===")",bt={type:"list",raw:ke,ordered:et,start:et?+Ne.slice(0,-1):"",loose:!1,items:[]},gt=Se[0].match(this.rules.block.item),Ut=!1,Nt,hr,mr,St,Yr,Jr,Hr,un=gt.length,Ar=0;Ar1||this.options.smartLists&&mr!==Ne)&&(St=gt.slice(Ar+1).join(` +`),bt.raw=bt.raw.substring(0,bt.raw.length-St.length),Ar=un-1)),Yr=Ut||/\n\n(?!\s*$)/.test(Nt),Ar!==un-1&&(Ut=Nt.charAt(Nt.length-1)===` +`,Yr||(Yr=Ut)),Yr&&(bt.loose=!0),Jr=/^\[[ xX]\] /.test(Nt),Hr=void 0,Jr&&(Hr=Nt[1]!==" ",Nt=Nt.replace(/^\[[ xX]\] +/,"")),bt.items.push({type:"list_item",raw:ke,task:Jr,checked:Hr,loose:Yr,text:Nt});return bt}},Le.html=function(Ce){var Se=this.rules.block.html.exec(Ce);if(Se)return{type:this.options.sanitize?"paragraph":"html",raw:Se[0],pre:!this.options.sanitizer&&(Se[1]==="pre"||Se[1]==="script"||Se[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):ne(Se[0]):Se[0]}},Le.def=function(Ce){var Se=this.rules.block.def.exec(Ce);if(Se){Se[3]&&(Se[3]=Se[3].substring(1,Se[3].length-1));var ke=Se[1].toLowerCase().replace(/\s+/g," ");return{tag:ke,raw:Se[0],href:Se[2],title:Se[3]}}},Le.table=function(Ce){var Se=this.rules.block.table.exec(Ce);if(Se){var ke={type:"table",header:X(Se[1].replace(/^ *| *\| *$/g,"")),align:Se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Se[3]?Se[3].replace(/\n$/,"").split(` +`):[]};if(ke.header.length===ke.align.length){ke.raw=Se[0];var Ne=ke.align.length,et;for(et=0;et/i.test(Ne[0])&&(Se=!1),!ke&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ne[0])?ke=!0:ke&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ne[0])&&(ke=!1),{type:this.options.sanitize?"text":"html",raw:Ne[0],inLink:Se,inRawBlock:ke,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):ne(Ne[0]):Ne[0]}},Le.link=function(Ce){var Se=this.rules.inline.link.exec(Ce);if(Se){var ke=fe(Se[2],"()");if(ke>-1){var Ne=Se[0].indexOf("!")===0?5:4,et=Ne+Se[1].length+ke;Se[2]=Se[2].substring(0,ke),Se[0]=Se[0].substring(0,et).trim(),Se[3]=""}var $e=Se[2],bt="";if(this.options.pedantic){var gt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);gt?($e=gt[1],bt=gt[3]):bt=""}else bt=Se[3]?Se[3].slice(1,-1):"";$e=$e.trim().replace(/^<([\s\S]*)>$/,"$1");var Ut=me(Se,{href:$e&&$e.replace(this.rules.inline._escapes,"$1"),title:bt&&bt.replace(this.rules.inline._escapes,"$1")},Se[0]);return Ut}},Le.reflink=function(Ce,Se){var ke;if((ke=this.rules.inline.reflink.exec(Ce))||(ke=this.rules.inline.nolink.exec(Ce))){var Ne=(ke[2]||ke[1]).replace(/\s+/g," ");if(Ne=Se[Ne.toLowerCase()],!Ne||!Ne.href){var et=ke[0].charAt(0);return{type:"text",raw:et,text:et}}var $e=me(ke,Ne,ke[0]);return $e}},Le.strong=function(Ce,Se,ke){ke===void 0&&(ke="");var Ne=this.rules.inline.strong.start.exec(Ce);if(Ne&&(!Ne[1]||Ne[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){Se=Se.slice(-1*Ce.length);var et=Ne[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;et.lastIndex=0;for(var $e;(Ne=et.exec(Se))!=null;)if($e=this.rules.inline.strong.middle.exec(Se.slice(0,Ne.index+3)),$e)return{type:"strong",raw:Ce.slice(0,$e[0].length),text:Ce.slice(2,$e[0].length-2)}}},Le.em=function(Ce,Se,ke){ke===void 0&&(ke="");var Ne=this.rules.inline.em.start.exec(Ce);if(Ne&&(!Ne[1]||Ne[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){Se=Se.slice(-1*Ce.length);var et=Ne[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;et.lastIndex=0;for(var $e;(Ne=et.exec(Se))!=null;)if($e=this.rules.inline.em.middle.exec(Se.slice(0,Ne.index+2)),$e)return{type:"em",raw:Ce.slice(0,$e[0].length),text:Ce.slice(1,$e[0].length-1)}}},Le.codespan=function(Ce){var Se=this.rules.inline.code.exec(Ce);if(Se){var ke=Se[2].replace(/\n/g," "),Ne=/[^ ]/.test(ke),et=ke.startsWith(" ")&&ke.endsWith(" ");return Ne&&et&&(ke=ke.substring(1,ke.length-1)),ke=ne(ke,!0),{type:"codespan",raw:Se[0],text:ke}}},Le.br=function(Ce){var Se=this.rules.inline.br.exec(Ce);if(Se)return{type:"br",raw:Se[0]}},Le.del=function(Ce){var Se=this.rules.inline.del.exec(Ce);if(Se)return{type:"del",raw:Se[0],text:Se[1]}},Le.autolink=function(Ce,Se){var ke=this.rules.inline.autolink.exec(Ce);if(ke){var Ne,et;return ke[2]==="@"?(Ne=ne(this.options.mangle?Se(ke[1]):ke[1]),et="mailto:"+Ne):(Ne=ne(ke[1]),et=Ne),{type:"link",raw:ke[0],text:Ne,href:et,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Le.url=function(Ce,Se){var ke;if(ke=this.rules.inline.url.exec(Ce)){var Ne,et;if(ke[2]==="@")Ne=ne(this.options.mangle?Se(ke[0]):ke[0]),et="mailto:"+Ne;else{var $e;do $e=ke[0],ke[0]=this.rules.inline._backpedal.exec(ke[0])[0];while($e!==ke[0]);Ne=ne(ke[0]),ke[1]==="www."?et="http://"+Ne:et=Ne}return{type:"link",raw:ke[0],text:Ne,href:et,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Le.inlineText=function(Ce,Se,ke){var Ne=this.rules.inline.text.exec(Ce);if(Ne){var et;return Se?et=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):ne(Ne[0]):Ne[0]:et=ne(this.options.smartypants?ke(Ne[0]):Ne[0]),{type:"text",raw:Ne[0],text:et}}},Ue}(),ye=K.noopTest,Oe=K.edit,xe=K.merge,ue={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ye,table:ye,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=Oe(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=Oe(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=Oe(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ue._comment=//,ue.html=Oe(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=Oe(ue._paragraph).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.blockquote=Oe(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=xe({},ue),ue.gfm=xe({},ue.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ue.gfm.nptable=Oe(ue.gfm.nptable).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.gfm.table=Oe(ue.gfm.table).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.pedantic=xe({},ue.normal,{html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ye,paragraph:Oe(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ye,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ye,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",le.punctuation=Oe(le.punctuation).replace(/punctuation/g,le._punctuation).getRegex(),le._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",le._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",le.em.start=Oe(le.em.start).replace(/punctuation/g,le._punctuation).getRegex(),le.em.middle=Oe(le.em.middle).replace(/punctuation/g,le._punctuation).replace(/overlapSkip/g,le._overlapSkip).getRegex(),le.em.endAst=Oe(le.em.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.em.endUnd=Oe(le.em.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.start=Oe(le.strong.start).replace(/punctuation/g,le._punctuation).getRegex(),le.strong.middle=Oe(le.strong.middle).replace(/punctuation/g,le._punctuation).replace(/blockSkip/g,le._blockSkip).getRegex(),le.strong.endAst=Oe(le.strong.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.endUnd=Oe(le.strong.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.blockSkip=Oe(le._blockSkip,"g").getRegex(),le.overlapSkip=Oe(le._overlapSkip,"g").getRegex(),le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,le._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,le.autolink=Oe(le.autolink).replace("scheme",le._scheme).replace("email",le._email).getRegex(),le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,le.tag=Oe(le.tag).replace("comment",ue._comment).replace("attribute",le._attribute).getRegex(),le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,le._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,le.link=Oe(le.link).replace("label",le._label).replace("href",le._href).replace("title",le._title).getRegex(),le.reflink=Oe(le.reflink).replace("label",le._label).getRegex(),le.reflinkSearch=Oe(le.reflinkSearch,"g").replace("reflink",le.reflink).replace("nolink",le.nolink).getRegex(),le.normal=xe({},le),le.pedantic=xe({},le.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",le._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",le._label).getRegex()}),le.gfm=xe({},le.normal,{escape:Oe(le.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(Ce="x"+Ce.toString(16)),Le+="&#"+Ce+";";return Le}var Q=function(){function Ue(Ie){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ie||pe,this.options.tokenizer=this.options.tokenizer||new De,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ce={block:ee.normal,inline:te.normal};this.options.pedantic?(Ce.block=ee.pedantic,Ce.inline=te.pedantic):this.options.gfm&&(Ce.block=ee.gfm,this.options.breaks?Ce.inline=te.breaks:Ce.inline=te.gfm),this.tokenizer.rules=Ce}Ue.lex=function(Ce,Se){var ke=new Ue(Se);return ke.lex(Ce)};var Le=Ue.prototype;return Le.lex=function(Ce){return Ce=Ce.replace(/\r\n|\r/g,` +`).replace(/\t/g," "),this.blockTokens(Ce,this.tokens,!0),this.inline(this.tokens),this.tokens},Le.blockTokens=function(Ce,Se,ke){Se===void 0&&(Se=[]),ke===void 0&&(ke=!0),Ce=Ce.replace(/^ +$/gm,"");for(var Ne,et,$e,bt;Ce;){if(Ne=this.tokenizer.space(Ce)){Ce=Ce.substring(Ne.raw.length),Ne.type&&Se.push(Ne);continue}if(Ne=this.tokenizer.code(Ce,Se)){Ce=Ce.substring(Ne.raw.length),Ne.type?Se.push(Ne):(bt=Se[Se.length-1],bt.raw+=` `+Ne.raw,bt.text+=` -`+Ne.text);continue}if(Ne=this.tokenizer.fences(Ce)){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(Ne=this.tokenizer.heading(Ce)){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(Ne=this.tokenizer.nptable(Ce)){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(Ne=this.tokenizer.hr(Ce)){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(Ne=this.tokenizer.blockquote(Ce)){Ce=Ce.substring(Ne.raw.length),Ne.tokens=this.blockTokens(Ne.text,[],ke),_e.push(Ne);continue}if(Ne=this.tokenizer.list(Ce)){for(Ce=Ce.substring(Ne.raw.length),$e=Ne.items.length,et=0;et<$e;et++)Ne.items[et].tokens=this.blockTokens(Ne.items[et].text,[],!1);_e.push(Ne);continue}if(Ne=this.tokenizer.html(Ce)){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(ke&&(Ne=this.tokenizer.def(Ce))){Ce=Ce.substring(Ne.raw.length),this.tokens.links[Ne.tag]||(this.tokens.links[Ne.tag]={href:Ne.href,title:Ne.title});continue}if(Ne=this.tokenizer.table(Ce)){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(Ne=this.tokenizer.lheading(Ce)){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(ke&&(Ne=this.tokenizer.paragraph(Ce))){Ce=Ce.substring(Ne.raw.length),_e.push(Ne);continue}if(Ne=this.tokenizer.text(Ce,_e)){Ce=Ce.substring(Ne.raw.length),Ne.type?_e.push(Ne):(bt=_e[_e.length-1],bt.raw+=` +`+Ne.text);continue}if(Ne=this.tokenizer.fences(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.heading(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.nptable(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.hr(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.blockquote(Ce)){Ce=Ce.substring(Ne.raw.length),Ne.tokens=this.blockTokens(Ne.text,[],ke),Se.push(Ne);continue}if(Ne=this.tokenizer.list(Ce)){for(Ce=Ce.substring(Ne.raw.length),$e=Ne.items.length,et=0;et<$e;et++)Ne.items[et].tokens=this.blockTokens(Ne.items[et].text,[],!1);Se.push(Ne);continue}if(Ne=this.tokenizer.html(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(ke&&(Ne=this.tokenizer.def(Ce))){Ce=Ce.substring(Ne.raw.length),this.tokens.links[Ne.tag]||(this.tokens.links[Ne.tag]={href:Ne.href,title:Ne.title});continue}if(Ne=this.tokenizer.table(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.lheading(Ce)){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(ke&&(Ne=this.tokenizer.paragraph(Ce))){Ce=Ce.substring(Ne.raw.length),Se.push(Ne);continue}if(Ne=this.tokenizer.text(Ce,Se)){Ce=Ce.substring(Ne.raw.length),Ne.type?Se.push(Ne):(bt=Se[Se.length-1],bt.raw+=` `+Ne.raw,bt.text+=` -`+Ne.text);continue}if(Ce){var gt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(gt);break}else throw new Error(gt)}}return _e},Le.inline=function(Ce){var _e,ke,Ne,et,$e,bt,gt=Ce.length;for(_e=0;_e0)for(;(gt=this.tokenizer.rules.inline.reflinkSearch.exec(bt))!=null;)Ut.includes(gt[0].slice(gt[0].lastIndexOf("[")+1,-1))&&(bt=bt.slice(0,gt.index)+"["+"a".repeat(gt[0].length-2)+"]"+bt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(gt=this.tokenizer.rules.inline.blockSkip.exec(bt))!=null;)bt=bt.slice(0,gt.index)+"["+"a".repeat(gt[0].length-2)+"]"+bt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ce;){if($e=this.tokenizer.escape(Ce)){Ce=Ce.substring($e.raw.length),_e.push($e);continue}if($e=this.tokenizer.tag(Ce,ke,Ne)){Ce=Ce.substring($e.raw.length),ke=$e.inLink,Ne=$e.inRawBlock,_e.push($e);continue}if($e=this.tokenizer.link(Ce)){Ce=Ce.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,Ne)),_e.push($e);continue}if($e=this.tokenizer.reflink(Ce,this.tokens.links)){Ce=Ce.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,Ne)),_e.push($e);continue}if($e=this.tokenizer.strong(Ce,bt,et)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),_e.push($e);continue}if($e=this.tokenizer.em(Ce,bt,et)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),_e.push($e);continue}if($e=this.tokenizer.codespan(Ce)){Ce=Ce.substring($e.raw.length),_e.push($e);continue}if($e=this.tokenizer.br(Ce)){Ce=Ce.substring($e.raw.length),_e.push($e);continue}if($e=this.tokenizer.del(Ce)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),_e.push($e);continue}if($e=this.tokenizer.autolink(Ce,q)){Ce=Ce.substring($e.raw.length),_e.push($e);continue}if(!ke&&($e=this.tokenizer.url(Ce,q))){Ce=Ce.substring($e.raw.length),_e.push($e);continue}if($e=this.tokenizer.inlineText(Ce,Ne,ce)){Ce=Ce.substring($e.raw.length),et=$e.raw.slice(-1),_e.push($e);continue}if(Ce){var Nt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Nt);break}else throw new Error(Nt)}}return _e},g(Ue,null,[{key:"rules",get:function(){return{block:ee,inline:te}}}]),Ue}(),V=_.defaults,Z=K.cleanUrl,be=K.escape,ge=function(){function Ue(Ie){this.options=Ie||V}var Le=Ue.prototype;return Le.code=function(Ce,_e,ke){var Ne=(_e||"").match(/\S*/)[0];if(this.options.highlight){var et=this.options.highlight(Ce,Ne);et!=null&&et!==Ce&&(ke=!0,Ce=et)}return Ne?'
                      '+(ke?Ce:be(Ce,!0))+`
                      +`+Ne.text);continue}if(Ce){var gt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(gt);break}else throw new Error(gt)}}return Se},Le.inline=function(Ce){var Se,ke,Ne,et,$e,bt,gt=Ce.length;for(Se=0;Se0)for(;(gt=this.tokenizer.rules.inline.reflinkSearch.exec(bt))!=null;)Ut.includes(gt[0].slice(gt[0].lastIndexOf("[")+1,-1))&&(bt=bt.slice(0,gt.index)+"["+"a".repeat(gt[0].length-2)+"]"+bt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(gt=this.tokenizer.rules.inline.blockSkip.exec(bt))!=null;)bt=bt.slice(0,gt.index)+"["+"a".repeat(gt[0].length-2)+"]"+bt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ce;){if($e=this.tokenizer.escape(Ce)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.tag(Ce,ke,Ne)){Ce=Ce.substring($e.raw.length),ke=$e.inLink,Ne=$e.inRawBlock,Se.push($e);continue}if($e=this.tokenizer.link(Ce)){Ce=Ce.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,Ne)),Se.push($e);continue}if($e=this.tokenizer.reflink(Ce,this.tokens.links)){Ce=Ce.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,Ne)),Se.push($e);continue}if($e=this.tokenizer.strong(Ce,bt,et)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),Se.push($e);continue}if($e=this.tokenizer.em(Ce,bt,et)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),Se.push($e);continue}if($e=this.tokenizer.codespan(Ce)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.br(Ce)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.del(Ce)){Ce=Ce.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],ke,Ne),Se.push($e);continue}if($e=this.tokenizer.autolink(Ce,q)){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if(!ke&&($e=this.tokenizer.url(Ce,q))){Ce=Ce.substring($e.raw.length),Se.push($e);continue}if($e=this.tokenizer.inlineText(Ce,Ne,ce)){Ce=Ce.substring($e.raw.length),et=$e.raw.slice(-1),Se.push($e);continue}if(Ce){var Nt="Infinite loop on byte: "+Ce.charCodeAt(0);if(this.options.silent){console.error(Nt);break}else throw new Error(Nt)}}return Se},g(Ue,null,[{key:"rules",get:function(){return{block:ee,inline:te}}}]),Ue}(),V=S.defaults,Z=K.cleanUrl,be=K.escape,ge=function(){function Ue(Ie){this.options=Ie||V}var Le=Ue.prototype;return Le.code=function(Ce,Se,ke){var Ne=(Se||"").match(/\S*/)[0];if(this.options.highlight){var et=this.options.highlight(Ce,Ne);et!=null&&et!==Ce&&(ke=!0,Ce=et)}return Ne?'
                      '+(ke?Ce:be(Ce,!0))+`
                      `:"
                      "+(ke?Ce:be(Ce,!0))+`
                      `},Le.blockquote=function(Ce){return`
                      `+Ce+`
                      -`},Le.html=function(Ce){return Ce},Le.heading=function(Ce,_e,ke,Ne){return this.options.headerIds?"'+Ce+" -`:""+Ce+" +`},Le.html=function(Ce){return Ce},Le.heading=function(Ce,Se,ke,Ne){return this.options.headerIds?"'+Ce+" +`:""+Ce+" `},Le.hr=function(){return this.options.xhtml?`
                      `:`
                      -`},Le.list=function(Ce,_e,ke){var Ne=_e?"ol":"ul",et=_e&&ke!==1?' start="'+ke+'"':"";return"<"+Ne+et+`> +`},Le.list=function(Ce,Se,ke){var Ne=Se?"ol":"ul",et=Se&&ke!==1?' start="'+ke+'"':"";return"<"+Ne+et+`> `+Ce+" `},Le.listitem=function(Ce){return"
                    • "+Ce+`
                    • `},Le.checkbox=function(Ce){return" "},Le.paragraph=function(Ce){return"

                      "+Ce+`

                      -`},Le.table=function(Ce,_e){return _e&&(_e=""+_e+""),` +`},Le.table=function(Ce,Se){return Se&&(Se=""+Se+""),`
                      `+Ce+` -`+_e+`
                      +`+Se+` `},Le.tablerow=function(Ce){return` `+Ce+` -`},Le.tablecell=function(Ce,_e){var ke=_e.header?"th":"td",Ne=_e.align?"<"+ke+' align="'+_e.align+'">':"<"+ke+">";return Ne+Ce+" -`},Le.strong=function(Ce){return""+Ce+""},Le.em=function(Ce){return""+Ce+""},Le.codespan=function(Ce){return""+Ce+""},Le.br=function(){return this.options.xhtml?"
                      ":"
                      "},Le.del=function(Ce){return""+Ce+""},Le.link=function(Ce,_e,ke){if(Ce=Z(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return ke;var Ne='",Ne},Le.image=function(Ce,_e,ke){if(Ce=Z(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return ke;var Ne=''+ke+'":">",Ne},Le.text=function(Ce){return Ce},Ue}(),Te=function(){function Ue(){}var Le=Ue.prototype;return Le.strong=function(Ce){return Ce},Le.em=function(Ce){return Ce},Le.codespan=function(Ce){return Ce},Le.del=function(Ce){return Ce},Le.html=function(Ce){return Ce},Le.text=function(Ce){return Ce},Le.link=function(Ce,_e,ke){return""+ke},Le.image=function(Ce,_e,ke){return""+ke},Le.br=function(){return""},Ue}(),Je=function(){function Ue(){this.seen={}}var Le=Ue.prototype;return Le.slug=function(Ce){var _e=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(_e)){var ke=_e;do this.seen[ke]++,_e=ke+"-"+this.seen[ke];while(this.seen.hasOwnProperty(_e))}return this.seen[_e]=0,_e},Ue}(),rt=_.defaults,nt=K.unescape,at=function(){function Ue(Ie){this.options=Ie||rt,this.options.renderer=this.options.renderer||new ge,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Je}Ue.parse=function(Ce,_e){var ke=new Ue(_e);return ke.parse(Ce)};var Le=Ue.prototype;return Le.parse=function(Ce,_e){_e===void 0&&(_e=!0);var ke="",Ne,et,$e,bt,gt,Ut,Nt,hr,mr,_t,Yr,Jr,Hr,un,Ar,vn,mn,Kt,or=Ce.length;for(Ne=0;Ne0&&Ar.tokens[0].type==="text"?(Ar.tokens[0].text=Kt+" "+Ar.tokens[0].text,Ar.tokens[0].tokens&&Ar.tokens[0].tokens.length>0&&Ar.tokens[0].tokens[0].type==="text"&&(Ar.tokens[0].tokens[0].text=Kt+" "+Ar.tokens[0].tokens[0].text)):Ar.tokens.unshift({type:"text",text:Kt}):un+=Kt),un+=this.parse(Ar.tokens,Hr),mr+=this.renderer.listitem(un,mn,vn);ke+=this.renderer.list(mr,Yr,Jr);continue}case"html":{ke+=this.renderer.html(_t.text);continue}case"paragraph":{ke+=this.renderer.paragraph(this.parseInline(_t.tokens));continue}case"text":{for(mr=_t.tokens?this.parseInline(_t.tokens):_t.text;Ne+1An error occurred:

                      "+He($e.message+"",!0)+"
                      ";throw $e}}Qe.options=Qe.setOptions=function(Ue){return ct(Qe.defaults,Ue),tt(Qe.defaults),Qe},Qe.getDefaults=Re,Qe.defaults=ft,Qe.use=function(Ue){var Le=ct({},Ue);if(Ue.renderer&&function(){var Ce=Qe.defaults.renderer||new ge,_e=function(et){var $e=Ce[et];Ce[et]=function(){for(var bt=arguments.length,gt=new Array(bt),Ut=0;Ut>>24)&16711935|(n[u]<<24|n[u]>>>8)&4278255360;var o=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],h=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var u=0;u<4;u++)l.call(this);for(var u=0;u<8;u++)h[u]^=o[u+4&7];if(c){var m=c.words,s=m[0],r=m[1],a=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,t=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,w=a>>>16|t&4294901760,E=t<<16|a&65535;h[0]^=a,h[1]^=w,h[2]^=t,h[3]^=E,h[4]^=a,h[5]^=w,h[6]^=t,h[7]^=E;for(var u=0;u<4;u++)l.call(this)}},_doProcessBlock:function(n,c){var u=this._X;l.call(this),v[0]=u[0]^u[5]>>>16^u[3]<<16,v[1]=u[2]^u[7]>>>16^u[5]<<16,v[2]=u[4]^u[1]>>>16^u[7]<<16,v[3]=u[6]^u[3]>>>16^u[1]<<16;for(var o=0;o<4;o++)v[o]=(v[o]<<8|v[o]>>>24)&16711935|(v[o]<<24|v[o]>>>8)&4278255360,n[c+o]^=v[o]},blockSize:128/32,ivSize:64/32});function l(){for(var n=this._X,c=this._C,u=0;u<8;u++)_[u]=c[u];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0<_[0]>>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0<_[1]>>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0<_[2]>>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0<_[3]>>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0<_[4]>>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0<_[5]>>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0<_[6]>>>0?1:0)|0,this._b=c[7]>>>0<_[7]>>>0?1:0;for(var u=0;u<8;u++){var o=n[u]+c[u],h=o&65535,m=o>>>16,s=((h*h>>>17)+h*m>>>15)+m*m,r=((o&4294901760)*o|0)+((o&65535)*o|0);b[u]=s^r}n[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,n[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,n[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,n[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,n[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,n[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,n[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,n[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}g.Rabbit=P._createHelper(d)}(),L.Rabbit})},ELLl:function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){var g={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=L.Pos;L.defineOption("autoCloseBrackets",!1,function(h,m,s){s&&s!=L.Init&&(h.removeKeyMap(p),h.state.closeBrackets=null),m&&(v(P(m,"pairs")),h.state.closeBrackets=m,h.addKeyMap(p))});function P(h,m){return m=="pairs"&&typeof h=="string"?h:typeof h=="object"&&h[m]!=null?h[m]:g[m]}var p={Backspace:d,Enter:l};function v(h){for(var m=0;m=0;a--){var w=r[a].head;h.replaceRange("",T(w.line,w.ch-1),T(w.line,w.ch+1),"+delete")}}function l(h){var m=b(h),s=m&&P(m,"explode");if(!s||h.getOption("disableInput"))return L.Pass;for(var r=h.listSelections(),a=0;a0;return{anchor:new T(h.anchor.line,h.anchor.ch+(m?-1:1)),head:new T(h.head.line,h.head.ch+(m?1:-1))}}function c(h,m){var s=b(h);if(!s||h.getOption("disableInput"))return L.Pass;var r=P(s,"pairs"),a=r.indexOf(m);if(a==-1)return L.Pass;for(var t=P(s,"closeBefore"),w=P(s,"triples"),E=r.charAt(a+1)==m,f=h.listSelections(),k=a%2==0,O,C=0;C=0&&h.getRange(y,T(y.line,y.ch+3))==m+m+m?S="skipThree":S="skip";else if(E&&y.ch>1&&w.indexOf(m)>=0&&h.getRange(T(y.line,y.ch-2),y)==m+m){if(y.ch>2&&/\bstring/.test(h.getTokenTypeAt(T(y.line,y.ch-2))))return L.Pass;S="addFour"}else if(E){var I=y.ch==0?" ":h.getRange(T(y.line,y.ch-1),y);if(!L.isWordChar(M)&&I!=m&&!L.isWordChar(I))S="both";else return L.Pass}else if(k&&(M.length===0||/\s/.test(M)||t.indexOf(M)>-1))S="both";else return L.Pass;if(!O)O=S;else if(O!=S)return L.Pass}var N=a%2?r.charAt(a-1):m,G=a%2?m:r.charAt(a+1);h.operation(function(){if(O=="skip")h.execCommand("goCharRight");else if(O=="skipThree")for(var H=0;H<3;H++)h.execCommand("goCharRight");else if(O=="surround"){for(var B=h.getSelections(),H=0;H':"<"+ke+">";return Ne+Ce+" +`},Le.strong=function(Ce){return""+Ce+""},Le.em=function(Ce){return""+Ce+""},Le.codespan=function(Ce){return""+Ce+""},Le.br=function(){return this.options.xhtml?"
                      ":"
                      "},Le.del=function(Ce){return""+Ce+""},Le.link=function(Ce,Se,ke){if(Ce=Z(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return ke;var Ne='
                      ",Ne},Le.image=function(Ce,Se,ke){if(Ce=Z(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return ke;var Ne=''+ke+'":">",Ne},Le.text=function(Ce){return Ce},Ue}(),Te=function(){function Ue(){}var Le=Ue.prototype;return Le.strong=function(Ce){return Ce},Le.em=function(Ce){return Ce},Le.codespan=function(Ce){return Ce},Le.del=function(Ce){return Ce},Le.html=function(Ce){return Ce},Le.text=function(Ce){return Ce},Le.link=function(Ce,Se,ke){return""+ke},Le.image=function(Ce,Se,ke){return""+ke},Le.br=function(){return""},Ue}(),Je=function(){function Ue(){this.seen={}}var Le=Ue.prototype;return Le.slug=function(Ce){var Se=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Se)){var ke=Se;do this.seen[ke]++,Se=ke+"-"+this.seen[ke];while(this.seen.hasOwnProperty(Se))}return this.seen[Se]=0,Se},Ue}(),rt=S.defaults,nt=K.unescape,at=function(){function Ue(Ie){this.options=Ie||rt,this.options.renderer=this.options.renderer||new ge,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Je}Ue.parse=function(Ce,Se){var ke=new Ue(Se);return ke.parse(Ce)};var Le=Ue.prototype;return Le.parse=function(Ce,Se){Se===void 0&&(Se=!0);var ke="",Ne,et,$e,bt,gt,Ut,Nt,hr,mr,St,Yr,Jr,Hr,un,Ar,vn,mn,Kt,or=Ce.length;for(Ne=0;Ne0&&Ar.tokens[0].type==="text"?(Ar.tokens[0].text=Kt+" "+Ar.tokens[0].text,Ar.tokens[0].tokens&&Ar.tokens[0].tokens.length>0&&Ar.tokens[0].tokens[0].type==="text"&&(Ar.tokens[0].tokens[0].text=Kt+" "+Ar.tokens[0].tokens[0].text)):Ar.tokens.unshift({type:"text",text:Kt}):un+=Kt),un+=this.parse(Ar.tokens,Hr),mr+=this.renderer.listitem(un,mn,vn);ke+=this.renderer.list(mr,Yr,Jr);continue}case"html":{ke+=this.renderer.html(St.text);continue}case"paragraph":{ke+=this.renderer.paragraph(this.parseInline(St.tokens));continue}case"text":{for(mr=St.tokens?this.parseInline(St.tokens):St.text;Ne+1An error occurred:

                      "+He($e.message+"",!0)+"
                      ";throw $e}}Qe.options=Qe.setOptions=function(Ue){return ct(Qe.defaults,Ue),tt(Qe.defaults),Qe},Qe.getDefaults=Re,Qe.defaults=ft,Qe.use=function(Ue){var Le=ct({},Ue);if(Ue.renderer&&function(){var Ce=Qe.defaults.renderer||new ge,Se=function(et){var $e=Ce[et];Ce[et]=function(){for(var bt=arguments.length,gt=new Array(bt),Ut=0;Ut>>24)&16711935|(n[u]<<24|n[u]>>>8)&4278255360;var o=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],h=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var u=0;u<4;u++)l.call(this);for(var u=0;u<8;u++)h[u]^=o[u+4&7];if(c){var m=c.words,s=m[0],r=m[1],a=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,t=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,w=a>>>16|t&4294901760,E=t<<16|a&65535;h[0]^=a,h[1]^=w,h[2]^=t,h[3]^=E,h[4]^=a,h[5]^=w,h[6]^=t,h[7]^=E;for(var u=0;u<4;u++)l.call(this)}},_doProcessBlock:function(n,c){var u=this._X;l.call(this),v[0]=u[0]^u[5]>>>16^u[3]<<16,v[1]=u[2]^u[7]>>>16^u[5]<<16,v[2]=u[4]^u[1]>>>16^u[7]<<16,v[3]=u[6]^u[3]>>>16^u[1]<<16;for(var o=0;o<4;o++)v[o]=(v[o]<<8|v[o]>>>24)&16711935|(v[o]<<24|v[o]>>>8)&4278255360,n[c+o]^=v[o]},blockSize:128/32,ivSize:64/32});function l(){for(var n=this._X,c=this._C,u=0;u<8;u++)S[u]=c[u];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0>>0?1:0)|0,this._b=c[7]>>>0>>0?1:0;for(var u=0;u<8;u++){var o=n[u]+c[u],h=o&65535,m=o>>>16,s=((h*h>>>17)+h*m>>>15)+m*m,r=((o&4294901760)*o|0)+((o&65535)*o|0);b[u]=s^r}n[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,n[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,n[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,n[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,n[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,n[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,n[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,n[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}g.Rabbit=P._createHelper(d)}(),L.Rabbit})},ELLl:function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){var g={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=L.Pos;L.defineOption("autoCloseBrackets",!1,function(h,m,s){s&&s!=L.Init&&(h.removeKeyMap(p),h.state.closeBrackets=null),m&&(v(P(m,"pairs")),h.state.closeBrackets=m,h.addKeyMap(p))});function P(h,m){return m=="pairs"&&typeof h=="string"?h:typeof h=="object"&&h[m]!=null?h[m]:g[m]}var p={Backspace:d,Enter:l};function v(h){for(var m=0;m=0;a--){var w=r[a].head;h.replaceRange("",T(w.line,w.ch-1),T(w.line,w.ch+1),"+delete")}}function l(h){var m=b(h),s=m&&P(m,"explode");if(!s||h.getOption("disableInput"))return L.Pass;for(var r=h.listSelections(),a=0;a0;return{anchor:new T(h.anchor.line,h.anchor.ch+(m?-1:1)),head:new T(h.head.line,h.head.ch+(m?1:-1))}}function c(h,m){var s=b(h);if(!s||h.getOption("disableInput"))return L.Pass;var r=P(s,"pairs"),a=r.indexOf(m);if(a==-1)return L.Pass;for(var t=P(s,"closeBefore"),w=P(s,"triples"),E=r.charAt(a+1)==m,f=h.listSelections(),k=a%2==0,O,C=0;C=0&&h.getRange(y,T(y.line,y.ch+3))==m+m+m?_="skipThree":_="skip";else if(E&&y.ch>1&&w.indexOf(m)>=0&&h.getRange(T(y.line,y.ch-2),y)==m+m){if(y.ch>2&&/\bstring/.test(h.getTokenTypeAt(T(y.line,y.ch-2))))return L.Pass;_="addFour"}else if(E){var I=y.ch==0?" ":h.getRange(T(y.line,y.ch-1),y);if(!L.isWordChar(M)&&I!=m&&!L.isWordChar(I))_="both";else return L.Pass}else if(k&&(M.length===0||/\s/.test(M)||t.indexOf(M)>-1))_="both";else return L.Pass;if(!O)O=_;else if(O!=_)return L.Pass}var N=a%2?r.charAt(a-1):m,G=a%2?m:r.charAt(a+1);h.operation(function(){if(O=="skip")h.execCommand("goCharRight");else if(O=="skipThree")for(var H=0;H<3;H++)h.execCommand("goCharRight");else if(O=="surround"){for(var B=h.getSelections(),H=0;HA - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(g){var T=L,P=T.lib,p=P.WordArray,v=P.Hasher,_=T.algo,b=p.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=p.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=p.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),n=p.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=p.create([0,1518500249,1859775393,2400959708,2840853838]),u=p.create([1352829926,1548603684,1836072691,2053994217,0]),o=_.RIPEMD160=v.extend({_doReset:function(){this._hash=p.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,E){for(var f=0;f<16;f++){var k=E+f,O=w[k];w[k]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var C=this._hash.words,x=c.words,y=u.words,S=b.words,M=d.words,I=l.words,N=n.words,G,H,B,K,U,W,X,ne,fe,me;W=G=C[0],X=H=C[1],ne=B=C[2],fe=K=C[3],me=U=C[4];for(var Ae,f=0;f<80;f+=1)Ae=G+w[E+S[f]]|0,f<16?Ae+=h(H,B,K)+x[0]:f<32?Ae+=m(H,B,K)+x[1]:f<48?Ae+=s(H,B,K)+x[2]:f<64?Ae+=r(H,B,K)+x[3]:Ae+=a(H,B,K)+x[4],Ae=Ae|0,Ae=t(Ae,I[f]),Ae=Ae+U|0,G=U,U=K,K=t(B,10),B=H,H=Ae,Ae=W+w[E+M[f]]|0,f<16?Ae+=a(X,ne,fe)+y[0]:f<32?Ae+=r(X,ne,fe)+y[1]:f<48?Ae+=s(X,ne,fe)+y[2]:f<64?Ae+=m(X,ne,fe)+y[3]:Ae+=h(X,ne,fe)+y[4],Ae=Ae|0,Ae=t(Ae,N[f]),Ae=Ae+me|0,W=me,me=fe,fe=t(ne,10),ne=X,X=Ae;Ae=C[1]+B+fe|0,C[1]=C[2]+K+me|0,C[2]=C[3]+U+W|0,C[3]=C[4]+G+X|0,C[4]=C[0]+H+ne|0,C[0]=Ae},_doFinalize:function(){var w=this._data,E=w.words,f=this._nDataBytes*8,k=w.sigBytes*8;E[k>>>5]|=128<<24-k%32,E[(k+64>>>9<<4)+14]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var O=this._hash,C=O.words,x=0;x<5;x++){var y=C[x];C[x]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}return O},clone:function(){var w=v.clone.call(this);return w._hash=this._hash.clone(),w}});function h(w,E,f){return w^E^f}function m(w,E,f){return w&E|~w&f}function s(w,E,f){return(w|~E)^f}function r(w,E,f){return w&f|E&~f}function a(w,E,f){return w^(E|~f)}function t(w,E){return w<>>32-E}T.RIPEMD160=v._createHelper(o),T.HmacRIPEMD160=v._createHmacHelper(o)}(Math),L.RIPEMD160})},ETIr:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.enc,v=p.Base64={stringify:function(b){var d=b.words,l=b.sigBytes,n=this._map;b.clamp();for(var c=[],u=0;u>>2]>>>24-u%4*8&255,h=d[u+1>>>2]>>>24-(u+1)%4*8&255,m=d[u+2>>>2]>>>24-(u+2)%4*8&255,s=o<<16|h<<8|m,r=0;r<4&&u+r*.75>>6*(3-r)&63));var a=n.charAt(64);if(a)for(;c.length%4;)c.push(a);return c.join("")},parse:function(b){var d=b.length,l=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var c=0;c>>6-u%4*2,m=o|h;n[c>>>2]|=m<<24-c%4*8,c++}return P.create(n,c)}}(),L.enc.Base64})},"F+F2":function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){if(typeof ArrayBuffer!="function")return;var g=L,T=g.lib,P=T.WordArray,p=P.init,v=P.init=function(_){if(_ instanceof ArrayBuffer&&(_=new Uint8Array(_)),(_ instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&_ instanceof Uint8ClampedArray||_ instanceof Int16Array||_ instanceof Uint16Array||_ instanceof Int32Array||_ instanceof Uint32Array||_ instanceof Float32Array||_ instanceof Float64Array)&&(_=new Uint8Array(_.buffer,_.byteOffset,_.byteLength)),_ instanceof Uint8Array){for(var b=_.byteLength,d=[],l=0;l>>2]|=_[l]<<24-l%4*8;p.call(this,d,b)}else p.apply(this,arguments)};v.prototype=P}(),L.lib.WordArray})},GRO8:function(j,Y,D){"use strict";D.r(Y);var L=D("k1fw"),g=D("2qtc"),T=D("kLXV"),P=D("lUTK"),p=D("BvKs"),v=D("+L6B"),_=D("2/Rp"),b=D("T2oS"),d=D("W9HT"),l=D("sPJy"),n=D("bE4q"),c=D("miYZ"),u=D("tsqr"),o=D("9og8"),h=D("tJVT"),m=D("PpiC"),s=D("WmNS"),r=D.n(s),a=D("q1tI"),t=D.n(a),w=D("Ty5D"),E=D("55Ip"),f=D("9kvl"),k=D("KeDT"),O=D.n(k),C=D("zrhs"),x=D("DZo9"),y=D("8z0m"),S=D("LtfV"),M=D("KhGG"),I=y.a.Dragger,N=function(it){var mt=it.user,Ct=it.dispatch,It=it.classroomList,Pt=it.shixunsDetail,Ht=it.getResults,Wt=Object(w.i)(),dt=Object(a.useState)(),At=Object(h.a)(dt,2),Dt=At[0],yr=At[1],tr=Object(a.useState)([]),qt=Object(h.a)(tr,2),Gt=qt[0],nr=qt[1],cr=Object(a.useState)(!1),st=Object(h.a)(cr,2),Lr=st[0],Fr=st[1],Cr={onRemove:function(){nr([])},beforeUpload:function(Et){if(console.log(Et),(Et==null?void 0:Et.size)>1024*1024*500)return u.b.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var St=[];return St.push(Et),nr([].concat(St)),!1},fileList:Gt};return t.a.createElement(T.a,{title:"\u63D0\u4EA4\u6587\u4EF6",visible:Pt.actionTabs.key==="md-tab",confirmLoading:Lr,onOk:Object(o.a)(r.a.mark(function rr(){var Et,St,xt;return r.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(!((Gt==null?void 0:Gt.length)<=0)){pr.next=3;break}return u.b.info("\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"),pr.abrupt("return");case 3:return Fr(!0),pr.next=6,Object(M.c)(Gt[0],{login:(Et=mt.userInfo)===null||Et===void 0?void 0:Et.login,container_type:"Competition",container_id:Pt.actionTabs.params.id,stage_type:Pt.actionTabs.params.value,file_name:(St=Gt[0])===null||St===void 0?void 0:St.name});case 6:xt=pr.sent,(xt==null?void 0:xt.status)===0?(u.b.info("\u63D0\u4EA4\u6210\u529F"),Ct({type:"shixunsDetail/setActionTabs",payload:{key:""}}),Fr(!1),nr([]),Ht(Pt.actionTabs.params.value)):(Fr(!1),u.b.info("\u63D0\u4EA4\u5931\u8D25"));case 8:case"end":return pr.stop()}},rr)})),onCancel:function(){nr([]),Ct({type:"shixunsDetail/setActionTabs",payload:{key:""}})}},t.a.createElement(I,Cr,t.a.createElement("p",{className:"ant-upload-drag-icon"},t.a.createElement(S.a,null)),t.a.createElement("p",{className:"ant-upload-hint"},"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20")))},G=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.classroomList,Ct=Tt.shixunsDetail;return{user:it,classroomList:mt,shixunsDetail:Ct}})(N),H=D("14J3"),B=D("BMrR"),K=D("5NDa"),U=D("5rEg"),W=D("9Bee"),X=D("m3rI"),ne=D("ErOA"),fe=D("NLgs"),me=D("fV52"),Ae=D("3I+P"),De=D("OaEy"),ye=D("2fM7"),Oe=D("5bA4"),xe=D("UESt"),ue=ye.a.Option;function le(Tt){var it=Tt.rewarddata,mt=Tt.getlistdatas,Ct=Tt.is_signed,It=Tt.dispatch,Pt=Tt.userlist,Ht=Object(a.useRef)(null),Wt=Object(a.useState)(!1),dt=Object(h.a)(Wt,2),At=dt[0],Dt=dt[1],yr=Object(a.useState)(void 0),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)(""),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(void 0),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],St=Object(a.useState)(void 0),xt=Object(h.a)(St,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(void 0),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1];function qe(xr){return sr.apply(this,arguments)}function sr(){return sr=Object(o.a)(r.a.mark(function xr(br){var Pr;return r.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!br.user_received){Zt.next=3;break}return window.open(br.click_info),Zt.abrupt("return");case 3:if(Object(fe.f)(It)){Zt.next=5;break}return Zt.abrupt("return");case 5:if(!(Ct===!1)){Zt.next=8;break}return u.b.info("\u60A8\u5C1A\u672A\u62A5\u540D\u53C2\u8D5B\uFF0C\u8BF7\u62A5\u540D\u53C2\u8D5B\u540E\u9886\u53D6"),Zt.abrupt("return");case 8:if(!(br.click_event==="Pop")){Zt.next=14;break}return Lr(br.id),Dt(!0),Zt.abrupt("return");case 14:Gt(void 0);case 15:return Zt.next=17,It({type:"competitions/Reward",payload:{competition_module_setting_id:br.id}});case 17:Pr=Zt.sent,Pr&&Pr.status===0&&(mt(),br.click_event==="Link"?(u.b.info("\u9886\u53D6\u6210\u529F"),window.open(br.click_info)):u.b.info(br.click_info));case 19:case"end":return Zt.stop()}},xr)})),sr.apply(this,arguments)}function Nr(){return rn.apply(this,arguments)}function rn(){return rn=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(!(Pt&&!Pt.real_name)){Ft.next=4;break}if(rr){Ft.next=4;break}return u.b.info("\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 4:if(!(Pt&&!Pt.email)){Ft.next=8;break}if(Jt){Ft.next=8;break}return u.b.info("\u90AE\u7BB1\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 8:if(!(Pt&&!Pt.phone)){Ft.next=12;break}if(Dr){Ft.next=12;break}return u.b.info("\u624B\u673A\u53F7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 12:if(qt){Ft.next=15;break}return u.b.info("\u8BF7\u9009\u62E9\u4F60\u7684\u5E74\u7EA7"),Ft.abrupt("return");case 15:return Ft.next=17,It({type:"competitions/Reward",payload:{competition_module_setting_id:st,className:qt,name:rr,mail:Jt,phone:Dr}});case 17:br=Ft.sent,br&&br.status===0&&(Dt(!1),mt(),u.b.info("HCIA\u8BA4\u8BC1\u8003\u8BD5\u4EE3\u91D1\u52B5\u5C06\u7531Educoder\u5E73\u53F0\u7EDF\u4E00\u53D1\u653E\uFF0C\u8BF7\u53CA\u65F6\u5173\u6CE8\u90AE\u7BB1\u6216\u7AD9\u5185\u77ED\u4FE1\u67E5\u6536"));case 19:case"end":return Ft.stop()}},xr)})),rn.apply(this,arguments)}return t.a.createElement("div",null,t.a.createElement(T.a,{visible:At,title:"\u5B8C\u5584\u4FE1\u606F",onCancel:function(){return Dt(!1)},onOk:function(){Nr()}},t.a.createElement("p",null,"\u60A8\u7684\u59D3\u540D\uFF1A",t.a.createElement(U.a,{className:Pt&&Pt.real_name?"":O.a.bkfff,style:{width:"300px",marginLeft:"14px",background:Pt&&Pt.phone?"":"#ffffff!important"},value:Pt&&Pt.real_name||rr,disabled:Pt&&Pt.real_name||!1,onChange:function(br){return Et(br.target.value)}})),t.a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u90AE\u7BB1\uFF1A",t.a.createElement(U.a,{className:Pt&&Pt.email?"":"bkfff",style:{width:"300px",marginLeft:"14px",background:Pt&&Pt.phone?"":"#ffffff!important"},value:Pt&&Pt.email||Jt,disabled:Pt&&Pt.email||!1,onChange:function(br){return pr(br.target.value)}})),t.a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u624B\u673A\u53F7\uFF1A",t.a.createElement(U.a,{style:{width:"300px"},className:Pt&&Pt.phone?"":"bkfff",value:Pt&&Pt.phone||Dr,disabled:Pt&&Pt.phone||!1,onChange:function(br){return an(br.target.value)}})),"\u60A8\u7684\u5E74\u7EA7\uFF1A",t.a.createElement(ye.a,{style:{width:"300px",marginTop:"1em",marginLeft:"14px"},onChange:function(br){Gt(br)}},t.a.createElement(ue,{value:"\u5927\u4E00"},"\u5927\u4E00"),t.a.createElement(ue,{value:"\u5927\u4E8C"},"\u5927\u4E8C"),t.a.createElement(ue,{value:"\u5927\u4E09"},"\u5927\u4E09"),t.a.createElement(ue,{value:"\u5927\u56DB"},"\u5927\u56DB"),t.a.createElement(ue,{value:"\u5927\u4E94"},"\u5927\u4E94"),t.a.createElement(ue,{value:"\u7855\u4E00"},"\u7855\u4E00"),t.a.createElement(ue,{value:"\u7855\u4E8C"},"\u7855\u4E8C"),t.a.createElement(ue,{value:"\u7855\u4E09"},"\u7855\u4E09"),t.a.createElement(ue,{value:"\u535A\u4E00"},"\u535A\u4E00"),t.a.createElement(ue,{value:"\u535A\u4E8C"},"\u535A\u4E8C"),t.a.createElement(ue,{value:"\u535A\u4E09"},"\u535A\u4E09"),t.a.createElement(ue,{value:"\u535A\u56DB"},"\u535A\u56DB"),t.a.createElement(ue,{value:"\u535A\u4E94"},"\u535A\u4E94")),t.a.createElement("p",{style:{marginTop:"1em"}},"\u63D0\u9192\uFF1A\u5982\u65E0\u534E\u4E3A\u4E91\u8D26\u53F7\uFF0C\u8BF7\u5C3D\u5FEB\u6CE8\u518C\u534E\u4E3A\u4E91\uFF01")),it&&it.length>3?t.a.createElement("div",{style:{position:"relative",marginBottom:"10px",marginTop:"10px"}},t.a.createElement("span",{className:O.a.spanprev,onClick:function(){Ht.current.prev()}},t.a.createElement(Oe.a,{style:{color:"#fff",fontSize:"20px",marginLeft:"15px"}})),t.a.createElement(Ae.a,{ref:Ht,className:O.a.divwidth,slidesToShow:3,slidesToScroll:1},it&&it.map(function(xr,br){return t.a.createElement("div",{style:{textAlign:"center",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/".concat(xr.image_url)}),xr.user_received===!1||xr.click_event==="Link"?t.a.createElement("p",{className:O.a.receiveclick,onClick:function(){return qe(xr)}},"\u70B9\u51FB\u9886\u53D6"):t.a.createElement("p",{className:O.a.receivealready},"\u5DF2\u7ECF\u9886\u53D6"))})),t.a.createElement("span",{className:O.a.spannext,onClick:function(){Ht.current.next()}},t.a.createElement(xe.a,{style:{color:"#fff",fontSize:"20px",marginLeft:"5px"}}))):t.a.createElement("div",{className:O.a.divwidth,style:{justifyContent:"space-around",marginBottom:"10px",marginTop:"10px"}},it&&it.map(function(xr,br){return t.a.createElement("div",{style:{textAlign:"center",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/".concat(xr.image_url)}),xr.user_received===!1||xr.click_event==="Link"?t.a.createElement("p",{className:O.a.receiveclick,onClick:function(){return qe(xr)}},"\u70B9\u51FB\u9886\u53D6"):t.a.createElement("p",{className:O.a.receivealready},"\u5DF2\u7ECF\u9886\u53D6"))})))}var re=le,pe=function(it,mt){var Ct=it.StaffDetail,It=it.HeaderDetail,Pt=it.ItemData,Ht=it.setIssee,Wt=it.ModelType,dt=it.dispatch,At=it.userinfo,Dt=it.Editable,yr=Object(a.useState)(!1),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)([]),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(""),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],St=Object(a.useState)(""),xt=Object(h.a)(St,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(!1),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(w.i)(),sr=qe.identifier,Nr=Object(a.useRef)(null),rn=Object(a.useRef)(null);Nr.current=Ct==null?void 0:Ct.enrolled,Object(a.useEffect)(function(){var Ft;return(Ft=rn.current)===null||Ft===void 0||Ft.addEventListener("click",xr),function(){var Zt;(Zt=rn.current)===null||Zt===void 0||Zt.removeEventListener("click",xr)}},[]);var xr=function(Zt){var wr;if((Zt==null||((wr=Zt.target)===null||wr===void 0)?void 0:wr.id)==="modal-upload"){if(!Object(fe.e)(dt))return;if(!Nr.current){T.a.info({title:"\u63D0\u793A",centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:"\u8BF7\u5148\u62A5\u540D\uFF0C\u518D\u63D0\u4EA4\u4F5C\u54C1"});return}Gt(!0)}};Object(a.useEffect)(function(){if(It!=null&&It.upload_file){var Ft,Zt,wr;Lr([{name:It==null||((Ft=It.upload_file)===null||Ft===void 0)?void 0:Ft.title,status:"done",uid:"123456789"}]),pr(It==null?void 0:It.upload_file_url),Et(It==null||((Zt=It.upload_file)===null||Zt===void 0||((wr=Zt.url)===null||wr===void 0))?void 0:wr.split("/")[3])}},[It==null?void 0:It.upload_file]);var br={name:"file",multiple:!1,withCredentials:!0,action:X.a.API_SERVER+"/api/attachments.json",showUploadList:{showRemoveIcon:!1},fileList:st,onChange:function(Zt){var wr=Zt.file.status,er=[Object(L.a)({},Zt.file)];if(Lr(er),Zt.file.status==="uploading"&&an(!0),wr==="done"){var vt,yt;Et((vt=er[0])===null||vt===void 0||((yt=vt.response)===null||yt===void 0)?void 0:yt.id),an(!1)}wr==="error"&&(Lr([]),an(!1))},beforeUpload:function(Zt){var wr=Zt.size/1024/1024<1e3;return wr?Promise.resolve():(u.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E1000MB"),Promise.reject())}},Pr=function(){Gt(!0)};return Object(a.useImperativeHandle)(mt,function(){return{handleVisible:Pr}}),t.a.createElement("div",{ref:rn},Wt==="reward"?t.a.createElement(re,{userlist:At,dispatch:dt,rewarddata:Pt.reward_setting,is_signed:Pt.is_signed}):null,t.a.createElement("div",{style:{textAlign:"right"}},((At==null?void 0:At.admin)||(At==null?void 0:At.business)||Dt)&&t.a.createElement(_.a,{onClick:function(){return Ht(!1)}},"\u7F16\u8F91")),t.a.createElement(W.a,{value:Pt.md_content}),Pt&&Pt.attachments&&Pt.attachments.map(function(Ft,Zt){return t.a.createElement("div",null,t.a.createElement("a",{href:(X.a===null||X.a===void 0?void 0:X.a.API_SERVER)+Ft.url,target:"_self",download:Ft.title},t.a.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),t.a.createElement("span",{style:{color:"#000000"}},Ft.title),t.a.createElement("span",{style:{color:"#000000",marginLeft:"10px"}},Ft.filesize)))}),t.a.createElement(T.a,{centered:!0,title:"\u4E0A\u4F20\u4F5C\u54C1",visible:qt,okText:"\u63D0\u4EA4\u4F5C\u54C1",cancelText:"\u53D6\u6D88",confirmLoading:Dr,onCancel:function(){return Gt(!1)},onOk:Object(o.a)(r.a.mark(function Ft(){var Zt;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(!(!rr&&!Jt)){er.next=3;break}return Gt(!1),er.abrupt("return");case 3:return an(!0),er.next=6,Object(ne.a)("/api/competitions/".concat(sr,"/upload_file.json"),{method:"post",body:{attachment_id:rr,upload_file_url:Jt}});case 6:Zt=er.sent,Zt.status===0&&(Gt(!1),an(!1));case 8:case"end":return er.stop()}},Ft)}))},t.a.createElement("div",null,t.a.createElement(B.a,{align:"middle",className:"mb20"},t.a.createElement("span",null,"\u4F5C\u54C1\u94FE\u63A5\uFF1A"),t.a.createElement(U.a,{style:{width:416},value:Jt,onChange:function(Zt){var wr;return pr((wr=Zt.target)===null||wr===void 0?void 0:wr.value)}})),t.a.createElement(B.a,{align:"top"},t.a.createElement("span",{style:{lineHeight:"28px"}},"\u4F5C\u54C1\u6587\u4EF6\uFF1A"),t.a.createElement(y.a,br,t.a.createElement(_.a,{type:"primary",className:"mb10"},"\u4E0A\u4F20\u4F5C\u54C1"))))))},ee=Object(a.forwardRef)(pe),te=D("Ot1p"),ce=D("hJwl");function q(Tt){var it=Tt.ItemData,mt=Tt.setIssee,Ct=Tt.MenuItem,It=Tt.dispatch,Pt=Tt.identifier,Ht=Tt.ModelType,Wt=Tt.userinfo,dt=Tt.getrightdatas,At=Object(a.useState)([]),Dt=Object(h.a)(At,2),yr=Dt[0],tr=Dt[1],qt=Object(a.useState)(it.md_content),Gt=Object(h.a)(qt,2),nr=Gt[0],cr=Gt[1];Object(a.useEffect)(function(){var Et,St=[];it==null||((Et=it.attachments)===null||Et===void 0)||Et.map(function(xt){var Jt={uid:xt.id,name:xt.title,response:{id:xt.id}};St.push(Jt)}),tr(St)},[it==null?void 0:it.attachments]);function st(){var Et,St=[];return it==null||((Et=it.attachments)===null||Et===void 0)||Et.map(function(xt){var Jt={uid:xt==null?void 0:xt.id,name:xt.title,response:{id:xt.id}};St.push(Jt)}),St}var Lr={name:"file",multiple:!0,withCredentials:!0,action:X.a.API_SERVER+"/api/attachments.json",defaultFileList:st(),onRemove:function(St){Object(ce.t)({id:St.uid})},onChange:function(St){var xt=St.file.status;xt!=="uploading",xt==="removed"&&tr(St.fileList),xt==="done"?(tr(St.fileList),u.b.success("".concat(St.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))):xt==="error"&&u.b.error("".concat(St.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(St){var xt=St.size/1024/1024<150;return xt||u.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),xt}};console.log(Lr);function Fr(){return Cr.apply(this,arguments)}function Cr(){return Cr=Object(o.a)(r.a.mark(function Et(){var St;return r.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return Jt.next=2,It({type:"competitions/updateMdContent",payload:{attachment_ids:rr(yr),competition_module_id:it.id,md_content_id:it.md_id,content:nr,identifier:Pt}});case 2:St=Jt.sent,St&&(u.b.info("\u63D0\u4EA4\u6210\u529F"),mt(!0),dt(Ct));case 4:case"end":return Jt.stop()}},Et)})),Cr.apply(this,arguments)}function rr(Et){var St=[];return Et&&Et.map(function(xt){St.push(xt.response.id)}),St}return t.a.createElement("div",null,Ht==="reward"?t.a.createElement(re,{userlist:Wt,dispatch:It,rewarddata:it.reward_setting,is_signed:it.is_signed}):null,t.a.createElement(te.a,{defaultValue:nr,onChange:function(St){return cr(St)}}),t.a.createElement(y.a,Lr,t.a.createElement(_.a,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(_.a,{style:{width:"90px"},type:"primary",onClick:function(){return Fr()}},"\u63D0\u4EA4"),t.a.createElement(_.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return mt(!0)}},"\u53D6\u6D88")))}var Q=q,V=D("g9YV"),Z=D("wCAj"),be=D("Znn+"),ge=D("ZTPi");function Te(){return t.a.createElement("div",null,t.a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),t.a.createElement("div",{style:{textAlign:"center"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/competitions/trophy.png"}),t.a.createElement("p",null,"\u8981\u6293\u4F4F\u4E00\u5207\u673A\u4F1A\uFF0C\u5411\u6240\u6709\u4EBA\u8BC1\u660E\u81EA\u5DF1\uFF0C\u8BC1\u660E\u4F60\u80FD\u591F\u8FCE\u63A5\u8363\u8000")))}var Je=Te,rt=D("5Dmo"),nt=D("3S7+"),at=D("jCWc"),ct=D("kPKH"),ht=D("IzEo"),He=D("bx4M");function Re(Tt){var it=Tt.oneItem,mt=Tt.towItem,Ct=Tt.threeItem;return t.a.createElement("div",{style:{textAlign:"center"}},t.a.createElement(B.a,{gutter:16,style:{justifyContent:"center"}},t.a.createElement(ct.a,{span:6,style:{marginTop:"30px",marginRight:"20px"}},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.towtop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan-two.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(mt==null?void 0:mt.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(mt==null?void 0:mt.user_image)}),(mt==null?void 0:mt.competition_prize)&&t.a.createElement("p",{className:O.a.prize},mt==null?void 0:mt.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},mt==null?void 0:mt.record_user_name)))),className:O.a.towdiv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},mt==null?void 0:mt.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},mt==null?void 0:mt.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(mt==null?void 0:mt.extra_score)+parseFloat(mt==null?void 0:mt.score),"\u5206"))),t.a.createElement(ct.a,{span:6},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.onetop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(it==null?void 0:it.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(it==null?void 0:it.user_image)}),(it==null?void 0:it.competition_prize)&&t.a.createElement("p",{className:O.a.prize},it==null?void 0:it.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},it==null?void 0:it.record_user_name)))),className:O.a.onediv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},it==null?void 0:it.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},it==null?void 0:it.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(it==null?void 0:it.extra_score)+parseFloat(it==null?void 0:it.score),"\u5206"))),t.a.createElement(ct.a,{span:6,style:{marginTop:"40px",marginLeft:"20px"}},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.threetop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan-three.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(Ct==null?void 0:Ct.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(Ct==null?void 0:Ct.user_image)}),(Ct==null?void 0:Ct.competition_prize)&&t.a.createElement("p",{className:O.a.prize},Ct==null?void 0:Ct.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},Ct==null?void 0:Ct.record_user_name)))),className:O.a.threediv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},Ct==null?void 0:Ct.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},Ct==null?void 0:Ct.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(Ct==null?void 0:Ct.extra_score)+parseFloat(Ct==null?void 0:Ct.score),"\u5206")))))}var tt=Re;function ft(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt,At,Dt,yr,tr,qt,Gt,nr,cr,st,Lr,Fr,Cr,rr,Et,St,xt,Jt,pr,dr,fr,Dr,an,qe=Tt.ItemData;return t.a.createElement("div",null,t.a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),t.a.createElement(tt,{oneItem:qe==null?void 0:qe.teams[0],towItem:qe==null?void 0:qe.teams[1],threeItem:qe==null?void 0:qe.teams[2]}),(qe==null||((it=qe.user_ranks)===null||it===void 0)?void 0:it.length)>0&&t.a.createElement("div",{className:O.a.myTeam},(qe==null||((mt=qe.user_ranks)===null||mt===void 0||((Ct=mt[0])===null||Ct===void 0))?void 0:Ct.success)===!1?t.a.createElement("span",{style:{marginRight:"70px",padding:"10px"}},t.a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u664B\u7EA7\uFF1A",t.a.createElement("span",{style:{color:(qe==null||((It=qe.user_ranks)===null||It===void 0||((Pt=It[0])===null||Pt===void 0))?void 0:Pt.success)===!1?"red":"green"}},(qe==null||((Ht=qe.user_ranks)===null||Ht===void 0||((Wt=Ht[0])===null||Wt===void 0))?void 0:Wt.success)===!1?"\u5426":qe!=null&&(dt=qe.user_ranks)!==null&&dt!==void 0&&(At=dt[0])!==null&&At!==void 0&&At.success?"\u662F":"")),(qe==null||((Dt=qe.user_ranks)===null||Dt===void 0||((yr=Dt[0])===null||yr===void 0))?void 0:yr.awards)&&t.a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u83B7\u5956\uFF1A",t.a.createElement("span",null,(qe==null||((tr=qe.user_ranks)===null||tr===void 0||((qt=tr[0])===null||qt===void 0))?void 0:qt.awards)==="percent_20"?"\u4E8C\u7B49\u5956":(qe==null||((Gt=qe.user_ranks)===null||Gt===void 0||((nr=Gt[0])===null||nr===void 0))?void 0:nr.awards)==="percent_30"?"\u4E09\u7B49\u5956":"\u6CA1\u6709\u83B7\u5F97\u5956\u9879"))):t.a.createElement("span",{style:{marginRight:"70px"}},"\u6211\u7684\u6392\u540D\uFF1A",qe==null||((cr=qe.user_ranks)===null||cr===void 0||((st=cr[0])===null||st===void 0))?void 0:st.rank),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6218\u961F\u540D"},qe==null||((Lr=qe.user_ranks)===null||Lr===void 0||((Fr=Lr[0])===null||Fr===void 0))?void 0:Fr.team_name)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u65F6\u95F4"},qe==null||((Cr=qe.user_ranks)===null||Cr===void 0||((rr=Cr[0])===null||rr===void 0))?void 0:rr.cost_time)),t.a.createElement("span",{style:{flex:1,textAlign:"center"}},t.a.createElement(nt.a,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},qe==null||((Et=qe.user_ranks)===null||Et===void 0||((St=Et[0])===null||St===void 0))?void 0:St.extra_score)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6BD4\u8D5B\u6210\u7EE9"},qe==null||((xt=qe.user_ranks)===null||xt===void 0||((Jt=xt[0])===null||Jt===void 0))?void 0:Jt.score)),t.a.createElement("span",null,t.a.createElement(nt.a,{title:"\u603B\u5206"},parseFloat(qe==null||((pr=qe.user_ranks)===null||pr===void 0||((dr=pr[0])===null||dr===void 0))?void 0:dr.extra_score)+parseFloat(qe==null||((fr=qe.user_ranks)===null||fr===void 0||((Dr=fr[0])===null||Dr===void 0))?void 0:Dr.score)||0))),qe==null||((an=qe.teams)===null||an===void 0)?void 0:an.map(function(sr,Nr){return t.a.createElement("div",{className:O.a.bottomItem},t.a.createElement("span",{style:{color:"#0152d9",marginRight:"20px"}},Nr+1),t.a.createElement(E.a,{to:"/users/".concat(sr==null?void 0:sr.user_login,"/classrooms"),style:{marginRight:"80px",position:"relative"}},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(sr==null?void 0:sr.user_image)}),(sr==null?void 0:sr.competition_prize)&&t.a.createElement("span",{className:O.a.spanrightradius},sr==null?void 0:sr.competition_prize)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6218\u961F\u540D"},sr==null?void 0:sr.team_name)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u5355\u4F4D/\u5B66\u6821\u540D"},sr.school_name)),t.a.createElement("span",{style:{flex:1,textAlign:"center"}},t.a.createElement(nt.a,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},sr.extra_score)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6BD4\u8D5B\u6210\u7EE9"},sr.score)),t.a.createElement("span",{style:{color:"#0152d9"}},t.a.createElement(nt.a,{title:"\u603B\u5206"},parseFloat(sr.extra_score)+parseFloat(sr.score))))}))}var Qe=ft,lt=ge.a.TabPane;function Ue(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.ChartRules,dt=Tt.ItemData,At=Tt.getCharts,Dt=Tt.Selectkey,yr=Tt.getChartRules,tr=Tt.userinfo,qt=Tt.Editable,Gt=Tt.HeaderDetail,nr=Object(a.useState)(!1),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(""),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],St=Object(a.useState)(!0),xt=Object(h.a)(St,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(a.useState)(),sr=Object(h.a)(qe,2),Nr=sr[0],rn=sr[1],xr=Object(w.i)(),br=xr.identifier;Object(a.useEffect)(function(){if(Jt){var wr,er=Wt==null||((wr=Wt.stages)===null||wr===void 0)?void 0:wr[0];if(an(er),er!=null&&er.id){var vt,yt,zt;((Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog")&&At(er==null?void 0:er.id),Et(((vt=Wt.rule_contents)===null||vt===void 0||((yt=vt.filter(function(fn){return parseInt(fn.competition_stage_id)===parseInt(er==null?void 0:er.id)}))===null||yt===void 0||((zt=yt[0])===null||zt===void 0))?void 0:zt.content)||"")}else{var Mt,Mr,cn;(Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog",Et(((Mt=Wt.rule_contents)===null||Mt===void 0||((Mr=Mt.filter(function(fn){return parseInt(fn.competition_stage_id)===0}))===null||Mr===void 0||((cn=Mr[0])===null||cn===void 0))?void 0:cn.content)||"")}}},[Wt]);function Pr(){return Ft.apply(this,arguments)}function Ft(){return Ft=Object(o.a)(r.a.mark(function wr(){var er,vt,yt,zt,Mt,Mr,cn,fn,kr;return r.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(rr){Ur.next=3;break}return u.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ur.abrupt("return");case 3:if(pr(!1),er=Dr==null?void 0:Dr.id,!er){Ur.next=12;break}return Ur.next=8,Object(ne.a)("/api/competitions/".concat(br,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:rr,md_content_id:(vt=Wt.rule_contents)===null||vt===void 0||((yt=vt.filter(function(gn){return parseInt(gn.competition_stage_id)===parseInt(er)}))===null||yt===void 0||((zt=yt[0])===null||zt===void 0))?void 0:zt.id,stage_id:Dr==null?void 0:Dr.id}});case 8:Mt=Ur.sent,Mt.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Lr(!1),yr()),Ur.next=16;break;case 12:return Ur.next=14,Object(ne.a)("/api/competitions/".concat(br,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:rr,md_content_id:(Mr=Wt.rule_contents)===null||Mr===void 0||((cn=Mr.filter(function(gn){return parseInt(gn.competition_stage_id)===0}))===null||cn===void 0||((fn=cn[0])===null||fn===void 0))?void 0:fn.id,stage_id:Dr==null?void 0:Dr.id}});case 14:kr=Ur.sent,kr.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Lr(!1),yr());case 16:case"end":return Ur.stop()}},wr)})),Ft.apply(this,arguments)}var Zt=[{title:"\u6392\u540D",dataIndex:"name",align:"center",key:"name",render:function(er,vt,yt){return t.a.createElement("span",null,yt+1)}},{title:"\u5934\u50CF",dataIndex:"user_image",align:"center",key:"user_image",render:function(er){return t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(er)})}},{title:"\u6218\u961F\u540D\u79F0",dataIndex:"team_name",key:"team_name",render:function(er){return t.a.createElement("span",{title:er},er&&(er==null?void 0:er.length)>=15?(er==null?void 0:er.substr(0,15))+"...":er||"--")}},{title:"\u5355\u4F4D",dataIndex:"school_name",key:"school_name",align:"center",render:function(er){return t.a.createElement("span",null,er||"--")}},{title:(Gt==null?void 0:Gt.task)==="mAP"?"mAP\u6307\u6807":(Gt==null?void 0:Gt.task)==="Jittor-3"?"\u603B\u5206":"top1\u6307\u6807",dataIndex:"score",key:"score",render:function(er){return t.a.createElement("span",null,er||"--")}}];return t.a.createElement("div",null,(Wt==null||((it=Wt.stages)===null||it===void 0)?void 0:it.length)>0?null:t.a.createElement(Je,null),(Wt==null||((mt=Wt.stages)===null||mt===void 0)?void 0:mt.length)>0&&t.a.createElement(ge.a,{animated:!0,tabBarExtraContent:((tr==null?void 0:tr.admin)||(tr==null?void 0:tr.business)||qt)&&t.a.createElement(_.a,{onClick:function(){Lr(!0)}},"\u7F16\u8F91"),onChange:function(er){var vt,yt,zt,Mt,Mr;Lr(!1);var cn=Wt==null||((vt=Wt.stages)===null||vt===void 0)?void 0:vt.filter(function(kr){return parseInt(er)===parseInt(kr==null?void 0:kr.id)})[0];an(cn);var fn=cn==null||((yt=cn.children)===null||yt===void 0)?void 0:yt[0];rn(fn),Et(((zt=Wt.rule_contents)===null||zt===void 0||((Mt=zt.filter(function(kr){return parseInt(kr.competition_stage_id)===parseInt(cn==null?void 0:cn.id)}))===null||Mt===void 0||((Mr=Mt[0])===null||Mr===void 0))?void 0:Mr.content)||""),At((fn==null?void 0:fn.id)||er)}},Wt&&Wt.stages.map(function(wr,er){return t.a.createElement(lt,{tab:wr.name,key:wr.id===null?0:wr.id},st===!1&&Wt&&Wt.rule_contents.map(function(vt,yt){if(wr.id===vt.competition_stage_id)return t.a.createElement(W.a,{key:yt,value:vt.content===void 0||vt.content===null?"":vt.content});if(wr.id===null&&vt.competition_stage_id===0)return t.a.createElement(W.a,{key:yt,value:vt.content===void 0||vt.content===null?"":vt.content})}))})),(Dr==null||((Ct=Dr.children)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{activeKey:(Nr==null?void 0:Nr.id)+"",onChange:function(er){var vt,yt=Dr==null||((vt=Dr.children)===null||vt===void 0)?void 0:vt.filter(function(zt){return parseInt(er)===parseInt(zt==null?void 0:zt.id)})[0];rn(yt),At(er)}},Dr==null||((It=Dr.children)===null||It===void 0)?void 0:It.map(function(wr,er){return t.a.createElement(lt,{tab:wr.name,key:wr.id===null?0:wr.id})})),st&&t.a.createElement("div",null,t.a.createElement(te.a,{defaultValue:rr,onChange:function(er){Et(er)}}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(_.a,{style:{width:"90px"},type:"primary",onClick:function(){return Pr()}},"\u63D0\u4EA4"),t.a.createElement(_.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return Lr(!1)}},"\u53D6\u6D88"))),(dt==null||((Pt=dt.teams)===null||Pt===void 0)?void 0:Pt.length)>0&&((Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog"||(Gt==null?void 0:Gt.task)==="Jittor-3")?t.a.createElement(Z.a,{dataSource:dt==null?void 0:dt.teams,columns:Zt,pagination:!1}):(dt==null||((Ht=dt.teams)===null||Ht===void 0)?void 0:Ht.length)>0&&t.a.createElement(Qe,{ItemData:dt}))}var Le=Ue,Ie=D("/zsF"),Ce=D("PArb");function _e(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt=Tt.Prize,At=Object(w.i)(),Dt=Object(a.useState)([{type:1,name:"\u56E2\u4F53\u5956\u8BC1\u4E66"},{type:2,name:"\u4E2A\u4EBA\u5956\u8BC1\u4E66"},{type:3,name:"\u4F18\u79C0\u6307\u5BFC\u6559\u5E08\u8BC1\u4E66"}]),yr=Object(h.a)(Dt,2),tr=yr[0],qt=yr[1],Gt=function(){var nr=Object(o.a)(r.a.mark(function cr(st){var Lr;return r.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return Cr.next=2,Object(ce.u)({type:st.type,id:At.identifier});case 2:Lr=Cr.sent,(Lr==null?void 0:Lr.status)===0&&(location.href="/competitions/exports?id=".concat(At.identifier,"&type=").concat(st.type));case 4:case"end":return Cr.stop()}},cr)}));return function(st){return nr.apply(this,arguments)}}();return t.a.createElement("div",null,t.a.createElement("p",{className:O.a.downloadpdf},"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u7684\u4E2A\u4EBA\u4FE1\u606F\u7ECF\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u4E2A\u4EBA\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\uFF1B\u56E2\u961F\u961F\u5458\u4FE1\u606F\u5168\u90E8\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u56E2\u961F\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\u3002"),t.a.createElement("p",{style:{marginTop:"30px",fontSize:"16px",color:"#000"}},"\u8BC1\u4E66\u60C5\u51B5"),(dt==null||((it=dt.personal_certifications)===null||it===void 0)?void 0:it.length)>0?t.a.createElement("p",null,t.a.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A"),t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/pdfs.png"}),t.a.createElement("a",{style:{marginLeft:"5px"},href:X.a.API_SERVER+"".concat(dt==null||((mt=dt.personal_certifications[0])===null||mt===void 0)?void 0:mt.url)},"\u7ACB\u5373\u4E0B\u8F7D")):t.a.createElement("p",null,t.a.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210"),t.a.createElement("span",{style:{marginLeft:"20px"}},"\u539F\u56E0\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u7EC4\u59D4\u4F1A\u672A\u5B8C\u6210\u8BC1\u4E66\u5BA1\u6279\uFF0C\u8BF7\u7A0D\u540E")),(dt==null||((Ct=dt.team_certifications)===null||Ct===void 0)?void 0:Ct.length)>0?t.a.createElement("p",null,t.a.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A"),t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/pdfs.png"}),t.a.createElement("a",{style:{marginLeft:"5px"},href:X.a.API_SERVER+"".concat(dt==null||((It=dt.team_certifications[0])===null||It===void 0)?void 0:It.url)},"\u7ACB\u5373\u4E0B\u8F7D")):t.a.createElement("p",null,t.a.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210")),t.a.createElement(Ce.a,null),(dt==null||((Pt=dt.teams)===null||Pt===void 0)?void 0:Pt.length)>0?t.a.createElement("div",null,t.a.createElement("p",null,(dt==null?void 0:dt.teams)&&(dt==null||((Ht=dt.teams[0])===null||Ht===void 0)?void 0:Ht.name),"\u6218\u961F\u4FE1\u606F\u586B\u62A5\u6982\u51B5"),t.a.createElement("p",{style:{display:"flex",height:"50px",background:"#f5f5f5",alignItems:"center",justifyContent:"space-around"}},t.a.createElement("span",{style:{width:"5%"}},"\u89D2\u8272"),t.a.createElement("span",{style:{width:"5%"}},"\u59D3\u540D"),t.a.createElement("span",{style:{width:"10%"}},"\u5B9E\u540D\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},"\u804C\u4E1A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},"\u624B\u673A\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"10%"}},"\u90AE\u7BB1\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"50%",textAlign:"center"}},"\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7\u4FE1\u606F\uFF08\u961F\u957F\u586B\u5199\uFF09")),(dt==null?void 0:dt.teams)&&(dt==null||((Wt=dt.teams[0])===null||Wt===void 0)?void 0:Wt.team_members.map(function(nr,cr){var st,Lr,Fr,Cr,rr,Et;return t.a.createElement("p",{className:O.a.teamItem},t.a.createElement("span",{style:{width:"5%"}},nr==null?void 0:nr.role),t.a.createElement("span",{style:{width:"5%"}},nr==null?void 0:nr.name),t.a.createElement("span",{style:{width:"10%"}},(nr==null?void 0:nr.real_name_auth)==="authed"?"\u5DF2\u8BA4\u8BC1":(nr==null?void 0:nr.real_name_auth)==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},(nr==null?void 0:nr.professional_auth)==="authed"?"\u5DF2\u8BA4\u8BC1":(nr==null?void 0:nr.professional_auth)==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},nr!=null&&nr.phone_binded?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"10%"}},nr!=null&&nr.email_binded?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"),(nr==null?void 0:nr.role)==="\u961F\u957F"?t.a.createElement("span",{style:{width:"50%",textAlign:"center"}},(dt==null?void 0:dt.teams)&&(dt==null||((st=dt.teams[0])===null||st===void 0||((Lr=st.bank_account)===null||Lr===void 0))?void 0:Lr.bank),(dt==null?void 0:dt.teams)&&(dt==null||((Fr=dt.teams[0])===null||Fr===void 0||((Cr=Fr.bank_account)===null||Cr===void 0))?void 0:Cr.second_bank),(dt==null?void 0:dt.teams)&&(dt==null||((rr=dt.teams[0])===null||rr===void 0||((Et=rr.bank_account)===null||Et===void 0))?void 0:Et.card_no)):t.a.createElement("span",{style:{width:"50%"}}))}))):null,t.a.createElement(B.a,{gutter:[20,20]},tr.map(function(nr,cr){return t.a.createElement(ct.a,{key:cr},t.a.createElement(_.a,{type:"primary",onClick:function(){return Gt(nr)}},nr.name))})))}var ke=_e,Ne=D("0Owb"),et=D("7Kak"),$e=D("9yH6"),bt=D("y8nQ"),gt=D("Vl3Y"),Ut=D("1vsH"),Nt=D("Dgm7"),hr=D.n(Nt),mr=D("NnUe"),_t=D.n(mr),Yr=y.a.Dragger,Jr=10,Hr=function(it){var mt=it.user,Ct=it.account,It=it.globalSetting,Pt=it.loading,Ht=it.dispatch,Wt=Object(m.a)(it,["user","account","globalSetting","loading","dispatch"]),dt=gt.a.useForm(),At=Object(h.a)(dt,1),Dt=At[0],yr=Object(a.useState)({}),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)(!0),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],St=Object(a.useState)(),xt=Object(h.a)(St,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(a.useState)(),sr=Object(h.a)(qe,2),Nr=sr[0],rn=sr[1];Object(a.useEffect)(function(){if(!Ct.basicInfo)return;var er=Ct.basicInfo,vt={name:er.show_realname?er.name:Object(Ut.E)(er.name),gender:er.gender};Et(er.name),Lr(er.show_realname),Dt.setFieldsValue(vt),Gt(vt)},[Ct.basicInfo]);var xr=function(vt){if(vt.file.status==="uploading"){rn(!0);return}if(vt.file.status==="done"){var yt;console.log(vt.file,vt.file.response),an((yt=vt.file.response)===null||yt===void 0?void 0:yt.id),Object(Ut.B)(vt.file.originFileObj,function(zt){pr(zt),rn(!1)})}},br=function(vt){Gt(Object(L.a)({},Dt.getFieldsValue())),"name"in vt&&Et(vt.name)},Pr=function(){var vt=!st;Lr(vt);var yt=vt?rr:Object(Ut.E)(rr);Dt.setFieldsValue({name:yt})},Ft=function(){var er=Object(o.a)(r.a.mark(function vt(yt){var zt,Mt,Mr,cn,fn,kr,on,Ur;return r.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:if(Mr=yt||{},cn=Mr.name,fn=Mr.gender,kr=Mr.idNumber,Jt){Vr.next=4;break}return u.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),Vr.abrupt("return");case 4:return Vr.next=6,Ht({type:"account/applyRealNameAuth",payload:{id:((zt=Ct.basicInfo)===null||zt===void 0?void 0:zt.id)||((Mt=mt.userInfo)===null||Mt===void 0?void 0:Mt.login),name:cn,gender:fn,id_number:kr,show_realname:st,attachment_ids:[Dr]}});case 6:on=Vr.sent,Zt(),on&&(u.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Ht({type:"account/getBasicInfo",payload:{login:(Ur=mt.userInfo)===null||Ur===void 0?void 0:Ur.login}}));case 9:case"end":return Vr.stop()}},vt)}));return function(yt){return er.apply(this,arguments)}}(),Zt=function(){Ht({type:"account/setActionTabs",payload:{}})},wr={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:"".concat(X.a.API_SERVER,"/api/attachments.json"),className:_t.a.uploader,onChange:xr,beforeUpload:function(vt){var yt=vt.type==="image/jpeg"||vt.type==="image/png"||vt.type==="image/jpg"||vt.type==="image/bmp";return yt||u.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),yt}};return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ct.actionTabs.key==="Account-RealNameAuth",title:"\u4FEE\u6539\u5B9E\u540D\u4FE1\u606F",width:"600px",footer:null},t.a.createElement(d.a,{spinning:!!Nr},t.a.createElement(gt.a,{className:_t.a.formWrap,form:Dt,layout:"horizontal",onValuesChange:br,onFinish:Ft},t.a.createElement(gt.a.Item,{label:"\u59D3\u540D",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Jr,"\u4E2A\u5B57\u7B26")},{validator:Ut.H}],extra:t.a.createElement("span",null,st?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")},t.a.createElement(U.a,{disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Jr,"\u4E2A\u5B57\u7B26"),maxLength:Jr,addonAfter:t.a.createElement("i",{className:"iconfont ".concat(st?"icon-xianshi":"icon-yincang"," font18 ").concat(_t.a.color0152d9),onClick:Pr})})),t.a.createElement(gt.a.Item,{label:"\u6027\u522B\uFF1A",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},t.a.createElement($e.a.Group,null,t.a.createElement($e.a,{value:0},"\u7537"),t.a.createElement($e.a,{value:1},"\u5973"))),t.a.createElement(gt.a.Item,{label:"\u8BC1\u4EF6\u53F7\uFF1A",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"}]},t.a.createElement(U.a,{placeholder:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"})),t.a.createElement(gt.a.Item,{label:"\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",labelCol:{span:3}},t.a.createElement("div",{className:_t.a.flexRow},t.a.createElement("div",{className:"".concat(_t.a.flexColumn," ").concat(_t.a.example)},t.a.createElement("span",{className:_t.a.exampleImg},t.a.createElement("img",{src:hr.a})),t.a.createElement("span",{className:"tc"},t.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),t.a.createElement("p",{className:"".concat(_t.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),t.a.createElement("div",{className:_t.a.flexColumn},t.a.createElement(Yr,Object(Ne.a)({},wr,{accept:".png,.jpg,.bmp,.jpeg"}),Jt?t.a.createElement("img",{src:Jt,className:_t.a.uploadImg}):t.a.createElement("div",{className:_t.a.imageTip},t.a.createElement("p",null,t.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(_t.a.uploadTipIcon)})),t.a.createElement("p",{className:_t.a.uploadTip},t.a.createElement("a",{className:_t.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),t.a.createElement("span",{className:"tc"},t.a.createElement("p",{className:_t.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),t.a.createElement("div",{className:_t.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(_.a,{className:"mr5",size:"large",onClick:Zt},"\u53D6\u6D88"),t.a.createElement(_.a,{size:"large",type:"primary",htmlType:"submit",loading:Pt["account/applyRealNameAuth"]},"\u4FDD\u5B58"))),t.a.createElement("div",{className:_t.a.note},t.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),t.a.createElement("p",null,"1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),t.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),t.a.createElement("p",null,"3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"),t.a.createElement("p",null,"4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),t.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),t.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3EduCoder\u8D26\u53F7\u3002"),t.a.createElement("p",null,"7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))))},un=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.account,Ct=Tt.loading,It=Tt.globalSetting;return{user:it,account:mt,globalSetting:It,loading:Ct.effects}})(Hr),Ar=D("O3gP"),vn=D("lrIw"),mn=D("KXlV"),Kt=D.n(mn),or=D("Sjjz"),Xt=D.n(or),gr=U.a.TextArea,Xr=function(it){var mt=it.account,Ct=it.globalSetting,It=it.loading,Pt=it.dispatch,Ht=it.schoolName,Wt=it.departmentName,dt=it.visible,At=it.onClose,Dt=At===void 0?function(){}:At,yr=it.onSuccess,tr=yr===void 0?function(){}:yr,qt=Object(m.a)(it,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),Gt=gt.a.useForm(),nr=Object(h.a)(Gt,1),cr=nr[0],st=Object(a.useRef)();Object(a.useEffect)(function(){st.current=qt.schoolId},[qt.schoolId]),Object(a.useEffect)(function(){cr.setFieldsValue({department:Wt})},[Wt]);var Lr=function(){var Fr=Object(o.a)(r.a.mark(function Cr(rr){var Et,St,xt,Jt;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return Et=rr||{},St=Et.department,xt=Et.remarks,dr.next=3,Pt({type:"account/appplyDepartment",payload:{school_id:st.current,name:St,remarks:xt}});case 3:Jt=dr.sent,Dt(),Jt&&(u.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),tr(St));case 6:case"end":return dr.stop()}},Cr)}));return function(rr){return Fr.apply(this,arguments)}}();return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:dt,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},t.a.createElement(gt.a,{className:Xt.a.formWrap,form:cr,labelCol:{span:4},wrapperCol:{span:20},onFinish:Lr},t.a.createElement(gt.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Ht),t.a.createElement(gt.a.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},t.a.createElement(U.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),t.a.createElement(gt.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},t.a.createElement(gr,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),t.a.createElement("div",{className:Xt.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(_.a,{className:"mr5",size:"large",onClick:function(){Dt()}},"\u53D6\u6D88"),t.a.createElement(_.a,{size:"large",type:"primary",htmlType:"submit",loading:It["account/appplyDepartment"]},"\u4FDD\u5B58")))))},kn=Object(f.a)(function(Tt){var it=Tt.account,mt=Tt.loading,Ct=Tt.globalSetting;return{account:it,globalSetting:Ct,loading:mt.effects}})(Xr),Ln=D("6UJt"),tn=D("DFOY"),ur=D("jO45"),Xn=D("jN4g"),hi=D("gJ3r"),$n=D("jwmR"),Zr=D.n($n),Bn=function(it,mt){return mt.some(function(Ct){return Ct.label.toLowerCase().indexOf(it.toLowerCase())>-1})},si=U.a.TextArea,li=function(it){var mt=it.account,Ct=it.globalSetting,It=it.loading,Pt=it.dispatch,Ht=it.schoolName,Wt=it.visible,dt=it.onClose,At=dt===void 0?function(){}:dt,Dt=it.onSuccess,yr=Dt===void 0?function(){}:Dt,tr=Object(m.a)(it,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),qt=gt.a.useForm(),Gt=Object(h.a)(qt,1),nr=Gt[0];Object(a.useEffect)(function(){nr.setFieldsValue({name:Ht})},[Ht]);var cr=function(){var st=Object(o.a)(r.a.mark(function Lr(Fr){var Cr,rr,Et,St,xt,Jt,pr;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return Cr=Fr||{},rr=Cr.name,Et=Cr.city,St=Et===void 0?[]:Et,xt=Cr.address,Jt=Cr.remarks,fr.next=3,Pt({type:"account/appplySchool",payload:{name:rr,province:St[0],city:St[1],address:xt,remarks:Jt}});case 3:pr=fr.sent,At(),pr&&(u.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),yr(rr));case 6:case"end":return fr.stop()}},Lr)}));return function(Fr){return st.apply(this,arguments)}}();return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Wt,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},t.a.createElement(gt.a,{className:Zr.a.formWrap,form:nr,labelCol:{span:4},wrapperCol:{span:20},onFinish:cr},t.a.createElement(gt.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},t.a.createElement(U.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),t.a.createElement("div",{className:"".concat(Zr.a.flexRow," ").concat(Zr.a.example)},t.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),t.a.createElement("div",{className:Zr.a.flexColumn},t.a.createElement("div",null,t.a.createElement(ur.a,{style:{color:"rgb(82, 196, 26)"}}),t.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),t.a.createElement("div",null,t.a.createElement(Xn.a,{style:{color:"red"}}),t.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),t.a.createElement(gt.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},t.a.createElement(tn.a,{allowClear:!0,size:"large",options:hi.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Bn}})),t.a.createElement(gt.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},t.a.createElement(U.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),t.a.createElement(gt.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},t.a.createElement(si,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),t.a.createElement("div",{className:Zr.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(_.a,{className:"mr5",size:"large",onClick:function(){At()}},"\u53D6\u6D88"),t.a.createElement(_.a,{size:"large",type:"primary",htmlType:"submit",loading:It["account/appplySchool"]},"\u4FDD\u5B58")))))},wt=Object(f.a)(function(Tt){var it=Tt.account,mt=Tt.loading,Ct=Tt.globalSetting;return{account:it,globalSetting:Ct,loading:mt.effects}})(li),$t=ye.a.Option,en=y.a.Dragger,Cn=function(it){var mt,Ct,It=it.user,Pt=it.account,Ht=it.globalSetting,Wt=it.loading,dt=it.dispatch,At=it.Scoid,Dt=Object(m.a)(it,["user","account","globalSetting","loading","dispatch","Scoid"]),yr=gt.a.useForm(),tr=Object(h.a)(yr,1),qt=tr[0],Gt=Object(a.useState)({}),nr=Object(h.a)(Gt,2),cr=nr[0],st=nr[1],Lr=Object(a.useState)([]),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)([]),St=Object(h.a)(Et,2),xt=St[0],Jt=St[1],pr=Object(a.useState)([]),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)([]),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(a.useState)(),Zt=Object(h.a)(Ft,2),wr=Zt[0],er=Zt[1],vt=Object(a.useState)(),yt=Object(h.a)(vt,2),zt=yt[0],Mt=yt[1],Mr=Object(a.useState)(),cn=Object(h.a)(Mr,2),fn=cn[0],kr=cn[1],on=Object(a.useState)(),Ur=Object(h.a)(on,2),gn=Ur[0],Vr=Ur[1];Object(a.useEffect)(function(){yn()},[]),Object(a.useEffect)(function(){Object(o.a)(r.a.mark(function Ve(){var We;return r.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(At){pt.next=2;break}return pt.abrupt("return");case 2:return pt.next=4,ei(At);case 4:We=pt.sent,Dr(We==null?void 0:We.departments);case 6:case"end":return pt.stop()}},Ve)}))()},[At]);var yn=function(){var Ve=Object(o.a)(r.a.mark(function We(){var Ze;return r.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,dt({type:"account/getSchoolOption"});case 2:Ze=kt.sent,rr(Ze==null?void 0:Ze.schools);case 4:case"end":return kt.stop()}},We)}));return function(){return Ve.apply(this,arguments)}}(),ei=function(We){return dt({type:"account/getDepartmentOption",payload:{id:We}})};Object(a.useEffect)(function(){if(!Pt.basicInfo)return;var Ve=Pt.basicInfo,We={identity:Ve.identity,school:Ve.school_name,department:Ve.department_name,studentNo:Ve.student_id,jobTitle:Ve.identity=="teacher"?Ve.technical_title:"\u6559\u6388",manager:Ve.identity=="professional"?Ve.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};qt.setFieldsValue(We),st(We)},[Pt.basicInfo]);var Me=function(){kr(!0)},Ge=function(){if(!Cr.find(function(We){return We.name===cr.school})){u.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Vr(!0)},Ye=function(We){if(st(Object(L.a)({},qt.getFieldsValue())),"school"in We){Jt(Cr.filter(function(pt){return pt.name.includes(We.school)}));var Ze=(Cr.find(function(pt){return pt.name===We.school})||{}).id;Ze?Fe(We.school):(qt.setFieldsValue({department:""}),st(Object(L.a)(Object(L.a)({},cr),{school:We.school,department:""})))}},Fe=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze,pt){var kt,jt,Yt,Ir,Qr,$r;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Ir=(kt=Cr.find(function(sn){return sn.name===Ze}))===null||kt===void 0?void 0:kt.id,Kr.next=3,ei(Ir);case 3:if(Kr.t0=Kr.sent,Kr.t0){Kr.next=6;break}Kr.t0={};case 6:Qr=Kr.t0,Dr(Qr==null?void 0:Qr.departments),$r=pt||(Qr==null||((jt=Qr.departments)===null||jt===void 0||((Yt=jt[0])===null||Yt===void 0))?void 0:Yt.name),qt.setFieldsValue({department:$r}),st(Object(L.a)(Object(L.a)({},cr),{school:Ze,department:$r}));case 11:case"end":return Kr.stop()}},We)}));return function(Ze,pt){return Ve.apply(this,arguments)}}(),Ee=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze){return r.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,yn();case 2:qt.setFieldsValue({school:Ze,department:""}),st(Object(L.a)(Object(L.a)({},cr),{school:Ze,department:""}));case 4:case"end":return kt.stop()}},We)}));return function(Ze){return Ve.apply(this,arguments)}}(),Pe=function(We){if(We.file.status==="uploading"){Mt(!0);return}if(We.file.status==="done"){var Ze;console.log(We.file,We.file.response),er((Ze=We.file.response)===null||Ze===void 0?void 0:Ze.id),Object(Ut.B)(We.file.originFileObj,function(pt){Pr(pt),Mt(!1)})}},Se=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze){var pt,kt,jt,Yt,Ir,Qr,$r,nn,Kr,sn,ln,xn,hn,jn,pn,jr;return r.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:if(Ir=Ze||{},Qr=Ir.school,$r=Ir.department,nn=Ir.identity,Kr=Ir.studentNo,sn=Ir.jobTitle,ln=Ir.manager,br){dn.next=4;break}return u.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),dn.abrupt("return");case 4:return xn=(pt=Cr.find(function(bn){return bn.name===Qr}))===null||pt===void 0?void 0:pt.id,hn=(kt=fr.find(function(bn){return bn.name===$r}))===null||kt===void 0?void 0:kt.id,nn==="student"?jn=Kr:nn==="teacher"?jn=sn:jn=ln,dn.next=9,dt({type:"account/applyProfessionalAuth",payload:{id:((jt=Pt.basicInfo)===null||jt===void 0?void 0:jt.id)||((Yt=It.userInfo)===null||Yt===void 0?void 0:Yt.login),school_id:xn,department_id:hn,identity:nn,extra:jn,attachment_ids:[wr]}});case 9:pn=dn.sent,je(),pn&&(u.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),dt({type:"account/getBasicInfo",payload:{login:(jr=It.userInfo)===null||jr===void 0?void 0:jr.login}}));case 12:case"end":return dn.stop()}},We)}));return function(Ze){return Ve.apply(this,arguments)}}(),je=function(){dt({type:"account/setActionTabs",payload:{}})},ze={data:{type:"professional"},multiple:!0,showUploadList:!1,action:"".concat(X.a.API_SERVER,"/api/attachments.json"),className:_t.a.uploader,onChange:Pe,beforeUpload:function(We){var Ze=We.type==="image/jpeg"||We.type==="image/png"||We.type==="image/jpg"||We.type==="image/bmp";return Ze||u.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),Ze}};return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:_t.a.modal,visible:Pt.actionTabs.key==="Account-ProfessionalAuth",title:t.a.createElement("div",null,t.a.createElement("i",{className:"iconfont icon-zhiyerenzheng font18 mr5 ".concat(_t.a.colorBlue)}),"\u804C\u4E1A\u8BA4\u8BC1"),width:"660px",footer:null},t.a.createElement(d.a,{spinning:!!zt},t.a.createElement(gt.a,{className:_t.a.formWrap,form:qt,layout:"horizontal",onValuesChange:Ye,onFinish:Se},t.a.createElement(B.a,{gutter:[10,0]},t.a.createElement(ct.a,{flex:"300px"},t.a.createElement(gt.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"teacher"},"\u6559\u5E08"),t.a.createElement($t,{value:"student"},"\u5B66\u751F"),t.a.createElement($t,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),cr.identity==="student"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},t.a.createElement(U.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),cr.identity==="teacher"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"\u6559\u6388"},"\u6559\u6388"),t.a.createElement($t,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),t.a.createElement($t,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),t.a.createElement($t,{value:"\u52A9\u6559"},"\u52A9\u6559")))),cr.identity==="professional"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),t.a.createElement($t,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),t.a.createElement($t,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),t.a.createElement($t,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),t.a.createElement($t,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),t.a.createElement(gt.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:cr.school&&!(Cr!=null&&Cr.find(function(Ve){return Ve.name===cr.school}))&&t.a.createElement("div",{className:_t.a.schoolHintWrap},t.a.createElement("span",{className:_t.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",cr.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),t.a.createElement("span",{className:"".concat(_t.a.color0152d9," current"),onClick:Me},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},t.a.createElement(vn.a,{showSearch:!0,options:xt==null?void 0:xt.map(function(Ve){return{value:Ve.name}})})),t.a.createElement(gt.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:cr.department&&!(fr!=null&&fr.find(function(Ve){return Ve.name===cr.department}))&&t.a.createElement("div",{className:_t.a.schoolHintWrap},t.a.createElement("span",{className:_t.a.colorCDCDCD},cr.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(cr.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),t.a.createElement("span",{className:"".concat(_t.a.color0152d9," current"),onClick:Ge},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},t.a.createElement(vn.a,{showSearch:!0,onChange:function(We){return Nr(fr.filter(function(Ze){return Ze.name.includes(We)}))},options:sr==null?void 0:sr.map(function(Ve){return{value:Ve.name}})})),t.a.createElement(gt.a.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},t.a.createElement("div",{className:_t.a.flexRow},t.a.createElement("div",{className:"".concat(_t.a.flexColumn," ").concat(_t.a.example)},t.a.createElement("span",{className:_t.a.exampleImg},t.a.createElement("img",{src:Kt.a})),t.a.createElement("span",{className:"tc"},t.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),t.a.createElement("p",{className:"".concat(_t.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),t.a.createElement("div",{className:_t.a.flexColumn},t.a.createElement(en,Object(Ne.a)({},ze,{accept:".png,.jpg,.bmp,.jpeg"}),br?t.a.createElement("img",{src:br,className:_t.a.uploadImg}):t.a.createElement("div",{className:_t.a.imageTip},t.a.createElement("p",null,t.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(_t.a.uploadTipIcon)})),t.a.createElement("p",{className:_t.a.uploadTip},t.a.createElement("a",{className:_t.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),t.a.createElement("span",{className:"tc"},t.a.createElement("p",{className:_t.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),t.a.createElement("div",{className:_t.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(_.a,{className:"mr5",size:"large",onClick:je},"\u53D6\u6D88"),t.a.createElement(_.a,{size:"large",type:"primary",htmlType:"submit",loading:Wt["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),t.a.createElement("div",{className:_t.a.note},t.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),t.a.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),t.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),t.a.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),t.a.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),t.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),t.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!(Ht!=null&&(mt=Ht.setting)!==null&&mt!==void 0&&mt.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),t.a.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),t.a.createElement(wt,{visible:fn,onClose:function(){return kr(!1)},schoolName:cr.school,onSuccess:Ee}),t.a.createElement(kn,{visible:gn,onClose:function(){return Vr(!1)},schoolId:(Ct=Cr.find(function(Ve){return Ve.name===cr.school}))===null||Ct===void 0?void 0:Ct.id,schoolName:cr.school,departmentName:cr.department,onSuccess:function(We){return Fe(cr.school,We)}}))},Sn=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.account,Ct=Tt.loading,It=Tt.globalSetting;return{user:it,account:mt,globalSetting:It,loading:Ct.effects}})(Cn),On=D("aCH8"),ae=D.n(On);function z(Tt){var it=Tt.type,mt=Tt.dispatch,Ct=Tt.userid,It=Tt.isshow,Pt=Tt.setPhoneshow,Ht=Tt.setEmailshow,Wt="79e33abd4b6588941ab7622aed1e67e8",dt=Object(a.useState)(""),At=Object(h.a)(dt,2),Dt=At[0],yr=At[1],tr=Object(a.useState)("\u83B7\u53D6\u9A8C\u8BC1\u7801"),qt=Object(h.a)(tr,2),Gt=qt[0],nr=qt[1],cr=Object(a.useState)(60),st=Object(h.a)(cr,2),Lr=st[0],Fr=st[1],Cr=Object(a.useState)(!1),rr=Object(h.a)(Cr,2),Et=rr[0],St=rr[1],xt=Object(a.useState)(""),Jt=Object(h.a)(xt,2),pr=Jt[0],dr=Jt[1];function fr(){return Dr.apply(this,arguments)}function Dr(){return Dr=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(Dt){Ft.next=3;break}return it===3?u.b.info("\u624B\u673A\u53F7\u4E0D\u80FD\u4E3A\u7A7A"):u.b.info("\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 3:return Ft.next=5,mt({type:"competitions/getVerification",payload:{type:it,login:Dt,smscode:ae()(Wt+Dt)}});case 5:br=Ft.sent,br.status===1&&(u.b.info("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F"),an(),St(!0));case 7:case"end":return Ft.stop()}},xr)})),Dr.apply(this,arguments)}function an(){Fr(60);var xr=setInterval(function(){--Lr,Lr>-1?Fr(Lr):(clearInterval(xr),St(!1))},1e3)}function qe(){return sr.apply(this,arguments)}function sr(){return sr=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,mt({type:"competitions/PhoneBind",payload:{userid:Ct,code:pr,phone:Dt}});case 2:br=Ft.sent,br.status===0&&(u.b.info("\u7ED1\u5B9A\u6210\u529F"),Pt("none"));case 4:case"end":return Ft.stop()}},xr)})),sr.apply(this,arguments)}function Nr(){return rn.apply(this,arguments)}function rn(){return rn=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,mt({type:"competitions/EmailBind",payload:{userid:Ct,code:pr,email:Dt}});case 2:br=Ft.sent,br.status===0&&(u.b.info("\u7ED1\u5B9A\u6210\u529F"),Ht("none"));case 4:case"end":return Ft.stop()}},xr)})),rn.apply(this,arguments)}return t.a.createElement("div",{style:{display:It}},t.a.createElement("p",null,t.a.createElement(U.a,{value:Dt,onChange:function(br){return yr(br.target.value)},placeholder:it===3?"\u8BF7\u8F93\u5165\u624B\u673A\u53F7":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740",style:{width:"370px"}})),t.a.createElement("span",null,t.a.createElement(U.a,{value:pr,onChange:function(br){return dr(br.target.value)},placeholder:it===3?"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801",style:{width:"250px"}}))," ",t.a.createElement(_.a,{disabled:Et,onClick:function(){return fr()},type:"primary",style:{marginLeft:"20px",width:"100px"}},Et?"\u91CD\u65B0\u53D1\u9001".concat(Lr,"s"):Gt),t.a.createElement("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"}},t.a.createElement(_.a,{type:"primary",style:{marginRight:"15px"},onClick:function(){if(!pr){u.b.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}it===3?qe():Nr()}},"\u786E\u8BA4"),t.a.createElement(_.a,{style:{marginLeft:"20px"},onClick:function(){it===3?Pt("none"):Ht("none")}},"\u53D6\u6D88")))}var $=z;function ie(Tt){var it=Tt.dispatch,mt=Tt.userid,Ct={wrapperCol:{offset:3,span:21}},It=gt.a.useForm(),Pt=Object(h.a)(It,1),Ht=Pt[0],Wt=Object(w.i)(),dt=Wt.identifier;return t.a.createElement("div",{style:{width:"500px"}},t.a.createElement(gt.a,{form:Ht,name:"basic"},t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u5F00\u6237\u884C"),name:"bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u884C"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u652F\u884C"),name:"second_bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u652F\u884C"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u8D26\u53F7"),name:"card_no",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u53F7"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,null,t.a.createElement(_.a,{type:"primary",htmlType:"submit",onClick:Object(o.a)(r.a.mark(function At(){return r.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:Ht.validateFields().then(function(){var tr=Object(o.a)(r.a.mark(function qt(Gt){var nr;return r.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,it({type:"competitions/setleader",payload:Object(L.a)({identifier:dt,user_id:mt},Gt)});case 2:nr=st.sent,nr.status===0&&u.b.info("\u63D0\u4EA4\u6210\u529F");case 4:case"end":return st.stop()}},qt)}));return function(qt){return tr.apply(this,arguments)}}());case 1:case"end":return yr.stop()}},At)}))},"\u63D0\u4EA4"))))}var de=ie,se={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"};function Ke(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt,At=Tt.Prize,Dt=Tt.Accounts,yr=Tt.dispatch,tr=Tt.userid,qt=Object(a.useState)("none"),Gt=Object(h.a)(qt,2),nr=Gt[0],cr=Gt[1],st=Object(a.useState)("none"),Lr=Object(h.a)(st,2),Fr=Lr[0],Cr=Lr[1];function rr(St){return Et.apply(this,arguments)}function Et(){return Et=Object(o.a)(r.a.mark(function St(xt){var Jt;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:if(!(xt==="1")){dr.next=6;break}return dr.next=3,yr({type:"competitions/Authentication"});case 3:Jt=dr.sent,dr.next=9;break;case 6:return dr.next=8,yr({type:"competitions/Professional"});case 8:Jt=dr.sent;case 9:Jt.status===0&&u.b.info("\u64A4\u9500\u6210\u529F");case 10:case"end":return dr.stop()}},St)})),Et.apply(this,arguments)}return t.a.createElement("div",null,t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u5B9E\u540D\u4FE1\u606F"),(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"):null,(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px",color:"#0152d9",cursor:"pointer"},onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1"):null),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",null,"\u59D3\u540D\uFF1A",t.a.createElement("span",null,Dt==null?void 0:Dt.name),(Dt==null?void 0:Dt.authentication)==="uncertified"?null:(Dt==null?void 0:Dt.authentication)==="applying"?t.a.createElement("span",null,t.a.createElement("span",null,"\u5F85\u5BA1\u6838"),t.a.createElement(_.a,{type:"primary",onClick:function(){return rr("1")},ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):t.a.createElement("span",{style:{color:"#6ec76e"}},t.a.createElement("span",{className:"iconfont icon-wancheng font-14 ml20"})," \u5DF2\u8BA4\u8BC1")),t.a.createElement("p",null,"\u6027\u522B\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.gender)===0?"\u7537":"\u5973"))),t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u804C\u4E1A\u4FE1\u606F"),(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"):null,(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px",color:"#0152d9"},onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1"):null),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",null,"\u804C\u4E1A\uFF1A",t.a.createElement("span",null,Dt&&Dt.identity&&se[Dt.identity]),(Dt==null?void 0:Dt.authentication)==="uncertified"?null:(Dt==null?void 0:Dt.authentication)==="applying"?t.a.createElement("span",null,t.a.createElement("span",null,"\u5F85\u5BA1\u6838"),t.a.createElement(_.a,{type:"primary",onClick:function(){return rr("2")},ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):t.a.createElement("span",{style:{color:"#6ec76e"}},t.a.createElement("span",{className:"iconfont icon-wancheng font-12 ml20"}),t.a.createElement("span",null,"\u5DF2\u8BA4\u8BC1"),t.a.createElement(_.a,{type:"primary",onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"}},"\u91CD\u65B0\u8BA4\u8BC1"))),t.a.createElement("p",null,"\u5B66\u53F7\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.student_id)||"--")),t.a.createElement("p",null,"\u5B66\u6821\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.school_name)||"--")),t.a.createElement("p",null,"\u9662\u7CFB\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.department_name)||"--"))),t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u8054\u7CFB\u65B9\u5F0F")),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u624B\u673A\u53F7\uFF1A"),t.a.createElement("span",{style:{width:"150px"}},(Dt==null?void 0:Dt.phone)||"--"),nr==="none"?t.a.createElement("span",{style:{color:"#0152d9",marginLeft:"20px",cursor:"pointer"},onClick:function(){cr("block")}},"\u66F4\u6362"):null),t.a.createElement($,{type:3,dispatch:yr,userid:Dt==null?void 0:Dt.id,isshow:nr,setPhoneshow:cr,setEmailshow:Cr}),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"Email\uFF1A"),t.a.createElement("span",{style:{width:"150px"}},(Dt==null?void 0:Dt.mail)||"--"),Fr==="none"?t.a.createElement("span",{style:{color:"#0152d9",marginLeft:"20px",cursor:"pointer"},onClick:function(){Cr("block")}},"\u66F4\u6362"):null),t.a.createElement($,{type:4,dispatch:yr,userid:Dt==null?void 0:Dt.id,isshow:Fr,setEmailshow:Cr,setPhoneshow:cr})),At!=null&&At.leader&&At!==null&&At!==void 0&&At.teams&&At!==null&&At!==void 0&&(it=At.teams[0])!==null&&it!==void 0&&(mt=it.bank_account)!==null&&mt!==void 0&&mt.bank?t.a.createElement("p",null,t.a.createElement("span",{style:{fontSize:"16px"}},"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),t.a.createElement("span",{style:{fontSize:"12px",marginLeft:"20px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")):t.a.createElement("div",null,t.a.createElement("p",null,t.a.createElement("span",{style:{fontSize:"16px"}},"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),t.a.createElement("span",{style:{fontSize:"12px",marginLeft:"20px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")),t.a.createElement(de,{dispatch:yr,userid:tr})),At!=null&&At.leader?t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u5F00\u6237\u884C\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Ct=At.teams[0])===null||Ct===void 0||((It=Ct.bank_account)===null||It===void 0))?void 0:It.bank)||"--")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u652F\u884C\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Pt=At.teams[0])===null||Pt===void 0||((Ht=Pt.bank_account)===null||Ht===void 0))?void 0:Ht.second_bank)||"--")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u8D26\u53F7\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Wt=At.teams[0])===null||Wt===void 0||((dt=Wt.bank_account)===null||dt===void 0))?void 0:dt.card_no)||"--"))):null,t.a.createElement(Sn,{Scoid:Dt==null?void 0:Dt.school_id}),t.a.createElement(un,null))}var Rt=Ke,Vt=ge.a.TabPane;function Er(Tt){var it=Tt.Prize,mt=Tt.Accounts,Ct=Tt.getAccounts,It=Tt.dispatch,Pt=Tt.userid;return t.a.createElement("div",{className:"fr"},t.a.createElement("div",{className:"mb100 "},t.a.createElement(ge.a,{defaultActiveKey:"1",onChange:function(Wt){Wt==="2"&&Ct()}},t.a.createElement(Vt,{tab:"\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D",key:"1"},t.a.createElement(ke,{Prize:it})),t.a.createElement(Vt,{tab:"\u5B8C\u5584\u4E2A\u4EBA\u4FE1\u606F",key:"2"},t.a.createElement(Rt,{userid:Pt,dispatch:It,Prize:it,Accounts:mt})))))}var Lt=Er,zr=D("xKgJ"),Br=D("wd/R"),En=D.n(Br),ui=ge.a.TabPane;function Ei(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.ChartRules,dt=Tt.ItemData,At=Tt.getCharts,Dt=Tt.Selectkey,yr=Tt.HeaderDetail,tr=Tt.getChartRules,qt=Tt.userinfo,Gt=Tt.Editable,nr=Tt.dispatch,cr=Tt.StaffDetail,st=Object(a.useState)(!1),Lr=Object(h.a)(st,2),Fr=Lr[0],Cr=Lr[1],rr=Object(a.useState)(""),Et=Object(h.a)(rr,2),St=Et[0],xt=Et[1],Jt=Object(a.useState)(!0),pr=Object(h.a)(Jt,2),dr=pr[0],fr=pr[1],Dr=Object(a.useState)(),an=Object(h.a)(Dr,2),qe=an[0],sr=an[1],Nr=Object(a.useState)(),rn=Object(h.a)(Nr,2),xr=rn[0],br=rn[1],Pr=Object(w.i)(),Ft=Pr.identifier;Object(a.useEffect)(function(){if(dr){var vt,yt,zt,Mt,Mr=Wt==null||((vt=Wt.stages)===null||vt===void 0)?void 0:vt[0];sr(Mr);var cn=Wt==null||((yt=Wt.stages)===null||yt===void 0||((zt=yt[0])===null||zt===void 0||((Mt=zt.children)===null||Mt===void 0)))?void 0:Mt[0];if(br(cn),Mr!=null&&Mr.id){var fn,kr,on;At(Mr==null?void 0:Mr.id),xt(((fn=Wt.rule_contents)===null||fn===void 0||((kr=fn.filter(function(yn){return parseInt(yn.competition_stage_id)===parseInt(Mr==null?void 0:Mr.id)}))===null||kr===void 0||((on=kr[0])===null||on===void 0))?void 0:on.content)||"")}else{var Ur,gn,Vr;At(0),xt(((Ur=Wt.rule_contents)===null||Ur===void 0||((gn=Ur.filter(function(yn){return parseInt(yn.competition_stage_id)===0}))===null||gn===void 0||((Vr=gn[0])===null||Vr===void 0))?void 0:Vr.content)||"")}}},[Wt]);function Zt(){return wr.apply(this,arguments)}function wr(){return wr=Object(o.a)(r.a.mark(function vt(){var yt,zt,Mt,Mr,cn,fn,kr,on,Ur;return r.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:if(St){Vr.next=3;break}return u.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Vr.abrupt("return");case 3:if(fr(!1),yt=qe==null?void 0:qe.id,!yt){Vr.next=12;break}return Vr.next=8,Object(ne.a)("/api/competitions/".concat(Ft,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:St,md_content_id:(zt=Wt.rule_contents)===null||zt===void 0||((Mt=zt.filter(function(yn){return parseInt(yn.competition_stage_id)===parseInt(yt)}))===null||Mt===void 0||((Mr=Mt[0])===null||Mr===void 0))?void 0:Mr.id,stage_id:qe==null?void 0:qe.id}});case 8:cn=Vr.sent,cn.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Cr(!1),tr()),Vr.next=16;break;case 12:return Vr.next=14,Object(ne.a)("/api/competitions/".concat(Ft,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:St,md_content_id:(fn=Wt.rule_contents)===null||fn===void 0||((kr=fn.filter(function(yn){return parseInt(yn.competition_stage_id)===0}))===null||kr===void 0||((on=kr[0])===null||on===void 0))?void 0:on.id,stage_id:qe==null?void 0:qe.id}});case 14:Ur=Vr.sent,Ur.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Cr(!1),tr());case 16:case"end":return Vr.stop()}},vt)})),wr.apply(this,arguments)}var er=[{title:"request_id",dataIndex:"request_id",width:120,align:"center",key:"name",render:function(yt,zt,Mt){return t.a.createElement("span",null,yt)}},{title:"\u9644\u4EF6",dataIndex:"file_name",align:"center",width:150,key:"file_name",render:function(yt){return t.a.createElement(nt.a,{title:yt},t.a.createElement("span",{title:yt},yt&&(yt==null?void 0:yt.length)>=10?(yt==null?void 0:yt.substr(0,10))+"...":yt||"--"))}},{title:"\u63D0\u4EA4\u4EBA",dataIndex:"user_name",key:"user_name",width:100,render:function(yt){return t.a.createElement("span",{title:yt},yt&&(yt==null?void 0:yt.length)>=6?(yt==null?void 0:yt.substr(0,6))+"...":yt||"--")}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"center"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:50,render:function(yt){return t.a.createElement("span",null,yt===1?"\u8BA1\u7B97\u4E2D":yt===2?"\u5B8C\u6210":yt===0?"\u5F85\u8BA1\u7B97":yt===3&&"\u9519\u8BEF")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68071",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(yt){return t.a.createElement("span",null,yt||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68072",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){return(yt==null?void 0:yt.length)>0?yt==null?void 0:yt.map(function(zt,Mt){return t.a.createElement("span",null,zt==null?void 0:zt.name,"\uFF1A",zt==null?void 0:zt.value," ",t.a.createElement("br",null))}):t.a.createElement("span",null,"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"mask accuary",dataIndex:"data_ranking",key:"data_ranking",align:"left",render:function(yt){return t.a.createElement("span",null,yt||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"\u7F8E\u5B66\u8BC4\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="score"}))===null||zt===void 0)?void 0:zt.value)||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"FID",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="fid"}))===null||zt===void 0)?void 0:zt.value)||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="total_score"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Car",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(yt){return t.a.createElement("span",null,yt||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Coffee",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Coffee"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Easyship",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Easyship"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scar",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Scar"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scarf",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Scarf"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Total"}))===null||zt===void 0)?void 0:zt.value)||"--")}},{title:"\u64CD\u4F5C",dataIndex:"result_url",width:50,key:"result_url",render:function(yt){return t.a.createElement("a",{href:yt,target:"_blank",download:"\u9644\u4EF6"},"\u4E0B\u8F7D")}}].filter(function(vt){return!!vt});return t.a.createElement("div",null,(Wt==null||((it=Wt.stages)===null||it===void 0)?void 0:it.length)>0?null:t.a.createElement(Je,null),(Wt==null||((mt=Wt.stages)===null||mt===void 0)?void 0:mt.length)>0&&t.a.createElement(ge.a,{animated:!0,tabBarExtraContent:qt!=null&&qt.admin||qt!=null&&qt.business||Gt?t.a.createElement(_.a,{onClick:function(){Cr(!0)}},"\u7F16\u8F91"):cr.enrolled&&(qe==null?void 0:qe.start_time)&&(qe==null?void 0:qe.end_time)&&t.a.createElement("span",null,"\u63D0\u4EA4\u65F6\u95F4\uFF1A",En()(qe==null?void 0:qe.start_time).format("YYYY-MM-DD HH:mm:ss"),"\u81F3",En()(qe==null?void 0:qe.end_time).format("YYYY-MM-DD HH:mm:ss"),t.a.createElement(_.a,{style:{marginLeft:"20px"},disabled:En()(qe==null?void 0:qe.start_time).unix()>En()(En()().format("YYYY-MM-DD HH:mm:s")).unix()||En()(En()().format("YYYY-MM-DD HH:mm:s")).unix()>En()(qe==null?void 0:qe.end_time).unix(),onClick:function(){nr({type:"shixunsDetail/setActionTabs",payload:{key:"md-tab",params:{value:(xr==null?void 0:xr.id)||(qe==null?void 0:qe.id),id:yr==null?void 0:yr.id}}})}},"\u63D0\u4EA4\u7ED3\u679C")),onChange:function(yt){var zt,Mt,Mr,cn,fn;Cr(!1);var kr=Wt==null||((zt=Wt.stages)===null||zt===void 0)?void 0:zt.filter(function(Ur){return parseInt(yt)===parseInt(Ur==null?void 0:Ur.id)})[0],on=kr==null||((Mt=kr.children)===null||Mt===void 0)?void 0:Mt[0];br(on),sr(kr),xt(((Mr=Wt.rule_contents)===null||Mr===void 0||((cn=Mr.filter(function(Ur){return parseInt(Ur.competition_stage_id)===parseInt(kr==null?void 0:kr.id)}))===null||cn===void 0||((fn=cn[0])===null||fn===void 0))?void 0:fn.content)||""),At((on==null?void 0:on.id)||yt)}},Wt&&Wt.stages.map(function(vt,yt){return t.a.createElement(ui,{tab:vt.name,key:vt.id===null?0:vt.id},Fr===!1&&Wt&&Wt.rule_contents.map(function(zt,Mt){if(vt.id===zt.competition_stage_id)return t.a.createElement(W.a,{key:Mt,value:zt.content===void 0||zt.content===null?"":zt.content});if(vt.id===null&&zt.competition_stage_id===0)return t.a.createElement(W.a,{key:Mt,value:zt.content===void 0||zt.content===null?"":zt.content})}))})),(qe==null||((Ct=qe.children)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{activeKey:(xr==null?void 0:xr.id)+"",onChange:function(yt){var zt,Mt=qe==null||((zt=qe.children)===null||zt===void 0)?void 0:zt.filter(function(Mr){return parseInt(yt)===parseInt(Mr==null?void 0:Mr.id)})[0];br(Mt),At(yt)}},qe==null||((It=qe.children)===null||It===void 0)?void 0:It.map(function(vt,yt){return t.a.createElement(ui,{tab:vt.name,key:vt.id===null?0:vt.id})})),Fr&&t.a.createElement("div",null,t.a.createElement(te.a,{defaultValue:St,onChange:function(yt){xt(yt)}}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(_.a,{style:{width:"90px"},type:"primary",onClick:function(){return Zt()}},"\u63D0\u4EA4"),t.a.createElement(_.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return Cr(!1)}},"\u53D6\u6D88"))),((Pt=yr.competition_modules.filter(function(vt){return vt.id===Dt}))===null||Pt===void 0||((Ht=Pt[0])===null||Ht===void 0)?void 0:Ht.show_leaderboard)&&t.a.createElement(Z.a,{dataSource:dt==null?void 0:dt.results,columns:er}))}var In=Ei,Li=D("DjyN"),qi=D("NUBc"),ni=ge.a.TabPane;function Ti(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.loading,dt=Tt.ChartRules,At=Tt.ItemData,Dt=Tt.getCharts,yr=Tt.Selectkey,tr=Tt.HeaderDetail,qt=Tt.getChartRules,Gt=Tt.userinfo,nr=Tt.Editable,cr=Tt.dispatch,st=Tt.StaffDetail,Lr=Object(a.useState)(!1),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)(""),St=Object(h.a)(Et,2),xt=St[0],Jt=St[1],pr=Object(a.useState)(!0),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)(),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(w.i)(),Zt=Ft.identifier,wr=Object(a.useState)({page:1,limit:10,sort:"desc"}),er=Object(h.a)(wr,2),vt=er[0],yt=er[1];Object(a.useEffect)(function(){var Mt;fr&&dt!==null&&dt!==void 0&&(Mt=dt.stages)!==null&&Mt!==void 0&&Mt[0]&&zt()},[dt==null||((it=dt.stages)===null||it===void 0)?void 0:it[0]]);var zt=function(){var Mt=Object(o.a)(r.a.mark(function Mr(){var cn,fn,kr,on,Ur,gn;return r.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return Ur=dt==null||((cn=dt.stages)===null||cn===void 0)?void 0:cn[0],Nr(Ur),gn=dt==null||((fn=dt.stages)===null||fn===void 0||((kr=fn[0])===null||kr===void 0||((on=kr.children)===null||on===void 0)))?void 0:on[0],Pr(gn),vt.id=(gn==null?void 0:gn.id)||(Ur==null?void 0:Ur.id),yt(Object(L.a)({},vt)),yn.next=7,Dt(Object(L.a)(Object(L.a)({},vt),{},{stage_id:vt.id}));case 7:case"end":return yn.stop()}},Mr)}));return function(){return Mt.apply(this,arguments)}}();return t.a.createElement("div",null,(dt==null||((mt=dt.stages)===null||mt===void 0)?void 0:mt.length)>0?null:t.a.createElement(Je,null),(dt==null||((Ct=dt.stages)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var Mt=Object(o.a)(r.a.mark(function Mr(cn){var fn,kr,on,Ur,gn,Vr,yn;return r.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return rr(!1),Vr=dt==null||((fn=dt.stages)===null||fn===void 0)?void 0:fn.filter(function(Ge){return parseInt(cn)===parseInt(Ge==null?void 0:Ge.id)})[0],yn=Vr==null||((kr=Vr.children)===null||kr===void 0)?void 0:kr[0],Pr(yn),Nr(Vr),Jt(((on=dt.rule_contents)===null||on===void 0||((Ur=on.filter(function(Ge){return parseInt(Ge.competition_stage_id)===parseInt(Vr==null?void 0:Vr.id)}))===null||Ur===void 0||((gn=Ur[0])===null||gn===void 0))?void 0:gn.content)||""),vt.page=1,vt.limit=10,vt.id=(yn==null?void 0:yn.id)||cn,yt(Object(L.a)({},vt)),Me.next=9,Dt(Object(L.a)({},vt));case 9:case"end":return Me.stop()}},Mr)}));return function(Mr){return Mt.apply(this,arguments)}}()},dt&&dt.stages.map(function(Mt,Mr){return t.a.createElement(ni,{tab:Mt.name,key:Mt.id===null?0:Mt.id})})),(sr==null||((It=sr.children)===null||It===void 0)?void 0:It.length)>0&&t.a.createElement(ge.a,{activeKey:(br==null?void 0:br.id)+"",onChange:function(){var Mt=Object(o.a)(r.a.mark(function Mr(cn){var fn,kr;return r.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:return kr=sr==null||((fn=sr.children)===null||fn===void 0)?void 0:fn.filter(function(gn){return parseInt(cn)===parseInt(gn==null?void 0:gn.id)})[0],Pr(kr),vt.page=1,vt.limit=10,vt.id=cn,yt(Object(L.a)({},vt)),Ur.next=5,Dt(Object(L.a)({},vt));case 5:case"end":return Ur.stop()}},Mr)}));return function(Mr){return Mt.apply(this,arguments)}}()},sr==null||((Pt=sr.children)===null||Pt===void 0)?void 0:Pt.map(function(Mt,Mr){return t.a.createElement(ni,{tab:Mt.name,key:Mt.id===null?0:Mt.id})})),t.a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),t.a.createElement("div",{style:{padding:"20px 30px"}},t.a.createElement("span",{style:{cursor:"pointer",marginRight:20},onClick:function(){vt.page=1,vt.sort=vt.sort==="desc"?"asc":"desc",yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}},"\u6309\u63D0\u4EA4\u65F6\u95F4",vt.sort==="asc"?"\u6B63":"\u5012","\u5E8F\u6392\u5E8F ",t.a.createElement("i",{className:"iconfont font14 ".concat(vt.sort==="asc"?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")}))," ",t.a.createElement(U.a.Search,{onSearch:function(Mr){vt.page=1,vt.search=Mr,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))},style:{width:"82%"},placeholder:"\u8F93\u5165\u4EBA\u5458/\u6218\u961F\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),t.a.createElement(d.a,{spinning:Wt},At==null||((Ht=At.results)===null||Ht===void 0)?void 0:Ht.map(function(Mt,Mr){return t.a.createElement("div",{style:{border:"1px solid #E3EFFC",height:100,borderRadius:"2px 2px 0px 0px",marginTop:Mr===0?14:30}},t.a.createElement("div",{style:{height:60,padding:10,display:"flex",alignItems:"center"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/"+(Mt==null?void 0:Mt.image_url),style:{width:40,height:40,borderRadius:"50%"}}),t.a.createElement("div",{style:{marginLeft:10}},t.a.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},Mt==null?void 0:Mt.user_name),t.a.createElement("span",{style:{color:"#999999",fontWeight:400,fontSize:"14px",marginLeft:60}},"\u6240\u5C5E\u6218\u961F",t.a.createElement("span",{style:{marginLeft:10,color:"#333"}},(Mt==null?void 0:Mt.team_name)||"- -")),t.a.createElement("span",{style:{color:"#333333",fontWeight:400,fontSize:"14px",marginLeft:40}},"\u5B66\u6821 ",t.a.createElement("span",{style:{marginLeft:10,color:"#333"}},(Mt==null?void 0:Mt.school_name)||"- -")))),t.a.createElement("div",{style:{background:"#EEF2F8",height:40,borderRadius:"0px 0px 2px 2px",paddingLeft:60,paddingRight:40,display:"flex",alignItems:"center",justifyContent:"space-between"}},t.a.createElement("div",null,t.a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u63D0\u4EA4\u65F6\u95F4\uFF1A",Mt==null?void 0:Mt.created_at),t.a.createElement("span",{style:{color:"#666666",fontSize:"12px",margin:"0px 40px"}},"\u6D88\u8017\u5185\u5B58\uFF1A",(Mt==null?void 0:Mt.ts_mem)||"- -","MB"),t.a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u4EE3\u7801\u6267\u884C\u65F6\u95F4\uFF1A",(Mt==null?void 0:Mt.ts_time)||"- -","\u79D2")),t.a.createElement("a",{style:{display:"flex",alignItems:"center"},href:"/tasks/".concat(Mt==null?void 0:Mt.game_identifier),target:"_blank"},t.a.createElement("i",{className:"iconfont icon-chakandaima",style:{marginRight:4}}),t.a.createElement("span",{style:{lineHeight:"14px"}},"\u67E5\u770B\u4EE3\u7801"))))})),t.a.createElement(qi.a,{total:At==null?void 0:At.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:vt.page,onChange:function(Mr,cn){vt.page=Mr,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}})))}var xi=Ti,Fi=function(it){var mt=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Ct=["","\u5341","\u767E","\u5343","\u4E07"];it=parseInt(it);var It=function(dt){for(var At=dt.toString().split("").reverse(),Dt="",yr=0;yr0&&At[yr]==0&&At[yr-1]==0?"":mt[At[yr]]+(At[yr]==0?Ct[0]:Ct[yr]))+Dt;return Dt},Pt=Math.floor(it/1e4),Ht=it%1e4;return Ht.toString().length<4&&(Ht="0"+Ht),Pt?It(Pt)+"\u4E07"+It(Ht):It(it)};function Ci(Tt){var it,mt=Tt.item,Ct=Tt.index,It=Tt.StaffDetail,Pt=Object(a.useState)(!0),Ht=Object(h.a)(Pt,2),Wt=Ht[0],dt=Ht[1],At=Object(a.useState)(!0),Dt=Object(h.a)(At,2),yr=Dt[0],tr=Dt[1],qt=Object(a.useRef)();return t.a.createElement("div",{style:{border:"1px solid #E3EFFC",borderRadius:"2px",marginTop:20}},t.a.createElement("div",{style:{padding:10,display:"flex",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/"+(mt==null?void 0:mt.pic),style:{width:220,height:130,borderRadius:"4px"}}),t.a.createElement("div",{style:{marginLeft:20,width:"75%"}},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},"\u4EFB\u52A1",Fi(Ct+1),"\uFF1A",t.a.createElement("span",{style:{color:"#333",fontWeight:"400"}},mt==null?void 0:mt.name)),t.a.createElement("span",{style:{color:"#9096A3"}},"\u5173\u5361",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},mt==null?void 0:mt.challenges_count)," ")),t.a.createElement("div",{ref:qt},t.a.createElement(W.a,{style:{maxHeight:Wt&&100},value:mt==null?void 0:mt.description})),t.a.createElement("div",{style:{textAlign:"center",color:"#145DFF",cursor:"pointer"},onClick:function(){dt(!Wt)}},Wt?"\u9605\u8BFB\u5168\u6587 ":"\u6536\u8D77\u5168\u6587 ",t.a.createElement("i",{className:"iconfont font14 ".concat(Wt?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})),t.a.createElement("div",{style:{marginTop:14,maxHeight:yr&&58,overflow:"hidden"}},mt==null||((it=mt.challenges)===null||it===void 0)?void 0:it.map(function(Gt,nr){return t.a.createElement("div",{style:{marginTop:nr===0?0:12}},t.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}),t.a.createElement("span",{style:{marginLeft:10}},"\u7B2C",nr+1,"\u5173",Gt==null?void 0:Gt.name))})),t.a.createElement("div",{style:{position:"absolute",bottom:14,right:10,color:"#145DFF",cursor:"pointer"}},t.a.createElement("span",{onClick:function(){tr(!yr)}},yr?"\u5C55\u5F00":"\u6536\u8D77"," ",t.a.createElement("i",{className:"iconfont font14 ".concat(yr?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")}))," ",(It==null?void 0:It.enrolled)&&t.a.createElement(_.a,{onClick:function(){window.open("/shixuns/".concat(mt==null?void 0:mt.identifier,"/challenges"))},style:{marginLeft:30},type:"primary"},"\u5F00\u542F\u6311\u6218")))))}var Gi=Ci,Mi=ge.a.TabPane;function oa(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.loading,dt=Tt.ChartRules,At=Tt.ItemData,Dt=Tt.getCharts,yr=Tt.Selectkey,tr=Tt.HeaderDetail,qt=Tt.getChartRules,Gt=Tt.userinfo,nr=Tt.Editable,cr=Tt.dispatch,st=Tt.StaffDetail,Lr=Object(a.useState)(!1),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)(""),St=Object(h.a)(Et,2),xt=St[0],Jt=St[1],pr=Object(a.useState)(!0),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)(),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(w.i)(),Zt=Ft.identifier,wr=Object(a.useState)({page:1,limit:10}),er=Object(h.a)(wr,2),vt=er[0],yt=er[1],zt=Object(a.useState)(),Mt=Object(h.a)(zt,2),Mr=Mt[0],cn=Mt[1];Object(a.useEffect)(function(){var kr;fr&&dt!==null&&dt!==void 0&&(kr=dt.stages)!==null&&kr!==void 0&&kr[0]&&fn()},[dt==null||((it=dt.stages)===null||it===void 0)?void 0:it[0]]);var fn=function(){var kr=Object(o.a)(r.a.mark(function on(){var Ur,gn,Vr,yn,ei,Me;return r.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return ei=dt==null||((Ur=dt.stages)===null||Ur===void 0)?void 0:Ur[0],Nr(ei),Me=dt==null||((gn=dt.stages)===null||gn===void 0||((Vr=gn[0])===null||Vr===void 0||((yn=Vr.children)===null||yn===void 0)))?void 0:yn[0],Pr(Me),vt.id=(Me==null?void 0:Me.id)||(ei==null?void 0:ei.id),yt(Object(L.a)({},vt)),Ye.next=7,Dt(Object(L.a)(Object(L.a)({},vt),{},{stage_id:vt.id}));case 7:case"end":return Ye.stop()}},on)}));return function(){return kr.apply(this,arguments)}}();return t.a.createElement("div",null,(dt==null||((mt=dt.stages)===null||mt===void 0)?void 0:mt.length)>0?null:t.a.createElement(Je,null),(dt==null||((Ct=dt.stages)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var kr=Object(o.a)(r.a.mark(function on(Ur){var gn,Vr,yn,ei,Me,Ge,Ye;return r.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return rr(!1),Ge=dt==null||((gn=dt.stages)===null||gn===void 0)?void 0:gn.filter(function(Pe){return parseInt(Ur)===parseInt(Pe==null?void 0:Pe.id)})[0],Ye=Ge==null||((Vr=Ge.children)===null||Vr===void 0)?void 0:Vr[0],Pr(Ye),Nr(Ge),Jt(((yn=dt.rule_contents)===null||yn===void 0||((ei=yn.filter(function(Pe){return parseInt(Pe.competition_stage_id)===parseInt(Ge==null?void 0:Ge.id)}))===null||ei===void 0||((Me=ei[0])===null||Me===void 0))?void 0:Me.content)||""),vt.page=1,vt.limit=10,vt.id=(Ye==null?void 0:Ye.id)||Ur,yt(Object(L.a)({},vt)),Ee.next=9,Dt(Object(L.a)({},vt));case 9:case"end":return Ee.stop()}},on)}));return function(on){return kr.apply(this,arguments)}}()},dt&&dt.stages.map(function(kr,on){return t.a.createElement(Mi,{tab:kr.name,key:kr.id===null?0:kr.id})})),(sr==null||((It=sr.children)===null||It===void 0)?void 0:It.length)>0&&t.a.createElement(ge.a,{activeKey:(br==null?void 0:br.id)+"",tabBarStyle:{height:65,marginLeft:35,marginRight:30},onChange:function(){var kr=Object(o.a)(r.a.mark(function on(Ur){var gn,Vr;return r.a.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return Vr=sr==null||((gn=sr.children)===null||gn===void 0)?void 0:gn.filter(function(Me){return parseInt(Ur)===parseInt(Me==null?void 0:Me.id)})[0],Pr(Vr),vt.page=1,vt.limit=10,vt.id=Ur,yt(Object(L.a)({},vt)),ei.next=5,Dt(Object(L.a)({},vt));case 5:case"end":return ei.stop()}},on)}));return function(on){return kr.apply(this,arguments)}}()},sr==null||((Pt=sr.children)===null||Pt===void 0)?void 0:Pt.map(function(kr,on){return t.a.createElement(Mi,{tab:kr.name,key:kr.id===null?0:kr.id})})),t.a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),t.a.createElement("div",{style:{padding:"20px 30px"}},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("span",{style:{color:"#9096A3"}},"\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},At==null?void 0:At.start_time,"~",At==null?void 0:At.end_time)),t.a.createElement("span",{style:{color:"#9096A3"}},"\u6210\u7EE9\u6765\u6E90",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},(At==null?void 0:At.score_source)===0?"\u7ECF\u9A8C\u503C":"\u9884\u6D4B\u51C6\u786E\u7387")," ")),t.a.createElement(d.a,{spinning:Wt},At==null||((Ht=At.results)===null||Ht===void 0)?void 0:Ht.map(function(kr,on){return t.a.createElement(Gi,{StaffDetail:st,item:kr,index:on})})),t.a.createElement(qi.a,{total:At==null?void 0:At.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:vt.page,onChange:function(on,Ur){vt.page=on,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}})))}var sa=oa,Ii=D("UfjD"),qn=D("qHvr"),Vi=function(it){var mt,Ct,It,Pt,Ht,Wt,dt,At,Dt=it.globalSetting,yr=it.loading,tr=it.dispatch,qt=it.user,Gt=Object(m.a)(it,["globalSetting","loading","dispatch","user"]),nr=Object(a.useState)({avatar_url:""}),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)([]),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],St=Object(w.i)(),xt=St.identifier,Jt=Object(a.useState)([]),pr=Object(h.a)(Jt,2),dr=pr[0],fr=pr[1],Dr=Object(a.useState)(!0),an=Object(h.a)(Dr,2),qe=an[0],sr=an[1],Nr=Object(a.useState)([]),rn=Object(h.a)(Nr,2),xr=rn[0],br=rn[1],Pr=Object(a.useState)([]),Ft=Object(h.a)(Pr,2),Zt=Ft[0],wr=Ft[1],er=Object(a.useState)(!1),vt=Object(h.a)(er,2),yt=vt[0],zt=vt[1],Mt=Object(a.useState)(!1),Mr=Object(h.a)(Mt,2),cn=Mr[0],fn=Mr[1],kr=Object(a.useState)(!1),on=Object(h.a)(kr,2),Ur=on[0],gn=on[1],Vr=Object(a.useState)([]),yn=Object(h.a)(Vr,2),ei=yn[0],Me=yn[1],Ge=Object(a.useState)([]),Ye=Object(h.a)(Ge,2),Fe=Ye[0],Ee=Ye[1],Pe=Object(a.useState)([]),Se=Object(h.a)(Pe,2),je=Se[0],ze=Se[1],Ve=Object(a.useState)(!1),We=Object(h.a)(Ve,2),Ze=We[0],pt=We[1],kt=Object(a.useState)([]),jt=Object(h.a)(kt,2),Yt=jt[0],Ir=jt[1],Qr=Object(a.useState)(),$r=Object(h.a)(Qr,2),nn=$r[0],Kr=$r[1],sn=Object(a.useState)(!0),ln=Object(h.a)(sn,2),xn=ln[0],hn=ln[1],jn=Object(a.useState)(!1),pn=Object(h.a)(jn,2),jr=pn[0],Wr=pn[1],dn=Object(a.useState)(!1),bn=Object(h.a)(dn,2),Tr=bn[0],_n=bn[1],Yn=Object(a.useState)(!1),Rn=Object(h.a)(Yn,2),Wn=Rn[0],Dn=Rn[1],ti=Object(a.useState)(!1),ci=Object(h.a)(ti,2),Jn=ci[0],gi=ci[1],Xi=Object(a.useState)(!1),Oi=Object(h.a)(Xi,2),di=Oi[0],Hn=Oi[1],zn=Object(a.useState)(!0),Qn=Object(h.a)(zn,2),Vn=Qn[0],ii=Qn[1],Di=Object(w.h)(),ra=Object(a.useRef)(null);Object(a.useEffect)(function(){xt&&Mn(),Object(Ut.T)("\u7ADE\u8D5B")},[xt]);function Mn(){return Ui.apply(this,arguments)}function Ui(){return Ui=Object(o.a)(r.a.mark(function _r(){var Or;return r.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.t0=Et,Tn.next=3,tr({type:"competitions/getStaff",payload:{identifier:xt}});case 3:return Tn.t1=Tn.sent,(0,Tn.t0)(Tn.t1),Tn.next=7,tr({type:"competitions/getHeader",payload:{identifier:xt}});case 7:Or=Tn.sent,Lr(Or),Object(Ut.T)((Or==null?void 0:Or.name)||"\u7ADE\u8D5B");case 10:case"end":return Tn.stop()}},_r)})),Ui.apply(this,arguments)}Object(a.useEffect)(function(){var _r;Kr(parseInt(Di==null||((_r=Di.query)===null||_r===void 0)?void 0:_r.type)===1)},[Di]),Object(a.useEffect)(function(){var _r;if((st==null||((_r=st.competition_modules)===null||_r===void 0)?void 0:_r.length)>0){var Or,lr;if((Di==null||((Or=Di.query)===null||Or===void 0)?void 0:Or.active)==="\u8D5B\u9898\u53D1\u5E03"){var Tn,vr=st==null||((Tn=st.competition_modules)===null||Tn===void 0)?void 0:Tn.find(function(pa){return pa.name==="\u8D5B\u9898\u53D1\u5E03"});if(vr){Bi(vr);return}}Bi(st==null||((lr=st.competition_modules)===null||lr===void 0)?void 0:lr[0])}},[st]);function Bi(_r){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(o.a)(r.a.mark(function _r(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(ze(Or.id),je=Or.id,br(Or),!(Or.module_type==="entrance")){vr.next=9;break}return vr.next=6,tr({type:"competitions/getItem",payload:{url:Or.module_url,module_type:"entrance"}});case 6:lr=vr.sent,vr.next=12;break;case 9:return vr.next=11,tr({type:"competitions/getItem",payload:{url:Or.module_url}});case 11:lr=vr.sent;case 12:zt(!1),gn(!1),pt(!1),fr(lr),Wr(!1),_n(!1),wr(Or.module_type),Or.module_type==="chart"?(zt(!0),sr(!1),Ba()):Or.module_type==="certificate"?(gn(!0),zt(!1),sr(!1),ba()):Or.module_type==="md_tab"?(pt(!0),sr(!1),localStorage.setItem("issee","2"),zt(!1),gn(!1),ca()):Or.module_type==="md_shixun"?(Wr(!0),sr(!1),ca()):Or.module_type==="entrance"?(_n(!0),sr(!1),ca()):(sr(!0),localStorage.setItem("issee","1"));case 20:case"end":return vr.stop()}},_r)})),Fn.apply(this,arguments)}function Pn(_r,Or,lr){return ai.apply(this,arguments)}function ai(){return ai=Object(o.a)(r.a.mark(function _r(Or,lr,Tn){var vr,pa;return r.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(Or.stopPropagation(),Object(fe.e)(tr)){Kn.next=3;break}return Kn.abrupt("return");case 3:if(!(st!=null&&st.is_authentication&&!(qt!=null&&(vr=qt.userInfo)!==null&&vr!==void 0&&vr.authentication))){Kn.next=6;break}return tr({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),Kn.abrupt("return");case 6:if(!(st!=null&&st.enroll_url)){Kn.next=9;break}return Object(Ut.O)(st==null?void 0:st.enroll_url),Kn.abrupt("return");case 9:if(!(Tn==="ismodel")){Kn.next=23;break}if(!(lr.member_of_course===!0)){Kn.next=14;break}Object(Ut.O)("/classrooms/".concat(lr.course_id)),Kn.next=21;break;case 14:if(lr.invite_code){Kn.next=17;break}return u.b.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C"),Kn.abrupt("return");case 17:return Kn.next=19,tr({type:"competitions/addApplytojoincourse",payload:{invite_code:lr.invite_code,student:1}});case 19:pa=Kn.sent,pa.status===0&&Object(Ut.O)("/classrooms/".concat(lr.course_id));case 21:Kn.next=27;break;case 23:if(!(rr.enrolled===!0)){Kn.next=26;break}return Object(Ut.O)(Tn),Kn.abrupt("return");case 26:Dn(!0);case 27:case"end":return Kn.stop()}},_r)})),ai.apply(this,arguments)}function Ba(){return wa.apply(this,arguments)}function wa(){return wa=Object(o.a)(r.a.mark(function _r(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.t0=fn,lr.next=3,tr({type:"competitions/ChartRules",payload:{identifier:xt}});case 3:return lr.t1=lr.sent,lr.next=6,(0,lr.t0)(lr.t1);case 6:case"end":return lr.stop()}},_r)})),wa.apply(this,arguments)}function la(_r){return ua.apply(this,arguments)}function ua(){return ua=Object(o.a)(r.a.mark(function _r(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Charts",payload:{identifier:xt,stage_id:Or}});case 2:lr=vr.sent,fr(lr);case 4:case"end":return vr.stop()}},_r)})),ua.apply(this,arguments)}function ka(_r){return Sa.apply(this,arguments)}function Sa(){return Sa=Object(o.a)(r.a.mark(function _r(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return hn(!0),vr.next=3,tr({type:"competitions/Results",payload:Object(L.a)({identifier:xt,stage_id:Or==null?void 0:Or.id},Or)});case 3:lr=vr.sent,fr(lr),hn(!1);case 6:case"end":return vr.stop()}},_r)})),Sa.apply(this,arguments)}function La(_r){return Wa.apply(this,arguments)}function Wa(){return Wa=Object(o.a)(r.a.mark(function _r(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return hn(!0),vr.next=3,tr({type:"competitions/Results",payload:Object(L.a)({identifier:xt,stage_id:Or==null?void 0:Or.id,module_type:"entrance"},Or)});case 3:lr=vr.sent,fr(lr),hn(!1);case 6:case"end":return vr.stop()}},_r)})),Wa.apply(this,arguments)}function Xa(_r){return Ma.apply(this,arguments)}function Ma(){return Ma=Object(o.a)(r.a.mark(function _r(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Results",payload:{identifier:xt,stage_id:Or}});case 2:if(lr=vr.sent,!(localStorage.getItem("issee")==="1")){vr.next=5;break}return vr.abrupt("return");case 5:fr(lr);case 6:case"end":return vr.stop()}},_r)})),Ma.apply(this,arguments)}function ca(){return _a.apply(this,arguments)}function _a(){return _a=Object(o.a)(r.a.mark(function _r(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.t0=Ir,lr.next=3,tr({type:"competitions/TabResults",payload:{identifier:xt,competition_module_id:je}});case 3:lr.t1=lr.sent,(0,lr.t0)(lr.t1);case 5:case"end":return lr.stop()}},_r)})),_a.apply(this,arguments)}function ba(){return da.apply(this,arguments)}function da(){return da=Object(o.a)(r.a.mark(function _r(){var Or,lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Prize",payload:{identifier:xt,user_id:qt==null||((Or=qt.userInfo)===null||Or===void 0)?void 0:Or.user_id}});case 2:lr=vr.sent,Me(lr);case 4:case"end":return vr.stop()}},_r)})),da.apply(this,arguments)}function co(){return Ea.apply(this,arguments)}function Ea(){return Ea=Object(o.a)(r.a.mark(function _r(){var Or,lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Accounts",payload:{id:qt==null||((Or=qt.userInfo)===null||Or===void 0)?void 0:Or.user_id}});case 2:lr=vr.sent,Ee(lr);case 4:case"end":return vr.stop()}},_r)})),Ea.apply(this,arguments)}function Ta(_r){return fa.apply(this,arguments)}function fa(){return fa=Object(o.a)(r.a.mark(function _r(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(Vn){vr.next=2;break}return vr.abrupt("return");case 2:if(ii(!1),!ha()){vr.next=5;break}return vr.abrupt("return");case 5:return vr.next=7,tr({type:"competitions/AddTeam",payload:{identifier:xt,name:Or}});case 7:lr=vr.sent,lr&&lr.status===0?(u.b.info("\u521B\u5EFA\u6218\u961F\u6210\u529F"),Mn(),gi(!1)):ii(!0);case 9:case"end":return vr.stop()}},_r)})),fa.apply(this,arguments)}function ha(){var _r,Or;if(qt!=null&&(_r=qt.userInfo)!==null&&_r!==void 0&&_r.is_teacher){var lr;if(rr!=null&&(lr=rr.teacher_staff)!==null&&lr!==void 0&&lr.mutiple_limited&&(rr!=null&&rr.enrolled))return u.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),ii(!0),!0}else{var Tn;if(rr!=null&&(Tn=rr.member_staff)!==null&&Tn!==void 0&&Tn.mutiple_limited&&(rr!=null&&rr.enrolled))return u.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),ii(!0),!0}if(rr!=null&&rr.enroll_ended)return u.b.info("\u62A5\u540D\u5DF2\u622A\u6B62\uFF0C\u65E0\u9700\u62A5\u540D"),ii(!0),!0;if(qt!=null&&(Or=qt.userInfo)!==null&&Or!==void 0&&Or.is_teacher){if(!rr.teacher_staff)return u.b.info("\u5DF2\u7981\u6B62\u8001\u5E08\u62A5\u540D"),ii(!0),!0}else if(!(rr!=null&&rr.member_staff))return u.b.info("\u5DF2\u7981\u6B62\u5B66\u751F\u62A5\u540D"),ii(!0),!0}function $i(_r){return na.apply(this,arguments)}function na(){return na=Object(o.a)(r.a.mark(function _r(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(Vn){vr.next=2;break}return vr.abrupt("return");case 2:if(!ha()){vr.next=4;break}return vr.abrupt("return");case 4:return ii(!1),vr.next=7,tr({type:"competitions/JoinTeam",payload:{identifier:xt,invite_code:Or}});case 7:lr=vr.sent,lr&&lr.status===0?(u.b.info("\u52A0\u5165\u6218\u961F\u6210\u529F"),Hn(!1),ii(!0),Mn()):ii(!0);case 9:case"end":return vr.stop()}},_r)})),na.apply(this,arguments)}return t.a.createElement("div",{className:"edu-container minH500"},t.a.createElement(n.a,{className:"mt10",separator:">"},t.a.createElement(n.a.Item,null,t.a.createElement(E.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),t.a.createElement(n.a.Item,null,st.name,st.sub_title?"-"+st.sub_title:null)),t.a.createElement("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative",padding:"20px 12px"}},t.a.createElement(d.a,{spinning:yr.effects["competitions/getHeader"]},t.a.createElement("div",{style:{height:"355px",width:"800px"}},(st==null?void 0:st.avatar_url)&&(st==null?void 0:st.avatar_url)!==null&&t.a.createElement("img",{style:{height:"355px",width:"800px"},src:X.a.IMG_SERVER+"/"+(st==null?void 0:st.avatar_url)}),!(st!=null&&st.avatar_url)&&(st==null?void 0:st.avatar_url)==null&&t.a.createElement("img",{style:{height:"355px",width:"800px"},src:X.a.IMG_SERVER+"/images/educoder/competitions/mainbanner.jpg"}))),t.a.createElement("div",{style:{marginLeft:"20px",width:"400px"}},t.a.createElement("p",{className:"".concat(O.a.titlesize)},st.name,st.sub_title?"-"+st.sub_title:null),t.a.createElement("p",{style:{display:"flex",justifyContent:"space-between",marginRight:18}},t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u5956\u91D1"),st!=null&&st.bonus?t.a.createElement("span",{style:{fontSize:"24px"}},"\xA5",parseInt(st&&st.bonus).toLocaleString()):t.a.createElement("span",{style:{fontSize:"24px"}},"\u6682\u65E0")),t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u6D4F\u89C8"),t.a.createElement("span",{style:{fontSize:"24px"}},parseInt(st&&st.visits_count).toLocaleString())),t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u62A5\u540D"),t.a.createElement("span",{style:{fontSize:"24px"}},parseInt(st&&st.member_count).toLocaleString()))),t.a.createElement("p",{className:O.a.timesize,style:{marginTop:30}},t.a.createElement("span",{style:{color:"#9b9b9b",marginTop:"30px"}},"\u7ADE\u8D5B\u65F6\u95F4\uFF1A"),st.start_time,"~",st.end_time),t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u62A5\u540D\u622A\u6B62\uFF1A"),st.enroll_end_time),st.competition_status==="ended"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u5DF2\u7ED3\u675F"):null,st.competition_status==="nearly_published"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u672A\u53D1\u5E03"):null,st.competition_status==="progressing"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u8FDB\u884C\u4E2D"):null,t.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},(st==null?void 0:st.mode)<=2&&rr.enrolled&&t.a.createElement(_.a,{onClick:function(Or){if((st==null?void 0:st.mode)===1){var lr;Bi((lr=st.competition_modules)===null||lr===void 0?void 0:lr.find(function(Tn){return Tn.module_type==="entrance"}))}else Pn(Or,st,"ismodel")},style:{background:"#07C160",color:"#fff",border:"1px solid #07C160",marginRight:20,display:(st==null?void 0:st.mode)===2||(st==null?void 0:st.mode)===1&&((mt=st.competition_modules)===null||mt===void 0||((Ct=mt.filter(function(_r){return _r.module_type==="entrance"}))===null||Ct===void 0)?void 0:Ct.length)>0?"":"none"},className:O.a.buttonsize},(st==null?void 0:st.mode)===1&&"\u8D5B\u9898\u5165\u53E3",(st==null?void 0:st.mode)===2&&"\u8FDB\u5165\u8BFE\u5802"),st.competition_status==="ended"?t.a.createElement(_.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u5DF2\u7ED3\u675F"):null,st.competition_status==="nearly_published"?t.a.createElement(_.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u672A\u53D1\u5E03"):null,st.competition_status!=="nearly_published"&&st.enroll_end&&st.competition_status!=="ended"?t.a.createElement(_.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u62A5\u540D\u622A\u6B62"):null,st.competition_status==="progressing"&&st.enroll_end!=!0?t.a.createElement(_.a,{type:"primary",disabled:rr.enrolled&&!st.need_attachment,className:O.a.buttonsize,onClick:function(Or){if(rr.enrolled&&st.need_attachment){var lr;(lr=ra.current)===null||lr===void 0||lr.handleVisible();return}Pn(Or,st,st.mode===2?"ismodel":st.personal?"personal":"/competitions/index/".concat(st.identifier,"/enroll"))}},rr.enrolled?st.need_attachment?"\u4E0A\u4F20\u4F5C\u54C1":"\u5DF2\u62A5\u540D":st!=null&&st.enroll_url?"\u524D\u5F80\u5927\u8D5B\u5B98\u7F51\u62A5\u540D":"\u7ACB\u5373\u62A5\u540D"):null),qt.userInfo.real_name!="\u6E38\u5BA2"&&!(st!=null&&st.enroll_url)&&t.a.createElement("span",{onClick:function(Or){return Pn(Or,st,st.mode===2?"ismodel":st.personal?"personal":"/competitions/index/".concat(st.identifier,"/enroll"))},className:O.a.myteam},Object(zr.u)()?"\u53C2\u8D5B\u6218\u961F>>":"\u6211\u7684\u6218\u961F>>"))),t.a.createElement("div",{className:O.a.bootmdetail},t.a.createElement("div",{className:O.a.flex1},t.a.createElement(p.a,{selectedKeys:["".concat(je)]},st&&st.competition_modules&&st.competition_modules.map(function(_r,Or){if(_r.module_type!="enroll")return t.a.createElement(p.a.Item,{className:O.a.menuItem,onClick:function(){if(_r!=null&&_r.is_authentication){if(!Object(fe.e)(tr))return;u.b.info("\u52A0\u5165\u6218\u961F\u624D\u80FD\u67E5\u770B");return}Bi(_r)},key:_r.id},_r.name)}))),t.a.createElement("div",{className:O.a.flex6,style:{padding:(jr||Tr)&&0}},Ur?t.a.createElement(Lt,{dispatch:tr,userid:qt==null||((It=qt.userInfo)===null||It===void 0)?void 0:It.user_id,Prize:ei,Accounts:Fe,getAccounts:co}):null,yt?t.a.createElement(Le,{HeaderDetail:st,userinfo:qt.userInfo,Editable:st==null||((Pt=st.permission)===null||Pt===void 0)?void 0:Pt.editable,getCharts:la,getChartRules:Ba,Selectkey:je,ChartRules:cn,ItemData:dr}):null,qe?t.a.createElement(ee,{ref:ra,StaffDetail:rr,HeaderDetail:st,userinfo:qt.userInfo,Editable:st==null||((Ht=st.permission)===null||Ht===void 0)?void 0:Ht.editable,ItemData:dr,setIssee:sr,ModelType:Zt,dispatch:tr}):null,!qe&&!jr&&!Tr&&!yt&&!Ur&&!Ze?t.a.createElement(Q,{userinfo:qt.userInfo,ModelType:Zt,getrightdatas:Bi,dispatch:tr,MenuItem:xr,setIssee:sr,identifier:xt,ItemData:dr}):null,Ze&&t.a.createElement(In,{dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((Wt=st.permission)===null||Wt===void 0)?void 0:Wt.editable,getCharts:Xa,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}),jr&&t.a.createElement(xi,{loading:xn,dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((dt=st.permission)===null||dt===void 0)?void 0:dt.editable,getCharts:ka,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}),Tr&&t.a.createElement(sa,{loading:xn,dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((At=st.permission)===null||At===void 0)?void 0:At.editable,getCharts:La,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}))),t.a.createElement(C.a,null),t.a.createElement(G,{getResults:Xa}),t.a.createElement(T.a,{visible:nn,footer:null,width:720,title:"\u63D0\u793A",centered:!0,onCancel:function(){return Kr(!1)}},t.a.createElement("div",{className:O.a.modal},t.a.createElement("div",null,"\u534E\u4E3A\u6A21\u578B\u738B\u8005\u6311\u6218\u8D5B\u9EC4\u91D1\u8D5B\u6B63\u5F0F\u5F00\u542F\u5566"),t.a.createElement("div",null,"\u672C\u8D5B\u6BB5\u603B\u5956\u91D1\u9AD8\u8FBE",t.a.createElement("span",{style:{color:"#FF8C29"}},"300,000"),"\u5143"),t.a.createElement("div",null,"1\u3001\u7B26\u5408\u8D5B\u9898\u8981\u6C42\u7684\u961F\u4F0D\uFF08\u517125\u652F\uFF09\u53EF\u83B7\u5F97\u5956\u91D1\uFF1A12000RMB/\u961F \uFF1B"),t.a.createElement("div",null,"2\u3001\u53C2\u4E0E\u83B7\u5F97\u201C\u8363\u8000\u6BBF\u5802\u201D\u699C\u4E3B\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1\uFF1B"),t.a.createElement("div",null,"3\u3001\u5404\u8D5B\u9898\u7CBE\u5EA6\u6700\u9AD8\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1+\u8363\u8A89\u8BC1\u4E66\uFF1B"),t.a.createElement("div",null,"\u5FC3\u52A8\u5427\uFF0C\u90A3\u5C31\u5FEB\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u62A5\u540D\u53C2\u8D5B"),t.a.createElement(_.a,{type:"primary",onClick:function(){return Object(Ut.O)("https://competition.huaweicloud.com/information/1000041485/introduction")}},"\u524D\u5F80\u62A5\u540D\u53C2\u8D5B"))),t.a.createElement(T.a,{title:"\u9009\u62E9\u53C2\u8D5B\u65B9\u5F0F",visible:Wn,onCancel:function(){Dn(!1)},footer:!1},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-around",height:100,alignItems:"center"}},t.a.createElement(_.a,{type:"primary",style:{height:40},onClick:function(){Hn(!0),Dn(!1)}},"\u52A0\u5165\u6218\u961F\u53C2\u8D5B"),t.a.createElement(_.a,{style:{height:40},onClick:function(){gi(!0),Dn(!1)}},"\u53BB\u521B\u5EFA\u6218\u961F\u53C2\u8D5B"))),di?t.a.createElement(Ii.a,{isjoin:di,setJoin:Hn,JoinTeams:$i}):null,Jn?t.a.createElement(qn.a,{isAddmodle:Jn,setIsAdd:gi,createTeam:Ta}):null)},ta=Y.default=Object(f.a)(function(Tt){var it=Tt.loading,mt=Tt.globalSetting,Ct=Tt.user;return{globalSetting:mt,loading:it,user:Ct}})(Vi)},GRuw:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("lPiR"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.algo,v=p.SHA256,_=p.SHA224=v.extend({_doReset:function(){this._hash=new P.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var b=v._doFinalize.call(this);return b.sigBytes-=4,b}});g.SHA224=v._createHelper(_),g.HmacSHA224=v._createHmacHelper(_)}(),L.SHA224})},GfqC:function(j,Y,D){"use strict";var L=D("q1tI"),g=D.n(L),T=D("TSYQ"),P=D.n(T);function p(K,U){var W="cannot "+K.method+" "+K.action+" "+U.status+"'",X=new Error(W);return X.status=U.status,X.method=K.method,X.url=K.action,X}function v(K){var U=K.responseText||K.response;if(!U)return U;try{return JSON.parse(U)}catch(W){return U}}function _(K){var U=new XMLHttpRequest;K.onProgress&&U.upload&&(U.upload.onprogress=function(fe){fe.total>0&&(fe.percent=fe.loaded/fe.total*100),K.onProgress(fe)});var W=new FormData;K.data&&Object.keys(K.data).forEach(function(ne){var fe=K.data[ne];if(Array.isArray(fe)){fe.forEach(function(me){W.append(ne+"[]",me)});return}W.append(ne,K.data[ne])}),K.file instanceof Blob?W.append(K.filename,K.file,K.file.name):W.append(K.filename,K.file),U.onerror=function(fe){K.onError(fe)},U.onload=function(){return U.status<200||U.status>=300?K.onError(p(K,U),v(U)):K.onSuccess(v(U),U)},U.open(K.method,K.action,!0),K.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var X=K.headers||{};return X["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(X).forEach(function(ne){X[ne]!==null&&U.setRequestHeader(ne,X[ne])}),U.send(W),{abort:function(){U.abort()}}}var b=+new Date,d=0;function l(){return"rc-upload-"+b+"-"+ ++d}function n(K,U){return K.indexOf(U,K.length-U.length)!==-1}var c=function(K,U){if(K&&U){var W=Array.isArray(U)?U:U.split(","),X=K.name||"",ne=K.type||"",fe=ne.replace(/\/.*$/,"");return W.some(function(me){var Ae=me.trim();return Ae.charAt(0)==="."?n(X.toLowerCase(),Ae.toLowerCase()):/\/\*$/.test(Ae)?fe===Ae.replace(/\/.*$/,""):ne===Ae})}return!0};function u(K,U){var W=K.createReader(),X=[];function ne(){W.readEntries(function(fe){var me=Array.prototype.slice.apply(fe);X=X.concat(me);var Ae=!me.length;Ae?U(X):ne()})}ne()}var o=function(U,W,X){var ne=function fe(me,Ae){Ae=Ae||"",me.isFile?me.file(function(De){X(De)&&(me.fullPath&&!De.webkitRelativePath&&(Object.defineProperties(De,{webkitRelativePath:{writable:!0}}),De.webkitRelativePath=me.fullPath.replace(/^\//,""),Object.defineProperties(De,{webkitRelativePath:{writable:!1}})),W([De]))}):me.isDirectory&&u(me,function(De){De.forEach(function(ye){fe(ye,""+Ae+me.name+"/")})})};U.forEach(function(fe){ne(fe.webkitGetAsEntry())})},h=o,m=Object.assign||function(K){for(var U=1;U=0)continue;if(!Object.prototype.hasOwnProperty.call(K,X))continue;W[X]=K[X]}return W}function w(K,U){if(!(K instanceof U))throw new TypeError("Cannot call a class as a function")}function E(K,U){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:K}function f(K,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);K.prototype=Object.create(U&&U.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(K,U):K.__proto__=U)}var k=function(U){return Object.keys(U).reduce(function(W,X){return(X.substr(0,5)==="data-"||X.substr(0,5)==="aria-"||X==="role")&&(W[X]=U[X]),W},{})},O=function(K){f(U,K);function U(){var W,X,ne,fe;w(this,U);for(var me=arguments.length,Ae=Array(me),De=0;De>>2]>>>24-k%4*8&255;t[E+k>>>2]|=O<<24-(E+k)%4*8}else for(var C=0;C>>2]=w[C>>>2];return this.sigBytes+=f,this},clamp:function(){var a=this.words,t=this.sigBytes;a[t>>>2]&=4294967295<<32-t%4*8,a.length=T.ceil(t/4)},clone:function(){var a=l.clone.call(this);return a.words=this.words.slice(0),a},random:function(a){for(var t=[],w=0;w>>2]>>>24-f%4*8&255;E.push((k>>>4).toString(16)),E.push((k&15).toString(16))}return E.join("")},parse:function(a){for(var t=a.length,w=[],E=0;E>>3]|=parseInt(a.substr(E,2),16)<<24-E%8*4;return new n.init(w,t/2)}},o=c.Latin1={stringify:function(a){for(var t=a.words,w=a.sigBytes,E=[],f=0;f>>2]>>>24-f%4*8&255;E.push(String.fromCharCode(k))}return E.join("")},parse:function(a){for(var t=a.length,w=[],E=0;E>>2]|=(a.charCodeAt(E)&255)<<24-E%4*8;return new n.init(w,t)}},h=c.Utf8={stringify:function(a){try{return decodeURIComponent(escape(o.stringify(a)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(a){return o.parse(unescape(encodeURIComponent(a)))}},m=d.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new n.init,this._nDataBytes=0},_append:function(a){typeof a=="string"&&(a=h.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(a){var t,w=this._data,E=w.words,f=w.sigBytes,k=this.blockSize,O=k*4,C=f/O;a?C=T.ceil(C):C=T.max((C|0)-this._minBufferSize,0);var x=C*k,y=T.min(x*4,f);if(x){for(var S=0;S=k?g:{done:!1,value:E[f++]}}}}d.fromArray=u;function o(E){return{next:function(){var f=E.next();return f.done?g:{done:!1,value:f.value}}}}d.fromNativeIterator=o;function h(E){return E?Array.isArray(E)?d.fromArray(E):E:d.empty()}d.from=h;function m(E,f){return{next:function(){var k=E.next();return k.done?g:{done:!1,value:f(k.value)}}}}d.map=m;function s(E,f){return{next:function(){for(;;){var k=E.next();if(k.done)return g;if(f(k.value))return{done:!1,value:k.value}}}}}d.filter=s;function r(E,f){for(var k=E.next();!k.done;k=E.next())f(k.value)}d.forEach=r;function a(E,f){f===void 0&&(f=Number.POSITIVE_INFINITY);var k=[];if(f===0)return k;for(var O=0,C=E.next();!C.done&&!(k.push(C.value),++O>=f);C=E.next());return k}d.collect=a;function t(){for(var E=[],f=0;f=E.length)return g;var O=E[k],C=O.next();return C.done?(k++,this.next()):C}}}d.concat=t;function w(E){return new P(E)}d.chain=w})(T||(T={}));var P=function(){function d(l){this.it=l}return d.prototype.next=function(){return this.it.next()},d}();function p(d){return Array.isArray(d)?T.fromArray(d):d||T.empty()}var v=function(){function d(l,n,c,u){n===void 0&&(n=0),c===void 0&&(c=l.length),u===void 0&&(u=n-1),this.items=l,this.start=n,this.end=c,this.index=u}return d.prototype.first=function(){return this.index=this.start,this.current()},d.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},d.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},d}(),_=function(d){L(l,d);function l(n,c,u,o){return c===void 0&&(c=0),u===void 0&&(u=n.length),o===void 0&&(o=c-1),d.call(this,n,c,u,o)||this}return l.prototype.current=function(){return d.prototype.current.call(this)},l.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},l.prototype.first=function(){return this.index=this.start,this.current()},l.prototype.last=function(){return this.index=this.end-1,this.current()},l.prototype.parent=function(){return null},l}(v),b=function(){function d(l,n){this.iterator=l,this.fn=n}return d.prototype.next=function(){return this.fn(this.iterator.next())},d}()},K3mO:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("3y9D"),D("WYAk"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Base,p=T.WordArray,v=g.algo,_=v.MD5,b=v.EvpKDF=P.extend({cfg:P.extend({keySize:128/32,hasher:_,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,l){for(var n,c=this.cfg,u=c.hasher.create(),o=p.create(),h=o.words,m=c.keySize,s=c.iterations;h.lengthOe)){ue.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Oe/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),ue.abrupt("return",!1);case 7:return H.push({name:ye.name,file:ye}),B(Object(P.a)(H)),I.onChange(H),ue.abrupt("return",!1);case 11:case"end":return ue.stop()}},De)}));function Ae(De){return me.apply(this,arguments)}return Ae}()},fe=function(){var me=Object(b.a)(c.a.mark(function Ae(De,ye){var Oe,xe,ue,le,re,pe,ee,te,ce;return c.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return ye.file_name=De.name,ee=De.name,Q.next=4,Object(h.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(te=Q.sent,te.data=JSON.parse(f(te.data)),!((te==null?void 0:te.status)!==0)){Q.next=12;break}return H[H.findIndex(function(V){return V.name===ee})].status="error",H[H.findIndex(function(V){return V.name===ee})].file.status="error",I.onChange(H),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Q.abrupt("return");case 12:return W=new w.a({endpoint:te==null||((Oe=te.data)===null||Oe===void 0)?void 0:Oe.end_point,region:te==null||((xe=te.data)===null||xe===void 0)?void 0:xe.region,accessKeyId:te==null||((ue=te.data)===null||ue===void 0)?void 0:ue.access_key_id,accessKeySecret:te==null||((le=te.data)===null||le===void 0)?void 0:le.access_key_secret,bucket:te==null||((re=te.data)===null||re===void 0)?void 0:re.bucket,stsToken:te==null||((pe=te.data)===null||pe===void 0)?void 0:pe.security_token}),console.log(De,"file"),X(W),ce=Object(r.a)(),Q.abrupt("return",new Promise(function(V,Z){try{var be;W.multipartUpload("".concat(I.identifier,"/").concat(ce).concat(ee.indexOf(".")>-1?"."+ee.split(".").pop():""),new Blob([De.file],{type:De.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Te,Je,rt){try{console.log("\u8FDB\u5EA6",Te,Je,rt);var nt=H.findIndex(function(at){return at.name===ee});H[nt].file.percent=Te*100,H[nt].tempCheckpoint=Je,B(Object(P.a)(H))}catch(at){}},checkpoint:H[H.findIndex(function(ge){return ge.name===ee})].tempCheckpoint,callback:{customValue:{id:ee+""},url:te==null||((be=te.data)===null||be===void 0)?void 0:be.callback_url,host:te==null?void 0:te.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(h.e)(ye)}}).then(function(ge){var Te,Je=H.findIndex(function(ht){return ht.name===ee}),rt="done";if(((Te=ge.data)===null||Te===void 0?void 0:Te.status)===0){var nt;De.response=(nt=ge.data)===null||nt===void 0?void 0:nt.data;var at=H.findIndex(function(ht){return ht.name===ee});H[at].status="done",H[at].file.status="done"}else{var ct;T.b.warn((ct=ge.data)===null||ct===void 0?void 0:ct.message),rt="error"}H[Je].status=rt,H[Je].file.status=rt,I.onChange(H),V(ge==null?void 0:ge.data)}).catch(function(ge){H[H.findIndex(function(Te){return Te.name===ee})].status="error",H[H.findIndex(function(Te){return Te.name===ee})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),B(Object(P.a)(H)),I.onChange(H),Z(ge),console.log("err:",ge)})}catch(ge){}}));case 17:case"end":return Q.stop()}},Ae)}));return function(De,ye){return me.apply(this,arguments)}}();return Object(u.useEffect)(function(){H.every(function(me){return me==="done"||me==="error"})&&I.onComplete(H)},[H]),Object(u.useEffect)(function(){if(M){var me;(me=W)===null||me===void 0||me.cancel()}},[M]),Object(u.useEffect)(function(){I.uploading&&H.map(function(){var me=Object(b.a)(c.a.mark(function Ae(De){var ye,Oe;return c.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!((!De.status||De.status==="error")&&!M)){ue.next=6;break}return De.status="uploading",De.file.status="uploading",ue.next=5,fe(De,{login:S==null||((ye=S.userInfo)===null||ye===void 0)?void 0:ye.login,container_type:I.container_type,container_id:I.container_id,description:I.description});case 5:Oe=ue.sent;case 6:case"end":return ue.stop()}},Ae)}));return function(Ae){return me.apply(this,arguments)}}())},[I.uploading]),o.a.createElement(E,Object(L.a)({},ne,{height:I.height,className:I.className}),o.a.createElement("p",{className:"ant-upload-hint"},I.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Y.b=Object(a.a)(function(x){var y=x.loading,S=x.globalSetting,M=x.user;return{globalSetting:S,loading:y.models.competitions,user:M}})(C)},KmYQ:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.pad.ZeroPadding={pad:function(g,T){var P=T*4;g.clamp(),g.sigBytes+=P-(g.sigBytes%P||P)},unpad:function(g){for(var T=g.words,P=g.sigBytes-1,P=g.sigBytes-1;P>=0;P--)if(T[P>>>2]>>>24-P%4*8&255){g.sigBytes=P+1;break}}},L.pad.ZeroPadding})},LdHM:function(j,Y,D){"use strict";D.d(Y,"b",function(){return t}),D.d(Y,"a",function(){return E});var L=D("1OyB"),g=D("vuIU"),T=D("Ji7U"),P=D("LK+K"),p=D("q1tI"),v=D("rePB"),_=D("Ff2n"),b=D("ODXe"),d=D("4IlW"),l=D("bX4T"),n=D("YrtM"),c=D("TSYQ"),u=D.n(c),o=D("+nKL"),h=D("8OUc"),m=function(X,ne){var fe=X.prefixCls,me=X.id,Ae=X.flattenOptions,De=X.childrenAsData,ye=X.values,Oe=X.searchValue,xe=X.multiple,ue=X.defaultActiveFirstOption,le=X.height,re=X.itemHeight,pe=X.notFoundContent,ee=X.open,te=X.menuItemSelectedIcon,ce=X.virtual,q=X.onSelect,Q=X.onToggleOpen,V=X.onActiveValue,Z=X.onScroll,be=X.onMouseEnter,ge="".concat(fe,"-item"),Te=Object(n.a)(function(){return Ae},[ee,Ae],function(lt,Ue){return Ue[0]&<[1]!==Ue[1]}),Je=p.useRef(null),rt=function(Ue){Ue.preventDefault()},nt=function(Ue){Je.current&&Je.current.scrollTo({index:Ue})},at=function(Ue){for(var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ie=Te.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(W).map(function(ne,fe){if(!p.isValidElement(ne)||!ne.type)return null;var me=ne.type.isSelectOptGroup,Ae=ne.key,De=ne.props,ye=De.children,Oe=Object(_.a)(De,["children"]);return X||!me?O(ne):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?fe:Ae,"__"),label:Ae},Oe),{},{options:C(ye)})}).filter(function(ne){return ne})}var x=D("2Qr1"),y=D("qNPg"),S=D("U8pU"),M=D("Kwbf"),I=D("WKfj");function N(W){var X=W.mode,ne=W.options,fe=W.children,me=W.backfill,Ae=W.allowClear,De=W.placeholder,ye=W.getInputElement,Oe=W.showSearch,xe=W.onSearch,ue=W.defaultOpen,le=W.autoFocus,re=W.labelInValue,pe=W.value,ee=W.inputValue,te=W.optionLabelProp,ce=X==="multiple"||X==="tags",q=Oe!==void 0?Oe:ce||X==="combobox",Q=ne||C(fe);if(Object(M.a)(X!=="tags"||Q.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),X==="tags"||X==="combobox"){var V=Q.some(function(ge){return ge.options?ge.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(M.a)(!V,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(X!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(X==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(M.a)(X==="combobox"||!ye,"`getInputElement` only work with `combobox` mode."),Object(M.b)(X!=="combobox"||!ye||!Ae||!De,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!q&&X!=="combobox"&&X!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!ue||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),pe!=null){var Z=Object(I.d)(pe);Object(M.a)(!re||Z.every(function(ge){return Object(S.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!ce||Array.isArray(pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var be=null;Object(k.a)(fe).some(function(ge){if(!p.isValidElement(ge)||!ge.type)return!1;var Te=ge.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var Je=Object(k.a)(ge.props.children).every(function(rt){return!p.isValidElement(rt)||!ge.type||rt.type.isSelectOption?!0:(be=rt.type,!1)});return!Je}return be=Te,!0}),be&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(be.displayName||be.name||be,"`.")),Object(M.a)(ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var G=N,H=Object(y.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:C,flattenOptions:x.d,getLabeledValue:x.e,filterOptions:x.b,isValueDisabled:x.g,findValueOption:x.c,warningProps:G,fillOptionsWithMissingValue:x.a}),B=function(W){Object(T.a)(ne,W);var X=Object(P.a)(ne);function ne(){var fe;return Object(L.a)(this,ne),fe=X.apply(this,arguments),fe.selectRef=p.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(g.a)(ne,[{key:"render",value:function(){return p.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ne}(p.Component);B.Option=t,B.OptGroup=E;var K=B,U=Y.c=K},M8RZ:function(j,Y,D){"use strict";D.d(Y,"a",function(){return d});var L=D("fWQN"),g=D("mtLc"),T=D("yKVA"),P=D("879j"),p=D("q1tI"),v=D.n(p),_=D("i8i4"),b=D.n(_),d=function(l){Object(T.a)(c,l);var n=Object(P.a)(c);function c(u){var o;Object(L.a)(this,c),o=n.call(this,u);var h=window.document;return o.node=h.createElement("div"),h.body.appendChild(o.node),o}return Object(g.a)(c,[{key:"render",value:function(){var o=this.props.children;return Object(_.createPortal)(o,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),c}(v.a.Component)},MI8n:function(j,Y,D){"use strict";D.d(Y,"b",function(){return v}),D.d(Y,"a",function(){return d}),D.d(Y,"e",function(){return l}),D.d(Y,"d",function(){return n}),D.d(Y,"c",function(){return c}),D.d(Y,"f",function(){return u});var L=D("/cxE"),g=D("C/vA"),T=D("pmY6"),P=D("24hK"),p=function(){var o=function(h,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var a in r)r.hasOwnProperty(a)&&(s[a]=r[a])},o(h,m)};return function(h,m){o(h,m);function s(){this.constructor=h}h.prototype=m===null?Object.create(m):(s.prototype=m.prototype,new s)}}(),v;(function(o){o.None=function(){return T.a.None};function h(G){return function(H,B,K){B===void 0&&(B=null);var U=!1,W;return W=G(function(X){return U?void 0:(W?W.dispose():U=!0,H.call(B,X))},null,K),U&&W.dispose(),W}}o.once=h;function m(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){return B.call(K,H(W))},null,U)})}o.map=m;function s(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){H(W),B.call(K,W)},null,U)})}o.forEach=s;function r(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){return H(W)&&B.call(K,W)},null,U)})}o.filter=r;function a(G){return G}o.signal=a;function t(){for(var G=[],H=0;H1)&&me.fire(De),fe=0},B)})},onLastListenerRemove:function(){W.dispose()}});return me.event}o.debounce=f;function k(G){var H=new Date().getTime();return m(h(G),function(B){return new Date().getTime()-H})}o.stopwatch=k;function O(G){var H=!0,B;return r(G,function(K){var U=H||K!==B;return H=!1,B=K,U})}o.latch=O;function C(G,H,B){H===void 0&&(H=!1),B===void 0&&(B=[]);var K=B.slice(),U=G(function(ne){K?K.push(ne):X.fire(ne)}),W=function(){K&&K.forEach(function(ne){return X.fire(ne)}),K=null},X=new d({onFirstListenerAdd:function(){U||(U=G(function(ne){return X.fire(ne)}))},onFirstListenerDidAdd:function(){K&&(H?setTimeout(W):W())},onLastListenerRemove:function(){U&&U.dispose(),U=null}});return X.event}o.buffer=C;var x=function(){function G(H){this.event=H}return G.prototype.map=function(H){return new G(m(this.event,H))},G.prototype.forEach=function(H){return new G(s(this.event,H))},G.prototype.filter=function(H){return new G(r(this.event,H))},G.prototype.reduce=function(H,B){return new G(w(this.event,H,B))},G.prototype.latch=function(){return new G(O(this.event))},G.prototype.debounce=function(H,B,K,U){return B===void 0&&(B=100),K===void 0&&(K=!1),new G(f(this.event,H,B,K,U))},G.prototype.on=function(H,B,K){return this.event(H,B,K)},G.prototype.once=function(H,B,K){return h(this.event)(H,B,K)},G}();function y(G){return new x(G)}o.chain=y;function S(G,H,B){B===void 0&&(B=function(ne){return ne});var K=function(){for(var ne=[],fe=0;fe>>24)&16711935|(O<<24|O>>>8)&4278255360}var C=this._hash.words,x=c.words,y=u.words,_=b.words,M=d.words,I=l.words,N=n.words,G,H,B,K,U,W,X,ne,fe,me;W=G=C[0],X=H=C[1],ne=B=C[2],fe=K=C[3],me=U=C[4];for(var Ae,f=0;f<80;f+=1)Ae=G+w[E+_[f]]|0,f<16?Ae+=h(H,B,K)+x[0]:f<32?Ae+=m(H,B,K)+x[1]:f<48?Ae+=s(H,B,K)+x[2]:f<64?Ae+=r(H,B,K)+x[3]:Ae+=a(H,B,K)+x[4],Ae=Ae|0,Ae=t(Ae,I[f]),Ae=Ae+U|0,G=U,U=K,K=t(B,10),B=H,H=Ae,Ae=W+w[E+M[f]]|0,f<16?Ae+=a(X,ne,fe)+y[0]:f<32?Ae+=r(X,ne,fe)+y[1]:f<48?Ae+=s(X,ne,fe)+y[2]:f<64?Ae+=m(X,ne,fe)+y[3]:Ae+=h(X,ne,fe)+y[4],Ae=Ae|0,Ae=t(Ae,N[f]),Ae=Ae+me|0,W=me,me=fe,fe=t(ne,10),ne=X,X=Ae;Ae=C[1]+B+fe|0,C[1]=C[2]+K+me|0,C[2]=C[3]+U+W|0,C[3]=C[4]+G+X|0,C[4]=C[0]+H+ne|0,C[0]=Ae},_doFinalize:function(){var w=this._data,E=w.words,f=this._nDataBytes*8,k=w.sigBytes*8;E[k>>>5]|=128<<24-k%32,E[(k+64>>>9<<4)+14]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var O=this._hash,C=O.words,x=0;x<5;x++){var y=C[x];C[x]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}return O},clone:function(){var w=v.clone.call(this);return w._hash=this._hash.clone(),w}});function h(w,E,f){return w^E^f}function m(w,E,f){return w&E|~w&f}function s(w,E,f){return(w|~E)^f}function r(w,E,f){return w&f|E&~f}function a(w,E,f){return w^(E|~f)}function t(w,E){return w<>>32-E}T.RIPEMD160=v._createHelper(o),T.HmacRIPEMD160=v._createHmacHelper(o)}(Math),L.RIPEMD160})},ETIr:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.enc,v=p.Base64={stringify:function(b){var d=b.words,l=b.sigBytes,n=this._map;b.clamp();for(var c=[],u=0;u>>2]>>>24-u%4*8&255,h=d[u+1>>>2]>>>24-(u+1)%4*8&255,m=d[u+2>>>2]>>>24-(u+2)%4*8&255,s=o<<16|h<<8|m,r=0;r<4&&u+r*.75>>6*(3-r)&63));var a=n.charAt(64);if(a)for(;c.length%4;)c.push(a);return c.join("")},parse:function(b){var d=b.length,l=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var c=0;c>>6-u%4*2,m=o|h;n[c>>>2]|=m<<24-c%4*8,c++}return P.create(n,c)}}(),L.enc.Base64})},"F+F2":function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){if(typeof ArrayBuffer!="function")return;var g=L,T=g.lib,P=T.WordArray,p=P.init,v=P.init=function(S){if(S instanceof ArrayBuffer&&(S=new Uint8Array(S)),(S instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array)&&(S=new Uint8Array(S.buffer,S.byteOffset,S.byteLength)),S instanceof Uint8Array){for(var b=S.byteLength,d=[],l=0;l>>2]|=S[l]<<24-l%4*8;p.call(this,d,b)}else p.apply(this,arguments)};v.prototype=P}(),L.lib.WordArray})},GRO8:function(j,Y,D){"use strict";D.r(Y);var L=D("k1fw"),g=D("2qtc"),T=D("kLXV"),P=D("lUTK"),p=D("BvKs"),v=D("+L6B"),S=D("2/Rp"),b=D("T2oS"),d=D("W9HT"),l=D("sPJy"),n=D("bE4q"),c=D("miYZ"),u=D("tsqr"),o=D("9og8"),h=D("tJVT"),m=D("PpiC"),s=D("WmNS"),r=D.n(s),a=D("q1tI"),t=D.n(a),w=D("Ty5D"),E=D("55Ip"),f=D("9kvl"),k=D("KeDT"),O=D.n(k),C=D("zrhs"),x=D("DZo9"),y=D("8z0m"),_=D("LtfV"),M=D("KhGG"),I=y.a.Dragger,N=function(it){var mt=it.user,Ct=it.dispatch,It=it.classroomList,Pt=it.shixunsDetail,Ht=it.getResults,Wt=Object(w.i)(),dt=Object(a.useState)(),At=Object(h.a)(dt,2),Dt=At[0],yr=At[1],tr=Object(a.useState)([]),qt=Object(h.a)(tr,2),Gt=qt[0],nr=qt[1],cr=Object(a.useState)(!1),st=Object(h.a)(cr,2),Lr=st[0],Fr=st[1],Cr={onRemove:function(){nr([])},beforeUpload:function(Et){if(console.log(Et),(Et==null?void 0:Et.size)>1024*1024*500)return u.b.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var _t=[];return _t.push(Et),nr([].concat(_t)),!1},fileList:Gt};return t.a.createElement(T.a,{title:"\u63D0\u4EA4\u6587\u4EF6",visible:Pt.actionTabs.key==="md-tab",confirmLoading:Lr,onOk:Object(o.a)(r.a.mark(function rr(){var Et,_t,xt;return r.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(!((Gt==null?void 0:Gt.length)<=0)){pr.next=3;break}return u.b.info("\u8BF7\u5148\u9009\u62E9\u6587\u4EF6"),pr.abrupt("return");case 3:return Fr(!0),pr.next=6,Object(M.c)(Gt[0],{login:(Et=mt.userInfo)===null||Et===void 0?void 0:Et.login,container_type:"Competition",container_id:Pt.actionTabs.params.id,stage_type:Pt.actionTabs.params.value,file_name:(_t=Gt[0])===null||_t===void 0?void 0:_t.name});case 6:xt=pr.sent,(xt==null?void 0:xt.status)===0?(u.b.info("\u63D0\u4EA4\u6210\u529F"),Ct({type:"shixunsDetail/setActionTabs",payload:{key:""}}),Fr(!1),nr([]),Ht(Pt.actionTabs.params.value)):(Fr(!1),u.b.info("\u63D0\u4EA4\u5931\u8D25"));case 8:case"end":return pr.stop()}},rr)})),onCancel:function(){nr([]),Ct({type:"shixunsDetail/setActionTabs",payload:{key:""}})}},t.a.createElement(I,Cr,t.a.createElement("p",{className:"ant-upload-drag-icon"},t.a.createElement(_.a,null)),t.a.createElement("p",{className:"ant-upload-hint"},"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20")))},G=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.classroomList,Ct=Tt.shixunsDetail;return{user:it,classroomList:mt,shixunsDetail:Ct}})(N),H=D("14J3"),B=D("BMrR"),K=D("5NDa"),U=D("5rEg"),W=D("9Bee"),X=D("m3rI"),ne=D("ErOA"),fe=D("NLgs"),me=D("fV52"),Ae=D("3I+P"),De=D("OaEy"),ye=D("2fM7"),Oe=D("5bA4"),xe=D("UESt"),ue=ye.a.Option;function le(Tt){var it=Tt.rewarddata,mt=Tt.getlistdatas,Ct=Tt.is_signed,It=Tt.dispatch,Pt=Tt.userlist,Ht=Object(a.useRef)(null),Wt=Object(a.useState)(!1),dt=Object(h.a)(Wt,2),At=dt[0],Dt=dt[1],yr=Object(a.useState)(void 0),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)(""),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(void 0),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(void 0),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(void 0),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1];function qe(xr){return sr.apply(this,arguments)}function sr(){return sr=Object(o.a)(r.a.mark(function xr(br){var Pr;return r.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!br.user_received){Zt.next=3;break}return window.open(br.click_info),Zt.abrupt("return");case 3:if(Object(fe.f)(It)){Zt.next=5;break}return Zt.abrupt("return");case 5:if(!(Ct===!1)){Zt.next=8;break}return u.b.info("\u60A8\u5C1A\u672A\u62A5\u540D\u53C2\u8D5B\uFF0C\u8BF7\u62A5\u540D\u53C2\u8D5B\u540E\u9886\u53D6"),Zt.abrupt("return");case 8:if(!(br.click_event==="Pop")){Zt.next=14;break}return Lr(br.id),Dt(!0),Zt.abrupt("return");case 14:Gt(void 0);case 15:return Zt.next=17,It({type:"competitions/Reward",payload:{competition_module_setting_id:br.id}});case 17:Pr=Zt.sent,Pr&&Pr.status===0&&(mt(),br.click_event==="Link"?(u.b.info("\u9886\u53D6\u6210\u529F"),window.open(br.click_info)):u.b.info(br.click_info));case 19:case"end":return Zt.stop()}},xr)})),sr.apply(this,arguments)}function Nr(){return rn.apply(this,arguments)}function rn(){return rn=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(!(Pt&&!Pt.real_name)){Ft.next=4;break}if(rr){Ft.next=4;break}return u.b.info("\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 4:if(!(Pt&&!Pt.email)){Ft.next=8;break}if(Jt){Ft.next=8;break}return u.b.info("\u90AE\u7BB1\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 8:if(!(Pt&&!Pt.phone)){Ft.next=12;break}if(Dr){Ft.next=12;break}return u.b.info("\u624B\u673A\u53F7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 12:if(qt){Ft.next=15;break}return u.b.info("\u8BF7\u9009\u62E9\u4F60\u7684\u5E74\u7EA7"),Ft.abrupt("return");case 15:return Ft.next=17,It({type:"competitions/Reward",payload:{competition_module_setting_id:st,className:qt,name:rr,mail:Jt,phone:Dr}});case 17:br=Ft.sent,br&&br.status===0&&(Dt(!1),mt(),u.b.info("HCIA\u8BA4\u8BC1\u8003\u8BD5\u4EE3\u91D1\u52B5\u5C06\u7531Educoder\u5E73\u53F0\u7EDF\u4E00\u53D1\u653E\uFF0C\u8BF7\u53CA\u65F6\u5173\u6CE8\u90AE\u7BB1\u6216\u7AD9\u5185\u77ED\u4FE1\u67E5\u6536"));case 19:case"end":return Ft.stop()}},xr)})),rn.apply(this,arguments)}return t.a.createElement("div",null,t.a.createElement(T.a,{visible:At,title:"\u5B8C\u5584\u4FE1\u606F",onCancel:function(){return Dt(!1)},onOk:function(){Nr()}},t.a.createElement("p",null,"\u60A8\u7684\u59D3\u540D\uFF1A",t.a.createElement(U.a,{className:Pt&&Pt.real_name?"":O.a.bkfff,style:{width:"300px",marginLeft:"14px",background:Pt&&Pt.phone?"":"#ffffff!important"},value:Pt&&Pt.real_name||rr,disabled:Pt&&Pt.real_name||!1,onChange:function(br){return Et(br.target.value)}})),t.a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u90AE\u7BB1\uFF1A",t.a.createElement(U.a,{className:Pt&&Pt.email?"":"bkfff",style:{width:"300px",marginLeft:"14px",background:Pt&&Pt.phone?"":"#ffffff!important"},value:Pt&&Pt.email||Jt,disabled:Pt&&Pt.email||!1,onChange:function(br){return pr(br.target.value)}})),t.a.createElement("p",{style:{marginTop:"1em"}},"\u60A8\u7684\u624B\u673A\u53F7\uFF1A",t.a.createElement(U.a,{style:{width:"300px"},className:Pt&&Pt.phone?"":"bkfff",value:Pt&&Pt.phone||Dr,disabled:Pt&&Pt.phone||!1,onChange:function(br){return an(br.target.value)}})),"\u60A8\u7684\u5E74\u7EA7\uFF1A",t.a.createElement(ye.a,{style:{width:"300px",marginTop:"1em",marginLeft:"14px"},onChange:function(br){Gt(br)}},t.a.createElement(ue,{value:"\u5927\u4E00"},"\u5927\u4E00"),t.a.createElement(ue,{value:"\u5927\u4E8C"},"\u5927\u4E8C"),t.a.createElement(ue,{value:"\u5927\u4E09"},"\u5927\u4E09"),t.a.createElement(ue,{value:"\u5927\u56DB"},"\u5927\u56DB"),t.a.createElement(ue,{value:"\u5927\u4E94"},"\u5927\u4E94"),t.a.createElement(ue,{value:"\u7855\u4E00"},"\u7855\u4E00"),t.a.createElement(ue,{value:"\u7855\u4E8C"},"\u7855\u4E8C"),t.a.createElement(ue,{value:"\u7855\u4E09"},"\u7855\u4E09"),t.a.createElement(ue,{value:"\u535A\u4E00"},"\u535A\u4E00"),t.a.createElement(ue,{value:"\u535A\u4E8C"},"\u535A\u4E8C"),t.a.createElement(ue,{value:"\u535A\u4E09"},"\u535A\u4E09"),t.a.createElement(ue,{value:"\u535A\u56DB"},"\u535A\u56DB"),t.a.createElement(ue,{value:"\u535A\u4E94"},"\u535A\u4E94")),t.a.createElement("p",{style:{marginTop:"1em"}},"\u63D0\u9192\uFF1A\u5982\u65E0\u534E\u4E3A\u4E91\u8D26\u53F7\uFF0C\u8BF7\u5C3D\u5FEB\u6CE8\u518C\u534E\u4E3A\u4E91\uFF01")),it&&it.length>3?t.a.createElement("div",{style:{position:"relative",marginBottom:"10px",marginTop:"10px"}},t.a.createElement("span",{className:O.a.spanprev,onClick:function(){Ht.current.prev()}},t.a.createElement(Oe.a,{style:{color:"#fff",fontSize:"20px",marginLeft:"15px"}})),t.a.createElement(Ae.a,{ref:Ht,className:O.a.divwidth,slidesToShow:3,slidesToScroll:1},it&&it.map(function(xr,br){return t.a.createElement("div",{style:{textAlign:"center",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/".concat(xr.image_url)}),xr.user_received===!1||xr.click_event==="Link"?t.a.createElement("p",{className:O.a.receiveclick,onClick:function(){return qe(xr)}},"\u70B9\u51FB\u9886\u53D6"):t.a.createElement("p",{className:O.a.receivealready},"\u5DF2\u7ECF\u9886\u53D6"))})),t.a.createElement("span",{className:O.a.spannext,onClick:function(){Ht.current.next()}},t.a.createElement(xe.a,{style:{color:"#fff",fontSize:"20px",marginLeft:"5px"}}))):t.a.createElement("div",{className:O.a.divwidth,style:{justifyContent:"space-around",marginBottom:"10px",marginTop:"10px"}},it&&it.map(function(xr,br){return t.a.createElement("div",{style:{textAlign:"center",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/".concat(xr.image_url)}),xr.user_received===!1||xr.click_event==="Link"?t.a.createElement("p",{className:O.a.receiveclick,onClick:function(){return qe(xr)}},"\u70B9\u51FB\u9886\u53D6"):t.a.createElement("p",{className:O.a.receivealready},"\u5DF2\u7ECF\u9886\u53D6"))})))}var re=le,pe=function(it,mt){var Ct=it.StaffDetail,It=it.HeaderDetail,Pt=it.ItemData,Ht=it.setIssee,Wt=it.ModelType,dt=it.dispatch,At=it.userinfo,Dt=it.Editable,yr=Object(a.useState)(!1),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)([]),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(""),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(""),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(!1),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(w.i)(),sr=qe.identifier,Nr=Object(a.useRef)(null),rn=Object(a.useRef)(null);Nr.current=Ct==null?void 0:Ct.enrolled,Object(a.useEffect)(function(){var Ft;return(Ft=rn.current)===null||Ft===void 0||Ft.addEventListener("click",xr),function(){var Zt;(Zt=rn.current)===null||Zt===void 0||Zt.removeEventListener("click",xr)}},[]);var xr=function(Zt){var wr;if((Zt==null||((wr=Zt.target)===null||wr===void 0)?void 0:wr.id)==="modal-upload"){if(!Object(fe.e)(dt))return;if(!Nr.current){T.a.info({title:"\u63D0\u793A",centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:"\u8BF7\u5148\u62A5\u540D\uFF0C\u518D\u63D0\u4EA4\u4F5C\u54C1"});return}Gt(!0)}};Object(a.useEffect)(function(){if(It!=null&&It.upload_file){var Ft,Zt,wr;Lr([{name:It==null||((Ft=It.upload_file)===null||Ft===void 0)?void 0:Ft.title,status:"done",uid:"123456789"}]),pr(It==null?void 0:It.upload_file_url),Et(It==null||((Zt=It.upload_file)===null||Zt===void 0||((wr=Zt.url)===null||wr===void 0))?void 0:wr.split("/")[3])}},[It==null?void 0:It.upload_file]);var br={name:"file",multiple:!1,withCredentials:!0,action:X.a.API_SERVER+"/api/attachments.json",showUploadList:{showRemoveIcon:!1},fileList:st,onChange:function(Zt){var wr=Zt.file.status,er=[Object(L.a)({},Zt.file)];if(Lr(er),Zt.file.status==="uploading"&&an(!0),wr==="done"){var vt,yt;Et((vt=er[0])===null||vt===void 0||((yt=vt.response)===null||yt===void 0)?void 0:yt.id),an(!1)}wr==="error"&&(Lr([]),an(!1))},beforeUpload:function(Zt){var wr=Zt.size/1024/1024<1e3;return wr?Promise.resolve():(u.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E1000MB"),Promise.reject())}},Pr=function(){Gt(!0)};return Object(a.useImperativeHandle)(mt,function(){return{handleVisible:Pr}}),t.a.createElement("div",{ref:rn},Wt==="reward"?t.a.createElement(re,{userlist:At,dispatch:dt,rewarddata:Pt.reward_setting,is_signed:Pt.is_signed}):null,t.a.createElement("div",{style:{textAlign:"right"}},((At==null?void 0:At.admin)||(At==null?void 0:At.business)||Dt)&&t.a.createElement(S.a,{onClick:function(){return Ht(!1)}},"\u7F16\u8F91")),t.a.createElement(W.a,{value:Pt.md_content}),Pt&&Pt.attachments&&Pt.attachments.map(function(Ft,Zt){return t.a.createElement("div",null,t.a.createElement("a",{href:(X.a===null||X.a===void 0?void 0:X.a.API_SERVER)+Ft.url,target:"_self",download:Ft.title},t.a.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),t.a.createElement("span",{style:{color:"#000000"}},Ft.title),t.a.createElement("span",{style:{color:"#000000",marginLeft:"10px"}},Ft.filesize)))}),t.a.createElement(T.a,{centered:!0,title:"\u4E0A\u4F20\u4F5C\u54C1",visible:qt,okText:"\u63D0\u4EA4\u4F5C\u54C1",cancelText:"\u53D6\u6D88",confirmLoading:Dr,onCancel:function(){return Gt(!1)},onOk:Object(o.a)(r.a.mark(function Ft(){var Zt;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(!(!rr&&!Jt)){er.next=3;break}return Gt(!1),er.abrupt("return");case 3:return an(!0),er.next=6,Object(ne.a)("/api/competitions/".concat(sr,"/upload_file.json"),{method:"post",body:{attachment_id:rr,upload_file_url:Jt}});case 6:Zt=er.sent,Zt.status===0&&(Gt(!1),an(!1));case 8:case"end":return er.stop()}},Ft)}))},t.a.createElement("div",null,t.a.createElement(B.a,{align:"middle",className:"mb20"},t.a.createElement("span",null,"\u4F5C\u54C1\u94FE\u63A5\uFF1A"),t.a.createElement(U.a,{style:{width:416},value:Jt,onChange:function(Zt){var wr;return pr((wr=Zt.target)===null||wr===void 0?void 0:wr.value)}})),t.a.createElement(B.a,{align:"top"},t.a.createElement("span",{style:{lineHeight:"28px"}},"\u4F5C\u54C1\u6587\u4EF6\uFF1A"),t.a.createElement(y.a,br,t.a.createElement(S.a,{type:"primary",className:"mb10"},"\u4E0A\u4F20\u4F5C\u54C1"))))))},ee=Object(a.forwardRef)(pe),te=D("Ot1p"),ce=D("hJwl");function q(Tt){var it=Tt.ItemData,mt=Tt.setIssee,Ct=Tt.MenuItem,It=Tt.dispatch,Pt=Tt.identifier,Ht=Tt.ModelType,Wt=Tt.userinfo,dt=Tt.getrightdatas,At=Object(a.useState)([]),Dt=Object(h.a)(At,2),yr=Dt[0],tr=Dt[1],qt=Object(a.useState)(it.md_content),Gt=Object(h.a)(qt,2),nr=Gt[0],cr=Gt[1];Object(a.useEffect)(function(){var Et,_t=[];it==null||((Et=it.attachments)===null||Et===void 0)||Et.map(function(xt){var Jt={uid:xt.id,name:xt.title,response:{id:xt.id}};_t.push(Jt)}),tr(_t)},[it==null?void 0:it.attachments]);function st(){var Et,_t=[];return it==null||((Et=it.attachments)===null||Et===void 0)||Et.map(function(xt){var Jt={uid:xt==null?void 0:xt.id,name:xt.title,response:{id:xt.id}};_t.push(Jt)}),_t}var Lr={name:"file",multiple:!0,withCredentials:!0,action:X.a.API_SERVER+"/api/attachments.json",defaultFileList:st(),onRemove:function(_t){Object(ce.t)({id:_t.uid})},onChange:function(_t){var xt=_t.file.status;xt!=="uploading",xt==="removed"&&tr(_t.fileList),xt==="done"?(tr(_t.fileList),u.b.success("".concat(_t.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))):xt==="error"&&u.b.error("".concat(_t.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(_t){var xt=_t.size/1024/1024<150;return xt||u.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),xt}};console.log(Lr);function Fr(){return Cr.apply(this,arguments)}function Cr(){return Cr=Object(o.a)(r.a.mark(function Et(){var _t;return r.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return Jt.next=2,It({type:"competitions/updateMdContent",payload:{attachment_ids:rr(yr),competition_module_id:it.id,md_content_id:it.md_id,content:nr,identifier:Pt}});case 2:_t=Jt.sent,_t&&(u.b.info("\u63D0\u4EA4\u6210\u529F"),mt(!0),dt(Ct));case 4:case"end":return Jt.stop()}},Et)})),Cr.apply(this,arguments)}function rr(Et){var _t=[];return Et&&Et.map(function(xt){_t.push(xt.response.id)}),_t}return t.a.createElement("div",null,Ht==="reward"?t.a.createElement(re,{userlist:Wt,dispatch:It,rewarddata:it.reward_setting,is_signed:it.is_signed}):null,t.a.createElement(te.a,{defaultValue:nr,onChange:function(_t){return cr(_t)}}),t.a.createElement(y.a,Lr,t.a.createElement(S.a,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(S.a,{style:{width:"90px"},type:"primary",onClick:function(){return Fr()}},"\u63D0\u4EA4"),t.a.createElement(S.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return mt(!0)}},"\u53D6\u6D88")))}var Q=q,V=D("g9YV"),Z=D("wCAj"),be=D("Znn+"),ge=D("ZTPi");function Te(){return t.a.createElement("div",null,t.a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),t.a.createElement("div",{style:{textAlign:"center"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/competitions/trophy.png"}),t.a.createElement("p",null,"\u8981\u6293\u4F4F\u4E00\u5207\u673A\u4F1A\uFF0C\u5411\u6240\u6709\u4EBA\u8BC1\u660E\u81EA\u5DF1\uFF0C\u8BC1\u660E\u4F60\u80FD\u591F\u8FCE\u63A5\u8363\u8000")))}var Je=Te,rt=D("5Dmo"),nt=D("3S7+"),at=D("jCWc"),ct=D("kPKH"),ht=D("IzEo"),He=D("bx4M");function Re(Tt){var it=Tt.oneItem,mt=Tt.towItem,Ct=Tt.threeItem;return t.a.createElement("div",{style:{textAlign:"center"}},t.a.createElement(B.a,{gutter:16,style:{justifyContent:"center"}},t.a.createElement(ct.a,{span:6,style:{marginTop:"30px",marginRight:"20px"}},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.towtop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan-two.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(mt==null?void 0:mt.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(mt==null?void 0:mt.user_image)}),(mt==null?void 0:mt.competition_prize)&&t.a.createElement("p",{className:O.a.prize},mt==null?void 0:mt.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},mt==null?void 0:mt.record_user_name)))),className:O.a.towdiv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},mt==null?void 0:mt.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},mt==null?void 0:mt.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(mt==null?void 0:mt.extra_score)+parseFloat(mt==null?void 0:mt.score),"\u5206"))),t.a.createElement(ct.a,{span:6},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.onetop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(it==null?void 0:it.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(it==null?void 0:it.user_image)}),(it==null?void 0:it.competition_prize)&&t.a.createElement("p",{className:O.a.prize},it==null?void 0:it.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},it==null?void 0:it.record_user_name)))),className:O.a.onediv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},it==null?void 0:it.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},it==null?void 0:it.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(it==null?void 0:it.extra_score)+parseFloat(it==null?void 0:it.score),"\u5206"))),t.a.createElement(ct.a,{span:6,style:{marginTop:"40px",marginLeft:"20px"}},t.a.createElement(He.a,{title:t.a.createElement("div",{className:O.a.threetop},t.a.createElement("img",{style:{marginTop:"20px"},src:X.a.IMG_SERVER+"/images/educoder/huangguan-three.png"}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(E.a,{to:"/users/".concat(Ct==null?void 0:Ct.user_login,"/classrooms")},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(Ct==null?void 0:Ct.user_image)}),(Ct==null?void 0:Ct.competition_prize)&&t.a.createElement("p",{className:O.a.prize},Ct==null?void 0:Ct.competition_prize),t.a.createElement("p",{style:{color:"#05101a",fontSize:"16px",marginTop:"10px"}},Ct==null?void 0:Ct.record_user_name)))),className:O.a.threediv,bordered:!1},t.a.createElement("p",{style:{fontSize:"14px"}},Ct==null?void 0:Ct.school_name),t.a.createElement("p",{style:{fontSize:"18px"}},Ct==null?void 0:Ct.spend_time),t.a.createElement("p",{style:{fontSize:"26px",color:"#a55b29"}},parseFloat(Ct==null?void 0:Ct.extra_score)+parseFloat(Ct==null?void 0:Ct.score),"\u5206")))))}var tt=Re;function ft(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt,At,Dt,yr,tr,qt,Gt,nr,cr,st,Lr,Fr,Cr,rr,Et,_t,xt,Jt,pr,dr,fr,Dr,an,qe=Tt.ItemData;return t.a.createElement("div",null,t.a.createElement("p",{style:{fontSize:"24px",color:"#05101a"}},"\u603B\u6392\u884C"),t.a.createElement(tt,{oneItem:qe==null?void 0:qe.teams[0],towItem:qe==null?void 0:qe.teams[1],threeItem:qe==null?void 0:qe.teams[2]}),(qe==null||((it=qe.user_ranks)===null||it===void 0)?void 0:it.length)>0&&t.a.createElement("div",{className:O.a.myTeam},(qe==null||((mt=qe.user_ranks)===null||mt===void 0||((Ct=mt[0])===null||Ct===void 0))?void 0:Ct.success)===!1?t.a.createElement("span",{style:{marginRight:"70px",padding:"10px"}},t.a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u664B\u7EA7\uFF1A",t.a.createElement("span",{style:{color:(qe==null||((It=qe.user_ranks)===null||It===void 0||((Pt=It[0])===null||Pt===void 0))?void 0:Pt.success)===!1?"red":"green"}},(qe==null||((Ht=qe.user_ranks)===null||Ht===void 0||((Wt=Ht[0])===null||Wt===void 0))?void 0:Wt.success)===!1?"\u5426":qe!=null&&(dt=qe.user_ranks)!==null&&dt!==void 0&&(At=dt[0])!==null&&At!==void 0&&At.success?"\u662F":"")),(qe==null||((Dt=qe.user_ranks)===null||Dt===void 0||((yr=Dt[0])===null||yr===void 0))?void 0:yr.awards)&&t.a.createElement("p",{style:{marginBottom:"0px"}}," \u662F\u5426\u83B7\u5956\uFF1A",t.a.createElement("span",null,(qe==null||((tr=qe.user_ranks)===null||tr===void 0||((qt=tr[0])===null||qt===void 0))?void 0:qt.awards)==="percent_20"?"\u4E8C\u7B49\u5956":(qe==null||((Gt=qe.user_ranks)===null||Gt===void 0||((nr=Gt[0])===null||nr===void 0))?void 0:nr.awards)==="percent_30"?"\u4E09\u7B49\u5956":"\u6CA1\u6709\u83B7\u5F97\u5956\u9879"))):t.a.createElement("span",{style:{marginRight:"70px"}},"\u6211\u7684\u6392\u540D\uFF1A",qe==null||((cr=qe.user_ranks)===null||cr===void 0||((st=cr[0])===null||st===void 0))?void 0:st.rank),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6218\u961F\u540D"},qe==null||((Lr=qe.user_ranks)===null||Lr===void 0||((Fr=Lr[0])===null||Fr===void 0))?void 0:Fr.team_name)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u65F6\u95F4"},qe==null||((Cr=qe.user_ranks)===null||Cr===void 0||((rr=Cr[0])===null||rr===void 0))?void 0:rr.cost_time)),t.a.createElement("span",{style:{flex:1,textAlign:"center"}},t.a.createElement(nt.a,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},qe==null||((Et=qe.user_ranks)===null||Et===void 0||((_t=Et[0])===null||_t===void 0))?void 0:_t.extra_score)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6BD4\u8D5B\u6210\u7EE9"},qe==null||((xt=qe.user_ranks)===null||xt===void 0||((Jt=xt[0])===null||Jt===void 0))?void 0:Jt.score)),t.a.createElement("span",null,t.a.createElement(nt.a,{title:"\u603B\u5206"},parseFloat(qe==null||((pr=qe.user_ranks)===null||pr===void 0||((dr=pr[0])===null||dr===void 0))?void 0:dr.extra_score)+parseFloat(qe==null||((fr=qe.user_ranks)===null||fr===void 0||((Dr=fr[0])===null||Dr===void 0))?void 0:Dr.score)||0))),qe==null||((an=qe.teams)===null||an===void 0)?void 0:an.map(function(sr,Nr){return t.a.createElement("div",{className:O.a.bottomItem},t.a.createElement("span",{style:{color:"#0152d9",marginRight:"20px"}},Nr+1),t.a.createElement(E.a,{to:"/users/".concat(sr==null?void 0:sr.user_login,"/classrooms"),style:{marginRight:"80px",position:"relative"}},t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(sr==null?void 0:sr.user_image)}),(sr==null?void 0:sr.competition_prize)&&t.a.createElement("span",{className:O.a.spanrightradius},sr==null?void 0:sr.competition_prize)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6218\u961F\u540D"},sr==null?void 0:sr.team_name)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u5355\u4F4D/\u5B66\u6821\u540D"},sr.school_name)),t.a.createElement("span",{style:{flex:1,textAlign:"center"}},t.a.createElement(nt.a,{title:"\u8D4B\u80FD\u8D5B\u52A0\u5206"},sr.extra_score)),t.a.createElement("span",{style:{flex:1}},t.a.createElement(nt.a,{title:"\u6BD4\u8D5B\u6210\u7EE9"},sr.score)),t.a.createElement("span",{style:{color:"#0152d9"}},t.a.createElement(nt.a,{title:"\u603B\u5206"},parseFloat(sr.extra_score)+parseFloat(sr.score))))}))}var Qe=ft,lt=ge.a.TabPane;function Ue(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.ChartRules,dt=Tt.ItemData,At=Tt.getCharts,Dt=Tt.Selectkey,yr=Tt.getChartRules,tr=Tt.userinfo,qt=Tt.Editable,Gt=Tt.HeaderDetail,nr=Object(a.useState)(!1),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(""),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(!0),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(a.useState)(),sr=Object(h.a)(qe,2),Nr=sr[0],rn=sr[1],xr=Object(w.i)(),br=xr.identifier;Object(a.useEffect)(function(){if(Jt){var wr,er=Wt==null||((wr=Wt.stages)===null||wr===void 0)?void 0:wr[0];if(an(er),er!=null&&er.id){var vt,yt,zt;((Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog")&&At(er==null?void 0:er.id),Et(((vt=Wt.rule_contents)===null||vt===void 0||((yt=vt.filter(function(fn){return parseInt(fn.competition_stage_id)===parseInt(er==null?void 0:er.id)}))===null||yt===void 0||((zt=yt[0])===null||zt===void 0))?void 0:zt.content)||"")}else{var Mt,Mr,cn;(Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog",Et(((Mt=Wt.rule_contents)===null||Mt===void 0||((Mr=Mt.filter(function(fn){return parseInt(fn.competition_stage_id)===0}))===null||Mr===void 0||((cn=Mr[0])===null||cn===void 0))?void 0:cn.content)||"")}}},[Wt]);function Pr(){return Ft.apply(this,arguments)}function Ft(){return Ft=Object(o.a)(r.a.mark(function wr(){var er,vt,yt,zt,Mt,Mr,cn,fn,kr;return r.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(rr){Ur.next=3;break}return u.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ur.abrupt("return");case 3:if(pr(!1),er=Dr==null?void 0:Dr.id,!er){Ur.next=12;break}return Ur.next=8,Object(ne.a)("/api/competitions/".concat(br,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:rr,md_content_id:(vt=Wt.rule_contents)===null||vt===void 0||((yt=vt.filter(function(gn){return parseInt(gn.competition_stage_id)===parseInt(er)}))===null||yt===void 0||((zt=yt[0])===null||zt===void 0))?void 0:zt.id,stage_id:Dr==null?void 0:Dr.id}});case 8:Mt=Ur.sent,Mt.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Lr(!1),yr()),Ur.next=16;break;case 12:return Ur.next=14,Object(ne.a)("/api/competitions/".concat(br,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:rr,md_content_id:(Mr=Wt.rule_contents)===null||Mr===void 0||((cn=Mr.filter(function(gn){return parseInt(gn.competition_stage_id)===0}))===null||cn===void 0||((fn=cn[0])===null||fn===void 0))?void 0:fn.id,stage_id:Dr==null?void 0:Dr.id}});case 14:kr=Ur.sent,kr.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Lr(!1),yr());case 16:case"end":return Ur.stop()}},wr)})),Ft.apply(this,arguments)}var Zt=[{title:"\u6392\u540D",dataIndex:"name",align:"center",key:"name",render:function(er,vt,yt){return t.a.createElement("span",null,yt+1)}},{title:"\u5934\u50CF",dataIndex:"user_image",align:"center",key:"user_image",render:function(er){return t.a.createElement("img",{className:O.a.imgradius,src:X.a.IMG_SERVER+"/images/".concat(er)})}},{title:"\u6218\u961F\u540D\u79F0",dataIndex:"team_name",key:"team_name",render:function(er){return t.a.createElement("span",{title:er},er&&(er==null?void 0:er.length)>=15?(er==null?void 0:er.substr(0,15))+"...":er||"--")}},{title:"\u5355\u4F4D",dataIndex:"school_name",key:"school_name",align:"center",render:function(er){return t.a.createElement("span",null,er||"--")}},{title:(Gt==null?void 0:Gt.task)==="mAP"?"mAP\u6307\u6807":(Gt==null?void 0:Gt.task)==="Jittor-3"?"\u603B\u5206":"top1\u6307\u6807",dataIndex:"score",key:"score",render:function(er){return t.a.createElement("span",null,er||"--")}}];return t.a.createElement("div",null,(Wt==null||((it=Wt.stages)===null||it===void 0)?void 0:it.length)>0?null:t.a.createElement(Je,null),(Wt==null||((mt=Wt.stages)===null||mt===void 0)?void 0:mt.length)>0&&t.a.createElement(ge.a,{animated:!0,tabBarExtraContent:((tr==null?void 0:tr.admin)||(tr==null?void 0:tr.business)||qt)&&t.a.createElement(S.a,{onClick:function(){Lr(!0)}},"\u7F16\u8F91"),onChange:function(er){var vt,yt,zt,Mt,Mr;Lr(!1);var cn=Wt==null||((vt=Wt.stages)===null||vt===void 0)?void 0:vt.filter(function(kr){return parseInt(er)===parseInt(kr==null?void 0:kr.id)})[0];an(cn);var fn=cn==null||((yt=cn.children)===null||yt===void 0)?void 0:yt[0];rn(fn),Et(((zt=Wt.rule_contents)===null||zt===void 0||((Mt=zt.filter(function(kr){return parseInt(kr.competition_stage_id)===parseInt(cn==null?void 0:cn.id)}))===null||Mt===void 0||((Mr=Mt[0])===null||Mr===void 0))?void 0:Mr.content)||""),At((fn==null?void 0:fn.id)||er)}},Wt&&Wt.stages.map(function(wr,er){return t.a.createElement(lt,{tab:wr.name,key:wr.id===null?0:wr.id},st===!1&&Wt&&Wt.rule_contents.map(function(vt,yt){if(wr.id===vt.competition_stage_id)return t.a.createElement(W.a,{key:yt,value:vt.content===void 0||vt.content===null?"":vt.content});if(wr.id===null&&vt.competition_stage_id===0)return t.a.createElement(W.a,{key:yt,value:vt.content===void 0||vt.content===null?"":vt.content})}))})),(Dr==null||((Ct=Dr.children)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{activeKey:(Nr==null?void 0:Nr.id)+"",onChange:function(er){var vt,yt=Dr==null||((vt=Dr.children)===null||vt===void 0)?void 0:vt.filter(function(zt){return parseInt(er)===parseInt(zt==null?void 0:zt.id)})[0];rn(yt),At(er)}},Dr==null||((It=Dr.children)===null||It===void 0)?void 0:It.map(function(wr,er){return t.a.createElement(lt,{tab:wr.name,key:wr.id===null?0:wr.id})})),st&&t.a.createElement("div",null,t.a.createElement(te.a,{defaultValue:rr,onChange:function(er){Et(er)}}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(S.a,{style:{width:"90px"},type:"primary",onClick:function(){return Pr()}},"\u63D0\u4EA4"),t.a.createElement(S.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return Lr(!1)}},"\u53D6\u6D88"))),(dt==null||((Pt=dt.teams)===null||Pt===void 0)?void 0:Pt.length)>0&&((Gt==null?void 0:Gt.task)==="mAP"||(Gt==null?void 0:Gt.task)==="dog"||(Gt==null?void 0:Gt.task)==="Jittor-3")?t.a.createElement(Z.a,{dataSource:dt==null?void 0:dt.teams,columns:Zt,pagination:!1}):(dt==null||((Ht=dt.teams)===null||Ht===void 0)?void 0:Ht.length)>0&&t.a.createElement(Qe,{ItemData:dt}))}var Le=Ue,Ie=D("/zsF"),Ce=D("PArb");function Se(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt=Tt.Prize,At=Object(w.i)(),Dt=Object(a.useState)([{type:1,name:"\u56E2\u4F53\u5956\u8BC1\u4E66"},{type:2,name:"\u4E2A\u4EBA\u5956\u8BC1\u4E66"},{type:3,name:"\u4F18\u79C0\u6307\u5BFC\u6559\u5E08\u8BC1\u4E66"}]),yr=Object(h.a)(Dt,2),tr=yr[0],qt=yr[1],Gt=function(){var nr=Object(o.a)(r.a.mark(function cr(st){var Lr;return r.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return Cr.next=2,Object(ce.u)({type:st.type,id:At.identifier});case 2:Lr=Cr.sent,(Lr==null?void 0:Lr.status)===0&&(location.href="/competitions/exports?id=".concat(At.identifier,"&type=").concat(st.type));case 4:case"end":return Cr.stop()}},cr)}));return function(st){return nr.apply(this,arguments)}}();return t.a.createElement("div",null,t.a.createElement("p",{className:O.a.downloadpdf},"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u7684\u4E2A\u4EBA\u4FE1\u606F\u7ECF\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u4E2A\u4EBA\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\uFF1B\u56E2\u961F\u961F\u5458\u4FE1\u606F\u5168\u90E8\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u56E2\u961F\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\u3002"),t.a.createElement("p",{style:{marginTop:"30px",fontSize:"16px",color:"#000"}},"\u8BC1\u4E66\u60C5\u51B5"),(dt==null||((it=dt.personal_certifications)===null||it===void 0)?void 0:it.length)>0?t.a.createElement("p",null,t.a.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A"),t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/pdfs.png"}),t.a.createElement("a",{style:{marginLeft:"5px"},href:X.a.API_SERVER+"".concat(dt==null||((mt=dt.personal_certifications[0])===null||mt===void 0)?void 0:mt.url)},"\u7ACB\u5373\u4E0B\u8F7D")):t.a.createElement("p",null,t.a.createElement("span",null,"\u4E2A\u4EBA\u8BC1\u4E66\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210"),t.a.createElement("span",{style:{marginLeft:"20px"}},"\u539F\u56E0\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u7EC4\u59D4\u4F1A\u672A\u5B8C\u6210\u8BC1\u4E66\u5BA1\u6279\uFF0C\u8BF7\u7A0D\u540E")),(dt==null||((Ct=dt.team_certifications)===null||Ct===void 0)?void 0:Ct.length)>0?t.a.createElement("p",null,t.a.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A"),t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/educoder/pdfs.png"}),t.a.createElement("a",{style:{marginLeft:"5px"},href:X.a.API_SERVER+"".concat(dt==null||((It=dt.team_certifications[0])===null||It===void 0)?void 0:It.url)},"\u7ACB\u5373\u4E0B\u8F7D")):t.a.createElement("p",null,t.a.createElement("span",null,"\u56E2\u961F\u8BC1\u4E66\uFF1A")," ",t.a.createElement("span",{style:{color:"#000"}},"\u6682\u672A\u751F\u6210")),t.a.createElement(Ce.a,null),(dt==null||((Pt=dt.teams)===null||Pt===void 0)?void 0:Pt.length)>0?t.a.createElement("div",null,t.a.createElement("p",null,(dt==null?void 0:dt.teams)&&(dt==null||((Ht=dt.teams[0])===null||Ht===void 0)?void 0:Ht.name),"\u6218\u961F\u4FE1\u606F\u586B\u62A5\u6982\u51B5"),t.a.createElement("p",{style:{display:"flex",height:"50px",background:"#f5f5f5",alignItems:"center",justifyContent:"space-around"}},t.a.createElement("span",{style:{width:"5%"}},"\u89D2\u8272"),t.a.createElement("span",{style:{width:"5%"}},"\u59D3\u540D"),t.a.createElement("span",{style:{width:"10%"}},"\u5B9E\u540D\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},"\u804C\u4E1A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},"\u624B\u673A\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"10%"}},"\u90AE\u7BB1\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"50%",textAlign:"center"}},"\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7\u4FE1\u606F\uFF08\u961F\u957F\u586B\u5199\uFF09")),(dt==null?void 0:dt.teams)&&(dt==null||((Wt=dt.teams[0])===null||Wt===void 0)?void 0:Wt.team_members.map(function(nr,cr){var st,Lr,Fr,Cr,rr,Et;return t.a.createElement("p",{className:O.a.teamItem},t.a.createElement("span",{style:{width:"5%"}},nr==null?void 0:nr.role),t.a.createElement("span",{style:{width:"5%"}},nr==null?void 0:nr.name),t.a.createElement("span",{style:{width:"10%"}},(nr==null?void 0:nr.real_name_auth)==="authed"?"\u5DF2\u8BA4\u8BC1":(nr==null?void 0:nr.real_name_auth)==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},(nr==null?void 0:nr.professional_auth)==="authed"?"\u5DF2\u8BA4\u8BC1":(nr==null?void 0:nr.professional_auth)==="authing"?"\u5F85\u5BA1\u6838":"\u672A\u8BA4\u8BC1"),t.a.createElement("span",{style:{width:"10%"}},nr!=null&&nr.phone_binded?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"),t.a.createElement("span",{style:{width:"10%"}},nr!=null&&nr.email_binded?"\u5DF2\u7ED1\u5B9A":"\u672A\u7ED1\u5B9A"),(nr==null?void 0:nr.role)==="\u961F\u957F"?t.a.createElement("span",{style:{width:"50%",textAlign:"center"}},(dt==null?void 0:dt.teams)&&(dt==null||((st=dt.teams[0])===null||st===void 0||((Lr=st.bank_account)===null||Lr===void 0))?void 0:Lr.bank),(dt==null?void 0:dt.teams)&&(dt==null||((Fr=dt.teams[0])===null||Fr===void 0||((Cr=Fr.bank_account)===null||Cr===void 0))?void 0:Cr.second_bank),(dt==null?void 0:dt.teams)&&(dt==null||((rr=dt.teams[0])===null||rr===void 0||((Et=rr.bank_account)===null||Et===void 0))?void 0:Et.card_no)):t.a.createElement("span",{style:{width:"50%"}}))}))):null,t.a.createElement(B.a,{gutter:[20,20]},tr.map(function(nr,cr){return t.a.createElement(ct.a,{key:cr},t.a.createElement(S.a,{type:"primary",onClick:function(){return Gt(nr)}},nr.name))})))}var ke=Se,Ne=D("0Owb"),et=D("7Kak"),$e=D("9yH6"),bt=D("y8nQ"),gt=D("Vl3Y"),Ut=D("1vsH"),Nt=D("Dgm7"),hr=D.n(Nt),mr=D("NnUe"),St=D.n(mr),Yr=y.a.Dragger,Jr=10,Hr=function(it){var mt=it.user,Ct=it.account,It=it.globalSetting,Pt=it.loading,Ht=it.dispatch,Wt=Object(m.a)(it,["user","account","globalSetting","loading","dispatch"]),dt=gt.a.useForm(),At=Object(h.a)(dt,1),Dt=At[0],yr=Object(a.useState)({}),tr=Object(h.a)(yr,2),qt=tr[0],Gt=tr[1],nr=Object(a.useState)(!0),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)(),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(a.useState)(),xt=Object(h.a)(_t,2),Jt=xt[0],pr=xt[1],dr=Object(a.useState)(),fr=Object(h.a)(dr,2),Dr=fr[0],an=fr[1],qe=Object(a.useState)(),sr=Object(h.a)(qe,2),Nr=sr[0],rn=sr[1];Object(a.useEffect)(function(){if(!Ct.basicInfo)return;var er=Ct.basicInfo,vt={name:er.show_realname?er.name:Object(Ut.E)(er.name),gender:er.gender};Et(er.name),Lr(er.show_realname),Dt.setFieldsValue(vt),Gt(vt)},[Ct.basicInfo]);var xr=function(vt){if(vt.file.status==="uploading"){rn(!0);return}if(vt.file.status==="done"){var yt;console.log(vt.file,vt.file.response),an((yt=vt.file.response)===null||yt===void 0?void 0:yt.id),Object(Ut.B)(vt.file.originFileObj,function(zt){pr(zt),rn(!1)})}},br=function(vt){Gt(Object(L.a)({},Dt.getFieldsValue())),"name"in vt&&Et(vt.name)},Pr=function(){var vt=!st;Lr(vt);var yt=vt?rr:Object(Ut.E)(rr);Dt.setFieldsValue({name:yt})},Ft=function(){var er=Object(o.a)(r.a.mark(function vt(yt){var zt,Mt,Mr,cn,fn,kr,on,Ur;return r.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:if(Mr=yt||{},cn=Mr.name,fn=Mr.gender,kr=Mr.idNumber,Jt){Vr.next=4;break}return u.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),Vr.abrupt("return");case 4:return Vr.next=6,Ht({type:"account/applyRealNameAuth",payload:{id:((zt=Ct.basicInfo)===null||zt===void 0?void 0:zt.id)||((Mt=mt.userInfo)===null||Mt===void 0?void 0:Mt.login),name:cn,gender:fn,id_number:kr,show_realname:st,attachment_ids:[Dr]}});case 6:on=Vr.sent,Zt(),on&&(u.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Ht({type:"account/getBasicInfo",payload:{login:(Ur=mt.userInfo)===null||Ur===void 0?void 0:Ur.login}}));case 9:case"end":return Vr.stop()}},vt)}));return function(yt){return er.apply(this,arguments)}}(),Zt=function(){Ht({type:"account/setActionTabs",payload:{}})},wr={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:"".concat(X.a.API_SERVER,"/api/attachments.json"),className:St.a.uploader,onChange:xr,beforeUpload:function(vt){var yt=vt.type==="image/jpeg"||vt.type==="image/png"||vt.type==="image/jpg"||vt.type==="image/bmp";return yt||u.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),yt}};return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ct.actionTabs.key==="Account-RealNameAuth",title:"\u4FEE\u6539\u5B9E\u540D\u4FE1\u606F",width:"600px",footer:null},t.a.createElement(d.a,{spinning:!!Nr},t.a.createElement(gt.a,{className:St.a.formWrap,form:Dt,layout:"horizontal",onValuesChange:br,onFinish:Ft},t.a.createElement(gt.a.Item,{label:"\u59D3\u540D",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Jr,"\u4E2A\u5B57\u7B26")},{validator:Ut.H}],extra:t.a.createElement("span",null,st?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")},t.a.createElement(U.a,{disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Jr,"\u4E2A\u5B57\u7B26"),maxLength:Jr,addonAfter:t.a.createElement("i",{className:"iconfont ".concat(st?"icon-xianshi":"icon-yincang"," font18 ").concat(St.a.color0152d9),onClick:Pr})})),t.a.createElement(gt.a.Item,{label:"\u6027\u522B\uFF1A",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},t.a.createElement($e.a.Group,null,t.a.createElement($e.a,{value:0},"\u7537"),t.a.createElement($e.a,{value:1},"\u5973"))),t.a.createElement(gt.a.Item,{label:"\u8BC1\u4EF6\u53F7\uFF1A",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"}]},t.a.createElement(U.a,{placeholder:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"})),t.a.createElement(gt.a.Item,{label:"\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",labelCol:{span:3}},t.a.createElement("div",{className:St.a.flexRow},t.a.createElement("div",{className:"".concat(St.a.flexColumn," ").concat(St.a.example)},t.a.createElement("span",{className:St.a.exampleImg},t.a.createElement("img",{src:hr.a})),t.a.createElement("span",{className:"tc"},t.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),t.a.createElement("p",{className:"".concat(St.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),t.a.createElement("div",{className:St.a.flexColumn},t.a.createElement(Yr,Object(Ne.a)({},wr,{accept:".png,.jpg,.bmp,.jpeg"}),Jt?t.a.createElement("img",{src:Jt,className:St.a.uploadImg}):t.a.createElement("div",{className:St.a.imageTip},t.a.createElement("p",null,t.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(St.a.uploadTipIcon)})),t.a.createElement("p",{className:St.a.uploadTip},t.a.createElement("a",{className:St.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),t.a.createElement("span",{className:"tc"},t.a.createElement("p",{className:St.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),t.a.createElement("div",{className:St.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:Zt},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:Pt["account/applyRealNameAuth"]},"\u4FDD\u5B58"))),t.a.createElement("div",{className:St.a.note},t.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),t.a.createElement("p",null,"1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),t.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),t.a.createElement("p",null,"3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"),t.a.createElement("p",null,"4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),t.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),t.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3EduCoder\u8D26\u53F7\u3002"),t.a.createElement("p",null,"7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))))},un=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.account,Ct=Tt.loading,It=Tt.globalSetting;return{user:it,account:mt,globalSetting:It,loading:Ct.effects}})(Hr),Ar=D("O3gP"),vn=D("lrIw"),mn=D("KXlV"),Kt=D.n(mn),or=D("Sjjz"),Xt=D.n(or),gr=U.a.TextArea,Xr=function(it){var mt=it.account,Ct=it.globalSetting,It=it.loading,Pt=it.dispatch,Ht=it.schoolName,Wt=it.departmentName,dt=it.visible,At=it.onClose,Dt=At===void 0?function(){}:At,yr=it.onSuccess,tr=yr===void 0?function(){}:yr,qt=Object(m.a)(it,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),Gt=gt.a.useForm(),nr=Object(h.a)(Gt,1),cr=nr[0],st=Object(a.useRef)();Object(a.useEffect)(function(){st.current=qt.schoolId},[qt.schoolId]),Object(a.useEffect)(function(){cr.setFieldsValue({department:Wt})},[Wt]);var Lr=function(){var Fr=Object(o.a)(r.a.mark(function Cr(rr){var Et,_t,xt,Jt;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return Et=rr||{},_t=Et.department,xt=Et.remarks,dr.next=3,Pt({type:"account/appplyDepartment",payload:{school_id:st.current,name:_t,remarks:xt}});case 3:Jt=dr.sent,Dt(),Jt&&(u.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),tr(_t));case 6:case"end":return dr.stop()}},Cr)}));return function(rr){return Fr.apply(this,arguments)}}();return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:dt,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},t.a.createElement(gt.a,{className:Xt.a.formWrap,form:cr,labelCol:{span:4},wrapperCol:{span:20},onFinish:Lr},t.a.createElement(gt.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Ht),t.a.createElement(gt.a.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},t.a.createElement(U.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),t.a.createElement(gt.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},t.a.createElement(gr,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),t.a.createElement("div",{className:Xt.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:function(){Dt()}},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:It["account/appplyDepartment"]},"\u4FDD\u5B58")))))},kn=Object(f.a)(function(Tt){var it=Tt.account,mt=Tt.loading,Ct=Tt.globalSetting;return{account:it,globalSetting:Ct,loading:mt.effects}})(Xr),Ln=D("6UJt"),tn=D("DFOY"),ur=D("jO45"),Xn=D("jN4g"),hi=D("gJ3r"),$n=D("jwmR"),Zr=D.n($n),Bn=function(it,mt){return mt.some(function(Ct){return Ct.label.toLowerCase().indexOf(it.toLowerCase())>-1})},si=U.a.TextArea,li=function(it){var mt=it.account,Ct=it.globalSetting,It=it.loading,Pt=it.dispatch,Ht=it.schoolName,Wt=it.visible,dt=it.onClose,At=dt===void 0?function(){}:dt,Dt=it.onSuccess,yr=Dt===void 0?function(){}:Dt,tr=Object(m.a)(it,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),qt=gt.a.useForm(),Gt=Object(h.a)(qt,1),nr=Gt[0];Object(a.useEffect)(function(){nr.setFieldsValue({name:Ht})},[Ht]);var cr=function(){var st=Object(o.a)(r.a.mark(function Lr(Fr){var Cr,rr,Et,_t,xt,Jt,pr;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return Cr=Fr||{},rr=Cr.name,Et=Cr.city,_t=Et===void 0?[]:Et,xt=Cr.address,Jt=Cr.remarks,fr.next=3,Pt({type:"account/appplySchool",payload:{name:rr,province:_t[0],city:_t[1],address:xt,remarks:Jt}});case 3:pr=fr.sent,At(),pr&&(u.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),yr(rr));case 6:case"end":return fr.stop()}},Lr)}));return function(Fr){return st.apply(this,arguments)}}();return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Wt,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},t.a.createElement(gt.a,{className:Zr.a.formWrap,form:nr,labelCol:{span:4},wrapperCol:{span:20},onFinish:cr},t.a.createElement(gt.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},t.a.createElement(U.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),t.a.createElement("div",{className:"".concat(Zr.a.flexRow," ").concat(Zr.a.example)},t.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),t.a.createElement("div",{className:Zr.a.flexColumn},t.a.createElement("div",null,t.a.createElement(ur.a,{style:{color:"rgb(82, 196, 26)"}}),t.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),t.a.createElement("div",null,t.a.createElement(Xn.a,{style:{color:"red"}}),t.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),t.a.createElement(gt.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},t.a.createElement(tn.a,{allowClear:!0,size:"large",options:hi.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Bn}})),t.a.createElement(gt.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},t.a.createElement(U.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),t.a.createElement(gt.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},t.a.createElement(si,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),t.a.createElement("div",{className:Zr.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:function(){At()}},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:It["account/appplySchool"]},"\u4FDD\u5B58")))))},wt=Object(f.a)(function(Tt){var it=Tt.account,mt=Tt.loading,Ct=Tt.globalSetting;return{account:it,globalSetting:Ct,loading:mt.effects}})(li),$t=ye.a.Option,en=y.a.Dragger,Cn=function(it){var mt,Ct,It=it.user,Pt=it.account,Ht=it.globalSetting,Wt=it.loading,dt=it.dispatch,At=it.Scoid,Dt=Object(m.a)(it,["user","account","globalSetting","loading","dispatch","Scoid"]),yr=gt.a.useForm(),tr=Object(h.a)(yr,1),qt=tr[0],Gt=Object(a.useState)({}),nr=Object(h.a)(Gt,2),cr=nr[0],st=nr[1],Lr=Object(a.useState)([]),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)([]),_t=Object(h.a)(Et,2),xt=_t[0],Jt=_t[1],pr=Object(a.useState)([]),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)([]),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(a.useState)(),Zt=Object(h.a)(Ft,2),wr=Zt[0],er=Zt[1],vt=Object(a.useState)(),yt=Object(h.a)(vt,2),zt=yt[0],Mt=yt[1],Mr=Object(a.useState)(),cn=Object(h.a)(Mr,2),fn=cn[0],kr=cn[1],on=Object(a.useState)(),Ur=Object(h.a)(on,2),gn=Ur[0],Vr=Ur[1];Object(a.useEffect)(function(){yn()},[]),Object(a.useEffect)(function(){Object(o.a)(r.a.mark(function Ve(){var We;return r.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(At){pt.next=2;break}return pt.abrupt("return");case 2:return pt.next=4,ei(At);case 4:We=pt.sent,Dr(We==null?void 0:We.departments);case 6:case"end":return pt.stop()}},Ve)}))()},[At]);var yn=function(){var Ve=Object(o.a)(r.a.mark(function We(){var Ze;return r.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,dt({type:"account/getSchoolOption"});case 2:Ze=kt.sent,rr(Ze==null?void 0:Ze.schools);case 4:case"end":return kt.stop()}},We)}));return function(){return Ve.apply(this,arguments)}}(),ei=function(We){return dt({type:"account/getDepartmentOption",payload:{id:We}})};Object(a.useEffect)(function(){if(!Pt.basicInfo)return;var Ve=Pt.basicInfo,We={identity:Ve.identity,school:Ve.school_name,department:Ve.department_name,studentNo:Ve.student_id,jobTitle:Ve.identity=="teacher"?Ve.technical_title:"\u6559\u6388",manager:Ve.identity=="professional"?Ve.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};qt.setFieldsValue(We),st(We)},[Pt.basicInfo]);var Me=function(){kr(!0)},Ge=function(){if(!Cr.find(function(We){return We.name===cr.school})){u.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Vr(!0)},Ye=function(We){if(st(Object(L.a)({},qt.getFieldsValue())),"school"in We){Jt(Cr.filter(function(pt){return pt.name.includes(We.school)}));var Ze=(Cr.find(function(pt){return pt.name===We.school})||{}).id;Ze?Fe(We.school):(qt.setFieldsValue({department:""}),st(Object(L.a)(Object(L.a)({},cr),{school:We.school,department:""})))}},Fe=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze,pt){var kt,jt,Yt,Ir,Qr,$r;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Ir=(kt=Cr.find(function(sn){return sn.name===Ze}))===null||kt===void 0?void 0:kt.id,Kr.next=3,ei(Ir);case 3:if(Kr.t0=Kr.sent,Kr.t0){Kr.next=6;break}Kr.t0={};case 6:Qr=Kr.t0,Dr(Qr==null?void 0:Qr.departments),$r=pt||(Qr==null||((jt=Qr.departments)===null||jt===void 0||((Yt=jt[0])===null||Yt===void 0))?void 0:Yt.name),qt.setFieldsValue({department:$r}),st(Object(L.a)(Object(L.a)({},cr),{school:Ze,department:$r}));case 11:case"end":return Kr.stop()}},We)}));return function(Ze,pt){return Ve.apply(this,arguments)}}(),Ee=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze){return r.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,yn();case 2:qt.setFieldsValue({school:Ze,department:""}),st(Object(L.a)(Object(L.a)({},cr),{school:Ze,department:""}));case 4:case"end":return kt.stop()}},We)}));return function(Ze){return Ve.apply(this,arguments)}}(),Pe=function(We){if(We.file.status==="uploading"){Mt(!0);return}if(We.file.status==="done"){var Ze;console.log(We.file,We.file.response),er((Ze=We.file.response)===null||Ze===void 0?void 0:Ze.id),Object(Ut.B)(We.file.originFileObj,function(pt){Pr(pt),Mt(!1)})}},_e=function(){var Ve=Object(o.a)(r.a.mark(function We(Ze){var pt,kt,jt,Yt,Ir,Qr,$r,nn,Kr,sn,ln,xn,hn,jn,pn,jr;return r.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:if(Ir=Ze||{},Qr=Ir.school,$r=Ir.department,nn=Ir.identity,Kr=Ir.studentNo,sn=Ir.jobTitle,ln=Ir.manager,br){dn.next=4;break}return u.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),dn.abrupt("return");case 4:return xn=(pt=Cr.find(function(bn){return bn.name===Qr}))===null||pt===void 0?void 0:pt.id,hn=(kt=fr.find(function(bn){return bn.name===$r}))===null||kt===void 0?void 0:kt.id,nn==="student"?jn=Kr:nn==="teacher"?jn=sn:jn=ln,dn.next=9,dt({type:"account/applyProfessionalAuth",payload:{id:((jt=Pt.basicInfo)===null||jt===void 0?void 0:jt.id)||((Yt=It.userInfo)===null||Yt===void 0?void 0:Yt.login),school_id:xn,department_id:hn,identity:nn,extra:jn,attachment_ids:[wr]}});case 9:pn=dn.sent,je(),pn&&(u.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),dt({type:"account/getBasicInfo",payload:{login:(jr=It.userInfo)===null||jr===void 0?void 0:jr.login}}));case 12:case"end":return dn.stop()}},We)}));return function(Ze){return Ve.apply(this,arguments)}}(),je=function(){dt({type:"account/setActionTabs",payload:{}})},ze={data:{type:"professional"},multiple:!0,showUploadList:!1,action:"".concat(X.a.API_SERVER,"/api/attachments.json"),className:St.a.uploader,onChange:Pe,beforeUpload:function(We){var Ze=We.type==="image/jpeg"||We.type==="image/png"||We.type==="image/jpg"||We.type==="image/bmp";return Ze||u.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),Ze}};return t.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:St.a.modal,visible:Pt.actionTabs.key==="Account-ProfessionalAuth",title:t.a.createElement("div",null,t.a.createElement("i",{className:"iconfont icon-zhiyerenzheng font18 mr5 ".concat(St.a.colorBlue)}),"\u804C\u4E1A\u8BA4\u8BC1"),width:"660px",footer:null},t.a.createElement(d.a,{spinning:!!zt},t.a.createElement(gt.a,{className:St.a.formWrap,form:qt,layout:"horizontal",onValuesChange:Ye,onFinish:_e},t.a.createElement(B.a,{gutter:[10,0]},t.a.createElement(ct.a,{flex:"300px"},t.a.createElement(gt.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"teacher"},"\u6559\u5E08"),t.a.createElement($t,{value:"student"},"\u5B66\u751F"),t.a.createElement($t,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),cr.identity==="student"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},t.a.createElement(U.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),cr.identity==="teacher"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"\u6559\u6388"},"\u6559\u6388"),t.a.createElement($t,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),t.a.createElement($t,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),t.a.createElement($t,{value:"\u52A9\u6559"},"\u52A9\u6559")))),cr.identity==="professional"&&t.a.createElement(ct.a,{flex:"200px"},t.a.createElement(gt.a.Item,{initialValue:cr.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},t.a.createElement(ye.a,null,t.a.createElement($t,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),t.a.createElement($t,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),t.a.createElement($t,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),t.a.createElement($t,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),t.a.createElement($t,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),t.a.createElement(gt.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:cr.school&&!(Cr!=null&&Cr.find(function(Ve){return Ve.name===cr.school}))&&t.a.createElement("div",{className:St.a.schoolHintWrap},t.a.createElement("span",{className:St.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",cr.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),t.a.createElement("span",{className:"".concat(St.a.color0152d9," current"),onClick:Me},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},t.a.createElement(vn.a,{showSearch:!0,options:xt==null?void 0:xt.map(function(Ve){return{value:Ve.name}})})),t.a.createElement(gt.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:cr.department&&!(fr!=null&&fr.find(function(Ve){return Ve.name===cr.department}))&&t.a.createElement("div",{className:St.a.schoolHintWrap},t.a.createElement("span",{className:St.a.colorCDCDCD},cr.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(cr.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),t.a.createElement("span",{className:"".concat(St.a.color0152d9," current"),onClick:Ge},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},t.a.createElement(vn.a,{showSearch:!0,onChange:function(We){return Nr(fr.filter(function(Ze){return Ze.name.includes(We)}))},options:sr==null?void 0:sr.map(function(Ve){return{value:Ve.name}})})),t.a.createElement(gt.a.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},t.a.createElement("div",{className:St.a.flexRow},t.a.createElement("div",{className:"".concat(St.a.flexColumn," ").concat(St.a.example)},t.a.createElement("span",{className:St.a.exampleImg},t.a.createElement("img",{src:Kt.a})),t.a.createElement("span",{className:"tc"},t.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),t.a.createElement("p",{className:"".concat(St.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),t.a.createElement("div",{className:St.a.flexColumn},t.a.createElement(en,Object(Ne.a)({},ze,{accept:".png,.jpg,.bmp,.jpeg"}),br?t.a.createElement("img",{src:br,className:St.a.uploadImg}):t.a.createElement("div",{className:St.a.imageTip},t.a.createElement("p",null,t.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(St.a.uploadTipIcon)})),t.a.createElement("p",{className:St.a.uploadTip},t.a.createElement("a",{className:St.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),t.a.createElement("span",{className:"tc"},t.a.createElement("p",{className:St.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),t.a.createElement("div",{className:St.a.footerWrap},t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{className:"mr5",size:"large",onClick:je},"\u53D6\u6D88"),t.a.createElement(S.a,{size:"large",type:"primary",htmlType:"submit",loading:Wt["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),t.a.createElement("div",{className:St.a.note},t.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),t.a.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),t.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),t.a.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),t.a.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),t.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),t.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!(Ht!=null&&(mt=Ht.setting)!==null&&mt!==void 0&&mt.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),t.a.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),t.a.createElement(wt,{visible:fn,onClose:function(){return kr(!1)},schoolName:cr.school,onSuccess:Ee}),t.a.createElement(kn,{visible:gn,onClose:function(){return Vr(!1)},schoolId:(Ct=Cr.find(function(Ve){return Ve.name===cr.school}))===null||Ct===void 0?void 0:Ct.id,schoolName:cr.school,departmentName:cr.department,onSuccess:function(We){return Fe(cr.school,We)}}))},_n=Object(f.a)(function(Tt){var it=Tt.user,mt=Tt.account,Ct=Tt.loading,It=Tt.globalSetting;return{user:it,account:mt,globalSetting:It,loading:Ct.effects}})(Cn),On=D("aCH8"),ae=D.n(On);function z(Tt){var it=Tt.type,mt=Tt.dispatch,Ct=Tt.userid,It=Tt.isshow,Pt=Tt.setPhoneshow,Ht=Tt.setEmailshow,Wt="79e33abd4b6588941ab7622aed1e67e8",dt=Object(a.useState)(""),At=Object(h.a)(dt,2),Dt=At[0],yr=At[1],tr=Object(a.useState)("\u83B7\u53D6\u9A8C\u8BC1\u7801"),qt=Object(h.a)(tr,2),Gt=qt[0],nr=qt[1],cr=Object(a.useState)(60),st=Object(h.a)(cr,2),Lr=st[0],Fr=st[1],Cr=Object(a.useState)(!1),rr=Object(h.a)(Cr,2),Et=rr[0],_t=rr[1],xt=Object(a.useState)(""),Jt=Object(h.a)(xt,2),pr=Jt[0],dr=Jt[1];function fr(){return Dr.apply(this,arguments)}function Dr(){return Dr=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(Dt){Ft.next=3;break}return it===3?u.b.info("\u624B\u673A\u53F7\u4E0D\u80FD\u4E3A\u7A7A"):u.b.info("\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A"),Ft.abrupt("return");case 3:return Ft.next=5,mt({type:"competitions/getVerification",payload:{type:it,login:Dt,smscode:ae()(Wt+Dt)}});case 5:br=Ft.sent,br.status===1&&(u.b.info("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F"),an(),_t(!0));case 7:case"end":return Ft.stop()}},xr)})),Dr.apply(this,arguments)}function an(){Fr(60);var xr=setInterval(function(){--Lr,Lr>-1?Fr(Lr):(clearInterval(xr),_t(!1))},1e3)}function qe(){return sr.apply(this,arguments)}function sr(){return sr=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,mt({type:"competitions/PhoneBind",payload:{userid:Ct,code:pr,phone:Dt}});case 2:br=Ft.sent,br.status===0&&(u.b.info("\u7ED1\u5B9A\u6210\u529F"),Pt("none"));case 4:case"end":return Ft.stop()}},xr)})),sr.apply(this,arguments)}function Nr(){return rn.apply(this,arguments)}function rn(){return rn=Object(o.a)(r.a.mark(function xr(){var br;return r.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,mt({type:"competitions/EmailBind",payload:{userid:Ct,code:pr,email:Dt}});case 2:br=Ft.sent,br.status===0&&(u.b.info("\u7ED1\u5B9A\u6210\u529F"),Ht("none"));case 4:case"end":return Ft.stop()}},xr)})),rn.apply(this,arguments)}return t.a.createElement("div",{style:{display:It}},t.a.createElement("p",null,t.a.createElement(U.a,{value:Dt,onChange:function(br){return yr(br.target.value)},placeholder:it===3?"\u8BF7\u8F93\u5165\u624B\u673A\u53F7":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740",style:{width:"370px"}})),t.a.createElement("span",null,t.a.createElement(U.a,{value:pr,onChange:function(br){return dr(br.target.value)},placeholder:it===3?"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801",style:{width:"250px"}}))," ",t.a.createElement(S.a,{disabled:Et,onClick:function(){return fr()},type:"primary",style:{marginLeft:"20px",width:"100px"}},Et?"\u91CD\u65B0\u53D1\u9001".concat(Lr,"s"):Gt),t.a.createElement("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"}},t.a.createElement(S.a,{type:"primary",style:{marginRight:"15px"},onClick:function(){if(!pr){u.b.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A");return}it===3?qe():Nr()}},"\u786E\u8BA4"),t.a.createElement(S.a,{style:{marginLeft:"20px"},onClick:function(){it===3?Pt("none"):Ht("none")}},"\u53D6\u6D88")))}var $=z;function ie(Tt){var it=Tt.dispatch,mt=Tt.userid,Ct={wrapperCol:{offset:3,span:21}},It=gt.a.useForm(),Pt=Object(h.a)(It,1),Ht=Pt[0],Wt=Object(w.i)(),dt=Wt.identifier;return t.a.createElement("div",{style:{width:"500px"}},t.a.createElement(gt.a,{form:Ht,name:"basic"},t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u5F00\u6237\u884C"),name:"bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u884C"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u652F\u884C"),name:"second_bank",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u652F\u884C"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,Object(Ne.a)({},Ct,{label:t.a.createElement("div",{style:{width:"30px"}},"\u8D26\u53F7"),name:"card_no",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u53F7"}]}),t.a.createElement(U.a,null)),t.a.createElement(gt.a.Item,null,t.a.createElement(S.a,{type:"primary",htmlType:"submit",onClick:Object(o.a)(r.a.mark(function At(){return r.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:Ht.validateFields().then(function(){var tr=Object(o.a)(r.a.mark(function qt(Gt){var nr;return r.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,it({type:"competitions/setleader",payload:Object(L.a)({identifier:dt,user_id:mt},Gt)});case 2:nr=st.sent,nr.status===0&&u.b.info("\u63D0\u4EA4\u6210\u529F");case 4:case"end":return st.stop()}},qt)}));return function(qt){return tr.apply(this,arguments)}}());case 1:case"end":return yr.stop()}},At)}))},"\u63D0\u4EA4"))))}var de=ie,se={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"};function Ke(Tt){var it,mt,Ct,It,Pt,Ht,Wt,dt,At=Tt.Prize,Dt=Tt.Accounts,yr=Tt.dispatch,tr=Tt.userid,qt=Object(a.useState)("none"),Gt=Object(h.a)(qt,2),nr=Gt[0],cr=Gt[1],st=Object(a.useState)("none"),Lr=Object(h.a)(st,2),Fr=Lr[0],Cr=Lr[1];function rr(_t){return Et.apply(this,arguments)}function Et(){return Et=Object(o.a)(r.a.mark(function _t(xt){var Jt;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:if(!(xt==="1")){dr.next=6;break}return dr.next=3,yr({type:"competitions/Authentication"});case 3:Jt=dr.sent,dr.next=9;break;case 6:return dr.next=8,yr({type:"competitions/Professional"});case 8:Jt=dr.sent;case 9:Jt.status===0&&u.b.info("\u64A4\u9500\u6210\u529F");case 10:case"end":return dr.stop()}},_t)})),Et.apply(this,arguments)}return t.a.createElement("div",null,t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u5B9E\u540D\u4FE1\u606F"),(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"):null,(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px",color:"#0152d9",cursor:"pointer"},onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1"):null),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",null,"\u59D3\u540D\uFF1A",t.a.createElement("span",null,Dt==null?void 0:Dt.name),(Dt==null?void 0:Dt.authentication)==="uncertified"?null:(Dt==null?void 0:Dt.authentication)==="applying"?t.a.createElement("span",null,t.a.createElement("span",null,"\u5F85\u5BA1\u6838"),t.a.createElement(S.a,{type:"primary",onClick:function(){return rr("1")},ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):t.a.createElement("span",{style:{color:"#6ec76e"}},t.a.createElement("span",{className:"iconfont icon-wancheng font-14 ml20"})," \u5DF2\u8BA4\u8BC1")),t.a.createElement("p",null,"\u6027\u522B\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.gender)===0?"\u7537":"\u5973"))),t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u804C\u4E1A\u4FE1\u606F"),(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px"}},"\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"):null,(Dt==null?void 0:Dt.authentication)==="uncertified"?t.a.createElement("span",{style:{fontSize:"14px",marginLeft:"20px",color:"#0152d9"},onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})}},"\u7ACB\u5373\u8BA4\u8BC1"):null),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",null,"\u804C\u4E1A\uFF1A",t.a.createElement("span",null,Dt&&Dt.identity&&se[Dt.identity]),(Dt==null?void 0:Dt.authentication)==="uncertified"?null:(Dt==null?void 0:Dt.authentication)==="applying"?t.a.createElement("span",null,t.a.createElement("span",null,"\u5F85\u5BA1\u6838"),t.a.createElement(S.a,{type:"primary",onClick:function(){return rr("2")},ghost:!0,style:{marginLeft:"20px"}},"\u64A4\u9500\u8BA4\u8BC1")):t.a.createElement("span",{style:{color:"#6ec76e"}},t.a.createElement("span",{className:"iconfont icon-wancheng font-12 ml20"}),t.a.createElement("span",null,"\u5DF2\u8BA4\u8BC1"),t.a.createElement(S.a,{type:"primary",onClick:function(){yr({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"}},"\u91CD\u65B0\u8BA4\u8BC1"))),t.a.createElement("p",null,"\u5B66\u53F7\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.student_id)||"--")),t.a.createElement("p",null,"\u5B66\u6821\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.school_name)||"--")),t.a.createElement("p",null,"\u9662\u7CFB\uFF1A",t.a.createElement("span",null,(Dt==null?void 0:Dt.department_name)||"--"))),t.a.createElement("p",null,t.a.createElement("span",{style:{color:"red"}},"*"),t.a.createElement("span",{style:{fontSize:"16px"}},"\u8054\u7CFB\u65B9\u5F0F")),t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u624B\u673A\u53F7\uFF1A"),t.a.createElement("span",{style:{width:"150px"}},(Dt==null?void 0:Dt.phone)||"--"),nr==="none"?t.a.createElement("span",{style:{color:"#0152d9",marginLeft:"20px",cursor:"pointer"},onClick:function(){cr("block")}},"\u66F4\u6362"):null),t.a.createElement($,{type:3,dispatch:yr,userid:Dt==null?void 0:Dt.id,isshow:nr,setPhoneshow:cr,setEmailshow:Cr}),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"Email\uFF1A"),t.a.createElement("span",{style:{width:"150px"}},(Dt==null?void 0:Dt.mail)||"--"),Fr==="none"?t.a.createElement("span",{style:{color:"#0152d9",marginLeft:"20px",cursor:"pointer"},onClick:function(){Cr("block")}},"\u66F4\u6362"):null),t.a.createElement($,{type:4,dispatch:yr,userid:Dt==null?void 0:Dt.id,isshow:Fr,setEmailshow:Cr,setPhoneshow:cr})),At!=null&&At.leader&&At!==null&&At!==void 0&&At.teams&&At!==null&&At!==void 0&&(it=At.teams[0])!==null&&it!==void 0&&(mt=it.bank_account)!==null&&mt!==void 0&&mt.bank?t.a.createElement("p",null,t.a.createElement("span",{style:{fontSize:"16px"}},"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),t.a.createElement("span",{style:{fontSize:"12px",marginLeft:"20px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")):t.a.createElement("div",null,t.a.createElement("p",null,t.a.createElement("span",{style:{fontSize:"16px"}},"\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"),t.a.createElement("span",{style:{fontSize:"12px",marginLeft:"20px"}},"\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F")),t.a.createElement(de,{dispatch:yr,userid:tr})),At!=null&&At.leader?t.a.createElement("div",{style:{padding:"20px"}},t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u5F00\u6237\u884C\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Ct=At.teams[0])===null||Ct===void 0||((It=Ct.bank_account)===null||It===void 0))?void 0:It.bank)||"--")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u652F\u884C\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Pt=At.teams[0])===null||Pt===void 0||((Ht=Pt.bank_account)===null||Ht===void 0))?void 0:Ht.second_bank)||"--")),t.a.createElement("p",{style:{display:"flex"}},t.a.createElement("span",{style:{width:"60px",textAlign:"right"}},"\u8D26\u53F7\uFF1A"),t.a.createElement("span",null,(At==null?void 0:At.teams)&&(At==null||((Wt=At.teams[0])===null||Wt===void 0||((dt=Wt.bank_account)===null||dt===void 0))?void 0:dt.card_no)||"--"))):null,t.a.createElement(_n,{Scoid:Dt==null?void 0:Dt.school_id}),t.a.createElement(un,null))}var Rt=Ke,Vt=ge.a.TabPane;function Er(Tt){var it=Tt.Prize,mt=Tt.Accounts,Ct=Tt.getAccounts,It=Tt.dispatch,Pt=Tt.userid;return t.a.createElement("div",{className:"fr"},t.a.createElement("div",{className:"mb100 "},t.a.createElement(ge.a,{defaultActiveKey:"1",onChange:function(Wt){Wt==="2"&&Ct()}},t.a.createElement(Vt,{tab:"\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D",key:"1"},t.a.createElement(ke,{Prize:it})),t.a.createElement(Vt,{tab:"\u5B8C\u5584\u4E2A\u4EBA\u4FE1\u606F",key:"2"},t.a.createElement(Rt,{userid:Pt,dispatch:It,Prize:it,Accounts:mt})))))}var Lt=Er,zr=D("xKgJ"),Br=D("wd/R"),En=D.n(Br),ui=ge.a.TabPane;function Ei(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.ChartRules,dt=Tt.ItemData,At=Tt.getCharts,Dt=Tt.Selectkey,yr=Tt.HeaderDetail,tr=Tt.getChartRules,qt=Tt.userinfo,Gt=Tt.Editable,nr=Tt.dispatch,cr=Tt.StaffDetail,st=Object(a.useState)(!1),Lr=Object(h.a)(st,2),Fr=Lr[0],Cr=Lr[1],rr=Object(a.useState)(""),Et=Object(h.a)(rr,2),_t=Et[0],xt=Et[1],Jt=Object(a.useState)(!0),pr=Object(h.a)(Jt,2),dr=pr[0],fr=pr[1],Dr=Object(a.useState)(),an=Object(h.a)(Dr,2),qe=an[0],sr=an[1],Nr=Object(a.useState)(),rn=Object(h.a)(Nr,2),xr=rn[0],br=rn[1],Pr=Object(w.i)(),Ft=Pr.identifier;Object(a.useEffect)(function(){if(dr){var vt,yt,zt,Mt,Mr=Wt==null||((vt=Wt.stages)===null||vt===void 0)?void 0:vt[0];sr(Mr);var cn=Wt==null||((yt=Wt.stages)===null||yt===void 0||((zt=yt[0])===null||zt===void 0||((Mt=zt.children)===null||Mt===void 0)))?void 0:Mt[0];if(br(cn),Mr!=null&&Mr.id){var fn,kr,on;At(Mr==null?void 0:Mr.id),xt(((fn=Wt.rule_contents)===null||fn===void 0||((kr=fn.filter(function(yn){return parseInt(yn.competition_stage_id)===parseInt(Mr==null?void 0:Mr.id)}))===null||kr===void 0||((on=kr[0])===null||on===void 0))?void 0:on.content)||"")}else{var Ur,gn,Vr;At(0),xt(((Ur=Wt.rule_contents)===null||Ur===void 0||((gn=Ur.filter(function(yn){return parseInt(yn.competition_stage_id)===0}))===null||gn===void 0||((Vr=gn[0])===null||Vr===void 0))?void 0:Vr.content)||"")}}},[Wt]);function Zt(){return wr.apply(this,arguments)}function wr(){return wr=Object(o.a)(r.a.mark(function vt(){var yt,zt,Mt,Mr,cn,fn,kr,on,Ur;return r.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:if(_t){Vr.next=3;break}return u.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Vr.abrupt("return");case 3:if(fr(!1),yt=qe==null?void 0:qe.id,!yt){Vr.next=12;break}return Vr.next=8,Object(ne.a)("/api/competitions/".concat(Ft,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:_t,md_content_id:(zt=Wt.rule_contents)===null||zt===void 0||((Mt=zt.filter(function(yn){return parseInt(yn.competition_stage_id)===parseInt(yt)}))===null||Mt===void 0||((Mr=Mt[0])===null||Mr===void 0))?void 0:Mr.id,stage_id:qe==null?void 0:qe.id}});case 8:cn=Vr.sent,cn.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Cr(!1),tr()),Vr.next=16;break;case 12:return Vr.next=14,Object(ne.a)("/api/competitions/".concat(Ft,"/update_md_content.json"),{method:"post",body:{competition_module_id:Dt,content:_t,md_content_id:(fn=Wt.rule_contents)===null||fn===void 0||((kr=fn.filter(function(yn){return parseInt(yn.competition_stage_id)===0}))===null||kr===void 0||((on=kr[0])===null||on===void 0))?void 0:on.id,stage_id:qe==null?void 0:qe.id}});case 14:Ur=Vr.sent,Ur.status===0&&(u.b.info("\u66F4\u65B0\u6210\u529F"),Cr(!1),tr());case 16:case"end":return Vr.stop()}},vt)})),wr.apply(this,arguments)}var er=[{title:"request_id",dataIndex:"request_id",width:120,align:"center",key:"name",render:function(yt,zt,Mt){return t.a.createElement("span",null,yt)}},{title:"\u9644\u4EF6",dataIndex:"file_name",align:"center",width:150,key:"file_name",render:function(yt){return t.a.createElement(nt.a,{title:yt},t.a.createElement("span",{title:yt},yt&&(yt==null?void 0:yt.length)>=10?(yt==null?void 0:yt.substr(0,10))+"...":yt||"--"))}},{title:"\u63D0\u4EA4\u4EBA",dataIndex:"user_name",key:"user_name",width:100,render:function(yt){return t.a.createElement("span",{title:yt},yt&&(yt==null?void 0:yt.length)>=6?(yt==null?void 0:yt.substr(0,6))+"...":yt||"--")}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"center"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:50,render:function(yt){return t.a.createElement("span",null,yt===1?"\u8BA1\u7B97\u4E2D":yt===2?"\u5B8C\u6210":yt===0?"\u5F85\u8BA1\u7B97":yt===3&&"\u9519\u8BEF")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68071",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(yt){return t.a.createElement("span",null,yt||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name)==="\u8BA1\u56FE\u6311\u6218\u70ED\u8EAB\u8D5B"&&{title:"\u6570\u636E\u6307\u68072",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){return(yt==null?void 0:yt.length)>0?yt==null?void 0:yt.map(function(zt,Mt){return t.a.createElement("span",null,zt==null?void 0:zt.name,"\uFF1A",zt==null?void 0:zt.value," ",t.a.createElement("br",null))}):t.a.createElement("span",null,"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"mask accuary",dataIndex:"data_ranking",key:"data_ranking",align:"left",render:function(yt){return t.a.createElement("span",null,yt||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"\u7F8E\u5B66\u8BC4\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="score"}))===null||zt===void 0)?void 0:zt.value)||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"FID",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="fid"}))===null||zt===void 0)?void 0:zt.value)||"--")}},(qe==null?void 0:qe.display_four_indicators)&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"left",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="total_score"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Car",dataIndex:"data_ranking",key:"data_ranking",align:"center",render:function(yt){return t.a.createElement("span",null,yt||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Coffee",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Coffee"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Easyship",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Easyship"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scar",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Scar"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"Scarf",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Scarf"}))===null||zt===void 0)?void 0:zt.value)||"--")}},!(qe!=null&&qe.display_four_indicators)&&(qe==null?void 0:qe.name.includes("\u53EF\u5FAE\u6E32\u67D3\u65B0\u89C6\u89D2\u751F\u6210\u8D5B\u9898"))&&{title:"\u603B\u5206",dataIndex:"data_other",key:"data_other",align:"center",render:function(yt){var zt;return t.a.createElement("span",null,(yt==null||((zt=yt.find(function(Mt){return(Mt==null?void 0:Mt.name)==="Total"}))===null||zt===void 0)?void 0:zt.value)||"--")}},{title:"\u64CD\u4F5C",dataIndex:"result_url",width:50,key:"result_url",render:function(yt){return t.a.createElement("a",{href:yt,target:"_blank",download:"\u9644\u4EF6"},"\u4E0B\u8F7D")}}].filter(function(vt){return!!vt});return t.a.createElement("div",null,(Wt==null||((it=Wt.stages)===null||it===void 0)?void 0:it.length)>0?null:t.a.createElement(Je,null),(Wt==null||((mt=Wt.stages)===null||mt===void 0)?void 0:mt.length)>0&&t.a.createElement(ge.a,{animated:!0,tabBarExtraContent:qt!=null&&qt.admin||qt!=null&&qt.business||Gt?t.a.createElement(S.a,{onClick:function(){Cr(!0)}},"\u7F16\u8F91"):cr.enrolled&&(qe==null?void 0:qe.start_time)&&(qe==null?void 0:qe.end_time)&&t.a.createElement("span",null,"\u63D0\u4EA4\u65F6\u95F4\uFF1A",En()(qe==null?void 0:qe.start_time).format("YYYY-MM-DD HH:mm:ss"),"\u81F3",En()(qe==null?void 0:qe.end_time).format("YYYY-MM-DD HH:mm:ss"),t.a.createElement(S.a,{style:{marginLeft:"20px"},disabled:En()(qe==null?void 0:qe.start_time).unix()>En()(En()().format("YYYY-MM-DD HH:mm:s")).unix()||En()(En()().format("YYYY-MM-DD HH:mm:s")).unix()>En()(qe==null?void 0:qe.end_time).unix(),onClick:function(){nr({type:"shixunsDetail/setActionTabs",payload:{key:"md-tab",params:{value:(xr==null?void 0:xr.id)||(qe==null?void 0:qe.id),id:yr==null?void 0:yr.id}}})}},"\u63D0\u4EA4\u7ED3\u679C")),onChange:function(yt){var zt,Mt,Mr,cn,fn;Cr(!1);var kr=Wt==null||((zt=Wt.stages)===null||zt===void 0)?void 0:zt.filter(function(Ur){return parseInt(yt)===parseInt(Ur==null?void 0:Ur.id)})[0],on=kr==null||((Mt=kr.children)===null||Mt===void 0)?void 0:Mt[0];br(on),sr(kr),xt(((Mr=Wt.rule_contents)===null||Mr===void 0||((cn=Mr.filter(function(Ur){return parseInt(Ur.competition_stage_id)===parseInt(kr==null?void 0:kr.id)}))===null||cn===void 0||((fn=cn[0])===null||fn===void 0))?void 0:fn.content)||""),At((on==null?void 0:on.id)||yt)}},Wt&&Wt.stages.map(function(vt,yt){return t.a.createElement(ui,{tab:vt.name,key:vt.id===null?0:vt.id},Fr===!1&&Wt&&Wt.rule_contents.map(function(zt,Mt){if(vt.id===zt.competition_stage_id)return t.a.createElement(W.a,{key:Mt,value:zt.content===void 0||zt.content===null?"":zt.content});if(vt.id===null&&zt.competition_stage_id===0)return t.a.createElement(W.a,{key:Mt,value:zt.content===void 0||zt.content===null?"":zt.content})}))})),(qe==null||((Ct=qe.children)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{activeKey:(xr==null?void 0:xr.id)+"",onChange:function(yt){var zt,Mt=qe==null||((zt=qe.children)===null||zt===void 0)?void 0:zt.filter(function(Mr){return parseInt(yt)===parseInt(Mr==null?void 0:Mr.id)})[0];br(Mt),At(yt)}},qe==null||((It=qe.children)===null||It===void 0)?void 0:It.map(function(vt,yt){return t.a.createElement(ui,{tab:vt.name,key:vt.id===null?0:vt.id})})),Fr&&t.a.createElement("div",null,t.a.createElement(te.a,{defaultValue:_t,onChange:function(yt){xt(yt)}}),t.a.createElement("p",{style:{marginTop:"10px"}},t.a.createElement(S.a,{style:{width:"90px"},type:"primary",onClick:function(){return Zt()}},"\u63D0\u4EA4"),t.a.createElement(S.a,{style:{marginLeft:"30px",width:"90px"},onClick:function(){return Cr(!1)}},"\u53D6\u6D88"))),((Pt=yr.competition_modules.filter(function(vt){return vt.id===Dt}))===null||Pt===void 0||((Ht=Pt[0])===null||Ht===void 0)?void 0:Ht.show_leaderboard)&&t.a.createElement(Z.a,{dataSource:dt==null?void 0:dt.results,columns:er}))}var In=Ei,Li=D("DjyN"),qi=D("NUBc"),ni=ge.a.TabPane;function Ti(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.loading,dt=Tt.ChartRules,At=Tt.ItemData,Dt=Tt.getCharts,yr=Tt.Selectkey,tr=Tt.HeaderDetail,qt=Tt.getChartRules,Gt=Tt.userinfo,nr=Tt.Editable,cr=Tt.dispatch,st=Tt.StaffDetail,Lr=Object(a.useState)(!1),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)(""),_t=Object(h.a)(Et,2),xt=_t[0],Jt=_t[1],pr=Object(a.useState)(!0),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)(),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(w.i)(),Zt=Ft.identifier,wr=Object(a.useState)({page:1,limit:10,sort:"desc"}),er=Object(h.a)(wr,2),vt=er[0],yt=er[1];Object(a.useEffect)(function(){var Mt;fr&&dt!==null&&dt!==void 0&&(Mt=dt.stages)!==null&&Mt!==void 0&&Mt[0]&&zt()},[dt==null||((it=dt.stages)===null||it===void 0)?void 0:it[0]]);var zt=function(){var Mt=Object(o.a)(r.a.mark(function Mr(){var cn,fn,kr,on,Ur,gn;return r.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return Ur=dt==null||((cn=dt.stages)===null||cn===void 0)?void 0:cn[0],Nr(Ur),gn=dt==null||((fn=dt.stages)===null||fn===void 0||((kr=fn[0])===null||kr===void 0||((on=kr.children)===null||on===void 0)))?void 0:on[0],Pr(gn),vt.id=(gn==null?void 0:gn.id)||(Ur==null?void 0:Ur.id),yt(Object(L.a)({},vt)),yn.next=7,Dt(Object(L.a)(Object(L.a)({},vt),{},{stage_id:vt.id}));case 7:case"end":return yn.stop()}},Mr)}));return function(){return Mt.apply(this,arguments)}}();return t.a.createElement("div",null,(dt==null||((mt=dt.stages)===null||mt===void 0)?void 0:mt.length)>0?null:t.a.createElement(Je,null),(dt==null||((Ct=dt.stages)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var Mt=Object(o.a)(r.a.mark(function Mr(cn){var fn,kr,on,Ur,gn,Vr,yn;return r.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return rr(!1),Vr=dt==null||((fn=dt.stages)===null||fn===void 0)?void 0:fn.filter(function(Ge){return parseInt(cn)===parseInt(Ge==null?void 0:Ge.id)})[0],yn=Vr==null||((kr=Vr.children)===null||kr===void 0)?void 0:kr[0],Pr(yn),Nr(Vr),Jt(((on=dt.rule_contents)===null||on===void 0||((Ur=on.filter(function(Ge){return parseInt(Ge.competition_stage_id)===parseInt(Vr==null?void 0:Vr.id)}))===null||Ur===void 0||((gn=Ur[0])===null||gn===void 0))?void 0:gn.content)||""),vt.page=1,vt.limit=10,vt.id=(yn==null?void 0:yn.id)||cn,yt(Object(L.a)({},vt)),Me.next=9,Dt(Object(L.a)({},vt));case 9:case"end":return Me.stop()}},Mr)}));return function(Mr){return Mt.apply(this,arguments)}}()},dt&&dt.stages.map(function(Mt,Mr){return t.a.createElement(ni,{tab:Mt.name,key:Mt.id===null?0:Mt.id})})),(sr==null||((It=sr.children)===null||It===void 0)?void 0:It.length)>0&&t.a.createElement(ge.a,{activeKey:(br==null?void 0:br.id)+"",onChange:function(){var Mt=Object(o.a)(r.a.mark(function Mr(cn){var fn,kr;return r.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:return kr=sr==null||((fn=sr.children)===null||fn===void 0)?void 0:fn.filter(function(gn){return parseInt(cn)===parseInt(gn==null?void 0:gn.id)})[0],Pr(kr),vt.page=1,vt.limit=10,vt.id=cn,yt(Object(L.a)({},vt)),Ur.next=5,Dt(Object(L.a)({},vt));case 5:case"end":return Ur.stop()}},Mr)}));return function(Mr){return Mt.apply(this,arguments)}}()},sr==null||((Pt=sr.children)===null||Pt===void 0)?void 0:Pt.map(function(Mt,Mr){return t.a.createElement(ni,{tab:Mt.name,key:Mt.id===null?0:Mt.id})})),t.a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),t.a.createElement("div",{style:{padding:"20px 30px"}},t.a.createElement("span",{style:{cursor:"pointer",marginRight:20},onClick:function(){vt.page=1,vt.sort=vt.sort==="desc"?"asc":"desc",yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}},"\u6309\u63D0\u4EA4\u65F6\u95F4",vt.sort==="asc"?"\u6B63":"\u5012","\u5E8F\u6392\u5E8F ",t.a.createElement("i",{className:"iconfont font14 ".concat(vt.sort==="asc"?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")}))," ",t.a.createElement(U.a.Search,{onSearch:function(Mr){vt.page=1,vt.search=Mr,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))},style:{width:"82%"},placeholder:"\u8F93\u5165\u4EBA\u5458/\u6218\u961F\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),t.a.createElement(d.a,{spinning:Wt},At==null||((Ht=At.results)===null||Ht===void 0)?void 0:Ht.map(function(Mt,Mr){return t.a.createElement("div",{style:{border:"1px solid #E3EFFC",height:100,borderRadius:"2px 2px 0px 0px",marginTop:Mr===0?14:30}},t.a.createElement("div",{style:{height:60,padding:10,display:"flex",alignItems:"center"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/images/"+(Mt==null?void 0:Mt.image_url),style:{width:40,height:40,borderRadius:"50%"}}),t.a.createElement("div",{style:{marginLeft:10}},t.a.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},Mt==null?void 0:Mt.user_name),t.a.createElement("span",{style:{color:"#999999",fontWeight:400,fontSize:"14px",marginLeft:60}},"\u6240\u5C5E\u6218\u961F",t.a.createElement("span",{style:{marginLeft:10,color:"#333"}},(Mt==null?void 0:Mt.team_name)||"- -")),t.a.createElement("span",{style:{color:"#333333",fontWeight:400,fontSize:"14px",marginLeft:40}},"\u5B66\u6821 ",t.a.createElement("span",{style:{marginLeft:10,color:"#333"}},(Mt==null?void 0:Mt.school_name)||"- -")))),t.a.createElement("div",{style:{background:"#EEF2F8",height:40,borderRadius:"0px 0px 2px 2px",paddingLeft:60,paddingRight:40,display:"flex",alignItems:"center",justifyContent:"space-between"}},t.a.createElement("div",null,t.a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u63D0\u4EA4\u65F6\u95F4\uFF1A",Mt==null?void 0:Mt.created_at),t.a.createElement("span",{style:{color:"#666666",fontSize:"12px",margin:"0px 40px"}},"\u6D88\u8017\u5185\u5B58\uFF1A",(Mt==null?void 0:Mt.ts_mem)||"- -","MB"),t.a.createElement("span",{style:{color:"#666666",fontSize:"12px"}},"\u4EE3\u7801\u6267\u884C\u65F6\u95F4\uFF1A",(Mt==null?void 0:Mt.ts_time)||"- -","\u79D2")),t.a.createElement("a",{style:{display:"flex",alignItems:"center"},href:"/tasks/".concat(Mt==null?void 0:Mt.game_identifier),target:"_blank"},t.a.createElement("i",{className:"iconfont icon-chakandaima",style:{marginRight:4}}),t.a.createElement("span",{style:{lineHeight:"14px"}},"\u67E5\u770B\u4EE3\u7801"))))})),t.a.createElement(qi.a,{total:At==null?void 0:At.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:vt.page,onChange:function(Mr,cn){vt.page=Mr,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}})))}var xi=Ti,Fi=function(it){var mt=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Ct=["","\u5341","\u767E","\u5343","\u4E07"];it=parseInt(it);var It=function(dt){for(var At=dt.toString().split("").reverse(),Dt="",yr=0;yr0&&At[yr]==0&&At[yr-1]==0?"":mt[At[yr]]+(At[yr]==0?Ct[0]:Ct[yr]))+Dt;return Dt},Pt=Math.floor(it/1e4),Ht=it%1e4;return Ht.toString().length<4&&(Ht="0"+Ht),Pt?It(Pt)+"\u4E07"+It(Ht):It(it)};function Ci(Tt){var it,mt=Tt.item,Ct=Tt.index,It=Tt.StaffDetail,Pt=Object(a.useState)(!0),Ht=Object(h.a)(Pt,2),Wt=Ht[0],dt=Ht[1],At=Object(a.useState)(!0),Dt=Object(h.a)(At,2),yr=Dt[0],tr=Dt[1],qt=Object(a.useRef)();return t.a.createElement("div",{style:{border:"1px solid #E3EFFC",borderRadius:"2px",marginTop:20}},t.a.createElement("div",{style:{padding:10,display:"flex",position:"relative"}},t.a.createElement("img",{src:X.a.IMG_SERVER+"/"+(mt==null?void 0:mt.pic),style:{width:220,height:130,borderRadius:"4px"}}),t.a.createElement("div",{style:{marginLeft:20,width:"75%"}},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("span",{style:{color:"#333333",fontWeight:500,fontSize:"16px"}},"\u4EFB\u52A1",Fi(Ct+1),"\uFF1A",t.a.createElement("span",{style:{color:"#333",fontWeight:"400"}},mt==null?void 0:mt.name)),t.a.createElement("span",{style:{color:"#9096A3"}},"\u5173\u5361",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},mt==null?void 0:mt.challenges_count)," ")),t.a.createElement("div",{ref:qt},t.a.createElement(W.a,{style:{maxHeight:Wt&&100},value:mt==null?void 0:mt.description})),t.a.createElement("div",{style:{textAlign:"center",color:"#145DFF",cursor:"pointer"},onClick:function(){dt(!Wt)}},Wt?"\u9605\u8BFB\u5168\u6587 ":"\u6536\u8D77\u5168\u6587 ",t.a.createElement("i",{className:"iconfont font14 ".concat(Wt?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})),t.a.createElement("div",{style:{marginTop:14,maxHeight:yr&&58,overflow:"hidden"}},mt==null||((it=mt.challenges)===null||it===void 0)?void 0:it.map(function(Gt,nr){return t.a.createElement("div",{style:{marginTop:nr===0?0:12}},t.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}),t.a.createElement("span",{style:{marginLeft:10}},"\u7B2C",nr+1,"\u5173",Gt==null?void 0:Gt.name))})),t.a.createElement("div",{style:{position:"absolute",bottom:14,right:10,color:"#145DFF",cursor:"pointer"}},t.a.createElement("span",{onClick:function(){tr(!yr)}},yr?"\u5C55\u5F00":"\u6536\u8D77"," ",t.a.createElement("i",{className:"iconfont font14 ".concat(yr?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")}))," ",(It==null?void 0:It.enrolled)&&t.a.createElement(S.a,{onClick:function(){window.open("/shixuns/".concat(mt==null?void 0:mt.identifier,"/challenges"))},style:{marginLeft:30},type:"primary"},"\u5F00\u542F\u6311\u6218")))))}var Gi=Ci,Mi=ge.a.TabPane;function oa(Tt){var it,mt,Ct,It,Pt,Ht,Wt=Tt.loading,dt=Tt.ChartRules,At=Tt.ItemData,Dt=Tt.getCharts,yr=Tt.Selectkey,tr=Tt.HeaderDetail,qt=Tt.getChartRules,Gt=Tt.userinfo,nr=Tt.Editable,cr=Tt.dispatch,st=Tt.StaffDetail,Lr=Object(a.useState)(!1),Fr=Object(h.a)(Lr,2),Cr=Fr[0],rr=Fr[1],Et=Object(a.useState)(""),_t=Object(h.a)(Et,2),xt=_t[0],Jt=_t[1],pr=Object(a.useState)(!0),dr=Object(h.a)(pr,2),fr=dr[0],Dr=dr[1],an=Object(a.useState)(),qe=Object(h.a)(an,2),sr=qe[0],Nr=qe[1],rn=Object(a.useState)(),xr=Object(h.a)(rn,2),br=xr[0],Pr=xr[1],Ft=Object(w.i)(),Zt=Ft.identifier,wr=Object(a.useState)({page:1,limit:10}),er=Object(h.a)(wr,2),vt=er[0],yt=er[1],zt=Object(a.useState)(),Mt=Object(h.a)(zt,2),Mr=Mt[0],cn=Mt[1];Object(a.useEffect)(function(){var kr;fr&&dt!==null&&dt!==void 0&&(kr=dt.stages)!==null&&kr!==void 0&&kr[0]&&fn()},[dt==null||((it=dt.stages)===null||it===void 0)?void 0:it[0]]);var fn=function(){var kr=Object(o.a)(r.a.mark(function on(){var Ur,gn,Vr,yn,ei,Me;return r.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return ei=dt==null||((Ur=dt.stages)===null||Ur===void 0)?void 0:Ur[0],Nr(ei),Me=dt==null||((gn=dt.stages)===null||gn===void 0||((Vr=gn[0])===null||Vr===void 0||((yn=Vr.children)===null||yn===void 0)))?void 0:yn[0],Pr(Me),vt.id=(Me==null?void 0:Me.id)||(ei==null?void 0:ei.id),yt(Object(L.a)({},vt)),Ye.next=7,Dt(Object(L.a)(Object(L.a)({},vt),{},{stage_id:vt.id}));case 7:case"end":return Ye.stop()}},on)}));return function(){return kr.apply(this,arguments)}}();return t.a.createElement("div",null,(dt==null||((mt=dt.stages)===null||mt===void 0)?void 0:mt.length)>0?null:t.a.createElement(Je,null),(dt==null||((Ct=dt.stages)===null||Ct===void 0)?void 0:Ct.length)>0&&t.a.createElement(ge.a,{tabBarStyle:{height:65,marginLeft:35,marginRight:30},animated:!0,onChange:function(){var kr=Object(o.a)(r.a.mark(function on(Ur){var gn,Vr,yn,ei,Me,Ge,Ye;return r.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return rr(!1),Ge=dt==null||((gn=dt.stages)===null||gn===void 0)?void 0:gn.filter(function(Pe){return parseInt(Ur)===parseInt(Pe==null?void 0:Pe.id)})[0],Ye=Ge==null||((Vr=Ge.children)===null||Vr===void 0)?void 0:Vr[0],Pr(Ye),Nr(Ge),Jt(((yn=dt.rule_contents)===null||yn===void 0||((ei=yn.filter(function(Pe){return parseInt(Pe.competition_stage_id)===parseInt(Ge==null?void 0:Ge.id)}))===null||ei===void 0||((Me=ei[0])===null||Me===void 0))?void 0:Me.content)||""),vt.page=1,vt.limit=10,vt.id=(Ye==null?void 0:Ye.id)||Ur,yt(Object(L.a)({},vt)),Ee.next=9,Dt(Object(L.a)({},vt));case 9:case"end":return Ee.stop()}},on)}));return function(on){return kr.apply(this,arguments)}}()},dt&&dt.stages.map(function(kr,on){return t.a.createElement(Mi,{tab:kr.name,key:kr.id===null?0:kr.id})})),(sr==null||((It=sr.children)===null||It===void 0)?void 0:It.length)>0&&t.a.createElement(ge.a,{activeKey:(br==null?void 0:br.id)+"",tabBarStyle:{height:65,marginLeft:35,marginRight:30},onChange:function(){var kr=Object(o.a)(r.a.mark(function on(Ur){var gn,Vr;return r.a.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return Vr=sr==null||((gn=sr.children)===null||gn===void 0)?void 0:gn.filter(function(Me){return parseInt(Ur)===parseInt(Me==null?void 0:Me.id)})[0],Pr(Vr),vt.page=1,vt.limit=10,vt.id=Ur,yt(Object(L.a)({},vt)),ei.next=5,Dt(Object(L.a)({},vt));case 5:case"end":return ei.stop()}},on)}));return function(on){return kr.apply(this,arguments)}}()},sr==null||((Pt=sr.children)===null||Pt===void 0)?void 0:Pt.map(function(kr,on){return t.a.createElement(Mi,{tab:kr.name,key:kr.id===null?0:kr.id})})),t.a.createElement("div",{style:{height:10,background:"#F5F5F5"}}),t.a.createElement("div",{style:{padding:"20px 30px"}},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},t.a.createElement("span",{style:{color:"#9096A3"}},"\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},At==null?void 0:At.start_time,"~",At==null?void 0:At.end_time)),t.a.createElement("span",{style:{color:"#9096A3"}},"\u6210\u7EE9\u6765\u6E90",t.a.createElement("span",{style:{color:"#333333",marginLeft:5}},(At==null?void 0:At.score_source)===0?"\u7ECF\u9A8C\u503C":"\u9884\u6D4B\u51C6\u786E\u7387")," ")),t.a.createElement(d.a,{spinning:Wt},At==null||((Ht=At.results)===null||Ht===void 0)?void 0:Ht.map(function(kr,on){return t.a.createElement(Gi,{StaffDetail:st,item:kr,index:on})})),t.a.createElement(qi.a,{total:At==null?void 0:At.total_count,pageSize:10,hideOnSinglePage:!0,style:{marginTop:40,textAlign:"center"},showSizeChanger:!1,current:vt.page,onChange:function(on,Ur){vt.page=on,yt(Object(L.a)({},vt)),Dt(Object(L.a)({},vt))}})))}var sa=oa,Ii=D("UfjD"),qn=D("qHvr"),Vi=function(it){var mt,Ct,It,Pt,Ht,Wt,dt,At,Dt=it.globalSetting,yr=it.loading,tr=it.dispatch,qt=it.user,Gt=Object(m.a)(it,["globalSetting","loading","dispatch","user"]),nr=Object(a.useState)({avatar_url:""}),cr=Object(h.a)(nr,2),st=cr[0],Lr=cr[1],Fr=Object(a.useState)([]),Cr=Object(h.a)(Fr,2),rr=Cr[0],Et=Cr[1],_t=Object(w.i)(),xt=_t.identifier,Jt=Object(a.useState)([]),pr=Object(h.a)(Jt,2),dr=pr[0],fr=pr[1],Dr=Object(a.useState)(!0),an=Object(h.a)(Dr,2),qe=an[0],sr=an[1],Nr=Object(a.useState)([]),rn=Object(h.a)(Nr,2),xr=rn[0],br=rn[1],Pr=Object(a.useState)([]),Ft=Object(h.a)(Pr,2),Zt=Ft[0],wr=Ft[1],er=Object(a.useState)(!1),vt=Object(h.a)(er,2),yt=vt[0],zt=vt[1],Mt=Object(a.useState)(!1),Mr=Object(h.a)(Mt,2),cn=Mr[0],fn=Mr[1],kr=Object(a.useState)(!1),on=Object(h.a)(kr,2),Ur=on[0],gn=on[1],Vr=Object(a.useState)([]),yn=Object(h.a)(Vr,2),ei=yn[0],Me=yn[1],Ge=Object(a.useState)([]),Ye=Object(h.a)(Ge,2),Fe=Ye[0],Ee=Ye[1],Pe=Object(a.useState)([]),_e=Object(h.a)(Pe,2),je=_e[0],ze=_e[1],Ve=Object(a.useState)(!1),We=Object(h.a)(Ve,2),Ze=We[0],pt=We[1],kt=Object(a.useState)([]),jt=Object(h.a)(kt,2),Yt=jt[0],Ir=jt[1],Qr=Object(a.useState)(),$r=Object(h.a)(Qr,2),nn=$r[0],Kr=$r[1],sn=Object(a.useState)(!0),ln=Object(h.a)(sn,2),xn=ln[0],hn=ln[1],jn=Object(a.useState)(!1),pn=Object(h.a)(jn,2),jr=pn[0],Wr=pn[1],dn=Object(a.useState)(!1),bn=Object(h.a)(dn,2),Tr=bn[0],Sn=bn[1],Yn=Object(a.useState)(!1),Rn=Object(h.a)(Yn,2),Wn=Rn[0],Dn=Rn[1],ti=Object(a.useState)(!1),ci=Object(h.a)(ti,2),Jn=ci[0],gi=ci[1],Xi=Object(a.useState)(!1),Oi=Object(h.a)(Xi,2),di=Oi[0],Hn=Oi[1],zn=Object(a.useState)(!0),Qn=Object(h.a)(zn,2),Vn=Qn[0],ii=Qn[1],Di=Object(w.h)(),ra=Object(a.useRef)(null);Object(a.useEffect)(function(){xt&&Mn(),Object(Ut.T)("\u7ADE\u8D5B")},[xt]);function Mn(){return Ui.apply(this,arguments)}function Ui(){return Ui=Object(o.a)(r.a.mark(function Sr(){var Or;return r.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.t0=Et,Tn.next=3,tr({type:"competitions/getStaff",payload:{identifier:xt}});case 3:return Tn.t1=Tn.sent,(0,Tn.t0)(Tn.t1),Tn.next=7,tr({type:"competitions/getHeader",payload:{identifier:xt}});case 7:Or=Tn.sent,Lr(Or),Object(Ut.T)((Or==null?void 0:Or.name)||"\u7ADE\u8D5B");case 10:case"end":return Tn.stop()}},Sr)})),Ui.apply(this,arguments)}Object(a.useEffect)(function(){var Sr;Kr(parseInt(Di==null||((Sr=Di.query)===null||Sr===void 0)?void 0:Sr.type)===1)},[Di]),Object(a.useEffect)(function(){var Sr;if((st==null||((Sr=st.competition_modules)===null||Sr===void 0)?void 0:Sr.length)>0){var Or,lr;if((Di==null||((Or=Di.query)===null||Or===void 0)?void 0:Or.active)==="\u8D5B\u9898\u53D1\u5E03"){var Tn,vr=st==null||((Tn=st.competition_modules)===null||Tn===void 0)?void 0:Tn.find(function(pa){return pa.name==="\u8D5B\u9898\u53D1\u5E03"});if(vr){Bi(vr);return}}Bi(st==null||((lr=st.competition_modules)===null||lr===void 0)?void 0:lr[0])}},[st]);function Bi(Sr){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(ze(Or.id),je=Or.id,br(Or),!(Or.module_type==="entrance")){vr.next=9;break}return vr.next=6,tr({type:"competitions/getItem",payload:{url:Or.module_url,module_type:"entrance"}});case 6:lr=vr.sent,vr.next=12;break;case 9:return vr.next=11,tr({type:"competitions/getItem",payload:{url:Or.module_url}});case 11:lr=vr.sent;case 12:zt(!1),gn(!1),pt(!1),fr(lr),Wr(!1),Sn(!1),wr(Or.module_type),Or.module_type==="chart"?(zt(!0),sr(!1),Ba()):Or.module_type==="certificate"?(gn(!0),zt(!1),sr(!1),ba()):Or.module_type==="md_tab"?(pt(!0),sr(!1),localStorage.setItem("issee","2"),zt(!1),gn(!1),ca()):Or.module_type==="md_shixun"?(Wr(!0),sr(!1),ca()):Or.module_type==="entrance"?(Sn(!0),sr(!1),ca()):(sr(!0),localStorage.setItem("issee","1"));case 20:case"end":return vr.stop()}},Sr)})),Fn.apply(this,arguments)}function Pn(Sr,Or,lr){return ai.apply(this,arguments)}function ai(){return ai=Object(o.a)(r.a.mark(function Sr(Or,lr,Tn){var vr,pa;return r.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(Or.stopPropagation(),Object(fe.e)(tr)){Kn.next=3;break}return Kn.abrupt("return");case 3:if(!(st!=null&&st.is_authentication&&!(qt!=null&&(vr=qt.userInfo)!==null&&vr!==void 0&&vr.authentication))){Kn.next=6;break}return tr({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),Kn.abrupt("return");case 6:if(!(st!=null&&st.enroll_url)){Kn.next=9;break}return Object(Ut.O)(st==null?void 0:st.enroll_url),Kn.abrupt("return");case 9:if(!(Tn==="ismodel")){Kn.next=23;break}if(!(lr.member_of_course===!0)){Kn.next=14;break}Object(Ut.O)("/classrooms/".concat(lr.course_id)),Kn.next=21;break;case 14:if(lr.invite_code){Kn.next=17;break}return u.b.info("\u672C\u7ADE\u8D5B\u53EA\u9762\u5411\u90E8\u5206\u5B66\u6821/\u5355\u4F4D\u5F00\u653E\uFF0C\u4F60\u6682\u65F6\u6CA1\u6709\u53C2\u8D5B\u8D44\u683C"),Kn.abrupt("return");case 17:return Kn.next=19,tr({type:"competitions/addApplytojoincourse",payload:{invite_code:lr.invite_code,student:1}});case 19:pa=Kn.sent,pa.status===0&&Object(Ut.O)("/classrooms/".concat(lr.course_id));case 21:Kn.next=27;break;case 23:if(!(rr.enrolled===!0)){Kn.next=26;break}return Object(Ut.O)(Tn),Kn.abrupt("return");case 26:Dn(!0);case 27:case"end":return Kn.stop()}},Sr)})),ai.apply(this,arguments)}function Ba(){return wa.apply(this,arguments)}function wa(){return wa=Object(o.a)(r.a.mark(function Sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.t0=fn,lr.next=3,tr({type:"competitions/ChartRules",payload:{identifier:xt}});case 3:return lr.t1=lr.sent,lr.next=6,(0,lr.t0)(lr.t1);case 6:case"end":return lr.stop()}},Sr)})),wa.apply(this,arguments)}function la(Sr){return ua.apply(this,arguments)}function ua(){return ua=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Charts",payload:{identifier:xt,stage_id:Or}});case 2:lr=vr.sent,fr(lr);case 4:case"end":return vr.stop()}},Sr)})),ua.apply(this,arguments)}function ka(Sr){return _a.apply(this,arguments)}function _a(){return _a=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return hn(!0),vr.next=3,tr({type:"competitions/Results",payload:Object(L.a)({identifier:xt,stage_id:Or==null?void 0:Or.id},Or)});case 3:lr=vr.sent,fr(lr),hn(!1);case 6:case"end":return vr.stop()}},Sr)})),_a.apply(this,arguments)}function La(Sr){return Wa.apply(this,arguments)}function Wa(){return Wa=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return hn(!0),vr.next=3,tr({type:"competitions/Results",payload:Object(L.a)({identifier:xt,stage_id:Or==null?void 0:Or.id,module_type:"entrance"},Or)});case 3:lr=vr.sent,fr(lr),hn(!1);case 6:case"end":return vr.stop()}},Sr)})),Wa.apply(this,arguments)}function Xa(Sr){return Ma.apply(this,arguments)}function Ma(){return Ma=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Results",payload:{identifier:xt,stage_id:Or}});case 2:if(lr=vr.sent,!(localStorage.getItem("issee")==="1")){vr.next=5;break}return vr.abrupt("return");case 5:fr(lr);case 6:case"end":return vr.stop()}},Sr)})),Ma.apply(this,arguments)}function ca(){return Sa.apply(this,arguments)}function Sa(){return Sa=Object(o.a)(r.a.mark(function Sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.t0=Ir,lr.next=3,tr({type:"competitions/TabResults",payload:{identifier:xt,competition_module_id:je}});case 3:lr.t1=lr.sent,(0,lr.t0)(lr.t1);case 5:case"end":return lr.stop()}},Sr)})),Sa.apply(this,arguments)}function ba(){return da.apply(this,arguments)}function da(){return da=Object(o.a)(r.a.mark(function Sr(){var Or,lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Prize",payload:{identifier:xt,user_id:qt==null||((Or=qt.userInfo)===null||Or===void 0)?void 0:Or.user_id}});case 2:lr=vr.sent,Me(lr);case 4:case"end":return vr.stop()}},Sr)})),da.apply(this,arguments)}function co(){return Ea.apply(this,arguments)}function Ea(){return Ea=Object(o.a)(r.a.mark(function Sr(){var Or,lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.next=2,tr({type:"competitions/Accounts",payload:{id:qt==null||((Or=qt.userInfo)===null||Or===void 0)?void 0:Or.user_id}});case 2:lr=vr.sent,Ee(lr);case 4:case"end":return vr.stop()}},Sr)})),Ea.apply(this,arguments)}function Ta(Sr){return fa.apply(this,arguments)}function fa(){return fa=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(Vn){vr.next=2;break}return vr.abrupt("return");case 2:if(ii(!1),!ha()){vr.next=5;break}return vr.abrupt("return");case 5:return vr.next=7,tr({type:"competitions/AddTeam",payload:{identifier:xt,name:Or}});case 7:lr=vr.sent,lr&&lr.status===0?(u.b.info("\u521B\u5EFA\u6218\u961F\u6210\u529F"),Mn(),gi(!1)):ii(!0);case 9:case"end":return vr.stop()}},Sr)})),fa.apply(this,arguments)}function ha(){var Sr,Or;if(qt!=null&&(Sr=qt.userInfo)!==null&&Sr!==void 0&&Sr.is_teacher){var lr;if(rr!=null&&(lr=rr.teacher_staff)!==null&&lr!==void 0&&lr.mutiple_limited&&(rr!=null&&rr.enrolled))return u.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),ii(!0),!0}else{var Tn;if(rr!=null&&(Tn=rr.member_staff)!==null&&Tn!==void 0&&Tn.mutiple_limited&&(rr!=null&&rr.enrolled))return u.b.info("\u4F60\u5DF2\u7ECF\u62A5\u540D\uFF0C\u4E0D\u80FD\u91CD\u590D\u62A5\u540D"),ii(!0),!0}if(rr!=null&&rr.enroll_ended)return u.b.info("\u62A5\u540D\u5DF2\u622A\u6B62\uFF0C\u65E0\u9700\u62A5\u540D"),ii(!0),!0;if(qt!=null&&(Or=qt.userInfo)!==null&&Or!==void 0&&Or.is_teacher){if(!rr.teacher_staff)return u.b.info("\u5DF2\u7981\u6B62\u8001\u5E08\u62A5\u540D"),ii(!0),!0}else if(!(rr!=null&&rr.member_staff))return u.b.info("\u5DF2\u7981\u6B62\u5B66\u751F\u62A5\u540D"),ii(!0),!0}function $i(Sr){return na.apply(this,arguments)}function na(){return na=Object(o.a)(r.a.mark(function Sr(Or){var lr;return r.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(Vn){vr.next=2;break}return vr.abrupt("return");case 2:if(!ha()){vr.next=4;break}return vr.abrupt("return");case 4:return ii(!1),vr.next=7,tr({type:"competitions/JoinTeam",payload:{identifier:xt,invite_code:Or}});case 7:lr=vr.sent,lr&&lr.status===0?(u.b.info("\u52A0\u5165\u6218\u961F\u6210\u529F"),Hn(!1),ii(!0),Mn()):ii(!0);case 9:case"end":return vr.stop()}},Sr)})),na.apply(this,arguments)}return t.a.createElement("div",{className:"edu-container minH500"},t.a.createElement(n.a,{className:"mt10",separator:">"},t.a.createElement(n.a.Item,null,t.a.createElement(E.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),t.a.createElement(n.a.Item,null,st.name,st.sub_title?"-"+st.sub_title:null)),t.a.createElement("div",{className:"mt10",style:{display:"flex",background:"#fff",position:"relative",padding:"20px 12px"}},t.a.createElement(d.a,{spinning:yr.effects["competitions/getHeader"]},t.a.createElement("div",{style:{height:"355px",width:"800px"}},(st==null?void 0:st.avatar_url)&&(st==null?void 0:st.avatar_url)!==null&&t.a.createElement("img",{style:{height:"355px",width:"800px"},src:X.a.IMG_SERVER+"/"+(st==null?void 0:st.avatar_url)}),!(st!=null&&st.avatar_url)&&(st==null?void 0:st.avatar_url)==null&&t.a.createElement("img",{style:{height:"355px",width:"800px"},src:X.a.IMG_SERVER+"/images/educoder/competitions/mainbanner.jpg"}))),t.a.createElement("div",{style:{marginLeft:"20px",width:"400px"}},t.a.createElement("p",{className:"".concat(O.a.titlesize)},st.name,st.sub_title?"-"+st.sub_title:null),t.a.createElement("p",{style:{display:"flex",justifyContent:"space-between",marginRight:18}},t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u5956\u91D1"),st!=null&&st.bonus?t.a.createElement("span",{style:{fontSize:"24px"}},"\xA5",parseInt(st&&st.bonus).toLocaleString()):t.a.createElement("span",{style:{fontSize:"24px"}},"\u6682\u65E0")),t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u6D4F\u89C8"),t.a.createElement("span",{style:{fontSize:"24px"}},parseInt(st&&st.visits_count).toLocaleString())),t.a.createElement("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},t.a.createElement("span",null,"\u62A5\u540D"),t.a.createElement("span",{style:{fontSize:"24px"}},parseInt(st&&st.member_count).toLocaleString()))),t.a.createElement("p",{className:O.a.timesize,style:{marginTop:30}},t.a.createElement("span",{style:{color:"#9b9b9b",marginTop:"30px"}},"\u7ADE\u8D5B\u65F6\u95F4\uFF1A"),st.start_time,"~",st.end_time),t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u62A5\u540D\u622A\u6B62\uFF1A"),st.enroll_end_time),st.competition_status==="ended"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u5DF2\u7ED3\u675F"):null,st.competition_status==="nearly_published"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u672A\u53D1\u5E03"):null,st.competition_status==="progressing"?t.a.createElement("p",{className:O.a.timesize},t.a.createElement("span",{style:{color:"#9b9b9b"}},"\u7ADE\u8D5B\u72B6\u6001\uFF1A"),"\u8FDB\u884C\u4E2D"):null,t.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},(st==null?void 0:st.mode)<=2&&rr.enrolled&&t.a.createElement(S.a,{onClick:function(Or){if((st==null?void 0:st.mode)===1){var lr;Bi((lr=st.competition_modules)===null||lr===void 0?void 0:lr.find(function(Tn){return Tn.module_type==="entrance"}))}else Pn(Or,st,"ismodel")},style:{background:"#07C160",color:"#fff",border:"1px solid #07C160",marginRight:20,display:(st==null?void 0:st.mode)===2||(st==null?void 0:st.mode)===1&&((mt=st.competition_modules)===null||mt===void 0||((Ct=mt.filter(function(Sr){return Sr.module_type==="entrance"}))===null||Ct===void 0)?void 0:Ct.length)>0?"":"none"},className:O.a.buttonsize},(st==null?void 0:st.mode)===1&&"\u8D5B\u9898\u5165\u53E3",(st==null?void 0:st.mode)===2&&"\u8FDB\u5165\u8BFE\u5802"),st.competition_status==="ended"?t.a.createElement(S.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u5DF2\u7ED3\u675F"):null,st.competition_status==="nearly_published"?t.a.createElement(S.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u672A\u53D1\u5E03"):null,st.competition_status!=="nearly_published"&&st.enroll_end&&st.competition_status!=="ended"?t.a.createElement(S.a,{type:"primary",className:O.a.buttonsize,disabled:!0},"\u62A5\u540D\u622A\u6B62"):null,st.competition_status==="progressing"&&st.enroll_end!=!0?t.a.createElement(S.a,{type:"primary",disabled:rr.enrolled&&!st.need_attachment,className:O.a.buttonsize,onClick:function(Or){if(rr.enrolled&&st.need_attachment){var lr;(lr=ra.current)===null||lr===void 0||lr.handleVisible();return}Pn(Or,st,st.mode===2?"ismodel":st.personal?"personal":"/competitions/index/".concat(st.identifier,"/enroll"))}},rr.enrolled?st.need_attachment?"\u4E0A\u4F20\u4F5C\u54C1":"\u5DF2\u62A5\u540D":st!=null&&st.enroll_url?"\u524D\u5F80\u5927\u8D5B\u5B98\u7F51\u62A5\u540D":"\u7ACB\u5373\u62A5\u540D"):null),qt.userInfo.real_name!="\u6E38\u5BA2"&&!(st!=null&&st.enroll_url)&&t.a.createElement("span",{onClick:function(Or){return Pn(Or,st,st.mode===2?"ismodel":st.personal?"personal":"/competitions/index/".concat(st.identifier,"/enroll"))},className:O.a.myteam},Object(zr.u)()?"\u53C2\u8D5B\u6218\u961F>>":"\u6211\u7684\u6218\u961F>>"))),t.a.createElement("div",{className:O.a.bootmdetail},t.a.createElement("div",{className:O.a.flex1},t.a.createElement(p.a,{selectedKeys:["".concat(je)]},st&&st.competition_modules&&st.competition_modules.map(function(Sr,Or){if(Sr.module_type!="enroll")return t.a.createElement(p.a.Item,{className:O.a.menuItem,onClick:function(){if(Sr!=null&&Sr.is_authentication){if(!Object(fe.e)(tr))return;u.b.info("\u52A0\u5165\u6218\u961F\u624D\u80FD\u67E5\u770B");return}Bi(Sr)},key:Sr.id},Sr.name)}))),t.a.createElement("div",{className:O.a.flex6,style:{padding:(jr||Tr)&&0}},Ur?t.a.createElement(Lt,{dispatch:tr,userid:qt==null||((It=qt.userInfo)===null||It===void 0)?void 0:It.user_id,Prize:ei,Accounts:Fe,getAccounts:co}):null,yt?t.a.createElement(Le,{HeaderDetail:st,userinfo:qt.userInfo,Editable:st==null||((Pt=st.permission)===null||Pt===void 0)?void 0:Pt.editable,getCharts:la,getChartRules:Ba,Selectkey:je,ChartRules:cn,ItemData:dr}):null,qe?t.a.createElement(ee,{ref:ra,StaffDetail:rr,HeaderDetail:st,userinfo:qt.userInfo,Editable:st==null||((Ht=st.permission)===null||Ht===void 0)?void 0:Ht.editable,ItemData:dr,setIssee:sr,ModelType:Zt,dispatch:tr}):null,!qe&&!jr&&!Tr&&!yt&&!Ur&&!Ze?t.a.createElement(Q,{userinfo:qt.userInfo,ModelType:Zt,getrightdatas:Bi,dispatch:tr,MenuItem:xr,setIssee:sr,identifier:xt,ItemData:dr}):null,Ze&&t.a.createElement(In,{dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((Wt=st.permission)===null||Wt===void 0)?void 0:Wt.editable,getCharts:Xa,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}),jr&&t.a.createElement(xi,{loading:xn,dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((dt=st.permission)===null||dt===void 0)?void 0:dt.editable,getCharts:ka,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}),Tr&&t.a.createElement(sa,{loading:xn,dispatch:tr,StaffDetail:rr,userinfo:qt.userInfo,HeaderDetail:st,Editable:st==null||((At=st.permission)===null||At===void 0)?void 0:At.editable,getCharts:La,getChartRules:ca,Selectkey:je,ChartRules:Yt,ItemData:dr}))),t.a.createElement(C.a,null),t.a.createElement(G,{getResults:Xa}),t.a.createElement(T.a,{visible:nn,footer:null,width:720,title:"\u63D0\u793A",centered:!0,onCancel:function(){return Kr(!1)}},t.a.createElement("div",{className:O.a.modal},t.a.createElement("div",null,"\u534E\u4E3A\u6A21\u578B\u738B\u8005\u6311\u6218\u8D5B\u9EC4\u91D1\u8D5B\u6B63\u5F0F\u5F00\u542F\u5566"),t.a.createElement("div",null,"\u672C\u8D5B\u6BB5\u603B\u5956\u91D1\u9AD8\u8FBE",t.a.createElement("span",{style:{color:"#FF8C29"}},"300,000"),"\u5143"),t.a.createElement("div",null,"1\u3001\u7B26\u5408\u8D5B\u9898\u8981\u6C42\u7684\u961F\u4F0D\uFF08\u517125\u652F\uFF09\u53EF\u83B7\u5F97\u5956\u91D1\uFF1A12000RMB/\u961F \uFF1B"),t.a.createElement("div",null,"2\u3001\u53C2\u4E0E\u83B7\u5F97\u201C\u8363\u8000\u6BBF\u5802\u201D\u699C\u4E3B\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1\uFF1B"),t.a.createElement("div",null,"3\u3001\u5404\u8D5B\u9898\u7CBE\u5EA6\u6700\u9AD8\u7684\u961F\u4F0D\uFF0C\u53EF\u83B7\u5F97\u7531\u4E2D\u56FD\u8F6F\u4EF6\u5F00\u6E90\u521B\u65B0\u5927\u8D5B\u7EC4\u59D4\u4F1A\u9881\u53D1\u7684\u9EC4\u91D1\u5B9D\u7BB1+\u8363\u8A89\u8BC1\u4E66\uFF1B"),t.a.createElement("div",null,"\u5FC3\u52A8\u5427\uFF0C\u90A3\u5C31\u5FEB\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u62A5\u540D\u53C2\u8D5B"),t.a.createElement(S.a,{type:"primary",onClick:function(){return Object(Ut.O)("https://competition.huaweicloud.com/information/1000041485/introduction")}},"\u524D\u5F80\u62A5\u540D\u53C2\u8D5B"))),t.a.createElement(T.a,{title:"\u9009\u62E9\u53C2\u8D5B\u65B9\u5F0F",visible:Wn,onCancel:function(){Dn(!1)},footer:!1},t.a.createElement("div",{style:{display:"flex",justifyContent:"space-around",height:100,alignItems:"center"}},t.a.createElement(S.a,{type:"primary",style:{height:40},onClick:function(){Hn(!0),Dn(!1)}},"\u52A0\u5165\u6218\u961F\u53C2\u8D5B"),t.a.createElement(S.a,{style:{height:40},onClick:function(){gi(!0),Dn(!1)}},"\u53BB\u521B\u5EFA\u6218\u961F\u53C2\u8D5B"))),di?t.a.createElement(Ii.a,{isjoin:di,setJoin:Hn,JoinTeams:$i}):null,Jn?t.a.createElement(qn.a,{isAddmodle:Jn,setIsAdd:gi,createTeam:Ta}):null)},ta=Y.default=Object(f.a)(function(Tt){var it=Tt.loading,mt=Tt.globalSetting,Ct=Tt.user;return{globalSetting:mt,loading:it,user:Ct}})(Vi)},GRuw:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("lPiR"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.algo,v=p.SHA256,S=p.SHA224=v.extend({_doReset:function(){this._hash=new P.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var b=v._doFinalize.call(this);return b.sigBytes-=4,b}});g.SHA224=v._createHelper(S),g.HmacSHA224=v._createHmacHelper(S)}(),L.SHA224})},GfqC:function(j,Y,D){"use strict";var L=D("q1tI"),g=D.n(L),T=D("TSYQ"),P=D.n(T);function p(K,U){var W="cannot "+K.method+" "+K.action+" "+U.status+"'",X=new Error(W);return X.status=U.status,X.method=K.method,X.url=K.action,X}function v(K){var U=K.responseText||K.response;if(!U)return U;try{return JSON.parse(U)}catch(W){return U}}function S(K){var U=new XMLHttpRequest;K.onProgress&&U.upload&&(U.upload.onprogress=function(fe){fe.total>0&&(fe.percent=fe.loaded/fe.total*100),K.onProgress(fe)});var W=new FormData;K.data&&Object.keys(K.data).forEach(function(ne){var fe=K.data[ne];if(Array.isArray(fe)){fe.forEach(function(me){W.append(ne+"[]",me)});return}W.append(ne,K.data[ne])}),K.file instanceof Blob?W.append(K.filename,K.file,K.file.name):W.append(K.filename,K.file),U.onerror=function(fe){K.onError(fe)},U.onload=function(){return U.status<200||U.status>=300?K.onError(p(K,U),v(U)):K.onSuccess(v(U),U)},U.open(K.method,K.action,!0),K.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var X=K.headers||{};return X["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(X).forEach(function(ne){X[ne]!==null&&U.setRequestHeader(ne,X[ne])}),U.send(W),{abort:function(){U.abort()}}}var b=+new Date,d=0;function l(){return"rc-upload-"+b+"-"+ ++d}function n(K,U){return K.indexOf(U,K.length-U.length)!==-1}var c=function(K,U){if(K&&U){var W=Array.isArray(U)?U:U.split(","),X=K.name||"",ne=K.type||"",fe=ne.replace(/\/.*$/,"");return W.some(function(me){var Ae=me.trim();return Ae.charAt(0)==="."?n(X.toLowerCase(),Ae.toLowerCase()):/\/\*$/.test(Ae)?fe===Ae.replace(/\/.*$/,""):ne===Ae})}return!0};function u(K,U){var W=K.createReader(),X=[];function ne(){W.readEntries(function(fe){var me=Array.prototype.slice.apply(fe);X=X.concat(me);var Ae=!me.length;Ae?U(X):ne()})}ne()}var o=function(U,W,X){var ne=function fe(me,Ae){Ae=Ae||"",me.isFile?me.file(function(De){X(De)&&(me.fullPath&&!De.webkitRelativePath&&(Object.defineProperties(De,{webkitRelativePath:{writable:!0}}),De.webkitRelativePath=me.fullPath.replace(/^\//,""),Object.defineProperties(De,{webkitRelativePath:{writable:!1}})),W([De]))}):me.isDirectory&&u(me,function(De){De.forEach(function(ye){fe(ye,""+Ae+me.name+"/")})})};U.forEach(function(fe){ne(fe.webkitGetAsEntry())})},h=o,m=Object.assign||function(K){for(var U=1;U=0)continue;if(!Object.prototype.hasOwnProperty.call(K,X))continue;W[X]=K[X]}return W}function w(K,U){if(!(K instanceof U))throw new TypeError("Cannot call a class as a function")}function E(K,U){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:K}function f(K,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);K.prototype=Object.create(U&&U.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(K,U):K.__proto__=U)}var k=function(U){return Object.keys(U).reduce(function(W,X){return(X.substr(0,5)==="data-"||X.substr(0,5)==="aria-"||X==="role")&&(W[X]=U[X]),W},{})},O=function(K){f(U,K);function U(){var W,X,ne,fe;w(this,U);for(var me=arguments.length,Ae=Array(me),De=0;De>>2]>>>24-k%4*8&255;t[E+k>>>2]|=O<<24-(E+k)%4*8}else for(var C=0;C>>2]=w[C>>>2];return this.sigBytes+=f,this},clamp:function(){var a=this.words,t=this.sigBytes;a[t>>>2]&=4294967295<<32-t%4*8,a.length=T.ceil(t/4)},clone:function(){var a=l.clone.call(this);return a.words=this.words.slice(0),a},random:function(a){for(var t=[],w=0;w>>2]>>>24-f%4*8&255;E.push((k>>>4).toString(16)),E.push((k&15).toString(16))}return E.join("")},parse:function(a){for(var t=a.length,w=[],E=0;E>>3]|=parseInt(a.substr(E,2),16)<<24-E%8*4;return new n.init(w,t/2)}},o=c.Latin1={stringify:function(a){for(var t=a.words,w=a.sigBytes,E=[],f=0;f>>2]>>>24-f%4*8&255;E.push(String.fromCharCode(k))}return E.join("")},parse:function(a){for(var t=a.length,w=[],E=0;E>>2]|=(a.charCodeAt(E)&255)<<24-E%4*8;return new n.init(w,t)}},h=c.Utf8={stringify:function(a){try{return decodeURIComponent(escape(o.stringify(a)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(a){return o.parse(unescape(encodeURIComponent(a)))}},m=d.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new n.init,this._nDataBytes=0},_append:function(a){typeof a=="string"&&(a=h.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(a){var t,w=this._data,E=w.words,f=w.sigBytes,k=this.blockSize,O=k*4,C=f/O;a?C=T.ceil(C):C=T.max((C|0)-this._minBufferSize,0);var x=C*k,y=T.min(x*4,f);if(x){for(var _=0;_=k?g:{done:!1,value:E[f++]}}}}d.fromArray=u;function o(E){return{next:function(){var f=E.next();return f.done?g:{done:!1,value:f.value}}}}d.fromNativeIterator=o;function h(E){return E?Array.isArray(E)?d.fromArray(E):E:d.empty()}d.from=h;function m(E,f){return{next:function(){var k=E.next();return k.done?g:{done:!1,value:f(k.value)}}}}d.map=m;function s(E,f){return{next:function(){for(;;){var k=E.next();if(k.done)return g;if(f(k.value))return{done:!1,value:k.value}}}}}d.filter=s;function r(E,f){for(var k=E.next();!k.done;k=E.next())f(k.value)}d.forEach=r;function a(E,f){f===void 0&&(f=Number.POSITIVE_INFINITY);var k=[];if(f===0)return k;for(var O=0,C=E.next();!C.done&&!(k.push(C.value),++O>=f);C=E.next());return k}d.collect=a;function t(){for(var E=[],f=0;f=E.length)return g;var O=E[k],C=O.next();return C.done?(k++,this.next()):C}}}d.concat=t;function w(E){return new P(E)}d.chain=w})(T||(T={}));var P=function(){function d(l){this.it=l}return d.prototype.next=function(){return this.it.next()},d}();function p(d){return Array.isArray(d)?T.fromArray(d):d||T.empty()}var v=function(){function d(l,n,c,u){n===void 0&&(n=0),c===void 0&&(c=l.length),u===void 0&&(u=n-1),this.items=l,this.start=n,this.end=c,this.index=u}return d.prototype.first=function(){return this.index=this.start,this.current()},d.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},d.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},d}(),S=function(d){L(l,d);function l(n,c,u,o){return c===void 0&&(c=0),u===void 0&&(u=n.length),o===void 0&&(o=c-1),d.call(this,n,c,u,o)||this}return l.prototype.current=function(){return d.prototype.current.call(this)},l.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},l.prototype.first=function(){return this.index=this.start,this.current()},l.prototype.last=function(){return this.index=this.end-1,this.current()},l.prototype.parent=function(){return null},l}(v),b=function(){function d(l,n){this.iterator=l,this.fn=n}return d.prototype.next=function(){return this.fn(this.iterator.next())},d}()},K3mO:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("3y9D"),D("WYAk"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Base,p=T.WordArray,v=g.algo,S=v.MD5,b=v.EvpKDF=P.extend({cfg:P.extend({keySize:128/32,hasher:S,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,l){for(var n,c=this.cfg,u=c.hasher.create(),o=p.create(),h=o.words,m=c.keySize,s=c.iterations;h.lengthOe)){ue.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Oe/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),ue.abrupt("return",!1);case 7:return H.push({name:ye.name,file:ye}),B(Object(P.a)(H)),I.onChange(H),ue.abrupt("return",!1);case 11:case"end":return ue.stop()}},De)}));function Ae(De){return me.apply(this,arguments)}return Ae}()},fe=function(){var me=Object(b.a)(c.a.mark(function Ae(De,ye){var Oe,xe,ue,le,re,pe,ee,te,ce;return c.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return ye.file_name=De.name,ee=De.name,Q.next=4,Object(h.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(te=Q.sent,te.data=JSON.parse(f(te.data)),!((te==null?void 0:te.status)!==0)){Q.next=12;break}return H[H.findIndex(function(V){return V.name===ee})].status="error",H[H.findIndex(function(V){return V.name===ee})].file.status="error",I.onChange(H),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Q.abrupt("return");case 12:return W=new w.a({endpoint:te==null||((Oe=te.data)===null||Oe===void 0)?void 0:Oe.end_point,region:te==null||((xe=te.data)===null||xe===void 0)?void 0:xe.region,accessKeyId:te==null||((ue=te.data)===null||ue===void 0)?void 0:ue.access_key_id,accessKeySecret:te==null||((le=te.data)===null||le===void 0)?void 0:le.access_key_secret,bucket:te==null||((re=te.data)===null||re===void 0)?void 0:re.bucket,stsToken:te==null||((pe=te.data)===null||pe===void 0)?void 0:pe.security_token}),console.log(De,"file"),X(W),ce=Object(r.a)(),Q.abrupt("return",new Promise(function(V,Z){try{var be;W.multipartUpload("".concat(I.identifier,"/").concat(ce).concat(ee.indexOf(".")>-1?"."+ee.split(".").pop():""),new Blob([De.file],{type:De.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Te,Je,rt){try{console.log("\u8FDB\u5EA6",Te,Je,rt);var nt=H.findIndex(function(at){return at.name===ee});H[nt].file.percent=Te*100,H[nt].tempCheckpoint=Je,B(Object(P.a)(H))}catch(at){}},checkpoint:H[H.findIndex(function(ge){return ge.name===ee})].tempCheckpoint,callback:{customValue:{id:ee+""},url:te==null||((be=te.data)===null||be===void 0)?void 0:be.callback_url,host:te==null?void 0:te.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(h.e)(ye)}}).then(function(ge){var Te,Je=H.findIndex(function(ht){return ht.name===ee}),rt="done";if(((Te=ge.data)===null||Te===void 0?void 0:Te.status)===0){var nt;De.response=(nt=ge.data)===null||nt===void 0?void 0:nt.data;var at=H.findIndex(function(ht){return ht.name===ee});H[at].status="done",H[at].file.status="done"}else{var ct;T.b.warn((ct=ge.data)===null||ct===void 0?void 0:ct.message),rt="error"}H[Je].status=rt,H[Je].file.status=rt,I.onChange(H),V(ge==null?void 0:ge.data)}).catch(function(ge){H[H.findIndex(function(Te){return Te.name===ee})].status="error",H[H.findIndex(function(Te){return Te.name===ee})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),B(Object(P.a)(H)),I.onChange(H),Z(ge),console.log("err:",ge)})}catch(ge){}}));case 17:case"end":return Q.stop()}},Ae)}));return function(De,ye){return me.apply(this,arguments)}}();return Object(u.useEffect)(function(){H.every(function(me){return me==="done"||me==="error"})&&I.onComplete(H)},[H]),Object(u.useEffect)(function(){if(M){var me;(me=W)===null||me===void 0||me.cancel()}},[M]),Object(u.useEffect)(function(){I.uploading&&H.map(function(){var me=Object(b.a)(c.a.mark(function Ae(De){var ye,Oe;return c.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!((!De.status||De.status==="error")&&!M)){ue.next=6;break}return De.status="uploading",De.file.status="uploading",ue.next=5,fe(De,{login:_==null||((ye=_.userInfo)===null||ye===void 0)?void 0:ye.login,container_type:I.container_type,container_id:I.container_id,description:I.description});case 5:Oe=ue.sent;case 6:case"end":return ue.stop()}},Ae)}));return function(Ae){return me.apply(this,arguments)}}())},[I.uploading]),o.a.createElement(E,Object(L.a)({},ne,{height:I.height,className:I.className}),o.a.createElement("p",{className:"ant-upload-hint"},I.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Y.b=Object(a.a)(function(x){var y=x.loading,_=x.globalSetting,M=x.user;return{globalSetting:_,loading:y.models.competitions,user:M}})(C)},KmYQ:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.pad.ZeroPadding={pad:function(g,T){var P=T*4;g.clamp(),g.sigBytes+=P-(g.sigBytes%P||P)},unpad:function(g){for(var T=g.words,P=g.sigBytes-1,P=g.sigBytes-1;P>=0;P--)if(T[P>>>2]>>>24-P%4*8&255){g.sigBytes=P+1;break}}},L.pad.ZeroPadding})},LdHM:function(j,Y,D){"use strict";D.d(Y,"b",function(){return t}),D.d(Y,"a",function(){return E});var L=D("1OyB"),g=D("vuIU"),T=D("Ji7U"),P=D("LK+K"),p=D("q1tI"),v=D("rePB"),S=D("Ff2n"),b=D("ODXe"),d=D("4IlW"),l=D("bX4T"),n=D("YrtM"),c=D("TSYQ"),u=D.n(c),o=D("+nKL"),h=D("8OUc"),m=function(X,ne){var fe=X.prefixCls,me=X.id,Ae=X.flattenOptions,De=X.childrenAsData,ye=X.values,Oe=X.searchValue,xe=X.multiple,ue=X.defaultActiveFirstOption,le=X.height,re=X.itemHeight,pe=X.notFoundContent,ee=X.open,te=X.menuItemSelectedIcon,ce=X.virtual,q=X.onSelect,Q=X.onToggleOpen,V=X.onActiveValue,Z=X.onScroll,be=X.onMouseEnter,ge="".concat(fe,"-item"),Te=Object(n.a)(function(){return Ae},[ee,Ae],function(lt,Ue){return Ue[0]&<[1]!==Ue[1]}),Je=p.useRef(null),rt=function(Ue){Ue.preventDefault()},nt=function(Ue){Je.current&&Je.current.scrollTo({index:Ue})},at=function(Ue){for(var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ie=Te.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(W).map(function(ne,fe){if(!p.isValidElement(ne)||!ne.type)return null;var me=ne.type.isSelectOptGroup,Ae=ne.key,De=ne.props,ye=De.children,Oe=Object(S.a)(De,["children"]);return X||!me?O(ne):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?fe:Ae,"__"),label:Ae},Oe),{},{options:C(ye)})}).filter(function(ne){return ne})}var x=D("2Qr1"),y=D("qNPg"),_=D("U8pU"),M=D("Kwbf"),I=D("WKfj");function N(W){var X=W.mode,ne=W.options,fe=W.children,me=W.backfill,Ae=W.allowClear,De=W.placeholder,ye=W.getInputElement,Oe=W.showSearch,xe=W.onSearch,ue=W.defaultOpen,le=W.autoFocus,re=W.labelInValue,pe=W.value,ee=W.inputValue,te=W.optionLabelProp,ce=X==="multiple"||X==="tags",q=Oe!==void 0?Oe:ce||X==="combobox",Q=ne||C(fe);if(Object(M.a)(X!=="tags"||Q.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),X==="tags"||X==="combobox"){var V=Q.some(function(ge){return ge.options?ge.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(M.a)(!V,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(X!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(X==="combobox"||!me,"`backfill` only works with `combobox` mode."),Object(M.a)(X==="combobox"||!ye,"`getInputElement` only work with `combobox` mode."),Object(M.b)(X!=="combobox"||!ye||!Ae||!De,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xe&&!q&&X!=="combobox"&&X!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!ue||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),pe!=null){var Z=Object(I.d)(pe);Object(M.a)(!re||Z.every(function(ge){return Object(_.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!ce||Array.isArray(pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var be=null;Object(k.a)(fe).some(function(ge){if(!p.isValidElement(ge)||!ge.type)return!1;var Te=ge.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var Je=Object(k.a)(ge.props.children).every(function(rt){return!p.isValidElement(rt)||!ge.type||rt.type.isSelectOption?!0:(be=rt.type,!1)});return!Je}return be=Te,!0}),be&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(be.displayName||be.name||be,"`.")),Object(M.a)(ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var G=N,H=Object(y.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:C,flattenOptions:x.d,getLabeledValue:x.e,filterOptions:x.b,isValueDisabled:x.g,findValueOption:x.c,warningProps:G,fillOptionsWithMissingValue:x.a}),B=function(W){Object(T.a)(ne,W);var X=Object(P.a)(ne);function ne(){var fe;return Object(L.a)(this,ne),fe=X.apply(this,arguments),fe.selectRef=p.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(g.a)(ne,[{key:"render",value:function(){return p.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ne}(p.Component);B.Option=t,B.OptGroup=E;var K=B,U=Y.c=K},M8RZ:function(j,Y,D){"use strict";D.d(Y,"a",function(){return d});var L=D("fWQN"),g=D("mtLc"),T=D("yKVA"),P=D("879j"),p=D("q1tI"),v=D.n(p),S=D("i8i4"),b=D.n(S),d=function(l){Object(T.a)(c,l);var n=Object(P.a)(c);function c(u){var o;Object(L.a)(this,c),o=n.call(this,u);var h=window.document;return o.node=h.createElement("div"),h.body.appendChild(o.node),o}return Object(g.a)(c,[{key:"render",value:function(){var o=this.props.children;return Object(S.createPortal)(o,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),c}(v.a.Component)},MI8n:function(j,Y,D){"use strict";D.d(Y,"b",function(){return v}),D.d(Y,"a",function(){return d}),D.d(Y,"e",function(){return l}),D.d(Y,"d",function(){return n}),D.d(Y,"c",function(){return c}),D.d(Y,"f",function(){return u});var L=D("/cxE"),g=D("C/vA"),T=D("pmY6"),P=D("24hK"),p=function(){var o=function(h,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var a in r)r.hasOwnProperty(a)&&(s[a]=r[a])},o(h,m)};return function(h,m){o(h,m);function s(){this.constructor=h}h.prototype=m===null?Object.create(m):(s.prototype=m.prototype,new s)}}(),v;(function(o){o.None=function(){return T.a.None};function h(G){return function(H,B,K){B===void 0&&(B=null);var U=!1,W;return W=G(function(X){return U?void 0:(W?W.dispose():U=!0,H.call(B,X))},null,K),U&&W.dispose(),W}}o.once=h;function m(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){return B.call(K,H(W))},null,U)})}o.map=m;function s(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){H(W),B.call(K,W)},null,U)})}o.forEach=s;function r(G,H){return E(function(B,K,U){return K===void 0&&(K=null),G(function(W){return H(W)&&B.call(K,W)},null,U)})}o.filter=r;function a(G){return G}o.signal=a;function t(){for(var G=[],H=0;H1)&&me.fire(De),fe=0},B)})},onLastListenerRemove:function(){W.dispose()}});return me.event}o.debounce=f;function k(G){var H=new Date().getTime();return m(h(G),function(B){return new Date().getTime()-H})}o.stopwatch=k;function O(G){var H=!0,B;return r(G,function(K){var U=H||K!==B;return H=!1,B=K,U})}o.latch=O;function C(G,H,B){H===void 0&&(H=!1),B===void 0&&(B=[]);var K=B.slice(),U=G(function(ne){K?K.push(ne):X.fire(ne)}),W=function(){K&&K.forEach(function(ne){return X.fire(ne)}),K=null},X=new d({onFirstListenerAdd:function(){U||(U=G(function(ne){return X.fire(ne)}))},onFirstListenerDidAdd:function(){K&&(H?setTimeout(W):W())},onLastListenerRemove:function(){U&&U.dispose(),U=null}});return X.event}o.buffer=C;var x=function(){function G(H){this.event=H}return G.prototype.map=function(H){return new G(m(this.event,H))},G.prototype.forEach=function(H){return new G(s(this.event,H))},G.prototype.filter=function(H){return new G(r(this.event,H))},G.prototype.reduce=function(H,B){return new G(w(this.event,H,B))},G.prototype.latch=function(){return new G(O(this.event))},G.prototype.debounce=function(H,B,K,U){return B===void 0&&(B=100),K===void 0&&(K=!1),new G(f(this.event,H,B,K,U))},G.prototype.on=function(H,B,K){return this.event(H,B,K)},G.prototype.once=function(H,B,K){return h(this.event)(H,B,K)},G}();function y(G){return new x(G)}o.chain=y;function _(G,H,B){B===void 0&&(B=function(ne){return ne});var K=function(){for(var ne=[],fe=0;fe0?new b(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(o.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(m,s,r){h._listeners||(h._listeners=new P.a);var a=h._listeners.isEmpty();a&&h._options&&h._options.onFirstListenerAdd&&h._options.onFirstListenerAdd(h);var t=h._listeners.push(s?[m,s]:m);a&&h._options&&h._options.onFirstListenerDidAdd&&h._options.onFirstListenerDidAdd(h),h._options&&h._options.onListenerDidAdd&&h._options.onListenerDidAdd(h,m,s);var w;h._leakageMon&&(w=h._leakageMon.check(h._listeners.size));var E;return E={dispose:function(){if(w&&w(),E.dispose=o._noop,!h._disposed&&(t(),h._options&&h._options.onLastListenerRemove)){var f=h._listeners&&!h._listeners.isEmpty();f||h._options.onLastListenerRemove(h)}}},r instanceof T.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),o.prototype.fire=function(h){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(var m=this._listeners.iterator(),s=m.next();!s.done;s=m.next())this._deliveryQueue.push([s.value,h]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),a=r[0],t=r[1];try{typeof a=="function"?a.call(void 0,t):a[0].call(a[1],t)}catch(w){Object(L.e)(w)}}}},o.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},o._noop=function(){},o}(),l=function(o){p(h,o);function h(m){var s=o.call(this,m)||this;return s._isPaused=0,s._eventQueue=new P.a,s._mergeFn=m&&m.merge,s}return h.prototype.pause=function(){this._isPaused++},h.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),o.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)o.prototype.fire.call(this,this._eventQueue.shift())},h.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):o.prototype.fire.call(this,m))},h}(d),n=function(){function o(){var h=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return h.onFirstListenerAdd()},onLastListenerRemove:function(){return h.onLastListenerRemove()}})}return Object.defineProperty(o.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),o.prototype.add=function(h){var m=this,s={event:h,listener:null};this.events.push(s),this.hasListeners&&this.hook(s);var r=function(){m.hasListeners&&m.unhook(s);var a=m.events.indexOf(s);m.events.splice(a,1)};return Object(T.h)(Object(g.a)(r))},o.prototype.onFirstListenerAdd=function(){var h=this;this.hasListeners=!0,this.events.forEach(function(m){return h.hook(m)})},o.prototype.onLastListenerRemove=function(){var h=this;this.hasListeners=!1,this.events.forEach(function(m){return h.unhook(m)})},o.prototype.hook=function(h){var m=this;h.listener=h.event(function(s){return m.emitter.fire(s)})},o.prototype.unhook=function(h){h.listener&&h.listener.dispose(),h.listener=null},o.prototype.dispose=function(){this.emitter.dispose()},o}(),c=function(){function o(){this.buffers=[]}return o.prototype.wrapEvent=function(h){var m=this;return function(s,r,a){return h(function(t){var w=m.buffers[m.buffers.length-1];w?w.push(function(){return s.call(r,t)}):s.call(r,t)},void 0,a)}},o.prototype.bufferEvents=function(h){var m=[];this.buffers.push(m);var s=h();return this.buffers.pop(),m.forEach(function(r){return r()}),s},o}(),u=function(){function o(){var h=this;this.listening=!1,this.inputEvent=v.None,this.inputEventListener=T.a.None,this.emitter=new d({onFirstListenerDidAdd:function(){h.listening=!0,h.inputEventListener=h.inputEvent(h.emitter.fire,h.emitter)},onLastListenerRemove:function(){h.listening=!1,h.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(o.prototype,"input",{set:function(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),o.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},o}()},MlIO:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(g){var T=L,P=T.lib,p=P.Base,v=P.WordArray,_=T.x64={},b=_.Word=p.extend({init:function(l,n){this.high=l,this.low=n}}),d=_.WordArray=p.extend({init:function(l,n){l=this.words=l||[],n!=g?this.sigBytes=n:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,n=l.length,c=[],u=0;u=q.length?V:q[be]})}function p(ce){return ce.replace(/[<>&]/g,function(q){switch(q){case"<":return"<";case">":return">";case"&":return"&";default:return q}})}function v(ce){return ce.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function _(ce,q){q===void 0&&(q=" ");var Q=b(ce,q);return d(Q,q)}function b(ce,q){if(!ce||!q)return ce;var Q=q.length;if(Q===0||ce.length===0)return ce;for(var V=0;ce.indexOf(q,V)===V;)V=V+Q;return ce.substring(V)}function d(ce,q){if(!ce||!q)return ce;var Q=q.length,V=ce.length;if(Q===0||V===0)return ce;for(var Z=V,be=-1;!(be=ce.lastIndexOf(q,Z-1),be===-1||be+Q!==Z);){if(be===0)return"";Z=be}return ce.substring(0,Z)}function l(ce){return ce.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function n(ce,q){if(ce.length0?ce.indexOf(q,Q)===Q:Q===0?ce===q:!1}function u(ce,q,Q){if(Q===void 0&&(Q={}),!ce)throw new Error("Cannot create regex from empty string");q||(ce=v(ce)),Q.wholeWord&&(/\B/.test(ce.charAt(0))||(ce="\\b"+ce),/\B/.test(ce.charAt(ce.length-1))||(ce=ce+"\\b"));var V="";return Q.global&&(V+="g"),Q.matchCase||(V+="i"),Q.multiline&&(V+="m"),Q.unicode&&(V+="u"),new RegExp(ce,V)}function o(ce){if(ce.source==="^"||ce.source==="^$"||ce.source==="$"||ce.source==="^\\s*$")return!1;var q=ce.exec("");return!!(q&&ce.lastIndex===0)}function h(ce){return(ce.global?"g":"")+(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")}function m(ce){for(var q=0,Q=ce.length;q=0;Q--){var V=ce.charCodeAt(Q);if(V!==32&&V!==9)return Q}return-1}function a(ce,q){return ceq?1:0}function t(ce,q){for(var Q=Math.min(ce.length,q.length),V=0;Vq.length?1:0}function w(ce){return ce>=97&&ce<=122}function E(ce){return ce>=65&&ce<=90}function f(ce){return w(ce)||E(ce)}function k(ce,q){return ce.length===q.length&&O(ce,q)}function O(ce,q,Q){Q===void 0&&(Q=ce.length);for(var V=0;Vce.length?!1:O(ce,q,Q)}function x(ce,q){var Q,V=Math.min(ce.length,q.length);for(Q=0;Q1){var V=ce.charCodeAt(q-2);if(S(V))return(V-55296<<10)+(Q-56320)+65536}return Q}function G(ce,q){var Q=ee.getInstance(),V=q,Z=ce.length,be=I(ce,Z,q);q+=be>=65536?2:1;for(var ge=Q.getGraphemeBreakType(be);q=65536?2:1,ge=Je}return q-V}function H(ce,q){var Q=ee.getInstance(),V=q,Z=N(ce,q);q-=Z>=65536?2:1;for(var be=Q.getGraphemeBreakType(Z);q>0;){var ge=N(ce,q),Te=Q.getGraphemeBreakType(ge);if(pe(Te,be))break;q-=ge>=65536?2:1,be=Te}return V-q}var B=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function K(ce){return B.test(ce)}var U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(ce){return U.test(ce)}var X=/^[\t\n\r\x20-\x7E]*$/;function ne(ce){return X.test(ce)}function fe(ce){for(var q=0,Q=ce.length;q=11904&&ce<=55215||ce>=63744&&ce<=64255||ce>=65281&&ce<=65374}function Ae(ce){return ce>=127462&&ce<=127487||ce>=9728&&ce<=10175||ce>=127744&&ce<=128591||ce>=128640&&ce<=128764||ce>=128992&&ce<=129003||ce>=129280&&ce<=129535||ce>=129648&&ce<=129651||ce>=129656&&ce<=129666||ce>=129680&&ce<=129685}var De=String.fromCharCode(65279);function ye(ce){return!!(ce&&ce.length>0&&ce.charCodeAt(0)===65279)}function Oe(ce){return btoa(encodeURIComponent(ce))}function xe(ce,q){for(var Q="",V=0;VQ[3*Z+1])Z=2*Z+1;else return Q[3*Z+2];return 0},ce._INSTANCE=null,ce}();function te(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NFKh:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"),D("F+F2"),D("qM6L"),D("ETIr"),D("wbyO"),D("cv67"),D("3y9D"),D("lPiR"),D("GRuw"),D("1uat"),D("uGsb"),D("5hvy"),D("ELcG"),D("WYAk"),D("e7zE"),D("K3mO"),D("OLod"),D("ALsQ"),D("9OqN"),D("qu8F"),D("S6kV"),D("gb/T"),D("qBft"),D("oRuE"),D("jO9C"),D("KmYQ"),D("uGxW"),D("bQjk"),D("wZgz"),D("pA7S"),D("w7YG"),D("E4JC"),D("PVpz"))})(this,function(L){return L})},NLgs:function(j,Y,D){"use strict";D.d(Y,"e",function(){return w}),D.d(Y,"f",function(){return E}),D.d(Y,"d",function(){return k}),D.d(Y,"c",function(){return O}),D.d(Y,"a",function(){return C}),D.d(Y,"b",function(){return x});var L=D("miYZ"),g=D("tsqr"),T=D("9og8"),P=D("2qtc"),p=D("kLXV"),v=D("WmNS"),_=D.n(v),b=D("q1tI"),d=D.n(b),l=D("9kvl"),n=D("xKgJ"),c=D("1vsH"),u=D("RCxd"),o=D("mOS8"),h=D.n(o),m=D("1ZF9"),s=D.n(m),r=D("WdTA"),a=D.n(r),t=D("m3rI"),w=function(S){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(E(S)&&f(M))},E=function(S){return Object(n.p)()?!0:(S({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},f=function(){var S,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,I=Object(l.c)()._store.getState(),N=I.user;return(S=N.userInfo)!==null&&S!==void 0&&S.profile_completed?!0:(p.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:M?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){l.d.push("/account/profile/edit")}}),!1)},k=function(){var S,M=Object(l.c)()._store.getState(),I=M.user;return(S=I.userInfo)!==null&&S!==void 0&&S.professional_certification?!0:(p.a.confirm({title:"\u63D0\u793A",centered:!0,content:d.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(c.O)("/account/certification")}}),!1)},O=function(){return Object(n.a)()?!0:(p.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),d.a.createElement("img",{src:Object(n.t)()?a.a:"".concat(t.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},C=function(S,M){return S?!0:(p.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("p",null,M||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),d.a.createElement("div",{style:{marginLeft:"110px"}},d.a.createElement("img",{src:s.a,width:200}),d.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(c.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},x=function(S){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",I=Object(l.c)()._store.getState(),N=I.shixunsDetail.detail;return(N==null?void 0:N.public)===2||(N==null?void 0:N.public)===1||(N==null?void 0:N.shixun_status)===3?(p.a.info({centered:!0,icon:d.a.createElement(u.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(N==null?void 0:N.public)===2?"\u5DF2\u516C\u5F00":(N==null?void 0:N.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",M,"\u3002"),d.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),d.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(N==null?void 0:N.shixun_status)===2?(p.a.confirm({centered:!0,icon:d.a.createElement(u.a,null),title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",M,"\u3002"),d.a.createElement("br",null),d.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){p.a.confirm({width:440,centered:!0,icon:d.a.createElement(u.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var H=Object(T.a)(_.a.mark(function K(){var U;return _.a.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,S({type:"shixunsDetail/cancelRelease",payload:{id:N==null?void 0:N.identifier}});case 2:U=X.sent,U.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),S({type:"shixunsDetail/getShixunsDetail",payload:{id:N==null?void 0:N.identifier}}),S({type:"practiceSetting/getCommonData",payload:{id:N==null?void 0:N.identifier}}));case 4:case"end":return X.stop()}},K)}));function B(){return H.apply(this,arguments)}return B}()})}}),!0):!1}},NnUe:function(j,Y,D){j.exports={modal:"modal___sZeHv",colorBlue:"colorBlue___3FmfG",formWrap:"formWrap___3YEqH",flexRow:"flexRow___37Sa0",flexColumn:"flexColumn___1ykGy",example:"example___7mYRk",exampleImg:"exampleImg___UGH9Y",colorOrange:"colorOrange___1IJLa",uploader:"uploader___3f2Sm",uploadImg:"uploadImg___3WCoA",imageTip:"imageTip___FhklW",uploadTipIcon:"uploadTipIcon___2YZJx",uploadTip:"uploadTip___1eikX",color05101a:"color05101a___1Nuwt",viewLargerImg:"viewLargerImg___Ek8jW",footerWrap:"footerWrap___F9F0q",note:"note___1U6xc",schoolHintWrap:"schoolHintWrap___31S22",colorCDCDCD:"colorCDCDCD___1KqvR",color0152d9:"color0152d9___1YXxu"}},NvD2:function(j,Y,D){"use strict";D.d(Y,"a",function(){return v});var L=D("Kwbf");function g(_,b){var d=new Set;return _.forEach(function(l){b.has(l)||d.add(l)}),d}function T(_){var b=_||{},d=b.disabled,l=b.disableCheckbox,n=b.checkable;return!!(d||l)||n===!1}function P(_,b,d,l){for(var n=new Set(_),c=new Set,u=0;u<=d;u+=1){var o=b.get(u)||new Set;o.forEach(function(r){var a=r.key,t=r.node,w=r.children,E=w===void 0?[]:w;n.has(a)&&!l(t)&&E.filter(function(f){return!l(f.node)}).forEach(function(f){n.add(f.key)})})}for(var h=new Set,m=d;m>=0;m-=1){var s=b.get(m)||new Set;s.forEach(function(r){var a=r.parent,t=r.node;if(l(t)||!r.parent||h.has(r.parent.key))return;if(l(r.parent.node)){h.add(a.key);return}var w=!0,E=!1;(a.children||[]).filter(function(f){return!l(f.node)}).forEach(function(f){var k=f.key,O=n.has(k);w&&!O&&(w=!1),!E&&(O||c.has(k))&&(E=!0)}),w&&n.add(a.key),E&&c.add(a.key),h.add(a.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(g(c,n))}}function p(_,b,d,l,n){for(var c=new Set(_),u=new Set(b),o=0;o<=l;o+=1){var h=d.get(o)||new Set;h.forEach(function(a){var t=a.key,w=a.node,E=a.children,f=E===void 0?[]:E;!c.has(t)&&!u.has(t)&&!n(w)&&f.filter(function(k){return!n(k.node)}).forEach(function(k){c.delete(k.key)})})}u=new Set;for(var m=new Set,s=l;s>=0;s-=1){var r=d.get(s)||new Set;r.forEach(function(a){var t=a.parent,w=a.node;if(n(w)||!a.parent||m.has(a.parent.key))return;if(n(a.parent.node)){m.add(t.key);return}var E=!0,f=!1;(t.children||[]).filter(function(k){return!n(k.node)}).forEach(function(k){var O=k.key,C=c.has(O);E&&!C&&(E=!1),!f&&(C||u.has(O))&&(f=!0)}),E||c.delete(t.key),f&&u.add(t.key),m.add(t.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(g(u,c))}}function v(_,b,d,l){var n=[],c;l?c=l:c=T;var u=new Set(_.filter(function(s){var r=!!d[s];return r||n.push(s),r})),o=new Map,h=0;Object.keys(d).forEach(function(s){var r=d[s],a=r.level,t=o.get(a);t||(t=new Set,o.set(a,t)),t.add(r),h=Math.max(h,a)}),Object(L.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var m;return b===!0?m=P(u,o,h,c):m=p(u,b.halfCheckedKeys,o,h,c),m}},OLod:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("K3mO"))})(this,function(L){L.lib.Cipher||function(g){var T=L,P=T.lib,p=P.Base,v=P.WordArray,_=P.BufferedBlockAlgorithm,b=T.enc,d=b.Utf8,l=b.Base64,n=T.algo,c=n.EvpKDF,u=P.Cipher=_.extend({cfg:p.extend(),createEncryptor:function(y,S){return this.create(this._ENC_XFORM_MODE,y,S)},createDecryptor:function(y,S){return this.create(this._DEC_XFORM_MODE,y,S)},init:function(y,S,M){this.cfg=this.cfg.extend(M),this._xformMode=y,this._key=S,this.reset()},reset:function(){_.reset.call(this),this._doReset()},process:function(y){return this._append(y),this._process()},finalize:function(y){y&&this._append(y);var S=this._doFinalize();return S},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function y(S){return typeof S=="string"?x:k}return function(S){return{encrypt:function(M,I,N){return y(I).encrypt(S,M,I,N)},decrypt:function(M,I,N){return y(I).decrypt(S,M,I,N)}}}}()}),o=P.StreamCipher=u.extend({_doFinalize:function(){var y=this._process(!0);return y},blockSize:1}),h=T.mode={},m=P.BlockCipherMode=p.extend({createEncryptor:function(y,S){return this.Encryptor.create(y,S)},createDecryptor:function(y,S){return this.Decryptor.create(y,S)},init:function(y,S){this._cipher=y,this._iv=S}}),s=h.CBC=function(){var y=m.extend();y.Encryptor=y.extend({processBlock:function(M,I){var N=this._cipher,G=N.blockSize;S.call(this,M,I,G),N.encryptBlock(M,I),this._prevBlock=M.slice(I,I+G)}}),y.Decryptor=y.extend({processBlock:function(M,I){var N=this._cipher,G=N.blockSize,H=M.slice(I,I+G);N.decryptBlock(M,I),S.call(this,M,I,G),this._prevBlock=H}});function S(M,I,N){var G,H=this._iv;H?(G=H,this._iv=g):G=this._prevBlock;for(var B=0;B>>2]&255;y.sigBytes-=S}},t=P.BlockCipher=u.extend({cfg:u.cfg.extend({mode:s,padding:a}),reset:function(){var y;u.reset.call(this);var S=this.cfg,M=S.iv,I=S.mode;this._xformMode==this._ENC_XFORM_MODE?y=I.createEncryptor:(y=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==y?this._mode.init(this,M&&M.words):(this._mode=y.call(I,this,M&&M.words),this._mode.__creator=y)},_doProcessBlock:function(y,S){this._mode.processBlock(y,S)},_doFinalize:function(){var y,S=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(S.pad(this._data,this.blockSize),y=this._process(!0)):(y=this._process(!0),S.unpad(y)),y},blockSize:128/32}),w=P.CipherParams=p.extend({init:function(y){this.mixIn(y)},toString:function(y){return(y||this.formatter).stringify(this)}}),E=T.format={},f=E.OpenSSL={stringify:function(y){var S,M=y.ciphertext,I=y.salt;return I?S=v.create([1398893684,1701076831]).concat(I).concat(M):S=M,S.toString(l)},parse:function(y){var S,M=l.parse(y),I=M.words;return I[0]==1398893684&&I[1]==1701076831&&(S=v.create(I.slice(2,4)),I.splice(0,4),M.sigBytes-=16),w.create({ciphertext:M,salt:S})}},k=P.SerializableCipher=p.extend({cfg:p.extend({format:f}),encrypt:function(y,S,M,I){I=this.cfg.extend(I);var N=y.createEncryptor(M,I),G=N.finalize(S),H=N.cfg;return w.create({ciphertext:G,key:M,iv:H.iv,algorithm:y,mode:H.mode,padding:H.padding,blockSize:y.blockSize,formatter:I.format})},decrypt:function(y,S,M,I){I=this.cfg.extend(I),S=this._parse(S,I.format);var N=y.createDecryptor(M,I).finalize(S.ciphertext);return N},_parse:function(y,S){return typeof y=="string"?S.parse(y,this):y}}),O=T.kdf={},C=O.OpenSSL={execute:function(y,S,M,I){I||(I=v.random(64/8));var N=c.create({keySize:S+M}).compute(y,I),G=v.create(N.words.slice(S),M*4);return N.sigBytes=S*4,w.create({key:N,iv:G,salt:I})}},x=P.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:C}),encrypt:function(y,S,M,I){I=this.cfg.extend(I);var N=I.kdf.execute(M,y.keySize,y.ivSize);I.iv=N.iv;var G=k.encrypt.call(this,y,S,N.key,I);return G.mixIn(N),G},decrypt:function(y,S,M,I){I=this.cfg.extend(I),S=this._parse(S,I.format);var N=I.kdf.execute(M,y.keySize,y.ivSize,S.salt);I.iv=N.iv;var G=k.decrypt.call(this,y,S,N.key,I);return G}})}()})},OZM5:function(j,Y,D){"use strict";D.d(Y,"b",function(){return l}),D.d(Y,"a",function(){return n}),D.d(Y,"k",function(){return c}),D.d(Y,"h",function(){return u}),D.d(Y,"i",function(){return o}),D.d(Y,"g",function(){return h}),D.d(Y,"c",function(){return m}),D.d(Y,"d",function(){return s}),D.d(Y,"j",function(){return t}),D.d(Y,"e",function(){return w}),D.d(Y,"f",function(){return E});var L=D("KQm4"),g=D("U8pU"),T=D("Ff2n"),P=D("q1tI"),p=D.n(P),v=D("Kwbf"),_=D("WaYH"),b=.25,d=2;function l(f,k){var O=f.slice(),C=O.indexOf(k);return C>=0&&O.splice(C,1),O}function n(f,k){var O=f.slice();return O.indexOf(k)===-1&&O.push(k),O}function c(f){return f.split("-")}function u(f,k){return"".concat(f,"-").concat(k)}function o(f){return f&&f.type&&f.type.isTreeNode}function h(f,k){var O=[f],C=k[f];function x(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];y.forEach(function(S){var M=S.key,I=S.children;O.push(M),x(I)})}return x(C.children),O}function m(f,k){var O=f.clientY,C=k.selectHandle.getBoundingClientRect(),x=C.top,y=C.bottom,S=C.height,M=Math.max(S*b,d);return O<=x+M?-1:O>=y-M?1:0}function s(f,k){if(!f)return;var O=k.multiple;return O?f.slice():f.length?[f[0]]:f}var r=function(k){return k};function a(f,k){if(!f)return[];var O=k||{},C=O.processProps,x=C===void 0?r:C,y=Array.isArray(f)?f:[f];return y.map(function(S){var M=S.children,I=Object(T.a)(S,["children"]),N=a(M,k);return p.a.createElement(_.a,Object.assign({},x(I)),N)})}function t(f){if(!f)return null;var k;if(Array.isArray(f))k={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(g.a)(f)==="object")k={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(v.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function w(f,k){var O=new Set;function C(x){if(O.has(x))return;var y=k[x];if(!y)return;O.add(x);var S=y.parent,M=y.node;if(M.disabled)return;S&&C(S.key)}return(f||[]).forEach(function(x){C(x)}),Object(L.a)(O)}function E(f){var k={};return Object.keys(f).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(k[O]=f[O])}),k}},Ot1p:function(j,Y,D){"use strict";var L=D("2qtc"),g=D("kLXV"),T=D("rAM+"),P=D("miYZ"),p=D("tsqr"),v=D("9og8"),_=D("tJVT"),b=D("jrin"),d=D("WmNS"),l=D.n(d),n=D("q1tI"),c=D.n(n),u=D("VrN/"),o=D.n(u),h=D("bdgK"),m=D("p77/"),s=D("Bd2K"),r=D("ELLl"),a=D("19Vz"),t=D("lZu9"),w=D("+NIl"),E=D("kSUc"),f=D("9Bee"),k=function($e){var bt=$e.value,gt=bt===void 0?"":bt,Ut=$e.className,Nt=$e.showTextOnly,hr=$e.showLines,mr=$e.style,_t=mr===void 0?{}:mr,Yr=Object(n.useMemo)(function(){return""},[gt]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{dangerouslySetInnerHTML:{__html:Yr}}))},O=D("0Owb"),C=D("dejd"),x=D("C+DQ"),y=D("1vsH"),S=D("m3rI"),M=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function I($e){var bt=$e.onActionCallback,gt=$e.title,Ut=$e.icon,Nt=$e.actionName,hr=$e.className,mr=hr===void 0?"":hr,_t=$e.children;function Yr(){bt(Nt)}return c.a.createElement("a",{title:gt,className:mr,onClick:Yr},c.a.createElement("i",{className:"md-iconfont ".concat(Ut)}),_t)}var N=function($e){var bt=$e.watch,gt=$e.showNullButton,Ut=$e.onActionCallback,Nt=$e.fullScreen,hr=$e.insertTemp,mr=$e.hidetoolBar,_t=$e.uuid,Yr=$e.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(y.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(y.D)("_educoder_session"),"&key=").concat(_t,"&api=").concat(encodeURIComponent(S.a.PROXY_SERVER)));var Jr=[].concat(M,[{title:"".concat(bt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(bt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},!mr&&Jr.map(function(Hr,un){return c.a.createElement("li",{key:un},Hr.actionName?c.a.createElement(I,Object(O.a)({},Hr,{onActionCallback:Ut})):c.a.createElement("span",{className:"v-line"}))}),gt?c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ut},c.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,hr&&c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(hr),onActionCallback:Ut},c.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(I,{icon:"".concat(Nt?"icon-shrink":"icon-enlarge"),title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ut})))},G=D("M8RZ"),H=D("+L6B"),B=D("2/Rp"),K=D("y8nQ"),U=D("Vl3Y"),W=D("5NDa"),X=D("5rEg"),ne={labelCol:{span:4},wrapperCol:{span:20}},fe=function($e){var bt=$e.callback,gt=$e.onCancel;function Ut(Nt){bt(Nt)}return c.a.createElement(U.a,Object(O.a)({},ne,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ut}),c.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},c.a.createElement(X.a,null)),c.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},c.a.createElement(X.a,null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},me=D("7ahc"),Ae=D("k1fw"),De=D("HmJG"),ye=D("BjJ7"),Oe=U.a.useForm,xe={width:280,marginRight:10},ue={labelCol:{span:5},wrapperCol:{span:19}},le=function($e){var bt=$e.callback,gt=$e.onCancel,Ut=Oe(),Nt=Object(_.a)(Ut,1),hr=Nt[0],mr=Object(n.useRef)();function _t(Hr){bt(Object(Ae.a)(Object(Ae.a)({},Hr),{},{name:mr.current}))}function Yr(Hr,un){hr.setFieldsValue({src:"/api/attachments/".concat(Hr.id,"?type=").concat(Hr.content_type),type:un.type})}function Jr(Hr){var un=Hr.target.files[0];mr.current=un.name,pe(un,Yr)}return c.a.createElement(U.a,Object(O.a)({form:hr},ue,{className:"upload-image-panel",onFinish:_t}),c.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},c.a.createElement(X.a,{style:xe})),c.a.createElement(re,{onFileChange:Jr}))),c.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},c.a.createElement(X.a,{style:{width:264}})),c.a.createElement(U.a.Item,{style:{textAlign:"right"}},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))};function re($e){var bt=$e.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",c.a.createElement("input",{type:"file",onChange:bt}))}function pe($e,bt){if(!$e)throw new String("\u6CA1\u6709\u6587\u4EF6");var gt=new FormData;gt.append("editormd-image-file",$e),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(Nt){bt(JSON.parse(Nt.target.responseText),$e)},!1),Ut.addEventListener("error",function(Nt){console.error(Nt)},!1),Ut.open("POST","".concat(ye.a,"/api/attachments.json")),Ut.send(gt)}var ee=D("giR+"),te=D("fyUT"),ce=D("7Kak"),q=D("9yH6"),Q=q.a.Group,V={margin:"0 8px"},Z=function($e){var bt=$e.callback,gt=$e.onCancel;function Ut(Nt){bt(Nt)}return c.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ut},c.a.createElement("div",{className:"flex-container"},c.a.createElement("span",{style:V},"\u5355\u5143\u683C\u6570\uFF1A"),c.a.createElement("span",{style:V},"\u884C\u6570"),c.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},c.a.createElement(te.a,null)),c.a.createElement("span",{style:V},"\u5217\u6570"),c.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},c.a.createElement(te.a,null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12}},c.a.createElement("span",{style:V},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),c.a.createElement(U.a.Item,{name:"align"},c.a.createElement(Q,null,c.a.createElement(q.a,{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(q.a,{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(q.a,{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(q.a,{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},be=D("ErOA"),ge=D("7Cbv"),Te="link",Je="upload-image",rt="code-block",nt="add-table",at="------------",ct={default:at,left:":".concat(at),center:":".concat(at,":"),right:"".concat(at,":")},ht=D("9VGf"),He,Re;function tt(){}var ft=0,Qe=1e4,lt="\u2581",Ue=` +`),a=this._stacks.get(r)||0;if(this._stacks.set(r,a+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=s*.5;var t,w=0;this._stacks.forEach(function(E,f){(!t||w0?new b(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(o.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(m,s,r){h._listeners||(h._listeners=new P.a);var a=h._listeners.isEmpty();a&&h._options&&h._options.onFirstListenerAdd&&h._options.onFirstListenerAdd(h);var t=h._listeners.push(s?[m,s]:m);a&&h._options&&h._options.onFirstListenerDidAdd&&h._options.onFirstListenerDidAdd(h),h._options&&h._options.onListenerDidAdd&&h._options.onListenerDidAdd(h,m,s);var w;h._leakageMon&&(w=h._leakageMon.check(h._listeners.size));var E;return E={dispose:function(){if(w&&w(),E.dispose=o._noop,!h._disposed&&(t(),h._options&&h._options.onLastListenerRemove)){var f=h._listeners&&!h._listeners.isEmpty();f||h._options.onLastListenerRemove(h)}}},r instanceof T.b?r.add(E):Array.isArray(r)&&r.push(E),E}),this._event},enumerable:!0,configurable:!0}),o.prototype.fire=function(h){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(var m=this._listeners.iterator(),s=m.next();!s.done;s=m.next())this._deliveryQueue.push([s.value,h]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),a=r[0],t=r[1];try{typeof a=="function"?a.call(void 0,t):a[0].call(a[1],t)}catch(w){Object(L.e)(w)}}}},o.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},o._noop=function(){},o}(),l=function(o){p(h,o);function h(m){var s=o.call(this,m)||this;return s._isPaused=0,s._eventQueue=new P.a,s._mergeFn=m&&m.merge,s}return h.prototype.pause=function(){this._isPaused++},h.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var m=this._eventQueue.toArray();this._eventQueue.clear(),o.prototype.fire.call(this,this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)o.prototype.fire.call(this,this._eventQueue.shift())},h.prototype.fire=function(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):o.prototype.fire.call(this,m))},h}(d),n=function(){function o(){var h=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return h.onFirstListenerAdd()},onLastListenerRemove:function(){return h.onLastListenerRemove()}})}return Object.defineProperty(o.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),o.prototype.add=function(h){var m=this,s={event:h,listener:null};this.events.push(s),this.hasListeners&&this.hook(s);var r=function(){m.hasListeners&&m.unhook(s);var a=m.events.indexOf(s);m.events.splice(a,1)};return Object(T.h)(Object(g.a)(r))},o.prototype.onFirstListenerAdd=function(){var h=this;this.hasListeners=!0,this.events.forEach(function(m){return h.hook(m)})},o.prototype.onLastListenerRemove=function(){var h=this;this.hasListeners=!1,this.events.forEach(function(m){return h.unhook(m)})},o.prototype.hook=function(h){var m=this;h.listener=h.event(function(s){return m.emitter.fire(s)})},o.prototype.unhook=function(h){h.listener&&h.listener.dispose(),h.listener=null},o.prototype.dispose=function(){this.emitter.dispose()},o}(),c=function(){function o(){this.buffers=[]}return o.prototype.wrapEvent=function(h){var m=this;return function(s,r,a){return h(function(t){var w=m.buffers[m.buffers.length-1];w?w.push(function(){return s.call(r,t)}):s.call(r,t)},void 0,a)}},o.prototype.bufferEvents=function(h){var m=[];this.buffers.push(m);var s=h();return this.buffers.pop(),m.forEach(function(r){return r()}),s},o}(),u=function(){function o(){var h=this;this.listening=!1,this.inputEvent=v.None,this.inputEventListener=T.a.None,this.emitter=new d({onFirstListenerDidAdd:function(){h.listening=!0,h.inputEventListener=h.inputEvent(h.emitter.fire,h.emitter)},onLastListenerRemove:function(){h.listening=!1,h.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(o.prototype,"input",{set:function(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),o.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},o}()},MlIO:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(g){var T=L,P=T.lib,p=P.Base,v=P.WordArray,S=T.x64={},b=S.Word=p.extend({init:function(l,n){this.high=l,this.low=n}}),d=S.WordArray=p.extend({init:function(l,n){l=this.words=l||[],n!=g?this.sigBytes=n:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,n=l.length,c=[],u=0;u=q.length?V:q[be]})}function p(ce){return ce.replace(/[<>&]/g,function(q){switch(q){case"<":return"<";case">":return">";case"&":return"&";default:return q}})}function v(ce){return ce.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function S(ce,q){q===void 0&&(q=" ");var Q=b(ce,q);return d(Q,q)}function b(ce,q){if(!ce||!q)return ce;var Q=q.length;if(Q===0||ce.length===0)return ce;for(var V=0;ce.indexOf(q,V)===V;)V=V+Q;return ce.substring(V)}function d(ce,q){if(!ce||!q)return ce;var Q=q.length,V=ce.length;if(Q===0||V===0)return ce;for(var Z=V,be=-1;!(be=ce.lastIndexOf(q,Z-1),be===-1||be+Q!==Z);){if(be===0)return"";Z=be}return ce.substring(0,Z)}function l(ce){return ce.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function n(ce,q){if(ce.length0?ce.indexOf(q,Q)===Q:Q===0?ce===q:!1}function u(ce,q,Q){if(Q===void 0&&(Q={}),!ce)throw new Error("Cannot create regex from empty string");q||(ce=v(ce)),Q.wholeWord&&(/\B/.test(ce.charAt(0))||(ce="\\b"+ce),/\B/.test(ce.charAt(ce.length-1))||(ce=ce+"\\b"));var V="";return Q.global&&(V+="g"),Q.matchCase||(V+="i"),Q.multiline&&(V+="m"),Q.unicode&&(V+="u"),new RegExp(ce,V)}function o(ce){if(ce.source==="^"||ce.source==="^$"||ce.source==="$"||ce.source==="^\\s*$")return!1;var q=ce.exec("");return!!(q&&ce.lastIndex===0)}function h(ce){return(ce.global?"g":"")+(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")}function m(ce){for(var q=0,Q=ce.length;q=0;Q--){var V=ce.charCodeAt(Q);if(V!==32&&V!==9)return Q}return-1}function a(ce,q){return ceq?1:0}function t(ce,q){for(var Q=Math.min(ce.length,q.length),V=0;Vq.length?1:0}function w(ce){return ce>=97&&ce<=122}function E(ce){return ce>=65&&ce<=90}function f(ce){return w(ce)||E(ce)}function k(ce,q){return ce.length===q.length&&O(ce,q)}function O(ce,q,Q){Q===void 0&&(Q=ce.length);for(var V=0;Vce.length?!1:O(ce,q,Q)}function x(ce,q){var Q,V=Math.min(ce.length,q.length);for(Q=0;Q1){var V=ce.charCodeAt(q-2);if(_(V))return(V-55296<<10)+(Q-56320)+65536}return Q}function G(ce,q){var Q=ee.getInstance(),V=q,Z=ce.length,be=I(ce,Z,q);q+=be>=65536?2:1;for(var ge=Q.getGraphemeBreakType(be);q=65536?2:1,ge=Je}return q-V}function H(ce,q){var Q=ee.getInstance(),V=q,Z=N(ce,q);q-=Z>=65536?2:1;for(var be=Q.getGraphemeBreakType(Z);q>0;){var ge=N(ce,q),Te=Q.getGraphemeBreakType(ge);if(pe(Te,be))break;q-=ge>=65536?2:1,be=Te}return V-q}var B=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function K(ce){return B.test(ce)}var U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(ce){return U.test(ce)}var X=/^[\t\n\r\x20-\x7E]*$/;function ne(ce){return X.test(ce)}function fe(ce){for(var q=0,Q=ce.length;q=11904&&ce<=55215||ce>=63744&&ce<=64255||ce>=65281&&ce<=65374}function Ae(ce){return ce>=127462&&ce<=127487||ce>=9728&&ce<=10175||ce>=127744&&ce<=128591||ce>=128640&&ce<=128764||ce>=128992&&ce<=129003||ce>=129280&&ce<=129535||ce>=129648&&ce<=129651||ce>=129656&&ce<=129666||ce>=129680&&ce<=129685}var De=String.fromCharCode(65279);function ye(ce){return!!(ce&&ce.length>0&&ce.charCodeAt(0)===65279)}function Oe(ce){return btoa(encodeURIComponent(ce))}function xe(ce,q){for(var Q="",V=0;VQ[3*Z+1])Z=2*Z+1;else return Q[3*Z+2];return 0},ce._INSTANCE=null,ce}();function te(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NFKh:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"),D("F+F2"),D("qM6L"),D("ETIr"),D("wbyO"),D("cv67"),D("3y9D"),D("lPiR"),D("GRuw"),D("1uat"),D("uGsb"),D("5hvy"),D("ELcG"),D("WYAk"),D("e7zE"),D("K3mO"),D("OLod"),D("ALsQ"),D("9OqN"),D("qu8F"),D("S6kV"),D("gb/T"),D("qBft"),D("oRuE"),D("jO9C"),D("KmYQ"),D("uGxW"),D("bQjk"),D("wZgz"),D("pA7S"),D("w7YG"),D("E4JC"),D("PVpz"))})(this,function(L){return L})},NLgs:function(j,Y,D){"use strict";D.d(Y,"e",function(){return w}),D.d(Y,"f",function(){return E}),D.d(Y,"d",function(){return k}),D.d(Y,"c",function(){return O}),D.d(Y,"a",function(){return C}),D.d(Y,"b",function(){return x});var L=D("miYZ"),g=D("tsqr"),T=D("9og8"),P=D("2qtc"),p=D("kLXV"),v=D("WmNS"),S=D.n(v),b=D("q1tI"),d=D.n(b),l=D("9kvl"),n=D("xKgJ"),c=D("1vsH"),u=D("RCxd"),o=D("mOS8"),h=D.n(o),m=D("1ZF9"),s=D.n(m),r=D("WdTA"),a=D.n(r),t=D("m3rI"),w=function(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(E(_)&&f(M))},E=function(_){return Object(n.p)()?!0:(_({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},f=function(){var _,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,I=Object(l.c)()._store.getState(),N=I.user;return(_=N.userInfo)!==null&&_!==void 0&&_.profile_completed?!0:(p.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:M?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){l.d.push("/account/profile/edit")}}),!1)},k=function(){var _,M=Object(l.c)()._store.getState(),I=M.user;return(_=I.userInfo)!==null&&_!==void 0&&_.professional_certification?!0:(p.a.confirm({title:"\u63D0\u793A",centered:!0,content:d.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(c.O)("/account/certification")}}),!1)},O=function(){return Object(n.a)()?!0:(p.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),d.a.createElement("img",{src:Object(n.t)()?a.a:"".concat(t.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},C=function(_,M){return _?!0:(p.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("p",null,M||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),d.a.createElement("div",{style:{marginLeft:"110px"}},d.a.createElement("img",{src:s.a,width:200}),d.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(c.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},x=function(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",I=Object(l.c)()._store.getState(),N=I.shixunsDetail.detail;return(N==null?void 0:N.public)===2||(N==null?void 0:N.public)===1||(N==null?void 0:N.shixun_status)===3?(p.a.info({centered:!0,icon:d.a.createElement(u.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(N==null?void 0:N.public)===2?"\u5DF2\u516C\u5F00":(N==null?void 0:N.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",M,"\u3002"),d.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),d.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(N==null?void 0:N.shixun_status)===2?(p.a.confirm({centered:!0,icon:d.a.createElement(u.a,null),title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",M,"\u3002"),d.a.createElement("br",null),d.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){p.a.confirm({width:440,centered:!0,icon:d.a.createElement(u.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var H=Object(T.a)(S.a.mark(function K(){var U;return S.a.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,_({type:"shixunsDetail/cancelRelease",payload:{id:N==null?void 0:N.identifier}});case 2:U=X.sent,U.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_({type:"shixunsDetail/getShixunsDetail",payload:{id:N==null?void 0:N.identifier}}),_({type:"practiceSetting/getCommonData",payload:{id:N==null?void 0:N.identifier}}));case 4:case"end":return X.stop()}},K)}));function B(){return H.apply(this,arguments)}return B}()})}}),!0):!1}},NnUe:function(j,Y,D){j.exports={modal:"modal___sZeHv",colorBlue:"colorBlue___3FmfG",formWrap:"formWrap___3YEqH",flexRow:"flexRow___37Sa0",flexColumn:"flexColumn___1ykGy",example:"example___7mYRk",exampleImg:"exampleImg___UGH9Y",colorOrange:"colorOrange___1IJLa",uploader:"uploader___3f2Sm",uploadImg:"uploadImg___3WCoA",imageTip:"imageTip___FhklW",uploadTipIcon:"uploadTipIcon___2YZJx",uploadTip:"uploadTip___1eikX",color05101a:"color05101a___1Nuwt",viewLargerImg:"viewLargerImg___Ek8jW",footerWrap:"footerWrap___F9F0q",note:"note___1U6xc",schoolHintWrap:"schoolHintWrap___31S22",colorCDCDCD:"colorCDCDCD___1KqvR",color0152d9:"color0152d9___1YXxu"}},NvD2:function(j,Y,D){"use strict";D.d(Y,"a",function(){return v});var L=D("Kwbf");function g(S,b){var d=new Set;return S.forEach(function(l){b.has(l)||d.add(l)}),d}function T(S){var b=S||{},d=b.disabled,l=b.disableCheckbox,n=b.checkable;return!!(d||l)||n===!1}function P(S,b,d,l){for(var n=new Set(S),c=new Set,u=0;u<=d;u+=1){var o=b.get(u)||new Set;o.forEach(function(r){var a=r.key,t=r.node,w=r.children,E=w===void 0?[]:w;n.has(a)&&!l(t)&&E.filter(function(f){return!l(f.node)}).forEach(function(f){n.add(f.key)})})}for(var h=new Set,m=d;m>=0;m-=1){var s=b.get(m)||new Set;s.forEach(function(r){var a=r.parent,t=r.node;if(l(t)||!r.parent||h.has(r.parent.key))return;if(l(r.parent.node)){h.add(a.key);return}var w=!0,E=!1;(a.children||[]).filter(function(f){return!l(f.node)}).forEach(function(f){var k=f.key,O=n.has(k);w&&!O&&(w=!1),!E&&(O||c.has(k))&&(E=!0)}),w&&n.add(a.key),E&&c.add(a.key),h.add(a.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(g(c,n))}}function p(S,b,d,l,n){for(var c=new Set(S),u=new Set(b),o=0;o<=l;o+=1){var h=d.get(o)||new Set;h.forEach(function(a){var t=a.key,w=a.node,E=a.children,f=E===void 0?[]:E;!c.has(t)&&!u.has(t)&&!n(w)&&f.filter(function(k){return!n(k.node)}).forEach(function(k){c.delete(k.key)})})}u=new Set;for(var m=new Set,s=l;s>=0;s-=1){var r=d.get(s)||new Set;r.forEach(function(a){var t=a.parent,w=a.node;if(n(w)||!a.parent||m.has(a.parent.key))return;if(n(a.parent.node)){m.add(t.key);return}var E=!0,f=!1;(t.children||[]).filter(function(k){return!n(k.node)}).forEach(function(k){var O=k.key,C=c.has(O);E&&!C&&(E=!1),!f&&(C||u.has(O))&&(f=!0)}),E||c.delete(t.key),f&&u.add(t.key),m.add(t.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(g(u,c))}}function v(S,b,d,l){var n=[],c;l?c=l:c=T;var u=new Set(S.filter(function(s){var r=!!d[s];return r||n.push(s),r})),o=new Map,h=0;Object.keys(d).forEach(function(s){var r=d[s],a=r.level,t=o.get(a);t||(t=new Set,o.set(a,t)),t.add(r),h=Math.max(h,a)}),Object(L.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var m;return b===!0?m=P(u,o,h,c):m=p(u,b.halfCheckedKeys,o,h,c),m}},OLod:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("K3mO"))})(this,function(L){L.lib.Cipher||function(g){var T=L,P=T.lib,p=P.Base,v=P.WordArray,S=P.BufferedBlockAlgorithm,b=T.enc,d=b.Utf8,l=b.Base64,n=T.algo,c=n.EvpKDF,u=P.Cipher=S.extend({cfg:p.extend(),createEncryptor:function(y,_){return this.create(this._ENC_XFORM_MODE,y,_)},createDecryptor:function(y,_){return this.create(this._DEC_XFORM_MODE,y,_)},init:function(y,_,M){this.cfg=this.cfg.extend(M),this._xformMode=y,this._key=_,this.reset()},reset:function(){S.reset.call(this),this._doReset()},process:function(y){return this._append(y),this._process()},finalize:function(y){y&&this._append(y);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function y(_){return typeof _=="string"?x:k}return function(_){return{encrypt:function(M,I,N){return y(I).encrypt(_,M,I,N)},decrypt:function(M,I,N){return y(I).decrypt(_,M,I,N)}}}}()}),o=P.StreamCipher=u.extend({_doFinalize:function(){var y=this._process(!0);return y},blockSize:1}),h=T.mode={},m=P.BlockCipherMode=p.extend({createEncryptor:function(y,_){return this.Encryptor.create(y,_)},createDecryptor:function(y,_){return this.Decryptor.create(y,_)},init:function(y,_){this._cipher=y,this._iv=_}}),s=h.CBC=function(){var y=m.extend();y.Encryptor=y.extend({processBlock:function(M,I){var N=this._cipher,G=N.blockSize;_.call(this,M,I,G),N.encryptBlock(M,I),this._prevBlock=M.slice(I,I+G)}}),y.Decryptor=y.extend({processBlock:function(M,I){var N=this._cipher,G=N.blockSize,H=M.slice(I,I+G);N.decryptBlock(M,I),_.call(this,M,I,G),this._prevBlock=H}});function _(M,I,N){var G,H=this._iv;H?(G=H,this._iv=g):G=this._prevBlock;for(var B=0;B>>2]&255;y.sigBytes-=_}},t=P.BlockCipher=u.extend({cfg:u.cfg.extend({mode:s,padding:a}),reset:function(){var y;u.reset.call(this);var _=this.cfg,M=_.iv,I=_.mode;this._xformMode==this._ENC_XFORM_MODE?y=I.createEncryptor:(y=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==y?this._mode.init(this,M&&M.words):(this._mode=y.call(I,this,M&&M.words),this._mode.__creator=y)},_doProcessBlock:function(y,_){this._mode.processBlock(y,_)},_doFinalize:function(){var y,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),y=this._process(!0)):(y=this._process(!0),_.unpad(y)),y},blockSize:128/32}),w=P.CipherParams=p.extend({init:function(y){this.mixIn(y)},toString:function(y){return(y||this.formatter).stringify(this)}}),E=T.format={},f=E.OpenSSL={stringify:function(y){var _,M=y.ciphertext,I=y.salt;return I?_=v.create([1398893684,1701076831]).concat(I).concat(M):_=M,_.toString(l)},parse:function(y){var _,M=l.parse(y),I=M.words;return I[0]==1398893684&&I[1]==1701076831&&(_=v.create(I.slice(2,4)),I.splice(0,4),M.sigBytes-=16),w.create({ciphertext:M,salt:_})}},k=P.SerializableCipher=p.extend({cfg:p.extend({format:f}),encrypt:function(y,_,M,I){I=this.cfg.extend(I);var N=y.createEncryptor(M,I),G=N.finalize(_),H=N.cfg;return w.create({ciphertext:G,key:M,iv:H.iv,algorithm:y,mode:H.mode,padding:H.padding,blockSize:y.blockSize,formatter:I.format})},decrypt:function(y,_,M,I){I=this.cfg.extend(I),_=this._parse(_,I.format);var N=y.createDecryptor(M,I).finalize(_.ciphertext);return N},_parse:function(y,_){return typeof y=="string"?_.parse(y,this):y}}),O=T.kdf={},C=O.OpenSSL={execute:function(y,_,M,I){I||(I=v.random(64/8));var N=c.create({keySize:_+M}).compute(y,I),G=v.create(N.words.slice(_),M*4);return N.sigBytes=_*4,w.create({key:N,iv:G,salt:I})}},x=P.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:C}),encrypt:function(y,_,M,I){I=this.cfg.extend(I);var N=I.kdf.execute(M,y.keySize,y.ivSize);I.iv=N.iv;var G=k.encrypt.call(this,y,_,N.key,I);return G.mixIn(N),G},decrypt:function(y,_,M,I){I=this.cfg.extend(I),_=this._parse(_,I.format);var N=I.kdf.execute(M,y.keySize,y.ivSize,_.salt);I.iv=N.iv;var G=k.decrypt.call(this,y,_,N.key,I);return G}})}()})},OZM5:function(j,Y,D){"use strict";D.d(Y,"b",function(){return l}),D.d(Y,"a",function(){return n}),D.d(Y,"k",function(){return c}),D.d(Y,"h",function(){return u}),D.d(Y,"i",function(){return o}),D.d(Y,"g",function(){return h}),D.d(Y,"c",function(){return m}),D.d(Y,"d",function(){return s}),D.d(Y,"j",function(){return t}),D.d(Y,"e",function(){return w}),D.d(Y,"f",function(){return E});var L=D("KQm4"),g=D("U8pU"),T=D("Ff2n"),P=D("q1tI"),p=D.n(P),v=D("Kwbf"),S=D("WaYH"),b=.25,d=2;function l(f,k){var O=f.slice(),C=O.indexOf(k);return C>=0&&O.splice(C,1),O}function n(f,k){var O=f.slice();return O.indexOf(k)===-1&&O.push(k),O}function c(f){return f.split("-")}function u(f,k){return"".concat(f,"-").concat(k)}function o(f){return f&&f.type&&f.type.isTreeNode}function h(f,k){var O=[f],C=k[f];function x(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];y.forEach(function(_){var M=_.key,I=_.children;O.push(M),x(I)})}return x(C.children),O}function m(f,k){var O=f.clientY,C=k.selectHandle.getBoundingClientRect(),x=C.top,y=C.bottom,_=C.height,M=Math.max(_*b,d);return O<=x+M?-1:O>=y-M?1:0}function s(f,k){if(!f)return;var O=k.multiple;return O?f.slice():f.length?[f[0]]:f}var r=function(k){return k};function a(f,k){if(!f)return[];var O=k||{},C=O.processProps,x=C===void 0?r:C,y=Array.isArray(f)?f:[f];return y.map(function(_){var M=_.children,I=Object(T.a)(_,["children"]),N=a(M,k);return p.a.createElement(S.a,Object.assign({},x(I)),N)})}function t(f){if(!f)return null;var k;if(Array.isArray(f))k={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(g.a)(f)==="object")k={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(v.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function w(f,k){var O=new Set;function C(x){if(O.has(x))return;var y=k[x];if(!y)return;O.add(x);var _=y.parent,M=y.node;if(M.disabled)return;_&&C(_.key)}return(f||[]).forEach(function(x){C(x)}),Object(L.a)(O)}function E(f){var k={};return Object.keys(f).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(k[O]=f[O])}),k}},Ot1p:function(j,Y,D){"use strict";var L=D("2qtc"),g=D("kLXV"),T=D("rAM+"),P=D("miYZ"),p=D("tsqr"),v=D("9og8"),S=D("tJVT"),b=D("jrin"),d=D("WmNS"),l=D.n(d),n=D("q1tI"),c=D.n(n),u=D("VrN/"),o=D.n(u),h=D("bdgK"),m=D("p77/"),s=D("Bd2K"),r=D("ELLl"),a=D("19Vz"),t=D("lZu9"),w=D("+NIl"),E=D("kSUc"),f=D("9Bee"),k=function($e){var bt=$e.value,gt=bt===void 0?"":bt,Ut=$e.className,Nt=$e.showTextOnly,hr=$e.showLines,mr=$e.style,St=mr===void 0?{}:mr,Yr=Object(n.useMemo)(function(){return""},[gt]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{dangerouslySetInnerHTML:{__html:Yr}}))},O=D("0Owb"),C=D("dejd"),x=D("C+DQ"),y=D("1vsH"),_=D("m3rI"),M=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function I($e){var bt=$e.onActionCallback,gt=$e.title,Ut=$e.icon,Nt=$e.actionName,hr=$e.className,mr=hr===void 0?"":hr,St=$e.children;function Yr(){bt(Nt)}return c.a.createElement("a",{title:gt,className:mr,onClick:Yr},c.a.createElement("i",{className:"md-iconfont ".concat(Ut)}),St)}var N=function($e){var bt=$e.watch,gt=$e.showNullButton,Ut=$e.onActionCallback,Nt=$e.fullScreen,hr=$e.insertTemp,mr=$e.hidetoolBar,St=$e.uuid,Yr=$e.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(y.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(y.D)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(_.a.PROXY_SERVER)));var Jr=[].concat(M,[{title:"".concat(bt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(bt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},!mr&&Jr.map(function(Hr,un){return c.a.createElement("li",{key:un},Hr.actionName?c.a.createElement(I,Object(O.a)({},Hr,{onActionCallback:Ut})):c.a.createElement("span",{className:"v-line"}))}),gt?c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ut},c.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,hr&&c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(hr),onActionCallback:Ut},c.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(I,{icon:"".concat(Nt?"icon-shrink":"icon-enlarge"),title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ut})))},G=D("M8RZ"),H=D("+L6B"),B=D("2/Rp"),K=D("y8nQ"),U=D("Vl3Y"),W=D("5NDa"),X=D("5rEg"),ne={labelCol:{span:4},wrapperCol:{span:20}},fe=function($e){var bt=$e.callback,gt=$e.onCancel;function Ut(Nt){bt(Nt)}return c.a.createElement(U.a,Object(O.a)({},ne,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ut}),c.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},c.a.createElement(X.a,null)),c.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},c.a.createElement(X.a,null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},me=D("7ahc"),Ae=D("k1fw"),De=D("HmJG"),ye=D("BjJ7"),Oe=U.a.useForm,xe={width:280,marginRight:10},ue={labelCol:{span:5},wrapperCol:{span:19}},le=function($e){var bt=$e.callback,gt=$e.onCancel,Ut=Oe(),Nt=Object(S.a)(Ut,1),hr=Nt[0],mr=Object(n.useRef)();function St(Hr){bt(Object(Ae.a)(Object(Ae.a)({},Hr),{},{name:mr.current}))}function Yr(Hr,un){hr.setFieldsValue({src:"/api/attachments/".concat(Hr.id,"?type=").concat(Hr.content_type),type:un.type})}function Jr(Hr){var un=Hr.target.files[0];mr.current=un.name,pe(un,Yr)}return c.a.createElement(U.a,Object(O.a)({form:hr},ue,{className:"upload-image-panel",onFinish:St}),c.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},c.a.createElement(X.a,{style:xe})),c.a.createElement(re,{onFileChange:Jr}))),c.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},c.a.createElement(X.a,{style:{width:264}})),c.a.createElement(U.a.Item,{style:{textAlign:"right"}},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))};function re($e){var bt=$e.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",c.a.createElement("input",{type:"file",onChange:bt}))}function pe($e,bt){if(!$e)throw new String("\u6CA1\u6709\u6587\u4EF6");var gt=new FormData;gt.append("editormd-image-file",$e),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(Nt){bt(JSON.parse(Nt.target.responseText),$e)},!1),Ut.addEventListener("error",function(Nt){console.error(Nt)},!1),Ut.open("POST","".concat(ye.a,"/api/attachments.json")),Ut.send(gt)}var ee=D("giR+"),te=D("fyUT"),ce=D("7Kak"),q=D("9yH6"),Q=q.a.Group,V={margin:"0 8px"},Z=function($e){var bt=$e.callback,gt=$e.onCancel;function Ut(Nt){bt(Nt)}return c.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ut},c.a.createElement("div",{className:"flex-container"},c.a.createElement("span",{style:V},"\u5355\u5143\u683C\u6570\uFF1A"),c.a.createElement("span",{style:V},"\u884C\u6570"),c.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},c.a.createElement(te.a,null)),c.a.createElement("span",{style:V},"\u5217\u6570"),c.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},c.a.createElement(te.a,null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12}},c.a.createElement("span",{style:V},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),c.a.createElement(U.a.Item,{name:"align"},c.a.createElement(Q,null,c.a.createElement(q.a,{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(q.a,{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(q.a,{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(q.a,{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(B.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(B.a,{type:"ghost",onClick:gt},"\u53D6\u6D88")))},be=D("ErOA"),ge=D("7Cbv"),Te="link",Je="upload-image",rt="code-block",nt="add-table",at="------------",ct={default:at,left:":".concat(at),center:":".concat(at,":"),right:"".concat(at,":")},ht=D("9VGf"),He,Re;function tt(){}var ft=0,Qe=1e4,lt="\u2581",Ue=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Le($e){return/^\d+$/.test($e)?"".concat($e,"px"):$e}var Ie=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ce=Ie?"Cmd":"Ctrl",_e=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ke=(He={},Object(b.a)(He,Ce+"-B","bold"),Object(b.a)(He,Ce+"-I","italic"),He),Ne=(Re={},Object(b.a)(Re,Te,"\u6DFB\u52A0\u94FE\u63A5"),Object(b.a)(Re,rt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(b.a)(Re,Je,"\u6DFB\u52A0\u6587\u4EF6"),Object(b.a)(Re,nt,"\u6DFB\u52A0\u8868\u683C"),Re),et=Y.a=function($e){var bt=$e.defaultValue,gt=bt===void 0?"":bt,Ut=$e.onChange,Nt=$e.width,hr=Nt===void 0?"100%":Nt,mr=$e.height,_t=mr===void 0?400:mr,Yr=$e.miniToolbar,Jr=Yr===void 0?!1:Yr,Hr=$e.isFocus,un=Hr===void 0?!1:Hr,Ar=$e.watch,vn=$e.insertTemp,mn=$e.mode,Kt=mn===void 0?"markdown":mn,or=$e.id,Xt=or===void 0?"markdown-editor-id":or,gr=$e.showResizeBar,Xr=gr===void 0?!1:gr,kn=$e.noStorage,Ln=kn===void 0?!1:kn,tn=$e.showNullButton,ur=tn===void 0?!1:tn,Xn=$e.hidetoolBar,hi=Xn===void 0?!1:Xn,$n=$e.fullScreen,Zr=$n===void 0?!1:$n,Bn=$e.onBlur,si=$e.onCMBeforeChange,li=$e.onFullScreen,wt=$e.className,$t=wt===void 0?"":wt,en=$e.disablePaste,Cn=en===void 0?!1:en,Sn=$e.placeholder,On=Sn===void 0?"":Sn,ae=$e.values,z=ae===void 0?"":ae,$=Object(n.useState)(null),ie=Object(_.a)($,2),de=ie[0],se=ie[1],Ke=Object(n.useState)(gt),Rt=Object(_.a)(Ke,2),Vt=Rt[0],Er=Rt[1],Lt=Object(n.useState)(Ar),zr=Object(_.a)(Lt,2),Br=zr[0],En=zr[1],ui=Object(n.useState)(Zr),Ei=Object(_.a)(ui,2),In=Ei[0],Li=Ei[1],qi=Object(n.useState)(""),ni=Object(_.a)(qi,2),Ti=ni[0],xi=ni[1],Fi=Object(n.useState)(0),Ci=Object(_.a)(Fi,2),Gi=Ci[0],Mi=Ci[1],oa=Object(n.useState)(_t),sa=Object(_.a)(oa,2),Ii=sa[0],qn=sa[1],Vi=Object(n.useState)(!1),ta=Object(_.a)(Vi,2),Tt=ta[0],it=ta[1],mt=Object(n.useRef)(Object(ge.a)()),Ct=Object(n.useRef)(!1),It=Object(n.useRef)(),Pt=Object(n.useRef)(),Ht=Object(n.useRef)(),Wt=Object(n.useRef)(),dt=Object(n.useRef)(),At=function(){var Et=Object(v.a)(l.a.mark(function St(){var xt,Jt;return l.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(be.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:mt.current}});case 2:Jt=dr.sent,Jt!=null&&(xt=Jt.attachments)!==null&&xt!==void 0&&xt.length&&(console.log("cm:",de,Pt),Jt.attachments.map(function(fr){fr.content_type.indexOf("image")>-1?de.replaceSelection("![,](/api/attachments/".concat(fr.id,"?type=").concat(fr.content_type,")")):fr.content_type.indexOf("video")>-1?de.replaceSelection('')):fr.content_type.indexOf("pdf")>-1?de.replaceSelection('
                      ').concat(fr.name,"")):de.replaceSelection("[".concat(fr.name,"](").concat(S.a.API_SERVER,"/api/attachments/").concat(fr.id,"?type=").concat(fr.content_type,")"))}));case 4:case"end":return dr.stop()}},St)}));return function(){return Et.apply(this,arguments)}}();Object(n.useEffect)(function(){Er(z),de==null||de.setValue(z)},[z]),Object(n.useEffect)(function(){li==null||li(In)},[In]),Object(n.useEffect)(function(){if(Pt.current){var Et=o.a.fromTextArea(Pt.current,{mode:Kt,lineNumbers:!Jr,lineWrapping:!0,value:gt,autoCloseTags:!0,autoCloseBrackets:!0});un&&Et.focus();function St(xt,Jt){if(Cn){Jt.preventDefault();return}var pr=Jt.clipboardData;if(pr){var dr=pr.types.toString(),fr=pr.items;if(dr==="Files"||pr.types.indexOf("Files")>-1){if(Jt.preventDefault(),Kt=="stex")return;try{var Dr,an=fr[1];((Dr=fr[0])===null||Dr===void 0?void 0:Dr.kind)==="file"&&(an=fr[0]);var qe=an.getAsFile(),sr=qe.name.split(".").pop();pe(qe,function(Nr){if(Nr.id){var rn,xr,br;(qe==null||((rn=qe.type)===null||rn===void 0)?void 0:rn.indexOf("image"))>-1?Et.replaceSelection("![,](/api/attachments/".concat(Nr.id,"?type=").concat(Nr.content_type,")")):(qe==null||((xr=qe.type)===null||xr===void 0)?void 0:xr.indexOf("video"))>-1?Et.replaceSelection('')):(qe==null||((br=qe.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?Et.replaceSelection('').concat(qe.name,"")):_e.includes(sr)?Et.replaceSelection('').concat(qe.name,"")):Et.replaceSelection("[".concat(qe.name,"](").concat(S.a.API_SERVER,"/api/attachments/").concat(Nr.id,"?type=").concat(Nr.content_type,")"))}else(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})}catch(Nr){p.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Et.on("paste",St),Et.on("dragleave",function(xt,Jt){Ht.current.classList.remove("mouse-hover-md")}),Et.on("dragover",function(xt,Jt){Ht.current.classList.add("mouse-hover-md")}),Et.on("drop",function(xt,Jt){Ht.current.classList.add("mouse-hover-md");var pr;if(pr=Jt.dataTransfer.files,pr.length>0){Jt.preventDefault(),Jt.stopPropagation();for(var dr=function(an){var qe=pr[an],sr=qe.name.split(".").pop();pe(qe,function(Nr){if(Nr.id){var rn,xr,br;(qe==null||((rn=qe.type)===null||rn===void 0)?void 0:rn.indexOf("image"))>-1?Et.replaceSelection("![,](/api/attachments/".concat(Nr.id,"?type=").concat(Nr.content_type,")")):(qe==null||((xr=qe.type)===null||xr===void 0)?void 0:xr.indexOf("video"))>-1?Et.replaceSelection('')):(qe==null||((br=qe.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?Et.replaceSelection('').concat(qe.name,"")):_e.includes(sr)?Et.replaceSelection('').concat(qe.name,"")):Et.replaceSelection("[".concat(qe.name,"](").concat(S.a.API_SERVER,"/api/attachments/").concat(Nr.id,"?type=").concat(Nr.content_type,")"))}else(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})},fr=0;fr0||fr.target.offsetWidth>0)&&(Dt(),de.setSize("100%","100%"),de.refresh())}}catch(Dr){pr.e(Dr)}finally{pr.f()}});return xt.observe(Pt.current.parentElement),xt}if(de){var St=Et();return function(){St.unobserve(Pt.current.parentElement)}}},[de,Dt]),Object(n.useEffect)(function(){if(de){for(var Et=[],St=function(){var fr=Jt[xt];pr=Object(_.a)(fr,2);var Dr=pr[0],an=pr[1],qe=Object(b.a)({},Dr,function(){yr(an)});Et.push(qe),de.addKeyMap(qe)},xt=0,Jt=Object.entries(ke);xt0){var Et=new Date().getTime(),St=window.sessionStorage.getItem(Xt);Et>=Gi+Qe&&(!St||St!==Vt)&&(window.sessionStorage.setItem(Xt,Vt),it(!0))}},Qe),Object(n.useEffect)(function(){En(Ar)},[de,Ar]),Object(n.useEffect)(function(){de&&(un&&de.focus())},[de,un]),Object(n.useEffect)(function(){if(Br&&de){var Et=de.getScrollerElement();function St(xt){var Jt=xt.target;if(dt.current){var pr=Jt.scrollTop/Jt.scrollHeight;dt.current.scrollTop=dt.current.scrollHeight*pr}}return Et.addEventListener("scroll",St),function(){Et.removeEventListener("scroll",St)}}},[de,Br]),Object(n.useEffect)(function(){if(de&&si){function Et(St,xt){si(St,xt)}return de.on("beforeChange",Et),function(){de.off("beforeChange",Et)}}},[de,si]),Object(n.useEffect)(function(){if(de&&Bn){function Et(){Bn(de.getValue())}return de.on("blur",Et),function(){de.off("blur",Et)}}},[de,Bn]),Object(n.useEffect)(function(){if(de){function Et(St){var xt=St.getValue();Er(xt),Mi(new Date().getTime()),St.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ut&&Ut(xt)}return de.on("change",Et),function(){de.off("change",Et)}}},[de,Ut]),Object(n.useEffect)(function(){de&&(gt==null?(de.setValue(""),Er("")):gt!==de.getValue()&&(de.setValue(gt),Er(gt),de.setCursor(de.lineCount(),0)))},[de,gt]);var yr=Object(n.useCallback)(function(Et){var St=de.getCursor(),xt=de.getSelection(),Jt=xt.split(` -`);switch(Et){case"bold":return de.replaceSelection("**"+xt+"**"),xt===""&&de.setCursor(St.line,St.ch+2),de.focus();case"italic":return de.replaceSelection("*"+xt+"*"),xt===""&&de.setCursor(St.line,St.ch+1),de.focus();case"code":return de.replaceSelection("`"+xt+"`"),xt===""&&de.setCursor(St.line,St.ch+1),de.focus();case"inline-latex":return de.replaceSelection("`$$"+xt+"$$`"),xt===""&&de.setCursor(St.line,St.ch+3),de.focus();case"latex":return de.replaceSelection("```latex\n"+xt+"\n```"),de.setCursor(St.line+1,xt.length+1),de.focus();case"line-break":return de.replaceSelection(`
                      +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Le($e){return/^\d+$/.test($e)?"".concat($e,"px"):$e}var Ie=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ce=Ie?"Cmd":"Ctrl",Se=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ke=(He={},Object(b.a)(He,Ce+"-B","bold"),Object(b.a)(He,Ce+"-I","italic"),He),Ne=(Re={},Object(b.a)(Re,Te,"\u6DFB\u52A0\u94FE\u63A5"),Object(b.a)(Re,rt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(b.a)(Re,Je,"\u6DFB\u52A0\u6587\u4EF6"),Object(b.a)(Re,nt,"\u6DFB\u52A0\u8868\u683C"),Re),et=Y.a=function($e){var bt=$e.defaultValue,gt=bt===void 0?"":bt,Ut=$e.onChange,Nt=$e.width,hr=Nt===void 0?"100%":Nt,mr=$e.height,St=mr===void 0?400:mr,Yr=$e.miniToolbar,Jr=Yr===void 0?!1:Yr,Hr=$e.isFocus,un=Hr===void 0?!1:Hr,Ar=$e.watch,vn=$e.insertTemp,mn=$e.mode,Kt=mn===void 0?"markdown":mn,or=$e.id,Xt=or===void 0?"markdown-editor-id":or,gr=$e.showResizeBar,Xr=gr===void 0?!1:gr,kn=$e.noStorage,Ln=kn===void 0?!1:kn,tn=$e.showNullButton,ur=tn===void 0?!1:tn,Xn=$e.hidetoolBar,hi=Xn===void 0?!1:Xn,$n=$e.fullScreen,Zr=$n===void 0?!1:$n,Bn=$e.onBlur,si=$e.onCMBeforeChange,li=$e.onFullScreen,wt=$e.className,$t=wt===void 0?"":wt,en=$e.disablePaste,Cn=en===void 0?!1:en,_n=$e.placeholder,On=_n===void 0?"":_n,ae=$e.values,z=ae===void 0?"":ae,$=Object(n.useState)(null),ie=Object(S.a)($,2),de=ie[0],se=ie[1],Ke=Object(n.useState)(gt),Rt=Object(S.a)(Ke,2),Vt=Rt[0],Er=Rt[1],Lt=Object(n.useState)(Ar),zr=Object(S.a)(Lt,2),Br=zr[0],En=zr[1],ui=Object(n.useState)(Zr),Ei=Object(S.a)(ui,2),In=Ei[0],Li=Ei[1],qi=Object(n.useState)(""),ni=Object(S.a)(qi,2),Ti=ni[0],xi=ni[1],Fi=Object(n.useState)(0),Ci=Object(S.a)(Fi,2),Gi=Ci[0],Mi=Ci[1],oa=Object(n.useState)(St),sa=Object(S.a)(oa,2),Ii=sa[0],qn=sa[1],Vi=Object(n.useState)(!1),ta=Object(S.a)(Vi,2),Tt=ta[0],it=ta[1],mt=Object(n.useRef)(Object(ge.a)()),Ct=Object(n.useRef)(!1),It=Object(n.useRef)(),Pt=Object(n.useRef)(),Ht=Object(n.useRef)(),Wt=Object(n.useRef)(),dt=Object(n.useRef)(),At=function(){var Et=Object(v.a)(l.a.mark(function _t(){var xt,Jt;return l.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(be.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:mt.current}});case 2:Jt=dr.sent,Jt!=null&&(xt=Jt.attachments)!==null&&xt!==void 0&&xt.length&&(console.log("cm:",de,Pt),Jt.attachments.map(function(fr){fr.content_type.indexOf("image")>-1?de.replaceSelection("![,](/api/attachments/".concat(fr.id,"?type=").concat(fr.content_type,")")):fr.content_type.indexOf("video")>-1?de.replaceSelection('')):fr.content_type.indexOf("pdf")>-1?de.replaceSelection('').concat(fr.name,"")):de.replaceSelection("[".concat(fr.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(fr.id,"?type=").concat(fr.content_type,")"))}));case 4:case"end":return dr.stop()}},_t)}));return function(){return Et.apply(this,arguments)}}();Object(n.useEffect)(function(){Er(z),de==null||de.setValue(z)},[z]),Object(n.useEffect)(function(){li==null||li(In)},[In]),Object(n.useEffect)(function(){if(Pt.current){var Et=o.a.fromTextArea(Pt.current,{mode:Kt,lineNumbers:!Jr,lineWrapping:!0,value:gt,autoCloseTags:!0,autoCloseBrackets:!0});un&&Et.focus();function _t(xt,Jt){if(Cn){Jt.preventDefault();return}var pr=Jt.clipboardData;if(pr){var dr=pr.types.toString(),fr=pr.items;if(dr==="Files"||pr.types.indexOf("Files")>-1){if(Jt.preventDefault(),Kt=="stex")return;try{var Dr,an=fr[1];((Dr=fr[0])===null||Dr===void 0?void 0:Dr.kind)==="file"&&(an=fr[0]);var qe=an.getAsFile(),sr=qe.name.split(".").pop();pe(qe,function(Nr){if(Nr.id){var rn,xr,br;(qe==null||((rn=qe.type)===null||rn===void 0)?void 0:rn.indexOf("image"))>-1?Et.replaceSelection("![,](/api/attachments/".concat(Nr.id,"?type=").concat(Nr.content_type,")")):(qe==null||((xr=qe.type)===null||xr===void 0)?void 0:xr.indexOf("video"))>-1?Et.replaceSelection('')):(qe==null||((br=qe.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?Et.replaceSelection('').concat(qe.name,"")):Se.includes(sr)?Et.replaceSelection('').concat(qe.name,"")):Et.replaceSelection("[".concat(qe.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(Nr.id,"?type=").concat(Nr.content_type,")"))}else(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})}catch(Nr){p.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Et.on("paste",_t),Et.on("dragleave",function(xt,Jt){Ht.current.classList.remove("mouse-hover-md")}),Et.on("dragover",function(xt,Jt){Ht.current.classList.add("mouse-hover-md")}),Et.on("drop",function(xt,Jt){Ht.current.classList.add("mouse-hover-md");var pr;if(pr=Jt.dataTransfer.files,pr.length>0){Jt.preventDefault(),Jt.stopPropagation();for(var dr=function(an){var qe=pr[an],sr=qe.name.split(".").pop();pe(qe,function(Nr){if(Nr.id){var rn,xr,br;(qe==null||((rn=qe.type)===null||rn===void 0)?void 0:rn.indexOf("image"))>-1?Et.replaceSelection("![,](/api/attachments/".concat(Nr.id,"?type=").concat(Nr.content_type,")")):(qe==null||((xr=qe.type)===null||xr===void 0)?void 0:xr.indexOf("video"))>-1?Et.replaceSelection('')):(qe==null||((br=qe.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?Et.replaceSelection('').concat(qe.name,"")):Se.includes(sr)?Et.replaceSelection('').concat(qe.name,"")):Et.replaceSelection("[".concat(qe.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(Nr.id,"?type=").concat(Nr.content_type,")"))}else(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})},fr=0;fr0||fr.target.offsetWidth>0)&&(Dt(),de.setSize("100%","100%"),de.refresh())}}catch(Dr){pr.e(Dr)}finally{pr.f()}});return xt.observe(Pt.current.parentElement),xt}if(de){var _t=Et();return function(){_t.unobserve(Pt.current.parentElement)}}},[de,Dt]),Object(n.useEffect)(function(){if(de){for(var Et=[],_t=function(){var fr=Jt[xt];pr=Object(S.a)(fr,2);var Dr=pr[0],an=pr[1],qe=Object(b.a)({},Dr,function(){yr(an)});Et.push(qe),de.addKeyMap(qe)},xt=0,Jt=Object.entries(ke);xt0){var Et=new Date().getTime(),_t=window.sessionStorage.getItem(Xt);Et>=Gi+Qe&&(!_t||_t!==Vt)&&(window.sessionStorage.setItem(Xt,Vt),it(!0))}},Qe),Object(n.useEffect)(function(){En(Ar)},[de,Ar]),Object(n.useEffect)(function(){de&&(un&&de.focus())},[de,un]),Object(n.useEffect)(function(){if(Br&&de){var Et=de.getScrollerElement();function _t(xt){var Jt=xt.target;if(dt.current){var pr=Jt.scrollTop/Jt.scrollHeight;dt.current.scrollTop=dt.current.scrollHeight*pr}}return Et.addEventListener("scroll",_t),function(){Et.removeEventListener("scroll",_t)}}},[de,Br]),Object(n.useEffect)(function(){if(de&&si){function Et(_t,xt){si(_t,xt)}return de.on("beforeChange",Et),function(){de.off("beforeChange",Et)}}},[de,si]),Object(n.useEffect)(function(){if(de&&Bn){function Et(){Bn(de.getValue())}return de.on("blur",Et),function(){de.off("blur",Et)}}},[de,Bn]),Object(n.useEffect)(function(){if(de){function Et(_t){var xt=_t.getValue();Er(xt),Mi(new Date().getTime()),_t.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ut&&Ut(xt)}return de.on("change",Et),function(){de.off("change",Et)}}},[de,Ut]),Object(n.useEffect)(function(){de&&(gt==null?(de.setValue(""),Er("")):gt!==de.getValue()&&(de.setValue(gt),Er(gt),de.setCursor(de.lineCount(),0)))},[de,gt]);var yr=Object(n.useCallback)(function(Et){var _t=de.getCursor(),xt=de.getSelection(),Jt=xt.split(` +`);switch(Et){case"bold":return de.replaceSelection("**"+xt+"**"),xt===""&&de.setCursor(_t.line,_t.ch+2),de.focus();case"italic":return de.replaceSelection("*"+xt+"*"),xt===""&&de.setCursor(_t.line,_t.ch+1),de.focus();case"code":return de.replaceSelection("`"+xt+"`"),xt===""&&de.setCursor(_t.line,_t.ch+1),de.focus();case"inline-latex":return de.replaceSelection("`$$"+xt+"$$`"),xt===""&&de.setCursor(_t.line,_t.ch+3),de.focus();case"latex":return de.replaceSelection("```latex\n"+xt+"\n```"),de.setCursor(_t.line+1,xt.length+1),de.focus();case"line-break":return de.replaceSelection(`
                      `),de.focus();case"list-ul":return xt===""?de.replaceSelection("- "+xt):de.replaceSelection(Jt.map(function(pr){return pr===""?"":"- ".concat(pr)}).join(` `)),de.focus();case"list-ol":return xt===""?de.replaceSelection("1. "+xt):de.replaceSelection(Jt.map(function(pr,dr){return pr===""?"":"".concat(dr+1,". ").concat(pr)}).join(` -`)),de.focus();case"add-null-ch":return xt===""&&de.setCursor(St.line,St.ch+1),de.replaceSelection(lt),de.focus();case"inster-template-1":return xt===""&&de.setCursor(St.line,St.ch),de.replaceSelection(Ue),de.focus();case"eraser":return de.setValue(""),de.focus();case"trigger-watch":return En(!Br),de.focus();case"trigger-full-screen":return Li(!In),de.focus();case Te:xi(Te);return;case rt:xi(rt);return;case Je:xi(Je);return;case nt:xi(nt);return;default:throw new Error}},[de,Br,In]),tr=Object(n.useCallback)(function(Et){xi("");switch(Ti){case Te:var St=Et.title,xt=Et.link;return de.replaceSelection("[".concat(St,"](").concat(xt,")")),de.focus();case rt:var Jt=Et.language,pr=Et.content;return de.replaceSelection(["```"+Jt,pr,"```"].join(` +`)),de.focus();case"add-null-ch":return xt===""&&de.setCursor(_t.line,_t.ch+1),de.replaceSelection(lt),de.focus();case"inster-template-1":return xt===""&&de.setCursor(_t.line,_t.ch),de.replaceSelection(Ue),de.focus();case"eraser":return de.setValue(""),de.focus();case"trigger-watch":return En(!Br),de.focus();case"trigger-full-screen":return Li(!In),de.focus();case Te:xi(Te);return;case rt:xi(rt);return;case Je:xi(Je);return;case nt:xi(nt);return;default:throw new Error}},[de,Br,In]),tr=Object(n.useCallback)(function(Et){xi("");switch(Ti){case Te:var _t=Et.title,xt=Et.link;return de.replaceSelection("[".concat(_t,"](").concat(xt,")")),de.focus();case rt:var Jt=Et.language,pr=Et.content;return de.replaceSelection(["```"+Jt,pr,"```"].join(` `)),de.focus();case Je:var dr=Et.src,fr=Et.alt,Dr=Et.name;return dr.indexOf("type=image")>-1?de.replaceSelection("![ ".concat(fr||""," ]( ").concat(dr,' "').concat(fr||"",'" )')):dr.indexOf("type=application/pdf")>-1?de.replaceSelection('').concat(Dr,"")):de.replaceSelection('').concat(Dr,"")),de.focus();case nt:for(var an=Et.row,qe=Et.col,sr=Et.align,Nr=` `,rn=0;rn300&&(Dr=300);var an=_t+Dr+"px";qn(an)}}return Et.addEventListener("mousedown",Jt),document.addEventListener("mousemove",dr),document.addEventListener("mouseup",pr),function(){Et.removeEventListener("mousedown",Jt),document.removeEventListener("mousemove",dr),document.removeEventListener("mouseup",pr)}}},[de,Wt]),Object(n.useEffect)(function(){qn(_t)},[_t]);var nr=Le(hr),cr=Le(Ii),st={width:nr,height:cr},Lr=Object(n.useMemo)(function(){if(Gi){var Et=new Date(Gi),St=Et.getHours(),xt=Et.getMinutes(),Jt=Et.getSeconds();return St=St<10?"0"+St:St,xt=xt<10?"0"+xt:xt,Jt=Jt<10?"0"+Jt:Jt,"".concat(St,":").concat(xt,":").concat(Jt)}return 0},[Gi]);function Fr(){window.sessionStorage.removeItem(Xt),it(!1),Mi(0)}function Cr(){it(!1),Mi(0),de.setValue(window.sessionStorage.getItem(Xt))}function rr(Et,St){var xt=de.getValue();xt=xt.replace(Et,St),Er(xt),de==null||de.setValue(xt)}return c.a.createElement(n.Fragment,null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:Ht},c.a.createElement("div",{className:"markdown-editor-container ".concat($t," ").concat(Br?"on-preview":""," ").concat(Jr?"mini":""," ").concat(In?"full-screen":""),style:st},c.a.createElement(N,{insertTemp:vn,watch:Br,fullScreen:In,showNullButton:ur,onActionCallback:yr,hidetoolBar:hi,uuid:mt.current,setOpenPhones:function(){Ct.current=!0}}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:Pt,placeholder:On})),Br?c.a.createElement("div",{ref:dt,className:"preview-container"},Kt==="stex"&&c.a.createElement(k,{value:Vt}),Kt!=="stex"&&c.a.createElement(f.a,{edit:!0,value:Vt,replaces:rr})):null))),Xr?c.a.createElement("a",{ref:Wt,className:"editor-resize"}):null,c.a.createElement(G.a,null,Ne[Ti]?c.a.createElement(g.a,{centered:!0,title:Ne[Ti],visible:!0,onCancel:Gt,footer:null},qt):null))}},PVpz:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.StreamCipher,p=g.algo,v=[],_=[],b=[],d=p.RabbitLegacy=P.extend({_doReset:function(){var n=this._key.words,c=this.cfg.iv,u=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],o=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var h=0;h<4;h++)l.call(this);for(var h=0;h<8;h++)o[h]^=u[h+4&7];if(c){var m=c.words,s=m[0],r=m[1],a=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,t=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,w=a>>>16|t&4294901760,E=t<<16|a&65535;o[0]^=a,o[1]^=w,o[2]^=t,o[3]^=E,o[4]^=a,o[5]^=w,o[6]^=t,o[7]^=E;for(var h=0;h<4;h++)l.call(this)}},_doProcessBlock:function(n,c){var u=this._X;l.call(this),v[0]=u[0]^u[5]>>>16^u[3]<<16,v[1]=u[2]^u[7]>>>16^u[5]<<16,v[2]=u[4]^u[1]>>>16^u[7]<<16,v[3]=u[6]^u[3]>>>16^u[1]<<16;for(var o=0;o<4;o++)v[o]=(v[o]<<8|v[o]>>>24)&16711935|(v[o]<<24|v[o]>>>8)&4278255360,n[c+o]^=v[o]},blockSize:128/32,ivSize:64/32});function l(){for(var n=this._X,c=this._C,u=0;u<8;u++)_[u]=c[u];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0<_[0]>>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0<_[1]>>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0<_[2]>>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0<_[3]>>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0<_[4]>>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0<_[5]>>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0<_[6]>>>0?1:0)|0,this._b=c[7]>>>0<_[7]>>>0?1:0;for(var u=0;u<8;u++){var o=n[u]+c[u],h=o&65535,m=o>>>16,s=((h*h>>>17)+h*m>>>15)+m*m,r=((o&4294901760)*o|0)+((o&65535)*o|0);b[u]=s^r}n[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,n[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,n[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,n[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,n[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,n[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,n[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,n[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}g.RabbitLegacy=P._createHelper(d)}(),L.RabbitLegacy})},QDVR:function(j,Y,D){"use strict";D.d(Y,"e",function(){return g}),D.d(Y,"d",function(){return T}),D.d(Y,"c",function(){return _}),D.d(Y,"b",function(){return b}),D.d(Y,"a",function(){return l});var L=function(){var n=function(c,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,h){o.__proto__=h}||function(o,h){for(var m in h)h.hasOwnProperty(m)&&(o[m]=h[m])},n(c,u)};return function(c,u){n(c,u);function o(){this.constructor=c}c.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)}}();function g(n){var c=[];return n.forEach(function(u){return c.push(u)}),c}function T(n){var c=[];return n.forEach(function(u,o){return c.push(o)}),c}var P=function(){function n(){this._value="",this._pos=0}return n.prototype.reset=function(c){return this._value=c,this._pos=0,this},n.prototype.next=function(){return this._pos+=1,this},n.prototype.hasNext=function(){return this._pos0)h.left||(h.left=new v,h.left.segment=o.value()),h=h.left;else if(m<0)h.right||(h.right=new v,h.right.segment=o.value()),h=h.right;else if(o.hasNext())o.next(),h.mid||(h.mid=new v,h.mid.segment=o.value()),h=h.mid;else break}var s=h.value;return h.value=u,h.key=c,s},n.prototype.get=function(c){for(var u=this._iter.reset(c),o=this._root;o;){var h=u.cmp(o.segment);if(h>0)o=o.left;else if(h<0)o=o.right;else if(u.hasNext())u.next(),o=o.mid;else break}return o?o.value:void 0},n.prototype.findSubstr=function(c){for(var u=this._iter.reset(c),o=this._root,h=void 0;o;){var m=u.cmp(o.segment);if(m>0)o=o.left;else if(m<0)o=o.right;else if(u.hasNext())u.next(),h=o.value||h,o=o.mid;else break}return o&&o.value||h},n.prototype.forEach=function(c){this._forEach(this._root,c)},n.prototype._forEach=function(c,u){c&&(this._forEach(c.left,u),c.value&&u(c.value,c.key),this._forEach(c.mid,u),this._forEach(c.right,u))},n}(),b=function(){function n(){this.map=new Map,this.ignoreCase=!1}return n.prototype.set=function(c,u){this.map.set(this.toKey(c),u)},n.prototype.get=function(c){return this.map.get(this.toKey(c))},n.prototype.toKey=function(c){var u=c.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},n}(),d=function(){function n(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return n.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.get=function(c,u){u===void 0&&(u=0);var o=this._map.get(c);return o?(u!==0&&this.touch(o,u),o.value):void 0},n.prototype.set=function(c,u,o){o===void 0&&(o=0);var h=this._map.get(c);if(h)h.value=u,o!==0&&this.touch(h,o);else{h={key:c,value:u,next:void 0,previous:void 0};switch(o){case 0:this.addItemLast(h);break;case 1:this.addItemFirst(h);break;case 2:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(c,h),this._size++}},n.prototype.delete=function(c){return!!this.remove(c)},n.prototype.remove=function(c){var u=this._map.get(c);return u?(this._map.delete(c),this.removeItem(u),this._size--,u.value):void 0},n.prototype.forEach=function(c,u){for(var o=this._head;o;)u?c.bind(u)(o.value,o.key,this):c(o.value,o.key,this),o=o.next},n.prototype.trimOld=function(c){if(c>=this.size)return;if(c===0){this.clear();return}for(var u=this._head,o=this.size;u&&o>c;)this._map.delete(u.key),u=u.next,o--;this._head=u,this._size=o,u&&(u.previous=void 0)},n.prototype.addItemFirst=function(c){if(!this._head&&!this._tail)this._tail=c;else if(this._head)c.next=this._head,this._head.previous=c;else throw new Error("Invalid list");this._head=c},n.prototype.addItemLast=function(c){if(!this._head&&!this._tail)this._head=c;else if(this._tail)c.previous=this._tail,this._tail.next=c;else throw new Error("Invalid list");this._tail=c},n.prototype.removeItem=function(c){if(c===this._head&&c===this._tail)this._head=void 0,this._tail=void 0;else if(c===this._head){if(!c.next)throw new Error("Invalid list");c.next.previous=void 0,this._head=c.next}else if(c===this._tail){if(!c.previous)throw new Error("Invalid list");c.previous.next=void 0,this._tail=c.previous}else{var u=c.next,o=c.previous;if(!u||!o)throw new Error("Invalid list");u.previous=o,o.next=u}c.next=void 0,c.previous=void 0},n.prototype.touch=function(c,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(c===this._head)return;var o=c.next,h=c.previous;c===this._tail?(h.next=void 0,this._tail=h):(o.previous=h,h.next=o),c.previous=void 0,c.next=this._head,this._head.previous=c,this._head=c}else if(u===2){if(c===this._tail)return;var o=c.next,h=c.previous;c===this._head?(o.previous=void 0,this._head=o):(o.previous=h,h.next=o),c.next=void 0,c.previous=this._tail,this._tail.next=c,this._tail=c}},n.prototype.toJSON=function(){var c=[];return this.forEach(function(u,o){c.push([o,u])}),c},n}(),l=function(n){L(c,n);function c(u,o){o===void 0&&(o=1);var h=n.call(this)||this;return h._limit=u,h._ratio=Math.min(Math.max(0,o),1),h}return c.prototype.get=function(u){return n.prototype.get.call(this,u,2)},c.prototype.peek=function(u){return n.prototype.get.call(this,u,0)},c.prototype.set=function(u,o){n.prototype.set.call(this,u,o,2),this.checkTrim()},c.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},c}(d)},RxwV:function(j,Y,D){"use strict";var L=D("q1tI"),g=D("uciX"),T=D("2W6z"),P=D.n(T),p=D("4IlW"),v=D("uK0f"),_=D.n(v);function b(Oe,xe){if(Oe===xe)return!0;if(!Oe||!xe)return!1;var ue=Oe.length;if(xe.length!==ue)return!1;for(var le=0;le0;(rt||pe.isLeaf===!1)&&(Te+=" ".concat(ce,"-menu-item-expand"),pe.loading||(Je=L.createElement("span",{className:"".concat(ce,"-menu-item-expand-icon")},Q))),q==="hover"&&(rt||pe.isLeaf===!1)&&(ge={onMouseEnter:this.delayOnSelect.bind(this,Z),onMouseLeave:this.delayOnSelect.bind(this),onClick:Z}),this.isActiveOption(pe,ee)&&(Te+=" ".concat(ce,"-menu-item-active"),ge.ref=this.saveMenuItem(ee)),pe.disabled&&(Te+=" ".concat(ce,"-menu-item-disabled"));var nt=null;pe.loading&&(Te+=" ".concat(ce,"-menu-item-loading"),nt=V||null);var at="";return"title"in pe?at=pe.title:typeof pe[this.getFieldName("label")]=="string"&&(at=pe[this.getFieldName("label")]),L.createElement("li",Object.assign({key:pe[this.getFieldName("value")],className:Te,title:at},ge,{role:"menuitem",onMouseDown:function(ht){return ht.preventDefault()}}),pe[this.getFieldName("label")],Je,nt)}},{key:"getActiveOptions",value:function(pe){var ee=this,te=this.props.options,ce=pe||this.props.activeValue;return _()(te,function(q,Q){return q[ee.getFieldName("value")]===ce[Q]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var pe=this,ee=this.props.options,te=this.getActiveOptions().map(function(ce){return ce[pe.getFieldName("children")]}).filter(function(ce){return!!ce});return te.unshift(ee),te}},{key:"delayOnSelect",value:function(pe){for(var ee=this,te=arguments.length,ce=new Array(te>1?te-1:0),q=1;q=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Oe,le))continue;ue[le]=Oe[le]}}return ue}function C(Oe,xe){if(Oe==null)return{};var ue={},le=Object.keys(Oe),re,pe;for(pe=0;pe=0)continue;ue[re]=Oe[re]}return ue}function x(Oe){return I(Oe)||M(Oe)||S(Oe)||y()}function y(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(Oe,xe){if(!Oe)return;if(typeof Oe=="string")return N(Oe,xe);var ue=Object.prototype.toString.call(Oe).slice(8,-1);if(ue==="Object"&&Oe.constructor&&(ue=Oe.constructor.name),ue==="Map"||ue==="Set")return Array.from(Oe);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(Oe,xe)}function M(Oe){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Oe))return Array.from(Oe)}function I(Oe){if(Array.isArray(Oe))return N(Oe)}function N(Oe,xe){(xe==null||xe>Oe.length)&&(xe=Oe.length);for(var ue=0,le=new Array(xe);ue=V.length?0:be):(be-=1,be=be<0?V.length-1:be):be=0,q[Q]=V[be][pe.getFieldName("value")]}else if(te.keyCode===p.a.LEFT||te.keyCode===p.a.BACKSPACE)te.preventDefault(),q.splice(q.length-1,1);else if(te.keyCode===p.a.RIGHT)te.preventDefault(),V[Z]&&V[Z][pe.getFieldName("children")]&&q.push(V[Z][pe.getFieldName("children")][0][pe.getFieldName("value")]);else if(te.keyCode===p.a.ESC||te.keyCode===p.a.TAB){pe.setPopupVisible(!1);return}(!q||q.length===0)&&pe.setPopupVisible(!1);var ge=pe.getActiveOptions(q),Te=ge[ge.length-1];pe.handleMenuSelect(Te,ge.length-1,te),pe.props.onKeyDown&&pe.props.onKeyDown(te)},pe.saveTrigger=function(te){pe.trigger=te};var ee=[];return"value"in re?ee=re.value||[]:"defaultValue"in re&&(ee=re.defaultValue||[]),P()(!("filedNames"in re),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),pe.state={popupVisible:re.popupVisible,activeValue:ee,value:ee,prevProps:re},pe.defaultFieldNames={label:"label",value:"value",children:"children"},pe}return B(le,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(pe){var ee=this.defaultFieldNames,te=this.props,ce=te.fieldNames,q=te.filedNames;return"filedNames"in this.props?q[pe]||ee[pe]:ce[pe]||ee[pe]}},{key:"getFieldNames",value:function(){var pe=this.props,ee=pe.fieldNames,te=pe.filedNames;return"filedNames"in this.props?te:ee}},{key:"getCurrentLevelOptions",value:function(){var pe=this,ee=this.props.options,te=ee===void 0?[]:ee,ce=this.state.activeValue,q=ce===void 0?[]:ce,Q=_()(te,function(V,Z){return V[pe.getFieldName("value")]===q[Z]},{childrenKeyName:this.getFieldName("children")});return Q[Q.length-2]?Q[Q.length-2][this.getFieldName("children")]:x(te).filter(function(V){return!V.disabled})}},{key:"getActiveOptions",value:function(pe){var ee=this;return _()(this.props.options||[],function(te,ce){return te[ee.getFieldName("value")]===pe[ce]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var pe=this.props,ee=pe.prefixCls,te=pe.transitionName,ce=pe.popupClassName,q=pe.options,Q=q===void 0?[]:q,V=pe.disabled,Z=pe.builtinPlacements,be=pe.popupPlacement,ge=pe.children,Te=pe.dropdownRender,Je=O(pe,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),rt=L.createElement("div",null),nt="";Q&&Q.length>0?rt=L.createElement(w,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):nt=" ".concat(ee,"-menus-empty");var at=rt;return Te&&(at=Te(rt)),L.createElement(g.a,Object.assign({ref:this.saveTrigger},Je,{popupPlacement:be,builtinPlacements:Z,popupTransitionName:te,action:V?[]:["click"],popupVisible:V?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ee,"-menus"),popupClassName:ce+nt,popup:at}),L.cloneElement(ge,{onKeyDown:this.handleKeyDown,tabIndex:V?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(pe,ee){var te=ee.prevProps,ce=te===void 0?{}:te,q={prevProps:pe};return"value"in pe&&!b(ce.value,pe.value)&&(q.value=pe.value||[],"loadData"in pe||(q.activeValue=pe.value||[])),"popupVisible"in pe&&(q.popupVisible=pe.popupVisible),q}}]),le}(L.Component);return Oe.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:f,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Oe}(),De=Ae,ye=Y.a=De},S6kV:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.mode.OFB=function(){var g=L.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(P,p){var v=this._cipher,_=v.blockSize,b=this._iv,d=this._keystream;b&&(d=this._keystream=b.slice(0),this._iv=void 0),v.encryptBlock(d,0);for(var l=0;l<_;l++)P[p+l]^=d[l]}});return g.Decryptor=T,g}(),L.mode.OFB})},"SA+Z":function(j,Y,D){var L=D("wTVA"),g=D("EbDI"),T=D("ZhPi"),P=D("wkBT");function p(v){return L(v)||g(v)||T(v)||P()}j.exports=p,j.exports.__esModule=!0,j.exports.default=j.exports},SJMd:function(j,Y){/** +`),de.focus();default:throw new Error}},[de,Ti]),qt=Object(n.useMemo)(function(){switch(Ti){case Te:return c.a.createElement(fe,{callback:tr,onCancel:Gt});case rt:return c.a.createElement(me.b,{callback:tr,onCancel:Gt});case Je:return c.a.createElement(le,{callback:tr,onCancel:Gt});case nt:return c.a.createElement(Z,{callback:tr,onCancel:Gt});default:return null}},[Ti]);function Gt(){xi("")}Object(n.useEffect)(function(){if(Wt.current){var Et=Wt.current,_t=!1,xt=0;function Jt(fr){_t=!0,xt=fr.pageY}function pr(){_t=!1}function dr(fr){if(_t){var Dr=fr.pageY-xt;Dr<0&&(Dr=0),Dr>300&&(Dr=300);var an=St+Dr+"px";qn(an)}}return Et.addEventListener("mousedown",Jt),document.addEventListener("mousemove",dr),document.addEventListener("mouseup",pr),function(){Et.removeEventListener("mousedown",Jt),document.removeEventListener("mousemove",dr),document.removeEventListener("mouseup",pr)}}},[de,Wt]),Object(n.useEffect)(function(){qn(St)},[St]);var nr=Le(hr),cr=Le(Ii),st={width:nr,height:cr},Lr=Object(n.useMemo)(function(){if(Gi){var Et=new Date(Gi),_t=Et.getHours(),xt=Et.getMinutes(),Jt=Et.getSeconds();return _t=_t<10?"0"+_t:_t,xt=xt<10?"0"+xt:xt,Jt=Jt<10?"0"+Jt:Jt,"".concat(_t,":").concat(xt,":").concat(Jt)}return 0},[Gi]);function Fr(){window.sessionStorage.removeItem(Xt),it(!1),Mi(0)}function Cr(){it(!1),Mi(0),de.setValue(window.sessionStorage.getItem(Xt))}function rr(Et,_t){var xt=de.getValue();xt=xt.replace(Et,_t),Er(xt),de==null||de.setValue(xt)}return c.a.createElement(n.Fragment,null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:Ht},c.a.createElement("div",{className:"markdown-editor-container ".concat($t," ").concat(Br?"on-preview":""," ").concat(Jr?"mini":""," ").concat(In?"full-screen":""),style:st},c.a.createElement(N,{insertTemp:vn,watch:Br,fullScreen:In,showNullButton:ur,onActionCallback:yr,hidetoolBar:hi,uuid:mt.current,setOpenPhones:function(){Ct.current=!0}}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:Pt,placeholder:On})),Br?c.a.createElement("div",{ref:dt,className:"preview-container"},Kt==="stex"&&c.a.createElement(k,{value:Vt}),Kt!=="stex"&&c.a.createElement(f.a,{edit:!0,value:Vt,replaces:rr})):null))),Xr?c.a.createElement("a",{ref:Wt,className:"editor-resize"}):null,c.a.createElement(G.a,null,Ne[Ti]?c.a.createElement(g.a,{centered:!0,title:Ne[Ti],visible:!0,onCancel:Gt,footer:null},qt):null))}},PVpz:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.StreamCipher,p=g.algo,v=[],S=[],b=[],d=p.RabbitLegacy=P.extend({_doReset:function(){var n=this._key.words,c=this.cfg.iv,u=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],o=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var h=0;h<4;h++)l.call(this);for(var h=0;h<8;h++)o[h]^=u[h+4&7];if(c){var m=c.words,s=m[0],r=m[1],a=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,t=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,w=a>>>16|t&4294901760,E=t<<16|a&65535;o[0]^=a,o[1]^=w,o[2]^=t,o[3]^=E,o[4]^=a,o[5]^=w,o[6]^=t,o[7]^=E;for(var h=0;h<4;h++)l.call(this)}},_doProcessBlock:function(n,c){var u=this._X;l.call(this),v[0]=u[0]^u[5]>>>16^u[3]<<16,v[1]=u[2]^u[7]>>>16^u[5]<<16,v[2]=u[4]^u[1]>>>16^u[7]<<16,v[3]=u[6]^u[3]>>>16^u[1]<<16;for(var o=0;o<4;o++)v[o]=(v[o]<<8|v[o]>>>24)&16711935|(v[o]<<24|v[o]>>>8)&4278255360,n[c+o]^=v[o]},blockSize:128/32,ivSize:64/32});function l(){for(var n=this._X,c=this._C,u=0;u<8;u++)S[u]=c[u];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0>>0?1:0)|0,this._b=c[7]>>>0>>0?1:0;for(var u=0;u<8;u++){var o=n[u]+c[u],h=o&65535,m=o>>>16,s=((h*h>>>17)+h*m>>>15)+m*m,r=((o&4294901760)*o|0)+((o&65535)*o|0);b[u]=s^r}n[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,n[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,n[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,n[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,n[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,n[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,n[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,n[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}g.RabbitLegacy=P._createHelper(d)}(),L.RabbitLegacy})},QDVR:function(j,Y,D){"use strict";D.d(Y,"e",function(){return g}),D.d(Y,"d",function(){return T}),D.d(Y,"c",function(){return S}),D.d(Y,"b",function(){return b}),D.d(Y,"a",function(){return l});var L=function(){var n=function(c,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,h){o.__proto__=h}||function(o,h){for(var m in h)h.hasOwnProperty(m)&&(o[m]=h[m])},n(c,u)};return function(c,u){n(c,u);function o(){this.constructor=c}c.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)}}();function g(n){var c=[];return n.forEach(function(u){return c.push(u)}),c}function T(n){var c=[];return n.forEach(function(u,o){return c.push(o)}),c}var P=function(){function n(){this._value="",this._pos=0}return n.prototype.reset=function(c){return this._value=c,this._pos=0,this},n.prototype.next=function(){return this._pos+=1,this},n.prototype.hasNext=function(){return this._pos0)h.left||(h.left=new v,h.left.segment=o.value()),h=h.left;else if(m<0)h.right||(h.right=new v,h.right.segment=o.value()),h=h.right;else if(o.hasNext())o.next(),h.mid||(h.mid=new v,h.mid.segment=o.value()),h=h.mid;else break}var s=h.value;return h.value=u,h.key=c,s},n.prototype.get=function(c){for(var u=this._iter.reset(c),o=this._root;o;){var h=u.cmp(o.segment);if(h>0)o=o.left;else if(h<0)o=o.right;else if(u.hasNext())u.next(),o=o.mid;else break}return o?o.value:void 0},n.prototype.findSubstr=function(c){for(var u=this._iter.reset(c),o=this._root,h=void 0;o;){var m=u.cmp(o.segment);if(m>0)o=o.left;else if(m<0)o=o.right;else if(u.hasNext())u.next(),h=o.value||h,o=o.mid;else break}return o&&o.value||h},n.prototype.forEach=function(c){this._forEach(this._root,c)},n.prototype._forEach=function(c,u){c&&(this._forEach(c.left,u),c.value&&u(c.value,c.key),this._forEach(c.mid,u),this._forEach(c.right,u))},n}(),b=function(){function n(){this.map=new Map,this.ignoreCase=!1}return n.prototype.set=function(c,u){this.map.set(this.toKey(c),u)},n.prototype.get=function(c){return this.map.get(this.toKey(c))},n.prototype.toKey=function(c){var u=c.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},n}(),d=function(){function n(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return n.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.get=function(c,u){u===void 0&&(u=0);var o=this._map.get(c);return o?(u!==0&&this.touch(o,u),o.value):void 0},n.prototype.set=function(c,u,o){o===void 0&&(o=0);var h=this._map.get(c);if(h)h.value=u,o!==0&&this.touch(h,o);else{h={key:c,value:u,next:void 0,previous:void 0};switch(o){case 0:this.addItemLast(h);break;case 1:this.addItemFirst(h);break;case 2:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(c,h),this._size++}},n.prototype.delete=function(c){return!!this.remove(c)},n.prototype.remove=function(c){var u=this._map.get(c);return u?(this._map.delete(c),this.removeItem(u),this._size--,u.value):void 0},n.prototype.forEach=function(c,u){for(var o=this._head;o;)u?c.bind(u)(o.value,o.key,this):c(o.value,o.key,this),o=o.next},n.prototype.trimOld=function(c){if(c>=this.size)return;if(c===0){this.clear();return}for(var u=this._head,o=this.size;u&&o>c;)this._map.delete(u.key),u=u.next,o--;this._head=u,this._size=o,u&&(u.previous=void 0)},n.prototype.addItemFirst=function(c){if(!this._head&&!this._tail)this._tail=c;else if(this._head)c.next=this._head,this._head.previous=c;else throw new Error("Invalid list");this._head=c},n.prototype.addItemLast=function(c){if(!this._head&&!this._tail)this._head=c;else if(this._tail)c.previous=this._tail,this._tail.next=c;else throw new Error("Invalid list");this._tail=c},n.prototype.removeItem=function(c){if(c===this._head&&c===this._tail)this._head=void 0,this._tail=void 0;else if(c===this._head){if(!c.next)throw new Error("Invalid list");c.next.previous=void 0,this._head=c.next}else if(c===this._tail){if(!c.previous)throw new Error("Invalid list");c.previous.next=void 0,this._tail=c.previous}else{var u=c.next,o=c.previous;if(!u||!o)throw new Error("Invalid list");u.previous=o,o.next=u}c.next=void 0,c.previous=void 0},n.prototype.touch=function(c,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(c===this._head)return;var o=c.next,h=c.previous;c===this._tail?(h.next=void 0,this._tail=h):(o.previous=h,h.next=o),c.previous=void 0,c.next=this._head,this._head.previous=c,this._head=c}else if(u===2){if(c===this._tail)return;var o=c.next,h=c.previous;c===this._head?(o.previous=void 0,this._head=o):(o.previous=h,h.next=o),c.next=void 0,c.previous=this._tail,this._tail.next=c,this._tail=c}},n.prototype.toJSON=function(){var c=[];return this.forEach(function(u,o){c.push([o,u])}),c},n}(),l=function(n){L(c,n);function c(u,o){o===void 0&&(o=1);var h=n.call(this)||this;return h._limit=u,h._ratio=Math.min(Math.max(0,o),1),h}return c.prototype.get=function(u){return n.prototype.get.call(this,u,2)},c.prototype.peek=function(u){return n.prototype.get.call(this,u,0)},c.prototype.set=function(u,o){n.prototype.set.call(this,u,o,2),this.checkTrim()},c.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},c}(d)},RxwV:function(j,Y,D){"use strict";var L=D("q1tI"),g=D("uciX"),T=D("2W6z"),P=D.n(T),p=D("4IlW"),v=D("uK0f"),S=D.n(v);function b(Oe,xe){if(Oe===xe)return!0;if(!Oe||!xe)return!1;var ue=Oe.length;if(xe.length!==ue)return!1;for(var le=0;le0;(rt||pe.isLeaf===!1)&&(Te+=" ".concat(ce,"-menu-item-expand"),pe.loading||(Je=L.createElement("span",{className:"".concat(ce,"-menu-item-expand-icon")},Q))),q==="hover"&&(rt||pe.isLeaf===!1)&&(ge={onMouseEnter:this.delayOnSelect.bind(this,Z),onMouseLeave:this.delayOnSelect.bind(this),onClick:Z}),this.isActiveOption(pe,ee)&&(Te+=" ".concat(ce,"-menu-item-active"),ge.ref=this.saveMenuItem(ee)),pe.disabled&&(Te+=" ".concat(ce,"-menu-item-disabled"));var nt=null;pe.loading&&(Te+=" ".concat(ce,"-menu-item-loading"),nt=V||null);var at="";return"title"in pe?at=pe.title:typeof pe[this.getFieldName("label")]=="string"&&(at=pe[this.getFieldName("label")]),L.createElement("li",Object.assign({key:pe[this.getFieldName("value")],className:Te,title:at},ge,{role:"menuitem",onMouseDown:function(ht){return ht.preventDefault()}}),pe[this.getFieldName("label")],Je,nt)}},{key:"getActiveOptions",value:function(pe){var ee=this,te=this.props.options,ce=pe||this.props.activeValue;return S()(te,function(q,Q){return q[ee.getFieldName("value")]===ce[Q]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var pe=this,ee=this.props.options,te=this.getActiveOptions().map(function(ce){return ce[pe.getFieldName("children")]}).filter(function(ce){return!!ce});return te.unshift(ee),te}},{key:"delayOnSelect",value:function(pe){for(var ee=this,te=arguments.length,ce=new Array(te>1?te-1:0),q=1;q=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Oe,le))continue;ue[le]=Oe[le]}}return ue}function C(Oe,xe){if(Oe==null)return{};var ue={},le=Object.keys(Oe),re,pe;for(pe=0;pe=0)continue;ue[re]=Oe[re]}return ue}function x(Oe){return I(Oe)||M(Oe)||_(Oe)||y()}function y(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(Oe,xe){if(!Oe)return;if(typeof Oe=="string")return N(Oe,xe);var ue=Object.prototype.toString.call(Oe).slice(8,-1);if(ue==="Object"&&Oe.constructor&&(ue=Oe.constructor.name),ue==="Map"||ue==="Set")return Array.from(Oe);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(Oe,xe)}function M(Oe){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Oe))return Array.from(Oe)}function I(Oe){if(Array.isArray(Oe))return N(Oe)}function N(Oe,xe){(xe==null||xe>Oe.length)&&(xe=Oe.length);for(var ue=0,le=new Array(xe);ue=V.length?0:be):(be-=1,be=be<0?V.length-1:be):be=0,q[Q]=V[be][pe.getFieldName("value")]}else if(te.keyCode===p.a.LEFT||te.keyCode===p.a.BACKSPACE)te.preventDefault(),q.splice(q.length-1,1);else if(te.keyCode===p.a.RIGHT)te.preventDefault(),V[Z]&&V[Z][pe.getFieldName("children")]&&q.push(V[Z][pe.getFieldName("children")][0][pe.getFieldName("value")]);else if(te.keyCode===p.a.ESC||te.keyCode===p.a.TAB){pe.setPopupVisible(!1);return}(!q||q.length===0)&&pe.setPopupVisible(!1);var ge=pe.getActiveOptions(q),Te=ge[ge.length-1];pe.handleMenuSelect(Te,ge.length-1,te),pe.props.onKeyDown&&pe.props.onKeyDown(te)},pe.saveTrigger=function(te){pe.trigger=te};var ee=[];return"value"in re?ee=re.value||[]:"defaultValue"in re&&(ee=re.defaultValue||[]),P()(!("filedNames"in re),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),pe.state={popupVisible:re.popupVisible,activeValue:ee,value:ee,prevProps:re},pe.defaultFieldNames={label:"label",value:"value",children:"children"},pe}return B(le,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(pe){var ee=this.defaultFieldNames,te=this.props,ce=te.fieldNames,q=te.filedNames;return"filedNames"in this.props?q[pe]||ee[pe]:ce[pe]||ee[pe]}},{key:"getFieldNames",value:function(){var pe=this.props,ee=pe.fieldNames,te=pe.filedNames;return"filedNames"in this.props?te:ee}},{key:"getCurrentLevelOptions",value:function(){var pe=this,ee=this.props.options,te=ee===void 0?[]:ee,ce=this.state.activeValue,q=ce===void 0?[]:ce,Q=S()(te,function(V,Z){return V[pe.getFieldName("value")]===q[Z]},{childrenKeyName:this.getFieldName("children")});return Q[Q.length-2]?Q[Q.length-2][this.getFieldName("children")]:x(te).filter(function(V){return!V.disabled})}},{key:"getActiveOptions",value:function(pe){var ee=this;return S()(this.props.options||[],function(te,ce){return te[ee.getFieldName("value")]===pe[ce]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var pe=this.props,ee=pe.prefixCls,te=pe.transitionName,ce=pe.popupClassName,q=pe.options,Q=q===void 0?[]:q,V=pe.disabled,Z=pe.builtinPlacements,be=pe.popupPlacement,ge=pe.children,Te=pe.dropdownRender,Je=O(pe,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),rt=L.createElement("div",null),nt="";Q&&Q.length>0?rt=L.createElement(w,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):nt=" ".concat(ee,"-menus-empty");var at=rt;return Te&&(at=Te(rt)),L.createElement(g.a,Object.assign({ref:this.saveTrigger},Je,{popupPlacement:be,builtinPlacements:Z,popupTransitionName:te,action:V?[]:["click"],popupVisible:V?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ee,"-menus"),popupClassName:ce+nt,popup:at}),L.cloneElement(ge,{onKeyDown:this.handleKeyDown,tabIndex:V?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(pe,ee){var te=ee.prevProps,ce=te===void 0?{}:te,q={prevProps:pe};return"value"in pe&&!b(ce.value,pe.value)&&(q.value=pe.value||[],"loadData"in pe||(q.activeValue=pe.value||[])),"popupVisible"in pe&&(q.popupVisible=pe.popupVisible),q}}]),le}(L.Component);return Oe.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:f,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Oe}(),De=Ae,ye=Y.a=De},S6kV:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.mode.OFB=function(){var g=L.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(P,p){var v=this._cipher,S=v.blockSize,b=this._iv,d=this._keystream;b&&(d=this._keystream=b.slice(0),this._iv=void 0),v.encryptBlock(d,0);for(var l=0;l|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(q){for(var Q=0,V=!1,Z=!1,be=0,ge=q.length;be122||(Ce<65||Ie>90||tt.push([Math.max(65,Ie)|32,Math.min(Ce,90)|32]),Ce<97||Ie>122||tt.push([Math.max(97,Ie)&~32,Math.min(Ce,122)&~32]))}}tt.sort(function(et,$e){return et[0]-$e[0]||$e[1]-et[1]});for(var _e=[],ke=[],lt=0;ltNe[0]&&(Ne[1]+1>Ne[0]&&Qe.push("-"),Qe.push(nt(Ne[1])))}return Qe.push("]"),Qe.join("")}function ct(He){for(var Re=He.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),tt=Re.length,ft=[],Qe=0,lt=0;Qe=2&&Ie==="["?Re[Qe]=at(Ue):Ie!=="\\"&&(Re[Qe]=Ue.replace(/[a-zA-Z]/g,function(ke){var Ne=ke.charCodeAt(0);return"["+String.fromCharCode(Ne&~32,Ne|32)+"]"}))}return Re.join("")}for(var ht=[],be=0,ge=q.length;be|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(q){for(var Q=0,V=!1,Z=!1,be=0,ge=q.length;be122||(Ce<65||Ie>90||tt.push([Math.max(65,Ie)|32,Math.min(Ce,90)|32]),Ce<97||Ie>122||tt.push([Math.max(97,Ie)&~32,Math.min(Ce,122)&~32]))}}tt.sort(function(et,$e){return et[0]-$e[0]||$e[1]-et[1]});for(var Se=[],ke=[],lt=0;ltNe[0]&&(Ne[1]+1>Ne[0]&&Qe.push("-"),Qe.push(nt(Ne[1])))}return Qe.push("]"),Qe.join("")}function ct(He){for(var Re=He.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),tt=Re.length,ft=[],Qe=0,lt=0;Qe=2&&Ie==="["?Re[Qe]=at(Ue):Ie!=="\\"&&(Re[Qe]=Ue.replace(/[a-zA-Z]/g,function(ke){var Ne=ke.charCodeAt(0);return"["+String.fromCharCode(Ne&~32,Ne|32)+"]"}))}return Re.join("")}for(var ht=[],be=0,ge=q.length;be=0;)V[ht.charAt(He)]=ct;var Re=ct[1],tt=""+Re;rt.hasOwnProperty(tt)||(Je.push(Re),rt[tt]=null)}Je.push(/[\0-\uffff]/),Z=U(Je)})();var be=Q.length,ge=function(Te){for(var Je=Te.sourceCode,rt=Te.basePos,nt=Te.sourceNode,at=[rt,S],ct=0,ht=Je.match(Z)||[],He={},Re=0,tt=ht.length;Re=5&&Qe.substring(0,5)==="lang-",Ue&&!(lt&&typeof lt[1]=="string")&&(Ue=!1,Qe=N),Ue||(He[ft]=Qe)}var Ce=ct;if(ct+=ft.length,!Ue)at.push(rt+Ce,Qe);else{var _e=lt[1],ke=ft.indexOf(_e),Ne=ke+_e.length;lt[2]&&(Ne=ft.length-lt[2].length,ke=Ne-_e.length);var et=Qe.substring(5);X(nt,rt+Ce,ft.substring(0,ke),ge,at),X(nt,rt+Ce+ke,_e,le(et,_e),at),X(nt,rt+Ce+Ne,ft.substring(Ne),ge,at)}}Te.decorations=at};return ge}function Ae(q){var Q=[],V=[];q.tripleQuotedStrings?Q.push([f,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):q.multiLineStrings?Q.push([f,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Q.push([f,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),q.verbatimStrings&&V.push([f,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Z=q.hashComments;Z&&(q.cStyleComments?(Z>1?Q.push([O,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Q.push([O,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),V.push([f,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Q.push([O,/^#[^\r\n]*/,null,"#"])),q.cStyleComments&&(V.push([O,/^\/\/[^\r\n]*/,null]),V.push([O,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var be=q.regexLiterals;if(be){var ge=be>1?"":` -\r`,Te=ge?".":"[\\S\\s]",Je="/(?=[^/*"+ge+"])(?:[^/\\x5B\\x5C"+ge+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+ge+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";V.push(["lang-regex",RegExp("^"+K+"("+Je+")")])}var rt=q.types;rt&&V.push([C,rt]);var nt=(""+q.keywords).replace(/^ | $/g,"");nt.length&&V.push([k,new RegExp("^(?:"+nt.replace(/[\s,]+/g,"|")+")\\b"),null]),Q.push([S,/^\s+/,null,` \r - \xA0`]);var at="^.[^\\s\\w.$@'\"`/\\\\]*";return q.regexLiterals&&(at+="(?!s*/)"),V.push([x,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[S,/^[a-z_$][a-z_$@0-9]*/i,null],[x,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[S,/^\\[\s\S]?/,null],[y,new RegExp(at),null]),me(Q,V)}var De=Ae({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ye(q,Q,V){for(var Z=/(?:^|\s)nocode(?:\s|$)/,be=/\r\n?|\n/,ge=q.ownerDocument,Te=ge.createElement("li");q.firstChild;)Te.appendChild(q.firstChild);var Je=[Te];function rt(Re){var tt=Re.nodeType;if(tt==1&&!Z.test(Re.className))if(Re.nodeName==="br")nt(Re),Re.parentNode&&Re.parentNode.removeChild(Re);else for(var ft=Re.firstChild;ft;ft=ft.nextSibling)rt(ft);else if((tt==3||tt==4)&&V){var Qe=Re.nodeValue,lt=Qe.match(be);if(lt){var Ue=Qe.substring(0,lt.index);Re.nodeValue=Ue;var Le=Qe.substring(lt.index+lt[0].length);if(Le){var Ie=Re.parentNode;Ie.insertBefore(ge.createTextNode(Le),Re.nextSibling)}nt(Re),Ue||Re.parentNode.removeChild(Re)}}}function nt(Re){for(;!Re.nextSibling;)if(Re=Re.parentNode,!Re)return;function tt(lt,Ue){var Le=Ue?lt.cloneNode(!1):lt,Ie=lt.parentNode;if(Ie){var Ce=tt(Ie,1),_e=lt.nextSibling;Ce.appendChild(Le);for(var ke=_e;ke;ke=_e)_e=ke.nextSibling,Ce.appendChild(ke)}return Le}for(var ft=tt(Re.nextSibling,0),Qe;(Qe=ft.parentNode)&&Qe.nodeType===1;)ft=Qe;Je.push(ft)}for(var at=0;at=Ie&&(rt+=2),ge>=Ce&&(ct+=2)}}finally{Qe&&(Qe.style.display=lt)}}var xe={};function ue(q,Q){for(var V=Q.length;--V>=0;){var Z=Q[V];xe.hasOwnProperty(Z)?b.console&&console.warn("cannot override language handler %s",Z):xe[Z]=q}}function le(q,Q){return q&&xe.hasOwnProperty(q)||(q=/^\s*]*(?:>|$)/],[O,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[y,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ue(me([[S,/^[\s]+/,null,` \r -`],[H,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[M,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[G,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[y,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ue(me([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Ae({keywords:c,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Ae({keywords:"null,true,false"}),["json"]),ue(Ae({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Ae({keywords:u,cStyleComments:!0}),["java"]),ue(Ae({keywords:t,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Ae({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Ae({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Ae({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Ae({keywords:m,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Ae({keywords:h,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(me([],[[f,/^[\s\S]+/]]),["regex"]);function re(q){var Q=q.langExtension;try{var V=W(q.sourceNode,q.pre),Z=V.sourceCode;q.sourceCode=Z,q.spans=V.spans,q.basePos=0,le(Q,Z)(q),Oe(q)}catch(be){b.console&&console.log(be&&be.stack||be)}}function pe(q,Q,V){var Z=V||!1,be=Q||null,ge=document.createElement("div");ge.innerHTML="
                      "+q+"
                      ",ge=ge.firstChild,Z&&ye(ge,Z,!0);var Te={langExtension:be,numberLines:Z,sourceNode:ge,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return re(Te),ge.innerHTML}function ee(q,Q){var V=Q||document.body,Z=V.ownerDocument||document;function be(Le){return V.getElementsByTagName(Le)}for(var ge=[be("pre"),be("code"),be("xmp")],Te=[],Je=0;Je=0){var t=r.split("!=");return b.create(t[0].trim(),this._deserializeValue(t[1],a))}if(r.indexOf("==")>=0){var t=r.split("==");return _.create(t[0].trim(),this._deserializeValue(t[1],a))}if(r.indexOf("=~")>=0){var t=r.split("=~");return l.create(t[0].trim(),this._deserializeRegexValue(t[1],a))}return/^\!\s*/.test(r)?d.create(r.substr(1).trim()):v.create(r)},s._deserializeValue=function(r,a){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var t=/^'([^']*)'$/.exec(r);return t?t[1].trim():r},s._deserializeRegexValue=function(r,a){if(Object(L.x)(r)){if(a)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var t=r.indexOf("/"),w=r.lastIndexOf("/");if(t===w||t<0){if(a)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(t+1,w),f=r[w+1]==="i"?"i":"";try{return new RegExp(E,f)}catch(k){if(a)throw new Error("bad regexp-value '"+r+"', parse error: "+k);return console.warn("bad regexp-value '"+r+"', parse error: "+k),null}},s}();function p(s,r){var a=s.getType(),t=r.getType();if(a!==t)return a-t;switch(a){case 1:return s.cmp(r);case 2:return s.cmp(r);case 3:return s.cmp(r);case 4:return s.cmp(r);case 6:return s.cmp(r);case 7:return s.cmp(r);case 5:return s.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var v=function(){function s(r){this.key=r}return s.create=function(r){return new s(r)},s.prototype.getType=function(){return 1},s.prototype.cmp=function(r){return this.keyr.key?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key:!1},s.prototype.evaluate=function(r){return!!r.getValue(this.key)},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return d.create(this.key)},s}(),_=function(){function s(r,a){this.key=r,this.value=a}return s.create=function(r,a){return typeof a=="boolean"?a?v.create(r):d.create(r):new s(r,a)},s.prototype.getType=function(){return 3},s.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key&&this.value===r.value:!1},s.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return b.create(this.key,this.value)},s}(),b=function(){function s(r,a){this.key=r,this.value=a}return s.create=function(r,a){return typeof a=="boolean"?a?d.create(r):v.create(r):new s(r,a)},s.prototype.getType=function(){return 4},s.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key&&this.value===r.value:!1},s.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return _.create(this.key,this.value)},s}(),d=function(){function s(r){this.key=r}return s.create=function(r){return new s(r)},s.prototype.getType=function(){return 2},s.prototype.cmp=function(r){return this.keyr.key?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key:!1},s.prototype.evaluate=function(r){return!r.getValue(this.key)},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return v.create(this.key)},s}(),l=function(){function s(r,a){this.key=r,this.regexp=a}return s.create=function(r,a){return new s(r,a)},s.prototype.getType=function(){return 6},s.prototype.cmp=function(r){if(this.keyr.key)return 1;var a=this.regexp?this.regexp.source:"",t=r.regexp?r.regexp.source:"";return at?1:0},s.prototype.equals=function(r){if(r instanceof s){var a=this.regexp?this.regexp.source:"",t=r.regexp?r.regexp.source:"";return this.key===r.key&&a===t}return!1},s.prototype.evaluate=function(r){var a=r.getValue(this.key);return this.regexp?this.regexp.test(a):!1},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return n.create(this)},s}(),n=function(){function s(r){this._actual=r}return s.create=function(r){return new s(r)},s.prototype.getType=function(){return 7},s.prototype.cmp=function(r){return this._actual.cmp(r._actual)},s.prototype.equals=function(r){return r instanceof s?this._actual.equals(r._actual):!1},s.prototype.evaluate=function(r){return!this._actual.evaluate(r)},s.prototype.keys=function(){return this._actual.keys()},s.prototype.negate=function(){return this._actual},s}(),c=function(){function s(r){this.expr=r}return s.create=function(r){var a=s._normalizeArr(r);return a.length===0?void 0:a.length===1?a[0]:new s(a)},s.prototype.getType=function(){return 5},s.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var a=0,t=this.expr.length;a1;){for(var f=r.shift(),k=r.shift(),O=[],C=0,x=E(f);C=15&&(c=!1,d=!0);var f=a&&(l||c&&(E==null||E<12.11)),k=T||_&&b>=9;function O(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,i){var R=e.className,A=O(i).exec(R);if(A){var F=R.slice(A.index+A[0].length);e.className=R.slice(0,A.index)+(F?A[1]+F:"")}};function x(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function y(e,i){return x(e).appendChild(i)}function S(e,i,R,A){var F=document.createElement(e);if(R&&(F.className=R),A&&(F.style.cssText=A),typeof i=="string")F.appendChild(document.createTextNode(i));else if(i)for(var J=0;J=i)return oe+(i-J);oe+=he-J,oe+=R-oe%R,J=he+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,i){this.f=i;var R=+new Date+e;(!this.id||R=i)return A+Math.min(oe,i-F);if(F+=J-A,F+=R-F%R,A=J+1,F>=i)return A}}var ue=[""];function le(e){for(;ue.length<=e;)ue.push(re(ue)+" ");return ue[e]}function re(e){return e[e.length-1]}function pe(e,i){for(var R=[],A=0;A"\x80"&&(e.toUpperCase()!=e.toLowerCase()||q.test(e))}function V(e,i){return i?i.source.indexOf("\\w")>-1&&Q(e)?!0:i.test(e):Q(e)}function Z(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ge(e){return e.charCodeAt(0)>=768&&be.test(e)}function Te(e,i,R){for(;(R<0?i>0:iR?-1:1;;){if(i==R)return i;var F=(i+R)/2,J=A<0?Math.ceil(F):Math.floor(F);if(J==i)return e(J)?i:R;e(J)?R=J:i=J+A}}function rt(e,i,R,A){if(!e)return A(i,R,"ltr",0);for(var F=!1,J=0;Ji||i==R&&oe.to==i)&&(A(Math.max(oe.from,i),Math.min(oe.to,R),oe.level==1?"rtl":"ltr",J),F=!0)}F||A(i,R,"ltr")}var nt=null;function at(e,i,R){var A;nt=null;for(var F=0;Fi)return F;J.to==i&&(J.from!=J.to&&R=="before"?A=F:nt=F),J.from==i&&(J.from!=J.to&&R!="before"?A=F:nt=F)}return A!=null?A:nt}var ct=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function R(we){return we<=247?e.charAt(we):1424<=we&&we<=1524?"R":1536<=we&&we<=1785?i.charAt(we-1536):1774<=we&&we<=2220?"r":8192<=we&&we<=8203?"w":we==8204?"b":"L"}var A=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,F=/[stwN]/,J=/[LRr]/,oe=/[Lb1n]/,he=/[1n]/;function ve(we,Be,Xe){this.level=we,this.from=Be,this.to=Xe}return function(we,Be){var Xe=Be=="ltr"?"L":"R";if(we.length==0||Be=="ltr"&&!A.test(we))return!1;for(var ut=we.length,ot=[],Ot=0;Ot-1&&(A[i]=F.slice(0,J).concat(F.slice(J+1)))}}}function Qe(e,i){var R=tt(e,i);if(!R.length)return;for(var A=Array.prototype.slice.call(arguments,2),F=0;F0}function Ie(e){e.prototype.on=function(i,R){Re(this,i,R)},e.prototype.off=function(i,R){ft(this,i,R)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ne(e){Ce(e),_e(e)}function et(e){return e.target||e.srcElement}function $e(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),a&&e.ctrlKey&&i==1&&(i=3),i}var bt=function(){if(_&&b<9)return!1;var e=S("div");return"draggable"in e||"dragDrop"in e}(),gt;function Ut(e){if(gt==null){var i=S("span","\u200B");y(e,S("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(gt=i.offsetWidth<=1&&i.offsetHeight>2&&!(_&&b<8))}var R=gt?S("span","\u200B"):S("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return R.setAttribute("cm-text",""),R}var Nt;function hr(e){if(Nt!=null)return Nt;var i=y(e,document.createTextNode("A\u062EA")),R=I(i,0,1).getBoundingClientRect(),A=I(i,1,2).getBoundingClientRect();return x(e),!R||R.left==R.right?!1:Nt=A.right-R.right<3}var mr=` +`):ht=ht.replace(/[ \t\r\n]+/g," "),Z[Te]=ht,ge[Te<<1]=be,be+=ht.length,ge[Te++<<1|1]=rt)}}return Je(q),{sourceCode:Z.join("").replace(/\n$/,""),spans:ge}}function X(q,Q,V,Z,be){if(!V)return;var ge={sourceNode:q,pre:1,langExtension:null,numberLines:null,sourceCode:V,spans:null,basePos:Q,decorations:null};Z(ge),be.push.apply(be,ge.decorations)}var ne=/\S/;function fe(q){for(var Q=void 0,V=q.firstChild;V;V=V.nextSibling){var Z=V.nodeType;Q=Z===1?Q?q:V:Z===3&&ne.test(V.nodeValue)?q:Q}return Q===q?void 0:Q}function me(q,Q){var V={},Z;(function(){for(var Te=q.concat(Q),Je=[],rt={},nt=0,at=Te.length;nt=0;)V[ht.charAt(He)]=ct;var Re=ct[1],tt=""+Re;rt.hasOwnProperty(tt)||(Je.push(Re),rt[tt]=null)}Je.push(/[\0-\uffff]/),Z=U(Je)})();var be=Q.length,ge=function(Te){for(var Je=Te.sourceCode,rt=Te.basePos,nt=Te.sourceNode,at=[rt,_],ct=0,ht=Je.match(Z)||[],He={},Re=0,tt=ht.length;Re=5&&Qe.substring(0,5)==="lang-",Ue&&!(lt&&typeof lt[1]=="string")&&(Ue=!1,Qe=N),Ue||(He[ft]=Qe)}var Ce=ct;if(ct+=ft.length,!Ue)at.push(rt+Ce,Qe);else{var Se=lt[1],ke=ft.indexOf(Se),Ne=ke+Se.length;lt[2]&&(Ne=ft.length-lt[2].length,ke=Ne-Se.length);var et=Qe.substring(5);X(nt,rt+Ce,ft.substring(0,ke),ge,at),X(nt,rt+Ce+ke,Se,le(et,Se),at),X(nt,rt+Ce+Ne,ft.substring(Ne),ge,at)}}Te.decorations=at};return ge}function Ae(q){var Q=[],V=[];q.tripleQuotedStrings?Q.push([f,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):q.multiLineStrings?Q.push([f,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Q.push([f,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),q.verbatimStrings&&V.push([f,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Z=q.hashComments;Z&&(q.cStyleComments?(Z>1?Q.push([O,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Q.push([O,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),V.push([f,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Q.push([O,/^#[^\r\n]*/,null,"#"])),q.cStyleComments&&(V.push([O,/^\/\/[^\r\n]*/,null]),V.push([O,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var be=q.regexLiterals;if(be){var ge=be>1?"":` +\r`,Te=ge?".":"[\\S\\s]",Je="/(?=[^/*"+ge+"])(?:[^/\\x5B\\x5C"+ge+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+ge+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";V.push(["lang-regex",RegExp("^"+K+"("+Je+")")])}var rt=q.types;rt&&V.push([C,rt]);var nt=(""+q.keywords).replace(/^ | $/g,"");nt.length&&V.push([k,new RegExp("^(?:"+nt.replace(/[\s,]+/g,"|")+")\\b"),null]),Q.push([_,/^\s+/,null,` \r + \xA0`]);var at="^.[^\\s\\w.$@'\"`/\\\\]*";return q.regexLiterals&&(at+="(?!s*/)"),V.push([x,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[x,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[y,new RegExp(at),null]),me(Q,V)}var De=Ae({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ye(q,Q,V){for(var Z=/(?:^|\s)nocode(?:\s|$)/,be=/\r\n?|\n/,ge=q.ownerDocument,Te=ge.createElement("li");q.firstChild;)Te.appendChild(q.firstChild);var Je=[Te];function rt(Re){var tt=Re.nodeType;if(tt==1&&!Z.test(Re.className))if(Re.nodeName==="br")nt(Re),Re.parentNode&&Re.parentNode.removeChild(Re);else for(var ft=Re.firstChild;ft;ft=ft.nextSibling)rt(ft);else if((tt==3||tt==4)&&V){var Qe=Re.nodeValue,lt=Qe.match(be);if(lt){var Ue=Qe.substring(0,lt.index);Re.nodeValue=Ue;var Le=Qe.substring(lt.index+lt[0].length);if(Le){var Ie=Re.parentNode;Ie.insertBefore(ge.createTextNode(Le),Re.nextSibling)}nt(Re),Ue||Re.parentNode.removeChild(Re)}}}function nt(Re){for(;!Re.nextSibling;)if(Re=Re.parentNode,!Re)return;function tt(lt,Ue){var Le=Ue?lt.cloneNode(!1):lt,Ie=lt.parentNode;if(Ie){var Ce=tt(Ie,1),Se=lt.nextSibling;Ce.appendChild(Le);for(var ke=Se;ke;ke=Se)Se=ke.nextSibling,Ce.appendChild(ke)}return Le}for(var ft=tt(Re.nextSibling,0),Qe;(Qe=ft.parentNode)&&Qe.nodeType===1;)ft=Qe;Je.push(ft)}for(var at=0;at=Ie&&(rt+=2),ge>=Ce&&(ct+=2)}}finally{Qe&&(Qe.style.display=lt)}}var xe={};function ue(q,Q){for(var V=Q.length;--V>=0;){var Z=Q[V];xe.hasOwnProperty(Z)?b.console&&console.warn("cannot override language handler %s",Z):xe[Z]=q}}function le(q,Q){return q&&xe.hasOwnProperty(q)||(q=/^\s*]*(?:>|$)/],[O,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[y,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ue(me([[_,/^[\s]+/,null,` \r +`],[H,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[M,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[G,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[y,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ue(me([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Ae({keywords:c,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Ae({keywords:"null,true,false"}),["json"]),ue(Ae({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Ae({keywords:u,cStyleComments:!0}),["java"]),ue(Ae({keywords:t,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Ae({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Ae({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Ae({keywords:a,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Ae({keywords:m,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Ae({keywords:h,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(me([],[[f,/^[\s\S]+/]]),["regex"]);function re(q){var Q=q.langExtension;try{var V=W(q.sourceNode,q.pre),Z=V.sourceCode;q.sourceCode=Z,q.spans=V.spans,q.basePos=0,le(Q,Z)(q),Oe(q)}catch(be){b.console&&console.log(be&&be.stack||be)}}function pe(q,Q,V){var Z=V||!1,be=Q||null,ge=document.createElement("div");ge.innerHTML="
                      "+q+"
                      ",ge=ge.firstChild,Z&&ye(ge,Z,!0);var Te={langExtension:be,numberLines:Z,sourceNode:ge,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return re(Te),ge.innerHTML}function ee(q,Q){var V=Q||document.body,Z=V.ownerDocument||document;function be(Le){return V.getElementsByTagName(Le)}for(var ge=[be("pre"),be("code"),be("xmp")],Te=[],Je=0;Je=0){var t=r.split("!=");return b.create(t[0].trim(),this._deserializeValue(t[1],a))}if(r.indexOf("==")>=0){var t=r.split("==");return S.create(t[0].trim(),this._deserializeValue(t[1],a))}if(r.indexOf("=~")>=0){var t=r.split("=~");return l.create(t[0].trim(),this._deserializeRegexValue(t[1],a))}return/^\!\s*/.test(r)?d.create(r.substr(1).trim()):v.create(r)},s._deserializeValue=function(r,a){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var t=/^'([^']*)'$/.exec(r);return t?t[1].trim():r},s._deserializeRegexValue=function(r,a){if(Object(L.x)(r)){if(a)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var t=r.indexOf("/"),w=r.lastIndexOf("/");if(t===w||t<0){if(a)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var E=r.slice(t+1,w),f=r[w+1]==="i"?"i":"";try{return new RegExp(E,f)}catch(k){if(a)throw new Error("bad regexp-value '"+r+"', parse error: "+k);return console.warn("bad regexp-value '"+r+"', parse error: "+k),null}},s}();function p(s,r){var a=s.getType(),t=r.getType();if(a!==t)return a-t;switch(a){case 1:return s.cmp(r);case 2:return s.cmp(r);case 3:return s.cmp(r);case 4:return s.cmp(r);case 6:return s.cmp(r);case 7:return s.cmp(r);case 5:return s.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var v=function(){function s(r){this.key=r}return s.create=function(r){return new s(r)},s.prototype.getType=function(){return 1},s.prototype.cmp=function(r){return this.keyr.key?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key:!1},s.prototype.evaluate=function(r){return!!r.getValue(this.key)},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return d.create(this.key)},s}(),S=function(){function s(r,a){this.key=r,this.value=a}return s.create=function(r,a){return typeof a=="boolean"?a?v.create(r):d.create(r):new s(r,a)},s.prototype.getType=function(){return 3},s.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key&&this.value===r.value:!1},s.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return b.create(this.key,this.value)},s}(),b=function(){function s(r,a){this.key=r,this.value=a}return s.create=function(r,a){return typeof a=="boolean"?a?d.create(r):v.create(r):new s(r,a)},s.prototype.getType=function(){return 4},s.prototype.cmp=function(r){return this.keyr.key?1:this.valuer.value?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key&&this.value===r.value:!1},s.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return S.create(this.key,this.value)},s}(),d=function(){function s(r){this.key=r}return s.create=function(r){return new s(r)},s.prototype.getType=function(){return 2},s.prototype.cmp=function(r){return this.keyr.key?1:0},s.prototype.equals=function(r){return r instanceof s?this.key===r.key:!1},s.prototype.evaluate=function(r){return!r.getValue(this.key)},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return v.create(this.key)},s}(),l=function(){function s(r,a){this.key=r,this.regexp=a}return s.create=function(r,a){return new s(r,a)},s.prototype.getType=function(){return 6},s.prototype.cmp=function(r){if(this.keyr.key)return 1;var a=this.regexp?this.regexp.source:"",t=r.regexp?r.regexp.source:"";return at?1:0},s.prototype.equals=function(r){if(r instanceof s){var a=this.regexp?this.regexp.source:"",t=r.regexp?r.regexp.source:"";return this.key===r.key&&a===t}return!1},s.prototype.evaluate=function(r){var a=r.getValue(this.key);return this.regexp?this.regexp.test(a):!1},s.prototype.keys=function(){return[this.key]},s.prototype.negate=function(){return n.create(this)},s}(),n=function(){function s(r){this._actual=r}return s.create=function(r){return new s(r)},s.prototype.getType=function(){return 7},s.prototype.cmp=function(r){return this._actual.cmp(r._actual)},s.prototype.equals=function(r){return r instanceof s?this._actual.equals(r._actual):!1},s.prototype.evaluate=function(r){return!this._actual.evaluate(r)},s.prototype.keys=function(){return this._actual.keys()},s.prototype.negate=function(){return this._actual},s}(),c=function(){function s(r){this.expr=r}return s.create=function(r){var a=s._normalizeArr(r);return a.length===0?void 0:a.length===1?a[0]:new s(a)},s.prototype.getType=function(){return 5},s.prototype.cmp=function(r){if(this.expr.lengthr.expr.length)return 1;for(var a=0,t=this.expr.length;a1;){for(var f=r.shift(),k=r.shift(),O=[],C=0,x=E(f);C=15&&(c=!1,d=!0);var f=a&&(l||c&&(E==null||E<12.11)),k=T||S&&b>=9;function O(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,i){var R=e.className,A=O(i).exec(R);if(A){var F=R.slice(A.index+A[0].length);e.className=R.slice(0,A.index)+(F?A[1]+F:"")}};function x(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function y(e,i){return x(e).appendChild(i)}function _(e,i,R,A){var F=document.createElement(e);if(R&&(F.className=R),A&&(F.style.cssText=A),typeof i=="string")F.appendChild(document.createTextNode(i));else if(i)for(var J=0;J=i)return oe+(i-J);oe+=he-J,oe+=R-oe%R,J=he+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,i){this.f=i;var R=+new Date+e;(!this.id||R=i)return A+Math.min(oe,i-F);if(F+=J-A,F+=R-F%R,A=J+1,F>=i)return A}}var ue=[""];function le(e){for(;ue.length<=e;)ue.push(re(ue)+" ");return ue[e]}function re(e){return e[e.length-1]}function pe(e,i){for(var R=[],A=0;A"\x80"&&(e.toUpperCase()!=e.toLowerCase()||q.test(e))}function V(e,i){return i?i.source.indexOf("\\w")>-1&&Q(e)?!0:i.test(e):Q(e)}function Z(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ge(e){return e.charCodeAt(0)>=768&&be.test(e)}function Te(e,i,R){for(;(R<0?i>0:iR?-1:1;;){if(i==R)return i;var F=(i+R)/2,J=A<0?Math.ceil(F):Math.floor(F);if(J==i)return e(J)?i:R;e(J)?R=J:i=J+A}}function rt(e,i,R,A){if(!e)return A(i,R,"ltr",0);for(var F=!1,J=0;Ji||i==R&&oe.to==i)&&(A(Math.max(oe.from,i),Math.min(oe.to,R),oe.level==1?"rtl":"ltr",J),F=!0)}F||A(i,R,"ltr")}var nt=null;function at(e,i,R){var A;nt=null;for(var F=0;Fi)return F;J.to==i&&(J.from!=J.to&&R=="before"?A=F:nt=F),J.from==i&&(J.from!=J.to&&R!="before"?A=F:nt=F)}return A!=null?A:nt}var ct=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function R(we){return we<=247?e.charAt(we):1424<=we&&we<=1524?"R":1536<=we&&we<=1785?i.charAt(we-1536):1774<=we&&we<=2220?"r":8192<=we&&we<=8203?"w":we==8204?"b":"L"}var A=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,F=/[stwN]/,J=/[LRr]/,oe=/[Lb1n]/,he=/[1n]/;function ve(we,Be,Xe){this.level=we,this.from=Be,this.to=Xe}return function(we,Be){var Xe=Be=="ltr"?"L":"R";if(we.length==0||Be=="ltr"&&!A.test(we))return!1;for(var ut=we.length,ot=[],Ot=0;Ot-1&&(A[i]=F.slice(0,J).concat(F.slice(J+1)))}}}function Qe(e,i){var R=tt(e,i);if(!R.length)return;for(var A=Array.prototype.slice.call(arguments,2),F=0;F0}function Ie(e){e.prototype.on=function(i,R){Re(this,i,R)},e.prototype.off=function(i,R){ft(this,i,R)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ne(e){Ce(e),Se(e)}function et(e){return e.target||e.srcElement}function $e(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),a&&e.ctrlKey&&i==1&&(i=3),i}var bt=function(){if(S&&b<9)return!1;var e=_("div");return"draggable"in e||"dragDrop"in e}(),gt;function Ut(e){if(gt==null){var i=_("span","\u200B");y(e,_("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(gt=i.offsetWidth<=1&&i.offsetHeight>2&&!(S&&b<8))}var R=gt?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return R.setAttribute("cm-text",""),R}var Nt;function hr(e){if(Nt!=null)return Nt;var i=y(e,document.createTextNode("A\u062EA")),R=I(i,0,1).getBoundingClientRect(),A=I(i,1,2).getBoundingClientRect();return x(e),!R||R.left==R.right?!1:Nt=A.right-R.right<3}var mr=` b`.split(/\n/).length!=3?function(e){for(var i=0,R=[],A=e.length;i<=A;){var F=e.indexOf(` -`,i);F==-1&&(F=e.length);var J=e.slice(i,e.charAt(F-1)=="\r"?F-1:F),oe=J.indexOf("\r");oe!=-1?(R.push(J.slice(0,oe)),i+=oe+1):(R.push(J),i=F+1)}return R}:function(e){return e.split(/\r\n?|\n/)},_t=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(i){return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch(R){}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},Yr=function(){var e=S("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Jr=null;function Hr(e){if(Jr!=null)return Jr;var i=y(e,S("span","x")),R=i.getBoundingClientRect(),A=I(i,0,1).getBoundingClientRect();return Jr=Math.abs(R.left-A.left)>1}var un={},Ar={};function vn(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),un[e]=i}function mn(e,i){Ar[e]=i}function Kt(e){if(typeof e=="string"&&Ar.hasOwnProperty(e))e=Ar[e];else if(e&&typeof e.name=="string"&&Ar.hasOwnProperty(e.name)){var i=Ar[e.name];typeof i=="string"&&(i={name:i}),e=ce(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Kt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Kt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function or(e,i){i=Kt(i);var R=un[i.name];if(!R)return or(e,"text/plain");var A=R(e,i);if(Xt.hasOwnProperty(i.name)){var F=Xt[i.name];for(var J in F){if(!F.hasOwnProperty(J))continue;A.hasOwnProperty(J)&&(A["_"+J]=A[J]),A[J]=F[J]}}if(A.name=i.name,i.helperType&&(A.helperType=i.helperType),i.modeProps)for(var oe in i.modeProps)A[oe]=i.modeProps[oe];return A}var Xt={};function gr(e,i){var R=Xt.hasOwnProperty(e)?Xt[e]:Xt[e]={};W(i,R)}function Xr(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var R={};for(var A in i){var F=i[A];F instanceof Array&&(F=F.concat([])),R[A]=F}return R}function kn(e,i){for(var R;e.innerMode&&!(R=e.innerMode(i),!R||R.mode==e);)i=R.state,e=R.mode;return R||{mode:e,state:i}}function Ln(e,i,R){return e.startState?e.startState(i,R):!0}var tn=function(e,i,R){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=R};tn.prototype.eol=function(){return this.pos>=this.string.length},tn.prototype.sol=function(){return this.pos==this.lineStart},tn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tn.prototype.next=function(){if(this.posi},tn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tn.prototype.skipToEnd=function(){this.pos=this.string.length},tn.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},tn.prototype.backUp=function(e){this.pos-=e},tn.prototype.column=function(){return this.lastColumnPos0?null:(J&&i!==!1&&(this.pos+=J[0].length),J)}},tn.prototype.current=function(){return this.string.slice(this.start,this.pos)},tn.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},tn.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},tn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ur(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var R=e;!R.lines;)for(var A=0;;++A){var F=R.children[A],J=F.chunkSize();if(i=e.first&&iR?wt(R,ur(e,R).text.length):$(i,ur(e,i.line).text.length)}function $(e,i){var R=e.ch;return R==null||R>i?wt(e.line,i):R<0?wt(e.line,0):e}function ie(e,i){for(var R=[],A=0;Athis.maxLookAhead&&(this.maxLookAhead=e),i},se.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},se.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},se.fromSaved=function(e,i,R){return i instanceof de?new se(e,Xr(e.mode,i.state),R,i.lookAhead):new se(e,Xr(e.mode,i),R)},se.prototype.save=function(e){var i=e!==!1?Xr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new de(i,this.maxLookAhead):i};function Ke(e,i,R,A){var F=[e.state.modeGen],J={};Ei(e,i.text,e.doc.mode,R,function(we,Be){return F.push(we,Be)},J,A);for(var oe=R.state,he=function(we){R.baseTokens=F;var Be=e.state.overlays[we],Xe=1,ut=0;R.state=!0,Ei(e,i.text,Be.mode,R,function(ot,Ot){for(var Bt=Xe;utot&&F.splice(Xe,1,ot,F[Xe+1],Qt),Xe+=2,ut=Math.min(ot,Qt)}if(!Ot)return;if(Be.opaque)F.splice(Bt,Xe-Bt,ot,"overlay "+Ot),Xe=Bt+2;else for(;Bte.options.maxHighlightLength&&Xr(e.doc.mode,A.state),J=Ke(e,i,A);F&&(A.state=F),i.stateAfter=A.save(!F),i.styles=J.styles,J.classes?i.styleClasses=J.classes:i.styleClasses&&(i.styleClasses=null),R===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function Vt(e,i,R){var A=e.doc,F=e.display;if(!A.mode.startState)return new se(A,!0,i);var J=In(e,i,R),oe=J>A.first&&ur(A,J-1).stateAfter,he=oe?se.fromSaved(A,oe,J):new se(A,Ln(A.mode),J);return A.iter(J,i,function(ve){Er(e,ve.text,he);var we=he.line;ve.stateAfter=we==i-1||we%5==0||we>=F.viewFrom&&wei.start)return J}throw new Error("Mode "+e.name+" failed to advance stream.")}var Br=function(e,i,R){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=R};function En(e,i,R,A){var F=e.doc,J=F.mode,oe;i=z(F,i);var he=ur(F,i.line),ve=Vt(e,i.line,R),we=new tn(he.text,e.options.tabSize,ve),Be;for(A&&(Be=[]);(A||we.pose.options.maxHighlightLength?(he=!1,oe&&Er(e,i,A,Be.pos),Be.pos=i.length,Xe=null):Xe=ui(zr(R,Be,A.state,ut),J),ut){var ot=ut[0].name;ot&&(Xe="m-"+(Xe?ot+" "+Xe:ot))}if(!he||we!=Xe){for(;veoe;--he){if(he<=J.first)return J.first;var ve=ur(J,he-1),we=ve.stateAfter;if(we&&(!R||he+(we instanceof de?we.lookAhead:0)<=J.modeFrontier))return he;var Be=X(ve.text,null,e.options.tabSize);(F==null||A>Be)&&(F=he-1,A=Be)}return F}function Li(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),e.highlightFrontierR;A--){var F=ur(e,A).stateAfter;if(F&&(!(F instanceof de)||A+F.lookAhead=i:J.to>i);(A||(A=[])).push(new Fi(oe,J.from,ve?null:J.to))}}return A}function sa(e,i,R){var A;if(e)for(var F=0;F=i:J.to>i);if(he||J.from==i&&oe.type=="bookmark"&&(!R||J.marker.insertLeft)){var ve=J.from==null||(oe.inclusiveLeft?J.from<=i:J.from0&&he)for(var Rr=0;Rr0)continue;var Be=[ve,1],Xe=$t(we.from,he.from),ut=$t(we.to,he.to);(Xe<0||!oe.inclusiveLeft&&!Xe)&&Be.push({from:we.from,to:he.from}),(ut>0||!oe.inclusiveRight&&!ut)&&Be.push({from:he.to,to:we.to}),F.splice.apply(F,Be),ve+=Be.length-3}return F}function ta(e){var i=e.markedSpans;if(!i)return;for(var R=0;Ri)&&(!A||Ct(A,J.marker)<0)&&(A=J.marker)}return A}function dt(e,i,R,A,F){var J=ur(e,i),oe=ni&&J.markedSpans;if(oe)for(var he=0;he=0&&Xe<=0||Be<=0&&Xe>=0)continue;if(Be<=0&&(ve.marker.inclusiveRight&&F.inclusiveLeft?$t(we.to,R)>=0:$t(we.to,R)>0)||Be>=0&&(ve.marker.inclusiveRight&&F.inclusiveLeft?$t(we.from,A)<=0:$t(we.from,A)<0))return!0}}function At(e){for(var i;i=Pt(e);)e=i.find(-1,!0).line;return e}function Dt(e){for(var i;i=Ht(e);)e=i.find(1,!0).line;return e}function yr(e){for(var i,R;i=Ht(e);)e=i.find(1,!0).line,(R||(R=[])).push(e);return R}function tr(e,i){var R=ur(e,i),A=At(R);return R==A?i:Zr(A)}function qt(e,i){if(i>e.lastLine())return i;var R=ur(e,i),A;if(!Gt(e,R))return i;for(;A=Ht(R);)R=A.find(1,!0).line;return Zr(R)+1}function Gt(e,i){var R=ni&&i.markedSpans;if(R)for(var A=void 0,F=0;Fi.maxLineLength&&(i.maxLineLength=F,i.maxLine=A)})}var Fr=function(e,i,R){this.text=e,Tt(this,i),this.height=R?R(this):1};Fr.prototype.lineNo=function(){return Zr(this)},Ie(Fr);function Cr(e,i,R,A){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ta(e),Tt(e,R);var F=A?A(e):1;F!=e.height&&$n(e,F)}function rr(e){e.parent=null,ta(e)}var Et={},St={};function xt(e,i){if(!e||/^\s*$/.test(e))return null;var R=i.addModeClass?St:Et;return R[e]||(R[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,i){var R=M("span",null,null,d?"padding-right: .1px":null),A={pre:M("pre",[R],"CodeMirror-line"),content:R,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var F=0;F<=(i.rest?i.rest.length:0);F++){var J=F?i.rest[F-1]:i.line,oe=void 0;A.pos=0,A.addToken=dr,hr(e.display.measure)&&(oe=ht(J,e.doc.direction))&&(A.addToken=Dr(A.addToken,oe)),A.map=[];var he=i!=e.display.externalMeasured&&Zr(J);qe(J,A,Rt(e,J,he)),J.styleClasses&&(J.styleClasses.bgClass&&(A.bgClass=B(J.styleClasses.bgClass,A.bgClass||"")),J.styleClasses.textClass&&(A.textClass=B(J.styleClasses.textClass,A.textClass||""))),A.map.length==0&&A.map.push(0,0,A.content.appendChild(Ut(e.display.measure))),F==0?(i.measure.map=A.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(A.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(d){var ve=A.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(A.content.className="cm-tab-wrap-hack")}return Qe(e,"renderLine",e,i.line,A.pre),A.pre.className&&(A.textClass=B(A.pre.className,A.textClass||"")),A}function pr(e){var i=S("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function dr(e,i,R,A,F,J,oe){if(!i)return;var he=e.splitSpaces?fr(i,e.trailingSpace):i,ve=e.cm.state.specialChars,we=!1,Be;if(!ve.test(i))e.col+=i.length,Be=document.createTextNode(he),e.map.push(e.pos,e.pos+i.length,Be),_&&b<9&&(we=!0),e.pos+=i.length;else{Be=document.createDocumentFragment();for(var Xe=0;;){ve.lastIndex=Xe;var ut=ve.exec(i),ot=ut?ut.index-Xe:i.length-Xe;if(ot){var Ot=document.createTextNode(he.slice(Xe,Xe+ot));_&&b<9?Be.appendChild(S("span",[Ot])):Be.appendChild(Ot),e.map.push(e.pos,e.pos+ot,Ot),e.col+=ot,e.pos+=ot}if(!ut)break;Xe+=ot+1;var Bt=void 0;if(ut[0]==" "){var Qt=e.cm.options.tabSize,ir=Qt-e.col%Qt;Bt=Be.appendChild(S("span",le(ir),"cm-tab")),Bt.setAttribute("role","presentation"),Bt.setAttribute("cm-text"," "),e.col+=ir}else ut[0]=="\r"||ut[0]==` -`?(Bt=Be.appendChild(S("span",ut[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bt.setAttribute("cm-text",ut[0]),e.col+=1):(Bt=e.cm.options.specialCharPlaceholder(ut[0]),Bt.setAttribute("cm-text",ut[0]),_&&b<9?Be.appendChild(S("span",[Bt])):Be.appendChild(Bt),e.col+=1);e.map.push(e.pos,e.pos+1,Bt),e.pos++}}if(e.trailingSpace=he.charCodeAt(i.length-1)==32,R||A||F||we||J||oe){var Sr=R||"";A&&(Sr+=A),F&&(Sr+=F);var ar=S("span",[Be],Sr,J);if(oe)for(var Rr in oe)oe.hasOwnProperty(Rr)&&Rr!="style"&&Rr!="class"&&ar.setAttribute(Rr,oe[Rr]);return e.content.appendChild(ar)}e.content.appendChild(Be)}function fr(e,i){if(e.length>1&&!/ /.test(e))return e;for(var R=i,A="",F=0;Fwe&&Xe.from<=we);ut++);if(Xe.to>=Be)return e(R,A,F,J,oe,he,ve);e(R,A.slice(0,Xe.to-we),F,J,null,he,ve),J=null,A=A.slice(Xe.to-we),we=Xe.to}}}function an(e,i,R,A){var F=!A&&R.widgetNode;F&&e.map.push(e.pos,e.pos+i,F),!A&&e.cm.display.input.needsContentAttribute&&(F||(F=e.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",R.id)),F&&(e.cm.display.input.setUneditable(F),e.content.appendChild(F)),e.pos+=i,e.trailingSpace=!1}function qe(e,i,R){var A=e.markedSpans,F=e.text,J=0;if(!A){for(var oe=1;oeve||wn.collapsed&&Gr.to==ve&&Gr.from==ve)){if(Gr.to!=null&&Gr.to!=ve&&ot>Gr.to&&(ot=Gr.to,Bt=""),wn.className&&(Ot+=" "+wn.className),wn.css&&(ut=(ut?ut+";":"")+wn.css),wn.startStyle&&Gr.from==ve&&(Qt+=" "+wn.startStyle),wn.endStyle&&Gr.to==ot&&(Rr||(Rr=[])).push(wn.endStyle,Gr.to),wn.title&&((Sr||(Sr={})).title=wn.title),wn.attributes)for(var Zn in wn.attributes)(Sr||(Sr={}))[Zn]=wn.attributes[Zn];wn.collapsed&&(!ir||Ct(ir.marker,wn)<0)&&(ir=Gr)}else Gr.from>ve&&ot>Gr.from&&(ot=Gr.from)}if(Rr)for(var Ai=0;Ai=he)break;for(var ea=Math.min(he,ot);;){if(Be){var Ji=ve+Be.length;if(!ir){var yi=Ji>ea?Be.slice(0,ea-ve):Be;i.addToken(i,yi,Xe?Xe+Ot:Ot,Qt,ve+yi.length==ot?Bt:"",ut,Sr)}if(Ji>=ea){Be=Be.slice(ea-ve),ve=ea;break}ve=Ji,Qt=""}Be=F.slice(J,J=R[we++]),Xe=xt(R[we++],i.cm.options)}}}function sr(e,i,R){this.line=i,this.rest=yr(i),this.size=this.rest?Zr(re(this.rest))-R+1:1,this.node=this.text=null,this.hidden=Gt(e,i)}function Nr(e,i,R){for(var A=[],F,J=i;J2&&J.push((ve.bottom+we.top)/2-R.top)}}J.push(R.bottom-R.top)}}function Se(e,i,R){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};for(var A=0;AR)return{map:e.measure.maps[F],cache:e.measure.caches[F],before:!0}}function je(e,i){i=At(i);var R=Zr(i),A=e.display.externalMeasured=new sr(e.doc,i,R);A.lineN=R;var F=A.built=Jt(e,A);return A.text=F.pre,y(e.display.lineMeasure,F.pre),A}function ze(e,i,R,A){return Ze(e,We(e,i),R,A)}function Ve(e,i){if(i>=e.display.viewFrom&&i=R.lineN&&ii)&&(J=ve-he,F=J-1,i>=ve&&(oe="right")),F!=null){if(A=e[we+2],he==ve&&R==(A.insertLeft?"left":"right")&&(oe=R),R=="left"&&F==0)for(;we&&e[we-2]==e[we-3]&&e[we-1].insertLeft;)A=e[(we-=3)+2],oe="left";if(R=="right"&&F==ve-he)for(;we=0&&!((R=e[F]).left!=R.right);F--);return R}function Yt(e,i,R,A){var F=kt(i.map,R,A),J=F.node,oe=F.start,he=F.end,ve=F.collapse,we;if(J.nodeType==3){for(var Be=0;Be<4;Be++){for(;oe&&ge(i.line.text.charAt(F.coverStart+oe));)--oe;for(;F.coverStart+he0&&(ve=A="right");var Xe;e.options.lineWrapping&&(Xe=J.getClientRects()).length>1?we=Xe[A=="right"?Xe.length-1:0]:we=J.getBoundingClientRect()}if(_&&b<9&&!oe&&(!we||!we.left&&!we.right)){var ut=J.parentNode.getClientRects()[0];ut?we={left:ut.left,right:ut.left+ci(e.display),top:ut.top,bottom:ut.bottom}:we=pt}for(var ot=we.top-i.rect.top,Ot=we.bottom-i.rect.top,Bt=(ot+Ot)/2,Qt=i.view.measure.heights,ir=0;ir=A.text.length?(ve=A.text.length,we="before"):ve<=0&&(ve=0,we="after"),!he)return oe(we=="before"?ve-1:ve,we=="before");function Be(Ot,Bt,Qt){var ir=he[Bt],Sr=ir.level==1;return oe(Qt?Ot-1:Ot,Sr!=Qt)}var Xe=at(he,ve,we),ut=nt,ot=Be(ve,Xe,we=="before");return ut!=null&&(ot.other=Be(ve,ut,we!="before")),ot}function jr(e,i){var R=0;i=z(e.doc,i),e.options.lineWrapping||(R=ci(e.display)*i.ch);var A=ur(e.doc,i.line),F=cr(A)+ei(e.display);return{left:R,right:R,top:F,bottom:F+A.height}}function Wr(e,i,R,A,F){var J=wt(e,i,R);return J.xRel=F,A&&(J.outside=A),J}function dn(e,i,R){var A=e.doc;if(R+=e.display.viewOffset,R<0)return Wr(A.first,0,null,-1,-1);var F=Bn(A,R),J=A.first+A.size-1;if(F>J)return Wr(A.first+A.size-1,ur(A,J).text.length,null,1,1);i<0&&(i=0);for(var oe=ur(A,F);;){var he=Yn(e,oe,F,i,R),ve=Wt(oe,he.ch+(he.xRel>0||he.outside>0?1:0));if(!ve)return he;var we=ve.find(1);if(we.line==F)return we;oe=ur(A,F=we.line)}}function bn(e,i,R,A){A-=ln(i);var F=i.text.length,J=Je(function(oe){return Ze(e,R,oe-1).bottom<=A},F,0);return F=Je(function(oe){return Ze(e,R,oe).top>A},J,F),{begin:J,end:F}}function Tr(e,i,R,A){R||(R=We(e,i));var F=xn(e,i,Ze(e,R,A),"line").top;return bn(e,i,R,F)}function _n(e,i,R,A){return e.bottom<=R?!1:e.top>R?!0:(A?e.left:e.right)>i}function Yn(e,i,R,A,F){F-=cr(i);var J=We(e,i),oe=ln(i),he=0,ve=i.text.length,we=!0,Be=ht(i,e.doc.direction);if(Be){var Xe=(e.options.lineWrapping?Wn:Rn)(e,i,R,J,Be,A,F);we=Xe.level!=1,he=we?Xe.from:Xe.to-1,ve=we?Xe.to:Xe.from-1}var ut=null,ot=null,Ot=Je(function(qr){var Gr=Ze(e,J,qr);return Gr.top+=oe,Gr.bottom+=oe,_n(Gr,A,F,!1)?(Gr.top<=F&&Gr.left<=A&&(ut=qr,ot=Gr),!0):!1},he,ve),Bt,Qt,ir=!1;if(ot){var Sr=A-ot.left=Rr.bottom?1:0}return Ot=Te(i.text,Ot,1),Wr(R,Ot,Qt,ir,A-Bt)}function Rn(e,i,R,A,F,J,oe){var he=Je(function(Xe){var ut=F[Xe],ot=ut.level!=1;return _n(pn(e,wt(R,ot?ut.to:ut.from,ot?"before":"after"),"line",i,A),J,oe,!0)},0,F.length-1),ve=F[he];if(he>0){var we=ve.level!=1,Be=pn(e,wt(R,we?ve.from:ve.to,we?"after":"before"),"line",i,A);_n(Be,J,oe,!0)&&Be.top>oe&&(ve=F[he-1])}return ve}function Wn(e,i,R,A,F,J,oe){var he=bn(e,i,A,oe),ve=he.begin,we=he.end;/\s/.test(i.text.charAt(we-1))&&we--;for(var Be=null,Xe=null,ut=0;ut=we||ot.to<=ve)continue;var Ot=ot.level!=1,Bt=Ze(e,A,Ot?Math.min(we,ot.to)-1:Math.max(ve,ot.from)).right,Qt=BtQt)&&(Be=ot,Xe=Qt)}return Be||(Be=F[F.length-1]),Be.fromwe&&(Be={from:Be.from,to:we,level:Be.level}),Be}var Dn;function ti(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Dn==null){Dn=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Dn.appendChild(document.createTextNode("x")),Dn.appendChild(S("br"));Dn.appendChild(document.createTextNode("x"))}y(e.measure,Dn);var R=Dn.offsetHeight/50;return R>3&&(e.cachedTextHeight=R),x(e.measure),R||1}function ci(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=S("span","xxxxxxxxxx"),R=S("pre",[i],"CodeMirror-line-like");y(e.measure,R);var A=i.getBoundingClientRect(),F=(A.right-A.left)/10;return F>2&&(e.cachedCharWidth=F),F||10}function Jn(e){for(var i=e.display,R={},A={},F=i.gutters.clientLeft,J=i.gutters.firstChild,oe=0;J;J=J.nextSibling,++oe){var he=e.display.gutterSpecs[oe].className;R[he]=J.offsetLeft+J.clientLeft+F,A[he]=J.clientWidth}return{fixedPos:gi(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:R,gutterWidth:A,wrapperWidth:i.wrapper.clientWidth}}function gi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Xi(e){var i=ti(e.display),R=e.options.lineWrapping,A=R&&Math.max(5,e.display.scroller.clientWidth/ci(e.display)-3);return function(F){if(Gt(e.doc,F))return 0;var J=0;if(F.widgets)for(var oe=0;oe0&&(we=ur(e.doc,ve.line).text).length==ve.ch){var Be=X(we,we.length,e.options.tabSize)-we.length;ve=wt(ve.line,Math.max(0,Math.round((J-Ge(e.display).left)/ci(e.display))-Be))}return ve}function Hn(e,i){if(i>=e.display.viewTo)return null;if(i-=e.display.viewFrom,i<0)return null;for(var R=e.display.view,A=0;Ai)&&(F.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=F.viewTo)ni&&tr(e.doc,i)F.viewFrom?Vn(e):(F.viewFrom+=A,F.viewTo+=A);else if(i<=F.viewFrom&&R>=F.viewTo)Vn(e);else if(i<=F.viewFrom){var J=ii(e,R,R+A,1);J?(F.view=F.view.slice(J.index),F.viewFrom=J.lineN,F.viewTo+=A):Vn(e)}else if(R>=F.viewTo){var oe=ii(e,i,i,-1);oe?(F.view=F.view.slice(0,oe.index),F.viewTo=oe.lineN):Vn(e)}else{var he=ii(e,i,i,-1),ve=ii(e,R,R+A,1);he&&ve?(F.view=F.view.slice(0,he.index).concat(Nr(e,he.lineN,ve.lineN)).concat(F.view.slice(ve.index)),F.viewTo+=A):Vn(e)}var we=F.externalMeasured;we&&(R=F.lineN&&i=A.viewTo)return;var J=A.view[Hn(e,i)];if(J.node==null)return;var oe=J.changes||(J.changes=[]);fe(oe,R)==-1&&oe.push(R)}function Vn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ii(e,i,R,A){var F=Hn(e,i),J,oe=e.display.view;if(!ni||R==e.doc.first+e.doc.size)return{index:F,lineN:R};for(var he=e.display.viewFrom,ve=0;ve0){if(F==oe.length-1)return null;J=he+oe[F].size-i,F++}else J=he-i;i+=J,R+=J}for(;tr(e.doc,R)!=R;){if(F==(A<0?0:oe.length-1))return null;R+=A*oe[F-(A<0?1:0)].size,F+=A}return{index:F,lineN:R}}function Di(e,i,R){var A=e.display,F=A.view;F.length==0||i>=A.viewTo||R<=A.viewFrom?(A.view=Nr(e,i,R),A.viewFrom=i):(A.viewFrom>i?A.view=Nr(e,i,A.viewFrom).concat(A.view):A.viewFromR&&(A.view=A.view.slice(0,Hn(e,R)))),A.viewTo=R}function ra(e){for(var i=e.display.view,R=0,A=0;A=e.display.viewTo||he.to().line1}var un={},Ar={};function vn(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),un[e]=i}function mn(e,i){Ar[e]=i}function Kt(e){if(typeof e=="string"&&Ar.hasOwnProperty(e))e=Ar[e];else if(e&&typeof e.name=="string"&&Ar.hasOwnProperty(e.name)){var i=Ar[e.name];typeof i=="string"&&(i={name:i}),e=ce(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Kt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Kt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function or(e,i){i=Kt(i);var R=un[i.name];if(!R)return or(e,"text/plain");var A=R(e,i);if(Xt.hasOwnProperty(i.name)){var F=Xt[i.name];for(var J in F){if(!F.hasOwnProperty(J))continue;A.hasOwnProperty(J)&&(A["_"+J]=A[J]),A[J]=F[J]}}if(A.name=i.name,i.helperType&&(A.helperType=i.helperType),i.modeProps)for(var oe in i.modeProps)A[oe]=i.modeProps[oe];return A}var Xt={};function gr(e,i){var R=Xt.hasOwnProperty(e)?Xt[e]:Xt[e]={};W(i,R)}function Xr(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var R={};for(var A in i){var F=i[A];F instanceof Array&&(F=F.concat([])),R[A]=F}return R}function kn(e,i){for(var R;e.innerMode&&!(R=e.innerMode(i),!R||R.mode==e);)i=R.state,e=R.mode;return R||{mode:e,state:i}}function Ln(e,i,R){return e.startState?e.startState(i,R):!0}var tn=function(e,i,R){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=R};tn.prototype.eol=function(){return this.pos>=this.string.length},tn.prototype.sol=function(){return this.pos==this.lineStart},tn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tn.prototype.next=function(){if(this.posi},tn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tn.prototype.skipToEnd=function(){this.pos=this.string.length},tn.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},tn.prototype.backUp=function(e){this.pos-=e},tn.prototype.column=function(){return this.lastColumnPos0?null:(J&&i!==!1&&(this.pos+=J[0].length),J)}},tn.prototype.current=function(){return this.string.slice(this.start,this.pos)},tn.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},tn.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},tn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ur(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var R=e;!R.lines;)for(var A=0;;++A){var F=R.children[A],J=F.chunkSize();if(i=e.first&&iR?wt(R,ur(e,R).text.length):$(i,ur(e,i.line).text.length)}function $(e,i){var R=e.ch;return R==null||R>i?wt(e.line,i):R<0?wt(e.line,0):e}function ie(e,i){for(var R=[],A=0;Athis.maxLookAhead&&(this.maxLookAhead=e),i},se.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},se.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},se.fromSaved=function(e,i,R){return i instanceof de?new se(e,Xr(e.mode,i.state),R,i.lookAhead):new se(e,Xr(e.mode,i),R)},se.prototype.save=function(e){var i=e!==!1?Xr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new de(i,this.maxLookAhead):i};function Ke(e,i,R,A){var F=[e.state.modeGen],J={};Ei(e,i.text,e.doc.mode,R,function(we,Be){return F.push(we,Be)},J,A);for(var oe=R.state,he=function(we){R.baseTokens=F;var Be=e.state.overlays[we],Xe=1,ut=0;R.state=!0,Ei(e,i.text,Be.mode,R,function(ot,Ot){for(var Bt=Xe;utot&&F.splice(Xe,1,ot,F[Xe+1],Qt),Xe+=2,ut=Math.min(ot,Qt)}if(!Ot)return;if(Be.opaque)F.splice(Bt,Xe-Bt,ot,"overlay "+Ot),Xe=Bt+2;else for(;Bte.options.maxHighlightLength&&Xr(e.doc.mode,A.state),J=Ke(e,i,A);F&&(A.state=F),i.stateAfter=A.save(!F),i.styles=J.styles,J.classes?i.styleClasses=J.classes:i.styleClasses&&(i.styleClasses=null),R===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function Vt(e,i,R){var A=e.doc,F=e.display;if(!A.mode.startState)return new se(A,!0,i);var J=In(e,i,R),oe=J>A.first&&ur(A,J-1).stateAfter,he=oe?se.fromSaved(A,oe,J):new se(A,Ln(A.mode),J);return A.iter(J,i,function(ve){Er(e,ve.text,he);var we=he.line;ve.stateAfter=we==i-1||we%5==0||we>=F.viewFrom&&wei.start)return J}throw new Error("Mode "+e.name+" failed to advance stream.")}var Br=function(e,i,R){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=R};function En(e,i,R,A){var F=e.doc,J=F.mode,oe;i=z(F,i);var he=ur(F,i.line),ve=Vt(e,i.line,R),we=new tn(he.text,e.options.tabSize,ve),Be;for(A&&(Be=[]);(A||we.pose.options.maxHighlightLength?(he=!1,oe&&Er(e,i,A,Be.pos),Be.pos=i.length,Xe=null):Xe=ui(zr(R,Be,A.state,ut),J),ut){var ot=ut[0].name;ot&&(Xe="m-"+(Xe?ot+" "+Xe:ot))}if(!he||we!=Xe){for(;veoe;--he){if(he<=J.first)return J.first;var ve=ur(J,he-1),we=ve.stateAfter;if(we&&(!R||he+(we instanceof de?we.lookAhead:0)<=J.modeFrontier))return he;var Be=X(ve.text,null,e.options.tabSize);(F==null||A>Be)&&(F=he-1,A=Be)}return F}function Li(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),e.highlightFrontierR;A--){var F=ur(e,A).stateAfter;if(F&&(!(F instanceof de)||A+F.lookAhead=i:J.to>i);(A||(A=[])).push(new Fi(oe,J.from,ve?null:J.to))}}return A}function sa(e,i,R){var A;if(e)for(var F=0;F=i:J.to>i);if(he||J.from==i&&oe.type=="bookmark"&&(!R||J.marker.insertLeft)){var ve=J.from==null||(oe.inclusiveLeft?J.from<=i:J.from0&&he)for(var Rr=0;Rr0)continue;var Be=[ve,1],Xe=$t(we.from,he.from),ut=$t(we.to,he.to);(Xe<0||!oe.inclusiveLeft&&!Xe)&&Be.push({from:we.from,to:he.from}),(ut>0||!oe.inclusiveRight&&!ut)&&Be.push({from:he.to,to:we.to}),F.splice.apply(F,Be),ve+=Be.length-3}return F}function ta(e){var i=e.markedSpans;if(!i)return;for(var R=0;Ri)&&(!A||Ct(A,J.marker)<0)&&(A=J.marker)}return A}function dt(e,i,R,A,F){var J=ur(e,i),oe=ni&&J.markedSpans;if(oe)for(var he=0;he=0&&Xe<=0||Be<=0&&Xe>=0)continue;if(Be<=0&&(ve.marker.inclusiveRight&&F.inclusiveLeft?$t(we.to,R)>=0:$t(we.to,R)>0)||Be>=0&&(ve.marker.inclusiveRight&&F.inclusiveLeft?$t(we.from,A)<=0:$t(we.from,A)<0))return!0}}function At(e){for(var i;i=Pt(e);)e=i.find(-1,!0).line;return e}function Dt(e){for(var i;i=Ht(e);)e=i.find(1,!0).line;return e}function yr(e){for(var i,R;i=Ht(e);)e=i.find(1,!0).line,(R||(R=[])).push(e);return R}function tr(e,i){var R=ur(e,i),A=At(R);return R==A?i:Zr(A)}function qt(e,i){if(i>e.lastLine())return i;var R=ur(e,i),A;if(!Gt(e,R))return i;for(;A=Ht(R);)R=A.find(1,!0).line;return Zr(R)+1}function Gt(e,i){var R=ni&&i.markedSpans;if(R)for(var A=void 0,F=0;Fi.maxLineLength&&(i.maxLineLength=F,i.maxLine=A)})}var Fr=function(e,i,R){this.text=e,Tt(this,i),this.height=R?R(this):1};Fr.prototype.lineNo=function(){return Zr(this)},Ie(Fr);function Cr(e,i,R,A){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ta(e),Tt(e,R);var F=A?A(e):1;F!=e.height&&$n(e,F)}function rr(e){e.parent=null,ta(e)}var Et={},_t={};function xt(e,i){if(!e||/^\s*$/.test(e))return null;var R=i.addModeClass?_t:Et;return R[e]||(R[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,i){var R=M("span",null,null,d?"padding-right: .1px":null),A={pre:M("pre",[R],"CodeMirror-line"),content:R,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var F=0;F<=(i.rest?i.rest.length:0);F++){var J=F?i.rest[F-1]:i.line,oe=void 0;A.pos=0,A.addToken=dr,hr(e.display.measure)&&(oe=ht(J,e.doc.direction))&&(A.addToken=Dr(A.addToken,oe)),A.map=[];var he=i!=e.display.externalMeasured&&Zr(J);qe(J,A,Rt(e,J,he)),J.styleClasses&&(J.styleClasses.bgClass&&(A.bgClass=B(J.styleClasses.bgClass,A.bgClass||"")),J.styleClasses.textClass&&(A.textClass=B(J.styleClasses.textClass,A.textClass||""))),A.map.length==0&&A.map.push(0,0,A.content.appendChild(Ut(e.display.measure))),F==0?(i.measure.map=A.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(A.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(d){var ve=A.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(A.content.className="cm-tab-wrap-hack")}return Qe(e,"renderLine",e,i.line,A.pre),A.pre.className&&(A.textClass=B(A.pre.className,A.textClass||"")),A}function pr(e){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function dr(e,i,R,A,F,J,oe){if(!i)return;var he=e.splitSpaces?fr(i,e.trailingSpace):i,ve=e.cm.state.specialChars,we=!1,Be;if(!ve.test(i))e.col+=i.length,Be=document.createTextNode(he),e.map.push(e.pos,e.pos+i.length,Be),S&&b<9&&(we=!0),e.pos+=i.length;else{Be=document.createDocumentFragment();for(var Xe=0;;){ve.lastIndex=Xe;var ut=ve.exec(i),ot=ut?ut.index-Xe:i.length-Xe;if(ot){var Ot=document.createTextNode(he.slice(Xe,Xe+ot));S&&b<9?Be.appendChild(_("span",[Ot])):Be.appendChild(Ot),e.map.push(e.pos,e.pos+ot,Ot),e.col+=ot,e.pos+=ot}if(!ut)break;Xe+=ot+1;var Bt=void 0;if(ut[0]==" "){var Qt=e.cm.options.tabSize,ir=Qt-e.col%Qt;Bt=Be.appendChild(_("span",le(ir),"cm-tab")),Bt.setAttribute("role","presentation"),Bt.setAttribute("cm-text"," "),e.col+=ir}else ut[0]=="\r"||ut[0]==` +`?(Bt=Be.appendChild(_("span",ut[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bt.setAttribute("cm-text",ut[0]),e.col+=1):(Bt=e.cm.options.specialCharPlaceholder(ut[0]),Bt.setAttribute("cm-text",ut[0]),S&&b<9?Be.appendChild(_("span",[Bt])):Be.appendChild(Bt),e.col+=1);e.map.push(e.pos,e.pos+1,Bt),e.pos++}}if(e.trailingSpace=he.charCodeAt(i.length-1)==32,R||A||F||we||J||oe){var _r=R||"";A&&(_r+=A),F&&(_r+=F);var ar=_("span",[Be],_r,J);if(oe)for(var Rr in oe)oe.hasOwnProperty(Rr)&&Rr!="style"&&Rr!="class"&&ar.setAttribute(Rr,oe[Rr]);return e.content.appendChild(ar)}e.content.appendChild(Be)}function fr(e,i){if(e.length>1&&!/ /.test(e))return e;for(var R=i,A="",F=0;Fwe&&Xe.from<=we);ut++);if(Xe.to>=Be)return e(R,A,F,J,oe,he,ve);e(R,A.slice(0,Xe.to-we),F,J,null,he,ve),J=null,A=A.slice(Xe.to-we),we=Xe.to}}}function an(e,i,R,A){var F=!A&&R.widgetNode;F&&e.map.push(e.pos,e.pos+i,F),!A&&e.cm.display.input.needsContentAttribute&&(F||(F=e.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",R.id)),F&&(e.cm.display.input.setUneditable(F),e.content.appendChild(F)),e.pos+=i,e.trailingSpace=!1}function qe(e,i,R){var A=e.markedSpans,F=e.text,J=0;if(!A){for(var oe=1;oeve||wn.collapsed&&Gr.to==ve&&Gr.from==ve)){if(Gr.to!=null&&Gr.to!=ve&&ot>Gr.to&&(ot=Gr.to,Bt=""),wn.className&&(Ot+=" "+wn.className),wn.css&&(ut=(ut?ut+";":"")+wn.css),wn.startStyle&&Gr.from==ve&&(Qt+=" "+wn.startStyle),wn.endStyle&&Gr.to==ot&&(Rr||(Rr=[])).push(wn.endStyle,Gr.to),wn.title&&((_r||(_r={})).title=wn.title),wn.attributes)for(var Zn in wn.attributes)(_r||(_r={}))[Zn]=wn.attributes[Zn];wn.collapsed&&(!ir||Ct(ir.marker,wn)<0)&&(ir=Gr)}else Gr.from>ve&&ot>Gr.from&&(ot=Gr.from)}if(Rr)for(var Ai=0;Ai=he)break;for(var ea=Math.min(he,ot);;){if(Be){var Ji=ve+Be.length;if(!ir){var yi=Ji>ea?Be.slice(0,ea-ve):Be;i.addToken(i,yi,Xe?Xe+Ot:Ot,Qt,ve+yi.length==ot?Bt:"",ut,_r)}if(Ji>=ea){Be=Be.slice(ea-ve),ve=ea;break}ve=Ji,Qt=""}Be=F.slice(J,J=R[we++]),Xe=xt(R[we++],i.cm.options)}}}function sr(e,i,R){this.line=i,this.rest=yr(i),this.size=this.rest?Zr(re(this.rest))-R+1:1,this.node=this.text=null,this.hidden=Gt(e,i)}function Nr(e,i,R){for(var A=[],F,J=i;J2&&J.push((ve.bottom+we.top)/2-R.top)}}J.push(R.bottom-R.top)}}function _e(e,i,R){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};for(var A=0;AR)return{map:e.measure.maps[F],cache:e.measure.caches[F],before:!0}}function je(e,i){i=At(i);var R=Zr(i),A=e.display.externalMeasured=new sr(e.doc,i,R);A.lineN=R;var F=A.built=Jt(e,A);return A.text=F.pre,y(e.display.lineMeasure,F.pre),A}function ze(e,i,R,A){return Ze(e,We(e,i),R,A)}function Ve(e,i){if(i>=e.display.viewFrom&&i=R.lineN&&ii)&&(J=ve-he,F=J-1,i>=ve&&(oe="right")),F!=null){if(A=e[we+2],he==ve&&R==(A.insertLeft?"left":"right")&&(oe=R),R=="left"&&F==0)for(;we&&e[we-2]==e[we-3]&&e[we-1].insertLeft;)A=e[(we-=3)+2],oe="left";if(R=="right"&&F==ve-he)for(;we=0&&!((R=e[F]).left!=R.right);F--);return R}function Yt(e,i,R,A){var F=kt(i.map,R,A),J=F.node,oe=F.start,he=F.end,ve=F.collapse,we;if(J.nodeType==3){for(var Be=0;Be<4;Be++){for(;oe&&ge(i.line.text.charAt(F.coverStart+oe));)--oe;for(;F.coverStart+he0&&(ve=A="right");var Xe;e.options.lineWrapping&&(Xe=J.getClientRects()).length>1?we=Xe[A=="right"?Xe.length-1:0]:we=J.getBoundingClientRect()}if(S&&b<9&&!oe&&(!we||!we.left&&!we.right)){var ut=J.parentNode.getClientRects()[0];ut?we={left:ut.left,right:ut.left+ci(e.display),top:ut.top,bottom:ut.bottom}:we=pt}for(var ot=we.top-i.rect.top,Ot=we.bottom-i.rect.top,Bt=(ot+Ot)/2,Qt=i.view.measure.heights,ir=0;ir=A.text.length?(ve=A.text.length,we="before"):ve<=0&&(ve=0,we="after"),!he)return oe(we=="before"?ve-1:ve,we=="before");function Be(Ot,Bt,Qt){var ir=he[Bt],_r=ir.level==1;return oe(Qt?Ot-1:Ot,_r!=Qt)}var Xe=at(he,ve,we),ut=nt,ot=Be(ve,Xe,we=="before");return ut!=null&&(ot.other=Be(ve,ut,we!="before")),ot}function jr(e,i){var R=0;i=z(e.doc,i),e.options.lineWrapping||(R=ci(e.display)*i.ch);var A=ur(e.doc,i.line),F=cr(A)+ei(e.display);return{left:R,right:R,top:F,bottom:F+A.height}}function Wr(e,i,R,A,F){var J=wt(e,i,R);return J.xRel=F,A&&(J.outside=A),J}function dn(e,i,R){var A=e.doc;if(R+=e.display.viewOffset,R<0)return Wr(A.first,0,null,-1,-1);var F=Bn(A,R),J=A.first+A.size-1;if(F>J)return Wr(A.first+A.size-1,ur(A,J).text.length,null,1,1);i<0&&(i=0);for(var oe=ur(A,F);;){var he=Yn(e,oe,F,i,R),ve=Wt(oe,he.ch+(he.xRel>0||he.outside>0?1:0));if(!ve)return he;var we=ve.find(1);if(we.line==F)return we;oe=ur(A,F=we.line)}}function bn(e,i,R,A){A-=ln(i);var F=i.text.length,J=Je(function(oe){return Ze(e,R,oe-1).bottom<=A},F,0);return F=Je(function(oe){return Ze(e,R,oe).top>A},J,F),{begin:J,end:F}}function Tr(e,i,R,A){R||(R=We(e,i));var F=xn(e,i,Ze(e,R,A),"line").top;return bn(e,i,R,F)}function Sn(e,i,R,A){return e.bottom<=R?!1:e.top>R?!0:(A?e.left:e.right)>i}function Yn(e,i,R,A,F){F-=cr(i);var J=We(e,i),oe=ln(i),he=0,ve=i.text.length,we=!0,Be=ht(i,e.doc.direction);if(Be){var Xe=(e.options.lineWrapping?Wn:Rn)(e,i,R,J,Be,A,F);we=Xe.level!=1,he=we?Xe.from:Xe.to-1,ve=we?Xe.to:Xe.from-1}var ut=null,ot=null,Ot=Je(function(qr){var Gr=Ze(e,J,qr);return Gr.top+=oe,Gr.bottom+=oe,Sn(Gr,A,F,!1)?(Gr.top<=F&&Gr.left<=A&&(ut=qr,ot=Gr),!0):!1},he,ve),Bt,Qt,ir=!1;if(ot){var _r=A-ot.left=Rr.bottom?1:0}return Ot=Te(i.text,Ot,1),Wr(R,Ot,Qt,ir,A-Bt)}function Rn(e,i,R,A,F,J,oe){var he=Je(function(Xe){var ut=F[Xe],ot=ut.level!=1;return Sn(pn(e,wt(R,ot?ut.to:ut.from,ot?"before":"after"),"line",i,A),J,oe,!0)},0,F.length-1),ve=F[he];if(he>0){var we=ve.level!=1,Be=pn(e,wt(R,we?ve.from:ve.to,we?"after":"before"),"line",i,A);Sn(Be,J,oe,!0)&&Be.top>oe&&(ve=F[he-1])}return ve}function Wn(e,i,R,A,F,J,oe){var he=bn(e,i,A,oe),ve=he.begin,we=he.end;/\s/.test(i.text.charAt(we-1))&&we--;for(var Be=null,Xe=null,ut=0;ut=we||ot.to<=ve)continue;var Ot=ot.level!=1,Bt=Ze(e,A,Ot?Math.min(we,ot.to)-1:Math.max(ve,ot.from)).right,Qt=BtQt)&&(Be=ot,Xe=Qt)}return Be||(Be=F[F.length-1]),Be.fromwe&&(Be={from:Be.from,to:we,level:Be.level}),Be}var Dn;function ti(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Dn==null){Dn=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Dn.appendChild(document.createTextNode("x")),Dn.appendChild(_("br"));Dn.appendChild(document.createTextNode("x"))}y(e.measure,Dn);var R=Dn.offsetHeight/50;return R>3&&(e.cachedTextHeight=R),x(e.measure),R||1}function ci(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=_("span","xxxxxxxxxx"),R=_("pre",[i],"CodeMirror-line-like");y(e.measure,R);var A=i.getBoundingClientRect(),F=(A.right-A.left)/10;return F>2&&(e.cachedCharWidth=F),F||10}function Jn(e){for(var i=e.display,R={},A={},F=i.gutters.clientLeft,J=i.gutters.firstChild,oe=0;J;J=J.nextSibling,++oe){var he=e.display.gutterSpecs[oe].className;R[he]=J.offsetLeft+J.clientLeft+F,A[he]=J.clientWidth}return{fixedPos:gi(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:R,gutterWidth:A,wrapperWidth:i.wrapper.clientWidth}}function gi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Xi(e){var i=ti(e.display),R=e.options.lineWrapping,A=R&&Math.max(5,e.display.scroller.clientWidth/ci(e.display)-3);return function(F){if(Gt(e.doc,F))return 0;var J=0;if(F.widgets)for(var oe=0;oe0&&(we=ur(e.doc,ve.line).text).length==ve.ch){var Be=X(we,we.length,e.options.tabSize)-we.length;ve=wt(ve.line,Math.max(0,Math.round((J-Ge(e.display).left)/ci(e.display))-Be))}return ve}function Hn(e,i){if(i>=e.display.viewTo)return null;if(i-=e.display.viewFrom,i<0)return null;for(var R=e.display.view,A=0;Ai)&&(F.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=F.viewTo)ni&&tr(e.doc,i)F.viewFrom?Vn(e):(F.viewFrom+=A,F.viewTo+=A);else if(i<=F.viewFrom&&R>=F.viewTo)Vn(e);else if(i<=F.viewFrom){var J=ii(e,R,R+A,1);J?(F.view=F.view.slice(J.index),F.viewFrom=J.lineN,F.viewTo+=A):Vn(e)}else if(R>=F.viewTo){var oe=ii(e,i,i,-1);oe?(F.view=F.view.slice(0,oe.index),F.viewTo=oe.lineN):Vn(e)}else{var he=ii(e,i,i,-1),ve=ii(e,R,R+A,1);he&&ve?(F.view=F.view.slice(0,he.index).concat(Nr(e,he.lineN,ve.lineN)).concat(F.view.slice(ve.index)),F.viewTo+=A):Vn(e)}var we=F.externalMeasured;we&&(R=F.lineN&&i=A.viewTo)return;var J=A.view[Hn(e,i)];if(J.node==null)return;var oe=J.changes||(J.changes=[]);fe(oe,R)==-1&&oe.push(R)}function Vn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ii(e,i,R,A){var F=Hn(e,i),J,oe=e.display.view;if(!ni||R==e.doc.first+e.doc.size)return{index:F,lineN:R};for(var he=e.display.viewFrom,ve=0;ve0){if(F==oe.length-1)return null;J=he+oe[F].size-i,F++}else J=he-i;i+=J,R+=J}for(;tr(e.doc,R)!=R;){if(F==(A<0?0:oe.length-1))return null;R+=A*oe[F-(A<0?1:0)].size,F+=A}return{index:F,lineN:R}}function Di(e,i,R){var A=e.display,F=A.view;F.length==0||i>=A.viewTo||R<=A.viewFrom?(A.view=Nr(e,i,R),A.viewFrom=i):(A.viewFrom>i?A.view=Nr(e,i,A.viewFrom).concat(A.view):A.viewFromR&&(A.view=A.view.slice(0,Hn(e,R)))),A.viewTo=R}function ra(e){for(var i=e.display.view,R=0,A=0;A=e.display.viewTo||he.to().line0?i.blinker=setInterval(function(){e.hasFocus()||ua(e),i.cursorDiv.style.visibility=(R=!R)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}function Ba(e){e.state.focused||(e.display.input.focus(),la(e))}function wa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,ua(e))},100)}function la(e,i){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Qe(e,"focus",e,i),e.state.focused=!0,H(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),d&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ai(e)}function ua(e,i){if(e.state.delayingBlurEvent)return;e.state.focused&&(Qe(e,"blur",e,i),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function ka(e){for(var i=e.display,R=i.lineDiv.offsetTop,A=0;A.005||Be<-.005)&&($n(F.line,oe),Sa(F.line),F.rest))for(var Xe=0;Xee.display.sizerWidth){var ut=Math.ceil(he/ci(e.display));ut>e.display.maxLineLength&&(e.display.maxLineLength=ut,e.display.maxLine=F.line,e.display.maxLineChanged=!0)}}}function Sa(e){if(e.widgets)for(var i=0;i=oe&&(J=Bn(i,cr(ur(i,ve))-e.wrapper.clientHeight),oe=ve)}return{from:J,to:Math.max(oe,J+1)}}function Wa(e,i){if(lt(e,"scrollCursorIntoView"))return;var R=e.display,A=R.sizer.getBoundingClientRect(),F=null;if(i.top+A.top<0?F=!0:i.bottom+A.top>(window.innerHeight||document.documentElement.clientHeight)&&(F=!1),F!=null&&!h){var J=S("div","\u200B",null,`position: absolute; + height: `+(Gr-Rr)+"px"))}function Xe(ar,Rr,qr){var Gr=ur(F,ar),wn=Gr.text.length,Zn,Ai;function oi(yi,Qi){return jn(e,wt(ar,yi),"div",Gr,Qi)}function ea(yi,Qi,ki){var Si=Tr(e,Gr,null,yi),bi=Qi=="ltr"==(ki=="after")?"left":"right",fi=ki=="after"?Si.begin:Si.end-(/\s/.test(Gr.text.charAt(Si.end-1))?2:1);return oi(fi,bi)[bi]}var Ji=ht(Gr,F.direction);return rt(Ji,Rr||0,qr==null?wn:qr,function(yi,Qi,ki,Si){var bi=ki=="ltr",fi=oi(yi,bi?"left":"right"),Zi=oi(Qi-1,bi?"right":"left"),lo=Rr==null&&yi==0,Ua=qr==null&&Qi==wn,ji=Si==0,Ca=!Ji||Si==Ji.length-1;if(Zi.top-fi.top<=3){var Ri=(we?lo:Ua)&&ji,ps=(we?Ua:lo)&&Ca,Pa=Ri?he:(bi?fi:Zi).left,Ga=ps?ve:(bi?Zi:fi).right;Be(Pa,fi.top,Ga-Pa,fi.bottom)}else{var Va,Ki,uo,ms;bi?(Va=we&&lo&&ji?he:fi.left,Ki=we?ve:ea(yi,ki,"before"),uo=we?he:ea(Qi,ki,"after"),ms=we&&Ua&&Ca?ve:Zi.right):(Va=we?ea(yi,ki,"before"):he,Ki=!we&&lo&&ji?ve:fi.right,uo=!we&&Ua&&Ca?he:Zi.left,ms=we?ea(Qi,ki,"after"):ve),Be(Va,fi.top,Ki-Va,fi.bottom),fi.bottom0?i.blinker=setInterval(function(){e.hasFocus()||ua(e),i.cursorDiv.style.visibility=(R=!R)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}function Ba(e){e.state.focused||(e.display.input.focus(),la(e))}function wa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,ua(e))},100)}function la(e,i){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Qe(e,"focus",e,i),e.state.focused=!0,H(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),d&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ai(e)}function ua(e,i){if(e.state.delayingBlurEvent)return;e.state.focused&&(Qe(e,"blur",e,i),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function ka(e){for(var i=e.display,R=i.lineDiv.offsetTop,A=0;A.005||Be<-.005)&&($n(F.line,oe),_a(F.line),F.rest))for(var Xe=0;Xee.display.sizerWidth){var ut=Math.ceil(he/ci(e.display));ut>e.display.maxLineLength&&(e.display.maxLineLength=ut,e.display.maxLine=F.line,e.display.maxLineChanged=!0)}}}function _a(e){if(e.widgets)for(var i=0;i=oe&&(J=Bn(i,cr(ur(i,ve))-e.wrapper.clientHeight),oe=ve)}return{from:J,to:Math.max(oe,J+1)}}function Wa(e,i){if(lt(e,"scrollCursorIntoView"))return;var R=e.display,A=R.sizer.getBoundingClientRect(),F=null;if(i.top+A.top<0?F=!0:i.bottom+A.top>(window.innerHeight||document.documentElement.clientHeight)&&(F=!1),F!=null&&!h){var J=_("div","\u200B",null,`position: absolute; top: `+(i.top-R.viewOffset-ei(e.display))+`px; height: `+(i.bottom-i.top+Ye(e)+R.barHeight)+`px; - left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(J),J.scrollIntoView(F),e.display.lineSpace.removeChild(J)}}function Xa(e,i,R,A){A==null&&(A=0);var F;!e.options.lineWrapping&&i==R&&(i=i.ch?wt(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i,R=i.sticky=="before"?wt(i.line,i.ch+1,"before"):i);for(var J=0;J<5;J++){var oe=!1,he=pn(e,i),ve=!R||R==i?he:pn(e,R);F={left:Math.min(he.left,ve.left),top:Math.min(he.top,ve.top)-A,right:Math.max(he.left,ve.left),bottom:Math.max(he.bottom,ve.bottom)+A};var we=ca(e,F),Be=e.doc.scrollTop,Xe=e.doc.scrollLeft;if(we.scrollTop!=null&&(fa(e,we.scrollTop),Math.abs(e.doc.scrollTop-Be)>1&&(oe=!0)),we.scrollLeft!=null&&($i(e,we.scrollLeft),Math.abs(e.doc.scrollLeft-Xe)>1&&(oe=!0)),!oe)break}return F}function Ma(e,i){var R=ca(e,i);R.scrollTop!=null&&fa(e,R.scrollTop),R.scrollLeft!=null&&$i(e,R.scrollLeft)}function ca(e,i){var R=e.display,A=ti(e.display);i.top<0&&(i.top=0);var F=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:R.scroller.scrollTop,J=Ee(e),oe={};i.bottom-i.top>J&&(i.bottom=i.top+J);var he=e.doc.height+Me(R),ve=i.tophe-A;if(i.topF+J){var Be=Math.min(i.top,(we?he:i.bottom)-J);Be!=F&&(oe.scrollTop=Be)}var Xe=e.options.fixedGutter?0:R.gutters.offsetWidth,ut=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:R.scroller.scrollLeft-Xe,ot=Fe(e)-R.gutters.offsetWidth,Ot=i.right-i.left>ot;return Ot&&(i.right=i.left+ot),i.left<10?oe.scrollLeft=0:i.leftot+ut-3&&(oe.scrollLeft=i.right+(Ot?0:10)-ot),oe}function _a(e,i){if(i==null)return;Ea(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i}function ba(e){Ea(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function da(e,i,R){(i!=null||R!=null)&&Ea(e),i!=null&&(e.curOp.scrollLeft=i),R!=null&&(e.curOp.scrollTop=R)}function co(e,i){Ea(e),e.curOp.scrollToPos=i}function Ea(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var R=jr(e,i.from),A=jr(e,i.to);Ta(e,R,A,i.margin)}}function Ta(e,i,R,A){var F=ca(e,{left:Math.min(i.left,R.left),top:Math.min(i.top,R.top)-A,right:Math.max(i.right,R.right),bottom:Math.max(i.bottom,R.bottom)+A});da(e,F.scrollLeft,F.scrollTop)}function fa(e,i){if(Math.abs(e.doc.scrollTop-i)<2)return;T||za(e,{top:i}),ha(e,i,!0),T&&za(e),Ha(e,100)}function ha(e,i,R){if(i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),e.display.scroller.scrollTop==i&&!R)return;e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i)}function $i(e,i,R,A){if(i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(R?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!A)return;e.doc.scrollLeft=i,An(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i)}function na(e){var i=e.display,R=i.gutters.offsetWidth,A=Math.round(e.doc.height+Me(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?R:0,docHeight:A,scrollHeight:A+Ye(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:R}}var _r=function(e,i,R){this.cm=R;var A=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");A.tabIndex=F.tabIndex=-1,e(A),e(F),Re(A,"scroll",function(){A.clientHeight&&i(A.scrollTop,"vertical")}),Re(F,"scroll",function(){F.clientWidth&&i(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,_&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};_r.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,R=e.scrollHeight>e.clientHeight+1,A=e.nativeBarWidth;if(R){this.vert.style.display="block",this.vert.style.bottom=i?A+"px":"0";var F=e.viewHeight-(i?A:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+F)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=R?A+"px":"0",this.horiz.style.left=e.barLeft+"px";var J=e.viewWidth-e.barLeft-(R?A:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+J)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(A==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:R?A:0,bottom:i?A:0}},_r.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},_r.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},_r.prototype.zeroWidthHack=function(){var e=a&&!o?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},_r.prototype.enableZeroWidthBar=function(e,i,R){e.style.pointerEvents="auto";function A(){var F=e.getBoundingClientRect(),J=R=="vert"?document.elementFromPoint(F.right-1,(F.top+F.bottom)/2):document.elementFromPoint((F.right+F.left)/2,F.bottom-1);J!=e?e.style.pointerEvents="none":i.set(1e3,A)}i.set(1e3,A)},_r.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Or=function(){};Or.prototype.update=function(){return{bottom:0,right:0}},Or.prototype.setScrollLeft=function(){},Or.prototype.setScrollTop=function(){},Or.prototype.clear=function(){};function lr(e,i){i||(i=na(e));var R=e.display.barWidth,A=e.display.barHeight;Tn(e,i);for(var F=0;F<4&&R!=e.display.barWidth||A!=e.display.barHeight;F++)R!=e.display.barWidth&&e.options.lineWrapping&&ka(e),Tn(e,na(e)),R=e.display.barWidth,A=e.display.barHeight}function Tn(e,i){var R=e.display,A=R.scrollbars.update(i);R.sizer.style.paddingRight=(R.barWidth=A.right)+"px",R.sizer.style.paddingBottom=(R.barHeight=A.bottom)+"px",R.heightForcer.style.borderBottom=A.bottom+"px solid transparent",A.right&&A.bottom?(R.scrollbarFiller.style.display="block",R.scrollbarFiller.style.height=A.bottom+"px",R.scrollbarFiller.style.width=A.right+"px"):R.scrollbarFiller.style.display="",A.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(R.gutterFiller.style.display="block",R.gutterFiller.style.height=A.bottom+"px",R.gutterFiller.style.width=i.gutterWidth+"px"):R.gutterFiller.style.display=""}var vr={native:_r,null:Or};function pa(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new vr[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),Re(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,R){R=="horizontal"?$i(e,i):fa(e,i)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var $a=0;function Kn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$a},xr(e.curOp)}function Oa(e){var i=e.curOp;i&&Pr(i,function(R){for(var A=0;A=R.viewTo)||R.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new ia(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qo(e){e.updatedDisplay=e.mustUpdate&&Aa(e.cm,e.update)}function Zo(e){var i=e.cm,R=i.display;e.updatedDisplay&&ka(i),e.barMeasure=na(i),R.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=ze(i,R.maxLine,R.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(R.scroller.clientWidth,R.sizer.offsetLeft+e.adjustWidthTo+Ye(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,R.sizer.offsetLeft+e.adjustWidthTo-Fe(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=R.input.prepareSelection())}function fo(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var R=+new Date+e.options.workTime,A=Vt(e,i.highlightFrontier),F=[];i.iter(A.line,Math.min(i.first+i.size,e.display.viewTo+500),function(J){if(A.line>=e.display.viewFrom){var oe=J.styles,he=J.text.length>e.options.maxHighlightLength?Xr(i.mode,A.state):null,ve=Ke(e,J,A,!0);he&&(A.state=he),J.styles=ve.styles;var we=J.styleClasses,Be=ve.classes;Be?J.styleClasses=Be:we&&(J.styleClasses=null);for(var Xe=!oe||oe.length!=J.styles.length||we!=Be&&(!we||!Be||we.bgClass!=Be.bgClass||we.textClass!=Be.textClass),ut=0;!Xe&&utR)return Ha(e,e.options.workDelay),!0}),i.highlightFrontier=A.line,i.modeFrontier=Math.max(i.modeFrontier,A.line),F.length&&Wi(e,function(){for(var J=0;J=R.viewFrom&&i.visible.to<=R.viewTo&&(R.updateLineNumbers==null||R.updateLineNumbers>=R.viewTo)&&R.renderedView==R.view&&ra(e)==0)return!1;wi(e)&&(Vn(e),i.dims=Jn(e));var F=A.first+A.size,J=Math.max(i.visible.from-e.options.viewportMargin,A.first),oe=Math.min(F,i.visible.to+e.options.viewportMargin);R.viewFromoe&&R.viewTo-oe<20&&(oe=Math.min(F,R.viewTo)),ni&&(J=tr(e.doc,J),oe=qt(e.doc,oe));var he=J!=R.viewFrom||oe!=R.viewTo||R.lastWrapHeight!=i.wrapperHeight||R.lastWrapWidth!=i.wrapperWidth;Di(e,J,oe),R.viewOffset=cr(ur(e.doc,R.viewFrom)),e.display.mover.style.top=R.viewOffset+"px";var ve=ra(e);if(!he&&ve==0&&!i.force&&R.renderedView==R.view&&(R.updateLineNumbers==null||R.updateLineNumbers>=R.viewTo))return!1;var we=ko(e);return ve>4&&(R.lineDiv.style.display="none"),Mo(e,R.updateLineNumbers,i.dims),ve>4&&(R.lineDiv.style.display=""),R.renderedView=R.view,Lo(we),x(R.cursorDiv),x(R.selectionDiv),R.gutters.style.height=R.sizer.style.minHeight=0,he&&(R.lastWrapHeight=i.wrapperHeight,R.lastWrapWidth=i.wrapperWidth,Ha(e,400)),R.updateLineNumbers=null,!0}function Ya(e,i){for(var R=i.viewport,A=!0;;A=!1){if(!A||!e.options.lineWrapping||i.oldDisplayWidth==Fe(e)){if(R&&R.top!=null&&(R={top:Math.min(e.doc.height+Me(e.display)-Ee(e),R.top)}),i.visible=La(e.display,e.doc,R),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else A&&(i.visible=La(e.display,e.doc,R));if(!Aa(e,i))break;ka(e);var F=na(e);Mn(e),lr(e,F),Un(e,F),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function za(e,i){var R=new ia(e,i);if(Aa(e,R)){ka(e),Ya(e,R);var A=na(e);Mn(e),lr(e,A),Un(e,A),R.finish()}}function Mo(e,i,R){var A=e.display,F=e.options.lineNumbers,J=A.lineDiv,oe=J.firstChild;function he(Ot){var Bt=Ot.nextSibling;return d&&a&&e.display.currentWheelTarget==Ot?Ot.style.display="none":Ot.parentNode.removeChild(Ot),Bt}for(var ve=A.view,we=A.viewFrom,Be=0;Be-1&&(ot=!1),er(e,Xe,we,R)),ot&&(x(Xe.lineNumber),Xe.lineNumber.appendChild(document.createTextNode(li(e.options,we)))),oe=Xe.node.nextSibling}we+=Xe.size}for(;oe;)oe=he(oe)}function Ja(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px"}function Un(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+Ye(e)+"px"}function An(e){var i=e.display,R=i.view;if(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))return;for(var A=gi(i)-i.scroller.scrollLeft+e.doc.scrollLeft,F=i.gutters.offsetWidth,J=A+"px",oe=0;oeoe.clientWidth,ve=oe.scrollHeight>oe.clientHeight;if(!(A&&he||F&&ve))return;if(F&&a&&d){e:for(var we=i.target,Be=J.view;we!=oe;we=we.parentNode)for(var Xe=0;Xe=0&&$t(e,A.to())<=0)return R}return-1};var Nn=function(e,i){this.anchor=e,this.head=i};Nn.prototype.from=function(){return On(this.anchor,this.head)},Nn.prototype.to=function(){return Sn(this.anchor,this.head)},Nn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function aa(e,i,R){var A=e&&e.options.selectionsMayTouch,F=i[R];i.sort(function(ut,ot){return $t(ut.from(),ot.from())}),R=fe(i,F);for(var J=1;J0:ve>=0){var we=On(he.from(),oe.from()),Be=Sn(he.to(),oe.to()),Xe=he.empty()?oe.from()==oe.head:he.from()==he.head;J<=R&&--R,i.splice(--J,2,new Nn(Xe?Be:we,Xe?we:Be))}}return new zi(i,R)}function va(e,i){return new zi([new Nn(e,i||e)],0)}function ga(e){return e.text?wt(e.from.line+e.text.length-1,re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function mo(e,i){if($t(e,i.from)<0)return e;if($t(e,i.to)<=0)return ga(i);var R=e.line+i.text.length-(i.to.line-i.from.line)-1,A=e.ch;return e.line==i.to.line&&(A+=ga(i).ch-i.to.ch),wt(R,A)}function Za(e,i){for(var R=[],A=0;A1&&e.remove(he.line+1,Ot-1),e.insert(he.line+1,ir)}Zt(e,"change",e,i)}function Na(e,i,R){function A(F,J,oe){if(F.linked)for(var he=0;he1&&!e.done[e.done.length-2].ranges)return e.done.pop(),re(e.done)}function Es(e,i,R,A){var F=e.history;F.undone.length=0;var J=+new Date,oe,he;if((F.lastOp==A||F.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&F.lastModTime>J-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(oe=ml(F,F.lastOp==A)))he=re(oe.changes),$t(i.from,i.to)==0&&$t(i.from,he.to)==0?he.to=ga(i):oe.changes.push(rs(e,i));else{var ve=re(F.done);for((!ve||!ve.ranges)&&Fo(e.sel,F.done),oe={changes:[rs(e,i)],generation:F.generation},F.done.push(oe);F.done.length>F.undoDepth;)F.done.shift(),F.done[0].ranges||F.done.shift()}F.done.push(R),F.generation=++F.maxGeneration,F.lastModTime=F.lastSelTime=J,F.lastOp=F.lastSelOp=A,F.lastOrigin=F.lastSelOrigin=i.origin,he||Qe(e,"historyAdded")}function vl(e,i,R,A){var F=i.charAt(0);return F=="*"||F=="+"&&R.ranges.length==A.ranges.length&&R.somethingSelected()==A.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,i,R,A){var F=e.history,J=A&&A.origin;R==F.lastSelOp||J&&F.lastSelOrigin==J&&(F.lastModTime==F.lastSelTime&&F.lastOrigin==J||vl(e,J,re(F.done),i))?F.done[F.done.length-1]=i:Fo(i,F.done),F.lastSelTime=+new Date,F.lastSelOrigin=J,F.lastSelOp=R,A&&A.clearRedo!==!1&&bs(F.undone)}function Fo(e,i){var R=re(i);R&&R.ranges&&R.equals(e)||i.push(e)}function xs(e,i,R,A){var F=i["spans_"+e.id],J=0;e.iter(Math.max(e.first,R),Math.min(e.first+e.size,A),function(oe){oe.markedSpans&&((F||(F=i["spans_"+e.id]={}))[J]=oe.markedSpans),++J})}function yl(e){if(!e)return null;for(var i,R=0;R-1&&(re(he)[Xe]=we[Xe],delete we[Xe]))}}return A}function ns(e,i,R,A){if(A){var F=e.anchor;if(R){var J=$t(i,F)<0;J!=$t(R,F)<0?(F=i,i=R):J!=$t(i,R)<0&&(i=R)}return new Nn(F,i)}else return new Nn(R||i,i)}function Uo(e,i,R,A,F){F==null&&(F=e.cm&&(e.cm.display.shift||e.extend)),Ni(e,new zi([ns(e.sel.primary(),i,R,F)],0),A)}function ws(e,i,R){for(var A=[],F=e.cm&&(e.cm.display.shift||e.extend),J=0;J=i.ch:he.to>i.ch))){if(F&&(Qe(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(J.markedSpans){--oe;continue}else break;if(!ve.atomic)continue;if(R){var Xe=ve.find(A<0?1:-1),ut=void 0;if((A<0?Be:we)&&(Xe=Rs(e,Xe,-A,Xe&&Xe.line==i.line?J:null)),Xe&&Xe.line==i.line&&(ut=$t(Xe,R))&&(A<0?ut<0:ut>0))return eo(e,Xe,i,A,F)}var ot=ve.find(A<0?-1:1);return(A<0?we:Be)&&(ot=Rs(e,ot,A,ot.line==i.line?J:null)),ot?eo(e,ot,i,A,F):null}}return i}function Wo(e,i,R,A,F){var J=A||1,oe=eo(e,i,R,J,F)||!F&&eo(e,i,R,J,!0)||eo(e,i,R,-J,F)||!F&&eo(e,i,R,-J,!0);return oe||(e.cantEdit=!0,wt(e.first,0))}function Rs(e,i,R,A){return R<0&&i.ch==0?i.line>e.first?z(e,wt(i.line-1)):null:R>0&&i.ch==(A||ur(e,i.line)).text.length?i.line=0;--F)ks(e,{from:A[F].from,to:A[F].to,text:F?[""]:i.text,origin:i.origin});else ks(e,i)}function ks(e,i){if(i.text.length==1&&i.text[0]==""&&$t(i.from,i.to)==0)return;var R=Za(e,i);Es(e,i,R,e.cm?e.cm.curOp.id:NaN),go(e,i,R,Ii(e,i));var A=[];Na(e,function(F,J){!J&&fe(A,F.history)==-1&&(Ns(F.history,i),A.push(F.history)),go(F,i,null,Ii(F,i))})}function Ho(e,i,R){var A=e.cm&&e.cm.state.suppressEdits;if(A&&!R)return;for(var F=e.history,J,oe=e.sel,he=i=="undo"?F.done:F.undone,ve=i=="undo"?F.undone:F.done,we=0;we=0;--ot){var Ot=ut(ot);if(Ot)return Ot.v}}function Ls(e,i){if(i==0)return;if(e.first+=i,e.sel=new zi(pe(e.sel.ranges,function(F){return new Nn(wt(F.anchor.line+i,F.anchor.ch),wt(F.head.line+i,F.head.ch))}),e.sel.primIndex),e.cm){zn(e.cm,e.first,e.first-i,i);for(var R=e.cm.display,A=R.viewFrom;Ae.lastLine())return;if(i.from.lineJ&&(i={from:i.from,to:wt(J,ur(e,J).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Xn(e,i.from,i.to),R||(R=Za(e,i)),e.cm?xl(e.cm,i,A):ts(e,i,A),Bo(e,R,De),e.cantEdit&&Wo(e,wt(e.firstLine(),0))&&(e.cantEdit=!1)}function xl(e,i,R){var A=e.doc,F=e.display,J=i.from,oe=i.to,he=!1,ve=J.line;e.options.lineWrapping||(ve=Zr(At(ur(A,J.line))),A.iter(ve,oe.line+1,function(ot){if(ot==F.maxLine)return he=!0,!0})),A.sel.contains(i.from,i.to)>-1&&Ue(e),ts(A,i,R,Xi(e)),e.options.lineWrapping||(A.iter(ve,J.line+i.text.length,function(ot){var Ot=st(ot);Ot>F.maxLineLength&&(F.maxLine=ot,F.maxLineLength=Ot,F.maxLineChanged=!0,he=!1)}),he&&(e.curOp.updateMaxLine=!0)),Li(A,J.line),Ha(e,400);var we=i.text.length-(oe.line-J.line)-1;i.full?zn(e):J.line==oe.line&&i.text.length==1&&!vs(e.doc,i)?Qn(e,J.line,"text"):zn(e,J.line,oe.line+1,we);var Be=Le(e,"changes"),Xe=Le(e,"change");if(Xe||Be){var ut={from:J,to:oe,text:i.text,removed:i.removed,origin:i.origin};Xe&&Zt(e,"change",e,ut),Be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ut)}e.display.selForContextMenu=null}function ro(e,i,R,A,F){var J;A||(A=R),$t(A,R)<0&&(J=[A,R],R=J[0],A=J[1]),typeof i=="string"&&(i=e.splitLines(i)),to(e,{from:R,to:A,text:i,origin:F})}function Ms(e,i,R,A){R1||!(this.children[0]instanceof bo))){var he=[];this.collapse(he),this.children=[new bo(he)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i50){for(var oe=F.lines.length%25+25,he=oe;he10);e.parent.maybeSpill()},iterN:function(e,i,R){for(var A=0;Ae.display.maxLineLength&&(e.display.maxLine=we,e.display.maxLineLength=Be,e.display.maxLineChanged=!0)}A!=null&&e&&this.collapsed&&zn(e,A,F+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Zt(e,"markerCleared",e,this,A,F),i&&Oa(e),this.parent&&this.parent.clear()},ja.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var R,A,F=0;F0||oe==0&&J.clearWhenEmpty!==!1)return J;if(J.replacedWith&&(J.collapsed=!0,J.widgetNode=M("span",[J.replacedWith],"CodeMirror-widget"),A.handleMouseEvents||J.widgetNode.setAttribute("cm-ignore-events","true"),A.insertLeft&&(J.widgetNode.insertLeft=!0)),J.collapsed){if(dt(e,i.line,i,R,J)||i.line!=R.line&&dt(e,R.line,i,R,J))throw new Error("Inserting collapsed marker partially overlapping an existing one");xi()}J.addToHistory&&Es(e,{from:i,to:R,origin:"markText"},e.sel,NaN);var he=i.line,ve=e.cm,we;if(e.iter(he,R.line+1,function(Xe){ve&&J.collapsed&&!ve.options.lineWrapping&&At(Xe)==ve.display.maxLine&&(we=!0),J.collapsed&&he!=i.line&&$n(Xe,0),Mi(Xe,new Fi(J,he==i.line?i.ch:null,he==R.line?R.ch:null)),++he}),J.collapsed&&e.iter(i.line,R.line+1,function(Xe){Gt(e,Xe)&&$n(Xe,0)}),J.clearOnEnter&&Re(J,"beforeCursorEnter",function(){return J.clear()}),J.readOnly&&(Ti(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),J.collapsed&&(J.id=++Fs,J.atomic=!0),ve){if(we&&(ve.curOp.updateMaxLine=!0),J.collapsed)zn(ve,i.line,R.line+1);else if(J.className||J.startStyle||J.endStyle||J.css||J.attributes||J.title)for(var Be=i.line;Be<=R.line;Be++)Qn(ve,Be,"text");J.atomic&&Os(ve.doc),Zt(ve,"markerAdded",ve,J)}return J}var Co=function(e,i){this.markers=e,this.primary=i;for(var R=0;R=0;ve--)to(this,A[ve]);he?_s(this,he):this.cm&&ba(this.cm)}),undo:mi(function(){Ho(this,"undo")}),redo:mi(function(){Ho(this,"redo")}),undoSelection:mi(function(){Ho(this,"undo",!0)}),redoSelection:mi(function(){Ho(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,R=0,A=0;A=e.ch)&&i.push(F.marker.parent||F.marker)}return i},findMarks:function(e,i,R){e=z(this,e),i=z(this,i);var A=[],F=e.line;return this.iter(e.line,i.line+1,function(J){var oe=J.markedSpans;if(oe)for(var he=0;he=ve.to||ve.from==null&&F!=e.line||ve.from!=null&&F==i.line&&ve.from>=i.ch)&&(!R||R(ve.marker))&&A.push(ve.marker.parent||ve.marker)}++F}),A},getAllMarks:function(){var e=[];return this.iter(function(i){var R=i.markedSpans;if(R)for(var A=0;Ae)return i=e,!0;e-=J,++R}),z(this,wt(R,i))},indexFromPos:function(e){e=z(this,e);var i=e.ch;if(e.linei&&(i=e.from),e.to!=null&&e.to-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var Be=e.dataTransfer.getData("Text");if(Be){var Xe;if(i.state.draggingText&&!i.state.draggingText.copy&&(Xe=i.listSelections()),Bo(i.doc,va(R,R)),Xe)for(var ut=0;ut=0;he--)ro(e.doc,"",A[he].from,A[he].to,"+delete");ba(e)})}function as(e,i,R){var A=Te(e.text,i+R,R);return A<0||A>e.text.length?null:A}function os(e,i,R){var A=as(e,i.ch,R);return A==null?null:new wt(i.line,A,R<0?"after":"before")}function ss(e,i,R,A,F){if(e){i.doc.direction=="rtl"&&(F=-F);var J=ht(R,i.doc.direction);if(J){var oe=F<0?re(J):J[0],he=F<0==(oe.level==1),ve=he?"after":"before",we;if(oe.level>0||i.doc.direction=="rtl"){var Be=We(i,R);we=F<0?R.text.length-1:0;var Xe=Ze(i,Be,we).top;we=Je(function(ut){return Ze(i,Be,ut).top==Xe},F<0==(oe.level==1)?oe.from:oe.to-1,we),ve=="before"&&(we=as(R,we,1))}else we=F<0?oe.to:oe.from;return new wt(A,we,ve)}}return new wt(A,F<0?R.text.length:0,F<0?"before":"after")}function Il(e,i,R,A){var F=ht(i,e.doc.direction);if(!F)return os(i,R,A);R.ch>=i.text.length?(R.ch=i.text.length,R.sticky="before"):R.ch<=0&&(R.ch=0,R.sticky="after");var J=at(F,R.ch,R.sticky),oe=F[J];if(e.doc.direction=="ltr"&&oe.level%2==0&&(A>0?oe.to>R.ch:oe.from=oe.from&&ut>=Be.begin)){var ot=Xe?"before":"after";return new wt(R.line,ut,ot)}}var Ot=function(ir,Sr,ar){for(var Rr=function(Zn,Ai){return Ai?new wt(R.line,he(Zn,1),"before"):new wt(R.line,Zn,"after")};ir>=0&&ir0==(qr.level!=1),wn=Gr?ar.begin:he(ar.end,-1);if(qr.from<=wn&&wn0?Be.end:he(Be.begin,-1);return Qt!=null&&!(A>0&&Qt==i.text.length)&&(Bt=Ot(A>0?0:F.length-1,A,we(Qt)),Bt)?Bt:null}var _o={selectAll:Ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),De)},killLine:function(e){return ao(e,function(i){if(i.empty()){var R=ur(e.doc,i.head.line).text.length;return i.head.ch==R&&i.head.line0)F=new wt(F.line,F.ch+1),e.replaceRange(J.charAt(F.ch-1)+J.charAt(F.ch-2),wt(F.line,F.ch-2),F,"+transpose");else if(F.line>e.doc.first){var oe=ur(e.doc,F.line-1).text;oe&&(F=new wt(F.line,1),e.replaceRange(J.charAt(0)+e.doc.lineSeparator()+oe.charAt(oe.length-1),wt(F.line-1,oe.length-1),F,"+transpose"))}}R.push(new Nn(F,F))}e.setSelections(R)})},newlineAndIndent:function(e){return Wi(e,function(){for(var i=e.listSelections(),R=i.length-1;R>=0;R--)e.replaceRange(e.doc.lineSeparator(),i[R].anchor,i[R].head,"+input");i=e.listSelections();for(var A=0;Ae&&$t(i,this.pos)==0&&R==this.button};var Oo,Ao;function Hl(e,i){var R=+new Date;return Ao&&Ao.compare(R,e,i)?(Oo=Ao=null,"triple"):Oo&&Oo.compare(R,e,i)?(Ao=new us(R,e,i),Oo=null,"double"):(Oo=new us(R,e,i),Ao=null,"single")}function tl(e){var i=this,R=i.display;if(lt(i,e)||R.activeTouch&&R.input.supportsTouch())return;if(R.input.ensurePolled(),R.shift=e.shiftKey,yn(R,e)){d||(R.scroller.draggable=!1,setTimeout(function(){return R.scroller.draggable=!0},100));return}if(cs(i,e))return;var A=di(i,e),F=$e(e),J=A?Hl(A,F):"single";if(window.focus(),F==1&&i.state.selectingText&&i.state.selectingText(e),A&&zl(i,F,A,J,e))return;F==1?A?Gl(i,A,J,e):et(e)==R.scroller&&Ce(e):F==2?(A&&Uo(i.doc,A),setTimeout(function(){return R.input.focus()},20)):F==3&&(k?i.display.input.onContextMenu(e):wa(i))}function zl(e,i,R,A,F){var J="Click";return A=="double"?J="Double"+J:A=="triple"&&(J="Triple"+J),J=(i==1?"Left":i==2?"Middle":"Right")+J,To(e,Gs(J,F),F,function(oe){if(typeof oe=="string"&&(oe=_o[oe]),!oe)return!1;var he=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),he=oe(e,R)!=Ae}finally{e.state.suppressEdits=!1}return he})}function Kl(e,i,R){var A=e.getOption("configureMouse"),F=A?A(e,i,R):{};if(F.unit==null){var J=t?R.shiftKey&&R.metaKey:R.altKey;F.unit=J?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(F.extend==null||e.doc.extend)&&(F.extend=e.doc.extend||R.shiftKey),F.addNew==null&&(F.addNew=a?R.metaKey:R.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(a?R.altKey:R.ctrlKey)),F}function Gl(e,i,R,A){_?setTimeout(U(Ba,e),0):e.curOp.focus=G();var F=Kl(e,R,A),J=e.doc.sel,oe;e.options.dragDrop&&bt&&!e.isReadOnly()&&R=="single"&&(oe=J.contains(i))>-1&&($t((oe=J.ranges[oe]).from(),i)<0||i.xRel>0)&&($t(oe.to(),i)>0||i.xRel<0)?Vl(e,A,i,F):Xl(e,A,i,F)}function Vl(e,i,R,A){var F=e.display,J=!1,oe=pi(e,function(we){d&&(F.scroller.draggable=!1),e.state.draggingText=!1,ft(F.wrapper.ownerDocument,"mouseup",oe),ft(F.wrapper.ownerDocument,"mousemove",he),ft(F.scroller,"dragstart",ve),ft(F.scroller,"drop",oe),J||(Ce(we),A.addNew||Uo(e.doc,R,null,null,A.extend),d&&!u||_&&b==9?setTimeout(function(){F.wrapper.ownerDocument.body.focus({preventScroll:!0}),F.input.focus()},20):F.input.focus())}),he=function(we){J=J||Math.abs(i.clientX-we.clientX)+Math.abs(i.clientY-we.clientY)>=10},ve=function(){return J=!0};d&&(F.scroller.draggable=!0),e.state.draggingText=oe,oe.copy=!A.moveOnDrag,F.scroller.dragDrop&&F.scroller.dragDrop(),Re(F.wrapper.ownerDocument,"mouseup",oe),Re(F.wrapper.ownerDocument,"mousemove",he),Re(F.scroller,"dragstart",ve),Re(F.scroller,"drop",oe),wa(e),setTimeout(function(){return F.input.focus()},20)}function rl(e,i,R){if(R=="char")return new Nn(i,i);if(R=="word")return e.findWordAt(i);if(R=="line")return new Nn(wt(i.line,0),z(e.doc,wt(i.line+1,0)));var A=R(e,i);return new Nn(A.from,A.to)}function Xl(e,i,R,A){var F=e.display,J=e.doc;Ce(i);var oe,he,ve=J.sel,we=ve.ranges;if(A.addNew&&!A.extend?(he=J.sel.contains(R),he>-1?oe=we[he]:oe=new Nn(R,R)):(oe=J.sel.primary(),he=J.sel.primIndex),A.unit=="rectangle")A.addNew||(oe=new Nn(R,R)),R=di(e,i,!0,!0),he=-1;else{var Be=rl(e,R,A.unit);A.extend?oe=ns(oe,Be.anchor,Be.head,A.extend):oe=Be}A.addNew?he==-1?(he=we.length,Ni(J,aa(e,we.concat([oe]),he),{scroll:!1,origin:"*mouse"})):we.length>1&&we[he].empty()&&A.unit=="char"&&!A.extend?(Ni(J,aa(e,we.slice(0,he).concat(we.slice(he+1)),0),{scroll:!1,origin:"*mouse"}),ve=J.sel):is(J,he,oe,ye):(he=0,Ni(J,new zi([oe],0),ye),ve=J.sel);var Xe=R;function ut(ar){if($t(Xe,ar)==0)return;if(Xe=ar,A.unit=="rectangle"){for(var Rr=[],qr=e.options.tabSize,Gr=X(ur(J,R.line).text,R.ch,qr),wn=X(ur(J,ar.line).text,ar.ch,qr),Zn=Math.min(Gr,wn),Ai=Math.max(Gr,wn),oi=Math.min(R.line,ar.line),ea=Math.min(e.lastLine(),Math.max(R.line,ar.line));oi<=ea;oi++){var Ji=ur(J,oi).text,yi=xe(Ji,Zn,qr);Zn==Ai?Rr.push(new Nn(wt(oi,yi),wt(oi,yi))):Ji.length>yi&&Rr.push(new Nn(wt(oi,yi),wt(oi,xe(Ji,Ai,qr))))}Rr.length||Rr.push(new Nn(R,R)),Ni(J,aa(e,ve.ranges.slice(0,he).concat(Rr),he),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ar)}else{var Qi=oe,ki=rl(e,ar,A.unit),_i=Qi.anchor,bi;$t(ki.anchor,_i)>0?(bi=ki.head,_i=On(Qi.from(),ki.anchor)):(bi=ki.anchor,_i=Sn(Qi.to(),ki.head));var fi=ve.ranges.slice(0);fi[he]=$l(e,new Nn(z(J,_i),bi)),Ni(J,aa(e,fi,he),ye)}}var ot=F.wrapper.getBoundingClientRect(),Ot=0;function Bt(ar){var Rr=++Ot,qr=di(e,ar,!0,A.unit=="rectangle");if(!qr)return;if($t(qr,Xe)!=0){e.curOp.focus=G(),ut(qr);var Gr=La(F,J);(qr.line>=Gr.to||qr.lineot.bottom?20:0;wn&&setTimeout(pi(e,function(){if(Ot!=Rr)return;F.scroller.scrollTop+=wn,Bt(ar)}),50)}}function Qt(ar){e.state.selectingText=!1,Ot=Infinity,ar&&(Ce(ar),F.input.focus()),ft(F.wrapper.ownerDocument,"mousemove",ir),ft(F.wrapper.ownerDocument,"mouseup",Sr),J.history.lastSelOrigin=null}var ir=pi(e,function(ar){ar.buttons===0||!$e(ar)?Qt(ar):Bt(ar)}),Sr=pi(e,Qt);e.state.selectingText=Sr,Re(F.wrapper.ownerDocument,"mousemove",ir),Re(F.wrapper.ownerDocument,"mouseup",Sr)}function $l(e,i){var R=i.anchor,A=i.head,F=ur(e.doc,R.line);if($t(R,A)==0&&R.sticky==A.sticky)return i;var J=ht(F);if(!J)return i;var oe=at(J,R.ch,R.sticky),he=J[oe];if(he.from!=R.ch&&he.to!=R.ch)return i;var ve=oe+(he.from==R.ch==(he.level!=1)?0:1);if(ve==0||ve==J.length)return i;var we;if(A.line!=R.line)we=(A.line-R.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Be=at(J,A.ch,A.sticky),Xe=Be-oe||(A.ch-R.ch)*(he.level==1?-1:1);Be==ve-1||Be==ve?we=Xe<0:we=Xe>0}var ut=J[ve+(we?-1:0)],ot=we==(ut.level==1),Ot=ot?ut.from:ut.to,Bt=ot?"after":"before";return R.ch==Ot&&R.sticky==Bt?i:new Nn(new wt(R.line,Ot,Bt),A)}function nl(e,i,R,A){var F,J;if(i.touches)F=i.touches[0].clientX,J=i.touches[0].clientY;else try{F=i.clientX,J=i.clientY}catch(ut){return!1}if(F>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;A&&Ce(i);var oe=e.display,he=oe.lineDiv.getBoundingClientRect();if(J>he.bottom||!Le(e,R))return ke(i);J-=he.top-oe.viewOffset;for(var ve=0;ve=F){var Be=Bn(e.doc,J),Xe=e.display.gutterSpecs[ve];return Qe(e,R,e,Be,Xe.className,i),ke(i)}}}function cs(e,i){return nl(e,i,"gutterClick",!0)}function il(e,i){if(yn(e.display,i)||Yl(e,i))return;if(lt(e,i,"contextmenu"))return;k||e.display.input.onContextMenu(i)}function Yl(e,i){return Le(e,"gutterContextMenu")?nl(e,i,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nn(e)}var oo={toString:function(){return"CodeMirror.Init"}},ol={},Vo={};function Jl(e){var i=e.optionHandlers;function R(A,F,J,oe){e.defaults[A]=F,J&&(i[A]=oe?function(he,ve,we){we!=oo&&J(he,ve,we)}:J)}e.defineOption=R,e.Init=oo,R("value","",function(A,F){return A.setValue(F)},!0),R("mode",null,function(A,F){A.doc.modeOption=F,Ra(A)},!0),R("indentUnit",2,Ra,!0),R("indentWithTabs",!1),R("smartIndent",!0),R("tabSize",4,function(A){vo(A),nn(A),zn(A)},!0),R("lineSeparator",null,function(A,F){if(A.doc.lineSep=F,!F)return;var J=[],oe=A.doc.first;A.doc.iter(function(ve){for(var we=0;;){var Be=ve.text.indexOf(F,we);if(Be==-1)break;we=Be+F.length,J.push(wt(oe,Be))}oe++});for(var he=J.length-1;he>=0;he--)ro(A.doc,F,J[he],wt(J[he].line,J[he].ch+F.length))}),R("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(A,F,J){A.state.specialChars=new RegExp(F.source+(F.test(" ")?"":"| "),"g"),J!=oo&&A.refresh()}),R("specialCharPlaceholder",pr,function(A){return A.refresh()},!0),R("electricChars",!0),R("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),R("spellcheck",!1,function(A,F){return A.getInputField().spellcheck=F},!0),R("autocorrect",!1,function(A,F){return A.getInputField().autocorrect=F},!0),R("autocapitalize",!1,function(A,F){return A.getInputField().autocapitalize=F},!0),R("rtlMoveVisually",!w),R("wholeLineUpdateBefore",!0),R("theme","default",function(A){al(A),ma(A)},!0),R("keyMap","default",function(A,F,J){var oe=Ko(F),he=J!=oo&&Ko(J);he&&he.detach&&he.detach(A,oe),oe.attach&&oe.attach(A,he||null)}),R("extraKeys",null),R("configureMouse",null),R("lineWrapping",!1,Zl,!0),R("gutters",[],function(A,F){A.display.gutterSpecs=Hi(F,A.options.lineNumbers),ma(A)},!0),R("fixedGutter",!0,function(A,F){A.display.gutters.style.left=F?gi(A.display)+"px":"0",A.refresh()},!0),R("coverGutterNextToScrollbar",!1,function(A){return lr(A)},!0),R("scrollbarStyle","native",function(A){pa(A),lr(A),A.display.scrollbars.setScrollTop(A.doc.scrollTop),A.display.scrollbars.setScrollLeft(A.doc.scrollLeft)},!0),R("lineNumbers",!1,function(A,F){A.display.gutterSpecs=Hi(A.options.gutters,F),ma(A)},!0),R("firstLineNumber",1,ma,!0),R("lineNumberFormatter",function(A){return A},ma,!0),R("showCursorWhenSelecting",!1,Mn,!0),R("resetSelectionOnContextMenu",!0),R("lineWiseCopyCut",!0),R("pasteLinesPerSelection",!0),R("selectionsMayTouch",!1),R("readOnly",!1,function(A,F){F=="nocursor"&&(ua(A),A.display.input.blur()),A.display.input.readOnlyChanged(F)}),R("screenReaderLabel",null,function(A,F){F=F===""?null:F,A.display.input.screenReaderLabelChanged(F)}),R("disableInput",!1,function(A,F){F||A.display.input.reset()},!0),R("dragDrop",!0,Ql),R("allowDropFileTypes",null),R("cursorBlinkRate",530),R("cursorScrollMargin",0),R("cursorHeight",1,Mn,!0),R("singleCursorHeightPerLine",!0,Mn,!0),R("workTime",100),R("workDelay",100),R("flattenSpans",!0,vo,!0),R("addModeClass",!1,vo,!0),R("pollInterval",100),R("undoDepth",200,function(A,F){return A.doc.history.undoDepth=F}),R("historyEventDelay",1250),R("viewportMargin",10,function(A){return A.refresh()},!0),R("maxHighlightLength",1e4,vo,!0),R("moveInputWithCursor",!0,function(A,F){F||A.display.input.resetPosition()}),R("tabindex",null,function(A,F){return A.display.input.getField().tabIndex=F||""}),R("autofocus",null),R("direction","ltr",function(A,F){return A.doc.setDirection(F)},!0),R("phrases",null)}function Ql(e,i,R){var A=R&&R!=oo;if(!i!=!A){var F=e.display.dragFunctions,J=i?Re:ft;J(e.display.scroller,"dragstart",F.start),J(e.display.scroller,"dragenter",F.enter),J(e.display.scroller,"dragover",F.over),J(e.display.scroller,"dragleave",F.leave),J(e.display.scroller,"drop",F.drop)}}function Zl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),Lr(e)),Oi(e),zn(e),nn(e),setTimeout(function(){return lr(e)},100)}function ri(e,i){var R=this;if(!(this instanceof ri))return new ri(e,i);this.options=i=i?W(i):{},W(ol,i,!1);var A=i.value;typeof A=="string"?A=new Yi(A,i.mode,null,i.lineSeparator,i.direction):i.mode&&(A.modeOption=i.mode),this.doc=A;var F=new ri.inputStyles[i.inputStyle](this),J=this.display=new Ka(e,A,F,i);J.wrapper.CodeMirror=this,al(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),pa(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ne,keySeq:null,specialChars:null},i.autofocus&&!r&&J.input.focus(),_&&b<11&&setTimeout(function(){return R.display.input.reset(!0)},20),ql(this),Dl(),Kn(this),this.curOp.forceUpdate=!0,gs(this,A),i.autofocus&&!r||this.hasFocus()?setTimeout(function(){R.hasFocus()&&!R.state.focused&&la(R)},20):ua(this);for(var oe in Vo)Vo.hasOwnProperty(oe)&&Vo[oe](this,i[oe],oo);wi(this),i.finishInit&&i.finishInit(this);for(var he=0;he20*20}Re(i.scroller,"touchstart",function(ve){if(!lt(e,ve)&&!J(ve)&&!cs(e,ve)){i.input.ensurePolled(),clearTimeout(R);var we=+new Date;i.activeTouch={start:we,moved:!1,prev:we-A.end<=300?A:null},ve.touches.length==1&&(i.activeTouch.left=ve.touches[0].pageX,i.activeTouch.top=ve.touches[0].pageY)}}),Re(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Re(i.scroller,"touchend",function(ve){var we=i.activeTouch;if(we&&!yn(i,ve)&&we.left!=null&&!we.moved&&new Date-we.start<300){var Be=e.coordsChar(i.activeTouch,"page"),Xe;!we.prev||oe(we,we.prev)?Xe=new Nn(Be,Be):!we.prev.prev||oe(we,we.prev.prev)?Xe=e.findWordAt(Be):Xe=new Nn(wt(Be.line,0),z(e.doc,wt(Be.line+1,0))),e.setSelection(Xe.anchor,Xe.head),e.focus(),Ce(ve)}F()}),Re(i.scroller,"touchcancel",F),Re(i.scroller,"scroll",function(){i.scroller.clientHeight&&(fa(e,i.scroller.scrollTop),$i(e,i.scroller.scrollLeft,!0),Qe(e,"scroll",e))}),Re(i.scroller,"mousewheel",function(ve){return po(e,ve)}),Re(i.scroller,"DOMMouseScroll",function(ve){return po(e,ve)}),Re(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(ve){lt(e,ve)||Ne(ve)},over:function(ve){lt(e,ve)||(Rl(e,ve),Ne(ve))},start:function(ve){return Al(e,ve)},drop:pi(e,Ol),leave:function(ve){lt(e,ve)||Ws(e)}};var he=i.input.getField();Re(he,"keyup",function(ve){return Zs.call(e,ve)}),Re(he,"keydown",pi(e,Qs)),Re(he,"keypress",pi(e,el)),Re(he,"focus",function(ve){return la(e,ve)}),Re(he,"blur",function(ve){return ua(e,ve)})}var ds=[];ri.defineInitHook=function(e){return ds.push(e)};function Ro(e,i,R,A){var F=e.doc,J;R==null&&(R="add"),R=="smart"&&(F.mode.indent?J=Vt(e,i).state:R="prev");var oe=e.options.tabSize,he=ur(F,i),ve=X(he.text,null,oe);he.stateAfter&&(he.stateAfter=null);var we=he.text.match(/^\s*/)[0],Be;if(!A&&!/\S/.test(he.text))Be=0,R="not";else if(R=="smart"&&(Be=F.mode.indent(J,he.text.slice(we.length),he.text),Be==Ae||Be>150)){if(!A)return;R="prev"}R=="prev"?i>F.first?Be=X(ur(F,i-1).text,null,oe):Be=0:R=="add"?Be=ve+e.options.indentUnit:R=="subtract"?Be=ve-e.options.indentUnit:typeof R=="number"&&(Be=ve+R),Be=Math.max(0,Be);var Xe="",ut=0;if(e.options.indentWithTabs)for(var ot=Math.floor(Be/oe);ot;--ot)ut+=oe,Xe+=" ";if(utoe,ve=mr(i),we=null;if(he&&A.ranges.length>1)if(ya&&ya.text.join(` + left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(J),J.scrollIntoView(F),e.display.lineSpace.removeChild(J)}}function Xa(e,i,R,A){A==null&&(A=0);var F;!e.options.lineWrapping&&i==R&&(i=i.ch?wt(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i,R=i.sticky=="before"?wt(i.line,i.ch+1,"before"):i);for(var J=0;J<5;J++){var oe=!1,he=pn(e,i),ve=!R||R==i?he:pn(e,R);F={left:Math.min(he.left,ve.left),top:Math.min(he.top,ve.top)-A,right:Math.max(he.left,ve.left),bottom:Math.max(he.bottom,ve.bottom)+A};var we=ca(e,F),Be=e.doc.scrollTop,Xe=e.doc.scrollLeft;if(we.scrollTop!=null&&(fa(e,we.scrollTop),Math.abs(e.doc.scrollTop-Be)>1&&(oe=!0)),we.scrollLeft!=null&&($i(e,we.scrollLeft),Math.abs(e.doc.scrollLeft-Xe)>1&&(oe=!0)),!oe)break}return F}function Ma(e,i){var R=ca(e,i);R.scrollTop!=null&&fa(e,R.scrollTop),R.scrollLeft!=null&&$i(e,R.scrollLeft)}function ca(e,i){var R=e.display,A=ti(e.display);i.top<0&&(i.top=0);var F=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:R.scroller.scrollTop,J=Ee(e),oe={};i.bottom-i.top>J&&(i.bottom=i.top+J);var he=e.doc.height+Me(R),ve=i.tophe-A;if(i.topF+J){var Be=Math.min(i.top,(we?he:i.bottom)-J);Be!=F&&(oe.scrollTop=Be)}var Xe=e.options.fixedGutter?0:R.gutters.offsetWidth,ut=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:R.scroller.scrollLeft-Xe,ot=Fe(e)-R.gutters.offsetWidth,Ot=i.right-i.left>ot;return Ot&&(i.right=i.left+ot),i.left<10?oe.scrollLeft=0:i.leftot+ut-3&&(oe.scrollLeft=i.right+(Ot?0:10)-ot),oe}function Sa(e,i){if(i==null)return;Ea(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i}function ba(e){Ea(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function da(e,i,R){(i!=null||R!=null)&&Ea(e),i!=null&&(e.curOp.scrollLeft=i),R!=null&&(e.curOp.scrollTop=R)}function co(e,i){Ea(e),e.curOp.scrollToPos=i}function Ea(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var R=jr(e,i.from),A=jr(e,i.to);Ta(e,R,A,i.margin)}}function Ta(e,i,R,A){var F=ca(e,{left:Math.min(i.left,R.left),top:Math.min(i.top,R.top)-A,right:Math.max(i.right,R.right),bottom:Math.max(i.bottom,R.bottom)+A});da(e,F.scrollLeft,F.scrollTop)}function fa(e,i){if(Math.abs(e.doc.scrollTop-i)<2)return;T||za(e,{top:i}),ha(e,i,!0),T&&za(e),Ha(e,100)}function ha(e,i,R){if(i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),e.display.scroller.scrollTop==i&&!R)return;e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i)}function $i(e,i,R,A){if(i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(R?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!A)return;e.doc.scrollLeft=i,An(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i)}function na(e){var i=e.display,R=i.gutters.offsetWidth,A=Math.round(e.doc.height+Me(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?R:0,docHeight:A,scrollHeight:A+Ye(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:R}}var Sr=function(e,i,R){this.cm=R;var A=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");A.tabIndex=F.tabIndex=-1,e(A),e(F),Re(A,"scroll",function(){A.clientHeight&&i(A.scrollTop,"vertical")}),Re(F,"scroll",function(){F.clientWidth&&i(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sr.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,R=e.scrollHeight>e.clientHeight+1,A=e.nativeBarWidth;if(R){this.vert.style.display="block",this.vert.style.bottom=i?A+"px":"0";var F=e.viewHeight-(i?A:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+F)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=R?A+"px":"0",this.horiz.style.left=e.barLeft+"px";var J=e.viewWidth-e.barLeft-(R?A:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+J)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(A==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:R?A:0,bottom:i?A:0}},Sr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Sr.prototype.zeroWidthHack=function(){var e=a&&!o?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},Sr.prototype.enableZeroWidthBar=function(e,i,R){e.style.pointerEvents="auto";function A(){var F=e.getBoundingClientRect(),J=R=="vert"?document.elementFromPoint(F.right-1,(F.top+F.bottom)/2):document.elementFromPoint((F.right+F.left)/2,F.bottom-1);J!=e?e.style.pointerEvents="none":i.set(1e3,A)}i.set(1e3,A)},Sr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Or=function(){};Or.prototype.update=function(){return{bottom:0,right:0}},Or.prototype.setScrollLeft=function(){},Or.prototype.setScrollTop=function(){},Or.prototype.clear=function(){};function lr(e,i){i||(i=na(e));var R=e.display.barWidth,A=e.display.barHeight;Tn(e,i);for(var F=0;F<4&&R!=e.display.barWidth||A!=e.display.barHeight;F++)R!=e.display.barWidth&&e.options.lineWrapping&&ka(e),Tn(e,na(e)),R=e.display.barWidth,A=e.display.barHeight}function Tn(e,i){var R=e.display,A=R.scrollbars.update(i);R.sizer.style.paddingRight=(R.barWidth=A.right)+"px",R.sizer.style.paddingBottom=(R.barHeight=A.bottom)+"px",R.heightForcer.style.borderBottom=A.bottom+"px solid transparent",A.right&&A.bottom?(R.scrollbarFiller.style.display="block",R.scrollbarFiller.style.height=A.bottom+"px",R.scrollbarFiller.style.width=A.right+"px"):R.scrollbarFiller.style.display="",A.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(R.gutterFiller.style.display="block",R.gutterFiller.style.height=A.bottom+"px",R.gutterFiller.style.width=i.gutterWidth+"px"):R.gutterFiller.style.display=""}var vr={native:Sr,null:Or};function pa(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new vr[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),Re(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,R){R=="horizontal"?$i(e,i):fa(e,i)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var $a=0;function Kn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$a},xr(e.curOp)}function Oa(e){var i=e.curOp;i&&Pr(i,function(R){for(var A=0;A=R.viewTo)||R.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new ia(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qo(e){e.updatedDisplay=e.mustUpdate&&Aa(e.cm,e.update)}function Zo(e){var i=e.cm,R=i.display;e.updatedDisplay&&ka(i),e.barMeasure=na(i),R.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=ze(i,R.maxLine,R.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(R.scroller.clientWidth,R.sizer.offsetLeft+e.adjustWidthTo+Ye(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,R.sizer.offsetLeft+e.adjustWidthTo-Fe(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=R.input.prepareSelection())}function fo(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var R=+new Date+e.options.workTime,A=Vt(e,i.highlightFrontier),F=[];i.iter(A.line,Math.min(i.first+i.size,e.display.viewTo+500),function(J){if(A.line>=e.display.viewFrom){var oe=J.styles,he=J.text.length>e.options.maxHighlightLength?Xr(i.mode,A.state):null,ve=Ke(e,J,A,!0);he&&(A.state=he),J.styles=ve.styles;var we=J.styleClasses,Be=ve.classes;Be?J.styleClasses=Be:we&&(J.styleClasses=null);for(var Xe=!oe||oe.length!=J.styles.length||we!=Be&&(!we||!Be||we.bgClass!=Be.bgClass||we.textClass!=Be.textClass),ut=0;!Xe&&utR)return Ha(e,e.options.workDelay),!0}),i.highlightFrontier=A.line,i.modeFrontier=Math.max(i.modeFrontier,A.line),F.length&&Wi(e,function(){for(var J=0;J=R.viewFrom&&i.visible.to<=R.viewTo&&(R.updateLineNumbers==null||R.updateLineNumbers>=R.viewTo)&&R.renderedView==R.view&&ra(e)==0)return!1;wi(e)&&(Vn(e),i.dims=Jn(e));var F=A.first+A.size,J=Math.max(i.visible.from-e.options.viewportMargin,A.first),oe=Math.min(F,i.visible.to+e.options.viewportMargin);R.viewFromoe&&R.viewTo-oe<20&&(oe=Math.min(F,R.viewTo)),ni&&(J=tr(e.doc,J),oe=qt(e.doc,oe));var he=J!=R.viewFrom||oe!=R.viewTo||R.lastWrapHeight!=i.wrapperHeight||R.lastWrapWidth!=i.wrapperWidth;Di(e,J,oe),R.viewOffset=cr(ur(e.doc,R.viewFrom)),e.display.mover.style.top=R.viewOffset+"px";var ve=ra(e);if(!he&&ve==0&&!i.force&&R.renderedView==R.view&&(R.updateLineNumbers==null||R.updateLineNumbers>=R.viewTo))return!1;var we=ko(e);return ve>4&&(R.lineDiv.style.display="none"),Mo(e,R.updateLineNumbers,i.dims),ve>4&&(R.lineDiv.style.display=""),R.renderedView=R.view,Lo(we),x(R.cursorDiv),x(R.selectionDiv),R.gutters.style.height=R.sizer.style.minHeight=0,he&&(R.lastWrapHeight=i.wrapperHeight,R.lastWrapWidth=i.wrapperWidth,Ha(e,400)),R.updateLineNumbers=null,!0}function Ya(e,i){for(var R=i.viewport,A=!0;;A=!1){if(!A||!e.options.lineWrapping||i.oldDisplayWidth==Fe(e)){if(R&&R.top!=null&&(R={top:Math.min(e.doc.height+Me(e.display)-Ee(e),R.top)}),i.visible=La(e.display,e.doc,R),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else A&&(i.visible=La(e.display,e.doc,R));if(!Aa(e,i))break;ka(e);var F=na(e);Mn(e),lr(e,F),Un(e,F),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function za(e,i){var R=new ia(e,i);if(Aa(e,R)){ka(e),Ya(e,R);var A=na(e);Mn(e),lr(e,A),Un(e,A),R.finish()}}function Mo(e,i,R){var A=e.display,F=e.options.lineNumbers,J=A.lineDiv,oe=J.firstChild;function he(Ot){var Bt=Ot.nextSibling;return d&&a&&e.display.currentWheelTarget==Ot?Ot.style.display="none":Ot.parentNode.removeChild(Ot),Bt}for(var ve=A.view,we=A.viewFrom,Be=0;Be-1&&(ot=!1),er(e,Xe,we,R)),ot&&(x(Xe.lineNumber),Xe.lineNumber.appendChild(document.createTextNode(li(e.options,we)))),oe=Xe.node.nextSibling}we+=Xe.size}for(;oe;)oe=he(oe)}function Ja(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px"}function Un(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+Ye(e)+"px"}function An(e){var i=e.display,R=i.view;if(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))return;for(var A=gi(i)-i.scroller.scrollLeft+e.doc.scrollLeft,F=i.gutters.offsetWidth,J=A+"px",oe=0;oeoe.clientWidth,ve=oe.scrollHeight>oe.clientHeight;if(!(A&&he||F&&ve))return;if(F&&a&&d){e:for(var we=i.target,Be=J.view;we!=oe;we=we.parentNode)for(var Xe=0;Xe=0&&$t(e,A.to())<=0)return R}return-1};var Nn=function(e,i){this.anchor=e,this.head=i};Nn.prototype.from=function(){return On(this.anchor,this.head)},Nn.prototype.to=function(){return _n(this.anchor,this.head)},Nn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function aa(e,i,R){var A=e&&e.options.selectionsMayTouch,F=i[R];i.sort(function(ut,ot){return $t(ut.from(),ot.from())}),R=fe(i,F);for(var J=1;J0:ve>=0){var we=On(he.from(),oe.from()),Be=_n(he.to(),oe.to()),Xe=he.empty()?oe.from()==oe.head:he.from()==he.head;J<=R&&--R,i.splice(--J,2,new Nn(Xe?Be:we,Xe?we:Be))}}return new zi(i,R)}function va(e,i){return new zi([new Nn(e,i||e)],0)}function ga(e){return e.text?wt(e.from.line+e.text.length-1,re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function mo(e,i){if($t(e,i.from)<0)return e;if($t(e,i.to)<=0)return ga(i);var R=e.line+i.text.length-(i.to.line-i.from.line)-1,A=e.ch;return e.line==i.to.line&&(A+=ga(i).ch-i.to.ch),wt(R,A)}function Za(e,i){for(var R=[],A=0;A1&&e.remove(he.line+1,Ot-1),e.insert(he.line+1,ir)}Zt(e,"change",e,i)}function Na(e,i,R){function A(F,J,oe){if(F.linked)for(var he=0;he1&&!e.done[e.done.length-2].ranges)return e.done.pop(),re(e.done)}function Es(e,i,R,A){var F=e.history;F.undone.length=0;var J=+new Date,oe,he;if((F.lastOp==A||F.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&F.lastModTime>J-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(oe=ml(F,F.lastOp==A)))he=re(oe.changes),$t(i.from,i.to)==0&&$t(i.from,he.to)==0?he.to=ga(i):oe.changes.push(rs(e,i));else{var ve=re(F.done);for((!ve||!ve.ranges)&&Fo(e.sel,F.done),oe={changes:[rs(e,i)],generation:F.generation},F.done.push(oe);F.done.length>F.undoDepth;)F.done.shift(),F.done[0].ranges||F.done.shift()}F.done.push(R),F.generation=++F.maxGeneration,F.lastModTime=F.lastSelTime=J,F.lastOp=F.lastSelOp=A,F.lastOrigin=F.lastSelOrigin=i.origin,he||Qe(e,"historyAdded")}function vl(e,i,R,A){var F=i.charAt(0);return F=="*"||F=="+"&&R.ranges.length==A.ranges.length&&R.somethingSelected()==A.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,i,R,A){var F=e.history,J=A&&A.origin;R==F.lastSelOp||J&&F.lastSelOrigin==J&&(F.lastModTime==F.lastSelTime&&F.lastOrigin==J||vl(e,J,re(F.done),i))?F.done[F.done.length-1]=i:Fo(i,F.done),F.lastSelTime=+new Date,F.lastSelOrigin=J,F.lastSelOp=R,A&&A.clearRedo!==!1&&bs(F.undone)}function Fo(e,i){var R=re(i);R&&R.ranges&&R.equals(e)||i.push(e)}function xs(e,i,R,A){var F=i["spans_"+e.id],J=0;e.iter(Math.max(e.first,R),Math.min(e.first+e.size,A),function(oe){oe.markedSpans&&((F||(F=i["spans_"+e.id]={}))[J]=oe.markedSpans),++J})}function yl(e){if(!e)return null;for(var i,R=0;R-1&&(re(he)[Xe]=we[Xe],delete we[Xe]))}}return A}function ns(e,i,R,A){if(A){var F=e.anchor;if(R){var J=$t(i,F)<0;J!=$t(R,F)<0?(F=i,i=R):J!=$t(i,R)<0&&(i=R)}return new Nn(F,i)}else return new Nn(R||i,i)}function Uo(e,i,R,A,F){F==null&&(F=e.cm&&(e.cm.display.shift||e.extend)),Ni(e,new zi([ns(e.sel.primary(),i,R,F)],0),A)}function ws(e,i,R){for(var A=[],F=e.cm&&(e.cm.display.shift||e.extend),J=0;J=i.ch:he.to>i.ch))){if(F&&(Qe(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(J.markedSpans){--oe;continue}else break;if(!ve.atomic)continue;if(R){var Xe=ve.find(A<0?1:-1),ut=void 0;if((A<0?Be:we)&&(Xe=Rs(e,Xe,-A,Xe&&Xe.line==i.line?J:null)),Xe&&Xe.line==i.line&&(ut=$t(Xe,R))&&(A<0?ut<0:ut>0))return eo(e,Xe,i,A,F)}var ot=ve.find(A<0?-1:1);return(A<0?we:Be)&&(ot=Rs(e,ot,A,ot.line==i.line?J:null)),ot?eo(e,ot,i,A,F):null}}return i}function Wo(e,i,R,A,F){var J=A||1,oe=eo(e,i,R,J,F)||!F&&eo(e,i,R,J,!0)||eo(e,i,R,-J,F)||!F&&eo(e,i,R,-J,!0);return oe||(e.cantEdit=!0,wt(e.first,0))}function Rs(e,i,R,A){return R<0&&i.ch==0?i.line>e.first?z(e,wt(i.line-1)):null:R>0&&i.ch==(A||ur(e,i.line)).text.length?i.line=0;--F)ks(e,{from:A[F].from,to:A[F].to,text:F?[""]:i.text,origin:i.origin});else ks(e,i)}function ks(e,i){if(i.text.length==1&&i.text[0]==""&&$t(i.from,i.to)==0)return;var R=Za(e,i);Es(e,i,R,e.cm?e.cm.curOp.id:NaN),go(e,i,R,Ii(e,i));var A=[];Na(e,function(F,J){!J&&fe(A,F.history)==-1&&(Ns(F.history,i),A.push(F.history)),go(F,i,null,Ii(F,i))})}function Ho(e,i,R){var A=e.cm&&e.cm.state.suppressEdits;if(A&&!R)return;for(var F=e.history,J,oe=e.sel,he=i=="undo"?F.done:F.undone,ve=i=="undo"?F.undone:F.done,we=0;we=0;--ot){var Ot=ut(ot);if(Ot)return Ot.v}}function Ls(e,i){if(i==0)return;if(e.first+=i,e.sel=new zi(pe(e.sel.ranges,function(F){return new Nn(wt(F.anchor.line+i,F.anchor.ch),wt(F.head.line+i,F.head.ch))}),e.sel.primIndex),e.cm){zn(e.cm,e.first,e.first-i,i);for(var R=e.cm.display,A=R.viewFrom;Ae.lastLine())return;if(i.from.lineJ&&(i={from:i.from,to:wt(J,ur(e,J).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Xn(e,i.from,i.to),R||(R=Za(e,i)),e.cm?xl(e.cm,i,A):ts(e,i,A),Bo(e,R,De),e.cantEdit&&Wo(e,wt(e.firstLine(),0))&&(e.cantEdit=!1)}function xl(e,i,R){var A=e.doc,F=e.display,J=i.from,oe=i.to,he=!1,ve=J.line;e.options.lineWrapping||(ve=Zr(At(ur(A,J.line))),A.iter(ve,oe.line+1,function(ot){if(ot==F.maxLine)return he=!0,!0})),A.sel.contains(i.from,i.to)>-1&&Ue(e),ts(A,i,R,Xi(e)),e.options.lineWrapping||(A.iter(ve,J.line+i.text.length,function(ot){var Ot=st(ot);Ot>F.maxLineLength&&(F.maxLine=ot,F.maxLineLength=Ot,F.maxLineChanged=!0,he=!1)}),he&&(e.curOp.updateMaxLine=!0)),Li(A,J.line),Ha(e,400);var we=i.text.length-(oe.line-J.line)-1;i.full?zn(e):J.line==oe.line&&i.text.length==1&&!vs(e.doc,i)?Qn(e,J.line,"text"):zn(e,J.line,oe.line+1,we);var Be=Le(e,"changes"),Xe=Le(e,"change");if(Xe||Be){var ut={from:J,to:oe,text:i.text,removed:i.removed,origin:i.origin};Xe&&Zt(e,"change",e,ut),Be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ut)}e.display.selForContextMenu=null}function ro(e,i,R,A,F){var J;A||(A=R),$t(A,R)<0&&(J=[A,R],R=J[0],A=J[1]),typeof i=="string"&&(i=e.splitLines(i)),to(e,{from:R,to:A,text:i,origin:F})}function Ms(e,i,R,A){R1||!(this.children[0]instanceof bo))){var he=[];this.collapse(he),this.children=[new bo(he)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i50){for(var oe=F.lines.length%25+25,he=oe;he10);e.parent.maybeSpill()},iterN:function(e,i,R){for(var A=0;Ae.display.maxLineLength&&(e.display.maxLine=we,e.display.maxLineLength=Be,e.display.maxLineChanged=!0)}A!=null&&e&&this.collapsed&&zn(e,A,F+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Zt(e,"markerCleared",e,this,A,F),i&&Oa(e),this.parent&&this.parent.clear()},ja.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var R,A,F=0;F0||oe==0&&J.clearWhenEmpty!==!1)return J;if(J.replacedWith&&(J.collapsed=!0,J.widgetNode=M("span",[J.replacedWith],"CodeMirror-widget"),A.handleMouseEvents||J.widgetNode.setAttribute("cm-ignore-events","true"),A.insertLeft&&(J.widgetNode.insertLeft=!0)),J.collapsed){if(dt(e,i.line,i,R,J)||i.line!=R.line&&dt(e,R.line,i,R,J))throw new Error("Inserting collapsed marker partially overlapping an existing one");xi()}J.addToHistory&&Es(e,{from:i,to:R,origin:"markText"},e.sel,NaN);var he=i.line,ve=e.cm,we;if(e.iter(he,R.line+1,function(Xe){ve&&J.collapsed&&!ve.options.lineWrapping&&At(Xe)==ve.display.maxLine&&(we=!0),J.collapsed&&he!=i.line&&$n(Xe,0),Mi(Xe,new Fi(J,he==i.line?i.ch:null,he==R.line?R.ch:null)),++he}),J.collapsed&&e.iter(i.line,R.line+1,function(Xe){Gt(e,Xe)&&$n(Xe,0)}),J.clearOnEnter&&Re(J,"beforeCursorEnter",function(){return J.clear()}),J.readOnly&&(Ti(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),J.collapsed&&(J.id=++Fs,J.atomic=!0),ve){if(we&&(ve.curOp.updateMaxLine=!0),J.collapsed)zn(ve,i.line,R.line+1);else if(J.className||J.startStyle||J.endStyle||J.css||J.attributes||J.title)for(var Be=i.line;Be<=R.line;Be++)Qn(ve,Be,"text");J.atomic&&Os(ve.doc),Zt(ve,"markerAdded",ve,J)}return J}var Co=function(e,i){this.markers=e,this.primary=i;for(var R=0;R=0;ve--)to(this,A[ve]);he?Ss(this,he):this.cm&&ba(this.cm)}),undo:mi(function(){Ho(this,"undo")}),redo:mi(function(){Ho(this,"redo")}),undoSelection:mi(function(){Ho(this,"undo",!0)}),redoSelection:mi(function(){Ho(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,R=0,A=0;A=e.ch)&&i.push(F.marker.parent||F.marker)}return i},findMarks:function(e,i,R){e=z(this,e),i=z(this,i);var A=[],F=e.line;return this.iter(e.line,i.line+1,function(J){var oe=J.markedSpans;if(oe)for(var he=0;he=ve.to||ve.from==null&&F!=e.line||ve.from!=null&&F==i.line&&ve.from>=i.ch)&&(!R||R(ve.marker))&&A.push(ve.marker.parent||ve.marker)}++F}),A},getAllMarks:function(){var e=[];return this.iter(function(i){var R=i.markedSpans;if(R)for(var A=0;Ae)return i=e,!0;e-=J,++R}),z(this,wt(R,i))},indexFromPos:function(e){e=z(this,e);var i=e.ch;if(e.linei&&(i=e.from),e.to!=null&&e.to-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var Be=e.dataTransfer.getData("Text");if(Be){var Xe;if(i.state.draggingText&&!i.state.draggingText.copy&&(Xe=i.listSelections()),Bo(i.doc,va(R,R)),Xe)for(var ut=0;ut=0;he--)ro(e.doc,"",A[he].from,A[he].to,"+delete");ba(e)})}function as(e,i,R){var A=Te(e.text,i+R,R);return A<0||A>e.text.length?null:A}function os(e,i,R){var A=as(e,i.ch,R);return A==null?null:new wt(i.line,A,R<0?"after":"before")}function ss(e,i,R,A,F){if(e){i.doc.direction=="rtl"&&(F=-F);var J=ht(R,i.doc.direction);if(J){var oe=F<0?re(J):J[0],he=F<0==(oe.level==1),ve=he?"after":"before",we;if(oe.level>0||i.doc.direction=="rtl"){var Be=We(i,R);we=F<0?R.text.length-1:0;var Xe=Ze(i,Be,we).top;we=Je(function(ut){return Ze(i,Be,ut).top==Xe},F<0==(oe.level==1)?oe.from:oe.to-1,we),ve=="before"&&(we=as(R,we,1))}else we=F<0?oe.to:oe.from;return new wt(A,we,ve)}}return new wt(A,F<0?R.text.length:0,F<0?"before":"after")}function Il(e,i,R,A){var F=ht(i,e.doc.direction);if(!F)return os(i,R,A);R.ch>=i.text.length?(R.ch=i.text.length,R.sticky="before"):R.ch<=0&&(R.ch=0,R.sticky="after");var J=at(F,R.ch,R.sticky),oe=F[J];if(e.doc.direction=="ltr"&&oe.level%2==0&&(A>0?oe.to>R.ch:oe.from=oe.from&&ut>=Be.begin)){var ot=Xe?"before":"after";return new wt(R.line,ut,ot)}}var Ot=function(ir,_r,ar){for(var Rr=function(Zn,Ai){return Ai?new wt(R.line,he(Zn,1),"before"):new wt(R.line,Zn,"after")};ir>=0&&ir0==(qr.level!=1),wn=Gr?ar.begin:he(ar.end,-1);if(qr.from<=wn&&wn0?Be.end:he(Be.begin,-1);return Qt!=null&&!(A>0&&Qt==i.text.length)&&(Bt=Ot(A>0?0:F.length-1,A,we(Qt)),Bt)?Bt:null}var So={selectAll:Ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),De)},killLine:function(e){return ao(e,function(i){if(i.empty()){var R=ur(e.doc,i.head.line).text.length;return i.head.ch==R&&i.head.line0)F=new wt(F.line,F.ch+1),e.replaceRange(J.charAt(F.ch-1)+J.charAt(F.ch-2),wt(F.line,F.ch-2),F,"+transpose");else if(F.line>e.doc.first){var oe=ur(e.doc,F.line-1).text;oe&&(F=new wt(F.line,1),e.replaceRange(J.charAt(0)+e.doc.lineSeparator()+oe.charAt(oe.length-1),wt(F.line-1,oe.length-1),F,"+transpose"))}}R.push(new Nn(F,F))}e.setSelections(R)})},newlineAndIndent:function(e){return Wi(e,function(){for(var i=e.listSelections(),R=i.length-1;R>=0;R--)e.replaceRange(e.doc.lineSeparator(),i[R].anchor,i[R].head,"+input");i=e.listSelections();for(var A=0;Ae&&$t(i,this.pos)==0&&R==this.button};var Oo,Ao;function Hl(e,i){var R=+new Date;return Ao&&Ao.compare(R,e,i)?(Oo=Ao=null,"triple"):Oo&&Oo.compare(R,e,i)?(Ao=new us(R,e,i),Oo=null,"double"):(Oo=new us(R,e,i),Ao=null,"single")}function tl(e){var i=this,R=i.display;if(lt(i,e)||R.activeTouch&&R.input.supportsTouch())return;if(R.input.ensurePolled(),R.shift=e.shiftKey,yn(R,e)){d||(R.scroller.draggable=!1,setTimeout(function(){return R.scroller.draggable=!0},100));return}if(cs(i,e))return;var A=di(i,e),F=$e(e),J=A?Hl(A,F):"single";if(window.focus(),F==1&&i.state.selectingText&&i.state.selectingText(e),A&&zl(i,F,A,J,e))return;F==1?A?Gl(i,A,J,e):et(e)==R.scroller&&Ce(e):F==2?(A&&Uo(i.doc,A),setTimeout(function(){return R.input.focus()},20)):F==3&&(k?i.display.input.onContextMenu(e):wa(i))}function zl(e,i,R,A,F){var J="Click";return A=="double"?J="Double"+J:A=="triple"&&(J="Triple"+J),J=(i==1?"Left":i==2?"Middle":"Right")+J,To(e,Gs(J,F),F,function(oe){if(typeof oe=="string"&&(oe=So[oe]),!oe)return!1;var he=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),he=oe(e,R)!=Ae}finally{e.state.suppressEdits=!1}return he})}function Kl(e,i,R){var A=e.getOption("configureMouse"),F=A?A(e,i,R):{};if(F.unit==null){var J=t?R.shiftKey&&R.metaKey:R.altKey;F.unit=J?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(F.extend==null||e.doc.extend)&&(F.extend=e.doc.extend||R.shiftKey),F.addNew==null&&(F.addNew=a?R.metaKey:R.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(a?R.altKey:R.ctrlKey)),F}function Gl(e,i,R,A){S?setTimeout(U(Ba,e),0):e.curOp.focus=G();var F=Kl(e,R,A),J=e.doc.sel,oe;e.options.dragDrop&&bt&&!e.isReadOnly()&&R=="single"&&(oe=J.contains(i))>-1&&($t((oe=J.ranges[oe]).from(),i)<0||i.xRel>0)&&($t(oe.to(),i)>0||i.xRel<0)?Vl(e,A,i,F):Xl(e,A,i,F)}function Vl(e,i,R,A){var F=e.display,J=!1,oe=pi(e,function(we){d&&(F.scroller.draggable=!1),e.state.draggingText=!1,ft(F.wrapper.ownerDocument,"mouseup",oe),ft(F.wrapper.ownerDocument,"mousemove",he),ft(F.scroller,"dragstart",ve),ft(F.scroller,"drop",oe),J||(Ce(we),A.addNew||Uo(e.doc,R,null,null,A.extend),d&&!u||S&&b==9?setTimeout(function(){F.wrapper.ownerDocument.body.focus({preventScroll:!0}),F.input.focus()},20):F.input.focus())}),he=function(we){J=J||Math.abs(i.clientX-we.clientX)+Math.abs(i.clientY-we.clientY)>=10},ve=function(){return J=!0};d&&(F.scroller.draggable=!0),e.state.draggingText=oe,oe.copy=!A.moveOnDrag,F.scroller.dragDrop&&F.scroller.dragDrop(),Re(F.wrapper.ownerDocument,"mouseup",oe),Re(F.wrapper.ownerDocument,"mousemove",he),Re(F.scroller,"dragstart",ve),Re(F.scroller,"drop",oe),wa(e),setTimeout(function(){return F.input.focus()},20)}function rl(e,i,R){if(R=="char")return new Nn(i,i);if(R=="word")return e.findWordAt(i);if(R=="line")return new Nn(wt(i.line,0),z(e.doc,wt(i.line+1,0)));var A=R(e,i);return new Nn(A.from,A.to)}function Xl(e,i,R,A){var F=e.display,J=e.doc;Ce(i);var oe,he,ve=J.sel,we=ve.ranges;if(A.addNew&&!A.extend?(he=J.sel.contains(R),he>-1?oe=we[he]:oe=new Nn(R,R)):(oe=J.sel.primary(),he=J.sel.primIndex),A.unit=="rectangle")A.addNew||(oe=new Nn(R,R)),R=di(e,i,!0,!0),he=-1;else{var Be=rl(e,R,A.unit);A.extend?oe=ns(oe,Be.anchor,Be.head,A.extend):oe=Be}A.addNew?he==-1?(he=we.length,Ni(J,aa(e,we.concat([oe]),he),{scroll:!1,origin:"*mouse"})):we.length>1&&we[he].empty()&&A.unit=="char"&&!A.extend?(Ni(J,aa(e,we.slice(0,he).concat(we.slice(he+1)),0),{scroll:!1,origin:"*mouse"}),ve=J.sel):is(J,he,oe,ye):(he=0,Ni(J,new zi([oe],0),ye),ve=J.sel);var Xe=R;function ut(ar){if($t(Xe,ar)==0)return;if(Xe=ar,A.unit=="rectangle"){for(var Rr=[],qr=e.options.tabSize,Gr=X(ur(J,R.line).text,R.ch,qr),wn=X(ur(J,ar.line).text,ar.ch,qr),Zn=Math.min(Gr,wn),Ai=Math.max(Gr,wn),oi=Math.min(R.line,ar.line),ea=Math.min(e.lastLine(),Math.max(R.line,ar.line));oi<=ea;oi++){var Ji=ur(J,oi).text,yi=xe(Ji,Zn,qr);Zn==Ai?Rr.push(new Nn(wt(oi,yi),wt(oi,yi))):Ji.length>yi&&Rr.push(new Nn(wt(oi,yi),wt(oi,xe(Ji,Ai,qr))))}Rr.length||Rr.push(new Nn(R,R)),Ni(J,aa(e,ve.ranges.slice(0,he).concat(Rr),he),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ar)}else{var Qi=oe,ki=rl(e,ar,A.unit),Si=Qi.anchor,bi;$t(ki.anchor,Si)>0?(bi=ki.head,Si=On(Qi.from(),ki.anchor)):(bi=ki.anchor,Si=_n(Qi.to(),ki.head));var fi=ve.ranges.slice(0);fi[he]=$l(e,new Nn(z(J,Si),bi)),Ni(J,aa(e,fi,he),ye)}}var ot=F.wrapper.getBoundingClientRect(),Ot=0;function Bt(ar){var Rr=++Ot,qr=di(e,ar,!0,A.unit=="rectangle");if(!qr)return;if($t(qr,Xe)!=0){e.curOp.focus=G(),ut(qr);var Gr=La(F,J);(qr.line>=Gr.to||qr.lineot.bottom?20:0;wn&&setTimeout(pi(e,function(){if(Ot!=Rr)return;F.scroller.scrollTop+=wn,Bt(ar)}),50)}}function Qt(ar){e.state.selectingText=!1,Ot=Infinity,ar&&(Ce(ar),F.input.focus()),ft(F.wrapper.ownerDocument,"mousemove",ir),ft(F.wrapper.ownerDocument,"mouseup",_r),J.history.lastSelOrigin=null}var ir=pi(e,function(ar){ar.buttons===0||!$e(ar)?Qt(ar):Bt(ar)}),_r=pi(e,Qt);e.state.selectingText=_r,Re(F.wrapper.ownerDocument,"mousemove",ir),Re(F.wrapper.ownerDocument,"mouseup",_r)}function $l(e,i){var R=i.anchor,A=i.head,F=ur(e.doc,R.line);if($t(R,A)==0&&R.sticky==A.sticky)return i;var J=ht(F);if(!J)return i;var oe=at(J,R.ch,R.sticky),he=J[oe];if(he.from!=R.ch&&he.to!=R.ch)return i;var ve=oe+(he.from==R.ch==(he.level!=1)?0:1);if(ve==0||ve==J.length)return i;var we;if(A.line!=R.line)we=(A.line-R.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Be=at(J,A.ch,A.sticky),Xe=Be-oe||(A.ch-R.ch)*(he.level==1?-1:1);Be==ve-1||Be==ve?we=Xe<0:we=Xe>0}var ut=J[ve+(we?-1:0)],ot=we==(ut.level==1),Ot=ot?ut.from:ut.to,Bt=ot?"after":"before";return R.ch==Ot&&R.sticky==Bt?i:new Nn(new wt(R.line,Ot,Bt),A)}function nl(e,i,R,A){var F,J;if(i.touches)F=i.touches[0].clientX,J=i.touches[0].clientY;else try{F=i.clientX,J=i.clientY}catch(ut){return!1}if(F>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;A&&Ce(i);var oe=e.display,he=oe.lineDiv.getBoundingClientRect();if(J>he.bottom||!Le(e,R))return ke(i);J-=he.top-oe.viewOffset;for(var ve=0;ve=F){var Be=Bn(e.doc,J),Xe=e.display.gutterSpecs[ve];return Qe(e,R,e,Be,Xe.className,i),ke(i)}}}function cs(e,i){return nl(e,i,"gutterClick",!0)}function il(e,i){if(yn(e.display,i)||Yl(e,i))return;if(lt(e,i,"contextmenu"))return;k||e.display.input.onContextMenu(i)}function Yl(e,i){return Le(e,"gutterContextMenu")?nl(e,i,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nn(e)}var oo={toString:function(){return"CodeMirror.Init"}},ol={},Vo={};function Jl(e){var i=e.optionHandlers;function R(A,F,J,oe){e.defaults[A]=F,J&&(i[A]=oe?function(he,ve,we){we!=oo&&J(he,ve,we)}:J)}e.defineOption=R,e.Init=oo,R("value","",function(A,F){return A.setValue(F)},!0),R("mode",null,function(A,F){A.doc.modeOption=F,Ra(A)},!0),R("indentUnit",2,Ra,!0),R("indentWithTabs",!1),R("smartIndent",!0),R("tabSize",4,function(A){vo(A),nn(A),zn(A)},!0),R("lineSeparator",null,function(A,F){if(A.doc.lineSep=F,!F)return;var J=[],oe=A.doc.first;A.doc.iter(function(ve){for(var we=0;;){var Be=ve.text.indexOf(F,we);if(Be==-1)break;we=Be+F.length,J.push(wt(oe,Be))}oe++});for(var he=J.length-1;he>=0;he--)ro(A.doc,F,J[he],wt(J[he].line,J[he].ch+F.length))}),R("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(A,F,J){A.state.specialChars=new RegExp(F.source+(F.test(" ")?"":"| "),"g"),J!=oo&&A.refresh()}),R("specialCharPlaceholder",pr,function(A){return A.refresh()},!0),R("electricChars",!0),R("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),R("spellcheck",!1,function(A,F){return A.getInputField().spellcheck=F},!0),R("autocorrect",!1,function(A,F){return A.getInputField().autocorrect=F},!0),R("autocapitalize",!1,function(A,F){return A.getInputField().autocapitalize=F},!0),R("rtlMoveVisually",!w),R("wholeLineUpdateBefore",!0),R("theme","default",function(A){al(A),ma(A)},!0),R("keyMap","default",function(A,F,J){var oe=Ko(F),he=J!=oo&&Ko(J);he&&he.detach&&he.detach(A,oe),oe.attach&&oe.attach(A,he||null)}),R("extraKeys",null),R("configureMouse",null),R("lineWrapping",!1,Zl,!0),R("gutters",[],function(A,F){A.display.gutterSpecs=Hi(F,A.options.lineNumbers),ma(A)},!0),R("fixedGutter",!0,function(A,F){A.display.gutters.style.left=F?gi(A.display)+"px":"0",A.refresh()},!0),R("coverGutterNextToScrollbar",!1,function(A){return lr(A)},!0),R("scrollbarStyle","native",function(A){pa(A),lr(A),A.display.scrollbars.setScrollTop(A.doc.scrollTop),A.display.scrollbars.setScrollLeft(A.doc.scrollLeft)},!0),R("lineNumbers",!1,function(A,F){A.display.gutterSpecs=Hi(A.options.gutters,F),ma(A)},!0),R("firstLineNumber",1,ma,!0),R("lineNumberFormatter",function(A){return A},ma,!0),R("showCursorWhenSelecting",!1,Mn,!0),R("resetSelectionOnContextMenu",!0),R("lineWiseCopyCut",!0),R("pasteLinesPerSelection",!0),R("selectionsMayTouch",!1),R("readOnly",!1,function(A,F){F=="nocursor"&&(ua(A),A.display.input.blur()),A.display.input.readOnlyChanged(F)}),R("screenReaderLabel",null,function(A,F){F=F===""?null:F,A.display.input.screenReaderLabelChanged(F)}),R("disableInput",!1,function(A,F){F||A.display.input.reset()},!0),R("dragDrop",!0,Ql),R("allowDropFileTypes",null),R("cursorBlinkRate",530),R("cursorScrollMargin",0),R("cursorHeight",1,Mn,!0),R("singleCursorHeightPerLine",!0,Mn,!0),R("workTime",100),R("workDelay",100),R("flattenSpans",!0,vo,!0),R("addModeClass",!1,vo,!0),R("pollInterval",100),R("undoDepth",200,function(A,F){return A.doc.history.undoDepth=F}),R("historyEventDelay",1250),R("viewportMargin",10,function(A){return A.refresh()},!0),R("maxHighlightLength",1e4,vo,!0),R("moveInputWithCursor",!0,function(A,F){F||A.display.input.resetPosition()}),R("tabindex",null,function(A,F){return A.display.input.getField().tabIndex=F||""}),R("autofocus",null),R("direction","ltr",function(A,F){return A.doc.setDirection(F)},!0),R("phrases",null)}function Ql(e,i,R){var A=R&&R!=oo;if(!i!=!A){var F=e.display.dragFunctions,J=i?Re:ft;J(e.display.scroller,"dragstart",F.start),J(e.display.scroller,"dragenter",F.enter),J(e.display.scroller,"dragover",F.over),J(e.display.scroller,"dragleave",F.leave),J(e.display.scroller,"drop",F.drop)}}function Zl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),Lr(e)),Oi(e),zn(e),nn(e),setTimeout(function(){return lr(e)},100)}function ri(e,i){var R=this;if(!(this instanceof ri))return new ri(e,i);this.options=i=i?W(i):{},W(ol,i,!1);var A=i.value;typeof A=="string"?A=new Yi(A,i.mode,null,i.lineSeparator,i.direction):i.mode&&(A.modeOption=i.mode),this.doc=A;var F=new ri.inputStyles[i.inputStyle](this),J=this.display=new Ka(e,A,F,i);J.wrapper.CodeMirror=this,al(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),pa(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ne,keySeq:null,specialChars:null},i.autofocus&&!r&&J.input.focus(),S&&b<11&&setTimeout(function(){return R.display.input.reset(!0)},20),ql(this),Dl(),Kn(this),this.curOp.forceUpdate=!0,gs(this,A),i.autofocus&&!r||this.hasFocus()?setTimeout(function(){R.hasFocus()&&!R.state.focused&&la(R)},20):ua(this);for(var oe in Vo)Vo.hasOwnProperty(oe)&&Vo[oe](this,i[oe],oo);wi(this),i.finishInit&&i.finishInit(this);for(var he=0;he20*20}Re(i.scroller,"touchstart",function(ve){if(!lt(e,ve)&&!J(ve)&&!cs(e,ve)){i.input.ensurePolled(),clearTimeout(R);var we=+new Date;i.activeTouch={start:we,moved:!1,prev:we-A.end<=300?A:null},ve.touches.length==1&&(i.activeTouch.left=ve.touches[0].pageX,i.activeTouch.top=ve.touches[0].pageY)}}),Re(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Re(i.scroller,"touchend",function(ve){var we=i.activeTouch;if(we&&!yn(i,ve)&&we.left!=null&&!we.moved&&new Date-we.start<300){var Be=e.coordsChar(i.activeTouch,"page"),Xe;!we.prev||oe(we,we.prev)?Xe=new Nn(Be,Be):!we.prev.prev||oe(we,we.prev.prev)?Xe=e.findWordAt(Be):Xe=new Nn(wt(Be.line,0),z(e.doc,wt(Be.line+1,0))),e.setSelection(Xe.anchor,Xe.head),e.focus(),Ce(ve)}F()}),Re(i.scroller,"touchcancel",F),Re(i.scroller,"scroll",function(){i.scroller.clientHeight&&(fa(e,i.scroller.scrollTop),$i(e,i.scroller.scrollLeft,!0),Qe(e,"scroll",e))}),Re(i.scroller,"mousewheel",function(ve){return po(e,ve)}),Re(i.scroller,"DOMMouseScroll",function(ve){return po(e,ve)}),Re(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(ve){lt(e,ve)||Ne(ve)},over:function(ve){lt(e,ve)||(Rl(e,ve),Ne(ve))},start:function(ve){return Al(e,ve)},drop:pi(e,Ol),leave:function(ve){lt(e,ve)||Ws(e)}};var he=i.input.getField();Re(he,"keyup",function(ve){return Zs.call(e,ve)}),Re(he,"keydown",pi(e,Qs)),Re(he,"keypress",pi(e,el)),Re(he,"focus",function(ve){return la(e,ve)}),Re(he,"blur",function(ve){return ua(e,ve)})}var ds=[];ri.defineInitHook=function(e){return ds.push(e)};function Ro(e,i,R,A){var F=e.doc,J;R==null&&(R="add"),R=="smart"&&(F.mode.indent?J=Vt(e,i).state:R="prev");var oe=e.options.tabSize,he=ur(F,i),ve=X(he.text,null,oe);he.stateAfter&&(he.stateAfter=null);var we=he.text.match(/^\s*/)[0],Be;if(!A&&!/\S/.test(he.text))Be=0,R="not";else if(R=="smart"&&(Be=F.mode.indent(J,he.text.slice(we.length),he.text),Be==Ae||Be>150)){if(!A)return;R="prev"}R=="prev"?i>F.first?Be=X(ur(F,i-1).text,null,oe):Be=0:R=="add"?Be=ve+e.options.indentUnit:R=="subtract"?Be=ve-e.options.indentUnit:typeof R=="number"&&(Be=ve+R),Be=Math.max(0,Be);var Xe="",ut=0;if(e.options.indentWithTabs)for(var ot=Math.floor(Be/oe);ot;--ot)ut+=oe,Xe+=" ";if(utoe,ve=mr(i),we=null;if(he&&A.ranges.length>1)if(ya&&ya.text.join(` `)==i){if(A.ranges.length%ya.text.length==0){we=[];for(var Be=0;Be=0;ut--){var ot=A.ranges[ut],Ot=ot.from(),Bt=ot.to();ot.empty()&&(R&&R>0?Ot=wt(Ot.line,Ot.ch-R):e.state.overwrite&&!he?Bt=wt(Bt.line,Math.min(ur(J,Bt.line).text.length,Bt.ch+re(ve).length)):he&&ya&&ya.lineWise&&ya.text.join(` `)==ve.join(` -`)&&(Ot=Bt=wt(Ot.line,0)));var Qt={from:Ot,to:Bt,text:we?we[ut%we.length]:ve,origin:F||(he?"paste":e.state.cutIncoming>oe?"cut":"+input")};to(e.doc,Qt),Zt(e,"inputRead",e,Qt)}i&&!he&&ll(e,i),ba(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Xe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function sl(e,i){var R=e.clipboardData&&e.clipboardData.getData("Text");if(R)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&Wi(i,function(){return fs(i,R,0,null,"paste")}),!0}function ll(e,i){if(!e.options.electricChars||!e.options.smartIndent)return;for(var R=e.doc.sel,A=R.ranges.length-1;A>=0;A--){var F=R.ranges[A];if(F.head.ch>100||A&&R.ranges[A-1].head.line==F.head.line)continue;var J=e.getModeAt(F.head),oe=!1;if(J.electricChars){for(var he=0;he-1){oe=Ro(e,F.head.line,"smart");break}}else J.electricInput&&(J.electricInput.test(ur(e.doc,F.head.line).text.slice(0,F.head.ch))&&(oe=Ro(e,F.head.line,"smart")));oe&&Zt(e,"electricInput",e,F.head.line)}}function ul(e){for(var i=[],R=[],A=0;AJ&&(Ro(this,he.head.line,A,!0),J=he.head.line,oe==this.doc.sel.primIndex&&ba(this));else{var ve=he.from(),we=he.to(),Be=Math.max(J,ve.line);J=Math.min(this.lastLine(),we.line-(we.ch?0:1))+1;for(var Xe=Be;Xe0&&is(this.doc,oe,new Nn(ve,ut[oe].to()),De)}}}),getTokenAt:function(A,F){return En(this,A,F)},getLineTokens:function(A,F){return En(this,wt(A),F,!0)},getTokenTypeAt:function(A){A=z(this.doc,A);var F=Rt(this,ur(this.doc,A.line)),J=0,oe=(F.length-1)/2,he=A.ch,ve;if(he==0)ve=F[2];else for(;;){var we=J+oe>>1;if((we?F[we*2-1]:0)>=he)oe=we;else if(F[we*2+1]ve&&(A=ve,oe=!0),he=ur(this.doc,A)}else he=A;return xn(this,he,{top:0,left:0},F||"page",J||oe).top+(oe?this.doc.height-cr(he):0)},defaultTextHeight:function(){return ti(this.display)},defaultCharWidth:function(){return ci(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(A,F,J,oe,he){var ve=this.display;A=pn(this,z(this.doc,A));var we=A.bottom,Be=A.left;if(F.style.position="absolute",F.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(F),ve.sizer.appendChild(F),oe=="over")we=A.top;else if(oe=="above"||oe=="near"){var Xe=Math.max(ve.wrapper.clientHeight,this.doc.height),ut=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(oe=="above"||A.bottom+F.offsetHeight>Xe)&&A.top>F.offsetHeight?we=A.top-F.offsetHeight:A.bottom+F.offsetHeight<=Xe&&(we=A.bottom),Be+F.offsetWidth>ut&&(Be=ut-F.offsetWidth)}F.style.top=we+"px",F.style.left=F.style.right="",he=="right"?(Be=ve.sizer.clientWidth-F.offsetWidth,F.style.right="0px"):(he=="left"?Be=0:he=="middle"&&(Be=(ve.sizer.clientWidth-F.offsetWidth)/2),F.style.left=Be+"px"),J&&Ma(this,{left:Be,top:we,right:Be+F.offsetWidth,bottom:we+F.offsetHeight})},triggerOnKeyDown:Pi(Qs),triggerOnKeyPress:Pi(el),triggerOnKeyUp:Zs,triggerOnMouseDown:Pi(tl),execCommand:function(A){if(_o.hasOwnProperty(A))return _o[A].call(null,this)},triggerElectric:Pi(function(A){ll(this,A)}),findPosH:function(A,F,J,oe){var he=1;F<0&&(he=-1,F=-F);for(var ve=z(this.doc,A),we=0;we0&&Be(J.charAt(oe-1));)--oe;for(;he.5||this.options.lineWrapping)&&Oi(this),Qe(this,"refresh",this)}),swapDoc:Pi(function(A){var F=this.doc;return F.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,A),nn(this),this.display.input.reset(),da(this,A.scrollLeft,A.scrollTop),this.curOp.forceScroll=!0,Zt(this,"swapDoc",this,F),F}),phrase:function(A){var F=this.options.phrases;return F&&Object.prototype.hasOwnProperty.call(F,A)?F[A]:A},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ie(e),e.registerHelper=function(A,F,J){R.hasOwnProperty(A)||(R[A]=e[A]={_global:[]}),R[A][F]=J},e.registerGlobalHelper=function(A,F,J,oe){e.registerHelper(A,F,oe),R[A]._global.push({pred:J,val:oe})}}function hs(e,i,R,A,F){var J=i,oe=R,he=ur(e,i.line),ve=F&&e.direction=="rtl"?-R:R;function we(){var Sr=i.line+ve;return Sr=e.first+e.size?!1:(i=new wt(Sr,i.ch,i.sticky),he=ur(e,Sr))}function Be(Sr){var ar;if(A=="codepoint"){var Rr=he.text.charCodeAt(i.ch+(A>0?0:-1));isNaN(Rr)?ar=null:ar=new wt(i.line,Math.max(0,Math.min(he.text.length,i.ch+R*(Rr>=55296&&Rr<56320?2:1))),-R)}else F?ar=Il(e.cm,he,i,R):ar=os(he,i,R);if(ar==null)if(!Sr&&we())i=ss(F,e.cm,he,i.line,ve);else return!1;else i=ar;return!0}if(A=="char"||A=="codepoint")Be();else if(A=="column")Be(!0);else if(A=="word"||A=="group")for(var Xe=null,ut=A=="group",ot=e.cm&&e.cm.getHelper(i,"wordChars"),Ot=!0;!(R<0&&!Be(!Ot));Ot=!1){var Bt=he.text.charAt(i.ch)||` +`)&&(Ot=Bt=wt(Ot.line,0)));var Qt={from:Ot,to:Bt,text:we?we[ut%we.length]:ve,origin:F||(he?"paste":e.state.cutIncoming>oe?"cut":"+input")};to(e.doc,Qt),Zt(e,"inputRead",e,Qt)}i&&!he&&ll(e,i),ba(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Xe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function sl(e,i){var R=e.clipboardData&&e.clipboardData.getData("Text");if(R)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&Wi(i,function(){return fs(i,R,0,null,"paste")}),!0}function ll(e,i){if(!e.options.electricChars||!e.options.smartIndent)return;for(var R=e.doc.sel,A=R.ranges.length-1;A>=0;A--){var F=R.ranges[A];if(F.head.ch>100||A&&R.ranges[A-1].head.line==F.head.line)continue;var J=e.getModeAt(F.head),oe=!1;if(J.electricChars){for(var he=0;he-1){oe=Ro(e,F.head.line,"smart");break}}else J.electricInput&&(J.electricInput.test(ur(e.doc,F.head.line).text.slice(0,F.head.ch))&&(oe=Ro(e,F.head.line,"smart")));oe&&Zt(e,"electricInput",e,F.head.line)}}function ul(e){for(var i=[],R=[],A=0;AJ&&(Ro(this,he.head.line,A,!0),J=he.head.line,oe==this.doc.sel.primIndex&&ba(this));else{var ve=he.from(),we=he.to(),Be=Math.max(J,ve.line);J=Math.min(this.lastLine(),we.line-(we.ch?0:1))+1;for(var Xe=Be;Xe0&&is(this.doc,oe,new Nn(ve,ut[oe].to()),De)}}}),getTokenAt:function(A,F){return En(this,A,F)},getLineTokens:function(A,F){return En(this,wt(A),F,!0)},getTokenTypeAt:function(A){A=z(this.doc,A);var F=Rt(this,ur(this.doc,A.line)),J=0,oe=(F.length-1)/2,he=A.ch,ve;if(he==0)ve=F[2];else for(;;){var we=J+oe>>1;if((we?F[we*2-1]:0)>=he)oe=we;else if(F[we*2+1]ve&&(A=ve,oe=!0),he=ur(this.doc,A)}else he=A;return xn(this,he,{top:0,left:0},F||"page",J||oe).top+(oe?this.doc.height-cr(he):0)},defaultTextHeight:function(){return ti(this.display)},defaultCharWidth:function(){return ci(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(A,F,J,oe,he){var ve=this.display;A=pn(this,z(this.doc,A));var we=A.bottom,Be=A.left;if(F.style.position="absolute",F.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(F),ve.sizer.appendChild(F),oe=="over")we=A.top;else if(oe=="above"||oe=="near"){var Xe=Math.max(ve.wrapper.clientHeight,this.doc.height),ut=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(oe=="above"||A.bottom+F.offsetHeight>Xe)&&A.top>F.offsetHeight?we=A.top-F.offsetHeight:A.bottom+F.offsetHeight<=Xe&&(we=A.bottom),Be+F.offsetWidth>ut&&(Be=ut-F.offsetWidth)}F.style.top=we+"px",F.style.left=F.style.right="",he=="right"?(Be=ve.sizer.clientWidth-F.offsetWidth,F.style.right="0px"):(he=="left"?Be=0:he=="middle"&&(Be=(ve.sizer.clientWidth-F.offsetWidth)/2),F.style.left=Be+"px"),J&&Ma(this,{left:Be,top:we,right:Be+F.offsetWidth,bottom:we+F.offsetHeight})},triggerOnKeyDown:Pi(Qs),triggerOnKeyPress:Pi(el),triggerOnKeyUp:Zs,triggerOnMouseDown:Pi(tl),execCommand:function(A){if(So.hasOwnProperty(A))return So[A].call(null,this)},triggerElectric:Pi(function(A){ll(this,A)}),findPosH:function(A,F,J,oe){var he=1;F<0&&(he=-1,F=-F);for(var ve=z(this.doc,A),we=0;we0&&Be(J.charAt(oe-1));)--oe;for(;he.5||this.options.lineWrapping)&&Oi(this),Qe(this,"refresh",this)}),swapDoc:Pi(function(A){var F=this.doc;return F.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,A),nn(this),this.display.input.reset(),da(this,A.scrollLeft,A.scrollTop),this.curOp.forceScroll=!0,Zt(this,"swapDoc",this,F),F}),phrase:function(A){var F=this.options.phrases;return F&&Object.prototype.hasOwnProperty.call(F,A)?F[A]:A},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ie(e),e.registerHelper=function(A,F,J){R.hasOwnProperty(A)||(R[A]=e[A]={_global:[]}),R[A][F]=J},e.registerGlobalHelper=function(A,F,J,oe){e.registerHelper(A,F,oe),R[A]._global.push({pred:J,val:oe})}}function hs(e,i,R,A,F){var J=i,oe=R,he=ur(e,i.line),ve=F&&e.direction=="rtl"?-R:R;function we(){var _r=i.line+ve;return _r=e.first+e.size?!1:(i=new wt(_r,i.ch,i.sticky),he=ur(e,_r))}function Be(_r){var ar;if(A=="codepoint"){var Rr=he.text.charCodeAt(i.ch+(A>0?0:-1));isNaN(Rr)?ar=null:ar=new wt(i.line,Math.max(0,Math.min(he.text.length,i.ch+R*(Rr>=55296&&Rr<56320?2:1))),-R)}else F?ar=Il(e.cm,he,i,R):ar=os(he,i,R);if(ar==null)if(!_r&&we())i=ss(F,e.cm,he,i.line,ve);else return!1;else i=ar;return!0}if(A=="char"||A=="codepoint")Be();else if(A=="column")Be(!0);else if(A=="word"||A=="group")for(var Xe=null,ut=A=="group",ot=e.cm&&e.cm.getHelper(i,"wordChars"),Ot=!0;!(R<0&&!Be(!Ot));Ot=!1){var Bt=he.text.charAt(i.ch)||` `,Qt=V(Bt,ot)?"w":ut&&Bt==` `?"n":!ut||/\s/.test(Bt)?null:"p";if(ut&&!Ot&&!Qt&&(Qt="s"),Xe&&Xe!=Qt){R<0&&(R=1,Be(),i.sticky="after");break}if(Qt&&(Xe=Qt),R>0&&!Be(!Ot))break}var ir=Wo(e,i,J,oe,!0);return en(J,ir)&&(ir.hitSide=!0),ir}function fl(e,i,R,A){var F=e.doc,J=i.left,oe;if(A=="page"){var he=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(he-.5*ti(e.display),3);oe=(R>0?i.bottom:i.top)+R*ve}else A=="line"&&(oe=R>0?i.bottom+3:i.top-3);for(var we;!(we=dn(e,J,oe),!we.outside);){if(R<0?oe<=0:oe>=F.height){we.hitSide=!0;break}oe+=R*5}return we}var Gn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Gn.prototype.init=function(e){var i=this,R=this,A=R.cm,F=R.div=e.lineDiv;cl(F,A.options.spellcheck,A.options.autocorrect,A.options.autocapitalize);function J(he){for(var ve=he.target;ve;ve=ve.parentNode){if(ve==F)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}Re(F,"paste",function(he){if(!J(he)||lt(A,he)||sl(he,A))return;b<=11&&setTimeout(pi(A,function(){return i.updateFromDOM()}),20)}),Re(F,"compositionstart",function(he){i.composing={data:he.data,done:!1}}),Re(F,"compositionupdate",function(he){i.composing||(i.composing={data:he.data,done:!1})}),Re(F,"compositionend",function(he){i.composing&&(he.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Re(F,"touchstart",function(){return R.forceCompositionEnd()}),Re(F,"input",function(){i.composing||i.readFromDOMSoon()});function oe(he){if(!J(he)||lt(A,he))return;if(A.somethingSelected())Xo({lineWise:!1,text:A.getSelections()}),he.type=="cut"&&A.replaceSelection("",null,"cut");else if(A.options.lineWiseCopyCut){var ve=ul(A);Xo({lineWise:!0,text:ve.text}),he.type=="cut"&&A.operation(function(){A.setSelections(ve.ranges,0,De),A.replaceSelection("",null,"cut")})}else return;if(he.clipboardData){he.clipboardData.clearData();var we=ya.text.join(` `);if(he.clipboardData.setData("Text",we),he.clipboardData.getData("Text")==we){he.preventDefault();return}}var Be=dl(),Xe=Be.firstChild;A.display.lineSpace.insertBefore(Be,A.display.lineSpace.firstChild),Xe.value=ya.text.join(` -`);var ut=document.activeElement;K(Xe),setTimeout(function(){A.display.lineSpace.removeChild(Be),ut.focus(),ut==F&&R.showPrimarySelection()},50)}Re(F,"copy",oe),Re(F,"cut",oe)},Gn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Gn.prototype.prepareSelection=function(){var e=Ui(this.cm,!1);return e.focus=document.activeElement==this.div,e},Gn.prototype.showSelection=function(e,i){if(!e||!this.cm.display.view.length)return;(e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Gn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gn.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,R=i.doc.sel.primary(),A=R.from(),F=R.to();if(i.display.viewTo==i.display.viewFrom||A.line>=i.display.viewTo||F.line=i.display.viewFrom&&hl(i,A)||{node:he[0].measure.map[2],offset:0},we=F.linee.firstLine()&&(A=wt(A.line-1,ur(e.doc,A.line-1).length)),F.ch==ur(e.doc,F.line).text.length&&F.linei.viewTo-1)return!1;var J,oe,he;A.line==i.viewFrom||(J=Hn(e,A.line))==0?(oe=Zr(i.view[0].line),he=i.view[0].node):(oe=Zr(i.view[J].line),he=i.view[J-1].node.nextSibling);var ve=Hn(e,F.line),we,Be;if(ve==i.view.length-1?(we=i.viewTo-1,Be=i.lineDiv.lastChild):(we=Zr(i.view[ve+1].line)-1,Be=i.view[ve+1].node.previousSibling),!he)return!1;for(var Xe=e.doc.splitLines(ru(e,he,Be,oe,we)),ut=Xn(e.doc,wt(oe,0),wt(we,ur(e.doc,we).text.length));Xe.length>1&&ut.length>1;)if(re(Xe)==re(ut))Xe.pop(),ut.pop(),we--;else if(Xe[0]==ut[0])Xe.shift(),ut.shift(),oe++;else break;for(var ot=0,Ot=0,Bt=Xe[0],Qt=ut[0],ir=Math.min(Bt.length,Qt.length);otA.ch&&Sr.charCodeAt(Sr.length-Ot-1)==ar.charCodeAt(ar.length-Ot-1);)ot--,Ot++;Xe[Xe.length-1]=Sr.slice(0,Sr.length-Ot).replace(/^\u200b+/,""),Xe[0]=Xe[0].slice(ot).replace(/\u200b+$/,"");var qr=wt(oe,ot),Gr=wt(we,ut.length?re(ut).length-Ot:0);if(Xe.length>1||Xe[0]||$t(qr,Gr))return ro(e.doc,Xe,qr,Gr,"+input"),!0},Gn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gn.prototype.reset=function(){this.forceCompositionEnd()},Gn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Gn.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Gn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return zn(e.cm)})},Gn.prototype.setUneditable=function(e){e.contentEditable="false"},Gn.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pi(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Gn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Gn.prototype.onContextMenu=function(){},Gn.prototype.resetPosition=function(){},Gn.prototype.needsContentAttribute=!0;function hl(e,i){var R=Ve(e,i.line);if(!R||R.hidden)return null;var A=ur(e.doc,i.line),F=Se(R,A,i.line),J=ht(A,e.doc.direction),oe="left";if(J){var he=at(J,i.ch);oe=he%2?"right":"left"}var ve=kt(F.map,i.ch,oe);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function tu(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function so(e,i){return i&&(e.bad=!0),e}function ru(e,i,R,A,F){var J="",oe=!1,he=e.doc.lineSeparator(),ve=!1;function we(ot){return function(Ot){return Ot.id==ot}}function Be(){oe&&(J+=he,ve&&(J+=he),oe=ve=!1)}function Xe(ot){ot&&(Be(),J+=ot)}function ut(ot){if(ot.nodeType==1){var Ot=ot.getAttribute("cm-text");if(Ot){Xe(Ot);return}var Bt=ot.getAttribute("cm-marker"),Qt;if(Bt){var ir=e.findMarks(wt(A,0),wt(F+1,0),we(+Bt));ir.length&&(Qt=ir[0].find(0))&&Xe(Xn(e.doc,Qt.from,Qt.to).join(he));return}if(ot.getAttribute("contenteditable")=="false")return;var Sr=/^(pre|div|p|li|table|br)$/i.test(ot.nodeName);if(!/^br$/i.test(ot.nodeName)&&ot.textContent.length==0)return;Sr&&Be();for(var ar=0;ar=9&&i.hasSelection&&(i.hasSelection=null),R.poll()}),Re(F,"paste",function(oe){if(lt(A,oe)||sl(oe,A))return;A.state.pasteIncoming=+new Date,R.fastPoll()});function J(oe){if(lt(A,oe))return;if(A.somethingSelected())Xo({lineWise:!1,text:A.getSelections()});else if(A.options.lineWiseCopyCut){var he=ul(A);Xo({lineWise:!0,text:he.text}),oe.type=="cut"?A.setSelections(he.ranges,null,De):(R.prevInput="",F.value=he.text.join(` -`),K(F))}else return;oe.type=="cut"&&(A.state.cutIncoming=+new Date)}Re(F,"cut",J),Re(F,"copy",J),Re(e.scroller,"paste",function(oe){if(yn(e,oe)||lt(A,oe))return;if(!F.dispatchEvent){A.state.pasteIncoming=+new Date,R.focus();return}var he=new Event("paste");he.clipboardData=oe.clipboardData,F.dispatchEvent(he)}),Re(e.lineSpace,"selectstart",function(oe){yn(e,oe)||Ce(oe)}),Re(F,"compositionstart",function(){var oe=A.getCursor("from");R.composing&&R.composing.range.clear(),R.composing={start:oe,range:A.markText(oe,A.getCursor("to"),{className:"CodeMirror-composing"})}}),Re(F,"compositionend",function(){R.composing&&(R.poll(),R.composing.range.clear(),R.composing=null)})},vi.prototype.createField=function(e){this.wrapper=dl(),this.textarea=this.wrapper.firstChild},vi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},vi.prototype.prepareSelection=function(){var e=this.cm,i=e.display,R=e.doc,A=Ui(e);if(e.options.moveInputWithCursor){var F=pn(e,R.sel.primary().head,"div"),J=i.wrapper.getBoundingClientRect(),oe=i.lineDiv.getBoundingClientRect();A.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,F.top+oe.top-J.top)),A.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,F.left+oe.left-J.left))}return A},vi.prototype.showSelection=function(e){var i=this.cm,R=i.display;y(R.cursorDiv,e.cursors),y(R.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},vi.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var i=this.cm;if(i.somethingSelected()){this.prevInput="";var R=i.getSelection();this.textarea.value=R,i.state.focused&&K(this.textarea),_&&b>=9&&(this.hasSelection=R)}else e||(this.prevInput=this.textarea.value="",_&&b>=9&&(this.hasSelection=null))},vi.prototype.getField=function(){return this.textarea},vi.prototype.supportsTouch=function(){return!1},vi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||G()!=this.textarea))try{this.textarea.focus()}catch(e){}},vi.prototype.blur=function(){this.textarea.blur()},vi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vi.prototype.receivedFocus=function(){this.slowPoll()},vi.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},vi.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function R(){var A=i.poll();!A&&!e?(e=!0,i.polling.set(60,R)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,R)},vi.prototype.poll=function(){var e=this,i=this.cm,R=this.textarea,A=this.prevInput;if(this.contextMenuPending||!i.state.focused||_t(R)&&!A&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var F=R.value;if(F==A&&!i.somethingSelected())return!1;if(_&&b>=9&&this.hasSelection===F||a&&/[\uf700-\uf7ff]/.test(F))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var J=F.charCodeAt(0);if(J==8203&&!A&&(A="\u200B"),J==8666)return this.reset(),this.cm.execCommand("undo")}for(var oe=0,he=Math.min(A.length,F.length);oe1e3||F.indexOf(` -`)>-1?R.value=e.prevInput="":e.prevInput=F,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vi.prototype.onKeyPress=function(){_&&b>=9&&(this.hasSelection=null),this.fastPoll()},vi.prototype.onContextMenu=function(e){var i=this,R=i.cm,A=R.display,F=i.textarea;i.contextMenuPending&&i.contextMenuPending();var J=di(R,e),oe=A.scroller.scrollTop;if(!J||c)return;var he=R.options.resetSelectionOnContextMenu;he&&R.doc.sel.contains(J)==-1&&pi(R,Ni)(R.doc,va(J),De);var ve=F.style.cssText,we=i.wrapper.style.cssText,Be=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",F.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var ut=document.activeElement;K(Xe),setTimeout(function(){A.display.lineSpace.removeChild(Be),ut.focus(),ut==F&&R.showPrimarySelection()},50)}Re(F,"copy",oe),Re(F,"cut",oe)},Gn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Gn.prototype.prepareSelection=function(){var e=Ui(this.cm,!1);return e.focus=document.activeElement==this.div,e},Gn.prototype.showSelection=function(e,i){if(!e||!this.cm.display.view.length)return;(e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Gn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gn.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,R=i.doc.sel.primary(),A=R.from(),F=R.to();if(i.display.viewTo==i.display.viewFrom||A.line>=i.display.viewTo||F.line=i.display.viewFrom&&hl(i,A)||{node:he[0].measure.map[2],offset:0},we=F.linee.firstLine()&&(A=wt(A.line-1,ur(e.doc,A.line-1).length)),F.ch==ur(e.doc,F.line).text.length&&F.linei.viewTo-1)return!1;var J,oe,he;A.line==i.viewFrom||(J=Hn(e,A.line))==0?(oe=Zr(i.view[0].line),he=i.view[0].node):(oe=Zr(i.view[J].line),he=i.view[J-1].node.nextSibling);var ve=Hn(e,F.line),we,Be;if(ve==i.view.length-1?(we=i.viewTo-1,Be=i.lineDiv.lastChild):(we=Zr(i.view[ve+1].line)-1,Be=i.view[ve+1].node.previousSibling),!he)return!1;for(var Xe=e.doc.splitLines(ru(e,he,Be,oe,we)),ut=Xn(e.doc,wt(oe,0),wt(we,ur(e.doc,we).text.length));Xe.length>1&&ut.length>1;)if(re(Xe)==re(ut))Xe.pop(),ut.pop(),we--;else if(Xe[0]==ut[0])Xe.shift(),ut.shift(),oe++;else break;for(var ot=0,Ot=0,Bt=Xe[0],Qt=ut[0],ir=Math.min(Bt.length,Qt.length);otA.ch&&_r.charCodeAt(_r.length-Ot-1)==ar.charCodeAt(ar.length-Ot-1);)ot--,Ot++;Xe[Xe.length-1]=_r.slice(0,_r.length-Ot).replace(/^\u200b+/,""),Xe[0]=Xe[0].slice(ot).replace(/\u200b+$/,"");var qr=wt(oe,ot),Gr=wt(we,ut.length?re(ut).length-Ot:0);if(Xe.length>1||Xe[0]||$t(qr,Gr))return ro(e.doc,Xe,qr,Gr,"+input"),!0},Gn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gn.prototype.reset=function(){this.forceCompositionEnd()},Gn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Gn.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Gn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return zn(e.cm)})},Gn.prototype.setUneditable=function(e){e.contentEditable="false"},Gn.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pi(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Gn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Gn.prototype.onContextMenu=function(){},Gn.prototype.resetPosition=function(){},Gn.prototype.needsContentAttribute=!0;function hl(e,i){var R=Ve(e,i.line);if(!R||R.hidden)return null;var A=ur(e.doc,i.line),F=_e(R,A,i.line),J=ht(A,e.doc.direction),oe="left";if(J){var he=at(J,i.ch);oe=he%2?"right":"left"}var ve=kt(F.map,i.ch,oe);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function tu(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function so(e,i){return i&&(e.bad=!0),e}function ru(e,i,R,A,F){var J="",oe=!1,he=e.doc.lineSeparator(),ve=!1;function we(ot){return function(Ot){return Ot.id==ot}}function Be(){oe&&(J+=he,ve&&(J+=he),oe=ve=!1)}function Xe(ot){ot&&(Be(),J+=ot)}function ut(ot){if(ot.nodeType==1){var Ot=ot.getAttribute("cm-text");if(Ot){Xe(Ot);return}var Bt=ot.getAttribute("cm-marker"),Qt;if(Bt){var ir=e.findMarks(wt(A,0),wt(F+1,0),we(+Bt));ir.length&&(Qt=ir[0].find(0))&&Xe(Xn(e.doc,Qt.from,Qt.to).join(he));return}if(ot.getAttribute("contenteditable")=="false")return;var _r=/^(pre|div|p|li|table|br)$/i.test(ot.nodeName);if(!/^br$/i.test(ot.nodeName)&&ot.textContent.length==0)return;_r&&Be();for(var ar=0;ar=9&&i.hasSelection&&(i.hasSelection=null),R.poll()}),Re(F,"paste",function(oe){if(lt(A,oe)||sl(oe,A))return;A.state.pasteIncoming=+new Date,R.fastPoll()});function J(oe){if(lt(A,oe))return;if(A.somethingSelected())Xo({lineWise:!1,text:A.getSelections()});else if(A.options.lineWiseCopyCut){var he=ul(A);Xo({lineWise:!0,text:he.text}),oe.type=="cut"?A.setSelections(he.ranges,null,De):(R.prevInput="",F.value=he.text.join(` +`),K(F))}else return;oe.type=="cut"&&(A.state.cutIncoming=+new Date)}Re(F,"cut",J),Re(F,"copy",J),Re(e.scroller,"paste",function(oe){if(yn(e,oe)||lt(A,oe))return;if(!F.dispatchEvent){A.state.pasteIncoming=+new Date,R.focus();return}var he=new Event("paste");he.clipboardData=oe.clipboardData,F.dispatchEvent(he)}),Re(e.lineSpace,"selectstart",function(oe){yn(e,oe)||Ce(oe)}),Re(F,"compositionstart",function(){var oe=A.getCursor("from");R.composing&&R.composing.range.clear(),R.composing={start:oe,range:A.markText(oe,A.getCursor("to"),{className:"CodeMirror-composing"})}}),Re(F,"compositionend",function(){R.composing&&(R.poll(),R.composing.range.clear(),R.composing=null)})},vi.prototype.createField=function(e){this.wrapper=dl(),this.textarea=this.wrapper.firstChild},vi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},vi.prototype.prepareSelection=function(){var e=this.cm,i=e.display,R=e.doc,A=Ui(e);if(e.options.moveInputWithCursor){var F=pn(e,R.sel.primary().head,"div"),J=i.wrapper.getBoundingClientRect(),oe=i.lineDiv.getBoundingClientRect();A.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,F.top+oe.top-J.top)),A.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,F.left+oe.left-J.left))}return A},vi.prototype.showSelection=function(e){var i=this.cm,R=i.display;y(R.cursorDiv,e.cursors),y(R.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},vi.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var i=this.cm;if(i.somethingSelected()){this.prevInput="";var R=i.getSelection();this.textarea.value=R,i.state.focused&&K(this.textarea),S&&b>=9&&(this.hasSelection=R)}else e||(this.prevInput=this.textarea.value="",S&&b>=9&&(this.hasSelection=null))},vi.prototype.getField=function(){return this.textarea},vi.prototype.supportsTouch=function(){return!1},vi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||G()!=this.textarea))try{this.textarea.focus()}catch(e){}},vi.prototype.blur=function(){this.textarea.blur()},vi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vi.prototype.receivedFocus=function(){this.slowPoll()},vi.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},vi.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function R(){var A=i.poll();!A&&!e?(e=!0,i.polling.set(60,R)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,R)},vi.prototype.poll=function(){var e=this,i=this.cm,R=this.textarea,A=this.prevInput;if(this.contextMenuPending||!i.state.focused||St(R)&&!A&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var F=R.value;if(F==A&&!i.somethingSelected())return!1;if(S&&b>=9&&this.hasSelection===F||a&&/[\uf700-\uf7ff]/.test(F))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var J=F.charCodeAt(0);if(J==8203&&!A&&(A="\u200B"),J==8666)return this.reset(),this.cm.execCommand("undo")}for(var oe=0,he=Math.min(A.length,F.length);oe1e3||F.indexOf(` +`)>-1?R.value=e.prevInput="":e.prevInput=F,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vi.prototype.onKeyPress=function(){S&&b>=9&&(this.hasSelection=null),this.fastPoll()},vi.prototype.onContextMenu=function(e){var i=this,R=i.cm,A=R.display,F=i.textarea;i.contextMenuPending&&i.contextMenuPending();var J=di(R,e),oe=A.scroller.scrollTop;if(!J||c)return;var he=R.options.resetSelectionOnContextMenu;he&&R.doc.sel.contains(J)==-1&&pi(R,Ni)(R.doc,va(J),De);var ve=F.style.cssText,we=i.wrapper.style.cssText,Be=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",F.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Be.top-5)+"px; left: "+(e.clientX-Be.left-5)+`px; - z-index: 1000; background: `+(_?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Xe;d&&(Xe=window.scrollY),A.input.focus(),d&&window.scrollTo(null,Xe),A.input.reset(),R.somethingSelected()||(F.value=i.prevInput=" "),i.contextMenuPending=ot,A.selForContextMenu=R.doc.sel,clearTimeout(A.detectingSelectAll);function ut(){if(F.selectionStart!=null){var Bt=R.somethingSelected(),Qt="\u200B"+(Bt?F.value:"");F.value="\u21DA",F.value=Qt,i.prevInput=Bt?"":"\u200B",F.selectionStart=1,F.selectionEnd=Qt.length,A.selForContextMenu=R.doc.sel}}function ot(){if(i.contextMenuPending!=ot)return;if(i.contextMenuPending=!1,i.wrapper.style.cssText=we,F.style.cssText=ve,_&&b<9&&A.scrollbars.setScrollTop(A.scroller.scrollTop=oe),F.selectionStart!=null){(!_||_&&b<9)&&ut();var Bt=0,Qt=function(){A.selForContextMenu==R.doc.sel&&F.selectionStart==0&&F.selectionEnd>0&&i.prevInput=="\u200B"?pi(R,Ds)(R):Bt++<10?A.detectingSelectAll=setTimeout(Qt,500):(A.selForContextMenu=null,A.input.reset())};A.detectingSelectAll=setTimeout(Qt,200)}}if(_&&b>=9&&ut(),k){Ne(e);var Ot=function(){ft(window,"mouseup",Ot),setTimeout(ot,20)};Re(window,"mouseup",Ot)}else setTimeout(ot,50)},vi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},vi.prototype.setUneditable=function(){},vi.prototype.needsContentAttribute=!1;function iu(e,i){if(i=i?W(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var R=G();i.autofocus=R==e||e.getAttribute("autofocus")!=null&&R==document.body}function A(){e.value=he.getValue()}var F;if(e.form&&(Re(e.form,"submit",A),!i.leaveSubmitMethodAlone)){var J=e.form;F=J.submit;try{var oe=J.submit=function(){A(),J.submit=F,J.submit(),J.submit=oe}}catch(ve){}}i.finishInit=function(ve){ve.save=A,ve.getTextArea=function(){return e},ve.toTextArea=function(){ve.toTextArea=isNaN,A(),e.parentNode.removeChild(ve.getWrapperElement()),e.style.display="",e.form&&(ft(e.form,"submit",A),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=F))}},e.style.display="none";var he=ri(function(ve){return e.parentNode.insertBefore(ve,e.nextSibling)},i);return he}function au(e){e.off=ft,e.on=Re,e.wheelEventPixels=ho,e.Doc=Yi,e.splitLines=mr,e.countColumn=X,e.findColumn=xe,e.isWordChar=Q,e.Pass=Ae,e.signal=Qe,e.Line=Fr,e.changeEnd=ga,e.scrollbarModel=vr,e.Pos=wt,e.cmpPos=$t,e.modes=un,e.mimeModes=Ar,e.resolveMode=Kt,e.getMode=or,e.modeExtensions=Xt,e.extendMode=gr,e.copyState=Xr,e.startState=Ln,e.innerMode=kn,e.commands=_o,e.keyMap=Da,e.keyName=Vs,e.isModifierKey=Ks,e.lookupKey=io,e.normalizeKeyMap=Ml,e.StringStream=tn,e.SharedTextMarker=Co,e.TextMarker=ja,e.LineWidget=xo,e.e_preventDefault=Ce,e.e_stopPropagation=_e,e.e_stop=Ne,e.addClass=H,e.contains=N,e.rmClass=C,e.keyNames=Fa}Jl(ri),eu(ri);var ou="iter insert remove copy getEditor constructor".split(" ");for(var Yo in Yi.prototype)Yi.prototype.hasOwnProperty(Yo)&&fe(ou,Yo)<0&&(ri.prototype[Yo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Yi.prototype[Yo]));return Ie(Yi),ri.inputStyles={textarea:vi,contenteditable:Gn},ri.defineMode=function(e){!ri.defaults.mode&&e!="null"&&(ri.defaults.mode=e),vn.apply(this,arguments)},ri.defineMIME=mn,ri.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ri.defineMIME("text/plain","null"),ri.defineExtension=function(e,i){ri.prototype[e]=i},ri.defineDocExtension=function(e,i){Yi.prototype[e]=i},ri.fromTextArea=iu,au(ri),ri.version="5.58.2",ri})},WYAk:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){(function(){var g=L,T=g.lib,P=T.Base,p=g.enc,v=p.Utf8,_=g.algo,b=_.HMAC=P.extend({init:function(d,l){d=this._hasher=new d.init,typeof l=="string"&&(l=v.parse(l));var n=d.blockSize,c=n*4;l.sigBytes>c&&(l=d.finalize(l)),l.clamp();for(var u=this._oKey=l.clone(),o=this._iKey=l.clone(),h=u.words,m=o.words,s=0;s0&&i.prevInput=="\u200B"?pi(R,Ds)(R):Bt++<10?A.detectingSelectAll=setTimeout(Qt,500):(A.selForContextMenu=null,A.input.reset())};A.detectingSelectAll=setTimeout(Qt,200)}}if(S&&b>=9&&ut(),k){Ne(e);var Ot=function(){ft(window,"mouseup",Ot),setTimeout(ot,20)};Re(window,"mouseup",Ot)}else setTimeout(ot,50)},vi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},vi.prototype.setUneditable=function(){},vi.prototype.needsContentAttribute=!1;function iu(e,i){if(i=i?W(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var R=G();i.autofocus=R==e||e.getAttribute("autofocus")!=null&&R==document.body}function A(){e.value=he.getValue()}var F;if(e.form&&(Re(e.form,"submit",A),!i.leaveSubmitMethodAlone)){var J=e.form;F=J.submit;try{var oe=J.submit=function(){A(),J.submit=F,J.submit(),J.submit=oe}}catch(ve){}}i.finishInit=function(ve){ve.save=A,ve.getTextArea=function(){return e},ve.toTextArea=function(){ve.toTextArea=isNaN,A(),e.parentNode.removeChild(ve.getWrapperElement()),e.style.display="",e.form&&(ft(e.form,"submit",A),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=F))}},e.style.display="none";var he=ri(function(ve){return e.parentNode.insertBefore(ve,e.nextSibling)},i);return he}function au(e){e.off=ft,e.on=Re,e.wheelEventPixels=ho,e.Doc=Yi,e.splitLines=mr,e.countColumn=X,e.findColumn=xe,e.isWordChar=Q,e.Pass=Ae,e.signal=Qe,e.Line=Fr,e.changeEnd=ga,e.scrollbarModel=vr,e.Pos=wt,e.cmpPos=$t,e.modes=un,e.mimeModes=Ar,e.resolveMode=Kt,e.getMode=or,e.modeExtensions=Xt,e.extendMode=gr,e.copyState=Xr,e.startState=Ln,e.innerMode=kn,e.commands=So,e.keyMap=Da,e.keyName=Vs,e.isModifierKey=Ks,e.lookupKey=io,e.normalizeKeyMap=Ml,e.StringStream=tn,e.SharedTextMarker=Co,e.TextMarker=ja,e.LineWidget=xo,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=Ne,e.addClass=H,e.contains=N,e.rmClass=C,e.keyNames=Fa}Jl(ri),eu(ri);var ou="iter insert remove copy getEditor constructor".split(" ");for(var Yo in Yi.prototype)Yi.prototype.hasOwnProperty(Yo)&&fe(ou,Yo)<0&&(ri.prototype[Yo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Yi.prototype[Yo]));return Ie(Yi),ri.inputStyles={textarea:vi,contenteditable:Gn},ri.defineMode=function(e){!ri.defaults.mode&&e!="null"&&(ri.defaults.mode=e),vn.apply(this,arguments)},ri.defineMIME=mn,ri.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ri.defineMIME("text/plain","null"),ri.defineExtension=function(e,i){ri.prototype[e]=i},ri.defineDocExtension=function(e,i){Yi.prototype[e]=i},ri.fromTextArea=iu,au(ri),ri.version="5.58.2",ri})},WYAk:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){(function(){var g=L,T=g.lib,P=T.Base,p=g.enc,v=p.Utf8,S=g.algo,b=S.HMAC=P.extend({init:function(d,l){d=this._hasher=new d.init,typeof l=="string"&&(l=v.parse(l));var n=d.blockSize,c=n*4;l.sigBytes>c&&(l=d.finalize(l)),l.clamp();for(var u=this._oKey=l.clone(),o=this._iKey=l.clone(),h=u.words,m=o.words,s=0;s1&&arguments[1]!==void 0?arguments[1]:!1,Oe=De.getAttribute("id")||De.getAttribute("data-reactid")||De.getAttribute("name");if(ye&&G[Oe])return G[Oe];var xe=window.getComputedStyle(De),ue=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),le=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),re=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),pe=N.map(function(te){return"".concat(te,":").concat(xe.getPropertyValue(te))}).join(";"),ee={sizingStyle:pe,paddingSize:le,borderSize:re,boxSizing:ue};return ye&&Oe&&(G[Oe]=ee),ee}function K(De){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),De.getAttribute("wrap")?H.setAttribute("wrap",De.getAttribute("wrap")):H.removeAttribute("wrap");var ue=B(De,ye),le=ue.paddingSize,re=ue.borderSize,pe=ue.boxSizing,ee=ue.sizingStyle;H.setAttribute("style","".concat(ee,";").concat(I)),H.value=De.value||De.placeholder||"";var te=Number.MIN_SAFE_INTEGER,ce=Number.MAX_SAFE_INTEGER,q=H.scrollHeight,Q;if(pe==="border-box"?q+=re:pe==="content-box"&&(q-=le),Oe!==null||xe!==null){H.value=" ";var V=H.scrollHeight-le;Oe!==null&&(te=V*Oe,pe==="border-box"&&(te=te+le+re),q=Math.max(te,q)),xe!==null&&(ce=V*xe,pe==="border-box"&&(ce=ce+le+re),Q=q>ce?"":"hidden",q=Math.min(ce,q))}return{height:q,minHeight:te,maxHeight:ce,overflowY:Q,resize:"none"}}var U=D("Gytx"),W=D.n(U),X;(function(De){De[De.NONE=0]="NONE",De[De.RESIZING=1]="RESIZING",De[De.RESIZED=2]="RESIZED"})(X||(X={}));var ne=function(De){Object(P.a)(Oe,De);var ye=Object(p.a)(Oe);function Oe(xe){var ue;return Object(g.a)(this,Oe),ue=ye.call(this,xe),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(le){ue.textArea=le},ue.handleResize=function(le){var re=ue.state.resizeStatus,pe=ue.props,ee=pe.autoSize,te=pe.onResize;if(re!==X.NONE)return;typeof te=="function"&&te(le),ee&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var le=ue.props.autoSize;if(!le||!ue.textArea)return;var re=le.minRows,pe=le.maxRows,ee=K(ue.textArea,!1,re,pe);ue.setState({textareaStyles:ee,resizeStatus:X.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:X.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:X.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var le=ue.props,re=le.prefixCls,pe=re===void 0?"rc-textarea":re,ee=le.autoSize,te=le.onResize,ce=le.className,q=le.disabled,Q=ue.state,V=Q.textareaStyles,Z=Q.resizeStatus,be=Object(y.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ge=M()(pe,ce,Object(b.a)({},"".concat(pe,"-disabled"),q));"value"in be&&(be.value=be.value||"");var Te=Object(_.a)(Object(_.a)(Object(_.a)({},ue.props.style),V),Z===X.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return v.createElement(x,{onResize:ue.handleResize,disabled:!(ee||te)},v.createElement("textarea",Object(L.a)({},be,{className:ge,style:Te,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:X.NONE},ue}return Object(T.a)(Oe,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!W()(ue.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ue=this.textArea.selectionStart,le=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,le)}}catch(re){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Oe}(v.Component),fe=ne,me=function(De){Object(P.a)(Oe,De);var ye=Object(p.a)(Oe);function Oe(xe){var ue;Object(g.a)(this,Oe),ue=ye.call(this,xe),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function(re){ue.resizableTextArea=re},ue.handleChange=function(re){var pe=ue.props.onChange;ue.setValue(re.target.value,function(){ue.resizableTextArea.resizeTextarea()}),pe&&pe(re)},ue.handleKeyDown=function(re){var pe=ue.props,ee=pe.onPressEnter,te=pe.onKeyDown;re.keyCode===13&&ee&&ee(re),te&&te(re)};var le=typeof xe.value=="undefined"||xe.value===null?xe.defaultValue:xe.value;return ue.state={value:le},ue}return Object(T.a)(Oe,[{key:"setValue",value:function(ue,le){"value"in this.props||this.setState({value:ue},le)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return v.createElement(fe,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),Oe}(v.Component),Ae=Y.default=me},ZW9T:function(j,Y,D){"use strict";D.d(Y,"a",function(){return x});var L=D("k1fw"),g=D("oBTY"),T=D("9og8"),P=D("miYZ"),p=D("tsqr"),v=D("rAM+"),_=D("tJVT"),b=D("PpiC"),d=D("WmNS"),l=D.n(d),n=D("q1tI"),c=D.n(n),u=D("bdgK");function o(y,S,M,I,N){var G=S.getWordUntilPosition(M),H={startLineNumber:M.lineNumber,endLineNumber:M.lineNumber,startColumn:G.startColumn,endColumn:G.endColumn},B=I.map(function(K){return{label:K,kind:y.languages.CompletionItemKind.Keyword,insertText:K,insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:H}});return N.map(function(K){B.push(Object(L.a)(Object(L.a)({},K),{},{range:H}))}),B}var h=function(y){var S={label:"ifelse",kind:y.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` -`),insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet},M=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];y.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(H,B){var K=o(y,H,B,M,[S]);return{suggestions:K}}});var I=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];y.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(H,B){var K=[{label:"print",kind:y.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` -`),insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=o(y,H,B,I,K);return{suggestions:U}}});var N=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];y.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(H,B){var K=[S,{label:"main",kind:y.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` +`,N=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],G={},H;function B(De){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=De.getAttribute("id")||De.getAttribute("data-reactid")||De.getAttribute("name");if(ye&&G[Oe])return G[Oe];var xe=window.getComputedStyle(De),ue=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),le=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),re=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),pe=N.map(function(te){return"".concat(te,":").concat(xe.getPropertyValue(te))}).join(";"),ee={sizingStyle:pe,paddingSize:le,borderSize:re,boxSizing:ue};return ye&&Oe&&(G[Oe]=ee),ee}function K(De){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),De.getAttribute("wrap")?H.setAttribute("wrap",De.getAttribute("wrap")):H.removeAttribute("wrap");var ue=B(De,ye),le=ue.paddingSize,re=ue.borderSize,pe=ue.boxSizing,ee=ue.sizingStyle;H.setAttribute("style","".concat(ee,";").concat(I)),H.value=De.value||De.placeholder||"";var te=Number.MIN_SAFE_INTEGER,ce=Number.MAX_SAFE_INTEGER,q=H.scrollHeight,Q;if(pe==="border-box"?q+=re:pe==="content-box"&&(q-=le),Oe!==null||xe!==null){H.value=" ";var V=H.scrollHeight-le;Oe!==null&&(te=V*Oe,pe==="border-box"&&(te=te+le+re),q=Math.max(te,q)),xe!==null&&(ce=V*xe,pe==="border-box"&&(ce=ce+le+re),Q=q>ce?"":"hidden",q=Math.min(ce,q))}return{height:q,minHeight:te,maxHeight:ce,overflowY:Q,resize:"none"}}var U=D("Gytx"),W=D.n(U),X;(function(De){De[De.NONE=0]="NONE",De[De.RESIZING=1]="RESIZING",De[De.RESIZED=2]="RESIZED"})(X||(X={}));var ne=function(De){Object(P.a)(Oe,De);var ye=Object(p.a)(Oe);function Oe(xe){var ue;return Object(g.a)(this,Oe),ue=ye.call(this,xe),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(le){ue.textArea=le},ue.handleResize=function(le){var re=ue.state.resizeStatus,pe=ue.props,ee=pe.autoSize,te=pe.onResize;if(re!==X.NONE)return;typeof te=="function"&&te(le),ee&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var le=ue.props.autoSize;if(!le||!ue.textArea)return;var re=le.minRows,pe=le.maxRows,ee=K(ue.textArea,!1,re,pe);ue.setState({textareaStyles:ee,resizeStatus:X.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:X.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:X.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var le=ue.props,re=le.prefixCls,pe=re===void 0?"rc-textarea":re,ee=le.autoSize,te=le.onResize,ce=le.className,q=le.disabled,Q=ue.state,V=Q.textareaStyles,Z=Q.resizeStatus,be=Object(y.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ge=M()(pe,ce,Object(b.a)({},"".concat(pe,"-disabled"),q));"value"in be&&(be.value=be.value||"");var Te=Object(S.a)(Object(S.a)(Object(S.a)({},ue.props.style),V),Z===X.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return v.createElement(x,{onResize:ue.handleResize,disabled:!(ee||te)},v.createElement("textarea",Object(L.a)({},be,{className:ge,style:Te,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:X.NONE},ue}return Object(T.a)(Oe,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!W()(ue.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ue=this.textArea.selectionStart,le=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,le)}}catch(re){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Oe}(v.Component),fe=ne,me=function(De){Object(P.a)(Oe,De);var ye=Object(p.a)(Oe);function Oe(xe){var ue;Object(g.a)(this,Oe),ue=ye.call(this,xe),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function(re){ue.resizableTextArea=re},ue.handleChange=function(re){var pe=ue.props.onChange;ue.setValue(re.target.value,function(){ue.resizableTextArea.resizeTextarea()}),pe&&pe(re)},ue.handleKeyDown=function(re){var pe=ue.props,ee=pe.onPressEnter,te=pe.onKeyDown;re.keyCode===13&&ee&&ee(re),te&&te(re)};var le=typeof xe.value=="undefined"||xe.value===null?xe.defaultValue:xe.value;return ue.state={value:le},ue}return Object(T.a)(Oe,[{key:"setValue",value:function(ue,le){"value"in this.props||this.setState({value:ue},le)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return v.createElement(fe,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),Oe}(v.Component),Ae=Y.default=me},ZW9T:function(j,Y,D){"use strict";D.d(Y,"a",function(){return x});var L=D("k1fw"),g=D("oBTY"),T=D("9og8"),P=D("miYZ"),p=D("tsqr"),v=D("rAM+"),S=D("tJVT"),b=D("PpiC"),d=D("WmNS"),l=D.n(d),n=D("q1tI"),c=D.n(n),u=D("bdgK");function o(y,_,M,I,N){var G=_.getWordUntilPosition(M),H={startLineNumber:M.lineNumber,endLineNumber:M.lineNumber,startColumn:G.startColumn,endColumn:G.endColumn},B=I.map(function(K){return{label:K,kind:y.languages.CompletionItemKind.Keyword,insertText:K,insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:H}});return N.map(function(K){B.push(Object(L.a)(Object(L.a)({},K),{},{range:H}))}),B}var h=function(y){var _={label:"ifelse",kind:y.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`),insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet},M=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];y.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(H,B){var K=o(y,H,B,M,[_]);return{suggestions:K}}});var I=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];y.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(H,B){var K=[{label:"print",kind:y.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` +`),insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=o(y,H,B,I,K);return{suggestions:U}}});var N=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];y.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(H,B){var K=[_,{label:"main",kind:y.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:y.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:y.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=o(y,H,B,N,K);return{suggestions:U}}})},m="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",s=D("fjLI"),r=D("LvDl"),a=D("+ua5");function t(y){return/^\d+$/.test(y)?"".concat(y,"px"):y}function w(){}var E=!1,f={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function k(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=y;if(Array.isArray(y)){for(var M=0;M0||kn.target.offsetWidth>0)&&tt.current.instance.layout()}}catch(Ln){gr.e(Ln)}finally{gr.f()}}),or.observe(Re.current)),or}function et(){p.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var $e=function(){var Xt=tt.current.instance;if(G!=null&&Xt&&_e){var gr=Xt.getModel();gr&&G!==gr.getValue()&&(E=!0,gr.setValue(G),Xt.layout(),E=!1)}};Object(n.useEffect)(function(){try{var or,Xt=tt.current.instance;Qe.current&&clearTimeout(Qe.current),Qe.current=setTimeout(function(){$e()},500),Xt==null||((or=Xt.updateOptions)===null||or===void 0)||or.call(Xt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(G.split(/\r\n|\r|\n/g).length))+3,5)})}catch(gr){debugger}},[G,_e,tt.current]),Object(n.useEffect)(function(){try{if(Je&&tt.current&&tt.current.instance){var or=tt.current.instance;or.changeViewZones(function(gr){var Xr=document.createElement("div");Xr.style.padding="10px 20px",Xr.style.width="calc(100% - 20px)",Xr.className="my-error-line-wrp",Xr.innerHTML=nt,gr.addZone({afterLineNumber:Je||11,heightInLines:3,domNode:Xr})});var Xt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};or.addOverlayWidget(Xt),or.revealPositionInCenter({lineNumber:20,column:1})}}catch(gr){debugger}},[Je,tt.current,_e]),Object(n.useEffect)(function(){var or;if((or=tt.current)!==null&&or!==void 0&&or.instance&&_e&&ht){var Xt=tt.current.instance,gr=Xt.getModel();if(!gr)return;var Xr=function(){var $t=[],en=[],Cn=gr.getAllDecorations(),Sn=Object(v.a)(Cn),On;try{for(Sn.s();!(On=Sn.n()).done;){var ae=On.value;if(ae.options.className==="highlighted-line"){var z;$t.push(ae==null||((z=ae.range)===null||z===void 0)?void 0:z.startLineNumber),en.push(ae==null?void 0:ae.id)}}}catch(ie){Sn.e(ie)}finally{Sn.f()}gr.deltaDecorations(en,[]);var $=gr.getLineCount();!!at&&at<=$&&(Xt.deltaDecorations([],[{range:new O.Range(at,1,at,gr.getLineMaxColumn(at)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Xt.revealLineInCenter(at))};Xr();var kn=function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,en=[],Cn=[],Sn=gr.getAllDecorations(),On=Object(v.a)(Sn),ae;try{for(On.s();!(ae=On.n()).done;){var z=ae.value;if(z.options.linesDecorationsClassName==="breakpoints"){var $;en.push(z==null||(($=z.range)===null||$===void 0)?void 0:$.startLineNumber),Cn.push(z==null?void 0:z.id)}}}catch(ie){On.e(ie)}finally{On.f()}if($t)return{lines:en,ids:Cn};V(en)},Ln=function(){var wt=Object(T.a)(l.a.mark(function $t(en){var Cn;return l.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:return Cn={range:new O.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},On.next=3,gr.deltaDecorations([],[Cn]);case 3:kn();case 4:case"end":return On.stop()}},$t)}));return function(en){return wt.apply(this,arguments)}}(),tn=function(){var wt=Object(T.a)(l.a.mark(function $t(en){var Cn,Sn,On,ae,z;return l.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:Cn=[],Sn=Xt.getLineDecorations(en),On=Object(v.a)(Sn);try{for(On.s();!(ae=On.n()).done;)z=ae.value,z.options.linesDecorationsClassName==="breakpoints"&&Cn.push(z.id)}catch(de){On.e(de)}finally{On.f()}return ie.next=6,gr.deltaDecorations(Cn,[]);case 6:kn();case 7:case"end":return ie.stop()}},$t)}));return function(en){return wt.apply(this,arguments)}}(),ur=function($t){var en=Xt.getLineDecorations($t),Cn=Object(v.a)(en),Sn;try{for(Cn.s();!(Sn=Cn.n()).done;){var On=Sn.value;if(On.options.linesDecorationsClassName==="breakpoints")return!0}}catch(ae){Cn.e(ae)}finally{Cn.f()}return!1};if(!Object(r.isEqual)(be,kn(!0).lines)){gr.deltaDecorations(kn(!0).ids,[]);var Xn=be.map(function(wt){return{range:new O.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});gr.deltaDecorations([],Xn)}var hi=Xt.onDidChangeModelContent(function(wt){var $t=Xt.getPosition();if($t){var en=$t.lineNumber;gr.getLineContent(en).trim()===""?tn(en):ur(en)&&(tn(en),Ln(en))}}),$n=Xt.onMouseDown(function(wt){var $t,en,Cn;if(wt.target.detail&&($t=wt.target)!==null&&$t!==void 0&&(en=$t.element)!==null&&en!==void 0&&(Cn=en.className)!==null&&Cn!==void 0&&Cn.includes("line-numbers")){var Sn=wt.target.position.lineNumber;if(gr.getLineContent(Sn).trim()==="")return;ur(Sn)?tn(Sn):Ln(Sn)}}),Zr=function($t){var en={range:new O.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};lt.current=Xt.deltaDecorations(lt.current,[en])},Bn=function(){lt.current=Xt.deltaDecorations(lt.current,[])},si=Xt.onMouseMove(function(wt){var $t,en,Cn;if(Bn(),wt.target.detail&&($t=wt.target)!==null&&$t!==void 0&&(en=$t.element)!==null&&en!==void 0&&(Cn=en.className)!==null&&Cn!==void 0&&Cn.includes("line-numbers")){var Sn=wt.target.position.lineNumber;if(gr.getLineContent(Sn).trim()==="")return;Zr(Sn)}}),li=Xt.onMouseLeave(function(){Bn()});return function(){hi.dispose(),$n.dispose(),si.dispose(),li.dispose()}}},[tt.current,_e,be,at,ht]);function bt(){var or=tt.current.instance;if(or){var Xt=or.getSelection(),gr=tt.current.pastePos||{},Xr=new O.Range(gr.startLineNumber||Xt.endLineNumber,gr.startColumn||Xt.endColumn,gr.endLineNumber||Xt.endLineNumber,gr.endColumn||Xt.endColumn);setTimeout(function(){or.executeEdits("",[{range:Xr,text:""}])},300)}}function gt(or){(window.navigator.platform.match("Mac")?or.metaKey:or.ctrlKey)&&or.keyCode==83&&(or.preventDefault(),ye())}var Ut=function(){if(xe&&tt.current.instance){var Xt=tt.current.instance.getContentHeight();mn(Xt0||ee.target.offsetWidth>0)&&xe.layout()}}catch(te){re.e(te)}finally{re.f()}}),ue.observe(W.current)),ue}Object(n.useEffect)(function(){return W.current&&D.e(27).then(D.t.bind(null,"M/lh",7)).then(function(xe){O=xe;var ue=O.editor.createDiffEditor(W.current,Object(L.a)(Object(L.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},U),{},{wordWrap:!0}));me(ue);var le=Ae(ue);return function(){ue.dispose();var re=ue.getModel();re&&re.dispose(),le.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(n.useEffect)(function(){fe&&fe.setModel({original:O.editor.createModel(G,B),modified:O.editor.createModel(H,B)})},[G,H,B,fe]);var De=t(M),ye=t(N),Oe={width:De,height:ye};return c.a.createElement("div",{className:"my-diff-editor",ref:W,style:Oe})}},ZpRC:function(j,Y,D){"use strict";function L(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function g(n,c){return(!c||n!=="hidden")&&n!=="visible"&&n!=="clip"}function T(n,c){if(n.clientHeightc||m>n&&s=c&&r>=u?m-n-o:s>c&&ru?s-c+h:0}var p=function(n,c){var u=window,o=c.scrollMode,h=c.block,m=c.inline,s=c.boundary,r=c.skipOverflowHiddenElements,a=typeof s=="function"?s:function(V){return V!==s};if(!L(n))throw new TypeError("Invalid target");for(var t=document.scrollingElement||document.documentElement,w=[],E=n;L(E)&&a(E);){if((E=E.parentElement)===t){w.push(E);break}E!=null&&E===document.body&&T(E)&&!T(document.documentElement)||E!=null&&T(E,r)&&w.push(E)}for(var f=u.visualViewport?u.visualViewport.width:innerWidth,k=u.visualViewport?u.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,x=n.getBoundingClientRect(),y=x.height,S=x.width,M=x.top,I=x.right,N=x.bottom,G=x.left,H=h==="start"||h==="nearest"?M:h==="end"?N:M+y/2,B=m==="center"?G+S/2:m==="end"?I:G,K=[],U=0;U=0&&G>=0&&N<=k&&I<=f&&M>=me&&N<=De&&G>=ye&&I<=Ae)return K;var Oe=getComputedStyle(W),xe=parseInt(Oe.borderLeftWidth,10),ue=parseInt(Oe.borderTopWidth,10),le=parseInt(Oe.borderRightWidth,10),re=parseInt(Oe.borderBottomWidth,10),pe=0,ee=0,te="offsetWidth"in W?W.offsetWidth-W.clientWidth-xe-le:0,ce="offsetHeight"in W?W.offsetHeight-W.clientHeight-ue-re:0;if(t===W)pe=h==="start"?H:h==="end"?H-k:h==="nearest"?P(C,C+k,k,ue,re,C+H,C+H+y,y):H-k/2,ee=m==="start"?B:m==="center"?B-f/2:m==="end"?B-f:P(O,O+f,f,xe,le,O+B,O+B+S,S),pe=Math.max(0,pe+C),ee=Math.max(0,ee+O);else{pe=h==="start"?H-me-ue:h==="end"?H-De+re+ce:h==="nearest"?P(me,De,ne,ue,re+ce,H,H+y,y):H-(me+ne/2)+ce/2,ee=m==="start"?B-ye-xe:m==="center"?B-(ye+fe/2)+te/2:m==="end"?B-Ae+le+te:P(ye,Ae,fe,xe,le+te,B,B+S,S);var q=W.scrollLeft,Q=W.scrollTop;H+=Q-(pe=Math.max(0,Math.min(Q+pe,W.scrollHeight-ne+ce))),B+=q-(ee=Math.max(0,Math.min(q+ee,W.scrollWidth-fe+te)))}K.push({el:W,top:pe,left:ee})}return K};function v(n){return n===Object(n)&&Object.keys(n).length!==0}function _(n,c){c===void 0&&(c="auto");var u="scrollBehavior"in document.body.style;n.forEach(function(o){var h=o.el,m=o.top,s=o.left;h.scroll&&u?h.scroll({top:m,left:s,behavior:c}):(h.scrollTop=m,h.scrollLeft=s)})}function b(n){return n===!1?{block:"end",inline:"nearest"}:v(n)?n:{block:"start",inline:"nearest"}}function d(n,c){var u=!n.ownerDocument.documentElement.contains(n);if(v(c)&&typeof c.behavior=="function")return c.behavior(u?[]:p(n,c));if(u)return;var o=b(c);return _(p(n,o),o.behavior)}var l=Y.a=d},Zss7:function(j,Y,D){var L;(function(g){var T=/^\s+/,P=/\s+$/,p=0,v=g.round,_=g.min,b=g.max,d=g.random;function l(re,pe){if(re=re||"",pe=pe||{},re instanceof l)return re;if(!(this instanceof l))return new l(re,pe);var ee=n(re);this._originalInput=re,this._r=ee.r,this._g=ee.g,this._b=ee.b,this._a=ee.a,this._roundA=v(100*this._a)/100,this._format=pe.format||ee.format,this._gradientType=pe.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=ee.ok,this._tc_id=p++}l.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 re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),pe,ee,te,ce,q,Q;return pe=re.r/255,ee=re.g/255,te=re.b/255,pe<=.03928?ce=pe/12.92:ce=g.pow((pe+.055)/1.055,2.4),ee<=.03928?q=ee/12.92:q=g.pow((ee+.055)/1.055,2.4),te<=.03928?Q=te/12.92:Q=g.pow((te+.055)/1.055,2.4),.2126*ce+.7152*q+.0722*Q},setAlpha:function(re){return this._a=K(re),this._roundA=v(100*this._a)/100,this},toHsv:function(){var re=h(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=h(this._r,this._g,this._b),pe=v(re.h*360),ee=v(re.s*100),te=v(re.v*100);return this._a==1?"hsv("+pe+", "+ee+"%, "+te+"%)":"hsva("+pe+", "+ee+"%, "+te+"%, "+this._roundA+")"},toHsl:function(){var re=u(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=u(this._r,this._g,this._b),pe=v(re.h*360),ee=v(re.s*100),te=v(re.l*100);return this._a==1?"hsl("+pe+", "+ee+"%, "+te+"%)":"hsla("+pe+", "+ee+"%, "+te+"%, "+this._roundA+")"},toHex:function(re){return s(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return r(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v(U(this._r,255)*100)+"%",g:v(U(this._g,255)*100)+"%",b:v(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v(U(this._r,255)*100)+"%, "+v(U(this._g,255)*100)+"%, "+v(U(this._b,255)*100)+"%)":"rgba("+v(U(this._r,255)*100)+"%, "+v(U(this._g,255)*100)+"%, "+v(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[s(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var pe="#"+a(this._r,this._g,this._b,this._a),ee=pe,te=this._gradientType?"GradientType = 1, ":"";if(re){var ce=l(re);ee="#"+a(ce._r,ce._g,ce._b,ce._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+pe+",endColorstr="+ee+")"},toString:function(re){var pe=!!re;re=re||this._format;var ee=!1,te=this._a<1&&this._a>=0,ce=!pe&&te&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return ce?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(ee=this.toRgbString()),re==="prgb"&&(ee=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(ee=this.toHexString()),re==="hex3"&&(ee=this.toHexString(!0)),re==="hex4"&&(ee=this.toHex8String(!0)),re==="hex8"&&(ee=this.toHex8String()),re==="name"&&(ee=this.toName()),re==="hsl"&&(ee=this.toHslString()),re==="hsv"&&(ee=this.toHsvString()),ee||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(re,pe){var ee=re.apply(null,[this].concat([].slice.call(pe)));return this._r=ee._r,this._g=ee._g,this._b=ee._b,this.setAlpha(ee._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(t,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(re,pe){return re.apply(null,[this].concat([].slice.call(pe)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(y,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},l.fromRatio=function(re,pe){if(typeof re=="object"){var ee={};for(var te in re)re.hasOwnProperty(te)&&(te==="a"?ee[te]=re[te]:ee[te]=Ae(re[te]));re=ee}return l(re,pe)};function n(re){var pe={r:0,g:0,b:0},ee=1,te=null,ce=null,q=null,Q=!1,V=!1;return typeof re=="string"&&(re=ue(re)),typeof re=="object"&&(xe(re.r)&&xe(re.g)&&xe(re.b)?(pe=c(re.r,re.g,re.b),Q=!0,V=String(re.r).substr(-1)==="%"?"prgb":"rgb"):xe(re.h)&&xe(re.s)&&xe(re.v)?(te=Ae(re.s),ce=Ae(re.v),pe=m(re.h,te,ce),Q=!0,V="hsv"):xe(re.h)&&xe(re.s)&&xe(re.l)&&(te=Ae(re.s),q=Ae(re.l),pe=o(re.h,te,q),Q=!0,V="hsl"),re.hasOwnProperty("a")&&(ee=re.a)),ee=K(ee),{ok:Q,format:re.format||V,r:_(255,b(pe.r,0)),g:_(255,b(pe.g,0)),b:_(255,b(pe.b,0)),a:ee}}function c(re,pe,ee){return{r:U(re,255)*255,g:U(pe,255)*255,b:U(ee,255)*255}}function u(re,pe,ee){re=U(re,255),pe=U(pe,255),ee=U(ee,255);var te=b(re,pe,ee),ce=_(re,pe,ee),q,Q,V=(te+ce)/2;if(te==ce)q=Q=0;else{var Z=te-ce;Q=V>.5?Z/(2-te-ce):Z/(te+ce);switch(te){case re:q=(pe-ee)/Z+(pe1&&(Te-=1),Te<1/6?be+(ge-be)*6*Te:Te<1/2?ge:Te<2/3?be+(ge-be)*(2/3-Te)*6:be}if(pe===0)te=ce=q=ee;else{var V=ee<.5?ee*(1+pe):ee+pe-ee*pe,Z=2*ee-V;te=Q(Z,V,re+1/3),ce=Q(Z,V,re),q=Q(Z,V,re-1/3)}return{r:te*255,g:ce*255,b:q*255}}function h(re,pe,ee){re=U(re,255),pe=U(pe,255),ee=U(ee,255);var te=b(re,pe,ee),ce=_(re,pe,ee),q,Q,V=te,Z=te-ce;if(Q=te===0?0:Z/te,te==ce)q=0;else{switch(te){case re:q=(pe-ee)/Z+(pe>1)+720)%360;--pe;)te.h=(te.h+ce)%360,q.push(l(te));return q}function N(re,pe){pe=pe||6;for(var ee=l(re).toHsv(),te=ee.h,ce=ee.s,q=ee.v,Q=[],V=1/pe;pe--;)Q.push(l({h:te,s:ce,v:q})),q=(q+V)%1;return Q}l.mix=function(re,pe,ee){ee=ee===0?0:ee||50;var te=l(re).toRgb(),ce=l(pe).toRgb(),q=ee/100,Q={r:(ce.r-te.r)*q+te.r,g:(ce.g-te.g)*q+te.g,b:(ce.b-te.b)*q+te.b,a:(ce.a-te.a)*q+te.a};return l(Q)},l.readability=function(re,pe){var ee=l(re),te=l(pe);return(g.max(ee.getLuminance(),te.getLuminance())+.05)/(g.min(ee.getLuminance(),te.getLuminance())+.05)},l.isReadable=function(re,pe,ee){var te=l.readability(re,pe),ce,q;q=!1,ce=le(ee);switch(ce.level+ce.size){case"AAsmall":case"AAAlarge":q=te>=4.5;break;case"AAlarge":q=te>=3;break;case"AAAsmall":q=te>=7;break}return q},l.mostReadable=function(re,pe,ee){var te=null,ce=0,q,Q,V,Z;ee=ee||{},Q=ee.includeFallbackColors,V=ee.level,Z=ee.size;for(var be=0;bece&&(ce=q,te=l(pe[be]));return l.isReadable(re,te,{level:V,size:Z})||!Q?te:(ee.includeFallbackColors=!1,l.mostReadable(re,["#fff","#000"],ee))};var G=l.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"},H=l.hexNames=B(G);function B(re){var pe={};for(var ee in re)re.hasOwnProperty(ee)&&(pe[re[ee]]=ee);return pe}function K(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function U(re,pe){ne(re)&&(re="100%");var ee=fe(re);return re=_(pe,b(0,parseFloat(re))),ee&&(re=parseInt(re*pe,10)/100),g.abs(re-pe)<1e-6?1:re%pe/parseFloat(pe)}function W(re){return _(1,b(0,re))}function X(re){return parseInt(re,16)}function ne(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function fe(re){return typeof re=="string"&&re.indexOf("%")!=-1}function me(re){return re.length==1?"0"+re:""+re}function Ae(re){return re<=1&&(re=re*100+"%"),re}function De(re){return g.round(parseFloat(re)*255).toString(16)}function ye(re){return X(re)/255}var Oe=function(){var re="[-\\+]?\\d+%?",pe="[-\\+]?\\d*\\.\\d+%?",ee="(?:"+pe+")|(?:"+re+")",te="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",ce="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?";return{CSS_UNIT:new RegExp(ee),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ce),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ce),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ce),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 xe(re){return!!Oe.CSS_UNIT.exec(re)}function ue(re){re=re.replace(T,"").replace(P,"").toLowerCase();var pe=!1;if(G[re])re=G[re],pe=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ee;return(ee=Oe.rgb.exec(re))?{r:ee[1],g:ee[2],b:ee[3]}:(ee=Oe.rgba.exec(re))?{r:ee[1],g:ee[2],b:ee[3],a:ee[4]}:(ee=Oe.hsl.exec(re))?{h:ee[1],s:ee[2],l:ee[3]}:(ee=Oe.hsla.exec(re))?{h:ee[1],s:ee[2],l:ee[3],a:ee[4]}:(ee=Oe.hsv.exec(re))?{h:ee[1],s:ee[2],v:ee[3]}:(ee=Oe.hsva.exec(re))?{h:ee[1],s:ee[2],v:ee[3],a:ee[4]}:(ee=Oe.hex8.exec(re))?{r:X(ee[1]),g:X(ee[2]),b:X(ee[3]),a:ye(ee[4]),format:pe?"name":"hex8"}:(ee=Oe.hex6.exec(re))?{r:X(ee[1]),g:X(ee[2]),b:X(ee[3]),format:pe?"name":"hex"}:(ee=Oe.hex4.exec(re))?{r:X(ee[1]+""+ee[1]),g:X(ee[2]+""+ee[2]),b:X(ee[3]+""+ee[3]),a:ye(ee[4]+""+ee[4]),format:pe?"name":"hex8"}:(ee=Oe.hex3.exec(re))?{r:X(ee[1]+""+ee[1]),g:X(ee[2]+""+ee[2]),b:X(ee[3]+""+ee[3]),format:pe?"name":"hex"}:!1}function le(re){var pe,ee;return re=re||{level:"AA",size:"small"},pe=(re.level||"AA").toUpperCase(),ee=(re.size||"small").toLowerCase(),pe!=="AA"&&pe!=="AAA"&&(pe="AA"),ee!=="small"&&ee!=="large"&&(ee="small"),{level:pe,size:ee}}j.exports?j.exports=l:!(L=function(){return l}.call(Y,D,Y,j),L!==void 0&&(j.exports=L))})(Math)},bQjk:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return function(g){var T=L,P=T.lib,p=P.CipherParams,v=T.enc,_=v.Hex,b=T.format,d=b.Hex={stringify:function(l){return l.ciphertext.toString(_)},parse:function(l){var n=_.parse(l);return p.create({ciphertext:n})}}}(),L.format.Hex})},bT9E:function(j,Y,D){"use strict";D.d(Y,"a",function(){return g});var L=D("VTBJ");function g(T,P){var p=Object(L.a)({},T);return Array.isArray(P)&&P.forEach(function(v){delete p[v]}),p}},biw7:function(j,Y,D){"use strict";var L=D("q1tI"),g=D.n(L),T=L.createContext(null);Y.a=T},c5Ni:function(j,Y,D){},cv67:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(g){var T=L,P=T.lib,p=P.WordArray,v=P.Hasher,_=T.algo,b=[];(function(){for(var o=0;o<64;o++)b[o]=g.abs(g.sin(o+1))*4294967296|0})();var d=_.MD5=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(o,h){for(var m=0;m<16;m++){var s=h+m,r=o[s];o[s]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360}var a=this._hash.words,t=o[h+0],w=o[h+1],E=o[h+2],f=o[h+3],k=o[h+4],O=o[h+5],C=o[h+6],x=o[h+7],y=o[h+8],S=o[h+9],M=o[h+10],I=o[h+11],N=o[h+12],G=o[h+13],H=o[h+14],B=o[h+15],K=a[0],U=a[1],W=a[2],X=a[3];K=l(K,U,W,X,t,7,b[0]),X=l(X,K,U,W,w,12,b[1]),W=l(W,X,K,U,E,17,b[2]),U=l(U,W,X,K,f,22,b[3]),K=l(K,U,W,X,k,7,b[4]),X=l(X,K,U,W,O,12,b[5]),W=l(W,X,K,U,C,17,b[6]),U=l(U,W,X,K,x,22,b[7]),K=l(K,U,W,X,y,7,b[8]),X=l(X,K,U,W,S,12,b[9]),W=l(W,X,K,U,M,17,b[10]),U=l(U,W,X,K,I,22,b[11]),K=l(K,U,W,X,N,7,b[12]),X=l(X,K,U,W,G,12,b[13]),W=l(W,X,K,U,H,17,b[14]),U=l(U,W,X,K,B,22,b[15]),K=n(K,U,W,X,w,5,b[16]),X=n(X,K,U,W,C,9,b[17]),W=n(W,X,K,U,I,14,b[18]),U=n(U,W,X,K,t,20,b[19]),K=n(K,U,W,X,O,5,b[20]),X=n(X,K,U,W,M,9,b[21]),W=n(W,X,K,U,B,14,b[22]),U=n(U,W,X,K,k,20,b[23]),K=n(K,U,W,X,S,5,b[24]),X=n(X,K,U,W,H,9,b[25]),W=n(W,X,K,U,f,14,b[26]),U=n(U,W,X,K,y,20,b[27]),K=n(K,U,W,X,G,5,b[28]),X=n(X,K,U,W,E,9,b[29]),W=n(W,X,K,U,x,14,b[30]),U=n(U,W,X,K,N,20,b[31]),K=c(K,U,W,X,O,4,b[32]),X=c(X,K,U,W,y,11,b[33]),W=c(W,X,K,U,I,16,b[34]),U=c(U,W,X,K,H,23,b[35]),K=c(K,U,W,X,w,4,b[36]),X=c(X,K,U,W,k,11,b[37]),W=c(W,X,K,U,x,16,b[38]),U=c(U,W,X,K,M,23,b[39]),K=c(K,U,W,X,G,4,b[40]),X=c(X,K,U,W,t,11,b[41]),W=c(W,X,K,U,f,16,b[42]),U=c(U,W,X,K,C,23,b[43]),K=c(K,U,W,X,S,4,b[44]),X=c(X,K,U,W,N,11,b[45]),W=c(W,X,K,U,B,16,b[46]),U=c(U,W,X,K,E,23,b[47]),K=u(K,U,W,X,t,6,b[48]),X=u(X,K,U,W,x,10,b[49]),W=u(W,X,K,U,H,15,b[50]),U=u(U,W,X,K,O,21,b[51]),K=u(K,U,W,X,N,6,b[52]),X=u(X,K,U,W,f,10,b[53]),W=u(W,X,K,U,M,15,b[54]),U=u(U,W,X,K,w,21,b[55]),K=u(K,U,W,X,y,6,b[56]),X=u(X,K,U,W,B,10,b[57]),W=u(W,X,K,U,C,15,b[58]),U=u(U,W,X,K,G,21,b[59]),K=u(K,U,W,X,k,6,b[60]),X=u(X,K,U,W,I,10,b[61]),W=u(W,X,K,U,E,15,b[62]),U=u(U,W,X,K,S,21,b[63]),a[0]=a[0]+K|0,a[1]=a[1]+U|0,a[2]=a[2]+W|0,a[3]=a[3]+X|0},_doFinalize:function(){var o=this._data,h=o.words,m=this._nDataBytes*8,s=o.sigBytes*8;h[s>>>5]|=128<<24-s%32;var r=g.floor(m/4294967296),a=m;h[(s+64>>>9<<4)+15]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,h[(s+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,o.sigBytes=(h.length+1)*4,this._process();for(var t=this._hash,w=t.words,E=0;E<4;E++){var f=w[E];w[E]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}return t},clone:function(){var o=v.clone.call(this);return o._hash=this._hash.clone(),o}});function l(o,h,m,s,r,a,t){var w=o+(h&m|~h&s)+r+t;return(w<>>32-a)+h}function n(o,h,m,s,r,a,t){var w=o+(h&s|m&~s)+r+t;return(w<>>32-a)+h}function c(o,h,m,s,r,a,t){var w=o+(h^m^s)+r+t;return(w<>>32-a)+h}function u(o,h,m,s,r,a,t){var w=o+(m^(h|~s))+r+t;return(w<>>32-a)+h}T.MD5=v._createHelper(d),T.HmacMD5=v._createHmacHelper(d)}(Math),L.MD5})},dejd:function(j,Y,D){},dmUQ:function(j,Y,D){"use strict";var L=D("Ff2n"),g=D("rePB"),T=D("1OyB"),P=D("vuIU"),p=D("Ji7U"),v=D("md7G"),_=D("foSv"),b=D("q1tI"),d=D.n(b),l=D("TSYQ"),n=D.n(l),c=D("4IlW");function u(y,S){var M=Object.keys(y);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(y);S&&(I=I.filter(function(N){return Object.getOwnPropertyDescriptor(y,N).enumerable})),M.push.apply(M,I)}return M}function o(y){for(var S=1;S1?fe-1:0),Ae=1;Ae1?U-1:0),X=1;X=0)return parseInt(K.slice(K.indexOf("e-")+2),10);var U=0;return K.indexOf(".")>=0&&(U=K.length-K.indexOf(".")-1),U},N.getInputDisplayValue=function(B){var K=B||N.state,U=K.focused,W=K.inputValue,X=K.value,ne;U?ne=W:ne=N.toPrecisionAsStep(X),ne==null&&(ne="");var fe=N.formatWrapper(ne);return f(N.props.decimalSeparator)&&(fe=fe.toString().replace(".",N.props.decimalSeparator)),fe},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(B){}},N.restoreByAfter=function(B){if(B===void 0)return!1;var K=N.input.value,U=K.lastIndexOf(B);if(U===-1)return!1;var W=N.cursorBefore.length;return N.lastKeyCode===c.a.DELETE&&N.cursorBefore.charAt(W-1)===B[0]?(N.fixCaret(W,W),!0):U+B.length===K.length?(N.fixCaret(U,U),!0):!1},N.partRestoreByAfter=function(B){return B===void 0?!1:Array.prototype.some.call(B,function(K,U){var W=B.substring(U);return N.restoreByAfter(W)})},N.isNotCompleteNumber=function(B){return isNaN(B)||B===""||B===null||B&&B.toString().indexOf(".")===B.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(B,K,U){N.pressingUpOrDown=!0,N.step("down",B,K,U)},N.up=function(B,K,U){N.pressingUpOrDown=!0,N.step("up",B,K,U)},N.saveInput=function(B){N.input=B};var G=I.value;G===void 0&&(G=I.defaultValue),N.state={focused:I.autoFocus};var H=N.getValidValue(N.toNumber(G));return N.state=o(o({},N.state),{},{inputValue:N.toPrecisionAsStep(H),value:H}),N}return Object(P.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var G=this.props,H=G.value,B=G.onChange,K=G.max,U=G.min,W=this.state.focused;if(N){if(!k(N.value,H)||!k(N.max,K)||!k(N.min,U)){var X=W?H:this.getValidValue(H),ne;this.pressingUpOrDown?ne=X:this.inputting?ne=this.rawInput:ne=this.toPrecisionAsStep(X),this.setState({value:X,inputValue:ne})}var fe="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==K&&typeof fe=="number"&&fe>K&&B&&B(K),"min"in this.props&&N.min!==U&&typeof fe=="number"&&fe1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,B=parseFloat(N);return isNaN(B)?N:(BH&&(B=H),B)}},{key:"setValue",value:function(N,G){var H=this.props.precision,B=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),K=this.state.value,U=K===void 0?null:K,W=this.state.inputValue,X=W===void 0?null:W,ne=typeof B=="number"?B.toFixed(H):"".concat(B),fe=B!==U||ne!=="".concat(X);return"value"in this.props?(X=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:X},G)):this.setState({value:B,inputValue:this.toPrecisionAsStep(N)},G),fe&&this.props.onChange(B),B}},{key:"getMaxPrecision",value:function(N){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,B=H.precision,K=H.step;if(f(B))return B;var U=this.getPrecision(G),W=this.getPrecision(K),X=this.getPrecision(N);return N?Math.max(X,U+W):U+W}},{key:"getPrecisionFactor",value:function(N){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(N,G);return Math.pow(10,H)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var G=Math.abs(this.getMaxPrecision(N));return isNaN(G)?N.toString():Number(N).toFixed(G)}},{key:"toNumber",value:function(N){var G=this.props.precision,H=this.state.focused,B=N&&N.length>16&&H;return this.isNotCompleteNumber(N)||B?N:f(G)?Math.round(N*Math.pow(10,G))/Math.pow(10,G):Number(N)}},{key:"upStep",value:function(N,G){var H=this.props.step,B=this.getPrecisionFactor(N,G),K=Math.abs(this.getMaxPrecision(N,G)),U=((B*N+B*H*G)/B).toFixed(K);return this.toNumber(U)}},{key:"downStep",value:function(N,G){var H=this.props.step,B=this.getPrecisionFactor(N,G),K=Math.abs(this.getMaxPrecision(N,G)),U=((B*N-B*H*G)/B).toFixed(K);return this.toNumber(U)}},{key:"step",value:function(N,G){var H=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3?arguments[3]:void 0;this.stop(),G&&(G.persist(),G.preventDefault());var U=this.props;if(U.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var X=this["".concat(N,"Step")](W,B),ne=X>U.max||XU.max?X=U.max:X=me),lt=(ct||ct===0)&&(isNaN(ct)||Number(ct)<=Ae),Ue=Qe||B||K,Le=lt||B||K,Ie=n()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),Ue)),Ce=n()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),Le)),_e=U?{onTouchStart:Ue?s:this.up,onTouchEnd:this.stop}:{onMouseDown:Ue?s:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ke=U?{onTouchStart:Le?s:this.down,onTouchEnd:this.stop}:{onMouseDown:Le?s:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return d.a.createElement("div",{className:He,style:De,title:ye,onMouseEnter:Oe,onMouseLeave:xe,onMouseOver:ue,onMouseOut:le,onFocus:function(){return null},onBlur:function(){return null}},d.a.createElement("div",{className:"".concat(H,"-handler-wrap")},d.a.createElement("span",Object.assign({unselectable:"on"},_e,{role:"button","aria-label":"Increase Value","aria-disabled":Ue,className:Ie}),X||d.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:r})),d.a.createElement("span",Object.assign({unselectable:"on"},ke,{role:"button","aria-label":"Decrease Value","aria-disabled":Le,className:Ce}),ne||d.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:r}))),d.a.createElement("div",{className:"".concat(H,"-input-wrap")},d.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ae,"aria-valuemax":me,"aria-valuenow":ct,required:re,type:te,placeholder:ce,onPaste:Je,onClick:pe,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:ee,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:tt?this.onKeyDown:s,onKeyUp:tt?this.onKeyUp:s,autoFocus:ge,maxLength:be,readOnly:K,disabled:B,max:me,min:Ae,step:Z,name:Te,title:ye,id:q,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ft),pattern:V,inputMode:Q,onInput:rt},Re))))}}]),M}(d.a.Component);O.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:s,onKeyDown:s,onPressEnter:s,onFocus:s,onBlur:s,parser:a,required:!1,autoComplete:"off"};var C=O,x=Y.a=C},e7zE:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("3y9D"),D("WYAk"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Base,p=T.WordArray,v=g.algo,_=v.SHA1,b=v.HMAC,d=v.PBKDF2=P.extend({cfg:P.extend({keySize:128/32,hasher:_,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,n){for(var c=this.cfg,u=b.create(c.hasher,l),o=p.create(),h=p.create([1]),m=o.words,s=h.words,r=c.keySize,a=c.iterations;m.length=0;f--)(E=m[f])&&(w=(t<3?E(w):t>3?E(s,r,w):E(s,r))||w);return t>3&&w&&Object.defineProperty(s,r,w),w},b=function(m,s){return function(r,a){s(r,a,m)}},d=function(){for(var m=0,s=0,r=arguments.length;s=0&&(t.splice(w,1),a._onDidChangeMenu.fire(s))}}},m.prototype.getMenuItems=function(s){var r=(this._menuItems.get(s)||[]).slice(0);return s===0&&this._appendImplicitItems(r),r},m.prototype._appendImplicitItems=function(s){for(var r=new Set,a=s.filter(function(O){return l(O)}),t=0,w=a;t0&&arguments[0]!==void 0?arguments[0]:[],_=y;if(Array.isArray(y)){for(var M=0;M0||kn.target.offsetWidth>0)&&tt.current.instance.layout()}}catch(Ln){gr.e(Ln)}finally{gr.f()}}),or.observe(Re.current)),or}function et(){p.b.warn({content:decodeURIComponent(m),key:"monaco-editor-tip"})}var $e=function(){var Xt=tt.current.instance;if(G!=null&&Xt&&Se){var gr=Xt.getModel();gr&&G!==gr.getValue()&&(E=!0,gr.setValue(G),Xt.layout(),E=!1)}};Object(n.useEffect)(function(){try{var or,Xt=tt.current.instance;Qe.current&&clearTimeout(Qe.current),Qe.current=setTimeout(function(){$e()},500),Xt==null||((or=Xt.updateOptions)===null||or===void 0)||or.call(Xt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(G.split(/\r\n|\r|\n/g).length))+3,5)})}catch(gr){debugger}},[G,Se,tt.current]),Object(n.useEffect)(function(){try{if(Je&&tt.current&&tt.current.instance){var or=tt.current.instance;or.changeViewZones(function(gr){var Xr=document.createElement("div");Xr.style.padding="10px 20px",Xr.style.width="calc(100% - 20px)",Xr.className="my-error-line-wrp",Xr.innerHTML=nt,gr.addZone({afterLineNumber:Je||11,heightInLines:3,domNode:Xr})});var Xt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};or.addOverlayWidget(Xt),or.revealPositionInCenter({lineNumber:20,column:1})}}catch(gr){debugger}},[Je,tt.current,Se]),Object(n.useEffect)(function(){var or;if((or=tt.current)!==null&&or!==void 0&&or.instance&&Se&&ht){var Xt=tt.current.instance,gr=Xt.getModel();if(!gr)return;var Xr=function(){var $t=[],en=[],Cn=gr.getAllDecorations(),_n=Object(v.a)(Cn),On;try{for(_n.s();!(On=_n.n()).done;){var ae=On.value;if(ae.options.className==="highlighted-line"){var z;$t.push(ae==null||((z=ae.range)===null||z===void 0)?void 0:z.startLineNumber),en.push(ae==null?void 0:ae.id)}}}catch(ie){_n.e(ie)}finally{_n.f()}gr.deltaDecorations(en,[]);var $=gr.getLineCount();!!at&&at<=$&&(Xt.deltaDecorations([],[{range:new O.Range(at,1,at,gr.getLineMaxColumn(at)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Xt.revealLineInCenter(at))};Xr();var kn=function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,en=[],Cn=[],_n=gr.getAllDecorations(),On=Object(v.a)(_n),ae;try{for(On.s();!(ae=On.n()).done;){var z=ae.value;if(z.options.linesDecorationsClassName==="breakpoints"){var $;en.push(z==null||(($=z.range)===null||$===void 0)?void 0:$.startLineNumber),Cn.push(z==null?void 0:z.id)}}}catch(ie){On.e(ie)}finally{On.f()}if($t)return{lines:en,ids:Cn};V(en)},Ln=function(){var wt=Object(T.a)(l.a.mark(function $t(en){var Cn;return l.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:return Cn={range:new O.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},On.next=3,gr.deltaDecorations([],[Cn]);case 3:kn();case 4:case"end":return On.stop()}},$t)}));return function(en){return wt.apply(this,arguments)}}(),tn=function(){var wt=Object(T.a)(l.a.mark(function $t(en){var Cn,_n,On,ae,z;return l.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:Cn=[],_n=Xt.getLineDecorations(en),On=Object(v.a)(_n);try{for(On.s();!(ae=On.n()).done;)z=ae.value,z.options.linesDecorationsClassName==="breakpoints"&&Cn.push(z.id)}catch(de){On.e(de)}finally{On.f()}return ie.next=6,gr.deltaDecorations(Cn,[]);case 6:kn();case 7:case"end":return ie.stop()}},$t)}));return function(en){return wt.apply(this,arguments)}}(),ur=function($t){var en=Xt.getLineDecorations($t),Cn=Object(v.a)(en),_n;try{for(Cn.s();!(_n=Cn.n()).done;){var On=_n.value;if(On.options.linesDecorationsClassName==="breakpoints")return!0}}catch(ae){Cn.e(ae)}finally{Cn.f()}return!1};if(!Object(r.isEqual)(be,kn(!0).lines)){gr.deltaDecorations(kn(!0).ids,[]);var Xn=be.map(function(wt){return{range:new O.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});gr.deltaDecorations([],Xn)}var hi=Xt.onDidChangeModelContent(function(wt){var $t=Xt.getPosition();if($t){var en=$t.lineNumber;gr.getLineContent(en).trim()===""?tn(en):ur(en)&&(tn(en),Ln(en))}}),$n=Xt.onMouseDown(function(wt){var $t,en,Cn;if(wt.target.detail&&($t=wt.target)!==null&&$t!==void 0&&(en=$t.element)!==null&&en!==void 0&&(Cn=en.className)!==null&&Cn!==void 0&&Cn.includes("line-numbers")){var _n=wt.target.position.lineNumber;if(gr.getLineContent(_n).trim()==="")return;ur(_n)?tn(_n):Ln(_n)}}),Zr=function($t){var en={range:new O.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};lt.current=Xt.deltaDecorations(lt.current,[en])},Bn=function(){lt.current=Xt.deltaDecorations(lt.current,[])},si=Xt.onMouseMove(function(wt){var $t,en,Cn;if(Bn(),wt.target.detail&&($t=wt.target)!==null&&$t!==void 0&&(en=$t.element)!==null&&en!==void 0&&(Cn=en.className)!==null&&Cn!==void 0&&Cn.includes("line-numbers")){var _n=wt.target.position.lineNumber;if(gr.getLineContent(_n).trim()==="")return;Zr(_n)}}),li=Xt.onMouseLeave(function(){Bn()});return function(){hi.dispose(),$n.dispose(),si.dispose(),li.dispose()}}},[tt.current,Se,be,at,ht]);function bt(){var or=tt.current.instance;if(or){var Xt=or.getSelection(),gr=tt.current.pastePos||{},Xr=new O.Range(gr.startLineNumber||Xt.endLineNumber,gr.startColumn||Xt.endColumn,gr.endLineNumber||Xt.endLineNumber,gr.endColumn||Xt.endColumn);setTimeout(function(){or.executeEdits("",[{range:Xr,text:""}])},300)}}function gt(or){(window.navigator.platform.match("Mac")?or.metaKey:or.ctrlKey)&&or.keyCode==83&&(or.preventDefault(),ye())}var Ut=function(){if(xe&&tt.current.instance){var Xt=tt.current.instance.getContentHeight();mn(Xt0||ee.target.offsetWidth>0)&&xe.layout()}}catch(te){re.e(te)}finally{re.f()}}),ue.observe(W.current)),ue}Object(n.useEffect)(function(){return W.current&&D.e(27).then(D.t.bind(null,"M/lh",7)).then(function(xe){O=xe;var ue=O.editor.createDiffEditor(W.current,Object(L.a)(Object(L.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},U),{},{wordWrap:!0}));me(ue);var le=Ae(ue);return function(){ue.dispose();var re=ue.getModel();re&&re.dispose(),le.unobserve(W.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(n.useEffect)(function(){fe&&fe.setModel({original:O.editor.createModel(G,B),modified:O.editor.createModel(H,B)})},[G,H,B,fe]);var De=t(M),ye=t(N),Oe={width:De,height:ye};return c.a.createElement("div",{className:"my-diff-editor",ref:W,style:Oe})}},ZpRC:function(j,Y,D){"use strict";function L(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function g(n,c){return(!c||n!=="hidden")&&n!=="visible"&&n!=="clip"}function T(n,c){if(n.clientHeightc||m>n&&s=c&&r>=u?m-n-o:s>c&&ru?s-c+h:0}var p=function(n,c){var u=window,o=c.scrollMode,h=c.block,m=c.inline,s=c.boundary,r=c.skipOverflowHiddenElements,a=typeof s=="function"?s:function(V){return V!==s};if(!L(n))throw new TypeError("Invalid target");for(var t=document.scrollingElement||document.documentElement,w=[],E=n;L(E)&&a(E);){if((E=E.parentElement)===t){w.push(E);break}E!=null&&E===document.body&&T(E)&&!T(document.documentElement)||E!=null&&T(E,r)&&w.push(E)}for(var f=u.visualViewport?u.visualViewport.width:innerWidth,k=u.visualViewport?u.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,x=n.getBoundingClientRect(),y=x.height,_=x.width,M=x.top,I=x.right,N=x.bottom,G=x.left,H=h==="start"||h==="nearest"?M:h==="end"?N:M+y/2,B=m==="center"?G+_/2:m==="end"?I:G,K=[],U=0;U=0&&G>=0&&N<=k&&I<=f&&M>=me&&N<=De&&G>=ye&&I<=Ae)return K;var Oe=getComputedStyle(W),xe=parseInt(Oe.borderLeftWidth,10),ue=parseInt(Oe.borderTopWidth,10),le=parseInt(Oe.borderRightWidth,10),re=parseInt(Oe.borderBottomWidth,10),pe=0,ee=0,te="offsetWidth"in W?W.offsetWidth-W.clientWidth-xe-le:0,ce="offsetHeight"in W?W.offsetHeight-W.clientHeight-ue-re:0;if(t===W)pe=h==="start"?H:h==="end"?H-k:h==="nearest"?P(C,C+k,k,ue,re,C+H,C+H+y,y):H-k/2,ee=m==="start"?B:m==="center"?B-f/2:m==="end"?B-f:P(O,O+f,f,xe,le,O+B,O+B+_,_),pe=Math.max(0,pe+C),ee=Math.max(0,ee+O);else{pe=h==="start"?H-me-ue:h==="end"?H-De+re+ce:h==="nearest"?P(me,De,ne,ue,re+ce,H,H+y,y):H-(me+ne/2)+ce/2,ee=m==="start"?B-ye-xe:m==="center"?B-(ye+fe/2)+te/2:m==="end"?B-Ae+le+te:P(ye,Ae,fe,xe,le+te,B,B+_,_);var q=W.scrollLeft,Q=W.scrollTop;H+=Q-(pe=Math.max(0,Math.min(Q+pe,W.scrollHeight-ne+ce))),B+=q-(ee=Math.max(0,Math.min(q+ee,W.scrollWidth-fe+te)))}K.push({el:W,top:pe,left:ee})}return K};function v(n){return n===Object(n)&&Object.keys(n).length!==0}function S(n,c){c===void 0&&(c="auto");var u="scrollBehavior"in document.body.style;n.forEach(function(o){var h=o.el,m=o.top,s=o.left;h.scroll&&u?h.scroll({top:m,left:s,behavior:c}):(h.scrollTop=m,h.scrollLeft=s)})}function b(n){return n===!1?{block:"end",inline:"nearest"}:v(n)?n:{block:"start",inline:"nearest"}}function d(n,c){var u=!n.ownerDocument.documentElement.contains(n);if(v(c)&&typeof c.behavior=="function")return c.behavior(u?[]:p(n,c));if(u)return;var o=b(c);return S(p(n,o),o.behavior)}var l=Y.a=d},Zss7:function(j,Y,D){var L;(function(g){var T=/^\s+/,P=/\s+$/,p=0,v=g.round,S=g.min,b=g.max,d=g.random;function l(re,pe){if(re=re||"",pe=pe||{},re instanceof l)return re;if(!(this instanceof l))return new l(re,pe);var ee=n(re);this._originalInput=re,this._r=ee.r,this._g=ee.g,this._b=ee.b,this._a=ee.a,this._roundA=v(100*this._a)/100,this._format=pe.format||ee.format,this._gradientType=pe.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=ee.ok,this._tc_id=p++}l.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 re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),pe,ee,te,ce,q,Q;return pe=re.r/255,ee=re.g/255,te=re.b/255,pe<=.03928?ce=pe/12.92:ce=g.pow((pe+.055)/1.055,2.4),ee<=.03928?q=ee/12.92:q=g.pow((ee+.055)/1.055,2.4),te<=.03928?Q=te/12.92:Q=g.pow((te+.055)/1.055,2.4),.2126*ce+.7152*q+.0722*Q},setAlpha:function(re){return this._a=K(re),this._roundA=v(100*this._a)/100,this},toHsv:function(){var re=h(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=h(this._r,this._g,this._b),pe=v(re.h*360),ee=v(re.s*100),te=v(re.v*100);return this._a==1?"hsv("+pe+", "+ee+"%, "+te+"%)":"hsva("+pe+", "+ee+"%, "+te+"%, "+this._roundA+")"},toHsl:function(){var re=u(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=u(this._r,this._g,this._b),pe=v(re.h*360),ee=v(re.s*100),te=v(re.l*100);return this._a==1?"hsl("+pe+", "+ee+"%, "+te+"%)":"hsla("+pe+", "+ee+"%, "+te+"%, "+this._roundA+")"},toHex:function(re){return s(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return r(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v(U(this._r,255)*100)+"%",g:v(U(this._g,255)*100)+"%",b:v(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v(U(this._r,255)*100)+"%, "+v(U(this._g,255)*100)+"%, "+v(U(this._b,255)*100)+"%)":"rgba("+v(U(this._r,255)*100)+"%, "+v(U(this._g,255)*100)+"%, "+v(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[s(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var pe="#"+a(this._r,this._g,this._b,this._a),ee=pe,te=this._gradientType?"GradientType = 1, ":"";if(re){var ce=l(re);ee="#"+a(ce._r,ce._g,ce._b,ce._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+pe+",endColorstr="+ee+")"},toString:function(re){var pe=!!re;re=re||this._format;var ee=!1,te=this._a<1&&this._a>=0,ce=!pe&&te&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return ce?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(ee=this.toRgbString()),re==="prgb"&&(ee=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(ee=this.toHexString()),re==="hex3"&&(ee=this.toHexString(!0)),re==="hex4"&&(ee=this.toHex8String(!0)),re==="hex8"&&(ee=this.toHex8String()),re==="name"&&(ee=this.toName()),re==="hsl"&&(ee=this.toHslString()),re==="hsv"&&(ee=this.toHsvString()),ee||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(re,pe){var ee=re.apply(null,[this].concat([].slice.call(pe)));return this._r=ee._r,this._g=ee._g,this._b=ee._b,this.setAlpha(ee._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(t,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(re,pe){return re.apply(null,[this].concat([].slice.call(pe)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(y,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},l.fromRatio=function(re,pe){if(typeof re=="object"){var ee={};for(var te in re)re.hasOwnProperty(te)&&(te==="a"?ee[te]=re[te]:ee[te]=Ae(re[te]));re=ee}return l(re,pe)};function n(re){var pe={r:0,g:0,b:0},ee=1,te=null,ce=null,q=null,Q=!1,V=!1;return typeof re=="string"&&(re=ue(re)),typeof re=="object"&&(xe(re.r)&&xe(re.g)&&xe(re.b)?(pe=c(re.r,re.g,re.b),Q=!0,V=String(re.r).substr(-1)==="%"?"prgb":"rgb"):xe(re.h)&&xe(re.s)&&xe(re.v)?(te=Ae(re.s),ce=Ae(re.v),pe=m(re.h,te,ce),Q=!0,V="hsv"):xe(re.h)&&xe(re.s)&&xe(re.l)&&(te=Ae(re.s),q=Ae(re.l),pe=o(re.h,te,q),Q=!0,V="hsl"),re.hasOwnProperty("a")&&(ee=re.a)),ee=K(ee),{ok:Q,format:re.format||V,r:S(255,b(pe.r,0)),g:S(255,b(pe.g,0)),b:S(255,b(pe.b,0)),a:ee}}function c(re,pe,ee){return{r:U(re,255)*255,g:U(pe,255)*255,b:U(ee,255)*255}}function u(re,pe,ee){re=U(re,255),pe=U(pe,255),ee=U(ee,255);var te=b(re,pe,ee),ce=S(re,pe,ee),q,Q,V=(te+ce)/2;if(te==ce)q=Q=0;else{var Z=te-ce;Q=V>.5?Z/(2-te-ce):Z/(te+ce);switch(te){case re:q=(pe-ee)/Z+(pe1&&(Te-=1),Te<1/6?be+(ge-be)*6*Te:Te<1/2?ge:Te<2/3?be+(ge-be)*(2/3-Te)*6:be}if(pe===0)te=ce=q=ee;else{var V=ee<.5?ee*(1+pe):ee+pe-ee*pe,Z=2*ee-V;te=Q(Z,V,re+1/3),ce=Q(Z,V,re),q=Q(Z,V,re-1/3)}return{r:te*255,g:ce*255,b:q*255}}function h(re,pe,ee){re=U(re,255),pe=U(pe,255),ee=U(ee,255);var te=b(re,pe,ee),ce=S(re,pe,ee),q,Q,V=te,Z=te-ce;if(Q=te===0?0:Z/te,te==ce)q=0;else{switch(te){case re:q=(pe-ee)/Z+(pe>1)+720)%360;--pe;)te.h=(te.h+ce)%360,q.push(l(te));return q}function N(re,pe){pe=pe||6;for(var ee=l(re).toHsv(),te=ee.h,ce=ee.s,q=ee.v,Q=[],V=1/pe;pe--;)Q.push(l({h:te,s:ce,v:q})),q=(q+V)%1;return Q}l.mix=function(re,pe,ee){ee=ee===0?0:ee||50;var te=l(re).toRgb(),ce=l(pe).toRgb(),q=ee/100,Q={r:(ce.r-te.r)*q+te.r,g:(ce.g-te.g)*q+te.g,b:(ce.b-te.b)*q+te.b,a:(ce.a-te.a)*q+te.a};return l(Q)},l.readability=function(re,pe){var ee=l(re),te=l(pe);return(g.max(ee.getLuminance(),te.getLuminance())+.05)/(g.min(ee.getLuminance(),te.getLuminance())+.05)},l.isReadable=function(re,pe,ee){var te=l.readability(re,pe),ce,q;q=!1,ce=le(ee);switch(ce.level+ce.size){case"AAsmall":case"AAAlarge":q=te>=4.5;break;case"AAlarge":q=te>=3;break;case"AAAsmall":q=te>=7;break}return q},l.mostReadable=function(re,pe,ee){var te=null,ce=0,q,Q,V,Z;ee=ee||{},Q=ee.includeFallbackColors,V=ee.level,Z=ee.size;for(var be=0;bece&&(ce=q,te=l(pe[be]));return l.isReadable(re,te,{level:V,size:Z})||!Q?te:(ee.includeFallbackColors=!1,l.mostReadable(re,["#fff","#000"],ee))};var G=l.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"},H=l.hexNames=B(G);function B(re){var pe={};for(var ee in re)re.hasOwnProperty(ee)&&(pe[re[ee]]=ee);return pe}function K(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function U(re,pe){ne(re)&&(re="100%");var ee=fe(re);return re=S(pe,b(0,parseFloat(re))),ee&&(re=parseInt(re*pe,10)/100),g.abs(re-pe)<1e-6?1:re%pe/parseFloat(pe)}function W(re){return S(1,b(0,re))}function X(re){return parseInt(re,16)}function ne(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function fe(re){return typeof re=="string"&&re.indexOf("%")!=-1}function me(re){return re.length==1?"0"+re:""+re}function Ae(re){return re<=1&&(re=re*100+"%"),re}function De(re){return g.round(parseFloat(re)*255).toString(16)}function ye(re){return X(re)/255}var Oe=function(){var re="[-\\+]?\\d+%?",pe="[-\\+]?\\d*\\.\\d+%?",ee="(?:"+pe+")|(?:"+re+")",te="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",ce="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?";return{CSS_UNIT:new RegExp(ee),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ce),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ce),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ce),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 xe(re){return!!Oe.CSS_UNIT.exec(re)}function ue(re){re=re.replace(T,"").replace(P,"").toLowerCase();var pe=!1;if(G[re])re=G[re],pe=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ee;return(ee=Oe.rgb.exec(re))?{r:ee[1],g:ee[2],b:ee[3]}:(ee=Oe.rgba.exec(re))?{r:ee[1],g:ee[2],b:ee[3],a:ee[4]}:(ee=Oe.hsl.exec(re))?{h:ee[1],s:ee[2],l:ee[3]}:(ee=Oe.hsla.exec(re))?{h:ee[1],s:ee[2],l:ee[3],a:ee[4]}:(ee=Oe.hsv.exec(re))?{h:ee[1],s:ee[2],v:ee[3]}:(ee=Oe.hsva.exec(re))?{h:ee[1],s:ee[2],v:ee[3],a:ee[4]}:(ee=Oe.hex8.exec(re))?{r:X(ee[1]),g:X(ee[2]),b:X(ee[3]),a:ye(ee[4]),format:pe?"name":"hex8"}:(ee=Oe.hex6.exec(re))?{r:X(ee[1]),g:X(ee[2]),b:X(ee[3]),format:pe?"name":"hex"}:(ee=Oe.hex4.exec(re))?{r:X(ee[1]+""+ee[1]),g:X(ee[2]+""+ee[2]),b:X(ee[3]+""+ee[3]),a:ye(ee[4]+""+ee[4]),format:pe?"name":"hex8"}:(ee=Oe.hex3.exec(re))?{r:X(ee[1]+""+ee[1]),g:X(ee[2]+""+ee[2]),b:X(ee[3]+""+ee[3]),format:pe?"name":"hex"}:!1}function le(re){var pe,ee;return re=re||{level:"AA",size:"small"},pe=(re.level||"AA").toUpperCase(),ee=(re.size||"small").toLowerCase(),pe!=="AA"&&pe!=="AAA"&&(pe="AA"),ee!=="small"&&ee!=="large"&&(ee="small"),{level:pe,size:ee}}j.exports?j.exports=l:!(L=function(){return l}.call(Y,D,Y,j),L!==void 0&&(j.exports=L))})(Math)},bQjk:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return function(g){var T=L,P=T.lib,p=P.CipherParams,v=T.enc,S=v.Hex,b=T.format,d=b.Hex={stringify:function(l){return l.ciphertext.toString(S)},parse:function(l){var n=S.parse(l);return p.create({ciphertext:n})}}}(),L.format.Hex})},bT9E:function(j,Y,D){"use strict";D.d(Y,"a",function(){return g});var L=D("VTBJ");function g(T,P){var p=Object(L.a)({},T);return Array.isArray(P)&&P.forEach(function(v){delete p[v]}),p}},biw7:function(j,Y,D){"use strict";var L=D("q1tI"),g=D.n(L),T=L.createContext(null);Y.a=T},c5Ni:function(j,Y,D){},cv67:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(g){var T=L,P=T.lib,p=P.WordArray,v=P.Hasher,S=T.algo,b=[];(function(){for(var o=0;o<64;o++)b[o]=g.abs(g.sin(o+1))*4294967296|0})();var d=S.MD5=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(o,h){for(var m=0;m<16;m++){var s=h+m,r=o[s];o[s]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360}var a=this._hash.words,t=o[h+0],w=o[h+1],E=o[h+2],f=o[h+3],k=o[h+4],O=o[h+5],C=o[h+6],x=o[h+7],y=o[h+8],_=o[h+9],M=o[h+10],I=o[h+11],N=o[h+12],G=o[h+13],H=o[h+14],B=o[h+15],K=a[0],U=a[1],W=a[2],X=a[3];K=l(K,U,W,X,t,7,b[0]),X=l(X,K,U,W,w,12,b[1]),W=l(W,X,K,U,E,17,b[2]),U=l(U,W,X,K,f,22,b[3]),K=l(K,U,W,X,k,7,b[4]),X=l(X,K,U,W,O,12,b[5]),W=l(W,X,K,U,C,17,b[6]),U=l(U,W,X,K,x,22,b[7]),K=l(K,U,W,X,y,7,b[8]),X=l(X,K,U,W,_,12,b[9]),W=l(W,X,K,U,M,17,b[10]),U=l(U,W,X,K,I,22,b[11]),K=l(K,U,W,X,N,7,b[12]),X=l(X,K,U,W,G,12,b[13]),W=l(W,X,K,U,H,17,b[14]),U=l(U,W,X,K,B,22,b[15]),K=n(K,U,W,X,w,5,b[16]),X=n(X,K,U,W,C,9,b[17]),W=n(W,X,K,U,I,14,b[18]),U=n(U,W,X,K,t,20,b[19]),K=n(K,U,W,X,O,5,b[20]),X=n(X,K,U,W,M,9,b[21]),W=n(W,X,K,U,B,14,b[22]),U=n(U,W,X,K,k,20,b[23]),K=n(K,U,W,X,_,5,b[24]),X=n(X,K,U,W,H,9,b[25]),W=n(W,X,K,U,f,14,b[26]),U=n(U,W,X,K,y,20,b[27]),K=n(K,U,W,X,G,5,b[28]),X=n(X,K,U,W,E,9,b[29]),W=n(W,X,K,U,x,14,b[30]),U=n(U,W,X,K,N,20,b[31]),K=c(K,U,W,X,O,4,b[32]),X=c(X,K,U,W,y,11,b[33]),W=c(W,X,K,U,I,16,b[34]),U=c(U,W,X,K,H,23,b[35]),K=c(K,U,W,X,w,4,b[36]),X=c(X,K,U,W,k,11,b[37]),W=c(W,X,K,U,x,16,b[38]),U=c(U,W,X,K,M,23,b[39]),K=c(K,U,W,X,G,4,b[40]),X=c(X,K,U,W,t,11,b[41]),W=c(W,X,K,U,f,16,b[42]),U=c(U,W,X,K,C,23,b[43]),K=c(K,U,W,X,_,4,b[44]),X=c(X,K,U,W,N,11,b[45]),W=c(W,X,K,U,B,16,b[46]),U=c(U,W,X,K,E,23,b[47]),K=u(K,U,W,X,t,6,b[48]),X=u(X,K,U,W,x,10,b[49]),W=u(W,X,K,U,H,15,b[50]),U=u(U,W,X,K,O,21,b[51]),K=u(K,U,W,X,N,6,b[52]),X=u(X,K,U,W,f,10,b[53]),W=u(W,X,K,U,M,15,b[54]),U=u(U,W,X,K,w,21,b[55]),K=u(K,U,W,X,y,6,b[56]),X=u(X,K,U,W,B,10,b[57]),W=u(W,X,K,U,C,15,b[58]),U=u(U,W,X,K,G,21,b[59]),K=u(K,U,W,X,k,6,b[60]),X=u(X,K,U,W,I,10,b[61]),W=u(W,X,K,U,E,15,b[62]),U=u(U,W,X,K,_,21,b[63]),a[0]=a[0]+K|0,a[1]=a[1]+U|0,a[2]=a[2]+W|0,a[3]=a[3]+X|0},_doFinalize:function(){var o=this._data,h=o.words,m=this._nDataBytes*8,s=o.sigBytes*8;h[s>>>5]|=128<<24-s%32;var r=g.floor(m/4294967296),a=m;h[(s+64>>>9<<4)+15]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,h[(s+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,o.sigBytes=(h.length+1)*4,this._process();for(var t=this._hash,w=t.words,E=0;E<4;E++){var f=w[E];w[E]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}return t},clone:function(){var o=v.clone.call(this);return o._hash=this._hash.clone(),o}});function l(o,h,m,s,r,a,t){var w=o+(h&m|~h&s)+r+t;return(w<>>32-a)+h}function n(o,h,m,s,r,a,t){var w=o+(h&s|m&~s)+r+t;return(w<>>32-a)+h}function c(o,h,m,s,r,a,t){var w=o+(h^m^s)+r+t;return(w<>>32-a)+h}function u(o,h,m,s,r,a,t){var w=o+(m^(h|~s))+r+t;return(w<>>32-a)+h}T.MD5=v._createHelper(d),T.HmacMD5=v._createHmacHelper(d)}(Math),L.MD5})},dejd:function(j,Y,D){},dmUQ:function(j,Y,D){"use strict";var L=D("Ff2n"),g=D("rePB"),T=D("1OyB"),P=D("vuIU"),p=D("Ji7U"),v=D("md7G"),S=D("foSv"),b=D("q1tI"),d=D.n(b),l=D("TSYQ"),n=D.n(l),c=D("4IlW");function u(y,_){var M=Object.keys(y);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(y);_&&(I=I.filter(function(N){return Object.getOwnPropertyDescriptor(y,N).enumerable})),M.push.apply(M,I)}return M}function o(y){for(var _=1;_1?fe-1:0),Ae=1;Ae1?U-1:0),X=1;X=0)return parseInt(K.slice(K.indexOf("e-")+2),10);var U=0;return K.indexOf(".")>=0&&(U=K.length-K.indexOf(".")-1),U},N.getInputDisplayValue=function(B){var K=B||N.state,U=K.focused,W=K.inputValue,X=K.value,ne;U?ne=W:ne=N.toPrecisionAsStep(X),ne==null&&(ne="");var fe=N.formatWrapper(ne);return f(N.props.decimalSeparator)&&(fe=fe.toString().replace(".",N.props.decimalSeparator)),fe},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(B){}},N.restoreByAfter=function(B){if(B===void 0)return!1;var K=N.input.value,U=K.lastIndexOf(B);if(U===-1)return!1;var W=N.cursorBefore.length;return N.lastKeyCode===c.a.DELETE&&N.cursorBefore.charAt(W-1)===B[0]?(N.fixCaret(W,W),!0):U+B.length===K.length?(N.fixCaret(U,U),!0):!1},N.partRestoreByAfter=function(B){return B===void 0?!1:Array.prototype.some.call(B,function(K,U){var W=B.substring(U);return N.restoreByAfter(W)})},N.isNotCompleteNumber=function(B){return isNaN(B)||B===""||B===null||B&&B.toString().indexOf(".")===B.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(B,K,U){N.pressingUpOrDown=!0,N.step("down",B,K,U)},N.up=function(B,K,U){N.pressingUpOrDown=!0,N.step("up",B,K,U)},N.saveInput=function(B){N.input=B};var G=I.value;G===void 0&&(G=I.defaultValue),N.state={focused:I.autoFocus};var H=N.getValidValue(N.toNumber(G));return N.state=o(o({},N.state),{},{inputValue:N.toPrecisionAsStep(H),value:H}),N}return Object(P.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var G=this.props,H=G.value,B=G.onChange,K=G.max,U=G.min,W=this.state.focused;if(N){if(!k(N.value,H)||!k(N.max,K)||!k(N.min,U)){var X=W?H:this.getValidValue(H),ne;this.pressingUpOrDown?ne=X:this.inputting?ne=this.rawInput:ne=this.toPrecisionAsStep(X),this.setState({value:X,inputValue:ne})}var fe="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==K&&typeof fe=="number"&&fe>K&&B&&B(K),"min"in this.props&&N.min!==U&&typeof fe=="number"&&fe1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,B=parseFloat(N);return isNaN(B)?N:(BH&&(B=H),B)}},{key:"setValue",value:function(N,G){var H=this.props.precision,B=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),K=this.state.value,U=K===void 0?null:K,W=this.state.inputValue,X=W===void 0?null:W,ne=typeof B=="number"?B.toFixed(H):"".concat(B),fe=B!==U||ne!=="".concat(X);return"value"in this.props?(X=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:X},G)):this.setState({value:B,inputValue:this.toPrecisionAsStep(N)},G),fe&&this.props.onChange(B),B}},{key:"getMaxPrecision",value:function(N){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,B=H.precision,K=H.step;if(f(B))return B;var U=this.getPrecision(G),W=this.getPrecision(K),X=this.getPrecision(N);return N?Math.max(X,U+W):U+W}},{key:"getPrecisionFactor",value:function(N){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(N,G);return Math.pow(10,H)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var G=Math.abs(this.getMaxPrecision(N));return isNaN(G)?N.toString():Number(N).toFixed(G)}},{key:"toNumber",value:function(N){var G=this.props.precision,H=this.state.focused,B=N&&N.length>16&&H;return this.isNotCompleteNumber(N)||B?N:f(G)?Math.round(N*Math.pow(10,G))/Math.pow(10,G):Number(N)}},{key:"upStep",value:function(N,G){var H=this.props.step,B=this.getPrecisionFactor(N,G),K=Math.abs(this.getMaxPrecision(N,G)),U=((B*N+B*H*G)/B).toFixed(K);return this.toNumber(U)}},{key:"downStep",value:function(N,G){var H=this.props.step,B=this.getPrecisionFactor(N,G),K=Math.abs(this.getMaxPrecision(N,G)),U=((B*N-B*H*G)/B).toFixed(K);return this.toNumber(U)}},{key:"step",value:function(N,G){var H=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3?arguments[3]:void 0;this.stop(),G&&(G.persist(),G.preventDefault());var U=this.props;if(U.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var X=this["".concat(N,"Step")](W,B),ne=X>U.max||XU.max?X=U.max:X=me),lt=(ct||ct===0)&&(isNaN(ct)||Number(ct)<=Ae),Ue=Qe||B||K,Le=lt||B||K,Ie=n()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),Ue)),Ce=n()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),Le)),Se=U?{onTouchStart:Ue?s:this.up,onTouchEnd:this.stop}:{onMouseDown:Ue?s:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ke=U?{onTouchStart:Le?s:this.down,onTouchEnd:this.stop}:{onMouseDown:Le?s:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return d.a.createElement("div",{className:He,style:De,title:ye,onMouseEnter:Oe,onMouseLeave:xe,onMouseOver:ue,onMouseOut:le,onFocus:function(){return null},onBlur:function(){return null}},d.a.createElement("div",{className:"".concat(H,"-handler-wrap")},d.a.createElement("span",Object.assign({unselectable:"on"},Se,{role:"button","aria-label":"Increase Value","aria-disabled":Ue,className:Ie}),X||d.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:r})),d.a.createElement("span",Object.assign({unselectable:"on"},ke,{role:"button","aria-label":"Decrease Value","aria-disabled":Le,className:Ce}),ne||d.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:r}))),d.a.createElement("div",{className:"".concat(H,"-input-wrap")},d.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ae,"aria-valuemax":me,"aria-valuenow":ct,required:re,type:te,placeholder:ce,onPaste:Je,onClick:pe,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:ee,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:tt?this.onKeyDown:s,onKeyUp:tt?this.onKeyUp:s,autoFocus:ge,maxLength:be,readOnly:K,disabled:B,max:me,min:Ae,step:Z,name:Te,title:ye,id:q,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ft),pattern:V,inputMode:Q,onInput:rt},Re))))}}]),M}(d.a.Component);O.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:s,onKeyDown:s,onPressEnter:s,onFocus:s,onBlur:s,parser:a,required:!1,autoComplete:"off"};var C=O,x=Y.a=C},e7zE:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("3y9D"),D("WYAk"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.Base,p=T.WordArray,v=g.algo,S=v.SHA1,b=v.HMAC,d=v.PBKDF2=P.extend({cfg:P.extend({keySize:128/32,hasher:S,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,n){for(var c=this.cfg,u=b.create(c.hasher,l),o=p.create(),h=p.create([1]),m=o.words,s=h.words,r=c.keySize,a=c.iterations;m.length=0;f--)(E=m[f])&&(w=(t<3?E(w):t>3?E(s,r,w):E(s,r))||w);return t>3&&w&&Object.defineProperty(s,r,w),w},b=function(m,s){return function(r,a){s(r,a,m)}},d=function(){for(var m=0,s=0,r=arguments.length;s=0&&(t.splice(w,1),a._onDidChangeMenu.fire(s))}}},m.prototype.getMenuItems=function(s){var r=(this._menuItems.get(s)||[]).slice(0);return s===0&&this._appendImplicitItems(r),r},m.prototype._appendImplicitItems=function(s){for(var r=new Set,a=s.filter(function(O){return l(O)}),t=0,w=a;tH.length)&&(B=H.length);for(var K=0,U=new Array(B);K=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,U))continue;K[U]=H[U]}}return K}function h(H,B){if(H==null)return{};var K={},U=Object.keys(H),W,X;for(X=0;X=0)continue;K[W]=H[W]}return K}var m=function(B){var K=B.className,U=B.percent,W=B.prefixCls,X=B.strokeColor,ne=B.strokeLinecap,fe=B.strokeWidth,me=B.style,Ae=B.trailColor,De=B.trailWidth,ye=B.transition,Oe=o(B,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Oe.gapPosition;var xe=Array.isArray(U)?U:[U],ue=Array.isArray(X)?X:[X],le=v(xe),re=b(le,1),pe=re[0],ee=fe/2,te=100-fe/2,ce="M ".concat(ne==="round"?ee:0,",").concat(ee,` - L `).concat(ne==="round"?te:100,",").concat(ee),q="0 0 100 ".concat(fe),Q=0;return g.a.createElement("svg",_({className:P()("".concat(W,"-line"),K),viewBox:q,preserveAspectRatio:"none",style:me},Oe),g.a.createElement("path",{className:"".concat(W,"-line-trail"),d:ce,strokeLinecap:ne,stroke:Ae,strokeWidth:De||fe,fillOpacity:"0"}),xe.map(function(V,Z){var be={strokeDasharray:"".concat(V,"px, 100px"),strokeDashoffset:"-".concat(Q,"px"),transition:ye||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ge=ue[Z]||ue[ue.length-1];return Q+=V,g.a.createElement("path",{key:Z,className:"".concat(W,"-line-path"),d:ce,strokeLinecap:ne,stroke:ge,strokeWidth:fe,fillOpacity:"0",ref:pe[Z],style:be})}))};m.defaultProps=p;var s=m;function r(){return r=Object.assign||function(H){for(var B=1;BH.length)&&(B=H.length);for(var K=0,U=new Array(B);K=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,U))continue;K[U]=H[U]}}return K}function C(H,B){if(H==null)return{};var K={},U=Object.keys(H),W,X;for(X=0;X=0)continue;K[W]=H[W]}return K}var x=0;function y(H){return+H.replace("%","")}function S(H){return Array.isArray(H)?H:[H]}function M(H,B,K,U){var W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,X=arguments.length>5?arguments[5]:void 0,ne=50-U/2,fe=0,me=-ne,Ae=0,De=-2*ne;switch(X){case"left":fe=-ne,me=0,Ae=2*ne,De=0;break;case"right":fe=ne,me=0,Ae=-2*ne,De=0;break;case"bottom":me=ne,De=2*ne;break;default:}var ye="M 50,50 m ".concat(fe,",").concat(me,` + L `).concat(ne==="round"?te:100,",").concat(ee),q="0 0 100 ".concat(fe),Q=0;return g.a.createElement("svg",S({className:P()("".concat(W,"-line"),K),viewBox:q,preserveAspectRatio:"none",style:me},Oe),g.a.createElement("path",{className:"".concat(W,"-line-trail"),d:ce,strokeLinecap:ne,stroke:Ae,strokeWidth:De||fe,fillOpacity:"0"}),xe.map(function(V,Z){var be={strokeDasharray:"".concat(V,"px, 100px"),strokeDashoffset:"-".concat(Q,"px"),transition:ye||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ge=ue[Z]||ue[ue.length-1];return Q+=V,g.a.createElement("path",{key:Z,className:"".concat(W,"-line-path"),d:ce,strokeLinecap:ne,stroke:ge,strokeWidth:fe,fillOpacity:"0",ref:pe[Z],style:be})}))};m.defaultProps=p;var s=m;function r(){return r=Object.assign||function(H){for(var B=1;BH.length)&&(B=H.length);for(var K=0,U=new Array(B);K=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,U))continue;K[U]=H[U]}}return K}function C(H,B){if(H==null)return{};var K={},U=Object.keys(H),W,X;for(X=0;X=0)continue;K[W]=H[W]}return K}var x=0;function y(H){return+H.replace("%","")}function _(H){return Array.isArray(H)?H:[H]}function M(H,B,K,U){var W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,X=arguments.length>5?arguments[5]:void 0,ne=50-U/2,fe=0,me=-ne,Ae=0,De=-2*ne;switch(X){case"left":fe=-ne,me=0,Ae=2*ne,De=0;break;case"right":fe=ne,me=0,Ae=-2*ne,De=0;break;case"bottom":me=ne,De=2*ne;break;default:}var ye="M 50,50 m ".concat(fe,",").concat(me,` a `).concat(ne,",").concat(ne," 0 1 1 ").concat(Ae,",").concat(-De,` - a `).concat(ne,",").concat(ne," 0 1 1 ").concat(-Ae,",").concat(De),Oe=Math.PI*2*ne,xe={stroke:K,strokeDasharray:"".concat(B/100*(Oe-W),"px ").concat(Oe,"px"),strokeDashoffset:"-".concat(W/2+H/100*(Oe-W),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ye,pathStyle:xe}}var I=function(B){var K=B.prefixCls,U=B.strokeWidth,W=B.trailWidth,X=B.gapDegree,ne=B.gapPosition,fe=B.trailColor,me=B.strokeLinecap,Ae=B.style,De=B.className,ye=B.strokeColor,Oe=B.percent,xe=O(B,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(L.useMemo)(function(){return x+=1,x},[]),le=M(0,100,fe,U,X,ne),re=le.pathString,pe=le.pathStyle,ee=S(Oe),te=S(ye),ce=te.find(function(be){return Object.prototype.toString.call(be)==="[object Object]"}),q=v(ee),Q=a(q,1),V=Q[0],Z=function(){var ge=0;return ee.map(function(Te,Je){var rt=te[Je]||te[te.length-1],nt=Object.prototype.toString.call(rt)==="[object Object]"?"url(#".concat(K,"-gradient-").concat(ue,")"):"",at=M(ge,Te,rt,U,X,ne);return ge+=Te,g.a.createElement("path",{key:Je,className:"".concat(K,"-circle-path"),d:at.pathString,stroke:nt,strokeLinecap:me,strokeWidth:U,opacity:Te===0?0:1,fillOpacity:"0",style:at.pathStyle,ref:V[Je]})})};return g.a.createElement("svg",r({className:P()("".concat(K,"-circle"),De),viewBox:"0 0 100 100",style:Ae},xe),ce&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(K,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ce).sort(function(be,ge){return y(be)-y(ge)}).map(function(be,ge){return g.a.createElement("stop",{key:ge,offset:be,stopColor:ce[be]})}))),g.a.createElement("path",{className:"".concat(K,"-circle-trail"),d:re,stroke:fe,strokeLinecap:me,strokeWidth:W||U,fillOpacity:"0",style:pe}),Z().reverse())};I.defaultProps=p;var N=I,G={Line:s,Circle:N}},hW8S:function(j,Y,D){"use strict";D.d(Y,"a",function(){return P}),D.d(Y,"c",function(){return p}),D.d(Y,"b",function(){return v});var L=D("VTBJ"),g=D("Ff2n"),T=D("Kwbf"),P="RC_TABLE_INTERNAL_COL_DEFINE";function p(_){var b=_.expandable,d=Object(g.a)(_,["expandable"]);return"expandable"in _?Object(L.a)(Object(L.a)({},d),b):d}function v(_){return Object.keys(_).reduce(function(b,d){return(d.substr(0,5)==="data-"||d.substr(0,5)==="aria-")&&(b[d]=_[d]),b},{})}},jO9C:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.pad.Iso97971={pad:function(g,T){g.concat(L.lib.WordArray.create([2147483648],1)),L.pad.ZeroPadding.pad(g,T)},unpad:function(g){L.pad.ZeroPadding.unpad(g),g.sigBytes--}},L.pad.Iso97971})},jwmR:function(j,Y,D){j.exports={flexRow:"flexRow___3nMh-",flexColumn:"flexColumn___Xpn5L",formWrap:"formWrap___3t9mN",example:"example___5c8Eu",footerWrap:"footerWrap___20Wal"}},k3GJ:function(j,Y,D){"use strict";D.d(Y,"a",function(){return kr});var L=D("rePB"),g=D("ODXe"),T=D("Ff2n"),P=D("VTBJ"),p=D("q1tI"),v=D("TSYQ"),_=D.n(v),b=D("Zm9Q"),d=D("6cGi"),l=D("KQm4"),n=D("xEkU"),c=D.n(n),u=D("t23M");function o(Me){var Ge=Object(p.useRef)(),Ye=Object(p.useRef)(!1);function Fe(){for(var Ee=arguments.length,Pe=new Array(Ee),Se=0;SeZe&&(jt=Ze-kt),Object(p.useMemo)(function(){if(!Pe.length)return[0,0];for(var Yt=Pe.length,Ir=Yt,Qr=0;QrWe+jt){Ir=Qr-1;break}}for(var nn=0,Kr=Yt-1;Kr>=0;Kr-=1){var sn=Me.get(Pe[Kr].key)||w;if(sn[Ve]1&&arguments[1]!==void 0?arguments[1]:!1,Fe=Ge&&typeof Ge.getBoundingClientRect=="function"&&Ge.getBoundingClientRect().width;if(Fe){if(Ye){var Ee=getComputedStyle(Ge),Pe=Ee.marginLeft,Se=Ee.marginRight;Fe+=+Pe.replace("px","")+ +Se.replace("px","")}Fe=+Fe.toFixed(6)}return Fe||0},ge=function(Ge,Ye,Fe){Ge&&Object(H.a)(Ge.style)==="object"&&(Ge.style[Ye]=Fe)},Te=function(){return ee.any},Je=D("bdgK"),rt=D("i8i4"),nt=D.n(rt),at=D("wgJM"),ct=D("l4aY"),ht=D("m+aA"),He=D("c+Xe"),Re=D("zT1h"),tt=D("QC+M");function ft(Me,Ge,Ye){return Ye?Me[0]===Ge[0]:Me[0]===Ge[0]&&Me[1]===Ge[1]}function Qe(Me,Ge,Ye){var Fe=Me[Ge]||{};return Object(P.a)(Object(P.a)({},Fe),Ye)}function lt(Me,Ge,Ye,Fe){for(var Ee=Ye.points,Pe=Object.keys(Me),Se=0;Se1&&arguments[1]!==void 0?arguments[1]:2;Ge();var Pe=Object(at.a)(function(){Ee<=1?Fe({isCanceled:function(){return Pe!==Me.current}}):Ye(Fe,Ee-1)});Me.current=Pe}return p.useEffect(function(){return function(){Ge()}},[]),[Ye,Ge]},kn=[Ar,vn,mn,Kt],Ln=!1,tn=!0;function ur(Me){return Me===mn||Me===Kt}var Xn=function(Me,Ge){var Ye=p.useState(un),Fe=Object(g.a)(Ye,2),Ee=Fe[0],Pe=Fe[1],Se=Xr(),je=Object(g.a)(Se,2),ze=je[0],Ve=je[1];function We(){Pe(Ar)}return gr(function(){if(Ee!==un&&Ee!==Kt){var Ze=kn.indexOf(Ee),pt=kn[Ze+1],kt=Ge(Ee);kt===Ln?Pe(pt):ze(function(jt){function Yt(){if(jt.isCanceled())return;Pe(pt)}kt===!0?Yt():Promise.resolve(kt).then(Yt)})}},[Me,Ee]),p.useEffect(function(){return function(){Ve()}},[]),[We,Ee]},hi=function(Me){var Ge=Object(p.useRef)(),Ye=Object(p.useRef)(Me);Ye.current=Me;var Fe=p.useCallback(function(Se){Ye.current(Se)},[]);function Ee(Se){Se&&(Se.removeEventListener(hr,Fe),Se.removeEventListener(Nt,Fe))}function Pe(Se){Ge.current&&Ge.current!==Se&&Ee(Ge.current),Se&&Se!==Ge.current&&(Se.addEventListener(hr,Fe),Se.addEventListener(Nt,Fe),Ge.current=Se)}return p.useEffect(function(){return function(){Ee(Ge.current)}},[]),[Pe,Ee]};function $n(Me,Ge,Ye,Fe){var Ee=Fe.motionEnter,Pe=Ee===void 0?!0:Ee,Se=Fe.motionAppear,je=Se===void 0?!0:Se,ze=Fe.motionLeave,Ve=ze===void 0?!0:ze,We=Fe.motionDeadline,Ze=Fe.motionLeaveImmediately,pt=Fe.onAppearPrepare,kt=Fe.onEnterPrepare,jt=Fe.onLeavePrepare,Yt=Fe.onAppearStart,Ir=Fe.onEnterStart,Qr=Fe.onLeaveStart,$r=Fe.onAppearActive,nn=Fe.onEnterActive,Kr=Fe.onLeaveActive,sn=Fe.onAppearEnd,ln=Fe.onEnterEnd,xn=Fe.onLeaveEnd,hn=Fe.onVisibleChanged,jn=or(),pn=Object(g.a)(jn,2),jr=pn[0],Wr=pn[1],dn=or(_t),bn=Object(g.a)(dn,2),Tr=bn[0],_n=bn[1],Yn=or(null),Rn=Object(g.a)(Yn,2),Wn=Rn[0],Dn=Rn[1],ti=Object(p.useRef)(!1),ci=Object(p.useRef)(null),Jn=Object(p.useRef)(!1),gi=Object(p.useRef)(null);function Xi(){var Fn=Ye();return Fn||gi.current}var Oi=Object(p.useRef)(!1);function di(Fn){var Pn=Xi();if(Fn&&!Fn.deadline&&Fn.target!==Pn)return;var ai;Tr===Yr&&Oi.current?ai=sn==null?void 0:sn(Pn,Fn):Tr===Jr&&Oi.current?ai=ln==null?void 0:ln(Pn,Fn):Tr===Hr&&Oi.current&&(ai=xn==null?void 0:xn(Pn,Fn)),ai!==!1&&!Jn.current&&(_n(_t),Dn(null))}var Hn=hi(di),zn=Object(g.a)(Hn,1),Qn=zn[0],Vn=p.useMemo(function(){var Fn,Pn,ai;switch(Tr){case"appear":return Fn={},Object(L.a)(Fn,Ar,pt),Object(L.a)(Fn,vn,Yt),Object(L.a)(Fn,mn,$r),Fn;case"enter":return Pn={},Object(L.a)(Pn,Ar,kt),Object(L.a)(Pn,vn,Ir),Object(L.a)(Pn,mn,nn),Pn;case"leave":return ai={},Object(L.a)(ai,Ar,jt),Object(L.a)(ai,vn,Qr),Object(L.a)(ai,mn,Kr),ai;default:return{}}},[Tr]),ii=Xn(Tr,function(Fn){if(Fn===Ar){var Pn=Vn[Ar];return Pn?Pn(Xi()):Ln}if(Mn in Vn){var ai;Dn(((ai=Vn[Mn])===null||ai===void 0?void 0:ai.call(Vn,Xi(),null))||null)}return Mn===mn&&(Qn(Xi()),We>0&&(clearTimeout(ci.current),ci.current=setTimeout(function(){di({deadline:!0})},We))),tn}),Di=Object(g.a)(ii,2),ra=Di[0],Mn=Di[1],Ui=ur(Mn);Oi.current=Ui,gr(function(){Wr(Ge);var Fn=ti.current;if(ti.current=!0,!Me)return;var Pn;!Fn&&Ge&&je&&(Pn=Yr),Fn&&Ge&&Pe&&(Pn=Jr),(Fn&&!Ge&&Ve||!Fn&&Ze&&!Ge&&Ve)&&(Pn=Hr),Pn&&(_n(Pn),ra())},[Ge]),Object(p.useEffect)(function(){(Tr===Yr&&!je||Tr===Jr&&!Pe||Tr===Hr&&!Ve)&&_n(_t)},[je,Pe,Ve]),Object(p.useEffect)(function(){return function(){clearTimeout(ci.current),Jn.current=!0}},[]),Object(p.useEffect)(function(){jr!==void 0&&Tr===_t&&(hn==null||hn(jr))},[jr,Tr]);var Bi=Wn;return Vn[Ar]&&Mn===vn&&(Bi=Object(P.a)({transition:"none"},Bi)),[Tr,Mn,Bi,jr!=null?jr:Ge]}var Zr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){return Object(k.a)(this,Ye),Ge.apply(this,arguments)}return Object(O.a)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(p.Component),Bn=Zr;function si(Me){var Ge=Me;Object(H.a)(Me)==="object"&&(Ge=Me.transitionSupport);function Ye(Ee){return!!(Ee.motionName&&Ge)}var Fe=p.forwardRef(function(Ee,Pe){var Se=Ee.visible,je=Se===void 0?!0:Se,ze=Ee.removeOnLeave,Ve=ze===void 0?!0:ze,We=Ee.forceRender,Ze=Ee.children,pt=Ee.motionName,kt=Ee.leavedClassName,jt=Ee.eventProps,Yt=Ye(Ee),Ir=Object(p.useRef)(),Qr=Object(p.useRef)();function $r(){try{return Object(ht.a)(Ir.current||Qr.current)}catch(_n){return null}}var nn=$n(Yt,je,$r,Ee),Kr=Object(g.a)(nn,4),sn=Kr[0],ln=Kr[1],xn=Kr[2],hn=Kr[3],jn=p.useRef(hn);hn&&(jn.current=!0);var pn=Object(p.useRef)(Pe);pn.current=Pe;var jr=p.useCallback(function(_n){Ir.current=_n,Object(He.b)(pn.current,_n)},[]),Wr,dn=Object(P.a)(Object(P.a)({},jt),{},{visible:je});if(!Ze)Wr=null;else if(sn===_t||!Ye(Ee))hn?Wr=Ze(Object(P.a)({},dn),jr):!Ve&&jn.current?Wr=Ze(Object(P.a)(Object(P.a)({},dn),{},{className:kt}),jr):We?Wr=Ze(Object(P.a)(Object(P.a)({},dn),{},{style:{display:"none"}}),jr):Wr=null;else{var bn,Tr;ln===Ar?Tr="prepare":ur(ln)?Tr="active":ln===vn&&(Tr="start"),Wr=Ze(Object(P.a)(Object(P.a)({},dn),{},{className:_()(mr(pt,sn),(bn={},Object(L.a)(bn,mr(pt,"".concat(sn,"-").concat(Tr)),Tr),Object(L.a)(bn,pt,typeof pt=="string"),bn)),style:xn}),jr)}return p.createElement(Bn,{ref:Qr},Wr)});return Fe.displayName="CSSMotion",Fe}var li=si(Ut),wt="add",$t="keep",en="remove",Cn="removed";function Sn(Me){var Ge;return Me&&Object(H.a)(Me)==="object"&&"key"in Me?Ge=Me:Ge={key:Me},Object(P.a)(Object(P.a)({},Ge),{},{key:String(Ge.key)})}function On(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Me.map(Sn)}function ae(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],Fe=0,Ee=Ge.length,Pe=On(Me),Se=On(Ge);Pe.forEach(function(Ve){for(var We=!1,Ze=Fe;Ze1});return ze.forEach(function(Ve){Ye=Ye.filter(function(We){var Ze=We.key,pt=We.status;return Ze!==Ve||pt!==en}),Ye.forEach(function(We){We.key===Ve&&(We.status=$t)})}),Ye}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $(Me){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:li,Ye=function(Fe){Object(x.a)(Pe,Fe);var Ee=Object(y.a)(Pe);function Pe(){var Se;return Object(k.a)(this,Pe),Se=Ee.apply(this,arguments),Se.state={keyEntities:[]},Se.removeKey=function(je){Se.setState(function(ze){var Ve=ze.keyEntities;return{keyEntities:Ve.map(function(We){return We.key!==je?We:Object(P.a)(Object(P.a)({},We),{},{status:Cn})})}})},Se}return Object(O.a)(Pe,[{key:"render",value:function(){var je=this,ze=this.state.keyEntities,Ve=this.props,We=Ve.component,Ze=Ve.children,pt=Ve.onVisibleChanged,kt=Object(T.a)(Ve,["component","children","onVisibleChanged"]),jt=We||p.Fragment,Yt={};return z.forEach(function(Ir){Yt[Ir]=kt[Ir],delete kt[Ir]}),delete kt.keys,p.createElement(jt,kt,ze.map(function(Ir){var Qr=Ir.status,$r=Object(T.a)(Ir,["status"]),nn=Qr===wt||Qr===$t;return p.createElement(Ge,Object(f.a)({},Yt,{key:$r.key,visible:nn,eventProps:$r,onVisibleChanged:function(sn){pt==null||pt(sn,{key:$r.key}),sn||je.removeKey($r.key)}}),Ze)}))}}],[{key:"getDerivedStateFromProps",value:function(je,ze){var Ve=je.keys,We=ze.keyEntities,Ze=On(Ve),pt=ae(We,Ze);return{keyEntities:pt.filter(function(kt){var jt=We.find(function(Yt){var Ir=Yt.key;return kt.key===Ir});return!(jt&&jt.status===Cn&&kt.status===en)})}}}]),Pe}(p.Component);return Ye.defaultProps={component:"div"},Ye}var ie=$(Ut),de=li;function se(Me){var Ge=Me.prefixCls,Ye=Me.motion,Fe=Me.animation,Ee=Me.transitionName;return Ye||(Fe?{motionName:"".concat(Ge,"-").concat(Fe)}:Ee?{motionName:Ee}:null)}function Ke(Me){var Ge=Me.prefixCls,Ye=Me.visible,Fe=Me.zIndex,Ee=Me.mask,Pe=Me.maskMotion,Se=Me.maskAnimation,je=Me.maskTransitionName;if(!Ee)return null;var ze={};return(Pe||je||Se)&&(ze=Object(P.a)({motionAppear:!0},se({motion:Pe,prefixCls:Ge,transitionName:je,animation:Se}))),p.createElement(de,Object(f.a)({},ze,{visible:Ye,removeOnLeave:!0}),function(Ve){var We=Ve.className;return p.createElement("div",{style:{zIndex:Fe},className:_()("".concat(Ge,"-mask"),We)})})}var Rt=D("9mu1"),Vt=D("o0o1"),Er=D.n(Vt),Lt=D("HaE+"),zr=["measure","align",null,"motion"],Br=function(Me,Ge){var Ye=Object(p.useState)(null),Fe=Object(g.a)(Ye,2),Ee=Fe[0],Pe=Fe[1],Se=Object(p.useRef)(),je=Object(p.useRef)(!1);function ze(Ze){je.current||Pe(Ze)}function Ve(){at.a.cancel(Se.current)}function We(Ze){Ve(),Se.current=Object(at.a)(function(){ze(function(pt){switch(Ee){case"align":return"motion";case"motion":return"stable";default:}return pt}),Ze==null||Ze()})}return Object(p.useEffect)(function(){ze("measure")},[Me]),Object(p.useEffect)(function(){switch(Ee){case"measure":Ge();break;default:}Ee&&(Se.current=Object(at.a)(Object(Lt.a)(Er.a.mark(function Ze(){var pt,kt;return Er.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:pt=zr.indexOf(Ee),kt=zr[pt+1],kt&&pt!==-1&&ze(kt);case 3:case"end":return Yt.stop()}},Ze)}))))},[Ee]),Object(p.useEffect)(function(){return function(){je.current=!0,Ve()}},[]),[Ee,We]},En=function(Me){var Ge=p.useState({width:0,height:0}),Ye=Object(g.a)(Ge,2),Fe=Ye[0],Ee=Ye[1];function Pe(je){Ee({width:je.offsetWidth,height:je.offsetHeight})}var Se=p.useMemo(function(){var je={};if(Me){var ze=Fe.width,Ve=Fe.height;Me.indexOf("height")!==-1&&Ve?je.height=Ve:Me.indexOf("minHeight")!==-1&&Ve&&(je.minHeight=Ve),Me.indexOf("width")!==-1&&ze?je.width=ze:Me.indexOf("minWidth")!==-1&&ze&&(je.minWidth=ze)}return je},[Me,Fe]);return[Se,Pe]},ui=p.forwardRef(function(Me,Ge){var Ye=Me.visible,Fe=Me.prefixCls,Ee=Me.className,Pe=Me.style,Se=Me.children,je=Me.zIndex,ze=Me.stretch,Ve=Me.destroyPopupOnHide,We=Me.forceRender,Ze=Me.align,pt=Me.point,kt=Me.getRootDomNode,jt=Me.getClassNameFromAlign,Yt=Me.onAlign,Ir=Me.onMouseEnter,Qr=Me.onMouseLeave,$r=Me.onMouseDown,nn=Me.onTouchStart,Kr=Object(p.useRef)(),sn=Object(p.useRef)(),ln=Object(p.useState)(),xn=Object(g.a)(ln,2),hn=xn[0],jn=xn[1],pn=En(ze),jr=Object(g.a)(pn,2),Wr=jr[0],dn=jr[1];function bn(){ze&&dn(kt())}var Tr=Br(Ye,bn),_n=Object(g.a)(Tr,2),Yn=_n[0],Rn=_n[1],Wn=Object(p.useRef)();function Dn(){return pt||kt}function ti(){var Hn;(Hn=Kr.current)===null||Hn===void 0||Hn.forceAlign()}function ci(Hn,zn){var Qn=jt(zn);hn!==Qn&&jn(Qn),Yn==="align"&&(hn!==Qn?Promise.resolve().then(function(){ti()}):Rn(function(){var Vn;(Vn=Wn.current)===null||Vn===void 0||Vn.call(Wn)}),Yt==null||Yt(Hn,zn))}var Jn=Object(P.a)({},se(Me));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Hn){var zn=Jn[Hn];Jn[Hn]=function(Qn,Vn){return Rn(),zn==null?void 0:zn(Qn,Vn)}});function gi(){return new Promise(function(Hn){Wn.current=Hn})}p.useEffect(function(){!Jn.motionName&&Yn==="motion"&&Rn()},[Jn.motionName,Yn]),p.useImperativeHandle(Ge,function(){return{forceAlign:ti,getElement:function(){return sn.current}}});var Xi=Object(P.a)(Object(P.a)({},Wr),{},{zIndex:je,opacity:Yn==="motion"||Yn==="stable"||!Ye?void 0:0,pointerEvents:Yn==="stable"?void 0:"none"},Pe),Oi=!0;(Ze==null?void 0:Ze.points)&&(Yn==="align"||Yn==="stable")&&(Oi=!1);var di=Se;return p.Children.count(Se)>1&&(di=p.createElement("div",{className:"".concat(Fe,"-content")},Se)),p.createElement(de,Object(f.a)({visible:Ye,ref:sn,leavedClassName:"".concat(Fe,"-hidden")},Jn,{onAppearPrepare:gi,onEnterPrepare:gi,removeOnLeave:Ve,forceRender:We}),function(Hn,zn){var Qn=Hn.className,Vn=Hn.style,ii=_()(Fe,Ee,hn,Qn);return p.createElement(Rt.a,{target:Dn(),key:"popup",ref:Kr,monitorWindowResize:!0,disabled:Oi,align:Ze,onAlign:ci},p.createElement("div",{ref:zn,className:ii,onMouseEnter:Ir,onMouseLeave:Qr,onMouseDownCapture:$r,onTouchStartCapture:nn,style:Object(P.a)(Object(P.a)({},Vn),Xi)},di))})});ui.displayName="PopupInner";var Ei=ui,In=p.forwardRef(function(Me,Ge){var Ye=Me.prefixCls,Fe=Me.visible,Ee=Me.zIndex,Pe=Me.children,Se=Me.mobile;Se=Se===void 0?{}:Se;var je=Se.popupClassName,ze=Se.popupStyle,Ve=Se.popupMotion,We=Ve===void 0?{}:Ve,Ze=Se.popupRender,pt=p.useRef();p.useImperativeHandle(Ge,function(){return{forceAlign:function(){},getElement:function(){return pt.current}}});var kt=Object(P.a)({zIndex:Ee},ze),jt=Pe;return p.Children.count(Pe)>1&&(jt=p.createElement("div",{className:"".concat(Ye,"-content")},Pe)),Ze&&(jt=Ze(jt)),p.createElement(de,Object(f.a)({visible:Fe,ref:pt,removeOnLeave:!0},We),function(Yt,Ir){var Qr=Yt.className,$r=Yt.style,nn=_()(Ye,je,Qr);return p.createElement("div",{ref:Ir,className:nn,style:Object(P.a)(Object(P.a)({},$r),kt)},jt)})});In.displayName="MobilePopupInner";var Li=In,qi=["visible","mobile"],ni=p.forwardRef(function(Me,Ge){var Ye=Me.visible,Fe=Me.mobile,Ee=Object(T.a)(Me,qi),Pe=Object(p.useState)(Ye),Se=Object(g.a)(Pe,2),je=Se[0],ze=Se[1],Ve=Object(p.useState)(!1),We=Object(g.a)(Ve,2),Ze=We[0],pt=We[1],kt=Object(P.a)(Object(P.a)({},Ee),{},{visible:je});Object(p.useEffect)(function(){ze(Ye),Ye&&Fe&&pt(Ue())},[Ye,Fe]);var jt=Ze?p.createElement(Li,Object(f.a)({},kt,{mobile:Fe,ref:Ge})):p.createElement(Ei,Object(f.a)({},kt,{ref:Ge}));return p.createElement("div",null,p.createElement(Ke,kt),jt)});ni.displayName="Popup";var Ti=ni,xi=p.createContext(null),Fi=xi;function Ci(){}function Gi(){return""}function Mi(Me){return Me?Me.ownerDocument:window.document}var oa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function sa(Me){var Ge=function(Ye){Object(x.a)(Ee,Ye);var Fe=Object(y.a)(Ee);function Ee(Pe){var Se;Object(k.a)(this,Ee),Se=Fe.call(this,Pe),Se.popupRef=p.createRef(),Se.triggerRef=p.createRef(),Se.attachId=void 0,Se.clickOutsideHandler=void 0,Se.touchOutsideHandler=void 0,Se.contextMenuOutsideHandler1=void 0,Se.contextMenuOutsideHandler2=void 0,Se.mouseDownTimeout=void 0,Se.focusTime=void 0,Se.preClickTime=void 0,Se.preTouchTime=void 0,Se.delayTimer=void 0,Se.hasPopupMouseDown=void 0,Se.onMouseEnter=function(ze){var Ve=Se.props.mouseEnterDelay;Se.fireEvents("onMouseEnter",ze),Se.delaySetPopupVisible(!0,Ve,Ve?null:ze)},Se.onMouseMove=function(ze){Se.fireEvents("onMouseMove",ze),Se.setPoint(ze)},Se.onMouseLeave=function(ze){Se.fireEvents("onMouseLeave",ze),Se.delaySetPopupVisible(!1,Se.props.mouseLeaveDelay)},Se.onPopupMouseEnter=function(){Se.clearDelayTimer()},Se.onPopupMouseLeave=function(ze){var Ve;if(ze.relatedTarget&&!ze.relatedTarget.setTimeout&&Object(ct.a)((Ve=Se.popupRef.current)===null||Ve===void 0?void 0:Ve.getElement(),ze.relatedTarget))return;Se.delaySetPopupVisible(!1,Se.props.mouseLeaveDelay)},Se.onFocus=function(ze){Se.fireEvents("onFocus",ze),Se.clearDelayTimer(),Se.isFocusToShow()&&(Se.focusTime=Date.now(),Se.delaySetPopupVisible(!0,Se.props.focusDelay))},Se.onMouseDown=function(ze){Se.fireEvents("onMouseDown",ze),Se.preClickTime=Date.now()},Se.onTouchStart=function(ze){Se.fireEvents("onTouchStart",ze),Se.preTouchTime=Date.now()},Se.onBlur=function(ze){Se.fireEvents("onBlur",ze),Se.clearDelayTimer(),Se.isBlurToHide()&&Se.delaySetPopupVisible(!1,Se.props.blurDelay)},Se.onContextMenu=function(ze){ze.preventDefault(),Se.fireEvents("onContextMenu",ze),Se.setPopupVisible(!0,ze)},Se.onContextMenuClose=function(){Se.isContextMenuToShow()&&Se.close()},Se.onClick=function(ze){if(Se.fireEvents("onClick",ze),Se.focusTime){var Ve;if(Se.preClickTime&&Se.preTouchTime?Ve=Math.min(Se.preClickTime,Se.preTouchTime):Se.preClickTime?Ve=Se.preClickTime:Se.preTouchTime&&(Ve=Se.preTouchTime),Math.abs(Ve-Se.focusTime)<20)return;Se.focusTime=0}Se.preClickTime=0,Se.preTouchTime=0,Se.isClickToShow()&&(Se.isClickToHide()||Se.isBlurToHide())&&ze&&ze.preventDefault&&ze.preventDefault();var We=!Se.state.popupVisible;(Se.isClickToHide()&&!We||We&&Se.isClickToShow())&&Se.setPopupVisible(!Se.state.popupVisible,ze)},Se.onPopupMouseDown=function(){if(Se.hasPopupMouseDown=!0,clearTimeout(Se.mouseDownTimeout),Se.mouseDownTimeout=window.setTimeout(function(){Se.hasPopupMouseDown=!1},0),Se.context){var ze;(ze=Se.context).onPopupMouseDown.apply(ze,arguments)}},Se.onDocumentClick=function(ze){if(Se.props.mask&&!Se.props.maskClosable)return;var Ve=ze.target,We=Se.getRootDomNode(),Ze=Se.getPopupDomNode();(!Object(ct.a)(We,Ve)||Se.isContextMenuOnly())&&!Object(ct.a)(Ze,Ve)&&!Se.hasPopupMouseDown&&Se.close()},Se.getRootDomNode=function(){var ze=Se.props.getTriggerDOMNode;if(ze)return ze(Se.triggerRef.current);try{var Ve=Object(ht.a)(Se.triggerRef.current);if(Ve)return Ve}catch(We){}return nt.a.findDOMNode(Object(C.a)(Se))},Se.getPopupClassNameFromAlign=function(ze){var Ve=[],We=Se.props,Ze=We.popupPlacement,pt=We.builtinPlacements,kt=We.prefixCls,jt=We.alignPoint,Yt=We.getPopupClassNameFromAlign;return Ze&&pt&&Ve.push(lt(pt,kt,ze,jt)),Yt&&Ve.push(Yt(ze)),Ve.join(" ")},Se.getComponent=function(){var ze=Se.props,Ve=ze.prefixCls,We=ze.destroyPopupOnHide,Ze=ze.popupClassName,pt=ze.onPopupAlign,kt=ze.popupMotion,jt=ze.popupAnimation,Yt=ze.popupTransitionName,Ir=ze.popupStyle,Qr=ze.mask,$r=ze.maskAnimation,nn=ze.maskTransitionName,Kr=ze.maskMotion,sn=ze.zIndex,ln=ze.popup,xn=ze.stretch,hn=ze.alignPoint,jn=ze.mobile,pn=ze.forceRender,jr=Se.state,Wr=jr.popupVisible,dn=jr.point,bn=Se.getPopupAlign(),Tr={};return Se.isMouseEnterToShow()&&(Tr.onMouseEnter=Se.onPopupMouseEnter),Se.isMouseLeaveToHide()&&(Tr.onMouseLeave=Se.onPopupMouseLeave),Tr.onMouseDown=Se.onPopupMouseDown,Tr.onTouchStart=Se.onPopupMouseDown,p.createElement(Ti,Object(f.a)({prefixCls:Ve,destroyPopupOnHide:We,visible:Wr,point:hn&&dn,className:Ze,align:bn,onAlign:pt,animation:jt,getClassNameFromAlign:Se.getPopupClassNameFromAlign},Tr,{stretch:xn,getRootDomNode:Se.getRootDomNode,style:Ir,mask:Qr,zIndex:sn,transitionName:Yt,maskAnimation:$r,maskTransitionName:nn,maskMotion:Kr,ref:Se.popupRef,motion:kt,mobile:jn,forceRender:pn}),typeof ln=="function"?ln():ln)},Se.attachParent=function(ze){at.a.cancel(Se.attachId);var Ve=Se.props,We=Ve.getPopupContainer,Ze=Ve.getDocument,pt=Se.getRootDomNode(),kt;We?(pt||We.length===0)&&(kt=We(pt)):kt=Ze(Se.getRootDomNode()).body,kt?kt.appendChild(ze):Se.attachId=Object(at.a)(function(){Se.attachParent(ze)})},Se.getContainer=function(){var ze=Se.props.getDocument,Ve=ze(Se.getRootDomNode()).createElement("div");return Ve.style.position="absolute",Ve.style.top="0",Ve.style.left="0",Ve.style.width="100%",Se.attachParent(Ve),Ve},Se.setPoint=function(ze){var Ve=Se.props.alignPoint;if(!Ve||!ze)return;Se.setState({point:{pageX:ze.pageX,pageY:ze.pageY}})},Se.handlePortalUpdate=function(){Se.state.prevPopupVisible!==Se.state.popupVisible&&Se.props.afterPopupVisibleChange(Se.state.popupVisible)},Se.triggerContextValue={onPopupMouseDown:Se.onPopupMouseDown};var je;return"popupVisible"in Pe?je=!!Pe.popupVisible:je=!!Pe.defaultPopupVisible,Se.state={prevPopupVisible:je,popupVisible:je},oa.forEach(function(ze){Se["fire".concat(ze)]=function(Ve){Se.fireEvents(ze,Ve)}}),Se}return Object(O.a)(Ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Se=this.props,je=this.state;if(je.popupVisible){var ze;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ze=Se.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Re.a)(ze,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ze=ze||Se.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Re.a)(ze,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ze=ze||Se.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Re.a)(ze,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Re.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),at.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Se;return((Se=this.popupRef.current)===null||Se===void 0?void 0:Se.getElement())||null}},{key:"getPopupAlign",value:function(){var Se=this.props,je=Se.popupPlacement,ze=Se.popupAlign,Ve=Se.builtinPlacements;return je&&Ve?Qe(Ve,je,ze):ze}},{key:"setPopupVisible",value:function(Se,je){var ze=this.props.alignPoint,Ve=this.state.popupVisible;this.clearDelayTimer(),Ve!==Se&&("popupVisible"in this.props||this.setState({popupVisible:Se,prevPopupVisible:Ve}),this.props.onPopupVisibleChange(Se)),ze&&je&&Se&&this.setPoint(je)}},{key:"delaySetPopupVisible",value:function(Se,je,ze){var Ve=this,We=je*1e3;if(this.clearDelayTimer(),We){var Ze=ze?{pageX:ze.pageX,pageY:ze.pageY}:null;this.delayTimer=window.setTimeout(function(){Ve.setPopupVisible(Se,Ze),Ve.clearDelayTimer()},We)}else this.setPopupVisible(Se,ze)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Se){var je=this.props.children.props,ze=this.props;return je[Se]&&ze[Se]?this["fire".concat(Se)]:je[Se]||ze[Se]}},{key:"isClickToShow",value:function(){var Se=this.props,je=Se.action,ze=Se.showAction;return je.indexOf("click")!==-1||ze.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Se=this.props.action;return Se==="contextMenu"||Se.length===1&&Se[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Se=this.props,je=Se.action,ze=Se.showAction;return je.indexOf("contextMenu")!==-1||ze.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Se=this.props,je=Se.action,ze=Se.hideAction;return je.indexOf("click")!==-1||ze.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Se=this.props,je=Se.action,ze=Se.showAction;return je.indexOf("hover")!==-1||ze.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Se=this.props,je=Se.action,ze=Se.hideAction;return je.indexOf("hover")!==-1||ze.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Se=this.props,je=Se.action,ze=Se.showAction;return je.indexOf("focus")!==-1||ze.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Se=this.props,je=Se.action,ze=Se.hideAction;return je.indexOf("focus")!==-1||ze.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Se;(Se=this.popupRef.current)===null||Se===void 0||Se.forceAlign()}}},{key:"fireEvents",value:function(Se,je){var ze=this.props.children.props[Se];ze&&ze(je);var Ve=this.props[Se];Ve&&Ve(je)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Se=this.state.popupVisible,je=this.props,ze=je.children,Ve=je.forceRender,We=je.alignPoint,Ze=je.className,pt=je.autoDestroy,kt=p.Children.only(ze),jt={key:"trigger"};this.isContextMenuToShow()?jt.onContextMenu=this.onContextMenu:jt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(jt.onClick=this.onClick,jt.onMouseDown=this.onMouseDown,jt.onTouchStart=this.onTouchStart):(jt.onClick=this.createTwoChains("onClick"),jt.onMouseDown=this.createTwoChains("onMouseDown"),jt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(jt.onMouseEnter=this.onMouseEnter,We&&(jt.onMouseMove=this.onMouseMove)):jt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?jt.onMouseLeave=this.onMouseLeave:jt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(jt.onFocus=this.onFocus,jt.onBlur=this.onBlur):(jt.onFocus=this.createTwoChains("onFocus"),jt.onBlur=this.createTwoChains("onBlur"));var Yt=_()(kt&&kt.props&&kt.props.className,Ze);Yt&&(jt.className=Yt);var Ir=Object(P.a)({},jt);Object(He.c)(kt)&&(Ir.ref=Object(He.a)(this.triggerRef,kt.ref));var Qr=p.cloneElement(kt,Ir),$r;return(Se||this.popupRef.current||Ve)&&($r=p.createElement(Me,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Se&&pt&&($r=null),p.createElement(Fi.Provider,{value:this.triggerContextValue},Qr,$r)}}],[{key:"getDerivedStateFromProps",value:function(Se,je){var ze=Se.popupVisible,Ve={};return ze!==void 0&&je.popupVisible!==ze&&(Ve.popupVisible=ze,Ve.prevPopupVisible=je.popupVisible),Ve}}]),Ee}(p.Component);return Ge.contextType=Fi,Ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Gi,getDocument:Mi,onPopupVisibleChange:Ci,afterPopupVisibleChange:Ci,onPopupAlign:Ci,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ge}var Ii=sa(tt.a),qn={adjustX:1,adjustY:1},Vi={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},ta={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},Tt=Vi,it=0,mt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ct=function(Ge,Ye,Fe){var Ee=q(Ye),Pe=Ge.getState();Ge.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},Pe.defaultActiveFirst),{},Object(L.a)({},Ee,Fe))})},It=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(Fe){var Ee;Object(k.a)(this,Ye),Ee=Ge.call(this,Fe),Ee.onDestroy=function(We){Ee.props.onDestroy(We)},Ee.onKeyDown=function(We){var Ze=We.keyCode,pt=Ee.menuInstance,kt=Ee.props.store,jt=Ee.getVisible();if(Ze===m.a.ENTER)return Ee.onTitleClick(We),Ct(kt,Ee.props.eventKey,!0),!0;if(Ze===m.a.RIGHT)return jt?pt.onKeyDown(We):(Ee.triggerOpenChange(!0),Ct(kt,Ee.props.eventKey,!0)),!0;if(Ze===m.a.LEFT){var Yt;if(jt)Yt=pt.onKeyDown(We);else return;return Yt||(Ee.triggerOpenChange(!1),Yt=!0),Yt}return jt&&(Ze===m.a.UP||Ze===m.a.DOWN)?pt.onKeyDown(We):void 0},Ee.onOpenChange=function(We){Ee.props.onOpenChange(We)},Ee.onPopupVisibleChange=function(We){Ee.triggerOpenChange(We,We?"mouseenter":"mouseleave")},Ee.onMouseEnter=function(We){var Ze=Ee.props,pt=Ze.eventKey,kt=Ze.onMouseEnter,jt=Ze.store;Ct(jt,Ee.props.eventKey,!1),kt({key:pt,domEvent:We})},Ee.onMouseLeave=function(We){var Ze=Ee.props,pt=Ze.parentMenu,kt=Ze.eventKey,jt=Ze.onMouseLeave;pt.subMenuInstance=Object(C.a)(Ee),jt({key:kt,domEvent:We})},Ee.onTitleMouseEnter=function(We){var Ze=Ee.props,pt=Ze.eventKey,kt=Ze.onItemHover,jt=Ze.onTitleMouseEnter;kt({key:pt,hover:!0}),jt({key:pt,domEvent:We})},Ee.onTitleMouseLeave=function(We){var Ze=Ee.props,pt=Ze.parentMenu,kt=Ze.eventKey,jt=Ze.onItemHover,Yt=Ze.onTitleMouseLeave;pt.subMenuInstance=Object(C.a)(Ee),jt({key:kt,hover:!1}),Yt({key:kt,domEvent:We})},Ee.onTitleClick=function(We){var Ze=Object(C.a)(Ee),pt=Ze.props;if(pt.onTitleClick({key:pt.eventKey,domEvent:We}),pt.triggerSubMenuAction==="hover")return;Ee.triggerOpenChange(!Ee.getVisible(),"click"),Ct(pt.store,Ee.props.eventKey,!1)},Ee.onSubMenuClick=function(We){typeof Ee.props.onClick=="function"&&Ee.props.onClick(Ee.addKeyPath(We))},Ee.onSelect=function(We){Ee.props.onSelect(We)},Ee.onDeselect=function(We){Ee.props.onDeselect(We)},Ee.getPrefixCls=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu")},Ee.getActiveClassName=function(){return"".concat(Ee.getPrefixCls(),"-active")},Ee.getDisabledClassName=function(){return"".concat(Ee.getPrefixCls(),"-disabled")},Ee.getSelectedClassName=function(){return"".concat(Ee.getPrefixCls(),"-selected")},Ee.getOpenClassName=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu-open")},Ee.getVisible=function(){return Ee.state.isOpen},Ee.getMode=function(){return Ee.state.mode},Ee.saveMenuInstance=function(We){Ee.menuInstance=We},Ee.addKeyPath=function(We){return Object(P.a)(Object(P.a)({},We),{},{keyPath:(We.keyPath||[]).concat(Ee.props.eventKey)})},Ee.triggerOpenChange=function(We,Ze){var pt=Ee.props.eventKey,kt=function(){Ee.onOpenChange({key:pt,item:Object(C.a)(Ee),trigger:Ze,open:We})};Ze==="mouseenter"?Ee.mouseenterTimeout=setTimeout(function(){kt()},0):kt()},Ee.isChildrenSelected=function(){var We={find:!1};return V(Ee.props.children,Ee.props.selectedKeys,We),We.find},Ee.isInlineMode=function(){return Ee.getMode()==="inline"},Ee.adjustWidth=function(){if(!Ee.subMenuTitle||!Ee.menuInstance)return;var We=rt.findDOMNode(Ee.menuInstance);if(We.offsetWidth>=Ee.subMenuTitle.offsetWidth)return;We.style.minWidth="".concat(Ee.subMenuTitle.offsetWidth,"px")},Ee.saveSubMenuTitle=function(We){Ee.subMenuTitle=We},Ee.getBaseProps=function(){var We=Object(C.a)(Ee),Ze=We.props,pt=Ee.getMode();return{mode:pt==="horizontal"?"vertical":pt,visible:Ee.getVisible(),level:Ze.level+1,inlineIndent:Ze.inlineIndent,focusable:!1,onClick:Ee.onSubMenuClick,onSelect:Ee.onSelect,onDeselect:Ee.onDeselect,onDestroy:Ee.onDestroy,selectedKeys:Ze.selectedKeys,eventKey:"".concat(Ze.eventKey,"-menu-"),openKeys:Ze.openKeys,motion:Ze.motion,onOpenChange:Ee.onOpenChange,subMenuOpenDelay:Ze.subMenuOpenDelay,parentMenu:Object(C.a)(Ee),subMenuCloseDelay:Ze.subMenuCloseDelay,forceSubMenuRender:Ze.forceSubMenuRender,triggerSubMenuAction:Ze.triggerSubMenuAction,builtinPlacements:Ze.builtinPlacements,defaultActiveFirst:Ze.store.getState().defaultActiveFirst[q(Ze.eventKey)],multiple:Ze.multiple,prefixCls:Ze.rootPrefixCls,id:Ee.internalMenuId,manualRef:Ee.saveMenuInstance,itemIcon:Ze.itemIcon,expandIcon:Ze.expandIcon,direction:Ze.direction}},Ee.getMotion=function(We,Ze){var pt=Object(C.a)(Ee),kt=pt.haveRendered,jt=Ee.props,Yt=jt.motion,Ir=jt.rootPrefixCls,Qr=Object(P.a)(Object(P.a)({},Yt),{},{leavedClassName:"".concat(Ir,"-hidden"),removeOnLeave:!1,motionAppear:kt||!Ze||We!=="inline"});return Qr};var Pe=Fe.store,Se=Fe.eventKey,je=Pe.getState(),ze=je.defaultActiveFirst;Ee.isRootMenu=!1;var Ve=!1;return ze&&(Ve=ze[Se]),Ct(Pe,Se,Ve),Ee.state={mode:Fe.mode,isOpen:Fe.isOpen},Ee}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ee=this,Pe=this.props,Se=Pe.mode,je=Pe.parentMenu,ze=Pe.manualRef,Ve=Pe.isOpen,We=function(){Ee.setState({mode:Se,isOpen:Ve})},Ze=Ve!==this.state.isOpen,pt=Se!==this.state.mode;if((pt||Ze)&&(at.a.cancel(this.updateStateRaf),pt?this.updateStateRaf=Object(at.a)(We):We()),ze&&ze(this),Se!=="horizontal"||!(je==null?void 0:je.isRootMenu)||!Ve)return;this.minWidthTimeout=setTimeout(function(){return Ee.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ee=this.props,Pe=Ee.onDestroy,Se=Ee.eventKey;Pe&&Pe(Se),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),at.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Ee,Pe){var Se=this.getBaseProps();return p.createElement(Lr,Object(f.a)({},Se,{id:this.internalMenuId,className:Ee,style:Pe}),this.props.children)}},{key:"renderChildren",value:function(){var Ee=this,Pe=this.getBaseProps(),Se=Pe.mode,je=Pe.visible,ze=Pe.forceSubMenuRender,Ve=Pe.direction,We=this.getMotion(Se,je);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||je||ze,!this.haveOpened)return p.createElement("div",null);var Ze=_()("".concat(Pe.prefixCls,"-sub"),Object(L.a)({},"".concat(Pe.prefixCls,"-rtl"),Ve==="rtl"));return this.isInlineMode()?p.createElement(de,Object(f.a)({visible:Pe.visible,forceRender:ze},We),function(pt){var kt=pt.className,jt=pt.style,Yt=_()(Ze,kt);return Ee.renderPopupMenu(Yt,jt)}):this.renderPopupMenu(Ze)}},{key:"render",value:function(){var Ee,Pe,Se,je=Object(P.a)({},this.props),ze=this.getVisible(),Ve=this.getPrefixCls(),We=this.isInlineMode(),Ze=this.getMode(),pt=_()(Ve,"".concat(Ve,"-").concat(Ze),(Ee={},Object(L.a)(Ee,je.className,!!je.className),Object(L.a)(Ee,this.getOpenClassName(),ze),Object(L.a)(Ee,this.getActiveClassName(),je.active||ze&&!We),Object(L.a)(Ee,this.getDisabledClassName(),je.disabled),Object(L.a)(Ee,this.getSelectedClassName(),this.isChildrenSelected()),Ee));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(it+=1,this.internalMenuId="$__$".concat(it,"$Menu")));var kt={},jt={},Yt={};je.disabled||(kt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},jt={onClick:this.onTitleClick},Yt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ir={},Qr=je.direction,$r=Qr==="rtl";We&&($r?Ir.paddingRight=je.inlineIndent*je.level:Ir.paddingLeft=je.inlineIndent*je.level);var nn={};this.getVisible()&&(nn={"aria-owns":this.internalMenuId});var Kr=null;Ze!=="horizontal"&&(Kr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Kr=p.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var sn=p.createElement("div",Object(f.a)({ref:this.saveSubMenuTitle,style:Ir,className:"".concat(Ve,"-title"),role:"button"},Yt,jt,{"aria-expanded":ze},nn,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,Kr||p.createElement("i",{className:"".concat(Ve,"-arrow")})),ln=this.renderChildren(),xn=((Pe=je.parentMenu)===null||Pe===void 0?void 0:Pe.isRootMenu)?je.parentMenu.props.getPopupContainer:function(Dn){return Dn.parentNode},hn=mt[Ze],jn=je.popupOffset?{offset:je.popupOffset}:{},pn=_()((Se={},Object(L.a)(Se,je.popupClassName,je.popupClassName&&!We),Object(L.a)(Se,"".concat(Ve,"-rtl"),$r),Se)),jr=je.disabled,Wr=je.triggerSubMenuAction,dn=je.subMenuOpenDelay,bn=je.forceSubMenuRender,Tr=je.subMenuCloseDelay,_n=je.builtinPlacements;Z.forEach(function(Dn){return delete je[Dn]}),delete je.onClick;var Yn=$r?Object(P.a)(Object(P.a)({},ta),_n):Object(P.a)(Object(P.a)({},Vi),_n);delete je.direction;var Rn=this.getBaseProps(),Wn=We?null:this.getMotion(Rn.mode,Rn.visible);return p.createElement("li",Object(f.a)({},je,kt,{className:pt,role:"menuitem"}),p.createElement(Ii,{prefixCls:Ve,popupClassName:_()("".concat(Ve,"-popup"),pn),getPopupContainer:xn,builtinPlacements:Yn,popupPlacement:hn,popupVisible:We?!1:ze,popupAlign:jn,popup:We?null:ln,action:jr||We?[]:[Wr],mouseEnterDelay:dn,mouseLeaveDelay:Tr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:bn,popupMotion:Wn},sn),We?ln:null)}}]),Ye}(p.Component);It.defaultProps={onMouseEnter:te,onMouseLeave:te,onTitleMouseEnter:te,onTitleMouseLeave:te,onTitleClick:te,manualRef:te,mode:"vertical",title:""};var Pt=Object(S.b)(function(Me,Ge){var Ye=Me.openKeys,Fe=Me.activeKey,Ee=Me.selectedKeys,Pe=Ge.eventKey,Se=Ge.subMenuKey;return{isOpen:Ye.indexOf(Pe)>-1,active:Fe[Se]===Pe,selectedKeys:Ee}})(It);Pt.isSubMenu=!0;var Ht=Pt,Wt="menuitem-overflowed",dt=.5,At=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){var Fe;return Object(k.a)(this,Ye),Fe=Ge.apply(this,arguments),Fe.resizeObserver=null,Fe.mutationObserver=null,Fe.originalTotalWidth=0,Fe.overflowedItems=[],Fe.menuItemSizes=[],Fe.cancelFrameId=null,Fe.state={lastVisibleIndex:void 0},Fe.childRef=p.createRef(),Fe.getMenuItemNodes=function(){var Ee=Fe.props.prefixCls,Pe=Fe.childRef.current;return Pe?[].slice.call(Pe.children).filter(function(Se){return Se.className.split(" ").indexOf("".concat(Ee,"-overflowed-submenu"))<0}):[]},Fe.getOverflowedSubMenuItem=function(Ee,Pe,Se){var je=Fe.props,ze=je.overflowedIndicator,Ve=je.level,We=je.mode,Ze=je.prefixCls,pt=je.theme;if(Ve!==1||We!=="horizontal")return null;var kt=Fe.props.children[0],jt=kt.props,Yt=jt.children,Ir=jt.title,Qr=jt.style,$r=Object(T.a)(jt,["children","title","style"]),nn=Object(P.a)({},Qr),Kr="".concat(Ee,"-overflowed-indicator"),sn="".concat(Ee,"-overflowed-indicator");Pe.length===0&&Se!==!0?nn=Object(P.a)(Object(P.a)({},nn),{},{display:"none"}):Se&&(nn=Object(P.a)(Object(P.a)({},nn),{},{visibility:"hidden",position:"absolute"}),Kr="".concat(Kr,"-placeholder"),sn="".concat(sn,"-placeholder"));var ln=pt?"".concat(Ze,"-").concat(pt):"",xn={};return Z.forEach(function(hn){$r[hn]!==void 0&&(xn[hn]=$r[hn])}),p.createElement(Ht,Object(f.a)({title:ze,className:"".concat(Ze,"-overflowed-submenu"),popupClassName:ln},xn,{key:Kr,eventKey:sn,disabled:!1,style:nn}),Pe)},Fe.setChildrenWidthAndResize=function(){if(Fe.props.mode!=="horizontal")return;var Ee=Fe.childRef.current;if(!Ee)return;var Pe=Ee.children;if(!Pe||Pe.length===0)return;var Se=Ee.children[Pe.length-1];ge(Se,"display","inline-block");var je=Fe.getMenuItemNodes(),ze=je.filter(function(Ve){return Ve.className.split(" ").indexOf(Wt)>=0});ze.forEach(function(Ve){ge(Ve,"display","inline-block")}),Fe.menuItemSizes=je.map(function(Ve){return be(Ve,!0)}),ze.forEach(function(Ve){ge(Ve,"display","none")}),Fe.overflowedIndicatorWidth=be(Ee.children[Ee.children.length-1],!0),Fe.originalTotalWidth=Fe.menuItemSizes.reduce(function(Ve,We){return Ve+We},0),Fe.handleResize(),ge(Se,"display","none")},Fe.handleResize=function(){if(Fe.props.mode!=="horizontal")return;var Ee=Fe.childRef.current;if(!Ee)return;var Pe=be(Ee);Fe.overflowedItems=[];var Se=0,je;Fe.originalTotalWidth>Pe+dt&&(je=-1,Fe.menuItemSizes.forEach(function(ze){Se+=ze,Se+Fe.overflowedIndicatorWidth<=Pe&&(je+=1)})),Fe.setState({lastVisibleIndex:je})},Fe}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){var Ee=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Pe=this.childRef.current;if(!Pe)return;this.resizeObserver=new Je.default(function(Se){Se.forEach(function(){var je=Ee.cancelFrameId;cancelAnimationFrame(je),Ee.cancelFrameId=requestAnimationFrame(Ee.setChildrenWidthAndResize)})}),[].slice.call(Pe.children).concat(Pe).forEach(function(Se){Ee.resizeObserver.observe(Se)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ee.resizeObserver.disconnect(),[].slice.call(Pe.children).concat(Pe).forEach(function(Se){Ee.resizeObserver.observe(Se)}),Ee.setChildrenWidthAndResize()}),this.mutationObserver.observe(Pe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ee){var Pe=this,Se=this.state.lastVisibleIndex;return(Ee||[]).reduce(function(je,ze,Ve){var We=ze;if(Pe.props.mode==="horizontal"){var Ze=Pe.getOverflowedSubMenuItem(ze.props.eventKey,[]);Se!==void 0&&Pe.props.className.indexOf("".concat(Pe.props.prefixCls,"-root"))!==-1&&(Ve>Se&&(We=p.cloneElement(ze,{style:{display:"none"},eventKey:"".concat(ze.props.eventKey,"-hidden"),className:"".concat(Wt)})),Ve===Se+1&&(Pe.overflowedItems=Ee.slice(Se+1).map(function(kt){return p.cloneElement(kt,{key:kt.props.eventKey,mode:"vertical-left"})}),Ze=Pe.getOverflowedSubMenuItem(ze.props.eventKey,Pe.overflowedItems)));var pt=[].concat(Object(l.a)(je),[Ze,We]);return Ve===Ee.length-1&&pt.push(Pe.getOverflowedSubMenuItem(ze.props.eventKey,[],!0)),pt}return[].concat(Object(l.a)(je),[We])},[])}},{key:"render",value:function(){var Ee=this.props,Pe=Ee.visible,Se=Ee.prefixCls,je=Ee.overflowedIndicator,ze=Ee.mode,Ve=Ee.level,We=Ee.tag,Ze=Ee.children,pt=Ee.theme,kt=Object(T.a)(Ee,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),jt=We;return p.createElement(jt,Object(f.a)({ref:this.childRef},kt),this.renderChildren(Ze))}}]),Ye}(p.Component);At.defaultProps={tag:"div",className:""};var Dt=At;function yr(Me){return Me.length?Me.every(function(Ge){return!!Ge.props.disabled}):!0}function tr(Me,Ge,Ye){var Fe=Me.getState();Me.setState({activeKey:Object(P.a)(Object(P.a)({},Fe.activeKey),{},Object(L.a)({},Ge,Ye))})}function qt(Me){return Me.eventKey||"0-menu-"}function Gt(Me,Ge){var Ye=Ge,Fe=Me.children,Ee=Me.eventKey;if(Ye){var Pe;if(Q(Fe,function(Se,je){Se&&Se.props&&!Se.props.disabled&&Ye===ce(Se,Ee,je)&&(Pe=!0)}),Pe)return Ye}return Ye=null,Me.defaultActiveFirst&&Q(Fe,function(Se,je){!Ye&&Se&&!Se.props.disabled&&(Ye=ce(Se,Ee,je))}),Ye}function nr(Me){if(!Me)return;var Ge=this.instanceArray.indexOf(Me);Ge!==-1?this.instanceArray[Ge]=Me:this.instanceArray.push(Me)}var cr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(Fe){var Ee;return Object(k.a)(this,Ye),Ee=Ge.call(this,Fe),Ee.onKeyDown=function(Pe,Se){var je=Pe.keyCode,ze;if(Ee.getFlatInstanceArray().forEach(function(We){We&&We.props.active&&We.onKeyDown&&(ze=We.onKeyDown(Pe))}),ze)return 1;var Ve=null;return(je===m.a.UP||je===m.a.DOWN)&&(Ve=Ee.step(je===m.a.UP?-1:1)),Ve?(Pe.preventDefault(),tr(Ee.props.store,qt(Ee.props),Ve.props.eventKey),typeof Se=="function"&&Se(Ve),1):void 0},Ee.onItemHover=function(Pe){var Se=Pe.key,je=Pe.hover;tr(Ee.props.store,qt(Ee.props),je?Se:null)},Ee.onDeselect=function(Pe){Ee.props.onDeselect(Pe)},Ee.onSelect=function(Pe){Ee.props.onSelect(Pe)},Ee.onClick=function(Pe){Ee.props.onClick(Pe)},Ee.onOpenChange=function(Pe){Ee.props.onOpenChange(Pe)},Ee.onDestroy=function(Pe){Ee.props.onDestroy(Pe)},Ee.getFlatInstanceArray=function(){return Ee.instanceArray},Ee.step=function(Pe){var Se=Ee.getFlatInstanceArray(),je=Ee.props.store.getState().activeKey[qt(Ee.props)],ze=Se.length;if(!ze)return null;Pe<0&&(Se=Se.concat().reverse());var Ve=-1;if(Se.every(function(kt,jt){return kt&&kt.props.eventKey===je?(Ve=jt,!1):!0}),!Ee.props.defaultActiveFirst&&Ve!==-1&&yr(Se.slice(Ve,ze-1)))return;var We=(Ve+1)%ze,Ze=We;do{var pt=Se[Ze];if(!pt||pt.props.disabled)Ze=(Ze+1)%ze;else return pt}while(Ze!==We);return null},Ee.renderCommonMenuItem=function(Pe,Se,je){var ze=Ee.props.store.getState(),Ve=Object(C.a)(Ee),We=Ve.props,Ze=ce(Pe,We.eventKey,Se),pt=Pe.props;if(!pt||typeof Pe.type=="string")return Pe;var kt=Ze===ze.activeKey,jt=Object(P.a)(Object(P.a)({mode:pt.mode||We.mode,level:We.level,inlineIndent:We.inlineIndent,renderMenuItem:Ee.renderMenuItem,rootPrefixCls:We.prefixCls,index:Se,parentMenu:We.parentMenu,manualRef:pt.disabled?void 0:Object(I.a)(Pe.ref,nr.bind(Object(C.a)(Ee))),eventKey:Ze,active:!pt.disabled&&kt,multiple:We.multiple,onClick:function(Ir){(pt.onClick||te)(Ir),Ee.onClick(Ir)},onItemHover:Ee.onItemHover,motion:We.motion,subMenuOpenDelay:We.subMenuOpenDelay,subMenuCloseDelay:We.subMenuCloseDelay,forceSubMenuRender:We.forceSubMenuRender,onOpenChange:Ee.onOpenChange,onDeselect:Ee.onDeselect,onSelect:Ee.onSelect,builtinPlacements:We.builtinPlacements,itemIcon:pt.itemIcon||Ee.props.itemIcon,expandIcon:pt.expandIcon||Ee.props.expandIcon},je),{},{direction:We.direction});return(We.mode==="inline"||Te())&&(jt.triggerSubMenuAction="click"),p.cloneElement(Pe,Object(P.a)(Object(P.a)({},jt),{},{key:Ze||Se}))},Ee.renderMenuItem=function(Pe,Se,je){if(!Pe)return null;var ze=Ee.props.store.getState(),Ve={openKeys:ze.openKeys,selectedKeys:ze.selectedKeys,triggerSubMenuAction:Ee.props.triggerSubMenuAction,subMenuKey:je};return Ee.renderCommonMenuItem(Pe,Se,Ve)},Fe.store.setState({activeKey:Object(P.a)(Object(P.a)({},Fe.store.getState().activeKey),{},Object(L.a)({},Fe.eventKey,Gt(Fe,Fe.activeKey)))}),Ee.instanceArray=[],Ee}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ee){return this.props.visible||Ee.visible||this.props.className!==Ee.className||!G()(this.props.style,Ee.style)}},{key:"componentDidUpdate",value:function(Ee){var Pe=this.props,Se="activeKey"in Pe?Pe.activeKey:Pe.store.getState().activeKey[qt(Pe)],je=Gt(Pe,Se);if(je!==Se)tr(Pe.store,qt(Pe),je);else if("activeKey"in Ee){var ze=Gt(Ee,Ee.activeKey);je!==ze&&tr(Pe.store,qt(Pe),je)}}},{key:"render",value:function(){var Ee=this,Pe=Object(f.a)({},this.props);this.instanceArray=[];var Se=_()(Pe.prefixCls,Pe.className,"".concat(Pe.prefixCls,"-").concat(Pe.mode)),je={className:Se,role:Pe.role||"menu"};Pe.id&&(je.id=Pe.id),Pe.focusable&&(je.tabIndex=0,je.onKeyDown=this.onKeyDown);var ze=Pe.prefixCls,Ve=Pe.eventKey,We=Pe.visible,Ze=Pe.level,pt=Pe.mode,kt=Pe.overflowedIndicator,jt=Pe.theme;return Z.forEach(function(Yt){return delete Pe[Yt]}),delete Pe.onClick,p.createElement(Dt,Object(f.a)({},Pe,{prefixCls:ze,mode:pt,tag:"ul",level:Ze,theme:jt,visible:We,overflowedIndicator:kt},je),Object(b.a)(Pe.children).map(function(Yt,Ir){return Ee.renderMenuItem(Yt,Ir,Ve||"0-menu-")}))}}]),Ye}(p.Component);cr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:te};var st=Object(S.b)()(cr),Lr=st,Fr=D("Kwbf");function Cr(Me,Ge,Ye){var Fe=Me.prefixCls,Ee=Me.motion,Pe=Me.defaultMotions,Se=Pe===void 0?{}:Pe,je=Me.openAnimation,ze=Me.openTransitionName,Ve=Ge.switchingModeFromInline;if(Ee)return Ee;if(Object(H.a)(je)==="object"&&je)Object(Fr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof je=="string")return{motionName:"".concat(Fe,"-open-").concat(je)};if(ze)return{motionName:ze};var We=Se[Ye];return We||(Ve?null:Se.other)}var rr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(Fe){var Ee;Object(k.a)(this,Ye),Ee=Ge.call(this,Fe),Ee.onSelect=function(je){var ze=Object(C.a)(Ee),Ve=ze.props;if(Ve.selectable){var We=Ee.store.getState(),Ze=We.selectedKeys,pt=je.key;Ve.multiple?Ze=Ze.concat([pt]):Ze=[pt],"selectedKeys"in Ve||Ee.store.setState({selectedKeys:Ze}),Ve.onSelect(Object(P.a)(Object(P.a)({},je),{},{selectedKeys:Ze}))}},Ee.onClick=function(je){var ze=Ee.getRealMenuMode(),Ve=Object(C.a)(Ee),We=Ve.store,Ze=Ve.props.onOpenChange;ze!=="inline"&&!("openKeys"in Ee.props)&&(We.setState({openKeys:[]}),Ze([])),Ee.props.onClick(je)},Ee.onKeyDown=function(je,ze){Ee.innerMenu.getWrappedInstance().onKeyDown(je,ze)},Ee.onOpenChange=function(je){var ze=Object(C.a)(Ee),Ve=ze.props,We=Ee.store.getState().openKeys.concat(),Ze=!1,pt=function(jt){var Yt=!1;if(jt.open)Yt=We.indexOf(jt.key)===-1,Yt&&We.push(jt.key);else{var Ir=We.indexOf(jt.key);Yt=Ir!==-1,Yt&&We.splice(Ir,1)}Ze=Ze||Yt};Array.isArray(je)?je.forEach(pt):pt(je),Ze&&("openKeys"in Ee.props||Ee.store.setState({openKeys:We}),Ve.onOpenChange(We))},Ee.onDeselect=function(je){var ze=Object(C.a)(Ee),Ve=ze.props;if(Ve.selectable){var We=Ee.store.getState().selectedKeys.concat(),Ze=je.key,pt=We.indexOf(Ze);pt!==-1&&We.splice(pt,1),"selectedKeys"in Ve||Ee.store.setState({selectedKeys:We}),Ve.onDeselect(Object(P.a)(Object(P.a)({},je),{},{selectedKeys:We}))}},Ee.onMouseEnter=function(je){Ee.restoreModeVerticalFromInline();var ze=Ee.props.onMouseEnter;ze&&ze(je)},Ee.onTransitionEnd=function(je){var ze=je.propertyName==="width"&&je.target===je.currentTarget,Ve=je.target.className,We=Object.prototype.toString.call(Ve)==="[object SVGAnimatedString]"?Ve.animVal:Ve,Ze=je.propertyName==="font-size"&&We.indexOf("anticon")>=0;(ze||Ze)&&Ee.restoreModeVerticalFromInline()},Ee.setInnerMenu=function(je){Ee.innerMenu=je},Ee.isRootMenu=!0;var Pe=Fe.defaultSelectedKeys,Se=Fe.defaultOpenKeys;return"selectedKeys"in Fe&&(Pe=Fe.selectedKeys||[]),"openKeys"in Fe&&(Se=Fe.openKeys||[]),Ee.store=Object(S.c)({selectedKeys:Pe,openKeys:Se,activeKey:{"0-menu-":Gt(Fe,Fe.activeKey)}}),Ee.state={switchingModeFromInline:!1,prevProps:Fe,inlineOpenKeys:[],store:Ee.store},Ee}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ee){var Pe=this.props,Se=Pe.siderCollapsed,je=Pe.inlineCollapsed,ze=Pe.onOpenChange;(!Ee.inlineCollapsed&&je||!Ee.siderCollapsed&&Se)&&ze([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Ee=this.props.collapsedWidth,Pe=this.store,Se=this.prevOpenKeys,je=this.getInlineCollapsed()&&(Ee===0||Ee==="0"||Ee==="0px");je?(this.prevOpenKeys=Pe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Se&&(this.store.setState({openKeys:Se}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ee=this.props.mode,Pe=this.state.switchingModeFromInline,Se=this.getInlineCollapsed();return Pe&&Se?"inline":Se?"vertical":Ee}},{key:"getInlineCollapsed",value:function(){var Ee=this.props,Pe=Ee.inlineCollapsed,Se=Ee.siderCollapsed;return Se!==void 0?Se:Pe}},{key:"restoreModeVerticalFromInline",value:function(){var Ee=this.state.switchingModeFromInline;Ee&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ee=Object(P.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Pe=this.getRealMenuMode();return Ee.className+=" ".concat(Ee.prefixCls,"-root"),Ee.direction==="rtl"&&(Ee.className+=" ".concat(Ee.prefixCls,"-rtl")),Ee=Object(P.a)(Object(P.a)({},Ee),{},{mode:Pe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Cr(this.props,this.state,Pe)}),delete Ee.openAnimation,delete Ee.openTransitionName,p.createElement(S.a,{store:this.store},p.createElement(Lr,Object(f.a)({},Ee,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Ee,Pe){var Se=Pe.prevProps,je=Pe.store,ze=je.getState(),Ve={},We={prevProps:Ee};return Se.mode==="inline"&&Ee.mode!=="inline"&&(We.switchingModeFromInline=!0),"openKeys"in Ee?Ve.openKeys=Ee.openKeys||[]:((Ee.inlineCollapsed&&!Se.inlineCollapsed||Ee.siderCollapsed&&!Se.siderCollapsed)&&(We.switchingModeFromInline=!0,We.inlineOpenKeys=ze.openKeys,Ve.openKeys=[]),(!Ee.inlineCollapsed&&Se.inlineCollapsed||!Ee.siderCollapsed&&Se.siderCollapsed)&&(Ve.openKeys=Pe.inlineOpenKeys,We.inlineOpenKeys=[])),Object.keys(Ve).length&&je.setState(Ve),We}}]),Ye}(p.Component);rr.defaultProps={selectable:!0,onClick:te,onSelect:te,onOpenChange:te,onDeselect:te,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:p.createElement("span",null,"\xB7\xB7\xB7")};var Et=rr,St=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){var Fe;return Object(k.a)(this,Ye),Fe=Ge.apply(this,arguments),Fe.onKeyDown=function(Ee){var Pe=Ee.keyCode;return Pe===m.a.ENTER?(Fe.onClick(Ee),!0):void 0},Fe.onMouseLeave=function(Ee){var Pe=Fe.props,Se=Pe.eventKey,je=Pe.onItemHover,ze=Pe.onMouseLeave;je({key:Se,hover:!1}),ze({key:Se,domEvent:Ee})},Fe.onMouseEnter=function(Ee){var Pe=Fe.props,Se=Pe.eventKey,je=Pe.onItemHover,ze=Pe.onMouseEnter;je({key:Se,hover:!0}),ze({key:Se,domEvent:Ee})},Fe.onClick=function(Ee){var Pe=Fe.props,Se=Pe.eventKey,je=Pe.multiple,ze=Pe.onClick,Ve=Pe.onSelect,We=Pe.onDeselect,Ze=Pe.isSelected,pt={key:Se,keyPath:[Se],item:Object(C.a)(Fe),domEvent:Ee};ze(pt),je?Ze?We(pt):Ve(pt):Ze||Ve(pt)},Fe.saveNode=function(Ee){Fe.node=Ee},Fe}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ee=this.props;Ee.onDestroy&&Ee.onDestroy(Ee.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ee,Pe=Object(P.a)({},this.props),Se=_()(this.getPrefixCls(),Pe.className,(Ee={},Object(L.a)(Ee,this.getActiveClassName(),!Pe.disabled&&Pe.active),Object(L.a)(Ee,this.getSelectedClassName(),Pe.isSelected),Object(L.a)(Ee,this.getDisabledClassName(),Pe.disabled),Ee)),je=Object(P.a)(Object(P.a)({},Pe.attribute),{},{title:typeof Pe.title=="string"?Pe.title:void 0,className:Se,role:Pe.role||"menuitem","aria-disabled":Pe.disabled});Pe.role==="option"?je=Object(P.a)(Object(P.a)({},je),{},{role:"option","aria-selected":Pe.isSelected}):(Pe.role===null||Pe.role==="none")&&(je.role="none");var ze={onClick:Pe.disabled?null:this.onClick,onMouseLeave:Pe.disabled?null:this.onMouseLeave,onMouseEnter:Pe.disabled?null:this.onMouseEnter},Ve=Object(P.a)({},Pe.style);Pe.mode==="inline"&&(Pe.direction==="rtl"?Ve.paddingRight=Pe.inlineIndent*Pe.level:Ve.paddingLeft=Pe.inlineIndent*Pe.level),Z.forEach(function(Ze){return delete Pe[Ze]}),delete Pe.direction;var We=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(We=p.createElement(this.props.itemIcon,this.props)),p.createElement("li",Object(f.a)({},Object(M.a)(Pe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),je,ze,{style:Ve,ref:this.saveNode}),Pe.children,We)}}]),Ye}(p.Component);St.isMenuItem=!0,St.defaultProps={onSelect:te,onMouseEnter:te,onMouseLeave:te,manualRef:te};var xt=Object(S.b)(function(Me,Ge){var Ye=Me.activeKey,Fe=Me.selectedKeys,Ee=Ge.eventKey,Pe=Ge.subMenuKey;return{active:Ye[Pe]===Ee,isSelected:Array.isArray(Fe)?Fe.indexOf(Ee)!==-1:Fe===Ee}})(St),Jt=xt,pr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){var Fe;return Object(k.a)(this,Ye),Fe=Ge.apply(this,arguments),Fe.renderInnerMenuItem=function(Ee){var Pe=Fe.props,Se=Pe.renderMenuItem,je=Pe.index;return Se(Ee,je,Fe.props.subMenuKey)},Fe}return Object(O.a)(Ye,[{key:"render",value:function(){var Ee=Object(f.a)({},this.props),Pe=Ee.className,Se=Pe===void 0?"":Pe,je=Ee.rootPrefixCls,ze="".concat(je,"-item-group-title"),Ve="".concat(je,"-item-group-list"),We=Ee.title,Ze=Ee.children;return Z.forEach(function(pt){return delete Ee[pt]}),delete Ee.direction,p.createElement("li",Object(f.a)({},Ee,{onClick:function(kt){return kt.stopPropagation()},className:"".concat(Se," ").concat(je,"-item-group")}),p.createElement("div",{className:ze,title:typeof We=="string"?We:void 0},We),p.createElement("ul",{className:Ve},p.Children.map(Ze,this.renderInnerMenuItem)))}}]),Ye}(p.Component);pr.isMenuItemGroup=!0,pr.defaultProps={disabled:!0};var dr=pr,fr=function(Ge){var Ye=Ge.className,Fe=Ge.rootPrefixCls,Ee=Ge.style;return p.createElement("li",{className:"".concat(Ye," ").concat(Fe,"-item-divider"),style:Ee})};fr.defaultProps={disabled:!0,className:"",style:{}};var Dr=fr,an=Et,qe=D("eDIo");function sr(Me,Ge){var Ye=Me.prefixCls,Fe=Me.editable,Ee=Me.locale,Pe=Me.style;return!Fe||Fe.showAdd===!1?null:p.createElement("button",{ref:Ge,type:"button",className:"".concat(Ye,"-nav-add"),style:Pe,"aria-label":(Ee==null?void 0:Ee.addAriaLabel)||"Add tab",onClick:function(je){Fe.onEdit("add",{event:je})}},Fe.addIcon||"+")}var Nr=p.forwardRef(sr);function rn(Me,Ge){var Ye=Me.prefixCls,Fe=Me.id,Ee=Me.tabs,Pe=Me.locale,Se=Me.mobile,je=Me.moreIcon,ze=je===void 0?"More":je,Ve=Me.moreTransitionName,We=Me.style,Ze=Me.className,pt=Me.editable,kt=Me.tabBarGutter,jt=Me.rtl,Yt=Me.onTabClick,Ir=Object(p.useState)(!1),Qr=Object(g.a)(Ir,2),$r=Qr[0],nn=Qr[1],Kr=Object(p.useState)(null),sn=Object(g.a)(Kr,2),ln=sn[0],xn=sn[1],hn="".concat(Fe,"-more-popup"),jn="".concat(Ye,"-dropdown"),pn=ln!==null?"".concat(hn,"-").concat(ln):null,jr=Pe==null?void 0:Pe.dropdownAriaLabel,Wr=p.createElement(an,{onClick:function(Wn){var Dn=Wn.key,ti=Wn.domEvent;Yt(Dn,ti),nn(!1)},id:hn,tabIndex:-1,role:"listbox","aria-activedescendant":pn,selectedKeys:[ln],"aria-label":jr!==void 0?jr:"expanded dropdown"},Ee.map(function(Rn){return p.createElement(Jt,{key:Rn.key,id:"".concat(hn,"-").concat(Rn.key),role:"option","aria-controls":Fe&&"".concat(Fe,"-panel-").concat(Rn.key),disabled:Rn.disabled},Rn.tab)}));function dn(Rn){for(var Wn=Ee.filter(function(gi){return!gi.disabled}),Dn=Wn.findIndex(function(gi){return gi.key===ln})||0,ti=Wn.length,ci=0;ci_n?(bn=Wr,hn.current="x"):(bn=dn,hn.current="y");var Yn=Date.now();Yn-ln.current>100&&(xn.current=!1),(Ge(-bn,-bn)||xn.current)&&(jr.preventDefault(),xn.current=!0),ln.current=Yn}var pn=Object(p.useRef)(null);pn.current={onTouchStart:nn,onTouchMove:Kr,onTouchEnd:sn,onWheel:jn},p.useEffect(function(){function jr(Tr){pn.current.onTouchStart(Tr)}function Wr(Tr){pn.current.onTouchMove(Tr)}function dn(Tr){pn.current.onTouchEnd(Tr)}function bn(Tr){pn.current.onWheel(Tr)}return document.addEventListener("touchmove",Wr,{passive:!1}),document.addEventListener("touchend",dn,{passive:!1}),Me.current.addEventListener("touchstart",jr,{passive:!1}),Me.current.addEventListener("wheel",bn),function(){document.removeEventListener("touchmove",Wr),document.removeEventListener("touchend",dn)}},[])}function yt(){var Me=Object(p.useRef)(new Map);function Ge(Fe){return Me.current.has(Fe)||Me.current.set(Fe,p.createRef()),Me.current.get(Fe)}function Ye(Fe){Me.current.delete(Fe)}return[Ge,Ye]}function zt(Me,Ge){var Ye=p.useRef(Me),Fe=p.useState({}),Ee=Object(g.a)(Fe,2),Pe=Ee[1];function Se(je){var ze=typeof je=="function"?je(Ye.current):je;ze!==Ye.current&&Ge(ze,Ye.current),Ye.current=ze,Pe({})}return[Ye.current,Se]}var Mt=function(Ge){var Ye=Ge.position,Fe=Ge.prefixCls,Ee=Ge.extra;if(!Ee)return null;var Pe,Se=Ee;return Ye==="right"&&(Pe=Se.right||!Se.left&&Se||null),Ye==="left"&&(Pe=Se.left||null),Pe?p.createElement("div",{className:"".concat(Fe,"-extra-content")},Pe):null};function Mr(Me,Ge){var Ye,Fe=p.useContext(br),Ee=Fe.prefixCls,Pe=Fe.tabs,Se=Me.className,je=Me.style,ze=Me.id,Ve=Me.animated,We=Me.activeKey,Ze=Me.rtl,pt=Me.extra,kt=Me.editable,jt=Me.locale,Yt=Me.tabPosition,Ir=Me.tabBarGutter,Qr=Me.children,$r=Me.onTabClick,nn=Me.onTabScroll,Kr=Object(p.useRef)(),sn=Object(p.useRef)(),ln=Object(p.useRef)(),xn=Object(p.useRef)(),hn=yt(),jn=Object(g.a)(hn,2),pn=jn[0],jr=jn[1],Wr=Yt==="top"||Yt==="bottom",dn=zt(0,function(Un,An){Wr&&nn&&nn({direction:Un>An?"left":"right"})}),bn=Object(g.a)(dn,2),Tr=bn[0],_n=bn[1],Yn=zt(0,function(Un,An){!Wr&&nn&&nn({direction:Un>An?"top":"bottom"})}),Rn=Object(g.a)(Yn,2),Wn=Rn[0],Dn=Rn[1],ti=Object(p.useState)(0),ci=Object(g.a)(ti,2),Jn=ci[0],gi=ci[1],Xi=Object(p.useState)(0),Oi=Object(g.a)(Xi,2),di=Oi[0],Hn=Oi[1],zn=Object(p.useState)(0),Qn=Object(g.a)(zn,2),Vn=Qn[0],ii=Qn[1],Di=Object(p.useState)(0),ra=Object(g.a)(Di,2),Mn=ra[0],Ui=ra[1],Bi=Object(p.useState)(null),Fn=Object(g.a)(Bi,2),Pn=Fn[0],ai=Fn[1],Ba=Object(p.useState)(null),wa=Object(g.a)(Ba,2),la=wa[0],ua=wa[1],ka=Object(p.useState)(0),Sa=Object(g.a)(ka,2),La=Sa[0],Wa=Sa[1],Xa=Object(p.useState)(0),Ma=Object(g.a)(Xa,2),ca=Ma[0],_a=Ma[1],ba=h(new Map),da=Object(g.a)(ba,2),co=da[0],Ea=da[1],Ta=t(Pe,co,Jn),fa="".concat(Ee,"-nav-operations-hidden"),ha=0,$i=0;Wr?Ze?(ha=0,$i=Math.max(0,Jn-Pn)):(ha=Math.min(0,Pn-Jn),$i=0):(ha=Math.min(0,la-di),$i=0);function na(Un){return Un$i?[$i,!1]:[Un,!0]}var _r=Object(p.useRef)(),Or=Object(p.useState)(),lr=Object(g.a)(Or,2),Tn=lr[0],vr=lr[1];function pa(){vr(Date.now())}function $a(){window.clearTimeout(_r.current)}vt(Kr,function(Un,An){var wi=!1;function Hi(Ia,ma){Ia(function(Ka){var xa=na(Ka+ma),Si=Object(g.a)(xa,2),Qa=Si[0],ho=Si[1];return wi=ho,Qa})}if(Wr){if(Pn>=Jn)return wi;Hi(_n,Un)}else{if(la>=di)return wi;Hi(Dn,An)}return $a(),pa(),wi}),Object(p.useEffect)(function(){return $a(),Tn&&(_r.current=window.setTimeout(function(){vr(0)},100)),$a},[Tn]);function Kn(){var Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:We,An=Ta.get(Un);if(!An)return;if(Wr){var wi=Tr;Ze?An.rightTr+Pn&&(wi=An.right+An.width-Pn):An.left<-Tr?wi=-An.left:An.left+An.width>-Tr+Pn&&(wi=-(An.left+An.width-Pn)),Dn(0),_n(na(wi)[0])}else{var Hi=Wn;An.top<-Wn?Hi=-An.top:An.top+An.height>-Wn+la&&(Hi=-(An.top+An.height-la)),_n(0),Dn(na(Hi)[0])}}var Oa=E(Ta,{width:Pn,height:la,left:Tr,top:Wn},{width:Vn,height:Mn},{width:La,height:ca},Object(P.a)(Object(P.a)({},Me),{},{tabs:Pe})),Do=Object(g.a)(Oa,2),Jo=Do[0],Qo=Do[1],Zo=Pe.map(function(Un){var An=Un.key;return p.createElement(r,{id:ze,prefixCls:Ee,key:An,rtl:Ze,tab:Un,closable:Un.closable,editable:kt,active:An===We,tabPosition:Yt,tabBarGutter:Ir,renderWrapper:Qr,removeAriaLabel:jt==null?void 0:jt.removeAriaLabel,ref:pn(An),onClick:function(Hi){$r(An,Hi)},onRemove:function(){jr(An)},onFocus:function(){Kn(An),pa(),Ze||(Kr.current.scrollLeft=0),Kr.current.scrollTop=0}})}),fo=o(function(){var Un,An,wi,Hi,Ia,ma,Ka,xa,Si,Qa=((Un=Kr.current)===null||Un===void 0?void 0:Un.offsetWidth)||0,ho=((An=Kr.current)===null||An===void 0?void 0:An.offsetHeight)||0,po=((wi=xn.current)===null||wi===void 0?void 0:wi.offsetWidth)||0,zi=((Hi=xn.current)===null||Hi===void 0?void 0:Hi.offsetHeight)||0,Nn=((Ia=ln.current)===null||Ia===void 0?void 0:Ia.offsetWidth)||0,aa=((ma=ln.current)===null||ma===void 0?void 0:ma.offsetHeight)||0;ai(Qa),ua(ho),Wa(po),_a(zi);var va=(((Ka=sn.current)===null||Ka===void 0?void 0:Ka.offsetWidth)||0)-po,ga=(((xa=sn.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-zi;gi(va),Hn(ga);var mo=(Si=ln.current)===null||Si===void 0?void 0:Si.className.includes(fa);ii(va-(mo?0:Nn)),Ui(ga-(mo?0:aa)),Ea(function(){var Za=new Map;return Pe.forEach(function(Io){var No=Io.key,Ra=pn(No).current;Ra&&Za.set(No,{width:Ra.offsetWidth,height:Ra.offsetHeight,left:Ra.offsetLeft,top:Ra.offsetTop})}),Za})}),qo=Pe.slice(0,Jo),Wi=Pe.slice(Qo+1),pi=[].concat(Object(l.a)(qo),Object(l.a)(Wi)),Pi=Object(p.useState)(),mi=Object(g.a)(Pi,2),Ha=mi[0],es=mi[1],ia=Ta.get(We),Po=Object(p.useRef)();function ko(){c.a.cancel(Po.current)}Object(p.useEffect)(function(){var Un={};return ia&&(Wr?(Ze?Un.right=ia.right:Un.left=ia.left,Un.width=ia.width):(Un.top=ia.top,Un.height=ia.height)),ko(),Po.current=c()(function(){es(Un)}),ko},[ia,Wr,Ze]),Object(p.useEffect)(function(){Kn()},[We,ia,Ta,Wr]),Object(p.useEffect)(function(){fo()},[Ze,Ir,We,Pe.map(function(Un){return Un.key}).join("_")]);var Lo=!!pi.length,Aa="".concat(Ee,"-nav-wrap"),Ya,za,Mo,Ja;return Wr?Ze?(za=Tr>0,Ya=Tr+Pn>>7)^(k<<14|k>>>18)^k>>>3,C=l[f-2],x=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;l[f]=O+l[f-7]+x+l[f-16]}var y=a&t^~a&w,S=h&m^h&s^m&s,M=(h<<30|h>>>2)^(h<<19|h>>>13)^(h<<10|h>>>22),I=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),N=E+I+y+d[f]+l[f],G=M+S;E=w,w=t,t=a,a=r+N|0,r=s,s=m,m=h,h=N+G|0}o[0]=o[0]+h|0,o[1]=o[1]+m|0,o[2]=o[2]+s|0,o[3]=o[3]+r|0,o[4]=o[4]+a|0,o[5]=o[5]+t|0,o[6]=o[6]+w|0,o[7]=o[7]+E|0},_doFinalize:function(){var c=this._data,u=c.words,o=this._nDataBytes*8,h=c.sigBytes*8;return u[h>>>5]|=128<<24-h%32,u[(h+64>>>9<<4)+14]=g.floor(o/4294967296),u[(h+64>>>9<<4)+15]=o,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=v.clone.call(this);return c._hash=this._hash.clone(),c}});T.SHA256=v._createHelper(n),T.HmacSHA256=v._createHmacHelper(n)}(Math),L.SHA256})},lZu9:function(j,Y,D){(function(L){L(D("VrN/"),D("1eCo"),D("8EBN"))})(function(L){"use strict";L.defineMode("markdown",function(g,T){var P=L.getMode(g,"text/html"),p=P.name=="null";function v(U){if(L.findModeByName){var W=L.findModeByName(U);W&&(U=W.mime||W.mimes[0])}var X=L.getMode(g,U);return X.name=="null"?null:X}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var _={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var b in _)_.hasOwnProperty(b)&&T.tokenTypeOverrides[b]&&(_[b]=T.tokenTypeOverrides[b]);var d=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,n=/^\[(x| )\](?=\s)/i,c=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,u=/^ {0,3}(?:\={1,}|-{2,})\s*$/,o=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,s=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function a(U,W,X){return W.f=W.inline=X,X(U,W)}function t(U,W,X){return W.f=W.block=X,X(U,W)}function w(U){return!U||!/\S/.test(U.string)}function E(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==k){var W=p;if(!W){var X=L.innerMode(P,U.htmlState);W=X.mode.name=="xml"&&X.state.tagStart===null&&!X.state.context&&X.state.tokenize.isInText}W&&(U.f=y,U.block=f,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function f(U,W){var X=U.column()===W.indentation,ne=w(W.prevLine.stream),fe=W.indentedCode,me=W.prevLine.hr,Ae=W.list!==!1,De=(W.listStack[W.listStack.length-1]||0)+3;W.indentedCode=!1;var ye=W.indentation;if(W.indentationDiff===null&&(W.indentationDiff=W.indentation,Ae)){for(W.list=null;ye=4&&(fe||W.prevLine.fencedCodeEnd||W.prevLine.header||ne))return U.skipToEnd(),W.indentedCode=!0,_.code;if(U.eatSpace())return null;if(X&&W.indentation<=De&&(ue=U.match(c))&&ue[1].length<=6)return W.quote=0,W.header=ue[1].length,W.thisLine.header=!0,T.highlightFormatting&&(W.formatting="header"),W.f=W.inline,C(W);if(W.indentation<=De&&U.eat(">"))return W.quote=X?1:W.quote+1,T.highlightFormatting&&(W.formatting="quote"),U.eatSpace(),C(W);if(!xe&&!W.setext&&X&&W.indentation<=De&&(ue=U.match(l))){var le=ue[1]?"ol":"ul";return W.indentation=ye+U.current().length,W.list=!0,W.quote=0,W.listStack.push(W.indentation),W.em=!1,W.strong=!1,W.code=!1,W.strikethrough=!1,T.taskLists&&U.match(n,!1)&&(W.taskList=!0),W.f=W.inline,T.highlightFormatting&&(W.formatting=["list","list-"+le]),C(W)}else{if(X&&W.indentation<=De&&(ue=U.match(h,!0)))return W.quote=0,W.fencedEndRE=new RegExp(ue[1]+"+ *$"),W.localMode=T.fencedCodeBlockHighlighting&&v(ue[2]||T.fencedCodeBlockDefaultMode),W.localMode&&(W.localState=L.startState(W.localMode)),W.f=W.block=O,T.highlightFormatting&&(W.formatting="code-block"),W.code=-1,C(W);if(W.setext||(!Oe||!Ae)&&!W.quote&&W.list===!1&&!W.code&&!xe&&!m.test(U.string)&&(ue=U.lookAhead(1))&&(ue=ue.match(u)))return W.setext?(W.header=W.setext,W.setext=0,U.skipToEnd(),T.highlightFormatting&&(W.formatting="header")):(W.header=ue[0].charAt(0)=="="?1:2,W.setext=W.header),W.thisLine.header=!0,W.f=W.inline,C(W);if(xe)return U.skipToEnd(),W.hr=!0,W.thisLine.hr=!0,_.hr;if(U.peek()==="[")return a(U,W,G)}return a(U,W,W.inline)}function k(U,W){var X=P.token(U,W.htmlState);if(!p){var ne=L.innerMode(P,W.htmlState);(ne.mode.name=="xml"&&ne.state.tagStart===null&&!ne.state.context&&ne.state.tokenize.isInText||W.md_inside&&U.current().indexOf(">")>-1)&&(W.f=y,W.block=f,W.htmlState=null)}return X}function O(U,W){var X=W.listStack[W.listStack.length-1]||0,ne=W.indentation=U.quote?W.push(_.formatting+"-"+U.formatting[X]+"-"+U.quote):W.push("error"))}if(U.taskOpen)return W.push("meta"),W.length?W.join(" "):null;if(U.taskClosed)return W.push("property"),W.length?W.join(" "):null;if(U.linkHref?W.push(_.linkHref,"url"):(U.strong&&W.push(_.strong),U.em&&W.push(_.em),U.strikethrough&&W.push(_.strikethrough),U.emoji&&W.push(_.emoji),U.linkText&&W.push(_.linkText),U.code&&W.push(_.code),U.image&&W.push(_.image),U.imageAltText&&W.push(_.imageAltText,"link"),U.imageMarker&&W.push(_.imageMarker)),U.header&&W.push(_.header,_.header+"-"+U.header),U.quote&&(W.push(_.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=U.quote?W.push(_.quote+"-"+U.quote):W.push(_.quote+"-"+T.maxBlockquoteDepth)),U.list!==!1){var ne=(U.listStack.length-1)%3;ne?ne===1?W.push(_.list2):W.push(_.list3):W.push(_.list1)}return U.trailingSpaceNewLine?W.push("trailing-space-new-line"):U.trailingSpace&&W.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),W.length?W.join(" "):null}function x(U,W){return U.match(o,!0)?C(W):void 0}function y(U,W){var X=W.text(U,W);if(typeof X!="undefined")return X;if(W.list)return W.list=null,C(W);if(W.taskList){var ne=U.match(n,!0)[1]===" ";return ne?W.taskOpen=!0:W.taskClosed=!0,T.highlightFormatting&&(W.formatting="task"),W.taskList=!1,C(W)}if(W.taskOpen=!1,W.taskClosed=!1,W.header&&U.match(/^#+$/,!0))return T.highlightFormatting&&(W.formatting="header"),C(W);var fe=U.next();if(W.linkTitle){W.linkTitle=!1;var me=fe;fe==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ae="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(U.match(new RegExp(Ae),!0))return _.linkHref}if(fe==="`"){var De=W.formatting;T.highlightFormatting&&(W.formatting="code"),U.eatWhile("`");var ye=U.current().length;if(W.code==0&&(!W.quote||ye==1))return W.code=ye,C(W);if(ye==W.code){var Oe=C(W);return W.code=0,Oe}else return W.formatting=De,C(W)}else if(W.code)return C(W);if(fe==="\\"&&(U.next(),T.highlightFormatting)){var xe=C(W),ue=_.formatting+"-escape";return xe?xe+" "+ue:ue}if(fe==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return W.imageMarker=!0,W.image=!0,T.highlightFormatting&&(W.formatting="image"),C(W);if(fe==="["&&W.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return W.imageMarker=!1,W.imageAltText=!0,T.highlightFormatting&&(W.formatting="image"),C(W);if(fe==="]"&&W.imageAltText){T.highlightFormatting&&(W.formatting="image");var xe=C(W);return W.imageAltText=!1,W.image=!1,W.inline=W.f=M,xe}if(fe==="["&&!W.image)return W.linkText&&U.match(/^.*?\]/)||(W.linkText=!0,T.highlightFormatting&&(W.formatting="link")),C(W);if(fe==="]"&&W.linkText){T.highlightFormatting&&(W.formatting="link");var xe=C(W);return W.linkText=!1,W.inline=W.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?M:y,xe}if(fe==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=S,T.highlightFormatting&&(W.formatting="link");var xe=C(W);return xe?xe+=" ":xe="",xe+_.linkInline}if(fe==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=S,T.highlightFormatting&&(W.formatting="link");var xe=C(W);return xe?xe+=" ":xe="",xe+_.linkEmail}if(T.xml&&fe==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var le=U.string.indexOf(">",U.pos);if(le!=-1){var re=U.string.substring(U.start,le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(re)&&(W.md_inside=!0)}return U.backUp(1),W.htmlState=L.startState(P),t(U,W,k)}if(T.xml&&fe==="<"&&U.match(/^\/\w*?>/))return W.md_inside=!1,"tag";if(fe==="*"||fe==="_"){for(var pe=1,ee=U.pos==1?" ":U.string.charAt(U.pos-2);pe<3&&U.eat(fe);)pe++;var te=U.peek()||" ",ce=!/\s/.test(te)&&(!s.test(te)||/\s/.test(ee)||s.test(ee)),q=!/\s/.test(ee)&&(!s.test(ee)||/\s/.test(te)||s.test(te)),Q=null,V=null;if(pe%2&&(!W.em&&ce&&(fe==="*"||!q||s.test(ee))?Q=!0:W.em==fe&&q&&(fe==="*"||!ce||s.test(te))&&(Q=!1)),pe>1&&(!W.strong&&ce&&(fe==="*"||!q||s.test(ee))?V=!0:W.strong==fe&&q&&(fe==="*"||!ce||s.test(te))&&(V=!1)),V!=null||Q!=null){T.highlightFormatting&&(W.formatting=Q==null?"strong":V==null?"em":"strong em"),Q===!0&&(W.em=fe),V===!0&&(W.strong=fe);var Oe=C(W);return Q===!1&&(W.em=!1),V===!1&&(W.strong=!1),Oe}}else if(fe===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return C(W);U.backUp(1)}if(T.strikethrough){if(fe==="~"&&U.eatWhile(fe)){if(W.strikethrough){T.highlightFormatting&&(W.formatting="strikethrough");var Oe=C(W);return W.strikethrough=!1,Oe}else if(U.match(/^[^\s]/,!1))return W.strikethrough=!0,T.highlightFormatting&&(W.formatting="strikethrough"),C(W)}else if(fe===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return C(W);U.backUp(2)}}if(T.emoji&&fe===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){W.emoji=!0,T.highlightFormatting&&(W.formatting="emoji");var Z=C(W);return W.emoji=!1,Z}return fe===" "&&(U.match(/^ +$/,!1)?W.trailingSpace++:W.trailingSpace&&(W.trailingSpaceNewLine=!0)),C(W)}function S(U,W){var X=U.next();if(X===">"){W.f=W.inline=y,T.highlightFormatting&&(W.formatting="link");var ne=C(W);return ne?ne+=" ":ne="",ne+_.linkInline}return U.match(/^[^>]+/,!0),_.linkInline}function M(U,W){if(U.eatSpace())return null;var X=U.next();return X==="("||X==="["?(W.f=W.inline=N(X==="("?")":"]"),T.highlightFormatting&&(W.formatting="link-string"),W.linkHref=!0,C(W)):"error"}var I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(U){return function(W,X){var ne=W.next();if(ne===U){X.f=X.inline=y,T.highlightFormatting&&(X.formatting="link-string");var fe=C(X);return X.linkHref=!1,fe}return W.match(I[U]),X.linkHref=!0,C(X)}}function G(U,W){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(W.f=H,U.next(),T.highlightFormatting&&(W.formatting="link"),W.linkText=!0,C(W)):a(U,W,y)}function H(U,W){if(U.match(/^\]:/,!0)){W.f=W.inline=B,T.highlightFormatting&&(W.formatting="link");var X=C(W);return W.linkText=!1,X}return U.match(/^([^\]\\]|\\.)+/,!0),_.linkText}function B(U,W){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?W.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),W.f=W.inline=y,_.linkHref+" url")}var K={startState:function(){return{f,prevLine:{stream:null},thisLine:{stream:null},block:f,htmlState:null,indentation:0,inline:y,text:x,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&L.copyState(P,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?L.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,W){if(W.formatting=!1,U!=W.thisLine.stream){if(W.header=0,W.hr=!1,U.match(/^\s*$/,!0))return E(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:U},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=k)){var X=U.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(W.indentation=X,W.indentationDiff=null,X>0)return null}}return W.f(U,W)},innerMode:function(U){return U.block==k?{state:U.htmlState,mode:P}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:K}},indent:function(U,W,X){return U.block==k&&P.indent?P.indent(U.htmlState,W,X):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,W,X):L.Pass},blankLine:E,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return K},"xml"),L.defineMIME("text/markdown","markdown"),L.defineMIME("text/x-markdown","markdown")})},mOS8:function(j,Y,D){j.exports=D.p+"static/403Qrcode.6c17b6f4.png"},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(j){if(!0)module.exports=j();else var Y})(function(){var define,module,exports;return function(){function j(Y,D,L){function g(p,v){if(!D[p]){if(!Y[p]){var _=typeof require=="function"&&require;if(!v&&_)return require(p,!0);if(T)return T(p,!0);var b=new Error("Cannot find module '"+p+"'");throw b.code="MODULE_NOT_FOUND",b}var d=D[p]={exports:{}};Y[p][0].call(d.exports,function(l){var n=Y[p][1][l];return g(n||l)},d,d.exports,j,Y,D,L)}return D[p].exports}for(var T=typeof require=="function"&&require,P=0;P0&&u(M).to(N),G=this._divideParts(x,y),H=G.length,B=!1,K=function(Oe,xe){var ue=this;return new p.default(function(re,pe){var ee,te,ce,q;return _.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(V.prev=0,Oe.isCancel()){V.next=18;break}return ee=G[xe-1],te={stream:Oe._createStream(C,ee.start,ee.end),size:ee.end-ee.start},V.next=6,_.default.awrap(Oe._uploadPart(I,S,xe,te));case 6:if(ce=V.sent,!(!Oe.isCancel()&&!B)){V.next=15;break}if(f.doneParts.push({number:xe,etag:ce.res.headers.etag}),!k.progress){V.next=12;break}return V.next=12,_.default.awrap(k.progress(M.length/H,f,ce.res));case 12:re({number:xe,etag:ce.res.headers.etag}),V.next=16;break;case 15:re();case 16:V.next=19;break;case 18:re();case 19:V.next=30;break;case 21:V.prev=21,V.t0=V.catch(0),q=new Error,q.name=V.t0.name,q.message=V.t0.message,q.stack=V.t0.stack,q.partNum=xe,u(V.t0).to(q),pe(q);case 30:case"end":return V.stop()}},null,ue,[[0,21]])})},U=(0,T.default)(new Array(H),function(ye,Oe){return Oe+1}),W=N.map(function(ye){return ye.number}),X=U.filter(function(ye){return W.indexOf(ye)<0}),ne=5,fe=k.parallel||ne,De.next=17,_.default.awrap(this._parallel(X,fe,function(ye){return new p.default(function(Oe,xe){K(O,ye).then(function(ue){ue&&N.push(ue),Oe()}).catch(function(ue){xe(ue)})})}));case 17:if(me=De.sent,B=!0,!this.isCancel()){De.next=22;break}throw K=null,this._makeCancelEvent();case 22:if(!(me&&me.length>0)){De.next=25;break}throw me[0].message="Failed to upload some parts with error: "+me[0].toString()+" part_num: "+me[0].partNum,me[0];case 25:return De.next=27,_.default.awrap(this.completeMultipartUpload(I,S,N,k));case 27:return De.abrupt("return",De.sent);case 28:case"end":return De.stop()}},null,this)},r._getFileSize=function(f){return _.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(!d.buffer(f)){O.next=4;break}return O.abrupt("return",f.length);case 4:if(!(h(f)||s(f))){O.next=6;break}return O.abrupt("return",f.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return O.stop()}},null,this)};var a=j("stream"),t=a.Readable;function w(E,f){if(!(this instanceof w))return new w(E,f);t.call(this,f),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}l.inherits(w,t),w.prototype.readFileAndPush=function(f){if(this.fileBuffer)for(var k=!0;k&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:C,this.start=C,k=this.push(this.fileBuffer.slice(O,C))}},w.prototype._read=function(f){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var k=16*1024;f=f||k;var O=this;this.reader.onload=function(x){O.fileBuffer=L.from(new Uint8Array(x.target.result)),O.file=null,O.readFileAndPush(f)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(f)},r._createStream=function(f,k,O){if(h(f)||s(f))return new w(f.slice(k,O));throw new Error("_createStream requires File/Blob.")},r._getPartSize=function(f,k){var O=10*1e3,C=1024*1024;return k?Math.max(Math.ceil(f/O),k):C},r._divideParts=function(f,k){for(var O=Math.ceil(f/k),C=[],x=0;x255)throw new Error("ID is composed of 255 bytes at most");if(f.prefix===""||f.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(f.status))throw new Error("Status must be Enabled or Disabled");if(f.transition){if(!["IA","Archive"].includes(f.transition.storageClass))throw new Error("StorageClass must be IA or Archive");t(f.transition,"Transition")}if(f.expiration){if(!f.expiration.expiredObjectDeleteMarker)t(f.expiration,"Expiration");else if(f.expiration.days||f.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(f.abortMultipartUpload&&t(f.abortMultipartUpload,"AbortMultipartUpload"),!f.expiration&&!f.abortMultipartUpload&&!f.transition&&!f.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(f.tag){if(f.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(f.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(d){return d&&d.__esModule?d:{default:d}}var P=j("../utils/checkBucketName"),p=P.checkBucketName,v=j("../utils/obj2xml"),_=v.obj2xml,b=D;b.putBucketVersioning=function(l,n){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,o,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(p(l),["Enabled","Suspended"].includes(n)){s.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return u=this._bucketRequestParams("PUT",l,"versioning",c),o={VersioningConfiguration:{Status:n}},u.mime="xml",u.content=_(o,{headers:!0}),s.next=9,g.default.awrap(this.request(u));case 9:return h=s.sent,s.abrupt("return",{res:h.res,status:h.status});case 11:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(n){return n&&n.__esModule?n:{default:n}}var P=j("../utils/checkBucketName"),p=P.checkBucketName,v=j("../utils/obj2xml"),_=v.obj2xml,b=j("../utils/isArray"),d=b.isArray,l=D;l.putBucketWebsite=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments[2],h,m,s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(p(c),h=this._bucketRequestParams("PUT",c,"website",o),m={Suffix:u.index||"index.html"},s={IndexDocument:m},r={WebsiteConfiguration:s},u.supportSubDir&&(m.SupportSubDir=u.supportSubDir),u.type&&(m.Type=u.type),u.error&&(s.ErrorDocument={Key:u.error}),!(u.routingRules!==void 0)){w.next=12;break}if(d(u.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:s.RoutingRules={RoutingRule:u.routingRules};case 12:return r=_(r),h.content=r,h.mime="xml",h.successStatuses=[200],w.next=18,g.default.awrap(this.request(h));case 18:return a=w.sent,w.abrupt("return",{res:a.res});case 20:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/object/keys"),T=v(g),P=j("babel-runtime/core-js/json/stringify"),p=v(P);function v(_){return _&&_.__esModule?_:{default:_}}D.encodeCallback=function(b,d){if(b.headers=b.headers||{},!Object.prototype.hasOwnProperty.call(b.headers,"x-oss-callback")&&d.callback){var l={callbackUrl:encodeURI(d.callback.url),callbackBody:d.callback.body};d.callback.host&&(l.callbackHost=d.callback.host),d.callback.contentType&&(l.callbackBodyType=d.callback.contentType);var n=L.from((0,p.default)(l)).toString("base64");if(b.headers["x-oss-callback"]=n,d.callback.customValue){var c={};(0,T.default)(d.callback.customValue).forEach(function(u){c["x:"+u]=d.callback.customValue[u]}),b.headers["x-oss-callback-var"]=L.from((0,p.default)(c)).toString("base64")}}}}).call(this,j("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/assign"),g=T(L);function T(l){return l&&l.__esModule?l:{default:l}}var P=j("humanize-ms"),p=j("url"),v=j("../utils/checkBucketName"),_=v.checkBucketName;function b(l,n){var c=p.parse(l);if(c.protocol||(c=p.parse("http"+(n?"s":"")+"://"+l)),c.protocol!=="http:"&&c.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return c}function d(l,n,c){var u=c?"https://":"http://",o=n?"-internal.aliyuncs.com":".aliyuncs.com",h="vpc100-oss-cn-";return l.substr(0,h.length)===h&&(o=".aliyuncs.com"),p.parse(u+l+o)}Y.exports=function(l){if(!l||!l.accessKeyId||!l.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");l.bucket&&_(l.bucket);var n=(0,g.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},l);if(n.accessKeyId=n.accessKeyId.trim(),n.accessKeySecret=n.accessKeySecret.trim(),n.timeout&&(n.timeout=P(n.timeout)),n.endpoint)n.endpoint=b(n.endpoint,n.secure);else if(n.region)n.endpoint=d(n.region,n.internal,n.secure);else throw new Error("require options.endpoint or options.region");return n.inited=!0,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(j,Y,D){"use strict";var L=j("merge-descriptors"),g=D;L(g,j("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(n){return n&&n.__esModule?n:{default:n}}var P=j("../utils/checkBucketName"),p=P.checkBucketName,v=j("querystring"),_=j("js-base64"),b=_.Base64.encode,d=D;d.processObjectSave=function(c,u,o,h){var m,s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return l(c,"sourceObject"),l(u,"targetObject"),l(o,"process"),u=this._objectName(u),h&&p(h),m=this._objectRequestParams("POST",c,{subres:"x-oss-process"}),s=h?",b_"+b(h):"",u=b(u),r={"x-oss-process":o+"|sys/saveas,o_"+u+s},m.content=v.stringify(r),w.next=12,g.default.awrap(this.request(m));case 12:return a=w.sent,w.abrupt("return",{res:a.res,status:a.res.status});case 14:case"end":return w.stop()}},null,this)};function l(n,c){if(!n)throw new Error(c+" is required");if(typeof n!="string")throw new Error(c+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(d){return d&&d.__esModule?d:{default:d}}var P=j("copy-to"),p=j("./callback"),v=j("./utils/deepCopy"),_=v.deepCopy,b=D;b.listUploads=function(l,n){var c,u,o,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=n||{},c={},P(n).to(c),c.subres="uploads",u=this._objectRequestParams("GET","",c),u.query=l,u.xmlResponse=!0,u.successStatuses=[200],s.next=10,g.default.awrap(this.request(u));case 10:return o=s.sent,h=o.data.Upload||[],Array.isArray(h)||(h=[h]),h=h.map(function(r){return{name:r.Key,uploadId:r.UploadId,initiated:r.Initiated}}),s.abrupt("return",{res:o.res,uploads:h,bucket:o.data.Bucket,nextKeyMarker:o.data.NextKeyMarker,nextUploadIdMarker:o.data.NextUploadIdMarker,isTruncated:o.data.IsTruncated==="true"});case 15:case"end":return s.stop()}},null,this)},b.listParts=function(l,n,c,u){var o,h,m;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return u=u||{},o={},P(u).to(o),o.subres={uploadId:n},h=this._objectRequestParams("GET",l,o),h.query=c,h.xmlResponse=!0,h.successStatuses=[200],r.next=10,g.default.awrap(this.request(h));case 10:return m=r.sent,r.abrupt("return",{res:m.res,uploadId:m.data.UploadId,bucket:m.data.Bucket,name:m.data.Key,partNumberMarker:m.data.PartNumberMarker,nextPartNumberMarker:m.data.NextPartNumberMarker,maxParts:m.data.MaxParts,isTruncated:m.data.IsTruncated,parts:m.data.Part||[]});case 12:case"end":return r.stop()}},null,this)},b.abortMultipartUpload=function(l,n,c){var u,o,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return this._stop(),c=c||{},u={},P(c).to(u),u.subres={uploadId:n},o=this._objectRequestParams("DELETE",l,u),o.successStatuses=[204],s.next=9,g.default.awrap(this.request(o));case 9:return h=s.sent,s.abrupt("return",{res:h.res});case 11:case"end":return s.stop()}},null,this)},b.initMultipartUpload=function(l,n){var c,u,o;return g.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return n=n||{},c={},P(n).to(c),c.headers=c.headers||{},this._convertMetaToHeaders(n.meta,c.headers),c.subres="uploads",u=this._objectRequestParams("POST",l,c),u.mime=n.mime,u.xmlResponse=!0,u.successStatuses=[200],m.next=12,g.default.awrap(this.request(u));case 12:return o=m.sent,m.abrupt("return",{res:o.res,bucket:o.data.Bucket,name:o.data.Key,uploadId:o.data.UploadId});case 14:case"end":return m.stop()}},null,this)},b.uploadPart=function(l,n,c,u,o,h,m){var s;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return s={stream:this._createStream(u,o,h),size:h-o},a.next=3,g.default.awrap(this._uploadPart(l,n,c,s,m));case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}},null,this)},b.completeMultipartUpload=function(l,n,c,u){var o,h,m,s,r,a,t,w;return g.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:for(o=c.concat().sort(function(k,O){return k.number-O.number}).filter(function(k,O,C){return!O||k.number!==C[O-1].number}),h=` + a `).concat(ne,",").concat(ne," 0 1 1 ").concat(-Ae,",").concat(De),Oe=Math.PI*2*ne,xe={stroke:K,strokeDasharray:"".concat(B/100*(Oe-W),"px ").concat(Oe,"px"),strokeDashoffset:"-".concat(W/2+H/100*(Oe-W),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ye,pathStyle:xe}}var I=function(B){var K=B.prefixCls,U=B.strokeWidth,W=B.trailWidth,X=B.gapDegree,ne=B.gapPosition,fe=B.trailColor,me=B.strokeLinecap,Ae=B.style,De=B.className,ye=B.strokeColor,Oe=B.percent,xe=O(B,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(L.useMemo)(function(){return x+=1,x},[]),le=M(0,100,fe,U,X,ne),re=le.pathString,pe=le.pathStyle,ee=_(Oe),te=_(ye),ce=te.find(function(be){return Object.prototype.toString.call(be)==="[object Object]"}),q=v(ee),Q=a(q,1),V=Q[0],Z=function(){var ge=0;return ee.map(function(Te,Je){var rt=te[Je]||te[te.length-1],nt=Object.prototype.toString.call(rt)==="[object Object]"?"url(#".concat(K,"-gradient-").concat(ue,")"):"",at=M(ge,Te,rt,U,X,ne);return ge+=Te,g.a.createElement("path",{key:Je,className:"".concat(K,"-circle-path"),d:at.pathString,stroke:nt,strokeLinecap:me,strokeWidth:U,opacity:Te===0?0:1,fillOpacity:"0",style:at.pathStyle,ref:V[Je]})})};return g.a.createElement("svg",r({className:P()("".concat(K,"-circle"),De),viewBox:"0 0 100 100",style:Ae},xe),ce&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(K,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ce).sort(function(be,ge){return y(be)-y(ge)}).map(function(be,ge){return g.a.createElement("stop",{key:ge,offset:be,stopColor:ce[be]})}))),g.a.createElement("path",{className:"".concat(K,"-circle-trail"),d:re,stroke:fe,strokeLinecap:me,strokeWidth:W||U,fillOpacity:"0",style:pe}),Z().reverse())};I.defaultProps=p;var N=I,G={Line:s,Circle:N}},hW8S:function(j,Y,D){"use strict";D.d(Y,"a",function(){return P}),D.d(Y,"c",function(){return p}),D.d(Y,"b",function(){return v});var L=D("VTBJ"),g=D("Ff2n"),T=D("Kwbf"),P="RC_TABLE_INTERNAL_COL_DEFINE";function p(S){var b=S.expandable,d=Object(g.a)(S,["expandable"]);return"expandable"in S?Object(L.a)(Object(L.a)({},d),b):d}function v(S){return Object.keys(S).reduce(function(b,d){return(d.substr(0,5)==="data-"||d.substr(0,5)==="aria-")&&(b[d]=S[d]),b},{})}},jO9C:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.pad.Iso97971={pad:function(g,T){g.concat(L.lib.WordArray.create([2147483648],1)),L.pad.ZeroPadding.pad(g,T)},unpad:function(g){L.pad.ZeroPadding.unpad(g),g.sigBytes--}},L.pad.Iso97971})},jwmR:function(j,Y,D){j.exports={flexRow:"flexRow___3nMh-",flexColumn:"flexColumn___Xpn5L",formWrap:"formWrap___3t9mN",example:"example___5c8Eu",footerWrap:"footerWrap___20Wal"}},k3GJ:function(j,Y,D){"use strict";D.d(Y,"a",function(){return kr});var L=D("rePB"),g=D("ODXe"),T=D("Ff2n"),P=D("VTBJ"),p=D("q1tI"),v=D("TSYQ"),S=D.n(v),b=D("Zm9Q"),d=D("6cGi"),l=D("KQm4"),n=D("xEkU"),c=D.n(n),u=D("t23M");function o(Me){var Ge=Object(p.useRef)(),Ye=Object(p.useRef)(!1);function Fe(){for(var Ee=arguments.length,Pe=new Array(Ee),_e=0;_eZe&&(jt=Ze-kt),Object(p.useMemo)(function(){if(!Pe.length)return[0,0];for(var Yt=Pe.length,Ir=Yt,Qr=0;QrWe+jt){Ir=Qr-1;break}}for(var nn=0,Kr=Yt-1;Kr>=0;Kr-=1){var sn=Me.get(Pe[Kr].key)||w;if(sn[Ve]1&&arguments[1]!==void 0?arguments[1]:!1,Fe=Ge&&typeof Ge.getBoundingClientRect=="function"&&Ge.getBoundingClientRect().width;if(Fe){if(Ye){var Ee=getComputedStyle(Ge),Pe=Ee.marginLeft,_e=Ee.marginRight;Fe+=+Pe.replace("px","")+ +_e.replace("px","")}Fe=+Fe.toFixed(6)}return Fe||0},ge=function(Ge,Ye,Fe){Ge&&Object(H.a)(Ge.style)==="object"&&(Ge.style[Ye]=Fe)},Te=function(){return ee.any},Je=D("bdgK"),rt=D("i8i4"),nt=D.n(rt),at=D("wgJM"),ct=D("l4aY"),ht=D("m+aA"),He=D("c+Xe"),Re=D("zT1h"),tt=D("QC+M");function ft(Me,Ge,Ye){return Ye?Me[0]===Ge[0]:Me[0]===Ge[0]&&Me[1]===Ge[1]}function Qe(Me,Ge,Ye){var Fe=Me[Ge]||{};return Object(P.a)(Object(P.a)({},Fe),Ye)}function lt(Me,Ge,Ye,Fe){for(var Ee=Ye.points,Pe=Object.keys(Me),_e=0;_e1&&arguments[1]!==void 0?arguments[1]:2;Ge();var Pe=Object(at.a)(function(){Ee<=1?Fe({isCanceled:function(){return Pe!==Me.current}}):Ye(Fe,Ee-1)});Me.current=Pe}return p.useEffect(function(){return function(){Ge()}},[]),[Ye,Ge]},kn=[Ar,vn,mn,Kt],Ln=!1,tn=!0;function ur(Me){return Me===mn||Me===Kt}var Xn=function(Me,Ge){var Ye=p.useState(un),Fe=Object(g.a)(Ye,2),Ee=Fe[0],Pe=Fe[1],_e=Xr(),je=Object(g.a)(_e,2),ze=je[0],Ve=je[1];function We(){Pe(Ar)}return gr(function(){if(Ee!==un&&Ee!==Kt){var Ze=kn.indexOf(Ee),pt=kn[Ze+1],kt=Ge(Ee);kt===Ln?Pe(pt):ze(function(jt){function Yt(){if(jt.isCanceled())return;Pe(pt)}kt===!0?Yt():Promise.resolve(kt).then(Yt)})}},[Me,Ee]),p.useEffect(function(){return function(){Ve()}},[]),[We,Ee]},hi=function(Me){var Ge=Object(p.useRef)(),Ye=Object(p.useRef)(Me);Ye.current=Me;var Fe=p.useCallback(function(_e){Ye.current(_e)},[]);function Ee(_e){_e&&(_e.removeEventListener(hr,Fe),_e.removeEventListener(Nt,Fe))}function Pe(_e){Ge.current&&Ge.current!==_e&&Ee(Ge.current),_e&&_e!==Ge.current&&(_e.addEventListener(hr,Fe),_e.addEventListener(Nt,Fe),Ge.current=_e)}return p.useEffect(function(){return function(){Ee(Ge.current)}},[]),[Pe,Ee]};function $n(Me,Ge,Ye,Fe){var Ee=Fe.motionEnter,Pe=Ee===void 0?!0:Ee,_e=Fe.motionAppear,je=_e===void 0?!0:_e,ze=Fe.motionLeave,Ve=ze===void 0?!0:ze,We=Fe.motionDeadline,Ze=Fe.motionLeaveImmediately,pt=Fe.onAppearPrepare,kt=Fe.onEnterPrepare,jt=Fe.onLeavePrepare,Yt=Fe.onAppearStart,Ir=Fe.onEnterStart,Qr=Fe.onLeaveStart,$r=Fe.onAppearActive,nn=Fe.onEnterActive,Kr=Fe.onLeaveActive,sn=Fe.onAppearEnd,ln=Fe.onEnterEnd,xn=Fe.onLeaveEnd,hn=Fe.onVisibleChanged,jn=or(),pn=Object(g.a)(jn,2),jr=pn[0],Wr=pn[1],dn=or(St),bn=Object(g.a)(dn,2),Tr=bn[0],Sn=bn[1],Yn=or(null),Rn=Object(g.a)(Yn,2),Wn=Rn[0],Dn=Rn[1],ti=Object(p.useRef)(!1),ci=Object(p.useRef)(null),Jn=Object(p.useRef)(!1),gi=Object(p.useRef)(null);function Xi(){var Fn=Ye();return Fn||gi.current}var Oi=Object(p.useRef)(!1);function di(Fn){var Pn=Xi();if(Fn&&!Fn.deadline&&Fn.target!==Pn)return;var ai;Tr===Yr&&Oi.current?ai=sn==null?void 0:sn(Pn,Fn):Tr===Jr&&Oi.current?ai=ln==null?void 0:ln(Pn,Fn):Tr===Hr&&Oi.current&&(ai=xn==null?void 0:xn(Pn,Fn)),ai!==!1&&!Jn.current&&(Sn(St),Dn(null))}var Hn=hi(di),zn=Object(g.a)(Hn,1),Qn=zn[0],Vn=p.useMemo(function(){var Fn,Pn,ai;switch(Tr){case"appear":return Fn={},Object(L.a)(Fn,Ar,pt),Object(L.a)(Fn,vn,Yt),Object(L.a)(Fn,mn,$r),Fn;case"enter":return Pn={},Object(L.a)(Pn,Ar,kt),Object(L.a)(Pn,vn,Ir),Object(L.a)(Pn,mn,nn),Pn;case"leave":return ai={},Object(L.a)(ai,Ar,jt),Object(L.a)(ai,vn,Qr),Object(L.a)(ai,mn,Kr),ai;default:return{}}},[Tr]),ii=Xn(Tr,function(Fn){if(Fn===Ar){var Pn=Vn[Ar];return Pn?Pn(Xi()):Ln}if(Mn in Vn){var ai;Dn(((ai=Vn[Mn])===null||ai===void 0?void 0:ai.call(Vn,Xi(),null))||null)}return Mn===mn&&(Qn(Xi()),We>0&&(clearTimeout(ci.current),ci.current=setTimeout(function(){di({deadline:!0})},We))),tn}),Di=Object(g.a)(ii,2),ra=Di[0],Mn=Di[1],Ui=ur(Mn);Oi.current=Ui,gr(function(){Wr(Ge);var Fn=ti.current;if(ti.current=!0,!Me)return;var Pn;!Fn&&Ge&&je&&(Pn=Yr),Fn&&Ge&&Pe&&(Pn=Jr),(Fn&&!Ge&&Ve||!Fn&&Ze&&!Ge&&Ve)&&(Pn=Hr),Pn&&(Sn(Pn),ra())},[Ge]),Object(p.useEffect)(function(){(Tr===Yr&&!je||Tr===Jr&&!Pe||Tr===Hr&&!Ve)&&Sn(St)},[je,Pe,Ve]),Object(p.useEffect)(function(){return function(){clearTimeout(ci.current),Jn.current=!0}},[]),Object(p.useEffect)(function(){jr!==void 0&&Tr===St&&(hn==null||hn(jr))},[jr,Tr]);var Bi=Wn;return Vn[Ar]&&Mn===vn&&(Bi=Object(P.a)({transition:"none"},Bi)),[Tr,Mn,Bi,jr!=null?jr:Ge]}var Zr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){return Object(k.a)(this,Ye),Ge.apply(this,arguments)}return Object(O.a)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(p.Component),Bn=Zr;function si(Me){var Ge=Me;Object(H.a)(Me)==="object"&&(Ge=Me.transitionSupport);function Ye(Ee){return!!(Ee.motionName&&Ge)}var Fe=p.forwardRef(function(Ee,Pe){var _e=Ee.visible,je=_e===void 0?!0:_e,ze=Ee.removeOnLeave,Ve=ze===void 0?!0:ze,We=Ee.forceRender,Ze=Ee.children,pt=Ee.motionName,kt=Ee.leavedClassName,jt=Ee.eventProps,Yt=Ye(Ee),Ir=Object(p.useRef)(),Qr=Object(p.useRef)();function $r(){try{return Object(ht.a)(Ir.current||Qr.current)}catch(Sn){return null}}var nn=$n(Yt,je,$r,Ee),Kr=Object(g.a)(nn,4),sn=Kr[0],ln=Kr[1],xn=Kr[2],hn=Kr[3],jn=p.useRef(hn);hn&&(jn.current=!0);var pn=Object(p.useRef)(Pe);pn.current=Pe;var jr=p.useCallback(function(Sn){Ir.current=Sn,Object(He.b)(pn.current,Sn)},[]),Wr,dn=Object(P.a)(Object(P.a)({},jt),{},{visible:je});if(!Ze)Wr=null;else if(sn===St||!Ye(Ee))hn?Wr=Ze(Object(P.a)({},dn),jr):!Ve&&jn.current?Wr=Ze(Object(P.a)(Object(P.a)({},dn),{},{className:kt}),jr):We?Wr=Ze(Object(P.a)(Object(P.a)({},dn),{},{style:{display:"none"}}),jr):Wr=null;else{var bn,Tr;ln===Ar?Tr="prepare":ur(ln)?Tr="active":ln===vn&&(Tr="start"),Wr=Ze(Object(P.a)(Object(P.a)({},dn),{},{className:S()(mr(pt,sn),(bn={},Object(L.a)(bn,mr(pt,"".concat(sn,"-").concat(Tr)),Tr),Object(L.a)(bn,pt,typeof pt=="string"),bn)),style:xn}),jr)}return p.createElement(Bn,{ref:Qr},Wr)});return Fe.displayName="CSSMotion",Fe}var li=si(Ut),wt="add",$t="keep",en="remove",Cn="removed";function _n(Me){var Ge;return Me&&Object(H.a)(Me)==="object"&&"key"in Me?Ge=Me:Ge={key:Me},Object(P.a)(Object(P.a)({},Ge),{},{key:String(Ge.key)})}function On(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Me.map(_n)}function ae(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],Fe=0,Ee=Ge.length,Pe=On(Me),_e=On(Ge);Pe.forEach(function(Ve){for(var We=!1,Ze=Fe;Ze1});return ze.forEach(function(Ve){Ye=Ye.filter(function(We){var Ze=We.key,pt=We.status;return Ze!==Ve||pt!==en}),Ye.forEach(function(We){We.key===Ve&&(We.status=$t)})}),Ye}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $(Me){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:li,Ye=function(Fe){Object(x.a)(Pe,Fe);var Ee=Object(y.a)(Pe);function Pe(){var _e;return Object(k.a)(this,Pe),_e=Ee.apply(this,arguments),_e.state={keyEntities:[]},_e.removeKey=function(je){_e.setState(function(ze){var Ve=ze.keyEntities;return{keyEntities:Ve.map(function(We){return We.key!==je?We:Object(P.a)(Object(P.a)({},We),{},{status:Cn})})}})},_e}return Object(O.a)(Pe,[{key:"render",value:function(){var je=this,ze=this.state.keyEntities,Ve=this.props,We=Ve.component,Ze=Ve.children,pt=Ve.onVisibleChanged,kt=Object(T.a)(Ve,["component","children","onVisibleChanged"]),jt=We||p.Fragment,Yt={};return z.forEach(function(Ir){Yt[Ir]=kt[Ir],delete kt[Ir]}),delete kt.keys,p.createElement(jt,kt,ze.map(function(Ir){var Qr=Ir.status,$r=Object(T.a)(Ir,["status"]),nn=Qr===wt||Qr===$t;return p.createElement(Ge,Object(f.a)({},Yt,{key:$r.key,visible:nn,eventProps:$r,onVisibleChanged:function(sn){pt==null||pt(sn,{key:$r.key}),sn||je.removeKey($r.key)}}),Ze)}))}}],[{key:"getDerivedStateFromProps",value:function(je,ze){var Ve=je.keys,We=ze.keyEntities,Ze=On(Ve),pt=ae(We,Ze);return{keyEntities:pt.filter(function(kt){var jt=We.find(function(Yt){var Ir=Yt.key;return kt.key===Ir});return!(jt&&jt.status===Cn&&kt.status===en)})}}}]),Pe}(p.Component);return Ye.defaultProps={component:"div"},Ye}var ie=$(Ut),de=li;function se(Me){var Ge=Me.prefixCls,Ye=Me.motion,Fe=Me.animation,Ee=Me.transitionName;return Ye||(Fe?{motionName:"".concat(Ge,"-").concat(Fe)}:Ee?{motionName:Ee}:null)}function Ke(Me){var Ge=Me.prefixCls,Ye=Me.visible,Fe=Me.zIndex,Ee=Me.mask,Pe=Me.maskMotion,_e=Me.maskAnimation,je=Me.maskTransitionName;if(!Ee)return null;var ze={};return(Pe||je||_e)&&(ze=Object(P.a)({motionAppear:!0},se({motion:Pe,prefixCls:Ge,transitionName:je,animation:_e}))),p.createElement(de,Object(f.a)({},ze,{visible:Ye,removeOnLeave:!0}),function(Ve){var We=Ve.className;return p.createElement("div",{style:{zIndex:Fe},className:S()("".concat(Ge,"-mask"),We)})})}var Rt=D("9mu1"),Vt=D("o0o1"),Er=D.n(Vt),Lt=D("HaE+"),zr=["measure","align",null,"motion"],Br=function(Me,Ge){var Ye=Object(p.useState)(null),Fe=Object(g.a)(Ye,2),Ee=Fe[0],Pe=Fe[1],_e=Object(p.useRef)(),je=Object(p.useRef)(!1);function ze(Ze){je.current||Pe(Ze)}function Ve(){at.a.cancel(_e.current)}function We(Ze){Ve(),_e.current=Object(at.a)(function(){ze(function(pt){switch(Ee){case"align":return"motion";case"motion":return"stable";default:}return pt}),Ze==null||Ze()})}return Object(p.useEffect)(function(){ze("measure")},[Me]),Object(p.useEffect)(function(){switch(Ee){case"measure":Ge();break;default:}Ee&&(_e.current=Object(at.a)(Object(Lt.a)(Er.a.mark(function Ze(){var pt,kt;return Er.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:pt=zr.indexOf(Ee),kt=zr[pt+1],kt&&pt!==-1&&ze(kt);case 3:case"end":return Yt.stop()}},Ze)}))))},[Ee]),Object(p.useEffect)(function(){return function(){je.current=!0,Ve()}},[]),[Ee,We]},En=function(Me){var Ge=p.useState({width:0,height:0}),Ye=Object(g.a)(Ge,2),Fe=Ye[0],Ee=Ye[1];function Pe(je){Ee({width:je.offsetWidth,height:je.offsetHeight})}var _e=p.useMemo(function(){var je={};if(Me){var ze=Fe.width,Ve=Fe.height;Me.indexOf("height")!==-1&&Ve?je.height=Ve:Me.indexOf("minHeight")!==-1&&Ve&&(je.minHeight=Ve),Me.indexOf("width")!==-1&&ze?je.width=ze:Me.indexOf("minWidth")!==-1&&ze&&(je.minWidth=ze)}return je},[Me,Fe]);return[_e,Pe]},ui=p.forwardRef(function(Me,Ge){var Ye=Me.visible,Fe=Me.prefixCls,Ee=Me.className,Pe=Me.style,_e=Me.children,je=Me.zIndex,ze=Me.stretch,Ve=Me.destroyPopupOnHide,We=Me.forceRender,Ze=Me.align,pt=Me.point,kt=Me.getRootDomNode,jt=Me.getClassNameFromAlign,Yt=Me.onAlign,Ir=Me.onMouseEnter,Qr=Me.onMouseLeave,$r=Me.onMouseDown,nn=Me.onTouchStart,Kr=Object(p.useRef)(),sn=Object(p.useRef)(),ln=Object(p.useState)(),xn=Object(g.a)(ln,2),hn=xn[0],jn=xn[1],pn=En(ze),jr=Object(g.a)(pn,2),Wr=jr[0],dn=jr[1];function bn(){ze&&dn(kt())}var Tr=Br(Ye,bn),Sn=Object(g.a)(Tr,2),Yn=Sn[0],Rn=Sn[1],Wn=Object(p.useRef)();function Dn(){return pt||kt}function ti(){var Hn;(Hn=Kr.current)===null||Hn===void 0||Hn.forceAlign()}function ci(Hn,zn){var Qn=jt(zn);hn!==Qn&&jn(Qn),Yn==="align"&&(hn!==Qn?Promise.resolve().then(function(){ti()}):Rn(function(){var Vn;(Vn=Wn.current)===null||Vn===void 0||Vn.call(Wn)}),Yt==null||Yt(Hn,zn))}var Jn=Object(P.a)({},se(Me));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Hn){var zn=Jn[Hn];Jn[Hn]=function(Qn,Vn){return Rn(),zn==null?void 0:zn(Qn,Vn)}});function gi(){return new Promise(function(Hn){Wn.current=Hn})}p.useEffect(function(){!Jn.motionName&&Yn==="motion"&&Rn()},[Jn.motionName,Yn]),p.useImperativeHandle(Ge,function(){return{forceAlign:ti,getElement:function(){return sn.current}}});var Xi=Object(P.a)(Object(P.a)({},Wr),{},{zIndex:je,opacity:Yn==="motion"||Yn==="stable"||!Ye?void 0:0,pointerEvents:Yn==="stable"?void 0:"none"},Pe),Oi=!0;(Ze==null?void 0:Ze.points)&&(Yn==="align"||Yn==="stable")&&(Oi=!1);var di=_e;return p.Children.count(_e)>1&&(di=p.createElement("div",{className:"".concat(Fe,"-content")},_e)),p.createElement(de,Object(f.a)({visible:Ye,ref:sn,leavedClassName:"".concat(Fe,"-hidden")},Jn,{onAppearPrepare:gi,onEnterPrepare:gi,removeOnLeave:Ve,forceRender:We}),function(Hn,zn){var Qn=Hn.className,Vn=Hn.style,ii=S()(Fe,Ee,hn,Qn);return p.createElement(Rt.a,{target:Dn(),key:"popup",ref:Kr,monitorWindowResize:!0,disabled:Oi,align:Ze,onAlign:ci},p.createElement("div",{ref:zn,className:ii,onMouseEnter:Ir,onMouseLeave:Qr,onMouseDownCapture:$r,onTouchStartCapture:nn,style:Object(P.a)(Object(P.a)({},Vn),Xi)},di))})});ui.displayName="PopupInner";var Ei=ui,In=p.forwardRef(function(Me,Ge){var Ye=Me.prefixCls,Fe=Me.visible,Ee=Me.zIndex,Pe=Me.children,_e=Me.mobile;_e=_e===void 0?{}:_e;var je=_e.popupClassName,ze=_e.popupStyle,Ve=_e.popupMotion,We=Ve===void 0?{}:Ve,Ze=_e.popupRender,pt=p.useRef();p.useImperativeHandle(Ge,function(){return{forceAlign:function(){},getElement:function(){return pt.current}}});var kt=Object(P.a)({zIndex:Ee},ze),jt=Pe;return p.Children.count(Pe)>1&&(jt=p.createElement("div",{className:"".concat(Ye,"-content")},Pe)),Ze&&(jt=Ze(jt)),p.createElement(de,Object(f.a)({visible:Fe,ref:pt,removeOnLeave:!0},We),function(Yt,Ir){var Qr=Yt.className,$r=Yt.style,nn=S()(Ye,je,Qr);return p.createElement("div",{ref:Ir,className:nn,style:Object(P.a)(Object(P.a)({},$r),kt)},jt)})});In.displayName="MobilePopupInner";var Li=In,qi=["visible","mobile"],ni=p.forwardRef(function(Me,Ge){var Ye=Me.visible,Fe=Me.mobile,Ee=Object(T.a)(Me,qi),Pe=Object(p.useState)(Ye),_e=Object(g.a)(Pe,2),je=_e[0],ze=_e[1],Ve=Object(p.useState)(!1),We=Object(g.a)(Ve,2),Ze=We[0],pt=We[1],kt=Object(P.a)(Object(P.a)({},Ee),{},{visible:je});Object(p.useEffect)(function(){ze(Ye),Ye&&Fe&&pt(Ue())},[Ye,Fe]);var jt=Ze?p.createElement(Li,Object(f.a)({},kt,{mobile:Fe,ref:Ge})):p.createElement(Ei,Object(f.a)({},kt,{ref:Ge}));return p.createElement("div",null,p.createElement(Ke,kt),jt)});ni.displayName="Popup";var Ti=ni,xi=p.createContext(null),Fi=xi;function Ci(){}function Gi(){return""}function Mi(Me){return Me?Me.ownerDocument:window.document}var oa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function sa(Me){var Ge=function(Ye){Object(x.a)(Ee,Ye);var Fe=Object(y.a)(Ee);function Ee(Pe){var _e;Object(k.a)(this,Ee),_e=Fe.call(this,Pe),_e.popupRef=p.createRef(),_e.triggerRef=p.createRef(),_e.attachId=void 0,_e.clickOutsideHandler=void 0,_e.touchOutsideHandler=void 0,_e.contextMenuOutsideHandler1=void 0,_e.contextMenuOutsideHandler2=void 0,_e.mouseDownTimeout=void 0,_e.focusTime=void 0,_e.preClickTime=void 0,_e.preTouchTime=void 0,_e.delayTimer=void 0,_e.hasPopupMouseDown=void 0,_e.onMouseEnter=function(ze){var Ve=_e.props.mouseEnterDelay;_e.fireEvents("onMouseEnter",ze),_e.delaySetPopupVisible(!0,Ve,Ve?null:ze)},_e.onMouseMove=function(ze){_e.fireEvents("onMouseMove",ze),_e.setPoint(ze)},_e.onMouseLeave=function(ze){_e.fireEvents("onMouseLeave",ze),_e.delaySetPopupVisible(!1,_e.props.mouseLeaveDelay)},_e.onPopupMouseEnter=function(){_e.clearDelayTimer()},_e.onPopupMouseLeave=function(ze){var Ve;if(ze.relatedTarget&&!ze.relatedTarget.setTimeout&&Object(ct.a)((Ve=_e.popupRef.current)===null||Ve===void 0?void 0:Ve.getElement(),ze.relatedTarget))return;_e.delaySetPopupVisible(!1,_e.props.mouseLeaveDelay)},_e.onFocus=function(ze){_e.fireEvents("onFocus",ze),_e.clearDelayTimer(),_e.isFocusToShow()&&(_e.focusTime=Date.now(),_e.delaySetPopupVisible(!0,_e.props.focusDelay))},_e.onMouseDown=function(ze){_e.fireEvents("onMouseDown",ze),_e.preClickTime=Date.now()},_e.onTouchStart=function(ze){_e.fireEvents("onTouchStart",ze),_e.preTouchTime=Date.now()},_e.onBlur=function(ze){_e.fireEvents("onBlur",ze),_e.clearDelayTimer(),_e.isBlurToHide()&&_e.delaySetPopupVisible(!1,_e.props.blurDelay)},_e.onContextMenu=function(ze){ze.preventDefault(),_e.fireEvents("onContextMenu",ze),_e.setPopupVisible(!0,ze)},_e.onContextMenuClose=function(){_e.isContextMenuToShow()&&_e.close()},_e.onClick=function(ze){if(_e.fireEvents("onClick",ze),_e.focusTime){var Ve;if(_e.preClickTime&&_e.preTouchTime?Ve=Math.min(_e.preClickTime,_e.preTouchTime):_e.preClickTime?Ve=_e.preClickTime:_e.preTouchTime&&(Ve=_e.preTouchTime),Math.abs(Ve-_e.focusTime)<20)return;_e.focusTime=0}_e.preClickTime=0,_e.preTouchTime=0,_e.isClickToShow()&&(_e.isClickToHide()||_e.isBlurToHide())&&ze&&ze.preventDefault&&ze.preventDefault();var We=!_e.state.popupVisible;(_e.isClickToHide()&&!We||We&&_e.isClickToShow())&&_e.setPopupVisible(!_e.state.popupVisible,ze)},_e.onPopupMouseDown=function(){if(_e.hasPopupMouseDown=!0,clearTimeout(_e.mouseDownTimeout),_e.mouseDownTimeout=window.setTimeout(function(){_e.hasPopupMouseDown=!1},0),_e.context){var ze;(ze=_e.context).onPopupMouseDown.apply(ze,arguments)}},_e.onDocumentClick=function(ze){if(_e.props.mask&&!_e.props.maskClosable)return;var Ve=ze.target,We=_e.getRootDomNode(),Ze=_e.getPopupDomNode();(!Object(ct.a)(We,Ve)||_e.isContextMenuOnly())&&!Object(ct.a)(Ze,Ve)&&!_e.hasPopupMouseDown&&_e.close()},_e.getRootDomNode=function(){var ze=_e.props.getTriggerDOMNode;if(ze)return ze(_e.triggerRef.current);try{var Ve=Object(ht.a)(_e.triggerRef.current);if(Ve)return Ve}catch(We){}return nt.a.findDOMNode(Object(C.a)(_e))},_e.getPopupClassNameFromAlign=function(ze){var Ve=[],We=_e.props,Ze=We.popupPlacement,pt=We.builtinPlacements,kt=We.prefixCls,jt=We.alignPoint,Yt=We.getPopupClassNameFromAlign;return Ze&&pt&&Ve.push(lt(pt,kt,ze,jt)),Yt&&Ve.push(Yt(ze)),Ve.join(" ")},_e.getComponent=function(){var ze=_e.props,Ve=ze.prefixCls,We=ze.destroyPopupOnHide,Ze=ze.popupClassName,pt=ze.onPopupAlign,kt=ze.popupMotion,jt=ze.popupAnimation,Yt=ze.popupTransitionName,Ir=ze.popupStyle,Qr=ze.mask,$r=ze.maskAnimation,nn=ze.maskTransitionName,Kr=ze.maskMotion,sn=ze.zIndex,ln=ze.popup,xn=ze.stretch,hn=ze.alignPoint,jn=ze.mobile,pn=ze.forceRender,jr=_e.state,Wr=jr.popupVisible,dn=jr.point,bn=_e.getPopupAlign(),Tr={};return _e.isMouseEnterToShow()&&(Tr.onMouseEnter=_e.onPopupMouseEnter),_e.isMouseLeaveToHide()&&(Tr.onMouseLeave=_e.onPopupMouseLeave),Tr.onMouseDown=_e.onPopupMouseDown,Tr.onTouchStart=_e.onPopupMouseDown,p.createElement(Ti,Object(f.a)({prefixCls:Ve,destroyPopupOnHide:We,visible:Wr,point:hn&&dn,className:Ze,align:bn,onAlign:pt,animation:jt,getClassNameFromAlign:_e.getPopupClassNameFromAlign},Tr,{stretch:xn,getRootDomNode:_e.getRootDomNode,style:Ir,mask:Qr,zIndex:sn,transitionName:Yt,maskAnimation:$r,maskTransitionName:nn,maskMotion:Kr,ref:_e.popupRef,motion:kt,mobile:jn,forceRender:pn}),typeof ln=="function"?ln():ln)},_e.attachParent=function(ze){at.a.cancel(_e.attachId);var Ve=_e.props,We=Ve.getPopupContainer,Ze=Ve.getDocument,pt=_e.getRootDomNode(),kt;We?(pt||We.length===0)&&(kt=We(pt)):kt=Ze(_e.getRootDomNode()).body,kt?kt.appendChild(ze):_e.attachId=Object(at.a)(function(){_e.attachParent(ze)})},_e.getContainer=function(){var ze=_e.props.getDocument,Ve=ze(_e.getRootDomNode()).createElement("div");return Ve.style.position="absolute",Ve.style.top="0",Ve.style.left="0",Ve.style.width="100%",_e.attachParent(Ve),Ve},_e.setPoint=function(ze){var Ve=_e.props.alignPoint;if(!Ve||!ze)return;_e.setState({point:{pageX:ze.pageX,pageY:ze.pageY}})},_e.handlePortalUpdate=function(){_e.state.prevPopupVisible!==_e.state.popupVisible&&_e.props.afterPopupVisibleChange(_e.state.popupVisible)},_e.triggerContextValue={onPopupMouseDown:_e.onPopupMouseDown};var je;return"popupVisible"in Pe?je=!!Pe.popupVisible:je=!!Pe.defaultPopupVisible,_e.state={prevPopupVisible:je,popupVisible:je},oa.forEach(function(ze){_e["fire".concat(ze)]=function(Ve){_e.fireEvents(ze,Ve)}}),_e}return Object(O.a)(Ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _e=this.props,je=this.state;if(je.popupVisible){var ze;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ze=_e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Re.a)(ze,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ze=ze||_e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Re.a)(ze,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ze=ze||_e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Re.a)(ze,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Re.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),at.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var _e;return((_e=this.popupRef.current)===null||_e===void 0?void 0:_e.getElement())||null}},{key:"getPopupAlign",value:function(){var _e=this.props,je=_e.popupPlacement,ze=_e.popupAlign,Ve=_e.builtinPlacements;return je&&Ve?Qe(Ve,je,ze):ze}},{key:"setPopupVisible",value:function(_e,je){var ze=this.props.alignPoint,Ve=this.state.popupVisible;this.clearDelayTimer(),Ve!==_e&&("popupVisible"in this.props||this.setState({popupVisible:_e,prevPopupVisible:Ve}),this.props.onPopupVisibleChange(_e)),ze&&je&&_e&&this.setPoint(je)}},{key:"delaySetPopupVisible",value:function(_e,je,ze){var Ve=this,We=je*1e3;if(this.clearDelayTimer(),We){var Ze=ze?{pageX:ze.pageX,pageY:ze.pageY}:null;this.delayTimer=window.setTimeout(function(){Ve.setPopupVisible(_e,Ze),Ve.clearDelayTimer()},We)}else this.setPopupVisible(_e,ze)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(_e){var je=this.props.children.props,ze=this.props;return je[_e]&&ze[_e]?this["fire".concat(_e)]:je[_e]||ze[_e]}},{key:"isClickToShow",value:function(){var _e=this.props,je=_e.action,ze=_e.showAction;return je.indexOf("click")!==-1||ze.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var _e=this.props.action;return _e==="contextMenu"||_e.length===1&&_e[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var _e=this.props,je=_e.action,ze=_e.showAction;return je.indexOf("contextMenu")!==-1||ze.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var _e=this.props,je=_e.action,ze=_e.hideAction;return je.indexOf("click")!==-1||ze.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var _e=this.props,je=_e.action,ze=_e.showAction;return je.indexOf("hover")!==-1||ze.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var _e=this.props,je=_e.action,ze=_e.hideAction;return je.indexOf("hover")!==-1||ze.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var _e=this.props,je=_e.action,ze=_e.showAction;return je.indexOf("focus")!==-1||ze.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var _e=this.props,je=_e.action,ze=_e.hideAction;return je.indexOf("focus")!==-1||ze.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var _e;(_e=this.popupRef.current)===null||_e===void 0||_e.forceAlign()}}},{key:"fireEvents",value:function(_e,je){var ze=this.props.children.props[_e];ze&&ze(je);var Ve=this.props[_e];Ve&&Ve(je)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var _e=this.state.popupVisible,je=this.props,ze=je.children,Ve=je.forceRender,We=je.alignPoint,Ze=je.className,pt=je.autoDestroy,kt=p.Children.only(ze),jt={key:"trigger"};this.isContextMenuToShow()?jt.onContextMenu=this.onContextMenu:jt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(jt.onClick=this.onClick,jt.onMouseDown=this.onMouseDown,jt.onTouchStart=this.onTouchStart):(jt.onClick=this.createTwoChains("onClick"),jt.onMouseDown=this.createTwoChains("onMouseDown"),jt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(jt.onMouseEnter=this.onMouseEnter,We&&(jt.onMouseMove=this.onMouseMove)):jt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?jt.onMouseLeave=this.onMouseLeave:jt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(jt.onFocus=this.onFocus,jt.onBlur=this.onBlur):(jt.onFocus=this.createTwoChains("onFocus"),jt.onBlur=this.createTwoChains("onBlur"));var Yt=S()(kt&&kt.props&&kt.props.className,Ze);Yt&&(jt.className=Yt);var Ir=Object(P.a)({},jt);Object(He.c)(kt)&&(Ir.ref=Object(He.a)(this.triggerRef,kt.ref));var Qr=p.cloneElement(kt,Ir),$r;return(_e||this.popupRef.current||Ve)&&($r=p.createElement(Me,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!_e&&pt&&($r=null),p.createElement(Fi.Provider,{value:this.triggerContextValue},Qr,$r)}}],[{key:"getDerivedStateFromProps",value:function(_e,je){var ze=_e.popupVisible,Ve={};return ze!==void 0&&je.popupVisible!==ze&&(Ve.popupVisible=ze,Ve.prevPopupVisible=je.popupVisible),Ve}}]),Ee}(p.Component);return Ge.contextType=Fi,Ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Gi,getDocument:Mi,onPopupVisibleChange:Ci,afterPopupVisibleChange:Ci,onPopupAlign:Ci,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ge}var Ii=sa(tt.a),qn={adjustX:1,adjustY:1},Vi={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},ta={topLeft:{points:["bl","tl"],overflow:qn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:qn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:qn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:qn,offset:[4,0]}},Tt=Vi,it=0,mt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ct=function(Ge,Ye,Fe){var Ee=q(Ye),Pe=Ge.getState();Ge.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},Pe.defaultActiveFirst),{},Object(L.a)({},Ee,Fe))})},It=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(Fe){var Ee;Object(k.a)(this,Ye),Ee=Ge.call(this,Fe),Ee.onDestroy=function(We){Ee.props.onDestroy(We)},Ee.onKeyDown=function(We){var Ze=We.keyCode,pt=Ee.menuInstance,kt=Ee.props.store,jt=Ee.getVisible();if(Ze===m.a.ENTER)return Ee.onTitleClick(We),Ct(kt,Ee.props.eventKey,!0),!0;if(Ze===m.a.RIGHT)return jt?pt.onKeyDown(We):(Ee.triggerOpenChange(!0),Ct(kt,Ee.props.eventKey,!0)),!0;if(Ze===m.a.LEFT){var Yt;if(jt)Yt=pt.onKeyDown(We);else return;return Yt||(Ee.triggerOpenChange(!1),Yt=!0),Yt}return jt&&(Ze===m.a.UP||Ze===m.a.DOWN)?pt.onKeyDown(We):void 0},Ee.onOpenChange=function(We){Ee.props.onOpenChange(We)},Ee.onPopupVisibleChange=function(We){Ee.triggerOpenChange(We,We?"mouseenter":"mouseleave")},Ee.onMouseEnter=function(We){var Ze=Ee.props,pt=Ze.eventKey,kt=Ze.onMouseEnter,jt=Ze.store;Ct(jt,Ee.props.eventKey,!1),kt({key:pt,domEvent:We})},Ee.onMouseLeave=function(We){var Ze=Ee.props,pt=Ze.parentMenu,kt=Ze.eventKey,jt=Ze.onMouseLeave;pt.subMenuInstance=Object(C.a)(Ee),jt({key:kt,domEvent:We})},Ee.onTitleMouseEnter=function(We){var Ze=Ee.props,pt=Ze.eventKey,kt=Ze.onItemHover,jt=Ze.onTitleMouseEnter;kt({key:pt,hover:!0}),jt({key:pt,domEvent:We})},Ee.onTitleMouseLeave=function(We){var Ze=Ee.props,pt=Ze.parentMenu,kt=Ze.eventKey,jt=Ze.onItemHover,Yt=Ze.onTitleMouseLeave;pt.subMenuInstance=Object(C.a)(Ee),jt({key:kt,hover:!1}),Yt({key:kt,domEvent:We})},Ee.onTitleClick=function(We){var Ze=Object(C.a)(Ee),pt=Ze.props;if(pt.onTitleClick({key:pt.eventKey,domEvent:We}),pt.triggerSubMenuAction==="hover")return;Ee.triggerOpenChange(!Ee.getVisible(),"click"),Ct(pt.store,Ee.props.eventKey,!1)},Ee.onSubMenuClick=function(We){typeof Ee.props.onClick=="function"&&Ee.props.onClick(Ee.addKeyPath(We))},Ee.onSelect=function(We){Ee.props.onSelect(We)},Ee.onDeselect=function(We){Ee.props.onDeselect(We)},Ee.getPrefixCls=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu")},Ee.getActiveClassName=function(){return"".concat(Ee.getPrefixCls(),"-active")},Ee.getDisabledClassName=function(){return"".concat(Ee.getPrefixCls(),"-disabled")},Ee.getSelectedClassName=function(){return"".concat(Ee.getPrefixCls(),"-selected")},Ee.getOpenClassName=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu-open")},Ee.getVisible=function(){return Ee.state.isOpen},Ee.getMode=function(){return Ee.state.mode},Ee.saveMenuInstance=function(We){Ee.menuInstance=We},Ee.addKeyPath=function(We){return Object(P.a)(Object(P.a)({},We),{},{keyPath:(We.keyPath||[]).concat(Ee.props.eventKey)})},Ee.triggerOpenChange=function(We,Ze){var pt=Ee.props.eventKey,kt=function(){Ee.onOpenChange({key:pt,item:Object(C.a)(Ee),trigger:Ze,open:We})};Ze==="mouseenter"?Ee.mouseenterTimeout=setTimeout(function(){kt()},0):kt()},Ee.isChildrenSelected=function(){var We={find:!1};return V(Ee.props.children,Ee.props.selectedKeys,We),We.find},Ee.isInlineMode=function(){return Ee.getMode()==="inline"},Ee.adjustWidth=function(){if(!Ee.subMenuTitle||!Ee.menuInstance)return;var We=rt.findDOMNode(Ee.menuInstance);if(We.offsetWidth>=Ee.subMenuTitle.offsetWidth)return;We.style.minWidth="".concat(Ee.subMenuTitle.offsetWidth,"px")},Ee.saveSubMenuTitle=function(We){Ee.subMenuTitle=We},Ee.getBaseProps=function(){var We=Object(C.a)(Ee),Ze=We.props,pt=Ee.getMode();return{mode:pt==="horizontal"?"vertical":pt,visible:Ee.getVisible(),level:Ze.level+1,inlineIndent:Ze.inlineIndent,focusable:!1,onClick:Ee.onSubMenuClick,onSelect:Ee.onSelect,onDeselect:Ee.onDeselect,onDestroy:Ee.onDestroy,selectedKeys:Ze.selectedKeys,eventKey:"".concat(Ze.eventKey,"-menu-"),openKeys:Ze.openKeys,motion:Ze.motion,onOpenChange:Ee.onOpenChange,subMenuOpenDelay:Ze.subMenuOpenDelay,parentMenu:Object(C.a)(Ee),subMenuCloseDelay:Ze.subMenuCloseDelay,forceSubMenuRender:Ze.forceSubMenuRender,triggerSubMenuAction:Ze.triggerSubMenuAction,builtinPlacements:Ze.builtinPlacements,defaultActiveFirst:Ze.store.getState().defaultActiveFirst[q(Ze.eventKey)],multiple:Ze.multiple,prefixCls:Ze.rootPrefixCls,id:Ee.internalMenuId,manualRef:Ee.saveMenuInstance,itemIcon:Ze.itemIcon,expandIcon:Ze.expandIcon,direction:Ze.direction}},Ee.getMotion=function(We,Ze){var pt=Object(C.a)(Ee),kt=pt.haveRendered,jt=Ee.props,Yt=jt.motion,Ir=jt.rootPrefixCls,Qr=Object(P.a)(Object(P.a)({},Yt),{},{leavedClassName:"".concat(Ir,"-hidden"),removeOnLeave:!1,motionAppear:kt||!Ze||We!=="inline"});return Qr};var Pe=Fe.store,_e=Fe.eventKey,je=Pe.getState(),ze=je.defaultActiveFirst;Ee.isRootMenu=!1;var Ve=!1;return ze&&(Ve=ze[_e]),Ct(Pe,_e,Ve),Ee.state={mode:Fe.mode,isOpen:Fe.isOpen},Ee}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ee=this,Pe=this.props,_e=Pe.mode,je=Pe.parentMenu,ze=Pe.manualRef,Ve=Pe.isOpen,We=function(){Ee.setState({mode:_e,isOpen:Ve})},Ze=Ve!==this.state.isOpen,pt=_e!==this.state.mode;if((pt||Ze)&&(at.a.cancel(this.updateStateRaf),pt?this.updateStateRaf=Object(at.a)(We):We()),ze&&ze(this),_e!=="horizontal"||!(je==null?void 0:je.isRootMenu)||!Ve)return;this.minWidthTimeout=setTimeout(function(){return Ee.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ee=this.props,Pe=Ee.onDestroy,_e=Ee.eventKey;Pe&&Pe(_e),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),at.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Ee,Pe){var _e=this.getBaseProps();return p.createElement(Lr,Object(f.a)({},_e,{id:this.internalMenuId,className:Ee,style:Pe}),this.props.children)}},{key:"renderChildren",value:function(){var Ee=this,Pe=this.getBaseProps(),_e=Pe.mode,je=Pe.visible,ze=Pe.forceSubMenuRender,Ve=Pe.direction,We=this.getMotion(_e,je);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||je||ze,!this.haveOpened)return p.createElement("div",null);var Ze=S()("".concat(Pe.prefixCls,"-sub"),Object(L.a)({},"".concat(Pe.prefixCls,"-rtl"),Ve==="rtl"));return this.isInlineMode()?p.createElement(de,Object(f.a)({visible:Pe.visible,forceRender:ze},We),function(pt){var kt=pt.className,jt=pt.style,Yt=S()(Ze,kt);return Ee.renderPopupMenu(Yt,jt)}):this.renderPopupMenu(Ze)}},{key:"render",value:function(){var Ee,Pe,_e,je=Object(P.a)({},this.props),ze=this.getVisible(),Ve=this.getPrefixCls(),We=this.isInlineMode(),Ze=this.getMode(),pt=S()(Ve,"".concat(Ve,"-").concat(Ze),(Ee={},Object(L.a)(Ee,je.className,!!je.className),Object(L.a)(Ee,this.getOpenClassName(),ze),Object(L.a)(Ee,this.getActiveClassName(),je.active||ze&&!We),Object(L.a)(Ee,this.getDisabledClassName(),je.disabled),Object(L.a)(Ee,this.getSelectedClassName(),this.isChildrenSelected()),Ee));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(it+=1,this.internalMenuId="$__$".concat(it,"$Menu")));var kt={},jt={},Yt={};je.disabled||(kt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},jt={onClick:this.onTitleClick},Yt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ir={},Qr=je.direction,$r=Qr==="rtl";We&&($r?Ir.paddingRight=je.inlineIndent*je.level:Ir.paddingLeft=je.inlineIndent*je.level);var nn={};this.getVisible()&&(nn={"aria-owns":this.internalMenuId});var Kr=null;Ze!=="horizontal"&&(Kr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Kr=p.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var sn=p.createElement("div",Object(f.a)({ref:this.saveSubMenuTitle,style:Ir,className:"".concat(Ve,"-title"),role:"button"},Yt,jt,{"aria-expanded":ze},nn,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,Kr||p.createElement("i",{className:"".concat(Ve,"-arrow")})),ln=this.renderChildren(),xn=((Pe=je.parentMenu)===null||Pe===void 0?void 0:Pe.isRootMenu)?je.parentMenu.props.getPopupContainer:function(Dn){return Dn.parentNode},hn=mt[Ze],jn=je.popupOffset?{offset:je.popupOffset}:{},pn=S()((_e={},Object(L.a)(_e,je.popupClassName,je.popupClassName&&!We),Object(L.a)(_e,"".concat(Ve,"-rtl"),$r),_e)),jr=je.disabled,Wr=je.triggerSubMenuAction,dn=je.subMenuOpenDelay,bn=je.forceSubMenuRender,Tr=je.subMenuCloseDelay,Sn=je.builtinPlacements;Z.forEach(function(Dn){return delete je[Dn]}),delete je.onClick;var Yn=$r?Object(P.a)(Object(P.a)({},ta),Sn):Object(P.a)(Object(P.a)({},Vi),Sn);delete je.direction;var Rn=this.getBaseProps(),Wn=We?null:this.getMotion(Rn.mode,Rn.visible);return p.createElement("li",Object(f.a)({},je,kt,{className:pt,role:"menuitem"}),p.createElement(Ii,{prefixCls:Ve,popupClassName:S()("".concat(Ve,"-popup"),pn),getPopupContainer:xn,builtinPlacements:Yn,popupPlacement:hn,popupVisible:We?!1:ze,popupAlign:jn,popup:We?null:ln,action:jr||We?[]:[Wr],mouseEnterDelay:dn,mouseLeaveDelay:Tr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:bn,popupMotion:Wn},sn),We?ln:null)}}]),Ye}(p.Component);It.defaultProps={onMouseEnter:te,onMouseLeave:te,onTitleMouseEnter:te,onTitleMouseLeave:te,onTitleClick:te,manualRef:te,mode:"vertical",title:""};var Pt=Object(_.b)(function(Me,Ge){var Ye=Me.openKeys,Fe=Me.activeKey,Ee=Me.selectedKeys,Pe=Ge.eventKey,_e=Ge.subMenuKey;return{isOpen:Ye.indexOf(Pe)>-1,active:Fe[_e]===Pe,selectedKeys:Ee}})(It);Pt.isSubMenu=!0;var Ht=Pt,Wt="menuitem-overflowed",dt=.5,At=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){var Fe;return Object(k.a)(this,Ye),Fe=Ge.apply(this,arguments),Fe.resizeObserver=null,Fe.mutationObserver=null,Fe.originalTotalWidth=0,Fe.overflowedItems=[],Fe.menuItemSizes=[],Fe.cancelFrameId=null,Fe.state={lastVisibleIndex:void 0},Fe.childRef=p.createRef(),Fe.getMenuItemNodes=function(){var Ee=Fe.props.prefixCls,Pe=Fe.childRef.current;return Pe?[].slice.call(Pe.children).filter(function(_e){return _e.className.split(" ").indexOf("".concat(Ee,"-overflowed-submenu"))<0}):[]},Fe.getOverflowedSubMenuItem=function(Ee,Pe,_e){var je=Fe.props,ze=je.overflowedIndicator,Ve=je.level,We=je.mode,Ze=je.prefixCls,pt=je.theme;if(Ve!==1||We!=="horizontal")return null;var kt=Fe.props.children[0],jt=kt.props,Yt=jt.children,Ir=jt.title,Qr=jt.style,$r=Object(T.a)(jt,["children","title","style"]),nn=Object(P.a)({},Qr),Kr="".concat(Ee,"-overflowed-indicator"),sn="".concat(Ee,"-overflowed-indicator");Pe.length===0&&_e!==!0?nn=Object(P.a)(Object(P.a)({},nn),{},{display:"none"}):_e&&(nn=Object(P.a)(Object(P.a)({},nn),{},{visibility:"hidden",position:"absolute"}),Kr="".concat(Kr,"-placeholder"),sn="".concat(sn,"-placeholder"));var ln=pt?"".concat(Ze,"-").concat(pt):"",xn={};return Z.forEach(function(hn){$r[hn]!==void 0&&(xn[hn]=$r[hn])}),p.createElement(Ht,Object(f.a)({title:ze,className:"".concat(Ze,"-overflowed-submenu"),popupClassName:ln},xn,{key:Kr,eventKey:sn,disabled:!1,style:nn}),Pe)},Fe.setChildrenWidthAndResize=function(){if(Fe.props.mode!=="horizontal")return;var Ee=Fe.childRef.current;if(!Ee)return;var Pe=Ee.children;if(!Pe||Pe.length===0)return;var _e=Ee.children[Pe.length-1];ge(_e,"display","inline-block");var je=Fe.getMenuItemNodes(),ze=je.filter(function(Ve){return Ve.className.split(" ").indexOf(Wt)>=0});ze.forEach(function(Ve){ge(Ve,"display","inline-block")}),Fe.menuItemSizes=je.map(function(Ve){return be(Ve,!0)}),ze.forEach(function(Ve){ge(Ve,"display","none")}),Fe.overflowedIndicatorWidth=be(Ee.children[Ee.children.length-1],!0),Fe.originalTotalWidth=Fe.menuItemSizes.reduce(function(Ve,We){return Ve+We},0),Fe.handleResize(),ge(_e,"display","none")},Fe.handleResize=function(){if(Fe.props.mode!=="horizontal")return;var Ee=Fe.childRef.current;if(!Ee)return;var Pe=be(Ee);Fe.overflowedItems=[];var _e=0,je;Fe.originalTotalWidth>Pe+dt&&(je=-1,Fe.menuItemSizes.forEach(function(ze){_e+=ze,_e+Fe.overflowedIndicatorWidth<=Pe&&(je+=1)})),Fe.setState({lastVisibleIndex:je})},Fe}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){var Ee=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Pe=this.childRef.current;if(!Pe)return;this.resizeObserver=new Je.default(function(_e){_e.forEach(function(){var je=Ee.cancelFrameId;cancelAnimationFrame(je),Ee.cancelFrameId=requestAnimationFrame(Ee.setChildrenWidthAndResize)})}),[].slice.call(Pe.children).concat(Pe).forEach(function(_e){Ee.resizeObserver.observe(_e)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ee.resizeObserver.disconnect(),[].slice.call(Pe.children).concat(Pe).forEach(function(_e){Ee.resizeObserver.observe(_e)}),Ee.setChildrenWidthAndResize()}),this.mutationObserver.observe(Pe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ee){var Pe=this,_e=this.state.lastVisibleIndex;return(Ee||[]).reduce(function(je,ze,Ve){var We=ze;if(Pe.props.mode==="horizontal"){var Ze=Pe.getOverflowedSubMenuItem(ze.props.eventKey,[]);_e!==void 0&&Pe.props.className.indexOf("".concat(Pe.props.prefixCls,"-root"))!==-1&&(Ve>_e&&(We=p.cloneElement(ze,{style:{display:"none"},eventKey:"".concat(ze.props.eventKey,"-hidden"),className:"".concat(Wt)})),Ve===_e+1&&(Pe.overflowedItems=Ee.slice(_e+1).map(function(kt){return p.cloneElement(kt,{key:kt.props.eventKey,mode:"vertical-left"})}),Ze=Pe.getOverflowedSubMenuItem(ze.props.eventKey,Pe.overflowedItems)));var pt=[].concat(Object(l.a)(je),[Ze,We]);return Ve===Ee.length-1&&pt.push(Pe.getOverflowedSubMenuItem(ze.props.eventKey,[],!0)),pt}return[].concat(Object(l.a)(je),[We])},[])}},{key:"render",value:function(){var Ee=this.props,Pe=Ee.visible,_e=Ee.prefixCls,je=Ee.overflowedIndicator,ze=Ee.mode,Ve=Ee.level,We=Ee.tag,Ze=Ee.children,pt=Ee.theme,kt=Object(T.a)(Ee,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),jt=We;return p.createElement(jt,Object(f.a)({ref:this.childRef},kt),this.renderChildren(Ze))}}]),Ye}(p.Component);At.defaultProps={tag:"div",className:""};var Dt=At;function yr(Me){return Me.length?Me.every(function(Ge){return!!Ge.props.disabled}):!0}function tr(Me,Ge,Ye){var Fe=Me.getState();Me.setState({activeKey:Object(P.a)(Object(P.a)({},Fe.activeKey),{},Object(L.a)({},Ge,Ye))})}function qt(Me){return Me.eventKey||"0-menu-"}function Gt(Me,Ge){var Ye=Ge,Fe=Me.children,Ee=Me.eventKey;if(Ye){var Pe;if(Q(Fe,function(_e,je){_e&&_e.props&&!_e.props.disabled&&Ye===ce(_e,Ee,je)&&(Pe=!0)}),Pe)return Ye}return Ye=null,Me.defaultActiveFirst&&Q(Fe,function(_e,je){!Ye&&_e&&!_e.props.disabled&&(Ye=ce(_e,Ee,je))}),Ye}function nr(Me){if(!Me)return;var Ge=this.instanceArray.indexOf(Me);Ge!==-1?this.instanceArray[Ge]=Me:this.instanceArray.push(Me)}var cr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(Fe){var Ee;return Object(k.a)(this,Ye),Ee=Ge.call(this,Fe),Ee.onKeyDown=function(Pe,_e){var je=Pe.keyCode,ze;if(Ee.getFlatInstanceArray().forEach(function(We){We&&We.props.active&&We.onKeyDown&&(ze=We.onKeyDown(Pe))}),ze)return 1;var Ve=null;return(je===m.a.UP||je===m.a.DOWN)&&(Ve=Ee.step(je===m.a.UP?-1:1)),Ve?(Pe.preventDefault(),tr(Ee.props.store,qt(Ee.props),Ve.props.eventKey),typeof _e=="function"&&_e(Ve),1):void 0},Ee.onItemHover=function(Pe){var _e=Pe.key,je=Pe.hover;tr(Ee.props.store,qt(Ee.props),je?_e:null)},Ee.onDeselect=function(Pe){Ee.props.onDeselect(Pe)},Ee.onSelect=function(Pe){Ee.props.onSelect(Pe)},Ee.onClick=function(Pe){Ee.props.onClick(Pe)},Ee.onOpenChange=function(Pe){Ee.props.onOpenChange(Pe)},Ee.onDestroy=function(Pe){Ee.props.onDestroy(Pe)},Ee.getFlatInstanceArray=function(){return Ee.instanceArray},Ee.step=function(Pe){var _e=Ee.getFlatInstanceArray(),je=Ee.props.store.getState().activeKey[qt(Ee.props)],ze=_e.length;if(!ze)return null;Pe<0&&(_e=_e.concat().reverse());var Ve=-1;if(_e.every(function(kt,jt){return kt&&kt.props.eventKey===je?(Ve=jt,!1):!0}),!Ee.props.defaultActiveFirst&&Ve!==-1&&yr(_e.slice(Ve,ze-1)))return;var We=(Ve+1)%ze,Ze=We;do{var pt=_e[Ze];if(!pt||pt.props.disabled)Ze=(Ze+1)%ze;else return pt}while(Ze!==We);return null},Ee.renderCommonMenuItem=function(Pe,_e,je){var ze=Ee.props.store.getState(),Ve=Object(C.a)(Ee),We=Ve.props,Ze=ce(Pe,We.eventKey,_e),pt=Pe.props;if(!pt||typeof Pe.type=="string")return Pe;var kt=Ze===ze.activeKey,jt=Object(P.a)(Object(P.a)({mode:pt.mode||We.mode,level:We.level,inlineIndent:We.inlineIndent,renderMenuItem:Ee.renderMenuItem,rootPrefixCls:We.prefixCls,index:_e,parentMenu:We.parentMenu,manualRef:pt.disabled?void 0:Object(I.a)(Pe.ref,nr.bind(Object(C.a)(Ee))),eventKey:Ze,active:!pt.disabled&&kt,multiple:We.multiple,onClick:function(Ir){(pt.onClick||te)(Ir),Ee.onClick(Ir)},onItemHover:Ee.onItemHover,motion:We.motion,subMenuOpenDelay:We.subMenuOpenDelay,subMenuCloseDelay:We.subMenuCloseDelay,forceSubMenuRender:We.forceSubMenuRender,onOpenChange:Ee.onOpenChange,onDeselect:Ee.onDeselect,onSelect:Ee.onSelect,builtinPlacements:We.builtinPlacements,itemIcon:pt.itemIcon||Ee.props.itemIcon,expandIcon:pt.expandIcon||Ee.props.expandIcon},je),{},{direction:We.direction});return(We.mode==="inline"||Te())&&(jt.triggerSubMenuAction="click"),p.cloneElement(Pe,Object(P.a)(Object(P.a)({},jt),{},{key:Ze||_e}))},Ee.renderMenuItem=function(Pe,_e,je){if(!Pe)return null;var ze=Ee.props.store.getState(),Ve={openKeys:ze.openKeys,selectedKeys:ze.selectedKeys,triggerSubMenuAction:Ee.props.triggerSubMenuAction,subMenuKey:je};return Ee.renderCommonMenuItem(Pe,_e,Ve)},Fe.store.setState({activeKey:Object(P.a)(Object(P.a)({},Fe.store.getState().activeKey),{},Object(L.a)({},Fe.eventKey,Gt(Fe,Fe.activeKey)))}),Ee.instanceArray=[],Ee}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ee){return this.props.visible||Ee.visible||this.props.className!==Ee.className||!G()(this.props.style,Ee.style)}},{key:"componentDidUpdate",value:function(Ee){var Pe=this.props,_e="activeKey"in Pe?Pe.activeKey:Pe.store.getState().activeKey[qt(Pe)],je=Gt(Pe,_e);if(je!==_e)tr(Pe.store,qt(Pe),je);else if("activeKey"in Ee){var ze=Gt(Ee,Ee.activeKey);je!==ze&&tr(Pe.store,qt(Pe),je)}}},{key:"render",value:function(){var Ee=this,Pe=Object(f.a)({},this.props);this.instanceArray=[];var _e=S()(Pe.prefixCls,Pe.className,"".concat(Pe.prefixCls,"-").concat(Pe.mode)),je={className:_e,role:Pe.role||"menu"};Pe.id&&(je.id=Pe.id),Pe.focusable&&(je.tabIndex=0,je.onKeyDown=this.onKeyDown);var ze=Pe.prefixCls,Ve=Pe.eventKey,We=Pe.visible,Ze=Pe.level,pt=Pe.mode,kt=Pe.overflowedIndicator,jt=Pe.theme;return Z.forEach(function(Yt){return delete Pe[Yt]}),delete Pe.onClick,p.createElement(Dt,Object(f.a)({},Pe,{prefixCls:ze,mode:pt,tag:"ul",level:Ze,theme:jt,visible:We,overflowedIndicator:kt},je),Object(b.a)(Pe.children).map(function(Yt,Ir){return Ee.renderMenuItem(Yt,Ir,Ve||"0-menu-")}))}}]),Ye}(p.Component);cr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:te};var st=Object(_.b)()(cr),Lr=st,Fr=D("Kwbf");function Cr(Me,Ge,Ye){var Fe=Me.prefixCls,Ee=Me.motion,Pe=Me.defaultMotions,_e=Pe===void 0?{}:Pe,je=Me.openAnimation,ze=Me.openTransitionName,Ve=Ge.switchingModeFromInline;if(Ee)return Ee;if(Object(H.a)(je)==="object"&&je)Object(Fr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof je=="string")return{motionName:"".concat(Fe,"-open-").concat(je)};if(ze)return{motionName:ze};var We=_e[Ye];return We||(Ve?null:_e.other)}var rr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(Fe){var Ee;Object(k.a)(this,Ye),Ee=Ge.call(this,Fe),Ee.onSelect=function(je){var ze=Object(C.a)(Ee),Ve=ze.props;if(Ve.selectable){var We=Ee.store.getState(),Ze=We.selectedKeys,pt=je.key;Ve.multiple?Ze=Ze.concat([pt]):Ze=[pt],"selectedKeys"in Ve||Ee.store.setState({selectedKeys:Ze}),Ve.onSelect(Object(P.a)(Object(P.a)({},je),{},{selectedKeys:Ze}))}},Ee.onClick=function(je){var ze=Ee.getRealMenuMode(),Ve=Object(C.a)(Ee),We=Ve.store,Ze=Ve.props.onOpenChange;ze!=="inline"&&!("openKeys"in Ee.props)&&(We.setState({openKeys:[]}),Ze([])),Ee.props.onClick(je)},Ee.onKeyDown=function(je,ze){Ee.innerMenu.getWrappedInstance().onKeyDown(je,ze)},Ee.onOpenChange=function(je){var ze=Object(C.a)(Ee),Ve=ze.props,We=Ee.store.getState().openKeys.concat(),Ze=!1,pt=function(jt){var Yt=!1;if(jt.open)Yt=We.indexOf(jt.key)===-1,Yt&&We.push(jt.key);else{var Ir=We.indexOf(jt.key);Yt=Ir!==-1,Yt&&We.splice(Ir,1)}Ze=Ze||Yt};Array.isArray(je)?je.forEach(pt):pt(je),Ze&&("openKeys"in Ee.props||Ee.store.setState({openKeys:We}),Ve.onOpenChange(We))},Ee.onDeselect=function(je){var ze=Object(C.a)(Ee),Ve=ze.props;if(Ve.selectable){var We=Ee.store.getState().selectedKeys.concat(),Ze=je.key,pt=We.indexOf(Ze);pt!==-1&&We.splice(pt,1),"selectedKeys"in Ve||Ee.store.setState({selectedKeys:We}),Ve.onDeselect(Object(P.a)(Object(P.a)({},je),{},{selectedKeys:We}))}},Ee.onMouseEnter=function(je){Ee.restoreModeVerticalFromInline();var ze=Ee.props.onMouseEnter;ze&&ze(je)},Ee.onTransitionEnd=function(je){var ze=je.propertyName==="width"&&je.target===je.currentTarget,Ve=je.target.className,We=Object.prototype.toString.call(Ve)==="[object SVGAnimatedString]"?Ve.animVal:Ve,Ze=je.propertyName==="font-size"&&We.indexOf("anticon")>=0;(ze||Ze)&&Ee.restoreModeVerticalFromInline()},Ee.setInnerMenu=function(je){Ee.innerMenu=je},Ee.isRootMenu=!0;var Pe=Fe.defaultSelectedKeys,_e=Fe.defaultOpenKeys;return"selectedKeys"in Fe&&(Pe=Fe.selectedKeys||[]),"openKeys"in Fe&&(_e=Fe.openKeys||[]),Ee.store=Object(_.c)({selectedKeys:Pe,openKeys:_e,activeKey:{"0-menu-":Gt(Fe,Fe.activeKey)}}),Ee.state={switchingModeFromInline:!1,prevProps:Fe,inlineOpenKeys:[],store:Ee.store},Ee}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ee){var Pe=this.props,_e=Pe.siderCollapsed,je=Pe.inlineCollapsed,ze=Pe.onOpenChange;(!Ee.inlineCollapsed&&je||!Ee.siderCollapsed&&_e)&&ze([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Ee=this.props.collapsedWidth,Pe=this.store,_e=this.prevOpenKeys,je=this.getInlineCollapsed()&&(Ee===0||Ee==="0"||Ee==="0px");je?(this.prevOpenKeys=Pe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):_e&&(this.store.setState({openKeys:_e}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ee=this.props.mode,Pe=this.state.switchingModeFromInline,_e=this.getInlineCollapsed();return Pe&&_e?"inline":_e?"vertical":Ee}},{key:"getInlineCollapsed",value:function(){var Ee=this.props,Pe=Ee.inlineCollapsed,_e=Ee.siderCollapsed;return _e!==void 0?_e:Pe}},{key:"restoreModeVerticalFromInline",value:function(){var Ee=this.state.switchingModeFromInline;Ee&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ee=Object(P.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Pe=this.getRealMenuMode();return Ee.className+=" ".concat(Ee.prefixCls,"-root"),Ee.direction==="rtl"&&(Ee.className+=" ".concat(Ee.prefixCls,"-rtl")),Ee=Object(P.a)(Object(P.a)({},Ee),{},{mode:Pe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Cr(this.props,this.state,Pe)}),delete Ee.openAnimation,delete Ee.openTransitionName,p.createElement(_.a,{store:this.store},p.createElement(Lr,Object(f.a)({},Ee,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Ee,Pe){var _e=Pe.prevProps,je=Pe.store,ze=je.getState(),Ve={},We={prevProps:Ee};return _e.mode==="inline"&&Ee.mode!=="inline"&&(We.switchingModeFromInline=!0),"openKeys"in Ee?Ve.openKeys=Ee.openKeys||[]:((Ee.inlineCollapsed&&!_e.inlineCollapsed||Ee.siderCollapsed&&!_e.siderCollapsed)&&(We.switchingModeFromInline=!0,We.inlineOpenKeys=ze.openKeys,Ve.openKeys=[]),(!Ee.inlineCollapsed&&_e.inlineCollapsed||!Ee.siderCollapsed&&_e.siderCollapsed)&&(Ve.openKeys=Pe.inlineOpenKeys,We.inlineOpenKeys=[])),Object.keys(Ve).length&&je.setState(Ve),We}}]),Ye}(p.Component);rr.defaultProps={selectable:!0,onClick:te,onSelect:te,onOpenChange:te,onDeselect:te,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:p.createElement("span",null,"\xB7\xB7\xB7")};var Et=rr,_t=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){var Fe;return Object(k.a)(this,Ye),Fe=Ge.apply(this,arguments),Fe.onKeyDown=function(Ee){var Pe=Ee.keyCode;return Pe===m.a.ENTER?(Fe.onClick(Ee),!0):void 0},Fe.onMouseLeave=function(Ee){var Pe=Fe.props,_e=Pe.eventKey,je=Pe.onItemHover,ze=Pe.onMouseLeave;je({key:_e,hover:!1}),ze({key:_e,domEvent:Ee})},Fe.onMouseEnter=function(Ee){var Pe=Fe.props,_e=Pe.eventKey,je=Pe.onItemHover,ze=Pe.onMouseEnter;je({key:_e,hover:!0}),ze({key:_e,domEvent:Ee})},Fe.onClick=function(Ee){var Pe=Fe.props,_e=Pe.eventKey,je=Pe.multiple,ze=Pe.onClick,Ve=Pe.onSelect,We=Pe.onDeselect,Ze=Pe.isSelected,pt={key:_e,keyPath:[_e],item:Object(C.a)(Fe),domEvent:Ee};ze(pt),je?Ze?We(pt):Ve(pt):Ze||Ve(pt)},Fe.saveNode=function(Ee){Fe.node=Ee},Fe}return Object(O.a)(Ye,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ee=this.props;Ee.onDestroy&&Ee.onDestroy(Ee.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ee,Pe=Object(P.a)({},this.props),_e=S()(this.getPrefixCls(),Pe.className,(Ee={},Object(L.a)(Ee,this.getActiveClassName(),!Pe.disabled&&Pe.active),Object(L.a)(Ee,this.getSelectedClassName(),Pe.isSelected),Object(L.a)(Ee,this.getDisabledClassName(),Pe.disabled),Ee)),je=Object(P.a)(Object(P.a)({},Pe.attribute),{},{title:typeof Pe.title=="string"?Pe.title:void 0,className:_e,role:Pe.role||"menuitem","aria-disabled":Pe.disabled});Pe.role==="option"?je=Object(P.a)(Object(P.a)({},je),{},{role:"option","aria-selected":Pe.isSelected}):(Pe.role===null||Pe.role==="none")&&(je.role="none");var ze={onClick:Pe.disabled?null:this.onClick,onMouseLeave:Pe.disabled?null:this.onMouseLeave,onMouseEnter:Pe.disabled?null:this.onMouseEnter},Ve=Object(P.a)({},Pe.style);Pe.mode==="inline"&&(Pe.direction==="rtl"?Ve.paddingRight=Pe.inlineIndent*Pe.level:Ve.paddingLeft=Pe.inlineIndent*Pe.level),Z.forEach(function(Ze){return delete Pe[Ze]}),delete Pe.direction;var We=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(We=p.createElement(this.props.itemIcon,this.props)),p.createElement("li",Object(f.a)({},Object(M.a)(Pe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),je,ze,{style:Ve,ref:this.saveNode}),Pe.children,We)}}]),Ye}(p.Component);_t.isMenuItem=!0,_t.defaultProps={onSelect:te,onMouseEnter:te,onMouseLeave:te,manualRef:te};var xt=Object(_.b)(function(Me,Ge){var Ye=Me.activeKey,Fe=Me.selectedKeys,Ee=Ge.eventKey,Pe=Ge.subMenuKey;return{active:Ye[Pe]===Ee,isSelected:Array.isArray(Fe)?Fe.indexOf(Ee)!==-1:Fe===Ee}})(_t),Jt=xt,pr=function(Me){Object(x.a)(Ye,Me);var Ge=Object(y.a)(Ye);function Ye(){var Fe;return Object(k.a)(this,Ye),Fe=Ge.apply(this,arguments),Fe.renderInnerMenuItem=function(Ee){var Pe=Fe.props,_e=Pe.renderMenuItem,je=Pe.index;return _e(Ee,je,Fe.props.subMenuKey)},Fe}return Object(O.a)(Ye,[{key:"render",value:function(){var Ee=Object(f.a)({},this.props),Pe=Ee.className,_e=Pe===void 0?"":Pe,je=Ee.rootPrefixCls,ze="".concat(je,"-item-group-title"),Ve="".concat(je,"-item-group-list"),We=Ee.title,Ze=Ee.children;return Z.forEach(function(pt){return delete Ee[pt]}),delete Ee.direction,p.createElement("li",Object(f.a)({},Ee,{onClick:function(kt){return kt.stopPropagation()},className:"".concat(_e," ").concat(je,"-item-group")}),p.createElement("div",{className:ze,title:typeof We=="string"?We:void 0},We),p.createElement("ul",{className:Ve},p.Children.map(Ze,this.renderInnerMenuItem)))}}]),Ye}(p.Component);pr.isMenuItemGroup=!0,pr.defaultProps={disabled:!0};var dr=pr,fr=function(Ge){var Ye=Ge.className,Fe=Ge.rootPrefixCls,Ee=Ge.style;return p.createElement("li",{className:"".concat(Ye," ").concat(Fe,"-item-divider"),style:Ee})};fr.defaultProps={disabled:!0,className:"",style:{}};var Dr=fr,an=Et,qe=D("eDIo");function sr(Me,Ge){var Ye=Me.prefixCls,Fe=Me.editable,Ee=Me.locale,Pe=Me.style;return!Fe||Fe.showAdd===!1?null:p.createElement("button",{ref:Ge,type:"button",className:"".concat(Ye,"-nav-add"),style:Pe,"aria-label":(Ee==null?void 0:Ee.addAriaLabel)||"Add tab",onClick:function(je){Fe.onEdit("add",{event:je})}},Fe.addIcon||"+")}var Nr=p.forwardRef(sr);function rn(Me,Ge){var Ye=Me.prefixCls,Fe=Me.id,Ee=Me.tabs,Pe=Me.locale,_e=Me.mobile,je=Me.moreIcon,ze=je===void 0?"More":je,Ve=Me.moreTransitionName,We=Me.style,Ze=Me.className,pt=Me.editable,kt=Me.tabBarGutter,jt=Me.rtl,Yt=Me.onTabClick,Ir=Object(p.useState)(!1),Qr=Object(g.a)(Ir,2),$r=Qr[0],nn=Qr[1],Kr=Object(p.useState)(null),sn=Object(g.a)(Kr,2),ln=sn[0],xn=sn[1],hn="".concat(Fe,"-more-popup"),jn="".concat(Ye,"-dropdown"),pn=ln!==null?"".concat(hn,"-").concat(ln):null,jr=Pe==null?void 0:Pe.dropdownAriaLabel,Wr=p.createElement(an,{onClick:function(Wn){var Dn=Wn.key,ti=Wn.domEvent;Yt(Dn,ti),nn(!1)},id:hn,tabIndex:-1,role:"listbox","aria-activedescendant":pn,selectedKeys:[ln],"aria-label":jr!==void 0?jr:"expanded dropdown"},Ee.map(function(Rn){return p.createElement(Jt,{key:Rn.key,id:"".concat(hn,"-").concat(Rn.key),role:"option","aria-controls":Fe&&"".concat(Fe,"-panel-").concat(Rn.key),disabled:Rn.disabled},Rn.tab)}));function dn(Rn){for(var Wn=Ee.filter(function(gi){return!gi.disabled}),Dn=Wn.findIndex(function(gi){return gi.key===ln})||0,ti=Wn.length,ci=0;ciSn?(bn=Wr,hn.current="x"):(bn=dn,hn.current="y");var Yn=Date.now();Yn-ln.current>100&&(xn.current=!1),(Ge(-bn,-bn)||xn.current)&&(jr.preventDefault(),xn.current=!0),ln.current=Yn}var pn=Object(p.useRef)(null);pn.current={onTouchStart:nn,onTouchMove:Kr,onTouchEnd:sn,onWheel:jn},p.useEffect(function(){function jr(Tr){pn.current.onTouchStart(Tr)}function Wr(Tr){pn.current.onTouchMove(Tr)}function dn(Tr){pn.current.onTouchEnd(Tr)}function bn(Tr){pn.current.onWheel(Tr)}return document.addEventListener("touchmove",Wr,{passive:!1}),document.addEventListener("touchend",dn,{passive:!1}),Me.current.addEventListener("touchstart",jr,{passive:!1}),Me.current.addEventListener("wheel",bn),function(){document.removeEventListener("touchmove",Wr),document.removeEventListener("touchend",dn)}},[])}function yt(){var Me=Object(p.useRef)(new Map);function Ge(Fe){return Me.current.has(Fe)||Me.current.set(Fe,p.createRef()),Me.current.get(Fe)}function Ye(Fe){Me.current.delete(Fe)}return[Ge,Ye]}function zt(Me,Ge){var Ye=p.useRef(Me),Fe=p.useState({}),Ee=Object(g.a)(Fe,2),Pe=Ee[1];function _e(je){var ze=typeof je=="function"?je(Ye.current):je;ze!==Ye.current&&Ge(ze,Ye.current),Ye.current=ze,Pe({})}return[Ye.current,_e]}var Mt=function(Ge){var Ye=Ge.position,Fe=Ge.prefixCls,Ee=Ge.extra;if(!Ee)return null;var Pe,_e=Ee;return Ye==="right"&&(Pe=_e.right||!_e.left&&_e||null),Ye==="left"&&(Pe=_e.left||null),Pe?p.createElement("div",{className:"".concat(Fe,"-extra-content")},Pe):null};function Mr(Me,Ge){var Ye,Fe=p.useContext(br),Ee=Fe.prefixCls,Pe=Fe.tabs,_e=Me.className,je=Me.style,ze=Me.id,Ve=Me.animated,We=Me.activeKey,Ze=Me.rtl,pt=Me.extra,kt=Me.editable,jt=Me.locale,Yt=Me.tabPosition,Ir=Me.tabBarGutter,Qr=Me.children,$r=Me.onTabClick,nn=Me.onTabScroll,Kr=Object(p.useRef)(),sn=Object(p.useRef)(),ln=Object(p.useRef)(),xn=Object(p.useRef)(),hn=yt(),jn=Object(g.a)(hn,2),pn=jn[0],jr=jn[1],Wr=Yt==="top"||Yt==="bottom",dn=zt(0,function(Un,An){Wr&&nn&&nn({direction:Un>An?"left":"right"})}),bn=Object(g.a)(dn,2),Tr=bn[0],Sn=bn[1],Yn=zt(0,function(Un,An){!Wr&&nn&&nn({direction:Un>An?"top":"bottom"})}),Rn=Object(g.a)(Yn,2),Wn=Rn[0],Dn=Rn[1],ti=Object(p.useState)(0),ci=Object(g.a)(ti,2),Jn=ci[0],gi=ci[1],Xi=Object(p.useState)(0),Oi=Object(g.a)(Xi,2),di=Oi[0],Hn=Oi[1],zn=Object(p.useState)(0),Qn=Object(g.a)(zn,2),Vn=Qn[0],ii=Qn[1],Di=Object(p.useState)(0),ra=Object(g.a)(Di,2),Mn=ra[0],Ui=ra[1],Bi=Object(p.useState)(null),Fn=Object(g.a)(Bi,2),Pn=Fn[0],ai=Fn[1],Ba=Object(p.useState)(null),wa=Object(g.a)(Ba,2),la=wa[0],ua=wa[1],ka=Object(p.useState)(0),_a=Object(g.a)(ka,2),La=_a[0],Wa=_a[1],Xa=Object(p.useState)(0),Ma=Object(g.a)(Xa,2),ca=Ma[0],Sa=Ma[1],ba=h(new Map),da=Object(g.a)(ba,2),co=da[0],Ea=da[1],Ta=t(Pe,co,Jn),fa="".concat(Ee,"-nav-operations-hidden"),ha=0,$i=0;Wr?Ze?(ha=0,$i=Math.max(0,Jn-Pn)):(ha=Math.min(0,Pn-Jn),$i=0):(ha=Math.min(0,la-di),$i=0);function na(Un){return Un$i?[$i,!1]:[Un,!0]}var Sr=Object(p.useRef)(),Or=Object(p.useState)(),lr=Object(g.a)(Or,2),Tn=lr[0],vr=lr[1];function pa(){vr(Date.now())}function $a(){window.clearTimeout(Sr.current)}vt(Kr,function(Un,An){var wi=!1;function Hi(Ia,ma){Ia(function(Ka){var xa=na(Ka+ma),_i=Object(g.a)(xa,2),Qa=_i[0],ho=_i[1];return wi=ho,Qa})}if(Wr){if(Pn>=Jn)return wi;Hi(Sn,Un)}else{if(la>=di)return wi;Hi(Dn,An)}return $a(),pa(),wi}),Object(p.useEffect)(function(){return $a(),Tn&&(Sr.current=window.setTimeout(function(){vr(0)},100)),$a},[Tn]);function Kn(){var Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:We,An=Ta.get(Un);if(!An)return;if(Wr){var wi=Tr;Ze?An.rightTr+Pn&&(wi=An.right+An.width-Pn):An.left<-Tr?wi=-An.left:An.left+An.width>-Tr+Pn&&(wi=-(An.left+An.width-Pn)),Dn(0),Sn(na(wi)[0])}else{var Hi=Wn;An.top<-Wn?Hi=-An.top:An.top+An.height>-Wn+la&&(Hi=-(An.top+An.height-la)),Sn(0),Dn(na(Hi)[0])}}var Oa=E(Ta,{width:Pn,height:la,left:Tr,top:Wn},{width:Vn,height:Mn},{width:La,height:ca},Object(P.a)(Object(P.a)({},Me),{},{tabs:Pe})),Do=Object(g.a)(Oa,2),Jo=Do[0],Qo=Do[1],Zo=Pe.map(function(Un){var An=Un.key;return p.createElement(r,{id:ze,prefixCls:Ee,key:An,rtl:Ze,tab:Un,closable:Un.closable,editable:kt,active:An===We,tabPosition:Yt,tabBarGutter:Ir,renderWrapper:Qr,removeAriaLabel:jt==null?void 0:jt.removeAriaLabel,ref:pn(An),onClick:function(Hi){$r(An,Hi)},onRemove:function(){jr(An)},onFocus:function(){Kn(An),pa(),Ze||(Kr.current.scrollLeft=0),Kr.current.scrollTop=0}})}),fo=o(function(){var Un,An,wi,Hi,Ia,ma,Ka,xa,_i,Qa=((Un=Kr.current)===null||Un===void 0?void 0:Un.offsetWidth)||0,ho=((An=Kr.current)===null||An===void 0?void 0:An.offsetHeight)||0,po=((wi=xn.current)===null||wi===void 0?void 0:wi.offsetWidth)||0,zi=((Hi=xn.current)===null||Hi===void 0?void 0:Hi.offsetHeight)||0,Nn=((Ia=ln.current)===null||Ia===void 0?void 0:Ia.offsetWidth)||0,aa=((ma=ln.current)===null||ma===void 0?void 0:ma.offsetHeight)||0;ai(Qa),ua(ho),Wa(po),Sa(zi);var va=(((Ka=sn.current)===null||Ka===void 0?void 0:Ka.offsetWidth)||0)-po,ga=(((xa=sn.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-zi;gi(va),Hn(ga);var mo=(_i=ln.current)===null||_i===void 0?void 0:_i.className.includes(fa);ii(va-(mo?0:Nn)),Ui(ga-(mo?0:aa)),Ea(function(){var Za=new Map;return Pe.forEach(function(Io){var No=Io.key,Ra=pn(No).current;Ra&&Za.set(No,{width:Ra.offsetWidth,height:Ra.offsetHeight,left:Ra.offsetLeft,top:Ra.offsetTop})}),Za})}),qo=Pe.slice(0,Jo),Wi=Pe.slice(Qo+1),pi=[].concat(Object(l.a)(qo),Object(l.a)(Wi)),Pi=Object(p.useState)(),mi=Object(g.a)(Pi,2),Ha=mi[0],es=mi[1],ia=Ta.get(We),Po=Object(p.useRef)();function ko(){c.a.cancel(Po.current)}Object(p.useEffect)(function(){var Un={};return ia&&(Wr?(Ze?Un.right=ia.right:Un.left=ia.left,Un.width=ia.width):(Un.top=ia.top,Un.height=ia.height)),ko(),Po.current=c()(function(){es(Un)}),ko},[ia,Wr,Ze]),Object(p.useEffect)(function(){Kn()},[We,ia,Ta,Wr]),Object(p.useEffect)(function(){fo()},[Ze,Ir,We,Pe.map(function(Un){return Un.key}).join("_")]);var Lo=!!pi.length,Aa="".concat(Ee,"-nav-wrap"),Ya,za,Mo,Ja;return Wr?Ze?(za=Tr>0,Ya=Tr+Pn>>7)^(k<<14|k>>>18)^k>>>3,C=l[f-2],x=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;l[f]=O+l[f-7]+x+l[f-16]}var y=a&t^~a&w,_=h&m^h&s^m&s,M=(h<<30|h>>>2)^(h<<19|h>>>13)^(h<<10|h>>>22),I=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),N=E+I+y+d[f]+l[f],G=M+_;E=w,w=t,t=a,a=r+N|0,r=s,s=m,m=h,h=N+G|0}o[0]=o[0]+h|0,o[1]=o[1]+m|0,o[2]=o[2]+s|0,o[3]=o[3]+r|0,o[4]=o[4]+a|0,o[5]=o[5]+t|0,o[6]=o[6]+w|0,o[7]=o[7]+E|0},_doFinalize:function(){var c=this._data,u=c.words,o=this._nDataBytes*8,h=c.sigBytes*8;return u[h>>>5]|=128<<24-h%32,u[(h+64>>>9<<4)+14]=g.floor(o/4294967296),u[(h+64>>>9<<4)+15]=o,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=v.clone.call(this);return c._hash=this._hash.clone(),c}});T.SHA256=v._createHelper(n),T.HmacSHA256=v._createHmacHelper(n)}(Math),L.SHA256})},lZu9:function(j,Y,D){(function(L){L(D("VrN/"),D("1eCo"),D("8EBN"))})(function(L){"use strict";L.defineMode("markdown",function(g,T){var P=L.getMode(g,"text/html"),p=P.name=="null";function v(U){if(L.findModeByName){var W=L.findModeByName(U);W&&(U=W.mime||W.mimes[0])}var X=L.getMode(g,U);return X.name=="null"?null:X}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var S={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var b in S)S.hasOwnProperty(b)&&T.tokenTypeOverrides[b]&&(S[b]=T.tokenTypeOverrides[b]);var d=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,n=/^\[(x| )\](?=\s)/i,c=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,u=/^ {0,3}(?:\={1,}|-{2,})\s*$/,o=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,s=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,r=" ";function a(U,W,X){return W.f=W.inline=X,X(U,W)}function t(U,W,X){return W.f=W.block=X,X(U,W)}function w(U){return!U||!/\S/.test(U.string)}function E(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==k){var W=p;if(!W){var X=L.innerMode(P,U.htmlState);W=X.mode.name=="xml"&&X.state.tagStart===null&&!X.state.context&&X.state.tokenize.isInText}W&&(U.f=y,U.block=f,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function f(U,W){var X=U.column()===W.indentation,ne=w(W.prevLine.stream),fe=W.indentedCode,me=W.prevLine.hr,Ae=W.list!==!1,De=(W.listStack[W.listStack.length-1]||0)+3;W.indentedCode=!1;var ye=W.indentation;if(W.indentationDiff===null&&(W.indentationDiff=W.indentation,Ae)){for(W.list=null;ye=4&&(fe||W.prevLine.fencedCodeEnd||W.prevLine.header||ne))return U.skipToEnd(),W.indentedCode=!0,S.code;if(U.eatSpace())return null;if(X&&W.indentation<=De&&(ue=U.match(c))&&ue[1].length<=6)return W.quote=0,W.header=ue[1].length,W.thisLine.header=!0,T.highlightFormatting&&(W.formatting="header"),W.f=W.inline,C(W);if(W.indentation<=De&&U.eat(">"))return W.quote=X?1:W.quote+1,T.highlightFormatting&&(W.formatting="quote"),U.eatSpace(),C(W);if(!xe&&!W.setext&&X&&W.indentation<=De&&(ue=U.match(l))){var le=ue[1]?"ol":"ul";return W.indentation=ye+U.current().length,W.list=!0,W.quote=0,W.listStack.push(W.indentation),W.em=!1,W.strong=!1,W.code=!1,W.strikethrough=!1,T.taskLists&&U.match(n,!1)&&(W.taskList=!0),W.f=W.inline,T.highlightFormatting&&(W.formatting=["list","list-"+le]),C(W)}else{if(X&&W.indentation<=De&&(ue=U.match(h,!0)))return W.quote=0,W.fencedEndRE=new RegExp(ue[1]+"+ *$"),W.localMode=T.fencedCodeBlockHighlighting&&v(ue[2]||T.fencedCodeBlockDefaultMode),W.localMode&&(W.localState=L.startState(W.localMode)),W.f=W.block=O,T.highlightFormatting&&(W.formatting="code-block"),W.code=-1,C(W);if(W.setext||(!Oe||!Ae)&&!W.quote&&W.list===!1&&!W.code&&!xe&&!m.test(U.string)&&(ue=U.lookAhead(1))&&(ue=ue.match(u)))return W.setext?(W.header=W.setext,W.setext=0,U.skipToEnd(),T.highlightFormatting&&(W.formatting="header")):(W.header=ue[0].charAt(0)=="="?1:2,W.setext=W.header),W.thisLine.header=!0,W.f=W.inline,C(W);if(xe)return U.skipToEnd(),W.hr=!0,W.thisLine.hr=!0,S.hr;if(U.peek()==="[")return a(U,W,G)}return a(U,W,W.inline)}function k(U,W){var X=P.token(U,W.htmlState);if(!p){var ne=L.innerMode(P,W.htmlState);(ne.mode.name=="xml"&&ne.state.tagStart===null&&!ne.state.context&&ne.state.tokenize.isInText||W.md_inside&&U.current().indexOf(">")>-1)&&(W.f=y,W.block=f,W.htmlState=null)}return X}function O(U,W){var X=W.listStack[W.listStack.length-1]||0,ne=W.indentation=U.quote?W.push(S.formatting+"-"+U.formatting[X]+"-"+U.quote):W.push("error"))}if(U.taskOpen)return W.push("meta"),W.length?W.join(" "):null;if(U.taskClosed)return W.push("property"),W.length?W.join(" "):null;if(U.linkHref?W.push(S.linkHref,"url"):(U.strong&&W.push(S.strong),U.em&&W.push(S.em),U.strikethrough&&W.push(S.strikethrough),U.emoji&&W.push(S.emoji),U.linkText&&W.push(S.linkText),U.code&&W.push(S.code),U.image&&W.push(S.image),U.imageAltText&&W.push(S.imageAltText,"link"),U.imageMarker&&W.push(S.imageMarker)),U.header&&W.push(S.header,S.header+"-"+U.header),U.quote&&(W.push(S.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=U.quote?W.push(S.quote+"-"+U.quote):W.push(S.quote+"-"+T.maxBlockquoteDepth)),U.list!==!1){var ne=(U.listStack.length-1)%3;ne?ne===1?W.push(S.list2):W.push(S.list3):W.push(S.list1)}return U.trailingSpaceNewLine?W.push("trailing-space-new-line"):U.trailingSpace&&W.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),W.length?W.join(" "):null}function x(U,W){return U.match(o,!0)?C(W):void 0}function y(U,W){var X=W.text(U,W);if(typeof X!="undefined")return X;if(W.list)return W.list=null,C(W);if(W.taskList){var ne=U.match(n,!0)[1]===" ";return ne?W.taskOpen=!0:W.taskClosed=!0,T.highlightFormatting&&(W.formatting="task"),W.taskList=!1,C(W)}if(W.taskOpen=!1,W.taskClosed=!1,W.header&&U.match(/^#+$/,!0))return T.highlightFormatting&&(W.formatting="header"),C(W);var fe=U.next();if(W.linkTitle){W.linkTitle=!1;var me=fe;fe==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ae="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(U.match(new RegExp(Ae),!0))return S.linkHref}if(fe==="`"){var De=W.formatting;T.highlightFormatting&&(W.formatting="code"),U.eatWhile("`");var ye=U.current().length;if(W.code==0&&(!W.quote||ye==1))return W.code=ye,C(W);if(ye==W.code){var Oe=C(W);return W.code=0,Oe}else return W.formatting=De,C(W)}else if(W.code)return C(W);if(fe==="\\"&&(U.next(),T.highlightFormatting)){var xe=C(W),ue=S.formatting+"-escape";return xe?xe+" "+ue:ue}if(fe==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return W.imageMarker=!0,W.image=!0,T.highlightFormatting&&(W.formatting="image"),C(W);if(fe==="["&&W.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return W.imageMarker=!1,W.imageAltText=!0,T.highlightFormatting&&(W.formatting="image"),C(W);if(fe==="]"&&W.imageAltText){T.highlightFormatting&&(W.formatting="image");var xe=C(W);return W.imageAltText=!1,W.image=!1,W.inline=W.f=M,xe}if(fe==="["&&!W.image)return W.linkText&&U.match(/^.*?\]/)||(W.linkText=!0,T.highlightFormatting&&(W.formatting="link")),C(W);if(fe==="]"&&W.linkText){T.highlightFormatting&&(W.formatting="link");var xe=C(W);return W.linkText=!1,W.inline=W.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?M:y,xe}if(fe==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=_,T.highlightFormatting&&(W.formatting="link");var xe=C(W);return xe?xe+=" ":xe="",xe+S.linkInline}if(fe==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=_,T.highlightFormatting&&(W.formatting="link");var xe=C(W);return xe?xe+=" ":xe="",xe+S.linkEmail}if(T.xml&&fe==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var le=U.string.indexOf(">",U.pos);if(le!=-1){var re=U.string.substring(U.start,le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(re)&&(W.md_inside=!0)}return U.backUp(1),W.htmlState=L.startState(P),t(U,W,k)}if(T.xml&&fe==="<"&&U.match(/^\/\w*?>/))return W.md_inside=!1,"tag";if(fe==="*"||fe==="_"){for(var pe=1,ee=U.pos==1?" ":U.string.charAt(U.pos-2);pe<3&&U.eat(fe);)pe++;var te=U.peek()||" ",ce=!/\s/.test(te)&&(!s.test(te)||/\s/.test(ee)||s.test(ee)),q=!/\s/.test(ee)&&(!s.test(ee)||/\s/.test(te)||s.test(te)),Q=null,V=null;if(pe%2&&(!W.em&&ce&&(fe==="*"||!q||s.test(ee))?Q=!0:W.em==fe&&q&&(fe==="*"||!ce||s.test(te))&&(Q=!1)),pe>1&&(!W.strong&&ce&&(fe==="*"||!q||s.test(ee))?V=!0:W.strong==fe&&q&&(fe==="*"||!ce||s.test(te))&&(V=!1)),V!=null||Q!=null){T.highlightFormatting&&(W.formatting=Q==null?"strong":V==null?"em":"strong em"),Q===!0&&(W.em=fe),V===!0&&(W.strong=fe);var Oe=C(W);return Q===!1&&(W.em=!1),V===!1&&(W.strong=!1),Oe}}else if(fe===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return C(W);U.backUp(1)}if(T.strikethrough){if(fe==="~"&&U.eatWhile(fe)){if(W.strikethrough){T.highlightFormatting&&(W.formatting="strikethrough");var Oe=C(W);return W.strikethrough=!1,Oe}else if(U.match(/^[^\s]/,!1))return W.strikethrough=!0,T.highlightFormatting&&(W.formatting="strikethrough"),C(W)}else if(fe===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return C(W);U.backUp(2)}}if(T.emoji&&fe===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){W.emoji=!0,T.highlightFormatting&&(W.formatting="emoji");var Z=C(W);return W.emoji=!1,Z}return fe===" "&&(U.match(/^ +$/,!1)?W.trailingSpace++:W.trailingSpace&&(W.trailingSpaceNewLine=!0)),C(W)}function _(U,W){var X=U.next();if(X===">"){W.f=W.inline=y,T.highlightFormatting&&(W.formatting="link");var ne=C(W);return ne?ne+=" ":ne="",ne+S.linkInline}return U.match(/^[^>]+/,!0),S.linkInline}function M(U,W){if(U.eatSpace())return null;var X=U.next();return X==="("||X==="["?(W.f=W.inline=N(X==="("?")":"]"),T.highlightFormatting&&(W.formatting="link-string"),W.linkHref=!0,C(W)):"error"}var I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(U){return function(W,X){var ne=W.next();if(ne===U){X.f=X.inline=y,T.highlightFormatting&&(X.formatting="link-string");var fe=C(X);return X.linkHref=!1,fe}return W.match(I[U]),X.linkHref=!0,C(X)}}function G(U,W){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(W.f=H,U.next(),T.highlightFormatting&&(W.formatting="link"),W.linkText=!0,C(W)):a(U,W,y)}function H(U,W){if(U.match(/^\]:/,!0)){W.f=W.inline=B,T.highlightFormatting&&(W.formatting="link");var X=C(W);return W.linkText=!1,X}return U.match(/^([^\]\\]|\\.)+/,!0),S.linkText}function B(U,W){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?W.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),W.f=W.inline=y,S.linkHref+" url")}var K={startState:function(){return{f,prevLine:{stream:null},thisLine:{stream:null},block:f,htmlState:null,indentation:0,inline:y,text:x,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&L.copyState(P,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?L.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,W){if(W.formatting=!1,U!=W.thisLine.stream){if(W.header=0,W.hr=!1,U.match(/^\s*$/,!0))return E(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:U},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=k)){var X=U.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(W.indentation=X,W.indentationDiff=null,X>0)return null}}return W.f(U,W)},innerMode:function(U){return U.block==k?{state:U.htmlState,mode:P}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:K}},indent:function(U,W,X){return U.block==k&&P.indent?P.indent(U.htmlState,W,X):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,W,X):L.Pass},blankLine:E,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return K},"xml"),L.defineMIME("text/markdown","markdown"),L.defineMIME("text/x-markdown","markdown")})},mOS8:function(j,Y,D){j.exports=D.p+"static/403Qrcode.6c17b6f4.png"},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(j){if(!0)module.exports=j();else var Y})(function(){var define,module,exports;return function(){function j(Y,D,L){function g(p,v){if(!D[p]){if(!Y[p]){var S=typeof require=="function"&&require;if(!v&&S)return require(p,!0);if(T)return T(p,!0);var b=new Error("Cannot find module '"+p+"'");throw b.code="MODULE_NOT_FOUND",b}var d=D[p]={exports:{}};Y[p][0].call(d.exports,function(l){var n=Y[p][1][l];return g(n||l)},d,d.exports,j,Y,D,L)}return D[p].exports}for(var T=typeof require=="function"&&require,P=0;P0&&u(M).to(N),G=this._divideParts(x,y),H=G.length,B=!1,K=function(Oe,xe){var ue=this;return new p.default(function(re,pe){var ee,te,ce,q;return S.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(V.prev=0,Oe.isCancel()){V.next=18;break}return ee=G[xe-1],te={stream:Oe._createStream(C,ee.start,ee.end),size:ee.end-ee.start},V.next=6,S.default.awrap(Oe._uploadPart(I,_,xe,te));case 6:if(ce=V.sent,!(!Oe.isCancel()&&!B)){V.next=15;break}if(f.doneParts.push({number:xe,etag:ce.res.headers.etag}),!k.progress){V.next=12;break}return V.next=12,S.default.awrap(k.progress(M.length/H,f,ce.res));case 12:re({number:xe,etag:ce.res.headers.etag}),V.next=16;break;case 15:re();case 16:V.next=19;break;case 18:re();case 19:V.next=30;break;case 21:V.prev=21,V.t0=V.catch(0),q=new Error,q.name=V.t0.name,q.message=V.t0.message,q.stack=V.t0.stack,q.partNum=xe,u(V.t0).to(q),pe(q);case 30:case"end":return V.stop()}},null,ue,[[0,21]])})},U=(0,T.default)(new Array(H),function(ye,Oe){return Oe+1}),W=N.map(function(ye){return ye.number}),X=U.filter(function(ye){return W.indexOf(ye)<0}),ne=5,fe=k.parallel||ne,De.next=17,S.default.awrap(this._parallel(X,fe,function(ye){return new p.default(function(Oe,xe){K(O,ye).then(function(ue){ue&&N.push(ue),Oe()}).catch(function(ue){xe(ue)})})}));case 17:if(me=De.sent,B=!0,!this.isCancel()){De.next=22;break}throw K=null,this._makeCancelEvent();case 22:if(!(me&&me.length>0)){De.next=25;break}throw me[0].message="Failed to upload some parts with error: "+me[0].toString()+" part_num: "+me[0].partNum,me[0];case 25:return De.next=27,S.default.awrap(this.completeMultipartUpload(I,_,N,k));case 27:return De.abrupt("return",De.sent);case 28:case"end":return De.stop()}},null,this)},r._getFileSize=function(f){return S.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(!d.buffer(f)){O.next=4;break}return O.abrupt("return",f.length);case 4:if(!(h(f)||s(f))){O.next=6;break}return O.abrupt("return",f.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return O.stop()}},null,this)};var a=j("stream"),t=a.Readable;function w(E,f){if(!(this instanceof w))return new w(E,f);t.call(this,f),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}l.inherits(w,t),w.prototype.readFileAndPush=function(f){if(this.fileBuffer)for(var k=!0;k&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:C,this.start=C,k=this.push(this.fileBuffer.slice(O,C))}},w.prototype._read=function(f){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var k=16*1024;f=f||k;var O=this;this.reader.onload=function(x){O.fileBuffer=L.from(new Uint8Array(x.target.result)),O.file=null,O.readFileAndPush(f)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(f)},r._createStream=function(f,k,O){if(h(f)||s(f))return new w(f.slice(k,O));throw new Error("_createStream requires File/Blob.")},r._getPartSize=function(f,k){var O=10*1e3,C=1024*1024;return k?Math.max(Math.ceil(f/O),k):C},r._divideParts=function(f,k){for(var O=Math.ceil(f/k),C=[],x=0;x255)throw new Error("ID is composed of 255 bytes at most");if(f.prefix===""||f.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(f.status))throw new Error("Status must be Enabled or Disabled");if(f.transition){if(!["IA","Archive"].includes(f.transition.storageClass))throw new Error("StorageClass must be IA or Archive");t(f.transition,"Transition")}if(f.expiration){if(!f.expiration.expiredObjectDeleteMarker)t(f.expiration,"Expiration");else if(f.expiration.days||f.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(f.abortMultipartUpload&&t(f.abortMultipartUpload,"AbortMultipartUpload"),!f.expiration&&!f.abortMultipartUpload&&!f.transition&&!f.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(f.tag){if(f.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(f.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(d){return d&&d.__esModule?d:{default:d}}var P=j("../utils/checkBucketName"),p=P.checkBucketName,v=j("../utils/obj2xml"),S=v.obj2xml,b=D;b.putBucketVersioning=function(l,n){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,o,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(p(l),["Enabled","Suspended"].includes(n)){s.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return u=this._bucketRequestParams("PUT",l,"versioning",c),o={VersioningConfiguration:{Status:n}},u.mime="xml",u.content=S(o,{headers:!0}),s.next=9,g.default.awrap(this.request(u));case 9:return h=s.sent,s.abrupt("return",{res:h.res,status:h.status});case 11:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(n){return n&&n.__esModule?n:{default:n}}var P=j("../utils/checkBucketName"),p=P.checkBucketName,v=j("../utils/obj2xml"),S=v.obj2xml,b=j("../utils/isArray"),d=b.isArray,l=D;l.putBucketWebsite=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments[2],h,m,s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(p(c),h=this._bucketRequestParams("PUT",c,"website",o),m={Suffix:u.index||"index.html"},s={IndexDocument:m},r={WebsiteConfiguration:s},u.supportSubDir&&(m.SupportSubDir=u.supportSubDir),u.type&&(m.Type=u.type),u.error&&(s.ErrorDocument={Key:u.error}),!(u.routingRules!==void 0)){w.next=12;break}if(d(u.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:s.RoutingRules={RoutingRule:u.routingRules};case 12:return r=S(r),h.content=r,h.mime="xml",h.successStatuses=[200],w.next=18,g.default.awrap(this.request(h));case 18:return a=w.sent,w.abrupt("return",{res:a.res});case 20:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/object/keys"),T=v(g),P=j("babel-runtime/core-js/json/stringify"),p=v(P);function v(S){return S&&S.__esModule?S:{default:S}}D.encodeCallback=function(b,d){if(b.headers=b.headers||{},!Object.prototype.hasOwnProperty.call(b.headers,"x-oss-callback")&&d.callback){var l={callbackUrl:encodeURI(d.callback.url),callbackBody:d.callback.body};d.callback.host&&(l.callbackHost=d.callback.host),d.callback.contentType&&(l.callbackBodyType=d.callback.contentType);var n=L.from((0,p.default)(l)).toString("base64");if(b.headers["x-oss-callback"]=n,d.callback.customValue){var c={};(0,T.default)(d.callback.customValue).forEach(function(u){c["x:"+u]=d.callback.customValue[u]}),b.headers["x-oss-callback-var"]=L.from((0,p.default)(c)).toString("base64")}}}}).call(this,j("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/assign"),g=T(L);function T(l){return l&&l.__esModule?l:{default:l}}var P=j("humanize-ms"),p=j("url"),v=j("../utils/checkBucketName"),S=v.checkBucketName;function b(l,n){var c=p.parse(l);if(c.protocol||(c=p.parse("http"+(n?"s":"")+"://"+l)),c.protocol!=="http:"&&c.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return c}function d(l,n,c){var u=c?"https://":"http://",o=n?"-internal.aliyuncs.com":".aliyuncs.com",h="vpc100-oss-cn-";return l.substr(0,h.length)===h&&(o=".aliyuncs.com"),p.parse(u+l+o)}Y.exports=function(l){if(!l||!l.accessKeyId||!l.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");l.bucket&&S(l.bucket);var n=(0,g.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},l);if(n.accessKeyId=n.accessKeyId.trim(),n.accessKeySecret=n.accessKeySecret.trim(),n.timeout&&(n.timeout=P(n.timeout)),n.endpoint)n.endpoint=b(n.endpoint,n.secure);else if(n.region)n.endpoint=d(n.region,n.internal,n.secure);else throw new Error("require options.endpoint or options.region");return n.inited=!0,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(j,Y,D){"use strict";var L=j("merge-descriptors"),g=D;L(g,j("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(n){return n&&n.__esModule?n:{default:n}}var P=j("../utils/checkBucketName"),p=P.checkBucketName,v=j("querystring"),S=j("js-base64"),b=S.Base64.encode,d=D;d.processObjectSave=function(c,u,o,h){var m,s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return l(c,"sourceObject"),l(u,"targetObject"),l(o,"process"),u=this._objectName(u),h&&p(h),m=this._objectRequestParams("POST",c,{subres:"x-oss-process"}),s=h?",b_"+b(h):"",u=b(u),r={"x-oss-process":o+"|sys/saveas,o_"+u+s},m.content=v.stringify(r),w.next=12,g.default.awrap(this.request(m));case 12:return a=w.sent,w.abrupt("return",{res:a.res,status:a.res.status});case 14:case"end":return w.stop()}},null,this)};function l(n,c){if(!n)throw new Error(c+" is required");if(typeof n!="string")throw new Error(c+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=T(L);function T(d){return d&&d.__esModule?d:{default:d}}var P=j("copy-to"),p=j("./callback"),v=j("./utils/deepCopy"),S=v.deepCopy,b=D;b.listUploads=function(l,n){var c,u,o,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=n||{},c={},P(n).to(c),c.subres="uploads",u=this._objectRequestParams("GET","",c),u.query=l,u.xmlResponse=!0,u.successStatuses=[200],s.next=10,g.default.awrap(this.request(u));case 10:return o=s.sent,h=o.data.Upload||[],Array.isArray(h)||(h=[h]),h=h.map(function(r){return{name:r.Key,uploadId:r.UploadId,initiated:r.Initiated}}),s.abrupt("return",{res:o.res,uploads:h,bucket:o.data.Bucket,nextKeyMarker:o.data.NextKeyMarker,nextUploadIdMarker:o.data.NextUploadIdMarker,isTruncated:o.data.IsTruncated==="true"});case 15:case"end":return s.stop()}},null,this)},b.listParts=function(l,n,c,u){var o,h,m;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return u=u||{},o={},P(u).to(o),o.subres={uploadId:n},h=this._objectRequestParams("GET",l,o),h.query=c,h.xmlResponse=!0,h.successStatuses=[200],r.next=10,g.default.awrap(this.request(h));case 10:return m=r.sent,r.abrupt("return",{res:m.res,uploadId:m.data.UploadId,bucket:m.data.Bucket,name:m.data.Key,partNumberMarker:m.data.PartNumberMarker,nextPartNumberMarker:m.data.NextPartNumberMarker,maxParts:m.data.MaxParts,isTruncated:m.data.IsTruncated,parts:m.data.Part||[]});case 12:case"end":return r.stop()}},null,this)},b.abortMultipartUpload=function(l,n,c){var u,o,h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return this._stop(),c=c||{},u={},P(c).to(u),u.subres={uploadId:n},o=this._objectRequestParams("DELETE",l,u),o.successStatuses=[204],s.next=9,g.default.awrap(this.request(o));case 9:return h=s.sent,s.abrupt("return",{res:h.res});case 11:case"end":return s.stop()}},null,this)},b.initMultipartUpload=function(l,n){var c,u,o;return g.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return n=n||{},c={},P(n).to(c),c.headers=c.headers||{},this._convertMetaToHeaders(n.meta,c.headers),c.subres="uploads",u=this._objectRequestParams("POST",l,c),u.mime=n.mime,u.xmlResponse=!0,u.successStatuses=[200],m.next=12,g.default.awrap(this.request(u));case 12:return o=m.sent,m.abrupt("return",{res:o.res,bucket:o.data.Bucket,name:o.data.Key,uploadId:o.data.UploadId});case 14:case"end":return m.stop()}},null,this)},b.uploadPart=function(l,n,c,u,o,h,m){var s;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return s={stream:this._createStream(u,o,h),size:h-o},a.next=3,g.default.awrap(this._uploadPart(l,n,c,s,m));case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}},null,this)},b.completeMultipartUpload=function(l,n,c,u){var o,h,m,s,r,a,t,w;return g.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:for(o=c.concat().sort(function(k,O){return k.number-O.number}).filter(function(k,O,C){return!O||k.number!==C[O-1].number}),h=` `,m=0;m `,h+=""+s.number+` `,h+=""+s.etag+` `,h+=` -`;return h+="",u=u||{},r={},r=_(u),r.headers&&delete r.headers["x-oss-server-side-encryption"],r.subres={uploadId:n},a=this._objectRequestParams("POST",l,r),p.encodeCallback(a,r),a.mime="xml",a.content=h,a.headers&&a.headers["x-oss-callback"]||(a.xmlResponse=!0),a.successStatuses=[200],f.next=17,g.default.awrap(this.request(a));case 17:return t=f.sent,w={res:t.res,bucket:a.bucket,name:l,etag:t.res.headers.etag},a.headers&&a.headers["x-oss-callback"]&&(w.data=JSON.parse(t.data.toString())),f.abrupt("return",w);case 21:case"end":return f.stop()}},null,this)},b._uploadPart=function(l,n,c,u,o){var h,m,s;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return o=o||{},h={},P(o).to(h),h.headers={"Content-Length":u.size},h.subres={partNumber:c,uploadId:n},m=this._objectRequestParams("PUT",l,h),m.mime=h.mime,m.stream=u.stream,m.successStatuses=[200],a.next=11,g.default.awrap(this.request(m));case 11:if(s=a.sent,s.res.headers.etag){a.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS - https://help.aliyun.com/document_detail/32069.html`);case 14:return u.stream=null,m.stream=null,a.abrupt("return",{name:l,etag:s.res.headers.etag,res:s.res});case 17:case"end":return a.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=_(L),T=j("babel-runtime/core-js/object/keys"),P=_(T),p=j("babel-runtime/helpers/typeof"),v=_(p);function _(n){return n&&n.__esModule?n:{default:n}}var b=j("../utils/checkBucketName"),d=b.checkBucketName,l=D;l.copy=function(c,u,o,h){var m,s,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return(typeof o=="undefined"?"undefined":(0,v.default)(o))==="object"&&(h=o),h=h||{},h.headers=h.headers||{},(0,P.default)(h.headers).forEach(function(w){h.headers["x-oss-copy-source-"+w.toLowerCase()]=h.headers[w]}),h.meta&&(h.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(h.meta,h.headers),u=this._getSourceName(u,o),h.versionId&&(u=u+"?versionId="+h.versionId),h.headers["x-oss-copy-source"]=u,m=this._objectRequestParams("PUT",c,h),m.xmlResponse=!0,m.successStatuses=[200,304],t.next=14,g.default.awrap(this.request(m));case 14:return s=t.sent,r=s.data,r&&(r={etag:r.ETag,lastModified:r.LastModified}),t.abrupt("return",{data:r,res:s.res});case 18:case"end":return t.stop()}},null,this)},l._getSourceName=function(c,u){return typeof u=="string"?c=this._objectName(c):c[0]!=="/"?u=this.options.bucket:(u=c.replace(/\/(.+?)(\/.*)/,"$1"),c=c.replace(/(\/.+?\/)(.*)/,"$2")),d(u),c=encodeURI(c),c="/"+u+"/"+c,c}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(_){return _&&_.__esModule?_:{default:_}}var v=D;v.delete=function(b){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d.subres=(0,P.default)({},d.subres),d.versionId&&(d.subres.versionId=d.versionId),l=this._objectRequestParams("DELETE",b,d),l.successStatuses=[204],u.next=6,g.default.awrap(this.request(l));case 6:return n=u.sent,u.abrupt("return",{res:n.res});case 8:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(l){return l&&l.__esModule?l:{default:l}}var v=j("utility"),_=j("../utils/obj2xml"),b=_.obj2xml,d=D;d.deleteMulti=function(n){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,o,h,m,s,r,a,t,w,E,f,k;return g.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(u=[],!(!n||!n.length)){C.next=3;break}throw new Error("names is required");case 3:for(o=0;o1&&arguments[1]!==void 0?arguments[1]:{},l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d.subres=(0,P.default)({tagging:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),b=this._objectName(b),l=this._objectRequestParams("DELETE",b,d),l.successStatuses=[204],u.next=7,g.default.awrap(this.request(l));case 7:return n=u.sent,u.abrupt("return",{status:n.status,res:n.res});case 9:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(d){return d&&d.__esModule?d:{default:d}}var v=j("fs"),_=j("is-type-of"),b=D;b.get=function(l,n){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,o,h,m;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return u=null,o=!1,_.writableStream(n)?u=n:_.string(n)?(u=v.createWriteStream(n),o=!0):c=n,c=c||{},c.subres=(0,P.default)({},c.subres),c.versionId&&(c.subres.versionId=c.versionId),c.process&&(c.subres["x-oss-process"]=c.process),h=void 0,r.prev=8,m=this._objectRequestParams("GET",l,c),m.writeStream=u,m.successStatuses=[200,206,304],r.next=14,g.default.awrap(this.request(m));case 14:h=r.sent,o&&u.destroy(),r.next=25;break;case 18:if(r.prev=18,r.t0=r.catch(8),!o){r.next=24;break}return u.destroy(),r.next=24,g.default.awrap(this._deleteFileSafe(n));case 24:throw r.t0;case 25:return r.abrupt("return",{res:h.res,content:h.data});case 26:case"end":return r.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(_){return _&&_.__esModule?_:{default:_}}var v=D;v.getACL=function(b){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d.subres=(0,P.default)({acl:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),b=this._objectName(b),l=this._objectRequestParams("GET",b,d),l.successStatuses=[200],l.xmlResponse=!0,u.next=8,g.default.awrap(this.request(l));case 8:return n=u.sent,u.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 10:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=_(L),T=j("babel-runtime/regenerator"),P=_(T),p=j("babel-runtime/core-js/object/assign"),v=_(p);function _(m){return m&&m.__esModule?m:{default:m}}var b=D,d=j("../utils/isObject"),l=d.isObject,n=j("../utils/isArray"),c=n.isArray;b.getBucketVersions=u,b.listObjectVersions=u;function u(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,t,w,E,f;return P.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(!(m.versionIdMarker&&m.keyMarker===void 0)){O.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return s.subres=(0,v.default)({versions:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),r=this._objectRequestParams("GET","",s),r.xmlResponse=!0,r.successStatuses=[200],r.query=h(m),O.next=10,P.default.awrap(this.request(r));case 10:return a=O.sent,t=a.data.Version||[],w=a.data.DeleteMarker||[],E=this,t&&(Array.isArray(t)||(t=[t]),t=t.map(function(C){return{name:C.Key,url:E._objectUrl(C.Key),lastModified:C.LastModified,isLatest:C.IsLatest==="true",versionId:C.VersionId,etag:C.ETag,type:C.Type,size:Number(C.Size),storageClass:C.StorageClass,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),w&&(c(w)||(w=[w]),w=w.map(function(C){return{name:C.Key,lastModified:C.LastModified,versionId:C.VersionId,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),f=a.data.CommonPrefixes||null,f&&(c(f)||(f=[f]),f=f.map(function(C){return C.Prefix})),O.abrupt("return",{res:a.res,objects:t,deleteMarker:w,prefixes:f,nextMarker:a.data.NextMarker||null,NextVersionIdMarker:a.data.NextVersionIdMarker||null,isTruncated:a.data.IsTruncated==="true"});case 19:case"end":return O.stop()}},null,this)}function o(m){return m.replace(/([A-Z])/g,"-$1").toLowerCase()}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s={};return l(m)&&(0,g.default)(m).forEach(function(r){s[o(r)]=m[r]}),s}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(_){return _&&_.__esModule?_:{default:_}}var v=D;v.getObjectMeta=function(b,d){var l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d=d||{},b=this._objectName(b),d.subres=(0,P.default)({objectMeta:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),l=this._objectRequestParams("HEAD",b,d),l.successStatuses=[200],u.next=8,g.default.awrap(this.request(l));case 8:return n=u.sent,u.abrupt("return",{status:n.status,res:n.res});case 10:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(d){return d&&d.__esModule?d:{default:d}}var v=D,_=j("../utils/isObject"),b=_.isObject;v.getObjectTagging=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,u,o,h,m;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return n.subres=(0,P.default)({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),l=this._objectName(l),c=this._objectRequestParams("GET",l,n),c.successStatuses=[200],r.next=7,g.default.awrap(this.request(c));case 7:return u=r.sent,r.next=10,g.default.awrap(this.parseXML(u.data));case 10:return o=r.sent,h=o.TagSet.Tag,h=h&&b(h)?[h]:h||[],m={},h.forEach(function(a){m[a.Key]=a.Value}),r.abrupt("return",{status:u.status,res:u.res,tag:m});case 16:case"end":return r.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(_){return _&&_.__esModule?_:{default:_}}var v=D;v.getSymlink=function(b){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,c;return g.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return d.subres=(0,P.default)({symlink:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),b=this._objectName(b),l=this._objectRequestParams("GET",b,d),l.successStatuses=[200],o.next=7,g.default.awrap(this.request(l));case 7:return n=o.sent,c=n.res.headers["x-oss-symlink-target"],o.abrupt("return",{targetName:decodeURIComponent(c),res:n.res});case 10:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=_(L),T=j("babel-runtime/core-js/object/keys"),P=_(T),p=j("babel-runtime/core-js/object/assign"),v=_(p);function _(d){return d&&d.__esModule?d:{default:d}}var b=D;b.head=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,u,o;return g.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return n.subres=(0,v.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),c=this._objectRequestParams("HEAD",l,n),c.successStatuses=[200,304],m.next=6,g.default.awrap(this.request(c));case 6:return u=m.sent,o={meta:null,res:u.res,status:u.status},u.status===200&&(0,P.default)(u.headers).forEach(function(s){s.indexOf("x-oss-meta-")===0&&(o.meta||(o.meta={}),o.meta[s.substring(11)]=u.headers[s])}),m.abrupt("return",o);case 10:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(_){return _&&_.__esModule?_:{default:_}}var v=D;v.putACL=function(b,d,l){var n,c;return g.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return l=l||{},l.subres=(0,P.default)({acl:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.headers=l.headers||{},l.headers["x-oss-object-acl"]=d,b=this._objectName(b),n=this._objectRequestParams("PUT",b,l),n.successStatuses=[200],o.next=10,g.default.awrap(this.request(n));case 10:return c=o.sent,o.abrupt("return",{res:c.res});case 12:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=_(L),T=j("babel-runtime/core-js/object/keys"),P=_(T),p=j("babel-runtime/core-js/object/assign"),v=_(p);function _(u){return u&&u.__esModule?u:{default:u}}var b=j("../utils/obj2xml"),d=b.obj2xml,l=j("../utils/checkObjectTag"),n=l.checkObjectTag,c=D;c.putObjectTagging=function(o,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return n(h),m.subres=(0,v.default)({tagging:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),o=this._objectName(o),s=this._objectRequestParams("PUT",o,m),s.successStatuses=[200],h=(0,P.default)(h).map(function(E){return{Key:E,Value:h[E]}}),r={Tagging:{TagSet:{Tag:h}}},s.mime="xml",s.content=d(r),w.next=12,g.default.awrap(this.request(s));case 12:return a=w.sent,w.abrupt("return",{res:a.res,status:a.status});case 14:case"end":return w.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(_){return _&&_.__esModule?_:{default:_}}var v=D;v.putSymlink=function(b,d,l){var n,c;return g.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return l=l||{},l.headers=l.headers||{},d=this._escape(this._objectName(d)),this._convertMetaToHeaders(l.meta,l.headers),l.headers["x-oss-symlink-target"]=d,l.subres=(0,P.default)({symlink:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.storageClass&&(l.headers["x-oss-storage-class"]=l.storageClass),b=this._objectName(b),n=this._objectRequestParams("PUT",b,l),n.successStatuses=[200],o.next=13,g.default.awrap(this.request(n));case 13:return c=o.sent,o.abrupt("return",{res:c.res});case 15:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/promise"),P=p(T);function p(_){return _&&_.__esModule?_:{default:_}}var v=D;v._parallelNode=function(b,d,l,n){var c,u,o,h,m,s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:c=this,u=[],o=[],h=b.length/d,m=b.length%d,s=m===0?h:(b.length-m)/d+1,r=1,a=0;case 8:if(!(a0){s=!0,r<=0&&c(u);return}r+=1,w(f.value,o(t))}a=!1}E()})},v.cancel=function(b){this.options.cancelFlag=!0,b&&this.abortMultipartUpload(b.name,b.uploadId,b.options)},v.isCancel=function(){return this.options.cancelFlag},v.resetCancelFlag=function(){this.options.cancelFlag=!1},v._stop=function(){this.options.cancelFlag=!0},v._makeCancelEvent=function(){var b={status:0,name:"cancel"};return b}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/json/stringify"),T=v(g),P=j("babel-runtime/core-js/object/keys"),p=v(P);function v(d){return d&&d.__esModule?d:{default:d}}var _=j("./../../shims/crypto/crypto.js"),b=j("is-type-of");D.buildCanonicalizedResource=function(l,n){var c=""+l,u="?";if(b.string(n)&&n.trim()!=="")c+=u+n;else if(b.array(n))n.sort(),c+=u+n.join("&");else if(n){var o=function(s,r){return s[0]>r[0]?1:s[0]1&&arguments[1]!==void 0?arguments[1]:{},c=arguments[2],u=arguments[3],o={},h=n.subResource,m=h===void 0?{}:h;if(n.process){var s="x-oss-process";m[s]=n.process}if(n.trafficLimit){var r="x-oss-traffic-limit";m[r]=n.trafficLimit}if(n.response&&(0,p.default)(n.response).forEach(function(E){var f="response-"+E.toLowerCase();m[f]=n.response[E]}),(0,p.default)(n).forEach(function(E){var f=E.toLowerCase(),k=n[E];f.indexOf("x-oss-")===0?o[f]=k:(f.indexOf("content-md5")===0||f.indexOf("content-type")===0)&&(o[E]=k)}),Object.prototype.hasOwnProperty.call(n,"security-token")&&(m["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var a={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(a.callbackHost=n.callback.host),n.callback.contentType&&(a.callbackBodyType=n.callback.contentType),m.callback=L.from((0,T.default)(a)).toString("base64"),n.callback.customValue){var t={};(0,p.default)(n.callback.customValue).forEach(function(E){t["x:"+E]=n.callback.customValue[E]}),m["callback-var"]=L.from((0,T.default)(t)).toString("base64")}}var w=this.buildCanonicalString(n.method,c,{headers:o,parameters:m},u.toString());return{Signature:this.computeSignature(l,w),subResource:m}}}).call(this,j("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(j,Y,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.checkBucketName=void 0,D.checkBucketName=function(L,g){var T=g?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.test(L))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/entries"),g=T(L);function T(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(D,"__esModule",{value:!0}),D.checkObjectTag=void 0;var P=j("./checkValid"),p=P.checkValid,v=j("./isObject"),_=v.isObject,b=[{validator:function(c){if(typeof c!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],d={key:[].concat(b,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(b,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function l(n){if(!_(n))throw new Error("tag must be Object");var c=(0,g.default)(n);if(c.length>10)throw new Error("maximum of 10 tags for a object");var u=["key","value"];c.forEach(function(o){o.forEach(function(h,m){p(h,d[u[m]])})})}D.checkObjectTag=l},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(j,Y,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.checkValid=void 0;function L(g,T){T.forEach(function(P){if(P.validator)P.validator(g);else if(P.pattern&&!P.pattern.test(g))throw new Error(P.msg)})}D.checkValid=L},{}],38:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/object/assign"),T=P(g);function P(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(D,"__esModule",{value:!0}),D.createRequest=void 0;var p=j("./../../../shims/crypto/crypto.js"),v=j("debug")("ali-oss"),_=j("mime"),b=j("dateformat"),d=j("copy-to"),l=j("path");function n(o,h){return o[h]||o[h.toLowerCase()]}function c(o,h){delete o[h],delete o[h.toLowerCase()]}function u(o){var h=new Date;this.options.amendTimeSkewed&&(h=+new Date+this.options.amendTimeSkewed);var m={"x-oss-date":b(h,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(m["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(m,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(m["x-oss-security-token"]=this.options.stsToken),d(o.headers).to(m),n(m,"Content-Type")||(o.mime&&o.mime.indexOf("/")>0?m["Content-Type"]=o.mime:m["Content-Type"]=_.getType(o.mime||l.extname(o.object||""))),n(m,"Content-Type")||c(m,"Content-Type"),o.content&&(m["Content-Md5"]=p.createHash("md5").update(L.from(o.content,"utf8")).digest("base64"),m["Content-Length"]||(m["Content-Length"]=o.content.length));var s=this._getResource(o);m.authorization=this.authorization(o.method,s,o.subres,m);var r=this._getReqUrl(o);v("request %s %s, with headers %j, !!stream: %s",o.method,r,m,!!o.stream);var a=o.timeout||this.options.timeout,t={method:o.method,content:o.content,stream:o.stream,headers:m,timeout:a,writeStream:o.writeStream,customResponse:o.customResponse,ctx:o.ctx||this.ctx};return this.agent&&(t.agent=this.agent),this.httpsAgent&&(t.httpsAgent=this.httpsAgent),{url:r,params:t}}D.createRequest=u}).call(this,j("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=p(L),T=j("babel-runtime/helpers/typeof"),P=p(T);function p(v){return v&&v.__esModule?v:{default:v}}Object.defineProperty(D,"__esModule",{value:!0}),D.deepCopy=void 0,D.deepCopy=function(v){if(v===null||(typeof v=="undefined"?"undefined":(0,P.default)(v))!=="object")return v;var _=Array.isArray(v)?[]:{};return(0,g.default)(v).forEach(function(b){_[b]=D.deepCopy(v[b])}),_}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=p(L),T=j("babel-runtime/helpers/typeof"),P=p(T);function p(b){return b&&b.__esModule?b:{default:b}}Object.defineProperty(D,"__esModule",{value:!0}),D.formatObjKey=void 0;function v(b,d){if(b===null||(typeof b=="undefined"?"undefined":(0,P.default)(b))!=="object")return b;var l=void 0;if(Array.isArray(b)){l=[];for(var n=0;n -`),b&&b.firstUpperCase&&(_=P.formatObjKey(_,"firstUpperCase")),p(_)==="object"?(0,g.default)(_).forEach(function(l){p(_[l])==="string"||p(_[l])==="number"?d+="<"+l+">"+_[l]+"":p(_[l])==="object"?d+="<"+l+">"+v(_[l])+"":p(_[l])==="array"?d+=_[l].map(function(n){return"<"+l+">"+v(n)+""}).join(""):d+="<"+l+">"+_[l].toString()+""}):d+=_.toString(),d}D.obj2xml=v},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(j,Y,D){Y.exports=L,Y.exports.HttpsAgent=L;function L(){}},{}],49:[function(j,Y,D){Y.exports=j("./register")().Promise},{"./register":51}],50:[function(j,Y,D){"use strict";var L="@@any-promise/REGISTRATION",g=null;Y.exports=function(T,P){return function(v,_){v=v||null,_=_||{};var b=_.global!==!1;if(g===null&&b&&(g=T[L]||null),g!==null&&v!==null&&g.implementation!==v)throw new Error('any-promise already defined as "'+g.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return g===null&&(v!==null&&typeof _.Promise!="undefined"?g={Promise:_.Promise,implementation:v}:g=P(v),b&&(T[L]=g)),g}}},{}],51:[function(j,Y,D){"use strict";Y.exports=j("./loader")(window,L);function L(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(j,Y,D){"use strict";D.__esModule=!0;var L=j("../core-js/symbol/iterator"),g=v(L),T=j("../core-js/symbol"),P=v(T),p=typeof P.default=="function"&&typeof g.default=="symbol"?function(_){return typeof _}:function(_){return _&&typeof P.default=="function"&&_.constructor===P.default&&_!==P.default.prototype?"symbol":typeof _};function v(_){return _&&_.__esModule?_:{default:_}}D.default=typeof P.default=="function"&&p(g.default)==="symbol"?function(_){return typeof _=="undefined"?"undefined":p(_)}:function(_){return _&&typeof P.default=="function"&&_.constructor===P.default&&_!==P.default.prototype?"symbol":typeof _=="undefined"?"undefined":p(_)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(j,Y,D){Y.exports=j("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(j,Y,D){"use strict";D.byteLength=b,D.toByteArray=l,D.fromByteArray=u;for(var L=[],g=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=P.length;p0)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.indexOf("=");m===-1&&(m=h);var s=m===h?0:4-m%4;return[m,s]}function b(o){var h=_(o),m=h[0],s=h[1];return(m+s)*3/4-s}function d(o,h,m){return(h+m)*3/4-m}function l(o){var h,m=_(o),s=m[0],r=m[1],a=new T(d(o,s,r)),t=0,w=r>0?s-4:s,E;for(E=0;E>16&255,a[t++]=h>>8&255,a[t++]=h&255;return r===2&&(h=g[o.charCodeAt(E)]<<2|g[o.charCodeAt(E+1)]>>4,a[t++]=h&255),r===1&&(h=g[o.charCodeAt(E)]<<10|g[o.charCodeAt(E+1)]<<4|g[o.charCodeAt(E+2)]>>2,a[t++]=h>>8&255,a[t++]=h&255),a}function n(o){return L[o>>18&63]+L[o>>12&63]+L[o>>6&63]+L[o&63]}function c(o,h,m){for(var s,r=[],a=h;aw?w:t+a));return s===1?(h=o[m-1],r.push(L[h>>2]+L[h<<4&63]+"==")):s===2&&(h=(o[m-2]<<8)+o[m-1],r.push(L[h>>10]+L[h>>4&63]+L[h<<2&63]+"=")),r.join("")}},{}],70:[function(j,Y,D){/*! +`;return h+="",u=u||{},r={},r=S(u),r.headers&&delete r.headers["x-oss-server-side-encryption"],r.subres={uploadId:n},a=this._objectRequestParams("POST",l,r),p.encodeCallback(a,r),a.mime="xml",a.content=h,a.headers&&a.headers["x-oss-callback"]||(a.xmlResponse=!0),a.successStatuses=[200],f.next=17,g.default.awrap(this.request(a));case 17:return t=f.sent,w={res:t.res,bucket:a.bucket,name:l,etag:t.res.headers.etag},a.headers&&a.headers["x-oss-callback"]&&(w.data=JSON.parse(t.data.toString())),f.abrupt("return",w);case 21:case"end":return f.stop()}},null,this)},b._uploadPart=function(l,n,c,u,o){var h,m,s;return g.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return o=o||{},h={},P(o).to(h),h.headers={"Content-Length":u.size},h.subres={partNumber:c,uploadId:n},m=this._objectRequestParams("PUT",l,h),m.mime=h.mime,m.stream=u.stream,m.successStatuses=[200],a.next=11,g.default.awrap(this.request(m));case 11:if(s=a.sent,s.res.headers.etag){a.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS + https://help.aliyun.com/document_detail/32069.html`);case 14:return u.stream=null,m.stream=null,a.abrupt("return",{name:l,etag:s.res.headers.etag,res:s.res});case 17:case"end":return a.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=S(L),T=j("babel-runtime/core-js/object/keys"),P=S(T),p=j("babel-runtime/helpers/typeof"),v=S(p);function S(n){return n&&n.__esModule?n:{default:n}}var b=j("../utils/checkBucketName"),d=b.checkBucketName,l=D;l.copy=function(c,u,o,h){var m,s,r;return g.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return(typeof o=="undefined"?"undefined":(0,v.default)(o))==="object"&&(h=o),h=h||{},h.headers=h.headers||{},(0,P.default)(h.headers).forEach(function(w){h.headers["x-oss-copy-source-"+w.toLowerCase()]=h.headers[w]}),h.meta&&(h.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(h.meta,h.headers),u=this._getSourceName(u,o),h.versionId&&(u=u+"?versionId="+h.versionId),h.headers["x-oss-copy-source"]=u,m=this._objectRequestParams("PUT",c,h),m.xmlResponse=!0,m.successStatuses=[200,304],t.next=14,g.default.awrap(this.request(m));case 14:return s=t.sent,r=s.data,r&&(r={etag:r.ETag,lastModified:r.LastModified}),t.abrupt("return",{data:r,res:s.res});case 18:case"end":return t.stop()}},null,this)},l._getSourceName=function(c,u){return typeof u=="string"?c=this._objectName(c):c[0]!=="/"?u=this.options.bucket:(u=c.replace(/\/(.+?)(\/.*)/,"$1"),c=c.replace(/(\/.+?\/)(.*)/,"$2")),d(u),c=encodeURI(c),c="/"+u+"/"+c,c}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(S){return S&&S.__esModule?S:{default:S}}var v=D;v.delete=function(b){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d.subres=(0,P.default)({},d.subres),d.versionId&&(d.subres.versionId=d.versionId),l=this._objectRequestParams("DELETE",b,d),l.successStatuses=[204],u.next=6,g.default.awrap(this.request(l));case 6:return n=u.sent,u.abrupt("return",{res:n.res});case 8:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(l){return l&&l.__esModule?l:{default:l}}var v=j("utility"),S=j("../utils/obj2xml"),b=S.obj2xml,d=D;d.deleteMulti=function(n){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,o,h,m,s,r,a,t,w,E,f,k;return g.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(u=[],!(!n||!n.length)){C.next=3;break}throw new Error("names is required");case 3:for(o=0;o1&&arguments[1]!==void 0?arguments[1]:{},l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d.subres=(0,P.default)({tagging:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),b=this._objectName(b),l=this._objectRequestParams("DELETE",b,d),l.successStatuses=[204],u.next=7,g.default.awrap(this.request(l));case 7:return n=u.sent,u.abrupt("return",{status:n.status,res:n.res});case 9:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(d){return d&&d.__esModule?d:{default:d}}var v=j("fs"),S=j("is-type-of"),b=D;b.get=function(l,n){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,o,h,m;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return u=null,o=!1,S.writableStream(n)?u=n:S.string(n)?(u=v.createWriteStream(n),o=!0):c=n,c=c||{},c.subres=(0,P.default)({},c.subres),c.versionId&&(c.subres.versionId=c.versionId),c.process&&(c.subres["x-oss-process"]=c.process),h=void 0,r.prev=8,m=this._objectRequestParams("GET",l,c),m.writeStream=u,m.successStatuses=[200,206,304],r.next=14,g.default.awrap(this.request(m));case 14:h=r.sent,o&&u.destroy(),r.next=25;break;case 18:if(r.prev=18,r.t0=r.catch(8),!o){r.next=24;break}return u.destroy(),r.next=24,g.default.awrap(this._deleteFileSafe(n));case 24:throw r.t0;case 25:return r.abrupt("return",{res:h.res,content:h.data});case 26:case"end":return r.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(S){return S&&S.__esModule?S:{default:S}}var v=D;v.getACL=function(b){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d.subres=(0,P.default)({acl:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),b=this._objectName(b),l=this._objectRequestParams("GET",b,d),l.successStatuses=[200],l.xmlResponse=!0,u.next=8,g.default.awrap(this.request(l));case 8:return n=u.sent,u.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 10:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=S(L),T=j("babel-runtime/regenerator"),P=S(T),p=j("babel-runtime/core-js/object/assign"),v=S(p);function S(m){return m&&m.__esModule?m:{default:m}}var b=D,d=j("../utils/isObject"),l=d.isObject,n=j("../utils/isArray"),c=n.isArray;b.getBucketVersions=u,b.listObjectVersions=u;function u(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,t,w,E,f;return P.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(!(m.versionIdMarker&&m.keyMarker===void 0)){O.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return s.subres=(0,v.default)({versions:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),r=this._objectRequestParams("GET","",s),r.xmlResponse=!0,r.successStatuses=[200],r.query=h(m),O.next=10,P.default.awrap(this.request(r));case 10:return a=O.sent,t=a.data.Version||[],w=a.data.DeleteMarker||[],E=this,t&&(Array.isArray(t)||(t=[t]),t=t.map(function(C){return{name:C.Key,url:E._objectUrl(C.Key),lastModified:C.LastModified,isLatest:C.IsLatest==="true",versionId:C.VersionId,etag:C.ETag,type:C.Type,size:Number(C.Size),storageClass:C.StorageClass,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),w&&(c(w)||(w=[w]),w=w.map(function(C){return{name:C.Key,lastModified:C.LastModified,versionId:C.VersionId,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),f=a.data.CommonPrefixes||null,f&&(c(f)||(f=[f]),f=f.map(function(C){return C.Prefix})),O.abrupt("return",{res:a.res,objects:t,deleteMarker:w,prefixes:f,nextMarker:a.data.NextMarker||null,NextVersionIdMarker:a.data.NextVersionIdMarker||null,isTruncated:a.data.IsTruncated==="true"});case 19:case"end":return O.stop()}},null,this)}function o(m){return m.replace(/([A-Z])/g,"-$1").toLowerCase()}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s={};return l(m)&&(0,g.default)(m).forEach(function(r){s[o(r)]=m[r]}),s}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(S){return S&&S.__esModule?S:{default:S}}var v=D;v.getObjectMeta=function(b,d){var l,n;return g.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return d=d||{},b=this._objectName(b),d.subres=(0,P.default)({objectMeta:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),l=this._objectRequestParams("HEAD",b,d),l.successStatuses=[200],u.next=8,g.default.awrap(this.request(l));case 8:return n=u.sent,u.abrupt("return",{status:n.status,res:n.res});case 10:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(d){return d&&d.__esModule?d:{default:d}}var v=D,S=j("../utils/isObject"),b=S.isObject;v.getObjectTagging=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,u,o,h,m;return g.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return n.subres=(0,P.default)({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),l=this._objectName(l),c=this._objectRequestParams("GET",l,n),c.successStatuses=[200],r.next=7,g.default.awrap(this.request(c));case 7:return u=r.sent,r.next=10,g.default.awrap(this.parseXML(u.data));case 10:return o=r.sent,h=o.TagSet.Tag,h=h&&b(h)?[h]:h||[],m={},h.forEach(function(a){m[a.Key]=a.Value}),r.abrupt("return",{status:u.status,res:u.res,tag:m});case 16:case"end":return r.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(S){return S&&S.__esModule?S:{default:S}}var v=D;v.getSymlink=function(b){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,c;return g.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return d.subres=(0,P.default)({symlink:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),b=this._objectName(b),l=this._objectRequestParams("GET",b,d),l.successStatuses=[200],o.next=7,g.default.awrap(this.request(l));case 7:return n=o.sent,c=n.res.headers["x-oss-symlink-target"],o.abrupt("return",{targetName:decodeURIComponent(c),res:n.res});case 10:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=S(L),T=j("babel-runtime/core-js/object/keys"),P=S(T),p=j("babel-runtime/core-js/object/assign"),v=S(p);function S(d){return d&&d.__esModule?d:{default:d}}var b=D;b.head=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,u,o;return g.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return n.subres=(0,v.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),c=this._objectRequestParams("HEAD",l,n),c.successStatuses=[200,304],m.next=6,g.default.awrap(this.request(c));case 6:return u=m.sent,o={meta:null,res:u.res,status:u.status},u.status===200&&(0,P.default)(u.headers).forEach(function(s){s.indexOf("x-oss-meta-")===0&&(o.meta||(o.meta={}),o.meta[s.substring(11)]=u.headers[s])}),m.abrupt("return",o);case 10:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(S){return S&&S.__esModule?S:{default:S}}var v=D;v.putACL=function(b,d,l){var n,c;return g.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return l=l||{},l.subres=(0,P.default)({acl:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.headers=l.headers||{},l.headers["x-oss-object-acl"]=d,b=this._objectName(b),n=this._objectRequestParams("PUT",b,l),n.successStatuses=[200],o.next=10,g.default.awrap(this.request(n));case 10:return c=o.sent,o.abrupt("return",{res:c.res});case 12:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=S(L),T=j("babel-runtime/core-js/object/keys"),P=S(T),p=j("babel-runtime/core-js/object/assign"),v=S(p);function S(u){return u&&u.__esModule?u:{default:u}}var b=j("../utils/obj2xml"),d=b.obj2xml,l=j("../utils/checkObjectTag"),n=l.checkObjectTag,c=D;c.putObjectTagging=function(o,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return n(h),m.subres=(0,v.default)({tagging:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),o=this._objectName(o),s=this._objectRequestParams("PUT",o,m),s.successStatuses=[200],h=(0,P.default)(h).map(function(E){return{Key:E,Value:h[E]}}),r={Tagging:{TagSet:{Tag:h}}},s.mime="xml",s.content=d(r),w.next=12,g.default.awrap(this.request(s));case 12:return a=w.sent,w.abrupt("return",{res:a.res,status:a.status});case 14:case"end":return w.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/object/assign"),P=p(T);function p(S){return S&&S.__esModule?S:{default:S}}var v=D;v.putSymlink=function(b,d,l){var n,c;return g.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return l=l||{},l.headers=l.headers||{},d=this._escape(this._objectName(d)),this._convertMetaToHeaders(l.meta,l.headers),l.headers["x-oss-symlink-target"]=d,l.subres=(0,P.default)({symlink:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.storageClass&&(l.headers["x-oss-storage-class"]=l.storageClass),b=this._objectName(b),n=this._objectRequestParams("PUT",b,l),n.successStatuses=[200],o.next=13,g.default.awrap(this.request(n));case 13:return c=o.sent,o.abrupt("return",{res:c.res});case 15:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(j,Y,D){"use strict";var L=j("babel-runtime/regenerator"),g=p(L),T=j("babel-runtime/core-js/promise"),P=p(T);function p(S){return S&&S.__esModule?S:{default:S}}var v=D;v._parallelNode=function(b,d,l,n){var c,u,o,h,m,s,r,a;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:c=this,u=[],o=[],h=b.length/d,m=b.length%d,s=m===0?h:(b.length-m)/d+1,r=1,a=0;case 8:if(!(a0){s=!0,r<=0&&c(u);return}r+=1,w(f.value,o(t))}a=!1}E()})},v.cancel=function(b){this.options.cancelFlag=!0,b&&this.abortMultipartUpload(b.name,b.uploadId,b.options)},v.isCancel=function(){return this.options.cancelFlag},v.resetCancelFlag=function(){this.options.cancelFlag=!1},v._stop=function(){this.options.cancelFlag=!0},v._makeCancelEvent=function(){var b={status:0,name:"cancel"};return b}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/json/stringify"),T=v(g),P=j("babel-runtime/core-js/object/keys"),p=v(P);function v(d){return d&&d.__esModule?d:{default:d}}var S=j("./../../shims/crypto/crypto.js"),b=j("is-type-of");D.buildCanonicalizedResource=function(l,n){var c=""+l,u="?";if(b.string(n)&&n.trim()!=="")c+=u+n;else if(b.array(n))n.sort(),c+=u+n.join("&");else if(n){var o=function(s,r){return s[0]>r[0]?1:s[0]1&&arguments[1]!==void 0?arguments[1]:{},c=arguments[2],u=arguments[3],o={},h=n.subResource,m=h===void 0?{}:h;if(n.process){var s="x-oss-process";m[s]=n.process}if(n.trafficLimit){var r="x-oss-traffic-limit";m[r]=n.trafficLimit}if(n.response&&(0,p.default)(n.response).forEach(function(E){var f="response-"+E.toLowerCase();m[f]=n.response[E]}),(0,p.default)(n).forEach(function(E){var f=E.toLowerCase(),k=n[E];f.indexOf("x-oss-")===0?o[f]=k:(f.indexOf("content-md5")===0||f.indexOf("content-type")===0)&&(o[E]=k)}),Object.prototype.hasOwnProperty.call(n,"security-token")&&(m["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var a={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(a.callbackHost=n.callback.host),n.callback.contentType&&(a.callbackBodyType=n.callback.contentType),m.callback=L.from((0,T.default)(a)).toString("base64"),n.callback.customValue){var t={};(0,p.default)(n.callback.customValue).forEach(function(E){t["x:"+E]=n.callback.customValue[E]}),m["callback-var"]=L.from((0,T.default)(t)).toString("base64")}}var w=this.buildCanonicalString(n.method,c,{headers:o,parameters:m},u.toString());return{Signature:this.computeSignature(l,w),subResource:m}}}).call(this,j("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(j,Y,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.checkBucketName=void 0,D.checkBucketName=function(L,g){var T=g?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.test(L))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/entries"),g=T(L);function T(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(D,"__esModule",{value:!0}),D.checkObjectTag=void 0;var P=j("./checkValid"),p=P.checkValid,v=j("./isObject"),S=v.isObject,b=[{validator:function(c){if(typeof c!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],d={key:[].concat(b,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(b,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function l(n){if(!S(n))throw new Error("tag must be Object");var c=(0,g.default)(n);if(c.length>10)throw new Error("maximum of 10 tags for a object");var u=["key","value"];c.forEach(function(o){o.forEach(function(h,m){p(h,d[u[m]])})})}D.checkObjectTag=l},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(j,Y,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.checkValid=void 0;function L(g,T){T.forEach(function(P){if(P.validator)P.validator(g);else if(P.pattern&&!P.pattern.test(g))throw new Error(P.msg)})}D.checkValid=L},{}],38:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/object/assign"),T=P(g);function P(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(D,"__esModule",{value:!0}),D.createRequest=void 0;var p=j("./../../../shims/crypto/crypto.js"),v=j("debug")("ali-oss"),S=j("mime"),b=j("dateformat"),d=j("copy-to"),l=j("path");function n(o,h){return o[h]||o[h.toLowerCase()]}function c(o,h){delete o[h],delete o[h.toLowerCase()]}function u(o){var h=new Date;this.options.amendTimeSkewed&&(h=+new Date+this.options.amendTimeSkewed);var m={"x-oss-date":b(h,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(m["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(m,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(m["x-oss-security-token"]=this.options.stsToken),d(o.headers).to(m),n(m,"Content-Type")||(o.mime&&o.mime.indexOf("/")>0?m["Content-Type"]=o.mime:m["Content-Type"]=S.getType(o.mime||l.extname(o.object||""))),n(m,"Content-Type")||c(m,"Content-Type"),o.content&&(m["Content-Md5"]=p.createHash("md5").update(L.from(o.content,"utf8")).digest("base64"),m["Content-Length"]||(m["Content-Length"]=o.content.length));var s=this._getResource(o);m.authorization=this.authorization(o.method,s,o.subres,m);var r=this._getReqUrl(o);v("request %s %s, with headers %j, !!stream: %s",o.method,r,m,!!o.stream);var a=o.timeout||this.options.timeout,t={method:o.method,content:o.content,stream:o.stream,headers:m,timeout:a,writeStream:o.writeStream,customResponse:o.customResponse,ctx:o.ctx||this.ctx};return this.agent&&(t.agent=this.agent),this.httpsAgent&&(t.httpsAgent=this.httpsAgent),{url:r,params:t}}D.createRequest=u}).call(this,j("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=p(L),T=j("babel-runtime/helpers/typeof"),P=p(T);function p(v){return v&&v.__esModule?v:{default:v}}Object.defineProperty(D,"__esModule",{value:!0}),D.deepCopy=void 0,D.deepCopy=function(v){if(v===null||(typeof v=="undefined"?"undefined":(0,P.default)(v))!=="object")return v;var S=Array.isArray(v)?[]:{};return(0,g.default)(v).forEach(function(b){S[b]=D.deepCopy(v[b])}),S}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=p(L),T=j("babel-runtime/helpers/typeof"),P=p(T);function p(b){return b&&b.__esModule?b:{default:b}}Object.defineProperty(D,"__esModule",{value:!0}),D.formatObjKey=void 0;function v(b,d){if(b===null||(typeof b=="undefined"?"undefined":(0,P.default)(b))!=="object")return b;var l=void 0;if(Array.isArray(b)){l=[];for(var n=0;n +`),b&&b.firstUpperCase&&(S=P.formatObjKey(S,"firstUpperCase")),p(S)==="object"?(0,g.default)(S).forEach(function(l){p(S[l])==="string"||p(S[l])==="number"?d+="<"+l+">"+S[l]+"":p(S[l])==="object"?d+="<"+l+">"+v(S[l])+"":p(S[l])==="array"?d+=S[l].map(function(n){return"<"+l+">"+v(n)+""}).join(""):d+="<"+l+">"+S[l].toString()+""}):d+=S.toString(),d}D.obj2xml=v},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(j,Y,D){Y.exports=L,Y.exports.HttpsAgent=L;function L(){}},{}],49:[function(j,Y,D){Y.exports=j("./register")().Promise},{"./register":51}],50:[function(j,Y,D){"use strict";var L="@@any-promise/REGISTRATION",g=null;Y.exports=function(T,P){return function(v,S){v=v||null,S=S||{};var b=S.global!==!1;if(g===null&&b&&(g=T[L]||null),g!==null&&v!==null&&g.implementation!==v)throw new Error('any-promise already defined as "'+g.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return g===null&&(v!==null&&typeof S.Promise!="undefined"?g={Promise:S.Promise,implementation:v}:g=P(v),b&&(T[L]=g)),g}}},{}],51:[function(j,Y,D){"use strict";Y.exports=j("./loader")(window,L);function L(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(j,Y,D){Y.exports={default:j("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(j,Y,D){"use strict";D.__esModule=!0;var L=j("../core-js/symbol/iterator"),g=v(L),T=j("../core-js/symbol"),P=v(T),p=typeof P.default=="function"&&typeof g.default=="symbol"?function(S){return typeof S}:function(S){return S&&typeof P.default=="function"&&S.constructor===P.default&&S!==P.default.prototype?"symbol":typeof S};function v(S){return S&&S.__esModule?S:{default:S}}D.default=typeof P.default=="function"&&p(g.default)==="symbol"?function(S){return typeof S=="undefined"?"undefined":p(S)}:function(S){return S&&typeof P.default=="function"&&S.constructor===P.default&&S!==P.default.prototype?"symbol":typeof S=="undefined"?"undefined":p(S)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(j,Y,D){Y.exports=j("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(j,Y,D){"use strict";D.byteLength=b,D.toByteArray=l,D.fromByteArray=u;for(var L=[],g=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=P.length;p0)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.indexOf("=");m===-1&&(m=h);var s=m===h?0:4-m%4;return[m,s]}function b(o){var h=S(o),m=h[0],s=h[1];return(m+s)*3/4-s}function d(o,h,m){return(h+m)*3/4-m}function l(o){var h,m=S(o),s=m[0],r=m[1],a=new T(d(o,s,r)),t=0,w=r>0?s-4:s,E;for(E=0;E>16&255,a[t++]=h>>8&255,a[t++]=h&255;return r===2&&(h=g[o.charCodeAt(E)]<<2|g[o.charCodeAt(E+1)]>>4,a[t++]=h&255),r===1&&(h=g[o.charCodeAt(E)]<<10|g[o.charCodeAt(E+1)]<<4|g[o.charCodeAt(E+2)]>>2,a[t++]=h>>8&255,a[t++]=h&255),a}function n(o){return L[o>>18&63]+L[o>>12&63]+L[o>>6&63]+L[o&63]}function c(o,h,m){for(var s,r=[],a=h;aw?w:t+a));return s===1?(h=o[m-1],r.push(L[h>>2]+L[h<<4&63]+"==")):s===2&&(h=(o[m-2]<<8)+o[m-1],r.push(L[h>>10]+L[h>>4&63]+L[h<<2&63]+"=")),r.join("")}},{}],70:[function(j,Y,D){/*! * Bowser - a browser detector * https://github.com/ded/bowser * MIT License | (c) Dustin Diaz 2015 - */!function(L,g,T){typeof Y!="undefined"&&Y.exports?Y.exports=T():typeof define=="function"&&define.amd?define(g,T):L[g]=T()}(this,"bowser",function(){var L=!0;function g(d){function l(K){var U=d.match(K);return U&&U.length>1&&U[1]||""}function n(K){var U=d.match(K);return U&&U.length>1&&U[2]||""}var c=l(/(ipod|iphone|ipad)/i).toLowerCase(),u=/like android/i.test(d),o=!u&&/android/i.test(d),h=/nexus\s*[0-6]\s*/i.test(d),m=!h&&/nexus\s*[0-9]+/i.test(d),s=/CrOS/.test(d),r=/silk/i.test(d),a=/sailfish/i.test(d),t=/tizen/i.test(d),w=/(web|hpw)(o|0)s/i.test(d),E=/windows phone/i.test(d),f=/SamsungBrowser/i.test(d),k=!E&&/windows/i.test(d),O=!c&&!r&&/macintosh/i.test(d),C=!o&&!a&&!t&&!w&&/linux/i.test(d),x=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),y=l(/version\/(\d+(\.\d+)?)/i),S=/tablet/i.test(d)&&!/tablet pc/i.test(d),M=!S&&/[^-]mobi/i.test(d),I=/xbox/i.test(d),N;/opera/i.test(d)?N={name:"Opera",opera:L,version:y||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(d)?N={name:"Opera",opera:L,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||y}:/SamsungBrowser/i.test(d)?N={name:"Samsung Internet for Android",samsungBrowser:L,version:y||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(d)?N={name:"NAVER Whale browser",whale:L,version:l(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(d)?N={name:"MZ Browser",mzbrowser:L,version:l(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(d)?N={name:"Opera Coast",coast:L,version:y||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(d)?N={name:"Focus",focus:L,version:l(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(d)?N={name:"Yandex Browser",yandexbrowser:L,version:y||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(d)?N={name:"UC Browser",ucbrowser:L,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(d)?N={name:"Maxthon",maxthon:L,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(d)?N={name:"Epiphany",epiphany:L,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(d)?N={name:"Puffin",puffin:L,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(d)?N={name:"Sleipnir",sleipnir:L,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(d)?N={name:"K-Meleon",kMeleon:L,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:E?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:L},x?(N.msedge=L,N.version=x):(N.msie=L,N.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(d)?N={name:"Internet Explorer",msie:L,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:s?N={name:"Chrome",osname:"Chrome OS",chromeos:L,chromeBook:L,chrome:L,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(d)?N={name:"Microsoft Edge",msedge:L,version:x}:/vivaldi/i.test(d)?N={name:"Vivaldi",vivaldi:L,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||y}:a?N={name:"Sailfish",osname:"Sailfish OS",sailfish:L,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(d)?N={name:"SeaMonkey",seamonkey:L,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(d)?(N={name:"Firefox",firefox:L,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(d)&&(N.firefoxos=L,N.osname="Firefox OS")):r?N={name:"Amazon Silk",silk:L,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(d)?N={name:"PhantomJS",phantom:L,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(d)?N={name:"SlimerJS",slimer:L,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(d)||/rim\stablet/i.test(d)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:L,version:y||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(N={name:"WebOS",osname:"WebOS",webos:L,version:y||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(d)&&(N.touchpad=L)):/bada/i.test(d)?N={name:"Bada",osname:"Bada",bada:L,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:t?N={name:"Tizen",osname:"Tizen",tizen:L,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}:/qupzilla/i.test(d)?N={name:"QupZilla",qupzilla:L,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||y}:/chromium/i.test(d)?N={name:"Chromium",chromium:L,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||y}:/chrome|crios|crmo/i.test(d)?N={name:"Chrome",chrome:L,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?N={name:"Android",version:y}:/safari|applewebkit/i.test(d)?(N={name:"Safari",safari:L},y&&(N.version=y)):c?(N={name:c=="iphone"?"iPhone":c=="ipad"?"iPad":"iPod"},y&&(N.version=y)):/googlebot/i.test(d)?N={name:"Googlebot",googlebot:L,version:l(/googlebot\/(\d+(\.\d+))/i)||y}:N={name:l(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(d)?(/(apple)?webkit\/537\.36/i.test(d)?(N.name=N.name||"Blink",N.blink=L):(N.name=N.name||"Webkit",N.webkit=L),!N.version&&y&&(N.version=y)):!N.opera&&/gecko\//i.test(d)&&(N.name=N.name||"Gecko",N.gecko=L,N.version=N.version||l(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(o||N.silk)?(N.android=L,N.osname="Android"):!N.windowsphone&&c?(N[c]=L,N.ios=L,N.osname="iOS"):O?(N.mac=L,N.osname="macOS"):I?(N.xbox=L,N.osname="Xbox"):k?(N.windows=L,N.osname="Windows"):C&&(N.linux=L,N.osname="Linux");function G(K){switch(K){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var H="";N.windows?H=G(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?H=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(H=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),H=H.replace(/[_\s]/g,".")):c?(H=l(/os (\d+([_\s]\d+)*) like mac os x/i),H=H.replace(/[_\s]/g,".")):o?H=l(/android[ \/-](\d+(\.\d+)*)/i):N.webos?H=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?H=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?H=l(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(H=l(/tizen[\/\s](\d+(\.\d+)*)/i)),H&&(N.osversion=H);var B=!N.windows&&H.split(".")[0];return S||m||c=="ipad"||o&&(B==3||B>=4&&!M)||N.silk?N.tablet=L:(M||c=="iphone"||c=="ipod"||o||h||N.blackberry||N.webos||N.bada)&&(N.mobile=L),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.whale&&v([N.version,"1.0"])===1||N.mzbrowser&&v([N.version,"6.0"])===1||N.focus&&v([N.version,"1.0"])===1||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=L:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=L:N.x=L,N}var T=g(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(d){for(var l=0;l=0;){if(n[0][l]>n[1][l])return 1;if(n[0][l]===n[1][l]){if(l===0)return 0}else return-1}}function _(d,l,n){var c=T;typeof l=="string"&&(n=l,l=void 0),l===void 0&&(l=!1),n&&(c=g(n));var u=""+c.version;for(var o in d)if(d.hasOwnProperty(o)&&c[o]){if(typeof d[o]!="string")throw new Error("Browser version in the minVersion map should be a string: "+o+": "+String(d));return v([u,d[o]])<0}return l}function b(d,l,n){return!_(d,l,n)}return T.isUnsupportedBrowser=_,T.compareVersions=v,T.check=b,T._detect=g,T.detect=g,T})},{}],71:[function(j,Y,D){},{}],72:[function(j,Y,D){var L=j("buffer").Buffer,g=L.isEncoding||function(b){switch(b&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(b){if(b&&!g(b))throw new Error("Unknown encoding: "+b)}var P=D.StringDecoder=function(b){this.encoding=(b||"utf8").toLowerCase().replace(/[-_]/,""),T(b);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=v;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=_;break;default:this.write=p;return}this.charBuffer=new L(6),this.charReceived=0,this.charLength=0};P.prototype.write=function(b){for(var d="";this.charLength;){var l=b.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:b.length;if(b.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived=55296&&c<=56319){this.charLength+=this.surrogateSize,d="";continue}if(this.charReceived=this.charLength=0,b.length===0)return d;break}this.detectIncompleteChar(b);var n=b.length;this.charLength&&(b.copy(this.charBuffer,0,b.length-this.charReceived,n),n-=this.charReceived),d+=b.toString(this.encoding,0,n);var n=d.length-1,c=d.charCodeAt(n);if(c>=55296&&c<=56319){var u=this.surrogateSize;return this.charLength+=u,this.charReceived+=u,this.charBuffer.copy(this.charBuffer,u,0,u),b.copy(this.charBuffer,0,0,u),d.substring(0,n)}return d},P.prototype.detectIncompleteChar=function(b){for(var d=b.length>=3?3:b.length;d>0;d--){var l=b[b.length-d];if(d==1&&l>>5==6){this.charLength=2;break}if(d<=2&&l>>4==14){this.charLength=3;break}if(d<=3&&l>>3==30){this.charLength=4;break}}this.charReceived=d},P.prototype.end=function(b){var d="";if(b&&b.length&&(d=this.write(b)),this.charReceived){var l=this.charReceived,n=this.charBuffer,c=this.encoding;d+=n.slice(0,l).toString(c)}return d};function p(b){return b.toString(this.encoding)}function v(b){this.charReceived=b.length%2,this.charLength=this.charReceived?2:0}function _(b){this.charReceived=b.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(j,Y,D){(function(L,g){/*! + */!function(L,g,T){typeof Y!="undefined"&&Y.exports?Y.exports=T():typeof define=="function"&&define.amd?define(g,T):L[g]=T()}(this,"bowser",function(){var L=!0;function g(d){function l(K){var U=d.match(K);return U&&U.length>1&&U[1]||""}function n(K){var U=d.match(K);return U&&U.length>1&&U[2]||""}var c=l(/(ipod|iphone|ipad)/i).toLowerCase(),u=/like android/i.test(d),o=!u&&/android/i.test(d),h=/nexus\s*[0-6]\s*/i.test(d),m=!h&&/nexus\s*[0-9]+/i.test(d),s=/CrOS/.test(d),r=/silk/i.test(d),a=/sailfish/i.test(d),t=/tizen/i.test(d),w=/(web|hpw)(o|0)s/i.test(d),E=/windows phone/i.test(d),f=/SamsungBrowser/i.test(d),k=!E&&/windows/i.test(d),O=!c&&!r&&/macintosh/i.test(d),C=!o&&!a&&!t&&!w&&/linux/i.test(d),x=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),y=l(/version\/(\d+(\.\d+)?)/i),_=/tablet/i.test(d)&&!/tablet pc/i.test(d),M=!_&&/[^-]mobi/i.test(d),I=/xbox/i.test(d),N;/opera/i.test(d)?N={name:"Opera",opera:L,version:y||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(d)?N={name:"Opera",opera:L,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||y}:/SamsungBrowser/i.test(d)?N={name:"Samsung Internet for Android",samsungBrowser:L,version:y||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(d)?N={name:"NAVER Whale browser",whale:L,version:l(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(d)?N={name:"MZ Browser",mzbrowser:L,version:l(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(d)?N={name:"Opera Coast",coast:L,version:y||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(d)?N={name:"Focus",focus:L,version:l(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(d)?N={name:"Yandex Browser",yandexbrowser:L,version:y||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(d)?N={name:"UC Browser",ucbrowser:L,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(d)?N={name:"Maxthon",maxthon:L,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(d)?N={name:"Epiphany",epiphany:L,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(d)?N={name:"Puffin",puffin:L,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(d)?N={name:"Sleipnir",sleipnir:L,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(d)?N={name:"K-Meleon",kMeleon:L,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:E?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:L},x?(N.msedge=L,N.version=x):(N.msie=L,N.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(d)?N={name:"Internet Explorer",msie:L,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:s?N={name:"Chrome",osname:"Chrome OS",chromeos:L,chromeBook:L,chrome:L,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(d)?N={name:"Microsoft Edge",msedge:L,version:x}:/vivaldi/i.test(d)?N={name:"Vivaldi",vivaldi:L,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||y}:a?N={name:"Sailfish",osname:"Sailfish OS",sailfish:L,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(d)?N={name:"SeaMonkey",seamonkey:L,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(d)?(N={name:"Firefox",firefox:L,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(d)&&(N.firefoxos=L,N.osname="Firefox OS")):r?N={name:"Amazon Silk",silk:L,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(d)?N={name:"PhantomJS",phantom:L,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(d)?N={name:"SlimerJS",slimer:L,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(d)||/rim\stablet/i.test(d)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:L,version:y||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(N={name:"WebOS",osname:"WebOS",webos:L,version:y||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(d)&&(N.touchpad=L)):/bada/i.test(d)?N={name:"Bada",osname:"Bada",bada:L,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:t?N={name:"Tizen",osname:"Tizen",tizen:L,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}:/qupzilla/i.test(d)?N={name:"QupZilla",qupzilla:L,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||y}:/chromium/i.test(d)?N={name:"Chromium",chromium:L,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||y}:/chrome|crios|crmo/i.test(d)?N={name:"Chrome",chrome:L,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?N={name:"Android",version:y}:/safari|applewebkit/i.test(d)?(N={name:"Safari",safari:L},y&&(N.version=y)):c?(N={name:c=="iphone"?"iPhone":c=="ipad"?"iPad":"iPod"},y&&(N.version=y)):/googlebot/i.test(d)?N={name:"Googlebot",googlebot:L,version:l(/googlebot\/(\d+(\.\d+))/i)||y}:N={name:l(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(d)?(/(apple)?webkit\/537\.36/i.test(d)?(N.name=N.name||"Blink",N.blink=L):(N.name=N.name||"Webkit",N.webkit=L),!N.version&&y&&(N.version=y)):!N.opera&&/gecko\//i.test(d)&&(N.name=N.name||"Gecko",N.gecko=L,N.version=N.version||l(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(o||N.silk)?(N.android=L,N.osname="Android"):!N.windowsphone&&c?(N[c]=L,N.ios=L,N.osname="iOS"):O?(N.mac=L,N.osname="macOS"):I?(N.xbox=L,N.osname="Xbox"):k?(N.windows=L,N.osname="Windows"):C&&(N.linux=L,N.osname="Linux");function G(K){switch(K){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var H="";N.windows?H=G(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?H=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(H=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),H=H.replace(/[_\s]/g,".")):c?(H=l(/os (\d+([_\s]\d+)*) like mac os x/i),H=H.replace(/[_\s]/g,".")):o?H=l(/android[ \/-](\d+(\.\d+)*)/i):N.webos?H=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?H=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?H=l(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(H=l(/tizen[\/\s](\d+(\.\d+)*)/i)),H&&(N.osversion=H);var B=!N.windows&&H.split(".")[0];return _||m||c=="ipad"||o&&(B==3||B>=4&&!M)||N.silk?N.tablet=L:(M||c=="iphone"||c=="ipod"||o||h||N.blackberry||N.webos||N.bada)&&(N.mobile=L),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.whale&&v([N.version,"1.0"])===1||N.mzbrowser&&v([N.version,"6.0"])===1||N.focus&&v([N.version,"1.0"])===1||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=L:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=L:N.x=L,N}var T=g(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(d){for(var l=0;l=0;){if(n[0][l]>n[1][l])return 1;if(n[0][l]===n[1][l]){if(l===0)return 0}else return-1}}function S(d,l,n){var c=T;typeof l=="string"&&(n=l,l=void 0),l===void 0&&(l=!1),n&&(c=g(n));var u=""+c.version;for(var o in d)if(d.hasOwnProperty(o)&&c[o]){if(typeof d[o]!="string")throw new Error("Browser version in the minVersion map should be a string: "+o+": "+String(d));return v([u,d[o]])<0}return l}function b(d,l,n){return!S(d,l,n)}return T.isUnsupportedBrowser=S,T.compareVersions=v,T.check=b,T._detect=g,T.detect=g,T})},{}],71:[function(j,Y,D){},{}],72:[function(j,Y,D){var L=j("buffer").Buffer,g=L.isEncoding||function(b){switch(b&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(b){if(b&&!g(b))throw new Error("Unknown encoding: "+b)}var P=D.StringDecoder=function(b){this.encoding=(b||"utf8").toLowerCase().replace(/[-_]/,""),T(b);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=v;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=S;break;default:this.write=p;return}this.charBuffer=new L(6),this.charReceived=0,this.charLength=0};P.prototype.write=function(b){for(var d="";this.charLength;){var l=b.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:b.length;if(b.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived=55296&&c<=56319){this.charLength+=this.surrogateSize,d="";continue}if(this.charReceived=this.charLength=0,b.length===0)return d;break}this.detectIncompleteChar(b);var n=b.length;this.charLength&&(b.copy(this.charBuffer,0,b.length-this.charReceived,n),n-=this.charReceived),d+=b.toString(this.encoding,0,n);var n=d.length-1,c=d.charCodeAt(n);if(c>=55296&&c<=56319){var u=this.surrogateSize;return this.charLength+=u,this.charReceived+=u,this.charBuffer.copy(this.charBuffer,u,0,u),b.copy(this.charBuffer,0,0,u),d.substring(0,n)}return d},P.prototype.detectIncompleteChar=function(b){for(var d=b.length>=3?3:b.length;d>0;d--){var l=b[b.length-d];if(d==1&&l>>5==6){this.charLength=2;break}if(d<=2&&l>>4==14){this.charLength=3;break}if(d<=3&&l>>3==30){this.charLength=4;break}}this.charReceived=d},P.prototype.end=function(b){var d="";if(b&&b.length&&(d=this.write(b)),this.charReceived){var l=this.charReceived,n=this.charBuffer,c=this.encoding;d+=n.slice(0,l).toString(c)}return d};function p(b){return b.toString(this.encoding)}function v(b){this.charReceived=b.length%2,this.charLength=this.charReceived?2:0}function S(b){this.charReceived=b.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(j,Y,D){(function(L,g){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */"use strict";var T=j("base64-js"),P=j("ieee754"),p=j("isarray");D.Buffer=g,D.SlowBuffer=r,D.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=L.TYPED_ARRAY_SUPPORT!==void 0?L.TYPED_ARRAY_SUPPORT:v(),D.kMaxLength=_();function v(){try{var q=new Uint8Array(1);return q.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},q.foo()===42&&typeof q.subarray=="function"&&q.subarray(1,1).byteLength===0}catch(Q){return!1}}function _(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function b(q,Q){if(_()=_())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_().toString(16)+" bytes");return q|0}function r(q){return+q!=q&&(q=0),g.alloc(+q)}g.isBuffer=function(Q){return!!(Q!=null&&Q._isBuffer)},g.compare=function(Q,V){if(!g.isBuffer(Q)||!g.isBuffer(V))throw new TypeError("Arguments must be Buffers");if(Q===V)return 0;for(var Z=Q.length,be=V.length,ge=0,Te=Math.min(Z,be);ge>>1;case"base64":return ee(q).length;default:if(Z)return le(q).length;Q=(""+Q).toLowerCase(),Z=!0}}g.byteLength=a;function t(q,Q,V){var Z=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length)return"";if((V===void 0||V>this.length)&&(V=this.length),V<=0)return"";if(V>>>=0,Q>>>=0,V<=Q)return"";for(q||(q="utf8");;)switch(q){case"hex":return K(this,Q,V);case"utf8":case"utf-8":return I(this,Q,V);case"ascii":return H(this,Q,V);case"latin1":case"binary":return B(this,Q,V);case"base64":return M(this,Q,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,Q,V);default:if(Z)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),Z=!0}}g.prototype._isBuffer=!0;function w(q,Q,V){var Z=q[Q];q[Q]=q[V],q[V]=Z}g.prototype.swap16=function(){var Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var V=0;V0&&(Q=this.toString("hex",0,V).match(/.{2}/g).join(" "),this.length>V&&(Q+=" ... ")),""},g.prototype.compare=function(Q,V,Z,be,ge){if(!g.isBuffer(Q))throw new TypeError("Argument must be a Buffer");if(V===void 0&&(V=0),Z===void 0&&(Z=Q?Q.length:0),be===void 0&&(be=0),ge===void 0&&(ge=this.length),V<0||Z>Q.length||be<0||ge>this.length)throw new RangeError("out of range index");if(be>=ge&&V>=Z)return 0;if(be>=ge)return-1;if(V>=Z)return 1;if(V>>>=0,Z>>>=0,be>>>=0,ge>>>=0,this===Q)return 0;for(var Te=ge-be,Je=Z-V,rt=Math.min(Te,Je),nt=this.slice(be,ge),at=Q.slice(V,Z),ct=0;ct2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),V=+V,isNaN(V)&&(V=be?0:q.length-1),V<0&&(V=q.length+V),V>=q.length){if(be)return-1;V=q.length-1}else if(V<0)if(be)V=0;else return-1;if(typeof Q=="string"&&(Q=g.from(Q,Z)),g.isBuffer(Q))return Q.length===0?-1:f(q,Q,V,Z,be);if(typeof Q=="number")return Q=Q&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?be?Uint8Array.prototype.indexOf.call(q,Q,V):Uint8Array.prototype.lastIndexOf.call(q,Q,V):f(q,[Q],V,Z,be);throw new TypeError("val must be string, number or Buffer")}function f(q,Q,V,Z,be){var ge=1,Te=q.length,Je=Q.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(q.length<2||Q.length<2)return-1;ge=2,Te/=2,Je/=2,V/=2}function rt(He,Re){return ge===1?He[Re]:He.readUInt16BE(Re*ge)}var nt;if(be){var at=-1;for(nt=V;ntTe&&(V=Te-Je),nt=V;nt>=0;nt--){for(var ct=!0,ht=0;htbe&&(Z=be)):Z=be;var ge=Q.length;if(ge%2!==0)throw new TypeError("Invalid hex string");Z>ge/2&&(Z=ge/2);for(var Te=0;Tege)&&(Z=ge),Q.length>0&&(Z<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");for(var Te=!1;;)switch(be){case"hex":return k(this,Q,V,Z);case"utf8":case"utf-8":return O(this,Q,V,Z);case"ascii":return C(this,Q,V,Z);case"latin1":case"binary":return x(this,Q,V,Z);case"base64":return y(this,Q,V,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,Q,V,Z);default:if(Te)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),Te=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(q,Q,V){return Q===0&&V===q.length?T.fromByteArray(q):T.fromByteArray(q.slice(Q,V))}function I(q,Q,V){V=Math.min(q.length,V);for(var Z=[],be=Q;be239?4:ge>223?3:ge>191?2:1;if(be+Je<=V){var rt,nt,at,ct;switch(Je){case 1:ge<128&&(Te=ge);break;case 2:rt=q[be+1],(rt&192)===128&&(ct=(ge&31)<<6|rt&63,ct>127&&(Te=ct));break;case 3:rt=q[be+1],nt=q[be+2],(rt&192)===128&&(nt&192)===128&&(ct=(ge&15)<<12|(rt&63)<<6|nt&63,ct>2047&&(ct<55296||ct>57343)&&(Te=ct));break;case 4:rt=q[be+1],nt=q[be+2],at=q[be+3],(rt&192)===128&&(nt&192)===128&&(at&192)===128&&(ct=(ge&15)<<18|(rt&63)<<12|(nt&63)<<6|at&63,ct>65535&&ct<1114112&&(Te=ct))}}Te===null?(Te=65533,Je=1):Te>65535&&(Te-=65536,Z.push(Te>>>10&1023|55296),Te=56320|Te&1023),Z.push(Te),be+=Je}return G(Z)}var N=4096;function G(q){var Q=q.length;if(Q<=N)return String.fromCharCode.apply(String,q);for(var V="",Z=0;ZZ)&&(V=Z);for(var be="",ge=Q;geZ&&(Q=Z),V<0?(V+=Z,V<0&&(V=0)):V>Z&&(V=Z),VV)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(Q,V,Z){Q=Q|0,V=V|0,Z||W(Q,V,this.length);for(var be=this[Q],ge=1,Te=0;++Te0&&(ge*=256);)be+=this[Q+--V]*ge;return be},g.prototype.readUInt8=function(Q,V){return V||W(Q,1,this.length),this[Q]},g.prototype.readUInt16LE=function(Q,V){return V||W(Q,2,this.length),this[Q]|this[Q+1]<<8},g.prototype.readUInt16BE=function(Q,V){return V||W(Q,2,this.length),this[Q]<<8|this[Q+1]},g.prototype.readUInt32LE=function(Q,V){return V||W(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},g.prototype.readUInt32BE=function(Q,V){return V||W(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},g.prototype.readIntLE=function(Q,V,Z){Q=Q|0,V=V|0,Z||W(Q,V,this.length);for(var be=this[Q],ge=1,Te=0;++Te=ge&&(be-=Math.pow(2,8*V)),be},g.prototype.readIntBE=function(Q,V,Z){Q=Q|0,V=V|0,Z||W(Q,V,this.length);for(var be=V,ge=1,Te=this[Q+--be];be>0&&(ge*=256);)Te+=this[Q+--be]*ge;return ge*=128,Te>=ge&&(Te-=Math.pow(2,8*V)),Te},g.prototype.readInt8=function(Q,V){return V||W(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},g.prototype.readInt16LE=function(Q,V){V||W(Q,2,this.length);var Z=this[Q]|this[Q+1]<<8;return Z&32768?Z|4294901760:Z},g.prototype.readInt16BE=function(Q,V){V||W(Q,2,this.length);var Z=this[Q+1]|this[Q]<<8;return Z&32768?Z|4294901760:Z},g.prototype.readInt32LE=function(Q,V){return V||W(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},g.prototype.readInt32BE=function(Q,V){return V||W(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},g.prototype.readFloatLE=function(Q,V){return V||W(Q,4,this.length),P.read(this,Q,!0,23,4)},g.prototype.readFloatBE=function(Q,V){return V||W(Q,4,this.length),P.read(this,Q,!1,23,4)},g.prototype.readDoubleLE=function(Q,V){return V||W(Q,8,this.length),P.read(this,Q,!0,52,8)},g.prototype.readDoubleBE=function(Q,V){return V||W(Q,8,this.length),P.read(this,Q,!1,52,8)};function X(q,Q,V,Z,be,ge){if(!g.isBuffer(q))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>be||Qq.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(Q,V,Z,be){if(Q=+Q,V=V|0,Z=Z|0,!be){var ge=Math.pow(2,8*Z)-1;X(this,Q,V,Z,ge,0)}var Te=1,Je=0;for(this[V]=Q&255;++Je=0&&(Je*=256);)this[V+Te]=Q/Je&255;return V+Z},g.prototype.writeUInt8=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,1,255,0),g.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),this[V]=Q&255,V+1};function ne(q,Q,V,Z){Q<0&&(Q=65535+Q+1);for(var be=0,ge=Math.min(q.length-V,2);be>>(Z?be:1-be)*8}g.prototype.writeUInt16LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[V]=Q&255,this[V+1]=Q>>>8):ne(this,Q,V,!0),V+2},g.prototype.writeUInt16BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>8,this[V+1]=Q&255):ne(this,Q,V,!1),V+2};function fe(q,Q,V,Z){Q<0&&(Q=4294967295+Q+1);for(var be=0,ge=Math.min(q.length-V,4);be>>(Z?be:3-be)*8&255}g.prototype.writeUInt32LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[V+3]=Q>>>24,this[V+2]=Q>>>16,this[V+1]=Q>>>8,this[V]=Q&255):fe(this,Q,V,!0),V+4},g.prototype.writeUInt32BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>24,this[V+1]=Q>>>16,this[V+2]=Q>>>8,this[V+3]=Q&255):fe(this,Q,V,!1),V+4},g.prototype.writeIntLE=function(Q,V,Z,be){if(Q=+Q,V=V|0,!be){var ge=Math.pow(2,8*Z-1);X(this,Q,V,Z,ge-1,-ge)}var Te=0,Je=1,rt=0;for(this[V]=Q&255;++Te>0)-rt&255;return V+Z},g.prototype.writeIntBE=function(Q,V,Z,be){if(Q=+Q,V=V|0,!be){var ge=Math.pow(2,8*Z-1);X(this,Q,V,Z,ge-1,-ge)}var Te=Z-1,Je=1,rt=0;for(this[V+Te]=Q&255;--Te>=0&&(Je*=256);)Q<0&&rt===0&&this[V+Te+1]!==0&&(rt=1),this[V+Te]=(Q/Je>>0)-rt&255;return V+Z},g.prototype.writeInt8=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,1,127,-128),g.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),Q<0&&(Q=255+Q+1),this[V]=Q&255,V+1},g.prototype.writeInt16LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[V]=Q&255,this[V+1]=Q>>>8):ne(this,Q,V,!0),V+2},g.prototype.writeInt16BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>8,this[V+1]=Q&255):ne(this,Q,V,!1),V+2},g.prototype.writeInt32LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[V]=Q&255,this[V+1]=Q>>>8,this[V+2]=Q>>>16,this[V+3]=Q>>>24):fe(this,Q,V,!0),V+4},g.prototype.writeInt32BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>24,this[V+1]=Q>>>16,this[V+2]=Q>>>8,this[V+3]=Q&255):fe(this,Q,V,!1),V+4};function me(q,Q,V,Z,be,ge){if(V+Z>q.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function Ae(q,Q,V,Z,be){return be||me(q,Q,V,4,34028234663852886e22,-34028234663852886e22),P.write(q,Q,V,Z,23,4),V+4}g.prototype.writeFloatLE=function(Q,V,Z){return Ae(this,Q,V,!0,Z)},g.prototype.writeFloatBE=function(Q,V,Z){return Ae(this,Q,V,!1,Z)};function De(q,Q,V,Z,be){return be||me(q,Q,V,8,17976931348623157e292,-17976931348623157e292),P.write(q,Q,V,Z,52,8),V+8}g.prototype.writeDoubleLE=function(Q,V,Z){return De(this,Q,V,!0,Z)},g.prototype.writeDoubleBE=function(Q,V,Z){return De(this,Q,V,!1,Z)},g.prototype.copy=function(Q,V,Z,be){if(Z||(Z=0),!be&&be!==0&&(be=this.length),V>=Q.length&&(V=Q.length),V||(V=0),be>0&&be=this.length)throw new RangeError("sourceStart out of bounds");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),Q.length-V=0;--Te)Q[Te+V]=this[Te+Z];else if(ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Te=0;Te>>0,Z=Z===void 0?this.length:Z>>>0,Q||(Q=0);var Te;if(typeof Q=="number")for(Te=V;Te55295&&V<57344){if(!be){if(V>56319){(Q-=3)>-1&&ge.push(239,191,189);continue}else if(Te+1===Z){(Q-=3)>-1&&ge.push(239,191,189);continue}be=V;continue}if(V<56320){(Q-=3)>-1&&ge.push(239,191,189),be=V;continue}V=(be-55296<<10|V-56320)+65536}else be&&((Q-=3)>-1&&ge.push(239,191,189));if(be=null,V<128){if((Q-=1)<0)break;ge.push(V)}else if(V<2048){if((Q-=2)<0)break;ge.push(V>>6|192,V&63|128)}else if(V<65536){if((Q-=3)<0)break;ge.push(V>>12|224,V>>6&63|128,V&63|128)}else if(V<1114112){if((Q-=4)<0)break;ge.push(V>>18|240,V>>12&63|128,V>>6&63|128,V&63|128)}else throw new Error("Invalid code point")}return ge}function re(q){for(var Q=[],V=0;V>8,be=V%256,ge.push(be),ge.push(Z);return ge}function ee(q){return T.toByteArray(Oe(q))}function te(q,Q,V,Z){for(var be=0;be=Q.length||be>=q.length);++be)Q[be+V]=q[be];return be}function ce(q){return q!==q}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(j,Y,D){Y.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"}},{}],75:[function(j,Y,D){Y.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(j,Y,D){/*! + */"use strict";var T=j("base64-js"),P=j("ieee754"),p=j("isarray");D.Buffer=g,D.SlowBuffer=r,D.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=L.TYPED_ARRAY_SUPPORT!==void 0?L.TYPED_ARRAY_SUPPORT:v(),D.kMaxLength=S();function v(){try{var q=new Uint8Array(1);return q.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},q.foo()===42&&typeof q.subarray=="function"&&q.subarray(1,1).byteLength===0}catch(Q){return!1}}function S(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function b(q,Q){if(S()=S())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S().toString(16)+" bytes");return q|0}function r(q){return+q!=q&&(q=0),g.alloc(+q)}g.isBuffer=function(Q){return!!(Q!=null&&Q._isBuffer)},g.compare=function(Q,V){if(!g.isBuffer(Q)||!g.isBuffer(V))throw new TypeError("Arguments must be Buffers");if(Q===V)return 0;for(var Z=Q.length,be=V.length,ge=0,Te=Math.min(Z,be);ge>>1;case"base64":return ee(q).length;default:if(Z)return le(q).length;Q=(""+Q).toLowerCase(),Z=!0}}g.byteLength=a;function t(q,Q,V){var Z=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length)return"";if((V===void 0||V>this.length)&&(V=this.length),V<=0)return"";if(V>>>=0,Q>>>=0,V<=Q)return"";for(q||(q="utf8");;)switch(q){case"hex":return K(this,Q,V);case"utf8":case"utf-8":return I(this,Q,V);case"ascii":return H(this,Q,V);case"latin1":case"binary":return B(this,Q,V);case"base64":return M(this,Q,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,Q,V);default:if(Z)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),Z=!0}}g.prototype._isBuffer=!0;function w(q,Q,V){var Z=q[Q];q[Q]=q[V],q[V]=Z}g.prototype.swap16=function(){var Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var V=0;V0&&(Q=this.toString("hex",0,V).match(/.{2}/g).join(" "),this.length>V&&(Q+=" ... ")),""},g.prototype.compare=function(Q,V,Z,be,ge){if(!g.isBuffer(Q))throw new TypeError("Argument must be a Buffer");if(V===void 0&&(V=0),Z===void 0&&(Z=Q?Q.length:0),be===void 0&&(be=0),ge===void 0&&(ge=this.length),V<0||Z>Q.length||be<0||ge>this.length)throw new RangeError("out of range index");if(be>=ge&&V>=Z)return 0;if(be>=ge)return-1;if(V>=Z)return 1;if(V>>>=0,Z>>>=0,be>>>=0,ge>>>=0,this===Q)return 0;for(var Te=ge-be,Je=Z-V,rt=Math.min(Te,Je),nt=this.slice(be,ge),at=Q.slice(V,Z),ct=0;ct2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),V=+V,isNaN(V)&&(V=be?0:q.length-1),V<0&&(V=q.length+V),V>=q.length){if(be)return-1;V=q.length-1}else if(V<0)if(be)V=0;else return-1;if(typeof Q=="string"&&(Q=g.from(Q,Z)),g.isBuffer(Q))return Q.length===0?-1:f(q,Q,V,Z,be);if(typeof Q=="number")return Q=Q&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?be?Uint8Array.prototype.indexOf.call(q,Q,V):Uint8Array.prototype.lastIndexOf.call(q,Q,V):f(q,[Q],V,Z,be);throw new TypeError("val must be string, number or Buffer")}function f(q,Q,V,Z,be){var ge=1,Te=q.length,Je=Q.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(q.length<2||Q.length<2)return-1;ge=2,Te/=2,Je/=2,V/=2}function rt(He,Re){return ge===1?He[Re]:He.readUInt16BE(Re*ge)}var nt;if(be){var at=-1;for(nt=V;ntTe&&(V=Te-Je),nt=V;nt>=0;nt--){for(var ct=!0,ht=0;htbe&&(Z=be)):Z=be;var ge=Q.length;if(ge%2!==0)throw new TypeError("Invalid hex string");Z>ge/2&&(Z=ge/2);for(var Te=0;Tege)&&(Z=ge),Q.length>0&&(Z<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");for(var Te=!1;;)switch(be){case"hex":return k(this,Q,V,Z);case"utf8":case"utf-8":return O(this,Q,V,Z);case"ascii":return C(this,Q,V,Z);case"latin1":case"binary":return x(this,Q,V,Z);case"base64":return y(this,Q,V,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,Q,V,Z);default:if(Te)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),Te=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(q,Q,V){return Q===0&&V===q.length?T.fromByteArray(q):T.fromByteArray(q.slice(Q,V))}function I(q,Q,V){V=Math.min(q.length,V);for(var Z=[],be=Q;be239?4:ge>223?3:ge>191?2:1;if(be+Je<=V){var rt,nt,at,ct;switch(Je){case 1:ge<128&&(Te=ge);break;case 2:rt=q[be+1],(rt&192)===128&&(ct=(ge&31)<<6|rt&63,ct>127&&(Te=ct));break;case 3:rt=q[be+1],nt=q[be+2],(rt&192)===128&&(nt&192)===128&&(ct=(ge&15)<<12|(rt&63)<<6|nt&63,ct>2047&&(ct<55296||ct>57343)&&(Te=ct));break;case 4:rt=q[be+1],nt=q[be+2],at=q[be+3],(rt&192)===128&&(nt&192)===128&&(at&192)===128&&(ct=(ge&15)<<18|(rt&63)<<12|(nt&63)<<6|at&63,ct>65535&&ct<1114112&&(Te=ct))}}Te===null?(Te=65533,Je=1):Te>65535&&(Te-=65536,Z.push(Te>>>10&1023|55296),Te=56320|Te&1023),Z.push(Te),be+=Je}return G(Z)}var N=4096;function G(q){var Q=q.length;if(Q<=N)return String.fromCharCode.apply(String,q);for(var V="",Z=0;ZZ)&&(V=Z);for(var be="",ge=Q;geZ&&(Q=Z),V<0?(V+=Z,V<0&&(V=0)):V>Z&&(V=Z),VV)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(Q,V,Z){Q=Q|0,V=V|0,Z||W(Q,V,this.length);for(var be=this[Q],ge=1,Te=0;++Te0&&(ge*=256);)be+=this[Q+--V]*ge;return be},g.prototype.readUInt8=function(Q,V){return V||W(Q,1,this.length),this[Q]},g.prototype.readUInt16LE=function(Q,V){return V||W(Q,2,this.length),this[Q]|this[Q+1]<<8},g.prototype.readUInt16BE=function(Q,V){return V||W(Q,2,this.length),this[Q]<<8|this[Q+1]},g.prototype.readUInt32LE=function(Q,V){return V||W(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},g.prototype.readUInt32BE=function(Q,V){return V||W(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},g.prototype.readIntLE=function(Q,V,Z){Q=Q|0,V=V|0,Z||W(Q,V,this.length);for(var be=this[Q],ge=1,Te=0;++Te=ge&&(be-=Math.pow(2,8*V)),be},g.prototype.readIntBE=function(Q,V,Z){Q=Q|0,V=V|0,Z||W(Q,V,this.length);for(var be=V,ge=1,Te=this[Q+--be];be>0&&(ge*=256);)Te+=this[Q+--be]*ge;return ge*=128,Te>=ge&&(Te-=Math.pow(2,8*V)),Te},g.prototype.readInt8=function(Q,V){return V||W(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},g.prototype.readInt16LE=function(Q,V){V||W(Q,2,this.length);var Z=this[Q]|this[Q+1]<<8;return Z&32768?Z|4294901760:Z},g.prototype.readInt16BE=function(Q,V){V||W(Q,2,this.length);var Z=this[Q+1]|this[Q]<<8;return Z&32768?Z|4294901760:Z},g.prototype.readInt32LE=function(Q,V){return V||W(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},g.prototype.readInt32BE=function(Q,V){return V||W(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},g.prototype.readFloatLE=function(Q,V){return V||W(Q,4,this.length),P.read(this,Q,!0,23,4)},g.prototype.readFloatBE=function(Q,V){return V||W(Q,4,this.length),P.read(this,Q,!1,23,4)},g.prototype.readDoubleLE=function(Q,V){return V||W(Q,8,this.length),P.read(this,Q,!0,52,8)},g.prototype.readDoubleBE=function(Q,V){return V||W(Q,8,this.length),P.read(this,Q,!1,52,8)};function X(q,Q,V,Z,be,ge){if(!g.isBuffer(q))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>be||Qq.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(Q,V,Z,be){if(Q=+Q,V=V|0,Z=Z|0,!be){var ge=Math.pow(2,8*Z)-1;X(this,Q,V,Z,ge,0)}var Te=1,Je=0;for(this[V]=Q&255;++Je=0&&(Je*=256);)this[V+Te]=Q/Je&255;return V+Z},g.prototype.writeUInt8=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,1,255,0),g.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),this[V]=Q&255,V+1};function ne(q,Q,V,Z){Q<0&&(Q=65535+Q+1);for(var be=0,ge=Math.min(q.length-V,2);be>>(Z?be:1-be)*8}g.prototype.writeUInt16LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[V]=Q&255,this[V+1]=Q>>>8):ne(this,Q,V,!0),V+2},g.prototype.writeUInt16BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>8,this[V+1]=Q&255):ne(this,Q,V,!1),V+2};function fe(q,Q,V,Z){Q<0&&(Q=4294967295+Q+1);for(var be=0,ge=Math.min(q.length-V,4);be>>(Z?be:3-be)*8&255}g.prototype.writeUInt32LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[V+3]=Q>>>24,this[V+2]=Q>>>16,this[V+1]=Q>>>8,this[V]=Q&255):fe(this,Q,V,!0),V+4},g.prototype.writeUInt32BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>24,this[V+1]=Q>>>16,this[V+2]=Q>>>8,this[V+3]=Q&255):fe(this,Q,V,!1),V+4},g.prototype.writeIntLE=function(Q,V,Z,be){if(Q=+Q,V=V|0,!be){var ge=Math.pow(2,8*Z-1);X(this,Q,V,Z,ge-1,-ge)}var Te=0,Je=1,rt=0;for(this[V]=Q&255;++Te>0)-rt&255;return V+Z},g.prototype.writeIntBE=function(Q,V,Z,be){if(Q=+Q,V=V|0,!be){var ge=Math.pow(2,8*Z-1);X(this,Q,V,Z,ge-1,-ge)}var Te=Z-1,Je=1,rt=0;for(this[V+Te]=Q&255;--Te>=0&&(Je*=256);)Q<0&&rt===0&&this[V+Te+1]!==0&&(rt=1),this[V+Te]=(Q/Je>>0)-rt&255;return V+Z},g.prototype.writeInt8=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,1,127,-128),g.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),Q<0&&(Q=255+Q+1),this[V]=Q&255,V+1},g.prototype.writeInt16LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[V]=Q&255,this[V+1]=Q>>>8):ne(this,Q,V,!0),V+2},g.prototype.writeInt16BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>8,this[V+1]=Q&255):ne(this,Q,V,!1),V+2},g.prototype.writeInt32LE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[V]=Q&255,this[V+1]=Q>>>8,this[V+2]=Q>>>16,this[V+3]=Q>>>24):fe(this,Q,V,!0),V+4},g.prototype.writeInt32BE=function(Q,V,Z){return Q=+Q,V=V|0,Z||X(this,Q,V,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),g.TYPED_ARRAY_SUPPORT?(this[V]=Q>>>24,this[V+1]=Q>>>16,this[V+2]=Q>>>8,this[V+3]=Q&255):fe(this,Q,V,!1),V+4};function me(q,Q,V,Z,be,ge){if(V+Z>q.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function Ae(q,Q,V,Z,be){return be||me(q,Q,V,4,34028234663852886e22,-34028234663852886e22),P.write(q,Q,V,Z,23,4),V+4}g.prototype.writeFloatLE=function(Q,V,Z){return Ae(this,Q,V,!0,Z)},g.prototype.writeFloatBE=function(Q,V,Z){return Ae(this,Q,V,!1,Z)};function De(q,Q,V,Z,be){return be||me(q,Q,V,8,17976931348623157e292,-17976931348623157e292),P.write(q,Q,V,Z,52,8),V+8}g.prototype.writeDoubleLE=function(Q,V,Z){return De(this,Q,V,!0,Z)},g.prototype.writeDoubleBE=function(Q,V,Z){return De(this,Q,V,!1,Z)},g.prototype.copy=function(Q,V,Z,be){if(Z||(Z=0),!be&&be!==0&&(be=this.length),V>=Q.length&&(V=Q.length),V||(V=0),be>0&&be=this.length)throw new RangeError("sourceStart out of bounds");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),Q.length-V=0;--Te)Q[Te+V]=this[Te+Z];else if(ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Te=0;Te>>0,Z=Z===void 0?this.length:Z>>>0,Q||(Q=0);var Te;if(typeof Q=="number")for(Te=V;Te55295&&V<57344){if(!be){if(V>56319){(Q-=3)>-1&&ge.push(239,191,189);continue}else if(Te+1===Z){(Q-=3)>-1&&ge.push(239,191,189);continue}be=V;continue}if(V<56320){(Q-=3)>-1&&ge.push(239,191,189),be=V;continue}V=(be-55296<<10|V-56320)+65536}else be&&((Q-=3)>-1&&ge.push(239,191,189));if(be=null,V<128){if((Q-=1)<0)break;ge.push(V)}else if(V<2048){if((Q-=2)<0)break;ge.push(V>>6|192,V&63|128)}else if(V<65536){if((Q-=3)<0)break;ge.push(V>>12|224,V>>6&63|128,V&63|128)}else if(V<1114112){if((Q-=4)<0)break;ge.push(V>>18|240,V>>12&63|128,V>>6&63|128,V&63|128)}else throw new Error("Invalid code point")}return ge}function re(q){for(var Q=[],V=0;V>8,be=V%256,ge.push(be),ge.push(Z);return ge}function ee(q){return T.toByteArray(Oe(q))}function te(q,Q,V,Z){for(var be=0;be=Q.length||be>=q.length);++be)Q[be+V]=q[be];return be}function ce(q){return q!==q}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(j,Y,D){Y.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"}},{}],75:[function(j,Y,D){Y.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(j,Y,D){/*! * copy-to - index.js * Copyright(c) 2014 dead_horse * MIT Licensed - */"use strict";var L=Array.prototype.slice;Y.exports=g;function g(P,p){if(!(this instanceof g))return new g(P,p);this.src=P,this._withAccess=p}g.prototype.withAccess=function(P){return this._withAccess=P!==!1,this},g.prototype.pick=function(P){return Array.isArray(P)||(P=L.call(arguments)),P.length&&(this.keys=P),this},g.prototype.to=function(P){if(P=P||{},!this.src)return P;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var v=0;vl;)if(n=b[l++],n!=n)return!0}else for(;d>l;l++)if((P||l in b)&&b[l]===v)return P||l||0;return!P&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(j,Y,D){var L=j("./_cof"),g=j("./_wks")("toStringTag"),T=L(function(){return arguments}())=="Arguments",P=function(p,v){try{return p[v]}catch(_){}};Y.exports=function(p){var v,_,b;return p===void 0?"Undefined":p===null?"Null":typeof(_=P(v=Object(p),g))=="string"?_:T?L(v):(b=L(v))=="Object"&&typeof v.callee=="function"?"Arguments":b}},{"./_cof":98,"./_wks":166}],98:[function(j,Y,D){var L={}.toString;Y.exports=function(g){return L.call(g).slice(8,-1)}},{}],99:[function(j,Y,D){var L=Y.exports={version:"2.6.11"};typeof __e=="number"&&(__e=L)},{}],100:[function(j,Y,D){"use strict";var L=j("./_object-dp"),g=j("./_property-desc");Y.exports=function(T,P,p){P in T?L.f(T,P,g(0,p)):T[P]=p}},{"./_object-dp":132,"./_property-desc":146}],101:[function(j,Y,D){var L=j("./_a-function");Y.exports=function(g,T,P){if(L(g),T===void 0)return g;switch(P){case 1:return function(p){return g.call(T,p)};case 2:return function(p,v){return g.call(T,p,v)};case 3:return function(p,v,_){return g.call(T,p,v,_)}}return function(){return g.apply(T,arguments)}}},{"./_a-function":92}],102:[function(j,Y,D){Y.exports=function(L){if(L==null)throw TypeError("Can't call method on "+L);return L}},{}],103:[function(j,Y,D){Y.exports=!j("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(j,Y,D){var L=j("./_is-object"),g=j("./_global").document,T=L(g)&&L(g.createElement);Y.exports=function(P){return T?g.createElement(P):{}}},{"./_global":110,"./_is-object":119}],105:[function(j,Y,D){Y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(j,Y,D){var L=j("./_object-keys"),g=j("./_object-gops"),T=j("./_object-pie");Y.exports=function(P){var p=L(P),v=g.f;if(v)for(var _=v(P),b=T.f,d=0,l;_.length>d;)b.call(P,l=_[d++])&&p.push(l);return p}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(j,Y,D){var L=j("./_global"),g=j("./_core"),T=j("./_ctx"),P=j("./_hide"),p=j("./_has"),v="prototype",_=function(b,d,l){var n=b&_.F,c=b&_.G,u=b&_.S,o=b&_.P,h=b&_.B,m=b&_.W,s=c?g:g[d]||(g[d]={}),r=s[v],a=c?L:u?L[d]:(L[d]||{})[v],t,w,E;c&&(l=d);for(t in l){if(w=!n&&a&&a[t]!==void 0,w&&p(s,t))continue;E=w?a[t]:l[t],s[t]=c&&typeof a[t]!="function"?l[t]:h&&w?T(E,L):m&&a[t]==E?function(f){var k=function(O,C,x){if(this instanceof f){switch(arguments.length){case 0:return new f;case 1:return new f(O);case 2:return new f(O,C)}return new f(O,C,x)}return f.apply(this,arguments)};return k[v]=f[v],k}(E):o&&typeof E=="function"?T(Function.call,E):E,o&&((s.virtual||(s.virtual={}))[t]=E,b&_.R&&r&&!r[t]&&P(r,t,E))}};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,Y.exports=_},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(j,Y,D){Y.exports=function(L){try{return!!L()}catch(g){return!0}}},{}],109:[function(j,Y,D){var L=j("./_ctx"),g=j("./_iter-call"),T=j("./_is-array-iter"),P=j("./_an-object"),p=j("./_to-length"),v=j("./core.get-iterator-method"),_={},b={},D=Y.exports=function(d,l,n,c,u){var o=u?function(){return d}:v(d),h=L(n,c,l?2:1),m=0,s,r,a,t;if(typeof o!="function")throw TypeError(d+" is not iterable!");if(T(o)){for(s=p(d.length);s>m;m++)if(t=l?h(P(r=d[m])[0],r[1]):h(d[m]),t===_||t===b)return t}else for(a=o.call(d);!(r=a.next()).done;)if(t=g(a,h,r.value,l),t===_||t===b)return t};D.BREAK=_,D.RETURN=b},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(j,Y,D){var L=Y.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=L)},{}],111:[function(j,Y,D){var L={}.hasOwnProperty;Y.exports=function(g,T){return L.call(g,T)}},{}],112:[function(j,Y,D){var L=j("./_object-dp"),g=j("./_property-desc");Y.exports=j("./_descriptors")?function(T,P,p){return L.f(T,P,g(1,p))}:function(T,P,p){return T[P]=p,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(j,Y,D){var L=j("./_global").document;Y.exports=L&&L.documentElement},{"./_global":110}],114:[function(j,Y,D){Y.exports=!j("./_descriptors")&&!j("./_fails")(function(){return Object.defineProperty(j("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(j,Y,D){Y.exports=function(L,g,T){var P=T===void 0;switch(g.length){case 0:return P?L():L.call(T);case 1:return P?L(g[0]):L.call(T,g[0]);case 2:return P?L(g[0],g[1]):L.call(T,g[0],g[1]);case 3:return P?L(g[0],g[1],g[2]):L.call(T,g[0],g[1],g[2]);case 4:return P?L(g[0],g[1],g[2],g[3]):L.call(T,g[0],g[1],g[2],g[3])}return L.apply(T,g)}},{}],116:[function(j,Y,D){var L=j("./_cof");Y.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return L(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(j,Y,D){var L=j("./_iterators"),g=j("./_wks")("iterator"),T=Array.prototype;Y.exports=function(P){return P!==void 0&&(L.Array===P||T[g]===P)}},{"./_iterators":125,"./_wks":166}],118:[function(j,Y,D){var L=j("./_cof");Y.exports=Array.isArray||function(T){return L(T)=="Array"}},{"./_cof":98}],119:[function(j,Y,D){Y.exports=function(L){return typeof L=="object"?L!==null:typeof L=="function"}},{}],120:[function(j,Y,D){var L=j("./_an-object");Y.exports=function(g,T,P,p){try{return p?T(L(P)[0],P[1]):T(P)}catch(_){var v=g.return;throw v!==void 0&&L(v.call(g)),_}}},{"./_an-object":95}],121:[function(j,Y,D){"use strict";var L=j("./_object-create"),g=j("./_property-desc"),T=j("./_set-to-string-tag"),P={};j("./_hide")(P,j("./_wks")("iterator"),function(){return this}),Y.exports=function(p,v,_){p.prototype=L(P,{next:g(1,_)}),T(p,v+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(j,Y,D){"use strict";var L=j("./_library"),g=j("./_export"),T=j("./_redefine"),P=j("./_hide"),p=j("./_iterators"),v=j("./_iter-create"),_=j("./_set-to-string-tag"),b=j("./_object-gpo"),d=j("./_wks")("iterator"),l=!([].keys&&"next"in[].keys()),n="@@iterator",c="keys",u="values",o=function(){return this};Y.exports=function(h,m,s,r,a,t,w){v(s,m,r);var E=function(H){if(!l&&H in C)return C[H];switch(H){case c:return function(){return new s(this,H)};case u:return function(){return new s(this,H)}}return function(){return new s(this,H)}},f=m+" Iterator",k=a==u,O=!1,C=h.prototype,x=C[d]||C[n]||a&&C[a],y=x||E(a),S=a?k?E("entries"):y:void 0,M=m=="Array"&&C.entries||x,I,N,G;if(M&&(G=b(M.call(new h)),G!==Object.prototype&&G.next&&(_(G,f,!0),!L&&typeof G[d]!="function"&&P(G,d,o))),k&&x&&x.name!==u&&(O=!0,y=function(){return x.call(this)}),(!L||w)&&(l||O||!C[d])&&P(C,d,y),p[m]=y,p[f]=o,a)if(I={values:k?y:E(u),keys:t?y:E(c),entries:S},w)for(N in I)N in C||T(C,N,I[N]);else g(g.P+g.F*(l||O),m,I);return I}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(j,Y,D){var L=j("./_wks")("iterator"),g=!1;try{var T=[7][L]();T.return=function(){g=!0},Array.from(T,function(){throw 2})}catch(P){}Y.exports=function(P,p){if(!p&&!g)return!1;var v=!1;try{var _=[7],b=_[L]();b.next=function(){return{done:v=!0}},_[L]=function(){return b},P(_)}catch(d){}return v}},{"./_wks":166}],124:[function(j,Y,D){Y.exports=function(L,g){return{value:g,done:!!L}}},{}],125:[function(j,Y,D){Y.exports={}},{}],126:[function(j,Y,D){Y.exports=!0},{}],127:[function(j,Y,D){var L=j("./_uid")("meta"),g=j("./_is-object"),T=j("./_has"),P=j("./_object-dp").f,p=0,v=Object.isExtensible||function(){return!0},_=!j("./_fails")(function(){return v(Object.preventExtensions({}))}),b=function(u){P(u,L,{value:{i:"O"+ ++p,w:{}}})},d=function(u,o){if(!g(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!T(u,L)){if(!v(u))return"F";if(!o)return"E";b(u)}return u[L].i},l=function(u,o){if(!T(u,L)){if(!v(u))return!0;if(!o)return!1;b(u)}return u[L].w},n=function(u){return _&&c.NEED&&v(u)&&!T(u,L)&&b(u),u},c=Y.exports={KEY:L,NEED:!1,fastKey:d,getWeak:l,onFreeze:n}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(j,Y,D){var L=j("./_global"),g=j("./_task").set,T=L.MutationObserver||L.WebKitMutationObserver,P=L.process,p=L.Promise,v=j("./_cof")(P)=="process";Y.exports=function(){var _,b,d,l=function(){var o,h;for(v&&(o=P.domain)&&o.exit();_;){h=_.fn,_=_.next;try{h()}catch(m){throw _?d():b=void 0,m}}b=void 0,o&&o.enter()};if(v)d=function(){P.nextTick(l)};else if(T&&!(L.navigator&&L.navigator.standalone)){var n=!0,c=document.createTextNode("");new T(l).observe(c,{characterData:!0}),d=function(){c.data=n=!n}}else if(p&&p.resolve){var u=p.resolve(void 0);d=function(){u.then(l)}}else d=function(){g.call(L,l)};return function(o){var h={fn:o,next:void 0};b&&(b.next=h),_||(_=h,d()),b=h}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(j,Y,D){"use strict";var L=j("./_a-function");function g(T){var P,p;this.promise=new T(function(v,_){if(P!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");P=v,p=_}),this.resolve=L(P),this.reject=L(p)}Y.exports.f=function(T){return new g(T)}},{"./_a-function":92}],130:[function(j,Y,D){"use strict";var L=j("./_descriptors"),g=j("./_object-keys"),T=j("./_object-gops"),P=j("./_object-pie"),p=j("./_to-object"),v=j("./_iobject"),_=Object.assign;Y.exports=!_||j("./_fails")(function(){var b={},d={},l=Symbol(),n="abcdefghijklmnopqrst";return b[l]=7,n.split("").forEach(function(c){d[c]=c}),_({},b)[l]!=7||Object.keys(_({},d)).join("")!=n})?function(d,l){for(var n=p(d),c=arguments.length,u=1,o=T.f,h=P.f;c>u;)for(var m=v(arguments[u++]),s=o?g(m).concat(o(m)):g(m),r=s.length,a=0,t;r>a;)t=s[a++],(!L||h.call(m,t))&&(n[t]=m[t]);return n}:_},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(j,Y,D){var L=j("./_an-object"),g=j("./_object-dps"),T=j("./_enum-bug-keys"),P=j("./_shared-key")("IE_PROTO"),p=function(){},v="prototype",_=function(){var b=j("./_dom-create")("iframe"),d=T.length,l="<",n=">",c;for(b.style.display="none",j("./_html").appendChild(b),b.src="javascript:",c=b.contentWindow.document,c.open(),c.write(l+"script"+n+"document.F=Object"+l+"/script"+n),c.close(),_=c.F;d--;)delete _[v][T[d]];return _()};Y.exports=Object.create||function(d,l){var n;return d!==null?(p[v]=L(d),n=new p,p[v]=null,n[P]=d):n=_(),l===void 0?n:g(n,l)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(j,Y,D){var L=j("./_an-object"),g=j("./_ie8-dom-define"),T=j("./_to-primitive"),P=Object.defineProperty;D.f=j("./_descriptors")?Object.defineProperty:function(v,_,b){if(L(v),_=T(_,!0),L(b),g)try{return P(v,_,b)}catch(d){}if("get"in b||"set"in b)throw TypeError("Accessors not supported!");return"value"in b&&(v[_]=b.value),v}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(j,Y,D){var L=j("./_object-dp"),g=j("./_an-object"),T=j("./_object-keys");Y.exports=j("./_descriptors")?Object.defineProperties:function(p,v){g(p);for(var _=T(v),b=_.length,d=0,l;b>d;)L.f(p,l=_[d++],v[l]);return p}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(j,Y,D){var L=j("./_object-pie"),g=j("./_property-desc"),T=j("./_to-iobject"),P=j("./_to-primitive"),p=j("./_has"),v=j("./_ie8-dom-define"),_=Object.getOwnPropertyDescriptor;D.f=j("./_descriptors")?_:function(d,l){if(d=T(d),l=P(l,!0),v)try{return _(d,l)}catch(n){}if(p(d,l))return g(!L.f.call(d,l),d[l])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(j,Y,D){var L=j("./_to-iobject"),g=j("./_object-gopn").f,T={}.toString,P=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(v){try{return g(v)}catch(_){return P.slice()}};Y.exports.f=function(_){return P&&T.call(_)=="[object Window]"?p(_):g(L(_))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(j,Y,D){var L=j("./_object-keys-internal"),g=j("./_enum-bug-keys").concat("length","prototype");D.f=Object.getOwnPropertyNames||function(P){return L(P,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(j,Y,D){D.f=Object.getOwnPropertySymbols},{}],138:[function(j,Y,D){var L=j("./_has"),g=j("./_to-object"),T=j("./_shared-key")("IE_PROTO"),P=Object.prototype;Y.exports=Object.getPrototypeOf||function(p){return p=g(p),L(p,T)?p[T]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?P:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(j,Y,D){var L=j("./_has"),g=j("./_to-iobject"),T=j("./_array-includes")(!1),P=j("./_shared-key")("IE_PROTO");Y.exports=function(p,v){var _=g(p),b=0,d=[],l;for(l in _)l!=P&&(L(_,l)&&d.push(l));for(;v.length>b;)L(_,l=v[b++])&&(~T(d,l)||d.push(l));return d}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(j,Y,D){var L=j("./_object-keys-internal"),g=j("./_enum-bug-keys");Y.exports=Object.keys||function(P){return L(P,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(j,Y,D){D.f={}.propertyIsEnumerable},{}],142:[function(j,Y,D){var L=j("./_export"),g=j("./_core"),T=j("./_fails");Y.exports=function(P,p){var v=(g.Object||{})[P]||Object[P],_={};_[P]=p(v),L(L.S+L.F*T(function(){v(1)}),"Object",_)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(j,Y,D){var L=j("./_descriptors"),g=j("./_object-keys"),T=j("./_to-iobject"),P=j("./_object-pie").f;Y.exports=function(p){return function(v){for(var _=T(v),b=g(_),d=b.length,l=0,n=[],c;d>l;)c=b[l++],(!L||P.call(_,c))&&n.push(p?[c,_[c]]:_[c]);return n}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(j,Y,D){Y.exports=function(L){try{return{e:!1,v:L()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(j,Y,D){var L=j("./_an-object"),g=j("./_is-object"),T=j("./_new-promise-capability");Y.exports=function(P,p){if(L(P),g(p)&&p.constructor===P)return p;var v=T.f(P),_=v.resolve;return _(p),v.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(j,Y,D){Y.exports=function(L,g){return{enumerable:!(L&1),configurable:!(L&2),writable:!(L&4),value:g}}},{}],147:[function(j,Y,D){var L=j("./_hide");Y.exports=function(g,T,P){for(var p in T)P&&g[p]?g[p]=T[p]:L(g,p,T[p]);return g}},{"./_hide":112}],148:[function(j,Y,D){Y.exports=j("./_hide")},{"./_hide":112}],149:[function(j,Y,D){"use strict";var L=j("./_global"),g=j("./_core"),T=j("./_object-dp"),P=j("./_descriptors"),p=j("./_wks")("species");Y.exports=function(v){var _=typeof g[v]=="function"?g[v]:L[v];P&&_&&!_[p]&&T.f(_,p,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(j,Y,D){var L=j("./_object-dp").f,g=j("./_has"),T=j("./_wks")("toStringTag");Y.exports=function(P,p,v){P&&!g(P=v?P:P.prototype,T)&&L(P,T,{configurable:!0,value:p})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(j,Y,D){var L=j("./_shared")("keys"),g=j("./_uid");Y.exports=function(T){return L[T]||(L[T]=g(T))}},{"./_shared":152,"./_uid":162}],152:[function(j,Y,D){var L=j("./_core"),g=j("./_global"),T="__core-js_shared__",P=g[T]||(g[T]={});(Y.exports=function(p,v){return P[p]||(P[p]=v!==void 0?v:{})})("versions",[]).push({version:L.version,mode:j("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(j,Y,D){var L=j("./_an-object"),g=j("./_a-function"),T=j("./_wks")("species");Y.exports=function(P,p){var v=L(P).constructor,_;return v===void 0||(_=L(v)[T])==null?p:g(_)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(j,Y,D){var L=j("./_to-integer"),g=j("./_defined");Y.exports=function(T){return function(P,p){var v=String(g(P)),_=L(p),b=v.length,d,l;return _<0||_>=b?T?"":void 0:(d=v.charCodeAt(_),d<55296||d>56319||_+1===b||(l=v.charCodeAt(_+1))<56320||l>57343?T?v.charAt(_):d:T?v.slice(_,_+2):(d-55296<<10)+(l-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(j,Y,D){var L=j("./_ctx"),g=j("./_invoke"),T=j("./_html"),P=j("./_dom-create"),p=j("./_global"),v=p.process,_=p.setImmediate,b=p.clearImmediate,d=p.MessageChannel,l=p.Dispatch,n=0,c={},u="onreadystatechange",o,h,m,s=function(){var a=+this;if(c.hasOwnProperty(a)){var t=c[a];delete c[a],t()}},r=function(a){s.call(a.data)};(!_||!b)&&(_=function(t){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return c[++n]=function(){g(typeof t=="function"?t:Function(t),w)},o(n),n},b=function(t){delete c[t]},j("./_cof")(v)=="process"?o=function(a){v.nextTick(L(s,a,1))}:l&&l.now?o=function(a){l.now(L(s,a,1))}:d?(h=new d,m=h.port2,h.port1.onmessage=r,o=L(m.postMessage,m,1)):p.addEventListener&&typeof postMessage=="function"&&!p.importScripts?(o=function(a){p.postMessage(a+"","*")},p.addEventListener("message",r,!1)):u in P("script")?o=function(a){T.appendChild(P("script"))[u]=function(){T.removeChild(this),s.call(a)}}:o=function(a){setTimeout(L(s,a,1),0)}),Y.exports={set:_,clear:b}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(j,Y,D){var L=j("./_to-integer"),g=Math.max,T=Math.min;Y.exports=function(P,p){return P=L(P),P<0?g(P+p,0):T(P,p)}},{"./_to-integer":157}],157:[function(j,Y,D){var L=Math.ceil,g=Math.floor;Y.exports=function(T){return isNaN(T=+T)?0:(T>0?g:L)(T)}},{}],158:[function(j,Y,D){var L=j("./_iobject"),g=j("./_defined");Y.exports=function(T){return L(g(T))}},{"./_defined":102,"./_iobject":116}],159:[function(j,Y,D){var L=j("./_to-integer"),g=Math.min;Y.exports=function(T){return T>0?g(L(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(j,Y,D){var L=j("./_defined");Y.exports=function(g){return Object(L(g))}},{"./_defined":102}],161:[function(j,Y,D){var L=j("./_is-object");Y.exports=function(g,T){if(!L(g))return g;var P,p;if(T&&typeof(P=g.toString)=="function"&&!L(p=P.call(g)))return p;if(typeof(P=g.valueOf)=="function"&&!L(p=P.call(g)))return p;if(!T&&typeof(P=g.toString)=="function"&&!L(p=P.call(g)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(j,Y,D){var L=0,g=Math.random();Y.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++L+g).toString(36))}},{}],163:[function(j,Y,D){var L=j("./_global"),g=L.navigator;Y.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(j,Y,D){var L=j("./_global"),g=j("./_core"),T=j("./_library"),P=j("./_wks-ext"),p=j("./_object-dp").f;Y.exports=function(v){var _=g.Symbol||(g.Symbol=T?{}:L.Symbol||{});v.charAt(0)!="_"&&!(v in _)&&p(_,v,{value:P.f(v)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(j,Y,D){D.f=j("./_wks")},{"./_wks":166}],166:[function(j,Y,D){var L=j("./_shared")("wks"),g=j("./_uid"),T=j("./_global").Symbol,P=typeof T=="function",p=Y.exports=function(v){return L[v]||(L[v]=P&&T[v]||(P?T:g)("Symbol."+v))};p.store=L},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(j,Y,D){var L=j("./_classof"),g=j("./_wks")("iterator"),T=j("./_iterators");Y.exports=j("./_core").getIteratorMethod=function(P){if(P!=null)return P[g]||P["@@iterator"]||T[L(P)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(j,Y,D){"use strict";var L=j("./_ctx"),g=j("./_export"),T=j("./_to-object"),P=j("./_iter-call"),p=j("./_is-array-iter"),v=j("./_to-length"),_=j("./_create-property"),b=j("./core.get-iterator-method");g(g.S+g.F*!j("./_iter-detect")(function(d){Array.from(d)}),"Array",{from:function(l){var n=T(l),c=typeof this=="function"?this:Array,u=arguments.length,o=u>1?arguments[1]:void 0,h=o!==void 0,m=0,s=b(n),r,a,t,w;if(h&&(o=L(o,u>2?arguments[2]:void 0,2)),s!=null&&!(c==Array&&p(s)))for(w=s.call(n),a=new c;!(t=w.next()).done;m++)_(a,m,h?P(w,o,[t.value,m],!0):t.value);else for(r=v(n.length),a=new c(r);r>m;m++)_(a,m,h?o(n[m],m):n[m]);return a.length=m,a}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(j,Y,D){"use strict";var L=j("./_add-to-unscopables"),g=j("./_iter-step"),T=j("./_iterators"),P=j("./_to-iobject");Y.exports=j("./_iter-define")(Array,"Array",function(p,v){this._t=P(p),this._i=0,this._k=v},function(){var p=this._t,v=this._k,_=this._i++;return!p||_>=p.length?(this._t=void 0,g(1)):v=="keys"?g(0,_):v=="values"?g(0,p[_]):g(0,[_,p[_]])},"values"),T.Arguments=T.Array,L("keys"),L("values"),L("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(j,Y,D){"use strict";var L=j("./_is-object"),g=j("./_object-gpo"),T=j("./_wks")("hasInstance"),P=Function.prototype;T in P||j("./_object-dp").f(P,T,{value:function(p){if(typeof this!="function"||!L(p))return!1;if(!L(this.prototype))return p instanceof this;for(;p=g(p);)if(this.prototype===p)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(j,Y,D){var L=j("./_export");L(L.S+L.F,"Object",{assign:j("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(j,Y,D){var L=j("./_export");L(L.S,"Object",{create:j("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(j,Y,D){var L=j("./_export");L(L.S+L.F*!j("./_descriptors"),"Object",{defineProperty:j("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(j,Y,D){j("./_object-sap")("getOwnPropertyNames",function(){return j("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(j,Y,D){var L=j("./_to-object"),g=j("./_object-gpo");j("./_object-sap")("getPrototypeOf",function(){return function(P){return g(L(P))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(j,Y,D){var L=j("./_to-object"),g=j("./_object-keys");j("./_object-sap")("keys",function(){return function(P){return g(L(P))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(j,Y,D){arguments[4][71][0].apply(D,arguments)},{dup:71}],178:[function(j,Y,D){"use strict";var L=j("./_library"),g=j("./_global"),T=j("./_ctx"),P=j("./_classof"),p=j("./_export"),v=j("./_is-object"),_=j("./_a-function"),b=j("./_an-instance"),d=j("./_for-of"),l=j("./_species-constructor"),n=j("./_task").set,c=j("./_microtask")(),u=j("./_new-promise-capability"),o=j("./_perform"),h=j("./_user-agent"),m=j("./_promise-resolve"),s="Promise",r=g.TypeError,a=g.process,t=a&&a.versions,w=t&&t.v8||"",E=g[s],f=P(a)=="process",k=function(){},O,C,x,y,S=C=u.f,M=!!function(){try{var W=E.resolve(1),X=(W.constructor={})[j("./_wks")("species")]=function(ne){ne(k,k)};return(f||typeof PromiseRejectionEvent=="function")&&W.then(k)instanceof X&&w.indexOf("6.6")!==0&&h.indexOf("Chrome/66")===-1}catch(ne){}}(),I=function(W){var X;return v(W)&&typeof(X=W.then)=="function"?X:!1},N=function(W,X){if(W._n)return;W._n=!0;var ne=W._c;c(function(){for(var fe=W._v,me=W._s==1,Ae=0,De=function(ye){var Oe=me?ye.ok:ye.fail,xe=ye.resolve,ue=ye.reject,le=ye.domain,re,pe,ee;try{Oe?(me||(W._h==2&&B(W),W._h=1),Oe===!0?re=fe:(le&&le.enter(),re=Oe(fe),le&&(le.exit(),ee=!0)),re===ye.promise?ue(r("Promise-chain cycle")):(pe=I(re))?pe.call(re,xe,ue):xe(re)):ue(fe)}catch(te){le&&!ee&&le.exit(),ue(te)}};ne.length>Ae;)De(ne[Ae++]);W._c=[],W._n=!1,X&&!W._h&&G(W)})},G=function(W){n.call(g,function(){var X=W._v,ne=H(W),fe,me,Ae;if(ne&&(fe=o(function(){f?a.emit("unhandledRejection",X,W):(me=g.onunhandledrejection)?me({promise:W,reason:X}):(Ae=g.console)&&Ae.error&&Ae.error("Unhandled promise rejection",X)}),W._h=f||H(W)?2:1),W._a=void 0,ne&&fe.e)throw fe.v})},H=function(W){return W._h!==1&&(W._a||W._c).length===0},B=function(W){n.call(g,function(){var X;f?a.emit("rejectionHandled",W):(X=g.onrejectionhandled)&&X({promise:W,reason:W._v})})},K=function(W){var X=this;if(X._d)return;X._d=!0,X=X._w||X,X._v=W,X._s=2,X._a||(X._a=X._c.slice()),N(X,!0)},U=function(W){var X=this,ne;if(X._d)return;X._d=!0,X=X._w||X;try{if(X===W)throw r("Promise can't be resolved itself");(ne=I(W))?c(function(){var fe={_w:X,_d:!1};try{ne.call(W,T(U,fe,1),T(K,fe,1))}catch(me){K.call(fe,me)}}):(X._v=W,X._s=1,N(X,!1))}catch(fe){K.call({_w:X,_d:!1},fe)}};M||(E=function(X){b(this,E,s,"_h"),_(X),O.call(this);try{X(T(U,this,1),T(K,this,1))}catch(ne){K.call(this,ne)}},O=function(X){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},O.prototype=j("./_redefine-all")(E.prototype,{then:function(X,ne){var fe=S(l(this,E));return fe.ok=typeof X=="function"?X:!0,fe.fail=typeof ne=="function"&&ne,fe.domain=f?a.domain:void 0,this._c.push(fe),this._a&&this._a.push(fe),this._s&&N(this,!1),fe.promise},catch:function(W){return this.then(void 0,W)}}),x=function(){var W=new O;this.promise=W,this.resolve=T(U,W,1),this.reject=T(K,W,1)},u.f=S=function(W){return W===E||W===y?new x(W):C(W)}),p(p.G+p.W+p.F*!M,{Promise:E}),j("./_set-to-string-tag")(E,s),j("./_set-species")(s),y=j("./_core")[s],p(p.S+p.F*!M,s,{reject:function(X){var ne=S(this),fe=ne.reject;return fe(X),ne.promise}}),p(p.S+p.F*(L||!M),s,{resolve:function(X){return m(L&&this===y?E:this,X)}}),p(p.S+p.F*!(M&&j("./_iter-detect")(function(W){E.all(W).catch(k)})),s,{all:function(X){var ne=this,fe=S(ne),me=fe.resolve,Ae=fe.reject,De=o(function(){var ye=[],Oe=0,xe=1;d(X,!1,function(ue){var le=Oe++,re=!1;ye.push(void 0),xe++,ne.resolve(ue).then(function(pe){if(re)return;re=!0,ye[le]=pe,--xe||me(ye)},Ae)}),--xe||me(ye)});return De.e&&Ae(De.v),fe.promise},race:function(X){var ne=this,fe=S(ne),me=fe.reject,Ae=o(function(){d(X,!1,function(De){ne.resolve(De).then(fe.resolve,me)})});return Ae.e&&me(Ae.v),fe.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(j,Y,D){var L=j("./_export"),g=j("./_to-absolute-index"),T=String.fromCharCode,P=String.fromCodePoint;L(L.S+L.F*(!!P&&P.length!=1),"String",{fromCodePoint:function(v){for(var _=[],b=arguments.length,d=0,l;b>d;){if(l=+arguments[d++],g(l,1114111)!==l)throw RangeError(l+" is not a valid code point");_.push(l<65536?T(l):T(((l-=65536)>>10)+55296,l%1024+56320))}return _.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(j,Y,D){"use strict";var L=j("./_string-at")(!0);j("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,T=this._i,P;return T>=g.length?{value:void 0,done:!0}:(P=L(g,T),this._i+=P.length,{value:P,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(j,Y,D){"use strict";var L=j("./_global"),g=j("./_has"),T=j("./_descriptors"),P=j("./_export"),p=j("./_redefine"),v=j("./_meta").KEY,_=j("./_fails"),b=j("./_shared"),d=j("./_set-to-string-tag"),l=j("./_uid"),n=j("./_wks"),c=j("./_wks-ext"),u=j("./_wks-define"),o=j("./_enum-keys"),h=j("./_is-array"),m=j("./_an-object"),s=j("./_is-object"),r=j("./_to-object"),a=j("./_to-iobject"),t=j("./_to-primitive"),w=j("./_property-desc"),E=j("./_object-create"),f=j("./_object-gopn-ext"),k=j("./_object-gopd"),O=j("./_object-gops"),C=j("./_object-dp"),x=j("./_object-keys"),y=k.f,S=C.f,M=f.f,I=L.Symbol,N=L.JSON,G=N&&N.stringify,H="prototype",B=n("_hidden"),K=n("toPrimitive"),U={}.propertyIsEnumerable,W=b("symbol-registry"),X=b("symbols"),ne=b("op-symbols"),fe=Object[H],me=typeof I=="function"&&!!O.f,Ae=L.QObject,De=!Ae||!Ae[H]||!Ae[H].findChild,ye=T&&_(function(){return E(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a!=7})?function(ge,Te,Je){var rt=y(fe,Te);rt&&delete fe[Te],S(ge,Te,Je),rt&&ge!==fe&&S(fe,Te,rt)}:S,Oe=function(ge){var Te=X[ge]=E(I[H]);return Te._k=ge,Te},xe=me&&typeof I.iterator=="symbol"?function(ge){return typeof ge=="symbol"}:function(ge){return ge instanceof I},ue=function(Te,Je,rt){return Te===fe&&ue(ne,Je,rt),m(Te),Je=t(Je,!0),m(rt),g(X,Je)?(rt.enumerable?(g(Te,B)&&Te[B][Je]&&(Te[B][Je]=!1),rt=E(rt,{enumerable:w(0,!1)})):(g(Te,B)||S(Te,B,w(1,{})),Te[B][Je]=!0),ye(Te,Je,rt)):S(Te,Je,rt)},le=function(Te,Je){m(Te);for(var rt=o(Je=a(Je)),nt=0,at=rt.length,ct;at>nt;)ue(Te,ct=rt[nt++],Je[ct]);return Te},re=function(Te,Je){return Je===void 0?E(Te):le(E(Te),Je)},pe=function(Te){var Je=U.call(this,Te=t(Te,!0));return this===fe&&g(X,Te)&&!g(ne,Te)?!1:Je||!g(this,Te)||!g(X,Te)||g(this,B)&&this[B][Te]?Je:!0},ee=function(Te,Je){if(Te=a(Te),Je=t(Je,!0),Te===fe&&g(X,Je)&&!g(ne,Je))return;var rt=y(Te,Je);return rt&&g(X,Je)&&!(g(Te,B)&&Te[B][Je])&&(rt.enumerable=!0),rt},te=function(Te){for(var Je=M(a(Te)),rt=[],nt=0,at;Je.length>nt;)!g(X,at=Je[nt++])&&at!=B&&at!=v&&rt.push(at);return rt},ce=function(Te){for(var Je=Te===fe,rt=M(Je?ne:a(Te)),nt=[],at=0,ct;rt.length>at;)g(X,ct=rt[at++])&&(Je?g(fe,ct):!0)&&nt.push(X[ct]);return nt};me||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var Te=l(arguments.length>0?arguments[0]:void 0),Je=function(rt){this===fe&&Je.call(ne,rt),g(this,B)&&g(this[B],Te)&&(this[B][Te]=!1),ye(this,Te,w(1,rt))};return T&&De&&ye(fe,Te,{configurable:!0,set:Je}),Oe(Te)},p(I[H],"toString",function(){return this._k}),k.f=ee,C.f=ue,j("./_object-gopn").f=f.f=te,j("./_object-pie").f=pe,O.f=ce,T&&!j("./_library")&&p(fe,"propertyIsEnumerable",pe,!0),c.f=function(ge){return Oe(n(ge))}),P(P.G+P.W+P.F*!me,{Symbol:I});for(var q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Q=0;q.length>Q;)n(q[Q++]);for(var V=x(n.store),Z=0;V.length>Z;)u(V[Z++]);P(P.S+P.F*!me,"Symbol",{for:function(ge){return g(W,ge+="")?W[ge]:W[ge]=I(ge)},keyFor:function(Te){if(!xe(Te))throw TypeError(Te+" is not a symbol!");for(var Je in W)if(W[Je]===Te)return Je},useSetter:function(){De=!0},useSimple:function(){De=!1}}),P(P.S+P.F*!me,"Object",{create:re,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ce});var be=_(function(){O.f(1)});P(P.S+P.F*be,"Object",{getOwnPropertySymbols:function(Te){return O.f(r(Te))}}),N&&P(P.S+P.F*(!me||_(function(){var ge=I();return G([ge])!="[null]"||G({a:ge})!="{}"||G(Object(ge))!="{}"})),"JSON",{stringify:function(Te){for(var Je=[Te],rt=1,nt,at;arguments.length>rt;)Je.push(arguments[rt++]);return at=nt=Je[1],!s(nt)&&Te===void 0||xe(Te)?void 0:(h(nt)||(nt=function(ct,ht){if(typeof at=="function"&&(ht=at.call(this,ct,ht)),!xe(ht))return ht}),Je[1]=nt,G.apply(N,Je))}}),I[H][K]||j("./_hide")(I[H],K,I[H].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(L.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(j,Y,D){var L=j("./_export"),g=j("./_object-to-array")(!0);L(L.S,"Object",{entries:function(P){return g(P)}})},{"./_export":107,"./_object-to-array":143}],183:[function(j,Y,D){"use strict";var L=j("./_export"),g=j("./_core"),T=j("./_global"),P=j("./_species-constructor"),p=j("./_promise-resolve");L(L.P+L.R,"Promise",{finally:function(v){var _=P(this,g.Promise||T.Promise),b=typeof v=="function";return this.then(b?function(d){return p(_,v()).then(function(){return d})}:v,b?function(d){return p(_,v()).then(function(){throw d})}:v)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(j,Y,D){"use strict";var L=j("./_export"),g=j("./_new-promise-capability"),T=j("./_perform");L(L.S,"Promise",{try:function(P){var p=g.f(this),v=T(P);return(v.e?p.reject:p.resolve)(v.v),p.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(j,Y,D){j("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(j,Y,D){j("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(j,Y,D){j("./es6.array.iterator");for(var L=j("./_global"),g=j("./_hide"),T=j("./_iterators"),P=j("./_wks")("toStringTag"),p="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),v=0;v0?"-":"+")+v(Math.floor(Math.abs(x)/60)*100+Math.abs(x)%60,4),S:["th","st","nd","rd"][a%10>3?0:(a%100-a%10!=10)*a%10],W:y,N:S};return o.replace(l,function(I){return I in M?M[I]:I.slice(1,I.length-1)})}}();p.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},p.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function v(l,n){for(l=String(l),n=n||2;l.lengthl;)if(n=b[l++],n!=n)return!0}else for(;d>l;l++)if((P||l in b)&&b[l]===v)return P||l||0;return!P&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(j,Y,D){var L=j("./_cof"),g=j("./_wks")("toStringTag"),T=L(function(){return arguments}())=="Arguments",P=function(p,v){try{return p[v]}catch(S){}};Y.exports=function(p){var v,S,b;return p===void 0?"Undefined":p===null?"Null":typeof(S=P(v=Object(p),g))=="string"?S:T?L(v):(b=L(v))=="Object"&&typeof v.callee=="function"?"Arguments":b}},{"./_cof":98,"./_wks":166}],98:[function(j,Y,D){var L={}.toString;Y.exports=function(g){return L.call(g).slice(8,-1)}},{}],99:[function(j,Y,D){var L=Y.exports={version:"2.6.11"};typeof __e=="number"&&(__e=L)},{}],100:[function(j,Y,D){"use strict";var L=j("./_object-dp"),g=j("./_property-desc");Y.exports=function(T,P,p){P in T?L.f(T,P,g(0,p)):T[P]=p}},{"./_object-dp":132,"./_property-desc":146}],101:[function(j,Y,D){var L=j("./_a-function");Y.exports=function(g,T,P){if(L(g),T===void 0)return g;switch(P){case 1:return function(p){return g.call(T,p)};case 2:return function(p,v){return g.call(T,p,v)};case 3:return function(p,v,S){return g.call(T,p,v,S)}}return function(){return g.apply(T,arguments)}}},{"./_a-function":92}],102:[function(j,Y,D){Y.exports=function(L){if(L==null)throw TypeError("Can't call method on "+L);return L}},{}],103:[function(j,Y,D){Y.exports=!j("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(j,Y,D){var L=j("./_is-object"),g=j("./_global").document,T=L(g)&&L(g.createElement);Y.exports=function(P){return T?g.createElement(P):{}}},{"./_global":110,"./_is-object":119}],105:[function(j,Y,D){Y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(j,Y,D){var L=j("./_object-keys"),g=j("./_object-gops"),T=j("./_object-pie");Y.exports=function(P){var p=L(P),v=g.f;if(v)for(var S=v(P),b=T.f,d=0,l;S.length>d;)b.call(P,l=S[d++])&&p.push(l);return p}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(j,Y,D){var L=j("./_global"),g=j("./_core"),T=j("./_ctx"),P=j("./_hide"),p=j("./_has"),v="prototype",S=function(b,d,l){var n=b&S.F,c=b&S.G,u=b&S.S,o=b&S.P,h=b&S.B,m=b&S.W,s=c?g:g[d]||(g[d]={}),r=s[v],a=c?L:u?L[d]:(L[d]||{})[v],t,w,E;c&&(l=d);for(t in l){if(w=!n&&a&&a[t]!==void 0,w&&p(s,t))continue;E=w?a[t]:l[t],s[t]=c&&typeof a[t]!="function"?l[t]:h&&w?T(E,L):m&&a[t]==E?function(f){var k=function(O,C,x){if(this instanceof f){switch(arguments.length){case 0:return new f;case 1:return new f(O);case 2:return new f(O,C)}return new f(O,C,x)}return f.apply(this,arguments)};return k[v]=f[v],k}(E):o&&typeof E=="function"?T(Function.call,E):E,o&&((s.virtual||(s.virtual={}))[t]=E,b&S.R&&r&&!r[t]&&P(r,t,E))}};S.F=1,S.G=2,S.S=4,S.P=8,S.B=16,S.W=32,S.U=64,S.R=128,Y.exports=S},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(j,Y,D){Y.exports=function(L){try{return!!L()}catch(g){return!0}}},{}],109:[function(j,Y,D){var L=j("./_ctx"),g=j("./_iter-call"),T=j("./_is-array-iter"),P=j("./_an-object"),p=j("./_to-length"),v=j("./core.get-iterator-method"),S={},b={},D=Y.exports=function(d,l,n,c,u){var o=u?function(){return d}:v(d),h=L(n,c,l?2:1),m=0,s,r,a,t;if(typeof o!="function")throw TypeError(d+" is not iterable!");if(T(o)){for(s=p(d.length);s>m;m++)if(t=l?h(P(r=d[m])[0],r[1]):h(d[m]),t===S||t===b)return t}else for(a=o.call(d);!(r=a.next()).done;)if(t=g(a,h,r.value,l),t===S||t===b)return t};D.BREAK=S,D.RETURN=b},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(j,Y,D){var L=Y.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=L)},{}],111:[function(j,Y,D){var L={}.hasOwnProperty;Y.exports=function(g,T){return L.call(g,T)}},{}],112:[function(j,Y,D){var L=j("./_object-dp"),g=j("./_property-desc");Y.exports=j("./_descriptors")?function(T,P,p){return L.f(T,P,g(1,p))}:function(T,P,p){return T[P]=p,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(j,Y,D){var L=j("./_global").document;Y.exports=L&&L.documentElement},{"./_global":110}],114:[function(j,Y,D){Y.exports=!j("./_descriptors")&&!j("./_fails")(function(){return Object.defineProperty(j("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(j,Y,D){Y.exports=function(L,g,T){var P=T===void 0;switch(g.length){case 0:return P?L():L.call(T);case 1:return P?L(g[0]):L.call(T,g[0]);case 2:return P?L(g[0],g[1]):L.call(T,g[0],g[1]);case 3:return P?L(g[0],g[1],g[2]):L.call(T,g[0],g[1],g[2]);case 4:return P?L(g[0],g[1],g[2],g[3]):L.call(T,g[0],g[1],g[2],g[3])}return L.apply(T,g)}},{}],116:[function(j,Y,D){var L=j("./_cof");Y.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return L(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(j,Y,D){var L=j("./_iterators"),g=j("./_wks")("iterator"),T=Array.prototype;Y.exports=function(P){return P!==void 0&&(L.Array===P||T[g]===P)}},{"./_iterators":125,"./_wks":166}],118:[function(j,Y,D){var L=j("./_cof");Y.exports=Array.isArray||function(T){return L(T)=="Array"}},{"./_cof":98}],119:[function(j,Y,D){Y.exports=function(L){return typeof L=="object"?L!==null:typeof L=="function"}},{}],120:[function(j,Y,D){var L=j("./_an-object");Y.exports=function(g,T,P,p){try{return p?T(L(P)[0],P[1]):T(P)}catch(S){var v=g.return;throw v!==void 0&&L(v.call(g)),S}}},{"./_an-object":95}],121:[function(j,Y,D){"use strict";var L=j("./_object-create"),g=j("./_property-desc"),T=j("./_set-to-string-tag"),P={};j("./_hide")(P,j("./_wks")("iterator"),function(){return this}),Y.exports=function(p,v,S){p.prototype=L(P,{next:g(1,S)}),T(p,v+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(j,Y,D){"use strict";var L=j("./_library"),g=j("./_export"),T=j("./_redefine"),P=j("./_hide"),p=j("./_iterators"),v=j("./_iter-create"),S=j("./_set-to-string-tag"),b=j("./_object-gpo"),d=j("./_wks")("iterator"),l=!([].keys&&"next"in[].keys()),n="@@iterator",c="keys",u="values",o=function(){return this};Y.exports=function(h,m,s,r,a,t,w){v(s,m,r);var E=function(H){if(!l&&H in C)return C[H];switch(H){case c:return function(){return new s(this,H)};case u:return function(){return new s(this,H)}}return function(){return new s(this,H)}},f=m+" Iterator",k=a==u,O=!1,C=h.prototype,x=C[d]||C[n]||a&&C[a],y=x||E(a),_=a?k?E("entries"):y:void 0,M=m=="Array"&&C.entries||x,I,N,G;if(M&&(G=b(M.call(new h)),G!==Object.prototype&&G.next&&(S(G,f,!0),!L&&typeof G[d]!="function"&&P(G,d,o))),k&&x&&x.name!==u&&(O=!0,y=function(){return x.call(this)}),(!L||w)&&(l||O||!C[d])&&P(C,d,y),p[m]=y,p[f]=o,a)if(I={values:k?y:E(u),keys:t?y:E(c),entries:_},w)for(N in I)N in C||T(C,N,I[N]);else g(g.P+g.F*(l||O),m,I);return I}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(j,Y,D){var L=j("./_wks")("iterator"),g=!1;try{var T=[7][L]();T.return=function(){g=!0},Array.from(T,function(){throw 2})}catch(P){}Y.exports=function(P,p){if(!p&&!g)return!1;var v=!1;try{var S=[7],b=S[L]();b.next=function(){return{done:v=!0}},S[L]=function(){return b},P(S)}catch(d){}return v}},{"./_wks":166}],124:[function(j,Y,D){Y.exports=function(L,g){return{value:g,done:!!L}}},{}],125:[function(j,Y,D){Y.exports={}},{}],126:[function(j,Y,D){Y.exports=!0},{}],127:[function(j,Y,D){var L=j("./_uid")("meta"),g=j("./_is-object"),T=j("./_has"),P=j("./_object-dp").f,p=0,v=Object.isExtensible||function(){return!0},S=!j("./_fails")(function(){return v(Object.preventExtensions({}))}),b=function(u){P(u,L,{value:{i:"O"+ ++p,w:{}}})},d=function(u,o){if(!g(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!T(u,L)){if(!v(u))return"F";if(!o)return"E";b(u)}return u[L].i},l=function(u,o){if(!T(u,L)){if(!v(u))return!0;if(!o)return!1;b(u)}return u[L].w},n=function(u){return S&&c.NEED&&v(u)&&!T(u,L)&&b(u),u},c=Y.exports={KEY:L,NEED:!1,fastKey:d,getWeak:l,onFreeze:n}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(j,Y,D){var L=j("./_global"),g=j("./_task").set,T=L.MutationObserver||L.WebKitMutationObserver,P=L.process,p=L.Promise,v=j("./_cof")(P)=="process";Y.exports=function(){var S,b,d,l=function(){var o,h;for(v&&(o=P.domain)&&o.exit();S;){h=S.fn,S=S.next;try{h()}catch(m){throw S?d():b=void 0,m}}b=void 0,o&&o.enter()};if(v)d=function(){P.nextTick(l)};else if(T&&!(L.navigator&&L.navigator.standalone)){var n=!0,c=document.createTextNode("");new T(l).observe(c,{characterData:!0}),d=function(){c.data=n=!n}}else if(p&&p.resolve){var u=p.resolve(void 0);d=function(){u.then(l)}}else d=function(){g.call(L,l)};return function(o){var h={fn:o,next:void 0};b&&(b.next=h),S||(S=h,d()),b=h}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(j,Y,D){"use strict";var L=j("./_a-function");function g(T){var P,p;this.promise=new T(function(v,S){if(P!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");P=v,p=S}),this.resolve=L(P),this.reject=L(p)}Y.exports.f=function(T){return new g(T)}},{"./_a-function":92}],130:[function(j,Y,D){"use strict";var L=j("./_descriptors"),g=j("./_object-keys"),T=j("./_object-gops"),P=j("./_object-pie"),p=j("./_to-object"),v=j("./_iobject"),S=Object.assign;Y.exports=!S||j("./_fails")(function(){var b={},d={},l=Symbol(),n="abcdefghijklmnopqrst";return b[l]=7,n.split("").forEach(function(c){d[c]=c}),S({},b)[l]!=7||Object.keys(S({},d)).join("")!=n})?function(d,l){for(var n=p(d),c=arguments.length,u=1,o=T.f,h=P.f;c>u;)for(var m=v(arguments[u++]),s=o?g(m).concat(o(m)):g(m),r=s.length,a=0,t;r>a;)t=s[a++],(!L||h.call(m,t))&&(n[t]=m[t]);return n}:S},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(j,Y,D){var L=j("./_an-object"),g=j("./_object-dps"),T=j("./_enum-bug-keys"),P=j("./_shared-key")("IE_PROTO"),p=function(){},v="prototype",S=function(){var b=j("./_dom-create")("iframe"),d=T.length,l="<",n=">",c;for(b.style.display="none",j("./_html").appendChild(b),b.src="javascript:",c=b.contentWindow.document,c.open(),c.write(l+"script"+n+"document.F=Object"+l+"/script"+n),c.close(),S=c.F;d--;)delete S[v][T[d]];return S()};Y.exports=Object.create||function(d,l){var n;return d!==null?(p[v]=L(d),n=new p,p[v]=null,n[P]=d):n=S(),l===void 0?n:g(n,l)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(j,Y,D){var L=j("./_an-object"),g=j("./_ie8-dom-define"),T=j("./_to-primitive"),P=Object.defineProperty;D.f=j("./_descriptors")?Object.defineProperty:function(v,S,b){if(L(v),S=T(S,!0),L(b),g)try{return P(v,S,b)}catch(d){}if("get"in b||"set"in b)throw TypeError("Accessors not supported!");return"value"in b&&(v[S]=b.value),v}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(j,Y,D){var L=j("./_object-dp"),g=j("./_an-object"),T=j("./_object-keys");Y.exports=j("./_descriptors")?Object.defineProperties:function(p,v){g(p);for(var S=T(v),b=S.length,d=0,l;b>d;)L.f(p,l=S[d++],v[l]);return p}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(j,Y,D){var L=j("./_object-pie"),g=j("./_property-desc"),T=j("./_to-iobject"),P=j("./_to-primitive"),p=j("./_has"),v=j("./_ie8-dom-define"),S=Object.getOwnPropertyDescriptor;D.f=j("./_descriptors")?S:function(d,l){if(d=T(d),l=P(l,!0),v)try{return S(d,l)}catch(n){}if(p(d,l))return g(!L.f.call(d,l),d[l])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(j,Y,D){var L=j("./_to-iobject"),g=j("./_object-gopn").f,T={}.toString,P=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(v){try{return g(v)}catch(S){return P.slice()}};Y.exports.f=function(S){return P&&T.call(S)=="[object Window]"?p(S):g(L(S))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(j,Y,D){var L=j("./_object-keys-internal"),g=j("./_enum-bug-keys").concat("length","prototype");D.f=Object.getOwnPropertyNames||function(P){return L(P,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(j,Y,D){D.f=Object.getOwnPropertySymbols},{}],138:[function(j,Y,D){var L=j("./_has"),g=j("./_to-object"),T=j("./_shared-key")("IE_PROTO"),P=Object.prototype;Y.exports=Object.getPrototypeOf||function(p){return p=g(p),L(p,T)?p[T]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?P:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(j,Y,D){var L=j("./_has"),g=j("./_to-iobject"),T=j("./_array-includes")(!1),P=j("./_shared-key")("IE_PROTO");Y.exports=function(p,v){var S=g(p),b=0,d=[],l;for(l in S)l!=P&&(L(S,l)&&d.push(l));for(;v.length>b;)L(S,l=v[b++])&&(~T(d,l)||d.push(l));return d}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(j,Y,D){var L=j("./_object-keys-internal"),g=j("./_enum-bug-keys");Y.exports=Object.keys||function(P){return L(P,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(j,Y,D){D.f={}.propertyIsEnumerable},{}],142:[function(j,Y,D){var L=j("./_export"),g=j("./_core"),T=j("./_fails");Y.exports=function(P,p){var v=(g.Object||{})[P]||Object[P],S={};S[P]=p(v),L(L.S+L.F*T(function(){v(1)}),"Object",S)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(j,Y,D){var L=j("./_descriptors"),g=j("./_object-keys"),T=j("./_to-iobject"),P=j("./_object-pie").f;Y.exports=function(p){return function(v){for(var S=T(v),b=g(S),d=b.length,l=0,n=[],c;d>l;)c=b[l++],(!L||P.call(S,c))&&n.push(p?[c,S[c]]:S[c]);return n}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(j,Y,D){Y.exports=function(L){try{return{e:!1,v:L()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(j,Y,D){var L=j("./_an-object"),g=j("./_is-object"),T=j("./_new-promise-capability");Y.exports=function(P,p){if(L(P),g(p)&&p.constructor===P)return p;var v=T.f(P),S=v.resolve;return S(p),v.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(j,Y,D){Y.exports=function(L,g){return{enumerable:!(L&1),configurable:!(L&2),writable:!(L&4),value:g}}},{}],147:[function(j,Y,D){var L=j("./_hide");Y.exports=function(g,T,P){for(var p in T)P&&g[p]?g[p]=T[p]:L(g,p,T[p]);return g}},{"./_hide":112}],148:[function(j,Y,D){Y.exports=j("./_hide")},{"./_hide":112}],149:[function(j,Y,D){"use strict";var L=j("./_global"),g=j("./_core"),T=j("./_object-dp"),P=j("./_descriptors"),p=j("./_wks")("species");Y.exports=function(v){var S=typeof g[v]=="function"?g[v]:L[v];P&&S&&!S[p]&&T.f(S,p,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(j,Y,D){var L=j("./_object-dp").f,g=j("./_has"),T=j("./_wks")("toStringTag");Y.exports=function(P,p,v){P&&!g(P=v?P:P.prototype,T)&&L(P,T,{configurable:!0,value:p})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(j,Y,D){var L=j("./_shared")("keys"),g=j("./_uid");Y.exports=function(T){return L[T]||(L[T]=g(T))}},{"./_shared":152,"./_uid":162}],152:[function(j,Y,D){var L=j("./_core"),g=j("./_global"),T="__core-js_shared__",P=g[T]||(g[T]={});(Y.exports=function(p,v){return P[p]||(P[p]=v!==void 0?v:{})})("versions",[]).push({version:L.version,mode:j("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(j,Y,D){var L=j("./_an-object"),g=j("./_a-function"),T=j("./_wks")("species");Y.exports=function(P,p){var v=L(P).constructor,S;return v===void 0||(S=L(v)[T])==null?p:g(S)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(j,Y,D){var L=j("./_to-integer"),g=j("./_defined");Y.exports=function(T){return function(P,p){var v=String(g(P)),S=L(p),b=v.length,d,l;return S<0||S>=b?T?"":void 0:(d=v.charCodeAt(S),d<55296||d>56319||S+1===b||(l=v.charCodeAt(S+1))<56320||l>57343?T?v.charAt(S):d:T?v.slice(S,S+2):(d-55296<<10)+(l-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(j,Y,D){var L=j("./_ctx"),g=j("./_invoke"),T=j("./_html"),P=j("./_dom-create"),p=j("./_global"),v=p.process,S=p.setImmediate,b=p.clearImmediate,d=p.MessageChannel,l=p.Dispatch,n=0,c={},u="onreadystatechange",o,h,m,s=function(){var a=+this;if(c.hasOwnProperty(a)){var t=c[a];delete c[a],t()}},r=function(a){s.call(a.data)};(!S||!b)&&(S=function(t){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return c[++n]=function(){g(typeof t=="function"?t:Function(t),w)},o(n),n},b=function(t){delete c[t]},j("./_cof")(v)=="process"?o=function(a){v.nextTick(L(s,a,1))}:l&&l.now?o=function(a){l.now(L(s,a,1))}:d?(h=new d,m=h.port2,h.port1.onmessage=r,o=L(m.postMessage,m,1)):p.addEventListener&&typeof postMessage=="function"&&!p.importScripts?(o=function(a){p.postMessage(a+"","*")},p.addEventListener("message",r,!1)):u in P("script")?o=function(a){T.appendChild(P("script"))[u]=function(){T.removeChild(this),s.call(a)}}:o=function(a){setTimeout(L(s,a,1),0)}),Y.exports={set:S,clear:b}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(j,Y,D){var L=j("./_to-integer"),g=Math.max,T=Math.min;Y.exports=function(P,p){return P=L(P),P<0?g(P+p,0):T(P,p)}},{"./_to-integer":157}],157:[function(j,Y,D){var L=Math.ceil,g=Math.floor;Y.exports=function(T){return isNaN(T=+T)?0:(T>0?g:L)(T)}},{}],158:[function(j,Y,D){var L=j("./_iobject"),g=j("./_defined");Y.exports=function(T){return L(g(T))}},{"./_defined":102,"./_iobject":116}],159:[function(j,Y,D){var L=j("./_to-integer"),g=Math.min;Y.exports=function(T){return T>0?g(L(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(j,Y,D){var L=j("./_defined");Y.exports=function(g){return Object(L(g))}},{"./_defined":102}],161:[function(j,Y,D){var L=j("./_is-object");Y.exports=function(g,T){if(!L(g))return g;var P,p;if(T&&typeof(P=g.toString)=="function"&&!L(p=P.call(g)))return p;if(typeof(P=g.valueOf)=="function"&&!L(p=P.call(g)))return p;if(!T&&typeof(P=g.toString)=="function"&&!L(p=P.call(g)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(j,Y,D){var L=0,g=Math.random();Y.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++L+g).toString(36))}},{}],163:[function(j,Y,D){var L=j("./_global"),g=L.navigator;Y.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(j,Y,D){var L=j("./_global"),g=j("./_core"),T=j("./_library"),P=j("./_wks-ext"),p=j("./_object-dp").f;Y.exports=function(v){var S=g.Symbol||(g.Symbol=T?{}:L.Symbol||{});v.charAt(0)!="_"&&!(v in S)&&p(S,v,{value:P.f(v)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(j,Y,D){D.f=j("./_wks")},{"./_wks":166}],166:[function(j,Y,D){var L=j("./_shared")("wks"),g=j("./_uid"),T=j("./_global").Symbol,P=typeof T=="function",p=Y.exports=function(v){return L[v]||(L[v]=P&&T[v]||(P?T:g)("Symbol."+v))};p.store=L},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(j,Y,D){var L=j("./_classof"),g=j("./_wks")("iterator"),T=j("./_iterators");Y.exports=j("./_core").getIteratorMethod=function(P){if(P!=null)return P[g]||P["@@iterator"]||T[L(P)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(j,Y,D){"use strict";var L=j("./_ctx"),g=j("./_export"),T=j("./_to-object"),P=j("./_iter-call"),p=j("./_is-array-iter"),v=j("./_to-length"),S=j("./_create-property"),b=j("./core.get-iterator-method");g(g.S+g.F*!j("./_iter-detect")(function(d){Array.from(d)}),"Array",{from:function(l){var n=T(l),c=typeof this=="function"?this:Array,u=arguments.length,o=u>1?arguments[1]:void 0,h=o!==void 0,m=0,s=b(n),r,a,t,w;if(h&&(o=L(o,u>2?arguments[2]:void 0,2)),s!=null&&!(c==Array&&p(s)))for(w=s.call(n),a=new c;!(t=w.next()).done;m++)S(a,m,h?P(w,o,[t.value,m],!0):t.value);else for(r=v(n.length),a=new c(r);r>m;m++)S(a,m,h?o(n[m],m):n[m]);return a.length=m,a}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(j,Y,D){"use strict";var L=j("./_add-to-unscopables"),g=j("./_iter-step"),T=j("./_iterators"),P=j("./_to-iobject");Y.exports=j("./_iter-define")(Array,"Array",function(p,v){this._t=P(p),this._i=0,this._k=v},function(){var p=this._t,v=this._k,S=this._i++;return!p||S>=p.length?(this._t=void 0,g(1)):v=="keys"?g(0,S):v=="values"?g(0,p[S]):g(0,[S,p[S]])},"values"),T.Arguments=T.Array,L("keys"),L("values"),L("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(j,Y,D){"use strict";var L=j("./_is-object"),g=j("./_object-gpo"),T=j("./_wks")("hasInstance"),P=Function.prototype;T in P||j("./_object-dp").f(P,T,{value:function(p){if(typeof this!="function"||!L(p))return!1;if(!L(this.prototype))return p instanceof this;for(;p=g(p);)if(this.prototype===p)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(j,Y,D){var L=j("./_export");L(L.S+L.F,"Object",{assign:j("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(j,Y,D){var L=j("./_export");L(L.S,"Object",{create:j("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(j,Y,D){var L=j("./_export");L(L.S+L.F*!j("./_descriptors"),"Object",{defineProperty:j("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(j,Y,D){j("./_object-sap")("getOwnPropertyNames",function(){return j("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(j,Y,D){var L=j("./_to-object"),g=j("./_object-gpo");j("./_object-sap")("getPrototypeOf",function(){return function(P){return g(L(P))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(j,Y,D){var L=j("./_to-object"),g=j("./_object-keys");j("./_object-sap")("keys",function(){return function(P){return g(L(P))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(j,Y,D){arguments[4][71][0].apply(D,arguments)},{dup:71}],178:[function(j,Y,D){"use strict";var L=j("./_library"),g=j("./_global"),T=j("./_ctx"),P=j("./_classof"),p=j("./_export"),v=j("./_is-object"),S=j("./_a-function"),b=j("./_an-instance"),d=j("./_for-of"),l=j("./_species-constructor"),n=j("./_task").set,c=j("./_microtask")(),u=j("./_new-promise-capability"),o=j("./_perform"),h=j("./_user-agent"),m=j("./_promise-resolve"),s="Promise",r=g.TypeError,a=g.process,t=a&&a.versions,w=t&&t.v8||"",E=g[s],f=P(a)=="process",k=function(){},O,C,x,y,_=C=u.f,M=!!function(){try{var W=E.resolve(1),X=(W.constructor={})[j("./_wks")("species")]=function(ne){ne(k,k)};return(f||typeof PromiseRejectionEvent=="function")&&W.then(k)instanceof X&&w.indexOf("6.6")!==0&&h.indexOf("Chrome/66")===-1}catch(ne){}}(),I=function(W){var X;return v(W)&&typeof(X=W.then)=="function"?X:!1},N=function(W,X){if(W._n)return;W._n=!0;var ne=W._c;c(function(){for(var fe=W._v,me=W._s==1,Ae=0,De=function(ye){var Oe=me?ye.ok:ye.fail,xe=ye.resolve,ue=ye.reject,le=ye.domain,re,pe,ee;try{Oe?(me||(W._h==2&&B(W),W._h=1),Oe===!0?re=fe:(le&&le.enter(),re=Oe(fe),le&&(le.exit(),ee=!0)),re===ye.promise?ue(r("Promise-chain cycle")):(pe=I(re))?pe.call(re,xe,ue):xe(re)):ue(fe)}catch(te){le&&!ee&&le.exit(),ue(te)}};ne.length>Ae;)De(ne[Ae++]);W._c=[],W._n=!1,X&&!W._h&&G(W)})},G=function(W){n.call(g,function(){var X=W._v,ne=H(W),fe,me,Ae;if(ne&&(fe=o(function(){f?a.emit("unhandledRejection",X,W):(me=g.onunhandledrejection)?me({promise:W,reason:X}):(Ae=g.console)&&Ae.error&&Ae.error("Unhandled promise rejection",X)}),W._h=f||H(W)?2:1),W._a=void 0,ne&&fe.e)throw fe.v})},H=function(W){return W._h!==1&&(W._a||W._c).length===0},B=function(W){n.call(g,function(){var X;f?a.emit("rejectionHandled",W):(X=g.onrejectionhandled)&&X({promise:W,reason:W._v})})},K=function(W){var X=this;if(X._d)return;X._d=!0,X=X._w||X,X._v=W,X._s=2,X._a||(X._a=X._c.slice()),N(X,!0)},U=function(W){var X=this,ne;if(X._d)return;X._d=!0,X=X._w||X;try{if(X===W)throw r("Promise can't be resolved itself");(ne=I(W))?c(function(){var fe={_w:X,_d:!1};try{ne.call(W,T(U,fe,1),T(K,fe,1))}catch(me){K.call(fe,me)}}):(X._v=W,X._s=1,N(X,!1))}catch(fe){K.call({_w:X,_d:!1},fe)}};M||(E=function(X){b(this,E,s,"_h"),S(X),O.call(this);try{X(T(U,this,1),T(K,this,1))}catch(ne){K.call(this,ne)}},O=function(X){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},O.prototype=j("./_redefine-all")(E.prototype,{then:function(X,ne){var fe=_(l(this,E));return fe.ok=typeof X=="function"?X:!0,fe.fail=typeof ne=="function"&&ne,fe.domain=f?a.domain:void 0,this._c.push(fe),this._a&&this._a.push(fe),this._s&&N(this,!1),fe.promise},catch:function(W){return this.then(void 0,W)}}),x=function(){var W=new O;this.promise=W,this.resolve=T(U,W,1),this.reject=T(K,W,1)},u.f=_=function(W){return W===E||W===y?new x(W):C(W)}),p(p.G+p.W+p.F*!M,{Promise:E}),j("./_set-to-string-tag")(E,s),j("./_set-species")(s),y=j("./_core")[s],p(p.S+p.F*!M,s,{reject:function(X){var ne=_(this),fe=ne.reject;return fe(X),ne.promise}}),p(p.S+p.F*(L||!M),s,{resolve:function(X){return m(L&&this===y?E:this,X)}}),p(p.S+p.F*!(M&&j("./_iter-detect")(function(W){E.all(W).catch(k)})),s,{all:function(X){var ne=this,fe=_(ne),me=fe.resolve,Ae=fe.reject,De=o(function(){var ye=[],Oe=0,xe=1;d(X,!1,function(ue){var le=Oe++,re=!1;ye.push(void 0),xe++,ne.resolve(ue).then(function(pe){if(re)return;re=!0,ye[le]=pe,--xe||me(ye)},Ae)}),--xe||me(ye)});return De.e&&Ae(De.v),fe.promise},race:function(X){var ne=this,fe=_(ne),me=fe.reject,Ae=o(function(){d(X,!1,function(De){ne.resolve(De).then(fe.resolve,me)})});return Ae.e&&me(Ae.v),fe.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(j,Y,D){var L=j("./_export"),g=j("./_to-absolute-index"),T=String.fromCharCode,P=String.fromCodePoint;L(L.S+L.F*(!!P&&P.length!=1),"String",{fromCodePoint:function(v){for(var S=[],b=arguments.length,d=0,l;b>d;){if(l=+arguments[d++],g(l,1114111)!==l)throw RangeError(l+" is not a valid code point");S.push(l<65536?T(l):T(((l-=65536)>>10)+55296,l%1024+56320))}return S.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(j,Y,D){"use strict";var L=j("./_string-at")(!0);j("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,T=this._i,P;return T>=g.length?{value:void 0,done:!0}:(P=L(g,T),this._i+=P.length,{value:P,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(j,Y,D){"use strict";var L=j("./_global"),g=j("./_has"),T=j("./_descriptors"),P=j("./_export"),p=j("./_redefine"),v=j("./_meta").KEY,S=j("./_fails"),b=j("./_shared"),d=j("./_set-to-string-tag"),l=j("./_uid"),n=j("./_wks"),c=j("./_wks-ext"),u=j("./_wks-define"),o=j("./_enum-keys"),h=j("./_is-array"),m=j("./_an-object"),s=j("./_is-object"),r=j("./_to-object"),a=j("./_to-iobject"),t=j("./_to-primitive"),w=j("./_property-desc"),E=j("./_object-create"),f=j("./_object-gopn-ext"),k=j("./_object-gopd"),O=j("./_object-gops"),C=j("./_object-dp"),x=j("./_object-keys"),y=k.f,_=C.f,M=f.f,I=L.Symbol,N=L.JSON,G=N&&N.stringify,H="prototype",B=n("_hidden"),K=n("toPrimitive"),U={}.propertyIsEnumerable,W=b("symbol-registry"),X=b("symbols"),ne=b("op-symbols"),fe=Object[H],me=typeof I=="function"&&!!O.f,Ae=L.QObject,De=!Ae||!Ae[H]||!Ae[H].findChild,ye=T&&S(function(){return E(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a!=7})?function(ge,Te,Je){var rt=y(fe,Te);rt&&delete fe[Te],_(ge,Te,Je),rt&&ge!==fe&&_(fe,Te,rt)}:_,Oe=function(ge){var Te=X[ge]=E(I[H]);return Te._k=ge,Te},xe=me&&typeof I.iterator=="symbol"?function(ge){return typeof ge=="symbol"}:function(ge){return ge instanceof I},ue=function(Te,Je,rt){return Te===fe&&ue(ne,Je,rt),m(Te),Je=t(Je,!0),m(rt),g(X,Je)?(rt.enumerable?(g(Te,B)&&Te[B][Je]&&(Te[B][Je]=!1),rt=E(rt,{enumerable:w(0,!1)})):(g(Te,B)||_(Te,B,w(1,{})),Te[B][Je]=!0),ye(Te,Je,rt)):_(Te,Je,rt)},le=function(Te,Je){m(Te);for(var rt=o(Je=a(Je)),nt=0,at=rt.length,ct;at>nt;)ue(Te,ct=rt[nt++],Je[ct]);return Te},re=function(Te,Je){return Je===void 0?E(Te):le(E(Te),Je)},pe=function(Te){var Je=U.call(this,Te=t(Te,!0));return this===fe&&g(X,Te)&&!g(ne,Te)?!1:Je||!g(this,Te)||!g(X,Te)||g(this,B)&&this[B][Te]?Je:!0},ee=function(Te,Je){if(Te=a(Te),Je=t(Je,!0),Te===fe&&g(X,Je)&&!g(ne,Je))return;var rt=y(Te,Je);return rt&&g(X,Je)&&!(g(Te,B)&&Te[B][Je])&&(rt.enumerable=!0),rt},te=function(Te){for(var Je=M(a(Te)),rt=[],nt=0,at;Je.length>nt;)!g(X,at=Je[nt++])&&at!=B&&at!=v&&rt.push(at);return rt},ce=function(Te){for(var Je=Te===fe,rt=M(Je?ne:a(Te)),nt=[],at=0,ct;rt.length>at;)g(X,ct=rt[at++])&&(Je?g(fe,ct):!0)&&nt.push(X[ct]);return nt};me||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var Te=l(arguments.length>0?arguments[0]:void 0),Je=function(rt){this===fe&&Je.call(ne,rt),g(this,B)&&g(this[B],Te)&&(this[B][Te]=!1),ye(this,Te,w(1,rt))};return T&&De&&ye(fe,Te,{configurable:!0,set:Je}),Oe(Te)},p(I[H],"toString",function(){return this._k}),k.f=ee,C.f=ue,j("./_object-gopn").f=f.f=te,j("./_object-pie").f=pe,O.f=ce,T&&!j("./_library")&&p(fe,"propertyIsEnumerable",pe,!0),c.f=function(ge){return Oe(n(ge))}),P(P.G+P.W+P.F*!me,{Symbol:I});for(var q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Q=0;q.length>Q;)n(q[Q++]);for(var V=x(n.store),Z=0;V.length>Z;)u(V[Z++]);P(P.S+P.F*!me,"Symbol",{for:function(ge){return g(W,ge+="")?W[ge]:W[ge]=I(ge)},keyFor:function(Te){if(!xe(Te))throw TypeError(Te+" is not a symbol!");for(var Je in W)if(W[Je]===Te)return Je},useSetter:function(){De=!0},useSimple:function(){De=!1}}),P(P.S+P.F*!me,"Object",{create:re,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ce});var be=S(function(){O.f(1)});P(P.S+P.F*be,"Object",{getOwnPropertySymbols:function(Te){return O.f(r(Te))}}),N&&P(P.S+P.F*(!me||S(function(){var ge=I();return G([ge])!="[null]"||G({a:ge})!="{}"||G(Object(ge))!="{}"})),"JSON",{stringify:function(Te){for(var Je=[Te],rt=1,nt,at;arguments.length>rt;)Je.push(arguments[rt++]);return at=nt=Je[1],!s(nt)&&Te===void 0||xe(Te)?void 0:(h(nt)||(nt=function(ct,ht){if(typeof at=="function"&&(ht=at.call(this,ct,ht)),!xe(ht))return ht}),Je[1]=nt,G.apply(N,Je))}}),I[H][K]||j("./_hide")(I[H],K,I[H].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(L.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(j,Y,D){var L=j("./_export"),g=j("./_object-to-array")(!0);L(L.S,"Object",{entries:function(P){return g(P)}})},{"./_export":107,"./_object-to-array":143}],183:[function(j,Y,D){"use strict";var L=j("./_export"),g=j("./_core"),T=j("./_global"),P=j("./_species-constructor"),p=j("./_promise-resolve");L(L.P+L.R,"Promise",{finally:function(v){var S=P(this,g.Promise||T.Promise),b=typeof v=="function";return this.then(b?function(d){return p(S,v()).then(function(){return d})}:v,b?function(d){return p(S,v()).then(function(){throw d})}:v)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(j,Y,D){"use strict";var L=j("./_export"),g=j("./_new-promise-capability"),T=j("./_perform");L(L.S,"Promise",{try:function(P){var p=g.f(this),v=T(P);return(v.e?p.reject:p.resolve)(v.v),p.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(j,Y,D){j("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(j,Y,D){j("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(j,Y,D){j("./es6.array.iterator");for(var L=j("./_global"),g=j("./_hide"),T=j("./_iterators"),P=j("./_wks")("toStringTag"),p="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),v=0;v0?"-":"+")+v(Math.floor(Math.abs(x)/60)*100+Math.abs(x)%60,4),S:["th","st","nd","rd"][a%10>3?0:(a%100-a%10!=10)*a%10],W:y,N:_};return o.replace(l,function(I){return I in M?M[I]:I.slice(1,I.length-1)})}}();p.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},p.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function v(l,n){for(l=String(l),n=n||2;l.length]/;Y.exports=g;function g(T){var P=""+T,p=L.exec(P);if(!p)return P;var v,_="",b=0,d=0;for(b=p.index;b0&&this._events[v].length>b&&(this._events[v].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[v].length),typeof console.trace=="function"&&console.trace())),this},L.prototype.on=L.prototype.addListener,L.prototype.once=function(v,_){if(!g(_))throw TypeError("listener must be a function");var b=!1;function d(){this.removeListener(v,d),b||(b=!0,_.apply(this,arguments))}return d.listener=_,this.on(v,d),this},L.prototype.removeListener=function(v,_){var b,d,l,n;if(!g(_))throw TypeError("listener must be a function");if(!this._events||!this._events[v])return this;if(b=this._events[v],l=b.length,d=-1,b===_||g(b.listener)&&b.listener===_)delete this._events[v],this._events.removeListener&&this.emit("removeListener",v,_);else if(P(b)){for(n=l;n-- >0;)if(b[n]===_||b[n].listener&&b[n].listener===_){d=n;break}if(d<0)return this;b.length===1?(b.length=0,delete this._events[v]):b.splice(d,1),this._events.removeListener&&this.emit("removeListener",v,_)}return this},L.prototype.removeAllListeners=function(v){var _,b;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[v]&&delete this._events[v],this;if(arguments.length===0){for(_ in this._events){if(_==="removeListener")continue;this.removeAllListeners(_)}return this.removeAllListeners("removeListener"),this._events={},this}if(b=this._events[v],g(b))this.removeListener(v,b);else if(b)for(;b.length;)this.removeListener(v,b[b.length-1]);return delete this._events[v],this},L.prototype.listeners=function(v){var _;return!this._events||!this._events[v]?_=[]:g(this._events[v])?_=[this._events[v]]:_=this._events[v].slice(),_},L.prototype.listenerCount=function(v){if(this._events){var _=this._events[v];if(g(_))return 1;if(_)return _.length}return 0},L.listenerCount=function(v,_){return v.listenerCount(_)};function g(v){return typeof v=="function"}function T(v){return typeof v=="number"}function P(v){return typeof v=="object"&&v!==null}function p(v){return v===void 0}},{}],193:[function(j,Y,D){var L=j("http"),g=Y.exports;for(var T in L)L.hasOwnProperty(T)&&(g[T]=L[T]);g.request=function(P,p){return P||(P={}),P.scheme="https",P.protocol="https:",L.request.call(this,P,p)}},{http:231}],194:[function(j,Y,D){/*! + */"use strict";var L=/["'&<>]/;Y.exports=g;function g(T){var P=""+T,p=L.exec(P);if(!p)return P;var v,S="",b=0,d=0;for(b=p.index;b0&&this._events[v].length>b&&(this._events[v].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[v].length),typeof console.trace=="function"&&console.trace())),this},L.prototype.on=L.prototype.addListener,L.prototype.once=function(v,S){if(!g(S))throw TypeError("listener must be a function");var b=!1;function d(){this.removeListener(v,d),b||(b=!0,S.apply(this,arguments))}return d.listener=S,this.on(v,d),this},L.prototype.removeListener=function(v,S){var b,d,l,n;if(!g(S))throw TypeError("listener must be a function");if(!this._events||!this._events[v])return this;if(b=this._events[v],l=b.length,d=-1,b===S||g(b.listener)&&b.listener===S)delete this._events[v],this._events.removeListener&&this.emit("removeListener",v,S);else if(P(b)){for(n=l;n-- >0;)if(b[n]===S||b[n].listener&&b[n].listener===S){d=n;break}if(d<0)return this;b.length===1?(b.length=0,delete this._events[v]):b.splice(d,1),this._events.removeListener&&this.emit("removeListener",v,S)}return this},L.prototype.removeAllListeners=function(v){var S,b;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[v]&&delete this._events[v],this;if(arguments.length===0){for(S in this._events){if(S==="removeListener")continue;this.removeAllListeners(S)}return this.removeAllListeners("removeListener"),this._events={},this}if(b=this._events[v],g(b))this.removeListener(v,b);else if(b)for(;b.length;)this.removeListener(v,b[b.length-1]);return delete this._events[v],this},L.prototype.listeners=function(v){var S;return!this._events||!this._events[v]?S=[]:g(this._events[v])?S=[this._events[v]]:S=this._events[v].slice(),S},L.prototype.listenerCount=function(v){if(this._events){var S=this._events[v];if(g(S))return 1;if(S)return S.length}return 0},L.listenerCount=function(v,S){return v.listenerCount(S)};function g(v){return typeof v=="function"}function T(v){return typeof v=="number"}function P(v){return typeof v=="object"&&v!==null}function p(v){return v===void 0}},{}],193:[function(j,Y,D){var L=j("http"),g=Y.exports;for(var T in L)L.hasOwnProperty(T)&&(g[T]=L[T]);g.request=function(P,p){return P||(P={}),P.scheme="https",P.protocol="https:",L.request.call(this,P,p)}},{http:231}],194:[function(j,Y,D){/*! * humanize-ms - index.js * Copyright(c) 2014 dead_horse * MIT Licensed - */"use strict";var L=j("util"),g=j("ms");Y.exports=function(T){if(typeof T=="number")return T;var P=g(T);if(P===void 0){var p=new Error(L.format("humanize-ms(%j) result undefined",T));console.warn(p.stack)}return P}},{ms:204,util:243}],195:[function(j,Y,D){D.read=function(L,g,T,P,p){var v,_,b=p*8-P-1,d=(1<>1,n=-7,c=T?p-1:0,u=T?-1:1,o=L[g+c];for(c+=u,v=o&(1<<-n)-1,o>>=-n,n+=b;n>0;v=v*256+L[g+c],c+=u,n-=8);for(_=v&(1<<-n)-1,v>>=-n,n+=P;n>0;_=_*256+L[g+c],c+=u,n-=8);if(v===0)v=1-l;else{if(v===d)return _?NaN:(o?-1:1)*Infinity;_=_+Math.pow(2,P),v=v-l}return(o?-1:1)*_*Math.pow(2,v-P)},D.write=function(L,g,T,P,p,v){var _,b,d,l=v*8-p-1,n=(1<>1,u=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,o=P?0:v-1,h=P?1:-1,m=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===Infinity?(b=isNaN(g)?1:0,_=n):(_=Math.floor(Math.log(g)/Math.LN2),g*(d=Math.pow(2,-_))<1&&(_--,d*=2),_+c>=1?g+=u/d:g+=u*Math.pow(2,1-c),g*d>=2&&(_++,d/=2),_+c>=n?(b=0,_=n):_+c>=1?(b=(g*d-1)*Math.pow(2,p),_=_+c):(b=g*Math.pow(2,c-1)*Math.pow(2,p),_=0));p>=8;L[T+o]=b&255,o+=h,b/=256,p-=8);for(_=_<0;L[T+o]=_&255,o+=h,_/=256,l-=8);L[T+o-h]|=m*128}},{}],196:[function(j,Y,D){typeof Object.create=="function"?Y.exports=function(g,T){T&&(g.super_=T,g.prototype=Object.create(T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:Y.exports=function(g,T){if(T){g.super_=T;var P=function(){};P.prototype=T.prototype,g.prototype=new P,g.prototype.constructor=g}}},{}],197:[function(j,Y,D){/*! + */"use strict";var L=j("util"),g=j("ms");Y.exports=function(T){if(typeof T=="number")return T;var P=g(T);if(P===void 0){var p=new Error(L.format("humanize-ms(%j) result undefined",T));console.warn(p.stack)}return P}},{ms:204,util:243}],195:[function(j,Y,D){D.read=function(L,g,T,P,p){var v,S,b=p*8-P-1,d=(1<>1,n=-7,c=T?p-1:0,u=T?-1:1,o=L[g+c];for(c+=u,v=o&(1<<-n)-1,o>>=-n,n+=b;n>0;v=v*256+L[g+c],c+=u,n-=8);for(S=v&(1<<-n)-1,v>>=-n,n+=P;n>0;S=S*256+L[g+c],c+=u,n-=8);if(v===0)v=1-l;else{if(v===d)return S?NaN:(o?-1:1)*Infinity;S=S+Math.pow(2,P),v=v-l}return(o?-1:1)*S*Math.pow(2,v-P)},D.write=function(L,g,T,P,p,v){var S,b,d,l=v*8-p-1,n=(1<>1,u=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,o=P?0:v-1,h=P?1:-1,m=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===Infinity?(b=isNaN(g)?1:0,S=n):(S=Math.floor(Math.log(g)/Math.LN2),g*(d=Math.pow(2,-S))<1&&(S--,d*=2),S+c>=1?g+=u/d:g+=u*Math.pow(2,1-c),g*d>=2&&(S++,d/=2),S+c>=n?(b=0,S=n):S+c>=1?(b=(g*d-1)*Math.pow(2,p),S=S+c):(b=g*Math.pow(2,c-1)*Math.pow(2,p),S=0));p>=8;L[T+o]=b&255,o+=h,b/=256,p-=8);for(S=S<0;L[T+o]=S&255,o+=h,S/=256,l-=8);L[T+o-h]|=m*128}},{}],196:[function(j,Y,D){typeof Object.create=="function"?Y.exports=function(g,T){T&&(g.super_=T,g.prototype=Object.create(T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:Y.exports=function(g,T){if(T){g.super_=T;var P=function(){};P.prototype=T.prototype,g.prototype=new P,g.prototype.constructor=g}}},{}],197:[function(j,Y,D){/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh @@ -402,21 +402,21 @@ raw xml: `+K,ne.t1.status=H.status,ne.t1.requestId=H.headers["x-oss-request-id"] * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */"use strict";Y.exports=g;var L=Object.prototype.hasOwnProperty;function g(T,P,p){if(!T)throw new TypeError("argument dest is required");if(!P)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(P).forEach(function(_){if(!p&&L.call(T,_))return;var b=Object.getOwnPropertyDescriptor(P,_);Object.defineProperty(T,_,b)}),T}},{}],201:[function(j,Y,D){"use strict";function L(){this._types=Object.create(null),this._extensions=Object.create(null);for(var g=0;g0)return _(n);if(u==="number"&&isFinite(n))return c.long?d(n):b(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function _(n){if(n=String(n),n.length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(!c)return;var u=parseFloat(c[1]),o=(c[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return u*v;case"weeks":case"week":case"w":return u*p;case"days":case"day":case"d":return u*P;case"hours":case"hour":case"hrs":case"hr":case"h":return u*T;case"minutes":case"minute":case"mins":case"min":case"m":return u*g;case"seconds":case"second":case"secs":case"sec":case"s":return u*L;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}function b(n){var c=Math.abs(n);return c>=P?Math.round(n/P)+"d":c>=T?Math.round(n/T)+"h":c>=g?Math.round(n/g)+"m":c>=L?Math.round(n/L)+"s":n+"ms"}function d(n){var c=Math.abs(n);return c>=P?l(n,c,P,"day"):c>=T?l(n,c,T,"hour"):c>=g?l(n,c,g,"minute"):c>=L?l(n,c,L,"second"):n+" ms"}function l(n,c,u,o){var h=c>=u*1.5;return Math.round(n/u)+" "+o+(h?"s":"")}},{}],205:[function(j,Y,D){(function(L){function g(v,_){for(var b=0,d=v.length-1;d>=0;d--){var l=v[d];l==="."?v.splice(d,1):l===".."?(v.splice(d,1),b++):b&&(v.splice(d,1),b--)}if(_)for(;b--;b)v.unshift("..");return v}D.resolve=function(){for(var v="",_=!1,b=arguments.length-1;b>=-1&&!_;b--){var d=b>=0?arguments[b]:L.cwd();if(typeof d!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!d)continue;v=d+"/"+v,_=d.charAt(0)==="/"}return v=g(P(v.split("/"),function(l){return!!l}),!_).join("/"),(_?"/":"")+v||"."},D.normalize=function(v){var _=D.isAbsolute(v),b=p(v,-1)==="/";return v=g(P(v.split("/"),function(d){return!!d}),!_).join("/"),!v&&!_&&(v="."),v&&b&&(v+="/"),(_?"/":"")+v},D.isAbsolute=function(v){return v.charAt(0)==="/"},D.join=function(){var v=Array.prototype.slice.call(arguments,0);return D.normalize(P(v,function(_,b){if(typeof _!="string")throw new TypeError("Arguments to path.join must be strings");return _}).join("/"))},D.relative=function(v,_){v=D.resolve(v).substr(1),_=D.resolve(_).substr(1);function b(h){for(var m=0;m=0&&!(h[s]!=="");s--);return m>s?[]:h.slice(m,s-m+1)}for(var d=b(v.split("/")),l=b(_.split("/")),n=Math.min(d.length,l.length),c=n,u=0;u=1;--n)if(_=v.charCodeAt(n),_===47){if(!l){d=n;break}}else l=!1;return d===-1?b?"/":".":b&&d===1?"/":v.slice(0,d)};function T(v){typeof v!="string"&&(v=v+"");var _=0,b=-1,d=!0,l;for(l=v.length-1;l>=0;--l)if(v.charCodeAt(l)===47){if(!d){_=l+1;break}}else b===-1&&(d=!1,b=l+1);return b===-1?"":v.slice(_,b)}D.basename=function(v,_){var b=T(v);return _&&b.substr(-1*_.length)===_&&(b=b.substr(0,b.length-_.length)),b},D.extname=function(v){typeof v!="string"&&(v=v+"");for(var _=-1,b=0,d=-1,l=!0,n=0,c=v.length-1;c>=0;--c){var u=v.charCodeAt(c);if(u===47){if(!l){b=c+1;break}continue}d===-1&&(l=!1,d=c+1),u===46?_===-1?_=c:n!==1&&(n=1):_!==-1&&(n=-1)}return _===-1||d===-1||n===0||n===1&&_===d-1&&_===b+1?"":v.slice(_,d)};function P(v,_){if(v.filter)return v.filter(_);for(var b=[],d=0;d0)return S(n);if(u==="number"&&isFinite(n))return c.long?d(n):b(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function S(n){if(n=String(n),n.length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(!c)return;var u=parseFloat(c[1]),o=(c[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return u*v;case"weeks":case"week":case"w":return u*p;case"days":case"day":case"d":return u*P;case"hours":case"hour":case"hrs":case"hr":case"h":return u*T;case"minutes":case"minute":case"mins":case"min":case"m":return u*g;case"seconds":case"second":case"secs":case"sec":case"s":return u*L;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}function b(n){var c=Math.abs(n);return c>=P?Math.round(n/P)+"d":c>=T?Math.round(n/T)+"h":c>=g?Math.round(n/g)+"m":c>=L?Math.round(n/L)+"s":n+"ms"}function d(n){var c=Math.abs(n);return c>=P?l(n,c,P,"day"):c>=T?l(n,c,T,"hour"):c>=g?l(n,c,g,"minute"):c>=L?l(n,c,L,"second"):n+" ms"}function l(n,c,u,o){var h=c>=u*1.5;return Math.round(n/u)+" "+o+(h?"s":"")}},{}],205:[function(j,Y,D){(function(L){function g(v,S){for(var b=0,d=v.length-1;d>=0;d--){var l=v[d];l==="."?v.splice(d,1):l===".."?(v.splice(d,1),b++):b&&(v.splice(d,1),b--)}if(S)for(;b--;b)v.unshift("..");return v}D.resolve=function(){for(var v="",S=!1,b=arguments.length-1;b>=-1&&!S;b--){var d=b>=0?arguments[b]:L.cwd();if(typeof d!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!d)continue;v=d+"/"+v,S=d.charAt(0)==="/"}return v=g(P(v.split("/"),function(l){return!!l}),!S).join("/"),(S?"/":"")+v||"."},D.normalize=function(v){var S=D.isAbsolute(v),b=p(v,-1)==="/";return v=g(P(v.split("/"),function(d){return!!d}),!S).join("/"),!v&&!S&&(v="."),v&&b&&(v+="/"),(S?"/":"")+v},D.isAbsolute=function(v){return v.charAt(0)==="/"},D.join=function(){var v=Array.prototype.slice.call(arguments,0);return D.normalize(P(v,function(S,b){if(typeof S!="string")throw new TypeError("Arguments to path.join must be strings");return S}).join("/"))},D.relative=function(v,S){v=D.resolve(v).substr(1),S=D.resolve(S).substr(1);function b(h){for(var m=0;m=0&&!(h[s]!=="");s--);return m>s?[]:h.slice(m,s-m+1)}for(var d=b(v.split("/")),l=b(S.split("/")),n=Math.min(d.length,l.length),c=n,u=0;u=1;--n)if(S=v.charCodeAt(n),S===47){if(!l){d=n;break}}else l=!1;return d===-1?b?"/":".":b&&d===1?"/":v.slice(0,d)};function T(v){typeof v!="string"&&(v=v+"");var S=0,b=-1,d=!0,l;for(l=v.length-1;l>=0;--l)if(v.charCodeAt(l)===47){if(!d){S=l+1;break}}else b===-1&&(d=!1,b=l+1);return b===-1?"":v.slice(S,b)}D.basename=function(v,S){var b=T(v);return S&&b.substr(-1*S.length)===S&&(b=b.substr(0,b.length-S.length)),b},D.extname=function(v){typeof v!="string"&&(v=v+"");for(var S=-1,b=0,d=-1,l=!0,n=0,c=v.length-1;c>=0;--c){var u=v.charCodeAt(c);if(u===47){if(!l){b=c+1;break}continue}d===-1&&(l=!1,d=c+1),u===46?S===-1?S=c:n!==1&&(n=1):S!==-1&&(n=-1)}return S===-1||d===-1||n===0||n===1&&S===d-1&&S===b+1?"":v.slice(S,d)};function P(v,S){if(v.filter)return v.filter(S);for(var b=[],d=0;d * Copyright 2014-2018 Benjamin Tan * Copyright 2011-2013 John-David Dalton * Available under MIT license - */(function(){"use strict";var g={function:!0,object:!0},T=g[typeof window]&&window||this,P=T,p=g[typeof D]&&D,v=g[typeof Y]&&Y&&!Y.nodeType&&Y,_=p&&v&&typeof L=="object"&&L;_&&(_.global===_||_.window===_||_.self===_)&&(T=_);var b=Math.pow(2,53)-1,d=/\bOpera/,l=this,n=Object.prototype,c=n.hasOwnProperty,u=n.toString;function o(C){return C=String(C),C.charAt(0).toUpperCase()+C.slice(1)}function h(C,x,y){var S={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return x&&y&&/^Win/i.test(C)&&!/^Windows Phone /i.test(C)&&(S=S[/[\d.]+$/.exec(C)])&&(C="Windows "+S),C=String(C),x&&y&&(C=C.replace(RegExp(x,"i"),y)),C=s(C.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),C}function m(C,x){var y=-1,S=C?C.length:0;if(typeof S=="number"&&S>-1&&S<=b)for(;++y3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(ee)&&"WebKit"||!ee&&/\bMSIE\b/i.test(C)&&(Q=="Mac OS"?"Tasman":"Trident")||ee=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(ee=[ye]),te=="IE"&&(ye=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(te+=" Mobile",Q="Windows Phone "+(/\+$/.test(ye)?ye:ye+".x"),xe.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(te="IE Mobile",Q="Windows Phone 8.x",xe.unshift("desktop mode"),re||(re=(/\brv:([\d.]+)/.exec(C)||0)[1])):te!="IE"&&ee=="Trident"&&(ye=/\brv:([\d.]+)/.exec(C))&&(te&&xe.push("identifying as "+te+(re?" "+re:"")),te="IE",re=ye[1]),le){if(t(x,"global"))if(W&&(ye=W.lang.System,Oe=ye.getProperty("os.arch"),Q=Q||ye.getProperty("os.name")+" "+ye.getProperty("os.version")),X){try{re=x.require("ringo/engine").version.join("."),te="RingoJS"}catch(at){(ye=x.system)&&ye.global.system==x.system&&(te="Narwhal",Q||(Q=ye[0].os||null))}te||(te="Rhino")}else typeof x.process=="object"&&!x.process.browser&&(ye=x.process)&&(typeof ye.versions=="object"&&(typeof ye.versions.electron=="string"?(xe.push("Node "+ye.versions.node),te="Electron",re=ye.versions.electron):typeof ye.versions.nw=="string"&&(xe.push("Chromium "+re,"Node "+ye.versions.node),te="NW.js",re=ye.versions.nw)),te||(te="Node.js",Oe=ye.arch,Q=ye.platform,re=/[\d.]+/.exec(ye.version),re=re?re[0]:null));else a(ye=x.runtime)==H?(te="Adobe AIR",Q=ye.flash.system.Capabilities.os):a(ye=x.phantom)==U?(te="PhantomJS",re=(ye=ye.version||null)&&ye.major+"."+ye.minor+"."+ye.patch):typeof me.documentMode=="number"&&(ye=/\bTrident\/(\d+)/i.exec(C))?(re=[re,me.documentMode],(ye=+ye[1]+4)!=re[1]&&(xe.push("IE "+re[1]+" mode"),ee&&(ee[1]=""),re[1]=ye),re=te=="IE"?String(re[1].toFixed(1)):re[0]):typeof me.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(xe.push("masking as "+te+" "+re),te="IE",re="11.0",ee=["Trident"],Q="Windows");Q=Q&&s(Q)}if(re&&(ye=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(re)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(le&&S.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(ue=/b/i.test(ye)?"beta":"alpha",re=re.replace(RegExp(ye+"\\+?$"),"")+(ue=="beta"?fe:ne)+(/\d+\+?/.exec(ye)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Q))te="Firefox Mobile";else if(te=="Maxthon"&&re)re=re.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ce))ce=="Xbox 360"&&(Q=null),ce=="Xbox 360"&&/\bIEMobile\b/.test(C)&&xe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(te)||te&&!ce&&!/Browser|Mobi/.test(te))&&(Q=="Windows CE"||/Mobi/i.test(C)))te+=" Mobile";else if(te=="IE"&&le)try{x.external===null&&xe.unshift("platform preview")}catch(at){xe.unshift("embedded")}else(/\bBlackBerry\b/.test(ce)||/\bBB10\b/.test(C))&&(ye=(RegExp(ce.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||re)?(ye=[ye,/BB10/.test(C)],Q=(ye[1]?(ce=null,q="BlackBerry"):"Device Software")+" "+ye[0],re=null):this!=r&&ce!="Wii"&&(le&&Ae||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(C)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Q)||te=="IE"&&(Q&&!/^Win/.test(Q)&&re>5.5||/\bWindows XP\b/.test(Q)&&re>8||re==8&&!/\bTrident\b/.test(C)))&&!d.test(ye=k.call(r,C.replace(d,"")+";"))&&ye.name&&(ye="ing as "+ye.name+((ye=ye.version)?" "+ye:""),d.test(te)?(/\bIE\b/.test(ye)&&Q=="Mac OS"&&(Q=null),ye="identify"+ye):(ye="mask"+ye,De?te=s(De.replace(/([a-z])([A-Z])/g,"$1 $2")):te="Opera",/\bIE\b/.test(ye)&&(Q=null),le||(re=null)),ee=["Presto"],xe.push(ye));(ye=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(ye=[parseFloat(ye.replace(/\.(\d)$/,".0$1")),ye],te=="Safari"&&ye[1].slice(-1)=="+"?(te="WebKit Nightly",ue="alpha",re=ye[1].slice(0,-1)):(re==ye[1]||re==(ye[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&(re=null),ye[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],ye[0]==537.36&&ye[2]==537.36&&parseFloat(ye[1])>=28&&ee=="WebKit"&&(ee=["Blink"]),!le||!N&&!ye[1]?(ee&&(ee[1]="like Safari"),ye=(ye=ye[0],ye<400?1:ye<500?2:ye<526?3:ye<533?4:ye<534?"4+":ye<535?5:ye<537?6:ye<538?7:ye<601?8:"8")):(ee&&(ee[1]="like Chrome"),ye=ye[1]||(ye=ye[0],ye<530?1:ye<532?2:ye<532.05?3:ye<533?4:ye<534.03?5:ye<534.07?6:ye<534.1?7:ye<534.13?8:ye<534.16?9:ye<534.24?10:ye<534.3?11:ye<535.01?12:ye<535.02?"13+":ye<535.07?15:ye<535.11?16:ye<535.19?17:ye<536.05?18:ye<536.1?19:ye<537.01?20:ye<537.11?"21+":ye<537.13?23:ye<537.18?24:ye<537.24?25:ye<537.36?26:ee!="Blink"?"27":"28")),ee&&(ee[1]+=" "+(ye+=typeof ye=="number"?".x":/[.+]/.test(ye)?"":"+")),te=="Safari"&&(!re||parseInt(re)>45)&&(re=ye)),te=="Opera"&&(ye=/\bzbov|zvav$/.exec(Q))?(te+=" ",xe.unshift("desktop mode"),ye=="zvav"?(te+="Mini",re=null):te+="Mobile",Q=Q.replace(RegExp(" *"+ye+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(ee&&ee[1])&&(xe.unshift("desktop mode"),te="Chrome Mobile",re=null,/\bOS X\b/.test(Q)?(q="Apple",Q="iOS 4.3+"):Q=null),re&&re.indexOf(ye=/[\d.]+$/.exec(Q))==0&&C.indexOf("/"+ye+"-")>-1&&(Q=f(Q.replace(ye,""))),ee&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(Q)&&/\bSafari\b/.test(ee[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(te)&&ee[1])&&((ye=ee[ee.length-1])&&xe.push(ye)),xe.length&&(xe=["("+xe.join("; ")+")"]),q&&ce&&ce.indexOf(q)<0&&xe.push("on "+q),ce&&xe.push((/^on /.test(xe[xe.length-1])?"":"on ")+ce),Q&&(ye=/ ([\d.+]+)$/.exec(Q),pe=ye&&Q.charAt(Q.length-ye[0].length-1)=="/",Q={architecture:32,family:ye&&!pe?Q.replace(ye[0],""):Q,version:ye?ye[1]:null,toString:function(){var at=this.version;return this.family+(at&&!pe?" "+at:"")+(this.architecture==64?" 64-bit":"")}}),(ye=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Oe))&&!/\bi686\b/i.test(Oe)?(Q&&(Q.architecture=64,Q.family=Q.family.replace(RegExp(" *"+ye),"")),te&&(/\bWOW64\b/i.test(C)||le&&/\w(?:86|32)$/.test(S.cpuClass||S.platform)&&!/\bWin64; x64\b/i.test(C))&&xe.unshift("32-bit")):Q&&/^OS X/.test(Q.family)&&te=="Chrome"&&parseFloat(re)>=39&&(Q.architecture=64),C||(C=null);var nt={};return nt.description=C,nt.layout=ee&&ee[0],nt.manufacturer=q,nt.name=te,nt.prerelease=ue,nt.product=ce,nt.ua=C,nt.version=te&&re,nt.os=Q||{architecture:null,family:null,version:null,toString:function(){return"null"}},nt.parse=k,nt.toString=rt,nt.version&&xe.unshift(re),nt.name&&xe.unshift(te),Q&&te&&!(Q==String(Q).split(" ")[0]&&(Q==te.split(" ")[0]||ce))&&xe.push(ce?"("+Q+")":"on "+Q),xe.length&&(nt.description=xe.join(" ")),nt}var O=k();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=O,define(function(){return O})):p&&v?r(O,function(C,x){p[x]=C}):T.platform=O}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(j,Y,D){(function(L){"use strict";typeof L=="undefined"||!L.version||L.version.indexOf("v0.")===0||L.version.indexOf("v1.")===0&&L.version.indexOf("v1.8.")!==0?Y.exports={nextTick:g}:Y.exports=L;function g(T,P,p,v){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var _=arguments.length,b,d;switch(_){case 0:case 1:return L.nextTick(T);case 2:return L.nextTick(function(){T.call(null,P)});case 3:return L.nextTick(function(){T.call(null,P,p)});case 4:return L.nextTick(function(){T.call(null,P,p,v)});default:for(b=new Array(_-1),d=0;d1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},t=b-d,w=Math.floor,E=String.fromCharCode,f;function k(K){throw new RangeError(a[K])}function O(K,U){for(var W=K.length,X=[];W--;)X[W]=U(K[W]);return X}function C(K,U){var W=K.split("@"),X="";W.length>1&&(X=W[0]+"@",K=W[1]),K=K.replace(r,".");var ne=K.split("."),fe=O(ne,U).join(".");return X+fe}function x(K){for(var U=[],W=0,X=K.length,ne,fe;W=55296&&ne<=56319&&W65535&&(U-=65536,W+=E(U>>>10&1023|55296),U=56320|U&1023),W+=E(U),W}).join("")}function S(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:b}function M(K,U){return K+22+75*(K<26)-((U!=0)<<5)}function I(K,U,W){var X=0;for(K=W?w(K/c):K>>1,K+=w(K/U);K>t*l>>1;X+=b)K=w(K/t);return w(X+(t+1)*K/(K+n))}function N(K){var U=[],W=K.length,X,ne=0,fe=o,me=u,Ae,De,ye,Oe,xe,ue,le,re,pe;for(Ae=K.lastIndexOf(h),Ae<0&&(Ae=0),De=0;De=128&&k("not-basic"),U.push(K.charCodeAt(De));for(ye=Ae>0?Ae+1:0;ye=W&&k("invalid-input"),le=S(K.charCodeAt(ye++)),(le>=b||le>w((_-ne)/xe))&&k("overflow"),ne+=le*xe,re=ue<=me?d:ue>=me+l?l:ue-me,lew(_/pe)&&k("overflow"),xe*=pe;X=U.length+1,me=I(ne-Oe,X,Oe==0),w(ne/X)>_-fe&&k("overflow"),fe+=w(ne/X),ne%=X,U.splice(ne++,0,fe)}return y(U)}function G(K){var U,W,X,ne,fe,me,Ae,De,ye,Oe,xe,ue=[],le,re,pe,ee;for(K=x(K),le=K.length,U=o,W=0,fe=u,me=0;me=U&&xew((_-W)/re)&&k("overflow"),W+=(Ae-U)*re,U=Ae,me=0;me_&&k("overflow"),xe==U){for(De=W,ye=b;!(Oe=ye<=fe?d:ye>=fe+l?l:ye-fe,De0&&l>d&&(l=d);for(var n=0;n=0?(o=c.substr(0,u),h=c.substr(u+1)):(o=c,h=""),m=decodeURIComponent(o),s=decodeURIComponent(h),L(_,m)?g(_[m])?_[m].push(s):_[m]=[_[m],s]:_[m]=s}return _};var g=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(j,Y,D){"use strict";var L=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};Y.exports=function(p,v,_,b){return v=v||"&",_=_||"=",p===null&&(p=void 0),typeof p=="object"?T(P(p),function(d){var l=encodeURIComponent(L(d))+_;return g(p[d])?T(p[d],function(n){return l+encodeURIComponent(L(n))}).join(v):l+encodeURIComponent(L(p[d]))}).join(v):b?encodeURIComponent(L(b))+_+encodeURIComponent(L(p)):""};var g=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"};function T(p,v){if(p.map)return p.map(v);for(var _=[],b=0;b0?(typeof te!="string"&&!V.objectMode&&(0,P.default)(te)!==o.prototype&&(te=m(te)),q?V.endEmitted?ee.emit("error",new Error("stream.unshift() after end event")):S(ee,V,te,!0):V.ended?ee.emit("error",new Error("stream.push() after EOF")):(V.reading=!1,V.decoder&&!ce?(te=V.decoder.write(te),V.objectMode||te.length!==0?S(ee,V,te,!1):W(ee,V)):S(ee,V,te,!1))):q||(V.reading=!1)}return I(V)}function S(ee,te,ce,q){te.flowing&&te.length===0&&!te.sync?(ee.emit("data",ce),ee.read(0)):(te.length+=te.objectMode?1:ce.length,q?te.buffer.unshift(ce):te.buffer.push(ce),te.needReadable&&K(ee)),W(ee,te)}function M(ee,te){var ce;return!s(te)&&typeof te!="string"&&te!==void 0&&!ee.objectMode&&(ce=new TypeError("Invalid non-string/buffer chunk")),ce}function I(ee){return!ee.ended&&(ee.needReadable||ee.length=N?ee=N:(ee--,ee|=ee>>>1,ee|=ee>>>2,ee|=ee>>>4,ee|=ee>>>8,ee|=ee>>>16,ee++),ee}function H(ee,te){return ee<=0||te.length===0&&te.ended?0:te.objectMode?1:ee!==ee?te.flowing&&te.length?te.buffer.head.data.length:te.length:(ee>te.highWaterMark&&(te.highWaterMark=G(ee)),ee<=te.length?ee:te.ended?te.length:(te.needReadable=!0,0))}x.prototype.read=function(ee){t("read",ee),ee=parseInt(ee,10);var te=this._readableState,ce=ee;if(ee!==0&&(te.emittedReadable=!1),ee===0&&te.needReadable&&(te.length>=te.highWaterMark||te.ended))return t("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?le(this):K(this),null;if(ee=H(ee,te),ee===0&&te.ended)return te.length===0&&le(this),null;var q=te.needReadable;t("need readable",q),(te.length===0||te.length-ee0?Q=ye(ee,te):Q=null,Q===null?(te.needReadable=!0,ee=0):te.length-=ee,te.length===0&&(te.ended||(te.needReadable=!0),ce!==ee&&te.ended&&le(this)),Q!==null&&this.emit("data",Q),Q};function B(ee,te){if(te.ended)return;if(te.decoder){var ce=te.decoder.end();ce&&ce.length&&(te.buffer.push(ce),te.length+=te.objectMode?1:ce.length)}te.ended=!0,K(ee)}function K(ee){var te=ee._readableState;te.needReadable=!1,te.emittedReadable||(t("emitReadable",te.flowing),te.emittedReadable=!0,te.sync?b.nextTick(U,ee):U(ee))}function U(ee){t("emit readable"),ee.emit("readable"),De(ee)}function W(ee,te){te.readingMore||(te.readingMore=!0,b.nextTick(X,ee,te))}function X(ee,te){for(var ce=te.length;!te.reading&&!te.flowing&&!te.ended&&te.length1&&pe(q.pipes,ee)!==-1)&&!Te&&(t("false write response, pause",ce._readableState.awaitDrain),ce._readableState.awaitDrain++,rt=!0),ce.pause())}function at(Re){t("onerror",Re),He(),ee.removeListener("error",at),c(ee,"error")===0&&ee.emit("error",Re)}O(ee,"error",at);function ct(){ee.removeListener("finish",ht),He()}ee.once("close",ct);function ht(){t("onfinish"),ee.removeListener("close",ct),He()}ee.once("finish",ht);function He(){t("unpipe"),ce.unpipe(ee)}return ee.emit("pipe",ce),q.flowing||(t("pipe resume"),ce.resume()),ee};function ne(ee){return function(){var te=ee._readableState;t("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&c(ee,"data")&&(te.flowing=!0,De(ee))}}x.prototype.unpipe=function(ee){var te=this._readableState,ce={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return ee&&ee!==te.pipes?this:(ee||(ee=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,ee&&ee.emit("unpipe",this,ce),this);if(!ee){var q=te.pipes,Q=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var V=0;V=te.length?(te.decoder?ce=te.buffer.join(""):te.buffer.length===1?ce=te.buffer.head.data:ce=te.buffer.concat(te.length),te.buffer.clear()):ce=Oe(ee,te.buffer,te.decoder),ce}function Oe(ee,te,ce){var q;return eeV.length?V.length:ee;if(Z===V.length?Q+=V:Q+=V.slice(0,ee),ee-=Z,ee===0){Z===V.length?(++q,ce.next?te.head=ce.next:te.head=te.tail=null):(te.head=ce,ce.data=V.slice(Z));break}++q}return te.length-=q,Q}function ue(ee,te){var ce=o.allocUnsafe(ee),q=te.head,Q=1;for(q.data.copy(ce),ee-=q.data.length;q=q.next;){var V=q.data,Z=ee>V.length?V.length:ee;if(V.copy(ce,ce.length-ee,0,Z),ee-=Z,ee===0){Z===V.length?(++Q,q.next?te.head=q.next:te.head=te.tail=null):(te.head=q,q.data=V.slice(Z));break}++Q}return te.length-=Q,ce}function le(ee){var te=ee._readableState;if(te.length>0)throw new Error('"endReadable()" called on non-empty stream');te.endEmitted||(te.ended=!0,b.nextTick(re,te,ee))}function re(ee,te){!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,te.readable=!1,te.emit("end"))}function pe(ee,te){for(var ce=0,q=ee.length;ce-1?c.default:o.nextTick,r;M.WritableState=y;var a=(0,l.default)(j("core-util-is"));a.inherits=j("inherits");var t={deprecate:j("util-deprecate")},w=j("./internal/streams/stream"),E=j("safe-buffer").Buffer,f=g.Uint8Array||function(){};function k(ue){return E.from(ue)}function O(ue){return E.isBuffer(ue)||ue instanceof f}var C=j("./internal/streams/destroy");a.inherits(M,w);function x(){}function y(ue,le){r=r||j("./_stream_duplex"),ue=ue||{};var re=le instanceof r;this.objectMode=!!ue.objectMode,re&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var pe=ue.highWaterMark,ee=ue.writableHighWaterMark,te=this.objectMode?16:16*1024;pe||pe===0?this.highWaterMark=pe:re&&(ee||ee===0)?this.highWaterMark=ee:this.highWaterMark=te,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 ce=ue.decodeStrings===!1;this.decodeStrings=!ce,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){W(le,q)},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 m(this)}y.prototype.getBuffer=function(){for(var le=this.bufferedRequest,re=[];le;)re.push(le),le=le.next;return re},function(){try{Object.defineProperty(y.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var S;typeof b.default=="function"&&v.default&&typeof Function.prototype[v.default]=="function"?(S=Function.prototype[v.default],(0,P.default)(M,v.default,{value:function(le){return S.call(this,le)?!0:this!==M?!1:le&&le._writableState instanceof y}})):S=function(le){return le instanceof this};function M(ue){if(r=r||j("./_stream_duplex"),!S.call(M,this)&&!(this instanceof r))return new M(ue);this._writableState=new y(ue,this),this.writable=!0,ue&&(typeof ue.write=="function"&&(this._write=ue.write),typeof ue.writev=="function"&&(this._writev=ue.writev),typeof ue.destroy=="function"&&(this._destroy=ue.destroy),typeof ue.final=="function"&&(this._final=ue.final)),w.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function I(ue,le){var re=new Error("write after end");ue.emit("error",re),o.nextTick(le,re)}function N(ue,le,re,pe){var ee=!0,te=!1;return re===null?te=new TypeError("May not write null values to stream"):typeof re!="string"&&re!==void 0&&!le.objectMode&&(te=new TypeError("Invalid non-string/buffer chunk")),te&&(ue.emit("error",te),o.nextTick(pe,te),ee=!1),ee}M.prototype.write=function(ue,le,re){var pe=this._writableState,ee=!1,te=!pe.objectMode&&O(ue);return te&&!E.isBuffer(ue)&&(ue=k(ue)),typeof le=="function"&&(re=le,le=null),te?le="buffer":le||(le=pe.defaultEncoding),typeof re!="function"&&(re=x),pe.ended?I(this,re):(te||N(this,pe,ue,re))&&(pe.pendingcb++,ee=H(this,pe,te,ue,le,re)),ee},M.prototype.cork=function(){var ue=this._writableState;ue.corked++},M.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&fe(this,ue))},M.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+le);return this._writableState.defaultEncoding=le,this};function G(ue,le,re){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof le=="string"&&(le=E.from(le,re)),le}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,le,re,pe,ee,te){if(!re){var ce=G(le,pe,ee);pe!==ce&&(re=!0,ee="buffer",pe=ce)}var q=le.objectMode?1:pe.length;le.length+=q;var Q=le.length0?this.tail.next=b:this.head=b,this.tail=b,++this.length},p.prototype.unshift=function(_){var b={data:_,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length},p.prototype.shift=function(){if(this.length===0)return;var _=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,_},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(_){if(this.length===0)return"";for(var b=this.head,d=""+b.data;b=b.next;)d+=_+b.data;return d},p.prototype.concat=function(_){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var b=g.allocUnsafe(_>>>0),d=this.head,l=0;d;)P(d.data,b,l),l+=d.data.length,d=d.next;return b},p}(),T&&T.inspect&&T.inspect.custom&&(Y.exports.prototype[T.inspect.custom]=function(){var p=T.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":228,util:71}],220:[function(j,Y,D){"use strict";var L=j("process-nextick-args");function g(p,v){var _=this,b=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return b||d?(v?v(p):p&&(!this._writableState||!this._writableState.errorEmitted)&&L.nextTick(P,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(l){!v&&l?(L.nextTick(P,_,l),_._writableState&&(_._writableState.errorEmitted=!0)):v&&v(l)}),this)}function T(){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 P(p,v){p.emit("error",v)}Y.exports={destroy:g,undestroy:T}},{"process-nextick-args":207}],221:[function(j,Y,D){"use strict";Y.exports=j("events").EventEmitter},{events:192}],222:[function(j,Y,D){Y.exports=j("./readable").PassThrough},{"./readable":223}],223:[function(j,Y,D){D=Y.exports=j("./lib/_stream_readable.js"),D.Stream=D,D.Readable=D,D.Writable=j("./lib/_stream_writable.js"),D.Duplex=j("./lib/_stream_duplex.js"),D.Transform=j("./lib/_stream_transform.js"),D.PassThrough=j("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(j,Y,D){Y.exports=j("./readable").Transform},{"./readable":223}],225:[function(j,Y,D){Y.exports=j("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(j,Y,D){var L=function(){return this}()||Function("return this")(),g=L.regeneratorRuntime&&Object.getOwnPropertyNames(L).indexOf("regeneratorRuntime")>=0,T=g&&L.regeneratorRuntime;if(L.regeneratorRuntime=void 0,Y.exports=j("./runtime"),g)L.regeneratorRuntime=T;else try{delete L.regeneratorRuntime}catch(P){L.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(j,Y,D){!function(L){"use strict";var g=Object.prototype,T=g.hasOwnProperty,P,p=typeof Symbol=="function"?Symbol:{},v=p.iterator||"@@iterator",_=p.asyncIterator||"@@asyncIterator",b=p.toStringTag||"@@toStringTag",d=typeof Y=="object",l=L.regeneratorRuntime;if(l){d&&(Y.exports=l);return}l=L.regeneratorRuntime=d?Y.exports:{};function n(H,B,K,U){var W=B&&B.prototype instanceof r?B:r,X=Object.create(W.prototype),ne=new I(U||[]);return X._invoke=x(H,K,ne),X}l.wrap=n;function c(H,B,K){try{return{type:"normal",arg:H.call(B,K)}}catch(U){return{type:"throw",arg:U}}}var u="suspendedStart",o="suspendedYield",h="executing",m="completed",s={};function r(){}function a(){}function t(){}var w={};w[v]=function(){return this};var E=Object.getPrototypeOf,f=E&&E(E(N([])));f&&f!==g&&T.call(f,v)&&(w=f);var k=t.prototype=r.prototype=Object.create(w);a.prototype=k.constructor=t,t.constructor=a,t[b]=a.displayName="GeneratorFunction";function O(H){["next","throw","return"].forEach(function(B){H[B]=function(K){return this._invoke(B,K)}})}l.isGeneratorFunction=function(H){var B=typeof H=="function"&&H.constructor;return B?B===a||(B.displayName||B.name)==="GeneratorFunction":!1},l.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,t):(H.__proto__=t,b in H||(H[b]="GeneratorFunction")),H.prototype=Object.create(k),H},l.awrap=function(H){return{__await:H}};function C(H){function B(W,X,ne,fe){var me=c(H[W],H,X);if(me.type==="throw")fe(me.arg);else{var Ae=me.arg,De=Ae.value;return De&&typeof De=="object"&&T.call(De,"__await")?Promise.resolve(De.__await).then(function(ye){B("next",ye,ne,fe)},function(ye){B("throw",ye,ne,fe)}):Promise.resolve(De).then(function(ye){Ae.value=ye,ne(Ae)},fe)}}var K;function U(W,X){function ne(){return new Promise(function(fe,me){B(W,X,fe,me)})}return K=K?K.then(ne,ne):ne()}this._invoke=U}O(C.prototype),C.prototype[_]=function(){return this},l.AsyncIterator=C,l.async=function(H,B,K,U){var W=new C(n(H,B,K,U));return l.isGeneratorFunction(B)?W:W.next().then(function(X){return X.done?X.value:W.next()})};function x(H,B,K){var U=u;return function(X,ne){if(U===h)throw new Error("Generator is already running");if(U===m){if(X==="throw")throw ne;return G()}for(K.method=X,K.arg=ne;;){var fe=K.delegate;if(fe){var me=y(fe,K);if(me){if(me===s)continue;return me}}if(K.method==="next")K.sent=K._sent=K.arg;else if(K.method==="throw"){if(U===u)throw U=m,K.arg;K.dispatchException(K.arg)}else K.method==="return"&&K.abrupt("return",K.arg);U=h;var Ae=c(H,B,K);if(Ae.type==="normal"){if(U=K.done?m:o,Ae.arg===s)continue;return{value:Ae.arg,done:K.done}}else Ae.type==="throw"&&(U=m,K.method="throw",K.arg=Ae.arg)}}}function y(H,B){var K=H.iterator[B.method];if(K===P){if(B.delegate=null,B.method==="throw"){if(H.iterator.return&&(B.method="return",B.arg=P,y(H,B),B.method==="throw"))return s;B.method="throw",B.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var U=c(K,H.iterator,B.arg);if(U.type==="throw")return B.method="throw",B.arg=U.arg,B.delegate=null,s;var W=U.arg;if(!W)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,s;if(W.done)B[H.resultName]=W.value,B.next=H.nextLoc,B.method!=="return"&&(B.method="next",B.arg=P);else return W;return B.delegate=null,s}O(k),k[b]="Generator",k[v]=function(){return this},k.toString=function(){return"[object Generator]"};function S(H){var B={tryLoc:H[0]};1 in H&&(B.catchLoc=H[1]),2 in H&&(B.finallyLoc=H[2],B.afterLoc=H[3]),this.tryEntries.push(B)}function M(H){var B=H.completion||{};B.type="normal",delete B.arg,H.completion=B}function I(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(S,this),this.reset(!0)}l.keys=function(H){var B=[];for(var K in H)B.push(K);return B.reverse(),function U(){for(;B.length;){var W=B.pop();if(W in H)return U.value=W,U.done=!1,U}return U.done=!0,U}};function N(H){if(H){var B=H[v];if(B)return B.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var K=-1,U=function W(){for(;++K=0;--U){var W=this.tryEntries[U],X=W.completion;if(W.tryLoc==="root")return K("end");if(W.tryLoc<=this.prev){var ne=T.call(W,"catchLoc"),fe=T.call(W,"finallyLoc");if(ne&&fe){if(this.prev=0;--K){var U=this.tryEntries[K];if(U.tryLoc<=this.prev&&T.call(U,"finallyLoc")&&this.prev=0;--B){var K=this.tryEntries[B];if(K.finallyLoc===H)return this.complete(K.completion,K.afterLoc),M(K),s}},catch:function(H){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.tryLoc===H){var U=K.completion;if(U.type==="throw"){var W=U.arg;M(K)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(H,B,K){return this.delegate={iterator:N(H),resultName:B,nextLoc:K},this.method==="next"&&(this.arg=P),s}}}(function(){return this}()||Function("return this")())},{}],228:[function(j,Y,D){var L=j("buffer"),g=L.Buffer;function T(p,v){for(var _ in p)v[_]=p[_]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?Y.exports=L:(T(L,D),D.Buffer=P);function P(p,v,_){return g(p,v,_)}T(g,P),P.from=function(p,v,_){if(typeof p=="number")throw new TypeError("Argument must not be a number");return g(p,v,_)},P.alloc=function(p,v,_){if(typeof p!="number")throw new TypeError("Argument must be a number");var b=g(p);return v!==void 0?typeof _=="string"?b.fill(v,_):b.fill(v):b.fill(0),b},P.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return g(p)},P.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return L.SlowBuffer(p)}},{buffer:73}],229:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/string/from-code-point"),T=o(g),P=j("babel-runtime/core-js/json/stringify"),p=o(P),v=j("babel-runtime/helpers/typeof"),_=o(v),b=j("babel-runtime/core-js/object/define-property"),d=o(b),l=j("babel-runtime/core-js/object/keys"),n=o(l),c=j("babel-runtime/core-js/object/create"),u=o(c);function o(h){return h&&h.__esModule?h:{default:h}}(function(h){h.parser=function(V,Z){return new s(V,Z)},h.SAXParser=s,h.SAXStream=k,h.createStream=f,h.MAX_BUFFER_LENGTH=64*1024;var m=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];h.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function s(V,Z){if(!(this instanceof s))return new s(V,Z);var be=this;a(be),be.q=be.c="",be.bufferCheckPosition=h.MAX_BUFFER_LENGTH,be.opt=Z||{},be.opt.lowercase=be.opt.lowercase||be.opt.lowercasetags,be.looseCase=be.opt.lowercase?"toLowerCase":"toUpperCase",be.tags=[],be.closed=be.closedRoot=be.sawRoot=!1,be.tag=be.error=null,be.strict=!!V,be.noscript=!!(V||be.opt.noscript),be.state=X.BEGIN,be.strictEntities=be.opt.strictEntities,be.ENTITIES=be.strictEntities?(0,u.default)(h.XML_ENTITIES):(0,u.default)(h.ENTITIES),be.attribList=[],be.opt.xmlns&&(be.ns=(0,u.default)(S)),be.trackPosition=be.opt.position!==!1,be.trackPosition&&(be.position=be.line=be.column=0),fe(be,"onready")}u.default||(Object.create=function(V){function Z(){}Z.prototype=V;var be=new Z;return be}),n.default||(Object.keys=function(V){var Z=[];for(var be in V)V.hasOwnProperty(be)&&Z.push(be);return Z});function r(V){for(var Z=Math.max(h.MAX_BUFFER_LENGTH,10),be=0,ge=0,Te=m.length;geZ)switch(m[ge]){case"textNode":Ae(V);break;case"cdata":me(V,"oncdata",V.cdata),V.cdata="";break;case"script":me(V,"onscript",V.script),V.script="";break;default:ye(V,"Max buffer length exceeded: "+m[ge])}be=Math.max(be,Je)}var rt=h.MAX_BUFFER_LENGTH-be;V.bufferCheckPosition=rt+V.position}function a(V){for(var Z=0,be=m.length;Z-1&&_<=b)for(;++y<_;)x(C[y],y,C);else r(C,x)}function s(C){return C=f(C),/^(?:webOS|i(?:OS|P))/.test(C)?C:o(C)}function r(C,x){for(var y in C)c.call(C,y)&&x(C[y],y,C)}function a(C){return C==null?o(C):u.call(C).slice(8,-1)}function t(C,x){var y=C!=null?typeof C[x]:"number";return!/^(?:boolean|number|string|undefined)$/.test(y)&&(y=="object"?!!C[x]:!0)}function w(C){return String(C).replace(/([ -])(?!$)/g,"$1?")}function E(C,x){var y=null;return m(C,function(_,M){y=x(y,_,M,C)}),y}function f(C){return String(C).replace(/^ +| +$/g,"")}function k(C){var x=T,y=C&&typeof C=="object"&&a(C)!="String";y&&(x=C,C=null);var _=x.navigator||{},M=_.userAgent||"";C||(C=M);var I=y||l==P,N=y?!!_.likeChrome:/\bChrome\b/.test(C)&&!/internal|\n/i.test(u.toString()),G="Object",H=y?G:"ScriptBridgingProxyObject",B=y?G:"Environment",K=y&&x.java?"JavaPackage":a(x.java),U=y?G:"RuntimeObject",W=/\bJava/.test(K)&&x.java,X=W&&a(x.environment)==B,ne=W?"a":"\u03B1",fe=W?"b":"\u03B2",me=x.document||{},Ae=x.operamini||x.opera,De=d.test(De=y&&Ae?Ae["[[Class]]"]:a(Ae))?De:Ae=null,ye,Oe=C,xe=[],ue=null,le=C==M,re=le&&Ae&&typeof Ae.version=="function"&&Ae.version(),pe,ee=V([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),te=be(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),ce=Te([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),q=Z({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),Q=ge(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function V(at){return E(at,function(ct,ht){return ct||RegExp("\\b"+(ht.pattern||w(ht))+"\\b","i").exec(C)&&(ht.label||ht)})}function Z(at){return E(at,function(ct,ht,He){return ct||(ht[ce]||ht[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ce)]||RegExp("\\b"+w(He)+"(?:\\b|\\w*\\d)","i").exec(C))&&He})}function be(at){return E(at,function(ct,ht){return ct||RegExp("\\b"+(ht.pattern||w(ht))+"\\b","i").exec(C)&&(ht.label||ht)})}function ge(at){return E(at,function(ct,ht){var He=ht.pattern||w(ht);return!ct&&(ct=RegExp("\\b"+He+"(?:/[\\d.]+|[ \\w.]*)","i").exec(C))&&(ct=h(ct,He,ht.label||ht)),ct})}function Te(at){return E(at,function(ct,ht){var He=ht.pattern||w(ht);return!ct&&(ct=RegExp("\\b"+He+" *\\d+[.\\w_]*","i").exec(C)||RegExp("\\b"+He+" *\\w+-[\\w]*","i").exec(C)||RegExp("\\b"+He+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(C))&&((ct=String(ht.label&&!RegExp(He,"i").test(ht.label)?ht.label:ct).split("/"))[1]&&!/[\d.]+/.test(ct[0])&&(ct[0]+=" "+ct[1]),ht=ht.label||ht,ct=s(ct[0].replace(RegExp(He,"i"),ht).replace(RegExp("; *(?:"+ht+"[_-])?","i")," ").replace(RegExp("("+ht+")[-_.]?(\\w)","i"),"$1 $2"))),ct})}function Je(at){return E(at,function(ct,ht){return ct||(RegExp(ht+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(C)||0)[1]||null})}function rt(){return this.description||""}if(ee&&(ee=[ee]),q&&!ce&&(ce=Te([q])),(ye=/\bGoogle TV\b/.exec(ce))&&(ce=ye[0]),/\bSimulator\b/i.test(C)&&(ce=(ce?ce+" ":"")+"Simulator"),te=="Opera Mini"&&/\bOPiOS\b/.test(C)&&xe.push("running in Turbo/Uncompressed mode"),te=="IE"&&/\blike iPhone OS\b/.test(C)?(ye=k(C.replace(/like iPhone OS/,"")),q=ye.manufacturer,ce=ye.product):/^iP/.test(ce)?(te||(te="Safari"),Q="iOS"+((ye=/ OS ([\d_]+)/i.exec(C))?" "+ye[1].replace(/_/g,"."):"")):te=="Konqueror"&&!/buntu/i.test(Q)?Q="Kubuntu":q&&q!="Google"&&(/Chrome/.test(te)&&!/\bMobile Safari\b/i.test(C)||/\bVita\b/.test(ce))||/\bAndroid\b/.test(Q)&&/^Chrome/.test(te)&&/\bVersion\//i.test(C)?(te="Android Browser",Q=/\bAndroid\b/.test(Q)?Q:"Android"):te=="Silk"?(/\bMobi/i.test(C)||(Q="Android",xe.unshift("desktop mode")),/Accelerated *= *true/i.test(C)&&xe.unshift("accelerated")):te=="PaleMoon"&&(ye=/\bFirefox\/([\d.]+)\b/.exec(C))?xe.push("identifying as Firefox "+ye[1]):te=="Firefox"&&(ye=/\b(Mobile|Tablet|TV)\b/i.exec(C))?(Q||(Q="Firefox OS"),ce||(ce=ye[1])):!te||(ye=!/\bMinefield\b/i.test(C)&&/\b(?:Firefox|Safari)\b/.exec(te))?(te&&!ce&&/[\/,]|^[^(]+?\)/.test(C.slice(C.indexOf(ye+"/")+8))&&(te=null),(ye=ce||q||Q)&&(ce||q||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Q))&&(te=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Q)?Q:ye)+" Browser")):te=="Electron"&&(ye=(/\bChrome\/([\d.]+)\b/.exec(C)||0)[1])&&xe.push("Chromium "+ye),re||(re=Je(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",w(te),"(?:Firefox|Minefield|NetFront)"])),(ye=ee=="iCab"&&parseFloat(re)>3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(ee)&&"WebKit"||!ee&&/\bMSIE\b/i.test(C)&&(Q=="Mac OS"?"Tasman":"Trident")||ee=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(ee=[ye]),te=="IE"&&(ye=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(te+=" Mobile",Q="Windows Phone "+(/\+$/.test(ye)?ye:ye+".x"),xe.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(te="IE Mobile",Q="Windows Phone 8.x",xe.unshift("desktop mode"),re||(re=(/\brv:([\d.]+)/.exec(C)||0)[1])):te!="IE"&&ee=="Trident"&&(ye=/\brv:([\d.]+)/.exec(C))&&(te&&xe.push("identifying as "+te+(re?" "+re:"")),te="IE",re=ye[1]),le){if(t(x,"global"))if(W&&(ye=W.lang.System,Oe=ye.getProperty("os.arch"),Q=Q||ye.getProperty("os.name")+" "+ye.getProperty("os.version")),X){try{re=x.require("ringo/engine").version.join("."),te="RingoJS"}catch(at){(ye=x.system)&&ye.global.system==x.system&&(te="Narwhal",Q||(Q=ye[0].os||null))}te||(te="Rhino")}else typeof x.process=="object"&&!x.process.browser&&(ye=x.process)&&(typeof ye.versions=="object"&&(typeof ye.versions.electron=="string"?(xe.push("Node "+ye.versions.node),te="Electron",re=ye.versions.electron):typeof ye.versions.nw=="string"&&(xe.push("Chromium "+re,"Node "+ye.versions.node),te="NW.js",re=ye.versions.nw)),te||(te="Node.js",Oe=ye.arch,Q=ye.platform,re=/[\d.]+/.exec(ye.version),re=re?re[0]:null));else a(ye=x.runtime)==H?(te="Adobe AIR",Q=ye.flash.system.Capabilities.os):a(ye=x.phantom)==U?(te="PhantomJS",re=(ye=ye.version||null)&&ye.major+"."+ye.minor+"."+ye.patch):typeof me.documentMode=="number"&&(ye=/\bTrident\/(\d+)/i.exec(C))?(re=[re,me.documentMode],(ye=+ye[1]+4)!=re[1]&&(xe.push("IE "+re[1]+" mode"),ee&&(ee[1]=""),re[1]=ye),re=te=="IE"?String(re[1].toFixed(1)):re[0]):typeof me.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(xe.push("masking as "+te+" "+re),te="IE",re="11.0",ee=["Trident"],Q="Windows");Q=Q&&s(Q)}if(re&&(ye=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(re)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(le&&_.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(ue=/b/i.test(ye)?"beta":"alpha",re=re.replace(RegExp(ye+"\\+?$"),"")+(ue=="beta"?fe:ne)+(/\d+\+?/.exec(ye)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Q))te="Firefox Mobile";else if(te=="Maxthon"&&re)re=re.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ce))ce=="Xbox 360"&&(Q=null),ce=="Xbox 360"&&/\bIEMobile\b/.test(C)&&xe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(te)||te&&!ce&&!/Browser|Mobi/.test(te))&&(Q=="Windows CE"||/Mobi/i.test(C)))te+=" Mobile";else if(te=="IE"&&le)try{x.external===null&&xe.unshift("platform preview")}catch(at){xe.unshift("embedded")}else(/\bBlackBerry\b/.test(ce)||/\bBB10\b/.test(C))&&(ye=(RegExp(ce.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||re)?(ye=[ye,/BB10/.test(C)],Q=(ye[1]?(ce=null,q="BlackBerry"):"Device Software")+" "+ye[0],re=null):this!=r&&ce!="Wii"&&(le&&Ae||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(C)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Q)||te=="IE"&&(Q&&!/^Win/.test(Q)&&re>5.5||/\bWindows XP\b/.test(Q)&&re>8||re==8&&!/\bTrident\b/.test(C)))&&!d.test(ye=k.call(r,C.replace(d,"")+";"))&&ye.name&&(ye="ing as "+ye.name+((ye=ye.version)?" "+ye:""),d.test(te)?(/\bIE\b/.test(ye)&&Q=="Mac OS"&&(Q=null),ye="identify"+ye):(ye="mask"+ye,De?te=s(De.replace(/([a-z])([A-Z])/g,"$1 $2")):te="Opera",/\bIE\b/.test(ye)&&(Q=null),le||(re=null)),ee=["Presto"],xe.push(ye));(ye=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(ye=[parseFloat(ye.replace(/\.(\d)$/,".0$1")),ye],te=="Safari"&&ye[1].slice(-1)=="+"?(te="WebKit Nightly",ue="alpha",re=ye[1].slice(0,-1)):(re==ye[1]||re==(ye[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&(re=null),ye[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],ye[0]==537.36&&ye[2]==537.36&&parseFloat(ye[1])>=28&&ee=="WebKit"&&(ee=["Blink"]),!le||!N&&!ye[1]?(ee&&(ee[1]="like Safari"),ye=(ye=ye[0],ye<400?1:ye<500?2:ye<526?3:ye<533?4:ye<534?"4+":ye<535?5:ye<537?6:ye<538?7:ye<601?8:"8")):(ee&&(ee[1]="like Chrome"),ye=ye[1]||(ye=ye[0],ye<530?1:ye<532?2:ye<532.05?3:ye<533?4:ye<534.03?5:ye<534.07?6:ye<534.1?7:ye<534.13?8:ye<534.16?9:ye<534.24?10:ye<534.3?11:ye<535.01?12:ye<535.02?"13+":ye<535.07?15:ye<535.11?16:ye<535.19?17:ye<536.05?18:ye<536.1?19:ye<537.01?20:ye<537.11?"21+":ye<537.13?23:ye<537.18?24:ye<537.24?25:ye<537.36?26:ee!="Blink"?"27":"28")),ee&&(ee[1]+=" "+(ye+=typeof ye=="number"?".x":/[.+]/.test(ye)?"":"+")),te=="Safari"&&(!re||parseInt(re)>45)&&(re=ye)),te=="Opera"&&(ye=/\bzbov|zvav$/.exec(Q))?(te+=" ",xe.unshift("desktop mode"),ye=="zvav"?(te+="Mini",re=null):te+="Mobile",Q=Q.replace(RegExp(" *"+ye+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(ee&&ee[1])&&(xe.unshift("desktop mode"),te="Chrome Mobile",re=null,/\bOS X\b/.test(Q)?(q="Apple",Q="iOS 4.3+"):Q=null),re&&re.indexOf(ye=/[\d.]+$/.exec(Q))==0&&C.indexOf("/"+ye+"-")>-1&&(Q=f(Q.replace(ye,""))),ee&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(Q)&&/\bSafari\b/.test(ee[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(te)&&ee[1])&&((ye=ee[ee.length-1])&&xe.push(ye)),xe.length&&(xe=["("+xe.join("; ")+")"]),q&&ce&&ce.indexOf(q)<0&&xe.push("on "+q),ce&&xe.push((/^on /.test(xe[xe.length-1])?"":"on ")+ce),Q&&(ye=/ ([\d.+]+)$/.exec(Q),pe=ye&&Q.charAt(Q.length-ye[0].length-1)=="/",Q={architecture:32,family:ye&&!pe?Q.replace(ye[0],""):Q,version:ye?ye[1]:null,toString:function(){var at=this.version;return this.family+(at&&!pe?" "+at:"")+(this.architecture==64?" 64-bit":"")}}),(ye=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Oe))&&!/\bi686\b/i.test(Oe)?(Q&&(Q.architecture=64,Q.family=Q.family.replace(RegExp(" *"+ye),"")),te&&(/\bWOW64\b/i.test(C)||le&&/\w(?:86|32)$/.test(_.cpuClass||_.platform)&&!/\bWin64; x64\b/i.test(C))&&xe.unshift("32-bit")):Q&&/^OS X/.test(Q.family)&&te=="Chrome"&&parseFloat(re)>=39&&(Q.architecture=64),C||(C=null);var nt={};return nt.description=C,nt.layout=ee&&ee[0],nt.manufacturer=q,nt.name=te,nt.prerelease=ue,nt.product=ce,nt.ua=C,nt.version=te&&re,nt.os=Q||{architecture:null,family:null,version:null,toString:function(){return"null"}},nt.parse=k,nt.toString=rt,nt.version&&xe.unshift(re),nt.name&&xe.unshift(te),Q&&te&&!(Q==String(Q).split(" ")[0]&&(Q==te.split(" ")[0]||ce))&&xe.push(ce?"("+Q+")":"on "+Q),xe.length&&(nt.description=xe.join(" ")),nt}var O=k();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=O,define(function(){return O})):p&&v?r(O,function(C,x){p[x]=C}):T.platform=O}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(j,Y,D){(function(L){"use strict";typeof L=="undefined"||!L.version||L.version.indexOf("v0.")===0||L.version.indexOf("v1.")===0&&L.version.indexOf("v1.8.")!==0?Y.exports={nextTick:g}:Y.exports=L;function g(T,P,p,v){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var S=arguments.length,b,d;switch(S){case 0:case 1:return L.nextTick(T);case 2:return L.nextTick(function(){T.call(null,P)});case 3:return L.nextTick(function(){T.call(null,P,p)});case 4:return L.nextTick(function(){T.call(null,P,p,v)});default:for(b=new Array(S-1),d=0;d1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},t=b-d,w=Math.floor,E=String.fromCharCode,f;function k(K){throw new RangeError(a[K])}function O(K,U){for(var W=K.length,X=[];W--;)X[W]=U(K[W]);return X}function C(K,U){var W=K.split("@"),X="";W.length>1&&(X=W[0]+"@",K=W[1]),K=K.replace(r,".");var ne=K.split("."),fe=O(ne,U).join(".");return X+fe}function x(K){for(var U=[],W=0,X=K.length,ne,fe;W=55296&&ne<=56319&&W65535&&(U-=65536,W+=E(U>>>10&1023|55296),U=56320|U&1023),W+=E(U),W}).join("")}function _(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:b}function M(K,U){return K+22+75*(K<26)-((U!=0)<<5)}function I(K,U,W){var X=0;for(K=W?w(K/c):K>>1,K+=w(K/U);K>t*l>>1;X+=b)K=w(K/t);return w(X+(t+1)*K/(K+n))}function N(K){var U=[],W=K.length,X,ne=0,fe=o,me=u,Ae,De,ye,Oe,xe,ue,le,re,pe;for(Ae=K.lastIndexOf(h),Ae<0&&(Ae=0),De=0;De=128&&k("not-basic"),U.push(K.charCodeAt(De));for(ye=Ae>0?Ae+1:0;ye=W&&k("invalid-input"),le=_(K.charCodeAt(ye++)),(le>=b||le>w((S-ne)/xe))&&k("overflow"),ne+=le*xe,re=ue<=me?d:ue>=me+l?l:ue-me,lew(S/pe)&&k("overflow"),xe*=pe;X=U.length+1,me=I(ne-Oe,X,Oe==0),w(ne/X)>S-fe&&k("overflow"),fe+=w(ne/X),ne%=X,U.splice(ne++,0,fe)}return y(U)}function G(K){var U,W,X,ne,fe,me,Ae,De,ye,Oe,xe,ue=[],le,re,pe,ee;for(K=x(K),le=K.length,U=o,W=0,fe=u,me=0;me=U&&xew((S-W)/re)&&k("overflow"),W+=(Ae-U)*re,U=Ae,me=0;meS&&k("overflow"),xe==U){for(De=W,ye=b;!(Oe=ye<=fe?d:ye>=fe+l?l:ye-fe,De0&&l>d&&(l=d);for(var n=0;n=0?(o=c.substr(0,u),h=c.substr(u+1)):(o=c,h=""),m=decodeURIComponent(o),s=decodeURIComponent(h),L(S,m)?g(S[m])?S[m].push(s):S[m]=[S[m],s]:S[m]=s}return S};var g=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(j,Y,D){"use strict";var L=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};Y.exports=function(p,v,S,b){return v=v||"&",S=S||"=",p===null&&(p=void 0),typeof p=="object"?T(P(p),function(d){var l=encodeURIComponent(L(d))+S;return g(p[d])?T(p[d],function(n){return l+encodeURIComponent(L(n))}).join(v):l+encodeURIComponent(L(p[d]))}).join(v):b?encodeURIComponent(L(b))+S+encodeURIComponent(L(p)):""};var g=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"};function T(p,v){if(p.map)return p.map(v);for(var S=[],b=0;b0?(typeof te!="string"&&!V.objectMode&&(0,P.default)(te)!==o.prototype&&(te=m(te)),q?V.endEmitted?ee.emit("error",new Error("stream.unshift() after end event")):_(ee,V,te,!0):V.ended?ee.emit("error",new Error("stream.push() after EOF")):(V.reading=!1,V.decoder&&!ce?(te=V.decoder.write(te),V.objectMode||te.length!==0?_(ee,V,te,!1):W(ee,V)):_(ee,V,te,!1))):q||(V.reading=!1)}return I(V)}function _(ee,te,ce,q){te.flowing&&te.length===0&&!te.sync?(ee.emit("data",ce),ee.read(0)):(te.length+=te.objectMode?1:ce.length,q?te.buffer.unshift(ce):te.buffer.push(ce),te.needReadable&&K(ee)),W(ee,te)}function M(ee,te){var ce;return!s(te)&&typeof te!="string"&&te!==void 0&&!ee.objectMode&&(ce=new TypeError("Invalid non-string/buffer chunk")),ce}function I(ee){return!ee.ended&&(ee.needReadable||ee.length=N?ee=N:(ee--,ee|=ee>>>1,ee|=ee>>>2,ee|=ee>>>4,ee|=ee>>>8,ee|=ee>>>16,ee++),ee}function H(ee,te){return ee<=0||te.length===0&&te.ended?0:te.objectMode?1:ee!==ee?te.flowing&&te.length?te.buffer.head.data.length:te.length:(ee>te.highWaterMark&&(te.highWaterMark=G(ee)),ee<=te.length?ee:te.ended?te.length:(te.needReadable=!0,0))}x.prototype.read=function(ee){t("read",ee),ee=parseInt(ee,10);var te=this._readableState,ce=ee;if(ee!==0&&(te.emittedReadable=!1),ee===0&&te.needReadable&&(te.length>=te.highWaterMark||te.ended))return t("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?le(this):K(this),null;if(ee=H(ee,te),ee===0&&te.ended)return te.length===0&&le(this),null;var q=te.needReadable;t("need readable",q),(te.length===0||te.length-ee0?Q=ye(ee,te):Q=null,Q===null?(te.needReadable=!0,ee=0):te.length-=ee,te.length===0&&(te.ended||(te.needReadable=!0),ce!==ee&&te.ended&&le(this)),Q!==null&&this.emit("data",Q),Q};function B(ee,te){if(te.ended)return;if(te.decoder){var ce=te.decoder.end();ce&&ce.length&&(te.buffer.push(ce),te.length+=te.objectMode?1:ce.length)}te.ended=!0,K(ee)}function K(ee){var te=ee._readableState;te.needReadable=!1,te.emittedReadable||(t("emitReadable",te.flowing),te.emittedReadable=!0,te.sync?b.nextTick(U,ee):U(ee))}function U(ee){t("emit readable"),ee.emit("readable"),De(ee)}function W(ee,te){te.readingMore||(te.readingMore=!0,b.nextTick(X,ee,te))}function X(ee,te){for(var ce=te.length;!te.reading&&!te.flowing&&!te.ended&&te.length1&&pe(q.pipes,ee)!==-1)&&!Te&&(t("false write response, pause",ce._readableState.awaitDrain),ce._readableState.awaitDrain++,rt=!0),ce.pause())}function at(Re){t("onerror",Re),He(),ee.removeListener("error",at),c(ee,"error")===0&&ee.emit("error",Re)}O(ee,"error",at);function ct(){ee.removeListener("finish",ht),He()}ee.once("close",ct);function ht(){t("onfinish"),ee.removeListener("close",ct),He()}ee.once("finish",ht);function He(){t("unpipe"),ce.unpipe(ee)}return ee.emit("pipe",ce),q.flowing||(t("pipe resume"),ce.resume()),ee};function ne(ee){return function(){var te=ee._readableState;t("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&c(ee,"data")&&(te.flowing=!0,De(ee))}}x.prototype.unpipe=function(ee){var te=this._readableState,ce={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return ee&&ee!==te.pipes?this:(ee||(ee=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,ee&&ee.emit("unpipe",this,ce),this);if(!ee){var q=te.pipes,Q=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var V=0;V=te.length?(te.decoder?ce=te.buffer.join(""):te.buffer.length===1?ce=te.buffer.head.data:ce=te.buffer.concat(te.length),te.buffer.clear()):ce=Oe(ee,te.buffer,te.decoder),ce}function Oe(ee,te,ce){var q;return eeV.length?V.length:ee;if(Z===V.length?Q+=V:Q+=V.slice(0,ee),ee-=Z,ee===0){Z===V.length?(++q,ce.next?te.head=ce.next:te.head=te.tail=null):(te.head=ce,ce.data=V.slice(Z));break}++q}return te.length-=q,Q}function ue(ee,te){var ce=o.allocUnsafe(ee),q=te.head,Q=1;for(q.data.copy(ce),ee-=q.data.length;q=q.next;){var V=q.data,Z=ee>V.length?V.length:ee;if(V.copy(ce,ce.length-ee,0,Z),ee-=Z,ee===0){Z===V.length?(++Q,q.next?te.head=q.next:te.head=te.tail=null):(te.head=q,q.data=V.slice(Z));break}++Q}return te.length-=Q,ce}function le(ee){var te=ee._readableState;if(te.length>0)throw new Error('"endReadable()" called on non-empty stream');te.endEmitted||(te.ended=!0,b.nextTick(re,te,ee))}function re(ee,te){!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,te.readable=!1,te.emit("end"))}function pe(ee,te){for(var ce=0,q=ee.length;ce-1?c.default:o.nextTick,r;M.WritableState=y;var a=(0,l.default)(j("core-util-is"));a.inherits=j("inherits");var t={deprecate:j("util-deprecate")},w=j("./internal/streams/stream"),E=j("safe-buffer").Buffer,f=g.Uint8Array||function(){};function k(ue){return E.from(ue)}function O(ue){return E.isBuffer(ue)||ue instanceof f}var C=j("./internal/streams/destroy");a.inherits(M,w);function x(){}function y(ue,le){r=r||j("./_stream_duplex"),ue=ue||{};var re=le instanceof r;this.objectMode=!!ue.objectMode,re&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var pe=ue.highWaterMark,ee=ue.writableHighWaterMark,te=this.objectMode?16:16*1024;pe||pe===0?this.highWaterMark=pe:re&&(ee||ee===0)?this.highWaterMark=ee:this.highWaterMark=te,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 ce=ue.decodeStrings===!1;this.decodeStrings=!ce,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){W(le,q)},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 m(this)}y.prototype.getBuffer=function(){for(var le=this.bufferedRequest,re=[];le;)re.push(le),le=le.next;return re},function(){try{Object.defineProperty(y.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var _;typeof b.default=="function"&&v.default&&typeof Function.prototype[v.default]=="function"?(_=Function.prototype[v.default],(0,P.default)(M,v.default,{value:function(le){return _.call(this,le)?!0:this!==M?!1:le&&le._writableState instanceof y}})):_=function(le){return le instanceof this};function M(ue){if(r=r||j("./_stream_duplex"),!_.call(M,this)&&!(this instanceof r))return new M(ue);this._writableState=new y(ue,this),this.writable=!0,ue&&(typeof ue.write=="function"&&(this._write=ue.write),typeof ue.writev=="function"&&(this._writev=ue.writev),typeof ue.destroy=="function"&&(this._destroy=ue.destroy),typeof ue.final=="function"&&(this._final=ue.final)),w.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function I(ue,le){var re=new Error("write after end");ue.emit("error",re),o.nextTick(le,re)}function N(ue,le,re,pe){var ee=!0,te=!1;return re===null?te=new TypeError("May not write null values to stream"):typeof re!="string"&&re!==void 0&&!le.objectMode&&(te=new TypeError("Invalid non-string/buffer chunk")),te&&(ue.emit("error",te),o.nextTick(pe,te),ee=!1),ee}M.prototype.write=function(ue,le,re){var pe=this._writableState,ee=!1,te=!pe.objectMode&&O(ue);return te&&!E.isBuffer(ue)&&(ue=k(ue)),typeof le=="function"&&(re=le,le=null),te?le="buffer":le||(le=pe.defaultEncoding),typeof re!="function"&&(re=x),pe.ended?I(this,re):(te||N(this,pe,ue,re))&&(pe.pendingcb++,ee=H(this,pe,te,ue,le,re)),ee},M.prototype.cork=function(){var ue=this._writableState;ue.corked++},M.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&fe(this,ue))},M.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+le);return this._writableState.defaultEncoding=le,this};function G(ue,le,re){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof le=="string"&&(le=E.from(le,re)),le}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,le,re,pe,ee,te){if(!re){var ce=G(le,pe,ee);pe!==ce&&(re=!0,ee="buffer",pe=ce)}var q=le.objectMode?1:pe.length;le.length+=q;var Q=le.length0?this.tail.next=b:this.head=b,this.tail=b,++this.length},p.prototype.unshift=function(S){var b={data:S,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length},p.prototype.shift=function(){if(this.length===0)return;var S=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,S},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(S){if(this.length===0)return"";for(var b=this.head,d=""+b.data;b=b.next;)d+=S+b.data;return d},p.prototype.concat=function(S){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var b=g.allocUnsafe(S>>>0),d=this.head,l=0;d;)P(d.data,b,l),l+=d.data.length,d=d.next;return b},p}(),T&&T.inspect&&T.inspect.custom&&(Y.exports.prototype[T.inspect.custom]=function(){var p=T.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":228,util:71}],220:[function(j,Y,D){"use strict";var L=j("process-nextick-args");function g(p,v){var S=this,b=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return b||d?(v?v(p):p&&(!this._writableState||!this._writableState.errorEmitted)&&L.nextTick(P,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(l){!v&&l?(L.nextTick(P,S,l),S._writableState&&(S._writableState.errorEmitted=!0)):v&&v(l)}),this)}function T(){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 P(p,v){p.emit("error",v)}Y.exports={destroy:g,undestroy:T}},{"process-nextick-args":207}],221:[function(j,Y,D){"use strict";Y.exports=j("events").EventEmitter},{events:192}],222:[function(j,Y,D){Y.exports=j("./readable").PassThrough},{"./readable":223}],223:[function(j,Y,D){D=Y.exports=j("./lib/_stream_readable.js"),D.Stream=D,D.Readable=D,D.Writable=j("./lib/_stream_writable.js"),D.Duplex=j("./lib/_stream_duplex.js"),D.Transform=j("./lib/_stream_transform.js"),D.PassThrough=j("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(j,Y,D){Y.exports=j("./readable").Transform},{"./readable":223}],225:[function(j,Y,D){Y.exports=j("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(j,Y,D){var L=function(){return this}()||Function("return this")(),g=L.regeneratorRuntime&&Object.getOwnPropertyNames(L).indexOf("regeneratorRuntime")>=0,T=g&&L.regeneratorRuntime;if(L.regeneratorRuntime=void 0,Y.exports=j("./runtime"),g)L.regeneratorRuntime=T;else try{delete L.regeneratorRuntime}catch(P){L.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(j,Y,D){!function(L){"use strict";var g=Object.prototype,T=g.hasOwnProperty,P,p=typeof Symbol=="function"?Symbol:{},v=p.iterator||"@@iterator",S=p.asyncIterator||"@@asyncIterator",b=p.toStringTag||"@@toStringTag",d=typeof Y=="object",l=L.regeneratorRuntime;if(l){d&&(Y.exports=l);return}l=L.regeneratorRuntime=d?Y.exports:{};function n(H,B,K,U){var W=B&&B.prototype instanceof r?B:r,X=Object.create(W.prototype),ne=new I(U||[]);return X._invoke=x(H,K,ne),X}l.wrap=n;function c(H,B,K){try{return{type:"normal",arg:H.call(B,K)}}catch(U){return{type:"throw",arg:U}}}var u="suspendedStart",o="suspendedYield",h="executing",m="completed",s={};function r(){}function a(){}function t(){}var w={};w[v]=function(){return this};var E=Object.getPrototypeOf,f=E&&E(E(N([])));f&&f!==g&&T.call(f,v)&&(w=f);var k=t.prototype=r.prototype=Object.create(w);a.prototype=k.constructor=t,t.constructor=a,t[b]=a.displayName="GeneratorFunction";function O(H){["next","throw","return"].forEach(function(B){H[B]=function(K){return this._invoke(B,K)}})}l.isGeneratorFunction=function(H){var B=typeof H=="function"&&H.constructor;return B?B===a||(B.displayName||B.name)==="GeneratorFunction":!1},l.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,t):(H.__proto__=t,b in H||(H[b]="GeneratorFunction")),H.prototype=Object.create(k),H},l.awrap=function(H){return{__await:H}};function C(H){function B(W,X,ne,fe){var me=c(H[W],H,X);if(me.type==="throw")fe(me.arg);else{var Ae=me.arg,De=Ae.value;return De&&typeof De=="object"&&T.call(De,"__await")?Promise.resolve(De.__await).then(function(ye){B("next",ye,ne,fe)},function(ye){B("throw",ye,ne,fe)}):Promise.resolve(De).then(function(ye){Ae.value=ye,ne(Ae)},fe)}}var K;function U(W,X){function ne(){return new Promise(function(fe,me){B(W,X,fe,me)})}return K=K?K.then(ne,ne):ne()}this._invoke=U}O(C.prototype),C.prototype[S]=function(){return this},l.AsyncIterator=C,l.async=function(H,B,K,U){var W=new C(n(H,B,K,U));return l.isGeneratorFunction(B)?W:W.next().then(function(X){return X.done?X.value:W.next()})};function x(H,B,K){var U=u;return function(X,ne){if(U===h)throw new Error("Generator is already running");if(U===m){if(X==="throw")throw ne;return G()}for(K.method=X,K.arg=ne;;){var fe=K.delegate;if(fe){var me=y(fe,K);if(me){if(me===s)continue;return me}}if(K.method==="next")K.sent=K._sent=K.arg;else if(K.method==="throw"){if(U===u)throw U=m,K.arg;K.dispatchException(K.arg)}else K.method==="return"&&K.abrupt("return",K.arg);U=h;var Ae=c(H,B,K);if(Ae.type==="normal"){if(U=K.done?m:o,Ae.arg===s)continue;return{value:Ae.arg,done:K.done}}else Ae.type==="throw"&&(U=m,K.method="throw",K.arg=Ae.arg)}}}function y(H,B){var K=H.iterator[B.method];if(K===P){if(B.delegate=null,B.method==="throw"){if(H.iterator.return&&(B.method="return",B.arg=P,y(H,B),B.method==="throw"))return s;B.method="throw",B.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var U=c(K,H.iterator,B.arg);if(U.type==="throw")return B.method="throw",B.arg=U.arg,B.delegate=null,s;var W=U.arg;if(!W)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,s;if(W.done)B[H.resultName]=W.value,B.next=H.nextLoc,B.method!=="return"&&(B.method="next",B.arg=P);else return W;return B.delegate=null,s}O(k),k[b]="Generator",k[v]=function(){return this},k.toString=function(){return"[object Generator]"};function _(H){var B={tryLoc:H[0]};1 in H&&(B.catchLoc=H[1]),2 in H&&(B.finallyLoc=H[2],B.afterLoc=H[3]),this.tryEntries.push(B)}function M(H){var B=H.completion||{};B.type="normal",delete B.arg,H.completion=B}function I(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(_,this),this.reset(!0)}l.keys=function(H){var B=[];for(var K in H)B.push(K);return B.reverse(),function U(){for(;B.length;){var W=B.pop();if(W in H)return U.value=W,U.done=!1,U}return U.done=!0,U}};function N(H){if(H){var B=H[v];if(B)return B.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var K=-1,U=function W(){for(;++K=0;--U){var W=this.tryEntries[U],X=W.completion;if(W.tryLoc==="root")return K("end");if(W.tryLoc<=this.prev){var ne=T.call(W,"catchLoc"),fe=T.call(W,"finallyLoc");if(ne&&fe){if(this.prev=0;--K){var U=this.tryEntries[K];if(U.tryLoc<=this.prev&&T.call(U,"finallyLoc")&&this.prev=0;--B){var K=this.tryEntries[B];if(K.finallyLoc===H)return this.complete(K.completion,K.afterLoc),M(K),s}},catch:function(H){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.tryLoc===H){var U=K.completion;if(U.type==="throw"){var W=U.arg;M(K)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(H,B,K){return this.delegate={iterator:N(H),resultName:B,nextLoc:K},this.method==="next"&&(this.arg=P),s}}}(function(){return this}()||Function("return this")())},{}],228:[function(j,Y,D){var L=j("buffer"),g=L.Buffer;function T(p,v){for(var S in p)v[S]=p[S]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?Y.exports=L:(T(L,D),D.Buffer=P);function P(p,v,S){return g(p,v,S)}T(g,P),P.from=function(p,v,S){if(typeof p=="number")throw new TypeError("Argument must not be a number");return g(p,v,S)},P.alloc=function(p,v,S){if(typeof p!="number")throw new TypeError("Argument must be a number");var b=g(p);return v!==void 0?typeof S=="string"?b.fill(v,S):b.fill(v):b.fill(0),b},P.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return g(p)},P.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return L.SlowBuffer(p)}},{buffer:73}],229:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/core-js/string/from-code-point"),T=o(g),P=j("babel-runtime/core-js/json/stringify"),p=o(P),v=j("babel-runtime/helpers/typeof"),S=o(v),b=j("babel-runtime/core-js/object/define-property"),d=o(b),l=j("babel-runtime/core-js/object/keys"),n=o(l),c=j("babel-runtime/core-js/object/create"),u=o(c);function o(h){return h&&h.__esModule?h:{default:h}}(function(h){h.parser=function(V,Z){return new s(V,Z)},h.SAXParser=s,h.SAXStream=k,h.createStream=f,h.MAX_BUFFER_LENGTH=64*1024;var m=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];h.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function s(V,Z){if(!(this instanceof s))return new s(V,Z);var be=this;a(be),be.q=be.c="",be.bufferCheckPosition=h.MAX_BUFFER_LENGTH,be.opt=Z||{},be.opt.lowercase=be.opt.lowercase||be.opt.lowercasetags,be.looseCase=be.opt.lowercase?"toLowerCase":"toUpperCase",be.tags=[],be.closed=be.closedRoot=be.sawRoot=!1,be.tag=be.error=null,be.strict=!!V,be.noscript=!!(V||be.opt.noscript),be.state=X.BEGIN,be.strictEntities=be.opt.strictEntities,be.ENTITIES=be.strictEntities?(0,u.default)(h.XML_ENTITIES):(0,u.default)(h.ENTITIES),be.attribList=[],be.opt.xmlns&&(be.ns=(0,u.default)(_)),be.trackPosition=be.opt.position!==!1,be.trackPosition&&(be.position=be.line=be.column=0),fe(be,"onready")}u.default||(Object.create=function(V){function Z(){}Z.prototype=V;var be=new Z;return be}),n.default||(Object.keys=function(V){var Z=[];for(var be in V)V.hasOwnProperty(be)&&Z.push(be);return Z});function r(V){for(var Z=Math.max(h.MAX_BUFFER_LENGTH,10),be=0,ge=0,Te=m.length;geZ)switch(m[ge]){case"textNode":Ae(V);break;case"cdata":me(V,"oncdata",V.cdata),V.cdata="";break;case"script":me(V,"onscript",V.script),V.script="";break;default:ye(V,"Max buffer length exceeded: "+m[ge])}be=Math.max(be,Je)}var rt=h.MAX_BUFFER_LENGTH-be;V.bufferCheckPosition=rt+V.position}function a(V){for(var Z=0,be=m.length;Z"||H(V)}function U(V,Z){return V.test(Z)}function W(V,Z){return!U(V,Z)}var X=0;h.STATE={BEGIN:X++,BEGIN_WHITESPACE:X++,TEXT:X++,TEXT_ENTITY:X++,OPEN_WAKA:X++,SGML_DECL:X++,SGML_DECL_QUOTED:X++,DOCTYPE:X++,DOCTYPE_QUOTED:X++,DOCTYPE_DTD:X++,DOCTYPE_DTD_QUOTED:X++,COMMENT_STARTING:X++,COMMENT:X++,COMMENT_ENDING:X++,COMMENT_ENDED:X++,CDATA:X++,CDATA_ENDING:X++,CDATA_ENDING_2:X++,PROC_INST:X++,PROC_INST_BODY:X++,PROC_INST_ENDING:X++,OPEN_TAG:X++,OPEN_TAG_SLASH:X++,ATTRIB:X++,ATTRIB_NAME:X++,ATTRIB_NAME_SAW_WHITE:X++,ATTRIB_VALUE:X++,ATTRIB_VALUE_QUOTED:X++,ATTRIB_VALUE_CLOSED:X++,ATTRIB_VALUE_UNQUOTED:X++,ATTRIB_VALUE_ENTITY_Q:X++,ATTRIB_VALUE_ENTITY_U:X++,CLOSE_TAG:X++,CLOSE_TAG_SAW_WHITE:X++,SCRIPT:X++,SCRIPT_ENDING:X++},h.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},h.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,n.default)(h.ENTITIES).forEach(function(V){var Z=h.ENTITIES[V],be=typeof Z=="number"?String.fromCharCode(Z):Z;h.ENTITIES[V]=be});for(var ne in h.STATE)h.STATE[h.STATE[ne]]=ne;X=h.STATE;function fe(V,Z,be){V[Z]&&V[Z](be)}function me(V,Z,be){V.textNode&&Ae(V),fe(V,Z,be)}function Ae(V){V.textNode=De(V.opt,V.textNode),V.textNode&&fe(V,"ontext",V.textNode),V.textNode=""}function De(V,Z){return V.trim&&(Z=Z.trim()),V.normalize&&(Z=Z.replace(/\s+/g," ")),Z}function ye(V,Z){return Ae(V),V.trackPosition&&(Z+=` Line: `+V.line+` Column: `+V.column+` -Char: `+V.c),Z=new Error(Z),V.error=Z,fe(V,"onerror",Z),V}function Oe(V){return V.sawRoot&&!V.closedRoot&&xe(V,"Unclosed root tag"),V.state!==X.BEGIN&&V.state!==X.BEGIN_WHITESPACE&&V.state!==X.TEXT&&ye(V,"Unexpected end"),Ae(V),V.c="",V.closed=!0,fe(V,"onend"),s.call(V,V.strict,V.opt),V}function xe(V,Z){if((typeof V=="undefined"?"undefined":(0,_.default)(V))!=="object"||!(V instanceof s))throw new Error("bad call to strictFail");V.strict&&ye(V,Z)}function ue(V){V.strict||(V.tagName=V.tagName[V.looseCase]());var Z=V.tags[V.tags.length-1]||V,be=V.tag={name:V.tagName,attributes:{}};V.opt.xmlns&&(be.ns=Z.ns),V.attribList.length=0,me(V,"onopentagstart",be)}function le(V,Z){var be=V.indexOf(":"),ge=be<0?["",V]:V.split(":"),Te=ge[0],Je=ge[1];return Z&&V==="xmlns"&&(Te="xmlns",Je=""),{prefix:Te,local:Je}}function re(V){if(V.strict||(V.attribName=V.attribName[V.looseCase]()),V.attribList.indexOf(V.attribName)!==-1||V.tag.attributes.hasOwnProperty(V.attribName)){V.attribName=V.attribValue="";return}if(V.opt.xmlns){var Z=le(V.attribName,!0),be=Z.prefix,ge=Z.local;if(be==="xmlns")if(ge==="xml"&&V.attribValue!==x)xe(V,"xml: prefix must be bound to "+x+` +Char: `+V.c),Z=new Error(Z),V.error=Z,fe(V,"onerror",Z),V}function Oe(V){return V.sawRoot&&!V.closedRoot&&xe(V,"Unclosed root tag"),V.state!==X.BEGIN&&V.state!==X.BEGIN_WHITESPACE&&V.state!==X.TEXT&&ye(V,"Unexpected end"),Ae(V),V.c="",V.closed=!0,fe(V,"onend"),s.call(V,V.strict,V.opt),V}function xe(V,Z){if((typeof V=="undefined"?"undefined":(0,S.default)(V))!=="object"||!(V instanceof s))throw new Error("bad call to strictFail");V.strict&&ye(V,Z)}function ue(V){V.strict||(V.tagName=V.tagName[V.looseCase]());var Z=V.tags[V.tags.length-1]||V,be=V.tag={name:V.tagName,attributes:{}};V.opt.xmlns&&(be.ns=Z.ns),V.attribList.length=0,me(V,"onopentagstart",be)}function le(V,Z){var be=V.indexOf(":"),ge=be<0?["",V]:V.split(":"),Te=ge[0],Je=ge[1];return Z&&V==="xmlns"&&(Te="xmlns",Je=""),{prefix:Te,local:Je}}function re(V){if(V.strict||(V.attribName=V.attribName[V.looseCase]()),V.attribList.indexOf(V.attribName)!==-1||V.tag.attributes.hasOwnProperty(V.attribName)){V.attribName=V.attribValue="";return}if(V.opt.xmlns){var Z=le(V.attribName,!0),be=Z.prefix,ge=Z.local;if(be==="xmlns")if(ge==="xml"&&V.attribValue!==x)xe(V,"xml: prefix must be bound to "+x+` Actual: `+V.attribValue);else if(ge==="xmlns"&&V.attribValue!==y)xe(V,"xmlns: prefix must be bound to "+y+` -Actual: `+V.attribValue);else{var Te=V.tag,Je=V.tags[V.tags.length-1]||V;Te.ns===Je.ns&&(Te.ns=(0,u.default)(Je.ns)),Te.ns[ge]=V.attribValue}V.attribList.push([V.attribName,V.attribValue])}else V.tag.attributes[V.attribName]=V.attribValue,me(V,"onattribute",{name:V.attribName,value:V.attribValue});V.attribName=V.attribValue=""}function pe(V,Z){if(V.opt.xmlns){var be=V.tag,ge=le(V.tagName);be.prefix=ge.prefix,be.local=ge.local,be.uri=be.ns[ge.prefix]||"",be.prefix&&!be.uri&&(xe(V,"Unbound namespace prefix: "+(0,p.default)(V.tagName)),be.uri=ge.prefix);var Te=V.tags[V.tags.length-1]||V;be.ns&&Te.ns!==be.ns&&(0,n.default)(be.ns).forEach(function(Qe){me(V,"onopennamespace",{prefix:Qe,uri:be.ns[Qe]})});for(var Je=0,rt=V.attribList.length;Je",V.tagName="",V.state=X.SCRIPT;return}me(V,"onscript",V.script),V.script=""}var Z=V.tags.length,be=V.tagName;V.strict||(be=be[V.looseCase]());for(var ge=be;Z--;){var Te=V.tags[Z];if(Te.name!==ge)xe(V,"Unexpected close tag");else break}if(Z<0){xe(V,"Unmatched closing tag: "+V.tagName),V.textNode+="",V.state=X.TEXT;return}V.tagName=be;for(var Je=V.tags.length;Je-- >Z;){var rt=V.tag=V.tags.pop();V.tagName=V.tag.name,me(V,"onclosetag",V.tagName);var nt={};for(var at in rt.ns)nt[at]=rt.ns[at];var ct=V.tags[V.tags.length-1]||V;V.opt.xmlns&&rt.ns!==ct.ns&&(0,n.default)(rt.ns).forEach(function(ht){var He=rt.ns[ht];me(V,"onclosenamespace",{prefix:ht,uri:He})})}Z===0&&(V.closedRoot=!0),V.tagName=V.attribValue=V.attribName="",V.attribList.length=0,V.state=X.TEXT}function te(V){var Z=V.entity,be=Z.toLowerCase(),ge,Te="";return V.ENTITIES[Z]?V.ENTITIES[Z]:V.ENTITIES[be]?V.ENTITIES[be]:(Z=be,Z.charAt(0)==="#"&&(Z.charAt(1)==="x"?(Z=Z.slice(2),ge=parseInt(Z,16),Te=ge.toString(16)):(Z=Z.slice(1),ge=parseInt(Z,10),Te=ge.toString(10))),Z=Z.replace(/^0+/,""),isNaN(ge)||Te.toLowerCase()!==Z?(xe(V,"Invalid character entity"),"&"+V.entity+";"):(0,T.default)(ge))}function ce(V,Z){Z==="<"?(V.state=X.OPEN_WAKA,V.startTagPosition=V.position):H(Z)||(xe(V,"Non-whitespace before first tag."),V.textNode=Z,V.state=X.TEXT)}function q(V,Z){var be="";return Z",V.tagName="",V.state=X.SCRIPT;return}me(V,"onscript",V.script),V.script=""}var Z=V.tags.length,be=V.tagName;V.strict||(be=be[V.looseCase]());for(var ge=be;Z--;){var Te=V.tags[Z];if(Te.name!==ge)xe(V,"Unexpected close tag");else break}if(Z<0){xe(V,"Unmatched closing tag: "+V.tagName),V.textNode+="",V.state=X.TEXT;return}V.tagName=be;for(var Je=V.tags.length;Je-- >Z;){var rt=V.tag=V.tags.pop();V.tagName=V.tag.name,me(V,"onclosetag",V.tagName);var nt={};for(var at in rt.ns)nt[at]=rt.ns[at];var ct=V.tags[V.tags.length-1]||V;V.opt.xmlns&&rt.ns!==ct.ns&&(0,n.default)(rt.ns).forEach(function(ht){var He=rt.ns[ht];me(V,"onclosenamespace",{prefix:ht,uri:He})})}Z===0&&(V.closedRoot=!0),V.tagName=V.attribValue=V.attribName="",V.attribList.length=0,V.state=X.TEXT}function te(V){var Z=V.entity,be=Z.toLowerCase(),ge,Te="";return V.ENTITIES[Z]?V.ENTITIES[Z]:V.ENTITIES[be]?V.ENTITIES[be]:(Z=be,Z.charAt(0)==="#"&&(Z.charAt(1)==="x"?(Z=Z.slice(2),ge=parseInt(Z,16),Te=ge.toString(16)):(Z=Z.slice(1),ge=parseInt(Z,10),Te=ge.toString(10))),Z=Z.replace(/^0+/,""),isNaN(ge)||Te.toLowerCase()!==Z?(xe(V,"Invalid character entity"),"&"+V.entity+";"):(0,T.default)(ge))}function ce(V,Z){Z==="<"?(V.state=X.OPEN_WAKA,V.startTagPosition=V.position):H(Z)||(xe(V,"Non-whitespace before first tag."),V.textNode=Z,V.state=X.TEXT)}function q(V,Z){var be="";return Z"?(me(Z,"onsgmldeclaration",Z.sgmlDecl),Z.sgmlDecl="",Z.state=X.TEXT):(B(ge)&&(Z.state=X.SGML_DECL_QUOTED),Z.sgmlDecl+=ge);continue;case X.SGML_DECL_QUOTED:ge===Z.q&&(Z.state=X.SGML_DECL,Z.q=""),Z.sgmlDecl+=ge;continue;case X.DOCTYPE:ge===">"?(Z.state=X.TEXT,me(Z,"ondoctype",Z.doctype),Z.doctype=!0):(Z.doctype+=ge,ge==="["?Z.state=X.DOCTYPE_DTD:B(ge)&&(Z.state=X.DOCTYPE_QUOTED,Z.q=ge));continue;case X.DOCTYPE_QUOTED:Z.doctype+=ge,ge===Z.q&&(Z.q="",Z.state=X.DOCTYPE);continue;case X.DOCTYPE_DTD:Z.doctype+=ge,ge==="]"?Z.state=X.DOCTYPE:B(ge)&&(Z.state=X.DOCTYPE_DTD_QUOTED,Z.q=ge);continue;case X.DOCTYPE_DTD_QUOTED:Z.doctype+=ge,ge===Z.q&&(Z.state=X.DOCTYPE_DTD,Z.q="");continue;case X.COMMENT:ge==="-"?Z.state=X.COMMENT_ENDING:Z.comment+=ge;continue;case X.COMMENT_ENDING:ge==="-"?(Z.state=X.COMMENT_ENDED,Z.comment=De(Z.opt,Z.comment),Z.comment&&me(Z,"oncomment",Z.comment),Z.comment=""):(Z.comment+="-"+ge,Z.state=X.COMMENT);continue;case X.COMMENT_ENDED:ge!==">"?(xe(Z,"Malformed comment"),Z.comment+="--"+ge,Z.state=X.COMMENT):Z.state=X.TEXT;continue;case X.CDATA:ge==="]"?Z.state=X.CDATA_ENDING:Z.cdata+=ge;continue;case X.CDATA_ENDING:ge==="]"?Z.state=X.CDATA_ENDING_2:(Z.cdata+="]"+ge,Z.state=X.CDATA);continue;case X.CDATA_ENDING_2:ge===">"?(Z.cdata&&me(Z,"oncdata",Z.cdata),me(Z,"onclosecdata"),Z.cdata="",Z.state=X.TEXT):ge==="]"?Z.cdata+="]":(Z.cdata+="]]"+ge,Z.state=X.CDATA);continue;case X.PROC_INST:ge==="?"?Z.state=X.PROC_INST_ENDING:H(ge)?Z.state=X.PROC_INST_BODY:Z.procInstName+=ge;continue;case X.PROC_INST_BODY:if(!Z.procInstBody&&H(ge))continue;ge==="?"?Z.state=X.PROC_INST_ENDING:Z.procInstBody+=ge;continue;case X.PROC_INST_ENDING:ge===">"?(me(Z,"onprocessinginstruction",{name:Z.procInstName,body:Z.procInstBody}),Z.procInstName=Z.procInstBody="",Z.state=X.TEXT):(Z.procInstBody+="?"+ge,Z.state=X.PROC_INST_BODY);continue;case X.OPEN_TAG:U(I,ge)?Z.tagName+=ge:(ue(Z),ge===">"?pe(Z):ge==="/"?Z.state=X.OPEN_TAG_SLASH:(H(ge)||xe(Z,"Invalid character in tag name"),Z.state=X.ATTRIB));continue;case X.OPEN_TAG_SLASH:ge===">"?(pe(Z,!0),ee(Z)):(xe(Z,"Forward-slash in opening tag not followed by >"),Z.state=X.ATTRIB);continue;case X.ATTRIB:if(H(ge))continue;ge===">"?pe(Z):ge==="/"?Z.state=X.OPEN_TAG_SLASH:U(M,ge)?(Z.attribName=ge,Z.attribValue="",Z.state=X.ATTRIB_NAME):xe(Z,"Invalid attribute name");continue;case X.ATTRIB_NAME:ge==="="?Z.state=X.ATTRIB_VALUE:ge===">"?(xe(Z,"Attribute without value"),Z.attribValue=Z.attribName,re(Z),pe(Z)):H(ge)?Z.state=X.ATTRIB_NAME_SAW_WHITE:U(I,ge)?Z.attribName+=ge:xe(Z,"Invalid attribute name");continue;case X.ATTRIB_NAME_SAW_WHITE:if(ge==="=")Z.state=X.ATTRIB_VALUE;else{if(H(ge))continue;xe(Z,"Attribute without value"),Z.tag.attributes[Z.attribName]="",Z.attribValue="",me(Z,"onattribute",{name:Z.attribName,value:""}),Z.attribName="",ge===">"?pe(Z):U(M,ge)?(Z.attribName=ge,Z.state=X.ATTRIB_NAME):(xe(Z,"Invalid attribute name"),Z.state=X.ATTRIB)}continue;case X.ATTRIB_VALUE:if(H(ge))continue;B(ge)?(Z.q=ge,Z.state=X.ATTRIB_VALUE_QUOTED):(xe(Z,"Unquoted attribute value"),Z.state=X.ATTRIB_VALUE_UNQUOTED,Z.attribValue=ge);continue;case X.ATTRIB_VALUE_QUOTED:if(ge!==Z.q){ge==="&"?Z.state=X.ATTRIB_VALUE_ENTITY_Q:Z.attribValue+=ge;continue}re(Z),Z.q="",Z.state=X.ATTRIB_VALUE_CLOSED;continue;case X.ATTRIB_VALUE_CLOSED:H(ge)?Z.state=X.ATTRIB:ge===">"?pe(Z):ge==="/"?Z.state=X.OPEN_TAG_SLASH:U(M,ge)?(xe(Z,"No whitespace between attributes"),Z.attribName=ge,Z.attribValue="",Z.state=X.ATTRIB_NAME):xe(Z,"Invalid attribute name");continue;case X.ATTRIB_VALUE_UNQUOTED:if(!K(ge)){ge==="&"?Z.state=X.ATTRIB_VALUE_ENTITY_U:Z.attribValue+=ge;continue}re(Z),ge===">"?pe(Z):Z.state=X.ATTRIB;continue;case X.CLOSE_TAG:if(Z.tagName)ge===">"?ee(Z):U(I,ge)?Z.tagName+=ge:Z.script?(Z.script+=""?ee(Z):xe(Z,"Invalid characters in closing tag");continue;case X.TEXT_ENTITY:case X.ATTRIB_VALUE_ENTITY_Q:case X.ATTRIB_VALUE_ENTITY_U:var rt,nt;switch(Z.state){case X.TEXT_ENTITY:rt=X.TEXT,nt="textNode";break;case X.ATTRIB_VALUE_ENTITY_Q:rt=X.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case X.ATTRIB_VALUE_ENTITY_U:rt=X.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}ge===";"?(Z[nt]+=te(Z),Z.entity="",Z.state=rt):U(Z.entity.length?G:N,ge)?Z.entity+=ge:(xe(Z,"Invalid character in entity name"),Z[nt]+="&"+Z.entity+ge,Z.entity="",Z.state=rt);continue;default:throw new Error(Z,"Unknown state: "+Z.state)}}return Z.position>=Z.bufferCheckPosition&&r(Z),Z}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var V=String.fromCharCode,Z=Math.floor,be=function(){var Te=16384,Je=[],rt,nt,at=-1,ct=arguments.length;if(!ct)return"";for(var ht="";++at1114111||Z(He)!==He)throw RangeError("Invalid code point: "+He);He<=65535?Je.push(He):(He-=65536,rt=(He>>10)+55296,nt=He%1024+56320,Je.push(rt,nt)),(at+1===ct||Je.length>Te)&&(ht+=V.apply(null,Je),Je.length=0)}return ht};d.default?Object.defineProperty(String,"fromCodePoint",{value:be,configurable:!0,writable:!0}):String.fromCodePoint=be}()})(typeof D=="undefined"?(void 0).sax={}:D)}).call(this,j("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(j,Y,D){Y.exports=T;var L=j("events").EventEmitter,g=j("inherits");g(T,L),T.Readable=j("readable-stream/readable.js"),T.Writable=j("readable-stream/writable.js"),T.Duplex=j("readable-stream/duplex.js"),T.Transform=j("readable-stream/transform.js"),T.PassThrough=j("readable-stream/passthrough.js"),T.Stream=T;function T(){L.call(this)}T.prototype.pipe=function(P,p){var v=this;function _(o){P.writable&&(P.write(o)===!1&&v.pause&&v.pause())}v.on("data",_);function b(){v.readable&&v.resume&&v.resume()}P.on("drain",b),!P._isStdio&&(!p||p.end!==!1)&&(v.on("end",l),v.on("close",n));var d=!1;function l(){if(d)return;d=!0,P.end()}function n(){if(d)return;d=!0,typeof P.destroy=="function"&&P.destroy()}function c(o){if(u(),L.listenerCount(this,"error")===0)throw o}v.on("error",c),P.on("error",c);function u(){v.removeListener("data",_),P.removeListener("drain",b),v.removeListener("end",l),v.removeListener("close",n),v.removeListener("error",c),P.removeListener("error",c),v.removeListener("end",u),v.removeListener("close",u),P.removeListener("close",u)}return v.on("end",u),v.on("close",u),P.on("close",u),P.emit("pipe",v),P}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(j,Y,D){(function(L){var g=j("./lib/request"),T=j("./lib/response"),P=j("xtend"),p=j("builtin-status-codes"),v=j("url"),_=D;_.request=function(b,d){typeof b=="string"?b=v.parse(b):b=P(b);var l=L.location.protocol.search(/^https?:$/)===-1?"http:":"",n=b.protocol||l,c=b.hostname||b.host,u=b.port,o=b.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),b.url=(c?n+"//"+c:"")+(u?":"+u:"")+o,b.method=(b.method||"GET").toUpperCase(),b.headers=b.headers||{};var h=new g(b);return d&&h.on("response",d),h},_.get=function(d,l){var n=_.request(d,l);return n.end(),n},_.ClientRequest=g,_.IncomingMessage=T.IncomingMessage,_.Agent=function(){},_.Agent.defaultMaxSockets=4,_.globalAgent=new _.Agent,_.STATUS_CODES=p,_.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,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(j,Y,D){(function(L){"use strict";D.fetch=_(L.fetch)&&_(L.ReadableStream),D.writableStream=_(L.WritableStream),D.abortController=_(L.AbortController),D.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),D.blobConstructor=!0}catch(b){}var g;function T(){if(g!==void 0)return g;if(L.XMLHttpRequest){g=new L.XMLHttpRequest;try{g.open("GET",L.XDomainRequest?"/":"https://example.com")}catch(b){g=null}}else g=null;return g}function P(b){var d=T();if(!d)return!1;try{return d.responseType=b,d.responseType===b}catch(l){}return!1}var p=typeof L.ArrayBuffer!="undefined",v=p&&_(L.ArrayBuffer.prototype.slice);D.arraybuffer=D.fetch||p&&P("arraybuffer"),D.msstream=!D.fetch&&v&&P("ms-stream"),D.mozchunkedarraybuffer=!D.fetch&&p&&P("moz-chunked-arraybuffer"),D.overrideMimeType=D.fetch||(T()?_(T().overrideMimeType):!1),D.vbArray=_(L.VBArray);function _(b){return typeof b=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(j,Y,D){(function(L,g,T){"use strict";var P=j("babel-runtime/core-js/object/keys"),p=v(P);function v(r){return r&&r.__esModule?r:{default:r}}var _=j("./capability"),b=j("inherits"),d=j("./response"),l=j("readable-stream"),n=j("to-arraybuffer"),c=d.IncomingMessage,u=d.readyStates;function o(r,a){return _.fetch&&a?"fetch":_.mozchunkedarraybuffer?"moz-chunked-arraybuffer":_.msstream?"ms-stream":_.arraybuffer&&r?"arraybuffer":_.vbArray&&r?"text:vbarray":"text"}var h=Y.exports=function(r){var a=this;l.Writable.call(a),a._opts=r,a._body=[],a._headers={},r.auth&&a.setHeader("Authorization","Basic "+new T(r.auth).toString("base64")),(0,p.default)(r.headers).forEach(function(E){a.setHeader(E,r.headers[E])});var t,w=!0;if(r.mode==="disable-fetch"||"requestTimeout"in r&&!_.abortController)w=!1,t=!0;else if(r.mode==="prefer-streaming")t=!1;else if(r.mode==="allow-wrong-content-type")t=!_.overrideMimeType;else if(!r.mode||r.mode==="default"||r.mode==="prefer-fast")t=!0;else throw new Error("Invalid value for opts.mode");a._mode=o(t,w),a._fetchTimer=null,a.on("finish",function(){a._onFinish()})};b(h,l.Writable),h.prototype.setHeader=function(r,a){var t=this,w=r.toLowerCase();if(s.indexOf(w)!==-1)return;t._headers[w]={name:r,value:a}},h.prototype.getHeader=function(r){var a=this._headers[r.toLowerCase()];return a?a.value:null},h.prototype.removeHeader=function(r){var a=this;delete a._headers[r.toLowerCase()]},h.prototype._onFinish=function(){var r=this;if(r._destroyed)return;var a=r._opts,t=r._headers,w=null;a.method!=="GET"&&a.method!=="HEAD"&&(_.arraybuffer?w=n(T.concat(r._body)):_.blobConstructor?w=new g.Blob(r._body.map(function(x){return n(x)}),{type:(t["content-type"]||{}).value||""}):w=T.concat(r._body).toString());var E=[];if((0,p.default)(t).forEach(function(x){var y=t[x].name,S=t[x].value;Array.isArray(S)?S.forEach(function(M){E.push([y,M])}):E.push([y,S])}),r._mode==="fetch"){var f=null,k=null;if(_.abortController){var O=new AbortController;f=O.signal,r._fetchAbortController=O,"requestTimeout"in a&&a.requestTimeout!==0&&(r._fetchTimer=g.setTimeout(function(){r.emit("requestTimeout"),r._fetchAbortController&&r._fetchAbortController.abort()},a.requestTimeout))}g.fetch(r._opts.url,{method:r._opts.method,headers:E,body:w||void 0,mode:"cors",credentials:a.withCredentials?"include":"same-origin",signal:f}).then(function(x){r._fetchResponse=x,r._connect()},function(x){g.clearTimeout(r._fetchTimer),r._destroyed||r.emit("error",x)})}else{var C=r._xhr=new g.XMLHttpRequest;try{C.open(r._opts.method,r._opts.url,!0)}catch(x){L.nextTick(function(){r.emit("error",x)});return}"responseType"in C&&(C.responseType=r._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!a.withCredentials),r._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in a&&(C.timeout=a.requestTimeout,C.ontimeout=function(){r.emit("requestTimeout")}),E.forEach(function(x){C.setRequestHeader(x[0],x[1])}),r._response=null,C.onreadystatechange=function(){switch(C.readyState){case u.LOADING:case u.DONE:r._onXHRProgress();break}},r._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){r._onXHRProgress()}),C.onerror=function(){if(r._destroyed)return;r.emit("error",new Error("XHR error"))};try{C.send(w)}catch(x){L.nextTick(function(){r.emit("error",x)});return}}};function m(r){try{var a=r.status;return a!==null&&a!==0}catch(t){return!1}}h.prototype._onXHRProgress=function(){var r=this;if(!m(r._xhr)||r._destroyed)return;r._response||r._connect(),r._response._onXHRProgress()},h.prototype._connect=function(){var r=this;if(r._destroyed)return;r._response=new c(r._xhr,r._fetchResponse,r._mode,r._fetchTimer),r._response.on("error",function(a){r.emit("error",a)}),r.emit("response",r._response)},h.prototype._write=function(r,a,t){var w=this;w._body.push(r),t()},h.prototype.abort=h.prototype.destroy=function(){var r=this;r._destroyed=!0,g.clearTimeout(r._fetchTimer),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort()},h.prototype.end=function(r,a,t){var w=this;typeof r=="function"&&(t=r,r=void 0),l.Writable.prototype.end.call(w,r,a,t)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var s=["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","user-agent","via"]}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(j,Y,D){(function(L,g,T){"use strict";var P=j("babel-runtime/core-js/promise"),p=v(P);function v(c){return c&&c.__esModule?c:{default:c}}var _=j("./capability"),b=j("inherits"),d=j("readable-stream"),l=D.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=D.IncomingMessage=function(c,u,o,h){var m=this;if(d.Readable.call(m),m._mode=o,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){L.nextTick(function(){m.emit("close")})}),o==="fetch"){var s=function f(){a.read().then(function(k){if(m._destroyed)return;if(k.done){g.clearTimeout(h),m.push(null);return}m.push(new T(k.value)),f()}).catch(function(k){g.clearTimeout(h),m._destroyed||m.emit("error",k)})};if(m._fetchResponse=u,m.url=u.url,m.statusCode=u.status,m.statusMessage=u.statusText,u.headers.forEach(function(f,k){m.headers[k.toLowerCase()]=f,m.rawHeaders.push(k,f)}),_.writableStream){var r=new WritableStream({write:function(k){return new p.default(function(O,C){m._destroyed?C():m.push(new T(k))?O():m._resumeFetch=O})},close:function(){g.clearTimeout(h),m._destroyed||m.push(null)},abort:function(k){m._destroyed||m.emit("error",k)}});try{u.body.pipeTo(r).catch(function(f){g.clearTimeout(h),m._destroyed||m.emit("error",f)});return}catch(f){}}var a=u.body.getReader();s()}else{m._xhr=c,m._pos=0,m.url=c.responseURL,m.statusCode=c.status,m.statusMessage=c.statusText;var t=c.getAllResponseHeaders().split(/\r?\n/);if(t.forEach(function(f){var k=f.match(/^([^:]+):\s*(.*)/);if(k){var O=k[1].toLowerCase();O==="set-cookie"?(m.headers[O]===void 0&&(m.headers[O]=[]),m.headers[O].push(k[2])):m.headers[O]!==void 0?m.headers[O]+=", "+k[2]:m.headers[O]=k[2],m.rawHeaders.push(k[1],k[2])}}),m._charset="x-user-defined",!_.overrideMimeType){var w=m.rawHeaders["mime-type"];if(w){var E=w.match(/;\s*charset=([^;])(;|$)/);E&&(m._charset=E[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};b(n,d.Readable),n.prototype._read=function(){var c=this,u=c._resumeFetch;u&&(c._resumeFetch=null,u())},n.prototype._onXHRProgress=function(){var c=this,u=c._xhr,o=null;switch(c._mode){case"text:vbarray":if(u.readyState!==l.DONE)break;try{o=new g.VBArray(u.responseBody).toArray()}catch(a){}if(o!==null){c.push(new T(o));break}case"text":try{o=u.responseText}catch(a){c._mode="text:vbarray";break}if(o.length>c._pos){var h=o.substr(c._pos);if(c._charset==="x-user-defined"){for(var m=new T(h.length),s=0;sc._pos&&(c.push(new T(new Uint8Array(r.result.slice(c._pos)))),c._pos=r.result.byteLength)},r.onload=function(){c.push(null)},r.readAsArrayBuffer(o);break}c._xhr.readyState===l.DONE&&c._mode!=="ms-stream"&&c.push(null)}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(j,Y,D){"use strict";var L=j("safe-buffer").Buffer,g=L.isEncoding||function(r){r=""+r;switch(r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(r){if(!r)return"utf8";for(var a;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(a)return;r=(""+r).toLowerCase(),a=!0}}function P(r){var a=T(r);if(typeof a!="string"&&(L.isEncoding===g||!g(r)))throw new Error("Unknown encoding: "+r);return a||r}D.StringDecoder=p;function p(r){this.encoding=P(r);var a;switch(this.encoding){case"utf16le":this.text=c,this.end=u,a=4;break;case"utf8":this.fillLast=d,a=4;break;case"base64":this.text=o,this.end=h,a=3;break;default:this.write=m,this.end=s;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=L.allocUnsafe(a)}p.prototype.write=function(r){if(r.length===0)return"";var a,t;if(this.lastNeed){if(a=this.fillLast(r),a===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function _(r,a,t){var w=a.length-1;if(w=0?(E>0&&(r.lastNeed=E-1),E):--w=0?(E>0&&(r.lastNeed=E-2),E):--w=0?(E>0&&(E===2?E=0:r.lastNeed=E-3),E):0))}function b(r,a,t){if((a[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&a.length>1){if((a[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&a.length>2&&(a[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function d(r){var a=this.lastTotal-this.lastNeed,t=b(this,r,a);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,a,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,a,0,r.length),this.lastNeed-=r.length}function l(r,a){var t=_(this,r,a);if(!this.lastNeed)return r.toString("utf8",a);this.lastTotal=t;var w=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,w),r.toString("utf8",a,w)}function n(r){var a=r&&r.length?this.write(r):"";return this.lastNeed?a+"\uFFFD":a}function c(r,a){if((r.length-a)%2===0){var t=r.toString("utf16le",a);if(t){var w=t.charCodeAt(t.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",a,r.length-1)}function u(r){var a=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return a+this.lastChar.toString("utf16le",0,t)}return a}function o(r,a){var t=(r.length-a)%3;return t===0?r.toString("base64",a):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",a,r.length-t))}function h(r){var a=r&&r.length?this.write(r):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function m(r){return r.toString(this.encoding)}function s(r){return r&&r.length?this.write(r):""}},{"safe-buffer":228}],236:[function(j,Y,D){(function(L,g){var T=j("process/browser.js").nextTick,P=Function.prototype.apply,p=Array.prototype.slice,v={},_=0;D.setTimeout=function(){return new b(P.call(setTimeout,window,arguments),clearTimeout)},D.setInterval=function(){return new b(P.call(setInterval,window,arguments),clearInterval)},D.clearTimeout=D.clearInterval=function(d){d.close()};function b(d,l){this._id=d,this._clearFn=l}b.prototype.unref=b.prototype.ref=function(){},b.prototype.close=function(){this._clearFn.call(window,this._id)},D.enroll=function(d,l){clearTimeout(d._idleTimeoutId),d._idleTimeout=l},D.unenroll=function(d){clearTimeout(d._idleTimeoutId),d._idleTimeout=-1},D._unrefActive=D.active=function(d){clearTimeout(d._idleTimeoutId);var l=d._idleTimeout;l>=0&&(d._idleTimeoutId=setTimeout(function(){d._onTimeout&&d._onTimeout()},l))},D.setImmediate=typeof L=="function"?L:function(d){var l=_++,n=arguments.length<2?!1:p.call(arguments,1);return v[l]=!0,T(function(){v[l]&&(n?d.apply(null,n):d.call(null),D.clearImmediate(l))}),l},D.clearImmediate=typeof g=="function"?g:function(d){delete v[d]}}).call(this,j("timers").setImmediate,j("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(j,Y,D){var L=j("buffer").Buffer;Y.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(L.isBuffer(g)){for(var T=new Uint8Array(g.length),P=g.length,p=0;p",'"',"`"," ","\r",` -`," "],b=["{","}","|","\\","^","`"].concat(_),d=["'"].concat(b),l=["%","/","?",";","#"].concat(d),n=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,o=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},s={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},r=j("querystring");function a(f,k,O){if(f&&g.isObject(f)&&f instanceof T)return f;var C=new T;return C.parse(f,k,O),C}T.prototype.parse=function(f,k,O){if(!g.isString(f))throw new TypeError("Parameter 'url' must be a string, not "+typeof f);var C=f.indexOf("?"),x=C!==-1&&C127?De+="x":De+=Ae[ye];if(!De.match(u)){var xe=fe.slice(0,K),ue=fe.slice(K+1),le=Ae.match(o);le&&(xe.push(le[1]),ue.unshift(le[2])),ue.length&&(M="/"+ue.join(".")+M),this.hostname=xe.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),ne||(this.hostname=L.toASCII(this.hostname));var re=this.port?":"+this.port:"",pe=this.hostname||"";this.host=pe+re,this.href+=this.host,ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),M[0]!=="/"&&(M="/"+M))}if(!h[G])for(var K=0,me=d.length;K0?O.host.split("@"):!1;De&&(O.auth=De.shift(),O.host=O.hostname=De.shift())}return O.search=f.search,O.query=f.query,(!g.isNull(O.pathname)||!g.isNull(O.search))&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!fe.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var ye=fe.slice(-1)[0],Oe=(O.host||f.host||fe.length>1)&&(ye==="."||ye==="..")||ye==="",xe=0,ue=fe.length;ue>=0;ue--)ye=fe[ue],ye==="."?fe.splice(ue,1):ye===".."?(fe.splice(ue,1),xe++):xe&&(fe.splice(ue,1),xe--);if(!X&&!ne)for(;xe--;xe)fe.unshift("..");X&&fe[0]!==""&&(!fe[0]||fe[0].charAt(0)!=="/")&&fe.unshift(""),Oe&&fe.join("/").substr(-1)!=="/"&&fe.push("");var le=fe[0]===""||fe[0]&&fe[0].charAt(0)==="/";if(Ae){O.hostname=O.host=le?"":fe.length?fe.shift():"";var De=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;De&&(O.auth=De.shift(),O.host=O.hostname=De.shift())}return X=X||O.host&&fe.length,X&&!le&&fe.unshift(""),fe.length?O.pathname=fe.join("/"):(O.pathname=null,O.path=null),(!g.isNull(O.pathname)||!g.isNull(O.search))&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=f.auth||O.auth,O.slashes=O.slashes||f.slashes,O.href=O.format(),O},T.prototype.parseHost=function(){var f=this.host,k=p.exec(f);k&&(k=k[0],k!==":"&&(this.port=k.substr(1)),f=f.substr(0,f.length-k.length)),f&&(this.hostname=f)}},{"./util":239,punycode:209,querystring:212}],239:[function(j,Y,D){"use strict";Y.exports={isString:function(L){return typeof L=="string"},isObject:function(L){return typeof L=="object"&&L!==null},isNull:function(L){return L===null},isNullOrUndefined:function(L){return L==null}}},{}],240:[function(j,Y,D){(function(L){Y.exports=g;function g(P,p){if(T("noDeprecation"))return P;var v=!1;function _(){if(!v){if(T("throwDeprecation"))throw new Error(p);T("traceDeprecation")?console.trace(p):console.warn(p),v=!0}return P.apply(this,arguments)}return _}function T(P){try{if(!L.localStorage)return!1}catch(v){return!1}var p=L.localStorage[P];return p==null?!1:String(p).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(j,Y,D){typeof Object.create=="function"?Y.exports=function(g,T){g.super_=T,g.prototype=Object.create(T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:Y.exports=function(g,T){g.super_=T;var P=function(){};P.prototype=T.prototype,g.prototype=new P,g.prototype.constructor=g}},{}],242:[function(j,Y,D){Y.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(j,Y,D){(function(L,g){var T=/%[sdj%]/g;D.format=function(B){if(!w(B)){for(var K=[],U=0;U=X)return me;switch(me){case"%s":return String(W[U++]);case"%d":return Number(W[U++]);case"%j":try{return JSON.stringify(W[U++])}catch(Ae){return"[Circular]"}default:return me}}),fe=W[U];U=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),s(K)?U.showHidden=K:K&&D._extend(U,K),f(U.showHidden)&&(U.showHidden=!1),f(U.depth)&&(U.depth=2),f(U.colors)&&(U.colors=!1),f(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=_),l(U,B,U.depth)}D.inspect=v,v.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]},v.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function _(B,K){var U=v.styles[K];return U?"["+v.colors[U][0]+"m"+B+"["+v.colors[U][1]+"m":B}function b(B,K){return B}function d(B){var K={};return B.forEach(function(U,W){K[U]=!0}),K}function l(B,K,U){if(B.customInspect&&K&&y(K.inspect)&&K.inspect!==D.inspect&&!(K.constructor&&K.constructor.prototype===K)){var W=K.inspect(U,B);return w(W)||(W=l(B,W,U)),W}var X=n(B,K);if(X)return X;var ne=Object.keys(K),fe=d(ne);if(B.showHidden&&(ne=Object.getOwnPropertyNames(K)),x(K)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return c(K);if(ne.length===0){if(y(K)){var me=K.name?": "+K.name:"";return B.stylize("[Function"+me+"]","special")}if(k(K))return B.stylize(RegExp.prototype.toString.call(K),"regexp");if(C(K))return B.stylize(Date.prototype.toString.call(K),"date");if(x(K))return c(K)}var Ae="",De=!1,ye=["{","}"];if(m(K)&&(De=!0,ye=["[","]"]),y(K)){var Oe=K.name?": "+K.name:"";Ae=" [Function"+Oe+"]"}if(k(K)&&(Ae=" "+RegExp.prototype.toString.call(K)),C(K)&&(Ae=" "+Date.prototype.toUTCString.call(K)),x(K)&&(Ae=" "+c(K)),ne.length===0&&(!De||K.length==0))return ye[0]+Ae+ye[1];if(U<0)return k(K)?B.stylize(RegExp.prototype.toString.call(K),"regexp"):B.stylize("[Object]","special");B.seen.push(K);var xe;return De?xe=u(B,K,U,fe,ne):xe=ne.map(function(ue){return o(B,K,U,fe,ue,De)}),B.seen.pop(),h(xe,Ae,ye)}function n(B,K){if(f(K))return B.stylize("undefined","undefined");if(w(K)){var U="'"+JSON.stringify(K).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(U,"string")}if(t(K))return B.stylize(""+K,"number");if(s(K))return B.stylize(""+K,"boolean");if(r(K))return B.stylize("null","null")}function c(B){return"["+Error.prototype.toString.call(B)+"]"}function u(B,K,U,W,X){for(var ne=[],fe=0,me=K.length;fe"?(me(Z,"onsgmldeclaration",Z.sgmlDecl),Z.sgmlDecl="",Z.state=X.TEXT):(B(ge)&&(Z.state=X.SGML_DECL_QUOTED),Z.sgmlDecl+=ge);continue;case X.SGML_DECL_QUOTED:ge===Z.q&&(Z.state=X.SGML_DECL,Z.q=""),Z.sgmlDecl+=ge;continue;case X.DOCTYPE:ge===">"?(Z.state=X.TEXT,me(Z,"ondoctype",Z.doctype),Z.doctype=!0):(Z.doctype+=ge,ge==="["?Z.state=X.DOCTYPE_DTD:B(ge)&&(Z.state=X.DOCTYPE_QUOTED,Z.q=ge));continue;case X.DOCTYPE_QUOTED:Z.doctype+=ge,ge===Z.q&&(Z.q="",Z.state=X.DOCTYPE);continue;case X.DOCTYPE_DTD:Z.doctype+=ge,ge==="]"?Z.state=X.DOCTYPE:B(ge)&&(Z.state=X.DOCTYPE_DTD_QUOTED,Z.q=ge);continue;case X.DOCTYPE_DTD_QUOTED:Z.doctype+=ge,ge===Z.q&&(Z.state=X.DOCTYPE_DTD,Z.q="");continue;case X.COMMENT:ge==="-"?Z.state=X.COMMENT_ENDING:Z.comment+=ge;continue;case X.COMMENT_ENDING:ge==="-"?(Z.state=X.COMMENT_ENDED,Z.comment=De(Z.opt,Z.comment),Z.comment&&me(Z,"oncomment",Z.comment),Z.comment=""):(Z.comment+="-"+ge,Z.state=X.COMMENT);continue;case X.COMMENT_ENDED:ge!==">"?(xe(Z,"Malformed comment"),Z.comment+="--"+ge,Z.state=X.COMMENT):Z.state=X.TEXT;continue;case X.CDATA:ge==="]"?Z.state=X.CDATA_ENDING:Z.cdata+=ge;continue;case X.CDATA_ENDING:ge==="]"?Z.state=X.CDATA_ENDING_2:(Z.cdata+="]"+ge,Z.state=X.CDATA);continue;case X.CDATA_ENDING_2:ge===">"?(Z.cdata&&me(Z,"oncdata",Z.cdata),me(Z,"onclosecdata"),Z.cdata="",Z.state=X.TEXT):ge==="]"?Z.cdata+="]":(Z.cdata+="]]"+ge,Z.state=X.CDATA);continue;case X.PROC_INST:ge==="?"?Z.state=X.PROC_INST_ENDING:H(ge)?Z.state=X.PROC_INST_BODY:Z.procInstName+=ge;continue;case X.PROC_INST_BODY:if(!Z.procInstBody&&H(ge))continue;ge==="?"?Z.state=X.PROC_INST_ENDING:Z.procInstBody+=ge;continue;case X.PROC_INST_ENDING:ge===">"?(me(Z,"onprocessinginstruction",{name:Z.procInstName,body:Z.procInstBody}),Z.procInstName=Z.procInstBody="",Z.state=X.TEXT):(Z.procInstBody+="?"+ge,Z.state=X.PROC_INST_BODY);continue;case X.OPEN_TAG:U(I,ge)?Z.tagName+=ge:(ue(Z),ge===">"?pe(Z):ge==="/"?Z.state=X.OPEN_TAG_SLASH:(H(ge)||xe(Z,"Invalid character in tag name"),Z.state=X.ATTRIB));continue;case X.OPEN_TAG_SLASH:ge===">"?(pe(Z,!0),ee(Z)):(xe(Z,"Forward-slash in opening tag not followed by >"),Z.state=X.ATTRIB);continue;case X.ATTRIB:if(H(ge))continue;ge===">"?pe(Z):ge==="/"?Z.state=X.OPEN_TAG_SLASH:U(M,ge)?(Z.attribName=ge,Z.attribValue="",Z.state=X.ATTRIB_NAME):xe(Z,"Invalid attribute name");continue;case X.ATTRIB_NAME:ge==="="?Z.state=X.ATTRIB_VALUE:ge===">"?(xe(Z,"Attribute without value"),Z.attribValue=Z.attribName,re(Z),pe(Z)):H(ge)?Z.state=X.ATTRIB_NAME_SAW_WHITE:U(I,ge)?Z.attribName+=ge:xe(Z,"Invalid attribute name");continue;case X.ATTRIB_NAME_SAW_WHITE:if(ge==="=")Z.state=X.ATTRIB_VALUE;else{if(H(ge))continue;xe(Z,"Attribute without value"),Z.tag.attributes[Z.attribName]="",Z.attribValue="",me(Z,"onattribute",{name:Z.attribName,value:""}),Z.attribName="",ge===">"?pe(Z):U(M,ge)?(Z.attribName=ge,Z.state=X.ATTRIB_NAME):(xe(Z,"Invalid attribute name"),Z.state=X.ATTRIB)}continue;case X.ATTRIB_VALUE:if(H(ge))continue;B(ge)?(Z.q=ge,Z.state=X.ATTRIB_VALUE_QUOTED):(xe(Z,"Unquoted attribute value"),Z.state=X.ATTRIB_VALUE_UNQUOTED,Z.attribValue=ge);continue;case X.ATTRIB_VALUE_QUOTED:if(ge!==Z.q){ge==="&"?Z.state=X.ATTRIB_VALUE_ENTITY_Q:Z.attribValue+=ge;continue}re(Z),Z.q="",Z.state=X.ATTRIB_VALUE_CLOSED;continue;case X.ATTRIB_VALUE_CLOSED:H(ge)?Z.state=X.ATTRIB:ge===">"?pe(Z):ge==="/"?Z.state=X.OPEN_TAG_SLASH:U(M,ge)?(xe(Z,"No whitespace between attributes"),Z.attribName=ge,Z.attribValue="",Z.state=X.ATTRIB_NAME):xe(Z,"Invalid attribute name");continue;case X.ATTRIB_VALUE_UNQUOTED:if(!K(ge)){ge==="&"?Z.state=X.ATTRIB_VALUE_ENTITY_U:Z.attribValue+=ge;continue}re(Z),ge===">"?pe(Z):Z.state=X.ATTRIB;continue;case X.CLOSE_TAG:if(Z.tagName)ge===">"?ee(Z):U(I,ge)?Z.tagName+=ge:Z.script?(Z.script+=""?ee(Z):xe(Z,"Invalid characters in closing tag");continue;case X.TEXT_ENTITY:case X.ATTRIB_VALUE_ENTITY_Q:case X.ATTRIB_VALUE_ENTITY_U:var rt,nt;switch(Z.state){case X.TEXT_ENTITY:rt=X.TEXT,nt="textNode";break;case X.ATTRIB_VALUE_ENTITY_Q:rt=X.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case X.ATTRIB_VALUE_ENTITY_U:rt=X.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}ge===";"?(Z[nt]+=te(Z),Z.entity="",Z.state=rt):U(Z.entity.length?G:N,ge)?Z.entity+=ge:(xe(Z,"Invalid character in entity name"),Z[nt]+="&"+Z.entity+ge,Z.entity="",Z.state=rt);continue;default:throw new Error(Z,"Unknown state: "+Z.state)}}return Z.position>=Z.bufferCheckPosition&&r(Z),Z}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var V=String.fromCharCode,Z=Math.floor,be=function(){var Te=16384,Je=[],rt,nt,at=-1,ct=arguments.length;if(!ct)return"";for(var ht="";++at1114111||Z(He)!==He)throw RangeError("Invalid code point: "+He);He<=65535?Je.push(He):(He-=65536,rt=(He>>10)+55296,nt=He%1024+56320,Je.push(rt,nt)),(at+1===ct||Je.length>Te)&&(ht+=V.apply(null,Je),Je.length=0)}return ht};d.default?Object.defineProperty(String,"fromCodePoint",{value:be,configurable:!0,writable:!0}):String.fromCodePoint=be}()})(typeof D=="undefined"?(void 0).sax={}:D)}).call(this,j("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(j,Y,D){Y.exports=T;var L=j("events").EventEmitter,g=j("inherits");g(T,L),T.Readable=j("readable-stream/readable.js"),T.Writable=j("readable-stream/writable.js"),T.Duplex=j("readable-stream/duplex.js"),T.Transform=j("readable-stream/transform.js"),T.PassThrough=j("readable-stream/passthrough.js"),T.Stream=T;function T(){L.call(this)}T.prototype.pipe=function(P,p){var v=this;function S(o){P.writable&&(P.write(o)===!1&&v.pause&&v.pause())}v.on("data",S);function b(){v.readable&&v.resume&&v.resume()}P.on("drain",b),!P._isStdio&&(!p||p.end!==!1)&&(v.on("end",l),v.on("close",n));var d=!1;function l(){if(d)return;d=!0,P.end()}function n(){if(d)return;d=!0,typeof P.destroy=="function"&&P.destroy()}function c(o){if(u(),L.listenerCount(this,"error")===0)throw o}v.on("error",c),P.on("error",c);function u(){v.removeListener("data",S),P.removeListener("drain",b),v.removeListener("end",l),v.removeListener("close",n),v.removeListener("error",c),P.removeListener("error",c),v.removeListener("end",u),v.removeListener("close",u),P.removeListener("close",u)}return v.on("end",u),v.on("close",u),P.on("close",u),P.emit("pipe",v),P}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(j,Y,D){(function(L){var g=j("./lib/request"),T=j("./lib/response"),P=j("xtend"),p=j("builtin-status-codes"),v=j("url"),S=D;S.request=function(b,d){typeof b=="string"?b=v.parse(b):b=P(b);var l=L.location.protocol.search(/^https?:$/)===-1?"http:":"",n=b.protocol||l,c=b.hostname||b.host,u=b.port,o=b.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),b.url=(c?n+"//"+c:"")+(u?":"+u:"")+o,b.method=(b.method||"GET").toUpperCase(),b.headers=b.headers||{};var h=new g(b);return d&&h.on("response",d),h},S.get=function(d,l){var n=S.request(d,l);return n.end(),n},S.ClientRequest=g,S.IncomingMessage=T.IncomingMessage,S.Agent=function(){},S.Agent.defaultMaxSockets=4,S.globalAgent=new S.Agent,S.STATUS_CODES=p,S.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,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(j,Y,D){(function(L){"use strict";D.fetch=S(L.fetch)&&S(L.ReadableStream),D.writableStream=S(L.WritableStream),D.abortController=S(L.AbortController),D.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),D.blobConstructor=!0}catch(b){}var g;function T(){if(g!==void 0)return g;if(L.XMLHttpRequest){g=new L.XMLHttpRequest;try{g.open("GET",L.XDomainRequest?"/":"https://example.com")}catch(b){g=null}}else g=null;return g}function P(b){var d=T();if(!d)return!1;try{return d.responseType=b,d.responseType===b}catch(l){}return!1}var p=typeof L.ArrayBuffer!="undefined",v=p&&S(L.ArrayBuffer.prototype.slice);D.arraybuffer=D.fetch||p&&P("arraybuffer"),D.msstream=!D.fetch&&v&&P("ms-stream"),D.mozchunkedarraybuffer=!D.fetch&&p&&P("moz-chunked-arraybuffer"),D.overrideMimeType=D.fetch||(T()?S(T().overrideMimeType):!1),D.vbArray=S(L.VBArray);function S(b){return typeof b=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(j,Y,D){(function(L,g,T){"use strict";var P=j("babel-runtime/core-js/object/keys"),p=v(P);function v(r){return r&&r.__esModule?r:{default:r}}var S=j("./capability"),b=j("inherits"),d=j("./response"),l=j("readable-stream"),n=j("to-arraybuffer"),c=d.IncomingMessage,u=d.readyStates;function o(r,a){return S.fetch&&a?"fetch":S.mozchunkedarraybuffer?"moz-chunked-arraybuffer":S.msstream?"ms-stream":S.arraybuffer&&r?"arraybuffer":S.vbArray&&r?"text:vbarray":"text"}var h=Y.exports=function(r){var a=this;l.Writable.call(a),a._opts=r,a._body=[],a._headers={},r.auth&&a.setHeader("Authorization","Basic "+new T(r.auth).toString("base64")),(0,p.default)(r.headers).forEach(function(E){a.setHeader(E,r.headers[E])});var t,w=!0;if(r.mode==="disable-fetch"||"requestTimeout"in r&&!S.abortController)w=!1,t=!0;else if(r.mode==="prefer-streaming")t=!1;else if(r.mode==="allow-wrong-content-type")t=!S.overrideMimeType;else if(!r.mode||r.mode==="default"||r.mode==="prefer-fast")t=!0;else throw new Error("Invalid value for opts.mode");a._mode=o(t,w),a._fetchTimer=null,a.on("finish",function(){a._onFinish()})};b(h,l.Writable),h.prototype.setHeader=function(r,a){var t=this,w=r.toLowerCase();if(s.indexOf(w)!==-1)return;t._headers[w]={name:r,value:a}},h.prototype.getHeader=function(r){var a=this._headers[r.toLowerCase()];return a?a.value:null},h.prototype.removeHeader=function(r){var a=this;delete a._headers[r.toLowerCase()]},h.prototype._onFinish=function(){var r=this;if(r._destroyed)return;var a=r._opts,t=r._headers,w=null;a.method!=="GET"&&a.method!=="HEAD"&&(S.arraybuffer?w=n(T.concat(r._body)):S.blobConstructor?w=new g.Blob(r._body.map(function(x){return n(x)}),{type:(t["content-type"]||{}).value||""}):w=T.concat(r._body).toString());var E=[];if((0,p.default)(t).forEach(function(x){var y=t[x].name,_=t[x].value;Array.isArray(_)?_.forEach(function(M){E.push([y,M])}):E.push([y,_])}),r._mode==="fetch"){var f=null,k=null;if(S.abortController){var O=new AbortController;f=O.signal,r._fetchAbortController=O,"requestTimeout"in a&&a.requestTimeout!==0&&(r._fetchTimer=g.setTimeout(function(){r.emit("requestTimeout"),r._fetchAbortController&&r._fetchAbortController.abort()},a.requestTimeout))}g.fetch(r._opts.url,{method:r._opts.method,headers:E,body:w||void 0,mode:"cors",credentials:a.withCredentials?"include":"same-origin",signal:f}).then(function(x){r._fetchResponse=x,r._connect()},function(x){g.clearTimeout(r._fetchTimer),r._destroyed||r.emit("error",x)})}else{var C=r._xhr=new g.XMLHttpRequest;try{C.open(r._opts.method,r._opts.url,!0)}catch(x){L.nextTick(function(){r.emit("error",x)});return}"responseType"in C&&(C.responseType=r._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!a.withCredentials),r._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in a&&(C.timeout=a.requestTimeout,C.ontimeout=function(){r.emit("requestTimeout")}),E.forEach(function(x){C.setRequestHeader(x[0],x[1])}),r._response=null,C.onreadystatechange=function(){switch(C.readyState){case u.LOADING:case u.DONE:r._onXHRProgress();break}},r._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){r._onXHRProgress()}),C.onerror=function(){if(r._destroyed)return;r.emit("error",new Error("XHR error"))};try{C.send(w)}catch(x){L.nextTick(function(){r.emit("error",x)});return}}};function m(r){try{var a=r.status;return a!==null&&a!==0}catch(t){return!1}}h.prototype._onXHRProgress=function(){var r=this;if(!m(r._xhr)||r._destroyed)return;r._response||r._connect(),r._response._onXHRProgress()},h.prototype._connect=function(){var r=this;if(r._destroyed)return;r._response=new c(r._xhr,r._fetchResponse,r._mode,r._fetchTimer),r._response.on("error",function(a){r.emit("error",a)}),r.emit("response",r._response)},h.prototype._write=function(r,a,t){var w=this;w._body.push(r),t()},h.prototype.abort=h.prototype.destroy=function(){var r=this;r._destroyed=!0,g.clearTimeout(r._fetchTimer),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort()},h.prototype.end=function(r,a,t){var w=this;typeof r=="function"&&(t=r,r=void 0),l.Writable.prototype.end.call(w,r,a,t)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var s=["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","user-agent","via"]}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(j,Y,D){(function(L,g,T){"use strict";var P=j("babel-runtime/core-js/promise"),p=v(P);function v(c){return c&&c.__esModule?c:{default:c}}var S=j("./capability"),b=j("inherits"),d=j("readable-stream"),l=D.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=D.IncomingMessage=function(c,u,o,h){var m=this;if(d.Readable.call(m),m._mode=o,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){L.nextTick(function(){m.emit("close")})}),o==="fetch"){var s=function f(){a.read().then(function(k){if(m._destroyed)return;if(k.done){g.clearTimeout(h),m.push(null);return}m.push(new T(k.value)),f()}).catch(function(k){g.clearTimeout(h),m._destroyed||m.emit("error",k)})};if(m._fetchResponse=u,m.url=u.url,m.statusCode=u.status,m.statusMessage=u.statusText,u.headers.forEach(function(f,k){m.headers[k.toLowerCase()]=f,m.rawHeaders.push(k,f)}),S.writableStream){var r=new WritableStream({write:function(k){return new p.default(function(O,C){m._destroyed?C():m.push(new T(k))?O():m._resumeFetch=O})},close:function(){g.clearTimeout(h),m._destroyed||m.push(null)},abort:function(k){m._destroyed||m.emit("error",k)}});try{u.body.pipeTo(r).catch(function(f){g.clearTimeout(h),m._destroyed||m.emit("error",f)});return}catch(f){}}var a=u.body.getReader();s()}else{m._xhr=c,m._pos=0,m.url=c.responseURL,m.statusCode=c.status,m.statusMessage=c.statusText;var t=c.getAllResponseHeaders().split(/\r?\n/);if(t.forEach(function(f){var k=f.match(/^([^:]+):\s*(.*)/);if(k){var O=k[1].toLowerCase();O==="set-cookie"?(m.headers[O]===void 0&&(m.headers[O]=[]),m.headers[O].push(k[2])):m.headers[O]!==void 0?m.headers[O]+=", "+k[2]:m.headers[O]=k[2],m.rawHeaders.push(k[1],k[2])}}),m._charset="x-user-defined",!S.overrideMimeType){var w=m.rawHeaders["mime-type"];if(w){var E=w.match(/;\s*charset=([^;])(;|$)/);E&&(m._charset=E[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};b(n,d.Readable),n.prototype._read=function(){var c=this,u=c._resumeFetch;u&&(c._resumeFetch=null,u())},n.prototype._onXHRProgress=function(){var c=this,u=c._xhr,o=null;switch(c._mode){case"text:vbarray":if(u.readyState!==l.DONE)break;try{o=new g.VBArray(u.responseBody).toArray()}catch(a){}if(o!==null){c.push(new T(o));break}case"text":try{o=u.responseText}catch(a){c._mode="text:vbarray";break}if(o.length>c._pos){var h=o.substr(c._pos);if(c._charset==="x-user-defined"){for(var m=new T(h.length),s=0;sc._pos&&(c.push(new T(new Uint8Array(r.result.slice(c._pos)))),c._pos=r.result.byteLength)},r.onload=function(){c.push(null)},r.readAsArrayBuffer(o);break}c._xhr.readyState===l.DONE&&c._mode!=="ms-stream"&&c.push(null)}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(j,Y,D){"use strict";var L=j("safe-buffer").Buffer,g=L.isEncoding||function(r){r=""+r;switch(r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(r){if(!r)return"utf8";for(var a;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(a)return;r=(""+r).toLowerCase(),a=!0}}function P(r){var a=T(r);if(typeof a!="string"&&(L.isEncoding===g||!g(r)))throw new Error("Unknown encoding: "+r);return a||r}D.StringDecoder=p;function p(r){this.encoding=P(r);var a;switch(this.encoding){case"utf16le":this.text=c,this.end=u,a=4;break;case"utf8":this.fillLast=d,a=4;break;case"base64":this.text=o,this.end=h,a=3;break;default:this.write=m,this.end=s;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=L.allocUnsafe(a)}p.prototype.write=function(r){if(r.length===0)return"";var a,t;if(this.lastNeed){if(a=this.fillLast(r),a===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function S(r,a,t){var w=a.length-1;if(w=0?(E>0&&(r.lastNeed=E-1),E):--w=0?(E>0&&(r.lastNeed=E-2),E):--w=0?(E>0&&(E===2?E=0:r.lastNeed=E-3),E):0))}function b(r,a,t){if((a[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&a.length>1){if((a[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&a.length>2&&(a[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function d(r){var a=this.lastTotal-this.lastNeed,t=b(this,r,a);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,a,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,a,0,r.length),this.lastNeed-=r.length}function l(r,a){var t=S(this,r,a);if(!this.lastNeed)return r.toString("utf8",a);this.lastTotal=t;var w=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,w),r.toString("utf8",a,w)}function n(r){var a=r&&r.length?this.write(r):"";return this.lastNeed?a+"\uFFFD":a}function c(r,a){if((r.length-a)%2===0){var t=r.toString("utf16le",a);if(t){var w=t.charCodeAt(t.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",a,r.length-1)}function u(r){var a=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return a+this.lastChar.toString("utf16le",0,t)}return a}function o(r,a){var t=(r.length-a)%3;return t===0?r.toString("base64",a):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",a,r.length-t))}function h(r){var a=r&&r.length?this.write(r):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function m(r){return r.toString(this.encoding)}function s(r){return r&&r.length?this.write(r):""}},{"safe-buffer":228}],236:[function(j,Y,D){(function(L,g){var T=j("process/browser.js").nextTick,P=Function.prototype.apply,p=Array.prototype.slice,v={},S=0;D.setTimeout=function(){return new b(P.call(setTimeout,window,arguments),clearTimeout)},D.setInterval=function(){return new b(P.call(setInterval,window,arguments),clearInterval)},D.clearTimeout=D.clearInterval=function(d){d.close()};function b(d,l){this._id=d,this._clearFn=l}b.prototype.unref=b.prototype.ref=function(){},b.prototype.close=function(){this._clearFn.call(window,this._id)},D.enroll=function(d,l){clearTimeout(d._idleTimeoutId),d._idleTimeout=l},D.unenroll=function(d){clearTimeout(d._idleTimeoutId),d._idleTimeout=-1},D._unrefActive=D.active=function(d){clearTimeout(d._idleTimeoutId);var l=d._idleTimeout;l>=0&&(d._idleTimeoutId=setTimeout(function(){d._onTimeout&&d._onTimeout()},l))},D.setImmediate=typeof L=="function"?L:function(d){var l=S++,n=arguments.length<2?!1:p.call(arguments,1);return v[l]=!0,T(function(){v[l]&&(n?d.apply(null,n):d.call(null),D.clearImmediate(l))}),l},D.clearImmediate=typeof g=="function"?g:function(d){delete v[d]}}).call(this,j("timers").setImmediate,j("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(j,Y,D){var L=j("buffer").Buffer;Y.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(L.isBuffer(g)){for(var T=new Uint8Array(g.length),P=g.length,p=0;p",'"',"`"," ","\r",` +`," "],b=["{","}","|","\\","^","`"].concat(S),d=["'"].concat(b),l=["%","/","?",";","#"].concat(d),n=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,o=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},s={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},r=j("querystring");function a(f,k,O){if(f&&g.isObject(f)&&f instanceof T)return f;var C=new T;return C.parse(f,k,O),C}T.prototype.parse=function(f,k,O){if(!g.isString(f))throw new TypeError("Parameter 'url' must be a string, not "+typeof f);var C=f.indexOf("?"),x=C!==-1&&C127?De+="x":De+=Ae[ye];if(!De.match(u)){var xe=fe.slice(0,K),ue=fe.slice(K+1),le=Ae.match(o);le&&(xe.push(le[1]),ue.unshift(le[2])),ue.length&&(M="/"+ue.join(".")+M),this.hostname=xe.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),ne||(this.hostname=L.toASCII(this.hostname));var re=this.port?":"+this.port:"",pe=this.hostname||"";this.host=pe+re,this.href+=this.host,ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),M[0]!=="/"&&(M="/"+M))}if(!h[G])for(var K=0,me=d.length;K0?O.host.split("@"):!1;De&&(O.auth=De.shift(),O.host=O.hostname=De.shift())}return O.search=f.search,O.query=f.query,(!g.isNull(O.pathname)||!g.isNull(O.search))&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!fe.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var ye=fe.slice(-1)[0],Oe=(O.host||f.host||fe.length>1)&&(ye==="."||ye==="..")||ye==="",xe=0,ue=fe.length;ue>=0;ue--)ye=fe[ue],ye==="."?fe.splice(ue,1):ye===".."?(fe.splice(ue,1),xe++):xe&&(fe.splice(ue,1),xe--);if(!X&&!ne)for(;xe--;xe)fe.unshift("..");X&&fe[0]!==""&&(!fe[0]||fe[0].charAt(0)!=="/")&&fe.unshift(""),Oe&&fe.join("/").substr(-1)!=="/"&&fe.push("");var le=fe[0]===""||fe[0]&&fe[0].charAt(0)==="/";if(Ae){O.hostname=O.host=le?"":fe.length?fe.shift():"";var De=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;De&&(O.auth=De.shift(),O.host=O.hostname=De.shift())}return X=X||O.host&&fe.length,X&&!le&&fe.unshift(""),fe.length?O.pathname=fe.join("/"):(O.pathname=null,O.path=null),(!g.isNull(O.pathname)||!g.isNull(O.search))&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=f.auth||O.auth,O.slashes=O.slashes||f.slashes,O.href=O.format(),O},T.prototype.parseHost=function(){var f=this.host,k=p.exec(f);k&&(k=k[0],k!==":"&&(this.port=k.substr(1)),f=f.substr(0,f.length-k.length)),f&&(this.hostname=f)}},{"./util":239,punycode:209,querystring:212}],239:[function(j,Y,D){"use strict";Y.exports={isString:function(L){return typeof L=="string"},isObject:function(L){return typeof L=="object"&&L!==null},isNull:function(L){return L===null},isNullOrUndefined:function(L){return L==null}}},{}],240:[function(j,Y,D){(function(L){Y.exports=g;function g(P,p){if(T("noDeprecation"))return P;var v=!1;function S(){if(!v){if(T("throwDeprecation"))throw new Error(p);T("traceDeprecation")?console.trace(p):console.warn(p),v=!0}return P.apply(this,arguments)}return S}function T(P){try{if(!L.localStorage)return!1}catch(v){return!1}var p=L.localStorage[P];return p==null?!1:String(p).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(j,Y,D){typeof Object.create=="function"?Y.exports=function(g,T){g.super_=T,g.prototype=Object.create(T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:Y.exports=function(g,T){g.super_=T;var P=function(){};P.prototype=T.prototype,g.prototype=new P,g.prototype.constructor=g}},{}],242:[function(j,Y,D){Y.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(j,Y,D){(function(L,g){var T=/%[sdj%]/g;D.format=function(B){if(!w(B)){for(var K=[],U=0;U=X)return me;switch(me){case"%s":return String(W[U++]);case"%d":return Number(W[U++]);case"%j":try{return JSON.stringify(W[U++])}catch(Ae){return"[Circular]"}default:return me}}),fe=W[U];U=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),s(K)?U.showHidden=K:K&&D._extend(U,K),f(U.showHidden)&&(U.showHidden=!1),f(U.depth)&&(U.depth=2),f(U.colors)&&(U.colors=!1),f(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=S),l(U,B,U.depth)}D.inspect=v,v.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]},v.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function S(B,K){var U=v.styles[K];return U?"["+v.colors[U][0]+"m"+B+"["+v.colors[U][1]+"m":B}function b(B,K){return B}function d(B){var K={};return B.forEach(function(U,W){K[U]=!0}),K}function l(B,K,U){if(B.customInspect&&K&&y(K.inspect)&&K.inspect!==D.inspect&&!(K.constructor&&K.constructor.prototype===K)){var W=K.inspect(U,B);return w(W)||(W=l(B,W,U)),W}var X=n(B,K);if(X)return X;var ne=Object.keys(K),fe=d(ne);if(B.showHidden&&(ne=Object.getOwnPropertyNames(K)),x(K)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return c(K);if(ne.length===0){if(y(K)){var me=K.name?": "+K.name:"";return B.stylize("[Function"+me+"]","special")}if(k(K))return B.stylize(RegExp.prototype.toString.call(K),"regexp");if(C(K))return B.stylize(Date.prototype.toString.call(K),"date");if(x(K))return c(K)}var Ae="",De=!1,ye=["{","}"];if(m(K)&&(De=!0,ye=["[","]"]),y(K)){var Oe=K.name?": "+K.name:"";Ae=" [Function"+Oe+"]"}if(k(K)&&(Ae=" "+RegExp.prototype.toString.call(K)),C(K)&&(Ae=" "+Date.prototype.toUTCString.call(K)),x(K)&&(Ae=" "+c(K)),ne.length===0&&(!De||K.length==0))return ye[0]+Ae+ye[1];if(U<0)return k(K)?B.stylize(RegExp.prototype.toString.call(K),"regexp"):B.stylize("[Object]","special");B.seen.push(K);var xe;return De?xe=u(B,K,U,fe,ne):xe=ne.map(function(ue){return o(B,K,U,fe,ue,De)}),B.seen.pop(),h(xe,Ae,ye)}function n(B,K){if(f(K))return B.stylize("undefined","undefined");if(w(K)){var U="'"+JSON.stringify(K).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(U,"string")}if(t(K))return B.stylize(""+K,"number");if(s(K))return B.stylize(""+K,"boolean");if(r(K))return B.stylize("null","null")}function c(B){return"["+Error.prototype.toString.call(B)+"]"}function u(B,K,U,W,X){for(var ne=[],fe=0,me=K.length;fe-1&&(ne?me=me.split(` `).map(function(De){return" "+De}).join(` `).substr(2):me=` @@ -425,36 +425,36 @@ Actual: `+V.attribValue);else{var Te=V.tag,Je=V.tags[V.tags.length-1]||V;Te.ns== `))):me=B.stylize("[Circular]","special")),f(fe)){if(ne&&X.match(/^\d+$/))return me;fe=JSON.stringify(""+X),fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(fe=fe.substr(1,fe.length-2),fe=B.stylize(fe,"name")):(fe=fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),fe=B.stylize(fe,"string"))}return fe+": "+me}function h(B,K,U){var W=0,X=B.reduce(function(ne,fe){return W++,fe.indexOf(` `)>=0&&W++,ne+fe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?U[0]+(K===""?"":K+` `)+" "+B.join(`, - `)+" "+U[1]:U[0]+K+" "+B.join(", ")+" "+U[1]}function m(B){return Array.isArray(B)}D.isArray=m;function s(B){return typeof B=="boolean"}D.isBoolean=s;function r(B){return B===null}D.isNull=r;function a(B){return B==null}D.isNullOrUndefined=a;function t(B){return typeof B=="number"}D.isNumber=t;function w(B){return typeof B=="string"}D.isString=w;function E(B){return typeof B=="symbol"}D.isSymbol=E;function f(B){return B===void 0}D.isUndefined=f;function k(B){return O(B)&&M(B)==="[object RegExp]"}D.isRegExp=k;function O(B){return typeof B=="object"&&B!==null}D.isObject=O;function C(B){return O(B)&&M(B)==="[object Date]"}D.isDate=C;function x(B){return O(B)&&(M(B)==="[object Error]"||B instanceof Error)}D.isError=x;function y(B){return typeof B=="function"}D.isFunction=y;function S(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B=="undefined"}D.isPrimitive=S,D.isBuffer=j("./support/isBuffer");function M(B){return Object.prototype.toString.call(B)}function I(B){return B<10?"0"+B.toString(10):B.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function G(){var B=new Date,K=[I(B.getHours()),I(B.getMinutes()),I(B.getSeconds())].join(":");return[B.getDate(),N[B.getMonth()],K].join(" ")}D.log=function(){console.log("%s - %s",G(),D.format.apply(D,arguments))},D.inherits=j("inherits"),D._extend=function(B,K){if(!K||!O(K))return B;for(var U=Object.keys(K),W=U.length;W--;)B[U[W]]=K[U[W]];return B};function H(B,K){return Object.prototype.hasOwnProperty.call(B,K)}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(j,Y,D){"use strict";(function(){"use strict";D.stripBOM=function(L){return L[0]==="\uFEFF"?L.substring(1):L}}).call(void 0)},{}],245:[function(j,Y,D){"use strict";var L=j("babel-runtime/helpers/typeof"),g=p(L),T=j("babel-runtime/core-js/object/keys"),P=p(T);function p(v){return v&&v.__esModule?v:{default:v}}(function(){"use strict";var v,_,b,d,l,n={}.hasOwnProperty;v=j("xmlbuilder"),_=j("./defaults").defaults,d=function(u){return typeof u=="string"&&(u.indexOf("&")>=0||u.indexOf(">")>=0||u.indexOf("<")>=0)},l=function(u){return""},b=function(u){return u.replace("]]>","]]]]>")},D.Builder=function(){function c(u){var o,h,m;this.options={},h=_["0.2"];for(o in h){if(!n.call(h,o))continue;m=h[o],this.options[o]=m}for(o in u){if(!n.call(u,o))continue;m=u[o],this.options[o]=m}}return c.prototype.buildObject=function(u){var o,h,m,s,r;return o=this.options.attrkey,h=this.options.charkey,(0,P.default)(u).length===1&&this.options.rootName===_["0.2"].rootName?(r=(0,P.default)(u)[0],u=u[r]):r=this.options.rootName,m=function(a){return function(t,w){var E,f,k,O,C,x;if((typeof w=="undefined"?"undefined":(0,g.default)(w))!=="object")a.options.cdata&&d(w)?t.raw(l(w)):t.txt(w);else if(Array.isArray(w))for(O in w){if(!n.call(w,O))continue;f=w[O];for(C in f)k=f[C],t=m(t.ele(C),k).up()}else for(C in w){if(!n.call(w,C))continue;if(f=w[C],C===o){if((typeof f=="undefined"?"undefined":(0,g.default)(f))==="object")for(E in f)x=f[E],t=t.att(E,x)}else if(C===h)a.options.cdata&&d(f)?t=t.raw(l(f)):t=t.txt(f);else if(Array.isArray(f))for(O in f){if(!n.call(f,O))continue;k=f[O],typeof k=="string"?a.options.cdata&&d(k)?t=t.ele(C).raw(l(k)).up():t=t.ele(C,k).up():t=m(t.ele(C),k).up()}else(typeof f=="undefined"?"undefined":(0,g.default)(f))==="object"?t=m(t.ele(C),f).up():typeof f=="string"&&a.options.cdata&&d(f)?t=t.ele(C).raw(l(f)).up():(f==null&&(f=""),t=t.ele(C,f.toString()).up())}return t}}(this),s=v.create(r,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),m(s,u).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(j,Y,D){"use strict";(function(){D.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` -`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/promise"),g=d(L),T=j("babel-runtime/core-js/object/get-own-property-names"),P=d(T),p=j("babel-runtime/core-js/object/keys"),v=d(p),_=j("babel-runtime/helpers/typeof"),b=d(_);function d(l){return l&&l.__esModule?l:{default:l}}(function(){"use strict";var l,n,c,u,o,h,m,s,r=function(E,f){return function(){return E.apply(f,arguments)}},a=function(E,f){for(var k in f)t.call(f,k)&&(E[k]=f[k]);function O(){this.constructor=E}return O.prototype=f.prototype,E.prototype=new O,E.__super__=f.prototype,E},t={}.hasOwnProperty;m=j("sax"),c=j("events"),l=j("./bom"),h=j("./processors"),s=j("timers").setImmediate,n=j("./defaults").defaults,u=function(E){return(typeof E=="undefined"?"undefined":(0,b.default)(E))==="object"&&E!=null&&(0,v.default)(E).length===0},o=function(E,f,k){var O,C,x;for(O=0,C=E.length;O0&&(I[x.options.childkey]=G),G=I;else if(K){K[x.options.childkey]=K[x.options.childkey]||[],H={};for(M in G){if(!t.call(G,M))continue;H[M]=G[M]}K[x.options.childkey].push(H),delete G["#name"],(0,v.default)(G).length===1&&k in G&&!x.EXPLICIT_CHARKEY&&(G=G[k])}}return C.length>0?x.assignOrPush(K,N,G):(x.options.explicitRoot&&(B=G,G={},G[N]=B),x.resultObject=G,x.saxParser.ended=!0,x.emit("end",x.resultObject))}}(this),O=function(x){return function(y){var S,M;if(M=C[C.length-1],M)return M[k]+=y,x.options.explicitChildren&&x.options.preserveChildrenOrder&&x.options.charsAsChildren&&(x.options.includeWhiteChars||y.replace(/\\n/g,"").trim()!=="")&&(M[x.options.childkey]=M[x.options.childkey]||[],S={"#name":"__text__"},S[k]=y,x.options.normalize&&(S[k]=S[k].replace(/\s{2,}/g," ").trim()),M[x.options.childkey].push(S)),M}}(this),this.saxParser.ontext=O,this.saxParser.oncdata=function(x){return function(y){var S;if(S=O(y),S)return S.cdata=!0}}(this)},E.prototype.parseString=function(f,k){var O;k!=null&&typeof k=="function"&&(this.on("end",function(C){return this.reset(),k(null,C)}),this.on("error",function(C){return this.reset(),k(C)}));try{return f=f.toString(),f.trim()===""?(this.emit("end",null),!0):(f=l.stripBOM(f),this.options.async?(this.remaining=f,s(this.processAsync),this.saxParser):this.saxParser.write(f).close())}catch(C){if(O=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw O}else return this.emit("error",O),this.saxParser.errThrown=!0}},E.prototype.parseStringPromise=function(f){return new g.default(function(k){return function(O,C){return k.parseString(f,function(x,y){return x?C(x):O(y)})}}(this))},E}(c),D.parseString=function(w,E,f){var k,O,C;return f!=null?(typeof f=="function"&&(k=f),(typeof E=="undefined"?"undefined":(0,b.default)(E))==="object"&&(O=E)):(typeof E=="function"&&(k=E),O={}),C=new D.Parser(O),C.parseString(w,k)},D.parseStringPromise=function(w,E){var f,k;return(typeof E=="undefined"?"undefined":(0,b.default)(E))==="object"&&(f=E),k=new D.Parser(f),k.parseStringPromise(w)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(j,Y,D){"use strict";(function(){"use strict";var L;L=new RegExp(/(?!xmlns)^.*:/),D.normalize=function(g){return g.toLowerCase()},D.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},D.stripPrefix=function(g){return g.replace(L,"")},D.parseNumbers=function(g){return isNaN(g)||(g=g%1===0?parseInt(g,10):parseFloat(g)),g},D.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],249:[function(j,Y,D){"use strict";(function(){"use strict";var L,g,T,P,p=function(b,d){for(var l in d)v.call(d,l)&&(b[l]=d[l]);function n(){this.constructor=b}return n.prototype=d.prototype,b.prototype=new n,b.__super__=d.prototype,b},v={}.hasOwnProperty;g=j("./defaults"),L=j("./builder"),T=j("./parser"),P=j("./processors"),D.defaults=g.defaults,D.processors=P,D.ValidationError=function(_){p(b,_);function b(d){this.message=d}return b}(Error),D.Builder=L.Builder,D.Parser=T.Parser,D.parseString=T.parseString,D.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(j,Y,D){"use strict";(function(){Y.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(j,Y,D){"use strict";(function(){Y.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/get-prototype-of"),g=_(L),T=j("babel-runtime/helpers/typeof"),P=_(T),p=j("babel-runtime/core-js/object/assign"),v=_(p);function _(b){return b&&b.__esModule?b:{default:b}}(function(){var b,d,l,n,c,u,o,h=[].slice,m={}.hasOwnProperty;b=function(){var r,a,t,w,E,f;if(f=arguments[0],E=2<=arguments.length?h.call(arguments,1):[],c(v.default))v.default.apply(null,arguments);else for(r=0,t=E.length;r":"attribute: {"+b+"}, parent: <"+this.parent.name+">"},_.prototype.isEqualNode=function(b){return b.namespaceURI!==this.namespaceURI||(b.prefix!==this.prefix||b.localName!==this.localName)?!1:!(b.value!==this.value)},_}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,_=function(l,n){for(var c in n)b.call(n,c)&&(l[c]=n[c]);function u(){this.constructor=l}return u.prototype=n.prototype,l.prototype=new u,l.__super__=n.prototype,l},b={}.hasOwnProperty;P=j("./NodeType"),v=j("./XMLCharacterData"),Y.exports=p=function(d){_(l,d);function l(n,c){if(l.__super__.constructor.call(this,n),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=P.CData,this.value=this.stringify.cdata(c)}return l.prototype.clone=function(){return(0,g.default)(this)},l.prototype.toString=function(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))},l}(v)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v=function(d,l){for(var n in l)_.call(l,n)&&(d[n]=l[n]);function c(){this.constructor=d}return c.prototype=l.prototype,d.prototype=new c,d.__super__=l.prototype,d},_={}.hasOwnProperty;p=j("./XMLNode"),Y.exports=P=function(b){v(d,b);function d(l){d.__super__.constructor.call(this,l),this.value=""}return Object.defineProperty(d.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(d.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.substringData=function(l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.appendData=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.insertData=function(l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.deleteData=function(l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.replaceData=function(l,n,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.isEqualNode=function(l){return d.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?!(l.data!==this.data):!1},d}(p)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,_=function(l,n){for(var c in n)b.call(n,c)&&(l[c]=n[c]);function u(){this.constructor=l}return u.prototype=n.prototype,l.prototype=new u,l.__super__=n.prototype,l},b={}.hasOwnProperty;P=j("./NodeType"),p=j("./XMLCharacterData"),Y.exports=v=function(d){_(l,d);function l(n,c){if(l.__super__.constructor.call(this,n),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=P.Comment,this.value=this.stringify.comment(c)}return l.prototype.clone=function(){return(0,g.default)(this)},l.prototype.toString=function(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))},l}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=p(L),T=j("babel-runtime/core-js/object/create"),P=p(T);function p(v){return v&&v.__esModule?v:{default:v}}(function(){var v,_,b;_=j("./XMLDOMErrorHandler"),b=j("./XMLDOMStringList"),Y.exports=v=function(){function d(){var l;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new _,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=l=(0,P.default)(this.defaultParams)}return Object.defineProperty(d.prototype,"parameterNames",{get:function(){return new b((0,g.default)(this.defaultParams))}}),d.prototype.getParameter=function(l){return this.params.hasOwnProperty(l)?this.params[l]:null},d.prototype.canSetParameter=function(l,n){return!0},d.prototype.setParameter=function(l,n){return n!=null?this.params[l]=n:delete this.params[l]},d}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(j,Y,D){"use strict";(function(){var L;Y.exports=L=function(){function g(){}return g.prototype.handleError=function(T){throw new Error(T)},g}()}).call(void 0)},{}],260:[function(j,Y,D){"use strict";(function(){var L;Y.exports=L=function(){function g(){}return g.prototype.hasFeature=function(T,P){return!0},g.prototype.createDocumentType=function(T,P,p){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(T,P,p){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(T,P){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(j,Y,D){"use strict";(function(){var L;Y.exports=L=function(){function g(T){this.arr=T||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(T){return this.arr[T]||null},g.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},g}()}).call(void 0)},{}],262:[function(j,Y,D){"use strict";(function(){var L,g,T,P=function(_,b){for(var d in b)p.call(b,d)&&(_[d]=b[d]);function l(){this.constructor=_}return l.prototype=b.prototype,_.prototype=new l,_.__super__=b.prototype,_},p={}.hasOwnProperty;T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(v){P(_,v);function _(b,d,l,n,c,u){if(_.__super__.constructor.call(this,b),d==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(d));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(d));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(d));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(d));if(u&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(d));this.elementName=this.stringify.name(d),this.type=L.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(n),u&&(this.defaultValue=this.stringify.dtdAttDefault(u)),this.defaultValueType=c}return _.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))},_}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(j,Y,D){"use strict";(function(){var L,g,T,P=function(_,b){for(var d in b)p.call(b,d)&&(_[d]=b[d]);function l(){this.constructor=_}return l.prototype=b.prototype,_.prototype=new l,_.__super__=b.prototype,_},p={}.hasOwnProperty;T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(v){P(_,v);function _(b,d,l){if(_.__super__.constructor.call(this,b),d==null)throw new Error("Missing DTD element name. "+this.debugInfo());l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.name(d),this.type=L.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return _.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))},_}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p=function(b,d){for(var l in d)v.call(d,l)&&(b[l]=d[l]);function n(){this.constructor=b}return n.prototype=d.prototype,b.prototype=new n,b.__super__=d.prototype,b},v={}.hasOwnProperty;P=j("./Utility").isObject,T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(_){p(b,_);function b(d,l,n,c){if(b.__super__.constructor.call(this,d),n==null)throw new Error("Missing DTD entity name. "+this.debugInfo(n));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(n));if(this.pe=!!l,this.name=this.stringify.name(n),this.type=L.EntityDeclaration,!P(c))this.value=this.stringify.dtdEntityValue(c),this.internal=!0;else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(n));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(n));if(this.internal=!1,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(n))}}return Object.defineProperty(b.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(b.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(b.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return null}}),b.prototype.toString=function(d){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(d))},b}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(j,Y,D){"use strict";(function(){var L,g,T,P=function(_,b){for(var d in b)p.call(b,d)&&(_[d]=b[d]);function l(){this.constructor=_}return l.prototype=b.prototype,_.prototype=new l,_.__super__=b.prototype,_},p={}.hasOwnProperty;T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(v){P(_,v);function _(b,d,l){if(_.__super__.constructor.call(this,b),d==null)throw new Error("Missing DTD notation name. "+this.debugInfo(d));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(d));this.name=this.stringify.name(d),this.type=L.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return Object.defineProperty(_.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(_.prototype,"systemId",{get:function(){return this.sysID}}),_.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))},_}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p=function(b,d){for(var l in d)v.call(d,l)&&(b[l]=d[l]);function n(){this.constructor=b}return n.prototype=d.prototype,b.prototype=new n,b.__super__=d.prototype,b},v={}.hasOwnProperty;P=j("./Utility").isObject,T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(_){p(b,_);function b(d,l,n,c){var u;b.__super__.constructor.call(this,d),P(l)&&(u=l,l=u.version,n=u.encoding,c=u.standalone),l||(l="1.0"),this.type=L.Declaration,this.version=this.stringify.xmlVersion(l),n!=null&&(this.encoding=this.stringify.xmlEncoding(n)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return b.prototype.toString=function(d){return this.options.writer.declaration(this,this.options.writer.filterOptions(d))},b}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p,v,_,b,d,l=function(u,o){for(var h in o)n.call(o,h)&&(u[h]=o[h]);function m(){this.constructor=u}return m.prototype=o.prototype,u.prototype=new m,u.__super__=o.prototype,u},n={}.hasOwnProperty;d=j("./Utility").isObject,b=j("./XMLNode"),L=j("./NodeType"),g=j("./XMLDTDAttList"),P=j("./XMLDTDEntity"),T=j("./XMLDTDElement"),p=j("./XMLDTDNotation"),_=j("./XMLNamedNodeMap"),Y.exports=v=function(c){l(u,c);function u(o,h,m){var s,r,a,t,w,E;if(u.__super__.constructor.call(this,o),this.type=L.DocType,o.children){for(t=o.children,r=0,a=t.length;r=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(x){var y,S,M,I;if(!x.isOpen){if(!this.root&&this.currentLevel===0&&x.type===L.Element&&(this.root=x),S="",x.type===L.Element){this.writerOptions.state=g.OpenTag,S=this.writer.indent(x,this.writerOptions,this.currentLevel)+"<"+x.name,I=x.attribs;for(M in I){if(!O.call(I,M))continue;y=I[M],S+=this.writer.attribute(y,this.writerOptions,this.currentLevel)}S+=(x.children?">":"/>")+this.writer.endline(x,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.OpenTag,S=this.writer.indent(x,this.writerOptions,this.currentLevel)+""),S+=this.writer.endline(x,this.writerOptions,this.currentLevel);return this.onData(S,this.currentLevel),x.isOpen=!0}},C.prototype.closeNode=function(x){var y;if(!x.isClosed)return y="",this.writerOptions.state=g.CloseTag,x.type===L.Element?y=this.writer.indent(x,this.writerOptions,this.currentLevel)+""+this.writer.endline(x,this.writerOptions,this.currentLevel):y=this.writer.indent(x,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(x,this.writerOptions,this.currentLevel),this.writerOptions.state=g.None,this.onData(y,this.currentLevel),x.isClosed=!0},C.prototype.onData=function(x,y){return this.documentStarted=!0,this.onDataCallback(x,y+1)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.debugInfo=function(x){return x==null?"":"node: <"+x+">"},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(x,y,S){return this.node(x,y,S)},C.prototype.txt=function(x){return this.text(x)},C.prototype.dat=function(x){return this.cdata(x)},C.prototype.com=function(x){return this.comment(x)},C.prototype.ins=function(x,y){return this.instruction(x,y)},C.prototype.dec=function(x,y,S){return this.declaration(x,y,S)},C.prototype.dtd=function(x,y,S){return this.doctype(x,y,S)},C.prototype.e=function(x,y,S){return this.element(x,y,S)},C.prototype.n=function(x,y,S){return this.node(x,y,S)},C.prototype.t=function(x){return this.text(x)},C.prototype.d=function(x){return this.cdata(x)},C.prototype.c=function(x){return this.comment(x)},C.prototype.r=function(x){return this.raw(x)},C.prototype.i=function(x,y){return this.instruction(x,y)},C.prototype.att=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(x,y){return this.entity(x,y)},C.prototype.pent=function(x,y){return this.pEntity(x,y)},C.prototype.not=function(x,y){return this.notation(x,y)},C}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,_=function(l,n){for(var c in n)b.call(n,c)&&(l[c]=n[c]);function u(){this.constructor=l}return u.prototype=n.prototype,l.prototype=new u,l.__super__=n.prototype,l},b={}.hasOwnProperty;v=j("./XMLNode"),P=j("./NodeType"),Y.exports=p=function(d){_(l,d);function l(n){l.__super__.constructor.call(this,n),this.type=P.Dummy}return l.prototype.clone=function(){return(0,g.default)(this)},l.prototype.toString=function(n){return""},l}(v)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,_,b,d,l,n,c,u=function(m,s){for(var r in s)o.call(s,r)&&(m[r]=s[r]);function a(){this.constructor=m}return a.prototype=s.prototype,m.prototype=new a,m.__super__=s.prototype,m},o={}.hasOwnProperty;c=j("./Utility"),n=c.isObject,l=c.isFunction,d=c.getValue,b=j("./XMLNode"),P=j("./NodeType"),p=j("./XMLAttribute"),_=j("./XMLNamedNodeMap"),Y.exports=v=function(h){u(m,h);function m(s,r,a){var t,w,E,f;if(m.__super__.constructor.call(this,s),r==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(r),this.type=P.Element,this.attribs={},this.schemaTypeInfo=null,a!=null&&this.attribute(a),s.type===P.Document&&(this.isRoot=!0,this.documentObject=s,s.rootObject=this,s.children)){for(f=s.children,w=0,E=f.length;w=t;r=0<=t?++a:--a)if(!this.attribs[r].isEqualNode(s.attribs[r]))return!1;return!0},m}(b)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P;Y.exports=P=function(){function p(v){this.nodes=v}return Object.defineProperty(p.prototype,"length",{get:function(){return(0,g.default)(this.nodes).length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.getNamedItem=function(v){return this.nodes[v]},p.prototype.setNamedItem=function(v){var _;return _=this.nodes[v.nodeName],this.nodes[v.nodeName]=v,_||null},p.prototype.removeNamedItem=function(v){var _;return _=this.nodes[v],delete this.nodes[v],_||null},p.prototype.item=function(v){return this.nodes[(0,g.default)(this.nodes)[v]]||null},p.prototype.getNamedItemNS=function(v,_){throw new Error("This DOM method is not implemented.")},p.prototype.setNamedItemNS=function(v){throw new Error("This DOM method is not implemented.")},p.prototype.removeNamedItemNS=function(v,_){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p,v,_,b,d,l,n,c,u,o,h,m,s,r,a,t={}.hasOwnProperty;a=j("./Utility"),r=a.isObject,s=a.isFunction,m=a.isEmpty,h=a.getValue,b=null,T=null,P=null,p=null,v=null,u=null,o=null,c=null,_=null,g=null,n=null,d=null,L=null,Y.exports=l=function(){function w(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,b||(b=j("./XMLElement"),T=j("./XMLCData"),P=j("./XMLComment"),p=j("./XMLDeclaration"),v=j("./XMLDocType"),u=j("./XMLRaw"),o=j("./XMLText"),c=j("./XMLProcessingInstruction"),_=j("./XMLDummy"),g=j("./NodeType"),n=j("./XMLNodeList"),d=j("./XMLNamedNodeMap"),L=j("./DocumentPosition"))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new n(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var f;return f=this.parent.children.indexOf(this),this.parent.children[f-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var f;return f=this.parent.children.indexOf(this),this.parent.children[f+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var f,k,O,C,x;if(this.nodeType===g.Element||this.nodeType===g.DocumentFragment){for(x="",C=this.children,k=0,O=C.length;k":((k=this.parent)!=null?k.name:void 0)?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},w.prototype.ele=function(E,f,k){return this.element(E,f,k)},w.prototype.nod=function(E,f,k){return this.node(E,f,k)},w.prototype.txt=function(E){return this.text(E)},w.prototype.dat=function(E){return this.cdata(E)},w.prototype.com=function(E){return this.comment(E)},w.prototype.ins=function(E,f){return this.instruction(E,f)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(E,f,k){return this.declaration(E,f,k)},w.prototype.e=function(E,f,k){return this.element(E,f,k)},w.prototype.n=function(E,f,k){return this.node(E,f,k)},w.prototype.t=function(E){return this.text(E)},w.prototype.d=function(E){return this.cdata(E)},w.prototype.c=function(E){return this.comment(E)},w.prototype.r=function(E){return this.raw(E)},w.prototype.i=function(E,f){return this.instruction(E,f)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(E){return this.importDocument(E)},w.prototype.replaceChild=function(E,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(E,f){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(E){var f,k;return f=this,f===E?0:this.document()!==E.document()?(k=L.Disconnected|L.ImplementationSpecific,Math.random()<.5?k|=L.Preceding:k|=L.Following,k):f.isAncestor(E)?L.Contains|L.Preceding:f.isDescendant(E)?L.Contains|L.Following:f.isPreceding(E)?L.Preceding:L.Following},w.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(E){var f,k,O;if(E.nodeType!==this.nodeType)return!1;if(E.children.length!==this.children.length)return!1;for(f=k=0,O=this.children.length-1;0<=O?k<=O:k>=O;f=0<=O?++k:--k)if(!this.children[f].isEqualNode(E.children[f]))return!1;return!0},w.prototype.getFeature=function(E,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(E,f,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},w.prototype.isDescendant=function(E){var f,k,O,C,x;for(x=this.children,O=0,C=x.length;Ok},w.prototype.treePosition=function(E){var f,k;return k=0,f=!1,this.foreachTreeNode(this.document(),function(O){if(k++,!f&&O===E)return f=!0}),f?k:-1},w.prototype.foreachTreeNode=function(E,f){var k,O,C,x,y;for(E||(E=this.document()),x=E.children,O=0,C=x.length;O0){for(this.stream.write(" ["),this.stream.write(this.endline(d,l,n)),l.state=g.InsideTag,h=d.children,u=0,o=h.length;u"),this.stream.write(this.endline(d,l,n)),l.state=g.None,this.closeNode(d,l,n)},b.prototype.element=function(d,l,n){var c,u,o,h,m,s,r,a,t,w;n||(n=0),this.openNode(d,l,n),l.state=g.OpenTag,this.stream.write(this.indent(d,l,n)+"<"+d.name),t=d.attribs;for(r in t){if(!v.call(t,r))continue;c=t[r],this.attribute(c,l,n)}if(o=d.children.length,h=o===0?null:d.children[0],o===0||d.children.every(function(E){return(E.type===L.Text||E.type===L.Raw)&&E.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=g.CloseTag,this.stream.write("")):(l.state=g.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(l.pretty&&o===1&&(h.type===L.Text||h.type===L.Raw)&&h.value!=null)this.stream.write(">"),l.state=g.InsideTag,l.suppressPrettyCount++,a=!0,this.writeChildNode(h,l,n+1),l.suppressPrettyCount--,a=!1,l.state=g.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(d,l,n)),l.state=g.InsideTag,w=d.children,m=0,s=w.length;m")}return this.stream.write(this.endline(d,l,n)),l.state=g.None,this.closeNode(d,l,n)},b.prototype.processingInstruction=function(d,l,n){return this.stream.write(b.__super__.processingInstruction.call(this,d,l,n))},b.prototype.raw=function(d,l,n){return this.stream.write(b.__super__.raw.call(this,d,l,n))},b.prototype.text=function(d,l,n){return this.stream.write(b.__super__.text.call(this,d,l,n))},b.prototype.dtdAttList=function(d,l,n){return this.stream.write(b.__super__.dtdAttList.call(this,d,l,n))},b.prototype.dtdElement=function(d,l,n){return this.stream.write(b.__super__.dtdElement.call(this,d,l,n))},b.prototype.dtdEntity=function(d,l,n){return this.stream.write(b.__super__.dtdEntity.call(this,d,l,n))},b.prototype.dtdNotation=function(d,l,n){return this.stream.write(b.__super__.dtdNotation.call(this,d,l,n))},b}(P)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(j,Y,D){"use strict";(function(){var L,g,T=function(v,_){for(var b in _)P.call(_,b)&&(v[b]=_[b]);function d(){this.constructor=v}return d.prototype=_.prototype,v.prototype=new d,v.__super__=_.prototype,v},P={}.hasOwnProperty;g=j("./XMLWriterBase"),Y.exports=L=function(p){T(v,p);function v(_){v.__super__.constructor.call(this,_)}return v.prototype.document=function(_,b){var d,l,n,c,u;for(b=this.filterOptions(b),c="",u=_.children,l=0,n=u.length;l","]]]]>"),this.assertLegalChar(p))},P.prototype.comment=function(p){if(this.options.noValidation)return p;if(p=""+p||"",p.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+p);return this.assertLegalChar(p)},P.prototype.raw=function(p){return this.options.noValidation?p:""+p||""},P.prototype.attValue=function(p){return this.options.noValidation?p:this.assertLegalChar(this.attEscape(p=""+p||""))},P.prototype.insTarget=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.insValue=function(p){if(this.options.noValidation)return p;if(p=""+p||"",p.match(/\?>/))throw new Error("Invalid processing instruction value: "+p);return this.assertLegalChar(p)},P.prototype.xmlVersion=function(p){if(this.options.noValidation)return p;if(p=""+p||"",!p.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+p);return p},P.prototype.xmlEncoding=function(p){if(this.options.noValidation)return p;if(p=""+p||"",!p.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+p);return this.assertLegalChar(p)},P.prototype.xmlStandalone=function(p){return this.options.noValidation?p:p?"yes":"no"},P.prototype.dtdPubID=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdSysID=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdElementValue=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdAttType=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdAttDefault=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdEntityValue=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdNData=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.convertAttKey="@",P.prototype.convertPIKey="?",P.prototype.convertTextKey="#text",P.prototype.convertCDataKey="#cdata",P.prototype.convertCommentKey="#comment",P.prototype.convertRawKey="#raw",P.prototype.assertLegalChar=function(p){var v,_;if(this.options.noValidation)return p;if(v="",this.options.version==="1.0"){if(v=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=p.match(v))throw new Error("Invalid character in string: "+p+" at index "+_.index)}else if(this.options.version==="1.1"&&(v=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=p.match(v)))throw new Error("Invalid character in string: "+p+" at index "+_.index);return p},P.prototype.assertLegalName=function(p){var v;if(this.options.noValidation)return p;if(this.assertLegalChar(p),v=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!p.match(v))throw new Error("Invalid character in name");return p},P.prototype.textEscape=function(p){var v;return this.options.noValidation?p:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(v,"&").replace(//g,">").replace(/\r/g," "))},P.prototype.attEscape=function(p){var v;return this.options.noValidation?p:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(v,"&").replace(/0)?new Array(f).join(w.indent):""},a.prototype.endline=function(t,w,E){return!w.pretty||w.suppressPrettyCount?"":w.newline},a.prototype.attribute=function(t,w,E){var f;return this.openAttribute(t,w,E),f=" "+t.name+'="'+t.value+'"',this.closeAttribute(t,w,E),f},a.prototype.cdata=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.comment=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.declaration=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+"",f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.docType=function(t,w,E){var f,k,O,C,x;if(E||(E=0),this.openNode(t,w,E),w.state=g.OpenTag,C=this.indent(t,w,E),C+="0){for(C+=" [",C+=this.endline(t,w,E),w.state=g.InsideTag,x=t.children,k=0,O=x.length;k",C+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),C},a.prototype.element=function(t,w,E){var f,k,O,C,x,y,S,M,I,N,G,H,B,K;E||(E=0),N=!1,G="",this.openNode(t,w,E),w.state=g.OpenTag,G+=this.indent(t,w,E)+"<"+t.name,H=t.attribs;for(I in H){if(!r.call(H,I))continue;f=H[I],G+=this.attribute(f,w,E)}if(O=t.children.length,C=O===0?null:t.children[0],O===0||t.children.every(function(U){return(U.type===L.Text||U.type===L.Raw)&&U.value===""}))w.allowEmpty?(G+=">",w.state=g.CloseTag,G+=""+this.endline(t,w,E)):(w.state=g.CloseTag,G+=w.spaceBeforeSlash+"/>"+this.endline(t,w,E));else if(w.pretty&&O===1&&(C.type===L.Text||C.type===L.Raw)&&C.value!=null)G+=">",w.state=g.InsideTag,w.suppressPrettyCount++,N=!0,G+=this.writeChildNode(C,w,E+1),w.suppressPrettyCount--,N=!1,w.state=g.CloseTag,G+=""+this.endline(t,w,E);else{if(w.dontPrettyTextNodes){for(B=t.children,x=0,S=B.length;x"+this.endline(t,w,E),w.state=g.InsideTag,K=t.children,y=0,M=K.length;y",N&&w.suppressPrettyCount--,G+=this.endline(t,w,E),w.state=g.None}return this.closeNode(t,w,E),G},a.prototype.writeChildNode=function(t,w,E){switch(t.type){case L.CData:return this.cdata(t,w,E);case L.Comment:return this.comment(t,w,E);case L.Element:return this.element(t,w,E);case L.Raw:return this.raw(t,w,E);case L.Text:return this.text(t,w,E);case L.ProcessingInstruction:return this.processingInstruction(t,w,E);case L.Dummy:return"";case L.Declaration:return this.declaration(t,w,E);case L.DocType:return this.docType(t,w,E);case L.AttributeDeclaration:return this.dtdAttList(t,w,E);case L.ElementDeclaration:return this.dtdElement(t,w,E);case L.EntityDeclaration:return this.dtdEntity(t,w,E);case L.NotationDeclaration:return this.dtdNotation(t,w,E);default:throw new Error("Unknown XML node type: "+t.constructor.name)}},a.prototype.processingInstruction=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+"",f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.raw=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E),w.state=g.InsideTag,f+=t.value,w.state=g.CloseTag,f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.text=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E),w.state=g.InsideTag,f+=t.value,w.state=g.CloseTag,f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdAttList=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdElement=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdEntity=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdNotation=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.openNode=function(t,w,E){},a.prototype.closeNode=function(t,w,E){},a.prototype.openAttribute=function(t,w,E){},a.prototype.closeAttribute=function(t,w,E){},a}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p,v,_,b,d,l;l=j("./Utility"),b=l.assign,d=l.isFunction,T=j("./XMLDOMImplementation"),P=j("./XMLDocument"),p=j("./XMLDocumentCB"),_=j("./XMLStringWriter"),v=j("./XMLStreamWriter"),L=j("./NodeType"),g=j("./WriterState"),Y.exports.create=function(n,c,u,o){var h,m;if(n==null)throw new Error("Root element needs a name.");return o=b({},c,u,o),h=new P(o),m=h.element(n),o.headless||(h.declaration(o),(o.pubID!=null||o.sysID!=null)&&h.dtd(o)),m},Y.exports.begin=function(n,c,u){var o;return d(n)&&(o=[n,c],c=o[0],u=o[1],n={}),c?new p(n,c,u):new P(n)},Y.exports.stringWriter=function(n){return new _(n)},Y.exports.streamWriter=function(n,c){return new v(n,c)},Y.exports.implementation=new T,Y.exports.nodeType=L,Y.exports.writerState=g}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(j,Y,D){Y.exports=g;var L=Object.prototype.hasOwnProperty;function g(){for(var T={},P=0;Pp?n=l(n):n.length>5]|=128<>>9<<4)+14]=c;for(var u=1732584193,o=-271733879,h=-1732584194,m=271733878,s=0;s>16)+(c>>16)+(u>>16);return o<<16|u&65535}function l(n,c){return n<>>32-c}Y.exports=function(c){return L.hash(c,T,16)}},{"./helpers":285}],287:[function(j,Y,D){"use strict";var L=j("./helpers");function g(_,b){_[b>>5]|=128<<24-b%32,_[(b+64>>9<<4)+15]=b;for(var d=Array(80),l=1732584193,n=-271733879,c=-1732584194,u=271733878,o=-1009589776,h=0;h<_.length;h+=16){for(var m=l,s=n,r=c,a=u,t=o,w=0;w<80;w++){w<16?d[w]=_[h+w]:d[w]=v(d[w-3]^d[w-8]^d[w-14]^d[w-16],1);var E=p(p(v(l,5),T(w,n,c,u)),p(p(o,d[w]),P(w)));o=u,u=c,c=v(n,30),n=l,l=E}l=p(l,m),n=p(n,s),c=p(c,r),u=p(u,a),o=p(o,t)}return Array(l,n,c,u,o)}function T(_,b,d,l){return _<20?b&d|~b&l:_<40?b^d^l:_<60?b&d|b&l|d&l:b^d^l}function P(_){return _<20?1518500249:_<40?1859775393:_<60?-1894007588:-899497514}function p(_,b){var d=(_&65535)+(b&65535),l=(_>>16)+(b>>16)+(d>>16);return l<<16|d&65535}function v(_,b){return _<>>32-b}Y.exports=function(b){return L.hash(b,g,20,!0)}},{"./helpers":285}],288:[function(j,Y,D){"use strict";Y.exports=function(){return function(){}}},{}],289:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/helpers/typeof"),T=P(g);function P(l){return l&&l.__esModule?l:{default:l}}var p=j("stream"),v=p.Stream,_=j("../lib/common/utils/isArray"),b=_.isArray;Y.exports.string=function(n){return typeof n=="string"},Y.exports.array=b,Y.exports.buffer=L.isBuffer;function d(l){return l instanceof v}Y.exports.writableStream=function(n){return d(n)&&typeof n._write=="function"&&(0,T.default)(n._writableState)==="object"}}).call(this,{isBuffer:j("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(j,Y,D){"use strict";D.encodeURIComponent=function(L){try{return encodeURIComponent(L)}catch(g){return L}},D.escape=j("escape-html"),D.timestamp=function(g){if(g){var T=g;return typeof T=="string"&&(T=Number(T)),String(g).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(j,Y,D){(function(L,g){"use strict";var T=j("babel-runtime/core-js/json/stringify"),P=_(T),p=j("babel-runtime/helpers/typeof"),v=_(p);function _(w){return w&&w.__esModule?w:{default:w}}var b=j("util"),d=j("url"),l=j("http"),n=j("https"),c=j("debug")("urllib"),u=j("humanize-ms"),o,h=0,m=Math.pow(2,31)-10,s=/^https?:\/\//i;function r(w,E){return w===void 0?E:w}function a(w,E){return function(f,k,O){if(f)return E(f);w({data:k,status:O.statusCode,headers:O.headers,res:O})}}D.TIMEOUTS=[u("300s"),u("300s")];var t=["json","text"];D.request=function(E,f,k){return arguments.length===2&&typeof f=="function"&&(k=f,f=null),typeof k=="function"?D.requestWithCallback(E,f,k):(o||(o=j("any-promise")),new o(function(O,C){D.requestWithCallback(E,f,a(O,C))}))},D.requestWithCallback=function(E,f,k){if(!E||typeof E!="string"&&(typeof E=="undefined"?"undefined":(0,v.default)(E))!=="object"){var O=b.format("expect request url to be a string or a http request options, but got %j",E);throw new Error(O)}arguments.length===2&&typeof f=="function"&&(k=f,f=null),f=f||{},h>=m&&(h=0);var C=++h;f.requestUrls=f.requestUrls||[];var x={requestId:C,url:E,args:f,ctx:f.ctx};f.emitter&&f.emitter.emit("request",x),f.timeout=f.timeout||D.TIMEOUTS,f.maxRedirects=f.maxRedirects||10,f.streaming=f.streaming||f.customResponse;var y=Date.now(),S;typeof E=="string"?(s.test(E)||(E="http://"+E),S=d.parse(E)):S=E;var M=(f.type||f.method||S.method||"GET").toUpperCase(),I=S.port||80,N=l,G=r(f.agent,D.agent),H=f.fixJSONCtlChars;S.protocol==="https:"&&(N=n,G=r(f.httpsAgent,D.httpsAgent),S.port||(I=443));var B={host:S.hostname||S.host||"localhost",path:S.path||"/",method:M,port:I,agent:G,headers:f.headers||{},lookup:f.lookup};Array.isArray(f.timeout)?B.requestTimeout=f.timeout[f.timeout.length-1]:typeof f.timeout!="undefined"&&(B.requestTimeout=f.timeout);for(var K=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],U=0;U=0||u.indexOf(">")>=0||u.indexOf("<")>=0)},l=function(u){return""},b=function(u){return u.replace("]]>","]]]]>")},D.Builder=function(){function c(u){var o,h,m;this.options={},h=S["0.2"];for(o in h){if(!n.call(h,o))continue;m=h[o],this.options[o]=m}for(o in u){if(!n.call(u,o))continue;m=u[o],this.options[o]=m}}return c.prototype.buildObject=function(u){var o,h,m,s,r;return o=this.options.attrkey,h=this.options.charkey,(0,P.default)(u).length===1&&this.options.rootName===S["0.2"].rootName?(r=(0,P.default)(u)[0],u=u[r]):r=this.options.rootName,m=function(a){return function(t,w){var E,f,k,O,C,x;if((typeof w=="undefined"?"undefined":(0,g.default)(w))!=="object")a.options.cdata&&d(w)?t.raw(l(w)):t.txt(w);else if(Array.isArray(w))for(O in w){if(!n.call(w,O))continue;f=w[O];for(C in f)k=f[C],t=m(t.ele(C),k).up()}else for(C in w){if(!n.call(w,C))continue;if(f=w[C],C===o){if((typeof f=="undefined"?"undefined":(0,g.default)(f))==="object")for(E in f)x=f[E],t=t.att(E,x)}else if(C===h)a.options.cdata&&d(f)?t=t.raw(l(f)):t=t.txt(f);else if(Array.isArray(f))for(O in f){if(!n.call(f,O))continue;k=f[O],typeof k=="string"?a.options.cdata&&d(k)?t=t.ele(C).raw(l(k)).up():t=t.ele(C,k).up():t=m(t.ele(C),k).up()}else(typeof f=="undefined"?"undefined":(0,g.default)(f))==="object"?t=m(t.ele(C),f).up():typeof f=="string"&&a.options.cdata&&d(f)?t=t.ele(C).raw(l(f)).up():(f==null&&(f=""),t=t.ele(C,f.toString()).up())}return t}}(this),s=v.create(r,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),m(s,u).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(j,Y,D){"use strict";(function(){D.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` +`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/promise"),g=d(L),T=j("babel-runtime/core-js/object/get-own-property-names"),P=d(T),p=j("babel-runtime/core-js/object/keys"),v=d(p),S=j("babel-runtime/helpers/typeof"),b=d(S);function d(l){return l&&l.__esModule?l:{default:l}}(function(){"use strict";var l,n,c,u,o,h,m,s,r=function(E,f){return function(){return E.apply(f,arguments)}},a=function(E,f){for(var k in f)t.call(f,k)&&(E[k]=f[k]);function O(){this.constructor=E}return O.prototype=f.prototype,E.prototype=new O,E.__super__=f.prototype,E},t={}.hasOwnProperty;m=j("sax"),c=j("events"),l=j("./bom"),h=j("./processors"),s=j("timers").setImmediate,n=j("./defaults").defaults,u=function(E){return(typeof E=="undefined"?"undefined":(0,b.default)(E))==="object"&&E!=null&&(0,v.default)(E).length===0},o=function(E,f,k){var O,C,x;for(O=0,C=E.length;O0&&(I[x.options.childkey]=G),G=I;else if(K){K[x.options.childkey]=K[x.options.childkey]||[],H={};for(M in G){if(!t.call(G,M))continue;H[M]=G[M]}K[x.options.childkey].push(H),delete G["#name"],(0,v.default)(G).length===1&&k in G&&!x.EXPLICIT_CHARKEY&&(G=G[k])}}return C.length>0?x.assignOrPush(K,N,G):(x.options.explicitRoot&&(B=G,G={},G[N]=B),x.resultObject=G,x.saxParser.ended=!0,x.emit("end",x.resultObject))}}(this),O=function(x){return function(y){var _,M;if(M=C[C.length-1],M)return M[k]+=y,x.options.explicitChildren&&x.options.preserveChildrenOrder&&x.options.charsAsChildren&&(x.options.includeWhiteChars||y.replace(/\\n/g,"").trim()!=="")&&(M[x.options.childkey]=M[x.options.childkey]||[],_={"#name":"__text__"},_[k]=y,x.options.normalize&&(_[k]=_[k].replace(/\s{2,}/g," ").trim()),M[x.options.childkey].push(_)),M}}(this),this.saxParser.ontext=O,this.saxParser.oncdata=function(x){return function(y){var _;if(_=O(y),_)return _.cdata=!0}}(this)},E.prototype.parseString=function(f,k){var O;k!=null&&typeof k=="function"&&(this.on("end",function(C){return this.reset(),k(null,C)}),this.on("error",function(C){return this.reset(),k(C)}));try{return f=f.toString(),f.trim()===""?(this.emit("end",null),!0):(f=l.stripBOM(f),this.options.async?(this.remaining=f,s(this.processAsync),this.saxParser):this.saxParser.write(f).close())}catch(C){if(O=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw O}else return this.emit("error",O),this.saxParser.errThrown=!0}},E.prototype.parseStringPromise=function(f){return new g.default(function(k){return function(O,C){return k.parseString(f,function(x,y){return x?C(x):O(y)})}}(this))},E}(c),D.parseString=function(w,E,f){var k,O,C;return f!=null?(typeof f=="function"&&(k=f),(typeof E=="undefined"?"undefined":(0,b.default)(E))==="object"&&(O=E)):(typeof E=="function"&&(k=E),O={}),C=new D.Parser(O),C.parseString(w,k)},D.parseStringPromise=function(w,E){var f,k;return(typeof E=="undefined"?"undefined":(0,b.default)(E))==="object"&&(f=E),k=new D.Parser(f),k.parseStringPromise(w)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(j,Y,D){"use strict";(function(){"use strict";var L;L=new RegExp(/(?!xmlns)^.*:/),D.normalize=function(g){return g.toLowerCase()},D.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},D.stripPrefix=function(g){return g.replace(L,"")},D.parseNumbers=function(g){return isNaN(g)||(g=g%1===0?parseInt(g,10):parseFloat(g)),g},D.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],249:[function(j,Y,D){"use strict";(function(){"use strict";var L,g,T,P,p=function(b,d){for(var l in d)v.call(d,l)&&(b[l]=d[l]);function n(){this.constructor=b}return n.prototype=d.prototype,b.prototype=new n,b.__super__=d.prototype,b},v={}.hasOwnProperty;g=j("./defaults"),L=j("./builder"),T=j("./parser"),P=j("./processors"),D.defaults=g.defaults,D.processors=P,D.ValidationError=function(S){p(b,S);function b(d){this.message=d}return b}(Error),D.Builder=L.Builder,D.Parser=T.Parser,D.parseString=T.parseString,D.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(j,Y,D){"use strict";(function(){Y.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(j,Y,D){"use strict";(function(){Y.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/get-prototype-of"),g=S(L),T=j("babel-runtime/helpers/typeof"),P=S(T),p=j("babel-runtime/core-js/object/assign"),v=S(p);function S(b){return b&&b.__esModule?b:{default:b}}(function(){var b,d,l,n,c,u,o,h=[].slice,m={}.hasOwnProperty;b=function(){var r,a,t,w,E,f;if(f=arguments[0],E=2<=arguments.length?h.call(arguments,1):[],c(v.default))v.default.apply(null,arguments);else for(r=0,t=E.length;r":"attribute: {"+b+"}, parent: <"+this.parent.name+">"},S.prototype.isEqualNode=function(b){return b.namespaceURI!==this.namespaceURI||(b.prefix!==this.prefix||b.localName!==this.localName)?!1:!(b.value!==this.value)},S}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,S=function(l,n){for(var c in n)b.call(n,c)&&(l[c]=n[c]);function u(){this.constructor=l}return u.prototype=n.prototype,l.prototype=new u,l.__super__=n.prototype,l},b={}.hasOwnProperty;P=j("./NodeType"),v=j("./XMLCharacterData"),Y.exports=p=function(d){S(l,d);function l(n,c){if(l.__super__.constructor.call(this,n),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=P.CData,this.value=this.stringify.cdata(c)}return l.prototype.clone=function(){return(0,g.default)(this)},l.prototype.toString=function(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))},l}(v)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v=function(d,l){for(var n in l)S.call(l,n)&&(d[n]=l[n]);function c(){this.constructor=d}return c.prototype=l.prototype,d.prototype=new c,d.__super__=l.prototype,d},S={}.hasOwnProperty;p=j("./XMLNode"),Y.exports=P=function(b){v(d,b);function d(l){d.__super__.constructor.call(this,l),this.value=""}return Object.defineProperty(d.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(d.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),d.prototype.clone=function(){return(0,g.default)(this)},d.prototype.substringData=function(l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.appendData=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.insertData=function(l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.deleteData=function(l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.replaceData=function(l,n,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.isEqualNode=function(l){return d.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?!(l.data!==this.data):!1},d}(p)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,S=function(l,n){for(var c in n)b.call(n,c)&&(l[c]=n[c]);function u(){this.constructor=l}return u.prototype=n.prototype,l.prototype=new u,l.__super__=n.prototype,l},b={}.hasOwnProperty;P=j("./NodeType"),p=j("./XMLCharacterData"),Y.exports=v=function(d){S(l,d);function l(n,c){if(l.__super__.constructor.call(this,n),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=P.Comment,this.value=this.stringify.comment(c)}return l.prototype.clone=function(){return(0,g.default)(this)},l.prototype.toString=function(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))},l}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=p(L),T=j("babel-runtime/core-js/object/create"),P=p(T);function p(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,b;S=j("./XMLDOMErrorHandler"),b=j("./XMLDOMStringList"),Y.exports=v=function(){function d(){var l;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new S,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=l=(0,P.default)(this.defaultParams)}return Object.defineProperty(d.prototype,"parameterNames",{get:function(){return new b((0,g.default)(this.defaultParams))}}),d.prototype.getParameter=function(l){return this.params.hasOwnProperty(l)?this.params[l]:null},d.prototype.canSetParameter=function(l,n){return!0},d.prototype.setParameter=function(l,n){return n!=null?this.params[l]=n:delete this.params[l]},d}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(j,Y,D){"use strict";(function(){var L;Y.exports=L=function(){function g(){}return g.prototype.handleError=function(T){throw new Error(T)},g}()}).call(void 0)},{}],260:[function(j,Y,D){"use strict";(function(){var L;Y.exports=L=function(){function g(){}return g.prototype.hasFeature=function(T,P){return!0},g.prototype.createDocumentType=function(T,P,p){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(T,P,p){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(T,P){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(j,Y,D){"use strict";(function(){var L;Y.exports=L=function(){function g(T){this.arr=T||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(T){return this.arr[T]||null},g.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},g}()}).call(void 0)},{}],262:[function(j,Y,D){"use strict";(function(){var L,g,T,P=function(S,b){for(var d in b)p.call(b,d)&&(S[d]=b[d]);function l(){this.constructor=S}return l.prototype=b.prototype,S.prototype=new l,S.__super__=b.prototype,S},p={}.hasOwnProperty;T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(v){P(S,v);function S(b,d,l,n,c,u){if(S.__super__.constructor.call(this,b),d==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(d));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(d));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(d));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(d));if(u&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(d));this.elementName=this.stringify.name(d),this.type=L.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(n),u&&(this.defaultValue=this.stringify.dtdAttDefault(u)),this.defaultValueType=c}return S.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))},S}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(j,Y,D){"use strict";(function(){var L,g,T,P=function(S,b){for(var d in b)p.call(b,d)&&(S[d]=b[d]);function l(){this.constructor=S}return l.prototype=b.prototype,S.prototype=new l,S.__super__=b.prototype,S},p={}.hasOwnProperty;T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(v){P(S,v);function S(b,d,l){if(S.__super__.constructor.call(this,b),d==null)throw new Error("Missing DTD element name. "+this.debugInfo());l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.name(d),this.type=L.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return S.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))},S}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p=function(b,d){for(var l in d)v.call(d,l)&&(b[l]=d[l]);function n(){this.constructor=b}return n.prototype=d.prototype,b.prototype=new n,b.__super__=d.prototype,b},v={}.hasOwnProperty;P=j("./Utility").isObject,T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(S){p(b,S);function b(d,l,n,c){if(b.__super__.constructor.call(this,d),n==null)throw new Error("Missing DTD entity name. "+this.debugInfo(n));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(n));if(this.pe=!!l,this.name=this.stringify.name(n),this.type=L.EntityDeclaration,!P(c))this.value=this.stringify.dtdEntityValue(c),this.internal=!0;else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(n));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(n));if(this.internal=!1,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(n))}}return Object.defineProperty(b.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(b.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(b.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return null}}),b.prototype.toString=function(d){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(d))},b}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(j,Y,D){"use strict";(function(){var L,g,T,P=function(S,b){for(var d in b)p.call(b,d)&&(S[d]=b[d]);function l(){this.constructor=S}return l.prototype=b.prototype,S.prototype=new l,S.__super__=b.prototype,S},p={}.hasOwnProperty;T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(v){P(S,v);function S(b,d,l){if(S.__super__.constructor.call(this,b),d==null)throw new Error("Missing DTD notation name. "+this.debugInfo(d));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(d));this.name=this.stringify.name(d),this.type=L.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return Object.defineProperty(S.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(S.prototype,"systemId",{get:function(){return this.sysID}}),S.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))},S}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p=function(b,d){for(var l in d)v.call(d,l)&&(b[l]=d[l]);function n(){this.constructor=b}return n.prototype=d.prototype,b.prototype=new n,b.__super__=d.prototype,b},v={}.hasOwnProperty;P=j("./Utility").isObject,T=j("./XMLNode"),L=j("./NodeType"),Y.exports=g=function(S){p(b,S);function b(d,l,n,c){var u;b.__super__.constructor.call(this,d),P(l)&&(u=l,l=u.version,n=u.encoding,c=u.standalone),l||(l="1.0"),this.type=L.Declaration,this.version=this.stringify.xmlVersion(l),n!=null&&(this.encoding=this.stringify.xmlEncoding(n)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return b.prototype.toString=function(d){return this.options.writer.declaration(this,this.options.writer.filterOptions(d))},b}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p,v,S,b,d,l=function(u,o){for(var h in o)n.call(o,h)&&(u[h]=o[h]);function m(){this.constructor=u}return m.prototype=o.prototype,u.prototype=new m,u.__super__=o.prototype,u},n={}.hasOwnProperty;d=j("./Utility").isObject,b=j("./XMLNode"),L=j("./NodeType"),g=j("./XMLDTDAttList"),P=j("./XMLDTDEntity"),T=j("./XMLDTDElement"),p=j("./XMLDTDNotation"),S=j("./XMLNamedNodeMap"),Y.exports=v=function(c){l(u,c);function u(o,h,m){var s,r,a,t,w,E;if(u.__super__.constructor.call(this,o),this.type=L.DocType,o.children){for(t=o.children,r=0,a=t.length;r=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(x){var y,_,M,I;if(!x.isOpen){if(!this.root&&this.currentLevel===0&&x.type===L.Element&&(this.root=x),_="",x.type===L.Element){this.writerOptions.state=g.OpenTag,_=this.writer.indent(x,this.writerOptions,this.currentLevel)+"<"+x.name,I=x.attribs;for(M in I){if(!O.call(I,M))continue;y=I[M],_+=this.writer.attribute(y,this.writerOptions,this.currentLevel)}_+=(x.children?">":"/>")+this.writer.endline(x,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.OpenTag,_=this.writer.indent(x,this.writerOptions,this.currentLevel)+""),_+=this.writer.endline(x,this.writerOptions,this.currentLevel);return this.onData(_,this.currentLevel),x.isOpen=!0}},C.prototype.closeNode=function(x){var y;if(!x.isClosed)return y="",this.writerOptions.state=g.CloseTag,x.type===L.Element?y=this.writer.indent(x,this.writerOptions,this.currentLevel)+""+this.writer.endline(x,this.writerOptions,this.currentLevel):y=this.writer.indent(x,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(x,this.writerOptions,this.currentLevel),this.writerOptions.state=g.None,this.onData(y,this.currentLevel),x.isClosed=!0},C.prototype.onData=function(x,y){return this.documentStarted=!0,this.onDataCallback(x,y+1)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.debugInfo=function(x){return x==null?"":"node: <"+x+">"},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(x,y,_){return this.node(x,y,_)},C.prototype.txt=function(x){return this.text(x)},C.prototype.dat=function(x){return this.cdata(x)},C.prototype.com=function(x){return this.comment(x)},C.prototype.ins=function(x,y){return this.instruction(x,y)},C.prototype.dec=function(x,y,_){return this.declaration(x,y,_)},C.prototype.dtd=function(x,y,_){return this.doctype(x,y,_)},C.prototype.e=function(x,y,_){return this.element(x,y,_)},C.prototype.n=function(x,y,_){return this.node(x,y,_)},C.prototype.t=function(x){return this.text(x)},C.prototype.d=function(x){return this.cdata(x)},C.prototype.c=function(x){return this.comment(x)},C.prototype.r=function(x){return this.raw(x)},C.prototype.i=function(x,y){return this.instruction(x,y)},C.prototype.att=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode.type===L.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(x,y){return this.entity(x,y)},C.prototype.pent=function(x,y){return this.pEntity(x,y)},C.prototype.not=function(x,y){return this.notation(x,y)},C}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,S=function(l,n){for(var c in n)b.call(n,c)&&(l[c]=n[c]);function u(){this.constructor=l}return u.prototype=n.prototype,l.prototype=new u,l.__super__=n.prototype,l},b={}.hasOwnProperty;v=j("./XMLNode"),P=j("./NodeType"),Y.exports=p=function(d){S(l,d);function l(n){l.__super__.constructor.call(this,n),this.type=P.Dummy}return l.prototype.clone=function(){return(0,g.default)(this)},l.prototype.toString=function(n){return""},l}(v)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/create"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P,p,v,S,b,d,l,n,c,u=function(m,s){for(var r in s)o.call(s,r)&&(m[r]=s[r]);function a(){this.constructor=m}return a.prototype=s.prototype,m.prototype=new a,m.__super__=s.prototype,m},o={}.hasOwnProperty;c=j("./Utility"),n=c.isObject,l=c.isFunction,d=c.getValue,b=j("./XMLNode"),P=j("./NodeType"),p=j("./XMLAttribute"),S=j("./XMLNamedNodeMap"),Y.exports=v=function(h){u(m,h);function m(s,r,a){var t,w,E,f;if(m.__super__.constructor.call(this,s),r==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(r),this.type=P.Element,this.attribs={},this.schemaTypeInfo=null,a!=null&&this.attribute(a),s.type===P.Document&&(this.isRoot=!0,this.documentObject=s,s.rootObject=this,s.children)){for(f=s.children,w=0,E=f.length;w=t;r=0<=t?++a:--a)if(!this.attribs[r].isEqualNode(s.attribs[r]))return!1;return!0},m}(b)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(j,Y,D){"use strict";var L=j("babel-runtime/core-js/object/keys"),g=T(L);function T(P){return P&&P.__esModule?P:{default:P}}(function(){var P;Y.exports=P=function(){function p(v){this.nodes=v}return Object.defineProperty(p.prototype,"length",{get:function(){return(0,g.default)(this.nodes).length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.getNamedItem=function(v){return this.nodes[v]},p.prototype.setNamedItem=function(v){var S;return S=this.nodes[v.nodeName],this.nodes[v.nodeName]=v,S||null},p.prototype.removeNamedItem=function(v){var S;return S=this.nodes[v],delete this.nodes[v],S||null},p.prototype.item=function(v){return this.nodes[(0,g.default)(this.nodes)[v]]||null},p.prototype.getNamedItemNS=function(v,S){throw new Error("This DOM method is not implemented.")},p.prototype.setNamedItemNS=function(v){throw new Error("This DOM method is not implemented.")},p.prototype.removeNamedItemNS=function(v,S){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p,v,S,b,d,l,n,c,u,o,h,m,s,r,a,t={}.hasOwnProperty;a=j("./Utility"),r=a.isObject,s=a.isFunction,m=a.isEmpty,h=a.getValue,b=null,T=null,P=null,p=null,v=null,u=null,o=null,c=null,S=null,g=null,n=null,d=null,L=null,Y.exports=l=function(){function w(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,b||(b=j("./XMLElement"),T=j("./XMLCData"),P=j("./XMLComment"),p=j("./XMLDeclaration"),v=j("./XMLDocType"),u=j("./XMLRaw"),o=j("./XMLText"),c=j("./XMLProcessingInstruction"),S=j("./XMLDummy"),g=j("./NodeType"),n=j("./XMLNodeList"),d=j("./XMLNamedNodeMap"),L=j("./DocumentPosition"))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new n(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var f;return f=this.parent.children.indexOf(this),this.parent.children[f-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var f;return f=this.parent.children.indexOf(this),this.parent.children[f+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var f,k,O,C,x;if(this.nodeType===g.Element||this.nodeType===g.DocumentFragment){for(x="",C=this.children,k=0,O=C.length;k":((k=this.parent)!=null?k.name:void 0)?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},w.prototype.ele=function(E,f,k){return this.element(E,f,k)},w.prototype.nod=function(E,f,k){return this.node(E,f,k)},w.prototype.txt=function(E){return this.text(E)},w.prototype.dat=function(E){return this.cdata(E)},w.prototype.com=function(E){return this.comment(E)},w.prototype.ins=function(E,f){return this.instruction(E,f)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(E,f,k){return this.declaration(E,f,k)},w.prototype.e=function(E,f,k){return this.element(E,f,k)},w.prototype.n=function(E,f,k){return this.node(E,f,k)},w.prototype.t=function(E){return this.text(E)},w.prototype.d=function(E){return this.cdata(E)},w.prototype.c=function(E){return this.comment(E)},w.prototype.r=function(E){return this.raw(E)},w.prototype.i=function(E,f){return this.instruction(E,f)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(E){return this.importDocument(E)},w.prototype.replaceChild=function(E,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(E,f){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(E){var f,k;return f=this,f===E?0:this.document()!==E.document()?(k=L.Disconnected|L.ImplementationSpecific,Math.random()<.5?k|=L.Preceding:k|=L.Following,k):f.isAncestor(E)?L.Contains|L.Preceding:f.isDescendant(E)?L.Contains|L.Following:f.isPreceding(E)?L.Preceding:L.Following},w.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(E){var f,k,O;if(E.nodeType!==this.nodeType)return!1;if(E.children.length!==this.children.length)return!1;for(f=k=0,O=this.children.length-1;0<=O?k<=O:k>=O;f=0<=O?++k:--k)if(!this.children[f].isEqualNode(E.children[f]))return!1;return!0},w.prototype.getFeature=function(E,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(E,f,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},w.prototype.isDescendant=function(E){var f,k,O,C,x;for(x=this.children,O=0,C=x.length;Ok},w.prototype.treePosition=function(E){var f,k;return k=0,f=!1,this.foreachTreeNode(this.document(),function(O){if(k++,!f&&O===E)return f=!0}),f?k:-1},w.prototype.foreachTreeNode=function(E,f){var k,O,C,x,y;for(E||(E=this.document()),x=E.children,O=0,C=x.length;O0){for(this.stream.write(" ["),this.stream.write(this.endline(d,l,n)),l.state=g.InsideTag,h=d.children,u=0,o=h.length;u"),this.stream.write(this.endline(d,l,n)),l.state=g.None,this.closeNode(d,l,n)},b.prototype.element=function(d,l,n){var c,u,o,h,m,s,r,a,t,w;n||(n=0),this.openNode(d,l,n),l.state=g.OpenTag,this.stream.write(this.indent(d,l,n)+"<"+d.name),t=d.attribs;for(r in t){if(!v.call(t,r))continue;c=t[r],this.attribute(c,l,n)}if(o=d.children.length,h=o===0?null:d.children[0],o===0||d.children.every(function(E){return(E.type===L.Text||E.type===L.Raw)&&E.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=g.CloseTag,this.stream.write("")):(l.state=g.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(l.pretty&&o===1&&(h.type===L.Text||h.type===L.Raw)&&h.value!=null)this.stream.write(">"),l.state=g.InsideTag,l.suppressPrettyCount++,a=!0,this.writeChildNode(h,l,n+1),l.suppressPrettyCount--,a=!1,l.state=g.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(d,l,n)),l.state=g.InsideTag,w=d.children,m=0,s=w.length;m")}return this.stream.write(this.endline(d,l,n)),l.state=g.None,this.closeNode(d,l,n)},b.prototype.processingInstruction=function(d,l,n){return this.stream.write(b.__super__.processingInstruction.call(this,d,l,n))},b.prototype.raw=function(d,l,n){return this.stream.write(b.__super__.raw.call(this,d,l,n))},b.prototype.text=function(d,l,n){return this.stream.write(b.__super__.text.call(this,d,l,n))},b.prototype.dtdAttList=function(d,l,n){return this.stream.write(b.__super__.dtdAttList.call(this,d,l,n))},b.prototype.dtdElement=function(d,l,n){return this.stream.write(b.__super__.dtdElement.call(this,d,l,n))},b.prototype.dtdEntity=function(d,l,n){return this.stream.write(b.__super__.dtdEntity.call(this,d,l,n))},b.prototype.dtdNotation=function(d,l,n){return this.stream.write(b.__super__.dtdNotation.call(this,d,l,n))},b}(P)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(j,Y,D){"use strict";(function(){var L,g,T=function(v,S){for(var b in S)P.call(S,b)&&(v[b]=S[b]);function d(){this.constructor=v}return d.prototype=S.prototype,v.prototype=new d,v.__super__=S.prototype,v},P={}.hasOwnProperty;g=j("./XMLWriterBase"),Y.exports=L=function(p){T(v,p);function v(S){v.__super__.constructor.call(this,S)}return v.prototype.document=function(S,b){var d,l,n,c,u;for(b=this.filterOptions(b),c="",u=S.children,l=0,n=u.length;l","]]]]>"),this.assertLegalChar(p))},P.prototype.comment=function(p){if(this.options.noValidation)return p;if(p=""+p||"",p.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+p);return this.assertLegalChar(p)},P.prototype.raw=function(p){return this.options.noValidation?p:""+p||""},P.prototype.attValue=function(p){return this.options.noValidation?p:this.assertLegalChar(this.attEscape(p=""+p||""))},P.prototype.insTarget=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.insValue=function(p){if(this.options.noValidation)return p;if(p=""+p||"",p.match(/\?>/))throw new Error("Invalid processing instruction value: "+p);return this.assertLegalChar(p)},P.prototype.xmlVersion=function(p){if(this.options.noValidation)return p;if(p=""+p||"",!p.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+p);return p},P.prototype.xmlEncoding=function(p){if(this.options.noValidation)return p;if(p=""+p||"",!p.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+p);return this.assertLegalChar(p)},P.prototype.xmlStandalone=function(p){return this.options.noValidation?p:p?"yes":"no"},P.prototype.dtdPubID=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdSysID=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdElementValue=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdAttType=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdAttDefault=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdEntityValue=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.dtdNData=function(p){return this.options.noValidation?p:this.assertLegalChar(""+p||"")},P.prototype.convertAttKey="@",P.prototype.convertPIKey="?",P.prototype.convertTextKey="#text",P.prototype.convertCDataKey="#cdata",P.prototype.convertCommentKey="#comment",P.prototype.convertRawKey="#raw",P.prototype.assertLegalChar=function(p){var v,S;if(this.options.noValidation)return p;if(v="",this.options.version==="1.0"){if(v=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,S=p.match(v))throw new Error("Invalid character in string: "+p+" at index "+S.index)}else if(this.options.version==="1.1"&&(v=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,S=p.match(v)))throw new Error("Invalid character in string: "+p+" at index "+S.index);return p},P.prototype.assertLegalName=function(p){var v;if(this.options.noValidation)return p;if(this.assertLegalChar(p),v=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!p.match(v))throw new Error("Invalid character in name");return p},P.prototype.textEscape=function(p){var v;return this.options.noValidation?p:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(v,"&").replace(//g,">").replace(/\r/g," "))},P.prototype.attEscape=function(p){var v;return this.options.noValidation?p:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(v,"&").replace(/0)?new Array(f).join(w.indent):""},a.prototype.endline=function(t,w,E){return!w.pretty||w.suppressPrettyCount?"":w.newline},a.prototype.attribute=function(t,w,E){var f;return this.openAttribute(t,w,E),f=" "+t.name+'="'+t.value+'"',this.closeAttribute(t,w,E),f},a.prototype.cdata=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.comment=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.declaration=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+"",f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.docType=function(t,w,E){var f,k,O,C,x;if(E||(E=0),this.openNode(t,w,E),w.state=g.OpenTag,C=this.indent(t,w,E),C+="0){for(C+=" [",C+=this.endline(t,w,E),w.state=g.InsideTag,x=t.children,k=0,O=x.length;k",C+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),C},a.prototype.element=function(t,w,E){var f,k,O,C,x,y,_,M,I,N,G,H,B,K;E||(E=0),N=!1,G="",this.openNode(t,w,E),w.state=g.OpenTag,G+=this.indent(t,w,E)+"<"+t.name,H=t.attribs;for(I in H){if(!r.call(H,I))continue;f=H[I],G+=this.attribute(f,w,E)}if(O=t.children.length,C=O===0?null:t.children[0],O===0||t.children.every(function(U){return(U.type===L.Text||U.type===L.Raw)&&U.value===""}))w.allowEmpty?(G+=">",w.state=g.CloseTag,G+=""+this.endline(t,w,E)):(w.state=g.CloseTag,G+=w.spaceBeforeSlash+"/>"+this.endline(t,w,E));else if(w.pretty&&O===1&&(C.type===L.Text||C.type===L.Raw)&&C.value!=null)G+=">",w.state=g.InsideTag,w.suppressPrettyCount++,N=!0,G+=this.writeChildNode(C,w,E+1),w.suppressPrettyCount--,N=!1,w.state=g.CloseTag,G+=""+this.endline(t,w,E);else{if(w.dontPrettyTextNodes){for(B=t.children,x=0,_=B.length;x<_;x++)if(k=B[x],(k.type===L.Text||k.type===L.Raw)&&k.value!=null){w.suppressPrettyCount++,N=!0;break}}for(G+=">"+this.endline(t,w,E),w.state=g.InsideTag,K=t.children,y=0,M=K.length;y",N&&w.suppressPrettyCount--,G+=this.endline(t,w,E),w.state=g.None}return this.closeNode(t,w,E),G},a.prototype.writeChildNode=function(t,w,E){switch(t.type){case L.CData:return this.cdata(t,w,E);case L.Comment:return this.comment(t,w,E);case L.Element:return this.element(t,w,E);case L.Raw:return this.raw(t,w,E);case L.Text:return this.text(t,w,E);case L.ProcessingInstruction:return this.processingInstruction(t,w,E);case L.Dummy:return"";case L.Declaration:return this.declaration(t,w,E);case L.DocType:return this.docType(t,w,E);case L.AttributeDeclaration:return this.dtdAttList(t,w,E);case L.ElementDeclaration:return this.dtdElement(t,w,E);case L.EntityDeclaration:return this.dtdEntity(t,w,E);case L.NotationDeclaration:return this.dtdNotation(t,w,E);default:throw new Error("Unknown XML node type: "+t.constructor.name)}},a.prototype.processingInstruction=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+"",f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.raw=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E),w.state=g.InsideTag,f+=t.value,w.state=g.CloseTag,f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.text=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E),w.state=g.InsideTag,f+=t.value,w.state=g.CloseTag,f+=this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdAttList=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdElement=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdEntity=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.dtdNotation=function(t,w,E){var f;return this.openNode(t,w,E),w.state=g.OpenTag,f=this.indent(t,w,E)+""+this.endline(t,w,E),w.state=g.None,this.closeNode(t,w,E),f},a.prototype.openNode=function(t,w,E){},a.prototype.closeNode=function(t,w,E){},a.prototype.openAttribute=function(t,w,E){},a.prototype.closeAttribute=function(t,w,E){},a}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(j,Y,D){"use strict";(function(){var L,g,T,P,p,v,S,b,d,l;l=j("./Utility"),b=l.assign,d=l.isFunction,T=j("./XMLDOMImplementation"),P=j("./XMLDocument"),p=j("./XMLDocumentCB"),S=j("./XMLStringWriter"),v=j("./XMLStreamWriter"),L=j("./NodeType"),g=j("./WriterState"),Y.exports.create=function(n,c,u,o){var h,m;if(n==null)throw new Error("Root element needs a name.");return o=b({},c,u,o),h=new P(o),m=h.element(n),o.headless||(h.declaration(o),(o.pubID!=null||o.sysID!=null)&&h.dtd(o)),m},Y.exports.begin=function(n,c,u){var o;return d(n)&&(o=[n,c],c=o[0],u=o[1],n={}),c?new p(n,c,u):new P(n)},Y.exports.stringWriter=function(n){return new S(n)},Y.exports.streamWriter=function(n,c){return new v(n,c)},Y.exports.implementation=new T,Y.exports.nodeType=L,Y.exports.writerState=g}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(j,Y,D){Y.exports=g;var L=Object.prototype.hasOwnProperty;function g(){for(var T={},P=0;Pp?n=l(n):n.length>5]|=128<>>9<<4)+14]=c;for(var u=1732584193,o=-271733879,h=-1732584194,m=271733878,s=0;s>16)+(c>>16)+(u>>16);return o<<16|u&65535}function l(n,c){return n<>>32-c}Y.exports=function(c){return L.hash(c,T,16)}},{"./helpers":285}],287:[function(j,Y,D){"use strict";var L=j("./helpers");function g(S,b){S[b>>5]|=128<<24-b%32,S[(b+64>>9<<4)+15]=b;for(var d=Array(80),l=1732584193,n=-271733879,c=-1732584194,u=271733878,o=-1009589776,h=0;h>16)+(b>>16)+(d>>16);return l<<16|d&65535}function v(S,b){return S<>>32-b}Y.exports=function(b){return L.hash(b,g,20,!0)}},{"./helpers":285}],288:[function(j,Y,D){"use strict";Y.exports=function(){return function(){}}},{}],289:[function(j,Y,D){(function(L){"use strict";var g=j("babel-runtime/helpers/typeof"),T=P(g);function P(l){return l&&l.__esModule?l:{default:l}}var p=j("stream"),v=p.Stream,S=j("../lib/common/utils/isArray"),b=S.isArray;Y.exports.string=function(n){return typeof n=="string"},Y.exports.array=b,Y.exports.buffer=L.isBuffer;function d(l){return l instanceof v}Y.exports.writableStream=function(n){return d(n)&&typeof n._write=="function"&&(0,T.default)(n._writableState)==="object"}}).call(this,{isBuffer:j("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(j,Y,D){"use strict";D.encodeURIComponent=function(L){try{return encodeURIComponent(L)}catch(g){return L}},D.escape=j("escape-html"),D.timestamp=function(g){if(g){var T=g;return typeof T=="string"&&(T=Number(T)),String(g).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(j,Y,D){(function(L,g){"use strict";var T=j("babel-runtime/core-js/json/stringify"),P=S(T),p=j("babel-runtime/helpers/typeof"),v=S(p);function S(w){return w&&w.__esModule?w:{default:w}}var b=j("util"),d=j("url"),l=j("http"),n=j("https"),c=j("debug")("urllib"),u=j("humanize-ms"),o,h=0,m=Math.pow(2,31)-10,s=/^https?:\/\//i;function r(w,E){return w===void 0?E:w}function a(w,E){return function(f,k,O){if(f)return E(f);w({data:k,status:O.statusCode,headers:O.headers,res:O})}}D.TIMEOUTS=[u("300s"),u("300s")];var t=["json","text"];D.request=function(E,f,k){return arguments.length===2&&typeof f=="function"&&(k=f,f=null),typeof k=="function"?D.requestWithCallback(E,f,k):(o||(o=j("any-promise")),new o(function(O,C){D.requestWithCallback(E,f,a(O,C))}))},D.requestWithCallback=function(E,f,k){if(!E||typeof E!="string"&&(typeof E=="undefined"?"undefined":(0,v.default)(E))!=="object"){var O=b.format("expect request url to be a string or a http request options, but got %j",E);throw new Error(O)}arguments.length===2&&typeof f=="function"&&(k=f,f=null),f=f||{},h>=m&&(h=0);var C=++h;f.requestUrls=f.requestUrls||[];var x={requestId:C,url:E,args:f,ctx:f.ctx};f.emitter&&f.emitter.emit("request",x),f.timeout=f.timeout||D.TIMEOUTS,f.maxRedirects=f.maxRedirects||10,f.streaming=f.streaming||f.customResponse;var y=Date.now(),_;typeof E=="string"?(s.test(E)||(E="http://"+E),_=d.parse(E)):_=E;var M=(f.type||f.method||_.method||"GET").toUpperCase(),I=_.port||80,N=l,G=r(f.agent,D.agent),H=f.fixJSONCtlChars;_.protocol==="https:"&&(N=n,G=r(f.httpsAgent,D.httpsAgent),_.port||(I=443));var B={host:_.hostname||_.host||"localhost",path:_.path||"/",method:M,port:I,agent:G,headers:f.headers||{},lookup:f.lookup};Array.isArray(f.timeout)?B.requestTimeout=f.timeout[f.timeout.length-1]:typeof f.timeout!="undefined"&&(B.requestTimeout=f.timeout);for(var K=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],U=0;U=0)return c("Request#%d %s: got digest auth header WWW-Authenticate: %s",C,E,Ue),f.headers=f.headers||{},f.headers.Authorization=digestAuthHeader(B.method,B.path,Ue,f.digestAuth),c("Request#%d %s: auth with digest header: %s",C,E,f.headers.Authorization),ft.headers["set-cookie"]&&(f.headers.Cookie=ft.headers["set-cookie"].join(";")),D.requestWithCallback(E,f,Qe)}var Le=Date.now()-y;q&&(q.contentDownload=Le),c("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Le,re,pe,B.method,B.host,B.path,le,q);var Ie={status:pe,statusCode:pe,headers:lt,size:re,aborted:ee,rt:Le,keepAliveSocket:le,data:tt,requestUrls:f.requestUrls,timing:q,remoteAddress:te,remotePort:ce};if(Re){var Ce="";G&&typeof G.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,P.default)(G.getCurrentStatus())),Re.message+=", "+B.method+" "+E+" "+pe+" (connected: "+ue+", keepalive socket: "+le+Ce+`) -headers: `+(0,P.default)(lt),Re.data=tt,Re.path=B.path,Re.status=pe,Re.headers=lt,Re.res=Ie}Qe(Re,tt,f.streaming?ft:Ie),f.emitter&&(x.url=E,x.socket=ht&&ht.connection,x.options=B,x.size=Ae,f.emitter.emit("response",{requestId:C,error:Re,ctx:f.ctx,req:x,res:Ie}))}function be(Re){var tt=null;if(f.followRedirect&&statuses.redirect[Re.statusCode]){f._followRedirectCount=(f._followRedirectCount||0)+1;var ft=Re.headers.location;if(!ft)tt=new Error("Got statusCode "+Re.statusCode+" but cannot resolve next location from headers"),tt.name="FollowRedirectError";else if(f._followRedirectCount>f.maxRedirects)tt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),tt.name="MaxRedirectError";else{var Qe=f.formatRedirectUrl?f.formatRedirectUrl(E,ft):d.resolve(E,ft);c("Request#%d %s: `redirected` from %s to %s",C,B.path,E,Qe),V(),f.headers&&f.headers.Host&&s.test(ft)&&(f.headers.Host=null);var lt=k;return k=null,D.requestWithCallback(Qe,f,lt),{redirect:!0,error:null}}}return{redirect:!1,error:tt}}!B.headers["User-Agent"]&&!B.headers["user-agent"]&&(B.headers["User-Agent"]=navigator.userAgent),f.gzip&&(!B.headers["Accept-Encoding"]&&!B.headers["accept-encoding"]&&(B.headers["Accept-Encoding"]="gzip"));function ge(Re,tt,ft){var Qe=Re.headers["content-encoding"];return ft(null,tt,Qe)}var Te=f.writeStream;c("Request#%d %s %s with headers %j, options.path: %s",C,M,E,B.headers,B.path),f.requestUrls.push(E);function Je(Re){if(q&&(q.waiting=Date.now()-y),c("Request#%d %s `req response` event emit: status %d, headers: %j",C,E,Re.statusCode,Re.headers),f.streaming){var tt=be(Re);if(tt.redirect){Re.resume();return}return tt.error?(Re.resume(),Z(tt.error,null,Re)):Z(null,null,Re)}if(Re.on("close",function(){c("Request#%d %s: `res close` event emit, total size %d",C,E,re)}),Re.on("error",function(){c("Request#%d %s: `res error` event emit, total size %d",C,E,re)}),Re.on("aborted",function(){ee=!0,c("Request#%d %s: `res aborted` event emit, total size %d",C,E,re)}),Te){var tt=be(Re);if(tt.redirect){Re.resume();return}return tt.error?(Re.resume(),Te.end(),Z(tt.error,null,Re)):(f.consumeWriteStream===!1?Re.on("end",Z.bind(null,null,null,Re)):isNode010||isNode012?first([[Te,"close"],[Re,"aborted"]],function(lt,Ue,Le){c("Request#%d %s: writeStream or res %s event emitted",C,E,Le),Z(xe||null,null,Re)}):Te.on("close",function(){c("Request#%d %s: writeStream close event emitted",C,E),Z(xe||null,null,Re)}),Re.pipe(Te))}var ft=[];Re.on("data",function(Qe){c("Request#%d %s: `res data` event emit, size %d",C,E,Qe.length),re+=Qe.length,ft.push(Qe)}),Re.on("end",function(){var Qe=g.concat(ft,re);if(c("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",C,E,re,Re._dumped),xe)return Z(xe,Qe,Re);var lt=be(Re);if(lt.error)return Z(lt.error,Qe,Re);if(lt.redirect)return;ge(Re,Qe,function(Ue,Le,Ie){if(Ue)return Z(Ue,Qe,Re);if(!Ie&&t.indexOf(f.dataType)>=0){try{Le=decodeBodyByCharset(Le,Re)}catch(_e){return c("decodeBodyByCharset error: %s",_e),Z(null,Le,Re)}if(f.dataType==="json")if(re===0)Le=null;else{var Ce=parseJSON(Le,H);Ce.error?Ue=Ce.error:Le=Ce.data}}ee&&c("Request#%d %s: Remote socket was terminated before `response.end()` was called",C,E),Z(Ue,Le,Re)})})}var rt,nt;Array.isArray(f.timeout)?(rt=u(f.timeout[0]),nt=u(f.timeout[1])):rt=nt=u(f.timeout),c("ConnectTimeout: %d, ResponseTimeout: %d",rt,nt);function at(){c("Connect timer ticking, timeout: %d",rt),ye=setTimeout(function(){ye=null,pe===-1&&(pe=-2);var Re="Connect timeout for "+rt+"ms",tt="ConnectionTimeoutError";ht.socket||(tt="SocketAssignTimeoutError",Re+=", working sockets is full"),xe=new Error(Re),xe.name=tt,xe.requestId=C,c("ConnectTimeout: Request#%d %s %s: %s, connected: %s",C,E,xe.name,Re,ue),He()},rt)}function ct(){c("Response timer ticking, timeout: %d",nt),Oe=setTimeout(function(){Oe=null;var Re="Response timeout for "+nt+"ms",tt="ResponseTimeoutError";xe=new Error(Re),xe.name=tt,xe.requestId=C,c("ResponseTimeout: Request#%d %s %s: %s, connected: %s",C,E,xe.name,Re,ue),He()},nt)}var ht;B.mode=f.mode?f.mode:"";try{ht=N.request(B,Je)}catch(Re){return Z(Re)}typeof window=="undefined"?at():ht.on("requestTimeout",function(){pe===-1&&(pe=-2);var Re="Connect timeout for "+rt+"ms",tt="ConnectionTimeoutError";xe=new Error(Re),xe.name=tt,xe.requestId=C,He()});function He(){c("Request#%d %s abort, connected: %s",C,E,ue),ht.socket||(xe.noSocket=!0,Z(xe)),ht.abort()}return q&&ht.on("finish",function(){q.requestSent=Date.now()-y}),ht.once("socket",function(Re){q&&(q.queuing=Date.now()-y),isNode010&&Re.socket&&(Re=Re.socket);var tt=Re.readyState;if(tt==="opening"){Re.once("lookup",function(ft,Qe,lt){c("Request#%d %s lookup: %s, %s, %s",C,E,ft,Qe,lt),q&&(q.dnslookup=Date.now()-y),Qe&&(te=Qe)}),Re.once("connect",function(){q&&(q.connected=Date.now()-y),Q(),ct(),c("Request#%d %s new socket connected",C,E),ue=!0,te||(te=Re.remoteAddress),ce=Re.remotePort});return}c("Request#%d %s reuse socket connected, readyState: %s",C,E,tt),ue=!0,le=!0,te||(te=Re.remoteAddress),ce=Re.remotePort,Q(),ct()}),ht.on("error",function(Re){(Re.name==="Error"||Re.name==="TypeError")&&(Re.name=ue?"ResponseError":"RequestError"),Re.message+=' (req "error")',c("Request#%d %s `req error` event emit, %s: %s",C,E,Re.name,Re.message),Z(xe||Re)}),Te&&Te.once("error",function(Re){Re.message+=' (writeStream "error")',xe=Re,c("Request#%d %s `writeStream error` event emit, %s: %s",C,E,Re.name,Re.message),He()}),f.stream?(f.stream.pipe(ht),f.stream.once("error",function(Re){Re.message+=' (stream "error")',xe=Re,c("Request#%d %s `readStream error` event emit, %s: %s",C,E,Re.name,Re.message),He()})):ht.end(ne),ht.requestId=C,ht}}).call(this,j("_process"),j("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n6Qo:function(j,Y,D){"use strict";D.d(Y,"a",function(){return b});var L=D("q1tI"),g=D("biw7"),T=D("fyJ8");function P(d){var l=d.className,n=d.index,c=d.children,u=d.colSpan,o=d.rowSpan,h=L.useContext(g.a),m=h.prefixCls,s=h.fixedInfoList,r=s[n];return L.createElement(T.a,Object.assign({className:l,index:n,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:c,props:{colSpan:u,rowSpan:o}}}},r))}function p(d){return L.createElement("tr",Object.assign({},d))}function v(d){var l=d.children,n=L.useContext(g.a),c=n.prefixCls;return L.createElement("tfoot",{className:"".concat(c,"-summary")},l)}var _=Y.b=v,b={Cell:P,Row:p}},nnTU:function(j,Y,D){"use strict";D.d(Y,"b",function(){return b}),D.d(Y,"a",function(){return d});var L=D("pmY6"),g=D("746U"),T=D("Cg/j"),P=D("MI8n"),p=D("24hK"),v=D("QDVR"),_=function(){for(var l=0,n=0,c=arguments.length;n>>2]&255;g.sigBytes-=T}},L.pad.Iso10126})},osHv:function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";var g=L.Pos;function T(s,r){return s.line-r.line||s.ch-r.ch}var P="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",p=P+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",v=new RegExp("<(/?)(["+P+"]["+p+"]*)","g");function _(s,r,a,t){this.line=r,this.ch=a,this.cm=s,this.text=s.getLine(r),this.min=t?Math.max(t.from,s.firstLine()):s.firstLine(),this.max=t?Math.min(t.to-1,s.lastLine()):s.lastLine()}function b(s,r){var a=s.cm.getTokenTypeAt(g(s.line,r));return a&&/\btag\b/.test(a)}function d(s){return s.line>=s.max?void 0:(s.ch=0,s.text=s.cm.getLine(++s.line),!0)}function l(s){return s.line<=s.min?void 0:(s.text=s.cm.getLine(--s.line),s.ch=s.text.length,!0)}function n(s){for(;;){var r=s.text.indexOf(">",s.ch);if(r==-1){if(d(s))continue;return}if(!b(s,r+1)){s.ch=r+1;continue}var a=s.text.lastIndexOf("/",r),t=a>-1&&!/\S/.test(s.text.slice(a+1,r));return s.ch=r+1,t?"selfClose":"regular"}}function c(s){for(;;){var r=s.ch?s.text.lastIndexOf("<",s.ch-1):-1;if(r==-1){if(l(s))continue;return}if(!b(s,r+1)){s.ch=r;continue}v.lastIndex=r,s.ch=r;var a=v.exec(s.text);if(a&&a.index==r)return a}}function u(s){for(;;){v.lastIndex=s.ch;var r=v.exec(s.text);if(!r){if(d(s))continue;return}if(!b(s,r.index+1)){s.ch=r.index+1;continue}return s.ch=r.index+r[0].length,r}}function o(s){for(;;){var r=s.ch?s.text.lastIndexOf(">",s.ch-1):-1;if(r==-1){if(l(s))continue;return}if(!b(s,r+1)){s.ch=r;continue}var a=s.text.lastIndexOf("/",r),t=a>-1&&!/\S/.test(s.text.slice(a+1,r));return s.ch=r+1,t?"selfClose":"regular"}}function h(s,r){for(var a=[];;){var t=u(s),w,E=s.line,f=s.ch-(t?t[0].length:0);if(!t||!(w=n(s)))return;if(w=="selfClose")continue;if(t[1]){for(var k=a.length-1;k>=0;--k)if(a[k]==t[2]){a.length=k;break}if(k<0&&(!r||r==t[2]))return{tag:t[2],from:g(E,f),to:g(s.line,s.ch)}}else a.push(t[2])}}function m(s,r){for(var a=[];;){var t=o(s);if(!t)return;if(t=="selfClose"){c(s);continue}var w=s.line,E=s.ch,f=c(s);if(!f)return;if(f[1])a.push(f[2]);else{for(var k=a.length-1;k>=0;--k)if(a[k]==f[2]){a.length=k;break}if(k<0&&(!r||r==f[2]))return{tag:f[2],from:g(s.line,s.ch),to:g(w,E)}}}}L.registerHelper("fold","xml",function(s,r){for(var a=new _(s,r.line,0);;){var t=u(a);if(!t||a.line!=r.line)return;var w=n(a);if(!w)return;if(!t[1]&&w!="selfClose"){var E=g(a.line,a.ch),f=h(a,t[2]);return f&&T(f.from,E)>0?{from:E,to:f.from}:null}}}),L.findMatchingTag=function(s,r,a){var t=new _(s,r.line,r.ch,a);if(t.text.indexOf(">")==-1&&t.text.indexOf("<")==-1)return;var w=n(t),E=w&&g(t.line,t.ch),f=w&&c(t);if(!w||!f||T(t,r)>0)return;var k={from:g(t.line,t.ch),to:E,tag:f[2]};return w=="selfClose"?{open:k,close:null,at:"open"}:f[1]?{open:m(t,f[2]),close:k,at:"close"}:(t=new _(s,E.line,E.ch,a),{open:k,close:h(t,f[2]),at:"open"})},L.findEnclosingTag=function(s,r,a,t){for(var w=new _(s,r.line,r.ch,a);;){var E=m(w,t);if(!E)break;var f=new _(s,r.line,r.ch,a),k=h(f,E.tag);if(k)return{open:E,close:k}}},L.scanForClosingTag=function(s,r,a,t){var w=new _(s,r.line,r.ch,t?{from:0,to:t}:null);return h(w,a)}})},p5ED:function(j,Y,D){"use strict";var L=D("+L6B"),g=D("2/Rp"),T=D("5Dmo"),P=D("3S7+"),p=D("k1fw"),v=D("9og8"),_=D("tJVT"),b=D("WmNS"),d=D.n(b),l=D("q1tI"),n=D.n(l),c=D("vHTk"),u=D.n(c),o=D("yEEn"),h=D("ZW9T"),m=D("1vsH"),s=D("V0Rq"),r=D("m3rI");Y.a=function(a){var t,w,E,f,k,O,C=a.editOffice,x=C===void 0?"view":C,y=a.name,S=a.data,M=a.theme,I=a.type,N=a.filename,G=a.monacoEditor,H=a.className,B=a.style,K=a.close,U=a.onClose,W=a.hasMask,X=a.disabledDownload,ne=a.onImgDimensions,fe=a.otherData,me=Object(l.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ae=Object(_.a)(me,2),De=Ae[0],ye=Ae[1],Oe=Object(l.useState)(""),xe=Object(_.a)(Oe,2),ue=xe[0],le=xe[1],re=Object(l.useState)(),pe=Object(_.a)(re,2),ee=pe[0],te=pe[1],ce=window.ENV==="build"?"/react/build":"",q=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,Q,V=1024*1024,Z=10*V,be=Object(l.useRef)();(t=S)!==null&&t!==void 0&&t.startsWith("/api")&&I!=="txt"&&(S=r.a.API_SERVER+S),I==="office"&&(Q=Object(m.P)(S).filesize,Q>Z&&(I="other")),N&&(G.filename=N),Object(l.useEffect)(function(){var rt,nt,at=(rt=document.cookie)===null||rt===void 0||((nt=rt.replace(/\s/g,""))===null||nt===void 0)?void 0:nt.split(";");at==null||at.map(function(ct){var ht=ct.split("=");ht[0]==="_educoder_session"&&le(ht[1])})},[]),Object(l.useEffect)(function(){I==="office"&&ge()},[I,S]);var ge=function(){var rt=Object(v.a)(d.a.mark(function nt(){var at,ct,ht;return d.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return console.log("data:",S),at=S,S.startsWith("http")||(at=location.origin+at),ct=new URL(at).pathname.split("/").pop(),Re.next=6,Object(s.U)({attachment_id:ct});case 6:ht=Re.sent,te(ht);case 8:case"end":return Re.stop()}},nt)}));return function(){return rt.apply(this,arguments)}}(),Te=function(){if(S.startsWith("http")||S.startsWith("blob:")){Je();return}Object(m.x)(N||"educoder",S,N)},Je=function(){Object(m.v)(N||"educoder",decodeURIComponent(S))};return n.a.createElement("div",{style:Object(p.a)({},B||{}),className:"".concat(W&&u.a.bgBlack," ").concat(I?u.a.wrp:"hide")},K&&n.a.createElement("div",{className:u.a.close,ref:be},!!ne&&n.a.createElement(P.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return be.current}},n.a.createElement("span",{onClick:function(){U(),ne()}},n.a.createElement("i",{className:"icon-yulanpizhu"}))),!X&&n.a.createElement(P.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return be.current}},n.a.createElement("span",{onClick:Je},n.a.createElement("i",{className:"icon-quxiaozhiding"}))),n.a.createElement(P.a,{title:"\u5173\u95ED",getPopupContainer:function(){return be.current}},n.a.createElement("span",{className:"",onClick:U},n.a.createElement("i",{className:"icon-guanbi1"})))),n.a.createElement("div",{className:"".concat(u.a[H]," ").concat(H," ").concat(u.a.monaco," ").concat(I==="txt"?"show":"hide")},I==="txt"&&n.a.createElement(h.b,G)),I==="audio"&&n.a.createElement("audio",{src:"".concat(((w=S)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((E=S)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(S),autoPlay:!0}),I==="video"&&n.a.createElement(n.a.Fragment,null,((f=S)===null||f===void 0?void 0:f.indexOf("http"))>-1?n.a.createElement("video",{controls:!0,src:"".concat(S),autoPlay:!0}):n.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(S),autoPlay:!0})),I==="office"&&ee&&n.a.createElement("iframe",{src:"".concat(ce,"/office.html?key=").concat(ee.key,"&url=").concat(q+ee.url,"&callbackUrl=").concat(q+ee.callbackUrl,"&fileType=").concat(ee.fileType,"&title=").concat(ee.title,"&model=").concat(x,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!X)}),(I==="xlsx"||I==="doc"||I==="pptx"||I==="docx")&&n.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(fe.key,"&url=").concat(r.a.API_SERVER+fe.url,"&callbackUrl=").concat(r.a.API_SERVER+fe.callbackUrl,"&fileType=").concat(fe.fileType,"&title=").concat(fe.title,"&model=").concat(fe.model)}),I==="html"&&n.a.createElement("iframe",{src:S+"&disposition=inline"}),I==="pdf"&&n.a.createElement("embed",{className:u.a.embed,src:S}),I==="image"&&n.a.createElement("img",{src:"".concat(((k=S)===null||k===void 0?void 0:k.indexOf("http://"))>-1||((O=S)===null||O===void 0?void 0:O.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(S)}),I==="other"&&n.a.createElement("div",null,n.a.createElement(g.a,{type:"primary",size:"large",onClick:Te},n.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),I==="download"&&n.a.createElement(g.a,{type:"primary",size:"large",onClick:Te},n.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(j,Y,D){},pA7S:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=T.BlockCipher,v=g.algo,_=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],b=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],n=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c=v.DES=p.extend({_doReset:function(){for(var m=this._key,s=m.words,r=[],a=0;a<56;a++){var t=_[a]-1;r[a]=s[t>>>5]>>>31-t%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var f=w[E]=[],k=d[E],a=0;a<24;a++)f[a/6|0]|=r[(b[a]-1+k)%28]<<31-a%6,f[4+(a/6|0)]|=r[28+(b[a+24]-1+k)%28]<<31-a%6;f[0]=f[0]<<1|f[0]>>>31;for(var a=1;a<7;a++)f[a]=f[a]>>>(a-1)*4+3;f[7]=f[7]<<5|f[7]>>>27}for(var O=this._invSubKeys=[],a=0;a<16;a++)O[a]=w[15-a]},encryptBlock:function(m,s){this._doCryptBlock(m,s,this._subKeys)},decryptBlock:function(m,s){this._doCryptBlock(m,s,this._invSubKeys)},_doCryptBlock:function(m,s,r){this._lBlock=m[s],this._rBlock=m[s+1],u.call(this,4,252645135),u.call(this,16,65535),o.call(this,2,858993459),o.call(this,8,16711935),u.call(this,1,1431655765);for(var a=0;a<16;a++){for(var t=r[a],w=this._lBlock,E=this._rBlock,f=0,k=0;k<8;k++)f|=l[k][((E^t[k])&n[k])>>>0];this._lBlock=E,this._rBlock=w^f}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,u.call(this,1,1431655765),o.call(this,8,16711935),o.call(this,2,858993459),u.call(this,16,65535),u.call(this,4,252645135),m[s]=this._lBlock,m[s+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function u(m,s){var r=(this._lBlock>>>m^this._rBlock)&s;this._rBlock^=r,this._lBlock^=r<>>m^this._lBlock)&s;this._lBlock^=r,this._rBlock^=r<192.");var r=s.slice(0,2),a=s.length<4?s.slice(0,2):s.slice(2,4),t=s.length<6?s.slice(0,2):s.slice(4,6);this._des1=c.createEncryptor(P.create(r)),this._des2=c.createEncryptor(P.create(a)),this._des3=c.createEncryptor(P.create(t))},encryptBlock:function(m,s){this._des1.encryptBlock(m,s),this._des2.decryptBlock(m,s),this._des3.encryptBlock(m,s)},decryptBlock:function(m,s){this._des3.decryptBlock(m,s),this._des2.encryptBlock(m,s),this._des1.decryptBlock(m,s)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=p._createHelper(h)}(),L.TripleDES})},pIsd:function(j,Y,D){var L=D("BJfS"),g=function(p){var v=/[height|width]$/;return v.test(p)},T=function(p){var v="",_=Object.keys(p);return _.forEach(function(b,d){var l=p[b];b=L(b),g(b)&&typeof l=="number"&&(l=l+"px"),l===!0?v+=b:l===!1?v+="not "+b:v+="("+b+": "+l+")",d<_.length-1&&(v+=" and ")}),v},P=function(p){var v="";return typeof p=="string"?p:p instanceof Array?(p.forEach(function(_,b){v+=T(_),b>>2]|=v<<24-_%4*8,g.sigBytes+=v},unpad:function(g){var T=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=T}},L.pad.Ansix923})},qHvr:function(j,Y,D){"use strict";var L=D("2qtc"),g=D("kLXV"),T=D("5NDa"),P=D("5rEg"),p=D("miYZ"),v=D("tsqr"),_=D("tJVT"),b=D("q1tI"),d=D.n(b),l=D("4i/N");function n(c){var u=c.isAddmodle,o=c.setIsAdd,h=c.createTeam,m=Object(b.useState)(""),s=Object(_.a)(m,2),r=s[0],a=s[1];return d.a.createElement(g.a,{centered:!0,title:d.a.createElement("div",{style:{alignItems:"center",display:"flex"}},d.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u521B\u5EFA\u6218\u961F"),d.a.createElement(l.a,{onClick:function(){return o(!1)},style:{cursor:"porint"}})),visible:u,closable:!1,destroyOnClose:!0,onOk:function(){if(!r){v.b.info("\u6218\u961F\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}h(r)},onCancel:function(){return o(!1)}},d.a.createElement("div",null,d.a.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"\u961F\u540D\uFF1A",d.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px"}},d.a.createElement(P.a,{placeholder:"\u8BF7\u8F93\u5165\u961F\u540D",value:r,maxLength:60,addonAfter:String(r&&r.length||0)+"/60",onChange:function(w){return a(w.target.value)}}))))}Y.a=n},qM6L:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.enc,v=p.Utf16=p.Utf16BE={stringify:function(b){for(var d=b.words,l=b.sigBytes,n=[],c=0;c>>2]>>>16-c%4*8&65535;n.push(String.fromCharCode(u))}return n.join("")},parse:function(b){for(var d=b.length,l=[],n=0;n>>1]|=b.charCodeAt(n)<<16-n%2*16;return P.create(l,d*2)}};p.Utf16LE={stringify:function(b){for(var d=b.words,l=b.sigBytes,n=[],c=0;c>>2]>>>16-c%4*8&65535);n.push(String.fromCharCode(u))}return n.join("")},parse:function(b){for(var d=b.length,l=[],n=0;n>>1]|=_(b.charCodeAt(n)<<16-n%2*16);return P.create(l,d*2)}};function _(b){return b<<8&4278255360|b>>>8&16711935}}(),L.enc.Utf16})},qu8F:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){/** @preserve +headers: `+(0,P.default)(lt),Re.data=tt,Re.path=B.path,Re.status=pe,Re.headers=lt,Re.res=Ie}Qe(Re,tt,f.streaming?ft:Ie),f.emitter&&(x.url=E,x.socket=ht&&ht.connection,x.options=B,x.size=Ae,f.emitter.emit("response",{requestId:C,error:Re,ctx:f.ctx,req:x,res:Ie}))}function be(Re){var tt=null;if(f.followRedirect&&statuses.redirect[Re.statusCode]){f._followRedirectCount=(f._followRedirectCount||0)+1;var ft=Re.headers.location;if(!ft)tt=new Error("Got statusCode "+Re.statusCode+" but cannot resolve next location from headers"),tt.name="FollowRedirectError";else if(f._followRedirectCount>f.maxRedirects)tt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),tt.name="MaxRedirectError";else{var Qe=f.formatRedirectUrl?f.formatRedirectUrl(E,ft):d.resolve(E,ft);c("Request#%d %s: `redirected` from %s to %s",C,B.path,E,Qe),V(),f.headers&&f.headers.Host&&s.test(ft)&&(f.headers.Host=null);var lt=k;return k=null,D.requestWithCallback(Qe,f,lt),{redirect:!0,error:null}}}return{redirect:!1,error:tt}}!B.headers["User-Agent"]&&!B.headers["user-agent"]&&(B.headers["User-Agent"]=navigator.userAgent),f.gzip&&(!B.headers["Accept-Encoding"]&&!B.headers["accept-encoding"]&&(B.headers["Accept-Encoding"]="gzip"));function ge(Re,tt,ft){var Qe=Re.headers["content-encoding"];return ft(null,tt,Qe)}var Te=f.writeStream;c("Request#%d %s %s with headers %j, options.path: %s",C,M,E,B.headers,B.path),f.requestUrls.push(E);function Je(Re){if(q&&(q.waiting=Date.now()-y),c("Request#%d %s `req response` event emit: status %d, headers: %j",C,E,Re.statusCode,Re.headers),f.streaming){var tt=be(Re);if(tt.redirect){Re.resume();return}return tt.error?(Re.resume(),Z(tt.error,null,Re)):Z(null,null,Re)}if(Re.on("close",function(){c("Request#%d %s: `res close` event emit, total size %d",C,E,re)}),Re.on("error",function(){c("Request#%d %s: `res error` event emit, total size %d",C,E,re)}),Re.on("aborted",function(){ee=!0,c("Request#%d %s: `res aborted` event emit, total size %d",C,E,re)}),Te){var tt=be(Re);if(tt.redirect){Re.resume();return}return tt.error?(Re.resume(),Te.end(),Z(tt.error,null,Re)):(f.consumeWriteStream===!1?Re.on("end",Z.bind(null,null,null,Re)):isNode010||isNode012?first([[Te,"close"],[Re,"aborted"]],function(lt,Ue,Le){c("Request#%d %s: writeStream or res %s event emitted",C,E,Le),Z(xe||null,null,Re)}):Te.on("close",function(){c("Request#%d %s: writeStream close event emitted",C,E),Z(xe||null,null,Re)}),Re.pipe(Te))}var ft=[];Re.on("data",function(Qe){c("Request#%d %s: `res data` event emit, size %d",C,E,Qe.length),re+=Qe.length,ft.push(Qe)}),Re.on("end",function(){var Qe=g.concat(ft,re);if(c("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",C,E,re,Re._dumped),xe)return Z(xe,Qe,Re);var lt=be(Re);if(lt.error)return Z(lt.error,Qe,Re);if(lt.redirect)return;ge(Re,Qe,function(Ue,Le,Ie){if(Ue)return Z(Ue,Qe,Re);if(!Ie&&t.indexOf(f.dataType)>=0){try{Le=decodeBodyByCharset(Le,Re)}catch(Se){return c("decodeBodyByCharset error: %s",Se),Z(null,Le,Re)}if(f.dataType==="json")if(re===0)Le=null;else{var Ce=parseJSON(Le,H);Ce.error?Ue=Ce.error:Le=Ce.data}}ee&&c("Request#%d %s: Remote socket was terminated before `response.end()` was called",C,E),Z(Ue,Le,Re)})})}var rt,nt;Array.isArray(f.timeout)?(rt=u(f.timeout[0]),nt=u(f.timeout[1])):rt=nt=u(f.timeout),c("ConnectTimeout: %d, ResponseTimeout: %d",rt,nt);function at(){c("Connect timer ticking, timeout: %d",rt),ye=setTimeout(function(){ye=null,pe===-1&&(pe=-2);var Re="Connect timeout for "+rt+"ms",tt="ConnectionTimeoutError";ht.socket||(tt="SocketAssignTimeoutError",Re+=", working sockets is full"),xe=new Error(Re),xe.name=tt,xe.requestId=C,c("ConnectTimeout: Request#%d %s %s: %s, connected: %s",C,E,xe.name,Re,ue),He()},rt)}function ct(){c("Response timer ticking, timeout: %d",nt),Oe=setTimeout(function(){Oe=null;var Re="Response timeout for "+nt+"ms",tt="ResponseTimeoutError";xe=new Error(Re),xe.name=tt,xe.requestId=C,c("ResponseTimeout: Request#%d %s %s: %s, connected: %s",C,E,xe.name,Re,ue),He()},nt)}var ht;B.mode=f.mode?f.mode:"";try{ht=N.request(B,Je)}catch(Re){return Z(Re)}typeof window=="undefined"?at():ht.on("requestTimeout",function(){pe===-1&&(pe=-2);var Re="Connect timeout for "+rt+"ms",tt="ConnectionTimeoutError";xe=new Error(Re),xe.name=tt,xe.requestId=C,He()});function He(){c("Request#%d %s abort, connected: %s",C,E,ue),ht.socket||(xe.noSocket=!0,Z(xe)),ht.abort()}return q&&ht.on("finish",function(){q.requestSent=Date.now()-y}),ht.once("socket",function(Re){q&&(q.queuing=Date.now()-y),isNode010&&Re.socket&&(Re=Re.socket);var tt=Re.readyState;if(tt==="opening"){Re.once("lookup",function(ft,Qe,lt){c("Request#%d %s lookup: %s, %s, %s",C,E,ft,Qe,lt),q&&(q.dnslookup=Date.now()-y),Qe&&(te=Qe)}),Re.once("connect",function(){q&&(q.connected=Date.now()-y),Q(),ct(),c("Request#%d %s new socket connected",C,E),ue=!0,te||(te=Re.remoteAddress),ce=Re.remotePort});return}c("Request#%d %s reuse socket connected, readyState: %s",C,E,tt),ue=!0,le=!0,te||(te=Re.remoteAddress),ce=Re.remotePort,Q(),ct()}),ht.on("error",function(Re){(Re.name==="Error"||Re.name==="TypeError")&&(Re.name=ue?"ResponseError":"RequestError"),Re.message+=' (req "error")',c("Request#%d %s `req error` event emit, %s: %s",C,E,Re.name,Re.message),Z(xe||Re)}),Te&&Te.once("error",function(Re){Re.message+=' (writeStream "error")',xe=Re,c("Request#%d %s `writeStream error` event emit, %s: %s",C,E,Re.name,Re.message),He()}),f.stream?(f.stream.pipe(ht),f.stream.once("error",function(Re){Re.message+=' (stream "error")',xe=Re,c("Request#%d %s `readStream error` event emit, %s: %s",C,E,Re.name,Re.message),He()})):ht.end(ne),ht.requestId=C,ht}}).call(this,j("_process"),j("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n6Qo:function(j,Y,D){"use strict";D.d(Y,"a",function(){return b});var L=D("q1tI"),g=D("biw7"),T=D("fyJ8");function P(d){var l=d.className,n=d.index,c=d.children,u=d.colSpan,o=d.rowSpan,h=L.useContext(g.a),m=h.prefixCls,s=h.fixedInfoList,r=s[n];return L.createElement(T.a,Object.assign({className:l,index:n,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:c,props:{colSpan:u,rowSpan:o}}}},r))}function p(d){return L.createElement("tr",Object.assign({},d))}function v(d){var l=d.children,n=L.useContext(g.a),c=n.prefixCls;return L.createElement("tfoot",{className:"".concat(c,"-summary")},l)}var S=Y.b=v,b={Cell:P,Row:p}},nnTU:function(j,Y,D){"use strict";D.d(Y,"b",function(){return b}),D.d(Y,"a",function(){return d});var L=D("pmY6"),g=D("746U"),T=D("Cg/j"),P=D("MI8n"),p=D("24hK"),v=D("QDVR"),S=function(){for(var l=0,n=0,c=arguments.length;n>>2]&255;g.sigBytes-=T}},L.pad.Iso10126})},osHv:function(j,Y,D){(function(L){L(D("VrN/"))})(function(L){"use strict";var g=L.Pos;function T(s,r){return s.line-r.line||s.ch-r.ch}var P="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",p=P+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",v=new RegExp("<(/?)(["+P+"]["+p+"]*)","g");function S(s,r,a,t){this.line=r,this.ch=a,this.cm=s,this.text=s.getLine(r),this.min=t?Math.max(t.from,s.firstLine()):s.firstLine(),this.max=t?Math.min(t.to-1,s.lastLine()):s.lastLine()}function b(s,r){var a=s.cm.getTokenTypeAt(g(s.line,r));return a&&/\btag\b/.test(a)}function d(s){return s.line>=s.max?void 0:(s.ch=0,s.text=s.cm.getLine(++s.line),!0)}function l(s){return s.line<=s.min?void 0:(s.text=s.cm.getLine(--s.line),s.ch=s.text.length,!0)}function n(s){for(;;){var r=s.text.indexOf(">",s.ch);if(r==-1){if(d(s))continue;return}if(!b(s,r+1)){s.ch=r+1;continue}var a=s.text.lastIndexOf("/",r),t=a>-1&&!/\S/.test(s.text.slice(a+1,r));return s.ch=r+1,t?"selfClose":"regular"}}function c(s){for(;;){var r=s.ch?s.text.lastIndexOf("<",s.ch-1):-1;if(r==-1){if(l(s))continue;return}if(!b(s,r+1)){s.ch=r;continue}v.lastIndex=r,s.ch=r;var a=v.exec(s.text);if(a&&a.index==r)return a}}function u(s){for(;;){v.lastIndex=s.ch;var r=v.exec(s.text);if(!r){if(d(s))continue;return}if(!b(s,r.index+1)){s.ch=r.index+1;continue}return s.ch=r.index+r[0].length,r}}function o(s){for(;;){var r=s.ch?s.text.lastIndexOf(">",s.ch-1):-1;if(r==-1){if(l(s))continue;return}if(!b(s,r+1)){s.ch=r;continue}var a=s.text.lastIndexOf("/",r),t=a>-1&&!/\S/.test(s.text.slice(a+1,r));return s.ch=r+1,t?"selfClose":"regular"}}function h(s,r){for(var a=[];;){var t=u(s),w,E=s.line,f=s.ch-(t?t[0].length:0);if(!t||!(w=n(s)))return;if(w=="selfClose")continue;if(t[1]){for(var k=a.length-1;k>=0;--k)if(a[k]==t[2]){a.length=k;break}if(k<0&&(!r||r==t[2]))return{tag:t[2],from:g(E,f),to:g(s.line,s.ch)}}else a.push(t[2])}}function m(s,r){for(var a=[];;){var t=o(s);if(!t)return;if(t=="selfClose"){c(s);continue}var w=s.line,E=s.ch,f=c(s);if(!f)return;if(f[1])a.push(f[2]);else{for(var k=a.length-1;k>=0;--k)if(a[k]==f[2]){a.length=k;break}if(k<0&&(!r||r==f[2]))return{tag:f[2],from:g(s.line,s.ch),to:g(w,E)}}}}L.registerHelper("fold","xml",function(s,r){for(var a=new S(s,r.line,0);;){var t=u(a);if(!t||a.line!=r.line)return;var w=n(a);if(!w)return;if(!t[1]&&w!="selfClose"){var E=g(a.line,a.ch),f=h(a,t[2]);return f&&T(f.from,E)>0?{from:E,to:f.from}:null}}}),L.findMatchingTag=function(s,r,a){var t=new S(s,r.line,r.ch,a);if(t.text.indexOf(">")==-1&&t.text.indexOf("<")==-1)return;var w=n(t),E=w&&g(t.line,t.ch),f=w&&c(t);if(!w||!f||T(t,r)>0)return;var k={from:g(t.line,t.ch),to:E,tag:f[2]};return w=="selfClose"?{open:k,close:null,at:"open"}:f[1]?{open:m(t,f[2]),close:k,at:"close"}:(t=new S(s,E.line,E.ch,a),{open:k,close:h(t,f[2]),at:"open"})},L.findEnclosingTag=function(s,r,a,t){for(var w=new S(s,r.line,r.ch,a);;){var E=m(w,t);if(!E)break;var f=new S(s,r.line,r.ch,a),k=h(f,E.tag);if(k)return{open:E,close:k}}},L.scanForClosingTag=function(s,r,a,t){var w=new S(s,r.line,r.ch,t?{from:0,to:t}:null);return h(w,a)}})},p5ED:function(j,Y,D){"use strict";var L=D("+L6B"),g=D("2/Rp"),T=D("5Dmo"),P=D("3S7+"),p=D("k1fw"),v=D("9og8"),S=D("tJVT"),b=D("WmNS"),d=D.n(b),l=D("q1tI"),n=D.n(l),c=D("vHTk"),u=D.n(c),o=D("yEEn"),h=D("ZW9T"),m=D("1vsH"),s=D("V0Rq"),r=D("m3rI");Y.a=function(a){var t,w,E,f,k,O,C=a.editOffice,x=C===void 0?"view":C,y=a.name,_=a.data,M=a.theme,I=a.type,N=a.filename,G=a.monacoEditor,H=a.className,B=a.style,K=a.close,U=a.onClose,W=a.hasMask,X=a.disabledDownload,ne=a.onImgDimensions,fe=a.otherData,me=Object(l.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ae=Object(S.a)(me,2),De=Ae[0],ye=Ae[1],Oe=Object(l.useState)(""),xe=Object(S.a)(Oe,2),ue=xe[0],le=xe[1],re=Object(l.useState)(),pe=Object(S.a)(re,2),ee=pe[0],te=pe[1],ce=window.ENV==="build"?"/react/build":"",q=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,Q,V=1024*1024,Z=10*V,be=Object(l.useRef)();(t=_)!==null&&t!==void 0&&t.startsWith("/api")&&I!=="txt"&&(_=r.a.API_SERVER+_),I==="office"&&(Q=Object(m.P)(_).filesize,Q>Z&&(I="other")),N&&(G.filename=N),Object(l.useEffect)(function(){var rt,nt,at=(rt=document.cookie)===null||rt===void 0||((nt=rt.replace(/\s/g,""))===null||nt===void 0)?void 0:nt.split(";");at==null||at.map(function(ct){var ht=ct.split("=");ht[0]==="_educoder_session"&&le(ht[1])})},[]),Object(l.useEffect)(function(){I==="office"&&ge()},[I,_]);var ge=function(){var rt=Object(v.a)(d.a.mark(function nt(){var at,ct,ht;return d.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return console.log("data:",_),at=_,_.startsWith("http")||(at=location.origin+at),ct=new URL(at).pathname.split("/").pop(),Re.next=6,Object(s.U)({attachment_id:ct});case 6:ht=Re.sent,te(ht);case 8:case"end":return Re.stop()}},nt)}));return function(){return rt.apply(this,arguments)}}(),Te=function(){if(_.startsWith("http")||_.startsWith("blob:")){Je();return}Object(m.x)(N||"educoder",_,N)},Je=function(){Object(m.v)(N||"educoder",decodeURIComponent(_))};return n.a.createElement("div",{style:Object(p.a)({},B||{}),className:"".concat(W&&u.a.bgBlack," ").concat(I?u.a.wrp:"hide")},K&&n.a.createElement("div",{className:u.a.close,ref:be},!!ne&&n.a.createElement(P.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return be.current}},n.a.createElement("span",{onClick:function(){U(),ne()}},n.a.createElement("i",{className:"icon-yulanpizhu"}))),!X&&n.a.createElement(P.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return be.current}},n.a.createElement("span",{onClick:Je},n.a.createElement("i",{className:"icon-quxiaozhiding"}))),n.a.createElement(P.a,{title:"\u5173\u95ED",getPopupContainer:function(){return be.current}},n.a.createElement("span",{className:"",onClick:U},n.a.createElement("i",{className:"icon-guanbi1"})))),n.a.createElement("div",{className:"".concat(u.a[H]," ").concat(H," ").concat(u.a.monaco," ").concat(I==="txt"?"show":"hide")},I==="txt"&&n.a.createElement(h.b,G)),I==="audio"&&n.a.createElement("audio",{src:"".concat(((w=_)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((E=_)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(_),autoPlay:!0}),I==="video"&&n.a.createElement(n.a.Fragment,null,((f=_)===null||f===void 0?void 0:f.indexOf("http"))>-1?n.a.createElement("video",{controls:!0,src:"".concat(_),autoPlay:!0}):n.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(_),autoPlay:!0})),I==="office"&&ee&&n.a.createElement("iframe",{src:"".concat(ce,"/office.html?key=").concat(ee.key,"&url=").concat(q+ee.url,"&callbackUrl=").concat(q+ee.callbackUrl,"&fileType=").concat(ee.fileType,"&title=").concat(ee.title,"&model=").concat(x,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!X)}),(I==="xlsx"||I==="doc"||I==="pptx"||I==="docx")&&n.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(fe.key,"&url=").concat(r.a.API_SERVER+fe.url,"&callbackUrl=").concat(r.a.API_SERVER+fe.callbackUrl,"&fileType=").concat(fe.fileType,"&title=").concat(fe.title,"&model=").concat(fe.model)}),I==="html"&&n.a.createElement("iframe",{src:_+"&disposition=inline"}),I==="pdf"&&n.a.createElement("embed",{className:u.a.embed,src:_}),I==="image"&&n.a.createElement("img",{src:"".concat(((k=_)===null||k===void 0?void 0:k.indexOf("http://"))>-1||((O=_)===null||O===void 0?void 0:O.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(_)}),I==="other"&&n.a.createElement("div",null,n.a.createElement(g.a,{type:"primary",size:"large",onClick:Te},n.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),I==="download"&&n.a.createElement(g.a,{type:"primary",size:"large",onClick:Te},n.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(j,Y,D){},pA7S:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=T.BlockCipher,v=g.algo,S=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],b=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],n=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c=v.DES=p.extend({_doReset:function(){for(var m=this._key,s=m.words,r=[],a=0;a<56;a++){var t=S[a]-1;r[a]=s[t>>>5]>>>31-t%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var f=w[E]=[],k=d[E],a=0;a<24;a++)f[a/6|0]|=r[(b[a]-1+k)%28]<<31-a%6,f[4+(a/6|0)]|=r[28+(b[a+24]-1+k)%28]<<31-a%6;f[0]=f[0]<<1|f[0]>>>31;for(var a=1;a<7;a++)f[a]=f[a]>>>(a-1)*4+3;f[7]=f[7]<<5|f[7]>>>27}for(var O=this._invSubKeys=[],a=0;a<16;a++)O[a]=w[15-a]},encryptBlock:function(m,s){this._doCryptBlock(m,s,this._subKeys)},decryptBlock:function(m,s){this._doCryptBlock(m,s,this._invSubKeys)},_doCryptBlock:function(m,s,r){this._lBlock=m[s],this._rBlock=m[s+1],u.call(this,4,252645135),u.call(this,16,65535),o.call(this,2,858993459),o.call(this,8,16711935),u.call(this,1,1431655765);for(var a=0;a<16;a++){for(var t=r[a],w=this._lBlock,E=this._rBlock,f=0,k=0;k<8;k++)f|=l[k][((E^t[k])&n[k])>>>0];this._lBlock=E,this._rBlock=w^f}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,u.call(this,1,1431655765),o.call(this,8,16711935),o.call(this,2,858993459),u.call(this,16,65535),u.call(this,4,252645135),m[s]=this._lBlock,m[s+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function u(m,s){var r=(this._lBlock>>>m^this._rBlock)&s;this._rBlock^=r,this._lBlock^=r<>>m^this._lBlock)&s;this._lBlock^=r,this._rBlock^=r<192.");var r=s.slice(0,2),a=s.length<4?s.slice(0,2):s.slice(2,4),t=s.length<6?s.slice(0,2):s.slice(4,6);this._des1=c.createEncryptor(P.create(r)),this._des2=c.createEncryptor(P.create(a)),this._des3=c.createEncryptor(P.create(t))},encryptBlock:function(m,s){this._des1.encryptBlock(m,s),this._des2.decryptBlock(m,s),this._des3.encryptBlock(m,s)},decryptBlock:function(m,s){this._des3.decryptBlock(m,s),this._des2.encryptBlock(m,s),this._des1.decryptBlock(m,s)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=p._createHelper(h)}(),L.TripleDES})},pIsd:function(j,Y,D){var L=D("BJfS"),g=function(p){var v=/[height|width]$/;return v.test(p)},T=function(p){var v="",S=Object.keys(p);return S.forEach(function(b,d){var l=p[b];b=L(b),g(b)&&typeof l=="number"&&(l=l+"px"),l===!0?v+=b:l===!1?v+="not "+b:v+="("+b+": "+l+")",d>>2]|=v<<24-S%4*8,g.sigBytes+=v},unpad:function(g){var T=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=T}},L.pad.Ansix923})},qHvr:function(j,Y,D){"use strict";var L=D("2qtc"),g=D("kLXV"),T=D("5NDa"),P=D("5rEg"),p=D("miYZ"),v=D("tsqr"),S=D("tJVT"),b=D("q1tI"),d=D.n(b),l=D("4i/N");function n(c){var u=c.isAddmodle,o=c.setIsAdd,h=c.createTeam,m=Object(b.useState)(""),s=Object(S.a)(m,2),r=s[0],a=s[1];return d.a.createElement(g.a,{centered:!0,title:d.a.createElement("div",{style:{alignItems:"center",display:"flex"}},d.a.createElement("div",{style:{textAlign:"left",flex:"1"}},"\u521B\u5EFA\u6218\u961F"),d.a.createElement(l.a,{onClick:function(){return o(!1)},style:{cursor:"porint"}})),visible:u,closable:!1,destroyOnClose:!0,onOk:function(){if(!r){v.b.info("\u6218\u961F\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}h(r)},onCancel:function(){return o(!1)}},d.a.createElement("div",null,d.a.createElement("span",{style:{fontSize:"14px",color:"#F73737"}},"*"),"\u961F\u540D\uFF1A",d.a.createElement("p",{style:{marginTop:"15px",marginLeft:"15px"}},d.a.createElement(P.a,{placeholder:"\u8BF7\u8F93\u5165\u961F\u540D",value:r,maxLength:60,addonAfter:String(r&&r.length||0)+"/60",onChange:function(w){return a(w.target.value)}}))))}Y.a=n},qM6L:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.enc,v=p.Utf16=p.Utf16BE={stringify:function(b){for(var d=b.words,l=b.sigBytes,n=[],c=0;c>>2]>>>16-c%4*8&65535;n.push(String.fromCharCode(u))}return n.join("")},parse:function(b){for(var d=b.length,l=[],n=0;n>>1]|=b.charCodeAt(n)<<16-n%2*16;return P.create(l,d*2)}};p.Utf16LE={stringify:function(b){for(var d=b.words,l=b.sigBytes,n=[],c=0;c>>2]>>>16-c%4*8&65535);n.push(String.fromCharCode(u))}return n.join("")},parse:function(b){for(var d=b.length,l=[],n=0;n>>1]|=S(b.charCodeAt(n)<<16-n%2*16);return P.create(l,d*2)}};function S(b){return b<<8&4278255360|b>>>8&16711935}}(),L.enc.Utf16})},qu8F:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){/** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com - */return L.mode.CTRGladman=function(){var g=L.lib.BlockCipherMode.extend();function T(v){if((v>>24&255)===255){var _=v>>16&255,b=v>>8&255,d=v&255;_===255?(_=0,b===255?(b=0,d===255?d=0:++d):++b):++_,v=0,v+=_<<16,v+=b<<8,v+=d}else v+=1<<24;return v}function P(v){return(v[0]=T(v[0]))===0&&(v[1]=T(v[1])),v}var p=g.Encryptor=g.extend({processBlock:function(v,_){var b=this._cipher,d=b.blockSize,l=this._iv,n=this._counter;l&&(n=this._counter=l.slice(0),this._iv=void 0),P(n);var c=n.slice(0);b.encryptBlock(c,0);for(var u=0;u=T.length?{done:!0}:{done:!1,value:T[v++]}},e:function(c){throw c},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,d=!1,l;return{s:function(){p=T[Symbol.iterator]()},n:function(){var c=p.next();return b=c.done,c},e:function(c){d=!0,l=c},f:function(){try{!b&&p.return!=null&&p.return()}finally{if(d)throw l}}}}},rUJ1:function(j,Y){const D=/[&<>"']/,L=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,P={"&":"&","<":"<",">":">",'"':""","'":"'"},p=O=>P[O];function v(O,C){if(C){if(D.test(O))return O.replace(L,p)}else if(g.test(O))return O.replace(T,p);return O}const _=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function b(O){return O.replace(_,(C,x)=>(x=x.toLowerCase(),x==="colon"?":":x.charAt(0)==="#"?x.charAt(1)==="x"?String.fromCharCode(parseInt(x.substring(2),16)):String.fromCharCode(+x.substring(1)):""))}const d=/(^|[^\[])\^/g;function l(O,C){O=O.source||O,C=C||"";const x={replace:(y,S)=>(S=S.source||S,S=S.replace(d,"$1"),O=O.replace(y,S),x),getRegex:()=>new RegExp(O,C)};return x}const n=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function u(O,C,x){if(O){let y;try{y=decodeURIComponent(b(x)).replace(n,"").toLowerCase()}catch(S){return null}if(y.indexOf("javascript:")===0||y.indexOf("vbscript:")===0||y.indexOf("data:")===0)return null}C&&!c.test(x)&&(x=r(C,x));try{x=encodeURI(x).replace(/%25/g,"%")}catch(y){return null}return x}const o={},h=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(O,C){o[" "+O]||(h.test(O)?o[" "+O]=O+"/":o[" "+O]=E(O,"/",!0)),O=o[" "+O];const x=O.indexOf(":")===-1;return C.substring(0,2)==="//"?x?C:O.replace(m,"$1")+C:C.charAt(0)==="/"?x?C:O.replace(s,"$1")+C:O+C}const a={exec:function(){}};function t(O){let C=1,x,y;for(;C{let G=!1,H=I;for(;--H>=0&&N[H]==="\\";)G=!G;return G?"|":" |"}),y=x.split(/ \|/);let S=0;if(y.length>C)y.splice(C);else for(;y.length1)Object(l.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(t.length===0)return Object(l.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=t[0];if(v.isValidElement(w)&&Object(n.c)(w)){var E=w.ref;t[0]=v.cloneElement(w,{ref:Object(n.a)(E,this.setChildNode)})}return t.length===1?t[0]:t.map(function(f,k){return!v.isValidElement(f)||"key"in f&&f.key!==null?f:v.cloneElement(f,{key:"".concat(u,"-").concat(k)})})}}]),s}(v.Component);o.displayName="ResizeObserver",Y.a=o},uGsb:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"),D("1uat"))})(this,function(L){return function(){var g=L,T=g.x64,P=T.Word,p=T.WordArray,v=g.algo,_=v.SHA512,b=v.SHA384=_.extend({_doReset:function(){this._hash=new p.init([new P.init(3418070365,3238371032),new P.init(1654270250,914150663),new P.init(2438529370,812702999),new P.init(355462360,4144912697),new P.init(1731405415,4290775857),new P.init(2394180231,1750603025),new P.init(3675008525,1694076839),new P.init(1203062813,3204075428)])},_doFinalize:function(){var d=_._doFinalize.call(this);return d.sigBytes-=16,d}});g.SHA384=_._createHelper(b),g.HmacSHA384=_._createHmacHelper(b)}(),L.SHA384})},uGxW:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.pad.NoPadding={pad:function(){},unpad:function(){}},L.pad.NoPadding})},uK0f:function(j,Y,D){(function(L,g){j.exports=g()})(this,function(){"use strict";function L(g,T,P){P=P||{},P.childrenKeyName=P.childrenKeyName||"children";var p=g||[],v=[],_=0;do{var b=p.filter(function(d){return T(d,_)})[0];if(!b)break;v.push(b),p=b[P.childrenKeyName]||[],_+=1}while(p.length>0);return v}return L})},ulZh:function(j,Y,D){typeof window!="undefined"&&function(g,T){j.exports=T()}(this,function(){return function(L){var g={};function T(P){if(g[P])return g[P].exports;var p=g[P]={i:P,l:!1,exports:{}};return L[P].call(p.exports,p,p.exports,T),p.l=!0,p.exports}return T.m=L,T.c=g,T.d=function(P,p,v){T.o(P,p)||Object.defineProperty(P,p,{enumerable:!0,get:v})},T.r=function(P){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})},T.t=function(P,p){if(p&1&&(P=T(P)),p&8)return P;if(p&4&&typeof P=="object"&&P&&P.__esModule)return P;var v=Object.create(null);if(T.r(v),Object.defineProperty(v,"default",{enumerable:!0,value:P}),p&2&&typeof P!="string")for(var _ in P)T.d(v,_,function(b){return P[b]}.bind(null,_));return v},T.n=function(P){var p=P&&P.__esModule?function(){return P.default}:function(){return P};return T.d(p,"a",p),p},T.o=function(P,p){return Object.prototype.hasOwnProperty.call(P,p)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(L,g,T){"use strict";var P=Object.prototype.hasOwnProperty,p="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(p=!1));function _(n,c,u){this.fn=n,this.context=c,this.once=u||!1}function b(n,c,u,o,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new _(u,o||n,h),s=p?p+c:c;return n._events[s]?n._events[s].fn?n._events[s]=[n._events[s],m]:n._events[s].push(m):(n._events[s]=m,n._eventsCount++),n}function d(n,c){--n._eventsCount===0?n._events=new v:delete n._events[c]}function l(){this._events=new v,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],u,o;if(this._eventsCount===0)return c;for(o in u=this._events)P.call(u,o)&&c.push(p?o.slice(1):o);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var u=p?p+c:c,o=this._events[u];if(!o)return[];if(o.fn)return[o.fn];for(var h=0,m=o.length,s=new Array(m);h0},!1)}function n(c,u){for(var o={main:[u]},h={main:[]},m={main:{}};l(o);)for(var s=Object.keys(o),r=0;r=2*k/C||N<=H)return;var B=Number.POSITIVE_INFINITY,K;for(K=s.level-1;K>y;K--){var U=x[K].maxBitrate;if(B=k*U/(8*.8*I),B=N)return;var W=this.bwEstimator.getEstimate();l.logger.warn("Fragment "+s.sn+(r?" part "+r.index:"")+" of level "+s.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+K+` + */return L.mode.CTRGladman=function(){var g=L.lib.BlockCipherMode.extend();function T(v){if((v>>24&255)===255){var S=v>>16&255,b=v>>8&255,d=v&255;S===255?(S=0,b===255?(b=0,d===255?d=0:++d):++b):++S,v=0,v+=S<<16,v+=b<<8,v+=d}else v+=1<<24;return v}function P(v){return(v[0]=T(v[0]))===0&&(v[1]=T(v[1])),v}var p=g.Encryptor=g.extend({processBlock:function(v,S){var b=this._cipher,d=b.blockSize,l=this._iv,n=this._counter;l&&(n=this._counter=l.slice(0),this._iv=void 0),P(n);var c=n.slice(0);b.encryptBlock(c,0);for(var u=0;u=T.length?{done:!0}:{done:!1,value:T[v++]}},e:function(c){throw c},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,d=!1,l;return{s:function(){p=T[Symbol.iterator]()},n:function(){var c=p.next();return b=c.done,c},e:function(c){d=!0,l=c},f:function(){try{!b&&p.return!=null&&p.return()}finally{if(d)throw l}}}}},rUJ1:function(j,Y){const D=/[&<>"']/,L=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,P={"&":"&","<":"<",">":">",'"':""","'":"'"},p=O=>P[O];function v(O,C){if(C){if(D.test(O))return O.replace(L,p)}else if(g.test(O))return O.replace(T,p);return O}const S=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function b(O){return O.replace(S,(C,x)=>(x=x.toLowerCase(),x==="colon"?":":x.charAt(0)==="#"?x.charAt(1)==="x"?String.fromCharCode(parseInt(x.substring(2),16)):String.fromCharCode(+x.substring(1)):""))}const d=/(^|[^\[])\^/g;function l(O,C){O=O.source||O,C=C||"";const x={replace:(y,_)=>(_=_.source||_,_=_.replace(d,"$1"),O=O.replace(y,_),x),getRegex:()=>new RegExp(O,C)};return x}const n=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function u(O,C,x){if(O){let y;try{y=decodeURIComponent(b(x)).replace(n,"").toLowerCase()}catch(_){return null}if(y.indexOf("javascript:")===0||y.indexOf("vbscript:")===0||y.indexOf("data:")===0)return null}C&&!c.test(x)&&(x=r(C,x));try{x=encodeURI(x).replace(/%25/g,"%")}catch(y){return null}return x}const o={},h=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(O,C){o[" "+O]||(h.test(O)?o[" "+O]=O+"/":o[" "+O]=E(O,"/",!0)),O=o[" "+O];const x=O.indexOf(":")===-1;return C.substring(0,2)==="//"?x?C:O.replace(m,"$1")+C:C.charAt(0)==="/"?x?C:O.replace(s,"$1")+C:O+C}const a={exec:function(){}};function t(O){let C=1,x,y;for(;C{let G=!1,H=I;for(;--H>=0&&N[H]==="\\";)G=!G;return G?"|":" |"}),y=x.split(/ \|/);let _=0;if(y.length>C)y.splice(C);else for(;y.length1)Object(l.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(t.length===0)return Object(l.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=t[0];if(v.isValidElement(w)&&Object(n.c)(w)){var E=w.ref;t[0]=v.cloneElement(w,{ref:Object(n.a)(E,this.setChildNode)})}return t.length===1?t[0]:t.map(function(f,k){return!v.isValidElement(f)||"key"in f&&f.key!==null?f:v.cloneElement(f,{key:"".concat(u,"-").concat(k)})})}}]),s}(v.Component);o.displayName="ResizeObserver",Y.a=o},uGsb:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("MlIO"),D("1uat"))})(this,function(L){return function(){var g=L,T=g.x64,P=T.Word,p=T.WordArray,v=g.algo,S=v.SHA512,b=v.SHA384=S.extend({_doReset:function(){this._hash=new p.init([new P.init(3418070365,3238371032),new P.init(1654270250,914150663),new P.init(2438529370,812702999),new P.init(355462360,4144912697),new P.init(1731405415,4290775857),new P.init(2394180231,1750603025),new P.init(3675008525,1694076839),new P.init(1203062813,3204075428)])},_doFinalize:function(){var d=S._doFinalize.call(this);return d.sigBytes-=16,d}});g.SHA384=S._createHelper(b),g.HmacSHA384=S._createHmacHelper(b)}(),L.SHA384})},uGxW:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("OLod"))})(this,function(L){return L.pad.NoPadding={pad:function(){},unpad:function(){}},L.pad.NoPadding})},uK0f:function(j,Y,D){(function(L,g){j.exports=g()})(this,function(){"use strict";function L(g,T,P){P=P||{},P.childrenKeyName=P.childrenKeyName||"children";var p=g||[],v=[],S=0;do{var b=p.filter(function(d){return T(d,S)})[0];if(!b)break;v.push(b),p=b[P.childrenKeyName]||[],S+=1}while(p.length>0);return v}return L})},ulZh:function(j,Y,D){typeof window!="undefined"&&function(g,T){j.exports=T()}(this,function(){return function(L){var g={};function T(P){if(g[P])return g[P].exports;var p=g[P]={i:P,l:!1,exports:{}};return L[P].call(p.exports,p,p.exports,T),p.l=!0,p.exports}return T.m=L,T.c=g,T.d=function(P,p,v){T.o(P,p)||Object.defineProperty(P,p,{enumerable:!0,get:v})},T.r=function(P){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})},T.t=function(P,p){if(p&1&&(P=T(P)),p&8)return P;if(p&4&&typeof P=="object"&&P&&P.__esModule)return P;var v=Object.create(null);if(T.r(v),Object.defineProperty(v,"default",{enumerable:!0,value:P}),p&2&&typeof P!="string")for(var S in P)T.d(v,S,function(b){return P[b]}.bind(null,S));return v},T.n=function(P){var p=P&&P.__esModule?function(){return P.default}:function(){return P};return T.d(p,"a",p),p},T.o=function(P,p){return Object.prototype.hasOwnProperty.call(P,p)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(L,g,T){"use strict";var P=Object.prototype.hasOwnProperty,p="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(p=!1));function S(n,c,u){this.fn=n,this.context=c,this.once=u||!1}function b(n,c,u,o,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new S(u,o||n,h),s=p?p+c:c;return n._events[s]?n._events[s].fn?n._events[s]=[n._events[s],m]:n._events[s].push(m):(n._events[s]=m,n._eventsCount++),n}function d(n,c){--n._eventsCount===0?n._events=new v:delete n._events[c]}function l(){this._events=new v,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],u,o;if(this._eventsCount===0)return c;for(o in u=this._events)P.call(u,o)&&c.push(p?o.slice(1):o);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var u=p?p+c:c,o=this._events[u];if(!o)return[];if(o.fn)return[o.fn];for(var h=0,m=o.length,s=new Array(m);h0},!1)}function n(c,u){for(var o={main:[u]},h={main:[]},m={main:{}};l(o);)for(var s=Object.keys(o),r=0;r=2*k/C||N<=H)return;var B=Number.POSITIVE_INFINITY,K;for(K=s.level-1;K>y;K--){var U=x[K].maxBitrate;if(B=k*U/(8*.8*I),B=N)return;var W=this.bwEstimator.getEstimate();l.logger.warn("Fragment "+s.sn+(r?" part "+r.index:"")+" of level "+s.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+K+` Current BW estimate: `+(Object(P.isFiniteNumber)(W)?(W/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+N.toFixed(3)+` s Estimated load time for the next fragment: `+B.toFixed(3)+` s - Time to underbuffer: `+H.toFixed(3)+" s"),a.nextLoadLevel=K,this.bwEstimator.sample(O,f.loaded),this.clearTimer(),s.loader&&(this.fragCurrent=this.partCurrent=null,s.loader.abort()),a.trigger(v.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:r,stats:f})},h.onFragLoaded=function(s,r){var a=r.frag,t=r.part;if(a.type===d.PlaylistLevelType.MAIN&&Object(P.isFiniteNumber)(a.sn)){var w=t?t.stats:a.stats,E=t?t.duration:a.duration;if(this.clearTimer(),this.lastLoadedFragLevel=a.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var f=this.hls.levels[a.level],k=(f.loaded?f.loaded.bytes:0)+w.loaded,O=(f.loaded?f.loaded.duration:0)+E;f.loaded={bytes:k,duration:O},f.realBitrate=Math.round(8*k/O)}if(a.bitrateTest){var C={stats:w,frag:a,part:t,id:a.type};this.onFragBuffered(v.Events.FRAG_BUFFERED,C),a.bitrateTest=!1}}},h.onFragBuffered=function(s,r){var a=r.frag,t=r.part,w=t?t.stats:a.stats;if(w.aborted)return;if(a.type!==d.PlaylistLevelType.MAIN||a.sn==="initSegment")return;var E=w.parsing.end-w.loading.start;this.bwEstimator.sample(E,w.loaded),w.bwEstimate=this.bwEstimator.getEstimate(),a.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},h.onError=function(s,r){switch(r.details){case b.ErrorDetails.FRAG_LOAD_ERROR:case b.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},h.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},h.getNextABRAutoLevel=function(){var s=this.fragCurrent,r=this.partCurrent,a=this.hls,t=a.maxAutoLevel,w=a.config,E=a.minAutoLevel,f=a.media,k=r?r.duration:s?s.duration:0,O=f?f.currentTime:0,C=f&&f.playbackRate!==0?Math.abs(f.playbackRate):1,x=this.bwEstimator?this.bwEstimator.getEstimate():w.abrEwmaDefaultEstimate,y=(_.BufferHelper.bufferInfo(f,O,w.maxBufferHole).end-O)/C,S=this.findBestLevel(x,E,t,y,w.abrBandWidthFactor,w.abrBandWidthUpFactor);if(S>=0)return S;l.logger.trace((y?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var M=k?Math.min(k,w.maxStarvationDelay):w.maxStarvationDelay,I=w.abrBandWidthFactor,N=w.abrBandWidthUpFactor;if(!y){var G=this.bitrateTestDelay;if(G){var H=k?Math.min(k,w.maxLoadingDelay):w.maxLoadingDelay;M=H-G,l.logger.trace("bitrate test took "+Math.round(1e3*G)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*M)+" ms"),I=N=1}}return S=this.findBestLevel(x,E,t,y+M,I,N),Math.max(S,0)},h.findBestLevel=function(s,r,a,t,w,E){for(var f,k=this.fragCurrent,O=this.partCurrent,C=this.lastLoadedFragLevel,x=this.hls.levels,y=x[C],S=!!(y!=null&&(f=y.details)!==null&&f!==void 0&&f.live),M=y==null?void 0:y.codecSet,I=O?O.duration:k?k.duration:0,N=a;N>=r;N--){var G=x[N];if(!G||M&&G.codecSet!==M)continue;var H=G.details,B=(O?H==null?void 0:H.partTarget:H==null?void 0:H.averagetargetduration)||I,K=void 0;N<=C?K=w*s:K=E*s;var U=x[N].maxBitrate,W=U*B/K;if(l.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(K)+"/"+U+"/"+B+"/"+t+"/"+W),K>U&&(!W||S&&!this.bitrateTestDelay||W0&&y===-1?(this.log("Override startPosition with lastCurrentTime @"+S.toFixed(3)),this.state=p.State.IDLE):(this.loadedmetadata=!1,this.state=p.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=y,this.tick()},C.doTick=function(){switch(this.state){case p.State.IDLE:this.doTickIdle();break;case p.State.WAITING_TRACK:{var y,S=this.levels,M=this.trackId,I=S==null||((y=S[M])===null||y===void 0)?void 0:y.details;if(I){if(this.waitForCdnTuneIn(I))break;this.state=p.State.WAITING_INIT_PTS}break}case p.State.FRAG_LOADING_WAITING_RETRY:{var N,G=performance.now(),H=this.retryDate;(!H||G>=H||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=p.State.IDLE);break}case p.State.WAITING_INIT_PTS:{var B=this.waitingData;if(B){var K=B.frag,U=B.part,W=B.cache,X=B.complete;if(this.initPTS[K.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=p.State.FRAG_LOADING;var ne=W.flush(),fe={frag:K,part:U,payload:ne,networkDetails:null};this._handleFragmentLoadProgress(fe),X&&k.prototype._handleFragmentLoadComplete.call(this,fe)}else if(this.videoTrackCC!==this.waitingVideoCC)r.logger.log("Waiting fragment cc ("+K.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var me=this.getLoadPosition(),Ae=_.BufferHelper.bufferInfo(this.mediaBuffer,me,this.config.maxBufferHole),De=Object(h.fragmentWithinToleranceTest)(Ae.end,this.config.maxFragLookUpTolerance,K);De<0&&(r.logger.log("Waiting fragment cc ("+K.cc+") @ "+K.start+" cancelled because another fragment at "+Ae.end+" is needed"),this.clearWaitingFragment())}}else this.state=p.State.IDLE}}this.onTickEnd()},C.clearWaitingFragment=function(){var y=this.waitingData;y&&(this.fragmentTracker.removeFragment(y.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=p.State.IDLE)},C.onTickEnd=function(){var y=this.media;if(!y||!y.readyState)return;var S=this.mediaBuffer?this.mediaBuffer:y,M=S.buffered;!this.loadedmetadata&&M.length&&(this.loadedmetadata=!0),this.lastCurrentTime=y.currentTime},C.doTickIdle=function(){var y,S,M=this.hls,I=this.levels,N=this.media,G=this.trackId,H=M.config;if(!I||!I[G])return;if(!N&&(this.startFragRequested||!H.startFragPrefetch))return;var B=I[G],K=B.details;if(!K||K.live&&this.levelLastLoaded!==G||this.waitForCdnTuneIn(K)){this.state=p.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,l.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,l.PlaylistLevelType.AUDIO);if(U===null)return;var W=U.len,X=this.getMaxBufferLength(),ne=this.audioSwitch;if(W>=X&&!ne)return;if(!ne&&this._streamEnded(U,K)){M.trigger(v.Events.BUFFER_EOS,{type:"audio"}),this.state=p.State.ENDED;return}var fe=K.fragments,me=fe[0].start,Ae=U.end;if(ne){var De=this.getLoadPosition();Ae=De,K.PTSKnown&&Deme||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),N.currentTime=me+.05))}var ye=this.getNextFragment(Ae,K);if(!ye){this.bufferFlushed=!0;return}((y=ye.decryptdata)===null||y===void 0?void 0:y.keyFormat)==="identity"&&!((S=ye.decryptdata)!==null&&S!==void 0&&S.key)?this.loadKey(ye,K):this.loadFragment(ye,K,Ae)},C.getMaxBufferLength=function(){var y=k.prototype.getMaxBufferLength.call(this),S=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,l.PlaylistLevelType.MAIN);return S===null?y:Math.max(y,S.len)},C.onMediaDetaching=function(){this.videoBuffer=null,k.prototype.onMediaDetaching.call(this)},C.onAudioTracksUpdated=function(y,S){var M=S.audioTracks;this.resetTransmuxer(),this.levels=M.map(function(I){return new d.Level(I)})},C.onAudioTrackSwitching=function(y,S){var M=!!S.url;this.trackId=S.id;var I=this.fragCurrent;I!=null&&I.loader&&I.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),M?this.setInterval(E):this.resetTransmuxer(),M?(this.audioSwitch=!0,this.state=p.State.IDLE):this.state=p.State.STOPPED,this.tick()},C.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},C.onLevelLoaded=function(y,S){this.mainDetails=S.details},C.onAudioTrackLoaded=function(y,S){var M,I=this.levels,N=S.details,G=S.id;if(!I){this.warn("Audio tracks were reset while loading level "+G);return}this.log("Track "+G+" loaded ["+N.startSN+","+N.endSN+"],duration:"+N.totalduration);var H=I[G],B=0;if(N.live||(M=H.details)!==null&&M!==void 0&&M.live){var K=this.mainDetails;if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed||!K)return;!H.details&&N.hasProgramDateTime&&K.hasProgramDateTime?(Object(m.alignMediaPlaylistByPDT)(N,K),B=N.fragments[0].start):B=this.alignPlaylists(N,H.details)}H.details=N,this.levelLastLoaded=G,!this.startFragRequested&&(this.mainDetails||!N.live)&&this.setStartPosition(H.details,B),this.state===p.State.WAITING_TRACK&&!this.waitForCdnTuneIn(N)&&(this.state=p.State.IDLE),this.tick()},C._handleFragmentLoadProgress=function(y){var S,M=y.frag,I=y.part,N=y.payload,G=this.config,H=this.trackId,B=this.levels;if(!B){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+M.sn+" of level "+M.level+" will not be buffered");return}var K=B[H];console.assert(K,"Audio track is defined on fragment load progress");var U=K.details;console.assert(U,"Audio track details are defined on fragment load progress");var W=G.defaultAudioCodec||K.audioCodec||"mp4a.40.2",X=this.transmuxer;X||(X=this.transmuxer=new u.default(this.hls,l.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ne=this.initPTS[M.cc],fe=(S=M.initSegment)===null||S===void 0?void 0:S.data;if(ne!==void 0){var me=!1,Ae=I?I.index:-1,De=Ae!==-1,ye=new o.ChunkMetadata(M.level,M.sn,M.stats.chunkCount,N.byteLength,Ae,De);X.push(N,fe,W,"",M,I,U.totalduration,me,ye,ne)}else{r.logger.log("Unknown video PTS for cc "+M.cc+", waiting for video PTS before demuxing audio frag "+M.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+H);var Oe=this.waitingData=this.waitingData||{frag:M,part:I,cache:new c.default,complete:!1},xe=Oe.cache;xe.push(new Uint8Array(N)),this.waitingVideoCC=this.videoTrackCC,this.state=p.State.WAITING_INIT_PTS}},C._handleFragmentLoadComplete=function(y){if(this.waitingData){this.waitingData.complete=!0;return}k.prototype._handleFragmentLoadComplete.call(this,y)},C.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},C.onBufferCreated=function(y,S){var M=S.tracks.audio;M&&(this.mediaBuffer=M.buffer),S.tracks.video&&(this.videoBuffer=S.tracks.video.buffer)},C.onFragBuffered=function(y,S){var M=S.frag,I=S.part;if(M.type!==l.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(M)){this.warn("Fragment "+M.sn+(I?" p: "+I.index:"")+" of level "+M.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}M.sn!=="initSegment"&&(this.fragPrevious=M,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(v.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(M,I)},C.onError=function(y,S){switch(S.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.AUDIO,S);break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==p.State.ERROR&&this.state!==p.State.STOPPED&&(this.state=S.fatal?p.State.ERROR:p.State.IDLE,this.warn(S.details+" while loading frag, switching to "+this.state+" state"));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if(S.parent==="audio"&&(this.state===p.State.PARSING||this.state===p.State.PARSED)){var M=!0,I=this.getFwdBufferInfo(this.mediaBuffer,l.PlaylistLevelType.AUDIO);I&&I.len>.5&&(M=!this.reduceMaxBufferLength(I.len)),M&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,k.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},C.onBufferFlushed=function(y,S){var M=S.type;M===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},C._handleTransmuxComplete=function(y){var S,M="audio",I=this.hls,N=y.remuxResult,G=y.chunkMeta,H=this.getCurrentContext(G);if(!H){this.warn("The loading context changed while buffering fragment "+G.sn+" of level "+G.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(G.level);return}var B=H.frag,K=H.part,U=N.audio,W=N.text,X=N.id3,ne=N.initSegment;if(this.fragContextChanged(B))return;if(this.state=p.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),ne!=null&&ne.tracks&&(this._bufferInitSegment(ne.tracks,B,G),I.trigger(v.Events.FRAG_PARSING_INIT_SEGMENT,{frag:B,id:M,tracks:ne.tracks})),U){var fe=U.startPTS,me=U.endPTS,Ae=U.startDTS,De=U.endDTS;K&&(K.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:fe,endPTS:me,startDTS:Ae,endDTS:De}),B.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,fe,me,Ae,De),this.bufferFragmentData(U,B,K,G)}if(X!=null&&(S=X.samples)!==null&&S!==void 0&&S.length){var ye=a({frag:B,id:M},X);I.trigger(v.Events.FRAG_PARSING_METADATA,ye)}if(W){var Oe=a({frag:B,id:M},W);I.trigger(v.Events.FRAG_PARSING_USERDATA,Oe)}},C._bufferInitSegment=function(y,S,M){if(this.state!==p.State.PARSING)return;y.video&&delete y.video;var I=y.audio;if(!I)return;I.levelCodec=I.codec,I.id="audio",this.log("Init audio buffer, container:"+I.container+", codecs[parsed]=["+I.codec+"]"),this.hls.trigger(v.Events.BUFFER_CODECS,y);var N=I.initSegment;if(N!=null&&N.byteLength){var G={type:"audio",frag:S,part:null,chunkMeta:M,parent:S.type,data:N};this.hls.trigger(v.Events.BUFFER_APPENDING,G)}this.tick()},C.loadFragment=function(y,S,M){var I=this.fragmentTracker.getState(y);this.fragCurrent=y,(this.audioSwitch||I===b.FragmentState.NOT_LOADED||I===b.FragmentState.PARTIAL)&&(y.sn==="initSegment"?this._loadInitSegment(y):S.live&&!Object(P.isFiniteNumber)(this.initPTS[y.cc])?(this.log("Waiting for video PTS in continuity counter "+y.cc+" of live stream before loading audio fragment "+y.sn+" of level "+this.trackId),this.state=p.State.WAITING_INIT_PTS):(this.startFragRequested=!0,k.prototype.loadFragment.call(this,y,S,M)))},C.completeAudioSwitch=function(){var y=this.hls,S=this.media,M=this.trackId;S&&(this.log("Switching audio track : flushing all audio"),k.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,y.trigger(v.Events.AUDIO_TRACK_SWITCHED,{id:M})},O}(p.default);g.default=f},"./src/controller/audio-track-controller.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/events.ts"),p=T("./src/errors.ts"),v=T("./src/controller/base-playlist-controller.ts"),_=T("./src/types/loader.ts");function b(u,o){for(var h=0;h=r.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var a=r[this.trackId];this.log("Now switching to audio-track index "+s);var t=r[s],w=t.id,E=t.groupId,f=E===void 0?"":E,k=t.name,O=t.type,C=t.url;if(this.trackId=s,this.trackName=k,this.selectDefaultTrack=!1,this.hls.trigger(P.Events.AUDIO_TRACK_SWITCHING,{id:w,groupId:f,name:k,type:O,url:C}),t.details&&!t.details.live)return;var x=this.switchParams(t.url,a==null?void 0:a.details);this.loadPlaylist(x)},h.selectInitialTrack=function(){var s=this.tracksInGroup;console.assert(s.length,"Initial audio track should be selected when tracks are known");var r=this.trackName,a=this.findTrackId(r)||this.findTrackId();a!==-1?this.setAudioTrack(a):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},h.findTrackId=function(s){for(var r=this.tracksInGroup,a=0;ao.partTarget&&(t+=1)}if(Object(P.isFiniteNumber)(a))return new p.HlsUrlParameters(a,Object(P.isFiniteNumber)(t)?t:void 0,p.HlsSkip.No)}}},n.loadPlaylist=function(u){},n.shouldLoadTrack=function(u){return this.canLoad&&u&&!!u.url&&(!u.details||u.details.live)},n.playlistLoaded=function(u,o,h){var m=this,s=o.details,r=o.stats,a=r.loading.end?Math.max(0,self.performance.now()-r.loading.end):0;if(s.advancedDateTime=Date.now()-a,s.live||h!=null&&h.live){if(s.reloaded(h),h&&this.log("live playlist "+u+" "+(s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:"MISSED")),h&&s.fragments.length>0&&Object(v.mergeDetails)(h,s),!this.canLoad||!s.live)return;var t,w=void 0,E=void 0;if(s.canBlockReload&&s.endSN&&s.advanced){var f=this.hls.config.lowLatencyMode,k=s.lastPartSn,O=s.endSN,C=s.lastPartIndex,x=C!==-1,y=k===O,S=f?0:C;x?(w=y?O+1:k,E=y?S:C+1):w=O+1;var M=s.age,I=M+s.ageHeader,N=Math.min(I-s.partTarget,s.targetduration*1.5);if(N>0){if(h&&N>h.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+h.tuneInGoal+" to: "+N+" with playlist age: "+s.age),N=0;else{var G=Math.floor(N/s.targetduration);if(w+=G,E!==void 0){var H=Math.round(N%s.targetduration/s.partTarget);E+=H}this.log("CDN Tune-in age: "+s.ageHeader+"s last advanced "+M.toFixed(2)+"s goal: "+N+" skip sn "+G+" to part "+E)}s.tuneInGoal=N}if(t=this.getDeliveryDirectives(s,o.deliveryDirectives,w,E),f||!y){this.loadPlaylist(t);return}}else t=this.getDeliveryDirectives(s,o.deliveryDirectives,w,E);var B=Object(v.computeReloadInterval)(s,r);w!==void 0&&s.canBlockReload&&(B-=s.partTarget||1),this.log("reload live playlist "+u+" in "+Math.round(B)+" ms"),this.timer=self.setTimeout(function(){return m.loadPlaylist(t)},B)}else this.clearTimer()},n.getDeliveryDirectives=function(u,o,h,m){var s=Object(p.getSkipValue)(u,h);return o!=null&&o.skip&&u.deltaUpdateFailed&&(h=o.msn,m=o.part,s=p.HlsSkip.No),new p.HlsUrlParameters(h,m,s)},n.retryLoadingOrFail=function(u){var o=this,h=this.hls.config,m=this.retryCount-1&&(s=u.context)!==null&&s!==void 0&&s.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+u.details+'"'),this.loadPlaylist();else{var r=Math.min(Math.pow(2,this.retryCount)*h.levelLoadingRetryDelay,h.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return o.loadPlaylist()},r),this.warn("retry playlist loading #"+this.retryCount+" in "+r+' ms after "'+u.details+'"')}}else this.warn('cannot recover from error "'+u.details+'"'),this.clearTimer(),u.fatal=!0;return m},l}()},"./src/controller/base-stream-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"State",function(){return O}),T.d(g,"default",function(){return C});var P=T("./src/polyfills/number.ts"),p=T("./src/task-loop.ts"),v=T("./src/controller/fragment-tracker.ts"),_=T("./src/utils/buffer-helper.ts"),b=T("./src/utils/logger.ts"),d=T("./src/events.ts"),l=T("./src/errors.ts"),n=T("./src/types/transmuxer.ts"),c=T("./src/utils/mp4-tools.ts"),u=T("./src/utils/discontinuities.ts"),o=T("./src/controller/fragment-finders.ts"),h=T("./src/controller/level-helper.ts"),m=T("./src/loader/fragment-loader.ts"),s=T("./src/crypt/decrypter.ts"),r=T("./src/utils/time-ranges.ts"),a=T("./src/types/loader.ts");function t(x,y){for(var S=0;Sne;(K0&&K&&K.key&&K.iv&&K.method==="AES-128"){var U=self.performance.now();return N.decrypter.webCryptoDecrypt(new Uint8Array(B),K.key.buffer,K.iv.buffer).then(function(W){var X=self.performance.now();return H.trigger(d.Events.FRAG_DECRYPTED,{frag:I,payload:W,stats:{tstart:U,tdecrypt:X}}),G.payload=W,G})}return G}).then(function(G){var H=N.fragCurrent,B=N.hls,K=N.levels;if(!K)throw new Error("init load aborted, missing levels");var U=K[I.level].details;console.assert(U,"Level details are defined when init segment is loaded");var W=I.stats;N.state=O.IDLE,N.fragLoadError=0,I.data=new Uint8Array(G.payload),W.parsing.start=W.buffering.start=self.performance.now(),W.parsing.end=W.buffering.end=self.performance.now(),G.frag===H&&B.trigger(d.Events.FRAG_BUFFERED,{stats:W,frag:H,part:null,id:I.type}),N.tick()}).catch(function(G){N.warn(G),N.resetFragmentLoading(I)})},S.fragContextChanged=function(I){var N=this.fragCurrent;return!I||!N||I.level!==N.level||I.sn!==N.sn||I.urlId!==N.urlId},S.fragBufferedComplete=function(I,N){var G=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+I.type+" sn: "+I.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+I.level+" "+r.default.toString(_.BufferHelper.getBuffered(G))),this.state=O.IDLE,this.tick()},S._handleFragmentLoadComplete=function(I){var N=this.transmuxer;if(!N)return;var G=I.frag,H=I.part,B=I.partsLoaded,K=!B||B.length===0||B.some(function(W){return!W}),U=new n.ChunkMetadata(G.level,G.sn,G.stats.chunkCount+1,0,H?H.index:-1,!K);N.flush(U)},S._handleFragmentLoadProgress=function(I){},S._doFragLoad=function(I,N,G,H){var B=this;if(G===void 0&&(G=null),!this.levels)throw new Error("frag load aborted, missing levels");if(G=Math.max(I.start,G||0),this.config.lowLatencyMode&&N){var K=N.partList;if(K&&H){G>I.end&&N.fragmentHint&&(I=N.fragmentHint);var U=this.getNextPart(K,I,G);if(U>-1){var W=K[U];return this.log("Loading part sn: "+I.sn+" p: "+W.index+" cc: "+I.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+U+"-"+(K.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(G.toFixed(3))),this.nextLoadPosition=W.start+W.duration,this.state=O.FRAG_LOADING,this.hls.trigger(d.Events.FRAG_LOADING,{frag:I,part:K[U],targetBufferTime:G}),this.doFragPartsLoad(I,K,U,H).catch(function(X){return B.handleFragLoadError(X)})}else if(!I.url||this.loadedEndOfParts(K,G))return Promise.resolve(null)}}return this.log("Loading fragment "+I.sn+" cc: "+I.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(G.toFixed(3))),Object(P.isFiniteNumber)(I.sn)&&!this.bitrateTest&&(this.nextLoadPosition=I.start+I.duration),this.state=O.FRAG_LOADING,this.hls.trigger(d.Events.FRAG_LOADING,{frag:I,targetBufferTime:G}),this.fragmentLoader.load(I,H).catch(function(X){return B.handleFragLoadError(X)})},S.doFragPartsLoad=function(I,N,G,H){var B=this;return new Promise(function(K,U){var W=[],X=function ne(fe){var me=N[fe];B.fragmentLoader.loadPart(I,me,H).then(function(Ae){W[me.index]=Ae;var De=Ae.part;B.hls.trigger(d.Events.FRAG_LOADED,Ae);var ye=N[fe+1];if(ye&&ye.fragment===I)ne(fe+1);else return K({frag:I,part:De,partsLoaded:W})}).catch(U)};X(G)})},S.handleFragLoadError=function(I){var N=I.data;return N&&N.details===l.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(d.Events.ERROR,N),null},S._handleTransmuxerFlush=function(I){var N=this.getCurrentContext(I);if(!N||this.state!==O.PARSING){this.fragCurrent||(this.state=O.IDLE);return}var G=N.frag,H=N.part,B=N.level,K=self.performance.now();G.stats.parsing.end=K,H&&(H.stats.parsing.end=K),this.updateLevelTiming(G,H,B,I.partial)},S.getCurrentContext=function(I){var N=this.levels,G=I.level,H=I.sn,B=I.part;if(!N||!N[G])return this.warn("Levels object was unset while buffering fragment "+H+" of level "+G+". The current chunk will not be buffered."),null;var K=N[G],U=B>-1?Object(h.getPartWith)(K,H,B):null,W=U?U.fragment:Object(h.getFragmentWithSN)(K,H,this.fragCurrent);return W?{frag:W,part:U,level:K}:null},S.bufferFragmentData=function(I,N,G,H){if(!I||this.state!==O.PARSING)return;var B=I.data1,K=I.data2,U=B;if(B&&K&&(U=Object(c.appendUint8Array)(B,K)),!U||!U.length)return;var W={type:I.type,frag:N,part:G,chunkMeta:H,parent:N.type,data:U};this.hls.trigger(d.Events.BUFFER_APPENDING,W),I.dropped&&I.independent&&!G&&this.flushBufferGap(N)},S.flushBufferGap=function(I){var N=this.media;if(!N)return;if(!_.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,I.start);return}var G=N.currentTime,H=_.BufferHelper.bufferInfo(N,G,0),B=I.duration,K=Math.min(this.config.maxFragLookUpTolerance*2,B*.25),U=Math.max(Math.min(I.start-K,H.end-K),G+K);I.start-U>K&&this.flushMainBuffer(U,I.start)},S.getFwdBufferInfo=function(I,N){var G=this.config,H=this.getLoadPosition();if(!Object(P.isFiniteNumber)(H))return null;var B=_.BufferHelper.bufferInfo(I,H,G.maxBufferHole);if(B.len===0&&B.nextStart!==void 0){var K=this.fragmentTracker.getBufferedFrag(H,N);if(K&&B.nextStart=G?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},S.getNextFragment=function(I,N){var G,H,B=N.fragments,K=B.length;if(!K)return null;var U=this.config,W=B[0].start,X;if(N.live){var ne=U.initialLiveManifestSize;if(K-1&&GG.start&&G.loaded},S.getInitialLiveFragment=function(I,N){var G=this.fragPrevious,H=null;if(G){if(I.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+G.programDateTime),H=Object(o.findFragmentByPDT)(N,G.endProgramDateTime,this.config.maxFragLookUpTolerance)),!H){var B=G.sn+1;if(B>=I.startSN&&B<=I.endSN){var K=N[B-I.startSN];G.cc===K.cc&&(H=K,this.log("Live playlist, switching playlist, load frag with next SN: "+H.sn))}H||(H=Object(o.findFragWithCC)(N,G.cc),H&&this.log("Live playlist, switching playlist, load frag with same CC: "+H.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(H=this.getFragmentAtPosition(U,this.bitrateTest?I.fragmentEnd:I.edge,I))}return H},S.getFragmentAtPosition=function(I,N,G){var H=this.config,B=this.fragPrevious,K=G.fragments,U=G.endSN,W=G.fragmentHint,X=H.maxFragLookUpTolerance,ne=!!(H.lowLatencyMode&&G.partList&&W);ne&&W&&!this.bitrateTest&&(K=K.concat(W),U=W.sn);var fe;if(IN-X?0:X;fe=Object(o.findFragmentByPTS)(B,K,I,me)}else fe=K[K.length-1];if(fe){var Ae=fe.sn-G.startSN,De=B&&fe.level===B.level,ye=K[Ae+1],Oe=this.fragmentTracker.getState(fe);if(Oe===v.FragmentState.BACKTRACKED){fe=null;for(var xe=Ae;K[xe]&&this.fragmentTracker.getState(K[xe])===v.FragmentState.BACKTRACKED;)B?fe=K[xe--]:fe=K[--xe];fe||(fe=ye)}else B&&fe.sn===B.sn&&!ne&&(De&&(fe.sn=K-N.maxFragLookUpTolerance&&B<=U;if(H!==null&&G.duration>H&&(B"+I.startSN+" prev-sn: "+(B?B.sn:"na")+" fragments: "+U),fe}return W},S.waitForCdnTuneIn=function(I){var N=3;return I.live&&I.canBlockReload&&I.tuneInGoal>Math.max(I.partHoldBack,I.partTarget*N)},S.setStartPosition=function(I,N){var G=this.startPosition;if(G"+I))}}]),y}(p.default)},"./src/controller/buffer-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o});var P=T("./src/polyfills/number.ts"),p=T("./src/events.ts"),v=T("./src/utils/logger.ts"),_=T("./src/errors.ts"),b=T("./src/utils/buffer-helper.ts"),d=T("./src/utils/mediasource-helper.ts"),l=T("./src/loader/fragment.ts"),n=T("./src/controller/buffer-operation-queue.ts"),c=Object(d.getMediaSource)(),u=/([ha]vc.)(?:\.[^.,]+)+/,o=function(){function h(s){var r=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var a=r.hls,t=r.media,w=r.mediaSource;v.logger.log("[buffer-controller]: Media source opened"),t&&(r.updateMediaElementDuration(),a.trigger(p.Events.MEDIA_ATTACHED,{media:t})),w&&w.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},this._onMediaSourceClose=function(){v.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){v.logger.log("[buffer-controller]: Media source ended")},this.hls=s,this._initSourceBuffer(),this.registerListeners()}var m=h.prototype;return m.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},m.destroy=function(){this.unregisterListeners(),this.details=null},m.registerListeners=function(){var r=this.hls;r.on(p.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(p.Events.BUFFER_RESET,this.onBufferReset,this),r.on(p.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.on(p.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(p.Events.BUFFER_EOS,this.onBufferEos,this),r.on(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(p.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(p.Events.FRAG_PARSED,this.onFragParsed,this),r.on(p.Events.FRAG_CHANGED,this.onFragChanged,this)},m.unregisterListeners=function(){var r=this.hls;r.off(p.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(p.Events.BUFFER_RESET,this.onBufferReset,this),r.off(p.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.off(p.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(p.Events.BUFFER_EOS,this.onBufferEos,this),r.off(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(p.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(p.Events.FRAG_PARSED,this.onFragParsed,this),r.off(p.Events.FRAG_CHANGED,this.onFragChanged,this)},m._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},m.onManifestParsed=function(r,a){var t=2;(a.audio&&!a.video||!a.altAudio)&&(t=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t,this.details=null,v.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},m.onMediaAttaching=function(r,a){var t=this.media=a.media;if(t&&c){var w=this.mediaSource=new c;w.addEventListener("sourceopen",this._onMediaSourceOpen),w.addEventListener("sourceended",this._onMediaSourceEnded),w.addEventListener("sourceclose",this._onMediaSourceClose),t.src=self.URL.createObjectURL(w),this._objectUrl=t.src}},m.onMediaDetaching=function(){var r=this.media,a=this.mediaSource,t=this._objectUrl;if(a){if(v.logger.log("[buffer-controller]: media source detaching"),a.readyState==="open")try{a.endOfStream()}catch(w){v.logger.warn("[buffer-controller]: onMediaDetaching: "+w.message+" while calling endOfStream")}this.onBufferReset(),a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),r&&(t&&self.URL.revokeObjectURL(t),r.src===t?(r.removeAttribute("src"),r.load()):v.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(p.Events.MEDIA_DETACHED,void 0)},m.onBufferReset=function(){var r=this;this.getSourceBufferTypes().forEach(function(a){var t=r.sourceBuffer[a];try{t&&(r.removeBufferListeners(a),r.mediaSource&&r.mediaSource.removeSourceBuffer(t),r.sourceBuffer[a]=void 0)}catch(w){v.logger.warn("[buffer-controller]: Failed to reset the "+a+" buffer",w)}}),this._initSourceBuffer()},m.onBufferCodecs=function(r,a){var t=this,w=this.getSourceBufferTypes().length;if(Object.keys(a).forEach(function(E){if(w){var f=t.tracks[E];if(f&&typeof f.buffer.changeType=="function"){var k=a[E],O=k.codec,C=k.levelCodec,x=k.container,y=(f.levelCodec||f.codec).replace(u,"$1"),S=(C||O).replace(u,"$1");if(y!==S){var M=x+";codecs="+(C||O);t.appendChangeType(E,M)}}}else t.pendingTracks[E]=a[E]}),w)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},m.appendChangeType=function(r,a){var t=this,w=this.operationQueue,E={execute:function(){var k=t.sourceBuffer[r];k&&(v.logger.log("[buffer-controller]: changing "+r+" sourceBuffer type to "+a),k.changeType(a)),w.shiftAndExecuteNext(r)},onStart:function(){},onComplete:function(){},onError:function(k){v.logger.warn("[buffer-controller]: Failed to change "+r+" SourceBuffer type",k)}};w.append(E,r)},m.onBufferAppending=function(r,a){var t=this,w=this.hls,E=this.operationQueue,f=this.tracks,k=a.data,O=a.type,C=a.frag,x=a.part,y=a.chunkMeta,S=y.buffering[O],M=self.performance.now();S.start=M;var I=C.stats.buffering,N=x?x.stats.buffering:null;I.start===0&&(I.start=M),N&&N.start===0&&(N.start=M);var G=f.audio,H=O==="audio"&&y.id===1&&(G==null?void 0:G.container)==="audio/mpeg",B={execute:function(){if(S.executeStart=self.performance.now(),H){var U=t.sourceBuffer[O];if(U){var W=C.start-U.timestampOffset;Math.abs(W)>=.1&&(v.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+C.start+" (delta: "+W+") sn: "+C.sn+")"),U.timestampOffset=C.start)}}t.appendExecutor(k,O)},onStart:function(){},onComplete:function(){var U=self.performance.now();S.executeEnd=S.end=U,I.first===0&&(I.first=U),N&&N.first===0&&(N.first=U);var W=t.sourceBuffer,X={};for(var ne in W)X[ne]=b.BufferHelper.getBuffered(W[ne]);t.appendError=0,t.hls.trigger(p.Events.BUFFER_APPENDED,{type:O,frag:C,part:x,chunkMeta:y,parent:C.type,timeRanges:X})},onError:function(U){v.logger.error("[buffer-controller]: Error encountered while trying to append to the "+O+" SourceBuffer",U);var W={type:_.ErrorTypes.MEDIA_ERROR,parent:C.type,details:_.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?W.details=_.ErrorDetails.BUFFER_FULL_ERROR:(t.appendError++,W.details=_.ErrorDetails.BUFFER_APPEND_ERROR,t.appendError>w.config.appendErrorMaxRetry&&(v.logger.error("[buffer-controller]: Failed "+w.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),W.fatal=!0)),w.trigger(p.Events.ERROR,W)}};E.append(B,O)},m.onBufferFlushing=function(r,a){var t=this,w=this.operationQueue,E=function(k){return{execute:t.removeExecutor.bind(t,k,a.startOffset,a.endOffset),onStart:function(){},onComplete:function(){t.hls.trigger(p.Events.BUFFER_FLUSHED,{type:k})},onError:function(C){v.logger.warn("[buffer-controller]: Failed to remove from "+k+" SourceBuffer",C)}}};a.type?w.append(E(a.type),a.type):this.getSourceBufferTypes().forEach(function(f){w.append(E(f),f)})},m.onFragParsed=function(r,a){var t=this,w=a.frag,E=a.part,f=[],k=E?E.elementaryStreams:w.elementaryStreams;k[l.ElementaryStreamTypes.AUDIOVIDEO]?f.push("audiovideo"):(k[l.ElementaryStreamTypes.AUDIO]&&f.push("audio"),k[l.ElementaryStreamTypes.VIDEO]&&f.push("video"));var O=function(){var x=self.performance.now();w.stats.buffering.end=x,E&&(E.stats.buffering.end=x);var y=E?E.stats:w.stats;t.hls.trigger(p.Events.FRAG_BUFFERED,{frag:w,part:E,stats:y,id:w.type})};f.length===0&&v.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+w.type+" level: "+w.level+" sn: "+w.sn),this.blockBuffers(O,f)},m.onFragChanged=function(r,a){this.flushBackBuffer()},m.onBufferEos=function(r,a){var t=this,w=this.getSourceBufferTypes().reduce(function(E,f){var k=t.sourceBuffer[f];return(!a.type||a.type===f)&&(k&&!k.ended&&(k.ended=!0,v.logger.log("[buffer-controller]: "+f+" sourceBuffer now EOS"))),E&&!!(!k||k.ended)},!0);w&&this.blockBuffers(function(){var E=t.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},m.onLevelUpdated=function(r,a){var t=a.details;if(!t.fragments.length)return;this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},m.flushBackBuffer=function(){var r=this.hls,a=this.details,t=this.media,w=this.sourceBuffer;if(!t||a===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var f=a.live&&r.config.liveBackBufferLength!==null?r.config.liveBackBufferLength:r.config.backBufferLength;if(!Object(P.isFiniteNumber)(f)||f<0)return;var k=t.currentTime,O=a.levelTargetDuration,C=Math.max(f,O),x=Math.floor(k/O)*O-C;E.forEach(function(y){var S=w[y];if(S){var M=b.BufferHelper.getBuffered(S);M.length>0&&x>M.start(0)&&(r.trigger(p.Events.BACK_BUFFER_REACHED,{bufferEnd:x}),a.live&&r.trigger(p.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:x}),r.trigger(p.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:x,type:y}))}})},m.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var r=this.details,a=this.hls,t=this.media,w=this.mediaSource,E=r.fragments[0].start+r.totalduration,f=t.duration,k=Object(P.isFiniteNumber)(w.duration)?w.duration:0;r.live&&a.config.liveDurationInfinity?(v.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),w.duration=Infinity,this.updateSeekableRange(r)):(E>k&&E>f||!Object(P.isFiniteNumber)(f))&&(v.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),w.duration=E)},m.updateSeekableRange=function(r){var a=this.mediaSource,t=r.fragments,w=t.length;if(w&&r.live&&a!==null&&a!==void 0&&a.setLiveSeekableRange){var E=Math.max(0,t[0].start),f=Math.max(E,E+r.totalduration);a.setLiveSeekableRange(E,f)}},m.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,a=this.operationQueue,t=this.pendingTracks,w=Object.keys(t).length;if(w&&!r||w===2){this.createSourceBuffers(t),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(p.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(f){a.executeNext(f)})}},m.createSourceBuffers=function(r){var a=this.sourceBuffer,t=this.mediaSource;if(!t)throw Error("createSourceBuffers called when mediaSource was null");var w=0;for(var E in r)if(!a[E]){var f=r[E];if(!f)throw Error("source buffer exists for track "+E+", however track does not");var k=f.levelCodec||f.codec,O=f.container+";codecs="+k;v.logger.log("[buffer-controller]: creating sourceBuffer("+O+")");try{var C=a[E]=t.addSourceBuffer(O),x=E;this.addBufferListener(x,"updatestart",this._onSBUpdateStart),this.addBufferListener(x,"updateend",this._onSBUpdateEnd),this.addBufferListener(x,"error",this._onSBUpdateError),this.tracks[E]={buffer:C,codec:k,container:f.container,levelCodec:f.levelCodec,id:f.id},w++}catch(y){v.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+y.message),this.hls.trigger(p.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:y,mimeType:O})}}w&&this.hls.trigger(p.Events.BUFFER_CREATED,{tracks:this.tracks})},m._onSBUpdateStart=function(r){var a=this.operationQueue,t=a.current(r);t.onStart()},m._onSBUpdateEnd=function(r){var a=this.operationQueue,t=a.current(r);t.onComplete(),a.shiftAndExecuteNext(r)},m._onSBUpdateError=function(r,a){v.logger.error("[buffer-controller]: "+r+" SourceBuffer error",a),this.hls.trigger(p.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var t=this.operationQueue.current(r);t&&t.onError(a)},m.removeExecutor=function(r,a,t){var w=this.media,E=this.mediaSource,f=this.operationQueue,k=this.sourceBuffer,O=k[r];if(!w||!E||!O){v.logger.warn("[buffer-controller]: Attempting to remove from the "+r+" SourceBuffer, but it does not exist"),f.shiftAndExecuteNext(r);return}var C=Object(P.isFiniteNumber)(w.duration)?w.duration:Infinity,x=Object(P.isFiniteNumber)(E.duration)?E.duration:Infinity,y=Math.max(0,a),S=Math.min(t,C,x);S>y?(v.logger.log("[buffer-controller]: Removing ["+y+","+S+"] from the "+r+" SourceBuffer"),console.assert(!O.updating,r+" sourceBuffer must not be updating"),O.remove(y,S)):f.shiftAndExecuteNext(r)},m.appendExecutor=function(r,a){var t=this.operationQueue,w=this.sourceBuffer,E=w[a];if(!E){v.logger.warn("[buffer-controller]: Attempting to append to the "+a+" SourceBuffer, but it does not exist"),t.shiftAndExecuteNext(a);return}E.ended=!1,console.assert(!E.updating,a+" sourceBuffer must not be updating"),E.appendBuffer(r)},m.blockBuffers=function(r,a){var t=this;if(a===void 0&&(a=this.getSourceBufferTypes()),!a.length){v.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(r);return}var w=this.operationQueue,E=a.map(function(f){return w.appendBlocker(f)});Promise.all(E).then(function(){r(),a.forEach(function(f){var k=t.sourceBuffer[f];(!k||!k.updating)&&w.shiftAndExecuteNext(f)})})},m.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},m.addBufferListener=function(r,a,t){var w=this.sourceBuffer[r];if(!w)return;var E=t.bind(this,r);this.listeners[r].push({event:a,listener:E}),w.addEventListener(a,E)},m.removeBufferListeners=function(r){var a=this.sourceBuffer[r];if(!a)return;this.listeners[r].forEach(function(t){a.removeEventListener(t.event,t.listener)})},h}()},"./src/controller/buffer-operation-queue.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return p});var P=T("./src/utils/logger.ts"),p=function(){function v(b){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=b}var _=v.prototype;return _.append=function(d,l){var n=this.queues[l];n.push(d),n.length===1&&this.buffers[l]&&this.executeNext(l)},_.insertAbort=function(d,l){var n=this.queues[l];n.unshift(d),this.executeNext(l)},_.appendBlocker=function(d){var l,n=new Promise(function(u){l=u}),c={execute:l,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(c,d),n},_.executeNext=function(d){var l=this.buffers,n=this.queues,c=l[d],u=n[d];if(u.length){var o=u[0];try{o.execute()}catch(h){P.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),o.onError(h),(!c||!c.updating)&&(u.shift(),this.executeNext(d))}}},_.shiftAndExecuteNext=function(d){this.queues[d].shift(),this.executeNext(d)},_.current=function(d){return this.queues[d][0]},v}()},"./src/controller/cap-level-controller.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/events.ts");function p(b,d){for(var l=0;l0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var c=this.hls;c.autoLevelCapping=this.getMaxLevel(n.length-1),c.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=c.autoLevelCapping}}},d.getMaxLevel=function(n){var c=this,u=this.hls.levels;if(!u.length)return-1;var o=u.filter(function(h,m){return b.isLevelAllowed(m,c.restrictedLevels)&&m<=n});return this.clientRect=null,b.getMaxLevelByMediaSize(o,this.mediaWidth,this.mediaHeight)},d.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},d.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},d.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,c={width:0,height:0};if(n){var u=n.getBoundingClientRect();c.width=u.width,c.height=u.height,!c.width&&!c.height&&(c.width=u.right-u.left||n.width||0,c.height=u.bottom-u.top||n.height||0)}return this.clientRect=c,c},b.isLevelAllowed=function(n,c){return c===void 0&&(c=[]),c.indexOf(n)===-1},b.getMaxLevelByMediaSize=function(n,c,u){if(!n||!n.length)return-1;for(var o=function(a,t){return t?a.width!==t.width||a.height!==t.height:!0},h=n.length-1,m=0;m=c||s.height>=u)&&o(s,n[m+1])){h=m;break}}return h},v(b,[{key:"mediaWidth",get:function(){return this.getDimensions().width*b.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*b.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(c){}return n}}]),b}();g.default=_},"./src/controller/cmcd-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o});var P=T("./src/events.ts"),p=T("./src/types/cmcd.ts"),v=T("./src/utils/buffer-helper.ts"),_=T("./src/utils/logger.ts");function b(h,m){for(var s=0;s=h.length?{done:!0}:{done:!1,value:h[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(h,m){if(!h)return;if(typeof h=="string")return c(h,m);var s=Object.prototype.toString.call(h).slice(8,-1);if(s==="Object"&&h.constructor&&(s=h.constructor.name),s==="Map"||s==="Set")return Array.from(h);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return c(h,m)}function c(h,m){(m==null||m>h.length)&&(m=h.length);for(var s=0,r=new Array(m);sa&&(a=f.bitrate)}return a>0?a:NaN},m.getBufferLength=function(r){var a=this.hls.media,t=r===p.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!t||!a)return NaN;var w=v.BufferHelper.bufferInfo(t,a.currentTime,this.config.maxBufferHole);return w.len*1e3},m.createPlaylistLoader=function(){var r=this.config.pLoader,a=this.applyPlaylistData,t=r||this.config.loader;return function(){function w(f){this.loader=void 0,this.loader=new t(f)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(k,O,C){a(k),this.loader.load(k,O,C)},d(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},m.createFragmentLoader=function(){var r=this.config.fLoader,a=this.applyFragmentData,t=r||this.config.loader;return function(){function w(f){this.loader=void 0,this.loader=new t(f)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(k,O,C){a(k),this.loader.load(k,O,C)},d(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},h.uuid=function(){var r=URL.createObjectURL(new Blob),a=r.toString();return URL.revokeObjectURL(r),a.substr(a.lastIndexOf("/")+1)},h.serialize=function(r){for(var a=[],t=function(H){return!Number.isNaN(H)&&H!=null&&H!==""&&H!==!1},w=function(H){return Math.round(H)},E=function(H){return w(H/100)*100},f=function(H){return encodeURIComponent(H)},k={br:w,d:w,bl:E,dl:E,mtp:E,nor:f,rtp:E,tb:w},O=Object.keys(r||{}).sort(),C=l(O),x;!(x=C()).done;){var y=x.value,S=r[y];if(!t(S))continue;if(y==="v"&&S===1)continue;if(y=="pr"&&S===1)continue;var M=k[y];M&&(S=M(S));var I=typeof S,N=void 0;y==="ot"||y==="sf"||y==="st"?N=y+"="+S:I==="boolean"?N=y:I==="number"?N=y+"="+S:N=y+"="+JSON.stringify(S),a.push(N)}return a.join(",")},h.toHeaders=function(r){for(var a=Object.keys(r),t={},w=["Object","Request","Session","Status"],E=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},k=0,O=a;kl){this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.KEY_SYSTEM_ERROR,details:p.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var f=l-this._requestLicenseFailureCount+1;v.logger.warn("Retrying license request, "+f+" attempts left"),this._requestLicense(a,t)}break}},h._generateLicenseRequestChallenge=function(s,r){switch(s.mediaKeySystemDomain){case _.KeySystems.WIDEVINE:return r}throw new Error("unsupported key-system: "+s.mediaKeySystemDomain)},h._requestLicense=function(s,r){v.logger.log("Requesting content license for key-system");var a=this._mediaKeysList[0];if(!a){v.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.KEY_SYSTEM_ERROR,details:p.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var t=this.getLicenseServerUrl(a.mediaKeySystemDomain),w=this._createLicenseXhr(t,s,r);v.logger.log("Sending license request to URL: "+t);var E=this._generateLicenseRequestChallenge(a,s);w.send(E)}catch(f){v.logger.error("Failure requesting DRM license: "+f),this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.KEY_SYSTEM_ERROR,details:p.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},h.onMediaAttached=function(s,r){if(!this._emeEnabled)return;var a=r.media;this._media=a,a.addEventListener("encrypted",this._onMediaEncrypted)},h.onMediaDetached=function(){var s=this._media,r=this._mediaKeysList;if(!s)return;s.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(r.map(function(a){if(a.mediaKeysSession)return a.mediaKeysSession.close().catch(function(){})})).then(function(){return s.setMediaKeys(null)}).catch(function(){})},h.onManifestParsed=function(s,r){if(!this._emeEnabled)return;var a=r.levels.map(function(w){return w.audioCodec}).filter(function(w){return!!w}),t=r.levels.map(function(w){return w.videoCodec}).filter(function(w){return!!w});this._attemptKeySystemAccess(_.KeySystems.WIDEVINE,a,t)},d(o,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),o}();g.default=u},"./src/controller/fps-controller.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/events.ts"),p=T("./src/utils/logger.ts"),v=function(){function _(d){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=d,this.registerListeners()}var b=_.prototype;return b.setStreamController=function(l){this.streamController=l},b.registerListeners=function(){this.hls.on(P.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},b.unregisterListeners=function(){this.hls.off(P.Events.MEDIA_ATTACHING,this.onMediaAttaching)},b.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},b.onMediaAttaching=function(l,n){var c=this.hls.config;if(c.capLevelOnFPSDrop){var u=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=u,u&&typeof u.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),c.fpsDroppedMonitoringPeriod)}},b.checkFPS=function(l,n,c){var u=performance.now();if(n){if(this.lastTime){var o=u-this.lastTime,h=c-this.lastDroppedFrames,m=n-this.lastDecodedFrames,s=1e3*h/o,r=this.hls;if(r.trigger(P.Events.FPS_DROP,{currentDropped:h,currentDecoded:m,totalDroppedFrames:c}),s>0&&h>r.config.fpsDroppedMonitoringThreshold*m){var a=r.currentLevel;p.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+a),a>0&&(r.autoLevelCapping===-1||r.autoLevelCapping>=a)&&(a=a-1,r.trigger(P.Events.FPS_DROP_LEVEL_CAPPING,{level:a,droppedLevel:r.currentLevel}),r.autoLevelCapping=a,this.streamController.nextLevelSwitch())}}this.lastTime=u,this.lastDroppedFrames=c,this.lastDecodedFrames=n}},b.checkFPSInterval=function(){var l=this.media;if(l)if(this.isVideoPlaybackQualityAvailable){var n=l.getVideoPlaybackQuality();this.checkFPS(l,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(l,l.webkitDecodedFrameCount,l.webkitDroppedFrameCount)},_}();g.default=v},"./src/controller/fragment-finders.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"findFragmentByPDT",function(){return v}),T.d(g,"findFragmentByPTS",function(){return _}),T.d(g,"fragmentWithinToleranceTest",function(){return b}),T.d(g,"pdtWithinToleranceTest",function(){return d}),T.d(g,"findFragWithCC",function(){return l});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/binary-search.ts");function v(n,c,u){if(c===null||!Array.isArray(n)||!n.length||!Object(P.isFiniteNumber)(c))return null;var o=n[0].programDateTime;if(c<(o||0))return null;var h=n[n.length-1].endProgramDateTime;if(c>=(h||0))return null;u=u||0;for(var m=0;mn&&u.start?-1:0}function d(n,c,u){var o=Math.min(c,u.duration+(u.deltaPTS?u.deltaPTS:0))*1e3,h=u.endProgramDateTime||0;return h-o>n}function l(n,c){return p.default.search(n,function(u){return u.ccc?-1:0})}},"./src/controller/fragment-tracker.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"FragmentState",function(){return v}),T.d(g,"FragmentTracker",function(){return _});var P=T("./src/events.ts"),p=T("./src/types/loader.ts"),v;(function(l){l.NOT_LOADED="NOT_LOADED",l.BACKTRACKED="BACKTRACKED",l.APPENDING="APPENDING",l.PARTIAL="PARTIAL",l.OK="OK"})(v||(v={}));var _=function(){function l(c){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=c,this._registerListeners()}var n=l.prototype;return n._registerListeners=function(){var u=this.hls;u.on(P.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.on(P.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(P.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var u=this.hls;u.off(P.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.off(P.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(P.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(u,o){if(o===p.PlaylistLevelType.MAIN){var h=this.activeFragment,m=this.activeParts;if(!h)return null;if(m)for(var s=m.length;s--;){var r=m[s],a=r?r.end:h.appendedPTS;if(r.start<=u&&a!==void 0&&u<=a)return s>9&&(this.activeParts=m.slice(s-9)),r}else if(h.start<=u&&h.appendedPTS!==void 0&&u<=h.appendedPTS)return h}return this.getBufferedFrag(u,o)},n.getBufferedFrag=function(u,o){for(var h=this.fragments,m=Object.keys(h),s=m.length;s--;){var r=h[m[s]];if((r==null?void 0:r.body.type)===o&&r.buffered){var a=r.body;if(a.start<=u&&u<=a.end)return a}}return null},n.detectEvictedFragments=function(u,o,h){var m=this;Object.keys(this.fragments).forEach(function(s){var r=m.fragments[s];if(!r)return;if(!r.buffered){r.body.type===h&&m.removeFragment(r.body);return}var a=r.range[u];if(!a)return;a.time.some(function(t){var w=!m.isTimeBuffered(t.startPTS,t.endPTS,o);return w&&m.removeFragment(r.body),w})})},n.detectPartialFragments=function(u){var o=this,h=this.timeRanges,m=u.frag,s=u.part;if(!h||m.sn==="initSegment")return;var r=d(m),a=this.fragments[r];if(!a)return;Object.keys(h).forEach(function(t){var w=m.elementaryStreams[t];if(!w)return;var E=h[t],f=s!==null||w.partial===!0;a.range[t]=o.getBufferedTimes(m,s,f,E)}),a.backtrack=a.loaded=null,Object.keys(a.range).length?a.buffered=!0:this.removeFragment(a.body)},n.fragBuffered=function(u){var o=d(u),h=this.fragments[o];h&&(h.backtrack=h.loaded=null,h.buffered=!0)},n.getBufferedTimes=function(u,o,h,m){for(var s={time:[],partial:h},r=o?o.start:u.start,a=o?o.end:u.end,t=u.minEndPTS||a,w=u.maxStartPTS||r,E=0;E=f&&t<=k){s.time.push({startPTS:Math.max(r,m.start(E)),endPTS:Math.min(a,m.end(E))});break}else if(rf)s.partial=!0,s.time.push({startPTS:Math.max(r,m.start(E)),endPTS:Math.min(a,m.end(E))});else if(a<=f)break}return s},n.getPartialFragment=function(u){var o=null,h,m,s,r=0,a=this.bufferPadding,t=this.fragments;return Object.keys(t).forEach(function(w){var E=t[w];if(!E)return;b(E)&&(m=E.body.start-a,s=E.body.end+a,u>=m&&u<=s&&(h=Math.min(u-m,s-u),r<=h&&(o=E.body,r=h)))}),o},n.getState=function(u){var o=d(u),h=this.fragments[o];return h?h.buffered?b(h)?v.PARTIAL:v.OK:h.backtrack?v.BACKTRACKED:v.APPENDING:v.NOT_LOADED},n.backtrack=function(u,o){var h=d(u),m=this.fragments[h];if(!m||m.backtrack)return null;var s=m.backtrack=o||m.loaded;return m.loaded=null,s},n.getBacktrackData=function(u){var o=d(u),h=this.fragments[o];if(h){var m,s=h.backtrack;if(s!=null&&(m=s.payload)!==null&&m!==void 0&&m.byteLength)return s;this.removeFragment(u)}return null},n.isTimeBuffered=function(u,o,h){for(var m,s,r=0;r=m&&o<=s)return!0;if(o<=m)return!1}return!1},n.onFragLoaded=function(u,o){var h=o.frag,m=o.part;if(h.sn==="initSegment"||h.bitrateTest||m)return;var s=d(h);this.fragments[s]={body:h,loaded:o,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(u,o){var h=this,m=o.frag,s=o.part,r=o.timeRanges;if(m.type===p.PlaylistLevelType.MAIN)if(this.activeFragment=m,s){var a=this.activeParts;a||(this.activeParts=a=[]),a.push(s)}else this.activeParts=null;this.timeRanges=r,Object.keys(r).forEach(function(t){var w=r[t];if(h.detectEvictedFragments(t,w),!s)for(var E=0;Eu&&m.removeFragment(a)}})},n.removeFragment=function(u){var o=d(u);u.stats.loaded=0,u.clearElementaryStreamInfo(),delete this.fragments[o]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},l}();function b(l){var n,c;return l.buffered&&(((n=l.range.video)===null||n===void 0?void 0:n.partial)||((c=l.range.audio)===null||c===void 0?void 0:c.partial))}function d(l){return l.type+"_"+l.level+"_"+l.urlId+"_"+l.sn}},"./src/controller/gap-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"STALL_MINIMUM_DURATION_MS",function(){return b}),T.d(g,"MAX_START_GAP_JUMP",function(){return d}),T.d(g,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return l}),T.d(g,"SKIP_BUFFER_RANGE_START",function(){return n}),T.d(g,"default",function(){return c});var P=T("./src/utils/buffer-helper.ts"),p=T("./src/errors.ts"),v=T("./src/events.ts"),_=T("./src/utils/logger.ts"),b=250,d=2,l=.1,n=.05,c=function(){function u(h,m,s,r){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=h,this.media=m,this.fragmentTracker=s,this.hls=r}var o=u.prototype;return o.destroy=function(){this.hls=this.fragmentTracker=this.media=null},o.poll=function(m){var s=this.config,r=this.media,a=this.stalled,t=r.currentTime,w=r.seeking,E=this.seeking&&!w,f=!this.seeking&&w;if(this.seeking=w,t!==m){if(this.moved=!0,a!==null){if(this.stallReported){var k=self.performance.now()-a;_.logger.warn("playback not stuck anymore @"+t+", after "+Math.round(k)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((f||E)&&(this.stalled=null),r.paused||r.ended||r.playbackRate===0||!P.BufferHelper.getBuffered(r).length)return;var O=P.BufferHelper.bufferInfo(r,t,0),C=O.len>0,x=O.nextStart||0;if(!C&&!x)return;if(w){var y=O.len>d,S=!x||x-t>d&&!this.fragmentTracker.getPartialFragment(t);if(y||S)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var M,I=Math.max(x,O.start||0)-t,N=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,G=N==null||((M=N.details)===null||M===void 0)?void 0:M.live,H=G?N.details.targetduration*2:d;if(I>0&&I<=H){this._trySkipBufferHole(null);return}}var B=self.performance.now();if(a===null){this.stalled=B;return}var K=B-a;!w&&K>=b&&this._reportStall(O.len);var U=P.BufferHelper.bufferInfo(r,t,s.maxBufferHole);this._tryFixBufferStall(U,K)},o._tryFixBufferStall=function(m,s){var r=this.config,a=this.fragmentTracker,t=this.media,w=t.currentTime,E=a.getPartialFragment(w);if(E){var f=this._trySkipBufferHole(E);if(f)return}m.len>r.maxBufferHole&&s>r.highBufferWatchdogPeriod*1e3&&(_.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},o._reportStall=function(m){var s=this.hls,r=this.media,a=this.stallReported;a||(this.stallReported=!0,_.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+m+")"),s.trigger(v.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:m}))},o._trySkipBufferHole=function(m){for(var s=this.config,r=this.hls,a=this.media,t=a.currentTime,w=0,E=P.BufferHelper.getBuffered(a),f=0;f=w&&t.05&&this.forwardBufferLength>1){var f=Math.min(2,Math.max(1,r)),k=Math.round(2/(1+Math.exp(-.75*t-this.edgeStalled))*20)/20;u.playbackRate=Math.min(f,Math.max(1,k))}else u.playbackRate!==1&&u.playbackRate!==0&&(u.playbackRate=1)},n.estimateLiveEdge=function(){var u=this.levelDetails;return u===null?null:u.edge+u.age},n.computeLatency=function(){var u=this.estimateLiveEdge();return u===null?null:u-this.currentTime},b(l,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var u=this.config,o=this.levelDetails;return u.liveMaxLatencyDuration!==void 0?u.liveMaxLatencyDuration:o?u.liveMaxLatencyDurationCount*o.targetduration:0}},{key:"targetLatency",get:function(){var u=this.levelDetails;if(u===null)return null;var o=u.holdBack,h=u.partHoldBack,m=u.targetduration,s=this.config,r=s.liveSyncDuration,a=s.liveSyncDurationCount,t=s.lowLatencyMode,w=this.hls.userConfig,E=t&&h||o;(w.liveSyncDuration||w.liveSyncDurationCount||E===0)&&(E=r!==void 0?r:a*m);var f=m,k=1;return E+Math.min(this.stallCount*k,f)}},{key:"liveSyncPosition",get:function(){var u=this.estimateLiveEdge(),o=this.targetLatency,h=this.levelDetails;if(u===null||o===null||h===null)return null;var m=h.edge,s=u-o-this.edgeStalled,r=m-h.totalduration,a=m-(this.config.lowLatencyMode&&h.partTarget||h.targetduration);return Math.min(Math.max(r,s),a)}},{key:"drift",get:function(){var u=this.levelDetails;return u===null?1:u.drift}},{key:"edgeStalled",get:function(){var u=this.levelDetails;if(u===null)return 0;var o=(this.config.lowLatencyMode&&u.partTarget||u.targetduration)*3;return Math.max(u.age-o,0)}},{key:"forwardBufferLength",get:function(){var u=this.media,o=this.levelDetails;if(!u||!o)return 0;var h=u.buffered.length;return h?u.buffered.end(h-1):o.edge-this.currentTime}}]),l}()},"./src/controller/level-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s});var P=T("./src/types/level.ts"),p=T("./src/events.ts"),v=T("./src/errors.ts"),_=T("./src/utils/codecs.ts"),b=T("./src/controller/level-helper.ts"),d=T("./src/controller/base-playlist-controller.ts"),l=T("./src/types/loader.ts");function n(){return n=Object.assign||function(r){for(var a=1;a0){x=k[0].bitrate,k.sort(function(K,U){return K.bitrate-U.bitrate}),this._levels=k;for(var G=0;Gthis.hls.config.fragLoadingMaxRetry&&(y=f.frag.level)):y=f.frag.level}break;case v.ErrorDetails.LEVEL_LOAD_ERROR:case v.ErrorDetails.LEVEL_LOAD_TIMEOUT:k&&(k.deliveryDirectives&&(x=!1),y=k.level),C=!0;break;case v.ErrorDetails.REMUX_ALLOC_ERROR:y=f.level,C=!0;break}y!==void 0&&this.recoverLevel(f,y,C,x)},t.recoverLevel=function(E,f,k,O){var C=E.details,x=this._levels[f];if(x.loadError++,k){var y=this.retryLoadingOrFail(E);if(y)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(O){var S=x.url.length;if(S>1&&x.loadError1){var O=(f.urlId+1)%k;this.warn("Switching to redundant URL-id "+O),this._levels.forEach(function(C){C.urlId=O}),this.level=E}},t.onFragLoaded=function(E,f){var k=f.frag;if(k!==void 0&&k.type===l.PlaylistLevelType.MAIN){var O=this._levels[k.level];O!==void 0&&(O.fragmentError=0,O.loadError=0)}},t.onLevelLoaded=function(E,f){var k,O=f.level,C=f.details,x=this._levels[O];if(!x){var y;this.warn("Invalid level index "+O),(y=f.deliveryDirectives)!==null&&y!==void 0&&y.skip&&(C.deltaUpdateFailed=!0);return}O===this.currentLevelIndex?(x.fragmentError===0&&(x.loadError=0,this.retryCount=0),this.playlistLoaded(O,f,x.details)):(k=f.deliveryDirectives)!==null&&k!==void 0&&k.skip&&(C.deltaUpdateFailed=!0)},t.onAudioTrackSwitched=function(E,f){var k=this.hls.levels[this.currentLevelIndex];if(!k)return;if(k.audioGroupIds){for(var O=-1,C=this.hls.audioTracks[f.id].groupId,x=0;x0){var O=k.urlId,C=k.url[O];if(E)try{C=E.addDirectives(C)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("Attempt loading level index "+f+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+O+" "+C),this.clearTimer(),this.hls.trigger(p.Events.LEVEL_LOADING,{url:C,level:f,id:O,deliveryDirectives:E||null})}},t.removeLevel=function(E,f){var k=function(x,y){return y!==f},O=this._levels.filter(function(C,x){return x!==E?!0:C.url.length>1&&f!==void 0?(C.url=C.url.filter(k),C.audioGroupIds&&(C.audioGroupIds=C.audioGroupIds.filter(k)),C.textGroupIds&&(C.textGroupIds=C.textGroupIds.filter(k)),C.urlId=0,!0):!1}).map(function(C,x){var y=C.details;return y!=null&&y.fragments&&y.fragments.forEach(function(S){S.level=x}),C});this._levels=O,this.hls.trigger(p.Events.LEVELS_UPDATED,{levels:O})},u(a,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var f,k=this._levels;if(k.length===0)return;if(this.currentLevelIndex===E&&(f=k[E])!==null&&f!==void 0&&f.details)return;if(E<0||E>=k.length){var O=E<0;if(this.hls.trigger(p.Events.ERROR,{type:v.ErrorTypes.OTHER_ERROR,details:v.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:O,reason:"invalid level idx"}),O)return;E=Math.min(E,k.length-1)}this.clearTimer();var C=this.currentLevelIndex,x=k[C],y=k[E];this.log("switching to level "+E+" from "+C),this.currentLevelIndex=E;var S=n({},y,{level:E,maxBitrate:y.maxBitrate,uri:y.uri,urlId:y.urlId});delete S._urlId,this.hls.trigger(p.Events.LEVEL_SWITCHING,S);var M=y.details;if(!M||M.live){var I=this.switchParams(y.uri,x==null?void 0:x.details);this.loadPlaylist(I)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),a}(d.default)},"./src/controller/level-helper.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"addGroupId",function(){return v}),T.d(g,"assignTrackIdsByGroup",function(){return _}),T.d(g,"updatePTS",function(){return b}),T.d(g,"updateFragPTSDTS",function(){return l}),T.d(g,"mergeDetails",function(){return n}),T.d(g,"mapPartIntersection",function(){return c}),T.d(g,"mapFragmentIntersection",function(){return u}),T.d(g,"adjustSliding",function(){return o}),T.d(g,"addSliding",function(){return h}),T.d(g,"computeReloadInterval",function(){return m}),T.d(g,"getFragmentWithSN",function(){return s}),T.d(g,"getPartWith",function(){return r});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/logger.ts");function v(a,t,w){switch(t){case"audio":a.audioGroupIds||(a.audioGroupIds=[]),a.audioGroupIds.push(w);break;case"text":a.textGroupIds||(a.textGroupIds=[]),a.textGroupIds.push(w);break}}function _(a){var t={};a.forEach(function(w){var E=w.groupId||"";w.id=t[E]=t[E]||0,t[E]++})}function b(a,t,w){var E=a[t],f=a[w];d(E,f)}function d(a,t){var w=t.startPTS;if(Object(P.isFiniteNumber)(w)){var E=0,f;t.sn>a.sn?(E=w-a.start,f=a):(E=a.start-w,f=t),f.duration!==E&&(f.duration=E)}else if(t.sn>a.sn){var k=a.cc===t.cc;k&&a.minEndPTS?t.start=a.start+(a.minEndPTS-a.start):t.start=a.start+a.duration}else t.start=Math.max(a.start-t.duration,0)}function l(a,t,w,E,f,k){var O=E-w;O<=0&&(p.logger.warn("Fragment should have a positive duration",t),E=w+t.duration,k=f+t.duration);var C=w,x=E,y=t.startPTS,S=t.endPTS;if(Object(P.isFiniteNumber)(y)){var M=Math.abs(y-w);Object(P.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(M,t.deltaPTS):t.deltaPTS=M,C=Math.max(w,y),w=Math.min(w,y),f=Math.min(f,t.startDTS),x=Math.min(E,S),E=Math.max(E,S),k=Math.max(k,t.endDTS)}t.duration=E-w;var I=w-t.start;t.appendedPTS=E,t.start=t.startPTS=w,t.maxStartPTS=C,t.startDTS=f,t.endPTS=E,t.minEndPTS=x,t.endDTS=k;var N=t.sn;if(!a||Na.endSN)return 0;var G,H=N-a.startSN,B=a.fragments;for(B[H]=t,G=H;G>0;G--)d(B[G],B[G-1]);for(G=H;G=0;f--){var k=E[f].initSegment;if(k){w=k;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;var O=0,C;if(u(a,t,function(G,H){G.relurl&&(O=G.cc-H.cc),Object(P.isFiniteNumber)(G.startPTS)&&Object(P.isFiniteNumber)(G.endPTS)&&(H.start=H.startPTS=G.startPTS,H.startDTS=G.startDTS,H.appendedPTS=G.appendedPTS,H.maxStartPTS=G.maxStartPTS,H.endPTS=G.endPTS,H.endDTS=G.endDTS,H.minEndPTS=G.minEndPTS,H.duration=G.endPTS-G.startPTS,H.duration&&(C=H),t.PTSKnown=t.alignedSliding=!0),H.elementaryStreams=G.elementaryStreams,H.loader=G.loader,H.stats=G.stats,H.urlId=G.urlId,G.initSegment&&(H.initSegment=G.initSegment,w=G.initSegment)}),w){var x=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;x.forEach(function(G){var H;(!G.initSegment||G.initSegment.relurl===((H=w)===null||H===void 0?void 0:H.relurl))&&(G.initSegment=w)})}if(t.skippedSegments&&(t.deltaUpdateFailed=t.fragments.some(function(G){return!G}),t.deltaUpdateFailed)){p.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var y=t.skippedSegments;y--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}var S=t.fragments;if(O){p.logger.warn("discontinuity sliding from playlist, take drift into account");for(var M=0;M=E.length)return;h(t,E[w].start)}function h(a,t){if(t){for(var w=a.fragments,E=a.skippedSegments;E0&&f0&&x===-1&&(this.log("Override startPosition with lastCurrentTime @"+y.toFixed(3)),x=y),this.state=p.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=x,this.tick()}else this._forceStartLoad=!0,this.state=p.State.STOPPED},O.stopLoad=function(){this._forceStartLoad=!1,f.prototype.stopLoad.call(this)},O.doTick=function(){switch(this.state){case p.State.IDLE:this.doTickIdle();break;case p.State.WAITING_LEVEL:{var x,y=this.levels,S=this.level,M=y==null||((x=y[S])===null||x===void 0)?void 0:x.details;if(M&&(!M.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(M))break;this.state=p.State.IDLE;break}break}case p.State.FRAG_LOADING_WAITING_RETRY:{var I,N=self.performance.now(),G=this.retryDate;(!G||N>=G||(I=this.media)!==null&&I!==void 0&&I.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=p.State.IDLE)}break;default:break}this.onTickEnd()},O.onTickEnd=function(){f.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},O.doTickIdle=function(){var x,y,S=this.hls,M=this.levelLastLoaded,I=this.levels,N=this.media,G=S.config,H=S.nextLoadLevel;if(M===null||!N&&(this.startFragRequested||!G.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!I||!I[H])return;var B=I[H];this.level=S.nextLoadLevel=H;var K=B.details;if(!K||this.state===p.State.WAITING_LEVEL||K.live&&this.levelLastLoaded!==H){this.state=p.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:N,l.PlaylistLevelType.MAIN);if(U===null)return;var W=U.len,X=this.getMaxBufferLength(B.maxBitrate);if(W>=X)return;if(this._streamEnded(U,K)){var ne={};this.altAudio&&(ne.type="video"),this.hls.trigger(_.Events.BUFFER_EOS,ne),this.state=p.State.ENDED;return}var fe=U.end,me=this.getNextFragment(fe,K);if(this.couldBacktrack&&!this.fragPrevious&&me&&me.sn!=="initSegment"){var Ae=me.sn-K.startSN;Ae>1&&(me=K.fragments[Ae-1],this.fragmentTracker.removeFragment(me))}if(me&&this.fragmentTracker.getState(me)===d.FragmentState.OK&&this.nextLoadPosition>fe){var De=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,De,l.PlaylistLevelType.MAIN),me=this.getNextFragment(this.nextLoadPosition,K)}if(!me)return;me.initSegment&&!me.initSegment.data&&!this.bitrateTest&&(me=me.initSegment),((x=me.decryptdata)===null||x===void 0?void 0:x.keyFormat)==="identity"&&!((y=me.decryptdata)!==null&&y!==void 0&&y.key)?this.loadKey(me,K):this.loadFragment(me,K,fe)},O.loadFragment=function(x,y,S){var M,I=this.fragmentTracker.getState(x);if(this.fragCurrent=x,I===d.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(x);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else I=d.FragmentState.NOT_LOADED}I===d.FragmentState.NOT_LOADED||I===d.FragmentState.PARTIAL?x.sn==="initSegment"?this._loadInitSegment(x):this.bitrateTest?(x.bitrateTest=!0,this.log("Fragment "+x.sn+" of level "+x.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(x)):(this.startFragRequested=!0,f.prototype.loadFragment.call(this,x,y,S)):I===d.FragmentState.APPENDING?this.reduceMaxBufferLength(x.duration)&&this.fragmentTracker.removeFragment(x):((M=this.media)===null||M===void 0?void 0:M.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},O.getAppendedFrag=function(x){var y=this.fragmentTracker.getAppendedFrag(x,l.PlaylistLevelType.MAIN);return y&&"fragment"in y?y.fragment:y},O.getBufferedFrag=function(x){return this.fragmentTracker.getBufferedFrag(x,l.PlaylistLevelType.MAIN)},O.followingBufferedFrag=function(x){return x?this.getBufferedFrag(x.end+.5):null},O.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},O.nextLevelSwitch=function(){var x=this.levels,y=this.media;if(y!=null&&y.readyState){var S,M=this.getAppendedFrag(y.currentTime);if(M&&M.start>1&&this.flushMainBuffer(0,M.start-1),!y.paused&&x){var I=this.hls.nextLoadLevel,N=x[I],G=this.fragLastKbps;G&&this.fragCurrent?S=this.fragCurrent.duration*N.maxBitrate/(1e3*G)+1:S=0}else S=0;var H=this.getBufferedFrag(y.currentTime+S);if(H){var B=this.followingBufferedFrag(H);if(B){this.abortCurrentFrag();var K=B.maxStartPTS?B.maxStartPTS:B.start,U=B.duration,W=Math.max(H.end,K+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(W,Number.POSITIVE_INFINITY)}}}},O.abortCurrentFrag=function(){var x=this.fragCurrent;this.fragCurrent=null,x!=null&&x.loader&&x.loader.abort(),this.state===p.State.KEY_LOADING&&(this.state=p.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},O.flushMainBuffer=function(x,y){f.prototype.flushMainBuffer.call(this,x,y,this.altAudio?"video":null)},O.onMediaAttached=function(x,y){f.prototype.onMediaAttached.call(this,x,y);var S=y.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),S.addEventListener("playing",this.onvplaying),S.addEventListener("seeked",this.onvseeked),this.gapController=new o.default(this.config,S,this.fragmentTracker,this.hls)},O.onMediaDetaching=function(){var x=this.media;x&&(x.removeEventListener("playing",this.onvplaying),x.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),f.prototype.onMediaDetaching.call(this)},O.onMediaPlaying=function(){this.tick()},O.onMediaSeeked=function(){var x=this.media,y=x?x.currentTime:null;Object(P.isFiniteNumber)(y)&&this.log("Media seeked to "+y.toFixed(3)),this.tick()},O.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(_.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},O.onManifestParsed=function(x,y){var S=!1,M=!1,I;y.levels.forEach(function(N){I=N.audioCodec,I&&(I.indexOf("mp4a.40.2")!==-1&&(S=!0),I.indexOf("mp4a.40.5")!==-1&&(M=!0))}),this.audioCodecSwitch=S&&M&&!Object(v.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=y.levels,this.startFragRequested=!1},O.onLevelLoading=function(x,y){var S=this.levels;if(!S||this.state!==p.State.IDLE)return;var M=S[y.level];(!M.details||M.details.live&&this.levelLastLoaded!==y.level||this.waitForCdnTuneIn(M.details))&&(this.state=p.State.WAITING_LEVEL)},O.onLevelLoaded=function(x,y){var S,M=this.levels,I=y.level,N=y.details,G=N.totalduration;if(!M){this.warn("Levels were reset while loading level "+I);return}this.log("Level "+I+" loaded ["+N.startSN+","+N.endSN+"], cc ["+N.startCC+", "+N.endCC+"] duration:"+G);var H=this.fragCurrent;H&&(this.state===p.State.FRAG_LOADING||this.state===p.State.FRAG_LOADING_WAITING_RETRY)&&(H.level!==y.level&&H.loader&&(this.state=p.State.IDLE,H.loader.abort()));var B=M[I],K=0;if(N.live||(S=B.details)!==null&&S!==void 0&&S.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;K=this.alignPlaylists(N,B.details)}if(B.details=N,this.levelLastLoaded=I,this.hls.trigger(_.Events.LEVEL_UPDATED,{details:N,level:I}),this.state===p.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=p.State.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,K),this.tick()},O._handleFragmentLoadProgress=function(x){var y,S=x.frag,M=x.part,I=x.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+S.sn+" of level "+S.level+" will not be buffered");return}var G=N[S.level],H=G.details;if(!H){this.warn("Dropping fragment "+S.sn+" of level "+S.level+" after level details were reset");return}var B=G.videoCodec,K=H.PTSKnown||!H.live,U=(y=S.initSegment)===null||y===void 0?void 0:y.data,W=this._getAudioCodec(G),X=this.transmuxer=this.transmuxer||new c.default(this.hls,l.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ne=M?M.index:-1,fe=ne!==-1,me=new u.ChunkMetadata(S.level,S.sn,S.stats.chunkCount,I.byteLength,ne,fe),Ae=this.initPTS[S.cc];X.push(I,U,W,B,S,M,H.totalduration,K,me,Ae)},O.onAudioTrackSwitching=function(x,y){var S=this.altAudio,M=!!y.url,I=y.id;if(!M){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var N=this.fragCurrent;N!=null&&N.loader&&(this.log("Switching to main audio track, cancel main fragment load"),N.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var G=this.hls;S&&G.trigger(_.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),G.trigger(_.Events.AUDIO_TRACK_SWITCHED,{id:I})}},O.onAudioTrackSwitched=function(x,y){var S=y.id,M=!!this.hls.audioTracks[S].url;if(M){var I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=M,this.tick()},O.onBufferCreated=function(x,y){var S=y.tracks,M,I,N=!1;for(var G in S){var H=S[G];if(H.id==="main"){if(I=G,M=H,G==="video"){var B=S[G];B&&(this.videoBuffer=B.buffer)}}else N=!0}N&&M?(this.log("Alternate track found, use "+I+".buffered to schedule main fragment loading"),this.mediaBuffer=M.buffer):this.mediaBuffer=this.media},O.onFragBuffered=function(x,y){var S=y.frag,M=y.part;if(S&&S.type!==l.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(S)){this.warn("Fragment "+S.sn+(M?" p: "+M.index:"")+" of level "+S.level+" finished buffering, but was aborted. state: "+this.state),this.state===p.State.PARSED&&(this.state=p.State.IDLE);return}var I=M?M.stats:S.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),S.sn!=="initSegment"&&(this.fragPrevious=S),this.fragBufferedComplete(S,M)},O.onError=function(x,y){switch(y.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.MAIN,y);break;case h.ErrorDetails.LEVEL_LOAD_ERROR:case h.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==p.State.ERROR&&(y.fatal?(this.warn(""+y.details),this.state=p.State.ERROR):!y.levelRetry&&this.state===p.State.WAITING_LEVEL&&(this.state=p.State.IDLE));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(y.parent==="main"&&(this.state===p.State.PARSING||this.state===p.State.PARSED)){var S=!0,M=this.getFwdBufferInfo(this.media,l.PlaylistLevelType.MAIN);M&&M.len>.5&&(S=!this.reduceMaxBufferLength(M.len)),S&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},O.checkBuffer=function(){var x=this.media,y=this.gapController;if(!x||!y||!x.readyState)return;var S=b.BufferHelper.getBuffered(x);!this.loadedmetadata&&S.length?(this.loadedmetadata=!0,this.seekToStartPos()):y.poll(this.lastCurrentTime),this.lastCurrentTime=x.currentTime},O.onFragLoadEmergencyAborted=function(){this.state=p.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},O.onBufferFlushed=function(x,y){var S=y.type;if(S!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var M=(S===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(M,S,l.PlaylistLevelType.MAIN)}},O.onLevelsUpdated=function(x,y){this.levels=y.levels},O.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},O.seekToStartPos=function(){var x=this.media,y=x.currentTime,S=this.startPosition;if(S>=0&&y0&&(N1&&x.seeking===!1){var S=x.currentTime;if(b.BufferHelper.isBuffered(x,S)?y=this.getAppendedFrag(S):b.BufferHelper.isBuffered(x,S+.1)&&(y=this.getAppendedFrag(S+.1)),y){var M=this.fragPlaying,I=y.level;(!M||y.sn!==M.sn||M.level!==I||y.urlId!==M.urlId)&&(this.hls.trigger(_.Events.FRAG_CHANGED,{frag:y}),(!M||M.level!==I)&&this.hls.trigger(_.Events.LEVEL_SWITCHED,{level:I}),this.fragPlaying=y)}}},r(k,[{key:"nextLevel",get:function(){var x=this.nextBufferedFrag;return x?x.level:-1}},{key:"currentLevel",get:function(){var x=this.media;if(x){var y=this.getAppendedFrag(x.currentTime);if(y)return y.level}return-1}},{key:"nextBufferedFrag",get:function(){var x=this.media;if(x){var y=this.getAppendedFrag(x.currentTime);return this.followingBufferedFrag(y)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),k}(p.default)},"./src/controller/subtitle-stream-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"SubtitleStreamController",function(){return a});var P=T("./src/events.ts"),p=T("./src/utils/logger.ts"),v=T("./src/utils/buffer-helper.ts"),_=T("./src/controller/fragment-finders.ts"),b=T("./src/utils/discontinuities.ts"),d=T("./src/controller/level-helper.ts"),l=T("./src/controller/fragment-tracker.ts"),n=T("./src/controller/base-stream-controller.ts"),c=T("./src/types/loader.ts"),u=T("./src/types/level.ts");function o(t,w){for(var E=0;E=y[I].start&&M<=y[I].end){S=y[I];break}var N=C.start+C.duration;S?S.end=N:(S={start:M,end:N},y.push(S)),this.fragmentTracker.fragBuffered(C)},E.onBufferFlushing=function(k,O){var C=O.startOffset,x=O.endOffset;if(C===0&&x!==Number.POSITIVE_INFINITY){var y=this.currentTrackId,S=this.levels;if(!S.length||!S[y]||!S[y].details)return;var M=S[y].details,I=M.targetduration,N=x-I;if(N<=0)return;O.endOffsetSubtitles=Math.max(0,N),this.tracksBuffered.forEach(function(G){for(var H=0;H=M.length||y!==S||!I)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,x.live||(C=I.details)!==null&&C!==void 0&&C.live){var N=this.mainDetails;if(x.deltaUpdateFailed||!N)return;var G=N.fragments[0];if(!I.details)x.hasProgramDateTime&&N.hasProgramDateTime?Object(b.alignMediaPlaylistByPDT)(x,N):G&&Object(d.addSliding)(x,G.start);else{var H=this.alignPlaylists(x,I.details);H===0&&G&&Object(d.addSliding)(x,G.start)}}if(I.details=x,this.levelLastLoaded=y,this.tick(),x.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var B=Object(_.findFragmentByPTS)(null,x.fragments,this.media.currentTime,0);B||(this.warn("Subtitle playlist not aligned with playback"),I.details=void 0)}},E._handleFragmentLoadComplete=function(k){var O=k.frag,C=k.payload,x=O.decryptdata,y=this.hls;if(this.fragContextChanged(O))return;if(C&&C.byteLength>0&&x&&x.key&&x.iv&&x.method==="AES-128"){var S=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(C),x.key.buffer,x.iv.buffer).then(function(M){var I=performance.now();y.trigger(P.Events.FRAG_DECRYPTED,{frag:O,payload:M,stats:{tstart:S,tdecrypt:I}})})}},E.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var k,O=this.currentTrackId,C=this.levels;if(!C.length||!C[O]||!C[O].details)return;var x=C[O].details,y=x.targetduration,S=this.config,M=this.media,I=v.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,M.currentTime-y,S.maxBufferHole),N=I.end,G=I.len,H=this.getMaxBufferLength()+y;if(G>H)return;console.assert(x,"Subtitle track details are defined on idle subtitle stream controller tick");var B=x.fragments,K=B.length,U=x.edge,W,X=this.fragPrevious;if(N-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},m.pollTrackChange=function(r){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,r)},m.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var r=u(this.media.textTracks);r.forEach(function(a){Object(p.clearCurrentCues)(a)}),this.subtitleTrack=-1,this.media=null},m.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},m.onManifestParsed=function(r,a){this.tracks=a.subtitleTracks},m.onSubtitleTrackLoaded=function(r,a){var t=a.id,w=a.details,E=this.trackId,f=this.tracksInGroup[E];if(!f){this.warn("Invalid subtitle track id "+t);return}var k=f.details;f.details=a.details,this.log("subtitle track "+t+" loaded ["+w.startSN+"-"+w.endSN+"]"),t===this.trackId&&(this.retryCount=0,this.playlistLoaded(t,a,k))},m.onLevelLoading=function(r,a){this.switchLevel(a.level)},m.onLevelSwitching=function(r,a){this.switchLevel(a.level)},m.switchLevel=function(r){var a=this.hls.levels[r];if(!(a!=null&&a.textGroupIds))return;var t=a.textGroupIds[a.urlId];if(this.groupId!==t){var w=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(O){return!t||O.groupId===t});this.tracksInGroup=E;var f=this.findTrackId(w==null?void 0:w.name)||this.findTrackId();this.groupId=t;var k={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+t+'" group-id'),this.hls.trigger(P.Events.SUBTITLE_TRACKS_UPDATED,k),f!==-1&&this.setSubtitleTrack(f,w)}},m.findTrackId=function(r){for(var a=this.tracksInGroup,t=0;t=w.length)return;this.clearTimer();var E=w[r];if(this.log("Switching to subtitle track "+r),this.trackId=r,E){var f=E.id,k=E.groupId,O=k===void 0?"":k,C=E.name,x=E.type,y=E.url;this.hls.trigger(P.Events.SUBTITLE_TRACK_SWITCH,{id:f,groupId:O,name:C,type:x,url:y});var S=this.switchParams(E.url,a==null?void 0:a.details);this.loadPlaylist(S)}else this.hls.trigger(P.Events.SUBTITLE_TRACK_SWITCH,{id:r})},m.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var r=-1,a=u(this.media.textTracks),t=0;t=0&&(x[0]=Math.min(x[0],w),x[1]=Math.max(x[1],E),O=!0,y/(E-w)>.5))return}if(O||k.push([w,E]),this.config.renderTextTracksNatively){var S=this.captionsTracks[t];this.Cues.newCue(S,w,E,f)}else{var M=this.Cues.newCue(null,w,E,f);this.hls.trigger(p.Events.CUES_PARSED,{type:"captions",cues:M,track:t})}},r.onInitPtsFound=function(t,w){var E=this,f=w.frag,k=w.id,O=w.initPTS,C=w.timescale,x=this.unparsedVttFrags;k==="main"&&(this.initPTS[f.cc]=O,this.timescale[f.cc]=C),x.length&&(this.unparsedVttFrags=[],x.forEach(function(y){E.onFragLoaded(p.Events.FRAG_LOADED,y)}))},r.getExistingTrack=function(t){var w=this.media;if(w)for(var E=0;E>>8^C&255^99,l[f]=C,n[C]=f;var x=E[f],y=E[x],S=E[y],M=E[C]*257^C*16843008;u[f]=M<<24|M>>>8,o[f]=M<<16|M>>>16,h[f]=M<<8|M>>>24,m[f]=M,M=S*16843009^y*65537^x*257^f*16843008,r[C]=M<<24|M>>>8,a[C]=M<<16|M>>>16,t[C]=M<<8|M>>>24,w[C]=M,f?(f=x^E[E[E[S^x]]],k^=E[E[k]]):f=k=1}},b.expandKey=function(l){for(var n=this.uint8ArrayToUint32Array_(l),c=!0,u=0;u>>6)+1;var M=(t[w+2]&60)>>>2;if(M>S.length-1){a.trigger(v.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+M});return}return O=(t[w+2]&1)<<2,O|=(t[w+3]&192)>>>6,P.logger.log("manifest codec:"+E+", ADTS type:"+f+", samplingIndex:"+M),/firefox/i.test(x)?M>=6?(f=5,C=new Array(4),k=M-3):(f=2,C=new Array(2),k=M):x.indexOf("android")!==-1?(f=2,C=new Array(2),k=M):(f=5,C=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&M>=6?k=M-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(M>=6&&O===1||/vivaldi/i.test(x))||!E&&O===1)&&(f=2,C=new Array(2)),k=M)),C[0]=f<<3,C[0]|=(M&14)>>1,C[1]|=(M&1)<<7,C[1]|=O<<3,f===5&&(C[1]|=(k&14)>>1,C[2]=(k&1)<<7,C[2]|=2<<2,C[3]=0),{config:C,samplerate:S[M],channelCount:O,codec:"mp4a.40."+f,manifestCodec:y}}function b(a,t){return a[t]===255&&(a[t+1]&246)===240}function d(a,t){return a[t+1]&1?7:9}function l(a,t){return(a[t+3]&3)<<11|a[t+4]<<3|(a[t+5]&224)>>>5}function n(a,t){return t+5=a.length)return!1;var E=l(a,t);if(E<=w)return!1;var f=t+E;return f===a.length||c(a,f)}return!1}function h(a,t,w,E,f){if(!a.samplerate){var k=_(t,w,E,f);if(!k)return;a.config=k.config,a.samplerate=k.samplerate,a.channelCount=k.channelCount,a.codec=k.codec,a.manifestCodec=k.manifestCodec,P.logger.log("parsed codec:"+a.codec+", rate:"+k.samplerate+", channels:"+k.channelCount)}}function m(a){return 1024*9e4/a}function s(a,t,w,E,f){var k=d(a,t),O=l(a,t);if(O-=k,O>0){var C=w+E*f;return{headerLength:k,frameLength:O,stamp:C}}}function r(a,t,w,E,f){var k=m(a.samplerate),O=s(t,w,E,f,k);if(O){var C=O.frameLength,x=O.headerLength,y=O.stamp,S=x+C,M=Math.max(0,w+S-t.length),I;M?(I=new Uint8Array(S-x),I.set(t.subarray(w+x,t.length),0)):I=t.subarray(w+x,w+S);var N={unit:I,pts:y};return M||a.samples.push(N),{sample:N,length:S,missing:M}}}},"./src/demux/base-audio-demuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"initPTSFn",function(){return l});var P=T("./src/polyfills/number.ts"),p=T("./src/demux/id3.ts"),v=T("./src/demux/dummy-demuxed-track.ts"),_=T("./src/utils/mp4-tools.ts"),b=T("./src/utils/typed-array.ts"),d=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var c=n.prototype;return c.resetInitSegment=function(o,h,m){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},c.resetTimeStamp=function(){},c.resetContiguity=function(){},c.canParse=function(o,h){return!1},c.appendFrame=function(o,h,m){},c.demux=function(o,h){this.cachedData&&(o=Object(_.appendUint8Array)(this.cachedData,o),this.cachedData=null);var m=p.getID3Data(o,0),s=m?m.length:0,r,a,t=this._audioTrack,w=this._id3Track,E=m?p.getTimeStamp(m):void 0,f=o.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=l(E,h)),m&&m.length>0&&w.samples.push({pts:this.initPTS,dts:this.initPTS,data:m}),a=this.initPTS;sd?(this.word<<=d,this.bitsAvailable-=d):(d-=this.bitsAvailable,l=d>>3,d-=l>>3,this.bytesAvailable-=l,this.loadWord(),this.word<<=d,this.bitsAvailable-=d)},_.readBits=function(d){var l=Math.min(this.bitsAvailable,d),n=this.word>>>32-l;return d>32&&P.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=l,this.bitsAvailable>0?this.word<<=l:this.bytesAvailable>0&&this.loadWord(),l=d-l,l>0&&this.bitsAvailable?n<>>d)!==0)return this.word<<=d,this.bitsAvailable-=d,d;return this.loadWord(),d+this.skipLZ()},_.skipUEG=function(){this.skipBits(1+this.skipLZ())},_.skipEG=function(){this.skipBits(1+this.skipLZ())},_.readUEG=function(){var d=this.skipLZ();return this.readBits(d+1)-1},_.readEG=function(){var d=this.readUEG();return 1&d?1+d>>>1:-1*(d>>>1)},_.readBoolean=function(){return this.readBits(1)===1},_.readUByte=function(){return this.readBits(8)},_.readUShort=function(){return this.readBits(16)},_.readUInt=function(){return this.readBits(32)},_.skipScalingList=function(d){for(var l=8,n=8,c,u=0;u0?f.subarray(O,O+C):void 0},_=function(f,k){var O=0;return O=(f[k]&127)<<21,O|=(f[k+1]&127)<<14,O|=(f[k+2]&127)<<7,O|=f[k+3]&127,O},b=function(f,k){return P(f,k)&&_(f,k+6)+10<=f.length-k},d=function(f){for(var k=c(f),O=0;O>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(S);break;case 12:case 13:M=f[G++],N+=String.fromCharCode((S&31)<<6|M&63);break;case 14:M=f[G++],I=f[G++],N+=String.fromCharCode((S&15)<<12|(M&63)<<6|(I&63)<<0);break;default:}}return N},a={decodeTextFrame:h},t;function w(){return!t&&typeof self.TextDecoder!="undefined"&&(t=new self.TextDecoder("utf-8")),t}},"./src/demux/mp3demuxer.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/demux/base-audio-demuxer.ts"),p=T("./src/demux/id3.ts"),v=T("./src/utils/logger.ts"),_=T("./src/demux/mpegaudio.ts");function b(n,c){n.prototype=Object.create(c.prototype),n.prototype.constructor=n,d(n,c)}function d(n,c){return d=Object.setPrototypeOf||function(o,h){return o.__proto__=h,o},d(n,c)}var l=function(n){b(c,n);function c(){return n.apply(this,arguments)||this}var u=c.prototype;return u.resetInitSegment=function(h,m,s){n.prototype.resetInitSegment.call(this,h,m,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:h,duration:s,inputTimeScale:9e4,dropped:0}},c.probe=function(h){if(!h)return!1;for(var m=p.getID3Data(h,0)||[],s=m.length,r=h.length;s0},b.demux=function(l){var n=l,c=Object(p.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(P.appendUint8Array)(this.remainderData,l));var u=Object(P.segmentValidRange)(n);this.remainderData=u.remainder,c.samples=u.valid||new Uint8Array}else c.samples=n;return{audioTrack:Object(p.dummyTrack)(),avcTrack:c,id3Track:Object(p.dummyTrack)(),textTrack:Object(p.dummyTrack)()}},b.flush=function(){var l=Object(p.dummyTrack)();return l.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(p.dummyTrack)(),avcTrack:l,id3Track:Object(p.dummyTrack)(),textTrack:Object(p.dummyTrack)()}},b.demuxSampleAes=function(l,n,c){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},b.destroy=function(){},_}();v.minProbeByteLength=1024,g.default=v},"./src/demux/mpegaudio.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"appendFrame",function(){return d}),T.d(g,"parseHeader",function(){return l}),T.d(g,"isHeaderPattern",function(){return n}),T.d(g,"isHeader",function(){return c}),T.d(g,"canParse",function(){return u}),T.d(g,"probe",function(){return o});var P=null,p=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],v=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],_=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],b=[0,1,1,4];function d(h,m,s,r,a){if(s+24>m.length)return;var t=l(m,s);if(t&&s+t.frameLength<=m.length){var w=t.samplesPerFrame*9e4/t.sampleRate,E=r+a*w,f={unit:m.subarray(s,s+t.frameLength),pts:E,dts:E};return h.config=[],h.channelCount=t.channelCount,h.samplerate=t.sampleRate,h.samples.push(f),{sample:f,length:t.frameLength,missing:0}}}function l(h,m){var s=h[m+1]>>3&3,r=h[m+1]>>1&3,a=h[m+2]>>4&15,t=h[m+2]>>2&3;if(s!==1&&a!==0&&a!==15&&t!==3){var w=h[m+2]>>1&1,E=h[m+3]>>6,f=s===3?3-r:r===3?3:4,k=p[f*14+a-1]*1e3,O=s===3?0:s===2?1:2,C=v[O*3+t],x=E===3?1:2,y=_[s][r],S=b[r],M=y*8*S,I=Math.floor(y*k/C+w)*S;if(P===null){var N=navigator.userAgent||"",G=N.match(/Chrome\/(\d+)/i);P=G?parseInt(G[1]):0}var H=!!P&&P<=87;return H&&r===2&&k>=224e3&&E===0&&(h[m+3]=h[m+3]|128),{sampleRate:C,channelCount:x,frameLength:I,samplesPerFrame:M}}}function n(h,m){return h[m]===255&&(h[m+1]&224)===224&&(h[m+1]&6)!==0}function c(h,m){return m+1=l.length){c();return}if(l[n].unit.length<32)continue;var u=this.decrypter.isSync();if(this.decryptAacSample(l,n,c,u),!u)return}},b.getAvcEncryptedData=function(l){for(var n=Math.floor((l.length-48)/160)*16+16,c=new Int8Array(n),u=0,o=32;o<=l.length-16;o+=160,u+=16)c.set(l.subarray(o,o+16),u);return c},b.getAvcDecryptedUnit=function(l,n){for(var c=new Uint8Array(n),u=0,o=32;o<=l.length-16;o+=160,u+=16)l.set(c.subarray(u,u+16),o);return l},b.decryptAvcSample=function(l,n,c,u,o,h){var m=Object(p.discardEPB)(o.data),s=this.getAvcEncryptedData(m),r=this;this.decryptBuffer(s.buffer,function(a){o.data=r.getAvcDecryptedUnit(m,a),h||r.decryptAvcSamples(l,n,c+1,u)})},b.decryptAvcSamples=function(l,n,c,u){if(l instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,c=0){if(n>=l.length){u();return}for(var o=l[n].units;!(c>=o.length);c++){var h=o[c];if(h.data.length<=48||h.type!==1&&h.type!==5)continue;var m=this.decrypter.isSync();if(this.decryptAvcSample(l,n,c,u,h,m),!m)return}}},_}();g.default=v},"./src/demux/transmuxer-interface.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o});var P=T("./node_modules/webworkify-webpack/index.js"),p=T.n(P),v=T("./src/events.ts"),_=T("./src/demux/transmuxer.ts"),b=T("./src/utils/logger.ts"),d=T("./src/errors.ts"),l=T("./src/utils/mediasource-helper.ts"),n=T("./node_modules/eventemitter3/index.js"),c=T.n(n),u=Object(l.getMediaSource)()||{isTypeSupported:function(){return!1}},o=function(){function h(s,r,a,t){var w=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=s,this.id=r,this.onTransmuxComplete=a,this.onFlush=t;var E=s.config,f=function(y,S){S=S||{},S.frag=w.frag,S.id=w.id,s.trigger(y,S)};this.observer=new n.EventEmitter,this.observer.on(v.Events.FRAG_DECRYPTED,f),this.observer.on(v.Events.ERROR,f);var k={mp4:u.isTypeSupported("video/mp4"),mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"')},O=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){b.logger.log("demuxing in webworker");var C;try{C=this.worker=P("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),C.addEventListener("message",this.onwmsg),C.onerror=function(x){s.trigger(v.Events.ERROR,{type:d.ErrorTypes.OTHER_ERROR,details:d.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(x.message+" ("+x.filename+":"+x.lineno+")")})},C.postMessage({cmd:"init",typeSupported:k,vendor:O,id:r,config:JSON.stringify(E)})}catch(x){b.logger.warn("Error in worker:",x),b.logger.error("Error while initializing DemuxerWorker, fallback to inline"),C&&self.URL.revokeObjectURL(C.objectURL),this.transmuxer=new _.default(this.observer,k,E,O,r),this.worker=null}}else this.transmuxer=new _.default(this.observer,k,E,O,r)}var m=h.prototype;return m.destroy=function(){var r=this.worker;if(r)r.removeEventListener("message",this.onwmsg),r.terminate(),this.worker=null;else{var a=this.transmuxer;a&&(a.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.observer=null},m.push=function(r,a,t,w,E,f,k,O,C,x){var y=this;C.transmuxing.start=self.performance.now();var S=this.transmuxer,M=this.worker,I=f?f.start:E.start,N=E.decryptdata,G=this.frag,H=!(G&&E.cc===G.cc),B=!(G&&C.level===G.level),K=G?C.sn-G.sn:-1,U=this.part?C.part-this.part.index:1,W=!B&&(K===1||K===0&&U===1),X=self.performance.now();(B||K||E.stats.parsing.start===0)&&(E.stats.parsing.start=X),f&&(U||!W)&&(f.stats.parsing.start=X);var ne=new _.TransmuxState(H,W,O,B,I);if(!W||H){b.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+C.sn+" p: "+C.part+" level: "+C.level+" id: "+C.id+` + Time to underbuffer: `+H.toFixed(3)+" s"),a.nextLoadLevel=K,this.bwEstimator.sample(O,f.loaded),this.clearTimer(),s.loader&&(this.fragCurrent=this.partCurrent=null,s.loader.abort()),a.trigger(v.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:r,stats:f})},h.onFragLoaded=function(s,r){var a=r.frag,t=r.part;if(a.type===d.PlaylistLevelType.MAIN&&Object(P.isFiniteNumber)(a.sn)){var w=t?t.stats:a.stats,E=t?t.duration:a.duration;if(this.clearTimer(),this.lastLoadedFragLevel=a.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var f=this.hls.levels[a.level],k=(f.loaded?f.loaded.bytes:0)+w.loaded,O=(f.loaded?f.loaded.duration:0)+E;f.loaded={bytes:k,duration:O},f.realBitrate=Math.round(8*k/O)}if(a.bitrateTest){var C={stats:w,frag:a,part:t,id:a.type};this.onFragBuffered(v.Events.FRAG_BUFFERED,C),a.bitrateTest=!1}}},h.onFragBuffered=function(s,r){var a=r.frag,t=r.part,w=t?t.stats:a.stats;if(w.aborted)return;if(a.type!==d.PlaylistLevelType.MAIN||a.sn==="initSegment")return;var E=w.parsing.end-w.loading.start;this.bwEstimator.sample(E,w.loaded),w.bwEstimate=this.bwEstimator.getEstimate(),a.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},h.onError=function(s,r){switch(r.details){case b.ErrorDetails.FRAG_LOAD_ERROR:case b.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},h.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},h.getNextABRAutoLevel=function(){var s=this.fragCurrent,r=this.partCurrent,a=this.hls,t=a.maxAutoLevel,w=a.config,E=a.minAutoLevel,f=a.media,k=r?r.duration:s?s.duration:0,O=f?f.currentTime:0,C=f&&f.playbackRate!==0?Math.abs(f.playbackRate):1,x=this.bwEstimator?this.bwEstimator.getEstimate():w.abrEwmaDefaultEstimate,y=(S.BufferHelper.bufferInfo(f,O,w.maxBufferHole).end-O)/C,_=this.findBestLevel(x,E,t,y,w.abrBandWidthFactor,w.abrBandWidthUpFactor);if(_>=0)return _;l.logger.trace((y?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var M=k?Math.min(k,w.maxStarvationDelay):w.maxStarvationDelay,I=w.abrBandWidthFactor,N=w.abrBandWidthUpFactor;if(!y){var G=this.bitrateTestDelay;if(G){var H=k?Math.min(k,w.maxLoadingDelay):w.maxLoadingDelay;M=H-G,l.logger.trace("bitrate test took "+Math.round(1e3*G)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*M)+" ms"),I=N=1}}return _=this.findBestLevel(x,E,t,y+M,I,N),Math.max(_,0)},h.findBestLevel=function(s,r,a,t,w,E){for(var f,k=this.fragCurrent,O=this.partCurrent,C=this.lastLoadedFragLevel,x=this.hls.levels,y=x[C],_=!!(y!=null&&(f=y.details)!==null&&f!==void 0&&f.live),M=y==null?void 0:y.codecSet,I=O?O.duration:k?k.duration:0,N=a;N>=r;N--){var G=x[N];if(!G||M&&G.codecSet!==M)continue;var H=G.details,B=(O?H==null?void 0:H.partTarget:H==null?void 0:H.averagetargetduration)||I,K=void 0;N<=C?K=w*s:K=E*s;var U=x[N].maxBitrate,W=U*B/K;if(l.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(K)+"/"+U+"/"+B+"/"+t+"/"+W),K>U&&(!W||_&&!this.bitrateTestDelay||W0&&y===-1?(this.log("Override startPosition with lastCurrentTime @"+_.toFixed(3)),this.state=p.State.IDLE):(this.loadedmetadata=!1,this.state=p.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=y,this.tick()},C.doTick=function(){switch(this.state){case p.State.IDLE:this.doTickIdle();break;case p.State.WAITING_TRACK:{var y,_=this.levels,M=this.trackId,I=_==null||((y=_[M])===null||y===void 0)?void 0:y.details;if(I){if(this.waitForCdnTuneIn(I))break;this.state=p.State.WAITING_INIT_PTS}break}case p.State.FRAG_LOADING_WAITING_RETRY:{var N,G=performance.now(),H=this.retryDate;(!H||G>=H||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=p.State.IDLE);break}case p.State.WAITING_INIT_PTS:{var B=this.waitingData;if(B){var K=B.frag,U=B.part,W=B.cache,X=B.complete;if(this.initPTS[K.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=p.State.FRAG_LOADING;var ne=W.flush(),fe={frag:K,part:U,payload:ne,networkDetails:null};this._handleFragmentLoadProgress(fe),X&&k.prototype._handleFragmentLoadComplete.call(this,fe)}else if(this.videoTrackCC!==this.waitingVideoCC)r.logger.log("Waiting fragment cc ("+K.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var me=this.getLoadPosition(),Ae=S.BufferHelper.bufferInfo(this.mediaBuffer,me,this.config.maxBufferHole),De=Object(h.fragmentWithinToleranceTest)(Ae.end,this.config.maxFragLookUpTolerance,K);De<0&&(r.logger.log("Waiting fragment cc ("+K.cc+") @ "+K.start+" cancelled because another fragment at "+Ae.end+" is needed"),this.clearWaitingFragment())}}else this.state=p.State.IDLE}}this.onTickEnd()},C.clearWaitingFragment=function(){var y=this.waitingData;y&&(this.fragmentTracker.removeFragment(y.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=p.State.IDLE)},C.onTickEnd=function(){var y=this.media;if(!y||!y.readyState)return;var _=this.mediaBuffer?this.mediaBuffer:y,M=_.buffered;!this.loadedmetadata&&M.length&&(this.loadedmetadata=!0),this.lastCurrentTime=y.currentTime},C.doTickIdle=function(){var y,_,M=this.hls,I=this.levels,N=this.media,G=this.trackId,H=M.config;if(!I||!I[G])return;if(!N&&(this.startFragRequested||!H.startFragPrefetch))return;var B=I[G],K=B.details;if(!K||K.live&&this.levelLastLoaded!==G||this.waitForCdnTuneIn(K)){this.state=p.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,l.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,l.PlaylistLevelType.AUDIO);if(U===null)return;var W=U.len,X=this.getMaxBufferLength(),ne=this.audioSwitch;if(W>=X&&!ne)return;if(!ne&&this._streamEnded(U,K)){M.trigger(v.Events.BUFFER_EOS,{type:"audio"}),this.state=p.State.ENDED;return}var fe=K.fragments,me=fe[0].start,Ae=U.end;if(ne){var De=this.getLoadPosition();Ae=De,K.PTSKnown&&Deme||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),N.currentTime=me+.05))}var ye=this.getNextFragment(Ae,K);if(!ye){this.bufferFlushed=!0;return}((y=ye.decryptdata)===null||y===void 0?void 0:y.keyFormat)==="identity"&&!((_=ye.decryptdata)!==null&&_!==void 0&&_.key)?this.loadKey(ye,K):this.loadFragment(ye,K,Ae)},C.getMaxBufferLength=function(){var y=k.prototype.getMaxBufferLength.call(this),_=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,l.PlaylistLevelType.MAIN);return _===null?y:Math.max(y,_.len)},C.onMediaDetaching=function(){this.videoBuffer=null,k.prototype.onMediaDetaching.call(this)},C.onAudioTracksUpdated=function(y,_){var M=_.audioTracks;this.resetTransmuxer(),this.levels=M.map(function(I){return new d.Level(I)})},C.onAudioTrackSwitching=function(y,_){var M=!!_.url;this.trackId=_.id;var I=this.fragCurrent;I!=null&&I.loader&&I.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),M?this.setInterval(E):this.resetTransmuxer(),M?(this.audioSwitch=!0,this.state=p.State.IDLE):this.state=p.State.STOPPED,this.tick()},C.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},C.onLevelLoaded=function(y,_){this.mainDetails=_.details},C.onAudioTrackLoaded=function(y,_){var M,I=this.levels,N=_.details,G=_.id;if(!I){this.warn("Audio tracks were reset while loading level "+G);return}this.log("Track "+G+" loaded ["+N.startSN+","+N.endSN+"],duration:"+N.totalduration);var H=I[G],B=0;if(N.live||(M=H.details)!==null&&M!==void 0&&M.live){var K=this.mainDetails;if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed||!K)return;!H.details&&N.hasProgramDateTime&&K.hasProgramDateTime?(Object(m.alignMediaPlaylistByPDT)(N,K),B=N.fragments[0].start):B=this.alignPlaylists(N,H.details)}H.details=N,this.levelLastLoaded=G,!this.startFragRequested&&(this.mainDetails||!N.live)&&this.setStartPosition(H.details,B),this.state===p.State.WAITING_TRACK&&!this.waitForCdnTuneIn(N)&&(this.state=p.State.IDLE),this.tick()},C._handleFragmentLoadProgress=function(y){var _,M=y.frag,I=y.part,N=y.payload,G=this.config,H=this.trackId,B=this.levels;if(!B){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+M.sn+" of level "+M.level+" will not be buffered");return}var K=B[H];console.assert(K,"Audio track is defined on fragment load progress");var U=K.details;console.assert(U,"Audio track details are defined on fragment load progress");var W=G.defaultAudioCodec||K.audioCodec||"mp4a.40.2",X=this.transmuxer;X||(X=this.transmuxer=new u.default(this.hls,l.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ne=this.initPTS[M.cc],fe=(_=M.initSegment)===null||_===void 0?void 0:_.data;if(ne!==void 0){var me=!1,Ae=I?I.index:-1,De=Ae!==-1,ye=new o.ChunkMetadata(M.level,M.sn,M.stats.chunkCount,N.byteLength,Ae,De);X.push(N,fe,W,"",M,I,U.totalduration,me,ye,ne)}else{r.logger.log("Unknown video PTS for cc "+M.cc+", waiting for video PTS before demuxing audio frag "+M.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+H);var Oe=this.waitingData=this.waitingData||{frag:M,part:I,cache:new c.default,complete:!1},xe=Oe.cache;xe.push(new Uint8Array(N)),this.waitingVideoCC=this.videoTrackCC,this.state=p.State.WAITING_INIT_PTS}},C._handleFragmentLoadComplete=function(y){if(this.waitingData){this.waitingData.complete=!0;return}k.prototype._handleFragmentLoadComplete.call(this,y)},C.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},C.onBufferCreated=function(y,_){var M=_.tracks.audio;M&&(this.mediaBuffer=M.buffer),_.tracks.video&&(this.videoBuffer=_.tracks.video.buffer)},C.onFragBuffered=function(y,_){var M=_.frag,I=_.part;if(M.type!==l.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(M)){this.warn("Fragment "+M.sn+(I?" p: "+I.index:"")+" of level "+M.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}M.sn!=="initSegment"&&(this.fragPrevious=M,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(v.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(M,I)},C.onError=function(y,_){switch(_.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.AUDIO,_);break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==p.State.ERROR&&this.state!==p.State.STOPPED&&(this.state=_.fatal?p.State.ERROR:p.State.IDLE,this.warn(_.details+" while loading frag, switching to "+this.state+" state"));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if(_.parent==="audio"&&(this.state===p.State.PARSING||this.state===p.State.PARSED)){var M=!0,I=this.getFwdBufferInfo(this.mediaBuffer,l.PlaylistLevelType.AUDIO);I&&I.len>.5&&(M=!this.reduceMaxBufferLength(I.len)),M&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,k.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},C.onBufferFlushed=function(y,_){var M=_.type;M===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},C._handleTransmuxComplete=function(y){var _,M="audio",I=this.hls,N=y.remuxResult,G=y.chunkMeta,H=this.getCurrentContext(G);if(!H){this.warn("The loading context changed while buffering fragment "+G.sn+" of level "+G.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(G.level);return}var B=H.frag,K=H.part,U=N.audio,W=N.text,X=N.id3,ne=N.initSegment;if(this.fragContextChanged(B))return;if(this.state=p.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),ne!=null&&ne.tracks&&(this._bufferInitSegment(ne.tracks,B,G),I.trigger(v.Events.FRAG_PARSING_INIT_SEGMENT,{frag:B,id:M,tracks:ne.tracks})),U){var fe=U.startPTS,me=U.endPTS,Ae=U.startDTS,De=U.endDTS;K&&(K.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:fe,endPTS:me,startDTS:Ae,endDTS:De}),B.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,fe,me,Ae,De),this.bufferFragmentData(U,B,K,G)}if(X!=null&&(_=X.samples)!==null&&_!==void 0&&_.length){var ye=a({frag:B,id:M},X);I.trigger(v.Events.FRAG_PARSING_METADATA,ye)}if(W){var Oe=a({frag:B,id:M},W);I.trigger(v.Events.FRAG_PARSING_USERDATA,Oe)}},C._bufferInitSegment=function(y,_,M){if(this.state!==p.State.PARSING)return;y.video&&delete y.video;var I=y.audio;if(!I)return;I.levelCodec=I.codec,I.id="audio",this.log("Init audio buffer, container:"+I.container+", codecs[parsed]=["+I.codec+"]"),this.hls.trigger(v.Events.BUFFER_CODECS,y);var N=I.initSegment;if(N!=null&&N.byteLength){var G={type:"audio",frag:_,part:null,chunkMeta:M,parent:_.type,data:N};this.hls.trigger(v.Events.BUFFER_APPENDING,G)}this.tick()},C.loadFragment=function(y,_,M){var I=this.fragmentTracker.getState(y);this.fragCurrent=y,(this.audioSwitch||I===b.FragmentState.NOT_LOADED||I===b.FragmentState.PARTIAL)&&(y.sn==="initSegment"?this._loadInitSegment(y):_.live&&!Object(P.isFiniteNumber)(this.initPTS[y.cc])?(this.log("Waiting for video PTS in continuity counter "+y.cc+" of live stream before loading audio fragment "+y.sn+" of level "+this.trackId),this.state=p.State.WAITING_INIT_PTS):(this.startFragRequested=!0,k.prototype.loadFragment.call(this,y,_,M)))},C.completeAudioSwitch=function(){var y=this.hls,_=this.media,M=this.trackId;_&&(this.log("Switching audio track : flushing all audio"),k.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,y.trigger(v.Events.AUDIO_TRACK_SWITCHED,{id:M})},O}(p.default);g.default=f},"./src/controller/audio-track-controller.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/events.ts"),p=T("./src/errors.ts"),v=T("./src/controller/base-playlist-controller.ts"),S=T("./src/types/loader.ts");function b(u,o){for(var h=0;h=r.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var a=r[this.trackId];this.log("Now switching to audio-track index "+s);var t=r[s],w=t.id,E=t.groupId,f=E===void 0?"":E,k=t.name,O=t.type,C=t.url;if(this.trackId=s,this.trackName=k,this.selectDefaultTrack=!1,this.hls.trigger(P.Events.AUDIO_TRACK_SWITCHING,{id:w,groupId:f,name:k,type:O,url:C}),t.details&&!t.details.live)return;var x=this.switchParams(t.url,a==null?void 0:a.details);this.loadPlaylist(x)},h.selectInitialTrack=function(){var s=this.tracksInGroup;console.assert(s.length,"Initial audio track should be selected when tracks are known");var r=this.trackName,a=this.findTrackId(r)||this.findTrackId();a!==-1?this.setAudioTrack(a):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},h.findTrackId=function(s){for(var r=this.tracksInGroup,a=0;ao.partTarget&&(t+=1)}if(Object(P.isFiniteNumber)(a))return new p.HlsUrlParameters(a,Object(P.isFiniteNumber)(t)?t:void 0,p.HlsSkip.No)}}},n.loadPlaylist=function(u){},n.shouldLoadTrack=function(u){return this.canLoad&&u&&!!u.url&&(!u.details||u.details.live)},n.playlistLoaded=function(u,o,h){var m=this,s=o.details,r=o.stats,a=r.loading.end?Math.max(0,self.performance.now()-r.loading.end):0;if(s.advancedDateTime=Date.now()-a,s.live||h!=null&&h.live){if(s.reloaded(h),h&&this.log("live playlist "+u+" "+(s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:"MISSED")),h&&s.fragments.length>0&&Object(v.mergeDetails)(h,s),!this.canLoad||!s.live)return;var t,w=void 0,E=void 0;if(s.canBlockReload&&s.endSN&&s.advanced){var f=this.hls.config.lowLatencyMode,k=s.lastPartSn,O=s.endSN,C=s.lastPartIndex,x=C!==-1,y=k===O,_=f?0:C;x?(w=y?O+1:k,E=y?_:C+1):w=O+1;var M=s.age,I=M+s.ageHeader,N=Math.min(I-s.partTarget,s.targetduration*1.5);if(N>0){if(h&&N>h.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+h.tuneInGoal+" to: "+N+" with playlist age: "+s.age),N=0;else{var G=Math.floor(N/s.targetduration);if(w+=G,E!==void 0){var H=Math.round(N%s.targetduration/s.partTarget);E+=H}this.log("CDN Tune-in age: "+s.ageHeader+"s last advanced "+M.toFixed(2)+"s goal: "+N+" skip sn "+G+" to part "+E)}s.tuneInGoal=N}if(t=this.getDeliveryDirectives(s,o.deliveryDirectives,w,E),f||!y){this.loadPlaylist(t);return}}else t=this.getDeliveryDirectives(s,o.deliveryDirectives,w,E);var B=Object(v.computeReloadInterval)(s,r);w!==void 0&&s.canBlockReload&&(B-=s.partTarget||1),this.log("reload live playlist "+u+" in "+Math.round(B)+" ms"),this.timer=self.setTimeout(function(){return m.loadPlaylist(t)},B)}else this.clearTimer()},n.getDeliveryDirectives=function(u,o,h,m){var s=Object(p.getSkipValue)(u,h);return o!=null&&o.skip&&u.deltaUpdateFailed&&(h=o.msn,m=o.part,s=p.HlsSkip.No),new p.HlsUrlParameters(h,m,s)},n.retryLoadingOrFail=function(u){var o=this,h=this.hls.config,m=this.retryCount-1&&(s=u.context)!==null&&s!==void 0&&s.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+u.details+'"'),this.loadPlaylist();else{var r=Math.min(Math.pow(2,this.retryCount)*h.levelLoadingRetryDelay,h.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return o.loadPlaylist()},r),this.warn("retry playlist loading #"+this.retryCount+" in "+r+' ms after "'+u.details+'"')}}else this.warn('cannot recover from error "'+u.details+'"'),this.clearTimer(),u.fatal=!0;return m},l}()},"./src/controller/base-stream-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"State",function(){return O}),T.d(g,"default",function(){return C});var P=T("./src/polyfills/number.ts"),p=T("./src/task-loop.ts"),v=T("./src/controller/fragment-tracker.ts"),S=T("./src/utils/buffer-helper.ts"),b=T("./src/utils/logger.ts"),d=T("./src/events.ts"),l=T("./src/errors.ts"),n=T("./src/types/transmuxer.ts"),c=T("./src/utils/mp4-tools.ts"),u=T("./src/utils/discontinuities.ts"),o=T("./src/controller/fragment-finders.ts"),h=T("./src/controller/level-helper.ts"),m=T("./src/loader/fragment-loader.ts"),s=T("./src/crypt/decrypter.ts"),r=T("./src/utils/time-ranges.ts"),a=T("./src/types/loader.ts");function t(x,y){for(var _=0;_ne;(K0&&K&&K.key&&K.iv&&K.method==="AES-128"){var U=self.performance.now();return N.decrypter.webCryptoDecrypt(new Uint8Array(B),K.key.buffer,K.iv.buffer).then(function(W){var X=self.performance.now();return H.trigger(d.Events.FRAG_DECRYPTED,{frag:I,payload:W,stats:{tstart:U,tdecrypt:X}}),G.payload=W,G})}return G}).then(function(G){var H=N.fragCurrent,B=N.hls,K=N.levels;if(!K)throw new Error("init load aborted, missing levels");var U=K[I.level].details;console.assert(U,"Level details are defined when init segment is loaded");var W=I.stats;N.state=O.IDLE,N.fragLoadError=0,I.data=new Uint8Array(G.payload),W.parsing.start=W.buffering.start=self.performance.now(),W.parsing.end=W.buffering.end=self.performance.now(),G.frag===H&&B.trigger(d.Events.FRAG_BUFFERED,{stats:W,frag:H,part:null,id:I.type}),N.tick()}).catch(function(G){N.warn(G),N.resetFragmentLoading(I)})},_.fragContextChanged=function(I){var N=this.fragCurrent;return!I||!N||I.level!==N.level||I.sn!==N.sn||I.urlId!==N.urlId},_.fragBufferedComplete=function(I,N){var G=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+I.type+" sn: "+I.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+I.level+" "+r.default.toString(S.BufferHelper.getBuffered(G))),this.state=O.IDLE,this.tick()},_._handleFragmentLoadComplete=function(I){var N=this.transmuxer;if(!N)return;var G=I.frag,H=I.part,B=I.partsLoaded,K=!B||B.length===0||B.some(function(W){return!W}),U=new n.ChunkMetadata(G.level,G.sn,G.stats.chunkCount+1,0,H?H.index:-1,!K);N.flush(U)},_._handleFragmentLoadProgress=function(I){},_._doFragLoad=function(I,N,G,H){var B=this;if(G===void 0&&(G=null),!this.levels)throw new Error("frag load aborted, missing levels");if(G=Math.max(I.start,G||0),this.config.lowLatencyMode&&N){var K=N.partList;if(K&&H){G>I.end&&N.fragmentHint&&(I=N.fragmentHint);var U=this.getNextPart(K,I,G);if(U>-1){var W=K[U];return this.log("Loading part sn: "+I.sn+" p: "+W.index+" cc: "+I.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+U+"-"+(K.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(G.toFixed(3))),this.nextLoadPosition=W.start+W.duration,this.state=O.FRAG_LOADING,this.hls.trigger(d.Events.FRAG_LOADING,{frag:I,part:K[U],targetBufferTime:G}),this.doFragPartsLoad(I,K,U,H).catch(function(X){return B.handleFragLoadError(X)})}else if(!I.url||this.loadedEndOfParts(K,G))return Promise.resolve(null)}}return this.log("Loading fragment "+I.sn+" cc: "+I.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(G.toFixed(3))),Object(P.isFiniteNumber)(I.sn)&&!this.bitrateTest&&(this.nextLoadPosition=I.start+I.duration),this.state=O.FRAG_LOADING,this.hls.trigger(d.Events.FRAG_LOADING,{frag:I,targetBufferTime:G}),this.fragmentLoader.load(I,H).catch(function(X){return B.handleFragLoadError(X)})},_.doFragPartsLoad=function(I,N,G,H){var B=this;return new Promise(function(K,U){var W=[],X=function ne(fe){var me=N[fe];B.fragmentLoader.loadPart(I,me,H).then(function(Ae){W[me.index]=Ae;var De=Ae.part;B.hls.trigger(d.Events.FRAG_LOADED,Ae);var ye=N[fe+1];if(ye&&ye.fragment===I)ne(fe+1);else return K({frag:I,part:De,partsLoaded:W})}).catch(U)};X(G)})},_.handleFragLoadError=function(I){var N=I.data;return N&&N.details===l.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(d.Events.ERROR,N),null},_._handleTransmuxerFlush=function(I){var N=this.getCurrentContext(I);if(!N||this.state!==O.PARSING){this.fragCurrent||(this.state=O.IDLE);return}var G=N.frag,H=N.part,B=N.level,K=self.performance.now();G.stats.parsing.end=K,H&&(H.stats.parsing.end=K),this.updateLevelTiming(G,H,B,I.partial)},_.getCurrentContext=function(I){var N=this.levels,G=I.level,H=I.sn,B=I.part;if(!N||!N[G])return this.warn("Levels object was unset while buffering fragment "+H+" of level "+G+". The current chunk will not be buffered."),null;var K=N[G],U=B>-1?Object(h.getPartWith)(K,H,B):null,W=U?U.fragment:Object(h.getFragmentWithSN)(K,H,this.fragCurrent);return W?{frag:W,part:U,level:K}:null},_.bufferFragmentData=function(I,N,G,H){if(!I||this.state!==O.PARSING)return;var B=I.data1,K=I.data2,U=B;if(B&&K&&(U=Object(c.appendUint8Array)(B,K)),!U||!U.length)return;var W={type:I.type,frag:N,part:G,chunkMeta:H,parent:N.type,data:U};this.hls.trigger(d.Events.BUFFER_APPENDING,W),I.dropped&&I.independent&&!G&&this.flushBufferGap(N)},_.flushBufferGap=function(I){var N=this.media;if(!N)return;if(!S.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,I.start);return}var G=N.currentTime,H=S.BufferHelper.bufferInfo(N,G,0),B=I.duration,K=Math.min(this.config.maxFragLookUpTolerance*2,B*.25),U=Math.max(Math.min(I.start-K,H.end-K),G+K);I.start-U>K&&this.flushMainBuffer(U,I.start)},_.getFwdBufferInfo=function(I,N){var G=this.config,H=this.getLoadPosition();if(!Object(P.isFiniteNumber)(H))return null;var B=S.BufferHelper.bufferInfo(I,H,G.maxBufferHole);if(B.len===0&&B.nextStart!==void 0){var K=this.fragmentTracker.getBufferedFrag(H,N);if(K&&B.nextStart=G?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},_.getNextFragment=function(I,N){var G,H,B=N.fragments,K=B.length;if(!K)return null;var U=this.config,W=B[0].start,X;if(N.live){var ne=U.initialLiveManifestSize;if(K-1&&GG.start&&G.loaded},_.getInitialLiveFragment=function(I,N){var G=this.fragPrevious,H=null;if(G){if(I.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+G.programDateTime),H=Object(o.findFragmentByPDT)(N,G.endProgramDateTime,this.config.maxFragLookUpTolerance)),!H){var B=G.sn+1;if(B>=I.startSN&&B<=I.endSN){var K=N[B-I.startSN];G.cc===K.cc&&(H=K,this.log("Live playlist, switching playlist, load frag with next SN: "+H.sn))}H||(H=Object(o.findFragWithCC)(N,G.cc),H&&this.log("Live playlist, switching playlist, load frag with same CC: "+H.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(H=this.getFragmentAtPosition(U,this.bitrateTest?I.fragmentEnd:I.edge,I))}return H},_.getFragmentAtPosition=function(I,N,G){var H=this.config,B=this.fragPrevious,K=G.fragments,U=G.endSN,W=G.fragmentHint,X=H.maxFragLookUpTolerance,ne=!!(H.lowLatencyMode&&G.partList&&W);ne&&W&&!this.bitrateTest&&(K=K.concat(W),U=W.sn);var fe;if(IN-X?0:X;fe=Object(o.findFragmentByPTS)(B,K,I,me)}else fe=K[K.length-1];if(fe){var Ae=fe.sn-G.startSN,De=B&&fe.level===B.level,ye=K[Ae+1],Oe=this.fragmentTracker.getState(fe);if(Oe===v.FragmentState.BACKTRACKED){fe=null;for(var xe=Ae;K[xe]&&this.fragmentTracker.getState(K[xe])===v.FragmentState.BACKTRACKED;)B?fe=K[xe--]:fe=K[--xe];fe||(fe=ye)}else B&&fe.sn===B.sn&&!ne&&(De&&(fe.sn=K-N.maxFragLookUpTolerance&&B<=U;if(H!==null&&G.duration>H&&(B"+I.startSN+" prev-sn: "+(B?B.sn:"na")+" fragments: "+U),fe}return W},_.waitForCdnTuneIn=function(I){var N=3;return I.live&&I.canBlockReload&&I.tuneInGoal>Math.max(I.partHoldBack,I.partTarget*N)},_.setStartPosition=function(I,N){var G=this.startPosition;if(G"+I))}}]),y}(p.default)},"./src/controller/buffer-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o});var P=T("./src/polyfills/number.ts"),p=T("./src/events.ts"),v=T("./src/utils/logger.ts"),S=T("./src/errors.ts"),b=T("./src/utils/buffer-helper.ts"),d=T("./src/utils/mediasource-helper.ts"),l=T("./src/loader/fragment.ts"),n=T("./src/controller/buffer-operation-queue.ts"),c=Object(d.getMediaSource)(),u=/([ha]vc.)(?:\.[^.,]+)+/,o=function(){function h(s){var r=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var a=r.hls,t=r.media,w=r.mediaSource;v.logger.log("[buffer-controller]: Media source opened"),t&&(r.updateMediaElementDuration(),a.trigger(p.Events.MEDIA_ATTACHED,{media:t})),w&&w.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},this._onMediaSourceClose=function(){v.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){v.logger.log("[buffer-controller]: Media source ended")},this.hls=s,this._initSourceBuffer(),this.registerListeners()}var m=h.prototype;return m.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},m.destroy=function(){this.unregisterListeners(),this.details=null},m.registerListeners=function(){var r=this.hls;r.on(p.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(p.Events.BUFFER_RESET,this.onBufferReset,this),r.on(p.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.on(p.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(p.Events.BUFFER_EOS,this.onBufferEos,this),r.on(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(p.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(p.Events.FRAG_PARSED,this.onFragParsed,this),r.on(p.Events.FRAG_CHANGED,this.onFragChanged,this)},m.unregisterListeners=function(){var r=this.hls;r.off(p.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(p.Events.BUFFER_RESET,this.onBufferReset,this),r.off(p.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.off(p.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(p.Events.BUFFER_EOS,this.onBufferEos,this),r.off(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(p.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(p.Events.FRAG_PARSED,this.onFragParsed,this),r.off(p.Events.FRAG_CHANGED,this.onFragChanged,this)},m._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},m.onManifestParsed=function(r,a){var t=2;(a.audio&&!a.video||!a.altAudio)&&(t=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t,this.details=null,v.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},m.onMediaAttaching=function(r,a){var t=this.media=a.media;if(t&&c){var w=this.mediaSource=new c;w.addEventListener("sourceopen",this._onMediaSourceOpen),w.addEventListener("sourceended",this._onMediaSourceEnded),w.addEventListener("sourceclose",this._onMediaSourceClose),t.src=self.URL.createObjectURL(w),this._objectUrl=t.src}},m.onMediaDetaching=function(){var r=this.media,a=this.mediaSource,t=this._objectUrl;if(a){if(v.logger.log("[buffer-controller]: media source detaching"),a.readyState==="open")try{a.endOfStream()}catch(w){v.logger.warn("[buffer-controller]: onMediaDetaching: "+w.message+" while calling endOfStream")}this.onBufferReset(),a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),r&&(t&&self.URL.revokeObjectURL(t),r.src===t?(r.removeAttribute("src"),r.load()):v.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(p.Events.MEDIA_DETACHED,void 0)},m.onBufferReset=function(){var r=this;this.getSourceBufferTypes().forEach(function(a){var t=r.sourceBuffer[a];try{t&&(r.removeBufferListeners(a),r.mediaSource&&r.mediaSource.removeSourceBuffer(t),r.sourceBuffer[a]=void 0)}catch(w){v.logger.warn("[buffer-controller]: Failed to reset the "+a+" buffer",w)}}),this._initSourceBuffer()},m.onBufferCodecs=function(r,a){var t=this,w=this.getSourceBufferTypes().length;if(Object.keys(a).forEach(function(E){if(w){var f=t.tracks[E];if(f&&typeof f.buffer.changeType=="function"){var k=a[E],O=k.codec,C=k.levelCodec,x=k.container,y=(f.levelCodec||f.codec).replace(u,"$1"),_=(C||O).replace(u,"$1");if(y!==_){var M=x+";codecs="+(C||O);t.appendChangeType(E,M)}}}else t.pendingTracks[E]=a[E]}),w)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},m.appendChangeType=function(r,a){var t=this,w=this.operationQueue,E={execute:function(){var k=t.sourceBuffer[r];k&&(v.logger.log("[buffer-controller]: changing "+r+" sourceBuffer type to "+a),k.changeType(a)),w.shiftAndExecuteNext(r)},onStart:function(){},onComplete:function(){},onError:function(k){v.logger.warn("[buffer-controller]: Failed to change "+r+" SourceBuffer type",k)}};w.append(E,r)},m.onBufferAppending=function(r,a){var t=this,w=this.hls,E=this.operationQueue,f=this.tracks,k=a.data,O=a.type,C=a.frag,x=a.part,y=a.chunkMeta,_=y.buffering[O],M=self.performance.now();_.start=M;var I=C.stats.buffering,N=x?x.stats.buffering:null;I.start===0&&(I.start=M),N&&N.start===0&&(N.start=M);var G=f.audio,H=O==="audio"&&y.id===1&&(G==null?void 0:G.container)==="audio/mpeg",B={execute:function(){if(_.executeStart=self.performance.now(),H){var U=t.sourceBuffer[O];if(U){var W=C.start-U.timestampOffset;Math.abs(W)>=.1&&(v.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+C.start+" (delta: "+W+") sn: "+C.sn+")"),U.timestampOffset=C.start)}}t.appendExecutor(k,O)},onStart:function(){},onComplete:function(){var U=self.performance.now();_.executeEnd=_.end=U,I.first===0&&(I.first=U),N&&N.first===0&&(N.first=U);var W=t.sourceBuffer,X={};for(var ne in W)X[ne]=b.BufferHelper.getBuffered(W[ne]);t.appendError=0,t.hls.trigger(p.Events.BUFFER_APPENDED,{type:O,frag:C,part:x,chunkMeta:y,parent:C.type,timeRanges:X})},onError:function(U){v.logger.error("[buffer-controller]: Error encountered while trying to append to the "+O+" SourceBuffer",U);var W={type:S.ErrorTypes.MEDIA_ERROR,parent:C.type,details:S.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?W.details=S.ErrorDetails.BUFFER_FULL_ERROR:(t.appendError++,W.details=S.ErrorDetails.BUFFER_APPEND_ERROR,t.appendError>w.config.appendErrorMaxRetry&&(v.logger.error("[buffer-controller]: Failed "+w.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),W.fatal=!0)),w.trigger(p.Events.ERROR,W)}};E.append(B,O)},m.onBufferFlushing=function(r,a){var t=this,w=this.operationQueue,E=function(k){return{execute:t.removeExecutor.bind(t,k,a.startOffset,a.endOffset),onStart:function(){},onComplete:function(){t.hls.trigger(p.Events.BUFFER_FLUSHED,{type:k})},onError:function(C){v.logger.warn("[buffer-controller]: Failed to remove from "+k+" SourceBuffer",C)}}};a.type?w.append(E(a.type),a.type):this.getSourceBufferTypes().forEach(function(f){w.append(E(f),f)})},m.onFragParsed=function(r,a){var t=this,w=a.frag,E=a.part,f=[],k=E?E.elementaryStreams:w.elementaryStreams;k[l.ElementaryStreamTypes.AUDIOVIDEO]?f.push("audiovideo"):(k[l.ElementaryStreamTypes.AUDIO]&&f.push("audio"),k[l.ElementaryStreamTypes.VIDEO]&&f.push("video"));var O=function(){var x=self.performance.now();w.stats.buffering.end=x,E&&(E.stats.buffering.end=x);var y=E?E.stats:w.stats;t.hls.trigger(p.Events.FRAG_BUFFERED,{frag:w,part:E,stats:y,id:w.type})};f.length===0&&v.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+w.type+" level: "+w.level+" sn: "+w.sn),this.blockBuffers(O,f)},m.onFragChanged=function(r,a){this.flushBackBuffer()},m.onBufferEos=function(r,a){var t=this,w=this.getSourceBufferTypes().reduce(function(E,f){var k=t.sourceBuffer[f];return(!a.type||a.type===f)&&(k&&!k.ended&&(k.ended=!0,v.logger.log("[buffer-controller]: "+f+" sourceBuffer now EOS"))),E&&!!(!k||k.ended)},!0);w&&this.blockBuffers(function(){var E=t.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},m.onLevelUpdated=function(r,a){var t=a.details;if(!t.fragments.length)return;this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},m.flushBackBuffer=function(){var r=this.hls,a=this.details,t=this.media,w=this.sourceBuffer;if(!t||a===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var f=a.live&&r.config.liveBackBufferLength!==null?r.config.liveBackBufferLength:r.config.backBufferLength;if(!Object(P.isFiniteNumber)(f)||f<0)return;var k=t.currentTime,O=a.levelTargetDuration,C=Math.max(f,O),x=Math.floor(k/O)*O-C;E.forEach(function(y){var _=w[y];if(_){var M=b.BufferHelper.getBuffered(_);M.length>0&&x>M.start(0)&&(r.trigger(p.Events.BACK_BUFFER_REACHED,{bufferEnd:x}),a.live&&r.trigger(p.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:x}),r.trigger(p.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:x,type:y}))}})},m.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var r=this.details,a=this.hls,t=this.media,w=this.mediaSource,E=r.fragments[0].start+r.totalduration,f=t.duration,k=Object(P.isFiniteNumber)(w.duration)?w.duration:0;r.live&&a.config.liveDurationInfinity?(v.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),w.duration=Infinity,this.updateSeekableRange(r)):(E>k&&E>f||!Object(P.isFiniteNumber)(f))&&(v.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),w.duration=E)},m.updateSeekableRange=function(r){var a=this.mediaSource,t=r.fragments,w=t.length;if(w&&r.live&&a!==null&&a!==void 0&&a.setLiveSeekableRange){var E=Math.max(0,t[0].start),f=Math.max(E,E+r.totalduration);a.setLiveSeekableRange(E,f)}},m.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,a=this.operationQueue,t=this.pendingTracks,w=Object.keys(t).length;if(w&&!r||w===2){this.createSourceBuffers(t),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(p.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(f){a.executeNext(f)})}},m.createSourceBuffers=function(r){var a=this.sourceBuffer,t=this.mediaSource;if(!t)throw Error("createSourceBuffers called when mediaSource was null");var w=0;for(var E in r)if(!a[E]){var f=r[E];if(!f)throw Error("source buffer exists for track "+E+", however track does not");var k=f.levelCodec||f.codec,O=f.container+";codecs="+k;v.logger.log("[buffer-controller]: creating sourceBuffer("+O+")");try{var C=a[E]=t.addSourceBuffer(O),x=E;this.addBufferListener(x,"updatestart",this._onSBUpdateStart),this.addBufferListener(x,"updateend",this._onSBUpdateEnd),this.addBufferListener(x,"error",this._onSBUpdateError),this.tracks[E]={buffer:C,codec:k,container:f.container,levelCodec:f.levelCodec,id:f.id},w++}catch(y){v.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+y.message),this.hls.trigger(p.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:y,mimeType:O})}}w&&this.hls.trigger(p.Events.BUFFER_CREATED,{tracks:this.tracks})},m._onSBUpdateStart=function(r){var a=this.operationQueue,t=a.current(r);t.onStart()},m._onSBUpdateEnd=function(r){var a=this.operationQueue,t=a.current(r);t.onComplete(),a.shiftAndExecuteNext(r)},m._onSBUpdateError=function(r,a){v.logger.error("[buffer-controller]: "+r+" SourceBuffer error",a),this.hls.trigger(p.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var t=this.operationQueue.current(r);t&&t.onError(a)},m.removeExecutor=function(r,a,t){var w=this.media,E=this.mediaSource,f=this.operationQueue,k=this.sourceBuffer,O=k[r];if(!w||!E||!O){v.logger.warn("[buffer-controller]: Attempting to remove from the "+r+" SourceBuffer, but it does not exist"),f.shiftAndExecuteNext(r);return}var C=Object(P.isFiniteNumber)(w.duration)?w.duration:Infinity,x=Object(P.isFiniteNumber)(E.duration)?E.duration:Infinity,y=Math.max(0,a),_=Math.min(t,C,x);_>y?(v.logger.log("[buffer-controller]: Removing ["+y+","+_+"] from the "+r+" SourceBuffer"),console.assert(!O.updating,r+" sourceBuffer must not be updating"),O.remove(y,_)):f.shiftAndExecuteNext(r)},m.appendExecutor=function(r,a){var t=this.operationQueue,w=this.sourceBuffer,E=w[a];if(!E){v.logger.warn("[buffer-controller]: Attempting to append to the "+a+" SourceBuffer, but it does not exist"),t.shiftAndExecuteNext(a);return}E.ended=!1,console.assert(!E.updating,a+" sourceBuffer must not be updating"),E.appendBuffer(r)},m.blockBuffers=function(r,a){var t=this;if(a===void 0&&(a=this.getSourceBufferTypes()),!a.length){v.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(r);return}var w=this.operationQueue,E=a.map(function(f){return w.appendBlocker(f)});Promise.all(E).then(function(){r(),a.forEach(function(f){var k=t.sourceBuffer[f];(!k||!k.updating)&&w.shiftAndExecuteNext(f)})})},m.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},m.addBufferListener=function(r,a,t){var w=this.sourceBuffer[r];if(!w)return;var E=t.bind(this,r);this.listeners[r].push({event:a,listener:E}),w.addEventListener(a,E)},m.removeBufferListeners=function(r){var a=this.sourceBuffer[r];if(!a)return;this.listeners[r].forEach(function(t){a.removeEventListener(t.event,t.listener)})},h}()},"./src/controller/buffer-operation-queue.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return p});var P=T("./src/utils/logger.ts"),p=function(){function v(b){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=b}var S=v.prototype;return S.append=function(d,l){var n=this.queues[l];n.push(d),n.length===1&&this.buffers[l]&&this.executeNext(l)},S.insertAbort=function(d,l){var n=this.queues[l];n.unshift(d),this.executeNext(l)},S.appendBlocker=function(d){var l,n=new Promise(function(u){l=u}),c={execute:l,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(c,d),n},S.executeNext=function(d){var l=this.buffers,n=this.queues,c=l[d],u=n[d];if(u.length){var o=u[0];try{o.execute()}catch(h){P.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),o.onError(h),(!c||!c.updating)&&(u.shift(),this.executeNext(d))}}},S.shiftAndExecuteNext=function(d){this.queues[d].shift(),this.executeNext(d)},S.current=function(d){return this.queues[d][0]},v}()},"./src/controller/cap-level-controller.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/events.ts");function p(b,d){for(var l=0;l0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var c=this.hls;c.autoLevelCapping=this.getMaxLevel(n.length-1),c.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=c.autoLevelCapping}}},d.getMaxLevel=function(n){var c=this,u=this.hls.levels;if(!u.length)return-1;var o=u.filter(function(h,m){return b.isLevelAllowed(m,c.restrictedLevels)&&m<=n});return this.clientRect=null,b.getMaxLevelByMediaSize(o,this.mediaWidth,this.mediaHeight)},d.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},d.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},d.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,c={width:0,height:0};if(n){var u=n.getBoundingClientRect();c.width=u.width,c.height=u.height,!c.width&&!c.height&&(c.width=u.right-u.left||n.width||0,c.height=u.bottom-u.top||n.height||0)}return this.clientRect=c,c},b.isLevelAllowed=function(n,c){return c===void 0&&(c=[]),c.indexOf(n)===-1},b.getMaxLevelByMediaSize=function(n,c,u){if(!n||!n.length)return-1;for(var o=function(a,t){return t?a.width!==t.width||a.height!==t.height:!0},h=n.length-1,m=0;m=c||s.height>=u)&&o(s,n[m+1])){h=m;break}}return h},v(b,[{key:"mediaWidth",get:function(){return this.getDimensions().width*b.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*b.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(c){}return n}}]),b}();g.default=S},"./src/controller/cmcd-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o});var P=T("./src/events.ts"),p=T("./src/types/cmcd.ts"),v=T("./src/utils/buffer-helper.ts"),S=T("./src/utils/logger.ts");function b(h,m){for(var s=0;s=h.length?{done:!0}:{done:!1,value:h[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(h,m){if(!h)return;if(typeof h=="string")return c(h,m);var s=Object.prototype.toString.call(h).slice(8,-1);if(s==="Object"&&h.constructor&&(s=h.constructor.name),s==="Map"||s==="Set")return Array.from(h);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return c(h,m)}function c(h,m){(m==null||m>h.length)&&(m=h.length);for(var s=0,r=new Array(m);sa&&(a=f.bitrate)}return a>0?a:NaN},m.getBufferLength=function(r){var a=this.hls.media,t=r===p.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!t||!a)return NaN;var w=v.BufferHelper.bufferInfo(t,a.currentTime,this.config.maxBufferHole);return w.len*1e3},m.createPlaylistLoader=function(){var r=this.config.pLoader,a=this.applyPlaylistData,t=r||this.config.loader;return function(){function w(f){this.loader=void 0,this.loader=new t(f)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(k,O,C){a(k),this.loader.load(k,O,C)},d(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},m.createFragmentLoader=function(){var r=this.config.fLoader,a=this.applyFragmentData,t=r||this.config.loader;return function(){function w(f){this.loader=void 0,this.loader=new t(f)}var E=w.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(k,O,C){a(k),this.loader.load(k,O,C)},d(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},h.uuid=function(){var r=URL.createObjectURL(new Blob),a=r.toString();return URL.revokeObjectURL(r),a.substr(a.lastIndexOf("/")+1)},h.serialize=function(r){for(var a=[],t=function(H){return!Number.isNaN(H)&&H!=null&&H!==""&&H!==!1},w=function(H){return Math.round(H)},E=function(H){return w(H/100)*100},f=function(H){return encodeURIComponent(H)},k={br:w,d:w,bl:E,dl:E,mtp:E,nor:f,rtp:E,tb:w},O=Object.keys(r||{}).sort(),C=l(O),x;!(x=C()).done;){var y=x.value,_=r[y];if(!t(_))continue;if(y==="v"&&_===1)continue;if(y=="pr"&&_===1)continue;var M=k[y];M&&(_=M(_));var I=typeof _,N=void 0;y==="ot"||y==="sf"||y==="st"?N=y+"="+_:I==="boolean"?N=y:I==="number"?N=y+"="+_:N=y+"="+JSON.stringify(_),a.push(N)}return a.join(",")},h.toHeaders=function(r){for(var a=Object.keys(r),t={},w=["Object","Request","Session","Status"],E=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},k=0,O=a;kl){this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.KEY_SYSTEM_ERROR,details:p.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var f=l-this._requestLicenseFailureCount+1;v.logger.warn("Retrying license request, "+f+" attempts left"),this._requestLicense(a,t)}break}},h._generateLicenseRequestChallenge=function(s,r){switch(s.mediaKeySystemDomain){case S.KeySystems.WIDEVINE:return r}throw new Error("unsupported key-system: "+s.mediaKeySystemDomain)},h._requestLicense=function(s,r){v.logger.log("Requesting content license for key-system");var a=this._mediaKeysList[0];if(!a){v.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.KEY_SYSTEM_ERROR,details:p.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var t=this.getLicenseServerUrl(a.mediaKeySystemDomain),w=this._createLicenseXhr(t,s,r);v.logger.log("Sending license request to URL: "+t);var E=this._generateLicenseRequestChallenge(a,s);w.send(E)}catch(f){v.logger.error("Failure requesting DRM license: "+f),this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.KEY_SYSTEM_ERROR,details:p.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},h.onMediaAttached=function(s,r){if(!this._emeEnabled)return;var a=r.media;this._media=a,a.addEventListener("encrypted",this._onMediaEncrypted)},h.onMediaDetached=function(){var s=this._media,r=this._mediaKeysList;if(!s)return;s.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(r.map(function(a){if(a.mediaKeysSession)return a.mediaKeysSession.close().catch(function(){})})).then(function(){return s.setMediaKeys(null)}).catch(function(){})},h.onManifestParsed=function(s,r){if(!this._emeEnabled)return;var a=r.levels.map(function(w){return w.audioCodec}).filter(function(w){return!!w}),t=r.levels.map(function(w){return w.videoCodec}).filter(function(w){return!!w});this._attemptKeySystemAccess(S.KeySystems.WIDEVINE,a,t)},d(o,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),o}();g.default=u},"./src/controller/fps-controller.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/events.ts"),p=T("./src/utils/logger.ts"),v=function(){function S(d){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=d,this.registerListeners()}var b=S.prototype;return b.setStreamController=function(l){this.streamController=l},b.registerListeners=function(){this.hls.on(P.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},b.unregisterListeners=function(){this.hls.off(P.Events.MEDIA_ATTACHING,this.onMediaAttaching)},b.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},b.onMediaAttaching=function(l,n){var c=this.hls.config;if(c.capLevelOnFPSDrop){var u=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=u,u&&typeof u.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),c.fpsDroppedMonitoringPeriod)}},b.checkFPS=function(l,n,c){var u=performance.now();if(n){if(this.lastTime){var o=u-this.lastTime,h=c-this.lastDroppedFrames,m=n-this.lastDecodedFrames,s=1e3*h/o,r=this.hls;if(r.trigger(P.Events.FPS_DROP,{currentDropped:h,currentDecoded:m,totalDroppedFrames:c}),s>0&&h>r.config.fpsDroppedMonitoringThreshold*m){var a=r.currentLevel;p.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+a),a>0&&(r.autoLevelCapping===-1||r.autoLevelCapping>=a)&&(a=a-1,r.trigger(P.Events.FPS_DROP_LEVEL_CAPPING,{level:a,droppedLevel:r.currentLevel}),r.autoLevelCapping=a,this.streamController.nextLevelSwitch())}}this.lastTime=u,this.lastDroppedFrames=c,this.lastDecodedFrames=n}},b.checkFPSInterval=function(){var l=this.media;if(l)if(this.isVideoPlaybackQualityAvailable){var n=l.getVideoPlaybackQuality();this.checkFPS(l,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(l,l.webkitDecodedFrameCount,l.webkitDroppedFrameCount)},S}();g.default=v},"./src/controller/fragment-finders.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"findFragmentByPDT",function(){return v}),T.d(g,"findFragmentByPTS",function(){return S}),T.d(g,"fragmentWithinToleranceTest",function(){return b}),T.d(g,"pdtWithinToleranceTest",function(){return d}),T.d(g,"findFragWithCC",function(){return l});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/binary-search.ts");function v(n,c,u){if(c===null||!Array.isArray(n)||!n.length||!Object(P.isFiniteNumber)(c))return null;var o=n[0].programDateTime;if(c<(o||0))return null;var h=n[n.length-1].endProgramDateTime;if(c>=(h||0))return null;u=u||0;for(var m=0;mn&&u.start?-1:0}function d(n,c,u){var o=Math.min(c,u.duration+(u.deltaPTS?u.deltaPTS:0))*1e3,h=u.endProgramDateTime||0;return h-o>n}function l(n,c){return p.default.search(n,function(u){return u.ccc?-1:0})}},"./src/controller/fragment-tracker.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"FragmentState",function(){return v}),T.d(g,"FragmentTracker",function(){return S});var P=T("./src/events.ts"),p=T("./src/types/loader.ts"),v;(function(l){l.NOT_LOADED="NOT_LOADED",l.BACKTRACKED="BACKTRACKED",l.APPENDING="APPENDING",l.PARTIAL="PARTIAL",l.OK="OK"})(v||(v={}));var S=function(){function l(c){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=c,this._registerListeners()}var n=l.prototype;return n._registerListeners=function(){var u=this.hls;u.on(P.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.on(P.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(P.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var u=this.hls;u.off(P.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.off(P.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(P.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(u,o){if(o===p.PlaylistLevelType.MAIN){var h=this.activeFragment,m=this.activeParts;if(!h)return null;if(m)for(var s=m.length;s--;){var r=m[s],a=r?r.end:h.appendedPTS;if(r.start<=u&&a!==void 0&&u<=a)return s>9&&(this.activeParts=m.slice(s-9)),r}else if(h.start<=u&&h.appendedPTS!==void 0&&u<=h.appendedPTS)return h}return this.getBufferedFrag(u,o)},n.getBufferedFrag=function(u,o){for(var h=this.fragments,m=Object.keys(h),s=m.length;s--;){var r=h[m[s]];if((r==null?void 0:r.body.type)===o&&r.buffered){var a=r.body;if(a.start<=u&&u<=a.end)return a}}return null},n.detectEvictedFragments=function(u,o,h){var m=this;Object.keys(this.fragments).forEach(function(s){var r=m.fragments[s];if(!r)return;if(!r.buffered){r.body.type===h&&m.removeFragment(r.body);return}var a=r.range[u];if(!a)return;a.time.some(function(t){var w=!m.isTimeBuffered(t.startPTS,t.endPTS,o);return w&&m.removeFragment(r.body),w})})},n.detectPartialFragments=function(u){var o=this,h=this.timeRanges,m=u.frag,s=u.part;if(!h||m.sn==="initSegment")return;var r=d(m),a=this.fragments[r];if(!a)return;Object.keys(h).forEach(function(t){var w=m.elementaryStreams[t];if(!w)return;var E=h[t],f=s!==null||w.partial===!0;a.range[t]=o.getBufferedTimes(m,s,f,E)}),a.backtrack=a.loaded=null,Object.keys(a.range).length?a.buffered=!0:this.removeFragment(a.body)},n.fragBuffered=function(u){var o=d(u),h=this.fragments[o];h&&(h.backtrack=h.loaded=null,h.buffered=!0)},n.getBufferedTimes=function(u,o,h,m){for(var s={time:[],partial:h},r=o?o.start:u.start,a=o?o.end:u.end,t=u.minEndPTS||a,w=u.maxStartPTS||r,E=0;E=f&&t<=k){s.time.push({startPTS:Math.max(r,m.start(E)),endPTS:Math.min(a,m.end(E))});break}else if(rf)s.partial=!0,s.time.push({startPTS:Math.max(r,m.start(E)),endPTS:Math.min(a,m.end(E))});else if(a<=f)break}return s},n.getPartialFragment=function(u){var o=null,h,m,s,r=0,a=this.bufferPadding,t=this.fragments;return Object.keys(t).forEach(function(w){var E=t[w];if(!E)return;b(E)&&(m=E.body.start-a,s=E.body.end+a,u>=m&&u<=s&&(h=Math.min(u-m,s-u),r<=h&&(o=E.body,r=h)))}),o},n.getState=function(u){var o=d(u),h=this.fragments[o];return h?h.buffered?b(h)?v.PARTIAL:v.OK:h.backtrack?v.BACKTRACKED:v.APPENDING:v.NOT_LOADED},n.backtrack=function(u,o){var h=d(u),m=this.fragments[h];if(!m||m.backtrack)return null;var s=m.backtrack=o||m.loaded;return m.loaded=null,s},n.getBacktrackData=function(u){var o=d(u),h=this.fragments[o];if(h){var m,s=h.backtrack;if(s!=null&&(m=s.payload)!==null&&m!==void 0&&m.byteLength)return s;this.removeFragment(u)}return null},n.isTimeBuffered=function(u,o,h){for(var m,s,r=0;r=m&&o<=s)return!0;if(o<=m)return!1}return!1},n.onFragLoaded=function(u,o){var h=o.frag,m=o.part;if(h.sn==="initSegment"||h.bitrateTest||m)return;var s=d(h);this.fragments[s]={body:h,loaded:o,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(u,o){var h=this,m=o.frag,s=o.part,r=o.timeRanges;if(m.type===p.PlaylistLevelType.MAIN)if(this.activeFragment=m,s){var a=this.activeParts;a||(this.activeParts=a=[]),a.push(s)}else this.activeParts=null;this.timeRanges=r,Object.keys(r).forEach(function(t){var w=r[t];if(h.detectEvictedFragments(t,w),!s)for(var E=0;Eu&&m.removeFragment(a)}})},n.removeFragment=function(u){var o=d(u);u.stats.loaded=0,u.clearElementaryStreamInfo(),delete this.fragments[o]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},l}();function b(l){var n,c;return l.buffered&&(((n=l.range.video)===null||n===void 0?void 0:n.partial)||((c=l.range.audio)===null||c===void 0?void 0:c.partial))}function d(l){return l.type+"_"+l.level+"_"+l.urlId+"_"+l.sn}},"./src/controller/gap-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"STALL_MINIMUM_DURATION_MS",function(){return b}),T.d(g,"MAX_START_GAP_JUMP",function(){return d}),T.d(g,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return l}),T.d(g,"SKIP_BUFFER_RANGE_START",function(){return n}),T.d(g,"default",function(){return c});var P=T("./src/utils/buffer-helper.ts"),p=T("./src/errors.ts"),v=T("./src/events.ts"),S=T("./src/utils/logger.ts"),b=250,d=2,l=.1,n=.05,c=function(){function u(h,m,s,r){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=h,this.media=m,this.fragmentTracker=s,this.hls=r}var o=u.prototype;return o.destroy=function(){this.hls=this.fragmentTracker=this.media=null},o.poll=function(m){var s=this.config,r=this.media,a=this.stalled,t=r.currentTime,w=r.seeking,E=this.seeking&&!w,f=!this.seeking&&w;if(this.seeking=w,t!==m){if(this.moved=!0,a!==null){if(this.stallReported){var k=self.performance.now()-a;S.logger.warn("playback not stuck anymore @"+t+", after "+Math.round(k)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((f||E)&&(this.stalled=null),r.paused||r.ended||r.playbackRate===0||!P.BufferHelper.getBuffered(r).length)return;var O=P.BufferHelper.bufferInfo(r,t,0),C=O.len>0,x=O.nextStart||0;if(!C&&!x)return;if(w){var y=O.len>d,_=!x||x-t>d&&!this.fragmentTracker.getPartialFragment(t);if(y||_)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var M,I=Math.max(x,O.start||0)-t,N=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,G=N==null||((M=N.details)===null||M===void 0)?void 0:M.live,H=G?N.details.targetduration*2:d;if(I>0&&I<=H){this._trySkipBufferHole(null);return}}var B=self.performance.now();if(a===null){this.stalled=B;return}var K=B-a;!w&&K>=b&&this._reportStall(O.len);var U=P.BufferHelper.bufferInfo(r,t,s.maxBufferHole);this._tryFixBufferStall(U,K)},o._tryFixBufferStall=function(m,s){var r=this.config,a=this.fragmentTracker,t=this.media,w=t.currentTime,E=a.getPartialFragment(w);if(E){var f=this._trySkipBufferHole(E);if(f)return}m.len>r.maxBufferHole&&s>r.highBufferWatchdogPeriod*1e3&&(S.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},o._reportStall=function(m){var s=this.hls,r=this.media,a=this.stallReported;a||(this.stallReported=!0,S.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+m+")"),s.trigger(v.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:m}))},o._trySkipBufferHole=function(m){for(var s=this.config,r=this.hls,a=this.media,t=a.currentTime,w=0,E=P.BufferHelper.getBuffered(a),f=0;f=w&&t.05&&this.forwardBufferLength>1){var f=Math.min(2,Math.max(1,r)),k=Math.round(2/(1+Math.exp(-.75*t-this.edgeStalled))*20)/20;u.playbackRate=Math.min(f,Math.max(1,k))}else u.playbackRate!==1&&u.playbackRate!==0&&(u.playbackRate=1)},n.estimateLiveEdge=function(){var u=this.levelDetails;return u===null?null:u.edge+u.age},n.computeLatency=function(){var u=this.estimateLiveEdge();return u===null?null:u-this.currentTime},b(l,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var u=this.config,o=this.levelDetails;return u.liveMaxLatencyDuration!==void 0?u.liveMaxLatencyDuration:o?u.liveMaxLatencyDurationCount*o.targetduration:0}},{key:"targetLatency",get:function(){var u=this.levelDetails;if(u===null)return null;var o=u.holdBack,h=u.partHoldBack,m=u.targetduration,s=this.config,r=s.liveSyncDuration,a=s.liveSyncDurationCount,t=s.lowLatencyMode,w=this.hls.userConfig,E=t&&h||o;(w.liveSyncDuration||w.liveSyncDurationCount||E===0)&&(E=r!==void 0?r:a*m);var f=m,k=1;return E+Math.min(this.stallCount*k,f)}},{key:"liveSyncPosition",get:function(){var u=this.estimateLiveEdge(),o=this.targetLatency,h=this.levelDetails;if(u===null||o===null||h===null)return null;var m=h.edge,s=u-o-this.edgeStalled,r=m-h.totalduration,a=m-(this.config.lowLatencyMode&&h.partTarget||h.targetduration);return Math.min(Math.max(r,s),a)}},{key:"drift",get:function(){var u=this.levelDetails;return u===null?1:u.drift}},{key:"edgeStalled",get:function(){var u=this.levelDetails;if(u===null)return 0;var o=(this.config.lowLatencyMode&&u.partTarget||u.targetduration)*3;return Math.max(u.age-o,0)}},{key:"forwardBufferLength",get:function(){var u=this.media,o=this.levelDetails;if(!u||!o)return 0;var h=u.buffered.length;return h?u.buffered.end(h-1):o.edge-this.currentTime}}]),l}()},"./src/controller/level-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s});var P=T("./src/types/level.ts"),p=T("./src/events.ts"),v=T("./src/errors.ts"),S=T("./src/utils/codecs.ts"),b=T("./src/controller/level-helper.ts"),d=T("./src/controller/base-playlist-controller.ts"),l=T("./src/types/loader.ts");function n(){return n=Object.assign||function(r){for(var a=1;a0){x=k[0].bitrate,k.sort(function(K,U){return K.bitrate-U.bitrate}),this._levels=k;for(var G=0;Gthis.hls.config.fragLoadingMaxRetry&&(y=f.frag.level)):y=f.frag.level}break;case v.ErrorDetails.LEVEL_LOAD_ERROR:case v.ErrorDetails.LEVEL_LOAD_TIMEOUT:k&&(k.deliveryDirectives&&(x=!1),y=k.level),C=!0;break;case v.ErrorDetails.REMUX_ALLOC_ERROR:y=f.level,C=!0;break}y!==void 0&&this.recoverLevel(f,y,C,x)},t.recoverLevel=function(E,f,k,O){var C=E.details,x=this._levels[f];if(x.loadError++,k){var y=this.retryLoadingOrFail(E);if(y)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(O){var _=x.url.length;if(_>1&&x.loadError<_)E.levelRetry=!0,this.redundantFailover(f);else if(this.manualLevelIndex===-1){var M=f===0?this._levels.length-1:f-1;this.currentLevelIndex!==M&&this._levels[M].loadError===0&&(this.warn(C+": switch to "+M),E.levelRetry=!0,this.hls.nextAutoLevel=M)}}},t.redundantFailover=function(E){var f=this._levels[E],k=f.url.length;if(k>1){var O=(f.urlId+1)%k;this.warn("Switching to redundant URL-id "+O),this._levels.forEach(function(C){C.urlId=O}),this.level=E}},t.onFragLoaded=function(E,f){var k=f.frag;if(k!==void 0&&k.type===l.PlaylistLevelType.MAIN){var O=this._levels[k.level];O!==void 0&&(O.fragmentError=0,O.loadError=0)}},t.onLevelLoaded=function(E,f){var k,O=f.level,C=f.details,x=this._levels[O];if(!x){var y;this.warn("Invalid level index "+O),(y=f.deliveryDirectives)!==null&&y!==void 0&&y.skip&&(C.deltaUpdateFailed=!0);return}O===this.currentLevelIndex?(x.fragmentError===0&&(x.loadError=0,this.retryCount=0),this.playlistLoaded(O,f,x.details)):(k=f.deliveryDirectives)!==null&&k!==void 0&&k.skip&&(C.deltaUpdateFailed=!0)},t.onAudioTrackSwitched=function(E,f){var k=this.hls.levels[this.currentLevelIndex];if(!k)return;if(k.audioGroupIds){for(var O=-1,C=this.hls.audioTracks[f.id].groupId,x=0;x0){var O=k.urlId,C=k.url[O];if(E)try{C=E.addDirectives(C)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("Attempt loading level index "+f+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+O+" "+C),this.clearTimer(),this.hls.trigger(p.Events.LEVEL_LOADING,{url:C,level:f,id:O,deliveryDirectives:E||null})}},t.removeLevel=function(E,f){var k=function(x,y){return y!==f},O=this._levels.filter(function(C,x){return x!==E?!0:C.url.length>1&&f!==void 0?(C.url=C.url.filter(k),C.audioGroupIds&&(C.audioGroupIds=C.audioGroupIds.filter(k)),C.textGroupIds&&(C.textGroupIds=C.textGroupIds.filter(k)),C.urlId=0,!0):!1}).map(function(C,x){var y=C.details;return y!=null&&y.fragments&&y.fragments.forEach(function(_){_.level=x}),C});this._levels=O,this.hls.trigger(p.Events.LEVELS_UPDATED,{levels:O})},u(a,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var f,k=this._levels;if(k.length===0)return;if(this.currentLevelIndex===E&&(f=k[E])!==null&&f!==void 0&&f.details)return;if(E<0||E>=k.length){var O=E<0;if(this.hls.trigger(p.Events.ERROR,{type:v.ErrorTypes.OTHER_ERROR,details:v.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:O,reason:"invalid level idx"}),O)return;E=Math.min(E,k.length-1)}this.clearTimer();var C=this.currentLevelIndex,x=k[C],y=k[E];this.log("switching to level "+E+" from "+C),this.currentLevelIndex=E;var _=n({},y,{level:E,maxBitrate:y.maxBitrate,uri:y.uri,urlId:y.urlId});delete _._urlId,this.hls.trigger(p.Events.LEVEL_SWITCHING,_);var M=y.details;if(!M||M.live){var I=this.switchParams(y.uri,x==null?void 0:x.details);this.loadPlaylist(I)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),a}(d.default)},"./src/controller/level-helper.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"addGroupId",function(){return v}),T.d(g,"assignTrackIdsByGroup",function(){return S}),T.d(g,"updatePTS",function(){return b}),T.d(g,"updateFragPTSDTS",function(){return l}),T.d(g,"mergeDetails",function(){return n}),T.d(g,"mapPartIntersection",function(){return c}),T.d(g,"mapFragmentIntersection",function(){return u}),T.d(g,"adjustSliding",function(){return o}),T.d(g,"addSliding",function(){return h}),T.d(g,"computeReloadInterval",function(){return m}),T.d(g,"getFragmentWithSN",function(){return s}),T.d(g,"getPartWith",function(){return r});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/logger.ts");function v(a,t,w){switch(t){case"audio":a.audioGroupIds||(a.audioGroupIds=[]),a.audioGroupIds.push(w);break;case"text":a.textGroupIds||(a.textGroupIds=[]),a.textGroupIds.push(w);break}}function S(a){var t={};a.forEach(function(w){var E=w.groupId||"";w.id=t[E]=t[E]||0,t[E]++})}function b(a,t,w){var E=a[t],f=a[w];d(E,f)}function d(a,t){var w=t.startPTS;if(Object(P.isFiniteNumber)(w)){var E=0,f;t.sn>a.sn?(E=w-a.start,f=a):(E=a.start-w,f=t),f.duration!==E&&(f.duration=E)}else if(t.sn>a.sn){var k=a.cc===t.cc;k&&a.minEndPTS?t.start=a.start+(a.minEndPTS-a.start):t.start=a.start+a.duration}else t.start=Math.max(a.start-t.duration,0)}function l(a,t,w,E,f,k){var O=E-w;O<=0&&(p.logger.warn("Fragment should have a positive duration",t),E=w+t.duration,k=f+t.duration);var C=w,x=E,y=t.startPTS,_=t.endPTS;if(Object(P.isFiniteNumber)(y)){var M=Math.abs(y-w);Object(P.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(M,t.deltaPTS):t.deltaPTS=M,C=Math.max(w,y),w=Math.min(w,y),f=Math.min(f,t.startDTS),x=Math.min(E,_),E=Math.max(E,_),k=Math.max(k,t.endDTS)}t.duration=E-w;var I=w-t.start;t.appendedPTS=E,t.start=t.startPTS=w,t.maxStartPTS=C,t.startDTS=f,t.endPTS=E,t.minEndPTS=x,t.endDTS=k;var N=t.sn;if(!a||Na.endSN)return 0;var G,H=N-a.startSN,B=a.fragments;for(B[H]=t,G=H;G>0;G--)d(B[G],B[G-1]);for(G=H;G=0;f--){var k=E[f].initSegment;if(k){w=k;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;var O=0,C;if(u(a,t,function(G,H){G.relurl&&(O=G.cc-H.cc),Object(P.isFiniteNumber)(G.startPTS)&&Object(P.isFiniteNumber)(G.endPTS)&&(H.start=H.startPTS=G.startPTS,H.startDTS=G.startDTS,H.appendedPTS=G.appendedPTS,H.maxStartPTS=G.maxStartPTS,H.endPTS=G.endPTS,H.endDTS=G.endDTS,H.minEndPTS=G.minEndPTS,H.duration=G.endPTS-G.startPTS,H.duration&&(C=H),t.PTSKnown=t.alignedSliding=!0),H.elementaryStreams=G.elementaryStreams,H.loader=G.loader,H.stats=G.stats,H.urlId=G.urlId,G.initSegment&&(H.initSegment=G.initSegment,w=G.initSegment)}),w){var x=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;x.forEach(function(G){var H;(!G.initSegment||G.initSegment.relurl===((H=w)===null||H===void 0?void 0:H.relurl))&&(G.initSegment=w)})}if(t.skippedSegments&&(t.deltaUpdateFailed=t.fragments.some(function(G){return!G}),t.deltaUpdateFailed)){p.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var y=t.skippedSegments;y--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}var _=t.fragments;if(O){p.logger.warn("discontinuity sliding from playlist, take drift into account");for(var M=0;M<_.length;M++)_[M].cc+=O}t.skippedSegments&&(t.startCC=t.fragments[0].cc),c(a.partList,t.partList,function(G,H){H.elementaryStreams=G.elementaryStreams,H.stats=G.stats}),C?l(t,C,C.startPTS,C.endPTS,C.startDTS,C.endDTS):o(a,t),_.length&&(t.totalduration=t.edge-_[0].start),t.driftStartTime=a.driftStartTime,t.driftStart=a.driftStart;var I=t.advancedDateTime;if(t.advanced&&I){var N=t.edge;t.driftStart||(t.driftStartTime=I,t.driftStart=N),t.driftEndTime=I,t.driftEnd=N}else t.driftEndTime=a.driftEndTime,t.driftEnd=a.driftEnd,t.advancedDateTime=a.advancedDateTime}function c(a,t,w){if(a&&t)for(var E=0,f=0,k=a.length;f<=k;f++){var O=a[f],C=t[f+E];O&&C&&O.index===C.index&&O.fragment.sn===C.fragment.sn?w(O,C):E--}}function u(a,t,w){for(var E=t.skippedSegments,f=Math.max(a.startSN,t.startSN)-t.startSN,k=(a.fragmentHint?1:0)+(E?t.endSN:Math.min(a.endSN,t.endSN))-t.startSN,O=t.startSN-a.startSN,C=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,x=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments,y=f;y<=k;y++){var _=x[O+y],M=C[y];E&&!M&&y=E.length)return;h(t,E[w].start)}function h(a,t){if(t){for(var w=a.fragments,E=a.skippedSegments;E0&&f0&&x===-1&&(this.log("Override startPosition with lastCurrentTime @"+y.toFixed(3)),x=y),this.state=p.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=x,this.tick()}else this._forceStartLoad=!0,this.state=p.State.STOPPED},O.stopLoad=function(){this._forceStartLoad=!1,f.prototype.stopLoad.call(this)},O.doTick=function(){switch(this.state){case p.State.IDLE:this.doTickIdle();break;case p.State.WAITING_LEVEL:{var x,y=this.levels,_=this.level,M=y==null||((x=y[_])===null||x===void 0)?void 0:x.details;if(M&&(!M.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(M))break;this.state=p.State.IDLE;break}break}case p.State.FRAG_LOADING_WAITING_RETRY:{var I,N=self.performance.now(),G=this.retryDate;(!G||N>=G||(I=this.media)!==null&&I!==void 0&&I.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=p.State.IDLE)}break;default:break}this.onTickEnd()},O.onTickEnd=function(){f.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},O.doTickIdle=function(){var x,y,_=this.hls,M=this.levelLastLoaded,I=this.levels,N=this.media,G=_.config,H=_.nextLoadLevel;if(M===null||!N&&(this.startFragRequested||!G.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!I||!I[H])return;var B=I[H];this.level=_.nextLoadLevel=H;var K=B.details;if(!K||this.state===p.State.WAITING_LEVEL||K.live&&this.levelLastLoaded!==H){this.state=p.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:N,l.PlaylistLevelType.MAIN);if(U===null)return;var W=U.len,X=this.getMaxBufferLength(B.maxBitrate);if(W>=X)return;if(this._streamEnded(U,K)){var ne={};this.altAudio&&(ne.type="video"),this.hls.trigger(S.Events.BUFFER_EOS,ne),this.state=p.State.ENDED;return}var fe=U.end,me=this.getNextFragment(fe,K);if(this.couldBacktrack&&!this.fragPrevious&&me&&me.sn!=="initSegment"){var Ae=me.sn-K.startSN;Ae>1&&(me=K.fragments[Ae-1],this.fragmentTracker.removeFragment(me))}if(me&&this.fragmentTracker.getState(me)===d.FragmentState.OK&&this.nextLoadPosition>fe){var De=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,De,l.PlaylistLevelType.MAIN),me=this.getNextFragment(this.nextLoadPosition,K)}if(!me)return;me.initSegment&&!me.initSegment.data&&!this.bitrateTest&&(me=me.initSegment),((x=me.decryptdata)===null||x===void 0?void 0:x.keyFormat)==="identity"&&!((y=me.decryptdata)!==null&&y!==void 0&&y.key)?this.loadKey(me,K):this.loadFragment(me,K,fe)},O.loadFragment=function(x,y,_){var M,I=this.fragmentTracker.getState(x);if(this.fragCurrent=x,I===d.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(x);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else I=d.FragmentState.NOT_LOADED}I===d.FragmentState.NOT_LOADED||I===d.FragmentState.PARTIAL?x.sn==="initSegment"?this._loadInitSegment(x):this.bitrateTest?(x.bitrateTest=!0,this.log("Fragment "+x.sn+" of level "+x.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(x)):(this.startFragRequested=!0,f.prototype.loadFragment.call(this,x,y,_)):I===d.FragmentState.APPENDING?this.reduceMaxBufferLength(x.duration)&&this.fragmentTracker.removeFragment(x):((M=this.media)===null||M===void 0?void 0:M.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},O.getAppendedFrag=function(x){var y=this.fragmentTracker.getAppendedFrag(x,l.PlaylistLevelType.MAIN);return y&&"fragment"in y?y.fragment:y},O.getBufferedFrag=function(x){return this.fragmentTracker.getBufferedFrag(x,l.PlaylistLevelType.MAIN)},O.followingBufferedFrag=function(x){return x?this.getBufferedFrag(x.end+.5):null},O.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},O.nextLevelSwitch=function(){var x=this.levels,y=this.media;if(y!=null&&y.readyState){var _,M=this.getAppendedFrag(y.currentTime);if(M&&M.start>1&&this.flushMainBuffer(0,M.start-1),!y.paused&&x){var I=this.hls.nextLoadLevel,N=x[I],G=this.fragLastKbps;G&&this.fragCurrent?_=this.fragCurrent.duration*N.maxBitrate/(1e3*G)+1:_=0}else _=0;var H=this.getBufferedFrag(y.currentTime+_);if(H){var B=this.followingBufferedFrag(H);if(B){this.abortCurrentFrag();var K=B.maxStartPTS?B.maxStartPTS:B.start,U=B.duration,W=Math.max(H.end,K+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(W,Number.POSITIVE_INFINITY)}}}},O.abortCurrentFrag=function(){var x=this.fragCurrent;this.fragCurrent=null,x!=null&&x.loader&&x.loader.abort(),this.state===p.State.KEY_LOADING&&(this.state=p.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},O.flushMainBuffer=function(x,y){f.prototype.flushMainBuffer.call(this,x,y,this.altAudio?"video":null)},O.onMediaAttached=function(x,y){f.prototype.onMediaAttached.call(this,x,y);var _=y.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),_.addEventListener("playing",this.onvplaying),_.addEventListener("seeked",this.onvseeked),this.gapController=new o.default(this.config,_,this.fragmentTracker,this.hls)},O.onMediaDetaching=function(){var x=this.media;x&&(x.removeEventListener("playing",this.onvplaying),x.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),f.prototype.onMediaDetaching.call(this)},O.onMediaPlaying=function(){this.tick()},O.onMediaSeeked=function(){var x=this.media,y=x?x.currentTime:null;Object(P.isFiniteNumber)(y)&&this.log("Media seeked to "+y.toFixed(3)),this.tick()},O.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(S.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},O.onManifestParsed=function(x,y){var _=!1,M=!1,I;y.levels.forEach(function(N){I=N.audioCodec,I&&(I.indexOf("mp4a.40.2")!==-1&&(_=!0),I.indexOf("mp4a.40.5")!==-1&&(M=!0))}),this.audioCodecSwitch=_&&M&&!Object(v.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=y.levels,this.startFragRequested=!1},O.onLevelLoading=function(x,y){var _=this.levels;if(!_||this.state!==p.State.IDLE)return;var M=_[y.level];(!M.details||M.details.live&&this.levelLastLoaded!==y.level||this.waitForCdnTuneIn(M.details))&&(this.state=p.State.WAITING_LEVEL)},O.onLevelLoaded=function(x,y){var _,M=this.levels,I=y.level,N=y.details,G=N.totalduration;if(!M){this.warn("Levels were reset while loading level "+I);return}this.log("Level "+I+" loaded ["+N.startSN+","+N.endSN+"], cc ["+N.startCC+", "+N.endCC+"] duration:"+G);var H=this.fragCurrent;H&&(this.state===p.State.FRAG_LOADING||this.state===p.State.FRAG_LOADING_WAITING_RETRY)&&(H.level!==y.level&&H.loader&&(this.state=p.State.IDLE,H.loader.abort()));var B=M[I],K=0;if(N.live||(_=B.details)!==null&&_!==void 0&&_.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;K=this.alignPlaylists(N,B.details)}if(B.details=N,this.levelLastLoaded=I,this.hls.trigger(S.Events.LEVEL_UPDATED,{details:N,level:I}),this.state===p.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=p.State.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,K),this.tick()},O._handleFragmentLoadProgress=function(x){var y,_=x.frag,M=x.part,I=x.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+_.sn+" of level "+_.level+" will not be buffered");return}var G=N[_.level],H=G.details;if(!H){this.warn("Dropping fragment "+_.sn+" of level "+_.level+" after level details were reset");return}var B=G.videoCodec,K=H.PTSKnown||!H.live,U=(y=_.initSegment)===null||y===void 0?void 0:y.data,W=this._getAudioCodec(G),X=this.transmuxer=this.transmuxer||new c.default(this.hls,l.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ne=M?M.index:-1,fe=ne!==-1,me=new u.ChunkMetadata(_.level,_.sn,_.stats.chunkCount,I.byteLength,ne,fe),Ae=this.initPTS[_.cc];X.push(I,U,W,B,_,M,H.totalduration,K,me,Ae)},O.onAudioTrackSwitching=function(x,y){var _=this.altAudio,M=!!y.url,I=y.id;if(!M){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var N=this.fragCurrent;N!=null&&N.loader&&(this.log("Switching to main audio track, cancel main fragment load"),N.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var G=this.hls;_&&G.trigger(S.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),G.trigger(S.Events.AUDIO_TRACK_SWITCHED,{id:I})}},O.onAudioTrackSwitched=function(x,y){var _=y.id,M=!!this.hls.audioTracks[_].url;if(M){var I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=M,this.tick()},O.onBufferCreated=function(x,y){var _=y.tracks,M,I,N=!1;for(var G in _){var H=_[G];if(H.id==="main"){if(I=G,M=H,G==="video"){var B=_[G];B&&(this.videoBuffer=B.buffer)}}else N=!0}N&&M?(this.log("Alternate track found, use "+I+".buffered to schedule main fragment loading"),this.mediaBuffer=M.buffer):this.mediaBuffer=this.media},O.onFragBuffered=function(x,y){var _=y.frag,M=y.part;if(_&&_.type!==l.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(_)){this.warn("Fragment "+_.sn+(M?" p: "+M.index:"")+" of level "+_.level+" finished buffering, but was aborted. state: "+this.state),this.state===p.State.PARSED&&(this.state=p.State.IDLE);return}var I=M?M.stats:_.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),_.sn!=="initSegment"&&(this.fragPrevious=_),this.fragBufferedComplete(_,M)},O.onError=function(x,y){switch(y.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.MAIN,y);break;case h.ErrorDetails.LEVEL_LOAD_ERROR:case h.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==p.State.ERROR&&(y.fatal?(this.warn(""+y.details),this.state=p.State.ERROR):!y.levelRetry&&this.state===p.State.WAITING_LEVEL&&(this.state=p.State.IDLE));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(y.parent==="main"&&(this.state===p.State.PARSING||this.state===p.State.PARSED)){var _=!0,M=this.getFwdBufferInfo(this.media,l.PlaylistLevelType.MAIN);M&&M.len>.5&&(_=!this.reduceMaxBufferLength(M.len)),_&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},O.checkBuffer=function(){var x=this.media,y=this.gapController;if(!x||!y||!x.readyState)return;var _=b.BufferHelper.getBuffered(x);!this.loadedmetadata&&_.length?(this.loadedmetadata=!0,this.seekToStartPos()):y.poll(this.lastCurrentTime),this.lastCurrentTime=x.currentTime},O.onFragLoadEmergencyAborted=function(){this.state=p.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},O.onBufferFlushed=function(x,y){var _=y.type;if(_!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var M=(_===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(M,_,l.PlaylistLevelType.MAIN)}},O.onLevelsUpdated=function(x,y){this.levels=y.levels},O.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},O.seekToStartPos=function(){var x=this.media,y=x.currentTime,_=this.startPosition;if(_>=0&&y<_){if(x.seeking){m.logger.log("could not seek to "+_+", already seeking at "+y);return}var M=b.BufferHelper.getBuffered(x),I=M.length?M.start(0):0,N=I-_;N>0&&(N1&&x.seeking===!1){var _=x.currentTime;if(b.BufferHelper.isBuffered(x,_)?y=this.getAppendedFrag(_):b.BufferHelper.isBuffered(x,_+.1)&&(y=this.getAppendedFrag(_+.1)),y){var M=this.fragPlaying,I=y.level;(!M||y.sn!==M.sn||M.level!==I||y.urlId!==M.urlId)&&(this.hls.trigger(S.Events.FRAG_CHANGED,{frag:y}),(!M||M.level!==I)&&this.hls.trigger(S.Events.LEVEL_SWITCHED,{level:I}),this.fragPlaying=y)}}},r(k,[{key:"nextLevel",get:function(){var x=this.nextBufferedFrag;return x?x.level:-1}},{key:"currentLevel",get:function(){var x=this.media;if(x){var y=this.getAppendedFrag(x.currentTime);if(y)return y.level}return-1}},{key:"nextBufferedFrag",get:function(){var x=this.media;if(x){var y=this.getAppendedFrag(x.currentTime);return this.followingBufferedFrag(y)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),k}(p.default)},"./src/controller/subtitle-stream-controller.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"SubtitleStreamController",function(){return a});var P=T("./src/events.ts"),p=T("./src/utils/logger.ts"),v=T("./src/utils/buffer-helper.ts"),S=T("./src/controller/fragment-finders.ts"),b=T("./src/utils/discontinuities.ts"),d=T("./src/controller/level-helper.ts"),l=T("./src/controller/fragment-tracker.ts"),n=T("./src/controller/base-stream-controller.ts"),c=T("./src/types/loader.ts"),u=T("./src/types/level.ts");function o(t,w){for(var E=0;E=y[I].start&&M<=y[I].end){_=y[I];break}var N=C.start+C.duration;_?_.end=N:(_={start:M,end:N},y.push(_)),this.fragmentTracker.fragBuffered(C)},E.onBufferFlushing=function(k,O){var C=O.startOffset,x=O.endOffset;if(C===0&&x!==Number.POSITIVE_INFINITY){var y=this.currentTrackId,_=this.levels;if(!_.length||!_[y]||!_[y].details)return;var M=_[y].details,I=M.targetduration,N=x-I;if(N<=0)return;O.endOffsetSubtitles=Math.max(0,N),this.tracksBuffered.forEach(function(G){for(var H=0;H=M.length||y!==_||!I)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,x.live||(C=I.details)!==null&&C!==void 0&&C.live){var N=this.mainDetails;if(x.deltaUpdateFailed||!N)return;var G=N.fragments[0];if(!I.details)x.hasProgramDateTime&&N.hasProgramDateTime?Object(b.alignMediaPlaylistByPDT)(x,N):G&&Object(d.addSliding)(x,G.start);else{var H=this.alignPlaylists(x,I.details);H===0&&G&&Object(d.addSliding)(x,G.start)}}if(I.details=x,this.levelLastLoaded=y,this.tick(),x.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var B=Object(S.findFragmentByPTS)(null,x.fragments,this.media.currentTime,0);B||(this.warn("Subtitle playlist not aligned with playback"),I.details=void 0)}},E._handleFragmentLoadComplete=function(k){var O=k.frag,C=k.payload,x=O.decryptdata,y=this.hls;if(this.fragContextChanged(O))return;if(C&&C.byteLength>0&&x&&x.key&&x.iv&&x.method==="AES-128"){var _=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(C),x.key.buffer,x.iv.buffer).then(function(M){var I=performance.now();y.trigger(P.Events.FRAG_DECRYPTED,{frag:O,payload:M,stats:{tstart:_,tdecrypt:I}})})}},E.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var k,O=this.currentTrackId,C=this.levels;if(!C.length||!C[O]||!C[O].details)return;var x=C[O].details,y=x.targetduration,_=this.config,M=this.media,I=v.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,M.currentTime-y,_.maxBufferHole),N=I.end,G=I.len,H=this.getMaxBufferLength()+y;if(G>H)return;console.assert(x,"Subtitle track details are defined on idle subtitle stream controller tick");var B=x.fragments,K=B.length,U=x.edge,W,X=this.fragPrevious;if(N-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},m.pollTrackChange=function(r){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,r)},m.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var r=u(this.media.textTracks);r.forEach(function(a){Object(p.clearCurrentCues)(a)}),this.subtitleTrack=-1,this.media=null},m.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},m.onManifestParsed=function(r,a){this.tracks=a.subtitleTracks},m.onSubtitleTrackLoaded=function(r,a){var t=a.id,w=a.details,E=this.trackId,f=this.tracksInGroup[E];if(!f){this.warn("Invalid subtitle track id "+t);return}var k=f.details;f.details=a.details,this.log("subtitle track "+t+" loaded ["+w.startSN+"-"+w.endSN+"]"),t===this.trackId&&(this.retryCount=0,this.playlistLoaded(t,a,k))},m.onLevelLoading=function(r,a){this.switchLevel(a.level)},m.onLevelSwitching=function(r,a){this.switchLevel(a.level)},m.switchLevel=function(r){var a=this.hls.levels[r];if(!(a!=null&&a.textGroupIds))return;var t=a.textGroupIds[a.urlId];if(this.groupId!==t){var w=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(O){return!t||O.groupId===t});this.tracksInGroup=E;var f=this.findTrackId(w==null?void 0:w.name)||this.findTrackId();this.groupId=t;var k={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+t+'" group-id'),this.hls.trigger(P.Events.SUBTITLE_TRACKS_UPDATED,k),f!==-1&&this.setSubtitleTrack(f,w)}},m.findTrackId=function(r){for(var a=this.tracksInGroup,t=0;t=w.length)return;this.clearTimer();var E=w[r];if(this.log("Switching to subtitle track "+r),this.trackId=r,E){var f=E.id,k=E.groupId,O=k===void 0?"":k,C=E.name,x=E.type,y=E.url;this.hls.trigger(P.Events.SUBTITLE_TRACK_SWITCH,{id:f,groupId:O,name:C,type:x,url:y});var _=this.switchParams(E.url,a==null?void 0:a.details);this.loadPlaylist(_)}else this.hls.trigger(P.Events.SUBTITLE_TRACK_SWITCH,{id:r})},m.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var r=-1,a=u(this.media.textTracks),t=0;t=0&&(x[0]=Math.min(x[0],w),x[1]=Math.max(x[1],E),O=!0,y/(E-w)>.5))return}if(O||k.push([w,E]),this.config.renderTextTracksNatively){var _=this.captionsTracks[t];this.Cues.newCue(_,w,E,f)}else{var M=this.Cues.newCue(null,w,E,f);this.hls.trigger(p.Events.CUES_PARSED,{type:"captions",cues:M,track:t})}},r.onInitPtsFound=function(t,w){var E=this,f=w.frag,k=w.id,O=w.initPTS,C=w.timescale,x=this.unparsedVttFrags;k==="main"&&(this.initPTS[f.cc]=O,this.timescale[f.cc]=C),x.length&&(this.unparsedVttFrags=[],x.forEach(function(y){E.onFragLoaded(p.Events.FRAG_LOADED,y)}))},r.getExistingTrack=function(t){var w=this.media;if(w)for(var E=0;E>>8^C&255^99,l[f]=C,n[C]=f;var x=E[f],y=E[x],_=E[y],M=E[C]*257^C*16843008;u[f]=M<<24|M>>>8,o[f]=M<<16|M>>>16,h[f]=M<<8|M>>>24,m[f]=M,M=_*16843009^y*65537^x*257^f*16843008,r[C]=M<<24|M>>>8,a[C]=M<<16|M>>>16,t[C]=M<<8|M>>>24,w[C]=M,f?(f=x^E[E[E[_^x]]],k^=E[E[k]]):f=k=1}},b.expandKey=function(l){for(var n=this.uint8ArrayToUint32Array_(l),c=!0,u=0;u>>6)+1;var M=(t[w+2]&60)>>>2;if(M>_.length-1){a.trigger(v.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+M});return}return O=(t[w+2]&1)<<2,O|=(t[w+3]&192)>>>6,P.logger.log("manifest codec:"+E+", ADTS type:"+f+", samplingIndex:"+M),/firefox/i.test(x)?M>=6?(f=5,C=new Array(4),k=M-3):(f=2,C=new Array(2),k=M):x.indexOf("android")!==-1?(f=2,C=new Array(2),k=M):(f=5,C=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&M>=6?k=M-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(M>=6&&O===1||/vivaldi/i.test(x))||!E&&O===1)&&(f=2,C=new Array(2)),k=M)),C[0]=f<<3,C[0]|=(M&14)>>1,C[1]|=(M&1)<<7,C[1]|=O<<3,f===5&&(C[1]|=(k&14)>>1,C[2]=(k&1)<<7,C[2]|=2<<2,C[3]=0),{config:C,samplerate:_[M],channelCount:O,codec:"mp4a.40."+f,manifestCodec:y}}function b(a,t){return a[t]===255&&(a[t+1]&246)===240}function d(a,t){return a[t+1]&1?7:9}function l(a,t){return(a[t+3]&3)<<11|a[t+4]<<3|(a[t+5]&224)>>>5}function n(a,t){return t+5=a.length)return!1;var E=l(a,t);if(E<=w)return!1;var f=t+E;return f===a.length||c(a,f)}return!1}function h(a,t,w,E,f){if(!a.samplerate){var k=S(t,w,E,f);if(!k)return;a.config=k.config,a.samplerate=k.samplerate,a.channelCount=k.channelCount,a.codec=k.codec,a.manifestCodec=k.manifestCodec,P.logger.log("parsed codec:"+a.codec+", rate:"+k.samplerate+", channels:"+k.channelCount)}}function m(a){return 1024*9e4/a}function s(a,t,w,E,f){var k=d(a,t),O=l(a,t);if(O-=k,O>0){var C=w+E*f;return{headerLength:k,frameLength:O,stamp:C}}}function r(a,t,w,E,f){var k=m(a.samplerate),O=s(t,w,E,f,k);if(O){var C=O.frameLength,x=O.headerLength,y=O.stamp,_=x+C,M=Math.max(0,w+_-t.length),I;M?(I=new Uint8Array(_-x),I.set(t.subarray(w+x,t.length),0)):I=t.subarray(w+x,w+_);var N={unit:I,pts:y};return M||a.samples.push(N),{sample:N,length:_,missing:M}}}},"./src/demux/base-audio-demuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"initPTSFn",function(){return l});var P=T("./src/polyfills/number.ts"),p=T("./src/demux/id3.ts"),v=T("./src/demux/dummy-demuxed-track.ts"),S=T("./src/utils/mp4-tools.ts"),b=T("./src/utils/typed-array.ts"),d=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var c=n.prototype;return c.resetInitSegment=function(o,h,m){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},c.resetTimeStamp=function(){},c.resetContiguity=function(){},c.canParse=function(o,h){return!1},c.appendFrame=function(o,h,m){},c.demux=function(o,h){this.cachedData&&(o=Object(S.appendUint8Array)(this.cachedData,o),this.cachedData=null);var m=p.getID3Data(o,0),s=m?m.length:0,r,a,t=this._audioTrack,w=this._id3Track,E=m?p.getTimeStamp(m):void 0,f=o.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=l(E,h)),m&&m.length>0&&w.samples.push({pts:this.initPTS,dts:this.initPTS,data:m}),a=this.initPTS;sd?(this.word<<=d,this.bitsAvailable-=d):(d-=this.bitsAvailable,l=d>>3,d-=l>>3,this.bytesAvailable-=l,this.loadWord(),this.word<<=d,this.bitsAvailable-=d)},S.readBits=function(d){var l=Math.min(this.bitsAvailable,d),n=this.word>>>32-l;return d>32&&P.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=l,this.bitsAvailable>0?this.word<<=l:this.bytesAvailable>0&&this.loadWord(),l=d-l,l>0&&this.bitsAvailable?n<>>d)!==0)return this.word<<=d,this.bitsAvailable-=d,d;return this.loadWord(),d+this.skipLZ()},S.skipUEG=function(){this.skipBits(1+this.skipLZ())},S.skipEG=function(){this.skipBits(1+this.skipLZ())},S.readUEG=function(){var d=this.skipLZ();return this.readBits(d+1)-1},S.readEG=function(){var d=this.readUEG();return 1&d?1+d>>>1:-1*(d>>>1)},S.readBoolean=function(){return this.readBits(1)===1},S.readUByte=function(){return this.readBits(8)},S.readUShort=function(){return this.readBits(16)},S.readUInt=function(){return this.readBits(32)},S.skipScalingList=function(d){for(var l=8,n=8,c,u=0;u0?f.subarray(O,O+C):void 0},S=function(f,k){var O=0;return O=(f[k]&127)<<21,O|=(f[k+1]&127)<<14,O|=(f[k+2]&127)<<7,O|=f[k+3]&127,O},b=function(f,k){return P(f,k)&&S(f,k+6)+10<=f.length-k},d=function(f){for(var k=c(f),O=0;O>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(_);break;case 12:case 13:M=f[G++],N+=String.fromCharCode((_&31)<<6|M&63);break;case 14:M=f[G++],I=f[G++],N+=String.fromCharCode((_&15)<<12|(M&63)<<6|(I&63)<<0);break;default:}}return N},a={decodeTextFrame:h},t;function w(){return!t&&typeof self.TextDecoder!="undefined"&&(t=new self.TextDecoder("utf-8")),t}},"./src/demux/mp3demuxer.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/demux/base-audio-demuxer.ts"),p=T("./src/demux/id3.ts"),v=T("./src/utils/logger.ts"),S=T("./src/demux/mpegaudio.ts");function b(n,c){n.prototype=Object.create(c.prototype),n.prototype.constructor=n,d(n,c)}function d(n,c){return d=Object.setPrototypeOf||function(o,h){return o.__proto__=h,o},d(n,c)}var l=function(n){b(c,n);function c(){return n.apply(this,arguments)||this}var u=c.prototype;return u.resetInitSegment=function(h,m,s){n.prototype.resetInitSegment.call(this,h,m,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:h,duration:s,inputTimeScale:9e4,dropped:0}},c.probe=function(h){if(!h)return!1;for(var m=p.getID3Data(h,0)||[],s=m.length,r=h.length;s0},b.demux=function(l){var n=l,c=Object(p.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(P.appendUint8Array)(this.remainderData,l));var u=Object(P.segmentValidRange)(n);this.remainderData=u.remainder,c.samples=u.valid||new Uint8Array}else c.samples=n;return{audioTrack:Object(p.dummyTrack)(),avcTrack:c,id3Track:Object(p.dummyTrack)(),textTrack:Object(p.dummyTrack)()}},b.flush=function(){var l=Object(p.dummyTrack)();return l.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(p.dummyTrack)(),avcTrack:l,id3Track:Object(p.dummyTrack)(),textTrack:Object(p.dummyTrack)()}},b.demuxSampleAes=function(l,n,c){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},b.destroy=function(){},S}();v.minProbeByteLength=1024,g.default=v},"./src/demux/mpegaudio.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"appendFrame",function(){return d}),T.d(g,"parseHeader",function(){return l}),T.d(g,"isHeaderPattern",function(){return n}),T.d(g,"isHeader",function(){return c}),T.d(g,"canParse",function(){return u}),T.d(g,"probe",function(){return o});var P=null,p=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],v=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],S=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],b=[0,1,1,4];function d(h,m,s,r,a){if(s+24>m.length)return;var t=l(m,s);if(t&&s+t.frameLength<=m.length){var w=t.samplesPerFrame*9e4/t.sampleRate,E=r+a*w,f={unit:m.subarray(s,s+t.frameLength),pts:E,dts:E};return h.config=[],h.channelCount=t.channelCount,h.samplerate=t.sampleRate,h.samples.push(f),{sample:f,length:t.frameLength,missing:0}}}function l(h,m){var s=h[m+1]>>3&3,r=h[m+1]>>1&3,a=h[m+2]>>4&15,t=h[m+2]>>2&3;if(s!==1&&a!==0&&a!==15&&t!==3){var w=h[m+2]>>1&1,E=h[m+3]>>6,f=s===3?3-r:r===3?3:4,k=p[f*14+a-1]*1e3,O=s===3?0:s===2?1:2,C=v[O*3+t],x=E===3?1:2,y=S[s][r],_=b[r],M=y*8*_,I=Math.floor(y*k/C+w)*_;if(P===null){var N=navigator.userAgent||"",G=N.match(/Chrome\/(\d+)/i);P=G?parseInt(G[1]):0}var H=!!P&&P<=87;return H&&r===2&&k>=224e3&&E===0&&(h[m+3]=h[m+3]|128),{sampleRate:C,channelCount:x,frameLength:I,samplesPerFrame:M}}}function n(h,m){return h[m]===255&&(h[m+1]&224)===224&&(h[m+1]&6)!==0}function c(h,m){return m+1=l.length){c();return}if(l[n].unit.length<32)continue;var u=this.decrypter.isSync();if(this.decryptAacSample(l,n,c,u),!u)return}},b.getAvcEncryptedData=function(l){for(var n=Math.floor((l.length-48)/160)*16+16,c=new Int8Array(n),u=0,o=32;o<=l.length-16;o+=160,u+=16)c.set(l.subarray(o,o+16),u);return c},b.getAvcDecryptedUnit=function(l,n){for(var c=new Uint8Array(n),u=0,o=32;o<=l.length-16;o+=160,u+=16)l.set(c.subarray(u,u+16),o);return l},b.decryptAvcSample=function(l,n,c,u,o,h){var m=Object(p.discardEPB)(o.data),s=this.getAvcEncryptedData(m),r=this;this.decryptBuffer(s.buffer,function(a){o.data=r.getAvcDecryptedUnit(m,a),h||r.decryptAvcSamples(l,n,c+1,u)})},b.decryptAvcSamples=function(l,n,c,u){if(l instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,c=0){if(n>=l.length){u();return}for(var o=l[n].units;!(c>=o.length);c++){var h=o[c];if(h.data.length<=48||h.type!==1&&h.type!==5)continue;var m=this.decrypter.isSync();if(this.decryptAvcSample(l,n,c,u,h,m),!m)return}}},S}();g.default=v},"./src/demux/transmuxer-interface.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o});var P=T("./node_modules/webworkify-webpack/index.js"),p=T.n(P),v=T("./src/events.ts"),S=T("./src/demux/transmuxer.ts"),b=T("./src/utils/logger.ts"),d=T("./src/errors.ts"),l=T("./src/utils/mediasource-helper.ts"),n=T("./node_modules/eventemitter3/index.js"),c=T.n(n),u=Object(l.getMediaSource)()||{isTypeSupported:function(){return!1}},o=function(){function h(s,r,a,t){var w=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=s,this.id=r,this.onTransmuxComplete=a,this.onFlush=t;var E=s.config,f=function(y,_){_=_||{},_.frag=w.frag,_.id=w.id,s.trigger(y,_)};this.observer=new n.EventEmitter,this.observer.on(v.Events.FRAG_DECRYPTED,f),this.observer.on(v.Events.ERROR,f);var k={mp4:u.isTypeSupported("video/mp4"),mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"')},O=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){b.logger.log("demuxing in webworker");var C;try{C=this.worker=P("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),C.addEventListener("message",this.onwmsg),C.onerror=function(x){s.trigger(v.Events.ERROR,{type:d.ErrorTypes.OTHER_ERROR,details:d.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(x.message+" ("+x.filename+":"+x.lineno+")")})},C.postMessage({cmd:"init",typeSupported:k,vendor:O,id:r,config:JSON.stringify(E)})}catch(x){b.logger.warn("Error in worker:",x),b.logger.error("Error while initializing DemuxerWorker, fallback to inline"),C&&self.URL.revokeObjectURL(C.objectURL),this.transmuxer=new S.default(this.observer,k,E,O,r),this.worker=null}}else this.transmuxer=new S.default(this.observer,k,E,O,r)}var m=h.prototype;return m.destroy=function(){var r=this.worker;if(r)r.removeEventListener("message",this.onwmsg),r.terminate(),this.worker=null;else{var a=this.transmuxer;a&&(a.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.observer=null},m.push=function(r,a,t,w,E,f,k,O,C,x){var y=this;C.transmuxing.start=self.performance.now();var _=this.transmuxer,M=this.worker,I=f?f.start:E.start,N=E.decryptdata,G=this.frag,H=!(G&&E.cc===G.cc),B=!(G&&C.level===G.level),K=G?C.sn-G.sn:-1,U=this.part?C.part-this.part.index:1,W=!B&&(K===1||K===0&&U===1),X=self.performance.now();(B||K||E.stats.parsing.start===0)&&(E.stats.parsing.start=X),f&&(U||!W)&&(f.stats.parsing.start=X);var ne=new S.TransmuxState(H,W,O,B,I);if(!W||H){b.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+C.sn+" p: "+C.part+" level: "+C.level+" id: "+C.id+` discontinuity: `+H+` trackSwitch: `+B+` contiguous: `+W+` accurateTimeOffset: `+O+` - timeOffset: `+I);var fe=new _.TransmuxConfig(t,w,a,k,x);this.configureTransmuxer(fe)}if(this.frag=E,this.part=f,M)M.postMessage({cmd:"demux",data:r,decryptdata:N,chunkMeta:C,state:ne},r instanceof ArrayBuffer?[r]:[]);else if(S){var me=S.push(r,N,C,ne);Object(_.isPromise)(me)?me.then(function(Ae){y.handleTransmuxComplete(Ae)}):this.handleTransmuxComplete(me)}},m.flush=function(r){var a=this;r.transmuxing.start=self.performance.now();var t=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:r});else if(t){var E=t.flush(r);Object(_.isPromise)(E)?E.then(function(f){a.handleFlushResult(f,r)}):this.handleFlushResult(E,r)}},m.handleFlushResult=function(r,a){var t=this;r.forEach(function(w){t.handleTransmuxComplete(w)}),this.onFlush(a)},m.onWorkerMessage=function(r){var a=r.data,t=this.hls;switch(a.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(a.data);break}case"flush":{this.onFlush(a.data);break}default:{a.data=a.data||{},a.data.frag=this.frag,a.data.id=this.id,t.trigger(a.event,a.data);break}}},m.configureTransmuxer=function(r){var a=this.worker,t=this.transmuxer;a?a.postMessage({cmd:"configure",config:r}):t&&t.configure(r)},m.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},h}()},"./src/demux/transmuxer-worker.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return d});var P=T("./src/demux/transmuxer.ts"),p=T("./src/events.ts"),v=T("./src/utils/logger.ts"),_=T("./node_modules/eventemitter3/index.js"),b=T.n(_);function d(o){var h=new _.EventEmitter,m=function(r,a){o.postMessage({event:r,data:a})};h.on(p.Events.FRAG_DECRYPTED,m),h.on(p.Events.ERROR,m),o.addEventListener("message",function(s){var r=s.data;switch(r.cmd){case"init":{var a=JSON.parse(r.config);o.transmuxer=new P.default(h,r.typeSupported,a,r.vendor,r.id),Object(v.enableLogs)(a.debug),m("init",null);break}case"configure":{o.transmuxer.configure(r.config);break}case"demux":{var t=o.transmuxer.push(r.data,r.decryptdata,r.chunkMeta,r.state);Object(P.isPromise)(t)?t.then(function(f){l(o,f)}):l(o,t);break}case"flush":{var w=r.chunkMeta,E=o.transmuxer.flush(w);Object(P.isPromise)(E)?E.then(function(f){c(o,f,w)}):c(o,E,w);break}default:break}})}function l(o,h){if(u(h.remuxResult))return;var m=[],s=h.remuxResult,r=s.audio,a=s.video;r&&n(m,r),a&&n(m,a),o.postMessage({event:"transmuxComplete",data:h},m)}function n(o,h){h.data1&&o.push(h.data1.buffer),h.data2&&o.push(h.data2.buffer)}function c(o,h,m){h.forEach(function(s){l(o,s)}),o.postMessage({event:"flush",data:m})}function u(o){return!o.audio&&!o.video&&!o.text&&!o.id3&&!o.initSegment}},"./src/demux/transmuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return a}),T.d(g,"isPromise",function(){return E}),T.d(g,"TransmuxConfig",function(){return f}),T.d(g,"TransmuxState",function(){return k});var P=T("./src/events.ts"),p=T("./src/errors.ts"),v=T("./src/crypt/decrypter.ts"),_=T("./src/demux/aacdemuxer.ts"),b=T("./src/demux/mp4demuxer.ts"),d=T("./src/demux/tsdemuxer.ts"),l=T("./src/demux/mp3demuxer.ts"),n=T("./src/remux/mp4-remuxer.ts"),c=T("./src/remux/passthrough-remuxer.ts"),u=T("./src/demux/chunk-cache.ts"),o=T("./src/utils/mp4-tools.ts"),h=T("./src/utils/logger.ts"),m;try{m=self.performance.now.bind(self.performance)}catch(O){h.logger.debug("Unable to use Performance API on this environment"),m=self.Date.now}var s=[{demux:d.default,remux:n.default},{demux:b.default,remux:c.default},{demux:_.default,remux:n.default},{demux:l.default,remux:n.default}],r=1024;s.forEach(function(O){var C=O.demux;r=Math.max(r,C.minProbeByteLength)});var a=function(){function O(x,y,S,M,I){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new u.default,this.observer=x,this.typeSupported=y,this.config=S,this.vendor=M,this.id=I}var C=O.prototype;return C.configure=function(y){this.transmuxConfig=y,this.decrypter&&this.decrypter.reset()},C.push=function(y,S,M,I){var N=this,G=M.transmuxing;G.executeStart=m();var H=new Uint8Array(y),B=this.cache,K=this.config,U=this.currentTransmuxState,W=this.transmuxConfig;I&&(this.currentTransmuxState=I);var X=t(H,S);if(X&&X.method==="AES-128"){var ne=this.getDecrypter();if(K.enableSoftwareAES){var fe=ne.softwareDecrypt(H,X.key.buffer,X.iv.buffer);if(!fe)return G.executeEnd=m(),w(M);H=new Uint8Array(fe)}else return this.decryptionPromise=ne.webCryptoDecrypt(H,X.key.buffer,X.iv.buffer).then(function(Q){var V=N.push(Q,null,M);return N.decryptionPromise=null,V}),this.decryptionPromise}var me=I||U,Ae=me.contiguous,De=me.discontinuity,ye=me.trackSwitch,Oe=me.accurateTimeOffset,xe=me.timeOffset,ue=W.audioCodec,le=W.videoCodec,re=W.defaultInitPts,pe=W.duration,ee=W.initSegmentData;if((De||ye)&&this.resetInitSegment(ee,ue,le,pe),De&&this.resetInitialTimestamp(re),Ae||this.resetContiguity(),this.needsProbing(H,De,ye)){if(B.dataLength){var te=B.flush();H=Object(o.appendUint8Array)(te,H)}this.configureTransmuxer(H,W)}var ce=this.transmux(H,X,xe,Oe,M),q=this.currentTransmuxState;return q.contiguous=!0,q.discontinuity=!1,q.trackSwitch=!1,G.executeEnd=m(),ce},C.flush=function(y){var S=this,M=y.transmuxing;M.executeStart=m();var I=this.decrypter,N=this.cache,G=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return S.flush(y)});var B=[],K=G.timeOffset;if(I){var U=I.flush();U&&B.push(this.push(U,null,y))}var W=N.dataLength;N.reset();var X=this.demuxer,ne=this.remuxer;if(!X||!ne)return W>=r&&this.observer.emit(P.Events.ERROR,P.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),M.executeEnd=m(),[w(y)];var fe=X.flush(K);return E(fe)?fe.then(function(me){return S.flushRemux(B,me,y),B}):(this.flushRemux(B,fe,y),B)},C.flushRemux=function(y,S,M){var I=S.audioTrack,N=S.avcTrack,G=S.id3Track,H=S.textTrack,B=this.currentTransmuxState,K=B.accurateTimeOffset,U=B.timeOffset;h.logger.log("[transmuxer.ts]: Flushed fragment "+M.sn+(M.part>-1?" p: "+M.part:"")+" of level "+M.level);var W=this.remuxer.remux(I,N,G,H,U,K,!0,this.id);y.push({remuxResult:W,chunkMeta:M}),M.transmuxing.executeEnd=m()},C.resetInitialTimestamp=function(y){var S=this.demuxer,M=this.remuxer;if(!S||!M)return;S.resetTimeStamp(y),M.resetTimeStamp(y)},C.resetContiguity=function(){var y=this.demuxer,S=this.remuxer;if(!y||!S)return;y.resetContiguity(),S.resetNextTimestamp()},C.resetInitSegment=function(y,S,M,I){var N=this.demuxer,G=this.remuxer;if(!N||!G)return;N.resetInitSegment(S,M,I),G.resetInitSegment(y,S,M)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(y,S,M,I,N){var G;return S&&S.method==="SAMPLE-AES"?G=this.transmuxSampleAes(y,S,M,I,N):G=this.transmuxUnencrypted(y,M,I,N),G},C.transmuxUnencrypted=function(y,S,M,I){var N=this.demuxer.demux(y,S,!1,!this.config.progressive),G=N.audioTrack,H=N.avcTrack,B=N.id3Track,K=N.textTrack,U=this.remuxer.remux(G,H,B,K,S,M,!1,this.id);return{remuxResult:U,chunkMeta:I}},C.transmuxSampleAes=function(y,S,M,I,N){var G=this;return this.demuxer.demuxSampleAes(y,S,M).then(function(H){var B=G.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,M,I,!1,G.id);return{remuxResult:B,chunkMeta:N}})},C.configureTransmuxer=function(y,S){for(var M=this.config,I=this.observer,N=this.typeSupported,G=this.vendor,H=S.audioCodec,B=S.defaultInitPts,K=S.duration,U=S.initSegmentData,W=S.videoCodec,X,ne=0,fe=s.length;ne0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(x=C),x}var w=function(C){return{remuxResult:{},chunkMeta:C}};function E(O){return"then"in O&&O.then instanceof Function}var f=function(C,x,y,S,M){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=x,this.initSegmentData=y,this.duration=S,this.defaultInitPts=M},k=function(C,x,y,S,M){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=x,this.accurateTimeOffset=y,this.trackSwitch=S,this.timeOffset=M}},"./src/demux/tsdemuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"discardEPB",function(){return w});var P=T("./src/demux/adts.ts"),p=T("./src/demux/mpegaudio.ts"),v=T("./src/demux/exp-golomb.ts"),_=T("./src/demux/id3.ts"),b=T("./src/demux/sample-aes.ts"),d=T("./src/events.ts"),l=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/logger.ts"),c=T("./src/errors.ts"),u={video:1,audio:2,id3:3,text:4},o=function(){function E(k,O,C){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=k,this.config=O,this.typeSupported=C}E.probe=function(O){var C=E.syncOffset(O);return C<0?!1:(C&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},E.syncOffset=function(O){for(var C=Math.min(1e3,O.length-3*188),x=0;x>4,ue=void 0;if(xe>1){if(ue=De+5+O[De+4],ue===De+188)continue}else ue=De+4;switch(Oe){case G:ye&&(H&&(S=r(H))&&this.parseAVCPES(S,!1),H={data:[],size:0}),H&&(H.data.push(O.subarray(ue,De+188)),H.size+=De+188-ue);break;case B:ye&&(U&&(S=r(U))&&(I.isAAC?this.parseAACPES(S):this.parseMPEGPES(S)),U={data:[],size:0}),U&&(U.data.push(O.subarray(ue,De+188)),U.size+=De+188-ue);break;case K:ye&&(W&&(S=r(W))&&this.parseID3PES(S),W={data:[],size:0}),W&&(W.data.push(O.subarray(ue,De+188)),W.size+=De+188-ue);break;case 0:ye&&(ue+=O[ue]+1),fe=this._pmtId=m(O,ue);break;case fe:{ye&&(ue+=O[ue]+1);var le=s(O,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,x);G=le.avc,G>0&&(M.pid=G),B=le.audio,B>0&&(I.pid=B,I.isAAC=le.isAAC),K=le.id3,K>0&&(N.pid=K),X&&!ne&&(n.logger.log("reparse from beginning"),X=!1,De=Ae-188),ne=this.pmtParsed=!0;break}case 17:case 8191:break;default:X=!0;break}}else this.observer.emit(d.Events.ERROR,d.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});M.pesData=H,I.pesData=U,N.pesData=W;var re={audioTrack:I,avcTrack:M,id3Track:N,textTrack:this._txtTrack};return y&&this.extractRemainingSamples(re),re},f.flush=function(){var O=this.remainderData;this.remainderData=null;var C;return O?C=this.demux(O,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},f.extractRemainingSamples=function(O){var C=O.audioTrack,x=O.avcTrack,y=O.id3Track,S=x.pesData,M=C.pesData,I=y.pesData,N;S&&(N=r(S))?(this.parseAVCPES(N,!0),x.pesData=null):x.pesData=S,M&&(N=r(M))?(C.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),C.pesData=null):(M!=null&&M.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=M),I&&(N=r(I))?(this.parseID3PES(N),y.pesData=null):y.pesData=I},f.demuxSampleAes=function(O,C,x){var y=this.demux(O,x,!0,!this.config.progressive),S=this.sampleAes=new b.default(this.observer,this.config,C);return this.decrypt(y,S)},f.decrypt=function(O,C){return new Promise(function(x){var y=O.audioTrack,S=O.avcTrack;y.samples&&y.isAAC?C.decryptAacSamples(y.samples,0,function(){S.samples?C.decryptAvcSamples(S.samples,0,0,function(){x(O)}):x(O)}):S.samples&&C.decryptAvcSamples(S.samples,0,0,function(){x(O)})})},f.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},f.parseAVCPES=function(O,C){var x=this,y=this._avcTrack,S=this.parseAVCNALu(O.data),M=!1,I=this.avcSample,N,G=!1;O.data=null,I&&S.length&&!y.audFound&&(a(I,y),I=this.avcSample=h(!1,O.pts,O.dts,"")),S.forEach(function(H){switch(H.type){case 1:{N=!0,I||(I=x.avcSample=h(!0,O.pts,O.dts,"")),M&&(I.debug+="NDR "),I.frame=!0;var B=H.data;if(G&&B.length>4){var K=new v.default(B).readSliceType();(K===2||K===4||K===7||K===9)&&(I.key=!0)}break}case 5:N=!0,I||(I=x.avcSample=h(!0,O.pts,O.dts,"")),M&&(I.debug+="IDR "),I.key=!0,I.frame=!0;break;case 6:{N=!0,M&&I&&(I.debug+="SEI ");var U=new v.default(w(H.data));U.readUByte();for(var W=0,X=0,ne=!1,fe=0;!ne&&U.bytesAvailable>1;){W=0;do fe=U.readUByte(),W+=fe;while(fe===255);X=0;do fe=U.readUByte(),X+=fe;while(fe===255);if(W===4&&U.bytesAvailable!==0){ne=!0;var me=U.readUByte();if(me===181){var Ae=U.readUShort();if(Ae===49){var De=U.readUInt();if(De===1195456820){var ye=U.readUByte();if(ye===3){for(var Oe=U.readUByte(),xe=U.readUByte(),ue=31&Oe,le=[Oe,xe],re=0;re16){for(var pe=[],ee=0;ee<16;ee++)pe.push(U.readUByte().toString(16)),(ee===3||ee===5||ee===7||ee===9)&&pe.push("-");for(var te=X-16,ce=new Uint8Array(te),q=0;q=0){var U={data:O.subarray(B,I-y-1),type:K};M.push(U)}else{var W=this.getLastNalUnit();if(W&&(S&&I<=4-S&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-S))),G=I-y-1,G>0)){var X=new Uint8Array(W.data.byteLength+G);X.set(W.data,0),X.set(O.subarray(0,G),W.data.byteLength),W.data=X,W.state=0}}I=0&&y>=0){var ne={data:O.subarray(B,C),type:K,state:y};M.push(ne)}if(M.length===0){var fe=this.getLastNalUnit();if(fe){var me=new Uint8Array(fe.data.byteLength+O.byteLength);me.set(fe.data,0),me.set(O,fe.data.byteLength),fe.data=me}}return x.naluState=y,M},f.parseAACPES=function(O){var C=0,x=this._audioTrack,y=this.aacOverFlow,S=O.data;if(y){this.aacOverFlow=null;var M=y.sample.unit.byteLength,I=Math.min(y.missing,M),N=M-I;y.sample.unit.set(S.subarray(0,I),N),x.samples.push(y.sample),C=y.missing}var G,H;for(G=C,H=S.length;G1;){var M=new Uint8Array(S[0].length+S[1].length);M.set(S[0]),M.set(S[1],S[0].length),S[0]=M,S.splice(1,1)}k=S[0];var I=(k[0]<<16)+(k[1]<<8)+k[2];if(I===1){if(O=(k[4]<<8)+k[5],O&&O>E.size-6)return null;var N=k[7];N&192&&(x=(k[9]&14)*536870912+(k[10]&255)*4194304+(k[11]&254)*16384+(k[12]&255)*128+(k[13]&254)/2,N&64?(y=(k[14]&14)*536870912+(k[15]&255)*4194304+(k[16]&254)*16384+(k[17]&255)*128+(k[18]&254)/2,x-y>60*9e4&&(n.logger.warn(Math.round((x-y)/9e4)+"s delta between PTS and DTS, align them"),x=y)):y=x),C=k[8];var G=C+9;if(E.size<=G)return null;E.size-=G;for(var H=new Uint8Array(E.size),B=0,K=S.length;BU){G-=U;continue}else k=k.subarray(G),U-=G,G=0;H.set(k,f),f+=U}return O&&(O-=C+3),{data:H,pts:x,dts:y,len:O}}return null}function a(E,f){if(E.units.length&&E.frame){if(E.pts===void 0){var k=f.samples,O=k.length;if(O){var C=k[O-1];E.pts=C.pts,E.dts=C.dts}else{f.dropped++;return}}f.samples.push(E)}E.debug.length&&n.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function t(E,f){var k=E.length;if(k>0){if(f.pts>=E[k-1].pts)E.push(f);else for(var O=k-1;O>=0;O--)if(f.ptsx)return S;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,x=this.autoLevelCapping,y;return x===-1&&C&&C.length?y=C.length-1:y=x,y}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var x=this.audioTrackController;x&&(x.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var x=this.subtitleTrackController;x&&(x.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var x=this.subtitleTrackController;x&&(x.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return a.ErrorTypes}},{key:"ErrorDetails",get:function(){return a.ErrorDetails}},{key:"DefaultConfig",get:function(){return f.defaultConfig?f.defaultConfig:h.hlsDefaultConfig},set:function(C){f.defaultConfig=C}}]),f}();E.defaultConfig=void 0},"./src/is-supported.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"isSupported",function(){return v}),T.d(g,"changeTypeSupported",function(){return _});var P=T("./src/utils/mediasource-helper.ts");function p(){return self.SourceBuffer||self.WebKitSourceBuffer}function v(){var b=Object(P.getMediaSource)();if(!b)return!1;var d=p(),l=b&&typeof b.isTypeSupported=="function"&&b.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!d||d.prototype&&typeof d.prototype.appendBuffer=="function"&&typeof d.prototype.remove=="function";return!!l&&!!n}function _(){var b,d=p();return typeof(d==null||((b=d.prototype)===null||b===void 0)?void 0:b.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o}),T.d(g,"LoadError",function(){return m});var P=T("./src/polyfills/number.ts"),p=T("./src/errors.ts");function v(s,r){s.prototype=Object.create(r.prototype),s.prototype.constructor=s,n(s,r)}function _(s){var r=typeof Map=="function"?new Map:void 0;return _=function(t){if(t===null||!l(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(t))return r.get(t);r.set(t,w)}function w(){return b(t,arguments,c(this).constructor)}return w.prototype=Object.create(t.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),n(w,t)},_(s)}function b(s,r,a){return d()?b=Reflect.construct:b=function(w,E,f){var k=[null];k.push.apply(k,E);var O=Function.bind.apply(w,k),C=new O;return f&&n(C,f.prototype),C},b.apply(null,arguments)}function d(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(s){return!1}}function l(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function n(s,r){return n=Object.setPrototypeOf||function(t,w){return t.__proto__=w,t},n(s,r)}function c(s){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},c(s)}var u=Math.pow(2,17),o=function(){function s(a){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=a}var r=s.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(t,w){var E=this,f=t.url;if(!f)return Promise.reject(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,networkDetails:null},"Fragment does not have a "+(f?"part list":"url")));this.abort();var k=this.config,O=k.fLoader,C=k.loader;return new Promise(function(x,y){E.loader&&E.loader.destroy();var S=E.loader=t.loader=O?new O(k):new C(k),M=h(t),I={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:u};t.stats=S.stats,S.load(M,I,{onSuccess:function(G,H,B,K){E.resetLoader(t,S),x({frag:t,part:null,payload:G.data,networkDetails:K})},onError:function(G,H,B){E.resetLoader(t,S),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:G,networkDetails:B}))},onAbort:function(G,H,B){E.resetLoader(t,S),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,networkDetails:B}))},onTimeout:function(G,H,B){E.resetLoader(t,S),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,networkDetails:B}))},onProgress:function(G,H,B,K){w&&w({frag:t,part:null,payload:B,networkDetails:K})}})})},r.loadPart=function(t,w,E){var f=this;this.abort();var k=this.config,O=k.fLoader,C=k.loader;return new Promise(function(x,y){f.loader&&f.loader.destroy();var S=f.loader=t.loader=O?new O(k):new C(k),M=h(t,w),I={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:u};w.stats=S.stats,S.load(M,I,{onSuccess:function(G,H,B,K){f.resetLoader(t,S),f.updateStatsFromPart(t,w);var U={frag:t,part:w,payload:G.data,networkDetails:K};E(U),x(U)},onError:function(G,H,B){f.resetLoader(t,S),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:w,response:G,networkDetails:B}))},onAbort:function(G,H,B){t.stats.aborted=w.stats.aborted,f.resetLoader(t,S),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,part:w,networkDetails:B}))},onTimeout:function(G,H,B){f.resetLoader(t,S),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:w,networkDetails:B}))}})})},r.updateStatsFromPart=function(t,w){var E=t.stats,f=w.stats,k=f.total;if(E.loaded+=f.loaded,k){var O=Math.round(t.duration/w.duration),C=Math.min(Math.round(E.loaded/k),O),x=O-C,y=x*Math.round(E.loaded/C);E.total=E.loaded+y}else E.total=Math.max(E.loaded,E.total);var S=E.loading,M=f.loading;S.start?S.first+=M.first-M.start:(S.start=M.start,S.first=M.first),S.end=M.end},r.resetLoader=function(t,w){t.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},s}();function h(s,r){r===void 0&&(r=null);var a=r||s,t={frag:s,part:r,responseType:"arraybuffer",url:a.url,headers:{},rangeStart:0,rangeEnd:0},w=a.byteRangeStartOffset,E=a.byteRangeEndOffset;return Object(P.isFiniteNumber)(w)&&Object(P.isFiniteNumber)(E)&&(t.rangeStart=w,t.rangeEnd=E),t}var m=function(s){v(r,s);function r(a){for(var t,w=arguments.length,E=new Array(w>1?w-1:0),f=1;f>8*(15-k)&255;return f},t.setDecryptDataFromLevelKey=function(E,f){var k=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(k=b.LevelKey.fromURI(E.uri),k.method=E.method,k.iv=this.createInitializationVector(f),k.keyFormat="identity"),k},t.setElementaryStreamInfo=function(E,f,k,O,C,x){x===void 0&&(x=!1);var y=this.elementaryStreams,S=y[E];if(!S){y[E]={startPTS:f,endPTS:k,startDTS:O,endDTS:C,partial:x};return}S.startPTS=Math.min(S.startPTS,f),S.endPTS=Math.max(S.endPTS,k),S.startDTS=Math.min(S.startDTS,O),S.endDTS=Math.max(S.endDTS,C)},t.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[o.AUDIO]=null,E[o.VIDEO]=null,E[o.AUDIOVIDEO]=null},u(a,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&_.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(P.isFiniteNumber)(this.programDateTime))return null;var E=Object(P.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),a}(h),s=function(r){l(a,r);function a(t,w,E,f,k){var O;O=r.call(this,E)||this,O.fragOffset=0,O.duration=0,O.gap=!1,O.independent=!1,O.relurl=void 0,O.fragment=void 0,O.index=void 0,O.stats=new d.LoadStats,O.duration=t.decimalFloatingPoint("DURATION"),O.gap=t.bool("GAP"),O.independent=t.bool("INDEPENDENT"),O.relurl=t.enumeratedString("URI"),O.fragment=w,O.index=f;var C=t.enumeratedString("BYTERANGE");return C&&O.setByteRange(C,k),k&&(O.fragOffset=k.fragOffset+k.duration),O}return u(a,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),a}(h)},"./src/loader/key-loader.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return _});var P=T("./src/events.ts"),p=T("./src/errors.ts"),v=T("./src/utils/logger.ts"),_=function(){function b(l){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=l,this._registerListeners()}var d=b.prototype;return d._registerListeners=function(){this.hls.on(P.Events.KEY_LOADING,this.onKeyLoading,this)},d._unregisterListeners=function(){this.hls.off(P.Events.KEY_LOADING,this.onKeyLoading)},d.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var c=this.loaders[n];c&&c.destroy()}this.loaders={}},d.onKeyLoading=function(n,c){var u=c.frag,o=u.type,h=this.loaders[o];if(!u.decryptdata){v.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var m=u.decryptdata.uri;if(m!==this.decrypturl||this.decryptkey===null){var s=this.hls.config;if(h&&(v.logger.warn("abort previous key loader for type:"+o),h.abort()),!m){v.logger.warn("key uri is falsy");return}var r=s.loader,a=u.loader=this.loaders[o]=new r(s);this.decrypturl=m,this.decryptkey=null;var t={url:m,frag:u,responseType:"arraybuffer"},w={timeout:s.fragLoadingTimeOut,maxRetry:0,retryDelay:s.fragLoadingRetryDelay,maxRetryDelay:s.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};a.load(t,w,E)}else this.decryptkey&&(u.decryptdata.key=this.decryptkey,this.hls.trigger(P.Events.KEY_LOADED,{frag:u}))},d.loadsuccess=function(n,c,u){var o=u.frag;if(!o.decryptdata){v.logger.error("after key load, decryptdata unset");return}this.decryptkey=o.decryptdata.key=new Uint8Array(n.data),o.loader=null,delete this.loaders[o.type],this.hls.trigger(P.Events.KEY_LOADED,{frag:o})},d.loaderror=function(n,c){var u=c.frag,o=u.loader;o&&o.abort(),delete this.loaders[u.type],this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:u,response:n})},d.loadtimeout=function(n,c){var u=c.frag,o=u.loader;o&&o.abort(),delete this.loaders[u.type],this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:u})},b}()},"./src/loader/level-details.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"LevelDetails",function(){return b});var P=T("./src/polyfills/number.ts");function p(d,l){for(var n=0;nc.endSN||u>0||u===0&&o>0,this.updated||this.advanced?this.misses=Math.floor(c.misses*.6):this.misses=c.misses+1,this.availabilityDelay=c.availabilityDelay},v(d,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(P.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||_}},{key:"drift",get:function(){var c=this.driftEndTime-this.driftStartTime;if(c>0){var u=this.driftEnd-this.driftStart;return u*1e3/c}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var c;return(c=this.fragments)!==null&&c!==void 0&&c.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),d}()},"./src/loader/level-key.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"LevelKey",function(){return b});var P=T("./node_modules/url-toolkit/src/url-toolkit.js"),p=T.n(P);function v(d,l){for(var n=0;n2){var y=x.shift()+".";return y+=parseInt(x.shift()).toString(16),y+=("000"+parseInt(x.shift()).toString(16)).substr(-4),y}return C},k.resolve=function(C,x){return p.buildAbsoluteURL(x,C,{alwaysNormalize:!0})},k.parseMasterPlaylist=function(C,x){var y=[],S={},M=!1;u.lastIndex=0;for(var I;(I=u.exec(C))!=null;)if(I[1]){var N=new l.AttrList(I[1]),G={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:k.resolve(I[2],x)},H=N.decimalResolution("RESOLUTION");H&&(G.width=H.width,G.height=H.height),t((N.CODECS||"").split(/[ ,]+/).filter(function(K){return K}),G),G.videoCodec&&G.videoCodec.indexOf("avc1")!==-1&&(G.videoCodec=k.convertAVC1ToAVCOTI(G.videoCodec)),y.push(G)}else if(I[3]){var B=new l.AttrList(I[3]);B["DATA-ID"]&&(M=!0,S[B["DATA-ID"]]=B)}return{levels:y,sessionData:M?S:null}},k.parseMasterPlaylistMedia=function(C,x,y,S){S===void 0&&(S=[]);var M,I=[],N=0;for(o.lastIndex=0;(M=o.exec(C))!==null;){var G=new l.AttrList(M[1]);if(G.TYPE===y){var H={attrs:G,bitrate:0,id:N++,groupId:G["GROUP-ID"],instreamId:G["INSTREAM-ID"],name:G.NAME||G.LANGUAGE||"",type:y,default:G.bool("DEFAULT"),autoselect:G.bool("AUTOSELECT"),forced:G.bool("FORCED"),lang:G.LANGUAGE,url:G.URI?k.resolve(G.URI,x):""};if(S.length){var B=k.findGroup(S,H.groupId)||S[0];w(H,B,"audioCodec"),w(H,B,"textCodec")}I.push(H)}}return I},k.parseLevelPlaylist=function(C,x,y,S,M){var I=new b.LevelDetails(x),N=I.fragments,G=null,H=0,B=0,K=0,U=0,W=null,X=new _.Fragment(S,x),ne,fe,me,Ae=-1,De=!1;for(h.lastIndex=0,I.m3u8=C;(ne=h.exec(C))!==null;){De&&(De=!1,X=new _.Fragment(S,x),X.start=K,X.sn=H,X.cc=U,X.level=y,G&&(X.initSegment=G,X.rawProgramDateTime=G.rawProgramDateTime));var ye=ne[1];if(ye){X.duration=parseFloat(ye);var Oe=(" "+ne[2]).slice(1);X.title=Oe||null,X.tagList.push(Oe?["INF",ye,Oe]:["INF",ye])}else if(ne[3])Object(P.isFiniteNumber)(X.duration)&&(X.start=K,me&&(X.levelkey=me),X.sn=H,X.level=y,X.cc=U,X.urlId=M,N.push(X),X.relurl=(" "+ne[3]).slice(1),f(X,W),W=X,K+=X.duration,H++,B=0,De=!0);else if(ne[4]){var xe=(" "+ne[4]).slice(1);W?X.setByteRange(xe,W):X.setByteRange(xe)}else if(ne[5])X.rawProgramDateTime=(" "+ne[5]).slice(1),X.tagList.push(["PROGRAM-DATE-TIME",X.rawProgramDateTime]),Ae===-1&&(Ae=N.length);else{if(ne=ne[0].match(m),!ne){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(fe=1;fe-1){n.logger.warn("Keyformat "+Je+" is not supported from the manifest");continue}else if(Je!=="identity")continue;V&&(me=d.LevelKey.fromURL(x,Z),Z&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(V)>=0&&(me.method=V,me.keyFormat=Je,Te&&(me.keyID=Te),ge&&(me.keyFormatVersions=ge),me.iv=be));break}case"START":{var nt=new l.AttrList(le),at=nt.decimalFloatingPoint("TIME-OFFSET");Object(P.isFiniteNumber)(at)&&(I.startTimeOffset=at);break}case"MAP":{var ct=new l.AttrList(le);X.relurl=ct.URI,ct.BYTERANGE&&X.setByteRange(ct.BYTERANGE),X.level=y,X.sn="initSegment",me&&(X.levelkey=me),X.initSegment=null,G=X,De=!0;break}case"SERVER-CONTROL":{var ht=new l.AttrList(le);I.canBlockReload=ht.bool("CAN-BLOCK-RELOAD"),I.canSkipUntil=ht.optionalFloat("CAN-SKIP-UNTIL",0),I.canSkipDateRanges=I.canSkipUntil>0&&ht.bool("CAN-SKIP-DATERANGES"),I.partHoldBack=ht.optionalFloat("PART-HOLD-BACK",0),I.holdBack=ht.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var He=new l.AttrList(le);I.partTarget=He.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Re=I.partList;Re||(Re=I.partList=[]);var tt=B>0?Re[Re.length-1]:void 0,ft=B++,Qe=new _.Part(new l.AttrList(le),X,x,ft,tt);Re.push(Qe),X.duration+=Qe.duration;break}case"PRELOAD-HINT":{var lt=new l.AttrList(le);I.preloadHint=lt;break}case"RENDITION-REPORT":{var Ue=new l.AttrList(le);I.renditionReports=I.renditionReports||[],I.renditionReports.push(Ue);break}default:n.logger.warn("line parsed but not handled: "+ne);break}}}W&&!W.relurl?(N.pop(),K-=W.duration,I.partList&&(I.fragmentHint=W)):I.partList&&(f(X,W),X.cc=U,I.fragmentHint=X);var Le=N.length,Ie=N[0],Ce=N[Le-1];if(K+=I.skippedSegments*I.targetduration,K>0&&Le&&Ce){I.averagetargetduration=K/Le;var _e=Ce.sn;I.endSN=_e!=="initSegment"?_e:0,Ie&&(I.startCC=Ie.cc,Ie.initSegment||I.fragments.every(function(ke){return ke.relurl&&r(ke.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),X=new _.Fragment(S,x),X.relurl=Ce.relurl,X.level=y,X.sn="initSegment",Ie.initSegment=X,I.needSidxRanges=!0))}else I.endSN=0,I.startCC=0;return I.fragmentHint&&(K+=I.fragmentHint.duration),I.totalduration=K,I.endCC=U,Ae>0&&E(N,Ae),I},k}();function t(k,O){["video","audio","text"].forEach(function(C){var x=k.filter(function(S){return Object(c.isCodecType)(S,C)});if(x.length){var y=x.filter(function(S){return S.lastIndexOf("avc1",0)===0||S.lastIndexOf("mp4a",0)===0});O[C+"Codec"]=y.length>0?y[0]:x[0],k=k.filter(function(S){return x.indexOf(S)===-1})}}),O.unknownCodecs=k}function w(k,O,C){var x=O[C];x&&(k[C]=x)}function E(k,O){for(var C=k[O],x=O;x--;){var y=k[x];if(!y)return;y.programDateTime=C.programDateTime-y.duration*1e3,C=y}}function f(k,O){k.rawProgramDateTime?k.programDateTime=Date.parse(k.rawProgramDateTime):O!=null&&O.programDateTime&&(k.programDateTime=O.endProgramDateTime),Object(P.isFiniteNumber)(k.programDateTime)||(k.programDateTime=null,k.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/polyfills/number.ts"),p=T("./src/events.ts"),v=T("./src/errors.ts"),_=T("./src/utils/logger.ts"),b=T("./src/utils/mp4-tools.ts"),d=T("./src/loader/m3u8-parser.ts"),l=T("./src/types/loader.ts"),n=T("./src/utils/attr-list.ts");function c(h){var m=h.type;switch(m){case l.PlaylistContextType.AUDIO_TRACK:return l.PlaylistLevelType.AUDIO;case l.PlaylistContextType.SUBTITLE_TRACK:return l.PlaylistLevelType.SUBTITLE;default:return l.PlaylistLevelType.MAIN}}function u(h,m){var s=h.url;return(s===void 0||s.indexOf("data:")===0)&&(s=m.url),s}var o=function(){function h(s){this.hls=void 0,this.loaders=Object.create(null),this.hls=s,this.registerListeners()}var m=h.prototype;return m.registerListeners=function(){var r=this.hls;r.on(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(p.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(p.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(p.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.unregisterListeners=function(){var r=this.hls;r.off(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(p.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(p.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(p.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.createInternalLoader=function(r){var a=this.hls.config,t=a.pLoader,w=a.loader,E=t||w,f=new E(a);return r.loader=f,this.loaders[r.type]=f,f},m.getInternalLoader=function(r){return this.loaders[r.type]},m.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},m.destroyInternalLoaders=function(){for(var r in this.loaders){var a=this.loaders[r];a&&a.destroy(),this.resetInternalLoader(r)}},m.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},m.onManifestLoading=function(r,a){var t=a.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:l.PlaylistContextType.MANIFEST,url:t,deliveryDirectives:null})},m.onLevelLoading=function(r,a){var t=a.id,w=a.level,E=a.url,f=a.deliveryDirectives;this.load({id:t,groupId:null,level:w,responseType:"text",type:l.PlaylistContextType.LEVEL,url:E,deliveryDirectives:f})},m.onAudioTrackLoading=function(r,a){var t=a.id,w=a.groupId,E=a.url,f=a.deliveryDirectives;this.load({id:t,groupId:w,level:null,responseType:"text",type:l.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:f})},m.onSubtitleTrackLoading=function(r,a){var t=a.id,w=a.groupId,E=a.url,f=a.deliveryDirectives;this.load({id:t,groupId:w,level:null,responseType:"text",type:l.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:f})},m.load=function(r){var a,t=this.hls.config,w=this.getInternalLoader(r);if(w){var E=w.context;if(E&&E.url===r.url){_.logger.trace("[playlist-loader]: playlist request ongoing");return}_.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),w.abort()}var f,k,O,C;switch(r.type){case l.PlaylistContextType.MANIFEST:f=t.manifestLoadingMaxRetry,k=t.manifestLoadingTimeOut,O=t.manifestLoadingRetryDelay,C=t.manifestLoadingMaxRetryTimeout;break;case l.PlaylistContextType.LEVEL:case l.PlaylistContextType.AUDIO_TRACK:case l.PlaylistContextType.SUBTITLE_TRACK:f=0,k=t.levelLoadingTimeOut;break;default:f=t.levelLoadingMaxRetry,k=t.levelLoadingTimeOut,O=t.levelLoadingRetryDelay,C=t.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(r),(a=r.deliveryDirectives)!==null&&a!==void 0&&a.part){var x;if(r.type===l.PlaylistContextType.LEVEL&&r.level!==null?x=this.hls.levels[r.level].details:r.type===l.PlaylistContextType.AUDIO_TRACK&&r.id!==null?x=this.hls.audioTracks[r.id].details:r.type===l.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(x=this.hls.subtitleTracks[r.id].details),x){var y=x.partTarget,S=x.targetduration;y&&S&&(k=Math.min(Math.max(y*3,S*.8)*1e3,k))}}var M={timeout:k,maxRetry:f,retryDelay:O,maxRetryDelay:C,highWaterMark:0},I={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(r,M,I)},m.loadsuccess=function(r,a,t,w){if(w===void 0&&(w=null),t.isSidxRequest){this.handleSidxRequest(r,t),this.handlePlaylistLoaded(r,a,t,w);return}this.resetInternalLoader(t.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,t,"no EXTM3U delimiter",w);return}a.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,a,t,w):this.handleMasterPlaylist(r,a,t,w)},m.loaderror=function(r,a,t){t===void 0&&(t=null),this.handleNetworkError(a,t,!1,r)},m.loadtimeout=function(r,a,t){t===void 0&&(t=null),this.handleNetworkError(a,t,!0)},m.handleMasterPlaylist=function(r,a,t,w){var E=this.hls,f=r.data,k=u(r,t),O=d.default.parseMasterPlaylist(f,k),C=O.levels,x=O.sessionData;if(!C.length){this.handleManifestParsingError(r,t,"no level found in manifest",w);return}var y=C.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),S=C.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),M=d.default.parseMasterPlaylistMedia(f,k,"AUDIO",y),I=d.default.parseMasterPlaylistMedia(f,k,"SUBTITLES",S),N=d.default.parseMasterPlaylistMedia(f,k,"CLOSED-CAPTIONS");if(M.length){var G=M.some(function(H){return!H.url});!G&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(_.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),M.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}E.trigger(p.Events.MANIFEST_LOADED,{levels:C,audioTracks:M,subtitles:I,captions:N,url:k,stats:a,networkDetails:w,sessionData:x})},m.handleTrackOrLevelPlaylist=function(r,a,t,w){var E=this.hls,f=t.id,k=t.level,O=t.type,C=u(r,t),x=Object(P.isFiniteNumber)(f)?f:0,y=Object(P.isFiniteNumber)(k)?k:x,S=c(t),M=d.default.parseLevelPlaylist(r.data,C,y,S,x);if(!M.fragments.length){E.trigger(p.Events.ERROR,{type:v.ErrorTypes.NETWORK_ERROR,details:v.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof t.level=="number"?t.level:void 0});return}if(O===l.PlaylistContextType.MANIFEST){var I={attrs:new n.AttrList({}),bitrate:0,details:M,name:"",url:C};E.trigger(p.Events.MANIFEST_LOADED,{levels:[I],audioTracks:[],url:C,stats:a,networkDetails:w,sessionData:null})}if(a.parsing.end=performance.now(),M.needSidxRanges){var N,G=(N=M.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:G,isSidxRequest:!0,type:O,level:k,levelDetails:M,id:f,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}t.levelDetails=M,this.handlePlaylistLoaded(r,a,t,w)},m.handleSidxRequest=function(r,a){var t=Object(b.parseSegmentIndex)(new Uint8Array(r.data));if(!t)return;var w=t.references,E=a.levelDetails;w.forEach(function(f,k){var O=f.info,C=E.fragments[k];C.byteRange.length===0&&C.setByteRange(String(1+O.end-O.start)+"@"+String(O.start)),C.initSegment&&C.initSegment.setByteRange(String(t.moovEndOffset)+"@0")})},m.handleManifestParsingError=function(r,a,t,w){this.hls.trigger(p.Events.ERROR,{type:v.ErrorTypes.NETWORK_ERROR,details:v.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:a.type===l.PlaylistContextType.MANIFEST,url:r.url,reason:t,response:r,context:a,networkDetails:w})},m.handleNetworkError=function(r,a,t,w){t===void 0&&(t=!1),_.logger.warn("[playlist-loader]: A network "+(t?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=v.ErrorDetails.UNKNOWN,f=!1,k=this.getInternalLoader(r);switch(r.type){case l.PlaylistContextType.MANIFEST:E=t?v.ErrorDetails.MANIFEST_LOAD_TIMEOUT:v.ErrorDetails.MANIFEST_LOAD_ERROR,f=!0;break;case l.PlaylistContextType.LEVEL:E=t?v.ErrorDetails.LEVEL_LOAD_TIMEOUT:v.ErrorDetails.LEVEL_LOAD_ERROR,f=!1;break;case l.PlaylistContextType.AUDIO_TRACK:E=t?v.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:v.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,f=!1;break;case l.PlaylistContextType.SUBTITLE_TRACK:E=t?v.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:v.ErrorDetails.SUBTITLE_LOAD_ERROR,f=!1;break}k&&this.resetInternalLoader(r.type);var O={type:v.ErrorTypes.NETWORK_ERROR,details:E,fatal:f,url:r.url,loader:k,context:r,networkDetails:a};w&&(O.response=w),this.hls.trigger(p.Events.ERROR,O)},m.handlePlaylistLoaded=function(r,a,t,w){var E=t.type,f=t.level,k=t.id,O=t.groupId,C=t.loader,x=t.levelDetails,y=t.deliveryDirectives;if(!(x!=null&&x.targetduration)){this.handleManifestParsingError(r,t,"invalid target duration",w);return}if(!C)return;x.live&&(C.getCacheAge&&(x.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(x.ageHeader))&&(x.ageHeader=0));switch(E){case l.PlaylistContextType.MANIFEST:case l.PlaylistContextType.LEVEL:this.hls.trigger(p.Events.LEVEL_LOADED,{details:x,level:f||0,id:k||0,stats:a,networkDetails:w,deliveryDirectives:y});break;case l.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(p.Events.AUDIO_TRACK_LOADED,{details:x,id:k||0,groupId:O||"",stats:a,networkDetails:w,deliveryDirectives:y});break;case l.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(p.Events.SUBTITLE_TRACK_LOADED,{details:x,id:k||0,groupId:O||"",stats:a,networkDetails:w,deliveryDirectives:y});break}},h}();g.default=o},"./src/polyfills/number.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"isFiniteNumber",function(){return P}),T.d(g,"MAX_SAFE_INTEGER",function(){return p});var P=Number.isFinite||function(v){return typeof v=="number"&&isFinite(v)},p=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(L,g,T){"use strict";T.r(g);var P=function(){function p(){}return p.getSilentFrame=function(_,b){switch(_){case"mp4a.40.2":if(b===1)return new Uint8Array([0,200,0,128,35,128]);if(b===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(b===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(b===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(b===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(b===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(b===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(b===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(b===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},p}();g.default=P},"./src/remux/mp4-generator.ts":function(L,g,T){"use strict";T.r(g);var P=Math.pow(2,32)-1,p=function(){function v(){}return v.init=function(){v.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var b;for(b in v.types)v.types.hasOwnProperty(b)&&(v.types[b]=[b.charCodeAt(0),b.charCodeAt(1),b.charCodeAt(2),b.charCodeAt(3)]);var d=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),l=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);v.HDLR_TYPES={video:d,audio:l};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),c=new Uint8Array([0,0,0,0,0,0,0,0]);v.STTS=v.STSC=v.STCO=c,v.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),v.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),v.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),v.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var u=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),h=new Uint8Array([0,0,0,1]);v.FTYP=v.box(v.types.ftyp,u,h,u,o),v.DINF=v.box(v.types.dinf,v.box(v.types.dref,n))},v.box=function(b){for(var d=8,l=arguments.length,n=new Array(l>1?l-1:0),c=1;c>24&255,h[1]=d>>16&255,h[2]=d>>8&255,h[3]=d&255,h.set(b,4),u=0,d=8;u>24&255,b>>16&255,b>>8&255,b&255,l>>24,l>>16&255,l>>8&255,l&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},v.mdia=function(b){return v.box(v.types.mdia,v.mdhd(b.timescale,b.duration),v.hdlr(b.type),v.minf(b))},v.mfhd=function(b){return v.box(v.types.mfhd,new Uint8Array([0,0,0,0,b>>24,b>>16&255,b>>8&255,b&255]))},v.minf=function(b){return b.type==="audio"?v.box(v.types.minf,v.box(v.types.smhd,v.SMHD),v.DINF,v.stbl(b)):v.box(v.types.minf,v.box(v.types.vmhd,v.VMHD),v.DINF,v.stbl(b))},v.moof=function(b,d,l){return v.box(v.types.moof,v.mfhd(b),v.traf(l,d))},v.moov=function(b){for(var d=b.length,l=[];d--;)l[d]=v.trak(b[d]);return v.box.apply(null,[v.types.moov,v.mvhd(b[0].timescale,b[0].duration)].concat(l).concat(v.mvex(b)))},v.mvex=function(b){for(var d=b.length,l=[];d--;)l[d]=v.trex(b[d]);return v.box.apply(null,[v.types.mvex].concat(l))},v.mvhd=function(b,d){d*=b;var l=Math.floor(d/(P+1)),n=Math.floor(d%(P+1)),c=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,b>>24&255,b>>16&255,b>>8&255,b&255,l>>24,l>>16&255,l>>8&255,l&255,n>>24,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return v.box(v.types.mvhd,c)},v.sdtp=function(b){var d=b.samples||[],l=new Uint8Array(4+d.length),n,c;for(n=0;n>>8&255),d.push(u&255),d=d.concat(Array.prototype.slice.call(c));for(n=0;n>>8&255),l.push(u&255),l=l.concat(Array.prototype.slice.call(c));var o=v.box(v.types.avcC,new Uint8Array([1,d[3],d[4],d[5],252|3,224|b.sps.length].concat(d).concat([b.pps.length]).concat(l))),h=b.width,m=b.height,s=b.pixelRatio[0],r=b.pixelRatio[1];return v.box(v.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,h&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,v.box(v.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),v.box(v.types.pasp,new Uint8Array([s>>24,s>>16&255,s>>8&255,s&255,r>>24,r>>16&255,r>>8&255,r&255])))},v.esds=function(b){var d=b.config.length;return new Uint8Array([0,0,0,0,3,23+d,0,1,0,4,15+d,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([d]).concat(b.config).concat([6,1,2]))},v.mp4a=function(b){var d=b.samplerate;return v.box(v.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,b.channelCount,0,16,0,0,0,0,d>>8&255,d&255,0,0]),v.box(v.types.esds,v.esds(b)))},v.mp3=function(b){var d=b.samplerate;return v.box(v.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,b.channelCount,0,16,0,0,0,0,d>>8&255,d&255,0,0]))},v.stsd=function(b){return b.type==="audio"?!b.isAAC&&b.codec==="mp3"?v.box(v.types.stsd,v.STSD,v.mp3(b)):v.box(v.types.stsd,v.STSD,v.mp4a(b)):v.box(v.types.stsd,v.STSD,v.avc1(b))},v.tkhd=function(b){var d=b.id,l=b.duration*b.timescale,n=b.width,c=b.height,u=Math.floor(l/(P+1)),o=Math.floor(l%(P+1));return v.box(v.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,d>>24&255,d>>16&255,d>>8&255,d&255,0,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,o>>24,o>>16&255,o>>8&255,o&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,n&255,0,0,c>>8&255,c&255,0,0]))},v.traf=function(b,d){var l=v.sdtp(b),n=b.id,c=Math.floor(d/(P+1)),u=Math.floor(d%(P+1));return v.box(v.types.traf,v.box(v.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),v.box(v.types.tfdt,new Uint8Array([1,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,u>>24,u>>16&255,u>>8&255,u&255])),v.trun(b,l.length+16+20+8+16+8+8),l)},v.trak=function(b){return b.duration=b.duration||4294967295,v.box(v.types.trak,v.tkhd(b),v.mdia(b))},v.trex=function(b){var d=b.id;return v.box(v.types.trex,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},v.trun=function(b,d){var l=b.samples||[],n=l.length,c=12+16*n,u=new Uint8Array(c),o,h,m,s,r,a;for(d+=8+c,u.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255],0),o=0;o>>24&255,m>>>16&255,m>>>8&255,m&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,a>>>24&255,a>>>16&255,a>>>8&255,a&255],12+16*o);return v.box(v.types.trun,u)},v.initSegment=function(b){v.types||v.init();var d=v.moov(b),l=new Uint8Array(v.FTYP.byteLength+d.byteLength);return l.set(v.FTYP),l.set(d,v.FTYP.byteLength),l},v}();p.types=void 0,p.HDLR_TYPES=void 0,p.STTS=void 0,p.STSC=void 0,p.STCO=void 0,p.STSZ=void 0,p.VMHD=void 0,p.SMHD=void 0,p.STSD=void 0,p.FTYP=void 0,p.DINF=void 0,g.default=p},"./src/remux/mp4-remuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return a}),T.d(g,"normalizePts",function(){return t});var P=T("./src/polyfills/number.ts"),p=T("./src/remux/aac-helper.ts"),v=T("./src/remux/mp4-generator.ts"),_=T("./src/events.ts"),b=T("./src/errors.ts"),d=T("./src/utils/logger.ts"),l=T("./src/types/loader.ts"),n=T("./src/utils/timescale-conversion.ts");function c(){return c=Object.assign||function(k){for(var O=1;O0?M:I.pts},x[0].pts);return y&&d.logger.debug("PTS rollover detected"),S},O.remux=function(x,y,S,M,I,N,G,H){var B,K,U,W,X,ne,fe=I,me=I,Ae=x.pid>-1,De=y.pid>-1,ye=y.samples.length,Oe=x.samples.length>0,xe=ye>1,ue=(!Ae||Oe)&&(!De||xe)||this.ISGenerated||G;if(ue){this.ISGenerated||(U=this.generateIS(x,y,I));var le=this.isVideoContiguous,re=-1;if(xe&&(re=w(y.samples),!le&&this.config.forceKeyFrameOnDiscontinuity))if(ne=!0,re>0){d.logger.warn("[mp4-remuxer]: Dropped "+re+" out of "+ye+" video samples due to a missing keyframe");var pe=this.getVideoStartPts(y.samples);y.samples=y.samples.slice(re),y.dropped+=re,me+=(y.samples[0].pts-pe)/(y.timescale||9e4)}else re===-1&&(d.logger.warn("[mp4-remuxer]: No keyframe found out of "+ye+" video samples"),ne=!1);if(this.ISGenerated){if(Oe&&xe){var ee=this.getVideoStartPts(y.samples),te=t(x.samples[0].pts,ee)-ee,ce=te/y.inputTimeScale;fe+=Math.max(0,ce),me+=Math.max(0,-ce)}if(Oe){if(x.samplerate||(d.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(x,y,I)),K=this.remuxAudio(x,fe,this.isAudioContiguous,N,De||xe||H===l.PlaylistLevelType.AUDIO?me:void 0),xe){var q=K?K.endPTS-K.startPTS:0;y.inputTimeScale||(d.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(x,y,I)),B=this.remuxVideo(y,me,le,q)}}else xe&&(B=this.remuxVideo(y,me,le,0));B&&(B.firstKeyFrame=re,B.independent=re!==-1)}}return this.ISGenerated&&(S.samples.length&&(X=this.remuxID3(S,I)),M.samples.length&&(W=this.remuxText(M,I))),{audio:K,video:B,initSegment:U,independent:ne,text:W,id3:X}},O.generateIS=function(x,y,S){var M=x.samples,I=y.samples,N=this.typeSupported,G={},H=!Object(P.isFiniteNumber)(this._initPTS),B="audio/mp4",K,U,W;if(H&&(K=U=Infinity),x.config&&M.length&&(x.timescale=x.samplerate,x.isAAC||(N.mpeg?(B="audio/mpeg",x.codec=""):N.mp3&&(x.codec="mp3")),G.audio={id:"audio",container:B,codec:x.codec,initSegment:!x.isAAC&&N.mpeg?new Uint8Array(0):v.default.initSegment([x]),metadata:{channelCount:x.channelCount}},H&&(W=x.inputTimeScale,K=U=M[0].pts-Math.round(W*S))),y.sps&&y.pps&&I.length&&(y.timescale=y.inputTimeScale,G.video={id:"main",container:"video/mp4",codec:y.codec,initSegment:v.default.initSegment([y]),metadata:{width:y.width,height:y.height}},H)){W=y.inputTimeScale;var X=this.getVideoStartPts(I),ne=Math.round(W*S);U=Math.min(U,t(I[0].dts,X)-ne),K=Math.min(K,X-ne)}if(Object.keys(G).length)return this.ISGenerated=!0,H&&(this._initPTS=K,this._initDTS=U),{tracks:G,initPTS:K,timescale:W}},O.remuxVideo=function(x,y,S,M){var I=x.inputTimeScale,N=x.samples,G=[],H=N.length,B=this._initPTS,K=this.nextAvcDts,U=8,W,X,ne,fe=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,Ae=0,De=!1;if(!S||K===null){var ye=y*I,Oe=N[0].pts-t(N[0].dts,N[0].pts);K=ye-Oe}for(var xe=0;xeue.pts){var le=9e4*.2;Ae=Math.max(Math.min(Ae,ue.pts-ue.dts),-1*le)}ue.dts0?xe-1:xe].dts&&(De=!0)}De&&N.sort(function(hr,mr){var _t=hr.dts-mr.dts,Yr=hr.pts-mr.pts;return _t||Yr}),X=N[0].dts,ne=N[N.length-1].dts;var re=Math.round((ne-X)/(H-1));if(Ae<0){if(Aere,Q=ce<-1;if(q||Q){q?d.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ce,!0)+" ms ("+ce+"dts) hole between fragments detected, filling it"):d.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ce,!0)+" ms ("+ce+"dts) overlapping between fragments detected"),X=K;var V=N[0].pts-ce;N[0].dts=X,N[0].pts=V,d.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(V,!0)+"/"+Object(n.toMsFromMpegTsClock)(X,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ce,!0)+" ms")}}r&&(X=Math.max(0,X));for(var Z=0,be=0,ge=0;ge0?Re-1:Re].dts;if(_e.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ne=Math.floor(_e.maxBufferHole*I),et=(M?fe+M*I:this.nextAudioPts)-tt.pts;et>Ne?(W=et-ke,W<0&&(W=ke),d.logger.log("[mp4-remuxer]: It is approximately "+et/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=ke}else W=ke}var $e=Math.round(tt.pts-tt.dts);G.push(new E(tt.key,W,Qe,$e))}if(G.length&&m&&m<70){var bt=G[0].flags;bt.dependsOn=2,bt.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=K=ne+W,this.isVideoContiguous=!0;var gt=v.default.moof(x.sequenceNumber++,X,c({},x,{samples:G})),Ut="video",Nt={data1:gt,data2:ht,startPTS:fe/I,endPTS:(me+W)/I,startDTS:X/I,endDTS:K/I,type:Ut,hasAudio:!1,hasVideo:!0,nb:G.length,dropped:x.dropped};return x.samples=[],x.dropped=0,console.assert(ht.length,"MDAT length must not be zero"),Nt},O.remuxAudio=function(x,y,S,M,I){var N=x.inputTimeScale,G=x.samplerate?x.samplerate:N,H=N/G,B=x.isAAC?o:h,K=B*H,U=this._initPTS,W=!x.isAAC&&this.typeSupported.mpeg,X=[],ne=x.samples,fe=W?0:8,me=this.nextAudioPts||-1,Ae=y*N;if(this.isAudioContiguous=S=S||ne.length&&me>0&&(M&&Math.abs(Ae-me)<9e3||Math.abs(t(ne[0].pts-U,Ae)-me)<20*K),ne.forEach(function(Ie){Ie.pts=t(Ie.pts-U,Ae)}),!S||me<0){if(ne=ne.filter(function(Ie){return Ie.pts>=0}),!ne.length)return;I===0?me=0:M?me=Math.max(0,Ae):me=ne[0].pts}if(x.isAAC)for(var De=I!==void 0,ye=this.config.maxAudioFramesDrift,Oe=0,xe=me;Oe=ye*K&&pe0){be+=fe;try{Z=new Uint8Array(be)}catch(Ie){this.observer.emit(_.Events.ERROR,_.Events.ERROR,{type:b.ErrorTypes.MUX_ERROR,details:b.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:be,reason:"fail allocating audio mdat "+be});return}if(!W){var ht=new DataView(Z.buffer);ht.setUint32(0,be),Z.set(v.default.types.mdat,4)}}else return;Z.set(nt,fe);var He=nt.byteLength;fe+=He,X.push(new E(!0,B,He,0)),V=at}var Re=X.length;if(!Re)return;var tt=X[X.length-1];this.nextAudioPts=me=V+H*tt.duration;var ft=W?new Uint8Array(0):v.default.moof(x.sequenceNumber++,Q/H,c({},x,{samples:X}));x.samples=[];var Qe=Q/N,lt=me/N,Ue="audio",Le={data1:ft,data2:Z,startPTS:Qe,endPTS:lt,startDTS:Qe,endDTS:lt,type:Ue,hasAudio:!0,hasVideo:!1,nb:Re};return this.isAudioContiguous=!0,console.assert(Z.length,"MDAT length must not be zero"),Le},O.remuxEmptyAudio=function(x,y,S,M){var I=x.inputTimeScale,N=x.samplerate?x.samplerate:I,G=I/N,H=this.nextAudioPts,B=(H!==null?H:M.startDTS*I)+this._initDTS,K=M.endDTS*I+this._initDTS,U=G*o,W=Math.ceil((K-B)/U),X=p.default.getSilentFrame(x.manifestCodec||x.codec,x.channelCount);if(d.logger.warn("[mp4-remuxer]: remux empty Audio"),!X){d.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ne=[],fe=0;fe4294967296;)k+=C;return k}function w(k){for(var O=0;O0?this.lastEndDTS=x:(_.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var y=!!k.audio,S=!!k.video,M="";y&&(M+="audio"),S&&(M+="video");var I={data1:E,startPTS:C,startDTS:C,endPTS:x,endDTS:x,type:M,hasAudio:y,hasVideo:S,nb:1,dropped:0};return w.audio=I.type==="audio"?I:void 0,w.video=I.type!=="audio"?I:void 0,w.text=s,w.id3=m,w.initSegment=f,w},n}(),d=function(c,u,o){return Object(p.getStartDTS)(c,u)-o};function l(n,c){var u=n==null?void 0:n.codec;return u&&u.length>4?u:u==="hvc1"?"hvc1.1.c.L120.90":u==="av01"?"av01.0.04M.08":u==="avc1"||c===v.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}g.default=b},"./src/task-loop.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return P});var P=function(){function p(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var v=p.prototype;return v.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},v.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},v.onHandlerDestroyed=function(){},v.hasInterval=function(){return!!this._tickInterval},v.hasNextTick=function(){return!!this._tickTimer},v.setInterval=function(b){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,b),!0)},v.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},v.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},v.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},v.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},v.doTick=function(){},p}()},"./src/types/cmcd.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"CMCDVersion",function(){return P}),T.d(g,"CMCDObjectType",function(){return p}),T.d(g,"CMCDStreamingFormat",function(){return v}),T.d(g,"CMCDStreamType",function(){return _});var P=1,p;(function(b){b.MANIFEST="m",b.AUDIO="a",b.VIDEO="v",b.MUXED="av",b.INIT="i",b.CAPTION="c",b.TIMED_TEXT="tt",b.KEY="k",b.OTHER="o"})(p||(p={}));var v;(function(b){b.DASH="d",b.HLS="h",b.SMOOTH="s",b.OTHER="o"})(v||(v={}));var _;(function(b){b.VOD="v",b.LIVE="l"})(_||(_={}))},"./src/types/level.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"HlsSkip",function(){return v}),T.d(g,"getSkipValue",function(){return _}),T.d(g,"HlsUrlParameters",function(){return b}),T.d(g,"Level",function(){return d});function P(l,n){for(var c=0;cNumber.MAX_SAFE_INTEGER?Infinity:n},b.hexadecimalInteger=function(l){if(this[l]){var n=(this[l]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var c=new Uint8Array(n.length/2),u=0;uNumber.MAX_SAFE_INTEGER?Infinity:n},b.decimalFloatingPoint=function(l){return parseFloat(this[l])},b.optionalFloat=function(l,n){var c=this[l];return c?parseFloat(c):n},b.enumeratedString=function(l){return this[l]},b.bool=function(l){return this[l]==="YES"},b.decimalResolution=function(l){var n=P.exec(this[l]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},_.parseAttrList=function(l){var n,c={},u='"';for(p.lastIndex=0;(n=p.exec(l))!==null;){var o=n[2];o.indexOf(u)===0&&o.lastIndexOf(u)===o.length-1&&(o=o.slice(1,-1)),c[n[1]]=o}return c},_}()},"./src/utils/binary-search.ts":function(L,g,T){"use strict";T.r(g);var P={search:function(v,_){for(var b=0,d=v.length-1,l=null,n=null;b<=d;){l=(b+d)/2|0,n=v[l];var c=_(n);if(c>0)b=l+1;else if(c<0)d=l-1;else return n}return null}};g.default=P},"./src/utils/buffer-helper.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"BufferHelper",function(){return v});var P=T("./src/utils/logger.ts"),p={length:0,start:function(){return 0},end:function(){return 0}},v=function(){function _(){}return _.isBuffered=function(d,l){try{if(d){for(var n=_.getBuffered(d),c=0;c=n.start(c)&&l<=n.end(c))return!0}}catch(u){}return!1},_.bufferInfo=function(d,l,n){try{if(d){var c=_.getBuffered(d),u=[],o;for(o=0;oh&&(c[o-1].end=d[u].end):c.push(d[u])}else c.push(d[u])}else c=d;for(var m=0,s,r=l,a=l,t=0;t=w&&l=S&&P.logger.log(this.time+" ["+S+"] "+M)},C}(),m=function(x){for(var y=[],S=0;Sb&&(this.logger.log(o.DEBUG,"Too large cursor position "+this.pos),this.pos=b)},x.moveCursor=function(S){var M=this.pos+S;if(S>1)for(var I=this.pos+1;I=144&&this.backSpace();var M=v(S);if(this.pos>=b){this.logger.log(o.ERROR,"Cannot insert "+S.toString(16)+" ("+M+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(M,this.currPenState),this.moveCursor(1)},x.clearFromPos=function(S){var M;for(M=S;M0&&(S?I="["+M.join(" | ")+"]":I=M.join(` -`)),I},x.getTextAndFormat=function(){return this.rows},C}(),w=function(){function C(y,S,M){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=y,this.outputFilter=S,this.mode=null,this.verbose=0,this.displayedMemory=new t(M),this.nonDisplayedMemory=new t(M),this.lastOutputScreen=new t(M),this.currRollUpRow=this.displayedMemory.rows[_-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=M}var x=C.prototype;return x.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[_-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},x.getHandler=function(){return this.outputFilter},x.setHandler=function(S){this.outputFilter=S},x.setPAC=function(S){this.writeScreen.setPAC(S)},x.setBkgData=function(S){this.writeScreen.setBkgData(S)},x.setMode=function(S){if(S===this.mode)return;this.mode=S,this.logger.log(o.INFO,"MODE="+S),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=S},x.insertChars=function(S){for(var M=0;M=46,M.italics)M.foreground="white";else{var I=Math.floor(S/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];M.foreground=N[I]}this.logger.log(o.INFO,"MIDROW: "+JSON.stringify(M)),this.writeScreen.setPen(M)},x.outputDataUpdate=function(S){S===void 0&&(S=!1);var M=this.logger.time;if(M===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=M:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,M,this.lastOutputScreen),S&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:M),this.lastOutputScreen.copy(this.displayedMemory))},x.cueSplitAtTime=function(S){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,S,this.displayedMemory),this.cueStartTime=S))},C}(),E=function(){function C(y,S,M){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var I=new h;this.channels=[null,new w(y,S,I),new w(y+1,M,I)],this.cmdHistory=O(),this.logger=I}var x=C.prototype;return x.getHandler=function(S){return this.channels[S].getHandler()},x.setHandler=function(S,M){this.channels[S].setHandler(M)},x.addData=function(S,M){var I,N,G,H=!1;this.logger.time=S;for(var B=0;B ("+m([N,G])+")"),I=this.parseCmd(N,G),I||(I=this.parseMidrow(N,G)),I||(I=this.parsePAC(N,G)),I||(I=this.parseBackgroundAttributes(N,G)),!I&&(H=this.parseChars(N,G),H)){var K=this.currentChannel;if(K&&K>0){var U=this.channels[K];U.insertChars(H)}else this.logger.log(o.WARNING,"No channel found yet. TEXT-MODE?")}!I&&!H&&this.logger.log(o.WARNING,"Couldn't parse cleaned data "+m([N,G])+" orig: "+m([M[B],M[B+1]]))}},x.parseCmd=function(S,M){var I=this.cmdHistory,N=(S===20||S===28||S===21||S===29)&&M>=32&&M<=47,G=(S===23||S===31)&&M>=33&&M<=35;if(!(N||G))return!1;if(k(S,M,I))return f(null,null,I),this.logger.log(o.DEBUG,"Repeated command ("+m([S,M])+") is dropped"),!0;var H=S===20||S===21||S===23?1:2,B=this.channels[H];return S===20||S===21||S===28||S===29?M===32?B.ccRCL():M===33?B.ccBS():M===34?B.ccAOF():M===35?B.ccAON():M===36?B.ccDER():M===37?B.ccRU(2):M===38?B.ccRU(3):M===39?B.ccRU(4):M===40?B.ccFON():M===41?B.ccRDC():M===42?B.ccTR():M===43?B.ccRTD():M===44?B.ccEDM():M===45?B.ccCR():M===46?B.ccENM():M===47&&B.ccEOC():B.ccTO(M-32),f(S,M,I),this.currentChannel=H,!0},x.parseMidrow=function(S,M){var I=0;if((S===17||S===25)&&M>=32&&M<=47){if(S===17?I=1:I=2,I!==this.currentChannel)return this.logger.log(o.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[I];return N?(N.ccMIDROW(M),this.logger.log(o.DEBUG,"MIDROW ("+m([S,M])+")"),!0):!1}return!1},x.parsePAC=function(S,M){var I,N=this.cmdHistory,G=(S>=17&&S<=23||S>=25&&S<=31)&&M>=64&&M<=127,H=(S===16||S===24)&&M>=64&&M<=95;if(!(G||H))return!1;if(k(S,M,N))return f(null,null,N),!0;var B=S<=23?1:2;M>=64&&M<=95?I=B===1?d[S]:n[S]:I=B===1?l[S]:c[S];var K=this.channels[B];return K?(K.setPAC(this.interpretPAC(I,M)),f(S,M,N),this.currentChannel=B,!0):!1},x.interpretPAC=function(S,M){var I,N={color:null,italics:!1,indent:null,underline:!1,row:S};return M>95?I=M-96:I=M-64,N.underline=(I&1)===1,I<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(I/2)]:I<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((I-16)/2)*4,N},x.parseChars=function(S,M){var I,N=null,G=null;if(S>=25?(I=2,G=S-8):(I=1,G=S),G>=17&&G<=19){var H;G===17?H=M+80:G===18?H=M+112:H=M+144,this.logger.log(o.INFO,"Special char '"+v(H)+"' in channel "+I),N=[H]}else S>=32&&S<=127&&(N=M===0?[S]:[S,M]);if(N){var B=m(N);this.logger.log(o.DEBUG,"Char codes = "+B.join(",")),f(S,M,this.cmdHistory)}return N},x.parseBackgroundAttributes=function(S,M){var I=(S===16||S===24)&&M>=32&&M<=47,N=(S===23||S===31)&&M>=45&&M<=47;if(!(I||N))return!1;var G,H={};S===16||S===24?(G=Math.floor((M-32)/2),H.background=u[G],M%2===1&&(H.background=H.background+"_semi")):M===45?H.background="transparent":(H.foreground="black",M===47&&(H.underline=!0));var B=S<=23?1:2,K=this.channels[B];return K.setBkgData(H),f(S,M,this.cmdHistory),!0},x.reset=function(){for(var S=0;S=16?r--:r++;var f=Object(P.fixLineBreaks)(a.trim()),k=Object(p.generateCueId)(n,c,f);(!l||!l.cues||!l.cues.getCueById(k))&&(m=new t(n,c,f),m.id=k,m.line=w+1,m.align="left",m.position=10+Math.min(80,Math.floor(r*8/32)*10),o.push(m))}return l&&o.length&&(o.sort(function(O,C){return O.line==="auto"||C.line==="auto"?0:O.line>8&&C.line>8?C.line-O.line:O.line-C.line}),o.forEach(function(O){return Object(v.addCueToTrack)(l,O)})),o}};g.default=b},"./src/utils/discontinuities.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"findFirstFragWithCC",function(){return _}),T.d(g,"shouldAlignOnDiscontinuities",function(){return b}),T.d(g,"findDiscontinuousReferenceFrag",function(){return d}),T.d(g,"adjustSlidingStart",function(){return n}),T.d(g,"alignStream",function(){return c}),T.d(g,"alignPDT",function(){return o}),T.d(g,"alignFragmentByPDTDelta",function(){return h}),T.d(g,"alignMediaPlaylistByPDT",function(){return m});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/logger.ts"),v=T("./src/controller/level-helper.ts");function _(s,r){for(var a=null,t=0,w=s.length;ta.startCC||s&&s.cc=this.minWeight_},_.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},_.destroy=function(){},v}();g.default=p},"./src/utils/ewma.ts":function(L,g,T){"use strict";T.r(g);var P=function(){function p(_,b,d){b===void 0&&(b=0),d===void 0&&(d=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=_,this.alpha_=_?Math.exp(Math.log(.5)/_):0,this.estimate_=b,this.totalWeight_=d}var v=p.prototype;return v.sample=function(b,d){var l=Math.pow(this.alpha_,b);this.estimate_=d*(1-l)+l*this.estimate_,this.totalWeight_+=b},v.getTotalWeight=function(){return this.totalWeight_},v.getEstimate=function(){if(this.alpha_){var b=1-Math.pow(this.alpha_,this.totalWeight_);if(b)return this.estimate_/b}return this.estimate_},p}();g.default=P},"./src/utils/fetch-loader.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"fetchSupported",function(){return h});var P=T("./src/polyfills/number.ts"),p=T("./src/loader/load-stats.ts"),v=T("./src/demux/chunk-cache.ts");function _(t,w){t.prototype=Object.create(w.prototype),t.prototype.constructor=t,c(t,w)}function b(t){var w=typeof Map=="function"?new Map:void 0;return b=function(f){if(f===null||!n(f))return f;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(f))return w.get(f);w.set(f,k)}function k(){return d(f,arguments,u(this).constructor)}return k.prototype=Object.create(f.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),c(k,f)},b(t)}function d(t,w,E){return l()?d=Reflect.construct:d=function(k,O,C){var x=[null];x.push.apply(x,O);var y=Function.bind.apply(k,x),S=new y;return C&&c(S,C.prototype),S},d.apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function n(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function c(t,w){return c=Object.setPrototypeOf||function(f,k){return f.__proto__=k,f},c(t,w)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},u(t)}function o(){return o=Object.assign||function(t){for(var w=1;w=C&&x(k,O,y.flush(),f)):x(k,O,G,f),I()}).catch(function(){return Promise.reject()})};return M()},t}();function s(t,w){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(o({},t.headers))};return t.rangeEnd&&E.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),E}function r(t,w){return new self.Request(t.url,w)}var a=function(t){_(w,t);function w(E,f,k){var O;return O=t.call(this,E)||this,O.code=void 0,O.details=void 0,O.code=f,O.details=k,O}return w}(b(Error));g.default=m},"./src/utils/imsc1-ttml-parser.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"IMSC1_CODEC",function(){return n}),T.d(g,"parseIMSC1",function(){return h});var P=T("./src/utils/mp4-tools.ts"),p=T("./src/utils/vttparser.ts"),v=T("./src/utils/vttcue.ts"),_=T("./src/demux/id3.ts"),b=T("./src/utils/timescale-conversion.ts"),d=T("./src/utils/webvtt-parser.ts");function l(){return l=Object.assign||function(C){for(var x=1;x"):P}function b(n){for(var c=arguments.length,u=new Array(c>1?c-1:0),o=1;o>24,w[E+1]=f>>16&255,w[E+2]=f>>8&255,w[E+3]=f&255}function c(w,E){var f=[];if(!E.length)return f;var k,O,C;"data"in w?(k=w.data,O=w.start,C=w.end):(k=w,O=0,C=k.byteLength);for(var x=O;x1?x+y:C;if(S===E[0])if(E.length===1)f.push({data:k,start:x+8,end:M});else{var I=c({data:k,start:x+8,end:M},E.slice(1));I.length&&_.apply(f,I)}x=M}return f}function u(w){var E=c(w,["moov"]),f=E[0],k=f?f.end:null,O=c(w,["sidx"]);if(!O||!O[0])return null;var C=[],x=O[0],y=x.data[0],S=y===0?8:16,M=l(x,S);S+=4;var I=0,N=0;y===0?S+=8:S+=16,S+=2;var G=x.end+N,H=d(x,S);S+=2;for(var B=0;B>>31;if(X===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ne=l(x,K);K+=4,C.push({referenceSize:W,subsegmentDuration:ne,info:{duration:ne/M,start:G,end:G+W-1}}),G+=W,K+=4,S=K}return{earliestPresentationTime:I,timescale:M,version:y,referencesCount:H,references:C,moovEndOffset:k}}function o(w){for(var E=[],f=c(w,["moov","trak"]),k=0;kb)&&(this.startTime=b),this.endTime=d,this.screen=l,this.timelineController.createCaptionsTrack(this.trackName)},v.reset=function(){this.cueRanges=[]},p}()},"./src/utils/texttrack-utils.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"sendAddTrackEvent",function(){return p}),T.d(g,"addCueToTrack",function(){return v}),T.d(g,"clearCurrentCues",function(){return _}),T.d(g,"removeCuesInRange",function(){return b}),T.d(g,"getCuesInRange",function(){return l});var P=T("./src/utils/logger.ts");function p(n,c){var u;try{u=new Event("addtrack")}catch(o){u=document.createEvent("Event"),u.initEvent("addtrack",!1,!1)}u.track=n,c.dispatchEvent(u)}function v(n,c){var u=n.mode;if(u==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(c.id))try{if(n.addCue(c),!n.cues.getCueById(c.id))throw new Error("addCue is failed for: "+c)}catch(h){P.logger.debug("[texttrack-utils]: "+h);var o=new self.TextTrackCue(c.startTime,c.endTime,c.text);o.id=c.id,n.addCue(o)}u==="disabled"&&(n.mode=u)}function _(n){var c=n.mode;if(c==="disabled"&&(n.mode="hidden"),n.cues)for(var u=n.cues.length;u--;)n.removeCue(n.cues[u]);c==="disabled"&&(n.mode=c)}function b(n,c,u){var o=n.mode;if(o==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var h=l(n.cues,c,u),m=0;mn[u].endTime)return-1;for(var o=0,h=u;o<=h;){var m=Math.floor((h+o)/2);if(cn[m].startTime&&o-1)for(var m=h,s=n.length;m=c&&r.endTime<=u)o.push(r);else if(r.startTime>u)return o}return o}},"./src/utils/time-ranges.ts":function(L,g,T){"use strict";T.r(g);var P={toString:function(v){for(var _="",b=v.length,d=0;d1?c-1:0),o=1;o100)throw new Error("Position must be between 0 and 100.");C=I,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",d({},h,{get:function(){return x},set:function(I){var N=b(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");x=N,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",d({},h,{get:function(){return y},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");y=I,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",d({},h,{get:function(){return S},set:function(I){var N=b(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");S=N,this.hasBeenReset=!0}})),o.displayState=void 0}return l.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},l}()},"./src/utils/vttparser.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"parseTimeStamp",function(){return v}),T.d(g,"fixLineBreaks",function(){return c}),T.d(g,"VTTParser",function(){return u});var P=T("./src/utils/vttcue.ts"),p=function(){function o(){}var h=o.prototype;return h.decode=function(s,r){if(!s)return"";if(typeof s!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(s))},o}();function v(o){function h(s,r,a,t){return(s|0)*3600+(r|0)*60+(a|0)+parseFloat(t||0)}var m=o.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return m?parseFloat(m[2])>59?h(m[2],m[3],0,m[4]):h(m[1],m[2],m[3],m[4]):null}var _=function(){function o(){this.values=Object.create(null)}var h=o.prototype;return h.set=function(s,r){!this.get(s)&&r!==""&&(this.values[s]=r)},h.get=function(s,r,a){return a?this.has(s)?this.values[s]:r[a]:this.has(s)?this.values[s]:r},h.has=function(s){return s in this.values},h.alt=function(s,r,a){for(var t=0;t=0&&a<=100)return this.set(s,a),!0}return!1},o}();function b(o,h,m,s){var r=s?o.split(s):[o];for(var a in r){if(typeof r[a]!="string")continue;var t=r[a].split(m);if(t.length!==2)continue;var w=t[0],E=t[1];h(w,E)}}var d=new P.default(0,0,""),l=d.align==="middle"?"middle":"center";function n(o,h,m){var s=o;function r(){var w=v(o);if(w===null)throw new Error("Malformed timestamp: "+s);return o=o.replace(/^[^\sa-zA-Z-]+/,""),w}function a(w,E){var f=new _;b(w,function(C,x){var y;switch(C){case"region":for(var S=m.length-1;S>=0;S--)if(m[S].id===x){f.set(C,m[S].region);break}break;case"vertical":f.alt(C,x,["rl","lr"]);break;case"line":y=x.split(","),f.integer(C,y[0]),f.percent(C,y[0])&&f.set("snapToLines",!1),f.alt(C,y[0],["auto"]),y.length===2&&f.alt("lineAlign",y[1],["start",l,"end"]);break;case"position":y=x.split(","),f.percent(C,y[0]),y.length===2&&f.alt("positionAlign",y[1],["start",l,"end","line-left","line-right","auto"]);break;case"size":f.percent(C,x);break;case"align":f.alt(C,x,["start",l,"end","left","right"]);break}},/:/,/\s/),E.region=f.get("region",null),E.vertical=f.get("vertical","");var k=f.get("line","auto");k==="auto"&&d.line===-1&&(k=-1),E.line=k,E.lineAlign=f.get("lineAlign","start"),E.snapToLines=f.get("snapToLines",!0),E.size=f.get("size",100),E.align=f.get("align",l);var O=f.get("position","auto");O==="auto"&&d.position===50&&(O=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=O}function t(){o=o.replace(/^\s+/,"")}if(t(),h.startTime=r(),t(),o.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+s);o=o.substr(3),t(),h.endTime=r(),t(),a(o,h)}function c(o){return o.replace(//gi,` + timeOffset: `+I);var fe=new S.TransmuxConfig(t,w,a,k,x);this.configureTransmuxer(fe)}if(this.frag=E,this.part=f,M)M.postMessage({cmd:"demux",data:r,decryptdata:N,chunkMeta:C,state:ne},r instanceof ArrayBuffer?[r]:[]);else if(_){var me=_.push(r,N,C,ne);Object(S.isPromise)(me)?me.then(function(Ae){y.handleTransmuxComplete(Ae)}):this.handleTransmuxComplete(me)}},m.flush=function(r){var a=this;r.transmuxing.start=self.performance.now();var t=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:r});else if(t){var E=t.flush(r);Object(S.isPromise)(E)?E.then(function(f){a.handleFlushResult(f,r)}):this.handleFlushResult(E,r)}},m.handleFlushResult=function(r,a){var t=this;r.forEach(function(w){t.handleTransmuxComplete(w)}),this.onFlush(a)},m.onWorkerMessage=function(r){var a=r.data,t=this.hls;switch(a.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(a.data);break}case"flush":{this.onFlush(a.data);break}default:{a.data=a.data||{},a.data.frag=this.frag,a.data.id=this.id,t.trigger(a.event,a.data);break}}},m.configureTransmuxer=function(r){var a=this.worker,t=this.transmuxer;a?a.postMessage({cmd:"configure",config:r}):t&&t.configure(r)},m.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},h}()},"./src/demux/transmuxer-worker.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return d});var P=T("./src/demux/transmuxer.ts"),p=T("./src/events.ts"),v=T("./src/utils/logger.ts"),S=T("./node_modules/eventemitter3/index.js"),b=T.n(S);function d(o){var h=new S.EventEmitter,m=function(r,a){o.postMessage({event:r,data:a})};h.on(p.Events.FRAG_DECRYPTED,m),h.on(p.Events.ERROR,m),o.addEventListener("message",function(s){var r=s.data;switch(r.cmd){case"init":{var a=JSON.parse(r.config);o.transmuxer=new P.default(h,r.typeSupported,a,r.vendor,r.id),Object(v.enableLogs)(a.debug),m("init",null);break}case"configure":{o.transmuxer.configure(r.config);break}case"demux":{var t=o.transmuxer.push(r.data,r.decryptdata,r.chunkMeta,r.state);Object(P.isPromise)(t)?t.then(function(f){l(o,f)}):l(o,t);break}case"flush":{var w=r.chunkMeta,E=o.transmuxer.flush(w);Object(P.isPromise)(E)?E.then(function(f){c(o,f,w)}):c(o,E,w);break}default:break}})}function l(o,h){if(u(h.remuxResult))return;var m=[],s=h.remuxResult,r=s.audio,a=s.video;r&&n(m,r),a&&n(m,a),o.postMessage({event:"transmuxComplete",data:h},m)}function n(o,h){h.data1&&o.push(h.data1.buffer),h.data2&&o.push(h.data2.buffer)}function c(o,h,m){h.forEach(function(s){l(o,s)}),o.postMessage({event:"flush",data:m})}function u(o){return!o.audio&&!o.video&&!o.text&&!o.id3&&!o.initSegment}},"./src/demux/transmuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return a}),T.d(g,"isPromise",function(){return E}),T.d(g,"TransmuxConfig",function(){return f}),T.d(g,"TransmuxState",function(){return k});var P=T("./src/events.ts"),p=T("./src/errors.ts"),v=T("./src/crypt/decrypter.ts"),S=T("./src/demux/aacdemuxer.ts"),b=T("./src/demux/mp4demuxer.ts"),d=T("./src/demux/tsdemuxer.ts"),l=T("./src/demux/mp3demuxer.ts"),n=T("./src/remux/mp4-remuxer.ts"),c=T("./src/remux/passthrough-remuxer.ts"),u=T("./src/demux/chunk-cache.ts"),o=T("./src/utils/mp4-tools.ts"),h=T("./src/utils/logger.ts"),m;try{m=self.performance.now.bind(self.performance)}catch(O){h.logger.debug("Unable to use Performance API on this environment"),m=self.Date.now}var s=[{demux:d.default,remux:n.default},{demux:b.default,remux:c.default},{demux:S.default,remux:n.default},{demux:l.default,remux:n.default}],r=1024;s.forEach(function(O){var C=O.demux;r=Math.max(r,C.minProbeByteLength)});var a=function(){function O(x,y,_,M,I){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new u.default,this.observer=x,this.typeSupported=y,this.config=_,this.vendor=M,this.id=I}var C=O.prototype;return C.configure=function(y){this.transmuxConfig=y,this.decrypter&&this.decrypter.reset()},C.push=function(y,_,M,I){var N=this,G=M.transmuxing;G.executeStart=m();var H=new Uint8Array(y),B=this.cache,K=this.config,U=this.currentTransmuxState,W=this.transmuxConfig;I&&(this.currentTransmuxState=I);var X=t(H,_);if(X&&X.method==="AES-128"){var ne=this.getDecrypter();if(K.enableSoftwareAES){var fe=ne.softwareDecrypt(H,X.key.buffer,X.iv.buffer);if(!fe)return G.executeEnd=m(),w(M);H=new Uint8Array(fe)}else return this.decryptionPromise=ne.webCryptoDecrypt(H,X.key.buffer,X.iv.buffer).then(function(Q){var V=N.push(Q,null,M);return N.decryptionPromise=null,V}),this.decryptionPromise}var me=I||U,Ae=me.contiguous,De=me.discontinuity,ye=me.trackSwitch,Oe=me.accurateTimeOffset,xe=me.timeOffset,ue=W.audioCodec,le=W.videoCodec,re=W.defaultInitPts,pe=W.duration,ee=W.initSegmentData;if((De||ye)&&this.resetInitSegment(ee,ue,le,pe),De&&this.resetInitialTimestamp(re),Ae||this.resetContiguity(),this.needsProbing(H,De,ye)){if(B.dataLength){var te=B.flush();H=Object(o.appendUint8Array)(te,H)}this.configureTransmuxer(H,W)}var ce=this.transmux(H,X,xe,Oe,M),q=this.currentTransmuxState;return q.contiguous=!0,q.discontinuity=!1,q.trackSwitch=!1,G.executeEnd=m(),ce},C.flush=function(y){var _=this,M=y.transmuxing;M.executeStart=m();var I=this.decrypter,N=this.cache,G=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return _.flush(y)});var B=[],K=G.timeOffset;if(I){var U=I.flush();U&&B.push(this.push(U,null,y))}var W=N.dataLength;N.reset();var X=this.demuxer,ne=this.remuxer;if(!X||!ne)return W>=r&&this.observer.emit(P.Events.ERROR,P.Events.ERROR,{type:p.ErrorTypes.MEDIA_ERROR,details:p.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),M.executeEnd=m(),[w(y)];var fe=X.flush(K);return E(fe)?fe.then(function(me){return _.flushRemux(B,me,y),B}):(this.flushRemux(B,fe,y),B)},C.flushRemux=function(y,_,M){var I=_.audioTrack,N=_.avcTrack,G=_.id3Track,H=_.textTrack,B=this.currentTransmuxState,K=B.accurateTimeOffset,U=B.timeOffset;h.logger.log("[transmuxer.ts]: Flushed fragment "+M.sn+(M.part>-1?" p: "+M.part:"")+" of level "+M.level);var W=this.remuxer.remux(I,N,G,H,U,K,!0,this.id);y.push({remuxResult:W,chunkMeta:M}),M.transmuxing.executeEnd=m()},C.resetInitialTimestamp=function(y){var _=this.demuxer,M=this.remuxer;if(!_||!M)return;_.resetTimeStamp(y),M.resetTimeStamp(y)},C.resetContiguity=function(){var y=this.demuxer,_=this.remuxer;if(!y||!_)return;y.resetContiguity(),_.resetNextTimestamp()},C.resetInitSegment=function(y,_,M,I){var N=this.demuxer,G=this.remuxer;if(!N||!G)return;N.resetInitSegment(_,M,I),G.resetInitSegment(y,_,M)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(y,_,M,I,N){var G;return _&&_.method==="SAMPLE-AES"?G=this.transmuxSampleAes(y,_,M,I,N):G=this.transmuxUnencrypted(y,M,I,N),G},C.transmuxUnencrypted=function(y,_,M,I){var N=this.demuxer.demux(y,_,!1,!this.config.progressive),G=N.audioTrack,H=N.avcTrack,B=N.id3Track,K=N.textTrack,U=this.remuxer.remux(G,H,B,K,_,M,!1,this.id);return{remuxResult:U,chunkMeta:I}},C.transmuxSampleAes=function(y,_,M,I,N){var G=this;return this.demuxer.demuxSampleAes(y,_,M).then(function(H){var B=G.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,M,I,!1,G.id);return{remuxResult:B,chunkMeta:N}})},C.configureTransmuxer=function(y,_){for(var M=this.config,I=this.observer,N=this.typeSupported,G=this.vendor,H=_.audioCodec,B=_.defaultInitPts,K=_.duration,U=_.initSegmentData,W=_.videoCodec,X,ne=0,fe=s.length;ne0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(x=C),x}var w=function(C){return{remuxResult:{},chunkMeta:C}};function E(O){return"then"in O&&O.then instanceof Function}var f=function(C,x,y,_,M){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=x,this.initSegmentData=y,this.duration=_,this.defaultInitPts=M},k=function(C,x,y,_,M){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=x,this.accurateTimeOffset=y,this.trackSwitch=_,this.timeOffset=M}},"./src/demux/tsdemuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"discardEPB",function(){return w});var P=T("./src/demux/adts.ts"),p=T("./src/demux/mpegaudio.ts"),v=T("./src/demux/exp-golomb.ts"),S=T("./src/demux/id3.ts"),b=T("./src/demux/sample-aes.ts"),d=T("./src/events.ts"),l=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/logger.ts"),c=T("./src/errors.ts"),u={video:1,audio:2,id3:3,text:4},o=function(){function E(k,O,C){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=k,this.config=O,this.typeSupported=C}E.probe=function(O){var C=E.syncOffset(O);return C<0?!1:(C&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},E.syncOffset=function(O){for(var C=Math.min(1e3,O.length-3*188),x=0;x>4,ue=void 0;if(xe>1){if(ue=De+5+O[De+4],ue===De+188)continue}else ue=De+4;switch(Oe){case G:ye&&(H&&(_=r(H))&&this.parseAVCPES(_,!1),H={data:[],size:0}),H&&(H.data.push(O.subarray(ue,De+188)),H.size+=De+188-ue);break;case B:ye&&(U&&(_=r(U))&&(I.isAAC?this.parseAACPES(_):this.parseMPEGPES(_)),U={data:[],size:0}),U&&(U.data.push(O.subarray(ue,De+188)),U.size+=De+188-ue);break;case K:ye&&(W&&(_=r(W))&&this.parseID3PES(_),W={data:[],size:0}),W&&(W.data.push(O.subarray(ue,De+188)),W.size+=De+188-ue);break;case 0:ye&&(ue+=O[ue]+1),fe=this._pmtId=m(O,ue);break;case fe:{ye&&(ue+=O[ue]+1);var le=s(O,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,x);G=le.avc,G>0&&(M.pid=G),B=le.audio,B>0&&(I.pid=B,I.isAAC=le.isAAC),K=le.id3,K>0&&(N.pid=K),X&&!ne&&(n.logger.log("reparse from beginning"),X=!1,De=Ae-188),ne=this.pmtParsed=!0;break}case 17:case 8191:break;default:X=!0;break}}else this.observer.emit(d.Events.ERROR,d.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});M.pesData=H,I.pesData=U,N.pesData=W;var re={audioTrack:I,avcTrack:M,id3Track:N,textTrack:this._txtTrack};return y&&this.extractRemainingSamples(re),re},f.flush=function(){var O=this.remainderData;this.remainderData=null;var C;return O?C=this.demux(O,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},f.extractRemainingSamples=function(O){var C=O.audioTrack,x=O.avcTrack,y=O.id3Track,_=x.pesData,M=C.pesData,I=y.pesData,N;_&&(N=r(_))?(this.parseAVCPES(N,!0),x.pesData=null):x.pesData=_,M&&(N=r(M))?(C.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),C.pesData=null):(M!=null&&M.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=M),I&&(N=r(I))?(this.parseID3PES(N),y.pesData=null):y.pesData=I},f.demuxSampleAes=function(O,C,x){var y=this.demux(O,x,!0,!this.config.progressive),_=this.sampleAes=new b.default(this.observer,this.config,C);return this.decrypt(y,_)},f.decrypt=function(O,C){return new Promise(function(x){var y=O.audioTrack,_=O.avcTrack;y.samples&&y.isAAC?C.decryptAacSamples(y.samples,0,function(){_.samples?C.decryptAvcSamples(_.samples,0,0,function(){x(O)}):x(O)}):_.samples&&C.decryptAvcSamples(_.samples,0,0,function(){x(O)})})},f.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},f.parseAVCPES=function(O,C){var x=this,y=this._avcTrack,_=this.parseAVCNALu(O.data),M=!1,I=this.avcSample,N,G=!1;O.data=null,I&&_.length&&!y.audFound&&(a(I,y),I=this.avcSample=h(!1,O.pts,O.dts,"")),_.forEach(function(H){switch(H.type){case 1:{N=!0,I||(I=x.avcSample=h(!0,O.pts,O.dts,"")),M&&(I.debug+="NDR "),I.frame=!0;var B=H.data;if(G&&B.length>4){var K=new v.default(B).readSliceType();(K===2||K===4||K===7||K===9)&&(I.key=!0)}break}case 5:N=!0,I||(I=x.avcSample=h(!0,O.pts,O.dts,"")),M&&(I.debug+="IDR "),I.key=!0,I.frame=!0;break;case 6:{N=!0,M&&I&&(I.debug+="SEI ");var U=new v.default(w(H.data));U.readUByte();for(var W=0,X=0,ne=!1,fe=0;!ne&&U.bytesAvailable>1;){W=0;do fe=U.readUByte(),W+=fe;while(fe===255);X=0;do fe=U.readUByte(),X+=fe;while(fe===255);if(W===4&&U.bytesAvailable!==0){ne=!0;var me=U.readUByte();if(me===181){var Ae=U.readUShort();if(Ae===49){var De=U.readUInt();if(De===1195456820){var ye=U.readUByte();if(ye===3){for(var Oe=U.readUByte(),xe=U.readUByte(),ue=31&Oe,le=[Oe,xe],re=0;re16){for(var pe=[],ee=0;ee<16;ee++)pe.push(U.readUByte().toString(16)),(ee===3||ee===5||ee===7||ee===9)&&pe.push("-");for(var te=X-16,ce=new Uint8Array(te),q=0;q=0){var U={data:O.subarray(B,I-y-1),type:K};M.push(U)}else{var W=this.getLastNalUnit();if(W&&(_&&I<=4-_&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-_))),G=I-y-1,G>0)){var X=new Uint8Array(W.data.byteLength+G);X.set(W.data,0),X.set(O.subarray(0,G),W.data.byteLength),W.data=X,W.state=0}}I=0&&y>=0){var ne={data:O.subarray(B,C),type:K,state:y};M.push(ne)}if(M.length===0){var fe=this.getLastNalUnit();if(fe){var me=new Uint8Array(fe.data.byteLength+O.byteLength);me.set(fe.data,0),me.set(O,fe.data.byteLength),fe.data=me}}return x.naluState=y,M},f.parseAACPES=function(O){var C=0,x=this._audioTrack,y=this.aacOverFlow,_=O.data;if(y){this.aacOverFlow=null;var M=y.sample.unit.byteLength,I=Math.min(y.missing,M),N=M-I;y.sample.unit.set(_.subarray(0,I),N),x.samples.push(y.sample),C=y.missing}var G,H;for(G=C,H=_.length;G1;){var M=new Uint8Array(_[0].length+_[1].length);M.set(_[0]),M.set(_[1],_[0].length),_[0]=M,_.splice(1,1)}k=_[0];var I=(k[0]<<16)+(k[1]<<8)+k[2];if(I===1){if(O=(k[4]<<8)+k[5],O&&O>E.size-6)return null;var N=k[7];N&192&&(x=(k[9]&14)*536870912+(k[10]&255)*4194304+(k[11]&254)*16384+(k[12]&255)*128+(k[13]&254)/2,N&64?(y=(k[14]&14)*536870912+(k[15]&255)*4194304+(k[16]&254)*16384+(k[17]&255)*128+(k[18]&254)/2,x-y>60*9e4&&(n.logger.warn(Math.round((x-y)/9e4)+"s delta between PTS and DTS, align them"),x=y)):y=x),C=k[8];var G=C+9;if(E.size<=G)return null;E.size-=G;for(var H=new Uint8Array(E.size),B=0,K=_.length;BU){G-=U;continue}else k=k.subarray(G),U-=G,G=0;H.set(k,f),f+=U}return O&&(O-=C+3),{data:H,pts:x,dts:y,len:O}}return null}function a(E,f){if(E.units.length&&E.frame){if(E.pts===void 0){var k=f.samples,O=k.length;if(O){var C=k[O-1];E.pts=C.pts,E.dts=C.dts}else{f.dropped++;return}}f.samples.push(E)}E.debug.length&&n.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function t(E,f){var k=E.length;if(k>0){if(f.pts>=E[k-1].pts)E.push(f);else for(var O=k-1;O>=0;O--)if(f.ptsx)return _;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,x=this.autoLevelCapping,y;return x===-1&&C&&C.length?y=C.length-1:y=x,y}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var x=this.audioTrackController;x&&(x.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var x=this.subtitleTrackController;x&&(x.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var x=this.subtitleTrackController;x&&(x.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return r.Events}},{key:"ErrorTypes",get:function(){return a.ErrorTypes}},{key:"ErrorDetails",get:function(){return a.ErrorDetails}},{key:"DefaultConfig",get:function(){return f.defaultConfig?f.defaultConfig:h.hlsDefaultConfig},set:function(C){f.defaultConfig=C}}]),f}();E.defaultConfig=void 0},"./src/is-supported.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"isSupported",function(){return v}),T.d(g,"changeTypeSupported",function(){return S});var P=T("./src/utils/mediasource-helper.ts");function p(){return self.SourceBuffer||self.WebKitSourceBuffer}function v(){var b=Object(P.getMediaSource)();if(!b)return!1;var d=p(),l=b&&typeof b.isTypeSupported=="function"&&b.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!d||d.prototype&&typeof d.prototype.appendBuffer=="function"&&typeof d.prototype.remove=="function";return!!l&&!!n}function S(){var b,d=p();return typeof(d==null||((b=d.prototype)===null||b===void 0)?void 0:b.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return o}),T.d(g,"LoadError",function(){return m});var P=T("./src/polyfills/number.ts"),p=T("./src/errors.ts");function v(s,r){s.prototype=Object.create(r.prototype),s.prototype.constructor=s,n(s,r)}function S(s){var r=typeof Map=="function"?new Map:void 0;return S=function(t){if(t===null||!l(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(t))return r.get(t);r.set(t,w)}function w(){return b(t,arguments,c(this).constructor)}return w.prototype=Object.create(t.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),n(w,t)},S(s)}function b(s,r,a){return d()?b=Reflect.construct:b=function(w,E,f){var k=[null];k.push.apply(k,E);var O=Function.bind.apply(w,k),C=new O;return f&&n(C,f.prototype),C},b.apply(null,arguments)}function d(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(s){return!1}}function l(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function n(s,r){return n=Object.setPrototypeOf||function(t,w){return t.__proto__=w,t},n(s,r)}function c(s){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},c(s)}var u=Math.pow(2,17),o=function(){function s(a){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=a}var r=s.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(t,w){var E=this,f=t.url;if(!f)return Promise.reject(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,networkDetails:null},"Fragment does not have a "+(f?"part list":"url")));this.abort();var k=this.config,O=k.fLoader,C=k.loader;return new Promise(function(x,y){E.loader&&E.loader.destroy();var _=E.loader=t.loader=O?new O(k):new C(k),M=h(t),I={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:u};t.stats=_.stats,_.load(M,I,{onSuccess:function(G,H,B,K){E.resetLoader(t,_),x({frag:t,part:null,payload:G.data,networkDetails:K})},onError:function(G,H,B){E.resetLoader(t,_),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:G,networkDetails:B}))},onAbort:function(G,H,B){E.resetLoader(t,_),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,networkDetails:B}))},onTimeout:function(G,H,B){E.resetLoader(t,_),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,networkDetails:B}))},onProgress:function(G,H,B,K){w&&w({frag:t,part:null,payload:B,networkDetails:K})}})})},r.loadPart=function(t,w,E){var f=this;this.abort();var k=this.config,O=k.fLoader,C=k.loader;return new Promise(function(x,y){f.loader&&f.loader.destroy();var _=f.loader=t.loader=O?new O(k):new C(k),M=h(t,w),I={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:u};w.stats=_.stats,_.load(M,I,{onSuccess:function(G,H,B,K){f.resetLoader(t,_),f.updateStatsFromPart(t,w);var U={frag:t,part:w,payload:G.data,networkDetails:K};E(U),x(U)},onError:function(G,H,B){f.resetLoader(t,_),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:w,response:G,networkDetails:B}))},onAbort:function(G,H,B){t.stats.aborted=w.stats.aborted,f.resetLoader(t,_),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,part:w,networkDetails:B}))},onTimeout:function(G,H,B){f.resetLoader(t,_),y(new m({type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:w,networkDetails:B}))}})})},r.updateStatsFromPart=function(t,w){var E=t.stats,f=w.stats,k=f.total;if(E.loaded+=f.loaded,k){var O=Math.round(t.duration/w.duration),C=Math.min(Math.round(E.loaded/k),O),x=O-C,y=x*Math.round(E.loaded/C);E.total=E.loaded+y}else E.total=Math.max(E.loaded,E.total);var _=E.loading,M=f.loading;_.start?_.first+=M.first-M.start:(_.start=M.start,_.first=M.first),_.end=M.end},r.resetLoader=function(t,w){t.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},s}();function h(s,r){r===void 0&&(r=null);var a=r||s,t={frag:s,part:r,responseType:"arraybuffer",url:a.url,headers:{},rangeStart:0,rangeEnd:0},w=a.byteRangeStartOffset,E=a.byteRangeEndOffset;return Object(P.isFiniteNumber)(w)&&Object(P.isFiniteNumber)(E)&&(t.rangeStart=w,t.rangeEnd=E),t}var m=function(s){v(r,s);function r(a){for(var t,w=arguments.length,E=new Array(w>1?w-1:0),f=1;f>8*(15-k)&255;return f},t.setDecryptDataFromLevelKey=function(E,f){var k=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(k=b.LevelKey.fromURI(E.uri),k.method=E.method,k.iv=this.createInitializationVector(f),k.keyFormat="identity"),k},t.setElementaryStreamInfo=function(E,f,k,O,C,x){x===void 0&&(x=!1);var y=this.elementaryStreams,_=y[E];if(!_){y[E]={startPTS:f,endPTS:k,startDTS:O,endDTS:C,partial:x};return}_.startPTS=Math.min(_.startPTS,f),_.endPTS=Math.max(_.endPTS,k),_.startDTS=Math.min(_.startDTS,O),_.endDTS=Math.max(_.endDTS,C)},t.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[o.AUDIO]=null,E[o.VIDEO]=null,E[o.AUDIOVIDEO]=null},u(a,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&S.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(P.isFiniteNumber)(this.programDateTime))return null;var E=Object(P.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),a}(h),s=function(r){l(a,r);function a(t,w,E,f,k){var O;O=r.call(this,E)||this,O.fragOffset=0,O.duration=0,O.gap=!1,O.independent=!1,O.relurl=void 0,O.fragment=void 0,O.index=void 0,O.stats=new d.LoadStats,O.duration=t.decimalFloatingPoint("DURATION"),O.gap=t.bool("GAP"),O.independent=t.bool("INDEPENDENT"),O.relurl=t.enumeratedString("URI"),O.fragment=w,O.index=f;var C=t.enumeratedString("BYTERANGE");return C&&O.setByteRange(C,k),k&&(O.fragOffset=k.fragOffset+k.duration),O}return u(a,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),a}(h)},"./src/loader/key-loader.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return S});var P=T("./src/events.ts"),p=T("./src/errors.ts"),v=T("./src/utils/logger.ts"),S=function(){function b(l){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=l,this._registerListeners()}var d=b.prototype;return d._registerListeners=function(){this.hls.on(P.Events.KEY_LOADING,this.onKeyLoading,this)},d._unregisterListeners=function(){this.hls.off(P.Events.KEY_LOADING,this.onKeyLoading)},d.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var c=this.loaders[n];c&&c.destroy()}this.loaders={}},d.onKeyLoading=function(n,c){var u=c.frag,o=u.type,h=this.loaders[o];if(!u.decryptdata){v.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var m=u.decryptdata.uri;if(m!==this.decrypturl||this.decryptkey===null){var s=this.hls.config;if(h&&(v.logger.warn("abort previous key loader for type:"+o),h.abort()),!m){v.logger.warn("key uri is falsy");return}var r=s.loader,a=u.loader=this.loaders[o]=new r(s);this.decrypturl=m,this.decryptkey=null;var t={url:m,frag:u,responseType:"arraybuffer"},w={timeout:s.fragLoadingTimeOut,maxRetry:0,retryDelay:s.fragLoadingRetryDelay,maxRetryDelay:s.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};a.load(t,w,E)}else this.decryptkey&&(u.decryptdata.key=this.decryptkey,this.hls.trigger(P.Events.KEY_LOADED,{frag:u}))},d.loadsuccess=function(n,c,u){var o=u.frag;if(!o.decryptdata){v.logger.error("after key load, decryptdata unset");return}this.decryptkey=o.decryptdata.key=new Uint8Array(n.data),o.loader=null,delete this.loaders[o.type],this.hls.trigger(P.Events.KEY_LOADED,{frag:o})},d.loaderror=function(n,c){var u=c.frag,o=u.loader;o&&o.abort(),delete this.loaders[u.type],this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:u,response:n})},d.loadtimeout=function(n,c){var u=c.frag,o=u.loader;o&&o.abort(),delete this.loaders[u.type],this.hls.trigger(P.Events.ERROR,{type:p.ErrorTypes.NETWORK_ERROR,details:p.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:u})},b}()},"./src/loader/level-details.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"LevelDetails",function(){return b});var P=T("./src/polyfills/number.ts");function p(d,l){for(var n=0;nc.endSN||u>0||u===0&&o>0,this.updated||this.advanced?this.misses=Math.floor(c.misses*.6):this.misses=c.misses+1,this.availabilityDelay=c.availabilityDelay},v(d,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(P.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||S}},{key:"drift",get:function(){var c=this.driftEndTime-this.driftStartTime;if(c>0){var u=this.driftEnd-this.driftStart;return u*1e3/c}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var c;return(c=this.fragments)!==null&&c!==void 0&&c.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),d}()},"./src/loader/level-key.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"LevelKey",function(){return b});var P=T("./node_modules/url-toolkit/src/url-toolkit.js"),p=T.n(P);function v(d,l){for(var n=0;n2){var y=x.shift()+".";return y+=parseInt(x.shift()).toString(16),y+=("000"+parseInt(x.shift()).toString(16)).substr(-4),y}return C},k.resolve=function(C,x){return p.buildAbsoluteURL(x,C,{alwaysNormalize:!0})},k.parseMasterPlaylist=function(C,x){var y=[],_={},M=!1;u.lastIndex=0;for(var I;(I=u.exec(C))!=null;)if(I[1]){var N=new l.AttrList(I[1]),G={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:k.resolve(I[2],x)},H=N.decimalResolution("RESOLUTION");H&&(G.width=H.width,G.height=H.height),t((N.CODECS||"").split(/[ ,]+/).filter(function(K){return K}),G),G.videoCodec&&G.videoCodec.indexOf("avc1")!==-1&&(G.videoCodec=k.convertAVC1ToAVCOTI(G.videoCodec)),y.push(G)}else if(I[3]){var B=new l.AttrList(I[3]);B["DATA-ID"]&&(M=!0,_[B["DATA-ID"]]=B)}return{levels:y,sessionData:M?_:null}},k.parseMasterPlaylistMedia=function(C,x,y,_){_===void 0&&(_=[]);var M,I=[],N=0;for(o.lastIndex=0;(M=o.exec(C))!==null;){var G=new l.AttrList(M[1]);if(G.TYPE===y){var H={attrs:G,bitrate:0,id:N++,groupId:G["GROUP-ID"],instreamId:G["INSTREAM-ID"],name:G.NAME||G.LANGUAGE||"",type:y,default:G.bool("DEFAULT"),autoselect:G.bool("AUTOSELECT"),forced:G.bool("FORCED"),lang:G.LANGUAGE,url:G.URI?k.resolve(G.URI,x):""};if(_.length){var B=k.findGroup(_,H.groupId)||_[0];w(H,B,"audioCodec"),w(H,B,"textCodec")}I.push(H)}}return I},k.parseLevelPlaylist=function(C,x,y,_,M){var I=new b.LevelDetails(x),N=I.fragments,G=null,H=0,B=0,K=0,U=0,W=null,X=new S.Fragment(_,x),ne,fe,me,Ae=-1,De=!1;for(h.lastIndex=0,I.m3u8=C;(ne=h.exec(C))!==null;){De&&(De=!1,X=new S.Fragment(_,x),X.start=K,X.sn=H,X.cc=U,X.level=y,G&&(X.initSegment=G,X.rawProgramDateTime=G.rawProgramDateTime));var ye=ne[1];if(ye){X.duration=parseFloat(ye);var Oe=(" "+ne[2]).slice(1);X.title=Oe||null,X.tagList.push(Oe?["INF",ye,Oe]:["INF",ye])}else if(ne[3])Object(P.isFiniteNumber)(X.duration)&&(X.start=K,me&&(X.levelkey=me),X.sn=H,X.level=y,X.cc=U,X.urlId=M,N.push(X),X.relurl=(" "+ne[3]).slice(1),f(X,W),W=X,K+=X.duration,H++,B=0,De=!0);else if(ne[4]){var xe=(" "+ne[4]).slice(1);W?X.setByteRange(xe,W):X.setByteRange(xe)}else if(ne[5])X.rawProgramDateTime=(" "+ne[5]).slice(1),X.tagList.push(["PROGRAM-DATE-TIME",X.rawProgramDateTime]),Ae===-1&&(Ae=N.length);else{if(ne=ne[0].match(m),!ne){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(fe=1;fe-1){n.logger.warn("Keyformat "+Je+" is not supported from the manifest");continue}else if(Je!=="identity")continue;V&&(me=d.LevelKey.fromURL(x,Z),Z&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(V)>=0&&(me.method=V,me.keyFormat=Je,Te&&(me.keyID=Te),ge&&(me.keyFormatVersions=ge),me.iv=be));break}case"START":{var nt=new l.AttrList(le),at=nt.decimalFloatingPoint("TIME-OFFSET");Object(P.isFiniteNumber)(at)&&(I.startTimeOffset=at);break}case"MAP":{var ct=new l.AttrList(le);X.relurl=ct.URI,ct.BYTERANGE&&X.setByteRange(ct.BYTERANGE),X.level=y,X.sn="initSegment",me&&(X.levelkey=me),X.initSegment=null,G=X,De=!0;break}case"SERVER-CONTROL":{var ht=new l.AttrList(le);I.canBlockReload=ht.bool("CAN-BLOCK-RELOAD"),I.canSkipUntil=ht.optionalFloat("CAN-SKIP-UNTIL",0),I.canSkipDateRanges=I.canSkipUntil>0&&ht.bool("CAN-SKIP-DATERANGES"),I.partHoldBack=ht.optionalFloat("PART-HOLD-BACK",0),I.holdBack=ht.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var He=new l.AttrList(le);I.partTarget=He.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Re=I.partList;Re||(Re=I.partList=[]);var tt=B>0?Re[Re.length-1]:void 0,ft=B++,Qe=new S.Part(new l.AttrList(le),X,x,ft,tt);Re.push(Qe),X.duration+=Qe.duration;break}case"PRELOAD-HINT":{var lt=new l.AttrList(le);I.preloadHint=lt;break}case"RENDITION-REPORT":{var Ue=new l.AttrList(le);I.renditionReports=I.renditionReports||[],I.renditionReports.push(Ue);break}default:n.logger.warn("line parsed but not handled: "+ne);break}}}W&&!W.relurl?(N.pop(),K-=W.duration,I.partList&&(I.fragmentHint=W)):I.partList&&(f(X,W),X.cc=U,I.fragmentHint=X);var Le=N.length,Ie=N[0],Ce=N[Le-1];if(K+=I.skippedSegments*I.targetduration,K>0&&Le&&Ce){I.averagetargetduration=K/Le;var Se=Ce.sn;I.endSN=Se!=="initSegment"?Se:0,Ie&&(I.startCC=Ie.cc,Ie.initSegment||I.fragments.every(function(ke){return ke.relurl&&r(ke.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),X=new S.Fragment(_,x),X.relurl=Ce.relurl,X.level=y,X.sn="initSegment",Ie.initSegment=X,I.needSidxRanges=!0))}else I.endSN=0,I.startCC=0;return I.fragmentHint&&(K+=I.fragmentHint.duration),I.totalduration=K,I.endCC=U,Ae>0&&E(N,Ae),I},k}();function t(k,O){["video","audio","text"].forEach(function(C){var x=k.filter(function(_){return Object(c.isCodecType)(_,C)});if(x.length){var y=x.filter(function(_){return _.lastIndexOf("avc1",0)===0||_.lastIndexOf("mp4a",0)===0});O[C+"Codec"]=y.length>0?y[0]:x[0],k=k.filter(function(_){return x.indexOf(_)===-1})}}),O.unknownCodecs=k}function w(k,O,C){var x=O[C];x&&(k[C]=x)}function E(k,O){for(var C=k[O],x=O;x--;){var y=k[x];if(!y)return;y.programDateTime=C.programDateTime-y.duration*1e3,C=y}}function f(k,O){k.rawProgramDateTime?k.programDateTime=Date.parse(k.rawProgramDateTime):O!=null&&O.programDateTime&&(k.programDateTime=O.endProgramDateTime),Object(P.isFiniteNumber)(k.programDateTime)||(k.programDateTime=null,k.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/polyfills/number.ts"),p=T("./src/events.ts"),v=T("./src/errors.ts"),S=T("./src/utils/logger.ts"),b=T("./src/utils/mp4-tools.ts"),d=T("./src/loader/m3u8-parser.ts"),l=T("./src/types/loader.ts"),n=T("./src/utils/attr-list.ts");function c(h){var m=h.type;switch(m){case l.PlaylistContextType.AUDIO_TRACK:return l.PlaylistLevelType.AUDIO;case l.PlaylistContextType.SUBTITLE_TRACK:return l.PlaylistLevelType.SUBTITLE;default:return l.PlaylistLevelType.MAIN}}function u(h,m){var s=h.url;return(s===void 0||s.indexOf("data:")===0)&&(s=m.url),s}var o=function(){function h(s){this.hls=void 0,this.loaders=Object.create(null),this.hls=s,this.registerListeners()}var m=h.prototype;return m.registerListeners=function(){var r=this.hls;r.on(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(p.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(p.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(p.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.unregisterListeners=function(){var r=this.hls;r.off(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(p.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(p.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(p.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},m.createInternalLoader=function(r){var a=this.hls.config,t=a.pLoader,w=a.loader,E=t||w,f=new E(a);return r.loader=f,this.loaders[r.type]=f,f},m.getInternalLoader=function(r){return this.loaders[r.type]},m.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},m.destroyInternalLoaders=function(){for(var r in this.loaders){var a=this.loaders[r];a&&a.destroy(),this.resetInternalLoader(r)}},m.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},m.onManifestLoading=function(r,a){var t=a.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:l.PlaylistContextType.MANIFEST,url:t,deliveryDirectives:null})},m.onLevelLoading=function(r,a){var t=a.id,w=a.level,E=a.url,f=a.deliveryDirectives;this.load({id:t,groupId:null,level:w,responseType:"text",type:l.PlaylistContextType.LEVEL,url:E,deliveryDirectives:f})},m.onAudioTrackLoading=function(r,a){var t=a.id,w=a.groupId,E=a.url,f=a.deliveryDirectives;this.load({id:t,groupId:w,level:null,responseType:"text",type:l.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:f})},m.onSubtitleTrackLoading=function(r,a){var t=a.id,w=a.groupId,E=a.url,f=a.deliveryDirectives;this.load({id:t,groupId:w,level:null,responseType:"text",type:l.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:f})},m.load=function(r){var a,t=this.hls.config,w=this.getInternalLoader(r);if(w){var E=w.context;if(E&&E.url===r.url){S.logger.trace("[playlist-loader]: playlist request ongoing");return}S.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),w.abort()}var f,k,O,C;switch(r.type){case l.PlaylistContextType.MANIFEST:f=t.manifestLoadingMaxRetry,k=t.manifestLoadingTimeOut,O=t.manifestLoadingRetryDelay,C=t.manifestLoadingMaxRetryTimeout;break;case l.PlaylistContextType.LEVEL:case l.PlaylistContextType.AUDIO_TRACK:case l.PlaylistContextType.SUBTITLE_TRACK:f=0,k=t.levelLoadingTimeOut;break;default:f=t.levelLoadingMaxRetry,k=t.levelLoadingTimeOut,O=t.levelLoadingRetryDelay,C=t.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(r),(a=r.deliveryDirectives)!==null&&a!==void 0&&a.part){var x;if(r.type===l.PlaylistContextType.LEVEL&&r.level!==null?x=this.hls.levels[r.level].details:r.type===l.PlaylistContextType.AUDIO_TRACK&&r.id!==null?x=this.hls.audioTracks[r.id].details:r.type===l.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(x=this.hls.subtitleTracks[r.id].details),x){var y=x.partTarget,_=x.targetduration;y&&_&&(k=Math.min(Math.max(y*3,_*.8)*1e3,k))}}var M={timeout:k,maxRetry:f,retryDelay:O,maxRetryDelay:C,highWaterMark:0},I={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(r,M,I)},m.loadsuccess=function(r,a,t,w){if(w===void 0&&(w=null),t.isSidxRequest){this.handleSidxRequest(r,t),this.handlePlaylistLoaded(r,a,t,w);return}this.resetInternalLoader(t.type);var E=r.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,t,"no EXTM3U delimiter",w);return}a.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,a,t,w):this.handleMasterPlaylist(r,a,t,w)},m.loaderror=function(r,a,t){t===void 0&&(t=null),this.handleNetworkError(a,t,!1,r)},m.loadtimeout=function(r,a,t){t===void 0&&(t=null),this.handleNetworkError(a,t,!0)},m.handleMasterPlaylist=function(r,a,t,w){var E=this.hls,f=r.data,k=u(r,t),O=d.default.parseMasterPlaylist(f,k),C=O.levels,x=O.sessionData;if(!C.length){this.handleManifestParsingError(r,t,"no level found in manifest",w);return}var y=C.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),_=C.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),M=d.default.parseMasterPlaylistMedia(f,k,"AUDIO",y),I=d.default.parseMasterPlaylistMedia(f,k,"SUBTITLES",_),N=d.default.parseMasterPlaylistMedia(f,k,"CLOSED-CAPTIONS");if(M.length){var G=M.some(function(H){return!H.url});!G&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(S.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),M.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}E.trigger(p.Events.MANIFEST_LOADED,{levels:C,audioTracks:M,subtitles:I,captions:N,url:k,stats:a,networkDetails:w,sessionData:x})},m.handleTrackOrLevelPlaylist=function(r,a,t,w){var E=this.hls,f=t.id,k=t.level,O=t.type,C=u(r,t),x=Object(P.isFiniteNumber)(f)?f:0,y=Object(P.isFiniteNumber)(k)?k:x,_=c(t),M=d.default.parseLevelPlaylist(r.data,C,y,_,x);if(!M.fragments.length){E.trigger(p.Events.ERROR,{type:v.ErrorTypes.NETWORK_ERROR,details:v.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof t.level=="number"?t.level:void 0});return}if(O===l.PlaylistContextType.MANIFEST){var I={attrs:new n.AttrList({}),bitrate:0,details:M,name:"",url:C};E.trigger(p.Events.MANIFEST_LOADED,{levels:[I],audioTracks:[],url:C,stats:a,networkDetails:w,sessionData:null})}if(a.parsing.end=performance.now(),M.needSidxRanges){var N,G=(N=M.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:G,isSidxRequest:!0,type:O,level:k,levelDetails:M,id:f,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}t.levelDetails=M,this.handlePlaylistLoaded(r,a,t,w)},m.handleSidxRequest=function(r,a){var t=Object(b.parseSegmentIndex)(new Uint8Array(r.data));if(!t)return;var w=t.references,E=a.levelDetails;w.forEach(function(f,k){var O=f.info,C=E.fragments[k];C.byteRange.length===0&&C.setByteRange(String(1+O.end-O.start)+"@"+String(O.start)),C.initSegment&&C.initSegment.setByteRange(String(t.moovEndOffset)+"@0")})},m.handleManifestParsingError=function(r,a,t,w){this.hls.trigger(p.Events.ERROR,{type:v.ErrorTypes.NETWORK_ERROR,details:v.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:a.type===l.PlaylistContextType.MANIFEST,url:r.url,reason:t,response:r,context:a,networkDetails:w})},m.handleNetworkError=function(r,a,t,w){t===void 0&&(t=!1),S.logger.warn("[playlist-loader]: A network "+(t?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var E=v.ErrorDetails.UNKNOWN,f=!1,k=this.getInternalLoader(r);switch(r.type){case l.PlaylistContextType.MANIFEST:E=t?v.ErrorDetails.MANIFEST_LOAD_TIMEOUT:v.ErrorDetails.MANIFEST_LOAD_ERROR,f=!0;break;case l.PlaylistContextType.LEVEL:E=t?v.ErrorDetails.LEVEL_LOAD_TIMEOUT:v.ErrorDetails.LEVEL_LOAD_ERROR,f=!1;break;case l.PlaylistContextType.AUDIO_TRACK:E=t?v.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:v.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,f=!1;break;case l.PlaylistContextType.SUBTITLE_TRACK:E=t?v.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:v.ErrorDetails.SUBTITLE_LOAD_ERROR,f=!1;break}k&&this.resetInternalLoader(r.type);var O={type:v.ErrorTypes.NETWORK_ERROR,details:E,fatal:f,url:r.url,loader:k,context:r,networkDetails:a};w&&(O.response=w),this.hls.trigger(p.Events.ERROR,O)},m.handlePlaylistLoaded=function(r,a,t,w){var E=t.type,f=t.level,k=t.id,O=t.groupId,C=t.loader,x=t.levelDetails,y=t.deliveryDirectives;if(!(x!=null&&x.targetduration)){this.handleManifestParsingError(r,t,"invalid target duration",w);return}if(!C)return;x.live&&(C.getCacheAge&&(x.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(x.ageHeader))&&(x.ageHeader=0));switch(E){case l.PlaylistContextType.MANIFEST:case l.PlaylistContextType.LEVEL:this.hls.trigger(p.Events.LEVEL_LOADED,{details:x,level:f||0,id:k||0,stats:a,networkDetails:w,deliveryDirectives:y});break;case l.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(p.Events.AUDIO_TRACK_LOADED,{details:x,id:k||0,groupId:O||"",stats:a,networkDetails:w,deliveryDirectives:y});break;case l.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(p.Events.SUBTITLE_TRACK_LOADED,{details:x,id:k||0,groupId:O||"",stats:a,networkDetails:w,deliveryDirectives:y});break}},h}();g.default=o},"./src/polyfills/number.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"isFiniteNumber",function(){return P}),T.d(g,"MAX_SAFE_INTEGER",function(){return p});var P=Number.isFinite||function(v){return typeof v=="number"&&isFinite(v)},p=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(L,g,T){"use strict";T.r(g);var P=function(){function p(){}return p.getSilentFrame=function(S,b){switch(S){case"mp4a.40.2":if(b===1)return new Uint8Array([0,200,0,128,35,128]);if(b===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(b===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(b===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(b===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(b===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(b===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(b===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(b===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},p}();g.default=P},"./src/remux/mp4-generator.ts":function(L,g,T){"use strict";T.r(g);var P=Math.pow(2,32)-1,p=function(){function v(){}return v.init=function(){v.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var b;for(b in v.types)v.types.hasOwnProperty(b)&&(v.types[b]=[b.charCodeAt(0),b.charCodeAt(1),b.charCodeAt(2),b.charCodeAt(3)]);var d=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),l=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);v.HDLR_TYPES={video:d,audio:l};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),c=new Uint8Array([0,0,0,0,0,0,0,0]);v.STTS=v.STSC=v.STCO=c,v.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),v.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),v.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),v.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var u=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),h=new Uint8Array([0,0,0,1]);v.FTYP=v.box(v.types.ftyp,u,h,u,o),v.DINF=v.box(v.types.dinf,v.box(v.types.dref,n))},v.box=function(b){for(var d=8,l=arguments.length,n=new Array(l>1?l-1:0),c=1;c>24&255,h[1]=d>>16&255,h[2]=d>>8&255,h[3]=d&255,h.set(b,4),u=0,d=8;u>24&255,b>>16&255,b>>8&255,b&255,l>>24,l>>16&255,l>>8&255,l&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},v.mdia=function(b){return v.box(v.types.mdia,v.mdhd(b.timescale,b.duration),v.hdlr(b.type),v.minf(b))},v.mfhd=function(b){return v.box(v.types.mfhd,new Uint8Array([0,0,0,0,b>>24,b>>16&255,b>>8&255,b&255]))},v.minf=function(b){return b.type==="audio"?v.box(v.types.minf,v.box(v.types.smhd,v.SMHD),v.DINF,v.stbl(b)):v.box(v.types.minf,v.box(v.types.vmhd,v.VMHD),v.DINF,v.stbl(b))},v.moof=function(b,d,l){return v.box(v.types.moof,v.mfhd(b),v.traf(l,d))},v.moov=function(b){for(var d=b.length,l=[];d--;)l[d]=v.trak(b[d]);return v.box.apply(null,[v.types.moov,v.mvhd(b[0].timescale,b[0].duration)].concat(l).concat(v.mvex(b)))},v.mvex=function(b){for(var d=b.length,l=[];d--;)l[d]=v.trex(b[d]);return v.box.apply(null,[v.types.mvex].concat(l))},v.mvhd=function(b,d){d*=b;var l=Math.floor(d/(P+1)),n=Math.floor(d%(P+1)),c=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,b>>24&255,b>>16&255,b>>8&255,b&255,l>>24,l>>16&255,l>>8&255,l&255,n>>24,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return v.box(v.types.mvhd,c)},v.sdtp=function(b){var d=b.samples||[],l=new Uint8Array(4+d.length),n,c;for(n=0;n>>8&255),d.push(u&255),d=d.concat(Array.prototype.slice.call(c));for(n=0;n>>8&255),l.push(u&255),l=l.concat(Array.prototype.slice.call(c));var o=v.box(v.types.avcC,new Uint8Array([1,d[3],d[4],d[5],252|3,224|b.sps.length].concat(d).concat([b.pps.length]).concat(l))),h=b.width,m=b.height,s=b.pixelRatio[0],r=b.pixelRatio[1];return v.box(v.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,h&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,v.box(v.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),v.box(v.types.pasp,new Uint8Array([s>>24,s>>16&255,s>>8&255,s&255,r>>24,r>>16&255,r>>8&255,r&255])))},v.esds=function(b){var d=b.config.length;return new Uint8Array([0,0,0,0,3,23+d,0,1,0,4,15+d,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([d]).concat(b.config).concat([6,1,2]))},v.mp4a=function(b){var d=b.samplerate;return v.box(v.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,b.channelCount,0,16,0,0,0,0,d>>8&255,d&255,0,0]),v.box(v.types.esds,v.esds(b)))},v.mp3=function(b){var d=b.samplerate;return v.box(v.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,b.channelCount,0,16,0,0,0,0,d>>8&255,d&255,0,0]))},v.stsd=function(b){return b.type==="audio"?!b.isAAC&&b.codec==="mp3"?v.box(v.types.stsd,v.STSD,v.mp3(b)):v.box(v.types.stsd,v.STSD,v.mp4a(b)):v.box(v.types.stsd,v.STSD,v.avc1(b))},v.tkhd=function(b){var d=b.id,l=b.duration*b.timescale,n=b.width,c=b.height,u=Math.floor(l/(P+1)),o=Math.floor(l%(P+1));return v.box(v.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,d>>24&255,d>>16&255,d>>8&255,d&255,0,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,o>>24,o>>16&255,o>>8&255,o&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,n&255,0,0,c>>8&255,c&255,0,0]))},v.traf=function(b,d){var l=v.sdtp(b),n=b.id,c=Math.floor(d/(P+1)),u=Math.floor(d%(P+1));return v.box(v.types.traf,v.box(v.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),v.box(v.types.tfdt,new Uint8Array([1,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,u>>24,u>>16&255,u>>8&255,u&255])),v.trun(b,l.length+16+20+8+16+8+8),l)},v.trak=function(b){return b.duration=b.duration||4294967295,v.box(v.types.trak,v.tkhd(b),v.mdia(b))},v.trex=function(b){var d=b.id;return v.box(v.types.trex,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},v.trun=function(b,d){var l=b.samples||[],n=l.length,c=12+16*n,u=new Uint8Array(c),o,h,m,s,r,a;for(d+=8+c,u.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255],0),o=0;o>>24&255,m>>>16&255,m>>>8&255,m&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,a>>>24&255,a>>>16&255,a>>>8&255,a&255],12+16*o);return v.box(v.types.trun,u)},v.initSegment=function(b){v.types||v.init();var d=v.moov(b),l=new Uint8Array(v.FTYP.byteLength+d.byteLength);return l.set(v.FTYP),l.set(d,v.FTYP.byteLength),l},v}();p.types=void 0,p.HDLR_TYPES=void 0,p.STTS=void 0,p.STSC=void 0,p.STCO=void 0,p.STSZ=void 0,p.VMHD=void 0,p.SMHD=void 0,p.STSD=void 0,p.FTYP=void 0,p.DINF=void 0,g.default=p},"./src/remux/mp4-remuxer.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return a}),T.d(g,"normalizePts",function(){return t});var P=T("./src/polyfills/number.ts"),p=T("./src/remux/aac-helper.ts"),v=T("./src/remux/mp4-generator.ts"),S=T("./src/events.ts"),b=T("./src/errors.ts"),d=T("./src/utils/logger.ts"),l=T("./src/types/loader.ts"),n=T("./src/utils/timescale-conversion.ts");function c(){return c=Object.assign||function(k){for(var O=1;O0?M:I.pts},x[0].pts);return y&&d.logger.debug("PTS rollover detected"),_},O.remux=function(x,y,_,M,I,N,G,H){var B,K,U,W,X,ne,fe=I,me=I,Ae=x.pid>-1,De=y.pid>-1,ye=y.samples.length,Oe=x.samples.length>0,xe=ye>1,ue=(!Ae||Oe)&&(!De||xe)||this.ISGenerated||G;if(ue){this.ISGenerated||(U=this.generateIS(x,y,I));var le=this.isVideoContiguous,re=-1;if(xe&&(re=w(y.samples),!le&&this.config.forceKeyFrameOnDiscontinuity))if(ne=!0,re>0){d.logger.warn("[mp4-remuxer]: Dropped "+re+" out of "+ye+" video samples due to a missing keyframe");var pe=this.getVideoStartPts(y.samples);y.samples=y.samples.slice(re),y.dropped+=re,me+=(y.samples[0].pts-pe)/(y.timescale||9e4)}else re===-1&&(d.logger.warn("[mp4-remuxer]: No keyframe found out of "+ye+" video samples"),ne=!1);if(this.ISGenerated){if(Oe&&xe){var ee=this.getVideoStartPts(y.samples),te=t(x.samples[0].pts,ee)-ee,ce=te/y.inputTimeScale;fe+=Math.max(0,ce),me+=Math.max(0,-ce)}if(Oe){if(x.samplerate||(d.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(x,y,I)),K=this.remuxAudio(x,fe,this.isAudioContiguous,N,De||xe||H===l.PlaylistLevelType.AUDIO?me:void 0),xe){var q=K?K.endPTS-K.startPTS:0;y.inputTimeScale||(d.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(x,y,I)),B=this.remuxVideo(y,me,le,q)}}else xe&&(B=this.remuxVideo(y,me,le,0));B&&(B.firstKeyFrame=re,B.independent=re!==-1)}}return this.ISGenerated&&(_.samples.length&&(X=this.remuxID3(_,I)),M.samples.length&&(W=this.remuxText(M,I))),{audio:K,video:B,initSegment:U,independent:ne,text:W,id3:X}},O.generateIS=function(x,y,_){var M=x.samples,I=y.samples,N=this.typeSupported,G={},H=!Object(P.isFiniteNumber)(this._initPTS),B="audio/mp4",K,U,W;if(H&&(K=U=Infinity),x.config&&M.length&&(x.timescale=x.samplerate,x.isAAC||(N.mpeg?(B="audio/mpeg",x.codec=""):N.mp3&&(x.codec="mp3")),G.audio={id:"audio",container:B,codec:x.codec,initSegment:!x.isAAC&&N.mpeg?new Uint8Array(0):v.default.initSegment([x]),metadata:{channelCount:x.channelCount}},H&&(W=x.inputTimeScale,K=U=M[0].pts-Math.round(W*_))),y.sps&&y.pps&&I.length&&(y.timescale=y.inputTimeScale,G.video={id:"main",container:"video/mp4",codec:y.codec,initSegment:v.default.initSegment([y]),metadata:{width:y.width,height:y.height}},H)){W=y.inputTimeScale;var X=this.getVideoStartPts(I),ne=Math.round(W*_);U=Math.min(U,t(I[0].dts,X)-ne),K=Math.min(K,X-ne)}if(Object.keys(G).length)return this.ISGenerated=!0,H&&(this._initPTS=K,this._initDTS=U),{tracks:G,initPTS:K,timescale:W}},O.remuxVideo=function(x,y,_,M){var I=x.inputTimeScale,N=x.samples,G=[],H=N.length,B=this._initPTS,K=this.nextAvcDts,U=8,W,X,ne,fe=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,Ae=0,De=!1;if(!_||K===null){var ye=y*I,Oe=N[0].pts-t(N[0].dts,N[0].pts);K=ye-Oe}for(var xe=0;xeue.pts){var le=9e4*.2;Ae=Math.max(Math.min(Ae,ue.pts-ue.dts),-1*le)}ue.dts0?xe-1:xe].dts&&(De=!0)}De&&N.sort(function(hr,mr){var St=hr.dts-mr.dts,Yr=hr.pts-mr.pts;return St||Yr}),X=N[0].dts,ne=N[N.length-1].dts;var re=Math.round((ne-X)/(H-1));if(Ae<0){if(Aere,Q=ce<-1;if(q||Q){q?d.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ce,!0)+" ms ("+ce+"dts) hole between fragments detected, filling it"):d.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ce,!0)+" ms ("+ce+"dts) overlapping between fragments detected"),X=K;var V=N[0].pts-ce;N[0].dts=X,N[0].pts=V,d.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(V,!0)+"/"+Object(n.toMsFromMpegTsClock)(X,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ce,!0)+" ms")}}r&&(X=Math.max(0,X));for(var Z=0,be=0,ge=0;ge0?Re-1:Re].dts;if(Se.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ne=Math.floor(Se.maxBufferHole*I),et=(M?fe+M*I:this.nextAudioPts)-tt.pts;et>Ne?(W=et-ke,W<0&&(W=ke),d.logger.log("[mp4-remuxer]: It is approximately "+et/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=ke}else W=ke}var $e=Math.round(tt.pts-tt.dts);G.push(new E(tt.key,W,Qe,$e))}if(G.length&&m&&m<70){var bt=G[0].flags;bt.dependsOn=2,bt.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=K=ne+W,this.isVideoContiguous=!0;var gt=v.default.moof(x.sequenceNumber++,X,c({},x,{samples:G})),Ut="video",Nt={data1:gt,data2:ht,startPTS:fe/I,endPTS:(me+W)/I,startDTS:X/I,endDTS:K/I,type:Ut,hasAudio:!1,hasVideo:!0,nb:G.length,dropped:x.dropped};return x.samples=[],x.dropped=0,console.assert(ht.length,"MDAT length must not be zero"),Nt},O.remuxAudio=function(x,y,_,M,I){var N=x.inputTimeScale,G=x.samplerate?x.samplerate:N,H=N/G,B=x.isAAC?o:h,K=B*H,U=this._initPTS,W=!x.isAAC&&this.typeSupported.mpeg,X=[],ne=x.samples,fe=W?0:8,me=this.nextAudioPts||-1,Ae=y*N;if(this.isAudioContiguous=_=_||ne.length&&me>0&&(M&&Math.abs(Ae-me)<9e3||Math.abs(t(ne[0].pts-U,Ae)-me)<20*K),ne.forEach(function(Ie){Ie.pts=t(Ie.pts-U,Ae)}),!_||me<0){if(ne=ne.filter(function(Ie){return Ie.pts>=0}),!ne.length)return;I===0?me=0:M?me=Math.max(0,Ae):me=ne[0].pts}if(x.isAAC)for(var De=I!==void 0,ye=this.config.maxAudioFramesDrift,Oe=0,xe=me;Oe=ye*K&&pe0){be+=fe;try{Z=new Uint8Array(be)}catch(Ie){this.observer.emit(S.Events.ERROR,S.Events.ERROR,{type:b.ErrorTypes.MUX_ERROR,details:b.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:be,reason:"fail allocating audio mdat "+be});return}if(!W){var ht=new DataView(Z.buffer);ht.setUint32(0,be),Z.set(v.default.types.mdat,4)}}else return;Z.set(nt,fe);var He=nt.byteLength;fe+=He,X.push(new E(!0,B,He,0)),V=at}var Re=X.length;if(!Re)return;var tt=X[X.length-1];this.nextAudioPts=me=V+H*tt.duration;var ft=W?new Uint8Array(0):v.default.moof(x.sequenceNumber++,Q/H,c({},x,{samples:X}));x.samples=[];var Qe=Q/N,lt=me/N,Ue="audio",Le={data1:ft,data2:Z,startPTS:Qe,endPTS:lt,startDTS:Qe,endDTS:lt,type:Ue,hasAudio:!0,hasVideo:!1,nb:Re};return this.isAudioContiguous=!0,console.assert(Z.length,"MDAT length must not be zero"),Le},O.remuxEmptyAudio=function(x,y,_,M){var I=x.inputTimeScale,N=x.samplerate?x.samplerate:I,G=I/N,H=this.nextAudioPts,B=(H!==null?H:M.startDTS*I)+this._initDTS,K=M.endDTS*I+this._initDTS,U=G*o,W=Math.ceil((K-B)/U),X=p.default.getSilentFrame(x.manifestCodec||x.codec,x.channelCount);if(d.logger.warn("[mp4-remuxer]: remux empty Audio"),!X){d.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ne=[],fe=0;fe4294967296;)k+=C;return k}function w(k){for(var O=0;O0?this.lastEndDTS=x:(S.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var y=!!k.audio,_=!!k.video,M="";y&&(M+="audio"),_&&(M+="video");var I={data1:E,startPTS:C,startDTS:C,endPTS:x,endDTS:x,type:M,hasAudio:y,hasVideo:_,nb:1,dropped:0};return w.audio=I.type==="audio"?I:void 0,w.video=I.type!=="audio"?I:void 0,w.text=s,w.id3=m,w.initSegment=f,w},n}(),d=function(c,u,o){return Object(p.getStartDTS)(c,u)-o};function l(n,c){var u=n==null?void 0:n.codec;return u&&u.length>4?u:u==="hvc1"?"hvc1.1.c.L120.90":u==="av01"?"av01.0.04M.08":u==="avc1"||c===v.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}g.default=b},"./src/task-loop.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"default",function(){return P});var P=function(){function p(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var v=p.prototype;return v.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},v.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},v.onHandlerDestroyed=function(){},v.hasInterval=function(){return!!this._tickInterval},v.hasNextTick=function(){return!!this._tickTimer},v.setInterval=function(b){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,b),!0)},v.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},v.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},v.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},v.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},v.doTick=function(){},p}()},"./src/types/cmcd.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"CMCDVersion",function(){return P}),T.d(g,"CMCDObjectType",function(){return p}),T.d(g,"CMCDStreamingFormat",function(){return v}),T.d(g,"CMCDStreamType",function(){return S});var P=1,p;(function(b){b.MANIFEST="m",b.AUDIO="a",b.VIDEO="v",b.MUXED="av",b.INIT="i",b.CAPTION="c",b.TIMED_TEXT="tt",b.KEY="k",b.OTHER="o"})(p||(p={}));var v;(function(b){b.DASH="d",b.HLS="h",b.SMOOTH="s",b.OTHER="o"})(v||(v={}));var S;(function(b){b.VOD="v",b.LIVE="l"})(S||(S={}))},"./src/types/level.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"HlsSkip",function(){return v}),T.d(g,"getSkipValue",function(){return S}),T.d(g,"HlsUrlParameters",function(){return b}),T.d(g,"Level",function(){return d});function P(l,n){for(var c=0;cNumber.MAX_SAFE_INTEGER?Infinity:n},b.hexadecimalInteger=function(l){if(this[l]){var n=(this[l]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var c=new Uint8Array(n.length/2),u=0;uNumber.MAX_SAFE_INTEGER?Infinity:n},b.decimalFloatingPoint=function(l){return parseFloat(this[l])},b.optionalFloat=function(l,n){var c=this[l];return c?parseFloat(c):n},b.enumeratedString=function(l){return this[l]},b.bool=function(l){return this[l]==="YES"},b.decimalResolution=function(l){var n=P.exec(this[l]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},S.parseAttrList=function(l){var n,c={},u='"';for(p.lastIndex=0;(n=p.exec(l))!==null;){var o=n[2];o.indexOf(u)===0&&o.lastIndexOf(u)===o.length-1&&(o=o.slice(1,-1)),c[n[1]]=o}return c},S}()},"./src/utils/binary-search.ts":function(L,g,T){"use strict";T.r(g);var P={search:function(v,S){for(var b=0,d=v.length-1,l=null,n=null;b<=d;){l=(b+d)/2|0,n=v[l];var c=S(n);if(c>0)b=l+1;else if(c<0)d=l-1;else return n}return null}};g.default=P},"./src/utils/buffer-helper.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"BufferHelper",function(){return v});var P=T("./src/utils/logger.ts"),p={length:0,start:function(){return 0},end:function(){return 0}},v=function(){function S(){}return S.isBuffered=function(d,l){try{if(d){for(var n=S.getBuffered(d),c=0;c=n.start(c)&&l<=n.end(c))return!0}}catch(u){}return!1},S.bufferInfo=function(d,l,n){try{if(d){var c=S.getBuffered(d),u=[],o;for(o=0;oh&&(c[o-1].end=d[u].end):c.push(d[u])}else c.push(d[u])}else c=d;for(var m=0,s,r=l,a=l,t=0;t=w&&l=_&&P.logger.log(this.time+" ["+_+"] "+M)},C}(),m=function(x){for(var y=[],_=0;_b&&(this.logger.log(o.DEBUG,"Too large cursor position "+this.pos),this.pos=b)},x.moveCursor=function(_){var M=this.pos+_;if(_>1)for(var I=this.pos+1;I=144&&this.backSpace();var M=v(_);if(this.pos>=b){this.logger.log(o.ERROR,"Cannot insert "+_.toString(16)+" ("+M+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(M,this.currPenState),this.moveCursor(1)},x.clearFromPos=function(_){var M;for(M=_;M0&&(_?I="["+M.join(" | ")+"]":I=M.join(` +`)),I},x.getTextAndFormat=function(){return this.rows},C}(),w=function(){function C(y,_,M){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=y,this.outputFilter=_,this.mode=null,this.verbose=0,this.displayedMemory=new t(M),this.nonDisplayedMemory=new t(M),this.lastOutputScreen=new t(M),this.currRollUpRow=this.displayedMemory.rows[S-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=M}var x=C.prototype;return x.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[S-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},x.getHandler=function(){return this.outputFilter},x.setHandler=function(_){this.outputFilter=_},x.setPAC=function(_){this.writeScreen.setPAC(_)},x.setBkgData=function(_){this.writeScreen.setBkgData(_)},x.setMode=function(_){if(_===this.mode)return;this.mode=_,this.logger.log(o.INFO,"MODE="+_),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=_},x.insertChars=function(_){for(var M=0;M<_.length;M++)this.writeScreen.insertChar(_[M]);var I=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(o.INFO,I+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(o.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},x.ccRCL=function(){this.logger.log(o.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},x.ccBS=function(){if(this.logger.log(o.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},x.ccAOF=function(){},x.ccAON=function(){},x.ccDER=function(){this.logger.log(o.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},x.ccRU=function(_){this.logger.log(o.INFO,"RU("+_+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(_)},x.ccFON=function(){this.logger.log(o.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},x.ccRDC=function(){this.logger.log(o.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},x.ccTR=function(){this.logger.log(o.INFO,"TR"),this.setMode("MODE_TEXT")},x.ccRTD=function(){this.logger.log(o.INFO,"RTD"),this.setMode("MODE_TEXT")},x.ccEDM=function(){this.logger.log(o.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},x.ccCR=function(){this.logger.log(o.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},x.ccENM=function(){this.logger.log(o.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},x.ccEOC=function(){if(this.logger.log(o.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var _=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=_,this.writeScreen=this.nonDisplayedMemory,this.logger.log(o.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},x.ccTO=function(_){this.logger.log(o.INFO,"TO("+_+") - Tab Offset"),this.writeScreen.moveCursor(_)},x.ccMIDROW=function(_){var M={flash:!1};if(M.underline=_%2===1,M.italics=_>=46,M.italics)M.foreground="white";else{var I=Math.floor(_/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];M.foreground=N[I]}this.logger.log(o.INFO,"MIDROW: "+JSON.stringify(M)),this.writeScreen.setPen(M)},x.outputDataUpdate=function(_){_===void 0&&(_=!1);var M=this.logger.time;if(M===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=M:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,M,this.lastOutputScreen),_&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:M),this.lastOutputScreen.copy(this.displayedMemory))},x.cueSplitAtTime=function(_){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,_,this.displayedMemory),this.cueStartTime=_))},C}(),E=function(){function C(y,_,M){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var I=new h;this.channels=[null,new w(y,_,I),new w(y+1,M,I)],this.cmdHistory=O(),this.logger=I}var x=C.prototype;return x.getHandler=function(_){return this.channels[_].getHandler()},x.setHandler=function(_,M){this.channels[_].setHandler(M)},x.addData=function(_,M){var I,N,G,H=!1;this.logger.time=_;for(var B=0;B ("+m([N,G])+")"),I=this.parseCmd(N,G),I||(I=this.parseMidrow(N,G)),I||(I=this.parsePAC(N,G)),I||(I=this.parseBackgroundAttributes(N,G)),!I&&(H=this.parseChars(N,G),H)){var K=this.currentChannel;if(K&&K>0){var U=this.channels[K];U.insertChars(H)}else this.logger.log(o.WARNING,"No channel found yet. TEXT-MODE?")}!I&&!H&&this.logger.log(o.WARNING,"Couldn't parse cleaned data "+m([N,G])+" orig: "+m([M[B],M[B+1]]))}},x.parseCmd=function(_,M){var I=this.cmdHistory,N=(_===20||_===28||_===21||_===29)&&M>=32&&M<=47,G=(_===23||_===31)&&M>=33&&M<=35;if(!(N||G))return!1;if(k(_,M,I))return f(null,null,I),this.logger.log(o.DEBUG,"Repeated command ("+m([_,M])+") is dropped"),!0;var H=_===20||_===21||_===23?1:2,B=this.channels[H];return _===20||_===21||_===28||_===29?M===32?B.ccRCL():M===33?B.ccBS():M===34?B.ccAOF():M===35?B.ccAON():M===36?B.ccDER():M===37?B.ccRU(2):M===38?B.ccRU(3):M===39?B.ccRU(4):M===40?B.ccFON():M===41?B.ccRDC():M===42?B.ccTR():M===43?B.ccRTD():M===44?B.ccEDM():M===45?B.ccCR():M===46?B.ccENM():M===47&&B.ccEOC():B.ccTO(M-32),f(_,M,I),this.currentChannel=H,!0},x.parseMidrow=function(_,M){var I=0;if((_===17||_===25)&&M>=32&&M<=47){if(_===17?I=1:I=2,I!==this.currentChannel)return this.logger.log(o.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[I];return N?(N.ccMIDROW(M),this.logger.log(o.DEBUG,"MIDROW ("+m([_,M])+")"),!0):!1}return!1},x.parsePAC=function(_,M){var I,N=this.cmdHistory,G=(_>=17&&_<=23||_>=25&&_<=31)&&M>=64&&M<=127,H=(_===16||_===24)&&M>=64&&M<=95;if(!(G||H))return!1;if(k(_,M,N))return f(null,null,N),!0;var B=_<=23?1:2;M>=64&&M<=95?I=B===1?d[_]:n[_]:I=B===1?l[_]:c[_];var K=this.channels[B];return K?(K.setPAC(this.interpretPAC(I,M)),f(_,M,N),this.currentChannel=B,!0):!1},x.interpretPAC=function(_,M){var I,N={color:null,italics:!1,indent:null,underline:!1,row:_};return M>95?I=M-96:I=M-64,N.underline=(I&1)===1,I<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(I/2)]:I<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((I-16)/2)*4,N},x.parseChars=function(_,M){var I,N=null,G=null;if(_>=25?(I=2,G=_-8):(I=1,G=_),G>=17&&G<=19){var H;G===17?H=M+80:G===18?H=M+112:H=M+144,this.logger.log(o.INFO,"Special char '"+v(H)+"' in channel "+I),N=[H]}else _>=32&&_<=127&&(N=M===0?[_]:[_,M]);if(N){var B=m(N);this.logger.log(o.DEBUG,"Char codes = "+B.join(",")),f(_,M,this.cmdHistory)}return N},x.parseBackgroundAttributes=function(_,M){var I=(_===16||_===24)&&M>=32&&M<=47,N=(_===23||_===31)&&M>=45&&M<=47;if(!(I||N))return!1;var G,H={};_===16||_===24?(G=Math.floor((M-32)/2),H.background=u[G],M%2===1&&(H.background=H.background+"_semi")):M===45?H.background="transparent":(H.foreground="black",M===47&&(H.underline=!0));var B=_<=23?1:2,K=this.channels[B];return K.setBkgData(H),f(_,M,this.cmdHistory),!0},x.reset=function(){for(var _=0;_=16?r--:r++;var f=Object(P.fixLineBreaks)(a.trim()),k=Object(p.generateCueId)(n,c,f);(!l||!l.cues||!l.cues.getCueById(k))&&(m=new t(n,c,f),m.id=k,m.line=w+1,m.align="left",m.position=10+Math.min(80,Math.floor(r*8/32)*10),o.push(m))}return l&&o.length&&(o.sort(function(O,C){return O.line==="auto"||C.line==="auto"?0:O.line>8&&C.line>8?C.line-O.line:O.line-C.line}),o.forEach(function(O){return Object(v.addCueToTrack)(l,O)})),o}};g.default=b},"./src/utils/discontinuities.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"findFirstFragWithCC",function(){return S}),T.d(g,"shouldAlignOnDiscontinuities",function(){return b}),T.d(g,"findDiscontinuousReferenceFrag",function(){return d}),T.d(g,"adjustSlidingStart",function(){return n}),T.d(g,"alignStream",function(){return c}),T.d(g,"alignPDT",function(){return o}),T.d(g,"alignFragmentByPDTDelta",function(){return h}),T.d(g,"alignMediaPlaylistByPDT",function(){return m});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/logger.ts"),v=T("./src/controller/level-helper.ts");function S(s,r){for(var a=null,t=0,w=s.length;ta.startCC||s&&s.cc=this.minWeight_},S.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},S.destroy=function(){},v}();g.default=p},"./src/utils/ewma.ts":function(L,g,T){"use strict";T.r(g);var P=function(){function p(S,b,d){b===void 0&&(b=0),d===void 0&&(d=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=S,this.alpha_=S?Math.exp(Math.log(.5)/S):0,this.estimate_=b,this.totalWeight_=d}var v=p.prototype;return v.sample=function(b,d){var l=Math.pow(this.alpha_,b);this.estimate_=d*(1-l)+l*this.estimate_,this.totalWeight_+=b},v.getTotalWeight=function(){return this.totalWeight_},v.getEstimate=function(){if(this.alpha_){var b=1-Math.pow(this.alpha_,this.totalWeight_);if(b)return this.estimate_/b}return this.estimate_},p}();g.default=P},"./src/utils/fetch-loader.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"fetchSupported",function(){return h});var P=T("./src/polyfills/number.ts"),p=T("./src/loader/load-stats.ts"),v=T("./src/demux/chunk-cache.ts");function S(t,w){t.prototype=Object.create(w.prototype),t.prototype.constructor=t,c(t,w)}function b(t){var w=typeof Map=="function"?new Map:void 0;return b=function(f){if(f===null||!n(f))return f;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(f))return w.get(f);w.set(f,k)}function k(){return d(f,arguments,u(this).constructor)}return k.prototype=Object.create(f.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),c(k,f)},b(t)}function d(t,w,E){return l()?d=Reflect.construct:d=function(k,O,C){var x=[null];x.push.apply(x,O);var y=Function.bind.apply(k,x),_=new y;return C&&c(_,C.prototype),_},d.apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function n(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function c(t,w){return c=Object.setPrototypeOf||function(f,k){return f.__proto__=k,f},c(t,w)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},u(t)}function o(){return o=Object.assign||function(t){for(var w=1;w=C&&x(k,O,y.flush(),f)):x(k,O,G,f),I()}).catch(function(){return Promise.reject()})};return M()},t}();function s(t,w){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(o({},t.headers))};return t.rangeEnd&&E.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),E}function r(t,w){return new self.Request(t.url,w)}var a=function(t){S(w,t);function w(E,f,k){var O;return O=t.call(this,E)||this,O.code=void 0,O.details=void 0,O.code=f,O.details=k,O}return w}(b(Error));g.default=m},"./src/utils/imsc1-ttml-parser.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"IMSC1_CODEC",function(){return n}),T.d(g,"parseIMSC1",function(){return h});var P=T("./src/utils/mp4-tools.ts"),p=T("./src/utils/vttparser.ts"),v=T("./src/utils/vttcue.ts"),S=T("./src/demux/id3.ts"),b=T("./src/utils/timescale-conversion.ts"),d=T("./src/utils/webvtt-parser.ts");function l(){return l=Object.assign||function(C){for(var x=1;x"):P}function b(n){for(var c=arguments.length,u=new Array(c>1?c-1:0),o=1;o>24,w[E+1]=f>>16&255,w[E+2]=f>>8&255,w[E+3]=f&255}function c(w,E){var f=[];if(!E.length)return f;var k,O,C;"data"in w?(k=w.data,O=w.start,C=w.end):(k=w,O=0,C=k.byteLength);for(var x=O;x1?x+y:C;if(_===E[0])if(E.length===1)f.push({data:k,start:x+8,end:M});else{var I=c({data:k,start:x+8,end:M},E.slice(1));I.length&&S.apply(f,I)}x=M}return f}function u(w){var E=c(w,["moov"]),f=E[0],k=f?f.end:null,O=c(w,["sidx"]);if(!O||!O[0])return null;var C=[],x=O[0],y=x.data[0],_=y===0?8:16,M=l(x,_);_+=4;var I=0,N=0;y===0?_+=8:_+=16,_+=2;var G=x.end+N,H=d(x,_);_+=2;for(var B=0;B>>31;if(X===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ne=l(x,K);K+=4,C.push({referenceSize:W,subsegmentDuration:ne,info:{duration:ne/M,start:G,end:G+W-1}}),G+=W,K+=4,_=K}return{earliestPresentationTime:I,timescale:M,version:y,referencesCount:H,references:C,moovEndOffset:k}}function o(w){for(var E=[],f=c(w,["moov","trak"]),k=0;kb)&&(this.startTime=b),this.endTime=d,this.screen=l,this.timelineController.createCaptionsTrack(this.trackName)},v.reset=function(){this.cueRanges=[]},p}()},"./src/utils/texttrack-utils.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"sendAddTrackEvent",function(){return p}),T.d(g,"addCueToTrack",function(){return v}),T.d(g,"clearCurrentCues",function(){return S}),T.d(g,"removeCuesInRange",function(){return b}),T.d(g,"getCuesInRange",function(){return l});var P=T("./src/utils/logger.ts");function p(n,c){var u;try{u=new Event("addtrack")}catch(o){u=document.createEvent("Event"),u.initEvent("addtrack",!1,!1)}u.track=n,c.dispatchEvent(u)}function v(n,c){var u=n.mode;if(u==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(c.id))try{if(n.addCue(c),!n.cues.getCueById(c.id))throw new Error("addCue is failed for: "+c)}catch(h){P.logger.debug("[texttrack-utils]: "+h);var o=new self.TextTrackCue(c.startTime,c.endTime,c.text);o.id=c.id,n.addCue(o)}u==="disabled"&&(n.mode=u)}function S(n){var c=n.mode;if(c==="disabled"&&(n.mode="hidden"),n.cues)for(var u=n.cues.length;u--;)n.removeCue(n.cues[u]);c==="disabled"&&(n.mode=c)}function b(n,c,u){var o=n.mode;if(o==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var h=l(n.cues,c,u),m=0;mn[u].endTime)return-1;for(var o=0,h=u;o<=h;){var m=Math.floor((h+o)/2);if(cn[m].startTime&&o-1)for(var m=h,s=n.length;m=c&&r.endTime<=u)o.push(r);else if(r.startTime>u)return o}return o}},"./src/utils/time-ranges.ts":function(L,g,T){"use strict";T.r(g);var P={toString:function(v){for(var S="",b=v.length,d=0;d1?c-1:0),o=1;o100)throw new Error("Position must be between 0 and 100.");C=I,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",d({},h,{get:function(){return x},set:function(I){var N=b(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");x=N,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",d({},h,{get:function(){return y},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");y=I,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",d({},h,{get:function(){return _},set:function(I){var N=b(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");_=N,this.hasBeenReset=!0}})),o.displayState=void 0}return l.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},l}()},"./src/utils/vttparser.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"parseTimeStamp",function(){return v}),T.d(g,"fixLineBreaks",function(){return c}),T.d(g,"VTTParser",function(){return u});var P=T("./src/utils/vttcue.ts"),p=function(){function o(){}var h=o.prototype;return h.decode=function(s,r){if(!s)return"";if(typeof s!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(s))},o}();function v(o){function h(s,r,a,t){return(s|0)*3600+(r|0)*60+(a|0)+parseFloat(t||0)}var m=o.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return m?parseFloat(m[2])>59?h(m[2],m[3],0,m[4]):h(m[1],m[2],m[3],m[4]):null}var S=function(){function o(){this.values=Object.create(null)}var h=o.prototype;return h.set=function(s,r){!this.get(s)&&r!==""&&(this.values[s]=r)},h.get=function(s,r,a){return a?this.has(s)?this.values[s]:r[a]:this.has(s)?this.values[s]:r},h.has=function(s){return s in this.values},h.alt=function(s,r,a){for(var t=0;t=0&&a<=100)return this.set(s,a),!0}return!1},o}();function b(o,h,m,s){var r=s?o.split(s):[o];for(var a in r){if(typeof r[a]!="string")continue;var t=r[a].split(m);if(t.length!==2)continue;var w=t[0],E=t[1];h(w,E)}}var d=new P.default(0,0,""),l=d.align==="middle"?"middle":"center";function n(o,h,m){var s=o;function r(){var w=v(o);if(w===null)throw new Error("Malformed timestamp: "+s);return o=o.replace(/^[^\sa-zA-Z-]+/,""),w}function a(w,E){var f=new S;b(w,function(C,x){var y;switch(C){case"region":for(var _=m.length-1;_>=0;_--)if(m[_].id===x){f.set(C,m[_].region);break}break;case"vertical":f.alt(C,x,["rl","lr"]);break;case"line":y=x.split(","),f.integer(C,y[0]),f.percent(C,y[0])&&f.set("snapToLines",!1),f.alt(C,y[0],["auto"]),y.length===2&&f.alt("lineAlign",y[1],["start",l,"end"]);break;case"position":y=x.split(","),f.percent(C,y[0]),y.length===2&&f.alt("positionAlign",y[1],["start",l,"end","line-left","line-right","auto"]);break;case"size":f.percent(C,x);break;case"align":f.alt(C,x,["start",l,"end","left","right"]);break}},/:/,/\s/),E.region=f.get("region",null),E.vertical=f.get("vertical","");var k=f.get("line","auto");k==="auto"&&d.line===-1&&(k=-1),E.line=k,E.lineAlign=f.get("lineAlign","start"),E.snapToLines=f.get("snapToLines",!0),E.size=f.get("size",100),E.align=f.get("align",l);var O=f.get("position","auto");O==="auto"&&d.position===50&&(O=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=O}function t(){o=o.replace(/^\s+/,"")}if(t(),h.startTime=r(),t(),o.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+s);o=o.substr(3),t(),h.endTime=r(),t(),a(o,h)}function c(o){return o.replace(//gi,` `)}var u=function(){function o(){this.state="INITIAL",this.buffer="",this.decoder=new p,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var h=o.prototype;return h.parse=function(s){var r=this;s&&(r.buffer+=r.decoder.decode(s,{stream:!0}));function a(){var O=r.buffer,C=0;for(O=c(O);C")===-1){r.cue.id=w;continue}case"CUE":if(!r.cue){r.state="BADCUE";continue}try{n(w,r.cue,r.regionList)}catch(O){r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":{var k=w.indexOf("-->")!==-1;if(!w||k&&(f=!0)){r.oncue&&r.cue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}if(r.cue===null)continue;r.cue.text&&(r.cue.text+=` `),r.cue.text+=w}continue;case"BADCUE":w||(r.state="ID")}}}catch(O){r.state==="CUETEXT"&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state=r.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},h.flush=function(){var s=this;try{if((s.cue||s.state==="HEADER")&&(s.buffer+=` -`,s.parse()),s.state==="INITIAL"||s.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(r){s.onparsingerror&&s.onparsingerror(r)}return s.onflush&&s.onflush(),this},o}()},"./src/utils/webvtt-parser.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"generateCueId",function(){return u}),T.d(g,"parseWebVTT",function(){return h});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/vttparser.ts"),v=T("./src/demux/id3.ts"),_=T("./src/utils/timescale-conversion.ts"),b=T("./src/remux/mp4-remuxer.ts"),d=/\r\n|\n\r|\n|\r/g,l=function(s,r,a){return a===void 0&&(a=0),s.substr(a,r.length)===r},n=function(s){var r=parseInt(s.substr(-3)),a=parseInt(s.substr(-6,2)),t=parseInt(s.substr(-9,2)),w=s.length>9?parseInt(s.substr(0,s.indexOf(":"))):0;if(!Object(P.isFiniteNumber)(r)||!Object(P.isFiniteNumber)(a)||!Object(P.isFiniteNumber)(t)||!Object(P.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+s);return r+=1e3*a,r+=60*1e3*t,r+=60*60*1e3*w,r},c=function(s){for(var r=5381,a=s.length;a;)r=r*33^s.charCodeAt(--a);return(r>>>0).toString()};function u(m,s,r){return c(m.toString())+c(s.toString())+c(r)}var o=function(s,r,a){var t=s[r],w=s[t.prevCC];if(!w||!w.new&&t.new){s.ccOffset=s.presentationOffset=t.start,t.new=!1;return}for(;(E=w)!==null&&E!==void 0&&E.new;){var E;s.ccOffset+=t.start-w.start,t.new=!1,t=w,w=s[t.prevCC]}s.presentationOffset=a};function h(m,s,r,a,t,w,E,f){var k=new p.VTTParser,O=Object(v.utf8ArrayToStr)(new Uint8Array(m)).trim().replace(d,` +`,s.parse()),s.state==="INITIAL"||s.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(r){s.onparsingerror&&s.onparsingerror(r)}return s.onflush&&s.onflush(),this},o}()},"./src/utils/webvtt-parser.ts":function(L,g,T){"use strict";T.r(g),T.d(g,"generateCueId",function(){return u}),T.d(g,"parseWebVTT",function(){return h});var P=T("./src/polyfills/number.ts"),p=T("./src/utils/vttparser.ts"),v=T("./src/demux/id3.ts"),S=T("./src/utils/timescale-conversion.ts"),b=T("./src/remux/mp4-remuxer.ts"),d=/\r\n|\n\r|\n|\r/g,l=function(s,r,a){return a===void 0&&(a=0),s.substr(a,r.length)===r},n=function(s){var r=parseInt(s.substr(-3)),a=parseInt(s.substr(-6,2)),t=parseInt(s.substr(-9,2)),w=s.length>9?parseInt(s.substr(0,s.indexOf(":"))):0;if(!Object(P.isFiniteNumber)(r)||!Object(P.isFiniteNumber)(a)||!Object(P.isFiniteNumber)(t)||!Object(P.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+s);return r+=1e3*a,r+=60*1e3*t,r+=60*60*1e3*w,r},c=function(s){for(var r=5381,a=s.length;a;)r=r*33^s.charCodeAt(--a);return(r>>>0).toString()};function u(m,s,r){return c(m.toString())+c(s.toString())+c(r)}var o=function(s,r,a){var t=s[r],w=s[t.prevCC];if(!w||!w.new&&t.new){s.ccOffset=s.presentationOffset=t.start,t.new=!1;return}for(;(E=w)!==null&&E!==void 0&&E.new;){var E;s.ccOffset+=t.start-w.start,t.new=!1,t=w,w=s[t.prevCC]}s.presentationOffset=a};function h(m,s,r,a,t,w,E,f){var k=new p.VTTParser,O=Object(v.utf8ArrayToStr)(new Uint8Array(m)).trim().replace(d,` `).split(` -`),C=[],x=Object(_.toMpegTsClockFromTimescale)(s,r),y="00:00.000",S=0,M=0,I,N=!0,G=!1;k.oncue=function(H){var B=a[t],K=a.ccOffset,U=(S-x)/9e4;if(B!=null&&B.new&&(M!==void 0?K=a.ccOffset=B.start:o(a,t,U)),U&&(K=U-a.presentationOffset),G){var W=H.endTime-H.startTime,X=Object(b.normalizePts)((H.startTime+K-M)*9e4,w*9e4)/9e4;H.startTime=X,H.endTime=X+W}var ne=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(ne)),H.id||(H.id=u(H.startTime,H.endTime,ne)),H.endTime>0&&C.push(H)},k.onparsingerror=function(H){I=H},k.onflush=function(){if(I){f(I);return}E(C)},O.forEach(function(H){if(N)if(l(H,"X-TIMESTAMP-MAP=")){N=!1,G=!0,H.substr(16).split(",").forEach(function(B){l(B,"LOCAL:")?y=B.substr(6):l(B,"MPEGTS:")&&(S=parseInt(B.substr(7)))});try{M=n(y)/1e3}catch(B){G=!1,I=B}return}else H===""&&(N=!1);k.parse(H+` -`)}),k.flush()}},"./src/utils/xhr-loader.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/utils/logger.ts"),p=T("./src/loader/load-stats.ts"),v=/^age:\s*[\d.]+\s*$/m,_=function(){function b(l){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=l?l.xhrSetup:null,this.stats=new p.LoadStats,this.retryDelay=0}var d=b.prototype;return d.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},d.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},d.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},d.load=function(n,c,u){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=c,this.callbacks=u,this.retryDelay=c.retryDelay,this.loadInternal()},d.loadInternal=function(){var n=this.config,c=this.context;if(!n)return;var u=this.loader=new self.XMLHttpRequest,o=this.stats;o.loading.first=0,o.loaded=0;var h=this.xhrSetup;try{if(h)try{h(u,c.url)}catch(r){u.open("GET",c.url,!0),h(u,c.url)}u.readyState||u.open("GET",c.url,!0);var m=this.context.headers;if(m)for(var s in m)u.setRequestHeader(s,m[s])}catch(r){this.callbacks.onError({code:u.status,text:r.message},c,u);return}c.rangeEnd&&u.setRequestHeader("Range","bytes="+c.rangeStart+"-"+(c.rangeEnd-1)),u.onreadystatechange=this.readystatechange.bind(this),u.onprogress=this.loadprogress.bind(this),u.responseType=c.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),u.send()},d.readystatechange=function(){var n=this.context,c=this.loader,u=this.stats;if(!n||!c)return;var o=c.readyState,h=this.config;if(u.aborted)return;if(o>=2)if(self.clearTimeout(this.requestTimeout),u.loading.first===0&&(u.loading.first=Math.max(self.performance.now(),u.loading.start)),o===4){c.onreadystatechange=null,c.onprogress=null;var m=c.status;if(m>=200&&m<300){u.loading.end=Math.max(self.performance.now(),u.loading.first);var s,r;if(n.responseType==="arraybuffer"?(s=c.response,r=s.byteLength):(s=c.responseText,r=s.length),u.loaded=u.total=r,!this.callbacks)return;var a=this.callbacks.onProgress;if(a&&a(u,n,s,c),!this.callbacks)return;var t={url:c.responseURL,data:s};this.callbacks.onSuccess(t,u,n,c)}else u.retry>=h.maxRetry||m>=400&&m<499?(P.logger.error(m+" while loading "+n.url),this.callbacks.onError({code:m,text:c.statusText},n,c)):(P.logger.warn(m+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,h.maxRetryDelay),u.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),h.timeout)},d.loadtimeout=function(){P.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},d.loadprogress=function(n){var c=this.stats;c.loaded=n.loaded,n.lengthComputable&&(c.total=n.total)},d.getCacheAge=function(){var n=null;if(this.loader&&v.test(this.loader.getAllResponseHeaders())){var c=this.loader.getResponseHeader("age");n=c?parseFloat(c):null}return n},b}();g.default=_}}).default})},vHTk:function(j,Y,D){j.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},w7YG:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.StreamCipher,p=g.algo,v=p.RC4=P.extend({_doReset:function(){for(var d=this._key,l=d.words,n=d.sigBytes,c=this._S=[],u=0;u<256;u++)c[u]=u;for(var u=0,o=0;u<256;u++){var h=u%n,m=l[h>>>2]>>>24-h%4*8&255;o=(o+c[u]+m)%256;var s=c[u];c[u]=c[o],c[o]=s}this._i=this._j=0},_doProcessBlock:function(d,l){d[l]^=_.call(this)},keySize:256/32,ivSize:0});function _(){for(var d=this._S,l=this._i,n=this._j,c=0,u=0;u<4;u++){l=(l+1)%256,n=(n+d[l])%256;var o=d[l];d[l]=d[n],d[n]=o,c|=d[(d[l]+d[n])%256]<<24-u*8}return this._i=l,this._j=n,c}g.RC4=P._createHelper(v);var b=p.RC4Drop=v.extend({cfg:v.cfg.extend({drop:192}),_doReset:function(){v._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)_.call(this)}});g.RC4Drop=P._createHelper(b)}(),L.RC4})},wCXF:function(j,Y,D){"use strict";D.d(Y,"a",function(){return nt});var L=D("rePB"),g=D("VTBJ"),T=D("KQm4"),P=D("U8pU"),p=D("ODXe"),v=D("q1tI"),_=D("TSYQ"),b=D.n(_),d=D("Gytx"),l=D.n(d),n=D("Kwbf"),c=D("t23M"),u=D("qx4F"),o=D("6eGT"),h=D("IBYe"),m=D("Ff2n"),s=D("c+Xe"),r=D("fyJ8"),a=D("biw7");function t(He,Re,tt,ft,Qe){var lt=tt[He]||{},Ue=tt[Re]||{},Le,Ie;lt.fixed==="left"?Le=ft.left[He]:Ue.fixed==="right"&&(Ie=ft.right[Re]);var Ce=!1,_e=!1,ke=!1,Ne=!1,et=tt[Re+1],$e=tt[He-1];if(Qe==="rtl"){if(Le!==void 0){var bt=$e&&$e.fixed==="left";Ne=!bt}else if(Ie!==void 0){var gt=et&&et.fixed==="right";ke=!gt}}else if(Le!==void 0){var Ut=et&&et.fixed==="left";Ce=!Ut}else if(Ie!==void 0){var Nt=$e&&$e.fixed==="right";_e=!Nt}return{fixLeft:Le,fixRight:Ie,lastFixLeft:Ce,firstFixRight:_e,lastFixRight:ke,firstFixLeft:Ne,isSticky:ft.isSticky}}var w=D("sR1s");function E(He){var Re=He.cells,tt=He.stickyOffsets,ft=He.flattenColumns,Qe=He.rowComponent,lt=He.cellComponent,Ue=He.onHeaderRow,Le=He.index,Ie=v.useContext(a.a),Ce=Ie.prefixCls,_e=Ie.direction,ke;Ue&&(ke=Ue(Re.map(function(et){return et.column}),Le));var Ne=Object(w.a)(Re.map(function(et){return et.column}));return v.createElement(Qe,Object.assign({},ke),Re.map(function(et,$e){var bt=et.column,gt=t(et.colStart,et.colEnd,ft,tt,_e),Ut;return bt&&bt.onHeaderCell&&(Ut=et.column.onHeaderCell(bt)),v.createElement(r.a,Object.assign({},et,{ellipsis:bt.ellipsis,align:bt.align,component:lt,prefixCls:Ce,key:Ne[$e]},gt,{additionalProps:Ut,rowType:"header"}))}))}E.displayName="HeaderRow";var f=E;function k(He){var Re=[];function tt(Ue,Le){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[Ie]=Re[Ie]||[];var Ce=Le,_e=Ue.filter(Boolean).map(function(ke){var Ne={key:ke.key,className:ke.className||"",children:ke.title,column:ke,colStart:Ce},et=1,$e=ke.children;return $e&&$e.length>0&&(et=tt($e,Ce,Ie+1).reduce(function(bt,gt){return bt+gt},0),Ne.hasSubColumns=!0),"colSpan"in ke&&(et=ke.colSpan),"rowSpan"in ke&&(Ne.rowSpan=ke.rowSpan),Ne.colSpan=et,Ne.colEnd=Ne.colStart+et-1,Re[Ie].push(Ne),Ce+=et,et});return _e}tt(He,0);for(var ft=Re.length,Qe=function(Le){Re[Le].forEach(function(Ie){!("rowSpan"in Ie)&&!Ie.hasSubColumns&&(Ie.rowSpan=ft-Le)})},lt=0;lt=0;Le-=1){var Ie=Re[Le],Ce=tt&&tt[Le],_e=Ce&&Ce[x.a];(Ie||_e||Ue)&&(Qe.unshift(v.createElement("col",Object.assign({key:Le,style:{width:Ie,minWidth:Ie}},_e))),Ue=!0)}return v.createElement("colgroup",null,Qe)}var S=y;function M(He,Re){return Object(v.useMemo)(function(){for(var tt=[],ft=0;ft1?ie-1:0),se=1;se=ke&&(Xr=ke-Ne),Ue({scrollLeft:Xr/ke*(_e+2)}),Nt.current.x=Kt.pageX},Ar=function(){var Kt=Object(Z.b)(lt.current).top,or=Kt+lt.current.offsetHeight,Xt=document.documentElement.scrollTop+window.innerHeight;or-Object(u.a)()<=Xt||Kt>=Xt-Le?Ut(function(gr){return Object(g.a)(Object(g.a)({},gr),{},{isHiddenScrollBar:!0})}):Ut(function(gr){return Object(g.a)(Object(g.a)({},gr),{},{isHiddenScrollBar:!1})})},vn=function(Kt){Ut(function(or){return Object(g.a)(Object(g.a)({},or),{},{scrollLeft:Kt/_e*ke||0})})};return v.useImperativeHandle(tt,function(){return{setScrollLeft:vn}}),v.useEffect(function(){var mn=Object(V.a)(document.body,"mouseup",Jr,!1),Kt=Object(V.a)(document.body,"mousemove",un,!1);return Ar(),function(){mn.remove(),Kt.remove()}},[Ne,_t]),v.useEffect(function(){var mn=Object(V.a)(window,"scroll",Ar,!1),Kt=Object(V.a)(window,"resize",Ar,!1);return function(){mn.remove(),Kt.remove()}},[]),v.useEffect(function(){gt.isHiddenScrollBar||Ut(function(mn){var Kt,or;return Object(g.a)(Object(g.a)({},mn),{},{scrollLeft:lt.current.scrollLeft/((Kt=lt.current)===null||Kt===void 0?void 0:Kt.scrollWidth)*((or=lt.current)===null||or===void 0?void 0:or.clientWidth)})})},[gt.isHiddenScrollBar]),_e<=ke||!Ne||gt.isHiddenScrollBar?null:v.createElement("div",{style:{height:Object(u.a)(),width:ke,bottom:Le},className:"".concat(Ce,"-sticky-scroll")},v.createElement("div",{onMouseDown:Hr,ref:et,className:b()("".concat(Ce,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),_t)),style:{width:"".concat(Ne,"px"),transform:"translate3d(".concat(gt.scrollLeft,"px, 0, 0)")}}))},ge=v.forwardRef(be);function Te(He,Re){return v.useMemo(function(){var tt=!!He;return{isSticky:tt,stickyClassName:tt?"".concat(Re,"-sticky-header"):"",offsetHeader:Object(P.a)(He)==="object"&&He.offsetHeader||0,offsetScroll:Object(P.a)(He)==="object"&&He.offsetScroll||0}},[He,Re])}var Je=[],rt={},nt="rc-table-internal-hook",at=v.memo(function(He){var Re=He.children;return Re},function(He,Re){return l()(He.props,Re.props)?He.pingLeft!==Re.pingLeft||He.pingRight!==Re.pingRight:!1});function ct(He){var Re,tt=He.prefixCls,ft=He.className,Qe=He.rowClassName,lt=He.style,Ue=He.data,Le=He.rowKey,Ie=He.scroll,Ce=He.tableLayout,_e=He.direction,ke=He.title,Ne=He.footer,et=He.summary,$e=He.id,bt=He.showHeader,gt=He.components,Ut=He.emptyText,Nt=He.onRow,hr=He.onHeaderRow,mr=He.internalHooks,_t=He.transformColumns,Yr=He.internalRefs,Jr=He.sticky,Hr=Ue||Je,un=!!Hr.length,Ar=v.useState(0),vn=Object(p.a)(Ar,2),mn=vn[0],Kt=vn[1];v.useEffect(function(){Kt(Object(u.a)())});var or=v.useMemo(function(){return Object(w.c)(gt,{})},[gt]),Xt=v.useCallback(function(Pr,Ft){return Object(w.b)(or,Pr)||Ft},[or]),gr=v.useMemo(function(){return typeof Le=="function"?Le:function(Pr){var Ft=Pr&&Pr[Le];return Ft}},[Le]),Xr=Object(x.c)(He),kn=Xr.expandIcon,Ln=Xr.expandedRowKeys,tn=Xr.defaultExpandedRowKeys,ur=Xr.defaultExpandAllRows,Xn=Xr.expandedRowRender,hi=Xr.onExpand,$n=Xr.onExpandedRowsChange,Zr=Xr.expandRowByClick,Bn=Xr.rowExpandable,si=Xr.expandIconColumnIndex,li=Xr.expandedRowClassName,wt=Xr.childrenColumnName,$t=Xr.indentSize,en=kn||q,Cn=wt||"children",Sn=v.useMemo(function(){return Xn?"row":He.expandable&&mr===nt&&He.expandable.__PARENT_RENDER_ICON__||Hr.some(function(Pr){return Pr&&Object(P.a)(Pr)==="object"&&Pr[Cn]})?"nest":!1},[!!Xn,Hr]),On=v.useState(function(){return tn||(ur?Q(Hr,gr,Cn):[])}),ae=Object(p.a)(On,2),z=ae[0],$=ae[1],ie=v.useMemo(function(){return new Set(Ln||z||[])},[Ln,z]),de=v.useCallback(function(Pr){var Ft=gr(Pr,Hr.indexOf(Pr)),Zt,wr=ie.has(Ft);wr?(ie.delete(Ft),Zt=Object(T.a)(ie)):Zt=[].concat(Object(T.a)(ie),[Ft]),$(Zt),hi&&hi(!wr,Pr),$n&&$n(Zt)},[gr,ie,Hr,hi,$n]),se=v.useState(0),Ke=Object(p.a)(se,2),Rt=Ke[0],Vt=Ke[1],Er=Object(ye.b)(Object(g.a)(Object(g.a)(Object(g.a)({},He),Xr),{},{expandable:!!Xn,expandedKeys:ie,getRowKey:gr,onTriggerExpand:de,expandIcon:en,expandIconColumnIndex:si,direction:_e}),mr===nt?_t:null),Lt=Object(p.a)(Er,2),zr=Lt[0],Br=Lt[1],En=v.useMemo(function(){return{columns:zr,flattenColumns:Br}},[zr,Br]),ui=v.useRef(),Ei=v.useRef(),In=v.useRef(),Li=v.useState(!1),qi=Object(p.a)(Li,2),ni=qi[0],Ti=qi[1],xi=v.useState(!1),Fi=Object(p.a)(xi,2),Ci=Fi[0],Gi=Fi[1],Mi=ue(new Map),oa=Object(p.a)(Mi,2),sa=oa[0],Ii=oa[1],qn=Object(w.a)(Br),Vi=qn.map(function(Pr){return sa.get(Pr)}),ta=v.useMemo(function(){return Vi},[Vi.join("_")]),Tt=pe(ta,Br.length,_e),it=Ie&&Object(w.d)(Ie.y),mt=Ie&&Object(w.d)(Ie.x),Ct=mt&&Br.some(function(Pr){var Ft=Pr.fixed;return Ft}),It=v.useRef(),Pt=Te(Jr,tt),Ht=Pt.isSticky,Wt=Pt.offsetHeader,dt=Pt.offsetScroll,At=Pt.stickyClassName,Dt,yr,tr;it&&(yr={overflowY:"scroll",maxHeight:Ie.y}),mt&&(Dt={overflowX:"auto"},it||(yr={overflowY:"hidden"}),tr={width:Ie.x===!0?"auto":Ie.x,minWidth:"100%"});var qt=v.useCallback(function(Pr,Ft){Ii(function(Zt){var wr=new Map(Zt);return wr.set(Pr,Ft),wr})},[]),Gt=le(null),nr=Object(p.a)(Gt,2),cr=nr[0],st=nr[1];function Lr(Pr,Ft){if(!Ft)return;typeof Ft=="function"?Ft(Pr):Ft.scrollLeft!==Pr&&(Ft.scrollLeft=Pr)}var Fr=function(Ft){var Zt=Ft.currentTarget,wr=Ft.scrollLeft,er=typeof wr=="number"?wr:Zt.scrollLeft,vt=Zt||rt;if(!st()||st()===vt){var yt;cr(vt),Lr(er,Ei.current),Lr(er,In.current),Lr(er,(yt=It.current)===null||yt===void 0?void 0:yt.setScrollLeft)}if(Zt){var zt=Zt.scrollWidth,Mt=Zt.clientWidth;Ti(er>0),Gi(er0?[].concat(Object(g.a)(m),Object(g.a)(n(t).map(function(w){return Object(T.a)({fixed:a},w)}))):[].concat(Object(g.a)(m),[Object(T.a)(Object(T.a)({},s),{},{fixed:a})])},[])}function c(h){for(var m=!0,s=0;s=0;t-=1){var w=h[t];if(a&&w.fixed!=="right")a=!1;else if(!a&&w.fixed==="right"){Object(_.a)(!1,"Index ".concat(t+1," of `columns` missing `fixed='right'` prop."));break}}}function u(h){return h.map(function(m){var s=m.fixed,r=Object(P.a)(m,["fixed"]),a=s;return s==="left"?a="right":s==="right"&&(a="left"),Object(T.a)({fixed:a},r)})}function o(h,m){var s=h.prefixCls,r=h.columns,a=h.children,t=h.expandable,w=h.expandedKeys,E=h.getRowKey,f=h.onTriggerExpand,k=h.expandIcon,O=h.rowExpandable,C=h.expandIconColumnIndex,x=h.direction,y=h.expandRowByClick,S=p.useMemo(function(){return r||l(a)},[r,a]),M=p.useMemo(function(){if(t){var G,H=C||0,B=S[H],K=(G={},Object(L.a)(G,d.a,{className:"".concat(s,"-expand-icon-col")}),Object(L.a)(G,"title",""),Object(L.a)(G,"fixed",B?B.fixed:null),Object(L.a)(G,"className","".concat(s,"-row-expand-icon-cell")),Object(L.a)(G,"render",function(X,ne,fe){var me=E(ne,fe),Ae=w.has(me),De=O?O(ne):!0,ye=k({prefixCls:s,expanded:Ae,expandable:De,record:ne,onExpand:f});return y?p.createElement("span",{onClick:function(xe){return xe.stopPropagation()}},ye):ye}),G),U=S.slice();return H>=0&&U.splice(H,0,K),U}return S},[t,S,E,w,k,x]),I=p.useMemo(function(){var G=M;return m&&(G=m(G)),G.length||(G=[{render:function(){return null}}]),G},[m,M,x]),N=p.useMemo(function(){return x==="rtl"?u(n(I)):n(I)},[I,x]);return[I,N]}Y.b=o},wZgz:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.BlockCipher,p=g.algo,v=[],_=[],b=[],d=[],l=[],n=[],c=[],u=[],o=[],h=[];(function(){for(var r=[],a=0;a<256;a++)a<128?r[a]=a<<1:r[a]=a<<1^283;for(var t=0,w=0,a=0;a<256;a++){var E=w^w<<1^w<<2^w<<3^w<<4;E=E>>>8^E&255^99,v[t]=E,_[E]=t;var f=r[t],k=r[f],O=r[k],C=r[E]*257^E*16843008;b[t]=C<<24|C>>>8,d[t]=C<<16|C>>>16,l[t]=C<<8|C>>>24,n[t]=C;var C=O*16843009^k*65537^f*257^t*16843008;c[E]=C<<24|C>>>8,u[E]=C<<16|C>>>16,o[E]=C<<8|C>>>24,h[E]=C,t?(t=f^r[r[r[O^f]]],w^=r[r[w]]):t=w=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],s=p.AES=P.extend({_doReset:function(){var r;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var a=this._keyPriorReset=this._key,t=a.words,w=a.sigBytes/4,E=this._nRounds=w+6,f=(E+1)*4,k=this._keySchedule=[],O=0;O6&&O%w==4&&(r=v[r>>>24]<<24|v[r>>>16&255]<<16|v[r>>>8&255]<<8|v[r&255]):(r=r<<8|r>>>24,r=v[r>>>24]<<24|v[r>>>16&255]<<16|v[r>>>8&255]<<8|v[r&255],r^=m[O/w|0]<<24),k[O]=k[O-w]^r);for(var C=this._invKeySchedule=[],x=0;x>>24]]^u[v[r>>>16&255]]^o[v[r>>>8&255]]^h[v[r&255]]}},encryptBlock:function(r,a){this._doCryptBlock(r,a,this._keySchedule,b,d,l,n,v)},decryptBlock:function(r,a){var t=r[a+1];r[a+1]=r[a+3],r[a+3]=t,this._doCryptBlock(r,a,this._invKeySchedule,c,u,o,h,_);var t=r[a+1];r[a+1]=r[a+3],r[a+3]=t},_doCryptBlock:function(r,a,t,w,E,f,k,O){for(var C=this._nRounds,x=r[a]^t[0],y=r[a+1]^t[1],S=r[a+2]^t[2],M=r[a+3]^t[3],I=4,N=1;N>>24]^E[y>>>16&255]^f[S>>>8&255]^k[M&255]^t[I++],H=w[y>>>24]^E[S>>>16&255]^f[M>>>8&255]^k[x&255]^t[I++],B=w[S>>>24]^E[M>>>16&255]^f[x>>>8&255]^k[y&255]^t[I++],K=w[M>>>24]^E[x>>>16&255]^f[y>>>8&255]^k[S&255]^t[I++];x=G,y=H,S=B,M=K}var G=(O[x>>>24]<<24|O[y>>>16&255]<<16|O[S>>>8&255]<<8|O[M&255])^t[I++],H=(O[y>>>24]<<24|O[S>>>16&255]<<16|O[M>>>8&255]<<8|O[x&255])^t[I++],B=(O[S>>>24]<<24|O[M>>>16&255]<<16|O[x>>>8&255]<<8|O[y&255])^t[I++],K=(O[M>>>24]<<24|O[x>>>16&255]<<16|O[y>>>8&255]<<8|O[S&255])^t[I++];r[a]=G,r[a+1]=H,r[a+2]=B,r[a+3]=K},keySize:256/32});g.AES=P._createHelper(s)}(),L.AES})},wbyO:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.enc,v=p.Base64url={stringify:function(b,d=!0){var l=b.words,n=b.sigBytes,c=d?this._safe_map:this._map;b.clamp();for(var u=[],o=0;o>>2]>>>24-o%4*8&255,m=l[o+1>>>2]>>>24-(o+1)%4*8&255,s=l[o+2>>>2]>>>24-(o+2)%4*8&255,r=h<<16|m<<8|s,a=0;a<4&&o+a*.75>>6*(3-a)&63));var t=c.charAt(64);if(t)for(;u.length%4;)u.push(t);return u.join("")},parse:function(b,d=!0){var l=b.length,n=d?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var u=0;u>>6-u%4*2,m=o|h;n[c>>>2]|=m<<24-c%4*8,c++}return P.create(n,c)}}(),L.enc.Base64url})},"y0+3":function(j,Y,D){"use strict";D.d(Y,"a",function(){return n}),D.d(Y,"b",function(){return u});var L=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function P(o){return o.nodeType===1?o.ownerDocument.defaultView.getComputedStyle(o,null):{}}function p(o,h,m){if(h=h.toLowerCase(),m==="auto"){if(h==="height")return o.offsetHeight;if(h==="width")return o.offsetWidth}return h in g||(g[h]=L.test(h)),g[h]?parseFloat(m)||0:m}function v(o,h){var m=arguments.length,s=P(o);return h=T[h]?"cssFloat"in o.style?"cssFloat":"styleFloat":h,m===1?s:p(o,h,s[h]||o.style[h])}function _(o,h,m){var s=arguments.length;if(h=T[h]?"cssFloat"in o.style?"cssFloat":"styleFloat":h,s===3)return typeof m=="number"&&L.test(h)&&(m="".concat(m,"px")),o.style[h]=m,m;for(var r in h)h.hasOwnProperty(r)&&_(o,r,h[r]);return P(o)}function b(o){return o===document.body?document.documentElement.clientWidth:o.offsetWidth}function d(o){return o===document.body?window.innerHeight||document.documentElement.clientHeight:o.offsetHeight}function l(){var o=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:o,height:h}}function n(){var o=document.documentElement.clientWidth,h=window.innerHeight||document.documentElement.clientHeight;return{width:o,height:h}}function c(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(o){var h=o.getBoundingClientRect(),m=document.documentElement;return{left:h.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:h.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},zrhs:function(j,Y,D){"use strict";var L=D("2qtc"),g=D("kLXV"),T=D("PpiC"),P=D("q1tI"),p=D.n(P),v=D("9kvl"),_=function(d){var l=d.shixunsDetail,n=d.globalSetting,c=d.loading,u=d.dispatch,o=Object(T.a)(d,["shixunsDetail","globalSetting","loading","dispatch"]);return p.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"\u63D0\u793A",visible:l.actionTabs.key==="Banner-Auth",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){u({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){u({type:"shixunsDetail/setActionTabs",payload:{}})}},p.a.createElement("p",{className:"tc font16"},"\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B",p.a.createElement("br",null),"\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"))};Y.a=Object(v.a)(function(b){var d=b.shixunsDetail,l=b.loading,n=b.globalSetting;return{shixunsDetail:d,globalSetting:n,loading:l.models.index}})(_)}}]); +`),C=[],x=Object(S.toMpegTsClockFromTimescale)(s,r),y="00:00.000",_=0,M=0,I,N=!0,G=!1;k.oncue=function(H){var B=a[t],K=a.ccOffset,U=(_-x)/9e4;if(B!=null&&B.new&&(M!==void 0?K=a.ccOffset=B.start:o(a,t,U)),U&&(K=U-a.presentationOffset),G){var W=H.endTime-H.startTime,X=Object(b.normalizePts)((H.startTime+K-M)*9e4,w*9e4)/9e4;H.startTime=X,H.endTime=X+W}var ne=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(ne)),H.id||(H.id=u(H.startTime,H.endTime,ne)),H.endTime>0&&C.push(H)},k.onparsingerror=function(H){I=H},k.onflush=function(){if(I){f(I);return}E(C)},O.forEach(function(H){if(N)if(l(H,"X-TIMESTAMP-MAP=")){N=!1,G=!0,H.substr(16).split(",").forEach(function(B){l(B,"LOCAL:")?y=B.substr(6):l(B,"MPEGTS:")&&(_=parseInt(B.substr(7)))});try{M=n(y)/1e3}catch(B){G=!1,I=B}return}else H===""&&(N=!1);k.parse(H+` +`)}),k.flush()}},"./src/utils/xhr-loader.ts":function(L,g,T){"use strict";T.r(g);var P=T("./src/utils/logger.ts"),p=T("./src/loader/load-stats.ts"),v=/^age:\s*[\d.]+\s*$/m,S=function(){function b(l){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=l?l.xhrSetup:null,this.stats=new p.LoadStats,this.retryDelay=0}var d=b.prototype;return d.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},d.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},d.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},d.load=function(n,c,u){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=c,this.callbacks=u,this.retryDelay=c.retryDelay,this.loadInternal()},d.loadInternal=function(){var n=this.config,c=this.context;if(!n)return;var u=this.loader=new self.XMLHttpRequest,o=this.stats;o.loading.first=0,o.loaded=0;var h=this.xhrSetup;try{if(h)try{h(u,c.url)}catch(r){u.open("GET",c.url,!0),h(u,c.url)}u.readyState||u.open("GET",c.url,!0);var m=this.context.headers;if(m)for(var s in m)u.setRequestHeader(s,m[s])}catch(r){this.callbacks.onError({code:u.status,text:r.message},c,u);return}c.rangeEnd&&u.setRequestHeader("Range","bytes="+c.rangeStart+"-"+(c.rangeEnd-1)),u.onreadystatechange=this.readystatechange.bind(this),u.onprogress=this.loadprogress.bind(this),u.responseType=c.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),u.send()},d.readystatechange=function(){var n=this.context,c=this.loader,u=this.stats;if(!n||!c)return;var o=c.readyState,h=this.config;if(u.aborted)return;if(o>=2)if(self.clearTimeout(this.requestTimeout),u.loading.first===0&&(u.loading.first=Math.max(self.performance.now(),u.loading.start)),o===4){c.onreadystatechange=null,c.onprogress=null;var m=c.status;if(m>=200&&m<300){u.loading.end=Math.max(self.performance.now(),u.loading.first);var s,r;if(n.responseType==="arraybuffer"?(s=c.response,r=s.byteLength):(s=c.responseText,r=s.length),u.loaded=u.total=r,!this.callbacks)return;var a=this.callbacks.onProgress;if(a&&a(u,n,s,c),!this.callbacks)return;var t={url:c.responseURL,data:s};this.callbacks.onSuccess(t,u,n,c)}else u.retry>=h.maxRetry||m>=400&&m<499?(P.logger.error(m+" while loading "+n.url),this.callbacks.onError({code:m,text:c.statusText},n,c)):(P.logger.warn(m+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,h.maxRetryDelay),u.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),h.timeout)},d.loadtimeout=function(){P.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},d.loadprogress=function(n){var c=this.stats;c.loaded=n.loaded,n.lengthComputable&&(c.total=n.total)},d.getCacheAge=function(){var n=null;if(this.loader&&v.test(this.loader.getAllResponseHeaders())){var c=this.loader.getResponseHeader("age");n=c?parseFloat(c):null}return n},b}();g.default=S}}).default})},vHTk:function(j,Y,D){j.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},w7YG:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.StreamCipher,p=g.algo,v=p.RC4=P.extend({_doReset:function(){for(var d=this._key,l=d.words,n=d.sigBytes,c=this._S=[],u=0;u<256;u++)c[u]=u;for(var u=0,o=0;u<256;u++){var h=u%n,m=l[h>>>2]>>>24-h%4*8&255;o=(o+c[u]+m)%256;var s=c[u];c[u]=c[o],c[o]=s}this._i=this._j=0},_doProcessBlock:function(d,l){d[l]^=S.call(this)},keySize:256/32,ivSize:0});function S(){for(var d=this._S,l=this._i,n=this._j,c=0,u=0;u<4;u++){l=(l+1)%256,n=(n+d[l])%256;var o=d[l];d[l]=d[n],d[n]=o,c|=d[(d[l]+d[n])%256]<<24-u*8}return this._i=l,this._j=n,c}g.RC4=P._createHelper(v);var b=p.RC4Drop=v.extend({cfg:v.cfg.extend({drop:192}),_doReset:function(){v._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)S.call(this)}});g.RC4Drop=P._createHelper(b)}(),L.RC4})},wCXF:function(j,Y,D){"use strict";D.d(Y,"a",function(){return nt});var L=D("rePB"),g=D("VTBJ"),T=D("KQm4"),P=D("U8pU"),p=D("ODXe"),v=D("q1tI"),S=D("TSYQ"),b=D.n(S),d=D("Gytx"),l=D.n(d),n=D("Kwbf"),c=D("t23M"),u=D("qx4F"),o=D("6eGT"),h=D("IBYe"),m=D("Ff2n"),s=D("c+Xe"),r=D("fyJ8"),a=D("biw7");function t(He,Re,tt,ft,Qe){var lt=tt[He]||{},Ue=tt[Re]||{},Le,Ie;lt.fixed==="left"?Le=ft.left[He]:Ue.fixed==="right"&&(Ie=ft.right[Re]);var Ce=!1,Se=!1,ke=!1,Ne=!1,et=tt[Re+1],$e=tt[He-1];if(Qe==="rtl"){if(Le!==void 0){var bt=$e&&$e.fixed==="left";Ne=!bt}else if(Ie!==void 0){var gt=et&&et.fixed==="right";ke=!gt}}else if(Le!==void 0){var Ut=et&&et.fixed==="left";Ce=!Ut}else if(Ie!==void 0){var Nt=$e&&$e.fixed==="right";Se=!Nt}return{fixLeft:Le,fixRight:Ie,lastFixLeft:Ce,firstFixRight:Se,lastFixRight:ke,firstFixLeft:Ne,isSticky:ft.isSticky}}var w=D("sR1s");function E(He){var Re=He.cells,tt=He.stickyOffsets,ft=He.flattenColumns,Qe=He.rowComponent,lt=He.cellComponent,Ue=He.onHeaderRow,Le=He.index,Ie=v.useContext(a.a),Ce=Ie.prefixCls,Se=Ie.direction,ke;Ue&&(ke=Ue(Re.map(function(et){return et.column}),Le));var Ne=Object(w.a)(Re.map(function(et){return et.column}));return v.createElement(Qe,Object.assign({},ke),Re.map(function(et,$e){var bt=et.column,gt=t(et.colStart,et.colEnd,ft,tt,Se),Ut;return bt&&bt.onHeaderCell&&(Ut=et.column.onHeaderCell(bt)),v.createElement(r.a,Object.assign({},et,{ellipsis:bt.ellipsis,align:bt.align,component:lt,prefixCls:Ce,key:Ne[$e]},gt,{additionalProps:Ut,rowType:"header"}))}))}E.displayName="HeaderRow";var f=E;function k(He){var Re=[];function tt(Ue,Le){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[Ie]=Re[Ie]||[];var Ce=Le,Se=Ue.filter(Boolean).map(function(ke){var Ne={key:ke.key,className:ke.className||"",children:ke.title,column:ke,colStart:Ce},et=1,$e=ke.children;return $e&&$e.length>0&&(et=tt($e,Ce,Ie+1).reduce(function(bt,gt){return bt+gt},0),Ne.hasSubColumns=!0),"colSpan"in ke&&(et=ke.colSpan),"rowSpan"in ke&&(Ne.rowSpan=ke.rowSpan),Ne.colSpan=et,Ne.colEnd=Ne.colStart+et-1,Re[Ie].push(Ne),Ce+=et,et});return Se}tt(He,0);for(var ft=Re.length,Qe=function(Le){Re[Le].forEach(function(Ie){!("rowSpan"in Ie)&&!Ie.hasSubColumns&&(Ie.rowSpan=ft-Le)})},lt=0;lt=0;Le-=1){var Ie=Re[Le],Ce=tt&&tt[Le],Se=Ce&&Ce[x.a];(Ie||Se||Ue)&&(Qe.unshift(v.createElement("col",Object.assign({key:Le,style:{width:Ie,minWidth:Ie}},Se))),Ue=!0)}return v.createElement("colgroup",null,Qe)}var _=y;function M(He,Re){return Object(v.useMemo)(function(){for(var tt=[],ft=0;ft1?ie-1:0),se=1;se=ke&&(Xr=ke-Ne),Ue({scrollLeft:Xr/ke*(Se+2)}),Nt.current.x=Kt.pageX},Ar=function(){var Kt=Object(Z.b)(lt.current).top,or=Kt+lt.current.offsetHeight,Xt=document.documentElement.scrollTop+window.innerHeight;or-Object(u.a)()<=Xt||Kt>=Xt-Le?Ut(function(gr){return Object(g.a)(Object(g.a)({},gr),{},{isHiddenScrollBar:!0})}):Ut(function(gr){return Object(g.a)(Object(g.a)({},gr),{},{isHiddenScrollBar:!1})})},vn=function(Kt){Ut(function(or){return Object(g.a)(Object(g.a)({},or),{},{scrollLeft:Kt/Se*ke||0})})};return v.useImperativeHandle(tt,function(){return{setScrollLeft:vn}}),v.useEffect(function(){var mn=Object(V.a)(document.body,"mouseup",Jr,!1),Kt=Object(V.a)(document.body,"mousemove",un,!1);return Ar(),function(){mn.remove(),Kt.remove()}},[Ne,St]),v.useEffect(function(){var mn=Object(V.a)(window,"scroll",Ar,!1),Kt=Object(V.a)(window,"resize",Ar,!1);return function(){mn.remove(),Kt.remove()}},[]),v.useEffect(function(){gt.isHiddenScrollBar||Ut(function(mn){var Kt,or;return Object(g.a)(Object(g.a)({},mn),{},{scrollLeft:lt.current.scrollLeft/((Kt=lt.current)===null||Kt===void 0?void 0:Kt.scrollWidth)*((or=lt.current)===null||or===void 0?void 0:or.clientWidth)})})},[gt.isHiddenScrollBar]),Se<=ke||!Ne||gt.isHiddenScrollBar?null:v.createElement("div",{style:{height:Object(u.a)(),width:ke,bottom:Le},className:"".concat(Ce,"-sticky-scroll")},v.createElement("div",{onMouseDown:Hr,ref:et,className:b()("".concat(Ce,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),St)),style:{width:"".concat(Ne,"px"),transform:"translate3d(".concat(gt.scrollLeft,"px, 0, 0)")}}))},ge=v.forwardRef(be);function Te(He,Re){return v.useMemo(function(){var tt=!!He;return{isSticky:tt,stickyClassName:tt?"".concat(Re,"-sticky-header"):"",offsetHeader:Object(P.a)(He)==="object"&&He.offsetHeader||0,offsetScroll:Object(P.a)(He)==="object"&&He.offsetScroll||0}},[He,Re])}var Je=[],rt={},nt="rc-table-internal-hook",at=v.memo(function(He){var Re=He.children;return Re},function(He,Re){return l()(He.props,Re.props)?He.pingLeft!==Re.pingLeft||He.pingRight!==Re.pingRight:!1});function ct(He){var Re,tt=He.prefixCls,ft=He.className,Qe=He.rowClassName,lt=He.style,Ue=He.data,Le=He.rowKey,Ie=He.scroll,Ce=He.tableLayout,Se=He.direction,ke=He.title,Ne=He.footer,et=He.summary,$e=He.id,bt=He.showHeader,gt=He.components,Ut=He.emptyText,Nt=He.onRow,hr=He.onHeaderRow,mr=He.internalHooks,St=He.transformColumns,Yr=He.internalRefs,Jr=He.sticky,Hr=Ue||Je,un=!!Hr.length,Ar=v.useState(0),vn=Object(p.a)(Ar,2),mn=vn[0],Kt=vn[1];v.useEffect(function(){Kt(Object(u.a)())});var or=v.useMemo(function(){return Object(w.c)(gt,{})},[gt]),Xt=v.useCallback(function(Pr,Ft){return Object(w.b)(or,Pr)||Ft},[or]),gr=v.useMemo(function(){return typeof Le=="function"?Le:function(Pr){var Ft=Pr&&Pr[Le];return Ft}},[Le]),Xr=Object(x.c)(He),kn=Xr.expandIcon,Ln=Xr.expandedRowKeys,tn=Xr.defaultExpandedRowKeys,ur=Xr.defaultExpandAllRows,Xn=Xr.expandedRowRender,hi=Xr.onExpand,$n=Xr.onExpandedRowsChange,Zr=Xr.expandRowByClick,Bn=Xr.rowExpandable,si=Xr.expandIconColumnIndex,li=Xr.expandedRowClassName,wt=Xr.childrenColumnName,$t=Xr.indentSize,en=kn||q,Cn=wt||"children",_n=v.useMemo(function(){return Xn?"row":He.expandable&&mr===nt&&He.expandable.__PARENT_RENDER_ICON__||Hr.some(function(Pr){return Pr&&Object(P.a)(Pr)==="object"&&Pr[Cn]})?"nest":!1},[!!Xn,Hr]),On=v.useState(function(){return tn||(ur?Q(Hr,gr,Cn):[])}),ae=Object(p.a)(On,2),z=ae[0],$=ae[1],ie=v.useMemo(function(){return new Set(Ln||z||[])},[Ln,z]),de=v.useCallback(function(Pr){var Ft=gr(Pr,Hr.indexOf(Pr)),Zt,wr=ie.has(Ft);wr?(ie.delete(Ft),Zt=Object(T.a)(ie)):Zt=[].concat(Object(T.a)(ie),[Ft]),$(Zt),hi&&hi(!wr,Pr),$n&&$n(Zt)},[gr,ie,Hr,hi,$n]),se=v.useState(0),Ke=Object(p.a)(se,2),Rt=Ke[0],Vt=Ke[1],Er=Object(ye.b)(Object(g.a)(Object(g.a)(Object(g.a)({},He),Xr),{},{expandable:!!Xn,expandedKeys:ie,getRowKey:gr,onTriggerExpand:de,expandIcon:en,expandIconColumnIndex:si,direction:Se}),mr===nt?St:null),Lt=Object(p.a)(Er,2),zr=Lt[0],Br=Lt[1],En=v.useMemo(function(){return{columns:zr,flattenColumns:Br}},[zr,Br]),ui=v.useRef(),Ei=v.useRef(),In=v.useRef(),Li=v.useState(!1),qi=Object(p.a)(Li,2),ni=qi[0],Ti=qi[1],xi=v.useState(!1),Fi=Object(p.a)(xi,2),Ci=Fi[0],Gi=Fi[1],Mi=ue(new Map),oa=Object(p.a)(Mi,2),sa=oa[0],Ii=oa[1],qn=Object(w.a)(Br),Vi=qn.map(function(Pr){return sa.get(Pr)}),ta=v.useMemo(function(){return Vi},[Vi.join("_")]),Tt=pe(ta,Br.length,Se),it=Ie&&Object(w.d)(Ie.y),mt=Ie&&Object(w.d)(Ie.x),Ct=mt&&Br.some(function(Pr){var Ft=Pr.fixed;return Ft}),It=v.useRef(),Pt=Te(Jr,tt),Ht=Pt.isSticky,Wt=Pt.offsetHeader,dt=Pt.offsetScroll,At=Pt.stickyClassName,Dt,yr,tr;it&&(yr={overflowY:"scroll",maxHeight:Ie.y}),mt&&(Dt={overflowX:"auto"},it||(yr={overflowY:"hidden"}),tr={width:Ie.x===!0?"auto":Ie.x,minWidth:"100%"});var qt=v.useCallback(function(Pr,Ft){Ii(function(Zt){var wr=new Map(Zt);return wr.set(Pr,Ft),wr})},[]),Gt=le(null),nr=Object(p.a)(Gt,2),cr=nr[0],st=nr[1];function Lr(Pr,Ft){if(!Ft)return;typeof Ft=="function"?Ft(Pr):Ft.scrollLeft!==Pr&&(Ft.scrollLeft=Pr)}var Fr=function(Ft){var Zt=Ft.currentTarget,wr=Ft.scrollLeft,er=typeof wr=="number"?wr:Zt.scrollLeft,vt=Zt||rt;if(!st()||st()===vt){var yt;cr(vt),Lr(er,Ei.current),Lr(er,In.current),Lr(er,(yt=It.current)===null||yt===void 0?void 0:yt.setScrollLeft)}if(Zt){var zt=Zt.scrollWidth,Mt=Zt.clientWidth;Ti(er>0),Gi(er0?[].concat(Object(g.a)(m),Object(g.a)(n(t).map(function(w){return Object(T.a)({fixed:a},w)}))):[].concat(Object(g.a)(m),[Object(T.a)(Object(T.a)({},s),{},{fixed:a})])},[])}function c(h){for(var m=!0,s=0;s=0;t-=1){var w=h[t];if(a&&w.fixed!=="right")a=!1;else if(!a&&w.fixed==="right"){Object(S.a)(!1,"Index ".concat(t+1," of `columns` missing `fixed='right'` prop."));break}}}function u(h){return h.map(function(m){var s=m.fixed,r=Object(P.a)(m,["fixed"]),a=s;return s==="left"?a="right":s==="right"&&(a="left"),Object(T.a)({fixed:a},r)})}function o(h,m){var s=h.prefixCls,r=h.columns,a=h.children,t=h.expandable,w=h.expandedKeys,E=h.getRowKey,f=h.onTriggerExpand,k=h.expandIcon,O=h.rowExpandable,C=h.expandIconColumnIndex,x=h.direction,y=h.expandRowByClick,_=p.useMemo(function(){return r||l(a)},[r,a]),M=p.useMemo(function(){if(t){var G,H=C||0,B=_[H],K=(G={},Object(L.a)(G,d.a,{className:"".concat(s,"-expand-icon-col")}),Object(L.a)(G,"title",""),Object(L.a)(G,"fixed",B?B.fixed:null),Object(L.a)(G,"className","".concat(s,"-row-expand-icon-cell")),Object(L.a)(G,"render",function(X,ne,fe){var me=E(ne,fe),Ae=w.has(me),De=O?O(ne):!0,ye=k({prefixCls:s,expanded:Ae,expandable:De,record:ne,onExpand:f});return y?p.createElement("span",{onClick:function(xe){return xe.stopPropagation()}},ye):ye}),G),U=_.slice();return H>=0&&U.splice(H,0,K),U}return _},[t,_,E,w,k,x]),I=p.useMemo(function(){var G=M;return m&&(G=m(G)),G.length||(G=[{render:function(){return null}}]),G},[m,M,x]),N=p.useMemo(function(){return x==="rtl"?u(n(I)):n(I)},[I,x]);return[I,N]}Y.b=o},wZgz:function(j,Y,D){(function(L,g,T){j.exports=Y=g(D("Ib8C"),D("ETIr"),D("cv67"),D("K3mO"),D("OLod"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.BlockCipher,p=g.algo,v=[],S=[],b=[],d=[],l=[],n=[],c=[],u=[],o=[],h=[];(function(){for(var r=[],a=0;a<256;a++)a<128?r[a]=a<<1:r[a]=a<<1^283;for(var t=0,w=0,a=0;a<256;a++){var E=w^w<<1^w<<2^w<<3^w<<4;E=E>>>8^E&255^99,v[t]=E,S[E]=t;var f=r[t],k=r[f],O=r[k],C=r[E]*257^E*16843008;b[t]=C<<24|C>>>8,d[t]=C<<16|C>>>16,l[t]=C<<8|C>>>24,n[t]=C;var C=O*16843009^k*65537^f*257^t*16843008;c[E]=C<<24|C>>>8,u[E]=C<<16|C>>>16,o[E]=C<<8|C>>>24,h[E]=C,t?(t=f^r[r[r[O^f]]],w^=r[r[w]]):t=w=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],s=p.AES=P.extend({_doReset:function(){var r;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var a=this._keyPriorReset=this._key,t=a.words,w=a.sigBytes/4,E=this._nRounds=w+6,f=(E+1)*4,k=this._keySchedule=[],O=0;O6&&O%w==4&&(r=v[r>>>24]<<24|v[r>>>16&255]<<16|v[r>>>8&255]<<8|v[r&255]):(r=r<<8|r>>>24,r=v[r>>>24]<<24|v[r>>>16&255]<<16|v[r>>>8&255]<<8|v[r&255],r^=m[O/w|0]<<24),k[O]=k[O-w]^r);for(var C=this._invKeySchedule=[],x=0;x>>24]]^u[v[r>>>16&255]]^o[v[r>>>8&255]]^h[v[r&255]]}},encryptBlock:function(r,a){this._doCryptBlock(r,a,this._keySchedule,b,d,l,n,v)},decryptBlock:function(r,a){var t=r[a+1];r[a+1]=r[a+3],r[a+3]=t,this._doCryptBlock(r,a,this._invKeySchedule,c,u,o,h,S);var t=r[a+1];r[a+1]=r[a+3],r[a+3]=t},_doCryptBlock:function(r,a,t,w,E,f,k,O){for(var C=this._nRounds,x=r[a]^t[0],y=r[a+1]^t[1],_=r[a+2]^t[2],M=r[a+3]^t[3],I=4,N=1;N>>24]^E[y>>>16&255]^f[_>>>8&255]^k[M&255]^t[I++],H=w[y>>>24]^E[_>>>16&255]^f[M>>>8&255]^k[x&255]^t[I++],B=w[_>>>24]^E[M>>>16&255]^f[x>>>8&255]^k[y&255]^t[I++],K=w[M>>>24]^E[x>>>16&255]^f[y>>>8&255]^k[_&255]^t[I++];x=G,y=H,_=B,M=K}var G=(O[x>>>24]<<24|O[y>>>16&255]<<16|O[_>>>8&255]<<8|O[M&255])^t[I++],H=(O[y>>>24]<<24|O[_>>>16&255]<<16|O[M>>>8&255]<<8|O[x&255])^t[I++],B=(O[_>>>24]<<24|O[M>>>16&255]<<16|O[x>>>8&255]<<8|O[y&255])^t[I++],K=(O[M>>>24]<<24|O[x>>>16&255]<<16|O[y>>>8&255]<<8|O[_&255])^t[I++];r[a]=G,r[a+1]=H,r[a+2]=B,r[a+3]=K},keySize:256/32});g.AES=P._createHelper(s)}(),L.AES})},wbyO:function(j,Y,D){(function(L,g){j.exports=Y=g(D("Ib8C"))})(this,function(L){return function(){var g=L,T=g.lib,P=T.WordArray,p=g.enc,v=p.Base64url={stringify:function(b,d=!0){var l=b.words,n=b.sigBytes,c=d?this._safe_map:this._map;b.clamp();for(var u=[],o=0;o>>2]>>>24-o%4*8&255,m=l[o+1>>>2]>>>24-(o+1)%4*8&255,s=l[o+2>>>2]>>>24-(o+2)%4*8&255,r=h<<16|m<<8|s,a=0;a<4&&o+a*.75>>6*(3-a)&63));var t=c.charAt(64);if(t)for(;u.length%4;)u.push(t);return u.join("")},parse:function(b,d=!0){var l=b.length,n=d?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var u=0;u>>6-u%4*2,m=o|h;n[c>>>2]|=m<<24-c%4*8,c++}return P.create(n,c)}}(),L.enc.Base64url})},"y0+3":function(j,Y,D){"use strict";D.d(Y,"a",function(){return n}),D.d(Y,"b",function(){return u});var L=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function P(o){return o.nodeType===1?o.ownerDocument.defaultView.getComputedStyle(o,null):{}}function p(o,h,m){if(h=h.toLowerCase(),m==="auto"){if(h==="height")return o.offsetHeight;if(h==="width")return o.offsetWidth}return h in g||(g[h]=L.test(h)),g[h]?parseFloat(m)||0:m}function v(o,h){var m=arguments.length,s=P(o);return h=T[h]?"cssFloat"in o.style?"cssFloat":"styleFloat":h,m===1?s:p(o,h,s[h]||o.style[h])}function S(o,h,m){var s=arguments.length;if(h=T[h]?"cssFloat"in o.style?"cssFloat":"styleFloat":h,s===3)return typeof m=="number"&&L.test(h)&&(m="".concat(m,"px")),o.style[h]=m,m;for(var r in h)h.hasOwnProperty(r)&&S(o,r,h[r]);return P(o)}function b(o){return o===document.body?document.documentElement.clientWidth:o.offsetWidth}function d(o){return o===document.body?window.innerHeight||document.documentElement.clientHeight:o.offsetHeight}function l(){var o=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:o,height:h}}function n(){var o=document.documentElement.clientWidth,h=window.innerHeight||document.documentElement.clientHeight;return{width:o,height:h}}function c(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(o){var h=o.getBoundingClientRect(),m=document.documentElement;return{left:h.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:h.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}},zrhs:function(j,Y,D){"use strict";var L=D("2qtc"),g=D("kLXV"),T=D("PpiC"),P=D("q1tI"),p=D.n(P),v=D("9kvl"),S=function(d){var l=d.shixunsDetail,n=d.globalSetting,c=d.loading,u=d.dispatch,o=Object(T.a)(d,["shixunsDetail","globalSetting","loading","dispatch"]);return p.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"\u63D0\u793A",visible:l.actionTabs.key==="Banner-Auth",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){u({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){u({type:"shixunsDetail/setActionTabs",payload:{}})}},p.a.createElement("p",{className:"tc font16"},"\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B",p.a.createElement("br",null),"\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"))};Y.a=Object(v.a)(function(b){var d=b.shixunsDetail,l=b.loading,n=b.globalSetting;return{shixunsDetail:d,globalSetting:n,loading:l.models.index}})(S)}}]); diff --git a/p__Competitions__Entered__Assembly__TeamDateil.7090a6f5.async.js b/p__Competitions__Entered__Assembly__TeamDateil.7090a6f5.async.js index c5bccadc78..3b727a2c2c 100644 --- a/p__Competitions__Entered__Assembly__TeamDateil.7090a6f5.async.js +++ b/p__Competitions__Entered__Assembly__TeamDateil.7090a6f5.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[120,8],{"55Ip":function(je,w,n){"use strict";n.d(w,"a",function(){return g}),n.d(w,"b",function(){return b});var E=n("Ty5D"),C=n("dI71"),Q=n("q1tI"),J=n.n(Q),j=n("YS25"),o=n("17x9"),ne=n.n(o),L=n("wx14"),u=n("zLVn"),V=n("9R94"),A=function(t){Object(C.a)(e,t);function e(){for(var c,d=arguments.length,N=new Array(d),f=0;f=0||d.relatedTarget.className.indexOf("".concat(k,"-next"))>=0))return;t.setState({goInputText:""}),K(t.getValidValue())},t.go=function(d){var N=t.state.goInputText;if(N==="")return;(d.keyCode===S.ENTER||d.type==="click")&&(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue()))},t}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(d,N){var f=isNaN(Number(d))?0:Number(d),K=isNaN(Number(N))?0:Number(N);return f-K})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,d=i.locale,N=i.rootPrefixCls,f=i.changeSize,K=i.quickGo,k=i.goButton,F=i.selectComponentClass,ce=i.buildOptionText,Z=i.selectPrefixCls,D=i.disabled,ee=this.state.goInputText,ae="".concat(N,"-options"),le=F,oe=null,te=null,y=null;if(!f&&!K)return null;var X=this.getPageSizeOptions();if(f&&le){var ve=X.map(function(pe,he){return u.a.createElement(le.Option,{key:he,value:pe.toString()},(ce||e.buildOptionText)(pe))});oe=u.a.createElement(le,{disabled:D,prefixCls:Z,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||X[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},ve)}return K&&(k&&(y=typeof k=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:D,className:"".concat(ae,"-quick-jumper-button")},d.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},k)),te=u.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},d.jump_to,u.a.createElement("input",{disabled:D,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),d.page,y)),u.a.createElement("li",{className:"".concat(ae)},oe,te)}}]),a}(u.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=r,x=n("N2Kk");function p(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function O(v,b,a){return a}function h(v,b,a){var t=typeof v=="undefined"?b.pageSize:v;return Math.floor((a.total-1)/t)+1}var B=function(v){Object(o.a)(a,v);var b=Object(ne.a)(a);function a(t){var e;Object(J.a)(this,a),e=b.call(this,t),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,K){var k=e.props.prefixCls,F=f||u.a.createElement("button",{type:"button","aria-label":K,className:"".concat(k,"-item-link")});return typeof f=="function"&&(F=u.a.createElement(f,Object(Q.a)({},e.props))),F},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,K=f.showQuickJumper,k=f.pageSize,F=f.total;return F<=k?!1:K},e.handleKeyDown=function(f){(f.keyCode===S.ARROW_UP||f.keyCode===S.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var K=e.getValidValue(f),k=e.state.currentInputValue;K!==k&&e.setState({currentInputValue:K}),f.keyCode===S.ENTER?e.handleChange(K):f.keyCode===S.ARROW_UP?e.handleChange(K-1):f.keyCode===S.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(f){var K=e.state.current,k=h(f,e.state,e.props);K=K>k?k:K,k===0&&(K=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,f)},e.handleChange=function(f){var K=e.props.disabled,k=f;if(e.isValid(k)&&!K){var F=h(void 0,e.state,e.props);k>F?k=F:k<1&&(k=1),"current"in e.props||e.setState({current:k,currentInputValue:k});var ce=e.state.pageSize;return e.props.onChange(k,ce),k}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?k-2:0),ce=2;ce=c?N=c:N=Number(i),N}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,d=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>d}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,d=i.itemRender,N=d(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,d=i.itemRender,N=d(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,d=i.className,N=i.style,f=i.disabled,K=i.hideOnSinglePage,k=i.total,F=i.locale,ce=i.showQuickJumper,Z=i.showLessItems,D=i.showTitle,ee=i.showTotal,ae=i.simple,le=i.itemRender,oe=i.showPrevNextJumpers,te=i.jumpPrevIcon,y=i.jumpNextIcon,X=i.selectComponentClass,ve=i.selectPrefixCls,pe=i.pageSizeOptions,he=this.state,se=he.current,Se=he.pageSize,Le=he.currentInputValue;if(K===!0&&k<=Se)return null;var de=h(void 0,this.state,this.props),ye=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,me=ce&&ce.goButton,be=Z?1:2,Qe=se-1>0?se-1:0,et=se+1=be*2&&se!==1+2&&(ye[0]=Object(L.cloneElement)(ye[0],{className:"".concat(c,"-item-after-jump-prev")}),ye.unshift(Be)),de-se>=be*2&&se!==de-2&&(ye[ye.length-1]=Object(L.cloneElement)(ye[ye.length-1],{className:"".concat(c,"-item-before-jump-next")}),ye.push(Ue)),P!==1&&ye.unshift(ke),I!==de&&ye.push(Ye)}var _=null;ee&&(_=u.a.createElement("li",{className:"".concat(c,"-total-text")},ee(k,[k===0?0:(se-1)*Se+1,se*Se>k?k:se*Se])));var T=!this.hasPrev()||!de,M=!this.hasNext()||!de;return u.a.createElement("ul",Object(E.a)({className:A()(c,d,Object(C.a)({},"".concat(c,"-disabled"),f)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},tt),_,u.a.createElement("li",{title:D?F.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(c,"-prev"),Object(C.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),ye,u.a.createElement("li",{title:D?F.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(c,"-next"),Object(C.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),u.a.createElement(s,{disabled:f,locale:F,rootPrefixCls:c,selectComponentClass:X,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:Se,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var d=i.current,N=h(e.pageSize,i,e);d=d>N?N:d,"current"in e||(c.current=d,c.currentInputValue=d),c.pageSize=e.pageSize}return c}}]),a}(u.a.Component);B.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:O,totalBoundaryShowSizeChanger:50};var m=B},"6RRn":function(je,w,n){"use strict";var E=n("wCXF"),C=n("n6Qo");n.d(w,"b",function(){return C.a});var Q=n("IBYe"),J=n("6eGT"),j=n("hW8S");n.d(w,"a",function(){return j.a}),w.c=E.b},"6eGT":function(je,w,n){"use strict";function E(C){return null}w.a=E},"815F":function(je,w,n){"use strict";n.d(w,"e",function(){return ne}),n.d(w,"c",function(){return u}),n.d(w,"d",function(){return V}),n.d(w,"a",function(){return Y}),n.d(w,"f",function(){return H}),n.d(w,"b",function(){return S});var E=n("KQm4"),C=n("VTBJ"),Q=n("Ff2n"),J=n("Zm9Q"),j=n("Kwbf"),o=n("OZM5");function ne(r,s){return r!=null?r:s}function L(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(O){var h=O.key,B=O.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var m=String(h);Object(j.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(B,"".concat(g).concat(m," > "))})}x(r)}function u(r){function s(x){var p=Object(J.a)(x);return p.map(function(g){if(!Object(o.i)(g))return Object(j.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var O=g.key,h=g.props,B=h.children,m=Object(Q.a)(h,["children"]),v=Object(C.a)({key:O},m),b=s(B);return b.length&&(v.children=b),v}).filter(function(g){return g})}return s(r)}function V(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function g(O){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return O.map(function(B,m){var v=Object(o.h)(h?h.pos:"0",m),b=ne(B.key,v),a=Object(C.a)(Object(C.a)({},B),{},{parent:h,pos:v,children:null,data:B,isStart:[].concat(Object(E.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(E.a)(h?h.isEnd:[]),[m===O.length-1])});return p.push(a),s===!0||x.has(b)?a.children=g(B.children||[],a):a.children=[],a})}return g(r),p}function A(r,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,B){return ne(h.key,B)};function g(O,h,B){var m=O?O.children:r,v=O?Object(o.h)(B.pos,h):"0";if(O){var b=p(O,v),a={node:O,index:h,pos:v,key:b,parentPos:B.node?B.pos:null,level:B.level+1};s(a)}m&&m.forEach(function(t,e){g(t,e,{node:O,pos:v,level:B?B.level+1:-1})})}g(null)}function Y(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,g=s.onProcessFinished,O=arguments.length>2?arguments[2]:void 0,h={},B={},m={posEntities:h,keyEntities:B};return x&&(m=x(m)||m),A(r,function(v){var b=v.node,a=v.index,t=v.pos,e=v.key,i=v.parentPos,c=v.level,d={node:b,index:a,key:e,pos:t,level:c},N=ne(e,t);h[t]=d,B[N]=d,d.parent=h[i],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),p&&p(d,m)},O),g&&g(m),m}function H(r,s){var x=s.expandedKeys,p=s.selectedKeys,g=s.loadedKeys,O=s.loadingKeys,h=s.checkedKeys,B=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,b=s.keyEntities,a=b[r],t={eventKey:r,expanded:x.indexOf(r)!==-1,selected:p.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:O.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:B.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&v===0,dragOverGapTop:m===r&&v===-1,dragOverGapBottom:m===r&&v===1};return t}function S(r){var s=r.data,x=r.expanded,p=r.selected,g=r.checked,O=r.loaded,h=r.loading,B=r.halfChecked,m=r.dragOver,v=r.dragOverGapTop,b=r.dragOverGapBottom,a=r.pos,t=r.active,e=Object(C.a)(Object(C.a)({},s),{},{expanded:x,selected:p,checked:g,loaded:O,loading:h,halfChecked:B,dragOver:m,dragOverGapTop:v,dragOverGapBottom:b,pos:a,active:t});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),e}},IBYe:function(je,w,n){"use strict";function E(C){return null}w.a=E},LdHM:function(je,w,n){"use strict";n.d(w,"b",function(){return O}),n.d(w,"a",function(){return B});var E=n("1OyB"),C=n("vuIU"),Q=n("Ji7U"),J=n("LK+K"),j=n("q1tI"),o=n("rePB"),ne=n("Ff2n"),L=n("ODXe"),u=n("4IlW"),V=n("bX4T"),A=n("YrtM"),Y=n("TSYQ"),H=n.n(Y),S=n("+nKL"),r=n("8OUc"),s=function(D,ee){var ae=D.prefixCls,le=D.id,oe=D.flattenOptions,te=D.childrenAsData,y=D.values,X=D.searchValue,ve=D.multiple,pe=D.defaultActiveFirstOption,he=D.height,se=D.itemHeight,Se=D.notFoundContent,Le=D.open,de=D.menuItemSelectedIcon,ye=D.virtual,Be=D.onSelect,Ue=D.onToggleOpen,ke=D.onActiveValue,Ye=D.onScroll,Ae=D.onMouseEnter,me="".concat(ae,"-item"),be=Object(A.a)(function(){return oe},[Le,oe],function(U,_){return _[0]&&U[1]!==_[1]}),Qe=j.useRef(null),et=function(_){_.preventDefault()},tt=function(_){Qe.current&&Qe.current.scrollTo({index:_})},st=function(_){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=be.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,ae){if(!j.isValidElement(ee)||!ee.type)return null;var le=ee.type.isSelectOptGroup,oe=ee.key,te=ee.props,y=te.children,X=Object(ne.a)(te,["children"]);return D||!le?b(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},X),{},{options:a(y)})}).filter(function(ee){return ee})}var t=n("2Qr1"),e=n("qNPg"),i=n("U8pU"),c=n("Kwbf"),d=n("WKfj");function N(Z){var D=Z.mode,ee=Z.options,ae=Z.children,le=Z.backfill,oe=Z.allowClear,te=Z.placeholder,y=Z.getInputElement,X=Z.showSearch,ve=Z.onSearch,pe=Z.defaultOpen,he=Z.autoFocus,se=Z.labelInValue,Se=Z.value,Le=Z.inputValue,de=Z.optionLabelProp,ye=D==="multiple"||D==="tags",Be=X!==void 0?X:ye||D==="combobox",Ue=ee||a(ae);if(Object(c.a)(D!=="tags"||Ue.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),D==="tags"||D==="combobox"){var ke=Ue.some(function(me){return me.options?me.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(D!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(D==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(c.a)(D==="combobox"||!y,"`getInputElement` only work with `combobox` mode."),Object(c.b)(D!=="combobox"||!y||!oe||!te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Be&&D!=="combobox"&&D!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Se!=null){var Ye=Object(d.d)(Se);Object(c.a)(!se||Ye.every(function(me){return Object(i.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ye||Array.isArray(Se),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Ae=null;Object(v.a)(ae).some(function(me){if(!j.isValidElement(me)||!me.type)return!1;var be=me.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!j.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=be,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=N,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:t.d,getLabeledValue:t.e,filterOptions:t.b,isValueDisabled:t.g,findValueOption:t.c,warningProps:f,fillOptionsWithMissingValue:t.a}),k=function(Z){Object(Q.a)(ee,Z);var D=Object(J.a)(ee);function ee(){var ae;return Object(E.a)(this,ee),ae=D.apply(this,arguments),ae.selectRef=j.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(C.a)(ee,[{key:"render",value:function(){return j.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);k.Option=O,k.OptGroup=B;var F=k,ce=w.c=F},NvD2:function(je,w,n){"use strict";n.d(w,"a",function(){return o});var E=n("Kwbf");function C(ne,L){var u=new Set;return ne.forEach(function(V){L.has(V)||u.add(V)}),u}function Q(ne){var L=ne||{},u=L.disabled,V=L.disableCheckbox,A=L.checkable;return!!(u||V)||A===!1}function J(ne,L,u,V){for(var A=new Set(ne),Y=new Set,H=0;H<=u;H+=1){var S=L.get(H)||new Set;S.forEach(function(p){var g=p.key,O=p.node,h=p.children,B=h===void 0?[]:h;A.has(g)&&!V(O)&&B.filter(function(m){return!V(m.node)}).forEach(function(m){A.add(m.key)})})}for(var r=new Set,s=u;s>=0;s-=1){var x=L.get(s)||new Set;x.forEach(function(p){var g=p.parent,O=p.node;if(V(O)||!p.parent||r.has(p.parent.key))return;if(V(p.parent.node)){r.add(g.key);return}var h=!0,B=!1;(g.children||[]).filter(function(m){return!V(m.node)}).forEach(function(m){var v=m.key,b=A.has(v);h&&!b&&(h=!1),!B&&(b||Y.has(v))&&(B=!0)}),h&&A.add(g.key),B&&Y.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(C(Y,A))}}function j(ne,L,u,V,A){for(var Y=new Set(ne),H=new Set(L),S=0;S<=V;S+=1){var r=u.get(S)||new Set;r.forEach(function(g){var O=g.key,h=g.node,B=g.children,m=B===void 0?[]:B;!Y.has(O)&&!H.has(O)&&!A(h)&&m.filter(function(v){return!A(v.node)}).forEach(function(v){Y.delete(v.key)})})}H=new Set;for(var s=new Set,x=V;x>=0;x-=1){var p=u.get(x)||new Set;p.forEach(function(g){var O=g.parent,h=g.node;if(A(h)||!g.parent||s.has(g.parent.key))return;if(A(g.parent.node)){s.add(O.key);return}var B=!0,m=!1;(O.children||[]).filter(function(v){return!A(v.node)}).forEach(function(v){var b=v.key,a=Y.has(b);B&&!a&&(B=!1),!m&&(a||H.has(b))&&(m=!0)}),B||Y.delete(O.key),m&&H.add(O.key),s.add(O.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(C(H,Y))}}function o(ne,L,u,V){var A=[],Y;V?Y=V:Y=Q;var H=new Set(ne.filter(function(x){var p=!!u[x];return p||A.push(x),p})),S=new Map,r=0;Object.keys(u).forEach(function(x){var p=u[x],g=p.level,O=S.get(g);O||(O=new Set,S.set(g,O)),O.add(p),r=Math.max(r,g)}),Object(E.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return L===!0?s=J(H,S,r,Y):s=j(H,L.halfCheckedKeys,S,r,Y),s}},OZM5:function(je,w,n){"use strict";n.d(w,"b",function(){return V}),n.d(w,"a",function(){return A}),n.d(w,"k",function(){return Y}),n.d(w,"h",function(){return H}),n.d(w,"i",function(){return S}),n.d(w,"g",function(){return r}),n.d(w,"c",function(){return s}),n.d(w,"d",function(){return x}),n.d(w,"j",function(){return O}),n.d(w,"e",function(){return h}),n.d(w,"f",function(){return B});var E=n("KQm4"),C=n("U8pU"),Q=n("Ff2n"),J=n("q1tI"),j=n.n(J),o=n("Kwbf"),ne=n("WaYH"),L=.25,u=2;function V(m,v){var b=m.slice(),a=b.indexOf(v);return a>=0&&b.splice(a,1),b}function A(m,v){var b=m.slice();return b.indexOf(v)===-1&&b.push(v),b}function Y(m){return m.split("-")}function H(m,v){return"".concat(m,"-").concat(v)}function S(m){return m&&m.type&&m.type.isTreeNode}function r(m,v){var b=[m],a=v[m];function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,d=i.children;b.push(c),t(d)})}return t(a.children),b}function s(m,v){var b=m.clientY,a=v.selectHandle.getBoundingClientRect(),t=a.top,e=a.bottom,i=a.height,c=Math.max(i*L,u);return b<=t+c?-1:b>=e-c?1:0}function x(m,v){if(!m)return;var b=v.multiple;return b?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function g(m,v){if(!m)return[];var b=v||{},a=b.processProps,t=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(i){var c=i.children,d=Object(Q.a)(i,["children"]),N=g(c,v);return j.a.createElement(ne.a,Object.assign({},t(d)),N)})}function O(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(C.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var b=new Set;function a(t){if(b.has(t))return;var e=v[t];if(!e)return;b.add(t);var i=e.parent,c=e.node;if(c.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(t){a(t)}),Object(E.a)(b)}function B(m){var v={};return Object.keys(m).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=m[b])}),v}},"SA+Z":function(je,w,n){var E=n("wTVA"),C=n("EbDI"),Q=n("ZhPi"),J=n("wkBT");function j(o){return E(o)||C(o)||Q(o)||J()}je.exports=j,je.exports.__esModule=!0,je.exports.default=je.exports},WaYH:function(je,w,n){"use strict";var E=n("rePB"),C=n("Ff2n"),Q=n("VTBJ"),J=n("1OyB"),j=n("vuIU"),o=n("JX7q"),ne=n("Ji7U"),L=n("LK+K"),u=n("q1tI"),V=n("TSYQ"),A=n.n(V),Y=n("sboe"),H=n("OZM5"),S=function(v){var b=v.prefixCls,a=v.level,t=v.isStart,e=v.isEnd;if(!a)return null;for(var i="".concat(b,"-indent-unit"),c=[],d=0;d"},r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index/".concat(e,"/enroll")},"\u62A5\u540D")),r.a.createElement(J.a.Item,null,"\u6218\u961F\u8BE6\u60C5")),r.a.createElement("p",null,"\u5B9E\u8DF5\u9879\u76EE"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:le,dataSource:N,bordered:!0,pagination:!1}),r.a.createElement("p",null,"\u6559\u5B66\u8BFE\u5802"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:oe,dataSource:F,bordered:!0,pagination:!1}))};w.default=Object(p.a)(function(O){var h=O.loading,B=O.globalSetting,m=O.user;return{globalSetting:B,loading:h.effects,user:m}})(g)},n6Qo:function(je,w,n){"use strict";n.d(w,"a",function(){return L});var E=n("q1tI"),C=n("biw7"),Q=n("fyJ8");function J(u){var V=u.className,A=u.index,Y=u.children,H=u.colSpan,S=u.rowSpan,r=E.useContext(C.a),s=r.prefixCls,x=r.fixedInfoList,p=x[A];return E.createElement(Q.a,Object.assign({className:V,index:A,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:H,rowSpan:S}}}},p))}function j(u){return E.createElement("tr",Object.assign({},u))}function o(u){var V=u.children,A=E.useContext(C.a),Y=A.prefixCls;return E.createElement("tfoot",{className:"".concat(Y,"-summary")},V)}var ne=w.b=o,L={Cell:J,Row:j}},sR1s:function(je,w,n){"use strict";n.d(w,"b",function(){return J}),n.d(w,"a",function(){return j}),n.d(w,"c",function(){return o}),n.d(w,"d",function(){return ne});var E=n("U8pU"),C="RC_TABLE_KEY";function Q(L){return L==null?[]:Array.isArray(L)?L:[L]}function J(L,u){if(!u&&typeof u!="number")return L;for(var V=Q(u),A=L,Y=0;Y1)Object(V.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(V.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=O[0];if(o.isValidElement(h)&&Object(A.c)(h)){var B=h.ref;O[0]=o.cloneElement(h,{ref:Object(A.a)(B,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(H,"-").concat(v)})})}}]),x}(o.Component);S.displayName="ResizeObserver",w.a=S},wCXF:function(je,w,n){"use strict";n.d(w,"a",function(){return tt});var E=n("rePB"),C=n("VTBJ"),Q=n("KQm4"),J=n("U8pU"),j=n("ODXe"),o=n("q1tI"),ne=n("TSYQ"),L=n.n(ne),u=n("Gytx"),V=n.n(u),A=n("Kwbf"),Y=n("t23M"),H=n("qx4F"),S=n("6eGT"),r=n("IBYe"),s=n("Ff2n"),x=n("c+Xe"),p=n("fyJ8"),g=n("biw7");function O(l,R,P,I,z){var U=P[l]||{},_=P[R]||{},T,M;U.fixed==="left"?T=I.left[l]:_.fixed==="right"&&(M=I.right[R]);var G=!1,W=!1,$=!1,re=!1,q=P[R+1],ue=P[l-1];if(z==="rtl"){if(T!==void 0){var Re=ue&&ue.fixed==="left";re=!Re}else if(M!==void 0){var Ce=q&&q.fixed==="right";$=!Ce}}else if(T!==void 0){var xe=q&&q.fixed==="left";G=!xe}else if(M!==void 0){var ie=ue&&ue.fixed==="right";W=!ie}return{fixLeft:T,fixRight:M,lastFixLeft:G,firstFixRight:W,lastFixRight:$,firstFixLeft:re,isSticky:I.isSticky}}var h=n("sR1s");function B(l){var R=l.cells,P=l.stickyOffsets,I=l.flattenColumns,z=l.rowComponent,U=l.cellComponent,_=l.onHeaderRow,T=l.index,M=o.useContext(g.a),G=M.prefixCls,W=M.direction,$;_&&($=_(R.map(function(q){return q.column}),T));var re=Object(h.a)(R.map(function(q){return q.column}));return o.createElement(z,Object.assign({},$),R.map(function(q,ue){var Re=q.column,Ce=O(q.colStart,q.colEnd,I,P,W),xe;return Re&&Re.onHeaderCell&&(xe=q.column.onHeaderCell(Re)),o.createElement(p.a,Object.assign({},q,{ellipsis:Re.ellipsis,align:Re.align,component:U,prefixCls:G,key:re[ue]},Ce,{additionalProps:xe,rowType:"header"}))}))}B.displayName="HeaderRow";var m=B;function v(l){var R=[];function P(_,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var G=T,W=_.filter(Boolean).map(function($){var re={key:$.key,className:$.className||"",children:$.title,column:$,colStart:G},q=1,ue=$.children;return ue&&ue.length>0&&(q=P(ue,G,M+1).reduce(function(Re,Ce){return Re+Ce},0),re.hasSubColumns=!0),"colSpan"in $&&(q=$.colSpan),"rowSpan"in $&&(re.rowSpan=$.rowSpan),re.colSpan=q,re.colEnd=re.colStart+q-1,R[M].push(re),G+=q,q});return W}P(l,0);for(var I=R.length,z=function(T){R[T].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=I-T)})},U=0;U=0;T-=1){var M=R[T],G=P&&P[T],W=G&&G[t.a];(M||W||_)&&(z.unshift(o.createElement("col",Object.assign({key:T,style:{width:M,minWidth:M}},W))),_=!0)}return o.createElement("colgroup",null,z)}var i=e;function c(l,R){return Object(o.useMemo)(function(){for(var P=[],I=0;I1?Fe-1:0),dt=1;dt=$&&(Ne=$-re),_({scrollLeft:Ne/$*(W+2)}),ie.current.x=fe.pageX},We=function(){var fe=Object(Ye.b)(U.current).top,we=fe+U.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=He||fe>=He-T?xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},_e=function(fe){xe(function(we){return Object(C.a)(Object(C.a)({},we),{},{scrollLeft:fe/W*$||0})})};return o.useImperativeHandle(P,function(){return{setScrollLeft:_e}}),o.useEffect(function(){var Pe=Object(ke.a)(document.body,"mouseup",$e,!1),fe=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Pe.remove(),fe.remove()}},[re,Te]),o.useEffect(function(){var Pe=Object(ke.a)(window,"scroll",We,!1),fe=Object(ke.a)(window,"resize",We,!1);return function(){Pe.remove(),fe.remove()}},[]),o.useEffect(function(){Ce.isHiddenScrollBar||xe(function(Pe){var fe,we;return Object(C.a)(Object(C.a)({},Pe),{},{scrollLeft:U.current.scrollLeft/((fe=U.current)===null||fe===void 0?void 0:fe.scrollWidth)*((we=U.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ce.isHiddenScrollBar]),W<=$||!re||Ce.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:$,bottom:T},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:Oe,ref:q,className:L()("".concat(G,"-sticky-scroll-bar"),Object(E.a)({},"".concat(G,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(Ce.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function be(l,R){return o.useMemo(function(){var P=!!l;return{isSticky:P,stickyClassName:P?"".concat(R,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var R=l.children;return R},function(l,R){return V()(l.props,R.props)?l.pingLeft!==R.pingLeft||l.pingRight!==R.pingRight:!1});function Ve(l){var R,P=l.prefixCls,I=l.className,z=l.rowClassName,U=l.style,_=l.data,T=l.rowKey,M=l.scroll,G=l.tableLayout,W=l.direction,$=l.title,re=l.footer,q=l.summary,ue=l.id,Re=l.showHeader,Ce=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,De=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Oe=_||Qe,Ge=!!Oe.length,We=o.useState(0),_e=Object(j.a)(We,2),Pe=_e[0],fe=_e[1];o.useEffect(function(){fe(Object(H.a)())});var we=o.useMemo(function(){return Object(h.c)(Ce,{})},[Ce]),He=o.useCallback(function(Ee,ge){return Object(h.b)(we,Ee)||ge},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(Ee){var ge=Ee&&Ee[T];return ge}},[T]),Ne=Object(t.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Tt=Ne.indentSize,ht=jt||Be,gt=Kt||"children",St=o.useMemo(function(){return it?"row":l.expandable&&De===tt&&l.expandable.__PARENT_RENDER_ICON__||Oe.some(function(Ee){return Ee&&Object(J.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,Oe]),Dt=o.useState(function(){return Pt||(rt?Ue(Oe,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],Fe=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(Ee){var ge=Je(Ee,Oe.indexOf(Ee)),Ke,qe=Fe.has(ge);qe?(Fe.delete(ge),Ke=Object(Q.a)(Fe)):Ke=[].concat(Object(Q.a)(Fe),[ge]),at(Ke),ft&&ft(!qe,Ee),mt&&mt(Ke)},[Je,Fe,Oe,ft,mt]),dt=o.useState(0),_t=Object(j.a)(dt,2),Ct=_t[0],Mt=_t[1],vn=Object(y.b)(Object(C.a)(Object(C.a)(Object(C.a)({},l),Ne),{},{expandable:!!it,expandedKeys:Fe,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:W}),De===tt?Te:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Me=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(Me),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Se(on,Me.length,W),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&Me.some(function(Ee){var ge=Ee.fixed;return ge}),rn=o.useRef(),wt=be($e,P),Ot=wt.isSticky,Rn=wt.offsetHeader,Pn=wt.offsetScroll,Nn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:M.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,ge){xn(function(Ke){var qe=new Map(Ke);return qe.set(Ee,ge),qe})},[]),Tn=he(null),sn=Object(j.a)(Tn,2),Sn=sn[0],cn=sn[1];function Ht(Ee,ge){if(!ge)return;typeof ge=="function"?ge(Ee):ge.scrollLeft!==Ee&&(ge.scrollLeft=Ee)}var vt=function(ge){var Ke=ge.currentTarget,qe=ge.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Sn(hn),Ht(xt,Qt.current),Ht(xt,ut.current),Ht(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(s),Object(C.a)(A(O).map(function(h){return Object(Q.a)({fixed:g},h)}))):[].concat(Object(C.a)(s),[Object(Q.a)(Object(Q.a)({},x),{},{fixed:g})])},[])}function Y(r){for(var s=!0,x=0;x=0;O-=1){var h=r[O];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(ne.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function H(r){return r.map(function(s){var x=s.fixed,p=Object(J.a)(s,["fixed"]),g=x;return x==="left"?g="right":x==="right"&&(g="left"),Object(Q.a)({fixed:g},p)})}function S(r,s){var x=r.prefixCls,p=r.columns,g=r.children,O=r.expandable,h=r.expandedKeys,B=r.getRowKey,m=r.onTriggerExpand,v=r.expandIcon,b=r.rowExpandable,a=r.expandIconColumnIndex,t=r.direction,e=r.expandRowByClick,i=j.useMemo(function(){return p||V(g)},[p,g]),c=j.useMemo(function(){if(O){var f,K=a||0,k=i[K],F=(f={},Object(E.a)(f,u.a,{className:"".concat(x,"-expand-icon-col")}),Object(E.a)(f,"title",""),Object(E.a)(f,"fixed",k?k.fixed:null),Object(E.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(E.a)(f,"render",function(D,ee,ae){var le=B(ee,ae),oe=h.has(le),te=b?b(ee):!0,y=v({prefixCls:x,expanded:oe,expandable:te,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},y):y}),f),ce=i.slice();return K>=0&&ce.splice(K,0,F),ce}return i},[O,i,B,h,v,t]),d=j.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,t]),N=j.useMemo(function(){return t==="rtl"?H(A(d)):A(d)},[d,t]);return[d,N]}w.b=S},"y0+3":function(je,w,n){"use strict";n.d(w,"a",function(){return A}),n.d(w,"b",function(){return H});var E=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function J(S){return S.nodeType===1?S.ownerDocument.defaultView.getComputedStyle(S,null):{}}function j(S,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return S.offsetHeight;if(r==="width")return S.offsetWidth}return r in C||(C[r]=E.test(r)),C[r]?parseFloat(s)||0:s}function o(S,r){var s=arguments.length,x=J(S);return r=Q[r]?"cssFloat"in S.style?"cssFloat":"styleFloat":r,s===1?x:j(S,r,x[r]||S.style[r])}function ne(S,r,s){var x=arguments.length;if(r=Q[r]?"cssFloat"in S.style?"cssFloat":"styleFloat":r,x===3)return typeof s=="number"&&E.test(r)&&(s="".concat(s,"px")),S.style[r]=s,s;for(var p in r)r.hasOwnProperty(p)&&ne(S,p,r[p]);return J(S)}function L(S){return S===document.body?document.documentElement.clientWidth:S.offsetWidth}function u(S){return S===document.body?window.innerHeight||document.documentElement.clientHeight:S.offsetHeight}function V(){var S=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:S,height:r}}function A(){var S=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:S,height:r}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(S){var r=S.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[120,8],{"55Ip":function(je,w,n){"use strict";n.d(w,"a",function(){return g}),n.d(w,"b",function(){return b});var E=n("Ty5D"),C=n("dI71"),Q=n("q1tI"),J=n.n(Q),j=n("YS25"),o=n("17x9"),ne=n.n(o),L=n("wx14"),u=n("zLVn"),V=n("9R94"),A=function(t){Object(C.a)(e,t);function e(){for(var c,d=arguments.length,N=new Array(d),f=0;f=0||d.relatedTarget.className.indexOf("".concat(k,"-next"))>=0))return;t.setState({goInputText:""}),K(t.getValidValue())},t.go=function(d){var N=t.state.goInputText;if(N==="")return;(d.keyCode===D.ENTER||d.type==="click")&&(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue()))},t}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(d,N){var f=isNaN(Number(d))?0:Number(d),K=isNaN(Number(N))?0:Number(N);return f-K})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,d=i.locale,N=i.rootPrefixCls,f=i.changeSize,K=i.quickGo,k=i.goButton,F=i.selectComponentClass,ce=i.buildOptionText,Z=i.selectPrefixCls,S=i.disabled,ee=this.state.goInputText,ae="".concat(N,"-options"),le=F,oe=null,te=null,y=null;if(!f&&!K)return null;var X=this.getPageSizeOptions();if(f&&le){var ve=X.map(function(pe,he){return u.a.createElement(le.Option,{key:he,value:pe.toString()},(ce||e.buildOptionText)(pe))});oe=u.a.createElement(le,{disabled:S,prefixCls:Z,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||X[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},ve)}return K&&(k&&(y=typeof k=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:S,className:"".concat(ae,"-quick-jumper-button")},d.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},k)),te=u.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},d.jump_to,u.a.createElement("input",{disabled:S,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),d.page,y)),u.a.createElement("li",{className:"".concat(ae)},oe,te)}}]),a}(u.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=r,x=n("N2Kk");function p(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function O(v,b,a){return a}function h(v,b,a){var t=typeof v=="undefined"?b.pageSize:v;return Math.floor((a.total-1)/t)+1}var B=function(v){Object(o.a)(a,v);var b=Object(ne.a)(a);function a(t){var e;Object(J.a)(this,a),e=b.call(this,t),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,K){var k=e.props.prefixCls,F=f||u.a.createElement("button",{type:"button","aria-label":K,className:"".concat(k,"-item-link")});return typeof f=="function"&&(F=u.a.createElement(f,Object(Q.a)({},e.props))),F},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,K=f.showQuickJumper,k=f.pageSize,F=f.total;return F<=k?!1:K},e.handleKeyDown=function(f){(f.keyCode===D.ARROW_UP||f.keyCode===D.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var K=e.getValidValue(f),k=e.state.currentInputValue;K!==k&&e.setState({currentInputValue:K}),f.keyCode===D.ENTER?e.handleChange(K):f.keyCode===D.ARROW_UP?e.handleChange(K-1):f.keyCode===D.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(f){var K=e.state.current,k=h(f,e.state,e.props);K=K>k?k:K,k===0&&(K=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,f)},e.handleChange=function(f){var K=e.props.disabled,k=f;if(e.isValid(k)&&!K){var F=h(void 0,e.state,e.props);k>F?k=F:k<1&&(k=1),"current"in e.props||e.setState({current:k,currentInputValue:k});var ce=e.state.pageSize;return e.props.onChange(k,ce),k}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?k-2:0),ce=2;ce=c?N=c:N=Number(i),N}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,d=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>d}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,d=i.itemRender,N=d(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,d=i.itemRender,N=d(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,d=i.className,N=i.style,f=i.disabled,K=i.hideOnSinglePage,k=i.total,F=i.locale,ce=i.showQuickJumper,Z=i.showLessItems,S=i.showTitle,ee=i.showTotal,ae=i.simple,le=i.itemRender,oe=i.showPrevNextJumpers,te=i.jumpPrevIcon,y=i.jumpNextIcon,X=i.selectComponentClass,ve=i.selectPrefixCls,pe=i.pageSizeOptions,he=this.state,se=he.current,De=he.pageSize,Le=he.currentInputValue;if(K===!0&&k<=De)return null;var de=h(void 0,this.state,this.props),ye=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,me=ce&&ce.goButton,be=Z?1:2,Qe=se-1>0?se-1:0,et=se+1=be*2&&se!==1+2&&(ye[0]=Object(L.cloneElement)(ye[0],{className:"".concat(c,"-item-after-jump-prev")}),ye.unshift(Be)),de-se>=be*2&&se!==de-2&&(ye[ye.length-1]=Object(L.cloneElement)(ye[ye.length-1],{className:"".concat(c,"-item-before-jump-next")}),ye.push(Ue)),P!==1&&ye.unshift(ke),I!==de&&ye.push(Ye)}var _=null;ee&&(_=u.a.createElement("li",{className:"".concat(c,"-total-text")},ee(k,[k===0?0:(se-1)*De+1,se*De>k?k:se*De])));var T=!this.hasPrev()||!de,M=!this.hasNext()||!de;return u.a.createElement("ul",Object(E.a)({className:A()(c,d,Object(C.a)({},"".concat(c,"-disabled"),f)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},tt),_,u.a.createElement("li",{title:S?F.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(c,"-prev"),Object(C.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),ye,u.a.createElement("li",{title:S?F.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(c,"-next"),Object(C.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),u.a.createElement(s,{disabled:f,locale:F,rootPrefixCls:c,selectComponentClass:X,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:De,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var d=i.current,N=h(e.pageSize,i,e);d=d>N?N:d,"current"in e||(c.current=d,c.currentInputValue=d),c.pageSize=e.pageSize}return c}}]),a}(u.a.Component);B.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:O,totalBoundaryShowSizeChanger:50};var m=B},"6RRn":function(je,w,n){"use strict";var E=n("wCXF"),C=n("n6Qo");n.d(w,"b",function(){return C.a});var Q=n("IBYe"),J=n("6eGT"),j=n("hW8S");n.d(w,"a",function(){return j.a}),w.c=E.b},"6eGT":function(je,w,n){"use strict";function E(C){return null}w.a=E},"815F":function(je,w,n){"use strict";n.d(w,"e",function(){return ne}),n.d(w,"c",function(){return u}),n.d(w,"d",function(){return V}),n.d(w,"a",function(){return Y}),n.d(w,"f",function(){return H}),n.d(w,"b",function(){return D});var E=n("KQm4"),C=n("VTBJ"),Q=n("Ff2n"),J=n("Zm9Q"),j=n("Kwbf"),o=n("OZM5");function ne(r,s){return r!=null?r:s}function L(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(O){var h=O.key,B=O.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var m=String(h);Object(j.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(B,"".concat(g).concat(m," > "))})}x(r)}function u(r){function s(x){var p=Object(J.a)(x);return p.map(function(g){if(!Object(o.i)(g))return Object(j.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var O=g.key,h=g.props,B=h.children,m=Object(Q.a)(h,["children"]),v=Object(C.a)({key:O},m),b=s(B);return b.length&&(v.children=b),v}).filter(function(g){return g})}return s(r)}function V(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function g(O){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return O.map(function(B,m){var v=Object(o.h)(h?h.pos:"0",m),b=ne(B.key,v),a=Object(C.a)(Object(C.a)({},B),{},{parent:h,pos:v,children:null,data:B,isStart:[].concat(Object(E.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(E.a)(h?h.isEnd:[]),[m===O.length-1])});return p.push(a),s===!0||x.has(b)?a.children=g(B.children||[],a):a.children=[],a})}return g(r),p}function A(r,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,B){return ne(h.key,B)};function g(O,h,B){var m=O?O.children:r,v=O?Object(o.h)(B.pos,h):"0";if(O){var b=p(O,v),a={node:O,index:h,pos:v,key:b,parentPos:B.node?B.pos:null,level:B.level+1};s(a)}m&&m.forEach(function(t,e){g(t,e,{node:O,pos:v,level:B?B.level+1:-1})})}g(null)}function Y(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,g=s.onProcessFinished,O=arguments.length>2?arguments[2]:void 0,h={},B={},m={posEntities:h,keyEntities:B};return x&&(m=x(m)||m),A(r,function(v){var b=v.node,a=v.index,t=v.pos,e=v.key,i=v.parentPos,c=v.level,d={node:b,index:a,key:e,pos:t,level:c},N=ne(e,t);h[t]=d,B[N]=d,d.parent=h[i],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),p&&p(d,m)},O),g&&g(m),m}function H(r,s){var x=s.expandedKeys,p=s.selectedKeys,g=s.loadedKeys,O=s.loadingKeys,h=s.checkedKeys,B=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,b=s.keyEntities,a=b[r],t={eventKey:r,expanded:x.indexOf(r)!==-1,selected:p.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:O.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:B.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&v===0,dragOverGapTop:m===r&&v===-1,dragOverGapBottom:m===r&&v===1};return t}function D(r){var s=r.data,x=r.expanded,p=r.selected,g=r.checked,O=r.loaded,h=r.loading,B=r.halfChecked,m=r.dragOver,v=r.dragOverGapTop,b=r.dragOverGapBottom,a=r.pos,t=r.active,e=Object(C.a)(Object(C.a)({},s),{},{expanded:x,selected:p,checked:g,loaded:O,loading:h,halfChecked:B,dragOver:m,dragOverGapTop:v,dragOverGapBottom:b,pos:a,active:t});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),e}},IBYe:function(je,w,n){"use strict";function E(C){return null}w.a=E},LdHM:function(je,w,n){"use strict";n.d(w,"b",function(){return O}),n.d(w,"a",function(){return B});var E=n("1OyB"),C=n("vuIU"),Q=n("Ji7U"),J=n("LK+K"),j=n("q1tI"),o=n("rePB"),ne=n("Ff2n"),L=n("ODXe"),u=n("4IlW"),V=n("bX4T"),A=n("YrtM"),Y=n("TSYQ"),H=n.n(Y),D=n("+nKL"),r=n("8OUc"),s=function(S,ee){var ae=S.prefixCls,le=S.id,oe=S.flattenOptions,te=S.childrenAsData,y=S.values,X=S.searchValue,ve=S.multiple,pe=S.defaultActiveFirstOption,he=S.height,se=S.itemHeight,De=S.notFoundContent,Le=S.open,de=S.menuItemSelectedIcon,ye=S.virtual,Be=S.onSelect,Ue=S.onToggleOpen,ke=S.onActiveValue,Ye=S.onScroll,Ae=S.onMouseEnter,me="".concat(ae,"-item"),be=Object(A.a)(function(){return oe},[Le,oe],function(U,_){return _[0]&&U[1]!==_[1]}),Qe=j.useRef(null),et=function(_){_.preventDefault()},tt=function(_){Qe.current&&Qe.current.scrollTo({index:_})},st=function(_){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=be.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,ae){if(!j.isValidElement(ee)||!ee.type)return null;var le=ee.type.isSelectOptGroup,oe=ee.key,te=ee.props,y=te.children,X=Object(ne.a)(te,["children"]);return S||!le?b(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},X),{},{options:a(y)})}).filter(function(ee){return ee})}var t=n("2Qr1"),e=n("qNPg"),i=n("U8pU"),c=n("Kwbf"),d=n("WKfj");function N(Z){var S=Z.mode,ee=Z.options,ae=Z.children,le=Z.backfill,oe=Z.allowClear,te=Z.placeholder,y=Z.getInputElement,X=Z.showSearch,ve=Z.onSearch,pe=Z.defaultOpen,he=Z.autoFocus,se=Z.labelInValue,De=Z.value,Le=Z.inputValue,de=Z.optionLabelProp,ye=S==="multiple"||S==="tags",Be=X!==void 0?X:ye||S==="combobox",Ue=ee||a(ae);if(Object(c.a)(S!=="tags"||Ue.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),S==="tags"||S==="combobox"){var ke=Ue.some(function(me){return me.options?me.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(S!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(S==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(c.a)(S==="combobox"||!y,"`getInputElement` only work with `combobox` mode."),Object(c.b)(S!=="combobox"||!y||!oe||!te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Be&&S!=="combobox"&&S!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var Ye=Object(d.d)(De);Object(c.a)(!se||Ye.every(function(me){return Object(i.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ye||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Ae=null;Object(v.a)(ae).some(function(me){if(!j.isValidElement(me)||!me.type)return!1;var be=me.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!j.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=be,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=N,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:t.d,getLabeledValue:t.e,filterOptions:t.b,isValueDisabled:t.g,findValueOption:t.c,warningProps:f,fillOptionsWithMissingValue:t.a}),k=function(Z){Object(Q.a)(ee,Z);var S=Object(J.a)(ee);function ee(){var ae;return Object(E.a)(this,ee),ae=S.apply(this,arguments),ae.selectRef=j.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(C.a)(ee,[{key:"render",value:function(){return j.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);k.Option=O,k.OptGroup=B;var F=k,ce=w.c=F},NvD2:function(je,w,n){"use strict";n.d(w,"a",function(){return o});var E=n("Kwbf");function C(ne,L){var u=new Set;return ne.forEach(function(V){L.has(V)||u.add(V)}),u}function Q(ne){var L=ne||{},u=L.disabled,V=L.disableCheckbox,A=L.checkable;return!!(u||V)||A===!1}function J(ne,L,u,V){for(var A=new Set(ne),Y=new Set,H=0;H<=u;H+=1){var D=L.get(H)||new Set;D.forEach(function(p){var g=p.key,O=p.node,h=p.children,B=h===void 0?[]:h;A.has(g)&&!V(O)&&B.filter(function(m){return!V(m.node)}).forEach(function(m){A.add(m.key)})})}for(var r=new Set,s=u;s>=0;s-=1){var x=L.get(s)||new Set;x.forEach(function(p){var g=p.parent,O=p.node;if(V(O)||!p.parent||r.has(p.parent.key))return;if(V(p.parent.node)){r.add(g.key);return}var h=!0,B=!1;(g.children||[]).filter(function(m){return!V(m.node)}).forEach(function(m){var v=m.key,b=A.has(v);h&&!b&&(h=!1),!B&&(b||Y.has(v))&&(B=!0)}),h&&A.add(g.key),B&&Y.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(C(Y,A))}}function j(ne,L,u,V,A){for(var Y=new Set(ne),H=new Set(L),D=0;D<=V;D+=1){var r=u.get(D)||new Set;r.forEach(function(g){var O=g.key,h=g.node,B=g.children,m=B===void 0?[]:B;!Y.has(O)&&!H.has(O)&&!A(h)&&m.filter(function(v){return!A(v.node)}).forEach(function(v){Y.delete(v.key)})})}H=new Set;for(var s=new Set,x=V;x>=0;x-=1){var p=u.get(x)||new Set;p.forEach(function(g){var O=g.parent,h=g.node;if(A(h)||!g.parent||s.has(g.parent.key))return;if(A(g.parent.node)){s.add(O.key);return}var B=!0,m=!1;(O.children||[]).filter(function(v){return!A(v.node)}).forEach(function(v){var b=v.key,a=Y.has(b);B&&!a&&(B=!1),!m&&(a||H.has(b))&&(m=!0)}),B||Y.delete(O.key),m&&H.add(O.key),s.add(O.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(C(H,Y))}}function o(ne,L,u,V){var A=[],Y;V?Y=V:Y=Q;var H=new Set(ne.filter(function(x){var p=!!u[x];return p||A.push(x),p})),D=new Map,r=0;Object.keys(u).forEach(function(x){var p=u[x],g=p.level,O=D.get(g);O||(O=new Set,D.set(g,O)),O.add(p),r=Math.max(r,g)}),Object(E.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return L===!0?s=J(H,D,r,Y):s=j(H,L.halfCheckedKeys,D,r,Y),s}},OZM5:function(je,w,n){"use strict";n.d(w,"b",function(){return V}),n.d(w,"a",function(){return A}),n.d(w,"k",function(){return Y}),n.d(w,"h",function(){return H}),n.d(w,"i",function(){return D}),n.d(w,"g",function(){return r}),n.d(w,"c",function(){return s}),n.d(w,"d",function(){return x}),n.d(w,"j",function(){return O}),n.d(w,"e",function(){return h}),n.d(w,"f",function(){return B});var E=n("KQm4"),C=n("U8pU"),Q=n("Ff2n"),J=n("q1tI"),j=n.n(J),o=n("Kwbf"),ne=n("WaYH"),L=.25,u=2;function V(m,v){var b=m.slice(),a=b.indexOf(v);return a>=0&&b.splice(a,1),b}function A(m,v){var b=m.slice();return b.indexOf(v)===-1&&b.push(v),b}function Y(m){return m.split("-")}function H(m,v){return"".concat(m,"-").concat(v)}function D(m){return m&&m.type&&m.type.isTreeNode}function r(m,v){var b=[m],a=v[m];function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,d=i.children;b.push(c),t(d)})}return t(a.children),b}function s(m,v){var b=m.clientY,a=v.selectHandle.getBoundingClientRect(),t=a.top,e=a.bottom,i=a.height,c=Math.max(i*L,u);return b<=t+c?-1:b>=e-c?1:0}function x(m,v){if(!m)return;var b=v.multiple;return b?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function g(m,v){if(!m)return[];var b=v||{},a=b.processProps,t=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(i){var c=i.children,d=Object(Q.a)(i,["children"]),N=g(c,v);return j.a.createElement(ne.a,Object.assign({},t(d)),N)})}function O(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(C.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var b=new Set;function a(t){if(b.has(t))return;var e=v[t];if(!e)return;b.add(t);var i=e.parent,c=e.node;if(c.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(t){a(t)}),Object(E.a)(b)}function B(m){var v={};return Object.keys(m).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=m[b])}),v}},"SA+Z":function(je,w,n){var E=n("wTVA"),C=n("EbDI"),Q=n("ZhPi"),J=n("wkBT");function j(o){return E(o)||C(o)||Q(o)||J()}je.exports=j,je.exports.__esModule=!0,je.exports.default=je.exports},WaYH:function(je,w,n){"use strict";var E=n("rePB"),C=n("Ff2n"),Q=n("VTBJ"),J=n("1OyB"),j=n("vuIU"),o=n("JX7q"),ne=n("Ji7U"),L=n("LK+K"),u=n("q1tI"),V=n("TSYQ"),A=n.n(V),Y=n("sboe"),H=n("OZM5"),D=function(v){var b=v.prefixCls,a=v.level,t=v.isStart,e=v.isEnd;if(!a)return null;for(var i="".concat(b,"-indent-unit"),c=[],d=0;d"},r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index/".concat(e,"/enroll")},"\u62A5\u540D")),r.a.createElement(J.a.Item,null,"\u6218\u961F\u8BE6\u60C5")),r.a.createElement("p",null,"\u5B9E\u8DF5\u9879\u76EE"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:le,dataSource:N,bordered:!0,pagination:!1}),r.a.createElement("p",null,"\u6559\u5B66\u8BFE\u5802"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:oe,dataSource:F,bordered:!0,pagination:!1}))};w.default=Object(p.a)(function(O){var h=O.loading,B=O.globalSetting,m=O.user;return{globalSetting:B,loading:h.effects,user:m}})(g)},n6Qo:function(je,w,n){"use strict";n.d(w,"a",function(){return L});var E=n("q1tI"),C=n("biw7"),Q=n("fyJ8");function J(u){var V=u.className,A=u.index,Y=u.children,H=u.colSpan,D=u.rowSpan,r=E.useContext(C.a),s=r.prefixCls,x=r.fixedInfoList,p=x[A];return E.createElement(Q.a,Object.assign({className:V,index:A,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:H,rowSpan:D}}}},p))}function j(u){return E.createElement("tr",Object.assign({},u))}function o(u){var V=u.children,A=E.useContext(C.a),Y=A.prefixCls;return E.createElement("tfoot",{className:"".concat(Y,"-summary")},V)}var ne=w.b=o,L={Cell:J,Row:j}},sR1s:function(je,w,n){"use strict";n.d(w,"b",function(){return J}),n.d(w,"a",function(){return j}),n.d(w,"c",function(){return o}),n.d(w,"d",function(){return ne});var E=n("U8pU"),C="RC_TABLE_KEY";function Q(L){return L==null?[]:Array.isArray(L)?L:[L]}function J(L,u){if(!u&&typeof u!="number")return L;for(var V=Q(u),A=L,Y=0;Y1)Object(V.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(V.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=O[0];if(o.isValidElement(h)&&Object(A.c)(h)){var B=h.ref;O[0]=o.cloneElement(h,{ref:Object(A.a)(B,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(H,"-").concat(v)})})}}]),x}(o.Component);D.displayName="ResizeObserver",w.a=D},wCXF:function(je,w,n){"use strict";n.d(w,"a",function(){return tt});var E=n("rePB"),C=n("VTBJ"),Q=n("KQm4"),J=n("U8pU"),j=n("ODXe"),o=n("q1tI"),ne=n("TSYQ"),L=n.n(ne),u=n("Gytx"),V=n.n(u),A=n("Kwbf"),Y=n("t23M"),H=n("qx4F"),D=n("6eGT"),r=n("IBYe"),s=n("Ff2n"),x=n("c+Xe"),p=n("fyJ8"),g=n("biw7");function O(l,R,P,I,z){var U=P[l]||{},_=P[R]||{},T,M;U.fixed==="left"?T=I.left[l]:_.fixed==="right"&&(M=I.right[R]);var G=!1,W=!1,$=!1,re=!1,q=P[R+1],ue=P[l-1];if(z==="rtl"){if(T!==void 0){var Re=ue&&ue.fixed==="left";re=!Re}else if(M!==void 0){var Ce=q&&q.fixed==="right";$=!Ce}}else if(T!==void 0){var xe=q&&q.fixed==="left";G=!xe}else if(M!==void 0){var ie=ue&&ue.fixed==="right";W=!ie}return{fixLeft:T,fixRight:M,lastFixLeft:G,firstFixRight:W,lastFixRight:$,firstFixLeft:re,isSticky:I.isSticky}}var h=n("sR1s");function B(l){var R=l.cells,P=l.stickyOffsets,I=l.flattenColumns,z=l.rowComponent,U=l.cellComponent,_=l.onHeaderRow,T=l.index,M=o.useContext(g.a),G=M.prefixCls,W=M.direction,$;_&&($=_(R.map(function(q){return q.column}),T));var re=Object(h.a)(R.map(function(q){return q.column}));return o.createElement(z,Object.assign({},$),R.map(function(q,ue){var Re=q.column,Ce=O(q.colStart,q.colEnd,I,P,W),xe;return Re&&Re.onHeaderCell&&(xe=q.column.onHeaderCell(Re)),o.createElement(p.a,Object.assign({},q,{ellipsis:Re.ellipsis,align:Re.align,component:U,prefixCls:G,key:re[ue]},Ce,{additionalProps:xe,rowType:"header"}))}))}B.displayName="HeaderRow";var m=B;function v(l){var R=[];function P(_,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var G=T,W=_.filter(Boolean).map(function($){var re={key:$.key,className:$.className||"",children:$.title,column:$,colStart:G},q=1,ue=$.children;return ue&&ue.length>0&&(q=P(ue,G,M+1).reduce(function(Re,Ce){return Re+Ce},0),re.hasSubColumns=!0),"colSpan"in $&&(q=$.colSpan),"rowSpan"in $&&(re.rowSpan=$.rowSpan),re.colSpan=q,re.colEnd=re.colStart+q-1,R[M].push(re),G+=q,q});return W}P(l,0);for(var I=R.length,z=function(T){R[T].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=I-T)})},U=0;U=0;T-=1){var M=R[T],G=P&&P[T],W=G&&G[t.a];(M||W||_)&&(z.unshift(o.createElement("col",Object.assign({key:T,style:{width:M,minWidth:M}},W))),_=!0)}return o.createElement("colgroup",null,z)}var i=e;function c(l,R){return Object(o.useMemo)(function(){for(var P=[],I=0;I1?Fe-1:0),dt=1;dt=$&&(Ne=$-re),_({scrollLeft:Ne/$*(W+2)}),ie.current.x=fe.pageX},We=function(){var fe=Object(Ye.b)(U.current).top,we=fe+U.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=He||fe>=He-T?xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},_e=function(fe){xe(function(we){return Object(C.a)(Object(C.a)({},we),{},{scrollLeft:fe/W*$||0})})};return o.useImperativeHandle(P,function(){return{setScrollLeft:_e}}),o.useEffect(function(){var Pe=Object(ke.a)(document.body,"mouseup",$e,!1),fe=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Pe.remove(),fe.remove()}},[re,Te]),o.useEffect(function(){var Pe=Object(ke.a)(window,"scroll",We,!1),fe=Object(ke.a)(window,"resize",We,!1);return function(){Pe.remove(),fe.remove()}},[]),o.useEffect(function(){Ce.isHiddenScrollBar||xe(function(Pe){var fe,we;return Object(C.a)(Object(C.a)({},Pe),{},{scrollLeft:U.current.scrollLeft/((fe=U.current)===null||fe===void 0?void 0:fe.scrollWidth)*((we=U.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ce.isHiddenScrollBar]),W<=$||!re||Ce.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:$,bottom:T},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:Oe,ref:q,className:L()("".concat(G,"-sticky-scroll-bar"),Object(E.a)({},"".concat(G,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(Ce.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function be(l,R){return o.useMemo(function(){var P=!!l;return{isSticky:P,stickyClassName:P?"".concat(R,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var R=l.children;return R},function(l,R){return V()(l.props,R.props)?l.pingLeft!==R.pingLeft||l.pingRight!==R.pingRight:!1});function Ve(l){var R,P=l.prefixCls,I=l.className,z=l.rowClassName,U=l.style,_=l.data,T=l.rowKey,M=l.scroll,G=l.tableLayout,W=l.direction,$=l.title,re=l.footer,q=l.summary,ue=l.id,Re=l.showHeader,Ce=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,Se=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Oe=_||Qe,Ge=!!Oe.length,We=o.useState(0),_e=Object(j.a)(We,2),Pe=_e[0],fe=_e[1];o.useEffect(function(){fe(Object(H.a)())});var we=o.useMemo(function(){return Object(h.c)(Ce,{})},[Ce]),He=o.useCallback(function(Ee,ge){return Object(h.b)(we,Ee)||ge},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(Ee){var ge=Ee&&Ee[T];return ge}},[T]),Ne=Object(t.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Tt=Ne.indentSize,ht=jt||Be,gt=Kt||"children",Dt=o.useMemo(function(){return it?"row":l.expandable&&Se===tt&&l.expandable.__PARENT_RENDER_ICON__||Oe.some(function(Ee){return Ee&&Object(J.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,Oe]),St=o.useState(function(){return Pt||(rt?Ue(Oe,Je,gt):[])}),ze=Object(j.a)(St,2),Ze=ze[0],at=ze[1],Fe=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(Ee){var ge=Je(Ee,Oe.indexOf(Ee)),Ke,qe=Fe.has(ge);qe?(Fe.delete(ge),Ke=Object(Q.a)(Fe)):Ke=[].concat(Object(Q.a)(Fe),[ge]),at(Ke),ft&&ft(!qe,Ee),mt&&mt(Ke)},[Je,Fe,Oe,ft,mt]),dt=o.useState(0),_t=Object(j.a)(dt,2),Ct=_t[0],Mt=_t[1],vn=Object(y.b)(Object(C.a)(Object(C.a)(Object(C.a)({},l),Ne),{},{expandable:!!it,expandedKeys:Fe,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:W}),Se===tt?Te:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Me=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(Me),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=De(on,Me.length,W),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&Me.some(function(Ee){var ge=Ee.fixed;return ge}),rn=o.useRef(),wt=be($e,P),Ot=wt.isSticky,Rn=wt.offsetHeader,Pn=wt.offsetScroll,Nn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:M.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,ge){xn(function(Ke){var qe=new Map(Ke);return qe.set(Ee,ge),qe})},[]),Tn=he(null),sn=Object(j.a)(Tn,2),Dn=sn[0],cn=sn[1];function Ht(Ee,ge){if(!ge)return;typeof ge=="function"?ge(Ee):ge.scrollLeft!==Ee&&(ge.scrollLeft=Ee)}var vt=function(ge){var Ke=ge.currentTarget,qe=ge.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Dn(hn),Ht(xt,Qt.current),Ht(xt,ut.current),Ht(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(s),Object(C.a)(A(O).map(function(h){return Object(Q.a)({fixed:g},h)}))):[].concat(Object(C.a)(s),[Object(Q.a)(Object(Q.a)({},x),{},{fixed:g})])},[])}function Y(r){for(var s=!0,x=0;x=0;O-=1){var h=r[O];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(ne.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function H(r){return r.map(function(s){var x=s.fixed,p=Object(J.a)(s,["fixed"]),g=x;return x==="left"?g="right":x==="right"&&(g="left"),Object(Q.a)({fixed:g},p)})}function D(r,s){var x=r.prefixCls,p=r.columns,g=r.children,O=r.expandable,h=r.expandedKeys,B=r.getRowKey,m=r.onTriggerExpand,v=r.expandIcon,b=r.rowExpandable,a=r.expandIconColumnIndex,t=r.direction,e=r.expandRowByClick,i=j.useMemo(function(){return p||V(g)},[p,g]),c=j.useMemo(function(){if(O){var f,K=a||0,k=i[K],F=(f={},Object(E.a)(f,u.a,{className:"".concat(x,"-expand-icon-col")}),Object(E.a)(f,"title",""),Object(E.a)(f,"fixed",k?k.fixed:null),Object(E.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(E.a)(f,"render",function(S,ee,ae){var le=B(ee,ae),oe=h.has(le),te=b?b(ee):!0,y=v({prefixCls:x,expanded:oe,expandable:te,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},y):y}),f),ce=i.slice();return K>=0&&ce.splice(K,0,F),ce}return i},[O,i,B,h,v,t]),d=j.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,t]),N=j.useMemo(function(){return t==="rtl"?H(A(d)):A(d)},[d,t]);return[d,N]}w.b=D},"y0+3":function(je,w,n){"use strict";n.d(w,"a",function(){return A}),n.d(w,"b",function(){return H});var E=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function J(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function j(D,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return D.offsetHeight;if(r==="width")return D.offsetWidth}return r in C||(C[r]=E.test(r)),C[r]?parseFloat(s)||0:s}function o(D,r){var s=arguments.length,x=J(D);return r=Q[r]?"cssFloat"in D.style?"cssFloat":"styleFloat":r,s===1?x:j(D,r,x[r]||D.style[r])}function ne(D,r,s){var x=arguments.length;if(r=Q[r]?"cssFloat"in D.style?"cssFloat":"styleFloat":r,x===3)return typeof s=="number"&&E.test(r)&&(s="".concat(s,"px")),D.style[r]=s,s;for(var p in r)r.hasOwnProperty(p)&&ne(D,p,r[p]);return J(D)}function L(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function u(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function V(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:r}}function A(){var D=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:r}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(D){var r=D.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Evaluate__Detail.86437899.async.js b/p__Engineering__Evaluate__Detail.86437899.async.js index 645ce22bf8..2a56070d5f 100644 --- a/p__Engineering__Evaluate__Detail.86437899.async.js +++ b/p__Engineering__Evaluate__Detail.86437899.async.js @@ -1,10 +1,10 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[127,3,8],{"06Qe":function(J,I,l){var P=l("ItGF"),p="urn:schemas-microsoft-com:vml",E=typeof window=="undefined"?null:window,x=!1,g=E&&E.document;function i(a){return o(a)}var o;if(g&&!P.canvasSupported)try{!g.namespaces.zrvml&&g.namespaces.add("zrvml",p),o=function(a){return g.createElement("')}}catch(a){o=function(u){return g.createElement("<"+u+' xmlns="'+p+'" class="zrvml">')}}function t(){if(x||!g)return;x=!0;var a=g.styleSheets;a.length<31?g.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}I.doc=g,I.createNode=i,I.initVML=t},"0s+r":function(J,I,l){var P=l("bYtY"),p=l("QBsz"),E=l("y23F"),x=l("H6uX"),g=l("YH21"),i=l("C0SR"),o="silent";function t(O,D,R){return{type:O,event:R,target:D.target,topTarget:D.topTarget,cancelBubble:!1,offsetX:R.zrX,offsetY:R.zrY,gestureEvent:R.gestureEvent,pinchX:R.pinchX,pinchY:R.pinchY,pinchScale:R.pinchScale,wheelDelta:R.zrDelta,zrByTouch:R.zrByTouch,which:R.which,stop:a}}function a(){g.stop(this.event)}function u(){}u.prototype.dispose=function(){};var n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(O,D,R,C){x.call(this),this.storage=O,this.painter=D,this.painterRoot=C,R=R||new u,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,E.call(this),this.setHandlerProxy(R)};d.prototype={constructor:d,setHandlerProxy:function(O){this.proxy&&this.proxy.dispose(),O&&(P.each(n,function(D){O.on&&O.on(D,this[D],this)},this),O.handler=this),this.proxy=O},mousemove:function(O){var D=O.zrX,R=O.zrY,C=y(this,D,R),j=this._hovered,c=j.target;c&&!c.__zr&&(j=this.findHover(j.x,j.y),c=j.target);var _=this._hovered=C?{x:D,y:R}:this.findHover(D,R),M=_.target,k=this.proxy;k.setCursor&&k.setCursor(M?M.cursor:"default"),c&&M!==c&&this.dispatchToElement(j,"mouseout",O),this.dispatchToElement(_,"mousemove",O),M&&M!==c&&this.dispatchToElement(_,"mouseover",O)},mouseout:function(O){var D=O.zrEventControl,R=O.zrIsToLocalDOM;D!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",O),D!=="no_globalout"&&(!R&&this.trigger("globalout",{type:"globalout",event:O}))},resize:function(O){this._hovered={}},dispatch:function(O,D){var R=this[O];R&&R.call(this,D)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(O){var D=this.proxy;D.setCursor&&D.setCursor(O)},dispatchToElement:function(O,D,R){O=O||{};var C=O.target;if(C&&C.silent)return;for(var j="on"+D,c=t(D,O,R);C&&!(C[j]&&(c.cancelBubble=C[j].call(C,c)),C.trigger(D,c),C=C.parent,c.cancelBubble););c.cancelBubble||(this.trigger(D,c),this.painter&&this.painter.eachOtherLayer(function(_){typeof _[j]=="function"&&_[j].call(_,c),_.trigger&&_.trigger(D,c)}))},findHover:function(O,D,R){for(var C=this.storage.getDisplayList(),j={x:O,y:D},c=C.length-1;c>=0;c--){var _;if(C[c]!==R&&!C[c].ignore&&(_=f(C[c],O,D))&&(!j.topTarget&&(j.topTarget=C[c]),_!==o)){j.target=C[c];break}}return j},processGesture:function(O,D){this._gestureMgr||(this._gestureMgr=new i);var R=this._gestureMgr;D==="start"&&R.clear();var C=R.recognize(O,this.findHover(O.zrX,O.zrY,null).target,this.proxy.dom);if(D==="end"&&R.clear(),C){var j=C.type;O.gestureEvent=j,this.dispatchToElement({target:C.target},j,C.event)}}},P.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(O){d.prototype[O]=function(D){var R=D.zrX,C=D.zrY,j=y(this,R,C),c,_;if((O!=="mouseup"||!j)&&(c=this.findHover(R,C),_=c.target),O==="mousedown")this._downEl=_,this._downPoint=[D.zrX,D.zrY],this._upEl=_;else if(O==="mouseup")this._upEl=_;else if(O==="click"){if(this._downEl!==this._upEl||!this._downPoint||p.dist(this._downPoint,[D.zrX,D.zrY])>4)return;this._downPoint=null}this.dispatchToElement(c,O,D)}});function f(O,D,R){if(O[O.rectHover?"rectContain":"contain"](D,R)){for(var C=O,j;C;){if(C.clipPath&&!C.clipPath.contain(D,R))return!1;C.silent&&(j=!0),C=C.parent}return j?o:!0}return!1}function y(O,D,R){var C=O.painter;return D<0||D>C.getWidth()||R<0||R>C.getHeight()}P.mixin(d,x),P.mixin(d,E);var m=d;J.exports=m},"1Jh7":function(J,I,l){var P=l("y+Vt"),p=l("T6xi"),E=P.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(x,g){p.buildPath(x,g,!1)}});J.exports=E},"1MYJ":function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var E=this.__dirtyPath,x=this.shape.paths,g=0;g=this._maxSize&&n>0){var f=t.head;t.remove(f),delete a[f.key],u=f.value,this._lastRemovedEntry=f}d?d.value=o:d=new p(o),d.key=i,t.insertEntry(d),a[i]=d}return u},x.get=function(i){var o=this._map[i],t=this._list;if(o!=null)return o!==t.tail&&(t.remove(o),t.insertEntry(o)),o.value},x.clear=function(){this._list.clear(),this._map={}};var g=E;J.exports=g},"1bdT":function(J,I,l){var P=l("3gBT"),p=l("H6uX"),E=l("DN4a"),x=l("vWvF"),g=l("bYtY"),i=function(t){E.call(this,t),p.call(this,t),x.call(this,t),this.id=t.id||P()};i.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,a){switch(this.draggable){case"horizontal":a=0;break;case"vertical":t=0;break}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=t,u[5]+=a,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,a){},attrKV:function(t,a){if(t==="position"||t==="scale"||t==="origin"){if(a){var u=this[t];u||(u=this[t]=[]),u[0]=a[0],u[1]=a[1]}}else this[t]=a},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,a){if(typeof t=="string")this.attrKV(t,a);else if(g.isObject(t))for(var u in t)t.hasOwnProperty(u)&&this.attrKV(u,t[u]);return this.dirty(!1),this},setClipPath:function(t){var a=this.__zr;a&&t.addSelfToZr(a),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=a,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var a=this.animators;if(a)for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,ee=ue&&typeof ue.getBoundingClientRect=="function"&&ue.getBoundingClientRect().width;if(ee){if(ge){var U=getComputedStyle(ue),V=U.marginLeft,se=U.marginRight;ee+=+V.replace("px","")+ +se.replace("px","")}ee=+ee.toFixed(6)}return ee||0},$=function(ue,ge,ee){ue&&Object(R.a)(ue.style)==="object"&&(ue.style[ge]=ee)},q=function(){return Y.any},le=l("KQm4"),ie=l("Ff2n"),Ae=l("i8i4"),we=l("bdgK"),_e=l("uciX"),G=l("8XRh"),Z={adjustX:1,adjustY:1},fe={topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Z,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Z,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Z,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Z,offset:[4,0]}},Se=fe,ze=0,te={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},oe=function(ue,ge,ee){var U=b(ge),V=ue.getState();ue.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},V.defaultActiveFirst),{},Object(n.a)({},U,ee))})},de=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(ee){var U;Object(p.a)(this,ge),U=ue.call(this,ee),U.onDestroy=function(ne){U.props.onDestroy(ne)},U.onKeyDown=function(ne){var he=ne.keyCode,Ne=U.menuInstance,Ge=U.props,Ue=Ge.isOpen,Ze=Ge.store;if(he===d.a.ENTER)return U.onTitleClick(ne),oe(Ze,U.props.eventKey,!0),!0;if(he===d.a.RIGHT)return Ue?Ne.onKeyDown(ne):(U.triggerOpenChange(!0),oe(Ze,U.props.eventKey,!0)),!0;if(he===d.a.LEFT){var qe;if(Ue)qe=Ne.onKeyDown(ne);else return;return qe||(U.triggerOpenChange(!1),qe=!0),qe}return Ue&&(he===d.a.UP||he===d.a.DOWN)?Ne.onKeyDown(ne):void 0},U.onOpenChange=function(ne){U.props.onOpenChange(ne)},U.onPopupVisibleChange=function(ne){U.triggerOpenChange(ne,ne?"mouseenter":"mouseleave")},U.onMouseEnter=function(ne){var he=U.props,Ne=he.eventKey,Ge=he.onMouseEnter,Ue=he.store;oe(Ue,U.props.eventKey,!1),Ge({key:Ne,domEvent:ne})},U.onMouseLeave=function(ne){var he=U.props,Ne=he.parentMenu,Ge=he.eventKey,Ue=he.onMouseLeave;Ne.subMenuInstance=Object(x.a)(U),Ue({key:Ge,domEvent:ne})},U.onTitleMouseEnter=function(ne){var he=U.props,Ne=he.eventKey,Ge=he.onItemHover,Ue=he.onTitleMouseEnter;Ge({key:Ne,hover:!0}),Ue({key:Ne,domEvent:ne})},U.onTitleMouseLeave=function(ne){var he=U.props,Ne=he.parentMenu,Ge=he.eventKey,Ue=he.onItemHover,Ze=he.onTitleMouseLeave;Ne.subMenuInstance=Object(x.a)(U),Ue({key:Ge,hover:!1}),Ze({key:Ge,domEvent:ne})},U.onTitleClick=function(ne){var he=Object(x.a)(U),Ne=he.props;if(Ne.onTitleClick({key:Ne.eventKey,domEvent:ne}),Ne.triggerSubMenuAction==="hover")return;U.triggerOpenChange(!Ne.isOpen,"click"),oe(Ne.store,U.props.eventKey,!1)},U.onSubMenuClick=function(ne){typeof U.props.onClick=="function"&&U.props.onClick(U.addKeyPath(ne))},U.onSelect=function(ne){U.props.onSelect(ne)},U.onDeselect=function(ne){U.props.onDeselect(ne)},U.getPrefixCls=function(){return"".concat(U.props.rootPrefixCls,"-submenu")},U.getActiveClassName=function(){return"".concat(U.getPrefixCls(),"-active")},U.getDisabledClassName=function(){return"".concat(U.getPrefixCls(),"-disabled")},U.getSelectedClassName=function(){return"".concat(U.getPrefixCls(),"-selected")},U.getOpenClassName=function(){return"".concat(U.props.rootPrefixCls,"-submenu-open")},U.saveMenuInstance=function(ne){U.menuInstance=ne},U.addKeyPath=function(ne){return Object(P.a)(Object(P.a)({},ne),{},{keyPath:(ne.keyPath||[]).concat(U.props.eventKey)})},U.triggerOpenChange=function(ne,he){var Ne=U.props.eventKey,Ge=function(){U.onOpenChange({key:Ne,item:Object(x.a)(U),trigger:he,open:ne})};he==="mouseenter"?U.mouseenterTimeout=setTimeout(function(){Ge()},0):Ge()},U.isChildrenSelected=function(){var ne={find:!1};return F(U.props.children,U.props.selectedKeys,ne),ne.find},U.isOpen=function(){return U.props.openKeys.indexOf(U.props.eventKey)!==-1},U.adjustWidth=function(){if(!U.subMenuTitle||!U.menuInstance)return;var ne=Ae.findDOMNode(U.menuInstance);if(ne.offsetWidth>=U.subMenuTitle.offsetWidth)return;ne.style.minWidth="".concat(U.subMenuTitle.offsetWidth,"px")},U.saveSubMenuTitle=function(ne){U.subMenuTitle=ne},U.getBaseProps=function(){var ne=Object(x.a)(U),he=ne.props;return{mode:he.mode==="horizontal"?"vertical":he.mode,visible:U.props.isOpen,level:he.level+1,inlineIndent:he.inlineIndent,focusable:!1,onClick:U.onSubMenuClick,onSelect:U.onSelect,onDeselect:U.onDeselect,onDestroy:U.onDestroy,selectedKeys:he.selectedKeys,eventKey:"".concat(he.eventKey,"-menu-"),openKeys:he.openKeys,motion:he.motion,onOpenChange:U.onOpenChange,subMenuOpenDelay:he.subMenuOpenDelay,parentMenu:Object(x.a)(U),subMenuCloseDelay:he.subMenuCloseDelay,forceSubMenuRender:he.forceSubMenuRender,triggerSubMenuAction:he.triggerSubMenuAction,builtinPlacements:he.builtinPlacements,defaultActiveFirst:he.store.getState().defaultActiveFirst[b(he.eventKey)],multiple:he.multiple,prefixCls:he.rootPrefixCls,id:U.internalMenuId,manualRef:U.saveMenuInstance,itemIcon:he.itemIcon,expandIcon:he.expandIcon,direction:he.direction}},U.getMotion=function(ne,he){var Ne=Object(x.a)(U),Ge=Ne.haveRendered,Ue=U.props,Ze=Ue.motion,qe=Ue.rootPrefixCls,ct=Object(P.a)(Object(P.a)({},Ze),{},{leavedClassName:"".concat(qe,"-hidden"),removeOnLeave:!1,motionAppear:Ge||!he||ne!=="inline"});return ct};var V=ee.store,se=ee.eventKey,ae=V.getState(),me=ae.defaultActiveFirst;U.isRootMenu=!1;var ve=!1;return me&&(ve=me[se]),oe(V,se,ve),U}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var U=this,V=this.props,se=V.mode,ae=V.parentMenu,me=V.manualRef;if(me&&me(this),se!=="horizontal"||!ae.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return U.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var U=this.props,V=U.onDestroy,se=U.eventKey;V&&V(se),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(U){var V=this,se=this.getBaseProps(),ae=this.getMotion(se.mode,se.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||se.visible||se.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var me=se.direction;return o.createElement(G.default,Object.assign({visible:se.visible},ae),function(ve){var ne=ve.className,he=ve.style,Ne=D()("".concat(se.prefixCls,"-sub"),ne,Object(n.a)({},"".concat(se.prefixCls,"-rtl"),me==="rtl"));return o.createElement(Oe,Object.assign({},se,{id:V.internalMenuId,className:Ne,style:he}),U)})}},{key:"render",value:function(){var U,V=Object(P.a)({},this.props),se=V.isOpen,ae=this.getPrefixCls(),me=V.mode==="inline",ve=D()(ae,"".concat(ae,"-").concat(V.mode),(U={},Object(n.a)(U,V.className,!!V.className),Object(n.a)(U,this.getOpenClassName(),se),Object(n.a)(U,this.getActiveClassName(),V.active||se&&!me),Object(n.a)(U,this.getDisabledClassName(),V.disabled),Object(n.a)(U,this.getSelectedClassName(),this.isChildrenSelected()),U));this.internalMenuId||(V.eventKey?this.internalMenuId="".concat(V.eventKey,"$Menu"):(ze+=1,this.internalMenuId="$__$".concat(ze,"$Menu")));var ne={},he={},Ne={};V.disabled||(ne={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},he={onClick:this.onTitleClick},Ne={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ge={},Ue=V.direction;me&&(Ue==="rtl"?Ge.paddingRight=V.inlineIndent*V.level:Ge.paddingLeft=V.inlineIndent*V.level);var Ze={};this.props.isOpen&&(Ze={"aria-owns":this.internalMenuId});var qe=null;V.mode!=="horizontal"&&(qe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qe=o.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var ct=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Ge,className:"".concat(ae,"-title"),role:"button"},Ne,he,{"aria-expanded":se},Ze,{"aria-haspopup":"true",title:typeof V.title=="string"?V.title:void 0}),V.title,qe||o.createElement("i",{className:"".concat(ae,"-arrow")})),at=this.renderChildren(V.children),nt=V.parentMenu.isRootMenu?V.parentMenu.props.getPopupContainer:function(yt){return yt.parentNode},st=te[V.mode],lt=V.popupOffset?{offset:V.popupOffset}:{},pt=V.mode==="inline"?"":V.popupClassName;pt+=Ue==="rtl"?" ".concat(ae,"-rtl"):"";var rt=V.disabled,ft=V.triggerSubMenuAction,bt=V.subMenuOpenDelay,St=V.forceSubMenuRender,Ot=V.subMenuCloseDelay,vt=V.builtinPlacements;X.forEach(function(yt){return delete V[yt]}),delete V.onClick;var wt=Ue==="rtl"?Object.assign({},pe,vt):Object.assign({},fe,vt);return delete V.direction,o.createElement("li",Object.assign({},V,ne,{className:ve,role:"menuitem"}),me&&ct,me&&at,!me&&o.createElement(_e.a,{prefixCls:ae,popupClassName:D()("".concat(ae,"-popup"),pt),getPopupContainer:nt,builtinPlacements:wt,popupPlacement:st,popupVisible:se,popupAlign:lt,popup:at,action:rt?[]:[ft],mouseEnterDelay:bt,mouseLeaveDelay:Ot,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:St},ct))}}]),ge}(o.Component);de.defaultProps={onMouseEnter:W,onMouseLeave:W,onTitleMouseEnter:W,onTitleMouseLeave:W,onTitleClick:W,manualRef:W,mode:"vertical",title:""};var Me=Object(t.b)(function(Le,ue){var ge=Le.openKeys,ee=Le.activeKey,U=Le.selectedKeys,V=ue.eventKey,se=ue.subMenuKey;return{isOpen:ge.indexOf(V)>-1,active:ee[se]===V,selectedKeys:U}})(de);Me.isSubMenu=!0;var Pe=Me,Ie="menuitem-overflowed",Be=.5,Ke=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(){var ee;return Object(p.a)(this,ge),ee=ue.apply(this,arguments),ee.resizeObserver=null,ee.mutationObserver=null,ee.originalTotalWidth=0,ee.overflowedItems=[],ee.menuItemSizes=[],ee.cancelFrameId=null,ee.state={lastVisibleIndex:void 0},ee.getMenuItemNodes=function(){var U=ee.props.prefixCls,V=Ae.findDOMNode(Object(x.a)(ee));return V?[].slice.call(V.children).filter(function(se){return se.className.split(" ").indexOf("".concat(U,"-overflowed-submenu"))<0}):[]},ee.getOverflowedSubMenuItem=function(U,V,se){var ae=ee.props,me=ae.overflowedIndicator,ve=ae.level,ne=ae.mode,he=ae.prefixCls,Ne=ae.theme;if(ve!==1||ne!=="horizontal")return null;var Ge=ee.props.children[0],Ue=Ge.props,Ze=Ue.children,qe=Ue.title,ct=Ue.style,at=Object(ie.a)(Ue,["children","title","style"]),nt=Object(P.a)({},ct),st="".concat(U,"-overflowed-indicator"),lt="".concat(U,"-overflowed-indicator");V.length===0&&se!==!0?nt=Object(P.a)(Object(P.a)({},nt),{},{display:"none"}):se&&(nt=Object(P.a)(Object(P.a)({},nt),{},{visibility:"hidden",position:"absolute"}),st="".concat(st,"-placeholder"),lt="".concat(lt,"-placeholder"));var pt=Ne?"".concat(he,"-").concat(Ne):"",rt={};return X.forEach(function(ft){at[ft]!==void 0&&(rt[ft]=at[ft])}),o.createElement(Pe,Object.assign({title:me,className:"".concat(he,"-overflowed-submenu"),popupClassName:pt},rt,{key:st,eventKey:lt,disabled:!1,style:nt}),V)},ee.setChildrenWidthAndResize=function(){if(ee.props.mode!=="horizontal")return;var U=Ae.findDOMNode(Object(x.a)(ee));if(!U)return;var V=U.children;if(!V||V.length===0)return;var se=U.children[V.length-1];$(se,"display","inline-block");var ae=ee.getMenuItemNodes(),me=ae.filter(function(ve){return ve.className.split(" ").indexOf(Ie)>=0});me.forEach(function(ve){$(ve,"display","inline-block")}),ee.menuItemSizes=ae.map(function(ve){return H(ve,!0)}),me.forEach(function(ve){$(ve,"display","none")}),ee.overflowedIndicatorWidth=H(U.children[U.children.length-1],!0),ee.originalTotalWidth=ee.menuItemSizes.reduce(function(ve,ne){return ve+ne},0),ee.handleResize(),$(se,"display","none")},ee.handleResize=function(){if(ee.props.mode!=="horizontal")return;var U=Ae.findDOMNode(Object(x.a)(ee));if(!U)return;var V=H(U);ee.overflowedItems=[];var se=0,ae;ee.originalTotalWidth>V+Be&&(ae=-1,ee.menuItemSizes.forEach(function(me){se+=me,se+ee.overflowedIndicatorWidth<=V&&(ae+=1)})),ee.setState({lastVisibleIndex:ae})},ee}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){var U=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var V=Ae.findDOMNode(this);if(!V)return;this.resizeObserver=new we.default(function(se){se.forEach(function(){var ae=U.cancelFrameId;cancelAnimationFrame(ae),U.cancelFrameId=requestAnimationFrame(U.setChildrenWidthAndResize)})}),[].slice.call(V.children).concat(V).forEach(function(se){U.resizeObserver.observe(se)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){U.resizeObserver.disconnect(),[].slice.call(V.children).concat(V).forEach(function(se){U.resizeObserver.observe(se)}),U.setChildrenWidthAndResize()}),this.mutationObserver.observe(V,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(U){var V=this,se=this.state.lastVisibleIndex;return(U||[]).reduce(function(ae,me,ve){var ne=me;if(V.props.mode==="horizontal"){var he=V.getOverflowedSubMenuItem(me.props.eventKey,[]);se!==void 0&&V.props.className.indexOf("".concat(V.props.prefixCls,"-root"))!==-1&&(ve>se&&(ne=o.cloneElement(me,{style:{display:"none"},eventKey:"".concat(me.props.eventKey,"-hidden"),className:"".concat(Ie)})),ve===se+1&&(V.overflowedItems=U.slice(se+1).map(function(Ge){return o.cloneElement(Ge,{key:Ge.props.eventKey,mode:"vertical-left"})}),he=V.getOverflowedSubMenuItem(me.props.eventKey,V.overflowedItems)));var Ne=[].concat(Object(le.a)(ae),[he,ne]);return ve===U.length-1&&Ne.push(V.getOverflowedSubMenuItem(me.props.eventKey,[],!0)),Ne}return[].concat(Object(le.a)(ae),[ne])},[])}},{key:"render",value:function(){var U=this.props,V=U.visible,se=U.prefixCls,ae=U.overflowedIndicator,me=U.mode,ve=U.level,ne=U.tag,he=U.children,Ne=U.theme,Ge=Object(ie.a)(U,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ue=ne;return o.createElement(Ue,Object.assign({},Ge),this.renderChildren(he))}}]),ge}(o.Component);Ke.defaultProps={tag:"div",className:""};var We=Ke;function $e(Le){return Le.length?Le.every(function(ue){return!!ue.props.disabled}):!0}function Q(Le,ue,ge){var ee=Le.getState();Le.setState({activeKey:Object(P.a)(Object(P.a)({},ee.activeKey),{},Object(n.a)({},ue,ge))})}function re(Le){return Le.eventKey||"0-menu-"}function ce(Le,ue){var ge=ue,ee=Le.children,U=Le.eventKey;if(ge){var V;if(z(ee,function(se,ae){se&&se.props&&!se.props.disabled&&ge===B(se,U,ae)&&(V=!0)}),V)return ge}return ge=null,Le.defaultActiveFirst&&z(ee,function(se,ae){!ge&&se&&!se.props.disabled&&(ge=B(se,U,ae))}),ge}function Ce(Le){if(Le){var ue=this.instanceArray.indexOf(Le);ue!==-1?this.instanceArray[ue]=Le:this.instanceArray.push(Le)}}var xe=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(ee){var U;return Object(p.a)(this,ge),U=ue.call(this,ee),U.onKeyDown=function(V,se){var ae=V.keyCode,me;if(U.getFlatInstanceArray().forEach(function(ne){ne&&ne.props.active&&ne.onKeyDown&&(me=ne.onKeyDown(V))}),me)return 1;var ve=null;return(ae===d.a.UP||ae===d.a.DOWN)&&(ve=U.step(ae===d.a.UP?-1:1)),ve?(V.preventDefault(),Q(U.props.store,re(U.props),ve.props.eventKey),typeof se=="function"&&se(ve),1):void 0},U.onItemHover=function(V){var se=V.key,ae=V.hover;Q(U.props.store,re(U.props),ae?se:null)},U.onDeselect=function(V){U.props.onDeselect(V)},U.onSelect=function(V){U.props.onSelect(V)},U.onClick=function(V){U.props.onClick(V)},U.onOpenChange=function(V){U.props.onOpenChange(V)},U.onDestroy=function(V){U.props.onDestroy(V)},U.getFlatInstanceArray=function(){return U.instanceArray},U.step=function(V){var se=U.getFlatInstanceArray(),ae=U.props.store.getState().activeKey[re(U.props)],me=se.length;if(!me)return null;V<0&&(se=se.concat().reverse());var ve=-1;if(se.every(function(Ge,Ue){return Ge&&Ge.props.eventKey===ae?(ve=Ue,!1):!0}),!U.props.defaultActiveFirst&&ve!==-1&&$e(se.slice(ve,me-1)))return;var ne=(ve+1)%me,he=ne;do{var Ne=se[he];if(!Ne||Ne.props.disabled)he=(he+1)%me;else return Ne}while(he!==ne);return null},U.renderCommonMenuItem=function(V,se,ae){var me=U.props.store.getState(),ve=Object(x.a)(U),ne=ve.props,he=B(V,ne.eventKey,se),Ne=V.props;if(!Ne||typeof V.type=="string")return V;var Ge=he===me.activeKey,Ue=Object(P.a)(Object(P.a)({mode:Ne.mode||ne.mode,level:ne.level,inlineIndent:ne.inlineIndent,renderMenuItem:U.renderMenuItem,rootPrefixCls:ne.prefixCls,index:se,parentMenu:ne.parentMenu,manualRef:Ne.disabled?void 0:Object(f.a)(V.ref,Ce.bind(Object(x.a)(U))),eventKey:he,active:!Ne.disabled&&Ge,multiple:ne.multiple,onClick:function(qe){(Ne.onClick||W)(qe),U.onClick(qe)},onItemHover:U.onItemHover,motion:ne.motion,subMenuOpenDelay:ne.subMenuOpenDelay,subMenuCloseDelay:ne.subMenuCloseDelay,forceSubMenuRender:ne.forceSubMenuRender,onOpenChange:U.onOpenChange,onDeselect:U.onDeselect,onSelect:U.onSelect,builtinPlacements:ne.builtinPlacements,itemIcon:Ne.itemIcon||U.props.itemIcon,expandIcon:Ne.expandIcon||U.props.expandIcon},ae),{},{direction:ne.direction});return(ne.mode==="inline"||q())&&(Ue.triggerSubMenuAction="click"),o.cloneElement(V,Ue)},U.renderMenuItem=function(V,se,ae){if(!V)return null;var me=U.props.store.getState(),ve={openKeys:me.openKeys,selectedKeys:me.selectedKeys,triggerSubMenuAction:U.props.triggerSubMenuAction,subMenuKey:ae};return U.renderCommonMenuItem(V,se,ve)},ee.store.setState({activeKey:Object(P.a)(Object(P.a)({},ee.store.getState().activeKey),{},Object(n.a)({},ee.eventKey,ce(ee,ee.activeKey)))}),U.instanceArray=[],U}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(U){return this.props.visible||U.visible||this.props.className!==U.className||!m()(this.props.style,U.style)}},{key:"componentDidUpdate",value:function(U){var V=this.props,se="activeKey"in V?V.activeKey:V.store.getState().activeKey[re(V)],ae=ce(V,se);if(ae!==se)Q(V.store,re(V),ae);else if("activeKey"in U){var me=ce(U,U.activeKey);ae!==me&&Q(V.store,re(V),ae)}}},{key:"render",value:function(){var U=this,V=Object(u.a)({},this.props);this.instanceArray=[];var se=D()(V.prefixCls,V.className,"".concat(V.prefixCls,"-").concat(V.mode)),ae={className:se,role:V.role||"menu"};V.id&&(ae.id=V.id),V.focusable&&(ae.tabIndex=0,ae.onKeyDown=this.onKeyDown);var me=V.prefixCls,ve=V.eventKey,ne=V.visible,he=V.level,Ne=V.mode,Ge=V.overflowedIndicator,Ue=V.theme;return X.forEach(function(Ze){return delete V[Ze]}),delete V.onClick,o.createElement(We,Object.assign({},V,{prefixCls:me,mode:Ne,tag:"ul",level:he,theme:Ue,visible:ne,overflowedIndicator:Ge},ae),o.Children.map(V.children,function(Ze,qe){return U.renderMenuItem(Ze,qe,ve||"0-menu-")}))}}]),ge}(o.Component);xe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:W};var Te=Object(t.b)()(xe),Oe=Te,be=l("Kwbf");function Ee(Le,ue,ge){var ee=Le.prefixCls,U=Le.motion,V=Le.defaultMotions,se=V===void 0?{}:V,ae=Le.openAnimation,me=Le.openTransitionName,ve=ue.switchingModeFromInline;if(U)return U;if(Object(R.a)(ae)==="object"&&ae)Object(be.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ae=="string")return{motionName:"".concat(ee,"-open-").concat(ae)};if(me)return{motionName:me};var ne=se[ge];return ne||(ve?null:se.other)}var Re=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(ee){var U;Object(p.a)(this,ge),U=ue.call(this,ee),U.inlineOpenKeys=[],U.onSelect=function(ae){var me=Object(x.a)(U),ve=me.props;if(ve.selectable){var ne=U.store.getState(),he=ne.selectedKeys,Ne=ae.key;ve.multiple?he=he.concat([Ne]):he=[Ne],"selectedKeys"in ve||U.store.setState({selectedKeys:he}),ve.onSelect(Object(P.a)(Object(P.a)({},ae),{},{selectedKeys:he}))}},U.onClick=function(ae){var me=U.getRealMenuMode(),ve=Object(x.a)(U),ne=ve.store,he=ve.props.onOpenChange;me!=="inline"&&!("openKeys"in U.props)&&(ne.setState({openKeys:[]}),he([])),U.props.onClick(ae)},U.onKeyDown=function(ae,me){U.innerMenu.getWrappedInstance().onKeyDown(ae,me)},U.onOpenChange=function(ae){var me=Object(x.a)(U),ve=me.props,ne=U.store.getState().openKeys.concat(),he=!1,Ne=function(Ue){var Ze=!1;if(Ue.open)Ze=ne.indexOf(Ue.key)===-1,Ze&&ne.push(Ue.key);else{var qe=ne.indexOf(Ue.key);Ze=qe!==-1,Ze&&ne.splice(qe,1)}he=he||Ze};Array.isArray(ae)?ae.forEach(Ne):Ne(ae),he&&("openKeys"in U.props||U.store.setState({openKeys:ne}),ve.onOpenChange(ne))},U.onDeselect=function(ae){var me=Object(x.a)(U),ve=me.props;if(ve.selectable){var ne=U.store.getState().selectedKeys.concat(),he=ae.key,Ne=ne.indexOf(he);Ne!==-1&&ne.splice(Ne,1),"selectedKeys"in ve||U.store.setState({selectedKeys:ne}),ve.onDeselect(Object(P.a)(Object(P.a)({},ae),{},{selectedKeys:ne}))}},U.onMouseEnter=function(ae){U.restoreModeVerticalFromInline();var me=U.props.onMouseEnter;me&&me(ae)},U.onTransitionEnd=function(ae){var me=ae.propertyName==="width"&&ae.target===ae.currentTarget,ve=ae.target.className,ne=Object.prototype.toString.call(ve)==="[object SVGAnimatedString]"?ve.animVal:ve,he=ae.propertyName==="font-size"&&ne.indexOf("anticon")>=0;(me||he)&&U.restoreModeVerticalFromInline()},U.setInnerMenu=function(ae){U.innerMenu=ae},U.isRootMenu=!0;var V=ee.defaultSelectedKeys,se=ee.defaultOpenKeys;return"selectedKeys"in ee&&(V=ee.selectedKeys||[]),"openKeys"in ee&&(se=ee.openKeys||[]),U.store=Object(t.c)({selectedKeys:V,openKeys:se,activeKey:{"0-menu-":ce(ee,ee.activeKey)}}),U.state={switchingModeFromInline:!1},U}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(U){this.updateOpentKeysWhenSwitchMode(U),this.updateMiniStore();var V=this.props,se=V.siderCollapsed,ae=V.inlineCollapsed,me=V.onOpenChange;(!U.inlineCollapsed&&ae||!U.siderCollapsed&&se)&&me([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(U){var V=this.props,se=this.store,ae=this.inlineOpenKeys,me=se.getState(),ve={};U.mode==="inline"&&V.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in V||((V.inlineCollapsed&&!U.inlineCollapsed||V.siderCollapsed&&!U.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=me.openKeys.concat(),ve.openKeys=[]),(!V.inlineCollapsed&&U.inlineCollapsed||!V.siderCollapsed&&U.siderCollapsed)&&(ve.openKeys=ae,this.inlineOpenKeys=[])),Object.keys(ve).length&&se.setState(ve)}},{key:"updateMenuDisplay",value:function(){var U=this.props.collapsedWidth,V=this.store,se=this.prevOpenKeys,ae=this.getInlineCollapsed()&&(U===0||U==="0"||U==="0px");ae?(this.prevOpenKeys=V.getState().openKeys.concat(),this.store.setState({openKeys:[]})):se&&(this.store.setState({openKeys:se}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var U=this.props.mode,V=this.state.switchingModeFromInline,se=this.getInlineCollapsed();return V&&se?"inline":se?"vertical":U}},{key:"getInlineCollapsed",value:function(){var U=this.props,V=U.inlineCollapsed,se=U.siderCollapsed;return se!==void 0?se:V}},{key:"restoreModeVerticalFromInline",value:function(){var U=this.state.switchingModeFromInline;U&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var U=Object(P.a)({},Object(a.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),V=this.getRealMenuMode();return U.className+=" ".concat(U.prefixCls,"-root"),U.direction==="rtl"&&(U.className+=" ".concat(U.prefixCls,"-rtl")),U=Object(P.a)(Object(P.a)({},U),{},{mode:V,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ee(this.props,this.state,V)}),delete U.openAnimation,delete U.openTransitionName,o.createElement(t.a,{store:this.store},o.createElement(Oe,Object.assign({},U,{ref:this.setInnerMenu}),this.props.children))}}]),ge}(o.Component);Re.defaultProps={selectable:!0,onClick:W,onSelect:W,onOpenChange:W,onDeselect:W,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var De=Re,ye=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(){var ee;return Object(p.a)(this,ge),ee=ue.apply(this,arguments),ee.onKeyDown=function(U){var V=U.keyCode;return V===d.a.ENTER?(ee.onClick(U),!0):void 0},ee.onMouseLeave=function(U){var V=ee.props,se=V.eventKey,ae=V.onItemHover,me=V.onMouseLeave;ae({key:se,hover:!1}),me({key:se,domEvent:U})},ee.onMouseEnter=function(U){var V=ee.props,se=V.eventKey,ae=V.onItemHover,me=V.onMouseEnter;ae({key:se,hover:!0}),me({key:se,domEvent:U})},ee.onClick=function(U){var V=ee.props,se=V.eventKey,ae=V.multiple,me=V.onClick,ve=V.onSelect,ne=V.onDeselect,he=V.isSelected,Ne={key:se,keyPath:[se],item:Object(x.a)(ee),domEvent:U};me(Ne),ae?he?ne(Ne):ve(Ne):he||ve(Ne)},ee.saveNode=function(U){ee.node=U},ee}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var U=this.props;U.onDestroy&&U.onDestroy(U.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var U,V=Object(P.a)({},this.props),se=D()(this.getPrefixCls(),V.className,(U={},Object(n.a)(U,this.getActiveClassName(),!V.disabled&&V.active),Object(n.a)(U,this.getSelectedClassName(),V.isSelected),Object(n.a)(U,this.getDisabledClassName(),V.disabled),U)),ae=Object(P.a)(Object(P.a)({},V.attribute),{},{title:typeof V.title=="string"?V.title:void 0,className:se,role:V.role||"menuitem","aria-disabled":V.disabled});V.role==="option"?ae=Object(P.a)(Object(P.a)({},ae),{},{role:"option","aria-selected":V.isSelected}):(V.role===null||V.role==="none")&&(ae.role="none");var me={onClick:V.disabled?null:this.onClick,onMouseLeave:V.disabled?null:this.onMouseLeave,onMouseEnter:V.disabled?null:this.onMouseEnter},ve=Object(P.a)({},V.style);V.mode==="inline"&&(V.direction==="rtl"?ve.paddingRight=V.inlineIndent*V.level:ve.paddingLeft=V.inlineIndent*V.level),X.forEach(function(he){return delete V[he]}),delete V.direction;var ne=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ne=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object.assign({},Object(a.default)(V,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ae,me,{style:ve,ref:this.saveNode}),V.children,ne)}}]),ge}(o.Component);ye.isMenuItem=!0,ye.defaultProps={onSelect:W,onMouseEnter:W,onMouseLeave:W,manualRef:W};var ke=Object(t.b)(function(Le,ue){var ge=Le.activeKey,ee=Le.selectedKeys,U=ue.eventKey,V=ue.subMenuKey;return{active:ge[V]===U,isSelected:ee.indexOf(U)!==-1}})(ye),je=ke,Fe=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(){var ee;return Object(p.a)(this,ge),ee=ue.apply(this,arguments),ee.renderInnerMenuItem=function(U){var V=ee.props,se=V.renderMenuItem,ae=V.index;return se(U,ae,ee.props.subMenuKey)},ee}return Object(E.a)(ge,[{key:"render",value:function(){var U=Object(u.a)({},this.props),V=U.className,se=V===void 0?"":V,ae=U.rootPrefixCls,me="".concat(ae,"-item-group-title"),ve="".concat(ae,"-item-group-list"),ne=U.title,he=U.children;return X.forEach(function(Ne){return delete U[Ne]}),delete U.onClick,delete U.direction,o.createElement("li",Object.assign({},U,{className:"".concat(se," ").concat(ae,"-item-group")}),o.createElement("div",{className:me,title:typeof ne=="string"?ne:void 0},ne),o.createElement("ul",{className:ve},o.Children.map(he,this.renderInnerMenuItem)))}}]),ge}(o.Component);Fe.isMenuItemGroup=!0,Fe.defaultProps={disabled:!0};var Ve=Fe,Xe=function(ue){var ge=ue.className,ee=ue.rootPrefixCls,U=ue.style;return o.createElement("li",{className:"".concat(ge," ").concat(ee,"-item-divider"),style:U})};Xe.defaultProps={disabled:!0,className:"",style:{}};var Ye=Xe,He=I.e=De},"24YM":function(J,I,l){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.SensorTabIndex=I.SensorClassName=I.SizeSensorId=void 0;var P="size-sensor-id";I.SizeSensorId=P;var p="size-sensor-object";I.SensorClassName=p;var E="-1";I.SensorTabIndex=E},"2DNl":function(J,I,l){var P=l("IMiH"),p=l("loD1"),E=l("59Ip"),x=l("aKvl"),g=l("n1HI"),i=l("hX1E"),o=i.normalizeRadian,t=l("Sj9i"),a=l("hyiK"),u=P.CMD,n=Math.PI*2,d=1e-4;function f(M,k){return Math.abs(M-k)k&&h>s&&h>r&&h>T||h1&&O(),K=t.cubicAt(k,s,r,T,m[0]),N>1&&(Y=t.cubicAt(k,s,r,T,m[1]))),N===2?Bk&&T>s&&T>r||T=0&&h<=1){for(var S=0,L=t.quadraticAt(k,s,r,h),N=0;Nv||T<-v)return 0;var w=Math.sqrt(v*v-T*T);y[0]=-w,y[1]=w;var h=Math.abs(s-e);if(h<1e-4)return 0;if(h%n<1e-4){s=0,e=n;var S=r?1:-1;return A>=y[0]+M&&A<=y[1]+M?S:0}if(r){var w=s;s=o(e),e=o(w)}else s=o(s),e=o(e);s>e&&(e+=n);for(var L=0,N=0;N<2;N++){var K=y[N];if(K+M>A){var Y=Math.atan2(T,K),S=r?1:-1;Y<0&&(Y=n+Y),(Y>=s&&Y<=e||Y+n>=s&&Y+n<=e)&&(Y>Math.PI/2&&Y1&&(v||(r+=a(A,T,w,h,s,e))),S===1&&(A=M[S],T=M[S+1],w=A,h=T);switch(L){case u.M:w=M[S++],h=M[S++],A=w,T=h;break;case u.L:if(v){if(p.containStroke(A,T,M[S],M[S+1],k,s,e))return!0}else r+=a(A,T,M[S],M[S+1],s,e)||0;A=M[S++],T=M[S++];break;case u.C:if(v){if(E.containStroke(A,T,M[S++],M[S++],M[S++],M[S++],M[S],M[S+1],k,s,e))return!0}else r+=D(A,T,M[S++],M[S++],M[S++],M[S++],M[S],M[S+1],s,e)||0;A=M[S++],T=M[S++];break;case u.Q:if(v){if(x.containStroke(A,T,M[S++],M[S++],M[S],M[S+1],k,s,e))return!0}else r+=R(A,T,M[S++],M[S++],M[S],M[S+1],s,e)||0;A=M[S++],T=M[S++];break;case u.A:var N=M[S++],K=M[S++],Y=M[S++],W=M[S++],B=M[S++],b=M[S++];S+=1;var z=1-M[S++],F=Math.cos(B)*Y+N,X=Math.sin(B)*W+K;S>1?r+=a(A,T,F,X,s,e):(w=F,h=X);var H=(s-N)*W/Y+N;if(v){if(g.containStroke(N,K,W,B,B+b,z,k,H,e))return!0}else r+=C(N,K,W,B,B+b,z,H,e);A=Math.cos(B+b)*Y+N,T=Math.sin(B+b)*W+K;break;case u.R:w=A=M[S++],h=T=M[S++];var $=M[S++],q=M[S++],F=w+$,X=h+q;if(v){if(p.containStroke(w,h,F,h,k,s,e)||p.containStroke(F,h,F,X,k,s,e)||p.containStroke(F,X,w,X,k,s,e)||p.containStroke(w,X,w,h,k,s,e))return!0}else r+=a(F,h,F,X,s,e),r+=a(w,X,w,h,s,e);break;case u.Z:if(v){if(p.containStroke(A,T,w,h,k,s,e))return!0}else r+=a(A,T,w,h,s,e);A=w,T=h;break}}return!v&&!f(T,h)&&(r+=a(A,T,w,h,s,e)||0),r!==0}function c(M,k,v){return j(M,0,!1,k,v)}function _(M,k,v,s){return j(M,k,!0,v,s)}I.contain=c,I.containStroke=_},"2fw6":function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(E,x,g){g&&E.moveTo(x.cx+x.r,x.cy),E.arc(x.cx,x.cy,x.r,0,Math.PI*2,!0)}});J.exports=p},"3+U2":function(J,I,l){"use strict";l.r(I);var P=l("k1fw"),p=l("PpiC"),E=l("q1tI"),x=l.n(E),g=l("Ty5D"),i=l("9kvl"),o=l("Y4hn"),t=l.n(o),a=l("ZiBY"),u=l.n(a),n=l("fj85"),d=function(){var W=function(){i.d.push("/engineering/evaluate/course")};return x.a.createElement("div",{className:u.a.headerContainer},x.a.createElement("div",{className:u.a.breadcrumd},x.a.createElement("span",{onClick:function(){return W()}},"\u8BFE\u7A0B\u8BC4\u4EF7"),x.a.createElement("span",null,">>"),x.a.createElement("span",null,"\u8BC4\u4EF7\u8BE6\u60C5")),x.a.createElement(n.a,{title:"\u8BC4\u4EF7\u8BE6\u60C5",style:{padding:"12px 0 0 0"}}))},f=Object(i.a)(function(Y){var W=Y.loading,B=Y.engineeringEvaluteDetail;return Object(P.a)({loading:W},B)})(d),y=l("g9YV"),m=l("wCAj"),O=l("5Dmo"),D=l("3S7+"),R=l("FWXW"),C=l.n(R),j=function(W){var B=W.loading,b=W.name,z=W.tabListData,F=[{title:"\u5206\u9879",dataIndex:"position",width:96,align:"center"},{title:"\u8BFE\u7A0B\u76EE\u6807",dataIndex:"content",ellipsis:{showTitle:!1},render:function(H){return x.a.createElement(D.a,{placement:"topLeft",title:H},H)}},{title:"\u8BFE\u7A0B\u6743\u91CD",dataIndex:"weigths",align:"center",width:80},{title:"\u8003\u6838\u65B9\u5F0F",dataIndex:"ways",width:230,ellipsis:{showTitle:!1},render:function(H){if(H&&H.length>0){var $=H.toString();return x.a.createElement(D.a,{placement:"top",title:$},$)}else return"--"}},{title:"\u8FBE\u6210\u5206\u503C",dataIndex:"standard_grade",align:"center",width:80},{title:"\u5B9E\u9645\u5206\u503C",dataIndex:"actual_grade",align:"center",width:80},{title:"\u8BC4\u4EF7\u7ED3\u679C",dataIndex:"status",width:94,align:"center",render:function(H){return x.a.createElement("div",{className:H?C.a.green:C.a.red},H?"\u8FBE\u6210":"\u672A\u8FBE\u6210")}}];return x.a.createElement("div",{className:C.a.evaluateDetailContainer},x.a.createElement("div",{className:C.a.name},b,"\u8FBE\u6210\u8BC4\u4EF7\u8BF4\u660E"),x.a.createElement(m.a,{loading:B.effects["engineeringEvaluteDetail/getCourseResultDetail"],rowKey:"id",columns:F,bordered:!1,dataSource:z,pagination:!1}))},c=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail,B=Y.loading;return Object(P.a)({loading:B},W)})(j),_=l("cVA7"),M=l.n(_),k=l("HPE3"),v=l.n(k),s=l("OaEy"),e=l("2fM7"),r=l("5ryL"),A=l.n(r),T=function(W){var B=W.dispatch,b=W.classDataSource;console.log(b,"classDataSource");var z=b.active,F=b.dataList,X=Object(g.i)(),H=function(q){B({type:"engineeringEvaluteDetail/setClassActive",payload:{active:q,dataList:F}}),B({type:"engineeringEvaluteDetail/getCourseResultDetail",payload:Object(P.a)(Object(P.a)({},X),{},{class_name:q})})};return x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{style:{height:20,backgroundColor:"#fafafa"}}),x.a.createElement("div",{className:A.a.evaluateSelectContainer},x.a.createElement("div",{className:A.a.title},"\u5B66\u751F\u80FD\u529B\u8FBE\u6210\u60C5\u51B5\u56FE"),x.a.createElement("div",{className:A.a.s},"\u73ED\u7EA7\uFF1A",x.a.createElement(e.a,{style:{width:138,marginRight:32},value:z,onChange:H},x.a.createElement(e.a.Option,{value:null},"\u5168\u90E8"),F==null?void 0:F.map(function($){return x.a.createElement(e.a.Option,{value:$},$)})))))},w=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail,B=Y.loading;return Object(P.a)({loading:B},W)})(T),h=["#5470C6","#91CC75","#EE6666"],S=function(W){var B=W.echartsData,b=function(){return{color:h,tooltip:{show:!0,trigger:"axis",formatter:function($){var q="\u8BFE\u7A0B\u76EE\u6807"+$[0].name;return $.forEach(function(le){q+="
                      ",q+='',q+=le.seriesName+"\uFF1A",q+=isNaN(le.value)?0:le.value}),q}},grid:{left:70,right:45},legend:{right:42,data:[{name:"\u5B9E\u9645\u5206\u503C",icon:"path://M0 0h204.8v1024H0zM409.6 409.6h204.8v614.4H409.6zM819.2 204.8h204.8v819.2H819.2z",textStyle:{color:"#464F66",fontSize:12,padding:[0,25,0,0]}},{name:"\u8FBE\u6210\u5206\u503C",icon:"path://M1405.66347426 933.875L1042.7602489 271.57661309 625.42153893 924.8024191 307.88121642 643.55241937l54.43548375-72.58064557L607.27637795 788.71370968 1051.83282897 90.125 1423.80863607 770.5685487 1768.56670046 362.30241965l235.88709686 381.04838718-81.65322647 45.36290285-163.3064513-272.17741964z",textStyle:{color:"#464F66",fontSize:12}}]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0,show:!1},axisLine:{lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",margin:20,formatter:function($){return"\u8BFE\u7A0B\u76EE\u6807".concat($)}},data:B.barData.dataSource.xData}],yAxis:{type:"value",name:"\u5206\u6570",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}},axisLabel:{}},series:[{name:"\u5B9E\u9645\u5206\u503C",type:"bar",data:B.barData.dataSource.yBarData},{name:"\u8FBE\u6210\u5206\u503C",type:"line",symbol:"circle",symbolSize:6,data:B.barData.dataSource.yLineData}]}},z=function(){return{tooltip:{show:!0,trigger:"axis",formatter:"\u5206\u6570\uFF1A {c}"},legend:{right:42,data:[{name:"\u8BFE\u7A0B\u8FBE\u6210\u5EA6",icon:"path://M1337.668817 1024L897.23871 220.215054 390.744086 1012.989247 5.367742 671.655914l66.064516-88.086022L368.722581 847.827957 908.249462 0 1359.690323 825.806452 1778.098925 330.322581l286.27957 462.451613-99.096775 55.053763-198.193548-330.322581z",textStyle:{color:"#464F66"}}]},grid:{left:60,right:45},xAxis:{type:"category",axisTick:{alignWithLabel:!0,show:!1},splitLine:{show:!1},axisLine:{show:!1,lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",rotate:45,margin:20},data:B.lineData.xData},yAxis:{type:"value",name:"\u5206\u6570",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}}},series:[{name:"\u8BFE\u7A0B\u8FBE\u6210\u5EA6",symbol:"circle",symbolSize:6,itemStyle:{color:"#0152D9"},data:B.lineData.seriesData,type:"line"}]}},F=function(H){return{tooltip:{position:"top",formatter:function(q){var le,ie,Ae,we=q.seriesName,_e=q.name,G=q.value,Z=q.dataIndex;return console.log(H,"list"),["\u5E73\u5747\u5206\u503C","\u76EE\u6807\u5206\u503C"].includes(we)?"":"\u59D3\u540D\uFF1A".concat(H==null||((le=H.name_data)===null||le===void 0)?void 0:le[Z],"
                      \u5B66\u53F7\uFF1A").concat(H==null||((ie=H.student_ids)===null||ie===void 0)?void 0:ie[Z],"
                      \u73ED\u7EA7\uFF1A").concat(H==null||((Ae=H.class_data)===null||Ae===void 0)?void 0:Ae[Z],"
                      \u5206\u6570\uFF1A").concat(G)}},legend:{right:42,data:[{name:"\u5DF2\u8FBE\u6807",icon:"path://M512 896c281.6 0 512-230.4 512-512S793.6-128 512-128 0 102.4 0 384s230.4 512 512 512z",textStyle:{color:"#464F66",fontSize:12,padding:[0,44,0,0]}},{name:"\u672A\u8FBE\u6807",icon:"path://M512 896c281.6 0 512-230.4 512-512S793.6-128 512-128 0 102.4 0 384s230.4 512 512 512z",textStyle:{color:"#464F66",fontSize:12,padding:[0,12,0,0]}}]},grid:{left:70,right:115},title:{text:"\u8BFE\u7A0B\u76EE\u6807".concat(H.name,"\u5B66\u751F\u80FD\u529B\u8FBE\u6210\u60C5\u51B5\u56FE"),left:20,textStyle:{color:"#6B758B",fontSize:14,fontWeight:400}},xAxis:{name:"\u5B66\u751F\u5E8F\u53F7",nameTextStyle:{color:"#6B758B",fontWeight:400,fontSize:12,padding:[50,0,0,0]},axisTick:{alignWithLabel:!0,show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",margin:20,showMaxLabel:!0},data:H.xData},yAxis:{type:"value",name:"\u5206\u6570",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}}},series:[{name:"\u5DF2\u8FBE\u6807",type:"scatter",symbolSize:12,itemStyle:{color:"#0152D9"},data:H.yData.max},{name:"\u672A\u8FBE\u6807",type:"scatter",symbolSize:12,itemStyle:{color:"#98BDF7"},data:H.yData.min},{name:"\u5E73\u5747\u5206\u503C",type:"line",symbolSize:1,cursor:"default",data:H.average_scoreData,lineStyle:{color:"#0152D9",type:"dashed"},label:{show:!0,position:"right",formatter:function(q){var le=q.dataIndex;if(le===H.average_scoreData.length-1){var ie;return"\u5E73\u5747\u5206\u503C"+(H==null||((ie=H.average_scoreData)===null||ie===void 0)?void 0:ie[0])}else return""},color:"#0152D9"}},{name:"\u76EE\u6807\u5206\u503C",type:"line",symbolSize:1,cursor:"default",data:H.goal_scoreData,lineStyle:{color:"#1CA261",type:"dashed"},label:{show:!0,position:"right",formatter:function(q){var le=q.dataIndex;if(le===H.goal_scoreData.length-1){var ie;return"\u76EE\u6807\u5206\u503C"+(H==null||((ie=H.goal_scoreData)===null||ie===void 0)?void 0:ie[0])}else return""},color:"#1CA261"}}]}};return x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:v.a.evaluateEchartContainer},x.a.createElement("div",{className:v.a.echartsWrap},x.a.createElement("div",{className:v.a.title},B.barData.name,"\u8FBE\u6210\u5206\u6790"),x.a.createElement(M.a,{option:b(),style:{width:"100%"}})),x.a.createElement(w,null),Object.values(B.scatterData).map(function(X,H){return x.a.createElement("div",{className:v.a.echartsWrap,key:H},x.a.createElement(M.a,{option:F(X)}))})),x.a.createElement("div",{className:v.a.evaluateEchartContainer},x.a.createElement("div",{className:"".concat(v.a.echartsWrap," ").concat(v.a.no)},x.a.createElement("div",{className:v.a.title},B.lineData.name,"\u8FBE\u6210\u5206\u6790"),x.a.createElement(M.a,{option:z()}))))},L=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail;return Object(P.a)({},W)})(S),N=function(W){var B=W.dispatch,b=Object(p.a)(W,["dispatch"]),z=Object(g.i)();return Object(E.useEffect)(function(){z.ec_year_id&&z.id&&(B({type:"engineeringEvaluteDetail/getCourseResultDetail",payload:z}),B({type:"engineeringEvaluteDetail/getCourseResultDetailClass",payload:z}))},[]),x.a.createElement("div",{className:t.a.evaluateDetailContainer},x.a.createElement(f,null),x.a.createElement(c,null),x.a.createElement(L,null))},K=I.default=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail;return Object(P.a)({},W)})(N)},"3C/r":function(J,I){var l=function(p,E){this.image=p,this.repeat=E,this.type="pattern"};l.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var P=l;J.exports=P},"3CBa":function(J,I,l){var P=l("hydK"),p=P.createElement,E=l("bYtY"),x=l("SUKs"),g=l("y+Vt"),i=l("Dagg"),o=l("dqUG"),t=l("DBLp"),a=l("sW+o"),u=l("n6Mw"),n=l("vKoX"),d=l("P47w"),f=d.path,y=d.image,m=d.text;function O(e){return parseInt(e,10)}function D(e){return e instanceof g?f:e instanceof i?y:e instanceof o?m:f}function R(e,r){return r&&e&&r.parentNode!==e}function C(e,r,A){if(R(e,r)&&A){var T=A.nextSibling;T?e.insertBefore(r,T):e.appendChild(r)}}function j(e,r){if(R(e,r)){var A=e.firstChild;A?e.insertBefore(r,A):e.appendChild(r)}}function c(e,r){r&&e&&r.parentNode===e&&e.removeChild(r)}function _(e){return e.__textSvgEl}function M(e){return e.__svgEl}var k=function(e,r,A,T){this.root=e,this.storage=r,this._opts=A=E.extend({},A||{});var w=p("svg");w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w.setAttribute("version","1.1"),w.setAttribute("baseProfile","full"),w.style.cssText="user-select:none;position:absolute;left:0;top:0;";var h=p("g");w.appendChild(h);var S=p("g");w.appendChild(S),this.gradientManager=new a(T,S),this.clipPathManager=new u(T,S),this.shadowManager=new n(T,S);var L=document.createElement("div");L.style.cssText="overflow:hidden;position:relative",this._svgDom=w,this._svgRoot=S,this._backgroundRoot=h,this._viewport=L,e.appendChild(L),L.appendChild(w),this.resize(A.width,A.height),this._visibleList=[]};k.prototype={constructor:k,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var r=p("rect");r.setAttribute("width",this.getWidth()),r.setAttribute("height",this.getHeight()),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("id",0),r.style.fill=e,this._backgroundRoot.appendChild(r),this._backgroundNode=r},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var r=this._svgRoot,A=this._visibleList,T=e.length,w=[],h;for(h=0;h=0;--S)if(h[S]===w)return!0;return!1}),A}else return null;else return A[0]},resize:function(e,r){var A=this._viewport;A.style.display="none";var T=this._opts;if(e!=null&&(T.width=e),r!=null&&(T.height=r),e=this._getSize(0),r=this._getSize(1),A.style.display="",this._width!==e||this._height!==r){this._width=e,this._height=r;var w=A.style;w.width=e+"px",w.height=r+"px";var h=this._svgDom;h.setAttribute("width",e),h.setAttribute("height",r)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",r))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var r=this._opts,A=["width","height"][e],T=["clientWidth","clientHeight"][e],w=["paddingLeft","paddingTop"][e],h=["paddingRight","paddingBottom"][e];if(r[A]!=null&&r[A]!=="auto")return parseFloat(r[A]);var S=this.root,L=document.defaultView.getComputedStyle(S);return(S[T]||O(L[A])||O(S.style[A]))-(O(L[w])||0)-(O(L[h])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/> -\r<`));return"data:image/svg+xml;charset=UTF-8,"+e}};function v(e){return function(){x('In SVG mode painter not support method "'+e+'"')}}E.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(e){k.prototype[e]=v(e)});var s=k;J.exports=s},"3e3G":function(J,I,l){var P=l("bYtY"),p=l("QuXc"),E=function(g,i,o,t,a){this.x=g==null?.5:g,this.y=i==null?.5:i,this.r=o==null?.5:o,this.type="radial",this.global=a||!1,p.call(this,t)};E.prototype={constructor:E},P.inherits(E,p);var x=E;J.exports=x},"3gBT":function(J,I){var l=2311;function P(){return l++}J.exports=P},"4fz+":function(J,I,l){var P=l("bYtY"),p=l("1bdT"),E=l("mFDi"),x=function(i){i=i||{},p.call(this,i);for(var o in i)i.hasOwnProperty(o)&&(this[o]=i[o]);this._children=[],this.__storage=null,this.__dirty=!0};x.prototype={constructor:x,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(i){return this._children[i]},childOfName:function(i){for(var o=this._children,t=0;t=0&&(t.splice(a,0,i),this._doAdd(i))}return this},_doAdd:function(i){i.parent&&i.parent.remove(i),i.parent=this;var o=this.__storage,t=this.__zr;o&&o!==i.__storage&&(o.addToStorage(i),i instanceof x&&i.addChildrenToStorage(o)),t&&t.refresh()},remove:function(i){var o=this.__zr,t=this.__storage,a=this._children,u=P.indexOf(a,i);return u<0?this:(a.splice(u,1),i.parent=null,t&&(t.delFromStorage(i),i instanceof x&&i.delChildrenFromStorage(t)),o&&o.refresh(),this)},removeAll:function(){var i=this._children,o=this.__storage,t,a;for(a=0;a1e-4){v[0]=R-j,v[1]=C-c,s[0]=R+j,s[1]=C+c;return}if(t[0]=i(_)*j+R,t[1]=g(_)*c+C,a[0]=i(M)*j+R,a[1]=g(M)*c+C,e(v,t,a),r(s,t,a),_=_%o,_<0&&(_=_+o),M=M%o,M<0&&(M=M+o),_>M&&!k?M+=o:__&&(u[0]=i(w)*j+R,u[1]=g(w)*c+C,e(v,u,v),r(s,u,s))}I.fromPoints=n,I.fromLine=d,I.fromCubic=m,I.fromQuadratic=O,I.fromArc=D},"59Ip":function(J,I,l){var P=l("Sj9i");function p(E,x,g,i,o,t,a,u,n,d,f){if(n===0)return!1;var y=n;if(f>x+y&&f>i+y&&f>t+y&&f>u+y||fE+y&&d>g+y&&d>o+y&&d>a+y||d=0||w.relatedTarget.className.indexOf("".concat(N,"-next"))>=0))return;e.setState({goInputText:""}),L(e.getValidValue())},e.go=function(w){var h=e.state.goInputText;if(h==="")return;(w.keyCode===y.ENTER||w.type==="click")&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return Object(g.a)(s,[{key:"getValidValue",value:function(){var r=this.state,A=r.goInputText,T=r.current;return!A||isNaN(A)?T:Number(A)}},{key:"getPageSizeOptions",value:function(){var r=this.props,A=r.pageSize,T=r.pageSizeOptions;return T.some(function(w){return w.toString()===A.toString()})?T:T.concat([A.toString()]).sort(function(w,h){var S=isNaN(Number(w))?0:Number(w),L=isNaN(Number(h))?0:Number(h);return S-L})}},{key:"render",value:function(){var r=this,A=this.props,T=A.pageSize,w=A.locale,h=A.rootPrefixCls,S=A.changeSize,L=A.quickGo,N=A.goButton,K=A.selectComponentClass,Y=A.buildOptionText,W=A.selectPrefixCls,B=A.disabled,b=this.state.goInputText,z="".concat(h,"-options"),F=K,X=null,H=null,$=null;if(!S&&!L)return null;var q=this.getPageSizeOptions();if(S&&F){var le=q.map(function(ie,Ae){return a.a.createElement(F.Option,{key:Ae,value:ie.toString()},(Y||r.buildOptionText)(ie))});X=a.a.createElement(F,{disabled:B,prefixCls:W,showSearch:!1,className:"".concat(z,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ae){return Ae.parentNode}},le)}return L&&(N&&($=typeof N=="boolean"?a.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:B,className:"".concat(z,"-quick-jumper-button")},w.jump_to_confirm):a.a.createElement("span",{onClick:this.go,onKeyUp:this.go},N)),H=a.a.createElement("div",{className:"".concat(z,"-quick-jumper")},w.jump_to,a.a.createElement("input",{disabled:B,type:"text",value:b,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),w.page,$)),a.a.createElement("li",{className:"".concat(z)},X,H)}}]),s}(a.a.Component);m.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=m,D=l("N2Kk");function R(){}function C(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function j(k,v,s){return s}function c(k,v,s){var e=typeof k=="undefined"?v.pageSize:k;return Math.floor((s.total-1)/e)+1}var _=function(k){Object(i.a)(s,k);var v=Object(o.a)(s);function s(e){var r;Object(x.a)(this,s),r=v.call(this,e),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(c(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(S,L){var N=r.props.prefixCls,K=S||a.a.createElement("button",{type:"button","aria-label":L,className:"".concat(N,"-item-link")});return typeof S=="function"&&(K=a.a.createElement(S,Object(E.a)({},r.props))),K},r.savePaginationNode=function(S){r.paginationNode=S},r.isValid=function(S){return C(S)&&S!==r.state.current},r.shouldDisplayQuickJumper=function(){var S=r.props,L=S.showQuickJumper,N=S.pageSize,K=S.total;return K<=N?!1:L},r.handleKeyDown=function(S){(S.keyCode===y.ARROW_UP||S.keyCode===y.ARROW_DOWN)&&S.preventDefault()},r.handleKeyUp=function(S){var L=r.getValidValue(S),N=r.state.currentInputValue;L!==N&&r.setState({currentInputValue:L}),S.keyCode===y.ENTER?r.handleChange(L):S.keyCode===y.ARROW_UP?r.handleChange(L-1):S.keyCode===y.ARROW_DOWN&&r.handleChange(L+1)},r.changePageSize=function(S){var L=r.state.current,N=c(S,r.state,r.props);L=L>N?N:L,N===0&&(L=r.state.current),typeof S=="number"&&("pageSize"in r.props||r.setState({pageSize:S}),"current"in r.props||r.setState({current:L,currentInputValue:L})),r.props.onShowSizeChange(L,S),"onChange"in r.props&&r.props.onChange&&r.props.onChange(L,S)},r.handleChange=function(S){var L=r.props.disabled,N=S;if(r.isValid(N)&&!L){var K=c(void 0,r.state,r.props);N>K?N=K:N<1&&(N=1),"current"in r.props||r.setState({current:N,currentInputValue:N});var Y=r.state.pageSize;return r.props.onChange(N,Y),N}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?N-2:0),Y=2;Y=T?h=T:h=Number(A),h}},{key:"getShowSizeChanger",value:function(){var r=this.props,A=r.showSizeChanger,T=r.total,w=r.totalBoundaryShowSizeChanger;return typeof A!="undefined"?A:T>w}},{key:"renderPrev",value:function(r){var A=this.props,T=A.prevIcon,w=A.itemRender,h=w(r,"prev",this.getItemIcon(T,"prev page")),S=!this.hasPrev();return Object(t.isValidElement)(h)?Object(t.cloneElement)(h,{disabled:S}):h}},{key:"renderNext",value:function(r){var A=this.props,T=A.nextIcon,w=A.itemRender,h=w(r,"next",this.getItemIcon(T,"next page")),S=!this.hasNext();return Object(t.isValidElement)(h)?Object(t.cloneElement)(h,{disabled:S}):h}},{key:"render",value:function(){var r=this,A=this.props,T=A.prefixCls,w=A.className,h=A.style,S=A.disabled,L=A.hideOnSinglePage,N=A.total,K=A.locale,Y=A.showQuickJumper,W=A.showLessItems,B=A.showTitle,b=A.showTotal,z=A.simple,F=A.itemRender,X=A.showPrevNextJumpers,H=A.jumpPrevIcon,$=A.jumpNextIcon,q=A.selectComponentClass,le=A.selectPrefixCls,ie=A.pageSizeOptions,Ae=this.state,we=Ae.current,_e=Ae.pageSize,G=Ae.currentInputValue;if(L===!0&&N<=_e)return null;var Z=c(void 0,this.state,this.props),fe=[],pe=null,Se=null,ze=null,te=null,oe=null,de=Y&&Y.goButton,Me=W?1:2,Pe=we-1>0?we-1:0,Ie=we+1=Me*2&&we!==1+2&&(fe[0]=Object(t.cloneElement)(fe[0],{className:"".concat(T,"-item-after-jump-prev")}),fe.unshift(pe)),Z-we>=Me*2&&we!==Z-2&&(fe[fe.length-1]=Object(t.cloneElement)(fe[fe.length-1],{className:"".concat(T,"-item-before-jump-next")}),fe.push(Se)),ce!==1&&fe.unshift(ze),Ce!==Z&&fe.push(te)}var Oe=null;b&&(Oe=a.a.createElement("li",{className:"".concat(T,"-total-text")},b(N,[N===0?0:(we-1)*_e+1,we*_e>N?N:we*_e])));var be=!this.hasPrev()||!Z,Ee=!this.hasNext()||!Z;return a.a.createElement("ul",Object(P.a)({className:n()(T,w,Object(p.a)({},"".concat(T,"-disabled"),S)),style:h,unselectable:"unselectable",ref:this.savePaginationNode},Be),Oe,a.a.createElement("li",{title:B?K.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(T,"-prev"),Object(p.a)({},"".concat(T,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Pe)),fe,a.a.createElement("li",{title:B?K.next_page:null,onClick:this.next,tabIndex:Ee?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(T,"-next"),Object(p.a)({},"".concat(T,"-disabled"),Ee)),"aria-disabled":Ee},this.renderNext(Ie)),a.a.createElement(O,{disabled:S,locale:K,rootPrefixCls:T,selectComponentClass:q,selectPrefixCls:le,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:we,pageSize:_e,pageSizeOptions:ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(r,A){var T={};if("current"in r&&(T.current=r.current,r.current!==A.current&&(T.currentInputValue=T.current)),"pageSize"in r&&r.pageSize!==A.pageSize){var w=A.current,h=c(r.pageSize,A,r);w=w>h?h:w,"current"in r||(T.current=w,T.currentInputValue=w),T.pageSize=r.pageSize}return T}}]),s}(a.a.Component);_.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:R,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:R,locale:D.a,style:{},itemRender:j,totalBoundaryShowSizeChanger:50};var M=_},"6GrX":function(J,I,l){var P=l("mFDi"),p=l("Xnb7"),E=l("bYtY"),x=E.getContext,g=E.extend,i=E.retrieve2,o=E.retrieve3,t=E.trim,a={},u=0,n=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",y={};function m(L,N){y[L]=N}function O(L,N){N=N||f;var K=L+":"+N;if(a[K])return a[K];for(var Y=(L+"").split(` -`),W=0,B=0,b=Y.length;Bn&&(u=0,a={}),u++,a[K]=W,W}function D(L,N,K,Y,W,B,b,z){return b?C(L,N,K,Y,W,B,b,z):R(L,N,K,Y,W,B,z)}function R(L,N,K,Y,W,B,b){var z=T(L,N,W,B,b),F=O(L,N);W&&(F+=W[1]+W[3]);var X=z.outerHeight,H=j(0,F,K),$=c(0,X,Y),q=new P(H,$,F,X);return q.lineHeight=z.lineHeight,q}function C(L,N,K,Y,W,B,b,z){var F=w(L,{rich:b,truncate:z,font:N,textAlign:K,textPadding:W,textLineHeight:B}),X=F.outerWidth,H=F.outerHeight,$=j(0,X,K),q=c(0,H,Y);return new P($,q,X,H)}function j(L,N,K){return K==="right"?L-=N:K==="center"&&(L-=N/2),L}function c(L,N,K){return K==="middle"?L-=N/2:K==="bottom"&&(L-=N),L}function _(L,N,K){var Y=N.textPosition,W=N.textDistance,B=K.x,b=K.y;W=W||0;var z=K.height,F=K.width,X=z/2,H="left",$="top";switch(Y){case"left":B-=W,b+=X,H="right",$="middle";break;case"right":B+=W+F,b+=X,$="middle";break;case"top":B+=F/2,b-=W,H="center",$="bottom";break;case"bottom":B+=F/2,b+=z+W,H="center";break;case"inside":B+=F/2,b+=X,H="center",$="middle";break;case"insideLeft":B+=W,b+=X,$="middle";break;case"insideRight":B+=F-W,b+=X,H="right",$="middle";break;case"insideTop":B+=F/2,b+=W,H="center";break;case"insideBottom":B+=F/2,b+=z-W,H="center",$="bottom";break;case"insideTopLeft":B+=W,b+=W;break;case"insideTopRight":B+=F-W,b+=W,H="right";break;case"insideBottomLeft":B+=W,b+=z-W,$="bottom";break;case"insideBottomRight":B+=F-W,b+=z-W,H="right",$="bottom";break}return L=L||{},L.x=B,L.y=b,L.textAlign=H,L.textVerticalAlign=$,L}function M(L,N,K){var Y={textPosition:L,textDistance:K};return _({},Y,N)}function k(L,N,K,Y,W){if(!N)return"";var B=(L+"").split(` +(window.webpackJsonp=window.webpackJsonp||[]).push([[127,3,8],{"06Qe":function(J,I,l){var P=l("ItGF"),p="urn:schemas-microsoft-com:vml",E=typeof window=="undefined"?null:window,x=!1,g=E&&E.document;function i(a){return o(a)}var o;if(g&&!P.canvasSupported)try{!g.namespaces.zrvml&&g.namespaces.add("zrvml",p),o=function(a){return g.createElement("')}}catch(a){o=function(u){return g.createElement("<"+u+' xmlns="'+p+'" class="zrvml">')}}function t(){if(x||!g)return;x=!0;var a=g.styleSheets;a.length<31?g.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}I.doc=g,I.createNode=i,I.initVML=t},"0s+r":function(J,I,l){var P=l("bYtY"),p=l("QBsz"),E=l("y23F"),x=l("H6uX"),g=l("YH21"),i=l("C0SR"),o="silent";function t(O,D,R){return{type:O,event:R,target:D.target,topTarget:D.topTarget,cancelBubble:!1,offsetX:R.zrX,offsetY:R.zrY,gestureEvent:R.gestureEvent,pinchX:R.pinchX,pinchY:R.pinchY,pinchScale:R.pinchScale,wheelDelta:R.zrDelta,zrByTouch:R.zrByTouch,which:R.which,stop:a}}function a(){g.stop(this.event)}function u(){}u.prototype.dispose=function(){};var n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(O,D,R,C){x.call(this),this.storage=O,this.painter=D,this.painterRoot=C,R=R||new u,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,E.call(this),this.setHandlerProxy(R)};d.prototype={constructor:d,setHandlerProxy:function(O){this.proxy&&this.proxy.dispose(),O&&(P.each(n,function(D){O.on&&O.on(D,this[D],this)},this),O.handler=this),this.proxy=O},mousemove:function(O){var D=O.zrX,R=O.zrY,C=y(this,D,R),j=this._hovered,c=j.target;c&&!c.__zr&&(j=this.findHover(j.x,j.y),c=j.target);var _=this._hovered=C?{x:D,y:R}:this.findHover(D,R),M=_.target,F=this.proxy;F.setCursor&&F.setCursor(M?M.cursor:"default"),c&&M!==c&&this.dispatchToElement(j,"mouseout",O),this.dispatchToElement(_,"mousemove",O),M&&M!==c&&this.dispatchToElement(_,"mouseover",O)},mouseout:function(O){var D=O.zrEventControl,R=O.zrIsToLocalDOM;D!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",O),D!=="no_globalout"&&(!R&&this.trigger("globalout",{type:"globalout",event:O}))},resize:function(O){this._hovered={}},dispatch:function(O,D){var R=this[O];R&&R.call(this,D)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(O){var D=this.proxy;D.setCursor&&D.setCursor(O)},dispatchToElement:function(O,D,R){O=O||{};var C=O.target;if(C&&C.silent)return;for(var j="on"+D,c=t(D,O,R);C&&!(C[j]&&(c.cancelBubble=C[j].call(C,c)),C.trigger(D,c),C=C.parent,c.cancelBubble););c.cancelBubble||(this.trigger(D,c),this.painter&&this.painter.eachOtherLayer(function(_){typeof _[j]=="function"&&_[j].call(_,c),_.trigger&&_.trigger(D,c)}))},findHover:function(O,D,R){for(var C=this.storage.getDisplayList(),j={x:O,y:D},c=C.length-1;c>=0;c--){var _;if(C[c]!==R&&!C[c].ignore&&(_=f(C[c],O,D))&&(!j.topTarget&&(j.topTarget=C[c]),_!==o)){j.target=C[c];break}}return j},processGesture:function(O,D){this._gestureMgr||(this._gestureMgr=new i);var R=this._gestureMgr;D==="start"&&R.clear();var C=R.recognize(O,this.findHover(O.zrX,O.zrY,null).target,this.proxy.dom);if(D==="end"&&R.clear(),C){var j=C.type;O.gestureEvent=j,this.dispatchToElement({target:C.target},j,C.event)}}},P.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(O){d.prototype[O]=function(D){var R=D.zrX,C=D.zrY,j=y(this,R,C),c,_;if((O!=="mouseup"||!j)&&(c=this.findHover(R,C),_=c.target),O==="mousedown")this._downEl=_,this._downPoint=[D.zrX,D.zrY],this._upEl=_;else if(O==="mouseup")this._upEl=_;else if(O==="click"){if(this._downEl!==this._upEl||!this._downPoint||p.dist(this._downPoint,[D.zrX,D.zrY])>4)return;this._downPoint=null}this.dispatchToElement(c,O,D)}});function f(O,D,R){if(O[O.rectHover?"rectContain":"contain"](D,R)){for(var C=O,j;C;){if(C.clipPath&&!C.clipPath.contain(D,R))return!1;C.silent&&(j=!0),C=C.parent}return j?o:!0}return!1}function y(O,D,R){var C=O.painter;return D<0||D>C.getWidth()||R<0||R>C.getHeight()}P.mixin(d,x),P.mixin(d,E);var m=d;J.exports=m},"1Jh7":function(J,I,l){var P=l("y+Vt"),p=l("T6xi"),E=P.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(x,g){p.buildPath(x,g,!1)}});J.exports=E},"1MYJ":function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var E=this.__dirtyPath,x=this.shape.paths,g=0;g=this._maxSize&&n>0){var f=t.head;t.remove(f),delete a[f.key],u=f.value,this._lastRemovedEntry=f}d?d.value=o:d=new p(o),d.key=i,t.insertEntry(d),a[i]=d}return u},x.get=function(i){var o=this._map[i],t=this._list;if(o!=null)return o!==t.tail&&(t.remove(o),t.insertEntry(o)),o.value},x.clear=function(){this._list.clear(),this._map={}};var g=E;J.exports=g},"1bdT":function(J,I,l){var P=l("3gBT"),p=l("H6uX"),E=l("DN4a"),x=l("vWvF"),g=l("bYtY"),i=function(t){E.call(this,t),p.call(this,t),x.call(this,t),this.id=t.id||P()};i.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,a){switch(this.draggable){case"horizontal":a=0;break;case"vertical":t=0;break}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=t,u[5]+=a,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,a){},attrKV:function(t,a){if(t==="position"||t==="scale"||t==="origin"){if(a){var u=this[t];u||(u=this[t]=[]),u[0]=a[0],u[1]=a[1]}}else this[t]=a},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,a){if(typeof t=="string")this.attrKV(t,a);else if(g.isObject(t))for(var u in t)t.hasOwnProperty(u)&&this.attrKV(u,t[u]);return this.dirty(!1),this},setClipPath:function(t){var a=this.__zr;a&&t.addSelfToZr(a),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=a,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var a=this.animators;if(a)for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,ee=ue&&typeof ue.getBoundingClientRect=="function"&&ue.getBoundingClientRect().width;if(ee){if(ge){var U=getComputedStyle(ue),V=U.marginLeft,se=U.marginRight;ee+=+V.replace("px","")+ +se.replace("px","")}ee=+ee.toFixed(6)}return ee||0},$=function(ue,ge,ee){ue&&Object(R.a)(ue.style)==="object"&&(ue.style[ge]=ee)},q=function(){return Y.any},le=l("KQm4"),ie=l("Ff2n"),Ae=l("i8i4"),we=l("bdgK"),_e=l("uciX"),G=l("8XRh"),Z={adjustX:1,adjustY:1},fe={topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Z,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Z,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Z,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Z,offset:[4,0]}},Se=fe,ze=0,te={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},oe=function(ue,ge,ee){var U=b(ge),V=ue.getState();ue.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},V.defaultActiveFirst),{},Object(n.a)({},U,ee))})},de=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(ee){var U;Object(p.a)(this,ge),U=ue.call(this,ee),U.onDestroy=function(ne){U.props.onDestroy(ne)},U.onKeyDown=function(ne){var he=ne.keyCode,Ne=U.menuInstance,Ge=U.props,Ue=Ge.isOpen,Ze=Ge.store;if(he===d.a.ENTER)return U.onTitleClick(ne),oe(Ze,U.props.eventKey,!0),!0;if(he===d.a.RIGHT)return Ue?Ne.onKeyDown(ne):(U.triggerOpenChange(!0),oe(Ze,U.props.eventKey,!0)),!0;if(he===d.a.LEFT){var qe;if(Ue)qe=Ne.onKeyDown(ne);else return;return qe||(U.triggerOpenChange(!1),qe=!0),qe}return Ue&&(he===d.a.UP||he===d.a.DOWN)?Ne.onKeyDown(ne):void 0},U.onOpenChange=function(ne){U.props.onOpenChange(ne)},U.onPopupVisibleChange=function(ne){U.triggerOpenChange(ne,ne?"mouseenter":"mouseleave")},U.onMouseEnter=function(ne){var he=U.props,Ne=he.eventKey,Ge=he.onMouseEnter,Ue=he.store;oe(Ue,U.props.eventKey,!1),Ge({key:Ne,domEvent:ne})},U.onMouseLeave=function(ne){var he=U.props,Ne=he.parentMenu,Ge=he.eventKey,Ue=he.onMouseLeave;Ne.subMenuInstance=Object(x.a)(U),Ue({key:Ge,domEvent:ne})},U.onTitleMouseEnter=function(ne){var he=U.props,Ne=he.eventKey,Ge=he.onItemHover,Ue=he.onTitleMouseEnter;Ge({key:Ne,hover:!0}),Ue({key:Ne,domEvent:ne})},U.onTitleMouseLeave=function(ne){var he=U.props,Ne=he.parentMenu,Ge=he.eventKey,Ue=he.onItemHover,Ze=he.onTitleMouseLeave;Ne.subMenuInstance=Object(x.a)(U),Ue({key:Ge,hover:!1}),Ze({key:Ge,domEvent:ne})},U.onTitleClick=function(ne){var he=Object(x.a)(U),Ne=he.props;if(Ne.onTitleClick({key:Ne.eventKey,domEvent:ne}),Ne.triggerSubMenuAction==="hover")return;U.triggerOpenChange(!Ne.isOpen,"click"),oe(Ne.store,U.props.eventKey,!1)},U.onSubMenuClick=function(ne){typeof U.props.onClick=="function"&&U.props.onClick(U.addKeyPath(ne))},U.onSelect=function(ne){U.props.onSelect(ne)},U.onDeselect=function(ne){U.props.onDeselect(ne)},U.getPrefixCls=function(){return"".concat(U.props.rootPrefixCls,"-submenu")},U.getActiveClassName=function(){return"".concat(U.getPrefixCls(),"-active")},U.getDisabledClassName=function(){return"".concat(U.getPrefixCls(),"-disabled")},U.getSelectedClassName=function(){return"".concat(U.getPrefixCls(),"-selected")},U.getOpenClassName=function(){return"".concat(U.props.rootPrefixCls,"-submenu-open")},U.saveMenuInstance=function(ne){U.menuInstance=ne},U.addKeyPath=function(ne){return Object(P.a)(Object(P.a)({},ne),{},{keyPath:(ne.keyPath||[]).concat(U.props.eventKey)})},U.triggerOpenChange=function(ne,he){var Ne=U.props.eventKey,Ge=function(){U.onOpenChange({key:Ne,item:Object(x.a)(U),trigger:he,open:ne})};he==="mouseenter"?U.mouseenterTimeout=setTimeout(function(){Ge()},0):Ge()},U.isChildrenSelected=function(){var ne={find:!1};return k(U.props.children,U.props.selectedKeys,ne),ne.find},U.isOpen=function(){return U.props.openKeys.indexOf(U.props.eventKey)!==-1},U.adjustWidth=function(){if(!U.subMenuTitle||!U.menuInstance)return;var ne=Ae.findDOMNode(U.menuInstance);if(ne.offsetWidth>=U.subMenuTitle.offsetWidth)return;ne.style.minWidth="".concat(U.subMenuTitle.offsetWidth,"px")},U.saveSubMenuTitle=function(ne){U.subMenuTitle=ne},U.getBaseProps=function(){var ne=Object(x.a)(U),he=ne.props;return{mode:he.mode==="horizontal"?"vertical":he.mode,visible:U.props.isOpen,level:he.level+1,inlineIndent:he.inlineIndent,focusable:!1,onClick:U.onSubMenuClick,onSelect:U.onSelect,onDeselect:U.onDeselect,onDestroy:U.onDestroy,selectedKeys:he.selectedKeys,eventKey:"".concat(he.eventKey,"-menu-"),openKeys:he.openKeys,motion:he.motion,onOpenChange:U.onOpenChange,subMenuOpenDelay:he.subMenuOpenDelay,parentMenu:Object(x.a)(U),subMenuCloseDelay:he.subMenuCloseDelay,forceSubMenuRender:he.forceSubMenuRender,triggerSubMenuAction:he.triggerSubMenuAction,builtinPlacements:he.builtinPlacements,defaultActiveFirst:he.store.getState().defaultActiveFirst[b(he.eventKey)],multiple:he.multiple,prefixCls:he.rootPrefixCls,id:U.internalMenuId,manualRef:U.saveMenuInstance,itemIcon:he.itemIcon,expandIcon:he.expandIcon,direction:he.direction}},U.getMotion=function(ne,he){var Ne=Object(x.a)(U),Ge=Ne.haveRendered,Ue=U.props,Ze=Ue.motion,qe=Ue.rootPrefixCls,ct=Object(P.a)(Object(P.a)({},Ze),{},{leavedClassName:"".concat(qe,"-hidden"),removeOnLeave:!1,motionAppear:Ge||!he||ne!=="inline"});return ct};var V=ee.store,se=ee.eventKey,ae=V.getState(),me=ae.defaultActiveFirst;U.isRootMenu=!1;var ve=!1;return me&&(ve=me[se]),oe(V,se,ve),U}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var U=this,V=this.props,se=V.mode,ae=V.parentMenu,me=V.manualRef;if(me&&me(this),se!=="horizontal"||!ae.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return U.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var U=this.props,V=U.onDestroy,se=U.eventKey;V&&V(se),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(U){var V=this,se=this.getBaseProps(),ae=this.getMotion(se.mode,se.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||se.visible||se.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var me=se.direction;return o.createElement(G.default,Object.assign({visible:se.visible},ae),function(ve){var ne=ve.className,he=ve.style,Ne=D()("".concat(se.prefixCls,"-sub"),ne,Object(n.a)({},"".concat(se.prefixCls,"-rtl"),me==="rtl"));return o.createElement(Oe,Object.assign({},se,{id:V.internalMenuId,className:Ne,style:he}),U)})}},{key:"render",value:function(){var U,V=Object(P.a)({},this.props),se=V.isOpen,ae=this.getPrefixCls(),me=V.mode==="inline",ve=D()(ae,"".concat(ae,"-").concat(V.mode),(U={},Object(n.a)(U,V.className,!!V.className),Object(n.a)(U,this.getOpenClassName(),se),Object(n.a)(U,this.getActiveClassName(),V.active||se&&!me),Object(n.a)(U,this.getDisabledClassName(),V.disabled),Object(n.a)(U,this.getSelectedClassName(),this.isChildrenSelected()),U));this.internalMenuId||(V.eventKey?this.internalMenuId="".concat(V.eventKey,"$Menu"):(ze+=1,this.internalMenuId="$__$".concat(ze,"$Menu")));var ne={},he={},Ne={};V.disabled||(ne={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},he={onClick:this.onTitleClick},Ne={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ge={},Ue=V.direction;me&&(Ue==="rtl"?Ge.paddingRight=V.inlineIndent*V.level:Ge.paddingLeft=V.inlineIndent*V.level);var Ze={};this.props.isOpen&&(Ze={"aria-owns":this.internalMenuId});var qe=null;V.mode!=="horizontal"&&(qe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qe=o.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var ct=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Ge,className:"".concat(ae,"-title"),role:"button"},Ne,he,{"aria-expanded":se},Ze,{"aria-haspopup":"true",title:typeof V.title=="string"?V.title:void 0}),V.title,qe||o.createElement("i",{className:"".concat(ae,"-arrow")})),at=this.renderChildren(V.children),nt=V.parentMenu.isRootMenu?V.parentMenu.props.getPopupContainer:function(yt){return yt.parentNode},st=te[V.mode],lt=V.popupOffset?{offset:V.popupOffset}:{},pt=V.mode==="inline"?"":V.popupClassName;pt+=Ue==="rtl"?" ".concat(ae,"-rtl"):"";var rt=V.disabled,ft=V.triggerSubMenuAction,bt=V.subMenuOpenDelay,St=V.forceSubMenuRender,Ot=V.subMenuCloseDelay,vt=V.builtinPlacements;X.forEach(function(yt){return delete V[yt]}),delete V.onClick;var wt=Ue==="rtl"?Object.assign({},pe,vt):Object.assign({},fe,vt);return delete V.direction,o.createElement("li",Object.assign({},V,ne,{className:ve,role:"menuitem"}),me&&ct,me&&at,!me&&o.createElement(_e.a,{prefixCls:ae,popupClassName:D()("".concat(ae,"-popup"),pt),getPopupContainer:nt,builtinPlacements:wt,popupPlacement:st,popupVisible:se,popupAlign:lt,popup:at,action:rt?[]:[ft],mouseEnterDelay:bt,mouseLeaveDelay:Ot,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:St},ct))}}]),ge}(o.Component);de.defaultProps={onMouseEnter:W,onMouseLeave:W,onTitleMouseEnter:W,onTitleMouseLeave:W,onTitleClick:W,manualRef:W,mode:"vertical",title:""};var Me=Object(t.b)(function(Le,ue){var ge=Le.openKeys,ee=Le.activeKey,U=Le.selectedKeys,V=ue.eventKey,se=ue.subMenuKey;return{isOpen:ge.indexOf(V)>-1,active:ee[se]===V,selectedKeys:U}})(de);Me.isSubMenu=!0;var Pe=Me,Ie="menuitem-overflowed",Be=.5,Ke=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(){var ee;return Object(p.a)(this,ge),ee=ue.apply(this,arguments),ee.resizeObserver=null,ee.mutationObserver=null,ee.originalTotalWidth=0,ee.overflowedItems=[],ee.menuItemSizes=[],ee.cancelFrameId=null,ee.state={lastVisibleIndex:void 0},ee.getMenuItemNodes=function(){var U=ee.props.prefixCls,V=Ae.findDOMNode(Object(x.a)(ee));return V?[].slice.call(V.children).filter(function(se){return se.className.split(" ").indexOf("".concat(U,"-overflowed-submenu"))<0}):[]},ee.getOverflowedSubMenuItem=function(U,V,se){var ae=ee.props,me=ae.overflowedIndicator,ve=ae.level,ne=ae.mode,he=ae.prefixCls,Ne=ae.theme;if(ve!==1||ne!=="horizontal")return null;var Ge=ee.props.children[0],Ue=Ge.props,Ze=Ue.children,qe=Ue.title,ct=Ue.style,at=Object(ie.a)(Ue,["children","title","style"]),nt=Object(P.a)({},ct),st="".concat(U,"-overflowed-indicator"),lt="".concat(U,"-overflowed-indicator");V.length===0&&se!==!0?nt=Object(P.a)(Object(P.a)({},nt),{},{display:"none"}):se&&(nt=Object(P.a)(Object(P.a)({},nt),{},{visibility:"hidden",position:"absolute"}),st="".concat(st,"-placeholder"),lt="".concat(lt,"-placeholder"));var pt=Ne?"".concat(he,"-").concat(Ne):"",rt={};return X.forEach(function(ft){at[ft]!==void 0&&(rt[ft]=at[ft])}),o.createElement(Pe,Object.assign({title:me,className:"".concat(he,"-overflowed-submenu"),popupClassName:pt},rt,{key:st,eventKey:lt,disabled:!1,style:nt}),V)},ee.setChildrenWidthAndResize=function(){if(ee.props.mode!=="horizontal")return;var U=Ae.findDOMNode(Object(x.a)(ee));if(!U)return;var V=U.children;if(!V||V.length===0)return;var se=U.children[V.length-1];$(se,"display","inline-block");var ae=ee.getMenuItemNodes(),me=ae.filter(function(ve){return ve.className.split(" ").indexOf(Ie)>=0});me.forEach(function(ve){$(ve,"display","inline-block")}),ee.menuItemSizes=ae.map(function(ve){return H(ve,!0)}),me.forEach(function(ve){$(ve,"display","none")}),ee.overflowedIndicatorWidth=H(U.children[U.children.length-1],!0),ee.originalTotalWidth=ee.menuItemSizes.reduce(function(ve,ne){return ve+ne},0),ee.handleResize(),$(se,"display","none")},ee.handleResize=function(){if(ee.props.mode!=="horizontal")return;var U=Ae.findDOMNode(Object(x.a)(ee));if(!U)return;var V=H(U);ee.overflowedItems=[];var se=0,ae;ee.originalTotalWidth>V+Be&&(ae=-1,ee.menuItemSizes.forEach(function(me){se+=me,se+ee.overflowedIndicatorWidth<=V&&(ae+=1)})),ee.setState({lastVisibleIndex:ae})},ee}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){var U=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var V=Ae.findDOMNode(this);if(!V)return;this.resizeObserver=new we.default(function(se){se.forEach(function(){var ae=U.cancelFrameId;cancelAnimationFrame(ae),U.cancelFrameId=requestAnimationFrame(U.setChildrenWidthAndResize)})}),[].slice.call(V.children).concat(V).forEach(function(se){U.resizeObserver.observe(se)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){U.resizeObserver.disconnect(),[].slice.call(V.children).concat(V).forEach(function(se){U.resizeObserver.observe(se)}),U.setChildrenWidthAndResize()}),this.mutationObserver.observe(V,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(U){var V=this,se=this.state.lastVisibleIndex;return(U||[]).reduce(function(ae,me,ve){var ne=me;if(V.props.mode==="horizontal"){var he=V.getOverflowedSubMenuItem(me.props.eventKey,[]);se!==void 0&&V.props.className.indexOf("".concat(V.props.prefixCls,"-root"))!==-1&&(ve>se&&(ne=o.cloneElement(me,{style:{display:"none"},eventKey:"".concat(me.props.eventKey,"-hidden"),className:"".concat(Ie)})),ve===se+1&&(V.overflowedItems=U.slice(se+1).map(function(Ge){return o.cloneElement(Ge,{key:Ge.props.eventKey,mode:"vertical-left"})}),he=V.getOverflowedSubMenuItem(me.props.eventKey,V.overflowedItems)));var Ne=[].concat(Object(le.a)(ae),[he,ne]);return ve===U.length-1&&Ne.push(V.getOverflowedSubMenuItem(me.props.eventKey,[],!0)),Ne}return[].concat(Object(le.a)(ae),[ne])},[])}},{key:"render",value:function(){var U=this.props,V=U.visible,se=U.prefixCls,ae=U.overflowedIndicator,me=U.mode,ve=U.level,ne=U.tag,he=U.children,Ne=U.theme,Ge=Object(ie.a)(U,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ue=ne;return o.createElement(Ue,Object.assign({},Ge),this.renderChildren(he))}}]),ge}(o.Component);Ke.defaultProps={tag:"div",className:""};var We=Ke;function $e(Le){return Le.length?Le.every(function(ue){return!!ue.props.disabled}):!0}function Q(Le,ue,ge){var ee=Le.getState();Le.setState({activeKey:Object(P.a)(Object(P.a)({},ee.activeKey),{},Object(n.a)({},ue,ge))})}function re(Le){return Le.eventKey||"0-menu-"}function ce(Le,ue){var ge=ue,ee=Le.children,U=Le.eventKey;if(ge){var V;if(z(ee,function(se,ae){se&&se.props&&!se.props.disabled&&ge===B(se,U,ae)&&(V=!0)}),V)return ge}return ge=null,Le.defaultActiveFirst&&z(ee,function(se,ae){!ge&&se&&!se.props.disabled&&(ge=B(se,U,ae))}),ge}function Ce(Le){if(Le){var ue=this.instanceArray.indexOf(Le);ue!==-1?this.instanceArray[ue]=Le:this.instanceArray.push(Le)}}var xe=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(ee){var U;return Object(p.a)(this,ge),U=ue.call(this,ee),U.onKeyDown=function(V,se){var ae=V.keyCode,me;if(U.getFlatInstanceArray().forEach(function(ne){ne&&ne.props.active&&ne.onKeyDown&&(me=ne.onKeyDown(V))}),me)return 1;var ve=null;return(ae===d.a.UP||ae===d.a.DOWN)&&(ve=U.step(ae===d.a.UP?-1:1)),ve?(V.preventDefault(),Q(U.props.store,re(U.props),ve.props.eventKey),typeof se=="function"&&se(ve),1):void 0},U.onItemHover=function(V){var se=V.key,ae=V.hover;Q(U.props.store,re(U.props),ae?se:null)},U.onDeselect=function(V){U.props.onDeselect(V)},U.onSelect=function(V){U.props.onSelect(V)},U.onClick=function(V){U.props.onClick(V)},U.onOpenChange=function(V){U.props.onOpenChange(V)},U.onDestroy=function(V){U.props.onDestroy(V)},U.getFlatInstanceArray=function(){return U.instanceArray},U.step=function(V){var se=U.getFlatInstanceArray(),ae=U.props.store.getState().activeKey[re(U.props)],me=se.length;if(!me)return null;V<0&&(se=se.concat().reverse());var ve=-1;if(se.every(function(Ge,Ue){return Ge&&Ge.props.eventKey===ae?(ve=Ue,!1):!0}),!U.props.defaultActiveFirst&&ve!==-1&&$e(se.slice(ve,me-1)))return;var ne=(ve+1)%me,he=ne;do{var Ne=se[he];if(!Ne||Ne.props.disabled)he=(he+1)%me;else return Ne}while(he!==ne);return null},U.renderCommonMenuItem=function(V,se,ae){var me=U.props.store.getState(),ve=Object(x.a)(U),ne=ve.props,he=B(V,ne.eventKey,se),Ne=V.props;if(!Ne||typeof V.type=="string")return V;var Ge=he===me.activeKey,Ue=Object(P.a)(Object(P.a)({mode:Ne.mode||ne.mode,level:ne.level,inlineIndent:ne.inlineIndent,renderMenuItem:U.renderMenuItem,rootPrefixCls:ne.prefixCls,index:se,parentMenu:ne.parentMenu,manualRef:Ne.disabled?void 0:Object(f.a)(V.ref,Ce.bind(Object(x.a)(U))),eventKey:he,active:!Ne.disabled&&Ge,multiple:ne.multiple,onClick:function(qe){(Ne.onClick||W)(qe),U.onClick(qe)},onItemHover:U.onItemHover,motion:ne.motion,subMenuOpenDelay:ne.subMenuOpenDelay,subMenuCloseDelay:ne.subMenuCloseDelay,forceSubMenuRender:ne.forceSubMenuRender,onOpenChange:U.onOpenChange,onDeselect:U.onDeselect,onSelect:U.onSelect,builtinPlacements:ne.builtinPlacements,itemIcon:Ne.itemIcon||U.props.itemIcon,expandIcon:Ne.expandIcon||U.props.expandIcon},ae),{},{direction:ne.direction});return(ne.mode==="inline"||q())&&(Ue.triggerSubMenuAction="click"),o.cloneElement(V,Ue)},U.renderMenuItem=function(V,se,ae){if(!V)return null;var me=U.props.store.getState(),ve={openKeys:me.openKeys,selectedKeys:me.selectedKeys,triggerSubMenuAction:U.props.triggerSubMenuAction,subMenuKey:ae};return U.renderCommonMenuItem(V,se,ve)},ee.store.setState({activeKey:Object(P.a)(Object(P.a)({},ee.store.getState().activeKey),{},Object(n.a)({},ee.eventKey,ce(ee,ee.activeKey)))}),U.instanceArray=[],U}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(U){return this.props.visible||U.visible||this.props.className!==U.className||!m()(this.props.style,U.style)}},{key:"componentDidUpdate",value:function(U){var V=this.props,se="activeKey"in V?V.activeKey:V.store.getState().activeKey[re(V)],ae=ce(V,se);if(ae!==se)Q(V.store,re(V),ae);else if("activeKey"in U){var me=ce(U,U.activeKey);ae!==me&&Q(V.store,re(V),ae)}}},{key:"render",value:function(){var U=this,V=Object(u.a)({},this.props);this.instanceArray=[];var se=D()(V.prefixCls,V.className,"".concat(V.prefixCls,"-").concat(V.mode)),ae={className:se,role:V.role||"menu"};V.id&&(ae.id=V.id),V.focusable&&(ae.tabIndex=0,ae.onKeyDown=this.onKeyDown);var me=V.prefixCls,ve=V.eventKey,ne=V.visible,he=V.level,Ne=V.mode,Ge=V.overflowedIndicator,Ue=V.theme;return X.forEach(function(Ze){return delete V[Ze]}),delete V.onClick,o.createElement(We,Object.assign({},V,{prefixCls:me,mode:Ne,tag:"ul",level:he,theme:Ue,visible:ne,overflowedIndicator:Ge},ae),o.Children.map(V.children,function(Ze,qe){return U.renderMenuItem(Ze,qe,ve||"0-menu-")}))}}]),ge}(o.Component);xe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:W};var Te=Object(t.b)()(xe),Oe=Te,be=l("Kwbf");function Ee(Le,ue,ge){var ee=Le.prefixCls,U=Le.motion,V=Le.defaultMotions,se=V===void 0?{}:V,ae=Le.openAnimation,me=Le.openTransitionName,ve=ue.switchingModeFromInline;if(U)return U;if(Object(R.a)(ae)==="object"&&ae)Object(be.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ae=="string")return{motionName:"".concat(ee,"-open-").concat(ae)};if(me)return{motionName:me};var ne=se[ge];return ne||(ve?null:se.other)}var Re=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(ee){var U;Object(p.a)(this,ge),U=ue.call(this,ee),U.inlineOpenKeys=[],U.onSelect=function(ae){var me=Object(x.a)(U),ve=me.props;if(ve.selectable){var ne=U.store.getState(),he=ne.selectedKeys,Ne=ae.key;ve.multiple?he=he.concat([Ne]):he=[Ne],"selectedKeys"in ve||U.store.setState({selectedKeys:he}),ve.onSelect(Object(P.a)(Object(P.a)({},ae),{},{selectedKeys:he}))}},U.onClick=function(ae){var me=U.getRealMenuMode(),ve=Object(x.a)(U),ne=ve.store,he=ve.props.onOpenChange;me!=="inline"&&!("openKeys"in U.props)&&(ne.setState({openKeys:[]}),he([])),U.props.onClick(ae)},U.onKeyDown=function(ae,me){U.innerMenu.getWrappedInstance().onKeyDown(ae,me)},U.onOpenChange=function(ae){var me=Object(x.a)(U),ve=me.props,ne=U.store.getState().openKeys.concat(),he=!1,Ne=function(Ue){var Ze=!1;if(Ue.open)Ze=ne.indexOf(Ue.key)===-1,Ze&&ne.push(Ue.key);else{var qe=ne.indexOf(Ue.key);Ze=qe!==-1,Ze&&ne.splice(qe,1)}he=he||Ze};Array.isArray(ae)?ae.forEach(Ne):Ne(ae),he&&("openKeys"in U.props||U.store.setState({openKeys:ne}),ve.onOpenChange(ne))},U.onDeselect=function(ae){var me=Object(x.a)(U),ve=me.props;if(ve.selectable){var ne=U.store.getState().selectedKeys.concat(),he=ae.key,Ne=ne.indexOf(he);Ne!==-1&&ne.splice(Ne,1),"selectedKeys"in ve||U.store.setState({selectedKeys:ne}),ve.onDeselect(Object(P.a)(Object(P.a)({},ae),{},{selectedKeys:ne}))}},U.onMouseEnter=function(ae){U.restoreModeVerticalFromInline();var me=U.props.onMouseEnter;me&&me(ae)},U.onTransitionEnd=function(ae){var me=ae.propertyName==="width"&&ae.target===ae.currentTarget,ve=ae.target.className,ne=Object.prototype.toString.call(ve)==="[object SVGAnimatedString]"?ve.animVal:ve,he=ae.propertyName==="font-size"&&ne.indexOf("anticon")>=0;(me||he)&&U.restoreModeVerticalFromInline()},U.setInnerMenu=function(ae){U.innerMenu=ae},U.isRootMenu=!0;var V=ee.defaultSelectedKeys,se=ee.defaultOpenKeys;return"selectedKeys"in ee&&(V=ee.selectedKeys||[]),"openKeys"in ee&&(se=ee.openKeys||[]),U.store=Object(t.c)({selectedKeys:V,openKeys:se,activeKey:{"0-menu-":ce(ee,ee.activeKey)}}),U.state={switchingModeFromInline:!1},U}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(U){this.updateOpentKeysWhenSwitchMode(U),this.updateMiniStore();var V=this.props,se=V.siderCollapsed,ae=V.inlineCollapsed,me=V.onOpenChange;(!U.inlineCollapsed&&ae||!U.siderCollapsed&&se)&&me([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(U){var V=this.props,se=this.store,ae=this.inlineOpenKeys,me=se.getState(),ve={};U.mode==="inline"&&V.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in V||((V.inlineCollapsed&&!U.inlineCollapsed||V.siderCollapsed&&!U.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=me.openKeys.concat(),ve.openKeys=[]),(!V.inlineCollapsed&&U.inlineCollapsed||!V.siderCollapsed&&U.siderCollapsed)&&(ve.openKeys=ae,this.inlineOpenKeys=[])),Object.keys(ve).length&&se.setState(ve)}},{key:"updateMenuDisplay",value:function(){var U=this.props.collapsedWidth,V=this.store,se=this.prevOpenKeys,ae=this.getInlineCollapsed()&&(U===0||U==="0"||U==="0px");ae?(this.prevOpenKeys=V.getState().openKeys.concat(),this.store.setState({openKeys:[]})):se&&(this.store.setState({openKeys:se}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var U=this.props.mode,V=this.state.switchingModeFromInline,se=this.getInlineCollapsed();return V&&se?"inline":se?"vertical":U}},{key:"getInlineCollapsed",value:function(){var U=this.props,V=U.inlineCollapsed,se=U.siderCollapsed;return se!==void 0?se:V}},{key:"restoreModeVerticalFromInline",value:function(){var U=this.state.switchingModeFromInline;U&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var U=Object(P.a)({},Object(a.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),V=this.getRealMenuMode();return U.className+=" ".concat(U.prefixCls,"-root"),U.direction==="rtl"&&(U.className+=" ".concat(U.prefixCls,"-rtl")),U=Object(P.a)(Object(P.a)({},U),{},{mode:V,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ee(this.props,this.state,V)}),delete U.openAnimation,delete U.openTransitionName,o.createElement(t.a,{store:this.store},o.createElement(Oe,Object.assign({},U,{ref:this.setInnerMenu}),this.props.children))}}]),ge}(o.Component);Re.defaultProps={selectable:!0,onClick:W,onSelect:W,onOpenChange:W,onDeselect:W,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var De=Re,ye=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(){var ee;return Object(p.a)(this,ge),ee=ue.apply(this,arguments),ee.onKeyDown=function(U){var V=U.keyCode;return V===d.a.ENTER?(ee.onClick(U),!0):void 0},ee.onMouseLeave=function(U){var V=ee.props,se=V.eventKey,ae=V.onItemHover,me=V.onMouseLeave;ae({key:se,hover:!1}),me({key:se,domEvent:U})},ee.onMouseEnter=function(U){var V=ee.props,se=V.eventKey,ae=V.onItemHover,me=V.onMouseEnter;ae({key:se,hover:!0}),me({key:se,domEvent:U})},ee.onClick=function(U){var V=ee.props,se=V.eventKey,ae=V.multiple,me=V.onClick,ve=V.onSelect,ne=V.onDeselect,he=V.isSelected,Ne={key:se,keyPath:[se],item:Object(x.a)(ee),domEvent:U};me(Ne),ae?he?ne(Ne):ve(Ne):he||ve(Ne)},ee.saveNode=function(U){ee.node=U},ee}return Object(E.a)(ge,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var U=this.props;U.onDestroy&&U.onDestroy(U.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var U,V=Object(P.a)({},this.props),se=D()(this.getPrefixCls(),V.className,(U={},Object(n.a)(U,this.getActiveClassName(),!V.disabled&&V.active),Object(n.a)(U,this.getSelectedClassName(),V.isSelected),Object(n.a)(U,this.getDisabledClassName(),V.disabled),U)),ae=Object(P.a)(Object(P.a)({},V.attribute),{},{title:typeof V.title=="string"?V.title:void 0,className:se,role:V.role||"menuitem","aria-disabled":V.disabled});V.role==="option"?ae=Object(P.a)(Object(P.a)({},ae),{},{role:"option","aria-selected":V.isSelected}):(V.role===null||V.role==="none")&&(ae.role="none");var me={onClick:V.disabled?null:this.onClick,onMouseLeave:V.disabled?null:this.onMouseLeave,onMouseEnter:V.disabled?null:this.onMouseEnter},ve=Object(P.a)({},V.style);V.mode==="inline"&&(V.direction==="rtl"?ve.paddingRight=V.inlineIndent*V.level:ve.paddingLeft=V.inlineIndent*V.level),X.forEach(function(he){return delete V[he]}),delete V.direction;var ne=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ne=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object.assign({},Object(a.default)(V,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ae,me,{style:ve,ref:this.saveNode}),V.children,ne)}}]),ge}(o.Component);ye.isMenuItem=!0,ye.defaultProps={onSelect:W,onMouseEnter:W,onMouseLeave:W,manualRef:W};var Fe=Object(t.b)(function(Le,ue){var ge=Le.activeKey,ee=Le.selectedKeys,U=ue.eventKey,V=ue.subMenuKey;return{active:ge[V]===U,isSelected:ee.indexOf(U)!==-1}})(ye),je=Fe,ke=function(Le){Object(g.a)(ge,Le);var ue=Object(i.a)(ge);function ge(){var ee;return Object(p.a)(this,ge),ee=ue.apply(this,arguments),ee.renderInnerMenuItem=function(U){var V=ee.props,se=V.renderMenuItem,ae=V.index;return se(U,ae,ee.props.subMenuKey)},ee}return Object(E.a)(ge,[{key:"render",value:function(){var U=Object(u.a)({},this.props),V=U.className,se=V===void 0?"":V,ae=U.rootPrefixCls,me="".concat(ae,"-item-group-title"),ve="".concat(ae,"-item-group-list"),ne=U.title,he=U.children;return X.forEach(function(Ne){return delete U[Ne]}),delete U.onClick,delete U.direction,o.createElement("li",Object.assign({},U,{className:"".concat(se," ").concat(ae,"-item-group")}),o.createElement("div",{className:me,title:typeof ne=="string"?ne:void 0},ne),o.createElement("ul",{className:ve},o.Children.map(he,this.renderInnerMenuItem)))}}]),ge}(o.Component);ke.isMenuItemGroup=!0,ke.defaultProps={disabled:!0};var Ve=ke,Xe=function(ue){var ge=ue.className,ee=ue.rootPrefixCls,U=ue.style;return o.createElement("li",{className:"".concat(ge," ").concat(ee,"-item-divider"),style:U})};Xe.defaultProps={disabled:!0,className:"",style:{}};var Ye=Xe,He=I.e=De},"24YM":function(J,I,l){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.SensorTabIndex=I.SensorClassName=I.SizeSensorId=void 0;var P="size-sensor-id";I.SizeSensorId=P;var p="size-sensor-object";I.SensorClassName=p;var E="-1";I.SensorTabIndex=E},"2DNl":function(J,I,l){var P=l("IMiH"),p=l("loD1"),E=l("59Ip"),x=l("aKvl"),g=l("n1HI"),i=l("hX1E"),o=i.normalizeRadian,t=l("Sj9i"),a=l("hyiK"),u=P.CMD,n=Math.PI*2,d=1e-4;function f(M,F){return Math.abs(M-F)F&&h>s&&h>r&&h>T||h1&&O(),K=t.cubicAt(F,s,r,T,m[0]),N>1&&(Y=t.cubicAt(F,s,r,T,m[1]))),N===2?BF&&T>s&&T>r||T=0&&h<=1){for(var S=0,L=t.quadraticAt(F,s,r,h),N=0;Nv||T<-v)return 0;var w=Math.sqrt(v*v-T*T);y[0]=-w,y[1]=w;var h=Math.abs(s-e);if(h<1e-4)return 0;if(h%n<1e-4){s=0,e=n;var S=r?1:-1;return A>=y[0]+M&&A<=y[1]+M?S:0}if(r){var w=s;s=o(e),e=o(w)}else s=o(s),e=o(e);s>e&&(e+=n);for(var L=0,N=0;N<2;N++){var K=y[N];if(K+M>A){var Y=Math.atan2(T,K),S=r?1:-1;Y<0&&(Y=n+Y),(Y>=s&&Y<=e||Y+n>=s&&Y+n<=e)&&(Y>Math.PI/2&&Y1&&(v||(r+=a(A,T,w,h,s,e))),S===1&&(A=M[S],T=M[S+1],w=A,h=T);switch(L){case u.M:w=M[S++],h=M[S++],A=w,T=h;break;case u.L:if(v){if(p.containStroke(A,T,M[S],M[S+1],F,s,e))return!0}else r+=a(A,T,M[S],M[S+1],s,e)||0;A=M[S++],T=M[S++];break;case u.C:if(v){if(E.containStroke(A,T,M[S++],M[S++],M[S++],M[S++],M[S],M[S+1],F,s,e))return!0}else r+=D(A,T,M[S++],M[S++],M[S++],M[S++],M[S],M[S+1],s,e)||0;A=M[S++],T=M[S++];break;case u.Q:if(v){if(x.containStroke(A,T,M[S++],M[S++],M[S],M[S+1],F,s,e))return!0}else r+=R(A,T,M[S++],M[S++],M[S],M[S+1],s,e)||0;A=M[S++],T=M[S++];break;case u.A:var N=M[S++],K=M[S++],Y=M[S++],W=M[S++],B=M[S++],b=M[S++];S+=1;var z=1-M[S++],k=Math.cos(B)*Y+N,X=Math.sin(B)*W+K;S>1?r+=a(A,T,k,X,s,e):(w=k,h=X);var H=(s-N)*W/Y+N;if(v){if(g.containStroke(N,K,W,B,B+b,z,F,H,e))return!0}else r+=C(N,K,W,B,B+b,z,H,e);A=Math.cos(B+b)*Y+N,T=Math.sin(B+b)*W+K;break;case u.R:w=A=M[S++],h=T=M[S++];var $=M[S++],q=M[S++],k=w+$,X=h+q;if(v){if(p.containStroke(w,h,k,h,F,s,e)||p.containStroke(k,h,k,X,F,s,e)||p.containStroke(k,X,w,X,F,s,e)||p.containStroke(w,X,w,h,F,s,e))return!0}else r+=a(k,h,k,X,s,e),r+=a(w,X,w,h,s,e);break;case u.Z:if(v){if(p.containStroke(A,T,w,h,F,s,e))return!0}else r+=a(A,T,w,h,s,e);A=w,T=h;break}}return!v&&!f(T,h)&&(r+=a(A,T,w,h,s,e)||0),r!==0}function c(M,F,v){return j(M,0,!1,F,v)}function _(M,F,v,s){return j(M,F,!0,v,s)}I.contain=c,I.containStroke=_},"2fw6":function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(E,x,g){g&&E.moveTo(x.cx+x.r,x.cy),E.arc(x.cx,x.cy,x.r,0,Math.PI*2,!0)}});J.exports=p},"3+U2":function(J,I,l){"use strict";l.r(I);var P=l("k1fw"),p=l("PpiC"),E=l("q1tI"),x=l.n(E),g=l("Ty5D"),i=l("9kvl"),o=l("Y4hn"),t=l.n(o),a=l("ZiBY"),u=l.n(a),n=l("fj85"),d=function(){var W=function(){i.d.push("/engineering/evaluate/course")};return x.a.createElement("div",{className:u.a.headerContainer},x.a.createElement("div",{className:u.a.breadcrumd},x.a.createElement("span",{onClick:function(){return W()}},"\u8BFE\u7A0B\u8BC4\u4EF7"),x.a.createElement("span",null,">>"),x.a.createElement("span",null,"\u8BC4\u4EF7\u8BE6\u60C5")),x.a.createElement(n.a,{title:"\u8BC4\u4EF7\u8BE6\u60C5",style:{padding:"12px 0 0 0"}}))},f=Object(i.a)(function(Y){var W=Y.loading,B=Y.engineeringEvaluteDetail;return Object(P.a)({loading:W},B)})(d),y=l("g9YV"),m=l("wCAj"),O=l("5Dmo"),D=l("3S7+"),R=l("FWXW"),C=l.n(R),j=function(W){var B=W.loading,b=W.name,z=W.tabListData,k=[{title:"\u5206\u9879",dataIndex:"position",width:96,align:"center"},{title:"\u8BFE\u7A0B\u76EE\u6807",dataIndex:"content",ellipsis:{showTitle:!1},render:function(H){return x.a.createElement(D.a,{placement:"topLeft",title:H},H)}},{title:"\u8BFE\u7A0B\u6743\u91CD",dataIndex:"weigths",align:"center",width:80},{title:"\u8003\u6838\u65B9\u5F0F",dataIndex:"ways",width:230,ellipsis:{showTitle:!1},render:function(H){if(H&&H.length>0){var $=H.toString();return x.a.createElement(D.a,{placement:"top",title:$},$)}else return"--"}},{title:"\u8FBE\u6210\u5206\u503C",dataIndex:"standard_grade",align:"center",width:80},{title:"\u5B9E\u9645\u5206\u503C",dataIndex:"actual_grade",align:"center",width:80},{title:"\u8BC4\u4EF7\u7ED3\u679C",dataIndex:"status",width:94,align:"center",render:function(H){return x.a.createElement("div",{className:H?C.a.green:C.a.red},H?"\u8FBE\u6210":"\u672A\u8FBE\u6210")}}];return x.a.createElement("div",{className:C.a.evaluateDetailContainer},x.a.createElement("div",{className:C.a.name},b,"\u8FBE\u6210\u8BC4\u4EF7\u8BF4\u660E"),x.a.createElement(m.a,{loading:B.effects["engineeringEvaluteDetail/getCourseResultDetail"],rowKey:"id",columns:k,bordered:!1,dataSource:z,pagination:!1}))},c=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail,B=Y.loading;return Object(P.a)({loading:B},W)})(j),_=l("cVA7"),M=l.n(_),F=l("HPE3"),v=l.n(F),s=l("OaEy"),e=l("2fM7"),r=l("5ryL"),A=l.n(r),T=function(W){var B=W.dispatch,b=W.classDataSource;console.log(b,"classDataSource");var z=b.active,k=b.dataList,X=Object(g.i)(),H=function(q){B({type:"engineeringEvaluteDetail/setClassActive",payload:{active:q,dataList:k}}),B({type:"engineeringEvaluteDetail/getCourseResultDetail",payload:Object(P.a)(Object(P.a)({},X),{},{class_name:q})})};return x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{style:{height:20,backgroundColor:"#fafafa"}}),x.a.createElement("div",{className:A.a.evaluateSelectContainer},x.a.createElement("div",{className:A.a.title},"\u5B66\u751F\u80FD\u529B\u8FBE\u6210\u60C5\u51B5\u56FE"),x.a.createElement("div",{className:A.a.s},"\u73ED\u7EA7\uFF1A",x.a.createElement(e.a,{style:{width:138,marginRight:32},value:z,onChange:H},x.a.createElement(e.a.Option,{value:null},"\u5168\u90E8"),k==null?void 0:k.map(function($){return x.a.createElement(e.a.Option,{value:$},$)})))))},w=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail,B=Y.loading;return Object(P.a)({loading:B},W)})(T),h=["#5470C6","#91CC75","#EE6666"],S=function(W){var B=W.echartsData,b=function(){return{color:h,tooltip:{show:!0,trigger:"axis",formatter:function($){var q="\u8BFE\u7A0B\u76EE\u6807"+$[0].name;return $.forEach(function(le){q+="
                      ",q+='',q+=le.seriesName+"\uFF1A",q+=isNaN(le.value)?0:le.value}),q}},grid:{left:70,right:45},legend:{right:42,data:[{name:"\u5B9E\u9645\u5206\u503C",icon:"path://M0 0h204.8v1024H0zM409.6 409.6h204.8v614.4H409.6zM819.2 204.8h204.8v819.2H819.2z",textStyle:{color:"#464F66",fontSize:12,padding:[0,25,0,0]}},{name:"\u8FBE\u6210\u5206\u503C",icon:"path://M1405.66347426 933.875L1042.7602489 271.57661309 625.42153893 924.8024191 307.88121642 643.55241937l54.43548375-72.58064557L607.27637795 788.71370968 1051.83282897 90.125 1423.80863607 770.5685487 1768.56670046 362.30241965l235.88709686 381.04838718-81.65322647 45.36290285-163.3064513-272.17741964z",textStyle:{color:"#464F66",fontSize:12}}]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0,show:!1},axisLine:{lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",margin:20,formatter:function($){return"\u8BFE\u7A0B\u76EE\u6807".concat($)}},data:B.barData.dataSource.xData}],yAxis:{type:"value",name:"\u5206\u6570",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}},axisLabel:{}},series:[{name:"\u5B9E\u9645\u5206\u503C",type:"bar",data:B.barData.dataSource.yBarData},{name:"\u8FBE\u6210\u5206\u503C",type:"line",symbol:"circle",symbolSize:6,data:B.barData.dataSource.yLineData}]}},z=function(){return{tooltip:{show:!0,trigger:"axis",formatter:"\u5206\u6570\uFF1A {c}"},legend:{right:42,data:[{name:"\u8BFE\u7A0B\u8FBE\u6210\u5EA6",icon:"path://M1337.668817 1024L897.23871 220.215054 390.744086 1012.989247 5.367742 671.655914l66.064516-88.086022L368.722581 847.827957 908.249462 0 1359.690323 825.806452 1778.098925 330.322581l286.27957 462.451613-99.096775 55.053763-198.193548-330.322581z",textStyle:{color:"#464F66"}}]},grid:{left:60,right:45},xAxis:{type:"category",axisTick:{alignWithLabel:!0,show:!1},splitLine:{show:!1},axisLine:{show:!1,lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",rotate:45,margin:20},data:B.lineData.xData},yAxis:{type:"value",name:"\u5206\u6570",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}}},series:[{name:"\u8BFE\u7A0B\u8FBE\u6210\u5EA6",symbol:"circle",symbolSize:6,itemStyle:{color:"#0152D9"},data:B.lineData.seriesData,type:"line"}]}},k=function(H){return{tooltip:{position:"top",formatter:function(q){var le,ie,Ae,we=q.seriesName,_e=q.name,G=q.value,Z=q.dataIndex;return console.log(H,"list"),["\u5E73\u5747\u5206\u503C","\u76EE\u6807\u5206\u503C"].includes(we)?"":"\u59D3\u540D\uFF1A".concat(H==null||((le=H.name_data)===null||le===void 0)?void 0:le[Z],"
                      \u5B66\u53F7\uFF1A").concat(H==null||((ie=H.student_ids)===null||ie===void 0)?void 0:ie[Z],"
                      \u73ED\u7EA7\uFF1A").concat(H==null||((Ae=H.class_data)===null||Ae===void 0)?void 0:Ae[Z],"
                      \u5206\u6570\uFF1A").concat(G)}},legend:{right:42,data:[{name:"\u5DF2\u8FBE\u6807",icon:"path://M512 896c281.6 0 512-230.4 512-512S793.6-128 512-128 0 102.4 0 384s230.4 512 512 512z",textStyle:{color:"#464F66",fontSize:12,padding:[0,44,0,0]}},{name:"\u672A\u8FBE\u6807",icon:"path://M512 896c281.6 0 512-230.4 512-512S793.6-128 512-128 0 102.4 0 384s230.4 512 512 512z",textStyle:{color:"#464F66",fontSize:12,padding:[0,12,0,0]}}]},grid:{left:70,right:115},title:{text:"\u8BFE\u7A0B\u76EE\u6807".concat(H.name,"\u5B66\u751F\u80FD\u529B\u8FBE\u6210\u60C5\u51B5\u56FE"),left:20,textStyle:{color:"#6B758B",fontSize:14,fontWeight:400}},xAxis:{name:"\u5B66\u751F\u5E8F\u53F7",nameTextStyle:{color:"#6B758B",fontWeight:400,fontSize:12,padding:[50,0,0,0]},axisTick:{alignWithLabel:!0,show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",margin:20,showMaxLabel:!0},data:H.xData},yAxis:{type:"value",name:"\u5206\u6570",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}}},series:[{name:"\u5DF2\u8FBE\u6807",type:"scatter",symbolSize:12,itemStyle:{color:"#0152D9"},data:H.yData.max},{name:"\u672A\u8FBE\u6807",type:"scatter",symbolSize:12,itemStyle:{color:"#98BDF7"},data:H.yData.min},{name:"\u5E73\u5747\u5206\u503C",type:"line",symbolSize:1,cursor:"default",data:H.average_scoreData,lineStyle:{color:"#0152D9",type:"dashed"},label:{show:!0,position:"right",formatter:function(q){var le=q.dataIndex;if(le===H.average_scoreData.length-1){var ie;return"\u5E73\u5747\u5206\u503C"+(H==null||((ie=H.average_scoreData)===null||ie===void 0)?void 0:ie[0])}else return""},color:"#0152D9"}},{name:"\u76EE\u6807\u5206\u503C",type:"line",symbolSize:1,cursor:"default",data:H.goal_scoreData,lineStyle:{color:"#1CA261",type:"dashed"},label:{show:!0,position:"right",formatter:function(q){var le=q.dataIndex;if(le===H.goal_scoreData.length-1){var ie;return"\u76EE\u6807\u5206\u503C"+(H==null||((ie=H.goal_scoreData)===null||ie===void 0)?void 0:ie[0])}else return""},color:"#1CA261"}}]}};return x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:v.a.evaluateEchartContainer},x.a.createElement("div",{className:v.a.echartsWrap},x.a.createElement("div",{className:v.a.title},B.barData.name,"\u8FBE\u6210\u5206\u6790"),x.a.createElement(M.a,{option:b(),style:{width:"100%"}})),x.a.createElement(w,null),Object.values(B.scatterData).map(function(X,H){return x.a.createElement("div",{className:v.a.echartsWrap,key:H},x.a.createElement(M.a,{option:k(X)}))})),x.a.createElement("div",{className:v.a.evaluateEchartContainer},x.a.createElement("div",{className:"".concat(v.a.echartsWrap," ").concat(v.a.no)},x.a.createElement("div",{className:v.a.title},B.lineData.name,"\u8FBE\u6210\u5206\u6790"),x.a.createElement(M.a,{option:z()}))))},L=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail;return Object(P.a)({},W)})(S),N=function(W){var B=W.dispatch,b=Object(p.a)(W,["dispatch"]),z=Object(g.i)();return Object(E.useEffect)(function(){z.ec_year_id&&z.id&&(B({type:"engineeringEvaluteDetail/getCourseResultDetail",payload:z}),B({type:"engineeringEvaluteDetail/getCourseResultDetailClass",payload:z}))},[]),x.a.createElement("div",{className:t.a.evaluateDetailContainer},x.a.createElement(f,null),x.a.createElement(c,null),x.a.createElement(L,null))},K=I.default=Object(i.a)(function(Y){var W=Y.engineeringEvaluteDetail;return Object(P.a)({},W)})(N)},"3C/r":function(J,I){var l=function(p,E){this.image=p,this.repeat=E,this.type="pattern"};l.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var P=l;J.exports=P},"3CBa":function(J,I,l){var P=l("hydK"),p=P.createElement,E=l("bYtY"),x=l("SUKs"),g=l("y+Vt"),i=l("Dagg"),o=l("dqUG"),t=l("DBLp"),a=l("sW+o"),u=l("n6Mw"),n=l("vKoX"),d=l("P47w"),f=d.path,y=d.image,m=d.text;function O(e){return parseInt(e,10)}function D(e){return e instanceof g?f:e instanceof i?y:e instanceof o?m:f}function R(e,r){return r&&e&&r.parentNode!==e}function C(e,r,A){if(R(e,r)&&A){var T=A.nextSibling;T?e.insertBefore(r,T):e.appendChild(r)}}function j(e,r){if(R(e,r)){var A=e.firstChild;A?e.insertBefore(r,A):e.appendChild(r)}}function c(e,r){r&&e&&r.parentNode===e&&e.removeChild(r)}function _(e){return e.__textSvgEl}function M(e){return e.__svgEl}var F=function(e,r,A,T){this.root=e,this.storage=r,this._opts=A=E.extend({},A||{});var w=p("svg");w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w.setAttribute("version","1.1"),w.setAttribute("baseProfile","full"),w.style.cssText="user-select:none;position:absolute;left:0;top:0;";var h=p("g");w.appendChild(h);var S=p("g");w.appendChild(S),this.gradientManager=new a(T,S),this.clipPathManager=new u(T,S),this.shadowManager=new n(T,S);var L=document.createElement("div");L.style.cssText="overflow:hidden;position:relative",this._svgDom=w,this._svgRoot=S,this._backgroundRoot=h,this._viewport=L,e.appendChild(L),L.appendChild(w),this.resize(A.width,A.height),this._visibleList=[]};F.prototype={constructor:F,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var r=p("rect");r.setAttribute("width",this.getWidth()),r.setAttribute("height",this.getHeight()),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("id",0),r.style.fill=e,this._backgroundRoot.appendChild(r),this._backgroundNode=r},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var r=this._svgRoot,A=this._visibleList,T=e.length,w=[],h;for(h=0;h=0;--S)if(h[S]===w)return!0;return!1}),A}else return null;else return A[0]},resize:function(e,r){var A=this._viewport;A.style.display="none";var T=this._opts;if(e!=null&&(T.width=e),r!=null&&(T.height=r),e=this._getSize(0),r=this._getSize(1),A.style.display="",this._width!==e||this._height!==r){this._width=e,this._height=r;var w=A.style;w.width=e+"px",w.height=r+"px";var h=this._svgDom;h.setAttribute("width",e),h.setAttribute("height",r)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",r))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var r=this._opts,A=["width","height"][e],T=["clientWidth","clientHeight"][e],w=["paddingLeft","paddingTop"][e],h=["paddingRight","paddingBottom"][e];if(r[A]!=null&&r[A]!=="auto")return parseFloat(r[A]);var S=this.root,L=document.defaultView.getComputedStyle(S);return(S[T]||O(L[A])||O(S.style[A]))-(O(L[w])||0)-(O(L[h])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/> +\r<`));return"data:image/svg+xml;charset=UTF-8,"+e}};function v(e){return function(){x('In SVG mode painter not support method "'+e+'"')}}E.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(e){F.prototype[e]=v(e)});var s=F;J.exports=s},"3e3G":function(J,I,l){var P=l("bYtY"),p=l("QuXc"),E=function(g,i,o,t,a){this.x=g==null?.5:g,this.y=i==null?.5:i,this.r=o==null?.5:o,this.type="radial",this.global=a||!1,p.call(this,t)};E.prototype={constructor:E},P.inherits(E,p);var x=E;J.exports=x},"3gBT":function(J,I){var l=2311;function P(){return l++}J.exports=P},"4fz+":function(J,I,l){var P=l("bYtY"),p=l("1bdT"),E=l("mFDi"),x=function(i){i=i||{},p.call(this,i);for(var o in i)i.hasOwnProperty(o)&&(this[o]=i[o]);this._children=[],this.__storage=null,this.__dirty=!0};x.prototype={constructor:x,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(i){return this._children[i]},childOfName:function(i){for(var o=this._children,t=0;t=0&&(t.splice(a,0,i),this._doAdd(i))}return this},_doAdd:function(i){i.parent&&i.parent.remove(i),i.parent=this;var o=this.__storage,t=this.__zr;o&&o!==i.__storage&&(o.addToStorage(i),i instanceof x&&i.addChildrenToStorage(o)),t&&t.refresh()},remove:function(i){var o=this.__zr,t=this.__storage,a=this._children,u=P.indexOf(a,i);return u<0?this:(a.splice(u,1),i.parent=null,t&&(t.delFromStorage(i),i instanceof x&&i.delChildrenFromStorage(t)),o&&o.refresh(),this)},removeAll:function(){var i=this._children,o=this.__storage,t,a;for(a=0;a1e-4){v[0]=R-j,v[1]=C-c,s[0]=R+j,s[1]=C+c;return}if(t[0]=i(_)*j+R,t[1]=g(_)*c+C,a[0]=i(M)*j+R,a[1]=g(M)*c+C,e(v,t,a),r(s,t,a),_=_%o,_<0&&(_=_+o),M=M%o,M<0&&(M=M+o),_>M&&!F?M+=o:__&&(u[0]=i(w)*j+R,u[1]=g(w)*c+C,e(v,u,v),r(s,u,s))}I.fromPoints=n,I.fromLine=d,I.fromCubic=m,I.fromQuadratic=O,I.fromArc=D},"59Ip":function(J,I,l){var P=l("Sj9i");function p(E,x,g,i,o,t,a,u,n,d,f){if(n===0)return!1;var y=n;if(f>x+y&&f>i+y&&f>t+y&&f>u+y||fE+y&&d>g+y&&d>o+y&&d>a+y||d=0||w.relatedTarget.className.indexOf("".concat(N,"-next"))>=0))return;e.setState({goInputText:""}),L(e.getValidValue())},e.go=function(w){var h=e.state.goInputText;if(h==="")return;(w.keyCode===y.ENTER||w.type==="click")&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return Object(g.a)(s,[{key:"getValidValue",value:function(){var r=this.state,A=r.goInputText,T=r.current;return!A||isNaN(A)?T:Number(A)}},{key:"getPageSizeOptions",value:function(){var r=this.props,A=r.pageSize,T=r.pageSizeOptions;return T.some(function(w){return w.toString()===A.toString()})?T:T.concat([A.toString()]).sort(function(w,h){var S=isNaN(Number(w))?0:Number(w),L=isNaN(Number(h))?0:Number(h);return S-L})}},{key:"render",value:function(){var r=this,A=this.props,T=A.pageSize,w=A.locale,h=A.rootPrefixCls,S=A.changeSize,L=A.quickGo,N=A.goButton,K=A.selectComponentClass,Y=A.buildOptionText,W=A.selectPrefixCls,B=A.disabled,b=this.state.goInputText,z="".concat(h,"-options"),k=K,X=null,H=null,$=null;if(!S&&!L)return null;var q=this.getPageSizeOptions();if(S&&k){var le=q.map(function(ie,Ae){return a.a.createElement(k.Option,{key:Ae,value:ie.toString()},(Y||r.buildOptionText)(ie))});X=a.a.createElement(k,{disabled:B,prefixCls:W,showSearch:!1,className:"".concat(z,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ae){return Ae.parentNode}},le)}return L&&(N&&($=typeof N=="boolean"?a.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:B,className:"".concat(z,"-quick-jumper-button")},w.jump_to_confirm):a.a.createElement("span",{onClick:this.go,onKeyUp:this.go},N)),H=a.a.createElement("div",{className:"".concat(z,"-quick-jumper")},w.jump_to,a.a.createElement("input",{disabled:B,type:"text",value:b,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),w.page,$)),a.a.createElement("li",{className:"".concat(z)},X,H)}}]),s}(a.a.Component);m.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=m,D=l("N2Kk");function R(){}function C(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function j(F,v,s){return s}function c(F,v,s){var e=typeof F=="undefined"?v.pageSize:F;return Math.floor((s.total-1)/e)+1}var _=function(F){Object(i.a)(s,F);var v=Object(o.a)(s);function s(e){var r;Object(x.a)(this,s),r=v.call(this,e),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(c(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(S,L){var N=r.props.prefixCls,K=S||a.a.createElement("button",{type:"button","aria-label":L,className:"".concat(N,"-item-link")});return typeof S=="function"&&(K=a.a.createElement(S,Object(E.a)({},r.props))),K},r.savePaginationNode=function(S){r.paginationNode=S},r.isValid=function(S){return C(S)&&S!==r.state.current},r.shouldDisplayQuickJumper=function(){var S=r.props,L=S.showQuickJumper,N=S.pageSize,K=S.total;return K<=N?!1:L},r.handleKeyDown=function(S){(S.keyCode===y.ARROW_UP||S.keyCode===y.ARROW_DOWN)&&S.preventDefault()},r.handleKeyUp=function(S){var L=r.getValidValue(S),N=r.state.currentInputValue;L!==N&&r.setState({currentInputValue:L}),S.keyCode===y.ENTER?r.handleChange(L):S.keyCode===y.ARROW_UP?r.handleChange(L-1):S.keyCode===y.ARROW_DOWN&&r.handleChange(L+1)},r.changePageSize=function(S){var L=r.state.current,N=c(S,r.state,r.props);L=L>N?N:L,N===0&&(L=r.state.current),typeof S=="number"&&("pageSize"in r.props||r.setState({pageSize:S}),"current"in r.props||r.setState({current:L,currentInputValue:L})),r.props.onShowSizeChange(L,S),"onChange"in r.props&&r.props.onChange&&r.props.onChange(L,S)},r.handleChange=function(S){var L=r.props.disabled,N=S;if(r.isValid(N)&&!L){var K=c(void 0,r.state,r.props);N>K?N=K:N<1&&(N=1),"current"in r.props||r.setState({current:N,currentInputValue:N});var Y=r.state.pageSize;return r.props.onChange(N,Y),N}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?N-2:0),Y=2;Y=T?h=T:h=Number(A),h}},{key:"getShowSizeChanger",value:function(){var r=this.props,A=r.showSizeChanger,T=r.total,w=r.totalBoundaryShowSizeChanger;return typeof A!="undefined"?A:T>w}},{key:"renderPrev",value:function(r){var A=this.props,T=A.prevIcon,w=A.itemRender,h=w(r,"prev",this.getItemIcon(T,"prev page")),S=!this.hasPrev();return Object(t.isValidElement)(h)?Object(t.cloneElement)(h,{disabled:S}):h}},{key:"renderNext",value:function(r){var A=this.props,T=A.nextIcon,w=A.itemRender,h=w(r,"next",this.getItemIcon(T,"next page")),S=!this.hasNext();return Object(t.isValidElement)(h)?Object(t.cloneElement)(h,{disabled:S}):h}},{key:"render",value:function(){var r=this,A=this.props,T=A.prefixCls,w=A.className,h=A.style,S=A.disabled,L=A.hideOnSinglePage,N=A.total,K=A.locale,Y=A.showQuickJumper,W=A.showLessItems,B=A.showTitle,b=A.showTotal,z=A.simple,k=A.itemRender,X=A.showPrevNextJumpers,H=A.jumpPrevIcon,$=A.jumpNextIcon,q=A.selectComponentClass,le=A.selectPrefixCls,ie=A.pageSizeOptions,Ae=this.state,we=Ae.current,_e=Ae.pageSize,G=Ae.currentInputValue;if(L===!0&&N<=_e)return null;var Z=c(void 0,this.state,this.props),fe=[],pe=null,Se=null,ze=null,te=null,oe=null,de=Y&&Y.goButton,Me=W?1:2,Pe=we-1>0?we-1:0,Ie=we+1=Me*2&&we!==1+2&&(fe[0]=Object(t.cloneElement)(fe[0],{className:"".concat(T,"-item-after-jump-prev")}),fe.unshift(pe)),Z-we>=Me*2&&we!==Z-2&&(fe[fe.length-1]=Object(t.cloneElement)(fe[fe.length-1],{className:"".concat(T,"-item-before-jump-next")}),fe.push(Se)),ce!==1&&fe.unshift(ze),Ce!==Z&&fe.push(te)}var Oe=null;b&&(Oe=a.a.createElement("li",{className:"".concat(T,"-total-text")},b(N,[N===0?0:(we-1)*_e+1,we*_e>N?N:we*_e])));var be=!this.hasPrev()||!Z,Ee=!this.hasNext()||!Z;return a.a.createElement("ul",Object(P.a)({className:n()(T,w,Object(p.a)({},"".concat(T,"-disabled"),S)),style:h,unselectable:"unselectable",ref:this.savePaginationNode},Be),Oe,a.a.createElement("li",{title:B?K.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(T,"-prev"),Object(p.a)({},"".concat(T,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Pe)),fe,a.a.createElement("li",{title:B?K.next_page:null,onClick:this.next,tabIndex:Ee?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(T,"-next"),Object(p.a)({},"".concat(T,"-disabled"),Ee)),"aria-disabled":Ee},this.renderNext(Ie)),a.a.createElement(O,{disabled:S,locale:K,rootPrefixCls:T,selectComponentClass:q,selectPrefixCls:le,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:we,pageSize:_e,pageSizeOptions:ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(r,A){var T={};if("current"in r&&(T.current=r.current,r.current!==A.current&&(T.currentInputValue=T.current)),"pageSize"in r&&r.pageSize!==A.pageSize){var w=A.current,h=c(r.pageSize,A,r);w=w>h?h:w,"current"in r||(T.current=w,T.currentInputValue=w),T.pageSize=r.pageSize}return T}}]),s}(a.a.Component);_.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:R,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:R,locale:D.a,style:{},itemRender:j,totalBoundaryShowSizeChanger:50};var M=_},"6GrX":function(J,I,l){var P=l("mFDi"),p=l("Xnb7"),E=l("bYtY"),x=E.getContext,g=E.extend,i=E.retrieve2,o=E.retrieve3,t=E.trim,a={},u=0,n=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",y={};function m(L,N){y[L]=N}function O(L,N){N=N||f;var K=L+":"+N;if(a[K])return a[K];for(var Y=(L+"").split(` +`),W=0,B=0,b=Y.length;Bn&&(u=0,a={}),u++,a[K]=W,W}function D(L,N,K,Y,W,B,b,z){return b?C(L,N,K,Y,W,B,b,z):R(L,N,K,Y,W,B,z)}function R(L,N,K,Y,W,B,b){var z=T(L,N,W,B,b),k=O(L,N);W&&(k+=W[1]+W[3]);var X=z.outerHeight,H=j(0,k,K),$=c(0,X,Y),q=new P(H,$,k,X);return q.lineHeight=z.lineHeight,q}function C(L,N,K,Y,W,B,b,z){var k=w(L,{rich:b,truncate:z,font:N,textAlign:K,textPadding:W,textLineHeight:B}),X=k.outerWidth,H=k.outerHeight,$=j(0,X,K),q=c(0,H,Y);return new P($,q,X,H)}function j(L,N,K){return K==="right"?L-=N:K==="center"&&(L-=N/2),L}function c(L,N,K){return K==="middle"?L-=N/2:K==="bottom"&&(L-=N),L}function _(L,N,K){var Y=N.textPosition,W=N.textDistance,B=K.x,b=K.y;W=W||0;var z=K.height,k=K.width,X=z/2,H="left",$="top";switch(Y){case"left":B-=W,b+=X,H="right",$="middle";break;case"right":B+=W+k,b+=X,$="middle";break;case"top":B+=k/2,b-=W,H="center",$="bottom";break;case"bottom":B+=k/2,b+=z+W,H="center";break;case"inside":B+=k/2,b+=X,H="center",$="middle";break;case"insideLeft":B+=W,b+=X,$="middle";break;case"insideRight":B+=k-W,b+=X,H="right",$="middle";break;case"insideTop":B+=k/2,b+=W,H="center";break;case"insideBottom":B+=k/2,b+=z-W,H="center",$="bottom";break;case"insideTopLeft":B+=W,b+=W;break;case"insideTopRight":B+=k-W,b+=W,H="right";break;case"insideBottomLeft":B+=W,b+=z-W,$="bottom";break;case"insideBottomRight":B+=k-W,b+=z-W,H="right",$="bottom";break}return L=L||{},L.x=B,L.y=b,L.textAlign=H,L.textVerticalAlign=$,L}function M(L,N,K){var Y={textPosition:L,textDistance:K};return _({},Y,N)}function F(L,N,K,Y,W){if(!N)return"";var B=(L+"").split(` `);W=v(N,K,Y,W);for(var b=0,z=B.length;b=B;z++)b-=B;var F=O(K,N);return F>b&&(K="",F=0),b=L-F,Y.ellipsis=K,Y.ellipsisWidth=F,Y.contentWidth=b,Y.containerWidth=L,Y}function s(L,N){var K=N.containerWidth,Y=N.font,W=N.contentWidth;if(!K)return"";var B=O(L,Y);if(B<=K)return L;for(var b=0;;b++){if(B<=W||b>=N.maxIterations){L+=N.ellipsis;break}var z=b===0?e(L,W,N.ascCharWidth,N.cnCharWidth):B>0?Math.floor(L.length*W/B):0;L=L.substr(0,z),B=O(L,Y)}return L===""&&(L=N.placeholder),L}function e(L,N,K,Y){for(var W=0,B=0,b=L.length;BH)L="",b=[];else if($!=null)for(var q=v($-(K?K[1]+K[3]:0),N,W.ellipsis,{minChar:W.minChar,placeholder:W.placeholder}),le=0,ie=b.length;leY&&h(K,L.substring(Y,B)),h(K,W[2],W[1]),Y=d.lastIndex}Yle)return{lines:[],width:0,height:0};Z.textWidth=O(Z.text,Se);var te=fe.textWidth,oe=te==null||te==="auto";if(typeof te=="string"&&te.charAt(te.length-1)==="%")Z.percentWidth=te,X.push(Z),te=0;else{if(oe){te=Z.textWidth;var de=fe.textBackgroundColor,Me=de&&de.image;Me&&(Me=p.findExistImage(Me),p.isImageReady(Me)&&(te=Math.max(te,Me.width*ze/Me.height)))}var Pe=pe?pe[1]+pe[3]:0;te+=Pe;var Ie=q!=null?q-_e:null;Ie!=null&&Ie=0&&e.splice(r,1),v.__hoverMir=null},clearHover:function(v){for(var s=this._hoverElements,e=0;e15)break}}T.__drawIndex=b,T.__drawIndex0&&v>r[0]){for(w=0;wv);w++);T=e[r[w]]}if(r.splice(w+1,0,v),e[v]=s,!s.virtual)if(T){var S=T.dom;S.nextSibling?h.insertBefore(s.dom,S.nextSibling):h.appendChild(s.dom)}else h.firstChild?h.insertBefore(s.dom,h.firstChild):h.appendChild(s.dom)},eachLayer:function(v,s){var e=this._zlevelList,r,A;for(A=0;A0?f:0),this._needsManuallyCompositing),S.__builtin__||x("ZLevel "+h+" has been used by unkown layer "+S.id),S!==A&&(S.__used=!0,S.__startIndex!==e&&(S.__dirty=!0),S.__startIndex=e,S.incremental?S.__drawIndex=-1:S.__drawIndex=e,s(e),A=S),r.__dirty&&(S.__dirty=!0,S.incremental&&S.__drawIndex<0&&(S.__drawIndex=e))}s(e),this.eachBuiltinLayer(function(L,N){!L.__used&&L.getElementCount()>0&&(L.__dirty=!0,L.__startIndex=L.__endIndex=L.__drawIndex=0),L.__dirty&&L.__drawIndex<0&&(L.__drawIndex=L.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(v){v.clear()},setBackgroundColor:function(v){this._backgroundColor=v},configLayer:function(v,s){if(s){var e=this._layerConfig;e[v]?E.merge(e[v],s,!0):e[v]=s;for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:[],O=new Map;function D(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(R||[]).forEach(function(j){var c=j.key,_=j.children;Object(g.a)(c!=null,"Tree node must have a certain key: [".concat(C).concat(c,"]"));var M=String(c);Object(g.a)(!O.has(M)||c===null||c===void 0,"Same 'key' exist in the Tree: ".concat(M)),O.set(M,!0),D(_,"".concat(C).concat(M," > "))})}D(m)}function a(m){function O(D){var R=Object(x.a)(D);return R.map(function(C){if(!Object(i.i)(C))return Object(g.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var j=C.key,c=C.props,_=c.children,M=Object(E.a)(c,["children"]),k=Object(p.a)({key:j},M),v=O(_);return v.length&&(k.children=v),k}).filter(function(C){return C})}return O(m)}function u(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=new Set(O===!0?[]:O),R=[];function C(j){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return j.map(function(_,M){var k=Object(i.h)(c?c.pos:"0",M),v=o(_.key,k),s=Object(p.a)(Object(p.a)({},_),{},{parent:c,pos:k,children:null,data:_,isStart:[].concat(Object(P.a)(c?c.isStart:[]),[M===0]),isEnd:[].concat(Object(P.a)(c?c.isEnd:[]),[M===j.length-1])});return R.push(s),O===!0||D.has(v)?s.children=C(_.children||[],s):s.children=[],s})}return C(m),R}function n(m,O,D){var R;D?typeof D=="string"?R=function(c){return c[D]}:typeof D=="function"&&(R=function(c){return D(c)}):R=function(c,_){return o(c.key,_)};function C(j,c,_){var M=j?j.children:m,k=j?Object(i.h)(_.pos,c):"0";if(j){var v=R(j,k),s={node:j,index:c,pos:k,key:v,parentPos:_.node?_.pos:null,level:_.level+1};O(s)}M&&M.forEach(function(e,r){C(e,r,{node:j,pos:k,level:_?_.level+1:-1})})}C(null)}function d(m){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=O.initWrapper,R=O.processEntity,C=O.onProcessFinished,j=arguments.length>2?arguments[2]:void 0,c={},_={},M={posEntities:c,keyEntities:_};return D&&(M=D(M)||M),n(m,function(k){var v=k.node,s=k.index,e=k.pos,r=k.key,A=k.parentPos,T=k.level,w={node:v,index:s,key:r,pos:e,level:T},h=o(r,e);c[e]=w,_[h]=w,w.parent=c[A],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),R&&R(w,M)},j),C&&C(M),M}function f(m,O){var D=O.expandedKeys,R=O.selectedKeys,C=O.loadedKeys,j=O.loadingKeys,c=O.checkedKeys,_=O.halfCheckedKeys,M=O.dragOverNodeKey,k=O.dropPosition,v=O.keyEntities,s=v[m],e={eventKey:m,expanded:D.indexOf(m)!==-1,selected:R.indexOf(m)!==-1,loaded:C.indexOf(m)!==-1,loading:j.indexOf(m)!==-1,checked:c.indexOf(m)!==-1,halfChecked:_.indexOf(m)!==-1,pos:String(s?s.pos:""),dragOver:M===m&&k===0,dragOverGapTop:M===m&&k===-1,dragOverGapBottom:M===m&&k===1};return e}function y(m){var O=m.data,D=m.expanded,R=m.selected,C=m.checked,j=m.loaded,c=m.loading,_=m.halfChecked,M=m.dragOver,k=m.dragOverGapTop,v=m.dragOverGapBottom,s=m.pos,e=m.active,r=Object(p.a)(Object(p.a)({},O),{},{expanded:D,selected:R,checked:C,loaded:j,loading:c,halfChecked:_,dragOver:M,dragOverGapTop:k,dragOverGapBottom:v,pos:s,active:e});return"props"in r||Object.defineProperty(r,"props",{get:function(){return Object(g.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),m}}),r}},"8XDt":function(J,I,l){l("qH13");var P=l("aX58"),p=P.registerPainter,E=l("6fms");p("vml",E)},BPZU:function(J,I){var l=32,P=7,p=256;function E(n){for(var d=0;n>=l;)d|=n&1,n>>=1;return n+d}function x(n,d,f,y){var m=d+1;if(m===f)return 1;if(y(n[m++],n[d])<0){for(;m=0;)m++;return m-d}function g(n,d,f){for(f--;d>>1,m(O,n[C])<0?R=C:D=C+1;var j=y-D;switch(j){case 3:n[D+3]=n[D+2];case 2:n[D+2]=n[D+1];case 1:n[D+1]=n[D];break;default:for(;j>0;)n[D+j]=n[D+j-1],j--}n[D]=O}}function o(n,d,f,y,m,O){var D=0,R=0,C=1;if(O(n,d[f+m])>0){for(R=y-m;C0;)D=C,C=(C<<1)+1,C<=0&&(C=R);C>R&&(C=R),D+=m,C+=m}else{for(R=m+1;CR&&(C=R);var j=D;D=m-C,C=m-j}for(D++;D>>1);O(n,d[f+c])>0?D=c+1:C=c}return C}function t(n,d,f,y,m,O){var D=0,R=0,C=1;if(O(n,d[f+m])<0){for(R=m+1;CR&&(C=R);var j=D;D=m-C,C=m-j}else{for(R=y-m;C=0;)D=C,C=(C<<1)+1,C<=0&&(C=R);C>R&&(C=R),D+=m,C+=m}for(D++;D>>1);O(n,d[f+c])<0?C=c:D=c+1}return C}function a(n,d){var f=P,y=0,m=p,O=0,D,R,C=0;y=n.length,y<2*p&&(m=y>>>1);var j=[];O=y<120?5:y<1542?10:y<119151?19:40,D=[],R=[];function c(e,r){D[C]=e,R[C]=r,C+=1}function _(){for(;C>1;){var e=C-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;k(e)}}function M(){for(;C>1;){var e=C-2;e>0&&R[e-1]=P||Y>=P);if(W)break;N<0&&(N=0),N+=2}if(f=N,f<1&&(f=1),r===1){for(w=0;w=0;w--)n[K+w]=n[N+w];n[L]=j[S];return}for(var Y=f;;){var W=0,B=0,b=!1;do if(d(j[S],n[h])<0){if(n[L--]=n[h--],W++,B=0,--r===0){b=!0;break}}else if(n[L--]=j[S--],B++,W=0,--T===1){b=!0;break}while((W|B)=0;w--)n[K+w]=n[N+w];if(r===0){b=!0;break}}if(n[L--]=j[S--],--T===1){b=!0;break}if(B=T-o(n[h],j,0,T,T-1,d),B!==0){for(L-=B,S-=B,T-=B,K=L+1,N=S+1,w=0;w=P||B>=P);if(b)break;Y<0&&(Y=0),Y+=2}if(f=Y,f<1&&(f=1),T===1){for(L-=r,h-=r,K=L+1,N=h+1,w=r-1;w>=0;w--)n[K+w]=n[N+w];n[L]=j[S]}else{if(T===0)throw new Error;for(N=L-(T-1),w=0;wR&&(C=R),i(n,f,f+C,f+O,d),O=C}D.pushRun(f,O),D.mergeRuns(),m-=O,f+=O}while(m!==0);D.forceMergeRuns()}J.exports=u},BlVb:function(J,I,l){var P=l("hyiK"),p=1e-8;function E(g,i){return Math.abs(g-i).5?_:c}function u(c,_,M,k,v){var s=c.length;if(v===1)for(var e=0;ev;if(s)c.length=v;else for(var e=k;e=0&&!(Y[te]<=ze);te--);te=Math.min(te,T-2)}else{for(te=$;teze);te++);te=Math.min(te-1,T-2)}$=te,q=ze;var oe=Y[te+1]-Y[te];if(oe===0)return;if(ie=(ze-Y[te])/oe,A)if(we=W[te],Ae=W[te===0?te:te-1],_e=W[te>T-2?T-1:te+1],G=W[te>T-3?T-1:te+2],h)f(Ae,we,_e,G,ie,ie*ie,ie*ie*ie,e(Se,v),N);else{var de;if(S)de=f(Ae,we,_e,G,ie,ie*ie,ie*ie*ie,Z,1),de=O(Z);else{if(L)return a(we,_e,ie);de=y(Ae,we,_e,G,ie,ie*ie,ie*ie*ie)}r(Se,v,de)}else if(h)u(W[te],W[te+1],ie,e(Se,v),N);else{var de;if(S)u(W[te],W[te+1],ie,Z,1),de=O(Z);else{if(L)return a(W[te],W[te+1],ie);de=t(W[te],W[te+1],ie)}r(Se,v,de)}},pe=new P({target:c._target,life:K,loop:c._loop,delay:c._delay,onframe:fe,ondestroy:M});return _&&_!=="spline"&&(pe.easing=_),pe}var C=function(c,_,M,k){this._tracks={},this._target=c,this._loop=_||!1,this._getter=M||i,this._setter=k||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};C.prototype={when:function(c,_){var M=this._tracks;for(var k in _){if(!_.hasOwnProperty(k))continue;if(!M[k]){M[k]=[];var v=this._getter(this._target,k);if(v==null)continue;c!==0&&M[k].push({time:0,value:m(v)})}M[k].push({time:c,value:_[k]})}return this},during:function(c){return this._onframeList.push(c),this},pause:function(){for(var c=0;c1&&u&&u.length>1){var d=E(u)/E(n);!isFinite(d)&&(d=1),t.pinchScale=d;var f=x(u);return t.pinchX=f[0],t.pinchY=f[1],{type:"pinch",target:o[0].target,event:t}}}},i=p;J.exports=i},DBLp:function(J,I){function l(){}l.prototype={diff:function(g,i,o){o||(o=function(C,j){return C===j}),this.equals=o;var t=this;g=g.slice(),i=i.slice();var a=i.length,u=g.length,n=1,d=a+u,f=[{newPos:-1,components:[]}],y=this.extractCommon(f[0],i,g,0);if(f[0].newPos+1>=a&&y+1>=u){for(var m=[],O=0;O=a&&M+1>=u)return P(t,j.components,i,g);f[C]=j}n++}for(;n<=d;){var R=D();if(R)return R}},pushComponent:function(g,i,o){var t=g[g.length-1];t&&t.added===i&&t.removed===o?g[g.length-1]={count:t.count+1,added:i,removed:o}:g.push({count:1,added:i,removed:o})},extractCommon:function(g,i,o,t){for(var a=i.length,u=o.length,n=g.newPos,d=n-t,f=0;n+1x||d<-x}var i=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},o=i.prototype;o.transform=null,o.needLocalTransform=function(){return g(this.rotation)||g(this.position[0])||g(this.position[1])||g(this.scale[0]-1)||g(this.scale[1]-1)};var t=[];o.updateTransform=function(){var d=this.parent,f=d&&d.transform,y=this.needLocalTransform(),m=this.transform;if(!(y||f)){m&&E(m);return}m=m||P.create(),y?this.getLocalTransform(m):E(m),f&&(y?P.mul(m,d.transform,m):P.copy(m,d.transform)),this.transform=m;var O=this.globalScaleRatio;if(O!=null&&O!==1){this.getGlobalScale(t);var D=t[0]<0?-1:1,R=t[1]<0?-1:1,C=((t[0]-D)*O+D)/t[0]||0,j=((t[1]-R)*O+R)/t[1]||0;m[0]*=C,m[1]*=C,m[2]*=j,m[3]*=j}this.invTransform=this.invTransform||P.create(),P.invert(this.invTransform,m)},o.getLocalTransform=function(d){return i.getLocalTransform(this,d)},o.setTransform=function(d){var f=this.transform,y=d.dpr||1;f?d.setTransform(y*f[0],y*f[1],y*f[2],y*f[3],y*f[4],y*f[5]):d.setTransform(y,0,0,y,0,0)},o.restoreTransform=function(d){var f=d.dpr||1;d.setTransform(f,0,0,f,0,0)};var a=[],u=P.create();o.setLocalTransform=function(d){if(!d)return;var f=d[0]*d[0]+d[1]*d[1],y=d[2]*d[2]+d[3]*d[3],m=this.position,O=this.scale;g(f-1)&&(f=Math.sqrt(f)),g(y-1)&&(y=Math.sqrt(y)),d[0]<0&&(f=-f),d[3]<0&&(y=-y),m[0]=d[4],m[1]=d[5],O[0]=f,O[1]=y,this.rotation=Math.atan2(-d[1]/y,d[0]/f)},o.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,f=this.transform;d&&d.transform&&(P.mul(a,d.invTransform,f),f=a);var y=this.origin;y&&(y[0]||y[1])&&(u[4]=y[0],u[5]=y[1],P.mul(a,f,u),a[4]-=y[0],a[5]-=y[1],f=a),this.setLocalTransform(f)},o.getGlobalScale=function(d){var f=this.transform;return d=d||[],f?(d[0]=Math.sqrt(f[0]*f[0]+f[1]*f[1]),d[1]=Math.sqrt(f[2]*f[2]+f[3]*f[3]),f[0]<0&&(d[0]=-d[0]),f[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},o.transformCoordToLocal=function(d,f){var y=[d,f],m=this.invTransform;return m&&p.applyTransform(y,y,m),y},o.transformCoordToGlobal=function(d,f){var y=[d,f],m=this.transform;return m&&p.applyTransform(y,y,m),y},i.getLocalTransform=function(d,f){f=f||[],E(f);var y=d.origin,m=d.scale||[1,1],O=d.rotation||0,D=d.position||[0,0];return y&&(f[4]-=y[0],f[5]-=y[1]),P.scale(f,f,m),O&&P.rotate(f,f,O),y&&(f[4]+=y[0],f[5]+=y[1]),f[4]+=D[0],f[5]+=D[1],f};var n=i;J.exports=n},Dagg:function(J,I,l){var P=l("Gev7"),p=l("mFDi"),E=l("bYtY"),x=l("Xnb7");function g(o){P.call(this,o)}g.prototype={constructor:g,type:"image",brush:function(o,t){var a=this.style,u=a.image;a.bind(o,this,t);var n=this._image=x.createOrUpdateImage(u,this._image,this,this.onload);if(!n||!x.isImageReady(n))return;var d=a.x||0,f=a.y||0,y=a.width,m=a.height,O=n.width/n.height;if(y==null&&m!=null?y=m*O:m==null&&y!=null?m=y/O:y==null&&m==null&&(y=n.width,m=n.height),this.setTransform(o),a.sWidth&&a.sHeight){var D=a.sx||0,R=a.sy||0;o.drawImage(n,D,R,a.sWidth,a.sHeight,d,f,y,m)}else if(a.sx&&a.sy){var D=a.sx,R=a.sy,C=y-D,j=m-R;o.drawImage(n,D,R,C,j,d,f,y,m)}else o.drawImage(n,d,f,y,m);a.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},getBoundingRect:function(){var o=this.style;return this._rect||(this._rect=new p(o.x||0,o.y||0,o.width||0,o.height||0)),this._rect}},E.inherits(g,P);var i=g;J.exports=i},FWXW:function(J,I,l){J.exports={evaluateDetailContainer:"evaluateDetailContainer___2MugP",red:"red___2pIDU",green:"green___2xNIu",name:"name___1Ep7P"}},Fofx:function(J,I){var l=typeof Float32Array=="undefined"?Array:Float32Array;function P(){var u=new l(6);return p(u),u}function p(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u[4]=0,u[5]=0,u}function E(u,n){return u[0]=n[0],u[1]=n[1],u[2]=n[2],u[3]=n[3],u[4]=n[4],u[5]=n[5],u}function x(u,n,d){var f=n[0]*d[0]+n[2]*d[1],y=n[1]*d[0]+n[3]*d[1],m=n[0]*d[2]+n[2]*d[3],O=n[1]*d[2]+n[3]*d[3],D=n[0]*d[4]+n[2]*d[5]+n[4],R=n[1]*d[4]+n[3]*d[5]+n[5];return u[0]=f,u[1]=y,u[2]=m,u[3]=O,u[4]=D,u[5]=R,u}function g(u,n,d){return u[0]=n[0],u[1]=n[1],u[2]=n[2],u[3]=n[3],u[4]=n[4]+d[0],u[5]=n[5]+d[1],u}function i(u,n,d){var f=n[0],y=n[2],m=n[4],O=n[1],D=n[3],R=n[5],C=Math.sin(d),j=Math.cos(d);return u[0]=f*j+O*C,u[1]=-f*C+O*j,u[2]=y*j+D*C,u[3]=-y*C+j*D,u[4]=j*m+C*R,u[5]=j*R-C*m,u}function o(u,n,d){var f=d[0],y=d[1];return u[0]=n[0]*f,u[1]=n[1]*y,u[2]=n[2]*f,u[3]=n[3]*y,u[4]=n[4]*f,u[5]=n[5]*y,u}function t(u,n){var d=n[0],f=n[2],y=n[4],m=n[1],O=n[3],D=n[5],R=d*O-m*f;return R?(R=1/R,u[0]=O*R,u[1]=-m*R,u[2]=-f*R,u[3]=d*R,u[4]=(f*D-O*y)*R,u[5]=(m*y-d*D)*R,u):null}function a(u){var n=P();return E(n,u),n}I.create=P,I.identity=p,I.copy=E,I.mul=x,I.translate=g,I.rotate=i,I.scale=o,I.invert=t,I.clone=a},FxDU:function(J,I,l){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createSensor=void 0;var P=l("QO+J"),p=l("j5sG"),E=typeof ResizeObserver!="undefined"?p.createSensor:P.createSensor;I.createSensor=E},Gev7:function(J,I,l){var P=l("bYtY"),p=l("K2GJ"),E=l("1bdT"),x=l("ni6a");function g(o){o=o||{},E.call(this,o);for(var t in o)o.hasOwnProperty(t)&&t!=="style"&&(this[t]=o[t]);this.style=new p(o.style,this),this._rect=null,this.__clipPaths=null}g.prototype={constructor:g,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(o){},afterBrush:function(o){},brush:function(o,t){},getBoundingRect:function(){},contain:function(o,t){return this.rectContain(o,t)},traverse:function(o,t){o.call(t,this)},rectContain:function(o,t){var a=this.transformCoordToLocal(o,t),u=this.getBoundingRect();return u.contain(a[0],a[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(o){return this.animate("style",o)},attrKV:function(o,t){o!=="style"?E.prototype.attrKV.call(this,o,t):this.style.set(t)},setStyle:function(o,t){return this.style.set(o,t),this.dirty(!1),this},useStyle:function(o){return this.style=new p(o,this),this.dirty(!1),this},calculateTextPosition:null},P.inherits(g,E),P.mixin(g,x);var i=g;J.exports=i},Gytx:function(J,I){J.exports=function(P,p,E,x){var g=E?E.call(x,P,p):void 0;if(g!==void 0)return!!g;if(P===p)return!0;if(typeof P!="object"||!P||typeof p!="object"||!p)return!1;var i=Object.keys(P),o=Object.keys(p);if(i.length!==o.length)return!1;for(var t=Object.prototype.hasOwnProperty.bind(p),a=0;a3&&(t=l.call(t,1));for(var u=i.length,n=0;n4&&(t=l.call(t,1,t.length-1));for(var u=t[t.length-1],n=i.length,d=0;dthis._ux||D(_-this._yi)>this._uy||this._len<5;return this.addData(o.L,c,_),this._ctx&&M&&(this._needsDash()?this._dashedLineTo(c,_):this._ctx.lineTo(c,_)),M&&(this._xi=c,this._yi=_),this},bezierCurveTo:function(c,_,M,k,v,s){return this.addData(o.C,c,_,M,k,v,s),this._ctx&&(this._needsDash()?this._dashedBezierTo(c,_,M,k,v,s):this._ctx.bezierCurveTo(c,_,M,k,v,s)),this._xi=v,this._yi=s,this},quadraticCurveTo:function(c,_,M,k){return this.addData(o.Q,c,_,M,k),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(c,_,M,k):this._ctx.quadraticCurveTo(c,_,M,k)),this._xi=M,this._yi=k,this},arc:function(c,_,M,k,v,s){return this.addData(o.A,c,_,M,M,k,v-k,0,s?0:1),this._ctx&&this._ctx.arc(c,_,M,k,v,s),this._xi=y(v)*M+c,this._yi=m(v)*M+_,this},arcTo:function(c,_,M,k,v){return this._ctx&&this._ctx.arcTo(c,_,M,k,v),this},rect:function(c,_,M,k){return this._ctx&&this._ctx.rect(c,_,M,k),this.addData(o.R,c,_,M,k),this},closePath:function(){this.addData(o.Z);var c=this._ctx,_=this._x0,M=this._y0;return c&&(this._needsDash()&&this._dashedLineTo(_,M),c.closePath()),this._xi=_,this._yi=M,this},fill:function(c){c&&c.fill(),this.toStatic()},stroke:function(c){c&&c.stroke(),this.toStatic()},setLineDash:function(c){if(c instanceof Array){this._lineDash=c,this._dashIdx=0;for(var _=0,M=0;M_.length&&(this._expandData(),_=this.data);for(var M=0;M0&&h<=c||A<0&&h>=c||A===0&&(T>0&&S<=_||T<0&&S>=_);){if(K=this._dashIdx,L=v[K],h+=A*L,S+=T*L,this._dashIdx=(K+1)%N,A>0&&he||T>0&&Sr)continue;s[K%2?"moveTo":"lineTo"](A>=0?d(h,c):f(h,c),T>=0?d(S,_):f(S,_))}A=h-c,T=S-_,this._dashOffset=-O(A*A+T*T)},_dashedBezierTo:function(c,_,M,k,v,s){var e=this._dashSum,r=this._dashOffset,A=this._lineDash,T=this._ctx,w=this._xi,h=this._yi,S,L,N,K=P.cubicAt,Y=0,W=this._dashIdx,B=A.length,b,z,F=0;for(r<0&&(r=e+r),r%=e,S=0;S<1;S+=.1)L=K(w,c,M,v,S+.1)-K(w,c,M,v,S),N=K(h,_,k,s,S+.1)-K(h,_,k,s,S),Y+=O(L*L+N*N);for(;Wr);W++);for(S=(F-r)/Y;S<=1;)b=K(w,c,M,v,S),z=K(h,_,k,s,S),W%2?T.moveTo(b,z):T.lineTo(b,z),S+=A[W]/Y,W=(W+1)%B;W%2!==0&&T.lineTo(v,s),L=v-b,N=s-z,this._dashOffset=-O(L*L+N*N)},_dashedQuadraticTo:function(c,_,M,k){var v=M,s=k;M=(M+2*c)/3,k=(k+2*_)/3,c=(this._xi+2*c)/3,_=(this._yi+2*_)/3,this._dashedBezierTo(c,_,M,k,v,s)},toStatic:function(){var c=this.data;c instanceof Array&&(c.length=this._len,R&&(this.data=new Float32Array(c)))},getBoundingRect:function(){t[0]=t[1]=u[0]=u[1]=Number.MAX_VALUE,a[0]=a[1]=n[0]=n[1]=-Number.MAX_VALUE;for(var c=this.data,_=0,M=0,k=0,v=0,s=0;sA||D(r-s)>T||h===w-1)&&(c.lineTo(e,r),v=e,s=r);break;case o.C:c.bezierCurveTo(_[h++],_[h++],_[h++],_[h++],_[h++],_[h++]),v=_[h-2],s=_[h-1];break;case o.Q:c.quadraticCurveTo(_[h++],_[h++],_[h++],_[h++]),v=_[h-2],s=_[h-1];break;case o.A:var L=_[h++],N=_[h++],K=_[h++],Y=_[h++],W=_[h++],B=_[h++],b=_[h++],z=_[h++],F=K>Y?K:Y,X=K>Y?1:K/Y,H=K>Y?Y/K:1,$=Math.abs(K-Y)>.001,q=W+B;$?(c.translate(L,N),c.rotate(b),c.scale(X,H),c.arc(0,0,F,W,q,1-z),c.scale(1/X,1/H),c.rotate(-b),c.translate(-L,-N)):c.arc(L,N,F,W,q,1-z),h===1&&(M=y(W)*K+L,k=m(W)*Y+N),v=y(q)*K+L,s=m(q)*Y+N;break;case o.R:M=v=_[h],k=s=_[h+1],c.rect(_[h++],_[h++],_[h++],_[h++]);break;case o.Z:c.closePath(),v=M,s=k}}}},C.CMD=o;var j=C;J.exports=j},ItGF:function(J,I){var l={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?l={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?l={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?l={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:l=p(navigator.userAgent);var P=l;function p(E){var x={},g={},i=E.match(/Firefox\/([\d.]+)/),o=E.match(/MSIE\s([\d.]+)/)||E.match(/Trident\/.+?rv:(([\d.]+))/),t=E.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(E);return i&&(g.firefox=!0,g.version=i[1]),o&&(g.ie=!0,g.version=o[1]),t&&(g.edge=!0,g.version=t[1]),a&&(g.weChat=!0),{browser:g,os:x,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!g.ie&&!g.edge,pointerEventsSupported:"onpointerdown"in window&&(g.edge||g.ie&&g.version>=11),domSupported:typeof document!="undefined"}}J.exports=P},K2GJ:function(J,I,l){var P=l("fW2E"),p=l("gut8"),E=p.ContextCachedBy,x=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],g=function(d){this.extendFrom(d,!1)};function i(d,f,y){var m=f.x==null?0:f.x,O=f.x2==null?1:f.x2,D=f.y==null?0:f.y,R=f.y2==null?0:f.y2;f.global||(m=m*y.width+y.x,O=O*y.width+y.x,D=D*y.height+y.y,R=R*y.height+y.y),m=isNaN(m)?0:m,O=isNaN(O)?1:O,D=isNaN(D)?0:D,R=isNaN(R)?0:R;var C=d.createLinearGradient(m,D,O,R);return C}function o(d,f,y){var m=y.width,O=y.height,D=Math.min(m,O),R=f.x==null?.5:f.x,C=f.y==null?.5:f.y,j=f.r==null?.5:f.r;f.global||(R=R*m+y.x,C=C*O+y.y,j=j*D);var c=d.createRadialGradient(R,C,0,R,C,j);return c}g.prototype={constructor:g,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(d,f,y){var m=this,O=y&&y.style,D=!O||d.__attrCachedBy!==E.STYLE_BIND;d.__attrCachedBy=E.STYLE_BIND;for(var R=0;R0},extendFrom:function(d,f){if(d)for(var y in d)d.hasOwnProperty(y)&&(f===!0||(f===!1?!this.hasOwnProperty(y):d[y]!=null))&&(this[y]=d[y])},set:function(d,f){typeof d=="string"?this[d]=f:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,f,y){for(var m=f.type==="radial"?o:i,O=m(d,f,y),D=f.colorStops,R=0;R1&&arguments[1]!==void 0?arguments[1]:1,Ee=Me.length,Re=0;Re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(W).map(function(b,z){if(!g.isValidElement(b)||!b.type)return null;var F=b.type.isSelectOptGroup,X=b.key,H=b.props,$=H.children,q=Object(o.a)(H,["children"]);return B||!F?v(b):Object(M.a)(Object(M.a)({key:"__RC_SELECT_GRP__".concat(X===null?z:X,"__"),label:X},q),{},{options:s($)})}).filter(function(b){return b})}var e=l("2Qr1"),r=l("qNPg"),A=l("U8pU"),T=l("Kwbf"),w=l("WKfj");function h(W){var B=W.mode,b=W.options,z=W.children,F=W.backfill,X=W.allowClear,H=W.placeholder,$=W.getInputElement,q=W.showSearch,le=W.onSearch,ie=W.defaultOpen,Ae=W.autoFocus,we=W.labelInValue,_e=W.value,G=W.inputValue,Z=W.optionLabelProp,fe=B==="multiple"||B==="tags",pe=q!==void 0?q:fe||B==="combobox",Se=b||s(z);if(Object(T.a)(B!=="tags"||Se.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),B==="tags"||B==="combobox"){var ze=Se.some(function(de){return de.options?de.options.some(function(Me){return typeof("value"in Me?Me.value:Me.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(T.a)(!ze,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(B!=="combobox"||!Z,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(B==="combobox"||!F,"`backfill` only works with `combobox` mode."),Object(T.a)(B==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(T.b)(B!=="combobox"||!$||!X||!H,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),le&&!pe&&B!=="combobox"&&B!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!ie||Ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var te=Object(w.d)(_e);Object(T.a)(!we||te.every(function(de){return Object(A.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!fe||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(z){var oe=null;Object(k.a)(z).some(function(de){if(!g.isValidElement(de)||!de.type)return!1;var Me=de.type;if(Me.isSelectOption)return!1;if(Me.isSelectOptGroup){var Pe=Object(k.a)(de.props.children).every(function(Ie){return!g.isValidElement(Ie)||!de.type||Ie.type.isSelectOption?!0:(oe=Ie.type,!1)});return!Pe}return oe=Me,!0}),oe&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(oe.displayName||oe.name||oe,"`.")),Object(T.a)(G===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var S=h,L=Object(r.a)({prefixCls:"rc-select",components:{optionList:R},convertChildrenToData:s,flattenOptions:e.d,getLabeledValue:e.e,filterOptions:e.b,isValueDisabled:e.g,findValueOption:e.c,warningProps:S,fillOptionsWithMissingValue:e.a}),N=function(W){Object(E.a)(b,W);var B=Object(x.a)(b);function b(){var z;return Object(P.a)(this,b),z=B.apply(this,arguments),z.selectRef=g.createRef(),z.focus=function(){z.selectRef.current.focus()},z.blur=function(){z.selectRef.current.blur()},z}return Object(p.a)(b,[{key:"render",value:function(){return g.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),b}(g.Component);N.Option=j,N.OptGroup=_;var K=N,Y=I.c=K},MEGo:function(J,I,l){var P=l("4fz+"),p=l("Dagg"),E=l("dqUG"),x=l("2fw6"),g=l("x6Kt"),i=l("rmlV"),o=l("yxFR"),t=l("y+Vt"),a=l("h7HQ"),u=l("1Jh7"),n=l("SKnc"),d=l("K2GJ"),f=l("Fofx"),y=l("NC18"),m=y.createFromString,O=l("bYtY"),D=O.isString,R=O.extend,C=O.defaults,j=O.trim,c=O.each,_=/[\s,]+/;function M(b){if(D(b)){var z=new DOMParser;b=z.parseFromString(b,"text/xml")}for(b.nodeType===9&&(b=b.firstChild);b.nodeName.toLowerCase()!=="svg"||b.nodeType!==1;)b=b.nextSibling;return b}function k(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}k.prototype.parse=function(b,z){z=z||{};var F=M(b);if(!F)throw new Error("Illegal svg");var X=new P;this._root=X;var H=F.getAttribute("viewBox")||"",$=parseFloat(F.getAttribute("width")||z.width),q=parseFloat(F.getAttribute("height")||z.height);isNaN($)&&($=null),isNaN(q)&&(q=null),w(F,X,null,!0);for(var le=F.firstChild;le;)this._parseNode(le,X),le=le.nextSibling;var ie,Ae;if(H){var we=j(H).split(_);we.length>=4&&(ie={x:parseFloat(we[0]||0),y:parseFloat(we[1]||0),width:parseFloat(we[2]),height:parseFloat(we[3])})}if(ie&&$!=null&&q!=null&&(Ae=W(ie,$,q),!z.ignoreViewBox)){var _e=X;X=new P,X.add(_e),_e.scale=Ae.scale.slice(),_e.position=Ae.position.slice()}return!z.ignoreRootClip&&$!=null&&q!=null&&X.setClipPath(new g({shape:{x:0,y:0,width:$,height:q}})),{root:X,width:$,height:q,viewBoxRect:ie,viewBoxTransform:Ae}},k.prototype._parseNode=function(b,z){var F=b.nodeName.toLowerCase();F==="defs"?this._isDefine=!0:F==="text"&&(this._isText=!0);var X;if(this._isDefine){var H=s[F];if(H){var $=H.call(this,b),q=b.getAttribute("id");q&&(this._defs[q]=$)}}else{var H=v[F];H&&(X=H.call(this,b,z),z.add(X))}for(var le=b.firstChild;le;)le.nodeType===1&&this._parseNode(le,X),le.nodeType===3&&this._isText&&this._parseText(le,X),le=le.nextSibling;F==="defs"?this._isDefine=!1:F==="text"&&(this._isText=!1)},k.prototype._parseText=function(b,z){if(b.nodeType===1){var F=b.getAttribute("dx")||0,X=b.getAttribute("dy")||0;this._textX+=parseFloat(F),this._textY+=parseFloat(X)}var H=new E({style:{text:b.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});r(z,H),w(b,H,this._defs);var $=H.style.fontSize;$&&$<9&&(H.style.fontSize=9,H.scale=H.scale||[1,1],H.scale[0]*=$/9,H.scale[1]*=$/9);var q=H.getBoundingRect();return this._textX+=q.width,z.add(H),H};var v={g:function(b,z){var F=new P;return r(z,F),w(b,F,this._defs),F},rect:function(b,z){var F=new g;return r(z,F),w(b,F,this._defs),F.setShape({x:parseFloat(b.getAttribute("x")||0),y:parseFloat(b.getAttribute("y")||0),width:parseFloat(b.getAttribute("width")||0),height:parseFloat(b.getAttribute("height")||0)}),F},circle:function(b,z){var F=new x;return r(z,F),w(b,F,this._defs),F.setShape({cx:parseFloat(b.getAttribute("cx")||0),cy:parseFloat(b.getAttribute("cy")||0),r:parseFloat(b.getAttribute("r")||0)}),F},line:function(b,z){var F=new o;return r(z,F),w(b,F,this._defs),F.setShape({x1:parseFloat(b.getAttribute("x1")||0),y1:parseFloat(b.getAttribute("y1")||0),x2:parseFloat(b.getAttribute("x2")||0),y2:parseFloat(b.getAttribute("y2")||0)}),F},ellipse:function(b,z){var F=new i;return r(z,F),w(b,F,this._defs),F.setShape({cx:parseFloat(b.getAttribute("cx")||0),cy:parseFloat(b.getAttribute("cy")||0),rx:parseFloat(b.getAttribute("rx")||0),ry:parseFloat(b.getAttribute("ry")||0)}),F},polygon:function(b,z){var F=b.getAttribute("points");F&&(F=A(F));var X=new a({shape:{points:F||[]}});return r(z,X),w(b,X,this._defs),X},polyline:function(b,z){var F=new t;r(z,F),w(b,F,this._defs);var X=b.getAttribute("points");X&&(X=A(X));var H=new u({shape:{points:X||[]}});return H},image:function(b,z){var F=new p;return r(z,F),w(b,F,this._defs),F.setStyle({image:b.getAttribute("xlink:href"),x:b.getAttribute("x"),y:b.getAttribute("y"),width:b.getAttribute("width"),height:b.getAttribute("height")}),F},text:function(b,z){var F=b.getAttribute("x")||0,X=b.getAttribute("y")||0,H=b.getAttribute("dx")||0,$=b.getAttribute("dy")||0;this._textX=parseFloat(F)+parseFloat(H),this._textY=parseFloat(X)+parseFloat($);var q=new P;return r(z,q),w(b,q,this._defs),q},tspan:function(b,z){var F=b.getAttribute("x"),X=b.getAttribute("y");F!=null&&(this._textX=parseFloat(F)),X!=null&&(this._textY=parseFloat(X));var H=b.getAttribute("dx")||0,$=b.getAttribute("dy")||0,q=new P;return r(z,q),w(b,q,this._defs),this._textX+=H,this._textY+=$,q},path:function(b,z){var F=b.getAttribute("d")||"",X=m(F);return r(z,X),w(b,X,this._defs),X}},s={lineargradient:function(b){var z=parseInt(b.getAttribute("x1")||0,10),F=parseInt(b.getAttribute("y1")||0,10),X=parseInt(b.getAttribute("x2")||10,10),H=parseInt(b.getAttribute("y2")||0,10),$=new n(z,F,X,H);return e(b,$),$},radialgradient:function(b){}};function e(b,z){for(var F=b.firstChild;F;){if(F.nodeType===1){var X=F.getAttribute("offset");X.indexOf("%")>0?X=parseInt(X,10)/100:X?X=parseFloat(X):X=0;var H=F.getAttribute("stop-color")||"#000000";z.addColorStop(X,H)}F=F.nextSibling}}function r(b,z){b&&b.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),C(z.__inheritedStyle,b.__inheritedStyle))}function A(b){for(var z=j(b).split(_),F=[],X=0;X0;$-=2){var q=H[$],le=H[$-1];X=X||f.create();switch(le){case"translate":q=j(q).split(_),f.translate(X,X,[parseFloat(q[0]),parseFloat(q[1]||0)]);break;case"scale":q=j(q).split(_),f.scale(X,X,[parseFloat(q[0]),parseFloat(q[1]||q[0])]);break;case"rotate":q=j(q).split(_),f.rotate(X,X,parseFloat(q[0]));break;case"skew":q=j(q).split(_),console.warn("Skew transform is not supported yet");break;case"matrix":var q=j(q).split(_);X[0]=parseFloat(q[0]),X[1]=parseFloat(q[1]),X[2]=parseFloat(q[2]),X[3]=parseFloat(q[3]),X[4]=parseFloat(q[4]),X[5]=parseFloat(q[5]);break}}z.setLocalTransform(X)}}var K=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Y(b){var z=b.getAttribute("style"),F={};if(!z)return F;var X={};K.lastIndex=0;for(var H;(H=K.exec(z))!=null;)X[H[1]]=H[2];for(var $ in T)T.hasOwnProperty($)&&X[$]!=null&&(F[T[$]]=X[$]);return F}function W(b,z,F){var X=z/b.width,H=F/b.height,$=Math.min(X,H),q=[$,$],le=[-(b.x+b.width/2)*$+z/2,-(b.y+b.height/2)*$+F/2];return{scale:q,position:le}}function B(b,z){var F=new k;return F.parse(b,z)}I.parseXML=M,I.makeViewBoxTransform=W,I.parseSVG=B},MKOG:function(J,I,l){var P=l("bYtY"),p=l("YH21"),E=p.Dispatcher,x=l("mLcG"),g=l("Bq2U"),i=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,E.call(this)};i.prototype={constructor:i,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var a=t.getClips(),u=0;u=0&&this._clips.splice(a,1)},removeAnimator:function(t){for(var a=t.getClips(),u=0;u1&&(v*=x(S),s*=x(S));var L=(M===k?-1:1)*x((v*v*(s*s)-v*v*(h*h)-s*s*(w*w))/(v*v*(h*h)+s*s*(w*w)))||0,N=L*v*h/s,K=L*-s*w/v,Y=(C+c)/2+i(T)*N-g(T)*K,W=(j+_)/2+g(T)*N+i(T)*K,B=u([1,0],[(w-N)/v,(h-K)/s]),b=[(w-N)/v,(h-K)/s],z=[(-1*w-N)/v,(-1*h-K)/s],F=u(b,z);a(b,z)<=-1&&(F=o),a(b,z)>=1&&(F=0),k===0&&F>0&&(F=F-2*o),k===1&&F<0&&(F=F+2*o),A.addData(r,Y,W,v,s,B,F,T,k)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y(C){if(!C)return new p;for(var j=0,c=0,_=j,M=c,k,v=new p,s=p.CMD,e=C.match(d),r=0;r1&&arguments[1]!==void 0?arguments[1]:60,g=null;return function(){for(var i=this,o=arguments.length,t=new Array(o),a=0;a=0;O-=1){var D=t.get(O)||new Set;D.forEach(function(R){var C=R.parent,j=R.node;if(u(j)||!R.parent||m.has(R.parent.key))return;if(u(R.parent.node)){m.add(C.key);return}var c=!0,_=!1;(C.children||[]).filter(function(M){return!u(M.node)}).forEach(function(M){var k=M.key,v=n.has(k);c&&!v&&(c=!1),!_&&(v||d.has(k))&&(_=!0)}),c&&n.add(C.key),_&&d.add(C.key),m.add(C.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(p(d,n))}}function g(o,t,a,u,n){for(var d=new Set(o),f=new Set(t),y=0;y<=u;y+=1){var m=a.get(y)||new Set;m.forEach(function(C){var j=C.key,c=C.node,_=C.children,M=_===void 0?[]:_;!d.has(j)&&!f.has(j)&&!n(c)&&M.filter(function(k){return!n(k.node)}).forEach(function(k){d.delete(k.key)})})}f=new Set;for(var O=new Set,D=u;D>=0;D-=1){var R=a.get(D)||new Set;R.forEach(function(C){var j=C.parent,c=C.node;if(n(c)||!C.parent||O.has(C.parent.key))return;if(n(C.parent.node)){O.add(j.key);return}var _=!0,M=!1;(j.children||[]).filter(function(k){return!n(k.node)}).forEach(function(k){var v=k.key,s=d.has(v);_&&!s&&(_=!1),!M&&(s||f.has(v))&&(M=!0)}),_||d.delete(j.key),M&&f.add(j.key),O.add(j.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(p(f,d))}}function i(o,t,a,u){var n=[],d;u?d=u:d=E;var f=new Set(o.filter(function(D){var R=!!a[D];return R||n.push(D),R})),y=new Map,m=0;Object.keys(a).forEach(function(D){var R=a[D],C=R.level,j=y.get(C);j||(j=new Set,y.set(C,j)),j.add(R),m=Math.max(m,C)}),Object(P.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(D){return"'".concat(D,"'")}).join(", ")));var O;return t===!0?O=x(f,y,m,d):O=g(f,t.halfCheckedKeys,y,m,d),O}},OLES:function(J,I,l){"use strict";var P=l("U8pU"),p=l("VTBJ"),E=l("Ff2n"),x=l("q1tI"),g=l("uciX"),i=l("7ixt"),o=function(f){var y=f.overlay,m=f.prefixCls,O=f.id,D=f.overlayInnerStyle;return x.createElement("div",{className:"".concat(m,"-inner"),id:O,role:"tooltip",style:D},typeof y=="function"?y():y)},t=o,a=function(f,y){var m=f.overlayClassName,O=f.trigger,D=O===void 0?["hover"]:O,R=f.mouseEnterDelay,C=R===void 0?0:R,j=f.mouseLeaveDelay,c=j===void 0?.1:j,_=f.overlayStyle,M=f.prefixCls,k=M===void 0?"rc-tooltip":M,v=f.children,s=f.onVisibleChange,e=f.afterVisibleChange,r=f.transitionName,A=f.animation,T=f.placement,w=T===void 0?"right":T,h=f.align,S=h===void 0?{}:h,L=f.destroyTooltipOnHide,N=L===void 0?!1:L,K=f.defaultVisible,Y=f.getTooltipContainer,W=f.overlayInnerStyle,B=Object(E.a)(f,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),b=Object(x.useRef)(null);Object(x.useImperativeHandle)(y,function(){return b.current});var z=Object(p.a)({},B);"visible"in f&&(z.popupVisible=f.visible);var F=function(){var le=f.arrowContent,ie=le===void 0?null:le,Ae=f.overlay,we=f.id;return[x.createElement("div",{className:"".concat(k,"-arrow"),key:"arrow"},ie),x.createElement(t,{key:"content",prefixCls:k,id:we,overlay:Ae,overlayInnerStyle:W})]},X=!1,H=!1;if(typeof N=="boolean")X=N;else if(N&&Object(P.a)(N)==="object"){var $=N.keepParent;X=$===!0,H=$===!1}return x.createElement(g.a,Object.assign({popupClassName:m,prefixCls:k,popup:F,action:D,builtinPlacements:i.a,popupPlacement:w,ref:b,popupAlign:S,getPopupContainer:Y,onPopupVisibleChange:s,afterPopupVisibleChange:e,popupTransitionName:r,popupAnimation:A,defaultPopupVisible:K,destroyPopupOnHide:X,autoDestroy:H,mouseLeaveDelay:c,popupStyle:_,mouseEnterDelay:C},z),v)},u=Object(x.forwardRef)(a),n=I.a=u},OS9S:function(J,I,l){var P=l("bYtY"),p=P.inherits,E=l("Gev7"),x=l("mFDi");function g(t){E.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}g.prototype.incremental=!0,g.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},g.prototype.addDisplayable=function(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},g.prototype.addDisplayables=function(t,a){a=a||!1;for(var u=0;u=0&&v.splice(s,1),v}function n(M,k){var v=M.slice();return v.indexOf(k)===-1&&v.push(k),v}function d(M){return M.split("-")}function f(M,k){return"".concat(M,"-").concat(k)}function y(M){return M&&M.type&&M.type.isTreeNode}function m(M,k){var v=[M],s=k[M];function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.forEach(function(A){var T=A.key,w=A.children;v.push(T),e(w)})}return e(s.children),v}function O(M,k){var v=M.clientY,s=k.selectHandle.getBoundingClientRect(),e=s.top,r=s.bottom,A=s.height,T=Math.max(A*t,a);return v<=e+T?-1:v>=r-T?1:0}function D(M,k){if(!M)return;var v=k.multiple;return v?M.slice():M.length?[M[0]]:M}var R=function(k){return k};function C(M,k){if(!M)return[];var v=k||{},s=v.processProps,e=s===void 0?R:s,r=Array.isArray(M)?M:[M];return r.map(function(A){var T=A.children,w=Object(E.a)(A,["children"]),h=C(T,k);return g.a.createElement(o.a,Object.assign({},e(w)),h)})}function j(M){if(!M)return null;var k;if(Array.isArray(M))k={checkedKeys:M,halfCheckedKeys:void 0};else if(Object(p.a)(M)==="object")k={checkedKeys:M.checked||void 0,halfCheckedKeys:M.halfChecked||void 0};else return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function c(M,k){var v=new Set;function s(e){if(v.has(e))return;var r=k[e];if(!r)return;v.add(e);var A=r.parent,T=r.node;if(T.disabled)return;A&&s(A.key)}return(M||[]).forEach(function(e){s(e)}),Object(P.a)(v)}function _(M){var k={};return Object.keys(M).forEach(function(v){(v.startsWith("data-")||v.startsWith("aria-"))&&(k[v]=M[v])}),k}},P47w:function(J,I,l){var P=l("hydK"),p=P.createElement,E=l("IMiH"),x=l("mFDi"),g=l("Fofx"),i=l("6GrX"),o=l("pzxd"),t=l("dqUG"),a=E.CMD,u=Array.prototype.join,n="none",d=Math.round,f=Math.sin,y=Math.cos,m=Math.PI,O=Math.PI*2,D=180/m,R=1e-4;function C(b){return d(b*1e4)/1e4}function j(b){return b-R}function c(b,z){var F=z?b.textFill:b.fill;return F!=null&&F!==n}function _(b,z){var F=z?b.textStroke:b.stroke;return F!=null&&F!==n}function M(b,z){z&&k(b,"transform","matrix("+u.call(z,",")+")")}function k(b,z,F){(!F||F.type!=="linear"&&F.type!=="radial")&&b.setAttribute(z,F)}function v(b,z,F){b.setAttributeNS("http://www.w3.org/1999/xlink",z,F)}function s(b,z,F,X){if(c(z,F)){var H=F?z.textFill:z.fill;H=H==="transparent"?n:H,k(b,"fill",H),k(b,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else k(b,"fill",n);if(_(z,F)){var $=F?z.textStroke:z.stroke;$=$==="transparent"?n:$,k(b,"stroke",$);var q=F?z.textStrokeWidth:z.lineWidth,le=!F&&z.strokeNoScale?X.getLineScale():1;k(b,"stroke-width",q/le),k(b,"paint-order",F?"stroke":"fill"),k(b,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var ie=z.lineDash;ie?(k(b,"stroke-dasharray",z.lineDash.join(",")),k(b,"stroke-dashoffset",d(z.lineDashOffset||0))):k(b,"stroke-dasharray",""),z.lineCap&&k(b,"stroke-linecap",z.lineCap),z.lineJoin&&k(b,"stroke-linejoin",z.lineJoin),z.miterLimit&&k(b,"stroke-miterlimit",z.miterLimit)}else k(b,"stroke",n)}function e(b){for(var z=[],F=b.data,X=b.len(),H=0;H=O:-Z>=O),te=Z>0?Z%O:Z%O+O,oe=!1;ze?oe=!0:j(Se)?oe=!1:oe=te>=m===!!pe;var de=C(ie+we*y(G)),Me=C(Ae+_e*f(G));ze&&(pe?Z=O-1e-4:Z=-O+1e-4,oe=!0,H===9&&z.push("M",de,Me));var Pe=C(ie+we*y(G+Z)),Ie=C(Ae+_e*f(G+Z));z.push("A",C(we),C(_e),d(fe*D),+oe,+pe,Pe,Ie);break;case a.Z:q="Z";break;case a.R:var Pe=C(F[H++]),Ie=C(F[H++]),Be=C(F[H++]),Ke=C(F[H++]);z.push("M",Pe,Ie,"L",Pe+Be,Ie,"L",Pe+Be,Ie+Ke,"L",Pe,Ie+Ke,"L",Pe,Ie);break}q&&z.push(q);for(var We=0;We$e){for(;Ke255?255:e}function x(e){return e=Math.round(e),e<0?0:e>360?360:e}function g(e){return e<0?0:e>1?1:e}function i(e){return e.length&&e.charAt(e.length-1)==="%"?E(parseFloat(e)/100*255):E(parseInt(e,10))}function o(e){return e.length&&e.charAt(e.length-1)==="%"?g(parseFloat(e)/100):g(parseFloat(e))}function t(e,r,A){return A<0?A+=1:A>1&&(A-=1),A*6<1?e+(r-e)*A*6:A*2<1?r:A*3<2?e+(r-e)*(2/3-A)*6:e}function a(e,r,A){return e+(r-e)*A}function u(e,r,A,T,w){return e[0]=r,e[1]=A,e[2]=T,e[3]=w,e}function n(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e}var d=new P(20),f=null;function y(e,r){f&&n(f,r),f=d.put(e,f||r.slice())}function m(e,r){if(!e)return;r=r||[];var A=d.get(e);if(A)return n(r,A);e=e+"";var T=e.replace(/ /g,"").toLowerCase();if(T in p)return n(r,p[T]),y(e,r),r;if(T.charAt(0)==="#"){if(T.length===4){var w=parseInt(T.substr(1),16);if(!(w>=0&&w<=4095)){u(r,0,0,0,1);return}return u(r,(w&3840)>>4|(w&3840)>>8,w&240|(w&240)>>4,w&15|(w&15)<<4,1),y(e,r),r}else if(T.length===7){var w=parseInt(T.substr(1),16);if(!(w>=0&&w<=16777215)){u(r,0,0,0,1);return}return u(r,(w&16711680)>>16,(w&65280)>>8,w&255,1),y(e,r),r}return}var h=T.indexOf("("),S=T.indexOf(")");if(h!==-1&&S+1===T.length){var L=T.substr(0,h),N=T.substr(h+1,S-(h+1)).split(","),K=1;switch(L){case"rgba":if(N.length!==4){u(r,0,0,0,1);return}K=o(N.pop());case"rgb":if(N.length!==3){u(r,0,0,0,1);return}return u(r,i(N[0]),i(N[1]),i(N[2]),K),y(e,r),r;case"hsla":if(N.length!==4){u(r,0,0,0,1);return}return N[3]=o(N[3]),O(N,r),y(e,r),r;case"hsl":if(N.length!==3){u(r,0,0,0,1);return}return O(N,r),y(e,r),r;default:return}}u(r,0,0,0,1);return}function O(e,r){var A=(parseFloat(e[0])%360+360)%360/360,T=o(e[1]),w=o(e[2]),h=w<=.5?w*(T+1):w+T-w*T,S=w*2-h;return r=r||[],u(r,E(t(S,h,A+1/3)*255),E(t(S,h,A)*255),E(t(S,h,A-1/3)*255),1),e.length===4&&(r[3]=e[3]),r}function D(e){if(!e)return;var r=e[0]/255,A=e[1]/255,T=e[2]/255,w=Math.min(r,A,T),h=Math.max(r,A,T),S=h-w,L=(h+w)/2,N,K;if(S===0)N=0,K=0;else{L<.5?K=S/(h+w):K=S/(2-h-w);var Y=((h-r)/6+S/2)/S,W=((h-A)/6+S/2)/S,B=((h-T)/6+S/2)/S;r===h?N=B-W:A===h?N=1/3+Y-B:T===h&&(N=2/3+W-Y),N<0&&(N+=1),N>1&&(N-=1)}var b=[N*360,K,L];return e[3]!=null&&b.push(e[3]),b}function R(e,r){var A=m(e);if(A){for(var T=0;T<3;T++)r<0?A[T]=A[T]*(1-r)|0:A[T]=(255-A[T])*r+A[T]|0,A[T]>255?A[T]=255:e[T]<0&&(A[T]=0);return s(A,A.length===4?"rgba":"rgb")}}function C(e){var r=m(e);if(r)return((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1)}function j(e,r,A){if(!(r&&r.length)||!(e>=0&&e<=1))return;A=A||[];var T=e*(r.length-1),w=Math.floor(T),h=Math.ceil(T),S=r[w],L=r[h],N=T-w;return A[0]=E(a(S[0],L[0],N)),A[1]=E(a(S[1],L[1],N)),A[2]=E(a(S[2],L[2],N)),A[3]=g(a(S[3],L[3],N)),A}var c=j;function _(e,r,A){if(!(r&&r.length)||!(e>=0&&e<=1))return;var T=e*(r.length-1),w=Math.floor(T),h=Math.ceil(T),S=m(r[w]),L=m(r[h]),N=T-w,K=s([E(a(S[0],L[0],N)),E(a(S[1],L[1],N)),E(a(S[2],L[2],N)),g(a(S[3],L[3],N))],"rgba");return A?{color:K,leftIndex:w,rightIndex:h,value:T}:K}var M=_;function k(e,r,A,T){if(e=m(e),e)return e=D(e),r!=null&&(e[0]=x(r)),A!=null&&(e[1]=o(A)),T!=null&&(e[2]=o(T)),s(O(e),"rgba")}function v(e,r){if(e=m(e),e&&r!=null)return e[3]=g(r),s(e,"rgba")}function s(e,r){if(!e||!e.length)return;var A=e[0]+","+e[1]+","+e[2];return(r==="rgba"||r==="hsva"||r==="hsla")&&(A+=","+e[3]),r+"("+A+")"}I.parse=m,I.lift=R,I.toHex=C,I.fastLerp=j,I.fastMapToColor=c,I.lerp=_,I.mapToColor=M,I.modifyHSL=k,I.modifyAlpha=v,I.stringify=s},QuXc:function(J,I){var l=function(p){this.colorStops=p||[]};l.prototype={constructor:l,addColorStop:function(p,E){this.colorStops.push({offset:p,color:E})}};var P=l;J.exports=P},RDYZ:function(J,I,l){var P=l("dMvE");function p(x){this._target=x.target,this._life=x.life||1e3,this._delay=x.delay||0,this._initialized=!1,this.loop=x.loop==null?!1:x.loop,this.gap=x.gap||0,this.easing=x.easing||"Linear",this.onframe=x.onframe,this.ondestroy=x.ondestroy,this.onrestart=x.onrestart,this._pausedTime=0,this._paused=!1}p.prototype={constructor:p,step:function(x,g){if(this._initialized||(this._startTime=x+this._delay,this._initialized=!0),this._paused){this._pausedTime+=g;return}var i=(x-this._startTime-this._pausedTime)/this._life;if(i<0)return;i=Math.min(i,1);var o=this.easing,t=typeof o=="string"?P[o]:o,a=typeof t=="function"?t(i):i;return this.fire("frame",a),i===1?this.loop?(this.restart(x),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(x){var g=(x-this._startTime-this._pausedTime)%this._life;this._startTime=x-g+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(x,g){x="on"+x,this[x]&&this[x](this._target,g)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var E=p;J.exports=E},RXMa:function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(E,x){var g=x.cx,i=x.cy,o=Math.PI*2;E.moveTo(g+x.r,i),E.arc(g,i,x.r,0,o,!1),E.moveTo(g+x.r0,i),E.arc(g,i,x.r0,0,o,!0)}});J.exports=p},"SA+Z":function(J,I,l){var P=l("wTVA"),p=l("EbDI"),E=l("ZhPi"),x=l("wkBT");function g(i){return P(i)||p(i)||E(i)||x()}J.exports=g,J.exports.__esModule=!0,J.exports.default=J.exports},SKnc:function(J,I,l){var P=l("bYtY"),p=l("QuXc"),E=function(g,i,o,t,a,u){this.x=g==null?0:g,this.y=i==null?0:i,this.x2=o==null?1:o,this.y2=t==null?0:t,this.type="linear",this.global=u||!1,p.call(this,a)};E.prototype={constructor:E},P.inherits(E,p);var x=E;J.exports=x},SUKs:function(J,I,l){var P=l("LPTA"),p=P.debugMode,E=function(){};p===1&&(E=console.error);var x=E;J.exports=x},Sj9i:function(J,I,l){var P=l("QBsz"),p=P.create,E=P.distSquare,x=Math.pow,g=Math.sqrt,i=1e-8,o=1e-4,t=g(3),a=1/3,u=p(),n=p(),d=p();function f(e){return e>-i&&ei||e<-i}function m(e,r,A,T,w){var h=1-w;return h*h*(h*e+3*w*r)+w*w*(w*T+3*h*A)}function O(e,r,A,T,w){var h=1-w;return 3*(((r-e)*h+2*(A-r)*w)*h+(T-A)*w*w)}function D(e,r,A,T,w,h){var S=T+3*(r-A)-e,L=3*(A-r*2+e),N=3*(r-e),K=e-w,Y=L*L-3*S*N,W=L*N-9*S*K,B=N*N-3*L*K,b=0;if(f(Y)&&f(W))if(f(L))h[0]=0;else{var z=-N/L;z>=0&&z<=1&&(h[b++]=z)}else{var F=W*W-4*Y*B;if(f(F)){var X=W/Y,z=-L/S+X,H=-X/2;z>=0&&z<=1&&(h[b++]=z),H>=0&&H<=1&&(h[b++]=H)}else if(F>0){var $=g(F),q=Y*L+1.5*S*(-W+$),le=Y*L+1.5*S*(-W-$);q<0?q=-x(-q,a):q=x(q,a),le<0?le=-x(-le,a):le=x(le,a);var z=(-L-(q+le))/(3*S);z>=0&&z<=1&&(h[b++]=z)}else{var ie=(2*Y*L-3*S*W)/(2*g(Y*Y*Y)),Ae=Math.acos(ie)/3,we=g(Y),_e=Math.cos(Ae),z=(-L-2*we*_e)/(3*S),H=(-L+we*(_e+t*Math.sin(Ae)))/(3*S),G=(-L+we*(_e-t*Math.sin(Ae)))/(3*S);z>=0&&z<=1&&(h[b++]=z),H>=0&&H<=1&&(h[b++]=H),G>=0&&G<=1&&(h[b++]=G)}}return b}function R(e,r,A,T,w){var h=6*A-12*r+6*e,S=9*r+3*T-3*e-9*A,L=3*r-3*e,N=0;if(f(S)){if(y(h)){var K=-L/h;K>=0&&K<=1&&(w[N++]=K)}}else{var Y=h*h-4*S*L;if(f(Y))w[0]=-h/(2*S);else if(Y>0){var W=g(Y),K=(-h+W)/(2*S),B=(-h-W)/(2*S);K>=0&&K<=1&&(w[N++]=K),B>=0&&B<=1&&(w[N++]=B)}}return N}function C(e,r,A,T,w,h){var S=(r-e)*w+e,L=(A-r)*w+r,N=(T-A)*w+A,K=(L-S)*w+S,Y=(N-L)*w+L,W=(Y-K)*w+K;h[0]=e,h[1]=S,h[2]=K,h[3]=W,h[4]=W,h[5]=Y,h[6]=N,h[7]=T}function j(e,r,A,T,w,h,S,L,N,K,Y){var W,B=.005,b=Infinity,z,F,X,H;u[0]=N,u[1]=K;for(var $=0;$<1;$+=.05)n[0]=m(e,A,w,S,$),n[1]=m(r,T,h,L,$),X=E(u,n),X=0&&X=0&&K<=1&&(w[N++]=K)}}else{var Y=S*S-4*h*L;if(f(Y)){var K=-S/(2*h);K>=0&&K<=1&&(w[N++]=K)}else if(Y>0){var W=g(Y),K=(-S+W)/(2*h),B=(-S-W)/(2*h);K>=0&&K<=1&&(w[N++]=K),B>=0&&B<=1&&(w[N++]=B)}}return N}function k(e,r,A){var T=e+A-2*r;return T===0?.5:(e-r)/T}function v(e,r,A,T,w){var h=(r-e)*T+e,S=(A-r)*T+r,L=(S-h)*T+h;w[0]=e,w[1]=h,w[2]=L,w[3]=L,w[4]=S,w[5]=A}function s(e,r,A,T,w,h,S,L,N){var K,Y=.005,W=Infinity;u[0]=S,u[1]=L;for(var B=0;B<1;B+=.05){n[0]=c(e,A,w,B),n[1]=c(r,T,h,B);var b=E(u,n);b=0&&b=0;--j)if(C[j]===R)return!0;return!1}),D):null:D[0]},f.prototype.update=function(m,O){if(!m)return;var D=this.getDefs(!1);if(m[this._domName]&&D.contains(m[this._domName]))typeof O=="function"&&O(m);else{var R=this.add(m);R&&(m[this._domName]=R)}},f.prototype.addDom=function(m){var O=this.getDefs(!0);O.appendChild(m)},f.prototype.removeDom=function(m){var O=this.getDefs(!1);O&&m[this._domName]&&(O.removeChild(m[this._domName]),m[this._domName]=null)},f.prototype.getDoms=function(){var m=this.getDefs(!1);if(!m)return[];var O=[];return E.each(this._tagNames,function(D){var R=m.getElementsByTagName(D);O=O.concat([].slice.call(R))}),O},f.prototype.markAllUnused=function(){var m=this.getDoms(),O=this;E.each(m,function(D){D[O._markLabel]=n})},f.prototype.markUsed=function(m){m&&(m[this._markLabel]=d)},f.prototype.removeUnused=function(){var m=this.getDefs(!1);if(!m)return;var O=this.getDoms(),D=this;E.each(O,function(R){R[D._markLabel]!==d&&m.removeChild(R)})},f.prototype.getSvgProxy=function(m){return m instanceof x?t:m instanceof g?a:m instanceof i?u:t},f.prototype.getTextSvgElement=function(m){return m.__textSvgEl},f.prototype.getSvgElement=function(m){return m.__svgEl};var y=f;J.exports=y},T6xi:function(J,I,l){var P=l("YgsL"),p=l("nCxF");function E(x,g,i){var o=g.points,t=g.smooth;if(o&&o.length>=2){if(t&&t!=="spline"){var a=p(o,t,i,g.smoothConstraint);x.moveTo(o[0][0],o[0][1]);for(var u=o.length,n=0;n<(i?u:u-1);n++){var d=a[n*2],f=a[n*2+1],y=o[(n+1)%u];x.bezierCurveTo(d[0],d[1],f[0],f[1],y[0],y[1])}}else{t==="spline"&&(o=P(o,i)),x.moveTo(o[0][0],o[0][1]);for(var n=1,m=o.length;ng&&(d=t+a,t*=g/d,a*=g/d),u+n>g&&(d=u+n,u*=g/d,n*=g/d),a+u>i&&(d=a+u,a*=i/d,u*=i/d),t+n>i&&(d=t+n,t*=i/d,n*=i/d),P.moveTo(E+t,x),P.lineTo(E+g-a,x),a!==0&&P.arc(E+g-a,x+a,a,-Math.PI/2,0),P.lineTo(E+g,x+i-u),u!==0&&P.arc(E+g-u,x+i-u,u,0,Math.PI/2),P.lineTo(E+n,x+i),n!==0&&P.arc(E+n,x+i-n,n,Math.PI/2,Math.PI),P.lineTo(E,x+t),t!==0&&P.arc(E+t,x+t,t,Math.PI,Math.PI*1.5)}I.buildPath=l},WaYH:function(J,I,l){"use strict";var P=l("rePB"),p=l("Ff2n"),E=l("VTBJ"),x=l("1OyB"),g=l("vuIU"),i=l("JX7q"),o=l("Ji7U"),t=l("LK+K"),a=l("q1tI"),u=l("TSYQ"),n=l.n(u),d=l("sboe"),f=l("OZM5"),y=function(k){var v=k.prefixCls,s=k.level,e=k.isStart,r=k.isEnd;if(!s)return null;for(var A="".concat(v,"-indent-unit"),T=[],w=0;w=0;if(!_)a(R,C,C,j),C.zrDelta=C.wheelDelta?C.wheelDelta/120:-(C.detail||0)/3;else{var M=c!=="touchend"?C.targetTouches[0]:C.changedTouches[0];M&&a(R,M,C,j)}var k=C.button;return C.which==null&&k!==void 0&&o.test(C.type)&&(C.which=k&1?1:k&2?3:k&4?2:0),C}function f(R,C,j,c){i?R.addEventListener(C,j,c):R.attachEvent("on"+C,j)}function y(R,C,j,c){i?R.removeEventListener(C,j,c):R.detachEvent("on"+C,j)}var m=i?function(R){R.preventDefault(),R.stopPropagation(),R.cancelBubble=!0}:function(R){R.returnValue=!1,R.cancelBubble=!0};function O(R){return R.which===2||R.which===3}function D(R){return R.which>1}I.clientToLocal=a,I.getNativeEvent=n,I.normalizeEvent=d,I.addEventListener=f,I.removeEventListener=y,I.stop=m,I.isMiddleOrRightButtonOnMouseUpDown=O,I.notLeftMouse=D},YgsL:function(J,I,l){var P=l("QBsz"),p=P.distance;function E(g,i,o,t,a,u,n){var d=(o-g)*.5,f=(t-i)*.5;return(2*(i-o)+d+f)*n+(-3*(i-o)-2*d-f)*u+d*a+i}function x(g,i){for(var o=g.length,t=[],a=0,u=1;uo-2?o-1:f+1],R=g[f>o-3?o-1:f+2]);var C=y*y,j=y*C;t.push([E(m[0],O[0],D[0],R[0],y,C,j),E(m[1],O[1],D[1],R[1],y,C,j)])}return t}J.exports=x},ZW5e:function(J,I,l){J.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},Ze12:function(J,I,l){var P=l("ItGF"),p=l("hOwI"),E=p.buildTransformer,x="___zrEVENTSAVED",g=[];function i(n,d,f,y,m){return o(g,d,y,m,!0)&&o(n,f,g[0],g[1])}function o(n,d,f,y,m){if(d.getBoundingClientRect&&P.domSupported&&!u(d)){var O=d[x]||(d[x]={}),D=t(d,O),R=a(D,O,m);if(R)return R(n,f,y),!0}return!1}function t(n,d){var f=d.markers;if(f)return f;f=d.markers=[];for(var y=["left","right"],m=["top","bottom"],O=0;O<4;O++){var D=document.createElement("div"),R=D.style,C=O%2,j=(O>>1)%2;R.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",y[C]+":0",m[j]+":0",y[1-C]+":auto",m[1-j]+":auto",""].join("!important;"),n.appendChild(D),f.push(D)}return f}function a(n,d,f){for(var y=f?"invTrans":"trans",m=d[y],O=d.srcCoords,D=!0,R=[],C=[],j=0;j<4;j++){var c=n[j].getBoundingClientRect(),_=2*j,M=c.left,k=c.top;R.push(M,k),D=D&&O&&M===O[_]&&k===O[_+1],C.push(n[j].offsetLeft,n[j].offsetTop)}return D&&m?m:(d.srcCoords=R,d[y]=f?E(C,R):E(R,C))}function u(n){return n.nodeName.toUpperCase()==="CANVAS"}I.transformLocalCoord=i,I.transformCoordWithViewport=o,I.isCanvasEl=u},ZiBY:function(J,I,l){J.exports={headerContainer:"headerContainer___UVeJr",breadcrumd:"breadcrumd___3PBrD",select:"select___1kKxY"}},aKvl:function(J,I,l){var P=l("Sj9i"),p=P.quadraticProjectPoint;function E(x,g,i,o,t,a,u,n,d){if(u===0)return!1;var f=u;if(d>g+f&&d>o+f&&d>a+f||dx+f&&n>i+f&&n>t+f||n=B;z++)b-=B;var k=O(K,N);return k>b&&(K="",k=0),b=L-k,Y.ellipsis=K,Y.ellipsisWidth=k,Y.contentWidth=b,Y.containerWidth=L,Y}function s(L,N){var K=N.containerWidth,Y=N.font,W=N.contentWidth;if(!K)return"";var B=O(L,Y);if(B<=K)return L;for(var b=0;;b++){if(B<=W||b>=N.maxIterations){L+=N.ellipsis;break}var z=b===0?e(L,W,N.ascCharWidth,N.cnCharWidth):B>0?Math.floor(L.length*W/B):0;L=L.substr(0,z),B=O(L,Y)}return L===""&&(L=N.placeholder),L}function e(L,N,K,Y){for(var W=0,B=0,b=L.length;BH)L="",b=[];else if($!=null)for(var q=v($-(K?K[1]+K[3]:0),N,W.ellipsis,{minChar:W.minChar,placeholder:W.placeholder}),le=0,ie=b.length;leY&&h(K,L.substring(Y,B)),h(K,W[2],W[1]),Y=d.lastIndex}Yle)return{lines:[],width:0,height:0};Z.textWidth=O(Z.text,Se);var te=fe.textWidth,oe=te==null||te==="auto";if(typeof te=="string"&&te.charAt(te.length-1)==="%")Z.percentWidth=te,X.push(Z),te=0;else{if(oe){te=Z.textWidth;var de=fe.textBackgroundColor,Me=de&&de.image;Me&&(Me=p.findExistImage(Me),p.isImageReady(Me)&&(te=Math.max(te,Me.width*ze/Me.height)))}var Pe=pe?pe[1]+pe[3]:0;te+=Pe;var Ie=q!=null?q-_e:null;Ie!=null&&Ie=0&&e.splice(r,1),v.__hoverMir=null},clearHover:function(v){for(var s=this._hoverElements,e=0;e15)break}}T.__drawIndex=b,T.__drawIndex0&&v>r[0]){for(w=0;wv);w++);T=e[r[w]]}if(r.splice(w+1,0,v),e[v]=s,!s.virtual)if(T){var S=T.dom;S.nextSibling?h.insertBefore(s.dom,S.nextSibling):h.appendChild(s.dom)}else h.firstChild?h.insertBefore(s.dom,h.firstChild):h.appendChild(s.dom)},eachLayer:function(v,s){var e=this._zlevelList,r,A;for(A=0;A0?f:0),this._needsManuallyCompositing),S.__builtin__||x("ZLevel "+h+" has been used by unkown layer "+S.id),S!==A&&(S.__used=!0,S.__startIndex!==e&&(S.__dirty=!0),S.__startIndex=e,S.incremental?S.__drawIndex=-1:S.__drawIndex=e,s(e),A=S),r.__dirty&&(S.__dirty=!0,S.incremental&&S.__drawIndex<0&&(S.__drawIndex=e))}s(e),this.eachBuiltinLayer(function(L,N){!L.__used&&L.getElementCount()>0&&(L.__dirty=!0,L.__startIndex=L.__endIndex=L.__drawIndex=0),L.__dirty&&L.__drawIndex<0&&(L.__drawIndex=L.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(v){v.clear()},setBackgroundColor:function(v){this._backgroundColor=v},configLayer:function(v,s){if(s){var e=this._layerConfig;e[v]?E.merge(e[v],s,!0):e[v]=s;for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:[],O=new Map;function D(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(R||[]).forEach(function(j){var c=j.key,_=j.children;Object(g.a)(c!=null,"Tree node must have a certain key: [".concat(C).concat(c,"]"));var M=String(c);Object(g.a)(!O.has(M)||c===null||c===void 0,"Same 'key' exist in the Tree: ".concat(M)),O.set(M,!0),D(_,"".concat(C).concat(M," > "))})}D(m)}function a(m){function O(D){var R=Object(x.a)(D);return R.map(function(C){if(!Object(i.i)(C))return Object(g.a)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var j=C.key,c=C.props,_=c.children,M=Object(E.a)(c,["children"]),F=Object(p.a)({key:j},M),v=O(_);return v.length&&(F.children=v),F}).filter(function(C){return C})}return O(m)}function u(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=new Set(O===!0?[]:O),R=[];function C(j){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return j.map(function(_,M){var F=Object(i.h)(c?c.pos:"0",M),v=o(_.key,F),s=Object(p.a)(Object(p.a)({},_),{},{parent:c,pos:F,children:null,data:_,isStart:[].concat(Object(P.a)(c?c.isStart:[]),[M===0]),isEnd:[].concat(Object(P.a)(c?c.isEnd:[]),[M===j.length-1])});return R.push(s),O===!0||D.has(v)?s.children=C(_.children||[],s):s.children=[],s})}return C(m),R}function n(m,O,D){var R;D?typeof D=="string"?R=function(c){return c[D]}:typeof D=="function"&&(R=function(c){return D(c)}):R=function(c,_){return o(c.key,_)};function C(j,c,_){var M=j?j.children:m,F=j?Object(i.h)(_.pos,c):"0";if(j){var v=R(j,F),s={node:j,index:c,pos:F,key:v,parentPos:_.node?_.pos:null,level:_.level+1};O(s)}M&&M.forEach(function(e,r){C(e,r,{node:j,pos:F,level:_?_.level+1:-1})})}C(null)}function d(m){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=O.initWrapper,R=O.processEntity,C=O.onProcessFinished,j=arguments.length>2?arguments[2]:void 0,c={},_={},M={posEntities:c,keyEntities:_};return D&&(M=D(M)||M),n(m,function(F){var v=F.node,s=F.index,e=F.pos,r=F.key,A=F.parentPos,T=F.level,w={node:v,index:s,key:r,pos:e,level:T},h=o(r,e);c[e]=w,_[h]=w,w.parent=c[A],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),R&&R(w,M)},j),C&&C(M),M}function f(m,O){var D=O.expandedKeys,R=O.selectedKeys,C=O.loadedKeys,j=O.loadingKeys,c=O.checkedKeys,_=O.halfCheckedKeys,M=O.dragOverNodeKey,F=O.dropPosition,v=O.keyEntities,s=v[m],e={eventKey:m,expanded:D.indexOf(m)!==-1,selected:R.indexOf(m)!==-1,loaded:C.indexOf(m)!==-1,loading:j.indexOf(m)!==-1,checked:c.indexOf(m)!==-1,halfChecked:_.indexOf(m)!==-1,pos:String(s?s.pos:""),dragOver:M===m&&F===0,dragOverGapTop:M===m&&F===-1,dragOverGapBottom:M===m&&F===1};return e}function y(m){var O=m.data,D=m.expanded,R=m.selected,C=m.checked,j=m.loaded,c=m.loading,_=m.halfChecked,M=m.dragOver,F=m.dragOverGapTop,v=m.dragOverGapBottom,s=m.pos,e=m.active,r=Object(p.a)(Object(p.a)({},O),{},{expanded:D,selected:R,checked:C,loaded:j,loading:c,halfChecked:_,dragOver:M,dragOverGapTop:F,dragOverGapBottom:v,pos:s,active:e});return"props"in r||Object.defineProperty(r,"props",{get:function(){return Object(g.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),m}}),r}},"8XDt":function(J,I,l){l("qH13");var P=l("aX58"),p=P.registerPainter,E=l("6fms");p("vml",E)},BPZU:function(J,I){var l=32,P=7,p=256;function E(n){for(var d=0;n>=l;)d|=n&1,n>>=1;return n+d}function x(n,d,f,y){var m=d+1;if(m===f)return 1;if(y(n[m++],n[d])<0){for(;m=0;)m++;return m-d}function g(n,d,f){for(f--;d>>1,m(O,n[C])<0?R=C:D=C+1;var j=y-D;switch(j){case 3:n[D+3]=n[D+2];case 2:n[D+2]=n[D+1];case 1:n[D+1]=n[D];break;default:for(;j>0;)n[D+j]=n[D+j-1],j--}n[D]=O}}function o(n,d,f,y,m,O){var D=0,R=0,C=1;if(O(n,d[f+m])>0){for(R=y-m;C0;)D=C,C=(C<<1)+1,C<=0&&(C=R);C>R&&(C=R),D+=m,C+=m}else{for(R=m+1;CR&&(C=R);var j=D;D=m-C,C=m-j}for(D++;D>>1);O(n,d[f+c])>0?D=c+1:C=c}return C}function t(n,d,f,y,m,O){var D=0,R=0,C=1;if(O(n,d[f+m])<0){for(R=m+1;CR&&(C=R);var j=D;D=m-C,C=m-j}else{for(R=y-m;C=0;)D=C,C=(C<<1)+1,C<=0&&(C=R);C>R&&(C=R),D+=m,C+=m}for(D++;D>>1);O(n,d[f+c])<0?C=c:D=c+1}return C}function a(n,d){var f=P,y=0,m=p,O=0,D,R,C=0;y=n.length,y<2*p&&(m=y>>>1);var j=[];O=y<120?5:y<1542?10:y<119151?19:40,D=[],R=[];function c(e,r){D[C]=e,R[C]=r,C+=1}function _(){for(;C>1;){var e=C-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;F(e)}}function M(){for(;C>1;){var e=C-2;e>0&&R[e-1]=P||Y>=P);if(W)break;N<0&&(N=0),N+=2}if(f=N,f<1&&(f=1),r===1){for(w=0;w=0;w--)n[K+w]=n[N+w];n[L]=j[S];return}for(var Y=f;;){var W=0,B=0,b=!1;do if(d(j[S],n[h])<0){if(n[L--]=n[h--],W++,B=0,--r===0){b=!0;break}}else if(n[L--]=j[S--],B++,W=0,--T===1){b=!0;break}while((W|B)=0;w--)n[K+w]=n[N+w];if(r===0){b=!0;break}}if(n[L--]=j[S--],--T===1){b=!0;break}if(B=T-o(n[h],j,0,T,T-1,d),B!==0){for(L-=B,S-=B,T-=B,K=L+1,N=S+1,w=0;w=P||B>=P);if(b)break;Y<0&&(Y=0),Y+=2}if(f=Y,f<1&&(f=1),T===1){for(L-=r,h-=r,K=L+1,N=h+1,w=r-1;w>=0;w--)n[K+w]=n[N+w];n[L]=j[S]}else{if(T===0)throw new Error;for(N=L-(T-1),w=0;wR&&(C=R),i(n,f,f+C,f+O,d),O=C}D.pushRun(f,O),D.mergeRuns(),m-=O,f+=O}while(m!==0);D.forceMergeRuns()}J.exports=u},BlVb:function(J,I,l){var P=l("hyiK"),p=1e-8;function E(g,i){return Math.abs(g-i).5?_:c}function u(c,_,M,F,v){var s=c.length;if(v===1)for(var e=0;ev;if(s)c.length=v;else for(var e=F;e=0&&!(Y[te]<=ze);te--);te=Math.min(te,T-2)}else{for(te=$;teze);te++);te=Math.min(te-1,T-2)}$=te,q=ze;var oe=Y[te+1]-Y[te];if(oe===0)return;if(ie=(ze-Y[te])/oe,A)if(we=W[te],Ae=W[te===0?te:te-1],_e=W[te>T-2?T-1:te+1],G=W[te>T-3?T-1:te+2],h)f(Ae,we,_e,G,ie,ie*ie,ie*ie*ie,e(Se,v),N);else{var de;if(S)de=f(Ae,we,_e,G,ie,ie*ie,ie*ie*ie,Z,1),de=O(Z);else{if(L)return a(we,_e,ie);de=y(Ae,we,_e,G,ie,ie*ie,ie*ie*ie)}r(Se,v,de)}else if(h)u(W[te],W[te+1],ie,e(Se,v),N);else{var de;if(S)u(W[te],W[te+1],ie,Z,1),de=O(Z);else{if(L)return a(W[te],W[te+1],ie);de=t(W[te],W[te+1],ie)}r(Se,v,de)}},pe=new P({target:c._target,life:K,loop:c._loop,delay:c._delay,onframe:fe,ondestroy:M});return _&&_!=="spline"&&(pe.easing=_),pe}var C=function(c,_,M,F){this._tracks={},this._target=c,this._loop=_||!1,this._getter=M||i,this._setter=F||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};C.prototype={when:function(c,_){var M=this._tracks;for(var F in _){if(!_.hasOwnProperty(F))continue;if(!M[F]){M[F]=[];var v=this._getter(this._target,F);if(v==null)continue;c!==0&&M[F].push({time:0,value:m(v)})}M[F].push({time:c,value:_[F]})}return this},during:function(c){return this._onframeList.push(c),this},pause:function(){for(var c=0;c1&&u&&u.length>1){var d=E(u)/E(n);!isFinite(d)&&(d=1),t.pinchScale=d;var f=x(u);return t.pinchX=f[0],t.pinchY=f[1],{type:"pinch",target:o[0].target,event:t}}}},i=p;J.exports=i},DBLp:function(J,I){function l(){}l.prototype={diff:function(g,i,o){o||(o=function(C,j){return C===j}),this.equals=o;var t=this;g=g.slice(),i=i.slice();var a=i.length,u=g.length,n=1,d=a+u,f=[{newPos:-1,components:[]}],y=this.extractCommon(f[0],i,g,0);if(f[0].newPos+1>=a&&y+1>=u){for(var m=[],O=0;O=a&&M+1>=u)return P(t,j.components,i,g);f[C]=j}n++}for(;n<=d;){var R=D();if(R)return R}},pushComponent:function(g,i,o){var t=g[g.length-1];t&&t.added===i&&t.removed===o?g[g.length-1]={count:t.count+1,added:i,removed:o}:g.push({count:1,added:i,removed:o})},extractCommon:function(g,i,o,t){for(var a=i.length,u=o.length,n=g.newPos,d=n-t,f=0;n+1x||d<-x}var i=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},o=i.prototype;o.transform=null,o.needLocalTransform=function(){return g(this.rotation)||g(this.position[0])||g(this.position[1])||g(this.scale[0]-1)||g(this.scale[1]-1)};var t=[];o.updateTransform=function(){var d=this.parent,f=d&&d.transform,y=this.needLocalTransform(),m=this.transform;if(!(y||f)){m&&E(m);return}m=m||P.create(),y?this.getLocalTransform(m):E(m),f&&(y?P.mul(m,d.transform,m):P.copy(m,d.transform)),this.transform=m;var O=this.globalScaleRatio;if(O!=null&&O!==1){this.getGlobalScale(t);var D=t[0]<0?-1:1,R=t[1]<0?-1:1,C=((t[0]-D)*O+D)/t[0]||0,j=((t[1]-R)*O+R)/t[1]||0;m[0]*=C,m[1]*=C,m[2]*=j,m[3]*=j}this.invTransform=this.invTransform||P.create(),P.invert(this.invTransform,m)},o.getLocalTransform=function(d){return i.getLocalTransform(this,d)},o.setTransform=function(d){var f=this.transform,y=d.dpr||1;f?d.setTransform(y*f[0],y*f[1],y*f[2],y*f[3],y*f[4],y*f[5]):d.setTransform(y,0,0,y,0,0)},o.restoreTransform=function(d){var f=d.dpr||1;d.setTransform(f,0,0,f,0,0)};var a=[],u=P.create();o.setLocalTransform=function(d){if(!d)return;var f=d[0]*d[0]+d[1]*d[1],y=d[2]*d[2]+d[3]*d[3],m=this.position,O=this.scale;g(f-1)&&(f=Math.sqrt(f)),g(y-1)&&(y=Math.sqrt(y)),d[0]<0&&(f=-f),d[3]<0&&(y=-y),m[0]=d[4],m[1]=d[5],O[0]=f,O[1]=y,this.rotation=Math.atan2(-d[1]/y,d[0]/f)},o.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,f=this.transform;d&&d.transform&&(P.mul(a,d.invTransform,f),f=a);var y=this.origin;y&&(y[0]||y[1])&&(u[4]=y[0],u[5]=y[1],P.mul(a,f,u),a[4]-=y[0],a[5]-=y[1],f=a),this.setLocalTransform(f)},o.getGlobalScale=function(d){var f=this.transform;return d=d||[],f?(d[0]=Math.sqrt(f[0]*f[0]+f[1]*f[1]),d[1]=Math.sqrt(f[2]*f[2]+f[3]*f[3]),f[0]<0&&(d[0]=-d[0]),f[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},o.transformCoordToLocal=function(d,f){var y=[d,f],m=this.invTransform;return m&&p.applyTransform(y,y,m),y},o.transformCoordToGlobal=function(d,f){var y=[d,f],m=this.transform;return m&&p.applyTransform(y,y,m),y},i.getLocalTransform=function(d,f){f=f||[],E(f);var y=d.origin,m=d.scale||[1,1],O=d.rotation||0,D=d.position||[0,0];return y&&(f[4]-=y[0],f[5]-=y[1]),P.scale(f,f,m),O&&P.rotate(f,f,O),y&&(f[4]+=y[0],f[5]+=y[1]),f[4]+=D[0],f[5]+=D[1],f};var n=i;J.exports=n},Dagg:function(J,I,l){var P=l("Gev7"),p=l("mFDi"),E=l("bYtY"),x=l("Xnb7");function g(o){P.call(this,o)}g.prototype={constructor:g,type:"image",brush:function(o,t){var a=this.style,u=a.image;a.bind(o,this,t);var n=this._image=x.createOrUpdateImage(u,this._image,this,this.onload);if(!n||!x.isImageReady(n))return;var d=a.x||0,f=a.y||0,y=a.width,m=a.height,O=n.width/n.height;if(y==null&&m!=null?y=m*O:m==null&&y!=null?m=y/O:y==null&&m==null&&(y=n.width,m=n.height),this.setTransform(o),a.sWidth&&a.sHeight){var D=a.sx||0,R=a.sy||0;o.drawImage(n,D,R,a.sWidth,a.sHeight,d,f,y,m)}else if(a.sx&&a.sy){var D=a.sx,R=a.sy,C=y-D,j=m-R;o.drawImage(n,D,R,C,j,d,f,y,m)}else o.drawImage(n,d,f,y,m);a.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},getBoundingRect:function(){var o=this.style;return this._rect||(this._rect=new p(o.x||0,o.y||0,o.width||0,o.height||0)),this._rect}},E.inherits(g,P);var i=g;J.exports=i},FWXW:function(J,I,l){J.exports={evaluateDetailContainer:"evaluateDetailContainer___2MugP",red:"red___2pIDU",green:"green___2xNIu",name:"name___1Ep7P"}},Fofx:function(J,I){var l=typeof Float32Array=="undefined"?Array:Float32Array;function P(){var u=new l(6);return p(u),u}function p(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u[4]=0,u[5]=0,u}function E(u,n){return u[0]=n[0],u[1]=n[1],u[2]=n[2],u[3]=n[3],u[4]=n[4],u[5]=n[5],u}function x(u,n,d){var f=n[0]*d[0]+n[2]*d[1],y=n[1]*d[0]+n[3]*d[1],m=n[0]*d[2]+n[2]*d[3],O=n[1]*d[2]+n[3]*d[3],D=n[0]*d[4]+n[2]*d[5]+n[4],R=n[1]*d[4]+n[3]*d[5]+n[5];return u[0]=f,u[1]=y,u[2]=m,u[3]=O,u[4]=D,u[5]=R,u}function g(u,n,d){return u[0]=n[0],u[1]=n[1],u[2]=n[2],u[3]=n[3],u[4]=n[4]+d[0],u[5]=n[5]+d[1],u}function i(u,n,d){var f=n[0],y=n[2],m=n[4],O=n[1],D=n[3],R=n[5],C=Math.sin(d),j=Math.cos(d);return u[0]=f*j+O*C,u[1]=-f*C+O*j,u[2]=y*j+D*C,u[3]=-y*C+j*D,u[4]=j*m+C*R,u[5]=j*R-C*m,u}function o(u,n,d){var f=d[0],y=d[1];return u[0]=n[0]*f,u[1]=n[1]*y,u[2]=n[2]*f,u[3]=n[3]*y,u[4]=n[4]*f,u[5]=n[5]*y,u}function t(u,n){var d=n[0],f=n[2],y=n[4],m=n[1],O=n[3],D=n[5],R=d*O-m*f;return R?(R=1/R,u[0]=O*R,u[1]=-m*R,u[2]=-f*R,u[3]=d*R,u[4]=(f*D-O*y)*R,u[5]=(m*y-d*D)*R,u):null}function a(u){var n=P();return E(n,u),n}I.create=P,I.identity=p,I.copy=E,I.mul=x,I.translate=g,I.rotate=i,I.scale=o,I.invert=t,I.clone=a},FxDU:function(J,I,l){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createSensor=void 0;var P=l("QO+J"),p=l("j5sG"),E=typeof ResizeObserver!="undefined"?p.createSensor:P.createSensor;I.createSensor=E},Gev7:function(J,I,l){var P=l("bYtY"),p=l("K2GJ"),E=l("1bdT"),x=l("ni6a");function g(o){o=o||{},E.call(this,o);for(var t in o)o.hasOwnProperty(t)&&t!=="style"&&(this[t]=o[t]);this.style=new p(o.style,this),this._rect=null,this.__clipPaths=null}g.prototype={constructor:g,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(o){},afterBrush:function(o){},brush:function(o,t){},getBoundingRect:function(){},contain:function(o,t){return this.rectContain(o,t)},traverse:function(o,t){o.call(t,this)},rectContain:function(o,t){var a=this.transformCoordToLocal(o,t),u=this.getBoundingRect();return u.contain(a[0],a[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(o){return this.animate("style",o)},attrKV:function(o,t){o!=="style"?E.prototype.attrKV.call(this,o,t):this.style.set(t)},setStyle:function(o,t){return this.style.set(o,t),this.dirty(!1),this},useStyle:function(o){return this.style=new p(o,this),this.dirty(!1),this},calculateTextPosition:null},P.inherits(g,E),P.mixin(g,x);var i=g;J.exports=i},Gytx:function(J,I){J.exports=function(P,p,E,x){var g=E?E.call(x,P,p):void 0;if(g!==void 0)return!!g;if(P===p)return!0;if(typeof P!="object"||!P||typeof p!="object"||!p)return!1;var i=Object.keys(P),o=Object.keys(p);if(i.length!==o.length)return!1;for(var t=Object.prototype.hasOwnProperty.bind(p),a=0;a3&&(t=l.call(t,1));for(var u=i.length,n=0;n4&&(t=l.call(t,1,t.length-1));for(var u=t[t.length-1],n=i.length,d=0;dthis._ux||D(_-this._yi)>this._uy||this._len<5;return this.addData(o.L,c,_),this._ctx&&M&&(this._needsDash()?this._dashedLineTo(c,_):this._ctx.lineTo(c,_)),M&&(this._xi=c,this._yi=_),this},bezierCurveTo:function(c,_,M,F,v,s){return this.addData(o.C,c,_,M,F,v,s),this._ctx&&(this._needsDash()?this._dashedBezierTo(c,_,M,F,v,s):this._ctx.bezierCurveTo(c,_,M,F,v,s)),this._xi=v,this._yi=s,this},quadraticCurveTo:function(c,_,M,F){return this.addData(o.Q,c,_,M,F),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(c,_,M,F):this._ctx.quadraticCurveTo(c,_,M,F)),this._xi=M,this._yi=F,this},arc:function(c,_,M,F,v,s){return this.addData(o.A,c,_,M,M,F,v-F,0,s?0:1),this._ctx&&this._ctx.arc(c,_,M,F,v,s),this._xi=y(v)*M+c,this._yi=m(v)*M+_,this},arcTo:function(c,_,M,F,v){return this._ctx&&this._ctx.arcTo(c,_,M,F,v),this},rect:function(c,_,M,F){return this._ctx&&this._ctx.rect(c,_,M,F),this.addData(o.R,c,_,M,F),this},closePath:function(){this.addData(o.Z);var c=this._ctx,_=this._x0,M=this._y0;return c&&(this._needsDash()&&this._dashedLineTo(_,M),c.closePath()),this._xi=_,this._yi=M,this},fill:function(c){c&&c.fill(),this.toStatic()},stroke:function(c){c&&c.stroke(),this.toStatic()},setLineDash:function(c){if(c instanceof Array){this._lineDash=c,this._dashIdx=0;for(var _=0,M=0;M_.length&&(this._expandData(),_=this.data);for(var M=0;M0&&h<=c||A<0&&h>=c||A===0&&(T>0&&S<=_||T<0&&S>=_);){if(K=this._dashIdx,L=v[K],h+=A*L,S+=T*L,this._dashIdx=(K+1)%N,A>0&&he||T>0&&Sr)continue;s[K%2?"moveTo":"lineTo"](A>=0?d(h,c):f(h,c),T>=0?d(S,_):f(S,_))}A=h-c,T=S-_,this._dashOffset=-O(A*A+T*T)},_dashedBezierTo:function(c,_,M,F,v,s){var e=this._dashSum,r=this._dashOffset,A=this._lineDash,T=this._ctx,w=this._xi,h=this._yi,S,L,N,K=P.cubicAt,Y=0,W=this._dashIdx,B=A.length,b,z,k=0;for(r<0&&(r=e+r),r%=e,S=0;S<1;S+=.1)L=K(w,c,M,v,S+.1)-K(w,c,M,v,S),N=K(h,_,F,s,S+.1)-K(h,_,F,s,S),Y+=O(L*L+N*N);for(;Wr);W++);for(S=(k-r)/Y;S<=1;)b=K(w,c,M,v,S),z=K(h,_,F,s,S),W%2?T.moveTo(b,z):T.lineTo(b,z),S+=A[W]/Y,W=(W+1)%B;W%2!==0&&T.lineTo(v,s),L=v-b,N=s-z,this._dashOffset=-O(L*L+N*N)},_dashedQuadraticTo:function(c,_,M,F){var v=M,s=F;M=(M+2*c)/3,F=(F+2*_)/3,c=(this._xi+2*c)/3,_=(this._yi+2*_)/3,this._dashedBezierTo(c,_,M,F,v,s)},toStatic:function(){var c=this.data;c instanceof Array&&(c.length=this._len,R&&(this.data=new Float32Array(c)))},getBoundingRect:function(){t[0]=t[1]=u[0]=u[1]=Number.MAX_VALUE,a[0]=a[1]=n[0]=n[1]=-Number.MAX_VALUE;for(var c=this.data,_=0,M=0,F=0,v=0,s=0;sA||D(r-s)>T||h===w-1)&&(c.lineTo(e,r),v=e,s=r);break;case o.C:c.bezierCurveTo(_[h++],_[h++],_[h++],_[h++],_[h++],_[h++]),v=_[h-2],s=_[h-1];break;case o.Q:c.quadraticCurveTo(_[h++],_[h++],_[h++],_[h++]),v=_[h-2],s=_[h-1];break;case o.A:var L=_[h++],N=_[h++],K=_[h++],Y=_[h++],W=_[h++],B=_[h++],b=_[h++],z=_[h++],k=K>Y?K:Y,X=K>Y?1:K/Y,H=K>Y?Y/K:1,$=Math.abs(K-Y)>.001,q=W+B;$?(c.translate(L,N),c.rotate(b),c.scale(X,H),c.arc(0,0,k,W,q,1-z),c.scale(1/X,1/H),c.rotate(-b),c.translate(-L,-N)):c.arc(L,N,k,W,q,1-z),h===1&&(M=y(W)*K+L,F=m(W)*Y+N),v=y(q)*K+L,s=m(q)*Y+N;break;case o.R:M=v=_[h],F=s=_[h+1],c.rect(_[h++],_[h++],_[h++],_[h++]);break;case o.Z:c.closePath(),v=M,s=F}}}},C.CMD=o;var j=C;J.exports=j},ItGF:function(J,I){var l={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?l={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?l={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?l={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:l=p(navigator.userAgent);var P=l;function p(E){var x={},g={},i=E.match(/Firefox\/([\d.]+)/),o=E.match(/MSIE\s([\d.]+)/)||E.match(/Trident\/.+?rv:(([\d.]+))/),t=E.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(E);return i&&(g.firefox=!0,g.version=i[1]),o&&(g.ie=!0,g.version=o[1]),t&&(g.edge=!0,g.version=t[1]),a&&(g.weChat=!0),{browser:g,os:x,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!g.ie&&!g.edge,pointerEventsSupported:"onpointerdown"in window&&(g.edge||g.ie&&g.version>=11),domSupported:typeof document!="undefined"}}J.exports=P},K2GJ:function(J,I,l){var P=l("fW2E"),p=l("gut8"),E=p.ContextCachedBy,x=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],g=function(d){this.extendFrom(d,!1)};function i(d,f,y){var m=f.x==null?0:f.x,O=f.x2==null?1:f.x2,D=f.y==null?0:f.y,R=f.y2==null?0:f.y2;f.global||(m=m*y.width+y.x,O=O*y.width+y.x,D=D*y.height+y.y,R=R*y.height+y.y),m=isNaN(m)?0:m,O=isNaN(O)?1:O,D=isNaN(D)?0:D,R=isNaN(R)?0:R;var C=d.createLinearGradient(m,D,O,R);return C}function o(d,f,y){var m=y.width,O=y.height,D=Math.min(m,O),R=f.x==null?.5:f.x,C=f.y==null?.5:f.y,j=f.r==null?.5:f.r;f.global||(R=R*m+y.x,C=C*O+y.y,j=j*D);var c=d.createRadialGradient(R,C,0,R,C,j);return c}g.prototype={constructor:g,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(d,f,y){var m=this,O=y&&y.style,D=!O||d.__attrCachedBy!==E.STYLE_BIND;d.__attrCachedBy=E.STYLE_BIND;for(var R=0;R0},extendFrom:function(d,f){if(d)for(var y in d)d.hasOwnProperty(y)&&(f===!0||(f===!1?!this.hasOwnProperty(y):d[y]!=null))&&(this[y]=d[y])},set:function(d,f){typeof d=="string"?this[d]=f:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,f,y){for(var m=f.type==="radial"?o:i,O=m(d,f,y),D=f.colorStops,R=0;R1&&arguments[1]!==void 0?arguments[1]:1,Ee=Me.length,Re=0;Re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(F.a)(W).map(function(b,z){if(!g.isValidElement(b)||!b.type)return null;var k=b.type.isSelectOptGroup,X=b.key,H=b.props,$=H.children,q=Object(o.a)(H,["children"]);return B||!k?v(b):Object(M.a)(Object(M.a)({key:"__RC_SELECT_GRP__".concat(X===null?z:X,"__"),label:X},q),{},{options:s($)})}).filter(function(b){return b})}var e=l("2Qr1"),r=l("qNPg"),A=l("U8pU"),T=l("Kwbf"),w=l("WKfj");function h(W){var B=W.mode,b=W.options,z=W.children,k=W.backfill,X=W.allowClear,H=W.placeholder,$=W.getInputElement,q=W.showSearch,le=W.onSearch,ie=W.defaultOpen,Ae=W.autoFocus,we=W.labelInValue,_e=W.value,G=W.inputValue,Z=W.optionLabelProp,fe=B==="multiple"||B==="tags",pe=q!==void 0?q:fe||B==="combobox",Se=b||s(z);if(Object(T.a)(B!=="tags"||Se.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),B==="tags"||B==="combobox"){var ze=Se.some(function(de){return de.options?de.options.some(function(Me){return typeof("value"in Me?Me.value:Me.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(T.a)(!ze,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(B!=="combobox"||!Z,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(B==="combobox"||!k,"`backfill` only works with `combobox` mode."),Object(T.a)(B==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(T.b)(B!=="combobox"||!$||!X||!H,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),le&&!pe&&B!=="combobox"&&B!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!ie||Ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var te=Object(w.d)(_e);Object(T.a)(!we||te.every(function(de){return Object(A.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!fe||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(z){var oe=null;Object(F.a)(z).some(function(de){if(!g.isValidElement(de)||!de.type)return!1;var Me=de.type;if(Me.isSelectOption)return!1;if(Me.isSelectOptGroup){var Pe=Object(F.a)(de.props.children).every(function(Ie){return!g.isValidElement(Ie)||!de.type||Ie.type.isSelectOption?!0:(oe=Ie.type,!1)});return!Pe}return oe=Me,!0}),oe&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(oe.displayName||oe.name||oe,"`.")),Object(T.a)(G===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var S=h,L=Object(r.a)({prefixCls:"rc-select",components:{optionList:R},convertChildrenToData:s,flattenOptions:e.d,getLabeledValue:e.e,filterOptions:e.b,isValueDisabled:e.g,findValueOption:e.c,warningProps:S,fillOptionsWithMissingValue:e.a}),N=function(W){Object(E.a)(b,W);var B=Object(x.a)(b);function b(){var z;return Object(P.a)(this,b),z=B.apply(this,arguments),z.selectRef=g.createRef(),z.focus=function(){z.selectRef.current.focus()},z.blur=function(){z.selectRef.current.blur()},z}return Object(p.a)(b,[{key:"render",value:function(){return g.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),b}(g.Component);N.Option=j,N.OptGroup=_;var K=N,Y=I.c=K},MEGo:function(J,I,l){var P=l("4fz+"),p=l("Dagg"),E=l("dqUG"),x=l("2fw6"),g=l("x6Kt"),i=l("rmlV"),o=l("yxFR"),t=l("y+Vt"),a=l("h7HQ"),u=l("1Jh7"),n=l("SKnc"),d=l("K2GJ"),f=l("Fofx"),y=l("NC18"),m=y.createFromString,O=l("bYtY"),D=O.isString,R=O.extend,C=O.defaults,j=O.trim,c=O.each,_=/[\s,]+/;function M(b){if(D(b)){var z=new DOMParser;b=z.parseFromString(b,"text/xml")}for(b.nodeType===9&&(b=b.firstChild);b.nodeName.toLowerCase()!=="svg"||b.nodeType!==1;)b=b.nextSibling;return b}function F(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}F.prototype.parse=function(b,z){z=z||{};var k=M(b);if(!k)throw new Error("Illegal svg");var X=new P;this._root=X;var H=k.getAttribute("viewBox")||"",$=parseFloat(k.getAttribute("width")||z.width),q=parseFloat(k.getAttribute("height")||z.height);isNaN($)&&($=null),isNaN(q)&&(q=null),w(k,X,null,!0);for(var le=k.firstChild;le;)this._parseNode(le,X),le=le.nextSibling;var ie,Ae;if(H){var we=j(H).split(_);we.length>=4&&(ie={x:parseFloat(we[0]||0),y:parseFloat(we[1]||0),width:parseFloat(we[2]),height:parseFloat(we[3])})}if(ie&&$!=null&&q!=null&&(Ae=W(ie,$,q),!z.ignoreViewBox)){var _e=X;X=new P,X.add(_e),_e.scale=Ae.scale.slice(),_e.position=Ae.position.slice()}return!z.ignoreRootClip&&$!=null&&q!=null&&X.setClipPath(new g({shape:{x:0,y:0,width:$,height:q}})),{root:X,width:$,height:q,viewBoxRect:ie,viewBoxTransform:Ae}},F.prototype._parseNode=function(b,z){var k=b.nodeName.toLowerCase();k==="defs"?this._isDefine=!0:k==="text"&&(this._isText=!0);var X;if(this._isDefine){var H=s[k];if(H){var $=H.call(this,b),q=b.getAttribute("id");q&&(this._defs[q]=$)}}else{var H=v[k];H&&(X=H.call(this,b,z),z.add(X))}for(var le=b.firstChild;le;)le.nodeType===1&&this._parseNode(le,X),le.nodeType===3&&this._isText&&this._parseText(le,X),le=le.nextSibling;k==="defs"?this._isDefine=!1:k==="text"&&(this._isText=!1)},F.prototype._parseText=function(b,z){if(b.nodeType===1){var k=b.getAttribute("dx")||0,X=b.getAttribute("dy")||0;this._textX+=parseFloat(k),this._textY+=parseFloat(X)}var H=new E({style:{text:b.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});r(z,H),w(b,H,this._defs);var $=H.style.fontSize;$&&$<9&&(H.style.fontSize=9,H.scale=H.scale||[1,1],H.scale[0]*=$/9,H.scale[1]*=$/9);var q=H.getBoundingRect();return this._textX+=q.width,z.add(H),H};var v={g:function(b,z){var k=new P;return r(z,k),w(b,k,this._defs),k},rect:function(b,z){var k=new g;return r(z,k),w(b,k,this._defs),k.setShape({x:parseFloat(b.getAttribute("x")||0),y:parseFloat(b.getAttribute("y")||0),width:parseFloat(b.getAttribute("width")||0),height:parseFloat(b.getAttribute("height")||0)}),k},circle:function(b,z){var k=new x;return r(z,k),w(b,k,this._defs),k.setShape({cx:parseFloat(b.getAttribute("cx")||0),cy:parseFloat(b.getAttribute("cy")||0),r:parseFloat(b.getAttribute("r")||0)}),k},line:function(b,z){var k=new o;return r(z,k),w(b,k,this._defs),k.setShape({x1:parseFloat(b.getAttribute("x1")||0),y1:parseFloat(b.getAttribute("y1")||0),x2:parseFloat(b.getAttribute("x2")||0),y2:parseFloat(b.getAttribute("y2")||0)}),k},ellipse:function(b,z){var k=new i;return r(z,k),w(b,k,this._defs),k.setShape({cx:parseFloat(b.getAttribute("cx")||0),cy:parseFloat(b.getAttribute("cy")||0),rx:parseFloat(b.getAttribute("rx")||0),ry:parseFloat(b.getAttribute("ry")||0)}),k},polygon:function(b,z){var k=b.getAttribute("points");k&&(k=A(k));var X=new a({shape:{points:k||[]}});return r(z,X),w(b,X,this._defs),X},polyline:function(b,z){var k=new t;r(z,k),w(b,k,this._defs);var X=b.getAttribute("points");X&&(X=A(X));var H=new u({shape:{points:X||[]}});return H},image:function(b,z){var k=new p;return r(z,k),w(b,k,this._defs),k.setStyle({image:b.getAttribute("xlink:href"),x:b.getAttribute("x"),y:b.getAttribute("y"),width:b.getAttribute("width"),height:b.getAttribute("height")}),k},text:function(b,z){var k=b.getAttribute("x")||0,X=b.getAttribute("y")||0,H=b.getAttribute("dx")||0,$=b.getAttribute("dy")||0;this._textX=parseFloat(k)+parseFloat(H),this._textY=parseFloat(X)+parseFloat($);var q=new P;return r(z,q),w(b,q,this._defs),q},tspan:function(b,z){var k=b.getAttribute("x"),X=b.getAttribute("y");k!=null&&(this._textX=parseFloat(k)),X!=null&&(this._textY=parseFloat(X));var H=b.getAttribute("dx")||0,$=b.getAttribute("dy")||0,q=new P;return r(z,q),w(b,q,this._defs),this._textX+=H,this._textY+=$,q},path:function(b,z){var k=b.getAttribute("d")||"",X=m(k);return r(z,X),w(b,X,this._defs),X}},s={lineargradient:function(b){var z=parseInt(b.getAttribute("x1")||0,10),k=parseInt(b.getAttribute("y1")||0,10),X=parseInt(b.getAttribute("x2")||10,10),H=parseInt(b.getAttribute("y2")||0,10),$=new n(z,k,X,H);return e(b,$),$},radialgradient:function(b){}};function e(b,z){for(var k=b.firstChild;k;){if(k.nodeType===1){var X=k.getAttribute("offset");X.indexOf("%")>0?X=parseInt(X,10)/100:X?X=parseFloat(X):X=0;var H=k.getAttribute("stop-color")||"#000000";z.addColorStop(X,H)}k=k.nextSibling}}function r(b,z){b&&b.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),C(z.__inheritedStyle,b.__inheritedStyle))}function A(b){for(var z=j(b).split(_),k=[],X=0;X0;$-=2){var q=H[$],le=H[$-1];X=X||f.create();switch(le){case"translate":q=j(q).split(_),f.translate(X,X,[parseFloat(q[0]),parseFloat(q[1]||0)]);break;case"scale":q=j(q).split(_),f.scale(X,X,[parseFloat(q[0]),parseFloat(q[1]||q[0])]);break;case"rotate":q=j(q).split(_),f.rotate(X,X,parseFloat(q[0]));break;case"skew":q=j(q).split(_),console.warn("Skew transform is not supported yet");break;case"matrix":var q=j(q).split(_);X[0]=parseFloat(q[0]),X[1]=parseFloat(q[1]),X[2]=parseFloat(q[2]),X[3]=parseFloat(q[3]),X[4]=parseFloat(q[4]),X[5]=parseFloat(q[5]);break}}z.setLocalTransform(X)}}var K=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Y(b){var z=b.getAttribute("style"),k={};if(!z)return k;var X={};K.lastIndex=0;for(var H;(H=K.exec(z))!=null;)X[H[1]]=H[2];for(var $ in T)T.hasOwnProperty($)&&X[$]!=null&&(k[T[$]]=X[$]);return k}function W(b,z,k){var X=z/b.width,H=k/b.height,$=Math.min(X,H),q=[$,$],le=[-(b.x+b.width/2)*$+z/2,-(b.y+b.height/2)*$+k/2];return{scale:q,position:le}}function B(b,z){var k=new F;return k.parse(b,z)}I.parseXML=M,I.makeViewBoxTransform=W,I.parseSVG=B},MKOG:function(J,I,l){var P=l("bYtY"),p=l("YH21"),E=p.Dispatcher,x=l("mLcG"),g=l("Bq2U"),i=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,E.call(this)};i.prototype={constructor:i,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var a=t.getClips(),u=0;u=0&&this._clips.splice(a,1)},removeAnimator:function(t){for(var a=t.getClips(),u=0;u1&&(v*=x(S),s*=x(S));var L=(M===F?-1:1)*x((v*v*(s*s)-v*v*(h*h)-s*s*(w*w))/(v*v*(h*h)+s*s*(w*w)))||0,N=L*v*h/s,K=L*-s*w/v,Y=(C+c)/2+i(T)*N-g(T)*K,W=(j+_)/2+g(T)*N+i(T)*K,B=u([1,0],[(w-N)/v,(h-K)/s]),b=[(w-N)/v,(h-K)/s],z=[(-1*w-N)/v,(-1*h-K)/s],k=u(b,z);a(b,z)<=-1&&(k=o),a(b,z)>=1&&(k=0),F===0&&k>0&&(k=k-2*o),F===1&&k<0&&(k=k+2*o),A.addData(r,Y,W,v,s,B,k,T,F)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y(C){if(!C)return new p;for(var j=0,c=0,_=j,M=c,F,v=new p,s=p.CMD,e=C.match(d),r=0;r1&&arguments[1]!==void 0?arguments[1]:60,g=null;return function(){for(var i=this,o=arguments.length,t=new Array(o),a=0;a=0;O-=1){var D=t.get(O)||new Set;D.forEach(function(R){var C=R.parent,j=R.node;if(u(j)||!R.parent||m.has(R.parent.key))return;if(u(R.parent.node)){m.add(C.key);return}var c=!0,_=!1;(C.children||[]).filter(function(M){return!u(M.node)}).forEach(function(M){var F=M.key,v=n.has(F);c&&!v&&(c=!1),!_&&(v||d.has(F))&&(_=!0)}),c&&n.add(C.key),_&&d.add(C.key),m.add(C.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(p(d,n))}}function g(o,t,a,u,n){for(var d=new Set(o),f=new Set(t),y=0;y<=u;y+=1){var m=a.get(y)||new Set;m.forEach(function(C){var j=C.key,c=C.node,_=C.children,M=_===void 0?[]:_;!d.has(j)&&!f.has(j)&&!n(c)&&M.filter(function(F){return!n(F.node)}).forEach(function(F){d.delete(F.key)})})}f=new Set;for(var O=new Set,D=u;D>=0;D-=1){var R=a.get(D)||new Set;R.forEach(function(C){var j=C.parent,c=C.node;if(n(c)||!C.parent||O.has(C.parent.key))return;if(n(C.parent.node)){O.add(j.key);return}var _=!0,M=!1;(j.children||[]).filter(function(F){return!n(F.node)}).forEach(function(F){var v=F.key,s=d.has(v);_&&!s&&(_=!1),!M&&(s||f.has(v))&&(M=!0)}),_||d.delete(j.key),M&&f.add(j.key),O.add(j.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(p(f,d))}}function i(o,t,a,u){var n=[],d;u?d=u:d=E;var f=new Set(o.filter(function(D){var R=!!a[D];return R||n.push(D),R})),y=new Map,m=0;Object.keys(a).forEach(function(D){var R=a[D],C=R.level,j=y.get(C);j||(j=new Set,y.set(C,j)),j.add(R),m=Math.max(m,C)}),Object(P.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(D){return"'".concat(D,"'")}).join(", ")));var O;return t===!0?O=x(f,y,m,d):O=g(f,t.halfCheckedKeys,y,m,d),O}},OLES:function(J,I,l){"use strict";var P=l("U8pU"),p=l("VTBJ"),E=l("Ff2n"),x=l("q1tI"),g=l("uciX"),i=l("7ixt"),o=function(f){var y=f.overlay,m=f.prefixCls,O=f.id,D=f.overlayInnerStyle;return x.createElement("div",{className:"".concat(m,"-inner"),id:O,role:"tooltip",style:D},typeof y=="function"?y():y)},t=o,a=function(f,y){var m=f.overlayClassName,O=f.trigger,D=O===void 0?["hover"]:O,R=f.mouseEnterDelay,C=R===void 0?0:R,j=f.mouseLeaveDelay,c=j===void 0?.1:j,_=f.overlayStyle,M=f.prefixCls,F=M===void 0?"rc-tooltip":M,v=f.children,s=f.onVisibleChange,e=f.afterVisibleChange,r=f.transitionName,A=f.animation,T=f.placement,w=T===void 0?"right":T,h=f.align,S=h===void 0?{}:h,L=f.destroyTooltipOnHide,N=L===void 0?!1:L,K=f.defaultVisible,Y=f.getTooltipContainer,W=f.overlayInnerStyle,B=Object(E.a)(f,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),b=Object(x.useRef)(null);Object(x.useImperativeHandle)(y,function(){return b.current});var z=Object(p.a)({},B);"visible"in f&&(z.popupVisible=f.visible);var k=function(){var le=f.arrowContent,ie=le===void 0?null:le,Ae=f.overlay,we=f.id;return[x.createElement("div",{className:"".concat(F,"-arrow"),key:"arrow"},ie),x.createElement(t,{key:"content",prefixCls:F,id:we,overlay:Ae,overlayInnerStyle:W})]},X=!1,H=!1;if(typeof N=="boolean")X=N;else if(N&&Object(P.a)(N)==="object"){var $=N.keepParent;X=$===!0,H=$===!1}return x.createElement(g.a,Object.assign({popupClassName:m,prefixCls:F,popup:k,action:D,builtinPlacements:i.a,popupPlacement:w,ref:b,popupAlign:S,getPopupContainer:Y,onPopupVisibleChange:s,afterPopupVisibleChange:e,popupTransitionName:r,popupAnimation:A,defaultPopupVisible:K,destroyPopupOnHide:X,autoDestroy:H,mouseLeaveDelay:c,popupStyle:_,mouseEnterDelay:C},z),v)},u=Object(x.forwardRef)(a),n=I.a=u},OS9S:function(J,I,l){var P=l("bYtY"),p=P.inherits,E=l("Gev7"),x=l("mFDi");function g(t){E.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}g.prototype.incremental=!0,g.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},g.prototype.addDisplayable=function(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},g.prototype.addDisplayables=function(t,a){a=a||!1;for(var u=0;u=0&&v.splice(s,1),v}function n(M,F){var v=M.slice();return v.indexOf(F)===-1&&v.push(F),v}function d(M){return M.split("-")}function f(M,F){return"".concat(M,"-").concat(F)}function y(M){return M&&M.type&&M.type.isTreeNode}function m(M,F){var v=[M],s=F[M];function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.forEach(function(A){var T=A.key,w=A.children;v.push(T),e(w)})}return e(s.children),v}function O(M,F){var v=M.clientY,s=F.selectHandle.getBoundingClientRect(),e=s.top,r=s.bottom,A=s.height,T=Math.max(A*t,a);return v<=e+T?-1:v>=r-T?1:0}function D(M,F){if(!M)return;var v=F.multiple;return v?M.slice():M.length?[M[0]]:M}var R=function(F){return F};function C(M,F){if(!M)return[];var v=F||{},s=v.processProps,e=s===void 0?R:s,r=Array.isArray(M)?M:[M];return r.map(function(A){var T=A.children,w=Object(E.a)(A,["children"]),h=C(T,F);return g.a.createElement(o.a,Object.assign({},e(w)),h)})}function j(M){if(!M)return null;var F;if(Array.isArray(M))F={checkedKeys:M,halfCheckedKeys:void 0};else if(Object(p.a)(M)==="object")F={checkedKeys:M.checked||void 0,halfCheckedKeys:M.halfChecked||void 0};else return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;return F}function c(M,F){var v=new Set;function s(e){if(v.has(e))return;var r=F[e];if(!r)return;v.add(e);var A=r.parent,T=r.node;if(T.disabled)return;A&&s(A.key)}return(M||[]).forEach(function(e){s(e)}),Object(P.a)(v)}function _(M){var F={};return Object.keys(M).forEach(function(v){(v.startsWith("data-")||v.startsWith("aria-"))&&(F[v]=M[v])}),F}},P47w:function(J,I,l){var P=l("hydK"),p=P.createElement,E=l("IMiH"),x=l("mFDi"),g=l("Fofx"),i=l("6GrX"),o=l("pzxd"),t=l("dqUG"),a=E.CMD,u=Array.prototype.join,n="none",d=Math.round,f=Math.sin,y=Math.cos,m=Math.PI,O=Math.PI*2,D=180/m,R=1e-4;function C(b){return d(b*1e4)/1e4}function j(b){return b-R}function c(b,z){var k=z?b.textFill:b.fill;return k!=null&&k!==n}function _(b,z){var k=z?b.textStroke:b.stroke;return k!=null&&k!==n}function M(b,z){z&&F(b,"transform","matrix("+u.call(z,",")+")")}function F(b,z,k){(!k||k.type!=="linear"&&k.type!=="radial")&&b.setAttribute(z,k)}function v(b,z,k){b.setAttributeNS("http://www.w3.org/1999/xlink",z,k)}function s(b,z,k,X){if(c(z,k)){var H=k?z.textFill:z.fill;H=H==="transparent"?n:H,F(b,"fill",H),F(b,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else F(b,"fill",n);if(_(z,k)){var $=k?z.textStroke:z.stroke;$=$==="transparent"?n:$,F(b,"stroke",$);var q=k?z.textStrokeWidth:z.lineWidth,le=!k&&z.strokeNoScale?X.getLineScale():1;F(b,"stroke-width",q/le),F(b,"paint-order",k?"stroke":"fill"),F(b,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var ie=z.lineDash;ie?(F(b,"stroke-dasharray",z.lineDash.join(",")),F(b,"stroke-dashoffset",d(z.lineDashOffset||0))):F(b,"stroke-dasharray",""),z.lineCap&&F(b,"stroke-linecap",z.lineCap),z.lineJoin&&F(b,"stroke-linejoin",z.lineJoin),z.miterLimit&&F(b,"stroke-miterlimit",z.miterLimit)}else F(b,"stroke",n)}function e(b){for(var z=[],k=b.data,X=b.len(),H=0;H=O:-Z>=O),te=Z>0?Z%O:Z%O+O,oe=!1;ze?oe=!0:j(Se)?oe=!1:oe=te>=m===!!pe;var de=C(ie+we*y(G)),Me=C(Ae+_e*f(G));ze&&(pe?Z=O-1e-4:Z=-O+1e-4,oe=!0,H===9&&z.push("M",de,Me));var Pe=C(ie+we*y(G+Z)),Ie=C(Ae+_e*f(G+Z));z.push("A",C(we),C(_e),d(fe*D),+oe,+pe,Pe,Ie);break;case a.Z:q="Z";break;case a.R:var Pe=C(k[H++]),Ie=C(k[H++]),Be=C(k[H++]),Ke=C(k[H++]);z.push("M",Pe,Ie,"L",Pe+Be,Ie,"L",Pe+Be,Ie+Ke,"L",Pe,Ie+Ke,"L",Pe,Ie);break}q&&z.push(q);for(var We=0;We$e){for(;Ke255?255:e}function x(e){return e=Math.round(e),e<0?0:e>360?360:e}function g(e){return e<0?0:e>1?1:e}function i(e){return e.length&&e.charAt(e.length-1)==="%"?E(parseFloat(e)/100*255):E(parseInt(e,10))}function o(e){return e.length&&e.charAt(e.length-1)==="%"?g(parseFloat(e)/100):g(parseFloat(e))}function t(e,r,A){return A<0?A+=1:A>1&&(A-=1),A*6<1?e+(r-e)*A*6:A*2<1?r:A*3<2?e+(r-e)*(2/3-A)*6:e}function a(e,r,A){return e+(r-e)*A}function u(e,r,A,T,w){return e[0]=r,e[1]=A,e[2]=T,e[3]=w,e}function n(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e}var d=new P(20),f=null;function y(e,r){f&&n(f,r),f=d.put(e,f||r.slice())}function m(e,r){if(!e)return;r=r||[];var A=d.get(e);if(A)return n(r,A);e=e+"";var T=e.replace(/ /g,"").toLowerCase();if(T in p)return n(r,p[T]),y(e,r),r;if(T.charAt(0)==="#"){if(T.length===4){var w=parseInt(T.substr(1),16);if(!(w>=0&&w<=4095)){u(r,0,0,0,1);return}return u(r,(w&3840)>>4|(w&3840)>>8,w&240|(w&240)>>4,w&15|(w&15)<<4,1),y(e,r),r}else if(T.length===7){var w=parseInt(T.substr(1),16);if(!(w>=0&&w<=16777215)){u(r,0,0,0,1);return}return u(r,(w&16711680)>>16,(w&65280)>>8,w&255,1),y(e,r),r}return}var h=T.indexOf("("),S=T.indexOf(")");if(h!==-1&&S+1===T.length){var L=T.substr(0,h),N=T.substr(h+1,S-(h+1)).split(","),K=1;switch(L){case"rgba":if(N.length!==4){u(r,0,0,0,1);return}K=o(N.pop());case"rgb":if(N.length!==3){u(r,0,0,0,1);return}return u(r,i(N[0]),i(N[1]),i(N[2]),K),y(e,r),r;case"hsla":if(N.length!==4){u(r,0,0,0,1);return}return N[3]=o(N[3]),O(N,r),y(e,r),r;case"hsl":if(N.length!==3){u(r,0,0,0,1);return}return O(N,r),y(e,r),r;default:return}}u(r,0,0,0,1);return}function O(e,r){var A=(parseFloat(e[0])%360+360)%360/360,T=o(e[1]),w=o(e[2]),h=w<=.5?w*(T+1):w+T-w*T,S=w*2-h;return r=r||[],u(r,E(t(S,h,A+1/3)*255),E(t(S,h,A)*255),E(t(S,h,A-1/3)*255),1),e.length===4&&(r[3]=e[3]),r}function D(e){if(!e)return;var r=e[0]/255,A=e[1]/255,T=e[2]/255,w=Math.min(r,A,T),h=Math.max(r,A,T),S=h-w,L=(h+w)/2,N,K;if(S===0)N=0,K=0;else{L<.5?K=S/(h+w):K=S/(2-h-w);var Y=((h-r)/6+S/2)/S,W=((h-A)/6+S/2)/S,B=((h-T)/6+S/2)/S;r===h?N=B-W:A===h?N=1/3+Y-B:T===h&&(N=2/3+W-Y),N<0&&(N+=1),N>1&&(N-=1)}var b=[N*360,K,L];return e[3]!=null&&b.push(e[3]),b}function R(e,r){var A=m(e);if(A){for(var T=0;T<3;T++)r<0?A[T]=A[T]*(1-r)|0:A[T]=(255-A[T])*r+A[T]|0,A[T]>255?A[T]=255:e[T]<0&&(A[T]=0);return s(A,A.length===4?"rgba":"rgb")}}function C(e){var r=m(e);if(r)return((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1)}function j(e,r,A){if(!(r&&r.length)||!(e>=0&&e<=1))return;A=A||[];var T=e*(r.length-1),w=Math.floor(T),h=Math.ceil(T),S=r[w],L=r[h],N=T-w;return A[0]=E(a(S[0],L[0],N)),A[1]=E(a(S[1],L[1],N)),A[2]=E(a(S[2],L[2],N)),A[3]=g(a(S[3],L[3],N)),A}var c=j;function _(e,r,A){if(!(r&&r.length)||!(e>=0&&e<=1))return;var T=e*(r.length-1),w=Math.floor(T),h=Math.ceil(T),S=m(r[w]),L=m(r[h]),N=T-w,K=s([E(a(S[0],L[0],N)),E(a(S[1],L[1],N)),E(a(S[2],L[2],N)),g(a(S[3],L[3],N))],"rgba");return A?{color:K,leftIndex:w,rightIndex:h,value:T}:K}var M=_;function F(e,r,A,T){if(e=m(e),e)return e=D(e),r!=null&&(e[0]=x(r)),A!=null&&(e[1]=o(A)),T!=null&&(e[2]=o(T)),s(O(e),"rgba")}function v(e,r){if(e=m(e),e&&r!=null)return e[3]=g(r),s(e,"rgba")}function s(e,r){if(!e||!e.length)return;var A=e[0]+","+e[1]+","+e[2];return(r==="rgba"||r==="hsva"||r==="hsla")&&(A+=","+e[3]),r+"("+A+")"}I.parse=m,I.lift=R,I.toHex=C,I.fastLerp=j,I.fastMapToColor=c,I.lerp=_,I.mapToColor=M,I.modifyHSL=F,I.modifyAlpha=v,I.stringify=s},QuXc:function(J,I){var l=function(p){this.colorStops=p||[]};l.prototype={constructor:l,addColorStop:function(p,E){this.colorStops.push({offset:p,color:E})}};var P=l;J.exports=P},RDYZ:function(J,I,l){var P=l("dMvE");function p(x){this._target=x.target,this._life=x.life||1e3,this._delay=x.delay||0,this._initialized=!1,this.loop=x.loop==null?!1:x.loop,this.gap=x.gap||0,this.easing=x.easing||"Linear",this.onframe=x.onframe,this.ondestroy=x.ondestroy,this.onrestart=x.onrestart,this._pausedTime=0,this._paused=!1}p.prototype={constructor:p,step:function(x,g){if(this._initialized||(this._startTime=x+this._delay,this._initialized=!0),this._paused){this._pausedTime+=g;return}var i=(x-this._startTime-this._pausedTime)/this._life;if(i<0)return;i=Math.min(i,1);var o=this.easing,t=typeof o=="string"?P[o]:o,a=typeof t=="function"?t(i):i;return this.fire("frame",a),i===1?this.loop?(this.restart(x),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(x){var g=(x-this._startTime-this._pausedTime)%this._life;this._startTime=x-g+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(x,g){x="on"+x,this[x]&&this[x](this._target,g)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var E=p;J.exports=E},RXMa:function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(E,x){var g=x.cx,i=x.cy,o=Math.PI*2;E.moveTo(g+x.r,i),E.arc(g,i,x.r,0,o,!1),E.moveTo(g+x.r0,i),E.arc(g,i,x.r0,0,o,!0)}});J.exports=p},"SA+Z":function(J,I,l){var P=l("wTVA"),p=l("EbDI"),E=l("ZhPi"),x=l("wkBT");function g(i){return P(i)||p(i)||E(i)||x()}J.exports=g,J.exports.__esModule=!0,J.exports.default=J.exports},SKnc:function(J,I,l){var P=l("bYtY"),p=l("QuXc"),E=function(g,i,o,t,a,u){this.x=g==null?0:g,this.y=i==null?0:i,this.x2=o==null?1:o,this.y2=t==null?0:t,this.type="linear",this.global=u||!1,p.call(this,a)};E.prototype={constructor:E},P.inherits(E,p);var x=E;J.exports=x},SUKs:function(J,I,l){var P=l("LPTA"),p=P.debugMode,E=function(){};p===1&&(E=console.error);var x=E;J.exports=x},Sj9i:function(J,I,l){var P=l("QBsz"),p=P.create,E=P.distSquare,x=Math.pow,g=Math.sqrt,i=1e-8,o=1e-4,t=g(3),a=1/3,u=p(),n=p(),d=p();function f(e){return e>-i&&ei||e<-i}function m(e,r,A,T,w){var h=1-w;return h*h*(h*e+3*w*r)+w*w*(w*T+3*h*A)}function O(e,r,A,T,w){var h=1-w;return 3*(((r-e)*h+2*(A-r)*w)*h+(T-A)*w*w)}function D(e,r,A,T,w,h){var S=T+3*(r-A)-e,L=3*(A-r*2+e),N=3*(r-e),K=e-w,Y=L*L-3*S*N,W=L*N-9*S*K,B=N*N-3*L*K,b=0;if(f(Y)&&f(W))if(f(L))h[0]=0;else{var z=-N/L;z>=0&&z<=1&&(h[b++]=z)}else{var k=W*W-4*Y*B;if(f(k)){var X=W/Y,z=-L/S+X,H=-X/2;z>=0&&z<=1&&(h[b++]=z),H>=0&&H<=1&&(h[b++]=H)}else if(k>0){var $=g(k),q=Y*L+1.5*S*(-W+$),le=Y*L+1.5*S*(-W-$);q<0?q=-x(-q,a):q=x(q,a),le<0?le=-x(-le,a):le=x(le,a);var z=(-L-(q+le))/(3*S);z>=0&&z<=1&&(h[b++]=z)}else{var ie=(2*Y*L-3*S*W)/(2*g(Y*Y*Y)),Ae=Math.acos(ie)/3,we=g(Y),_e=Math.cos(Ae),z=(-L-2*we*_e)/(3*S),H=(-L+we*(_e+t*Math.sin(Ae)))/(3*S),G=(-L+we*(_e-t*Math.sin(Ae)))/(3*S);z>=0&&z<=1&&(h[b++]=z),H>=0&&H<=1&&(h[b++]=H),G>=0&&G<=1&&(h[b++]=G)}}return b}function R(e,r,A,T,w){var h=6*A-12*r+6*e,S=9*r+3*T-3*e-9*A,L=3*r-3*e,N=0;if(f(S)){if(y(h)){var K=-L/h;K>=0&&K<=1&&(w[N++]=K)}}else{var Y=h*h-4*S*L;if(f(Y))w[0]=-h/(2*S);else if(Y>0){var W=g(Y),K=(-h+W)/(2*S),B=(-h-W)/(2*S);K>=0&&K<=1&&(w[N++]=K),B>=0&&B<=1&&(w[N++]=B)}}return N}function C(e,r,A,T,w,h){var S=(r-e)*w+e,L=(A-r)*w+r,N=(T-A)*w+A,K=(L-S)*w+S,Y=(N-L)*w+L,W=(Y-K)*w+K;h[0]=e,h[1]=S,h[2]=K,h[3]=W,h[4]=W,h[5]=Y,h[6]=N,h[7]=T}function j(e,r,A,T,w,h,S,L,N,K,Y){var W,B=.005,b=Infinity,z,k,X,H;u[0]=N,u[1]=K;for(var $=0;$<1;$+=.05)n[0]=m(e,A,w,S,$),n[1]=m(r,T,h,L,$),X=E(u,n),X=0&&X=0&&K<=1&&(w[N++]=K)}}else{var Y=S*S-4*h*L;if(f(Y)){var K=-S/(2*h);K>=0&&K<=1&&(w[N++]=K)}else if(Y>0){var W=g(Y),K=(-S+W)/(2*h),B=(-S-W)/(2*h);K>=0&&K<=1&&(w[N++]=K),B>=0&&B<=1&&(w[N++]=B)}}return N}function F(e,r,A){var T=e+A-2*r;return T===0?.5:(e-r)/T}function v(e,r,A,T,w){var h=(r-e)*T+e,S=(A-r)*T+r,L=(S-h)*T+h;w[0]=e,w[1]=h,w[2]=L,w[3]=L,w[4]=S,w[5]=A}function s(e,r,A,T,w,h,S,L,N){var K,Y=.005,W=Infinity;u[0]=S,u[1]=L;for(var B=0;B<1;B+=.05){n[0]=c(e,A,w,B),n[1]=c(r,T,h,B);var b=E(u,n);b=0&&b=0;--j)if(C[j]===R)return!0;return!1}),D):null:D[0]},f.prototype.update=function(m,O){if(!m)return;var D=this.getDefs(!1);if(m[this._domName]&&D.contains(m[this._domName]))typeof O=="function"&&O(m);else{var R=this.add(m);R&&(m[this._domName]=R)}},f.prototype.addDom=function(m){var O=this.getDefs(!0);O.appendChild(m)},f.prototype.removeDom=function(m){var O=this.getDefs(!1);O&&m[this._domName]&&(O.removeChild(m[this._domName]),m[this._domName]=null)},f.prototype.getDoms=function(){var m=this.getDefs(!1);if(!m)return[];var O=[];return E.each(this._tagNames,function(D){var R=m.getElementsByTagName(D);O=O.concat([].slice.call(R))}),O},f.prototype.markAllUnused=function(){var m=this.getDoms(),O=this;E.each(m,function(D){D[O._markLabel]=n})},f.prototype.markUsed=function(m){m&&(m[this._markLabel]=d)},f.prototype.removeUnused=function(){var m=this.getDefs(!1);if(!m)return;var O=this.getDoms(),D=this;E.each(O,function(R){R[D._markLabel]!==d&&m.removeChild(R)})},f.prototype.getSvgProxy=function(m){return m instanceof x?t:m instanceof g?a:m instanceof i?u:t},f.prototype.getTextSvgElement=function(m){return m.__textSvgEl},f.prototype.getSvgElement=function(m){return m.__svgEl};var y=f;J.exports=y},T6xi:function(J,I,l){var P=l("YgsL"),p=l("nCxF");function E(x,g,i){var o=g.points,t=g.smooth;if(o&&o.length>=2){if(t&&t!=="spline"){var a=p(o,t,i,g.smoothConstraint);x.moveTo(o[0][0],o[0][1]);for(var u=o.length,n=0;n<(i?u:u-1);n++){var d=a[n*2],f=a[n*2+1],y=o[(n+1)%u];x.bezierCurveTo(d[0],d[1],f[0],f[1],y[0],y[1])}}else{t==="spline"&&(o=P(o,i)),x.moveTo(o[0][0],o[0][1]);for(var n=1,m=o.length;ng&&(d=t+a,t*=g/d,a*=g/d),u+n>g&&(d=u+n,u*=g/d,n*=g/d),a+u>i&&(d=a+u,a*=i/d,u*=i/d),t+n>i&&(d=t+n,t*=i/d,n*=i/d),P.moveTo(E+t,x),P.lineTo(E+g-a,x),a!==0&&P.arc(E+g-a,x+a,a,-Math.PI/2,0),P.lineTo(E+g,x+i-u),u!==0&&P.arc(E+g-u,x+i-u,u,0,Math.PI/2),P.lineTo(E+n,x+i),n!==0&&P.arc(E+n,x+i-n,n,Math.PI/2,Math.PI),P.lineTo(E,x+t),t!==0&&P.arc(E+t,x+t,t,Math.PI,Math.PI*1.5)}I.buildPath=l},WaYH:function(J,I,l){"use strict";var P=l("rePB"),p=l("Ff2n"),E=l("VTBJ"),x=l("1OyB"),g=l("vuIU"),i=l("JX7q"),o=l("Ji7U"),t=l("LK+K"),a=l("q1tI"),u=l("TSYQ"),n=l.n(u),d=l("sboe"),f=l("OZM5"),y=function(F){var v=F.prefixCls,s=F.level,e=F.isStart,r=F.isEnd;if(!s)return null;for(var A="".concat(v,"-indent-unit"),T=[],w=0;w=0;if(!_)a(R,C,C,j),C.zrDelta=C.wheelDelta?C.wheelDelta/120:-(C.detail||0)/3;else{var M=c!=="touchend"?C.targetTouches[0]:C.changedTouches[0];M&&a(R,M,C,j)}var F=C.button;return C.which==null&&F!==void 0&&o.test(C.type)&&(C.which=F&1?1:F&2?3:F&4?2:0),C}function f(R,C,j,c){i?R.addEventListener(C,j,c):R.attachEvent("on"+C,j)}function y(R,C,j,c){i?R.removeEventListener(C,j,c):R.detachEvent("on"+C,j)}var m=i?function(R){R.preventDefault(),R.stopPropagation(),R.cancelBubble=!0}:function(R){R.returnValue=!1,R.cancelBubble=!0};function O(R){return R.which===2||R.which===3}function D(R){return R.which>1}I.clientToLocal=a,I.getNativeEvent=n,I.normalizeEvent=d,I.addEventListener=f,I.removeEventListener=y,I.stop=m,I.isMiddleOrRightButtonOnMouseUpDown=O,I.notLeftMouse=D},YgsL:function(J,I,l){var P=l("QBsz"),p=P.distance;function E(g,i,o,t,a,u,n){var d=(o-g)*.5,f=(t-i)*.5;return(2*(i-o)+d+f)*n+(-3*(i-o)-2*d-f)*u+d*a+i}function x(g,i){for(var o=g.length,t=[],a=0,u=1;uo-2?o-1:f+1],R=g[f>o-3?o-1:f+2]);var C=y*y,j=y*C;t.push([E(m[0],O[0],D[0],R[0],y,C,j),E(m[1],O[1],D[1],R[1],y,C,j)])}return t}J.exports=x},ZW5e:function(J,I,l){J.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},Ze12:function(J,I,l){var P=l("ItGF"),p=l("hOwI"),E=p.buildTransformer,x="___zrEVENTSAVED",g=[];function i(n,d,f,y,m){return o(g,d,y,m,!0)&&o(n,f,g[0],g[1])}function o(n,d,f,y,m){if(d.getBoundingClientRect&&P.domSupported&&!u(d)){var O=d[x]||(d[x]={}),D=t(d,O),R=a(D,O,m);if(R)return R(n,f,y),!0}return!1}function t(n,d){var f=d.markers;if(f)return f;f=d.markers=[];for(var y=["left","right"],m=["top","bottom"],O=0;O<4;O++){var D=document.createElement("div"),R=D.style,C=O%2,j=(O>>1)%2;R.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",y[C]+":0",m[j]+":0",y[1-C]+":auto",m[1-j]+":auto",""].join("!important;"),n.appendChild(D),f.push(D)}return f}function a(n,d,f){for(var y=f?"invTrans":"trans",m=d[y],O=d.srcCoords,D=!0,R=[],C=[],j=0;j<4;j++){var c=n[j].getBoundingClientRect(),_=2*j,M=c.left,F=c.top;R.push(M,F),D=D&&O&&M===O[_]&&F===O[_+1],C.push(n[j].offsetLeft,n[j].offsetTop)}return D&&m?m:(d.srcCoords=R,d[y]=f?E(C,R):E(R,C))}function u(n){return n.nodeName.toUpperCase()==="CANVAS"}I.transformLocalCoord=i,I.transformCoordWithViewport=o,I.isCanvasEl=u},ZiBY:function(J,I,l){J.exports={headerContainer:"headerContainer___UVeJr",breadcrumd:"breadcrumd___3PBrD",select:"select___1kKxY"}},aKvl:function(J,I,l){var P=l("Sj9i"),p=P.quadraticProjectPoint;function E(x,g,i,o,t,a,u,n,d){if(u===0)return!1;var f=u;if(d>g+f&&d>o+f&&d>a+f||dx+f&&n>i+f&&n>t+f||np&&i>x||ig?o:0}J.exports=l},iXp4:function(J,I,l){var P=l("ItGF"),p=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function E(x){return P.browser.ie&&P.browser.version>=11?function(){var g=this.__clipPaths,i=this.style,o;if(g)for(var t=0;tp+t&&o>x+t||oP+t&&i>E+t||i=u.x&&t<=u.x+u.width&&a>=u.y&&a<=u.y+u.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)};var o=i;J.exports=o},mLcG:function(J,I){var l=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(P){setTimeout(P,16)};J.exports=l},n1HI:function(J,I,l){var P=l("hX1E"),p=P.normalizeRadian,E=Math.PI*2;function x(g,i,o,t,a,u,n,d,f){if(n===0)return!1;var y=n;d-=g,f-=i;var m=Math.sqrt(d*d+f*f);if(m-y>o||m+ya&&(a+=E);var D=Math.atan2(f,d);return D<0&&(D+=E),D>=t&&D<=a||D+E>=t&&D+E<=a}I.containStroke=x},n6Mw:function(J,I,l){var P=l("SrGk"),p=l("bYtY"),E=l("Fofx");function x(i,o){P.call(this,i,o,"clipPath","__clippath_in_use__")}p.inherits(x,P),x.prototype.update=function(i){var o=this.getSvgElement(i);o&&this.updateDom(o,i.__clipPaths,!1);var t=this.getTextSvgElement(i);t&&this.updateDom(t,i.__clipPaths,!0),this.markUsed(i)},x.prototype.updateDom=function(i,o,t){if(o&&o.length>0){var a=this.getDefs(!0),u=o[0],n,d,f=t?"_textDom":"_dom";u[f]?(d=u[f].getAttribute("id"),n=u[f],a.contains(n)||a.appendChild(n)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",d),a.appendChild(n),u[f]=n);var y=this.getSvgProxy(u);if(u.transform&&u.parent.invTransform&&!t){var m=Array.prototype.slice.call(u.transform);E.mul(u.transform,u.parent.invTransform,u.transform),y.brush(u),u.transform=m}else y.brush(u);var O=this.getSvgElement(u);n.innerHTML="",n.appendChild(O.cloneNode()),i.setAttribute("clip-path","url(#"+d+")"),o.length>1&&this.updateDom(n,o.slice(1),t)}else i&&i.setAttribute("clip-path","none")},x.prototype.markUsed=function(i){var o=this;i.__clipPaths&&p.each(i.__clipPaths,function(t){t._dom&&P.prototype.markUsed.call(o,t._dom),t._textDom&&P.prototype.markUsed.call(o,t._textDom)})};var g=x;J.exports=g},n6Qo:function(J,I,l){"use strict";l.d(I,"a",function(){return t});var P=l("q1tI"),p=l("biw7"),E=l("fyJ8");function x(a){var u=a.className,n=a.index,d=a.children,f=a.colSpan,y=a.rowSpan,m=P.useContext(p.a),O=m.prefixCls,D=m.fixedInfoList,R=D[n];return P.createElement(E.a,Object.assign({className:u,index:n,component:"td",prefixCls:O,record:null,dataIndex:null,render:function(){return{children:d,props:{colSpan:f,rowSpan:y}}}},R))}function g(a){return P.createElement("tr",Object.assign({},a))}function i(a){var u=a.children,n=P.useContext(p.a),d=n.prefixCls;return P.createElement("tfoot",{className:"".concat(d,"-summary")},u)}var o=I.b=i,t={Cell:x,Row:g}},nCxF:function(J,I,l){var P=l("QBsz"),p=P.min,E=P.max,x=P.scale,g=P.distance,i=P.add,o=P.clone,t=P.sub;function a(u,n,d,f){var y=[],m=[],O=[],D=[],R,C,j,c;if(f){j=[Infinity,Infinity],c=[-Infinity,-Infinity];for(var _=0,M=u.length;_=0&&(Q=de[$e],Q.textAlign==="right");)r(B,b,Q,F,Pe,Se,We,"right"),Ie-=Q.width,We-=Q.width,$e--;for(Ke+=(H-(Ke-pe)-(ze-We)-Ie)/2;Be<=$e;)Q=de[Be],r(B,b,Q,F,Pe,Se,Ke+Q.width/2,"center"),Ke+=Q.width,Be++;Se+=Pe}}function e(B,b,z,F,X){if(z&&b.textRotation){var H=b.textOrigin;H==="center"?(F=z.width/2+z.x,X=z.height/2+z.y):H&&(F=H[0]+z.x,X=H[1]+z.y),B.translate(F,X),B.rotate(-b.textRotation),B.translate(-F,-X)}}function r(B,b,z,F,X,H,$,q){var le=F.rich[z.styleName]||{};le.text=z.text;var ie=z.textVerticalAlign,Ae=H+X/2;ie==="top"?Ae=H+z.height/2:ie==="bottom"&&(Ae=H+X-z.height/2),!z.isLineHolder&&A(le)&&T(B,b,le,q==="right"?$-z.width:q==="center"?$-z.width/2:$,Ae-z.height/2,z.width,z.height);var we=z.textPadding;we&&($=Y($,q,we),Ae-=z.height/2-we[2]-z.textHeight/2),S(b,"shadowBlur",E(le.textShadowBlur,F.textShadowBlur,0)),S(b,"shadowColor",le.textShadowColor||F.textShadowColor||"transparent"),S(b,"shadowOffsetX",E(le.textShadowOffsetX,F.textShadowOffsetX,0)),S(b,"shadowOffsetY",E(le.textShadowOffsetY,F.textShadowOffsetY,0)),S(b,"textAlign",q),S(b,"textBaseline","middle"),S(b,"font",z.font||m);var _e=L(le.textStroke||F.textStroke,Z),G=N(le.textFill||F.textFill),Z=p(le.textStrokeWidth,F.textStrokeWidth);_e&&(S(b,"lineWidth",Z),S(b,"strokeStyle",_e),b.strokeText(z.text,$,Ae)),G&&(S(b,"fillStyle",G),b.fillText(z.text,$,Ae))}function A(B){return!!(B.textBackgroundColor||B.textBorderWidth&&B.textBorderColor)}function T(B,b,z,F,X,H,$){var q=z.textBackgroundColor,le=z.textBorderWidth,ie=z.textBorderColor,Ae=i(q);if(S(b,"shadowBlur",z.textBoxShadowBlur||0),S(b,"shadowColor",z.textBoxShadowColor||"transparent"),S(b,"shadowOffsetX",z.textBoxShadowOffsetX||0),S(b,"shadowOffsetY",z.textBoxShadowOffsetY||0),Ae||le&&ie){b.beginPath();var we=z.textBorderRadius;we?a.buildPath(b,{x:F,y:X,width:H,height:$,r:we}):b.rect(F,X,H,$),b.closePath()}if(Ae)if(S(b,"fillStyle",q),z.fillOpacity!=null){var _e=b.globalAlpha;b.globalAlpha=z.fillOpacity*z.opacity,b.fill(),b.globalAlpha=_e}else b.fill();else if(o(q)){var G=q.image;G=u.createOrUpdateImage(G,null,B,w,q),G&&u.isImageReady(G)&&b.drawImage(G,F,X,H,$)}if(le&&ie)if(S(b,"lineWidth",le),S(b,"strokeStyle",ie),z.strokeOpacity!=null){var _e=b.globalAlpha;b.globalAlpha=z.strokeOpacity*z.opacity,b.stroke(),b.globalAlpha=_e}else b.stroke()}function w(B,b){b.image=B}function h(B,b,z,F){var X=z.x||0,H=z.y||0,$=z.textAlign,q=z.textVerticalAlign;if(F){var le=z.textPosition;if(le instanceof Array)X=F.x+K(le[0],F.width),H=F.y+K(le[1],F.height);else{var ie=b&&b.calculateTextPosition?b.calculateTextPosition(C,z,F):t.calculateTextPosition(C,z,F);X=ie.x,H=ie.y,$=$||ie.textAlign,q=q||ie.textVerticalAlign}var Ae=z.textOffset;Ae&&(X+=Ae[0],H+=Ae[1])}return B=B||{},B.baseX=X,B.baseY=H,B.textAlign=$,B.textVerticalAlign=q,B}function S(B,b,z){return B[b]=n(B,b,z),B[b]}function L(B,b){return B==null||b<=0||B==="transparent"||B==="none"?null:B.image||B.colorStops?"#000":B}function N(B){return B==null||B==="none"?null:B.image||B.colorStops?"#000":B}function K(B,b){return typeof B=="string"?B.lastIndexOf("%")>=0?parseFloat(B)/100*b:parseFloat(B):B}function Y(B,b,z){return b==="right"?B-z[1]:b==="center"?B+z[3]/2-z[1]/2:B+z[3]}function W(B,b){return B!=null&&(B||b.textBackgroundColor||b.textBorderWidth&&b.textBorderColor||b.textPadding)}I.normalizeTextStyle=c,I.renderText=M,I.getBoxPosition=h,I.getStroke=L,I.getFill=N,I.parsePercent=K,I.needDrawText=W},qH13:function(J,I,l){var P=l("ItGF"),p=l("QBsz"),E=p.applyTransform,x=l("mFDi"),g=l("Qe9p"),i=l("6GrX"),o=l("pzxd"),t=l("ni6a"),a=l("Gev7"),u=l("Dagg"),n=l("dqUG"),d=l("y+Vt"),f=l("IMiH"),y=l("QuXc"),m=l("06Qe"),O=f.CMD,D=Math.round,R=Math.sqrt,C=Math.abs,j=Math.cos,c=Math.sin,_=Math.max;if(!P.canvasSupported){var M=",",k="progid:DXImageTransform.Microsoft",v=21600,s=v/2,e=1e5,r=1e3,A=function(te){te.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",te.coordsize=v+","+v,te.coordorigin="0,0"},T=function(te){return String(te).replace(/&/g,"&").replace(/"/g,""")},w=function(te,oe,de){return"rgb("+[te,oe,de].join(",")+")"},h=function(te,oe){oe&&te&&oe.parentNode!==te&&te.appendChild(oe)},S=function(te,oe){oe&&te&&oe.parentNode===te&&te.removeChild(oe)},L=function(te,oe,de){return(parseFloat(te)||0)*e+(parseFloat(oe)||0)*r+de},N=o.parsePercent,K=function(te,oe,de){var Me=g.parse(oe);de=+de,isNaN(de)&&(de=1),Me&&(te.color=w(Me[0],Me[1],Me[2]),te.opacity=de*Me[3])},Y=function(te){var oe=g.parse(te);return[w(oe[0],oe[1],oe[2]),oe[3]]},W=function(te,oe,de){var Me=oe.fill;if(Me!=null)if(Me instanceof y){var Pe,Ie=0,Be=[0,0],Ke=0,We=1,$e=de.getBoundingRect(),Q=$e.width,re=$e.height;if(Me.type==="linear"){Pe="gradient";var ce=de.transform,Ce=[Me.x*Q,Me.y*re],xe=[Me.x2*Q,Me.y2*re];ce&&(E(Ce,Ce,ce),E(xe,xe,ce));var Te=xe[0]-Ce[0],Oe=xe[1]-Ce[1];Ie=Math.atan2(Te,Oe)*180/Math.PI,Ie<0&&(Ie+=360),Ie<1e-6&&(Ie=0)}else{Pe="gradientradial";var Ce=[Me.x*Q,Me.y*re],ce=de.transform,be=de.scale,Ee=Q,Re=re;Be=[(Ce[0]-$e.x)/Ee,(Ce[1]-$e.y)/Re],ce&&E(Ce,Ce,ce),Ee/=be[0]*v,Re/=be[1]*v;var De=_(Ee,Re);Ke=2*0/De,We=2*Me.r/De-Ke}var ye=Me.colorStops.slice();ye.sort(function(ee,U){return ee.offset-U.offset});for(var ke=ye.length,je=[],Fe=[],Ve=0;Ve=2){var He=je[0][0],Le=je[1][0],ue=je[0][1]*oe.opacity,ge=je[1][1]*oe.opacity;te.type=Pe,te.method="none",te.focus="100%",te.angle=Ie,te.color=He,te.color2=Le,te.colors=Fe.join(","),te.opacity=ge,te.opacity2=ue}Pe==="radial"&&(te.focusposition=Be.join(","))}else K(te,Me,oe.opacity)},B=function(te,oe){oe.lineDash&&(te.dashstyle=oe.lineDash.join(" ")),oe.stroke!=null&&!(oe.stroke instanceof y)&&K(te,oe.stroke,oe.opacity)},b=function(te,oe,de,Me){var Pe=oe==="fill",Ie=te.getElementsByTagName(oe)[0];de[oe]!=null&&de[oe]!=="none"&&(Pe||!Pe&&de.lineWidth)?(te[Pe?"filled":"stroked"]="true",de[oe]instanceof y&&S(te,Ie),Ie||(Ie=m.createNode(oe)),Pe?W(Ie,de,Me):B(Ie,de),h(te,Ie)):(te[Pe?"filled":"stroked"]="false",S(te,Ie))},z=[[],[],[]],F=function(te,oe){var de=O.M,Me=O.C,Pe=O.L,Ie=O.A,Be=O.Q,Ke=[],We,$e,Q,re,ce,Ce,xe=te.data,Te=te.len();for(re=0;re.01?U&&(V+=270/v):Math.abs(se-He)<1e-4?U&&VYe?be-=270/v:be+=270/v:U&&seHe?Oe+=270/v:Oe-=270/v),Ke.push(ae,D(((Ye-Le)*Fe+ke)*v-s),M,D(((He-ue)*Ve+je)*v-s),M,D(((Ye+Le)*Fe+ke)*v-s),M,D(((He+ue)*Ve+je)*v-s),M,D((V*Fe+ke)*v-s),M,D((se*Ve+je)*v-s),M,D((Oe*Fe+ke)*v-s),M,D((be*Ve+je)*v-s)),ce=Oe,Ce=be;break;case O.R:var me=z[0],ve=z[1];me[0]=xe[re++],me[1]=xe[re++],ve[0]=me[0]+xe[re++],ve[1]=me[1]+xe[re++],oe&&(E(me,me,oe),E(ve,ve,oe)),me[0]=D(me[0]*v-s),ve[0]=D(ve[0]*v-s),me[1]=D(me[1]*v-s),ve[1]=D(ve[1]*v-s),Ke.push(" m ",me[0],M,me[1]," l ",ve[0],M,me[1]," l ",ve[0],M,ve[1]," l ",me[0],M,ve[1]);break;case O.Z:Ke.push(" x ")}if(We>0){Ke.push($e);for(var ne=0;nele&&(q=0,$={});var de=ie.style,Me;try{de.font=te,Me=de.fontFamily.split(",")[0]}catch(Pe){}oe={style:de.fontStyle||H,variant:de.fontVariant||H,weight:de.fontWeight||H,size:parseFloat(de.fontSize||12)|0,family:Me||"Microsoft YaHei"},$[te]=oe,q++}return oe},we;i.$override("measureText",function(te,oe){var de=m.doc;we||(we=de.createElement("div"),we.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(we));try{we.style.font=oe}catch(Me){}return we.innerHTML="",we.appendChild(de.createTextNode(te)),{width:we.offsetWidth}});for(var _e=new x,G=function(te,oe,de,Me){var Pe=this.style;this.__dirty&&o.normalizeTextStyle(Pe,!0);var Ie=Pe.text;if(Ie!=null&&(Ie+=""),!Ie)return;if(Pe.rich){var Be=i.parseRichText(Ie,Pe);Ie=[];for(var Ke=0;Ke=0&&(this.delFromStorage(t),this._roots.splice(d,1),t instanceof E&&t.delChildrenFromStorage(this))},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:g};var o=i;J.exports=o},rA99:function(J,I,l){var P=l("y+Vt"),p=l("QBsz"),E=l("Sj9i"),x=E.quadraticSubdivide,g=E.cubicSubdivide,i=E.quadraticAt,o=E.cubicAt,t=E.quadraticDerivativeAt,a=E.cubicDerivativeAt,u=[];function n(f,y,m){var O=f.cpx2,D=f.cpy2;return O===null||D===null?[(m?a:o)(f.x1,f.cpx1,f.cpx2,f.x2,y),(m?a:o)(f.y1,f.cpy1,f.cpy2,f.y2,y)]:[(m?t:i)(f.x1,f.cpx1,f.x2,y),(m?t:i)(f.y1,f.cpy1,f.y2,y)]}var d=P.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,y){var m=y.x1,O=y.y1,D=y.x2,R=y.y2,C=y.cpx1,j=y.cpy1,c=y.cpx2,_=y.cpy2,M=y.percent;if(M===0)return;f.moveTo(m,O),c==null||_==null?(M<1&&(x(m,C,D,M,u),C=u[1],D=u[2],x(O,j,R,M,u),j=u[1],R=u[2]),f.quadraticCurveTo(C,j,D,R)):(M<1&&(g(m,C,c,D,M,u),C=u[1],c=u[2],D=u[3],g(O,j,_,R,M,u),j=u[1],_=u[2],R=u[3]),f.bezierCurveTo(C,j,c,_,D,R))},pointAt:function(f){return n(this.shape,f,!1)},tangentAt:function(f){var y=n(this.shape,f,!0);return p.normalize(y,y)}});J.exports=d},rmlV:function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(E,x){var g=.5522848,i=x.cx,o=x.cy,t=x.rx,a=x.ry,u=t*g,n=a*g;E.moveTo(i-t,o),E.bezierCurveTo(i-t,o-n,i-u,o-a,i,o-a),E.bezierCurveTo(i+u,o-a,i+t,o-n,i+t,o),E.bezierCurveTo(i+t,o+n,i+u,o+a,i,o+a),E.bezierCurveTo(i-u,o+a,i-t,o+n,i-t,o),E.closePath()}});J.exports=p},sR1s:function(J,I,l){"use strict";l.d(I,"b",function(){return x}),l.d(I,"a",function(){return g}),l.d(I,"c",function(){return i}),l.d(I,"d",function(){return o});var P=l("U8pU"),p="RC_TABLE_KEY";function E(t){return t==null?[]:Array.isArray(t)?t:[t]}function x(t,a){if(!a&&typeof a!="number")return t;for(var u=E(a),n=t,d=0;d-1)){var y=x.parse(f)[3],m=x.toHex(f);d.setAttribute("stop-color","#"+m),d.setAttribute("stop-opacity",y)}else d.setAttribute("stop-color",a[u].color);t.appendChild(d)}o._dom=t},g.prototype.markUsed=function(o){if(o.style){var t=o.style.fill;t&&t._dom&&P.prototype.markUsed.call(this,t._dom),t=o.style.stroke,t&&t._dom&&P.prototype.markUsed.call(this,t._dom)}};var i=g;J.exports=i},sboe:function(J,I,l){"use strict";l.d(I,"a",function(){return E});var P=l("q1tI"),p=l.n(P),E=P.createContext(null)},t23M:function(J,I,l){"use strict";var P=l("VTBJ"),p=l("1OyB"),E=l("vuIU"),x=l("Ji7U"),g=l("LK+K"),i=l("q1tI"),o=l.n(i),t=l("m+aA"),a=l("Zm9Q"),u=l("Kwbf"),n=l("c+Xe"),d=l("bdgK"),f="rc-observer-key",y=function(m){Object(x.a)(D,m);var O=Object(g.a)(D);function D(){var R;return Object(p.a)(this,D),R=O.apply(this,arguments),R.resizeObserver=null,R.childNode=null,R.currentElement=null,R.state={width:0,height:0,offsetHeight:0,offsetWidth:0},R.onResize=function(C){var j=R.props.onResize,c=C[0].target,_=c.getBoundingClientRect(),M=_.width,k=_.height,v=c.offsetWidth,s=c.offsetHeight,e=Math.floor(M),r=Math.floor(k);if(R.state.width!==e||R.state.height!==r||R.state.offsetWidth!==v||R.state.offsetHeight!==s){var A={width:e,height:r,offsetWidth:v,offsetHeight:s};R.setState(A),j&&Promise.resolve().then(function(){j(Object(P.a)(Object(P.a)({},A),{},{offsetWidth:v,offsetHeight:s}))})}},R.setChildNode=function(C){R.childNode=C},R}return Object(E.a)(D,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var C=this.props.disabled;if(C){this.destroyObserver();return}var j=Object(t.a)(this.childNode||this),c=j!==this.currentElement;c&&(this.destroyObserver(),this.currentElement=j),!this.resizeObserver&&j&&(this.resizeObserver=new d.default(this.onResize),this.resizeObserver.observe(j))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var C=this.props.children,j=Object(a.a)(C);if(j.length>1)Object(u.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(j.length===0)return Object(u.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var c=j[0];if(i.isValidElement(c)&&Object(n.c)(c)){var _=c.ref;j[0]=i.cloneElement(c,{ref:Object(n.a)(_,this.setChildNode)})}return j.length===1?j[0]:j.map(function(M,k){return!i.isValidElement(M)||"key"in M&&M.key!==null?M:i.cloneElement(M,{key:"".concat(f,"-").concat(k)})})}}]),D}(i.Component);y.displayName="ResizeObserver",I.a=y},u3os:function(J,I,l){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.ver=I.clear=I.bind=void 0;var P=l("P4Qj"),p=function(i,o){var t=(0,P.getSensor)(i);return t.bind(o),function(){t.unbind(o)}};I.bind=p;var E=function(i){var o=(0,P.getSensor)(i);(0,P.removeSensor)(o)};I.clear=E;var x="1.0.1";I.ver=x},vKoX:function(J,I,l){var P=l("SrGk"),p=l("bYtY");function E(i,o){P.call(this,i,o,["filter"],"__filter_in_use__","_shadowDom")}p.inherits(E,P),E.prototype.addWithoutUpdate=function(i,o){if(o&&x(o.style)){var t;if(o._shadowDom){t=o._shadowDom;var a=this.getDefs(!0);a.contains(o._shadowDom)||this.addDom(t)}else t=this.add(o);this.markUsed(o);var u=t.getAttribute("id");i.style.filter="url(#"+u+")"}},E.prototype.add=function(i){var o=this.createElement("filter");return i._shadowDomId=i._shadowDomId||this.nextId++,o.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(i,o),this.addDom(o),o},E.prototype.update=function(i,o){var t=o.style;if(x(t)){var a=this;P.prototype.update.call(this,o,function(){a.updateDom(o,o._shadowDom)})}else this.remove(i,o)},E.prototype.remove=function(i,o){o._shadowDomId!=null&&(this.removeDom(i),i.style.filter="")},E.prototype.updateDom=function(i,o){var t=o.getElementsByTagName("feDropShadow");t.length===0?t=this.createElement("feDropShadow"):t=t[0];var a=i.style,u=i.scale&&i.scale[0]||1,n=i.scale&&i.scale[1]||1,d,f,y,m;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)d=a.shadowOffsetX||0,f=a.shadowOffsetY||0,y=a.shadowBlur,m=a.shadowColor;else if(a.textShadowBlur)d=a.textShadowOffsetX||0,f=a.textShadowOffsetY||0,y=a.textShadowBlur,m=a.textShadowColor;else{this.removeDom(o,a);return}t.setAttribute("dx",d/u),t.setAttribute("dy",f/n),t.setAttribute("flood-color",m);var O=y/2/u,D=y/2/n,R=O+" "+D;t.setAttribute("stdDeviation",R),o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width",Math.ceil(y/2*200)+"%"),o.setAttribute("height",Math.ceil(y/2*200)+"%"),o.appendChild(t),i._shadowDom=o},E.prototype.markUsed=function(i){i._shadowDom&&P.prototype.markUsed.call(this,i._shadowDom)};function x(i){return i&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY||i.textShadowBlur||i.textShadowOffsetX||i.textShadowOffsetY)}var g=E;J.exports=g},vWvF:function(J,I,l){var P=l("Bq2U"),p=l("SUKs"),E=l("bYtY"),x=E.isString,g=E.isFunction,i=E.isObject,o=E.isArrayLike,t=E.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(y,m){var O,D=!1,R=this,C=this.__zr;if(y){var j=y.split("."),c=R;D=j[0]==="shape";for(var _=0,M=j.length;_0&&y.animate(m,!1).when(R==null?500:R,c).delay(C||0)}function d(y,m,O,D){if(!m)y.attr(O,D);else{var R={};R[m]={},R[m][O]=D,y.attr(R)}}var f=a;J.exports=f},wCXF:function(J,I,l){"use strict";l.d(I,"a",function(){return Be});var P=l("rePB"),p=l("VTBJ"),E=l("KQm4"),x=l("U8pU"),g=l("ODXe"),i=l("q1tI"),o=l("TSYQ"),t=l.n(o),a=l("Gytx"),u=l.n(a),n=l("Kwbf"),d=l("t23M"),f=l("qx4F"),y=l("6eGT"),m=l("IBYe"),O=l("Ff2n"),D=l("c+Xe"),R=l("fyJ8"),C=l("biw7");function j(Q,re,ce,Ce,xe){var Te=ce[Q]||{},Oe=ce[re]||{},be,Ee;Te.fixed==="left"?be=Ce.left[Q]:Oe.fixed==="right"&&(Ee=Ce.right[re]);var Re=!1,De=!1,ye=!1,ke=!1,je=ce[re+1],Fe=ce[Q-1];if(xe==="rtl"){if(be!==void 0){var Ve=Fe&&Fe.fixed==="left";ke=!Ve}else if(Ee!==void 0){var Xe=je&&je.fixed==="right";ye=!Xe}}else if(be!==void 0){var Ye=je&&je.fixed==="left";Re=!Ye}else if(Ee!==void 0){var He=Fe&&Fe.fixed==="right";De=!He}return{fixLeft:be,fixRight:Ee,lastFixLeft:Re,firstFixRight:De,lastFixRight:ye,firstFixLeft:ke,isSticky:Ce.isSticky}}var c=l("sR1s");function _(Q){var re=Q.cells,ce=Q.stickyOffsets,Ce=Q.flattenColumns,xe=Q.rowComponent,Te=Q.cellComponent,Oe=Q.onHeaderRow,be=Q.index,Ee=i.useContext(C.a),Re=Ee.prefixCls,De=Ee.direction,ye;Oe&&(ye=Oe(re.map(function(je){return je.column}),be));var ke=Object(c.a)(re.map(function(je){return je.column}));return i.createElement(xe,Object.assign({},ye),re.map(function(je,Fe){var Ve=je.column,Xe=j(je.colStart,je.colEnd,Ce,ce,De),Ye;return Ve&&Ve.onHeaderCell&&(Ye=je.column.onHeaderCell(Ve)),i.createElement(R.a,Object.assign({},je,{ellipsis:Ve.ellipsis,align:Ve.align,component:Te,prefixCls:Re,key:ke[Fe]},Xe,{additionalProps:Ye,rowType:"header"}))}))}_.displayName="HeaderRow";var M=_;function k(Q){var re=[];function ce(Oe,be){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;re[Ee]=re[Ee]||[];var Re=be,De=Oe.filter(Boolean).map(function(ye){var ke={key:ye.key,className:ye.className||"",children:ye.title,column:ye,colStart:Re},je=1,Fe=ye.children;return Fe&&Fe.length>0&&(je=ce(Fe,Re,Ee+1).reduce(function(Ve,Xe){return Ve+Xe},0),ke.hasSubColumns=!0),"colSpan"in ye&&(je=ye.colSpan),"rowSpan"in ye&&(ke.rowSpan=ye.rowSpan),ke.colSpan=je,ke.colEnd=ke.colStart+je-1,re[Ee].push(ke),Re+=je,je});return De}ce(Q,0);for(var Ce=re.length,xe=function(be){re[be].forEach(function(Ee){!("rowSpan"in Ee)&&!Ee.hasSubColumns&&(Ee.rowSpan=Ce-be)})},Te=0;Te=0;be-=1){var Ee=re[be],Re=ce&&ce[be],De=Re&&Re[e.a];(Ee||De||Oe)&&(xe.unshift(i.createElement("col",Object.assign({key:be,style:{width:Ee,minWidth:Ee}},De))),Oe=!0)}return i.createElement("colgroup",null,xe)}var A=r;function T(Q,re){return Object(i.useMemo)(function(){for(var ce=[],Ce=0;Ce1?it-1:0),Ct=1;Ct=ye&&(Ue=ye-ke),Oe({scrollLeft:Ue/ye*(De+2)}),He.current.x=ne.pageX},ae=function(){var ne=Object(te.b)(Te.current).top,he=ne+Te.current.offsetHeight,Ne=document.documentElement.scrollTop+window.innerHeight;he-Object(f.a)()<=Ne||ne>=Ne-be?Ye(function(Ge){return Object(p.a)(Object(p.a)({},Ge),{},{isHiddenScrollBar:!0})}):Ye(function(Ge){return Object(p.a)(Object(p.a)({},Ge),{},{isHiddenScrollBar:!1})})},me=function(ne){Ye(function(he){return Object(p.a)(Object(p.a)({},he),{},{scrollLeft:ne/De*ye||0})})};return i.useImperativeHandle(ce,function(){return{setScrollLeft:me}}),i.useEffect(function(){var ve=Object(ze.a)(document.body,"mouseup",U,!1),ne=Object(ze.a)(document.body,"mousemove",se,!1);return ae(),function(){ve.remove(),ne.remove()}},[ke,ge]),i.useEffect(function(){var ve=Object(ze.a)(window,"scroll",ae,!1),ne=Object(ze.a)(window,"resize",ae,!1);return function(){ve.remove(),ne.remove()}},[]),i.useEffect(function(){Xe.isHiddenScrollBar||Ye(function(ve){var ne,he;return Object(p.a)(Object(p.a)({},ve),{},{scrollLeft:Te.current.scrollLeft/((ne=Te.current)===null||ne===void 0?void 0:ne.scrollWidth)*((he=Te.current)===null||he===void 0?void 0:he.clientWidth)})})},[Xe.isHiddenScrollBar]),De<=ye||!ke||Xe.isHiddenScrollBar?null:i.createElement("div",{style:{height:Object(f.a)(),width:ye,bottom:be},className:"".concat(Re,"-sticky-scroll")},i.createElement("div",{onMouseDown:V,ref:je,className:t()("".concat(Re,"-sticky-scroll-bar"),Object(P.a)({},"".concat(Re,"-sticky-scroll-bar-active"),ge)),style:{width:"".concat(ke,"px"),transform:"translate3d(".concat(Xe.scrollLeft,"px, 0, 0)")}}))},de=i.forwardRef(oe);function Me(Q,re){return i.useMemo(function(){var ce=!!Q;return{isSticky:ce,stickyClassName:ce?"".concat(re,"-sticky-header"):"",offsetHeader:Object(x.a)(Q)==="object"&&Q.offsetHeader||0,offsetScroll:Object(x.a)(Q)==="object"&&Q.offsetScroll||0}},[Q,re])}var Pe=[],Ie={},Be="rc-table-internal-hook",Ke=i.memo(function(Q){var re=Q.children;return re},function(Q,re){return u()(Q.props,re.props)?Q.pingLeft!==re.pingLeft||Q.pingRight!==re.pingRight:!1});function We(Q){var re,ce=Q.prefixCls,Ce=Q.className,xe=Q.rowClassName,Te=Q.style,Oe=Q.data,be=Q.rowKey,Ee=Q.scroll,Re=Q.tableLayout,De=Q.direction,ye=Q.title,ke=Q.footer,je=Q.summary,Fe=Q.id,Ve=Q.showHeader,Xe=Q.components,Ye=Q.emptyText,He=Q.onRow,Le=Q.onHeaderRow,ue=Q.internalHooks,ge=Q.transformColumns,ee=Q.internalRefs,U=Q.sticky,V=Oe||Pe,se=!!V.length,ae=i.useState(0),me=Object(g.a)(ae,2),ve=me[0],ne=me[1];i.useEffect(function(){ne(Object(f.a)())});var he=i.useMemo(function(){return Object(c.c)(Xe,{})},[Xe]),Ne=i.useCallback(function(Qe,Je){return Object(c.b)(he,Qe)||Je},[he]),Ge=i.useMemo(function(){return typeof be=="function"?be:function(Qe){var Je=Qe&&Qe[be];return Je}},[be]),Ue=Object(e.c)(Q),Ze=Ue.expandIcon,qe=Ue.expandedRowKeys,ct=Ue.defaultExpandedRowKeys,at=Ue.defaultExpandAllRows,nt=Ue.expandedRowRender,st=Ue.onExpand,lt=Ue.onExpandedRowsChange,pt=Ue.expandRowByClick,rt=Ue.rowExpandable,ft=Ue.expandIconColumnIndex,bt=Ue.expandedRowClassName,St=Ue.childrenColumnName,Ot=Ue.indentSize,vt=Ze||pe,wt=St||"children",yt=i.useMemo(function(){return nt?"row":Q.expandable&&ue===Be&&Q.expandable.__PARENT_RENDER_ICON__||V.some(function(Qe){return Qe&&Object(x.a)(Qe)==="object"&&Qe[wt]})?"nest":!1},[!!nt,V]),Rt=i.useState(function(){return ct||(at?Se(V,Ge,wt):[])}),ot=Object(g.a)(Rt,2),ut=ot[0],ht=ot[1],it=i.useMemo(function(){return new Set(qe||ut||[])},[qe,ut]),xt=i.useCallback(function(Qe){var Je=Ge(Qe,V.indexOf(Qe)),tt,dt=it.has(Je);dt?(it.delete(Je),tt=Object(E.a)(it)):tt=[].concat(Object(E.a)(it),[Je]),ht(tt),st&&st(!dt,Qe),lt&<(tt)},[Ge,it,V,st,lt]),Ct=i.useState(0),jt=Object(g.a)(Ct,2),Tt=jt[0],Lt=jt[1],vn=Object($.b)(Object(p.a)(Object(p.a)(Object(p.a)({},Q),Ue),{},{expandable:!!nt,expandedKeys:it,getRowKey:Ge,onTriggerExpand:xt,expandIcon:vt,expandIconColumnIndex:ft,direction:De}),ue===Be?ge:null),Qt=Object(g.a)(vn,2),Ft=Qt[0],et=Qt[1],_t=i.useMemo(function(){return{columns:Ft,flattenColumns:et}},[Ft,et]),Ut=i.useRef(),Jt=i.useRef(),Et=i.useRef(),gn=i.useState(!1),Zt=Object(g.a)(gn,2),qt=Zt[0],bn=Zt[1],yn=i.useState(!1),en=Object(g.a)(yn,2),tn=en[0],xn=en[1],Cn=ie(new Map),nn=Object(g.a)(Cn,2),En=nn[0],wn=nn[1],On=Object(c.a)(et),rn=On.map(function(Qe){return En.get(Qe)}),an=i.useMemo(function(){return rn},[rn.join("_")]),It=_e(an,et.length,De),mt=Ee&&Object(c.d)(Ee.y),gt=Ee&&Object(c.d)(Ee.x),Dt=gt&&et.some(function(Qe){var Je=Qe.fixed;return Je}),on=i.useRef(),Nt=Me(U,ce),At=Nt.isSticky,Mn=Nt.offsetHeader,Sn=Nt.offsetScroll,Tn=Nt.stickyClassName,Bt,zt,Kt;mt&&(zt={overflowY:"scroll",maxHeight:Ee.y}),gt&&(Bt={overflowX:"auto"},mt||(zt={overflowY:"hidden"}),Kt={width:Ee.x===!0?"auto":Ee.x,minWidth:"100%"});var sn=i.useCallback(function(Qe,Je){wn(function(tt){var dt=new Map(tt);return dt.set(Qe,Je),dt})},[]),Dn=Ae(null),ln=Object(g.a)(Dn,2),An=ln[0],un=ln[1];function Ht(Qe,Je){if(!Je)return;typeof Je=="function"?Je(Qe):Je.scrollLeft!==Qe&&(Je.scrollLeft=Qe)}var Mt=function(Je){var tt=Je.currentTarget,dt=Je.scrollLeft,Pt=typeof dt=="number"?dt:tt.scrollLeft,pn=tt||Ie;if(!un()||un()===pn){var $t;An(pn),Ht(Pt,Jt.current),Ht(Pt,Et.current),Ht(Pt,($t=on.current)===null||$t===void 0?void 0:$t.setScrollLeft)}if(tt){var Nn=tt.scrollWidth,zn=tt.clientWidth;bn(Pt>0),xn(Pt0?[].concat(Object(p.a)(O),Object(p.a)(n(j).map(function(c){return Object(E.a)({fixed:C},c)}))):[].concat(Object(p.a)(O),[Object(E.a)(Object(E.a)({},D),{},{fixed:C})])},[])}function d(m){for(var O=!0,D=0;D=0;j-=1){var c=m[j];if(C&&c.fixed!=="right")C=!1;else if(!C&&c.fixed==="right"){Object(o.a)(!1,"Index ".concat(j+1," of `columns` missing `fixed='right'` prop."));break}}}function f(m){return m.map(function(O){var D=O.fixed,R=Object(x.a)(O,["fixed"]),C=D;return D==="left"?C="right":D==="right"&&(C="left"),Object(E.a)({fixed:C},R)})}function y(m,O){var D=m.prefixCls,R=m.columns,C=m.children,j=m.expandable,c=m.expandedKeys,_=m.getRowKey,M=m.onTriggerExpand,k=m.expandIcon,v=m.rowExpandable,s=m.expandIconColumnIndex,e=m.direction,r=m.expandRowByClick,A=g.useMemo(function(){return R||u(C)},[R,C]),T=g.useMemo(function(){if(j){var S,L=s||0,N=A[L],K=(S={},Object(P.a)(S,a.a,{className:"".concat(D,"-expand-icon-col")}),Object(P.a)(S,"title",""),Object(P.a)(S,"fixed",N?N.fixed:null),Object(P.a)(S,"className","".concat(D,"-row-expand-icon-cell")),Object(P.a)(S,"render",function(B,b,z){var F=_(b,z),X=c.has(F),H=v?v(b):!0,$=k({prefixCls:D,expanded:X,expandable:H,record:b,onExpand:M});return r?g.createElement("span",{onClick:function(le){return le.stopPropagation()}},$):$}),S),Y=A.slice();return L>=0&&Y.splice(L,0,K),Y}return A},[j,A,_,c,k,e]),w=g.useMemo(function(){var S=T;return O&&(S=O(S)),S.length||(S=[{render:function(){return null}}]),S},[O,T,e]),h=g.useMemo(function(){return e==="rtl"?f(n(w)):n(w)},[w,e]);return[w,h]}I.b=y},x6Kt:function(J,I,l){var P=l("y+Vt"),p=l("VpOo"),E=l("nPnh"),x=E.subPixelOptimizeRect,g={},i=P.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(o,t){var a,u,n,d;this.subPixelOptimize?(x(g,t,this.style),a=g.x,u=g.y,n=g.width,d=g.height,g.r=t.r,t=g):(a=t.x,u=t.y,n=t.width,d=t.height),t.r?p.buildPath(o,t):o.rect(a,u,n,d),o.closePath();return}});J.exports=i},"y+Vt":function(J,I,l){var P=l("Gev7"),p=l("bYtY"),E=l("IMiH"),x=l("2DNl"),g=l("3C/r"),i=g.prototype.getCanvasPattern,o=Math.abs,t=new E(!0);function a(n){P.call(this,n),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,d){var f=this.style,y=this.path||t,m=f.hasStroke(),O=f.hasFill(),D=f.fill,R=f.stroke,C=O&&!!D.colorStops,j=m&&!!R.colorStops,c=O&&!!D.image,_=m&&!!R.image;if(f.bind(n,this,d),this.setTransform(n),this.__dirty){var M;C&&(M=M||this.getBoundingRect(),this._fillGradient=f.getGradient(n,D,M)),j&&(M=M||this.getBoundingRect(),this._strokeGradient=f.getGradient(n,R,M))}C?n.fillStyle=this._fillGradient:c&&(n.fillStyle=i.call(D,n)),j?n.strokeStyle=this._strokeGradient:_&&(n.strokeStyle=i.call(R,n));var k=f.lineDash,v=f.lineDashOffset,s=!!n.setLineDash,e=this.getGlobalScale();if(y.setScale(e[0],e[1],this.segmentIgnoreThreshold),this.__dirtyPath||k&&!s&&m?(y.beginPath(n),k&&!s&&(y.setLineDash(k),y.setLineDashOffset(v)),this.buildPath(y,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),O)if(f.fillOpacity!=null){var r=n.globalAlpha;n.globalAlpha=f.fillOpacity*f.opacity,y.fill(n),n.globalAlpha=r}else y.fill(n);if(k&&s&&(n.setLineDash(k),n.lineDashOffset=v),m)if(f.strokeOpacity!=null){var r=n.globalAlpha;n.globalAlpha=f.strokeOpacity*f.opacity,y.stroke(n),n.globalAlpha=r}else y.stroke(n);k&&s&&n.setLineDash([]),f.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,d,f){},createPathProxy:function(){this.path=new E},getBoundingRect:function(){var n=this._rect,d=this.style,f=!n;if(f){var y=this.path;y||(y=this.path=new E),this.__dirtyPath&&(y.beginPath(),this.buildPath(y,this.shape,!1)),n=y.getBoundingRect()}if(this._rect=n,d.hasStroke()){var m=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||f){m.copy(n);var O=d.lineWidth,D=d.strokeNoScale?this.getLineScale():1;d.hasFill()||(O=Math.max(O,this.strokeContainThreshold||4)),D>1e-10&&(m.width+=O/D,m.height+=O/D,m.x-=O/D/2,m.y-=O/D/2)}return m}return n},contain:function(n,d){var f=this.transformCoordToLocal(n,d),y=this.getBoundingRect(),m=this.style;if(n=f[0],d=f[1],y.contain(n,d)){var O=this.path.data;if(m.hasStroke()){var D=m.lineWidth,R=m.strokeNoScale?this.getLineScale():1;if(R>1e-10&&(m.hasFill()||(D=Math.max(D,this.strokeContainThreshold)),x.containStroke(O,D/R,n,d)))return!0}if(m.hasFill())return x.contain(O,n,d)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,d){n==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):P.prototype.attrKV.call(this,n,d)},setShape:function(n,d){var f=this.shape;if(f){if(p.isObject(n))for(var y in n)n.hasOwnProperty(y)&&(f[y]=n[y]);else f[n]=d;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&o(n[0]-1)>1e-10&&o(n[3]-1)>1e-10?Math.sqrt(o(n[0]*n[3]-n[2]*n[1])):1}},a.extend=function(n){var d=function(y){a.call(this,y),n.style&&this.style.extendFrom(n.style,!1);var m=n.shape;if(m){this.shape=this.shape||{};var O=this.shape;for(var D in m)!O.hasOwnProperty(D)&&m.hasOwnProperty(D)&&(O[D]=m[D])}n.init&&n.init.call(this,y)};p.inherits(d,a);for(var f in n)f!=="style"&&f!=="shape"&&(d.prototype[f]=n[f]);return d},p.inherits(a,P);var u=a;J.exports=u},"y0+3":function(J,I,l){"use strict";l.d(I,"a",function(){return n}),l.d(I,"b",function(){return f});var P=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},E={cssFloat:1,styleFloat:1,float:1};function x(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function g(y,m,O){if(m=m.toLowerCase(),O==="auto"){if(m==="height")return y.offsetHeight;if(m==="width")return y.offsetWidth}return m in p||(p[m]=P.test(m)),p[m]?parseFloat(O)||0:O}function i(y,m){var O=arguments.length,D=x(y);return m=E[m]?"cssFloat"in y.style?"cssFloat":"styleFloat":m,O===1?D:g(y,m,D[m]||y.style[m])}function o(y,m,O){var D=arguments.length;if(m=E[m]?"cssFloat"in y.style?"cssFloat":"styleFloat":m,D===3)return typeof O=="number"&&P.test(m)&&(O="".concat(O,"px")),y.style[m]=O,O;for(var R in m)m.hasOwnProperty(R)&&o(y,R,m[R]);return x(y)}function t(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function a(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function u(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:m}}function n(){var y=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:m}}function d(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function f(y){var m=y.getBoundingClientRect(),O=document.documentElement;return{left:m.left+(window.pageXOffset||O.scrollLeft)-(O.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||O.scrollTop)-(O.clientTop||document.body.clientTop||0)}}},y23F:function(J,I){function l(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}l.prototype={constructor:l,_dragStart:function(E){for(var x=E.target;x&&!x.draggable;)x=x.parent;x&&(this._draggingTarget=x,x.dragging=!0,this._x=E.offsetX,this._y=E.offsetY,this.dispatchToElement(P(x,E),"dragstart",E.event))},_drag:function(E){var x=this._draggingTarget;if(x){var g=E.offsetX,i=E.offsetY,o=g-this._x,t=i-this._y;this._x=g,this._y=i,x.drift(o,t,E),this.dispatchToElement(P(x,E),"drag",E.event);var a=this.findHover(g,i,x).target,u=this._dropTarget;this._dropTarget=a,x!==a&&(u&&a!==u&&this.dispatchToElement(P(u,E),"dragleave",E.event),a&&a!==u&&this.dispatchToElement(P(a,E),"dragenter",E.event))}},_dragEnd:function(E){var x=this._draggingTarget;x&&(x.dragging=!1),this.dispatchToElement(P(x,E),"dragend",E.event),this._dropTarget&&this.dispatchToElement(P(this._dropTarget,E),"drop",E.event),this._draggingTarget=null,this._dropTarget=null}};function P(E,x){return{target:E,topTarget:x&&x.topTarget}}var p=l;J.exports=p},yxFR:function(J,I,l){var P=l("y+Vt"),p=l("nPnh"),E=p.subPixelOptimizeLine,x={},g=P.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(i,o){var t,a,u,n;this.subPixelOptimize?(E(x,o,this.style),t=x.x1,a=x.y1,u=x.x2,n=x.y2):(t=o.x1,a=o.y1,u=o.x2,n=o.y2);var d=o.percent;if(d===0)return;i.moveTo(t,a),d<1&&(u=t*(1-d)+u*d,n=a*(1-d)+n*d),i.lineTo(u,n)},pointAt:function(i){var o=this.shape;return[o.x1*(1-i)+o.x2*i,o.y1*(1-i)+o.y2*i]}});J.exports=g},zarK:function(J,I,l){var P=l("YH21"),p=P.addEventListener,E=P.removeEventListener,x=P.normalizeEvent,g=P.getNativeEvent,i=l("bYtY"),o=l("H6uX"),t=l("ItGF"),a=300,u=t.domSupported,n=function(){var h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=["touchstart","touchend","touchmove"],L={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},N=i.map(h,function(K){var Y=K.replace("mouse","pointer");return L.hasOwnProperty(Y)?Y:K});return{mouse:h,touch:S,pointer:N}}(),d={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function f(h){return h==="mousewheel"&&t.browser.firefox?"DOMMouseScroll":h}function y(h){var S=h.pointerType;return S==="pen"||S==="touch"}function m(h){h.touching=!0,h.touchTimer!=null&&(clearTimeout(h.touchTimer),h.touchTimer=null),h.touchTimer=setTimeout(function(){h.touching=!1,h.touchTimer=null},700)}function O(h){h&&(h.zrByTouch=!0)}function D(h,S){return x(h.dom,new C(h,S),!0)}function R(h,S){for(var L=S,N=!1;L&&L.nodeType!==9&&!(N=L.domBelongToZr||L!==S&&L===h.painterRoot);)L=L.parentNode;return N}function C(h,S){this.type=S.type,this.target=this.currentTarget=h.dom,this.pointerType=S.pointerType,this.clientX=S.clientX,this.clientY=S.clientY}var j=C.prototype;j.stopPropagation=j.stopImmediatePropagation=j.preventDefault=i.noop;var c={mousedown:function(h){h=x(this.dom,h),this._mayPointerCapture=[h.zrX,h.zrY],this.trigger("mousedown",h)},mousemove:function(h){h=x(this.dom,h);var S=this._mayPointerCapture;S&&(h.zrX!==S[0]||h.zrY!==S[1])&&e(this,!0),this.trigger("mousemove",h)},mouseup:function(h){h=x(this.dom,h),e(this,!1),this.trigger("mouseup",h)},mouseout:function(h){h=x(this.dom,h),this._pointerCapturing&&(h.zrEventControl="no_globalout");var S=h.toElement||h.relatedTarget;h.zrIsToLocalDOM=R(this,S),this.trigger("mouseout",h)},touchstart:function(h){h=x(this.dom,h),O(h),this._lastTouchMoment=new Date,this.handler.processGesture(h,"start"),c.mousemove.call(this,h),c.mousedown.call(this,h)},touchmove:function(h){h=x(this.dom,h),O(h),this.handler.processGesture(h,"change"),c.mousemove.call(this,h)},touchend:function(h){h=x(this.dom,h),O(h),this.handler.processGesture(h,"end"),c.mouseup.call(this,h),+new Date-this._lastTouchMomentp&&i>x||ig?o:0}J.exports=l},iXp4:function(J,I,l){var P=l("ItGF"),p=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function E(x){return P.browser.ie&&P.browser.version>=11?function(){var g=this.__clipPaths,i=this.style,o;if(g)for(var t=0;tp+t&&o>x+t||oP+t&&i>E+t||i=u.x&&t<=u.x+u.width&&a>=u.y&&a<=u.y+u.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)};var o=i;J.exports=o},mLcG:function(J,I){var l=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(P){setTimeout(P,16)};J.exports=l},n1HI:function(J,I,l){var P=l("hX1E"),p=P.normalizeRadian,E=Math.PI*2;function x(g,i,o,t,a,u,n,d,f){if(n===0)return!1;var y=n;d-=g,f-=i;var m=Math.sqrt(d*d+f*f);if(m-y>o||m+ya&&(a+=E);var D=Math.atan2(f,d);return D<0&&(D+=E),D>=t&&D<=a||D+E>=t&&D+E<=a}I.containStroke=x},n6Mw:function(J,I,l){var P=l("SrGk"),p=l("bYtY"),E=l("Fofx");function x(i,o){P.call(this,i,o,"clipPath","__clippath_in_use__")}p.inherits(x,P),x.prototype.update=function(i){var o=this.getSvgElement(i);o&&this.updateDom(o,i.__clipPaths,!1);var t=this.getTextSvgElement(i);t&&this.updateDom(t,i.__clipPaths,!0),this.markUsed(i)},x.prototype.updateDom=function(i,o,t){if(o&&o.length>0){var a=this.getDefs(!0),u=o[0],n,d,f=t?"_textDom":"_dom";u[f]?(d=u[f].getAttribute("id"),n=u[f],a.contains(n)||a.appendChild(n)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",d),a.appendChild(n),u[f]=n);var y=this.getSvgProxy(u);if(u.transform&&u.parent.invTransform&&!t){var m=Array.prototype.slice.call(u.transform);E.mul(u.transform,u.parent.invTransform,u.transform),y.brush(u),u.transform=m}else y.brush(u);var O=this.getSvgElement(u);n.innerHTML="",n.appendChild(O.cloneNode()),i.setAttribute("clip-path","url(#"+d+")"),o.length>1&&this.updateDom(n,o.slice(1),t)}else i&&i.setAttribute("clip-path","none")},x.prototype.markUsed=function(i){var o=this;i.__clipPaths&&p.each(i.__clipPaths,function(t){t._dom&&P.prototype.markUsed.call(o,t._dom),t._textDom&&P.prototype.markUsed.call(o,t._textDom)})};var g=x;J.exports=g},n6Qo:function(J,I,l){"use strict";l.d(I,"a",function(){return t});var P=l("q1tI"),p=l("biw7"),E=l("fyJ8");function x(a){var u=a.className,n=a.index,d=a.children,f=a.colSpan,y=a.rowSpan,m=P.useContext(p.a),O=m.prefixCls,D=m.fixedInfoList,R=D[n];return P.createElement(E.a,Object.assign({className:u,index:n,component:"td",prefixCls:O,record:null,dataIndex:null,render:function(){return{children:d,props:{colSpan:f,rowSpan:y}}}},R))}function g(a){return P.createElement("tr",Object.assign({},a))}function i(a){var u=a.children,n=P.useContext(p.a),d=n.prefixCls;return P.createElement("tfoot",{className:"".concat(d,"-summary")},u)}var o=I.b=i,t={Cell:x,Row:g}},nCxF:function(J,I,l){var P=l("QBsz"),p=P.min,E=P.max,x=P.scale,g=P.distance,i=P.add,o=P.clone,t=P.sub;function a(u,n,d,f){var y=[],m=[],O=[],D=[],R,C,j,c;if(f){j=[Infinity,Infinity],c=[-Infinity,-Infinity];for(var _=0,M=u.length;_=0&&(Q=de[$e],Q.textAlign==="right");)r(B,b,Q,k,Pe,Se,We,"right"),Ie-=Q.width,We-=Q.width,$e--;for(Ke+=(H-(Ke-pe)-(ze-We)-Ie)/2;Be<=$e;)Q=de[Be],r(B,b,Q,k,Pe,Se,Ke+Q.width/2,"center"),Ke+=Q.width,Be++;Se+=Pe}}function e(B,b,z,k,X){if(z&&b.textRotation){var H=b.textOrigin;H==="center"?(k=z.width/2+z.x,X=z.height/2+z.y):H&&(k=H[0]+z.x,X=H[1]+z.y),B.translate(k,X),B.rotate(-b.textRotation),B.translate(-k,-X)}}function r(B,b,z,k,X,H,$,q){var le=k.rich[z.styleName]||{};le.text=z.text;var ie=z.textVerticalAlign,Ae=H+X/2;ie==="top"?Ae=H+z.height/2:ie==="bottom"&&(Ae=H+X-z.height/2),!z.isLineHolder&&A(le)&&T(B,b,le,q==="right"?$-z.width:q==="center"?$-z.width/2:$,Ae-z.height/2,z.width,z.height);var we=z.textPadding;we&&($=Y($,q,we),Ae-=z.height/2-we[2]-z.textHeight/2),S(b,"shadowBlur",E(le.textShadowBlur,k.textShadowBlur,0)),S(b,"shadowColor",le.textShadowColor||k.textShadowColor||"transparent"),S(b,"shadowOffsetX",E(le.textShadowOffsetX,k.textShadowOffsetX,0)),S(b,"shadowOffsetY",E(le.textShadowOffsetY,k.textShadowOffsetY,0)),S(b,"textAlign",q),S(b,"textBaseline","middle"),S(b,"font",z.font||m);var _e=L(le.textStroke||k.textStroke,Z),G=N(le.textFill||k.textFill),Z=p(le.textStrokeWidth,k.textStrokeWidth);_e&&(S(b,"lineWidth",Z),S(b,"strokeStyle",_e),b.strokeText(z.text,$,Ae)),G&&(S(b,"fillStyle",G),b.fillText(z.text,$,Ae))}function A(B){return!!(B.textBackgroundColor||B.textBorderWidth&&B.textBorderColor)}function T(B,b,z,k,X,H,$){var q=z.textBackgroundColor,le=z.textBorderWidth,ie=z.textBorderColor,Ae=i(q);if(S(b,"shadowBlur",z.textBoxShadowBlur||0),S(b,"shadowColor",z.textBoxShadowColor||"transparent"),S(b,"shadowOffsetX",z.textBoxShadowOffsetX||0),S(b,"shadowOffsetY",z.textBoxShadowOffsetY||0),Ae||le&&ie){b.beginPath();var we=z.textBorderRadius;we?a.buildPath(b,{x:k,y:X,width:H,height:$,r:we}):b.rect(k,X,H,$),b.closePath()}if(Ae)if(S(b,"fillStyle",q),z.fillOpacity!=null){var _e=b.globalAlpha;b.globalAlpha=z.fillOpacity*z.opacity,b.fill(),b.globalAlpha=_e}else b.fill();else if(o(q)){var G=q.image;G=u.createOrUpdateImage(G,null,B,w,q),G&&u.isImageReady(G)&&b.drawImage(G,k,X,H,$)}if(le&&ie)if(S(b,"lineWidth",le),S(b,"strokeStyle",ie),z.strokeOpacity!=null){var _e=b.globalAlpha;b.globalAlpha=z.strokeOpacity*z.opacity,b.stroke(),b.globalAlpha=_e}else b.stroke()}function w(B,b){b.image=B}function h(B,b,z,k){var X=z.x||0,H=z.y||0,$=z.textAlign,q=z.textVerticalAlign;if(k){var le=z.textPosition;if(le instanceof Array)X=k.x+K(le[0],k.width),H=k.y+K(le[1],k.height);else{var ie=b&&b.calculateTextPosition?b.calculateTextPosition(C,z,k):t.calculateTextPosition(C,z,k);X=ie.x,H=ie.y,$=$||ie.textAlign,q=q||ie.textVerticalAlign}var Ae=z.textOffset;Ae&&(X+=Ae[0],H+=Ae[1])}return B=B||{},B.baseX=X,B.baseY=H,B.textAlign=$,B.textVerticalAlign=q,B}function S(B,b,z){return B[b]=n(B,b,z),B[b]}function L(B,b){return B==null||b<=0||B==="transparent"||B==="none"?null:B.image||B.colorStops?"#000":B}function N(B){return B==null||B==="none"?null:B.image||B.colorStops?"#000":B}function K(B,b){return typeof B=="string"?B.lastIndexOf("%")>=0?parseFloat(B)/100*b:parseFloat(B):B}function Y(B,b,z){return b==="right"?B-z[1]:b==="center"?B+z[3]/2-z[1]/2:B+z[3]}function W(B,b){return B!=null&&(B||b.textBackgroundColor||b.textBorderWidth&&b.textBorderColor||b.textPadding)}I.normalizeTextStyle=c,I.renderText=M,I.getBoxPosition=h,I.getStroke=L,I.getFill=N,I.parsePercent=K,I.needDrawText=W},qH13:function(J,I,l){var P=l("ItGF"),p=l("QBsz"),E=p.applyTransform,x=l("mFDi"),g=l("Qe9p"),i=l("6GrX"),o=l("pzxd"),t=l("ni6a"),a=l("Gev7"),u=l("Dagg"),n=l("dqUG"),d=l("y+Vt"),f=l("IMiH"),y=l("QuXc"),m=l("06Qe"),O=f.CMD,D=Math.round,R=Math.sqrt,C=Math.abs,j=Math.cos,c=Math.sin,_=Math.max;if(!P.canvasSupported){var M=",",F="progid:DXImageTransform.Microsoft",v=21600,s=v/2,e=1e5,r=1e3,A=function(te){te.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",te.coordsize=v+","+v,te.coordorigin="0,0"},T=function(te){return String(te).replace(/&/g,"&").replace(/"/g,""")},w=function(te,oe,de){return"rgb("+[te,oe,de].join(",")+")"},h=function(te,oe){oe&&te&&oe.parentNode!==te&&te.appendChild(oe)},S=function(te,oe){oe&&te&&oe.parentNode===te&&te.removeChild(oe)},L=function(te,oe,de){return(parseFloat(te)||0)*e+(parseFloat(oe)||0)*r+de},N=o.parsePercent,K=function(te,oe,de){var Me=g.parse(oe);de=+de,isNaN(de)&&(de=1),Me&&(te.color=w(Me[0],Me[1],Me[2]),te.opacity=de*Me[3])},Y=function(te){var oe=g.parse(te);return[w(oe[0],oe[1],oe[2]),oe[3]]},W=function(te,oe,de){var Me=oe.fill;if(Me!=null)if(Me instanceof y){var Pe,Ie=0,Be=[0,0],Ke=0,We=1,$e=de.getBoundingRect(),Q=$e.width,re=$e.height;if(Me.type==="linear"){Pe="gradient";var ce=de.transform,Ce=[Me.x*Q,Me.y*re],xe=[Me.x2*Q,Me.y2*re];ce&&(E(Ce,Ce,ce),E(xe,xe,ce));var Te=xe[0]-Ce[0],Oe=xe[1]-Ce[1];Ie=Math.atan2(Te,Oe)*180/Math.PI,Ie<0&&(Ie+=360),Ie<1e-6&&(Ie=0)}else{Pe="gradientradial";var Ce=[Me.x*Q,Me.y*re],ce=de.transform,be=de.scale,Ee=Q,Re=re;Be=[(Ce[0]-$e.x)/Ee,(Ce[1]-$e.y)/Re],ce&&E(Ce,Ce,ce),Ee/=be[0]*v,Re/=be[1]*v;var De=_(Ee,Re);Ke=2*0/De,We=2*Me.r/De-Ke}var ye=Me.colorStops.slice();ye.sort(function(ee,U){return ee.offset-U.offset});for(var Fe=ye.length,je=[],ke=[],Ve=0;Ve=2){var He=je[0][0],Le=je[1][0],ue=je[0][1]*oe.opacity,ge=je[1][1]*oe.opacity;te.type=Pe,te.method="none",te.focus="100%",te.angle=Ie,te.color=He,te.color2=Le,te.colors=ke.join(","),te.opacity=ge,te.opacity2=ue}Pe==="radial"&&(te.focusposition=Be.join(","))}else K(te,Me,oe.opacity)},B=function(te,oe){oe.lineDash&&(te.dashstyle=oe.lineDash.join(" ")),oe.stroke!=null&&!(oe.stroke instanceof y)&&K(te,oe.stroke,oe.opacity)},b=function(te,oe,de,Me){var Pe=oe==="fill",Ie=te.getElementsByTagName(oe)[0];de[oe]!=null&&de[oe]!=="none"&&(Pe||!Pe&&de.lineWidth)?(te[Pe?"filled":"stroked"]="true",de[oe]instanceof y&&S(te,Ie),Ie||(Ie=m.createNode(oe)),Pe?W(Ie,de,Me):B(Ie,de),h(te,Ie)):(te[Pe?"filled":"stroked"]="false",S(te,Ie))},z=[[],[],[]],k=function(te,oe){var de=O.M,Me=O.C,Pe=O.L,Ie=O.A,Be=O.Q,Ke=[],We,$e,Q,re,ce,Ce,xe=te.data,Te=te.len();for(re=0;re.01?U&&(V+=270/v):Math.abs(se-He)<1e-4?U&&VYe?be-=270/v:be+=270/v:U&&seHe?Oe+=270/v:Oe-=270/v),Ke.push(ae,D(((Ye-Le)*ke+Fe)*v-s),M,D(((He-ue)*Ve+je)*v-s),M,D(((Ye+Le)*ke+Fe)*v-s),M,D(((He+ue)*Ve+je)*v-s),M,D((V*ke+Fe)*v-s),M,D((se*Ve+je)*v-s),M,D((Oe*ke+Fe)*v-s),M,D((be*Ve+je)*v-s)),ce=Oe,Ce=be;break;case O.R:var me=z[0],ve=z[1];me[0]=xe[re++],me[1]=xe[re++],ve[0]=me[0]+xe[re++],ve[1]=me[1]+xe[re++],oe&&(E(me,me,oe),E(ve,ve,oe)),me[0]=D(me[0]*v-s),ve[0]=D(ve[0]*v-s),me[1]=D(me[1]*v-s),ve[1]=D(ve[1]*v-s),Ke.push(" m ",me[0],M,me[1]," l ",ve[0],M,me[1]," l ",ve[0],M,ve[1]," l ",me[0],M,ve[1]);break;case O.Z:Ke.push(" x ")}if(We>0){Ke.push($e);for(var ne=0;nele&&(q=0,$={});var de=ie.style,Me;try{de.font=te,Me=de.fontFamily.split(",")[0]}catch(Pe){}oe={style:de.fontStyle||H,variant:de.fontVariant||H,weight:de.fontWeight||H,size:parseFloat(de.fontSize||12)|0,family:Me||"Microsoft YaHei"},$[te]=oe,q++}return oe},we;i.$override("measureText",function(te,oe){var de=m.doc;we||(we=de.createElement("div"),we.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(we));try{we.style.font=oe}catch(Me){}return we.innerHTML="",we.appendChild(de.createTextNode(te)),{width:we.offsetWidth}});for(var _e=new x,G=function(te,oe,de,Me){var Pe=this.style;this.__dirty&&o.normalizeTextStyle(Pe,!0);var Ie=Pe.text;if(Ie!=null&&(Ie+=""),!Ie)return;if(Pe.rich){var Be=i.parseRichText(Ie,Pe);Ie=[];for(var Ke=0;Ke=0&&(this.delFromStorage(t),this._roots.splice(d,1),t instanceof E&&t.delChildrenFromStorage(this))},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:g};var o=i;J.exports=o},rA99:function(J,I,l){var P=l("y+Vt"),p=l("QBsz"),E=l("Sj9i"),x=E.quadraticSubdivide,g=E.cubicSubdivide,i=E.quadraticAt,o=E.cubicAt,t=E.quadraticDerivativeAt,a=E.cubicDerivativeAt,u=[];function n(f,y,m){var O=f.cpx2,D=f.cpy2;return O===null||D===null?[(m?a:o)(f.x1,f.cpx1,f.cpx2,f.x2,y),(m?a:o)(f.y1,f.cpy1,f.cpy2,f.y2,y)]:[(m?t:i)(f.x1,f.cpx1,f.x2,y),(m?t:i)(f.y1,f.cpy1,f.y2,y)]}var d=P.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,y){var m=y.x1,O=y.y1,D=y.x2,R=y.y2,C=y.cpx1,j=y.cpy1,c=y.cpx2,_=y.cpy2,M=y.percent;if(M===0)return;f.moveTo(m,O),c==null||_==null?(M<1&&(x(m,C,D,M,u),C=u[1],D=u[2],x(O,j,R,M,u),j=u[1],R=u[2]),f.quadraticCurveTo(C,j,D,R)):(M<1&&(g(m,C,c,D,M,u),C=u[1],c=u[2],D=u[3],g(O,j,_,R,M,u),j=u[1],_=u[2],R=u[3]),f.bezierCurveTo(C,j,c,_,D,R))},pointAt:function(f){return n(this.shape,f,!1)},tangentAt:function(f){var y=n(this.shape,f,!0);return p.normalize(y,y)}});J.exports=d},rmlV:function(J,I,l){var P=l("y+Vt"),p=P.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(E,x){var g=.5522848,i=x.cx,o=x.cy,t=x.rx,a=x.ry,u=t*g,n=a*g;E.moveTo(i-t,o),E.bezierCurveTo(i-t,o-n,i-u,o-a,i,o-a),E.bezierCurveTo(i+u,o-a,i+t,o-n,i+t,o),E.bezierCurveTo(i+t,o+n,i+u,o+a,i,o+a),E.bezierCurveTo(i-u,o+a,i-t,o+n,i-t,o),E.closePath()}});J.exports=p},sR1s:function(J,I,l){"use strict";l.d(I,"b",function(){return x}),l.d(I,"a",function(){return g}),l.d(I,"c",function(){return i}),l.d(I,"d",function(){return o});var P=l("U8pU"),p="RC_TABLE_KEY";function E(t){return t==null?[]:Array.isArray(t)?t:[t]}function x(t,a){if(!a&&typeof a!="number")return t;for(var u=E(a),n=t,d=0;d-1)){var y=x.parse(f)[3],m=x.toHex(f);d.setAttribute("stop-color","#"+m),d.setAttribute("stop-opacity",y)}else d.setAttribute("stop-color",a[u].color);t.appendChild(d)}o._dom=t},g.prototype.markUsed=function(o){if(o.style){var t=o.style.fill;t&&t._dom&&P.prototype.markUsed.call(this,t._dom),t=o.style.stroke,t&&t._dom&&P.prototype.markUsed.call(this,t._dom)}};var i=g;J.exports=i},sboe:function(J,I,l){"use strict";l.d(I,"a",function(){return E});var P=l("q1tI"),p=l.n(P),E=P.createContext(null)},t23M:function(J,I,l){"use strict";var P=l("VTBJ"),p=l("1OyB"),E=l("vuIU"),x=l("Ji7U"),g=l("LK+K"),i=l("q1tI"),o=l.n(i),t=l("m+aA"),a=l("Zm9Q"),u=l("Kwbf"),n=l("c+Xe"),d=l("bdgK"),f="rc-observer-key",y=function(m){Object(x.a)(D,m);var O=Object(g.a)(D);function D(){var R;return Object(p.a)(this,D),R=O.apply(this,arguments),R.resizeObserver=null,R.childNode=null,R.currentElement=null,R.state={width:0,height:0,offsetHeight:0,offsetWidth:0},R.onResize=function(C){var j=R.props.onResize,c=C[0].target,_=c.getBoundingClientRect(),M=_.width,F=_.height,v=c.offsetWidth,s=c.offsetHeight,e=Math.floor(M),r=Math.floor(F);if(R.state.width!==e||R.state.height!==r||R.state.offsetWidth!==v||R.state.offsetHeight!==s){var A={width:e,height:r,offsetWidth:v,offsetHeight:s};R.setState(A),j&&Promise.resolve().then(function(){j(Object(P.a)(Object(P.a)({},A),{},{offsetWidth:v,offsetHeight:s}))})}},R.setChildNode=function(C){R.childNode=C},R}return Object(E.a)(D,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var C=this.props.disabled;if(C){this.destroyObserver();return}var j=Object(t.a)(this.childNode||this),c=j!==this.currentElement;c&&(this.destroyObserver(),this.currentElement=j),!this.resizeObserver&&j&&(this.resizeObserver=new d.default(this.onResize),this.resizeObserver.observe(j))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var C=this.props.children,j=Object(a.a)(C);if(j.length>1)Object(u.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(j.length===0)return Object(u.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var c=j[0];if(i.isValidElement(c)&&Object(n.c)(c)){var _=c.ref;j[0]=i.cloneElement(c,{ref:Object(n.a)(_,this.setChildNode)})}return j.length===1?j[0]:j.map(function(M,F){return!i.isValidElement(M)||"key"in M&&M.key!==null?M:i.cloneElement(M,{key:"".concat(f,"-").concat(F)})})}}]),D}(i.Component);y.displayName="ResizeObserver",I.a=y},u3os:function(J,I,l){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.ver=I.clear=I.bind=void 0;var P=l("P4Qj"),p=function(i,o){var t=(0,P.getSensor)(i);return t.bind(o),function(){t.unbind(o)}};I.bind=p;var E=function(i){var o=(0,P.getSensor)(i);(0,P.removeSensor)(o)};I.clear=E;var x="1.0.1";I.ver=x},vKoX:function(J,I,l){var P=l("SrGk"),p=l("bYtY");function E(i,o){P.call(this,i,o,["filter"],"__filter_in_use__","_shadowDom")}p.inherits(E,P),E.prototype.addWithoutUpdate=function(i,o){if(o&&x(o.style)){var t;if(o._shadowDom){t=o._shadowDom;var a=this.getDefs(!0);a.contains(o._shadowDom)||this.addDom(t)}else t=this.add(o);this.markUsed(o);var u=t.getAttribute("id");i.style.filter="url(#"+u+")"}},E.prototype.add=function(i){var o=this.createElement("filter");return i._shadowDomId=i._shadowDomId||this.nextId++,o.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(i,o),this.addDom(o),o},E.prototype.update=function(i,o){var t=o.style;if(x(t)){var a=this;P.prototype.update.call(this,o,function(){a.updateDom(o,o._shadowDom)})}else this.remove(i,o)},E.prototype.remove=function(i,o){o._shadowDomId!=null&&(this.removeDom(i),i.style.filter="")},E.prototype.updateDom=function(i,o){var t=o.getElementsByTagName("feDropShadow");t.length===0?t=this.createElement("feDropShadow"):t=t[0];var a=i.style,u=i.scale&&i.scale[0]||1,n=i.scale&&i.scale[1]||1,d,f,y,m;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)d=a.shadowOffsetX||0,f=a.shadowOffsetY||0,y=a.shadowBlur,m=a.shadowColor;else if(a.textShadowBlur)d=a.textShadowOffsetX||0,f=a.textShadowOffsetY||0,y=a.textShadowBlur,m=a.textShadowColor;else{this.removeDom(o,a);return}t.setAttribute("dx",d/u),t.setAttribute("dy",f/n),t.setAttribute("flood-color",m);var O=y/2/u,D=y/2/n,R=O+" "+D;t.setAttribute("stdDeviation",R),o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width",Math.ceil(y/2*200)+"%"),o.setAttribute("height",Math.ceil(y/2*200)+"%"),o.appendChild(t),i._shadowDom=o},E.prototype.markUsed=function(i){i._shadowDom&&P.prototype.markUsed.call(this,i._shadowDom)};function x(i){return i&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY||i.textShadowBlur||i.textShadowOffsetX||i.textShadowOffsetY)}var g=E;J.exports=g},vWvF:function(J,I,l){var P=l("Bq2U"),p=l("SUKs"),E=l("bYtY"),x=E.isString,g=E.isFunction,i=E.isObject,o=E.isArrayLike,t=E.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(y,m){var O,D=!1,R=this,C=this.__zr;if(y){var j=y.split("."),c=R;D=j[0]==="shape";for(var _=0,M=j.length;_0&&y.animate(m,!1).when(R==null?500:R,c).delay(C||0)}function d(y,m,O,D){if(!m)y.attr(O,D);else{var R={};R[m]={},R[m][O]=D,y.attr(R)}}var f=a;J.exports=f},wCXF:function(J,I,l){"use strict";l.d(I,"a",function(){return Be});var P=l("rePB"),p=l("VTBJ"),E=l("KQm4"),x=l("U8pU"),g=l("ODXe"),i=l("q1tI"),o=l("TSYQ"),t=l.n(o),a=l("Gytx"),u=l.n(a),n=l("Kwbf"),d=l("t23M"),f=l("qx4F"),y=l("6eGT"),m=l("IBYe"),O=l("Ff2n"),D=l("c+Xe"),R=l("fyJ8"),C=l("biw7");function j(Q,re,ce,Ce,xe){var Te=ce[Q]||{},Oe=ce[re]||{},be,Ee;Te.fixed==="left"?be=Ce.left[Q]:Oe.fixed==="right"&&(Ee=Ce.right[re]);var Re=!1,De=!1,ye=!1,Fe=!1,je=ce[re+1],ke=ce[Q-1];if(xe==="rtl"){if(be!==void 0){var Ve=ke&&ke.fixed==="left";Fe=!Ve}else if(Ee!==void 0){var Xe=je&&je.fixed==="right";ye=!Xe}}else if(be!==void 0){var Ye=je&&je.fixed==="left";Re=!Ye}else if(Ee!==void 0){var He=ke&&ke.fixed==="right";De=!He}return{fixLeft:be,fixRight:Ee,lastFixLeft:Re,firstFixRight:De,lastFixRight:ye,firstFixLeft:Fe,isSticky:Ce.isSticky}}var c=l("sR1s");function _(Q){var re=Q.cells,ce=Q.stickyOffsets,Ce=Q.flattenColumns,xe=Q.rowComponent,Te=Q.cellComponent,Oe=Q.onHeaderRow,be=Q.index,Ee=i.useContext(C.a),Re=Ee.prefixCls,De=Ee.direction,ye;Oe&&(ye=Oe(re.map(function(je){return je.column}),be));var Fe=Object(c.a)(re.map(function(je){return je.column}));return i.createElement(xe,Object.assign({},ye),re.map(function(je,ke){var Ve=je.column,Xe=j(je.colStart,je.colEnd,Ce,ce,De),Ye;return Ve&&Ve.onHeaderCell&&(Ye=je.column.onHeaderCell(Ve)),i.createElement(R.a,Object.assign({},je,{ellipsis:Ve.ellipsis,align:Ve.align,component:Te,prefixCls:Re,key:Fe[ke]},Xe,{additionalProps:Ye,rowType:"header"}))}))}_.displayName="HeaderRow";var M=_;function F(Q){var re=[];function ce(Oe,be){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;re[Ee]=re[Ee]||[];var Re=be,De=Oe.filter(Boolean).map(function(ye){var Fe={key:ye.key,className:ye.className||"",children:ye.title,column:ye,colStart:Re},je=1,ke=ye.children;return ke&&ke.length>0&&(je=ce(ke,Re,Ee+1).reduce(function(Ve,Xe){return Ve+Xe},0),Fe.hasSubColumns=!0),"colSpan"in ye&&(je=ye.colSpan),"rowSpan"in ye&&(Fe.rowSpan=ye.rowSpan),Fe.colSpan=je,Fe.colEnd=Fe.colStart+je-1,re[Ee].push(Fe),Re+=je,je});return De}ce(Q,0);for(var Ce=re.length,xe=function(be){re[be].forEach(function(Ee){!("rowSpan"in Ee)&&!Ee.hasSubColumns&&(Ee.rowSpan=Ce-be)})},Te=0;Te=0;be-=1){var Ee=re[be],Re=ce&&ce[be],De=Re&&Re[e.a];(Ee||De||Oe)&&(xe.unshift(i.createElement("col",Object.assign({key:be,style:{width:Ee,minWidth:Ee}},De))),Oe=!0)}return i.createElement("colgroup",null,xe)}var A=r;function T(Q,re){return Object(i.useMemo)(function(){for(var ce=[],Ce=0;Ce1?it-1:0),Ct=1;Ct=ye&&(Ue=ye-Fe),Oe({scrollLeft:Ue/ye*(De+2)}),He.current.x=ne.pageX},ae=function(){var ne=Object(te.b)(Te.current).top,he=ne+Te.current.offsetHeight,Ne=document.documentElement.scrollTop+window.innerHeight;he-Object(f.a)()<=Ne||ne>=Ne-be?Ye(function(Ge){return Object(p.a)(Object(p.a)({},Ge),{},{isHiddenScrollBar:!0})}):Ye(function(Ge){return Object(p.a)(Object(p.a)({},Ge),{},{isHiddenScrollBar:!1})})},me=function(ne){Ye(function(he){return Object(p.a)(Object(p.a)({},he),{},{scrollLeft:ne/De*ye||0})})};return i.useImperativeHandle(ce,function(){return{setScrollLeft:me}}),i.useEffect(function(){var ve=Object(ze.a)(document.body,"mouseup",U,!1),ne=Object(ze.a)(document.body,"mousemove",se,!1);return ae(),function(){ve.remove(),ne.remove()}},[Fe,ge]),i.useEffect(function(){var ve=Object(ze.a)(window,"scroll",ae,!1),ne=Object(ze.a)(window,"resize",ae,!1);return function(){ve.remove(),ne.remove()}},[]),i.useEffect(function(){Xe.isHiddenScrollBar||Ye(function(ve){var ne,he;return Object(p.a)(Object(p.a)({},ve),{},{scrollLeft:Te.current.scrollLeft/((ne=Te.current)===null||ne===void 0?void 0:ne.scrollWidth)*((he=Te.current)===null||he===void 0?void 0:he.clientWidth)})})},[Xe.isHiddenScrollBar]),De<=ye||!Fe||Xe.isHiddenScrollBar?null:i.createElement("div",{style:{height:Object(f.a)(),width:ye,bottom:be},className:"".concat(Re,"-sticky-scroll")},i.createElement("div",{onMouseDown:V,ref:je,className:t()("".concat(Re,"-sticky-scroll-bar"),Object(P.a)({},"".concat(Re,"-sticky-scroll-bar-active"),ge)),style:{width:"".concat(Fe,"px"),transform:"translate3d(".concat(Xe.scrollLeft,"px, 0, 0)")}}))},de=i.forwardRef(oe);function Me(Q,re){return i.useMemo(function(){var ce=!!Q;return{isSticky:ce,stickyClassName:ce?"".concat(re,"-sticky-header"):"",offsetHeader:Object(x.a)(Q)==="object"&&Q.offsetHeader||0,offsetScroll:Object(x.a)(Q)==="object"&&Q.offsetScroll||0}},[Q,re])}var Pe=[],Ie={},Be="rc-table-internal-hook",Ke=i.memo(function(Q){var re=Q.children;return re},function(Q,re){return u()(Q.props,re.props)?Q.pingLeft!==re.pingLeft||Q.pingRight!==re.pingRight:!1});function We(Q){var re,ce=Q.prefixCls,Ce=Q.className,xe=Q.rowClassName,Te=Q.style,Oe=Q.data,be=Q.rowKey,Ee=Q.scroll,Re=Q.tableLayout,De=Q.direction,ye=Q.title,Fe=Q.footer,je=Q.summary,ke=Q.id,Ve=Q.showHeader,Xe=Q.components,Ye=Q.emptyText,He=Q.onRow,Le=Q.onHeaderRow,ue=Q.internalHooks,ge=Q.transformColumns,ee=Q.internalRefs,U=Q.sticky,V=Oe||Pe,se=!!V.length,ae=i.useState(0),me=Object(g.a)(ae,2),ve=me[0],ne=me[1];i.useEffect(function(){ne(Object(f.a)())});var he=i.useMemo(function(){return Object(c.c)(Xe,{})},[Xe]),Ne=i.useCallback(function(Qe,Je){return Object(c.b)(he,Qe)||Je},[he]),Ge=i.useMemo(function(){return typeof be=="function"?be:function(Qe){var Je=Qe&&Qe[be];return Je}},[be]),Ue=Object(e.c)(Q),Ze=Ue.expandIcon,qe=Ue.expandedRowKeys,ct=Ue.defaultExpandedRowKeys,at=Ue.defaultExpandAllRows,nt=Ue.expandedRowRender,st=Ue.onExpand,lt=Ue.onExpandedRowsChange,pt=Ue.expandRowByClick,rt=Ue.rowExpandable,ft=Ue.expandIconColumnIndex,bt=Ue.expandedRowClassName,St=Ue.childrenColumnName,Ot=Ue.indentSize,vt=Ze||pe,wt=St||"children",yt=i.useMemo(function(){return nt?"row":Q.expandable&&ue===Be&&Q.expandable.__PARENT_RENDER_ICON__||V.some(function(Qe){return Qe&&Object(x.a)(Qe)==="object"&&Qe[wt]})?"nest":!1},[!!nt,V]),Rt=i.useState(function(){return ct||(at?Se(V,Ge,wt):[])}),ot=Object(g.a)(Rt,2),ut=ot[0],ht=ot[1],it=i.useMemo(function(){return new Set(qe||ut||[])},[qe,ut]),xt=i.useCallback(function(Qe){var Je=Ge(Qe,V.indexOf(Qe)),tt,dt=it.has(Je);dt?(it.delete(Je),tt=Object(E.a)(it)):tt=[].concat(Object(E.a)(it),[Je]),ht(tt),st&&st(!dt,Qe),lt&<(tt)},[Ge,it,V,st,lt]),Ct=i.useState(0),jt=Object(g.a)(Ct,2),Tt=jt[0],Lt=jt[1],vn=Object($.b)(Object(p.a)(Object(p.a)(Object(p.a)({},Q),Ue),{},{expandable:!!nt,expandedKeys:it,getRowKey:Ge,onTriggerExpand:xt,expandIcon:vt,expandIconColumnIndex:ft,direction:De}),ue===Be?ge:null),Qt=Object(g.a)(vn,2),kt=Qt[0],et=Qt[1],_t=i.useMemo(function(){return{columns:kt,flattenColumns:et}},[kt,et]),Ut=i.useRef(),Jt=i.useRef(),Et=i.useRef(),gn=i.useState(!1),Zt=Object(g.a)(gn,2),qt=Zt[0],bn=Zt[1],yn=i.useState(!1),en=Object(g.a)(yn,2),tn=en[0],xn=en[1],Cn=ie(new Map),nn=Object(g.a)(Cn,2),En=nn[0],wn=nn[1],On=Object(c.a)(et),rn=On.map(function(Qe){return En.get(Qe)}),an=i.useMemo(function(){return rn},[rn.join("_")]),It=_e(an,et.length,De),mt=Ee&&Object(c.d)(Ee.y),gt=Ee&&Object(c.d)(Ee.x),Dt=gt&&et.some(function(Qe){var Je=Qe.fixed;return Je}),on=i.useRef(),Nt=Me(U,ce),At=Nt.isSticky,Mn=Nt.offsetHeader,Sn=Nt.offsetScroll,Tn=Nt.stickyClassName,Bt,zt,Kt;mt&&(zt={overflowY:"scroll",maxHeight:Ee.y}),gt&&(Bt={overflowX:"auto"},mt||(zt={overflowY:"hidden"}),Kt={width:Ee.x===!0?"auto":Ee.x,minWidth:"100%"});var sn=i.useCallback(function(Qe,Je){wn(function(tt){var dt=new Map(tt);return dt.set(Qe,Je),dt})},[]),Dn=Ae(null),ln=Object(g.a)(Dn,2),An=ln[0],un=ln[1];function Ht(Qe,Je){if(!Je)return;typeof Je=="function"?Je(Qe):Je.scrollLeft!==Qe&&(Je.scrollLeft=Qe)}var Mt=function(Je){var tt=Je.currentTarget,dt=Je.scrollLeft,Pt=typeof dt=="number"?dt:tt.scrollLeft,pn=tt||Ie;if(!un()||un()===pn){var $t;An(pn),Ht(Pt,Jt.current),Ht(Pt,Et.current),Ht(Pt,($t=on.current)===null||$t===void 0?void 0:$t.setScrollLeft)}if(tt){var Nn=tt.scrollWidth,zn=tt.clientWidth;bn(Pt>0),xn(Pt0?[].concat(Object(p.a)(O),Object(p.a)(n(j).map(function(c){return Object(E.a)({fixed:C},c)}))):[].concat(Object(p.a)(O),[Object(E.a)(Object(E.a)({},D),{},{fixed:C})])},[])}function d(m){for(var O=!0,D=0;D=0;j-=1){var c=m[j];if(C&&c.fixed!=="right")C=!1;else if(!C&&c.fixed==="right"){Object(o.a)(!1,"Index ".concat(j+1," of `columns` missing `fixed='right'` prop."));break}}}function f(m){return m.map(function(O){var D=O.fixed,R=Object(x.a)(O,["fixed"]),C=D;return D==="left"?C="right":D==="right"&&(C="left"),Object(E.a)({fixed:C},R)})}function y(m,O){var D=m.prefixCls,R=m.columns,C=m.children,j=m.expandable,c=m.expandedKeys,_=m.getRowKey,M=m.onTriggerExpand,F=m.expandIcon,v=m.rowExpandable,s=m.expandIconColumnIndex,e=m.direction,r=m.expandRowByClick,A=g.useMemo(function(){return R||u(C)},[R,C]),T=g.useMemo(function(){if(j){var S,L=s||0,N=A[L],K=(S={},Object(P.a)(S,a.a,{className:"".concat(D,"-expand-icon-col")}),Object(P.a)(S,"title",""),Object(P.a)(S,"fixed",N?N.fixed:null),Object(P.a)(S,"className","".concat(D,"-row-expand-icon-cell")),Object(P.a)(S,"render",function(B,b,z){var k=_(b,z),X=c.has(k),H=v?v(b):!0,$=F({prefixCls:D,expanded:X,expandable:H,record:b,onExpand:M});return r?g.createElement("span",{onClick:function(le){return le.stopPropagation()}},$):$}),S),Y=A.slice();return L>=0&&Y.splice(L,0,K),Y}return A},[j,A,_,c,F,e]),w=g.useMemo(function(){var S=T;return O&&(S=O(S)),S.length||(S=[{render:function(){return null}}]),S},[O,T,e]),h=g.useMemo(function(){return e==="rtl"?f(n(w)):n(w)},[w,e]);return[w,h]}I.b=y},x6Kt:function(J,I,l){var P=l("y+Vt"),p=l("VpOo"),E=l("nPnh"),x=E.subPixelOptimizeRect,g={},i=P.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(o,t){var a,u,n,d;this.subPixelOptimize?(x(g,t,this.style),a=g.x,u=g.y,n=g.width,d=g.height,g.r=t.r,t=g):(a=t.x,u=t.y,n=t.width,d=t.height),t.r?p.buildPath(o,t):o.rect(a,u,n,d),o.closePath();return}});J.exports=i},"y+Vt":function(J,I,l){var P=l("Gev7"),p=l("bYtY"),E=l("IMiH"),x=l("2DNl"),g=l("3C/r"),i=g.prototype.getCanvasPattern,o=Math.abs,t=new E(!0);function a(n){P.call(this,n),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,d){var f=this.style,y=this.path||t,m=f.hasStroke(),O=f.hasFill(),D=f.fill,R=f.stroke,C=O&&!!D.colorStops,j=m&&!!R.colorStops,c=O&&!!D.image,_=m&&!!R.image;if(f.bind(n,this,d),this.setTransform(n),this.__dirty){var M;C&&(M=M||this.getBoundingRect(),this._fillGradient=f.getGradient(n,D,M)),j&&(M=M||this.getBoundingRect(),this._strokeGradient=f.getGradient(n,R,M))}C?n.fillStyle=this._fillGradient:c&&(n.fillStyle=i.call(D,n)),j?n.strokeStyle=this._strokeGradient:_&&(n.strokeStyle=i.call(R,n));var F=f.lineDash,v=f.lineDashOffset,s=!!n.setLineDash,e=this.getGlobalScale();if(y.setScale(e[0],e[1],this.segmentIgnoreThreshold),this.__dirtyPath||F&&!s&&m?(y.beginPath(n),F&&!s&&(y.setLineDash(F),y.setLineDashOffset(v)),this.buildPath(y,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),O)if(f.fillOpacity!=null){var r=n.globalAlpha;n.globalAlpha=f.fillOpacity*f.opacity,y.fill(n),n.globalAlpha=r}else y.fill(n);if(F&&s&&(n.setLineDash(F),n.lineDashOffset=v),m)if(f.strokeOpacity!=null){var r=n.globalAlpha;n.globalAlpha=f.strokeOpacity*f.opacity,y.stroke(n),n.globalAlpha=r}else y.stroke(n);F&&s&&n.setLineDash([]),f.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,d,f){},createPathProxy:function(){this.path=new E},getBoundingRect:function(){var n=this._rect,d=this.style,f=!n;if(f){var y=this.path;y||(y=this.path=new E),this.__dirtyPath&&(y.beginPath(),this.buildPath(y,this.shape,!1)),n=y.getBoundingRect()}if(this._rect=n,d.hasStroke()){var m=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||f){m.copy(n);var O=d.lineWidth,D=d.strokeNoScale?this.getLineScale():1;d.hasFill()||(O=Math.max(O,this.strokeContainThreshold||4)),D>1e-10&&(m.width+=O/D,m.height+=O/D,m.x-=O/D/2,m.y-=O/D/2)}return m}return n},contain:function(n,d){var f=this.transformCoordToLocal(n,d),y=this.getBoundingRect(),m=this.style;if(n=f[0],d=f[1],y.contain(n,d)){var O=this.path.data;if(m.hasStroke()){var D=m.lineWidth,R=m.strokeNoScale?this.getLineScale():1;if(R>1e-10&&(m.hasFill()||(D=Math.max(D,this.strokeContainThreshold)),x.containStroke(O,D/R,n,d)))return!0}if(m.hasFill())return x.contain(O,n,d)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,d){n==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):P.prototype.attrKV.call(this,n,d)},setShape:function(n,d){var f=this.shape;if(f){if(p.isObject(n))for(var y in n)n.hasOwnProperty(y)&&(f[y]=n[y]);else f[n]=d;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&o(n[0]-1)>1e-10&&o(n[3]-1)>1e-10?Math.sqrt(o(n[0]*n[3]-n[2]*n[1])):1}},a.extend=function(n){var d=function(y){a.call(this,y),n.style&&this.style.extendFrom(n.style,!1);var m=n.shape;if(m){this.shape=this.shape||{};var O=this.shape;for(var D in m)!O.hasOwnProperty(D)&&m.hasOwnProperty(D)&&(O[D]=m[D])}n.init&&n.init.call(this,y)};p.inherits(d,a);for(var f in n)f!=="style"&&f!=="shape"&&(d.prototype[f]=n[f]);return d},p.inherits(a,P);var u=a;J.exports=u},"y0+3":function(J,I,l){"use strict";l.d(I,"a",function(){return n}),l.d(I,"b",function(){return f});var P=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},E={cssFloat:1,styleFloat:1,float:1};function x(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function g(y,m,O){if(m=m.toLowerCase(),O==="auto"){if(m==="height")return y.offsetHeight;if(m==="width")return y.offsetWidth}return m in p||(p[m]=P.test(m)),p[m]?parseFloat(O)||0:O}function i(y,m){var O=arguments.length,D=x(y);return m=E[m]?"cssFloat"in y.style?"cssFloat":"styleFloat":m,O===1?D:g(y,m,D[m]||y.style[m])}function o(y,m,O){var D=arguments.length;if(m=E[m]?"cssFloat"in y.style?"cssFloat":"styleFloat":m,D===3)return typeof O=="number"&&P.test(m)&&(O="".concat(O,"px")),y.style[m]=O,O;for(var R in m)m.hasOwnProperty(R)&&o(y,R,m[R]);return x(y)}function t(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function a(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function u(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:m}}function n(){var y=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:m}}function d(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function f(y){var m=y.getBoundingClientRect(),O=document.documentElement;return{left:m.left+(window.pageXOffset||O.scrollLeft)-(O.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||O.scrollTop)-(O.clientTop||document.body.clientTop||0)}}},y23F:function(J,I){function l(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}l.prototype={constructor:l,_dragStart:function(E){for(var x=E.target;x&&!x.draggable;)x=x.parent;x&&(this._draggingTarget=x,x.dragging=!0,this._x=E.offsetX,this._y=E.offsetY,this.dispatchToElement(P(x,E),"dragstart",E.event))},_drag:function(E){var x=this._draggingTarget;if(x){var g=E.offsetX,i=E.offsetY,o=g-this._x,t=i-this._y;this._x=g,this._y=i,x.drift(o,t,E),this.dispatchToElement(P(x,E),"drag",E.event);var a=this.findHover(g,i,x).target,u=this._dropTarget;this._dropTarget=a,x!==a&&(u&&a!==u&&this.dispatchToElement(P(u,E),"dragleave",E.event),a&&a!==u&&this.dispatchToElement(P(a,E),"dragenter",E.event))}},_dragEnd:function(E){var x=this._draggingTarget;x&&(x.dragging=!1),this.dispatchToElement(P(x,E),"dragend",E.event),this._dropTarget&&this.dispatchToElement(P(this._dropTarget,E),"drop",E.event),this._draggingTarget=null,this._dropTarget=null}};function P(E,x){return{target:E,topTarget:x&&x.topTarget}}var p=l;J.exports=p},yxFR:function(J,I,l){var P=l("y+Vt"),p=l("nPnh"),E=p.subPixelOptimizeLine,x={},g=P.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(i,o){var t,a,u,n;this.subPixelOptimize?(E(x,o,this.style),t=x.x1,a=x.y1,u=x.x2,n=x.y2):(t=o.x1,a=o.y1,u=o.x2,n=o.y2);var d=o.percent;if(d===0)return;i.moveTo(t,a),d<1&&(u=t*(1-d)+u*d,n=a*(1-d)+n*d),i.lineTo(u,n)},pointAt:function(i){var o=this.shape;return[o.x1*(1-i)+o.x2*i,o.y1*(1-i)+o.y2*i]}});J.exports=g},zarK:function(J,I,l){var P=l("YH21"),p=P.addEventListener,E=P.removeEventListener,x=P.normalizeEvent,g=P.getNativeEvent,i=l("bYtY"),o=l("H6uX"),t=l("ItGF"),a=300,u=t.domSupported,n=function(){var h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=["touchstart","touchend","touchmove"],L={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},N=i.map(h,function(K){var Y=K.replace("mouse","pointer");return L.hasOwnProperty(Y)?Y:K});return{mouse:h,touch:S,pointer:N}}(),d={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function f(h){return h==="mousewheel"&&t.browser.firefox?"DOMMouseScroll":h}function y(h){var S=h.pointerType;return S==="pen"||S==="touch"}function m(h){h.touching=!0,h.touchTimer!=null&&(clearTimeout(h.touchTimer),h.touchTimer=null),h.touchTimer=setTimeout(function(){h.touching=!1,h.touchTimer=null},700)}function O(h){h&&(h.zrByTouch=!0)}function D(h,S){return x(h.dom,new C(h,S),!0)}function R(h,S){for(var L=S,N=!1;L&&L.nodeType!==9&&!(N=L.domBelongToZr||L!==S&&L===h.painterRoot);)L=L.parentNode;return N}function C(h,S){this.type=S.type,this.target=this.currentTarget=h.dom,this.pointerType=S.pointerType,this.clientX=S.clientX,this.clientY=S.clientY}var j=C.prototype;j.stopPropagation=j.stopImmediatePropagation=j.preventDefault=i.noop;var c={mousedown:function(h){h=x(this.dom,h),this._mayPointerCapture=[h.zrX,h.zrY],this.trigger("mousedown",h)},mousemove:function(h){h=x(this.dom,h);var S=this._mayPointerCapture;S&&(h.zrX!==S[0]||h.zrY!==S[1])&&e(this,!0),this.trigger("mousemove",h)},mouseup:function(h){h=x(this.dom,h),e(this,!1),this.trigger("mouseup",h)},mouseout:function(h){h=x(this.dom,h),this._pointerCapturing&&(h.zrEventControl="no_globalout");var S=h.toElement||h.relatedTarget;h.zrIsToLocalDOM=R(this,S),this.trigger("mouseout",h)},touchstart:function(h){h=x(this.dom,h),O(h),this._lastTouchMoment=new Date,this.handler.processGesture(h,"start"),c.mousemove.call(this,h),c.mousedown.call(this,h)},touchmove:function(h){h=x(this.dom,h),O(h),this.handler.processGesture(h,"change"),c.mousemove.call(this,h)},touchend:function(h){h=x(this.dom,h),O(h),this.handler.processGesture(h,"end"),c.mouseup.call(this,h),+new Date-this._lastTouchMoment=0||E.relatedTarget.className.indexOf("".concat(Y,"-next"))>=0))return;o.setState({goInputText:""}),w(o.getValidValue())},o.go=function(E){var G=o.state.goInputText;if(G==="")return;(E.keyCode===y.ENTER||E.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(T.a)(a,[{key:"getValidValue",value:function(){var t=this.state,d=t.goInputText,c=t.current;return!d||isNaN(d)?c:Number(d)}},{key:"getPageSizeOptions",value:function(){var t=this.props,d=t.pageSize,c=t.pageSizeOptions;return c.some(function(E){return E.toString()===d.toString()})?c:c.concat([d.toString()]).sort(function(E,G){var x=isNaN(Number(E))?0:Number(E),w=isNaN(Number(G))?0:Number(G);return x-w})}},{key:"render",value:function(){var t=this,d=this.props,c=d.pageSize,E=d.locale,G=d.rootPrefixCls,x=d.changeSize,w=d.quickGo,Y=d.goButton,pe=d.selectComponentClass,Pe=d.buildOptionText,ee=d.selectPrefixCls,R=d.disabled,ue=this.state.goInputText,ve="".concat(G,"-options"),re=pe,ge=null,z=null,K=null;if(!x&&!w)return null;var f=this.getPageSizeOptions();if(x&&re){var I=f.map(function(b,Q){return m.a.createElement(re.Option,{key:Q,value:b.toString()},(Pe||t.buildOptionText)(b))});ge=m.a.createElement(re,{disabled:R,prefixCls:ee,showSearch:!1,className:"".concat(ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Q){return Q.parentNode}},I)}return w&&(Y&&(K=typeof Y=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:R,className:"".concat(ve,"-quick-jumper-button")},E.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},Y)),z=m.a.createElement("div",{className:"".concat(ve,"-quick-jumper")},E.jump_to,m.a.createElement("input",{disabled:R,type:"text",value:ue,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),E.page,K)),m.a.createElement("li",{className:"".concat(ve)},ge,z)}}]),a}(m.a.Component);l.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=l,_=e("N2Kk");function p(){}function g(C){return typeof C=="number"&&isFinite(C)&&Math.floor(C)===C}function P(C,h,a){return a}function u(C,h,a){var o=typeof C=="undefined"?h.pageSize:C;return Math.floor((a.total-1)/o)+1}var N=function(C){Object(n.a)(a,C);var h=Object(de.a)(a);function a(o){var t;Object(fe.a)(this,a),t=h.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(u(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(x,w){var Y=t.props.prefixCls,pe=x||m.a.createElement("button",{type:"button","aria-label":w,className:"".concat(Y,"-item-link")});return typeof x=="function"&&(pe=m.a.createElement(x,Object(oe.a)({},t.props))),pe},t.savePaginationNode=function(x){t.paginationNode=x},t.isValid=function(x){return g(x)&&x!==t.state.current},t.shouldDisplayQuickJumper=function(){var x=t.props,w=x.showQuickJumper,Y=x.pageSize,pe=x.total;return pe<=Y?!1:w},t.handleKeyDown=function(x){(x.keyCode===y.ARROW_UP||x.keyCode===y.ARROW_DOWN)&&x.preventDefault()},t.handleKeyUp=function(x){var w=t.getValidValue(x),Y=t.state.currentInputValue;w!==Y&&t.setState({currentInputValue:w}),x.keyCode===y.ENTER?t.handleChange(w):x.keyCode===y.ARROW_UP?t.handleChange(w-1):x.keyCode===y.ARROW_DOWN&&t.handleChange(w+1)},t.changePageSize=function(x){var w=t.state.current,Y=u(x,t.state,t.props);w=w>Y?Y:w,Y===0&&(w=t.state.current),typeof x=="number"&&("pageSize"in t.props||t.setState({pageSize:x}),"current"in t.props||t.setState({current:w,currentInputValue:w})),t.props.onShowSizeChange(w,x),"onChange"in t.props&&t.props.onChange&&t.props.onChange(w,x)},t.handleChange=function(x){var w=t.props.disabled,Y=x;if(t.isValid(Y)&&!w){var pe=u(void 0,t.state,t.props);Y>pe?Y=pe:Y<1&&(Y=1),"current"in t.props||t.setState({current:Y,currentInputValue:Y});var Pe=t.state.pageSize;return t.props.onChange(Y,Pe),Y}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?Y-2:0),Pe=2;Pe=c?G=c:G=Number(d),G}},{key:"getShowSizeChanger",value:function(){var t=this.props,d=t.showSizeChanger,c=t.total,E=t.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:c>E}},{key:"renderPrev",value:function(t){var d=this.props,c=d.prevIcon,E=d.itemRender,G=E(t,"prev",this.getItemIcon(c,"prev page")),x=!this.hasPrev();return Object(W.isValidElement)(G)?Object(W.cloneElement)(G,{disabled:x}):G}},{key:"renderNext",value:function(t){var d=this.props,c=d.nextIcon,E=d.itemRender,G=E(t,"next",this.getItemIcon(c,"next page")),x=!this.hasNext();return Object(W.isValidElement)(G)?Object(W.cloneElement)(G,{disabled:x}):G}},{key:"render",value:function(){var t=this,d=this.props,c=d.prefixCls,E=d.className,G=d.style,x=d.disabled,w=d.hideOnSinglePage,Y=d.total,pe=d.locale,Pe=d.showQuickJumper,ee=d.showLessItems,R=d.showTitle,ue=d.showTotal,ve=d.simple,re=d.itemRender,ge=d.showPrevNextJumpers,z=d.jumpPrevIcon,K=d.jumpNextIcon,f=d.selectComponentClass,I=d.selectPrefixCls,b=d.pageSizeOptions,Q=this.state,V=Q.current,le=Q.pageSize,J=Q.currentInputValue;if(w===!0&&Y<=le)return null;var Z=u(void 0,this.state,this.props),he=[],Te=null,je=null,De=null,Je=null,Ae=null,Ce=Pe&&Pe.goButton,ye=ee?1:2,Qe=V-1>0?V-1:0,Xe=V+1=ye*2&&V!==1+2&&(he[0]=Object(W.cloneElement)(he[0],{className:"".concat(c,"-item-after-jump-prev")}),he.unshift(Te)),Z-V>=ye*2&&V!==Z-2&&(he[he.length-1]=Object(W.cloneElement)(he[he.length-1],{className:"".concat(c,"-item-before-jump-next")}),he.push(je)),S!==1&&he.unshift(De),$!==Z&&he.push(Je)}var k=null;ue&&(k=m.a.createElement("li",{className:"".concat(c,"-total-text")},ue(Y,[Y===0?0:(V-1)*le+1,V*le>Y?Y:V*le])));var A=!this.hasPrev()||!Z,D=!this.hasNext()||!Z;return m.a.createElement("ul",Object(j.a)({className:v()(c,E,Object(O.a)({},"".concat(c,"-disabled"),x)),style:G,unselectable:"unselectable",ref:this.savePaginationNode},qe),k,m.a.createElement("li",{title:R?pe.prev_page:null,onClick:this.prev,tabIndex:A?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(c,"-prev"),Object(O.a)({},"".concat(c,"-disabled"),A)),"aria-disabled":A},this.renderPrev(Qe)),he,m.a.createElement("li",{title:R?pe.next_page:null,onClick:this.next,tabIndex:D?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(c,"-next"),Object(O.a)({},"".concat(c,"-disabled"),D)),"aria-disabled":D},this.renderNext(Xe)),m.a.createElement(r,{disabled:x,locale:pe,rootPrefixCls:c,selectComponentClass:f,selectPrefixCls:I,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:V,pageSize:le,pageSizeOptions:b,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ce}))}}],[{key:"getDerivedStateFromProps",value:function(t,d){var c={};if("current"in t&&(c.current=t.current,t.current!==d.current&&(c.currentInputValue=c.current)),"pageSize"in t&&t.pageSize!==d.pageSize){var E=d.current,G=u(t.pageSize,d,t);E=E>G?G:E,"current"in t||(c.current=E,c.currentInputValue=E),c.pageSize=t.pageSize}return c}}]),a}(m.a.Component);N.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:_.a,style:{},itemRender:P,totalBoundaryShowSizeChanger:50};var s=N},"6RRn":function(Me,U,e){"use strict";var j=e("wCXF"),O=e("n6Qo");e.d(U,"b",function(){return O.a});var oe=e("IBYe"),fe=e("6eGT"),T=e("hW8S");e.d(U,"a",function(){return T.a}),U.c=j.b},"6eGT":function(Me,U,e){"use strict";function j(O){return null}U.a=j},"815F":function(Me,U,e){"use strict";e.d(U,"e",function(){return de}),e.d(U,"c",function(){return m}),e.d(U,"d",function(){return se}),e.d(U,"a",function(){return L}),e.d(U,"f",function(){return F}),e.d(U,"b",function(){return y});var j=e("KQm4"),O=e("VTBJ"),oe=e("Ff2n"),fe=e("Zm9Q"),T=e("Kwbf"),n=e("OZM5");function de(l,r){return l!=null?l:r}function W(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function _(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(P){var u=P.key,N=P.children;Object(T.a)(u!=null,"Tree node must have a certain key: [".concat(g).concat(u,"]"));var s=String(u);Object(T.a)(!r.has(s)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(s)),r.set(s,!0),_(N,"".concat(g).concat(s," > "))})}_(l)}function m(l){function r(_){var p=Object(fe.a)(_);return p.map(function(g){if(!Object(n.i)(g))return Object(T.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var P=g.key,u=g.props,N=u.children,s=Object(oe.a)(u,["children"]),C=Object(O.a)({key:P},s),h=r(N);return h.length&&(C.children=h),C}).filter(function(g){return g})}return r(l)}function se(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=new Set(r===!0?[]:r),p=[];function g(P){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return P.map(function(N,s){var C=Object(n.h)(u?u.pos:"0",s),h=de(N.key,C),a=Object(O.a)(Object(O.a)({},N),{},{parent:u,pos:C,children:null,data:N,isStart:[].concat(Object(j.a)(u?u.isStart:[]),[s===0]),isEnd:[].concat(Object(j.a)(u?u.isEnd:[]),[s===P.length-1])});return p.push(a),r===!0||_.has(h)?a.children=g(N.children||[],a):a.children=[],a})}return g(l),p}function v(l,r,_){var p;_?typeof _=="string"?p=function(u){return u[_]}:typeof _=="function"&&(p=function(u){return _(u)}):p=function(u,N){return de(u.key,N)};function g(P,u,N){var s=P?P.children:l,C=P?Object(n.h)(N.pos,u):"0";if(P){var h=p(P,C),a={node:P,index:u,pos:C,key:h,parentPos:N.node?N.pos:null,level:N.level+1};r(a)}s&&s.forEach(function(o,t){g(o,t,{node:P,pos:C,level:N?N.level+1:-1})})}g(null)}function L(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=r.initWrapper,p=r.processEntity,g=r.onProcessFinished,P=arguments.length>2?arguments[2]:void 0,u={},N={},s={posEntities:u,keyEntities:N};return _&&(s=_(s)||s),v(l,function(C){var h=C.node,a=C.index,o=C.pos,t=C.key,d=C.parentPos,c=C.level,E={node:h,index:a,key:t,pos:o,level:c},G=de(t,o);u[o]=E,N[G]=E,E.parent=u[d],E.parent&&(E.parent.children=E.parent.children||[],E.parent.children.push(E)),p&&p(E,s)},P),g&&g(s),s}function F(l,r){var _=r.expandedKeys,p=r.selectedKeys,g=r.loadedKeys,P=r.loadingKeys,u=r.checkedKeys,N=r.halfCheckedKeys,s=r.dragOverNodeKey,C=r.dropPosition,h=r.keyEntities,a=h[l],o={eventKey:l,expanded:_.indexOf(l)!==-1,selected:p.indexOf(l)!==-1,loaded:g.indexOf(l)!==-1,loading:P.indexOf(l)!==-1,checked:u.indexOf(l)!==-1,halfChecked:N.indexOf(l)!==-1,pos:String(a?a.pos:""),dragOver:s===l&&C===0,dragOverGapTop:s===l&&C===-1,dragOverGapBottom:s===l&&C===1};return o}function y(l){var r=l.data,_=l.expanded,p=l.selected,g=l.checked,P=l.loaded,u=l.loading,N=l.halfChecked,s=l.dragOver,C=l.dragOverGapTop,h=l.dragOverGapBottom,a=l.pos,o=l.active,t=Object(O.a)(Object(O.a)({},r),{},{expanded:_,selected:p,checked:g,loaded:P,loading:u,halfChecked:N,dragOver:s,dragOverGapTop:C,dragOverGapBottom:h,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),l}}),t}},IBYe:function(Me,U,e){"use strict";function j(O){return null}U.a=j},LdHM:function(Me,U,e){"use strict";e.d(U,"b",function(){return P}),e.d(U,"a",function(){return N});var j=e("1OyB"),O=e("vuIU"),oe=e("Ji7U"),fe=e("LK+K"),T=e("q1tI"),n=e("rePB"),de=e("Ff2n"),W=e("ODXe"),m=e("4IlW"),se=e("bX4T"),v=e("YrtM"),L=e("TSYQ"),F=e.n(L),y=e("+nKL"),l=e("8OUc"),r=function(R,ue){var ve=R.prefixCls,re=R.id,ge=R.flattenOptions,z=R.childrenAsData,K=R.values,f=R.searchValue,I=R.multiple,b=R.defaultActiveFirstOption,Q=R.height,V=R.itemHeight,le=R.notFoundContent,J=R.open,Z=R.menuItemSelectedIcon,he=R.virtual,Te=R.onSelect,je=R.onToggleOpen,De=R.onActiveValue,Je=R.onScroll,Ae=R.onMouseEnter,Ce="".concat(ve,"-item"),ye=Object(v.a)(function(){return ge},[J,ge],function(X,k){return k[0]&&X[1]!==k[1]}),Qe=T.useRef(null),Xe=function(k){k.preventDefault()},qe=function(k){Qe.current&&Qe.current.scrollTo({index:k})},at=function(k){for(var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=ye.length,B=0;B1&&arguments[1]!==void 0?arguments[1]:!1;return Object(C.a)(ee).map(function(ue,ve){if(!T.isValidElement(ue)||!ue.type)return null;var re=ue.type.isSelectOptGroup,ge=ue.key,z=ue.props,K=z.children,f=Object(de.a)(z,["children"]);return R||!re?h(ue):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ge===null?ve:ge,"__"),label:ge},f),{},{options:a(K)})}).filter(function(ue){return ue})}var o=e("2Qr1"),t=e("qNPg"),d=e("U8pU"),c=e("Kwbf"),E=e("WKfj");function G(ee){var R=ee.mode,ue=ee.options,ve=ee.children,re=ee.backfill,ge=ee.allowClear,z=ee.placeholder,K=ee.getInputElement,f=ee.showSearch,I=ee.onSearch,b=ee.defaultOpen,Q=ee.autoFocus,V=ee.labelInValue,le=ee.value,J=ee.inputValue,Z=ee.optionLabelProp,he=R==="multiple"||R==="tags",Te=f!==void 0?f:he||R==="combobox",je=ue||a(ve);if(Object(c.a)(R!=="tags"||je.every(function(Ce){return!Ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),R==="tags"||R==="combobox"){var De=je.some(function(Ce){return Ce.options?Ce.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in Ce?Ce.value:Ce.key)=="number"});Object(c.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(R!=="combobox"||!Z,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(R==="combobox"||!re,"`backfill` only works with `combobox` mode."),Object(c.a)(R==="combobox"||!K,"`getInputElement` only work with `combobox` mode."),Object(c.b)(R!=="combobox"||!K||!ge||!z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!Te&&R!=="combobox"&&R!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!b||Q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),le!=null){var Je=Object(E.d)(le);Object(c.a)(!V||Je.every(function(Ce){return Object(d.a)(Ce)==="object"&&("key"in Ce||"value"in Ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!he||Array.isArray(le),"`value` should be array when `mode` is `multiple` or `tags`")}if(ve){var Ae=null;Object(C.a)(ve).some(function(Ce){if(!T.isValidElement(Ce)||!Ce.type)return!1;var ye=Ce.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Qe=Object(C.a)(Ce.props.children).every(function(Xe){return!T.isValidElement(Xe)||!Ce.type||Xe.type.isSelectOption?!0:(Ae=Xe.type,!1)});return!Qe}return Ae=ye,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(J===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=G,w=Object(t.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:x,fillOptionsWithMissingValue:o.a}),Y=function(ee){Object(oe.a)(ue,ee);var R=Object(fe.a)(ue);function ue(){var ve;return Object(j.a)(this,ue),ve=R.apply(this,arguments),ve.selectRef=T.createRef(),ve.focus=function(){ve.selectRef.current.focus()},ve.blur=function(){ve.selectRef.current.blur()},ve}return Object(O.a)(ue,[{key:"render",value:function(){return T.createElement(w,Object.assign({ref:this.selectRef},this.props))}}]),ue}(T.Component);Y.Option=P,Y.OptGroup=N;var pe=Y,Pe=U.c=pe},NvD2:function(Me,U,e){"use strict";e.d(U,"a",function(){return n});var j=e("Kwbf");function O(de,W){var m=new Set;return de.forEach(function(se){W.has(se)||m.add(se)}),m}function oe(de){var W=de||{},m=W.disabled,se=W.disableCheckbox,v=W.checkable;return!!(m||se)||v===!1}function fe(de,W,m,se){for(var v=new Set(de),L=new Set,F=0;F<=m;F+=1){var y=W.get(F)||new Set;y.forEach(function(p){var g=p.key,P=p.node,u=p.children,N=u===void 0?[]:u;v.has(g)&&!se(P)&&N.filter(function(s){return!se(s.node)}).forEach(function(s){v.add(s.key)})})}for(var l=new Set,r=m;r>=0;r-=1){var _=W.get(r)||new Set;_.forEach(function(p){var g=p.parent,P=p.node;if(se(P)||!p.parent||l.has(p.parent.key))return;if(se(p.parent.node)){l.add(g.key);return}var u=!0,N=!1;(g.children||[]).filter(function(s){return!se(s.node)}).forEach(function(s){var C=s.key,h=v.has(C);u&&!h&&(u=!1),!N&&(h||L.has(C))&&(N=!0)}),u&&v.add(g.key),N&&L.add(g.key),l.add(g.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(O(L,v))}}function T(de,W,m,se,v){for(var L=new Set(de),F=new Set(W),y=0;y<=se;y+=1){var l=m.get(y)||new Set;l.forEach(function(g){var P=g.key,u=g.node,N=g.children,s=N===void 0?[]:N;!L.has(P)&&!F.has(P)&&!v(u)&&s.filter(function(C){return!v(C.node)}).forEach(function(C){L.delete(C.key)})})}F=new Set;for(var r=new Set,_=se;_>=0;_-=1){var p=m.get(_)||new Set;p.forEach(function(g){var P=g.parent,u=g.node;if(v(u)||!g.parent||r.has(g.parent.key))return;if(v(g.parent.node)){r.add(P.key);return}var N=!0,s=!1;(P.children||[]).filter(function(C){return!v(C.node)}).forEach(function(C){var h=C.key,a=L.has(h);N&&!a&&(N=!1),!s&&(a||F.has(h))&&(s=!0)}),N||L.delete(P.key),s&&F.add(P.key),r.add(P.key)})}return{checkedKeys:Array.from(L),halfCheckedKeys:Array.from(O(F,L))}}function n(de,W,m,se){var v=[],L;se?L=se:L=oe;var F=new Set(de.filter(function(_){var p=!!m[_];return p||v.push(_),p})),y=new Map,l=0;Object.keys(m).forEach(function(_){var p=m[_],g=p.level,P=y.get(g);P||(P=new Set,y.set(g,P)),P.add(p),l=Math.max(l,g)}),Object(j.a)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(_){return"'".concat(_,"'")}).join(", ")));var r;return W===!0?r=fe(F,y,l,L):r=T(F,W.halfCheckedKeys,y,l,L),r}},OZM5:function(Me,U,e){"use strict";e.d(U,"b",function(){return se}),e.d(U,"a",function(){return v}),e.d(U,"k",function(){return L}),e.d(U,"h",function(){return F}),e.d(U,"i",function(){return y}),e.d(U,"g",function(){return l}),e.d(U,"c",function(){return r}),e.d(U,"d",function(){return _}),e.d(U,"j",function(){return P}),e.d(U,"e",function(){return u}),e.d(U,"f",function(){return N});var j=e("KQm4"),O=e("U8pU"),oe=e("Ff2n"),fe=e("q1tI"),T=e.n(fe),n=e("Kwbf"),de=e("WaYH"),W=.25,m=2;function se(s,C){var h=s.slice(),a=h.indexOf(C);return a>=0&&h.splice(a,1),h}function v(s,C){var h=s.slice();return h.indexOf(C)===-1&&h.push(C),h}function L(s){return s.split("-")}function F(s,C){return"".concat(s,"-").concat(C)}function y(s){return s&&s.type&&s.type.isTreeNode}function l(s,C){var h=[s],a=C[s];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(d){var c=d.key,E=d.children;h.push(c),o(E)})}return o(a.children),h}function r(s,C){var h=s.clientY,a=C.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,d=a.height,c=Math.max(d*W,m);return h<=o+c?-1:h>=t-c?1:0}function _(s,C){if(!s)return;var h=C.multiple;return h?s.slice():s.length?[s[0]]:s}var p=function(C){return C};function g(s,C){if(!s)return[];var h=C||{},a=h.processProps,o=a===void 0?p:a,t=Array.isArray(s)?s:[s];return t.map(function(d){var c=d.children,E=Object(oe.a)(d,["children"]),G=g(c,C);return T.a.createElement(de.a,Object.assign({},o(E)),G)})}function P(s){if(!s)return null;var C;if(Array.isArray(s))C={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(O.a)(s)==="object")C={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function u(s,C){var h=new Set;function a(o){if(h.has(o))return;var t=C[o];if(!t)return;h.add(o);var d=t.parent,c=t.node;if(c.disabled)return;d&&a(d.key)}return(s||[]).forEach(function(o){a(o)}),Object(j.a)(h)}function N(s){var C={};return Object.keys(s).forEach(function(h){(h.startsWith("data-")||h.startsWith("aria-"))&&(C[h]=s[h])}),C}},PsNh:function(Me,U,e){Me.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Me,U,e){var j=e("wTVA"),O=e("EbDI"),oe=e("ZhPi"),fe=e("wkBT");function T(n){return j(n)||O(n)||oe(n)||fe()}Me.exports=T,Me.exports.__esModule=!0,Me.exports.default=Me.exports},WaYH:function(Me,U,e){"use strict";var j=e("rePB"),O=e("Ff2n"),oe=e("VTBJ"),fe=e("1OyB"),T=e("vuIU"),n=e("JX7q"),de=e("Ji7U"),W=e("LK+K"),m=e("q1tI"),se=e("TSYQ"),v=e.n(se),L=e("sboe"),F=e("OZM5"),y=function(C){var h=C.prefixCls,a=C.level,o=C.isStart,t=C.isEnd;if(!a)return null;for(var d="".concat(h,"-indent-unit"),c=[],E=0;E=0||E.relatedTarget.className.indexOf("".concat(Y,"-next"))>=0))return;o.setState({goInputText:""}),w(o.getValidValue())},o.go=function(E){var G=o.state.goInputText;if(G==="")return;(E.keyCode===y.ENTER||E.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(S.a)(a,[{key:"getValidValue",value:function(){var t=this.state,d=t.goInputText,c=t.current;return!d||isNaN(d)?c:Number(d)}},{key:"getPageSizeOptions",value:function(){var t=this.props,d=t.pageSize,c=t.pageSizeOptions;return c.some(function(E){return E.toString()===d.toString()})?c:c.concat([d.toString()]).sort(function(E,G){var x=isNaN(Number(E))?0:Number(E),w=isNaN(Number(G))?0:Number(G);return x-w})}},{key:"render",value:function(){var t=this,d=this.props,c=d.pageSize,E=d.locale,G=d.rootPrefixCls,x=d.changeSize,w=d.quickGo,Y=d.goButton,pe=d.selectComponentClass,Pe=d.buildOptionText,ee=d.selectPrefixCls,R=d.disabled,ue=this.state.goInputText,ve="".concat(G,"-options"),re=pe,ge=null,z=null,K=null;if(!x&&!w)return null;var f=this.getPageSizeOptions();if(x&&re){var I=f.map(function(b,Q){return m.a.createElement(re.Option,{key:Q,value:b.toString()},(Pe||t.buildOptionText)(b))});ge=m.a.createElement(re,{disabled:R,prefixCls:ee,showSearch:!1,className:"".concat(ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Q){return Q.parentNode}},I)}return w&&(Y&&(K=typeof Y=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:R,className:"".concat(ve,"-quick-jumper-button")},E.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},Y)),z=m.a.createElement("div",{className:"".concat(ve,"-quick-jumper")},E.jump_to,m.a.createElement("input",{disabled:R,type:"text",value:ue,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),E.page,K)),m.a.createElement("li",{className:"".concat(ve)},ge,z)}}]),a}(m.a.Component);l.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=l,_=e("N2Kk");function p(){}function g(C){return typeof C=="number"&&isFinite(C)&&Math.floor(C)===C}function P(C,h,a){return a}function u(C,h,a){var o=typeof C=="undefined"?h.pageSize:C;return Math.floor((a.total-1)/o)+1}var N=function(C){Object(n.a)(a,C);var h=Object(de.a)(a);function a(o){var t;Object(fe.a)(this,a),t=h.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(u(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(x,w){var Y=t.props.prefixCls,pe=x||m.a.createElement("button",{type:"button","aria-label":w,className:"".concat(Y,"-item-link")});return typeof x=="function"&&(pe=m.a.createElement(x,Object(oe.a)({},t.props))),pe},t.savePaginationNode=function(x){t.paginationNode=x},t.isValid=function(x){return g(x)&&x!==t.state.current},t.shouldDisplayQuickJumper=function(){var x=t.props,w=x.showQuickJumper,Y=x.pageSize,pe=x.total;return pe<=Y?!1:w},t.handleKeyDown=function(x){(x.keyCode===y.ARROW_UP||x.keyCode===y.ARROW_DOWN)&&x.preventDefault()},t.handleKeyUp=function(x){var w=t.getValidValue(x),Y=t.state.currentInputValue;w!==Y&&t.setState({currentInputValue:w}),x.keyCode===y.ENTER?t.handleChange(w):x.keyCode===y.ARROW_UP?t.handleChange(w-1):x.keyCode===y.ARROW_DOWN&&t.handleChange(w+1)},t.changePageSize=function(x){var w=t.state.current,Y=u(x,t.state,t.props);w=w>Y?Y:w,Y===0&&(w=t.state.current),typeof x=="number"&&("pageSize"in t.props||t.setState({pageSize:x}),"current"in t.props||t.setState({current:w,currentInputValue:w})),t.props.onShowSizeChange(w,x),"onChange"in t.props&&t.props.onChange&&t.props.onChange(w,x)},t.handleChange=function(x){var w=t.props.disabled,Y=x;if(t.isValid(Y)&&!w){var pe=u(void 0,t.state,t.props);Y>pe?Y=pe:Y<1&&(Y=1),"current"in t.props||t.setState({current:Y,currentInputValue:Y});var Pe=t.state.pageSize;return t.props.onChange(Y,Pe),Y}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?Y-2:0),Pe=2;Pe=c?G=c:G=Number(d),G}},{key:"getShowSizeChanger",value:function(){var t=this.props,d=t.showSizeChanger,c=t.total,E=t.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:c>E}},{key:"renderPrev",value:function(t){var d=this.props,c=d.prevIcon,E=d.itemRender,G=E(t,"prev",this.getItemIcon(c,"prev page")),x=!this.hasPrev();return Object(k.isValidElement)(G)?Object(k.cloneElement)(G,{disabled:x}):G}},{key:"renderNext",value:function(t){var d=this.props,c=d.nextIcon,E=d.itemRender,G=E(t,"next",this.getItemIcon(c,"next page")),x=!this.hasNext();return Object(k.isValidElement)(G)?Object(k.cloneElement)(G,{disabled:x}):G}},{key:"render",value:function(){var t=this,d=this.props,c=d.prefixCls,E=d.className,G=d.style,x=d.disabled,w=d.hideOnSinglePage,Y=d.total,pe=d.locale,Pe=d.showQuickJumper,ee=d.showLessItems,R=d.showTitle,ue=d.showTotal,ve=d.simple,re=d.itemRender,ge=d.showPrevNextJumpers,z=d.jumpPrevIcon,K=d.jumpNextIcon,f=d.selectComponentClass,I=d.selectPrefixCls,b=d.pageSizeOptions,Q=this.state,V=Q.current,le=Q.pageSize,J=Q.currentInputValue;if(w===!0&&Y<=le)return null;var Z=u(void 0,this.state,this.props),he=[],Se=null,je=null,De=null,Je=null,Ae=null,Ce=Pe&&Pe.goButton,ye=ee?1:2,Qe=V-1>0?V-1:0,Xe=V+1=ye*2&&V!==1+2&&(he[0]=Object(k.cloneElement)(he[0],{className:"".concat(c,"-item-after-jump-prev")}),he.unshift(Se)),Z-V>=ye*2&&V!==Z-2&&(he[he.length-1]=Object(k.cloneElement)(he[he.length-1],{className:"".concat(c,"-item-before-jump-next")}),he.push(je)),T!==1&&he.unshift(De),$!==Z&&he.push(Je)}var W=null;ue&&(W=m.a.createElement("li",{className:"".concat(c,"-total-text")},ue(Y,[Y===0?0:(V-1)*le+1,V*le>Y?Y:V*le])));var A=!this.hasPrev()||!Z,D=!this.hasNext()||!Z;return m.a.createElement("ul",Object(j.a)({className:v()(c,E,Object(O.a)({},"".concat(c,"-disabled"),x)),style:G,unselectable:"unselectable",ref:this.savePaginationNode},qe),W,m.a.createElement("li",{title:R?pe.prev_page:null,onClick:this.prev,tabIndex:A?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(c,"-prev"),Object(O.a)({},"".concat(c,"-disabled"),A)),"aria-disabled":A},this.renderPrev(Qe)),he,m.a.createElement("li",{title:R?pe.next_page:null,onClick:this.next,tabIndex:D?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(c,"-next"),Object(O.a)({},"".concat(c,"-disabled"),D)),"aria-disabled":D},this.renderNext(Xe)),m.a.createElement(r,{disabled:x,locale:pe,rootPrefixCls:c,selectComponentClass:f,selectPrefixCls:I,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:V,pageSize:le,pageSizeOptions:b,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ce}))}}],[{key:"getDerivedStateFromProps",value:function(t,d){var c={};if("current"in t&&(c.current=t.current,t.current!==d.current&&(c.currentInputValue=c.current)),"pageSize"in t&&t.pageSize!==d.pageSize){var E=d.current,G=u(t.pageSize,d,t);E=E>G?G:E,"current"in t||(c.current=E,c.currentInputValue=E),c.pageSize=t.pageSize}return c}}]),a}(m.a.Component);N.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:_.a,style:{},itemRender:P,totalBoundaryShowSizeChanger:50};var s=N},"6RRn":function(Me,U,e){"use strict";var j=e("wCXF"),O=e("n6Qo");e.d(U,"b",function(){return O.a});var oe=e("IBYe"),fe=e("6eGT"),S=e("hW8S");e.d(U,"a",function(){return S.a}),U.c=j.b},"6eGT":function(Me,U,e){"use strict";function j(O){return null}U.a=j},"815F":function(Me,U,e){"use strict";e.d(U,"e",function(){return de}),e.d(U,"c",function(){return m}),e.d(U,"d",function(){return se}),e.d(U,"a",function(){return L}),e.d(U,"f",function(){return F}),e.d(U,"b",function(){return y});var j=e("KQm4"),O=e("VTBJ"),oe=e("Ff2n"),fe=e("Zm9Q"),S=e("Kwbf"),n=e("OZM5");function de(l,r){return l!=null?l:r}function k(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function _(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(P){var u=P.key,N=P.children;Object(S.a)(u!=null,"Tree node must have a certain key: [".concat(g).concat(u,"]"));var s=String(u);Object(S.a)(!r.has(s)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(s)),r.set(s,!0),_(N,"".concat(g).concat(s," > "))})}_(l)}function m(l){function r(_){var p=Object(fe.a)(_);return p.map(function(g){if(!Object(n.i)(g))return Object(S.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var P=g.key,u=g.props,N=u.children,s=Object(oe.a)(u,["children"]),C=Object(O.a)({key:P},s),h=r(N);return h.length&&(C.children=h),C}).filter(function(g){return g})}return r(l)}function se(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=new Set(r===!0?[]:r),p=[];function g(P){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return P.map(function(N,s){var C=Object(n.h)(u?u.pos:"0",s),h=de(N.key,C),a=Object(O.a)(Object(O.a)({},N),{},{parent:u,pos:C,children:null,data:N,isStart:[].concat(Object(j.a)(u?u.isStart:[]),[s===0]),isEnd:[].concat(Object(j.a)(u?u.isEnd:[]),[s===P.length-1])});return p.push(a),r===!0||_.has(h)?a.children=g(N.children||[],a):a.children=[],a})}return g(l),p}function v(l,r,_){var p;_?typeof _=="string"?p=function(u){return u[_]}:typeof _=="function"&&(p=function(u){return _(u)}):p=function(u,N){return de(u.key,N)};function g(P,u,N){var s=P?P.children:l,C=P?Object(n.h)(N.pos,u):"0";if(P){var h=p(P,C),a={node:P,index:u,pos:C,key:h,parentPos:N.node?N.pos:null,level:N.level+1};r(a)}s&&s.forEach(function(o,t){g(o,t,{node:P,pos:C,level:N?N.level+1:-1})})}g(null)}function L(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=r.initWrapper,p=r.processEntity,g=r.onProcessFinished,P=arguments.length>2?arguments[2]:void 0,u={},N={},s={posEntities:u,keyEntities:N};return _&&(s=_(s)||s),v(l,function(C){var h=C.node,a=C.index,o=C.pos,t=C.key,d=C.parentPos,c=C.level,E={node:h,index:a,key:t,pos:o,level:c},G=de(t,o);u[o]=E,N[G]=E,E.parent=u[d],E.parent&&(E.parent.children=E.parent.children||[],E.parent.children.push(E)),p&&p(E,s)},P),g&&g(s),s}function F(l,r){var _=r.expandedKeys,p=r.selectedKeys,g=r.loadedKeys,P=r.loadingKeys,u=r.checkedKeys,N=r.halfCheckedKeys,s=r.dragOverNodeKey,C=r.dropPosition,h=r.keyEntities,a=h[l],o={eventKey:l,expanded:_.indexOf(l)!==-1,selected:p.indexOf(l)!==-1,loaded:g.indexOf(l)!==-1,loading:P.indexOf(l)!==-1,checked:u.indexOf(l)!==-1,halfChecked:N.indexOf(l)!==-1,pos:String(a?a.pos:""),dragOver:s===l&&C===0,dragOverGapTop:s===l&&C===-1,dragOverGapBottom:s===l&&C===1};return o}function y(l){var r=l.data,_=l.expanded,p=l.selected,g=l.checked,P=l.loaded,u=l.loading,N=l.halfChecked,s=l.dragOver,C=l.dragOverGapTop,h=l.dragOverGapBottom,a=l.pos,o=l.active,t=Object(O.a)(Object(O.a)({},r),{},{expanded:_,selected:p,checked:g,loaded:P,loading:u,halfChecked:N,dragOver:s,dragOverGapTop:C,dragOverGapBottom:h,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),l}}),t}},IBYe:function(Me,U,e){"use strict";function j(O){return null}U.a=j},LdHM:function(Me,U,e){"use strict";e.d(U,"b",function(){return P}),e.d(U,"a",function(){return N});var j=e("1OyB"),O=e("vuIU"),oe=e("Ji7U"),fe=e("LK+K"),S=e("q1tI"),n=e("rePB"),de=e("Ff2n"),k=e("ODXe"),m=e("4IlW"),se=e("bX4T"),v=e("YrtM"),L=e("TSYQ"),F=e.n(L),y=e("+nKL"),l=e("8OUc"),r=function(R,ue){var ve=R.prefixCls,re=R.id,ge=R.flattenOptions,z=R.childrenAsData,K=R.values,f=R.searchValue,I=R.multiple,b=R.defaultActiveFirstOption,Q=R.height,V=R.itemHeight,le=R.notFoundContent,J=R.open,Z=R.menuItemSelectedIcon,he=R.virtual,Se=R.onSelect,je=R.onToggleOpen,De=R.onActiveValue,Je=R.onScroll,Ae=R.onMouseEnter,Ce="".concat(ve,"-item"),ye=Object(v.a)(function(){return ge},[J,ge],function(X,W){return W[0]&&X[1]!==W[1]}),Qe=S.useRef(null),Xe=function(W){W.preventDefault()},qe=function(W){Qe.current&&Qe.current.scrollTo({index:W})},at=function(W){for(var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=ye.length,B=0;B1&&arguments[1]!==void 0?arguments[1]:!1;return Object(C.a)(ee).map(function(ue,ve){if(!S.isValidElement(ue)||!ue.type)return null;var re=ue.type.isSelectOptGroup,ge=ue.key,z=ue.props,K=z.children,f=Object(de.a)(z,["children"]);return R||!re?h(ue):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ge===null?ve:ge,"__"),label:ge},f),{},{options:a(K)})}).filter(function(ue){return ue})}var o=e("2Qr1"),t=e("qNPg"),d=e("U8pU"),c=e("Kwbf"),E=e("WKfj");function G(ee){var R=ee.mode,ue=ee.options,ve=ee.children,re=ee.backfill,ge=ee.allowClear,z=ee.placeholder,K=ee.getInputElement,f=ee.showSearch,I=ee.onSearch,b=ee.defaultOpen,Q=ee.autoFocus,V=ee.labelInValue,le=ee.value,J=ee.inputValue,Z=ee.optionLabelProp,he=R==="multiple"||R==="tags",Se=f!==void 0?f:he||R==="combobox",je=ue||a(ve);if(Object(c.a)(R!=="tags"||je.every(function(Ce){return!Ce.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),R==="tags"||R==="combobox"){var De=je.some(function(Ce){return Ce.options?Ce.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in Ce?Ce.value:Ce.key)=="number"});Object(c.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(R!=="combobox"||!Z,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(R==="combobox"||!re,"`backfill` only works with `combobox` mode."),Object(c.a)(R==="combobox"||!K,"`getInputElement` only work with `combobox` mode."),Object(c.b)(R!=="combobox"||!K||!ge||!z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!Se&&R!=="combobox"&&R!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!b||Q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),le!=null){var Je=Object(E.d)(le);Object(c.a)(!V||Je.every(function(Ce){return Object(d.a)(Ce)==="object"&&("key"in Ce||"value"in Ce)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!he||Array.isArray(le),"`value` should be array when `mode` is `multiple` or `tags`")}if(ve){var Ae=null;Object(C.a)(ve).some(function(Ce){if(!S.isValidElement(Ce)||!Ce.type)return!1;var ye=Ce.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Qe=Object(C.a)(Ce.props.children).every(function(Xe){return!S.isValidElement(Xe)||!Ce.type||Xe.type.isSelectOption?!0:(Ae=Xe.type,!1)});return!Qe}return Ae=ye,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(J===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=G,w=Object(t.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:x,fillOptionsWithMissingValue:o.a}),Y=function(ee){Object(oe.a)(ue,ee);var R=Object(fe.a)(ue);function ue(){var ve;return Object(j.a)(this,ue),ve=R.apply(this,arguments),ve.selectRef=S.createRef(),ve.focus=function(){ve.selectRef.current.focus()},ve.blur=function(){ve.selectRef.current.blur()},ve}return Object(O.a)(ue,[{key:"render",value:function(){return S.createElement(w,Object.assign({ref:this.selectRef},this.props))}}]),ue}(S.Component);Y.Option=P,Y.OptGroup=N;var pe=Y,Pe=U.c=pe},NvD2:function(Me,U,e){"use strict";e.d(U,"a",function(){return n});var j=e("Kwbf");function O(de,k){var m=new Set;return de.forEach(function(se){k.has(se)||m.add(se)}),m}function oe(de){var k=de||{},m=k.disabled,se=k.disableCheckbox,v=k.checkable;return!!(m||se)||v===!1}function fe(de,k,m,se){for(var v=new Set(de),L=new Set,F=0;F<=m;F+=1){var y=k.get(F)||new Set;y.forEach(function(p){var g=p.key,P=p.node,u=p.children,N=u===void 0?[]:u;v.has(g)&&!se(P)&&N.filter(function(s){return!se(s.node)}).forEach(function(s){v.add(s.key)})})}for(var l=new Set,r=m;r>=0;r-=1){var _=k.get(r)||new Set;_.forEach(function(p){var g=p.parent,P=p.node;if(se(P)||!p.parent||l.has(p.parent.key))return;if(se(p.parent.node)){l.add(g.key);return}var u=!0,N=!1;(g.children||[]).filter(function(s){return!se(s.node)}).forEach(function(s){var C=s.key,h=v.has(C);u&&!h&&(u=!1),!N&&(h||L.has(C))&&(N=!0)}),u&&v.add(g.key),N&&L.add(g.key),l.add(g.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(O(L,v))}}function S(de,k,m,se,v){for(var L=new Set(de),F=new Set(k),y=0;y<=se;y+=1){var l=m.get(y)||new Set;l.forEach(function(g){var P=g.key,u=g.node,N=g.children,s=N===void 0?[]:N;!L.has(P)&&!F.has(P)&&!v(u)&&s.filter(function(C){return!v(C.node)}).forEach(function(C){L.delete(C.key)})})}F=new Set;for(var r=new Set,_=se;_>=0;_-=1){var p=m.get(_)||new Set;p.forEach(function(g){var P=g.parent,u=g.node;if(v(u)||!g.parent||r.has(g.parent.key))return;if(v(g.parent.node)){r.add(P.key);return}var N=!0,s=!1;(P.children||[]).filter(function(C){return!v(C.node)}).forEach(function(C){var h=C.key,a=L.has(h);N&&!a&&(N=!1),!s&&(a||F.has(h))&&(s=!0)}),N||L.delete(P.key),s&&F.add(P.key),r.add(P.key)})}return{checkedKeys:Array.from(L),halfCheckedKeys:Array.from(O(F,L))}}function n(de,k,m,se){var v=[],L;se?L=se:L=oe;var F=new Set(de.filter(function(_){var p=!!m[_];return p||v.push(_),p})),y=new Map,l=0;Object.keys(m).forEach(function(_){var p=m[_],g=p.level,P=y.get(g);P||(P=new Set,y.set(g,P)),P.add(p),l=Math.max(l,g)}),Object(j.a)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(_){return"'".concat(_,"'")}).join(", ")));var r;return k===!0?r=fe(F,y,l,L):r=S(F,k.halfCheckedKeys,y,l,L),r}},OZM5:function(Me,U,e){"use strict";e.d(U,"b",function(){return se}),e.d(U,"a",function(){return v}),e.d(U,"k",function(){return L}),e.d(U,"h",function(){return F}),e.d(U,"i",function(){return y}),e.d(U,"g",function(){return l}),e.d(U,"c",function(){return r}),e.d(U,"d",function(){return _}),e.d(U,"j",function(){return P}),e.d(U,"e",function(){return u}),e.d(U,"f",function(){return N});var j=e("KQm4"),O=e("U8pU"),oe=e("Ff2n"),fe=e("q1tI"),S=e.n(fe),n=e("Kwbf"),de=e("WaYH"),k=.25,m=2;function se(s,C){var h=s.slice(),a=h.indexOf(C);return a>=0&&h.splice(a,1),h}function v(s,C){var h=s.slice();return h.indexOf(C)===-1&&h.push(C),h}function L(s){return s.split("-")}function F(s,C){return"".concat(s,"-").concat(C)}function y(s){return s&&s.type&&s.type.isTreeNode}function l(s,C){var h=[s],a=C[s];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(d){var c=d.key,E=d.children;h.push(c),o(E)})}return o(a.children),h}function r(s,C){var h=s.clientY,a=C.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,d=a.height,c=Math.max(d*k,m);return h<=o+c?-1:h>=t-c?1:0}function _(s,C){if(!s)return;var h=C.multiple;return h?s.slice():s.length?[s[0]]:s}var p=function(C){return C};function g(s,C){if(!s)return[];var h=C||{},a=h.processProps,o=a===void 0?p:a,t=Array.isArray(s)?s:[s];return t.map(function(d){var c=d.children,E=Object(oe.a)(d,["children"]),G=g(c,C);return S.a.createElement(de.a,Object.assign({},o(E)),G)})}function P(s){if(!s)return null;var C;if(Array.isArray(s))C={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(O.a)(s)==="object")C={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function u(s,C){var h=new Set;function a(o){if(h.has(o))return;var t=C[o];if(!t)return;h.add(o);var d=t.parent,c=t.node;if(c.disabled)return;d&&a(d.key)}return(s||[]).forEach(function(o){a(o)}),Object(j.a)(h)}function N(s){var C={};return Object.keys(s).forEach(function(h){(h.startsWith("data-")||h.startsWith("aria-"))&&(C[h]=s[h])}),C}},PsNh:function(Me,U,e){Me.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Me,U,e){var j=e("wTVA"),O=e("EbDI"),oe=e("ZhPi"),fe=e("wkBT");function S(n){return j(n)||O(n)||oe(n)||fe()}Me.exports=S,Me.exports.__esModule=!0,Me.exports.default=Me.exports},WaYH:function(Me,U,e){"use strict";var j=e("rePB"),O=e("Ff2n"),oe=e("VTBJ"),fe=e("1OyB"),S=e("vuIU"),n=e("JX7q"),de=e("Ji7U"),k=e("LK+K"),m=e("q1tI"),se=e("TSYQ"),v=e.n(se),L=e("sboe"),F=e("OZM5"),y=function(C){var h=C.prefixCls,a=C.level,o=C.isStart,t=C.isEnd;if(!a)return null;for(var d="".concat(h,"-indent-unit"),c=[],E=0;E1&&arguments[1]!==void 0?arguments[1]:!1,f=z.getAttribute("id")||z.getAttribute("data-reactid")||z.getAttribute("name");if(K&&x[f])return x[f];var I=window.getComputedStyle(z),b=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),Q=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),V=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),le=G.map(function(Z){return"".concat(Z,":").concat(I.getPropertyValue(Z))}).join(";"),J={sizingStyle:le,paddingSize:Q,borderSize:V,boxSizing:b};return K&&f&&(x[f]=J),J}function pe(z){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;w||(w=document.createElement("textarea"),w.setAttribute("tab-index","-1"),w.setAttribute("aria-hidden","true"),document.body.appendChild(w)),z.getAttribute("wrap")?w.setAttribute("wrap",z.getAttribute("wrap")):w.removeAttribute("wrap");var b=Y(z,K),Q=b.paddingSize,V=b.borderSize,le=b.boxSizing,J=b.sizingStyle;w.setAttribute("style","".concat(J,";").concat(E)),w.value=z.value||z.placeholder||"";var Z=Number.MIN_SAFE_INTEGER,he=Number.MAX_SAFE_INTEGER,Te=w.scrollHeight,je;if(le==="border-box"?Te+=V:le==="content-box"&&(Te-=Q),f!==null||I!==null){w.value=" ";var De=w.scrollHeight-Q;f!==null&&(Z=De*f,le==="border-box"&&(Z=Z+Q+V),Te=Math.max(Z,Te)),I!==null&&(he=De*I,le==="border-box"&&(he=he+Q+V),je=Te>he?"":"hidden",Te=Math.min(he,Te))}return{height:Te,minHeight:Z,maxHeight:he,overflowY:je,resize:"none"}}var Pe=e("Gytx"),ee=e.n(Pe),R;(function(z){z[z.NONE=0]="NONE",z[z.RESIZING=1]="RESIZING",z[z.RESIZED=2]="RESIZED"})(R||(R={}));var ue=function(z){Object(fe.a)(f,z);var K=Object(T.a)(f);function f(I){var b;return Object(O.a)(this,f),b=K.call(this,I),b.nextFrameActionId=void 0,b.resizeFrameId=void 0,b.textArea=void 0,b.saveTextArea=function(Q){b.textArea=Q},b.handleResize=function(Q){var V=b.state.resizeStatus,le=b.props,J=le.autoSize,Z=le.onResize;if(V!==R.NONE)return;typeof Z=="function"&&Z(Q),J&&b.resizeOnNextFrame()},b.resizeOnNextFrame=function(){cancelAnimationFrame(b.nextFrameActionId),b.nextFrameActionId=requestAnimationFrame(b.resizeTextarea)},b.resizeTextarea=function(){var Q=b.props.autoSize;if(!Q||!b.textArea)return;var V=Q.minRows,le=Q.maxRows,J=pe(b.textArea,!1,V,le);b.setState({textareaStyles:J,resizeStatus:R.RESIZING},function(){cancelAnimationFrame(b.resizeFrameId),b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:R.RESIZED},function(){b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:R.NONE}),b.fixFirefoxAutoScroll()})})})})},b.renderTextArea=function(){var Q=b.props,V=Q.prefixCls,le=V===void 0?"rc-textarea":V,J=Q.autoSize,Z=Q.onResize,he=Q.className,Te=Q.disabled,je=b.state,De=je.textareaStyles,Je=je.resizeStatus,Ae=Object(t.a)(b.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ce=c()(le,he,Object(W.a)({},"".concat(le,"-disabled"),Te));"value"in Ae&&(Ae.value=Ae.value||"");var ye=Object(de.a)(Object(de.a)(Object(de.a)({},b.props.style),De),Je===R.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:b.handleResize,disabled:!(J||Z)},n.createElement("textarea",Object(j.a)({},Ae,{className:Ce,style:ye,ref:b.saveTextArea})))},b.state={textareaStyles:{},resizeStatus:R.NONE},b}return Object(oe.a)(f,[{key:"componentDidUpdate",value:function(b){(b.value!==this.props.value||!ee()(b.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var b=this.textArea.selectionStart,Q=this.textArea.selectionEnd;this.textArea.setSelectionRange(b,Q)}}catch(V){}}},{key:"render",value:function(){return this.renderTextArea()}}]),f}(n.Component),ve=ue,re=function(z){Object(fe.a)(f,z);var K=Object(T.a)(f);function f(I){var b;Object(O.a)(this,f),b=K.call(this,I),b.resizableTextArea=void 0,b.focus=function(){b.resizableTextArea.textArea.focus()},b.saveTextArea=function(V){b.resizableTextArea=V},b.handleChange=function(V){var le=b.props.onChange;b.setValue(V.target.value,function(){b.resizableTextArea.resizeTextarea()}),le&&le(V)},b.handleKeyDown=function(V){var le=b.props,J=le.onPressEnter,Z=le.onKeyDown;V.keyCode===13&&J&&J(V),Z&&Z(V)};var Q=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return b.state={value:Q},b}return Object(oe.a)(f,[{key:"setValue",value:function(b,Q){"value"in this.props||this.setState({value:b},Q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ve,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(b){return"value"in b?{value:b.value}:null}}]),f}(n.Component),ge=U.default=re},ZW5e:function(Me,U,e){Me.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Me,U,e){"use strict";function j(v){return typeof v=="object"&&v!=null&&v.nodeType===1}function O(v,L){return(!L||v!=="hidden")&&v!=="visible"&&v!=="clip"}function oe(v,L){if(v.clientHeightL||r>v&&_=L&&p>=F?r-v-y:_>L&&pF?_-L+l:0}var T=function(v,L){var F=window,y=L.scrollMode,l=L.block,r=L.inline,_=L.boundary,p=L.skipOverflowHiddenElements,g=typeof _=="function"?_:function(De){return De!==_};if(!j(v))throw new TypeError("Invalid target");for(var P=document.scrollingElement||document.documentElement,u=[],N=v;j(N)&&g(N);){if((N=N.parentElement)===P){u.push(N);break}N!=null&&N===document.body&&oe(N)&&!oe(document.documentElement)||N!=null&&oe(N,p)&&u.push(N)}for(var s=F.visualViewport?F.visualViewport.width:innerWidth,C=F.visualViewport?F.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,a=window.scrollY||pageYOffset,o=v.getBoundingClientRect(),t=o.height,d=o.width,c=o.top,E=o.right,G=o.bottom,x=o.left,w=l==="start"||l==="nearest"?c:l==="end"?G:c+t/2,Y=r==="center"?x+d/2:r==="end"?E:x,pe=[],Pe=0;Pe=0&&x>=0&&G<=C&&E<=s&&c>=re&&G<=z&&x>=K&&E<=ge)return pe;var f=getComputedStyle(ee),I=parseInt(f.borderLeftWidth,10),b=parseInt(f.borderTopWidth,10),Q=parseInt(f.borderRightWidth,10),V=parseInt(f.borderBottomWidth,10),le=0,J=0,Z="offsetWidth"in ee?ee.offsetWidth-ee.clientWidth-I-Q:0,he="offsetHeight"in ee?ee.offsetHeight-ee.clientHeight-b-V:0;if(P===ee)le=l==="start"?w:l==="end"?w-C:l==="nearest"?fe(a,a+C,C,b,V,a+w,a+w+t,t):w-C/2,J=r==="start"?Y:r==="center"?Y-s/2:r==="end"?Y-s:fe(h,h+s,s,I,Q,h+Y,h+Y+d,d),le=Math.max(0,le+a),J=Math.max(0,J+h);else{le=l==="start"?w-re-b:l==="end"?w-z+V+he:l==="nearest"?fe(re,z,ue,b,V+he,w,w+t,t):w-(re+ue/2)+he/2,J=r==="start"?Y-K-I:r==="center"?Y-(K+ve/2)+Z/2:r==="end"?Y-ge+Q+Z:fe(K,ge,ve,I,Q+Z,Y,Y+d,d);var Te=ee.scrollLeft,je=ee.scrollTop;w+=je-(le=Math.max(0,Math.min(je+le,ee.scrollHeight-ue+he))),Y+=Te-(J=Math.max(0,Math.min(Te+J,ee.scrollWidth-ve+Z)))}pe.push({el:ee,top:le,left:J})}return pe};function n(v){return v===Object(v)&&Object.keys(v).length!==0}function de(v,L){L===void 0&&(L="auto");var F="scrollBehavior"in document.body.style;v.forEach(function(y){var l=y.el,r=y.top,_=y.left;l.scroll&&F?l.scroll({top:r,left:_,behavior:L}):(l.scrollTop=r,l.scrollLeft=_)})}function W(v){return v===!1?{block:"end",inline:"nearest"}:n(v)?v:{block:"start",inline:"nearest"}}function m(v,L){var F=!v.ownerDocument.documentElement.contains(v);if(n(L)&&typeof L.behavior=="function")return L.behavior(F?[]:T(v,L));if(F)return;var y=W(L);return de(T(v,y),y.behavior)}var se=U.a=m},bT9E:function(Me,U,e){"use strict";e.d(U,"a",function(){return O});var j=e("VTBJ");function O(oe,fe){var T=Object(j.a)({},oe);return Array.isArray(fe)&&fe.forEach(function(n){delete T[n]}),T}},biw7:function(Me,U,e){"use strict";var j=e("q1tI"),O=e.n(j),oe=j.createContext(null);U.a=oe},fj85:function(Me,U,e){"use strict";e.d(U,"a",function(){return n}),e.d(U,"b",function(){return se});var j=e("q1tI"),O=e.n(j),oe=e("ZW5e"),fe=e.n(oe),T=function(L){var F=L.title,y=L.style,l=y===void 0?{}:y;return O.a.createElement("div",{className:fe.a.panelTitleContainer,style:l},O.a.createElement("div",null,F))},n=T,de=e("PsNh"),W=e.n(de),m=function(L){var F=L.title,y=L.children;return O.a.createElement("div",{className:W.a.selectWrapContainer},O.a.createElement("span",null,F),y)},se=m},fyJ8:function(Me,U,e){"use strict";var j=e("rePB"),O=e("VTBJ"),oe=e("Ff2n"),fe=e("U8pU"),T=e("q1tI"),n=e.n(T),de=e("TSYQ"),W=e.n(de),m=e("c+Xe"),se=e("sR1s");function v(r){return r&&Object(fe.a)(r)==="object"&&!Array.isArray(r)&&!T.isValidElement(r)}function L(r){return typeof r=="string"?!0:Object(m.c)(r)}function F(r,_){var p,g=r.prefixCls,P=r.className,u=r.record,N=r.index,s=r.dataIndex,C=r.render,h=r.children,a=r.component,o=a===void 0?"td":a,t=r.colSpan,d=r.rowSpan,c=r.fixLeft,E=r.fixRight,G=r.firstFixLeft,x=r.lastFixLeft,w=r.firstFixRight,Y=r.lastFixRight,pe=r.appendNode,Pe=r.additionalProps,ee=Pe===void 0?{}:Pe,R=r.ellipsis,ue=r.align,ve=r.rowType,re=r.isSticky,ge="".concat(g,"-cell"),z,K;if(h)K=h;else{var f=Object(se.b)(u,s);if(K=f,C){var I=C(f,u,N);v(I)?(K=I.children,z=I.props):K=I}}Object(fe.a)(K)==="object"&&!Array.isArray(K)&&!T.isValidElement(K)&&(K=null),R&&(x||w)&&(K=T.createElement("span",{className:"".concat(ge,"-content")},K));var b=z||{},Q=b.colSpan,V=b.rowSpan,le=b.style,J=b.className,Z=Object(oe.a)(b,["colSpan","rowSpan","style","className"]),he=Q!==void 0?Q:t,Te=V!==void 0?V:d;if(he===0||Te===0)return null;var je={},De=typeof c=="number",Je=typeof E=="number";De&&(je.position="sticky",je.left=c),Je&&(je.position="sticky",je.right=E);var Ae={};ue&&(Ae.textAlign=ue);var Ce,ye=R===!0?{showTitle:!0}:R;ye&&(ye.showTitle||ve==="header")&&(typeof K=="string"||typeof K=="number"?Ce=K.toString():T.isValidElement(K)&&typeof K.props.children=="string"&&(Ce=K.props.children));var Qe=Object(O.a)(Object(O.a)(Object(O.a)({title:Ce},Z),ee),{},{colSpan:he&&he!==1?he:null,rowSpan:Te&&Te!==1?Te:null,className:W()(ge,P,(p={},Object(j.a)(p,"".concat(ge,"-fix-left"),De),Object(j.a)(p,"".concat(ge,"-fix-left-first"),G),Object(j.a)(p,"".concat(ge,"-fix-left-last"),x),Object(j.a)(p,"".concat(ge,"-fix-right"),Je),Object(j.a)(p,"".concat(ge,"-fix-right-first"),w),Object(j.a)(p,"".concat(ge,"-fix-right-last"),Y),Object(j.a)(p,"".concat(ge,"-ellipsis"),R),Object(j.a)(p,"".concat(ge,"-with-append"),pe),Object(j.a)(p,"".concat(ge,"-fix-sticky"),(De||Je)&&re),p),ee.className,J),style:Object(O.a)(Object(O.a)(Object(O.a)(Object(O.a)({},ee.style),Ae),je),le),ref:L(o)?_:null});return T.createElement(o,Object.assign({},Qe),pe,K)}var y=T.forwardRef(F);y.displayName="Cell";var l=T.memo(y,function(r,_){return _.shouldCellUpdate?!_.shouldCellUpdate(_.record,r.record):!1});U.a=l},hW8S:function(Me,U,e){"use strict";e.d(U,"a",function(){return fe}),e.d(U,"c",function(){return T}),e.d(U,"b",function(){return n});var j=e("VTBJ"),O=e("Ff2n"),oe=e("Kwbf"),fe="RC_TABLE_INTERNAL_COL_DEFINE";function T(de){var W=de.expandable,m=Object(O.a)(de,["expandable"]);return"expandable"in de?Object(j.a)(Object(j.a)({},m),W):m}function n(de){return Object.keys(de).reduce(function(W,m){return(m.substr(0,5)==="data-"||m.substr(0,5)==="aria-")&&(W[m]=de[m]),W},{})}},mMz9:function(Me,U,e){"use strict";e.r(U);var j=e("g9YV"),O=e("wCAj"),oe=e("DYRE"),fe=e("zeV3"),T=e("+L6B"),n=e("2/Rp"),de=e("OaEy"),W=e("2fM7"),m=e("5NDa"),se=e("5rEg"),v=e("miYZ"),L=e("tsqr"),F=e("2qtc"),y=e("kLXV"),l=e("k1fw"),r=e("9og8"),_=e("y8nQ"),p=e("Vl3Y"),g=e("tJVT"),P=e("WmNS"),u=e.n(P),N=e("q1tI"),s=e.n(N),C=e("/g4j"),h=e.n(C),a=e("Ty5D"),o=e("9kvl"),t=e("ErOA"),d=e("LvDl"),c=e("sBkp"),E=e.n(c),G=function(R){var ue=R.visible,ve=R.onOk,re=R.onCancel,ge=R.title,z=ge===void 0?"\u9009\u62E9\u8BA4\u8BC1\u56E2\u961F\u6559\u5E08":ge,K=R.selectIds,f=R.teacher,I=R.ec_year_id,b=R.schoolId,Q={page:1,per_page:20,total:0,name:"",save_name:"",tel:"",save_tel:""},V=Object(N.useState)(Object(l.a)({},Q)),le=Object(g.a)(V,2),J=le[0],Z=le[1],he=Object(N.useState)([]),Te=Object(g.a)(he,2),je=Te[0],De=Te[1],Je=Object(N.useState)([]),Ae=Object(g.a)(Je,2),Ce=Ae[0],ye=Ae[1],Qe=Object(N.useState)(!1),Xe=Object(g.a)(Qe,2),qe=Xe[0],at=Xe[1],Ve=Object(N.useState)(!1),ct=Object(g.a)(Ve,2),i=ct[0],M=ct[1];Object(N.useEffect)(function(){ue?(S(Q),De(K)):(De([]),at(!1),Z(Q))},[ue]);var S=function(){var D=Object(r.a)(u.a.mark(function B(H){var ne,ce;return u.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ne=Object(d.cloneDeep)(H),ne.school_id=b,M(!0),xe.next=5,Object(t.a)("/api/ec_years/".concat(I,"/ec_courses/").concat(f?"search_course_teachers":"search_work_teachers",".json"),{method:"get",params:ne});case 5:ce=xe.sent,ce!=null&&ce.data&&(J.total=ce==null?void 0:ce.count,J.save_name=J.save_name,J.save_tel=J.tel,Z(Object(l.a)({},J)),ye((ce==null?void 0:ce.data)||[])),M(!1);case 8:case"end":return xe.stop()}},B)}));return function(H){return D.apply(this,arguments)}}(),$=function(){at(!0),ve(je,function(){at(!1)})},te=function(){re()},X={selectedRowKeys:je,columnWidth:95,onChange:function(B){return De(B)}},k=function(B,H,ne){J.page=B==null?void 0:B.current,J.per_page=B==null?void 0:B.pageSize,Z(Object(l.a)({},J)),S(J)},A=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u624B\u673A\u53F7\u7801",dataIndex:"tel",render:function(B){if(!B)return"";var H=/^(\d{3})\d{4}(\d{4})$/,ne=B==null?void 0:B.replace(H,"$1****$2");return s.a.createElement("span",null,ne)}},{title:"\u804C\u79F0",dataIndex:"pro"},{title:"\u804C\u52A1",dataIndex:"job"},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department"}];return s.a.createElement(y.a,{title:z,visible:ue,onOk:$,centered:!0,wrapClassName:E.a.customModal,onCancel:te,confirmLoading:qe,width:"800px",okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88"},s.a.createElement(fe.a,{size:20,className:"ml40 mb10"},s.a.createElement(se.a.Search,{style:{width:343,height:38},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",value:J==null?void 0:J.save_name,onChange:function(B){J.save_name=B.target.value,Z(Object(l.a)({},J))},onSearch:function(){J.page=1,J.name=J.save_name,Z(Object(l.a)({},J)),S(J)}})),s.a.createElement(O.a,{rowSelection:X,className:E.a.customTable,dataSource:Ce,bordered:!1,rowKey:"id",scroll:Ce.length>7?{y:400}:{},columns:A,loading:i,onChange:k,pagination:{pageSize:J.per_page,total:J.total,current:J.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"],showTotal:function(B){return s.a.createElement("span",{className:"mr10"},"\u5171",s.a.createElement("span",{className:"c-orange"},B),"\u6761\u6570\u636E")}}}))},x=G,w=e("fj85"),Y=e("g+eg"),pe=function(R){var ue,ve,re=R.user,ge={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null},z=Object(N.useState)(ge),K=Object(g.a)(z,2),f=K[0],I=K[1],b=Object(N.useState)(!0),Q=Object(g.a)(b,2),V=Q[0],le=Q[1],J=Object(N.useState)(!1),Z=Object(g.a)(J,2),he=Z[0],Te=Z[1],je=Object(N.useState)(!1),De=Object(g.a)(je,2),Je=De[0],Ae=De[1],Ce=Object(N.useState)(!1),ye=Object(g.a)(Ce,2),Qe=ye[0],Xe=ye[1],qe=Object(N.useState)([]),at=Object(g.a)(qe,2),Ve=at[0],ct=at[1],i=Object(N.useState)([]),M=Object(g.a)(i,2),S=M[0],$=M[1],te=Object(N.useState)([]),X=Object(g.a)(te,2),k=X[0],A=X[1],D=Object(N.useState)([]),B=Object(g.a)(D,2),H=B[0],ne=B[1],ce=Object(N.useState)([]),me=Object(g.a)(ce,2),xe=me[0],ke=me[1],we=Object(N.useState)(!1),ze=Object(g.a)(we,2),Oe=ze[0],dt=ze[1],$e=Object(N.useState)(!1),Be=Object(g.a)($e,2),Ge=Be[0],ot=Be[1],Ke=p.a.useForm(),ut=Object(g.a)(Ke,1),Ye=ut[0],We=Object(a.h)();Object(N.useEffect)(function(){var Ee;re!=null&&(Ee=re.userInfo)!==null&&Ee!==void 0&&Ee.school_id&&(Se(),st())},[re==null||((ue=re.userInfo)===null||ue===void 0)?void 0:ue.school_id]);var Le=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){var ae,be,_e;return u.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return be=Object(d.cloneDeep)(ie),Y.a.setItem(re==null||((ae=re.userInfo)===null||ae===void 0)?void 0:ae.login,[be==null?void 0:be.ec_major_school_id,be==null?void 0:be.ec_year_id]),le(!0),Ne.next=5,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses.json"),{method:"get",params:be});case 5:_e=Ne.sent,_e!=null&&_e.ec_courses&&(A((_e==null?void 0:_e.ec_courses)||[]),f.total=_e==null?void 0:_e.count,I(Object(l.a)({},f))),le(!1);case 8:case"end":return Ne.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),Se=function(){var Ee=Object(r.a)(u.a.mark(function q(){var ie,ae,be,_e,Re,Ne,He,et,rt,mt,nt,_t,yt,pt;return u.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,Object(t.a)("/api/schools/".concat(re==null||((ie=re.userInfo)===null||ie===void 0)?void 0:ie.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(nt=ht.sent,nt!=null&&(ae=nt.data)!==null&&ae!==void 0&&(be=ae[0])!==null&&be!==void 0&&be.ec_major_school_id){ht.next=7;break}return le(!1),Te(!0),ht.abrupt("return");case 7:return _t=Y.a.getItem(re==null||((_e=re.userInfo)===null||_e===void 0)?void 0:_e.login),yt=Number(We==null||((Re=We.query)===null||Re===void 0)?void 0:Re.ec_major_school_id)||_t[0]||(nt==null||((Ne=nt.data)===null||Ne===void 0||((He=Ne[0])===null||He===void 0))?void 0:He.ec_major_school_id),ht.next=11,Object(t.a)("/api/ec_major_schools/".concat(yt,"/ec_years/get_year_list.json"),{method:"get"});case 11:pt=ht.sent,f.ec_major_school_id=yt,f.ec_year_id=Number(We==null||((et=We.query)===null||et===void 0)?void 0:et.ec_year_id)||_t[1]||(pt==null||((rt=pt.data)===null||rt===void 0||((mt=rt[0])===null||mt===void 0))?void 0:mt.ec_year_id),ct((nt==null?void 0:nt.data)||[]),$((pt==null?void 0:pt.data)||[]),I(f),Le(f);case 18:case"end":return ht.stop()}},q)}));return function(){return Ee.apply(this,arguments)}}(),Ze=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){var ae,be,_e;return u.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,Object(t.a)("/api/ec_major_schools/".concat(ie,"/ec_years/get_year_list.json"),{method:"get"});case 2:_e=Ne.sent,f.ec_major_school_id=ie,f.ec_year_id=_e==null||((ae=_e.data)===null||ae===void 0||((be=ae[0])===null||be===void 0))?void 0:be.ec_year_id,$((_e==null?void 0:_e.data)||[]),I(f),Le(f);case 8:case"end":return Ne.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),st=function(){var Ee=Object(r.a)(u.a.mark(function q(){var ie;return u.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(t.a)("/api/ec_years/1/ec_courses/course_type_list.json",{method:"get"});case 2:ie=be.sent,ie!=null&&ie.list&&ne(ie.list||[]);case 4:case"end":return be.stop()}},q)}));return function(){return Ee.apply(this,arguments)}}(),it=function(q,ie){if(f.page=1,f[ie]=q,ie==="ec_major_school_id"){Ze(q);return}ie==="ec_year_id"&&(I(Object(l.a)({},f)),Le(f))},Fe=function(q){y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var ie=Object(r.a)(u.a.mark(function be(){var _e,Re;return u.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses/").concat(q,".json"),{method:"delete"});case 2:_e=He.sent,(_e==null?void 0:_e.status)===0&&(Re=k.length===1&&f.page>1?f.page-1:f.page,f.page=Re,I(Object(l.a)({},f)),Le(f));case 4:case"end":return He.stop()}},be)}));function ae(){return ie.apply(this,arguments)}return ae}()})},Nt=function(q,ie,ae){y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var be=Object(r.a)(u.a.mark(function Re(){var Ne;return u.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(t.a)("/api/ec_years/1/ec_courses/".concat(ie?"delete_course_teacher":"delete_work_teacher",".json"),{method:"delete",body:{id:q,ec_course_id:ae==null?void 0:ae.id}});case 2:Ne=et.sent,(Ne==null?void 0:Ne.status)===0&&Le(f);case 4:case"end":return et.stop()}},Re)}));function _e(){return be.apply(this,arguments)}return _e}()})},St=function(q,ie,ae){if(f.page=q==null?void 0:q.current,f.per_page=q==null?void 0:q.pageSize,ae!=null&&ae.order?(f.sort_by=ae==null?void 0:ae.field,f.direction=(ae==null?void 0:ae.order)==="ascend"?"asc":"desc"):(f.sort_by=null,f.direction=null),I(Object(l.a)({},f)),gt)return;Le(f)},Tt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(q,ie,ae){return s.a.createElement("span",{className:"pl20"},f.per_page*(f.page-1)+ae+1)}},{title:"\u8BFE\u7A0B\u540D\u79F0",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(q){return q||"-"}},{title:"\u8BFE\u7A0B\u7C7B\u578B",dataIndex:"course_type",ellipsis:!0,width:120,sorter:!0,render:function(q){return q||"-"}},{title:"\u6388\u8BFE\u6559\u5E08",dataIndex:"course_teachers",align:"right",width:300,render:function(q,ie){return s.a.createElement("span",{className:h.a.tagWrap},q==null?void 0:q.map(function(ae){return s.a.createElement("div",{className:h.a.tag,key:ae.id},s.a.createElement("span",{title:ae.name},ae.name),s.a.createElement("span",{onClick:function(_e){_e.preventDefault(),Nt(ae.id,!0,ie)}},s.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),s.a.createElement("span",{onClick:function(){return Et(q,!0,ie)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:s.a.createElement("div",{className:"mr20"},"\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08"),dataIndex:"work_teachers",width:300,align:"right",render:function(q,ie){return s.a.createElement("span",{style:{marginRight:20},className:h.a.tagWrap},q==null?void 0:q.map(function(ae){return s.a.createElement("div",{className:h.a.tag,key:ae.id},s.a.createElement("span",{title:ae.name},ae.name),s.a.createElement("span",{onClick:function(_e){_e.preventDefault(),Nt(ae.id,!1,ie)}},s.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),s.a.createElement("span",{onClick:function(){return Et(q,!1,ie)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:"\u64CD\u4F5C",width:110,dataIndex:"action",render:function(q,ie){return s.a.createElement("span",{style:{display:"inline-block",transform:"translateY(1px)"}},s.a.createElement("i",{onClick:function(){return bt(ie)},className:"iconfont icon-bianji7 c-gcrz-primary mr15 current"}),s.a.createElement("i",{onClick:function(){return Fe(ie.id)},className:"iconfont icon-piliangshanchubeifen mr15 c-gcrz-primary current"}),s.a.createElement("i",{onClick:function(){return o.d.push("/engineering/cursesetting?course=".concat(ie.id,"&ec_major_school_id=").concat(f==null?void 0:f.ec_major_school_id,"&ec_year_id=").concat(f==null?void 0:f.ec_year_id))},className:"iconfont icon-anquanshezhi c-gcrz-primary current"}))}}],bt=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){return u.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:ot(ie.id),Ye.setFieldsValue({name:ie.name,course_type:ie.course_type});case 2:case"end":return be.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),Et=function(){var Ee=Object(r.a)(u.a.mark(function q(ie,ae,be){return u.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:ke(ie.map(function(Ne){return Ne.id})||[]),dt(ae),Xe(be.id);case 3:case"end":return Re.stop()}},q)}));return function(ie,ae,be){return Ee.apply(this,arguments)}}(),jt=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){var ae,be;return u.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Ae(!0),!(Ge===!0)){Re.next=7;break}return Re.next=4,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses.json"),{method:"post",body:Object(l.a)({},ie)});case 4:be=Re.sent,Re.next=10;break;case 7:return Re.next=9,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses/").concat(Ge,".json"),{method:"put",body:Object(l.a)({},ie)});case 9:be=Re.sent;case 10:((ae=be)===null||ae===void 0?void 0:ae.status)===0&&(Le(f),ot(!1)),Ye.resetFields(),Ae(!1);case 13:case"end":return Re.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),xt=function(){ot(!1),Ye.resetFields()},Mt=function(){var Ee=Object(r.a)(u.a.mark(function q(ie,ae){var be;return u.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!(ie.length===0)){Re.next=4;break}return L.b.warn("\u8BF7\u9009\u62E9\u6559\u5E08"),ae(),Re.abrupt("return");case 4:if(!(ie.length>2)){Re.next=8;break}return L.b.warn("\u6700\u591A\u9009\u62E9\u4E24\u540D\u6559\u5E08"),ae(),Re.abrupt("return");case 8:return Re.next=10,Object(t.a)("/api/ec_years/1/ec_courses/".concat(Oe?"add_course_teachers":"add_work_teachers",".json"),{method:"post",body:{ids:ie,ec_course_id:Qe}});case 10:be=Re.sent,(be==null?void 0:be.status)===0&&(Le(f),Xe(!1)),ae();case 13:case"end":return Re.stop()}},q)}));return function(ie,ae){return Ee.apply(this,arguments)}}(),ft=function(){return s.a.createElement("div",null,s.a.createElement(p.a,{colon:!1,form:Ye,onFinish:jt,className:h.a.form,labelCol:{span:4},wrapperCol:{span:19}},s.a.createElement(p.a.Item,{label:"\u8BFE\u7A0B\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{max:60,message:"\u6700\u591A\u8F93\u516560\u4E2A\u5B57"}]},s.a.createElement(se.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"})),s.a.createElement(p.a.Item,{label:"\u8BFE\u7A0B\u7C7B\u578B",name:"course_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"}]},s.a.createElement(W.a,{style:{width:358},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"},H==null?void 0:H.map(function(q){return s.a.createElement(W.a.Option,{value:q},q)})))),s.a.createElement(fe.a,{size:10,className:h.a.button,style:{margin:"26px 40px 20px 0",float:"right"}},s.a.createElement(n.a,{onClick:xt},"\u53D6\u6D88"),s.a.createElement(n.a,{type:"primary",loading:Je,onClick:function(){Ye.submit()}},"\u4FDD\u5B58")),s.a.createElement("div",{style:{clear:"both"}}))},gt=V||he;return s.a.createElement("div",{className:h.a.wrap},s.a.createElement(w.a,{title:"\u8BFE\u7A0B\u5217\u8868",style:{padding:"12px 0 0 20px"}}),s.a.createElement("div",{className:h.a.control},s.a.createElement("div",{className:h.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),s.a.createElement(W.a,{disabled:gt,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:f==null?void 0:f.ec_major_school_id,onChange:function(q){return it(q,"ec_major_school_id")}},Ve==null?void 0:Ve.map(function(Ee){return s.a.createElement(W.a.Option,{value:Ee.ec_major_school_id},Ee.name)})),s.a.createElement("div",{className:h.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),s.a.createElement(W.a,{disabled:gt,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:f==null?void 0:f.ec_year_id,onChange:function(q){return it(q,"ec_year_id")}},S==null?void 0:S.map(function(Ee){return s.a.createElement(W.a.Option,{value:Ee.ec_year_id},Ee.year)})),s.a.createElement(fe.a,{className:h.a.button,size:10},s.a.createElement(n.a,{disabled:gt,style:{transition:"0s"},onClick:function(){ot(!0)},type:"primary"},s.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u8BFE\u7A0B"))),s.a.createElement(O.a,{className:h.a.customTable,dataSource:k,bordered:!1,rowKey:"id",columns:Tt,rowClassName:h.a.row,loading:V,onChange:St,pagination:{pageSize:f.per_page,total:f.total,current:f.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(q){return s.a.createElement("span",{className:"mr10"},"\u5171",s.a.createElement("span",{className:"c-orange"},q),"\u6761\u6570\u636E")}}}),s.a.createElement(y.a,{title:Ge===!0?"\u65B0\u589E\u8BFE\u7A0B":"\u7F16\u8F91\u8BFE\u7A0B",visible:!!Ge,centered:!0,onCancel:xt,className:h.a.customModal,width:"740px",footer:null},ft()),s.a.createElement(x,{visible:!!Qe,onCancel:function(){return Xe(!1)},onOk:Mt,selectIds:xe,teacher:Oe,ec_year_id:f==null?void 0:f.ec_year_id,title:Oe?"\u9009\u62E9\u6388\u8BFE\u6559\u5E08":"\u9009\u62E9\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08",schoolId:re==null||((ve=re.userInfo)===null||ve===void 0)?void 0:ve.school_id}))},Pe=U.default=Object(o.a)(function(ee){var R=ee.user;return{user:R}})(pe)},n6Qo:function(Me,U,e){"use strict";e.d(U,"a",function(){return W});var j=e("q1tI"),O=e("biw7"),oe=e("fyJ8");function fe(m){var se=m.className,v=m.index,L=m.children,F=m.colSpan,y=m.rowSpan,l=j.useContext(O.a),r=l.prefixCls,_=l.fixedInfoList,p=_[v];return j.createElement(oe.a,Object.assign({className:se,index:v,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:L,props:{colSpan:F,rowSpan:y}}}},p))}function T(m){return j.createElement("tr",Object.assign({},m))}function n(m){var se=m.children,v=j.useContext(O.a),L=v.prefixCls;return j.createElement("tfoot",{className:"".concat(L,"-summary")},se)}var de=U.b=n,W={Cell:fe,Row:T}},sBkp:function(Me,U,e){Me.exports={flex_box_center:"flex_box_center___2ei3K",flex_space_between:"flex_space_between___3lPdu",flex_box_vertical_center:"flex_box_vertical_center___16QaQ",flex_box_center_end:"flex_box_center_end___30Z_i",flex_box_column:"flex_box_column___2a4ue",customModal:"customModal___2B4GK",customTable:"customTable___1U6wo"}},sR1s:function(Me,U,e){"use strict";e.d(U,"b",function(){return fe}),e.d(U,"a",function(){return T}),e.d(U,"c",function(){return n}),e.d(U,"d",function(){return de});var j=e("U8pU"),O="RC_TABLE_KEY";function oe(W){return W==null?[]:Array.isArray(W)?W:[W]}function fe(W,m){if(!m&&typeof m!="number")return W;for(var se=oe(m),v=W,L=0;L1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(P.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var u=P[0];if(n.isValidElement(u)&&Object(v.c)(u)){var N=u.ref;P[0]=n.cloneElement(u,{ref:Object(v.a)(N,this.setChildNode)})}return P.length===1?P[0]:P.map(function(s,C){return!n.isValidElement(s)||"key"in s&&s.key!==null?s:n.cloneElement(s,{key:"".concat(F,"-").concat(C)})})}}]),_}(n.Component);y.displayName="ResizeObserver",U.a=y},wCXF:function(Me,U,e){"use strict";e.d(U,"a",function(){return qe});var j=e("rePB"),O=e("VTBJ"),oe=e("KQm4"),fe=e("U8pU"),T=e("ODXe"),n=e("q1tI"),de=e("TSYQ"),W=e.n(de),m=e("Gytx"),se=e.n(m),v=e("Kwbf"),L=e("t23M"),F=e("qx4F"),y=e("6eGT"),l=e("IBYe"),r=e("Ff2n"),_=e("c+Xe"),p=e("fyJ8"),g=e("biw7");function P(i,M,S,$,te){var X=S[i]||{},k=S[M]||{},A,D;X.fixed==="left"?A=$.left[i]:k.fixed==="right"&&(D=$.right[M]);var B=!1,H=!1,ne=!1,ce=!1,me=S[M+1],xe=S[i-1];if(te==="rtl"){if(A!==void 0){var ke=xe&&xe.fixed==="left";ce=!ke}else if(D!==void 0){var we=me&&me.fixed==="right";ne=!we}}else if(A!==void 0){var ze=me&&me.fixed==="left";B=!ze}else if(D!==void 0){var Oe=xe&&xe.fixed==="right";H=!Oe}return{fixLeft:A,fixRight:D,lastFixLeft:B,firstFixRight:H,lastFixRight:ne,firstFixLeft:ce,isSticky:$.isSticky}}var u=e("sR1s");function N(i){var M=i.cells,S=i.stickyOffsets,$=i.flattenColumns,te=i.rowComponent,X=i.cellComponent,k=i.onHeaderRow,A=i.index,D=n.useContext(g.a),B=D.prefixCls,H=D.direction,ne;k&&(ne=k(M.map(function(me){return me.column}),A));var ce=Object(u.a)(M.map(function(me){return me.column}));return n.createElement(te,Object.assign({},ne),M.map(function(me,xe){var ke=me.column,we=P(me.colStart,me.colEnd,$,S,H),ze;return ke&&ke.onHeaderCell&&(ze=me.column.onHeaderCell(ke)),n.createElement(p.a,Object.assign({},me,{ellipsis:ke.ellipsis,align:ke.align,component:X,prefixCls:B,key:ce[xe]},we,{additionalProps:ze,rowType:"header"}))}))}N.displayName="HeaderRow";var s=N;function C(i){var M=[];function S(k,A){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;M[D]=M[D]||[];var B=A,H=k.filter(Boolean).map(function(ne){var ce={key:ne.key,className:ne.className||"",children:ne.title,column:ne,colStart:B},me=1,xe=ne.children;return xe&&xe.length>0&&(me=S(xe,B,D+1).reduce(function(ke,we){return ke+we},0),ce.hasSubColumns=!0),"colSpan"in ne&&(me=ne.colSpan),"rowSpan"in ne&&(ce.rowSpan=ne.rowSpan),ce.colSpan=me,ce.colEnd=ce.colStart+me-1,M[D].push(ce),B+=me,me});return H}S(i,0);for(var $=M.length,te=function(A){M[A].forEach(function(D){!("rowSpan"in D)&&!D.hasSubColumns&&(D.rowSpan=$-A)})},X=0;X<$;X+=1)te(X);return M}function h(i){var M=i.stickyOffsets,S=i.columns,$=i.flattenColumns,te=i.onHeaderRow,X=n.useContext(g.a),k=X.prefixCls,A=X.getComponent,D=n.useMemo(function(){return C(S)},[S]),B=A(["header","wrapper"],"thead"),H=A(["header","row"],"tr"),ne=A(["header","cell"],"th");return n.createElement(B,{className:"".concat(k,"-thead")},D.map(function(ce,me){var xe=n.createElement(s,{key:me,flattenColumns:$,cells:ce,stickyOffsets:M,rowComponent:H,cellComponent:ne,onHeaderRow:te,index:me});return xe}))}var a=h,o=e("hW8S");function t(i){for(var M=i.colWidths,S=i.columns,$=i.columCount,te=[],X=$||S.length,k=!1,A=X-1;A>=0;A-=1){var D=M[A],B=S&&S[A],H=B&&B[o.a];(D||H||k)&&(te.unshift(n.createElement("col",Object.assign({key:A,style:{width:D,minWidth:D}},H))),k=!0)}return n.createElement("colgroup",null,te)}var d=t;function c(i,M){return Object(n.useMemo)(function(){for(var S=[],$=0;$1?rt-1:0),nt=1;nt=ne&&(Fe=ne-ce),k({scrollLeft:Fe/ne*(H+2)}),Oe.current.x=Se.pageX},Ye=function(){var Se=Object(Je.b)(X.current).top,Ze=Se+X.current.offsetHeight,st=document.documentElement.scrollTop+window.innerHeight;Ze-Object(F.a)()<=st||Se>=st-A?ze(function(it){return Object(O.a)(Object(O.a)({},it),{},{isHiddenScrollBar:!0})}):ze(function(it){return Object(O.a)(Object(O.a)({},it),{},{isHiddenScrollBar:!1})})},We=function(Se){ze(function(Ze){return Object(O.a)(Object(O.a)({},Ze),{},{scrollLeft:Se/H*ne||0})})};return n.useImperativeHandle(S,function(){return{setScrollLeft:We}}),n.useEffect(function(){var Le=Object(De.a)(document.body,"mouseup",ot,!1),Se=Object(De.a)(document.body,"mousemove",ut,!1);return Ye(),function(){Le.remove(),Se.remove()}},[ce,Be]),n.useEffect(function(){var Le=Object(De.a)(window,"scroll",Ye,!1),Se=Object(De.a)(window,"resize",Ye,!1);return function(){Le.remove(),Se.remove()}},[]),n.useEffect(function(){we.isHiddenScrollBar||ze(function(Le){var Se,Ze;return Object(O.a)(Object(O.a)({},Le),{},{scrollLeft:X.current.scrollLeft/((Se=X.current)===null||Se===void 0?void 0:Se.scrollWidth)*((Ze=X.current)===null||Ze===void 0?void 0:Ze.clientWidth)})})},[we.isHiddenScrollBar]),H<=ne||!ce||we.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(F.a)(),width:ne,bottom:A},className:"".concat(B,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ke,ref:me,className:W()("".concat(B,"-sticky-scroll-bar"),Object(j.a)({},"".concat(B,"-sticky-scroll-bar-active"),Be)),style:{width:"".concat(ce,"px"),transform:"translate3d(".concat(we.scrollLeft,"px, 0, 0)")}}))},Ce=n.forwardRef(Ae);function ye(i,M){return n.useMemo(function(){var S=!!i;return{isSticky:S,stickyClassName:S?"".concat(M,"-sticky-header"):"",offsetHeader:Object(fe.a)(i)==="object"&&i.offsetHeader||0,offsetScroll:Object(fe.a)(i)==="object"&&i.offsetScroll||0}},[i,M])}var Qe=[],Xe={},qe="rc-table-internal-hook",at=n.memo(function(i){var M=i.children;return M},function(i,M){return se()(i.props,M.props)?i.pingLeft!==M.pingLeft||i.pingRight!==M.pingRight:!1});function Ve(i){var M,S=i.prefixCls,$=i.className,te=i.rowClassName,X=i.style,k=i.data,A=i.rowKey,D=i.scroll,B=i.tableLayout,H=i.direction,ne=i.title,ce=i.footer,me=i.summary,xe=i.id,ke=i.showHeader,we=i.components,ze=i.emptyText,Oe=i.onRow,dt=i.onHeaderRow,$e=i.internalHooks,Be=i.transformColumns,Ge=i.internalRefs,ot=i.sticky,Ke=k||Qe,ut=!!Ke.length,Ye=n.useState(0),We=Object(T.a)(Ye,2),Le=We[0],Se=We[1];n.useEffect(function(){Se(Object(F.a)())});var Ze=n.useMemo(function(){return Object(u.c)(we,{})},[we]),st=n.useCallback(function(Ue,Ie){return Object(u.b)(Ze,Ue)||Ie},[Ze]),it=n.useMemo(function(){return typeof A=="function"?A:function(Ue){var Ie=Ue&&Ue[A];return Ie}},[A]),Fe=Object(o.c)(i),Nt=Fe.expandIcon,St=Fe.expandedRowKeys,Tt=Fe.defaultExpandedRowKeys,bt=Fe.defaultExpandAllRows,Et=Fe.expandedRowRender,jt=Fe.onExpand,xt=Fe.onExpandedRowsChange,Mt=Fe.expandRowByClick,ft=Fe.rowExpandable,gt=Fe.expandIconColumnIndex,Ee=Fe.expandedRowClassName,q=Fe.childrenColumnName,ie=Fe.indentSize,ae=Nt||Te,be=q||"children",_e=n.useMemo(function(){return Et?"row":i.expandable&&$e===qe&&i.expandable.__PARENT_RENDER_ICON__||Ke.some(function(Ue){return Ue&&Object(fe.a)(Ue)==="object"&&Ue[be]})?"nest":!1},[!!Et,Ke]),Re=n.useState(function(){return Tt||(bt?je(Ke,it,be):[])}),Ne=Object(T.a)(Re,2),He=Ne[0],et=Ne[1],rt=n.useMemo(function(){return new Set(St||He||[])},[St,He]),mt=n.useCallback(function(Ue){var Ie=it(Ue,Ke.indexOf(Ue)),lt,vt=rt.has(Ie);vt?(rt.delete(Ie),lt=Object(oe.a)(rt)):lt=[].concat(Object(oe.a)(rt),[Ie]),et(lt),jt&&jt(!vt,Ue),xt&&xt(lt)},[it,rt,Ke,jt,xt]),nt=n.useState(0),_t=Object(T.a)(nt,2),yt=_t[0],pt=_t[1],Qt=Object(K.b)(Object(O.a)(Object(O.a)(Object(O.a)({},i),Fe),{},{expandable:!!Et,expandedKeys:rt,getRowKey:it,onTriggerExpand:mt,expandIcon:ae,expandIconColumnIndex:gt,direction:H}),$e===qe?Be:null),ht=Object(T.a)(Qt,2),kt=ht[0],tt=ht[1],wt=n.useMemo(function(){return{columns:kt,flattenColumns:tt}},[kt,tt]),Wt=n.useRef(),Zt=n.useRef(),Rt=n.useRef(),bn=n.useState(!1),qt=Object(T.a)(bn,2),en=qt[0],En=qt[1],gn=n.useState(!1),tn=Object(T.a)(gn,2),nn=tn[0],Cn=tn[1],xn=b(new Map),an=Object(T.a)(xn,2),yn=an[0],On=an[1],jn=Object(u.a)(tt),on=jn.map(function(Ue){return yn.get(Ue)}),rn=n.useMemo(function(){return on},[on.join("_")]),Ut=le(rn,tt.length,H),Ct=D&&Object(u.d)(D.y),Ot=D&&Object(u.d)(D.x),Dt=Ot&&tt.some(function(Ue){var Ie=Ue.fixed;return Ie}),ln=n.useRef(),It=ye(ot,S),Lt=It.isSticky,_n=It.offsetHeader,Rn=It.offsetScroll,Nn=It.stickyClassName,Bt,zt,Ft;Ct&&(zt={overflowY:"scroll",maxHeight:D.y}),Ot&&(Bt={overflowX:"auto"},Ct||(zt={overflowY:"hidden"}),Ft={width:D.x===!0?"auto":D.x,minWidth:"100%"});var sn=n.useCallback(function(Ue,Ie){On(function(lt){var vt=new Map(lt);return vt.set(Ue,Ie),vt})},[]),Sn=Q(null),dn=Object(T.a)(Sn,2),Tn=dn[0],un=dn[1];function Xt(Ue,Ie){if(!Ie)return;typeof Ie=="function"?Ie(Ue):Ie.scrollLeft!==Ue&&(Ie.scrollLeft=Ue)}var Pt=function(Ie){var lt=Ie.currentTarget,vt=Ie.scrollLeft,At=typeof vt=="number"?vt:lt.scrollLeft,vn=lt||Xe;if(!un()||un()===vn){var Jt;Tn(vn),Xt(At,Zt.current),Xt(At,Rt.current),Xt(At,(Jt=ln.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(lt){var Un=lt.scrollWidth,In=lt.clientWidth;En(At>0),Cn(At0?[].concat(Object(O.a)(r),Object(O.a)(v(P).map(function(u){return Object(oe.a)({fixed:g},u)}))):[].concat(Object(O.a)(r),[Object(oe.a)(Object(oe.a)({},_),{},{fixed:g})])},[])}function L(l){for(var r=!0,_=0;_=0;P-=1){var u=l[P];if(g&&u.fixed!=="right")g=!1;else if(!g&&u.fixed==="right"){Object(de.a)(!1,"Index ".concat(P+1," of `columns` missing `fixed='right'` prop."));break}}}function F(l){return l.map(function(r){var _=r.fixed,p=Object(fe.a)(r,["fixed"]),g=_;return _==="left"?g="right":_==="right"&&(g="left"),Object(oe.a)({fixed:g},p)})}function y(l,r){var _=l.prefixCls,p=l.columns,g=l.children,P=l.expandable,u=l.expandedKeys,N=l.getRowKey,s=l.onTriggerExpand,C=l.expandIcon,h=l.rowExpandable,a=l.expandIconColumnIndex,o=l.direction,t=l.expandRowByClick,d=T.useMemo(function(){return p||se(g)},[p,g]),c=T.useMemo(function(){if(P){var x,w=a||0,Y=d[w],pe=(x={},Object(j.a)(x,m.a,{className:"".concat(_,"-expand-icon-col")}),Object(j.a)(x,"title",""),Object(j.a)(x,"fixed",Y?Y.fixed:null),Object(j.a)(x,"className","".concat(_,"-row-expand-icon-cell")),Object(j.a)(x,"render",function(R,ue,ve){var re=N(ue,ve),ge=u.has(re),z=h?h(ue):!0,K=C({prefixCls:_,expanded:ge,expandable:z,record:ue,onExpand:s});return t?T.createElement("span",{onClick:function(I){return I.stopPropagation()}},K):K}),x),Pe=d.slice();return w>=0&&Pe.splice(w,0,pe),Pe}return d},[P,d,N,u,C,o]),E=T.useMemo(function(){var x=c;return r&&(x=r(x)),x.length||(x=[{render:function(){return null}}]),x},[r,c,o]),G=T.useMemo(function(){return o==="rtl"?F(v(E)):v(E)},[E,o]);return[E,G]}U.b=y},"y0+3":function(Me,U,e){"use strict";e.d(U,"a",function(){return v}),e.d(U,"b",function(){return F});var j=/margin|padding|width|height|max|min|offset/,O={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function fe(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function T(y,l,r){if(l=l.toLowerCase(),r==="auto"){if(l==="height")return y.offsetHeight;if(l==="width")return y.offsetWidth}return l in O||(O[l]=j.test(l)),O[l]?parseFloat(r)||0:r}function n(y,l){var r=arguments.length,_=fe(y);return l=oe[l]?"cssFloat"in y.style?"cssFloat":"styleFloat":l,r===1?_:T(y,l,_[l]||y.style[l])}function de(y,l,r){var _=arguments.length;if(l=oe[l]?"cssFloat"in y.style?"cssFloat":"styleFloat":l,_===3)return typeof r=="number"&&j.test(l)&&(r="".concat(r,"px")),y.style[l]=r,r;for(var p in l)l.hasOwnProperty(p)&&de(y,p,l[p]);return fe(y)}function W(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function m(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function se(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),l=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:l}}function v(){var y=document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:l}}function L(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(y){var l=y.getBoundingClientRect(),r=document.documentElement;return{left:l.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:l.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}}}]); +`,G=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],x={},w;function Y(z){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=z.getAttribute("id")||z.getAttribute("data-reactid")||z.getAttribute("name");if(K&&x[f])return x[f];var I=window.getComputedStyle(z),b=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),Q=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),V=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),le=G.map(function(Z){return"".concat(Z,":").concat(I.getPropertyValue(Z))}).join(";"),J={sizingStyle:le,paddingSize:Q,borderSize:V,boxSizing:b};return K&&f&&(x[f]=J),J}function pe(z){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;w||(w=document.createElement("textarea"),w.setAttribute("tab-index","-1"),w.setAttribute("aria-hidden","true"),document.body.appendChild(w)),z.getAttribute("wrap")?w.setAttribute("wrap",z.getAttribute("wrap")):w.removeAttribute("wrap");var b=Y(z,K),Q=b.paddingSize,V=b.borderSize,le=b.boxSizing,J=b.sizingStyle;w.setAttribute("style","".concat(J,";").concat(E)),w.value=z.value||z.placeholder||"";var Z=Number.MIN_SAFE_INTEGER,he=Number.MAX_SAFE_INTEGER,Se=w.scrollHeight,je;if(le==="border-box"?Se+=V:le==="content-box"&&(Se-=Q),f!==null||I!==null){w.value=" ";var De=w.scrollHeight-Q;f!==null&&(Z=De*f,le==="border-box"&&(Z=Z+Q+V),Se=Math.max(Z,Se)),I!==null&&(he=De*I,le==="border-box"&&(he=he+Q+V),je=Se>he?"":"hidden",Se=Math.min(he,Se))}return{height:Se,minHeight:Z,maxHeight:he,overflowY:je,resize:"none"}}var Pe=e("Gytx"),ee=e.n(Pe),R;(function(z){z[z.NONE=0]="NONE",z[z.RESIZING=1]="RESIZING",z[z.RESIZED=2]="RESIZED"})(R||(R={}));var ue=function(z){Object(fe.a)(f,z);var K=Object(S.a)(f);function f(I){var b;return Object(O.a)(this,f),b=K.call(this,I),b.nextFrameActionId=void 0,b.resizeFrameId=void 0,b.textArea=void 0,b.saveTextArea=function(Q){b.textArea=Q},b.handleResize=function(Q){var V=b.state.resizeStatus,le=b.props,J=le.autoSize,Z=le.onResize;if(V!==R.NONE)return;typeof Z=="function"&&Z(Q),J&&b.resizeOnNextFrame()},b.resizeOnNextFrame=function(){cancelAnimationFrame(b.nextFrameActionId),b.nextFrameActionId=requestAnimationFrame(b.resizeTextarea)},b.resizeTextarea=function(){var Q=b.props.autoSize;if(!Q||!b.textArea)return;var V=Q.minRows,le=Q.maxRows,J=pe(b.textArea,!1,V,le);b.setState({textareaStyles:J,resizeStatus:R.RESIZING},function(){cancelAnimationFrame(b.resizeFrameId),b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:R.RESIZED},function(){b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:R.NONE}),b.fixFirefoxAutoScroll()})})})})},b.renderTextArea=function(){var Q=b.props,V=Q.prefixCls,le=V===void 0?"rc-textarea":V,J=Q.autoSize,Z=Q.onResize,he=Q.className,Se=Q.disabled,je=b.state,De=je.textareaStyles,Je=je.resizeStatus,Ae=Object(t.a)(b.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ce=c()(le,he,Object(k.a)({},"".concat(le,"-disabled"),Se));"value"in Ae&&(Ae.value=Ae.value||"");var ye=Object(de.a)(Object(de.a)(Object(de.a)({},b.props.style),De),Je===R.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:b.handleResize,disabled:!(J||Z)},n.createElement("textarea",Object(j.a)({},Ae,{className:Ce,style:ye,ref:b.saveTextArea})))},b.state={textareaStyles:{},resizeStatus:R.NONE},b}return Object(oe.a)(f,[{key:"componentDidUpdate",value:function(b){(b.value!==this.props.value||!ee()(b.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var b=this.textArea.selectionStart,Q=this.textArea.selectionEnd;this.textArea.setSelectionRange(b,Q)}}catch(V){}}},{key:"render",value:function(){return this.renderTextArea()}}]),f}(n.Component),ve=ue,re=function(z){Object(fe.a)(f,z);var K=Object(S.a)(f);function f(I){var b;Object(O.a)(this,f),b=K.call(this,I),b.resizableTextArea=void 0,b.focus=function(){b.resizableTextArea.textArea.focus()},b.saveTextArea=function(V){b.resizableTextArea=V},b.handleChange=function(V){var le=b.props.onChange;b.setValue(V.target.value,function(){b.resizableTextArea.resizeTextarea()}),le&&le(V)},b.handleKeyDown=function(V){var le=b.props,J=le.onPressEnter,Z=le.onKeyDown;V.keyCode===13&&J&&J(V),Z&&Z(V)};var Q=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return b.state={value:Q},b}return Object(oe.a)(f,[{key:"setValue",value:function(b,Q){"value"in this.props||this.setState({value:b},Q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ve,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(b){return"value"in b?{value:b.value}:null}}]),f}(n.Component),ge=U.default=re},ZW5e:function(Me,U,e){Me.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Me,U,e){"use strict";function j(v){return typeof v=="object"&&v!=null&&v.nodeType===1}function O(v,L){return(!L||v!=="hidden")&&v!=="visible"&&v!=="clip"}function oe(v,L){if(v.clientHeightL||r>v&&_=L&&p>=F?r-v-y:_>L&&pF?_-L+l:0}var S=function(v,L){var F=window,y=L.scrollMode,l=L.block,r=L.inline,_=L.boundary,p=L.skipOverflowHiddenElements,g=typeof _=="function"?_:function(De){return De!==_};if(!j(v))throw new TypeError("Invalid target");for(var P=document.scrollingElement||document.documentElement,u=[],N=v;j(N)&&g(N);){if((N=N.parentElement)===P){u.push(N);break}N!=null&&N===document.body&&oe(N)&&!oe(document.documentElement)||N!=null&&oe(N,p)&&u.push(N)}for(var s=F.visualViewport?F.visualViewport.width:innerWidth,C=F.visualViewport?F.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,a=window.scrollY||pageYOffset,o=v.getBoundingClientRect(),t=o.height,d=o.width,c=o.top,E=o.right,G=o.bottom,x=o.left,w=l==="start"||l==="nearest"?c:l==="end"?G:c+t/2,Y=r==="center"?x+d/2:r==="end"?E:x,pe=[],Pe=0;Pe=0&&x>=0&&G<=C&&E<=s&&c>=re&&G<=z&&x>=K&&E<=ge)return pe;var f=getComputedStyle(ee),I=parseInt(f.borderLeftWidth,10),b=parseInt(f.borderTopWidth,10),Q=parseInt(f.borderRightWidth,10),V=parseInt(f.borderBottomWidth,10),le=0,J=0,Z="offsetWidth"in ee?ee.offsetWidth-ee.clientWidth-I-Q:0,he="offsetHeight"in ee?ee.offsetHeight-ee.clientHeight-b-V:0;if(P===ee)le=l==="start"?w:l==="end"?w-C:l==="nearest"?fe(a,a+C,C,b,V,a+w,a+w+t,t):w-C/2,J=r==="start"?Y:r==="center"?Y-s/2:r==="end"?Y-s:fe(h,h+s,s,I,Q,h+Y,h+Y+d,d),le=Math.max(0,le+a),J=Math.max(0,J+h);else{le=l==="start"?w-re-b:l==="end"?w-z+V+he:l==="nearest"?fe(re,z,ue,b,V+he,w,w+t,t):w-(re+ue/2)+he/2,J=r==="start"?Y-K-I:r==="center"?Y-(K+ve/2)+Z/2:r==="end"?Y-ge+Q+Z:fe(K,ge,ve,I,Q+Z,Y,Y+d,d);var Se=ee.scrollLeft,je=ee.scrollTop;w+=je-(le=Math.max(0,Math.min(je+le,ee.scrollHeight-ue+he))),Y+=Se-(J=Math.max(0,Math.min(Se+J,ee.scrollWidth-ve+Z)))}pe.push({el:ee,top:le,left:J})}return pe};function n(v){return v===Object(v)&&Object.keys(v).length!==0}function de(v,L){L===void 0&&(L="auto");var F="scrollBehavior"in document.body.style;v.forEach(function(y){var l=y.el,r=y.top,_=y.left;l.scroll&&F?l.scroll({top:r,left:_,behavior:L}):(l.scrollTop=r,l.scrollLeft=_)})}function k(v){return v===!1?{block:"end",inline:"nearest"}:n(v)?v:{block:"start",inline:"nearest"}}function m(v,L){var F=!v.ownerDocument.documentElement.contains(v);if(n(L)&&typeof L.behavior=="function")return L.behavior(F?[]:S(v,L));if(F)return;var y=k(L);return de(S(v,y),y.behavior)}var se=U.a=m},bT9E:function(Me,U,e){"use strict";e.d(U,"a",function(){return O});var j=e("VTBJ");function O(oe,fe){var S=Object(j.a)({},oe);return Array.isArray(fe)&&fe.forEach(function(n){delete S[n]}),S}},biw7:function(Me,U,e){"use strict";var j=e("q1tI"),O=e.n(j),oe=j.createContext(null);U.a=oe},fj85:function(Me,U,e){"use strict";e.d(U,"a",function(){return n}),e.d(U,"b",function(){return se});var j=e("q1tI"),O=e.n(j),oe=e("ZW5e"),fe=e.n(oe),S=function(L){var F=L.title,y=L.style,l=y===void 0?{}:y;return O.a.createElement("div",{className:fe.a.panelTitleContainer,style:l},O.a.createElement("div",null,F))},n=S,de=e("PsNh"),k=e.n(de),m=function(L){var F=L.title,y=L.children;return O.a.createElement("div",{className:k.a.selectWrapContainer},O.a.createElement("span",null,F),y)},se=m},fyJ8:function(Me,U,e){"use strict";var j=e("rePB"),O=e("VTBJ"),oe=e("Ff2n"),fe=e("U8pU"),S=e("q1tI"),n=e.n(S),de=e("TSYQ"),k=e.n(de),m=e("c+Xe"),se=e("sR1s");function v(r){return r&&Object(fe.a)(r)==="object"&&!Array.isArray(r)&&!S.isValidElement(r)}function L(r){return typeof r=="string"?!0:Object(m.c)(r)}function F(r,_){var p,g=r.prefixCls,P=r.className,u=r.record,N=r.index,s=r.dataIndex,C=r.render,h=r.children,a=r.component,o=a===void 0?"td":a,t=r.colSpan,d=r.rowSpan,c=r.fixLeft,E=r.fixRight,G=r.firstFixLeft,x=r.lastFixLeft,w=r.firstFixRight,Y=r.lastFixRight,pe=r.appendNode,Pe=r.additionalProps,ee=Pe===void 0?{}:Pe,R=r.ellipsis,ue=r.align,ve=r.rowType,re=r.isSticky,ge="".concat(g,"-cell"),z,K;if(h)K=h;else{var f=Object(se.b)(u,s);if(K=f,C){var I=C(f,u,N);v(I)?(K=I.children,z=I.props):K=I}}Object(fe.a)(K)==="object"&&!Array.isArray(K)&&!S.isValidElement(K)&&(K=null),R&&(x||w)&&(K=S.createElement("span",{className:"".concat(ge,"-content")},K));var b=z||{},Q=b.colSpan,V=b.rowSpan,le=b.style,J=b.className,Z=Object(oe.a)(b,["colSpan","rowSpan","style","className"]),he=Q!==void 0?Q:t,Se=V!==void 0?V:d;if(he===0||Se===0)return null;var je={},De=typeof c=="number",Je=typeof E=="number";De&&(je.position="sticky",je.left=c),Je&&(je.position="sticky",je.right=E);var Ae={};ue&&(Ae.textAlign=ue);var Ce,ye=R===!0?{showTitle:!0}:R;ye&&(ye.showTitle||ve==="header")&&(typeof K=="string"||typeof K=="number"?Ce=K.toString():S.isValidElement(K)&&typeof K.props.children=="string"&&(Ce=K.props.children));var Qe=Object(O.a)(Object(O.a)(Object(O.a)({title:Ce},Z),ee),{},{colSpan:he&&he!==1?he:null,rowSpan:Se&&Se!==1?Se:null,className:k()(ge,P,(p={},Object(j.a)(p,"".concat(ge,"-fix-left"),De),Object(j.a)(p,"".concat(ge,"-fix-left-first"),G),Object(j.a)(p,"".concat(ge,"-fix-left-last"),x),Object(j.a)(p,"".concat(ge,"-fix-right"),Je),Object(j.a)(p,"".concat(ge,"-fix-right-first"),w),Object(j.a)(p,"".concat(ge,"-fix-right-last"),Y),Object(j.a)(p,"".concat(ge,"-ellipsis"),R),Object(j.a)(p,"".concat(ge,"-with-append"),pe),Object(j.a)(p,"".concat(ge,"-fix-sticky"),(De||Je)&&re),p),ee.className,J),style:Object(O.a)(Object(O.a)(Object(O.a)(Object(O.a)({},ee.style),Ae),je),le),ref:L(o)?_:null});return S.createElement(o,Object.assign({},Qe),pe,K)}var y=S.forwardRef(F);y.displayName="Cell";var l=S.memo(y,function(r,_){return _.shouldCellUpdate?!_.shouldCellUpdate(_.record,r.record):!1});U.a=l},hW8S:function(Me,U,e){"use strict";e.d(U,"a",function(){return fe}),e.d(U,"c",function(){return S}),e.d(U,"b",function(){return n});var j=e("VTBJ"),O=e("Ff2n"),oe=e("Kwbf"),fe="RC_TABLE_INTERNAL_COL_DEFINE";function S(de){var k=de.expandable,m=Object(O.a)(de,["expandable"]);return"expandable"in de?Object(j.a)(Object(j.a)({},m),k):m}function n(de){return Object.keys(de).reduce(function(k,m){return(m.substr(0,5)==="data-"||m.substr(0,5)==="aria-")&&(k[m]=de[m]),k},{})}},mMz9:function(Me,U,e){"use strict";e.r(U);var j=e("g9YV"),O=e("wCAj"),oe=e("DYRE"),fe=e("zeV3"),S=e("+L6B"),n=e("2/Rp"),de=e("OaEy"),k=e("2fM7"),m=e("5NDa"),se=e("5rEg"),v=e("miYZ"),L=e("tsqr"),F=e("2qtc"),y=e("kLXV"),l=e("k1fw"),r=e("9og8"),_=e("y8nQ"),p=e("Vl3Y"),g=e("tJVT"),P=e("WmNS"),u=e.n(P),N=e("q1tI"),s=e.n(N),C=e("/g4j"),h=e.n(C),a=e("Ty5D"),o=e("9kvl"),t=e("ErOA"),d=e("LvDl"),c=e("sBkp"),E=e.n(c),G=function(R){var ue=R.visible,ve=R.onOk,re=R.onCancel,ge=R.title,z=ge===void 0?"\u9009\u62E9\u8BA4\u8BC1\u56E2\u961F\u6559\u5E08":ge,K=R.selectIds,f=R.teacher,I=R.ec_year_id,b=R.schoolId,Q={page:1,per_page:20,total:0,name:"",save_name:"",tel:"",save_tel:""},V=Object(N.useState)(Object(l.a)({},Q)),le=Object(g.a)(V,2),J=le[0],Z=le[1],he=Object(N.useState)([]),Se=Object(g.a)(he,2),je=Se[0],De=Se[1],Je=Object(N.useState)([]),Ae=Object(g.a)(Je,2),Ce=Ae[0],ye=Ae[1],Qe=Object(N.useState)(!1),Xe=Object(g.a)(Qe,2),qe=Xe[0],at=Xe[1],Ve=Object(N.useState)(!1),ct=Object(g.a)(Ve,2),i=ct[0],M=ct[1];Object(N.useEffect)(function(){ue?(T(Q),De(K)):(De([]),at(!1),Z(Q))},[ue]);var T=function(){var D=Object(r.a)(u.a.mark(function B(H){var ne,ce;return u.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ne=Object(d.cloneDeep)(H),ne.school_id=b,M(!0),xe.next=5,Object(t.a)("/api/ec_years/".concat(I,"/ec_courses/").concat(f?"search_course_teachers":"search_work_teachers",".json"),{method:"get",params:ne});case 5:ce=xe.sent,ce!=null&&ce.data&&(J.total=ce==null?void 0:ce.count,J.save_name=J.save_name,J.save_tel=J.tel,Z(Object(l.a)({},J)),ye((ce==null?void 0:ce.data)||[])),M(!1);case 8:case"end":return xe.stop()}},B)}));return function(H){return D.apply(this,arguments)}}(),$=function(){at(!0),ve(je,function(){at(!1)})},te=function(){re()},X={selectedRowKeys:je,columnWidth:95,onChange:function(B){return De(B)}},W=function(B,H,ne){J.page=B==null?void 0:B.current,J.per_page=B==null?void 0:B.pageSize,Z(Object(l.a)({},J)),T(J)},A=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u624B\u673A\u53F7\u7801",dataIndex:"tel",render:function(B){if(!B)return"";var H=/^(\d{3})\d{4}(\d{4})$/,ne=B==null?void 0:B.replace(H,"$1****$2");return s.a.createElement("span",null,ne)}},{title:"\u804C\u79F0",dataIndex:"pro"},{title:"\u804C\u52A1",dataIndex:"job"},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department"}];return s.a.createElement(y.a,{title:z,visible:ue,onOk:$,centered:!0,wrapClassName:E.a.customModal,onCancel:te,confirmLoading:qe,width:"800px",okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88"},s.a.createElement(fe.a,{size:20,className:"ml40 mb10"},s.a.createElement(se.a.Search,{style:{width:343,height:38},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",value:J==null?void 0:J.save_name,onChange:function(B){J.save_name=B.target.value,Z(Object(l.a)({},J))},onSearch:function(){J.page=1,J.name=J.save_name,Z(Object(l.a)({},J)),T(J)}})),s.a.createElement(O.a,{rowSelection:X,className:E.a.customTable,dataSource:Ce,bordered:!1,rowKey:"id",scroll:Ce.length>7?{y:400}:{},columns:A,loading:i,onChange:W,pagination:{pageSize:J.per_page,total:J.total,current:J.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"],showTotal:function(B){return s.a.createElement("span",{className:"mr10"},"\u5171",s.a.createElement("span",{className:"c-orange"},B),"\u6761\u6570\u636E")}}}))},x=G,w=e("fj85"),Y=e("g+eg"),pe=function(R){var ue,ve,re=R.user,ge={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null},z=Object(N.useState)(ge),K=Object(g.a)(z,2),f=K[0],I=K[1],b=Object(N.useState)(!0),Q=Object(g.a)(b,2),V=Q[0],le=Q[1],J=Object(N.useState)(!1),Z=Object(g.a)(J,2),he=Z[0],Se=Z[1],je=Object(N.useState)(!1),De=Object(g.a)(je,2),Je=De[0],Ae=De[1],Ce=Object(N.useState)(!1),ye=Object(g.a)(Ce,2),Qe=ye[0],Xe=ye[1],qe=Object(N.useState)([]),at=Object(g.a)(qe,2),Ve=at[0],ct=at[1],i=Object(N.useState)([]),M=Object(g.a)(i,2),T=M[0],$=M[1],te=Object(N.useState)([]),X=Object(g.a)(te,2),W=X[0],A=X[1],D=Object(N.useState)([]),B=Object(g.a)(D,2),H=B[0],ne=B[1],ce=Object(N.useState)([]),me=Object(g.a)(ce,2),xe=me[0],We=me[1],we=Object(N.useState)(!1),ze=Object(g.a)(we,2),Oe=ze[0],dt=ze[1],$e=Object(N.useState)(!1),Be=Object(g.a)($e,2),Ge=Be[0],ot=Be[1],Ke=p.a.useForm(),ut=Object(g.a)(Ke,1),Ye=ut[0],ke=Object(a.h)();Object(N.useEffect)(function(){var Ee;re!=null&&(Ee=re.userInfo)!==null&&Ee!==void 0&&Ee.school_id&&(Te(),st())},[re==null||((ue=re.userInfo)===null||ue===void 0)?void 0:ue.school_id]);var Le=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){var ae,be,_e;return u.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return be=Object(d.cloneDeep)(ie),Y.a.setItem(re==null||((ae=re.userInfo)===null||ae===void 0)?void 0:ae.login,[be==null?void 0:be.ec_major_school_id,be==null?void 0:be.ec_year_id]),le(!0),Ne.next=5,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses.json"),{method:"get",params:be});case 5:_e=Ne.sent,_e!=null&&_e.ec_courses&&(A((_e==null?void 0:_e.ec_courses)||[]),f.total=_e==null?void 0:_e.count,I(Object(l.a)({},f))),le(!1);case 8:case"end":return Ne.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),Te=function(){var Ee=Object(r.a)(u.a.mark(function q(){var ie,ae,be,_e,Re,Ne,He,et,rt,mt,nt,_t,yt,pt;return u.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,Object(t.a)("/api/schools/".concat(re==null||((ie=re.userInfo)===null||ie===void 0)?void 0:ie.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(nt=ht.sent,nt!=null&&(ae=nt.data)!==null&&ae!==void 0&&(be=ae[0])!==null&&be!==void 0&&be.ec_major_school_id){ht.next=7;break}return le(!1),Se(!0),ht.abrupt("return");case 7:return _t=Y.a.getItem(re==null||((_e=re.userInfo)===null||_e===void 0)?void 0:_e.login),yt=Number(ke==null||((Re=ke.query)===null||Re===void 0)?void 0:Re.ec_major_school_id)||_t[0]||(nt==null||((Ne=nt.data)===null||Ne===void 0||((He=Ne[0])===null||He===void 0))?void 0:He.ec_major_school_id),ht.next=11,Object(t.a)("/api/ec_major_schools/".concat(yt,"/ec_years/get_year_list.json"),{method:"get"});case 11:pt=ht.sent,f.ec_major_school_id=yt,f.ec_year_id=Number(ke==null||((et=ke.query)===null||et===void 0)?void 0:et.ec_year_id)||_t[1]||(pt==null||((rt=pt.data)===null||rt===void 0||((mt=rt[0])===null||mt===void 0))?void 0:mt.ec_year_id),ct((nt==null?void 0:nt.data)||[]),$((pt==null?void 0:pt.data)||[]),I(f),Le(f);case 18:case"end":return ht.stop()}},q)}));return function(){return Ee.apply(this,arguments)}}(),Ze=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){var ae,be,_e;return u.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,Object(t.a)("/api/ec_major_schools/".concat(ie,"/ec_years/get_year_list.json"),{method:"get"});case 2:_e=Ne.sent,f.ec_major_school_id=ie,f.ec_year_id=_e==null||((ae=_e.data)===null||ae===void 0||((be=ae[0])===null||be===void 0))?void 0:be.ec_year_id,$((_e==null?void 0:_e.data)||[]),I(f),Le(f);case 8:case"end":return Ne.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),st=function(){var Ee=Object(r.a)(u.a.mark(function q(){var ie;return u.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(t.a)("/api/ec_years/1/ec_courses/course_type_list.json",{method:"get"});case 2:ie=be.sent,ie!=null&&ie.list&&ne(ie.list||[]);case 4:case"end":return be.stop()}},q)}));return function(){return Ee.apply(this,arguments)}}(),it=function(q,ie){if(f.page=1,f[ie]=q,ie==="ec_major_school_id"){Ze(q);return}ie==="ec_year_id"&&(I(Object(l.a)({},f)),Le(f))},Fe=function(q){y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var ie=Object(r.a)(u.a.mark(function be(){var _e,Re;return u.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses/").concat(q,".json"),{method:"delete"});case 2:_e=He.sent,(_e==null?void 0:_e.status)===0&&(Re=W.length===1&&f.page>1?f.page-1:f.page,f.page=Re,I(Object(l.a)({},f)),Le(f));case 4:case"end":return He.stop()}},be)}));function ae(){return ie.apply(this,arguments)}return ae}()})},Nt=function(q,ie,ae){y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var be=Object(r.a)(u.a.mark(function Re(){var Ne;return u.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(t.a)("/api/ec_years/1/ec_courses/".concat(ie?"delete_course_teacher":"delete_work_teacher",".json"),{method:"delete",body:{id:q,ec_course_id:ae==null?void 0:ae.id}});case 2:Ne=et.sent,(Ne==null?void 0:Ne.status)===0&&Le(f);case 4:case"end":return et.stop()}},Re)}));function _e(){return be.apply(this,arguments)}return _e}()})},Tt=function(q,ie,ae){if(f.page=q==null?void 0:q.current,f.per_page=q==null?void 0:q.pageSize,ae!=null&&ae.order?(f.sort_by=ae==null?void 0:ae.field,f.direction=(ae==null?void 0:ae.order)==="ascend"?"asc":"desc"):(f.sort_by=null,f.direction=null),I(Object(l.a)({},f)),gt)return;Le(f)},St=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(q,ie,ae){return s.a.createElement("span",{className:"pl20"},f.per_page*(f.page-1)+ae+1)}},{title:"\u8BFE\u7A0B\u540D\u79F0",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(q){return q||"-"}},{title:"\u8BFE\u7A0B\u7C7B\u578B",dataIndex:"course_type",ellipsis:!0,width:120,sorter:!0,render:function(q){return q||"-"}},{title:"\u6388\u8BFE\u6559\u5E08",dataIndex:"course_teachers",align:"right",width:300,render:function(q,ie){return s.a.createElement("span",{className:h.a.tagWrap},q==null?void 0:q.map(function(ae){return s.a.createElement("div",{className:h.a.tag,key:ae.id},s.a.createElement("span",{title:ae.name},ae.name),s.a.createElement("span",{onClick:function(_e){_e.preventDefault(),Nt(ae.id,!0,ie)}},s.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),s.a.createElement("span",{onClick:function(){return Et(q,!0,ie)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:s.a.createElement("div",{className:"mr20"},"\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08"),dataIndex:"work_teachers",width:300,align:"right",render:function(q,ie){return s.a.createElement("span",{style:{marginRight:20},className:h.a.tagWrap},q==null?void 0:q.map(function(ae){return s.a.createElement("div",{className:h.a.tag,key:ae.id},s.a.createElement("span",{title:ae.name},ae.name),s.a.createElement("span",{onClick:function(_e){_e.preventDefault(),Nt(ae.id,!1,ie)}},s.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),s.a.createElement("span",{onClick:function(){return Et(q,!1,ie)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:"\u64CD\u4F5C",width:110,dataIndex:"action",render:function(q,ie){return s.a.createElement("span",{style:{display:"inline-block",transform:"translateY(1px)"}},s.a.createElement("i",{onClick:function(){return bt(ie)},className:"iconfont icon-bianji7 c-gcrz-primary mr15 current"}),s.a.createElement("i",{onClick:function(){return Fe(ie.id)},className:"iconfont icon-piliangshanchubeifen mr15 c-gcrz-primary current"}),s.a.createElement("i",{onClick:function(){return o.d.push("/engineering/cursesetting?course=".concat(ie.id,"&ec_major_school_id=").concat(f==null?void 0:f.ec_major_school_id,"&ec_year_id=").concat(f==null?void 0:f.ec_year_id))},className:"iconfont icon-anquanshezhi c-gcrz-primary current"}))}}],bt=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){return u.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:ot(ie.id),Ye.setFieldsValue({name:ie.name,course_type:ie.course_type});case 2:case"end":return be.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),Et=function(){var Ee=Object(r.a)(u.a.mark(function q(ie,ae,be){return u.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:We(ie.map(function(Ne){return Ne.id})||[]),dt(ae),Xe(be.id);case 3:case"end":return Re.stop()}},q)}));return function(ie,ae,be){return Ee.apply(this,arguments)}}(),jt=function(){var Ee=Object(r.a)(u.a.mark(function q(ie){var ae,be;return u.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Ae(!0),!(Ge===!0)){Re.next=7;break}return Re.next=4,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses.json"),{method:"post",body:Object(l.a)({},ie)});case 4:be=Re.sent,Re.next=10;break;case 7:return Re.next=9,Object(t.a)("/api/ec_years/".concat(f.ec_year_id,"/ec_courses/").concat(Ge,".json"),{method:"put",body:Object(l.a)({},ie)});case 9:be=Re.sent;case 10:((ae=be)===null||ae===void 0?void 0:ae.status)===0&&(Le(f),ot(!1)),Ye.resetFields(),Ae(!1);case 13:case"end":return Re.stop()}},q)}));return function(ie){return Ee.apply(this,arguments)}}(),xt=function(){ot(!1),Ye.resetFields()},Mt=function(){var Ee=Object(r.a)(u.a.mark(function q(ie,ae){var be;return u.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!(ie.length===0)){Re.next=4;break}return L.b.warn("\u8BF7\u9009\u62E9\u6559\u5E08"),ae(),Re.abrupt("return");case 4:if(!(ie.length>2)){Re.next=8;break}return L.b.warn("\u6700\u591A\u9009\u62E9\u4E24\u540D\u6559\u5E08"),ae(),Re.abrupt("return");case 8:return Re.next=10,Object(t.a)("/api/ec_years/1/ec_courses/".concat(Oe?"add_course_teachers":"add_work_teachers",".json"),{method:"post",body:{ids:ie,ec_course_id:Qe}});case 10:be=Re.sent,(be==null?void 0:be.status)===0&&(Le(f),Xe(!1)),ae();case 13:case"end":return Re.stop()}},q)}));return function(ie,ae){return Ee.apply(this,arguments)}}(),ft=function(){return s.a.createElement("div",null,s.a.createElement(p.a,{colon:!1,form:Ye,onFinish:jt,className:h.a.form,labelCol:{span:4},wrapperCol:{span:19}},s.a.createElement(p.a.Item,{label:"\u8BFE\u7A0B\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{max:60,message:"\u6700\u591A\u8F93\u516560\u4E2A\u5B57"}]},s.a.createElement(se.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"})),s.a.createElement(p.a.Item,{label:"\u8BFE\u7A0B\u7C7B\u578B",name:"course_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"}]},s.a.createElement(k.a,{style:{width:358},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"},H==null?void 0:H.map(function(q){return s.a.createElement(k.a.Option,{value:q},q)})))),s.a.createElement(fe.a,{size:10,className:h.a.button,style:{margin:"26px 40px 20px 0",float:"right"}},s.a.createElement(n.a,{onClick:xt},"\u53D6\u6D88"),s.a.createElement(n.a,{type:"primary",loading:Je,onClick:function(){Ye.submit()}},"\u4FDD\u5B58")),s.a.createElement("div",{style:{clear:"both"}}))},gt=V||he;return s.a.createElement("div",{className:h.a.wrap},s.a.createElement(w.a,{title:"\u8BFE\u7A0B\u5217\u8868",style:{padding:"12px 0 0 20px"}}),s.a.createElement("div",{className:h.a.control},s.a.createElement("div",{className:h.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),s.a.createElement(k.a,{disabled:gt,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:f==null?void 0:f.ec_major_school_id,onChange:function(q){return it(q,"ec_major_school_id")}},Ve==null?void 0:Ve.map(function(Ee){return s.a.createElement(k.a.Option,{value:Ee.ec_major_school_id},Ee.name)})),s.a.createElement("div",{className:h.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),s.a.createElement(k.a,{disabled:gt,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:f==null?void 0:f.ec_year_id,onChange:function(q){return it(q,"ec_year_id")}},T==null?void 0:T.map(function(Ee){return s.a.createElement(k.a.Option,{value:Ee.ec_year_id},Ee.year)})),s.a.createElement(fe.a,{className:h.a.button,size:10},s.a.createElement(n.a,{disabled:gt,style:{transition:"0s"},onClick:function(){ot(!0)},type:"primary"},s.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u8BFE\u7A0B"))),s.a.createElement(O.a,{className:h.a.customTable,dataSource:W,bordered:!1,rowKey:"id",columns:St,rowClassName:h.a.row,loading:V,onChange:Tt,pagination:{pageSize:f.per_page,total:f.total,current:f.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(q){return s.a.createElement("span",{className:"mr10"},"\u5171",s.a.createElement("span",{className:"c-orange"},q),"\u6761\u6570\u636E")}}}),s.a.createElement(y.a,{title:Ge===!0?"\u65B0\u589E\u8BFE\u7A0B":"\u7F16\u8F91\u8BFE\u7A0B",visible:!!Ge,centered:!0,onCancel:xt,className:h.a.customModal,width:"740px",footer:null},ft()),s.a.createElement(x,{visible:!!Qe,onCancel:function(){return Xe(!1)},onOk:Mt,selectIds:xe,teacher:Oe,ec_year_id:f==null?void 0:f.ec_year_id,title:Oe?"\u9009\u62E9\u6388\u8BFE\u6559\u5E08":"\u9009\u62E9\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08",schoolId:re==null||((ve=re.userInfo)===null||ve===void 0)?void 0:ve.school_id}))},Pe=U.default=Object(o.a)(function(ee){var R=ee.user;return{user:R}})(pe)},n6Qo:function(Me,U,e){"use strict";e.d(U,"a",function(){return k});var j=e("q1tI"),O=e("biw7"),oe=e("fyJ8");function fe(m){var se=m.className,v=m.index,L=m.children,F=m.colSpan,y=m.rowSpan,l=j.useContext(O.a),r=l.prefixCls,_=l.fixedInfoList,p=_[v];return j.createElement(oe.a,Object.assign({className:se,index:v,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:L,props:{colSpan:F,rowSpan:y}}}},p))}function S(m){return j.createElement("tr",Object.assign({},m))}function n(m){var se=m.children,v=j.useContext(O.a),L=v.prefixCls;return j.createElement("tfoot",{className:"".concat(L,"-summary")},se)}var de=U.b=n,k={Cell:fe,Row:S}},sBkp:function(Me,U,e){Me.exports={flex_box_center:"flex_box_center___2ei3K",flex_space_between:"flex_space_between___3lPdu",flex_box_vertical_center:"flex_box_vertical_center___16QaQ",flex_box_center_end:"flex_box_center_end___30Z_i",flex_box_column:"flex_box_column___2a4ue",customModal:"customModal___2B4GK",customTable:"customTable___1U6wo"}},sR1s:function(Me,U,e){"use strict";e.d(U,"b",function(){return fe}),e.d(U,"a",function(){return S}),e.d(U,"c",function(){return n}),e.d(U,"d",function(){return de});var j=e("U8pU"),O="RC_TABLE_KEY";function oe(k){return k==null?[]:Array.isArray(k)?k:[k]}function fe(k,m){if(!m&&typeof m!="number")return k;for(var se=oe(m),v=k,L=0;L1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(P.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var u=P[0];if(n.isValidElement(u)&&Object(v.c)(u)){var N=u.ref;P[0]=n.cloneElement(u,{ref:Object(v.a)(N,this.setChildNode)})}return P.length===1?P[0]:P.map(function(s,C){return!n.isValidElement(s)||"key"in s&&s.key!==null?s:n.cloneElement(s,{key:"".concat(F,"-").concat(C)})})}}]),_}(n.Component);y.displayName="ResizeObserver",U.a=y},wCXF:function(Me,U,e){"use strict";e.d(U,"a",function(){return qe});var j=e("rePB"),O=e("VTBJ"),oe=e("KQm4"),fe=e("U8pU"),S=e("ODXe"),n=e("q1tI"),de=e("TSYQ"),k=e.n(de),m=e("Gytx"),se=e.n(m),v=e("Kwbf"),L=e("t23M"),F=e("qx4F"),y=e("6eGT"),l=e("IBYe"),r=e("Ff2n"),_=e("c+Xe"),p=e("fyJ8"),g=e("biw7");function P(i,M,T,$,te){var X=T[i]||{},W=T[M]||{},A,D;X.fixed==="left"?A=$.left[i]:W.fixed==="right"&&(D=$.right[M]);var B=!1,H=!1,ne=!1,ce=!1,me=T[M+1],xe=T[i-1];if(te==="rtl"){if(A!==void 0){var We=xe&&xe.fixed==="left";ce=!We}else if(D!==void 0){var we=me&&me.fixed==="right";ne=!we}}else if(A!==void 0){var ze=me&&me.fixed==="left";B=!ze}else if(D!==void 0){var Oe=xe&&xe.fixed==="right";H=!Oe}return{fixLeft:A,fixRight:D,lastFixLeft:B,firstFixRight:H,lastFixRight:ne,firstFixLeft:ce,isSticky:$.isSticky}}var u=e("sR1s");function N(i){var M=i.cells,T=i.stickyOffsets,$=i.flattenColumns,te=i.rowComponent,X=i.cellComponent,W=i.onHeaderRow,A=i.index,D=n.useContext(g.a),B=D.prefixCls,H=D.direction,ne;W&&(ne=W(M.map(function(me){return me.column}),A));var ce=Object(u.a)(M.map(function(me){return me.column}));return n.createElement(te,Object.assign({},ne),M.map(function(me,xe){var We=me.column,we=P(me.colStart,me.colEnd,$,T,H),ze;return We&&We.onHeaderCell&&(ze=me.column.onHeaderCell(We)),n.createElement(p.a,Object.assign({},me,{ellipsis:We.ellipsis,align:We.align,component:X,prefixCls:B,key:ce[xe]},we,{additionalProps:ze,rowType:"header"}))}))}N.displayName="HeaderRow";var s=N;function C(i){var M=[];function T(W,A){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;M[D]=M[D]||[];var B=A,H=W.filter(Boolean).map(function(ne){var ce={key:ne.key,className:ne.className||"",children:ne.title,column:ne,colStart:B},me=1,xe=ne.children;return xe&&xe.length>0&&(me=T(xe,B,D+1).reduce(function(We,we){return We+we},0),ce.hasSubColumns=!0),"colSpan"in ne&&(me=ne.colSpan),"rowSpan"in ne&&(ce.rowSpan=ne.rowSpan),ce.colSpan=me,ce.colEnd=ce.colStart+me-1,M[D].push(ce),B+=me,me});return H}T(i,0);for(var $=M.length,te=function(A){M[A].forEach(function(D){!("rowSpan"in D)&&!D.hasSubColumns&&(D.rowSpan=$-A)})},X=0;X<$;X+=1)te(X);return M}function h(i){var M=i.stickyOffsets,T=i.columns,$=i.flattenColumns,te=i.onHeaderRow,X=n.useContext(g.a),W=X.prefixCls,A=X.getComponent,D=n.useMemo(function(){return C(T)},[T]),B=A(["header","wrapper"],"thead"),H=A(["header","row"],"tr"),ne=A(["header","cell"],"th");return n.createElement(B,{className:"".concat(W,"-thead")},D.map(function(ce,me){var xe=n.createElement(s,{key:me,flattenColumns:$,cells:ce,stickyOffsets:M,rowComponent:H,cellComponent:ne,onHeaderRow:te,index:me});return xe}))}var a=h,o=e("hW8S");function t(i){for(var M=i.colWidths,T=i.columns,$=i.columCount,te=[],X=$||T.length,W=!1,A=X-1;A>=0;A-=1){var D=M[A],B=T&&T[A],H=B&&B[o.a];(D||H||W)&&(te.unshift(n.createElement("col",Object.assign({key:A,style:{width:D,minWidth:D}},H))),W=!0)}return n.createElement("colgroup",null,te)}var d=t;function c(i,M){return Object(n.useMemo)(function(){for(var T=[],$=0;$1?rt-1:0),nt=1;nt=ne&&(Fe=ne-ce),W({scrollLeft:Fe/ne*(H+2)}),Oe.current.x=Te.pageX},Ye=function(){var Te=Object(Je.b)(X.current).top,Ze=Te+X.current.offsetHeight,st=document.documentElement.scrollTop+window.innerHeight;Ze-Object(F.a)()<=st||Te>=st-A?ze(function(it){return Object(O.a)(Object(O.a)({},it),{},{isHiddenScrollBar:!0})}):ze(function(it){return Object(O.a)(Object(O.a)({},it),{},{isHiddenScrollBar:!1})})},ke=function(Te){ze(function(Ze){return Object(O.a)(Object(O.a)({},Ze),{},{scrollLeft:Te/H*ne||0})})};return n.useImperativeHandle(T,function(){return{setScrollLeft:ke}}),n.useEffect(function(){var Le=Object(De.a)(document.body,"mouseup",ot,!1),Te=Object(De.a)(document.body,"mousemove",ut,!1);return Ye(),function(){Le.remove(),Te.remove()}},[ce,Be]),n.useEffect(function(){var Le=Object(De.a)(window,"scroll",Ye,!1),Te=Object(De.a)(window,"resize",Ye,!1);return function(){Le.remove(),Te.remove()}},[]),n.useEffect(function(){we.isHiddenScrollBar||ze(function(Le){var Te,Ze;return Object(O.a)(Object(O.a)({},Le),{},{scrollLeft:X.current.scrollLeft/((Te=X.current)===null||Te===void 0?void 0:Te.scrollWidth)*((Ze=X.current)===null||Ze===void 0?void 0:Ze.clientWidth)})})},[we.isHiddenScrollBar]),H<=ne||!ce||we.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(F.a)(),width:ne,bottom:A},className:"".concat(B,"-sticky-scroll")},n.createElement("div",{onMouseDown:Ke,ref:me,className:k()("".concat(B,"-sticky-scroll-bar"),Object(j.a)({},"".concat(B,"-sticky-scroll-bar-active"),Be)),style:{width:"".concat(ce,"px"),transform:"translate3d(".concat(we.scrollLeft,"px, 0, 0)")}}))},Ce=n.forwardRef(Ae);function ye(i,M){return n.useMemo(function(){var T=!!i;return{isSticky:T,stickyClassName:T?"".concat(M,"-sticky-header"):"",offsetHeader:Object(fe.a)(i)==="object"&&i.offsetHeader||0,offsetScroll:Object(fe.a)(i)==="object"&&i.offsetScroll||0}},[i,M])}var Qe=[],Xe={},qe="rc-table-internal-hook",at=n.memo(function(i){var M=i.children;return M},function(i,M){return se()(i.props,M.props)?i.pingLeft!==M.pingLeft||i.pingRight!==M.pingRight:!1});function Ve(i){var M,T=i.prefixCls,$=i.className,te=i.rowClassName,X=i.style,W=i.data,A=i.rowKey,D=i.scroll,B=i.tableLayout,H=i.direction,ne=i.title,ce=i.footer,me=i.summary,xe=i.id,We=i.showHeader,we=i.components,ze=i.emptyText,Oe=i.onRow,dt=i.onHeaderRow,$e=i.internalHooks,Be=i.transformColumns,Ge=i.internalRefs,ot=i.sticky,Ke=W||Qe,ut=!!Ke.length,Ye=n.useState(0),ke=Object(S.a)(Ye,2),Le=ke[0],Te=ke[1];n.useEffect(function(){Te(Object(F.a)())});var Ze=n.useMemo(function(){return Object(u.c)(we,{})},[we]),st=n.useCallback(function(Ue,Ie){return Object(u.b)(Ze,Ue)||Ie},[Ze]),it=n.useMemo(function(){return typeof A=="function"?A:function(Ue){var Ie=Ue&&Ue[A];return Ie}},[A]),Fe=Object(o.c)(i),Nt=Fe.expandIcon,Tt=Fe.expandedRowKeys,St=Fe.defaultExpandedRowKeys,bt=Fe.defaultExpandAllRows,Et=Fe.expandedRowRender,jt=Fe.onExpand,xt=Fe.onExpandedRowsChange,Mt=Fe.expandRowByClick,ft=Fe.rowExpandable,gt=Fe.expandIconColumnIndex,Ee=Fe.expandedRowClassName,q=Fe.childrenColumnName,ie=Fe.indentSize,ae=Nt||Se,be=q||"children",_e=n.useMemo(function(){return Et?"row":i.expandable&&$e===qe&&i.expandable.__PARENT_RENDER_ICON__||Ke.some(function(Ue){return Ue&&Object(fe.a)(Ue)==="object"&&Ue[be]})?"nest":!1},[!!Et,Ke]),Re=n.useState(function(){return St||(bt?je(Ke,it,be):[])}),Ne=Object(S.a)(Re,2),He=Ne[0],et=Ne[1],rt=n.useMemo(function(){return new Set(Tt||He||[])},[Tt,He]),mt=n.useCallback(function(Ue){var Ie=it(Ue,Ke.indexOf(Ue)),lt,vt=rt.has(Ie);vt?(rt.delete(Ie),lt=Object(oe.a)(rt)):lt=[].concat(Object(oe.a)(rt),[Ie]),et(lt),jt&&jt(!vt,Ue),xt&&xt(lt)},[it,rt,Ke,jt,xt]),nt=n.useState(0),_t=Object(S.a)(nt,2),yt=_t[0],pt=_t[1],Qt=Object(K.b)(Object(O.a)(Object(O.a)(Object(O.a)({},i),Fe),{},{expandable:!!Et,expandedKeys:rt,getRowKey:it,onTriggerExpand:mt,expandIcon:ae,expandIconColumnIndex:gt,direction:H}),$e===qe?Be:null),ht=Object(S.a)(Qt,2),Wt=ht[0],tt=ht[1],wt=n.useMemo(function(){return{columns:Wt,flattenColumns:tt}},[Wt,tt]),kt=n.useRef(),Zt=n.useRef(),Rt=n.useRef(),bn=n.useState(!1),qt=Object(S.a)(bn,2),en=qt[0],En=qt[1],gn=n.useState(!1),tn=Object(S.a)(gn,2),nn=tn[0],Cn=tn[1],xn=b(new Map),an=Object(S.a)(xn,2),yn=an[0],On=an[1],jn=Object(u.a)(tt),on=jn.map(function(Ue){return yn.get(Ue)}),rn=n.useMemo(function(){return on},[on.join("_")]),Ut=le(rn,tt.length,H),Ct=D&&Object(u.d)(D.y),Ot=D&&Object(u.d)(D.x),Dt=Ot&&tt.some(function(Ue){var Ie=Ue.fixed;return Ie}),ln=n.useRef(),It=ye(ot,T),Lt=It.isSticky,_n=It.offsetHeader,Rn=It.offsetScroll,Nn=It.stickyClassName,Bt,zt,Ft;Ct&&(zt={overflowY:"scroll",maxHeight:D.y}),Ot&&(Bt={overflowX:"auto"},Ct||(zt={overflowY:"hidden"}),Ft={width:D.x===!0?"auto":D.x,minWidth:"100%"});var sn=n.useCallback(function(Ue,Ie){On(function(lt){var vt=new Map(lt);return vt.set(Ue,Ie),vt})},[]),Tn=Q(null),dn=Object(S.a)(Tn,2),Sn=dn[0],un=dn[1];function Xt(Ue,Ie){if(!Ie)return;typeof Ie=="function"?Ie(Ue):Ie.scrollLeft!==Ue&&(Ie.scrollLeft=Ue)}var Pt=function(Ie){var lt=Ie.currentTarget,vt=Ie.scrollLeft,At=typeof vt=="number"?vt:lt.scrollLeft,vn=lt||Xe;if(!un()||un()===vn){var Jt;Sn(vn),Xt(At,Zt.current),Xt(At,Rt.current),Xt(At,(Jt=ln.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(lt){var Un=lt.scrollWidth,In=lt.clientWidth;En(At>0),Cn(At0?[].concat(Object(O.a)(r),Object(O.a)(v(P).map(function(u){return Object(oe.a)({fixed:g},u)}))):[].concat(Object(O.a)(r),[Object(oe.a)(Object(oe.a)({},_),{},{fixed:g})])},[])}function L(l){for(var r=!0,_=0;_=0;P-=1){var u=l[P];if(g&&u.fixed!=="right")g=!1;else if(!g&&u.fixed==="right"){Object(de.a)(!1,"Index ".concat(P+1," of `columns` missing `fixed='right'` prop."));break}}}function F(l){return l.map(function(r){var _=r.fixed,p=Object(fe.a)(r,["fixed"]),g=_;return _==="left"?g="right":_==="right"&&(g="left"),Object(oe.a)({fixed:g},p)})}function y(l,r){var _=l.prefixCls,p=l.columns,g=l.children,P=l.expandable,u=l.expandedKeys,N=l.getRowKey,s=l.onTriggerExpand,C=l.expandIcon,h=l.rowExpandable,a=l.expandIconColumnIndex,o=l.direction,t=l.expandRowByClick,d=S.useMemo(function(){return p||se(g)},[p,g]),c=S.useMemo(function(){if(P){var x,w=a||0,Y=d[w],pe=(x={},Object(j.a)(x,m.a,{className:"".concat(_,"-expand-icon-col")}),Object(j.a)(x,"title",""),Object(j.a)(x,"fixed",Y?Y.fixed:null),Object(j.a)(x,"className","".concat(_,"-row-expand-icon-cell")),Object(j.a)(x,"render",function(R,ue,ve){var re=N(ue,ve),ge=u.has(re),z=h?h(ue):!0,K=C({prefixCls:_,expanded:ge,expandable:z,record:ue,onExpand:s});return t?S.createElement("span",{onClick:function(I){return I.stopPropagation()}},K):K}),x),Pe=d.slice();return w>=0&&Pe.splice(w,0,pe),Pe}return d},[P,d,N,u,C,o]),E=S.useMemo(function(){var x=c;return r&&(x=r(x)),x.length||(x=[{render:function(){return null}}]),x},[r,c,o]),G=S.useMemo(function(){return o==="rtl"?F(v(E)):v(E)},[E,o]);return[E,G]}U.b=y},"y0+3":function(Me,U,e){"use strict";e.d(U,"a",function(){return v}),e.d(U,"b",function(){return F});var j=/margin|padding|width|height|max|min|offset/,O={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function fe(y){return y.nodeType===1?y.ownerDocument.defaultView.getComputedStyle(y,null):{}}function S(y,l,r){if(l=l.toLowerCase(),r==="auto"){if(l==="height")return y.offsetHeight;if(l==="width")return y.offsetWidth}return l in O||(O[l]=j.test(l)),O[l]?parseFloat(r)||0:r}function n(y,l){var r=arguments.length,_=fe(y);return l=oe[l]?"cssFloat"in y.style?"cssFloat":"styleFloat":l,r===1?_:S(y,l,_[l]||y.style[l])}function de(y,l,r){var _=arguments.length;if(l=oe[l]?"cssFloat"in y.style?"cssFloat":"styleFloat":l,_===3)return typeof r=="number"&&j.test(l)&&(r="".concat(r,"px")),y.style[l]=r,r;for(var p in l)l.hasOwnProperty(p)&&de(y,p,l[p]);return fe(y)}function k(y){return y===document.body?document.documentElement.clientWidth:y.offsetWidth}function m(y){return y===document.body?window.innerHeight||document.documentElement.clientHeight:y.offsetHeight}function se(){var y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),l=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:y,height:l}}function v(){var y=document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight;return{width:y,height:l}}function L(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(y){var l=y.getBoundingClientRect(),r=document.documentElement;return{left:l.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:l.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__CourseMatrix.b34e4ca3.async.js b/p__Engineering__Lists__CourseMatrix.b34e4ca3.async.js index 1acb7de2a8..8151f74659 100644 --- a/p__Engineering__Lists__CourseMatrix.b34e4ca3.async.js +++ b/p__Engineering__Lists__CourseMatrix.b34e4ca3.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[130,8],{"3ICd":function(De,w,e){"use strict";e.r(w);var j=e("2qtc"),C=e("kLXV"),re=e("cWXX"),Ee=e("/ezw"),M=e("5NDa"),o=e("5rEg"),ie=e("14J3"),B=e("BMrR"),h=e("jCWc"),H=e("kPKH"),K=e("T2oS"),Z=e("W9HT"),ne=e("R9oj"),T=e("ECub"),m=e("g9YV"),f=e("wCAj"),R=e("7Kak"),E=e("9yH6"),N=e("+L6B"),S=e("2/Rp"),_=e("OaEy"),Q=e("2fM7"),v=e("k1fw"),y=e("giR+"),x=e("fyUT"),l=e("5Dmo"),s=e("3S7+"),t=e("miYZ"),c=e("tsqr"),d=e("9og8"),i=e("tJVT"),a=e("WmNS"),r=e.n(a),p=e("q1tI"),n=e.n(p),O=e("X7XL"),P=e.n(O),F=e("Ty5D"),b=e("9kvl"),J=e("ErOA"),q=e("LvDl"),ge=e.n(q),de=e("1vsH"),W=e("m3rI"),z=e("g+eg"),ee=e("fj85"),X=[{key:1,name:"\u7F16\u7A0B\u539F\u7406",age1:"M",age2:"H",companyName1:"X",companyName2:"X",companyName3:"X",gender1:"X",gender2:"X",gender3:"X"},{key:2,name:"\u9AD8\u7B49\u6570\u5B66",age1:"M",age2:"H",companyName1:"X",companyName2:"C",companyName3:"C",gender1:"X",gender2:"C",gender3:"X"}],g=function($){var ve,ue=$.user,se=$.dispatch,fe=Object(F.h)(),Me={tab:"1",ec_major_school_id:null,ec_year_id:null},Pe=Object(p.useState)([]),Be=Object(i.a)(Pe,2),$e=Be[0],we=Be[1],_e=Object(p.useState)([]),Oe=Object(i.a)(_e,2),Je=Oe[0],Ze=Oe[1],qe=Object(p.useState)({}),ot=Object(i.a)(qe,2),Se=ot[0],ht=ot[1],u=Object(p.useState)(0),D=Object(i.a)(u,2),A=D[0],G=D[1],te=Object(p.useState)([]),k=Object(i.a)(te,2),U=k[0],L=k[1],I=Object(p.useState)(!0),le=Object(i.a)(I,2),Y=le[0],oe=le[1],me=Object(p.useState)(!1),pe=Object(i.a)(me,2),je=pe[0],ze=pe[1],Te=Object(p.useState)(!1),Ie=Object(i.a)(Te,2),xe=Ie[0],st=Ie[1],Ye=Object(p.useState)(!1),He=Object(i.a)(Ye,2),tt=He[0],it=He[1],Ke=Object(p.useState)(!0),ut=Object(i.a)(Ke,2),Qe=ut[0],Xe=ut[1],ke=Object(p.useState)({mid_to_high_number:null,low_to_mid_number:null}),Re=Object(i.a)(ke,2),Le=Re[0],at=Re[1],ct=Object(p.useState)(Me),Ve=Object(i.a)(ct,2),Ne=Ve[0],Pt=Ve[1],Ft=Object(p.useState)(null),vt=Object(i.a)(Ft,2),Nt=vt[0],Dt=vt[1],Mt=Object(p.useRef)(""),_t=Object(p.useRef)(0),ft=Object(p.useRef)({mid_to_high_number:null,low_to_mid_number:null}),St=Object(p.useRef)(Me),gt=Object(p.useRef)(null),It=Object(p.useRef)([]);Object(p.useEffect)(function(){var Ce;ue!=null&&(Ce=ue.userInfo)!==null&&Ce!==void 0&&Ce.school_id&&rt()},[ue==null||((ve=ue.userInfo)===null||ve===void 0)?void 0:ve.school_id]),Object(p.useEffect)(function(){St.current=Ne},[Ne]);var Ot=function(){var Ce=Object(d.a)(r.a.mark(function V(he,Fe){var be,ce,ye;return r.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return ce=Object(q.cloneDeep)(he),z.a.setItem(ue==null||((be=ue.userInfo)===null||be===void 0)?void 0:be.login,[ce==null?void 0:ce.ec_major_school_id,ce==null?void 0:ce.ec_year_id]),delete ce.tab,Fe||oe(!0),et.next=6,Object(J.a)("/api/ec_years/".concat(Ne==null?void 0:Ne.ec_year_id,"/graduation_course_supports.json"),{method:"get",params:ce});case 6:ye=et.sent,ye!=null&&ye.graduation_subitems&&(ht((ye==null?void 0:ye.ec_courses)||[]),Tt((ye==null?void 0:ye.graduation_subitems)||[]),It.current=ye==null?void 0:ye.graduation_subitems),oe(!1);case 9:case"end":return et.stop()}},V)}));return function(he,Fe){return Ce.apply(this,arguments)}}(),Kt=function(){var Ce=Object(d.a)(r.a.mark(function V(){var he,Fe,be,ce;return r.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return Dt(null),be=gt.current,gt.current=null,We.next=5,Object(J.a)("/api/ec_years/1/graduation_course_supports/create_one.json",{method:"post",body:{ec_course_id:be==null||((he=be.split("-"))===null||he===void 0)?void 0:he[1],ec_graduation_subitem_id:be==null||((Fe=be.split("-"))===null||Fe===void 0)?void 0:Fe[0],weights:Mt.current}});case 5:ce=We.sent,ce.status===0?(c.b.success("\u4FDD\u5B58\u6210\u529F"),Ot(Ne,!0)):Tt(Object(q.cloneDeep)(It.current));case 7:case"end":return We.stop()}},V)}));return function(){return Ce.apply(this,arguments)}}(),Bt=function(V){Dt(V),gt.current=V,Tt(Object(q.cloneDeep)(It.current))},Tt=function(V){if(!(V!=null&&V.length))return;_t.current=0;var he=Object(q.cloneDeep)(V);he[0].title=n.a.createElement("div",{className:P.a.line},n.a.createElement("span",null,"\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"),n.a.createElement("span",null,"\u8BFE\u7A0B\u540D\u79F0")),he[0].width="207px",he[0].render=function(be,ce){return n.a.createElement("div",{className:P.a.omit},n.a.createElement("span",{title:be},be),ce.warning&&n.a.createElement(s.a,{title:"\u8BE5\u8BFE\u7A0B\u6743\u91CD\u4E4B\u548C\u4E0D\u7B49\u4E8E1\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},n.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))};var Fe=function(ce,ye,We){var et,dt,xt="",Et="";ce&&(xt=ce.split("-")[0],Et=ce.split("-")[1]);var Ge=((et=St.current)===null||et===void 0?void 0:et.tab)==="1"?xt:Et;return n.a.createElement("span",null,gt.current==="".concat(We,"-").concat(ye.ec_course_id)?n.a.createElement(x.a,{key:"".concat(We,"-").concat(ye.ec_course_id),autoFocus:!0,defaultValue:Et,parser:Vt,onBlur:Kt,step:.1,onChange:function(zt){return Mt.current=zt},style:{width:"auto"}}):n.a.createElement(p.Fragment,{key:"".concat(We,"-").concat(ye.ec_course_id)},Ge==="X"&&n.a.createElement(s.a,{title:"\u8BE5\u8BFE\u7A0B\u4E0E\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u6CA1\u6709\u5BF9\u5E94\u5173\u7CFB\uFF0C\u4E0D\u80FD\u8F93\u5165\u6743\u91CD\u3002"},n.a.createElement("span",null,n.a.createElement("i",{style:{color:"#B1BACD",transform:"scale(0.6)",display:"inline-block"},className:"iconfont icon-wu"}))),Ge!=="X"&&n.a.createElement("span",{className:P.a.tbl,onClick:function(){return Bt("".concat(We,"-").concat(ye.ec_course_id))},style:{color:Ge==="H"?"#0152D9":Ge==="M"?"#07C160":Ge==="L"?"#FF9D18":"#0152D9"}},Ge?n.a.createElement(s.a,{title:((dt=St.current)===null||dt===void 0?void 0:dt.tab)==="1"?"\u6743\u91CD:".concat(Et):"\u5173\u8054\u5EA6:".concat(xt)},n.a.createElement("span",null,Ge)):"\u8F93\u5165\u6570\u5B57")))};he=he.map(function(be,ce){var ye,We,et;return ce?(_t.current=_t.current+120*((be==null||((ye=be.children)===null||ye===void 0)?void 0:ye.length)||1),Object(v.a)(Object(v.a)({},be),{},{ellipsis:!0,width:120*((be==null||((We=be.children)===null||We===void 0)?void 0:We.length)||1),children:be==null||((et=be.children)===null||et===void 0)?void 0:et.map(function(dt,xt){return Object(v.a)(Object(v.a)({},dt),{},{title:n.a.createElement("span",{key:Math.random()},n.a.createElement(s.a,{title:dt.content},n.a.createElement("span",null,dt.title)),dt.warning&&n.a.createElement(s.a,{title:"\u8BE5\u6307\u6807\u70B9\u6743\u91CD\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},n.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"}))),render:function(Ge,Ut){return Fe(Ge,Ut,dt.id)}})})})):be}),L(he||[])},kt=function(){var V=Object(q.cloneDeep)(Ne);delete V.tab,Object(de.t)("",Object(de.U)({url:W.a.API_SERVER+"/api/ec_years/".concat(Ne.ec_year_id,"/graduation_course_supports.xlsx"),query:V}))},rt=function(){var Ce=Object(d.a)(r.a.mark(function V(){var he,Fe,be,ce,ye,We,et,dt,xt,Et,Ge,Ut,zt,jt;return r.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.next=2,Object(J.a)("/api/schools/".concat(ue==null||((he=ue.userInfo)===null||he===void 0)?void 0:he.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Ge=yt.sent,Ge!=null&&(Fe=Ge.data)!==null&&Fe!==void 0&&(be=Fe[0])!==null&&be!==void 0&&be.ec_major_school_id){yt.next=7;break}return oe(!1),ze(!0),yt.abrupt("return");case 7:return Ut=z.a.getItem(ue==null||((ce=ue.userInfo)===null||ce===void 0)?void 0:ce.login),zt=Number(fe==null||((ye=fe.query)===null||ye===void 0)?void 0:ye.ec_major_school_id)||Ut[0]||(Ge==null||((We=Ge.data)===null||We===void 0||((et=We[0])===null||et===void 0))?void 0:et.ec_major_school_id),yt.next=11,Object(J.a)("/api/ec_major_schools/".concat(zt,"/ec_years/get_year_list.json"),{method:"get"});case 11:jt=yt.sent,Ne.ec_major_school_id=zt,Ne.ec_year_id=Number(fe==null||((dt=fe.query)===null||dt===void 0)?void 0:dt.ec_year_id)||Ut[1]||(jt==null||((xt=jt.data)===null||xt===void 0||((Et=xt[0])===null||Et===void 0))?void 0:Et.ec_year_id),we((Ge==null?void 0:Ge.data)||[]),Ze((jt==null?void 0:jt.data)||[]),Pt(Ne),Ot(Ne);case 18:case"end":return yt.stop()}},V)}));return function(){return Ce.apply(this,arguments)}}(),mt=function(){var Ce=Object(d.a)(r.a.mark(function V(he){var Fe,be,ce;return r.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(J.a)("/api/ec_major_schools/".concat(he,"/ec_years/get_year_list.json"),{method:"get"});case 2:ce=We.sent,Ne.ec_major_school_id=he,Ne.ec_year_id=ce==null||((Fe=ce.data)===null||Fe===void 0||((be=Fe[0])===null||be===void 0))?void 0:be.ec_year_id,Ze((ce==null?void 0:ce.data)||[]),Pt(Ne),Ot(Ne);case 8:case"end":return We.stop()}},V)}));return function(he){return Ce.apply(this,arguments)}}(),pt=function(V,he){if(Ne[he]=V,he==="ec_major_school_id"){mt(V);return}he==="ec_year_id"&&(Pt(Object(v.a)({},Ne)),Ot(Ne))},nt=function(V,he){var Fe=Le.mid_to_high_number,be=Le.low_to_mid_number,ce=V.target.value;if(ce=isNaN(ce)?"":ce,Number(ce)!==0){var ye=Number(ce);he==="mid_to_high_number"&&!(ye>(be||0)&&ye<1)&&(ce=""),he==="low_to_mid_number"&&!(ye>0&&ye<(Fe||1))&&(ce="")}ce[0]==="."&&(ce=""),Le[he]=ce,at(Object(v.a)({},Le))},Ct=function(V,he){Ne.tab=he,Pt(Object(v.a)({},Ne)),Tt(Object(q.cloneDeep)(It.current))},At=[{title:"\u8BFE\u7A0B\u540D\u79F0",dataIndex:"name",fixed:"left"},{title:"1.\u95EE\u9898\u5206\u6790",align:"center",children:[{align:"center",title:"\u6307\u6807\u70B91-1",dataIndex:"age1"},{align:"center",title:"\u6307\u6807\u70B91-2",dataIndex:"age2"}]},{align:"center",title:"2.\u8BBE\u8BA1/\u5F00\u53D1\u89E3\u51B3\u65B9\u6848",children:[{title:"\u6307\u6807\u70B92-1",align:"center",dataIndex:"companyName1"},{title:"\u6307\u6807\u70B92-2",align:"center",dataIndex:"companyName2"},{title:"\u6307\u6807\u70B92-3",align:"center",dataIndex:"companyName3"}]},{title:"3.\u8BED\u8A00\u89E3\u51B3",align:"center",children:[{title:"\u6307\u6807\u70B93-1",align:"center",dataIndex:"gender1"},{title:"\u6307\u6807\u70B93-2",align:"center",dataIndex:"gender2"},{title:"\u6307\u6807\u70B93-3",align:"center",dataIndex:"gender3"}]}],Vt=function(V){var he=V;return he=isNaN(he)?"":he,he[0]==="."&&(he=""),he},Wt=function(){var Ce=Object(d.a)(r.a.mark(function V(){var he;return r.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return st(!0),it(!0),be.next=4,Object(J.a)("/api/ec_years/".concat(Ne.ec_year_id,"/ec_course_support_relations.json"),{method:"get"});case 4:he=be.sent,he&&(st(!1),at(Object(v.a)({},he)),ft.current=Object(v.a)({},he));case 6:case"end":return be.stop()}},V)}));return function(){return Ce.apply(this,arguments)}}(),Ht=function(){var Ce=Object(d.a)(r.a.mark(function V(){var he,Fe,be;return r.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(he=Le.mid_to_high_number,Fe=Le.low_to_mid_number,!(!he||!Fe)){ye.next=4;break}return c.b.warn("\u8F93\u5165\u6846\u4E0D\u80FD\u4E3A\u7A7A"),ye.abrupt("return");case 4:if(!(Number(he)===0||Number(Fe)===0)){ye.next=7;break}return c.b.warn("\u5FC5\u987B\u8F93\u5165\u5927\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u6570\u5B57"),ye.abrupt("return");case 7:return ye.next=9,Object(J.a)("/api/ec_years/".concat(Ne.ec_year_id,"/ec_course_support_relations.json"),{method:"put",body:Le});case 9:be=ye.sent,be.status===0&&(c.b.success("\u4FDD\u5B58\u6210\u529F"),Xe(!0));case 11:case"end":return ye.stop()}},V)}));return function(){return Ce.apply(this,arguments)}}(),en=Se.length>11?{x:_t.current,y:452}:{x:_t.current},Lt=Y||je;return n.a.createElement("div",{className:P.a.wrap},n.a.createElement(ee.a,{title:"\u8BFE\u7A0B\u77E9\u9635",style:{padding:"12px 0 10px 20px"}}),n.a.createElement("div",{className:P.a.control},n.a.createElement("div",{className:P.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),n.a.createElement(Q.a,{disabled:Lt,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:Ne==null?void 0:Ne.ec_major_school_id,onChange:function(V){return pt(V,"ec_major_school_id")}},$e==null?void 0:$e.map(function(Ce,V){return n.a.createElement(Q.a.Option,{key:V,value:Ce.ec_major_school_id},Ce.name)})),n.a.createElement("div",{className:P.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),n.a.createElement(Q.a,{disabled:Lt,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:Ne==null?void 0:Ne.ec_year_id,onChange:function(V){return pt(V,"ec_year_id")}},Je==null?void 0:Je.map(function(Ce,V){return n.a.createElement(Q.a.Option,{key:V,value:Ce.ec_year_id},Ce.year)})),n.a.createElement(S.a,{disabled:Lt,style:{marginLeft:"auto",transition:"0s",height:30},onClick:function(){return Wt()}},n.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5173\u8054\u5EA6\u8303\u56F4\u8BBE\u7F6E"),n.a.createElement(S.a,{disabled:Lt||!Se.length,style:{transition:"0s",height:30},className:"ml10",onClick:function(){return kt()}},n.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA")),n.a.createElement("div",{className:P.a.textWrap},n.a.createElement("div",{className:P.a.textTitle},"\u8BFE\u7A0B\u4E0E\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5173\u7CFB\u77E9\u9635"),n.a.createElement("div",{className:P.a.row},n.a.createElement("div",null,n.a.createElement("span",{style:{color:"#0152D9"}},"H"),"\u8868\u793A\u5173\u8054\u5EA6\u9AD8\uFF0C",n.a.createElement("span",{style:{color:"#07C160"}},"M"),"\u8868\u793A\u5173\u8054\u5EA6\u4E2D\uFF0C",n.a.createElement("span",{style:{color:"#FF9D18"}},"L"),"\u8868\u793A\u5173\u8054\u5EA6\u4F4E"),n.a.createElement("div",null,n.a.createElement("span",{className:"mr20 font14"},"\u5C55\u793A\u65B9\u5F0F"),n.a.createElement(E.a,{disabled:Lt,checked:Ne.tab==="1",onChange:function(V){return Ct(V,"1")}},"\u5B57\u6BCD"),n.a.createElement(E.a,{disabled:Lt,checked:Ne.tab==="2",onChange:function(V){return Ct(V,"2")}},"\u6570\u5B57")))),n.a.createElement(Z.a,{spinning:Y},Se!=null&&Se.length?n.a.createElement("div",{className:P.a.table},n.a.createElement(f.a,{rowKey:"ec_course_id",columns:U,dataSource:Se,bordered:!0,size:"middle",scroll:en,pagination:!1})):n.a.createElement(T.a,{style:{padding:"70px 0"}})),n.a.createElement(C.a,{title:"\u5173\u8054\u5EA6\u8303\u56F4\u8BBE\u7F6E",visible:tt,centered:!0,onCancel:function(){it(!1),Ot(Ne)},width:"680px",className:P.a.customModal,footer:null},n.a.createElement(Ee.a,{loading:xe},n.a.createElement("aside",{className:"mb20 ml40",style:{color:"#464F66"}},n.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),n.a.createElement("div",null,"1.\u8303\u56F4\u89C4\u5219\u8F93\u5165\u6846\u5FC5\u987B\u8F93\u5165\u5927\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u6570\u5B57\uFF1B"),n.a.createElement("div",{className:"mb10"},"2.\u8303\u56F4\u89C4\u5219\u7684\u524D\u4E00\u4E2A\u6570\u5B57\u5FC5\u987B\u5C0F\u4E8E\u540E\u4E00\u4E2A\u6570\u5B57\u3002")),n.a.createElement(B.a,{className:P.a.head},n.a.createElement(H.a,{style:{width:126}},"\u5173\u8054\u5EA6"),n.a.createElement(H.a,{style:{width:120}},"\u5173\u8054\u5EA6\u7B26\u53F7"),n.a.createElement(H.a,{flex:1},"\u8303\u56F4\u89C4\u5219"),n.a.createElement(H.a,{style:{width:120}},"\u64CD\u4F5C")),n.a.createElement(B.a,{className:P.a.list},n.a.createElement(H.a,{style:{width:126}},"\u9AD8"),n.a.createElement(H.a,{style:{width:120}},"H"),n.a.createElement(H.a,{style:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1},"(",n.a.createElement(o.a,{disabled:Qe,onChange:function(V){return nt(V,"mid_to_high_number")},value:Le.mid_to_high_number,step:1}),",",n.a.createElement(o.a,{value:1,disabled:!0}),"]"),n.a.createElement(H.a,{style:{width:120,borderLeft:"1px solid #EEF2F8",borderBottom:0}})),n.a.createElement(B.a,{className:P.a.list},n.a.createElement(H.a,{style:{width:126}},"\u4E2D"),n.a.createElement(H.a,{style:{width:120}},"M"),n.a.createElement(H.a,{style:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1},"(",n.a.createElement(o.a,{disabled:Qe,onChange:function(V){return nt(V,"low_to_mid_number")},value:Le.low_to_mid_number,step:1}),",",n.a.createElement(o.a,{disabled:Qe,onChange:function(V){return nt(V,"mid_to_high_number")},value:Le.mid_to_high_number,step:1}),"]"),n.a.createElement(H.a,{style:{width:120,borderLeft:"1px solid #EEF2F8",borderBottom:0,display:"flex",justifyContent:"center",alignItems:"center"}},Qe?n.a.createElement(s.a,{title:"\u7F16\u8F91"},n.a.createElement("i",{onClick:function(){return Xe(!1)},className:"iconfont icon-bianji7 current c-gcrz-primary"})):n.a.createElement(p.Fragment,null,n.a.createElement(s.a,{title:"\u4FDD\u5B58"},n.a.createElement("i",{onClick:Ht,className:"iconfont icon-baocun1 mr20 current c-gcrz-primary"})),n.a.createElement(s.a,{title:"\u53D6\u6D88"},n.a.createElement("i",{onClick:function(){Xe(!0),at(Object(v.a)({},ft.current))},className:"iconfont icon-quxiao current c-gcrz-primary"}))))),n.a.createElement(B.a,{style:{marginBottom:20},className:P.a.list},n.a.createElement(H.a,{style:{width:126}},"\u4F4E"),n.a.createElement(H.a,{style:{width:120}},"L"),n.a.createElement(H.a,{style:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1},"(",n.a.createElement(o.a,{disabled:!0,value:0}),",",n.a.createElement(o.a,{onChange:function(V){return nt(V,"low_to_mid_number")},value:Le.low_to_mid_number,disabled:Qe,step:1}),"]"),n.a.createElement(H.a,{style:{width:120,borderLeft:"1px solid #EEF2F8"}})))))};w.default=Object(b.a)(function(ae){var $=ae.user;return{user:$}})(g)},"6+eU":function(De,w,e){"use strict";e.d(w,"a",function(){return v});var j=e("wx14"),C=e("rePB"),re=e("VTBJ"),Ee=e("1OyB"),M=e("vuIU"),o=e("Ji7U"),ie=e("LK+K"),B=e("q1tI"),h=e.n(B),H=e("TSYQ"),K=e.n(H),Z=function(x){var l,s="".concat(x.rootPrefixCls,"-item"),t=K()(s,"".concat(s,"-").concat(x.page),(l={},Object(C.a)(l,"".concat(s,"-active"),x.active),Object(C.a)(l,x.className,!!x.className),Object(C.a)(l,"".concat(s,"-disabled"),!x.page),l)),c=function(){x.onClick(x.page)},d=function(a){x.onKeyPress(a,x.onClick,x.page)};return h.a.createElement("li",{title:x.showTitle?x.page:null,className:t,onClick:c,onKeyPress:d,tabIndex:"0"},x.itemRender(x.page,"page",h.a.createElement("a",{rel:"nofollow"},x.page)))},ne=Z,T={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},m=function(y){Object(o.a)(l,y);var x=Object(ie.a)(l);function l(){var s;Object(Ee.a)(this,l);for(var t=arguments.length,c=new Array(t),d=0;d=0||i.relatedTarget.className.indexOf("".concat(n,"-next"))>=0))return;s.setState({goInputText:""}),p(s.getValidValue())},s.go=function(i){var a=s.state.goInputText;if(a==="")return;(i.keyCode===T.ENTER||i.type==="click")&&(s.setState({goInputText:""}),s.props.quickGo(s.getValidValue()))},s}return Object(M.a)(l,[{key:"getValidValue",value:function(){var t=this.state,c=t.goInputText,d=t.current;return!c||isNaN(c)?d:Number(c)}},{key:"getPageSizeOptions",value:function(){var t=this.props,c=t.pageSize,d=t.pageSizeOptions;return d.some(function(i){return i.toString()===c.toString()})?d:d.concat([c.toString()]).sort(function(i,a){var r=isNaN(Number(i))?0:Number(i),p=isNaN(Number(a))?0:Number(a);return r-p})}},{key:"render",value:function(){var t=this,c=this.props,d=c.pageSize,i=c.locale,a=c.rootPrefixCls,r=c.changeSize,p=c.quickGo,n=c.goButton,O=c.selectComponentClass,P=c.buildOptionText,F=c.selectPrefixCls,b=c.disabled,J=this.state.goInputText,q="".concat(a,"-options"),ge=O,de=null,W=null,z=null;if(!r&&!p)return null;var ee=this.getPageSizeOptions();if(r&&ge){var X=ee.map(function(g,ae){return h.a.createElement(ge.Option,{key:ae,value:g.toString()},(P||t.buildOptionText)(g))});de=h.a.createElement(ge,{disabled:b,prefixCls:F,showSearch:!1,className:"".concat(q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||ee[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ae){return ae.parentNode}},X)}return p&&(n&&(z=typeof n=="boolean"?h.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:b,className:"".concat(q,"-quick-jumper-button")},i.jump_to_confirm):h.a.createElement("span",{onClick:this.go,onKeyUp:this.go},n)),W=h.a.createElement("div",{className:"".concat(q,"-quick-jumper")},i.jump_to,h.a.createElement("input",{disabled:b,type:"text",value:J,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),i.page,z)),h.a.createElement("li",{className:"".concat(q)},de,W)}}]),l}(h.a.Component);m.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=m,R=e("N2Kk");function E(){}function N(y){return typeof y=="number"&&isFinite(y)&&Math.floor(y)===y}function S(y,x,l){return l}function _(y,x,l){var s=typeof y=="undefined"?x.pageSize:y;return Math.floor((l.total-1)/s)+1}var Q=function(y){Object(o.a)(l,y);var x=Object(ie.a)(l);function l(s){var t;Object(Ee.a)(this,l),t=x.call(this,s),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(_(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(r,p){var n=t.props.prefixCls,O=r||h.a.createElement("button",{type:"button","aria-label":p,className:"".concat(n,"-item-link")});return typeof r=="function"&&(O=h.a.createElement(r,Object(re.a)({},t.props))),O},t.savePaginationNode=function(r){t.paginationNode=r},t.isValid=function(r){return N(r)&&r!==t.state.current},t.shouldDisplayQuickJumper=function(){var r=t.props,p=r.showQuickJumper,n=r.pageSize,O=r.total;return O<=n?!1:p},t.handleKeyDown=function(r){(r.keyCode===T.ARROW_UP||r.keyCode===T.ARROW_DOWN)&&r.preventDefault()},t.handleKeyUp=function(r){var p=t.getValidValue(r),n=t.state.currentInputValue;p!==n&&t.setState({currentInputValue:p}),r.keyCode===T.ENTER?t.handleChange(p):r.keyCode===T.ARROW_UP?t.handleChange(p-1):r.keyCode===T.ARROW_DOWN&&t.handleChange(p+1)},t.changePageSize=function(r){var p=t.state.current,n=_(r,t.state,t.props);p=p>n?n:p,n===0&&(p=t.state.current),typeof r=="number"&&("pageSize"in t.props||t.setState({pageSize:r}),"current"in t.props||t.setState({current:p,currentInputValue:p})),t.props.onShowSizeChange(p,r),"onChange"in t.props&&t.props.onChange&&t.props.onChange(p,r)},t.handleChange=function(r){var p=t.props.disabled,n=r;if(t.isValid(n)&&!p){var O=_(void 0,t.state,t.props);n>O?n=O:n<1&&(n=1),"current"in t.props||t.setState({current:n,currentInputValue:n});var P=t.state.pageSize;return t.props.onChange(n,P),n}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current<_(void 0,t.state,t.props)},t.runIfEnter=function(r,p){if(r.key==="Enter"||r.charCode===13){for(var n=arguments.length,O=new Array(n>2?n-2:0),P=2;P=d?a=d:a=Number(c),a}},{key:"getShowSizeChanger",value:function(){var t=this.props,c=t.showSizeChanger,d=t.total,i=t.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:d>i}},{key:"renderPrev",value:function(t){var c=this.props,d=c.prevIcon,i=c.itemRender,a=i(t,"prev",this.getItemIcon(d,"prev page")),r=!this.hasPrev();return Object(B.isValidElement)(a)?Object(B.cloneElement)(a,{disabled:r}):a}},{key:"renderNext",value:function(t){var c=this.props,d=c.nextIcon,i=c.itemRender,a=i(t,"next",this.getItemIcon(d,"next page")),r=!this.hasNext();return Object(B.isValidElement)(a)?Object(B.cloneElement)(a,{disabled:r}):a}},{key:"render",value:function(){var t=this,c=this.props,d=c.prefixCls,i=c.className,a=c.style,r=c.disabled,p=c.hideOnSinglePage,n=c.total,O=c.locale,P=c.showQuickJumper,F=c.showLessItems,b=c.showTitle,J=c.showTotal,q=c.simple,ge=c.itemRender,de=c.showPrevNextJumpers,W=c.jumpPrevIcon,z=c.jumpNextIcon,ee=c.selectComponentClass,X=c.selectPrefixCls,g=c.pageSizeOptions,ae=this.state,$=ae.current,ve=ae.pageSize,ue=ae.currentInputValue;if(p===!0&&n<=ve)return null;var se=_(void 0,this.state,this.props),fe=[],Me=null,Pe=null,Be=null,$e=null,we=null,_e=P&&P.goButton,Oe=F?1:2,Je=$-1>0?$-1:0,Ze=$+1=Oe*2&&$!==1+2&&(fe[0]=Object(B.cloneElement)(fe[0],{className:"".concat(d,"-item-after-jump-prev")}),fe.unshift(Me)),se-$>=Oe*2&&$!==se-2&&(fe[fe.length-1]=Object(B.cloneElement)(fe[fe.length-1],{className:"".concat(d,"-item-before-jump-next")}),fe.push(Pe)),A!==1&&fe.unshift(Be),G!==se&&fe.push($e)}var U=null;J&&(U=h.a.createElement("li",{className:"".concat(d,"-total-text")},J(n,[n===0?0:($-1)*ve+1,$*ve>n?n:$*ve])));var L=!this.hasPrev()||!se,I=!this.hasNext()||!se;return h.a.createElement("ul",Object(j.a)({className:K()(d,i,Object(C.a)({},"".concat(d,"-disabled"),r)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},qe),U,h.a.createElement("li",{title:b?O.prev_page:null,onClick:this.prev,tabIndex:L?null:0,onKeyPress:this.runIfEnterPrev,className:K()("".concat(d,"-prev"),Object(C.a)({},"".concat(d,"-disabled"),L)),"aria-disabled":L},this.renderPrev(Je)),fe,h.a.createElement("li",{title:b?O.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:K()("".concat(d,"-next"),Object(C.a)({},"".concat(d,"-disabled"),I)),"aria-disabled":I},this.renderNext(Ze)),h.a.createElement(f,{disabled:r,locale:O,rootPrefixCls:d,selectComponentClass:ee,selectPrefixCls:X,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:ve,pageSizeOptions:g,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(t,c){var d={};if("current"in t&&(d.current=t.current,t.current!==c.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==c.pageSize){var i=c.current,a=_(t.pageSize,c,t);i=i>a?a:i,"current"in t||(d.current=i,d.currentInputValue=i),d.pageSize=t.pageSize}return d}}]),l}(h.a.Component);Q.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:E,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:E,locale:R.a,style:{},itemRender:S,totalBoundaryShowSizeChanger:50};var v=Q},"6RRn":function(De,w,e){"use strict";var j=e("wCXF"),C=e("n6Qo");e.d(w,"b",function(){return C.a});var re=e("IBYe"),Ee=e("6eGT"),M=e("hW8S");e.d(w,"a",function(){return M.a}),w.c=j.b},"6eGT":function(De,w,e){"use strict";function j(C){return null}w.a=j},"815F":function(De,w,e){"use strict";e.d(w,"e",function(){return ie}),e.d(w,"c",function(){return h}),e.d(w,"d",function(){return H}),e.d(w,"a",function(){return Z}),e.d(w,"f",function(){return ne}),e.d(w,"b",function(){return T});var j=e("KQm4"),C=e("VTBJ"),re=e("Ff2n"),Ee=e("Zm9Q"),M=e("Kwbf"),o=e("OZM5");function ie(m,f){return m!=null?m:f}function B(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function R(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(E||[]).forEach(function(S){var _=S.key,Q=S.children;Object(M.a)(_!=null,"Tree node must have a certain key: [".concat(N).concat(_,"]"));var v=String(_);Object(M.a)(!f.has(v)||_===null||_===void 0,"Same 'key' exist in the Tree: ".concat(v)),f.set(v,!0),R(Q,"".concat(N).concat(v," > "))})}R(m)}function h(m){function f(R){var E=Object(Ee.a)(R);return E.map(function(N){if(!Object(o.i)(N))return Object(M.a)(!N,"Tree/TreeNode can only accept TreeNode as children."),null;var S=N.key,_=N.props,Q=_.children,v=Object(re.a)(_,["children"]),y=Object(C.a)({key:S},v),x=f(Q);return x.length&&(y.children=x),y}).filter(function(N){return N})}return f(m)}function H(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(f===!0?[]:f),E=[];function N(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return S.map(function(Q,v){var y=Object(o.h)(_?_.pos:"0",v),x=ie(Q.key,y),l=Object(C.a)(Object(C.a)({},Q),{},{parent:_,pos:y,children:null,data:Q,isStart:[].concat(Object(j.a)(_?_.isStart:[]),[v===0]),isEnd:[].concat(Object(j.a)(_?_.isEnd:[]),[v===S.length-1])});return E.push(l),f===!0||R.has(x)?l.children=N(Q.children||[],l):l.children=[],l})}return N(m),E}function K(m,f,R){var E;R?typeof R=="string"?E=function(_){return _[R]}:typeof R=="function"&&(E=function(_){return R(_)}):E=function(_,Q){return ie(_.key,Q)};function N(S,_,Q){var v=S?S.children:m,y=S?Object(o.h)(Q.pos,_):"0";if(S){var x=E(S,y),l={node:S,index:_,pos:y,key:x,parentPos:Q.node?Q.pos:null,level:Q.level+1};f(l)}v&&v.forEach(function(s,t){N(s,t,{node:S,pos:y,level:Q?Q.level+1:-1})})}N(null)}function Z(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=f.initWrapper,E=f.processEntity,N=f.onProcessFinished,S=arguments.length>2?arguments[2]:void 0,_={},Q={},v={posEntities:_,keyEntities:Q};return R&&(v=R(v)||v),K(m,function(y){var x=y.node,l=y.index,s=y.pos,t=y.key,c=y.parentPos,d=y.level,i={node:x,index:l,key:t,pos:s,level:d},a=ie(t,s);_[s]=i,Q[a]=i,i.parent=_[c],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i)),E&&E(i,v)},S),N&&N(v),v}function ne(m,f){var R=f.expandedKeys,E=f.selectedKeys,N=f.loadedKeys,S=f.loadingKeys,_=f.checkedKeys,Q=f.halfCheckedKeys,v=f.dragOverNodeKey,y=f.dropPosition,x=f.keyEntities,l=x[m],s={eventKey:m,expanded:R.indexOf(m)!==-1,selected:E.indexOf(m)!==-1,loaded:N.indexOf(m)!==-1,loading:S.indexOf(m)!==-1,checked:_.indexOf(m)!==-1,halfChecked:Q.indexOf(m)!==-1,pos:String(l?l.pos:""),dragOver:v===m&&y===0,dragOverGapTop:v===m&&y===-1,dragOverGapBottom:v===m&&y===1};return s}function T(m){var f=m.data,R=m.expanded,E=m.selected,N=m.checked,S=m.loaded,_=m.loading,Q=m.halfChecked,v=m.dragOver,y=m.dragOverGapTop,x=m.dragOverGapBottom,l=m.pos,s=m.active,t=Object(C.a)(Object(C.a)({},f),{},{expanded:R,selected:E,checked:N,loaded:S,loading:_,halfChecked:Q,dragOver:v,dragOverGapTop:y,dragOverGapBottom:x,pos:l,active:s});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(M.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),m}}),t}},IBYe:function(De,w,e){"use strict";function j(C){return null}w.a=j},LdHM:function(De,w,e){"use strict";e.d(w,"b",function(){return S}),e.d(w,"a",function(){return Q});var j=e("1OyB"),C=e("vuIU"),re=e("Ji7U"),Ee=e("LK+K"),M=e("q1tI"),o=e("rePB"),ie=e("Ff2n"),B=e("ODXe"),h=e("4IlW"),H=e("bX4T"),K=e("YrtM"),Z=e("TSYQ"),ne=e.n(Z),T=e("+nKL"),m=e("8OUc"),f=function(b,J){var q=b.prefixCls,ge=b.id,de=b.flattenOptions,W=b.childrenAsData,z=b.values,ee=b.searchValue,X=b.multiple,g=b.defaultActiveFirstOption,ae=b.height,$=b.itemHeight,ve=b.notFoundContent,ue=b.open,se=b.menuItemSelectedIcon,fe=b.virtual,Me=b.onSelect,Pe=b.onToggleOpen,Be=b.onActiveValue,$e=b.onScroll,we=b.onMouseEnter,_e="".concat(q,"-item"),Oe=Object(K.a)(function(){return de},[ue,de],function(k,U){return U[0]&&k[1]!==U[1]}),Je=M.useRef(null),Ze=function(U){U.preventDefault()},qe=function(U){Je.current&&Je.current.scrollTo({index:U})},ot=function(U){for(var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=Oe.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;return Object(y.a)(F).map(function(J,q){if(!M.isValidElement(J)||!J.type)return null;var ge=J.type.isSelectOptGroup,de=J.key,W=J.props,z=W.children,ee=Object(ie.a)(W,["children"]);return b||!ge?x(J):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(de===null?q:de,"__"),label:de},ee),{},{options:l(z)})}).filter(function(J){return J})}var s=e("2Qr1"),t=e("qNPg"),c=e("U8pU"),d=e("Kwbf"),i=e("WKfj");function a(F){var b=F.mode,J=F.options,q=F.children,ge=F.backfill,de=F.allowClear,W=F.placeholder,z=F.getInputElement,ee=F.showSearch,X=F.onSearch,g=F.defaultOpen,ae=F.autoFocus,$=F.labelInValue,ve=F.value,ue=F.inputValue,se=F.optionLabelProp,fe=b==="multiple"||b==="tags",Me=ee!==void 0?ee:fe||b==="combobox",Pe=J||l(q);if(Object(d.a)(b!=="tags"||Pe.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),b==="tags"||b==="combobox"){var Be=Pe.some(function(_e){return _e.options?_e.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(d.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(b!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(b==="combobox"||!ge,"`backfill` only works with `combobox` mode."),Object(d.a)(b==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(d.b)(b!=="combobox"||!z||!de||!W,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),X&&!Me&&b!=="combobox"&&b!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!g||ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ve!=null){var $e=Object(i.d)(ve);Object(d.a)(!$||$e.every(function(_e){return Object(c.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!fe||Array.isArray(ve),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var we=null;Object(y.a)(q).some(function(_e){if(!M.isValidElement(_e)||!_e.type)return!1;var Oe=_e.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var Je=Object(y.a)(_e.props.children).every(function(Ze){return!M.isValidElement(Ze)||!_e.type||Ze.type.isSelectOption?!0:(we=Ze.type,!1)});return!Je}return we=Oe,!0}),we&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(d.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var r=a,p=Object(t.a)({prefixCls:"rc-select",components:{optionList:E},convertChildrenToData:l,flattenOptions:s.d,getLabeledValue:s.e,filterOptions:s.b,isValueDisabled:s.g,findValueOption:s.c,warningProps:r,fillOptionsWithMissingValue:s.a}),n=function(F){Object(re.a)(J,F);var b=Object(Ee.a)(J);function J(){var q;return Object(j.a)(this,J),q=b.apply(this,arguments),q.selectRef=M.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(C.a)(J,[{key:"render",value:function(){return M.createElement(p,Object.assign({ref:this.selectRef},this.props))}}]),J}(M.Component);n.Option=S,n.OptGroup=Q;var O=n,P=w.c=O},NvD2:function(De,w,e){"use strict";e.d(w,"a",function(){return o});var j=e("Kwbf");function C(ie,B){var h=new Set;return ie.forEach(function(H){B.has(H)||h.add(H)}),h}function re(ie){var B=ie||{},h=B.disabled,H=B.disableCheckbox,K=B.checkable;return!!(h||H)||K===!1}function Ee(ie,B,h,H){for(var K=new Set(ie),Z=new Set,ne=0;ne<=h;ne+=1){var T=B.get(ne)||new Set;T.forEach(function(E){var N=E.key,S=E.node,_=E.children,Q=_===void 0?[]:_;K.has(N)&&!H(S)&&Q.filter(function(v){return!H(v.node)}).forEach(function(v){K.add(v.key)})})}for(var m=new Set,f=h;f>=0;f-=1){var R=B.get(f)||new Set;R.forEach(function(E){var N=E.parent,S=E.node;if(H(S)||!E.parent||m.has(E.parent.key))return;if(H(E.parent.node)){m.add(N.key);return}var _=!0,Q=!1;(N.children||[]).filter(function(v){return!H(v.node)}).forEach(function(v){var y=v.key,x=K.has(y);_&&!x&&(_=!1),!Q&&(x||Z.has(y))&&(Q=!0)}),_&&K.add(N.key),Q&&Z.add(N.key),m.add(N.key)})}return{checkedKeys:Array.from(K),halfCheckedKeys:Array.from(C(Z,K))}}function M(ie,B,h,H,K){for(var Z=new Set(ie),ne=new Set(B),T=0;T<=H;T+=1){var m=h.get(T)||new Set;m.forEach(function(N){var S=N.key,_=N.node,Q=N.children,v=Q===void 0?[]:Q;!Z.has(S)&&!ne.has(S)&&!K(_)&&v.filter(function(y){return!K(y.node)}).forEach(function(y){Z.delete(y.key)})})}ne=new Set;for(var f=new Set,R=H;R>=0;R-=1){var E=h.get(R)||new Set;E.forEach(function(N){var S=N.parent,_=N.node;if(K(_)||!N.parent||f.has(N.parent.key))return;if(K(N.parent.node)){f.add(S.key);return}var Q=!0,v=!1;(S.children||[]).filter(function(y){return!K(y.node)}).forEach(function(y){var x=y.key,l=Z.has(x);Q&&!l&&(Q=!1),!v&&(l||ne.has(x))&&(v=!0)}),Q||Z.delete(S.key),v&&ne.add(S.key),f.add(S.key)})}return{checkedKeys:Array.from(Z),halfCheckedKeys:Array.from(C(ne,Z))}}function o(ie,B,h,H){var K=[],Z;H?Z=H:Z=re;var ne=new Set(ie.filter(function(R){var E=!!h[R];return E||K.push(R),E})),T=new Map,m=0;Object.keys(h).forEach(function(R){var E=h[R],N=E.level,S=T.get(N);S||(S=new Set,T.set(N,S)),S.add(E),m=Math.max(m,N)}),Object(j.a)(!K.length,"Tree missing follow keys: ".concat(K.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var f;return B===!0?f=Ee(ne,T,m,Z):f=M(ne,B.halfCheckedKeys,T,m,Z),f}},OZM5:function(De,w,e){"use strict";e.d(w,"b",function(){return H}),e.d(w,"a",function(){return K}),e.d(w,"k",function(){return Z}),e.d(w,"h",function(){return ne}),e.d(w,"i",function(){return T}),e.d(w,"g",function(){return m}),e.d(w,"c",function(){return f}),e.d(w,"d",function(){return R}),e.d(w,"j",function(){return S}),e.d(w,"e",function(){return _}),e.d(w,"f",function(){return Q});var j=e("KQm4"),C=e("U8pU"),re=e("Ff2n"),Ee=e("q1tI"),M=e.n(Ee),o=e("Kwbf"),ie=e("WaYH"),B=.25,h=2;function H(v,y){var x=v.slice(),l=x.indexOf(y);return l>=0&&x.splice(l,1),x}function K(v,y){var x=v.slice();return x.indexOf(y)===-1&&x.push(y),x}function Z(v){return v.split("-")}function ne(v,y){return"".concat(v,"-").concat(y)}function T(v){return v&&v.type&&v.type.isTreeNode}function m(v,y){var x=[v],l=y[v];function s(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(c){var d=c.key,i=c.children;x.push(d),s(i)})}return s(l.children),x}function f(v,y){var x=v.clientY,l=y.selectHandle.getBoundingClientRect(),s=l.top,t=l.bottom,c=l.height,d=Math.max(c*B,h);return x<=s+d?-1:x>=t-d?1:0}function R(v,y){if(!v)return;var x=y.multiple;return x?v.slice():v.length?[v[0]]:v}var E=function(y){return y};function N(v,y){if(!v)return[];var x=y||{},l=x.processProps,s=l===void 0?E:l,t=Array.isArray(v)?v:[v];return t.map(function(c){var d=c.children,i=Object(re.a)(c,["children"]),a=N(d,y);return M.a.createElement(ie.a,Object.assign({},s(i)),a)})}function S(v){if(!v)return null;var y;if(Array.isArray(v))y={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(C.a)(v)==="object")y={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return y}function _(v,y){var x=new Set;function l(s){if(x.has(s))return;var t=y[s];if(!t)return;x.add(s);var c=t.parent,d=t.node;if(d.disabled)return;c&&l(c.key)}return(v||[]).forEach(function(s){l(s)}),Object(j.a)(x)}function Q(v){var y={};return Object.keys(v).forEach(function(x){(x.startsWith("data-")||x.startsWith("aria-"))&&(y[x]=v[x])}),y}},PsNh:function(De,w,e){De.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(De,w,e){var j=e("wTVA"),C=e("EbDI"),re=e("ZhPi"),Ee=e("wkBT");function M(o){return j(o)||C(o)||re(o)||Ee()}De.exports=M,De.exports.__esModule=!0,De.exports.default=De.exports},WaYH:function(De,w,e){"use strict";var j=e("rePB"),C=e("Ff2n"),re=e("VTBJ"),Ee=e("1OyB"),M=e("vuIU"),o=e("JX7q"),ie=e("Ji7U"),B=e("LK+K"),h=e("q1tI"),H=e("TSYQ"),K=e.n(H),Z=e("sboe"),ne=e("OZM5"),T=function(y){var x=y.prefixCls,l=y.level,s=y.isStart,t=y.isEnd;if(!l)return null;for(var c="".concat(x,"-indent-unit"),d=[],i=0;i(Ee||0)&&ye<1)&&(ce=""),he==="low_to_mid_number"&&!(ye>0&&ye<(Fe||1))&&(ce="")}ce[0]==="."&&(ce=""),Le[he]=ce,at(Object(v.a)({},Le))},Ct=function(V,he){Ne.tab=he,Pt(Object(v.a)({},Ne)),Tt(Object(q.cloneDeep)(It.current))},At=[{title:"\u8BFE\u7A0B\u540D\u79F0",dataIndex:"name",fixed:"left"},{title:"1.\u95EE\u9898\u5206\u6790",align:"center",children:[{align:"center",title:"\u6307\u6807\u70B91-1",dataIndex:"age1"},{align:"center",title:"\u6307\u6807\u70B91-2",dataIndex:"age2"}]},{align:"center",title:"2.\u8BBE\u8BA1/\u5F00\u53D1\u89E3\u51B3\u65B9\u6848",children:[{title:"\u6307\u6807\u70B92-1",align:"center",dataIndex:"companyName1"},{title:"\u6307\u6807\u70B92-2",align:"center",dataIndex:"companyName2"},{title:"\u6307\u6807\u70B92-3",align:"center",dataIndex:"companyName3"}]},{title:"3.\u8BED\u8A00\u89E3\u51B3",align:"center",children:[{title:"\u6307\u6807\u70B93-1",align:"center",dataIndex:"gender1"},{title:"\u6307\u6807\u70B93-2",align:"center",dataIndex:"gender2"},{title:"\u6307\u6807\u70B93-3",align:"center",dataIndex:"gender3"}]}],Vt=function(V){var he=V;return he=isNaN(he)?"":he,he[0]==="."&&(he=""),he},Wt=function(){var Ce=Object(d.a)(r.a.mark(function V(){var he;return r.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return st(!0),it(!0),Ee.next=4,Object(J.a)("/api/ec_years/".concat(Ne.ec_year_id,"/ec_course_support_relations.json"),{method:"get"});case 4:he=Ee.sent,he&&(st(!1),at(Object(v.a)({},he)),ft.current=Object(v.a)({},he));case 6:case"end":return Ee.stop()}},V)}));return function(){return Ce.apply(this,arguments)}}(),Ht=function(){var Ce=Object(d.a)(r.a.mark(function V(){var he,Fe,Ee;return r.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(he=Le.mid_to_high_number,Fe=Le.low_to_mid_number,!(!he||!Fe)){ye.next=4;break}return c.b.warn("\u8F93\u5165\u6846\u4E0D\u80FD\u4E3A\u7A7A"),ye.abrupt("return");case 4:if(!(Number(he)===0||Number(Fe)===0)){ye.next=7;break}return c.b.warn("\u5FC5\u987B\u8F93\u5165\u5927\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u6570\u5B57"),ye.abrupt("return");case 7:return ye.next=9,Object(J.a)("/api/ec_years/".concat(Ne.ec_year_id,"/ec_course_support_relations.json"),{method:"put",body:Le});case 9:Ee=ye.sent,Ee.status===0&&(c.b.success("\u4FDD\u5B58\u6210\u529F"),Xe(!0));case 11:case"end":return ye.stop()}},V)}));return function(){return Ce.apply(this,arguments)}}(),en=Se.length>11?{x:_t.current,y:452}:{x:_t.current},Lt=Y||je;return n.a.createElement("div",{className:P.a.wrap},n.a.createElement(ee.a,{title:"\u8BFE\u7A0B\u77E9\u9635",style:{padding:"12px 0 10px 20px"}}),n.a.createElement("div",{className:P.a.control},n.a.createElement("div",{className:P.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),n.a.createElement(Q.a,{disabled:Lt,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:Ne==null?void 0:Ne.ec_major_school_id,onChange:function(V){return pt(V,"ec_major_school_id")}},$e==null?void 0:$e.map(function(Ce,V){return n.a.createElement(Q.a.Option,{key:V,value:Ce.ec_major_school_id},Ce.name)})),n.a.createElement("div",{className:P.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),n.a.createElement(Q.a,{disabled:Lt,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:Ne==null?void 0:Ne.ec_year_id,onChange:function(V){return pt(V,"ec_year_id")}},Je==null?void 0:Je.map(function(Ce,V){return n.a.createElement(Q.a.Option,{key:V,value:Ce.ec_year_id},Ce.year)})),n.a.createElement(S.a,{disabled:Lt,style:{marginLeft:"auto",transition:"0s",height:30},onClick:function(){return Wt()}},n.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5173\u8054\u5EA6\u8303\u56F4\u8BBE\u7F6E"),n.a.createElement(S.a,{disabled:Lt||!Se.length,style:{transition:"0s",height:30},className:"ml10",onClick:function(){return kt()}},n.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA")),n.a.createElement("div",{className:P.a.textWrap},n.a.createElement("div",{className:P.a.textTitle},"\u8BFE\u7A0B\u4E0E\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5173\u7CFB\u77E9\u9635"),n.a.createElement("div",{className:P.a.row},n.a.createElement("div",null,n.a.createElement("span",{style:{color:"#0152D9"}},"H"),"\u8868\u793A\u5173\u8054\u5EA6\u9AD8\uFF0C",n.a.createElement("span",{style:{color:"#07C160"}},"M"),"\u8868\u793A\u5173\u8054\u5EA6\u4E2D\uFF0C",n.a.createElement("span",{style:{color:"#FF9D18"}},"L"),"\u8868\u793A\u5173\u8054\u5EA6\u4F4E"),n.a.createElement("div",null,n.a.createElement("span",{className:"mr20 font14"},"\u5C55\u793A\u65B9\u5F0F"),n.a.createElement(b.a,{disabled:Lt,checked:Ne.tab==="1",onChange:function(V){return Ct(V,"1")}},"\u5B57\u6BCD"),n.a.createElement(b.a,{disabled:Lt,checked:Ne.tab==="2",onChange:function(V){return Ct(V,"2")}},"\u6570\u5B57")))),n.a.createElement(Z.a,{spinning:Y},Se!=null&&Se.length?n.a.createElement("div",{className:P.a.table},n.a.createElement(f.a,{rowKey:"ec_course_id",columns:U,dataSource:Se,bordered:!0,size:"middle",scroll:en,pagination:!1})):n.a.createElement(T.a,{style:{padding:"70px 0"}})),n.a.createElement(C.a,{title:"\u5173\u8054\u5EA6\u8303\u56F4\u8BBE\u7F6E",visible:tt,centered:!0,onCancel:function(){it(!1),Ot(Ne)},width:"680px",className:P.a.customModal,footer:null},n.a.createElement(be.a,{loading:xe},n.a.createElement("aside",{className:"mb20 ml40",style:{color:"#464F66"}},n.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),n.a.createElement("div",null,"1.\u8303\u56F4\u89C4\u5219\u8F93\u5165\u6846\u5FC5\u987B\u8F93\u5165\u5927\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u6570\u5B57\uFF1B"),n.a.createElement("div",{className:"mb10"},"2.\u8303\u56F4\u89C4\u5219\u7684\u524D\u4E00\u4E2A\u6570\u5B57\u5FC5\u987B\u5C0F\u4E8E\u540E\u4E00\u4E2A\u6570\u5B57\u3002")),n.a.createElement(B.a,{className:P.a.head},n.a.createElement(H.a,{style:{width:126}},"\u5173\u8054\u5EA6"),n.a.createElement(H.a,{style:{width:120}},"\u5173\u8054\u5EA6\u7B26\u53F7"),n.a.createElement(H.a,{flex:1},"\u8303\u56F4\u89C4\u5219"),n.a.createElement(H.a,{style:{width:120}},"\u64CD\u4F5C")),n.a.createElement(B.a,{className:P.a.list},n.a.createElement(H.a,{style:{width:126}},"\u9AD8"),n.a.createElement(H.a,{style:{width:120}},"H"),n.a.createElement(H.a,{style:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1},"(",n.a.createElement(o.a,{disabled:Qe,onChange:function(V){return nt(V,"mid_to_high_number")},value:Le.mid_to_high_number,step:1}),",",n.a.createElement(o.a,{value:1,disabled:!0}),"]"),n.a.createElement(H.a,{style:{width:120,borderLeft:"1px solid #EEF2F8",borderBottom:0}})),n.a.createElement(B.a,{className:P.a.list},n.a.createElement(H.a,{style:{width:126}},"\u4E2D"),n.a.createElement(H.a,{style:{width:120}},"M"),n.a.createElement(H.a,{style:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1},"(",n.a.createElement(o.a,{disabled:Qe,onChange:function(V){return nt(V,"low_to_mid_number")},value:Le.low_to_mid_number,step:1}),",",n.a.createElement(o.a,{disabled:Qe,onChange:function(V){return nt(V,"mid_to_high_number")},value:Le.mid_to_high_number,step:1}),"]"),n.a.createElement(H.a,{style:{width:120,borderLeft:"1px solid #EEF2F8",borderBottom:0,display:"flex",justifyContent:"center",alignItems:"center"}},Qe?n.a.createElement(s.a,{title:"\u7F16\u8F91"},n.a.createElement("i",{onClick:function(){return Xe(!1)},className:"iconfont icon-bianji7 current c-gcrz-primary"})):n.a.createElement(p.Fragment,null,n.a.createElement(s.a,{title:"\u4FDD\u5B58"},n.a.createElement("i",{onClick:Ht,className:"iconfont icon-baocun1 mr20 current c-gcrz-primary"})),n.a.createElement(s.a,{title:"\u53D6\u6D88"},n.a.createElement("i",{onClick:function(){Xe(!0),at(Object(v.a)({},ft.current))},className:"iconfont icon-quxiao current c-gcrz-primary"}))))),n.a.createElement(B.a,{style:{marginBottom:20},className:P.a.list},n.a.createElement(H.a,{style:{width:126}},"\u4F4E"),n.a.createElement(H.a,{style:{width:120}},"L"),n.a.createElement(H.a,{style:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1},"(",n.a.createElement(o.a,{disabled:!0,value:0}),",",n.a.createElement(o.a,{onChange:function(V){return nt(V,"low_to_mid_number")},value:Le.low_to_mid_number,disabled:Qe,step:1}),"]"),n.a.createElement(H.a,{style:{width:120,borderLeft:"1px solid #EEF2F8"}})))))};w.default=Object(E.a)(function(ae){var $=ae.user;return{user:$}})(g)},"6+eU":function(De,w,e){"use strict";e.d(w,"a",function(){return v});var j=e("wx14"),C=e("rePB"),re=e("VTBJ"),be=e("1OyB"),M=e("vuIU"),o=e("Ji7U"),ie=e("LK+K"),B=e("q1tI"),h=e.n(B),H=e("TSYQ"),K=e.n(H),Z=function(x){var l,s="".concat(x.rootPrefixCls,"-item"),t=K()(s,"".concat(s,"-").concat(x.page),(l={},Object(C.a)(l,"".concat(s,"-active"),x.active),Object(C.a)(l,x.className,!!x.className),Object(C.a)(l,"".concat(s,"-disabled"),!x.page),l)),c=function(){x.onClick(x.page)},d=function(a){x.onKeyPress(a,x.onClick,x.page)};return h.a.createElement("li",{title:x.showTitle?x.page:null,className:t,onClick:c,onKeyPress:d,tabIndex:"0"},x.itemRender(x.page,"page",h.a.createElement("a",{rel:"nofollow"},x.page)))},ne=Z,T={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},m=function(y){Object(o.a)(l,y);var x=Object(ie.a)(l);function l(){var s;Object(be.a)(this,l);for(var t=arguments.length,c=new Array(t),d=0;d=0||i.relatedTarget.className.indexOf("".concat(n,"-next"))>=0))return;s.setState({goInputText:""}),p(s.getValidValue())},s.go=function(i){var a=s.state.goInputText;if(a==="")return;(i.keyCode===T.ENTER||i.type==="click")&&(s.setState({goInputText:""}),s.props.quickGo(s.getValidValue()))},s}return Object(M.a)(l,[{key:"getValidValue",value:function(){var t=this.state,c=t.goInputText,d=t.current;return!c||isNaN(c)?d:Number(c)}},{key:"getPageSizeOptions",value:function(){var t=this.props,c=t.pageSize,d=t.pageSizeOptions;return d.some(function(i){return i.toString()===c.toString()})?d:d.concat([c.toString()]).sort(function(i,a){var r=isNaN(Number(i))?0:Number(i),p=isNaN(Number(a))?0:Number(a);return r-p})}},{key:"render",value:function(){var t=this,c=this.props,d=c.pageSize,i=c.locale,a=c.rootPrefixCls,r=c.changeSize,p=c.quickGo,n=c.goButton,O=c.selectComponentClass,P=c.buildOptionText,F=c.selectPrefixCls,E=c.disabled,J=this.state.goInputText,q="".concat(a,"-options"),ge=O,de=null,W=null,z=null;if(!r&&!p)return null;var ee=this.getPageSizeOptions();if(r&&ge){var X=ee.map(function(g,ae){return h.a.createElement(ge.Option,{key:ae,value:g.toString()},(P||t.buildOptionText)(g))});de=h.a.createElement(ge,{disabled:E,prefixCls:F,showSearch:!1,className:"".concat(q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||ee[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ae){return ae.parentNode}},X)}return p&&(n&&(z=typeof n=="boolean"?h.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:E,className:"".concat(q,"-quick-jumper-button")},i.jump_to_confirm):h.a.createElement("span",{onClick:this.go,onKeyUp:this.go},n)),W=h.a.createElement("div",{className:"".concat(q,"-quick-jumper")},i.jump_to,h.a.createElement("input",{disabled:E,type:"text",value:J,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),i.page,z)),h.a.createElement("li",{className:"".concat(q)},de,W)}}]),l}(h.a.Component);m.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=m,R=e("N2Kk");function b(){}function N(y){return typeof y=="number"&&isFinite(y)&&Math.floor(y)===y}function S(y,x,l){return l}function _(y,x,l){var s=typeof y=="undefined"?x.pageSize:y;return Math.floor((l.total-1)/s)+1}var Q=function(y){Object(o.a)(l,y);var x=Object(ie.a)(l);function l(s){var t;Object(be.a)(this,l),t=x.call(this,s),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(_(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(r,p){var n=t.props.prefixCls,O=r||h.a.createElement("button",{type:"button","aria-label":p,className:"".concat(n,"-item-link")});return typeof r=="function"&&(O=h.a.createElement(r,Object(re.a)({},t.props))),O},t.savePaginationNode=function(r){t.paginationNode=r},t.isValid=function(r){return N(r)&&r!==t.state.current},t.shouldDisplayQuickJumper=function(){var r=t.props,p=r.showQuickJumper,n=r.pageSize,O=r.total;return O<=n?!1:p},t.handleKeyDown=function(r){(r.keyCode===T.ARROW_UP||r.keyCode===T.ARROW_DOWN)&&r.preventDefault()},t.handleKeyUp=function(r){var p=t.getValidValue(r),n=t.state.currentInputValue;p!==n&&t.setState({currentInputValue:p}),r.keyCode===T.ENTER?t.handleChange(p):r.keyCode===T.ARROW_UP?t.handleChange(p-1):r.keyCode===T.ARROW_DOWN&&t.handleChange(p+1)},t.changePageSize=function(r){var p=t.state.current,n=_(r,t.state,t.props);p=p>n?n:p,n===0&&(p=t.state.current),typeof r=="number"&&("pageSize"in t.props||t.setState({pageSize:r}),"current"in t.props||t.setState({current:p,currentInputValue:p})),t.props.onShowSizeChange(p,r),"onChange"in t.props&&t.props.onChange&&t.props.onChange(p,r)},t.handleChange=function(r){var p=t.props.disabled,n=r;if(t.isValid(n)&&!p){var O=_(void 0,t.state,t.props);n>O?n=O:n<1&&(n=1),"current"in t.props||t.setState({current:n,currentInputValue:n});var P=t.state.pageSize;return t.props.onChange(n,P),n}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current<_(void 0,t.state,t.props)},t.runIfEnter=function(r,p){if(r.key==="Enter"||r.charCode===13){for(var n=arguments.length,O=new Array(n>2?n-2:0),P=2;P=d?a=d:a=Number(c),a}},{key:"getShowSizeChanger",value:function(){var t=this.props,c=t.showSizeChanger,d=t.total,i=t.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:d>i}},{key:"renderPrev",value:function(t){var c=this.props,d=c.prevIcon,i=c.itemRender,a=i(t,"prev",this.getItemIcon(d,"prev page")),r=!this.hasPrev();return Object(B.isValidElement)(a)?Object(B.cloneElement)(a,{disabled:r}):a}},{key:"renderNext",value:function(t){var c=this.props,d=c.nextIcon,i=c.itemRender,a=i(t,"next",this.getItemIcon(d,"next page")),r=!this.hasNext();return Object(B.isValidElement)(a)?Object(B.cloneElement)(a,{disabled:r}):a}},{key:"render",value:function(){var t=this,c=this.props,d=c.prefixCls,i=c.className,a=c.style,r=c.disabled,p=c.hideOnSinglePage,n=c.total,O=c.locale,P=c.showQuickJumper,F=c.showLessItems,E=c.showTitle,J=c.showTotal,q=c.simple,ge=c.itemRender,de=c.showPrevNextJumpers,W=c.jumpPrevIcon,z=c.jumpNextIcon,ee=c.selectComponentClass,X=c.selectPrefixCls,g=c.pageSizeOptions,ae=this.state,$=ae.current,ve=ae.pageSize,ue=ae.currentInputValue;if(p===!0&&n<=ve)return null;var se=_(void 0,this.state,this.props),fe=[],Me=null,Pe=null,Be=null,$e=null,we=null,_e=P&&P.goButton,Oe=F?1:2,Je=$-1>0?$-1:0,Ze=$+1=Oe*2&&$!==1+2&&(fe[0]=Object(B.cloneElement)(fe[0],{className:"".concat(d,"-item-after-jump-prev")}),fe.unshift(Me)),se-$>=Oe*2&&$!==se-2&&(fe[fe.length-1]=Object(B.cloneElement)(fe[fe.length-1],{className:"".concat(d,"-item-before-jump-next")}),fe.push(Pe)),A!==1&&fe.unshift(Be),G!==se&&fe.push($e)}var U=null;J&&(U=h.a.createElement("li",{className:"".concat(d,"-total-text")},J(n,[n===0?0:($-1)*ve+1,$*ve>n?n:$*ve])));var L=!this.hasPrev()||!se,I=!this.hasNext()||!se;return h.a.createElement("ul",Object(j.a)({className:K()(d,i,Object(C.a)({},"".concat(d,"-disabled"),r)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},qe),U,h.a.createElement("li",{title:E?O.prev_page:null,onClick:this.prev,tabIndex:L?null:0,onKeyPress:this.runIfEnterPrev,className:K()("".concat(d,"-prev"),Object(C.a)({},"".concat(d,"-disabled"),L)),"aria-disabled":L},this.renderPrev(Je)),fe,h.a.createElement("li",{title:E?O.next_page:null,onClick:this.next,tabIndex:I?null:0,onKeyPress:this.runIfEnterNext,className:K()("".concat(d,"-next"),Object(C.a)({},"".concat(d,"-disabled"),I)),"aria-disabled":I},this.renderNext(Ze)),h.a.createElement(f,{disabled:r,locale:O,rootPrefixCls:d,selectComponentClass:ee,selectPrefixCls:X,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:ve,pageSizeOptions:g,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(t,c){var d={};if("current"in t&&(d.current=t.current,t.current!==c.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==c.pageSize){var i=c.current,a=_(t.pageSize,c,t);i=i>a?a:i,"current"in t||(d.current=i,d.currentInputValue=i),d.pageSize=t.pageSize}return d}}]),l}(h.a.Component);Q.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:b,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:b,locale:R.a,style:{},itemRender:S,totalBoundaryShowSizeChanger:50};var v=Q},"6RRn":function(De,w,e){"use strict";var j=e("wCXF"),C=e("n6Qo");e.d(w,"b",function(){return C.a});var re=e("IBYe"),be=e("6eGT"),M=e("hW8S");e.d(w,"a",function(){return M.a}),w.c=j.b},"6eGT":function(De,w,e){"use strict";function j(C){return null}w.a=j},"815F":function(De,w,e){"use strict";e.d(w,"e",function(){return ie}),e.d(w,"c",function(){return h}),e.d(w,"d",function(){return H}),e.d(w,"a",function(){return Z}),e.d(w,"f",function(){return ne}),e.d(w,"b",function(){return T});var j=e("KQm4"),C=e("VTBJ"),re=e("Ff2n"),be=e("Zm9Q"),M=e("Kwbf"),o=e("OZM5");function ie(m,f){return m!=null?m:f}function B(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function R(b){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(b||[]).forEach(function(S){var _=S.key,Q=S.children;Object(M.a)(_!=null,"Tree node must have a certain key: [".concat(N).concat(_,"]"));var v=String(_);Object(M.a)(!f.has(v)||_===null||_===void 0,"Same 'key' exist in the Tree: ".concat(v)),f.set(v,!0),R(Q,"".concat(N).concat(v," > "))})}R(m)}function h(m){function f(R){var b=Object(be.a)(R);return b.map(function(N){if(!Object(o.i)(N))return Object(M.a)(!N,"Tree/TreeNode can only accept TreeNode as children."),null;var S=N.key,_=N.props,Q=_.children,v=Object(re.a)(_,["children"]),y=Object(C.a)({key:S},v),x=f(Q);return x.length&&(y.children=x),y}).filter(function(N){return N})}return f(m)}function H(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(f===!0?[]:f),b=[];function N(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return S.map(function(Q,v){var y=Object(o.h)(_?_.pos:"0",v),x=ie(Q.key,y),l=Object(C.a)(Object(C.a)({},Q),{},{parent:_,pos:y,children:null,data:Q,isStart:[].concat(Object(j.a)(_?_.isStart:[]),[v===0]),isEnd:[].concat(Object(j.a)(_?_.isEnd:[]),[v===S.length-1])});return b.push(l),f===!0||R.has(x)?l.children=N(Q.children||[],l):l.children=[],l})}return N(m),b}function K(m,f,R){var b;R?typeof R=="string"?b=function(_){return _[R]}:typeof R=="function"&&(b=function(_){return R(_)}):b=function(_,Q){return ie(_.key,Q)};function N(S,_,Q){var v=S?S.children:m,y=S?Object(o.h)(Q.pos,_):"0";if(S){var x=b(S,y),l={node:S,index:_,pos:y,key:x,parentPos:Q.node?Q.pos:null,level:Q.level+1};f(l)}v&&v.forEach(function(s,t){N(s,t,{node:S,pos:y,level:Q?Q.level+1:-1})})}N(null)}function Z(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=f.initWrapper,b=f.processEntity,N=f.onProcessFinished,S=arguments.length>2?arguments[2]:void 0,_={},Q={},v={posEntities:_,keyEntities:Q};return R&&(v=R(v)||v),K(m,function(y){var x=y.node,l=y.index,s=y.pos,t=y.key,c=y.parentPos,d=y.level,i={node:x,index:l,key:t,pos:s,level:d},a=ie(t,s);_[s]=i,Q[a]=i,i.parent=_[c],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i)),b&&b(i,v)},S),N&&N(v),v}function ne(m,f){var R=f.expandedKeys,b=f.selectedKeys,N=f.loadedKeys,S=f.loadingKeys,_=f.checkedKeys,Q=f.halfCheckedKeys,v=f.dragOverNodeKey,y=f.dropPosition,x=f.keyEntities,l=x[m],s={eventKey:m,expanded:R.indexOf(m)!==-1,selected:b.indexOf(m)!==-1,loaded:N.indexOf(m)!==-1,loading:S.indexOf(m)!==-1,checked:_.indexOf(m)!==-1,halfChecked:Q.indexOf(m)!==-1,pos:String(l?l.pos:""),dragOver:v===m&&y===0,dragOverGapTop:v===m&&y===-1,dragOverGapBottom:v===m&&y===1};return s}function T(m){var f=m.data,R=m.expanded,b=m.selected,N=m.checked,S=m.loaded,_=m.loading,Q=m.halfChecked,v=m.dragOver,y=m.dragOverGapTop,x=m.dragOverGapBottom,l=m.pos,s=m.active,t=Object(C.a)(Object(C.a)({},f),{},{expanded:R,selected:b,checked:N,loaded:S,loading:_,halfChecked:Q,dragOver:v,dragOverGapTop:y,dragOverGapBottom:x,pos:l,active:s});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(M.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),m}}),t}},IBYe:function(De,w,e){"use strict";function j(C){return null}w.a=j},LdHM:function(De,w,e){"use strict";e.d(w,"b",function(){return S}),e.d(w,"a",function(){return Q});var j=e("1OyB"),C=e("vuIU"),re=e("Ji7U"),be=e("LK+K"),M=e("q1tI"),o=e("rePB"),ie=e("Ff2n"),B=e("ODXe"),h=e("4IlW"),H=e("bX4T"),K=e("YrtM"),Z=e("TSYQ"),ne=e.n(Z),T=e("+nKL"),m=e("8OUc"),f=function(E,J){var q=E.prefixCls,ge=E.id,de=E.flattenOptions,W=E.childrenAsData,z=E.values,ee=E.searchValue,X=E.multiple,g=E.defaultActiveFirstOption,ae=E.height,$=E.itemHeight,ve=E.notFoundContent,ue=E.open,se=E.menuItemSelectedIcon,fe=E.virtual,Me=E.onSelect,Pe=E.onToggleOpen,Be=E.onActiveValue,$e=E.onScroll,we=E.onMouseEnter,_e="".concat(q,"-item"),Oe=Object(K.a)(function(){return de},[ue,de],function(k,U){return U[0]&&k[1]!==U[1]}),Je=M.useRef(null),Ze=function(U){U.preventDefault()},qe=function(U){Je.current&&Je.current.scrollTo({index:U})},ot=function(U){for(var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=Oe.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;return Object(y.a)(F).map(function(J,q){if(!M.isValidElement(J)||!J.type)return null;var ge=J.type.isSelectOptGroup,de=J.key,W=J.props,z=W.children,ee=Object(ie.a)(W,["children"]);return E||!ge?x(J):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(de===null?q:de,"__"),label:de},ee),{},{options:l(z)})}).filter(function(J){return J})}var s=e("2Qr1"),t=e("qNPg"),c=e("U8pU"),d=e("Kwbf"),i=e("WKfj");function a(F){var E=F.mode,J=F.options,q=F.children,ge=F.backfill,de=F.allowClear,W=F.placeholder,z=F.getInputElement,ee=F.showSearch,X=F.onSearch,g=F.defaultOpen,ae=F.autoFocus,$=F.labelInValue,ve=F.value,ue=F.inputValue,se=F.optionLabelProp,fe=E==="multiple"||E==="tags",Me=ee!==void 0?ee:fe||E==="combobox",Pe=J||l(q);if(Object(d.a)(E!=="tags"||Pe.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),E==="tags"||E==="combobox"){var Be=Pe.some(function(_e){return _e.options?_e.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(d.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(E!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(E==="combobox"||!ge,"`backfill` only works with `combobox` mode."),Object(d.a)(E==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(d.b)(E!=="combobox"||!z||!de||!W,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),X&&!Me&&E!=="combobox"&&E!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!g||ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ve!=null){var $e=Object(i.d)(ve);Object(d.a)(!$||$e.every(function(_e){return Object(c.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!fe||Array.isArray(ve),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var we=null;Object(y.a)(q).some(function(_e){if(!M.isValidElement(_e)||!_e.type)return!1;var Oe=_e.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var Je=Object(y.a)(_e.props.children).every(function(Ze){return!M.isValidElement(Ze)||!_e.type||Ze.type.isSelectOption?!0:(we=Ze.type,!1)});return!Je}return we=Oe,!0}),we&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(d.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var r=a,p=Object(t.a)({prefixCls:"rc-select",components:{optionList:b},convertChildrenToData:l,flattenOptions:s.d,getLabeledValue:s.e,filterOptions:s.b,isValueDisabled:s.g,findValueOption:s.c,warningProps:r,fillOptionsWithMissingValue:s.a}),n=function(F){Object(re.a)(J,F);var E=Object(be.a)(J);function J(){var q;return Object(j.a)(this,J),q=E.apply(this,arguments),q.selectRef=M.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(C.a)(J,[{key:"render",value:function(){return M.createElement(p,Object.assign({ref:this.selectRef},this.props))}}]),J}(M.Component);n.Option=S,n.OptGroup=Q;var O=n,P=w.c=O},NvD2:function(De,w,e){"use strict";e.d(w,"a",function(){return o});var j=e("Kwbf");function C(ie,B){var h=new Set;return ie.forEach(function(H){B.has(H)||h.add(H)}),h}function re(ie){var B=ie||{},h=B.disabled,H=B.disableCheckbox,K=B.checkable;return!!(h||H)||K===!1}function be(ie,B,h,H){for(var K=new Set(ie),Z=new Set,ne=0;ne<=h;ne+=1){var T=B.get(ne)||new Set;T.forEach(function(b){var N=b.key,S=b.node,_=b.children,Q=_===void 0?[]:_;K.has(N)&&!H(S)&&Q.filter(function(v){return!H(v.node)}).forEach(function(v){K.add(v.key)})})}for(var m=new Set,f=h;f>=0;f-=1){var R=B.get(f)||new Set;R.forEach(function(b){var N=b.parent,S=b.node;if(H(S)||!b.parent||m.has(b.parent.key))return;if(H(b.parent.node)){m.add(N.key);return}var _=!0,Q=!1;(N.children||[]).filter(function(v){return!H(v.node)}).forEach(function(v){var y=v.key,x=K.has(y);_&&!x&&(_=!1),!Q&&(x||Z.has(y))&&(Q=!0)}),_&&K.add(N.key),Q&&Z.add(N.key),m.add(N.key)})}return{checkedKeys:Array.from(K),halfCheckedKeys:Array.from(C(Z,K))}}function M(ie,B,h,H,K){for(var Z=new Set(ie),ne=new Set(B),T=0;T<=H;T+=1){var m=h.get(T)||new Set;m.forEach(function(N){var S=N.key,_=N.node,Q=N.children,v=Q===void 0?[]:Q;!Z.has(S)&&!ne.has(S)&&!K(_)&&v.filter(function(y){return!K(y.node)}).forEach(function(y){Z.delete(y.key)})})}ne=new Set;for(var f=new Set,R=H;R>=0;R-=1){var b=h.get(R)||new Set;b.forEach(function(N){var S=N.parent,_=N.node;if(K(_)||!N.parent||f.has(N.parent.key))return;if(K(N.parent.node)){f.add(S.key);return}var Q=!0,v=!1;(S.children||[]).filter(function(y){return!K(y.node)}).forEach(function(y){var x=y.key,l=Z.has(x);Q&&!l&&(Q=!1),!v&&(l||ne.has(x))&&(v=!0)}),Q||Z.delete(S.key),v&&ne.add(S.key),f.add(S.key)})}return{checkedKeys:Array.from(Z),halfCheckedKeys:Array.from(C(ne,Z))}}function o(ie,B,h,H){var K=[],Z;H?Z=H:Z=re;var ne=new Set(ie.filter(function(R){var b=!!h[R];return b||K.push(R),b})),T=new Map,m=0;Object.keys(h).forEach(function(R){var b=h[R],N=b.level,S=T.get(N);S||(S=new Set,T.set(N,S)),S.add(b),m=Math.max(m,N)}),Object(j.a)(!K.length,"Tree missing follow keys: ".concat(K.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var f;return B===!0?f=be(ne,T,m,Z):f=M(ne,B.halfCheckedKeys,T,m,Z),f}},OZM5:function(De,w,e){"use strict";e.d(w,"b",function(){return H}),e.d(w,"a",function(){return K}),e.d(w,"k",function(){return Z}),e.d(w,"h",function(){return ne}),e.d(w,"i",function(){return T}),e.d(w,"g",function(){return m}),e.d(w,"c",function(){return f}),e.d(w,"d",function(){return R}),e.d(w,"j",function(){return S}),e.d(w,"e",function(){return _}),e.d(w,"f",function(){return Q});var j=e("KQm4"),C=e("U8pU"),re=e("Ff2n"),be=e("q1tI"),M=e.n(be),o=e("Kwbf"),ie=e("WaYH"),B=.25,h=2;function H(v,y){var x=v.slice(),l=x.indexOf(y);return l>=0&&x.splice(l,1),x}function K(v,y){var x=v.slice();return x.indexOf(y)===-1&&x.push(y),x}function Z(v){return v.split("-")}function ne(v,y){return"".concat(v,"-").concat(y)}function T(v){return v&&v.type&&v.type.isTreeNode}function m(v,y){var x=[v],l=y[v];function s(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(c){var d=c.key,i=c.children;x.push(d),s(i)})}return s(l.children),x}function f(v,y){var x=v.clientY,l=y.selectHandle.getBoundingClientRect(),s=l.top,t=l.bottom,c=l.height,d=Math.max(c*B,h);return x<=s+d?-1:x>=t-d?1:0}function R(v,y){if(!v)return;var x=y.multiple;return x?v.slice():v.length?[v[0]]:v}var b=function(y){return y};function N(v,y){if(!v)return[];var x=y||{},l=x.processProps,s=l===void 0?b:l,t=Array.isArray(v)?v:[v];return t.map(function(c){var d=c.children,i=Object(re.a)(c,["children"]),a=N(d,y);return M.a.createElement(ie.a,Object.assign({},s(i)),a)})}function S(v){if(!v)return null;var y;if(Array.isArray(v))y={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(C.a)(v)==="object")y={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return y}function _(v,y){var x=new Set;function l(s){if(x.has(s))return;var t=y[s];if(!t)return;x.add(s);var c=t.parent,d=t.node;if(d.disabled)return;c&&l(c.key)}return(v||[]).forEach(function(s){l(s)}),Object(j.a)(x)}function Q(v){var y={};return Object.keys(v).forEach(function(x){(x.startsWith("data-")||x.startsWith("aria-"))&&(y[x]=v[x])}),y}},PsNh:function(De,w,e){De.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(De,w,e){var j=e("wTVA"),C=e("EbDI"),re=e("ZhPi"),be=e("wkBT");function M(o){return j(o)||C(o)||re(o)||be()}De.exports=M,De.exports.__esModule=!0,De.exports.default=De.exports},WaYH:function(De,w,e){"use strict";var j=e("rePB"),C=e("Ff2n"),re=e("VTBJ"),be=e("1OyB"),M=e("vuIU"),o=e("JX7q"),ie=e("Ji7U"),B=e("LK+K"),h=e("q1tI"),H=e("TSYQ"),K=e.n(H),Z=e("sboe"),ne=e("OZM5"),T=function(y){var x=y.prefixCls,l=y.level,s=y.isStart,t=y.isEnd;if(!l)return null;for(var c="".concat(x,"-indent-unit"),d=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:!1,ee=W.getAttribute("id")||W.getAttribute("data-reactid")||W.getAttribute("name");if(z&&r[ee])return r[ee];var X=window.getComputedStyle(W),g=X.getPropertyValue("box-sizing")||X.getPropertyValue("-moz-box-sizing")||X.getPropertyValue("-webkit-box-sizing"),ae=parseFloat(X.getPropertyValue("padding-bottom"))+parseFloat(X.getPropertyValue("padding-top")),$=parseFloat(X.getPropertyValue("border-bottom-width"))+parseFloat(X.getPropertyValue("border-top-width")),ve=a.map(function(se){return"".concat(se,":").concat(X.getPropertyValue(se))}).join(";"),ue={sizingStyle:ve,paddingSize:ae,borderSize:$,boxSizing:g};return z&&ee&&(r[ee]=ue),ue}function O(W){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;p||(p=document.createElement("textarea"),p.setAttribute("tab-index","-1"),p.setAttribute("aria-hidden","true"),document.body.appendChild(p)),W.getAttribute("wrap")?p.setAttribute("wrap",W.getAttribute("wrap")):p.removeAttribute("wrap");var g=n(W,z),ae=g.paddingSize,$=g.borderSize,ve=g.boxSizing,ue=g.sizingStyle;p.setAttribute("style","".concat(ue,";").concat(i)),p.value=W.value||W.placeholder||"";var se=Number.MIN_SAFE_INTEGER,fe=Number.MAX_SAFE_INTEGER,Me=p.scrollHeight,Pe;if(ve==="border-box"?Me+=$:ve==="content-box"&&(Me-=ae),ee!==null||X!==null){p.value=" ";var Be=p.scrollHeight-ae;ee!==null&&(se=Be*ee,ve==="border-box"&&(se=se+ae+$),Me=Math.max(se,Me)),X!==null&&(fe=Be*X,ve==="border-box"&&(fe=fe+ae+$),Pe=Me>fe?"":"hidden",Me=Math.min(fe,Me))}return{height:Me,minHeight:se,maxHeight:fe,overflowY:Pe,resize:"none"}}var P=e("Gytx"),F=e.n(P),b;(function(W){W[W.NONE=0]="NONE",W[W.RESIZING=1]="RESIZING",W[W.RESIZED=2]="RESIZED"})(b||(b={}));var J=function(W){Object(Ee.a)(ee,W);var z=Object(M.a)(ee);function ee(X){var g;return Object(C.a)(this,ee),g=z.call(this,X),g.nextFrameActionId=void 0,g.resizeFrameId=void 0,g.textArea=void 0,g.saveTextArea=function(ae){g.textArea=ae},g.handleResize=function(ae){var $=g.state.resizeStatus,ve=g.props,ue=ve.autoSize,se=ve.onResize;if($!==b.NONE)return;typeof se=="function"&&se(ae),ue&&g.resizeOnNextFrame()},g.resizeOnNextFrame=function(){cancelAnimationFrame(g.nextFrameActionId),g.nextFrameActionId=requestAnimationFrame(g.resizeTextarea)},g.resizeTextarea=function(){var ae=g.props.autoSize;if(!ae||!g.textArea)return;var $=ae.minRows,ve=ae.maxRows,ue=O(g.textArea,!1,$,ve);g.setState({textareaStyles:ue,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(g.resizeFrameId),g.resizeFrameId=requestAnimationFrame(function(){g.setState({resizeStatus:b.RESIZED},function(){g.resizeFrameId=requestAnimationFrame(function(){g.setState({resizeStatus:b.NONE}),g.fixFirefoxAutoScroll()})})})})},g.renderTextArea=function(){var ae=g.props,$=ae.prefixCls,ve=$===void 0?"rc-textarea":$,ue=ae.autoSize,se=ae.onResize,fe=ae.className,Me=ae.disabled,Pe=g.state,Be=Pe.textareaStyles,$e=Pe.resizeStatus,we=Object(t.a)(g.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=d()(ve,fe,Object(B.a)({},"".concat(ve,"-disabled"),Me));"value"in we&&(we.value=we.value||"");var Oe=Object(ie.a)(Object(ie.a)(Object(ie.a)({},g.props.style),Be),$e===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(s,{onResize:g.handleResize,disabled:!(ue||se)},o.createElement("textarea",Object(j.a)({},we,{className:_e,style:Oe,ref:g.saveTextArea})))},g.state={textareaStyles:{},resizeStatus:b.NONE},g}return Object(re.a)(ee,[{key:"componentDidUpdate",value:function(g){(g.value!==this.props.value||!F()(g.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var g=this.textArea.selectionStart,ae=this.textArea.selectionEnd;this.textArea.setSelectionRange(g,ae)}}catch($){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ee}(o.Component),q=J,ge=function(W){Object(Ee.a)(ee,W);var z=Object(M.a)(ee);function ee(X){var g;Object(C.a)(this,ee),g=z.call(this,X),g.resizableTextArea=void 0,g.focus=function(){g.resizableTextArea.textArea.focus()},g.saveTextArea=function($){g.resizableTextArea=$},g.handleChange=function($){var ve=g.props.onChange;g.setValue($.target.value,function(){g.resizableTextArea.resizeTextarea()}),ve&&ve($)},g.handleKeyDown=function($){var ve=g.props,ue=ve.onPressEnter,se=ve.onKeyDown;$.keyCode===13&&ue&&ue($),se&&se($)};var ae=typeof X.value=="undefined"||X.value===null?X.defaultValue:X.value;return g.state={value:ae},g}return Object(re.a)(ee,[{key:"setValue",value:function(g,ae){"value"in this.props||this.setState({value:g},ae)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(q,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(g){return"value"in g?{value:g.value}:null}}]),ee}(o.Component),de=w.default=ge},ZW5e:function(De,w,e){De.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},bT9E:function(De,w,e){"use strict";e.d(w,"a",function(){return C});var j=e("VTBJ");function C(re,Ee){var M=Object(j.a)({},re);return Array.isArray(Ee)&&Ee.forEach(function(o){delete M[o]}),M}},biw7:function(De,w,e){"use strict";var j=e("q1tI"),C=e.n(j),re=j.createContext(null);w.a=re},dmUQ:function(De,w,e){"use strict";var j=e("Ff2n"),C=e("rePB"),re=e("1OyB"),Ee=e("vuIU"),M=e("Ji7U"),o=e("md7G"),ie=e("foSv"),B=e("q1tI"),h=e.n(B),H=e("TSYQ"),K=e.n(H),Z=e("4IlW");function ne(t,c){var d=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);c&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),d.push.apply(d,i)}return d}function T(t){for(var c=1;c1?q-1:0),de=1;de1?P-1:0),b=1;b=0)return parseInt(O.slice(O.indexOf("e-")+2),10);var P=0;return O.indexOf(".")>=0&&(P=O.length-O.indexOf(".")-1),P},a.getInputDisplayValue=function(n){var O=n||a.state,P=O.focused,F=O.inputValue,b=O.value,J;P?J=F:J=a.toPrecisionAsStep(b),J==null&&(J="");var q=a.formatWrapper(J);return v(a.props.decimalSeparator)&&(q=q.toString().replace(".",a.props.decimalSeparator)),q},a.recordCursorPosition=function(){try{a.cursorStart=a.input.selectionStart,a.cursorEnd=a.input.selectionEnd,a.currentValue=a.input.value,a.cursorBefore=a.input.value.substring(0,a.cursorStart),a.cursorAfter=a.input.value.substring(a.cursorEnd)}catch(n){}},a.restoreByAfter=function(n){if(n===void 0)return!1;var O=a.input.value,P=O.lastIndexOf(n);if(P===-1)return!1;var F=a.cursorBefore.length;return a.lastKeyCode===Z.a.DELETE&&a.cursorBefore.charAt(F-1)===n[0]?(a.fixCaret(F,F),!0):P+n.length===O.length?(a.fixCaret(P,P),!0):!1},a.partRestoreByAfter=function(n){return n===void 0?!1:Array.prototype.some.call(n,function(O,P){var F=n.substring(P);return a.restoreByAfter(F)})},a.isNotCompleteNumber=function(n){return isNaN(n)||n===""||n===null||n&&n.toString().indexOf(".")===n.toString().length-1},a.stop=function(){a.autoStepTimer&&clearTimeout(a.autoStepTimer)},a.down=function(n,O,P){a.pressingUpOrDown=!0,a.step("down",n,O,P)},a.up=function(n,O,P){a.pressingUpOrDown=!0,a.step("up",n,O,P)},a.saveInput=function(n){a.input=n};var r=i.value;r===void 0&&(r=i.defaultValue),a.state={focused:i.autoFocus};var p=a.getValidValue(a.toNumber(r));return a.state=T(T({},a.state),{},{inputValue:a.toPrecisionAsStep(p),value:p}),a}return Object(Ee.a)(d,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(a){var r=this.props,p=r.value,n=r.onChange,O=r.max,P=r.min,F=this.state.focused;if(a){if(!y(a.value,p)||!y(a.max,O)||!y(a.min,P)){var b=F?p:this.getValidValue(p),J;this.pressingUpOrDown?J=b:this.inputting?J=this.rawInput:J=this.toPrecisionAsStep(b),this.setState({value:b,inputValue:J})}var q="value"in this.props?p:this.state.value;"max"in this.props&&a.max!==O&&typeof q=="number"&&q>O&&n&&n(O),"min"in this.props&&a.min!==P&&typeof q=="number"&&q1&&arguments[1]!==void 0?arguments[1]:this.props.min,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,n=parseFloat(a);return isNaN(n)?a:(np&&(n=p),n)}},{key:"setValue",value:function(a,r){var p=this.props.precision,n=this.isNotCompleteNumber(parseFloat(a))?null:parseFloat(a),O=this.state.value,P=O===void 0?null:O,F=this.state.inputValue,b=F===void 0?null:F,J=typeof n=="number"?n.toFixed(p):"".concat(n),q=n!==P||J!=="".concat(b);return"value"in this.props?(b=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:b},r)):this.setState({value:n,inputValue:this.toPrecisionAsStep(a)},r),q&&this.props.onChange(n),n}},{key:"getMaxPrecision",value:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,p=this.props,n=p.precision,O=p.step;if(v(n))return n;var P=this.getPrecision(r),F=this.getPrecision(O),b=this.getPrecision(a);return a?Math.max(b,P+F):P+F}},{key:"getPrecisionFactor",value:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,p=this.getMaxPrecision(a,r);return Math.pow(10,p)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(a){return this.props.formatter?this.props.formatter(a):a}},{key:"toPrecisionAsStep",value:function(a){if(this.isNotCompleteNumber(a)||a==="")return a;var r=Math.abs(this.getMaxPrecision(a));return isNaN(r)?a.toString():Number(a).toFixed(r)}},{key:"toNumber",value:function(a){var r=this.props.precision,p=this.state.focused,n=a&&a.length>16&&p;return this.isNotCompleteNumber(a)||n?a:v(r)?Math.round(a*Math.pow(10,r))/Math.pow(10,r):Number(a)}},{key:"upStep",value:function(a,r){var p=this.props.step,n=this.getPrecisionFactor(a,r),O=Math.abs(this.getMaxPrecision(a,r)),P=((n*a+n*p*r)/n).toFixed(O);return this.toNumber(P)}},{key:"downStep",value:function(a,r){var p=this.props.step,n=this.getPrecisionFactor(a,r),O=Math.abs(this.getMaxPrecision(a,r)),P=((n*a-n*p*r)/n).toFixed(O);return this.toNumber(P)}},{key:"step",value:function(a,r){var p=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=arguments.length>3?arguments[3]:void 0;this.stop(),r&&(r.persist(),r.preventDefault());var P=this.props;if(P.disabled)return;var F=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(F))return;var b=this["".concat(a,"Step")](F,n),J=b>P.max||bP.max?b=P.max:b=ge),k=(Se||Se===0)&&(isNaN(Se)||Number(Se)<=de),U=te||n||O,L=k||n||O,I=K()("".concat(p,"-handler"),"".concat(p,"-handler-up"),Object(C.a)({},"".concat(p,"-handler-up-disabled"),U)),le=K()("".concat(p,"-handler"),"".concat(p,"-handler-down"),Object(C.a)({},"".concat(p,"-handler-down-disabled"),L)),Y=P?{onTouchStart:U?R:this.up,onTouchEnd:this.stop}:{onMouseDown:U?R:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},oe=P?{onTouchStart:L?R:this.down,onTouchEnd:this.stop}:{onMouseDown:L?R:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return h.a.createElement("div",{className:u,style:W,title:z,onMouseEnter:ee,onMouseLeave:X,onMouseOver:g,onMouseOut:ae,onFocus:function(){return null},onBlur:function(){return null}},h.a.createElement("div",{className:"".concat(p,"-handler-wrap")},h.a.createElement("span",Object.assign({unselectable:"on"},Y,{role:"button","aria-label":"Increase Value","aria-disabled":U,className:I}),b||h.a.createElement("span",{unselectable:"on",className:"".concat(p,"-handler-up-inner"),onClick:E})),h.a.createElement("span",Object.assign({unselectable:"on"},oe,{role:"button","aria-label":"Decrease Value","aria-disabled":L,className:le}),J||h.a.createElement("span",{unselectable:"on",className:"".concat(p,"-handler-down-inner"),onClick:E}))),h.a.createElement("div",{className:"".concat(p,"-input-wrap")},h.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":de,"aria-valuemax":ge,"aria-valuenow":Se,required:$,type:se,placeholder:fe,onPaste:Je,onClick:ve,onMouseUp:this.onMouseUp,className:"".concat(p,"-input"),tabIndex:ue,autoComplete:F,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:A?this.onKeyDown:R,onKeyUp:A?this.onKeyUp:R,autoFocus:_e,maxLength:we,readOnly:O,disabled:n,max:ge,min:de,step:$e,name:Oe,title:z,id:Me,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(G),pattern:Be,inputMode:Pe,onInput:Ze},D))))}}]),d}(h.a.Component);x.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:Q,min:-Q,step:1,style:{},onChange:R,onKeyDown:R,onPressEnter:R,onFocus:R,onBlur:R,parser:N,required:!1,autoComplete:"off"};var l=x,s=w.a=l},fj85:function(De,w,e){"use strict";e.d(w,"a",function(){return o}),e.d(w,"b",function(){return H});var j=e("q1tI"),C=e.n(j),re=e("ZW5e"),Ee=e.n(re),M=function(Z){var ne=Z.title,T=Z.style,m=T===void 0?{}:T;return C.a.createElement("div",{className:Ee.a.panelTitleContainer,style:m},C.a.createElement("div",null,ne))},o=M,ie=e("PsNh"),B=e.n(ie),h=function(Z){var ne=Z.title,T=Z.children;return C.a.createElement("div",{className:B.a.selectWrapContainer},C.a.createElement("span",null,ne),T)},H=h},fyJ8:function(De,w,e){"use strict";var j=e("rePB"),C=e("VTBJ"),re=e("Ff2n"),Ee=e("U8pU"),M=e("q1tI"),o=e.n(M),ie=e("TSYQ"),B=e.n(ie),h=e("c+Xe"),H=e("sR1s");function K(f){return f&&Object(Ee.a)(f)==="object"&&!Array.isArray(f)&&!M.isValidElement(f)}function Z(f){return typeof f=="string"?!0:Object(h.c)(f)}function ne(f,R){var E,N=f.prefixCls,S=f.className,_=f.record,Q=f.index,v=f.dataIndex,y=f.render,x=f.children,l=f.component,s=l===void 0?"td":l,t=f.colSpan,c=f.rowSpan,d=f.fixLeft,i=f.fixRight,a=f.firstFixLeft,r=f.lastFixLeft,p=f.firstFixRight,n=f.lastFixRight,O=f.appendNode,P=f.additionalProps,F=P===void 0?{}:P,b=f.ellipsis,J=f.align,q=f.rowType,ge=f.isSticky,de="".concat(N,"-cell"),W,z;if(x)z=x;else{var ee=Object(H.b)(_,v);if(z=ee,y){var X=y(ee,_,Q);K(X)?(z=X.children,W=X.props):z=X}}Object(Ee.a)(z)==="object"&&!Array.isArray(z)&&!M.isValidElement(z)&&(z=null),b&&(r||p)&&(z=M.createElement("span",{className:"".concat(de,"-content")},z));var g=W||{},ae=g.colSpan,$=g.rowSpan,ve=g.style,ue=g.className,se=Object(re.a)(g,["colSpan","rowSpan","style","className"]),fe=ae!==void 0?ae:t,Me=$!==void 0?$:c;if(fe===0||Me===0)return null;var Pe={},Be=typeof d=="number",$e=typeof i=="number";Be&&(Pe.position="sticky",Pe.left=d),$e&&(Pe.position="sticky",Pe.right=i);var we={};J&&(we.textAlign=J);var _e,Oe=b===!0?{showTitle:!0}:b;Oe&&(Oe.showTitle||q==="header")&&(typeof z=="string"||typeof z=="number"?_e=z.toString():M.isValidElement(z)&&typeof z.props.children=="string"&&(_e=z.props.children));var Je=Object(C.a)(Object(C.a)(Object(C.a)({title:_e},se),F),{},{colSpan:fe&&fe!==1?fe:null,rowSpan:Me&&Me!==1?Me:null,className:B()(de,S,(E={},Object(j.a)(E,"".concat(de,"-fix-left"),Be),Object(j.a)(E,"".concat(de,"-fix-left-first"),a),Object(j.a)(E,"".concat(de,"-fix-left-last"),r),Object(j.a)(E,"".concat(de,"-fix-right"),$e),Object(j.a)(E,"".concat(de,"-fix-right-first"),p),Object(j.a)(E,"".concat(de,"-fix-right-last"),n),Object(j.a)(E,"".concat(de,"-ellipsis"),b),Object(j.a)(E,"".concat(de,"-with-append"),O),Object(j.a)(E,"".concat(de,"-fix-sticky"),(Be||$e)&&ge),E),F.className,ue),style:Object(C.a)(Object(C.a)(Object(C.a)(Object(C.a)({},F.style),we),Pe),ve),ref:Z(s)?R:null});return M.createElement(s,Object.assign({},Je),O,z)}var T=M.forwardRef(ne);T.displayName="Cell";var m=M.memo(T,function(f,R){return R.shouldCellUpdate?!R.shouldCellUpdate(R.record,f.record):!1});w.a=m},hW8S:function(De,w,e){"use strict";e.d(w,"a",function(){return Ee}),e.d(w,"c",function(){return M}),e.d(w,"b",function(){return o});var j=e("VTBJ"),C=e("Ff2n"),re=e("Kwbf"),Ee="RC_TABLE_INTERNAL_COL_DEFINE";function M(ie){var B=ie.expandable,h=Object(C.a)(ie,["expandable"]);return"expandable"in ie?Object(j.a)(Object(j.a)({},h),B):h}function o(ie){return Object.keys(ie).reduce(function(B,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-")&&(B[h]=ie[h]),B},{})}},n6Qo:function(De,w,e){"use strict";e.d(w,"a",function(){return B});var j=e("q1tI"),C=e("biw7"),re=e("fyJ8");function Ee(h){var H=h.className,K=h.index,Z=h.children,ne=h.colSpan,T=h.rowSpan,m=j.useContext(C.a),f=m.prefixCls,R=m.fixedInfoList,E=R[K];return j.createElement(re.a,Object.assign({className:H,index:K,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:Z,props:{colSpan:ne,rowSpan:T}}}},E))}function M(h){return j.createElement("tr",Object.assign({},h))}function o(h){var H=h.children,K=j.useContext(C.a),Z=K.prefixCls;return j.createElement("tfoot",{className:"".concat(Z,"-summary")},H)}var ie=w.b=o,B={Cell:Ee,Row:M}},sR1s:function(De,w,e){"use strict";e.d(w,"b",function(){return Ee}),e.d(w,"a",function(){return M}),e.d(w,"c",function(){return o}),e.d(w,"d",function(){return ie});var j=e("U8pU"),C="RC_TABLE_KEY";function re(B){return B==null?[]:Array.isArray(B)?B:[B]}function Ee(B,h){if(!h&&typeof h!="number")return B;for(var H=re(h),K=B,Z=0;Z1)Object(H.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(S.length===0)return Object(H.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var _=S[0];if(o.isValidElement(_)&&Object(K.c)(_)){var Q=_.ref;S[0]=o.cloneElement(_,{ref:Object(K.a)(Q,this.setChildNode)})}return S.length===1?S[0]:S.map(function(v,y){return!o.isValidElement(v)||"key"in v&&v.key!==null?v:o.cloneElement(v,{key:"".concat(ne,"-").concat(y)})})}}]),R}(o.Component);T.displayName="ResizeObserver",w.a=T},wCXF:function(De,w,e){"use strict";e.d(w,"a",function(){return qe});var j=e("rePB"),C=e("VTBJ"),re=e("KQm4"),Ee=e("U8pU"),M=e("ODXe"),o=e("q1tI"),ie=e("TSYQ"),B=e.n(ie),h=e("Gytx"),H=e.n(h),K=e("Kwbf"),Z=e("t23M"),ne=e("qx4F"),T=e("6eGT"),m=e("IBYe"),f=e("Ff2n"),R=e("c+Xe"),E=e("fyJ8"),N=e("biw7");function S(u,D,A,G,te){var k=A[u]||{},U=A[D]||{},L,I;k.fixed==="left"?L=G.left[u]:U.fixed==="right"&&(I=G.right[D]);var le=!1,Y=!1,oe=!1,me=!1,pe=A[D+1],je=A[u-1];if(te==="rtl"){if(L!==void 0){var ze=je&&je.fixed==="left";me=!ze}else if(I!==void 0){var Te=pe&&pe.fixed==="right";oe=!Te}}else if(L!==void 0){var Ie=pe&&pe.fixed==="left";le=!Ie}else if(I!==void 0){var xe=je&&je.fixed==="right";Y=!xe}return{fixLeft:L,fixRight:I,lastFixLeft:le,firstFixRight:Y,lastFixRight:oe,firstFixLeft:me,isSticky:G.isSticky}}var _=e("sR1s");function Q(u){var D=u.cells,A=u.stickyOffsets,G=u.flattenColumns,te=u.rowComponent,k=u.cellComponent,U=u.onHeaderRow,L=u.index,I=o.useContext(N.a),le=I.prefixCls,Y=I.direction,oe;U&&(oe=U(D.map(function(pe){return pe.column}),L));var me=Object(_.a)(D.map(function(pe){return pe.column}));return o.createElement(te,Object.assign({},oe),D.map(function(pe,je){var ze=pe.column,Te=S(pe.colStart,pe.colEnd,G,A,Y),Ie;return ze&&ze.onHeaderCell&&(Ie=pe.column.onHeaderCell(ze)),o.createElement(E.a,Object.assign({},pe,{ellipsis:ze.ellipsis,align:ze.align,component:k,prefixCls:le,key:me[je]},Te,{additionalProps:Ie,rowType:"header"}))}))}Q.displayName="HeaderRow";var v=Q;function y(u){var D=[];function A(U,L){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;D[I]=D[I]||[];var le=L,Y=U.filter(Boolean).map(function(oe){var me={key:oe.key,className:oe.className||"",children:oe.title,column:oe,colStart:le},pe=1,je=oe.children;return je&&je.length>0&&(pe=A(je,le,I+1).reduce(function(ze,Te){return ze+Te},0),me.hasSubColumns=!0),"colSpan"in oe&&(pe=oe.colSpan),"rowSpan"in oe&&(me.rowSpan=oe.rowSpan),me.colSpan=pe,me.colEnd=me.colStart+pe-1,D[I].push(me),le+=pe,pe});return Y}A(u,0);for(var G=D.length,te=function(L){D[L].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=G-L)})},k=0;k=0;L-=1){var I=D[L],le=A&&A[L],Y=le&&le[s.a];(I||Y||U)&&(te.unshift(o.createElement("col",Object.assign({key:L,style:{width:I,minWidth:I}},Y))),U=!0)}return o.createElement("colgroup",null,te)}var c=t;function d(u,D){return Object(o.useMemo)(function(){for(var A=[],G=0;G1?nt-1:0),At=1;At=oe&&(Ve=oe-me),U({scrollLeft:Ve/oe*(Y+2)}),xe.current.x=Re.pageX},Qe=function(){var Re=Object($e.b)(k.current).top,Le=Re+k.current.offsetHeight,at=document.documentElement.scrollTop+window.innerHeight;Le-Object(ne.a)()<=at||Re>=at-L?Ie(function(ct){return Object(C.a)(Object(C.a)({},ct),{},{isHiddenScrollBar:!0})}):Ie(function(ct){return Object(C.a)(Object(C.a)({},ct),{},{isHiddenScrollBar:!1})})},Xe=function(Re){Ie(function(Le){return Object(C.a)(Object(C.a)({},Le),{},{scrollLeft:Re/Y*oe||0})})};return o.useImperativeHandle(A,function(){return{setScrollLeft:Xe}}),o.useEffect(function(){var ke=Object(Be.a)(document.body,"mouseup",it,!1),Re=Object(Be.a)(document.body,"mousemove",ut,!1);return Qe(),function(){ke.remove(),Re.remove()}},[me,He]),o.useEffect(function(){var ke=Object(Be.a)(window,"scroll",Qe,!1),Re=Object(Be.a)(window,"resize",Qe,!1);return function(){ke.remove(),Re.remove()}},[]),o.useEffect(function(){Te.isHiddenScrollBar||Ie(function(ke){var Re,Le;return Object(C.a)(Object(C.a)({},ke),{},{scrollLeft:k.current.scrollLeft/((Re=k.current)===null||Re===void 0?void 0:Re.scrollWidth)*((Le=k.current)===null||Le===void 0?void 0:Le.clientWidth)})})},[Te.isHiddenScrollBar]),Y<=oe||!me||Te.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(ne.a)(),width:oe,bottom:L},className:"".concat(le,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ke,ref:pe,className:B()("".concat(le,"-sticky-scroll-bar"),Object(j.a)({},"".concat(le,"-sticky-scroll-bar-active"),He)),style:{width:"".concat(me,"px"),transform:"translate3d(".concat(Te.scrollLeft,"px, 0, 0)")}}))},_e=o.forwardRef(we);function Oe(u,D){return o.useMemo(function(){var A=!!u;return{isSticky:A,stickyClassName:A?"".concat(D,"-sticky-header"):"",offsetHeader:Object(Ee.a)(u)==="object"&&u.offsetHeader||0,offsetScroll:Object(Ee.a)(u)==="object"&&u.offsetScroll||0}},[u,D])}var Je=[],Ze={},qe="rc-table-internal-hook",ot=o.memo(function(u){var D=u.children;return D},function(u,D){return H()(u.props,D.props)?u.pingLeft!==D.pingLeft||u.pingRight!==D.pingRight:!1});function Se(u){var D,A=u.prefixCls,G=u.className,te=u.rowClassName,k=u.style,U=u.data,L=u.rowKey,I=u.scroll,le=u.tableLayout,Y=u.direction,oe=u.title,me=u.footer,pe=u.summary,je=u.id,ze=u.showHeader,Te=u.components,Ie=u.emptyText,xe=u.onRow,st=u.onHeaderRow,Ye=u.internalHooks,He=u.transformColumns,tt=u.internalRefs,it=u.sticky,Ke=U||Je,ut=!!Ke.length,Qe=o.useState(0),Xe=Object(M.a)(Qe,2),ke=Xe[0],Re=Xe[1];o.useEffect(function(){Re(Object(ne.a)())});var Le=o.useMemo(function(){return Object(_.c)(Te,{})},[Te]),at=o.useCallback(function(Ae,Ue){return Object(_.b)(Le,Ae)||Ue},[Le]),ct=o.useMemo(function(){return typeof L=="function"?L:function(Ae){var Ue=Ae&&Ae[L];return Ue}},[L]),Ve=Object(s.c)(u),Ne=Ve.expandIcon,Pt=Ve.expandedRowKeys,Ft=Ve.defaultExpandedRowKeys,vt=Ve.defaultExpandAllRows,Nt=Ve.expandedRowRender,Dt=Ve.onExpand,Mt=Ve.onExpandedRowsChange,_t=Ve.expandRowByClick,ft=Ve.rowExpandable,St=Ve.expandIconColumnIndex,gt=Ve.expandedRowClassName,It=Ve.childrenColumnName,Ot=Ve.indentSize,Kt=Ne||Me,Bt=It||"children",Tt=o.useMemo(function(){return Nt?"row":u.expandable&&Ye===qe&&u.expandable.__PARENT_RENDER_ICON__||Ke.some(function(Ae){return Ae&&Object(Ee.a)(Ae)==="object"&&Ae[Bt]})?"nest":!1},[!!Nt,Ke]),kt=o.useState(function(){return Ft||(vt?Pe(Ke,ct,Bt):[])}),rt=Object(M.a)(kt,2),mt=rt[0],pt=rt[1],nt=o.useMemo(function(){return new Set(Pt||mt||[])},[Pt,mt]),Ct=o.useCallback(function(Ae){var Ue=ct(Ae,Ke.indexOf(Ae)),lt,bt=nt.has(Ue);bt?(nt.delete(Ue),lt=Object(re.a)(nt)):lt=[].concat(Object(re.a)(nt),[Ue]),pt(lt),Dt&&Dt(!bt,Ae),Mt&&Mt(lt)},[ct,nt,Ke,Dt,Mt]),At=o.useState(0),Vt=Object(M.a)(At,2),Wt=Vt[0],Ht=Vt[1],en=Object(z.b)(Object(C.a)(Object(C.a)(Object(C.a)({},u),Ve),{},{expandable:!!Nt,expandedKeys:nt,getRowKey:ct,onTriggerExpand:Ct,expandIcon:Kt,expandIconColumnIndex:St,direction:Y}),Ye===qe?He:null),Lt=Object(M.a)(en,2),Ce=Lt[0],V=Lt[1],he=o.useMemo(function(){return{columns:Ce,flattenColumns:V}},[Ce,V]),Fe=o.useRef(),be=o.useRef(),ce=o.useRef(),ye=o.useState(!1),We=Object(M.a)(ye,2),et=We[0],dt=We[1],xt=o.useState(!1),Et=Object(M.a)(xt,2),Ge=Et[0],Ut=Et[1],zt=g(new Map),jt=Object(M.a)(zt,2),dn=jt[0],yt=jt[1],xn=Object(_.a)(V),fn=xn.map(function(Ae){return dn.get(Ae)}),mn=o.useMemo(function(){return fn},[fn.join("_")]),Yt=ve(mn,V.length,Y),Rt=I&&Object(_.d)(I.y),wt=I&&Object(_.d)(I.x),$t=wt&&V.some(function(Ae){var Ue=Ae.fixed;return Ue}),pn=o.useRef(),Qt=Oe(it,A),Gt=Qt.isSticky,jn=Qt.offsetHeader,Rn=Qt.offsetScroll,Pn=Qt.stickyClassName,tn,Zt,nn;Rt&&(Zt={overflowY:"scroll",maxHeight:I.y}),wt&&(tn={overflowX:"auto"},Rt||(Zt={overflowY:"hidden"}),nn={width:I.x===!0?"auto":I.x,minWidth:"100%"});var hn=o.useCallback(function(Ae,Ue){yt(function(lt){var bt=new Map(lt);return bt.set(Ae,Ue),bt})},[]),Nn=ae(null),vn=Object(M.a)(Nn,2),Dn=vn[0],En=vn[1];function an(Ae,Ue){if(!Ue)return;typeof Ue=="function"?Ue(Ae):Ue.scrollLeft!==Ae&&(Ue.scrollLeft=Ae)}var Xt=function(Ue){var lt=Ue.currentTarget,bt=Ue.scrollLeft,Jt=typeof bt=="number"?bt:lt.scrollLeft,On=lt||Ze;if(!En()||En()===On){var cn;Dn(On),an(Jt,be.current),an(Jt,ce.current),an(Jt,(cn=pn.current)===null||cn===void 0?void 0:cn.setScrollLeft)}if(lt){var wn=lt.scrollWidth,In=lt.clientWidth;dt(Jt>0),Ut(Jt0?[].concat(Object(C.a)(f),Object(C.a)(K(S).map(function(_){return Object(re.a)({fixed:N},_)}))):[].concat(Object(C.a)(f),[Object(re.a)(Object(re.a)({},R),{},{fixed:N})])},[])}function Z(m){for(var f=!0,R=0;R=0;S-=1){var _=m[S];if(N&&_.fixed!=="right")N=!1;else if(!N&&_.fixed==="right"){Object(ie.a)(!1,"Index ".concat(S+1," of `columns` missing `fixed='right'` prop."));break}}}function ne(m){return m.map(function(f){var R=f.fixed,E=Object(Ee.a)(f,["fixed"]),N=R;return R==="left"?N="right":R==="right"&&(N="left"),Object(re.a)({fixed:N},E)})}function T(m,f){var R=m.prefixCls,E=m.columns,N=m.children,S=m.expandable,_=m.expandedKeys,Q=m.getRowKey,v=m.onTriggerExpand,y=m.expandIcon,x=m.rowExpandable,l=m.expandIconColumnIndex,s=m.direction,t=m.expandRowByClick,c=M.useMemo(function(){return E||H(N)},[E,N]),d=M.useMemo(function(){if(S){var r,p=l||0,n=c[p],O=(r={},Object(j.a)(r,h.a,{className:"".concat(R,"-expand-icon-col")}),Object(j.a)(r,"title",""),Object(j.a)(r,"fixed",n?n.fixed:null),Object(j.a)(r,"className","".concat(R,"-row-expand-icon-cell")),Object(j.a)(r,"render",function(b,J,q){var ge=Q(J,q),de=_.has(ge),W=x?x(J):!0,z=y({prefixCls:R,expanded:de,expandable:W,record:J,onExpand:v});return t?M.createElement("span",{onClick:function(X){return X.stopPropagation()}},z):z}),r),P=c.slice();return p>=0&&P.splice(p,0,O),P}return c},[S,c,Q,_,y,s]),i=M.useMemo(function(){var r=d;return f&&(r=f(r)),r.length||(r=[{render:function(){return null}}]),r},[f,d,s]),a=M.useMemo(function(){return s==="rtl"?ne(K(i)):K(i)},[i,s]);return[i,a]}w.b=T},"y0+3":function(De,w,e){"use strict";e.d(w,"a",function(){return K}),e.d(w,"b",function(){return ne});var j=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},re={cssFloat:1,styleFloat:1,float:1};function Ee(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function M(T,m,f){if(m=m.toLowerCase(),f==="auto"){if(m==="height")return T.offsetHeight;if(m==="width")return T.offsetWidth}return m in C||(C[m]=j.test(m)),C[m]?parseFloat(f)||0:f}function o(T,m){var f=arguments.length,R=Ee(T);return m=re[m]?"cssFloat"in T.style?"cssFloat":"styleFloat":m,f===1?R:M(T,m,R[m]||T.style[m])}function ie(T,m,f){var R=arguments.length;if(m=re[m]?"cssFloat"in T.style?"cssFloat":"styleFloat":m,R===3)return typeof f=="number"&&j.test(m)&&(f="".concat(f,"px")),T.style[m]=f,f;for(var E in m)m.hasOwnProperty(E)&&ie(T,E,m[E]);return Ee(T)}function B(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function h(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function H(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:m}}function K(){var T=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:m}}function Z(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ne(T){var m=T.getBoundingClientRect(),f=document.documentElement;return{left:m.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}}}]); +`,a=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],r={},p;function n(W){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee=W.getAttribute("id")||W.getAttribute("data-reactid")||W.getAttribute("name");if(z&&r[ee])return r[ee];var X=window.getComputedStyle(W),g=X.getPropertyValue("box-sizing")||X.getPropertyValue("-moz-box-sizing")||X.getPropertyValue("-webkit-box-sizing"),ae=parseFloat(X.getPropertyValue("padding-bottom"))+parseFloat(X.getPropertyValue("padding-top")),$=parseFloat(X.getPropertyValue("border-bottom-width"))+parseFloat(X.getPropertyValue("border-top-width")),ve=a.map(function(se){return"".concat(se,":").concat(X.getPropertyValue(se))}).join(";"),ue={sizingStyle:ve,paddingSize:ae,borderSize:$,boxSizing:g};return z&&ee&&(r[ee]=ue),ue}function O(W){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;p||(p=document.createElement("textarea"),p.setAttribute("tab-index","-1"),p.setAttribute("aria-hidden","true"),document.body.appendChild(p)),W.getAttribute("wrap")?p.setAttribute("wrap",W.getAttribute("wrap")):p.removeAttribute("wrap");var g=n(W,z),ae=g.paddingSize,$=g.borderSize,ve=g.boxSizing,ue=g.sizingStyle;p.setAttribute("style","".concat(ue,";").concat(i)),p.value=W.value||W.placeholder||"";var se=Number.MIN_SAFE_INTEGER,fe=Number.MAX_SAFE_INTEGER,Me=p.scrollHeight,Pe;if(ve==="border-box"?Me+=$:ve==="content-box"&&(Me-=ae),ee!==null||X!==null){p.value=" ";var Be=p.scrollHeight-ae;ee!==null&&(se=Be*ee,ve==="border-box"&&(se=se+ae+$),Me=Math.max(se,Me)),X!==null&&(fe=Be*X,ve==="border-box"&&(fe=fe+ae+$),Pe=Me>fe?"":"hidden",Me=Math.min(fe,Me))}return{height:Me,minHeight:se,maxHeight:fe,overflowY:Pe,resize:"none"}}var P=e("Gytx"),F=e.n(P),E;(function(W){W[W.NONE=0]="NONE",W[W.RESIZING=1]="RESIZING",W[W.RESIZED=2]="RESIZED"})(E||(E={}));var J=function(W){Object(be.a)(ee,W);var z=Object(M.a)(ee);function ee(X){var g;return Object(C.a)(this,ee),g=z.call(this,X),g.nextFrameActionId=void 0,g.resizeFrameId=void 0,g.textArea=void 0,g.saveTextArea=function(ae){g.textArea=ae},g.handleResize=function(ae){var $=g.state.resizeStatus,ve=g.props,ue=ve.autoSize,se=ve.onResize;if($!==E.NONE)return;typeof se=="function"&&se(ae),ue&&g.resizeOnNextFrame()},g.resizeOnNextFrame=function(){cancelAnimationFrame(g.nextFrameActionId),g.nextFrameActionId=requestAnimationFrame(g.resizeTextarea)},g.resizeTextarea=function(){var ae=g.props.autoSize;if(!ae||!g.textArea)return;var $=ae.minRows,ve=ae.maxRows,ue=O(g.textArea,!1,$,ve);g.setState({textareaStyles:ue,resizeStatus:E.RESIZING},function(){cancelAnimationFrame(g.resizeFrameId),g.resizeFrameId=requestAnimationFrame(function(){g.setState({resizeStatus:E.RESIZED},function(){g.resizeFrameId=requestAnimationFrame(function(){g.setState({resizeStatus:E.NONE}),g.fixFirefoxAutoScroll()})})})})},g.renderTextArea=function(){var ae=g.props,$=ae.prefixCls,ve=$===void 0?"rc-textarea":$,ue=ae.autoSize,se=ae.onResize,fe=ae.className,Me=ae.disabled,Pe=g.state,Be=Pe.textareaStyles,$e=Pe.resizeStatus,we=Object(t.a)(g.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=d()(ve,fe,Object(B.a)({},"".concat(ve,"-disabled"),Me));"value"in we&&(we.value=we.value||"");var Oe=Object(ie.a)(Object(ie.a)(Object(ie.a)({},g.props.style),Be),$e===E.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(s,{onResize:g.handleResize,disabled:!(ue||se)},o.createElement("textarea",Object(j.a)({},we,{className:_e,style:Oe,ref:g.saveTextArea})))},g.state={textareaStyles:{},resizeStatus:E.NONE},g}return Object(re.a)(ee,[{key:"componentDidUpdate",value:function(g){(g.value!==this.props.value||!F()(g.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var g=this.textArea.selectionStart,ae=this.textArea.selectionEnd;this.textArea.setSelectionRange(g,ae)}}catch($){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ee}(o.Component),q=J,ge=function(W){Object(be.a)(ee,W);var z=Object(M.a)(ee);function ee(X){var g;Object(C.a)(this,ee),g=z.call(this,X),g.resizableTextArea=void 0,g.focus=function(){g.resizableTextArea.textArea.focus()},g.saveTextArea=function($){g.resizableTextArea=$},g.handleChange=function($){var ve=g.props.onChange;g.setValue($.target.value,function(){g.resizableTextArea.resizeTextarea()}),ve&&ve($)},g.handleKeyDown=function($){var ve=g.props,ue=ve.onPressEnter,se=ve.onKeyDown;$.keyCode===13&&ue&&ue($),se&&se($)};var ae=typeof X.value=="undefined"||X.value===null?X.defaultValue:X.value;return g.state={value:ae},g}return Object(re.a)(ee,[{key:"setValue",value:function(g,ae){"value"in this.props||this.setState({value:g},ae)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(q,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(g){return"value"in g?{value:g.value}:null}}]),ee}(o.Component),de=w.default=ge},ZW5e:function(De,w,e){De.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},bT9E:function(De,w,e){"use strict";e.d(w,"a",function(){return C});var j=e("VTBJ");function C(re,be){var M=Object(j.a)({},re);return Array.isArray(be)&&be.forEach(function(o){delete M[o]}),M}},biw7:function(De,w,e){"use strict";var j=e("q1tI"),C=e.n(j),re=j.createContext(null);w.a=re},dmUQ:function(De,w,e){"use strict";var j=e("Ff2n"),C=e("rePB"),re=e("1OyB"),be=e("vuIU"),M=e("Ji7U"),o=e("md7G"),ie=e("foSv"),B=e("q1tI"),h=e.n(B),H=e("TSYQ"),K=e.n(H),Z=e("4IlW");function ne(t,c){var d=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);c&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),d.push.apply(d,i)}return d}function T(t){for(var c=1;c1?q-1:0),de=1;de1?P-1:0),E=1;E=0)return parseInt(O.slice(O.indexOf("e-")+2),10);var P=0;return O.indexOf(".")>=0&&(P=O.length-O.indexOf(".")-1),P},a.getInputDisplayValue=function(n){var O=n||a.state,P=O.focused,F=O.inputValue,E=O.value,J;P?J=F:J=a.toPrecisionAsStep(E),J==null&&(J="");var q=a.formatWrapper(J);return v(a.props.decimalSeparator)&&(q=q.toString().replace(".",a.props.decimalSeparator)),q},a.recordCursorPosition=function(){try{a.cursorStart=a.input.selectionStart,a.cursorEnd=a.input.selectionEnd,a.currentValue=a.input.value,a.cursorBefore=a.input.value.substring(0,a.cursorStart),a.cursorAfter=a.input.value.substring(a.cursorEnd)}catch(n){}},a.restoreByAfter=function(n){if(n===void 0)return!1;var O=a.input.value,P=O.lastIndexOf(n);if(P===-1)return!1;var F=a.cursorBefore.length;return a.lastKeyCode===Z.a.DELETE&&a.cursorBefore.charAt(F-1)===n[0]?(a.fixCaret(F,F),!0):P+n.length===O.length?(a.fixCaret(P,P),!0):!1},a.partRestoreByAfter=function(n){return n===void 0?!1:Array.prototype.some.call(n,function(O,P){var F=n.substring(P);return a.restoreByAfter(F)})},a.isNotCompleteNumber=function(n){return isNaN(n)||n===""||n===null||n&&n.toString().indexOf(".")===n.toString().length-1},a.stop=function(){a.autoStepTimer&&clearTimeout(a.autoStepTimer)},a.down=function(n,O,P){a.pressingUpOrDown=!0,a.step("down",n,O,P)},a.up=function(n,O,P){a.pressingUpOrDown=!0,a.step("up",n,O,P)},a.saveInput=function(n){a.input=n};var r=i.value;r===void 0&&(r=i.defaultValue),a.state={focused:i.autoFocus};var p=a.getValidValue(a.toNumber(r));return a.state=T(T({},a.state),{},{inputValue:a.toPrecisionAsStep(p),value:p}),a}return Object(be.a)(d,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(a){var r=this.props,p=r.value,n=r.onChange,O=r.max,P=r.min,F=this.state.focused;if(a){if(!y(a.value,p)||!y(a.max,O)||!y(a.min,P)){var E=F?p:this.getValidValue(p),J;this.pressingUpOrDown?J=E:this.inputting?J=this.rawInput:J=this.toPrecisionAsStep(E),this.setState({value:E,inputValue:J})}var q="value"in this.props?p:this.state.value;"max"in this.props&&a.max!==O&&typeof q=="number"&&q>O&&n&&n(O),"min"in this.props&&a.min!==P&&typeof q=="number"&&q1&&arguments[1]!==void 0?arguments[1]:this.props.min,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,n=parseFloat(a);return isNaN(n)?a:(np&&(n=p),n)}},{key:"setValue",value:function(a,r){var p=this.props.precision,n=this.isNotCompleteNumber(parseFloat(a))?null:parseFloat(a),O=this.state.value,P=O===void 0?null:O,F=this.state.inputValue,E=F===void 0?null:F,J=typeof n=="number"?n.toFixed(p):"".concat(n),q=n!==P||J!=="".concat(E);return"value"in this.props?(E=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:E},r)):this.setState({value:n,inputValue:this.toPrecisionAsStep(a)},r),q&&this.props.onChange(n),n}},{key:"getMaxPrecision",value:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,p=this.props,n=p.precision,O=p.step;if(v(n))return n;var P=this.getPrecision(r),F=this.getPrecision(O),E=this.getPrecision(a);return a?Math.max(E,P+F):P+F}},{key:"getPrecisionFactor",value:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,p=this.getMaxPrecision(a,r);return Math.pow(10,p)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(a){return this.props.formatter?this.props.formatter(a):a}},{key:"toPrecisionAsStep",value:function(a){if(this.isNotCompleteNumber(a)||a==="")return a;var r=Math.abs(this.getMaxPrecision(a));return isNaN(r)?a.toString():Number(a).toFixed(r)}},{key:"toNumber",value:function(a){var r=this.props.precision,p=this.state.focused,n=a&&a.length>16&&p;return this.isNotCompleteNumber(a)||n?a:v(r)?Math.round(a*Math.pow(10,r))/Math.pow(10,r):Number(a)}},{key:"upStep",value:function(a,r){var p=this.props.step,n=this.getPrecisionFactor(a,r),O=Math.abs(this.getMaxPrecision(a,r)),P=((n*a+n*p*r)/n).toFixed(O);return this.toNumber(P)}},{key:"downStep",value:function(a,r){var p=this.props.step,n=this.getPrecisionFactor(a,r),O=Math.abs(this.getMaxPrecision(a,r)),P=((n*a-n*p*r)/n).toFixed(O);return this.toNumber(P)}},{key:"step",value:function(a,r){var p=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=arguments.length>3?arguments[3]:void 0;this.stop(),r&&(r.persist(),r.preventDefault());var P=this.props;if(P.disabled)return;var F=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(F))return;var E=this["".concat(a,"Step")](F,n),J=E>P.max||EP.max?E=P.max:E=ge),k=(Se||Se===0)&&(isNaN(Se)||Number(Se)<=de),U=te||n||O,L=k||n||O,I=K()("".concat(p,"-handler"),"".concat(p,"-handler-up"),Object(C.a)({},"".concat(p,"-handler-up-disabled"),U)),le=K()("".concat(p,"-handler"),"".concat(p,"-handler-down"),Object(C.a)({},"".concat(p,"-handler-down-disabled"),L)),Y=P?{onTouchStart:U?R:this.up,onTouchEnd:this.stop}:{onMouseDown:U?R:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},oe=P?{onTouchStart:L?R:this.down,onTouchEnd:this.stop}:{onMouseDown:L?R:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return h.a.createElement("div",{className:u,style:W,title:z,onMouseEnter:ee,onMouseLeave:X,onMouseOver:g,onMouseOut:ae,onFocus:function(){return null},onBlur:function(){return null}},h.a.createElement("div",{className:"".concat(p,"-handler-wrap")},h.a.createElement("span",Object.assign({unselectable:"on"},Y,{role:"button","aria-label":"Increase Value","aria-disabled":U,className:I}),E||h.a.createElement("span",{unselectable:"on",className:"".concat(p,"-handler-up-inner"),onClick:b})),h.a.createElement("span",Object.assign({unselectable:"on"},oe,{role:"button","aria-label":"Decrease Value","aria-disabled":L,className:le}),J||h.a.createElement("span",{unselectable:"on",className:"".concat(p,"-handler-down-inner"),onClick:b}))),h.a.createElement("div",{className:"".concat(p,"-input-wrap")},h.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":de,"aria-valuemax":ge,"aria-valuenow":Se,required:$,type:se,placeholder:fe,onPaste:Je,onClick:ve,onMouseUp:this.onMouseUp,className:"".concat(p,"-input"),tabIndex:ue,autoComplete:F,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:A?this.onKeyDown:R,onKeyUp:A?this.onKeyUp:R,autoFocus:_e,maxLength:we,readOnly:O,disabled:n,max:ge,min:de,step:$e,name:Oe,title:z,id:Me,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(G),pattern:Be,inputMode:Pe,onInput:Ze},D))))}}]),d}(h.a.Component);x.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:Q,min:-Q,step:1,style:{},onChange:R,onKeyDown:R,onPressEnter:R,onFocus:R,onBlur:R,parser:N,required:!1,autoComplete:"off"};var l=x,s=w.a=l},fj85:function(De,w,e){"use strict";e.d(w,"a",function(){return o}),e.d(w,"b",function(){return H});var j=e("q1tI"),C=e.n(j),re=e("ZW5e"),be=e.n(re),M=function(Z){var ne=Z.title,T=Z.style,m=T===void 0?{}:T;return C.a.createElement("div",{className:be.a.panelTitleContainer,style:m},C.a.createElement("div",null,ne))},o=M,ie=e("PsNh"),B=e.n(ie),h=function(Z){var ne=Z.title,T=Z.children;return C.a.createElement("div",{className:B.a.selectWrapContainer},C.a.createElement("span",null,ne),T)},H=h},fyJ8:function(De,w,e){"use strict";var j=e("rePB"),C=e("VTBJ"),re=e("Ff2n"),be=e("U8pU"),M=e("q1tI"),o=e.n(M),ie=e("TSYQ"),B=e.n(ie),h=e("c+Xe"),H=e("sR1s");function K(f){return f&&Object(be.a)(f)==="object"&&!Array.isArray(f)&&!M.isValidElement(f)}function Z(f){return typeof f=="string"?!0:Object(h.c)(f)}function ne(f,R){var b,N=f.prefixCls,S=f.className,_=f.record,Q=f.index,v=f.dataIndex,y=f.render,x=f.children,l=f.component,s=l===void 0?"td":l,t=f.colSpan,c=f.rowSpan,d=f.fixLeft,i=f.fixRight,a=f.firstFixLeft,r=f.lastFixLeft,p=f.firstFixRight,n=f.lastFixRight,O=f.appendNode,P=f.additionalProps,F=P===void 0?{}:P,E=f.ellipsis,J=f.align,q=f.rowType,ge=f.isSticky,de="".concat(N,"-cell"),W,z;if(x)z=x;else{var ee=Object(H.b)(_,v);if(z=ee,y){var X=y(ee,_,Q);K(X)?(z=X.children,W=X.props):z=X}}Object(be.a)(z)==="object"&&!Array.isArray(z)&&!M.isValidElement(z)&&(z=null),E&&(r||p)&&(z=M.createElement("span",{className:"".concat(de,"-content")},z));var g=W||{},ae=g.colSpan,$=g.rowSpan,ve=g.style,ue=g.className,se=Object(re.a)(g,["colSpan","rowSpan","style","className"]),fe=ae!==void 0?ae:t,Me=$!==void 0?$:c;if(fe===0||Me===0)return null;var Pe={},Be=typeof d=="number",$e=typeof i=="number";Be&&(Pe.position="sticky",Pe.left=d),$e&&(Pe.position="sticky",Pe.right=i);var we={};J&&(we.textAlign=J);var _e,Oe=E===!0?{showTitle:!0}:E;Oe&&(Oe.showTitle||q==="header")&&(typeof z=="string"||typeof z=="number"?_e=z.toString():M.isValidElement(z)&&typeof z.props.children=="string"&&(_e=z.props.children));var Je=Object(C.a)(Object(C.a)(Object(C.a)({title:_e},se),F),{},{colSpan:fe&&fe!==1?fe:null,rowSpan:Me&&Me!==1?Me:null,className:B()(de,S,(b={},Object(j.a)(b,"".concat(de,"-fix-left"),Be),Object(j.a)(b,"".concat(de,"-fix-left-first"),a),Object(j.a)(b,"".concat(de,"-fix-left-last"),r),Object(j.a)(b,"".concat(de,"-fix-right"),$e),Object(j.a)(b,"".concat(de,"-fix-right-first"),p),Object(j.a)(b,"".concat(de,"-fix-right-last"),n),Object(j.a)(b,"".concat(de,"-ellipsis"),E),Object(j.a)(b,"".concat(de,"-with-append"),O),Object(j.a)(b,"".concat(de,"-fix-sticky"),(Be||$e)&&ge),b),F.className,ue),style:Object(C.a)(Object(C.a)(Object(C.a)(Object(C.a)({},F.style),we),Pe),ve),ref:Z(s)?R:null});return M.createElement(s,Object.assign({},Je),O,z)}var T=M.forwardRef(ne);T.displayName="Cell";var m=M.memo(T,function(f,R){return R.shouldCellUpdate?!R.shouldCellUpdate(R.record,f.record):!1});w.a=m},hW8S:function(De,w,e){"use strict";e.d(w,"a",function(){return be}),e.d(w,"c",function(){return M}),e.d(w,"b",function(){return o});var j=e("VTBJ"),C=e("Ff2n"),re=e("Kwbf"),be="RC_TABLE_INTERNAL_COL_DEFINE";function M(ie){var B=ie.expandable,h=Object(C.a)(ie,["expandable"]);return"expandable"in ie?Object(j.a)(Object(j.a)({},h),B):h}function o(ie){return Object.keys(ie).reduce(function(B,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-")&&(B[h]=ie[h]),B},{})}},n6Qo:function(De,w,e){"use strict";e.d(w,"a",function(){return B});var j=e("q1tI"),C=e("biw7"),re=e("fyJ8");function be(h){var H=h.className,K=h.index,Z=h.children,ne=h.colSpan,T=h.rowSpan,m=j.useContext(C.a),f=m.prefixCls,R=m.fixedInfoList,b=R[K];return j.createElement(re.a,Object.assign({className:H,index:K,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:Z,props:{colSpan:ne,rowSpan:T}}}},b))}function M(h){return j.createElement("tr",Object.assign({},h))}function o(h){var H=h.children,K=j.useContext(C.a),Z=K.prefixCls;return j.createElement("tfoot",{className:"".concat(Z,"-summary")},H)}var ie=w.b=o,B={Cell:be,Row:M}},sR1s:function(De,w,e){"use strict";e.d(w,"b",function(){return be}),e.d(w,"a",function(){return M}),e.d(w,"c",function(){return o}),e.d(w,"d",function(){return ie});var j=e("U8pU"),C="RC_TABLE_KEY";function re(B){return B==null?[]:Array.isArray(B)?B:[B]}function be(B,h){if(!h&&typeof h!="number")return B;for(var H=re(h),K=B,Z=0;Z1)Object(H.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(S.length===0)return Object(H.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var _=S[0];if(o.isValidElement(_)&&Object(K.c)(_)){var Q=_.ref;S[0]=o.cloneElement(_,{ref:Object(K.a)(Q,this.setChildNode)})}return S.length===1?S[0]:S.map(function(v,y){return!o.isValidElement(v)||"key"in v&&v.key!==null?v:o.cloneElement(v,{key:"".concat(ne,"-").concat(y)})})}}]),R}(o.Component);T.displayName="ResizeObserver",w.a=T},wCXF:function(De,w,e){"use strict";e.d(w,"a",function(){return qe});var j=e("rePB"),C=e("VTBJ"),re=e("KQm4"),be=e("U8pU"),M=e("ODXe"),o=e("q1tI"),ie=e("TSYQ"),B=e.n(ie),h=e("Gytx"),H=e.n(h),K=e("Kwbf"),Z=e("t23M"),ne=e("qx4F"),T=e("6eGT"),m=e("IBYe"),f=e("Ff2n"),R=e("c+Xe"),b=e("fyJ8"),N=e("biw7");function S(u,D,A,G,te){var k=A[u]||{},U=A[D]||{},L,I;k.fixed==="left"?L=G.left[u]:U.fixed==="right"&&(I=G.right[D]);var le=!1,Y=!1,oe=!1,me=!1,pe=A[D+1],je=A[u-1];if(te==="rtl"){if(L!==void 0){var ze=je&&je.fixed==="left";me=!ze}else if(I!==void 0){var Te=pe&&pe.fixed==="right";oe=!Te}}else if(L!==void 0){var Ie=pe&&pe.fixed==="left";le=!Ie}else if(I!==void 0){var xe=je&&je.fixed==="right";Y=!xe}return{fixLeft:L,fixRight:I,lastFixLeft:le,firstFixRight:Y,lastFixRight:oe,firstFixLeft:me,isSticky:G.isSticky}}var _=e("sR1s");function Q(u){var D=u.cells,A=u.stickyOffsets,G=u.flattenColumns,te=u.rowComponent,k=u.cellComponent,U=u.onHeaderRow,L=u.index,I=o.useContext(N.a),le=I.prefixCls,Y=I.direction,oe;U&&(oe=U(D.map(function(pe){return pe.column}),L));var me=Object(_.a)(D.map(function(pe){return pe.column}));return o.createElement(te,Object.assign({},oe),D.map(function(pe,je){var ze=pe.column,Te=S(pe.colStart,pe.colEnd,G,A,Y),Ie;return ze&&ze.onHeaderCell&&(Ie=pe.column.onHeaderCell(ze)),o.createElement(b.a,Object.assign({},pe,{ellipsis:ze.ellipsis,align:ze.align,component:k,prefixCls:le,key:me[je]},Te,{additionalProps:Ie,rowType:"header"}))}))}Q.displayName="HeaderRow";var v=Q;function y(u){var D=[];function A(U,L){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;D[I]=D[I]||[];var le=L,Y=U.filter(Boolean).map(function(oe){var me={key:oe.key,className:oe.className||"",children:oe.title,column:oe,colStart:le},pe=1,je=oe.children;return je&&je.length>0&&(pe=A(je,le,I+1).reduce(function(ze,Te){return ze+Te},0),me.hasSubColumns=!0),"colSpan"in oe&&(pe=oe.colSpan),"rowSpan"in oe&&(me.rowSpan=oe.rowSpan),me.colSpan=pe,me.colEnd=me.colStart+pe-1,D[I].push(me),le+=pe,pe});return Y}A(u,0);for(var G=D.length,te=function(L){D[L].forEach(function(I){!("rowSpan"in I)&&!I.hasSubColumns&&(I.rowSpan=G-L)})},k=0;k=0;L-=1){var I=D[L],le=A&&A[L],Y=le&&le[s.a];(I||Y||U)&&(te.unshift(o.createElement("col",Object.assign({key:L,style:{width:I,minWidth:I}},Y))),U=!0)}return o.createElement("colgroup",null,te)}var c=t;function d(u,D){return Object(o.useMemo)(function(){for(var A=[],G=0;G1?nt-1:0),At=1;At=oe&&(Ve=oe-me),U({scrollLeft:Ve/oe*(Y+2)}),xe.current.x=Re.pageX},Qe=function(){var Re=Object($e.b)(k.current).top,Le=Re+k.current.offsetHeight,at=document.documentElement.scrollTop+window.innerHeight;Le-Object(ne.a)()<=at||Re>=at-L?Ie(function(ct){return Object(C.a)(Object(C.a)({},ct),{},{isHiddenScrollBar:!0})}):Ie(function(ct){return Object(C.a)(Object(C.a)({},ct),{},{isHiddenScrollBar:!1})})},Xe=function(Re){Ie(function(Le){return Object(C.a)(Object(C.a)({},Le),{},{scrollLeft:Re/Y*oe||0})})};return o.useImperativeHandle(A,function(){return{setScrollLeft:Xe}}),o.useEffect(function(){var ke=Object(Be.a)(document.body,"mouseup",it,!1),Re=Object(Be.a)(document.body,"mousemove",ut,!1);return Qe(),function(){ke.remove(),Re.remove()}},[me,He]),o.useEffect(function(){var ke=Object(Be.a)(window,"scroll",Qe,!1),Re=Object(Be.a)(window,"resize",Qe,!1);return function(){ke.remove(),Re.remove()}},[]),o.useEffect(function(){Te.isHiddenScrollBar||Ie(function(ke){var Re,Le;return Object(C.a)(Object(C.a)({},ke),{},{scrollLeft:k.current.scrollLeft/((Re=k.current)===null||Re===void 0?void 0:Re.scrollWidth)*((Le=k.current)===null||Le===void 0?void 0:Le.clientWidth)})})},[Te.isHiddenScrollBar]),Y<=oe||!me||Te.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(ne.a)(),width:oe,bottom:L},className:"".concat(le,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ke,ref:pe,className:B()("".concat(le,"-sticky-scroll-bar"),Object(j.a)({},"".concat(le,"-sticky-scroll-bar-active"),He)),style:{width:"".concat(me,"px"),transform:"translate3d(".concat(Te.scrollLeft,"px, 0, 0)")}}))},_e=o.forwardRef(we);function Oe(u,D){return o.useMemo(function(){var A=!!u;return{isSticky:A,stickyClassName:A?"".concat(D,"-sticky-header"):"",offsetHeader:Object(be.a)(u)==="object"&&u.offsetHeader||0,offsetScroll:Object(be.a)(u)==="object"&&u.offsetScroll||0}},[u,D])}var Je=[],Ze={},qe="rc-table-internal-hook",ot=o.memo(function(u){var D=u.children;return D},function(u,D){return H()(u.props,D.props)?u.pingLeft!==D.pingLeft||u.pingRight!==D.pingRight:!1});function Se(u){var D,A=u.prefixCls,G=u.className,te=u.rowClassName,k=u.style,U=u.data,L=u.rowKey,I=u.scroll,le=u.tableLayout,Y=u.direction,oe=u.title,me=u.footer,pe=u.summary,je=u.id,ze=u.showHeader,Te=u.components,Ie=u.emptyText,xe=u.onRow,st=u.onHeaderRow,Ye=u.internalHooks,He=u.transformColumns,tt=u.internalRefs,it=u.sticky,Ke=U||Je,ut=!!Ke.length,Qe=o.useState(0),Xe=Object(M.a)(Qe,2),ke=Xe[0],Re=Xe[1];o.useEffect(function(){Re(Object(ne.a)())});var Le=o.useMemo(function(){return Object(_.c)(Te,{})},[Te]),at=o.useCallback(function(Ae,Ue){return Object(_.b)(Le,Ae)||Ue},[Le]),ct=o.useMemo(function(){return typeof L=="function"?L:function(Ae){var Ue=Ae&&Ae[L];return Ue}},[L]),Ve=Object(s.c)(u),Ne=Ve.expandIcon,Pt=Ve.expandedRowKeys,Ft=Ve.defaultExpandedRowKeys,vt=Ve.defaultExpandAllRows,Nt=Ve.expandedRowRender,Dt=Ve.onExpand,Mt=Ve.onExpandedRowsChange,_t=Ve.expandRowByClick,ft=Ve.rowExpandable,St=Ve.expandIconColumnIndex,gt=Ve.expandedRowClassName,It=Ve.childrenColumnName,Ot=Ve.indentSize,Kt=Ne||Me,Bt=It||"children",Tt=o.useMemo(function(){return Nt?"row":u.expandable&&Ye===qe&&u.expandable.__PARENT_RENDER_ICON__||Ke.some(function(Ae){return Ae&&Object(be.a)(Ae)==="object"&&Ae[Bt]})?"nest":!1},[!!Nt,Ke]),kt=o.useState(function(){return Ft||(vt?Pe(Ke,ct,Bt):[])}),rt=Object(M.a)(kt,2),mt=rt[0],pt=rt[1],nt=o.useMemo(function(){return new Set(Pt||mt||[])},[Pt,mt]),Ct=o.useCallback(function(Ae){var Ue=ct(Ae,Ke.indexOf(Ae)),lt,Et=nt.has(Ue);Et?(nt.delete(Ue),lt=Object(re.a)(nt)):lt=[].concat(Object(re.a)(nt),[Ue]),pt(lt),Dt&&Dt(!Et,Ae),Mt&&Mt(lt)},[ct,nt,Ke,Dt,Mt]),At=o.useState(0),Vt=Object(M.a)(At,2),Wt=Vt[0],Ht=Vt[1],en=Object(z.b)(Object(C.a)(Object(C.a)(Object(C.a)({},u),Ve),{},{expandable:!!Nt,expandedKeys:nt,getRowKey:ct,onTriggerExpand:Ct,expandIcon:Kt,expandIconColumnIndex:St,direction:Y}),Ye===qe?He:null),Lt=Object(M.a)(en,2),Ce=Lt[0],V=Lt[1],he=o.useMemo(function(){return{columns:Ce,flattenColumns:V}},[Ce,V]),Fe=o.useRef(),Ee=o.useRef(),ce=o.useRef(),ye=o.useState(!1),We=Object(M.a)(ye,2),et=We[0],dt=We[1],xt=o.useState(!1),bt=Object(M.a)(xt,2),Ge=bt[0],Ut=bt[1],zt=g(new Map),jt=Object(M.a)(zt,2),dn=jt[0],yt=jt[1],xn=Object(_.a)(V),fn=xn.map(function(Ae){return dn.get(Ae)}),mn=o.useMemo(function(){return fn},[fn.join("_")]),Yt=ve(mn,V.length,Y),Rt=I&&Object(_.d)(I.y),wt=I&&Object(_.d)(I.x),$t=wt&&V.some(function(Ae){var Ue=Ae.fixed;return Ue}),pn=o.useRef(),Qt=Oe(it,A),Gt=Qt.isSticky,jn=Qt.offsetHeader,Rn=Qt.offsetScroll,Pn=Qt.stickyClassName,tn,Zt,nn;Rt&&(Zt={overflowY:"scroll",maxHeight:I.y}),wt&&(tn={overflowX:"auto"},Rt||(Zt={overflowY:"hidden"}),nn={width:I.x===!0?"auto":I.x,minWidth:"100%"});var hn=o.useCallback(function(Ae,Ue){yt(function(lt){var Et=new Map(lt);return Et.set(Ae,Ue),Et})},[]),Nn=ae(null),vn=Object(M.a)(Nn,2),Dn=vn[0],bn=vn[1];function an(Ae,Ue){if(!Ue)return;typeof Ue=="function"?Ue(Ae):Ue.scrollLeft!==Ae&&(Ue.scrollLeft=Ae)}var Xt=function(Ue){var lt=Ue.currentTarget,Et=Ue.scrollLeft,Jt=typeof Et=="number"?Et:lt.scrollLeft,On=lt||Ze;if(!bn()||bn()===On){var cn;Dn(On),an(Jt,Ee.current),an(Jt,ce.current),an(Jt,(cn=pn.current)===null||cn===void 0?void 0:cn.setScrollLeft)}if(lt){var wn=lt.scrollWidth,In=lt.clientWidth;dt(Jt>0),Ut(Jt0?[].concat(Object(C.a)(f),Object(C.a)(K(S).map(function(_){return Object(re.a)({fixed:N},_)}))):[].concat(Object(C.a)(f),[Object(re.a)(Object(re.a)({},R),{},{fixed:N})])},[])}function Z(m){for(var f=!0,R=0;R=0;S-=1){var _=m[S];if(N&&_.fixed!=="right")N=!1;else if(!N&&_.fixed==="right"){Object(ie.a)(!1,"Index ".concat(S+1," of `columns` missing `fixed='right'` prop."));break}}}function ne(m){return m.map(function(f){var R=f.fixed,b=Object(be.a)(f,["fixed"]),N=R;return R==="left"?N="right":R==="right"&&(N="left"),Object(re.a)({fixed:N},b)})}function T(m,f){var R=m.prefixCls,b=m.columns,N=m.children,S=m.expandable,_=m.expandedKeys,Q=m.getRowKey,v=m.onTriggerExpand,y=m.expandIcon,x=m.rowExpandable,l=m.expandIconColumnIndex,s=m.direction,t=m.expandRowByClick,c=M.useMemo(function(){return b||H(N)},[b,N]),d=M.useMemo(function(){if(S){var r,p=l||0,n=c[p],O=(r={},Object(j.a)(r,h.a,{className:"".concat(R,"-expand-icon-col")}),Object(j.a)(r,"title",""),Object(j.a)(r,"fixed",n?n.fixed:null),Object(j.a)(r,"className","".concat(R,"-row-expand-icon-cell")),Object(j.a)(r,"render",function(E,J,q){var ge=Q(J,q),de=_.has(ge),W=x?x(J):!0,z=y({prefixCls:R,expanded:de,expandable:W,record:J,onExpand:v});return t?M.createElement("span",{onClick:function(X){return X.stopPropagation()}},z):z}),r),P=c.slice();return p>=0&&P.splice(p,0,O),P}return c},[S,c,Q,_,y,s]),i=M.useMemo(function(){var r=d;return f&&(r=f(r)),r.length||(r=[{render:function(){return null}}]),r},[f,d,s]),a=M.useMemo(function(){return s==="rtl"?ne(K(i)):K(i)},[i,s]);return[i,a]}w.b=T},"y0+3":function(De,w,e){"use strict";e.d(w,"a",function(){return K}),e.d(w,"b",function(){return ne});var j=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},re={cssFloat:1,styleFloat:1,float:1};function be(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function M(T,m,f){if(m=m.toLowerCase(),f==="auto"){if(m==="height")return T.offsetHeight;if(m==="width")return T.offsetWidth}return m in C||(C[m]=j.test(m)),C[m]?parseFloat(f)||0:f}function o(T,m){var f=arguments.length,R=be(T);return m=re[m]?"cssFloat"in T.style?"cssFloat":"styleFloat":m,f===1?R:M(T,m,R[m]||T.style[m])}function ie(T,m,f){var R=arguments.length;if(m=re[m]?"cssFloat"in T.style?"cssFloat":"styleFloat":m,R===3)return typeof f=="number"&&j.test(m)&&(f="".concat(f,"px")),T.style[m]=f,f;for(var b in m)m.hasOwnProperty(b)&&ie(T,b,m[b]);return be(T)}function B(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function h(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function H(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:m}}function K(){var T=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:m}}function Z(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ne(T){var m=T.getBoundingClientRect(),f=document.documentElement;return{left:m.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__StudentList.0e0260a5.async.js b/p__Engineering__Lists__StudentList.0e0260a5.async.js index 3a12494d0a..885aba40b2 100644 --- a/p__Engineering__Lists__StudentList.0e0260a5.async.js +++ b/p__Engineering__Lists__StudentList.0e0260a5.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[134,6,8,10],{"0ntK":function(Xe,ve,a){Xe.exports={flex_box_center:"flex_box_center___wiNIz",flex_space_between:"flex_space_between___W6VyH",flex_box_vertical_center:"flex_box_vertical_center___2wI53",flex_box_center_end:"flex_box_center_end___1xc94",flex_box_column:"flex_box_column___t1uPg",wrap:"wrap___3SdnL",title:"title___5aDvb",control:"control___2cHNi",label:"label___2P1PV",button:"button___Fi9NA",form:"form___1mrGy",customModal:"customModal___1uZJy",customTable:"customTable___3xqky"}},"6+eU":function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return R});var w=a("wx14"),j=a("rePB"),je=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),f=a("Ji7U"),ce=a("LK+K"),se=a("q1tI"),K=a.n(se),k=a("TSYQ"),X=a.n(k),le=function($){var g,O="".concat($.rootPrefixCls,"-item"),d=X()(O,"".concat(O,"-").concat($.page),(g={},Object(j.a)(g,"".concat(O,"-active"),$.active),Object(j.a)(g,$.className,!!$.className),Object(j.a)(g,"".concat(O,"-disabled"),!$.page),g)),I=function(){$.onClick($.page)},F=function(Ce){$.onKeyPress(Ce,$.onClick,$.page)};return K.a.createElement("li",{title:$.showTitle?$.page:null,className:d,onClick:I,onKeyPress:F,tabIndex:"0"},$.itemRender($.page,"page",K.a.createElement("a",{rel:"nofollow"},$.page)))},pe=le,Z={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},_=function(J){Object(f.a)(g,J);var $=Object(ce.a)(g);function g(){var O;Object(U.a)(this,g);for(var d=arguments.length,I=new Array(d),F=0;F=0||Q.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;O.setState({goInputText:""}),P(O.getValidValue())},O.go=function(Q){var Ce=O.state.goInputText;if(Ce==="")return;(Q.keyCode===Z.ENTER||Q.type==="click")&&(O.setState({goInputText:""}),O.props.quickGo(O.getValidValue()))},O}return Object(r.a)(g,[{key:"getValidValue",value:function(){var d=this.state,I=d.goInputText,F=d.current;return!I||isNaN(I)?F:Number(I)}},{key:"getPageSizeOptions",value:function(){var d=this.props,I=d.pageSize,F=d.pageSizeOptions;return F.some(function(Q){return Q.toString()===I.toString()})?F:F.concat([I.toString()]).sort(function(Q,Ce){var te=isNaN(Number(Q))?0:Number(Q),P=isNaN(Number(Ce))?0:Number(Ce);return te-P})}},{key:"render",value:function(){var d=this,I=this.props,F=I.pageSize,Q=I.locale,Ce=I.rootPrefixCls,te=I.changeSize,P=I.quickGo,L=I.goButton,y=I.selectComponentClass,p=I.buildOptionText,A=I.selectPrefixCls,h=I.disabled,M=this.state.goInputText,G="".concat(Ce,"-options"),oe=y,D=null,B=null,ne=null;if(!te&&!P)return null;var ie=this.getPageSizeOptions();if(te&&oe){var ee=ie.map(function(z,q){return K.a.createElement(oe.Option,{key:q,value:z.toString()},(p||d.buildOptionText)(z))});D=K.a.createElement(oe,{disabled:h,prefixCls:A,showSearch:!1,className:"".concat(G,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(F||ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(q){return q.parentNode}},ee)}return P&&(L&&(ne=typeof L=="boolean"?K.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(G,"-quick-jumper-button")},Q.jump_to_confirm):K.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),B=K.a.createElement("div",{className:"".concat(G,"-quick-jumper")},Q.jump_to,K.a.createElement("input",{disabled:h,type:"text",value:M,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Q.page,ne)),K.a.createElement("li",{className:"".concat(G)},D,B)}}]),g}(K.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var x=_,ue=a("N2Kk");function V(){}function ae(J){return typeof J=="number"&&isFinite(J)&&Math.floor(J)===J}function fe(J,$,g){return g}function Y(J,$,g){var O=typeof J=="undefined"?$.pageSize:J;return Math.floor((g.total-1)/O)+1}var he=function(J){Object(f.a)(g,J);var $=Object(ce.a)(g);function g(O){var d;Object(U.a)(this,g),d=$.call(this,O),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(Y(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(te,P){var L=d.props.prefixCls,y=te||K.a.createElement("button",{type:"button","aria-label":P,className:"".concat(L,"-item-link")});return typeof te=="function"&&(y=K.a.createElement(te,Object(je.a)({},d.props))),y},d.savePaginationNode=function(te){d.paginationNode=te},d.isValid=function(te){return ae(te)&&te!==d.state.current},d.shouldDisplayQuickJumper=function(){var te=d.props,P=te.showQuickJumper,L=te.pageSize,y=te.total;return y<=L?!1:P},d.handleKeyDown=function(te){(te.keyCode===Z.ARROW_UP||te.keyCode===Z.ARROW_DOWN)&&te.preventDefault()},d.handleKeyUp=function(te){var P=d.getValidValue(te),L=d.state.currentInputValue;P!==L&&d.setState({currentInputValue:P}),te.keyCode===Z.ENTER?d.handleChange(P):te.keyCode===Z.ARROW_UP?d.handleChange(P-1):te.keyCode===Z.ARROW_DOWN&&d.handleChange(P+1)},d.changePageSize=function(te){var P=d.state.current,L=Y(te,d.state,d.props);P=P>L?L:P,L===0&&(P=d.state.current),typeof te=="number"&&("pageSize"in d.props||d.setState({pageSize:te}),"current"in d.props||d.setState({current:P,currentInputValue:P})),d.props.onShowSizeChange(P,te),"onChange"in d.props&&d.props.onChange&&d.props.onChange(P,te)},d.handleChange=function(te){var P=d.props.disabled,L=te;if(d.isValid(L)&&!P){var y=Y(void 0,d.state,d.props);L>y?L=y:L<1&&(L=1),"current"in d.props||d.setState({current:L,currentInputValue:L});var p=d.state.pageSize;return d.props.onChange(L,p),L}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?L-2:0),p=2;p=F?Ce=F:Ce=Number(I),Ce}},{key:"getShowSizeChanger",value:function(){var d=this.props,I=d.showSizeChanger,F=d.total,Q=d.totalBoundaryShowSizeChanger;return typeof I!="undefined"?I:F>Q}},{key:"renderPrev",value:function(d){var I=this.props,F=I.prevIcon,Q=I.itemRender,Ce=Q(d,"prev",this.getItemIcon(F,"prev page")),te=!this.hasPrev();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"renderNext",value:function(d){var I=this.props,F=I.nextIcon,Q=I.itemRender,Ce=Q(d,"next",this.getItemIcon(F,"next page")),te=!this.hasNext();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"render",value:function(){var d=this,I=this.props,F=I.prefixCls,Q=I.className,Ce=I.style,te=I.disabled,P=I.hideOnSinglePage,L=I.total,y=I.locale,p=I.showQuickJumper,A=I.showLessItems,h=I.showTitle,M=I.showTotal,G=I.simple,oe=I.itemRender,D=I.showPrevNextJumpers,B=I.jumpPrevIcon,ne=I.jumpNextIcon,ie=I.selectComponentClass,ee=I.selectPrefixCls,z=I.pageSizeOptions,q=this.state,n=q.current,m=q.pageSize,s=q.currentInputValue;if(P===!0&&L<=m)return null;var T=Y(void 0,this.state,this.props),H=[],re=null,Ee=null,Pe=null,ke=null,Ie=null,Ne=p&&p.goButton,Le=A?1:2,Nt=n-1>0?n-1:0,It=n+1=Le*2&&n!==1+2&&(H[0]=Object(se.cloneElement)(H[0],{className:"".concat(F,"-item-after-jump-prev")}),H.unshift(re)),T-n>=Le*2&&n!==T-2&&(H[H.length-1]=Object(se.cloneElement)(H[H.length-1],{className:"".concat(F,"-item-before-jump-next")}),H.push(Ee)),ge!==1&&H.unshift(Pe),Me!==T&&H.push(ke)}var xe=null;M&&(xe=K.a.createElement("li",{className:"".concat(F,"-total-text")},M(L,[L===0?0:(n-1)*m+1,n*m>L?L:n*m])));var ye=!this.hasPrev()||!T,_e=!this.hasNext()||!T;return K.a.createElement("ul",Object(w.a)({className:X()(F,Q,Object(j.a)({},"".concat(F,"-disabled"),te)),style:Ce,unselectable:"unselectable",ref:this.savePaginationNode},At),xe,K.a.createElement("li",{title:h?y.prev_page:null,onClick:this.prev,tabIndex:ye?null:0,onKeyPress:this.runIfEnterPrev,className:X()("".concat(F,"-prev"),Object(j.a)({},"".concat(F,"-disabled"),ye)),"aria-disabled":ye},this.renderPrev(Nt)),H,K.a.createElement("li",{title:h?y.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:X()("".concat(F,"-next"),Object(j.a)({},"".concat(F,"-disabled"),_e)),"aria-disabled":_e},this.renderNext(It)),K.a.createElement(x,{disabled:te,locale:y,rootPrefixCls:F,selectComponentClass:ie,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:m,pageSizeOptions:z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ne}))}}],[{key:"getDerivedStateFromProps",value:function(d,I){var F={};if("current"in d&&(F.current=d.current,d.current!==I.current&&(F.currentInputValue=F.current)),"pageSize"in d&&d.pageSize!==I.pageSize){var Q=I.current,Ce=Y(d.pageSize,I,d);Q=Q>Ce?Ce:Q,"current"in d||(F.current=Q,F.currentInputValue=Q),F.pageSize=d.pageSize}return F}}]),g}(K.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:V,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:V,locale:ue.a,style:{},itemRender:fe,totalBoundaryShowSizeChanger:50};var R=he},"6RRn":function(Xe,ve,a){"use strict";var w=a("wCXF"),j=a("n6Qo");a.d(ve,"b",function(){return j.a});var je=a("IBYe"),U=a("6eGT"),r=a("hW8S");a.d(ve,"a",function(){return r.a}),ve.c=w.b},"6eGT":function(Xe,ve,a){"use strict";function w(j){return null}ve.a=w},"815F":function(Xe,ve,a){"use strict";a.d(ve,"e",function(){return ce}),a.d(ve,"c",function(){return K}),a.d(ve,"d",function(){return k}),a.d(ve,"a",function(){return le}),a.d(ve,"f",function(){return pe}),a.d(ve,"b",function(){return Z});var w=a("KQm4"),j=a("VTBJ"),je=a("Ff2n"),U=a("Zm9Q"),r=a("Kwbf"),f=a("OZM5");function ce(_,x){return _!=null?_:x}function se(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=new Map;function ue(V){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(V||[]).forEach(function(fe){var Y=fe.key,he=fe.children;Object(r.a)(Y!=null,"Tree node must have a certain key: [".concat(ae).concat(Y,"]"));var R=String(Y);Object(r.a)(!x.has(R)||Y===null||Y===void 0,"Same 'key' exist in the Tree: ".concat(R)),x.set(R,!0),ue(he,"".concat(ae).concat(R," > "))})}ue(_)}function K(_){function x(ue){var V=Object(U.a)(ue);return V.map(function(ae){if(!Object(f.i)(ae))return Object(r.a)(!ae,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=ae.key,Y=ae.props,he=Y.children,R=Object(je.a)(Y,["children"]),J=Object(j.a)({key:fe},R),$=x(he);return $.length&&(J.children=$),J}).filter(function(ae){return ae})}return x(_)}function k(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ue=new Set(x===!0?[]:x),V=[];function ae(fe){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return fe.map(function(he,R){var J=Object(f.h)(Y?Y.pos:"0",R),$=ce(he.key,J),g=Object(j.a)(Object(j.a)({},he),{},{parent:Y,pos:J,children:null,data:he,isStart:[].concat(Object(w.a)(Y?Y.isStart:[]),[R===0]),isEnd:[].concat(Object(w.a)(Y?Y.isEnd:[]),[R===fe.length-1])});return V.push(g),x===!0||ue.has($)?g.children=ae(he.children||[],g):g.children=[],g})}return ae(_),V}function X(_,x,ue){var V;ue?typeof ue=="string"?V=function(Y){return Y[ue]}:typeof ue=="function"&&(V=function(Y){return ue(Y)}):V=function(Y,he){return ce(Y.key,he)};function ae(fe,Y,he){var R=fe?fe.children:_,J=fe?Object(f.h)(he.pos,Y):"0";if(fe){var $=V(fe,J),g={node:fe,index:Y,pos:J,key:$,parentPos:he.node?he.pos:null,level:he.level+1};x(g)}R&&R.forEach(function(O,d){ae(O,d,{node:fe,pos:J,level:he?he.level+1:-1})})}ae(null)}function le(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=x.initWrapper,V=x.processEntity,ae=x.onProcessFinished,fe=arguments.length>2?arguments[2]:void 0,Y={},he={},R={posEntities:Y,keyEntities:he};return ue&&(R=ue(R)||R),X(_,function(J){var $=J.node,g=J.index,O=J.pos,d=J.key,I=J.parentPos,F=J.level,Q={node:$,index:g,key:d,pos:O,level:F},Ce=ce(d,O);Y[O]=Q,he[Ce]=Q,Q.parent=Y[I],Q.parent&&(Q.parent.children=Q.parent.children||[],Q.parent.children.push(Q)),V&&V(Q,R)},fe),ae&&ae(R),R}function pe(_,x){var ue=x.expandedKeys,V=x.selectedKeys,ae=x.loadedKeys,fe=x.loadingKeys,Y=x.checkedKeys,he=x.halfCheckedKeys,R=x.dragOverNodeKey,J=x.dropPosition,$=x.keyEntities,g=$[_],O={eventKey:_,expanded:ue.indexOf(_)!==-1,selected:V.indexOf(_)!==-1,loaded:ae.indexOf(_)!==-1,loading:fe.indexOf(_)!==-1,checked:Y.indexOf(_)!==-1,halfChecked:he.indexOf(_)!==-1,pos:String(g?g.pos:""),dragOver:R===_&&J===0,dragOverGapTop:R===_&&J===-1,dragOverGapBottom:R===_&&J===1};return O}function Z(_){var x=_.data,ue=_.expanded,V=_.selected,ae=_.checked,fe=_.loaded,Y=_.loading,he=_.halfChecked,R=_.dragOver,J=_.dragOverGapTop,$=_.dragOverGapBottom,g=_.pos,O=_.active,d=Object(j.a)(Object(j.a)({},x),{},{expanded:ue,selected:V,checked:ae,loaded:fe,loading:Y,halfChecked:he,dragOver:R,dragOverGapTop:J,dragOverGapBottom:$,pos:g,active:O});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),d}},"9ZfG":function(Xe,ve,a){"use strict";var w=a("2qtc"),j=a("kLXV"),je=a("DYRE"),U=a("zeV3"),r=a("DZo9"),f=a("8z0m"),ce=a("+L6B"),se=a("2/Rp"),K=a("Znn+"),k=a("ZTPi"),X=a("miYZ"),le=a("tsqr"),pe=a("tJVT"),Z=a("q1tI"),_=a.n(Z),x=a("xvlK"),ue=a("1vsH"),V=a("Ty5D"),ae=a("NdNG"),fe=a.n(ae),Y=function(R){var J=R.visible,$=R.onOk,g=R.onCancel,O=R.templateFileName,d=R.templateFileUrl,I=R.otherTemplateText,F=R.formNode,Q=R.title,Ce=Object(Z.useState)([]),te=Object(pe.a)(Ce,2),P=te[0],L=te[1],y=Object(Z.useState)(!1),p=Object(pe.a)(y,2),A=p[0],h=p[1],M=Object(Z.useState)("1"),G=Object(pe.a)(M,2),oe=G[0],D=G[1],B=Object(V.i)();Object(Z.useEffect)(function(){J||(L([]),h(!1),D("1"))},[J]);var ne=function(){h(!0),$(P,function(){h(!1)})},ie=function(){g()},ee=function(){var m=d;Object(ue.v)(null,m)},z=function(m){var s,T,H,re,Ee=m==null||((s=m.name)===null||s===void 0)?void 0:s.substring(m==null||((T=m.name)===null||T===void 0)?void 0:T.lastIndexOf("."),m==null||((H=m.name)===null||H===void 0)?void 0:H.length);if(Ee=(re=Ee)===null||re===void 0?void 0:re.toLowerCase(),Ee!==".xls"&&Ee!==".xlsx")return le.b.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();var Pe={name:m.name,uid:m.uid,file:m};return L([Pe]),!1},q=function(){L([])};return _.a.createElement(j.a,{title:Q,visible:J,centered:!0,wrapClassName:fe.a.customModal,onCancel:ie,width:"740px",confirmLoading:A,footer:null},_.a.createElement(k.a,{className:fe.a.tabWarp,onChange:function(m){return D(m)},activeKey:oe},_.a.createElement(k.a.TabPane,{tab:"\u624B\u52A8\u65B0\u589E",key:"1"},F),_.a.createElement(k.a.TabPane,{tab:"\u6279\u91CF\u5BFC\u5165",key:"2"},_.a.createElement("div",{className:fe.a.content},_.a.createElement("div",{style:{marginLeft:41,paddingBottom:50}},_.a.createElement("div",{style:{marginTop:36}},_.a.createElement("span",null,"\u6B65\u9AA41\uFF1A"),_.a.createElement("span",null,"\u4E0B\u8F7D\xA0",_.a.createElement("span",{style:{color:"#0152D9",cursor:"pointer"},onClick:ee},_.a.createElement("i",{className:"iconfont icon-moban1 font14"}),O),"\uFF0C\xA0",I),_.a.createElement("span",{style:{color:"#FA6400"},className:"mt10"},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\u3002")),_.a.createElement("aside",{style:{marginTop:30}},_.a.createElement("div",{className:"mr20"},"\u6B65\u9AA42\uFF1A\u4E0A\u4F20\u586B\u5199\u5B8C\u6210\u7684\u6A21\u677F\u3002"),_.a.createElement("div",null,J&&_.a.createElement(f.a,{action:"/api/attachments.json",fileList:P,beforeUpload:z,onRemove:q,withCredentials:!0,accept:".xls,.xlsx"},_.a.createElement(se.a,{type:"primary",icon:_.a.createElement(x.a,null)},"\u9009\u62E9\u6587\u4EF6"))))),_.a.createElement(U.a,{className:"mr40 pb20",size:10,style:{float:"right"}},_.a.createElement(se.a,{onClick:function(){return ie()}},"\u53D6\u6D88"),_.a.createElement(se.a,{onClick:function(){return ne()},type:"primary"},"\u786E\u8BA4"))))))};ve.a=Y},BU3w:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("MNnm"),j="rc-util-key";function je(ce){if(ce.attachTo)return ce.attachTo;var se=document.querySelector("head");return se||document.body}function U(ce){var se,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var k=document.createElement("style");if((se=K.csp)===null||se===void 0?void 0:se.nonce){var X;k.nonce=(X=K.csp)===null||X===void 0?void 0:X.nonce}k.innerHTML=ce;var le=je(K),pe=le.firstChild;return K.prepend&&le.prepend?le.prepend(k):K.prepend&&pe?le.insertBefore(k,pe):le.appendChild(k),k}var r=new Map;function f(ce,se){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=je(K);if(!r.has(k)){var X=U("",K),le=X.parentNode;r.set(k,le),le.removeChild(X)}var pe=Array.from(r.get(k).children).find(function(V){return V.tagName==="STYLE"&&V[j]===se});if(pe){var Z,_;if(((Z=K.csp)===null||Z===void 0?void 0:Z.nonce)&&pe.nonce!==((_=K.csp)===null||_===void 0?void 0:_.nonce)){var x;pe.nonce=(x=K.csp)===null||x===void 0?void 0:x.nonce}return pe.innerHTML!==ce&&(pe.innerHTML=ce),pe}var ue=U(ce,K);return ue[j]=se,ue}},FAcQ:function(Xe,ve,a){"use strict";a.r(ve);var w=a("g9YV"),j=a("wCAj"),je=a("OaEy"),U=a("2fM7"),r=a("DYRE"),f=a("zeV3"),ce=a("+L6B"),se=a("2/Rp"),K=a("5NDa"),k=a("5rEg"),X=a("2qtc"),le=a("kLXV"),pe=a("miYZ"),Z=a("tsqr"),_=a("k1fw"),x=a("9og8"),ue=a("y8nQ"),V=a("Vl3Y"),ae=a("tJVT"),fe=a("WmNS"),Y=a.n(fe),he=a("q1tI"),R=a.n(he),J=a("0ntK"),$=a.n(J),g=a("9kvl"),O=a("9ZfG"),d=a("ErOA"),I=a("LvDl"),F=a.n(I),Q=a("1vsH"),Ce=a("m3rI"),te=a("fj85"),P=a("g+eg"),L=function(p){var A,h=p.user,M={page:1,per_page:20,total:0,search:"",save_search:"",ec_major_school_id:null,ec_year_id:null,category:"name",sort_by:null,direction:null},G=Object(he.useState)(M),oe=Object(ae.a)(G,2),D=oe[0],B=oe[1],ne=Object(he.useState)(!0),ie=Object(ae.a)(ne,2),ee=ie[0],z=ie[1],q=Object(he.useState)(!1),n=Object(ae.a)(q,2),m=n[0],s=n[1],T=Object(he.useState)(!1),H=Object(ae.a)(T,2),re=H[0],Ee=H[1],Pe=Object(he.useState)(!1),ke=Object(ae.a)(Pe,2),Ie=ke[0],Ne=ke[1],Le=Object(he.useState)(!1),Nt=Object(ae.a)(Le,2),It=Nt[0],At=Nt[1],jt=Object(he.useState)([]),zt=Object(ae.a)(jt,2),un=zt[0],N=zt[1],be=Object(he.useState)([]),ge=Object(ae.a)(be,2),Me=ge[0],Ae=ge[1],Re=Object(he.useState)([]),xe=Object(ae.a)(Re,2),ye=xe[0],_e=xe[1],Ue=Object(he.useState)([]),Te=Object(ae.a)(Ue,2),we=Te[0],$e=Te[1],Ke=Object(he.useState)(!1),Qe=Object(ae.a)(Ke,2),Et=Qe[0],ot=Qe[1],yt=V.a.useForm(),Ye=Object(ae.a)(yt,1),wt=Ye[0],Mt=Object(he.useRef)(null);Object(he.useEffect)(function(){var Fe;h!=null&&(Fe=h.userInfo)!==null&&Fe!==void 0&&Fe.school_id&&Jt()},[h==null||((A=h.userInfo)===null||A===void 0)?void 0:A.school_id]);var lt=function(){var Fe=Object(x.a)(Y.a.mark(function Se(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return it=Object(I.cloneDeep)(Be),P.a.setItem(h==null||((Ve=h.userInfo)===null||Ve===void 0)?void 0:Ve.login,[it==null?void 0:it.ec_major_school_id,it==null?void 0:it.ec_year_id]),it[Be==null?void 0:Be.category]=Be==null?void 0:Be.search,z(!0),Ut.next=6,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"get",params:it});case 6:Ge=Ut.sent,Ge!=null&&Ge.students&&($e((Ge==null?void 0:Ge.students)||[]),D.total=Ge==null?void 0:Ge.count,D.save_search=D.search,B(Object(_.a)({},D))),z(!1);case 9:case"end":return Ut.stop()}},Se)}));return function(Be){return Fe.apply(this,arguments)}}(),Ft=function(){var Se=Object(I.cloneDeep)(D);Se[D==null?void 0:D.category]=D==null?void 0:D.search,Object(Q.t)("",Object(Q.U)({url:Ce.a.API_SERVER+"/api/ec_years/".concat(D.ec_year_id,"/students.xlsx"),query:Se}))},Jt=function(){var Fe=Object(x.a)(Y.a.mark(function Se(){var Be,Ve,it,Ge,st,Ut,Tt,_n,Qt,cn,gn,dn;return Y.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(d.a)("/api/schools/".concat(h==null||((Be=h.userInfo)===null||Be===void 0)?void 0:Be.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Qt=Pt.sent,Qt!=null&&(Ve=Qt.data)!==null&&Ve!==void 0&&(it=Ve[0])!==null&&it!==void 0&&it.ec_major_school_id){Pt.next=7;break}return z(!1),s(!0),Pt.abrupt("return");case 7:return cn=P.a.getItem(h==null||((Ge=h.userInfo)===null||Ge===void 0)?void 0:Ge.login),gn=cn[0]||(Qt==null||((st=Qt.data)===null||st===void 0||((Ut=st[0])===null||Ut===void 0))?void 0:Ut.ec_major_school_id),Pt.next=11,Object(d.a)("/api/ec_major_schools/".concat(gn,"/ec_years/get_year_list.json"),{method:"get"});case 11:dn=Pt.sent,D.ec_major_school_id=gn,D.ec_year_id=cn[1]||(dn==null||((Tt=dn.data)===null||Tt===void 0||((_n=Tt[0])===null||_n===void 0))?void 0:_n.ec_year_id),Ae((Qt==null?void 0:Qt.data)||[]),_e((dn==null?void 0:dn.data)||[]),B(D),lt(D);case 18:case"end":return Pt.stop()}},Se)}));return function(){return Fe.apply(this,arguments)}}(),ft=function(){var Fe=Object(x.a)(Y.a.mark(function Se(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,Object(d.a)("/api/ec_major_schools/".concat(Be,"/ec_years/get_year_list.json"),{method:"get"});case 2:Ge=Ut.sent,D.ec_major_school_id=Be,D.ec_year_id=Ge==null||((Ve=Ge.data)===null||Ve===void 0||((it=Ve[0])===null||it===void 0))?void 0:it.ec_year_id,_e((Ge==null?void 0:Ge.data)||[]),B(D),lt(D);case 8:case"end":return Ut.stop()}},Se)}));return function(Be){return Fe.apply(this,arguments)}}(),Gt=function(Se,Be){if(D.page=1,D[Be]=Se,Be==="category"){D.search="",D.save_search="",B(Object(_.a)({},D));return}if(Be==="ec_major_school_id"){ft(Se);return}Be==="ec_year_id"&&(B(Object(_.a)({},D)),lt(D))},Rt=function(Se){D.page=1,D.save_search=Se,B(Object(_.a)({},D))},Ct=function(Se){if(Se.length===0){Z.b.warn("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u5B66\u751F");return}le.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Be=Object(x.a)(Y.a.mark(function it(){var Ge,st;return Y.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"delete",body:{ids:Se}});case 2:Ge=Tt.sent,(Ge==null?void 0:Ge.status)===0&&(st=Se.length===we.length&&D.page>1?D.page-1:D.page,D.page=st,N([]),B(Object(_.a)({},D)),lt(D));case 4:case"end":return Tt.stop()}},it)}));function Ve(){return Be.apply(this,arguments)}return Ve}()})},ht=function(Se,Be,Ve){if(D.page=Se==null?void 0:Se.current,D.per_page=Se==null?void 0:Se.pageSize,Ve!=null&&Ve.order?(D.sort_by=Ve==null?void 0:Ve.field,D.direction=(Ve==null?void 0:Ve.order)==="ascend"?"asc":"desc"):(D.sort_by=null,D.direction=null),B(Object(_.a)({},D)),nn)return;lt(D)},Ze={selectedRowKeys:un,columnWidth:54,onChange:function(Se){return N(Se)}},Lt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Se,Be,Ve){return D.per_page*(D.page-1)+Ve+1}},{title:"\u59D3\u540D",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(Se){return Se||"-"}},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,sorter:!0,render:function(Se){return Se||"-"}},{title:"\u73ED\u7EA7",dataIndex:"clazz",ellipsis:!0,sorter:!0,render:function(Se){return Se||"-"}},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department",ellipsis:!0,sorter:!0,render:function(Se){return Se||"-"}},{title:"\u64CD\u4F5C",width:90,dataIndex:"action",render:function(Se,Be){return R.a.createElement("span",null,R.a.createElement("i",{onClick:function(){return qt(Be.id)},className:"iconfont icon-bianji7 c-gcrz-primary mr10 current"}),R.a.createElement("i",{onClick:function(){return Ct([Be.id])},className:"iconfont icon-piliangshanchubeifen c-gcrz-primary current"}))}}],Zt=function(){var Fe=Object(x.a)(Y.a.mark(function Se(Be,Ve){var it,Ge,st;return Y.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(!(Be.length===0)){Tt.next=4;break}return Z.b.warn("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Ve(),Tt.abrupt("return");case 4:return Ge=new FormData,Ge.append("file",(it=Be[0])===null||it===void 0?void 0:it.file),Tt.next=8,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/import.json"),{method:"post",body:Ge},!0);case 8:st=Tt.sent,(st==null?void 0:st.status)===0&&(lt(D),At(!1)),Ve();case 11:case"end":return Tt.stop()}},Se)}));return function(Be,Ve){return Fe.apply(this,arguments)}}(),qt=function(){var Fe=Object(x.a)(Y.a.mark(function Se(Be){var Ve;return Y.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return ot(Be),Ge.next=3,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/student_detail.json"),{method:"get",params:{id:Be}});case 3:Ve=Ge.sent,Ve!=null&&Ve.students&&wt.setFieldsValue((Ve==null?void 0:Ve.students)||{});case 5:case"end":return Ge.stop()}},Se)}));return function(Be){return Fe.apply(this,arguments)}}(),Dt=function(){var Fe=Object(x.a)(Y.a.mark(function Se(Be){var Ve,it;return Y.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Mt.current?Ee(!0):Ne(!0),!Et){st.next=7;break}return st.next=4,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"put",body:Object(_.a)(Object(_.a)({},Be),{},{id:Et})});case 4:it=st.sent,st.next=10;break;case 7:return st.next=9,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"post",body:Be});case 9:it=st.sent;case 10:((Ve=it)===null||Ve===void 0?void 0:Ve.status)===0&&(Mt.current&&(At(!1),ot(!1)),wt.resetFields(),Z.b.success("\u4FDD\u5B58\u6210\u529F"),lt(D)),Ee(!1),Ne(!1);case 13:case"end":return st.stop()}},Se)}));return function(Be){return Fe.apply(this,arguments)}}(),Sn=function(Se){return R.a.createElement("div",null,R.a.createElement(V.a,{form:wt,className:$.a.form,colon:!1,onFinish:Dt,labelCol:{span:4},wrapperCol:{span:19}},R.a.createElement(V.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),R.a.createElement(V.a.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"})),R.a.createElement(V.a.Item,{label:"\u73ED\u7EA7",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u73ED\u7EA7"})),R.a.createElement(V.a.Item,{label:"\u6240\u5C5E\u5B66\u9662",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}))),R.a.createElement(f.a,{size:10,className:$.a.button,style:{margin:"0 40px 20px 0"}},R.a.createElement(se.a,{onClick:function(){ot(!1),At(!1)}},"\u53D6\u6D88"),R.a.createElement(se.a,{disabled:Ie,type:Se?"primary":"default",loading:re,onClick:function(){Mt.current=!0,wt.submit()}},"\u4FDD\u5B58"),!Se&&R.a.createElement(se.a,{disabled:re,loading:Ie,type:"primary",onClick:function(){Mt.current=!1,wt.submit()}},"\u7EE7\u7EED\u65B0\u589E")),R.a.createElement("div",{style:{clear:"both"}}))},nn=ee||m;return R.a.createElement("div",{className:$.a.wrap},R.a.createElement(te.a,{title:"\u5B66\u751F\u4FE1\u606F",style:{padding:"12px 0 0 20px"}}),R.a.createElement(f.a,{className:$.a.button,size:10},R.a.createElement(se.a,{disabled:nn,onClick:function(){wt.resetFields(),At(!0)},type:"primary"},R.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u5B66\u751F"),R.a.createElement(se.a,{disabled:nn,onClick:function(){return Ct(un)}},R.a.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u6279\u91CF\u5220\u9664"),R.a.createElement(se.a,{disabled:nn,onClick:function(){return Ft()}},R.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA")),R.a.createElement("div",{style:{clear:"both"}}),R.a.createElement("div",{className:$.a.control},R.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),R.a.createElement(U.a,{disabled:nn,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:D==null?void 0:D.ec_major_school_id,onChange:function(Se){return Gt(Se,"ec_major_school_id")}},Me==null?void 0:Me.map(function(Fe){return R.a.createElement(U.a.Option,{key:Fe.ec_major_school_id,value:Fe.ec_major_school_id},Fe.name)})),R.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),R.a.createElement(U.a,{disabled:nn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:D==null?void 0:D.ec_year_id,onChange:function(Se){return Gt(Se,"ec_year_id")}},ye==null?void 0:ye.map(function(Fe){return R.a.createElement(U.a.Option,{key:Fe.ec_year_id,value:Fe.ec_year_id},Fe.year)})),R.a.createElement("div",{className:$.a.label,style:{width:100,background:"#fff"}},R.a.createElement(U.a,{disabled:nn,style:{width:100,transform:"translate(-1px, -1px)"},bordered:!1,value:D==null?void 0:D.category,onChange:function(Se){return Gt(Se,"category")}},R.a.createElement(U.a.Option,{value:"student_id"},"\u5B66\u751F\u5B66\u53F7"),R.a.createElement(U.a.Option,{value:"name"},"\u5B66\u751F\u59D3\u540D"),R.a.createElement(U.a.Option,{value:"clazz"},"\u5B66\u751F\u73ED\u7EA7"))),R.a.createElement(k.a.Search,{placeholder:"\u8BF7\u8F93\u5165".concat((D==null?void 0:D.category)==="student_id"?"\u5B66\u751F\u5B66\u53F7":(D==null?void 0:D.category)==="name"?"\u5B66\u751F\u59D3\u540D":"\u5B66\u751F\u73ED\u7EA7"),value:D==null?void 0:D.save_search,disabled:nn,onChange:function(Se){return Rt(Se.target.value)},onSearch:function(){D.page=1,D.search=D.save_search,B(Object(_.a)({},D)),lt(D)}})),R.a.createElement(j.a,{rowSelection:Ze,className:$.a.customTable,dataSource:we,bordered:!1,rowKey:"id",columns:Lt,rowClassName:$.a.row,loading:ee,onChange:ht,pagination:{pageSize:D.per_page,total:D.total,current:D.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Se){return R.a.createElement("span",{className:"mr10"},"\u5171",R.a.createElement("span",{className:"c-orange"},Se),"\u6761\u6570\u636E")}}}),R.a.createElement(O.a,{title:"\u65B0\u589E\u5B66\u751F",visible:It,onCancel:function(){return At(!1)},onOk:Zt,templateFileName:"\u5B66\u751F\u5BFC\u5165\u6A21\u677F",templateFileUrl:Ce.a.API_SERVER+"/api/ec_years/1/students/down_template.xlsx",otherTemplateText:"\u6279\u91CF\u5BFC\u5165\u5B66\u751F\u4FE1\u606F\u3002",formNode:Sn()}),R.a.createElement(le.a,{title:"\u4FEE\u6539\u5B66\u751F\u4FE1\u606F",className:$.a.customModal,width:740,visible:!!Et,centered:!0,onCancel:function(){ot(!1),wt.resetFields()},footer:null},Sn(!0)))};ve.default=Object(g.a)(function(y){var p=y.user;return{user:p}})(L)},GfqC:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je);function r(y,p){var A="cannot "+y.method+" "+y.action+" "+p.status+"'",h=new Error(A);return h.status=p.status,h.method=y.method,h.url=y.action,h}function f(y){var p=y.responseText||y.response;if(!p)return p;try{return JSON.parse(p)}catch(A){return p}}function ce(y){var p=new XMLHttpRequest;y.onProgress&&p.upload&&(p.upload.onprogress=function(G){G.total>0&&(G.percent=G.loaded/G.total*100),y.onProgress(G)});var A=new FormData;y.data&&Object.keys(y.data).forEach(function(M){var G=y.data[M];if(Array.isArray(G)){G.forEach(function(oe){A.append(M+"[]",oe)});return}A.append(M,y.data[M])}),y.file instanceof Blob?A.append(y.filename,y.file,y.file.name):A.append(y.filename,y.file),p.onerror=function(G){y.onError(G)},p.onload=function(){return p.status<200||p.status>=300?y.onError(r(y,p),f(p)):y.onSuccess(f(p),p)},p.open(y.method,y.action,!0),y.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0);var h=y.headers||{};return h["X-Requested-With"]!==null&&p.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(h).forEach(function(M){h[M]!==null&&p.setRequestHeader(M,h[M])}),p.send(A),{abort:function(){p.abort()}}}var se=+new Date,K=0;function k(){return"rc-upload-"+se+"-"+ ++K}function X(y,p){return y.indexOf(p,y.length-p.length)!==-1}var le=function(y,p){if(y&&p){var A=Array.isArray(p)?p:p.split(","),h=y.name||"",M=y.type||"",G=M.replace(/\/.*$/,"");return A.some(function(oe){var D=oe.trim();return D.charAt(0)==="."?X(h.toLowerCase(),D.toLowerCase()):/\/\*$/.test(D)?G===D.replace(/\/.*$/,""):M===D})}return!0};function pe(y,p){var A=y.createReader(),h=[];function M(){A.readEntries(function(G){var oe=Array.prototype.slice.apply(G);h=h.concat(oe);var D=!oe.length;D?p(h):M()})}M()}var Z=function(p,A,h){var M=function G(oe,D){D=D||"",oe.isFile?oe.file(function(B){h(B)&&(oe.fullPath&&!B.webkitRelativePath&&(Object.defineProperties(B,{webkitRelativePath:{writable:!0}}),B.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(B,{webkitRelativePath:{writable:!1}})),A([B]))}):oe.isDirectory&&pe(oe,function(B){B.forEach(function(ne){G(ne,""+D+oe.name+"/")})})};p.forEach(function(G){M(G.webkitGetAsEntry())})},_=Z,x=Object.assign||function(y){for(var p=1;p=0)continue;if(!Object.prototype.hasOwnProperty.call(y,h))continue;A[h]=y[h]}return A}function Y(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function he(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function R(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var J=function(p){return Object.keys(p).reduce(function(A,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-"||h==="role")&&(A[h]=p[h]),A},{})},$=function(y){R(p,y);function p(){var A,h,M,G;Y(this,p);for(var oe=arguments.length,D=Array(oe),B=0;B1&&arguments[1]!==void 0?arguments[1]:1,_e=Le.length,Ue=0;Ue<_e;Ue+=1){var Te=(xe+Ue*ye+_e)%_e,we=Le[Te],$e=we.group,Ke=we.data;if(!$e&&!Ke.disabled)return Te}return-1},zt=r.useState(function(){return jt(0)}),un=Object(se.a)(zt,2),N=un[0],be=un[1],ge=function(xe){be(xe);var ye=Le[xe];if(!ye){Pe(null,-1);return}Pe(ye.data.value,xe)};r.useEffect(function(){ge(z!==!1?jt(0):-1)},[Le.length,ie]),r.useEffect(function(){var Re=setTimeout(function(){if(!ee&&s&&ne.size===1){var xe=Array.from(ne)[0],ye=Le.findIndex(function(_e){var Ue=_e.data;return Ue.value===xe});ge(ye),At(ye)}});return function(){return clearTimeout(Re)}},[s]);var Me=function(xe){xe!==void 0&&re(xe,{selected:!ne.has(xe)}),ee||Ee(!1)};if(r.useImperativeHandle(M,function(){return{onKeyDown:function(xe){var ye=xe.which;switch(ye){case K.a.UP:case K.a.DOWN:{var _e=0;if(ye===K.a.UP?_e=-1:ye===K.a.DOWN&&(_e=1),_e!==0){var Ue=jt(N+_e,_e);At(Ue),ge(Ue)}break}case K.a.ENTER:{var Te=Le[N];Te&&!Te.data.disabled?Me(Te.data.value):Me(void 0),s&&xe.preventDefault();break}case K.a.ESC:Ee(!1)}},onKeyUp:function(){},scrollTo:function(xe){At(xe)}}}),Le.length===0)return r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),className:"".concat(Ne,"-empty"),onMouseDown:It},m);function Ae(Re){var xe=Le[Re];if(!xe)return null;var ye=xe.data||{},_e=ye.value,Ue=ye.label,Te=ye.children,we=Object(k.a)(ye,!0),$e=B?Te:Ue;return xe?r.createElement("div",Object.assign({"aria-label":typeof $e=="string"?$e:null},we,{key:Re,role:"option",id:"".concat(oe,"_list_").concat(Re),"aria-selected":ne.has(_e)}),_e):null}return r.createElement(r.Fragment,null,r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ae(N-1),Ae(N),Ae(N+1)),r.createElement(Z.a,{itemKey:"key",ref:Nt,data:Le,height:q,itemHeight:n,fullHeight:!1,onMouseDown:It,onScroll:ke,virtual:H,onMouseEnter:Ie},function(Re,xe){var ye,_e=Re.group,Ue=Re.groupOption,Te=Re.data,we=Te.label,$e=Te.key;if(_e)return r.createElement("div",{className:pe()(Ne,"".concat(Ne,"-group"))},we!==void 0?we:$e);var Ke=Te.disabled,Qe=Te.value,Et=Te.title,ot=Te.children,yt=Te.style,Ye=Te.className,wt=Object(ce.a)(Te,["disabled","value","title","children","style","className"]),Mt=ne.has(Qe),lt="".concat(Ne,"-option"),Ft=pe()(Ne,lt,Ye,(ye={},Object(f.a)(ye,"".concat(lt,"-grouped"),Ue),Object(f.a)(ye,"".concat(lt,"-active"),N===xe&&!Ke),Object(f.a)(ye,"".concat(lt,"-disabled"),Ke),Object(f.a)(ye,"".concat(lt,"-selected"),Mt),ye)),Jt=B?ot:we,ft=!T||typeof T=="function"||Mt;return r.createElement("div",Object.assign({},wt,{"aria-selected":Mt,className:Ft,title:Et,onMouseMove:function(){if(N===xe||Ke)return;ge(xe)},onClick:function(){Ke||Me(Qe)},style:yt}),r.createElement("div",{className:"".concat(lt,"-content")},Jt||Qe),r.isValidElement(T)||Mt,ft&&r.createElement(_.a,{className:"".concat(Ne,"-option-state"),customizeIcon:T,customizeIconProps:{isSelected:Mt}},Mt?"\u2713":null))}))},ue=r.forwardRef(x);ue.displayName="OptionList";var V=ue,ae=function(){return null};ae.isSelectOption=!0;var fe=ae,Y=function(){return null};Y.isSelectOptGroup=!0;var he=Y,R=a("VTBJ"),J=a("Zm9Q");function $(A){var h=A.key,M=A.props,G=M.children,oe=M.value,D=Object(ce.a)(M,["children","value"]);return Object(R.a)({key:h,value:oe!==void 0?oe:h,children:G},D)}function g(A){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(J.a)(A).map(function(M,G){if(!r.isValidElement(M)||!M.type)return null;var oe=M.type.isSelectOptGroup,D=M.key,B=M.props,ne=B.children,ie=Object(ce.a)(B,["children"]);return h||!oe?$(M):Object(R.a)(Object(R.a)({key:"__RC_SELECT_GRP__".concat(D===null?G:D,"__"),label:D},ie),{},{options:g(ne)})}).filter(function(M){return M})}var O=a("2Qr1"),d=a("qNPg"),I=a("U8pU"),F=a("Kwbf"),Q=a("WKfj");function Ce(A){var h=A.mode,M=A.options,G=A.children,oe=A.backfill,D=A.allowClear,B=A.placeholder,ne=A.getInputElement,ie=A.showSearch,ee=A.onSearch,z=A.defaultOpen,q=A.autoFocus,n=A.labelInValue,m=A.value,s=A.inputValue,T=A.optionLabelProp,H=h==="multiple"||h==="tags",re=ie!==void 0?ie:H||h==="combobox",Ee=M||g(G);if(Object(F.a)(h!=="tags"||Ee.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),h==="tags"||h==="combobox"){var Pe=Ee.some(function(Ne){return Ne.options?Ne.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});Object(F.a)(!Pe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(F.a)(h!=="combobox"||!T,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(F.a)(h==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(F.a)(h==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(F.b)(h!=="combobox"||!ne||!D||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!re&&h!=="combobox"&&h!=="tags"&&Object(F.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(F.b)(!z||q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),m!=null){var ke=Object(Q.d)(m);Object(F.a)(!n||ke.every(function(Ne){return Object(I.a)(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(F.a)(!H||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if(G){var Ie=null;Object(J.a)(G).some(function(Ne){if(!r.isValidElement(Ne)||!Ne.type)return!1;var Le=Ne.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var Nt=Object(J.a)(Ne.props.children).every(function(It){return!r.isValidElement(It)||!Ne.type||It.type.isSelectOption?!0:(Ie=It.type,!1)});return!Nt}return Ie=Le,!0}),Ie&&Object(F.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(F.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var te=Ce,P=Object(d.a)({prefixCls:"rc-select",components:{optionList:V},convertChildrenToData:g,flattenOptions:O.d,getLabeledValue:O.e,filterOptions:O.b,isValueDisabled:O.g,findValueOption:O.c,warningProps:te,fillOptionsWithMissingValue:O.a}),L=function(A){Object(je.a)(M,A);var h=Object(U.a)(M);function M(){var G;return Object(w.a)(this,M),G=h.apply(this,arguments),G.selectRef=r.createRef(),G.focus=function(){G.selectRef.current.focus()},G.blur=function(){G.selectRef.current.blur()},G}return Object(j.a)(M,[{key:"render",value:function(){return r.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),M}(r.Component);L.Option=fe,L.OptGroup=he;var y=L,p=ve.c=y},NdNG:function(Xe,ve,a){Xe.exports={flex_box_center:"flex_box_center___14pl3",flex_space_between:"flex_space_between___3BrPp",flex_box_vertical_center:"flex_box_vertical_center___3uNta",flex_box_center_end:"flex_box_center_end___2OAdL",flex_box_column:"flex_box_column___1Nwh3",customModal:"customModal___20MJx",content:"content___3jy8C",tabWarp:"tabWarp___cpvG0"}},NvD2:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("Kwbf");function j(ce,se){var K=new Set;return ce.forEach(function(k){se.has(k)||K.add(k)}),K}function je(ce){var se=ce||{},K=se.disabled,k=se.disableCheckbox,X=se.checkable;return!!(K||k)||X===!1}function U(ce,se,K,k){for(var X=new Set(ce),le=new Set,pe=0;pe<=K;pe+=1){var Z=se.get(pe)||new Set;Z.forEach(function(V){var ae=V.key,fe=V.node,Y=V.children,he=Y===void 0?[]:Y;X.has(ae)&&!k(fe)&&he.filter(function(R){return!k(R.node)}).forEach(function(R){X.add(R.key)})})}for(var _=new Set,x=K;x>=0;x-=1){var ue=se.get(x)||new Set;ue.forEach(function(V){var ae=V.parent,fe=V.node;if(k(fe)||!V.parent||_.has(V.parent.key))return;if(k(V.parent.node)){_.add(ae.key);return}var Y=!0,he=!1;(ae.children||[]).filter(function(R){return!k(R.node)}).forEach(function(R){var J=R.key,$=X.has(J);Y&&!$&&(Y=!1),!he&&($||le.has(J))&&(he=!0)}),Y&&X.add(ae.key),he&&le.add(ae.key),_.add(ae.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(j(le,X))}}function r(ce,se,K,k,X){for(var le=new Set(ce),pe=new Set(se),Z=0;Z<=k;Z+=1){var _=K.get(Z)||new Set;_.forEach(function(ae){var fe=ae.key,Y=ae.node,he=ae.children,R=he===void 0?[]:he;!le.has(fe)&&!pe.has(fe)&&!X(Y)&&R.filter(function(J){return!X(J.node)}).forEach(function(J){le.delete(J.key)})})}pe=new Set;for(var x=new Set,ue=k;ue>=0;ue-=1){var V=K.get(ue)||new Set;V.forEach(function(ae){var fe=ae.parent,Y=ae.node;if(X(Y)||!ae.parent||x.has(ae.parent.key))return;if(X(ae.parent.node)){x.add(fe.key);return}var he=!0,R=!1;(fe.children||[]).filter(function(J){return!X(J.node)}).forEach(function(J){var $=J.key,g=le.has($);he&&!g&&(he=!1),!R&&(g||pe.has($))&&(R=!0)}),he||le.delete(fe.key),R&&pe.add(fe.key),x.add(fe.key)})}return{checkedKeys:Array.from(le),halfCheckedKeys:Array.from(j(pe,le))}}function f(ce,se,K,k){var X=[],le;k?le=k:le=je;var pe=new Set(ce.filter(function(ue){var V=!!K[ue];return V||X.push(ue),V})),Z=new Map,_=0;Object.keys(K).forEach(function(ue){var V=K[ue],ae=V.level,fe=Z.get(ae);fe||(fe=new Set,Z.set(ae,fe)),fe.add(V),_=Math.max(_,ae)}),Object(w.a)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var x;return se===!0?x=U(pe,Z,_,le):x=r(pe,se.halfCheckedKeys,Z,_,le),x}},OZM5:function(Xe,ve,a){"use strict";a.d(ve,"b",function(){return k}),a.d(ve,"a",function(){return X}),a.d(ve,"k",function(){return le}),a.d(ve,"h",function(){return pe}),a.d(ve,"i",function(){return Z}),a.d(ve,"g",function(){return _}),a.d(ve,"c",function(){return x}),a.d(ve,"d",function(){return ue}),a.d(ve,"j",function(){return fe}),a.d(ve,"e",function(){return Y}),a.d(ve,"f",function(){return he});var w=a("KQm4"),j=a("U8pU"),je=a("Ff2n"),U=a("q1tI"),r=a.n(U),f=a("Kwbf"),ce=a("WaYH"),se=.25,K=2;function k(R,J){var $=R.slice(),g=$.indexOf(J);return g>=0&&$.splice(g,1),$}function X(R,J){var $=R.slice();return $.indexOf(J)===-1&&$.push(J),$}function le(R){return R.split("-")}function pe(R,J){return"".concat(R,"-").concat(J)}function Z(R){return R&&R.type&&R.type.isTreeNode}function _(R,J){var $=[R],g=J[R];function O(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(I){var F=I.key,Q=I.children;$.push(F),O(Q)})}return O(g.children),$}function x(R,J){var $=R.clientY,g=J.selectHandle.getBoundingClientRect(),O=g.top,d=g.bottom,I=g.height,F=Math.max(I*se,K);return $<=O+F?-1:$>=d-F?1:0}function ue(R,J){if(!R)return;var $=J.multiple;return $?R.slice():R.length?[R[0]]:R}var V=function(J){return J};function ae(R,J){if(!R)return[];var $=J||{},g=$.processProps,O=g===void 0?V:g,d=Array.isArray(R)?R:[R];return d.map(function(I){var F=I.children,Q=Object(je.a)(I,["children"]),Ce=ae(F,J);return r.a.createElement(ce.a,Object.assign({},O(Q)),Ce)})}function fe(R){if(!R)return null;var J;if(Array.isArray(R))J={checkedKeys:R,halfCheckedKeys:void 0};else if(Object(j.a)(R)==="object")J={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return J}function Y(R,J){var $=new Set;function g(O){if($.has(O))return;var d=J[O];if(!d)return;$.add(O);var I=d.parent,F=d.node;if(F.disabled)return;I&&g(I.key)}return(R||[]).forEach(function(O){g(O)}),Object(w.a)($)}function he(R){var J={};return Object.keys(R).forEach(function($){($.startsWith("data-")||$.startsWith("aria-"))&&(J[$]=R[$])}),J}},PsNh:function(Xe,ve,a){Xe.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Xe,ve,a){var w=a("wTVA"),j=a("EbDI"),je=a("ZhPi"),U=a("wkBT");function r(f){return w(f)||j(f)||je(f)||U()}Xe.exports=r,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports},WaYH:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("Ff2n"),je=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),f=a("JX7q"),ce=a("Ji7U"),se=a("LK+K"),K=a("q1tI"),k=a("TSYQ"),X=a.n(k),le=a("sboe"),pe=a("OZM5"),Z=function(J){var $=J.prefixCls,g=J.level,O=J.isStart,d=J.isEnd;if(!g)return null;for(var I="".concat($,"-indent-unit"),F=[],Q=0;Q=0||Q.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;O.setState({goInputText:""}),P(O.getValidValue())},O.go=function(Q){var Ce=O.state.goInputText;if(Ce==="")return;(Q.keyCode===Z.ENTER||Q.type==="click")&&(O.setState({goInputText:""}),O.props.quickGo(O.getValidValue()))},O}return Object(r.a)(g,[{key:"getValidValue",value:function(){var d=this.state,I=d.goInputText,F=d.current;return!I||isNaN(I)?F:Number(I)}},{key:"getPageSizeOptions",value:function(){var d=this.props,I=d.pageSize,F=d.pageSizeOptions;return F.some(function(Q){return Q.toString()===I.toString()})?F:F.concat([I.toString()]).sort(function(Q,Ce){var te=isNaN(Number(Q))?0:Number(Q),P=isNaN(Number(Ce))?0:Number(Ce);return te-P})}},{key:"render",value:function(){var d=this,I=this.props,F=I.pageSize,Q=I.locale,Ce=I.rootPrefixCls,te=I.changeSize,P=I.quickGo,L=I.goButton,y=I.selectComponentClass,p=I.buildOptionText,A=I.selectPrefixCls,h=I.disabled,M=this.state.goInputText,G="".concat(Ce,"-options"),oe=y,D=null,B=null,ne=null;if(!te&&!P)return null;var ie=this.getPageSizeOptions();if(te&&oe){var ee=ie.map(function(z,q){return K.a.createElement(oe.Option,{key:q,value:z.toString()},(p||d.buildOptionText)(z))});D=K.a.createElement(oe,{disabled:h,prefixCls:A,showSearch:!1,className:"".concat(G,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(F||ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(q){return q.parentNode}},ee)}return P&&(L&&(ne=typeof L=="boolean"?K.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(G,"-quick-jumper-button")},Q.jump_to_confirm):K.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),B=K.a.createElement("div",{className:"".concat(G,"-quick-jumper")},Q.jump_to,K.a.createElement("input",{disabled:h,type:"text",value:M,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Q.page,ne)),K.a.createElement("li",{className:"".concat(G)},D,B)}}]),g}(K.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var x=_,ue=a("N2Kk");function V(){}function ae(J){return typeof J=="number"&&isFinite(J)&&Math.floor(J)===J}function fe(J,$,g){return g}function Y(J,$,g){var O=typeof J=="undefined"?$.pageSize:J;return Math.floor((g.total-1)/O)+1}var he=function(J){Object(f.a)(g,J);var $=Object(ce.a)(g);function g(O){var d;Object(U.a)(this,g),d=$.call(this,O),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(Y(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(te,P){var L=d.props.prefixCls,y=te||K.a.createElement("button",{type:"button","aria-label":P,className:"".concat(L,"-item-link")});return typeof te=="function"&&(y=K.a.createElement(te,Object(je.a)({},d.props))),y},d.savePaginationNode=function(te){d.paginationNode=te},d.isValid=function(te){return ae(te)&&te!==d.state.current},d.shouldDisplayQuickJumper=function(){var te=d.props,P=te.showQuickJumper,L=te.pageSize,y=te.total;return y<=L?!1:P},d.handleKeyDown=function(te){(te.keyCode===Z.ARROW_UP||te.keyCode===Z.ARROW_DOWN)&&te.preventDefault()},d.handleKeyUp=function(te){var P=d.getValidValue(te),L=d.state.currentInputValue;P!==L&&d.setState({currentInputValue:P}),te.keyCode===Z.ENTER?d.handleChange(P):te.keyCode===Z.ARROW_UP?d.handleChange(P-1):te.keyCode===Z.ARROW_DOWN&&d.handleChange(P+1)},d.changePageSize=function(te){var P=d.state.current,L=Y(te,d.state,d.props);P=P>L?L:P,L===0&&(P=d.state.current),typeof te=="number"&&("pageSize"in d.props||d.setState({pageSize:te}),"current"in d.props||d.setState({current:P,currentInputValue:P})),d.props.onShowSizeChange(P,te),"onChange"in d.props&&d.props.onChange&&d.props.onChange(P,te)},d.handleChange=function(te){var P=d.props.disabled,L=te;if(d.isValid(L)&&!P){var y=Y(void 0,d.state,d.props);L>y?L=y:L<1&&(L=1),"current"in d.props||d.setState({current:L,currentInputValue:L});var p=d.state.pageSize;return d.props.onChange(L,p),L}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?L-2:0),p=2;p=F?Ce=F:Ce=Number(I),Ce}},{key:"getShowSizeChanger",value:function(){var d=this.props,I=d.showSizeChanger,F=d.total,Q=d.totalBoundaryShowSizeChanger;return typeof I!="undefined"?I:F>Q}},{key:"renderPrev",value:function(d){var I=this.props,F=I.prevIcon,Q=I.itemRender,Ce=Q(d,"prev",this.getItemIcon(F,"prev page")),te=!this.hasPrev();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"renderNext",value:function(d){var I=this.props,F=I.nextIcon,Q=I.itemRender,Ce=Q(d,"next",this.getItemIcon(F,"next page")),te=!this.hasNext();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"render",value:function(){var d=this,I=this.props,F=I.prefixCls,Q=I.className,Ce=I.style,te=I.disabled,P=I.hideOnSinglePage,L=I.total,y=I.locale,p=I.showQuickJumper,A=I.showLessItems,h=I.showTitle,M=I.showTotal,G=I.simple,oe=I.itemRender,D=I.showPrevNextJumpers,B=I.jumpPrevIcon,ne=I.jumpNextIcon,ie=I.selectComponentClass,ee=I.selectPrefixCls,z=I.pageSizeOptions,q=this.state,n=q.current,m=q.pageSize,s=q.currentInputValue;if(P===!0&&L<=m)return null;var S=Y(void 0,this.state,this.props),H=[],re=null,Ee=null,Pe=null,ke=null,Ie=null,Ne=p&&p.goButton,Le=A?1:2,Nt=n-1>0?n-1:0,It=n+1=Le*2&&n!==1+2&&(H[0]=Object(se.cloneElement)(H[0],{className:"".concat(F,"-item-after-jump-prev")}),H.unshift(re)),S-n>=Le*2&&n!==S-2&&(H[H.length-1]=Object(se.cloneElement)(H[H.length-1],{className:"".concat(F,"-item-before-jump-next")}),H.push(Ee)),ge!==1&&H.unshift(Pe),Me!==S&&H.push(ke)}var xe=null;M&&(xe=K.a.createElement("li",{className:"".concat(F,"-total-text")},M(L,[L===0?0:(n-1)*m+1,n*m>L?L:n*m])));var ye=!this.hasPrev()||!S,_e=!this.hasNext()||!S;return K.a.createElement("ul",Object(w.a)({className:X()(F,Q,Object(j.a)({},"".concat(F,"-disabled"),te)),style:Ce,unselectable:"unselectable",ref:this.savePaginationNode},At),xe,K.a.createElement("li",{title:h?y.prev_page:null,onClick:this.prev,tabIndex:ye?null:0,onKeyPress:this.runIfEnterPrev,className:X()("".concat(F,"-prev"),Object(j.a)({},"".concat(F,"-disabled"),ye)),"aria-disabled":ye},this.renderPrev(Nt)),H,K.a.createElement("li",{title:h?y.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:X()("".concat(F,"-next"),Object(j.a)({},"".concat(F,"-disabled"),_e)),"aria-disabled":_e},this.renderNext(It)),K.a.createElement(x,{disabled:te,locale:y,rootPrefixCls:F,selectComponentClass:ie,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:m,pageSizeOptions:z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ne}))}}],[{key:"getDerivedStateFromProps",value:function(d,I){var F={};if("current"in d&&(F.current=d.current,d.current!==I.current&&(F.currentInputValue=F.current)),"pageSize"in d&&d.pageSize!==I.pageSize){var Q=I.current,Ce=Y(d.pageSize,I,d);Q=Q>Ce?Ce:Q,"current"in d||(F.current=Q,F.currentInputValue=Q),F.pageSize=d.pageSize}return F}}]),g}(K.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:V,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:V,locale:ue.a,style:{},itemRender:fe,totalBoundaryShowSizeChanger:50};var R=he},"6RRn":function(Xe,ve,a){"use strict";var w=a("wCXF"),j=a("n6Qo");a.d(ve,"b",function(){return j.a});var je=a("IBYe"),U=a("6eGT"),r=a("hW8S");a.d(ve,"a",function(){return r.a}),ve.c=w.b},"6eGT":function(Xe,ve,a){"use strict";function w(j){return null}ve.a=w},"815F":function(Xe,ve,a){"use strict";a.d(ve,"e",function(){return ce}),a.d(ve,"c",function(){return K}),a.d(ve,"d",function(){return k}),a.d(ve,"a",function(){return le}),a.d(ve,"f",function(){return pe}),a.d(ve,"b",function(){return Z});var w=a("KQm4"),j=a("VTBJ"),je=a("Ff2n"),U=a("Zm9Q"),r=a("Kwbf"),f=a("OZM5");function ce(_,x){return _!=null?_:x}function se(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=new Map;function ue(V){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(V||[]).forEach(function(fe){var Y=fe.key,he=fe.children;Object(r.a)(Y!=null,"Tree node must have a certain key: [".concat(ae).concat(Y,"]"));var R=String(Y);Object(r.a)(!x.has(R)||Y===null||Y===void 0,"Same 'key' exist in the Tree: ".concat(R)),x.set(R,!0),ue(he,"".concat(ae).concat(R," > "))})}ue(_)}function K(_){function x(ue){var V=Object(U.a)(ue);return V.map(function(ae){if(!Object(f.i)(ae))return Object(r.a)(!ae,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=ae.key,Y=ae.props,he=Y.children,R=Object(je.a)(Y,["children"]),J=Object(j.a)({key:fe},R),$=x(he);return $.length&&(J.children=$),J}).filter(function(ae){return ae})}return x(_)}function k(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ue=new Set(x===!0?[]:x),V=[];function ae(fe){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return fe.map(function(he,R){var J=Object(f.h)(Y?Y.pos:"0",R),$=ce(he.key,J),g=Object(j.a)(Object(j.a)({},he),{},{parent:Y,pos:J,children:null,data:he,isStart:[].concat(Object(w.a)(Y?Y.isStart:[]),[R===0]),isEnd:[].concat(Object(w.a)(Y?Y.isEnd:[]),[R===fe.length-1])});return V.push(g),x===!0||ue.has($)?g.children=ae(he.children||[],g):g.children=[],g})}return ae(_),V}function X(_,x,ue){var V;ue?typeof ue=="string"?V=function(Y){return Y[ue]}:typeof ue=="function"&&(V=function(Y){return ue(Y)}):V=function(Y,he){return ce(Y.key,he)};function ae(fe,Y,he){var R=fe?fe.children:_,J=fe?Object(f.h)(he.pos,Y):"0";if(fe){var $=V(fe,J),g={node:fe,index:Y,pos:J,key:$,parentPos:he.node?he.pos:null,level:he.level+1};x(g)}R&&R.forEach(function(O,d){ae(O,d,{node:fe,pos:J,level:he?he.level+1:-1})})}ae(null)}function le(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=x.initWrapper,V=x.processEntity,ae=x.onProcessFinished,fe=arguments.length>2?arguments[2]:void 0,Y={},he={},R={posEntities:Y,keyEntities:he};return ue&&(R=ue(R)||R),X(_,function(J){var $=J.node,g=J.index,O=J.pos,d=J.key,I=J.parentPos,F=J.level,Q={node:$,index:g,key:d,pos:O,level:F},Ce=ce(d,O);Y[O]=Q,he[Ce]=Q,Q.parent=Y[I],Q.parent&&(Q.parent.children=Q.parent.children||[],Q.parent.children.push(Q)),V&&V(Q,R)},fe),ae&&ae(R),R}function pe(_,x){var ue=x.expandedKeys,V=x.selectedKeys,ae=x.loadedKeys,fe=x.loadingKeys,Y=x.checkedKeys,he=x.halfCheckedKeys,R=x.dragOverNodeKey,J=x.dropPosition,$=x.keyEntities,g=$[_],O={eventKey:_,expanded:ue.indexOf(_)!==-1,selected:V.indexOf(_)!==-1,loaded:ae.indexOf(_)!==-1,loading:fe.indexOf(_)!==-1,checked:Y.indexOf(_)!==-1,halfChecked:he.indexOf(_)!==-1,pos:String(g?g.pos:""),dragOver:R===_&&J===0,dragOverGapTop:R===_&&J===-1,dragOverGapBottom:R===_&&J===1};return O}function Z(_){var x=_.data,ue=_.expanded,V=_.selected,ae=_.checked,fe=_.loaded,Y=_.loading,he=_.halfChecked,R=_.dragOver,J=_.dragOverGapTop,$=_.dragOverGapBottom,g=_.pos,O=_.active,d=Object(j.a)(Object(j.a)({},x),{},{expanded:ue,selected:V,checked:ae,loaded:fe,loading:Y,halfChecked:he,dragOver:R,dragOverGapTop:J,dragOverGapBottom:$,pos:g,active:O});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),d}},"9ZfG":function(Xe,ve,a){"use strict";var w=a("2qtc"),j=a("kLXV"),je=a("DYRE"),U=a("zeV3"),r=a("DZo9"),f=a("8z0m"),ce=a("+L6B"),se=a("2/Rp"),K=a("Znn+"),k=a("ZTPi"),X=a("miYZ"),le=a("tsqr"),pe=a("tJVT"),Z=a("q1tI"),_=a.n(Z),x=a("xvlK"),ue=a("1vsH"),V=a("Ty5D"),ae=a("NdNG"),fe=a.n(ae),Y=function(R){var J=R.visible,$=R.onOk,g=R.onCancel,O=R.templateFileName,d=R.templateFileUrl,I=R.otherTemplateText,F=R.formNode,Q=R.title,Ce=Object(Z.useState)([]),te=Object(pe.a)(Ce,2),P=te[0],L=te[1],y=Object(Z.useState)(!1),p=Object(pe.a)(y,2),A=p[0],h=p[1],M=Object(Z.useState)("1"),G=Object(pe.a)(M,2),oe=G[0],D=G[1],B=Object(V.i)();Object(Z.useEffect)(function(){J||(L([]),h(!1),D("1"))},[J]);var ne=function(){h(!0),$(P,function(){h(!1)})},ie=function(){g()},ee=function(){var m=d;Object(ue.v)(null,m)},z=function(m){var s,S,H,re,Ee=m==null||((s=m.name)===null||s===void 0)?void 0:s.substring(m==null||((S=m.name)===null||S===void 0)?void 0:S.lastIndexOf("."),m==null||((H=m.name)===null||H===void 0)?void 0:H.length);if(Ee=(re=Ee)===null||re===void 0?void 0:re.toLowerCase(),Ee!==".xls"&&Ee!==".xlsx")return le.b.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();var Pe={name:m.name,uid:m.uid,file:m};return L([Pe]),!1},q=function(){L([])};return _.a.createElement(j.a,{title:Q,visible:J,centered:!0,wrapClassName:fe.a.customModal,onCancel:ie,width:"740px",confirmLoading:A,footer:null},_.a.createElement(k.a,{className:fe.a.tabWarp,onChange:function(m){return D(m)},activeKey:oe},_.a.createElement(k.a.TabPane,{tab:"\u624B\u52A8\u65B0\u589E",key:"1"},F),_.a.createElement(k.a.TabPane,{tab:"\u6279\u91CF\u5BFC\u5165",key:"2"},_.a.createElement("div",{className:fe.a.content},_.a.createElement("div",{style:{marginLeft:41,paddingBottom:50}},_.a.createElement("div",{style:{marginTop:36}},_.a.createElement("span",null,"\u6B65\u9AA41\uFF1A"),_.a.createElement("span",null,"\u4E0B\u8F7D\xA0",_.a.createElement("span",{style:{color:"#0152D9",cursor:"pointer"},onClick:ee},_.a.createElement("i",{className:"iconfont icon-moban1 font14"}),O),"\uFF0C\xA0",I),_.a.createElement("span",{style:{color:"#FA6400"},className:"mt10"},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\u3002")),_.a.createElement("aside",{style:{marginTop:30}},_.a.createElement("div",{className:"mr20"},"\u6B65\u9AA42\uFF1A\u4E0A\u4F20\u586B\u5199\u5B8C\u6210\u7684\u6A21\u677F\u3002"),_.a.createElement("div",null,J&&_.a.createElement(f.a,{action:"/api/attachments.json",fileList:P,beforeUpload:z,onRemove:q,withCredentials:!0,accept:".xls,.xlsx"},_.a.createElement(se.a,{type:"primary",icon:_.a.createElement(x.a,null)},"\u9009\u62E9\u6587\u4EF6"))))),_.a.createElement(U.a,{className:"mr40 pb20",size:10,style:{float:"right"}},_.a.createElement(se.a,{onClick:function(){return ie()}},"\u53D6\u6D88"),_.a.createElement(se.a,{onClick:function(){return ne()},type:"primary"},"\u786E\u8BA4"))))))};ve.a=Y},BU3w:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("MNnm"),j="rc-util-key";function je(ce){if(ce.attachTo)return ce.attachTo;var se=document.querySelector("head");return se||document.body}function U(ce){var se,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var k=document.createElement("style");if((se=K.csp)===null||se===void 0?void 0:se.nonce){var X;k.nonce=(X=K.csp)===null||X===void 0?void 0:X.nonce}k.innerHTML=ce;var le=je(K),pe=le.firstChild;return K.prepend&&le.prepend?le.prepend(k):K.prepend&&pe?le.insertBefore(k,pe):le.appendChild(k),k}var r=new Map;function f(ce,se){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=je(K);if(!r.has(k)){var X=U("",K),le=X.parentNode;r.set(k,le),le.removeChild(X)}var pe=Array.from(r.get(k).children).find(function(V){return V.tagName==="STYLE"&&V[j]===se});if(pe){var Z,_;if(((Z=K.csp)===null||Z===void 0?void 0:Z.nonce)&&pe.nonce!==((_=K.csp)===null||_===void 0?void 0:_.nonce)){var x;pe.nonce=(x=K.csp)===null||x===void 0?void 0:x.nonce}return pe.innerHTML!==ce&&(pe.innerHTML=ce),pe}var ue=U(ce,K);return ue[j]=se,ue}},FAcQ:function(Xe,ve,a){"use strict";a.r(ve);var w=a("g9YV"),j=a("wCAj"),je=a("OaEy"),U=a("2fM7"),r=a("DYRE"),f=a("zeV3"),ce=a("+L6B"),se=a("2/Rp"),K=a("5NDa"),k=a("5rEg"),X=a("2qtc"),le=a("kLXV"),pe=a("miYZ"),Z=a("tsqr"),_=a("k1fw"),x=a("9og8"),ue=a("y8nQ"),V=a("Vl3Y"),ae=a("tJVT"),fe=a("WmNS"),Y=a.n(fe),he=a("q1tI"),R=a.n(he),J=a("0ntK"),$=a.n(J),g=a("9kvl"),O=a("9ZfG"),d=a("ErOA"),I=a("LvDl"),F=a.n(I),Q=a("1vsH"),Ce=a("m3rI"),te=a("fj85"),P=a("g+eg"),L=function(p){var A,h=p.user,M={page:1,per_page:20,total:0,search:"",save_search:"",ec_major_school_id:null,ec_year_id:null,category:"name",sort_by:null,direction:null},G=Object(he.useState)(M),oe=Object(ae.a)(G,2),D=oe[0],B=oe[1],ne=Object(he.useState)(!0),ie=Object(ae.a)(ne,2),ee=ie[0],z=ie[1],q=Object(he.useState)(!1),n=Object(ae.a)(q,2),m=n[0],s=n[1],S=Object(he.useState)(!1),H=Object(ae.a)(S,2),re=H[0],Ee=H[1],Pe=Object(he.useState)(!1),ke=Object(ae.a)(Pe,2),Ie=ke[0],Ne=ke[1],Le=Object(he.useState)(!1),Nt=Object(ae.a)(Le,2),It=Nt[0],At=Nt[1],jt=Object(he.useState)([]),zt=Object(ae.a)(jt,2),un=zt[0],N=zt[1],be=Object(he.useState)([]),ge=Object(ae.a)(be,2),Me=ge[0],Ae=ge[1],Re=Object(he.useState)([]),xe=Object(ae.a)(Re,2),ye=xe[0],_e=xe[1],Ue=Object(he.useState)([]),Se=Object(ae.a)(Ue,2),we=Se[0],$e=Se[1],Ke=Object(he.useState)(!1),Qe=Object(ae.a)(Ke,2),Et=Qe[0],ot=Qe[1],yt=V.a.useForm(),Ye=Object(ae.a)(yt,1),wt=Ye[0],Mt=Object(he.useRef)(null);Object(he.useEffect)(function(){var Fe;h!=null&&(Fe=h.userInfo)!==null&&Fe!==void 0&&Fe.school_id&&Jt()},[h==null||((A=h.userInfo)===null||A===void 0)?void 0:A.school_id]);var lt=function(){var Fe=Object(x.a)(Y.a.mark(function Te(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return it=Object(I.cloneDeep)(Be),P.a.setItem(h==null||((Ve=h.userInfo)===null||Ve===void 0)?void 0:Ve.login,[it==null?void 0:it.ec_major_school_id,it==null?void 0:it.ec_year_id]),it[Be==null?void 0:Be.category]=Be==null?void 0:Be.search,z(!0),Ut.next=6,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"get",params:it});case 6:Ge=Ut.sent,Ge!=null&&Ge.students&&($e((Ge==null?void 0:Ge.students)||[]),D.total=Ge==null?void 0:Ge.count,D.save_search=D.search,B(Object(_.a)({},D))),z(!1);case 9:case"end":return Ut.stop()}},Te)}));return function(Be){return Fe.apply(this,arguments)}}(),Ft=function(){var Te=Object(I.cloneDeep)(D);Te[D==null?void 0:D.category]=D==null?void 0:D.search,Object(Q.t)("",Object(Q.U)({url:Ce.a.API_SERVER+"/api/ec_years/".concat(D.ec_year_id,"/students.xlsx"),query:Te}))},Jt=function(){var Fe=Object(x.a)(Y.a.mark(function Te(){var Be,Ve,it,Ge,st,Ut,St,_n,Qt,cn,gn,dn;return Y.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(d.a)("/api/schools/".concat(h==null||((Be=h.userInfo)===null||Be===void 0)?void 0:Be.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Qt=Pt.sent,Qt!=null&&(Ve=Qt.data)!==null&&Ve!==void 0&&(it=Ve[0])!==null&&it!==void 0&&it.ec_major_school_id){Pt.next=7;break}return z(!1),s(!0),Pt.abrupt("return");case 7:return cn=P.a.getItem(h==null||((Ge=h.userInfo)===null||Ge===void 0)?void 0:Ge.login),gn=cn[0]||(Qt==null||((st=Qt.data)===null||st===void 0||((Ut=st[0])===null||Ut===void 0))?void 0:Ut.ec_major_school_id),Pt.next=11,Object(d.a)("/api/ec_major_schools/".concat(gn,"/ec_years/get_year_list.json"),{method:"get"});case 11:dn=Pt.sent,D.ec_major_school_id=gn,D.ec_year_id=cn[1]||(dn==null||((St=dn.data)===null||St===void 0||((_n=St[0])===null||_n===void 0))?void 0:_n.ec_year_id),Ae((Qt==null?void 0:Qt.data)||[]),_e((dn==null?void 0:dn.data)||[]),B(D),lt(D);case 18:case"end":return Pt.stop()}},Te)}));return function(){return Fe.apply(this,arguments)}}(),ft=function(){var Fe=Object(x.a)(Y.a.mark(function Te(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,Object(d.a)("/api/ec_major_schools/".concat(Be,"/ec_years/get_year_list.json"),{method:"get"});case 2:Ge=Ut.sent,D.ec_major_school_id=Be,D.ec_year_id=Ge==null||((Ve=Ge.data)===null||Ve===void 0||((it=Ve[0])===null||it===void 0))?void 0:it.ec_year_id,_e((Ge==null?void 0:Ge.data)||[]),B(D),lt(D);case 8:case"end":return Ut.stop()}},Te)}));return function(Be){return Fe.apply(this,arguments)}}(),Gt=function(Te,Be){if(D.page=1,D[Be]=Te,Be==="category"){D.search="",D.save_search="",B(Object(_.a)({},D));return}if(Be==="ec_major_school_id"){ft(Te);return}Be==="ec_year_id"&&(B(Object(_.a)({},D)),lt(D))},Rt=function(Te){D.page=1,D.save_search=Te,B(Object(_.a)({},D))},Ct=function(Te){if(Te.length===0){Z.b.warn("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u5B66\u751F");return}le.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Be=Object(x.a)(Y.a.mark(function it(){var Ge,st;return Y.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"delete",body:{ids:Te}});case 2:Ge=St.sent,(Ge==null?void 0:Ge.status)===0&&(st=Te.length===we.length&&D.page>1?D.page-1:D.page,D.page=st,N([]),B(Object(_.a)({},D)),lt(D));case 4:case"end":return St.stop()}},it)}));function Ve(){return Be.apply(this,arguments)}return Ve}()})},ht=function(Te,Be,Ve){if(D.page=Te==null?void 0:Te.current,D.per_page=Te==null?void 0:Te.pageSize,Ve!=null&&Ve.order?(D.sort_by=Ve==null?void 0:Ve.field,D.direction=(Ve==null?void 0:Ve.order)==="ascend"?"asc":"desc"):(D.sort_by=null,D.direction=null),B(Object(_.a)({},D)),nn)return;lt(D)},Ze={selectedRowKeys:un,columnWidth:54,onChange:function(Te){return N(Te)}},Lt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Te,Be,Ve){return D.per_page*(D.page-1)+Ve+1}},{title:"\u59D3\u540D",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(Te){return Te||"-"}},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,sorter:!0,render:function(Te){return Te||"-"}},{title:"\u73ED\u7EA7",dataIndex:"clazz",ellipsis:!0,sorter:!0,render:function(Te){return Te||"-"}},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department",ellipsis:!0,sorter:!0,render:function(Te){return Te||"-"}},{title:"\u64CD\u4F5C",width:90,dataIndex:"action",render:function(Te,Be){return R.a.createElement("span",null,R.a.createElement("i",{onClick:function(){return qt(Be.id)},className:"iconfont icon-bianji7 c-gcrz-primary mr10 current"}),R.a.createElement("i",{onClick:function(){return Ct([Be.id])},className:"iconfont icon-piliangshanchubeifen c-gcrz-primary current"}))}}],Zt=function(){var Fe=Object(x.a)(Y.a.mark(function Te(Be,Ve){var it,Ge,st;return Y.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(!(Be.length===0)){St.next=4;break}return Z.b.warn("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Ve(),St.abrupt("return");case 4:return Ge=new FormData,Ge.append("file",(it=Be[0])===null||it===void 0?void 0:it.file),St.next=8,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/import.json"),{method:"post",body:Ge},!0);case 8:st=St.sent,(st==null?void 0:st.status)===0&&(lt(D),At(!1)),Ve();case 11:case"end":return St.stop()}},Te)}));return function(Be,Ve){return Fe.apply(this,arguments)}}(),qt=function(){var Fe=Object(x.a)(Y.a.mark(function Te(Be){var Ve;return Y.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return ot(Be),Ge.next=3,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/student_detail.json"),{method:"get",params:{id:Be}});case 3:Ve=Ge.sent,Ve!=null&&Ve.students&&wt.setFieldsValue((Ve==null?void 0:Ve.students)||{});case 5:case"end":return Ge.stop()}},Te)}));return function(Be){return Fe.apply(this,arguments)}}(),Dt=function(){var Fe=Object(x.a)(Y.a.mark(function Te(Be){var Ve,it;return Y.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Mt.current?Ee(!0):Ne(!0),!Et){st.next=7;break}return st.next=4,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"put",body:Object(_.a)(Object(_.a)({},Be),{},{id:Et})});case 4:it=st.sent,st.next=10;break;case 7:return st.next=9,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"post",body:Be});case 9:it=st.sent;case 10:((Ve=it)===null||Ve===void 0?void 0:Ve.status)===0&&(Mt.current&&(At(!1),ot(!1)),wt.resetFields(),Z.b.success("\u4FDD\u5B58\u6210\u529F"),lt(D)),Ee(!1),Ne(!1);case 13:case"end":return st.stop()}},Te)}));return function(Be){return Fe.apply(this,arguments)}}(),Tn=function(Te){return R.a.createElement("div",null,R.a.createElement(V.a,{form:wt,className:$.a.form,colon:!1,onFinish:Dt,labelCol:{span:4},wrapperCol:{span:19}},R.a.createElement(V.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),R.a.createElement(V.a.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"})),R.a.createElement(V.a.Item,{label:"\u73ED\u7EA7",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u73ED\u7EA7"})),R.a.createElement(V.a.Item,{label:"\u6240\u5C5E\u5B66\u9662",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}))),R.a.createElement(f.a,{size:10,className:$.a.button,style:{margin:"0 40px 20px 0"}},R.a.createElement(se.a,{onClick:function(){ot(!1),At(!1)}},"\u53D6\u6D88"),R.a.createElement(se.a,{disabled:Ie,type:Te?"primary":"default",loading:re,onClick:function(){Mt.current=!0,wt.submit()}},"\u4FDD\u5B58"),!Te&&R.a.createElement(se.a,{disabled:re,loading:Ie,type:"primary",onClick:function(){Mt.current=!1,wt.submit()}},"\u7EE7\u7EED\u65B0\u589E")),R.a.createElement("div",{style:{clear:"both"}}))},nn=ee||m;return R.a.createElement("div",{className:$.a.wrap},R.a.createElement(te.a,{title:"\u5B66\u751F\u4FE1\u606F",style:{padding:"12px 0 0 20px"}}),R.a.createElement(f.a,{className:$.a.button,size:10},R.a.createElement(se.a,{disabled:nn,onClick:function(){wt.resetFields(),At(!0)},type:"primary"},R.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u5B66\u751F"),R.a.createElement(se.a,{disabled:nn,onClick:function(){return Ct(un)}},R.a.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u6279\u91CF\u5220\u9664"),R.a.createElement(se.a,{disabled:nn,onClick:function(){return Ft()}},R.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA")),R.a.createElement("div",{style:{clear:"both"}}),R.a.createElement("div",{className:$.a.control},R.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),R.a.createElement(U.a,{disabled:nn,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:D==null?void 0:D.ec_major_school_id,onChange:function(Te){return Gt(Te,"ec_major_school_id")}},Me==null?void 0:Me.map(function(Fe){return R.a.createElement(U.a.Option,{key:Fe.ec_major_school_id,value:Fe.ec_major_school_id},Fe.name)})),R.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),R.a.createElement(U.a,{disabled:nn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:D==null?void 0:D.ec_year_id,onChange:function(Te){return Gt(Te,"ec_year_id")}},ye==null?void 0:ye.map(function(Fe){return R.a.createElement(U.a.Option,{key:Fe.ec_year_id,value:Fe.ec_year_id},Fe.year)})),R.a.createElement("div",{className:$.a.label,style:{width:100,background:"#fff"}},R.a.createElement(U.a,{disabled:nn,style:{width:100,transform:"translate(-1px, -1px)"},bordered:!1,value:D==null?void 0:D.category,onChange:function(Te){return Gt(Te,"category")}},R.a.createElement(U.a.Option,{value:"student_id"},"\u5B66\u751F\u5B66\u53F7"),R.a.createElement(U.a.Option,{value:"name"},"\u5B66\u751F\u59D3\u540D"),R.a.createElement(U.a.Option,{value:"clazz"},"\u5B66\u751F\u73ED\u7EA7"))),R.a.createElement(k.a.Search,{placeholder:"\u8BF7\u8F93\u5165".concat((D==null?void 0:D.category)==="student_id"?"\u5B66\u751F\u5B66\u53F7":(D==null?void 0:D.category)==="name"?"\u5B66\u751F\u59D3\u540D":"\u5B66\u751F\u73ED\u7EA7"),value:D==null?void 0:D.save_search,disabled:nn,onChange:function(Te){return Rt(Te.target.value)},onSearch:function(){D.page=1,D.search=D.save_search,B(Object(_.a)({},D)),lt(D)}})),R.a.createElement(j.a,{rowSelection:Ze,className:$.a.customTable,dataSource:we,bordered:!1,rowKey:"id",columns:Lt,rowClassName:$.a.row,loading:ee,onChange:ht,pagination:{pageSize:D.per_page,total:D.total,current:D.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Te){return R.a.createElement("span",{className:"mr10"},"\u5171",R.a.createElement("span",{className:"c-orange"},Te),"\u6761\u6570\u636E")}}}),R.a.createElement(O.a,{title:"\u65B0\u589E\u5B66\u751F",visible:It,onCancel:function(){return At(!1)},onOk:Zt,templateFileName:"\u5B66\u751F\u5BFC\u5165\u6A21\u677F",templateFileUrl:Ce.a.API_SERVER+"/api/ec_years/1/students/down_template.xlsx",otherTemplateText:"\u6279\u91CF\u5BFC\u5165\u5B66\u751F\u4FE1\u606F\u3002",formNode:Tn()}),R.a.createElement(le.a,{title:"\u4FEE\u6539\u5B66\u751F\u4FE1\u606F",className:$.a.customModal,width:740,visible:!!Et,centered:!0,onCancel:function(){ot(!1),wt.resetFields()},footer:null},Tn(!0)))};ve.default=Object(g.a)(function(y){var p=y.user;return{user:p}})(L)},GfqC:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je);function r(y,p){var A="cannot "+y.method+" "+y.action+" "+p.status+"'",h=new Error(A);return h.status=p.status,h.method=y.method,h.url=y.action,h}function f(y){var p=y.responseText||y.response;if(!p)return p;try{return JSON.parse(p)}catch(A){return p}}function ce(y){var p=new XMLHttpRequest;y.onProgress&&p.upload&&(p.upload.onprogress=function(G){G.total>0&&(G.percent=G.loaded/G.total*100),y.onProgress(G)});var A=new FormData;y.data&&Object.keys(y.data).forEach(function(M){var G=y.data[M];if(Array.isArray(G)){G.forEach(function(oe){A.append(M+"[]",oe)});return}A.append(M,y.data[M])}),y.file instanceof Blob?A.append(y.filename,y.file,y.file.name):A.append(y.filename,y.file),p.onerror=function(G){y.onError(G)},p.onload=function(){return p.status<200||p.status>=300?y.onError(r(y,p),f(p)):y.onSuccess(f(p),p)},p.open(y.method,y.action,!0),y.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0);var h=y.headers||{};return h["X-Requested-With"]!==null&&p.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(h).forEach(function(M){h[M]!==null&&p.setRequestHeader(M,h[M])}),p.send(A),{abort:function(){p.abort()}}}var se=+new Date,K=0;function k(){return"rc-upload-"+se+"-"+ ++K}function X(y,p){return y.indexOf(p,y.length-p.length)!==-1}var le=function(y,p){if(y&&p){var A=Array.isArray(p)?p:p.split(","),h=y.name||"",M=y.type||"",G=M.replace(/\/.*$/,"");return A.some(function(oe){var D=oe.trim();return D.charAt(0)==="."?X(h.toLowerCase(),D.toLowerCase()):/\/\*$/.test(D)?G===D.replace(/\/.*$/,""):M===D})}return!0};function pe(y,p){var A=y.createReader(),h=[];function M(){A.readEntries(function(G){var oe=Array.prototype.slice.apply(G);h=h.concat(oe);var D=!oe.length;D?p(h):M()})}M()}var Z=function(p,A,h){var M=function G(oe,D){D=D||"",oe.isFile?oe.file(function(B){h(B)&&(oe.fullPath&&!B.webkitRelativePath&&(Object.defineProperties(B,{webkitRelativePath:{writable:!0}}),B.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(B,{webkitRelativePath:{writable:!1}})),A([B]))}):oe.isDirectory&&pe(oe,function(B){B.forEach(function(ne){G(ne,""+D+oe.name+"/")})})};p.forEach(function(G){M(G.webkitGetAsEntry())})},_=Z,x=Object.assign||function(y){for(var p=1;p=0)continue;if(!Object.prototype.hasOwnProperty.call(y,h))continue;A[h]=y[h]}return A}function Y(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function he(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function R(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var J=function(p){return Object.keys(p).reduce(function(A,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-"||h==="role")&&(A[h]=p[h]),A},{})},$=function(y){R(p,y);function p(){var A,h,M,G;Y(this,p);for(var oe=arguments.length,D=Array(oe),B=0;B1&&arguments[1]!==void 0?arguments[1]:1,_e=Le.length,Ue=0;Ue<_e;Ue+=1){var Se=(xe+Ue*ye+_e)%_e,we=Le[Se],$e=we.group,Ke=we.data;if(!$e&&!Ke.disabled)return Se}return-1},zt=r.useState(function(){return jt(0)}),un=Object(se.a)(zt,2),N=un[0],be=un[1],ge=function(xe){be(xe);var ye=Le[xe];if(!ye){Pe(null,-1);return}Pe(ye.data.value,xe)};r.useEffect(function(){ge(z!==!1?jt(0):-1)},[Le.length,ie]),r.useEffect(function(){var Re=setTimeout(function(){if(!ee&&s&&ne.size===1){var xe=Array.from(ne)[0],ye=Le.findIndex(function(_e){var Ue=_e.data;return Ue.value===xe});ge(ye),At(ye)}});return function(){return clearTimeout(Re)}},[s]);var Me=function(xe){xe!==void 0&&re(xe,{selected:!ne.has(xe)}),ee||Ee(!1)};if(r.useImperativeHandle(M,function(){return{onKeyDown:function(xe){var ye=xe.which;switch(ye){case K.a.UP:case K.a.DOWN:{var _e=0;if(ye===K.a.UP?_e=-1:ye===K.a.DOWN&&(_e=1),_e!==0){var Ue=jt(N+_e,_e);At(Ue),ge(Ue)}break}case K.a.ENTER:{var Se=Le[N];Se&&!Se.data.disabled?Me(Se.data.value):Me(void 0),s&&xe.preventDefault();break}case K.a.ESC:Ee(!1)}},onKeyUp:function(){},scrollTo:function(xe){At(xe)}}}),Le.length===0)return r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),className:"".concat(Ne,"-empty"),onMouseDown:It},m);function Ae(Re){var xe=Le[Re];if(!xe)return null;var ye=xe.data||{},_e=ye.value,Ue=ye.label,Se=ye.children,we=Object(k.a)(ye,!0),$e=B?Se:Ue;return xe?r.createElement("div",Object.assign({"aria-label":typeof $e=="string"?$e:null},we,{key:Re,role:"option",id:"".concat(oe,"_list_").concat(Re),"aria-selected":ne.has(_e)}),_e):null}return r.createElement(r.Fragment,null,r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ae(N-1),Ae(N),Ae(N+1)),r.createElement(Z.a,{itemKey:"key",ref:Nt,data:Le,height:q,itemHeight:n,fullHeight:!1,onMouseDown:It,onScroll:ke,virtual:H,onMouseEnter:Ie},function(Re,xe){var ye,_e=Re.group,Ue=Re.groupOption,Se=Re.data,we=Se.label,$e=Se.key;if(_e)return r.createElement("div",{className:pe()(Ne,"".concat(Ne,"-group"))},we!==void 0?we:$e);var Ke=Se.disabled,Qe=Se.value,Et=Se.title,ot=Se.children,yt=Se.style,Ye=Se.className,wt=Object(ce.a)(Se,["disabled","value","title","children","style","className"]),Mt=ne.has(Qe),lt="".concat(Ne,"-option"),Ft=pe()(Ne,lt,Ye,(ye={},Object(f.a)(ye,"".concat(lt,"-grouped"),Ue),Object(f.a)(ye,"".concat(lt,"-active"),N===xe&&!Ke),Object(f.a)(ye,"".concat(lt,"-disabled"),Ke),Object(f.a)(ye,"".concat(lt,"-selected"),Mt),ye)),Jt=B?ot:we,ft=!S||typeof S=="function"||Mt;return r.createElement("div",Object.assign({},wt,{"aria-selected":Mt,className:Ft,title:Et,onMouseMove:function(){if(N===xe||Ke)return;ge(xe)},onClick:function(){Ke||Me(Qe)},style:yt}),r.createElement("div",{className:"".concat(lt,"-content")},Jt||Qe),r.isValidElement(S)||Mt,ft&&r.createElement(_.a,{className:"".concat(Ne,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:Mt}},Mt?"\u2713":null))}))},ue=r.forwardRef(x);ue.displayName="OptionList";var V=ue,ae=function(){return null};ae.isSelectOption=!0;var fe=ae,Y=function(){return null};Y.isSelectOptGroup=!0;var he=Y,R=a("VTBJ"),J=a("Zm9Q");function $(A){var h=A.key,M=A.props,G=M.children,oe=M.value,D=Object(ce.a)(M,["children","value"]);return Object(R.a)({key:h,value:oe!==void 0?oe:h,children:G},D)}function g(A){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(J.a)(A).map(function(M,G){if(!r.isValidElement(M)||!M.type)return null;var oe=M.type.isSelectOptGroup,D=M.key,B=M.props,ne=B.children,ie=Object(ce.a)(B,["children"]);return h||!oe?$(M):Object(R.a)(Object(R.a)({key:"__RC_SELECT_GRP__".concat(D===null?G:D,"__"),label:D},ie),{},{options:g(ne)})}).filter(function(M){return M})}var O=a("2Qr1"),d=a("qNPg"),I=a("U8pU"),F=a("Kwbf"),Q=a("WKfj");function Ce(A){var h=A.mode,M=A.options,G=A.children,oe=A.backfill,D=A.allowClear,B=A.placeholder,ne=A.getInputElement,ie=A.showSearch,ee=A.onSearch,z=A.defaultOpen,q=A.autoFocus,n=A.labelInValue,m=A.value,s=A.inputValue,S=A.optionLabelProp,H=h==="multiple"||h==="tags",re=ie!==void 0?ie:H||h==="combobox",Ee=M||g(G);if(Object(F.a)(h!=="tags"||Ee.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),h==="tags"||h==="combobox"){var Pe=Ee.some(function(Ne){return Ne.options?Ne.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});Object(F.a)(!Pe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(F.a)(h!=="combobox"||!S,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(F.a)(h==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(F.a)(h==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(F.b)(h!=="combobox"||!ne||!D||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!re&&h!=="combobox"&&h!=="tags"&&Object(F.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(F.b)(!z||q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),m!=null){var ke=Object(Q.d)(m);Object(F.a)(!n||ke.every(function(Ne){return Object(I.a)(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(F.a)(!H||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if(G){var Ie=null;Object(J.a)(G).some(function(Ne){if(!r.isValidElement(Ne)||!Ne.type)return!1;var Le=Ne.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var Nt=Object(J.a)(Ne.props.children).every(function(It){return!r.isValidElement(It)||!Ne.type||It.type.isSelectOption?!0:(Ie=It.type,!1)});return!Nt}return Ie=Le,!0}),Ie&&Object(F.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(F.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var te=Ce,P=Object(d.a)({prefixCls:"rc-select",components:{optionList:V},convertChildrenToData:g,flattenOptions:O.d,getLabeledValue:O.e,filterOptions:O.b,isValueDisabled:O.g,findValueOption:O.c,warningProps:te,fillOptionsWithMissingValue:O.a}),L=function(A){Object(je.a)(M,A);var h=Object(U.a)(M);function M(){var G;return Object(w.a)(this,M),G=h.apply(this,arguments),G.selectRef=r.createRef(),G.focus=function(){G.selectRef.current.focus()},G.blur=function(){G.selectRef.current.blur()},G}return Object(j.a)(M,[{key:"render",value:function(){return r.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),M}(r.Component);L.Option=fe,L.OptGroup=he;var y=L,p=ve.c=y},NdNG:function(Xe,ve,a){Xe.exports={flex_box_center:"flex_box_center___14pl3",flex_space_between:"flex_space_between___3BrPp",flex_box_vertical_center:"flex_box_vertical_center___3uNta",flex_box_center_end:"flex_box_center_end___2OAdL",flex_box_column:"flex_box_column___1Nwh3",customModal:"customModal___20MJx",content:"content___3jy8C",tabWarp:"tabWarp___cpvG0"}},NvD2:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("Kwbf");function j(ce,se){var K=new Set;return ce.forEach(function(k){se.has(k)||K.add(k)}),K}function je(ce){var se=ce||{},K=se.disabled,k=se.disableCheckbox,X=se.checkable;return!!(K||k)||X===!1}function U(ce,se,K,k){for(var X=new Set(ce),le=new Set,pe=0;pe<=K;pe+=1){var Z=se.get(pe)||new Set;Z.forEach(function(V){var ae=V.key,fe=V.node,Y=V.children,he=Y===void 0?[]:Y;X.has(ae)&&!k(fe)&&he.filter(function(R){return!k(R.node)}).forEach(function(R){X.add(R.key)})})}for(var _=new Set,x=K;x>=0;x-=1){var ue=se.get(x)||new Set;ue.forEach(function(V){var ae=V.parent,fe=V.node;if(k(fe)||!V.parent||_.has(V.parent.key))return;if(k(V.parent.node)){_.add(ae.key);return}var Y=!0,he=!1;(ae.children||[]).filter(function(R){return!k(R.node)}).forEach(function(R){var J=R.key,$=X.has(J);Y&&!$&&(Y=!1),!he&&($||le.has(J))&&(he=!0)}),Y&&X.add(ae.key),he&&le.add(ae.key),_.add(ae.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(j(le,X))}}function r(ce,se,K,k,X){for(var le=new Set(ce),pe=new Set(se),Z=0;Z<=k;Z+=1){var _=K.get(Z)||new Set;_.forEach(function(ae){var fe=ae.key,Y=ae.node,he=ae.children,R=he===void 0?[]:he;!le.has(fe)&&!pe.has(fe)&&!X(Y)&&R.filter(function(J){return!X(J.node)}).forEach(function(J){le.delete(J.key)})})}pe=new Set;for(var x=new Set,ue=k;ue>=0;ue-=1){var V=K.get(ue)||new Set;V.forEach(function(ae){var fe=ae.parent,Y=ae.node;if(X(Y)||!ae.parent||x.has(ae.parent.key))return;if(X(ae.parent.node)){x.add(fe.key);return}var he=!0,R=!1;(fe.children||[]).filter(function(J){return!X(J.node)}).forEach(function(J){var $=J.key,g=le.has($);he&&!g&&(he=!1),!R&&(g||pe.has($))&&(R=!0)}),he||le.delete(fe.key),R&&pe.add(fe.key),x.add(fe.key)})}return{checkedKeys:Array.from(le),halfCheckedKeys:Array.from(j(pe,le))}}function f(ce,se,K,k){var X=[],le;k?le=k:le=je;var pe=new Set(ce.filter(function(ue){var V=!!K[ue];return V||X.push(ue),V})),Z=new Map,_=0;Object.keys(K).forEach(function(ue){var V=K[ue],ae=V.level,fe=Z.get(ae);fe||(fe=new Set,Z.set(ae,fe)),fe.add(V),_=Math.max(_,ae)}),Object(w.a)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var x;return se===!0?x=U(pe,Z,_,le):x=r(pe,se.halfCheckedKeys,Z,_,le),x}},OZM5:function(Xe,ve,a){"use strict";a.d(ve,"b",function(){return k}),a.d(ve,"a",function(){return X}),a.d(ve,"k",function(){return le}),a.d(ve,"h",function(){return pe}),a.d(ve,"i",function(){return Z}),a.d(ve,"g",function(){return _}),a.d(ve,"c",function(){return x}),a.d(ve,"d",function(){return ue}),a.d(ve,"j",function(){return fe}),a.d(ve,"e",function(){return Y}),a.d(ve,"f",function(){return he});var w=a("KQm4"),j=a("U8pU"),je=a("Ff2n"),U=a("q1tI"),r=a.n(U),f=a("Kwbf"),ce=a("WaYH"),se=.25,K=2;function k(R,J){var $=R.slice(),g=$.indexOf(J);return g>=0&&$.splice(g,1),$}function X(R,J){var $=R.slice();return $.indexOf(J)===-1&&$.push(J),$}function le(R){return R.split("-")}function pe(R,J){return"".concat(R,"-").concat(J)}function Z(R){return R&&R.type&&R.type.isTreeNode}function _(R,J){var $=[R],g=J[R];function O(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(I){var F=I.key,Q=I.children;$.push(F),O(Q)})}return O(g.children),$}function x(R,J){var $=R.clientY,g=J.selectHandle.getBoundingClientRect(),O=g.top,d=g.bottom,I=g.height,F=Math.max(I*se,K);return $<=O+F?-1:$>=d-F?1:0}function ue(R,J){if(!R)return;var $=J.multiple;return $?R.slice():R.length?[R[0]]:R}var V=function(J){return J};function ae(R,J){if(!R)return[];var $=J||{},g=$.processProps,O=g===void 0?V:g,d=Array.isArray(R)?R:[R];return d.map(function(I){var F=I.children,Q=Object(je.a)(I,["children"]),Ce=ae(F,J);return r.a.createElement(ce.a,Object.assign({},O(Q)),Ce)})}function fe(R){if(!R)return null;var J;if(Array.isArray(R))J={checkedKeys:R,halfCheckedKeys:void 0};else if(Object(j.a)(R)==="object")J={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return J}function Y(R,J){var $=new Set;function g(O){if($.has(O))return;var d=J[O];if(!d)return;$.add(O);var I=d.parent,F=d.node;if(F.disabled)return;I&&g(I.key)}return(R||[]).forEach(function(O){g(O)}),Object(w.a)($)}function he(R){var J={};return Object.keys(R).forEach(function($){($.startsWith("data-")||$.startsWith("aria-"))&&(J[$]=R[$])}),J}},PsNh:function(Xe,ve,a){Xe.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Xe,ve,a){var w=a("wTVA"),j=a("EbDI"),je=a("ZhPi"),U=a("wkBT");function r(f){return w(f)||j(f)||je(f)||U()}Xe.exports=r,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports},WaYH:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("Ff2n"),je=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),f=a("JX7q"),ce=a("Ji7U"),se=a("LK+K"),K=a("q1tI"),k=a("TSYQ"),X=a.n(k),le=a("sboe"),pe=a("OZM5"),Z=function(J){var $=J.prefixCls,g=J.level,O=J.isStart,d=J.isEnd;if(!g)return null;for(var I="".concat($,"-indent-unit"),F=[],Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1,ie=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(ne&&te[ie])return te[ie];var ee=window.getComputedStyle(B),z=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),q=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),n=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),m=Ce.map(function(T){return"".concat(T,":").concat(ee.getPropertyValue(T))}).join(";"),s={sizingStyle:m,paddingSize:q,borderSize:n,boxSizing:z};return ne&&ie&&(te[ie]=s),s}function y(B){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),B.getAttribute("wrap")?P.setAttribute("wrap",B.getAttribute("wrap")):P.removeAttribute("wrap");var z=L(B,ne),q=z.paddingSize,n=z.borderSize,m=z.boxSizing,s=z.sizingStyle;P.setAttribute("style","".concat(s,";").concat(Q)),P.value=B.value||B.placeholder||"";var T=Number.MIN_SAFE_INTEGER,H=Number.MAX_SAFE_INTEGER,re=P.scrollHeight,Ee;if(m==="border-box"?re+=n:m==="content-box"&&(re-=q),ie!==null||ee!==null){P.value=" ";var Pe=P.scrollHeight-q;ie!==null&&(T=Pe*ie,m==="border-box"&&(T=T+q+n),re=Math.max(T,re)),ee!==null&&(H=Pe*ee,m==="border-box"&&(H=H+q+n),Ee=re>H?"":"hidden",re=Math.min(H,re))}return{height:re,minHeight:T,maxHeight:H,overflowY:Ee,resize:"none"}}var p=a("Gytx"),A=a.n(p),h;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(h||(h={}));var M=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var z;return Object(j.a)(this,ie),z=ne.call(this,ee),z.nextFrameActionId=void 0,z.resizeFrameId=void 0,z.textArea=void 0,z.saveTextArea=function(q){z.textArea=q},z.handleResize=function(q){var n=z.state.resizeStatus,m=z.props,s=m.autoSize,T=m.onResize;if(n!==h.NONE)return;typeof T=="function"&&T(q),s&&z.resizeOnNextFrame()},z.resizeOnNextFrame=function(){cancelAnimationFrame(z.nextFrameActionId),z.nextFrameActionId=requestAnimationFrame(z.resizeTextarea)},z.resizeTextarea=function(){var q=z.props.autoSize;if(!q||!z.textArea)return;var n=q.minRows,m=q.maxRows,s=y(z.textArea,!1,n,m);z.setState({textareaStyles:s,resizeStatus:h.RESIZING},function(){cancelAnimationFrame(z.resizeFrameId),z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:h.RESIZED},function(){z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:h.NONE}),z.fixFirefoxAutoScroll()})})})})},z.renderTextArea=function(){var q=z.props,n=q.prefixCls,m=n===void 0?"rc-textarea":n,s=q.autoSize,T=q.onResize,H=q.className,re=q.disabled,Ee=z.state,Pe=Ee.textareaStyles,ke=Ee.resizeStatus,Ie=Object(d.a)(z.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ne=F()(m,H,Object(se.a)({},"".concat(m,"-disabled"),re));"value"in Ie&&(Ie.value=Ie.value||"");var Le=Object(ce.a)(Object(ce.a)(Object(ce.a)({},z.props.style),Pe),ke===h.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(O,{onResize:z.handleResize,disabled:!(s||T)},f.createElement("textarea",Object(w.a)({},Ie,{className:Ne,style:Le,ref:z.saveTextArea})))},z.state={textareaStyles:{},resizeStatus:h.NONE},z}return Object(je.a)(ie,[{key:"componentDidUpdate",value:function(z){(z.value!==this.props.value||!A()(z.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var z=this.textArea.selectionStart,q=this.textArea.selectionEnd;this.textArea.setSelectionRange(z,q)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ie}(f.Component),G=M,oe=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var z;Object(j.a)(this,ie),z=ne.call(this,ee),z.resizableTextArea=void 0,z.focus=function(){z.resizableTextArea.textArea.focus()},z.saveTextArea=function(n){z.resizableTextArea=n},z.handleChange=function(n){var m=z.props.onChange;z.setValue(n.target.value,function(){z.resizableTextArea.resizeTextarea()}),m&&m(n)},z.handleKeyDown=function(n){var m=z.props,s=m.onPressEnter,T=m.onKeyDown;n.keyCode===13&&s&&s(n),T&&T(n)};var q=typeof ee.value=="undefined"||ee.value===null?ee.defaultValue:ee.value;return z.state={value:q},z}return Object(je.a)(ie,[{key:"setValue",value:function(z,q){"value"in this.props||this.setState({value:z},q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(G,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(z){return"value"in z?{value:z.value}:null}}]),ie}(f.Component),D=ve.default=oe},ZW5e:function(Xe,ve,a){Xe.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Xe,ve,a){"use strict";function w(X){return typeof X=="object"&&X!=null&&X.nodeType===1}function j(X,le){return(!le||X!=="hidden")&&X!=="visible"&&X!=="clip"}function je(X,le){if(X.clientHeightle||x>X&&ue=le&&V>=pe?x-X-Z:ue>le&&Vpe?ue-le+_:0}var r=function(X,le){var pe=window,Z=le.scrollMode,_=le.block,x=le.inline,ue=le.boundary,V=le.skipOverflowHiddenElements,ae=typeof ue=="function"?ue:function(Pe){return Pe!==ue};if(!w(X))throw new TypeError("Invalid target");for(var fe=document.scrollingElement||document.documentElement,Y=[],he=X;w(he)&&ae(he);){if((he=he.parentElement)===fe){Y.push(he);break}he!=null&&he===document.body&&je(he)&&!je(document.documentElement)||he!=null&&je(he,V)&&Y.push(he)}for(var R=pe.visualViewport?pe.visualViewport.width:innerWidth,J=pe.visualViewport?pe.visualViewport.height:innerHeight,$=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,O=X.getBoundingClientRect(),d=O.height,I=O.width,F=O.top,Q=O.right,Ce=O.bottom,te=O.left,P=_==="start"||_==="nearest"?F:_==="end"?Ce:F+d/2,L=x==="center"?te+I/2:x==="end"?Q:te,y=[],p=0;p=0&&te>=0&&Ce<=J&&Q<=R&&F>=oe&&Ce<=B&&te>=ne&&Q<=D)return y;var ie=getComputedStyle(A),ee=parseInt(ie.borderLeftWidth,10),z=parseInt(ie.borderTopWidth,10),q=parseInt(ie.borderRightWidth,10),n=parseInt(ie.borderBottomWidth,10),m=0,s=0,T="offsetWidth"in A?A.offsetWidth-A.clientWidth-ee-q:0,H="offsetHeight"in A?A.offsetHeight-A.clientHeight-z-n:0;if(fe===A)m=_==="start"?P:_==="end"?P-J:_==="nearest"?U(g,g+J,J,z,n,g+P,g+P+d,d):P-J/2,s=x==="start"?L:x==="center"?L-R/2:x==="end"?L-R:U($,$+R,R,ee,q,$+L,$+L+I,I),m=Math.max(0,m+g),s=Math.max(0,s+$);else{m=_==="start"?P-oe-z:_==="end"?P-B+n+H:_==="nearest"?U(oe,B,M,z,n+H,P,P+d,d):P-(oe+M/2)+H/2,s=x==="start"?L-ne-ee:x==="center"?L-(ne+G/2)+T/2:x==="end"?L-D+q+T:U(ne,D,G,ee,q+T,L,L+I,I);var re=A.scrollLeft,Ee=A.scrollTop;P+=Ee-(m=Math.max(0,Math.min(Ee+m,A.scrollHeight-M+H))),L+=re-(s=Math.max(0,Math.min(re+s,A.scrollWidth-G+T)))}y.push({el:A,top:m,left:s})}return y};function f(X){return X===Object(X)&&Object.keys(X).length!==0}function ce(X,le){le===void 0&&(le="auto");var pe="scrollBehavior"in document.body.style;X.forEach(function(Z){var _=Z.el,x=Z.top,ue=Z.left;_.scroll&&pe?_.scroll({top:x,left:ue,behavior:le}):(_.scrollTop=x,_.scrollLeft=ue)})}function se(X){return X===!1?{block:"end",inline:"nearest"}:f(X)?X:{block:"start",inline:"nearest"}}function K(X,le){var pe=!X.ownerDocument.documentElement.contains(X);if(f(le)&&typeof le.behavior=="function")return le.behavior(pe?[]:r(X,le));if(pe)return;var Z=se(le);return ce(r(X,Z),Z.behavior)}var k=ve.a=K},Zss7:function(Xe,ve,a){var w;(function(j){var je=/^\s+/,U=/\s+$/,r=0,f=j.round,ce=j.min,se=j.max,K=j.random;function k(n,m){if(n=n||"",m=m||{},n instanceof k)return n;if(!(this instanceof k))return new k(n,m);var s=X(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=f(100*this._a)/100,this._format=m.format||s.format,this._gradientType=m.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=s.ok,this._tc_id=r++}k.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),m,s,T,H,re,Ee;return m=n.r/255,s=n.g/255,T=n.b/255,m<=.03928?H=m/12.92:H=j.pow((m+.055)/1.055,2.4),s<=.03928?re=s/12.92:re=j.pow((s+.055)/1.055,2.4),T<=.03928?Ee=T/12.92:Ee=j.pow((T+.055)/1.055,2.4),.2126*H+.7152*re+.0722*Ee},setAlpha:function(n){return this._a=y(n),this._roundA=f(100*this._a)/100,this},toHsv:function(){var n=_(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=_(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),T=f(n.v*100);return this._a==1?"hsv("+m+", "+s+"%, "+T+"%)":"hsva("+m+", "+s+"%, "+T+"%, "+this._roundA+")"},toHsl:function(){var n=pe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=pe(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),T=f(n.l*100);return this._a==1?"hsl("+m+", "+s+"%, "+T+"%)":"hsla("+m+", "+s+"%, "+T+"%, "+this._roundA+")"},toHex:function(n){return ue(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return V(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(p(this._r,255)*100)+"%",g:f(p(this._g,255)*100)+"%",b:f(p(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%)":"rgba("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[ue(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var m="#"+ae(this._r,this._g,this._b,this._a),s=m,T=this._gradientType?"GradientType = 1, ":"";if(n){var H=k(n);s="#"+ae(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+T+"startColorstr="+m+",endColorstr="+s+")"},toString:function(n){var m=!!n;n=n||this._format;var s=!1,T=this._a<1&&this._a>=0,H=!m&&T&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return H?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(n,m){var s=n.apply(null,[this].concat([].slice.call(m)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(J,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(fe,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(he,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(n,m){return n.apply(null,[this].concat([].slice.call(m)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(Ce,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},k.fromRatio=function(n,m){if(typeof n=="object"){var s={};for(var T in n)n.hasOwnProperty(T)&&(T==="a"?s[T]=n[T]:s[T]=D(n[T]));n=s}return k(n,m)};function X(n){var m={r:0,g:0,b:0},s=1,T=null,H=null,re=null,Ee=!1,Pe=!1;return typeof n=="string"&&(n=z(n)),typeof n=="object"&&(ee(n.r)&&ee(n.g)&&ee(n.b)?(m=le(n.r,n.g,n.b),Ee=!0,Pe=String(n.r).substr(-1)==="%"?"prgb":"rgb"):ee(n.h)&&ee(n.s)&&ee(n.v)?(T=D(n.s),H=D(n.v),m=x(n.h,T,H),Ee=!0,Pe="hsv"):ee(n.h)&&ee(n.s)&&ee(n.l)&&(T=D(n.s),re=D(n.l),m=Z(n.h,T,re),Ee=!0,Pe="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=y(s),{ok:Ee,format:n.format||Pe,r:ce(255,se(m.r,0)),g:ce(255,se(m.g,0)),b:ce(255,se(m.b,0)),a:s}}function le(n,m,s){return{r:p(n,255)*255,g:p(m,255)*255,b:p(s,255)*255}}function pe(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var T=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=(T+H)/2;if(T==H)re=Ee=0;else{var ke=T-H;Ee=Pe>.5?ke/(2-T-H):ke/(T+H);switch(T){case n:re=(m-s)/ke+(m1&&(Le-=1),Le<1/6?Ie+(Ne-Ie)*6*Le:Le<1/2?Ne:Le<2/3?Ie+(Ne-Ie)*(2/3-Le)*6:Ie}if(m===0)T=H=re=s;else{var Pe=s<.5?s*(1+m):s+m-s*m,ke=2*s-Pe;T=Ee(ke,Pe,n+1/3),H=Ee(ke,Pe,n),re=Ee(ke,Pe,n-1/3)}return{r:T*255,g:H*255,b:re*255}}function _(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var T=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=T,ke=T-H;if(Ee=T===0?0:ke/T,T==H)re=0;else{switch(T){case n:re=(m-s)/ke+(m>1)+720)%360;--m;)T.h=(T.h+H)%360,re.push(k(T));return re}function Ce(n,m){m=m||6;for(var s=k(n).toHsv(),T=s.h,H=s.s,re=s.v,Ee=[],Pe=1/m;m--;)Ee.push(k({h:T,s:H,v:re})),re=(re+Pe)%1;return Ee}k.mix=function(n,m,s){s=s===0?0:s||50;var T=k(n).toRgb(),H=k(m).toRgb(),re=s/100,Ee={r:(H.r-T.r)*re+T.r,g:(H.g-T.g)*re+T.g,b:(H.b-T.b)*re+T.b,a:(H.a-T.a)*re+T.a};return k(Ee)},k.readability=function(n,m){var s=k(n),T=k(m);return(j.max(s.getLuminance(),T.getLuminance())+.05)/(j.min(s.getLuminance(),T.getLuminance())+.05)},k.isReadable=function(n,m,s){var T=k.readability(n,m),H,re;re=!1,H=q(s);switch(H.level+H.size){case"AAsmall":case"AAAlarge":re=T>=4.5;break;case"AAlarge":re=T>=3;break;case"AAAsmall":re=T>=7;break}return re},k.mostReadable=function(n,m,s){var T=null,H=0,re,Ee,Pe,ke;s=s||{},Ee=s.includeFallbackColors,Pe=s.level,ke=s.size;for(var Ie=0;IeH&&(H=re,T=k(m[Ie]));return k.isReadable(n,T,{level:Pe,size:ke})||!Ee?T:(s.includeFallbackColors=!1,k.mostReadable(n,["#fff","#000"],s))};var te=k.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"},P=k.hexNames=L(te);function L(n){var m={};for(var s in n)n.hasOwnProperty(s)&&(m[n[s]]=s);return m}function y(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function p(n,m){M(n)&&(n="100%");var s=G(n);return n=ce(m,se(0,parseFloat(n))),s&&(n=parseInt(n*m,10)/100),j.abs(n-m)<1e-6?1:n%m/parseFloat(m)}function A(n){return ce(1,se(0,n))}function h(n){return parseInt(n,16)}function M(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function G(n){return typeof n=="string"&&n.indexOf("%")!=-1}function oe(n){return n.length==1?"0"+n:""+n}function D(n){return n<=1&&(n=n*100+"%"),n}function B(n){return j.round(parseFloat(n)*255).toString(16)}function ne(n){return h(n)/255}var ie=function(){var n="[-\\+]?\\d+%?",m="[-\\+]?\\d*\\.\\d+%?",s="(?:"+m+")|(?:"+n+")",T="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",H="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+H),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 ee(n){return!!ie.CSS_UNIT.exec(n)}function z(n){n=n.replace(je,"").replace(U,"").toLowerCase();var m=!1;if(te[n])n=te[n],m=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=ie.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=ie.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=ie.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=ie.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=ie.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=ie.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=ie.hex8.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),a:ne(s[4]),format:m?"name":"hex8"}:(s=ie.hex6.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),format:m?"name":"hex"}:(s=ie.hex4.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),a:ne(s[4]+""+s[4]),format:m?"name":"hex8"}:(s=ie.hex3.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),format:m?"name":"hex"}:!1}function q(n){var m,s;return n=n||{level:"AA",size:"small"},m=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),m!=="AA"&&m!=="AAA"&&(m="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:m,size:s}}Xe.exports?Xe.exports=k:!(w=function(){return k}.call(ve,a,ve,Xe),w!==void 0&&(Xe.exports=w))})(Math)},bT9E:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return j});var w=a("VTBJ");function j(je,U){var r=Object(w.a)({},je);return Array.isArray(U)&&U.forEach(function(f){delete r[f]}),r}},biw7:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=w.createContext(null);ve.a=je},fj85:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f}),a.d(ve,"b",function(){return k});var w=a("q1tI"),j=a.n(w),je=a("ZW5e"),U=a.n(je),r=function(le){var pe=le.title,Z=le.style,_=Z===void 0?{}:Z;return j.a.createElement("div",{className:U.a.panelTitleContainer,style:_},j.a.createElement("div",null,pe))},f=r,ce=a("PsNh"),se=a.n(ce),K=function(le){var pe=le.title,Z=le.children;return j.a.createElement("div",{className:se.a.selectWrapContainer},j.a.createElement("span",null,pe),Z)},k=K},fyJ8:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("VTBJ"),je=a("Ff2n"),U=a("U8pU"),r=a("q1tI"),f=a.n(r),ce=a("TSYQ"),se=a.n(ce),K=a("c+Xe"),k=a("sR1s");function X(x){return x&&Object(U.a)(x)==="object"&&!Array.isArray(x)&&!r.isValidElement(x)}function le(x){return typeof x=="string"?!0:Object(K.c)(x)}function pe(x,ue){var V,ae=x.prefixCls,fe=x.className,Y=x.record,he=x.index,R=x.dataIndex,J=x.render,$=x.children,g=x.component,O=g===void 0?"td":g,d=x.colSpan,I=x.rowSpan,F=x.fixLeft,Q=x.fixRight,Ce=x.firstFixLeft,te=x.lastFixLeft,P=x.firstFixRight,L=x.lastFixRight,y=x.appendNode,p=x.additionalProps,A=p===void 0?{}:p,h=x.ellipsis,M=x.align,G=x.rowType,oe=x.isSticky,D="".concat(ae,"-cell"),B,ne;if($)ne=$;else{var ie=Object(k.b)(Y,R);if(ne=ie,J){var ee=J(ie,Y,he);X(ee)?(ne=ee.children,B=ee.props):ne=ee}}Object(U.a)(ne)==="object"&&!Array.isArray(ne)&&!r.isValidElement(ne)&&(ne=null),h&&(te||P)&&(ne=r.createElement("span",{className:"".concat(D,"-content")},ne));var z=B||{},q=z.colSpan,n=z.rowSpan,m=z.style,s=z.className,T=Object(je.a)(z,["colSpan","rowSpan","style","className"]),H=q!==void 0?q:d,re=n!==void 0?n:I;if(H===0||re===0)return null;var Ee={},Pe=typeof F=="number",ke=typeof Q=="number";Pe&&(Ee.position="sticky",Ee.left=F),ke&&(Ee.position="sticky",Ee.right=Q);var Ie={};M&&(Ie.textAlign=M);var Ne,Le=h===!0?{showTitle:!0}:h;Le&&(Le.showTitle||G==="header")&&(typeof ne=="string"||typeof ne=="number"?Ne=ne.toString():r.isValidElement(ne)&&typeof ne.props.children=="string"&&(Ne=ne.props.children));var Nt=Object(j.a)(Object(j.a)(Object(j.a)({title:Ne},T),A),{},{colSpan:H&&H!==1?H:null,rowSpan:re&&re!==1?re:null,className:se()(D,fe,(V={},Object(w.a)(V,"".concat(D,"-fix-left"),Pe),Object(w.a)(V,"".concat(D,"-fix-left-first"),Ce),Object(w.a)(V,"".concat(D,"-fix-left-last"),te),Object(w.a)(V,"".concat(D,"-fix-right"),ke),Object(w.a)(V,"".concat(D,"-fix-right-first"),P),Object(w.a)(V,"".concat(D,"-fix-right-last"),L),Object(w.a)(V,"".concat(D,"-ellipsis"),h),Object(w.a)(V,"".concat(D,"-with-append"),y),Object(w.a)(V,"".concat(D,"-fix-sticky"),(Pe||ke)&&oe),V),A.className,s),style:Object(j.a)(Object(j.a)(Object(j.a)(Object(j.a)({},A.style),Ie),Ee),m),ref:le(O)?ue:null});return r.createElement(O,Object.assign({},Nt),y,ne)}var Z=r.forwardRef(pe);Z.displayName="Cell";var _=r.memo(Z,function(x,ue){return ue.shouldCellUpdate?!ue.shouldCellUpdate(ue.record,x.record):!1});ve.a=_},h78n:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return Ce});var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je),r={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},f=function(L){var y=L.map(function(){return Object(w.useRef)()}),p=Object(w.useRef)();return Object(w.useEffect)(function(){var A=Date.now(),h=!1;Object.keys(y).forEach(function(M){var G=y[M].current;if(!G)return;h=!0;var oe=G.style;oe.transitionDuration=".3s, .3s, .3s, .06s",p.current&&A-p.current<100&&(oe.transitionDuration="0s, 0s")}),h&&(p.current=Date.now())}),[y]};function ce(){return ce=Object.assign||function(P){for(var L=1;LP.length)&&(L=P.length);for(var y=0,p=new Array(L);y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,p))continue;y[p]=P[p]}}return y}function _(P,L){if(P==null)return{};var y={},p=Object.keys(P),A,h;for(h=0;h=0)continue;y[A]=P[A]}return y}var x=function(L){var y=L.className,p=L.percent,A=L.prefixCls,h=L.strokeColor,M=L.strokeLinecap,G=L.strokeWidth,oe=L.style,D=L.trailColor,B=L.trailWidth,ne=L.transition,ie=Z(L,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ie.gapPosition;var ee=Array.isArray(p)?p:[p],z=Array.isArray(h)?h:[h],q=f(ee),n=se(q,1),m=n[0],s=G/2,T=100-G/2,H="M ".concat(M==="round"?s:0,",").concat(s,` - L `).concat(M==="round"?T:100,",").concat(s),re="0 0 100 ".concat(G),Ee=0;return j.a.createElement("svg",ce({className:U()("".concat(A,"-line"),y),viewBox:re,preserveAspectRatio:"none",style:oe},ie),j.a.createElement("path",{className:"".concat(A,"-line-trail"),d:H,strokeLinecap:M,stroke:D,strokeWidth:B||G,fillOpacity:"0"}),ee.map(function(Pe,ke){var Ie={strokeDasharray:"".concat(Pe,"px, 100px"),strokeDashoffset:"-".concat(Ee,"px"),transition:ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ne=z[ke]||z[z.length-1];return Ee+=Pe,j.a.createElement("path",{key:ke,className:"".concat(A,"-line-path"),d:H,strokeLinecap:M,stroke:Ne,strokeWidth:G,fillOpacity:"0",ref:m[ke],style:Ie})}))};x.defaultProps=r;var ue=x;function V(){return V=Object.assign||function(P){for(var L=1;L1&&arguments[1]!==void 0?arguments[1]:!1,ie=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(ne&&te[ie])return te[ie];var ee=window.getComputedStyle(B),z=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),q=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),n=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),m=Ce.map(function(S){return"".concat(S,":").concat(ee.getPropertyValue(S))}).join(";"),s={sizingStyle:m,paddingSize:q,borderSize:n,boxSizing:z};return ne&&ie&&(te[ie]=s),s}function y(B){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),B.getAttribute("wrap")?P.setAttribute("wrap",B.getAttribute("wrap")):P.removeAttribute("wrap");var z=L(B,ne),q=z.paddingSize,n=z.borderSize,m=z.boxSizing,s=z.sizingStyle;P.setAttribute("style","".concat(s,";").concat(Q)),P.value=B.value||B.placeholder||"";var S=Number.MIN_SAFE_INTEGER,H=Number.MAX_SAFE_INTEGER,re=P.scrollHeight,Ee;if(m==="border-box"?re+=n:m==="content-box"&&(re-=q),ie!==null||ee!==null){P.value=" ";var Pe=P.scrollHeight-q;ie!==null&&(S=Pe*ie,m==="border-box"&&(S=S+q+n),re=Math.max(S,re)),ee!==null&&(H=Pe*ee,m==="border-box"&&(H=H+q+n),Ee=re>H?"":"hidden",re=Math.min(H,re))}return{height:re,minHeight:S,maxHeight:H,overflowY:Ee,resize:"none"}}var p=a("Gytx"),A=a.n(p),h;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(h||(h={}));var M=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var z;return Object(j.a)(this,ie),z=ne.call(this,ee),z.nextFrameActionId=void 0,z.resizeFrameId=void 0,z.textArea=void 0,z.saveTextArea=function(q){z.textArea=q},z.handleResize=function(q){var n=z.state.resizeStatus,m=z.props,s=m.autoSize,S=m.onResize;if(n!==h.NONE)return;typeof S=="function"&&S(q),s&&z.resizeOnNextFrame()},z.resizeOnNextFrame=function(){cancelAnimationFrame(z.nextFrameActionId),z.nextFrameActionId=requestAnimationFrame(z.resizeTextarea)},z.resizeTextarea=function(){var q=z.props.autoSize;if(!q||!z.textArea)return;var n=q.minRows,m=q.maxRows,s=y(z.textArea,!1,n,m);z.setState({textareaStyles:s,resizeStatus:h.RESIZING},function(){cancelAnimationFrame(z.resizeFrameId),z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:h.RESIZED},function(){z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:h.NONE}),z.fixFirefoxAutoScroll()})})})})},z.renderTextArea=function(){var q=z.props,n=q.prefixCls,m=n===void 0?"rc-textarea":n,s=q.autoSize,S=q.onResize,H=q.className,re=q.disabled,Ee=z.state,Pe=Ee.textareaStyles,ke=Ee.resizeStatus,Ie=Object(d.a)(z.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ne=F()(m,H,Object(se.a)({},"".concat(m,"-disabled"),re));"value"in Ie&&(Ie.value=Ie.value||"");var Le=Object(ce.a)(Object(ce.a)(Object(ce.a)({},z.props.style),Pe),ke===h.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(O,{onResize:z.handleResize,disabled:!(s||S)},f.createElement("textarea",Object(w.a)({},Ie,{className:Ne,style:Le,ref:z.saveTextArea})))},z.state={textareaStyles:{},resizeStatus:h.NONE},z}return Object(je.a)(ie,[{key:"componentDidUpdate",value:function(z){(z.value!==this.props.value||!A()(z.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var z=this.textArea.selectionStart,q=this.textArea.selectionEnd;this.textArea.setSelectionRange(z,q)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ie}(f.Component),G=M,oe=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var z;Object(j.a)(this,ie),z=ne.call(this,ee),z.resizableTextArea=void 0,z.focus=function(){z.resizableTextArea.textArea.focus()},z.saveTextArea=function(n){z.resizableTextArea=n},z.handleChange=function(n){var m=z.props.onChange;z.setValue(n.target.value,function(){z.resizableTextArea.resizeTextarea()}),m&&m(n)},z.handleKeyDown=function(n){var m=z.props,s=m.onPressEnter,S=m.onKeyDown;n.keyCode===13&&s&&s(n),S&&S(n)};var q=typeof ee.value=="undefined"||ee.value===null?ee.defaultValue:ee.value;return z.state={value:q},z}return Object(je.a)(ie,[{key:"setValue",value:function(z,q){"value"in this.props||this.setState({value:z},q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(G,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(z){return"value"in z?{value:z.value}:null}}]),ie}(f.Component),D=ve.default=oe},ZW5e:function(Xe,ve,a){Xe.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Xe,ve,a){"use strict";function w(X){return typeof X=="object"&&X!=null&&X.nodeType===1}function j(X,le){return(!le||X!=="hidden")&&X!=="visible"&&X!=="clip"}function je(X,le){if(X.clientHeightle||x>X&&ue=le&&V>=pe?x-X-Z:ue>le&&Vpe?ue-le+_:0}var r=function(X,le){var pe=window,Z=le.scrollMode,_=le.block,x=le.inline,ue=le.boundary,V=le.skipOverflowHiddenElements,ae=typeof ue=="function"?ue:function(Pe){return Pe!==ue};if(!w(X))throw new TypeError("Invalid target");for(var fe=document.scrollingElement||document.documentElement,Y=[],he=X;w(he)&&ae(he);){if((he=he.parentElement)===fe){Y.push(he);break}he!=null&&he===document.body&&je(he)&&!je(document.documentElement)||he!=null&&je(he,V)&&Y.push(he)}for(var R=pe.visualViewport?pe.visualViewport.width:innerWidth,J=pe.visualViewport?pe.visualViewport.height:innerHeight,$=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,O=X.getBoundingClientRect(),d=O.height,I=O.width,F=O.top,Q=O.right,Ce=O.bottom,te=O.left,P=_==="start"||_==="nearest"?F:_==="end"?Ce:F+d/2,L=x==="center"?te+I/2:x==="end"?Q:te,y=[],p=0;p=0&&te>=0&&Ce<=J&&Q<=R&&F>=oe&&Ce<=B&&te>=ne&&Q<=D)return y;var ie=getComputedStyle(A),ee=parseInt(ie.borderLeftWidth,10),z=parseInt(ie.borderTopWidth,10),q=parseInt(ie.borderRightWidth,10),n=parseInt(ie.borderBottomWidth,10),m=0,s=0,S="offsetWidth"in A?A.offsetWidth-A.clientWidth-ee-q:0,H="offsetHeight"in A?A.offsetHeight-A.clientHeight-z-n:0;if(fe===A)m=_==="start"?P:_==="end"?P-J:_==="nearest"?U(g,g+J,J,z,n,g+P,g+P+d,d):P-J/2,s=x==="start"?L:x==="center"?L-R/2:x==="end"?L-R:U($,$+R,R,ee,q,$+L,$+L+I,I),m=Math.max(0,m+g),s=Math.max(0,s+$);else{m=_==="start"?P-oe-z:_==="end"?P-B+n+H:_==="nearest"?U(oe,B,M,z,n+H,P,P+d,d):P-(oe+M/2)+H/2,s=x==="start"?L-ne-ee:x==="center"?L-(ne+G/2)+S/2:x==="end"?L-D+q+S:U(ne,D,G,ee,q+S,L,L+I,I);var re=A.scrollLeft,Ee=A.scrollTop;P+=Ee-(m=Math.max(0,Math.min(Ee+m,A.scrollHeight-M+H))),L+=re-(s=Math.max(0,Math.min(re+s,A.scrollWidth-G+S)))}y.push({el:A,top:m,left:s})}return y};function f(X){return X===Object(X)&&Object.keys(X).length!==0}function ce(X,le){le===void 0&&(le="auto");var pe="scrollBehavior"in document.body.style;X.forEach(function(Z){var _=Z.el,x=Z.top,ue=Z.left;_.scroll&&pe?_.scroll({top:x,left:ue,behavior:le}):(_.scrollTop=x,_.scrollLeft=ue)})}function se(X){return X===!1?{block:"end",inline:"nearest"}:f(X)?X:{block:"start",inline:"nearest"}}function K(X,le){var pe=!X.ownerDocument.documentElement.contains(X);if(f(le)&&typeof le.behavior=="function")return le.behavior(pe?[]:r(X,le));if(pe)return;var Z=se(le);return ce(r(X,Z),Z.behavior)}var k=ve.a=K},Zss7:function(Xe,ve,a){var w;(function(j){var je=/^\s+/,U=/\s+$/,r=0,f=j.round,ce=j.min,se=j.max,K=j.random;function k(n,m){if(n=n||"",m=m||{},n instanceof k)return n;if(!(this instanceof k))return new k(n,m);var s=X(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=f(100*this._a)/100,this._format=m.format||s.format,this._gradientType=m.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=s.ok,this._tc_id=r++}k.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),m,s,S,H,re,Ee;return m=n.r/255,s=n.g/255,S=n.b/255,m<=.03928?H=m/12.92:H=j.pow((m+.055)/1.055,2.4),s<=.03928?re=s/12.92:re=j.pow((s+.055)/1.055,2.4),S<=.03928?Ee=S/12.92:Ee=j.pow((S+.055)/1.055,2.4),.2126*H+.7152*re+.0722*Ee},setAlpha:function(n){return this._a=y(n),this._roundA=f(100*this._a)/100,this},toHsv:function(){var n=_(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=_(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),S=f(n.v*100);return this._a==1?"hsv("+m+", "+s+"%, "+S+"%)":"hsva("+m+", "+s+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var n=pe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=pe(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),S=f(n.l*100);return this._a==1?"hsl("+m+", "+s+"%, "+S+"%)":"hsla("+m+", "+s+"%, "+S+"%, "+this._roundA+")"},toHex:function(n){return ue(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return V(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(p(this._r,255)*100)+"%",g:f(p(this._g,255)*100)+"%",b:f(p(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%)":"rgba("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[ue(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var m="#"+ae(this._r,this._g,this._b,this._a),s=m,S=this._gradientType?"GradientType = 1, ":"";if(n){var H=k(n);s="#"+ae(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+m+",endColorstr="+s+")"},toString:function(n){var m=!!n;n=n||this._format;var s=!1,S=this._a<1&&this._a>=0,H=!m&&S&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return H?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(n,m){var s=n.apply(null,[this].concat([].slice.call(m)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(J,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(fe,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(he,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(n,m){return n.apply(null,[this].concat([].slice.call(m)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(Ce,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},k.fromRatio=function(n,m){if(typeof n=="object"){var s={};for(var S in n)n.hasOwnProperty(S)&&(S==="a"?s[S]=n[S]:s[S]=D(n[S]));n=s}return k(n,m)};function X(n){var m={r:0,g:0,b:0},s=1,S=null,H=null,re=null,Ee=!1,Pe=!1;return typeof n=="string"&&(n=z(n)),typeof n=="object"&&(ee(n.r)&&ee(n.g)&&ee(n.b)?(m=le(n.r,n.g,n.b),Ee=!0,Pe=String(n.r).substr(-1)==="%"?"prgb":"rgb"):ee(n.h)&&ee(n.s)&&ee(n.v)?(S=D(n.s),H=D(n.v),m=x(n.h,S,H),Ee=!0,Pe="hsv"):ee(n.h)&&ee(n.s)&&ee(n.l)&&(S=D(n.s),re=D(n.l),m=Z(n.h,S,re),Ee=!0,Pe="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=y(s),{ok:Ee,format:n.format||Pe,r:ce(255,se(m.r,0)),g:ce(255,se(m.g,0)),b:ce(255,se(m.b,0)),a:s}}function le(n,m,s){return{r:p(n,255)*255,g:p(m,255)*255,b:p(s,255)*255}}function pe(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var S=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=(S+H)/2;if(S==H)re=Ee=0;else{var ke=S-H;Ee=Pe>.5?ke/(2-S-H):ke/(S+H);switch(S){case n:re=(m-s)/ke+(m1&&(Le-=1),Le<1/6?Ie+(Ne-Ie)*6*Le:Le<1/2?Ne:Le<2/3?Ie+(Ne-Ie)*(2/3-Le)*6:Ie}if(m===0)S=H=re=s;else{var Pe=s<.5?s*(1+m):s+m-s*m,ke=2*s-Pe;S=Ee(ke,Pe,n+1/3),H=Ee(ke,Pe,n),re=Ee(ke,Pe,n-1/3)}return{r:S*255,g:H*255,b:re*255}}function _(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var S=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=S,ke=S-H;if(Ee=S===0?0:ke/S,S==H)re=0;else{switch(S){case n:re=(m-s)/ke+(m>1)+720)%360;--m;)S.h=(S.h+H)%360,re.push(k(S));return re}function Ce(n,m){m=m||6;for(var s=k(n).toHsv(),S=s.h,H=s.s,re=s.v,Ee=[],Pe=1/m;m--;)Ee.push(k({h:S,s:H,v:re})),re=(re+Pe)%1;return Ee}k.mix=function(n,m,s){s=s===0?0:s||50;var S=k(n).toRgb(),H=k(m).toRgb(),re=s/100,Ee={r:(H.r-S.r)*re+S.r,g:(H.g-S.g)*re+S.g,b:(H.b-S.b)*re+S.b,a:(H.a-S.a)*re+S.a};return k(Ee)},k.readability=function(n,m){var s=k(n),S=k(m);return(j.max(s.getLuminance(),S.getLuminance())+.05)/(j.min(s.getLuminance(),S.getLuminance())+.05)},k.isReadable=function(n,m,s){var S=k.readability(n,m),H,re;re=!1,H=q(s);switch(H.level+H.size){case"AAsmall":case"AAAlarge":re=S>=4.5;break;case"AAlarge":re=S>=3;break;case"AAAsmall":re=S>=7;break}return re},k.mostReadable=function(n,m,s){var S=null,H=0,re,Ee,Pe,ke;s=s||{},Ee=s.includeFallbackColors,Pe=s.level,ke=s.size;for(var Ie=0;IeH&&(H=re,S=k(m[Ie]));return k.isReadable(n,S,{level:Pe,size:ke})||!Ee?S:(s.includeFallbackColors=!1,k.mostReadable(n,["#fff","#000"],s))};var te=k.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"},P=k.hexNames=L(te);function L(n){var m={};for(var s in n)n.hasOwnProperty(s)&&(m[n[s]]=s);return m}function y(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function p(n,m){M(n)&&(n="100%");var s=G(n);return n=ce(m,se(0,parseFloat(n))),s&&(n=parseInt(n*m,10)/100),j.abs(n-m)<1e-6?1:n%m/parseFloat(m)}function A(n){return ce(1,se(0,n))}function h(n){return parseInt(n,16)}function M(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function G(n){return typeof n=="string"&&n.indexOf("%")!=-1}function oe(n){return n.length==1?"0"+n:""+n}function D(n){return n<=1&&(n=n*100+"%"),n}function B(n){return j.round(parseFloat(n)*255).toString(16)}function ne(n){return h(n)/255}var ie=function(){var n="[-\\+]?\\d+%?",m="[-\\+]?\\d*\\.\\d+%?",s="(?:"+m+")|(?:"+n+")",S="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",H="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+H),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 ee(n){return!!ie.CSS_UNIT.exec(n)}function z(n){n=n.replace(je,"").replace(U,"").toLowerCase();var m=!1;if(te[n])n=te[n],m=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=ie.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=ie.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=ie.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=ie.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=ie.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=ie.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=ie.hex8.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),a:ne(s[4]),format:m?"name":"hex8"}:(s=ie.hex6.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),format:m?"name":"hex"}:(s=ie.hex4.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),a:ne(s[4]+""+s[4]),format:m?"name":"hex8"}:(s=ie.hex3.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),format:m?"name":"hex"}:!1}function q(n){var m,s;return n=n||{level:"AA",size:"small"},m=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),m!=="AA"&&m!=="AAA"&&(m="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:m,size:s}}Xe.exports?Xe.exports=k:!(w=function(){return k}.call(ve,a,ve,Xe),w!==void 0&&(Xe.exports=w))})(Math)},bT9E:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return j});var w=a("VTBJ");function j(je,U){var r=Object(w.a)({},je);return Array.isArray(U)&&U.forEach(function(f){delete r[f]}),r}},biw7:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=w.createContext(null);ve.a=je},fj85:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f}),a.d(ve,"b",function(){return k});var w=a("q1tI"),j=a.n(w),je=a("ZW5e"),U=a.n(je),r=function(le){var pe=le.title,Z=le.style,_=Z===void 0?{}:Z;return j.a.createElement("div",{className:U.a.panelTitleContainer,style:_},j.a.createElement("div",null,pe))},f=r,ce=a("PsNh"),se=a.n(ce),K=function(le){var pe=le.title,Z=le.children;return j.a.createElement("div",{className:se.a.selectWrapContainer},j.a.createElement("span",null,pe),Z)},k=K},fyJ8:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("VTBJ"),je=a("Ff2n"),U=a("U8pU"),r=a("q1tI"),f=a.n(r),ce=a("TSYQ"),se=a.n(ce),K=a("c+Xe"),k=a("sR1s");function X(x){return x&&Object(U.a)(x)==="object"&&!Array.isArray(x)&&!r.isValidElement(x)}function le(x){return typeof x=="string"?!0:Object(K.c)(x)}function pe(x,ue){var V,ae=x.prefixCls,fe=x.className,Y=x.record,he=x.index,R=x.dataIndex,J=x.render,$=x.children,g=x.component,O=g===void 0?"td":g,d=x.colSpan,I=x.rowSpan,F=x.fixLeft,Q=x.fixRight,Ce=x.firstFixLeft,te=x.lastFixLeft,P=x.firstFixRight,L=x.lastFixRight,y=x.appendNode,p=x.additionalProps,A=p===void 0?{}:p,h=x.ellipsis,M=x.align,G=x.rowType,oe=x.isSticky,D="".concat(ae,"-cell"),B,ne;if($)ne=$;else{var ie=Object(k.b)(Y,R);if(ne=ie,J){var ee=J(ie,Y,he);X(ee)?(ne=ee.children,B=ee.props):ne=ee}}Object(U.a)(ne)==="object"&&!Array.isArray(ne)&&!r.isValidElement(ne)&&(ne=null),h&&(te||P)&&(ne=r.createElement("span",{className:"".concat(D,"-content")},ne));var z=B||{},q=z.colSpan,n=z.rowSpan,m=z.style,s=z.className,S=Object(je.a)(z,["colSpan","rowSpan","style","className"]),H=q!==void 0?q:d,re=n!==void 0?n:I;if(H===0||re===0)return null;var Ee={},Pe=typeof F=="number",ke=typeof Q=="number";Pe&&(Ee.position="sticky",Ee.left=F),ke&&(Ee.position="sticky",Ee.right=Q);var Ie={};M&&(Ie.textAlign=M);var Ne,Le=h===!0?{showTitle:!0}:h;Le&&(Le.showTitle||G==="header")&&(typeof ne=="string"||typeof ne=="number"?Ne=ne.toString():r.isValidElement(ne)&&typeof ne.props.children=="string"&&(Ne=ne.props.children));var Nt=Object(j.a)(Object(j.a)(Object(j.a)({title:Ne},S),A),{},{colSpan:H&&H!==1?H:null,rowSpan:re&&re!==1?re:null,className:se()(D,fe,(V={},Object(w.a)(V,"".concat(D,"-fix-left"),Pe),Object(w.a)(V,"".concat(D,"-fix-left-first"),Ce),Object(w.a)(V,"".concat(D,"-fix-left-last"),te),Object(w.a)(V,"".concat(D,"-fix-right"),ke),Object(w.a)(V,"".concat(D,"-fix-right-first"),P),Object(w.a)(V,"".concat(D,"-fix-right-last"),L),Object(w.a)(V,"".concat(D,"-ellipsis"),h),Object(w.a)(V,"".concat(D,"-with-append"),y),Object(w.a)(V,"".concat(D,"-fix-sticky"),(Pe||ke)&&oe),V),A.className,s),style:Object(j.a)(Object(j.a)(Object(j.a)(Object(j.a)({},A.style),Ie),Ee),m),ref:le(O)?ue:null});return r.createElement(O,Object.assign({},Nt),y,ne)}var Z=r.forwardRef(pe);Z.displayName="Cell";var _=r.memo(Z,function(x,ue){return ue.shouldCellUpdate?!ue.shouldCellUpdate(ue.record,x.record):!1});ve.a=_},h78n:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return Ce});var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je),r={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},f=function(L){var y=L.map(function(){return Object(w.useRef)()}),p=Object(w.useRef)();return Object(w.useEffect)(function(){var A=Date.now(),h=!1;Object.keys(y).forEach(function(M){var G=y[M].current;if(!G)return;h=!0;var oe=G.style;oe.transitionDuration=".3s, .3s, .3s, .06s",p.current&&A-p.current<100&&(oe.transitionDuration="0s, 0s")}),h&&(p.current=Date.now())}),[y]};function ce(){return ce=Object.assign||function(P){for(var L=1;LP.length)&&(L=P.length);for(var y=0,p=new Array(L);y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,p))continue;y[p]=P[p]}}return y}function _(P,L){if(P==null)return{};var y={},p=Object.keys(P),A,h;for(h=0;h=0)continue;y[A]=P[A]}return y}var x=function(L){var y=L.className,p=L.percent,A=L.prefixCls,h=L.strokeColor,M=L.strokeLinecap,G=L.strokeWidth,oe=L.style,D=L.trailColor,B=L.trailWidth,ne=L.transition,ie=Z(L,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ie.gapPosition;var ee=Array.isArray(p)?p:[p],z=Array.isArray(h)?h:[h],q=f(ee),n=se(q,1),m=n[0],s=G/2,S=100-G/2,H="M ".concat(M==="round"?s:0,",").concat(s,` + L `).concat(M==="round"?S:100,",").concat(s),re="0 0 100 ".concat(G),Ee=0;return j.a.createElement("svg",ce({className:U()("".concat(A,"-line"),y),viewBox:re,preserveAspectRatio:"none",style:oe},ie),j.a.createElement("path",{className:"".concat(A,"-line-trail"),d:H,strokeLinecap:M,stroke:D,strokeWidth:B||G,fillOpacity:"0"}),ee.map(function(Pe,ke){var Ie={strokeDasharray:"".concat(Pe,"px, 100px"),strokeDashoffset:"-".concat(Ee,"px"),transition:ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ne=z[ke]||z[z.length-1];return Ee+=Pe,j.a.createElement("path",{key:ke,className:"".concat(A,"-line-path"),d:H,strokeLinecap:M,stroke:Ne,strokeWidth:G,fillOpacity:"0",ref:m[ke],style:Ie})}))};x.defaultProps=r;var ue=x;function V(){return V=Object.assign||function(P){for(var L=1;LP.length)&&(L=P.length);for(var y=0,p=new Array(L);y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,p))continue;y[p]=P[p]}}return y}function g(P,L){if(P==null)return{};var y={},p=Object.keys(P),A,h;for(h=0;h=0)continue;y[A]=P[A]}return y}var O=0;function d(P){return+P.replace("%","")}function I(P){return Array.isArray(P)?P:[P]}function F(P,L,y,p){var A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,h=arguments.length>5?arguments[5]:void 0,M=50-p/2,G=0,oe=-M,D=0,B=-2*M;switch(h){case"left":G=-M,oe=0,D=2*M,B=0;break;case"right":G=M,oe=0,D=-2*M,B=0;break;case"bottom":oe=M,B=2*M;break;default:}var ne="M 50,50 m ".concat(G,",").concat(oe,` a `).concat(M,",").concat(M," 0 1 1 ").concat(D,",").concat(-B,` - a `).concat(M,",").concat(M," 0 1 1 ").concat(-D,",").concat(B),ie=Math.PI*2*M,ee={stroke:y,strokeDasharray:"".concat(L/100*(ie-A),"px ").concat(ie,"px"),strokeDashoffset:"-".concat(A/2+P/100*(ie-A),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:ee}}var Q=function(L){var y=L.prefixCls,p=L.strokeWidth,A=L.trailWidth,h=L.gapDegree,M=L.gapPosition,G=L.trailColor,oe=L.strokeLinecap,D=L.style,B=L.className,ne=L.strokeColor,ie=L.percent,ee=$(L,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),z=Object(w.useMemo)(function(){return O+=1,O},[]),q=F(0,100,G,p,h,M),n=q.pathString,m=q.pathStyle,s=I(ie),T=I(ne),H=T.find(function(Ie){return Object.prototype.toString.call(Ie)==="[object Object]"}),re=f(s),Ee=ae(re,1),Pe=Ee[0],ke=function(){var Ne=0;return s.map(function(Le,Nt){var It=T[Nt]||T[T.length-1],At=Object.prototype.toString.call(It)==="[object Object]"?"url(#".concat(y,"-gradient-").concat(z,")"):"",jt=F(Ne,Le,It,p,h,M);return Ne+=Le,j.a.createElement("path",{key:Nt,className:"".concat(y,"-circle-path"),d:jt.pathString,stroke:At,strokeLinecap:oe,strokeWidth:p,opacity:Le===0?0:1,fillOpacity:"0",style:jt.pathStyle,ref:Pe[Nt]})})};return j.a.createElement("svg",V({className:U()("".concat(y,"-circle"),B),viewBox:"0 0 100 100",style:D},ee),H&&j.a.createElement("defs",null,j.a.createElement("linearGradient",{id:"".concat(y,"-gradient-").concat(z),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(H).sort(function(Ie,Ne){return d(Ie)-d(Ne)}).map(function(Ie,Ne){return j.a.createElement("stop",{key:Ne,offset:Ie,stopColor:H[Ie]})}))),j.a.createElement("path",{className:"".concat(y,"-circle-trail"),d:n,stroke:G,strokeLinecap:oe,strokeWidth:A||p,fillOpacity:"0",style:m}),ke().reverse())};Q.defaultProps=r;var Ce=Q,te={Line:ue,Circle:Ce}},hW8S:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return U}),a.d(ve,"c",function(){return r}),a.d(ve,"b",function(){return f});var w=a("VTBJ"),j=a("Ff2n"),je=a("Kwbf"),U="RC_TABLE_INTERNAL_COL_DEFINE";function r(ce){var se=ce.expandable,K=Object(j.a)(ce,["expandable"]);return"expandable"in ce?Object(w.a)(Object(w.a)({},K),se):K}function f(ce){return Object.keys(ce).reduce(function(se,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-")&&(se[K]=ce[K]),se},{})}},k3GJ:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return po});var w=a("rePB"),j=a("ODXe"),je=a("Ff2n"),U=a("VTBJ"),r=a("q1tI"),f=a("TSYQ"),ce=a.n(f),se=a("Zm9Q"),K=a("6cGi"),k=a("KQm4"),X=a("xEkU"),le=a.n(X),pe=a("t23M");function Z(i){var v=Object(r.useRef)(),E=Object(r.useRef)(!1);function u(){for(var e=arguments.length,o=new Array(e),t=0;tS&&(de=S-me),Object(r.useMemo)(function(){if(!o.length)return[0,0];for(var Oe=o.length,He=Oe,tt=0;ttb+de){He=tt-1;break}}for(var at=0,nt=Oe-1;nt>=0;nt-=1){var qe=i.get(o[nt].key)||Y;if(qe[C]1&&arguments[1]!==void 0?arguments[1]:!1,u=v&&typeof v.getBoundingClientRect=="function"&&v.getBoundingClientRect().width;if(u){if(E){var e=getComputedStyle(v),o=e.marginLeft,t=e.marginRight;u+=+o.replace("px","")+ +t.replace("px","")}u=+u.toFixed(6)}return u||0},Ne=function(v,E,u){v&&Object(P.a)(v.style)==="object"&&(v.style[E]=u)},Le=function(){return s.any},Nt=a("bdgK"),It=a("i8i4"),At=a.n(It),jt=a("wgJM"),zt=a("l4aY"),un=a("m+aA"),N=a("c+Xe"),be=a("zT1h"),ge=a("QC+M");function Me(i,v,E){return E?i[0]===v[0]:i[0]===v[0]&&i[1]===v[1]}function Ae(i,v,E){var u=i[v]||{};return Object(U.a)(Object(U.a)({},u),E)}function Re(i,v,E,u){for(var e=E.points,o=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;v();var o=Object(jt.a)(function(){e<=1?u({isCanceled:function(){return o!==i.current}}):E(u,e-1)});i.current=o}return r.useEffect(function(){return function(){v()}},[]),[E,v]},Sn=[Rt,Ct,ht,Ze],nn=!1,Fe=!0;function Se(i){return i===ht||i===Ze}var Be=function(i,v){var E=r.useState(Gt),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Dt(),l=Object(j.a)(t,2),c=l[0],C=l[1];function b(){o(Rt)}return qt(function(){if(e!==Gt&&e!==Ze){var S=Sn.indexOf(e),W=Sn[S+1],me=v(e);me===nn?o(W):c(function(de){function Oe(){if(de.isCanceled())return;o(W)}me===!0?Oe():Promise.resolve(me).then(Oe)})}},[i,e]),r.useEffect(function(){return function(){C()}},[]),[b,e]},Ve=function(i){var v=Object(r.useRef)(),E=Object(r.useRef)(i);E.current=i;var u=r.useCallback(function(t){E.current(t)},[]);function e(t){t&&(t.removeEventListener(wt,u),t.removeEventListener(Ye,u))}function o(t){v.current&&v.current!==t&&e(v.current),t&&t!==v.current&&(t.addEventListener(wt,u),t.addEventListener(Ye,u),v.current=t)}return r.useEffect(function(){return function(){e(v.current)}},[]),[o,e]};function it(i,v,E,u){var e=u.motionEnter,o=e===void 0?!0:e,t=u.motionAppear,l=t===void 0?!0:t,c=u.motionLeave,C=c===void 0?!0:c,b=u.motionDeadline,S=u.motionLeaveImmediately,W=u.onAppearPrepare,me=u.onEnterPrepare,de=u.onLeavePrepare,Oe=u.onAppearStart,He=u.onEnterStart,tt=u.onLeaveStart,Je=u.onAppearActive,at=u.onEnterActive,nt=u.onLeaveActive,qe=u.onAppearEnd,et=u.onEnterEnd,vt=u.onLeaveEnd,rt=u.onVisibleChanged,Xt=Lt(),_t=Object(j.a)(Xt,2),ze=_t[0],We=_t[1],ut=Lt(lt),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=Lt(null),gt=Object(j.a)(Kt,2),St=gt[0],Bt=gt[1],an=Object(r.useRef)(!1),vn=Object(r.useRef)(null),$t=Object(r.useRef)(!1),bn=Object(r.useRef)(null);function Pn(){var Wt=E();return Wt||bn.current}var yn=Object(r.useRef)(!1);function Cn(Wt){var Ot=Pn();if(Wt&&!Wt.deadline&&Wt.target!==Ot)return;var rn;De===Ft&&yn.current?rn=qe==null?void 0:qe(Ot,Wt):De===Jt&&yn.current?rn=et==null?void 0:et(Ot,Wt):De===ft&&yn.current&&(rn=vt==null?void 0:vt(Ot,Wt)),rn!==!1&&!$t.current&&(bt(lt),Bt(null))}var Yt=Ve(Cn),mn=Object(j.a)(Yt,1),on=mn[0],en=r.useMemo(function(){var Wt,Ot,rn;switch(De){case"appear":return Wt={},Object(w.a)(Wt,Rt,W),Object(w.a)(Wt,Ct,Oe),Object(w.a)(Wt,ht,Je),Wt;case"enter":return Ot={},Object(w.a)(Ot,Rt,me),Object(w.a)(Ot,Ct,He),Object(w.a)(Ot,ht,at),Ot;case"leave":return rn={},Object(w.a)(rn,Rt,de),Object(w.a)(rn,Ct,tt),Object(w.a)(rn,ht,nt),rn;default:return{}}},[De]),kn=Be(De,function(Wt){if(Wt===Rt){var Ot=en[Rt];return Ot?Ot(Pn()):nn}if(kt in en){var rn;Bt(((rn=en[kt])===null||rn===void 0?void 0:rn.call(en,Pn(),null))||null)}return kt===ht&&(on(Pn()),b>0&&(clearTimeout(vn.current),vn.current=setTimeout(function(){Cn({deadline:!0})},b))),Fe}),In=Object(j.a)(kn,2),Hn=In[0],kt=In[1],Nn=Se(kt);yn.current=Nn,qt(function(){We(v);var Wt=an.current;if(an.current=!0,!i)return;var Ot;!Wt&&v&&l&&(Ot=Ft),Wt&&v&&o&&(Ot=Jt),(Wt&&!v&&C||!Wt&&S&&!v&&C)&&(Ot=ft),Ot&&(bt(Ot),Hn())},[v]),Object(r.useEffect)(function(){(De===Ft&&!l||De===Jt&&!o||De===ft&&!C)&&bt(lt)},[l,o,C]),Object(r.useEffect)(function(){return function(){clearTimeout(vn.current),$t.current=!0}},[]),Object(r.useEffect)(function(){ze!==void 0&&De===lt&&(rt==null||rt(ze))},[ze,De]);var Vn=St;return en[Rt]&&kt===Ct&&(Vn=Object(U.a)({transition:"none"},Vn)),[De,kt,Vn,ze!=null?ze:v]}var Ge=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){return Object(J.a)(this,E),v.apply(this,arguments)}return Object($.a)(E,[{key:"render",value:function(){return this.props.children}}]),E}(r.Component),st=Ge;function Ut(i){var v=i;Object(P.a)(i)==="object"&&(v=i.transitionSupport);function E(e){return!!(e.motionName&&v)}var u=r.forwardRef(function(e,o){var t=e.visible,l=t===void 0?!0:t,c=e.removeOnLeave,C=c===void 0?!0:c,b=e.forceRender,S=e.children,W=e.motionName,me=e.leavedClassName,de=e.eventProps,Oe=E(e),He=Object(r.useRef)(),tt=Object(r.useRef)();function Je(){try{return Object(un.a)(He.current||tt.current)}catch(bt){return null}}var at=it(Oe,l,Je,e),nt=Object(j.a)(at,4),qe=nt[0],et=nt[1],vt=nt[2],rt=nt[3],Xt=r.useRef(rt);rt&&(Xt.current=!0);var _t=Object(r.useRef)(o);_t.current=o;var ze=r.useCallback(function(bt){He.current=bt,Object(N.b)(_t.current,bt)},[]),We,ut=Object(U.a)(Object(U.a)({},de),{},{visible:l});if(!S)We=null;else if(qe===lt||!E(e))rt?We=S(Object(U.a)({},ut),ze):!C&&Xt.current?We=S(Object(U.a)(Object(U.a)({},ut),{},{className:me}),ze):b?We=S(Object(U.a)(Object(U.a)({},ut),{},{style:{display:"none"}}),ze):We=null;else{var dt,De;et===Rt?De="prepare":Se(et)?De="active":et===Ct&&(De="start"),We=S(Object(U.a)(Object(U.a)({},ut),{},{className:ce()(Mt(W,qe),(dt={},Object(w.a)(dt,Mt(W,"".concat(qe,"-").concat(De)),De),Object(w.a)(dt,W,typeof W=="string"),dt)),style:vt}),ze)}return r.createElement(st,{ref:tt},We)});return u.displayName="CSSMotion",u}var Tt=Ut(yt),_n="add",Qt="keep",cn="remove",gn="removed";function dn(i){var v;return i&&Object(P.a)(i)==="object"&&"key"in i?v=i:v={key:i},Object(U.a)(Object(U.a)({},v),{},{key:String(v.key)})}function An(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(dn)}function Pt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],E=[],u=0,e=v.length,o=An(i),t=An(v);o.forEach(function(C){for(var b=!1,S=u;S1});return c.forEach(function(C){E=E.filter(function(b){var S=b.key,W=b.status;return S!==C||W!==cn}),E.forEach(function(b){b.key===C&&(b.status=Qt)})}),E}var fn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function En(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tt,E=function(u){Object(O.a)(o,u);var e=Object(d.a)(o);function o(){var t;return Object(J.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(l){t.setState(function(c){var C=c.keyEntities;return{keyEntities:C.map(function(b){return b.key!==l?b:Object(U.a)(Object(U.a)({},b),{},{status:gn})})}})},t}return Object($.a)(o,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,C=this.props,b=C.component,S=C.children,W=C.onVisibleChanged,me=Object(je.a)(C,["component","children","onVisibleChanged"]),de=b||r.Fragment,Oe={};return fn.forEach(function(He){Oe[He]=me[He],delete me[He]}),delete me.keys,r.createElement(de,me,c.map(function(He){var tt=He.status,Je=Object(je.a)(He,["status"]),at=tt===_n||tt===Qt;return r.createElement(v,Object(R.a)({},Oe,{key:Je.key,visible:at,eventProps:Je,onVisibleChanged:function(qe){W==null||W(qe,{key:Je.key}),qe||l.removeKey(Je.key)}}),S)}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var C=l.keys,b=c.keyEntities,S=An(C),W=Pt(b,S);return{keyEntities:W.filter(function(me){var de=b.find(function(Oe){var He=Oe.key;return me.key===He});return!(de&&de.status===gn&&me.status===cn)})}}}]),o}(r.Component);return E.defaultProps={component:"div"},E}var sn=En(yt),pn=Tt;function xn(i){var v=i.prefixCls,E=i.motion,u=i.animation,e=i.transitionName;return E||(u?{motionName:"".concat(v,"-").concat(u)}:e?{motionName:e}:null)}function Xn(i){var v=i.prefixCls,E=i.visible,u=i.zIndex,e=i.mask,o=i.maskMotion,t=i.maskAnimation,l=i.maskTransitionName;if(!e)return null;var c={};return(o||l||t)&&(c=Object(U.a)({motionAppear:!0},xn({motion:o,prefixCls:v,transitionName:l,animation:t}))),r.createElement(pn,Object(R.a)({},c,{visible:E,removeOnLeave:!0}),function(C){var b=C.className;return r.createElement("div",{style:{zIndex:u},className:ce()("".concat(v,"-mask"),b)})})}var Wn=a("9mu1"),$n=a("o0o1"),Ma=a.n($n),Ra=a("HaE+"),Gn=["measure","align",null,"motion"],Ht=function(i,v){var E=Object(r.useState)(null),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Object(r.useRef)(),l=Object(r.useRef)(!1);function c(S){l.current||o(S)}function C(){jt.a.cancel(t.current)}function b(S){C(),t.current=Object(jt.a)(function(){c(function(W){switch(e){case"align":return"motion";case"motion":return"stable";default:}return W}),S==null||S()})}return Object(r.useEffect)(function(){c("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":v();break;default:}e&&(t.current=Object(jt.a)(Object(Ra.a)(Ma.a.mark(function S(){var W,me;return Ma.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:W=Gn.indexOf(e),me=Gn[W+1],me&&W!==-1&&c(me);case 3:case"end":return Oe.stop()}},S)}))))},[e]),Object(r.useEffect)(function(){return function(){l.current=!0,C()}},[]),[e,b]},Yn=function(i){var v=r.useState({width:0,height:0}),E=Object(j.a)(v,2),u=E[0],e=E[1];function o(l){e({width:l.offsetWidth,height:l.offsetHeight})}var t=r.useMemo(function(){var l={};if(i){var c=u.width,C=u.height;i.indexOf("height")!==-1&&C?l.height=C:i.indexOf("minHeight")!==-1&&C&&(l.minHeight=C),i.indexOf("width")!==-1&&c?l.width=c:i.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[i,u]);return[t,o]},Jn=r.forwardRef(function(i,v){var E=i.visible,u=i.prefixCls,e=i.className,o=i.style,t=i.children,l=i.zIndex,c=i.stretch,C=i.destroyPopupOnHide,b=i.forceRender,S=i.align,W=i.point,me=i.getRootDomNode,de=i.getClassNameFromAlign,Oe=i.onAlign,He=i.onMouseEnter,tt=i.onMouseLeave,Je=i.onMouseDown,at=i.onTouchStart,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useState)(),vt=Object(j.a)(et,2),rt=vt[0],Xt=vt[1],_t=Yn(c),ze=Object(j.a)(_t,2),We=ze[0],ut=ze[1];function dt(){c&&ut(me())}var De=Ht(E,dt),bt=Object(j.a)(De,2),Kt=bt[0],gt=bt[1],St=Object(r.useRef)();function Bt(){return W||me}function an(){var Yt;(Yt=nt.current)===null||Yt===void 0||Yt.forceAlign()}function vn(Yt,mn){var on=de(mn);rt!==on&&Xt(on),Kt==="align"&&(rt!==on?Promise.resolve().then(function(){an()}):gt(function(){var en;(en=St.current)===null||en===void 0||en.call(St)}),Oe==null||Oe(Yt,mn))}var $t=Object(U.a)({},xn(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Yt){var mn=$t[Yt];$t[Yt]=function(on,en){return gt(),mn==null?void 0:mn(on,en)}});function bn(){return new Promise(function(Yt){St.current=Yt})}r.useEffect(function(){!$t.motionName&&Kt==="motion"&>()},[$t.motionName,Kt]),r.useImperativeHandle(v,function(){return{forceAlign:an,getElement:function(){return qe.current}}});var Pn=Object(U.a)(Object(U.a)({},We),{},{zIndex:l,opacity:Kt==="motion"||Kt==="stable"||!E?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},o),yn=!0;(S==null?void 0:S.points)&&(Kt==="align"||Kt==="stable")&&(yn=!1);var Cn=t;return r.Children.count(t)>1&&(Cn=r.createElement("div",{className:"".concat(u,"-content")},t)),r.createElement(pn,Object(R.a)({visible:E,ref:qe,leavedClassName:"".concat(u,"-hidden")},$t,{onAppearPrepare:bn,onEnterPrepare:bn,removeOnLeave:C,forceRender:b}),function(Yt,mn){var on=Yt.className,en=Yt.style,kn=ce()(u,e,rt,on);return r.createElement(Wn.a,{target:Bt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:yn,align:S,onAlign:vn},r.createElement("div",{ref:mn,className:kn,onMouseEnter:He,onMouseLeave:tt,onMouseDownCapture:Je,onTouchStartCapture:at,style:Object(U.a)(Object(U.a)({},en),Pn)},Cn))})});Jn.displayName="PopupInner";var Sa=Jn,jn=r.forwardRef(function(i,v){var E=i.prefixCls,u=i.visible,e=i.zIndex,o=i.children,t=i.mobile;t=t===void 0?{}:t;var l=t.popupClassName,c=t.popupStyle,C=t.popupMotion,b=C===void 0?{}:C,S=t.popupRender,W=r.useRef();r.useImperativeHandle(v,function(){return{forceAlign:function(){},getElement:function(){return W.current}}});var me=Object(U.a)({zIndex:e},c),de=o;return r.Children.count(o)>1&&(de=r.createElement("div",{className:"".concat(E,"-content")},o)),S&&(de=S(de)),r.createElement(pn,Object(R.a)({visible:u,ref:W,removeOnLeave:!0},b),function(Oe,He){var tt=Oe.className,Je=Oe.style,at=ce()(E,l,tt);return r.createElement("div",{ref:He,className:at,style:Object(U.a)(Object(U.a)({},Je),me)},de)})});jn.displayName="MobilePopupInner";var Ha=jn,Ta=["visible","mobile"],oa=r.forwardRef(function(i,v){var E=i.visible,u=i.mobile,e=Object(je.a)(i,Ta),o=Object(r.useState)(E),t=Object(j.a)(o,2),l=t[0],c=t[1],C=Object(r.useState)(!1),b=Object(j.a)(C,2),S=b[0],W=b[1],me=Object(U.a)(Object(U.a)({},e),{},{visible:l});Object(r.useEffect)(function(){c(E),E&&u&&W(xe())},[E,u]);var de=S?r.createElement(Ha,Object(R.a)({},me,{mobile:u,ref:v})):r.createElement(Sa,Object(R.a)({},me,{ref:v}));return r.createElement("div",null,r.createElement(Xn,me),de)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(i){return i?i.ownerDocument:window.document}var Pa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(i){var v=function(E){Object(O.a)(e,E);var u=Object(d.a)(e);function e(o){var t;Object(J.a)(this,e),t=u.call(this,o),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var C=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,C,C?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var C;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(zt.a)((C=t.popupRef.current)===null||C===void 0?void 0:C.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var C;if(t.preClickTime&&t.preTouchTime?C=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?C=t.preClickTime:t.preTouchTime&&(C=t.preTouchTime),Math.abs(C-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var b=!t.state.popupVisible;(t.isClickToHide()&&!b||b&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var C=c.target,b=t.getRootDomNode(),S=t.getPopupDomNode();(!Object(zt.a)(b,C)||t.isContextMenuOnly())&&!Object(zt.a)(S,C)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var C=Object(un.a)(t.triggerRef.current);if(C)return C}catch(b){}return At.a.findDOMNode(Object(g.a)(t))},t.getPopupClassNameFromAlign=function(c){var C=[],b=t.props,S=b.popupPlacement,W=b.builtinPlacements,me=b.prefixCls,de=b.alignPoint,Oe=b.getPopupClassNameFromAlign;return S&&W&&C.push(Re(W,me,c,de)),Oe&&C.push(Oe(c)),C.join(" ")},t.getComponent=function(){var c=t.props,C=c.prefixCls,b=c.destroyPopupOnHide,S=c.popupClassName,W=c.onPopupAlign,me=c.popupMotion,de=c.popupAnimation,Oe=c.popupTransitionName,He=c.popupStyle,tt=c.mask,Je=c.maskAnimation,at=c.maskTransitionName,nt=c.maskMotion,qe=c.zIndex,et=c.popup,vt=c.stretch,rt=c.alignPoint,Xt=c.mobile,_t=c.forceRender,ze=t.state,We=ze.popupVisible,ut=ze.point,dt=t.getPopupAlign(),De={};return t.isMouseEnterToShow()&&(De.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(De.onMouseLeave=t.onPopupMouseLeave),De.onMouseDown=t.onPopupMouseDown,De.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(R.a)({prefixCls:C,destroyPopupOnHide:b,visible:We,point:rt&&ut,className:S,align:dt,onAlign:W,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},De,{stretch:vt,getRootDomNode:t.getRootDomNode,style:He,mask:tt,zIndex:qe,transitionName:Oe,maskAnimation:Je,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:me,mobile:Xt,forceRender:_t}),typeof et=="function"?et():et)},t.attachParent=function(c){jt.a.cancel(t.attachId);var C=t.props,b=C.getPopupContainer,S=C.getDocument,W=t.getRootDomNode(),me;b?(W||b.length===0)&&(me=b(W)):me=S(t.getRootDomNode()).body,me?me.appendChild(c):t.attachId=Object(jt.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,C=c(t.getRootDomNode()).createElement("div");return C.style.position="absolute",C.style.top="0",C.style.left="0",C.style.width="100%",t.attachParent(C),C},t.setPoint=function(c){var C=t.props.alignPoint;if(!C||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var l;return"popupVisible"in o?l=!!o.popupVisible:l=!!o.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},Pa.forEach(function(c){t["fire".concat(c)]=function(C){t.fireEvents(c,C)}}),t}return Object($.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(be.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(be.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(be.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(be.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,l=t.popupPlacement,c=t.popupAlign,C=t.builtinPlacements;return l&&C?Ae(C,l,c):c}},{key:"setPopupVisible",value:function(t,l){var c=this.props.alignPoint,C=this.state.popupVisible;this.clearDelayTimer(),C!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:C}),this.props.onPopupVisibleChange(t)),c&&l&&t&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(t,l,c){var C=this,b=l*1e3;if(this.clearDelayTimer(),b){var S=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){C.setPopupVisible(t,S),C.clearDelayTimer()},b)}else this.setPopupVisible(t,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var l=this.props.children.props,c=this.props;return l[t]&&c[t]?this["fire".concat(t)]:l[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,l){var c=this.props.children.props[t];c&&c(l);var C=this.props[t];C&&C(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,l=this.props,c=l.children,C=l.forceRender,b=l.alignPoint,S=l.className,W=l.autoDestroy,me=r.Children.only(c),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,b&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Oe=ce()(me&&me.props&&me.props.className,S);Oe&&(de.className=Oe);var He=Object(U.a)({},de);Object(N.c)(me)&&(He.ref=Object(N.a)(this.triggerRef,me.ref));var tt=r.cloneElement(me,He),Je;return(t||this.popupRef.current||C)&&(Je=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&W&&(Je=null),r.createElement(ra.Provider,{value:this.triggerContextValue},tt,Je)}}],[{key:"getDerivedStateFromProps",value:function(t,l){var c=t.popupVisible,C={};return c!==void 0&&l.popupVisible!==c&&(C.popupVisible=c,C.prevPopupVisible=l.popupVisible),C}}]),e}(r.Component);return v.contextType=ra,v.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},v}var Ja=Ya(ge.a),Tn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:Tn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Tn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Tn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Tn,offset:[4,0]}},Aa={topLeft:{points:["bl","tl"],overflow:Tn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Tn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Tn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Tn,offset:[4,0]}},sa=ia,hn=0,Mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rn=function(v,E,u){var e=re(E),o=v.getState();v.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},o.defaultActiveFirst),{},Object(w.a)({},e,u))})},la=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onDestroy=function(b){e.props.onDestroy(b)},e.onKeyDown=function(b){var S=b.keyCode,W=e.menuInstance,me=e.props.store,de=e.getVisible();if(S===x.a.ENTER)return e.onTitleClick(b),Rn(me,e.props.eventKey,!0),!0;if(S===x.a.RIGHT)return de?W.onKeyDown(b):(e.triggerOpenChange(!0),Rn(me,e.props.eventKey,!0)),!0;if(S===x.a.LEFT){var Oe;if(de)Oe=W.onKeyDown(b);else return;return Oe||(e.triggerOpenChange(!1),Oe=!0),Oe}return de&&(S===x.a.UP||S===x.a.DOWN)?W.onKeyDown(b):void 0},e.onOpenChange=function(b){e.props.onOpenChange(b)},e.onPopupVisibleChange=function(b){e.triggerOpenChange(b,b?"mouseenter":"mouseleave")},e.onMouseEnter=function(b){var S=e.props,W=S.eventKey,me=S.onMouseEnter,de=S.store;Rn(de,e.props.eventKey,!1),me({key:W,domEvent:b})},e.onMouseLeave=function(b){var S=e.props,W=S.parentMenu,me=S.eventKey,de=S.onMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,domEvent:b})},e.onTitleMouseEnter=function(b){var S=e.props,W=S.eventKey,me=S.onItemHover,de=S.onTitleMouseEnter;me({key:W,hover:!0}),de({key:W,domEvent:b})},e.onTitleMouseLeave=function(b){var S=e.props,W=S.parentMenu,me=S.eventKey,de=S.onItemHover,Oe=S.onTitleMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,hover:!1}),Oe({key:me,domEvent:b})},e.onTitleClick=function(b){var S=Object(g.a)(e),W=S.props;if(W.onTitleClick({key:W.eventKey,domEvent:b}),W.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Rn(W.store,e.props.eventKey,!1)},e.onSubMenuClick=function(b){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(b))},e.onSelect=function(b){e.props.onSelect(b)},e.onDeselect=function(b){e.props.onDeselect(b)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(b){e.menuInstance=b},e.addKeyPath=function(b){return Object(U.a)(Object(U.a)({},b),{},{keyPath:(b.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(b,S){var W=e.props.eventKey,me=function(){e.onOpenChange({key:W,item:Object(g.a)(e),trigger:S,open:b})};S==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){me()},0):me()},e.isChildrenSelected=function(){var b={find:!1};return Pe(e.props.children,e.props.selectedKeys,b),b.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var b=It.findDOMNode(e.menuInstance);if(b.offsetWidth>=e.subMenuTitle.offsetWidth)return;b.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(b){e.subMenuTitle=b},e.getBaseProps=function(){var b=Object(g.a)(e),S=b.props,W=e.getMode();return{mode:W==="horizontal"?"vertical":W,visible:e.getVisible(),level:S.level+1,inlineIndent:S.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:S.selectedKeys,eventKey:"".concat(S.eventKey,"-menu-"),openKeys:S.openKeys,motion:S.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:S.subMenuOpenDelay,parentMenu:Object(g.a)(e),subMenuCloseDelay:S.subMenuCloseDelay,forceSubMenuRender:S.forceSubMenuRender,triggerSubMenuAction:S.triggerSubMenuAction,builtinPlacements:S.builtinPlacements,defaultActiveFirst:S.store.getState().defaultActiveFirst[re(S.eventKey)],multiple:S.multiple,prefixCls:S.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:S.itemIcon,expandIcon:S.expandIcon,direction:S.direction}},e.getMotion=function(b,S){var W=Object(g.a)(e),me=W.haveRendered,de=e.props,Oe=de.motion,He=de.rootPrefixCls,tt=Object(U.a)(Object(U.a)({},Oe),{},{leavedClassName:"".concat(He,"-hidden"),removeOnLeave:!1,motionAppear:me||!S||b!=="inline"});return tt};var o=u.store,t=u.eventKey,l=o.getState(),c=l.defaultActiveFirst;e.isRootMenu=!1;var C=!1;return c&&(C=c[t]),Rn(o,t,C),e.state={mode:u.mode,isOpen:u.isOpen},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,l=o.parentMenu,c=o.manualRef,C=o.isOpen,b=function(){e.setState({mode:t,isOpen:C})},S=C!==this.state.isOpen,W=t!==this.state.mode;if((W||S)&&(jt.a.cancel(this.updateStateRaf),W?this.updateStateRaf=Object(jt.a)(b):b()),c&&c(this),t!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!C)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return r.createElement(ea,Object(R.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,l=o.visible,c=o.forceSubMenuRender,C=o.direction,b=this.getMotion(t,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||c,!this.haveOpened)return r.createElement("div",null);var S=ce()("".concat(o.prefixCls,"-sub"),Object(w.a)({},"".concat(o.prefixCls,"-rtl"),C==="rtl"));return this.isInlineMode()?r.createElement(pn,Object(R.a)({visible:o.visible,forceRender:c},b),function(W){var me=W.className,de=W.style,Oe=ce()(S,me);return e.renderPopupMenu(Oe,de)}):this.renderPopupMenu(S)}},{key:"render",value:function(){var e,o,t,l=Object(U.a)({},this.props),c=this.getVisible(),C=this.getPrefixCls(),b=this.isInlineMode(),S=this.getMode(),W=ce()(C,"".concat(C,"-").concat(S),(e={},Object(w.a)(e,l.className,!!l.className),Object(w.a)(e,this.getOpenClassName(),c),Object(w.a)(e,this.getActiveClassName(),l.active||c&&!b),Object(w.a)(e,this.getDisabledClassName(),l.disabled),Object(w.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(hn+=1,this.internalMenuId="$__$".concat(hn,"$Menu")));var me={},de={},Oe={};l.disabled||(me={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Oe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var He={},tt=l.direction,Je=tt==="rtl";b&&(Je?He.paddingRight=l.inlineIndent*l.level:He.paddingLeft=l.inlineIndent*l.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;S!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=r.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var qe=r.createElement("div",Object(R.a)({ref:this.saveSubMenuTitle,style:He,className:"".concat(C,"-title"),role:"button"},Oe,de,{"aria-expanded":c},at,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,nt||r.createElement("i",{className:"".concat(C,"-arrow")})),et=this.renderChildren(),vt=((o=l.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Bt){return Bt.parentNode},rt=Mn[S],Xt=l.popupOffset?{offset:l.popupOffset}:{},_t=ce()((t={},Object(w.a)(t,l.popupClassName,l.popupClassName&&!b),Object(w.a)(t,"".concat(C,"-rtl"),Je),t)),ze=l.disabled,We=l.triggerSubMenuAction,ut=l.subMenuOpenDelay,dt=l.forceSubMenuRender,De=l.subMenuCloseDelay,bt=l.builtinPlacements;ke.forEach(function(Bt){return delete l[Bt]}),delete l.onClick;var Kt=Je?Object(U.a)(Object(U.a)({},Aa),bt):Object(U.a)(Object(U.a)({},ia),bt);delete l.direction;var gt=this.getBaseProps(),St=b?null:this.getMotion(gt.mode,gt.visible);return r.createElement("li",Object(R.a)({},l,me,{className:W,role:"menuitem"}),r.createElement(Ja,{prefixCls:C,popupClassName:ce()("".concat(C,"-popup"),_t),getPopupContainer:vt,builtinPlacements:Kt,popupPlacement:rt,popupVisible:b?!1:c,popupAlign:Xt,popup:b?null:et,action:ze||b?[]:[We],mouseEnterDelay:ut,mouseLeaveDelay:De,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:dt,popupMotion:St},qe),b?et:null)}}]),E}(r.Component);la.defaultProps={onMouseEnter:T,onMouseLeave:T,onTitleMouseEnter:T,onTitleMouseLeave:T,onTitleClick:T,manualRef:T,mode:"vertical",title:""};var zn=Object(I.b)(function(i,v){var E=i.openKeys,u=i.activeKey,e=i.selectedKeys,o=v.eventKey,t=v.subMenuKey;return{isOpen:E.indexOf(o)>-1,active:u[t]===o,selectedKeys:e}})(la);zn.isSubMenu=!0;var Fn=zn,Da="menuitem-overflowed",Qa=.5,Na=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.resizeObserver=null,u.mutationObserver=null,u.originalTotalWidth=0,u.overflowedItems=[],u.menuItemSizes=[],u.cancelFrameId=null,u.state={lastVisibleIndex:void 0},u.childRef=r.createRef(),u.getMenuItemNodes=function(){var e=u.props.prefixCls,o=u.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},u.getOverflowedSubMenuItem=function(e,o,t){var l=u.props,c=l.overflowedIndicator,C=l.level,b=l.mode,S=l.prefixCls,W=l.theme;if(C!==1||b!=="horizontal")return null;var me=u.props.children[0],de=me.props,Oe=de.children,He=de.title,tt=de.style,Je=Object(je.a)(de,["children","title","style"]),at=Object(U.a)({},tt),nt="".concat(e,"-overflowed-indicator"),qe="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?at=Object(U.a)(Object(U.a)({},at),{},{display:"none"}):t&&(at=Object(U.a)(Object(U.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),qe="".concat(qe,"-placeholder"));var et=W?"".concat(S,"-").concat(W):"",vt={};return ke.forEach(function(rt){Je[rt]!==void 0&&(vt[rt]=Je[rt])}),r.createElement(Fn,Object(R.a)({title:c,className:"".concat(S,"-overflowed-submenu"),popupClassName:et},vt,{key:nt,eventKey:qe,disabled:!1,style:at}),o)},u.setChildrenWidthAndResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Ne(t,"display","inline-block");var l=u.getMenuItemNodes(),c=l.filter(function(C){return C.className.split(" ").indexOf(Da)>=0});c.forEach(function(C){Ne(C,"display","inline-block")}),u.menuItemSizes=l.map(function(C){return Ie(C,!0)}),c.forEach(function(C){Ne(C,"display","none")}),u.overflowedIndicatorWidth=Ie(e.children[e.children.length-1],!0),u.originalTotalWidth=u.menuItemSizes.reduce(function(C,b){return C+b},0),u.handleResize(),Ne(t,"display","none")},u.handleResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=Ie(e);u.overflowedItems=[];var t=0,l;u.originalTotalWidth>o+Qa&&(l=-1,u.menuItemSizes.forEach(function(c){t+=c,t+u.overflowedIndicatorWidth<=o&&(l+=1)})),u.setState({lastVisibleIndex:l})},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Nt.default(function(t){t.forEach(function(){var l=e.cancelFrameId;cancelAnimationFrame(l),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(l,c,C){var b=c;if(o.props.mode==="horizontal"){var S=o.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(C>t&&(b=r.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),C===t+1&&(o.overflowedItems=e.slice(t+1).map(function(me){return r.cloneElement(me,{key:me.props.eventKey,mode:"vertical-left"})}),S=o.getOverflowedSubMenuItem(c.props.eventKey,o.overflowedItems)));var W=[].concat(Object(k.a)(l),[S,b]);return C===e.length-1&&W.push(o.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),W}return[].concat(Object(k.a)(l),[b])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,l=e.overflowedIndicator,c=e.mode,C=e.level,b=e.tag,S=e.children,W=e.theme,me=Object(je.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=b;return r.createElement(de,Object(R.a)({ref:this.childRef},me),this.renderChildren(S))}}]),E}(r.Component);Na.defaultProps={tag:"div",className:""};var ua=Na;function Zn(i){return i.length?i.every(function(v){return!!v.props.disabled}):!0}function wn(i,v,E){var u=i.getState();i.setState({activeKey:Object(U.a)(Object(U.a)({},u.activeKey),{},Object(w.a)({},v,E))})}function Dn(i){return i.eventKey||"0-menu-"}function qn(i,v){var E=v,u=i.children,e=i.eventKey;if(E){var o;if(Ee(u,function(t,l){t&&t.props&&!t.props.disabled&&E===H(t,e,l)&&(o=!0)}),o)return E}return E=null,i.defaultActiveFirst&&Ee(u,function(t,l){!E&&t&&!t.props.disabled&&(E=H(t,e,l))}),E}function wa(i){if(!i)return;var v=this.instanceArray.indexOf(i);v!==-1?this.instanceArray[v]=i:this.instanceArray.push(i)}var La=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;return Object(J.a)(this,E),e=v.call(this,u),e.onKeyDown=function(o,t){var l=o.keyCode,c;if(e.getFlatInstanceArray().forEach(function(b){b&&b.props.active&&b.onKeyDown&&(c=b.onKeyDown(o))}),c)return 1;var C=null;return(l===x.a.UP||l===x.a.DOWN)&&(C=e.step(l===x.a.UP?-1:1)),C?(o.preventDefault(),wn(e.props.store,Dn(e.props),C.props.eventKey),typeof t=="function"&&t(C),1):void 0},e.onItemHover=function(o){var t=o.key,l=o.hover;wn(e.props.store,Dn(e.props),l?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),l=e.props.store.getState().activeKey[Dn(e.props)],c=t.length;if(!c)return null;o<0&&(t=t.concat().reverse());var C=-1;if(t.every(function(me,de){return me&&me.props.eventKey===l?(C=de,!1):!0}),!e.props.defaultActiveFirst&&C!==-1&&Zn(t.slice(C,c-1)))return;var b=(C+1)%c,S=b;do{var W=t[S];if(!W||W.props.disabled)S=(S+1)%c;else return W}while(S!==b);return null},e.renderCommonMenuItem=function(o,t,l){var c=e.props.store.getState(),C=Object(g.a)(e),b=C.props,S=H(o,b.eventKey,t),W=o.props;if(!W||typeof o.type=="string")return o;var me=S===c.activeKey,de=Object(U.a)(Object(U.a)({mode:W.mode||b.mode,level:b.level,inlineIndent:b.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:b.prefixCls,index:t,parentMenu:b.parentMenu,manualRef:W.disabled?void 0:Object(Q.a)(o.ref,wa.bind(Object(g.a)(e))),eventKey:S,active:!W.disabled&&me,multiple:b.multiple,onClick:function(He){(W.onClick||T)(He),e.onClick(He)},onItemHover:e.onItemHover,motion:b.motion,subMenuOpenDelay:b.subMenuOpenDelay,subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:b.builtinPlacements,itemIcon:W.itemIcon||e.props.itemIcon,expandIcon:W.expandIcon||e.props.expandIcon},l),{},{direction:b.direction});return(b.mode==="inline"||Le())&&(de.triggerSubMenuAction="click"),r.cloneElement(o,Object(U.a)(Object(U.a)({},de),{},{key:S||t}))},e.renderMenuItem=function(o,t,l){if(!o)return null;var c=e.props.store.getState(),C={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:l};return e.renderCommonMenuItem(o,t,C)},u.store.setState({activeKey:Object(U.a)(Object(U.a)({},u.store.getState().activeKey),{},Object(w.a)({},u.eventKey,qn(u,u.activeKey)))}),e.instanceArray=[],e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!te()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[Dn(o)],l=qn(o,t);if(l!==t)wn(o.store,Dn(o),l);else if("activeKey"in e){var c=qn(e,e.activeKey);l!==c&&wn(o.store,Dn(o),l)}}},{key:"render",value:function(){var e=this,o=Object(R.a)({},this.props);this.instanceArray=[];var t=ce()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),l={className:t,role:o.role||"menu"};o.id&&(l.id=o.id),o.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var c=o.prefixCls,C=o.eventKey,b=o.visible,S=o.level,W=o.mode,me=o.overflowedIndicator,de=o.theme;return ke.forEach(function(Oe){return delete o[Oe]}),delete o.onClick,r.createElement(ua,Object(R.a)({},o,{prefixCls:c,mode:W,tag:"ul",level:S,theme:de,visible:b,overflowedIndicator:me},l),Object(se.a)(o.children).map(function(Oe,He){return e.renderMenuItem(Oe,He,C||"0-menu-")}))}}]),E}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:T};var Ua=Object(I.b)()(La),ea=Ua,Ln=a("Kwbf");function ca(i,v,E){var u=i.prefixCls,e=i.motion,o=i.defaultMotions,t=o===void 0?{}:o,l=i.openAnimation,c=i.openTransitionName,C=v.switchingModeFromInline;if(e)return e;if(Object(P.a)(l)==="object"&&l)Object(Ln.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(u,"-open-").concat(l)};if(c)return{motionName:c};var b=t[E];return b||(C?null:t.other)}var ka=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onSelect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState(),S=b.selectedKeys,W=l.key;C.multiple?S=S.concat([W]):S=[W],"selectedKeys"in C||e.store.setState({selectedKeys:S}),C.onSelect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:S}))}},e.onClick=function(l){var c=e.getRealMenuMode(),C=Object(g.a)(e),b=C.store,S=C.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(b.setState({openKeys:[]}),S([])),e.props.onClick(l)},e.onKeyDown=function(l,c){e.innerMenu.getWrappedInstance().onKeyDown(l,c)},e.onOpenChange=function(l){var c=Object(g.a)(e),C=c.props,b=e.store.getState().openKeys.concat(),S=!1,W=function(de){var Oe=!1;if(de.open)Oe=b.indexOf(de.key)===-1,Oe&&b.push(de.key);else{var He=b.indexOf(de.key);Oe=He!==-1,Oe&&b.splice(He,1)}S=S||Oe};Array.isArray(l)?l.forEach(W):W(l),S&&("openKeys"in e.props||e.store.setState({openKeys:b}),C.onOpenChange(b))},e.onDeselect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState().selectedKeys.concat(),S=l.key,W=b.indexOf(S);W!==-1&&b.splice(W,1),"selectedKeys"in C||e.store.setState({selectedKeys:b}),C.onDeselect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:b}))}},e.onMouseEnter=function(l){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(l)},e.onTransitionEnd=function(l){var c=l.propertyName==="width"&&l.target===l.currentTarget,C=l.target.className,b=Object.prototype.toString.call(C)==="[object SVGAnimatedString]"?C.animVal:C,S=l.propertyName==="font-size"&&b.indexOf("anticon")>=0;(c||S)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(l){e.innerMenu=l},e.isRootMenu=!0;var o=u.defaultSelectedKeys,t=u.defaultOpenKeys;return"selectedKeys"in u&&(o=u.selectedKeys||[]),"openKeys"in u&&(t=u.openKeys||[]),e.store=Object(I.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":qn(u,u.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:u,inlineOpenKeys:[],store:e.store},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,l=o.inlineCollapsed,c=o.onOpenChange;(!e.inlineCollapsed&&l||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,l=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");l?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(U.a)({},Object(F.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(U.a)(Object(U.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(I.a,{store:this.store},r.createElement(ea,Object(R.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,l=o.store,c=l.getState(),C={},b={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(b.switchingModeFromInline=!0),"openKeys"in e?C.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(b.switchingModeFromInline=!0,b.inlineOpenKeys=c.openKeys,C.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(C.openKeys=o.inlineOpenKeys,b.inlineOpenKeys=[])),Object.keys(C).length&&l.setState(C),b}}]),E}(r.Component);ka.defaultProps={selectable:!0,onClick:T,onSelect:T,onOpenChange:T,onDeselect:T,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Un=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.onKeyDown=function(e){var o=e.keyCode;return o===x.a.ENTER?(u.onClick(e),!0):void 0},u.onMouseLeave=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseLeave;l({key:t,hover:!1}),c({key:t,domEvent:e})},u.onMouseEnter=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseEnter;l({key:t,hover:!0}),c({key:t,domEvent:e})},u.onClick=function(e){var o=u.props,t=o.eventKey,l=o.multiple,c=o.onClick,C=o.onSelect,b=o.onDeselect,S=o.isSelected,W={key:t,keyPath:[t],item:Object(g.a)(u),domEvent:e};c(W),l?S?b(W):C(W):S||C(W)},u.saveNode=function(e){u.node=e},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,o=Object(U.a)({},this.props),t=ce()(this.getPrefixCls(),o.className,(e={},Object(w.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(w.a)(e,this.getSelectedClassName(),o.isSelected),Object(w.a)(e,this.getDisabledClassName(),o.disabled),e)),l=Object(U.a)(Object(U.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?l=Object(U.a)(Object(U.a)({},l),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(l.role="none");var c={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},C=Object(U.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?C.paddingRight=o.inlineIndent*o.level:C.paddingLeft=o.inlineIndent*o.level),ke.forEach(function(S){return delete o[S]}),delete o.direction;var b=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(b=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(R.a)({},Object(F.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,c,{style:C,ref:this.saveNode}),o.children,b)}}]),E}(r.Component);Un.isMenuItem=!0,Un.defaultProps={onSelect:T,onMouseEnter:T,onMouseLeave:T,manualRef:T};var da=Object(I.b)(function(i,v){var E=i.activeKey,u=i.selectedKeys,e=v.eventKey,o=v.subMenuKey;return{active:E[o]===e,isSelected:Array.isArray(u)?u.indexOf(e)!==-1:u===e}})(Un),fa=da,ma=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.renderInnerMenuItem=function(e){var o=u.props,t=o.renderMenuItem,l=o.index;return t(e,l,u.props.subMenuKey)},u}return Object($.a)(E,[{key:"render",value:function(){var e=Object(R.a)({},this.props),o=e.className,t=o===void 0?"":o,l=e.rootPrefixCls,c="".concat(l,"-item-group-title"),C="".concat(l,"-item-group-list"),b=e.title,S=e.children;return ke.forEach(function(W){return delete e[W]}),delete e.direction,r.createElement("li",Object(R.a)({},e,{onClick:function(me){return me.stopPropagation()},className:"".concat(t," ").concat(l,"-item-group")}),r.createElement("div",{className:c,title:typeof b=="string"?b:void 0},b),r.createElement("ul",{className:C},r.Children.map(S,this.renderInnerMenuItem)))}}]),E}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(v){var E=v.className,u=v.rootPrefixCls,e=v.style;return r.createElement("li",{className:"".concat(E," ").concat(u,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,ha=a("eDIo");function eo(i,v){var E=i.prefixCls,u=i.editable,e=i.locale,o=i.style;return!u||u.showAdd===!1?null:r.createElement("button",{ref:v,type:"button",className:"".concat(E,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(l){u.onEdit("add",{event:l})}},u.addIcon||"+")}var ta=r.forwardRef(eo);function to(i,v){var E=i.prefixCls,u=i.id,e=i.tabs,o=i.locale,t=i.mobile,l=i.moreIcon,c=l===void 0?"More":l,C=i.moreTransitionName,b=i.style,S=i.className,W=i.editable,me=i.tabBarGutter,de=i.rtl,Oe=i.onTabClick,He=Object(r.useState)(!1),tt=Object(j.a)(He,2),Je=tt[0],at=tt[1],nt=Object(r.useState)(null),qe=Object(j.a)(nt,2),et=qe[0],vt=qe[1],rt="".concat(u,"-more-popup"),Xt="".concat(E,"-dropdown"),_t=et!==null?"".concat(rt,"-").concat(et):null,ze=o==null?void 0:o.dropdownAriaLabel,We=r.createElement(Ka,{onClick:function(St){var Bt=St.key,an=St.domEvent;Oe(Bt,an),at(!1)},id:rt,tabIndex:-1,role:"listbox","aria-activedescendant":_t,selectedKeys:[et],"aria-label":ze!==void 0?ze:"expanded dropdown"},e.map(function(gt){return r.createElement(fa,{key:gt.key,id:"".concat(rt,"-").concat(gt.key),role:"option","aria-controls":u&&"".concat(u,"-panel-").concat(gt.key),disabled:gt.disabled},gt.tab)}));function ut(gt){for(var St=e.filter(function(bn){return!bn.disabled}),Bt=St.findIndex(function(bn){return bn.key===et})||0,an=St.length,vn=0;vnbt?(dt=We,rt.current="x"):(dt=ut,rt.current="y");var Kt=Date.now();Kt-et.current>100&&(vt.current=!1),(v(-dt,-dt)||vt.current)&&(ze.preventDefault(),vt.current=!0),et.current=Kt}var _t=Object(r.useRef)(null);_t.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:qe,onWheel:Xt},r.useEffect(function(){function ze(De){_t.current.onTouchStart(De)}function We(De){_t.current.onTouchMove(De)}function ut(De){_t.current.onTouchEnd(De)}function dt(De){_t.current.onWheel(De)}return document.addEventListener("touchmove",We,{passive:!1}),document.addEventListener("touchend",ut,{passive:!1}),i.current.addEventListener("touchstart",ze,{passive:!1}),i.current.addEventListener("wheel",dt),function(){document.removeEventListener("touchmove",We),document.removeEventListener("touchend",ut)}},[])}function ba(){var i=Object(r.useRef)(new Map);function v(u){return i.current.has(u)||i.current.set(u,r.createRef()),i.current.get(u)}function E(u){i.current.delete(u)}return[v,E]}function za(i,v){var E=r.useRef(i),u=r.useState({}),e=Object(j.a)(u,2),o=e[1];function t(l){var c=typeof l=="function"?l(E.current):l;c!==E.current&&v(c,E.current),E.current=c,o({})}return[E.current,t]}var Fa=function(v){var E=v.position,u=v.prefixCls,e=v.extra;if(!e)return null;var o,t=e;return E==="right"&&(o=t.right||!t.left&&t||null),E==="left"&&(o=t.left||null),o?r.createElement("div",{className:"".concat(u,"-extra-content")},o):null};function zo(i,v){var E,u=r.useContext(va),e=u.prefixCls,o=u.tabs,t=i.className,l=i.style,c=i.id,C=i.animated,b=i.activeKey,S=i.rtl,W=i.extra,me=i.editable,de=i.locale,Oe=i.tabPosition,He=i.tabBarGutter,tt=i.children,Je=i.onTabClick,at=i.onTabScroll,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useRef)(),vt=Object(r.useRef)(),rt=ba(),Xt=Object(j.a)(rt,2),_t=Xt[0],ze=Xt[1],We=Oe==="top"||Oe==="bottom",ut=za(0,function(xt,ct){We&&at&&at({direction:xt>ct?"left":"right"})}),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=za(0,function(xt,ct){!We&&at&&at({direction:xt>ct?"top":"bottom"})}),gt=Object(j.a)(Kt,2),St=gt[0],Bt=gt[1],an=Object(r.useState)(0),vn=Object(j.a)(an,2),$t=vn[0],bn=vn[1],Pn=Object(r.useState)(0),yn=Object(j.a)(Pn,2),Cn=yn[0],Yt=yn[1],mn=Object(r.useState)(0),on=Object(j.a)(mn,2),en=on[0],kn=on[1],In=Object(r.useState)(0),Hn=Object(j.a)(In,2),kt=Hn[0],Nn=Hn[1],Vn=Object(r.useState)(null),Wt=Object(j.a)(Vn,2),Ot=Wt[0],rn=Wt[1],Xo=Object(r.useState)(null),bo=Object(j.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(j.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(j.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=_(new Map),yo=Object(j.a)(er,2),tr=yo[0],nr=yo[1],Ba=fe(o,tr,$t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;We?S?(ga=0,Ea=Math.max(0,$t-Ot)):(ga=Math.min(0,Ot-$t),Ea=0):(ga=Math.min(0,na-Cn),Ea=0);function ao(xt){return xtEa?[Ea,!1]:[xt,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(j.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(nt,function(xt,ct){var tn=!1;function On(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(j.a)(xa,2),co=aa[0],fo=aa[1];return tn=fo,co})}if(We){if(Ot>=$t)return tn;On(bt,xt)}else{if(na>=Cn)return tn;On(Bt,ct)}return io(),ro(),tn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b,ct=Ba.get(xt);if(!ct)return;if(We){var tn=De;S?ct.rightDe+Ot&&(tn=ct.right+ct.width-Ot):ct.left<-De?tn=-ct.left:ct.left+ct.width>-De+Ot&&(tn=-(ct.left+ct.width-Ot)),Bt(0),bt(ao(tn)[0])}else{var On=St;ct.top<-St?On=-ct.top:ct.top+ct.height>-St+na&&(On=-(ct.top+ct.height-na)),bt(0),Bt(ao(On)[0])}}var or=he(Ba,{width:Ot,height:na,left:De,top:St},{width:en,height:kt},{width:Yo,height:Zo},Object(U.a)(Object(U.a)({},i),{},{tabs:o})),Mo=Object(j.a)(or,2),rr=Mo[0],ir=Mo[1],sr=o.map(function(xt){var ct=xt.key;return r.createElement(V,{id:c,prefixCls:e,key:ct,rtl:S,tab:xt,closable:xt.closable,editable:me,active:ct===b,tabPosition:Oe,tabBarGutter:He,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:_t(ct),onClick:function(On){Je(ct,On)},onRemove:function(){ze(ct)},onFocus:function(){jo(ct),ro(),S||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=Z(function(){var xt,ct,tn,On,Ca,Oa,_a,xa,aa,co=((xt=nt.current)===null||xt===void 0?void 0:xt.offsetWidth)||0,fo=((ct=nt.current)===null||ct===void 0?void 0:ct.offsetHeight)||0,wo=((tn=vt.current)===null||tn===void 0?void 0:tn.offsetWidth)||0,Lo=((On=vt.current)===null||On===void 0?void 0:On.offsetHeight)||0,mr=((Ca=et.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=et.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;rn(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((_a=qe.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-wo,ko=(((xa=qe.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;bn(Uo),Yt(ko);var Io=(aa=et.current)===null||aa===void 0?void 0:aa.className.includes(Co);kn(Uo-(Io?0:mr)),Nn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Wo=hr.key,ja=_t(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),Ro=[].concat(Object(k.a)(lr),Object(k.a)(ur)),cr=Object(r.useState)(),So=Object(j.a)(cr,2),dr=So[0],fr=So[1],Kn=Ba.get(b),To=Object(r.useRef)();function Po(){le.a.cancel(To.current)}Object(r.useEffect)(function(){var xt={};return Kn&&(We?(S?xt.right=Kn.right:xt.left=Kn.left,xt.width=Kn.width):(xt.top=Kn.top,xt.height=Kn.height)),Po(),To.current=le()(function(){fr(xt)}),Po},[Kn,We,S]),Object(r.useEffect)(function(){jo()},[b,Kn,Ba,We]),Object(r.useEffect)(function(){so()},[S,He,b,o.map(function(xt){return xt.key}).join("_")]);var Ao=!!Ro.length,ya="".concat(e,"-nav-wrap"),lo,uo,Do,No;return We?S?(uo=De>0,lo=De+Ot<$t):(lo=De<0,uo=-De+Ot<$t):(Do=St<0,No=-St+na1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(fe.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Y=fe[0];if(f.isValidElement(Y)&&Object(X.c)(Y)){var he=Y.ref;fe[0]=f.cloneElement(Y,{ref:Object(X.a)(he,this.setChildNode)})}return fe.length===1?fe[0]:fe.map(function(R,J){return!f.isValidElement(R)||"key"in R&&R.key!==null?R:f.cloneElement(R,{key:"".concat(pe,"-").concat(J)})})}}]),ue}(f.Component);Z.displayName="ResizeObserver",ve.a=Z},wCXF:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return At});var w=a("rePB"),j=a("VTBJ"),je=a("KQm4"),U=a("U8pU"),r=a("ODXe"),f=a("q1tI"),ce=a("TSYQ"),se=a.n(ce),K=a("Gytx"),k=a.n(K),X=a("Kwbf"),le=a("t23M"),pe=a("qx4F"),Z=a("6eGT"),_=a("IBYe"),x=a("Ff2n"),ue=a("c+Xe"),V=a("fyJ8"),ae=a("biw7");function fe(N,be,ge,Me,Ae){var Re=ge[N]||{},xe=ge[be]||{},ye,_e;Re.fixed==="left"?ye=Me.left[N]:xe.fixed==="right"&&(_e=Me.right[be]);var Ue=!1,Te=!1,we=!1,$e=!1,Ke=ge[be+1],Qe=ge[N-1];if(Ae==="rtl"){if(ye!==void 0){var Et=Qe&&Qe.fixed==="left";$e=!Et}else if(_e!==void 0){var ot=Ke&&Ke.fixed==="right";we=!ot}}else if(ye!==void 0){var yt=Ke&&Ke.fixed==="left";Ue=!yt}else if(_e!==void 0){var Ye=Qe&&Qe.fixed==="right";Te=!Ye}return{fixLeft:ye,fixRight:_e,lastFixLeft:Ue,firstFixRight:Te,lastFixRight:we,firstFixLeft:$e,isSticky:Me.isSticky}}var Y=a("sR1s");function he(N){var be=N.cells,ge=N.stickyOffsets,Me=N.flattenColumns,Ae=N.rowComponent,Re=N.cellComponent,xe=N.onHeaderRow,ye=N.index,_e=f.useContext(ae.a),Ue=_e.prefixCls,Te=_e.direction,we;xe&&(we=xe(be.map(function(Ke){return Ke.column}),ye));var $e=Object(Y.a)(be.map(function(Ke){return Ke.column}));return f.createElement(Ae,Object.assign({},we),be.map(function(Ke,Qe){var Et=Ke.column,ot=fe(Ke.colStart,Ke.colEnd,Me,ge,Te),yt;return Et&&Et.onHeaderCell&&(yt=Ke.column.onHeaderCell(Et)),f.createElement(V.a,Object.assign({},Ke,{ellipsis:Et.ellipsis,align:Et.align,component:Re,prefixCls:Ue,key:$e[Qe]},ot,{additionalProps:yt,rowType:"header"}))}))}he.displayName="HeaderRow";var R=he;function J(N){var be=[];function ge(xe,ye){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;be[_e]=be[_e]||[];var Ue=ye,Te=xe.filter(Boolean).map(function(we){var $e={key:we.key,className:we.className||"",children:we.title,column:we,colStart:Ue},Ke=1,Qe=we.children;return Qe&&Qe.length>0&&(Ke=ge(Qe,Ue,_e+1).reduce(function(Et,ot){return Et+ot},0),$e.hasSubColumns=!0),"colSpan"in we&&(Ke=we.colSpan),"rowSpan"in we&&($e.rowSpan=we.rowSpan),$e.colSpan=Ke,$e.colEnd=$e.colStart+Ke-1,be[_e].push($e),Ue+=Ke,Ke});return Te}ge(N,0);for(var Me=be.length,Ae=function(ye){be[ye].forEach(function(_e){!("rowSpan"in _e)&&!_e.hasSubColumns&&(_e.rowSpan=Me-ye)})},Re=0;Re=0;ye-=1){var _e=be[ye],Ue=ge&&ge[ye],Te=Ue&&Ue[O.a];(_e||Te||xe)&&(Ae.unshift(f.createElement("col",Object.assign({key:ye,style:{width:_e,minWidth:_e}},Te))),xe=!0)}return f.createElement("colgroup",null,Ae)}var I=d;function F(N,be){return Object(f.useMemo)(function(){for(var ge=[],Me=0;Me1?sn-1:0),xn=1;xn=we&&(Dt=we-$e),xe({scrollLeft:Dt/we*(Te+2)}),Ye.current.x=Ze.pageX},Rt=function(){var Ze=Object(ke.b)(Re.current).top,Lt=Ze+Re.current.offsetHeight,Zt=document.documentElement.scrollTop+window.innerHeight;Lt-Object(pe.a)()<=Zt||Ze>=Zt-ye?yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!0})}):yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!1})})},Ct=function(Ze){yt(function(Lt){return Object(j.a)(Object(j.a)({},Lt),{},{scrollLeft:Ze/Te*we||0})})};return f.useImperativeHandle(ge,function(){return{setScrollLeft:Ct}}),f.useEffect(function(){var ht=Object(Pe.a)(document.body,"mouseup",Jt,!1),Ze=Object(Pe.a)(document.body,"mousemove",Gt,!1);return Rt(),function(){ht.remove(),Ze.remove()}},[$e,lt]),f.useEffect(function(){var ht=Object(Pe.a)(window,"scroll",Rt,!1),Ze=Object(Pe.a)(window,"resize",Rt,!1);return function(){ht.remove(),Ze.remove()}},[]),f.useEffect(function(){ot.isHiddenScrollBar||yt(function(ht){var Ze,Lt;return Object(j.a)(Object(j.a)({},ht),{},{scrollLeft:Re.current.scrollLeft/((Ze=Re.current)===null||Ze===void 0?void 0:Ze.scrollWidth)*((Lt=Re.current)===null||Lt===void 0?void 0:Lt.clientWidth)})})},[ot.isHiddenScrollBar]),Te<=we||!$e||ot.isHiddenScrollBar?null:f.createElement("div",{style:{height:Object(pe.a)(),width:we,bottom:ye},className:"".concat(Ue,"-sticky-scroll")},f.createElement("div",{onMouseDown:ft,ref:Ke,className:se()("".concat(Ue,"-sticky-scroll-bar"),Object(w.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),lt)),style:{width:"".concat($e,"px"),transform:"translate3d(".concat(ot.scrollLeft,"px, 0, 0)")}}))},Ne=f.forwardRef(Ie);function Le(N,be){return f.useMemo(function(){var ge=!!N;return{isSticky:ge,stickyClassName:ge?"".concat(be,"-sticky-header"):"",offsetHeader:Object(U.a)(N)==="object"&&N.offsetHeader||0,offsetScroll:Object(U.a)(N)==="object"&&N.offsetScroll||0}},[N,be])}var Nt=[],It={},At="rc-table-internal-hook",jt=f.memo(function(N){var be=N.children;return be},function(N,be){return k()(N.props,be.props)?N.pingLeft!==be.pingLeft||N.pingRight!==be.pingRight:!1});function zt(N){var be,ge=N.prefixCls,Me=N.className,Ae=N.rowClassName,Re=N.style,xe=N.data,ye=N.rowKey,_e=N.scroll,Ue=N.tableLayout,Te=N.direction,we=N.title,$e=N.footer,Ke=N.summary,Qe=N.id,Et=N.showHeader,ot=N.components,yt=N.emptyText,Ye=N.onRow,wt=N.onHeaderRow,Mt=N.internalHooks,lt=N.transformColumns,Ft=N.internalRefs,Jt=N.sticky,ft=xe||Nt,Gt=!!ft.length,Rt=f.useState(0),Ct=Object(r.a)(Rt,2),ht=Ct[0],Ze=Ct[1];f.useEffect(function(){Ze(Object(pe.a)())});var Lt=f.useMemo(function(){return Object(Y.c)(ot,{})},[ot]),Zt=f.useCallback(function(mt,pt){return Object(Y.b)(Lt,mt)||pt},[Lt]),qt=f.useMemo(function(){return typeof ye=="function"?ye:function(mt){var pt=mt&&mt[ye];return pt}},[ye]),Dt=Object(O.c)(N),Sn=Dt.expandIcon,nn=Dt.expandedRowKeys,Fe=Dt.defaultExpandedRowKeys,Se=Dt.defaultExpandAllRows,Be=Dt.expandedRowRender,Ve=Dt.onExpand,it=Dt.onExpandedRowsChange,Ge=Dt.expandRowByClick,st=Dt.rowExpandable,Ut=Dt.expandIconColumnIndex,Tt=Dt.expandedRowClassName,_n=Dt.childrenColumnName,Qt=Dt.indentSize,cn=Sn||re,gn=_n||"children",dn=f.useMemo(function(){return Be?"row":N.expandable&&Mt===At&&N.expandable.__PARENT_RENDER_ICON__||ft.some(function(mt){return mt&&Object(U.a)(mt)==="object"&&mt[gn]})?"nest":!1},[!!Be,ft]),An=f.useState(function(){return Fe||(Se?Ee(ft,qt,gn):[])}),Pt=Object(r.a)(An,2),fn=Pt[0],En=Pt[1],sn=f.useMemo(function(){return new Set(nn||fn||[])},[nn,fn]),pn=f.useCallback(function(mt){var pt=qt(mt,ft.indexOf(mt)),Vt,ln=sn.has(pt);ln?(sn.delete(pt),Vt=Object(je.a)(sn)):Vt=[].concat(Object(je.a)(sn),[pt]),En(Vt),Ve&&Ve(!ln,mt),it&&it(Vt)},[qt,sn,ft,Ve,it]),xn=f.useState(0),Xn=Object(r.a)(xn,2),Wn=Xn[0],$n=Xn[1],Ma=Object(ne.b)(Object(j.a)(Object(j.a)(Object(j.a)({},N),Dt),{},{expandable:!!Be,expandedKeys:sn,getRowKey:qt,onTriggerExpand:pn,expandIcon:cn,expandIconColumnIndex:Ut,direction:Te}),Mt===At?lt:null),Ra=Object(r.a)(Ma,2),Gn=Ra[0],Ht=Ra[1],Yn=f.useMemo(function(){return{columns:Gn,flattenColumns:Ht}},[Gn,Ht]),Jn=f.useRef(),Sa=f.useRef(),jn=f.useRef(),Ha=f.useState(!1),Ta=Object(r.a)(Ha,2),oa=Ta[0],Va=Ta[1],Xa=f.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=z(new Map),Pa=Object(r.a)(Ga,2),Ya=Pa[0],Ja=Pa[1],Tn=Object(Y.a)(Ht),ia=Tn.map(function(mt){return Ya.get(mt)}),Aa=f.useMemo(function(){return ia},[ia.join("_")]),sa=m(Aa,Ht.length,Te),hn=_e&&Object(Y.d)(_e.y),Mn=_e&&Object(Y.d)(_e.x),Rn=Mn&&Ht.some(function(mt){var pt=mt.fixed;return pt}),la=f.useRef(),zn=Le(Jt,ge),Fn=zn.isSticky,Da=zn.offsetHeader,Qa=zn.offsetScroll,Na=zn.stickyClassName,ua,Zn,wn;hn&&(Zn={overflowY:"scroll",maxHeight:_e.y}),Mn&&(ua={overflowX:"auto"},hn||(Zn={overflowY:"hidden"}),wn={width:_e.x===!0?"auto":_e.x,minWidth:"100%"});var Dn=f.useCallback(function(mt,pt){Ja(function(Vt){var ln=new Map(Vt);return ln.set(mt,pt),ln})},[]),qn=q(null),wa=Object(r.a)(qn,2),La=wa[0],Ua=wa[1];function ea(mt,pt){if(!pt)return;typeof pt=="function"?pt(mt):pt.scrollLeft!==mt&&(pt.scrollLeft=mt)}var Ln=function(pt){var Vt=pt.currentTarget,ln=pt.scrollLeft,Bn=typeof ln=="number"?ln:Vt.scrollLeft,Wa=Vt||It;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Sa.current),ea(Bn,jn.current),ea(Bn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Vt){var za=Vt.scrollWidth,Fa=Vt.clientWidth;Va(Bn>0),$a(Bn0?[].concat(Object(j.a)(x),Object(j.a)(X(fe).map(function(Y){return Object(je.a)({fixed:ae},Y)}))):[].concat(Object(j.a)(x),[Object(je.a)(Object(je.a)({},ue),{},{fixed:ae})])},[])}function le(_){for(var x=!0,ue=0;ue<_.length;ue+=1){var V=_[ue];if(x&&V.fixed!=="left")x=!1;else if(!x&&V.fixed==="left"){Object(ce.a)(!1,"Index ".concat(ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var ae=!0,fe=_.length-1;fe>=0;fe-=1){var Y=_[fe];if(ae&&Y.fixed!=="right")ae=!1;else if(!ae&&Y.fixed==="right"){Object(ce.a)(!1,"Index ".concat(fe+1," of `columns` missing `fixed='right'` prop."));break}}}function pe(_){return _.map(function(x){var ue=x.fixed,V=Object(U.a)(x,["fixed"]),ae=ue;return ue==="left"?ae="right":ue==="right"&&(ae="left"),Object(je.a)({fixed:ae},V)})}function Z(_,x){var ue=_.prefixCls,V=_.columns,ae=_.children,fe=_.expandable,Y=_.expandedKeys,he=_.getRowKey,R=_.onTriggerExpand,J=_.expandIcon,$=_.rowExpandable,g=_.expandIconColumnIndex,O=_.direction,d=_.expandRowByClick,I=r.useMemo(function(){return V||k(ae)},[V,ae]),F=r.useMemo(function(){if(fe){var te,P=g||0,L=I[P],y=(te={},Object(w.a)(te,K.a,{className:"".concat(ue,"-expand-icon-col")}),Object(w.a)(te,"title",""),Object(w.a)(te,"fixed",L?L.fixed:null),Object(w.a)(te,"className","".concat(ue,"-row-expand-icon-cell")),Object(w.a)(te,"render",function(h,M,G){var oe=he(M,G),D=Y.has(oe),B=$?$(M):!0,ne=J({prefixCls:ue,expanded:D,expandable:B,record:M,onExpand:R});return d?r.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},ne):ne}),te),p=I.slice();return P>=0&&p.splice(P,0,y),p}return I},[fe,I,he,Y,J,O]),Q=r.useMemo(function(){var te=F;return x&&(te=x(te)),te.length||(te=[{render:function(){return null}}]),te},[x,F,O]),Ce=r.useMemo(function(){return O==="rtl"?pe(X(Q)):X(Q)},[Q,O]);return[Q,Ce]}ve.b=Z},"y0+3":function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return X}),a.d(ve,"b",function(){return pe});var w=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},je={cssFloat:1,styleFloat:1,float:1};function U(Z){return Z.nodeType===1?Z.ownerDocument.defaultView.getComputedStyle(Z,null):{}}function r(Z,_,x){if(_=_.toLowerCase(),x==="auto"){if(_==="height")return Z.offsetHeight;if(_==="width")return Z.offsetWidth}return _ in j||(j[_]=w.test(_)),j[_]?parseFloat(x)||0:x}function f(Z,_){var x=arguments.length,ue=U(Z);return _=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,x===1?ue:r(Z,_,ue[_]||Z.style[_])}function ce(Z,_,x){var ue=arguments.length;if(_=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,ue===3)return typeof x=="number"&&w.test(_)&&(x="".concat(x,"px")),Z.style[_]=x,x;for(var V in _)_.hasOwnProperty(V)&&ce(Z,V,_[V]);return U(Z)}function se(Z){return Z===document.body?document.documentElement.clientWidth:Z.offsetWidth}function K(Z){return Z===document.body?window.innerHeight||document.documentElement.clientHeight:Z.offsetHeight}function k(){var Z=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Z,height:_}}function X(){var Z=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:Z,height:_}}function le(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function pe(Z){var _=Z.getBoundingClientRect(),x=document.documentElement;return{left:_.left+(window.pageXOffset||x.scrollLeft)-(x.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||x.scrollTop)-(x.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(M,",").concat(M," 0 1 1 ").concat(-D,",").concat(B),ie=Math.PI*2*M,ee={stroke:y,strokeDasharray:"".concat(L/100*(ie-A),"px ").concat(ie,"px"),strokeDashoffset:"-".concat(A/2+P/100*(ie-A),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:ee}}var Q=function(L){var y=L.prefixCls,p=L.strokeWidth,A=L.trailWidth,h=L.gapDegree,M=L.gapPosition,G=L.trailColor,oe=L.strokeLinecap,D=L.style,B=L.className,ne=L.strokeColor,ie=L.percent,ee=$(L,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),z=Object(w.useMemo)(function(){return O+=1,O},[]),q=F(0,100,G,p,h,M),n=q.pathString,m=q.pathStyle,s=I(ie),S=I(ne),H=S.find(function(Ie){return Object.prototype.toString.call(Ie)==="[object Object]"}),re=f(s),Ee=ae(re,1),Pe=Ee[0],ke=function(){var Ne=0;return s.map(function(Le,Nt){var It=S[Nt]||S[S.length-1],At=Object.prototype.toString.call(It)==="[object Object]"?"url(#".concat(y,"-gradient-").concat(z,")"):"",jt=F(Ne,Le,It,p,h,M);return Ne+=Le,j.a.createElement("path",{key:Nt,className:"".concat(y,"-circle-path"),d:jt.pathString,stroke:At,strokeLinecap:oe,strokeWidth:p,opacity:Le===0?0:1,fillOpacity:"0",style:jt.pathStyle,ref:Pe[Nt]})})};return j.a.createElement("svg",V({className:U()("".concat(y,"-circle"),B),viewBox:"0 0 100 100",style:D},ee),H&&j.a.createElement("defs",null,j.a.createElement("linearGradient",{id:"".concat(y,"-gradient-").concat(z),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(H).sort(function(Ie,Ne){return d(Ie)-d(Ne)}).map(function(Ie,Ne){return j.a.createElement("stop",{key:Ne,offset:Ie,stopColor:H[Ie]})}))),j.a.createElement("path",{className:"".concat(y,"-circle-trail"),d:n,stroke:G,strokeLinecap:oe,strokeWidth:A||p,fillOpacity:"0",style:m}),ke().reverse())};Q.defaultProps=r;var Ce=Q,te={Line:ue,Circle:Ce}},hW8S:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return U}),a.d(ve,"c",function(){return r}),a.d(ve,"b",function(){return f});var w=a("VTBJ"),j=a("Ff2n"),je=a("Kwbf"),U="RC_TABLE_INTERNAL_COL_DEFINE";function r(ce){var se=ce.expandable,K=Object(j.a)(ce,["expandable"]);return"expandable"in ce?Object(w.a)(Object(w.a)({},K),se):K}function f(ce){return Object.keys(ce).reduce(function(se,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-")&&(se[K]=ce[K]),se},{})}},k3GJ:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return po});var w=a("rePB"),j=a("ODXe"),je=a("Ff2n"),U=a("VTBJ"),r=a("q1tI"),f=a("TSYQ"),ce=a.n(f),se=a("Zm9Q"),K=a("6cGi"),k=a("KQm4"),X=a("xEkU"),le=a.n(X),pe=a("t23M");function Z(i){var v=Object(r.useRef)(),E=Object(r.useRef)(!1);function u(){for(var e=arguments.length,o=new Array(e),t=0;tT&&(de=T-me),Object(r.useMemo)(function(){if(!o.length)return[0,0];for(var Oe=o.length,He=Oe,tt=0;ttb+de){He=tt-1;break}}for(var at=0,nt=Oe-1;nt>=0;nt-=1){var qe=i.get(o[nt].key)||Y;if(qe[C]1&&arguments[1]!==void 0?arguments[1]:!1,u=v&&typeof v.getBoundingClientRect=="function"&&v.getBoundingClientRect().width;if(u){if(E){var e=getComputedStyle(v),o=e.marginLeft,t=e.marginRight;u+=+o.replace("px","")+ +t.replace("px","")}u=+u.toFixed(6)}return u||0},Ne=function(v,E,u){v&&Object(P.a)(v.style)==="object"&&(v.style[E]=u)},Le=function(){return s.any},Nt=a("bdgK"),It=a("i8i4"),At=a.n(It),jt=a("wgJM"),zt=a("l4aY"),un=a("m+aA"),N=a("c+Xe"),be=a("zT1h"),ge=a("QC+M");function Me(i,v,E){return E?i[0]===v[0]:i[0]===v[0]&&i[1]===v[1]}function Ae(i,v,E){var u=i[v]||{};return Object(U.a)(Object(U.a)({},u),E)}function Re(i,v,E,u){for(var e=E.points,o=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;v();var o=Object(jt.a)(function(){e<=1?u({isCanceled:function(){return o!==i.current}}):E(u,e-1)});i.current=o}return r.useEffect(function(){return function(){v()}},[]),[E,v]},Tn=[Rt,Ct,ht,Ze],nn=!1,Fe=!0;function Te(i){return i===ht||i===Ze}var Be=function(i,v){var E=r.useState(Gt),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Dt(),l=Object(j.a)(t,2),c=l[0],C=l[1];function b(){o(Rt)}return qt(function(){if(e!==Gt&&e!==Ze){var T=Tn.indexOf(e),W=Tn[T+1],me=v(e);me===nn?o(W):c(function(de){function Oe(){if(de.isCanceled())return;o(W)}me===!0?Oe():Promise.resolve(me).then(Oe)})}},[i,e]),r.useEffect(function(){return function(){C()}},[]),[b,e]},Ve=function(i){var v=Object(r.useRef)(),E=Object(r.useRef)(i);E.current=i;var u=r.useCallback(function(t){E.current(t)},[]);function e(t){t&&(t.removeEventListener(wt,u),t.removeEventListener(Ye,u))}function o(t){v.current&&v.current!==t&&e(v.current),t&&t!==v.current&&(t.addEventListener(wt,u),t.addEventListener(Ye,u),v.current=t)}return r.useEffect(function(){return function(){e(v.current)}},[]),[o,e]};function it(i,v,E,u){var e=u.motionEnter,o=e===void 0?!0:e,t=u.motionAppear,l=t===void 0?!0:t,c=u.motionLeave,C=c===void 0?!0:c,b=u.motionDeadline,T=u.motionLeaveImmediately,W=u.onAppearPrepare,me=u.onEnterPrepare,de=u.onLeavePrepare,Oe=u.onAppearStart,He=u.onEnterStart,tt=u.onLeaveStart,Je=u.onAppearActive,at=u.onEnterActive,nt=u.onLeaveActive,qe=u.onAppearEnd,et=u.onEnterEnd,vt=u.onLeaveEnd,rt=u.onVisibleChanged,Xt=Lt(),_t=Object(j.a)(Xt,2),ze=_t[0],We=_t[1],ut=Lt(lt),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=Lt(null),gt=Object(j.a)(Kt,2),Tt=gt[0],Bt=gt[1],an=Object(r.useRef)(!1),vn=Object(r.useRef)(null),$t=Object(r.useRef)(!1),bn=Object(r.useRef)(null);function Pn(){var Wt=E();return Wt||bn.current}var yn=Object(r.useRef)(!1);function Cn(Wt){var Ot=Pn();if(Wt&&!Wt.deadline&&Wt.target!==Ot)return;var rn;De===Ft&&yn.current?rn=qe==null?void 0:qe(Ot,Wt):De===Jt&&yn.current?rn=et==null?void 0:et(Ot,Wt):De===ft&&yn.current&&(rn=vt==null?void 0:vt(Ot,Wt)),rn!==!1&&!$t.current&&(bt(lt),Bt(null))}var Yt=Ve(Cn),mn=Object(j.a)(Yt,1),on=mn[0],en=r.useMemo(function(){var Wt,Ot,rn;switch(De){case"appear":return Wt={},Object(w.a)(Wt,Rt,W),Object(w.a)(Wt,Ct,Oe),Object(w.a)(Wt,ht,Je),Wt;case"enter":return Ot={},Object(w.a)(Ot,Rt,me),Object(w.a)(Ot,Ct,He),Object(w.a)(Ot,ht,at),Ot;case"leave":return rn={},Object(w.a)(rn,Rt,de),Object(w.a)(rn,Ct,tt),Object(w.a)(rn,ht,nt),rn;default:return{}}},[De]),kn=Be(De,function(Wt){if(Wt===Rt){var Ot=en[Rt];return Ot?Ot(Pn()):nn}if(kt in en){var rn;Bt(((rn=en[kt])===null||rn===void 0?void 0:rn.call(en,Pn(),null))||null)}return kt===ht&&(on(Pn()),b>0&&(clearTimeout(vn.current),vn.current=setTimeout(function(){Cn({deadline:!0})},b))),Fe}),In=Object(j.a)(kn,2),Hn=In[0],kt=In[1],Nn=Te(kt);yn.current=Nn,qt(function(){We(v);var Wt=an.current;if(an.current=!0,!i)return;var Ot;!Wt&&v&&l&&(Ot=Ft),Wt&&v&&o&&(Ot=Jt),(Wt&&!v&&C||!Wt&&T&&!v&&C)&&(Ot=ft),Ot&&(bt(Ot),Hn())},[v]),Object(r.useEffect)(function(){(De===Ft&&!l||De===Jt&&!o||De===ft&&!C)&&bt(lt)},[l,o,C]),Object(r.useEffect)(function(){return function(){clearTimeout(vn.current),$t.current=!0}},[]),Object(r.useEffect)(function(){ze!==void 0&&De===lt&&(rt==null||rt(ze))},[ze,De]);var Vn=Tt;return en[Rt]&&kt===Ct&&(Vn=Object(U.a)({transition:"none"},Vn)),[De,kt,Vn,ze!=null?ze:v]}var Ge=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){return Object(J.a)(this,E),v.apply(this,arguments)}return Object($.a)(E,[{key:"render",value:function(){return this.props.children}}]),E}(r.Component),st=Ge;function Ut(i){var v=i;Object(P.a)(i)==="object"&&(v=i.transitionSupport);function E(e){return!!(e.motionName&&v)}var u=r.forwardRef(function(e,o){var t=e.visible,l=t===void 0?!0:t,c=e.removeOnLeave,C=c===void 0?!0:c,b=e.forceRender,T=e.children,W=e.motionName,me=e.leavedClassName,de=e.eventProps,Oe=E(e),He=Object(r.useRef)(),tt=Object(r.useRef)();function Je(){try{return Object(un.a)(He.current||tt.current)}catch(bt){return null}}var at=it(Oe,l,Je,e),nt=Object(j.a)(at,4),qe=nt[0],et=nt[1],vt=nt[2],rt=nt[3],Xt=r.useRef(rt);rt&&(Xt.current=!0);var _t=Object(r.useRef)(o);_t.current=o;var ze=r.useCallback(function(bt){He.current=bt,Object(N.b)(_t.current,bt)},[]),We,ut=Object(U.a)(Object(U.a)({},de),{},{visible:l});if(!T)We=null;else if(qe===lt||!E(e))rt?We=T(Object(U.a)({},ut),ze):!C&&Xt.current?We=T(Object(U.a)(Object(U.a)({},ut),{},{className:me}),ze):b?We=T(Object(U.a)(Object(U.a)({},ut),{},{style:{display:"none"}}),ze):We=null;else{var dt,De;et===Rt?De="prepare":Te(et)?De="active":et===Ct&&(De="start"),We=T(Object(U.a)(Object(U.a)({},ut),{},{className:ce()(Mt(W,qe),(dt={},Object(w.a)(dt,Mt(W,"".concat(qe,"-").concat(De)),De),Object(w.a)(dt,W,typeof W=="string"),dt)),style:vt}),ze)}return r.createElement(st,{ref:tt},We)});return u.displayName="CSSMotion",u}var St=Ut(yt),_n="add",Qt="keep",cn="remove",gn="removed";function dn(i){var v;return i&&Object(P.a)(i)==="object"&&"key"in i?v=i:v={key:i},Object(U.a)(Object(U.a)({},v),{},{key:String(v.key)})}function An(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(dn)}function Pt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],E=[],u=0,e=v.length,o=An(i),t=An(v);o.forEach(function(C){for(var b=!1,T=u;T1});return c.forEach(function(C){E=E.filter(function(b){var T=b.key,W=b.status;return T!==C||W!==cn}),E.forEach(function(b){b.key===C&&(b.status=Qt)})}),E}var fn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function En(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,E=function(u){Object(O.a)(o,u);var e=Object(d.a)(o);function o(){var t;return Object(J.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(l){t.setState(function(c){var C=c.keyEntities;return{keyEntities:C.map(function(b){return b.key!==l?b:Object(U.a)(Object(U.a)({},b),{},{status:gn})})}})},t}return Object($.a)(o,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,C=this.props,b=C.component,T=C.children,W=C.onVisibleChanged,me=Object(je.a)(C,["component","children","onVisibleChanged"]),de=b||r.Fragment,Oe={};return fn.forEach(function(He){Oe[He]=me[He],delete me[He]}),delete me.keys,r.createElement(de,me,c.map(function(He){var tt=He.status,Je=Object(je.a)(He,["status"]),at=tt===_n||tt===Qt;return r.createElement(v,Object(R.a)({},Oe,{key:Je.key,visible:at,eventProps:Je,onVisibleChanged:function(qe){W==null||W(qe,{key:Je.key}),qe||l.removeKey(Je.key)}}),T)}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var C=l.keys,b=c.keyEntities,T=An(C),W=Pt(b,T);return{keyEntities:W.filter(function(me){var de=b.find(function(Oe){var He=Oe.key;return me.key===He});return!(de&&de.status===gn&&me.status===cn)})}}}]),o}(r.Component);return E.defaultProps={component:"div"},E}var sn=En(yt),pn=St;function xn(i){var v=i.prefixCls,E=i.motion,u=i.animation,e=i.transitionName;return E||(u?{motionName:"".concat(v,"-").concat(u)}:e?{motionName:e}:null)}function Xn(i){var v=i.prefixCls,E=i.visible,u=i.zIndex,e=i.mask,o=i.maskMotion,t=i.maskAnimation,l=i.maskTransitionName;if(!e)return null;var c={};return(o||l||t)&&(c=Object(U.a)({motionAppear:!0},xn({motion:o,prefixCls:v,transitionName:l,animation:t}))),r.createElement(pn,Object(R.a)({},c,{visible:E,removeOnLeave:!0}),function(C){var b=C.className;return r.createElement("div",{style:{zIndex:u},className:ce()("".concat(v,"-mask"),b)})})}var Wn=a("9mu1"),$n=a("o0o1"),Ma=a.n($n),Ra=a("HaE+"),Gn=["measure","align",null,"motion"],Ht=function(i,v){var E=Object(r.useState)(null),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Object(r.useRef)(),l=Object(r.useRef)(!1);function c(T){l.current||o(T)}function C(){jt.a.cancel(t.current)}function b(T){C(),t.current=Object(jt.a)(function(){c(function(W){switch(e){case"align":return"motion";case"motion":return"stable";default:}return W}),T==null||T()})}return Object(r.useEffect)(function(){c("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":v();break;default:}e&&(t.current=Object(jt.a)(Object(Ra.a)(Ma.a.mark(function T(){var W,me;return Ma.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:W=Gn.indexOf(e),me=Gn[W+1],me&&W!==-1&&c(me);case 3:case"end":return Oe.stop()}},T)}))))},[e]),Object(r.useEffect)(function(){return function(){l.current=!0,C()}},[]),[e,b]},Yn=function(i){var v=r.useState({width:0,height:0}),E=Object(j.a)(v,2),u=E[0],e=E[1];function o(l){e({width:l.offsetWidth,height:l.offsetHeight})}var t=r.useMemo(function(){var l={};if(i){var c=u.width,C=u.height;i.indexOf("height")!==-1&&C?l.height=C:i.indexOf("minHeight")!==-1&&C&&(l.minHeight=C),i.indexOf("width")!==-1&&c?l.width=c:i.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[i,u]);return[t,o]},Jn=r.forwardRef(function(i,v){var E=i.visible,u=i.prefixCls,e=i.className,o=i.style,t=i.children,l=i.zIndex,c=i.stretch,C=i.destroyPopupOnHide,b=i.forceRender,T=i.align,W=i.point,me=i.getRootDomNode,de=i.getClassNameFromAlign,Oe=i.onAlign,He=i.onMouseEnter,tt=i.onMouseLeave,Je=i.onMouseDown,at=i.onTouchStart,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useState)(),vt=Object(j.a)(et,2),rt=vt[0],Xt=vt[1],_t=Yn(c),ze=Object(j.a)(_t,2),We=ze[0],ut=ze[1];function dt(){c&&ut(me())}var De=Ht(E,dt),bt=Object(j.a)(De,2),Kt=bt[0],gt=bt[1],Tt=Object(r.useRef)();function Bt(){return W||me}function an(){var Yt;(Yt=nt.current)===null||Yt===void 0||Yt.forceAlign()}function vn(Yt,mn){var on=de(mn);rt!==on&&Xt(on),Kt==="align"&&(rt!==on?Promise.resolve().then(function(){an()}):gt(function(){var en;(en=Tt.current)===null||en===void 0||en.call(Tt)}),Oe==null||Oe(Yt,mn))}var $t=Object(U.a)({},xn(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Yt){var mn=$t[Yt];$t[Yt]=function(on,en){return gt(),mn==null?void 0:mn(on,en)}});function bn(){return new Promise(function(Yt){Tt.current=Yt})}r.useEffect(function(){!$t.motionName&&Kt==="motion"&>()},[$t.motionName,Kt]),r.useImperativeHandle(v,function(){return{forceAlign:an,getElement:function(){return qe.current}}});var Pn=Object(U.a)(Object(U.a)({},We),{},{zIndex:l,opacity:Kt==="motion"||Kt==="stable"||!E?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},o),yn=!0;(T==null?void 0:T.points)&&(Kt==="align"||Kt==="stable")&&(yn=!1);var Cn=t;return r.Children.count(t)>1&&(Cn=r.createElement("div",{className:"".concat(u,"-content")},t)),r.createElement(pn,Object(R.a)({visible:E,ref:qe,leavedClassName:"".concat(u,"-hidden")},$t,{onAppearPrepare:bn,onEnterPrepare:bn,removeOnLeave:C,forceRender:b}),function(Yt,mn){var on=Yt.className,en=Yt.style,kn=ce()(u,e,rt,on);return r.createElement(Wn.a,{target:Bt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:yn,align:T,onAlign:vn},r.createElement("div",{ref:mn,className:kn,onMouseEnter:He,onMouseLeave:tt,onMouseDownCapture:Je,onTouchStartCapture:at,style:Object(U.a)(Object(U.a)({},en),Pn)},Cn))})});Jn.displayName="PopupInner";var Ta=Jn,jn=r.forwardRef(function(i,v){var E=i.prefixCls,u=i.visible,e=i.zIndex,o=i.children,t=i.mobile;t=t===void 0?{}:t;var l=t.popupClassName,c=t.popupStyle,C=t.popupMotion,b=C===void 0?{}:C,T=t.popupRender,W=r.useRef();r.useImperativeHandle(v,function(){return{forceAlign:function(){},getElement:function(){return W.current}}});var me=Object(U.a)({zIndex:e},c),de=o;return r.Children.count(o)>1&&(de=r.createElement("div",{className:"".concat(E,"-content")},o)),T&&(de=T(de)),r.createElement(pn,Object(R.a)({visible:u,ref:W,removeOnLeave:!0},b),function(Oe,He){var tt=Oe.className,Je=Oe.style,at=ce()(E,l,tt);return r.createElement("div",{ref:He,className:at,style:Object(U.a)(Object(U.a)({},Je),me)},de)})});jn.displayName="MobilePopupInner";var Ha=jn,Sa=["visible","mobile"],oa=r.forwardRef(function(i,v){var E=i.visible,u=i.mobile,e=Object(je.a)(i,Sa),o=Object(r.useState)(E),t=Object(j.a)(o,2),l=t[0],c=t[1],C=Object(r.useState)(!1),b=Object(j.a)(C,2),T=b[0],W=b[1],me=Object(U.a)(Object(U.a)({},e),{},{visible:l});Object(r.useEffect)(function(){c(E),E&&u&&W(xe())},[E,u]);var de=T?r.createElement(Ha,Object(R.a)({},me,{mobile:u,ref:v})):r.createElement(Ta,Object(R.a)({},me,{ref:v}));return r.createElement("div",null,r.createElement(Xn,me),de)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(i){return i?i.ownerDocument:window.document}var Pa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(i){var v=function(E){Object(O.a)(e,E);var u=Object(d.a)(e);function e(o){var t;Object(J.a)(this,e),t=u.call(this,o),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var C=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,C,C?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var C;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(zt.a)((C=t.popupRef.current)===null||C===void 0?void 0:C.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var C;if(t.preClickTime&&t.preTouchTime?C=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?C=t.preClickTime:t.preTouchTime&&(C=t.preTouchTime),Math.abs(C-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var b=!t.state.popupVisible;(t.isClickToHide()&&!b||b&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var C=c.target,b=t.getRootDomNode(),T=t.getPopupDomNode();(!Object(zt.a)(b,C)||t.isContextMenuOnly())&&!Object(zt.a)(T,C)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var C=Object(un.a)(t.triggerRef.current);if(C)return C}catch(b){}return At.a.findDOMNode(Object(g.a)(t))},t.getPopupClassNameFromAlign=function(c){var C=[],b=t.props,T=b.popupPlacement,W=b.builtinPlacements,me=b.prefixCls,de=b.alignPoint,Oe=b.getPopupClassNameFromAlign;return T&&W&&C.push(Re(W,me,c,de)),Oe&&C.push(Oe(c)),C.join(" ")},t.getComponent=function(){var c=t.props,C=c.prefixCls,b=c.destroyPopupOnHide,T=c.popupClassName,W=c.onPopupAlign,me=c.popupMotion,de=c.popupAnimation,Oe=c.popupTransitionName,He=c.popupStyle,tt=c.mask,Je=c.maskAnimation,at=c.maskTransitionName,nt=c.maskMotion,qe=c.zIndex,et=c.popup,vt=c.stretch,rt=c.alignPoint,Xt=c.mobile,_t=c.forceRender,ze=t.state,We=ze.popupVisible,ut=ze.point,dt=t.getPopupAlign(),De={};return t.isMouseEnterToShow()&&(De.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(De.onMouseLeave=t.onPopupMouseLeave),De.onMouseDown=t.onPopupMouseDown,De.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(R.a)({prefixCls:C,destroyPopupOnHide:b,visible:We,point:rt&&ut,className:T,align:dt,onAlign:W,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},De,{stretch:vt,getRootDomNode:t.getRootDomNode,style:He,mask:tt,zIndex:qe,transitionName:Oe,maskAnimation:Je,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:me,mobile:Xt,forceRender:_t}),typeof et=="function"?et():et)},t.attachParent=function(c){jt.a.cancel(t.attachId);var C=t.props,b=C.getPopupContainer,T=C.getDocument,W=t.getRootDomNode(),me;b?(W||b.length===0)&&(me=b(W)):me=T(t.getRootDomNode()).body,me?me.appendChild(c):t.attachId=Object(jt.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,C=c(t.getRootDomNode()).createElement("div");return C.style.position="absolute",C.style.top="0",C.style.left="0",C.style.width="100%",t.attachParent(C),C},t.setPoint=function(c){var C=t.props.alignPoint;if(!C||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var l;return"popupVisible"in o?l=!!o.popupVisible:l=!!o.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},Pa.forEach(function(c){t["fire".concat(c)]=function(C){t.fireEvents(c,C)}}),t}return Object($.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(be.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(be.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(be.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(be.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,l=t.popupPlacement,c=t.popupAlign,C=t.builtinPlacements;return l&&C?Ae(C,l,c):c}},{key:"setPopupVisible",value:function(t,l){var c=this.props.alignPoint,C=this.state.popupVisible;this.clearDelayTimer(),C!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:C}),this.props.onPopupVisibleChange(t)),c&&l&&t&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(t,l,c){var C=this,b=l*1e3;if(this.clearDelayTimer(),b){var T=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){C.setPopupVisible(t,T),C.clearDelayTimer()},b)}else this.setPopupVisible(t,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var l=this.props.children.props,c=this.props;return l[t]&&c[t]?this["fire".concat(t)]:l[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,l){var c=this.props.children.props[t];c&&c(l);var C=this.props[t];C&&C(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,l=this.props,c=l.children,C=l.forceRender,b=l.alignPoint,T=l.className,W=l.autoDestroy,me=r.Children.only(c),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,b&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Oe=ce()(me&&me.props&&me.props.className,T);Oe&&(de.className=Oe);var He=Object(U.a)({},de);Object(N.c)(me)&&(He.ref=Object(N.a)(this.triggerRef,me.ref));var tt=r.cloneElement(me,He),Je;return(t||this.popupRef.current||C)&&(Je=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&W&&(Je=null),r.createElement(ra.Provider,{value:this.triggerContextValue},tt,Je)}}],[{key:"getDerivedStateFromProps",value:function(t,l){var c=t.popupVisible,C={};return c!==void 0&&l.popupVisible!==c&&(C.popupVisible=c,C.prevPopupVisible=l.popupVisible),C}}]),e}(r.Component);return v.contextType=ra,v.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},v}var Ja=Ya(ge.a),Sn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},Aa={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},sa=ia,hn=0,Mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rn=function(v,E,u){var e=re(E),o=v.getState();v.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},o.defaultActiveFirst),{},Object(w.a)({},e,u))})},la=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onDestroy=function(b){e.props.onDestroy(b)},e.onKeyDown=function(b){var T=b.keyCode,W=e.menuInstance,me=e.props.store,de=e.getVisible();if(T===x.a.ENTER)return e.onTitleClick(b),Rn(me,e.props.eventKey,!0),!0;if(T===x.a.RIGHT)return de?W.onKeyDown(b):(e.triggerOpenChange(!0),Rn(me,e.props.eventKey,!0)),!0;if(T===x.a.LEFT){var Oe;if(de)Oe=W.onKeyDown(b);else return;return Oe||(e.triggerOpenChange(!1),Oe=!0),Oe}return de&&(T===x.a.UP||T===x.a.DOWN)?W.onKeyDown(b):void 0},e.onOpenChange=function(b){e.props.onOpenChange(b)},e.onPopupVisibleChange=function(b){e.triggerOpenChange(b,b?"mouseenter":"mouseleave")},e.onMouseEnter=function(b){var T=e.props,W=T.eventKey,me=T.onMouseEnter,de=T.store;Rn(de,e.props.eventKey,!1),me({key:W,domEvent:b})},e.onMouseLeave=function(b){var T=e.props,W=T.parentMenu,me=T.eventKey,de=T.onMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,domEvent:b})},e.onTitleMouseEnter=function(b){var T=e.props,W=T.eventKey,me=T.onItemHover,de=T.onTitleMouseEnter;me({key:W,hover:!0}),de({key:W,domEvent:b})},e.onTitleMouseLeave=function(b){var T=e.props,W=T.parentMenu,me=T.eventKey,de=T.onItemHover,Oe=T.onTitleMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,hover:!1}),Oe({key:me,domEvent:b})},e.onTitleClick=function(b){var T=Object(g.a)(e),W=T.props;if(W.onTitleClick({key:W.eventKey,domEvent:b}),W.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Rn(W.store,e.props.eventKey,!1)},e.onSubMenuClick=function(b){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(b))},e.onSelect=function(b){e.props.onSelect(b)},e.onDeselect=function(b){e.props.onDeselect(b)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(b){e.menuInstance=b},e.addKeyPath=function(b){return Object(U.a)(Object(U.a)({},b),{},{keyPath:(b.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(b,T){var W=e.props.eventKey,me=function(){e.onOpenChange({key:W,item:Object(g.a)(e),trigger:T,open:b})};T==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){me()},0):me()},e.isChildrenSelected=function(){var b={find:!1};return Pe(e.props.children,e.props.selectedKeys,b),b.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var b=It.findDOMNode(e.menuInstance);if(b.offsetWidth>=e.subMenuTitle.offsetWidth)return;b.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(b){e.subMenuTitle=b},e.getBaseProps=function(){var b=Object(g.a)(e),T=b.props,W=e.getMode();return{mode:W==="horizontal"?"vertical":W,visible:e.getVisible(),level:T.level+1,inlineIndent:T.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:T.selectedKeys,eventKey:"".concat(T.eventKey,"-menu-"),openKeys:T.openKeys,motion:T.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:T.subMenuOpenDelay,parentMenu:Object(g.a)(e),subMenuCloseDelay:T.subMenuCloseDelay,forceSubMenuRender:T.forceSubMenuRender,triggerSubMenuAction:T.triggerSubMenuAction,builtinPlacements:T.builtinPlacements,defaultActiveFirst:T.store.getState().defaultActiveFirst[re(T.eventKey)],multiple:T.multiple,prefixCls:T.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:T.itemIcon,expandIcon:T.expandIcon,direction:T.direction}},e.getMotion=function(b,T){var W=Object(g.a)(e),me=W.haveRendered,de=e.props,Oe=de.motion,He=de.rootPrefixCls,tt=Object(U.a)(Object(U.a)({},Oe),{},{leavedClassName:"".concat(He,"-hidden"),removeOnLeave:!1,motionAppear:me||!T||b!=="inline"});return tt};var o=u.store,t=u.eventKey,l=o.getState(),c=l.defaultActiveFirst;e.isRootMenu=!1;var C=!1;return c&&(C=c[t]),Rn(o,t,C),e.state={mode:u.mode,isOpen:u.isOpen},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,l=o.parentMenu,c=o.manualRef,C=o.isOpen,b=function(){e.setState({mode:t,isOpen:C})},T=C!==this.state.isOpen,W=t!==this.state.mode;if((W||T)&&(jt.a.cancel(this.updateStateRaf),W?this.updateStateRaf=Object(jt.a)(b):b()),c&&c(this),t!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!C)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return r.createElement(ea,Object(R.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,l=o.visible,c=o.forceSubMenuRender,C=o.direction,b=this.getMotion(t,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||c,!this.haveOpened)return r.createElement("div",null);var T=ce()("".concat(o.prefixCls,"-sub"),Object(w.a)({},"".concat(o.prefixCls,"-rtl"),C==="rtl"));return this.isInlineMode()?r.createElement(pn,Object(R.a)({visible:o.visible,forceRender:c},b),function(W){var me=W.className,de=W.style,Oe=ce()(T,me);return e.renderPopupMenu(Oe,de)}):this.renderPopupMenu(T)}},{key:"render",value:function(){var e,o,t,l=Object(U.a)({},this.props),c=this.getVisible(),C=this.getPrefixCls(),b=this.isInlineMode(),T=this.getMode(),W=ce()(C,"".concat(C,"-").concat(T),(e={},Object(w.a)(e,l.className,!!l.className),Object(w.a)(e,this.getOpenClassName(),c),Object(w.a)(e,this.getActiveClassName(),l.active||c&&!b),Object(w.a)(e,this.getDisabledClassName(),l.disabled),Object(w.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(hn+=1,this.internalMenuId="$__$".concat(hn,"$Menu")));var me={},de={},Oe={};l.disabled||(me={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Oe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var He={},tt=l.direction,Je=tt==="rtl";b&&(Je?He.paddingRight=l.inlineIndent*l.level:He.paddingLeft=l.inlineIndent*l.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;T!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=r.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var qe=r.createElement("div",Object(R.a)({ref:this.saveSubMenuTitle,style:He,className:"".concat(C,"-title"),role:"button"},Oe,de,{"aria-expanded":c},at,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,nt||r.createElement("i",{className:"".concat(C,"-arrow")})),et=this.renderChildren(),vt=((o=l.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Bt){return Bt.parentNode},rt=Mn[T],Xt=l.popupOffset?{offset:l.popupOffset}:{},_t=ce()((t={},Object(w.a)(t,l.popupClassName,l.popupClassName&&!b),Object(w.a)(t,"".concat(C,"-rtl"),Je),t)),ze=l.disabled,We=l.triggerSubMenuAction,ut=l.subMenuOpenDelay,dt=l.forceSubMenuRender,De=l.subMenuCloseDelay,bt=l.builtinPlacements;ke.forEach(function(Bt){return delete l[Bt]}),delete l.onClick;var Kt=Je?Object(U.a)(Object(U.a)({},Aa),bt):Object(U.a)(Object(U.a)({},ia),bt);delete l.direction;var gt=this.getBaseProps(),Tt=b?null:this.getMotion(gt.mode,gt.visible);return r.createElement("li",Object(R.a)({},l,me,{className:W,role:"menuitem"}),r.createElement(Ja,{prefixCls:C,popupClassName:ce()("".concat(C,"-popup"),_t),getPopupContainer:vt,builtinPlacements:Kt,popupPlacement:rt,popupVisible:b?!1:c,popupAlign:Xt,popup:b?null:et,action:ze||b?[]:[We],mouseEnterDelay:ut,mouseLeaveDelay:De,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:dt,popupMotion:Tt},qe),b?et:null)}}]),E}(r.Component);la.defaultProps={onMouseEnter:S,onMouseLeave:S,onTitleMouseEnter:S,onTitleMouseLeave:S,onTitleClick:S,manualRef:S,mode:"vertical",title:""};var zn=Object(I.b)(function(i,v){var E=i.openKeys,u=i.activeKey,e=i.selectedKeys,o=v.eventKey,t=v.subMenuKey;return{isOpen:E.indexOf(o)>-1,active:u[t]===o,selectedKeys:e}})(la);zn.isSubMenu=!0;var Fn=zn,Da="menuitem-overflowed",Qa=.5,Na=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.resizeObserver=null,u.mutationObserver=null,u.originalTotalWidth=0,u.overflowedItems=[],u.menuItemSizes=[],u.cancelFrameId=null,u.state={lastVisibleIndex:void 0},u.childRef=r.createRef(),u.getMenuItemNodes=function(){var e=u.props.prefixCls,o=u.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},u.getOverflowedSubMenuItem=function(e,o,t){var l=u.props,c=l.overflowedIndicator,C=l.level,b=l.mode,T=l.prefixCls,W=l.theme;if(C!==1||b!=="horizontal")return null;var me=u.props.children[0],de=me.props,Oe=de.children,He=de.title,tt=de.style,Je=Object(je.a)(de,["children","title","style"]),at=Object(U.a)({},tt),nt="".concat(e,"-overflowed-indicator"),qe="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?at=Object(U.a)(Object(U.a)({},at),{},{display:"none"}):t&&(at=Object(U.a)(Object(U.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),qe="".concat(qe,"-placeholder"));var et=W?"".concat(T,"-").concat(W):"",vt={};return ke.forEach(function(rt){Je[rt]!==void 0&&(vt[rt]=Je[rt])}),r.createElement(Fn,Object(R.a)({title:c,className:"".concat(T,"-overflowed-submenu"),popupClassName:et},vt,{key:nt,eventKey:qe,disabled:!1,style:at}),o)},u.setChildrenWidthAndResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Ne(t,"display","inline-block");var l=u.getMenuItemNodes(),c=l.filter(function(C){return C.className.split(" ").indexOf(Da)>=0});c.forEach(function(C){Ne(C,"display","inline-block")}),u.menuItemSizes=l.map(function(C){return Ie(C,!0)}),c.forEach(function(C){Ne(C,"display","none")}),u.overflowedIndicatorWidth=Ie(e.children[e.children.length-1],!0),u.originalTotalWidth=u.menuItemSizes.reduce(function(C,b){return C+b},0),u.handleResize(),Ne(t,"display","none")},u.handleResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=Ie(e);u.overflowedItems=[];var t=0,l;u.originalTotalWidth>o+Qa&&(l=-1,u.menuItemSizes.forEach(function(c){t+=c,t+u.overflowedIndicatorWidth<=o&&(l+=1)})),u.setState({lastVisibleIndex:l})},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Nt.default(function(t){t.forEach(function(){var l=e.cancelFrameId;cancelAnimationFrame(l),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(l,c,C){var b=c;if(o.props.mode==="horizontal"){var T=o.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(C>t&&(b=r.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),C===t+1&&(o.overflowedItems=e.slice(t+1).map(function(me){return r.cloneElement(me,{key:me.props.eventKey,mode:"vertical-left"})}),T=o.getOverflowedSubMenuItem(c.props.eventKey,o.overflowedItems)));var W=[].concat(Object(k.a)(l),[T,b]);return C===e.length-1&&W.push(o.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),W}return[].concat(Object(k.a)(l),[b])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,l=e.overflowedIndicator,c=e.mode,C=e.level,b=e.tag,T=e.children,W=e.theme,me=Object(je.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=b;return r.createElement(de,Object(R.a)({ref:this.childRef},me),this.renderChildren(T))}}]),E}(r.Component);Na.defaultProps={tag:"div",className:""};var ua=Na;function Zn(i){return i.length?i.every(function(v){return!!v.props.disabled}):!0}function wn(i,v,E){var u=i.getState();i.setState({activeKey:Object(U.a)(Object(U.a)({},u.activeKey),{},Object(w.a)({},v,E))})}function Dn(i){return i.eventKey||"0-menu-"}function qn(i,v){var E=v,u=i.children,e=i.eventKey;if(E){var o;if(Ee(u,function(t,l){t&&t.props&&!t.props.disabled&&E===H(t,e,l)&&(o=!0)}),o)return E}return E=null,i.defaultActiveFirst&&Ee(u,function(t,l){!E&&t&&!t.props.disabled&&(E=H(t,e,l))}),E}function wa(i){if(!i)return;var v=this.instanceArray.indexOf(i);v!==-1?this.instanceArray[v]=i:this.instanceArray.push(i)}var La=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;return Object(J.a)(this,E),e=v.call(this,u),e.onKeyDown=function(o,t){var l=o.keyCode,c;if(e.getFlatInstanceArray().forEach(function(b){b&&b.props.active&&b.onKeyDown&&(c=b.onKeyDown(o))}),c)return 1;var C=null;return(l===x.a.UP||l===x.a.DOWN)&&(C=e.step(l===x.a.UP?-1:1)),C?(o.preventDefault(),wn(e.props.store,Dn(e.props),C.props.eventKey),typeof t=="function"&&t(C),1):void 0},e.onItemHover=function(o){var t=o.key,l=o.hover;wn(e.props.store,Dn(e.props),l?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),l=e.props.store.getState().activeKey[Dn(e.props)],c=t.length;if(!c)return null;o<0&&(t=t.concat().reverse());var C=-1;if(t.every(function(me,de){return me&&me.props.eventKey===l?(C=de,!1):!0}),!e.props.defaultActiveFirst&&C!==-1&&Zn(t.slice(C,c-1)))return;var b=(C+1)%c,T=b;do{var W=t[T];if(!W||W.props.disabled)T=(T+1)%c;else return W}while(T!==b);return null},e.renderCommonMenuItem=function(o,t,l){var c=e.props.store.getState(),C=Object(g.a)(e),b=C.props,T=H(o,b.eventKey,t),W=o.props;if(!W||typeof o.type=="string")return o;var me=T===c.activeKey,de=Object(U.a)(Object(U.a)({mode:W.mode||b.mode,level:b.level,inlineIndent:b.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:b.prefixCls,index:t,parentMenu:b.parentMenu,manualRef:W.disabled?void 0:Object(Q.a)(o.ref,wa.bind(Object(g.a)(e))),eventKey:T,active:!W.disabled&&me,multiple:b.multiple,onClick:function(He){(W.onClick||S)(He),e.onClick(He)},onItemHover:e.onItemHover,motion:b.motion,subMenuOpenDelay:b.subMenuOpenDelay,subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:b.builtinPlacements,itemIcon:W.itemIcon||e.props.itemIcon,expandIcon:W.expandIcon||e.props.expandIcon},l),{},{direction:b.direction});return(b.mode==="inline"||Le())&&(de.triggerSubMenuAction="click"),r.cloneElement(o,Object(U.a)(Object(U.a)({},de),{},{key:T||t}))},e.renderMenuItem=function(o,t,l){if(!o)return null;var c=e.props.store.getState(),C={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:l};return e.renderCommonMenuItem(o,t,C)},u.store.setState({activeKey:Object(U.a)(Object(U.a)({},u.store.getState().activeKey),{},Object(w.a)({},u.eventKey,qn(u,u.activeKey)))}),e.instanceArray=[],e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!te()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[Dn(o)],l=qn(o,t);if(l!==t)wn(o.store,Dn(o),l);else if("activeKey"in e){var c=qn(e,e.activeKey);l!==c&&wn(o.store,Dn(o),l)}}},{key:"render",value:function(){var e=this,o=Object(R.a)({},this.props);this.instanceArray=[];var t=ce()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),l={className:t,role:o.role||"menu"};o.id&&(l.id=o.id),o.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var c=o.prefixCls,C=o.eventKey,b=o.visible,T=o.level,W=o.mode,me=o.overflowedIndicator,de=o.theme;return ke.forEach(function(Oe){return delete o[Oe]}),delete o.onClick,r.createElement(ua,Object(R.a)({},o,{prefixCls:c,mode:W,tag:"ul",level:T,theme:de,visible:b,overflowedIndicator:me},l),Object(se.a)(o.children).map(function(Oe,He){return e.renderMenuItem(Oe,He,C||"0-menu-")}))}}]),E}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:S};var Ua=Object(I.b)()(La),ea=Ua,Ln=a("Kwbf");function ca(i,v,E){var u=i.prefixCls,e=i.motion,o=i.defaultMotions,t=o===void 0?{}:o,l=i.openAnimation,c=i.openTransitionName,C=v.switchingModeFromInline;if(e)return e;if(Object(P.a)(l)==="object"&&l)Object(Ln.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(u,"-open-").concat(l)};if(c)return{motionName:c};var b=t[E];return b||(C?null:t.other)}var ka=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onSelect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState(),T=b.selectedKeys,W=l.key;C.multiple?T=T.concat([W]):T=[W],"selectedKeys"in C||e.store.setState({selectedKeys:T}),C.onSelect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:T}))}},e.onClick=function(l){var c=e.getRealMenuMode(),C=Object(g.a)(e),b=C.store,T=C.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(b.setState({openKeys:[]}),T([])),e.props.onClick(l)},e.onKeyDown=function(l,c){e.innerMenu.getWrappedInstance().onKeyDown(l,c)},e.onOpenChange=function(l){var c=Object(g.a)(e),C=c.props,b=e.store.getState().openKeys.concat(),T=!1,W=function(de){var Oe=!1;if(de.open)Oe=b.indexOf(de.key)===-1,Oe&&b.push(de.key);else{var He=b.indexOf(de.key);Oe=He!==-1,Oe&&b.splice(He,1)}T=T||Oe};Array.isArray(l)?l.forEach(W):W(l),T&&("openKeys"in e.props||e.store.setState({openKeys:b}),C.onOpenChange(b))},e.onDeselect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState().selectedKeys.concat(),T=l.key,W=b.indexOf(T);W!==-1&&b.splice(W,1),"selectedKeys"in C||e.store.setState({selectedKeys:b}),C.onDeselect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:b}))}},e.onMouseEnter=function(l){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(l)},e.onTransitionEnd=function(l){var c=l.propertyName==="width"&&l.target===l.currentTarget,C=l.target.className,b=Object.prototype.toString.call(C)==="[object SVGAnimatedString]"?C.animVal:C,T=l.propertyName==="font-size"&&b.indexOf("anticon")>=0;(c||T)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(l){e.innerMenu=l},e.isRootMenu=!0;var o=u.defaultSelectedKeys,t=u.defaultOpenKeys;return"selectedKeys"in u&&(o=u.selectedKeys||[]),"openKeys"in u&&(t=u.openKeys||[]),e.store=Object(I.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":qn(u,u.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:u,inlineOpenKeys:[],store:e.store},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,l=o.inlineCollapsed,c=o.onOpenChange;(!e.inlineCollapsed&&l||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,l=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");l?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(U.a)({},Object(F.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(U.a)(Object(U.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(I.a,{store:this.store},r.createElement(ea,Object(R.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,l=o.store,c=l.getState(),C={},b={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(b.switchingModeFromInline=!0),"openKeys"in e?C.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(b.switchingModeFromInline=!0,b.inlineOpenKeys=c.openKeys,C.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(C.openKeys=o.inlineOpenKeys,b.inlineOpenKeys=[])),Object.keys(C).length&&l.setState(C),b}}]),E}(r.Component);ka.defaultProps={selectable:!0,onClick:S,onSelect:S,onOpenChange:S,onDeselect:S,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Un=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.onKeyDown=function(e){var o=e.keyCode;return o===x.a.ENTER?(u.onClick(e),!0):void 0},u.onMouseLeave=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseLeave;l({key:t,hover:!1}),c({key:t,domEvent:e})},u.onMouseEnter=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseEnter;l({key:t,hover:!0}),c({key:t,domEvent:e})},u.onClick=function(e){var o=u.props,t=o.eventKey,l=o.multiple,c=o.onClick,C=o.onSelect,b=o.onDeselect,T=o.isSelected,W={key:t,keyPath:[t],item:Object(g.a)(u),domEvent:e};c(W),l?T?b(W):C(W):T||C(W)},u.saveNode=function(e){u.node=e},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,o=Object(U.a)({},this.props),t=ce()(this.getPrefixCls(),o.className,(e={},Object(w.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(w.a)(e,this.getSelectedClassName(),o.isSelected),Object(w.a)(e,this.getDisabledClassName(),o.disabled),e)),l=Object(U.a)(Object(U.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?l=Object(U.a)(Object(U.a)({},l),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(l.role="none");var c={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},C=Object(U.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?C.paddingRight=o.inlineIndent*o.level:C.paddingLeft=o.inlineIndent*o.level),ke.forEach(function(T){return delete o[T]}),delete o.direction;var b=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(b=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(R.a)({},Object(F.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,c,{style:C,ref:this.saveNode}),o.children,b)}}]),E}(r.Component);Un.isMenuItem=!0,Un.defaultProps={onSelect:S,onMouseEnter:S,onMouseLeave:S,manualRef:S};var da=Object(I.b)(function(i,v){var E=i.activeKey,u=i.selectedKeys,e=v.eventKey,o=v.subMenuKey;return{active:E[o]===e,isSelected:Array.isArray(u)?u.indexOf(e)!==-1:u===e}})(Un),fa=da,ma=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.renderInnerMenuItem=function(e){var o=u.props,t=o.renderMenuItem,l=o.index;return t(e,l,u.props.subMenuKey)},u}return Object($.a)(E,[{key:"render",value:function(){var e=Object(R.a)({},this.props),o=e.className,t=o===void 0?"":o,l=e.rootPrefixCls,c="".concat(l,"-item-group-title"),C="".concat(l,"-item-group-list"),b=e.title,T=e.children;return ke.forEach(function(W){return delete e[W]}),delete e.direction,r.createElement("li",Object(R.a)({},e,{onClick:function(me){return me.stopPropagation()},className:"".concat(t," ").concat(l,"-item-group")}),r.createElement("div",{className:c,title:typeof b=="string"?b:void 0},b),r.createElement("ul",{className:C},r.Children.map(T,this.renderInnerMenuItem)))}}]),E}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(v){var E=v.className,u=v.rootPrefixCls,e=v.style;return r.createElement("li",{className:"".concat(E," ").concat(u,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,ha=a("eDIo");function eo(i,v){var E=i.prefixCls,u=i.editable,e=i.locale,o=i.style;return!u||u.showAdd===!1?null:r.createElement("button",{ref:v,type:"button",className:"".concat(E,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(l){u.onEdit("add",{event:l})}},u.addIcon||"+")}var ta=r.forwardRef(eo);function to(i,v){var E=i.prefixCls,u=i.id,e=i.tabs,o=i.locale,t=i.mobile,l=i.moreIcon,c=l===void 0?"More":l,C=i.moreTransitionName,b=i.style,T=i.className,W=i.editable,me=i.tabBarGutter,de=i.rtl,Oe=i.onTabClick,He=Object(r.useState)(!1),tt=Object(j.a)(He,2),Je=tt[0],at=tt[1],nt=Object(r.useState)(null),qe=Object(j.a)(nt,2),et=qe[0],vt=qe[1],rt="".concat(u,"-more-popup"),Xt="".concat(E,"-dropdown"),_t=et!==null?"".concat(rt,"-").concat(et):null,ze=o==null?void 0:o.dropdownAriaLabel,We=r.createElement(Ka,{onClick:function(Tt){var Bt=Tt.key,an=Tt.domEvent;Oe(Bt,an),at(!1)},id:rt,tabIndex:-1,role:"listbox","aria-activedescendant":_t,selectedKeys:[et],"aria-label":ze!==void 0?ze:"expanded dropdown"},e.map(function(gt){return r.createElement(fa,{key:gt.key,id:"".concat(rt,"-").concat(gt.key),role:"option","aria-controls":u&&"".concat(u,"-panel-").concat(gt.key),disabled:gt.disabled},gt.tab)}));function ut(gt){for(var Tt=e.filter(function(bn){return!bn.disabled}),Bt=Tt.findIndex(function(bn){return bn.key===et})||0,an=Tt.length,vn=0;vnbt?(dt=We,rt.current="x"):(dt=ut,rt.current="y");var Kt=Date.now();Kt-et.current>100&&(vt.current=!1),(v(-dt,-dt)||vt.current)&&(ze.preventDefault(),vt.current=!0),et.current=Kt}var _t=Object(r.useRef)(null);_t.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:qe,onWheel:Xt},r.useEffect(function(){function ze(De){_t.current.onTouchStart(De)}function We(De){_t.current.onTouchMove(De)}function ut(De){_t.current.onTouchEnd(De)}function dt(De){_t.current.onWheel(De)}return document.addEventListener("touchmove",We,{passive:!1}),document.addEventListener("touchend",ut,{passive:!1}),i.current.addEventListener("touchstart",ze,{passive:!1}),i.current.addEventListener("wheel",dt),function(){document.removeEventListener("touchmove",We),document.removeEventListener("touchend",ut)}},[])}function ba(){var i=Object(r.useRef)(new Map);function v(u){return i.current.has(u)||i.current.set(u,r.createRef()),i.current.get(u)}function E(u){i.current.delete(u)}return[v,E]}function za(i,v){var E=r.useRef(i),u=r.useState({}),e=Object(j.a)(u,2),o=e[1];function t(l){var c=typeof l=="function"?l(E.current):l;c!==E.current&&v(c,E.current),E.current=c,o({})}return[E.current,t]}var Fa=function(v){var E=v.position,u=v.prefixCls,e=v.extra;if(!e)return null;var o,t=e;return E==="right"&&(o=t.right||!t.left&&t||null),E==="left"&&(o=t.left||null),o?r.createElement("div",{className:"".concat(u,"-extra-content")},o):null};function zo(i,v){var E,u=r.useContext(va),e=u.prefixCls,o=u.tabs,t=i.className,l=i.style,c=i.id,C=i.animated,b=i.activeKey,T=i.rtl,W=i.extra,me=i.editable,de=i.locale,Oe=i.tabPosition,He=i.tabBarGutter,tt=i.children,Je=i.onTabClick,at=i.onTabScroll,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useRef)(),vt=Object(r.useRef)(),rt=ba(),Xt=Object(j.a)(rt,2),_t=Xt[0],ze=Xt[1],We=Oe==="top"||Oe==="bottom",ut=za(0,function(xt,ct){We&&at&&at({direction:xt>ct?"left":"right"})}),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=za(0,function(xt,ct){!We&&at&&at({direction:xt>ct?"top":"bottom"})}),gt=Object(j.a)(Kt,2),Tt=gt[0],Bt=gt[1],an=Object(r.useState)(0),vn=Object(j.a)(an,2),$t=vn[0],bn=vn[1],Pn=Object(r.useState)(0),yn=Object(j.a)(Pn,2),Cn=yn[0],Yt=yn[1],mn=Object(r.useState)(0),on=Object(j.a)(mn,2),en=on[0],kn=on[1],In=Object(r.useState)(0),Hn=Object(j.a)(In,2),kt=Hn[0],Nn=Hn[1],Vn=Object(r.useState)(null),Wt=Object(j.a)(Vn,2),Ot=Wt[0],rn=Wt[1],Xo=Object(r.useState)(null),bo=Object(j.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(j.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(j.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=_(new Map),yo=Object(j.a)(er,2),tr=yo[0],nr=yo[1],Ba=fe(o,tr,$t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;We?T?(ga=0,Ea=Math.max(0,$t-Ot)):(ga=Math.min(0,Ot-$t),Ea=0):(ga=Math.min(0,na-Cn),Ea=0);function ao(xt){return xtEa?[Ea,!1]:[xt,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(j.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(nt,function(xt,ct){var tn=!1;function On(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(j.a)(xa,2),co=aa[0],fo=aa[1];return tn=fo,co})}if(We){if(Ot>=$t)return tn;On(bt,xt)}else{if(na>=Cn)return tn;On(Bt,ct)}return io(),ro(),tn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b,ct=Ba.get(xt);if(!ct)return;if(We){var tn=De;T?ct.rightDe+Ot&&(tn=ct.right+ct.width-Ot):ct.left<-De?tn=-ct.left:ct.left+ct.width>-De+Ot&&(tn=-(ct.left+ct.width-Ot)),Bt(0),bt(ao(tn)[0])}else{var On=Tt;ct.top<-Tt?On=-ct.top:ct.top+ct.height>-Tt+na&&(On=-(ct.top+ct.height-na)),bt(0),Bt(ao(On)[0])}}var or=he(Ba,{width:Ot,height:na,left:De,top:Tt},{width:en,height:kt},{width:Yo,height:Zo},Object(U.a)(Object(U.a)({},i),{},{tabs:o})),Mo=Object(j.a)(or,2),rr=Mo[0],ir=Mo[1],sr=o.map(function(xt){var ct=xt.key;return r.createElement(V,{id:c,prefixCls:e,key:ct,rtl:T,tab:xt,closable:xt.closable,editable:me,active:ct===b,tabPosition:Oe,tabBarGutter:He,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:_t(ct),onClick:function(On){Je(ct,On)},onRemove:function(){ze(ct)},onFocus:function(){jo(ct),ro(),T||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=Z(function(){var xt,ct,tn,On,Ca,Oa,_a,xa,aa,co=((xt=nt.current)===null||xt===void 0?void 0:xt.offsetWidth)||0,fo=((ct=nt.current)===null||ct===void 0?void 0:ct.offsetHeight)||0,wo=((tn=vt.current)===null||tn===void 0?void 0:tn.offsetWidth)||0,Lo=((On=vt.current)===null||On===void 0?void 0:On.offsetHeight)||0,mr=((Ca=et.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=et.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;rn(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((_a=qe.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-wo,ko=(((xa=qe.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;bn(Uo),Yt(ko);var Io=(aa=et.current)===null||aa===void 0?void 0:aa.className.includes(Co);kn(Uo-(Io?0:mr)),Nn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Wo=hr.key,ja=_t(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),Ro=[].concat(Object(k.a)(lr),Object(k.a)(ur)),cr=Object(r.useState)(),To=Object(j.a)(cr,2),dr=To[0],fr=To[1],Kn=Ba.get(b),So=Object(r.useRef)();function Po(){le.a.cancel(So.current)}Object(r.useEffect)(function(){var xt={};return Kn&&(We?(T?xt.right=Kn.right:xt.left=Kn.left,xt.width=Kn.width):(xt.top=Kn.top,xt.height=Kn.height)),Po(),So.current=le()(function(){fr(xt)}),Po},[Kn,We,T]),Object(r.useEffect)(function(){jo()},[b,Kn,Ba,We]),Object(r.useEffect)(function(){so()},[T,He,b,o.map(function(xt){return xt.key}).join("_")]);var Ao=!!Ro.length,ya="".concat(e,"-nav-wrap"),lo,uo,Do,No;return We?T?(uo=De>0,lo=De+Ot<$t):(lo=De<0,uo=-De+Ot<$t):(Do=Tt<0,No=-Tt+na1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(fe.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Y=fe[0];if(f.isValidElement(Y)&&Object(X.c)(Y)){var he=Y.ref;fe[0]=f.cloneElement(Y,{ref:Object(X.a)(he,this.setChildNode)})}return fe.length===1?fe[0]:fe.map(function(R,J){return!f.isValidElement(R)||"key"in R&&R.key!==null?R:f.cloneElement(R,{key:"".concat(pe,"-").concat(J)})})}}]),ue}(f.Component);Z.displayName="ResizeObserver",ve.a=Z},wCXF:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return At});var w=a("rePB"),j=a("VTBJ"),je=a("KQm4"),U=a("U8pU"),r=a("ODXe"),f=a("q1tI"),ce=a("TSYQ"),se=a.n(ce),K=a("Gytx"),k=a.n(K),X=a("Kwbf"),le=a("t23M"),pe=a("qx4F"),Z=a("6eGT"),_=a("IBYe"),x=a("Ff2n"),ue=a("c+Xe"),V=a("fyJ8"),ae=a("biw7");function fe(N,be,ge,Me,Ae){var Re=ge[N]||{},xe=ge[be]||{},ye,_e;Re.fixed==="left"?ye=Me.left[N]:xe.fixed==="right"&&(_e=Me.right[be]);var Ue=!1,Se=!1,we=!1,$e=!1,Ke=ge[be+1],Qe=ge[N-1];if(Ae==="rtl"){if(ye!==void 0){var Et=Qe&&Qe.fixed==="left";$e=!Et}else if(_e!==void 0){var ot=Ke&&Ke.fixed==="right";we=!ot}}else if(ye!==void 0){var yt=Ke&&Ke.fixed==="left";Ue=!yt}else if(_e!==void 0){var Ye=Qe&&Qe.fixed==="right";Se=!Ye}return{fixLeft:ye,fixRight:_e,lastFixLeft:Ue,firstFixRight:Se,lastFixRight:we,firstFixLeft:$e,isSticky:Me.isSticky}}var Y=a("sR1s");function he(N){var be=N.cells,ge=N.stickyOffsets,Me=N.flattenColumns,Ae=N.rowComponent,Re=N.cellComponent,xe=N.onHeaderRow,ye=N.index,_e=f.useContext(ae.a),Ue=_e.prefixCls,Se=_e.direction,we;xe&&(we=xe(be.map(function(Ke){return Ke.column}),ye));var $e=Object(Y.a)(be.map(function(Ke){return Ke.column}));return f.createElement(Ae,Object.assign({},we),be.map(function(Ke,Qe){var Et=Ke.column,ot=fe(Ke.colStart,Ke.colEnd,Me,ge,Se),yt;return Et&&Et.onHeaderCell&&(yt=Ke.column.onHeaderCell(Et)),f.createElement(V.a,Object.assign({},Ke,{ellipsis:Et.ellipsis,align:Et.align,component:Re,prefixCls:Ue,key:$e[Qe]},ot,{additionalProps:yt,rowType:"header"}))}))}he.displayName="HeaderRow";var R=he;function J(N){var be=[];function ge(xe,ye){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;be[_e]=be[_e]||[];var Ue=ye,Se=xe.filter(Boolean).map(function(we){var $e={key:we.key,className:we.className||"",children:we.title,column:we,colStart:Ue},Ke=1,Qe=we.children;return Qe&&Qe.length>0&&(Ke=ge(Qe,Ue,_e+1).reduce(function(Et,ot){return Et+ot},0),$e.hasSubColumns=!0),"colSpan"in we&&(Ke=we.colSpan),"rowSpan"in we&&($e.rowSpan=we.rowSpan),$e.colSpan=Ke,$e.colEnd=$e.colStart+Ke-1,be[_e].push($e),Ue+=Ke,Ke});return Se}ge(N,0);for(var Me=be.length,Ae=function(ye){be[ye].forEach(function(_e){!("rowSpan"in _e)&&!_e.hasSubColumns&&(_e.rowSpan=Me-ye)})},Re=0;Re=0;ye-=1){var _e=be[ye],Ue=ge&&ge[ye],Se=Ue&&Ue[O.a];(_e||Se||xe)&&(Ae.unshift(f.createElement("col",Object.assign({key:ye,style:{width:_e,minWidth:_e}},Se))),xe=!0)}return f.createElement("colgroup",null,Ae)}var I=d;function F(N,be){return Object(f.useMemo)(function(){for(var ge=[],Me=0;Me1?sn-1:0),xn=1;xn=we&&(Dt=we-$e),xe({scrollLeft:Dt/we*(Se+2)}),Ye.current.x=Ze.pageX},Rt=function(){var Ze=Object(ke.b)(Re.current).top,Lt=Ze+Re.current.offsetHeight,Zt=document.documentElement.scrollTop+window.innerHeight;Lt-Object(pe.a)()<=Zt||Ze>=Zt-ye?yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!0})}):yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!1})})},Ct=function(Ze){yt(function(Lt){return Object(j.a)(Object(j.a)({},Lt),{},{scrollLeft:Ze/Se*we||0})})};return f.useImperativeHandle(ge,function(){return{setScrollLeft:Ct}}),f.useEffect(function(){var ht=Object(Pe.a)(document.body,"mouseup",Jt,!1),Ze=Object(Pe.a)(document.body,"mousemove",Gt,!1);return Rt(),function(){ht.remove(),Ze.remove()}},[$e,lt]),f.useEffect(function(){var ht=Object(Pe.a)(window,"scroll",Rt,!1),Ze=Object(Pe.a)(window,"resize",Rt,!1);return function(){ht.remove(),Ze.remove()}},[]),f.useEffect(function(){ot.isHiddenScrollBar||yt(function(ht){var Ze,Lt;return Object(j.a)(Object(j.a)({},ht),{},{scrollLeft:Re.current.scrollLeft/((Ze=Re.current)===null||Ze===void 0?void 0:Ze.scrollWidth)*((Lt=Re.current)===null||Lt===void 0?void 0:Lt.clientWidth)})})},[ot.isHiddenScrollBar]),Se<=we||!$e||ot.isHiddenScrollBar?null:f.createElement("div",{style:{height:Object(pe.a)(),width:we,bottom:ye},className:"".concat(Ue,"-sticky-scroll")},f.createElement("div",{onMouseDown:ft,ref:Ke,className:se()("".concat(Ue,"-sticky-scroll-bar"),Object(w.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),lt)),style:{width:"".concat($e,"px"),transform:"translate3d(".concat(ot.scrollLeft,"px, 0, 0)")}}))},Ne=f.forwardRef(Ie);function Le(N,be){return f.useMemo(function(){var ge=!!N;return{isSticky:ge,stickyClassName:ge?"".concat(be,"-sticky-header"):"",offsetHeader:Object(U.a)(N)==="object"&&N.offsetHeader||0,offsetScroll:Object(U.a)(N)==="object"&&N.offsetScroll||0}},[N,be])}var Nt=[],It={},At="rc-table-internal-hook",jt=f.memo(function(N){var be=N.children;return be},function(N,be){return k()(N.props,be.props)?N.pingLeft!==be.pingLeft||N.pingRight!==be.pingRight:!1});function zt(N){var be,ge=N.prefixCls,Me=N.className,Ae=N.rowClassName,Re=N.style,xe=N.data,ye=N.rowKey,_e=N.scroll,Ue=N.tableLayout,Se=N.direction,we=N.title,$e=N.footer,Ke=N.summary,Qe=N.id,Et=N.showHeader,ot=N.components,yt=N.emptyText,Ye=N.onRow,wt=N.onHeaderRow,Mt=N.internalHooks,lt=N.transformColumns,Ft=N.internalRefs,Jt=N.sticky,ft=xe||Nt,Gt=!!ft.length,Rt=f.useState(0),Ct=Object(r.a)(Rt,2),ht=Ct[0],Ze=Ct[1];f.useEffect(function(){Ze(Object(pe.a)())});var Lt=f.useMemo(function(){return Object(Y.c)(ot,{})},[ot]),Zt=f.useCallback(function(mt,pt){return Object(Y.b)(Lt,mt)||pt},[Lt]),qt=f.useMemo(function(){return typeof ye=="function"?ye:function(mt){var pt=mt&&mt[ye];return pt}},[ye]),Dt=Object(O.c)(N),Tn=Dt.expandIcon,nn=Dt.expandedRowKeys,Fe=Dt.defaultExpandedRowKeys,Te=Dt.defaultExpandAllRows,Be=Dt.expandedRowRender,Ve=Dt.onExpand,it=Dt.onExpandedRowsChange,Ge=Dt.expandRowByClick,st=Dt.rowExpandable,Ut=Dt.expandIconColumnIndex,St=Dt.expandedRowClassName,_n=Dt.childrenColumnName,Qt=Dt.indentSize,cn=Tn||re,gn=_n||"children",dn=f.useMemo(function(){return Be?"row":N.expandable&&Mt===At&&N.expandable.__PARENT_RENDER_ICON__||ft.some(function(mt){return mt&&Object(U.a)(mt)==="object"&&mt[gn]})?"nest":!1},[!!Be,ft]),An=f.useState(function(){return Fe||(Te?Ee(ft,qt,gn):[])}),Pt=Object(r.a)(An,2),fn=Pt[0],En=Pt[1],sn=f.useMemo(function(){return new Set(nn||fn||[])},[nn,fn]),pn=f.useCallback(function(mt){var pt=qt(mt,ft.indexOf(mt)),Vt,ln=sn.has(pt);ln?(sn.delete(pt),Vt=Object(je.a)(sn)):Vt=[].concat(Object(je.a)(sn),[pt]),En(Vt),Ve&&Ve(!ln,mt),it&&it(Vt)},[qt,sn,ft,Ve,it]),xn=f.useState(0),Xn=Object(r.a)(xn,2),Wn=Xn[0],$n=Xn[1],Ma=Object(ne.b)(Object(j.a)(Object(j.a)(Object(j.a)({},N),Dt),{},{expandable:!!Be,expandedKeys:sn,getRowKey:qt,onTriggerExpand:pn,expandIcon:cn,expandIconColumnIndex:Ut,direction:Se}),Mt===At?lt:null),Ra=Object(r.a)(Ma,2),Gn=Ra[0],Ht=Ra[1],Yn=f.useMemo(function(){return{columns:Gn,flattenColumns:Ht}},[Gn,Ht]),Jn=f.useRef(),Ta=f.useRef(),jn=f.useRef(),Ha=f.useState(!1),Sa=Object(r.a)(Ha,2),oa=Sa[0],Va=Sa[1],Xa=f.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=z(new Map),Pa=Object(r.a)(Ga,2),Ya=Pa[0],Ja=Pa[1],Sn=Object(Y.a)(Ht),ia=Sn.map(function(mt){return Ya.get(mt)}),Aa=f.useMemo(function(){return ia},[ia.join("_")]),sa=m(Aa,Ht.length,Se),hn=_e&&Object(Y.d)(_e.y),Mn=_e&&Object(Y.d)(_e.x),Rn=Mn&&Ht.some(function(mt){var pt=mt.fixed;return pt}),la=f.useRef(),zn=Le(Jt,ge),Fn=zn.isSticky,Da=zn.offsetHeader,Qa=zn.offsetScroll,Na=zn.stickyClassName,ua,Zn,wn;hn&&(Zn={overflowY:"scroll",maxHeight:_e.y}),Mn&&(ua={overflowX:"auto"},hn||(Zn={overflowY:"hidden"}),wn={width:_e.x===!0?"auto":_e.x,minWidth:"100%"});var Dn=f.useCallback(function(mt,pt){Ja(function(Vt){var ln=new Map(Vt);return ln.set(mt,pt),ln})},[]),qn=q(null),wa=Object(r.a)(qn,2),La=wa[0],Ua=wa[1];function ea(mt,pt){if(!pt)return;typeof pt=="function"?pt(mt):pt.scrollLeft!==mt&&(pt.scrollLeft=mt)}var Ln=function(pt){var Vt=pt.currentTarget,ln=pt.scrollLeft,Bn=typeof ln=="number"?ln:Vt.scrollLeft,Wa=Vt||It;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Ta.current),ea(Bn,jn.current),ea(Bn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Vt){var za=Vt.scrollWidth,Fa=Vt.clientWidth;Va(Bn>0),$a(Bn0?[].concat(Object(j.a)(x),Object(j.a)(X(fe).map(function(Y){return Object(je.a)({fixed:ae},Y)}))):[].concat(Object(j.a)(x),[Object(je.a)(Object(je.a)({},ue),{},{fixed:ae})])},[])}function le(_){for(var x=!0,ue=0;ue<_.length;ue+=1){var V=_[ue];if(x&&V.fixed!=="left")x=!1;else if(!x&&V.fixed==="left"){Object(ce.a)(!1,"Index ".concat(ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var ae=!0,fe=_.length-1;fe>=0;fe-=1){var Y=_[fe];if(ae&&Y.fixed!=="right")ae=!1;else if(!ae&&Y.fixed==="right"){Object(ce.a)(!1,"Index ".concat(fe+1," of `columns` missing `fixed='right'` prop."));break}}}function pe(_){return _.map(function(x){var ue=x.fixed,V=Object(U.a)(x,["fixed"]),ae=ue;return ue==="left"?ae="right":ue==="right"&&(ae="left"),Object(je.a)({fixed:ae},V)})}function Z(_,x){var ue=_.prefixCls,V=_.columns,ae=_.children,fe=_.expandable,Y=_.expandedKeys,he=_.getRowKey,R=_.onTriggerExpand,J=_.expandIcon,$=_.rowExpandable,g=_.expandIconColumnIndex,O=_.direction,d=_.expandRowByClick,I=r.useMemo(function(){return V||k(ae)},[V,ae]),F=r.useMemo(function(){if(fe){var te,P=g||0,L=I[P],y=(te={},Object(w.a)(te,K.a,{className:"".concat(ue,"-expand-icon-col")}),Object(w.a)(te,"title",""),Object(w.a)(te,"fixed",L?L.fixed:null),Object(w.a)(te,"className","".concat(ue,"-row-expand-icon-cell")),Object(w.a)(te,"render",function(h,M,G){var oe=he(M,G),D=Y.has(oe),B=$?$(M):!0,ne=J({prefixCls:ue,expanded:D,expandable:B,record:M,onExpand:R});return d?r.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},ne):ne}),te),p=I.slice();return P>=0&&p.splice(P,0,y),p}return I},[fe,I,he,Y,J,O]),Q=r.useMemo(function(){var te=F;return x&&(te=x(te)),te.length||(te=[{render:function(){return null}}]),te},[x,F,O]),Ce=r.useMemo(function(){return O==="rtl"?pe(X(Q)):X(Q)},[Q,O]);return[Q,Ce]}ve.b=Z},"y0+3":function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return X}),a.d(ve,"b",function(){return pe});var w=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},je={cssFloat:1,styleFloat:1,float:1};function U(Z){return Z.nodeType===1?Z.ownerDocument.defaultView.getComputedStyle(Z,null):{}}function r(Z,_,x){if(_=_.toLowerCase(),x==="auto"){if(_==="height")return Z.offsetHeight;if(_==="width")return Z.offsetWidth}return _ in j||(j[_]=w.test(_)),j[_]?parseFloat(x)||0:x}function f(Z,_){var x=arguments.length,ue=U(Z);return _=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,x===1?ue:r(Z,_,ue[_]||Z.style[_])}function ce(Z,_,x){var ue=arguments.length;if(_=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,ue===3)return typeof x=="number"&&w.test(_)&&(x="".concat(x,"px")),Z.style[_]=x,x;for(var V in _)_.hasOwnProperty(V)&&ce(Z,V,_[V]);return U(Z)}function se(Z){return Z===document.body?document.documentElement.clientWidth:Z.offsetWidth}function K(Z){return Z===document.body?window.innerHeight||document.documentElement.clientHeight:Z.offsetHeight}function k(){var Z=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Z,height:_}}function X(){var Z=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:Z,height:_}}function le(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function pe(Z){var _=Z.getBoundingClientRect(),x=document.documentElement;return{left:_.left+(window.pageXOffset||x.scrollLeft)-(x.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||x.scrollTop)-(x.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__TeacherList.47c109a5.async.js b/p__Engineering__Lists__TeacherList.47c109a5.async.js index a454d6e5b9..333a72d95d 100644 --- a/p__Engineering__Lists__TeacherList.47c109a5.async.js +++ b/p__Engineering__Lists__TeacherList.47c109a5.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[135,6,8,10],{"6+eU":function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return I});var L=a("wx14"),M=a("rePB"),Se=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),p=a("Ji7U"),ce=a("LK+K"),se=a("q1tI"),F=a.n(se),k=a("TSYQ"),X=a.n(k),re=function(z){var C,g="".concat(z.rootPrefixCls,"-item"),l=X()(g,"".concat(g,"-").concat(z.page),(C={},Object(M.a)(C,"".concat(g,"-active"),z.active),Object(M.a)(C,z.className,!!z.className),Object(M.a)(C,"".concat(g,"-disabled"),!z.page),C)),v=function(){z.onClick(z.page)},B=function(_e){z.onKeyPress(_e,z.onClick,z.page)};return F.a.createElement("li",{title:z.showTitle?z.page:null,className:l,onClick:v,onKeyPress:B,tabIndex:"0"},z.itemRender(z.page,"page",F.a.createElement("a",{rel:"nofollow"},z.page)))},me=re,J={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},R=function(H){Object(p.a)(C,H);var z=Object(ce.a)(C);function C(){var g;Object(U.a)(this,C);for(var l=arguments.length,v=new Array(l),B=0;B=0||V.relatedTarget.className.indexOf("".concat(w,"-next"))>=0))return;g.setState({goInputText:""}),T(g.getValidValue())},g.go=function(V){var _e=g.state.goInputText;if(_e==="")return;(V.keyCode===J.ENTER||V.type==="click")&&(g.setState({goInputText:""}),g.props.quickGo(g.getValidValue()))},g}return Object(r.a)(C,[{key:"getValidValue",value:function(){var l=this.state,v=l.goInputText,B=l.current;return!v||isNaN(v)?B:Number(v)}},{key:"getPageSizeOptions",value:function(){var l=this.props,v=l.pageSize,B=l.pageSizeOptions;return B.some(function(V){return V.toString()===v.toString()})?B:B.concat([v.toString()]).sort(function(V,_e){var te=isNaN(Number(V))?0:Number(V),T=isNaN(Number(_e))?0:Number(_e);return te-T})}},{key:"render",value:function(){var l=this,v=this.props,B=v.pageSize,V=v.locale,_e=v.rootPrefixCls,te=v.changeSize,T=v.quickGo,w=v.goButton,x=v.selectComponentClass,h=v.buildOptionText,N=v.selectPrefixCls,E=v.disabled,S=this.state.goInputText,$="".concat(_e,"-options"),ae=x,he=null,Q=null,ne=null;if(!te&&!T)return null;var oe=this.getPageSizeOptions();if(te&&ae){var Z=oe.map(function(K,ee){return F.a.createElement(ae.Option,{key:ee,value:K.toString()},(h||l.buildOptionText)(K))});he=F.a.createElement(ae,{disabled:E,prefixCls:N,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(B||oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},Z)}return T&&(w&&(ne=typeof w=="boolean"?F.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:E,className:"".concat($,"-quick-jumper-button")},V.jump_to_confirm):F.a.createElement("span",{onClick:this.go,onKeyUp:this.go},w)),Q=F.a.createElement("div",{className:"".concat($,"-quick-jumper")},V.jump_to,F.a.createElement("input",{disabled:E,type:"text",value:S,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),V.page,ne)),F.a.createElement("li",{className:"".concat($)},he,Q)}}]),C}(F.a.Component);R.defaultProps={pageSizeOptions:["10","20","50","100"]};var j=R,ie=a("N2Kk");function G(){}function le(H){return typeof H=="number"&&isFinite(H)&&Math.floor(H)===H}function ue(H,z,C){return C}function Y(H,z,C){var g=typeof H=="undefined"?z.pageSize:H;return Math.floor((C.total-1)/g)+1}var be=function(H){Object(p.a)(C,H);var z=Object(ce.a)(C);function C(g){var l;Object(U.a)(this,C),l=z.call(this,g),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(Y(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(te,T){var w=l.props.prefixCls,x=te||F.a.createElement("button",{type:"button","aria-label":T,className:"".concat(w,"-item-link")});return typeof te=="function"&&(x=F.a.createElement(te,Object(Se.a)({},l.props))),x},l.savePaginationNode=function(te){l.paginationNode=te},l.isValid=function(te){return le(te)&&te!==l.state.current},l.shouldDisplayQuickJumper=function(){var te=l.props,T=te.showQuickJumper,w=te.pageSize,x=te.total;return x<=w?!1:T},l.handleKeyDown=function(te){(te.keyCode===J.ARROW_UP||te.keyCode===J.ARROW_DOWN)&&te.preventDefault()},l.handleKeyUp=function(te){var T=l.getValidValue(te),w=l.state.currentInputValue;T!==w&&l.setState({currentInputValue:T}),te.keyCode===J.ENTER?l.handleChange(T):te.keyCode===J.ARROW_UP?l.handleChange(T-1):te.keyCode===J.ARROW_DOWN&&l.handleChange(T+1)},l.changePageSize=function(te){var T=l.state.current,w=Y(te,l.state,l.props);T=T>w?w:T,w===0&&(T=l.state.current),typeof te=="number"&&("pageSize"in l.props||l.setState({pageSize:te}),"current"in l.props||l.setState({current:T,currentInputValue:T})),l.props.onShowSizeChange(T,te),"onChange"in l.props&&l.props.onChange&&l.props.onChange(T,te)},l.handleChange=function(te){var T=l.props.disabled,w=te;if(l.isValid(w)&&!T){var x=Y(void 0,l.state,l.props);w>x?w=x:w<1&&(w=1),"current"in l.props||l.setState({current:w,currentInputValue:w});var h=l.state.pageSize;return l.props.onChange(w,h),w}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?w-2:0),h=2;h=B?_e=B:_e=Number(v),_e}},{key:"getShowSizeChanger",value:function(){var l=this.props,v=l.showSizeChanger,B=l.total,V=l.totalBoundaryShowSizeChanger;return typeof v!="undefined"?v:B>V}},{key:"renderPrev",value:function(l){var v=this.props,B=v.prevIcon,V=v.itemRender,_e=V(l,"prev",this.getItemIcon(B,"prev page")),te=!this.hasPrev();return Object(se.isValidElement)(_e)?Object(se.cloneElement)(_e,{disabled:te}):_e}},{key:"renderNext",value:function(l){var v=this.props,B=v.nextIcon,V=v.itemRender,_e=V(l,"next",this.getItemIcon(B,"next page")),te=!this.hasNext();return Object(se.isValidElement)(_e)?Object(se.cloneElement)(_e,{disabled:te}):_e}},{key:"render",value:function(){var l=this,v=this.props,B=v.prefixCls,V=v.className,_e=v.style,te=v.disabled,T=v.hideOnSinglePage,w=v.total,x=v.locale,h=v.showQuickJumper,N=v.showLessItems,E=v.showTitle,S=v.showTotal,$=v.simple,ae=v.itemRender,he=v.showPrevNextJumpers,Q=v.jumpPrevIcon,ne=v.jumpNextIcon,oe=v.selectComponentClass,Z=v.selectPrefixCls,K=v.pageSizeOptions,ee=this.state,n=ee.current,m=ee.pageSize,s=ee.currentInputValue;if(T===!0&&w<=m)return null;var A=Y(void 0,this.state,this.props),d=[],q=null,ye=null,Ce=null,Fe=null,Be=null,Ue=h&&h.goButton,We=N?1:2,Pt=n-1>0?n-1:0,Nt=n+1=We*2&&n!==1+2&&(d[0]=Object(se.cloneElement)(d[0],{className:"".concat(B,"-item-after-jump-prev")}),d.unshift(q)),A-n>=We*2&&n!==A-2&&(d[d.length-1]=Object(se.cloneElement)(d[d.length-1],{className:"".concat(B,"-item-before-jump-next")}),d.push(ye)),ge!==1&&d.unshift(Ce),Te!==A&&d.push(Fe)}var xe=null;S&&(xe=F.a.createElement("li",{className:"".concat(B,"-total-text")},S(w,[w===0?0:(n-1)*m+1,n*m>w?w:n*m])));var Ee=!this.hasPrev()||!A,je=!this.hasNext()||!A;return F.a.createElement("ul",Object(L.a)({className:X()(B,V,Object(M.a)({},"".concat(B,"-disabled"),te)),style:_e,unselectable:"unselectable",ref:this.savePaginationNode},Lt),xe,F.a.createElement("li",{title:E?x.prev_page:null,onClick:this.prev,tabIndex:Ee?null:0,onKeyPress:this.runIfEnterPrev,className:X()("".concat(B,"-prev"),Object(M.a)({},"".concat(B,"-disabled"),Ee)),"aria-disabled":Ee},this.renderPrev(Pt)),d,F.a.createElement("li",{title:E?x.next_page:null,onClick:this.next,tabIndex:je?null:0,onKeyPress:this.runIfEnterNext,className:X()("".concat(B,"-next"),Object(M.a)({},"".concat(B,"-disabled"),je)),"aria-disabled":je},this.renderNext(Nt)),F.a.createElement(j,{disabled:te,locale:x,rootPrefixCls:B,selectComponentClass:oe,selectPrefixCls:Z,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:m,pageSizeOptions:K,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ue}))}}],[{key:"getDerivedStateFromProps",value:function(l,v){var B={};if("current"in l&&(B.current=l.current,l.current!==v.current&&(B.currentInputValue=B.current)),"pageSize"in l&&l.pageSize!==v.pageSize){var V=v.current,_e=Y(l.pageSize,v,l);V=V>_e?_e:V,"current"in l||(B.current=V,B.currentInputValue=V),B.pageSize=l.pageSize}return B}}]),C}(F.a.Component);be.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:G,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:G,locale:ie.a,style:{},itemRender:ue,totalBoundaryShowSizeChanger:50};var I=be},"6RRn":function(Ye,pe,a){"use strict";var L=a("wCXF"),M=a("n6Qo");a.d(pe,"b",function(){return M.a});var Se=a("IBYe"),U=a("6eGT"),r=a("hW8S");a.d(pe,"a",function(){return r.a}),pe.c=L.b},"6eGT":function(Ye,pe,a){"use strict";function L(M){return null}pe.a=L},"815F":function(Ye,pe,a){"use strict";a.d(pe,"e",function(){return ce}),a.d(pe,"c",function(){return F}),a.d(pe,"d",function(){return k}),a.d(pe,"a",function(){return re}),a.d(pe,"f",function(){return me}),a.d(pe,"b",function(){return J});var L=a("KQm4"),M=a("VTBJ"),Se=a("Ff2n"),U=a("Zm9Q"),r=a("Kwbf"),p=a("OZM5");function ce(R,j){return R!=null?R:j}function se(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=new Map;function ie(G){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(G||[]).forEach(function(ue){var Y=ue.key,be=ue.children;Object(r.a)(Y!=null,"Tree node must have a certain key: [".concat(le).concat(Y,"]"));var I=String(Y);Object(r.a)(!j.has(I)||Y===null||Y===void 0,"Same 'key' exist in the Tree: ".concat(I)),j.set(I,!0),ie(be,"".concat(le).concat(I," > "))})}ie(R)}function F(R){function j(ie){var G=Object(U.a)(ie);return G.map(function(le){if(!Object(p.i)(le))return Object(r.a)(!le,"Tree/TreeNode can only accept TreeNode as children."),null;var ue=le.key,Y=le.props,be=Y.children,I=Object(Se.a)(Y,["children"]),H=Object(M.a)({key:ue},I),z=j(be);return z.length&&(H.children=z),H}).filter(function(le){return le})}return j(R)}function k(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=new Set(j===!0?[]:j),G=[];function le(ue){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ue.map(function(be,I){var H=Object(p.h)(Y?Y.pos:"0",I),z=ce(be.key,H),C=Object(M.a)(Object(M.a)({},be),{},{parent:Y,pos:H,children:null,data:be,isStart:[].concat(Object(L.a)(Y?Y.isStart:[]),[I===0]),isEnd:[].concat(Object(L.a)(Y?Y.isEnd:[]),[I===ue.length-1])});return G.push(C),j===!0||ie.has(z)?C.children=le(be.children||[],C):C.children=[],C})}return le(R),G}function X(R,j,ie){var G;ie?typeof ie=="string"?G=function(Y){return Y[ie]}:typeof ie=="function"&&(G=function(Y){return ie(Y)}):G=function(Y,be){return ce(Y.key,be)};function le(ue,Y,be){var I=ue?ue.children:R,H=ue?Object(p.h)(be.pos,Y):"0";if(ue){var z=G(ue,H),C={node:ue,index:Y,pos:H,key:z,parentPos:be.node?be.pos:null,level:be.level+1};j(C)}I&&I.forEach(function(g,l){le(g,l,{node:ue,pos:H,level:be?be.level+1:-1})})}le(null)}function re(R){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=j.initWrapper,G=j.processEntity,le=j.onProcessFinished,ue=arguments.length>2?arguments[2]:void 0,Y={},be={},I={posEntities:Y,keyEntities:be};return ie&&(I=ie(I)||I),X(R,function(H){var z=H.node,C=H.index,g=H.pos,l=H.key,v=H.parentPos,B=H.level,V={node:z,index:C,key:l,pos:g,level:B},_e=ce(l,g);Y[g]=V,be[_e]=V,V.parent=Y[v],V.parent&&(V.parent.children=V.parent.children||[],V.parent.children.push(V)),G&&G(V,I)},ue),le&&le(I),I}function me(R,j){var ie=j.expandedKeys,G=j.selectedKeys,le=j.loadedKeys,ue=j.loadingKeys,Y=j.checkedKeys,be=j.halfCheckedKeys,I=j.dragOverNodeKey,H=j.dropPosition,z=j.keyEntities,C=z[R],g={eventKey:R,expanded:ie.indexOf(R)!==-1,selected:G.indexOf(R)!==-1,loaded:le.indexOf(R)!==-1,loading:ue.indexOf(R)!==-1,checked:Y.indexOf(R)!==-1,halfChecked:be.indexOf(R)!==-1,pos:String(C?C.pos:""),dragOver:I===R&&H===0,dragOverGapTop:I===R&&H===-1,dragOverGapBottom:I===R&&H===1};return g}function J(R){var j=R.data,ie=R.expanded,G=R.selected,le=R.checked,ue=R.loaded,Y=R.loading,be=R.halfChecked,I=R.dragOver,H=R.dragOverGapTop,z=R.dragOverGapBottom,C=R.pos,g=R.active,l=Object(M.a)(Object(M.a)({},j),{},{expanded:ie,selected:G,checked:le,loaded:ue,loading:Y,halfChecked:be,dragOver:I,dragOverGapTop:H,dragOverGapBottom:z,pos:C,active:g});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),l}},"9ZfG":function(Ye,pe,a){"use strict";var L=a("2qtc"),M=a("kLXV"),Se=a("DYRE"),U=a("zeV3"),r=a("DZo9"),p=a("8z0m"),ce=a("+L6B"),se=a("2/Rp"),F=a("Znn+"),k=a("ZTPi"),X=a("miYZ"),re=a("tsqr"),me=a("tJVT"),J=a("q1tI"),R=a.n(J),j=a("xvlK"),ie=a("1vsH"),G=a("Ty5D"),le=a("NdNG"),ue=a.n(le),Y=function(I){var H=I.visible,z=I.onOk,C=I.onCancel,g=I.templateFileName,l=I.templateFileUrl,v=I.otherTemplateText,B=I.formNode,V=I.title,_e=Object(J.useState)([]),te=Object(me.a)(_e,2),T=te[0],w=te[1],x=Object(J.useState)(!1),h=Object(me.a)(x,2),N=h[0],E=h[1],S=Object(J.useState)("1"),$=Object(me.a)(S,2),ae=$[0],he=$[1],Q=Object(G.i)();Object(J.useEffect)(function(){H||(w([]),E(!1),he("1"))},[H]);var ne=function(){E(!0),z(T,function(){E(!1)})},oe=function(){C()},Z=function(){var m=l;Object(ie.v)(null,m)},K=function(m){var s,A,d,q,ye=m==null||((s=m.name)===null||s===void 0)?void 0:s.substring(m==null||((A=m.name)===null||A===void 0)?void 0:A.lastIndexOf("."),m==null||((d=m.name)===null||d===void 0)?void 0:d.length);if(ye=(q=ye)===null||q===void 0?void 0:q.toLowerCase(),ye!==".xls"&&ye!==".xlsx")return re.b.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();var Ce={name:m.name,uid:m.uid,file:m};return w([Ce]),!1},ee=function(){w([])};return R.a.createElement(M.a,{title:V,visible:H,centered:!0,wrapClassName:ue.a.customModal,onCancel:oe,width:"740px",confirmLoading:N,footer:null},R.a.createElement(k.a,{className:ue.a.tabWarp,onChange:function(m){return he(m)},activeKey:ae},R.a.createElement(k.a.TabPane,{tab:"\u624B\u52A8\u65B0\u589E",key:"1"},B),R.a.createElement(k.a.TabPane,{tab:"\u6279\u91CF\u5BFC\u5165",key:"2"},R.a.createElement("div",{className:ue.a.content},R.a.createElement("div",{style:{marginLeft:41,paddingBottom:50}},R.a.createElement("div",{style:{marginTop:36}},R.a.createElement("span",null,"\u6B65\u9AA41\uFF1A"),R.a.createElement("span",null,"\u4E0B\u8F7D\xA0",R.a.createElement("span",{style:{color:"#0152D9",cursor:"pointer"},onClick:Z},R.a.createElement("i",{className:"iconfont icon-moban1 font14"}),g),"\uFF0C\xA0",v),R.a.createElement("span",{style:{color:"#FA6400"},className:"mt10"},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\u3002")),R.a.createElement("aside",{style:{marginTop:30}},R.a.createElement("div",{className:"mr20"},"\u6B65\u9AA42\uFF1A\u4E0A\u4F20\u586B\u5199\u5B8C\u6210\u7684\u6A21\u677F\u3002"),R.a.createElement("div",null,H&&R.a.createElement(p.a,{action:"/api/attachments.json",fileList:T,beforeUpload:K,onRemove:ee,withCredentials:!0,accept:".xls,.xlsx"},R.a.createElement(se.a,{type:"primary",icon:R.a.createElement(j.a,null)},"\u9009\u62E9\u6587\u4EF6"))))),R.a.createElement(U.a,{className:"mr40 pb20",size:10,style:{float:"right"}},R.a.createElement(se.a,{onClick:function(){return oe()}},"\u53D6\u6D88"),R.a.createElement(se.a,{onClick:function(){return ne()},type:"primary"},"\u786E\u8BA4"))))))};pe.a=Y},BU3w:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return p});var L=a("MNnm"),M="rc-util-key";function Se(ce){if(ce.attachTo)return ce.attachTo;var se=document.querySelector("head");return se||document.body}function U(ce){var se,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var k=document.createElement("style");if((se=F.csp)===null||se===void 0?void 0:se.nonce){var X;k.nonce=(X=F.csp)===null||X===void 0?void 0:X.nonce}k.innerHTML=ce;var re=Se(F),me=re.firstChild;return F.prepend&&re.prepend?re.prepend(k):F.prepend&&me?re.insertBefore(k,me):re.appendChild(k),k}var r=new Map;function p(ce,se){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=Se(F);if(!r.has(k)){var X=U("",F),re=X.parentNode;r.set(k,re),re.removeChild(X)}var me=Array.from(r.get(k).children).find(function(G){return G.tagName==="STYLE"&&G[M]===se});if(me){var J,R;if(((J=F.csp)===null||J===void 0?void 0:J.nonce)&&me.nonce!==((R=F.csp)===null||R===void 0?void 0:R.nonce)){var j;me.nonce=(j=F.csp)===null||j===void 0?void 0:j.nonce}return me.innerHTML!==ce&&(me.innerHTML=ce),me}var ie=U(ce,F);return ie[M]=se,ie}},GfqC:function(Ye,pe,a){"use strict";var L=a("q1tI"),M=a.n(L),Se=a("TSYQ"),U=a.n(Se);function r(x,h){var N="cannot "+x.method+" "+x.action+" "+h.status+"'",E=new Error(N);return E.status=h.status,E.method=x.method,E.url=x.action,E}function p(x){var h=x.responseText||x.response;if(!h)return h;try{return JSON.parse(h)}catch(N){return h}}function ce(x){var h=new XMLHttpRequest;x.onProgress&&h.upload&&(h.upload.onprogress=function($){$.total>0&&($.percent=$.loaded/$.total*100),x.onProgress($)});var N=new FormData;x.data&&Object.keys(x.data).forEach(function(S){var $=x.data[S];if(Array.isArray($)){$.forEach(function(ae){N.append(S+"[]",ae)});return}N.append(S,x.data[S])}),x.file instanceof Blob?N.append(x.filename,x.file,x.file.name):N.append(x.filename,x.file),h.onerror=function($){x.onError($)},h.onload=function(){return h.status<200||h.status>=300?x.onError(r(x,h),p(h)):x.onSuccess(p(h),h)},h.open(x.method,x.action,!0),x.withCredentials&&"withCredentials"in h&&(h.withCredentials=!0);var E=x.headers||{};return E["X-Requested-With"]!==null&&h.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(E).forEach(function(S){E[S]!==null&&h.setRequestHeader(S,E[S])}),h.send(N),{abort:function(){h.abort()}}}var se=+new Date,F=0;function k(){return"rc-upload-"+se+"-"+ ++F}function X(x,h){return x.indexOf(h,x.length-h.length)!==-1}var re=function(x,h){if(x&&h){var N=Array.isArray(h)?h:h.split(","),E=x.name||"",S=x.type||"",$=S.replace(/\/.*$/,"");return N.some(function(ae){var he=ae.trim();return he.charAt(0)==="."?X(E.toLowerCase(),he.toLowerCase()):/\/\*$/.test(he)?$===he.replace(/\/.*$/,""):S===he})}return!0};function me(x,h){var N=x.createReader(),E=[];function S(){N.readEntries(function($){var ae=Array.prototype.slice.apply($);E=E.concat(ae);var he=!ae.length;he?h(E):S()})}S()}var J=function(h,N,E){var S=function $(ae,he){he=he||"",ae.isFile?ae.file(function(Q){E(Q)&&(ae.fullPath&&!Q.webkitRelativePath&&(Object.defineProperties(Q,{webkitRelativePath:{writable:!0}}),Q.webkitRelativePath=ae.fullPath.replace(/^\//,""),Object.defineProperties(Q,{webkitRelativePath:{writable:!1}})),N([Q]))}):ae.isDirectory&&me(ae,function(Q){Q.forEach(function(ne){$(ne,""+he+ae.name+"/")})})};h.forEach(function($){S($.webkitGetAsEntry())})},R=J,j=Object.assign||function(x){for(var h=1;h=0)continue;if(!Object.prototype.hasOwnProperty.call(x,E))continue;N[E]=x[E]}return N}function Y(x,h){if(!(x instanceof h))throw new TypeError("Cannot call a class as a function")}function be(x,h){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:x}function I(x,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);x.prototype=Object.create(h&&h.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(x,h):x.__proto__=h)}var H=function(h){return Object.keys(h).reduce(function(N,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-"||E==="role")&&(N[E]=h[E]),N},{})},z=function(x){I(h,x);function h(){var N,E,S,$;Y(this,h);for(var ae=arguments.length,he=Array(ae),Q=0;Q1&&arguments[1]!==void 0?arguments[1]:1,je=We.length,ze=0;ze1&&arguments[1]!==void 0?arguments[1]:!1;return Object(H.a)(N).map(function(S,$){if(!r.isValidElement(S)||!S.type)return null;var ae=S.type.isSelectOptGroup,he=S.key,Q=S.props,ne=Q.children,oe=Object(ce.a)(Q,["children"]);return E||!ae?z(S):Object(I.a)(Object(I.a)({key:"__RC_SELECT_GRP__".concat(he===null?$:he,"__"),label:he},oe),{},{options:C(ne)})}).filter(function(S){return S})}var g=a("2Qr1"),l=a("qNPg"),v=a("U8pU"),B=a("Kwbf"),V=a("WKfj");function _e(N){var E=N.mode,S=N.options,$=N.children,ae=N.backfill,he=N.allowClear,Q=N.placeholder,ne=N.getInputElement,oe=N.showSearch,Z=N.onSearch,K=N.defaultOpen,ee=N.autoFocus,n=N.labelInValue,m=N.value,s=N.inputValue,A=N.optionLabelProp,d=E==="multiple"||E==="tags",q=oe!==void 0?oe:d||E==="combobox",ye=S||C($);if(Object(B.a)(E!=="tags"||ye.every(function(Ue){return!Ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),E==="tags"||E==="combobox"){var Ce=ye.some(function(Ue){return Ue.options?Ue.options.some(function(We){return typeof("value"in We?We.value:We.key)=="number"}):typeof("value"in Ue?Ue.value:Ue.key)=="number"});Object(B.a)(!Ce,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(B.a)(E!=="combobox"||!A,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(B.a)(E==="combobox"||!ae,"`backfill` only works with `combobox` mode."),Object(B.a)(E==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(B.b)(E!=="combobox"||!ne||!he||!Q,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Z&&!q&&E!=="combobox"&&E!=="tags"&&Object(B.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(B.b)(!K||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),m!=null){var Fe=Object(V.d)(m);Object(B.a)(!n||Fe.every(function(Ue){return Object(v.a)(Ue)==="object"&&("key"in Ue||"value"in Ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(B.a)(!d||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var Be=null;Object(H.a)($).some(function(Ue){if(!r.isValidElement(Ue)||!Ue.type)return!1;var We=Ue.type;if(We.isSelectOption)return!1;if(We.isSelectOptGroup){var Pt=Object(H.a)(Ue.props.children).every(function(Nt){return!r.isValidElement(Nt)||!Ue.type||Nt.type.isSelectOption?!0:(Be=Nt.type,!1)});return!Pt}return Be=We,!0}),Be&&Object(B.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Be.displayName||Be.name||Be,"`.")),Object(B.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var te=_e,T=Object(l.a)({prefixCls:"rc-select",components:{optionList:G},convertChildrenToData:C,flattenOptions:g.d,getLabeledValue:g.e,filterOptions:g.b,isValueDisabled:g.g,findValueOption:g.c,warningProps:te,fillOptionsWithMissingValue:g.a}),w=function(N){Object(Se.a)(S,N);var E=Object(U.a)(S);function S(){var $;return Object(L.a)(this,S),$=E.apply(this,arguments),$.selectRef=r.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(M.a)(S,[{key:"render",value:function(){return r.createElement(T,Object.assign({ref:this.selectRef},this.props))}}]),S}(r.Component);w.Option=ue,w.OptGroup=be;var x=w,h=pe.c=x},NdNG:function(Ye,pe,a){Ye.exports={flex_box_center:"flex_box_center___14pl3",flex_space_between:"flex_space_between___3BrPp",flex_box_vertical_center:"flex_box_vertical_center___3uNta",flex_box_center_end:"flex_box_center_end___2OAdL",flex_box_column:"flex_box_column___1Nwh3",customModal:"customModal___20MJx",content:"content___3jy8C",tabWarp:"tabWarp___cpvG0"}},NvD2:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return p});var L=a("Kwbf");function M(ce,se){var F=new Set;return ce.forEach(function(k){se.has(k)||F.add(k)}),F}function Se(ce){var se=ce||{},F=se.disabled,k=se.disableCheckbox,X=se.checkable;return!!(F||k)||X===!1}function U(ce,se,F,k){for(var X=new Set(ce),re=new Set,me=0;me<=F;me+=1){var J=se.get(me)||new Set;J.forEach(function(G){var le=G.key,ue=G.node,Y=G.children,be=Y===void 0?[]:Y;X.has(le)&&!k(ue)&&be.filter(function(I){return!k(I.node)}).forEach(function(I){X.add(I.key)})})}for(var R=new Set,j=F;j>=0;j-=1){var ie=se.get(j)||new Set;ie.forEach(function(G){var le=G.parent,ue=G.node;if(k(ue)||!G.parent||R.has(G.parent.key))return;if(k(G.parent.node)){R.add(le.key);return}var Y=!0,be=!1;(le.children||[]).filter(function(I){return!k(I.node)}).forEach(function(I){var H=I.key,z=X.has(H);Y&&!z&&(Y=!1),!be&&(z||re.has(H))&&(be=!0)}),Y&&X.add(le.key),be&&re.add(le.key),R.add(le.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(M(re,X))}}function r(ce,se,F,k,X){for(var re=new Set(ce),me=new Set(se),J=0;J<=k;J+=1){var R=F.get(J)||new Set;R.forEach(function(le){var ue=le.key,Y=le.node,be=le.children,I=be===void 0?[]:be;!re.has(ue)&&!me.has(ue)&&!X(Y)&&I.filter(function(H){return!X(H.node)}).forEach(function(H){re.delete(H.key)})})}me=new Set;for(var j=new Set,ie=k;ie>=0;ie-=1){var G=F.get(ie)||new Set;G.forEach(function(le){var ue=le.parent,Y=le.node;if(X(Y)||!le.parent||j.has(le.parent.key))return;if(X(le.parent.node)){j.add(ue.key);return}var be=!0,I=!1;(ue.children||[]).filter(function(H){return!X(H.node)}).forEach(function(H){var z=H.key,C=re.has(z);be&&!C&&(be=!1),!I&&(C||me.has(z))&&(I=!0)}),be||re.delete(ue.key),I&&me.add(ue.key),j.add(ue.key)})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(M(me,re))}}function p(ce,se,F,k){var X=[],re;k?re=k:re=Se;var me=new Set(ce.filter(function(ie){var G=!!F[ie];return G||X.push(ie),G})),J=new Map,R=0;Object.keys(F).forEach(function(ie){var G=F[ie],le=G.level,ue=J.get(le);ue||(ue=new Set,J.set(le,ue)),ue.add(G),R=Math.max(R,le)}),Object(L.a)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ie){return"'".concat(ie,"'")}).join(", ")));var j;return se===!0?j=U(me,J,R,re):j=r(me,se.halfCheckedKeys,J,R,re),j}},OZM5:function(Ye,pe,a){"use strict";a.d(pe,"b",function(){return k}),a.d(pe,"a",function(){return X}),a.d(pe,"k",function(){return re}),a.d(pe,"h",function(){return me}),a.d(pe,"i",function(){return J}),a.d(pe,"g",function(){return R}),a.d(pe,"c",function(){return j}),a.d(pe,"d",function(){return ie}),a.d(pe,"j",function(){return ue}),a.d(pe,"e",function(){return Y}),a.d(pe,"f",function(){return be});var L=a("KQm4"),M=a("U8pU"),Se=a("Ff2n"),U=a("q1tI"),r=a.n(U),p=a("Kwbf"),ce=a("WaYH"),se=.25,F=2;function k(I,H){var z=I.slice(),C=z.indexOf(H);return C>=0&&z.splice(C,1),z}function X(I,H){var z=I.slice();return z.indexOf(H)===-1&&z.push(H),z}function re(I){return I.split("-")}function me(I,H){return"".concat(I,"-").concat(H)}function J(I){return I&&I.type&&I.type.isTreeNode}function R(I,H){var z=[I],C=H[I];function g(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(v){var B=v.key,V=v.children;z.push(B),g(V)})}return g(C.children),z}function j(I,H){var z=I.clientY,C=H.selectHandle.getBoundingClientRect(),g=C.top,l=C.bottom,v=C.height,B=Math.max(v*se,F);return z<=g+B?-1:z>=l-B?1:0}function ie(I,H){if(!I)return;var z=H.multiple;return z?I.slice():I.length?[I[0]]:I}var G=function(H){return H};function le(I,H){if(!I)return[];var z=H||{},C=z.processProps,g=C===void 0?G:C,l=Array.isArray(I)?I:[I];return l.map(function(v){var B=v.children,V=Object(Se.a)(v,["children"]),_e=le(B,H);return r.a.createElement(ce.a,Object.assign({},g(V)),_e)})}function ue(I){if(!I)return null;var H;if(Array.isArray(I))H={checkedKeys:I,halfCheckedKeys:void 0};else if(Object(M.a)(I)==="object")H={checkedKeys:I.checked||void 0,halfCheckedKeys:I.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return H}function Y(I,H){var z=new Set;function C(g){if(z.has(g))return;var l=H[g];if(!l)return;z.add(g);var v=l.parent,B=l.node;if(B.disabled)return;v&&C(v.key)}return(I||[]).forEach(function(g){C(g)}),Object(L.a)(z)}function be(I){var H={};return Object.keys(I).forEach(function(z){(z.startsWith("data-")||z.startsWith("aria-"))&&(H[z]=I[z])}),H}},PsNh:function(Ye,pe,a){Ye.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Ye,pe,a){var L=a("wTVA"),M=a("EbDI"),Se=a("ZhPi"),U=a("wkBT");function r(p){return L(p)||M(p)||Se(p)||U()}Ye.exports=r,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports},WaYH:function(Ye,pe,a){"use strict";var L=a("rePB"),M=a("Ff2n"),Se=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),p=a("JX7q"),ce=a("Ji7U"),se=a("LK+K"),F=a("q1tI"),k=a("TSYQ"),X=a.n(k),re=a("sboe"),me=a("OZM5"),J=function(H){var z=H.prefixCls,C=H.level,g=H.isStart,l=H.isEnd;if(!C)return null;for(var v="".concat(z,"-indent-unit"),B=[],V=0;V=0||V.relatedTarget.className.indexOf("".concat(w,"-next"))>=0))return;g.setState({goInputText:""}),S(g.getValidValue())},g.go=function(V){var _e=g.state.goInputText;if(_e==="")return;(V.keyCode===J.ENTER||V.type==="click")&&(g.setState({goInputText:""}),g.props.quickGo(g.getValidValue()))},g}return Object(r.a)(C,[{key:"getValidValue",value:function(){var l=this.state,v=l.goInputText,B=l.current;return!v||isNaN(v)?B:Number(v)}},{key:"getPageSizeOptions",value:function(){var l=this.props,v=l.pageSize,B=l.pageSizeOptions;return B.some(function(V){return V.toString()===v.toString()})?B:B.concat([v.toString()]).sort(function(V,_e){var te=isNaN(Number(V))?0:Number(V),S=isNaN(Number(_e))?0:Number(_e);return te-S})}},{key:"render",value:function(){var l=this,v=this.props,B=v.pageSize,V=v.locale,_e=v.rootPrefixCls,te=v.changeSize,S=v.quickGo,w=v.goButton,x=v.selectComponentClass,h=v.buildOptionText,N=v.selectPrefixCls,E=v.disabled,T=this.state.goInputText,$="".concat(_e,"-options"),ae=x,he=null,Q=null,ne=null;if(!te&&!S)return null;var oe=this.getPageSizeOptions();if(te&&ae){var Z=oe.map(function(K,ee){return F.a.createElement(ae.Option,{key:ee,value:K.toString()},(h||l.buildOptionText)(K))});he=F.a.createElement(ae,{disabled:E,prefixCls:N,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(B||oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},Z)}return S&&(w&&(ne=typeof w=="boolean"?F.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:E,className:"".concat($,"-quick-jumper-button")},V.jump_to_confirm):F.a.createElement("span",{onClick:this.go,onKeyUp:this.go},w)),Q=F.a.createElement("div",{className:"".concat($,"-quick-jumper")},V.jump_to,F.a.createElement("input",{disabled:E,type:"text",value:T,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),V.page,ne)),F.a.createElement("li",{className:"".concat($)},he,Q)}}]),C}(F.a.Component);R.defaultProps={pageSizeOptions:["10","20","50","100"]};var j=R,ie=a("N2Kk");function G(){}function le(H){return typeof H=="number"&&isFinite(H)&&Math.floor(H)===H}function ue(H,z,C){return C}function Y(H,z,C){var g=typeof H=="undefined"?z.pageSize:H;return Math.floor((C.total-1)/g)+1}var be=function(H){Object(p.a)(C,H);var z=Object(ce.a)(C);function C(g){var l;Object(U.a)(this,C),l=z.call(this,g),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(Y(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(te,S){var w=l.props.prefixCls,x=te||F.a.createElement("button",{type:"button","aria-label":S,className:"".concat(w,"-item-link")});return typeof te=="function"&&(x=F.a.createElement(te,Object(Te.a)({},l.props))),x},l.savePaginationNode=function(te){l.paginationNode=te},l.isValid=function(te){return le(te)&&te!==l.state.current},l.shouldDisplayQuickJumper=function(){var te=l.props,S=te.showQuickJumper,w=te.pageSize,x=te.total;return x<=w?!1:S},l.handleKeyDown=function(te){(te.keyCode===J.ARROW_UP||te.keyCode===J.ARROW_DOWN)&&te.preventDefault()},l.handleKeyUp=function(te){var S=l.getValidValue(te),w=l.state.currentInputValue;S!==w&&l.setState({currentInputValue:S}),te.keyCode===J.ENTER?l.handleChange(S):te.keyCode===J.ARROW_UP?l.handleChange(S-1):te.keyCode===J.ARROW_DOWN&&l.handleChange(S+1)},l.changePageSize=function(te){var S=l.state.current,w=Y(te,l.state,l.props);S=S>w?w:S,w===0&&(S=l.state.current),typeof te=="number"&&("pageSize"in l.props||l.setState({pageSize:te}),"current"in l.props||l.setState({current:S,currentInputValue:S})),l.props.onShowSizeChange(S,te),"onChange"in l.props&&l.props.onChange&&l.props.onChange(S,te)},l.handleChange=function(te){var S=l.props.disabled,w=te;if(l.isValid(w)&&!S){var x=Y(void 0,l.state,l.props);w>x?w=x:w<1&&(w=1),"current"in l.props||l.setState({current:w,currentInputValue:w});var h=l.state.pageSize;return l.props.onChange(w,h),w}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?w-2:0),h=2;h=B?_e=B:_e=Number(v),_e}},{key:"getShowSizeChanger",value:function(){var l=this.props,v=l.showSizeChanger,B=l.total,V=l.totalBoundaryShowSizeChanger;return typeof v!="undefined"?v:B>V}},{key:"renderPrev",value:function(l){var v=this.props,B=v.prevIcon,V=v.itemRender,_e=V(l,"prev",this.getItemIcon(B,"prev page")),te=!this.hasPrev();return Object(se.isValidElement)(_e)?Object(se.cloneElement)(_e,{disabled:te}):_e}},{key:"renderNext",value:function(l){var v=this.props,B=v.nextIcon,V=v.itemRender,_e=V(l,"next",this.getItemIcon(B,"next page")),te=!this.hasNext();return Object(se.isValidElement)(_e)?Object(se.cloneElement)(_e,{disabled:te}):_e}},{key:"render",value:function(){var l=this,v=this.props,B=v.prefixCls,V=v.className,_e=v.style,te=v.disabled,S=v.hideOnSinglePage,w=v.total,x=v.locale,h=v.showQuickJumper,N=v.showLessItems,E=v.showTitle,T=v.showTotal,$=v.simple,ae=v.itemRender,he=v.showPrevNextJumpers,Q=v.jumpPrevIcon,ne=v.jumpNextIcon,oe=v.selectComponentClass,Z=v.selectPrefixCls,K=v.pageSizeOptions,ee=this.state,n=ee.current,m=ee.pageSize,s=ee.currentInputValue;if(S===!0&&w<=m)return null;var A=Y(void 0,this.state,this.props),d=[],q=null,ye=null,Ce=null,Fe=null,Be=null,Ue=h&&h.goButton,We=N?1:2,Pt=n-1>0?n-1:0,Nt=n+1=We*2&&n!==1+2&&(d[0]=Object(se.cloneElement)(d[0],{className:"".concat(B,"-item-after-jump-prev")}),d.unshift(q)),A-n>=We*2&&n!==A-2&&(d[d.length-1]=Object(se.cloneElement)(d[d.length-1],{className:"".concat(B,"-item-before-jump-next")}),d.push(ye)),ge!==1&&d.unshift(Ce),Se!==A&&d.push(Fe)}var xe=null;T&&(xe=F.a.createElement("li",{className:"".concat(B,"-total-text")},T(w,[w===0?0:(n-1)*m+1,n*m>w?w:n*m])));var Ee=!this.hasPrev()||!A,je=!this.hasNext()||!A;return F.a.createElement("ul",Object(L.a)({className:X()(B,V,Object(M.a)({},"".concat(B,"-disabled"),te)),style:_e,unselectable:"unselectable",ref:this.savePaginationNode},Lt),xe,F.a.createElement("li",{title:E?x.prev_page:null,onClick:this.prev,tabIndex:Ee?null:0,onKeyPress:this.runIfEnterPrev,className:X()("".concat(B,"-prev"),Object(M.a)({},"".concat(B,"-disabled"),Ee)),"aria-disabled":Ee},this.renderPrev(Pt)),d,F.a.createElement("li",{title:E?x.next_page:null,onClick:this.next,tabIndex:je?null:0,onKeyPress:this.runIfEnterNext,className:X()("".concat(B,"-next"),Object(M.a)({},"".concat(B,"-disabled"),je)),"aria-disabled":je},this.renderNext(Nt)),F.a.createElement(j,{disabled:te,locale:x,rootPrefixCls:B,selectComponentClass:oe,selectPrefixCls:Z,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:m,pageSizeOptions:K,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ue}))}}],[{key:"getDerivedStateFromProps",value:function(l,v){var B={};if("current"in l&&(B.current=l.current,l.current!==v.current&&(B.currentInputValue=B.current)),"pageSize"in l&&l.pageSize!==v.pageSize){var V=v.current,_e=Y(l.pageSize,v,l);V=V>_e?_e:V,"current"in l||(B.current=V,B.currentInputValue=V),B.pageSize=l.pageSize}return B}}]),C}(F.a.Component);be.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:G,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:G,locale:ie.a,style:{},itemRender:ue,totalBoundaryShowSizeChanger:50};var I=be},"6RRn":function(Ye,pe,a){"use strict";var L=a("wCXF"),M=a("n6Qo");a.d(pe,"b",function(){return M.a});var Te=a("IBYe"),U=a("6eGT"),r=a("hW8S");a.d(pe,"a",function(){return r.a}),pe.c=L.b},"6eGT":function(Ye,pe,a){"use strict";function L(M){return null}pe.a=L},"815F":function(Ye,pe,a){"use strict";a.d(pe,"e",function(){return ce}),a.d(pe,"c",function(){return F}),a.d(pe,"d",function(){return k}),a.d(pe,"a",function(){return re}),a.d(pe,"f",function(){return me}),a.d(pe,"b",function(){return J});var L=a("KQm4"),M=a("VTBJ"),Te=a("Ff2n"),U=a("Zm9Q"),r=a("Kwbf"),p=a("OZM5");function ce(R,j){return R!=null?R:j}function se(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=new Map;function ie(G){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(G||[]).forEach(function(ue){var Y=ue.key,be=ue.children;Object(r.a)(Y!=null,"Tree node must have a certain key: [".concat(le).concat(Y,"]"));var I=String(Y);Object(r.a)(!j.has(I)||Y===null||Y===void 0,"Same 'key' exist in the Tree: ".concat(I)),j.set(I,!0),ie(be,"".concat(le).concat(I," > "))})}ie(R)}function F(R){function j(ie){var G=Object(U.a)(ie);return G.map(function(le){if(!Object(p.i)(le))return Object(r.a)(!le,"Tree/TreeNode can only accept TreeNode as children."),null;var ue=le.key,Y=le.props,be=Y.children,I=Object(Te.a)(Y,["children"]),H=Object(M.a)({key:ue},I),z=j(be);return z.length&&(H.children=z),H}).filter(function(le){return le})}return j(R)}function k(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=new Set(j===!0?[]:j),G=[];function le(ue){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ue.map(function(be,I){var H=Object(p.h)(Y?Y.pos:"0",I),z=ce(be.key,H),C=Object(M.a)(Object(M.a)({},be),{},{parent:Y,pos:H,children:null,data:be,isStart:[].concat(Object(L.a)(Y?Y.isStart:[]),[I===0]),isEnd:[].concat(Object(L.a)(Y?Y.isEnd:[]),[I===ue.length-1])});return G.push(C),j===!0||ie.has(z)?C.children=le(be.children||[],C):C.children=[],C})}return le(R),G}function X(R,j,ie){var G;ie?typeof ie=="string"?G=function(Y){return Y[ie]}:typeof ie=="function"&&(G=function(Y){return ie(Y)}):G=function(Y,be){return ce(Y.key,be)};function le(ue,Y,be){var I=ue?ue.children:R,H=ue?Object(p.h)(be.pos,Y):"0";if(ue){var z=G(ue,H),C={node:ue,index:Y,pos:H,key:z,parentPos:be.node?be.pos:null,level:be.level+1};j(C)}I&&I.forEach(function(g,l){le(g,l,{node:ue,pos:H,level:be?be.level+1:-1})})}le(null)}function re(R){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=j.initWrapper,G=j.processEntity,le=j.onProcessFinished,ue=arguments.length>2?arguments[2]:void 0,Y={},be={},I={posEntities:Y,keyEntities:be};return ie&&(I=ie(I)||I),X(R,function(H){var z=H.node,C=H.index,g=H.pos,l=H.key,v=H.parentPos,B=H.level,V={node:z,index:C,key:l,pos:g,level:B},_e=ce(l,g);Y[g]=V,be[_e]=V,V.parent=Y[v],V.parent&&(V.parent.children=V.parent.children||[],V.parent.children.push(V)),G&&G(V,I)},ue),le&&le(I),I}function me(R,j){var ie=j.expandedKeys,G=j.selectedKeys,le=j.loadedKeys,ue=j.loadingKeys,Y=j.checkedKeys,be=j.halfCheckedKeys,I=j.dragOverNodeKey,H=j.dropPosition,z=j.keyEntities,C=z[R],g={eventKey:R,expanded:ie.indexOf(R)!==-1,selected:G.indexOf(R)!==-1,loaded:le.indexOf(R)!==-1,loading:ue.indexOf(R)!==-1,checked:Y.indexOf(R)!==-1,halfChecked:be.indexOf(R)!==-1,pos:String(C?C.pos:""),dragOver:I===R&&H===0,dragOverGapTop:I===R&&H===-1,dragOverGapBottom:I===R&&H===1};return g}function J(R){var j=R.data,ie=R.expanded,G=R.selected,le=R.checked,ue=R.loaded,Y=R.loading,be=R.halfChecked,I=R.dragOver,H=R.dragOverGapTop,z=R.dragOverGapBottom,C=R.pos,g=R.active,l=Object(M.a)(Object(M.a)({},j),{},{expanded:ie,selected:G,checked:le,loaded:ue,loading:Y,halfChecked:be,dragOver:I,dragOverGapTop:H,dragOverGapBottom:z,pos:C,active:g});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),l}},"9ZfG":function(Ye,pe,a){"use strict";var L=a("2qtc"),M=a("kLXV"),Te=a("DYRE"),U=a("zeV3"),r=a("DZo9"),p=a("8z0m"),ce=a("+L6B"),se=a("2/Rp"),F=a("Znn+"),k=a("ZTPi"),X=a("miYZ"),re=a("tsqr"),me=a("tJVT"),J=a("q1tI"),R=a.n(J),j=a("xvlK"),ie=a("1vsH"),G=a("Ty5D"),le=a("NdNG"),ue=a.n(le),Y=function(I){var H=I.visible,z=I.onOk,C=I.onCancel,g=I.templateFileName,l=I.templateFileUrl,v=I.otherTemplateText,B=I.formNode,V=I.title,_e=Object(J.useState)([]),te=Object(me.a)(_e,2),S=te[0],w=te[1],x=Object(J.useState)(!1),h=Object(me.a)(x,2),N=h[0],E=h[1],T=Object(J.useState)("1"),$=Object(me.a)(T,2),ae=$[0],he=$[1],Q=Object(G.i)();Object(J.useEffect)(function(){H||(w([]),E(!1),he("1"))},[H]);var ne=function(){E(!0),z(S,function(){E(!1)})},oe=function(){C()},Z=function(){var m=l;Object(ie.v)(null,m)},K=function(m){var s,A,d,q,ye=m==null||((s=m.name)===null||s===void 0)?void 0:s.substring(m==null||((A=m.name)===null||A===void 0)?void 0:A.lastIndexOf("."),m==null||((d=m.name)===null||d===void 0)?void 0:d.length);if(ye=(q=ye)===null||q===void 0?void 0:q.toLowerCase(),ye!==".xls"&&ye!==".xlsx")return re.b.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();var Ce={name:m.name,uid:m.uid,file:m};return w([Ce]),!1},ee=function(){w([])};return R.a.createElement(M.a,{title:V,visible:H,centered:!0,wrapClassName:ue.a.customModal,onCancel:oe,width:"740px",confirmLoading:N,footer:null},R.a.createElement(k.a,{className:ue.a.tabWarp,onChange:function(m){return he(m)},activeKey:ae},R.a.createElement(k.a.TabPane,{tab:"\u624B\u52A8\u65B0\u589E",key:"1"},B),R.a.createElement(k.a.TabPane,{tab:"\u6279\u91CF\u5BFC\u5165",key:"2"},R.a.createElement("div",{className:ue.a.content},R.a.createElement("div",{style:{marginLeft:41,paddingBottom:50}},R.a.createElement("div",{style:{marginTop:36}},R.a.createElement("span",null,"\u6B65\u9AA41\uFF1A"),R.a.createElement("span",null,"\u4E0B\u8F7D\xA0",R.a.createElement("span",{style:{color:"#0152D9",cursor:"pointer"},onClick:Z},R.a.createElement("i",{className:"iconfont icon-moban1 font14"}),g),"\uFF0C\xA0",v),R.a.createElement("span",{style:{color:"#FA6400"},className:"mt10"},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\u3002")),R.a.createElement("aside",{style:{marginTop:30}},R.a.createElement("div",{className:"mr20"},"\u6B65\u9AA42\uFF1A\u4E0A\u4F20\u586B\u5199\u5B8C\u6210\u7684\u6A21\u677F\u3002"),R.a.createElement("div",null,H&&R.a.createElement(p.a,{action:"/api/attachments.json",fileList:S,beforeUpload:K,onRemove:ee,withCredentials:!0,accept:".xls,.xlsx"},R.a.createElement(se.a,{type:"primary",icon:R.a.createElement(j.a,null)},"\u9009\u62E9\u6587\u4EF6"))))),R.a.createElement(U.a,{className:"mr40 pb20",size:10,style:{float:"right"}},R.a.createElement(se.a,{onClick:function(){return oe()}},"\u53D6\u6D88"),R.a.createElement(se.a,{onClick:function(){return ne()},type:"primary"},"\u786E\u8BA4"))))))};pe.a=Y},BU3w:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return p});var L=a("MNnm"),M="rc-util-key";function Te(ce){if(ce.attachTo)return ce.attachTo;var se=document.querySelector("head");return se||document.body}function U(ce){var se,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var k=document.createElement("style");if((se=F.csp)===null||se===void 0?void 0:se.nonce){var X;k.nonce=(X=F.csp)===null||X===void 0?void 0:X.nonce}k.innerHTML=ce;var re=Te(F),me=re.firstChild;return F.prepend&&re.prepend?re.prepend(k):F.prepend&&me?re.insertBefore(k,me):re.appendChild(k),k}var r=new Map;function p(ce,se){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=Te(F);if(!r.has(k)){var X=U("",F),re=X.parentNode;r.set(k,re),re.removeChild(X)}var me=Array.from(r.get(k).children).find(function(G){return G.tagName==="STYLE"&&G[M]===se});if(me){var J,R;if(((J=F.csp)===null||J===void 0?void 0:J.nonce)&&me.nonce!==((R=F.csp)===null||R===void 0?void 0:R.nonce)){var j;me.nonce=(j=F.csp)===null||j===void 0?void 0:j.nonce}return me.innerHTML!==ce&&(me.innerHTML=ce),me}var ie=U(ce,F);return ie[M]=se,ie}},GfqC:function(Ye,pe,a){"use strict";var L=a("q1tI"),M=a.n(L),Te=a("TSYQ"),U=a.n(Te);function r(x,h){var N="cannot "+x.method+" "+x.action+" "+h.status+"'",E=new Error(N);return E.status=h.status,E.method=x.method,E.url=x.action,E}function p(x){var h=x.responseText||x.response;if(!h)return h;try{return JSON.parse(h)}catch(N){return h}}function ce(x){var h=new XMLHttpRequest;x.onProgress&&h.upload&&(h.upload.onprogress=function($){$.total>0&&($.percent=$.loaded/$.total*100),x.onProgress($)});var N=new FormData;x.data&&Object.keys(x.data).forEach(function(T){var $=x.data[T];if(Array.isArray($)){$.forEach(function(ae){N.append(T+"[]",ae)});return}N.append(T,x.data[T])}),x.file instanceof Blob?N.append(x.filename,x.file,x.file.name):N.append(x.filename,x.file),h.onerror=function($){x.onError($)},h.onload=function(){return h.status<200||h.status>=300?x.onError(r(x,h),p(h)):x.onSuccess(p(h),h)},h.open(x.method,x.action,!0),x.withCredentials&&"withCredentials"in h&&(h.withCredentials=!0);var E=x.headers||{};return E["X-Requested-With"]!==null&&h.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(E).forEach(function(T){E[T]!==null&&h.setRequestHeader(T,E[T])}),h.send(N),{abort:function(){h.abort()}}}var se=+new Date,F=0;function k(){return"rc-upload-"+se+"-"+ ++F}function X(x,h){return x.indexOf(h,x.length-h.length)!==-1}var re=function(x,h){if(x&&h){var N=Array.isArray(h)?h:h.split(","),E=x.name||"",T=x.type||"",$=T.replace(/\/.*$/,"");return N.some(function(ae){var he=ae.trim();return he.charAt(0)==="."?X(E.toLowerCase(),he.toLowerCase()):/\/\*$/.test(he)?$===he.replace(/\/.*$/,""):T===he})}return!0};function me(x,h){var N=x.createReader(),E=[];function T(){N.readEntries(function($){var ae=Array.prototype.slice.apply($);E=E.concat(ae);var he=!ae.length;he?h(E):T()})}T()}var J=function(h,N,E){var T=function $(ae,he){he=he||"",ae.isFile?ae.file(function(Q){E(Q)&&(ae.fullPath&&!Q.webkitRelativePath&&(Object.defineProperties(Q,{webkitRelativePath:{writable:!0}}),Q.webkitRelativePath=ae.fullPath.replace(/^\//,""),Object.defineProperties(Q,{webkitRelativePath:{writable:!1}})),N([Q]))}):ae.isDirectory&&me(ae,function(Q){Q.forEach(function(ne){$(ne,""+he+ae.name+"/")})})};h.forEach(function($){T($.webkitGetAsEntry())})},R=J,j=Object.assign||function(x){for(var h=1;h=0)continue;if(!Object.prototype.hasOwnProperty.call(x,E))continue;N[E]=x[E]}return N}function Y(x,h){if(!(x instanceof h))throw new TypeError("Cannot call a class as a function")}function be(x,h){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:x}function I(x,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);x.prototype=Object.create(h&&h.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(x,h):x.__proto__=h)}var H=function(h){return Object.keys(h).reduce(function(N,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-"||E==="role")&&(N[E]=h[E]),N},{})},z=function(x){I(h,x);function h(){var N,E,T,$;Y(this,h);for(var ae=arguments.length,he=Array(ae),Q=0;Q1&&arguments[1]!==void 0?arguments[1]:1,je=We.length,ze=0;ze1&&arguments[1]!==void 0?arguments[1]:!1;return Object(H.a)(N).map(function(T,$){if(!r.isValidElement(T)||!T.type)return null;var ae=T.type.isSelectOptGroup,he=T.key,Q=T.props,ne=Q.children,oe=Object(ce.a)(Q,["children"]);return E||!ae?z(T):Object(I.a)(Object(I.a)({key:"__RC_SELECT_GRP__".concat(he===null?$:he,"__"),label:he},oe),{},{options:C(ne)})}).filter(function(T){return T})}var g=a("2Qr1"),l=a("qNPg"),v=a("U8pU"),B=a("Kwbf"),V=a("WKfj");function _e(N){var E=N.mode,T=N.options,$=N.children,ae=N.backfill,he=N.allowClear,Q=N.placeholder,ne=N.getInputElement,oe=N.showSearch,Z=N.onSearch,K=N.defaultOpen,ee=N.autoFocus,n=N.labelInValue,m=N.value,s=N.inputValue,A=N.optionLabelProp,d=E==="multiple"||E==="tags",q=oe!==void 0?oe:d||E==="combobox",ye=T||C($);if(Object(B.a)(E!=="tags"||ye.every(function(Ue){return!Ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),E==="tags"||E==="combobox"){var Ce=ye.some(function(Ue){return Ue.options?Ue.options.some(function(We){return typeof("value"in We?We.value:We.key)=="number"}):typeof("value"in Ue?Ue.value:Ue.key)=="number"});Object(B.a)(!Ce,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(B.a)(E!=="combobox"||!A,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(B.a)(E==="combobox"||!ae,"`backfill` only works with `combobox` mode."),Object(B.a)(E==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(B.b)(E!=="combobox"||!ne||!he||!Q,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Z&&!q&&E!=="combobox"&&E!=="tags"&&Object(B.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(B.b)(!K||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),m!=null){var Fe=Object(V.d)(m);Object(B.a)(!n||Fe.every(function(Ue){return Object(v.a)(Ue)==="object"&&("key"in Ue||"value"in Ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(B.a)(!d||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var Be=null;Object(H.a)($).some(function(Ue){if(!r.isValidElement(Ue)||!Ue.type)return!1;var We=Ue.type;if(We.isSelectOption)return!1;if(We.isSelectOptGroup){var Pt=Object(H.a)(Ue.props.children).every(function(Nt){return!r.isValidElement(Nt)||!Ue.type||Nt.type.isSelectOption?!0:(Be=Nt.type,!1)});return!Pt}return Be=We,!0}),Be&&Object(B.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Be.displayName||Be.name||Be,"`.")),Object(B.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var te=_e,S=Object(l.a)({prefixCls:"rc-select",components:{optionList:G},convertChildrenToData:C,flattenOptions:g.d,getLabeledValue:g.e,filterOptions:g.b,isValueDisabled:g.g,findValueOption:g.c,warningProps:te,fillOptionsWithMissingValue:g.a}),w=function(N){Object(Te.a)(T,N);var E=Object(U.a)(T);function T(){var $;return Object(L.a)(this,T),$=E.apply(this,arguments),$.selectRef=r.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(M.a)(T,[{key:"render",value:function(){return r.createElement(S,Object.assign({ref:this.selectRef},this.props))}}]),T}(r.Component);w.Option=ue,w.OptGroup=be;var x=w,h=pe.c=x},NdNG:function(Ye,pe,a){Ye.exports={flex_box_center:"flex_box_center___14pl3",flex_space_between:"flex_space_between___3BrPp",flex_box_vertical_center:"flex_box_vertical_center___3uNta",flex_box_center_end:"flex_box_center_end___2OAdL",flex_box_column:"flex_box_column___1Nwh3",customModal:"customModal___20MJx",content:"content___3jy8C",tabWarp:"tabWarp___cpvG0"}},NvD2:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return p});var L=a("Kwbf");function M(ce,se){var F=new Set;return ce.forEach(function(k){se.has(k)||F.add(k)}),F}function Te(ce){var se=ce||{},F=se.disabled,k=se.disableCheckbox,X=se.checkable;return!!(F||k)||X===!1}function U(ce,se,F,k){for(var X=new Set(ce),re=new Set,me=0;me<=F;me+=1){var J=se.get(me)||new Set;J.forEach(function(G){var le=G.key,ue=G.node,Y=G.children,be=Y===void 0?[]:Y;X.has(le)&&!k(ue)&&be.filter(function(I){return!k(I.node)}).forEach(function(I){X.add(I.key)})})}for(var R=new Set,j=F;j>=0;j-=1){var ie=se.get(j)||new Set;ie.forEach(function(G){var le=G.parent,ue=G.node;if(k(ue)||!G.parent||R.has(G.parent.key))return;if(k(G.parent.node)){R.add(le.key);return}var Y=!0,be=!1;(le.children||[]).filter(function(I){return!k(I.node)}).forEach(function(I){var H=I.key,z=X.has(H);Y&&!z&&(Y=!1),!be&&(z||re.has(H))&&(be=!0)}),Y&&X.add(le.key),be&&re.add(le.key),R.add(le.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(M(re,X))}}function r(ce,se,F,k,X){for(var re=new Set(ce),me=new Set(se),J=0;J<=k;J+=1){var R=F.get(J)||new Set;R.forEach(function(le){var ue=le.key,Y=le.node,be=le.children,I=be===void 0?[]:be;!re.has(ue)&&!me.has(ue)&&!X(Y)&&I.filter(function(H){return!X(H.node)}).forEach(function(H){re.delete(H.key)})})}me=new Set;for(var j=new Set,ie=k;ie>=0;ie-=1){var G=F.get(ie)||new Set;G.forEach(function(le){var ue=le.parent,Y=le.node;if(X(Y)||!le.parent||j.has(le.parent.key))return;if(X(le.parent.node)){j.add(ue.key);return}var be=!0,I=!1;(ue.children||[]).filter(function(H){return!X(H.node)}).forEach(function(H){var z=H.key,C=re.has(z);be&&!C&&(be=!1),!I&&(C||me.has(z))&&(I=!0)}),be||re.delete(ue.key),I&&me.add(ue.key),j.add(ue.key)})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(M(me,re))}}function p(ce,se,F,k){var X=[],re;k?re=k:re=Te;var me=new Set(ce.filter(function(ie){var G=!!F[ie];return G||X.push(ie),G})),J=new Map,R=0;Object.keys(F).forEach(function(ie){var G=F[ie],le=G.level,ue=J.get(le);ue||(ue=new Set,J.set(le,ue)),ue.add(G),R=Math.max(R,le)}),Object(L.a)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ie){return"'".concat(ie,"'")}).join(", ")));var j;return se===!0?j=U(me,J,R,re):j=r(me,se.halfCheckedKeys,J,R,re),j}},OZM5:function(Ye,pe,a){"use strict";a.d(pe,"b",function(){return k}),a.d(pe,"a",function(){return X}),a.d(pe,"k",function(){return re}),a.d(pe,"h",function(){return me}),a.d(pe,"i",function(){return J}),a.d(pe,"g",function(){return R}),a.d(pe,"c",function(){return j}),a.d(pe,"d",function(){return ie}),a.d(pe,"j",function(){return ue}),a.d(pe,"e",function(){return Y}),a.d(pe,"f",function(){return be});var L=a("KQm4"),M=a("U8pU"),Te=a("Ff2n"),U=a("q1tI"),r=a.n(U),p=a("Kwbf"),ce=a("WaYH"),se=.25,F=2;function k(I,H){var z=I.slice(),C=z.indexOf(H);return C>=0&&z.splice(C,1),z}function X(I,H){var z=I.slice();return z.indexOf(H)===-1&&z.push(H),z}function re(I){return I.split("-")}function me(I,H){return"".concat(I,"-").concat(H)}function J(I){return I&&I.type&&I.type.isTreeNode}function R(I,H){var z=[I],C=H[I];function g(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(v){var B=v.key,V=v.children;z.push(B),g(V)})}return g(C.children),z}function j(I,H){var z=I.clientY,C=H.selectHandle.getBoundingClientRect(),g=C.top,l=C.bottom,v=C.height,B=Math.max(v*se,F);return z<=g+B?-1:z>=l-B?1:0}function ie(I,H){if(!I)return;var z=H.multiple;return z?I.slice():I.length?[I[0]]:I}var G=function(H){return H};function le(I,H){if(!I)return[];var z=H||{},C=z.processProps,g=C===void 0?G:C,l=Array.isArray(I)?I:[I];return l.map(function(v){var B=v.children,V=Object(Te.a)(v,["children"]),_e=le(B,H);return r.a.createElement(ce.a,Object.assign({},g(V)),_e)})}function ue(I){if(!I)return null;var H;if(Array.isArray(I))H={checkedKeys:I,halfCheckedKeys:void 0};else if(Object(M.a)(I)==="object")H={checkedKeys:I.checked||void 0,halfCheckedKeys:I.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return H}function Y(I,H){var z=new Set;function C(g){if(z.has(g))return;var l=H[g];if(!l)return;z.add(g);var v=l.parent,B=l.node;if(B.disabled)return;v&&C(v.key)}return(I||[]).forEach(function(g){C(g)}),Object(L.a)(z)}function be(I){var H={};return Object.keys(I).forEach(function(z){(z.startsWith("data-")||z.startsWith("aria-"))&&(H[z]=I[z])}),H}},PsNh:function(Ye,pe,a){Ye.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Ye,pe,a){var L=a("wTVA"),M=a("EbDI"),Te=a("ZhPi"),U=a("wkBT");function r(p){return L(p)||M(p)||Te(p)||U()}Ye.exports=r,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports},WaYH:function(Ye,pe,a){"use strict";var L=a("rePB"),M=a("Ff2n"),Te=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),p=a("JX7q"),ce=a("Ji7U"),se=a("LK+K"),F=a("q1tI"),k=a("TSYQ"),X=a.n(k),re=a("sboe"),me=a("OZM5"),J=function(H){var z=H.prefixCls,C=H.level,g=H.isStart,l=H.isEnd;if(!C)return null;for(var v="".concat(z,"-indent-unit"),B=[],V=0;V1&&arguments[1]!==void 0?arguments[1]:!1,oe=Q.getAttribute("id")||Q.getAttribute("data-reactid")||Q.getAttribute("name");if(ne&&te[oe])return te[oe];var Z=window.getComputedStyle(Q),K=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),n=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),m=_e.map(function(A){return"".concat(A,":").concat(Z.getPropertyValue(A))}).join(";"),s={sizingStyle:m,paddingSize:ee,borderSize:n,boxSizing:K};return ne&&oe&&(te[oe]=s),s}function x(Q){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;T||(T=document.createElement("textarea"),T.setAttribute("tab-index","-1"),T.setAttribute("aria-hidden","true"),document.body.appendChild(T)),Q.getAttribute("wrap")?T.setAttribute("wrap",Q.getAttribute("wrap")):T.removeAttribute("wrap");var K=w(Q,ne),ee=K.paddingSize,n=K.borderSize,m=K.boxSizing,s=K.sizingStyle;T.setAttribute("style","".concat(s,";").concat(V)),T.value=Q.value||Q.placeholder||"";var A=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,q=T.scrollHeight,ye;if(m==="border-box"?q+=n:m==="content-box"&&(q-=ee),oe!==null||Z!==null){T.value=" ";var Ce=T.scrollHeight-ee;oe!==null&&(A=Ce*oe,m==="border-box"&&(A=A+ee+n),q=Math.max(A,q)),Z!==null&&(d=Ce*Z,m==="border-box"&&(d=d+ee+n),ye=q>d?"":"hidden",q=Math.min(d,q))}return{height:q,minHeight:A,maxHeight:d,overflowY:ye,resize:"none"}}var h=a("Gytx"),N=a.n(h),E;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.RESIZING=1]="RESIZING",Q[Q.RESIZED=2]="RESIZED"})(E||(E={}));var S=function(Q){Object(U.a)(oe,Q);var ne=Object(r.a)(oe);function oe(Z){var K;return Object(M.a)(this,oe),K=ne.call(this,Z),K.nextFrameActionId=void 0,K.resizeFrameId=void 0,K.textArea=void 0,K.saveTextArea=function(ee){K.textArea=ee},K.handleResize=function(ee){var n=K.state.resizeStatus,m=K.props,s=m.autoSize,A=m.onResize;if(n!==E.NONE)return;typeof A=="function"&&A(ee),s&&K.resizeOnNextFrame()},K.resizeOnNextFrame=function(){cancelAnimationFrame(K.nextFrameActionId),K.nextFrameActionId=requestAnimationFrame(K.resizeTextarea)},K.resizeTextarea=function(){var ee=K.props.autoSize;if(!ee||!K.textArea)return;var n=ee.minRows,m=ee.maxRows,s=x(K.textArea,!1,n,m);K.setState({textareaStyles:s,resizeStatus:E.RESIZING},function(){cancelAnimationFrame(K.resizeFrameId),K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:E.RESIZED},function(){K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:E.NONE}),K.fixFirefoxAutoScroll()})})})})},K.renderTextArea=function(){var ee=K.props,n=ee.prefixCls,m=n===void 0?"rc-textarea":n,s=ee.autoSize,A=ee.onResize,d=ee.className,q=ee.disabled,ye=K.state,Ce=ye.textareaStyles,Fe=ye.resizeStatus,Be=Object(l.a)(K.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ue=B()(m,d,Object(se.a)({},"".concat(m,"-disabled"),q));"value"in Be&&(Be.value=Be.value||"");var We=Object(ce.a)(Object(ce.a)(Object(ce.a)({},K.props.style),Ce),Fe===E.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(g,{onResize:K.handleResize,disabled:!(s||A)},p.createElement("textarea",Object(L.a)({},Be,{className:Ue,style:We,ref:K.saveTextArea})))},K.state={textareaStyles:{},resizeStatus:E.NONE},K}return Object(Se.a)(oe,[{key:"componentDidUpdate",value:function(K){(K.value!==this.props.value||!N()(K.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var K=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(K,ee)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),oe}(p.Component),$=S,ae=function(Q){Object(U.a)(oe,Q);var ne=Object(r.a)(oe);function oe(Z){var K;Object(M.a)(this,oe),K=ne.call(this,Z),K.resizableTextArea=void 0,K.focus=function(){K.resizableTextArea.textArea.focus()},K.saveTextArea=function(n){K.resizableTextArea=n},K.handleChange=function(n){var m=K.props.onChange;K.setValue(n.target.value,function(){K.resizableTextArea.resizeTextarea()}),m&&m(n)},K.handleKeyDown=function(n){var m=K.props,s=m.onPressEnter,A=m.onKeyDown;n.keyCode===13&&s&&s(n),A&&A(n)};var ee=typeof Z.value=="undefined"||Z.value===null?Z.defaultValue:Z.value;return K.state={value:ee},K}return Object(Se.a)(oe,[{key:"setValue",value:function(K,ee){"value"in this.props||this.setState({value:K},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement($,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(K){return"value"in K?{value:K.value}:null}}]),oe}(p.Component),he=pe.default=ae},ZW5e:function(Ye,pe,a){Ye.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Ye,pe,a){"use strict";function L(X){return typeof X=="object"&&X!=null&&X.nodeType===1}function M(X,re){return(!re||X!=="hidden")&&X!=="visible"&&X!=="clip"}function Se(X,re){if(X.clientHeightre||j>X&&ie=re&&G>=me?j-X-J:ie>re&&Gme?ie-re+R:0}var r=function(X,re){var me=window,J=re.scrollMode,R=re.block,j=re.inline,ie=re.boundary,G=re.skipOverflowHiddenElements,le=typeof ie=="function"?ie:function(Ce){return Ce!==ie};if(!L(X))throw new TypeError("Invalid target");for(var ue=document.scrollingElement||document.documentElement,Y=[],be=X;L(be)&&le(be);){if((be=be.parentElement)===ue){Y.push(be);break}be!=null&&be===document.body&&Se(be)&&!Se(document.documentElement)||be!=null&&Se(be,G)&&Y.push(be)}for(var I=me.visualViewport?me.visualViewport.width:innerWidth,H=me.visualViewport?me.visualViewport.height:innerHeight,z=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,g=X.getBoundingClientRect(),l=g.height,v=g.width,B=g.top,V=g.right,_e=g.bottom,te=g.left,T=R==="start"||R==="nearest"?B:R==="end"?_e:B+l/2,w=j==="center"?te+v/2:j==="end"?V:te,x=[],h=0;h=0&&te>=0&&_e<=H&&V<=I&&B>=ae&&_e<=Q&&te>=ne&&V<=he)return x;var oe=getComputedStyle(N),Z=parseInt(oe.borderLeftWidth,10),K=parseInt(oe.borderTopWidth,10),ee=parseInt(oe.borderRightWidth,10),n=parseInt(oe.borderBottomWidth,10),m=0,s=0,A="offsetWidth"in N?N.offsetWidth-N.clientWidth-Z-ee:0,d="offsetHeight"in N?N.offsetHeight-N.clientHeight-K-n:0;if(ue===N)m=R==="start"?T:R==="end"?T-H:R==="nearest"?U(C,C+H,H,K,n,C+T,C+T+l,l):T-H/2,s=j==="start"?w:j==="center"?w-I/2:j==="end"?w-I:U(z,z+I,I,Z,ee,z+w,z+w+v,v),m=Math.max(0,m+C),s=Math.max(0,s+z);else{m=R==="start"?T-ae-K:R==="end"?T-Q+n+d:R==="nearest"?U(ae,Q,S,K,n+d,T,T+l,l):T-(ae+S/2)+d/2,s=j==="start"?w-ne-Z:j==="center"?w-(ne+$/2)+A/2:j==="end"?w-he+ee+A:U(ne,he,$,Z,ee+A,w,w+v,v);var q=N.scrollLeft,ye=N.scrollTop;T+=ye-(m=Math.max(0,Math.min(ye+m,N.scrollHeight-S+d))),w+=q-(s=Math.max(0,Math.min(q+s,N.scrollWidth-$+A)))}x.push({el:N,top:m,left:s})}return x};function p(X){return X===Object(X)&&Object.keys(X).length!==0}function ce(X,re){re===void 0&&(re="auto");var me="scrollBehavior"in document.body.style;X.forEach(function(J){var R=J.el,j=J.top,ie=J.left;R.scroll&&me?R.scroll({top:j,left:ie,behavior:re}):(R.scrollTop=j,R.scrollLeft=ie)})}function se(X){return X===!1?{block:"end",inline:"nearest"}:p(X)?X:{block:"start",inline:"nearest"}}function F(X,re){var me=!X.ownerDocument.documentElement.contains(X);if(p(re)&&typeof re.behavior=="function")return re.behavior(me?[]:r(X,re));if(me)return;var J=se(re);return ce(r(X,J),J.behavior)}var k=pe.a=F},Zss7:function(Ye,pe,a){var L;(function(M){var Se=/^\s+/,U=/\s+$/,r=0,p=M.round,ce=M.min,se=M.max,F=M.random;function k(n,m){if(n=n||"",m=m||{},n instanceof k)return n;if(!(this instanceof k))return new k(n,m);var s=X(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=p(100*this._a)/100,this._format=m.format||s.format,this._gradientType=m.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=s.ok,this._tc_id=r++}k.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),m,s,A,d,q,ye;return m=n.r/255,s=n.g/255,A=n.b/255,m<=.03928?d=m/12.92:d=M.pow((m+.055)/1.055,2.4),s<=.03928?q=s/12.92:q=M.pow((s+.055)/1.055,2.4),A<=.03928?ye=A/12.92:ye=M.pow((A+.055)/1.055,2.4),.2126*d+.7152*q+.0722*ye},setAlpha:function(n){return this._a=x(n),this._roundA=p(100*this._a)/100,this},toHsv:function(){var n=R(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=R(this._r,this._g,this._b),m=p(n.h*360),s=p(n.s*100),A=p(n.v*100);return this._a==1?"hsv("+m+", "+s+"%, "+A+"%)":"hsva("+m+", "+s+"%, "+A+"%, "+this._roundA+")"},toHsl:function(){var n=me(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=me(this._r,this._g,this._b),m=p(n.h*360),s=p(n.s*100),A=p(n.l*100);return this._a==1?"hsl("+m+", "+s+"%, "+A+"%)":"hsla("+m+", "+s+"%, "+A+"%, "+this._roundA+")"},toHex:function(n){return ie(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return G(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(h(this._r,255)*100)+"%",g:p(h(this._g,255)*100)+"%",b:p(h(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(h(this._r,255)*100)+"%, "+p(h(this._g,255)*100)+"%, "+p(h(this._b,255)*100)+"%)":"rgba("+p(h(this._r,255)*100)+"%, "+p(h(this._g,255)*100)+"%, "+p(h(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:T[ie(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var m="#"+le(this._r,this._g,this._b,this._a),s=m,A=this._gradientType?"GradientType = 1, ":"";if(n){var d=k(n);s="#"+le(d._r,d._g,d._b,d._a)}return"progid:DXImageTransform.Microsoft.gradient("+A+"startColorstr="+m+",endColorstr="+s+")"},toString:function(n){var m=!!n;n=n||this._format;var s=!1,A=this._a<1&&this._a>=0,d=!m&&A&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return d?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(n,m){var s=n.apply(null,[this].concat([].slice.call(m)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(I,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(ue,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(be,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(n,m){return n.apply(null,[this].concat([].slice.call(m)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(_e,arguments)},splitcomplement:function(){return this._applyCombination(B,arguments)},triad:function(){return this._applyCombination(l,arguments)},tetrad:function(){return this._applyCombination(v,arguments)}},k.fromRatio=function(n,m){if(typeof n=="object"){var s={};for(var A in n)n.hasOwnProperty(A)&&(A==="a"?s[A]=n[A]:s[A]=he(n[A]));n=s}return k(n,m)};function X(n){var m={r:0,g:0,b:0},s=1,A=null,d=null,q=null,ye=!1,Ce=!1;return typeof n=="string"&&(n=K(n)),typeof n=="object"&&(Z(n.r)&&Z(n.g)&&Z(n.b)?(m=re(n.r,n.g,n.b),ye=!0,Ce=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Z(n.h)&&Z(n.s)&&Z(n.v)?(A=he(n.s),d=he(n.v),m=j(n.h,A,d),ye=!0,Ce="hsv"):Z(n.h)&&Z(n.s)&&Z(n.l)&&(A=he(n.s),q=he(n.l),m=J(n.h,A,q),ye=!0,Ce="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=x(s),{ok:ye,format:n.format||Ce,r:ce(255,se(m.r,0)),g:ce(255,se(m.g,0)),b:ce(255,se(m.b,0)),a:s}}function re(n,m,s){return{r:h(n,255)*255,g:h(m,255)*255,b:h(s,255)*255}}function me(n,m,s){n=h(n,255),m=h(m,255),s=h(s,255);var A=se(n,m,s),d=ce(n,m,s),q,ye,Ce=(A+d)/2;if(A==d)q=ye=0;else{var Fe=A-d;ye=Ce>.5?Fe/(2-A-d):Fe/(A+d);switch(A){case n:q=(m-s)/Fe+(m1&&(We-=1),We<1/6?Be+(Ue-Be)*6*We:We<1/2?Ue:We<2/3?Be+(Ue-Be)*(2/3-We)*6:Be}if(m===0)A=d=q=s;else{var Ce=s<.5?s*(1+m):s+m-s*m,Fe=2*s-Ce;A=ye(Fe,Ce,n+1/3),d=ye(Fe,Ce,n),q=ye(Fe,Ce,n-1/3)}return{r:A*255,g:d*255,b:q*255}}function R(n,m,s){n=h(n,255),m=h(m,255),s=h(s,255);var A=se(n,m,s),d=ce(n,m,s),q,ye,Ce=A,Fe=A-d;if(ye=A===0?0:Fe/A,A==d)q=0;else{switch(A){case n:q=(m-s)/Fe+(m>1)+720)%360;--m;)A.h=(A.h+d)%360,q.push(k(A));return q}function _e(n,m){m=m||6;for(var s=k(n).toHsv(),A=s.h,d=s.s,q=s.v,ye=[],Ce=1/m;m--;)ye.push(k({h:A,s:d,v:q})),q=(q+Ce)%1;return ye}k.mix=function(n,m,s){s=s===0?0:s||50;var A=k(n).toRgb(),d=k(m).toRgb(),q=s/100,ye={r:(d.r-A.r)*q+A.r,g:(d.g-A.g)*q+A.g,b:(d.b-A.b)*q+A.b,a:(d.a-A.a)*q+A.a};return k(ye)},k.readability=function(n,m){var s=k(n),A=k(m);return(M.max(s.getLuminance(),A.getLuminance())+.05)/(M.min(s.getLuminance(),A.getLuminance())+.05)},k.isReadable=function(n,m,s){var A=k.readability(n,m),d,q;q=!1,d=ee(s);switch(d.level+d.size){case"AAsmall":case"AAAlarge":q=A>=4.5;break;case"AAlarge":q=A>=3;break;case"AAAsmall":q=A>=7;break}return q},k.mostReadable=function(n,m,s){var A=null,d=0,q,ye,Ce,Fe;s=s||{},ye=s.includeFallbackColors,Ce=s.level,Fe=s.size;for(var Be=0;Bed&&(d=q,A=k(m[Be]));return k.isReadable(n,A,{level:Ce,size:Fe})||!ye?A:(s.includeFallbackColors=!1,k.mostReadable(n,["#fff","#000"],s))};var te=k.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"},T=k.hexNames=w(te);function w(n){var m={};for(var s in n)n.hasOwnProperty(s)&&(m[n[s]]=s);return m}function x(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function h(n,m){S(n)&&(n="100%");var s=$(n);return n=ce(m,se(0,parseFloat(n))),s&&(n=parseInt(n*m,10)/100),M.abs(n-m)<1e-6?1:n%m/parseFloat(m)}function N(n){return ce(1,se(0,n))}function E(n){return parseInt(n,16)}function S(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function $(n){return typeof n=="string"&&n.indexOf("%")!=-1}function ae(n){return n.length==1?"0"+n:""+n}function he(n){return n<=1&&(n=n*100+"%"),n}function Q(n){return M.round(parseFloat(n)*255).toString(16)}function ne(n){return E(n)/255}var oe=function(){var n="[-\\+]?\\d+%?",m="[-\\+]?\\d*\\.\\d+%?",s="(?:"+m+")|(?:"+n+")",A="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",d="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+d),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 Z(n){return!!oe.CSS_UNIT.exec(n)}function K(n){n=n.replace(Se,"").replace(U,"").toLowerCase();var m=!1;if(te[n])n=te[n],m=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=oe.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=oe.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=oe.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=oe.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=oe.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=oe.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=oe.hex8.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),a:ne(s[4]),format:m?"name":"hex8"}:(s=oe.hex6.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),format:m?"name":"hex"}:(s=oe.hex4.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),a:ne(s[4]+""+s[4]),format:m?"name":"hex8"}:(s=oe.hex3.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),format:m?"name":"hex"}:!1}function ee(n){var m,s;return n=n||{level:"AA",size:"small"},m=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),m!=="AA"&&m!=="AAA"&&(m="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:m,size:s}}Ye.exports?Ye.exports=k:!(L=function(){return k}.call(pe,a,pe,Ye),L!==void 0&&(Ye.exports=L))})(Math)},b81D:function(Ye,pe,a){Ye.exports={flex_box_center:"flex_box_center___2-oMM",flex_space_between:"flex_space_between___3P-GS",flex_box_vertical_center:"flex_box_vertical_center___mzFTH",flex_box_center_end:"flex_box_center_end___1tMDC",flex_box_column:"flex_box_column___6_XPH",customModal:"customModal___1vshf",customTable:"customTable___30Yvg"}},bT9E:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return M});var L=a("VTBJ");function M(Se,U){var r=Object(L.a)({},Se);return Array.isArray(U)&&U.forEach(function(p){delete r[p]}),r}},biw7:function(Ye,pe,a){"use strict";var L=a("q1tI"),M=a.n(L),Se=L.createContext(null);pe.a=Se},dRIv:function(Ye,pe,a){"use strict";a.r(pe);var L=a("g9YV"),M=a("wCAj"),Se=a("OaEy"),U=a("2fM7"),r=a("Znn+"),p=a("ZTPi"),ce=a("DYRE"),se=a("zeV3"),F=a("+L6B"),k=a("2/Rp"),X=a("7Kak"),re=a("9yH6"),me=a("5NDa"),J=a("5rEg"),R=a("5Dmo"),j=a("3S7+"),ie=a("2qtc"),G=a("kLXV"),le=a("miYZ"),ue=a("tsqr"),Y=a("k1fw"),be=a("9og8"),I=a("y8nQ"),H=a("Vl3Y"),z=a("tJVT"),C=a("WmNS"),g=a.n(C),l=a("q1tI"),v=a.n(l),B=a("LTI6"),V=a.n(B),_e=a("9kvl"),te=a("9ZfG"),T=a("ErOA"),w=a("LvDl"),x=a("b81D"),h=a.n(x),N=function(Z){var K=Z.visible,ee=Z.onOk,n=Z.onCancel,m=Z.title,s=m===void 0?"\u9009\u62E9\u8BA4\u8BC1\u56E2\u961F\u6559\u5E08":m,A=Z.schoolId,d={page:1,per_page:20,total:0,name:"",save_name:"",tel:"",save_tel:""},q=Object(l.useState)(Object(Y.a)({},d)),ye=Object(z.a)(q,2),Ce=ye[0],Fe=ye[1],Be=Object(l.useState)([]),Ue=Object(z.a)(Be,2),We=Ue[0],Pt=Ue[1],Nt=Object(l.useState)([]),Lt=Object(z.a)(Nt,2),Ct=Lt[0],Ut=Lt[1],ln=Object(l.useState)(!1),D=Object(z.a)(ln,2),ve=D[0],ge=D[1],Te=Object(l.useState)(!1),we=Object(z.a)(Te,2),Re=we[0],xe=we[1];Object(l.useEffect)(function(){K?Ee(d):(Pt([]),ge(!1),Fe(d))},[K]);var Ee=function(){var Le=Object(be.a)(g.a.mark(function Ie(st){var tt,Ze;return g.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return tt=Object(w.cloneDeep)(st),tt.school_id=A,xe(!0),kt.next=5,Object(T.a)("/api/ec_years/1/ec_teachers/search_users.json",{method:"get",params:tt});case 5:Ze=kt.sent,Ze!=null&&Ze.data&&(Ce.total=Ze==null?void 0:Ze.count,Ce.save_name=Ce.save_name,Ce.save_tel=Ce.tel,Fe(Object(Y.a)({},Ce)),Ut((Ze==null?void 0:Ze.data)||[])),xe(!1);case 8:case"end":return kt.stop()}},Ie)}));return function(st){return Le.apply(this,arguments)}}(),je=function(){ge(!0),ee(We,function(){ge(!1)})},ze=function(){n()},Pe={selectedRowKeys:We,columnWidth:40,onChange:function(Ie){return Pt(Ie)}},ke=function(Ie,st,tt){Ce.page=Ie==null?void 0:Ie.current,Ce.per_page=Ie==null?void 0:Ie.pageSize,Fe(Object(Y.a)({},Ce)),Ee(Ce)},Je=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u624B\u673A\u53F7\u7801",dataIndex:"phone",render:function(Ie){if(!Ie)return"";var st=/^(\d{3})\d{4}(\d{4})$/,tt=Ie==null?void 0:Ie.replace(st,"$1****$2");return v.a.createElement("span",null,tt)}},{title:"\u804C\u79F0",dataIndex:"pro"},{title:"\u804C\u52A1",dataIndex:"identity"},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department"}];return v.a.createElement(G.a,{title:s,visible:K,onOk:je,centered:!0,wrapClassName:h.a.customModal,onCancel:ze,confirmLoading:ve,width:"800px",okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88"},v.a.createElement(se.a,{size:20,className:"ml40"},v.a.createElement(J.a.Search,{style:{width:343,height:38},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",value:Ce==null?void 0:Ce.save_name,onChange:function(Ie){Ce.save_name=Ie.target.value,Fe(Object(Y.a)({},Ce))},onSearch:function(){Ce.page=1,Ce.name=Ce.save_name,Fe(Object(Y.a)({},Ce)),Ee(Ce)}})),v.a.createElement("div",{style:{color:"#FA6400"},className:"mt10 mb10 ml40 pr20"},"!\u9700\u4ECE\u5E73\u53F0\u9009\u62E9\u5DF2\u6CE8\u518C\u7684\u672C\u5B66\u6821\u6559\u5E08\u3002\u672A\u51FA\u73B0\u5728\u5217\u8868\u7684\u6559\u5E08\u8BF7\u5148\u5728\u5E73\u53F0\u6CE8\u518C\u8D26\u53F7\uFF0C\u7136\u540E\u5728\u8D26\u53F7\u7BA1\u7406-\u57FA\u672C\u4FE1\u606F\u9875\u9762\uFF0C\u6B63\u786E\u586B\u5199\u5B66\u6821/\u5355\u4F4D\u4FE1\u606F\u3002"),v.a.createElement(M.a,{rowSelection:Pe,dataSource:Ct,bordered:!1,rowKey:"id",scroll:{y:400},columns:Je,loading:Re,className:h.a.customTable,onChange:ke,pagination:{pageSize:Ce.per_page,total:Ce.total,current:Ce.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"],showTotal:function(Ie){return v.a.createElement("span",{className:"mr10"},"\u5171",v.a.createElement("span",{className:"c-orange"},Ie),"\u6761\u6570\u636E")}}}))},E=N,S=a("g+eg"),$=a("1vsH"),ae=a("m3rI"),he=a("fj85"),Q=function(Z){var K,ee,n=Z.user,m={page:1,per_page:20,total:0,search:"",tab:"1",save_search:"",ec_major_school_id:null,ec_year_id:null,category:"name",sort_by:null,direction:null},s=Object(l.useState)(m),A=Object(z.a)(s,2),d=A[0],q=A[1],ye=Object(l.useState)(!0),Ce=Object(z.a)(ye,2),Fe=Ce[0],Be=Ce[1],Ue=Object(l.useState)(!1),We=Object(z.a)(Ue,2),Pt=We[0],Nt=We[1],Lt=Object(l.useState)(!1),Ct=Object(z.a)(Lt,2),Ut=Ct[0],ln=Ct[1],D=Object(l.useState)(!1),ve=Object(z.a)(D,2),ge=ve[0],Te=ve[1],we=Object(l.useState)(!1),Re=Object(z.a)(we,2),xe=Re[0],Ee=Re[1],je=Object(l.useState)(!1),ze=Object(z.a)(je,2),Pe=ze[0],ke=ze[1],Je=Object(l.useState)(!1),Le=Object(z.a)(Je,2),Ie=Le[0],st=Le[1],tt=Object(l.useState)([]),Ze=Object(z.a)(tt,2),Qe=Ze[0],kt=Ze[1],It=Object(l.useState)([]),Ot=Object(z.a)(It,2),Kt=Ot[0],Qt=Ot[1],mt=Object(l.useState)([]),Zt=Object(z.a)(mt,2),_t=Zt[0],xt=Zt[1],bt=Object(l.useState)([]),et=Object(z.a)(bt,2),Dt=et[0],en=et[1],tn=H.a.useForm(),wt=Object(z.a)(tn,1),un=wt[0],Cn=Object(l.useRef)(null);Object(l.useEffect)(function(){var Ne;n!=null&&(Ne=n.userInfo)!==null&&Ne!==void 0&&Ne.school_id&&On()},[n==null||((K=n.userInfo)===null||K===void 0)?void 0:K.school_id]);var an=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De,nt,Ge;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return De=Object(w.cloneDeep)(Ae),S.a.setItem(n==null||((He=n.userInfo)===null||He===void 0)?void 0:He.login,[De==null?void 0:De.ec_major_school_id,De==null?void 0:De.ec_year_id]),De[Ae==null?void 0:Ae.category]=Ae==null?void 0:Ae.search,(Ae==null?void 0:Ae.tab)==="2"&&(De.school_id=n==null||((nt=n.userInfo)===null||nt===void 0)?void 0:nt.school_id),Be(!0),pt.next=7,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/").concat((Ae==null?void 0:Ae.tab)==="1"?"ec_course_teachers":"ec_teachers",".json"),{method:"get",params:De});case 7:Ge=pt.sent,Ge!=null&&Ge.data&&(en((Ge==null?void 0:Ge.data)||[]),d.total=Ge==null?void 0:Ge.count,d.save_search=d.search,q(Object(Y.a)({},d))),Be(!1);case 10:case"end":return pt.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),hn=function(){var Oe=Object(w.cloneDeep)(d);if(Oe[d==null?void 0:d.category]=d==null?void 0:d.search,(d==null?void 0:d.tab)==="2"){var Ae;Oe.school_id=n==null||((Ae=n.userInfo)===null||Ae===void 0)?void 0:Ae.school_id}Object($.t)("",Object($.U)({url:ae.a.API_SERVER+"/api/ec_years/".concat(d.ec_year_id,"/").concat((d==null?void 0:d.tab)==="1"?"ec_course_teachers":"ec_teachers",".xlsx"),query:Oe}))},On=function(){var Ne=Object(be.a)(g.a.mark(function Oe(){var Ae,He,De,nt,Ge,Rt,pt,jt,Gt,vn,jn,Bt;return g.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(T.a)("/api/schools/".concat(n==null||((Ae=n.userInfo)===null||Ae===void 0)?void 0:Ae.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Gt=nn.sent,Gt!=null&&(He=Gt.data)!==null&&He!==void 0&&(De=He[0])!==null&&De!==void 0&&De.ec_major_school_id){nn.next=7;break}return Be(!1),Nt(!0),nn.abrupt("return");case 7:return vn=S.a.getItem(n==null||((nt=n.userInfo)===null||nt===void 0)?void 0:nt.login),jn=vn[0]||(Gt==null||((Ge=Gt.data)===null||Ge===void 0||((Rt=Ge[0])===null||Rt===void 0))?void 0:Rt.ec_major_school_id),nn.next=11,Object(T.a)("/api/ec_major_schools/".concat(jn,"/ec_years/get_year_list.json"),{method:"get"});case 11:Bt=nn.sent,d.ec_major_school_id=jn,d.ec_year_id=vn[1]||(Bt==null||((pt=Bt.data)===null||pt===void 0||((jt=pt[0])===null||jt===void 0))?void 0:jt.ec_year_id),Qt((Gt==null?void 0:Gt.data)||[]),xt((Bt==null?void 0:Bt.data)||[]),q(d),an(d);case 18:case"end":return nn.stop()}},Oe)}));return function(){return Ne.apply(this,arguments)}}(),Dn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De,nt;return g.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(T.a)("/api/ec_major_schools/".concat(Ae,"/ec_years/get_year_list.json"),{method:"get"});case 2:nt=Rt.sent,d.ec_major_school_id=Ae,d.ec_year_id=nt==null||((He=nt.data)===null||He===void 0||((De=He[0])===null||De===void 0))?void 0:De.ec_year_id,xt((nt==null?void 0:nt.data)||[]),q(d),an(d);case 8:case"end":return Rt.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),_n=function(Oe,Ae){if(d.page=1,d[Ae]=Oe,Ae==="category"){d.search="",d.save_search="",q(Object(Y.a)({},d));return}if(Ae==="ec_major_school_id"){Dn(Oe);return}Ae==="ec_year_id"&&(q(Object(Y.a)({},d)),an(d))},Hn=function(Oe){d.page=1,d.save_search=Oe,q(Object(Y.a)({},d))},cn=function(Oe){if(Oe.length===0){ue.b.warn("\u8BF7\u9009\u62E9\u8981\u79FB\u9664\u7684\u6559\u5E08");return}G.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Ae=Object(be.a)(g.a.mark(function De(){var nt,Ge;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/").concat((d==null?void 0:d.tab)==="1"?"ec_course_teachers":"ec_teachers",".json"),{method:"delete",body:{ids:Oe}});case 2:nt=pt.sent,(nt==null?void 0:nt.status)===0&&(Ge=Oe.length===Dt.length&&d.page>1?d.page-1:d.page,d.page=Ge,kt([]),q(Object(Y.a)({},d)),an(d));case 4:case"end":return pt.stop()}},De)}));function He(){return Ae.apply(this,arguments)}return He}()})},Kn=function(Oe,Ae,He){if(d.page=Oe==null?void 0:Oe.current,d.per_page=Oe==null?void 0:Oe.pageSize,He!=null&&He.order?(d.sort_by=He==null?void 0:He.field,d.direction=(He==null?void 0:He.order)==="ascend"?"asc":"desc"):(d.sort_by=null,d.direction=null),q(Object(Y.a)({},d)),Vt)return;an(d)},An={selectedRowKeys:Qe,columnWidth:54,onChange:function(Oe){return kt(Oe)},getCheckboxProps:function(Oe){return{disabled:Oe.is_manager}}},Fn=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Oe,Ae,He){return d.per_page*(d.page-1)+He+1}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0,sortOrder:d.sort_by==="name"?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe,Ae){return Oe?v.a.createElement("span",null,Ae.is_manager&&v.a.createElement(j.a,{title:"\u7CFB\u7EDF\u7BA1\u7406\u5458"},v.a.createElement("i",{className:"iconfont icon-ren mr5"})),Oe):"--"}},{title:"\u624B\u673A\u53F7\u7801",dataIndex:(d==null?void 0:d.tab)==="1"?"tel":"phone",ellipsis:!0,sorter:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"tel":"phone")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||"--"}},{title:"\u90AE\u7BB1",dataIndex:(d==null?void 0:d.tab)==="1"?"email":"mail",ellipsis:!0,sorter:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"email":"mail")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||"--"}},{title:"\u804C\u79F0",dataIndex:(d==null?void 0:d.tab)==="1"?"pro":"technical_title",ellipsis:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"pro":"technical_title")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||""}},{title:"\u804C\u52A1",dataIndex:(d==null?void 0:d.tab)==="1"?"job":"identity",ellipsis:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"job":"identity")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||""}},{title:"\u6240\u5C5E\u5B66\u9662/\u7CFB",ellipsis:!0,dataIndex:"department",render:function(Oe){return Oe||""}},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",width:90,render:function(Oe,Ae){return v.a.createElement("span",null,d.tab==="1"?v.a.createElement("i",{onClick:function(){return Un(Ae.id)},className:"iconfont icon-bianji7 c-gcrz-primary current"}):v.a.createElement("i",{onClick:function(){return Vn(Ae.id)},className:"iconfont icon-chakansvg c-gcrz-primary current"}),!Ae.is_manager&&v.a.createElement("i",{onClick:function(){return cn([Ae.id])},className:"iconfont icon-piliangshanchubeifen c-gcrz-primary current ml10"}))}}],wn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae,He){var De,nt;return g.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(!(Ae.length===0)){Rt.next=4;break}return ue.b.warn("\u8BF7\u9009\u62E9\u4E00\u6761\u6570\u636E"),He(),Rt.abrupt("return");case 4:return Rt.next=6,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_teachers.json"),{method:"post",body:{ids:Ae,school_id:n==null||((De=n.userInfo)===null||De===void 0)?void 0:De.school_id}});case 6:nt=Rt.sent,(nt==null?void 0:nt.status)===0&&(an(d),ke(!1)),He();case 9:case"end":return Rt.stop()}},Oe)}));return function(Ae,He){return Ne.apply(this,arguments)}}(),xn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae,He){var De,nt,Ge;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(!(Ae.length===0)){pt.next=4;break}return ue.b.warn("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),He(),pt.abrupt("return");case 4:return nt=new FormData,nt.append("file",(De=Ae[0])===null||De===void 0?void 0:De.file),pt.next=8,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers/import_course_teachers.json"),{method:"post",body:nt},!0);case 8:Ge=pt.sent,(Ge==null?void 0:Ge.status)===0&&(an(d),Ee(!1)),He();case 11:case"end":return pt.stop()}},Oe)}));return function(Ae,He){return Ne.apply(this,arguments)}}(),Ln=function(Oe){if(d.page=1,d.tab=Oe,d.sort_by=null,d.direction=null,d.search="",d.save_search="",q(Object(Y.a)({},d)),Vt)return;an(d)},Vn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De,nt,Ge,Rt,pt,jt,Gt,vn,jn,Bt,Xn,nn,Wn,qn,ea;return g.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_teachers.json"),{method:"get",params:{teacher_id:Ae,school_id:n==null||((He=n.userInfo)===null||He===void 0)?void 0:He.school_id}});case 2:De=Mn.sent,De!=null&&De.data&&G.a.info({title:"\u67E5\u770B\u8BA4\u8BC1\u56E2\u961F\u4EBA\u5458\u4FE1\u606F",className:"custom-modal-divider ",centered:!0,icon:null,content:v.a.createElement("div",{className:V.a.detail},v.a.createElement("p",null,v.a.createElement("span",null,"\u59D3\u540D"),v.a.createElement("span",null,(De==null||((nt=De.data)===null||nt===void 0||((Ge=nt[0])===null||Ge===void 0))?void 0:Ge.name)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u624B\u673A\u53F7\u7801"),v.a.createElement("span",null,(De==null||((Rt=De.data)===null||Rt===void 0||((pt=Rt[0])===null||pt===void 0))?void 0:pt.phone)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u90AE\u7BB1"),v.a.createElement("span",null,(De==null||((jt=De.data)===null||jt===void 0||((Gt=jt[0])===null||Gt===void 0))?void 0:Gt.mail)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u804C\u79F0"),v.a.createElement("span",null,(De==null||((vn=De.data)===null||vn===void 0||((jn=vn[0])===null||jn===void 0))?void 0:jn.technical_title)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u804C\u52A1"),v.a.createElement("span",null,(De==null||((Bt=De.data)===null||Bt===void 0||((Xn=Bt[0])===null||Xn===void 0))?void 0:Xn.identity)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u5355\u4F4D"),v.a.createElement("span",null,(De==null||((nn=De.data)===null||nn===void 0||((Wn=nn[0])===null||Wn===void 0))?void 0:Wn.school)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u5B66\u9662/\u7CFB"),v.a.createElement("span",null,(De==null||((qn=De.data)===null||qn===void 0||((ea=qn[0])===null||ea===void 0))?void 0:ea.department)||"-"))),okText:"\u5173\u95ED"});case 4:case"end":return Mn.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),Un=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De;return g.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return st(Ae),Ge.next=3,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers.json"),{method:"get",params:{teacher_id:Ae}});case 3:He=Ge.sent,He!=null&&He.data&&un.setFieldsValue((He==null||((De=He.data)===null||De===void 0)?void 0:De[0])||{});case 5:case"end":return Ge.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),qt=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De;return g.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(Cn.current?ln(!0):Te(!0),!Ie){Ge.next=7;break}return Ge.next=4,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers.json"),{method:"put",body:Object(Y.a)(Object(Y.a)({},Ae),{},{id:Ie})});case 4:De=Ge.sent,Ge.next=10;break;case 7:return Ge.next=9,Object(T.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers.json"),{method:"post",body:Ae});case 9:De=Ge.sent;case 10:((He=De)===null||He===void 0?void 0:He.status)===0&&(Cn.current&&(Ee(!1),st(!1)),un.resetFields(),ue.b.success("\u4FDD\u5B58\u6210\u529F"),an(d)),ln(!1),Te(!1);case 13:case"end":return Ge.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),on=function(Oe){return v.a.createElement("div",null,v.a.createElement(H.a,{form:un,colon:!1,onFinish:qt,labelCol:{span:4},wrapperCol:{span:18},className:V.a.form},v.a.createElement(H.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),v.a.createElement(H.a.Item,{label:"\u624B\u673A\u53F7\u7801",name:"tel",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},{pattern:/^1[3|4|5|7|8][0-9]\d{8}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"})),v.a.createElement(H.a.Item,{label:"\u90AE\u7BB1",name:"email",rules:[{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"})),v.a.createElement(H.a.Item,{label:"\u804C\u79F0",name:"pro",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u804C\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u804C\u79F0"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u804C\u79F0"})),v.a.createElement(H.a.Item,{label:"\u804C\u52A1",name:"job"},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u804C\u52A1"})),v.a.createElement(H.a.Item,{label:"\u5355\u4F4D",name:"school"},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D"})),v.a.createElement(H.a.Item,{style:{paddingBottom:0},label:"\u5B66\u9662/\u7CFB",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u9662/\u7CFB"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B66\u9662/\u7CFB"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u9662/\u7CFB"})),v.a.createElement(H.a.Item,{label:"\u4E13\u517C\u804C\u60C5\u51B5",name:"is_part_time_job",initialValue:0},v.a.createElement(re.a.Group,null,v.a.createElement(re.a,{value:0},"\u5168\u804C"),v.a.createElement(re.a,{value:1},"\u517C\u804C")))),v.a.createElement(se.a,{className:V.a.button,size:10,style:{float:"right",marginRight:40,paddingBottom:10}},v.a.createElement(k.a,{onClick:function(){st(!1),Ee(!1)}},"\u53D6\u6D88"),v.a.createElement(k.a,{disabled:ge,type:Oe?"primary":"default",loading:Ut,onClick:function(){Cn.current=!0,un.submit()}},"\u4FDD\u5B58"),!Oe&&v.a.createElement(k.a,{disabled:Ut,loading:ge,type:"primary",onClick:function(){Cn.current=!1,un.submit()}},"\u7EE7\u7EED\u65B0\u589E")),v.a.createElement("div",{style:{clear:"both"}}))},Vt=Fe||Pt;return v.a.createElement("div",{className:V.a.wrap},v.a.createElement(he.a,{title:"\u6559\u5E08\u4FE1\u606F",style:{padding:"12px 0 10px 20px"}}),v.a.createElement(p.a,{className:V.a.tabWarp,activeKey:d==null?void 0:d.tab,onChange:Ln,tabBarExtraContent:v.a.createElement(se.a,{className:V.a.button,size:10},v.a.createElement(k.a,{disabled:Vt,onClick:function(){if(d.tab==="2"){ke(!0);return}un.resetFields(),Ee(!0)},type:"primary"},v.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u4EBA\u5458"),v.a.createElement(k.a,{disabled:Vt,onClick:function(){return cn(Qe)}},v.a.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u6279\u91CF\u5220\u9664"),v.a.createElement(k.a,{disabled:Vt,onClick:function(){return hn()}},v.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA"))},v.a.createElement(p.a.TabPane,{tab:"\u6388\u8BFE\u6559\u5E08\u56E2\u961F",key:"1"}),v.a.createElement(p.a.TabPane,{tab:"\u8BA4\u8BC1\u5DE5\u4F5C\u56E2\u961F",key:"2"})),v.a.createElement("div",{className:V.a.control},v.a.createElement("div",{className:V.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),v.a.createElement(U.a,{disabled:Vt,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:d==null?void 0:d.ec_major_school_id,onChange:function(Oe){return _n(Oe,"ec_major_school_id")}},Kt==null?void 0:Kt.map(function(Ne){return v.a.createElement(U.a.Option,{value:Ne.ec_major_school_id},Ne.name)})),v.a.createElement("div",{className:V.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),v.a.createElement(U.a,{disabled:Vt,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:d==null?void 0:d.ec_year_id,onChange:function(Oe){return _n(Oe,"ec_year_id")}},_t==null?void 0:_t.map(function(Ne){return v.a.createElement(U.a.Option,{value:Ne.ec_year_id},Ne.year)})),v.a.createElement("div",{className:V.a.label,style:{width:100,background:"#fff"}},v.a.createElement(U.a,{disabled:Vt,style:{width:100,transform:"translate(-1px, -1px)"},bordered:!1,value:d==null?void 0:d.category,onChange:function(Oe){return _n(Oe,"category")}},v.a.createElement(U.a.Option,{value:"name"},"\u59D3\u540D"),v.a.createElement(U.a.Option,{value:"tel"},"\u624B\u673A\u53F7\u7801"),v.a.createElement(U.a.Option,{value:"email"},"\u90AE\u7BB1"))),v.a.createElement(J.a.Search,{disabled:Vt,placeholder:"\u8BF7\u8F93\u5165".concat((d==null?void 0:d.category)==="name"?"\u59D3\u540D":(d==null?void 0:d.category)==="tel"?"\u624B\u673A\u53F7\u7801":"\u90AE\u7BB1"),value:d==null?void 0:d.save_search,onChange:function(Oe){return Hn(Oe.target.value)},onSearch:function(){d.page=1,d.search=d.save_search,q(Object(Y.a)({},d)),an(d)}})),v.a.createElement(M.a,{rowSelection:An,className:V.a.customTable,dataSource:Dt,bordered:!1,rowKey:"id",columns:Fn,rowClassName:V.a.row,loading:Fe,onChange:Kn,pagination:{pageSize:d.per_page,total:d.total,current:d.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Oe){return v.a.createElement("span",{className:"mr10"},"\u5171",v.a.createElement("span",{className:"c-orange"},Oe),"\u6761\u6570\u636E")}}}),v.a.createElement(te.a,{title:"\u65B0\u589E\u6388\u8BFE\u6559\u5E08",visible:xe,onCancel:function(){return Ee(!1)},onOk:xn,templateFileName:"\u6388\u8BFE\u56E2\u961F\u6559\u5E08\u5BFC\u5165\u6A21\u677F",templateFileUrl:ae.a.API_SERVER+"/api/ec_years/1/ec_course_teachers/down_template.xlsx",otherTemplateText:"\u6279\u91CF\u5BFC\u5165\u6388\u8BFE\u56E2\u961F\u6559\u5E08\u4FE1\u606F\u3002",formNode:on()}),v.a.createElement(E,{visible:Pe,onCancel:function(){return ke(!1)},onOk:wn,schoolId:n==null||((ee=n.userInfo)===null||ee===void 0)?void 0:ee.school_id}),v.a.createElement(G.a,{title:"\u4FEE\u6539\u6388\u8BFE\u6559\u5E08\u4FE1\u606F",className:V.a.customModal,visible:Ie,centered:!0,onCancel:function(){st(!1),un.resetFields()},width:"740px",footer:null},on(!0)))},ne=pe.default=Object(_e.a)(function(oe){var Z=oe.user;return{user:Z}})(Q)},fj85:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return p}),a.d(pe,"b",function(){return k});var L=a("q1tI"),M=a.n(L),Se=a("ZW5e"),U=a.n(Se),r=function(re){var me=re.title,J=re.style,R=J===void 0?{}:J;return M.a.createElement("div",{className:U.a.panelTitleContainer,style:R},M.a.createElement("div",null,me))},p=r,ce=a("PsNh"),se=a.n(ce),F=function(re){var me=re.title,J=re.children;return M.a.createElement("div",{className:se.a.selectWrapContainer},M.a.createElement("span",null,me),J)},k=F},fyJ8:function(Ye,pe,a){"use strict";var L=a("rePB"),M=a("VTBJ"),Se=a("Ff2n"),U=a("U8pU"),r=a("q1tI"),p=a.n(r),ce=a("TSYQ"),se=a.n(ce),F=a("c+Xe"),k=a("sR1s");function X(j){return j&&Object(U.a)(j)==="object"&&!Array.isArray(j)&&!r.isValidElement(j)}function re(j){return typeof j=="string"?!0:Object(F.c)(j)}function me(j,ie){var G,le=j.prefixCls,ue=j.className,Y=j.record,be=j.index,I=j.dataIndex,H=j.render,z=j.children,C=j.component,g=C===void 0?"td":C,l=j.colSpan,v=j.rowSpan,B=j.fixLeft,V=j.fixRight,_e=j.firstFixLeft,te=j.lastFixLeft,T=j.firstFixRight,w=j.lastFixRight,x=j.appendNode,h=j.additionalProps,N=h===void 0?{}:h,E=j.ellipsis,S=j.align,$=j.rowType,ae=j.isSticky,he="".concat(le,"-cell"),Q,ne;if(z)ne=z;else{var oe=Object(k.b)(Y,I);if(ne=oe,H){var Z=H(oe,Y,be);X(Z)?(ne=Z.children,Q=Z.props):ne=Z}}Object(U.a)(ne)==="object"&&!Array.isArray(ne)&&!r.isValidElement(ne)&&(ne=null),E&&(te||T)&&(ne=r.createElement("span",{className:"".concat(he,"-content")},ne));var K=Q||{},ee=K.colSpan,n=K.rowSpan,m=K.style,s=K.className,A=Object(Se.a)(K,["colSpan","rowSpan","style","className"]),d=ee!==void 0?ee:l,q=n!==void 0?n:v;if(d===0||q===0)return null;var ye={},Ce=typeof B=="number",Fe=typeof V=="number";Ce&&(ye.position="sticky",ye.left=B),Fe&&(ye.position="sticky",ye.right=V);var Be={};S&&(Be.textAlign=S);var Ue,We=E===!0?{showTitle:!0}:E;We&&(We.showTitle||$==="header")&&(typeof ne=="string"||typeof ne=="number"?Ue=ne.toString():r.isValidElement(ne)&&typeof ne.props.children=="string"&&(Ue=ne.props.children));var Pt=Object(M.a)(Object(M.a)(Object(M.a)({title:Ue},A),N),{},{colSpan:d&&d!==1?d:null,rowSpan:q&&q!==1?q:null,className:se()(he,ue,(G={},Object(L.a)(G,"".concat(he,"-fix-left"),Ce),Object(L.a)(G,"".concat(he,"-fix-left-first"),_e),Object(L.a)(G,"".concat(he,"-fix-left-last"),te),Object(L.a)(G,"".concat(he,"-fix-right"),Fe),Object(L.a)(G,"".concat(he,"-fix-right-first"),T),Object(L.a)(G,"".concat(he,"-fix-right-last"),w),Object(L.a)(G,"".concat(he,"-ellipsis"),E),Object(L.a)(G,"".concat(he,"-with-append"),x),Object(L.a)(G,"".concat(he,"-fix-sticky"),(Ce||Fe)&&ae),G),N.className,s),style:Object(M.a)(Object(M.a)(Object(M.a)(Object(M.a)({},N.style),Be),ye),m),ref:re(g)?ie:null});return r.createElement(g,Object.assign({},Pt),x,ne)}var J=r.forwardRef(me);J.displayName="Cell";var R=r.memo(J,function(j,ie){return ie.shouldCellUpdate?!ie.shouldCellUpdate(ie.record,j.record):!1});pe.a=R},h78n:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return _e});var L=a("q1tI"),M=a.n(L),Se=a("TSYQ"),U=a.n(Se),r={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},p=function(w){var x=w.map(function(){return Object(L.useRef)()}),h=Object(L.useRef)();return Object(L.useEffect)(function(){var N=Date.now(),E=!1;Object.keys(x).forEach(function(S){var $=x[S].current;if(!$)return;E=!0;var ae=$.style;ae.transitionDuration=".3s, .3s, .3s, .06s",h.current&&N-h.current<100&&(ae.transitionDuration="0s, 0s")}),E&&(h.current=Date.now())}),[x]};function ce(){return ce=Object.assign||function(T){for(var w=1;wT.length)&&(w=T.length);for(var x=0,h=new Array(w);x=0)continue;if(!Object.prototype.propertyIsEnumerable.call(T,h))continue;x[h]=T[h]}}return x}function R(T,w){if(T==null)return{};var x={},h=Object.keys(T),N,E;for(E=0;E=0)continue;x[N]=T[N]}return x}var j=function(w){var x=w.className,h=w.percent,N=w.prefixCls,E=w.strokeColor,S=w.strokeLinecap,$=w.strokeWidth,ae=w.style,he=w.trailColor,Q=w.trailWidth,ne=w.transition,oe=J(w,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete oe.gapPosition;var Z=Array.isArray(h)?h:[h],K=Array.isArray(E)?E:[E],ee=p(Z),n=se(ee,1),m=n[0],s=$/2,A=100-$/2,d="M ".concat(S==="round"?s:0,",").concat(s,` - L `).concat(S==="round"?A:100,",").concat(s),q="0 0 100 ".concat($),ye=0;return M.a.createElement("svg",ce({className:U()("".concat(N,"-line"),x),viewBox:q,preserveAspectRatio:"none",style:ae},oe),M.a.createElement("path",{className:"".concat(N,"-line-trail"),d,strokeLinecap:S,stroke:he,strokeWidth:Q||$,fillOpacity:"0"}),Z.map(function(Ce,Fe){var Be={strokeDasharray:"".concat(Ce,"px, 100px"),strokeDashoffset:"-".concat(ye,"px"),transition:ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=K[Fe]||K[K.length-1];return ye+=Ce,M.a.createElement("path",{key:Fe,className:"".concat(N,"-line-path"),d,strokeLinecap:S,stroke:Ue,strokeWidth:$,fillOpacity:"0",ref:m[Fe],style:Be})}))};j.defaultProps=r;var ie=j;function G(){return G=Object.assign||function(T){for(var w=1;wT.length)&&(w=T.length);for(var x=0,h=new Array(w);x=0)continue;if(!Object.prototype.propertyIsEnumerable.call(T,h))continue;x[h]=T[h]}}return x}function C(T,w){if(T==null)return{};var x={},h=Object.keys(T),N,E;for(E=0;E=0)continue;x[N]=T[N]}return x}var g=0;function l(T){return+T.replace("%","")}function v(T){return Array.isArray(T)?T:[T]}function B(T,w,x,h){var N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,E=arguments.length>5?arguments[5]:void 0,S=50-h/2,$=0,ae=-S,he=0,Q=-2*S;switch(E){case"left":$=-S,ae=0,he=2*S,Q=0;break;case"right":$=S,ae=0,he=-2*S,Q=0;break;case"bottom":ae=S,Q=2*S;break;default:}var ne="M 50,50 m ".concat($,",").concat(ae,` - a `).concat(S,",").concat(S," 0 1 1 ").concat(he,",").concat(-Q,` - a `).concat(S,",").concat(S," 0 1 1 ").concat(-he,",").concat(Q),oe=Math.PI*2*S,Z={stroke:x,strokeDasharray:"".concat(w/100*(oe-N),"px ").concat(oe,"px"),strokeDashoffset:"-".concat(N/2+T/100*(oe-N),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:Z}}var V=function(w){var x=w.prefixCls,h=w.strokeWidth,N=w.trailWidth,E=w.gapDegree,S=w.gapPosition,$=w.trailColor,ae=w.strokeLinecap,he=w.style,Q=w.className,ne=w.strokeColor,oe=w.percent,Z=z(w,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),K=Object(L.useMemo)(function(){return g+=1,g},[]),ee=B(0,100,$,h,E,S),n=ee.pathString,m=ee.pathStyle,s=v(oe),A=v(ne),d=A.find(function(Be){return Object.prototype.toString.call(Be)==="[object Object]"}),q=p(s),ye=le(q,1),Ce=ye[0],Fe=function(){var Ue=0;return s.map(function(We,Pt){var Nt=A[Pt]||A[A.length-1],Lt=Object.prototype.toString.call(Nt)==="[object Object]"?"url(#".concat(x,"-gradient-").concat(K,")"):"",Ct=B(Ue,We,Nt,h,E,S);return Ue+=We,M.a.createElement("path",{key:Pt,className:"".concat(x,"-circle-path"),d:Ct.pathString,stroke:Lt,strokeLinecap:ae,strokeWidth:h,opacity:We===0?0:1,fillOpacity:"0",style:Ct.pathStyle,ref:Ce[Pt]})})};return M.a.createElement("svg",G({className:U()("".concat(x,"-circle"),Q),viewBox:"0 0 100 100",style:he},Z),d&&M.a.createElement("defs",null,M.a.createElement("linearGradient",{id:"".concat(x,"-gradient-").concat(K),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(d).sort(function(Be,Ue){return l(Be)-l(Ue)}).map(function(Be,Ue){return M.a.createElement("stop",{key:Ue,offset:Be,stopColor:d[Be]})}))),M.a.createElement("path",{className:"".concat(x,"-circle-trail"),d:n,stroke:$,strokeLinecap:ae,strokeWidth:N||h,fillOpacity:"0",style:m}),Fe().reverse())};V.defaultProps=r;var _e=V,te={Line:ie,Circle:_e}},hW8S:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return U}),a.d(pe,"c",function(){return r}),a.d(pe,"b",function(){return p});var L=a("VTBJ"),M=a("Ff2n"),Se=a("Kwbf"),U="RC_TABLE_INTERNAL_COL_DEFINE";function r(ce){var se=ce.expandable,F=Object(M.a)(ce,["expandable"]);return"expandable"in ce?Object(L.a)(Object(L.a)({},F),se):F}function p(ce){return Object.keys(ce).reduce(function(se,F){return(F.substr(0,5)==="data-"||F.substr(0,5)==="aria-")&&(se[F]=ce[F]),se},{})}},k3GJ:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return po});var L=a("rePB"),M=a("ODXe"),Se=a("Ff2n"),U=a("VTBJ"),r=a("q1tI"),p=a("TSYQ"),ce=a.n(p),se=a("Zm9Q"),F=a("6cGi"),k=a("KQm4"),X=a("xEkU"),re=a.n(X),me=a("t23M");function J(i){var b=Object(r.useRef)(),O=Object(r.useRef)(!1);function c(){for(var e=arguments.length,o=new Array(e),t=0;tP&&(de=P-fe),Object(r.useMemo)(function(){if(!o.length)return[0,0];for(var Me=o.length,$e=Me,rt=0;rty+de){$e=rt-1;break}}for(var lt=0,it=Me-1;it>=0;it-=1){var at=i.get(o[it].key)||Y;if(at[_]1&&arguments[1]!==void 0?arguments[1]:!1,c=b&&typeof b.getBoundingClientRect=="function"&&b.getBoundingClientRect().width;if(c){if(O){var e=getComputedStyle(b),o=e.marginLeft,t=e.marginRight;c+=+o.replace("px","")+ +t.replace("px","")}c=+c.toFixed(6)}return c||0},Ue=function(b,O,c){b&&Object(T.a)(b.style)==="object"&&(b.style[O]=c)},We=function(){return s.any},Pt=a("bdgK"),Nt=a("i8i4"),Lt=a.n(Nt),Ct=a("wgJM"),Ut=a("l4aY"),ln=a("m+aA"),D=a("c+Xe"),ve=a("zT1h"),ge=a("QC+M");function Te(i,b,O){return O?i[0]===b[0]:i[0]===b[0]&&i[1]===b[1]}function we(i,b,O){var c=i[b]||{};return Object(U.a)(Object(U.a)({},c),O)}function Re(i,b,O,c){for(var e=O.points,o=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;b();var o=Object(Ct.a)(function(){e<=1?c({isCanceled:function(){return o!==i.current}}):O(c,e-1)});i.current=o}return r.useEffect(function(){return function(){b()}},[]),[O,b]},un=[_t,xt,bt,et],Cn=!1,an=!0;function hn(i){return i===bt||i===et}var On=function(i,b){var O=r.useState(Zt),c=Object(M.a)(O,2),e=c[0],o=c[1],t=wt(),u=Object(M.a)(t,2),f=u[0],_=u[1];function y(){o(_t)}return tn(function(){if(e!==Zt&&e!==et){var P=un.indexOf(e),W=un[P+1],fe=b(e);fe===Cn?o(W):f(function(de){function Me(){if(de.isCanceled())return;o(W)}fe===!0?Me():Promise.resolve(fe).then(Me)})}},[i,e]),r.useEffect(function(){return function(){_()}},[]),[y,e]},Dn=function(i){var b=Object(r.useRef)(),O=Object(r.useRef)(i);O.current=i;var c=r.useCallback(function(t){O.current(t)},[]);function e(t){t&&(t.removeEventListener(kt,c),t.removeEventListener(Qe,c))}function o(t){b.current&&b.current!==t&&e(b.current),t&&t!==b.current&&(t.addEventListener(kt,c),t.addEventListener(Qe,c),b.current=t)}return r.useEffect(function(){return function(){e(b.current)}},[]),[o,e]};function _n(i,b,O,c){var e=c.motionEnter,o=e===void 0?!0:e,t=c.motionAppear,u=t===void 0?!0:t,f=c.motionLeave,_=f===void 0?!0:f,y=c.motionDeadline,P=c.motionLeaveImmediately,W=c.onAppearPrepare,fe=c.onEnterPrepare,de=c.onLeavePrepare,Me=c.onAppearStart,$e=c.onEnterStart,rt=c.onLeaveStart,qe=c.onAppearActive,lt=c.onEnterActive,it=c.onLeaveActive,at=c.onAppearEnd,ot=c.onEnterEnd,gt=c.onLeaveEnd,ut=c.onVisibleChanged,$t=Dt(),St=Object(M.a)($t,2),Xe=St[0],Ve=St[1],ct=Dt(Ot),ft=Object(M.a)(ct,2),Ke=ft[0],Et=ft[1],Wt=Dt(null),yt=Object(M.a)(Wt,2),At=yt[0],Ht=yt[1],dn=Object(r.useRef)(!1),En=Object(r.useRef)(null),Yt=Object(r.useRef)(!1),yn=Object(r.useRef)(null);function In(){var zt=O();return zt||yn.current}var Rn=Object(r.useRef)(!1);function Sn(zt){var Mt=In();if(zt&&!zt.deadline&&zt.target!==Mt)return;var mn;Ke===Kt&&Rn.current?mn=at==null?void 0:at(Mt,zt):Ke===Qt&&Rn.current?mn=ot==null?void 0:ot(Mt,zt):Ke===mt&&Rn.current&&(mn=gt==null?void 0:gt(Mt,zt)),mn!==!1&&!Yt.current&&(Et(Ot),Ht(null))}var Jt=Dn(Sn),bn=Object(M.a)(Jt,1),fn=bn[0],rn=r.useMemo(function(){var zt,Mt,mn;switch(Ke){case"appear":return zt={},Object(L.a)(zt,_t,W),Object(L.a)(zt,xt,Me),Object(L.a)(zt,bt,qe),zt;case"enter":return Mt={},Object(L.a)(Mt,_t,fe),Object(L.a)(Mt,xt,$e),Object(L.a)(Mt,bt,lt),Mt;case"leave":return mn={},Object(L.a)(mn,_t,de),Object(L.a)(mn,xt,rt),Object(L.a)(mn,bt,it),mn;default:return{}}},[Ke]),Jn=On(Ke,function(zt){if(zt===_t){var Mt=rn[_t];return Mt?Mt(In()):Cn}if(Ft in rn){var mn;Ht(((mn=rn[Ft])===null||mn===void 0?void 0:mn.call(rn,In(),null))||null)}return Ft===bt&&(fn(In()),y>0&&(clearTimeout(En.current),En.current=setTimeout(function(){Sn({deadline:!0})},y))),an}),Qn=Object(M.a)(Jn,2),oa=Qn[0],Ft=Qn[1],Bn=hn(Ft);Rn.current=Bn,tn(function(){Ve(b);var zt=dn.current;if(dn.current=!0,!i)return;var Mt;!zt&&b&&u&&(Mt=Kt),zt&&b&&o&&(Mt=Qt),(zt&&!b&&_||!zt&&P&&!b&&_)&&(Mt=mt),Mt&&(Et(Mt),oa())},[b]),Object(r.useEffect)(function(){(Ke===Kt&&!u||Ke===Qt&&!o||Ke===mt&&!_)&&Et(Ot)},[u,o,_]),Object(r.useEffect)(function(){return function(){clearTimeout(En.current),Yt.current=!0}},[]),Object(r.useEffect)(function(){Xe!==void 0&&Ke===Ot&&(ut==null||ut(Xe))},[Xe,Ke]);var ra=At;return rn[_t]&&Ft===xt&&(ra=Object(U.a)({transition:"none"},ra)),[Ke,Ft,ra,Xe!=null?Xe:b]}var Hn=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){return Object(H.a)(this,O),b.apply(this,arguments)}return Object(z.a)(O,[{key:"render",value:function(){return this.props.children}}]),O}(r.Component),cn=Hn;function Kn(i){var b=i;Object(T.a)(i)==="object"&&(b=i.transitionSupport);function O(e){return!!(e.motionName&&b)}var c=r.forwardRef(function(e,o){var t=e.visible,u=t===void 0?!0:t,f=e.removeOnLeave,_=f===void 0?!0:f,y=e.forceRender,P=e.children,W=e.motionName,fe=e.leavedClassName,de=e.eventProps,Me=O(e),$e=Object(r.useRef)(),rt=Object(r.useRef)();function qe(){try{return Object(ln.a)($e.current||rt.current)}catch(Et){return null}}var lt=_n(Me,u,qe,e),it=Object(M.a)(lt,4),at=it[0],ot=it[1],gt=it[2],ut=it[3],$t=r.useRef(ut);ut&&($t.current=!0);var St=Object(r.useRef)(o);St.current=o;var Xe=r.useCallback(function(Et){$e.current=Et,Object(D.b)(St.current,Et)},[]),Ve,ct=Object(U.a)(Object(U.a)({},de),{},{visible:u});if(!P)Ve=null;else if(at===Ot||!O(e))ut?Ve=P(Object(U.a)({},ct),Xe):!_&&$t.current?Ve=P(Object(U.a)(Object(U.a)({},ct),{},{className:fe}),Xe):y?Ve=P(Object(U.a)(Object(U.a)({},ct),{},{style:{display:"none"}}),Xe):Ve=null;else{var ft,Ke;ot===_t?Ke="prepare":hn(ot)?Ke="active":ot===xt&&(Ke="start"),Ve=P(Object(U.a)(Object(U.a)({},ct),{},{className:ce()(It(W,at),(ft={},Object(L.a)(ft,It(W,"".concat(at,"-").concat(Ke)),Ke),Object(L.a)(ft,W,typeof W=="string"),ft)),style:gt}),Xe)}return r.createElement(cn,{ref:rt},Ve)});return c.displayName="CSSMotion",c}var An=Kn(Ze),Fn="add",wn="keep",xn="remove",Ln="removed";function Vn(i){var b;return i&&Object(T.a)(i)==="object"&&"key"in i?b=i:b={key:i},Object(U.a)(Object(U.a)({},b),{},{key:String(b.key)})}function Un(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(Vn)}function qt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=[],c=0,e=b.length,o=Un(i),t=Un(b);o.forEach(function(_){for(var y=!1,P=c;P1});return f.forEach(function(_){O=O.filter(function(y){var P=y.key,W=y.status;return P!==_||W!==xn}),O.forEach(function(y){y.key===_&&(y.status=wn)})}),O}var on=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Vt(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:An,O=function(c){Object(g.a)(o,c);var e=Object(l.a)(o);function o(){var t;return Object(H.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(u){t.setState(function(f){var _=f.keyEntities;return{keyEntities:_.map(function(y){return y.key!==u?y:Object(U.a)(Object(U.a)({},y),{},{status:Ln})})}})},t}return Object(z.a)(o,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,_=this.props,y=_.component,P=_.children,W=_.onVisibleChanged,fe=Object(Se.a)(_,["component","children","onVisibleChanged"]),de=y||r.Fragment,Me={};return on.forEach(function($e){Me[$e]=fe[$e],delete fe[$e]}),delete fe.keys,r.createElement(de,fe,f.map(function($e){var rt=$e.status,qe=Object(Se.a)($e,["status"]),lt=rt===Fn||rt===wn;return r.createElement(b,Object(I.a)({},Me,{key:qe.key,visible:lt,eventProps:qe,onVisibleChanged:function(at){W==null||W(at,{key:qe.key}),at||u.removeKey(qe.key)}}),P)}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var _=u.keys,y=f.keyEntities,P=Un(_),W=qt(y,P);return{keyEntities:W.filter(function(fe){var de=y.find(function(Me){var $e=Me.key;return fe.key===$e});return!(de&&de.status===Ln&&fe.status===xn)})}}}]),o}(r.Component);return O.defaultProps={component:"div"},O}var Ne=Vt(Ze),Oe=An;function Ae(i){var b=i.prefixCls,O=i.motion,c=i.animation,e=i.transitionName;return O||(c?{motionName:"".concat(b,"-").concat(c)}:e?{motionName:e}:null)}function He(i){var b=i.prefixCls,O=i.visible,c=i.zIndex,e=i.mask,o=i.maskMotion,t=i.maskAnimation,u=i.maskTransitionName;if(!e)return null;var f={};return(o||u||t)&&(f=Object(U.a)({motionAppear:!0},Ae({motion:o,prefixCls:b,transitionName:u,animation:t}))),r.createElement(Oe,Object(I.a)({},f,{visible:O,removeOnLeave:!0}),function(_){var y=_.className;return r.createElement("div",{style:{zIndex:c},className:ce()("".concat(b,"-mask"),y)})})}var De=a("9mu1"),nt=a("o0o1"),Ge=a.n(nt),Rt=a("HaE+"),pt=["measure","align",null,"motion"],jt=function(i,b){var O=Object(r.useState)(null),c=Object(M.a)(O,2),e=c[0],o=c[1],t=Object(r.useRef)(),u=Object(r.useRef)(!1);function f(P){u.current||o(P)}function _(){Ct.a.cancel(t.current)}function y(P){_(),t.current=Object(Ct.a)(function(){f(function(W){switch(e){case"align":return"motion";case"motion":return"stable";default:}return W}),P==null||P()})}return Object(r.useEffect)(function(){f("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":b();break;default:}e&&(t.current=Object(Ct.a)(Object(Rt.a)(Ge.a.mark(function P(){var W,fe;return Ge.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:W=pt.indexOf(e),fe=pt[W+1],fe&&W!==-1&&f(fe);case 3:case"end":return Me.stop()}},P)}))))},[e]),Object(r.useEffect)(function(){return function(){u.current=!0,_()}},[]),[e,y]},Gt=function(i){var b=r.useState({width:0,height:0}),O=Object(M.a)(b,2),c=O[0],e=O[1];function o(u){e({width:u.offsetWidth,height:u.offsetHeight})}var t=r.useMemo(function(){var u={};if(i){var f=c.width,_=c.height;i.indexOf("height")!==-1&&_?u.height=_:i.indexOf("minHeight")!==-1&&_&&(u.minHeight=_),i.indexOf("width")!==-1&&f?u.width=f:i.indexOf("minWidth")!==-1&&f&&(u.minWidth=f)}return u},[i,c]);return[t,o]},vn=r.forwardRef(function(i,b){var O=i.visible,c=i.prefixCls,e=i.className,o=i.style,t=i.children,u=i.zIndex,f=i.stretch,_=i.destroyPopupOnHide,y=i.forceRender,P=i.align,W=i.point,fe=i.getRootDomNode,de=i.getClassNameFromAlign,Me=i.onAlign,$e=i.onMouseEnter,rt=i.onMouseLeave,qe=i.onMouseDown,lt=i.onTouchStart,it=Object(r.useRef)(),at=Object(r.useRef)(),ot=Object(r.useState)(),gt=Object(M.a)(ot,2),ut=gt[0],$t=gt[1],St=Gt(f),Xe=Object(M.a)(St,2),Ve=Xe[0],ct=Xe[1];function ft(){f&&ct(fe())}var Ke=jt(O,ft),Et=Object(M.a)(Ke,2),Wt=Et[0],yt=Et[1],At=Object(r.useRef)();function Ht(){return W||fe}function dn(){var Jt;(Jt=it.current)===null||Jt===void 0||Jt.forceAlign()}function En(Jt,bn){var fn=de(bn);ut!==fn&&$t(fn),Wt==="align"&&(ut!==fn?Promise.resolve().then(function(){dn()}):yt(function(){var rn;(rn=At.current)===null||rn===void 0||rn.call(At)}),Me==null||Me(Jt,bn))}var Yt=Object(U.a)({},Ae(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Jt){var bn=Yt[Jt];Yt[Jt]=function(fn,rn){return yt(),bn==null?void 0:bn(fn,rn)}});function yn(){return new Promise(function(Jt){At.current=Jt})}r.useEffect(function(){!Yt.motionName&&Wt==="motion"&&yt()},[Yt.motionName,Wt]),r.useImperativeHandle(b,function(){return{forceAlign:dn,getElement:function(){return at.current}}});var In=Object(U.a)(Object(U.a)({},Ve),{},{zIndex:u,opacity:Wt==="motion"||Wt==="stable"||!O?void 0:0,pointerEvents:Wt==="stable"?void 0:"none"},o),Rn=!0;(P==null?void 0:P.points)&&(Wt==="align"||Wt==="stable")&&(Rn=!1);var Sn=t;return r.Children.count(t)>1&&(Sn=r.createElement("div",{className:"".concat(c,"-content")},t)),r.createElement(Oe,Object(I.a)({visible:O,ref:at,leavedClassName:"".concat(c,"-hidden")},Yt,{onAppearPrepare:yn,onEnterPrepare:yn,removeOnLeave:_,forceRender:y}),function(Jt,bn){var fn=Jt.className,rn=Jt.style,Jn=ce()(c,e,ut,fn);return r.createElement(De.a,{target:Ht(),key:"popup",ref:it,monitorWindowResize:!0,disabled:Rn,align:P,onAlign:En},r.createElement("div",{ref:bn,className:Jn,onMouseEnter:$e,onMouseLeave:rt,onMouseDownCapture:qe,onTouchStartCapture:lt,style:Object(U.a)(Object(U.a)({},rn),In)},Sn))})});vn.displayName="PopupInner";var jn=vn,Bt=r.forwardRef(function(i,b){var O=i.prefixCls,c=i.visible,e=i.zIndex,o=i.children,t=i.mobile;t=t===void 0?{}:t;var u=t.popupClassName,f=t.popupStyle,_=t.popupMotion,y=_===void 0?{}:_,P=t.popupRender,W=r.useRef();r.useImperativeHandle(b,function(){return{forceAlign:function(){},getElement:function(){return W.current}}});var fe=Object(U.a)({zIndex:e},f),de=o;return r.Children.count(o)>1&&(de=r.createElement("div",{className:"".concat(O,"-content")},o)),P&&(de=P(de)),r.createElement(Oe,Object(I.a)({visible:c,ref:W,removeOnLeave:!0},y),function(Me,$e){var rt=Me.className,qe=Me.style,lt=ce()(O,u,rt);return r.createElement("div",{ref:$e,className:lt,style:Object(U.a)(Object(U.a)({},qe),fe)},de)})});Bt.displayName="MobilePopupInner";var Xn=Bt,nn=["visible","mobile"],Wn=r.forwardRef(function(i,b){var O=i.visible,c=i.mobile,e=Object(Se.a)(i,nn),o=Object(r.useState)(O),t=Object(M.a)(o,2),u=t[0],f=t[1],_=Object(r.useState)(!1),y=Object(M.a)(_,2),P=y[0],W=y[1],fe=Object(U.a)(Object(U.a)({},e),{},{visible:u});Object(r.useEffect)(function(){f(O),O&&c&&W(xe())},[O,c]);var de=P?r.createElement(Xn,Object(I.a)({},fe,{mobile:c,ref:b})):r.createElement(jn,Object(I.a)({},fe,{ref:b}));return r.createElement("div",null,r.createElement(He,fe),de)});Wn.displayName="Popup";var qn=Wn,ea=r.createContext(null),ia=ea;function Mn(){}function $a(){return""}function Ga(i){return i?i.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(i){var b=function(O){Object(g.a)(e,O);var c=Object(l.a)(e);function e(o){var t;Object(H.a)(this,e),t=c.call(this,o),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(f){var _=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",f),t.delaySetPopupVisible(!0,_,_?null:f)},t.onMouseMove=function(f){t.fireEvents("onMouseMove",f),t.setPoint(f)},t.onMouseLeave=function(f){t.fireEvents("onMouseLeave",f),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(f){var _;if(f.relatedTarget&&!f.relatedTarget.setTimeout&&Object(Ut.a)((_=t.popupRef.current)===null||_===void 0?void 0:_.getElement(),f.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(f){t.fireEvents("onFocus",f),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(f){t.fireEvents("onMouseDown",f),t.preClickTime=Date.now()},t.onTouchStart=function(f){t.fireEvents("onTouchStart",f),t.preTouchTime=Date.now()},t.onBlur=function(f){t.fireEvents("onBlur",f),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(f){f.preventDefault(),t.fireEvents("onContextMenu",f),t.setPopupVisible(!0,f)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(f){if(t.fireEvents("onClick",f),t.focusTime){var _;if(t.preClickTime&&t.preTouchTime?_=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?_=t.preClickTime:t.preTouchTime&&(_=t.preTouchTime),Math.abs(_-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&f&&f.preventDefault&&f.preventDefault();var y=!t.state.popupVisible;(t.isClickToHide()&&!y||y&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,f)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var f;(f=t.context).onPopupMouseDown.apply(f,arguments)}},t.onDocumentClick=function(f){if(t.props.mask&&!t.props.maskClosable)return;var _=f.target,y=t.getRootDomNode(),P=t.getPopupDomNode();(!Object(Ut.a)(y,_)||t.isContextMenuOnly())&&!Object(Ut.a)(P,_)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var f=t.props.getTriggerDOMNode;if(f)return f(t.triggerRef.current);try{var _=Object(ln.a)(t.triggerRef.current);if(_)return _}catch(y){}return Lt.a.findDOMNode(Object(C.a)(t))},t.getPopupClassNameFromAlign=function(f){var _=[],y=t.props,P=y.popupPlacement,W=y.builtinPlacements,fe=y.prefixCls,de=y.alignPoint,Me=y.getPopupClassNameFromAlign;return P&&W&&_.push(Re(W,fe,f,de)),Me&&_.push(Me(f)),_.join(" ")},t.getComponent=function(){var f=t.props,_=f.prefixCls,y=f.destroyPopupOnHide,P=f.popupClassName,W=f.onPopupAlign,fe=f.popupMotion,de=f.popupAnimation,Me=f.popupTransitionName,$e=f.popupStyle,rt=f.mask,qe=f.maskAnimation,lt=f.maskTransitionName,it=f.maskMotion,at=f.zIndex,ot=f.popup,gt=f.stretch,ut=f.alignPoint,$t=f.mobile,St=f.forceRender,Xe=t.state,Ve=Xe.popupVisible,ct=Xe.point,ft=t.getPopupAlign(),Ke={};return t.isMouseEnterToShow()&&(Ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Ke.onMouseLeave=t.onPopupMouseLeave),Ke.onMouseDown=t.onPopupMouseDown,Ke.onTouchStart=t.onPopupMouseDown,r.createElement(qn,Object(I.a)({prefixCls:_,destroyPopupOnHide:y,visible:Ve,point:ut&&ct,className:P,align:ft,onAlign:W,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},Ke,{stretch:gt,getRootDomNode:t.getRootDomNode,style:$e,mask:rt,zIndex:at,transitionName:Me,maskAnimation:qe,maskTransitionName:lt,maskMotion:it,ref:t.popupRef,motion:fe,mobile:$t,forceRender:St}),typeof ot=="function"?ot():ot)},t.attachParent=function(f){Ct.a.cancel(t.attachId);var _=t.props,y=_.getPopupContainer,P=_.getDocument,W=t.getRootDomNode(),fe;y?(W||y.length===0)&&(fe=y(W)):fe=P(t.getRootDomNode()).body,fe?fe.appendChild(f):t.attachId=Object(Ct.a)(function(){t.attachParent(f)})},t.getContainer=function(){var f=t.props.getDocument,_=f(t.getRootDomNode()).createElement("div");return _.style.position="absolute",_.style.top="0",_.style.left="0",_.style.width="100%",t.attachParent(_),_},t.setPoint=function(f){var _=t.props.alignPoint;if(!_||!f)return;t.setState({point:{pageX:f.pageX,pageY:f.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var u;return"popupVisible"in o?u=!!o.popupVisible:u=!!o.defaultPopupVisible,t.state={prevPopupVisible:u,popupVisible:u},Da.forEach(function(f){t["fire".concat(f)]=function(_){t.fireEvents(f,_)}}),t}return Object(z.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,u=this.state;if(u.popupVisible){var f;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(f=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ve.a)(f,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(f=f||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(f,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(f=f||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(f,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ct.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,u=t.popupPlacement,f=t.popupAlign,_=t.builtinPlacements;return u&&_?we(_,u,f):f}},{key:"setPopupVisible",value:function(t,u){var f=this.props.alignPoint,_=this.state.popupVisible;this.clearDelayTimer(),_!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:_}),this.props.onPopupVisibleChange(t)),f&&u&&t&&this.setPoint(u)}},{key:"delaySetPopupVisible",value:function(t,u,f){var _=this,y=u*1e3;if(this.clearDelayTimer(),y){var P=f?{pageX:f.pageX,pageY:f.pageY}:null;this.delayTimer=window.setTimeout(function(){_.setPopupVisible(t,P),_.clearDelayTimer()},y)}else this.setPopupVisible(t,f)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var u=this.props.children.props,f=this.props;return u[t]&&f[t]?this["fire".concat(t)]:u[t]||f[t]}},{key:"isClickToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("click")!==-1||f.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("contextMenu")!==-1||f.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,u=t.action,f=t.hideAction;return u.indexOf("click")!==-1||f.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("hover")!==-1||f.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,u=t.action,f=t.hideAction;return u.indexOf("hover")!==-1||f.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("focus")!==-1||f.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,u=t.action,f=t.hideAction;return u.indexOf("focus")!==-1||f.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,u){var f=this.props.children.props[t];f&&f(u);var _=this.props[t];_&&_(u)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,u=this.props,f=u.children,_=u.forceRender,y=u.alignPoint,P=u.className,W=u.autoDestroy,fe=r.Children.only(f),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,y&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Me=ce()(fe&&fe.props&&fe.props.className,P);Me&&(de.className=Me);var $e=Object(U.a)({},de);Object(D.c)(fe)&&($e.ref=Object(D.a)(this.triggerRef,fe.ref));var rt=r.cloneElement(fe,$e),qe;return(t||this.popupRef.current||_)&&(qe=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&W&&(qe=null),r.createElement(ia.Provider,{value:this.triggerContextValue},rt,qe)}}],[{key:"getDerivedStateFromProps",value:function(t,u){var f=t.popupVisible,_={};return f!==void 0&&u.popupVisible!==f&&(_.popupVisible=f,_.prevPopupVisible=u.popupVisible),_}}]),e}(r.Component);return b.contextType=ia,b.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Mn,afterPopupVisibleChange:Mn,onPopupAlign:Mn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},b}var Ja=Ya(ge.a),kn={adjustX:1,adjustY:1},ma={topLeft:{points:["bl","tl"],overflow:kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:kn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:kn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:kn,offset:[4,0]}},wa={topLeft:{points:["bl","tl"],overflow:kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:kn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:kn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:kn,offset:[4,0]}},pa=ma,gn=0,Pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Nn=function(b,O,c){var e=q(O),o=b.getState();b.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},o.defaultActiveFirst),{},Object(L.a)({},e,c))})},ha=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(c){var e;Object(H.a)(this,O),e=b.call(this,c),e.onDestroy=function(y){e.props.onDestroy(y)},e.onKeyDown=function(y){var P=y.keyCode,W=e.menuInstance,fe=e.props.store,de=e.getVisible();if(P===j.a.ENTER)return e.onTitleClick(y),Nn(fe,e.props.eventKey,!0),!0;if(P===j.a.RIGHT)return de?W.onKeyDown(y):(e.triggerOpenChange(!0),Nn(fe,e.props.eventKey,!0)),!0;if(P===j.a.LEFT){var Me;if(de)Me=W.onKeyDown(y);else return;return Me||(e.triggerOpenChange(!1),Me=!0),Me}return de&&(P===j.a.UP||P===j.a.DOWN)?W.onKeyDown(y):void 0},e.onOpenChange=function(y){e.props.onOpenChange(y)},e.onPopupVisibleChange=function(y){e.triggerOpenChange(y,y?"mouseenter":"mouseleave")},e.onMouseEnter=function(y){var P=e.props,W=P.eventKey,fe=P.onMouseEnter,de=P.store;Nn(de,e.props.eventKey,!1),fe({key:W,domEvent:y})},e.onMouseLeave=function(y){var P=e.props,W=P.parentMenu,fe=P.eventKey,de=P.onMouseLeave;W.subMenuInstance=Object(C.a)(e),de({key:fe,domEvent:y})},e.onTitleMouseEnter=function(y){var P=e.props,W=P.eventKey,fe=P.onItemHover,de=P.onTitleMouseEnter;fe({key:W,hover:!0}),de({key:W,domEvent:y})},e.onTitleMouseLeave=function(y){var P=e.props,W=P.parentMenu,fe=P.eventKey,de=P.onItemHover,Me=P.onTitleMouseLeave;W.subMenuInstance=Object(C.a)(e),de({key:fe,hover:!1}),Me({key:fe,domEvent:y})},e.onTitleClick=function(y){var P=Object(C.a)(e),W=P.props;if(W.onTitleClick({key:W.eventKey,domEvent:y}),W.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Nn(W.store,e.props.eventKey,!1)},e.onSubMenuClick=function(y){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(y))},e.onSelect=function(y){e.props.onSelect(y)},e.onDeselect=function(y){e.props.onDeselect(y)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(y){e.menuInstance=y},e.addKeyPath=function(y){return Object(U.a)(Object(U.a)({},y),{},{keyPath:(y.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(y,P){var W=e.props.eventKey,fe=function(){e.onOpenChange({key:W,item:Object(C.a)(e),trigger:P,open:y})};P==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){fe()},0):fe()},e.isChildrenSelected=function(){var y={find:!1};return Ce(e.props.children,e.props.selectedKeys,y),y.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var y=Nt.findDOMNode(e.menuInstance);if(y.offsetWidth>=e.subMenuTitle.offsetWidth)return;y.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(y){e.subMenuTitle=y},e.getBaseProps=function(){var y=Object(C.a)(e),P=y.props,W=e.getMode();return{mode:W==="horizontal"?"vertical":W,visible:e.getVisible(),level:P.level+1,inlineIndent:P.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:P.selectedKeys,eventKey:"".concat(P.eventKey,"-menu-"),openKeys:P.openKeys,motion:P.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:P.subMenuOpenDelay,parentMenu:Object(C.a)(e),subMenuCloseDelay:P.subMenuCloseDelay,forceSubMenuRender:P.forceSubMenuRender,triggerSubMenuAction:P.triggerSubMenuAction,builtinPlacements:P.builtinPlacements,defaultActiveFirst:P.store.getState().defaultActiveFirst[q(P.eventKey)],multiple:P.multiple,prefixCls:P.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:P.itemIcon,expandIcon:P.expandIcon,direction:P.direction}},e.getMotion=function(y,P){var W=Object(C.a)(e),fe=W.haveRendered,de=e.props,Me=de.motion,$e=de.rootPrefixCls,rt=Object(U.a)(Object(U.a)({},Me),{},{leavedClassName:"".concat($e,"-hidden"),removeOnLeave:!1,motionAppear:fe||!P||y!=="inline"});return rt};var o=c.store,t=c.eventKey,u=o.getState(),f=u.defaultActiveFirst;e.isRootMenu=!1;var _=!1;return f&&(_=f[t]),Nn(o,t,_),e.state={mode:c.mode,isOpen:c.isOpen},e}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,u=o.parentMenu,f=o.manualRef,_=o.isOpen,y=function(){e.setState({mode:t,isOpen:_})},P=_!==this.state.isOpen,W=t!==this.state.mode;if((W||P)&&(Ct.a.cancel(this.updateStateRaf),W?this.updateStateRaf=Object(Ct.a)(y):y()),f&&f(this),t!=="horizontal"||!(u==null?void 0:u.isRootMenu)||!_)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ct.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return r.createElement(ua,Object(I.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,u=o.visible,f=o.forceSubMenuRender,_=o.direction,y=this.getMotion(t,u);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||u||f,!this.haveOpened)return r.createElement("div",null);var P=ce()("".concat(o.prefixCls,"-sub"),Object(L.a)({},"".concat(o.prefixCls,"-rtl"),_==="rtl"));return this.isInlineMode()?r.createElement(Oe,Object(I.a)({visible:o.visible,forceRender:f},y),function(W){var fe=W.className,de=W.style,Me=ce()(P,fe);return e.renderPopupMenu(Me,de)}):this.renderPopupMenu(P)}},{key:"render",value:function(){var e,o,t,u=Object(U.a)({},this.props),f=this.getVisible(),_=this.getPrefixCls(),y=this.isInlineMode(),P=this.getMode(),W=ce()(_,"".concat(_,"-").concat(P),(e={},Object(L.a)(e,u.className,!!u.className),Object(L.a)(e,this.getOpenClassName(),f),Object(L.a)(e,this.getActiveClassName(),u.active||f&&!y),Object(L.a)(e,this.getDisabledClassName(),u.disabled),Object(L.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(u.eventKey?this.internalMenuId="".concat(u.eventKey,"$Menu"):(gn+=1,this.internalMenuId="$__$".concat(gn,"$Menu")));var fe={},de={},Me={};u.disabled||(fe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Me={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $e={},rt=u.direction,qe=rt==="rtl";y&&(qe?$e.paddingRight=u.inlineIndent*u.level:$e.paddingLeft=u.inlineIndent*u.level);var lt={};this.getVisible()&&(lt={"aria-owns":this.internalMenuId});var it=null;P!=="horizontal"&&(it=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(it=r.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var at=r.createElement("div",Object(I.a)({ref:this.saveSubMenuTitle,style:$e,className:"".concat(_,"-title"),role:"button"},Me,de,{"aria-expanded":f},lt,{"aria-haspopup":"true",title:typeof u.title=="string"?u.title:void 0}),u.title,it||r.createElement("i",{className:"".concat(_,"-arrow")})),ot=this.renderChildren(),gt=((o=u.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?u.parentMenu.props.getPopupContainer:function(Ht){return Ht.parentNode},ut=Pn[P],$t=u.popupOffset?{offset:u.popupOffset}:{},St=ce()((t={},Object(L.a)(t,u.popupClassName,u.popupClassName&&!y),Object(L.a)(t,"".concat(_,"-rtl"),qe),t)),Xe=u.disabled,Ve=u.triggerSubMenuAction,ct=u.subMenuOpenDelay,ft=u.forceSubMenuRender,Ke=u.subMenuCloseDelay,Et=u.builtinPlacements;Fe.forEach(function(Ht){return delete u[Ht]}),delete u.onClick;var Wt=qe?Object(U.a)(Object(U.a)({},wa),Et):Object(U.a)(Object(U.a)({},ma),Et);delete u.direction;var yt=this.getBaseProps(),At=y?null:this.getMotion(yt.mode,yt.visible);return r.createElement("li",Object(I.a)({},u,fe,{className:W,role:"menuitem"}),r.createElement(Ja,{prefixCls:_,popupClassName:ce()("".concat(_,"-popup"),St),getPopupContainer:gt,builtinPlacements:Wt,popupPlacement:ut,popupVisible:y?!1:f,popupAlign:$t,popup:y?null:ot,action:Xe||y?[]:[Ve],mouseEnterDelay:ct,mouseLeaveDelay:Ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ft,popupMotion:At},at),y?ot:null)}}]),O}(r.Component);ha.defaultProps={onMouseEnter:A,onMouseLeave:A,onTitleMouseEnter:A,onTitleMouseLeave:A,onTitleClick:A,manualRef:A,mode:"vertical",title:""};var ta=Object(v.b)(function(i,b){var O=i.openKeys,c=i.activeKey,e=i.selectedKeys,o=b.eventKey,t=b.subMenuKey;return{isOpen:O.indexOf(o)>-1,active:c[t]===o,selectedKeys:e}})(ha);ta.isSubMenu=!0;var na=ta,La="menuitem-overflowed",Qa=.5,Ua=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){var c;return Object(H.a)(this,O),c=b.apply(this,arguments),c.resizeObserver=null,c.mutationObserver=null,c.originalTotalWidth=0,c.overflowedItems=[],c.menuItemSizes=[],c.cancelFrameId=null,c.state={lastVisibleIndex:void 0},c.childRef=r.createRef(),c.getMenuItemNodes=function(){var e=c.props.prefixCls,o=c.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},c.getOverflowedSubMenuItem=function(e,o,t){var u=c.props,f=u.overflowedIndicator,_=u.level,y=u.mode,P=u.prefixCls,W=u.theme;if(_!==1||y!=="horizontal")return null;var fe=c.props.children[0],de=fe.props,Me=de.children,$e=de.title,rt=de.style,qe=Object(Se.a)(de,["children","title","style"]),lt=Object(U.a)({},rt),it="".concat(e,"-overflowed-indicator"),at="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?lt=Object(U.a)(Object(U.a)({},lt),{},{display:"none"}):t&&(lt=Object(U.a)(Object(U.a)({},lt),{},{visibility:"hidden",position:"absolute"}),it="".concat(it,"-placeholder"),at="".concat(at,"-placeholder"));var ot=W?"".concat(P,"-").concat(W):"",gt={};return Fe.forEach(function(ut){qe[ut]!==void 0&&(gt[ut]=qe[ut])}),r.createElement(na,Object(I.a)({title:f,className:"".concat(P,"-overflowed-submenu"),popupClassName:ot},gt,{key:it,eventKey:at,disabled:!1,style:lt}),o)},c.setChildrenWidthAndResize=function(){if(c.props.mode!=="horizontal")return;var e=c.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Ue(t,"display","inline-block");var u=c.getMenuItemNodes(),f=u.filter(function(_){return _.className.split(" ").indexOf(La)>=0});f.forEach(function(_){Ue(_,"display","inline-block")}),c.menuItemSizes=u.map(function(_){return Be(_,!0)}),f.forEach(function(_){Ue(_,"display","none")}),c.overflowedIndicatorWidth=Be(e.children[e.children.length-1],!0),c.originalTotalWidth=c.menuItemSizes.reduce(function(_,y){return _+y},0),c.handleResize(),Ue(t,"display","none")},c.handleResize=function(){if(c.props.mode!=="horizontal")return;var e=c.childRef.current;if(!e)return;var o=Be(e);c.overflowedItems=[];var t=0,u;c.originalTotalWidth>o+Qa&&(u=-1,c.menuItemSizes.forEach(function(f){t+=f,t+c.overflowedIndicatorWidth<=o&&(u+=1)})),c.setState({lastVisibleIndex:u})},c}return Object(z.a)(O,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Pt.default(function(t){t.forEach(function(){var u=e.cancelFrameId;cancelAnimationFrame(u),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(u,f,_){var y=f;if(o.props.mode==="horizontal"){var P=o.getOverflowedSubMenuItem(f.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(_>t&&(y=r.cloneElement(f,{style:{display:"none"},eventKey:"".concat(f.props.eventKey,"-hidden"),className:"".concat(La)})),_===t+1&&(o.overflowedItems=e.slice(t+1).map(function(fe){return r.cloneElement(fe,{key:fe.props.eventKey,mode:"vertical-left"})}),P=o.getOverflowedSubMenuItem(f.props.eventKey,o.overflowedItems)));var W=[].concat(Object(k.a)(u),[P,y]);return _===e.length-1&&W.push(o.getOverflowedSubMenuItem(f.props.eventKey,[],!0)),W}return[].concat(Object(k.a)(u),[y])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,u=e.overflowedIndicator,f=e.mode,_=e.level,y=e.tag,P=e.children,W=e.theme,fe=Object(Se.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=y;return r.createElement(de,Object(I.a)({ref:this.childRef},fe),this.renderChildren(P))}}]),O}(r.Component);Ua.defaultProps={tag:"div",className:""};var va=Ua;function sa(i){return i.length?i.every(function(b){return!!b.props.disabled}):!0}function $n(i,b,O){var c=i.getState();i.setState({activeKey:Object(U.a)(Object(U.a)({},c.activeKey),{},Object(L.a)({},b,O))})}function zn(i){return i.eventKey||"0-menu-"}function la(i,b){var O=b,c=i.children,e=i.eventKey;if(O){var o;if(ye(c,function(t,u){t&&t.props&&!t.props.disabled&&O===d(t,e,u)&&(o=!0)}),o)return O}return O=null,i.defaultActiveFirst&&ye(c,function(t,u){!O&&t&&!t.props.disabled&&(O=d(t,e,u))}),O}function ka(i){if(!i)return;var b=this.instanceArray.indexOf(i);b!==-1?this.instanceArray[b]=i:this.instanceArray.push(i)}var Ia=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(c){var e;return Object(H.a)(this,O),e=b.call(this,c),e.onKeyDown=function(o,t){var u=o.keyCode,f;if(e.getFlatInstanceArray().forEach(function(y){y&&y.props.active&&y.onKeyDown&&(f=y.onKeyDown(o))}),f)return 1;var _=null;return(u===j.a.UP||u===j.a.DOWN)&&(_=e.step(u===j.a.UP?-1:1)),_?(o.preventDefault(),$n(e.props.store,zn(e.props),_.props.eventKey),typeof t=="function"&&t(_),1):void 0},e.onItemHover=function(o){var t=o.key,u=o.hover;$n(e.props.store,zn(e.props),u?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),u=e.props.store.getState().activeKey[zn(e.props)],f=t.length;if(!f)return null;o<0&&(t=t.concat().reverse());var _=-1;if(t.every(function(fe,de){return fe&&fe.props.eventKey===u?(_=de,!1):!0}),!e.props.defaultActiveFirst&&_!==-1&&sa(t.slice(_,f-1)))return;var y=(_+1)%f,P=y;do{var W=t[P];if(!W||W.props.disabled)P=(P+1)%f;else return W}while(P!==y);return null},e.renderCommonMenuItem=function(o,t,u){var f=e.props.store.getState(),_=Object(C.a)(e),y=_.props,P=d(o,y.eventKey,t),W=o.props;if(!W||typeof o.type=="string")return o;var fe=P===f.activeKey,de=Object(U.a)(Object(U.a)({mode:W.mode||y.mode,level:y.level,inlineIndent:y.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:y.prefixCls,index:t,parentMenu:y.parentMenu,manualRef:W.disabled?void 0:Object(V.a)(o.ref,ka.bind(Object(C.a)(e))),eventKey:P,active:!W.disabled&&fe,multiple:y.multiple,onClick:function($e){(W.onClick||A)($e),e.onClick($e)},onItemHover:e.onItemHover,motion:y.motion,subMenuOpenDelay:y.subMenuOpenDelay,subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:y.builtinPlacements,itemIcon:W.itemIcon||e.props.itemIcon,expandIcon:W.expandIcon||e.props.expandIcon},u),{},{direction:y.direction});return(y.mode==="inline"||We())&&(de.triggerSubMenuAction="click"),r.cloneElement(o,Object(U.a)(Object(U.a)({},de),{},{key:P||t}))},e.renderMenuItem=function(o,t,u){if(!o)return null;var f=e.props.store.getState(),_={openKeys:f.openKeys,selectedKeys:f.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:u};return e.renderCommonMenuItem(o,t,_)},c.store.setState({activeKey:Object(U.a)(Object(U.a)({},c.store.getState().activeKey),{},Object(L.a)({},c.eventKey,la(c,c.activeKey)))}),e.instanceArray=[],e}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!te()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[zn(o)],u=la(o,t);if(u!==t)$n(o.store,zn(o),u);else if("activeKey"in e){var f=la(e,e.activeKey);u!==f&&$n(o.store,zn(o),u)}}},{key:"render",value:function(){var e=this,o=Object(I.a)({},this.props);this.instanceArray=[];var t=ce()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),u={className:t,role:o.role||"menu"};o.id&&(u.id=o.id),o.focusable&&(u.tabIndex=0,u.onKeyDown=this.onKeyDown);var f=o.prefixCls,_=o.eventKey,y=o.visible,P=o.level,W=o.mode,fe=o.overflowedIndicator,de=o.theme;return Fe.forEach(function(Me){return delete o[Me]}),delete o.onClick,r.createElement(va,Object(I.a)({},o,{prefixCls:f,mode:W,tag:"ul",level:P,theme:de,visible:y,overflowedIndicator:fe},u),Object(se.a)(o.children).map(function(Me,$e){return e.renderMenuItem(Me,$e,_||"0-menu-")}))}}]),O}(r.Component);Ia.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:A};var Ka=Object(v.b)()(Ia),ua=Ka,Gn=a("Kwbf");function ba(i,b,O){var c=i.prefixCls,e=i.motion,o=i.defaultMotions,t=o===void 0?{}:o,u=i.openAnimation,f=i.openTransitionName,_=b.switchingModeFromInline;if(e)return e;if(Object(T.a)(u)==="object"&&u)Object(Gn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof u=="string")return{motionName:"".concat(c,"-open-").concat(u)};if(f)return{motionName:f};var y=t[O];return y||(_?null:t.other)}var Fa=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(c){var e;Object(H.a)(this,O),e=b.call(this,c),e.onSelect=function(u){var f=Object(C.a)(e),_=f.props;if(_.selectable){var y=e.store.getState(),P=y.selectedKeys,W=u.key;_.multiple?P=P.concat([W]):P=[W],"selectedKeys"in _||e.store.setState({selectedKeys:P}),_.onSelect(Object(U.a)(Object(U.a)({},u),{},{selectedKeys:P}))}},e.onClick=function(u){var f=e.getRealMenuMode(),_=Object(C.a)(e),y=_.store,P=_.props.onOpenChange;f!=="inline"&&!("openKeys"in e.props)&&(y.setState({openKeys:[]}),P([])),e.props.onClick(u)},e.onKeyDown=function(u,f){e.innerMenu.getWrappedInstance().onKeyDown(u,f)},e.onOpenChange=function(u){var f=Object(C.a)(e),_=f.props,y=e.store.getState().openKeys.concat(),P=!1,W=function(de){var Me=!1;if(de.open)Me=y.indexOf(de.key)===-1,Me&&y.push(de.key);else{var $e=y.indexOf(de.key);Me=$e!==-1,Me&&y.splice($e,1)}P=P||Me};Array.isArray(u)?u.forEach(W):W(u),P&&("openKeys"in e.props||e.store.setState({openKeys:y}),_.onOpenChange(y))},e.onDeselect=function(u){var f=Object(C.a)(e),_=f.props;if(_.selectable){var y=e.store.getState().selectedKeys.concat(),P=u.key,W=y.indexOf(P);W!==-1&&y.splice(W,1),"selectedKeys"in _||e.store.setState({selectedKeys:y}),_.onDeselect(Object(U.a)(Object(U.a)({},u),{},{selectedKeys:y}))}},e.onMouseEnter=function(u){e.restoreModeVerticalFromInline();var f=e.props.onMouseEnter;f&&f(u)},e.onTransitionEnd=function(u){var f=u.propertyName==="width"&&u.target===u.currentTarget,_=u.target.className,y=Object.prototype.toString.call(_)==="[object SVGAnimatedString]"?_.animVal:_,P=u.propertyName==="font-size"&&y.indexOf("anticon")>=0;(f||P)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(u){e.innerMenu=u},e.isRootMenu=!0;var o=c.defaultSelectedKeys,t=c.defaultOpenKeys;return"selectedKeys"in c&&(o=c.selectedKeys||[]),"openKeys"in c&&(t=c.openKeys||[]),e.store=Object(v.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":la(c,c.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:c,inlineOpenKeys:[],store:e.store},e}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,u=o.inlineCollapsed,f=o.onOpenChange;(!e.inlineCollapsed&&u||!e.siderCollapsed&&t)&&f([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,u=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");u?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(U.a)({},Object(B.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(U.a)(Object(U.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ba(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(v.a,{store:this.store},r.createElement(ua,Object(I.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,u=o.store,f=u.getState(),_={},y={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(y.switchingModeFromInline=!0),"openKeys"in e?_.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(y.switchingModeFromInline=!0,y.inlineOpenKeys=f.openKeys,_.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(_.openKeys=o.inlineOpenKeys,y.inlineOpenKeys=[])),Object.keys(_).length&&u.setState(_),y}}]),O}(r.Component);Fa.defaultProps={selectable:!0,onClick:A,onSelect:A,onOpenChange:A,onDeselect:A,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Wa=Fa,Yn=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){var c;return Object(H.a)(this,O),c=b.apply(this,arguments),c.onKeyDown=function(e){var o=e.keyCode;return o===j.a.ENTER?(c.onClick(e),!0):void 0},c.onMouseLeave=function(e){var o=c.props,t=o.eventKey,u=o.onItemHover,f=o.onMouseLeave;u({key:t,hover:!1}),f({key:t,domEvent:e})},c.onMouseEnter=function(e){var o=c.props,t=o.eventKey,u=o.onItemHover,f=o.onMouseEnter;u({key:t,hover:!0}),f({key:t,domEvent:e})},c.onClick=function(e){var o=c.props,t=o.eventKey,u=o.multiple,f=o.onClick,_=o.onSelect,y=o.onDeselect,P=o.isSelected,W={key:t,keyPath:[t],item:Object(C.a)(c),domEvent:e};f(W),u?P?y(W):_(W):P||_(W)},c.saveNode=function(e){c.node=e},c}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,o=Object(U.a)({},this.props),t=ce()(this.getPrefixCls(),o.className,(e={},Object(L.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(L.a)(e,this.getSelectedClassName(),o.isSelected),Object(L.a)(e,this.getDisabledClassName(),o.disabled),e)),u=Object(U.a)(Object(U.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?u=Object(U.a)(Object(U.a)({},u),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(u.role="none");var f={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},_=Object(U.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?_.paddingRight=o.inlineIndent*o.level:_.paddingLeft=o.inlineIndent*o.level),Fe.forEach(function(P){return delete o[P]}),delete o.direction;var y=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(y=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(I.a)({},Object(B.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),u,f,{style:_,ref:this.saveNode}),o.children,y)}}]),O}(r.Component);Yn.isMenuItem=!0,Yn.defaultProps={onSelect:A,onMouseEnter:A,onMouseLeave:A,manualRef:A};var ga=Object(v.b)(function(i,b){var O=i.activeKey,c=i.selectedKeys,e=b.eventKey,o=b.subMenuKey;return{active:O[o]===e,isSelected:Array.isArray(c)?c.indexOf(e)!==-1:c===e}})(Yn),Ea=ga,ya=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){var c;return Object(H.a)(this,O),c=b.apply(this,arguments),c.renderInnerMenuItem=function(e){var o=c.props,t=o.renderMenuItem,u=o.index;return t(e,u,c.props.subMenuKey)},c}return Object(z.a)(O,[{key:"render",value:function(){var e=Object(I.a)({},this.props),o=e.className,t=o===void 0?"":o,u=e.rootPrefixCls,f="".concat(u,"-item-group-title"),_="".concat(u,"-item-group-list"),y=e.title,P=e.children;return Fe.forEach(function(W){return delete e[W]}),delete e.direction,r.createElement("li",Object(I.a)({},e,{onClick:function(fe){return fe.stopPropagation()},className:"".concat(t," ").concat(u,"-item-group")}),r.createElement("div",{className:f,title:typeof y=="string"?y:void 0},y),r.createElement("ul",{className:_},r.Children.map(P,this.renderInnerMenuItem)))}}]),O}(r.Component);ya.isMenuItemGroup=!0,ya.defaultProps={disabled:!0};var Za=ya,Ca=function(b){var O=b.className,c=b.rootPrefixCls,e=b.style;return r.createElement("li",{className:"".concat(O," ").concat(c,"-item-divider"),style:e})};Ca.defaultProps={disabled:!0,className:"",style:{}};var qa=Ca,za=Wa,Oa=a("eDIo");function eo(i,b){var O=i.prefixCls,c=i.editable,e=i.locale,o=i.style;return!c||c.showAdd===!1?null:r.createElement("button",{ref:b,type:"button",className:"".concat(O,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(u){c.onEdit("add",{event:u})}},c.addIcon||"+")}var ca=r.forwardRef(eo);function to(i,b){var O=i.prefixCls,c=i.id,e=i.tabs,o=i.locale,t=i.mobile,u=i.moreIcon,f=u===void 0?"More":u,_=i.moreTransitionName,y=i.style,P=i.className,W=i.editable,fe=i.tabBarGutter,de=i.rtl,Me=i.onTabClick,$e=Object(r.useState)(!1),rt=Object(M.a)($e,2),qe=rt[0],lt=rt[1],it=Object(r.useState)(null),at=Object(M.a)(it,2),ot=at[0],gt=at[1],ut="".concat(c,"-more-popup"),$t="".concat(O,"-dropdown"),St=ot!==null?"".concat(ut,"-").concat(ot):null,Xe=o==null?void 0:o.dropdownAriaLabel,Ve=r.createElement(za,{onClick:function(At){var Ht=At.key,dn=At.domEvent;Me(Ht,dn),lt(!1)},id:ut,tabIndex:-1,role:"listbox","aria-activedescendant":St,selectedKeys:[ot],"aria-label":Xe!==void 0?Xe:"expanded dropdown"},e.map(function(yt){return r.createElement(Ea,{key:yt.key,id:"".concat(ut,"-").concat(yt.key),role:"option","aria-controls":c&&"".concat(c,"-panel-").concat(yt.key),disabled:yt.disabled},yt.tab)}));function ct(yt){for(var At=e.filter(function(yn){return!yn.disabled}),Ht=At.findIndex(function(yn){return yn.key===ot})||0,dn=At.length,En=0;EnEt?(ft=Ve,ut.current="x"):(ft=ct,ut.current="y");var Wt=Date.now();Wt-ot.current>100&&(gt.current=!1),(b(-ft,-ft)||gt.current)&&(Xe.preventDefault(),gt.current=!0),ot.current=Wt}var St=Object(r.useRef)(null);St.current={onTouchStart:lt,onTouchMove:it,onTouchEnd:at,onWheel:$t},r.useEffect(function(){function Xe(Ke){St.current.onTouchStart(Ke)}function Ve(Ke){St.current.onTouchMove(Ke)}function ct(Ke){St.current.onTouchEnd(Ke)}function ft(Ke){St.current.onWheel(Ke)}return document.addEventListener("touchmove",Ve,{passive:!1}),document.addEventListener("touchend",ct,{passive:!1}),i.current.addEventListener("touchstart",Xe,{passive:!1}),i.current.addEventListener("wheel",ft),function(){document.removeEventListener("touchmove",Ve),document.removeEventListener("touchend",ct)}},[])}function xa(){var i=Object(r.useRef)(new Map);function b(c){return i.current.has(c)||i.current.set(c,r.createRef()),i.current.get(c)}function O(c){i.current.delete(c)}return[b,O]}function Ha(i,b){var O=r.useRef(i),c=r.useState({}),e=Object(M.a)(c,2),o=e[1];function t(u){var f=typeof u=="function"?u(O.current):u;f!==O.current&&b(f,O.current),O.current=f,o({})}return[O.current,t]}var Va=function(b){var O=b.position,c=b.prefixCls,e=b.extra;if(!e)return null;var o,t=e;return O==="right"&&(o=t.right||!t.left&&t||null),O==="left"&&(o=t.left||null),o?r.createElement("div",{className:"".concat(c,"-extra-content")},o):null};function Wo(i,b){var O,c=r.useContext(_a),e=c.prefixCls,o=c.tabs,t=i.className,u=i.style,f=i.id,_=i.animated,y=i.activeKey,P=i.rtl,W=i.extra,fe=i.editable,de=i.locale,Me=i.tabPosition,$e=i.tabBarGutter,rt=i.children,qe=i.onTabClick,lt=i.onTabScroll,it=Object(r.useRef)(),at=Object(r.useRef)(),ot=Object(r.useRef)(),gt=Object(r.useRef)(),ut=xa(),$t=Object(M.a)(ut,2),St=$t[0],Xe=$t[1],Ve=Me==="top"||Me==="bottom",ct=Ha(0,function(Tt,dt){Ve&<&<({direction:Tt>dt?"left":"right"})}),ft=Object(M.a)(ct,2),Ke=ft[0],Et=ft[1],Wt=Ha(0,function(Tt,dt){!Ve&<&<({direction:Tt>dt?"top":"bottom"})}),yt=Object(M.a)(Wt,2),At=yt[0],Ht=yt[1],dn=Object(r.useState)(0),En=Object(M.a)(dn,2),Yt=En[0],yn=En[1],In=Object(r.useState)(0),Rn=Object(M.a)(In,2),Sn=Rn[0],Jt=Rn[1],bn=Object(r.useState)(0),fn=Object(M.a)(bn,2),rn=fn[0],Jn=fn[1],Qn=Object(r.useState)(0),oa=Object(M.a)(Qn,2),Ft=oa[0],Bn=oa[1],ra=Object(r.useState)(null),zt=Object(M.a)(ra,2),Mt=zt[0],mn=zt[1],Xo=Object(r.useState)(null),bo=Object(M.a)(Xo,2),da=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(M.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(M.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=R(new Map),yo=Object(M.a)(er,2),tr=yo[0],nr=yo[1],Xa=ue(o,tr,Yt),Co="".concat(e,"-nav-operations-hidden"),ja=0,Ma=0;Ve?P?(ja=0,Ma=Math.max(0,Yt-Mt)):(ja=Math.min(0,Mt-Yt),Ma=0):(ja=Math.min(0,da-Sn),Ma=0);function ao(Tt){return TtMa?[Ma,!1]:[Tt,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(M.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Ba(it,function(Tt,dt){var sn=!1;function Tn(Sa,Ta){Sa(function(Aa){var Pa=ao(Aa+Ta),fa=Object(M.a)(Pa,2),co=fa[0],fo=fa[1];return sn=fo,co})}if(Ve){if(Mt>=Yt)return sn;Tn(Et,Tt)}else{if(da>=Sn)return sn;Tn(Ht,dt)}return io(),ro(),sn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y,dt=Xa.get(Tt);if(!dt)return;if(Ve){var sn=Ke;P?dt.rightKe+Mt&&(sn=dt.right+dt.width-Mt):dt.left<-Ke?sn=-dt.left:dt.left+dt.width>-Ke+Mt&&(sn=-(dt.left+dt.width-Mt)),Ht(0),Et(ao(sn)[0])}else{var Tn=At;dt.top<-At?Tn=-dt.top:dt.top+dt.height>-At+da&&(Tn=-(dt.top+dt.height-da)),Et(0),Ht(ao(Tn)[0])}}var or=be(Xa,{width:Mt,height:da,left:Ke,top:At},{width:rn,height:Ft},{width:Yo,height:Zo},Object(U.a)(Object(U.a)({},i),{},{tabs:o})),Mo=Object(M.a)(or,2),rr=Mo[0],ir=Mo[1],sr=o.map(function(Tt){var dt=Tt.key;return r.createElement(G,{id:f,prefixCls:e,key:dt,rtl:P,tab:Tt,closable:Tt.closable,editable:fe,active:dt===y,tabPosition:Me,tabBarGutter:$e,renderWrapper:rt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:St(dt),onClick:function(Tn){qe(dt,Tn)},onRemove:function(){Xe(dt)},onFocus:function(){jo(dt),ro(),P||(it.current.scrollLeft=0),it.current.scrollTop=0}})}),so=J(function(){var Tt,dt,sn,Tn,Sa,Ta,Aa,Pa,fa,co=((Tt=it.current)===null||Tt===void 0?void 0:Tt.offsetWidth)||0,fo=((dt=it.current)===null||dt===void 0?void 0:dt.offsetHeight)||0,wo=((sn=gt.current)===null||sn===void 0?void 0:sn.offsetWidth)||0,Lo=((Tn=gt.current)===null||Tn===void 0?void 0:Tn.offsetHeight)||0,mr=((Sa=ot.current)===null||Sa===void 0?void 0:Sa.offsetWidth)||0,pr=((Ta=ot.current)===null||Ta===void 0?void 0:Ta.offsetHeight)||0;mn(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((Aa=at.current)===null||Aa===void 0?void 0:Aa.offsetWidth)||0)-wo,ko=(((Pa=at.current)===null||Pa===void 0?void 0:Pa.offsetHeight)||0)-Lo;yn(Uo),Jt(ko);var Io=(fa=ot.current)===null||fa===void 0?void 0:fa.className.includes(Co);Jn(Uo-(Io?0:mr)),Bn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Fo=hr.key,Na=St(Fo).current;Na&&Ko.set(Fo,{width:Na.offsetWidth,height:Na.offsetHeight,left:Na.offsetLeft,top:Na.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),Ro=[].concat(Object(k.a)(lr),Object(k.a)(ur)),cr=Object(r.useState)(),So=Object(M.a)(cr,2),dr=So[0],fr=So[1],Zn=Xa.get(y),To=Object(r.useRef)();function Ao(){re.a.cancel(To.current)}Object(r.useEffect)(function(){var Tt={};return Zn&&(Ve?(P?Tt.right=Zn.right:Tt.left=Zn.left,Tt.width=Zn.width):(Tt.top=Zn.top,Tt.height=Zn.height)),Ao(),To.current=re()(function(){fr(Tt)}),Ao},[Zn,Ve,P]),Object(r.useEffect)(function(){jo()},[y,Zn,Xa,Ve]),Object(r.useEffect)(function(){so()},[P,$e,y,o.map(function(Tt){return Tt.key}).join("_")]);var Po=!!Ro.length,Ra="".concat(e,"-nav-wrap"),lo,uo,No,Do;return Ve?P?(uo=Ke>0,lo=Ke+Mt1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(ue.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Y=ue[0];if(p.isValidElement(Y)&&Object(X.c)(Y)){var be=Y.ref;ue[0]=p.cloneElement(Y,{ref:Object(X.a)(be,this.setChildNode)})}return ue.length===1?ue[0]:ue.map(function(I,H){return!p.isValidElement(I)||"key"in I&&I.key!==null?I:p.cloneElement(I,{key:"".concat(me,"-").concat(H)})})}}]),ie}(p.Component);J.displayName="ResizeObserver",pe.a=J},wCXF:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return Lt});var L=a("rePB"),M=a("VTBJ"),Se=a("KQm4"),U=a("U8pU"),r=a("ODXe"),p=a("q1tI"),ce=a("TSYQ"),se=a.n(ce),F=a("Gytx"),k=a.n(F),X=a("Kwbf"),re=a("t23M"),me=a("qx4F"),J=a("6eGT"),R=a("IBYe"),j=a("Ff2n"),ie=a("c+Xe"),G=a("fyJ8"),le=a("biw7");function ue(D,ve,ge,Te,we){var Re=ge[D]||{},xe=ge[ve]||{},Ee,je;Re.fixed==="left"?Ee=Te.left[D]:xe.fixed==="right"&&(je=Te.right[ve]);var ze=!1,Pe=!1,ke=!1,Je=!1,Le=ge[ve+1],Ie=ge[D-1];if(we==="rtl"){if(Ee!==void 0){var st=Ie&&Ie.fixed==="left";Je=!st}else if(je!==void 0){var tt=Le&&Le.fixed==="right";ke=!tt}}else if(Ee!==void 0){var Ze=Le&&Le.fixed==="left";ze=!Ze}else if(je!==void 0){var Qe=Ie&&Ie.fixed==="right";Pe=!Qe}return{fixLeft:Ee,fixRight:je,lastFixLeft:ze,firstFixRight:Pe,lastFixRight:ke,firstFixLeft:Je,isSticky:Te.isSticky}}var Y=a("sR1s");function be(D){var ve=D.cells,ge=D.stickyOffsets,Te=D.flattenColumns,we=D.rowComponent,Re=D.cellComponent,xe=D.onHeaderRow,Ee=D.index,je=p.useContext(le.a),ze=je.prefixCls,Pe=je.direction,ke;xe&&(ke=xe(ve.map(function(Le){return Le.column}),Ee));var Je=Object(Y.a)(ve.map(function(Le){return Le.column}));return p.createElement(we,Object.assign({},ke),ve.map(function(Le,Ie){var st=Le.column,tt=ue(Le.colStart,Le.colEnd,Te,ge,Pe),Ze;return st&&st.onHeaderCell&&(Ze=Le.column.onHeaderCell(st)),p.createElement(G.a,Object.assign({},Le,{ellipsis:st.ellipsis,align:st.align,component:Re,prefixCls:ze,key:Je[Ie]},tt,{additionalProps:Ze,rowType:"header"}))}))}be.displayName="HeaderRow";var I=be;function H(D){var ve=[];function ge(xe,Ee){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[je]=ve[je]||[];var ze=Ee,Pe=xe.filter(Boolean).map(function(ke){var Je={key:ke.key,className:ke.className||"",children:ke.title,column:ke,colStart:ze},Le=1,Ie=ke.children;return Ie&&Ie.length>0&&(Le=ge(Ie,ze,je+1).reduce(function(st,tt){return st+tt},0),Je.hasSubColumns=!0),"colSpan"in ke&&(Le=ke.colSpan),"rowSpan"in ke&&(Je.rowSpan=ke.rowSpan),Je.colSpan=Le,Je.colEnd=Je.colStart+Le-1,ve[je].push(Je),ze+=Le,Le});return Pe}ge(D,0);for(var Te=ve.length,we=function(Ee){ve[Ee].forEach(function(je){!("rowSpan"in je)&&!je.hasSubColumns&&(je.rowSpan=Te-Ee)})},Re=0;Re=0;Ee-=1){var je=ve[Ee],ze=ge&&ge[Ee],Pe=ze&&ze[g.a];(je||Pe||xe)&&(we.unshift(p.createElement("col",Object.assign({key:Ee,style:{width:je,minWidth:je}},Pe))),xe=!0)}return p.createElement("colgroup",null,we)}var v=l;function B(D,ve){return Object(p.useMemo)(function(){for(var ge=[],Te=0;Te1?Ne-1:0),Ae=1;Ae=ke&&(wt=ke-Je),xe({scrollLeft:wt/ke*(Pe+2)}),Qe.current.x=et.pageX},_t=function(){var et=Object(Fe.b)(Re.current).top,Dt=et+Re.current.offsetHeight,en=document.documentElement.scrollTop+window.innerHeight;Dt-Object(me.a)()<=en||et>=en-Ee?Ze(function(tn){return Object(M.a)(Object(M.a)({},tn),{},{isHiddenScrollBar:!0})}):Ze(function(tn){return Object(M.a)(Object(M.a)({},tn),{},{isHiddenScrollBar:!1})})},xt=function(et){Ze(function(Dt){return Object(M.a)(Object(M.a)({},Dt),{},{scrollLeft:et/Pe*ke||0})})};return p.useImperativeHandle(ge,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var bt=Object(Ce.a)(document.body,"mouseup",Qt,!1),et=Object(Ce.a)(document.body,"mousemove",Zt,!1);return _t(),function(){bt.remove(),et.remove()}},[Je,Ot]),p.useEffect(function(){var bt=Object(Ce.a)(window,"scroll",_t,!1),et=Object(Ce.a)(window,"resize",_t,!1);return function(){bt.remove(),et.remove()}},[]),p.useEffect(function(){tt.isHiddenScrollBar||Ze(function(bt){var et,Dt;return Object(M.a)(Object(M.a)({},bt),{},{scrollLeft:Re.current.scrollLeft/((et=Re.current)===null||et===void 0?void 0:et.scrollWidth)*((Dt=Re.current)===null||Dt===void 0?void 0:Dt.clientWidth)})})},[tt.isHiddenScrollBar]),Pe<=ke||!Je||tt.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(me.a)(),width:ke,bottom:Ee},className:"".concat(ze,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:Le,className:se()("".concat(ze,"-sticky-scroll-bar"),Object(L.a)({},"".concat(ze,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Je,"px"),transform:"translate3d(".concat(tt.scrollLeft,"px, 0, 0)")}}))},Ue=p.forwardRef(Be);function We(D,ve){return p.useMemo(function(){var ge=!!D;return{isSticky:ge,stickyClassName:ge?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(U.a)(D)==="object"&&D.offsetHeader||0,offsetScroll:Object(U.a)(D)==="object"&&D.offsetScroll||0}},[D,ve])}var Pt=[],Nt={},Lt="rc-table-internal-hook",Ct=p.memo(function(D){var ve=D.children;return ve},function(D,ve){return k()(D.props,ve.props)?D.pingLeft!==ve.pingLeft||D.pingRight!==ve.pingRight:!1});function Ut(D){var ve,ge=D.prefixCls,Te=D.className,we=D.rowClassName,Re=D.style,xe=D.data,Ee=D.rowKey,je=D.scroll,ze=D.tableLayout,Pe=D.direction,ke=D.title,Je=D.footer,Le=D.summary,Ie=D.id,st=D.showHeader,tt=D.components,Ze=D.emptyText,Qe=D.onRow,kt=D.onHeaderRow,It=D.internalHooks,Ot=D.transformColumns,Kt=D.internalRefs,Qt=D.sticky,mt=xe||Pt,Zt=!!mt.length,_t=p.useState(0),xt=Object(r.a)(_t,2),bt=xt[0],et=xt[1];p.useEffect(function(){et(Object(me.a)())});var Dt=p.useMemo(function(){return Object(Y.c)(tt,{})},[tt]),en=p.useCallback(function(ht,vt){return Object(Y.b)(Dt,ht)||vt},[Dt]),tn=p.useMemo(function(){return typeof Ee=="function"?Ee:function(ht){var vt=ht&&ht[Ee];return vt}},[Ee]),wt=Object(g.c)(D),un=wt.expandIcon,Cn=wt.expandedRowKeys,an=wt.defaultExpandedRowKeys,hn=wt.defaultExpandAllRows,On=wt.expandedRowRender,Dn=wt.onExpand,_n=wt.onExpandedRowsChange,Hn=wt.expandRowByClick,cn=wt.rowExpandable,Kn=wt.expandIconColumnIndex,An=wt.expandedRowClassName,Fn=wt.childrenColumnName,wn=wt.indentSize,xn=un||q,Ln=Fn||"children",Vn=p.useMemo(function(){return On?"row":D.expandable&&It===Lt&&D.expandable.__PARENT_RENDER_ICON__||mt.some(function(ht){return ht&&Object(U.a)(ht)==="object"&&ht[Ln]})?"nest":!1},[!!On,mt]),Un=p.useState(function(){return an||(hn?ye(mt,tn,Ln):[])}),qt=Object(r.a)(Un,2),on=qt[0],Vt=qt[1],Ne=p.useMemo(function(){return new Set(Cn||on||[])},[Cn,on]),Oe=p.useCallback(function(ht){var vt=tn(ht,mt.indexOf(ht)),Xt,pn=Ne.has(vt);pn?(Ne.delete(vt),Xt=Object(Se.a)(Ne)):Xt=[].concat(Object(Se.a)(Ne),[vt]),Vt(Xt),Dn&&Dn(!pn,ht),_n&&_n(Xt)},[tn,Ne,mt,Dn,_n]),Ae=p.useState(0),He=Object(r.a)(Ae,2),De=He[0],nt=He[1],Ge=Object(ne.b)(Object(M.a)(Object(M.a)(Object(M.a)({},D),wt),{},{expandable:!!On,expandedKeys:Ne,getRowKey:tn,onTriggerExpand:Oe,expandIcon:xn,expandIconColumnIndex:Kn,direction:Pe}),It===Lt?Ot:null),Rt=Object(r.a)(Ge,2),pt=Rt[0],jt=Rt[1],Gt=p.useMemo(function(){return{columns:pt,flattenColumns:jt}},[pt,jt]),vn=p.useRef(),jn=p.useRef(),Bt=p.useRef(),Xn=p.useState(!1),nn=Object(r.a)(Xn,2),Wn=nn[0],qn=nn[1],ea=p.useState(!1),ia=Object(r.a)(ea,2),Mn=ia[0],$a=ia[1],Ga=K(new Map),Da=Object(r.a)(Ga,2),Ya=Da[0],Ja=Da[1],kn=Object(Y.a)(jt),ma=kn.map(function(ht){return Ya.get(ht)}),wa=p.useMemo(function(){return ma},[ma.join("_")]),pa=m(wa,jt.length,Pe),gn=je&&Object(Y.d)(je.y),Pn=je&&Object(Y.d)(je.x),Nn=Pn&&jt.some(function(ht){var vt=ht.fixed;return vt}),ha=p.useRef(),ta=We(Qt,ge),na=ta.isSticky,La=ta.offsetHeader,Qa=ta.offsetScroll,Ua=ta.stickyClassName,va,sa,$n;gn&&(sa={overflowY:"scroll",maxHeight:je.y}),Pn&&(va={overflowX:"auto"},gn||(sa={overflowY:"hidden"}),$n={width:je.x===!0?"auto":je.x,minWidth:"100%"});var zn=p.useCallback(function(ht,vt){Ja(function(Xt){var pn=new Map(Xt);return pn.set(ht,vt),pn})},[]),la=ee(null),ka=Object(r.a)(la,2),Ia=ka[0],Ka=ka[1];function ua(ht,vt){if(!vt)return;typeof vt=="function"?vt(ht):vt.scrollLeft!==ht&&(vt.scrollLeft=ht)}var Gn=function(vt){var Xt=vt.currentTarget,pn=vt.scrollLeft,aa=typeof pn=="number"?pn:Xt.scrollLeft,Ba=Xt||Nt;if(!Ka()||Ka()===Ba){var xa;Ia(Ba),ua(aa,jn.current),ua(aa,Bt.current),ua(aa,(xa=ha.current)===null||xa===void 0?void 0:xa.setScrollLeft)}if(Xt){var Ha=Xt.scrollWidth,Va=Xt.clientWidth;qn(aa>0),$a(aa0?[].concat(Object(M.a)(j),Object(M.a)(X(ue).map(function(Y){return Object(Se.a)({fixed:le},Y)}))):[].concat(Object(M.a)(j),[Object(Se.a)(Object(Se.a)({},ie),{},{fixed:le})])},[])}function re(R){for(var j=!0,ie=0;ie=0;ue-=1){var Y=R[ue];if(le&&Y.fixed!=="right")le=!1;else if(!le&&Y.fixed==="right"){Object(ce.a)(!1,"Index ".concat(ue+1," of `columns` missing `fixed='right'` prop."));break}}}function me(R){return R.map(function(j){var ie=j.fixed,G=Object(U.a)(j,["fixed"]),le=ie;return ie==="left"?le="right":ie==="right"&&(le="left"),Object(Se.a)({fixed:le},G)})}function J(R,j){var ie=R.prefixCls,G=R.columns,le=R.children,ue=R.expandable,Y=R.expandedKeys,be=R.getRowKey,I=R.onTriggerExpand,H=R.expandIcon,z=R.rowExpandable,C=R.expandIconColumnIndex,g=R.direction,l=R.expandRowByClick,v=r.useMemo(function(){return G||k(le)},[G,le]),B=r.useMemo(function(){if(ue){var te,T=C||0,w=v[T],x=(te={},Object(L.a)(te,F.a,{className:"".concat(ie,"-expand-icon-col")}),Object(L.a)(te,"title",""),Object(L.a)(te,"fixed",w?w.fixed:null),Object(L.a)(te,"className","".concat(ie,"-row-expand-icon-cell")),Object(L.a)(te,"render",function(E,S,$){var ae=be(S,$),he=Y.has(ae),Q=z?z(S):!0,ne=H({prefixCls:ie,expanded:he,expandable:Q,record:S,onExpand:I});return l?r.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},ne):ne}),te),h=v.slice();return T>=0&&h.splice(T,0,x),h}return v},[ue,v,be,Y,H,g]),V=r.useMemo(function(){var te=B;return j&&(te=j(te)),te.length||(te=[{render:function(){return null}}]),te},[j,B,g]),_e=r.useMemo(function(){return g==="rtl"?me(X(V)):X(V)},[V,g]);return[V,_e]}pe.b=J},"y0+3":function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return X}),a.d(pe,"b",function(){return me});var L=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},Se={cssFloat:1,styleFloat:1,float:1};function U(J){return J.nodeType===1?J.ownerDocument.defaultView.getComputedStyle(J,null):{}}function r(J,R,j){if(R=R.toLowerCase(),j==="auto"){if(R==="height")return J.offsetHeight;if(R==="width")return J.offsetWidth}return R in M||(M[R]=L.test(R)),M[R]?parseFloat(j)||0:j}function p(J,R){var j=arguments.length,ie=U(J);return R=Se[R]?"cssFloat"in J.style?"cssFloat":"styleFloat":R,j===1?ie:r(J,R,ie[R]||J.style[R])}function ce(J,R,j){var ie=arguments.length;if(R=Se[R]?"cssFloat"in J.style?"cssFloat":"styleFloat":R,ie===3)return typeof j=="number"&&L.test(R)&&(j="".concat(j,"px")),J.style[R]=j,j;for(var G in R)R.hasOwnProperty(G)&&ce(J,G,R[G]);return U(J)}function se(J){return J===document.body?document.documentElement.clientWidth:J.offsetWidth}function F(J){return J===document.body?window.innerHeight||document.documentElement.clientHeight:J.offsetHeight}function k(){var J=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:J,height:R}}function X(){var J=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:J,height:R}}function re(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function me(J){var R=J.getBoundingClientRect(),j=document.documentElement;return{left:R.left+(window.pageXOffset||j.scrollLeft)-(j.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||j.scrollTop)-(j.clientTop||document.body.clientTop||0)}}}}]); +`,_e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],te={},S;function w(Q){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=Q.getAttribute("id")||Q.getAttribute("data-reactid")||Q.getAttribute("name");if(ne&&te[oe])return te[oe];var Z=window.getComputedStyle(Q),K=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),n=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),m=_e.map(function(A){return"".concat(A,":").concat(Z.getPropertyValue(A))}).join(";"),s={sizingStyle:m,paddingSize:ee,borderSize:n,boxSizing:K};return ne&&oe&&(te[oe]=s),s}function x(Q){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;S||(S=document.createElement("textarea"),S.setAttribute("tab-index","-1"),S.setAttribute("aria-hidden","true"),document.body.appendChild(S)),Q.getAttribute("wrap")?S.setAttribute("wrap",Q.getAttribute("wrap")):S.removeAttribute("wrap");var K=w(Q,ne),ee=K.paddingSize,n=K.borderSize,m=K.boxSizing,s=K.sizingStyle;S.setAttribute("style","".concat(s,";").concat(V)),S.value=Q.value||Q.placeholder||"";var A=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,q=S.scrollHeight,ye;if(m==="border-box"?q+=n:m==="content-box"&&(q-=ee),oe!==null||Z!==null){S.value=" ";var Ce=S.scrollHeight-ee;oe!==null&&(A=Ce*oe,m==="border-box"&&(A=A+ee+n),q=Math.max(A,q)),Z!==null&&(d=Ce*Z,m==="border-box"&&(d=d+ee+n),ye=q>d?"":"hidden",q=Math.min(d,q))}return{height:q,minHeight:A,maxHeight:d,overflowY:ye,resize:"none"}}var h=a("Gytx"),N=a.n(h),E;(function(Q){Q[Q.NONE=0]="NONE",Q[Q.RESIZING=1]="RESIZING",Q[Q.RESIZED=2]="RESIZED"})(E||(E={}));var T=function(Q){Object(U.a)(oe,Q);var ne=Object(r.a)(oe);function oe(Z){var K;return Object(M.a)(this,oe),K=ne.call(this,Z),K.nextFrameActionId=void 0,K.resizeFrameId=void 0,K.textArea=void 0,K.saveTextArea=function(ee){K.textArea=ee},K.handleResize=function(ee){var n=K.state.resizeStatus,m=K.props,s=m.autoSize,A=m.onResize;if(n!==E.NONE)return;typeof A=="function"&&A(ee),s&&K.resizeOnNextFrame()},K.resizeOnNextFrame=function(){cancelAnimationFrame(K.nextFrameActionId),K.nextFrameActionId=requestAnimationFrame(K.resizeTextarea)},K.resizeTextarea=function(){var ee=K.props.autoSize;if(!ee||!K.textArea)return;var n=ee.minRows,m=ee.maxRows,s=x(K.textArea,!1,n,m);K.setState({textareaStyles:s,resizeStatus:E.RESIZING},function(){cancelAnimationFrame(K.resizeFrameId),K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:E.RESIZED},function(){K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:E.NONE}),K.fixFirefoxAutoScroll()})})})})},K.renderTextArea=function(){var ee=K.props,n=ee.prefixCls,m=n===void 0?"rc-textarea":n,s=ee.autoSize,A=ee.onResize,d=ee.className,q=ee.disabled,ye=K.state,Ce=ye.textareaStyles,Fe=ye.resizeStatus,Be=Object(l.a)(K.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ue=B()(m,d,Object(se.a)({},"".concat(m,"-disabled"),q));"value"in Be&&(Be.value=Be.value||"");var We=Object(ce.a)(Object(ce.a)(Object(ce.a)({},K.props.style),Ce),Fe===E.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(g,{onResize:K.handleResize,disabled:!(s||A)},p.createElement("textarea",Object(L.a)({},Be,{className:Ue,style:We,ref:K.saveTextArea})))},K.state={textareaStyles:{},resizeStatus:E.NONE},K}return Object(Te.a)(oe,[{key:"componentDidUpdate",value:function(K){(K.value!==this.props.value||!N()(K.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var K=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(K,ee)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),oe}(p.Component),$=T,ae=function(Q){Object(U.a)(oe,Q);var ne=Object(r.a)(oe);function oe(Z){var K;Object(M.a)(this,oe),K=ne.call(this,Z),K.resizableTextArea=void 0,K.focus=function(){K.resizableTextArea.textArea.focus()},K.saveTextArea=function(n){K.resizableTextArea=n},K.handleChange=function(n){var m=K.props.onChange;K.setValue(n.target.value,function(){K.resizableTextArea.resizeTextarea()}),m&&m(n)},K.handleKeyDown=function(n){var m=K.props,s=m.onPressEnter,A=m.onKeyDown;n.keyCode===13&&s&&s(n),A&&A(n)};var ee=typeof Z.value=="undefined"||Z.value===null?Z.defaultValue:Z.value;return K.state={value:ee},K}return Object(Te.a)(oe,[{key:"setValue",value:function(K,ee){"value"in this.props||this.setState({value:K},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement($,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(K){return"value"in K?{value:K.value}:null}}]),oe}(p.Component),he=pe.default=ae},ZW5e:function(Ye,pe,a){Ye.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Ye,pe,a){"use strict";function L(X){return typeof X=="object"&&X!=null&&X.nodeType===1}function M(X,re){return(!re||X!=="hidden")&&X!=="visible"&&X!=="clip"}function Te(X,re){if(X.clientHeightre||j>X&&ie=re&&G>=me?j-X-J:ie>re&&Gme?ie-re+R:0}var r=function(X,re){var me=window,J=re.scrollMode,R=re.block,j=re.inline,ie=re.boundary,G=re.skipOverflowHiddenElements,le=typeof ie=="function"?ie:function(Ce){return Ce!==ie};if(!L(X))throw new TypeError("Invalid target");for(var ue=document.scrollingElement||document.documentElement,Y=[],be=X;L(be)&&le(be);){if((be=be.parentElement)===ue){Y.push(be);break}be!=null&&be===document.body&&Te(be)&&!Te(document.documentElement)||be!=null&&Te(be,G)&&Y.push(be)}for(var I=me.visualViewport?me.visualViewport.width:innerWidth,H=me.visualViewport?me.visualViewport.height:innerHeight,z=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,g=X.getBoundingClientRect(),l=g.height,v=g.width,B=g.top,V=g.right,_e=g.bottom,te=g.left,S=R==="start"||R==="nearest"?B:R==="end"?_e:B+l/2,w=j==="center"?te+v/2:j==="end"?V:te,x=[],h=0;h=0&&te>=0&&_e<=H&&V<=I&&B>=ae&&_e<=Q&&te>=ne&&V<=he)return x;var oe=getComputedStyle(N),Z=parseInt(oe.borderLeftWidth,10),K=parseInt(oe.borderTopWidth,10),ee=parseInt(oe.borderRightWidth,10),n=parseInt(oe.borderBottomWidth,10),m=0,s=0,A="offsetWidth"in N?N.offsetWidth-N.clientWidth-Z-ee:0,d="offsetHeight"in N?N.offsetHeight-N.clientHeight-K-n:0;if(ue===N)m=R==="start"?S:R==="end"?S-H:R==="nearest"?U(C,C+H,H,K,n,C+S,C+S+l,l):S-H/2,s=j==="start"?w:j==="center"?w-I/2:j==="end"?w-I:U(z,z+I,I,Z,ee,z+w,z+w+v,v),m=Math.max(0,m+C),s=Math.max(0,s+z);else{m=R==="start"?S-ae-K:R==="end"?S-Q+n+d:R==="nearest"?U(ae,Q,T,K,n+d,S,S+l,l):S-(ae+T/2)+d/2,s=j==="start"?w-ne-Z:j==="center"?w-(ne+$/2)+A/2:j==="end"?w-he+ee+A:U(ne,he,$,Z,ee+A,w,w+v,v);var q=N.scrollLeft,ye=N.scrollTop;S+=ye-(m=Math.max(0,Math.min(ye+m,N.scrollHeight-T+d))),w+=q-(s=Math.max(0,Math.min(q+s,N.scrollWidth-$+A)))}x.push({el:N,top:m,left:s})}return x};function p(X){return X===Object(X)&&Object.keys(X).length!==0}function ce(X,re){re===void 0&&(re="auto");var me="scrollBehavior"in document.body.style;X.forEach(function(J){var R=J.el,j=J.top,ie=J.left;R.scroll&&me?R.scroll({top:j,left:ie,behavior:re}):(R.scrollTop=j,R.scrollLeft=ie)})}function se(X){return X===!1?{block:"end",inline:"nearest"}:p(X)?X:{block:"start",inline:"nearest"}}function F(X,re){var me=!X.ownerDocument.documentElement.contains(X);if(p(re)&&typeof re.behavior=="function")return re.behavior(me?[]:r(X,re));if(me)return;var J=se(re);return ce(r(X,J),J.behavior)}var k=pe.a=F},Zss7:function(Ye,pe,a){var L;(function(M){var Te=/^\s+/,U=/\s+$/,r=0,p=M.round,ce=M.min,se=M.max,F=M.random;function k(n,m){if(n=n||"",m=m||{},n instanceof k)return n;if(!(this instanceof k))return new k(n,m);var s=X(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=p(100*this._a)/100,this._format=m.format||s.format,this._gradientType=m.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=s.ok,this._tc_id=r++}k.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),m,s,A,d,q,ye;return m=n.r/255,s=n.g/255,A=n.b/255,m<=.03928?d=m/12.92:d=M.pow((m+.055)/1.055,2.4),s<=.03928?q=s/12.92:q=M.pow((s+.055)/1.055,2.4),A<=.03928?ye=A/12.92:ye=M.pow((A+.055)/1.055,2.4),.2126*d+.7152*q+.0722*ye},setAlpha:function(n){return this._a=x(n),this._roundA=p(100*this._a)/100,this},toHsv:function(){var n=R(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=R(this._r,this._g,this._b),m=p(n.h*360),s=p(n.s*100),A=p(n.v*100);return this._a==1?"hsv("+m+", "+s+"%, "+A+"%)":"hsva("+m+", "+s+"%, "+A+"%, "+this._roundA+")"},toHsl:function(){var n=me(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=me(this._r,this._g,this._b),m=p(n.h*360),s=p(n.s*100),A=p(n.l*100);return this._a==1?"hsl("+m+", "+s+"%, "+A+"%)":"hsla("+m+", "+s+"%, "+A+"%, "+this._roundA+")"},toHex:function(n){return ie(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return G(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(h(this._r,255)*100)+"%",g:p(h(this._g,255)*100)+"%",b:p(h(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(h(this._r,255)*100)+"%, "+p(h(this._g,255)*100)+"%, "+p(h(this._b,255)*100)+"%)":"rgba("+p(h(this._r,255)*100)+"%, "+p(h(this._g,255)*100)+"%, "+p(h(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:S[ie(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var m="#"+le(this._r,this._g,this._b,this._a),s=m,A=this._gradientType?"GradientType = 1, ":"";if(n){var d=k(n);s="#"+le(d._r,d._g,d._b,d._a)}return"progid:DXImageTransform.Microsoft.gradient("+A+"startColorstr="+m+",endColorstr="+s+")"},toString:function(n){var m=!!n;n=n||this._format;var s=!1,A=this._a<1&&this._a>=0,d=!m&&A&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return d?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(n,m){var s=n.apply(null,[this].concat([].slice.call(m)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(I,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(ue,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(be,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(n,m){return n.apply(null,[this].concat([].slice.call(m)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(_e,arguments)},splitcomplement:function(){return this._applyCombination(B,arguments)},triad:function(){return this._applyCombination(l,arguments)},tetrad:function(){return this._applyCombination(v,arguments)}},k.fromRatio=function(n,m){if(typeof n=="object"){var s={};for(var A in n)n.hasOwnProperty(A)&&(A==="a"?s[A]=n[A]:s[A]=he(n[A]));n=s}return k(n,m)};function X(n){var m={r:0,g:0,b:0},s=1,A=null,d=null,q=null,ye=!1,Ce=!1;return typeof n=="string"&&(n=K(n)),typeof n=="object"&&(Z(n.r)&&Z(n.g)&&Z(n.b)?(m=re(n.r,n.g,n.b),ye=!0,Ce=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Z(n.h)&&Z(n.s)&&Z(n.v)?(A=he(n.s),d=he(n.v),m=j(n.h,A,d),ye=!0,Ce="hsv"):Z(n.h)&&Z(n.s)&&Z(n.l)&&(A=he(n.s),q=he(n.l),m=J(n.h,A,q),ye=!0,Ce="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=x(s),{ok:ye,format:n.format||Ce,r:ce(255,se(m.r,0)),g:ce(255,se(m.g,0)),b:ce(255,se(m.b,0)),a:s}}function re(n,m,s){return{r:h(n,255)*255,g:h(m,255)*255,b:h(s,255)*255}}function me(n,m,s){n=h(n,255),m=h(m,255),s=h(s,255);var A=se(n,m,s),d=ce(n,m,s),q,ye,Ce=(A+d)/2;if(A==d)q=ye=0;else{var Fe=A-d;ye=Ce>.5?Fe/(2-A-d):Fe/(A+d);switch(A){case n:q=(m-s)/Fe+(m1&&(We-=1),We<1/6?Be+(Ue-Be)*6*We:We<1/2?Ue:We<2/3?Be+(Ue-Be)*(2/3-We)*6:Be}if(m===0)A=d=q=s;else{var Ce=s<.5?s*(1+m):s+m-s*m,Fe=2*s-Ce;A=ye(Fe,Ce,n+1/3),d=ye(Fe,Ce,n),q=ye(Fe,Ce,n-1/3)}return{r:A*255,g:d*255,b:q*255}}function R(n,m,s){n=h(n,255),m=h(m,255),s=h(s,255);var A=se(n,m,s),d=ce(n,m,s),q,ye,Ce=A,Fe=A-d;if(ye=A===0?0:Fe/A,A==d)q=0;else{switch(A){case n:q=(m-s)/Fe+(m>1)+720)%360;--m;)A.h=(A.h+d)%360,q.push(k(A));return q}function _e(n,m){m=m||6;for(var s=k(n).toHsv(),A=s.h,d=s.s,q=s.v,ye=[],Ce=1/m;m--;)ye.push(k({h:A,s:d,v:q})),q=(q+Ce)%1;return ye}k.mix=function(n,m,s){s=s===0?0:s||50;var A=k(n).toRgb(),d=k(m).toRgb(),q=s/100,ye={r:(d.r-A.r)*q+A.r,g:(d.g-A.g)*q+A.g,b:(d.b-A.b)*q+A.b,a:(d.a-A.a)*q+A.a};return k(ye)},k.readability=function(n,m){var s=k(n),A=k(m);return(M.max(s.getLuminance(),A.getLuminance())+.05)/(M.min(s.getLuminance(),A.getLuminance())+.05)},k.isReadable=function(n,m,s){var A=k.readability(n,m),d,q;q=!1,d=ee(s);switch(d.level+d.size){case"AAsmall":case"AAAlarge":q=A>=4.5;break;case"AAlarge":q=A>=3;break;case"AAAsmall":q=A>=7;break}return q},k.mostReadable=function(n,m,s){var A=null,d=0,q,ye,Ce,Fe;s=s||{},ye=s.includeFallbackColors,Ce=s.level,Fe=s.size;for(var Be=0;Bed&&(d=q,A=k(m[Be]));return k.isReadable(n,A,{level:Ce,size:Fe})||!ye?A:(s.includeFallbackColors=!1,k.mostReadable(n,["#fff","#000"],s))};var te=k.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"},S=k.hexNames=w(te);function w(n){var m={};for(var s in n)n.hasOwnProperty(s)&&(m[n[s]]=s);return m}function x(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function h(n,m){T(n)&&(n="100%");var s=$(n);return n=ce(m,se(0,parseFloat(n))),s&&(n=parseInt(n*m,10)/100),M.abs(n-m)<1e-6?1:n%m/parseFloat(m)}function N(n){return ce(1,se(0,n))}function E(n){return parseInt(n,16)}function T(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function $(n){return typeof n=="string"&&n.indexOf("%")!=-1}function ae(n){return n.length==1?"0"+n:""+n}function he(n){return n<=1&&(n=n*100+"%"),n}function Q(n){return M.round(parseFloat(n)*255).toString(16)}function ne(n){return E(n)/255}var oe=function(){var n="[-\\+]?\\d+%?",m="[-\\+]?\\d*\\.\\d+%?",s="(?:"+m+")|(?:"+n+")",A="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",d="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+d),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 Z(n){return!!oe.CSS_UNIT.exec(n)}function K(n){n=n.replace(Te,"").replace(U,"").toLowerCase();var m=!1;if(te[n])n=te[n],m=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=oe.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=oe.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=oe.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=oe.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=oe.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=oe.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=oe.hex8.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),a:ne(s[4]),format:m?"name":"hex8"}:(s=oe.hex6.exec(n))?{r:E(s[1]),g:E(s[2]),b:E(s[3]),format:m?"name":"hex"}:(s=oe.hex4.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),a:ne(s[4]+""+s[4]),format:m?"name":"hex8"}:(s=oe.hex3.exec(n))?{r:E(s[1]+""+s[1]),g:E(s[2]+""+s[2]),b:E(s[3]+""+s[3]),format:m?"name":"hex"}:!1}function ee(n){var m,s;return n=n||{level:"AA",size:"small"},m=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),m!=="AA"&&m!=="AAA"&&(m="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:m,size:s}}Ye.exports?Ye.exports=k:!(L=function(){return k}.call(pe,a,pe,Ye),L!==void 0&&(Ye.exports=L))})(Math)},b81D:function(Ye,pe,a){Ye.exports={flex_box_center:"flex_box_center___2-oMM",flex_space_between:"flex_space_between___3P-GS",flex_box_vertical_center:"flex_box_vertical_center___mzFTH",flex_box_center_end:"flex_box_center_end___1tMDC",flex_box_column:"flex_box_column___6_XPH",customModal:"customModal___1vshf",customTable:"customTable___30Yvg"}},bT9E:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return M});var L=a("VTBJ");function M(Te,U){var r=Object(L.a)({},Te);return Array.isArray(U)&&U.forEach(function(p){delete r[p]}),r}},biw7:function(Ye,pe,a){"use strict";var L=a("q1tI"),M=a.n(L),Te=L.createContext(null);pe.a=Te},dRIv:function(Ye,pe,a){"use strict";a.r(pe);var L=a("g9YV"),M=a("wCAj"),Te=a("OaEy"),U=a("2fM7"),r=a("Znn+"),p=a("ZTPi"),ce=a("DYRE"),se=a("zeV3"),F=a("+L6B"),k=a("2/Rp"),X=a("7Kak"),re=a("9yH6"),me=a("5NDa"),J=a("5rEg"),R=a("5Dmo"),j=a("3S7+"),ie=a("2qtc"),G=a("kLXV"),le=a("miYZ"),ue=a("tsqr"),Y=a("k1fw"),be=a("9og8"),I=a("y8nQ"),H=a("Vl3Y"),z=a("tJVT"),C=a("WmNS"),g=a.n(C),l=a("q1tI"),v=a.n(l),B=a("LTI6"),V=a.n(B),_e=a("9kvl"),te=a("9ZfG"),S=a("ErOA"),w=a("LvDl"),x=a("b81D"),h=a.n(x),N=function(Z){var K=Z.visible,ee=Z.onOk,n=Z.onCancel,m=Z.title,s=m===void 0?"\u9009\u62E9\u8BA4\u8BC1\u56E2\u961F\u6559\u5E08":m,A=Z.schoolId,d={page:1,per_page:20,total:0,name:"",save_name:"",tel:"",save_tel:""},q=Object(l.useState)(Object(Y.a)({},d)),ye=Object(z.a)(q,2),Ce=ye[0],Fe=ye[1],Be=Object(l.useState)([]),Ue=Object(z.a)(Be,2),We=Ue[0],Pt=Ue[1],Nt=Object(l.useState)([]),Lt=Object(z.a)(Nt,2),Ct=Lt[0],Ut=Lt[1],ln=Object(l.useState)(!1),D=Object(z.a)(ln,2),ve=D[0],ge=D[1],Se=Object(l.useState)(!1),we=Object(z.a)(Se,2),Re=we[0],xe=we[1];Object(l.useEffect)(function(){K?Ee(d):(Pt([]),ge(!1),Fe(d))},[K]);var Ee=function(){var Le=Object(be.a)(g.a.mark(function Ie(st){var tt,Ze;return g.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return tt=Object(w.cloneDeep)(st),tt.school_id=A,xe(!0),kt.next=5,Object(S.a)("/api/ec_years/1/ec_teachers/search_users.json",{method:"get",params:tt});case 5:Ze=kt.sent,Ze!=null&&Ze.data&&(Ce.total=Ze==null?void 0:Ze.count,Ce.save_name=Ce.save_name,Ce.save_tel=Ce.tel,Fe(Object(Y.a)({},Ce)),Ut((Ze==null?void 0:Ze.data)||[])),xe(!1);case 8:case"end":return kt.stop()}},Ie)}));return function(st){return Le.apply(this,arguments)}}(),je=function(){ge(!0),ee(We,function(){ge(!1)})},ze=function(){n()},Pe={selectedRowKeys:We,columnWidth:40,onChange:function(Ie){return Pt(Ie)}},ke=function(Ie,st,tt){Ce.page=Ie==null?void 0:Ie.current,Ce.per_page=Ie==null?void 0:Ie.pageSize,Fe(Object(Y.a)({},Ce)),Ee(Ce)},Je=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u624B\u673A\u53F7\u7801",dataIndex:"phone",render:function(Ie){if(!Ie)return"";var st=/^(\d{3})\d{4}(\d{4})$/,tt=Ie==null?void 0:Ie.replace(st,"$1****$2");return v.a.createElement("span",null,tt)}},{title:"\u804C\u79F0",dataIndex:"pro"},{title:"\u804C\u52A1",dataIndex:"identity"},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department"}];return v.a.createElement(G.a,{title:s,visible:K,onOk:je,centered:!0,wrapClassName:h.a.customModal,onCancel:ze,confirmLoading:ve,width:"800px",okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88"},v.a.createElement(se.a,{size:20,className:"ml40"},v.a.createElement(J.a.Search,{style:{width:343,height:38},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",value:Ce==null?void 0:Ce.save_name,onChange:function(Ie){Ce.save_name=Ie.target.value,Fe(Object(Y.a)({},Ce))},onSearch:function(){Ce.page=1,Ce.name=Ce.save_name,Fe(Object(Y.a)({},Ce)),Ee(Ce)}})),v.a.createElement("div",{style:{color:"#FA6400"},className:"mt10 mb10 ml40 pr20"},"!\u9700\u4ECE\u5E73\u53F0\u9009\u62E9\u5DF2\u6CE8\u518C\u7684\u672C\u5B66\u6821\u6559\u5E08\u3002\u672A\u51FA\u73B0\u5728\u5217\u8868\u7684\u6559\u5E08\u8BF7\u5148\u5728\u5E73\u53F0\u6CE8\u518C\u8D26\u53F7\uFF0C\u7136\u540E\u5728\u8D26\u53F7\u7BA1\u7406-\u57FA\u672C\u4FE1\u606F\u9875\u9762\uFF0C\u6B63\u786E\u586B\u5199\u5B66\u6821/\u5355\u4F4D\u4FE1\u606F\u3002"),v.a.createElement(M.a,{rowSelection:Pe,dataSource:Ct,bordered:!1,rowKey:"id",scroll:{y:400},columns:Je,loading:Re,className:h.a.customTable,onChange:ke,pagination:{pageSize:Ce.per_page,total:Ce.total,current:Ce.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"],showTotal:function(Ie){return v.a.createElement("span",{className:"mr10"},"\u5171",v.a.createElement("span",{className:"c-orange"},Ie),"\u6761\u6570\u636E")}}}))},E=N,T=a("g+eg"),$=a("1vsH"),ae=a("m3rI"),he=a("fj85"),Q=function(Z){var K,ee,n=Z.user,m={page:1,per_page:20,total:0,search:"",tab:"1",save_search:"",ec_major_school_id:null,ec_year_id:null,category:"name",sort_by:null,direction:null},s=Object(l.useState)(m),A=Object(z.a)(s,2),d=A[0],q=A[1],ye=Object(l.useState)(!0),Ce=Object(z.a)(ye,2),Fe=Ce[0],Be=Ce[1],Ue=Object(l.useState)(!1),We=Object(z.a)(Ue,2),Pt=We[0],Nt=We[1],Lt=Object(l.useState)(!1),Ct=Object(z.a)(Lt,2),Ut=Ct[0],ln=Ct[1],D=Object(l.useState)(!1),ve=Object(z.a)(D,2),ge=ve[0],Se=ve[1],we=Object(l.useState)(!1),Re=Object(z.a)(we,2),xe=Re[0],Ee=Re[1],je=Object(l.useState)(!1),ze=Object(z.a)(je,2),Pe=ze[0],ke=ze[1],Je=Object(l.useState)(!1),Le=Object(z.a)(Je,2),Ie=Le[0],st=Le[1],tt=Object(l.useState)([]),Ze=Object(z.a)(tt,2),Qe=Ze[0],kt=Ze[1],It=Object(l.useState)([]),Ot=Object(z.a)(It,2),Kt=Ot[0],Qt=Ot[1],mt=Object(l.useState)([]),Zt=Object(z.a)(mt,2),_t=Zt[0],xt=Zt[1],bt=Object(l.useState)([]),et=Object(z.a)(bt,2),Dt=et[0],en=et[1],tn=H.a.useForm(),wt=Object(z.a)(tn,1),un=wt[0],Cn=Object(l.useRef)(null);Object(l.useEffect)(function(){var Ne;n!=null&&(Ne=n.userInfo)!==null&&Ne!==void 0&&Ne.school_id&&On()},[n==null||((K=n.userInfo)===null||K===void 0)?void 0:K.school_id]);var an=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De,nt,Ge;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return De=Object(w.cloneDeep)(Ae),T.a.setItem(n==null||((He=n.userInfo)===null||He===void 0)?void 0:He.login,[De==null?void 0:De.ec_major_school_id,De==null?void 0:De.ec_year_id]),De[Ae==null?void 0:Ae.category]=Ae==null?void 0:Ae.search,(Ae==null?void 0:Ae.tab)==="2"&&(De.school_id=n==null||((nt=n.userInfo)===null||nt===void 0)?void 0:nt.school_id),Be(!0),pt.next=7,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/").concat((Ae==null?void 0:Ae.tab)==="1"?"ec_course_teachers":"ec_teachers",".json"),{method:"get",params:De});case 7:Ge=pt.sent,Ge!=null&&Ge.data&&(en((Ge==null?void 0:Ge.data)||[]),d.total=Ge==null?void 0:Ge.count,d.save_search=d.search,q(Object(Y.a)({},d))),Be(!1);case 10:case"end":return pt.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),hn=function(){var Oe=Object(w.cloneDeep)(d);if(Oe[d==null?void 0:d.category]=d==null?void 0:d.search,(d==null?void 0:d.tab)==="2"){var Ae;Oe.school_id=n==null||((Ae=n.userInfo)===null||Ae===void 0)?void 0:Ae.school_id}Object($.t)("",Object($.U)({url:ae.a.API_SERVER+"/api/ec_years/".concat(d.ec_year_id,"/").concat((d==null?void 0:d.tab)==="1"?"ec_course_teachers":"ec_teachers",".xlsx"),query:Oe}))},On=function(){var Ne=Object(be.a)(g.a.mark(function Oe(){var Ae,He,De,nt,Ge,Rt,pt,jt,Gt,vn,jn,Bt;return g.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(S.a)("/api/schools/".concat(n==null||((Ae=n.userInfo)===null||Ae===void 0)?void 0:Ae.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Gt=nn.sent,Gt!=null&&(He=Gt.data)!==null&&He!==void 0&&(De=He[0])!==null&&De!==void 0&&De.ec_major_school_id){nn.next=7;break}return Be(!1),Nt(!0),nn.abrupt("return");case 7:return vn=T.a.getItem(n==null||((nt=n.userInfo)===null||nt===void 0)?void 0:nt.login),jn=vn[0]||(Gt==null||((Ge=Gt.data)===null||Ge===void 0||((Rt=Ge[0])===null||Rt===void 0))?void 0:Rt.ec_major_school_id),nn.next=11,Object(S.a)("/api/ec_major_schools/".concat(jn,"/ec_years/get_year_list.json"),{method:"get"});case 11:Bt=nn.sent,d.ec_major_school_id=jn,d.ec_year_id=vn[1]||(Bt==null||((pt=Bt.data)===null||pt===void 0||((jt=pt[0])===null||jt===void 0))?void 0:jt.ec_year_id),Qt((Gt==null?void 0:Gt.data)||[]),xt((Bt==null?void 0:Bt.data)||[]),q(d),an(d);case 18:case"end":return nn.stop()}},Oe)}));return function(){return Ne.apply(this,arguments)}}(),Dn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De,nt;return g.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(S.a)("/api/ec_major_schools/".concat(Ae,"/ec_years/get_year_list.json"),{method:"get"});case 2:nt=Rt.sent,d.ec_major_school_id=Ae,d.ec_year_id=nt==null||((He=nt.data)===null||He===void 0||((De=He[0])===null||De===void 0))?void 0:De.ec_year_id,xt((nt==null?void 0:nt.data)||[]),q(d),an(d);case 8:case"end":return Rt.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),_n=function(Oe,Ae){if(d.page=1,d[Ae]=Oe,Ae==="category"){d.search="",d.save_search="",q(Object(Y.a)({},d));return}if(Ae==="ec_major_school_id"){Dn(Oe);return}Ae==="ec_year_id"&&(q(Object(Y.a)({},d)),an(d))},Hn=function(Oe){d.page=1,d.save_search=Oe,q(Object(Y.a)({},d))},cn=function(Oe){if(Oe.length===0){ue.b.warn("\u8BF7\u9009\u62E9\u8981\u79FB\u9664\u7684\u6559\u5E08");return}G.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Ae=Object(be.a)(g.a.mark(function De(){var nt,Ge;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/").concat((d==null?void 0:d.tab)==="1"?"ec_course_teachers":"ec_teachers",".json"),{method:"delete",body:{ids:Oe}});case 2:nt=pt.sent,(nt==null?void 0:nt.status)===0&&(Ge=Oe.length===Dt.length&&d.page>1?d.page-1:d.page,d.page=Ge,kt([]),q(Object(Y.a)({},d)),an(d));case 4:case"end":return pt.stop()}},De)}));function He(){return Ae.apply(this,arguments)}return He}()})},Kn=function(Oe,Ae,He){if(d.page=Oe==null?void 0:Oe.current,d.per_page=Oe==null?void 0:Oe.pageSize,He!=null&&He.order?(d.sort_by=He==null?void 0:He.field,d.direction=(He==null?void 0:He.order)==="ascend"?"asc":"desc"):(d.sort_by=null,d.direction=null),q(Object(Y.a)({},d)),Vt)return;an(d)},An={selectedRowKeys:Qe,columnWidth:54,onChange:function(Oe){return kt(Oe)},getCheckboxProps:function(Oe){return{disabled:Oe.is_manager}}},Fn=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Oe,Ae,He){return d.per_page*(d.page-1)+He+1}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0,sortOrder:d.sort_by==="name"?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe,Ae){return Oe?v.a.createElement("span",null,Ae.is_manager&&v.a.createElement(j.a,{title:"\u7CFB\u7EDF\u7BA1\u7406\u5458"},v.a.createElement("i",{className:"iconfont icon-ren mr5"})),Oe):"--"}},{title:"\u624B\u673A\u53F7\u7801",dataIndex:(d==null?void 0:d.tab)==="1"?"tel":"phone",ellipsis:!0,sorter:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"tel":"phone")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||"--"}},{title:"\u90AE\u7BB1",dataIndex:(d==null?void 0:d.tab)==="1"?"email":"mail",ellipsis:!0,sorter:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"email":"mail")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||"--"}},{title:"\u804C\u79F0",dataIndex:(d==null?void 0:d.tab)==="1"?"pro":"technical_title",ellipsis:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"pro":"technical_title")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||""}},{title:"\u804C\u52A1",dataIndex:(d==null?void 0:d.tab)==="1"?"job":"identity",ellipsis:!0,sortOrder:d.sort_by===((d==null?void 0:d.tab)==="1"?"job":"identity")?d.direction==="desc"?"descend":"ascend":!1,render:function(Oe){return Oe||""}},{title:"\u6240\u5C5E\u5B66\u9662/\u7CFB",ellipsis:!0,dataIndex:"department",render:function(Oe){return Oe||""}},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",width:90,render:function(Oe,Ae){return v.a.createElement("span",null,d.tab==="1"?v.a.createElement("i",{onClick:function(){return Un(Ae.id)},className:"iconfont icon-bianji7 c-gcrz-primary current"}):v.a.createElement("i",{onClick:function(){return Vn(Ae.id)},className:"iconfont icon-chakansvg c-gcrz-primary current"}),!Ae.is_manager&&v.a.createElement("i",{onClick:function(){return cn([Ae.id])},className:"iconfont icon-piliangshanchubeifen c-gcrz-primary current ml10"}))}}],wn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae,He){var De,nt;return g.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(!(Ae.length===0)){Rt.next=4;break}return ue.b.warn("\u8BF7\u9009\u62E9\u4E00\u6761\u6570\u636E"),He(),Rt.abrupt("return");case 4:return Rt.next=6,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_teachers.json"),{method:"post",body:{ids:Ae,school_id:n==null||((De=n.userInfo)===null||De===void 0)?void 0:De.school_id}});case 6:nt=Rt.sent,(nt==null?void 0:nt.status)===0&&(an(d),ke(!1)),He();case 9:case"end":return Rt.stop()}},Oe)}));return function(Ae,He){return Ne.apply(this,arguments)}}(),xn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae,He){var De,nt,Ge;return g.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(!(Ae.length===0)){pt.next=4;break}return ue.b.warn("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),He(),pt.abrupt("return");case 4:return nt=new FormData,nt.append("file",(De=Ae[0])===null||De===void 0?void 0:De.file),pt.next=8,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers/import_course_teachers.json"),{method:"post",body:nt},!0);case 8:Ge=pt.sent,(Ge==null?void 0:Ge.status)===0&&(an(d),Ee(!1)),He();case 11:case"end":return pt.stop()}},Oe)}));return function(Ae,He){return Ne.apply(this,arguments)}}(),Ln=function(Oe){if(d.page=1,d.tab=Oe,d.sort_by=null,d.direction=null,d.search="",d.save_search="",q(Object(Y.a)({},d)),Vt)return;an(d)},Vn=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De,nt,Ge,Rt,pt,jt,Gt,vn,jn,Bt,Xn,nn,Wn,qn,ea;return g.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_teachers.json"),{method:"get",params:{teacher_id:Ae,school_id:n==null||((He=n.userInfo)===null||He===void 0)?void 0:He.school_id}});case 2:De=Mn.sent,De!=null&&De.data&&G.a.info({title:"\u67E5\u770B\u8BA4\u8BC1\u56E2\u961F\u4EBA\u5458\u4FE1\u606F",className:"custom-modal-divider ",centered:!0,icon:null,content:v.a.createElement("div",{className:V.a.detail},v.a.createElement("p",null,v.a.createElement("span",null,"\u59D3\u540D"),v.a.createElement("span",null,(De==null||((nt=De.data)===null||nt===void 0||((Ge=nt[0])===null||Ge===void 0))?void 0:Ge.name)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u624B\u673A\u53F7\u7801"),v.a.createElement("span",null,(De==null||((Rt=De.data)===null||Rt===void 0||((pt=Rt[0])===null||pt===void 0))?void 0:pt.phone)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u90AE\u7BB1"),v.a.createElement("span",null,(De==null||((jt=De.data)===null||jt===void 0||((Gt=jt[0])===null||Gt===void 0))?void 0:Gt.mail)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u804C\u79F0"),v.a.createElement("span",null,(De==null||((vn=De.data)===null||vn===void 0||((jn=vn[0])===null||jn===void 0))?void 0:jn.technical_title)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u804C\u52A1"),v.a.createElement("span",null,(De==null||((Bt=De.data)===null||Bt===void 0||((Xn=Bt[0])===null||Xn===void 0))?void 0:Xn.identity)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u5355\u4F4D"),v.a.createElement("span",null,(De==null||((nn=De.data)===null||nn===void 0||((Wn=nn[0])===null||Wn===void 0))?void 0:Wn.school)||"-")),v.a.createElement("p",null,v.a.createElement("span",null,"\u5B66\u9662/\u7CFB"),v.a.createElement("span",null,(De==null||((qn=De.data)===null||qn===void 0||((ea=qn[0])===null||ea===void 0))?void 0:ea.department)||"-"))),okText:"\u5173\u95ED"});case 4:case"end":return Mn.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),Un=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De;return g.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return st(Ae),Ge.next=3,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers.json"),{method:"get",params:{teacher_id:Ae}});case 3:He=Ge.sent,He!=null&&He.data&&un.setFieldsValue((He==null||((De=He.data)===null||De===void 0)?void 0:De[0])||{});case 5:case"end":return Ge.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),qt=function(){var Ne=Object(be.a)(g.a.mark(function Oe(Ae){var He,De;return g.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(Cn.current?ln(!0):Se(!0),!Ie){Ge.next=7;break}return Ge.next=4,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers.json"),{method:"put",body:Object(Y.a)(Object(Y.a)({},Ae),{},{id:Ie})});case 4:De=Ge.sent,Ge.next=10;break;case 7:return Ge.next=9,Object(S.a)("/api/ec_years/".concat(d.ec_year_id,"/ec_course_teachers.json"),{method:"post",body:Ae});case 9:De=Ge.sent;case 10:((He=De)===null||He===void 0?void 0:He.status)===0&&(Cn.current&&(Ee(!1),st(!1)),un.resetFields(),ue.b.success("\u4FDD\u5B58\u6210\u529F"),an(d)),ln(!1),Se(!1);case 13:case"end":return Ge.stop()}},Oe)}));return function(Ae){return Ne.apply(this,arguments)}}(),on=function(Oe){return v.a.createElement("div",null,v.a.createElement(H.a,{form:un,colon:!1,onFinish:qt,labelCol:{span:4},wrapperCol:{span:18},className:V.a.form},v.a.createElement(H.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),v.a.createElement(H.a.Item,{label:"\u624B\u673A\u53F7\u7801",name:"tel",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},{pattern:/^1[3|4|5|7|8][0-9]\d{8}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"})),v.a.createElement(H.a.Item,{label:"\u90AE\u7BB1",name:"email",rules:[{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"})),v.a.createElement(H.a.Item,{label:"\u804C\u79F0",name:"pro",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u804C\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u804C\u79F0"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u804C\u79F0"})),v.a.createElement(H.a.Item,{label:"\u804C\u52A1",name:"job"},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u804C\u52A1"})),v.a.createElement(H.a.Item,{label:"\u5355\u4F4D",name:"school"},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D"})),v.a.createElement(H.a.Item,{style:{paddingBottom:0},label:"\u5B66\u9662/\u7CFB",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u9662/\u7CFB"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B66\u9662/\u7CFB"}]},v.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u9662/\u7CFB"})),v.a.createElement(H.a.Item,{label:"\u4E13\u517C\u804C\u60C5\u51B5",name:"is_part_time_job",initialValue:0},v.a.createElement(re.a.Group,null,v.a.createElement(re.a,{value:0},"\u5168\u804C"),v.a.createElement(re.a,{value:1},"\u517C\u804C")))),v.a.createElement(se.a,{className:V.a.button,size:10,style:{float:"right",marginRight:40,paddingBottom:10}},v.a.createElement(k.a,{onClick:function(){st(!1),Ee(!1)}},"\u53D6\u6D88"),v.a.createElement(k.a,{disabled:ge,type:Oe?"primary":"default",loading:Ut,onClick:function(){Cn.current=!0,un.submit()}},"\u4FDD\u5B58"),!Oe&&v.a.createElement(k.a,{disabled:Ut,loading:ge,type:"primary",onClick:function(){Cn.current=!1,un.submit()}},"\u7EE7\u7EED\u65B0\u589E")),v.a.createElement("div",{style:{clear:"both"}}))},Vt=Fe||Pt;return v.a.createElement("div",{className:V.a.wrap},v.a.createElement(he.a,{title:"\u6559\u5E08\u4FE1\u606F",style:{padding:"12px 0 10px 20px"}}),v.a.createElement(p.a,{className:V.a.tabWarp,activeKey:d==null?void 0:d.tab,onChange:Ln,tabBarExtraContent:v.a.createElement(se.a,{className:V.a.button,size:10},v.a.createElement(k.a,{disabled:Vt,onClick:function(){if(d.tab==="2"){ke(!0);return}un.resetFields(),Ee(!0)},type:"primary"},v.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u4EBA\u5458"),v.a.createElement(k.a,{disabled:Vt,onClick:function(){return cn(Qe)}},v.a.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u6279\u91CF\u5220\u9664"),v.a.createElement(k.a,{disabled:Vt,onClick:function(){return hn()}},v.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA"))},v.a.createElement(p.a.TabPane,{tab:"\u6388\u8BFE\u6559\u5E08\u56E2\u961F",key:"1"}),v.a.createElement(p.a.TabPane,{tab:"\u8BA4\u8BC1\u5DE5\u4F5C\u56E2\u961F",key:"2"})),v.a.createElement("div",{className:V.a.control},v.a.createElement("div",{className:V.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),v.a.createElement(U.a,{disabled:Vt,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:d==null?void 0:d.ec_major_school_id,onChange:function(Oe){return _n(Oe,"ec_major_school_id")}},Kt==null?void 0:Kt.map(function(Ne){return v.a.createElement(U.a.Option,{value:Ne.ec_major_school_id},Ne.name)})),v.a.createElement("div",{className:V.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),v.a.createElement(U.a,{disabled:Vt,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:d==null?void 0:d.ec_year_id,onChange:function(Oe){return _n(Oe,"ec_year_id")}},_t==null?void 0:_t.map(function(Ne){return v.a.createElement(U.a.Option,{value:Ne.ec_year_id},Ne.year)})),v.a.createElement("div",{className:V.a.label,style:{width:100,background:"#fff"}},v.a.createElement(U.a,{disabled:Vt,style:{width:100,transform:"translate(-1px, -1px)"},bordered:!1,value:d==null?void 0:d.category,onChange:function(Oe){return _n(Oe,"category")}},v.a.createElement(U.a.Option,{value:"name"},"\u59D3\u540D"),v.a.createElement(U.a.Option,{value:"tel"},"\u624B\u673A\u53F7\u7801"),v.a.createElement(U.a.Option,{value:"email"},"\u90AE\u7BB1"))),v.a.createElement(J.a.Search,{disabled:Vt,placeholder:"\u8BF7\u8F93\u5165".concat((d==null?void 0:d.category)==="name"?"\u59D3\u540D":(d==null?void 0:d.category)==="tel"?"\u624B\u673A\u53F7\u7801":"\u90AE\u7BB1"),value:d==null?void 0:d.save_search,onChange:function(Oe){return Hn(Oe.target.value)},onSearch:function(){d.page=1,d.search=d.save_search,q(Object(Y.a)({},d)),an(d)}})),v.a.createElement(M.a,{rowSelection:An,className:V.a.customTable,dataSource:Dt,bordered:!1,rowKey:"id",columns:Fn,rowClassName:V.a.row,loading:Fe,onChange:Kn,pagination:{pageSize:d.per_page,total:d.total,current:d.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Oe){return v.a.createElement("span",{className:"mr10"},"\u5171",v.a.createElement("span",{className:"c-orange"},Oe),"\u6761\u6570\u636E")}}}),v.a.createElement(te.a,{title:"\u65B0\u589E\u6388\u8BFE\u6559\u5E08",visible:xe,onCancel:function(){return Ee(!1)},onOk:xn,templateFileName:"\u6388\u8BFE\u56E2\u961F\u6559\u5E08\u5BFC\u5165\u6A21\u677F",templateFileUrl:ae.a.API_SERVER+"/api/ec_years/1/ec_course_teachers/down_template.xlsx",otherTemplateText:"\u6279\u91CF\u5BFC\u5165\u6388\u8BFE\u56E2\u961F\u6559\u5E08\u4FE1\u606F\u3002",formNode:on()}),v.a.createElement(E,{visible:Pe,onCancel:function(){return ke(!1)},onOk:wn,schoolId:n==null||((ee=n.userInfo)===null||ee===void 0)?void 0:ee.school_id}),v.a.createElement(G.a,{title:"\u4FEE\u6539\u6388\u8BFE\u6559\u5E08\u4FE1\u606F",className:V.a.customModal,visible:Ie,centered:!0,onCancel:function(){st(!1),un.resetFields()},width:"740px",footer:null},on(!0)))},ne=pe.default=Object(_e.a)(function(oe){var Z=oe.user;return{user:Z}})(Q)},fj85:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return p}),a.d(pe,"b",function(){return k});var L=a("q1tI"),M=a.n(L),Te=a("ZW5e"),U=a.n(Te),r=function(re){var me=re.title,J=re.style,R=J===void 0?{}:J;return M.a.createElement("div",{className:U.a.panelTitleContainer,style:R},M.a.createElement("div",null,me))},p=r,ce=a("PsNh"),se=a.n(ce),F=function(re){var me=re.title,J=re.children;return M.a.createElement("div",{className:se.a.selectWrapContainer},M.a.createElement("span",null,me),J)},k=F},fyJ8:function(Ye,pe,a){"use strict";var L=a("rePB"),M=a("VTBJ"),Te=a("Ff2n"),U=a("U8pU"),r=a("q1tI"),p=a.n(r),ce=a("TSYQ"),se=a.n(ce),F=a("c+Xe"),k=a("sR1s");function X(j){return j&&Object(U.a)(j)==="object"&&!Array.isArray(j)&&!r.isValidElement(j)}function re(j){return typeof j=="string"?!0:Object(F.c)(j)}function me(j,ie){var G,le=j.prefixCls,ue=j.className,Y=j.record,be=j.index,I=j.dataIndex,H=j.render,z=j.children,C=j.component,g=C===void 0?"td":C,l=j.colSpan,v=j.rowSpan,B=j.fixLeft,V=j.fixRight,_e=j.firstFixLeft,te=j.lastFixLeft,S=j.firstFixRight,w=j.lastFixRight,x=j.appendNode,h=j.additionalProps,N=h===void 0?{}:h,E=j.ellipsis,T=j.align,$=j.rowType,ae=j.isSticky,he="".concat(le,"-cell"),Q,ne;if(z)ne=z;else{var oe=Object(k.b)(Y,I);if(ne=oe,H){var Z=H(oe,Y,be);X(Z)?(ne=Z.children,Q=Z.props):ne=Z}}Object(U.a)(ne)==="object"&&!Array.isArray(ne)&&!r.isValidElement(ne)&&(ne=null),E&&(te||S)&&(ne=r.createElement("span",{className:"".concat(he,"-content")},ne));var K=Q||{},ee=K.colSpan,n=K.rowSpan,m=K.style,s=K.className,A=Object(Te.a)(K,["colSpan","rowSpan","style","className"]),d=ee!==void 0?ee:l,q=n!==void 0?n:v;if(d===0||q===0)return null;var ye={},Ce=typeof B=="number",Fe=typeof V=="number";Ce&&(ye.position="sticky",ye.left=B),Fe&&(ye.position="sticky",ye.right=V);var Be={};T&&(Be.textAlign=T);var Ue,We=E===!0?{showTitle:!0}:E;We&&(We.showTitle||$==="header")&&(typeof ne=="string"||typeof ne=="number"?Ue=ne.toString():r.isValidElement(ne)&&typeof ne.props.children=="string"&&(Ue=ne.props.children));var Pt=Object(M.a)(Object(M.a)(Object(M.a)({title:Ue},A),N),{},{colSpan:d&&d!==1?d:null,rowSpan:q&&q!==1?q:null,className:se()(he,ue,(G={},Object(L.a)(G,"".concat(he,"-fix-left"),Ce),Object(L.a)(G,"".concat(he,"-fix-left-first"),_e),Object(L.a)(G,"".concat(he,"-fix-left-last"),te),Object(L.a)(G,"".concat(he,"-fix-right"),Fe),Object(L.a)(G,"".concat(he,"-fix-right-first"),S),Object(L.a)(G,"".concat(he,"-fix-right-last"),w),Object(L.a)(G,"".concat(he,"-ellipsis"),E),Object(L.a)(G,"".concat(he,"-with-append"),x),Object(L.a)(G,"".concat(he,"-fix-sticky"),(Ce||Fe)&&ae),G),N.className,s),style:Object(M.a)(Object(M.a)(Object(M.a)(Object(M.a)({},N.style),Be),ye),m),ref:re(g)?ie:null});return r.createElement(g,Object.assign({},Pt),x,ne)}var J=r.forwardRef(me);J.displayName="Cell";var R=r.memo(J,function(j,ie){return ie.shouldCellUpdate?!ie.shouldCellUpdate(ie.record,j.record):!1});pe.a=R},h78n:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return _e});var L=a("q1tI"),M=a.n(L),Te=a("TSYQ"),U=a.n(Te),r={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},p=function(w){var x=w.map(function(){return Object(L.useRef)()}),h=Object(L.useRef)();return Object(L.useEffect)(function(){var N=Date.now(),E=!1;Object.keys(x).forEach(function(T){var $=x[T].current;if(!$)return;E=!0;var ae=$.style;ae.transitionDuration=".3s, .3s, .3s, .06s",h.current&&N-h.current<100&&(ae.transitionDuration="0s, 0s")}),E&&(h.current=Date.now())}),[x]};function ce(){return ce=Object.assign||function(S){for(var w=1;wS.length)&&(w=S.length);for(var x=0,h=new Array(w);x=0)continue;if(!Object.prototype.propertyIsEnumerable.call(S,h))continue;x[h]=S[h]}}return x}function R(S,w){if(S==null)return{};var x={},h=Object.keys(S),N,E;for(E=0;E=0)continue;x[N]=S[N]}return x}var j=function(w){var x=w.className,h=w.percent,N=w.prefixCls,E=w.strokeColor,T=w.strokeLinecap,$=w.strokeWidth,ae=w.style,he=w.trailColor,Q=w.trailWidth,ne=w.transition,oe=J(w,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete oe.gapPosition;var Z=Array.isArray(h)?h:[h],K=Array.isArray(E)?E:[E],ee=p(Z),n=se(ee,1),m=n[0],s=$/2,A=100-$/2,d="M ".concat(T==="round"?s:0,",").concat(s,` + L `).concat(T==="round"?A:100,",").concat(s),q="0 0 100 ".concat($),ye=0;return M.a.createElement("svg",ce({className:U()("".concat(N,"-line"),x),viewBox:q,preserveAspectRatio:"none",style:ae},oe),M.a.createElement("path",{className:"".concat(N,"-line-trail"),d,strokeLinecap:T,stroke:he,strokeWidth:Q||$,fillOpacity:"0"}),Z.map(function(Ce,Fe){var Be={strokeDasharray:"".concat(Ce,"px, 100px"),strokeDashoffset:"-".concat(ye,"px"),transition:ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=K[Fe]||K[K.length-1];return ye+=Ce,M.a.createElement("path",{key:Fe,className:"".concat(N,"-line-path"),d,strokeLinecap:T,stroke:Ue,strokeWidth:$,fillOpacity:"0",ref:m[Fe],style:Be})}))};j.defaultProps=r;var ie=j;function G(){return G=Object.assign||function(S){for(var w=1;wS.length)&&(w=S.length);for(var x=0,h=new Array(w);x=0)continue;if(!Object.prototype.propertyIsEnumerable.call(S,h))continue;x[h]=S[h]}}return x}function C(S,w){if(S==null)return{};var x={},h=Object.keys(S),N,E;for(E=0;E=0)continue;x[N]=S[N]}return x}var g=0;function l(S){return+S.replace("%","")}function v(S){return Array.isArray(S)?S:[S]}function B(S,w,x,h){var N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,E=arguments.length>5?arguments[5]:void 0,T=50-h/2,$=0,ae=-T,he=0,Q=-2*T;switch(E){case"left":$=-T,ae=0,he=2*T,Q=0;break;case"right":$=T,ae=0,he=-2*T,Q=0;break;case"bottom":ae=T,Q=2*T;break;default:}var ne="M 50,50 m ".concat($,",").concat(ae,` + a `).concat(T,",").concat(T," 0 1 1 ").concat(he,",").concat(-Q,` + a `).concat(T,",").concat(T," 0 1 1 ").concat(-he,",").concat(Q),oe=Math.PI*2*T,Z={stroke:x,strokeDasharray:"".concat(w/100*(oe-N),"px ").concat(oe,"px"),strokeDashoffset:"-".concat(N/2+S/100*(oe-N),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:Z}}var V=function(w){var x=w.prefixCls,h=w.strokeWidth,N=w.trailWidth,E=w.gapDegree,T=w.gapPosition,$=w.trailColor,ae=w.strokeLinecap,he=w.style,Q=w.className,ne=w.strokeColor,oe=w.percent,Z=z(w,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),K=Object(L.useMemo)(function(){return g+=1,g},[]),ee=B(0,100,$,h,E,T),n=ee.pathString,m=ee.pathStyle,s=v(oe),A=v(ne),d=A.find(function(Be){return Object.prototype.toString.call(Be)==="[object Object]"}),q=p(s),ye=le(q,1),Ce=ye[0],Fe=function(){var Ue=0;return s.map(function(We,Pt){var Nt=A[Pt]||A[A.length-1],Lt=Object.prototype.toString.call(Nt)==="[object Object]"?"url(#".concat(x,"-gradient-").concat(K,")"):"",Ct=B(Ue,We,Nt,h,E,T);return Ue+=We,M.a.createElement("path",{key:Pt,className:"".concat(x,"-circle-path"),d:Ct.pathString,stroke:Lt,strokeLinecap:ae,strokeWidth:h,opacity:We===0?0:1,fillOpacity:"0",style:Ct.pathStyle,ref:Ce[Pt]})})};return M.a.createElement("svg",G({className:U()("".concat(x,"-circle"),Q),viewBox:"0 0 100 100",style:he},Z),d&&M.a.createElement("defs",null,M.a.createElement("linearGradient",{id:"".concat(x,"-gradient-").concat(K),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(d).sort(function(Be,Ue){return l(Be)-l(Ue)}).map(function(Be,Ue){return M.a.createElement("stop",{key:Ue,offset:Be,stopColor:d[Be]})}))),M.a.createElement("path",{className:"".concat(x,"-circle-trail"),d:n,stroke:$,strokeLinecap:ae,strokeWidth:N||h,fillOpacity:"0",style:m}),Fe().reverse())};V.defaultProps=r;var _e=V,te={Line:ie,Circle:_e}},hW8S:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return U}),a.d(pe,"c",function(){return r}),a.d(pe,"b",function(){return p});var L=a("VTBJ"),M=a("Ff2n"),Te=a("Kwbf"),U="RC_TABLE_INTERNAL_COL_DEFINE";function r(ce){var se=ce.expandable,F=Object(M.a)(ce,["expandable"]);return"expandable"in ce?Object(L.a)(Object(L.a)({},F),se):F}function p(ce){return Object.keys(ce).reduce(function(se,F){return(F.substr(0,5)==="data-"||F.substr(0,5)==="aria-")&&(se[F]=ce[F]),se},{})}},k3GJ:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return po});var L=a("rePB"),M=a("ODXe"),Te=a("Ff2n"),U=a("VTBJ"),r=a("q1tI"),p=a("TSYQ"),ce=a.n(p),se=a("Zm9Q"),F=a("6cGi"),k=a("KQm4"),X=a("xEkU"),re=a.n(X),me=a("t23M");function J(i){var b=Object(r.useRef)(),O=Object(r.useRef)(!1);function c(){for(var e=arguments.length,o=new Array(e),t=0;tP&&(de=P-fe),Object(r.useMemo)(function(){if(!o.length)return[0,0];for(var Me=o.length,$e=Me,rt=0;rty+de){$e=rt-1;break}}for(var lt=0,it=Me-1;it>=0;it-=1){var at=i.get(o[it].key)||Y;if(at[_]1&&arguments[1]!==void 0?arguments[1]:!1,c=b&&typeof b.getBoundingClientRect=="function"&&b.getBoundingClientRect().width;if(c){if(O){var e=getComputedStyle(b),o=e.marginLeft,t=e.marginRight;c+=+o.replace("px","")+ +t.replace("px","")}c=+c.toFixed(6)}return c||0},Ue=function(b,O,c){b&&Object(S.a)(b.style)==="object"&&(b.style[O]=c)},We=function(){return s.any},Pt=a("bdgK"),Nt=a("i8i4"),Lt=a.n(Nt),Ct=a("wgJM"),Ut=a("l4aY"),ln=a("m+aA"),D=a("c+Xe"),ve=a("zT1h"),ge=a("QC+M");function Se(i,b,O){return O?i[0]===b[0]:i[0]===b[0]&&i[1]===b[1]}function we(i,b,O){var c=i[b]||{};return Object(U.a)(Object(U.a)({},c),O)}function Re(i,b,O,c){for(var e=O.points,o=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;b();var o=Object(Ct.a)(function(){e<=1?c({isCanceled:function(){return o!==i.current}}):O(c,e-1)});i.current=o}return r.useEffect(function(){return function(){b()}},[]),[O,b]},un=[_t,xt,bt,et],Cn=!1,an=!0;function hn(i){return i===bt||i===et}var On=function(i,b){var O=r.useState(Zt),c=Object(M.a)(O,2),e=c[0],o=c[1],t=wt(),u=Object(M.a)(t,2),f=u[0],_=u[1];function y(){o(_t)}return tn(function(){if(e!==Zt&&e!==et){var P=un.indexOf(e),W=un[P+1],fe=b(e);fe===Cn?o(W):f(function(de){function Me(){if(de.isCanceled())return;o(W)}fe===!0?Me():Promise.resolve(fe).then(Me)})}},[i,e]),r.useEffect(function(){return function(){_()}},[]),[y,e]},Dn=function(i){var b=Object(r.useRef)(),O=Object(r.useRef)(i);O.current=i;var c=r.useCallback(function(t){O.current(t)},[]);function e(t){t&&(t.removeEventListener(kt,c),t.removeEventListener(Qe,c))}function o(t){b.current&&b.current!==t&&e(b.current),t&&t!==b.current&&(t.addEventListener(kt,c),t.addEventListener(Qe,c),b.current=t)}return r.useEffect(function(){return function(){e(b.current)}},[]),[o,e]};function _n(i,b,O,c){var e=c.motionEnter,o=e===void 0?!0:e,t=c.motionAppear,u=t===void 0?!0:t,f=c.motionLeave,_=f===void 0?!0:f,y=c.motionDeadline,P=c.motionLeaveImmediately,W=c.onAppearPrepare,fe=c.onEnterPrepare,de=c.onLeavePrepare,Me=c.onAppearStart,$e=c.onEnterStart,rt=c.onLeaveStart,qe=c.onAppearActive,lt=c.onEnterActive,it=c.onLeaveActive,at=c.onAppearEnd,ot=c.onEnterEnd,gt=c.onLeaveEnd,ut=c.onVisibleChanged,$t=Dt(),Tt=Object(M.a)($t,2),Xe=Tt[0],Ve=Tt[1],ct=Dt(Ot),ft=Object(M.a)(ct,2),Ke=ft[0],Et=ft[1],Wt=Dt(null),yt=Object(M.a)(Wt,2),At=yt[0],Ht=yt[1],dn=Object(r.useRef)(!1),En=Object(r.useRef)(null),Yt=Object(r.useRef)(!1),yn=Object(r.useRef)(null);function In(){var zt=O();return zt||yn.current}var Rn=Object(r.useRef)(!1);function Tn(zt){var Mt=In();if(zt&&!zt.deadline&&zt.target!==Mt)return;var mn;Ke===Kt&&Rn.current?mn=at==null?void 0:at(Mt,zt):Ke===Qt&&Rn.current?mn=ot==null?void 0:ot(Mt,zt):Ke===mt&&Rn.current&&(mn=gt==null?void 0:gt(Mt,zt)),mn!==!1&&!Yt.current&&(Et(Ot),Ht(null))}var Jt=Dn(Tn),bn=Object(M.a)(Jt,1),fn=bn[0],rn=r.useMemo(function(){var zt,Mt,mn;switch(Ke){case"appear":return zt={},Object(L.a)(zt,_t,W),Object(L.a)(zt,xt,Me),Object(L.a)(zt,bt,qe),zt;case"enter":return Mt={},Object(L.a)(Mt,_t,fe),Object(L.a)(Mt,xt,$e),Object(L.a)(Mt,bt,lt),Mt;case"leave":return mn={},Object(L.a)(mn,_t,de),Object(L.a)(mn,xt,rt),Object(L.a)(mn,bt,it),mn;default:return{}}},[Ke]),Jn=On(Ke,function(zt){if(zt===_t){var Mt=rn[_t];return Mt?Mt(In()):Cn}if(Ft in rn){var mn;Ht(((mn=rn[Ft])===null||mn===void 0?void 0:mn.call(rn,In(),null))||null)}return Ft===bt&&(fn(In()),y>0&&(clearTimeout(En.current),En.current=setTimeout(function(){Tn({deadline:!0})},y))),an}),Qn=Object(M.a)(Jn,2),oa=Qn[0],Ft=Qn[1],Bn=hn(Ft);Rn.current=Bn,tn(function(){Ve(b);var zt=dn.current;if(dn.current=!0,!i)return;var Mt;!zt&&b&&u&&(Mt=Kt),zt&&b&&o&&(Mt=Qt),(zt&&!b&&_||!zt&&P&&!b&&_)&&(Mt=mt),Mt&&(Et(Mt),oa())},[b]),Object(r.useEffect)(function(){(Ke===Kt&&!u||Ke===Qt&&!o||Ke===mt&&!_)&&Et(Ot)},[u,o,_]),Object(r.useEffect)(function(){return function(){clearTimeout(En.current),Yt.current=!0}},[]),Object(r.useEffect)(function(){Xe!==void 0&&Ke===Ot&&(ut==null||ut(Xe))},[Xe,Ke]);var ra=At;return rn[_t]&&Ft===xt&&(ra=Object(U.a)({transition:"none"},ra)),[Ke,Ft,ra,Xe!=null?Xe:b]}var Hn=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){return Object(H.a)(this,O),b.apply(this,arguments)}return Object(z.a)(O,[{key:"render",value:function(){return this.props.children}}]),O}(r.Component),cn=Hn;function Kn(i){var b=i;Object(S.a)(i)==="object"&&(b=i.transitionSupport);function O(e){return!!(e.motionName&&b)}var c=r.forwardRef(function(e,o){var t=e.visible,u=t===void 0?!0:t,f=e.removeOnLeave,_=f===void 0?!0:f,y=e.forceRender,P=e.children,W=e.motionName,fe=e.leavedClassName,de=e.eventProps,Me=O(e),$e=Object(r.useRef)(),rt=Object(r.useRef)();function qe(){try{return Object(ln.a)($e.current||rt.current)}catch(Et){return null}}var lt=_n(Me,u,qe,e),it=Object(M.a)(lt,4),at=it[0],ot=it[1],gt=it[2],ut=it[3],$t=r.useRef(ut);ut&&($t.current=!0);var Tt=Object(r.useRef)(o);Tt.current=o;var Xe=r.useCallback(function(Et){$e.current=Et,Object(D.b)(Tt.current,Et)},[]),Ve,ct=Object(U.a)(Object(U.a)({},de),{},{visible:u});if(!P)Ve=null;else if(at===Ot||!O(e))ut?Ve=P(Object(U.a)({},ct),Xe):!_&&$t.current?Ve=P(Object(U.a)(Object(U.a)({},ct),{},{className:fe}),Xe):y?Ve=P(Object(U.a)(Object(U.a)({},ct),{},{style:{display:"none"}}),Xe):Ve=null;else{var ft,Ke;ot===_t?Ke="prepare":hn(ot)?Ke="active":ot===xt&&(Ke="start"),Ve=P(Object(U.a)(Object(U.a)({},ct),{},{className:ce()(It(W,at),(ft={},Object(L.a)(ft,It(W,"".concat(at,"-").concat(Ke)),Ke),Object(L.a)(ft,W,typeof W=="string"),ft)),style:gt}),Xe)}return r.createElement(cn,{ref:rt},Ve)});return c.displayName="CSSMotion",c}var An=Kn(Ze),Fn="add",wn="keep",xn="remove",Ln="removed";function Vn(i){var b;return i&&Object(S.a)(i)==="object"&&"key"in i?b=i:b={key:i},Object(U.a)(Object(U.a)({},b),{},{key:String(b.key)})}function Un(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(Vn)}function qt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=[],c=0,e=b.length,o=Un(i),t=Un(b);o.forEach(function(_){for(var y=!1,P=c;P1});return f.forEach(function(_){O=O.filter(function(y){var P=y.key,W=y.status;return P!==_||W!==xn}),O.forEach(function(y){y.key===_&&(y.status=wn)})}),O}var on=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Vt(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:An,O=function(c){Object(g.a)(o,c);var e=Object(l.a)(o);function o(){var t;return Object(H.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(u){t.setState(function(f){var _=f.keyEntities;return{keyEntities:_.map(function(y){return y.key!==u?y:Object(U.a)(Object(U.a)({},y),{},{status:Ln})})}})},t}return Object(z.a)(o,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,_=this.props,y=_.component,P=_.children,W=_.onVisibleChanged,fe=Object(Te.a)(_,["component","children","onVisibleChanged"]),de=y||r.Fragment,Me={};return on.forEach(function($e){Me[$e]=fe[$e],delete fe[$e]}),delete fe.keys,r.createElement(de,fe,f.map(function($e){var rt=$e.status,qe=Object(Te.a)($e,["status"]),lt=rt===Fn||rt===wn;return r.createElement(b,Object(I.a)({},Me,{key:qe.key,visible:lt,eventProps:qe,onVisibleChanged:function(at){W==null||W(at,{key:qe.key}),at||u.removeKey(qe.key)}}),P)}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var _=u.keys,y=f.keyEntities,P=Un(_),W=qt(y,P);return{keyEntities:W.filter(function(fe){var de=y.find(function(Me){var $e=Me.key;return fe.key===$e});return!(de&&de.status===Ln&&fe.status===xn)})}}}]),o}(r.Component);return O.defaultProps={component:"div"},O}var Ne=Vt(Ze),Oe=An;function Ae(i){var b=i.prefixCls,O=i.motion,c=i.animation,e=i.transitionName;return O||(c?{motionName:"".concat(b,"-").concat(c)}:e?{motionName:e}:null)}function He(i){var b=i.prefixCls,O=i.visible,c=i.zIndex,e=i.mask,o=i.maskMotion,t=i.maskAnimation,u=i.maskTransitionName;if(!e)return null;var f={};return(o||u||t)&&(f=Object(U.a)({motionAppear:!0},Ae({motion:o,prefixCls:b,transitionName:u,animation:t}))),r.createElement(Oe,Object(I.a)({},f,{visible:O,removeOnLeave:!0}),function(_){var y=_.className;return r.createElement("div",{style:{zIndex:c},className:ce()("".concat(b,"-mask"),y)})})}var De=a("9mu1"),nt=a("o0o1"),Ge=a.n(nt),Rt=a("HaE+"),pt=["measure","align",null,"motion"],jt=function(i,b){var O=Object(r.useState)(null),c=Object(M.a)(O,2),e=c[0],o=c[1],t=Object(r.useRef)(),u=Object(r.useRef)(!1);function f(P){u.current||o(P)}function _(){Ct.a.cancel(t.current)}function y(P){_(),t.current=Object(Ct.a)(function(){f(function(W){switch(e){case"align":return"motion";case"motion":return"stable";default:}return W}),P==null||P()})}return Object(r.useEffect)(function(){f("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":b();break;default:}e&&(t.current=Object(Ct.a)(Object(Rt.a)(Ge.a.mark(function P(){var W,fe;return Ge.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:W=pt.indexOf(e),fe=pt[W+1],fe&&W!==-1&&f(fe);case 3:case"end":return Me.stop()}},P)}))))},[e]),Object(r.useEffect)(function(){return function(){u.current=!0,_()}},[]),[e,y]},Gt=function(i){var b=r.useState({width:0,height:0}),O=Object(M.a)(b,2),c=O[0],e=O[1];function o(u){e({width:u.offsetWidth,height:u.offsetHeight})}var t=r.useMemo(function(){var u={};if(i){var f=c.width,_=c.height;i.indexOf("height")!==-1&&_?u.height=_:i.indexOf("minHeight")!==-1&&_&&(u.minHeight=_),i.indexOf("width")!==-1&&f?u.width=f:i.indexOf("minWidth")!==-1&&f&&(u.minWidth=f)}return u},[i,c]);return[t,o]},vn=r.forwardRef(function(i,b){var O=i.visible,c=i.prefixCls,e=i.className,o=i.style,t=i.children,u=i.zIndex,f=i.stretch,_=i.destroyPopupOnHide,y=i.forceRender,P=i.align,W=i.point,fe=i.getRootDomNode,de=i.getClassNameFromAlign,Me=i.onAlign,$e=i.onMouseEnter,rt=i.onMouseLeave,qe=i.onMouseDown,lt=i.onTouchStart,it=Object(r.useRef)(),at=Object(r.useRef)(),ot=Object(r.useState)(),gt=Object(M.a)(ot,2),ut=gt[0],$t=gt[1],Tt=Gt(f),Xe=Object(M.a)(Tt,2),Ve=Xe[0],ct=Xe[1];function ft(){f&&ct(fe())}var Ke=jt(O,ft),Et=Object(M.a)(Ke,2),Wt=Et[0],yt=Et[1],At=Object(r.useRef)();function Ht(){return W||fe}function dn(){var Jt;(Jt=it.current)===null||Jt===void 0||Jt.forceAlign()}function En(Jt,bn){var fn=de(bn);ut!==fn&&$t(fn),Wt==="align"&&(ut!==fn?Promise.resolve().then(function(){dn()}):yt(function(){var rn;(rn=At.current)===null||rn===void 0||rn.call(At)}),Me==null||Me(Jt,bn))}var Yt=Object(U.a)({},Ae(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Jt){var bn=Yt[Jt];Yt[Jt]=function(fn,rn){return yt(),bn==null?void 0:bn(fn,rn)}});function yn(){return new Promise(function(Jt){At.current=Jt})}r.useEffect(function(){!Yt.motionName&&Wt==="motion"&&yt()},[Yt.motionName,Wt]),r.useImperativeHandle(b,function(){return{forceAlign:dn,getElement:function(){return at.current}}});var In=Object(U.a)(Object(U.a)({},Ve),{},{zIndex:u,opacity:Wt==="motion"||Wt==="stable"||!O?void 0:0,pointerEvents:Wt==="stable"?void 0:"none"},o),Rn=!0;(P==null?void 0:P.points)&&(Wt==="align"||Wt==="stable")&&(Rn=!1);var Tn=t;return r.Children.count(t)>1&&(Tn=r.createElement("div",{className:"".concat(c,"-content")},t)),r.createElement(Oe,Object(I.a)({visible:O,ref:at,leavedClassName:"".concat(c,"-hidden")},Yt,{onAppearPrepare:yn,onEnterPrepare:yn,removeOnLeave:_,forceRender:y}),function(Jt,bn){var fn=Jt.className,rn=Jt.style,Jn=ce()(c,e,ut,fn);return r.createElement(De.a,{target:Ht(),key:"popup",ref:it,monitorWindowResize:!0,disabled:Rn,align:P,onAlign:En},r.createElement("div",{ref:bn,className:Jn,onMouseEnter:$e,onMouseLeave:rt,onMouseDownCapture:qe,onTouchStartCapture:lt,style:Object(U.a)(Object(U.a)({},rn),In)},Tn))})});vn.displayName="PopupInner";var jn=vn,Bt=r.forwardRef(function(i,b){var O=i.prefixCls,c=i.visible,e=i.zIndex,o=i.children,t=i.mobile;t=t===void 0?{}:t;var u=t.popupClassName,f=t.popupStyle,_=t.popupMotion,y=_===void 0?{}:_,P=t.popupRender,W=r.useRef();r.useImperativeHandle(b,function(){return{forceAlign:function(){},getElement:function(){return W.current}}});var fe=Object(U.a)({zIndex:e},f),de=o;return r.Children.count(o)>1&&(de=r.createElement("div",{className:"".concat(O,"-content")},o)),P&&(de=P(de)),r.createElement(Oe,Object(I.a)({visible:c,ref:W,removeOnLeave:!0},y),function(Me,$e){var rt=Me.className,qe=Me.style,lt=ce()(O,u,rt);return r.createElement("div",{ref:$e,className:lt,style:Object(U.a)(Object(U.a)({},qe),fe)},de)})});Bt.displayName="MobilePopupInner";var Xn=Bt,nn=["visible","mobile"],Wn=r.forwardRef(function(i,b){var O=i.visible,c=i.mobile,e=Object(Te.a)(i,nn),o=Object(r.useState)(O),t=Object(M.a)(o,2),u=t[0],f=t[1],_=Object(r.useState)(!1),y=Object(M.a)(_,2),P=y[0],W=y[1],fe=Object(U.a)(Object(U.a)({},e),{},{visible:u});Object(r.useEffect)(function(){f(O),O&&c&&W(xe())},[O,c]);var de=P?r.createElement(Xn,Object(I.a)({},fe,{mobile:c,ref:b})):r.createElement(jn,Object(I.a)({},fe,{ref:b}));return r.createElement("div",null,r.createElement(He,fe),de)});Wn.displayName="Popup";var qn=Wn,ea=r.createContext(null),ia=ea;function Mn(){}function $a(){return""}function Ga(i){return i?i.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(i){var b=function(O){Object(g.a)(e,O);var c=Object(l.a)(e);function e(o){var t;Object(H.a)(this,e),t=c.call(this,o),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(f){var _=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",f),t.delaySetPopupVisible(!0,_,_?null:f)},t.onMouseMove=function(f){t.fireEvents("onMouseMove",f),t.setPoint(f)},t.onMouseLeave=function(f){t.fireEvents("onMouseLeave",f),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(f){var _;if(f.relatedTarget&&!f.relatedTarget.setTimeout&&Object(Ut.a)((_=t.popupRef.current)===null||_===void 0?void 0:_.getElement(),f.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(f){t.fireEvents("onFocus",f),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(f){t.fireEvents("onMouseDown",f),t.preClickTime=Date.now()},t.onTouchStart=function(f){t.fireEvents("onTouchStart",f),t.preTouchTime=Date.now()},t.onBlur=function(f){t.fireEvents("onBlur",f),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(f){f.preventDefault(),t.fireEvents("onContextMenu",f),t.setPopupVisible(!0,f)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(f){if(t.fireEvents("onClick",f),t.focusTime){var _;if(t.preClickTime&&t.preTouchTime?_=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?_=t.preClickTime:t.preTouchTime&&(_=t.preTouchTime),Math.abs(_-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&f&&f.preventDefault&&f.preventDefault();var y=!t.state.popupVisible;(t.isClickToHide()&&!y||y&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,f)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var f;(f=t.context).onPopupMouseDown.apply(f,arguments)}},t.onDocumentClick=function(f){if(t.props.mask&&!t.props.maskClosable)return;var _=f.target,y=t.getRootDomNode(),P=t.getPopupDomNode();(!Object(Ut.a)(y,_)||t.isContextMenuOnly())&&!Object(Ut.a)(P,_)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var f=t.props.getTriggerDOMNode;if(f)return f(t.triggerRef.current);try{var _=Object(ln.a)(t.triggerRef.current);if(_)return _}catch(y){}return Lt.a.findDOMNode(Object(C.a)(t))},t.getPopupClassNameFromAlign=function(f){var _=[],y=t.props,P=y.popupPlacement,W=y.builtinPlacements,fe=y.prefixCls,de=y.alignPoint,Me=y.getPopupClassNameFromAlign;return P&&W&&_.push(Re(W,fe,f,de)),Me&&_.push(Me(f)),_.join(" ")},t.getComponent=function(){var f=t.props,_=f.prefixCls,y=f.destroyPopupOnHide,P=f.popupClassName,W=f.onPopupAlign,fe=f.popupMotion,de=f.popupAnimation,Me=f.popupTransitionName,$e=f.popupStyle,rt=f.mask,qe=f.maskAnimation,lt=f.maskTransitionName,it=f.maskMotion,at=f.zIndex,ot=f.popup,gt=f.stretch,ut=f.alignPoint,$t=f.mobile,Tt=f.forceRender,Xe=t.state,Ve=Xe.popupVisible,ct=Xe.point,ft=t.getPopupAlign(),Ke={};return t.isMouseEnterToShow()&&(Ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Ke.onMouseLeave=t.onPopupMouseLeave),Ke.onMouseDown=t.onPopupMouseDown,Ke.onTouchStart=t.onPopupMouseDown,r.createElement(qn,Object(I.a)({prefixCls:_,destroyPopupOnHide:y,visible:Ve,point:ut&&ct,className:P,align:ft,onAlign:W,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},Ke,{stretch:gt,getRootDomNode:t.getRootDomNode,style:$e,mask:rt,zIndex:at,transitionName:Me,maskAnimation:qe,maskTransitionName:lt,maskMotion:it,ref:t.popupRef,motion:fe,mobile:$t,forceRender:Tt}),typeof ot=="function"?ot():ot)},t.attachParent=function(f){Ct.a.cancel(t.attachId);var _=t.props,y=_.getPopupContainer,P=_.getDocument,W=t.getRootDomNode(),fe;y?(W||y.length===0)&&(fe=y(W)):fe=P(t.getRootDomNode()).body,fe?fe.appendChild(f):t.attachId=Object(Ct.a)(function(){t.attachParent(f)})},t.getContainer=function(){var f=t.props.getDocument,_=f(t.getRootDomNode()).createElement("div");return _.style.position="absolute",_.style.top="0",_.style.left="0",_.style.width="100%",t.attachParent(_),_},t.setPoint=function(f){var _=t.props.alignPoint;if(!_||!f)return;t.setState({point:{pageX:f.pageX,pageY:f.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var u;return"popupVisible"in o?u=!!o.popupVisible:u=!!o.defaultPopupVisible,t.state={prevPopupVisible:u,popupVisible:u},Da.forEach(function(f){t["fire".concat(f)]=function(_){t.fireEvents(f,_)}}),t}return Object(z.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,u=this.state;if(u.popupVisible){var f;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(f=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ve.a)(f,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(f=f||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(f,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(f=f||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(f,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ct.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,u=t.popupPlacement,f=t.popupAlign,_=t.builtinPlacements;return u&&_?we(_,u,f):f}},{key:"setPopupVisible",value:function(t,u){var f=this.props.alignPoint,_=this.state.popupVisible;this.clearDelayTimer(),_!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:_}),this.props.onPopupVisibleChange(t)),f&&u&&t&&this.setPoint(u)}},{key:"delaySetPopupVisible",value:function(t,u,f){var _=this,y=u*1e3;if(this.clearDelayTimer(),y){var P=f?{pageX:f.pageX,pageY:f.pageY}:null;this.delayTimer=window.setTimeout(function(){_.setPopupVisible(t,P),_.clearDelayTimer()},y)}else this.setPopupVisible(t,f)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var u=this.props.children.props,f=this.props;return u[t]&&f[t]?this["fire".concat(t)]:u[t]||f[t]}},{key:"isClickToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("click")!==-1||f.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("contextMenu")!==-1||f.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,u=t.action,f=t.hideAction;return u.indexOf("click")!==-1||f.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("hover")!==-1||f.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,u=t.action,f=t.hideAction;return u.indexOf("hover")!==-1||f.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,u=t.action,f=t.showAction;return u.indexOf("focus")!==-1||f.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,u=t.action,f=t.hideAction;return u.indexOf("focus")!==-1||f.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,u){var f=this.props.children.props[t];f&&f(u);var _=this.props[t];_&&_(u)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,u=this.props,f=u.children,_=u.forceRender,y=u.alignPoint,P=u.className,W=u.autoDestroy,fe=r.Children.only(f),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,y&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Me=ce()(fe&&fe.props&&fe.props.className,P);Me&&(de.className=Me);var $e=Object(U.a)({},de);Object(D.c)(fe)&&($e.ref=Object(D.a)(this.triggerRef,fe.ref));var rt=r.cloneElement(fe,$e),qe;return(t||this.popupRef.current||_)&&(qe=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&W&&(qe=null),r.createElement(ia.Provider,{value:this.triggerContextValue},rt,qe)}}],[{key:"getDerivedStateFromProps",value:function(t,u){var f=t.popupVisible,_={};return f!==void 0&&u.popupVisible!==f&&(_.popupVisible=f,_.prevPopupVisible=u.popupVisible),_}}]),e}(r.Component);return b.contextType=ia,b.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Mn,afterPopupVisibleChange:Mn,onPopupAlign:Mn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},b}var Ja=Ya(ge.a),kn={adjustX:1,adjustY:1},ma={topLeft:{points:["bl","tl"],overflow:kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:kn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:kn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:kn,offset:[4,0]}},wa={topLeft:{points:["bl","tl"],overflow:kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:kn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:kn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:kn,offset:[4,0]}},pa=ma,gn=0,Pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Nn=function(b,O,c){var e=q(O),o=b.getState();b.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},o.defaultActiveFirst),{},Object(L.a)({},e,c))})},ha=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(c){var e;Object(H.a)(this,O),e=b.call(this,c),e.onDestroy=function(y){e.props.onDestroy(y)},e.onKeyDown=function(y){var P=y.keyCode,W=e.menuInstance,fe=e.props.store,de=e.getVisible();if(P===j.a.ENTER)return e.onTitleClick(y),Nn(fe,e.props.eventKey,!0),!0;if(P===j.a.RIGHT)return de?W.onKeyDown(y):(e.triggerOpenChange(!0),Nn(fe,e.props.eventKey,!0)),!0;if(P===j.a.LEFT){var Me;if(de)Me=W.onKeyDown(y);else return;return Me||(e.triggerOpenChange(!1),Me=!0),Me}return de&&(P===j.a.UP||P===j.a.DOWN)?W.onKeyDown(y):void 0},e.onOpenChange=function(y){e.props.onOpenChange(y)},e.onPopupVisibleChange=function(y){e.triggerOpenChange(y,y?"mouseenter":"mouseleave")},e.onMouseEnter=function(y){var P=e.props,W=P.eventKey,fe=P.onMouseEnter,de=P.store;Nn(de,e.props.eventKey,!1),fe({key:W,domEvent:y})},e.onMouseLeave=function(y){var P=e.props,W=P.parentMenu,fe=P.eventKey,de=P.onMouseLeave;W.subMenuInstance=Object(C.a)(e),de({key:fe,domEvent:y})},e.onTitleMouseEnter=function(y){var P=e.props,W=P.eventKey,fe=P.onItemHover,de=P.onTitleMouseEnter;fe({key:W,hover:!0}),de({key:W,domEvent:y})},e.onTitleMouseLeave=function(y){var P=e.props,W=P.parentMenu,fe=P.eventKey,de=P.onItemHover,Me=P.onTitleMouseLeave;W.subMenuInstance=Object(C.a)(e),de({key:fe,hover:!1}),Me({key:fe,domEvent:y})},e.onTitleClick=function(y){var P=Object(C.a)(e),W=P.props;if(W.onTitleClick({key:W.eventKey,domEvent:y}),W.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Nn(W.store,e.props.eventKey,!1)},e.onSubMenuClick=function(y){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(y))},e.onSelect=function(y){e.props.onSelect(y)},e.onDeselect=function(y){e.props.onDeselect(y)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(y){e.menuInstance=y},e.addKeyPath=function(y){return Object(U.a)(Object(U.a)({},y),{},{keyPath:(y.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(y,P){var W=e.props.eventKey,fe=function(){e.onOpenChange({key:W,item:Object(C.a)(e),trigger:P,open:y})};P==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){fe()},0):fe()},e.isChildrenSelected=function(){var y={find:!1};return Ce(e.props.children,e.props.selectedKeys,y),y.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var y=Nt.findDOMNode(e.menuInstance);if(y.offsetWidth>=e.subMenuTitle.offsetWidth)return;y.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(y){e.subMenuTitle=y},e.getBaseProps=function(){var y=Object(C.a)(e),P=y.props,W=e.getMode();return{mode:W==="horizontal"?"vertical":W,visible:e.getVisible(),level:P.level+1,inlineIndent:P.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:P.selectedKeys,eventKey:"".concat(P.eventKey,"-menu-"),openKeys:P.openKeys,motion:P.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:P.subMenuOpenDelay,parentMenu:Object(C.a)(e),subMenuCloseDelay:P.subMenuCloseDelay,forceSubMenuRender:P.forceSubMenuRender,triggerSubMenuAction:P.triggerSubMenuAction,builtinPlacements:P.builtinPlacements,defaultActiveFirst:P.store.getState().defaultActiveFirst[q(P.eventKey)],multiple:P.multiple,prefixCls:P.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:P.itemIcon,expandIcon:P.expandIcon,direction:P.direction}},e.getMotion=function(y,P){var W=Object(C.a)(e),fe=W.haveRendered,de=e.props,Me=de.motion,$e=de.rootPrefixCls,rt=Object(U.a)(Object(U.a)({},Me),{},{leavedClassName:"".concat($e,"-hidden"),removeOnLeave:!1,motionAppear:fe||!P||y!=="inline"});return rt};var o=c.store,t=c.eventKey,u=o.getState(),f=u.defaultActiveFirst;e.isRootMenu=!1;var _=!1;return f&&(_=f[t]),Nn(o,t,_),e.state={mode:c.mode,isOpen:c.isOpen},e}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,u=o.parentMenu,f=o.manualRef,_=o.isOpen,y=function(){e.setState({mode:t,isOpen:_})},P=_!==this.state.isOpen,W=t!==this.state.mode;if((W||P)&&(Ct.a.cancel(this.updateStateRaf),W?this.updateStateRaf=Object(Ct.a)(y):y()),f&&f(this),t!=="horizontal"||!(u==null?void 0:u.isRootMenu)||!_)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ct.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return r.createElement(ua,Object(I.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,u=o.visible,f=o.forceSubMenuRender,_=o.direction,y=this.getMotion(t,u);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||u||f,!this.haveOpened)return r.createElement("div",null);var P=ce()("".concat(o.prefixCls,"-sub"),Object(L.a)({},"".concat(o.prefixCls,"-rtl"),_==="rtl"));return this.isInlineMode()?r.createElement(Oe,Object(I.a)({visible:o.visible,forceRender:f},y),function(W){var fe=W.className,de=W.style,Me=ce()(P,fe);return e.renderPopupMenu(Me,de)}):this.renderPopupMenu(P)}},{key:"render",value:function(){var e,o,t,u=Object(U.a)({},this.props),f=this.getVisible(),_=this.getPrefixCls(),y=this.isInlineMode(),P=this.getMode(),W=ce()(_,"".concat(_,"-").concat(P),(e={},Object(L.a)(e,u.className,!!u.className),Object(L.a)(e,this.getOpenClassName(),f),Object(L.a)(e,this.getActiveClassName(),u.active||f&&!y),Object(L.a)(e,this.getDisabledClassName(),u.disabled),Object(L.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(u.eventKey?this.internalMenuId="".concat(u.eventKey,"$Menu"):(gn+=1,this.internalMenuId="$__$".concat(gn,"$Menu")));var fe={},de={},Me={};u.disabled||(fe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Me={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $e={},rt=u.direction,qe=rt==="rtl";y&&(qe?$e.paddingRight=u.inlineIndent*u.level:$e.paddingLeft=u.inlineIndent*u.level);var lt={};this.getVisible()&&(lt={"aria-owns":this.internalMenuId});var it=null;P!=="horizontal"&&(it=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(it=r.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var at=r.createElement("div",Object(I.a)({ref:this.saveSubMenuTitle,style:$e,className:"".concat(_,"-title"),role:"button"},Me,de,{"aria-expanded":f},lt,{"aria-haspopup":"true",title:typeof u.title=="string"?u.title:void 0}),u.title,it||r.createElement("i",{className:"".concat(_,"-arrow")})),ot=this.renderChildren(),gt=((o=u.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?u.parentMenu.props.getPopupContainer:function(Ht){return Ht.parentNode},ut=Pn[P],$t=u.popupOffset?{offset:u.popupOffset}:{},Tt=ce()((t={},Object(L.a)(t,u.popupClassName,u.popupClassName&&!y),Object(L.a)(t,"".concat(_,"-rtl"),qe),t)),Xe=u.disabled,Ve=u.triggerSubMenuAction,ct=u.subMenuOpenDelay,ft=u.forceSubMenuRender,Ke=u.subMenuCloseDelay,Et=u.builtinPlacements;Fe.forEach(function(Ht){return delete u[Ht]}),delete u.onClick;var Wt=qe?Object(U.a)(Object(U.a)({},wa),Et):Object(U.a)(Object(U.a)({},ma),Et);delete u.direction;var yt=this.getBaseProps(),At=y?null:this.getMotion(yt.mode,yt.visible);return r.createElement("li",Object(I.a)({},u,fe,{className:W,role:"menuitem"}),r.createElement(Ja,{prefixCls:_,popupClassName:ce()("".concat(_,"-popup"),Tt),getPopupContainer:gt,builtinPlacements:Wt,popupPlacement:ut,popupVisible:y?!1:f,popupAlign:$t,popup:y?null:ot,action:Xe||y?[]:[Ve],mouseEnterDelay:ct,mouseLeaveDelay:Ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ft,popupMotion:At},at),y?ot:null)}}]),O}(r.Component);ha.defaultProps={onMouseEnter:A,onMouseLeave:A,onTitleMouseEnter:A,onTitleMouseLeave:A,onTitleClick:A,manualRef:A,mode:"vertical",title:""};var ta=Object(v.b)(function(i,b){var O=i.openKeys,c=i.activeKey,e=i.selectedKeys,o=b.eventKey,t=b.subMenuKey;return{isOpen:O.indexOf(o)>-1,active:c[t]===o,selectedKeys:e}})(ha);ta.isSubMenu=!0;var na=ta,La="menuitem-overflowed",Qa=.5,Ua=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){var c;return Object(H.a)(this,O),c=b.apply(this,arguments),c.resizeObserver=null,c.mutationObserver=null,c.originalTotalWidth=0,c.overflowedItems=[],c.menuItemSizes=[],c.cancelFrameId=null,c.state={lastVisibleIndex:void 0},c.childRef=r.createRef(),c.getMenuItemNodes=function(){var e=c.props.prefixCls,o=c.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},c.getOverflowedSubMenuItem=function(e,o,t){var u=c.props,f=u.overflowedIndicator,_=u.level,y=u.mode,P=u.prefixCls,W=u.theme;if(_!==1||y!=="horizontal")return null;var fe=c.props.children[0],de=fe.props,Me=de.children,$e=de.title,rt=de.style,qe=Object(Te.a)(de,["children","title","style"]),lt=Object(U.a)({},rt),it="".concat(e,"-overflowed-indicator"),at="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?lt=Object(U.a)(Object(U.a)({},lt),{},{display:"none"}):t&&(lt=Object(U.a)(Object(U.a)({},lt),{},{visibility:"hidden",position:"absolute"}),it="".concat(it,"-placeholder"),at="".concat(at,"-placeholder"));var ot=W?"".concat(P,"-").concat(W):"",gt={};return Fe.forEach(function(ut){qe[ut]!==void 0&&(gt[ut]=qe[ut])}),r.createElement(na,Object(I.a)({title:f,className:"".concat(P,"-overflowed-submenu"),popupClassName:ot},gt,{key:it,eventKey:at,disabled:!1,style:lt}),o)},c.setChildrenWidthAndResize=function(){if(c.props.mode!=="horizontal")return;var e=c.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Ue(t,"display","inline-block");var u=c.getMenuItemNodes(),f=u.filter(function(_){return _.className.split(" ").indexOf(La)>=0});f.forEach(function(_){Ue(_,"display","inline-block")}),c.menuItemSizes=u.map(function(_){return Be(_,!0)}),f.forEach(function(_){Ue(_,"display","none")}),c.overflowedIndicatorWidth=Be(e.children[e.children.length-1],!0),c.originalTotalWidth=c.menuItemSizes.reduce(function(_,y){return _+y},0),c.handleResize(),Ue(t,"display","none")},c.handleResize=function(){if(c.props.mode!=="horizontal")return;var e=c.childRef.current;if(!e)return;var o=Be(e);c.overflowedItems=[];var t=0,u;c.originalTotalWidth>o+Qa&&(u=-1,c.menuItemSizes.forEach(function(f){t+=f,t+c.overflowedIndicatorWidth<=o&&(u+=1)})),c.setState({lastVisibleIndex:u})},c}return Object(z.a)(O,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Pt.default(function(t){t.forEach(function(){var u=e.cancelFrameId;cancelAnimationFrame(u),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(u,f,_){var y=f;if(o.props.mode==="horizontal"){var P=o.getOverflowedSubMenuItem(f.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(_>t&&(y=r.cloneElement(f,{style:{display:"none"},eventKey:"".concat(f.props.eventKey,"-hidden"),className:"".concat(La)})),_===t+1&&(o.overflowedItems=e.slice(t+1).map(function(fe){return r.cloneElement(fe,{key:fe.props.eventKey,mode:"vertical-left"})}),P=o.getOverflowedSubMenuItem(f.props.eventKey,o.overflowedItems)));var W=[].concat(Object(k.a)(u),[P,y]);return _===e.length-1&&W.push(o.getOverflowedSubMenuItem(f.props.eventKey,[],!0)),W}return[].concat(Object(k.a)(u),[y])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,u=e.overflowedIndicator,f=e.mode,_=e.level,y=e.tag,P=e.children,W=e.theme,fe=Object(Te.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=y;return r.createElement(de,Object(I.a)({ref:this.childRef},fe),this.renderChildren(P))}}]),O}(r.Component);Ua.defaultProps={tag:"div",className:""};var va=Ua;function sa(i){return i.length?i.every(function(b){return!!b.props.disabled}):!0}function $n(i,b,O){var c=i.getState();i.setState({activeKey:Object(U.a)(Object(U.a)({},c.activeKey),{},Object(L.a)({},b,O))})}function zn(i){return i.eventKey||"0-menu-"}function la(i,b){var O=b,c=i.children,e=i.eventKey;if(O){var o;if(ye(c,function(t,u){t&&t.props&&!t.props.disabled&&O===d(t,e,u)&&(o=!0)}),o)return O}return O=null,i.defaultActiveFirst&&ye(c,function(t,u){!O&&t&&!t.props.disabled&&(O=d(t,e,u))}),O}function ka(i){if(!i)return;var b=this.instanceArray.indexOf(i);b!==-1?this.instanceArray[b]=i:this.instanceArray.push(i)}var Ia=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(c){var e;return Object(H.a)(this,O),e=b.call(this,c),e.onKeyDown=function(o,t){var u=o.keyCode,f;if(e.getFlatInstanceArray().forEach(function(y){y&&y.props.active&&y.onKeyDown&&(f=y.onKeyDown(o))}),f)return 1;var _=null;return(u===j.a.UP||u===j.a.DOWN)&&(_=e.step(u===j.a.UP?-1:1)),_?(o.preventDefault(),$n(e.props.store,zn(e.props),_.props.eventKey),typeof t=="function"&&t(_),1):void 0},e.onItemHover=function(o){var t=o.key,u=o.hover;$n(e.props.store,zn(e.props),u?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),u=e.props.store.getState().activeKey[zn(e.props)],f=t.length;if(!f)return null;o<0&&(t=t.concat().reverse());var _=-1;if(t.every(function(fe,de){return fe&&fe.props.eventKey===u?(_=de,!1):!0}),!e.props.defaultActiveFirst&&_!==-1&&sa(t.slice(_,f-1)))return;var y=(_+1)%f,P=y;do{var W=t[P];if(!W||W.props.disabled)P=(P+1)%f;else return W}while(P!==y);return null},e.renderCommonMenuItem=function(o,t,u){var f=e.props.store.getState(),_=Object(C.a)(e),y=_.props,P=d(o,y.eventKey,t),W=o.props;if(!W||typeof o.type=="string")return o;var fe=P===f.activeKey,de=Object(U.a)(Object(U.a)({mode:W.mode||y.mode,level:y.level,inlineIndent:y.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:y.prefixCls,index:t,parentMenu:y.parentMenu,manualRef:W.disabled?void 0:Object(V.a)(o.ref,ka.bind(Object(C.a)(e))),eventKey:P,active:!W.disabled&&fe,multiple:y.multiple,onClick:function($e){(W.onClick||A)($e),e.onClick($e)},onItemHover:e.onItemHover,motion:y.motion,subMenuOpenDelay:y.subMenuOpenDelay,subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:y.builtinPlacements,itemIcon:W.itemIcon||e.props.itemIcon,expandIcon:W.expandIcon||e.props.expandIcon},u),{},{direction:y.direction});return(y.mode==="inline"||We())&&(de.triggerSubMenuAction="click"),r.cloneElement(o,Object(U.a)(Object(U.a)({},de),{},{key:P||t}))},e.renderMenuItem=function(o,t,u){if(!o)return null;var f=e.props.store.getState(),_={openKeys:f.openKeys,selectedKeys:f.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:u};return e.renderCommonMenuItem(o,t,_)},c.store.setState({activeKey:Object(U.a)(Object(U.a)({},c.store.getState().activeKey),{},Object(L.a)({},c.eventKey,la(c,c.activeKey)))}),e.instanceArray=[],e}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!te()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[zn(o)],u=la(o,t);if(u!==t)$n(o.store,zn(o),u);else if("activeKey"in e){var f=la(e,e.activeKey);u!==f&&$n(o.store,zn(o),u)}}},{key:"render",value:function(){var e=this,o=Object(I.a)({},this.props);this.instanceArray=[];var t=ce()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),u={className:t,role:o.role||"menu"};o.id&&(u.id=o.id),o.focusable&&(u.tabIndex=0,u.onKeyDown=this.onKeyDown);var f=o.prefixCls,_=o.eventKey,y=o.visible,P=o.level,W=o.mode,fe=o.overflowedIndicator,de=o.theme;return Fe.forEach(function(Me){return delete o[Me]}),delete o.onClick,r.createElement(va,Object(I.a)({},o,{prefixCls:f,mode:W,tag:"ul",level:P,theme:de,visible:y,overflowedIndicator:fe},u),Object(se.a)(o.children).map(function(Me,$e){return e.renderMenuItem(Me,$e,_||"0-menu-")}))}}]),O}(r.Component);Ia.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:A};var Ka=Object(v.b)()(Ia),ua=Ka,Gn=a("Kwbf");function ba(i,b,O){var c=i.prefixCls,e=i.motion,o=i.defaultMotions,t=o===void 0?{}:o,u=i.openAnimation,f=i.openTransitionName,_=b.switchingModeFromInline;if(e)return e;if(Object(S.a)(u)==="object"&&u)Object(Gn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof u=="string")return{motionName:"".concat(c,"-open-").concat(u)};if(f)return{motionName:f};var y=t[O];return y||(_?null:t.other)}var Fa=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(c){var e;Object(H.a)(this,O),e=b.call(this,c),e.onSelect=function(u){var f=Object(C.a)(e),_=f.props;if(_.selectable){var y=e.store.getState(),P=y.selectedKeys,W=u.key;_.multiple?P=P.concat([W]):P=[W],"selectedKeys"in _||e.store.setState({selectedKeys:P}),_.onSelect(Object(U.a)(Object(U.a)({},u),{},{selectedKeys:P}))}},e.onClick=function(u){var f=e.getRealMenuMode(),_=Object(C.a)(e),y=_.store,P=_.props.onOpenChange;f!=="inline"&&!("openKeys"in e.props)&&(y.setState({openKeys:[]}),P([])),e.props.onClick(u)},e.onKeyDown=function(u,f){e.innerMenu.getWrappedInstance().onKeyDown(u,f)},e.onOpenChange=function(u){var f=Object(C.a)(e),_=f.props,y=e.store.getState().openKeys.concat(),P=!1,W=function(de){var Me=!1;if(de.open)Me=y.indexOf(de.key)===-1,Me&&y.push(de.key);else{var $e=y.indexOf(de.key);Me=$e!==-1,Me&&y.splice($e,1)}P=P||Me};Array.isArray(u)?u.forEach(W):W(u),P&&("openKeys"in e.props||e.store.setState({openKeys:y}),_.onOpenChange(y))},e.onDeselect=function(u){var f=Object(C.a)(e),_=f.props;if(_.selectable){var y=e.store.getState().selectedKeys.concat(),P=u.key,W=y.indexOf(P);W!==-1&&y.splice(W,1),"selectedKeys"in _||e.store.setState({selectedKeys:y}),_.onDeselect(Object(U.a)(Object(U.a)({},u),{},{selectedKeys:y}))}},e.onMouseEnter=function(u){e.restoreModeVerticalFromInline();var f=e.props.onMouseEnter;f&&f(u)},e.onTransitionEnd=function(u){var f=u.propertyName==="width"&&u.target===u.currentTarget,_=u.target.className,y=Object.prototype.toString.call(_)==="[object SVGAnimatedString]"?_.animVal:_,P=u.propertyName==="font-size"&&y.indexOf("anticon")>=0;(f||P)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(u){e.innerMenu=u},e.isRootMenu=!0;var o=c.defaultSelectedKeys,t=c.defaultOpenKeys;return"selectedKeys"in c&&(o=c.selectedKeys||[]),"openKeys"in c&&(t=c.openKeys||[]),e.store=Object(v.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":la(c,c.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:c,inlineOpenKeys:[],store:e.store},e}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,u=o.inlineCollapsed,f=o.onOpenChange;(!e.inlineCollapsed&&u||!e.siderCollapsed&&t)&&f([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,u=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");u?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(U.a)({},Object(B.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(U.a)(Object(U.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ba(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(v.a,{store:this.store},r.createElement(ua,Object(I.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,u=o.store,f=u.getState(),_={},y={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(y.switchingModeFromInline=!0),"openKeys"in e?_.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(y.switchingModeFromInline=!0,y.inlineOpenKeys=f.openKeys,_.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(_.openKeys=o.inlineOpenKeys,y.inlineOpenKeys=[])),Object.keys(_).length&&u.setState(_),y}}]),O}(r.Component);Fa.defaultProps={selectable:!0,onClick:A,onSelect:A,onOpenChange:A,onDeselect:A,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Wa=Fa,Yn=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){var c;return Object(H.a)(this,O),c=b.apply(this,arguments),c.onKeyDown=function(e){var o=e.keyCode;return o===j.a.ENTER?(c.onClick(e),!0):void 0},c.onMouseLeave=function(e){var o=c.props,t=o.eventKey,u=o.onItemHover,f=o.onMouseLeave;u({key:t,hover:!1}),f({key:t,domEvent:e})},c.onMouseEnter=function(e){var o=c.props,t=o.eventKey,u=o.onItemHover,f=o.onMouseEnter;u({key:t,hover:!0}),f({key:t,domEvent:e})},c.onClick=function(e){var o=c.props,t=o.eventKey,u=o.multiple,f=o.onClick,_=o.onSelect,y=o.onDeselect,P=o.isSelected,W={key:t,keyPath:[t],item:Object(C.a)(c),domEvent:e};f(W),u?P?y(W):_(W):P||_(W)},c.saveNode=function(e){c.node=e},c}return Object(z.a)(O,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,o=Object(U.a)({},this.props),t=ce()(this.getPrefixCls(),o.className,(e={},Object(L.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(L.a)(e,this.getSelectedClassName(),o.isSelected),Object(L.a)(e,this.getDisabledClassName(),o.disabled),e)),u=Object(U.a)(Object(U.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?u=Object(U.a)(Object(U.a)({},u),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(u.role="none");var f={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},_=Object(U.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?_.paddingRight=o.inlineIndent*o.level:_.paddingLeft=o.inlineIndent*o.level),Fe.forEach(function(P){return delete o[P]}),delete o.direction;var y=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(y=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(I.a)({},Object(B.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),u,f,{style:_,ref:this.saveNode}),o.children,y)}}]),O}(r.Component);Yn.isMenuItem=!0,Yn.defaultProps={onSelect:A,onMouseEnter:A,onMouseLeave:A,manualRef:A};var ga=Object(v.b)(function(i,b){var O=i.activeKey,c=i.selectedKeys,e=b.eventKey,o=b.subMenuKey;return{active:O[o]===e,isSelected:Array.isArray(c)?c.indexOf(e)!==-1:c===e}})(Yn),Ea=ga,ya=function(i){Object(g.a)(O,i);var b=Object(l.a)(O);function O(){var c;return Object(H.a)(this,O),c=b.apply(this,arguments),c.renderInnerMenuItem=function(e){var o=c.props,t=o.renderMenuItem,u=o.index;return t(e,u,c.props.subMenuKey)},c}return Object(z.a)(O,[{key:"render",value:function(){var e=Object(I.a)({},this.props),o=e.className,t=o===void 0?"":o,u=e.rootPrefixCls,f="".concat(u,"-item-group-title"),_="".concat(u,"-item-group-list"),y=e.title,P=e.children;return Fe.forEach(function(W){return delete e[W]}),delete e.direction,r.createElement("li",Object(I.a)({},e,{onClick:function(fe){return fe.stopPropagation()},className:"".concat(t," ").concat(u,"-item-group")}),r.createElement("div",{className:f,title:typeof y=="string"?y:void 0},y),r.createElement("ul",{className:_},r.Children.map(P,this.renderInnerMenuItem)))}}]),O}(r.Component);ya.isMenuItemGroup=!0,ya.defaultProps={disabled:!0};var Za=ya,Ca=function(b){var O=b.className,c=b.rootPrefixCls,e=b.style;return r.createElement("li",{className:"".concat(O," ").concat(c,"-item-divider"),style:e})};Ca.defaultProps={disabled:!0,className:"",style:{}};var qa=Ca,za=Wa,Oa=a("eDIo");function eo(i,b){var O=i.prefixCls,c=i.editable,e=i.locale,o=i.style;return!c||c.showAdd===!1?null:r.createElement("button",{ref:b,type:"button",className:"".concat(O,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(u){c.onEdit("add",{event:u})}},c.addIcon||"+")}var ca=r.forwardRef(eo);function to(i,b){var O=i.prefixCls,c=i.id,e=i.tabs,o=i.locale,t=i.mobile,u=i.moreIcon,f=u===void 0?"More":u,_=i.moreTransitionName,y=i.style,P=i.className,W=i.editable,fe=i.tabBarGutter,de=i.rtl,Me=i.onTabClick,$e=Object(r.useState)(!1),rt=Object(M.a)($e,2),qe=rt[0],lt=rt[1],it=Object(r.useState)(null),at=Object(M.a)(it,2),ot=at[0],gt=at[1],ut="".concat(c,"-more-popup"),$t="".concat(O,"-dropdown"),Tt=ot!==null?"".concat(ut,"-").concat(ot):null,Xe=o==null?void 0:o.dropdownAriaLabel,Ve=r.createElement(za,{onClick:function(At){var Ht=At.key,dn=At.domEvent;Me(Ht,dn),lt(!1)},id:ut,tabIndex:-1,role:"listbox","aria-activedescendant":Tt,selectedKeys:[ot],"aria-label":Xe!==void 0?Xe:"expanded dropdown"},e.map(function(yt){return r.createElement(Ea,{key:yt.key,id:"".concat(ut,"-").concat(yt.key),role:"option","aria-controls":c&&"".concat(c,"-panel-").concat(yt.key),disabled:yt.disabled},yt.tab)}));function ct(yt){for(var At=e.filter(function(yn){return!yn.disabled}),Ht=At.findIndex(function(yn){return yn.key===ot})||0,dn=At.length,En=0;EnEt?(ft=Ve,ut.current="x"):(ft=ct,ut.current="y");var Wt=Date.now();Wt-ot.current>100&&(gt.current=!1),(b(-ft,-ft)||gt.current)&&(Xe.preventDefault(),gt.current=!0),ot.current=Wt}var Tt=Object(r.useRef)(null);Tt.current={onTouchStart:lt,onTouchMove:it,onTouchEnd:at,onWheel:$t},r.useEffect(function(){function Xe(Ke){Tt.current.onTouchStart(Ke)}function Ve(Ke){Tt.current.onTouchMove(Ke)}function ct(Ke){Tt.current.onTouchEnd(Ke)}function ft(Ke){Tt.current.onWheel(Ke)}return document.addEventListener("touchmove",Ve,{passive:!1}),document.addEventListener("touchend",ct,{passive:!1}),i.current.addEventListener("touchstart",Xe,{passive:!1}),i.current.addEventListener("wheel",ft),function(){document.removeEventListener("touchmove",Ve),document.removeEventListener("touchend",ct)}},[])}function xa(){var i=Object(r.useRef)(new Map);function b(c){return i.current.has(c)||i.current.set(c,r.createRef()),i.current.get(c)}function O(c){i.current.delete(c)}return[b,O]}function Ha(i,b){var O=r.useRef(i),c=r.useState({}),e=Object(M.a)(c,2),o=e[1];function t(u){var f=typeof u=="function"?u(O.current):u;f!==O.current&&b(f,O.current),O.current=f,o({})}return[O.current,t]}var Va=function(b){var O=b.position,c=b.prefixCls,e=b.extra;if(!e)return null;var o,t=e;return O==="right"&&(o=t.right||!t.left&&t||null),O==="left"&&(o=t.left||null),o?r.createElement("div",{className:"".concat(c,"-extra-content")},o):null};function Wo(i,b){var O,c=r.useContext(_a),e=c.prefixCls,o=c.tabs,t=i.className,u=i.style,f=i.id,_=i.animated,y=i.activeKey,P=i.rtl,W=i.extra,fe=i.editable,de=i.locale,Me=i.tabPosition,$e=i.tabBarGutter,rt=i.children,qe=i.onTabClick,lt=i.onTabScroll,it=Object(r.useRef)(),at=Object(r.useRef)(),ot=Object(r.useRef)(),gt=Object(r.useRef)(),ut=xa(),$t=Object(M.a)(ut,2),Tt=$t[0],Xe=$t[1],Ve=Me==="top"||Me==="bottom",ct=Ha(0,function(St,dt){Ve&<&<({direction:St>dt?"left":"right"})}),ft=Object(M.a)(ct,2),Ke=ft[0],Et=ft[1],Wt=Ha(0,function(St,dt){!Ve&<&<({direction:St>dt?"top":"bottom"})}),yt=Object(M.a)(Wt,2),At=yt[0],Ht=yt[1],dn=Object(r.useState)(0),En=Object(M.a)(dn,2),Yt=En[0],yn=En[1],In=Object(r.useState)(0),Rn=Object(M.a)(In,2),Tn=Rn[0],Jt=Rn[1],bn=Object(r.useState)(0),fn=Object(M.a)(bn,2),rn=fn[0],Jn=fn[1],Qn=Object(r.useState)(0),oa=Object(M.a)(Qn,2),Ft=oa[0],Bn=oa[1],ra=Object(r.useState)(null),zt=Object(M.a)(ra,2),Mt=zt[0],mn=zt[1],Xo=Object(r.useState)(null),bo=Object(M.a)(Xo,2),da=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(M.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(M.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=R(new Map),yo=Object(M.a)(er,2),tr=yo[0],nr=yo[1],Xa=ue(o,tr,Yt),Co="".concat(e,"-nav-operations-hidden"),ja=0,Ma=0;Ve?P?(ja=0,Ma=Math.max(0,Yt-Mt)):(ja=Math.min(0,Mt-Yt),Ma=0):(ja=Math.min(0,da-Tn),Ma=0);function ao(St){return StMa?[Ma,!1]:[St,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(M.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Ba(it,function(St,dt){var sn=!1;function Sn(Ta,Sa){Ta(function(Aa){var Pa=ao(Aa+Sa),fa=Object(M.a)(Pa,2),co=fa[0],fo=fa[1];return sn=fo,co})}if(Ve){if(Mt>=Yt)return sn;Sn(Et,St)}else{if(da>=Tn)return sn;Sn(Ht,dt)}return io(),ro(),sn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y,dt=Xa.get(St);if(!dt)return;if(Ve){var sn=Ke;P?dt.rightKe+Mt&&(sn=dt.right+dt.width-Mt):dt.left<-Ke?sn=-dt.left:dt.left+dt.width>-Ke+Mt&&(sn=-(dt.left+dt.width-Mt)),Ht(0),Et(ao(sn)[0])}else{var Sn=At;dt.top<-At?Sn=-dt.top:dt.top+dt.height>-At+da&&(Sn=-(dt.top+dt.height-da)),Et(0),Ht(ao(Sn)[0])}}var or=be(Xa,{width:Mt,height:da,left:Ke,top:At},{width:rn,height:Ft},{width:Yo,height:Zo},Object(U.a)(Object(U.a)({},i),{},{tabs:o})),Mo=Object(M.a)(or,2),rr=Mo[0],ir=Mo[1],sr=o.map(function(St){var dt=St.key;return r.createElement(G,{id:f,prefixCls:e,key:dt,rtl:P,tab:St,closable:St.closable,editable:fe,active:dt===y,tabPosition:Me,tabBarGutter:$e,renderWrapper:rt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:Tt(dt),onClick:function(Sn){qe(dt,Sn)},onRemove:function(){Xe(dt)},onFocus:function(){jo(dt),ro(),P||(it.current.scrollLeft=0),it.current.scrollTop=0}})}),so=J(function(){var St,dt,sn,Sn,Ta,Sa,Aa,Pa,fa,co=((St=it.current)===null||St===void 0?void 0:St.offsetWidth)||0,fo=((dt=it.current)===null||dt===void 0?void 0:dt.offsetHeight)||0,wo=((sn=gt.current)===null||sn===void 0?void 0:sn.offsetWidth)||0,Lo=((Sn=gt.current)===null||Sn===void 0?void 0:Sn.offsetHeight)||0,mr=((Ta=ot.current)===null||Ta===void 0?void 0:Ta.offsetWidth)||0,pr=((Sa=ot.current)===null||Sa===void 0?void 0:Sa.offsetHeight)||0;mn(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((Aa=at.current)===null||Aa===void 0?void 0:Aa.offsetWidth)||0)-wo,ko=(((Pa=at.current)===null||Pa===void 0?void 0:Pa.offsetHeight)||0)-Lo;yn(Uo),Jt(ko);var Io=(fa=ot.current)===null||fa===void 0?void 0:fa.className.includes(Co);Jn(Uo-(Io?0:mr)),Bn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Fo=hr.key,Na=Tt(Fo).current;Na&&Ko.set(Fo,{width:Na.offsetWidth,height:Na.offsetHeight,left:Na.offsetLeft,top:Na.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),Ro=[].concat(Object(k.a)(lr),Object(k.a)(ur)),cr=Object(r.useState)(),To=Object(M.a)(cr,2),dr=To[0],fr=To[1],Zn=Xa.get(y),So=Object(r.useRef)();function Ao(){re.a.cancel(So.current)}Object(r.useEffect)(function(){var St={};return Zn&&(Ve?(P?St.right=Zn.right:St.left=Zn.left,St.width=Zn.width):(St.top=Zn.top,St.height=Zn.height)),Ao(),So.current=re()(function(){fr(St)}),Ao},[Zn,Ve,P]),Object(r.useEffect)(function(){jo()},[y,Zn,Xa,Ve]),Object(r.useEffect)(function(){so()},[P,$e,y,o.map(function(St){return St.key}).join("_")]);var Po=!!Ro.length,Ra="".concat(e,"-nav-wrap"),lo,uo,No,Do;return Ve?P?(uo=Ke>0,lo=Ke+Mt1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(ue.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Y=ue[0];if(p.isValidElement(Y)&&Object(X.c)(Y)){var be=Y.ref;ue[0]=p.cloneElement(Y,{ref:Object(X.a)(be,this.setChildNode)})}return ue.length===1?ue[0]:ue.map(function(I,H){return!p.isValidElement(I)||"key"in I&&I.key!==null?I:p.cloneElement(I,{key:"".concat(me,"-").concat(H)})})}}]),ie}(p.Component);J.displayName="ResizeObserver",pe.a=J},wCXF:function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return Lt});var L=a("rePB"),M=a("VTBJ"),Te=a("KQm4"),U=a("U8pU"),r=a("ODXe"),p=a("q1tI"),ce=a("TSYQ"),se=a.n(ce),F=a("Gytx"),k=a.n(F),X=a("Kwbf"),re=a("t23M"),me=a("qx4F"),J=a("6eGT"),R=a("IBYe"),j=a("Ff2n"),ie=a("c+Xe"),G=a("fyJ8"),le=a("biw7");function ue(D,ve,ge,Se,we){var Re=ge[D]||{},xe=ge[ve]||{},Ee,je;Re.fixed==="left"?Ee=Se.left[D]:xe.fixed==="right"&&(je=Se.right[ve]);var ze=!1,Pe=!1,ke=!1,Je=!1,Le=ge[ve+1],Ie=ge[D-1];if(we==="rtl"){if(Ee!==void 0){var st=Ie&&Ie.fixed==="left";Je=!st}else if(je!==void 0){var tt=Le&&Le.fixed==="right";ke=!tt}}else if(Ee!==void 0){var Ze=Le&&Le.fixed==="left";ze=!Ze}else if(je!==void 0){var Qe=Ie&&Ie.fixed==="right";Pe=!Qe}return{fixLeft:Ee,fixRight:je,lastFixLeft:ze,firstFixRight:Pe,lastFixRight:ke,firstFixLeft:Je,isSticky:Se.isSticky}}var Y=a("sR1s");function be(D){var ve=D.cells,ge=D.stickyOffsets,Se=D.flattenColumns,we=D.rowComponent,Re=D.cellComponent,xe=D.onHeaderRow,Ee=D.index,je=p.useContext(le.a),ze=je.prefixCls,Pe=je.direction,ke;xe&&(ke=xe(ve.map(function(Le){return Le.column}),Ee));var Je=Object(Y.a)(ve.map(function(Le){return Le.column}));return p.createElement(we,Object.assign({},ke),ve.map(function(Le,Ie){var st=Le.column,tt=ue(Le.colStart,Le.colEnd,Se,ge,Pe),Ze;return st&&st.onHeaderCell&&(Ze=Le.column.onHeaderCell(st)),p.createElement(G.a,Object.assign({},Le,{ellipsis:st.ellipsis,align:st.align,component:Re,prefixCls:ze,key:Je[Ie]},tt,{additionalProps:Ze,rowType:"header"}))}))}be.displayName="HeaderRow";var I=be;function H(D){var ve=[];function ge(xe,Ee){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[je]=ve[je]||[];var ze=Ee,Pe=xe.filter(Boolean).map(function(ke){var Je={key:ke.key,className:ke.className||"",children:ke.title,column:ke,colStart:ze},Le=1,Ie=ke.children;return Ie&&Ie.length>0&&(Le=ge(Ie,ze,je+1).reduce(function(st,tt){return st+tt},0),Je.hasSubColumns=!0),"colSpan"in ke&&(Le=ke.colSpan),"rowSpan"in ke&&(Je.rowSpan=ke.rowSpan),Je.colSpan=Le,Je.colEnd=Je.colStart+Le-1,ve[je].push(Je),ze+=Le,Le});return Pe}ge(D,0);for(var Se=ve.length,we=function(Ee){ve[Ee].forEach(function(je){!("rowSpan"in je)&&!je.hasSubColumns&&(je.rowSpan=Se-Ee)})},Re=0;Re=0;Ee-=1){var je=ve[Ee],ze=ge&&ge[Ee],Pe=ze&&ze[g.a];(je||Pe||xe)&&(we.unshift(p.createElement("col",Object.assign({key:Ee,style:{width:je,minWidth:je}},Pe))),xe=!0)}return p.createElement("colgroup",null,we)}var v=l;function B(D,ve){return Object(p.useMemo)(function(){for(var ge=[],Se=0;Se1?Ne-1:0),Ae=1;Ae=ke&&(wt=ke-Je),xe({scrollLeft:wt/ke*(Pe+2)}),Qe.current.x=et.pageX},_t=function(){var et=Object(Fe.b)(Re.current).top,Dt=et+Re.current.offsetHeight,en=document.documentElement.scrollTop+window.innerHeight;Dt-Object(me.a)()<=en||et>=en-Ee?Ze(function(tn){return Object(M.a)(Object(M.a)({},tn),{},{isHiddenScrollBar:!0})}):Ze(function(tn){return Object(M.a)(Object(M.a)({},tn),{},{isHiddenScrollBar:!1})})},xt=function(et){Ze(function(Dt){return Object(M.a)(Object(M.a)({},Dt),{},{scrollLeft:et/Pe*ke||0})})};return p.useImperativeHandle(ge,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var bt=Object(Ce.a)(document.body,"mouseup",Qt,!1),et=Object(Ce.a)(document.body,"mousemove",Zt,!1);return _t(),function(){bt.remove(),et.remove()}},[Je,Ot]),p.useEffect(function(){var bt=Object(Ce.a)(window,"scroll",_t,!1),et=Object(Ce.a)(window,"resize",_t,!1);return function(){bt.remove(),et.remove()}},[]),p.useEffect(function(){tt.isHiddenScrollBar||Ze(function(bt){var et,Dt;return Object(M.a)(Object(M.a)({},bt),{},{scrollLeft:Re.current.scrollLeft/((et=Re.current)===null||et===void 0?void 0:et.scrollWidth)*((Dt=Re.current)===null||Dt===void 0?void 0:Dt.clientWidth)})})},[tt.isHiddenScrollBar]),Pe<=ke||!Je||tt.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(me.a)(),width:ke,bottom:Ee},className:"".concat(ze,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:Le,className:se()("".concat(ze,"-sticky-scroll-bar"),Object(L.a)({},"".concat(ze,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Je,"px"),transform:"translate3d(".concat(tt.scrollLeft,"px, 0, 0)")}}))},Ue=p.forwardRef(Be);function We(D,ve){return p.useMemo(function(){var ge=!!D;return{isSticky:ge,stickyClassName:ge?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(U.a)(D)==="object"&&D.offsetHeader||0,offsetScroll:Object(U.a)(D)==="object"&&D.offsetScroll||0}},[D,ve])}var Pt=[],Nt={},Lt="rc-table-internal-hook",Ct=p.memo(function(D){var ve=D.children;return ve},function(D,ve){return k()(D.props,ve.props)?D.pingLeft!==ve.pingLeft||D.pingRight!==ve.pingRight:!1});function Ut(D){var ve,ge=D.prefixCls,Se=D.className,we=D.rowClassName,Re=D.style,xe=D.data,Ee=D.rowKey,je=D.scroll,ze=D.tableLayout,Pe=D.direction,ke=D.title,Je=D.footer,Le=D.summary,Ie=D.id,st=D.showHeader,tt=D.components,Ze=D.emptyText,Qe=D.onRow,kt=D.onHeaderRow,It=D.internalHooks,Ot=D.transformColumns,Kt=D.internalRefs,Qt=D.sticky,mt=xe||Pt,Zt=!!mt.length,_t=p.useState(0),xt=Object(r.a)(_t,2),bt=xt[0],et=xt[1];p.useEffect(function(){et(Object(me.a)())});var Dt=p.useMemo(function(){return Object(Y.c)(tt,{})},[tt]),en=p.useCallback(function(ht,vt){return Object(Y.b)(Dt,ht)||vt},[Dt]),tn=p.useMemo(function(){return typeof Ee=="function"?Ee:function(ht){var vt=ht&&ht[Ee];return vt}},[Ee]),wt=Object(g.c)(D),un=wt.expandIcon,Cn=wt.expandedRowKeys,an=wt.defaultExpandedRowKeys,hn=wt.defaultExpandAllRows,On=wt.expandedRowRender,Dn=wt.onExpand,_n=wt.onExpandedRowsChange,Hn=wt.expandRowByClick,cn=wt.rowExpandable,Kn=wt.expandIconColumnIndex,An=wt.expandedRowClassName,Fn=wt.childrenColumnName,wn=wt.indentSize,xn=un||q,Ln=Fn||"children",Vn=p.useMemo(function(){return On?"row":D.expandable&&It===Lt&&D.expandable.__PARENT_RENDER_ICON__||mt.some(function(ht){return ht&&Object(U.a)(ht)==="object"&&ht[Ln]})?"nest":!1},[!!On,mt]),Un=p.useState(function(){return an||(hn?ye(mt,tn,Ln):[])}),qt=Object(r.a)(Un,2),on=qt[0],Vt=qt[1],Ne=p.useMemo(function(){return new Set(Cn||on||[])},[Cn,on]),Oe=p.useCallback(function(ht){var vt=tn(ht,mt.indexOf(ht)),Xt,pn=Ne.has(vt);pn?(Ne.delete(vt),Xt=Object(Te.a)(Ne)):Xt=[].concat(Object(Te.a)(Ne),[vt]),Vt(Xt),Dn&&Dn(!pn,ht),_n&&_n(Xt)},[tn,Ne,mt,Dn,_n]),Ae=p.useState(0),He=Object(r.a)(Ae,2),De=He[0],nt=He[1],Ge=Object(ne.b)(Object(M.a)(Object(M.a)(Object(M.a)({},D),wt),{},{expandable:!!On,expandedKeys:Ne,getRowKey:tn,onTriggerExpand:Oe,expandIcon:xn,expandIconColumnIndex:Kn,direction:Pe}),It===Lt?Ot:null),Rt=Object(r.a)(Ge,2),pt=Rt[0],jt=Rt[1],Gt=p.useMemo(function(){return{columns:pt,flattenColumns:jt}},[pt,jt]),vn=p.useRef(),jn=p.useRef(),Bt=p.useRef(),Xn=p.useState(!1),nn=Object(r.a)(Xn,2),Wn=nn[0],qn=nn[1],ea=p.useState(!1),ia=Object(r.a)(ea,2),Mn=ia[0],$a=ia[1],Ga=K(new Map),Da=Object(r.a)(Ga,2),Ya=Da[0],Ja=Da[1],kn=Object(Y.a)(jt),ma=kn.map(function(ht){return Ya.get(ht)}),wa=p.useMemo(function(){return ma},[ma.join("_")]),pa=m(wa,jt.length,Pe),gn=je&&Object(Y.d)(je.y),Pn=je&&Object(Y.d)(je.x),Nn=Pn&&jt.some(function(ht){var vt=ht.fixed;return vt}),ha=p.useRef(),ta=We(Qt,ge),na=ta.isSticky,La=ta.offsetHeader,Qa=ta.offsetScroll,Ua=ta.stickyClassName,va,sa,$n;gn&&(sa={overflowY:"scroll",maxHeight:je.y}),Pn&&(va={overflowX:"auto"},gn||(sa={overflowY:"hidden"}),$n={width:je.x===!0?"auto":je.x,minWidth:"100%"});var zn=p.useCallback(function(ht,vt){Ja(function(Xt){var pn=new Map(Xt);return pn.set(ht,vt),pn})},[]),la=ee(null),ka=Object(r.a)(la,2),Ia=ka[0],Ka=ka[1];function ua(ht,vt){if(!vt)return;typeof vt=="function"?vt(ht):vt.scrollLeft!==ht&&(vt.scrollLeft=ht)}var Gn=function(vt){var Xt=vt.currentTarget,pn=vt.scrollLeft,aa=typeof pn=="number"?pn:Xt.scrollLeft,Ba=Xt||Nt;if(!Ka()||Ka()===Ba){var xa;Ia(Ba),ua(aa,jn.current),ua(aa,Bt.current),ua(aa,(xa=ha.current)===null||xa===void 0?void 0:xa.setScrollLeft)}if(Xt){var Ha=Xt.scrollWidth,Va=Xt.clientWidth;qn(aa>0),$a(aa0?[].concat(Object(M.a)(j),Object(M.a)(X(ue).map(function(Y){return Object(Te.a)({fixed:le},Y)}))):[].concat(Object(M.a)(j),[Object(Te.a)(Object(Te.a)({},ie),{},{fixed:le})])},[])}function re(R){for(var j=!0,ie=0;ie=0;ue-=1){var Y=R[ue];if(le&&Y.fixed!=="right")le=!1;else if(!le&&Y.fixed==="right"){Object(ce.a)(!1,"Index ".concat(ue+1," of `columns` missing `fixed='right'` prop."));break}}}function me(R){return R.map(function(j){var ie=j.fixed,G=Object(U.a)(j,["fixed"]),le=ie;return ie==="left"?le="right":ie==="right"&&(le="left"),Object(Te.a)({fixed:le},G)})}function J(R,j){var ie=R.prefixCls,G=R.columns,le=R.children,ue=R.expandable,Y=R.expandedKeys,be=R.getRowKey,I=R.onTriggerExpand,H=R.expandIcon,z=R.rowExpandable,C=R.expandIconColumnIndex,g=R.direction,l=R.expandRowByClick,v=r.useMemo(function(){return G||k(le)},[G,le]),B=r.useMemo(function(){if(ue){var te,S=C||0,w=v[S],x=(te={},Object(L.a)(te,F.a,{className:"".concat(ie,"-expand-icon-col")}),Object(L.a)(te,"title",""),Object(L.a)(te,"fixed",w?w.fixed:null),Object(L.a)(te,"className","".concat(ie,"-row-expand-icon-cell")),Object(L.a)(te,"render",function(E,T,$){var ae=be(T,$),he=Y.has(ae),Q=z?z(T):!0,ne=H({prefixCls:ie,expanded:he,expandable:Q,record:T,onExpand:I});return l?r.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},ne):ne}),te),h=v.slice();return S>=0&&h.splice(S,0,x),h}return v},[ue,v,be,Y,H,g]),V=r.useMemo(function(){var te=B;return j&&(te=j(te)),te.length||(te=[{render:function(){return null}}]),te},[j,B,g]),_e=r.useMemo(function(){return g==="rtl"?me(X(V)):X(V)},[V,g]);return[V,_e]}pe.b=J},"y0+3":function(Ye,pe,a){"use strict";a.d(pe,"a",function(){return X}),a.d(pe,"b",function(){return me});var L=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},Te={cssFloat:1,styleFloat:1,float:1};function U(J){return J.nodeType===1?J.ownerDocument.defaultView.getComputedStyle(J,null):{}}function r(J,R,j){if(R=R.toLowerCase(),j==="auto"){if(R==="height")return J.offsetHeight;if(R==="width")return J.offsetWidth}return R in M||(M[R]=L.test(R)),M[R]?parseFloat(j)||0:j}function p(J,R){var j=arguments.length,ie=U(J);return R=Te[R]?"cssFloat"in J.style?"cssFloat":"styleFloat":R,j===1?ie:r(J,R,ie[R]||J.style[R])}function ce(J,R,j){var ie=arguments.length;if(R=Te[R]?"cssFloat"in J.style?"cssFloat":"styleFloat":R,ie===3)return typeof j=="number"&&L.test(R)&&(j="".concat(j,"px")),J.style[R]=j,j;for(var G in R)R.hasOwnProperty(G)&&ce(J,G,R[G]);return U(J)}function se(J){return J===document.body?document.documentElement.clientWidth:J.offsetWidth}function F(J){return J===document.body?window.innerHeight||document.documentElement.clientHeight:J.offsetHeight}function k(){var J=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:J,height:R}}function X(){var J=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:J,height:R}}function re(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function me(J){var R=J.getBoundingClientRect(),j=document.documentElement;return{left:R.left+(window.pageXOffset||j.scrollLeft)-(j.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||j.scrollTop)-(j.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__TrainingProgram__Add.bc7ae86d.async.js b/p__Engineering__Lists__TrainingProgram__Add.bc7ae86d.async.js index 4970dbdd04..325806acbc 100644 --- a/p__Engineering__Lists__TrainingProgram__Add.bc7ae86d.async.js +++ b/p__Engineering__Lists__TrainingProgram__Add.bc7ae86d.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[138,6,8],{"55Ip":function(Te,q,n){"use strict";n.d(q,"a",function(){return F}),n.d(q,"b",function(){return k});var w=n("Ty5D"),x=n("dI71"),fe=n("q1tI"),ce=n.n(fe),H=n("YS25"),o=n("17x9"),le=n.n(o),Y=n("wx14"),R=n("zLVn"),S=n("9R94"),A=function(r){Object(x.a)(a,r);function a(){for(var g,v=arguments.length,$=new Array(v),j=0;j=0||v.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;r.setState({goInputText:""}),f(r.getValidValue())},r.go=function(v){var $=r.state.goInputText;if($==="")return;(v.keyCode===X.ENTER||v.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return Object(H.a)(c,[{key:"getValidValue",value:function(){var a=this.state,b=a.goInputText,g=a.current;return!b||isNaN(b)?g:Number(b)}},{key:"getPageSizeOptions",value:function(){var a=this.props,b=a.pageSize,g=a.pageSizeOptions;return g.some(function(v){return v.toString()===b.toString()})?g:g.concat([b.toString()]).sort(function(v,$){var j=isNaN(Number(v))?0:Number(v),f=isNaN(Number($))?0:Number($);return j-f})}},{key:"render",value:function(){var a=this,b=this.props,g=b.pageSize,v=b.locale,$=b.rootPrefixCls,j=b.changeSize,f=b.quickGo,y=b.goButton,u=b.selectComponentClass,s=b.buildOptionText,h=b.selectPrefixCls,l=b.disabled,d=this.state.goInputText,O="".concat($,"-options"),K=u,G=null,P=null,M=null;if(!j&&!f)return null;var W=this.getPageSizeOptions();if(j&&K){var L=W.map(function(_,oe){return R.a.createElement(K.Option,{key:oe,value:_.toString()},(s||a.buildOptionText)(_))});G=R.a.createElement(K,{disabled:l,prefixCls:h,showSearch:!1,className:"".concat(O,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(g||W[0]).toString(),onChange:this.changeSize,getPopupContainer:function(oe){return oe.parentNode}},L)}return f&&(y&&(M=typeof y=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:l,className:"".concat(O,"-quick-jumper-button")},v.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),P=R.a.createElement("div",{className:"".concat(O,"-quick-jumper")},v.jump_to,R.a.createElement("input",{disabled:l,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,M)),R.a.createElement("li",{className:"".concat(O)},G,P)}}]),c}(R.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=p,z=n("N2Kk");function N(){}function F(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function V(U,k,c){return c}function I(U,k,c){var r=typeof U=="undefined"?k.pageSize:U;return Math.floor((c.total-1)/r)+1}var te=function(U){Object(o.a)(c,U);var k=Object(le.a)(c);function c(r){var a;Object(ce.a)(this,c),a=k.call(this,r),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(I(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(j,f){var y=a.props.prefixCls,u=j||R.a.createElement("button",{type:"button","aria-label":f,className:"".concat(y,"-item-link")});return typeof j=="function"&&(u=R.a.createElement(j,Object(fe.a)({},a.props))),u},a.savePaginationNode=function(j){a.paginationNode=j},a.isValid=function(j){return F(j)&&j!==a.state.current},a.shouldDisplayQuickJumper=function(){var j=a.props,f=j.showQuickJumper,y=j.pageSize,u=j.total;return u<=y?!1:f},a.handleKeyDown=function(j){(j.keyCode===X.ARROW_UP||j.keyCode===X.ARROW_DOWN)&&j.preventDefault()},a.handleKeyUp=function(j){var f=a.getValidValue(j),y=a.state.currentInputValue;f!==y&&a.setState({currentInputValue:f}),j.keyCode===X.ENTER?a.handleChange(f):j.keyCode===X.ARROW_UP?a.handleChange(f-1):j.keyCode===X.ARROW_DOWN&&a.handleChange(f+1)},a.changePageSize=function(j){var f=a.state.current,y=I(j,a.state,a.props);f=f>y?y:f,y===0&&(f=a.state.current),typeof j=="number"&&("pageSize"in a.props||a.setState({pageSize:j}),"current"in a.props||a.setState({current:f,currentInputValue:f})),a.props.onShowSizeChange(f,j),"onChange"in a.props&&a.props.onChange&&a.props.onChange(f,j)},a.handleChange=function(j){var f=a.props.disabled,y=j;if(a.isValid(y)&&!f){var u=I(void 0,a.state,a.props);y>u?y=u:y<1&&(y=1),"current"in a.props||a.setState({current:y,currentInputValue:y});var s=a.state.pageSize;return a.props.onChange(y,s),y}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?y-2:0),s=2;s=g?$=g:$=Number(b),$}},{key:"getShowSizeChanger",value:function(){var a=this.props,b=a.showSizeChanger,g=a.total,v=a.totalBoundaryShowSizeChanger;return typeof b!="undefined"?b:g>v}},{key:"renderPrev",value:function(a){var b=this.props,g=b.prevIcon,v=b.itemRender,$=v(a,"prev",this.getItemIcon(g,"prev page")),j=!this.hasPrev();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"renderNext",value:function(a){var b=this.props,g=b.nextIcon,v=b.itemRender,$=v(a,"next",this.getItemIcon(g,"next page")),j=!this.hasNext();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"render",value:function(){var a=this,b=this.props,g=b.prefixCls,v=b.className,$=b.style,j=b.disabled,f=b.hideOnSinglePage,y=b.total,u=b.locale,s=b.showQuickJumper,h=b.showLessItems,l=b.showTitle,d=b.showTotal,O=b.simple,K=b.itemRender,G=b.showPrevNextJumpers,P=b.jumpPrevIcon,M=b.jumpNextIcon,W=b.selectComponentClass,L=b.selectPrefixCls,_=b.pageSizeOptions,oe=this.state,e=oe.current,i=oe.pageSize,t=oe.currentInputValue;if(f===!0&&y<=i)return null;var E=I(void 0,this.state,this.props),D=[],B=null,ae=null,me=null,xe=null,Ee=null,be=s&&s.goButton,ge=h?1:2,Ke=e-1>0?e-1:0,ze=e+1=ge*2&&e!==1+2&&(D[0]=Object(Y.cloneElement)(D[0],{className:"".concat(g,"-item-after-jump-prev")}),D.unshift(B)),E-e>=ge*2&&e!==E-2&&(D[D.length-1]=Object(Y.cloneElement)(D[D.length-1],{className:"".concat(g,"-item-before-jump-next")}),D.push(ae)),Z!==1&&D.unshift(me),ue!==E&&D.push(xe)}var re=null;d&&(re=R.a.createElement("li",{className:"".concat(g,"-total-text")},d(y,[y===0?0:(e-1)*i+1,e*i>y?y:e*i])));var ne=!this.hasPrev()||!E,ie=!this.hasNext()||!E;return R.a.createElement("ul",Object(w.a)({className:A()(g,v,Object(x.a)({},"".concat(g,"-disabled"),j)),style:$,unselectable:"unselectable",ref:this.savePaginationNode},Fe),re,R.a.createElement("li",{title:l?u.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(g,"-prev"),Object(x.a)({},"".concat(g,"-disabled"),ne)),"aria-disabled":ne},this.renderPrev(Ke)),D,R.a.createElement("li",{title:l?u.next_page:null,onClick:this.next,tabIndex:ie?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(g,"-next"),Object(x.a)({},"".concat(g,"-disabled"),ie)),"aria-disabled":ie},this.renderNext(ze)),R.a.createElement(m,{disabled:j,locale:u,rootPrefixCls:g,selectComponentClass:W,selectPrefixCls:L,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:e,pageSize:i,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:be}))}}],[{key:"getDerivedStateFromProps",value:function(a,b){var g={};if("current"in a&&(g.current=a.current,a.current!==b.current&&(g.currentInputValue=g.current)),"pageSize"in a&&a.pageSize!==b.pageSize){var v=b.current,$=I(a.pageSize,b,a);v=v>$?$:v,"current"in a||(g.current=v,g.currentInputValue=v),g.pageSize=a.pageSize}return g}}]),c}(R.a.Component);te.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:N,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:N,locale:z.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var T=te},"6RRn":function(Te,q,n){"use strict";var w=n("wCXF"),x=n("n6Qo");n.d(q,"b",function(){return x.a});var fe=n("IBYe"),ce=n("6eGT"),H=n("hW8S");n.d(q,"a",function(){return H.a}),q.c=w.b},"6eGT":function(Te,q,n){"use strict";function w(x){return null}q.a=w},"815F":function(Te,q,n){"use strict";n.d(q,"e",function(){return le}),n.d(q,"c",function(){return R}),n.d(q,"d",function(){return S}),n.d(q,"a",function(){return Q}),n.d(q,"f",function(){return ee}),n.d(q,"b",function(){return X});var w=n("KQm4"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("Zm9Q"),H=n("Kwbf"),o=n("OZM5");function le(p,m){return p!=null?p:m}function Y(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function z(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(V){var I=V.key,te=V.children;Object(H.a)(I!=null,"Tree node must have a certain key: [".concat(F).concat(I,"]"));var T=String(I);Object(H.a)(!m.has(T)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(T)),m.set(T,!0),z(te,"".concat(F).concat(T," > "))})}z(p)}function R(p){function m(z){var N=Object(ce.a)(z);return N.map(function(F){if(!Object(o.i)(F))return Object(H.a)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var V=F.key,I=F.props,te=I.children,T=Object(fe.a)(I,["children"]),U=Object(x.a)({key:V},T),k=m(te);return k.length&&(U.children=k),U}).filter(function(F){return F})}return m(p)}function S(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(m===!0?[]:m),N=[];function F(V){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(te,T){var U=Object(o.h)(I?I.pos:"0",T),k=le(te.key,U),c=Object(x.a)(Object(x.a)({},te),{},{parent:I,pos:U,children:null,data:te,isStart:[].concat(Object(w.a)(I?I.isStart:[]),[T===0]),isEnd:[].concat(Object(w.a)(I?I.isEnd:[]),[T===V.length-1])});return N.push(c),m===!0||z.has(k)?c.children=F(te.children||[],c):c.children=[],c})}return F(p),N}function A(p,m,z){var N;z?typeof z=="string"?N=function(I){return I[z]}:typeof z=="function"&&(N=function(I){return z(I)}):N=function(I,te){return le(I.key,te)};function F(V,I,te){var T=V?V.children:p,U=V?Object(o.h)(te.pos,I):"0";if(V){var k=N(V,U),c={node:V,index:I,pos:U,key:k,parentPos:te.node?te.pos:null,level:te.level+1};m(c)}T&&T.forEach(function(r,a){F(r,a,{node:V,pos:U,level:te?te.level+1:-1})})}F(null)}function Q(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=m.initWrapper,N=m.processEntity,F=m.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,I={},te={},T={posEntities:I,keyEntities:te};return z&&(T=z(T)||T),A(p,function(U){var k=U.node,c=U.index,r=U.pos,a=U.key,b=U.parentPos,g=U.level,v={node:k,index:c,key:a,pos:r,level:g},$=le(a,r);I[r]=v,te[$]=v,v.parent=I[b],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),N&&N(v,T)},V),F&&F(T),T}function ee(p,m){var z=m.expandedKeys,N=m.selectedKeys,F=m.loadedKeys,V=m.loadingKeys,I=m.checkedKeys,te=m.halfCheckedKeys,T=m.dragOverNodeKey,U=m.dropPosition,k=m.keyEntities,c=k[p],r={eventKey:p,expanded:z.indexOf(p)!==-1,selected:N.indexOf(p)!==-1,loaded:F.indexOf(p)!==-1,loading:V.indexOf(p)!==-1,checked:I.indexOf(p)!==-1,halfChecked:te.indexOf(p)!==-1,pos:String(c?c.pos:""),dragOver:T===p&&U===0,dragOverGapTop:T===p&&U===-1,dragOverGapBottom:T===p&&U===1};return r}function X(p){var m=p.data,z=p.expanded,N=p.selected,F=p.checked,V=p.loaded,I=p.loading,te=p.halfChecked,T=p.dragOver,U=p.dragOverGapTop,k=p.dragOverGapBottom,c=p.pos,r=p.active,a=Object(x.a)(Object(x.a)({},m),{},{expanded:z,selected:N,checked:F,loaded:V,loading:I,halfChecked:te,dragOver:T,dragOverGapTop:U,dragOverGapBottom:k,pos:c,active:r});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(H.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),p}}),a}},BfvP:function(Te,q,n){"use strict";n.r(q);var w=n("2qtc"),x=n("kLXV"),fe=n("g9YV"),ce=n("wCAj"),H=n("k1fw"),o=n("DZo9"),le=n("8z0m"),Y=n("14J3"),R=n("BMrR"),S=n("+L6B"),A=n("2/Rp"),Q=n("jCWc"),ee=n("kPKH"),X=n("5NDa"),p=n("5rEg"),m=n("OaEy"),z=n("2fM7"),N=n("/zsF"),F=n("PArb"),V=n("sPJy"),I=n("bE4q"),te=n("miYZ"),T=n("tsqr"),U=n("9og8"),k=n("y8nQ"),c=n("Vl3Y"),r=n("tJVT"),a=n("WmNS"),b=n.n(a),g=n("q1tI"),v=n.n(g),$=n("gvAy"),j=n.n($),f=n("55Ip"),y=n("9kvl"),u=n("ErOA"),s=function(l){var d,O=l.user,K={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,category:1,sort_by:null,sort_direction:null,school_id:null},G=Object(g.useState)(K),P=Object(r.a)(G,2),M=P[0],W=P[1],L=Object(g.useState)(!0),_=Object(r.a)(L,2),oe=_[0],e=_[1],i=Object(g.useState)([]),t=Object(r.a)(i,2),E=t[0],D=t[1],B=Object(g.useState)([]),ae=Object(r.a)(B,2),me=ae[0],xe=ae[1],Ee=Object(g.useState)([]),be=Object(r.a)(Ee,2),ge=be[0],Ke=be[1],ze=Object(g.useState)(!1),Fe=Object(r.a)(ze,2),Ye=Fe[0],He=Fe[1],rt=Object(g.useState)(),C=Object(r.a)(rt,2),J=C[0],Z=C[1],ue=Object(g.useState)(),he=Object(r.a)(ue,2),se=he[0],re=he[1],ne=c.a.useForm(),ie=Object(r.a)(ne,1),pe=ie[0],de=Object(g.useState)(),ve=Object(r.a)(de,2),Oe=ve[0],ye=ve[1],Se=Object(g.useState)([]),Ie=Object(r.a)(Se,2),De=Ie[0],we=Ie[1];Object(g.useEffect)(function(){var Ce;(Ce=O.userInfo)!==null&&Ce!==void 0&&Ce.school_id&&(je(),We())},[O==null||((d=O.userInfo)===null||d===void 0)?void 0:d.school_id]);function je(Ce){return $e.apply(this,arguments)}function $e(){return $e=Object(U.a)(b.a.mark(function Ce(Re){var Ae,Pe;return b.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ye(Object(H.a)({},Re)),_e.next=3,Object(u.a)("/api/schools/".concat(O==null||((Ae=O.userInfo)===null||Ae===void 0)?void 0:Ae.school_id,"/ec_majors.json"),{method:"get",params:Object(H.a)({per_page:1e4},Re)});case 3:Pe=_e.sent,xe(Pe==null?void 0:Pe.ec_majors);case 5:case"end":return _e.stop()}},Ce)})),$e.apply(this,arguments)}function We(){return ke.apply(this,arguments)}function ke(){return ke=Object(U.a)(b.a.mark(function Ce(){var Re;return b.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,Object(u.a)("/api/ec_major_schools/1/ec_years/select_year.json",{method:"get"});case 2:Re=Pe.sent,Ke(Re==null?void 0:Re.year_arr);case 4:case"end":return Pe.stop()}},Ce)})),ke.apply(this,arguments)}var Ve=[{title:"\u4E13\u4E1A\u4EE3\u7801",dataIndex:"code",key:"code"},{title:"\u4E13\u4E1A\u540D\u79F0",dataIndex:"name",key:"name"}],Je={onRemove:function(){we([])},beforeUpload:function(Re){if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return T.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var Ae=[];return Ae.push(Re),we([].concat(Ae)),!1},fileList:De};return v.a.createElement("div",{className:j.a.wrap},v.a.createElement(I.a,{separator:"",style:{padding:"20px"}},v.a.createElement(I.a.Item,null,v.a.createElement(f.a,{to:"/engineering/trainingProgram"},"\u57F9\u517B\u65B9\u6848")),v.a.createElement(I.a.Separator,null,">>"),v.a.createElement(I.a.Item,null,"\u65B0\u589E\u57F9\u517B\u65B9\u6848")),v.a.createElement("div",{className:j.a.title},"\u57F9\u517B\u65B9\u6848\u4FE1\u606F"),v.a.createElement(F.a,{style:{padding:"0px 20px"}}),v.a.createElement("div",{style:{paddingTop:"50px"}},v.a.createElement(c.a,{form:pe,labelCol:{span:8},wrapperCol:{span:8}},v.a.createElement(c.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"year",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},v.a.createElement(z.a,null,ge==null?void 0:ge.map(function(Ce,Re){return v.a.createElement(z.a.Option,{value:Ce},Ce,"\u5C4A")}))),v.a.createElement(c.a.Item,{label:v.a.createElement("div",null,v.a.createElement("span",{style:{marginRight:"4px",color:"#ff4d4f"}},"*"),v.a.createElement("label",null,"\u8BA4\u8BC1\u4E13\u4E1A"))},v.a.createElement(R.a,{gutter:12,style:{flexFlow:"initial",flexDirection:"row-reverse"},className:j.a.rowFrom},v.a.createElement(ee.a,{span:16},v.a.createElement(c.a.Item,{name:"major_id"},v.a.createElement(p.a,{style:{color:"#000"},disabled:!0,bordered:!1}))),v.a.createElement(ee.a,{span:8},v.a.createElement(A.a,{onClick:function(){He(!0),re(J||"")}},"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A")))),v.a.createElement(c.a.Item,{label:"\u57F9\u517B\u65B9\u6848\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{max:60,message:"\u57F9\u517B\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u8D85\u8FC760\u4E2A\u5B57"}]},v.a.createElement(p.a,{placeholder:"\u4F8B\u5982\uFF1A2021\u7EA7\u8BA1\u7B97\u673A\u79D1\u5B66\u4E0E\u6280\u672F\u4E13\u4E1A\u672C\u79D1\u6280\u672F\u4EBA\u624D\u57F9\u517B\u65B9\u6848"})),v.a.createElement(R.a,null,v.a.createElement(ee.a,{span:8,style:{justifyContent:"end",display:"flex",marginTop:"2px"}},v.a.createElement("label",null,"\u57F9\u517B\u65B9\u6848\u6587\u4EF6\uFF1A")),v.a.createElement(ee.a,{span:8},v.a.createElement(le.a,Je,v.a.createElement(A.a,null,"\u4E0A\u4F20\u6587\u4EF6")))))),v.a.createElement("div",{style:{textAlign:"end",paddingRight:"30px"}},v.a.createElement(A.a,{onClick:function(){y.d.push("/engineering/trainingProgram")}},"\u8FD4\u56DE"),v.a.createElement(A.a,{onClick:Object(U.a)(b.a.mark(function Ce(){var Re,Ae,Pe,Le;return b.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return pe.submit(),Ue.next=3,pe.validateFields();case 3:if(Ae=pe.getFieldsValue(),J){Ue.next=7;break}return T.b.info("\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"),Ue.abrupt("return");case 7:if(!(!Ae.name||!Ae.year)){Ue.next=9;break}return Ue.abrupt("return");case 9:return Pe=new FormData,De.length>0&&Pe.append("file",De[0]),Pe.append("school_id",O==null||((Re=O.userInfo)===null||Re===void 0)?void 0:Re.school_id),Pe.append("major_id",J),Pe.append("name",Ae.name),Pe.append("year",Ae.year),Ue.next=17,Object(u.a)("/api/ec_major_schools/1/ec_years.json",{method:"post",body:Pe},!0);case 17:Le=Ue.sent,(Le==null?void 0:Le.status)===0&&(T.b.info("\u6DFB\u52A0\u6210\u529F"),y.d.push("/engineering/trainingProgram"));case 19:case"end":return Ue.stop()}},Ce)})),style:{marginLeft:"10px"},type:"primary"},"\u4FDD\u5B58")),v.a.createElement(x.a,{title:"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",centered:!0,visible:Ye,onCancel:function(){He(!1),re("")},onOk:function(){var Re,Ae;He(!1),Z(se),pe.setFieldsValue({major_id:me==null||((Re=me.filter(function(Pe){return Pe.id===parseInt(se)}))===null||Re===void 0||((Ae=Re[0])===null||Ae===void 0))?void 0:Ae.name})}},v.a.createElement("div",{style:{display:"flex",marginBottom:"10px",alignItems:"center",justifyContent:"space-between"}},v.a.createElement(p.a.Search,{style:{width:"300px"},onSearch:function(Re){je(Object(H.a)(Object(H.a)({},Oe),{},{search:Re}))},placeholder:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u4EE3\u7801\u6216\u540D\u79F0"})),v.a.createElement(ce.a,{dataSource:me,columns:Ve,pagination:!1,rowKey:function(Re){return Re.id},scroll:{y:300},rowSelection:{type:"radio",onChange:function(Re,Ae){re(Re)},selectedRowKeys:se}})))};q.default=Object(y.a)(function(h){var l=h.user;return{user:l}})(s)},GfqC:function(Te,q,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe);function H(u,s){var h="cannot "+u.method+" "+u.action+" "+s.status+"'",l=new Error(h);return l.status=s.status,l.method=u.method,l.url=u.action,l}function o(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(h){return s}}function le(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(O){O.total>0&&(O.percent=O.loaded/O.total*100),u.onProgress(O)});var h=new FormData;u.data&&Object.keys(u.data).forEach(function(d){var O=u.data[d];if(Array.isArray(O)){O.forEach(function(K){h.append(d+"[]",K)});return}h.append(d,u.data[d])}),u.file instanceof Blob?h.append(u.filename,u.file,u.file.name):h.append(u.filename,u.file),s.onerror=function(O){u.onError(O)},s.onload=function(){return s.status<200||s.status>=300?u.onError(H(u,s),o(s)):u.onSuccess(o(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var l=u.headers||{};return l["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(function(d){l[d]!==null&&s.setRequestHeader(d,l[d])}),s.send(h),{abort:function(){s.abort()}}}var Y=+new Date,R=0;function S(){return"rc-upload-"+Y+"-"+ ++R}function A(u,s){return u.indexOf(s,u.length-s.length)!==-1}var Q=function(u,s){if(u&&s){var h=Array.isArray(s)?s:s.split(","),l=u.name||"",d=u.type||"",O=d.replace(/\/.*$/,"");return h.some(function(K){var G=K.trim();return G.charAt(0)==="."?A(l.toLowerCase(),G.toLowerCase()):/\/\*$/.test(G)?O===G.replace(/\/.*$/,""):d===G})}return!0};function ee(u,s){var h=u.createReader(),l=[];function d(){h.readEntries(function(O){var K=Array.prototype.slice.apply(O);l=l.concat(K);var G=!K.length;G?s(l):d()})}d()}var X=function(s,h,l){var d=function O(K,G){G=G||"",K.isFile?K.file(function(P){l(P)&&(K.fullPath&&!P.webkitRelativePath&&(Object.defineProperties(P,{webkitRelativePath:{writable:!0}}),P.webkitRelativePath=K.fullPath.replace(/^\//,""),Object.defineProperties(P,{webkitRelativePath:{writable:!1}})),h([P]))}):K.isDirectory&&ee(K,function(P){P.forEach(function(M){O(M,""+G+K.name+"/")})})};s.forEach(function(O){d(O.webkitGetAsEntry())})},p=X,m=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,l))continue;h[l]=u[l]}return h}function I(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function te(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function T(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var U=function(s){return Object.keys(s).reduce(function(h,l){return(l.substr(0,5)==="data-"||l.substr(0,5)==="aria-"||l==="role")&&(h[l]=s[l]),h},{})},k=function(u){T(s,u);function s(){var h,l,d,O;I(this,s);for(var K=arguments.length,G=Array(K),P=0;P1&&arguments[1]!==void 0?arguments[1]:1,ie=ge.length,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(h).map(function(d,O){if(!H.isValidElement(d)||!d.type)return null;var K=d.type.isSelectOptGroup,G=d.key,P=d.props,M=P.children,W=Object(le.a)(P,["children"]);return l||!K?k(d):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(G===null?O:G,"__"),label:G},W),{},{options:c(M)})}).filter(function(d){return d})}var r=n("2Qr1"),a=n("qNPg"),b=n("U8pU"),g=n("Kwbf"),v=n("WKfj");function $(h){var l=h.mode,d=h.options,O=h.children,K=h.backfill,G=h.allowClear,P=h.placeholder,M=h.getInputElement,W=h.showSearch,L=h.onSearch,_=h.defaultOpen,oe=h.autoFocus,e=h.labelInValue,i=h.value,t=h.inputValue,E=h.optionLabelProp,D=l==="multiple"||l==="tags",B=W!==void 0?W:D||l==="combobox",ae=d||c(O);if(Object(g.a)(l!=="tags"||ae.every(function(be){return!be.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),l==="tags"||l==="combobox"){var me=ae.some(function(be){return be.options?be.options.some(function(ge){return typeof("value"in ge?ge.value:ge.key)=="number"}):typeof("value"in be?be.value:be.key)=="number"});Object(g.a)(!me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(g.a)(l!=="combobox"||!E,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(g.a)(l==="combobox"||!K,"`backfill` only works with `combobox` mode."),Object(g.a)(l==="combobox"||!M,"`getInputElement` only work with `combobox` mode."),Object(g.b)(l!=="combobox"||!M||!G||!P,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),L&&!B&&l!=="combobox"&&l!=="tags"&&Object(g.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(g.b)(!_||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),i!=null){var xe=Object(v.d)(i);Object(g.a)(!e||xe.every(function(be){return Object(b.a)(be)==="object"&&("key"in be||"value"in be)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(g.a)(!D||Array.isArray(i),"`value` should be array when `mode` is `multiple` or `tags`")}if(O){var Ee=null;Object(U.a)(O).some(function(be){if(!H.isValidElement(be)||!be.type)return!1;var ge=be.type;if(ge.isSelectOption)return!1;if(ge.isSelectOptGroup){var Ke=Object(U.a)(be.props.children).every(function(ze){return!H.isValidElement(ze)||!be.type||ze.type.isSelectOption?!0:(Ee=ze.type,!1)});return!Ke}return Ee=ge,!0}),Ee&&Object(g.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ee.displayName||Ee.name||Ee,"`.")),Object(g.a)(t===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=$,f=Object(a.a)({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:c,flattenOptions:r.d,getLabeledValue:r.e,filterOptions:r.b,isValueDisabled:r.g,findValueOption:r.c,warningProps:j,fillOptionsWithMissingValue:r.a}),y=function(h){Object(fe.a)(d,h);var l=Object(ce.a)(d);function d(){var O;return Object(w.a)(this,d),O=l.apply(this,arguments),O.selectRef=H.createRef(),O.focus=function(){O.selectRef.current.focus()},O.blur=function(){O.selectRef.current.blur()},O}return Object(x.a)(d,[{key:"render",value:function(){return H.createElement(f,Object.assign({ref:this.selectRef},this.props))}}]),d}(H.Component);y.Option=V,y.OptGroup=te;var u=y,s=q.c=u},NvD2:function(Te,q,n){"use strict";n.d(q,"a",function(){return o});var w=n("Kwbf");function x(le,Y){var R=new Set;return le.forEach(function(S){Y.has(S)||R.add(S)}),R}function fe(le){var Y=le||{},R=Y.disabled,S=Y.disableCheckbox,A=Y.checkable;return!!(R||S)||A===!1}function ce(le,Y,R,S){for(var A=new Set(le),Q=new Set,ee=0;ee<=R;ee+=1){var X=Y.get(ee)||new Set;X.forEach(function(N){var F=N.key,V=N.node,I=N.children,te=I===void 0?[]:I;A.has(F)&&!S(V)&&te.filter(function(T){return!S(T.node)}).forEach(function(T){A.add(T.key)})})}for(var p=new Set,m=R;m>=0;m-=1){var z=Y.get(m)||new Set;z.forEach(function(N){var F=N.parent,V=N.node;if(S(V)||!N.parent||p.has(N.parent.key))return;if(S(N.parent.node)){p.add(F.key);return}var I=!0,te=!1;(F.children||[]).filter(function(T){return!S(T.node)}).forEach(function(T){var U=T.key,k=A.has(U);I&&!k&&(I=!1),!te&&(k||Q.has(U))&&(te=!0)}),I&&A.add(F.key),te&&Q.add(F.key),p.add(F.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(x(Q,A))}}function H(le,Y,R,S,A){for(var Q=new Set(le),ee=new Set(Y),X=0;X<=S;X+=1){var p=R.get(X)||new Set;p.forEach(function(F){var V=F.key,I=F.node,te=F.children,T=te===void 0?[]:te;!Q.has(V)&&!ee.has(V)&&!A(I)&&T.filter(function(U){return!A(U.node)}).forEach(function(U){Q.delete(U.key)})})}ee=new Set;for(var m=new Set,z=S;z>=0;z-=1){var N=R.get(z)||new Set;N.forEach(function(F){var V=F.parent,I=F.node;if(A(I)||!F.parent||m.has(F.parent.key))return;if(A(F.parent.node)){m.add(V.key);return}var te=!0,T=!1;(V.children||[]).filter(function(U){return!A(U.node)}).forEach(function(U){var k=U.key,c=Q.has(k);te&&!c&&(te=!1),!T&&(c||ee.has(k))&&(T=!0)}),te||Q.delete(V.key),T&&ee.add(V.key),m.add(V.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(x(ee,Q))}}function o(le,Y,R,S){var A=[],Q;S?Q=S:Q=fe;var ee=new Set(le.filter(function(z){var N=!!R[z];return N||A.push(z),N})),X=new Map,p=0;Object.keys(R).forEach(function(z){var N=R[z],F=N.level,V=X.get(F);V||(V=new Set,X.set(F,V)),V.add(N),p=Math.max(p,F)}),Object(w.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var m;return Y===!0?m=ce(ee,X,p,Q):m=H(ee,Y.halfCheckedKeys,X,p,Q),m}},OZM5:function(Te,q,n){"use strict";n.d(q,"b",function(){return S}),n.d(q,"a",function(){return A}),n.d(q,"k",function(){return Q}),n.d(q,"h",function(){return ee}),n.d(q,"i",function(){return X}),n.d(q,"g",function(){return p}),n.d(q,"c",function(){return m}),n.d(q,"d",function(){return z}),n.d(q,"j",function(){return V}),n.d(q,"e",function(){return I}),n.d(q,"f",function(){return te});var w=n("KQm4"),x=n("U8pU"),fe=n("Ff2n"),ce=n("q1tI"),H=n.n(ce),o=n("Kwbf"),le=n("WaYH"),Y=.25,R=2;function S(T,U){var k=T.slice(),c=k.indexOf(U);return c>=0&&k.splice(c,1),k}function A(T,U){var k=T.slice();return k.indexOf(U)===-1&&k.push(U),k}function Q(T){return T.split("-")}function ee(T,U){return"".concat(T,"-").concat(U)}function X(T){return T&&T.type&&T.type.isTreeNode}function p(T,U){var k=[T],c=U[T];function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(b){var g=b.key,v=b.children;k.push(g),r(v)})}return r(c.children),k}function m(T,U){var k=T.clientY,c=U.selectHandle.getBoundingClientRect(),r=c.top,a=c.bottom,b=c.height,g=Math.max(b*Y,R);return k<=r+g?-1:k>=a-g?1:0}function z(T,U){if(!T)return;var k=U.multiple;return k?T.slice():T.length?[T[0]]:T}var N=function(U){return U};function F(T,U){if(!T)return[];var k=U||{},c=k.processProps,r=c===void 0?N:c,a=Array.isArray(T)?T:[T];return a.map(function(b){var g=b.children,v=Object(fe.a)(b,["children"]),$=F(g,U);return H.a.createElement(le.a,Object.assign({},r(v)),$)})}function V(T){if(!T)return null;var U;if(Array.isArray(T))U={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(x.a)(T)==="object")U={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function I(T,U){var k=new Set;function c(r){if(k.has(r))return;var a=U[r];if(!a)return;k.add(r);var b=a.parent,g=a.node;if(g.disabled)return;b&&c(b.key)}return(T||[]).forEach(function(r){c(r)}),Object(w.a)(k)}function te(T){var U={};return Object.keys(T).forEach(function(k){(k.startsWith("data-")||k.startsWith("aria-"))&&(U[k]=T[k])}),U}},"SA+Z":function(Te,q,n){var w=n("wTVA"),x=n("EbDI"),fe=n("ZhPi"),ce=n("wkBT");function H(o){return w(o)||x(o)||fe(o)||ce()}Te.exports=H,Te.exports.__esModule=!0,Te.exports.default=Te.exports},WaYH:function(Te,q,n){"use strict";var w=n("rePB"),x=n("Ff2n"),fe=n("VTBJ"),ce=n("1OyB"),H=n("vuIU"),o=n("JX7q"),le=n("Ji7U"),Y=n("LK+K"),R=n("q1tI"),S=n("TSYQ"),A=n.n(S),Q=n("sboe"),ee=n("OZM5"),X=function(U){var k=U.prefixCls,c=U.level,r=U.isStart,a=U.isEnd;if(!c)return null;for(var b="".concat(k,"-indent-unit"),g=[],v=0;v=0||v.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;r.setState({goInputText:""}),f(r.getValidValue())},r.go=function(v){var $=r.state.goInputText;if($==="")return;(v.keyCode===X.ENTER||v.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return Object(H.a)(c,[{key:"getValidValue",value:function(){var a=this.state,b=a.goInputText,g=a.current;return!b||isNaN(b)?g:Number(b)}},{key:"getPageSizeOptions",value:function(){var a=this.props,b=a.pageSize,g=a.pageSizeOptions;return g.some(function(v){return v.toString()===b.toString()})?g:g.concat([b.toString()]).sort(function(v,$){var j=isNaN(Number(v))?0:Number(v),f=isNaN(Number($))?0:Number($);return j-f})}},{key:"render",value:function(){var a=this,b=this.props,g=b.pageSize,v=b.locale,$=b.rootPrefixCls,j=b.changeSize,f=b.quickGo,y=b.goButton,u=b.selectComponentClass,s=b.buildOptionText,h=b.selectPrefixCls,l=b.disabled,d=this.state.goInputText,O="".concat($,"-options"),K=u,G=null,P=null,M=null;if(!j&&!f)return null;var W=this.getPageSizeOptions();if(j&&K){var L=W.map(function(_,oe){return R.a.createElement(K.Option,{key:oe,value:_.toString()},(s||a.buildOptionText)(_))});G=R.a.createElement(K,{disabled:l,prefixCls:h,showSearch:!1,className:"".concat(O,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(g||W[0]).toString(),onChange:this.changeSize,getPopupContainer:function(oe){return oe.parentNode}},L)}return f&&(y&&(M=typeof y=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:l,className:"".concat(O,"-quick-jumper-button")},v.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),P=R.a.createElement("div",{className:"".concat(O,"-quick-jumper")},v.jump_to,R.a.createElement("input",{disabled:l,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,M)),R.a.createElement("li",{className:"".concat(O)},G,P)}}]),c}(R.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=p,z=n("N2Kk");function N(){}function F(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function V(U,k,c){return c}function I(U,k,c){var r=typeof U=="undefined"?k.pageSize:U;return Math.floor((c.total-1)/r)+1}var te=function(U){Object(o.a)(c,U);var k=Object(le.a)(c);function c(r){var a;Object(ce.a)(this,c),a=k.call(this,r),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(I(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(j,f){var y=a.props.prefixCls,u=j||R.a.createElement("button",{type:"button","aria-label":f,className:"".concat(y,"-item-link")});return typeof j=="function"&&(u=R.a.createElement(j,Object(fe.a)({},a.props))),u},a.savePaginationNode=function(j){a.paginationNode=j},a.isValid=function(j){return F(j)&&j!==a.state.current},a.shouldDisplayQuickJumper=function(){var j=a.props,f=j.showQuickJumper,y=j.pageSize,u=j.total;return u<=y?!1:f},a.handleKeyDown=function(j){(j.keyCode===X.ARROW_UP||j.keyCode===X.ARROW_DOWN)&&j.preventDefault()},a.handleKeyUp=function(j){var f=a.getValidValue(j),y=a.state.currentInputValue;f!==y&&a.setState({currentInputValue:f}),j.keyCode===X.ENTER?a.handleChange(f):j.keyCode===X.ARROW_UP?a.handleChange(f-1):j.keyCode===X.ARROW_DOWN&&a.handleChange(f+1)},a.changePageSize=function(j){var f=a.state.current,y=I(j,a.state,a.props);f=f>y?y:f,y===0&&(f=a.state.current),typeof j=="number"&&("pageSize"in a.props||a.setState({pageSize:j}),"current"in a.props||a.setState({current:f,currentInputValue:f})),a.props.onShowSizeChange(f,j),"onChange"in a.props&&a.props.onChange&&a.props.onChange(f,j)},a.handleChange=function(j){var f=a.props.disabled,y=j;if(a.isValid(y)&&!f){var u=I(void 0,a.state,a.props);y>u?y=u:y<1&&(y=1),"current"in a.props||a.setState({current:y,currentInputValue:y});var s=a.state.pageSize;return a.props.onChange(y,s),y}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?y-2:0),s=2;s=g?$=g:$=Number(b),$}},{key:"getShowSizeChanger",value:function(){var a=this.props,b=a.showSizeChanger,g=a.total,v=a.totalBoundaryShowSizeChanger;return typeof b!="undefined"?b:g>v}},{key:"renderPrev",value:function(a){var b=this.props,g=b.prevIcon,v=b.itemRender,$=v(a,"prev",this.getItemIcon(g,"prev page")),j=!this.hasPrev();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"renderNext",value:function(a){var b=this.props,g=b.nextIcon,v=b.itemRender,$=v(a,"next",this.getItemIcon(g,"next page")),j=!this.hasNext();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"render",value:function(){var a=this,b=this.props,g=b.prefixCls,v=b.className,$=b.style,j=b.disabled,f=b.hideOnSinglePage,y=b.total,u=b.locale,s=b.showQuickJumper,h=b.showLessItems,l=b.showTitle,d=b.showTotal,O=b.simple,K=b.itemRender,G=b.showPrevNextJumpers,P=b.jumpPrevIcon,M=b.jumpNextIcon,W=b.selectComponentClass,L=b.selectPrefixCls,_=b.pageSizeOptions,oe=this.state,e=oe.current,i=oe.pageSize,t=oe.currentInputValue;if(f===!0&&y<=i)return null;var E=I(void 0,this.state,this.props),D=[],B=null,ae=null,me=null,xe=null,Ee=null,be=s&&s.goButton,ge=h?1:2,Ke=e-1>0?e-1:0,ze=e+1=ge*2&&e!==1+2&&(D[0]=Object(Y.cloneElement)(D[0],{className:"".concat(g,"-item-after-jump-prev")}),D.unshift(B)),E-e>=ge*2&&e!==E-2&&(D[D.length-1]=Object(Y.cloneElement)(D[D.length-1],{className:"".concat(g,"-item-before-jump-next")}),D.push(ae)),Z!==1&&D.unshift(me),ue!==E&&D.push(xe)}var re=null;d&&(re=R.a.createElement("li",{className:"".concat(g,"-total-text")},d(y,[y===0?0:(e-1)*i+1,e*i>y?y:e*i])));var ne=!this.hasPrev()||!E,ie=!this.hasNext()||!E;return R.a.createElement("ul",Object(w.a)({className:S()(g,v,Object(x.a)({},"".concat(g,"-disabled"),j)),style:$,unselectable:"unselectable",ref:this.savePaginationNode},Fe),re,R.a.createElement("li",{title:l?u.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:S()("".concat(g,"-prev"),Object(x.a)({},"".concat(g,"-disabled"),ne)),"aria-disabled":ne},this.renderPrev(Ke)),D,R.a.createElement("li",{title:l?u.next_page:null,onClick:this.next,tabIndex:ie?null:0,onKeyPress:this.runIfEnterNext,className:S()("".concat(g,"-next"),Object(x.a)({},"".concat(g,"-disabled"),ie)),"aria-disabled":ie},this.renderNext(ze)),R.a.createElement(m,{disabled:j,locale:u,rootPrefixCls:g,selectComponentClass:W,selectPrefixCls:L,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:e,pageSize:i,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:be}))}}],[{key:"getDerivedStateFromProps",value:function(a,b){var g={};if("current"in a&&(g.current=a.current,a.current!==b.current&&(g.currentInputValue=g.current)),"pageSize"in a&&a.pageSize!==b.pageSize){var v=b.current,$=I(a.pageSize,b,a);v=v>$?$:v,"current"in a||(g.current=v,g.currentInputValue=v),g.pageSize=a.pageSize}return g}}]),c}(R.a.Component);te.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:N,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:N,locale:z.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var A=te},"6RRn":function(Ae,q,n){"use strict";var w=n("wCXF"),x=n("n6Qo");n.d(q,"b",function(){return x.a});var fe=n("IBYe"),ce=n("6eGT"),H=n("hW8S");n.d(q,"a",function(){return H.a}),q.c=w.b},"6eGT":function(Ae,q,n){"use strict";function w(x){return null}q.a=w},"815F":function(Ae,q,n){"use strict";n.d(q,"e",function(){return le}),n.d(q,"c",function(){return R}),n.d(q,"d",function(){return T}),n.d(q,"a",function(){return Q}),n.d(q,"f",function(){return ee}),n.d(q,"b",function(){return X});var w=n("KQm4"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("Zm9Q"),H=n("Kwbf"),o=n("OZM5");function le(p,m){return p!=null?p:m}function Y(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function z(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(V){var I=V.key,te=V.children;Object(H.a)(I!=null,"Tree node must have a certain key: [".concat(F).concat(I,"]"));var A=String(I);Object(H.a)(!m.has(A)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(A)),m.set(A,!0),z(te,"".concat(F).concat(A," > "))})}z(p)}function R(p){function m(z){var N=Object(ce.a)(z);return N.map(function(F){if(!Object(o.i)(F))return Object(H.a)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var V=F.key,I=F.props,te=I.children,A=Object(fe.a)(I,["children"]),U=Object(x.a)({key:V},A),k=m(te);return k.length&&(U.children=k),U}).filter(function(F){return F})}return m(p)}function T(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(m===!0?[]:m),N=[];function F(V){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(te,A){var U=Object(o.h)(I?I.pos:"0",A),k=le(te.key,U),c=Object(x.a)(Object(x.a)({},te),{},{parent:I,pos:U,children:null,data:te,isStart:[].concat(Object(w.a)(I?I.isStart:[]),[A===0]),isEnd:[].concat(Object(w.a)(I?I.isEnd:[]),[A===V.length-1])});return N.push(c),m===!0||z.has(k)?c.children=F(te.children||[],c):c.children=[],c})}return F(p),N}function S(p,m,z){var N;z?typeof z=="string"?N=function(I){return I[z]}:typeof z=="function"&&(N=function(I){return z(I)}):N=function(I,te){return le(I.key,te)};function F(V,I,te){var A=V?V.children:p,U=V?Object(o.h)(te.pos,I):"0";if(V){var k=N(V,U),c={node:V,index:I,pos:U,key:k,parentPos:te.node?te.pos:null,level:te.level+1};m(c)}A&&A.forEach(function(r,a){F(r,a,{node:V,pos:U,level:te?te.level+1:-1})})}F(null)}function Q(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=m.initWrapper,N=m.processEntity,F=m.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,I={},te={},A={posEntities:I,keyEntities:te};return z&&(A=z(A)||A),S(p,function(U){var k=U.node,c=U.index,r=U.pos,a=U.key,b=U.parentPos,g=U.level,v={node:k,index:c,key:a,pos:r,level:g},$=le(a,r);I[r]=v,te[$]=v,v.parent=I[b],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),N&&N(v,A)},V),F&&F(A),A}function ee(p,m){var z=m.expandedKeys,N=m.selectedKeys,F=m.loadedKeys,V=m.loadingKeys,I=m.checkedKeys,te=m.halfCheckedKeys,A=m.dragOverNodeKey,U=m.dropPosition,k=m.keyEntities,c=k[p],r={eventKey:p,expanded:z.indexOf(p)!==-1,selected:N.indexOf(p)!==-1,loaded:F.indexOf(p)!==-1,loading:V.indexOf(p)!==-1,checked:I.indexOf(p)!==-1,halfChecked:te.indexOf(p)!==-1,pos:String(c?c.pos:""),dragOver:A===p&&U===0,dragOverGapTop:A===p&&U===-1,dragOverGapBottom:A===p&&U===1};return r}function X(p){var m=p.data,z=p.expanded,N=p.selected,F=p.checked,V=p.loaded,I=p.loading,te=p.halfChecked,A=p.dragOver,U=p.dragOverGapTop,k=p.dragOverGapBottom,c=p.pos,r=p.active,a=Object(x.a)(Object(x.a)({},m),{},{expanded:z,selected:N,checked:F,loaded:V,loading:I,halfChecked:te,dragOver:A,dragOverGapTop:U,dragOverGapBottom:k,pos:c,active:r});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(H.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),p}}),a}},BfvP:function(Ae,q,n){"use strict";n.r(q);var w=n("2qtc"),x=n("kLXV"),fe=n("g9YV"),ce=n("wCAj"),H=n("k1fw"),o=n("DZo9"),le=n("8z0m"),Y=n("14J3"),R=n("BMrR"),T=n("+L6B"),S=n("2/Rp"),Q=n("jCWc"),ee=n("kPKH"),X=n("5NDa"),p=n("5rEg"),m=n("OaEy"),z=n("2fM7"),N=n("/zsF"),F=n("PArb"),V=n("sPJy"),I=n("bE4q"),te=n("miYZ"),A=n("tsqr"),U=n("9og8"),k=n("y8nQ"),c=n("Vl3Y"),r=n("tJVT"),a=n("WmNS"),b=n.n(a),g=n("q1tI"),v=n.n(g),$=n("gvAy"),j=n.n($),f=n("55Ip"),y=n("9kvl"),u=n("ErOA"),s=function(l){var d,O=l.user,K={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,category:1,sort_by:null,sort_direction:null,school_id:null},G=Object(g.useState)(K),P=Object(r.a)(G,2),M=P[0],W=P[1],L=Object(g.useState)(!0),_=Object(r.a)(L,2),oe=_[0],e=_[1],i=Object(g.useState)([]),t=Object(r.a)(i,2),E=t[0],D=t[1],B=Object(g.useState)([]),ae=Object(r.a)(B,2),me=ae[0],xe=ae[1],Ee=Object(g.useState)([]),be=Object(r.a)(Ee,2),ge=be[0],Ke=be[1],ze=Object(g.useState)(!1),Fe=Object(r.a)(ze,2),Ye=Fe[0],He=Fe[1],rt=Object(g.useState)(),C=Object(r.a)(rt,2),J=C[0],Z=C[1],ue=Object(g.useState)(),he=Object(r.a)(ue,2),se=he[0],re=he[1],ne=c.a.useForm(),ie=Object(r.a)(ne,1),pe=ie[0],de=Object(g.useState)(),ve=Object(r.a)(de,2),Oe=ve[0],ye=ve[1],Te=Object(g.useState)([]),Ie=Object(r.a)(Te,2),De=Ie[0],we=Ie[1];Object(g.useEffect)(function(){var Ce;(Ce=O.userInfo)!==null&&Ce!==void 0&&Ce.school_id&&(je(),We())},[O==null||((d=O.userInfo)===null||d===void 0)?void 0:d.school_id]);function je(Ce){return $e.apply(this,arguments)}function $e(){return $e=Object(U.a)(b.a.mark(function Ce(Re){var Se,Pe;return b.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ye(Object(H.a)({},Re)),_e.next=3,Object(u.a)("/api/schools/".concat(O==null||((Se=O.userInfo)===null||Se===void 0)?void 0:Se.school_id,"/ec_majors.json"),{method:"get",params:Object(H.a)({per_page:1e4},Re)});case 3:Pe=_e.sent,xe(Pe==null?void 0:Pe.ec_majors);case 5:case"end":return _e.stop()}},Ce)})),$e.apply(this,arguments)}function We(){return ke.apply(this,arguments)}function ke(){return ke=Object(U.a)(b.a.mark(function Ce(){var Re;return b.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,Object(u.a)("/api/ec_major_schools/1/ec_years/select_year.json",{method:"get"});case 2:Re=Pe.sent,Ke(Re==null?void 0:Re.year_arr);case 4:case"end":return Pe.stop()}},Ce)})),ke.apply(this,arguments)}var Ve=[{title:"\u4E13\u4E1A\u4EE3\u7801",dataIndex:"code",key:"code"},{title:"\u4E13\u4E1A\u540D\u79F0",dataIndex:"name",key:"name"}],Je={onRemove:function(){we([])},beforeUpload:function(Re){if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return A.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var Se=[];return Se.push(Re),we([].concat(Se)),!1},fileList:De};return v.a.createElement("div",{className:j.a.wrap},v.a.createElement(I.a,{separator:"",style:{padding:"20px"}},v.a.createElement(I.a.Item,null,v.a.createElement(f.a,{to:"/engineering/trainingProgram"},"\u57F9\u517B\u65B9\u6848")),v.a.createElement(I.a.Separator,null,">>"),v.a.createElement(I.a.Item,null,"\u65B0\u589E\u57F9\u517B\u65B9\u6848")),v.a.createElement("div",{className:j.a.title},"\u57F9\u517B\u65B9\u6848\u4FE1\u606F"),v.a.createElement(F.a,{style:{padding:"0px 20px"}}),v.a.createElement("div",{style:{paddingTop:"50px"}},v.a.createElement(c.a,{form:pe,labelCol:{span:8},wrapperCol:{span:8}},v.a.createElement(c.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"year",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},v.a.createElement(z.a,null,ge==null?void 0:ge.map(function(Ce,Re){return v.a.createElement(z.a.Option,{value:Ce},Ce,"\u5C4A")}))),v.a.createElement(c.a.Item,{label:v.a.createElement("div",null,v.a.createElement("span",{style:{marginRight:"4px",color:"#ff4d4f"}},"*"),v.a.createElement("label",null,"\u8BA4\u8BC1\u4E13\u4E1A"))},v.a.createElement(R.a,{gutter:12,style:{flexFlow:"initial",flexDirection:"row-reverse"},className:j.a.rowFrom},v.a.createElement(ee.a,{span:16},v.a.createElement(c.a.Item,{name:"major_id"},v.a.createElement(p.a,{style:{color:"#000"},disabled:!0,bordered:!1}))),v.a.createElement(ee.a,{span:8},v.a.createElement(S.a,{onClick:function(){He(!0),re(J||"")}},"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A")))),v.a.createElement(c.a.Item,{label:"\u57F9\u517B\u65B9\u6848\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{max:60,message:"\u57F9\u517B\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u8D85\u8FC760\u4E2A\u5B57"}]},v.a.createElement(p.a,{placeholder:"\u4F8B\u5982\uFF1A2021\u7EA7\u8BA1\u7B97\u673A\u79D1\u5B66\u4E0E\u6280\u672F\u4E13\u4E1A\u672C\u79D1\u6280\u672F\u4EBA\u624D\u57F9\u517B\u65B9\u6848"})),v.a.createElement(R.a,null,v.a.createElement(ee.a,{span:8,style:{justifyContent:"end",display:"flex",marginTop:"2px"}},v.a.createElement("label",null,"\u57F9\u517B\u65B9\u6848\u6587\u4EF6\uFF1A")),v.a.createElement(ee.a,{span:8},v.a.createElement(le.a,Je,v.a.createElement(S.a,null,"\u4E0A\u4F20\u6587\u4EF6")))))),v.a.createElement("div",{style:{textAlign:"end",paddingRight:"30px"}},v.a.createElement(S.a,{onClick:function(){y.d.push("/engineering/trainingProgram")}},"\u8FD4\u56DE"),v.a.createElement(S.a,{onClick:Object(U.a)(b.a.mark(function Ce(){var Re,Se,Pe,Le;return b.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return pe.submit(),Ue.next=3,pe.validateFields();case 3:if(Se=pe.getFieldsValue(),J){Ue.next=7;break}return A.b.info("\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"),Ue.abrupt("return");case 7:if(!(!Se.name||!Se.year)){Ue.next=9;break}return Ue.abrupt("return");case 9:return Pe=new FormData,De.length>0&&Pe.append("file",De[0]),Pe.append("school_id",O==null||((Re=O.userInfo)===null||Re===void 0)?void 0:Re.school_id),Pe.append("major_id",J),Pe.append("name",Se.name),Pe.append("year",Se.year),Ue.next=17,Object(u.a)("/api/ec_major_schools/1/ec_years.json",{method:"post",body:Pe},!0);case 17:Le=Ue.sent,(Le==null?void 0:Le.status)===0&&(A.b.info("\u6DFB\u52A0\u6210\u529F"),y.d.push("/engineering/trainingProgram"));case 19:case"end":return Ue.stop()}},Ce)})),style:{marginLeft:"10px"},type:"primary"},"\u4FDD\u5B58")),v.a.createElement(x.a,{title:"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",centered:!0,visible:Ye,onCancel:function(){He(!1),re("")},onOk:function(){var Re,Se;He(!1),Z(se),pe.setFieldsValue({major_id:me==null||((Re=me.filter(function(Pe){return Pe.id===parseInt(se)}))===null||Re===void 0||((Se=Re[0])===null||Se===void 0))?void 0:Se.name})}},v.a.createElement("div",{style:{display:"flex",marginBottom:"10px",alignItems:"center",justifyContent:"space-between"}},v.a.createElement(p.a.Search,{style:{width:"300px"},onSearch:function(Re){je(Object(H.a)(Object(H.a)({},Oe),{},{search:Re}))},placeholder:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u4EE3\u7801\u6216\u540D\u79F0"})),v.a.createElement(ce.a,{dataSource:me,columns:Ve,pagination:!1,rowKey:function(Re){return Re.id},scroll:{y:300},rowSelection:{type:"radio",onChange:function(Re,Se){re(Re)},selectedRowKeys:se}})))};q.default=Object(y.a)(function(h){var l=h.user;return{user:l}})(s)},GfqC:function(Ae,q,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe);function H(u,s){var h="cannot "+u.method+" "+u.action+" "+s.status+"'",l=new Error(h);return l.status=s.status,l.method=u.method,l.url=u.action,l}function o(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(h){return s}}function le(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(O){O.total>0&&(O.percent=O.loaded/O.total*100),u.onProgress(O)});var h=new FormData;u.data&&Object.keys(u.data).forEach(function(d){var O=u.data[d];if(Array.isArray(O)){O.forEach(function(K){h.append(d+"[]",K)});return}h.append(d,u.data[d])}),u.file instanceof Blob?h.append(u.filename,u.file,u.file.name):h.append(u.filename,u.file),s.onerror=function(O){u.onError(O)},s.onload=function(){return s.status<200||s.status>=300?u.onError(H(u,s),o(s)):u.onSuccess(o(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var l=u.headers||{};return l["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(function(d){l[d]!==null&&s.setRequestHeader(d,l[d])}),s.send(h),{abort:function(){s.abort()}}}var Y=+new Date,R=0;function T(){return"rc-upload-"+Y+"-"+ ++R}function S(u,s){return u.indexOf(s,u.length-s.length)!==-1}var Q=function(u,s){if(u&&s){var h=Array.isArray(s)?s:s.split(","),l=u.name||"",d=u.type||"",O=d.replace(/\/.*$/,"");return h.some(function(K){var G=K.trim();return G.charAt(0)==="."?S(l.toLowerCase(),G.toLowerCase()):/\/\*$/.test(G)?O===G.replace(/\/.*$/,""):d===G})}return!0};function ee(u,s){var h=u.createReader(),l=[];function d(){h.readEntries(function(O){var K=Array.prototype.slice.apply(O);l=l.concat(K);var G=!K.length;G?s(l):d()})}d()}var X=function(s,h,l){var d=function O(K,G){G=G||"",K.isFile?K.file(function(P){l(P)&&(K.fullPath&&!P.webkitRelativePath&&(Object.defineProperties(P,{webkitRelativePath:{writable:!0}}),P.webkitRelativePath=K.fullPath.replace(/^\//,""),Object.defineProperties(P,{webkitRelativePath:{writable:!1}})),h([P]))}):K.isDirectory&&ee(K,function(P){P.forEach(function(M){O(M,""+G+K.name+"/")})})};s.forEach(function(O){d(O.webkitGetAsEntry())})},p=X,m=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,l))continue;h[l]=u[l]}return h}function I(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function te(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function A(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var U=function(s){return Object.keys(s).reduce(function(h,l){return(l.substr(0,5)==="data-"||l.substr(0,5)==="aria-"||l==="role")&&(h[l]=s[l]),h},{})},k=function(u){A(s,u);function s(){var h,l,d,O;I(this,s);for(var K=arguments.length,G=Array(K),P=0;P1&&arguments[1]!==void 0?arguments[1]:1,ie=ge.length,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(h).map(function(d,O){if(!H.isValidElement(d)||!d.type)return null;var K=d.type.isSelectOptGroup,G=d.key,P=d.props,M=P.children,W=Object(le.a)(P,["children"]);return l||!K?k(d):Object(A.a)(Object(A.a)({key:"__RC_SELECT_GRP__".concat(G===null?O:G,"__"),label:G},W),{},{options:c(M)})}).filter(function(d){return d})}var r=n("2Qr1"),a=n("qNPg"),b=n("U8pU"),g=n("Kwbf"),v=n("WKfj");function $(h){var l=h.mode,d=h.options,O=h.children,K=h.backfill,G=h.allowClear,P=h.placeholder,M=h.getInputElement,W=h.showSearch,L=h.onSearch,_=h.defaultOpen,oe=h.autoFocus,e=h.labelInValue,i=h.value,t=h.inputValue,E=h.optionLabelProp,D=l==="multiple"||l==="tags",B=W!==void 0?W:D||l==="combobox",ae=d||c(O);if(Object(g.a)(l!=="tags"||ae.every(function(be){return!be.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),l==="tags"||l==="combobox"){var me=ae.some(function(be){return be.options?be.options.some(function(ge){return typeof("value"in ge?ge.value:ge.key)=="number"}):typeof("value"in be?be.value:be.key)=="number"});Object(g.a)(!me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(g.a)(l!=="combobox"||!E,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(g.a)(l==="combobox"||!K,"`backfill` only works with `combobox` mode."),Object(g.a)(l==="combobox"||!M,"`getInputElement` only work with `combobox` mode."),Object(g.b)(l!=="combobox"||!M||!G||!P,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),L&&!B&&l!=="combobox"&&l!=="tags"&&Object(g.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(g.b)(!_||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),i!=null){var xe=Object(v.d)(i);Object(g.a)(!e||xe.every(function(be){return Object(b.a)(be)==="object"&&("key"in be||"value"in be)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(g.a)(!D||Array.isArray(i),"`value` should be array when `mode` is `multiple` or `tags`")}if(O){var Ee=null;Object(U.a)(O).some(function(be){if(!H.isValidElement(be)||!be.type)return!1;var ge=be.type;if(ge.isSelectOption)return!1;if(ge.isSelectOptGroup){var Ke=Object(U.a)(be.props.children).every(function(ze){return!H.isValidElement(ze)||!be.type||ze.type.isSelectOption?!0:(Ee=ze.type,!1)});return!Ke}return Ee=ge,!0}),Ee&&Object(g.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ee.displayName||Ee.name||Ee,"`.")),Object(g.a)(t===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=$,f=Object(a.a)({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:c,flattenOptions:r.d,getLabeledValue:r.e,filterOptions:r.b,isValueDisabled:r.g,findValueOption:r.c,warningProps:j,fillOptionsWithMissingValue:r.a}),y=function(h){Object(fe.a)(d,h);var l=Object(ce.a)(d);function d(){var O;return Object(w.a)(this,d),O=l.apply(this,arguments),O.selectRef=H.createRef(),O.focus=function(){O.selectRef.current.focus()},O.blur=function(){O.selectRef.current.blur()},O}return Object(x.a)(d,[{key:"render",value:function(){return H.createElement(f,Object.assign({ref:this.selectRef},this.props))}}]),d}(H.Component);y.Option=V,y.OptGroup=te;var u=y,s=q.c=u},NvD2:function(Ae,q,n){"use strict";n.d(q,"a",function(){return o});var w=n("Kwbf");function x(le,Y){var R=new Set;return le.forEach(function(T){Y.has(T)||R.add(T)}),R}function fe(le){var Y=le||{},R=Y.disabled,T=Y.disableCheckbox,S=Y.checkable;return!!(R||T)||S===!1}function ce(le,Y,R,T){for(var S=new Set(le),Q=new Set,ee=0;ee<=R;ee+=1){var X=Y.get(ee)||new Set;X.forEach(function(N){var F=N.key,V=N.node,I=N.children,te=I===void 0?[]:I;S.has(F)&&!T(V)&&te.filter(function(A){return!T(A.node)}).forEach(function(A){S.add(A.key)})})}for(var p=new Set,m=R;m>=0;m-=1){var z=Y.get(m)||new Set;z.forEach(function(N){var F=N.parent,V=N.node;if(T(V)||!N.parent||p.has(N.parent.key))return;if(T(N.parent.node)){p.add(F.key);return}var I=!0,te=!1;(F.children||[]).filter(function(A){return!T(A.node)}).forEach(function(A){var U=A.key,k=S.has(U);I&&!k&&(I=!1),!te&&(k||Q.has(U))&&(te=!0)}),I&&S.add(F.key),te&&Q.add(F.key),p.add(F.key)})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(x(Q,S))}}function H(le,Y,R,T,S){for(var Q=new Set(le),ee=new Set(Y),X=0;X<=T;X+=1){var p=R.get(X)||new Set;p.forEach(function(F){var V=F.key,I=F.node,te=F.children,A=te===void 0?[]:te;!Q.has(V)&&!ee.has(V)&&!S(I)&&A.filter(function(U){return!S(U.node)}).forEach(function(U){Q.delete(U.key)})})}ee=new Set;for(var m=new Set,z=T;z>=0;z-=1){var N=R.get(z)||new Set;N.forEach(function(F){var V=F.parent,I=F.node;if(S(I)||!F.parent||m.has(F.parent.key))return;if(S(F.parent.node)){m.add(V.key);return}var te=!0,A=!1;(V.children||[]).filter(function(U){return!S(U.node)}).forEach(function(U){var k=U.key,c=Q.has(k);te&&!c&&(te=!1),!A&&(c||ee.has(k))&&(A=!0)}),te||Q.delete(V.key),A&&ee.add(V.key),m.add(V.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(x(ee,Q))}}function o(le,Y,R,T){var S=[],Q;T?Q=T:Q=fe;var ee=new Set(le.filter(function(z){var N=!!R[z];return N||S.push(z),N})),X=new Map,p=0;Object.keys(R).forEach(function(z){var N=R[z],F=N.level,V=X.get(F);V||(V=new Set,X.set(F,V)),V.add(N),p=Math.max(p,F)}),Object(w.a)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var m;return Y===!0?m=ce(ee,X,p,Q):m=H(ee,Y.halfCheckedKeys,X,p,Q),m}},OZM5:function(Ae,q,n){"use strict";n.d(q,"b",function(){return T}),n.d(q,"a",function(){return S}),n.d(q,"k",function(){return Q}),n.d(q,"h",function(){return ee}),n.d(q,"i",function(){return X}),n.d(q,"g",function(){return p}),n.d(q,"c",function(){return m}),n.d(q,"d",function(){return z}),n.d(q,"j",function(){return V}),n.d(q,"e",function(){return I}),n.d(q,"f",function(){return te});var w=n("KQm4"),x=n("U8pU"),fe=n("Ff2n"),ce=n("q1tI"),H=n.n(ce),o=n("Kwbf"),le=n("WaYH"),Y=.25,R=2;function T(A,U){var k=A.slice(),c=k.indexOf(U);return c>=0&&k.splice(c,1),k}function S(A,U){var k=A.slice();return k.indexOf(U)===-1&&k.push(U),k}function Q(A){return A.split("-")}function ee(A,U){return"".concat(A,"-").concat(U)}function X(A){return A&&A.type&&A.type.isTreeNode}function p(A,U){var k=[A],c=U[A];function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(b){var g=b.key,v=b.children;k.push(g),r(v)})}return r(c.children),k}function m(A,U){var k=A.clientY,c=U.selectHandle.getBoundingClientRect(),r=c.top,a=c.bottom,b=c.height,g=Math.max(b*Y,R);return k<=r+g?-1:k>=a-g?1:0}function z(A,U){if(!A)return;var k=U.multiple;return k?A.slice():A.length?[A[0]]:A}var N=function(U){return U};function F(A,U){if(!A)return[];var k=U||{},c=k.processProps,r=c===void 0?N:c,a=Array.isArray(A)?A:[A];return a.map(function(b){var g=b.children,v=Object(fe.a)(b,["children"]),$=F(g,U);return H.a.createElement(le.a,Object.assign({},r(v)),$)})}function V(A){if(!A)return null;var U;if(Array.isArray(A))U={checkedKeys:A,halfCheckedKeys:void 0};else if(Object(x.a)(A)==="object")U={checkedKeys:A.checked||void 0,halfCheckedKeys:A.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function I(A,U){var k=new Set;function c(r){if(k.has(r))return;var a=U[r];if(!a)return;k.add(r);var b=a.parent,g=a.node;if(g.disabled)return;b&&c(b.key)}return(A||[]).forEach(function(r){c(r)}),Object(w.a)(k)}function te(A){var U={};return Object.keys(A).forEach(function(k){(k.startsWith("data-")||k.startsWith("aria-"))&&(U[k]=A[k])}),U}},"SA+Z":function(Ae,q,n){var w=n("wTVA"),x=n("EbDI"),fe=n("ZhPi"),ce=n("wkBT");function H(o){return w(o)||x(o)||fe(o)||ce()}Ae.exports=H,Ae.exports.__esModule=!0,Ae.exports.default=Ae.exports},WaYH:function(Ae,q,n){"use strict";var w=n("rePB"),x=n("Ff2n"),fe=n("VTBJ"),ce=n("1OyB"),H=n("vuIU"),o=n("JX7q"),le=n("Ji7U"),Y=n("LK+K"),R=n("q1tI"),T=n("TSYQ"),S=n.n(T),Q=n("sboe"),ee=n("OZM5"),X=function(U){var k=U.prefixCls,c=U.level,r=U.isStart,a=U.isEnd;if(!c)return null;for(var b="".concat(k,"-indent-unit"),g=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,W=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(M&&j[W])return j[W];var L=window.getComputedStyle(P),_=L.getPropertyValue("box-sizing")||L.getPropertyValue("-moz-box-sizing")||L.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(L.getPropertyValue("padding-bottom"))+parseFloat(L.getPropertyValue("padding-top")),e=parseFloat(L.getPropertyValue("border-bottom-width"))+parseFloat(L.getPropertyValue("border-top-width")),i=$.map(function(E){return"".concat(E,":").concat(L.getPropertyValue(E))}).join(";"),t={sizingStyle:i,paddingSize:oe,borderSize:e,boxSizing:_};return M&&W&&(j[W]=t),t}function u(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),P.getAttribute("wrap")?f.setAttribute("wrap",P.getAttribute("wrap")):f.removeAttribute("wrap");var _=y(P,M),oe=_.paddingSize,e=_.borderSize,i=_.boxSizing,t=_.sizingStyle;f.setAttribute("style","".concat(t,";").concat(v)),f.value=P.value||P.placeholder||"";var E=Number.MIN_SAFE_INTEGER,D=Number.MAX_SAFE_INTEGER,B=f.scrollHeight,ae;if(i==="border-box"?B+=e:i==="content-box"&&(B-=oe),W!==null||L!==null){f.value=" ";var me=f.scrollHeight-oe;W!==null&&(E=me*W,i==="border-box"&&(E=E+oe+e),B=Math.max(E,B)),L!==null&&(D=me*L,i==="border-box"&&(D=D+oe+e),ae=B>D?"":"hidden",B=Math.min(D,B))}return{height:B,minHeight:E,maxHeight:D,overflowY:ae,resize:"none"}}var s=n("Gytx"),h=n.n(s),l;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(l||(l={}));var d=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(L){var _;return Object(x.a)(this,W),_=M.call(this,L),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(oe){_.textArea=oe},_.handleResize=function(oe){var e=_.state.resizeStatus,i=_.props,t=i.autoSize,E=i.onResize;if(e!==l.NONE)return;typeof E=="function"&&E(oe),t&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var oe=_.props.autoSize;if(!oe||!_.textArea)return;var e=oe.minRows,i=oe.maxRows,t=u(_.textArea,!1,e,i);_.setState({textareaStyles:t,resizeStatus:l.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var oe=_.props,e=oe.prefixCls,i=e===void 0?"rc-textarea":e,t=oe.autoSize,E=oe.onResize,D=oe.className,B=oe.disabled,ae=_.state,me=ae.textareaStyles,xe=ae.resizeStatus,Ee=Object(a.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),be=g()(i,D,Object(Y.a)({},"".concat(i,"-disabled"),B));"value"in Ee&&(Ee.value=Ee.value||"");var ge=Object(le.a)(Object(le.a)(Object(le.a)({},_.props.style),me),xe===l.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(r,{onResize:_.handleResize,disabled:!(t||E)},o.createElement("textarea",Object(w.a)({},Ee,{className:be,style:ge,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:l.NONE},_}return Object(fe.a)(W,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!h()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,oe)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),W}(o.Component),O=d,K=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(L){var _;Object(x.a)(this,W),_=M.call(this,L),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(e){_.resizableTextArea=e},_.handleChange=function(e){var i=_.props.onChange;_.setValue(e.target.value,function(){_.resizableTextArea.resizeTextarea()}),i&&i(e)},_.handleKeyDown=function(e){var i=_.props,t=i.onPressEnter,E=i.onKeyDown;e.keyCode===13&&t&&t(e),E&&E(e)};var oe=typeof L.value=="undefined"||L.value===null?L.defaultValue:L.value;return _.state={value:oe},_}return Object(fe.a)(W,[{key:"setValue",value:function(_,oe){"value"in this.props||this.setState({value:_},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(O,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),W}(o.Component),G=q.default=K},ZpRC:function(Te,q,n){"use strict";function w(A){return typeof A=="object"&&A!=null&&A.nodeType===1}function x(A,Q){return(!Q||A!=="hidden")&&A!=="visible"&&A!=="clip"}function fe(A,Q){if(A.clientHeightQ||m>A&&z=Q&&N>=ee?m-A-X:z>Q&&Nee?z-Q+p:0}var H=function(A,Q){var ee=window,X=Q.scrollMode,p=Q.block,m=Q.inline,z=Q.boundary,N=Q.skipOverflowHiddenElements,F=typeof z=="function"?z:function(me){return me!==z};if(!w(A))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,I=[],te=A;w(te)&&F(te);){if((te=te.parentElement)===V){I.push(te);break}te!=null&&te===document.body&&fe(te)&&!fe(document.documentElement)||te!=null&&fe(te,N)&&I.push(te)}for(var T=ee.visualViewport?ee.visualViewport.width:innerWidth,U=ee.visualViewport?ee.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,r=A.getBoundingClientRect(),a=r.height,b=r.width,g=r.top,v=r.right,$=r.bottom,j=r.left,f=p==="start"||p==="nearest"?g:p==="end"?$:g+a/2,y=m==="center"?j+b/2:m==="end"?v:j,u=[],s=0;s=0&&j>=0&&$<=U&&v<=T&&g>=K&&$<=P&&j>=M&&v<=G)return u;var W=getComputedStyle(h),L=parseInt(W.borderLeftWidth,10),_=parseInt(W.borderTopWidth,10),oe=parseInt(W.borderRightWidth,10),e=parseInt(W.borderBottomWidth,10),i=0,t=0,E="offsetWidth"in h?h.offsetWidth-h.clientWidth-L-oe:0,D="offsetHeight"in h?h.offsetHeight-h.clientHeight-_-e:0;if(V===h)i=p==="start"?f:p==="end"?f-U:p==="nearest"?ce(c,c+U,U,_,e,c+f,c+f+a,a):f-U/2,t=m==="start"?y:m==="center"?y-T/2:m==="end"?y-T:ce(k,k+T,T,L,oe,k+y,k+y+b,b),i=Math.max(0,i+c),t=Math.max(0,t+k);else{i=p==="start"?f-K-_:p==="end"?f-P+e+D:p==="nearest"?ce(K,P,d,_,e+D,f,f+a,a):f-(K+d/2)+D/2,t=m==="start"?y-M-L:m==="center"?y-(M+O/2)+E/2:m==="end"?y-G+oe+E:ce(M,G,O,L,oe+E,y,y+b,b);var B=h.scrollLeft,ae=h.scrollTop;f+=ae-(i=Math.max(0,Math.min(ae+i,h.scrollHeight-d+D))),y+=B-(t=Math.max(0,Math.min(B+t,h.scrollWidth-O+E)))}u.push({el:h,top:i,left:t})}return u};function o(A){return A===Object(A)&&Object.keys(A).length!==0}function le(A,Q){Q===void 0&&(Q="auto");var ee="scrollBehavior"in document.body.style;A.forEach(function(X){var p=X.el,m=X.top,z=X.left;p.scroll&&ee?p.scroll({top:m,left:z,behavior:Q}):(p.scrollTop=m,p.scrollLeft=z)})}function Y(A){return A===!1?{block:"end",inline:"nearest"}:o(A)?A:{block:"start",inline:"nearest"}}function R(A,Q){var ee=!A.ownerDocument.documentElement.contains(A);if(o(Q)&&typeof Q.behavior=="function")return Q.behavior(ee?[]:H(A,Q));if(ee)return;var X=Y(Q);return le(H(A,X),X.behavior)}var S=q.a=R},Zss7:function(Te,q,n){var w;(function(x){var fe=/^\s+/,ce=/\s+$/,H=0,o=x.round,le=x.min,Y=x.max,R=x.random;function S(e,i){if(e=e||"",i=i||{},e instanceof S)return e;if(!(this instanceof S))return new S(e,i);var t=A(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=o(100*this._a)/100,this._format=i.format||t.format,this._gradientType=i.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=t.ok,this._tc_id=H++}S.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(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),i,t,E,D,B,ae;return i=e.r/255,t=e.g/255,E=e.b/255,i<=.03928?D=i/12.92:D=x.pow((i+.055)/1.055,2.4),t<=.03928?B=t/12.92:B=x.pow((t+.055)/1.055,2.4),E<=.03928?ae=E/12.92:ae=x.pow((E+.055)/1.055,2.4),.2126*D+.7152*B+.0722*ae},setAlpha:function(e){return this._a=u(e),this._roundA=o(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.v*100);return this._a==1?"hsv("+i+", "+t+"%, "+E+"%)":"hsva("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var e=ee(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ee(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.l*100);return this._a==1?"hsl("+i+", "+t+"%, "+E+"%)":"hsla("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHex:function(e){return z(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return N(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(s(this._r,255)*100)+"%",g:o(s(this._g,255)*100)+"%",b:o(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%)":"rgba("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:f[z(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var i="#"+F(this._r,this._g,this._b,this._a),t=i,E=this._gradientType?"GradientType = 1, ":"";if(e){var D=S(e);t="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+i+",endColorstr="+t+")"},toString:function(e){var i=!!e;e=e||this._format;var t=!1,E=this._a<1&&this._a>=0,D=!i&&E&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return D?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return S(this.toString())},_applyModification:function(e,i){var t=e.apply(null,[this].concat([].slice.call(i)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(V,arguments)},saturate:function(){return this._applyModification(I,arguments)},greyscale:function(){return this._applyModification(te,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(e,i){return e.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(r,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(a,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},S.fromRatio=function(e,i){if(typeof e=="object"){var t={};for(var E in e)e.hasOwnProperty(E)&&(E==="a"?t[E]=e[E]:t[E]=G(e[E]));e=t}return S(e,i)};function A(e){var i={r:0,g:0,b:0},t=1,E=null,D=null,B=null,ae=!1,me=!1;return typeof e=="string"&&(e=_(e)),typeof e=="object"&&(L(e.r)&&L(e.g)&&L(e.b)?(i=Q(e.r,e.g,e.b),ae=!0,me=String(e.r).substr(-1)==="%"?"prgb":"rgb"):L(e.h)&&L(e.s)&&L(e.v)?(E=G(e.s),D=G(e.v),i=m(e.h,E,D),ae=!0,me="hsv"):L(e.h)&&L(e.s)&&L(e.l)&&(E=G(e.s),B=G(e.l),i=X(e.h,E,B),ae=!0,me="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=u(t),{ok:ae,format:e.format||me,r:le(255,Y(i.r,0)),g:le(255,Y(i.g,0)),b:le(255,Y(i.b,0)),a:t}}function Q(e,i,t){return{r:s(e,255)*255,g:s(i,255)*255,b:s(t,255)*255}}function ee(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),B,ae,me=(E+D)/2;if(E==D)B=ae=0;else{var xe=E-D;ae=me>.5?xe/(2-E-D):xe/(E+D);switch(E){case e:B=(i-t)/xe+(i1&&(ge-=1),ge<1/6?Ee+(be-Ee)*6*ge:ge<1/2?be:ge<2/3?Ee+(be-Ee)*(2/3-ge)*6:Ee}if(i===0)E=D=B=t;else{var me=t<.5?t*(1+i):t+i-t*i,xe=2*t-me;E=ae(xe,me,e+1/3),D=ae(xe,me,e),B=ae(xe,me,e-1/3)}return{r:E*255,g:D*255,b:B*255}}function p(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),B,ae,me=E,xe=E-D;if(ae=E===0?0:xe/E,E==D)B=0;else{switch(E){case e:B=(i-t)/xe+(i>1)+720)%360;--i;)E.h=(E.h+D)%360,B.push(S(E));return B}function $(e,i){i=i||6;for(var t=S(e).toHsv(),E=t.h,D=t.s,B=t.v,ae=[],me=1/i;i--;)ae.push(S({h:E,s:D,v:B})),B=(B+me)%1;return ae}S.mix=function(e,i,t){t=t===0?0:t||50;var E=S(e).toRgb(),D=S(i).toRgb(),B=t/100,ae={r:(D.r-E.r)*B+E.r,g:(D.g-E.g)*B+E.g,b:(D.b-E.b)*B+E.b,a:(D.a-E.a)*B+E.a};return S(ae)},S.readability=function(e,i){var t=S(e),E=S(i);return(x.max(t.getLuminance(),E.getLuminance())+.05)/(x.min(t.getLuminance(),E.getLuminance())+.05)},S.isReadable=function(e,i,t){var E=S.readability(e,i),D,B;B=!1,D=oe(t);switch(D.level+D.size){case"AAsmall":case"AAAlarge":B=E>=4.5;break;case"AAlarge":B=E>=3;break;case"AAAsmall":B=E>=7;break}return B},S.mostReadable=function(e,i,t){var E=null,D=0,B,ae,me,xe;t=t||{},ae=t.includeFallbackColors,me=t.level,xe=t.size;for(var Ee=0;EeD&&(D=B,E=S(i[Ee]));return S.isReadable(e,E,{level:me,size:xe})||!ae?E:(t.includeFallbackColors=!1,S.mostReadable(e,["#fff","#000"],t))};var j=S.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"},f=S.hexNames=y(j);function y(e){var i={};for(var t in e)e.hasOwnProperty(t)&&(i[e[t]]=t);return i}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e,i){d(e)&&(e="100%");var t=O(e);return e=le(i,Y(0,parseFloat(e))),t&&(e=parseInt(e*i,10)/100),x.abs(e-i)<1e-6?1:e%i/parseFloat(i)}function h(e){return le(1,Y(0,e))}function l(e){return parseInt(e,16)}function d(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function O(e){return typeof e=="string"&&e.indexOf("%")!=-1}function K(e){return e.length==1?"0"+e:""+e}function G(e){return e<=1&&(e=e*100+"%"),e}function P(e){return x.round(parseFloat(e)*255).toString(16)}function M(e){return l(e)/255}var W=function(){var e="[-\\+]?\\d+%?",i="[-\\+]?\\d*\\.\\d+%?",t="(?:"+i+")|(?:"+e+")",E="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",D="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+D),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 L(e){return!!W.CSS_UNIT.exec(e)}function _(e){e=e.replace(fe,"").replace(ce,"").toLowerCase();var i=!1;if(j[e])e=j[e],i=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=W.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=W.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=W.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=W.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=W.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=W.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=W.hex8.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),a:M(t[4]),format:i?"name":"hex8"}:(t=W.hex6.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),format:i?"name":"hex"}:(t=W.hex4.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:i?"name":"hex8"}:(t=W.hex3.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),format:i?"name":"hex"}:!1}function oe(e){var i,t;return e=e||{level:"AA",size:"small"},i=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:i,size:t}}Te.exports?Te.exports=S:!(w=function(){return S}.call(q,n,q,Te),w!==void 0&&(Te.exports=w))})(Math)},bT9E:function(Te,q,n){"use strict";n.d(q,"a",function(){return x});var w=n("VTBJ");function x(fe,ce){var H=Object(w.a)({},fe);return Array.isArray(ce)&&ce.forEach(function(o){delete H[o]}),H}},biw7:function(Te,q,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=w.createContext(null);q.a=fe},fyJ8:function(Te,q,n){"use strict";var w=n("rePB"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("U8pU"),H=n("q1tI"),o=n.n(H),le=n("TSYQ"),Y=n.n(le),R=n("c+Xe"),S=n("sR1s");function A(m){return m&&Object(ce.a)(m)==="object"&&!Array.isArray(m)&&!H.isValidElement(m)}function Q(m){return typeof m=="string"?!0:Object(R.c)(m)}function ee(m,z){var N,F=m.prefixCls,V=m.className,I=m.record,te=m.index,T=m.dataIndex,U=m.render,k=m.children,c=m.component,r=c===void 0?"td":c,a=m.colSpan,b=m.rowSpan,g=m.fixLeft,v=m.fixRight,$=m.firstFixLeft,j=m.lastFixLeft,f=m.firstFixRight,y=m.lastFixRight,u=m.appendNode,s=m.additionalProps,h=s===void 0?{}:s,l=m.ellipsis,d=m.align,O=m.rowType,K=m.isSticky,G="".concat(F,"-cell"),P,M;if(k)M=k;else{var W=Object(S.b)(I,T);if(M=W,U){var L=U(W,I,te);A(L)?(M=L.children,P=L.props):M=L}}Object(ce.a)(M)==="object"&&!Array.isArray(M)&&!H.isValidElement(M)&&(M=null),l&&(j||f)&&(M=H.createElement("span",{className:"".concat(G,"-content")},M));var _=P||{},oe=_.colSpan,e=_.rowSpan,i=_.style,t=_.className,E=Object(fe.a)(_,["colSpan","rowSpan","style","className"]),D=oe!==void 0?oe:a,B=e!==void 0?e:b;if(D===0||B===0)return null;var ae={},me=typeof g=="number",xe=typeof v=="number";me&&(ae.position="sticky",ae.left=g),xe&&(ae.position="sticky",ae.right=v);var Ee={};d&&(Ee.textAlign=d);var be,ge=l===!0?{showTitle:!0}:l;ge&&(ge.showTitle||O==="header")&&(typeof M=="string"||typeof M=="number"?be=M.toString():H.isValidElement(M)&&typeof M.props.children=="string"&&(be=M.props.children));var Ke=Object(x.a)(Object(x.a)(Object(x.a)({title:be},E),h),{},{colSpan:D&&D!==1?D:null,rowSpan:B&&B!==1?B:null,className:Y()(G,V,(N={},Object(w.a)(N,"".concat(G,"-fix-left"),me),Object(w.a)(N,"".concat(G,"-fix-left-first"),$),Object(w.a)(N,"".concat(G,"-fix-left-last"),j),Object(w.a)(N,"".concat(G,"-fix-right"),xe),Object(w.a)(N,"".concat(G,"-fix-right-first"),f),Object(w.a)(N,"".concat(G,"-fix-right-last"),y),Object(w.a)(N,"".concat(G,"-ellipsis"),l),Object(w.a)(N,"".concat(G,"-with-append"),u),Object(w.a)(N,"".concat(G,"-fix-sticky"),(me||xe)&&K),N),h.className,t),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},h.style),Ee),ae),i),ref:Q(r)?z:null});return H.createElement(r,Object.assign({},Ke),u,M)}var X=H.forwardRef(ee);X.displayName="Cell";var p=H.memo(X,function(m,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,m.record):!1});q.a=p},gvAy:function(Te,q,n){Te.exports={flex_box_center:"flex_box_center___1prm7",flex_space_between:"flex_space_between___16qSu",flex_box_vertical_center:"flex_box_vertical_center___1nirN",flex_box_center_end:"flex_box_center_end___WeMYY",flex_box_column:"flex_box_column___2-M3x",wrap:"wrap___3TjEW",title:"title___CPqX6",control:"control___1AAwX",label:"label___1ueIb",rowFrom:"rowFrom___2XL75",customTable:"customTable___y7317"}},h78n:function(Te,q,n){"use strict";n.d(q,"a",function(){return $});var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe),H={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},o=function(y){var u=y.map(function(){return Object(w.useRef)()}),s=Object(w.useRef)();return Object(w.useEffect)(function(){var h=Date.now(),l=!1;Object.keys(u).forEach(function(d){var O=u[d].current;if(!O)return;l=!0;var K=O.style;K.transitionDuration=".3s, .3s, .3s, .06s",s.current&&h-s.current<100&&(K.transitionDuration="0s, 0s")}),l&&(s.current=Date.now())}),[u]};function le(){return le=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function p(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var m=function(y){var u=y.className,s=y.percent,h=y.prefixCls,l=y.strokeColor,d=y.strokeLinecap,O=y.strokeWidth,K=y.style,G=y.trailColor,P=y.trailWidth,M=y.transition,W=X(y,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete W.gapPosition;var L=Array.isArray(s)?s:[s],_=Array.isArray(l)?l:[l],oe=o(L),e=Y(oe,1),i=e[0],t=O/2,E=100-O/2,D="M ".concat(d==="round"?t:0,",").concat(t,` - L `).concat(d==="round"?E:100,",").concat(t),B="0 0 100 ".concat(O),ae=0;return x.a.createElement("svg",le({className:ce()("".concat(h,"-line"),u),viewBox:B,preserveAspectRatio:"none",style:K},W),x.a.createElement("path",{className:"".concat(h,"-line-trail"),d:D,strokeLinecap:d,stroke:G,strokeWidth:P||O,fillOpacity:"0"}),L.map(function(me,xe){var Ee={strokeDasharray:"".concat(me,"px, 100px"),strokeDashoffset:"-".concat(ae,"px"),transition:M||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=_[xe]||_[_.length-1];return ae+=me,x.a.createElement("path",{key:xe,className:"".concat(h,"-line-path"),d:D,strokeLinecap:d,stroke:be,strokeWidth:O,fillOpacity:"0",ref:i[xe],style:Ee})}))};m.defaultProps=H;var z=m;function N(){return N=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function c(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var r=0;function a(f){return+f.replace("%","")}function b(f){return Array.isArray(f)?f:[f]}function g(f,y,u,s){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0,d=50-s/2,O=0,K=-d,G=0,P=-2*d;switch(l){case"left":O=-d,K=0,G=2*d,P=0;break;case"right":O=d,K=0,G=-2*d,P=0;break;case"bottom":K=d,P=2*d;break;default:}var M="M 50,50 m ".concat(O,",").concat(K,` +`,$=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],j={},f;function y(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(M&&j[W])return j[W];var L=window.getComputedStyle(P),_=L.getPropertyValue("box-sizing")||L.getPropertyValue("-moz-box-sizing")||L.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(L.getPropertyValue("padding-bottom"))+parseFloat(L.getPropertyValue("padding-top")),e=parseFloat(L.getPropertyValue("border-bottom-width"))+parseFloat(L.getPropertyValue("border-top-width")),i=$.map(function(E){return"".concat(E,":").concat(L.getPropertyValue(E))}).join(";"),t={sizingStyle:i,paddingSize:oe,borderSize:e,boxSizing:_};return M&&W&&(j[W]=t),t}function u(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),P.getAttribute("wrap")?f.setAttribute("wrap",P.getAttribute("wrap")):f.removeAttribute("wrap");var _=y(P,M),oe=_.paddingSize,e=_.borderSize,i=_.boxSizing,t=_.sizingStyle;f.setAttribute("style","".concat(t,";").concat(v)),f.value=P.value||P.placeholder||"";var E=Number.MIN_SAFE_INTEGER,D=Number.MAX_SAFE_INTEGER,B=f.scrollHeight,ae;if(i==="border-box"?B+=e:i==="content-box"&&(B-=oe),W!==null||L!==null){f.value=" ";var me=f.scrollHeight-oe;W!==null&&(E=me*W,i==="border-box"&&(E=E+oe+e),B=Math.max(E,B)),L!==null&&(D=me*L,i==="border-box"&&(D=D+oe+e),ae=B>D?"":"hidden",B=Math.min(D,B))}return{height:B,minHeight:E,maxHeight:D,overflowY:ae,resize:"none"}}var s=n("Gytx"),h=n.n(s),l;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(l||(l={}));var d=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(L){var _;return Object(x.a)(this,W),_=M.call(this,L),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(oe){_.textArea=oe},_.handleResize=function(oe){var e=_.state.resizeStatus,i=_.props,t=i.autoSize,E=i.onResize;if(e!==l.NONE)return;typeof E=="function"&&E(oe),t&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var oe=_.props.autoSize;if(!oe||!_.textArea)return;var e=oe.minRows,i=oe.maxRows,t=u(_.textArea,!1,e,i);_.setState({textareaStyles:t,resizeStatus:l.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var oe=_.props,e=oe.prefixCls,i=e===void 0?"rc-textarea":e,t=oe.autoSize,E=oe.onResize,D=oe.className,B=oe.disabled,ae=_.state,me=ae.textareaStyles,xe=ae.resizeStatus,Ee=Object(a.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),be=g()(i,D,Object(Y.a)({},"".concat(i,"-disabled"),B));"value"in Ee&&(Ee.value=Ee.value||"");var ge=Object(le.a)(Object(le.a)(Object(le.a)({},_.props.style),me),xe===l.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(r,{onResize:_.handleResize,disabled:!(t||E)},o.createElement("textarea",Object(w.a)({},Ee,{className:be,style:ge,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:l.NONE},_}return Object(fe.a)(W,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!h()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,oe)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),W}(o.Component),O=d,K=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(L){var _;Object(x.a)(this,W),_=M.call(this,L),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(e){_.resizableTextArea=e},_.handleChange=function(e){var i=_.props.onChange;_.setValue(e.target.value,function(){_.resizableTextArea.resizeTextarea()}),i&&i(e)},_.handleKeyDown=function(e){var i=_.props,t=i.onPressEnter,E=i.onKeyDown;e.keyCode===13&&t&&t(e),E&&E(e)};var oe=typeof L.value=="undefined"||L.value===null?L.defaultValue:L.value;return _.state={value:oe},_}return Object(fe.a)(W,[{key:"setValue",value:function(_,oe){"value"in this.props||this.setState({value:_},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(O,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),W}(o.Component),G=q.default=K},ZpRC:function(Ae,q,n){"use strict";function w(S){return typeof S=="object"&&S!=null&&S.nodeType===1}function x(S,Q){return(!Q||S!=="hidden")&&S!=="visible"&&S!=="clip"}function fe(S,Q){if(S.clientHeightQ||m>S&&z=Q&&N>=ee?m-S-X:z>Q&&Nee?z-Q+p:0}var H=function(S,Q){var ee=window,X=Q.scrollMode,p=Q.block,m=Q.inline,z=Q.boundary,N=Q.skipOverflowHiddenElements,F=typeof z=="function"?z:function(me){return me!==z};if(!w(S))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,I=[],te=S;w(te)&&F(te);){if((te=te.parentElement)===V){I.push(te);break}te!=null&&te===document.body&&fe(te)&&!fe(document.documentElement)||te!=null&&fe(te,N)&&I.push(te)}for(var A=ee.visualViewport?ee.visualViewport.width:innerWidth,U=ee.visualViewport?ee.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,r=S.getBoundingClientRect(),a=r.height,b=r.width,g=r.top,v=r.right,$=r.bottom,j=r.left,f=p==="start"||p==="nearest"?g:p==="end"?$:g+a/2,y=m==="center"?j+b/2:m==="end"?v:j,u=[],s=0;s=0&&j>=0&&$<=U&&v<=A&&g>=K&&$<=P&&j>=M&&v<=G)return u;var W=getComputedStyle(h),L=parseInt(W.borderLeftWidth,10),_=parseInt(W.borderTopWidth,10),oe=parseInt(W.borderRightWidth,10),e=parseInt(W.borderBottomWidth,10),i=0,t=0,E="offsetWidth"in h?h.offsetWidth-h.clientWidth-L-oe:0,D="offsetHeight"in h?h.offsetHeight-h.clientHeight-_-e:0;if(V===h)i=p==="start"?f:p==="end"?f-U:p==="nearest"?ce(c,c+U,U,_,e,c+f,c+f+a,a):f-U/2,t=m==="start"?y:m==="center"?y-A/2:m==="end"?y-A:ce(k,k+A,A,L,oe,k+y,k+y+b,b),i=Math.max(0,i+c),t=Math.max(0,t+k);else{i=p==="start"?f-K-_:p==="end"?f-P+e+D:p==="nearest"?ce(K,P,d,_,e+D,f,f+a,a):f-(K+d/2)+D/2,t=m==="start"?y-M-L:m==="center"?y-(M+O/2)+E/2:m==="end"?y-G+oe+E:ce(M,G,O,L,oe+E,y,y+b,b);var B=h.scrollLeft,ae=h.scrollTop;f+=ae-(i=Math.max(0,Math.min(ae+i,h.scrollHeight-d+D))),y+=B-(t=Math.max(0,Math.min(B+t,h.scrollWidth-O+E)))}u.push({el:h,top:i,left:t})}return u};function o(S){return S===Object(S)&&Object.keys(S).length!==0}function le(S,Q){Q===void 0&&(Q="auto");var ee="scrollBehavior"in document.body.style;S.forEach(function(X){var p=X.el,m=X.top,z=X.left;p.scroll&&ee?p.scroll({top:m,left:z,behavior:Q}):(p.scrollTop=m,p.scrollLeft=z)})}function Y(S){return S===!1?{block:"end",inline:"nearest"}:o(S)?S:{block:"start",inline:"nearest"}}function R(S,Q){var ee=!S.ownerDocument.documentElement.contains(S);if(o(Q)&&typeof Q.behavior=="function")return Q.behavior(ee?[]:H(S,Q));if(ee)return;var X=Y(Q);return le(H(S,X),X.behavior)}var T=q.a=R},Zss7:function(Ae,q,n){var w;(function(x){var fe=/^\s+/,ce=/\s+$/,H=0,o=x.round,le=x.min,Y=x.max,R=x.random;function T(e,i){if(e=e||"",i=i||{},e instanceof T)return e;if(!(this instanceof T))return new T(e,i);var t=S(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=o(100*this._a)/100,this._format=i.format||t.format,this._gradientType=i.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=t.ok,this._tc_id=H++}T.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(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),i,t,E,D,B,ae;return i=e.r/255,t=e.g/255,E=e.b/255,i<=.03928?D=i/12.92:D=x.pow((i+.055)/1.055,2.4),t<=.03928?B=t/12.92:B=x.pow((t+.055)/1.055,2.4),E<=.03928?ae=E/12.92:ae=x.pow((E+.055)/1.055,2.4),.2126*D+.7152*B+.0722*ae},setAlpha:function(e){return this._a=u(e),this._roundA=o(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.v*100);return this._a==1?"hsv("+i+", "+t+"%, "+E+"%)":"hsva("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var e=ee(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ee(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.l*100);return this._a==1?"hsl("+i+", "+t+"%, "+E+"%)":"hsla("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHex:function(e){return z(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return N(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(s(this._r,255)*100)+"%",g:o(s(this._g,255)*100)+"%",b:o(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%)":"rgba("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:f[z(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var i="#"+F(this._r,this._g,this._b,this._a),t=i,E=this._gradientType?"GradientType = 1, ":"";if(e){var D=T(e);t="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+i+",endColorstr="+t+")"},toString:function(e){var i=!!e;e=e||this._format;var t=!1,E=this._a<1&&this._a>=0,D=!i&&E&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return D?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return T(this.toString())},_applyModification:function(e,i){var t=e.apply(null,[this].concat([].slice.call(i)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(V,arguments)},saturate:function(){return this._applyModification(I,arguments)},greyscale:function(){return this._applyModification(te,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(e,i){return e.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(r,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(a,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},T.fromRatio=function(e,i){if(typeof e=="object"){var t={};for(var E in e)e.hasOwnProperty(E)&&(E==="a"?t[E]=e[E]:t[E]=G(e[E]));e=t}return T(e,i)};function S(e){var i={r:0,g:0,b:0},t=1,E=null,D=null,B=null,ae=!1,me=!1;return typeof e=="string"&&(e=_(e)),typeof e=="object"&&(L(e.r)&&L(e.g)&&L(e.b)?(i=Q(e.r,e.g,e.b),ae=!0,me=String(e.r).substr(-1)==="%"?"prgb":"rgb"):L(e.h)&&L(e.s)&&L(e.v)?(E=G(e.s),D=G(e.v),i=m(e.h,E,D),ae=!0,me="hsv"):L(e.h)&&L(e.s)&&L(e.l)&&(E=G(e.s),B=G(e.l),i=X(e.h,E,B),ae=!0,me="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=u(t),{ok:ae,format:e.format||me,r:le(255,Y(i.r,0)),g:le(255,Y(i.g,0)),b:le(255,Y(i.b,0)),a:t}}function Q(e,i,t){return{r:s(e,255)*255,g:s(i,255)*255,b:s(t,255)*255}}function ee(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),B,ae,me=(E+D)/2;if(E==D)B=ae=0;else{var xe=E-D;ae=me>.5?xe/(2-E-D):xe/(E+D);switch(E){case e:B=(i-t)/xe+(i1&&(ge-=1),ge<1/6?Ee+(be-Ee)*6*ge:ge<1/2?be:ge<2/3?Ee+(be-Ee)*(2/3-ge)*6:Ee}if(i===0)E=D=B=t;else{var me=t<.5?t*(1+i):t+i-t*i,xe=2*t-me;E=ae(xe,me,e+1/3),D=ae(xe,me,e),B=ae(xe,me,e-1/3)}return{r:E*255,g:D*255,b:B*255}}function p(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),B,ae,me=E,xe=E-D;if(ae=E===0?0:xe/E,E==D)B=0;else{switch(E){case e:B=(i-t)/xe+(i>1)+720)%360;--i;)E.h=(E.h+D)%360,B.push(T(E));return B}function $(e,i){i=i||6;for(var t=T(e).toHsv(),E=t.h,D=t.s,B=t.v,ae=[],me=1/i;i--;)ae.push(T({h:E,s:D,v:B})),B=(B+me)%1;return ae}T.mix=function(e,i,t){t=t===0?0:t||50;var E=T(e).toRgb(),D=T(i).toRgb(),B=t/100,ae={r:(D.r-E.r)*B+E.r,g:(D.g-E.g)*B+E.g,b:(D.b-E.b)*B+E.b,a:(D.a-E.a)*B+E.a};return T(ae)},T.readability=function(e,i){var t=T(e),E=T(i);return(x.max(t.getLuminance(),E.getLuminance())+.05)/(x.min(t.getLuminance(),E.getLuminance())+.05)},T.isReadable=function(e,i,t){var E=T.readability(e,i),D,B;B=!1,D=oe(t);switch(D.level+D.size){case"AAsmall":case"AAAlarge":B=E>=4.5;break;case"AAlarge":B=E>=3;break;case"AAAsmall":B=E>=7;break}return B},T.mostReadable=function(e,i,t){var E=null,D=0,B,ae,me,xe;t=t||{},ae=t.includeFallbackColors,me=t.level,xe=t.size;for(var Ee=0;EeD&&(D=B,E=T(i[Ee]));return T.isReadable(e,E,{level:me,size:xe})||!ae?E:(t.includeFallbackColors=!1,T.mostReadable(e,["#fff","#000"],t))};var j=T.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"},f=T.hexNames=y(j);function y(e){var i={};for(var t in e)e.hasOwnProperty(t)&&(i[e[t]]=t);return i}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e,i){d(e)&&(e="100%");var t=O(e);return e=le(i,Y(0,parseFloat(e))),t&&(e=parseInt(e*i,10)/100),x.abs(e-i)<1e-6?1:e%i/parseFloat(i)}function h(e){return le(1,Y(0,e))}function l(e){return parseInt(e,16)}function d(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function O(e){return typeof e=="string"&&e.indexOf("%")!=-1}function K(e){return e.length==1?"0"+e:""+e}function G(e){return e<=1&&(e=e*100+"%"),e}function P(e){return x.round(parseFloat(e)*255).toString(16)}function M(e){return l(e)/255}var W=function(){var e="[-\\+]?\\d+%?",i="[-\\+]?\\d*\\.\\d+%?",t="(?:"+i+")|(?:"+e+")",E="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",D="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+D),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 L(e){return!!W.CSS_UNIT.exec(e)}function _(e){e=e.replace(fe,"").replace(ce,"").toLowerCase();var i=!1;if(j[e])e=j[e],i=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=W.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=W.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=W.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=W.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=W.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=W.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=W.hex8.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),a:M(t[4]),format:i?"name":"hex8"}:(t=W.hex6.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),format:i?"name":"hex"}:(t=W.hex4.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:i?"name":"hex8"}:(t=W.hex3.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),format:i?"name":"hex"}:!1}function oe(e){var i,t;return e=e||{level:"AA",size:"small"},i=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:i,size:t}}Ae.exports?Ae.exports=T:!(w=function(){return T}.call(q,n,q,Ae),w!==void 0&&(Ae.exports=w))})(Math)},bT9E:function(Ae,q,n){"use strict";n.d(q,"a",function(){return x});var w=n("VTBJ");function x(fe,ce){var H=Object(w.a)({},fe);return Array.isArray(ce)&&ce.forEach(function(o){delete H[o]}),H}},biw7:function(Ae,q,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=w.createContext(null);q.a=fe},fyJ8:function(Ae,q,n){"use strict";var w=n("rePB"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("U8pU"),H=n("q1tI"),o=n.n(H),le=n("TSYQ"),Y=n.n(le),R=n("c+Xe"),T=n("sR1s");function S(m){return m&&Object(ce.a)(m)==="object"&&!Array.isArray(m)&&!H.isValidElement(m)}function Q(m){return typeof m=="string"?!0:Object(R.c)(m)}function ee(m,z){var N,F=m.prefixCls,V=m.className,I=m.record,te=m.index,A=m.dataIndex,U=m.render,k=m.children,c=m.component,r=c===void 0?"td":c,a=m.colSpan,b=m.rowSpan,g=m.fixLeft,v=m.fixRight,$=m.firstFixLeft,j=m.lastFixLeft,f=m.firstFixRight,y=m.lastFixRight,u=m.appendNode,s=m.additionalProps,h=s===void 0?{}:s,l=m.ellipsis,d=m.align,O=m.rowType,K=m.isSticky,G="".concat(F,"-cell"),P,M;if(k)M=k;else{var W=Object(T.b)(I,A);if(M=W,U){var L=U(W,I,te);S(L)?(M=L.children,P=L.props):M=L}}Object(ce.a)(M)==="object"&&!Array.isArray(M)&&!H.isValidElement(M)&&(M=null),l&&(j||f)&&(M=H.createElement("span",{className:"".concat(G,"-content")},M));var _=P||{},oe=_.colSpan,e=_.rowSpan,i=_.style,t=_.className,E=Object(fe.a)(_,["colSpan","rowSpan","style","className"]),D=oe!==void 0?oe:a,B=e!==void 0?e:b;if(D===0||B===0)return null;var ae={},me=typeof g=="number",xe=typeof v=="number";me&&(ae.position="sticky",ae.left=g),xe&&(ae.position="sticky",ae.right=v);var Ee={};d&&(Ee.textAlign=d);var be,ge=l===!0?{showTitle:!0}:l;ge&&(ge.showTitle||O==="header")&&(typeof M=="string"||typeof M=="number"?be=M.toString():H.isValidElement(M)&&typeof M.props.children=="string"&&(be=M.props.children));var Ke=Object(x.a)(Object(x.a)(Object(x.a)({title:be},E),h),{},{colSpan:D&&D!==1?D:null,rowSpan:B&&B!==1?B:null,className:Y()(G,V,(N={},Object(w.a)(N,"".concat(G,"-fix-left"),me),Object(w.a)(N,"".concat(G,"-fix-left-first"),$),Object(w.a)(N,"".concat(G,"-fix-left-last"),j),Object(w.a)(N,"".concat(G,"-fix-right"),xe),Object(w.a)(N,"".concat(G,"-fix-right-first"),f),Object(w.a)(N,"".concat(G,"-fix-right-last"),y),Object(w.a)(N,"".concat(G,"-ellipsis"),l),Object(w.a)(N,"".concat(G,"-with-append"),u),Object(w.a)(N,"".concat(G,"-fix-sticky"),(me||xe)&&K),N),h.className,t),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},h.style),Ee),ae),i),ref:Q(r)?z:null});return H.createElement(r,Object.assign({},Ke),u,M)}var X=H.forwardRef(ee);X.displayName="Cell";var p=H.memo(X,function(m,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,m.record):!1});q.a=p},gvAy:function(Ae,q,n){Ae.exports={flex_box_center:"flex_box_center___1prm7",flex_space_between:"flex_space_between___16qSu",flex_box_vertical_center:"flex_box_vertical_center___1nirN",flex_box_center_end:"flex_box_center_end___WeMYY",flex_box_column:"flex_box_column___2-M3x",wrap:"wrap___3TjEW",title:"title___CPqX6",control:"control___1AAwX",label:"label___1ueIb",rowFrom:"rowFrom___2XL75",customTable:"customTable___y7317"}},h78n:function(Ae,q,n){"use strict";n.d(q,"a",function(){return $});var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe),H={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},o=function(y){var u=y.map(function(){return Object(w.useRef)()}),s=Object(w.useRef)();return Object(w.useEffect)(function(){var h=Date.now(),l=!1;Object.keys(u).forEach(function(d){var O=u[d].current;if(!O)return;l=!0;var K=O.style;K.transitionDuration=".3s, .3s, .3s, .06s",s.current&&h-s.current<100&&(K.transitionDuration="0s, 0s")}),l&&(s.current=Date.now())}),[u]};function le(){return le=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function p(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var m=function(y){var u=y.className,s=y.percent,h=y.prefixCls,l=y.strokeColor,d=y.strokeLinecap,O=y.strokeWidth,K=y.style,G=y.trailColor,P=y.trailWidth,M=y.transition,W=X(y,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete W.gapPosition;var L=Array.isArray(s)?s:[s],_=Array.isArray(l)?l:[l],oe=o(L),e=Y(oe,1),i=e[0],t=O/2,E=100-O/2,D="M ".concat(d==="round"?t:0,",").concat(t,` + L `).concat(d==="round"?E:100,",").concat(t),B="0 0 100 ".concat(O),ae=0;return x.a.createElement("svg",le({className:ce()("".concat(h,"-line"),u),viewBox:B,preserveAspectRatio:"none",style:K},W),x.a.createElement("path",{className:"".concat(h,"-line-trail"),d:D,strokeLinecap:d,stroke:G,strokeWidth:P||O,fillOpacity:"0"}),L.map(function(me,xe){var Ee={strokeDasharray:"".concat(me,"px, 100px"),strokeDashoffset:"-".concat(ae,"px"),transition:M||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=_[xe]||_[_.length-1];return ae+=me,x.a.createElement("path",{key:xe,className:"".concat(h,"-line-path"),d:D,strokeLinecap:d,stroke:be,strokeWidth:O,fillOpacity:"0",ref:i[xe],style:Ee})}))};m.defaultProps=H;var z=m;function N(){return N=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function c(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var r=0;function a(f){return+f.replace("%","")}function b(f){return Array.isArray(f)?f:[f]}function g(f,y,u,s){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0,d=50-s/2,O=0,K=-d,G=0,P=-2*d;switch(l){case"left":O=-d,K=0,G=2*d,P=0;break;case"right":O=d,K=0,G=-2*d,P=0;break;case"bottom":K=d,P=2*d;break;default:}var M="M 50,50 m ".concat(O,",").concat(K,` a `).concat(d,",").concat(d," 0 1 1 ").concat(G,",").concat(-P,` - a `).concat(d,",").concat(d," 0 1 1 ").concat(-G,",").concat(P),W=Math.PI*2*d,L={stroke:u,strokeDasharray:"".concat(y/100*(W-h),"px ").concat(W,"px"),strokeDashoffset:"-".concat(h/2+f/100*(W-h),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:M,pathStyle:L}}var v=function(y){var u=y.prefixCls,s=y.strokeWidth,h=y.trailWidth,l=y.gapDegree,d=y.gapPosition,O=y.trailColor,K=y.strokeLinecap,G=y.style,P=y.className,M=y.strokeColor,W=y.percent,L=k(y,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),_=Object(w.useMemo)(function(){return r+=1,r},[]),oe=g(0,100,O,s,l,d),e=oe.pathString,i=oe.pathStyle,t=b(W),E=b(M),D=E.find(function(Ee){return Object.prototype.toString.call(Ee)==="[object Object]"}),B=o(t),ae=F(B,1),me=ae[0],xe=function(){var be=0;return t.map(function(ge,Ke){var ze=E[Ke]||E[E.length-1],Fe=Object.prototype.toString.call(ze)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(_,")"):"",Ye=g(be,ge,ze,s,l,d);return be+=ge,x.a.createElement("path",{key:Ke,className:"".concat(u,"-circle-path"),d:Ye.pathString,stroke:Fe,strokeLinecap:K,strokeWidth:s,opacity:ge===0?0:1,fillOpacity:"0",style:Ye.pathStyle,ref:me[Ke]})})};return x.a.createElement("svg",N({className:ce()("".concat(u,"-circle"),P),viewBox:"0 0 100 100",style:G},L),D&&x.a.createElement("defs",null,x.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(_),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(D).sort(function(Ee,be){return a(Ee)-a(be)}).map(function(Ee,be){return x.a.createElement("stop",{key:be,offset:Ee,stopColor:D[Ee]})}))),x.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:e,stroke:O,strokeLinecap:K,strokeWidth:h||s,fillOpacity:"0",style:i}),xe().reverse())};v.defaultProps=H;var $=v,j={Line:z,Circle:$}},hW8S:function(Te,q,n){"use strict";n.d(q,"a",function(){return ce}),n.d(q,"c",function(){return H}),n.d(q,"b",function(){return o});var w=n("VTBJ"),x=n("Ff2n"),fe=n("Kwbf"),ce="RC_TABLE_INTERNAL_COL_DEFINE";function H(le){var Y=le.expandable,R=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(w.a)(Object(w.a)({},R),Y):R}function o(le){return Object.keys(le).reduce(function(Y,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(Y[R]=le[R]),Y},{})}},n6Qo:function(Te,q,n){"use strict";n.d(q,"a",function(){return Y});var w=n("q1tI"),x=n("biw7"),fe=n("fyJ8");function ce(R){var S=R.className,A=R.index,Q=R.children,ee=R.colSpan,X=R.rowSpan,p=w.useContext(x.a),m=p.prefixCls,z=p.fixedInfoList,N=z[A];return w.createElement(fe.a,Object.assign({className:S,index:A,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:Q,props:{colSpan:ee,rowSpan:X}}}},N))}function H(R){return w.createElement("tr",Object.assign({},R))}function o(R){var S=R.children,A=w.useContext(x.a),Q=A.prefixCls;return w.createElement("tfoot",{className:"".concat(Q,"-summary")},S)}var le=q.b=o,Y={Cell:ce,Row:H}},sR1s:function(Te,q,n){"use strict";n.d(q,"b",function(){return ce}),n.d(q,"a",function(){return H}),n.d(q,"c",function(){return o}),n.d(q,"d",function(){return le});var w=n("U8pU"),x="RC_TABLE_KEY";function fe(Y){return Y==null?[]:Array.isArray(Y)?Y:[Y]}function ce(Y,R){if(!R&&typeof R!="number")return Y;for(var S=fe(R),A=Y,Q=0;Q1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=V[0];if(o.isValidElement(I)&&Object(A.c)(I)){var te=I.ref;V[0]=o.cloneElement(I,{ref:Object(A.a)(te,this.setChildNode)})}return V.length===1?V[0]:V.map(function(T,U){return!o.isValidElement(T)||"key"in T&&T.key!==null?T:o.cloneElement(T,{key:"".concat(ee,"-").concat(U)})})}}]),z}(o.Component);X.displayName="ResizeObserver",q.a=X},wCXF:function(Te,q,n){"use strict";n.d(q,"a",function(){return Fe});var w=n("rePB"),x=n("VTBJ"),fe=n("KQm4"),ce=n("U8pU"),H=n("ODXe"),o=n("q1tI"),le=n("TSYQ"),Y=n.n(le),R=n("Gytx"),S=n.n(R),A=n("Kwbf"),Q=n("t23M"),ee=n("qx4F"),X=n("6eGT"),p=n("IBYe"),m=n("Ff2n"),z=n("c+Xe"),N=n("fyJ8"),F=n("biw7");function V(C,J,Z,ue,he){var se=Z[C]||{},re=Z[J]||{},ne,ie;se.fixed==="left"?ne=ue.left[C]:re.fixed==="right"&&(ie=ue.right[J]);var pe=!1,de=!1,ve=!1,Oe=!1,ye=Z[J+1],Se=Z[C-1];if(he==="rtl"){if(ne!==void 0){var Ie=Se&&Se.fixed==="left";Oe=!Ie}else if(ie!==void 0){var De=ye&&ye.fixed==="right";ve=!De}}else if(ne!==void 0){var we=ye&&ye.fixed==="left";pe=!we}else if(ie!==void 0){var je=Se&&Se.fixed==="right";de=!je}return{fixLeft:ne,fixRight:ie,lastFixLeft:pe,firstFixRight:de,lastFixRight:ve,firstFixLeft:Oe,isSticky:ue.isSticky}}var I=n("sR1s");function te(C){var J=C.cells,Z=C.stickyOffsets,ue=C.flattenColumns,he=C.rowComponent,se=C.cellComponent,re=C.onHeaderRow,ne=C.index,ie=o.useContext(F.a),pe=ie.prefixCls,de=ie.direction,ve;re&&(ve=re(J.map(function(ye){return ye.column}),ne));var Oe=Object(I.a)(J.map(function(ye){return ye.column}));return o.createElement(he,Object.assign({},ve),J.map(function(ye,Se){var Ie=ye.column,De=V(ye.colStart,ye.colEnd,ue,Z,de),we;return Ie&&Ie.onHeaderCell&&(we=ye.column.onHeaderCell(Ie)),o.createElement(N.a,Object.assign({},ye,{ellipsis:Ie.ellipsis,align:Ie.align,component:se,prefixCls:pe,key:Oe[Se]},De,{additionalProps:we,rowType:"header"}))}))}te.displayName="HeaderRow";var T=te;function U(C){var J=[];function Z(re,ne){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;J[ie]=J[ie]||[];var pe=ne,de=re.filter(Boolean).map(function(ve){var Oe={key:ve.key,className:ve.className||"",children:ve.title,column:ve,colStart:pe},ye=1,Se=ve.children;return Se&&Se.length>0&&(ye=Z(Se,pe,ie+1).reduce(function(Ie,De){return Ie+De},0),Oe.hasSubColumns=!0),"colSpan"in ve&&(ye=ve.colSpan),"rowSpan"in ve&&(Oe.rowSpan=ve.rowSpan),Oe.colSpan=ye,Oe.colEnd=Oe.colStart+ye-1,J[ie].push(Oe),pe+=ye,ye});return de}Z(C,0);for(var ue=J.length,he=function(ne){J[ne].forEach(function(ie){!("rowSpan"in ie)&&!ie.hasSubColumns&&(ie.rowSpan=ue-ne)})},se=0;se=0;ne-=1){var ie=J[ne],pe=Z&&Z[ne],de=pe&&pe[r.a];(ie||de||re)&&(he.unshift(o.createElement("col",Object.assign({key:ne,style:{width:ie,minWidth:ie}},de))),re=!0)}return o.createElement("colgroup",null,he)}var b=a;function g(C,J){return Object(o.useMemo)(function(){for(var Z=[],ue=0;ue1?qe-1:0),dt=1;dt=ve&&(Be=ve-Oe),re({scrollLeft:Be/ve*(de+2)}),je.current.x=_e.pageX},Ae=function(){var _e=Object(xe.b)(se.current).top,Ue=_e+se.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;Ue-Object(ee.a)()<=Ze||_e>=Ze-ne?we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Pe=function(_e){we(function(Ue){return Object(x.a)(Object(x.a)({},Ue),{},{scrollLeft:_e/de*ve||0})})};return o.useImperativeHandle(Z,function(){return{setScrollLeft:Pe}}),o.useEffect(function(){var Le=Object(me.a)(document.body,"mouseup",Je,!1),_e=Object(me.a)(document.body,"mousemove",Re,!1);return Ae(),function(){Le.remove(),_e.remove()}},[Oe,ke]),o.useEffect(function(){var Le=Object(me.a)(window,"scroll",Ae,!1),_e=Object(me.a)(window,"resize",Ae,!1);return function(){Le.remove(),_e.remove()}},[]),o.useEffect(function(){De.isHiddenScrollBar||we(function(Le){var _e,Ue;return Object(x.a)(Object(x.a)({},Le),{},{scrollLeft:se.current.scrollLeft/((_e=se.current)===null||_e===void 0?void 0:_e.scrollWidth)*((Ue=se.current)===null||Ue===void 0?void 0:Ue.clientWidth)})})},[De.isHiddenScrollBar]),de<=ve||!Oe||De.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(ee.a)(),width:ve,bottom:ne},className:"".concat(pe,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:ye,className:Y()("".concat(pe,"-sticky-scroll-bar"),Object(w.a)({},"".concat(pe,"-sticky-scroll-bar-active"),ke)),style:{width:"".concat(Oe,"px"),transform:"translate3d(".concat(De.scrollLeft,"px, 0, 0)")}}))},be=o.forwardRef(Ee);function ge(C,J){return o.useMemo(function(){var Z=!!C;return{isSticky:Z,stickyClassName:Z?"".concat(J,"-sticky-header"):"",offsetHeader:Object(ce.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(ce.a)(C)==="object"&&C.offsetScroll||0}},[C,J])}var Ke=[],ze={},Fe="rc-table-internal-hook",Ye=o.memo(function(C){var J=C.children;return J},function(C,J){return S()(C.props,J.props)?C.pingLeft!==J.pingLeft||C.pingRight!==J.pingRight:!1});function He(C){var J,Z=C.prefixCls,ue=C.className,he=C.rowClassName,se=C.style,re=C.data,ne=C.rowKey,ie=C.scroll,pe=C.tableLayout,de=C.direction,ve=C.title,Oe=C.footer,ye=C.summary,Se=C.id,Ie=C.showHeader,De=C.components,we=C.emptyText,je=C.onRow,$e=C.onHeaderRow,We=C.internalHooks,ke=C.transformColumns,Ve=C.internalRefs,Je=C.sticky,Ce=re||Ke,Re=!!Ce.length,Ae=o.useState(0),Pe=Object(H.a)(Ae,2),Le=Pe[0],_e=Pe[1];o.useEffect(function(){_e(Object(ee.a)())});var Ue=o.useMemo(function(){return Object(I.c)(De,{})},[De]),Ze=o.useCallback(function(Ne,Me){return Object(I.b)(Ue,Ne)||Me},[Ue]),et=o.useMemo(function(){return typeof ne=="function"?ne:function(Ne){var Me=Ne&&Ne[ne];return Me}},[ne]),Be=Object(r.c)(C),_t=Be.expandIcon,jt=Be.expandedRowKeys,Rt=Be.defaultExpandedRowKeys,st=Be.defaultExpandAllRows,ut=Be.expandedRowRender,mt=Be.onExpand,ht=Be.onExpandedRowsChange,Pt=Be.expandRowByClick,at=Be.rowExpandable,gt=Be.expandIconColumnIndex,pt=Be.expandedRowClassName,kt=Be.childrenColumnName,St=Be.indentSize,vt=_t||B,Et=kt||"children",Tt=o.useMemo(function(){return ut?"row":C.expandable&&We===Fe&&C.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Ne){return Ne&&Object(ce.a)(Ne)==="object"&&Ne[Et]})?"nest":!1},[!!ut,Ce]),At=o.useState(function(){return Rt||(st?ae(Ce,et,Et):[])}),Qe=Object(H.a)(At,2),tt=Qe[0],ot=Qe[1],qe=o.useMemo(function(){return new Set(jt||tt||[])},[jt,tt]),ct=o.useCallback(function(Ne){var Me=et(Ne,Ce.indexOf(Ne)),Ge,nt=qe.has(Me);nt?(qe.delete(Me),Ge=Object(fe.a)(qe)):Ge=[].concat(Object(fe.a)(qe),[Me]),ot(Ge),mt&&mt(!nt,Ne),ht&&ht(Ge)},[et,qe,Ce,mt,ht]),dt=o.useState(0),Dt=Object(H.a)(dt,2),yt=Dt[0],Nt=Dt[1],vn=Object(M.b)(Object(x.a)(Object(x.a)(Object(x.a)({},C),Be),{},{expandable:!!ut,expandedKeys:qe,getRowKey:et,onTriggerExpand:ct,expandIcon:vt,expandIconColumnIndex:gt,direction:de}),We===Fe?ke:null),Jt=Object(H.a)(vn,2),Kt=Jt[0],Xe=Jt[1],Mt=o.useMemo(function(){return{columns:Kt,flattenColumns:Xe}},[Kt,Xe]),Wt=o.useRef(),Qt=o.useRef(),ft=o.useRef(),bn=o.useState(!1),Zt=Object(H.a)(bn,2),qt=Zt[0],gn=Zt[1],En=o.useState(!1),en=Object(H.a)(En,2),tn=en[0],yn=en[1],Cn=_(new Map),nn=Object(H.a)(Cn,2),xn=nn[0],On=nn[1],_n=Object(I.a)(Xe),an=_n.map(function(Ne){return xn.get(Ne)}),rn=o.useMemo(function(){return an},[an.join("_")]),wt=i(rn,Xe.length,de),it=ie&&Object(I.d)(ie.y),lt=ie&&Object(I.d)(ie.x),Ct=lt&&Xe.some(function(Ne){var Me=Ne.fixed;return Me}),on=o.useRef(),Lt=ge(Je,Z),xt=Lt.isSticky,jn=Lt.offsetHeader,Rn=Lt.offsetScroll,Pn=Lt.stickyClassName,Bt,Ut,zt;it&&(Ut={overflowY:"scroll",maxHeight:ie.y}),lt&&(Bt={overflowX:"auto"},it||(Ut={overflowY:"hidden"}),zt={width:ie.x===!0?"auto":ie.x,minWidth:"100%"});var sn=o.useCallback(function(Ne,Me){On(function(Ge){var nt=new Map(Ge);return nt.set(Ne,Me),nt})},[]),Sn=oe(null),ln=Object(H.a)(Sn,2),Tn=ln[0],un=ln[1];function Ft(Ne,Me){if(!Me)return;typeof Me=="function"?Me(Ne):Me.scrollLeft!==Ne&&(Me.scrollLeft=Ne)}var bt=function(Me){var Ge=Me.currentTarget,nt=Me.scrollLeft,Ot=typeof nt=="number"?nt:Ge.scrollLeft,pn=Ge||ze;if(!un()||un()===pn){var Yt;Tn(pn),Ft(Ot,Qt.current),Ft(Ot,ft.current),Ft(Ot,(Yt=on.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(Ge){var Un=Ge.scrollWidth,In=Ge.clientWidth;gn(Ot>0),yn(Ot0?[].concat(Object(x.a)(m),Object(x.a)(A(V).map(function(I){return Object(fe.a)({fixed:F},I)}))):[].concat(Object(x.a)(m),[Object(fe.a)(Object(fe.a)({},z),{},{fixed:F})])},[])}function Q(p){for(var m=!0,z=0;z=0;V-=1){var I=p[V];if(F&&I.fixed!=="right")F=!1;else if(!F&&I.fixed==="right"){Object(le.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function ee(p){return p.map(function(m){var z=m.fixed,N=Object(ce.a)(m,["fixed"]),F=z;return z==="left"?F="right":z==="right"&&(F="left"),Object(fe.a)({fixed:F},N)})}function X(p,m){var z=p.prefixCls,N=p.columns,F=p.children,V=p.expandable,I=p.expandedKeys,te=p.getRowKey,T=p.onTriggerExpand,U=p.expandIcon,k=p.rowExpandable,c=p.expandIconColumnIndex,r=p.direction,a=p.expandRowByClick,b=H.useMemo(function(){return N||S(F)},[N,F]),g=H.useMemo(function(){if(V){var j,f=c||0,y=b[f],u=(j={},Object(w.a)(j,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(w.a)(j,"title",""),Object(w.a)(j,"fixed",y?y.fixed:null),Object(w.a)(j,"className","".concat(z,"-row-expand-icon-cell")),Object(w.a)(j,"render",function(l,d,O){var K=te(d,O),G=I.has(K),P=k?k(d):!0,M=U({prefixCls:z,expanded:G,expandable:P,record:d,onExpand:T});return a?H.createElement("span",{onClick:function(L){return L.stopPropagation()}},M):M}),j),s=b.slice();return f>=0&&s.splice(f,0,u),s}return b},[V,b,te,I,U,r]),v=H.useMemo(function(){var j=g;return m&&(j=m(j)),j.length||(j=[{render:function(){return null}}]),j},[m,g,r]),$=H.useMemo(function(){return r==="rtl"?ee(A(v)):A(v)},[v,r]);return[v,$]}q.b=X},"y0+3":function(Te,q,n){"use strict";n.d(q,"a",function(){return A}),n.d(q,"b",function(){return ee});var w=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},fe={cssFloat:1,styleFloat:1,float:1};function ce(X){return X.nodeType===1?X.ownerDocument.defaultView.getComputedStyle(X,null):{}}function H(X,p,m){if(p=p.toLowerCase(),m==="auto"){if(p==="height")return X.offsetHeight;if(p==="width")return X.offsetWidth}return p in x||(x[p]=w.test(p)),x[p]?parseFloat(m)||0:m}function o(X,p){var m=arguments.length,z=ce(X);return p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,m===1?z:H(X,p,z[p]||X.style[p])}function le(X,p,m){var z=arguments.length;if(p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,z===3)return typeof m=="number"&&w.test(p)&&(m="".concat(m,"px")),X.style[p]=m,m;for(var N in p)p.hasOwnProperty(N)&&le(X,N,p[N]);return ce(X)}function Y(X){return X===document.body?document.documentElement.clientWidth:X.offsetWidth}function R(X){return X===document.body?window.innerHeight||document.documentElement.clientHeight:X.offsetHeight}function S(){var X=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:X,height:p}}function A(){var X=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:X,height:p}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ee(X){var p=X.getBoundingClientRect(),m=document.documentElement;return{left:p.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(d,",").concat(d," 0 1 1 ").concat(-G,",").concat(P),W=Math.PI*2*d,L={stroke:u,strokeDasharray:"".concat(y/100*(W-h),"px ").concat(W,"px"),strokeDashoffset:"-".concat(h/2+f/100*(W-h),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:M,pathStyle:L}}var v=function(y){var u=y.prefixCls,s=y.strokeWidth,h=y.trailWidth,l=y.gapDegree,d=y.gapPosition,O=y.trailColor,K=y.strokeLinecap,G=y.style,P=y.className,M=y.strokeColor,W=y.percent,L=k(y,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),_=Object(w.useMemo)(function(){return r+=1,r},[]),oe=g(0,100,O,s,l,d),e=oe.pathString,i=oe.pathStyle,t=b(W),E=b(M),D=E.find(function(Ee){return Object.prototype.toString.call(Ee)==="[object Object]"}),B=o(t),ae=F(B,1),me=ae[0],xe=function(){var be=0;return t.map(function(ge,Ke){var ze=E[Ke]||E[E.length-1],Fe=Object.prototype.toString.call(ze)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(_,")"):"",Ye=g(be,ge,ze,s,l,d);return be+=ge,x.a.createElement("path",{key:Ke,className:"".concat(u,"-circle-path"),d:Ye.pathString,stroke:Fe,strokeLinecap:K,strokeWidth:s,opacity:ge===0?0:1,fillOpacity:"0",style:Ye.pathStyle,ref:me[Ke]})})};return x.a.createElement("svg",N({className:ce()("".concat(u,"-circle"),P),viewBox:"0 0 100 100",style:G},L),D&&x.a.createElement("defs",null,x.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(_),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(D).sort(function(Ee,be){return a(Ee)-a(be)}).map(function(Ee,be){return x.a.createElement("stop",{key:be,offset:Ee,stopColor:D[Ee]})}))),x.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:e,stroke:O,strokeLinecap:K,strokeWidth:h||s,fillOpacity:"0",style:i}),xe().reverse())};v.defaultProps=H;var $=v,j={Line:z,Circle:$}},hW8S:function(Ae,q,n){"use strict";n.d(q,"a",function(){return ce}),n.d(q,"c",function(){return H}),n.d(q,"b",function(){return o});var w=n("VTBJ"),x=n("Ff2n"),fe=n("Kwbf"),ce="RC_TABLE_INTERNAL_COL_DEFINE";function H(le){var Y=le.expandable,R=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(w.a)(Object(w.a)({},R),Y):R}function o(le){return Object.keys(le).reduce(function(Y,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(Y[R]=le[R]),Y},{})}},n6Qo:function(Ae,q,n){"use strict";n.d(q,"a",function(){return Y});var w=n("q1tI"),x=n("biw7"),fe=n("fyJ8");function ce(R){var T=R.className,S=R.index,Q=R.children,ee=R.colSpan,X=R.rowSpan,p=w.useContext(x.a),m=p.prefixCls,z=p.fixedInfoList,N=z[S];return w.createElement(fe.a,Object.assign({className:T,index:S,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:Q,props:{colSpan:ee,rowSpan:X}}}},N))}function H(R){return w.createElement("tr",Object.assign({},R))}function o(R){var T=R.children,S=w.useContext(x.a),Q=S.prefixCls;return w.createElement("tfoot",{className:"".concat(Q,"-summary")},T)}var le=q.b=o,Y={Cell:ce,Row:H}},sR1s:function(Ae,q,n){"use strict";n.d(q,"b",function(){return ce}),n.d(q,"a",function(){return H}),n.d(q,"c",function(){return o}),n.d(q,"d",function(){return le});var w=n("U8pU"),x="RC_TABLE_KEY";function fe(Y){return Y==null?[]:Array.isArray(Y)?Y:[Y]}function ce(Y,R){if(!R&&typeof R!="number")return Y;for(var T=fe(R),S=Y,Q=0;Q1)Object(T.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(T.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=V[0];if(o.isValidElement(I)&&Object(S.c)(I)){var te=I.ref;V[0]=o.cloneElement(I,{ref:Object(S.a)(te,this.setChildNode)})}return V.length===1?V[0]:V.map(function(A,U){return!o.isValidElement(A)||"key"in A&&A.key!==null?A:o.cloneElement(A,{key:"".concat(ee,"-").concat(U)})})}}]),z}(o.Component);X.displayName="ResizeObserver",q.a=X},wCXF:function(Ae,q,n){"use strict";n.d(q,"a",function(){return Fe});var w=n("rePB"),x=n("VTBJ"),fe=n("KQm4"),ce=n("U8pU"),H=n("ODXe"),o=n("q1tI"),le=n("TSYQ"),Y=n.n(le),R=n("Gytx"),T=n.n(R),S=n("Kwbf"),Q=n("t23M"),ee=n("qx4F"),X=n("6eGT"),p=n("IBYe"),m=n("Ff2n"),z=n("c+Xe"),N=n("fyJ8"),F=n("biw7");function V(C,J,Z,ue,he){var se=Z[C]||{},re=Z[J]||{},ne,ie;se.fixed==="left"?ne=ue.left[C]:re.fixed==="right"&&(ie=ue.right[J]);var pe=!1,de=!1,ve=!1,Oe=!1,ye=Z[J+1],Te=Z[C-1];if(he==="rtl"){if(ne!==void 0){var Ie=Te&&Te.fixed==="left";Oe=!Ie}else if(ie!==void 0){var De=ye&&ye.fixed==="right";ve=!De}}else if(ne!==void 0){var we=ye&&ye.fixed==="left";pe=!we}else if(ie!==void 0){var je=Te&&Te.fixed==="right";de=!je}return{fixLeft:ne,fixRight:ie,lastFixLeft:pe,firstFixRight:de,lastFixRight:ve,firstFixLeft:Oe,isSticky:ue.isSticky}}var I=n("sR1s");function te(C){var J=C.cells,Z=C.stickyOffsets,ue=C.flattenColumns,he=C.rowComponent,se=C.cellComponent,re=C.onHeaderRow,ne=C.index,ie=o.useContext(F.a),pe=ie.prefixCls,de=ie.direction,ve;re&&(ve=re(J.map(function(ye){return ye.column}),ne));var Oe=Object(I.a)(J.map(function(ye){return ye.column}));return o.createElement(he,Object.assign({},ve),J.map(function(ye,Te){var Ie=ye.column,De=V(ye.colStart,ye.colEnd,ue,Z,de),we;return Ie&&Ie.onHeaderCell&&(we=ye.column.onHeaderCell(Ie)),o.createElement(N.a,Object.assign({},ye,{ellipsis:Ie.ellipsis,align:Ie.align,component:se,prefixCls:pe,key:Oe[Te]},De,{additionalProps:we,rowType:"header"}))}))}te.displayName="HeaderRow";var A=te;function U(C){var J=[];function Z(re,ne){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;J[ie]=J[ie]||[];var pe=ne,de=re.filter(Boolean).map(function(ve){var Oe={key:ve.key,className:ve.className||"",children:ve.title,column:ve,colStart:pe},ye=1,Te=ve.children;return Te&&Te.length>0&&(ye=Z(Te,pe,ie+1).reduce(function(Ie,De){return Ie+De},0),Oe.hasSubColumns=!0),"colSpan"in ve&&(ye=ve.colSpan),"rowSpan"in ve&&(Oe.rowSpan=ve.rowSpan),Oe.colSpan=ye,Oe.colEnd=Oe.colStart+ye-1,J[ie].push(Oe),pe+=ye,ye});return de}Z(C,0);for(var ue=J.length,he=function(ne){J[ne].forEach(function(ie){!("rowSpan"in ie)&&!ie.hasSubColumns&&(ie.rowSpan=ue-ne)})},se=0;se=0;ne-=1){var ie=J[ne],pe=Z&&Z[ne],de=pe&&pe[r.a];(ie||de||re)&&(he.unshift(o.createElement("col",Object.assign({key:ne,style:{width:ie,minWidth:ie}},de))),re=!0)}return o.createElement("colgroup",null,he)}var b=a;function g(C,J){return Object(o.useMemo)(function(){for(var Z=[],ue=0;ue1?qe-1:0),dt=1;dt=ve&&(Be=ve-Oe),re({scrollLeft:Be/ve*(de+2)}),je.current.x=_e.pageX},Se=function(){var _e=Object(xe.b)(se.current).top,Ue=_e+se.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;Ue-Object(ee.a)()<=Ze||_e>=Ze-ne?we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Pe=function(_e){we(function(Ue){return Object(x.a)(Object(x.a)({},Ue),{},{scrollLeft:_e/de*ve||0})})};return o.useImperativeHandle(Z,function(){return{setScrollLeft:Pe}}),o.useEffect(function(){var Le=Object(me.a)(document.body,"mouseup",Je,!1),_e=Object(me.a)(document.body,"mousemove",Re,!1);return Se(),function(){Le.remove(),_e.remove()}},[Oe,ke]),o.useEffect(function(){var Le=Object(me.a)(window,"scroll",Se,!1),_e=Object(me.a)(window,"resize",Se,!1);return function(){Le.remove(),_e.remove()}},[]),o.useEffect(function(){De.isHiddenScrollBar||we(function(Le){var _e,Ue;return Object(x.a)(Object(x.a)({},Le),{},{scrollLeft:se.current.scrollLeft/((_e=se.current)===null||_e===void 0?void 0:_e.scrollWidth)*((Ue=se.current)===null||Ue===void 0?void 0:Ue.clientWidth)})})},[De.isHiddenScrollBar]),de<=ve||!Oe||De.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(ee.a)(),width:ve,bottom:ne},className:"".concat(pe,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:ye,className:Y()("".concat(pe,"-sticky-scroll-bar"),Object(w.a)({},"".concat(pe,"-sticky-scroll-bar-active"),ke)),style:{width:"".concat(Oe,"px"),transform:"translate3d(".concat(De.scrollLeft,"px, 0, 0)")}}))},be=o.forwardRef(Ee);function ge(C,J){return o.useMemo(function(){var Z=!!C;return{isSticky:Z,stickyClassName:Z?"".concat(J,"-sticky-header"):"",offsetHeader:Object(ce.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(ce.a)(C)==="object"&&C.offsetScroll||0}},[C,J])}var Ke=[],ze={},Fe="rc-table-internal-hook",Ye=o.memo(function(C){var J=C.children;return J},function(C,J){return T()(C.props,J.props)?C.pingLeft!==J.pingLeft||C.pingRight!==J.pingRight:!1});function He(C){var J,Z=C.prefixCls,ue=C.className,he=C.rowClassName,se=C.style,re=C.data,ne=C.rowKey,ie=C.scroll,pe=C.tableLayout,de=C.direction,ve=C.title,Oe=C.footer,ye=C.summary,Te=C.id,Ie=C.showHeader,De=C.components,we=C.emptyText,je=C.onRow,$e=C.onHeaderRow,We=C.internalHooks,ke=C.transformColumns,Ve=C.internalRefs,Je=C.sticky,Ce=re||Ke,Re=!!Ce.length,Se=o.useState(0),Pe=Object(H.a)(Se,2),Le=Pe[0],_e=Pe[1];o.useEffect(function(){_e(Object(ee.a)())});var Ue=o.useMemo(function(){return Object(I.c)(De,{})},[De]),Ze=o.useCallback(function(Ne,Me){return Object(I.b)(Ue,Ne)||Me},[Ue]),et=o.useMemo(function(){return typeof ne=="function"?ne:function(Ne){var Me=Ne&&Ne[ne];return Me}},[ne]),Be=Object(r.c)(C),_t=Be.expandIcon,jt=Be.expandedRowKeys,Rt=Be.defaultExpandedRowKeys,st=Be.defaultExpandAllRows,ut=Be.expandedRowRender,mt=Be.onExpand,ht=Be.onExpandedRowsChange,Pt=Be.expandRowByClick,at=Be.rowExpandable,gt=Be.expandIconColumnIndex,pt=Be.expandedRowClassName,kt=Be.childrenColumnName,Tt=Be.indentSize,vt=_t||B,Et=kt||"children",At=o.useMemo(function(){return ut?"row":C.expandable&&We===Fe&&C.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Ne){return Ne&&Object(ce.a)(Ne)==="object"&&Ne[Et]})?"nest":!1},[!!ut,Ce]),St=o.useState(function(){return Rt||(st?ae(Ce,et,Et):[])}),Qe=Object(H.a)(St,2),tt=Qe[0],ot=Qe[1],qe=o.useMemo(function(){return new Set(jt||tt||[])},[jt,tt]),ct=o.useCallback(function(Ne){var Me=et(Ne,Ce.indexOf(Ne)),Ge,nt=qe.has(Me);nt?(qe.delete(Me),Ge=Object(fe.a)(qe)):Ge=[].concat(Object(fe.a)(qe),[Me]),ot(Ge),mt&&mt(!nt,Ne),ht&&ht(Ge)},[et,qe,Ce,mt,ht]),dt=o.useState(0),Dt=Object(H.a)(dt,2),yt=Dt[0],Nt=Dt[1],vn=Object(M.b)(Object(x.a)(Object(x.a)(Object(x.a)({},C),Be),{},{expandable:!!ut,expandedKeys:qe,getRowKey:et,onTriggerExpand:ct,expandIcon:vt,expandIconColumnIndex:gt,direction:de}),We===Fe?ke:null),Jt=Object(H.a)(vn,2),Kt=Jt[0],Xe=Jt[1],Mt=o.useMemo(function(){return{columns:Kt,flattenColumns:Xe}},[Kt,Xe]),Wt=o.useRef(),Qt=o.useRef(),ft=o.useRef(),bn=o.useState(!1),Zt=Object(H.a)(bn,2),qt=Zt[0],gn=Zt[1],En=o.useState(!1),en=Object(H.a)(En,2),tn=en[0],yn=en[1],Cn=_(new Map),nn=Object(H.a)(Cn,2),xn=nn[0],On=nn[1],_n=Object(I.a)(Xe),an=_n.map(function(Ne){return xn.get(Ne)}),rn=o.useMemo(function(){return an},[an.join("_")]),wt=i(rn,Xe.length,de),it=ie&&Object(I.d)(ie.y),lt=ie&&Object(I.d)(ie.x),Ct=lt&&Xe.some(function(Ne){var Me=Ne.fixed;return Me}),on=o.useRef(),Lt=ge(Je,Z),xt=Lt.isSticky,jn=Lt.offsetHeader,Rn=Lt.offsetScroll,Pn=Lt.stickyClassName,Bt,Ut,zt;it&&(Ut={overflowY:"scroll",maxHeight:ie.y}),lt&&(Bt={overflowX:"auto"},it||(Ut={overflowY:"hidden"}),zt={width:ie.x===!0?"auto":ie.x,minWidth:"100%"});var sn=o.useCallback(function(Ne,Me){On(function(Ge){var nt=new Map(Ge);return nt.set(Ne,Me),nt})},[]),Tn=oe(null),ln=Object(H.a)(Tn,2),An=ln[0],un=ln[1];function Ft(Ne,Me){if(!Me)return;typeof Me=="function"?Me(Ne):Me.scrollLeft!==Ne&&(Me.scrollLeft=Ne)}var bt=function(Me){var Ge=Me.currentTarget,nt=Me.scrollLeft,Ot=typeof nt=="number"?nt:Ge.scrollLeft,pn=Ge||ze;if(!un()||un()===pn){var Yt;An(pn),Ft(Ot,Qt.current),Ft(Ot,ft.current),Ft(Ot,(Yt=on.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(Ge){var Un=Ge.scrollWidth,In=Ge.clientWidth;gn(Ot>0),yn(Ot0?[].concat(Object(x.a)(m),Object(x.a)(S(V).map(function(I){return Object(fe.a)({fixed:F},I)}))):[].concat(Object(x.a)(m),[Object(fe.a)(Object(fe.a)({},z),{},{fixed:F})])},[])}function Q(p){for(var m=!0,z=0;z=0;V-=1){var I=p[V];if(F&&I.fixed!=="right")F=!1;else if(!F&&I.fixed==="right"){Object(le.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function ee(p){return p.map(function(m){var z=m.fixed,N=Object(ce.a)(m,["fixed"]),F=z;return z==="left"?F="right":z==="right"&&(F="left"),Object(fe.a)({fixed:F},N)})}function X(p,m){var z=p.prefixCls,N=p.columns,F=p.children,V=p.expandable,I=p.expandedKeys,te=p.getRowKey,A=p.onTriggerExpand,U=p.expandIcon,k=p.rowExpandable,c=p.expandIconColumnIndex,r=p.direction,a=p.expandRowByClick,b=H.useMemo(function(){return N||T(F)},[N,F]),g=H.useMemo(function(){if(V){var j,f=c||0,y=b[f],u=(j={},Object(w.a)(j,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(w.a)(j,"title",""),Object(w.a)(j,"fixed",y?y.fixed:null),Object(w.a)(j,"className","".concat(z,"-row-expand-icon-cell")),Object(w.a)(j,"render",function(l,d,O){var K=te(d,O),G=I.has(K),P=k?k(d):!0,M=U({prefixCls:z,expanded:G,expandable:P,record:d,onExpand:A});return a?H.createElement("span",{onClick:function(L){return L.stopPropagation()}},M):M}),j),s=b.slice();return f>=0&&s.splice(f,0,u),s}return b},[V,b,te,I,U,r]),v=H.useMemo(function(){var j=g;return m&&(j=m(j)),j.length||(j=[{render:function(){return null}}]),j},[m,g,r]),$=H.useMemo(function(){return r==="rtl"?ee(S(v)):S(v)},[v,r]);return[v,$]}q.b=X},"y0+3":function(Ae,q,n){"use strict";n.d(q,"a",function(){return S}),n.d(q,"b",function(){return ee});var w=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},fe={cssFloat:1,styleFloat:1,float:1};function ce(X){return X.nodeType===1?X.ownerDocument.defaultView.getComputedStyle(X,null):{}}function H(X,p,m){if(p=p.toLowerCase(),m==="auto"){if(p==="height")return X.offsetHeight;if(p==="width")return X.offsetWidth}return p in x||(x[p]=w.test(p)),x[p]?parseFloat(m)||0:m}function o(X,p){var m=arguments.length,z=ce(X);return p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,m===1?z:H(X,p,z[p]||X.style[p])}function le(X,p,m){var z=arguments.length;if(p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,z===3)return typeof m=="number"&&w.test(p)&&(m="".concat(m,"px")),X.style[p]=m,m;for(var N in p)p.hasOwnProperty(N)&&le(X,N,p[N]);return ce(X)}function Y(X){return X===document.body?document.documentElement.clientWidth:X.offsetWidth}function R(X){return X===document.body?window.innerHeight||document.documentElement.clientHeight:X.offsetHeight}function T(){var X=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:X,height:p}}function S(){var X=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:X,height:p}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ee(X){var p=X.getBoundingClientRect(),m=document.documentElement;return{left:p.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__TrainingProgram__Edit.f9d36f81.async.js b/p__Engineering__Lists__TrainingProgram__Edit.f9d36f81.async.js index 9832c1f2ab..6adf7abd11 100644 --- a/p__Engineering__Lists__TrainingProgram__Edit.f9d36f81.async.js +++ b/p__Engineering__Lists__TrainingProgram__Edit.f9d36f81.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[139,6,8],{"55Ip":function(Te,q,n){"use strict";n.d(q,"a",function(){return F}),n.d(q,"b",function(){return K});var L=n("Ty5D"),O=n("dI71"),fe=n("q1tI"),ce=n.n(fe),H=n("YS25"),o=n("17x9"),le=n.n(o),Y=n("wx14"),j=n("zLVn"),S=n("9R94"),A=function(r){Object(O.a)(a,r);function a(){for(var E,v=arguments.length,$=new Array(v),x=0;x=0||v.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;r.setState({goInputText:""}),f(r.getValidValue())},r.go=function(v){var $=r.state.goInputText;if($==="")return;(v.keyCode===X.ENTER||v.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return Object(H.a)(c,[{key:"getValidValue",value:function(){var a=this.state,b=a.goInputText,E=a.current;return!b||isNaN(b)?E:Number(b)}},{key:"getPageSizeOptions",value:function(){var a=this.props,b=a.pageSize,E=a.pageSizeOptions;return E.some(function(v){return v.toString()===b.toString()})?E:E.concat([b.toString()]).sort(function(v,$){var x=isNaN(Number(v))?0:Number(v),f=isNaN(Number($))?0:Number($);return x-f})}},{key:"render",value:function(){var a=this,b=this.props,E=b.pageSize,v=b.locale,$=b.rootPrefixCls,x=b.changeSize,f=b.quickGo,y=b.goButton,u=b.selectComponentClass,s=b.buildOptionText,h=b.selectPrefixCls,l=b.disabled,d=this.state.goInputText,R="".concat($,"-options"),w=u,G=null,P=null,M=null;if(!x&&!f)return null;var W=this.getPageSizeOptions();if(x&&w){var I=W.map(function(_,re){return j.a.createElement(w.Option,{key:re,value:_.toString()},(s||a.buildOptionText)(_))});G=j.a.createElement(w,{disabled:l,prefixCls:h,showSearch:!1,className:"".concat(R,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(E||W[0]).toString(),onChange:this.changeSize,getPopupContainer:function(re){return re.parentNode}},I)}return f&&(y&&(M=typeof y=="boolean"?j.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:l,className:"".concat(R,"-quick-jumper-button")},v.jump_to_confirm):j.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),P=j.a.createElement("div",{className:"".concat(R,"-quick-jumper")},v.jump_to,j.a.createElement("input",{disabled:l,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,M)),j.a.createElement("li",{className:"".concat(R)},G,P)}}]),c}(j.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=p,z=n("N2Kk");function N(){}function F(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function V(U,K,c){return c}function k(U,K,c){var r=typeof U=="undefined"?K.pageSize:U;return Math.floor((c.total-1)/r)+1}var te=function(U){Object(o.a)(c,U);var K=Object(le.a)(c);function c(r){var a;Object(ce.a)(this,c),a=K.call(this,r),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(k(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(x,f){var y=a.props.prefixCls,u=x||j.a.createElement("button",{type:"button","aria-label":f,className:"".concat(y,"-item-link")});return typeof x=="function"&&(u=j.a.createElement(x,Object(fe.a)({},a.props))),u},a.savePaginationNode=function(x){a.paginationNode=x},a.isValid=function(x){return F(x)&&x!==a.state.current},a.shouldDisplayQuickJumper=function(){var x=a.props,f=x.showQuickJumper,y=x.pageSize,u=x.total;return u<=y?!1:f},a.handleKeyDown=function(x){(x.keyCode===X.ARROW_UP||x.keyCode===X.ARROW_DOWN)&&x.preventDefault()},a.handleKeyUp=function(x){var f=a.getValidValue(x),y=a.state.currentInputValue;f!==y&&a.setState({currentInputValue:f}),x.keyCode===X.ENTER?a.handleChange(f):x.keyCode===X.ARROW_UP?a.handleChange(f-1):x.keyCode===X.ARROW_DOWN&&a.handleChange(f+1)},a.changePageSize=function(x){var f=a.state.current,y=k(x,a.state,a.props);f=f>y?y:f,y===0&&(f=a.state.current),typeof x=="number"&&("pageSize"in a.props||a.setState({pageSize:x}),"current"in a.props||a.setState({current:f,currentInputValue:f})),a.props.onShowSizeChange(f,x),"onChange"in a.props&&a.props.onChange&&a.props.onChange(f,x)},a.handleChange=function(x){var f=a.props.disabled,y=x;if(a.isValid(y)&&!f){var u=k(void 0,a.state,a.props);y>u?y=u:y<1&&(y=1),"current"in a.props||a.setState({current:y,currentInputValue:y});var s=a.state.pageSize;return a.props.onChange(y,s),y}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?y-2:0),s=2;s=E?$=E:$=Number(b),$}},{key:"getShowSizeChanger",value:function(){var a=this.props,b=a.showSizeChanger,E=a.total,v=a.totalBoundaryShowSizeChanger;return typeof b!="undefined"?b:E>v}},{key:"renderPrev",value:function(a){var b=this.props,E=b.prevIcon,v=b.itemRender,$=v(a,"prev",this.getItemIcon(E,"prev page")),x=!this.hasPrev();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:x}):$}},{key:"renderNext",value:function(a){var b=this.props,E=b.nextIcon,v=b.itemRender,$=v(a,"next",this.getItemIcon(E,"next page")),x=!this.hasNext();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:x}):$}},{key:"render",value:function(){var a=this,b=this.props,E=b.prefixCls,v=b.className,$=b.style,x=b.disabled,f=b.hideOnSinglePage,y=b.total,u=b.locale,s=b.showQuickJumper,h=b.showLessItems,l=b.showTitle,d=b.showTotal,R=b.simple,w=b.itemRender,G=b.showPrevNextJumpers,P=b.jumpPrevIcon,M=b.jumpNextIcon,W=b.selectComponentClass,I=b.selectPrefixCls,_=b.pageSizeOptions,re=this.state,e=re.current,i=re.pageSize,t=re.currentInputValue;if(f===!0&&y<=i)return null;var g=k(void 0,this.state,this.props),D=[],B=null,oe=null,he=null,Ce=null,Oe=null,ve=s&&s.goButton,be=h?1:2,Ie=e-1>0?e-1:0,ze=e+1=be*2&&e!==1+2&&(D[0]=Object(Y.cloneElement)(D[0],{className:"".concat(E,"-item-after-jump-prev")}),D.unshift(B)),g-e>=be*2&&e!==g-2&&(D[D.length-1]=Object(Y.cloneElement)(D[D.length-1],{className:"".concat(E,"-item-before-jump-next")}),D.push(oe)),Q!==1&&D.unshift(he),ue!==g&&D.push(Ce)}var ne=null;d&&(ne=j.a.createElement("li",{className:"".concat(E,"-total-text")},d(y,[y===0?0:(e-1)*i+1,e*i>y?y:e*i])));var ae=!this.hasPrev()||!g,ie=!this.hasNext()||!g;return j.a.createElement("ul",Object(L.a)({className:A()(E,v,Object(O.a)({},"".concat(E,"-disabled"),x)),style:$,unselectable:"unselectable",ref:this.savePaginationNode},He),ne,j.a.createElement("li",{title:l?u.prev_page:null,onClick:this.prev,tabIndex:ae?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(E,"-prev"),Object(O.a)({},"".concat(E,"-disabled"),ae)),"aria-disabled":ae},this.renderPrev(Ie)),D,j.a.createElement("li",{title:l?u.next_page:null,onClick:this.next,tabIndex:ie?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(E,"-next"),Object(O.a)({},"".concat(E,"-disabled"),ie)),"aria-disabled":ie},this.renderNext(ze)),j.a.createElement(m,{disabled:x,locale:u,rootPrefixCls:E,selectComponentClass:W,selectPrefixCls:I,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:e,pageSize:i,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ve}))}}],[{key:"getDerivedStateFromProps",value:function(a,b){var E={};if("current"in a&&(E.current=a.current,a.current!==b.current&&(E.currentInputValue=E.current)),"pageSize"in a&&a.pageSize!==b.pageSize){var v=b.current,$=k(a.pageSize,b,a);v=v>$?$:v,"current"in a||(E.current=v,E.currentInputValue=v),E.pageSize=a.pageSize}return E}}]),c}(j.a.Component);te.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:N,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:N,locale:z.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var T=te},"6RRn":function(Te,q,n){"use strict";var L=n("wCXF"),O=n("n6Qo");n.d(q,"b",function(){return O.a});var fe=n("IBYe"),ce=n("6eGT"),H=n("hW8S");n.d(q,"a",function(){return H.a}),q.c=L.b},"6eGT":function(Te,q,n){"use strict";function L(O){return null}q.a=L},"815F":function(Te,q,n){"use strict";n.d(q,"e",function(){return le}),n.d(q,"c",function(){return j}),n.d(q,"d",function(){return S}),n.d(q,"a",function(){return Z}),n.d(q,"f",function(){return ee}),n.d(q,"b",function(){return X});var L=n("KQm4"),O=n("VTBJ"),fe=n("Ff2n"),ce=n("Zm9Q"),H=n("Kwbf"),o=n("OZM5");function le(p,m){return p!=null?p:m}function Y(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function z(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(V){var k=V.key,te=V.children;Object(H.a)(k!=null,"Tree node must have a certain key: [".concat(F).concat(k,"]"));var T=String(k);Object(H.a)(!m.has(T)||k===null||k===void 0,"Same 'key' exist in the Tree: ".concat(T)),m.set(T,!0),z(te,"".concat(F).concat(T," > "))})}z(p)}function j(p){function m(z){var N=Object(ce.a)(z);return N.map(function(F){if(!Object(o.i)(F))return Object(H.a)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var V=F.key,k=F.props,te=k.children,T=Object(fe.a)(k,["children"]),U=Object(O.a)({key:V},T),K=m(te);return K.length&&(U.children=K),U}).filter(function(F){return F})}return m(p)}function S(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(m===!0?[]:m),N=[];function F(V){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(te,T){var U=Object(o.h)(k?k.pos:"0",T),K=le(te.key,U),c=Object(O.a)(Object(O.a)({},te),{},{parent:k,pos:U,children:null,data:te,isStart:[].concat(Object(L.a)(k?k.isStart:[]),[T===0]),isEnd:[].concat(Object(L.a)(k?k.isEnd:[]),[T===V.length-1])});return N.push(c),m===!0||z.has(K)?c.children=F(te.children||[],c):c.children=[],c})}return F(p),N}function A(p,m,z){var N;z?typeof z=="string"?N=function(k){return k[z]}:typeof z=="function"&&(N=function(k){return z(k)}):N=function(k,te){return le(k.key,te)};function F(V,k,te){var T=V?V.children:p,U=V?Object(o.h)(te.pos,k):"0";if(V){var K=N(V,U),c={node:V,index:k,pos:U,key:K,parentPos:te.node?te.pos:null,level:te.level+1};m(c)}T&&T.forEach(function(r,a){F(r,a,{node:V,pos:U,level:te?te.level+1:-1})})}F(null)}function Z(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=m.initWrapper,N=m.processEntity,F=m.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,k={},te={},T={posEntities:k,keyEntities:te};return z&&(T=z(T)||T),A(p,function(U){var K=U.node,c=U.index,r=U.pos,a=U.key,b=U.parentPos,E=U.level,v={node:K,index:c,key:a,pos:r,level:E},$=le(a,r);k[r]=v,te[$]=v,v.parent=k[b],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),N&&N(v,T)},V),F&&F(T),T}function ee(p,m){var z=m.expandedKeys,N=m.selectedKeys,F=m.loadedKeys,V=m.loadingKeys,k=m.checkedKeys,te=m.halfCheckedKeys,T=m.dragOverNodeKey,U=m.dropPosition,K=m.keyEntities,c=K[p],r={eventKey:p,expanded:z.indexOf(p)!==-1,selected:N.indexOf(p)!==-1,loaded:F.indexOf(p)!==-1,loading:V.indexOf(p)!==-1,checked:k.indexOf(p)!==-1,halfChecked:te.indexOf(p)!==-1,pos:String(c?c.pos:""),dragOver:T===p&&U===0,dragOverGapTop:T===p&&U===-1,dragOverGapBottom:T===p&&U===1};return r}function X(p){var m=p.data,z=p.expanded,N=p.selected,F=p.checked,V=p.loaded,k=p.loading,te=p.halfChecked,T=p.dragOver,U=p.dragOverGapTop,K=p.dragOverGapBottom,c=p.pos,r=p.active,a=Object(O.a)(Object(O.a)({},m),{},{expanded:z,selected:N,checked:F,loaded:V,loading:k,halfChecked:te,dragOver:T,dragOverGapTop:U,dragOverGapBottom:K,pos:c,active:r});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(H.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),p}}),a}},"AG+i":function(Te,q,n){"use strict";n.r(q);var L=n("2qtc"),O=n("kLXV"),fe=n("g9YV"),ce=n("wCAj"),H=n("k1fw"),o=n("DZo9"),le=n("8z0m"),Y=n("14J3"),j=n("BMrR"),S=n("+L6B"),A=n("2/Rp"),Z=n("jCWc"),ee=n("kPKH"),X=n("5NDa"),p=n("5rEg"),m=n("OaEy"),z=n("2fM7"),N=n("/zsF"),F=n("PArb"),V=n("sPJy"),k=n("bE4q"),te=n("miYZ"),T=n("tsqr"),U=n("9og8"),K=n("y8nQ"),c=n("Vl3Y"),r=n("tJVT"),a=n("WmNS"),b=n.n(a),E=n("q1tI"),v=n.n(E),$=n("W9XO"),x=n.n($),f=n("55Ip"),y=n("9kvl"),u=n("ErOA"),s=n("Ty5D"),h=function(d){var R,w=d.user,G={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,category:1,sort_by:null,sort_direction:null,school_id:null},P=Object(E.useState)(G),M=Object(r.a)(P,2),W=M[0],I=M[1],_=Object(E.useState)(!0),re=Object(r.a)(_,2),e=re[0],i=re[1],t=Object(E.useState)([]),g=Object(r.a)(t,2),D=g[0],B=g[1],oe=Object(E.useState)([]),he=Object(r.a)(oe,2),Ce=he[0],Oe=he[1],ve=Object(E.useState)([]),be=Object(r.a)(ve,2),Ie=be[0],ze=be[1],He=Object(E.useState)(!1),Ze=Object(r.a)(He,2),Je=Ze[0],it=Ze[1],C=Object(E.useState)(),J=Object(r.a)(C,2),Q=J[0],ue=J[1],me=c.a.useForm(),se=Object(r.a)(me,1),ne=se[0],ae=Object(E.useState)(),ie=Object(r.a)(ae,2),ge=ie[0],de=ie[1],pe=Object(E.useState)([]),_e=Object(r.a)(pe,2),ye=_e[0],Re=_e[1],Le=Object(E.useState)([]),Ae=Object(r.a)(Le,2),Ne=Ae[0],je=Ae[1],at=Object(E.useState)(!1),Be=Object(r.a)(at,2),ke=Be[0],Xe=Be[1],Ve=Object(s.h)();Object(E.useEffect)(function(){var Se;(Se=w.userInfo)!==null&&Se!==void 0&&Se.school_id&&(Ye(),Ue(),we())},[w==null||((R=w.userInfo)===null||R===void 0)?void 0:R.school_id]);function we(){return qe.apply(this,arguments)}function qe(){return qe=Object(U.a)(b.a.mark(function Se(){var Ee,xe;return b.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(u.a)("/api/ec_major_schools/0/ec_years/".concat(Ve==null||((Ee=Ve.query)===null||Ee===void 0)?void 0:Ee.ec_year_id,".json"),{method:"get"});case 2:xe=$e.sent,xe&&(ne.setFieldsValue({name:xe==null?void 0:xe.name,year:xe==null?void 0:xe.year,major_id:xe==null?void 0:xe.major_name}),xe!=null&&xe.file_id&&Re([{uid:xe==null?void 0:xe.file_id,name:xe==null?void 0:xe.file_name}]),je([xe==null?void 0:xe.major_id]||!1),ue([xe==null?void 0:xe.major_id]||!1));case 4:case"end":return $e.stop()}},Se)})),qe.apply(this,arguments)}function Ye(Se){return Ke.apply(this,arguments)}function Ke(){return Ke=Object(U.a)(b.a.mark(function Se(Ee){var xe,We;return b.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return de(Object(H.a)({},Ee)),Qe.next=3,Object(u.a)("/api/schools/".concat(w==null||((xe=w.userInfo)===null||xe===void 0)?void 0:xe.school_id,"/ec_majors.json"),{method:"get",params:Object(H.a)({per_page:1e4},Ee)});case 3:We=Qe.sent,Oe(We==null?void 0:We.ec_majors);case 5:case"end":return Qe.stop()}},Se)})),Ke.apply(this,arguments)}function Ue(){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(U.a)(b.a.mark(function Se(){var Ee;return b.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(u.a)("/api/ec_major_schools/1/ec_years/select_year.json",{method:"get"});case 2:Ee=We.sent,ze(Ee==null?void 0:Ee.year_arr);case 4:case"end":return We.stop()}},Se)})),Pe.apply(this,arguments)}var Fe=[{title:"\u4E13\u4E1A\u4EE3\u7801",dataIndex:"code",key:"code"},{title:"\u4E13\u4E1A\u540D\u79F0",dataIndex:"name",key:"name"}],nt={onRemove:function(){Re([]),Xe(!0)},beforeUpload:function(Ee){if(console.log(Ee),(Ee==null?void 0:Ee.size)>1024*1024*50)return T.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var xe=[];return xe.push(Ee),Re([].concat(xe)),Xe(!0),!1},fileList:ye};return v.a.createElement("div",{className:x.a.wrap},v.a.createElement(k.a,{separator:"",style:{padding:"20px"}},v.a.createElement(k.a.Item,null,v.a.createElement(f.a,{to:"/engineering/trainingProgram"},"\u57F9\u517B\u65B9\u6848")),v.a.createElement(k.a.Separator,null,">>"),v.a.createElement(k.a.Item,null,"\u4FEE\u6539\u57F9\u517B\u65B9\u6848")),v.a.createElement("div",{className:x.a.title},"\u57F9\u517B\u65B9\u6848\u4FE1\u606F"),v.a.createElement(F.a,{style:{padding:"0px 20px"}}),v.a.createElement("div",{style:{paddingTop:"50px"}},v.a.createElement(c.a,{labelCol:{span:8},wrapperCol:{span:8},form:ne},v.a.createElement(c.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"year",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},v.a.createElement(z.a,null,Ie==null?void 0:Ie.map(function(Se,Ee){return v.a.createElement(z.a.Option,{value:Se},Se,"\u5C4A")}))),v.a.createElement(c.a.Item,{label:v.a.createElement("div",null,v.a.createElement("span",{style:{marginRight:"4px",color:"#ff4d4f"}},"*"),v.a.createElement("label",null,"\u8BA4\u8BC1\u4E13\u4E1A"))},v.a.createElement(j.a,{gutter:8,style:{flexFlow:"initial",flexDirection:"row-reverse"},className:x.a.rowFrom},v.a.createElement(ee.a,null,v.a.createElement(c.a.Item,{name:"major_id"},v.a.createElement(p.a,{style:{color:"#000"},disabled:!0,bordered:!1}))),v.a.createElement(ee.a,{span:12},v.a.createElement(A.a,{onClick:function(){it(!0),je(Q||"")}},"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A")))),v.a.createElement(c.a.Item,{label:"\u57F9\u517B\u65B9\u6848\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{max:60,message:"\u57F9\u517B\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u8D85\u8FC760\u4E2A\u5B57"}]},v.a.createElement(p.a,null)),v.a.createElement(j.a,null,v.a.createElement(ee.a,{span:8,style:{textAlign:"right"}},v.a.createElement("label",null,"\u57F9\u517B\u65B9\u6848\u6587\u4EF6\uFF1A")),v.a.createElement(ee.a,{span:8},v.a.createElement(le.a,nt,v.a.createElement(A.a,null,"\u4E0A\u4F20\u6587\u4EF6")))))),v.a.createElement("div",{style:{textAlign:"end",paddingRight:"30px"}},v.a.createElement(A.a,{onClick:function(){y.d.push("/engineering/trainingProgram")}},"\u8FD4\u56DE"),v.a.createElement(A.a,{onClick:Object(U.a)(b.a.mark(function Se(){var Ee,xe,We,$e,Qe;return b.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return ne.submit(),et.next=3,ne.validateFields();case 3:if(We=ne.getFieldsValue(),Q){et.next=7;break}return T.b.info("\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"),et.abrupt("return");case 7:if(!(!We.name||!We.year)){et.next=9;break}return et.abrupt("return");case 9:return $e=new FormData,ye.length>0&&ke&&$e.append("file",ye[0]),$e.append("is_upfile",ke),$e.append("school_id",w==null||((Ee=w.userInfo)===null||Ee===void 0)?void 0:Ee.school_id),$e.append("major_id",Q),$e.append("name",We.name),$e.append("year",We.year),et.next=18,Object(u.a)("/api/ec_major_schools/1/ec_years/".concat(Ve==null||((xe=Ve.query)===null||xe===void 0)?void 0:xe.ec_year_id,".json"),{method:"put",body:$e},!0);case 18:Qe=et.sent,Qe.status===0&&(T.b.info("\u4FEE\u6539\u6210\u529F"),y.d.push("/engineering/trainingProgram"));case 20:case"end":return et.stop()}},Se)})),style:{marginLeft:"10px"},type:"primary"},"\u4FDD\u5B58")),v.a.createElement(O.a,{title:"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",centered:!0,visible:Je,onCancel:function(){it(!1),je([])},onOk:function(){var Ee,xe;it(!1),ue(Ne),ne.setFieldsValue({major_id:Ce==null||((Ee=Ce.filter(function(We){return We.id===parseInt(Ne)}))===null||Ee===void 0||((xe=Ee[0])===null||xe===void 0))?void 0:xe.name})}},v.a.createElement("div",{style:{display:"flex",marginBottom:"10px",alignItems:"center",justifyContent:"space-between"}},v.a.createElement(p.a.Search,{style:{width:"300px"},onSearch:function(Ee){Ye(Object(H.a)(Object(H.a)({},ge),{},{search:Ee}))},placeholder:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u4EE3\u7801\u6216\u540D\u79F0"})),v.a.createElement(ce.a,{dataSource:Ce,columns:Fe,pagination:!1,rowKey:function(Ee){return Ee.id},scroll:{y:300},rowSelection:{type:"radio",onChange:function(Ee,xe){je(Ee)},selectedRowKeys:Ne}})))};q.default=Object(y.a)(function(l){var d=l.user;return{user:d}})(h)},GfqC:function(Te,q,n){"use strict";var L=n("q1tI"),O=n.n(L),fe=n("TSYQ"),ce=n.n(fe);function H(u,s){var h="cannot "+u.method+" "+u.action+" "+s.status+"'",l=new Error(h);return l.status=s.status,l.method=u.method,l.url=u.action,l}function o(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(h){return s}}function le(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(R){R.total>0&&(R.percent=R.loaded/R.total*100),u.onProgress(R)});var h=new FormData;u.data&&Object.keys(u.data).forEach(function(d){var R=u.data[d];if(Array.isArray(R)){R.forEach(function(w){h.append(d+"[]",w)});return}h.append(d,u.data[d])}),u.file instanceof Blob?h.append(u.filename,u.file,u.file.name):h.append(u.filename,u.file),s.onerror=function(R){u.onError(R)},s.onload=function(){return s.status<200||s.status>=300?u.onError(H(u,s),o(s)):u.onSuccess(o(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var l=u.headers||{};return l["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(function(d){l[d]!==null&&s.setRequestHeader(d,l[d])}),s.send(h),{abort:function(){s.abort()}}}var Y=+new Date,j=0;function S(){return"rc-upload-"+Y+"-"+ ++j}function A(u,s){return u.indexOf(s,u.length-s.length)!==-1}var Z=function(u,s){if(u&&s){var h=Array.isArray(s)?s:s.split(","),l=u.name||"",d=u.type||"",R=d.replace(/\/.*$/,"");return h.some(function(w){var G=w.trim();return G.charAt(0)==="."?A(l.toLowerCase(),G.toLowerCase()):/\/\*$/.test(G)?R===G.replace(/\/.*$/,""):d===G})}return!0};function ee(u,s){var h=u.createReader(),l=[];function d(){h.readEntries(function(R){var w=Array.prototype.slice.apply(R);l=l.concat(w);var G=!w.length;G?s(l):d()})}d()}var X=function(s,h,l){var d=function R(w,G){G=G||"",w.isFile?w.file(function(P){l(P)&&(w.fullPath&&!P.webkitRelativePath&&(Object.defineProperties(P,{webkitRelativePath:{writable:!0}}),P.webkitRelativePath=w.fullPath.replace(/^\//,""),Object.defineProperties(P,{webkitRelativePath:{writable:!1}})),h([P]))}):w.isDirectory&&ee(w,function(P){P.forEach(function(M){R(M,""+G+w.name+"/")})})};s.forEach(function(R){d(R.webkitGetAsEntry())})},p=X,m=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,l))continue;h[l]=u[l]}return h}function k(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function te(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function T(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var U=function(s){return Object.keys(s).reduce(function(h,l){return(l.substr(0,5)==="data-"||l.substr(0,5)==="aria-"||l==="role")&&(h[l]=s[l]),h},{})},K=function(u){T(s,u);function s(){var h,l,d,R;k(this,s);for(var w=arguments.length,G=Array(w),P=0;P1&&arguments[1]!==void 0?arguments[1]:1,ie=be.length,ge=0;ge1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(h).map(function(d,R){if(!H.isValidElement(d)||!d.type)return null;var w=d.type.isSelectOptGroup,G=d.key,P=d.props,M=P.children,W=Object(le.a)(P,["children"]);return l||!w?K(d):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(G===null?R:G,"__"),label:G},W),{},{options:c(M)})}).filter(function(d){return d})}var r=n("2Qr1"),a=n("qNPg"),b=n("U8pU"),E=n("Kwbf"),v=n("WKfj");function $(h){var l=h.mode,d=h.options,R=h.children,w=h.backfill,G=h.allowClear,P=h.placeholder,M=h.getInputElement,W=h.showSearch,I=h.onSearch,_=h.defaultOpen,re=h.autoFocus,e=h.labelInValue,i=h.value,t=h.inputValue,g=h.optionLabelProp,D=l==="multiple"||l==="tags",B=W!==void 0?W:D||l==="combobox",oe=d||c(R);if(Object(E.a)(l!=="tags"||oe.every(function(ve){return!ve.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),l==="tags"||l==="combobox"){var he=oe.some(function(ve){return ve.options?ve.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in ve?ve.value:ve.key)=="number"});Object(E.a)(!he,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(E.a)(l!=="combobox"||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(E.a)(l==="combobox"||!w,"`backfill` only works with `combobox` mode."),Object(E.a)(l==="combobox"||!M,"`getInputElement` only work with `combobox` mode."),Object(E.b)(l!=="combobox"||!M||!G||!P,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!B&&l!=="combobox"&&l!=="tags"&&Object(E.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(E.b)(!_||re,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),i!=null){var Ce=Object(v.d)(i);Object(E.a)(!e||Ce.every(function(ve){return Object(b.a)(ve)==="object"&&("key"in ve||"value"in ve)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(E.a)(!D||Array.isArray(i),"`value` should be array when `mode` is `multiple` or `tags`")}if(R){var Oe=null;Object(U.a)(R).some(function(ve){if(!H.isValidElement(ve)||!ve.type)return!1;var be=ve.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Ie=Object(U.a)(ve.props.children).every(function(ze){return!H.isValidElement(ze)||!ve.type||ze.type.isSelectOption?!0:(Oe=ze.type,!1)});return!Ie}return Oe=be,!0}),Oe&&Object(E.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Oe.displayName||Oe.name||Oe,"`.")),Object(E.a)(t===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=$,f=Object(a.a)({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:c,flattenOptions:r.d,getLabeledValue:r.e,filterOptions:r.b,isValueDisabled:r.g,findValueOption:r.c,warningProps:x,fillOptionsWithMissingValue:r.a}),y=function(h){Object(fe.a)(d,h);var l=Object(ce.a)(d);function d(){var R;return Object(L.a)(this,d),R=l.apply(this,arguments),R.selectRef=H.createRef(),R.focus=function(){R.selectRef.current.focus()},R.blur=function(){R.selectRef.current.blur()},R}return Object(O.a)(d,[{key:"render",value:function(){return H.createElement(f,Object.assign({ref:this.selectRef},this.props))}}]),d}(H.Component);y.Option=V,y.OptGroup=te;var u=y,s=q.c=u},NvD2:function(Te,q,n){"use strict";n.d(q,"a",function(){return o});var L=n("Kwbf");function O(le,Y){var j=new Set;return le.forEach(function(S){Y.has(S)||j.add(S)}),j}function fe(le){var Y=le||{},j=Y.disabled,S=Y.disableCheckbox,A=Y.checkable;return!!(j||S)||A===!1}function ce(le,Y,j,S){for(var A=new Set(le),Z=new Set,ee=0;ee<=j;ee+=1){var X=Y.get(ee)||new Set;X.forEach(function(N){var F=N.key,V=N.node,k=N.children,te=k===void 0?[]:k;A.has(F)&&!S(V)&&te.filter(function(T){return!S(T.node)}).forEach(function(T){A.add(T.key)})})}for(var p=new Set,m=j;m>=0;m-=1){var z=Y.get(m)||new Set;z.forEach(function(N){var F=N.parent,V=N.node;if(S(V)||!N.parent||p.has(N.parent.key))return;if(S(N.parent.node)){p.add(F.key);return}var k=!0,te=!1;(F.children||[]).filter(function(T){return!S(T.node)}).forEach(function(T){var U=T.key,K=A.has(U);k&&!K&&(k=!1),!te&&(K||Z.has(U))&&(te=!0)}),k&&A.add(F.key),te&&Z.add(F.key),p.add(F.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(O(Z,A))}}function H(le,Y,j,S,A){for(var Z=new Set(le),ee=new Set(Y),X=0;X<=S;X+=1){var p=j.get(X)||new Set;p.forEach(function(F){var V=F.key,k=F.node,te=F.children,T=te===void 0?[]:te;!Z.has(V)&&!ee.has(V)&&!A(k)&&T.filter(function(U){return!A(U.node)}).forEach(function(U){Z.delete(U.key)})})}ee=new Set;for(var m=new Set,z=S;z>=0;z-=1){var N=j.get(z)||new Set;N.forEach(function(F){var V=F.parent,k=F.node;if(A(k)||!F.parent||m.has(F.parent.key))return;if(A(F.parent.node)){m.add(V.key);return}var te=!0,T=!1;(V.children||[]).filter(function(U){return!A(U.node)}).forEach(function(U){var K=U.key,c=Z.has(K);te&&!c&&(te=!1),!T&&(c||ee.has(K))&&(T=!0)}),te||Z.delete(V.key),T&&ee.add(V.key),m.add(V.key)})}return{checkedKeys:Array.from(Z),halfCheckedKeys:Array.from(O(ee,Z))}}function o(le,Y,j,S){var A=[],Z;S?Z=S:Z=fe;var ee=new Set(le.filter(function(z){var N=!!j[z];return N||A.push(z),N})),X=new Map,p=0;Object.keys(j).forEach(function(z){var N=j[z],F=N.level,V=X.get(F);V||(V=new Set,X.set(F,V)),V.add(N),p=Math.max(p,F)}),Object(L.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var m;return Y===!0?m=ce(ee,X,p,Z):m=H(ee,Y.halfCheckedKeys,X,p,Z),m}},OZM5:function(Te,q,n){"use strict";n.d(q,"b",function(){return S}),n.d(q,"a",function(){return A}),n.d(q,"k",function(){return Z}),n.d(q,"h",function(){return ee}),n.d(q,"i",function(){return X}),n.d(q,"g",function(){return p}),n.d(q,"c",function(){return m}),n.d(q,"d",function(){return z}),n.d(q,"j",function(){return V}),n.d(q,"e",function(){return k}),n.d(q,"f",function(){return te});var L=n("KQm4"),O=n("U8pU"),fe=n("Ff2n"),ce=n("q1tI"),H=n.n(ce),o=n("Kwbf"),le=n("WaYH"),Y=.25,j=2;function S(T,U){var K=T.slice(),c=K.indexOf(U);return c>=0&&K.splice(c,1),K}function A(T,U){var K=T.slice();return K.indexOf(U)===-1&&K.push(U),K}function Z(T){return T.split("-")}function ee(T,U){return"".concat(T,"-").concat(U)}function X(T){return T&&T.type&&T.type.isTreeNode}function p(T,U){var K=[T],c=U[T];function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(b){var E=b.key,v=b.children;K.push(E),r(v)})}return r(c.children),K}function m(T,U){var K=T.clientY,c=U.selectHandle.getBoundingClientRect(),r=c.top,a=c.bottom,b=c.height,E=Math.max(b*Y,j);return K<=r+E?-1:K>=a-E?1:0}function z(T,U){if(!T)return;var K=U.multiple;return K?T.slice():T.length?[T[0]]:T}var N=function(U){return U};function F(T,U){if(!T)return[];var K=U||{},c=K.processProps,r=c===void 0?N:c,a=Array.isArray(T)?T:[T];return a.map(function(b){var E=b.children,v=Object(fe.a)(b,["children"]),$=F(E,U);return H.a.createElement(le.a,Object.assign({},r(v)),$)})}function V(T){if(!T)return null;var U;if(Array.isArray(T))U={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(O.a)(T)==="object")U={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function k(T,U){var K=new Set;function c(r){if(K.has(r))return;var a=U[r];if(!a)return;K.add(r);var b=a.parent,E=a.node;if(E.disabled)return;b&&c(b.key)}return(T||[]).forEach(function(r){c(r)}),Object(L.a)(K)}function te(T){var U={};return Object.keys(T).forEach(function(K){(K.startsWith("data-")||K.startsWith("aria-"))&&(U[K]=T[K])}),U}},"SA+Z":function(Te,q,n){var L=n("wTVA"),O=n("EbDI"),fe=n("ZhPi"),ce=n("wkBT");function H(o){return L(o)||O(o)||fe(o)||ce()}Te.exports=H,Te.exports.__esModule=!0,Te.exports.default=Te.exports},W9XO:function(Te,q,n){Te.exports={flex_box_center:"flex_box_center___1UcR2",flex_space_between:"flex_space_between___6P5YL",flex_box_vertical_center:"flex_box_vertical_center___18GYY",flex_box_center_end:"flex_box_center_end___xPXU8",flex_box_column:"flex_box_column___2dLqd",wrap:"wrap___bFbVo",title:"title___1apta",control:"control___2ITuY",label:"label___95jBm",rowFrom:"rowFrom___2ziTk",customTable:"customTable___3EP5c"}},WaYH:function(Te,q,n){"use strict";var L=n("rePB"),O=n("Ff2n"),fe=n("VTBJ"),ce=n("1OyB"),H=n("vuIU"),o=n("JX7q"),le=n("Ji7U"),Y=n("LK+K"),j=n("q1tI"),S=n("TSYQ"),A=n.n(S),Z=n("sboe"),ee=n("OZM5"),X=function(U){var K=U.prefixCls,c=U.level,r=U.isStart,a=U.isEnd;if(!c)return null;for(var b="".concat(K,"-indent-unit"),E=[],v=0;v=0||v.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;r.setState({goInputText:""}),f(r.getValidValue())},r.go=function(v){var $=r.state.goInputText;if($==="")return;(v.keyCode===X.ENTER||v.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return Object(H.a)(c,[{key:"getValidValue",value:function(){var a=this.state,b=a.goInputText,E=a.current;return!b||isNaN(b)?E:Number(b)}},{key:"getPageSizeOptions",value:function(){var a=this.props,b=a.pageSize,E=a.pageSizeOptions;return E.some(function(v){return v.toString()===b.toString()})?E:E.concat([b.toString()]).sort(function(v,$){var x=isNaN(Number(v))?0:Number(v),f=isNaN(Number($))?0:Number($);return x-f})}},{key:"render",value:function(){var a=this,b=this.props,E=b.pageSize,v=b.locale,$=b.rootPrefixCls,x=b.changeSize,f=b.quickGo,y=b.goButton,u=b.selectComponentClass,s=b.buildOptionText,h=b.selectPrefixCls,l=b.disabled,d=this.state.goInputText,R="".concat($,"-options"),w=u,G=null,P=null,M=null;if(!x&&!f)return null;var W=this.getPageSizeOptions();if(x&&w){var I=W.map(function(_,re){return j.a.createElement(w.Option,{key:re,value:_.toString()},(s||a.buildOptionText)(_))});G=j.a.createElement(w,{disabled:l,prefixCls:h,showSearch:!1,className:"".concat(R,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(E||W[0]).toString(),onChange:this.changeSize,getPopupContainer:function(re){return re.parentNode}},I)}return f&&(y&&(M=typeof y=="boolean"?j.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:l,className:"".concat(R,"-quick-jumper-button")},v.jump_to_confirm):j.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),P=j.a.createElement("div",{className:"".concat(R,"-quick-jumper")},v.jump_to,j.a.createElement("input",{disabled:l,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,M)),j.a.createElement("li",{className:"".concat(R)},G,P)}}]),c}(j.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=p,z=n("N2Kk");function N(){}function F(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function V(U,K,c){return c}function k(U,K,c){var r=typeof U=="undefined"?K.pageSize:U;return Math.floor((c.total-1)/r)+1}var te=function(U){Object(o.a)(c,U);var K=Object(le.a)(c);function c(r){var a;Object(ce.a)(this,c),a=K.call(this,r),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(k(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(x,f){var y=a.props.prefixCls,u=x||j.a.createElement("button",{type:"button","aria-label":f,className:"".concat(y,"-item-link")});return typeof x=="function"&&(u=j.a.createElement(x,Object(fe.a)({},a.props))),u},a.savePaginationNode=function(x){a.paginationNode=x},a.isValid=function(x){return F(x)&&x!==a.state.current},a.shouldDisplayQuickJumper=function(){var x=a.props,f=x.showQuickJumper,y=x.pageSize,u=x.total;return u<=y?!1:f},a.handleKeyDown=function(x){(x.keyCode===X.ARROW_UP||x.keyCode===X.ARROW_DOWN)&&x.preventDefault()},a.handleKeyUp=function(x){var f=a.getValidValue(x),y=a.state.currentInputValue;f!==y&&a.setState({currentInputValue:f}),x.keyCode===X.ENTER?a.handleChange(f):x.keyCode===X.ARROW_UP?a.handleChange(f-1):x.keyCode===X.ARROW_DOWN&&a.handleChange(f+1)},a.changePageSize=function(x){var f=a.state.current,y=k(x,a.state,a.props);f=f>y?y:f,y===0&&(f=a.state.current),typeof x=="number"&&("pageSize"in a.props||a.setState({pageSize:x}),"current"in a.props||a.setState({current:f,currentInputValue:f})),a.props.onShowSizeChange(f,x),"onChange"in a.props&&a.props.onChange&&a.props.onChange(f,x)},a.handleChange=function(x){var f=a.props.disabled,y=x;if(a.isValid(y)&&!f){var u=k(void 0,a.state,a.props);y>u?y=u:y<1&&(y=1),"current"in a.props||a.setState({current:y,currentInputValue:y});var s=a.state.pageSize;return a.props.onChange(y,s),y}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?y-2:0),s=2;s=E?$=E:$=Number(b),$}},{key:"getShowSizeChanger",value:function(){var a=this.props,b=a.showSizeChanger,E=a.total,v=a.totalBoundaryShowSizeChanger;return typeof b!="undefined"?b:E>v}},{key:"renderPrev",value:function(a){var b=this.props,E=b.prevIcon,v=b.itemRender,$=v(a,"prev",this.getItemIcon(E,"prev page")),x=!this.hasPrev();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:x}):$}},{key:"renderNext",value:function(a){var b=this.props,E=b.nextIcon,v=b.itemRender,$=v(a,"next",this.getItemIcon(E,"next page")),x=!this.hasNext();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:x}):$}},{key:"render",value:function(){var a=this,b=this.props,E=b.prefixCls,v=b.className,$=b.style,x=b.disabled,f=b.hideOnSinglePage,y=b.total,u=b.locale,s=b.showQuickJumper,h=b.showLessItems,l=b.showTitle,d=b.showTotal,R=b.simple,w=b.itemRender,G=b.showPrevNextJumpers,P=b.jumpPrevIcon,M=b.jumpNextIcon,W=b.selectComponentClass,I=b.selectPrefixCls,_=b.pageSizeOptions,re=this.state,e=re.current,i=re.pageSize,t=re.currentInputValue;if(f===!0&&y<=i)return null;var g=k(void 0,this.state,this.props),D=[],B=null,oe=null,he=null,Ce=null,Oe=null,ve=s&&s.goButton,be=h?1:2,Ie=e-1>0?e-1:0,ze=e+1=be*2&&e!==1+2&&(D[0]=Object(Y.cloneElement)(D[0],{className:"".concat(E,"-item-after-jump-prev")}),D.unshift(B)),g-e>=be*2&&e!==g-2&&(D[D.length-1]=Object(Y.cloneElement)(D[D.length-1],{className:"".concat(E,"-item-before-jump-next")}),D.push(oe)),Q!==1&&D.unshift(he),ue!==g&&D.push(Ce)}var ne=null;d&&(ne=j.a.createElement("li",{className:"".concat(E,"-total-text")},d(y,[y===0?0:(e-1)*i+1,e*i>y?y:e*i])));var ae=!this.hasPrev()||!g,ie=!this.hasNext()||!g;return j.a.createElement("ul",Object(L.a)({className:A()(E,v,Object(O.a)({},"".concat(E,"-disabled"),x)),style:$,unselectable:"unselectable",ref:this.savePaginationNode},He),ne,j.a.createElement("li",{title:l?u.prev_page:null,onClick:this.prev,tabIndex:ae?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(E,"-prev"),Object(O.a)({},"".concat(E,"-disabled"),ae)),"aria-disabled":ae},this.renderPrev(Ie)),D,j.a.createElement("li",{title:l?u.next_page:null,onClick:this.next,tabIndex:ie?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(E,"-next"),Object(O.a)({},"".concat(E,"-disabled"),ie)),"aria-disabled":ie},this.renderNext(ze)),j.a.createElement(m,{disabled:x,locale:u,rootPrefixCls:E,selectComponentClass:W,selectPrefixCls:I,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:e,pageSize:i,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ve}))}}],[{key:"getDerivedStateFromProps",value:function(a,b){var E={};if("current"in a&&(E.current=a.current,a.current!==b.current&&(E.currentInputValue=E.current)),"pageSize"in a&&a.pageSize!==b.pageSize){var v=b.current,$=k(a.pageSize,b,a);v=v>$?$:v,"current"in a||(E.current=v,E.currentInputValue=v),E.pageSize=a.pageSize}return E}}]),c}(j.a.Component);te.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:N,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:N,locale:z.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var S=te},"6RRn":function(Se,q,n){"use strict";var L=n("wCXF"),O=n("n6Qo");n.d(q,"b",function(){return O.a});var fe=n("IBYe"),ce=n("6eGT"),H=n("hW8S");n.d(q,"a",function(){return H.a}),q.c=L.b},"6eGT":function(Se,q,n){"use strict";function L(O){return null}q.a=L},"815F":function(Se,q,n){"use strict";n.d(q,"e",function(){return le}),n.d(q,"c",function(){return j}),n.d(q,"d",function(){return T}),n.d(q,"a",function(){return Z}),n.d(q,"f",function(){return ee}),n.d(q,"b",function(){return X});var L=n("KQm4"),O=n("VTBJ"),fe=n("Ff2n"),ce=n("Zm9Q"),H=n("Kwbf"),o=n("OZM5");function le(p,m){return p!=null?p:m}function Y(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function z(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(V){var k=V.key,te=V.children;Object(H.a)(k!=null,"Tree node must have a certain key: [".concat(F).concat(k,"]"));var S=String(k);Object(H.a)(!m.has(S)||k===null||k===void 0,"Same 'key' exist in the Tree: ".concat(S)),m.set(S,!0),z(te,"".concat(F).concat(S," > "))})}z(p)}function j(p){function m(z){var N=Object(ce.a)(z);return N.map(function(F){if(!Object(o.i)(F))return Object(H.a)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var V=F.key,k=F.props,te=k.children,S=Object(fe.a)(k,["children"]),U=Object(O.a)({key:V},S),K=m(te);return K.length&&(U.children=K),U}).filter(function(F){return F})}return m(p)}function T(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(m===!0?[]:m),N=[];function F(V){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(te,S){var U=Object(o.h)(k?k.pos:"0",S),K=le(te.key,U),c=Object(O.a)(Object(O.a)({},te),{},{parent:k,pos:U,children:null,data:te,isStart:[].concat(Object(L.a)(k?k.isStart:[]),[S===0]),isEnd:[].concat(Object(L.a)(k?k.isEnd:[]),[S===V.length-1])});return N.push(c),m===!0||z.has(K)?c.children=F(te.children||[],c):c.children=[],c})}return F(p),N}function A(p,m,z){var N;z?typeof z=="string"?N=function(k){return k[z]}:typeof z=="function"&&(N=function(k){return z(k)}):N=function(k,te){return le(k.key,te)};function F(V,k,te){var S=V?V.children:p,U=V?Object(o.h)(te.pos,k):"0";if(V){var K=N(V,U),c={node:V,index:k,pos:U,key:K,parentPos:te.node?te.pos:null,level:te.level+1};m(c)}S&&S.forEach(function(r,a){F(r,a,{node:V,pos:U,level:te?te.level+1:-1})})}F(null)}function Z(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=m.initWrapper,N=m.processEntity,F=m.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,k={},te={},S={posEntities:k,keyEntities:te};return z&&(S=z(S)||S),A(p,function(U){var K=U.node,c=U.index,r=U.pos,a=U.key,b=U.parentPos,E=U.level,v={node:K,index:c,key:a,pos:r,level:E},$=le(a,r);k[r]=v,te[$]=v,v.parent=k[b],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),N&&N(v,S)},V),F&&F(S),S}function ee(p,m){var z=m.expandedKeys,N=m.selectedKeys,F=m.loadedKeys,V=m.loadingKeys,k=m.checkedKeys,te=m.halfCheckedKeys,S=m.dragOverNodeKey,U=m.dropPosition,K=m.keyEntities,c=K[p],r={eventKey:p,expanded:z.indexOf(p)!==-1,selected:N.indexOf(p)!==-1,loaded:F.indexOf(p)!==-1,loading:V.indexOf(p)!==-1,checked:k.indexOf(p)!==-1,halfChecked:te.indexOf(p)!==-1,pos:String(c?c.pos:""),dragOver:S===p&&U===0,dragOverGapTop:S===p&&U===-1,dragOverGapBottom:S===p&&U===1};return r}function X(p){var m=p.data,z=p.expanded,N=p.selected,F=p.checked,V=p.loaded,k=p.loading,te=p.halfChecked,S=p.dragOver,U=p.dragOverGapTop,K=p.dragOverGapBottom,c=p.pos,r=p.active,a=Object(O.a)(Object(O.a)({},m),{},{expanded:z,selected:N,checked:F,loaded:V,loading:k,halfChecked:te,dragOver:S,dragOverGapTop:U,dragOverGapBottom:K,pos:c,active:r});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(H.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),p}}),a}},"AG+i":function(Se,q,n){"use strict";n.r(q);var L=n("2qtc"),O=n("kLXV"),fe=n("g9YV"),ce=n("wCAj"),H=n("k1fw"),o=n("DZo9"),le=n("8z0m"),Y=n("14J3"),j=n("BMrR"),T=n("+L6B"),A=n("2/Rp"),Z=n("jCWc"),ee=n("kPKH"),X=n("5NDa"),p=n("5rEg"),m=n("OaEy"),z=n("2fM7"),N=n("/zsF"),F=n("PArb"),V=n("sPJy"),k=n("bE4q"),te=n("miYZ"),S=n("tsqr"),U=n("9og8"),K=n("y8nQ"),c=n("Vl3Y"),r=n("tJVT"),a=n("WmNS"),b=n.n(a),E=n("q1tI"),v=n.n(E),$=n("W9XO"),x=n.n($),f=n("55Ip"),y=n("9kvl"),u=n("ErOA"),s=n("Ty5D"),h=function(d){var R,w=d.user,G={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,category:1,sort_by:null,sort_direction:null,school_id:null},P=Object(E.useState)(G),M=Object(r.a)(P,2),W=M[0],I=M[1],_=Object(E.useState)(!0),re=Object(r.a)(_,2),e=re[0],i=re[1],t=Object(E.useState)([]),g=Object(r.a)(t,2),D=g[0],B=g[1],oe=Object(E.useState)([]),he=Object(r.a)(oe,2),Ce=he[0],Oe=he[1],ve=Object(E.useState)([]),be=Object(r.a)(ve,2),Ie=be[0],ze=be[1],He=Object(E.useState)(!1),Ze=Object(r.a)(He,2),Je=Ze[0],it=Ze[1],C=Object(E.useState)(),J=Object(r.a)(C,2),Q=J[0],ue=J[1],me=c.a.useForm(),se=Object(r.a)(me,1),ne=se[0],ae=Object(E.useState)(),ie=Object(r.a)(ae,2),ge=ie[0],de=ie[1],pe=Object(E.useState)([]),_e=Object(r.a)(pe,2),ye=_e[0],Re=_e[1],Le=Object(E.useState)([]),Ae=Object(r.a)(Le,2),Ne=Ae[0],je=Ae[1],at=Object(E.useState)(!1),Be=Object(r.a)(at,2),ke=Be[0],Xe=Be[1],Ve=Object(s.h)();Object(E.useEffect)(function(){var Te;(Te=w.userInfo)!==null&&Te!==void 0&&Te.school_id&&(Ye(),Ue(),we())},[w==null||((R=w.userInfo)===null||R===void 0)?void 0:R.school_id]);function we(){return qe.apply(this,arguments)}function qe(){return qe=Object(U.a)(b.a.mark(function Te(){var Ee,xe;return b.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(u.a)("/api/ec_major_schools/0/ec_years/".concat(Ve==null||((Ee=Ve.query)===null||Ee===void 0)?void 0:Ee.ec_year_id,".json"),{method:"get"});case 2:xe=$e.sent,xe&&(ne.setFieldsValue({name:xe==null?void 0:xe.name,year:xe==null?void 0:xe.year,major_id:xe==null?void 0:xe.major_name}),xe!=null&&xe.file_id&&Re([{uid:xe==null?void 0:xe.file_id,name:xe==null?void 0:xe.file_name}]),je([xe==null?void 0:xe.major_id]||!1),ue([xe==null?void 0:xe.major_id]||!1));case 4:case"end":return $e.stop()}},Te)})),qe.apply(this,arguments)}function Ye(Te){return Ke.apply(this,arguments)}function Ke(){return Ke=Object(U.a)(b.a.mark(function Te(Ee){var xe,We;return b.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return de(Object(H.a)({},Ee)),Qe.next=3,Object(u.a)("/api/schools/".concat(w==null||((xe=w.userInfo)===null||xe===void 0)?void 0:xe.school_id,"/ec_majors.json"),{method:"get",params:Object(H.a)({per_page:1e4},Ee)});case 3:We=Qe.sent,Oe(We==null?void 0:We.ec_majors);case 5:case"end":return Qe.stop()}},Te)})),Ke.apply(this,arguments)}function Ue(){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(U.a)(b.a.mark(function Te(){var Ee;return b.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(u.a)("/api/ec_major_schools/1/ec_years/select_year.json",{method:"get"});case 2:Ee=We.sent,ze(Ee==null?void 0:Ee.year_arr);case 4:case"end":return We.stop()}},Te)})),Pe.apply(this,arguments)}var Fe=[{title:"\u4E13\u4E1A\u4EE3\u7801",dataIndex:"code",key:"code"},{title:"\u4E13\u4E1A\u540D\u79F0",dataIndex:"name",key:"name"}],nt={onRemove:function(){Re([]),Xe(!0)},beforeUpload:function(Ee){if(console.log(Ee),(Ee==null?void 0:Ee.size)>1024*1024*50)return S.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var xe=[];return xe.push(Ee),Re([].concat(xe)),Xe(!0),!1},fileList:ye};return v.a.createElement("div",{className:x.a.wrap},v.a.createElement(k.a,{separator:"",style:{padding:"20px"}},v.a.createElement(k.a.Item,null,v.a.createElement(f.a,{to:"/engineering/trainingProgram"},"\u57F9\u517B\u65B9\u6848")),v.a.createElement(k.a.Separator,null,">>"),v.a.createElement(k.a.Item,null,"\u4FEE\u6539\u57F9\u517B\u65B9\u6848")),v.a.createElement("div",{className:x.a.title},"\u57F9\u517B\u65B9\u6848\u4FE1\u606F"),v.a.createElement(F.a,{style:{padding:"0px 20px"}}),v.a.createElement("div",{style:{paddingTop:"50px"}},v.a.createElement(c.a,{labelCol:{span:8},wrapperCol:{span:8},form:ne},v.a.createElement(c.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"year",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},v.a.createElement(z.a,null,Ie==null?void 0:Ie.map(function(Te,Ee){return v.a.createElement(z.a.Option,{value:Te},Te,"\u5C4A")}))),v.a.createElement(c.a.Item,{label:v.a.createElement("div",null,v.a.createElement("span",{style:{marginRight:"4px",color:"#ff4d4f"}},"*"),v.a.createElement("label",null,"\u8BA4\u8BC1\u4E13\u4E1A"))},v.a.createElement(j.a,{gutter:8,style:{flexFlow:"initial",flexDirection:"row-reverse"},className:x.a.rowFrom},v.a.createElement(ee.a,null,v.a.createElement(c.a.Item,{name:"major_id"},v.a.createElement(p.a,{style:{color:"#000"},disabled:!0,bordered:!1}))),v.a.createElement(ee.a,{span:12},v.a.createElement(A.a,{onClick:function(){it(!0),je(Q||"")}},"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A")))),v.a.createElement(c.a.Item,{label:"\u57F9\u517B\u65B9\u6848\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{max:60,message:"\u57F9\u517B\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u8D85\u8FC760\u4E2A\u5B57"}]},v.a.createElement(p.a,null)),v.a.createElement(j.a,null,v.a.createElement(ee.a,{span:8,style:{textAlign:"right"}},v.a.createElement("label",null,"\u57F9\u517B\u65B9\u6848\u6587\u4EF6\uFF1A")),v.a.createElement(ee.a,{span:8},v.a.createElement(le.a,nt,v.a.createElement(A.a,null,"\u4E0A\u4F20\u6587\u4EF6")))))),v.a.createElement("div",{style:{textAlign:"end",paddingRight:"30px"}},v.a.createElement(A.a,{onClick:function(){y.d.push("/engineering/trainingProgram")}},"\u8FD4\u56DE"),v.a.createElement(A.a,{onClick:Object(U.a)(b.a.mark(function Te(){var Ee,xe,We,$e,Qe;return b.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return ne.submit(),et.next=3,ne.validateFields();case 3:if(We=ne.getFieldsValue(),Q){et.next=7;break}return S.b.info("\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"),et.abrupt("return");case 7:if(!(!We.name||!We.year)){et.next=9;break}return et.abrupt("return");case 9:return $e=new FormData,ye.length>0&&ke&&$e.append("file",ye[0]),$e.append("is_upfile",ke),$e.append("school_id",w==null||((Ee=w.userInfo)===null||Ee===void 0)?void 0:Ee.school_id),$e.append("major_id",Q),$e.append("name",We.name),$e.append("year",We.year),et.next=18,Object(u.a)("/api/ec_major_schools/1/ec_years/".concat(Ve==null||((xe=Ve.query)===null||xe===void 0)?void 0:xe.ec_year_id,".json"),{method:"put",body:$e},!0);case 18:Qe=et.sent,Qe.status===0&&(S.b.info("\u4FEE\u6539\u6210\u529F"),y.d.push("/engineering/trainingProgram"));case 20:case"end":return et.stop()}},Te)})),style:{marginLeft:"10px"},type:"primary"},"\u4FDD\u5B58")),v.a.createElement(O.a,{title:"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",centered:!0,visible:Je,onCancel:function(){it(!1),je([])},onOk:function(){var Ee,xe;it(!1),ue(Ne),ne.setFieldsValue({major_id:Ce==null||((Ee=Ce.filter(function(We){return We.id===parseInt(Ne)}))===null||Ee===void 0||((xe=Ee[0])===null||xe===void 0))?void 0:xe.name})}},v.a.createElement("div",{style:{display:"flex",marginBottom:"10px",alignItems:"center",justifyContent:"space-between"}},v.a.createElement(p.a.Search,{style:{width:"300px"},onSearch:function(Ee){Ye(Object(H.a)(Object(H.a)({},ge),{},{search:Ee}))},placeholder:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u4EE3\u7801\u6216\u540D\u79F0"})),v.a.createElement(ce.a,{dataSource:Ce,columns:Fe,pagination:!1,rowKey:function(Ee){return Ee.id},scroll:{y:300},rowSelection:{type:"radio",onChange:function(Ee,xe){je(Ee)},selectedRowKeys:Ne}})))};q.default=Object(y.a)(function(l){var d=l.user;return{user:d}})(h)},GfqC:function(Se,q,n){"use strict";var L=n("q1tI"),O=n.n(L),fe=n("TSYQ"),ce=n.n(fe);function H(u,s){var h="cannot "+u.method+" "+u.action+" "+s.status+"'",l=new Error(h);return l.status=s.status,l.method=u.method,l.url=u.action,l}function o(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(h){return s}}function le(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(R){R.total>0&&(R.percent=R.loaded/R.total*100),u.onProgress(R)});var h=new FormData;u.data&&Object.keys(u.data).forEach(function(d){var R=u.data[d];if(Array.isArray(R)){R.forEach(function(w){h.append(d+"[]",w)});return}h.append(d,u.data[d])}),u.file instanceof Blob?h.append(u.filename,u.file,u.file.name):h.append(u.filename,u.file),s.onerror=function(R){u.onError(R)},s.onload=function(){return s.status<200||s.status>=300?u.onError(H(u,s),o(s)):u.onSuccess(o(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var l=u.headers||{};return l["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(function(d){l[d]!==null&&s.setRequestHeader(d,l[d])}),s.send(h),{abort:function(){s.abort()}}}var Y=+new Date,j=0;function T(){return"rc-upload-"+Y+"-"+ ++j}function A(u,s){return u.indexOf(s,u.length-s.length)!==-1}var Z=function(u,s){if(u&&s){var h=Array.isArray(s)?s:s.split(","),l=u.name||"",d=u.type||"",R=d.replace(/\/.*$/,"");return h.some(function(w){var G=w.trim();return G.charAt(0)==="."?A(l.toLowerCase(),G.toLowerCase()):/\/\*$/.test(G)?R===G.replace(/\/.*$/,""):d===G})}return!0};function ee(u,s){var h=u.createReader(),l=[];function d(){h.readEntries(function(R){var w=Array.prototype.slice.apply(R);l=l.concat(w);var G=!w.length;G?s(l):d()})}d()}var X=function(s,h,l){var d=function R(w,G){G=G||"",w.isFile?w.file(function(P){l(P)&&(w.fullPath&&!P.webkitRelativePath&&(Object.defineProperties(P,{webkitRelativePath:{writable:!0}}),P.webkitRelativePath=w.fullPath.replace(/^\//,""),Object.defineProperties(P,{webkitRelativePath:{writable:!1}})),h([P]))}):w.isDirectory&&ee(w,function(P){P.forEach(function(M){R(M,""+G+w.name+"/")})})};s.forEach(function(R){d(R.webkitGetAsEntry())})},p=X,m=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,l))continue;h[l]=u[l]}return h}function k(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function te(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function S(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var U=function(s){return Object.keys(s).reduce(function(h,l){return(l.substr(0,5)==="data-"||l.substr(0,5)==="aria-"||l==="role")&&(h[l]=s[l]),h},{})},K=function(u){S(s,u);function s(){var h,l,d,R;k(this,s);for(var w=arguments.length,G=Array(w),P=0;P1&&arguments[1]!==void 0?arguments[1]:1,ie=be.length,ge=0;ge1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(h).map(function(d,R){if(!H.isValidElement(d)||!d.type)return null;var w=d.type.isSelectOptGroup,G=d.key,P=d.props,M=P.children,W=Object(le.a)(P,["children"]);return l||!w?K(d):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(G===null?R:G,"__"),label:G},W),{},{options:c(M)})}).filter(function(d){return d})}var r=n("2Qr1"),a=n("qNPg"),b=n("U8pU"),E=n("Kwbf"),v=n("WKfj");function $(h){var l=h.mode,d=h.options,R=h.children,w=h.backfill,G=h.allowClear,P=h.placeholder,M=h.getInputElement,W=h.showSearch,I=h.onSearch,_=h.defaultOpen,re=h.autoFocus,e=h.labelInValue,i=h.value,t=h.inputValue,g=h.optionLabelProp,D=l==="multiple"||l==="tags",B=W!==void 0?W:D||l==="combobox",oe=d||c(R);if(Object(E.a)(l!=="tags"||oe.every(function(ve){return!ve.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),l==="tags"||l==="combobox"){var he=oe.some(function(ve){return ve.options?ve.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in ve?ve.value:ve.key)=="number"});Object(E.a)(!he,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(E.a)(l!=="combobox"||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(E.a)(l==="combobox"||!w,"`backfill` only works with `combobox` mode."),Object(E.a)(l==="combobox"||!M,"`getInputElement` only work with `combobox` mode."),Object(E.b)(l!=="combobox"||!M||!G||!P,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!B&&l!=="combobox"&&l!=="tags"&&Object(E.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(E.b)(!_||re,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),i!=null){var Ce=Object(v.d)(i);Object(E.a)(!e||Ce.every(function(ve){return Object(b.a)(ve)==="object"&&("key"in ve||"value"in ve)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(E.a)(!D||Array.isArray(i),"`value` should be array when `mode` is `multiple` or `tags`")}if(R){var Oe=null;Object(U.a)(R).some(function(ve){if(!H.isValidElement(ve)||!ve.type)return!1;var be=ve.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Ie=Object(U.a)(ve.props.children).every(function(ze){return!H.isValidElement(ze)||!ve.type||ze.type.isSelectOption?!0:(Oe=ze.type,!1)});return!Ie}return Oe=be,!0}),Oe&&Object(E.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Oe.displayName||Oe.name||Oe,"`.")),Object(E.a)(t===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var x=$,f=Object(a.a)({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:c,flattenOptions:r.d,getLabeledValue:r.e,filterOptions:r.b,isValueDisabled:r.g,findValueOption:r.c,warningProps:x,fillOptionsWithMissingValue:r.a}),y=function(h){Object(fe.a)(d,h);var l=Object(ce.a)(d);function d(){var R;return Object(L.a)(this,d),R=l.apply(this,arguments),R.selectRef=H.createRef(),R.focus=function(){R.selectRef.current.focus()},R.blur=function(){R.selectRef.current.blur()},R}return Object(O.a)(d,[{key:"render",value:function(){return H.createElement(f,Object.assign({ref:this.selectRef},this.props))}}]),d}(H.Component);y.Option=V,y.OptGroup=te;var u=y,s=q.c=u},NvD2:function(Se,q,n){"use strict";n.d(q,"a",function(){return o});var L=n("Kwbf");function O(le,Y){var j=new Set;return le.forEach(function(T){Y.has(T)||j.add(T)}),j}function fe(le){var Y=le||{},j=Y.disabled,T=Y.disableCheckbox,A=Y.checkable;return!!(j||T)||A===!1}function ce(le,Y,j,T){for(var A=new Set(le),Z=new Set,ee=0;ee<=j;ee+=1){var X=Y.get(ee)||new Set;X.forEach(function(N){var F=N.key,V=N.node,k=N.children,te=k===void 0?[]:k;A.has(F)&&!T(V)&&te.filter(function(S){return!T(S.node)}).forEach(function(S){A.add(S.key)})})}for(var p=new Set,m=j;m>=0;m-=1){var z=Y.get(m)||new Set;z.forEach(function(N){var F=N.parent,V=N.node;if(T(V)||!N.parent||p.has(N.parent.key))return;if(T(N.parent.node)){p.add(F.key);return}var k=!0,te=!1;(F.children||[]).filter(function(S){return!T(S.node)}).forEach(function(S){var U=S.key,K=A.has(U);k&&!K&&(k=!1),!te&&(K||Z.has(U))&&(te=!0)}),k&&A.add(F.key),te&&Z.add(F.key),p.add(F.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(O(Z,A))}}function H(le,Y,j,T,A){for(var Z=new Set(le),ee=new Set(Y),X=0;X<=T;X+=1){var p=j.get(X)||new Set;p.forEach(function(F){var V=F.key,k=F.node,te=F.children,S=te===void 0?[]:te;!Z.has(V)&&!ee.has(V)&&!A(k)&&S.filter(function(U){return!A(U.node)}).forEach(function(U){Z.delete(U.key)})})}ee=new Set;for(var m=new Set,z=T;z>=0;z-=1){var N=j.get(z)||new Set;N.forEach(function(F){var V=F.parent,k=F.node;if(A(k)||!F.parent||m.has(F.parent.key))return;if(A(F.parent.node)){m.add(V.key);return}var te=!0,S=!1;(V.children||[]).filter(function(U){return!A(U.node)}).forEach(function(U){var K=U.key,c=Z.has(K);te&&!c&&(te=!1),!S&&(c||ee.has(K))&&(S=!0)}),te||Z.delete(V.key),S&&ee.add(V.key),m.add(V.key)})}return{checkedKeys:Array.from(Z),halfCheckedKeys:Array.from(O(ee,Z))}}function o(le,Y,j,T){var A=[],Z;T?Z=T:Z=fe;var ee=new Set(le.filter(function(z){var N=!!j[z];return N||A.push(z),N})),X=new Map,p=0;Object.keys(j).forEach(function(z){var N=j[z],F=N.level,V=X.get(F);V||(V=new Set,X.set(F,V)),V.add(N),p=Math.max(p,F)}),Object(L.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var m;return Y===!0?m=ce(ee,X,p,Z):m=H(ee,Y.halfCheckedKeys,X,p,Z),m}},OZM5:function(Se,q,n){"use strict";n.d(q,"b",function(){return T}),n.d(q,"a",function(){return A}),n.d(q,"k",function(){return Z}),n.d(q,"h",function(){return ee}),n.d(q,"i",function(){return X}),n.d(q,"g",function(){return p}),n.d(q,"c",function(){return m}),n.d(q,"d",function(){return z}),n.d(q,"j",function(){return V}),n.d(q,"e",function(){return k}),n.d(q,"f",function(){return te});var L=n("KQm4"),O=n("U8pU"),fe=n("Ff2n"),ce=n("q1tI"),H=n.n(ce),o=n("Kwbf"),le=n("WaYH"),Y=.25,j=2;function T(S,U){var K=S.slice(),c=K.indexOf(U);return c>=0&&K.splice(c,1),K}function A(S,U){var K=S.slice();return K.indexOf(U)===-1&&K.push(U),K}function Z(S){return S.split("-")}function ee(S,U){return"".concat(S,"-").concat(U)}function X(S){return S&&S.type&&S.type.isTreeNode}function p(S,U){var K=[S],c=U[S];function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(b){var E=b.key,v=b.children;K.push(E),r(v)})}return r(c.children),K}function m(S,U){var K=S.clientY,c=U.selectHandle.getBoundingClientRect(),r=c.top,a=c.bottom,b=c.height,E=Math.max(b*Y,j);return K<=r+E?-1:K>=a-E?1:0}function z(S,U){if(!S)return;var K=U.multiple;return K?S.slice():S.length?[S[0]]:S}var N=function(U){return U};function F(S,U){if(!S)return[];var K=U||{},c=K.processProps,r=c===void 0?N:c,a=Array.isArray(S)?S:[S];return a.map(function(b){var E=b.children,v=Object(fe.a)(b,["children"]),$=F(E,U);return H.a.createElement(le.a,Object.assign({},r(v)),$)})}function V(S){if(!S)return null;var U;if(Array.isArray(S))U={checkedKeys:S,halfCheckedKeys:void 0};else if(Object(O.a)(S)==="object")U={checkedKeys:S.checked||void 0,halfCheckedKeys:S.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function k(S,U){var K=new Set;function c(r){if(K.has(r))return;var a=U[r];if(!a)return;K.add(r);var b=a.parent,E=a.node;if(E.disabled)return;b&&c(b.key)}return(S||[]).forEach(function(r){c(r)}),Object(L.a)(K)}function te(S){var U={};return Object.keys(S).forEach(function(K){(K.startsWith("data-")||K.startsWith("aria-"))&&(U[K]=S[K])}),U}},"SA+Z":function(Se,q,n){var L=n("wTVA"),O=n("EbDI"),fe=n("ZhPi"),ce=n("wkBT");function H(o){return L(o)||O(o)||fe(o)||ce()}Se.exports=H,Se.exports.__esModule=!0,Se.exports.default=Se.exports},W9XO:function(Se,q,n){Se.exports={flex_box_center:"flex_box_center___1UcR2",flex_space_between:"flex_space_between___6P5YL",flex_box_vertical_center:"flex_box_vertical_center___18GYY",flex_box_center_end:"flex_box_center_end___xPXU8",flex_box_column:"flex_box_column___2dLqd",wrap:"wrap___bFbVo",title:"title___1apta",control:"control___2ITuY",label:"label___95jBm",rowFrom:"rowFrom___2ziTk",customTable:"customTable___3EP5c"}},WaYH:function(Se,q,n){"use strict";var L=n("rePB"),O=n("Ff2n"),fe=n("VTBJ"),ce=n("1OyB"),H=n("vuIU"),o=n("JX7q"),le=n("Ji7U"),Y=n("LK+K"),j=n("q1tI"),T=n("TSYQ"),A=n.n(T),Z=n("sboe"),ee=n("OZM5"),X=function(U){var K=U.prefixCls,c=U.level,r=U.isStart,a=U.isEnd;if(!c)return null;for(var b="".concat(K,"-indent-unit"),E=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,W=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(M&&x[W])return x[W];var I=window.getComputedStyle(P),_=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),re=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),e=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),i=$.map(function(g){return"".concat(g,":").concat(I.getPropertyValue(g))}).join(";"),t={sizingStyle:i,paddingSize:re,borderSize:e,boxSizing:_};return M&&W&&(x[W]=t),t}function u(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),P.getAttribute("wrap")?f.setAttribute("wrap",P.getAttribute("wrap")):f.removeAttribute("wrap");var _=y(P,M),re=_.paddingSize,e=_.borderSize,i=_.boxSizing,t=_.sizingStyle;f.setAttribute("style","".concat(t,";").concat(v)),f.value=P.value||P.placeholder||"";var g=Number.MIN_SAFE_INTEGER,D=Number.MAX_SAFE_INTEGER,B=f.scrollHeight,oe;if(i==="border-box"?B+=e:i==="content-box"&&(B-=re),W!==null||I!==null){f.value=" ";var he=f.scrollHeight-re;W!==null&&(g=he*W,i==="border-box"&&(g=g+re+e),B=Math.max(g,B)),I!==null&&(D=he*I,i==="border-box"&&(D=D+re+e),oe=B>D?"":"hidden",B=Math.min(D,B))}return{height:B,minHeight:g,maxHeight:D,overflowY:oe,resize:"none"}}var s=n("Gytx"),h=n.n(s),l;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(l||(l={}));var d=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(I){var _;return Object(O.a)(this,W),_=M.call(this,I),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(re){_.textArea=re},_.handleResize=function(re){var e=_.state.resizeStatus,i=_.props,t=i.autoSize,g=i.onResize;if(e!==l.NONE)return;typeof g=="function"&&g(re),t&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var re=_.props.autoSize;if(!re||!_.textArea)return;var e=re.minRows,i=re.maxRows,t=u(_.textArea,!1,e,i);_.setState({textareaStyles:t,resizeStatus:l.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var re=_.props,e=re.prefixCls,i=e===void 0?"rc-textarea":e,t=re.autoSize,g=re.onResize,D=re.className,B=re.disabled,oe=_.state,he=oe.textareaStyles,Ce=oe.resizeStatus,Oe=Object(a.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ve=E()(i,D,Object(Y.a)({},"".concat(i,"-disabled"),B));"value"in Oe&&(Oe.value=Oe.value||"");var be=Object(le.a)(Object(le.a)(Object(le.a)({},_.props.style),he),Ce===l.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(r,{onResize:_.handleResize,disabled:!(t||g)},o.createElement("textarea",Object(L.a)({},Oe,{className:ve,style:be,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:l.NONE},_}return Object(fe.a)(W,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!h()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,re=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,re)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),W}(o.Component),R=d,w=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(I){var _;Object(O.a)(this,W),_=M.call(this,I),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(e){_.resizableTextArea=e},_.handleChange=function(e){var i=_.props.onChange;_.setValue(e.target.value,function(){_.resizableTextArea.resizeTextarea()}),i&&i(e)},_.handleKeyDown=function(e){var i=_.props,t=i.onPressEnter,g=i.onKeyDown;e.keyCode===13&&t&&t(e),g&&g(e)};var re=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return _.state={value:re},_}return Object(fe.a)(W,[{key:"setValue",value:function(_,re){"value"in this.props||this.setState({value:_},re)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(R,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),W}(o.Component),G=q.default=w},ZpRC:function(Te,q,n){"use strict";function L(A){return typeof A=="object"&&A!=null&&A.nodeType===1}function O(A,Z){return(!Z||A!=="hidden")&&A!=="visible"&&A!=="clip"}function fe(A,Z){if(A.clientHeightZ||m>A&&z=Z&&N>=ee?m-A-X:z>Z&&Nee?z-Z+p:0}var H=function(A,Z){var ee=window,X=Z.scrollMode,p=Z.block,m=Z.inline,z=Z.boundary,N=Z.skipOverflowHiddenElements,F=typeof z=="function"?z:function(he){return he!==z};if(!L(A))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,k=[],te=A;L(te)&&F(te);){if((te=te.parentElement)===V){k.push(te);break}te!=null&&te===document.body&&fe(te)&&!fe(document.documentElement)||te!=null&&fe(te,N)&&k.push(te)}for(var T=ee.visualViewport?ee.visualViewport.width:innerWidth,U=ee.visualViewport?ee.visualViewport.height:innerHeight,K=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,r=A.getBoundingClientRect(),a=r.height,b=r.width,E=r.top,v=r.right,$=r.bottom,x=r.left,f=p==="start"||p==="nearest"?E:p==="end"?$:E+a/2,y=m==="center"?x+b/2:m==="end"?v:x,u=[],s=0;s=0&&x>=0&&$<=U&&v<=T&&E>=w&&$<=P&&x>=M&&v<=G)return u;var W=getComputedStyle(h),I=parseInt(W.borderLeftWidth,10),_=parseInt(W.borderTopWidth,10),re=parseInt(W.borderRightWidth,10),e=parseInt(W.borderBottomWidth,10),i=0,t=0,g="offsetWidth"in h?h.offsetWidth-h.clientWidth-I-re:0,D="offsetHeight"in h?h.offsetHeight-h.clientHeight-_-e:0;if(V===h)i=p==="start"?f:p==="end"?f-U:p==="nearest"?ce(c,c+U,U,_,e,c+f,c+f+a,a):f-U/2,t=m==="start"?y:m==="center"?y-T/2:m==="end"?y-T:ce(K,K+T,T,I,re,K+y,K+y+b,b),i=Math.max(0,i+c),t=Math.max(0,t+K);else{i=p==="start"?f-w-_:p==="end"?f-P+e+D:p==="nearest"?ce(w,P,d,_,e+D,f,f+a,a):f-(w+d/2)+D/2,t=m==="start"?y-M-I:m==="center"?y-(M+R/2)+g/2:m==="end"?y-G+re+g:ce(M,G,R,I,re+g,y,y+b,b);var B=h.scrollLeft,oe=h.scrollTop;f+=oe-(i=Math.max(0,Math.min(oe+i,h.scrollHeight-d+D))),y+=B-(t=Math.max(0,Math.min(B+t,h.scrollWidth-R+g)))}u.push({el:h,top:i,left:t})}return u};function o(A){return A===Object(A)&&Object.keys(A).length!==0}function le(A,Z){Z===void 0&&(Z="auto");var ee="scrollBehavior"in document.body.style;A.forEach(function(X){var p=X.el,m=X.top,z=X.left;p.scroll&&ee?p.scroll({top:m,left:z,behavior:Z}):(p.scrollTop=m,p.scrollLeft=z)})}function Y(A){return A===!1?{block:"end",inline:"nearest"}:o(A)?A:{block:"start",inline:"nearest"}}function j(A,Z){var ee=!A.ownerDocument.documentElement.contains(A);if(o(Z)&&typeof Z.behavior=="function")return Z.behavior(ee?[]:H(A,Z));if(ee)return;var X=Y(Z);return le(H(A,X),X.behavior)}var S=q.a=j},Zss7:function(Te,q,n){var L;(function(O){var fe=/^\s+/,ce=/\s+$/,H=0,o=O.round,le=O.min,Y=O.max,j=O.random;function S(e,i){if(e=e||"",i=i||{},e instanceof S)return e;if(!(this instanceof S))return new S(e,i);var t=A(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=o(100*this._a)/100,this._format=i.format||t.format,this._gradientType=i.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=t.ok,this._tc_id=H++}S.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(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),i,t,g,D,B,oe;return i=e.r/255,t=e.g/255,g=e.b/255,i<=.03928?D=i/12.92:D=O.pow((i+.055)/1.055,2.4),t<=.03928?B=t/12.92:B=O.pow((t+.055)/1.055,2.4),g<=.03928?oe=g/12.92:oe=O.pow((g+.055)/1.055,2.4),.2126*D+.7152*B+.0722*oe},setAlpha:function(e){return this._a=u(e),this._roundA=o(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),g=o(e.v*100);return this._a==1?"hsv("+i+", "+t+"%, "+g+"%)":"hsva("+i+", "+t+"%, "+g+"%, "+this._roundA+")"},toHsl:function(){var e=ee(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ee(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),g=o(e.l*100);return this._a==1?"hsl("+i+", "+t+"%, "+g+"%)":"hsla("+i+", "+t+"%, "+g+"%, "+this._roundA+")"},toHex:function(e){return z(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return N(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(s(this._r,255)*100)+"%",g:o(s(this._g,255)*100)+"%",b:o(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%)":"rgba("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:f[z(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var i="#"+F(this._r,this._g,this._b,this._a),t=i,g=this._gradientType?"GradientType = 1, ":"";if(e){var D=S(e);t="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+g+"startColorstr="+i+",endColorstr="+t+")"},toString:function(e){var i=!!e;e=e||this._format;var t=!1,g=this._a<1&&this._a>=0,D=!i&&g&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return D?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return S(this.toString())},_applyModification:function(e,i){var t=e.apply(null,[this].concat([].slice.call(i)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(V,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(te,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(e,i){return e.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(r,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(a,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},S.fromRatio=function(e,i){if(typeof e=="object"){var t={};for(var g in e)e.hasOwnProperty(g)&&(g==="a"?t[g]=e[g]:t[g]=G(e[g]));e=t}return S(e,i)};function A(e){var i={r:0,g:0,b:0},t=1,g=null,D=null,B=null,oe=!1,he=!1;return typeof e=="string"&&(e=_(e)),typeof e=="object"&&(I(e.r)&&I(e.g)&&I(e.b)?(i=Z(e.r,e.g,e.b),oe=!0,he=String(e.r).substr(-1)==="%"?"prgb":"rgb"):I(e.h)&&I(e.s)&&I(e.v)?(g=G(e.s),D=G(e.v),i=m(e.h,g,D),oe=!0,he="hsv"):I(e.h)&&I(e.s)&&I(e.l)&&(g=G(e.s),B=G(e.l),i=X(e.h,g,B),oe=!0,he="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=u(t),{ok:oe,format:e.format||he,r:le(255,Y(i.r,0)),g:le(255,Y(i.g,0)),b:le(255,Y(i.b,0)),a:t}}function Z(e,i,t){return{r:s(e,255)*255,g:s(i,255)*255,b:s(t,255)*255}}function ee(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var g=Y(e,i,t),D=le(e,i,t),B,oe,he=(g+D)/2;if(g==D)B=oe=0;else{var Ce=g-D;oe=he>.5?Ce/(2-g-D):Ce/(g+D);switch(g){case e:B=(i-t)/Ce+(i1&&(be-=1),be<1/6?Oe+(ve-Oe)*6*be:be<1/2?ve:be<2/3?Oe+(ve-Oe)*(2/3-be)*6:Oe}if(i===0)g=D=B=t;else{var he=t<.5?t*(1+i):t+i-t*i,Ce=2*t-he;g=oe(Ce,he,e+1/3),D=oe(Ce,he,e),B=oe(Ce,he,e-1/3)}return{r:g*255,g:D*255,b:B*255}}function p(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var g=Y(e,i,t),D=le(e,i,t),B,oe,he=g,Ce=g-D;if(oe=g===0?0:Ce/g,g==D)B=0;else{switch(g){case e:B=(i-t)/Ce+(i>1)+720)%360;--i;)g.h=(g.h+D)%360,B.push(S(g));return B}function $(e,i){i=i||6;for(var t=S(e).toHsv(),g=t.h,D=t.s,B=t.v,oe=[],he=1/i;i--;)oe.push(S({h:g,s:D,v:B})),B=(B+he)%1;return oe}S.mix=function(e,i,t){t=t===0?0:t||50;var g=S(e).toRgb(),D=S(i).toRgb(),B=t/100,oe={r:(D.r-g.r)*B+g.r,g:(D.g-g.g)*B+g.g,b:(D.b-g.b)*B+g.b,a:(D.a-g.a)*B+g.a};return S(oe)},S.readability=function(e,i){var t=S(e),g=S(i);return(O.max(t.getLuminance(),g.getLuminance())+.05)/(O.min(t.getLuminance(),g.getLuminance())+.05)},S.isReadable=function(e,i,t){var g=S.readability(e,i),D,B;B=!1,D=re(t);switch(D.level+D.size){case"AAsmall":case"AAAlarge":B=g>=4.5;break;case"AAlarge":B=g>=3;break;case"AAAsmall":B=g>=7;break}return B},S.mostReadable=function(e,i,t){var g=null,D=0,B,oe,he,Ce;t=t||{},oe=t.includeFallbackColors,he=t.level,Ce=t.size;for(var Oe=0;OeD&&(D=B,g=S(i[Oe]));return S.isReadable(e,g,{level:he,size:Ce})||!oe?g:(t.includeFallbackColors=!1,S.mostReadable(e,["#fff","#000"],t))};var x=S.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"},f=S.hexNames=y(x);function y(e){var i={};for(var t in e)e.hasOwnProperty(t)&&(i[e[t]]=t);return i}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e,i){d(e)&&(e="100%");var t=R(e);return e=le(i,Y(0,parseFloat(e))),t&&(e=parseInt(e*i,10)/100),O.abs(e-i)<1e-6?1:e%i/parseFloat(i)}function h(e){return le(1,Y(0,e))}function l(e){return parseInt(e,16)}function d(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function R(e){return typeof e=="string"&&e.indexOf("%")!=-1}function w(e){return e.length==1?"0"+e:""+e}function G(e){return e<=1&&(e=e*100+"%"),e}function P(e){return O.round(parseFloat(e)*255).toString(16)}function M(e){return l(e)/255}var W=function(){var e="[-\\+]?\\d+%?",i="[-\\+]?\\d*\\.\\d+%?",t="(?:"+i+")|(?:"+e+")",g="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",D="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+D),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 I(e){return!!W.CSS_UNIT.exec(e)}function _(e){e=e.replace(fe,"").replace(ce,"").toLowerCase();var i=!1;if(x[e])e=x[e],i=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=W.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=W.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=W.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=W.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=W.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=W.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=W.hex8.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),a:M(t[4]),format:i?"name":"hex8"}:(t=W.hex6.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),format:i?"name":"hex"}:(t=W.hex4.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:i?"name":"hex8"}:(t=W.hex3.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),format:i?"name":"hex"}:!1}function re(e){var i,t;return e=e||{level:"AA",size:"small"},i=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:i,size:t}}Te.exports?Te.exports=S:!(L=function(){return S}.call(q,n,q,Te),L!==void 0&&(Te.exports=L))})(Math)},bT9E:function(Te,q,n){"use strict";n.d(q,"a",function(){return O});var L=n("VTBJ");function O(fe,ce){var H=Object(L.a)({},fe);return Array.isArray(ce)&&ce.forEach(function(o){delete H[o]}),H}},biw7:function(Te,q,n){"use strict";var L=n("q1tI"),O=n.n(L),fe=L.createContext(null);q.a=fe},fyJ8:function(Te,q,n){"use strict";var L=n("rePB"),O=n("VTBJ"),fe=n("Ff2n"),ce=n("U8pU"),H=n("q1tI"),o=n.n(H),le=n("TSYQ"),Y=n.n(le),j=n("c+Xe"),S=n("sR1s");function A(m){return m&&Object(ce.a)(m)==="object"&&!Array.isArray(m)&&!H.isValidElement(m)}function Z(m){return typeof m=="string"?!0:Object(j.c)(m)}function ee(m,z){var N,F=m.prefixCls,V=m.className,k=m.record,te=m.index,T=m.dataIndex,U=m.render,K=m.children,c=m.component,r=c===void 0?"td":c,a=m.colSpan,b=m.rowSpan,E=m.fixLeft,v=m.fixRight,$=m.firstFixLeft,x=m.lastFixLeft,f=m.firstFixRight,y=m.lastFixRight,u=m.appendNode,s=m.additionalProps,h=s===void 0?{}:s,l=m.ellipsis,d=m.align,R=m.rowType,w=m.isSticky,G="".concat(F,"-cell"),P,M;if(K)M=K;else{var W=Object(S.b)(k,T);if(M=W,U){var I=U(W,k,te);A(I)?(M=I.children,P=I.props):M=I}}Object(ce.a)(M)==="object"&&!Array.isArray(M)&&!H.isValidElement(M)&&(M=null),l&&(x||f)&&(M=H.createElement("span",{className:"".concat(G,"-content")},M));var _=P||{},re=_.colSpan,e=_.rowSpan,i=_.style,t=_.className,g=Object(fe.a)(_,["colSpan","rowSpan","style","className"]),D=re!==void 0?re:a,B=e!==void 0?e:b;if(D===0||B===0)return null;var oe={},he=typeof E=="number",Ce=typeof v=="number";he&&(oe.position="sticky",oe.left=E),Ce&&(oe.position="sticky",oe.right=v);var Oe={};d&&(Oe.textAlign=d);var ve,be=l===!0?{showTitle:!0}:l;be&&(be.showTitle||R==="header")&&(typeof M=="string"||typeof M=="number"?ve=M.toString():H.isValidElement(M)&&typeof M.props.children=="string"&&(ve=M.props.children));var Ie=Object(O.a)(Object(O.a)(Object(O.a)({title:ve},g),h),{},{colSpan:D&&D!==1?D:null,rowSpan:B&&B!==1?B:null,className:Y()(G,V,(N={},Object(L.a)(N,"".concat(G,"-fix-left"),he),Object(L.a)(N,"".concat(G,"-fix-left-first"),$),Object(L.a)(N,"".concat(G,"-fix-left-last"),x),Object(L.a)(N,"".concat(G,"-fix-right"),Ce),Object(L.a)(N,"".concat(G,"-fix-right-first"),f),Object(L.a)(N,"".concat(G,"-fix-right-last"),y),Object(L.a)(N,"".concat(G,"-ellipsis"),l),Object(L.a)(N,"".concat(G,"-with-append"),u),Object(L.a)(N,"".concat(G,"-fix-sticky"),(he||Ce)&&w),N),h.className,t),style:Object(O.a)(Object(O.a)(Object(O.a)(Object(O.a)({},h.style),Oe),oe),i),ref:Z(r)?z:null});return H.createElement(r,Object.assign({},Ie),u,M)}var X=H.forwardRef(ee);X.displayName="Cell";var p=H.memo(X,function(m,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,m.record):!1});q.a=p},h78n:function(Te,q,n){"use strict";n.d(q,"a",function(){return $});var L=n("q1tI"),O=n.n(L),fe=n("TSYQ"),ce=n.n(fe),H={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},o=function(y){var u=y.map(function(){return Object(L.useRef)()}),s=Object(L.useRef)();return Object(L.useEffect)(function(){var h=Date.now(),l=!1;Object.keys(u).forEach(function(d){var R=u[d].current;if(!R)return;l=!0;var w=R.style;w.transitionDuration=".3s, .3s, .3s, .06s",s.current&&h-s.current<100&&(w.transitionDuration="0s, 0s")}),l&&(s.current=Date.now())}),[u]};function le(){return le=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function p(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var m=function(y){var u=y.className,s=y.percent,h=y.prefixCls,l=y.strokeColor,d=y.strokeLinecap,R=y.strokeWidth,w=y.style,G=y.trailColor,P=y.trailWidth,M=y.transition,W=X(y,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete W.gapPosition;var I=Array.isArray(s)?s:[s],_=Array.isArray(l)?l:[l],re=o(I),e=Y(re,1),i=e[0],t=R/2,g=100-R/2,D="M ".concat(d==="round"?t:0,",").concat(t,` - L `).concat(d==="round"?g:100,",").concat(t),B="0 0 100 ".concat(R),oe=0;return O.a.createElement("svg",le({className:ce()("".concat(h,"-line"),u),viewBox:B,preserveAspectRatio:"none",style:w},W),O.a.createElement("path",{className:"".concat(h,"-line-trail"),d:D,strokeLinecap:d,stroke:G,strokeWidth:P||R,fillOpacity:"0"}),I.map(function(he,Ce){var Oe={strokeDasharray:"".concat(he,"px, 100px"),strokeDashoffset:"-".concat(oe,"px"),transition:M||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ve=_[Ce]||_[_.length-1];return oe+=he,O.a.createElement("path",{key:Ce,className:"".concat(h,"-line-path"),d:D,strokeLinecap:d,stroke:ve,strokeWidth:R,fillOpacity:"0",ref:i[Ce],style:Oe})}))};m.defaultProps=H;var z=m;function N(){return N=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function c(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var r=0;function a(f){return+f.replace("%","")}function b(f){return Array.isArray(f)?f:[f]}function E(f,y,u,s){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0,d=50-s/2,R=0,w=-d,G=0,P=-2*d;switch(l){case"left":R=-d,w=0,G=2*d,P=0;break;case"right":R=d,w=0,G=-2*d,P=0;break;case"bottom":w=d,P=2*d;break;default:}var M="M 50,50 m ".concat(R,",").concat(w,` +`,$=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],x={},f;function y(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(M&&x[W])return x[W];var I=window.getComputedStyle(P),_=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),re=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),e=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),i=$.map(function(g){return"".concat(g,":").concat(I.getPropertyValue(g))}).join(";"),t={sizingStyle:i,paddingSize:re,borderSize:e,boxSizing:_};return M&&W&&(x[W]=t),t}function u(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),P.getAttribute("wrap")?f.setAttribute("wrap",P.getAttribute("wrap")):f.removeAttribute("wrap");var _=y(P,M),re=_.paddingSize,e=_.borderSize,i=_.boxSizing,t=_.sizingStyle;f.setAttribute("style","".concat(t,";").concat(v)),f.value=P.value||P.placeholder||"";var g=Number.MIN_SAFE_INTEGER,D=Number.MAX_SAFE_INTEGER,B=f.scrollHeight,oe;if(i==="border-box"?B+=e:i==="content-box"&&(B-=re),W!==null||I!==null){f.value=" ";var he=f.scrollHeight-re;W!==null&&(g=he*W,i==="border-box"&&(g=g+re+e),B=Math.max(g,B)),I!==null&&(D=he*I,i==="border-box"&&(D=D+re+e),oe=B>D?"":"hidden",B=Math.min(D,B))}return{height:B,minHeight:g,maxHeight:D,overflowY:oe,resize:"none"}}var s=n("Gytx"),h=n.n(s),l;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(l||(l={}));var d=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(I){var _;return Object(O.a)(this,W),_=M.call(this,I),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(re){_.textArea=re},_.handleResize=function(re){var e=_.state.resizeStatus,i=_.props,t=i.autoSize,g=i.onResize;if(e!==l.NONE)return;typeof g=="function"&&g(re),t&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var re=_.props.autoSize;if(!re||!_.textArea)return;var e=re.minRows,i=re.maxRows,t=u(_.textArea,!1,e,i);_.setState({textareaStyles:t,resizeStatus:l.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var re=_.props,e=re.prefixCls,i=e===void 0?"rc-textarea":e,t=re.autoSize,g=re.onResize,D=re.className,B=re.disabled,oe=_.state,he=oe.textareaStyles,Ce=oe.resizeStatus,Oe=Object(a.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ve=E()(i,D,Object(Y.a)({},"".concat(i,"-disabled"),B));"value"in Oe&&(Oe.value=Oe.value||"");var be=Object(le.a)(Object(le.a)(Object(le.a)({},_.props.style),he),Ce===l.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(r,{onResize:_.handleResize,disabled:!(t||g)},o.createElement("textarea",Object(L.a)({},Oe,{className:ve,style:be,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:l.NONE},_}return Object(fe.a)(W,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!h()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,re=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,re)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),W}(o.Component),R=d,w=function(P){Object(ce.a)(W,P);var M=Object(H.a)(W);function W(I){var _;Object(O.a)(this,W),_=M.call(this,I),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(e){_.resizableTextArea=e},_.handleChange=function(e){var i=_.props.onChange;_.setValue(e.target.value,function(){_.resizableTextArea.resizeTextarea()}),i&&i(e)},_.handleKeyDown=function(e){var i=_.props,t=i.onPressEnter,g=i.onKeyDown;e.keyCode===13&&t&&t(e),g&&g(e)};var re=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return _.state={value:re},_}return Object(fe.a)(W,[{key:"setValue",value:function(_,re){"value"in this.props||this.setState({value:_},re)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(R,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),W}(o.Component),G=q.default=w},ZpRC:function(Se,q,n){"use strict";function L(A){return typeof A=="object"&&A!=null&&A.nodeType===1}function O(A,Z){return(!Z||A!=="hidden")&&A!=="visible"&&A!=="clip"}function fe(A,Z){if(A.clientHeightZ||m>A&&z=Z&&N>=ee?m-A-X:z>Z&&Nee?z-Z+p:0}var H=function(A,Z){var ee=window,X=Z.scrollMode,p=Z.block,m=Z.inline,z=Z.boundary,N=Z.skipOverflowHiddenElements,F=typeof z=="function"?z:function(he){return he!==z};if(!L(A))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,k=[],te=A;L(te)&&F(te);){if((te=te.parentElement)===V){k.push(te);break}te!=null&&te===document.body&&fe(te)&&!fe(document.documentElement)||te!=null&&fe(te,N)&&k.push(te)}for(var S=ee.visualViewport?ee.visualViewport.width:innerWidth,U=ee.visualViewport?ee.visualViewport.height:innerHeight,K=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,r=A.getBoundingClientRect(),a=r.height,b=r.width,E=r.top,v=r.right,$=r.bottom,x=r.left,f=p==="start"||p==="nearest"?E:p==="end"?$:E+a/2,y=m==="center"?x+b/2:m==="end"?v:x,u=[],s=0;s=0&&x>=0&&$<=U&&v<=S&&E>=w&&$<=P&&x>=M&&v<=G)return u;var W=getComputedStyle(h),I=parseInt(W.borderLeftWidth,10),_=parseInt(W.borderTopWidth,10),re=parseInt(W.borderRightWidth,10),e=parseInt(W.borderBottomWidth,10),i=0,t=0,g="offsetWidth"in h?h.offsetWidth-h.clientWidth-I-re:0,D="offsetHeight"in h?h.offsetHeight-h.clientHeight-_-e:0;if(V===h)i=p==="start"?f:p==="end"?f-U:p==="nearest"?ce(c,c+U,U,_,e,c+f,c+f+a,a):f-U/2,t=m==="start"?y:m==="center"?y-S/2:m==="end"?y-S:ce(K,K+S,S,I,re,K+y,K+y+b,b),i=Math.max(0,i+c),t=Math.max(0,t+K);else{i=p==="start"?f-w-_:p==="end"?f-P+e+D:p==="nearest"?ce(w,P,d,_,e+D,f,f+a,a):f-(w+d/2)+D/2,t=m==="start"?y-M-I:m==="center"?y-(M+R/2)+g/2:m==="end"?y-G+re+g:ce(M,G,R,I,re+g,y,y+b,b);var B=h.scrollLeft,oe=h.scrollTop;f+=oe-(i=Math.max(0,Math.min(oe+i,h.scrollHeight-d+D))),y+=B-(t=Math.max(0,Math.min(B+t,h.scrollWidth-R+g)))}u.push({el:h,top:i,left:t})}return u};function o(A){return A===Object(A)&&Object.keys(A).length!==0}function le(A,Z){Z===void 0&&(Z="auto");var ee="scrollBehavior"in document.body.style;A.forEach(function(X){var p=X.el,m=X.top,z=X.left;p.scroll&&ee?p.scroll({top:m,left:z,behavior:Z}):(p.scrollTop=m,p.scrollLeft=z)})}function Y(A){return A===!1?{block:"end",inline:"nearest"}:o(A)?A:{block:"start",inline:"nearest"}}function j(A,Z){var ee=!A.ownerDocument.documentElement.contains(A);if(o(Z)&&typeof Z.behavior=="function")return Z.behavior(ee?[]:H(A,Z));if(ee)return;var X=Y(Z);return le(H(A,X),X.behavior)}var T=q.a=j},Zss7:function(Se,q,n){var L;(function(O){var fe=/^\s+/,ce=/\s+$/,H=0,o=O.round,le=O.min,Y=O.max,j=O.random;function T(e,i){if(e=e||"",i=i||{},e instanceof T)return e;if(!(this instanceof T))return new T(e,i);var t=A(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=o(100*this._a)/100,this._format=i.format||t.format,this._gradientType=i.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=t.ok,this._tc_id=H++}T.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(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),i,t,g,D,B,oe;return i=e.r/255,t=e.g/255,g=e.b/255,i<=.03928?D=i/12.92:D=O.pow((i+.055)/1.055,2.4),t<=.03928?B=t/12.92:B=O.pow((t+.055)/1.055,2.4),g<=.03928?oe=g/12.92:oe=O.pow((g+.055)/1.055,2.4),.2126*D+.7152*B+.0722*oe},setAlpha:function(e){return this._a=u(e),this._roundA=o(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),g=o(e.v*100);return this._a==1?"hsv("+i+", "+t+"%, "+g+"%)":"hsva("+i+", "+t+"%, "+g+"%, "+this._roundA+")"},toHsl:function(){var e=ee(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ee(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),g=o(e.l*100);return this._a==1?"hsl("+i+", "+t+"%, "+g+"%)":"hsla("+i+", "+t+"%, "+g+"%, "+this._roundA+")"},toHex:function(e){return z(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return N(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(s(this._r,255)*100)+"%",g:o(s(this._g,255)*100)+"%",b:o(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%)":"rgba("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:f[z(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var i="#"+F(this._r,this._g,this._b,this._a),t=i,g=this._gradientType?"GradientType = 1, ":"";if(e){var D=T(e);t="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+g+"startColorstr="+i+",endColorstr="+t+")"},toString:function(e){var i=!!e;e=e||this._format;var t=!1,g=this._a<1&&this._a>=0,D=!i&&g&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return D?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return T(this.toString())},_applyModification:function(e,i){var t=e.apply(null,[this].concat([].slice.call(i)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(V,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(te,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(e,i){return e.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(r,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(a,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},T.fromRatio=function(e,i){if(typeof e=="object"){var t={};for(var g in e)e.hasOwnProperty(g)&&(g==="a"?t[g]=e[g]:t[g]=G(e[g]));e=t}return T(e,i)};function A(e){var i={r:0,g:0,b:0},t=1,g=null,D=null,B=null,oe=!1,he=!1;return typeof e=="string"&&(e=_(e)),typeof e=="object"&&(I(e.r)&&I(e.g)&&I(e.b)?(i=Z(e.r,e.g,e.b),oe=!0,he=String(e.r).substr(-1)==="%"?"prgb":"rgb"):I(e.h)&&I(e.s)&&I(e.v)?(g=G(e.s),D=G(e.v),i=m(e.h,g,D),oe=!0,he="hsv"):I(e.h)&&I(e.s)&&I(e.l)&&(g=G(e.s),B=G(e.l),i=X(e.h,g,B),oe=!0,he="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=u(t),{ok:oe,format:e.format||he,r:le(255,Y(i.r,0)),g:le(255,Y(i.g,0)),b:le(255,Y(i.b,0)),a:t}}function Z(e,i,t){return{r:s(e,255)*255,g:s(i,255)*255,b:s(t,255)*255}}function ee(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var g=Y(e,i,t),D=le(e,i,t),B,oe,he=(g+D)/2;if(g==D)B=oe=0;else{var Ce=g-D;oe=he>.5?Ce/(2-g-D):Ce/(g+D);switch(g){case e:B=(i-t)/Ce+(i1&&(be-=1),be<1/6?Oe+(ve-Oe)*6*be:be<1/2?ve:be<2/3?Oe+(ve-Oe)*(2/3-be)*6:Oe}if(i===0)g=D=B=t;else{var he=t<.5?t*(1+i):t+i-t*i,Ce=2*t-he;g=oe(Ce,he,e+1/3),D=oe(Ce,he,e),B=oe(Ce,he,e-1/3)}return{r:g*255,g:D*255,b:B*255}}function p(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var g=Y(e,i,t),D=le(e,i,t),B,oe,he=g,Ce=g-D;if(oe=g===0?0:Ce/g,g==D)B=0;else{switch(g){case e:B=(i-t)/Ce+(i>1)+720)%360;--i;)g.h=(g.h+D)%360,B.push(T(g));return B}function $(e,i){i=i||6;for(var t=T(e).toHsv(),g=t.h,D=t.s,B=t.v,oe=[],he=1/i;i--;)oe.push(T({h:g,s:D,v:B})),B=(B+he)%1;return oe}T.mix=function(e,i,t){t=t===0?0:t||50;var g=T(e).toRgb(),D=T(i).toRgb(),B=t/100,oe={r:(D.r-g.r)*B+g.r,g:(D.g-g.g)*B+g.g,b:(D.b-g.b)*B+g.b,a:(D.a-g.a)*B+g.a};return T(oe)},T.readability=function(e,i){var t=T(e),g=T(i);return(O.max(t.getLuminance(),g.getLuminance())+.05)/(O.min(t.getLuminance(),g.getLuminance())+.05)},T.isReadable=function(e,i,t){var g=T.readability(e,i),D,B;B=!1,D=re(t);switch(D.level+D.size){case"AAsmall":case"AAAlarge":B=g>=4.5;break;case"AAlarge":B=g>=3;break;case"AAAsmall":B=g>=7;break}return B},T.mostReadable=function(e,i,t){var g=null,D=0,B,oe,he,Ce;t=t||{},oe=t.includeFallbackColors,he=t.level,Ce=t.size;for(var Oe=0;OeD&&(D=B,g=T(i[Oe]));return T.isReadable(e,g,{level:he,size:Ce})||!oe?g:(t.includeFallbackColors=!1,T.mostReadable(e,["#fff","#000"],t))};var x=T.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"},f=T.hexNames=y(x);function y(e){var i={};for(var t in e)e.hasOwnProperty(t)&&(i[e[t]]=t);return i}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e,i){d(e)&&(e="100%");var t=R(e);return e=le(i,Y(0,parseFloat(e))),t&&(e=parseInt(e*i,10)/100),O.abs(e-i)<1e-6?1:e%i/parseFloat(i)}function h(e){return le(1,Y(0,e))}function l(e){return parseInt(e,16)}function d(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function R(e){return typeof e=="string"&&e.indexOf("%")!=-1}function w(e){return e.length==1?"0"+e:""+e}function G(e){return e<=1&&(e=e*100+"%"),e}function P(e){return O.round(parseFloat(e)*255).toString(16)}function M(e){return l(e)/255}var W=function(){var e="[-\\+]?\\d+%?",i="[-\\+]?\\d*\\.\\d+%?",t="(?:"+i+")|(?:"+e+")",g="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",D="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+D),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 I(e){return!!W.CSS_UNIT.exec(e)}function _(e){e=e.replace(fe,"").replace(ce,"").toLowerCase();var i=!1;if(x[e])e=x[e],i=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=W.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=W.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=W.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=W.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=W.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=W.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=W.hex8.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),a:M(t[4]),format:i?"name":"hex8"}:(t=W.hex6.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),format:i?"name":"hex"}:(t=W.hex4.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:i?"name":"hex8"}:(t=W.hex3.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),format:i?"name":"hex"}:!1}function re(e){var i,t;return e=e||{level:"AA",size:"small"},i=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:i,size:t}}Se.exports?Se.exports=T:!(L=function(){return T}.call(q,n,q,Se),L!==void 0&&(Se.exports=L))})(Math)},bT9E:function(Se,q,n){"use strict";n.d(q,"a",function(){return O});var L=n("VTBJ");function O(fe,ce){var H=Object(L.a)({},fe);return Array.isArray(ce)&&ce.forEach(function(o){delete H[o]}),H}},biw7:function(Se,q,n){"use strict";var L=n("q1tI"),O=n.n(L),fe=L.createContext(null);q.a=fe},fyJ8:function(Se,q,n){"use strict";var L=n("rePB"),O=n("VTBJ"),fe=n("Ff2n"),ce=n("U8pU"),H=n("q1tI"),o=n.n(H),le=n("TSYQ"),Y=n.n(le),j=n("c+Xe"),T=n("sR1s");function A(m){return m&&Object(ce.a)(m)==="object"&&!Array.isArray(m)&&!H.isValidElement(m)}function Z(m){return typeof m=="string"?!0:Object(j.c)(m)}function ee(m,z){var N,F=m.prefixCls,V=m.className,k=m.record,te=m.index,S=m.dataIndex,U=m.render,K=m.children,c=m.component,r=c===void 0?"td":c,a=m.colSpan,b=m.rowSpan,E=m.fixLeft,v=m.fixRight,$=m.firstFixLeft,x=m.lastFixLeft,f=m.firstFixRight,y=m.lastFixRight,u=m.appendNode,s=m.additionalProps,h=s===void 0?{}:s,l=m.ellipsis,d=m.align,R=m.rowType,w=m.isSticky,G="".concat(F,"-cell"),P,M;if(K)M=K;else{var W=Object(T.b)(k,S);if(M=W,U){var I=U(W,k,te);A(I)?(M=I.children,P=I.props):M=I}}Object(ce.a)(M)==="object"&&!Array.isArray(M)&&!H.isValidElement(M)&&(M=null),l&&(x||f)&&(M=H.createElement("span",{className:"".concat(G,"-content")},M));var _=P||{},re=_.colSpan,e=_.rowSpan,i=_.style,t=_.className,g=Object(fe.a)(_,["colSpan","rowSpan","style","className"]),D=re!==void 0?re:a,B=e!==void 0?e:b;if(D===0||B===0)return null;var oe={},he=typeof E=="number",Ce=typeof v=="number";he&&(oe.position="sticky",oe.left=E),Ce&&(oe.position="sticky",oe.right=v);var Oe={};d&&(Oe.textAlign=d);var ve,be=l===!0?{showTitle:!0}:l;be&&(be.showTitle||R==="header")&&(typeof M=="string"||typeof M=="number"?ve=M.toString():H.isValidElement(M)&&typeof M.props.children=="string"&&(ve=M.props.children));var Ie=Object(O.a)(Object(O.a)(Object(O.a)({title:ve},g),h),{},{colSpan:D&&D!==1?D:null,rowSpan:B&&B!==1?B:null,className:Y()(G,V,(N={},Object(L.a)(N,"".concat(G,"-fix-left"),he),Object(L.a)(N,"".concat(G,"-fix-left-first"),$),Object(L.a)(N,"".concat(G,"-fix-left-last"),x),Object(L.a)(N,"".concat(G,"-fix-right"),Ce),Object(L.a)(N,"".concat(G,"-fix-right-first"),f),Object(L.a)(N,"".concat(G,"-fix-right-last"),y),Object(L.a)(N,"".concat(G,"-ellipsis"),l),Object(L.a)(N,"".concat(G,"-with-append"),u),Object(L.a)(N,"".concat(G,"-fix-sticky"),(he||Ce)&&w),N),h.className,t),style:Object(O.a)(Object(O.a)(Object(O.a)(Object(O.a)({},h.style),Oe),oe),i),ref:Z(r)?z:null});return H.createElement(r,Object.assign({},Ie),u,M)}var X=H.forwardRef(ee);X.displayName="Cell";var p=H.memo(X,function(m,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,m.record):!1});q.a=p},h78n:function(Se,q,n){"use strict";n.d(q,"a",function(){return $});var L=n("q1tI"),O=n.n(L),fe=n("TSYQ"),ce=n.n(fe),H={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},o=function(y){var u=y.map(function(){return Object(L.useRef)()}),s=Object(L.useRef)();return Object(L.useEffect)(function(){var h=Date.now(),l=!1;Object.keys(u).forEach(function(d){var R=u[d].current;if(!R)return;l=!0;var w=R.style;w.transitionDuration=".3s, .3s, .3s, .06s",s.current&&h-s.current<100&&(w.transitionDuration="0s, 0s")}),l&&(s.current=Date.now())}),[u]};function le(){return le=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function p(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var m=function(y){var u=y.className,s=y.percent,h=y.prefixCls,l=y.strokeColor,d=y.strokeLinecap,R=y.strokeWidth,w=y.style,G=y.trailColor,P=y.trailWidth,M=y.transition,W=X(y,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete W.gapPosition;var I=Array.isArray(s)?s:[s],_=Array.isArray(l)?l:[l],re=o(I),e=Y(re,1),i=e[0],t=R/2,g=100-R/2,D="M ".concat(d==="round"?t:0,",").concat(t,` + L `).concat(d==="round"?g:100,",").concat(t),B="0 0 100 ".concat(R),oe=0;return O.a.createElement("svg",le({className:ce()("".concat(h,"-line"),u),viewBox:B,preserveAspectRatio:"none",style:w},W),O.a.createElement("path",{className:"".concat(h,"-line-trail"),d:D,strokeLinecap:d,stroke:G,strokeWidth:P||R,fillOpacity:"0"}),I.map(function(he,Ce){var Oe={strokeDasharray:"".concat(he,"px, 100px"),strokeDashoffset:"-".concat(oe,"px"),transition:M||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ve=_[Ce]||_[_.length-1];return oe+=he,O.a.createElement("path",{key:Ce,className:"".concat(h,"-line-path"),d:D,strokeLinecap:d,stroke:ve,strokeWidth:R,fillOpacity:"0",ref:i[Ce],style:Oe})}))};m.defaultProps=H;var z=m;function N(){return N=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function c(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var r=0;function a(f){return+f.replace("%","")}function b(f){return Array.isArray(f)?f:[f]}function E(f,y,u,s){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0,d=50-s/2,R=0,w=-d,G=0,P=-2*d;switch(l){case"left":R=-d,w=0,G=2*d,P=0;break;case"right":R=d,w=0,G=-2*d,P=0;break;case"bottom":w=d,P=2*d;break;default:}var M="M 50,50 m ".concat(R,",").concat(w,` a `).concat(d,",").concat(d," 0 1 1 ").concat(G,",").concat(-P,` - a `).concat(d,",").concat(d," 0 1 1 ").concat(-G,",").concat(P),W=Math.PI*2*d,I={stroke:u,strokeDasharray:"".concat(y/100*(W-h),"px ").concat(W,"px"),strokeDashoffset:"-".concat(h/2+f/100*(W-h),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:M,pathStyle:I}}var v=function(y){var u=y.prefixCls,s=y.strokeWidth,h=y.trailWidth,l=y.gapDegree,d=y.gapPosition,R=y.trailColor,w=y.strokeLinecap,G=y.style,P=y.className,M=y.strokeColor,W=y.percent,I=K(y,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),_=Object(L.useMemo)(function(){return r+=1,r},[]),re=E(0,100,R,s,l,d),e=re.pathString,i=re.pathStyle,t=b(W),g=b(M),D=g.find(function(Oe){return Object.prototype.toString.call(Oe)==="[object Object]"}),B=o(t),oe=F(B,1),he=oe[0],Ce=function(){var ve=0;return t.map(function(be,Ie){var ze=g[Ie]||g[g.length-1],He=Object.prototype.toString.call(ze)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(_,")"):"",Ze=E(ve,be,ze,s,l,d);return ve+=be,O.a.createElement("path",{key:Ie,className:"".concat(u,"-circle-path"),d:Ze.pathString,stroke:He,strokeLinecap:w,strokeWidth:s,opacity:be===0?0:1,fillOpacity:"0",style:Ze.pathStyle,ref:he[Ie]})})};return O.a.createElement("svg",N({className:ce()("".concat(u,"-circle"),P),viewBox:"0 0 100 100",style:G},I),D&&O.a.createElement("defs",null,O.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(_),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(D).sort(function(Oe,ve){return a(Oe)-a(ve)}).map(function(Oe,ve){return O.a.createElement("stop",{key:ve,offset:Oe,stopColor:D[Oe]})}))),O.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:e,stroke:R,strokeLinecap:w,strokeWidth:h||s,fillOpacity:"0",style:i}),Ce().reverse())};v.defaultProps=H;var $=v,x={Line:z,Circle:$}},hW8S:function(Te,q,n){"use strict";n.d(q,"a",function(){return ce}),n.d(q,"c",function(){return H}),n.d(q,"b",function(){return o});var L=n("VTBJ"),O=n("Ff2n"),fe=n("Kwbf"),ce="RC_TABLE_INTERNAL_COL_DEFINE";function H(le){var Y=le.expandable,j=Object(O.a)(le,["expandable"]);return"expandable"in le?Object(L.a)(Object(L.a)({},j),Y):j}function o(le){return Object.keys(le).reduce(function(Y,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-")&&(Y[j]=le[j]),Y},{})}},n6Qo:function(Te,q,n){"use strict";n.d(q,"a",function(){return Y});var L=n("q1tI"),O=n("biw7"),fe=n("fyJ8");function ce(j){var S=j.className,A=j.index,Z=j.children,ee=j.colSpan,X=j.rowSpan,p=L.useContext(O.a),m=p.prefixCls,z=p.fixedInfoList,N=z[A];return L.createElement(fe.a,Object.assign({className:S,index:A,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:Z,props:{colSpan:ee,rowSpan:X}}}},N))}function H(j){return L.createElement("tr",Object.assign({},j))}function o(j){var S=j.children,A=L.useContext(O.a),Z=A.prefixCls;return L.createElement("tfoot",{className:"".concat(Z,"-summary")},S)}var le=q.b=o,Y={Cell:ce,Row:H}},sR1s:function(Te,q,n){"use strict";n.d(q,"b",function(){return ce}),n.d(q,"a",function(){return H}),n.d(q,"c",function(){return o}),n.d(q,"d",function(){return le});var L=n("U8pU"),O="RC_TABLE_KEY";function fe(Y){return Y==null?[]:Array.isArray(Y)?Y:[Y]}function ce(Y,j){if(!j&&typeof j!="number")return Y;for(var S=fe(j),A=Y,Z=0;Z1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var k=V[0];if(o.isValidElement(k)&&Object(A.c)(k)){var te=k.ref;V[0]=o.cloneElement(k,{ref:Object(A.a)(te,this.setChildNode)})}return V.length===1?V[0]:V.map(function(T,U){return!o.isValidElement(T)||"key"in T&&T.key!==null?T:o.cloneElement(T,{key:"".concat(ee,"-").concat(U)})})}}]),z}(o.Component);X.displayName="ResizeObserver",q.a=X},wCXF:function(Te,q,n){"use strict";n.d(q,"a",function(){return He});var L=n("rePB"),O=n("VTBJ"),fe=n("KQm4"),ce=n("U8pU"),H=n("ODXe"),o=n("q1tI"),le=n("TSYQ"),Y=n.n(le),j=n("Gytx"),S=n.n(j),A=n("Kwbf"),Z=n("t23M"),ee=n("qx4F"),X=n("6eGT"),p=n("IBYe"),m=n("Ff2n"),z=n("c+Xe"),N=n("fyJ8"),F=n("biw7");function V(C,J,Q,ue,me){var se=Q[C]||{},ne=Q[J]||{},ae,ie;se.fixed==="left"?ae=ue.left[C]:ne.fixed==="right"&&(ie=ue.right[J]);var ge=!1,de=!1,pe=!1,_e=!1,ye=Q[J+1],Re=Q[C-1];if(me==="rtl"){if(ae!==void 0){var Le=Re&&Re.fixed==="left";_e=!Le}else if(ie!==void 0){var Ae=ye&&ye.fixed==="right";pe=!Ae}}else if(ae!==void 0){var Ne=ye&&ye.fixed==="left";ge=!Ne}else if(ie!==void 0){var je=Re&&Re.fixed==="right";de=!je}return{fixLeft:ae,fixRight:ie,lastFixLeft:ge,firstFixRight:de,lastFixRight:pe,firstFixLeft:_e,isSticky:ue.isSticky}}var k=n("sR1s");function te(C){var J=C.cells,Q=C.stickyOffsets,ue=C.flattenColumns,me=C.rowComponent,se=C.cellComponent,ne=C.onHeaderRow,ae=C.index,ie=o.useContext(F.a),ge=ie.prefixCls,de=ie.direction,pe;ne&&(pe=ne(J.map(function(ye){return ye.column}),ae));var _e=Object(k.a)(J.map(function(ye){return ye.column}));return o.createElement(me,Object.assign({},pe),J.map(function(ye,Re){var Le=ye.column,Ae=V(ye.colStart,ye.colEnd,ue,Q,de),Ne;return Le&&Le.onHeaderCell&&(Ne=ye.column.onHeaderCell(Le)),o.createElement(N.a,Object.assign({},ye,{ellipsis:Le.ellipsis,align:Le.align,component:se,prefixCls:ge,key:_e[Re]},Ae,{additionalProps:Ne,rowType:"header"}))}))}te.displayName="HeaderRow";var T=te;function U(C){var J=[];function Q(ne,ae){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;J[ie]=J[ie]||[];var ge=ae,de=ne.filter(Boolean).map(function(pe){var _e={key:pe.key,className:pe.className||"",children:pe.title,column:pe,colStart:ge},ye=1,Re=pe.children;return Re&&Re.length>0&&(ye=Q(Re,ge,ie+1).reduce(function(Le,Ae){return Le+Ae},0),_e.hasSubColumns=!0),"colSpan"in pe&&(ye=pe.colSpan),"rowSpan"in pe&&(_e.rowSpan=pe.rowSpan),_e.colSpan=ye,_e.colEnd=_e.colStart+ye-1,J[ie].push(_e),ge+=ye,ye});return de}Q(C,0);for(var ue=J.length,me=function(ae){J[ae].forEach(function(ie){!("rowSpan"in ie)&&!ie.hasSubColumns&&(ie.rowSpan=ue-ae)})},se=0;se=0;ae-=1){var ie=J[ae],ge=Q&&Q[ae],de=ge&&ge[r.a];(ie||de||ne)&&(me.unshift(o.createElement("col",Object.assign({key:ae,style:{width:ie,minWidth:ie}},de))),ne=!0)}return o.createElement("colgroup",null,me)}var b=a;function E(C,J){return Object(o.useMemo)(function(){for(var Q=[],ue=0;ue1?ot-1:0),pt=1;pt=pe&&(Ee=pe-_e),ne({scrollLeft:Ee/pe*(de+2)}),je.current.x=Pe.pageX},Ye=function(){var Pe=Object(Ce.b)(se.current).top,Fe=Pe+se.current.offsetHeight,nt=document.documentElement.scrollTop+window.innerHeight;Fe-Object(ee.a)()<=nt||Pe>=nt-ae?Ne(function(Se){return Object(O.a)(Object(O.a)({},Se),{},{isHiddenScrollBar:!0})}):Ne(function(Se){return Object(O.a)(Object(O.a)({},Se),{},{isHiddenScrollBar:!1})})},Ke=function(Pe){Ne(function(Fe){return Object(O.a)(Object(O.a)({},Fe),{},{scrollLeft:Pe/de*pe||0})})};return o.useImperativeHandle(Q,function(){return{setScrollLeft:Ke}}),o.useEffect(function(){var Ue=Object(he.a)(document.body,"mouseup",Ve,!1),Pe=Object(he.a)(document.body,"mousemove",qe,!1);return Ye(),function(){Ue.remove(),Pe.remove()}},[_e,ke]),o.useEffect(function(){var Ue=Object(he.a)(window,"scroll",Ye,!1),Pe=Object(he.a)(window,"resize",Ye,!1);return function(){Ue.remove(),Pe.remove()}},[]),o.useEffect(function(){Ae.isHiddenScrollBar||Ne(function(Ue){var Pe,Fe;return Object(O.a)(Object(O.a)({},Ue),{},{scrollLeft:se.current.scrollLeft/((Pe=se.current)===null||Pe===void 0?void 0:Pe.scrollWidth)*((Fe=se.current)===null||Fe===void 0?void 0:Fe.clientWidth)})})},[Ae.isHiddenScrollBar]),de<=pe||!_e||Ae.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(ee.a)(),width:pe,bottom:ae},className:"".concat(ge,"-sticky-scroll")},o.createElement("div",{onMouseDown:we,ref:ye,className:Y()("".concat(ge,"-sticky-scroll-bar"),Object(L.a)({},"".concat(ge,"-sticky-scroll-bar-active"),ke)),style:{width:"".concat(_e,"px"),transform:"translate3d(".concat(Ae.scrollLeft,"px, 0, 0)")}}))},ve=o.forwardRef(Oe);function be(C,J){return o.useMemo(function(){var Q=!!C;return{isSticky:Q,stickyClassName:Q?"".concat(J,"-sticky-header"):"",offsetHeader:Object(ce.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(ce.a)(C)==="object"&&C.offsetScroll||0}},[C,J])}var Ie=[],ze={},He="rc-table-internal-hook",Ze=o.memo(function(C){var J=C.children;return J},function(C,J){return S()(C.props,J.props)?C.pingLeft!==J.pingLeft||C.pingRight!==J.pingRight:!1});function Je(C){var J,Q=C.prefixCls,ue=C.className,me=C.rowClassName,se=C.style,ne=C.data,ae=C.rowKey,ie=C.scroll,ge=C.tableLayout,de=C.direction,pe=C.title,_e=C.footer,ye=C.summary,Re=C.id,Le=C.showHeader,Ae=C.components,Ne=C.emptyText,je=C.onRow,at=C.onHeaderRow,Be=C.internalHooks,ke=C.transformColumns,Xe=C.internalRefs,Ve=C.sticky,we=ne||Ie,qe=!!we.length,Ye=o.useState(0),Ke=Object(H.a)(Ye,2),Ue=Ke[0],Pe=Ke[1];o.useEffect(function(){Pe(Object(ee.a)())});var Fe=o.useMemo(function(){return Object(k.c)(Ae,{})},[Ae]),nt=o.useCallback(function(De,Me){return Object(k.b)(Fe,De)||Me},[Fe]),Se=o.useMemo(function(){return typeof ae=="function"?ae:function(De){var Me=De&&De[ae];return Me}},[ae]),Ee=Object(r.c)(C),xe=Ee.expandIcon,We=Ee.expandedRowKeys,$e=Ee.defaultExpandedRowKeys,Qe=Ee.defaultExpandAllRows,ft=Ee.expandedRowRender,et=Ee.onExpand,bt=Ee.onExpandedRowsChange,Pt=Ee.expandRowByClick,ut=Ee.rowExpandable,Ct=Ee.expandIconColumnIndex,gt=Ee.expandedRowClassName,kt=Ee.childrenColumnName,St=Ee.indentSize,Et=xe||B,Ot=kt||"children",Tt=o.useMemo(function(){return ft?"row":C.expandable&&Be===He&&C.expandable.__PARENT_RENDER_ICON__||we.some(function(De){return De&&Object(ce.a)(De)==="object"&&De[Ot]})?"nest":!1},[!!ft,we]),At=o.useState(function(){return $e||(Qe?oe(we,Se,Ot):[])}),rt=Object(H.a)(At,2),st=rt[0],ct=rt[1],ot=o.useMemo(function(){return new Set(We||st||[])},[We,st]),ht=o.useCallback(function(De){var Me=Se(De,we.indexOf(De)),tt,lt=ot.has(Me);lt?(ot.delete(Me),tt=Object(fe.a)(ot)):tt=[].concat(Object(fe.a)(ot),[Me]),ct(tt),et&&et(!lt,De),bt&&bt(tt)},[Se,ot,we,et,bt]),pt=o.useState(0),Dt=Object(H.a)(pt,2),xt=Dt[0],Nt=Dt[1],vn=Object(M.b)(Object(O.a)(Object(O.a)(Object(O.a)({},C),Ee),{},{expandable:!!ft,expandedKeys:ot,getRowKey:Se,onTriggerExpand:ht,expandIcon:Et,expandIconColumnIndex:Ct,direction:de}),Be===He?ke:null),Jt=Object(H.a)(vn,2),Kt=Jt[0],Ge=Jt[1],Mt=o.useMemo(function(){return{columns:Kt,flattenColumns:Ge}},[Kt,Ge]),Wt=o.useRef(),Qt=o.useRef(),vt=o.useRef(),bn=o.useState(!1),Zt=Object(H.a)(bn,2),qt=Zt[0],gn=Zt[1],En=o.useState(!1),en=Object(H.a)(En,2),tn=en[0],yn=en[1],Cn=_(new Map),nn=Object(H.a)(Cn,2),On=nn[0],xn=nn[1],_n=Object(k.a)(Ge),an=_n.map(function(De){return On.get(De)}),rn=o.useMemo(function(){return an},[an.join("_")]),wt=i(rn,Ge.length,de),dt=ie&&Object(k.d)(ie.y),mt=ie&&Object(k.d)(ie.x),_t=mt&&Ge.some(function(De){var Me=De.fixed;return Me}),on=o.useRef(),Lt=be(Ve,Q),jt=Lt.isSticky,jn=Lt.offsetHeader,Rn=Lt.offsetScroll,Pn=Lt.stickyClassName,Bt,Ut,zt;dt&&(Ut={overflowY:"scroll",maxHeight:ie.y}),mt&&(Bt={overflowX:"auto"},dt||(Ut={overflowY:"hidden"}),zt={width:ie.x===!0?"auto":ie.x,minWidth:"100%"});var sn=o.useCallback(function(De,Me){xn(function(tt){var lt=new Map(tt);return lt.set(De,Me),lt})},[]),Sn=re(null),ln=Object(H.a)(Sn,2),Tn=ln[0],un=ln[1];function Ft(De,Me){if(!Me)return;typeof Me=="function"?Me(De):Me.scrollLeft!==De&&(Me.scrollLeft=De)}var yt=function(Me){var tt=Me.currentTarget,lt=Me.scrollLeft,Rt=typeof lt=="number"?lt:tt.scrollLeft,pn=tt||ze;if(!un()||un()===pn){var Yt;Tn(pn),Ft(Rt,Qt.current),Ft(Rt,vt.current),Ft(Rt,(Yt=on.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(tt){var Un=tt.scrollWidth,In=tt.clientWidth;gn(Rt>0),yn(Rt0?[].concat(Object(O.a)(m),Object(O.a)(A(V).map(function(k){return Object(fe.a)({fixed:F},k)}))):[].concat(Object(O.a)(m),[Object(fe.a)(Object(fe.a)({},z),{},{fixed:F})])},[])}function Z(p){for(var m=!0,z=0;z=0;V-=1){var k=p[V];if(F&&k.fixed!=="right")F=!1;else if(!F&&k.fixed==="right"){Object(le.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function ee(p){return p.map(function(m){var z=m.fixed,N=Object(ce.a)(m,["fixed"]),F=z;return z==="left"?F="right":z==="right"&&(F="left"),Object(fe.a)({fixed:F},N)})}function X(p,m){var z=p.prefixCls,N=p.columns,F=p.children,V=p.expandable,k=p.expandedKeys,te=p.getRowKey,T=p.onTriggerExpand,U=p.expandIcon,K=p.rowExpandable,c=p.expandIconColumnIndex,r=p.direction,a=p.expandRowByClick,b=H.useMemo(function(){return N||S(F)},[N,F]),E=H.useMemo(function(){if(V){var x,f=c||0,y=b[f],u=(x={},Object(L.a)(x,j.a,{className:"".concat(z,"-expand-icon-col")}),Object(L.a)(x,"title",""),Object(L.a)(x,"fixed",y?y.fixed:null),Object(L.a)(x,"className","".concat(z,"-row-expand-icon-cell")),Object(L.a)(x,"render",function(l,d,R){var w=te(d,R),G=k.has(w),P=K?K(d):!0,M=U({prefixCls:z,expanded:G,expandable:P,record:d,onExpand:T});return a?H.createElement("span",{onClick:function(I){return I.stopPropagation()}},M):M}),x),s=b.slice();return f>=0&&s.splice(f,0,u),s}return b},[V,b,te,k,U,r]),v=H.useMemo(function(){var x=E;return m&&(x=m(x)),x.length||(x=[{render:function(){return null}}]),x},[m,E,r]),$=H.useMemo(function(){return r==="rtl"?ee(A(v)):A(v)},[v,r]);return[v,$]}q.b=X},"y0+3":function(Te,q,n){"use strict";n.d(q,"a",function(){return A}),n.d(q,"b",function(){return ee});var L=/margin|padding|width|height|max|min|offset/,O={left:!0,top:!0},fe={cssFloat:1,styleFloat:1,float:1};function ce(X){return X.nodeType===1?X.ownerDocument.defaultView.getComputedStyle(X,null):{}}function H(X,p,m){if(p=p.toLowerCase(),m==="auto"){if(p==="height")return X.offsetHeight;if(p==="width")return X.offsetWidth}return p in O||(O[p]=L.test(p)),O[p]?parseFloat(m)||0:m}function o(X,p){var m=arguments.length,z=ce(X);return p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,m===1?z:H(X,p,z[p]||X.style[p])}function le(X,p,m){var z=arguments.length;if(p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,z===3)return typeof m=="number"&&L.test(p)&&(m="".concat(m,"px")),X.style[p]=m,m;for(var N in p)p.hasOwnProperty(N)&&le(X,N,p[N]);return ce(X)}function Y(X){return X===document.body?document.documentElement.clientWidth:X.offsetWidth}function j(X){return X===document.body?window.innerHeight||document.documentElement.clientHeight:X.offsetHeight}function S(){var X=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:X,height:p}}function A(){var X=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:X,height:p}}function Z(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ee(X){var p=X.getBoundingClientRect(),m=document.documentElement;return{left:p.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(d,",").concat(d," 0 1 1 ").concat(-G,",").concat(P),W=Math.PI*2*d,I={stroke:u,strokeDasharray:"".concat(y/100*(W-h),"px ").concat(W,"px"),strokeDashoffset:"-".concat(h/2+f/100*(W-h),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:M,pathStyle:I}}var v=function(y){var u=y.prefixCls,s=y.strokeWidth,h=y.trailWidth,l=y.gapDegree,d=y.gapPosition,R=y.trailColor,w=y.strokeLinecap,G=y.style,P=y.className,M=y.strokeColor,W=y.percent,I=K(y,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),_=Object(L.useMemo)(function(){return r+=1,r},[]),re=E(0,100,R,s,l,d),e=re.pathString,i=re.pathStyle,t=b(W),g=b(M),D=g.find(function(Oe){return Object.prototype.toString.call(Oe)==="[object Object]"}),B=o(t),oe=F(B,1),he=oe[0],Ce=function(){var ve=0;return t.map(function(be,Ie){var ze=g[Ie]||g[g.length-1],He=Object.prototype.toString.call(ze)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(_,")"):"",Ze=E(ve,be,ze,s,l,d);return ve+=be,O.a.createElement("path",{key:Ie,className:"".concat(u,"-circle-path"),d:Ze.pathString,stroke:He,strokeLinecap:w,strokeWidth:s,opacity:be===0?0:1,fillOpacity:"0",style:Ze.pathStyle,ref:he[Ie]})})};return O.a.createElement("svg",N({className:ce()("".concat(u,"-circle"),P),viewBox:"0 0 100 100",style:G},I),D&&O.a.createElement("defs",null,O.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(_),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(D).sort(function(Oe,ve){return a(Oe)-a(ve)}).map(function(Oe,ve){return O.a.createElement("stop",{key:ve,offset:Oe,stopColor:D[Oe]})}))),O.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:e,stroke:R,strokeLinecap:w,strokeWidth:h||s,fillOpacity:"0",style:i}),Ce().reverse())};v.defaultProps=H;var $=v,x={Line:z,Circle:$}},hW8S:function(Se,q,n){"use strict";n.d(q,"a",function(){return ce}),n.d(q,"c",function(){return H}),n.d(q,"b",function(){return o});var L=n("VTBJ"),O=n("Ff2n"),fe=n("Kwbf"),ce="RC_TABLE_INTERNAL_COL_DEFINE";function H(le){var Y=le.expandable,j=Object(O.a)(le,["expandable"]);return"expandable"in le?Object(L.a)(Object(L.a)({},j),Y):j}function o(le){return Object.keys(le).reduce(function(Y,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-")&&(Y[j]=le[j]),Y},{})}},n6Qo:function(Se,q,n){"use strict";n.d(q,"a",function(){return Y});var L=n("q1tI"),O=n("biw7"),fe=n("fyJ8");function ce(j){var T=j.className,A=j.index,Z=j.children,ee=j.colSpan,X=j.rowSpan,p=L.useContext(O.a),m=p.prefixCls,z=p.fixedInfoList,N=z[A];return L.createElement(fe.a,Object.assign({className:T,index:A,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:Z,props:{colSpan:ee,rowSpan:X}}}},N))}function H(j){return L.createElement("tr",Object.assign({},j))}function o(j){var T=j.children,A=L.useContext(O.a),Z=A.prefixCls;return L.createElement("tfoot",{className:"".concat(Z,"-summary")},T)}var le=q.b=o,Y={Cell:ce,Row:H}},sR1s:function(Se,q,n){"use strict";n.d(q,"b",function(){return ce}),n.d(q,"a",function(){return H}),n.d(q,"c",function(){return o}),n.d(q,"d",function(){return le});var L=n("U8pU"),O="RC_TABLE_KEY";function fe(Y){return Y==null?[]:Array.isArray(Y)?Y:[Y]}function ce(Y,j){if(!j&&typeof j!="number")return Y;for(var T=fe(j),A=Y,Z=0;Z1)Object(T.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(T.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var k=V[0];if(o.isValidElement(k)&&Object(A.c)(k)){var te=k.ref;V[0]=o.cloneElement(k,{ref:Object(A.a)(te,this.setChildNode)})}return V.length===1?V[0]:V.map(function(S,U){return!o.isValidElement(S)||"key"in S&&S.key!==null?S:o.cloneElement(S,{key:"".concat(ee,"-").concat(U)})})}}]),z}(o.Component);X.displayName="ResizeObserver",q.a=X},wCXF:function(Se,q,n){"use strict";n.d(q,"a",function(){return He});var L=n("rePB"),O=n("VTBJ"),fe=n("KQm4"),ce=n("U8pU"),H=n("ODXe"),o=n("q1tI"),le=n("TSYQ"),Y=n.n(le),j=n("Gytx"),T=n.n(j),A=n("Kwbf"),Z=n("t23M"),ee=n("qx4F"),X=n("6eGT"),p=n("IBYe"),m=n("Ff2n"),z=n("c+Xe"),N=n("fyJ8"),F=n("biw7");function V(C,J,Q,ue,me){var se=Q[C]||{},ne=Q[J]||{},ae,ie;se.fixed==="left"?ae=ue.left[C]:ne.fixed==="right"&&(ie=ue.right[J]);var ge=!1,de=!1,pe=!1,_e=!1,ye=Q[J+1],Re=Q[C-1];if(me==="rtl"){if(ae!==void 0){var Le=Re&&Re.fixed==="left";_e=!Le}else if(ie!==void 0){var Ae=ye&&ye.fixed==="right";pe=!Ae}}else if(ae!==void 0){var Ne=ye&&ye.fixed==="left";ge=!Ne}else if(ie!==void 0){var je=Re&&Re.fixed==="right";de=!je}return{fixLeft:ae,fixRight:ie,lastFixLeft:ge,firstFixRight:de,lastFixRight:pe,firstFixLeft:_e,isSticky:ue.isSticky}}var k=n("sR1s");function te(C){var J=C.cells,Q=C.stickyOffsets,ue=C.flattenColumns,me=C.rowComponent,se=C.cellComponent,ne=C.onHeaderRow,ae=C.index,ie=o.useContext(F.a),ge=ie.prefixCls,de=ie.direction,pe;ne&&(pe=ne(J.map(function(ye){return ye.column}),ae));var _e=Object(k.a)(J.map(function(ye){return ye.column}));return o.createElement(me,Object.assign({},pe),J.map(function(ye,Re){var Le=ye.column,Ae=V(ye.colStart,ye.colEnd,ue,Q,de),Ne;return Le&&Le.onHeaderCell&&(Ne=ye.column.onHeaderCell(Le)),o.createElement(N.a,Object.assign({},ye,{ellipsis:Le.ellipsis,align:Le.align,component:se,prefixCls:ge,key:_e[Re]},Ae,{additionalProps:Ne,rowType:"header"}))}))}te.displayName="HeaderRow";var S=te;function U(C){var J=[];function Q(ne,ae){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;J[ie]=J[ie]||[];var ge=ae,de=ne.filter(Boolean).map(function(pe){var _e={key:pe.key,className:pe.className||"",children:pe.title,column:pe,colStart:ge},ye=1,Re=pe.children;return Re&&Re.length>0&&(ye=Q(Re,ge,ie+1).reduce(function(Le,Ae){return Le+Ae},0),_e.hasSubColumns=!0),"colSpan"in pe&&(ye=pe.colSpan),"rowSpan"in pe&&(_e.rowSpan=pe.rowSpan),_e.colSpan=ye,_e.colEnd=_e.colStart+ye-1,J[ie].push(_e),ge+=ye,ye});return de}Q(C,0);for(var ue=J.length,me=function(ae){J[ae].forEach(function(ie){!("rowSpan"in ie)&&!ie.hasSubColumns&&(ie.rowSpan=ue-ae)})},se=0;se=0;ae-=1){var ie=J[ae],ge=Q&&Q[ae],de=ge&&ge[r.a];(ie||de||ne)&&(me.unshift(o.createElement("col",Object.assign({key:ae,style:{width:ie,minWidth:ie}},de))),ne=!0)}return o.createElement("colgroup",null,me)}var b=a;function E(C,J){return Object(o.useMemo)(function(){for(var Q=[],ue=0;ue1?ot-1:0),pt=1;pt=pe&&(Ee=pe-_e),ne({scrollLeft:Ee/pe*(de+2)}),je.current.x=Pe.pageX},Ye=function(){var Pe=Object(Ce.b)(se.current).top,Fe=Pe+se.current.offsetHeight,nt=document.documentElement.scrollTop+window.innerHeight;Fe-Object(ee.a)()<=nt||Pe>=nt-ae?Ne(function(Te){return Object(O.a)(Object(O.a)({},Te),{},{isHiddenScrollBar:!0})}):Ne(function(Te){return Object(O.a)(Object(O.a)({},Te),{},{isHiddenScrollBar:!1})})},Ke=function(Pe){Ne(function(Fe){return Object(O.a)(Object(O.a)({},Fe),{},{scrollLeft:Pe/de*pe||0})})};return o.useImperativeHandle(Q,function(){return{setScrollLeft:Ke}}),o.useEffect(function(){var Ue=Object(he.a)(document.body,"mouseup",Ve,!1),Pe=Object(he.a)(document.body,"mousemove",qe,!1);return Ye(),function(){Ue.remove(),Pe.remove()}},[_e,ke]),o.useEffect(function(){var Ue=Object(he.a)(window,"scroll",Ye,!1),Pe=Object(he.a)(window,"resize",Ye,!1);return function(){Ue.remove(),Pe.remove()}},[]),o.useEffect(function(){Ae.isHiddenScrollBar||Ne(function(Ue){var Pe,Fe;return Object(O.a)(Object(O.a)({},Ue),{},{scrollLeft:se.current.scrollLeft/((Pe=se.current)===null||Pe===void 0?void 0:Pe.scrollWidth)*((Fe=se.current)===null||Fe===void 0?void 0:Fe.clientWidth)})})},[Ae.isHiddenScrollBar]),de<=pe||!_e||Ae.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(ee.a)(),width:pe,bottom:ae},className:"".concat(ge,"-sticky-scroll")},o.createElement("div",{onMouseDown:we,ref:ye,className:Y()("".concat(ge,"-sticky-scroll-bar"),Object(L.a)({},"".concat(ge,"-sticky-scroll-bar-active"),ke)),style:{width:"".concat(_e,"px"),transform:"translate3d(".concat(Ae.scrollLeft,"px, 0, 0)")}}))},ve=o.forwardRef(Oe);function be(C,J){return o.useMemo(function(){var Q=!!C;return{isSticky:Q,stickyClassName:Q?"".concat(J,"-sticky-header"):"",offsetHeader:Object(ce.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(ce.a)(C)==="object"&&C.offsetScroll||0}},[C,J])}var Ie=[],ze={},He="rc-table-internal-hook",Ze=o.memo(function(C){var J=C.children;return J},function(C,J){return T()(C.props,J.props)?C.pingLeft!==J.pingLeft||C.pingRight!==J.pingRight:!1});function Je(C){var J,Q=C.prefixCls,ue=C.className,me=C.rowClassName,se=C.style,ne=C.data,ae=C.rowKey,ie=C.scroll,ge=C.tableLayout,de=C.direction,pe=C.title,_e=C.footer,ye=C.summary,Re=C.id,Le=C.showHeader,Ae=C.components,Ne=C.emptyText,je=C.onRow,at=C.onHeaderRow,Be=C.internalHooks,ke=C.transformColumns,Xe=C.internalRefs,Ve=C.sticky,we=ne||Ie,qe=!!we.length,Ye=o.useState(0),Ke=Object(H.a)(Ye,2),Ue=Ke[0],Pe=Ke[1];o.useEffect(function(){Pe(Object(ee.a)())});var Fe=o.useMemo(function(){return Object(k.c)(Ae,{})},[Ae]),nt=o.useCallback(function(De,Me){return Object(k.b)(Fe,De)||Me},[Fe]),Te=o.useMemo(function(){return typeof ae=="function"?ae:function(De){var Me=De&&De[ae];return Me}},[ae]),Ee=Object(r.c)(C),xe=Ee.expandIcon,We=Ee.expandedRowKeys,$e=Ee.defaultExpandedRowKeys,Qe=Ee.defaultExpandAllRows,ft=Ee.expandedRowRender,et=Ee.onExpand,bt=Ee.onExpandedRowsChange,Pt=Ee.expandRowByClick,ut=Ee.rowExpandable,Ct=Ee.expandIconColumnIndex,gt=Ee.expandedRowClassName,kt=Ee.childrenColumnName,Tt=Ee.indentSize,Et=xe||B,Ot=kt||"children",St=o.useMemo(function(){return ft?"row":C.expandable&&Be===He&&C.expandable.__PARENT_RENDER_ICON__||we.some(function(De){return De&&Object(ce.a)(De)==="object"&&De[Ot]})?"nest":!1},[!!ft,we]),At=o.useState(function(){return $e||(Qe?oe(we,Te,Ot):[])}),rt=Object(H.a)(At,2),st=rt[0],ct=rt[1],ot=o.useMemo(function(){return new Set(We||st||[])},[We,st]),ht=o.useCallback(function(De){var Me=Te(De,we.indexOf(De)),tt,lt=ot.has(Me);lt?(ot.delete(Me),tt=Object(fe.a)(ot)):tt=[].concat(Object(fe.a)(ot),[Me]),ct(tt),et&&et(!lt,De),bt&&bt(tt)},[Te,ot,we,et,bt]),pt=o.useState(0),Dt=Object(H.a)(pt,2),xt=Dt[0],Nt=Dt[1],vn=Object(M.b)(Object(O.a)(Object(O.a)(Object(O.a)({},C),Ee),{},{expandable:!!ft,expandedKeys:ot,getRowKey:Te,onTriggerExpand:ht,expandIcon:Et,expandIconColumnIndex:Ct,direction:de}),Be===He?ke:null),Jt=Object(H.a)(vn,2),Kt=Jt[0],Ge=Jt[1],Mt=o.useMemo(function(){return{columns:Kt,flattenColumns:Ge}},[Kt,Ge]),Wt=o.useRef(),Qt=o.useRef(),vt=o.useRef(),bn=o.useState(!1),Zt=Object(H.a)(bn,2),qt=Zt[0],gn=Zt[1],En=o.useState(!1),en=Object(H.a)(En,2),tn=en[0],yn=en[1],Cn=_(new Map),nn=Object(H.a)(Cn,2),On=nn[0],xn=nn[1],_n=Object(k.a)(Ge),an=_n.map(function(De){return On.get(De)}),rn=o.useMemo(function(){return an},[an.join("_")]),wt=i(rn,Ge.length,de),dt=ie&&Object(k.d)(ie.y),mt=ie&&Object(k.d)(ie.x),_t=mt&&Ge.some(function(De){var Me=De.fixed;return Me}),on=o.useRef(),Lt=be(Ve,Q),jt=Lt.isSticky,jn=Lt.offsetHeader,Rn=Lt.offsetScroll,Pn=Lt.stickyClassName,Bt,Ut,zt;dt&&(Ut={overflowY:"scroll",maxHeight:ie.y}),mt&&(Bt={overflowX:"auto"},dt||(Ut={overflowY:"hidden"}),zt={width:ie.x===!0?"auto":ie.x,minWidth:"100%"});var sn=o.useCallback(function(De,Me){xn(function(tt){var lt=new Map(tt);return lt.set(De,Me),lt})},[]),Tn=re(null),ln=Object(H.a)(Tn,2),Sn=ln[0],un=ln[1];function Ft(De,Me){if(!Me)return;typeof Me=="function"?Me(De):Me.scrollLeft!==De&&(Me.scrollLeft=De)}var yt=function(Me){var tt=Me.currentTarget,lt=Me.scrollLeft,Rt=typeof lt=="number"?lt:tt.scrollLeft,pn=tt||ze;if(!un()||un()===pn){var Yt;Sn(pn),Ft(Rt,Qt.current),Ft(Rt,vt.current),Ft(Rt,(Yt=on.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(tt){var Un=tt.scrollWidth,In=tt.clientWidth;gn(Rt>0),yn(Rt0?[].concat(Object(O.a)(m),Object(O.a)(A(V).map(function(k){return Object(fe.a)({fixed:F},k)}))):[].concat(Object(O.a)(m),[Object(fe.a)(Object(fe.a)({},z),{},{fixed:F})])},[])}function Z(p){for(var m=!0,z=0;z=0;V-=1){var k=p[V];if(F&&k.fixed!=="right")F=!1;else if(!F&&k.fixed==="right"){Object(le.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function ee(p){return p.map(function(m){var z=m.fixed,N=Object(ce.a)(m,["fixed"]),F=z;return z==="left"?F="right":z==="right"&&(F="left"),Object(fe.a)({fixed:F},N)})}function X(p,m){var z=p.prefixCls,N=p.columns,F=p.children,V=p.expandable,k=p.expandedKeys,te=p.getRowKey,S=p.onTriggerExpand,U=p.expandIcon,K=p.rowExpandable,c=p.expandIconColumnIndex,r=p.direction,a=p.expandRowByClick,b=H.useMemo(function(){return N||T(F)},[N,F]),E=H.useMemo(function(){if(V){var x,f=c||0,y=b[f],u=(x={},Object(L.a)(x,j.a,{className:"".concat(z,"-expand-icon-col")}),Object(L.a)(x,"title",""),Object(L.a)(x,"fixed",y?y.fixed:null),Object(L.a)(x,"className","".concat(z,"-row-expand-icon-cell")),Object(L.a)(x,"render",function(l,d,R){var w=te(d,R),G=k.has(w),P=K?K(d):!0,M=U({prefixCls:z,expanded:G,expandable:P,record:d,onExpand:S});return a?H.createElement("span",{onClick:function(I){return I.stopPropagation()}},M):M}),x),s=b.slice();return f>=0&&s.splice(f,0,u),s}return b},[V,b,te,k,U,r]),v=H.useMemo(function(){var x=E;return m&&(x=m(x)),x.length||(x=[{render:function(){return null}}]),x},[m,E,r]),$=H.useMemo(function(){return r==="rtl"?ee(A(v)):A(v)},[v,r]);return[v,$]}q.b=X},"y0+3":function(Se,q,n){"use strict";n.d(q,"a",function(){return A}),n.d(q,"b",function(){return ee});var L=/margin|padding|width|height|max|min|offset/,O={left:!0,top:!0},fe={cssFloat:1,styleFloat:1,float:1};function ce(X){return X.nodeType===1?X.ownerDocument.defaultView.getComputedStyle(X,null):{}}function H(X,p,m){if(p=p.toLowerCase(),m==="auto"){if(p==="height")return X.offsetHeight;if(p==="width")return X.offsetWidth}return p in O||(O[p]=L.test(p)),O[p]?parseFloat(m)||0:m}function o(X,p){var m=arguments.length,z=ce(X);return p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,m===1?z:H(X,p,z[p]||X.style[p])}function le(X,p,m){var z=arguments.length;if(p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,z===3)return typeof m=="number"&&L.test(p)&&(m="".concat(m,"px")),X.style[p]=m,m;for(var N in p)p.hasOwnProperty(N)&&le(X,N,p[N]);return ce(X)}function Y(X){return X===document.body?document.documentElement.clientWidth:X.offsetWidth}function j(X){return X===document.body?window.innerHeight||document.documentElement.clientHeight:X.offsetHeight}function T(){var X=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:X,height:p}}function A(){var X=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:X,height:p}}function Z(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ee(X){var p=X.getBoundingClientRect(),m=document.documentElement;return{left:p.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Norm__List.300e3f0c.async.js b/p__Engineering__Norm__List.300e3f0c.async.js index e6068fa179..f2304b15cc 100644 --- a/p__Engineering__Norm__List.300e3f0c.async.js +++ b/p__Engineering__Norm__List.300e3f0c.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[142,8,10],{"+QRC":function(ze,ie,n){"use strict";var x=n("E9nw"),N={"text/plain":"Text","text/html":"Url",default:"Text"},be="Copy to clipboard: #{key}, Enter";function S(m){var Y=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,Y)}function o(m,Y){var M,A,se,L,V,ee,B=!1;Y||(Y={}),M=Y.debug||!1;try{se=x(),L=document.createRange(),V=document.getSelection(),ee=document.createElement("span"),ee.textContent=m,ee.style.all="unset",ee.style.position="fixed",ee.style.top=0,ee.style.clip="rect(0, 0, 0, 0)",ee.style.whiteSpace="pre",ee.style.webkitUserSelect="text",ee.style.MozUserSelect="text",ee.style.msUserSelect="text",ee.style.userSelect="text",ee.addEventListener("copy",function(E){if(E.stopPropagation(),Y.format)if(E.preventDefault(),typeof E.clipboardData=="undefined"){M&&console.warn("unable to use e.clipboardData"),M&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var F=N[Y.format]||N.default;window.clipboardData.setData(F,m)}else E.clipboardData.clearData(),E.clipboardData.setData(Y.format,m);Y.onCopy&&(E.preventDefault(),Y.onCopy(E.clipboardData))}),document.body.appendChild(ee),L.selectNodeContents(ee),V.addRange(L);var j=document.execCommand("copy");if(!j)throw new Error("copy command was unsuccessful");B=!0}catch(E){M&&console.error("unable to copy using execCommand: ",E),M&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(Y.format||"text",m),Y.onCopy&&Y.onCopy(window.clipboardData),B=!0}catch(F){M&&console.error("unable to copy using clipboardData: ",F),M&&console.error("falling back to prompt"),A=S("message"in Y?Y.message:be),window.prompt(A,m)}}finally{V&&(typeof V.removeRange=="function"?V.removeRange(L):V.removeAllRanges()),ee&&document.body.removeChild(ee),se()}return B}ze.exports=o},"6+eU":function(ze,ie,n){"use strict";n.d(ie,"a",function(){return w});var x=n("wx14"),N=n("rePB"),be=n("VTBJ"),S=n("1OyB"),o=n("vuIU"),m=n("Ji7U"),Y=n("LK+K"),M=n("q1tI"),A=n.n(M),se=n("TSYQ"),L=n.n(se),V=function(W){var p,b="".concat(W.rootPrefixCls,"-item"),l=L()(b,"".concat(b,"-").concat(W.page),(p={},Object(N.a)(p,"".concat(b,"-active"),W.active),Object(N.a)(p,W.className,!!W.className),Object(N.a)(p,"".concat(b,"-disabled"),!W.page),p)),T=function(){W.onClick(W.page)},D=function(d){W.onKeyPress(d,W.onClick,W.page)};return A.a.createElement("li",{title:W.showTitle?W.page:null,className:l,onClick:T,onKeyPress:D,tabIndex:"0"},W.itemRender(W.page,"page",A.a.createElement("a",{rel:"nofollow"},W.page)))},ee=V,B={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},j=function(U){Object(m.a)(p,U);var W=Object(Y.a)(p);function p(){var b;Object(S.a)(this,p);for(var l=arguments.length,T=new Array(l),D=0;D=0||R.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;b.setState({goInputText:""}),_(b.getValidValue())},b.go=function(R){var d=b.state.goInputText;if(d==="")return;(R.keyCode===B.ENTER||R.type==="click")&&(b.setState({goInputText:""}),b.props.quickGo(b.getValidValue()))},b}return Object(o.a)(p,[{key:"getValidValue",value:function(){var l=this.state,T=l.goInputText,D=l.current;return!T||isNaN(T)?D:Number(T)}},{key:"getPageSizeOptions",value:function(){var l=this.props,T=l.pageSize,D=l.pageSizeOptions;return D.some(function(R){return R.toString()===T.toString()})?D:D.concat([T.toString()]).sort(function(R,d){var g=isNaN(Number(R))?0:Number(R),_=isNaN(Number(d))?0:Number(d);return g-_})}},{key:"render",value:function(){var l=this,T=this.props,D=T.pageSize,R=T.locale,d=T.rootPrefixCls,g=T.changeSize,_=T.quickGo,y=T.goButton,$=T.selectComponentClass,le=T.buildOptionText,ae=T.selectPrefixCls,k=T.disabled,ye=this.state.goInputText,Ne="".concat(d,"-options"),Se=$,we=null,ue=null,ce=null;if(!g&&!_)return null;var Me=this.getPageSizeOptions();if(g&&Se){var ve=Me.map(function(z,H){return A.a.createElement(Se.Option,{key:H,value:z.toString()},(le||l.buildOptionText)(z))});we=A.a.createElement(Se,{disabled:k,prefixCls:ae,showSearch:!1,className:"".concat(Ne,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||Me[0]).toString(),onChange:this.changeSize,getPopupContainer:function(H){return H.parentNode}},ve)}return _&&(y&&(ce=typeof y=="boolean"?A.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:k,className:"".concat(Ne,"-quick-jumper-button")},R.jump_to_confirm):A.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),ue=A.a.createElement("div",{className:"".concat(Ne,"-quick-jumper")},R.jump_to,A.a.createElement("input",{disabled:k,type:"text",value:ye,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),R.page,ce)),A.a.createElement("li",{className:"".concat(Ne)},we,ue)}}]),p}(A.a.Component);j.defaultProps={pageSizeOptions:["10","20","50","100"]};var E=j,F=n("N2Kk");function I(){}function te(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function ne(U,W,p){return p}function X(U,W,p){var b=typeof U=="undefined"?W.pageSize:U;return Math.floor((p.total-1)/b)+1}var fe=function(U){Object(m.a)(p,U);var W=Object(Y.a)(p);function p(b){var l;Object(S.a)(this,p),l=W.call(this,b),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(X(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(g,_){var y=l.props.prefixCls,$=g||A.a.createElement("button",{type:"button","aria-label":_,className:"".concat(y,"-item-link")});return typeof g=="function"&&($=A.a.createElement(g,Object(be.a)({},l.props))),$},l.savePaginationNode=function(g){l.paginationNode=g},l.isValid=function(g){return te(g)&&g!==l.state.current},l.shouldDisplayQuickJumper=function(){var g=l.props,_=g.showQuickJumper,y=g.pageSize,$=g.total;return $<=y?!1:_},l.handleKeyDown=function(g){(g.keyCode===B.ARROW_UP||g.keyCode===B.ARROW_DOWN)&&g.preventDefault()},l.handleKeyUp=function(g){var _=l.getValidValue(g),y=l.state.currentInputValue;_!==y&&l.setState({currentInputValue:_}),g.keyCode===B.ENTER?l.handleChange(_):g.keyCode===B.ARROW_UP?l.handleChange(_-1):g.keyCode===B.ARROW_DOWN&&l.handleChange(_+1)},l.changePageSize=function(g){var _=l.state.current,y=X(g,l.state,l.props);_=_>y?y:_,y===0&&(_=l.state.current),typeof g=="number"&&("pageSize"in l.props||l.setState({pageSize:g}),"current"in l.props||l.setState({current:_,currentInputValue:_})),l.props.onShowSizeChange(_,g),"onChange"in l.props&&l.props.onChange&&l.props.onChange(_,g)},l.handleChange=function(g){var _=l.props.disabled,y=g;if(l.isValid(y)&&!_){var $=X(void 0,l.state,l.props);y>$?y=$:y<1&&(y=1),"current"in l.props||l.setState({current:y,currentInputValue:y});var le=l.state.pageSize;return l.props.onChange(y,le),y}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?y-2:0),le=2;le=D?d=D:d=Number(T),d}},{key:"getShowSizeChanger",value:function(){var l=this.props,T=l.showSizeChanger,D=l.total,R=l.totalBoundaryShowSizeChanger;return typeof T!="undefined"?T:D>R}},{key:"renderPrev",value:function(l){var T=this.props,D=T.prevIcon,R=T.itemRender,d=R(l,"prev",this.getItemIcon(D,"prev page")),g=!this.hasPrev();return Object(M.isValidElement)(d)?Object(M.cloneElement)(d,{disabled:g}):d}},{key:"renderNext",value:function(l){var T=this.props,D=T.nextIcon,R=T.itemRender,d=R(l,"next",this.getItemIcon(D,"next page")),g=!this.hasNext();return Object(M.isValidElement)(d)?Object(M.cloneElement)(d,{disabled:g}):d}},{key:"render",value:function(){var l=this,T=this.props,D=T.prefixCls,R=T.className,d=T.style,g=T.disabled,_=T.hideOnSinglePage,y=T.total,$=T.locale,le=T.showQuickJumper,ae=T.showLessItems,k=T.showTitle,ye=T.showTotal,Ne=T.simple,Se=T.itemRender,we=T.showPrevNextJumpers,ue=T.jumpPrevIcon,ce=T.jumpNextIcon,Me=T.selectComponentClass,ve=T.selectPrefixCls,z=T.pageSizeOptions,H=this.state,Ee=H.current,Pe=H.pageSize,Ie=H.currentInputValue;if(_===!0&&y<=Pe)return null;var me=X(void 0,this.state,this.props),Ae=[],Ze=null,Be=null,dt=null,xt=null,ft=null,De=le&&le.goButton,Oe=ae?1:2,qe=Ee-1>0?Ee-1:0,st=Ee+1=Oe*2&&Ee!==1+2&&(Ae[0]=Object(M.cloneElement)(Ae[0],{className:"".concat(D,"-item-after-jump-prev")}),Ae.unshift(Ze)),me-Ee>=Oe*2&&Ee!==me-2&&(Ae[Ae.length-1]=Object(M.cloneElement)(Ae[Ae.length-1],{className:"".concat(D,"-item-before-jump-next")}),Ae.push(Be)),K!==1&&Ae.unshift(dt),pe!==me&&Ae.push(xt)}var q=null;ye&&(q=A.a.createElement("li",{className:"".concat(D,"-total-text")},ye(y,[y===0?0:(Ee-1)*Pe+1,Ee*Pe>y?y:Ee*Pe])));var Z=!this.hasPrev()||!me,oe=!this.hasNext()||!me;return A.a.createElement("ul",Object(x.a)({className:L()(D,R,Object(N.a)({},"".concat(D,"-disabled"),g)),style:d,unselectable:"unselectable",ref:this.savePaginationNode},lt),q,A.a.createElement("li",{title:k?$.prev_page:null,onClick:this.prev,tabIndex:Z?null:0,onKeyPress:this.runIfEnterPrev,className:L()("".concat(D,"-prev"),Object(N.a)({},"".concat(D,"-disabled"),Z)),"aria-disabled":Z},this.renderPrev(qe)),Ae,A.a.createElement("li",{title:k?$.next_page:null,onClick:this.next,tabIndex:oe?null:0,onKeyPress:this.runIfEnterNext,className:L()("".concat(D,"-next"),Object(N.a)({},"".concat(D,"-disabled"),oe)),"aria-disabled":oe},this.renderNext(st)),A.a.createElement(E,{disabled:g,locale:$,rootPrefixCls:D,selectComponentClass:Me,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ee,pageSize:Pe,pageSizeOptions:z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:De}))}}],[{key:"getDerivedStateFromProps",value:function(l,T){var D={};if("current"in l&&(D.current=l.current,l.current!==T.current&&(D.currentInputValue=D.current)),"pageSize"in l&&l.pageSize!==T.pageSize){var R=T.current,d=X(l.pageSize,T,l);R=R>d?d:R,"current"in l||(D.current=R,D.currentInputValue=R),D.pageSize=l.pageSize}return D}}]),p}(A.a.Component);fe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:I,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:I,locale:F.a,style:{},itemRender:ne,totalBoundaryShowSizeChanger:50};var w=fe},"6RRn":function(ze,ie,n){"use strict";var x=n("wCXF"),N=n("n6Qo");n.d(ie,"b",function(){return N.a});var be=n("IBYe"),S=n("6eGT"),o=n("hW8S");n.d(ie,"a",function(){return o.a}),ie.c=x.b},"6eGT":function(ze,ie,n){"use strict";function x(N){return null}ie.a=x},"7bZU":function(ze,ie,n){ze.exports={normTablistContainer:"normTablistContainer___3XGh5",red:"red___LIReu",green:"green___2IVmA"}},"815F":function(ze,ie,n){"use strict";n.d(ie,"e",function(){return Y}),n.d(ie,"c",function(){return A}),n.d(ie,"d",function(){return se}),n.d(ie,"a",function(){return V}),n.d(ie,"f",function(){return ee}),n.d(ie,"b",function(){return B});var x=n("KQm4"),N=n("VTBJ"),be=n("Ff2n"),S=n("Zm9Q"),o=n("Kwbf"),m=n("OZM5");function Y(j,E){return j!=null?j:E}function M(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=new Map;function F(I){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(I||[]).forEach(function(ne){var X=ne.key,fe=ne.children;Object(o.a)(X!=null,"Tree node must have a certain key: [".concat(te).concat(X,"]"));var w=String(X);Object(o.a)(!E.has(w)||X===null||X===void 0,"Same 'key' exist in the Tree: ".concat(w)),E.set(w,!0),F(fe,"".concat(te).concat(w," > "))})}F(j)}function A(j){function E(F){var I=Object(S.a)(F);return I.map(function(te){if(!Object(m.i)(te))return Object(o.a)(!te,"Tree/TreeNode can only accept TreeNode as children."),null;var ne=te.key,X=te.props,fe=X.children,w=Object(be.a)(X,["children"]),U=Object(N.a)({key:ne},w),W=E(fe);return W.length&&(U.children=W),U}).filter(function(te){return te})}return E(j)}function se(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],F=new Set(E===!0?[]:E),I=[];function te(ne){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ne.map(function(fe,w){var U=Object(m.h)(X?X.pos:"0",w),W=Y(fe.key,U),p=Object(N.a)(Object(N.a)({},fe),{},{parent:X,pos:U,children:null,data:fe,isStart:[].concat(Object(x.a)(X?X.isStart:[]),[w===0]),isEnd:[].concat(Object(x.a)(X?X.isEnd:[]),[w===ne.length-1])});return I.push(p),E===!0||F.has(W)?p.children=te(fe.children||[],p):p.children=[],p})}return te(j),I}function L(j,E,F){var I;F?typeof F=="string"?I=function(X){return X[F]}:typeof F=="function"&&(I=function(X){return F(X)}):I=function(X,fe){return Y(X.key,fe)};function te(ne,X,fe){var w=ne?ne.children:j,U=ne?Object(m.h)(fe.pos,X):"0";if(ne){var W=I(ne,U),p={node:ne,index:X,pos:U,key:W,parentPos:fe.node?fe.pos:null,level:fe.level+1};E(p)}w&&w.forEach(function(b,l){te(b,l,{node:ne,pos:U,level:fe?fe.level+1:-1})})}te(null)}function V(j){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=E.initWrapper,I=E.processEntity,te=E.onProcessFinished,ne=arguments.length>2?arguments[2]:void 0,X={},fe={},w={posEntities:X,keyEntities:fe};return F&&(w=F(w)||w),L(j,function(U){var W=U.node,p=U.index,b=U.pos,l=U.key,T=U.parentPos,D=U.level,R={node:W,index:p,key:l,pos:b,level:D},d=Y(l,b);X[b]=R,fe[d]=R,R.parent=X[T],R.parent&&(R.parent.children=R.parent.children||[],R.parent.children.push(R)),I&&I(R,w)},ne),te&&te(w),w}function ee(j,E){var F=E.expandedKeys,I=E.selectedKeys,te=E.loadedKeys,ne=E.loadingKeys,X=E.checkedKeys,fe=E.halfCheckedKeys,w=E.dragOverNodeKey,U=E.dropPosition,W=E.keyEntities,p=W[j],b={eventKey:j,expanded:F.indexOf(j)!==-1,selected:I.indexOf(j)!==-1,loaded:te.indexOf(j)!==-1,loading:ne.indexOf(j)!==-1,checked:X.indexOf(j)!==-1,halfChecked:fe.indexOf(j)!==-1,pos:String(p?p.pos:""),dragOver:w===j&&U===0,dragOverGapTop:w===j&&U===-1,dragOverGapBottom:w===j&&U===1};return b}function B(j){var E=j.data,F=j.expanded,I=j.selected,te=j.checked,ne=j.loaded,X=j.loading,fe=j.halfChecked,w=j.dragOver,U=j.dragOverGapTop,W=j.dragOverGapBottom,p=j.pos,b=j.active,l=Object(N.a)(Object(N.a)({},E),{},{expanded:F,selected:I,checked:te,loaded:ne,loading:X,halfChecked:fe,dragOver:w,dragOverGapTop:U,dragOverGapBottom:W,pos:p,active:b});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),j}}),l}},E9nw:function(ze,ie){ze.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var x=document.activeElement,N=[],be=0;be1&&arguments[1]!==void 0?arguments[1]:1,oe=Oe.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(ae).map(function(ye,Ne){if(!o.isValidElement(ye)||!ye.type)return null;var Se=ye.type.isSelectOptGroup,we=ye.key,ue=ye.props,ce=ue.children,Me=Object(Y.a)(ue,["children"]);return k||!Se?W(ye):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(we===null?Ne:we,"__"),label:we},Me),{},{options:p(ce)})}).filter(function(ye){return ye})}var b=n("2Qr1"),l=n("qNPg"),T=n("U8pU"),D=n("Kwbf"),R=n("WKfj");function d(ae){var k=ae.mode,ye=ae.options,Ne=ae.children,Se=ae.backfill,we=ae.allowClear,ue=ae.placeholder,ce=ae.getInputElement,Me=ae.showSearch,ve=ae.onSearch,z=ae.defaultOpen,H=ae.autoFocus,Ee=ae.labelInValue,Pe=ae.value,Ie=ae.inputValue,me=ae.optionLabelProp,Ae=k==="multiple"||k==="tags",Ze=Me!==void 0?Me:Ae||k==="combobox",Be=ye||p(Ne);if(Object(D.a)(k!=="tags"||Be.every(function(De){return!De.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),k==="tags"||k==="combobox"){var dt=Be.some(function(De){return De.options?De.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in De?De.value:De.key)=="number"});Object(D.a)(!dt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(k!=="combobox"||!me,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(k==="combobox"||!Se,"`backfill` only works with `combobox` mode."),Object(D.a)(k==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(D.b)(k!=="combobox"||!ce||!we||!ue,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Ze&&k!=="combobox"&&k!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!z||H,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pe!=null){var xt=Object(R.d)(Pe);Object(D.a)(!Ee||xt.every(function(De){return Object(T.a)(De)==="object"&&("key"in De||"value"in De)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!Ae||Array.isArray(Pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ne){var ft=null;Object(U.a)(Ne).some(function(De){if(!o.isValidElement(De)||!De.type)return!1;var Oe=De.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var qe=Object(U.a)(De.props.children).every(function(st){return!o.isValidElement(st)||!De.type||st.type.isSelectOption?!0:(ft=st.type,!1)});return!qe}return ft=Oe,!0}),ft&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ft.displayName||ft.name||ft,"`.")),Object(D.a)(Ie===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var g=d,_=Object(l.a)({prefixCls:"rc-select",components:{optionList:I},convertChildrenToData:p,flattenOptions:b.d,getLabeledValue:b.e,filterOptions:b.b,isValueDisabled:b.g,findValueOption:b.c,warningProps:g,fillOptionsWithMissingValue:b.a}),y=function(ae){Object(be.a)(ye,ae);var k=Object(S.a)(ye);function ye(){var Ne;return Object(x.a)(this,ye),Ne=k.apply(this,arguments),Ne.selectRef=o.createRef(),Ne.focus=function(){Ne.selectRef.current.focus()},Ne.blur=function(){Ne.selectRef.current.blur()},Ne}return Object(N.a)(ye,[{key:"render",value:function(){return o.createElement(_,Object.assign({ref:this.selectRef},this.props))}}]),ye}(o.Component);y.Option=ne,y.OptGroup=fe;var $=y,le=ie.c=$},M7eO:function(ze,ie,n){"use strict";n.r(ie);var x=n("k1fw"),N=n("+L6B"),be=n("2/Rp"),S=n("tJVT"),o=n("OaEy"),m=n("2fM7"),Y=n("q1tI"),M=n.n(Y),A=n("fj85"),se=n("9kvl"),L=n("PFrg"),V=n.n(L),ee=n("g9YV"),B=n("wCAj"),j=n("DYRE"),E=n("zeV3"),F=n("tU7J"),I=n("wFql"),te=n("5Dmo"),ne=n("3S7+"),X=n("7bZU"),fe=n.n(X),w=function(Oe){var qe=Oe.headerData,st=Oe.tabListData,lt=Oe.loading,Fe=Oe.expandedRowKeys,Xe=Oe.dispatch,Rt=[{title:"\u6BD5\u4E1A\u8981\u6C42\u53CA\u6307\u6807\u70B9",key:"content",ellipsis:{showTitle:!1},width:"50%",render:function(K){return M.a.createElement(ne.a,{placement:"topLeft",title:K.content},K.children?M.a.createElement("span",null,K.position,".",K.content):M.a.createElement("span",null,K.content))}},{title:"\u8FBE\u6210\u9608\u503C",dataIndex:"goal_value",align:"center"},{title:"\u8FBE\u6210\u5EA6\u5B9E\u9645\u503C",dataIndex:"actual_value",align:"center"},{title:"\u8BC4\u4EF7\u7ED3\u679C",dataIndex:"status",align:"center",render:function(K){return M.a.createElement("div",{className:K?fe.a.green:fe.a.red},K?"":"\u672A","\u8FBE\u6210")}},{title:"\u72B6\u6001",dataIndex:"compute_status",render:function(K){return M.a.createElement("div",null,K||"--")}},{title:"\u8BA1\u7B97\u65F6\u95F4",dataIndex:"compute_time",render:function(K){return M.a.createElement("div",null,K||"--")}},{title:"\u64CD\u4F5C",width:80,render:function(K){return K.children?M.a.createElement(E.a,null,M.a.createElement(I.a.Link,{onClick:function(){return O(K.id)}},M.a.createElement("i",{className:"iconfont icon-jisuan",style:{color:"#0152D9"}})),M.a.createElement(I.a.Link,{onClick:function(){return se.d.push("/engineering/evaluate/norm/".concat(qe.active[se.b[1]],"/").concat(K.id))}},M.a.createElement("i",{className:"iconfont icon-chakansvg",style:{color:"#0152D9"}}))):M.a.createElement(M.a.Fragment,null)}}],O=function(K){Xe({type:"engineeringNormList/compute",payload:{all:!1,ec_year_id:qe.active[se.b[1]],id:K}})};return M.a.createElement("div",{className:fe.a.normTablistContainer},M.a.createElement(B.a,{loading:lt.effects["engineeringNormList/getGraduationResults"]||lt.effects["engineeringNormList/compute"],rowKey:"id",columns:Rt,bordered:!1,dataSource:st,expandable:{expandedRowKeys:Fe,expandIcon:function(){return M.a.createElement(M.a.Fragment,null)}},pagination:!1}))},U=Object(se.a)(function(De){var Oe=De.engineeringNormList,qe=De.loading;return Object(x.a)({loading:qe},Oe)})(w),W=n("2qtc"),p=n("kLXV"),b=n("miYZ"),l=n("tsqr"),T=n("jrin"),D=n("7Kak"),R=n("9yH6"),d=n("Znn+"),g=n("ZTPi"),_=n("T+NF"),y=n.n(_),$=g.a.TabPane,le={formula_one:"\u6307\u6807\u70B9\u8FBE\u6210\u5B9E\u9645\u503C",formula_two:"\u6307\u6807\u70B9\u8BC4\u4EF7\u7ED3\u679C",formula_three:"\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u5B9E\u9645\u503C"},ae=function(Oe){var qe=Oe.actionTabs,st=Oe.loading,lt=Oe.dispatch,Fe=Object(Y.useState)({}),Xe=Object(S.a)(Fe,2),Rt=Xe[0],O=Xe[1],G=Object(Y.useState)({formula_one:[],formula_two:[],formula_three:[]}),K=Object(S.a)(G,2),pe=K[0],xe=K[1];Object(Y.useEffect)(function(){lt({type:"engineeringNormList/getFormulas",callback:function(re){if(re){xe(re);var ge={};for(var je in re){var Te=re[je].find(function(Ue){return Ue.checked});ge[je]=Te?Te.id:void 0}O(ge)}}})},[]);var he=function(re){return[{title:"".concat(le[re],"\u8BA1\u7B97\u516C\u5F0F"),key:"content",render:function(je){return M.a.createElement("div",{className:y.a.name},M.a.createElement("div",null,je.checked&&M.a.createElement("span",{className:y.a.tag},"\u9ED8\u8BA4")),M.a.createElement("div",{className:y.a.content},M.a.createElement("div",null,je.content),je.explain&&M.a.createElement("div",{className:y.a.subtitle},"\u8BF4\u660E\uFF1A",je.explain)))}},{title:"\u64CD\u4F5C",width:120,render:function(je){return M.a.createElement("div",null,M.a.createElement(R.a,{checked:Rt[re]===je.id,onClick:function(){return q(re,je.id)}},"\u8BBE\u7F6E\u9ED8\u8BA4\u516C\u5F0F"))}}]},q=function(re,ge){var je=pe[re].map(function(Te){return Object(x.a)(Object(x.a)({},Te),{},{checked:ge===Te.id})});O(Object(x.a)(Object(x.a)({},Rt),{},Object(T.a)({},re,ge))),xe(Object(x.a)(Object(x.a)({},pe),{},Object(T.a)({},re,je)))},Z=function(){lt({type:"engineeringNormList/save",payload:{actionTabs:{key:"",params:{}}}})},oe=function(){lt({type:"engineeringNormList/setFormulas",payload:Object(x.a)({ec_year_id:qe.params.id},Rt),callback:function(ge){ge&&ge.status===0?(l.b.success("\u66F4\u65B0\u6210\u529F"),lt({type:"engineeringNormList/getGraduationResults"}),Z()):l.b.error("\u66F4\u65B0\u5931\u8D25")}})};return M.a.createElement("div",{className:y.a.normCalcModalContainer},M.a.createElement(p.a,{title:"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F",visible:!0,width:918,wrapClassName:y.a.normCalcModalWrap,onCancel:Z,onOk:oe,confirmLoading:st.effects["engineeringNormList/getFormulas"]||st.effects["engineeringNormList/setFormulas"]||!1},M.a.createElement("div",{className:y.a.normCalcContent},M.a.createElement(g.a,{defaultActiveKey:"1"},Object.entries(le).map(function(Ce,re){var ge=Object(S.a)(Ce,2),je=ge[0],Te=ge[1];return M.a.createElement($,{tab:Te,key:(re+1).toString()},M.a.createElement("div",{className:y.a.tableCotainer},M.a.createElement(B.a,{rowKey:"id",columns:he(je),dataSource:pe[je],pagination:!1})))})))))},k=Object(se.a)(function(De){var Oe=De.loading,qe=De.engineeringNormList;return Object(x.a)({loading:Oe},qe)})(ae),ye=n("0Owb"),Ne=n("14J3"),Se=n("BMrR"),we=n("jCWc"),ue=n("kPKH"),ce=n("9og8"),Me=n("giR+"),ve=n("fyUT"),z=n("y8nQ"),H=n("Vl3Y"),Ee=n("WmNS"),Pe=n.n(Ee),Ie=n("zMNv"),me=n.n(Ie),Ae={wrapperCol:{span:21}},Ze=function(Oe){var qe=Oe.actionTabs,st=Oe.tabListData,lt=Oe.expandedRowKeys,Fe=Oe.all_goal_value,Xe=Oe.loading,Rt=Oe.dispatch,O=H.a.useForm(),G=Object(S.a)(O,1),K=G[0],pe=Object(Y.useState)("all"),xe=Object(S.a)(pe,2),he=xe[0],q=xe[1],Z=Object(Y.useState)({}),oe=Object(S.a)(Z,2),Ce=oe[0],re=oe[1];Object(Y.useEffect)(function(){q("all");var Ue={};st.forEach(function(Ke){Ke.children&&Ke.children.length>0&&Ke.children.forEach(function(He){return Ue[He.id]=He.goal_value!==void 0?He.goal_value:""})}),re(Ue)},[]);var ge=[{title:"\u6BD5\u4E1A\u8981\u6C42\u53CA\u6307\u6807\u70B9",key:"content",render:function(Ke){return M.a.createElement(ne.a,{placement:"top",title:Ke.content},Ke.children?M.a.createElement("span",null,Ke.position,".",Ke.content):M.a.createElement("span",null,Ke.content))}},{title:"\u8FBE\u6210\u9608\u503C",key:"action",width:100,render:function(Ke){return M.a.createElement("div",null,Ke.children?"\u81EA\u52A8\u8BA1\u7B97":M.a.createElement(ve.a,{key:Ke.id,defaultValue:Ke.goal_value,onChange:function(tt){return re(Object(x.a)(Object(x.a)({},Ce),{},Object(T.a)({},Ke.id,tt)))},style:{width:64},min:0,max:1,step:.1,precision:3}))}}],je=function(){Rt({type:"engineeringNormList/save",payload:{actionTabs:{key:"",params:{}}}})},Te=function(){var Ue=Object(ce.a)(Pe.a.mark(function Ke(){var He,tt,We,kt,gt,vt,jt;return Pe.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,K.validateFields();case 2:if(He=nt.sent,tt=He.configure,We=He.goal_value,kt=!1,gt={ec_year_id:qe.params.id,type:tt},tt==="all"&&(gt=Object(x.a)(Object(x.a)({},gt),{},{goal_value:We})),tt==="each"){vt=[];for(jt in Ce)Ce[jt]===""&&(kt=!0),vt.push({id:Number(jt),goal_value:Ce[jt]});gt=Object(x.a)(Object(x.a)({},gt),{},{subitems:vt})}kt&&l.b.info("\u8BF7\u586B\u5199\u5168\u90E8\u7684\u9608\u503C"),["each","all"].includes(tt)&&!kt&&Rt({type:"engineeringNormList/putGoalValue",payload:gt});case 11:case"end":return nt.stop()}},Ke)}));return function(){return Ue.apply(this,arguments)}}();return M.a.createElement("div",{className:me.a.normThresholdsModalModalContainer},M.a.createElement(p.a,{title:"\u914D\u7F6E\u8FBE\u6210\u9608\u503C",visible:!0,width:880,wrapClassName:me.a.normThresholdsModalWrap,onCancel:je,onOk:Te,confirmLoading:Xe.effects["engineeringNormList/putGoalValue"]||!1},M.a.createElement("div",{className:me.a.normThresholdsContent},M.a.createElement("div",{className:me.a.tips},M.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),M.a.createElement("div",null,"1.\u6307\u6807\u70B9\u7684\u8FBE\u6210\u9608\u503C\u8BBE\u7F6E\u8303\u56F4\uFF080,1\uFF09\uFF0C\u4FDD\u7559\u5C0F\u6570\u70B9\u540E\u4E09\u4F4D\uFF1B"),M.a.createElement("div",null,"2.\u6BD5\u4E1A\u8981\u6C42\u7684\u8FBE\u6210\u9608\u503C\u6839\u636E\u8BBE\u7F6E\u7684\u8BA1\u7B97\u516C\u5F0F\u4E0E\u6307\u6807\u70B9\u9608\u503C\u81EA\u52A8\u8BA1\u7B97\u3002\u5982\uFF1A"),M.a.createElement("div",null,"\u8BBE\u7F6E\u7684\u6BD5\u4E1A\u8981\u6C42\u5F97\u5206\u8BA1\u7B97\u516C\u5F0F\u662F\u6309\u6307\u6807\u70B9\u5F97\u5206\u7684\u5E73\u5747\u5206\u8BA1\u7B97\uFF0C\u5219\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u9608\u503C=\u5F53\u524D\u6BD5\u4E1A\u8981\u6C42\u4E0B\u6240\u6709\u6307\u6807\u70B9\u8FBE\u6210\u9608\u503C\u7684\u5E73\u5747\u503C\uFF1B"),M.a.createElement("div",null,"\u8BBE\u7F6E\u7684\u6BD5\u4E1A\u8981\u6C42\u5F97\u5206\u8BA1\u7B97\u516C\u5F0F\u662F\u6309\u591A\u4E2A\u6307\u6807\u70B9\u5F97\u5206\u7684\u6700\u5C0F\u503C\u8BA1\u7B97\uFF0C\u5219\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u9608\u503C=\u5F53\u524D\u6BD5\u4E1A\u8981\u6C42\u4E0B\u6240\u6709\u6307\u6807\u70B9\u5F97\u5206\u7684\u6700\u5C0F\u503C\u3002")),M.a.createElement(H.a,Object(ye.a)({},Ae,{form:K,initialValues:{configure:"all",goal_value:Fe}}),M.a.createElement(H.a.Item,{label:"\u914D\u7F6E\u65B9\u5F0F",name:"configure"},M.a.createElement(R.a.Group,{onChange:function(Ke){q(Ke.target.value)}},M.a.createElement(R.a,{value:"all"},"\u7EDF\u4E00\u914D\u7F6E"),M.a.createElement(R.a,{value:"each"},"\u5355\u72EC\u914D\u7F6E"))),he==="all"&&M.a.createElement(Se.a,null,M.a.createElement(ue.a,{span:7},M.a.createElement(H.a.Item,{label:"\u8FBE\u6210\u9608\u503C",name:"goal_value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9608\u503C"}]},M.a.createElement(ve.a,{onChange:function(Ke){K.setFieldsValue({goal_value:Ke})},placeholder:"\u8BF7\u8F93\u5165\u9608\u503C",style:{width:132},min:0,max:1,step:.1,precision:3}))),M.a.createElement(ue.a,{span:12},M.a.createElement("span",{style:{fontSize:14,color:"#464f66"}},"\u4E3A\u6240\u6709\u6307\u6807\u70B9\u914D\u7F6E\u4E00\u6837\u7684\u8FBE\u6210\u9608\u503C"))),he==="each"&&M.a.createElement("div",null,M.a.createElement(B.a,{rowKey:"id",columns:ge,bordered:!1,dataSource:st,expandable:{expandedRowKeys:lt,expandIcon:function(){return M.a.createElement(M.a.Fragment,null)}},pagination:!1,scroll:{y:460}}))))))},Be=Object(se.a)(function(De){var Oe=De.loading,qe=De.engineeringNormList;return Object(x.a)({loading:Oe},qe)})(Ze),dt=m.a.Option,xt=function(Oe){var qe,st=Oe.user,lt=Oe.actionTabs,Fe=Oe.headerData,Xe=Oe.tabListData,Rt=Oe.loading,O=Oe.dispatch,G=Object(Y.useRef)(!0);Object(Y.useEffect)(function(){var q;return(q=st.userInfo)!==null&&q!==void 0&&q.login&&O({type:"engineeringNormList/getMajorList"}),function(){O({type:"engineeringNormList/save",payload:{actionTabs:{key:"",params:{}}}}),O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:se.b[0],value:""}}),O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:se.b[1],value:""}})}},[(qe=st.userInfo)===null||qe===void 0?void 0:qe.login]),Object(Y.useEffect)(function(){Fe.active[se.b[0]]&&(O({type:"engineeringNormList/getYearList",payload:{id:Fe.active[se.b[0]],firstEnter:G.current}}),G.current=!1,O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:se.b[1],value:""}}),O({type:"engineeringNormList/setMajorOrYearDataSource",payload:{key:se.b[1],value:[]}}))},[Fe.active[se.b[0]]]),Object(Y.useEffect)(function(){O({type:"engineeringNormList/getGraduationResults"})},[Fe.active[se.b[1]]]);var K=function(Z,oe){O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:Z,value:oe}})},pe=function(){O({type:"engineeringNormList/exportGraduation"})},xe=function(){Xe.length&&Fe.active[se.b[1]]&&O({type:"engineeringNormList/compute",payload:{all:!0,ec_year_id:Fe.active[se.b[1]]}})},he=function(Z){O({type:"engineeringNormList/save",payload:{actionTabs:{key:Z,params:{id:Fe.active[se.b[1]]}}}})};return M.a.createElement("div",{className:V.a.normContainer},M.a.createElement(A.a,{title:"\u6307\u6807\u8BC4\u4EF7"}),M.a.createElement("div",{className:V.a.header},M.a.createElement("div",{className:V.a.select},Object.entries(Fe.dataSource).map(function(q){var Z=Object(S.a)(q,2),oe=Z[0],Ce=Z[1];return M.a.createElement(A.b,{title:oe,key:oe},M.a.createElement(m.a,{style:{width:Ce.width},value:Fe.active[oe]||void 0,bordered:!1,placeholder:Ce.placeholder,loading:Rt.effects[Ce.loading],onChange:function(ge){return K(oe,ge)}},Ce.dataList.map(function(re){return M.a.createElement(dt,{key:re.value,value:re.value},re.label)})))})),M.a.createElement("div",{className:V.a.button},M.a.createElement(be.a,{type:"default",icon:M.a.createElement("i",{className:"iconfont icon-yuzhi"}),disabled:!Fe.active[se.b[1]],onClick:function(){return he("\u914D\u7F6E\u8FBE\u6210\u9608\u503C")}},"\u914D\u7F6E\u8FBE\u6210\u9608\u503C"),M.a.createElement(be.a,{type:"default",icon:M.a.createElement("i",{className:"iconfont icon-jisuangongshi"}),disabled:!Fe.active[se.b[1]],onClick:function(){return he("\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F")}},"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"),M.a.createElement(be.a,{type:"primary",disabled:!Xe.length||!Fe.active[se.b[1]],icon:M.a.createElement("i",{className:"iconfont icon-jisuan"}),onClick:xe},"\u5168\u90E8\u8BA1\u7B97"),M.a.createElement(be.a,{disabled:!Xe.length||!Fe.active[se.b[1]],onClick:pe,type:"default",icon:M.a.createElement("i",{className:"iconfont icon-daochubeifen "})},"\u5BFC\u51FA"))),M.a.createElement("div",{className:V.a.tips},"\u8BF4\u660E\uFF1A\u6BD5\u4E1A\u8981\u6C42\u4E0B\u6240\u6709\u7684\u6307\u6807\u70B9\u90FD\u8FBE\u6210\u7684\u65F6\u5019\uFF0C\u6BD5\u4E1A\u8981\u6C42\u624D\u7B97\u8FBE\u6210\u3002"),M.a.createElement(U,null),lt.key==="\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"&&Fe.active[se.b[1]]&&M.a.createElement(k,null),lt.key==="\u914D\u7F6E\u8FBE\u6210\u9608\u503C"&&Fe.active[se.b[1]]&&M.a.createElement(Be,null))},ft=ie.default=Object(se.a)(function(De){var Oe=De.user,qe=De.loading,st=De.engineeringNormList;return Object(x.a)({user:Oe,loading:qe},st)})(xt)},NvD2:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return m});var x=n("Kwbf");function N(Y,M){var A=new Set;return Y.forEach(function(se){M.has(se)||A.add(se)}),A}function be(Y){var M=Y||{},A=M.disabled,se=M.disableCheckbox,L=M.checkable;return!!(A||se)||L===!1}function S(Y,M,A,se){for(var L=new Set(Y),V=new Set,ee=0;ee<=A;ee+=1){var B=M.get(ee)||new Set;B.forEach(function(I){var te=I.key,ne=I.node,X=I.children,fe=X===void 0?[]:X;L.has(te)&&!se(ne)&&fe.filter(function(w){return!se(w.node)}).forEach(function(w){L.add(w.key)})})}for(var j=new Set,E=A;E>=0;E-=1){var F=M.get(E)||new Set;F.forEach(function(I){var te=I.parent,ne=I.node;if(se(ne)||!I.parent||j.has(I.parent.key))return;if(se(I.parent.node)){j.add(te.key);return}var X=!0,fe=!1;(te.children||[]).filter(function(w){return!se(w.node)}).forEach(function(w){var U=w.key,W=L.has(U);X&&!W&&(X=!1),!fe&&(W||V.has(U))&&(fe=!0)}),X&&L.add(te.key),fe&&V.add(te.key),j.add(te.key)})}return{checkedKeys:Array.from(L),halfCheckedKeys:Array.from(N(V,L))}}function o(Y,M,A,se,L){for(var V=new Set(Y),ee=new Set(M),B=0;B<=se;B+=1){var j=A.get(B)||new Set;j.forEach(function(te){var ne=te.key,X=te.node,fe=te.children,w=fe===void 0?[]:fe;!V.has(ne)&&!ee.has(ne)&&!L(X)&&w.filter(function(U){return!L(U.node)}).forEach(function(U){V.delete(U.key)})})}ee=new Set;for(var E=new Set,F=se;F>=0;F-=1){var I=A.get(F)||new Set;I.forEach(function(te){var ne=te.parent,X=te.node;if(L(X)||!te.parent||E.has(te.parent.key))return;if(L(te.parent.node)){E.add(ne.key);return}var fe=!0,w=!1;(ne.children||[]).filter(function(U){return!L(U.node)}).forEach(function(U){var W=U.key,p=V.has(W);fe&&!p&&(fe=!1),!w&&(p||ee.has(W))&&(w=!0)}),fe||V.delete(ne.key),w&&ee.add(ne.key),E.add(ne.key)})}return{checkedKeys:Array.from(V),halfCheckedKeys:Array.from(N(ee,V))}}function m(Y,M,A,se){var L=[],V;se?V=se:V=be;var ee=new Set(Y.filter(function(F){var I=!!A[F];return I||L.push(F),I})),B=new Map,j=0;Object.keys(A).forEach(function(F){var I=A[F],te=I.level,ne=B.get(te);ne||(ne=new Set,B.set(te,ne)),ne.add(I),j=Math.max(j,te)}),Object(x.a)(!L.length,"Tree missing follow keys: ".concat(L.slice(0,100).map(function(F){return"'".concat(F,"'")}).join(", ")));var E;return M===!0?E=S(ee,B,j,V):E=o(ee,M.halfCheckedKeys,B,j,V),E}},OZM5:function(ze,ie,n){"use strict";n.d(ie,"b",function(){return se}),n.d(ie,"a",function(){return L}),n.d(ie,"k",function(){return V}),n.d(ie,"h",function(){return ee}),n.d(ie,"i",function(){return B}),n.d(ie,"g",function(){return j}),n.d(ie,"c",function(){return E}),n.d(ie,"d",function(){return F}),n.d(ie,"j",function(){return ne}),n.d(ie,"e",function(){return X}),n.d(ie,"f",function(){return fe});var x=n("KQm4"),N=n("U8pU"),be=n("Ff2n"),S=n("q1tI"),o=n.n(S),m=n("Kwbf"),Y=n("WaYH"),M=.25,A=2;function se(w,U){var W=w.slice(),p=W.indexOf(U);return p>=0&&W.splice(p,1),W}function L(w,U){var W=w.slice();return W.indexOf(U)===-1&&W.push(U),W}function V(w){return w.split("-")}function ee(w,U){return"".concat(w,"-").concat(U)}function B(w){return w&&w.type&&w.type.isTreeNode}function j(w,U){var W=[w],p=U[w];function b(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(T){var D=T.key,R=T.children;W.push(D),b(R)})}return b(p.children),W}function E(w,U){var W=w.clientY,p=U.selectHandle.getBoundingClientRect(),b=p.top,l=p.bottom,T=p.height,D=Math.max(T*M,A);return W<=b+D?-1:W>=l-D?1:0}function F(w,U){if(!w)return;var W=U.multiple;return W?w.slice():w.length?[w[0]]:w}var I=function(U){return U};function te(w,U){if(!w)return[];var W=U||{},p=W.processProps,b=p===void 0?I:p,l=Array.isArray(w)?w:[w];return l.map(function(T){var D=T.children,R=Object(be.a)(T,["children"]),d=te(D,U);return o.a.createElement(Y.a,Object.assign({},b(R)),d)})}function ne(w){if(!w)return null;var U;if(Array.isArray(w))U={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(N.a)(w)==="object")U={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function X(w,U){var W=new Set;function p(b){if(W.has(b))return;var l=U[b];if(!l)return;W.add(b);var T=l.parent,D=l.node;if(D.disabled)return;T&&p(T.key)}return(w||[]).forEach(function(b){p(b)}),Object(x.a)(W)}function fe(w){var U={};return Object.keys(w).forEach(function(W){(W.startsWith("data-")||W.startsWith("aria-"))&&(U[W]=w[W])}),U}},PFrg:function(ze,ie,n){ze.exports={flex_box_center:"flex_box_center___kgaCK",flex_space_between:"flex_space_between___3sF3C",flex_box_vertical_center:"flex_box_vertical_center___10QDn",flex_box_center_end:"flex_box_center_end___gcVqO",flex_box_column:"flex_box_column___Srpoj",normContainer:"normContainer___dbR2E",header:"header___2N06H",select:"select___ydDiG",button:"button___zsKXc",tips:"tips___Zdetc"}},PsNh:function(ze,ie,n){ze.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(ze,ie,n){var x=n("wTVA"),N=n("EbDI"),be=n("ZhPi"),S=n("wkBT");function o(m){return x(m)||N(m)||be(m)||S()}ze.exports=o,ze.exports.__esModule=!0,ze.exports.default=ze.exports},"T+NF":function(ze,ie,n){ze.exports={flex_box_center:"flex_box_center___39WN7",flex_space_between:"flex_space_between___2yRK3",flex_box_vertical_center:"flex_box_vertical_center___2AkF_",flex_box_center_end:"flex_box_center_end___2zSXf",flex_box_column:"flex_box_column___IoRAf",normCalcModalWrap:"normCalcModalWrap____M0Lj",tableCotainer:"tableCotainer___bUZ3e",name:"name___1KG_V",content:"content___2z28z",subtitle:"subtitle___WRgsq",tag:"tag___2327A"}},WaYH:function(ze,ie,n){"use strict";var x=n("rePB"),N=n("Ff2n"),be=n("VTBJ"),S=n("1OyB"),o=n("vuIU"),m=n("JX7q"),Y=n("Ji7U"),M=n("LK+K"),A=n("q1tI"),se=n("TSYQ"),L=n.n(se),V=n("sboe"),ee=n("OZM5"),B=function(U){var W=U.prefixCls,p=U.level,b=U.isStart,l=U.isEnd;if(!p)return null;for(var T="".concat(W,"-indent-unit"),D=[],R=0;R=0||R.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;b.setState({goInputText:""}),_(b.getValidValue())},b.go=function(R){var d=b.state.goInputText;if(d==="")return;(R.keyCode===B.ENTER||R.type==="click")&&(b.setState({goInputText:""}),b.props.quickGo(b.getValidValue()))},b}return Object(o.a)(p,[{key:"getValidValue",value:function(){var l=this.state,N=l.goInputText,D=l.current;return!N||isNaN(N)?D:Number(N)}},{key:"getPageSizeOptions",value:function(){var l=this.props,N=l.pageSize,D=l.pageSizeOptions;return D.some(function(R){return R.toString()===N.toString()})?D:D.concat([N.toString()]).sort(function(R,d){var g=isNaN(Number(R))?0:Number(R),_=isNaN(Number(d))?0:Number(d);return g-_})}},{key:"render",value:function(){var l=this,N=this.props,D=N.pageSize,R=N.locale,d=N.rootPrefixCls,g=N.changeSize,_=N.quickGo,y=N.goButton,$=N.selectComponentClass,le=N.buildOptionText,ae=N.selectPrefixCls,k=N.disabled,ye=this.state.goInputText,Te="".concat(d,"-options"),Se=$,we=null,ue=null,ce=null;if(!g&&!_)return null;var Me=this.getPageSizeOptions();if(g&&Se){var ve=Me.map(function(z,H){return A.a.createElement(Se.Option,{key:H,value:z.toString()},(le||l.buildOptionText)(z))});we=A.a.createElement(Se,{disabled:k,prefixCls:ae,showSearch:!1,className:"".concat(Te,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||Me[0]).toString(),onChange:this.changeSize,getPopupContainer:function(H){return H.parentNode}},ve)}return _&&(y&&(ce=typeof y=="boolean"?A.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:k,className:"".concat(Te,"-quick-jumper-button")},R.jump_to_confirm):A.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),ue=A.a.createElement("div",{className:"".concat(Te,"-quick-jumper")},R.jump_to,A.a.createElement("input",{disabled:k,type:"text",value:ye,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),R.page,ce)),A.a.createElement("li",{className:"".concat(Te)},we,ue)}}]),p}(A.a.Component);j.defaultProps={pageSizeOptions:["10","20","50","100"]};var E=j,F=n("N2Kk");function I(){}function te(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function ne(U,W,p){return p}function X(U,W,p){var b=typeof U=="undefined"?W.pageSize:U;return Math.floor((p.total-1)/b)+1}var fe=function(U){Object(m.a)(p,U);var W=Object(Y.a)(p);function p(b){var l;Object(S.a)(this,p),l=W.call(this,b),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(X(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(g,_){var y=l.props.prefixCls,$=g||A.a.createElement("button",{type:"button","aria-label":_,className:"".concat(y,"-item-link")});return typeof g=="function"&&($=A.a.createElement(g,Object(be.a)({},l.props))),$},l.savePaginationNode=function(g){l.paginationNode=g},l.isValid=function(g){return te(g)&&g!==l.state.current},l.shouldDisplayQuickJumper=function(){var g=l.props,_=g.showQuickJumper,y=g.pageSize,$=g.total;return $<=y?!1:_},l.handleKeyDown=function(g){(g.keyCode===B.ARROW_UP||g.keyCode===B.ARROW_DOWN)&&g.preventDefault()},l.handleKeyUp=function(g){var _=l.getValidValue(g),y=l.state.currentInputValue;_!==y&&l.setState({currentInputValue:_}),g.keyCode===B.ENTER?l.handleChange(_):g.keyCode===B.ARROW_UP?l.handleChange(_-1):g.keyCode===B.ARROW_DOWN&&l.handleChange(_+1)},l.changePageSize=function(g){var _=l.state.current,y=X(g,l.state,l.props);_=_>y?y:_,y===0&&(_=l.state.current),typeof g=="number"&&("pageSize"in l.props||l.setState({pageSize:g}),"current"in l.props||l.setState({current:_,currentInputValue:_})),l.props.onShowSizeChange(_,g),"onChange"in l.props&&l.props.onChange&&l.props.onChange(_,g)},l.handleChange=function(g){var _=l.props.disabled,y=g;if(l.isValid(y)&&!_){var $=X(void 0,l.state,l.props);y>$?y=$:y<1&&(y=1),"current"in l.props||l.setState({current:y,currentInputValue:y});var le=l.state.pageSize;return l.props.onChange(y,le),y}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?y-2:0),le=2;le=D?d=D:d=Number(N),d}},{key:"getShowSizeChanger",value:function(){var l=this.props,N=l.showSizeChanger,D=l.total,R=l.totalBoundaryShowSizeChanger;return typeof N!="undefined"?N:D>R}},{key:"renderPrev",value:function(l){var N=this.props,D=N.prevIcon,R=N.itemRender,d=R(l,"prev",this.getItemIcon(D,"prev page")),g=!this.hasPrev();return Object(M.isValidElement)(d)?Object(M.cloneElement)(d,{disabled:g}):d}},{key:"renderNext",value:function(l){var N=this.props,D=N.nextIcon,R=N.itemRender,d=R(l,"next",this.getItemIcon(D,"next page")),g=!this.hasNext();return Object(M.isValidElement)(d)?Object(M.cloneElement)(d,{disabled:g}):d}},{key:"render",value:function(){var l=this,N=this.props,D=N.prefixCls,R=N.className,d=N.style,g=N.disabled,_=N.hideOnSinglePage,y=N.total,$=N.locale,le=N.showQuickJumper,ae=N.showLessItems,k=N.showTitle,ye=N.showTotal,Te=N.simple,Se=N.itemRender,we=N.showPrevNextJumpers,ue=N.jumpPrevIcon,ce=N.jumpNextIcon,Me=N.selectComponentClass,ve=N.selectPrefixCls,z=N.pageSizeOptions,H=this.state,Ee=H.current,Pe=H.pageSize,Ie=H.currentInputValue;if(_===!0&&y<=Pe)return null;var me=X(void 0,this.state,this.props),Ae=[],Ze=null,Be=null,dt=null,xt=null,ft=null,De=le&&le.goButton,Oe=ae?1:2,qe=Ee-1>0?Ee-1:0,st=Ee+1=Oe*2&&Ee!==1+2&&(Ae[0]=Object(M.cloneElement)(Ae[0],{className:"".concat(D,"-item-after-jump-prev")}),Ae.unshift(Ze)),me-Ee>=Oe*2&&Ee!==me-2&&(Ae[Ae.length-1]=Object(M.cloneElement)(Ae[Ae.length-1],{className:"".concat(D,"-item-before-jump-next")}),Ae.push(Be)),K!==1&&Ae.unshift(dt),pe!==me&&Ae.push(xt)}var q=null;ye&&(q=A.a.createElement("li",{className:"".concat(D,"-total-text")},ye(y,[y===0?0:(Ee-1)*Pe+1,Ee*Pe>y?y:Ee*Pe])));var Z=!this.hasPrev()||!me,oe=!this.hasNext()||!me;return A.a.createElement("ul",Object(x.a)({className:L()(D,R,Object(T.a)({},"".concat(D,"-disabled"),g)),style:d,unselectable:"unselectable",ref:this.savePaginationNode},lt),q,A.a.createElement("li",{title:k?$.prev_page:null,onClick:this.prev,tabIndex:Z?null:0,onKeyPress:this.runIfEnterPrev,className:L()("".concat(D,"-prev"),Object(T.a)({},"".concat(D,"-disabled"),Z)),"aria-disabled":Z},this.renderPrev(qe)),Ae,A.a.createElement("li",{title:k?$.next_page:null,onClick:this.next,tabIndex:oe?null:0,onKeyPress:this.runIfEnterNext,className:L()("".concat(D,"-next"),Object(T.a)({},"".concat(D,"-disabled"),oe)),"aria-disabled":oe},this.renderNext(st)),A.a.createElement(E,{disabled:g,locale:$,rootPrefixCls:D,selectComponentClass:Me,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ee,pageSize:Pe,pageSizeOptions:z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:De}))}}],[{key:"getDerivedStateFromProps",value:function(l,N){var D={};if("current"in l&&(D.current=l.current,l.current!==N.current&&(D.currentInputValue=D.current)),"pageSize"in l&&l.pageSize!==N.pageSize){var R=N.current,d=X(l.pageSize,N,l);R=R>d?d:R,"current"in l||(D.current=R,D.currentInputValue=R),D.pageSize=l.pageSize}return D}}]),p}(A.a.Component);fe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:I,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:I,locale:F.a,style:{},itemRender:ne,totalBoundaryShowSizeChanger:50};var w=fe},"6RRn":function(ze,ie,n){"use strict";var x=n("wCXF"),T=n("n6Qo");n.d(ie,"b",function(){return T.a});var be=n("IBYe"),S=n("6eGT"),o=n("hW8S");n.d(ie,"a",function(){return o.a}),ie.c=x.b},"6eGT":function(ze,ie,n){"use strict";function x(T){return null}ie.a=x},"7bZU":function(ze,ie,n){ze.exports={normTablistContainer:"normTablistContainer___3XGh5",red:"red___LIReu",green:"green___2IVmA"}},"815F":function(ze,ie,n){"use strict";n.d(ie,"e",function(){return Y}),n.d(ie,"c",function(){return A}),n.d(ie,"d",function(){return se}),n.d(ie,"a",function(){return V}),n.d(ie,"f",function(){return ee}),n.d(ie,"b",function(){return B});var x=n("KQm4"),T=n("VTBJ"),be=n("Ff2n"),S=n("Zm9Q"),o=n("Kwbf"),m=n("OZM5");function Y(j,E){return j!=null?j:E}function M(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=new Map;function F(I){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(I||[]).forEach(function(ne){var X=ne.key,fe=ne.children;Object(o.a)(X!=null,"Tree node must have a certain key: [".concat(te).concat(X,"]"));var w=String(X);Object(o.a)(!E.has(w)||X===null||X===void 0,"Same 'key' exist in the Tree: ".concat(w)),E.set(w,!0),F(fe,"".concat(te).concat(w," > "))})}F(j)}function A(j){function E(F){var I=Object(S.a)(F);return I.map(function(te){if(!Object(m.i)(te))return Object(o.a)(!te,"Tree/TreeNode can only accept TreeNode as children."),null;var ne=te.key,X=te.props,fe=X.children,w=Object(be.a)(X,["children"]),U=Object(T.a)({key:ne},w),W=E(fe);return W.length&&(U.children=W),U}).filter(function(te){return te})}return E(j)}function se(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],F=new Set(E===!0?[]:E),I=[];function te(ne){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ne.map(function(fe,w){var U=Object(m.h)(X?X.pos:"0",w),W=Y(fe.key,U),p=Object(T.a)(Object(T.a)({},fe),{},{parent:X,pos:U,children:null,data:fe,isStart:[].concat(Object(x.a)(X?X.isStart:[]),[w===0]),isEnd:[].concat(Object(x.a)(X?X.isEnd:[]),[w===ne.length-1])});return I.push(p),E===!0||F.has(W)?p.children=te(fe.children||[],p):p.children=[],p})}return te(j),I}function L(j,E,F){var I;F?typeof F=="string"?I=function(X){return X[F]}:typeof F=="function"&&(I=function(X){return F(X)}):I=function(X,fe){return Y(X.key,fe)};function te(ne,X,fe){var w=ne?ne.children:j,U=ne?Object(m.h)(fe.pos,X):"0";if(ne){var W=I(ne,U),p={node:ne,index:X,pos:U,key:W,parentPos:fe.node?fe.pos:null,level:fe.level+1};E(p)}w&&w.forEach(function(b,l){te(b,l,{node:ne,pos:U,level:fe?fe.level+1:-1})})}te(null)}function V(j){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=E.initWrapper,I=E.processEntity,te=E.onProcessFinished,ne=arguments.length>2?arguments[2]:void 0,X={},fe={},w={posEntities:X,keyEntities:fe};return F&&(w=F(w)||w),L(j,function(U){var W=U.node,p=U.index,b=U.pos,l=U.key,N=U.parentPos,D=U.level,R={node:W,index:p,key:l,pos:b,level:D},d=Y(l,b);X[b]=R,fe[d]=R,R.parent=X[N],R.parent&&(R.parent.children=R.parent.children||[],R.parent.children.push(R)),I&&I(R,w)},ne),te&&te(w),w}function ee(j,E){var F=E.expandedKeys,I=E.selectedKeys,te=E.loadedKeys,ne=E.loadingKeys,X=E.checkedKeys,fe=E.halfCheckedKeys,w=E.dragOverNodeKey,U=E.dropPosition,W=E.keyEntities,p=W[j],b={eventKey:j,expanded:F.indexOf(j)!==-1,selected:I.indexOf(j)!==-1,loaded:te.indexOf(j)!==-1,loading:ne.indexOf(j)!==-1,checked:X.indexOf(j)!==-1,halfChecked:fe.indexOf(j)!==-1,pos:String(p?p.pos:""),dragOver:w===j&&U===0,dragOverGapTop:w===j&&U===-1,dragOverGapBottom:w===j&&U===1};return b}function B(j){var E=j.data,F=j.expanded,I=j.selected,te=j.checked,ne=j.loaded,X=j.loading,fe=j.halfChecked,w=j.dragOver,U=j.dragOverGapTop,W=j.dragOverGapBottom,p=j.pos,b=j.active,l=Object(T.a)(Object(T.a)({},E),{},{expanded:F,selected:I,checked:te,loaded:ne,loading:X,halfChecked:fe,dragOver:w,dragOverGapTop:U,dragOverGapBottom:W,pos:p,active:b});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),j}}),l}},E9nw:function(ze,ie){ze.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var x=document.activeElement,T=[],be=0;be1&&arguments[1]!==void 0?arguments[1]:1,oe=Oe.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(ae).map(function(ye,Te){if(!o.isValidElement(ye)||!ye.type)return null;var Se=ye.type.isSelectOptGroup,we=ye.key,ue=ye.props,ce=ue.children,Me=Object(Y.a)(ue,["children"]);return k||!Se?W(ye):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(we===null?Te:we,"__"),label:we},Me),{},{options:p(ce)})}).filter(function(ye){return ye})}var b=n("2Qr1"),l=n("qNPg"),N=n("U8pU"),D=n("Kwbf"),R=n("WKfj");function d(ae){var k=ae.mode,ye=ae.options,Te=ae.children,Se=ae.backfill,we=ae.allowClear,ue=ae.placeholder,ce=ae.getInputElement,Me=ae.showSearch,ve=ae.onSearch,z=ae.defaultOpen,H=ae.autoFocus,Ee=ae.labelInValue,Pe=ae.value,Ie=ae.inputValue,me=ae.optionLabelProp,Ae=k==="multiple"||k==="tags",Ze=Me!==void 0?Me:Ae||k==="combobox",Be=ye||p(Te);if(Object(D.a)(k!=="tags"||Be.every(function(De){return!De.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),k==="tags"||k==="combobox"){var dt=Be.some(function(De){return De.options?De.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in De?De.value:De.key)=="number"});Object(D.a)(!dt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(k!=="combobox"||!me,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(k==="combobox"||!Se,"`backfill` only works with `combobox` mode."),Object(D.a)(k==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(D.b)(k!=="combobox"||!ce||!we||!ue,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Ze&&k!=="combobox"&&k!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!z||H,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pe!=null){var xt=Object(R.d)(Pe);Object(D.a)(!Ee||xt.every(function(De){return Object(N.a)(De)==="object"&&("key"in De||"value"in De)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!Ae||Array.isArray(Pe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Te){var ft=null;Object(U.a)(Te).some(function(De){if(!o.isValidElement(De)||!De.type)return!1;var Oe=De.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var qe=Object(U.a)(De.props.children).every(function(st){return!o.isValidElement(st)||!De.type||st.type.isSelectOption?!0:(ft=st.type,!1)});return!qe}return ft=Oe,!0}),ft&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ft.displayName||ft.name||ft,"`.")),Object(D.a)(Ie===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var g=d,_=Object(l.a)({prefixCls:"rc-select",components:{optionList:I},convertChildrenToData:p,flattenOptions:b.d,getLabeledValue:b.e,filterOptions:b.b,isValueDisabled:b.g,findValueOption:b.c,warningProps:g,fillOptionsWithMissingValue:b.a}),y=function(ae){Object(be.a)(ye,ae);var k=Object(S.a)(ye);function ye(){var Te;return Object(x.a)(this,ye),Te=k.apply(this,arguments),Te.selectRef=o.createRef(),Te.focus=function(){Te.selectRef.current.focus()},Te.blur=function(){Te.selectRef.current.blur()},Te}return Object(T.a)(ye,[{key:"render",value:function(){return o.createElement(_,Object.assign({ref:this.selectRef},this.props))}}]),ye}(o.Component);y.Option=ne,y.OptGroup=fe;var $=y,le=ie.c=$},M7eO:function(ze,ie,n){"use strict";n.r(ie);var x=n("k1fw"),T=n("+L6B"),be=n("2/Rp"),S=n("tJVT"),o=n("OaEy"),m=n("2fM7"),Y=n("q1tI"),M=n.n(Y),A=n("fj85"),se=n("9kvl"),L=n("PFrg"),V=n.n(L),ee=n("g9YV"),B=n("wCAj"),j=n("DYRE"),E=n("zeV3"),F=n("tU7J"),I=n("wFql"),te=n("5Dmo"),ne=n("3S7+"),X=n("7bZU"),fe=n.n(X),w=function(Oe){var qe=Oe.headerData,st=Oe.tabListData,lt=Oe.loading,Fe=Oe.expandedRowKeys,Xe=Oe.dispatch,Rt=[{title:"\u6BD5\u4E1A\u8981\u6C42\u53CA\u6307\u6807\u70B9",key:"content",ellipsis:{showTitle:!1},width:"50%",render:function(K){return M.a.createElement(ne.a,{placement:"topLeft",title:K.content},K.children?M.a.createElement("span",null,K.position,".",K.content):M.a.createElement("span",null,K.content))}},{title:"\u8FBE\u6210\u9608\u503C",dataIndex:"goal_value",align:"center"},{title:"\u8FBE\u6210\u5EA6\u5B9E\u9645\u503C",dataIndex:"actual_value",align:"center"},{title:"\u8BC4\u4EF7\u7ED3\u679C",dataIndex:"status",align:"center",render:function(K){return M.a.createElement("div",{className:K?fe.a.green:fe.a.red},K?"":"\u672A","\u8FBE\u6210")}},{title:"\u72B6\u6001",dataIndex:"compute_status",render:function(K){return M.a.createElement("div",null,K||"--")}},{title:"\u8BA1\u7B97\u65F6\u95F4",dataIndex:"compute_time",render:function(K){return M.a.createElement("div",null,K||"--")}},{title:"\u64CD\u4F5C",width:80,render:function(K){return K.children?M.a.createElement(E.a,null,M.a.createElement(I.a.Link,{onClick:function(){return O(K.id)}},M.a.createElement("i",{className:"iconfont icon-jisuan",style:{color:"#0152D9"}})),M.a.createElement(I.a.Link,{onClick:function(){return se.d.push("/engineering/evaluate/norm/".concat(qe.active[se.b[1]],"/").concat(K.id))}},M.a.createElement("i",{className:"iconfont icon-chakansvg",style:{color:"#0152D9"}}))):M.a.createElement(M.a.Fragment,null)}}],O=function(K){Xe({type:"engineeringNormList/compute",payload:{all:!1,ec_year_id:qe.active[se.b[1]],id:K}})};return M.a.createElement("div",{className:fe.a.normTablistContainer},M.a.createElement(B.a,{loading:lt.effects["engineeringNormList/getGraduationResults"]||lt.effects["engineeringNormList/compute"],rowKey:"id",columns:Rt,bordered:!1,dataSource:st,expandable:{expandedRowKeys:Fe,expandIcon:function(){return M.a.createElement(M.a.Fragment,null)}},pagination:!1}))},U=Object(se.a)(function(De){var Oe=De.engineeringNormList,qe=De.loading;return Object(x.a)({loading:qe},Oe)})(w),W=n("2qtc"),p=n("kLXV"),b=n("miYZ"),l=n("tsqr"),N=n("jrin"),D=n("7Kak"),R=n("9yH6"),d=n("Znn+"),g=n("ZTPi"),_=n("T+NF"),y=n.n(_),$=g.a.TabPane,le={formula_one:"\u6307\u6807\u70B9\u8FBE\u6210\u5B9E\u9645\u503C",formula_two:"\u6307\u6807\u70B9\u8BC4\u4EF7\u7ED3\u679C",formula_three:"\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u5B9E\u9645\u503C"},ae=function(Oe){var qe=Oe.actionTabs,st=Oe.loading,lt=Oe.dispatch,Fe=Object(Y.useState)({}),Xe=Object(S.a)(Fe,2),Rt=Xe[0],O=Xe[1],G=Object(Y.useState)({formula_one:[],formula_two:[],formula_three:[]}),K=Object(S.a)(G,2),pe=K[0],xe=K[1];Object(Y.useEffect)(function(){lt({type:"engineeringNormList/getFormulas",callback:function(re){if(re){xe(re);var ge={};for(var je in re){var Ne=re[je].find(function(Ue){return Ue.checked});ge[je]=Ne?Ne.id:void 0}O(ge)}}})},[]);var he=function(re){return[{title:"".concat(le[re],"\u8BA1\u7B97\u516C\u5F0F"),key:"content",render:function(je){return M.a.createElement("div",{className:y.a.name},M.a.createElement("div",null,je.checked&&M.a.createElement("span",{className:y.a.tag},"\u9ED8\u8BA4")),M.a.createElement("div",{className:y.a.content},M.a.createElement("div",null,je.content),je.explain&&M.a.createElement("div",{className:y.a.subtitle},"\u8BF4\u660E\uFF1A",je.explain)))}},{title:"\u64CD\u4F5C",width:120,render:function(je){return M.a.createElement("div",null,M.a.createElement(R.a,{checked:Rt[re]===je.id,onClick:function(){return q(re,je.id)}},"\u8BBE\u7F6E\u9ED8\u8BA4\u516C\u5F0F"))}}]},q=function(re,ge){var je=pe[re].map(function(Ne){return Object(x.a)(Object(x.a)({},Ne),{},{checked:ge===Ne.id})});O(Object(x.a)(Object(x.a)({},Rt),{},Object(N.a)({},re,ge))),xe(Object(x.a)(Object(x.a)({},pe),{},Object(N.a)({},re,je)))},Z=function(){lt({type:"engineeringNormList/save",payload:{actionTabs:{key:"",params:{}}}})},oe=function(){lt({type:"engineeringNormList/setFormulas",payload:Object(x.a)({ec_year_id:qe.params.id},Rt),callback:function(ge){ge&&ge.status===0?(l.b.success("\u66F4\u65B0\u6210\u529F"),lt({type:"engineeringNormList/getGraduationResults"}),Z()):l.b.error("\u66F4\u65B0\u5931\u8D25")}})};return M.a.createElement("div",{className:y.a.normCalcModalContainer},M.a.createElement(p.a,{title:"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F",visible:!0,width:918,wrapClassName:y.a.normCalcModalWrap,onCancel:Z,onOk:oe,confirmLoading:st.effects["engineeringNormList/getFormulas"]||st.effects["engineeringNormList/setFormulas"]||!1},M.a.createElement("div",{className:y.a.normCalcContent},M.a.createElement(g.a,{defaultActiveKey:"1"},Object.entries(le).map(function(Ce,re){var ge=Object(S.a)(Ce,2),je=ge[0],Ne=ge[1];return M.a.createElement($,{tab:Ne,key:(re+1).toString()},M.a.createElement("div",{className:y.a.tableCotainer},M.a.createElement(B.a,{rowKey:"id",columns:he(je),dataSource:pe[je],pagination:!1})))})))))},k=Object(se.a)(function(De){var Oe=De.loading,qe=De.engineeringNormList;return Object(x.a)({loading:Oe},qe)})(ae),ye=n("0Owb"),Te=n("14J3"),Se=n("BMrR"),we=n("jCWc"),ue=n("kPKH"),ce=n("9og8"),Me=n("giR+"),ve=n("fyUT"),z=n("y8nQ"),H=n("Vl3Y"),Ee=n("WmNS"),Pe=n.n(Ee),Ie=n("zMNv"),me=n.n(Ie),Ae={wrapperCol:{span:21}},Ze=function(Oe){var qe=Oe.actionTabs,st=Oe.tabListData,lt=Oe.expandedRowKeys,Fe=Oe.all_goal_value,Xe=Oe.loading,Rt=Oe.dispatch,O=H.a.useForm(),G=Object(S.a)(O,1),K=G[0],pe=Object(Y.useState)("all"),xe=Object(S.a)(pe,2),he=xe[0],q=xe[1],Z=Object(Y.useState)({}),oe=Object(S.a)(Z,2),Ce=oe[0],re=oe[1];Object(Y.useEffect)(function(){q("all");var Ue={};st.forEach(function(Ke){Ke.children&&Ke.children.length>0&&Ke.children.forEach(function(He){return Ue[He.id]=He.goal_value!==void 0?He.goal_value:""})}),re(Ue)},[]);var ge=[{title:"\u6BD5\u4E1A\u8981\u6C42\u53CA\u6307\u6807\u70B9",key:"content",render:function(Ke){return M.a.createElement(ne.a,{placement:"top",title:Ke.content},Ke.children?M.a.createElement("span",null,Ke.position,".",Ke.content):M.a.createElement("span",null,Ke.content))}},{title:"\u8FBE\u6210\u9608\u503C",key:"action",width:100,render:function(Ke){return M.a.createElement("div",null,Ke.children?"\u81EA\u52A8\u8BA1\u7B97":M.a.createElement(ve.a,{key:Ke.id,defaultValue:Ke.goal_value,onChange:function(tt){return re(Object(x.a)(Object(x.a)({},Ce),{},Object(N.a)({},Ke.id,tt)))},style:{width:64},min:0,max:1,step:.1,precision:3}))}}],je=function(){Rt({type:"engineeringNormList/save",payload:{actionTabs:{key:"",params:{}}}})},Ne=function(){var Ue=Object(ce.a)(Pe.a.mark(function Ke(){var He,tt,We,kt,gt,vt,jt;return Pe.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,K.validateFields();case 2:if(He=nt.sent,tt=He.configure,We=He.goal_value,kt=!1,gt={ec_year_id:qe.params.id,type:tt},tt==="all"&&(gt=Object(x.a)(Object(x.a)({},gt),{},{goal_value:We})),tt==="each"){vt=[];for(jt in Ce)Ce[jt]===""&&(kt=!0),vt.push({id:Number(jt),goal_value:Ce[jt]});gt=Object(x.a)(Object(x.a)({},gt),{},{subitems:vt})}kt&&l.b.info("\u8BF7\u586B\u5199\u5168\u90E8\u7684\u9608\u503C"),["each","all"].includes(tt)&&!kt&&Rt({type:"engineeringNormList/putGoalValue",payload:gt});case 11:case"end":return nt.stop()}},Ke)}));return function(){return Ue.apply(this,arguments)}}();return M.a.createElement("div",{className:me.a.normThresholdsModalModalContainer},M.a.createElement(p.a,{title:"\u914D\u7F6E\u8FBE\u6210\u9608\u503C",visible:!0,width:880,wrapClassName:me.a.normThresholdsModalWrap,onCancel:je,onOk:Ne,confirmLoading:Xe.effects["engineeringNormList/putGoalValue"]||!1},M.a.createElement("div",{className:me.a.normThresholdsContent},M.a.createElement("div",{className:me.a.tips},M.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),M.a.createElement("div",null,"1.\u6307\u6807\u70B9\u7684\u8FBE\u6210\u9608\u503C\u8BBE\u7F6E\u8303\u56F4\uFF080,1\uFF09\uFF0C\u4FDD\u7559\u5C0F\u6570\u70B9\u540E\u4E09\u4F4D\uFF1B"),M.a.createElement("div",null,"2.\u6BD5\u4E1A\u8981\u6C42\u7684\u8FBE\u6210\u9608\u503C\u6839\u636E\u8BBE\u7F6E\u7684\u8BA1\u7B97\u516C\u5F0F\u4E0E\u6307\u6807\u70B9\u9608\u503C\u81EA\u52A8\u8BA1\u7B97\u3002\u5982\uFF1A"),M.a.createElement("div",null,"\u8BBE\u7F6E\u7684\u6BD5\u4E1A\u8981\u6C42\u5F97\u5206\u8BA1\u7B97\u516C\u5F0F\u662F\u6309\u6307\u6807\u70B9\u5F97\u5206\u7684\u5E73\u5747\u5206\u8BA1\u7B97\uFF0C\u5219\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u9608\u503C=\u5F53\u524D\u6BD5\u4E1A\u8981\u6C42\u4E0B\u6240\u6709\u6307\u6807\u70B9\u8FBE\u6210\u9608\u503C\u7684\u5E73\u5747\u503C\uFF1B"),M.a.createElement("div",null,"\u8BBE\u7F6E\u7684\u6BD5\u4E1A\u8981\u6C42\u5F97\u5206\u8BA1\u7B97\u516C\u5F0F\u662F\u6309\u591A\u4E2A\u6307\u6807\u70B9\u5F97\u5206\u7684\u6700\u5C0F\u503C\u8BA1\u7B97\uFF0C\u5219\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u9608\u503C=\u5F53\u524D\u6BD5\u4E1A\u8981\u6C42\u4E0B\u6240\u6709\u6307\u6807\u70B9\u5F97\u5206\u7684\u6700\u5C0F\u503C\u3002")),M.a.createElement(H.a,Object(ye.a)({},Ae,{form:K,initialValues:{configure:"all",goal_value:Fe}}),M.a.createElement(H.a.Item,{label:"\u914D\u7F6E\u65B9\u5F0F",name:"configure"},M.a.createElement(R.a.Group,{onChange:function(Ke){q(Ke.target.value)}},M.a.createElement(R.a,{value:"all"},"\u7EDF\u4E00\u914D\u7F6E"),M.a.createElement(R.a,{value:"each"},"\u5355\u72EC\u914D\u7F6E"))),he==="all"&&M.a.createElement(Se.a,null,M.a.createElement(ue.a,{span:7},M.a.createElement(H.a.Item,{label:"\u8FBE\u6210\u9608\u503C",name:"goal_value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9608\u503C"}]},M.a.createElement(ve.a,{onChange:function(Ke){K.setFieldsValue({goal_value:Ke})},placeholder:"\u8BF7\u8F93\u5165\u9608\u503C",style:{width:132},min:0,max:1,step:.1,precision:3}))),M.a.createElement(ue.a,{span:12},M.a.createElement("span",{style:{fontSize:14,color:"#464f66"}},"\u4E3A\u6240\u6709\u6307\u6807\u70B9\u914D\u7F6E\u4E00\u6837\u7684\u8FBE\u6210\u9608\u503C"))),he==="each"&&M.a.createElement("div",null,M.a.createElement(B.a,{rowKey:"id",columns:ge,bordered:!1,dataSource:st,expandable:{expandedRowKeys:lt,expandIcon:function(){return M.a.createElement(M.a.Fragment,null)}},pagination:!1,scroll:{y:460}}))))))},Be=Object(se.a)(function(De){var Oe=De.loading,qe=De.engineeringNormList;return Object(x.a)({loading:Oe},qe)})(Ze),dt=m.a.Option,xt=function(Oe){var qe,st=Oe.user,lt=Oe.actionTabs,Fe=Oe.headerData,Xe=Oe.tabListData,Rt=Oe.loading,O=Oe.dispatch,G=Object(Y.useRef)(!0);Object(Y.useEffect)(function(){var q;return(q=st.userInfo)!==null&&q!==void 0&&q.login&&O({type:"engineeringNormList/getMajorList"}),function(){O({type:"engineeringNormList/save",payload:{actionTabs:{key:"",params:{}}}}),O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:se.b[0],value:""}}),O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:se.b[1],value:""}})}},[(qe=st.userInfo)===null||qe===void 0?void 0:qe.login]),Object(Y.useEffect)(function(){Fe.active[se.b[0]]&&(O({type:"engineeringNormList/getYearList",payload:{id:Fe.active[se.b[0]],firstEnter:G.current}}),G.current=!1,O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:se.b[1],value:""}}),O({type:"engineeringNormList/setMajorOrYearDataSource",payload:{key:se.b[1],value:[]}}))},[Fe.active[se.b[0]]]),Object(Y.useEffect)(function(){O({type:"engineeringNormList/getGraduationResults"})},[Fe.active[se.b[1]]]);var K=function(Z,oe){O({type:"engineeringNormList/setMajorOrYearActive",payload:{key:Z,value:oe}})},pe=function(){O({type:"engineeringNormList/exportGraduation"})},xe=function(){Xe.length&&Fe.active[se.b[1]]&&O({type:"engineeringNormList/compute",payload:{all:!0,ec_year_id:Fe.active[se.b[1]]}})},he=function(Z){O({type:"engineeringNormList/save",payload:{actionTabs:{key:Z,params:{id:Fe.active[se.b[1]]}}}})};return M.a.createElement("div",{className:V.a.normContainer},M.a.createElement(A.a,{title:"\u6307\u6807\u8BC4\u4EF7"}),M.a.createElement("div",{className:V.a.header},M.a.createElement("div",{className:V.a.select},Object.entries(Fe.dataSource).map(function(q){var Z=Object(S.a)(q,2),oe=Z[0],Ce=Z[1];return M.a.createElement(A.b,{title:oe,key:oe},M.a.createElement(m.a,{style:{width:Ce.width},value:Fe.active[oe]||void 0,bordered:!1,placeholder:Ce.placeholder,loading:Rt.effects[Ce.loading],onChange:function(ge){return K(oe,ge)}},Ce.dataList.map(function(re){return M.a.createElement(dt,{key:re.value,value:re.value},re.label)})))})),M.a.createElement("div",{className:V.a.button},M.a.createElement(be.a,{type:"default",icon:M.a.createElement("i",{className:"iconfont icon-yuzhi"}),disabled:!Fe.active[se.b[1]],onClick:function(){return he("\u914D\u7F6E\u8FBE\u6210\u9608\u503C")}},"\u914D\u7F6E\u8FBE\u6210\u9608\u503C"),M.a.createElement(be.a,{type:"default",icon:M.a.createElement("i",{className:"iconfont icon-jisuangongshi"}),disabled:!Fe.active[se.b[1]],onClick:function(){return he("\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F")}},"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"),M.a.createElement(be.a,{type:"primary",disabled:!Xe.length||!Fe.active[se.b[1]],icon:M.a.createElement("i",{className:"iconfont icon-jisuan"}),onClick:xe},"\u5168\u90E8\u8BA1\u7B97"),M.a.createElement(be.a,{disabled:!Xe.length||!Fe.active[se.b[1]],onClick:pe,type:"default",icon:M.a.createElement("i",{className:"iconfont icon-daochubeifen "})},"\u5BFC\u51FA"))),M.a.createElement("div",{className:V.a.tips},"\u8BF4\u660E\uFF1A\u6BD5\u4E1A\u8981\u6C42\u4E0B\u6240\u6709\u7684\u6307\u6807\u70B9\u90FD\u8FBE\u6210\u7684\u65F6\u5019\uFF0C\u6BD5\u4E1A\u8981\u6C42\u624D\u7B97\u8FBE\u6210\u3002"),M.a.createElement(U,null),lt.key==="\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"&&Fe.active[se.b[1]]&&M.a.createElement(k,null),lt.key==="\u914D\u7F6E\u8FBE\u6210\u9608\u503C"&&Fe.active[se.b[1]]&&M.a.createElement(Be,null))},ft=ie.default=Object(se.a)(function(De){var Oe=De.user,qe=De.loading,st=De.engineeringNormList;return Object(x.a)({user:Oe,loading:qe},st)})(xt)},NvD2:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return m});var x=n("Kwbf");function T(Y,M){var A=new Set;return Y.forEach(function(se){M.has(se)||A.add(se)}),A}function be(Y){var M=Y||{},A=M.disabled,se=M.disableCheckbox,L=M.checkable;return!!(A||se)||L===!1}function S(Y,M,A,se){for(var L=new Set(Y),V=new Set,ee=0;ee<=A;ee+=1){var B=M.get(ee)||new Set;B.forEach(function(I){var te=I.key,ne=I.node,X=I.children,fe=X===void 0?[]:X;L.has(te)&&!se(ne)&&fe.filter(function(w){return!se(w.node)}).forEach(function(w){L.add(w.key)})})}for(var j=new Set,E=A;E>=0;E-=1){var F=M.get(E)||new Set;F.forEach(function(I){var te=I.parent,ne=I.node;if(se(ne)||!I.parent||j.has(I.parent.key))return;if(se(I.parent.node)){j.add(te.key);return}var X=!0,fe=!1;(te.children||[]).filter(function(w){return!se(w.node)}).forEach(function(w){var U=w.key,W=L.has(U);X&&!W&&(X=!1),!fe&&(W||V.has(U))&&(fe=!0)}),X&&L.add(te.key),fe&&V.add(te.key),j.add(te.key)})}return{checkedKeys:Array.from(L),halfCheckedKeys:Array.from(T(V,L))}}function o(Y,M,A,se,L){for(var V=new Set(Y),ee=new Set(M),B=0;B<=se;B+=1){var j=A.get(B)||new Set;j.forEach(function(te){var ne=te.key,X=te.node,fe=te.children,w=fe===void 0?[]:fe;!V.has(ne)&&!ee.has(ne)&&!L(X)&&w.filter(function(U){return!L(U.node)}).forEach(function(U){V.delete(U.key)})})}ee=new Set;for(var E=new Set,F=se;F>=0;F-=1){var I=A.get(F)||new Set;I.forEach(function(te){var ne=te.parent,X=te.node;if(L(X)||!te.parent||E.has(te.parent.key))return;if(L(te.parent.node)){E.add(ne.key);return}var fe=!0,w=!1;(ne.children||[]).filter(function(U){return!L(U.node)}).forEach(function(U){var W=U.key,p=V.has(W);fe&&!p&&(fe=!1),!w&&(p||ee.has(W))&&(w=!0)}),fe||V.delete(ne.key),w&&ee.add(ne.key),E.add(ne.key)})}return{checkedKeys:Array.from(V),halfCheckedKeys:Array.from(T(ee,V))}}function m(Y,M,A,se){var L=[],V;se?V=se:V=be;var ee=new Set(Y.filter(function(F){var I=!!A[F];return I||L.push(F),I})),B=new Map,j=0;Object.keys(A).forEach(function(F){var I=A[F],te=I.level,ne=B.get(te);ne||(ne=new Set,B.set(te,ne)),ne.add(I),j=Math.max(j,te)}),Object(x.a)(!L.length,"Tree missing follow keys: ".concat(L.slice(0,100).map(function(F){return"'".concat(F,"'")}).join(", ")));var E;return M===!0?E=S(ee,B,j,V):E=o(ee,M.halfCheckedKeys,B,j,V),E}},OZM5:function(ze,ie,n){"use strict";n.d(ie,"b",function(){return se}),n.d(ie,"a",function(){return L}),n.d(ie,"k",function(){return V}),n.d(ie,"h",function(){return ee}),n.d(ie,"i",function(){return B}),n.d(ie,"g",function(){return j}),n.d(ie,"c",function(){return E}),n.d(ie,"d",function(){return F}),n.d(ie,"j",function(){return ne}),n.d(ie,"e",function(){return X}),n.d(ie,"f",function(){return fe});var x=n("KQm4"),T=n("U8pU"),be=n("Ff2n"),S=n("q1tI"),o=n.n(S),m=n("Kwbf"),Y=n("WaYH"),M=.25,A=2;function se(w,U){var W=w.slice(),p=W.indexOf(U);return p>=0&&W.splice(p,1),W}function L(w,U){var W=w.slice();return W.indexOf(U)===-1&&W.push(U),W}function V(w){return w.split("-")}function ee(w,U){return"".concat(w,"-").concat(U)}function B(w){return w&&w.type&&w.type.isTreeNode}function j(w,U){var W=[w],p=U[w];function b(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(N){var D=N.key,R=N.children;W.push(D),b(R)})}return b(p.children),W}function E(w,U){var W=w.clientY,p=U.selectHandle.getBoundingClientRect(),b=p.top,l=p.bottom,N=p.height,D=Math.max(N*M,A);return W<=b+D?-1:W>=l-D?1:0}function F(w,U){if(!w)return;var W=U.multiple;return W?w.slice():w.length?[w[0]]:w}var I=function(U){return U};function te(w,U){if(!w)return[];var W=U||{},p=W.processProps,b=p===void 0?I:p,l=Array.isArray(w)?w:[w];return l.map(function(N){var D=N.children,R=Object(be.a)(N,["children"]),d=te(D,U);return o.a.createElement(Y.a,Object.assign({},b(R)),d)})}function ne(w){if(!w)return null;var U;if(Array.isArray(w))U={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(T.a)(w)==="object")U={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function X(w,U){var W=new Set;function p(b){if(W.has(b))return;var l=U[b];if(!l)return;W.add(b);var N=l.parent,D=l.node;if(D.disabled)return;N&&p(N.key)}return(w||[]).forEach(function(b){p(b)}),Object(x.a)(W)}function fe(w){var U={};return Object.keys(w).forEach(function(W){(W.startsWith("data-")||W.startsWith("aria-"))&&(U[W]=w[W])}),U}},PFrg:function(ze,ie,n){ze.exports={flex_box_center:"flex_box_center___kgaCK",flex_space_between:"flex_space_between___3sF3C",flex_box_vertical_center:"flex_box_vertical_center___10QDn",flex_box_center_end:"flex_box_center_end___gcVqO",flex_box_column:"flex_box_column___Srpoj",normContainer:"normContainer___dbR2E",header:"header___2N06H",select:"select___ydDiG",button:"button___zsKXc",tips:"tips___Zdetc"}},PsNh:function(ze,ie,n){ze.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(ze,ie,n){var x=n("wTVA"),T=n("EbDI"),be=n("ZhPi"),S=n("wkBT");function o(m){return x(m)||T(m)||be(m)||S()}ze.exports=o,ze.exports.__esModule=!0,ze.exports.default=ze.exports},"T+NF":function(ze,ie,n){ze.exports={flex_box_center:"flex_box_center___39WN7",flex_space_between:"flex_space_between___2yRK3",flex_box_vertical_center:"flex_box_vertical_center___2AkF_",flex_box_center_end:"flex_box_center_end___2zSXf",flex_box_column:"flex_box_column___IoRAf",normCalcModalWrap:"normCalcModalWrap____M0Lj",tableCotainer:"tableCotainer___bUZ3e",name:"name___1KG_V",content:"content___2z28z",subtitle:"subtitle___WRgsq",tag:"tag___2327A"}},WaYH:function(ze,ie,n){"use strict";var x=n("rePB"),T=n("Ff2n"),be=n("VTBJ"),S=n("1OyB"),o=n("vuIU"),m=n("JX7q"),Y=n("Ji7U"),M=n("LK+K"),A=n("q1tI"),se=n("TSYQ"),L=n.n(se),V=n("sboe"),ee=n("OZM5"),B=function(U){var W=U.prefixCls,p=U.level,b=U.isStart,l=U.isEnd;if(!p)return null;for(var N="".concat(W,"-indent-unit"),D=[],R=0;R1&&arguments[1]!==void 0?arguments[1]:!1,Me=ue.getAttribute("id")||ue.getAttribute("data-reactid")||ue.getAttribute("name");if(ce&&g[Me])return g[Me];var ve=window.getComputedStyle(ue),z=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),H=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),Ee=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),Pe=d.map(function(me){return"".concat(me,":").concat(ve.getPropertyValue(me))}).join(";"),Ie={sizingStyle:Pe,paddingSize:H,borderSize:Ee,boxSizing:z};return ce&&Me&&(g[Me]=Ie),Ie}function $(ue){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),ue.getAttribute("wrap")?_.setAttribute("wrap",ue.getAttribute("wrap")):_.removeAttribute("wrap");var z=y(ue,ce),H=z.paddingSize,Ee=z.borderSize,Pe=z.boxSizing,Ie=z.sizingStyle;_.setAttribute("style","".concat(Ie,";").concat(R)),_.value=ue.value||ue.placeholder||"";var me=Number.MIN_SAFE_INTEGER,Ae=Number.MAX_SAFE_INTEGER,Ze=_.scrollHeight,Be;if(Pe==="border-box"?Ze+=Ee:Pe==="content-box"&&(Ze-=H),Me!==null||ve!==null){_.value=" ";var dt=_.scrollHeight-H;Me!==null&&(me=dt*Me,Pe==="border-box"&&(me=me+H+Ee),Ze=Math.max(me,Ze)),ve!==null&&(Ae=dt*ve,Pe==="border-box"&&(Ae=Ae+H+Ee),Be=Ze>Ae?"":"hidden",Ze=Math.min(Ae,Ze))}return{height:Ze,minHeight:me,maxHeight:Ae,overflowY:Be,resize:"none"}}var le=n("Gytx"),ae=n.n(le),k;(function(ue){ue[ue.NONE=0]="NONE",ue[ue.RESIZING=1]="RESIZING",ue[ue.RESIZED=2]="RESIZED"})(k||(k={}));var ye=function(ue){Object(S.a)(Me,ue);var ce=Object(o.a)(Me);function Me(ve){var z;return Object(N.a)(this,Me),z=ce.call(this,ve),z.nextFrameActionId=void 0,z.resizeFrameId=void 0,z.textArea=void 0,z.saveTextArea=function(H){z.textArea=H},z.handleResize=function(H){var Ee=z.state.resizeStatus,Pe=z.props,Ie=Pe.autoSize,me=Pe.onResize;if(Ee!==k.NONE)return;typeof me=="function"&&me(H),Ie&&z.resizeOnNextFrame()},z.resizeOnNextFrame=function(){cancelAnimationFrame(z.nextFrameActionId),z.nextFrameActionId=requestAnimationFrame(z.resizeTextarea)},z.resizeTextarea=function(){var H=z.props.autoSize;if(!H||!z.textArea)return;var Ee=H.minRows,Pe=H.maxRows,Ie=$(z.textArea,!1,Ee,Pe);z.setState({textareaStyles:Ie,resizeStatus:k.RESIZING},function(){cancelAnimationFrame(z.resizeFrameId),z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:k.RESIZED},function(){z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:k.NONE}),z.fixFirefoxAutoScroll()})})})})},z.renderTextArea=function(){var H=z.props,Ee=H.prefixCls,Pe=Ee===void 0?"rc-textarea":Ee,Ie=H.autoSize,me=H.onResize,Ae=H.className,Ze=H.disabled,Be=z.state,dt=Be.textareaStyles,xt=Be.resizeStatus,ft=Object(l.a)(z.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),De=D()(Pe,Ae,Object(M.a)({},"".concat(Pe,"-disabled"),Ze));"value"in ft&&(ft.value=ft.value||"");var Oe=Object(Y.a)(Object(Y.a)(Object(Y.a)({},z.props.style),dt),xt===k.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(b,{onResize:z.handleResize,disabled:!(Ie||me)},m.createElement("textarea",Object(x.a)({},ft,{className:De,style:Oe,ref:z.saveTextArea})))},z.state={textareaStyles:{},resizeStatus:k.NONE},z}return Object(be.a)(Me,[{key:"componentDidUpdate",value:function(z){(z.value!==this.props.value||!ae()(z.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var z=this.textArea.selectionStart,H=this.textArea.selectionEnd;this.textArea.setSelectionRange(z,H)}}catch(Ee){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Me}(m.Component),Ne=ye,Se=function(ue){Object(S.a)(Me,ue);var ce=Object(o.a)(Me);function Me(ve){var z;Object(N.a)(this,Me),z=ce.call(this,ve),z.resizableTextArea=void 0,z.focus=function(){z.resizableTextArea.textArea.focus()},z.saveTextArea=function(Ee){z.resizableTextArea=Ee},z.handleChange=function(Ee){var Pe=z.props.onChange;z.setValue(Ee.target.value,function(){z.resizableTextArea.resizeTextarea()}),Pe&&Pe(Ee)},z.handleKeyDown=function(Ee){var Pe=z.props,Ie=Pe.onPressEnter,me=Pe.onKeyDown;Ee.keyCode===13&&Ie&&Ie(Ee),me&&me(Ee)};var H=typeof ve.value=="undefined"||ve.value===null?ve.defaultValue:ve.value;return z.state={value:H},z}return Object(be.a)(Me,[{key:"setValue",value:function(z,H){"value"in this.props||this.setState({value:z},H)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(Ne,Object(x.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(z){return"value"in z?{value:z.value}:null}}]),Me}(m.Component),we=ie.default=Se},ZW5e:function(ze,ie,n){ze.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(ze,ie,n){"use strict";function x(L){return typeof L=="object"&&L!=null&&L.nodeType===1}function N(L,V){return(!V||L!=="hidden")&&L!=="visible"&&L!=="clip"}function be(L,V){if(L.clientHeightV||E>L&&F=V&&I>=ee?E-L-B:F>V&&Iee?F-V+j:0}var o=function(L,V){var ee=window,B=V.scrollMode,j=V.block,E=V.inline,F=V.boundary,I=V.skipOverflowHiddenElements,te=typeof F=="function"?F:function(dt){return dt!==F};if(!x(L))throw new TypeError("Invalid target");for(var ne=document.scrollingElement||document.documentElement,X=[],fe=L;x(fe)&&te(fe);){if((fe=fe.parentElement)===ne){X.push(fe);break}fe!=null&&fe===document.body&&be(fe)&&!be(document.documentElement)||fe!=null&&be(fe,I)&&X.push(fe)}for(var w=ee.visualViewport?ee.visualViewport.width:innerWidth,U=ee.visualViewport?ee.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,b=L.getBoundingClientRect(),l=b.height,T=b.width,D=b.top,R=b.right,d=b.bottom,g=b.left,_=j==="start"||j==="nearest"?D:j==="end"?d:D+l/2,y=E==="center"?g+T/2:E==="end"?R:g,$=[],le=0;le=0&&g>=0&&d<=U&&R<=w&&D>=Se&&d<=ue&&g>=ce&&R<=we)return $;var Me=getComputedStyle(ae),ve=parseInt(Me.borderLeftWidth,10),z=parseInt(Me.borderTopWidth,10),H=parseInt(Me.borderRightWidth,10),Ee=parseInt(Me.borderBottomWidth,10),Pe=0,Ie=0,me="offsetWidth"in ae?ae.offsetWidth-ae.clientWidth-ve-H:0,Ae="offsetHeight"in ae?ae.offsetHeight-ae.clientHeight-z-Ee:0;if(ne===ae)Pe=j==="start"?_:j==="end"?_-U:j==="nearest"?S(p,p+U,U,z,Ee,p+_,p+_+l,l):_-U/2,Ie=E==="start"?y:E==="center"?y-w/2:E==="end"?y-w:S(W,W+w,w,ve,H,W+y,W+y+T,T),Pe=Math.max(0,Pe+p),Ie=Math.max(0,Ie+W);else{Pe=j==="start"?_-Se-z:j==="end"?_-ue+Ee+Ae:j==="nearest"?S(Se,ue,ye,z,Ee+Ae,_,_+l,l):_-(Se+ye/2)+Ae/2,Ie=E==="start"?y-ce-ve:E==="center"?y-(ce+Ne/2)+me/2:E==="end"?y-we+H+me:S(ce,we,Ne,ve,H+me,y,y+T,T);var Ze=ae.scrollLeft,Be=ae.scrollTop;_+=Be-(Pe=Math.max(0,Math.min(Be+Pe,ae.scrollHeight-ye+Ae))),y+=Ze-(Ie=Math.max(0,Math.min(Ze+Ie,ae.scrollWidth-Ne+me)))}$.push({el:ae,top:Pe,left:Ie})}return $};function m(L){return L===Object(L)&&Object.keys(L).length!==0}function Y(L,V){V===void 0&&(V="auto");var ee="scrollBehavior"in document.body.style;L.forEach(function(B){var j=B.el,E=B.top,F=B.left;j.scroll&&ee?j.scroll({top:E,left:F,behavior:V}):(j.scrollTop=E,j.scrollLeft=F)})}function M(L){return L===!1?{block:"end",inline:"nearest"}:m(L)?L:{block:"start",inline:"nearest"}}function A(L,V){var ee=!L.ownerDocument.documentElement.contains(L);if(m(V)&&typeof V.behavior=="function")return V.behavior(ee?[]:o(L,V));if(ee)return;var B=M(V);return Y(o(L,B),B.behavior)}var se=ie.a=A},bT9E:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return N});var x=n("VTBJ");function N(be,S){var o=Object(x.a)({},be);return Array.isArray(S)&&S.forEach(function(m){delete o[m]}),o}},biw7:function(ze,ie,n){"use strict";var x=n("q1tI"),N=n.n(x),be=x.createContext(null);ie.a=be},dmUQ:function(ze,ie,n){"use strict";var x=n("Ff2n"),N=n("rePB"),be=n("1OyB"),S=n("vuIU"),o=n("Ji7U"),m=n("md7G"),Y=n("foSv"),M=n("q1tI"),A=n.n(M),se=n("TSYQ"),L=n.n(se),V=n("4IlW");function ee(l,T){var D=Object.keys(l);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(l);T&&(R=R.filter(function(d){return Object.getOwnPropertyDescriptor(l,d).enumerable})),D.push.apply(D,R)}return D}function B(l){for(var T=1;T1?Ne-1:0),we=1;we1?le-1:0),k=1;k=0)return parseInt($.slice($.indexOf("e-")+2),10);var le=0;return $.indexOf(".")>=0&&(le=$.length-$.indexOf(".")-1),le},d.getInputDisplayValue=function(y){var $=y||d.state,le=$.focused,ae=$.inputValue,k=$.value,ye;le?ye=ae:ye=d.toPrecisionAsStep(k),ye==null&&(ye="");var Ne=d.formatWrapper(ye);return w(d.props.decimalSeparator)&&(Ne=Ne.toString().replace(".",d.props.decimalSeparator)),Ne},d.recordCursorPosition=function(){try{d.cursorStart=d.input.selectionStart,d.cursorEnd=d.input.selectionEnd,d.currentValue=d.input.value,d.cursorBefore=d.input.value.substring(0,d.cursorStart),d.cursorAfter=d.input.value.substring(d.cursorEnd)}catch(y){}},d.restoreByAfter=function(y){if(y===void 0)return!1;var $=d.input.value,le=$.lastIndexOf(y);if(le===-1)return!1;var ae=d.cursorBefore.length;return d.lastKeyCode===V.a.DELETE&&d.cursorBefore.charAt(ae-1)===y[0]?(d.fixCaret(ae,ae),!0):le+y.length===$.length?(d.fixCaret(le,le),!0):!1},d.partRestoreByAfter=function(y){return y===void 0?!1:Array.prototype.some.call(y,function($,le){var ae=y.substring(le);return d.restoreByAfter(ae)})},d.isNotCompleteNumber=function(y){return isNaN(y)||y===""||y===null||y&&y.toString().indexOf(".")===y.toString().length-1},d.stop=function(){d.autoStepTimer&&clearTimeout(d.autoStepTimer)},d.down=function(y,$,le){d.pressingUpOrDown=!0,d.step("down",y,$,le)},d.up=function(y,$,le){d.pressingUpOrDown=!0,d.step("up",y,$,le)},d.saveInput=function(y){d.input=y};var g=R.value;g===void 0&&(g=R.defaultValue),d.state={focused:R.autoFocus};var _=d.getValidValue(d.toNumber(g));return d.state=B(B({},d.state),{},{inputValue:d.toPrecisionAsStep(_),value:_}),d}return Object(S.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(d){var g=this.props,_=g.value,y=g.onChange,$=g.max,le=g.min,ae=this.state.focused;if(d){if(!U(d.value,_)||!U(d.max,$)||!U(d.min,le)){var k=ae?_:this.getValidValue(_),ye;this.pressingUpOrDown?ye=k:this.inputting?ye=this.rawInput:ye=this.toPrecisionAsStep(k),this.setState({value:k,inputValue:ye})}var Ne="value"in this.props?_:this.state.value;"max"in this.props&&d.max!==$&&typeof Ne=="number"&&Ne>$&&y&&y($),"min"in this.props&&d.min!==le&&typeof Ne=="number"&&Ne1&&arguments[1]!==void 0?arguments[1]:this.props.min,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,y=parseFloat(d);return isNaN(y)?d:(y_&&(y=_),y)}},{key:"setValue",value:function(d,g){var _=this.props.precision,y=this.isNotCompleteNumber(parseFloat(d))?null:parseFloat(d),$=this.state.value,le=$===void 0?null:$,ae=this.state.inputValue,k=ae===void 0?null:ae,ye=typeof y=="number"?y.toFixed(_):"".concat(y),Ne=y!==le||ye!=="".concat(k);return"value"in this.props?(k=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:k},g)):this.setState({value:y,inputValue:this.toPrecisionAsStep(d)},g),Ne&&this.props.onChange(y),y}},{key:"getMaxPrecision",value:function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=this.props,y=_.precision,$=_.step;if(w(y))return y;var le=this.getPrecision(g),ae=this.getPrecision($),k=this.getPrecision(d);return d?Math.max(k,le+ae):le+ae}},{key:"getPrecisionFactor",value:function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=this.getMaxPrecision(d,g);return Math.pow(10,_)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(d){return this.props.formatter?this.props.formatter(d):d}},{key:"toPrecisionAsStep",value:function(d){if(this.isNotCompleteNumber(d)||d==="")return d;var g=Math.abs(this.getMaxPrecision(d));return isNaN(g)?d.toString():Number(d).toFixed(g)}},{key:"toNumber",value:function(d){var g=this.props.precision,_=this.state.focused,y=d&&d.length>16&&_;return this.isNotCompleteNumber(d)||y?d:w(g)?Math.round(d*Math.pow(10,g))/Math.pow(10,g):Number(d)}},{key:"upStep",value:function(d,g){var _=this.props.step,y=this.getPrecisionFactor(d,g),$=Math.abs(this.getMaxPrecision(d,g)),le=((y*d+y*_*g)/y).toFixed($);return this.toNumber(le)}},{key:"downStep",value:function(d,g){var _=this.props.step,y=this.getPrecisionFactor(d,g),$=Math.abs(this.getMaxPrecision(d,g)),le=((y*d-y*_*g)/y).toFixed($);return this.toNumber(le)}},{key:"step",value:function(d,g){var _=this,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$=arguments.length>3?arguments[3]:void 0;this.stop(),g&&(g.persist(),g.preventDefault());var le=this.props;if(le.disabled)return;var ae=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ae))return;var k=this["".concat(d,"Step")](ae,y),ye=k>le.max||kle.max?k=le.max:k=Se),he=(Xe||Xe===0)&&(isNaN(Xe)||Number(Xe)<=we),q=xe||y||$,Z=he||y||$,oe=L()("".concat(_,"-handler"),"".concat(_,"-handler-up"),Object(N.a)({},"".concat(_,"-handler-up-disabled"),q)),Ce=L()("".concat(_,"-handler"),"".concat(_,"-handler-down"),Object(N.a)({},"".concat(_,"-handler-down-disabled"),Z)),re=le?{onTouchStart:q?F:this.up,onTouchEnd:this.stop}:{onMouseDown:q?F:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ge=le?{onTouchStart:Z?F:this.down,onTouchEnd:this.stop}:{onMouseDown:Z?F:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return A.a.createElement("div",{className:O,style:ue,title:ce,onMouseEnter:Me,onMouseLeave:ve,onMouseOver:z,onMouseOut:H,onFocus:function(){return null},onBlur:function(){return null}},A.a.createElement("div",{className:"".concat(_,"-handler-wrap")},A.a.createElement("span",Object.assign({unselectable:"on"},re,{role:"button","aria-label":"Increase Value","aria-disabled":q,className:oe}),k||A.a.createElement("span",{unselectable:"on",className:"".concat(_,"-handler-up-inner"),onClick:I})),A.a.createElement("span",Object.assign({unselectable:"on"},ge,{role:"button","aria-label":"Decrease Value","aria-disabled":Z,className:Ce}),ye||A.a.createElement("span",{unselectable:"on",className:"".concat(_,"-handler-down-inner"),onClick:I}))),A.a.createElement("div",{className:"".concat(_,"-input-wrap")},A.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":we,"aria-valuemax":Se,"aria-valuenow":Xe,required:Ee,type:me,placeholder:Ae,onPaste:qe,onClick:Pe,onMouseUp:this.onMouseUp,className:"".concat(_,"-input"),tabIndex:Ie,autoComplete:ae,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:K?this.onKeyDown:F,onKeyUp:K?this.onKeyUp:F,autoFocus:De,maxLength:ft,readOnly:$,disabled:y,max:Se,min:we,step:xt,name:Oe,title:ce,id:Ze,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(pe),pattern:dt,inputMode:Be,onInput:st},G))))}}]),D}(A.a.Component);W.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:fe,min:-fe,step:1,style:{},onChange:F,onKeyDown:F,onPressEnter:F,onFocus:F,onBlur:F,parser:te,required:!1,autoComplete:"off"};var p=W,b=ie.a=p},fj85:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return m}),n.d(ie,"b",function(){return se});var x=n("q1tI"),N=n.n(x),be=n("ZW5e"),S=n.n(be),o=function(V){var ee=V.title,B=V.style,j=B===void 0?{}:B;return N.a.createElement("div",{className:S.a.panelTitleContainer,style:j},N.a.createElement("div",null,ee))},m=o,Y=n("PsNh"),M=n.n(Y),A=function(V){var ee=V.title,B=V.children;return N.a.createElement("div",{className:M.a.selectWrapContainer},N.a.createElement("span",null,ee),B)},se=A},fyJ8:function(ze,ie,n){"use strict";var x=n("rePB"),N=n("VTBJ"),be=n("Ff2n"),S=n("U8pU"),o=n("q1tI"),m=n.n(o),Y=n("TSYQ"),M=n.n(Y),A=n("c+Xe"),se=n("sR1s");function L(E){return E&&Object(S.a)(E)==="object"&&!Array.isArray(E)&&!o.isValidElement(E)}function V(E){return typeof E=="string"?!0:Object(A.c)(E)}function ee(E,F){var I,te=E.prefixCls,ne=E.className,X=E.record,fe=E.index,w=E.dataIndex,U=E.render,W=E.children,p=E.component,b=p===void 0?"td":p,l=E.colSpan,T=E.rowSpan,D=E.fixLeft,R=E.fixRight,d=E.firstFixLeft,g=E.lastFixLeft,_=E.firstFixRight,y=E.lastFixRight,$=E.appendNode,le=E.additionalProps,ae=le===void 0?{}:le,k=E.ellipsis,ye=E.align,Ne=E.rowType,Se=E.isSticky,we="".concat(te,"-cell"),ue,ce;if(W)ce=W;else{var Me=Object(se.b)(X,w);if(ce=Me,U){var ve=U(Me,X,fe);L(ve)?(ce=ve.children,ue=ve.props):ce=ve}}Object(S.a)(ce)==="object"&&!Array.isArray(ce)&&!o.isValidElement(ce)&&(ce=null),k&&(g||_)&&(ce=o.createElement("span",{className:"".concat(we,"-content")},ce));var z=ue||{},H=z.colSpan,Ee=z.rowSpan,Pe=z.style,Ie=z.className,me=Object(be.a)(z,["colSpan","rowSpan","style","className"]),Ae=H!==void 0?H:l,Ze=Ee!==void 0?Ee:T;if(Ae===0||Ze===0)return null;var Be={},dt=typeof D=="number",xt=typeof R=="number";dt&&(Be.position="sticky",Be.left=D),xt&&(Be.position="sticky",Be.right=R);var ft={};ye&&(ft.textAlign=ye);var De,Oe=k===!0?{showTitle:!0}:k;Oe&&(Oe.showTitle||Ne==="header")&&(typeof ce=="string"||typeof ce=="number"?De=ce.toString():o.isValidElement(ce)&&typeof ce.props.children=="string"&&(De=ce.props.children));var qe=Object(N.a)(Object(N.a)(Object(N.a)({title:De},me),ae),{},{colSpan:Ae&&Ae!==1?Ae:null,rowSpan:Ze&&Ze!==1?Ze:null,className:M()(we,ne,(I={},Object(x.a)(I,"".concat(we,"-fix-left"),dt),Object(x.a)(I,"".concat(we,"-fix-left-first"),d),Object(x.a)(I,"".concat(we,"-fix-left-last"),g),Object(x.a)(I,"".concat(we,"-fix-right"),xt),Object(x.a)(I,"".concat(we,"-fix-right-first"),_),Object(x.a)(I,"".concat(we,"-fix-right-last"),y),Object(x.a)(I,"".concat(we,"-ellipsis"),k),Object(x.a)(I,"".concat(we,"-with-append"),$),Object(x.a)(I,"".concat(we,"-fix-sticky"),(dt||xt)&&Se),I),ae.className,Ie),style:Object(N.a)(Object(N.a)(Object(N.a)(Object(N.a)({},ae.style),ft),Be),Pe),ref:V(b)?F:null});return o.createElement(b,Object.assign({},qe),$,ce)}var B=o.forwardRef(ee);B.displayName="Cell";var j=o.memo(B,function(E,F){return F.shouldCellUpdate?!F.shouldCellUpdate(F.record,E.record):!1});ie.a=j},hW8S:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return S}),n.d(ie,"c",function(){return o}),n.d(ie,"b",function(){return m});var x=n("VTBJ"),N=n("Ff2n"),be=n("Kwbf"),S="RC_TABLE_INTERNAL_COL_DEFINE";function o(Y){var M=Y.expandable,A=Object(N.a)(Y,["expandable"]);return"expandable"in Y?Object(x.a)(Object(x.a)({},A),M):A}function m(Y){return Object.keys(Y).reduce(function(M,A){return(A.substr(0,5)==="data-"||A.substr(0,5)==="aria-")&&(M[A]=Y[A]),M},{})}},k3GJ:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return po});var x=n("rePB"),N=n("ODXe"),be=n("Ff2n"),S=n("VTBJ"),o=n("q1tI"),m=n("TSYQ"),Y=n.n(m),M=n("Zm9Q"),A=n("6cGi"),se=n("KQm4"),L=n("xEkU"),V=n.n(L),ee=n("t23M");function B(r){var c=Object(o.useRef)(),h=Object(o.useRef)(!1);function s(){for(var e=arguments.length,a=new Array(e),t=0;tC&&(J=C-Q),Object(o.useMemo)(function(){if(!a.length)return[0,0];for(var de=a.length,ke=de,Je=0;Jef+J){ke=Je-1;break}}for(var et=0,Qe=de-1;Qe>=0;Qe-=1){var $e=r.get(a[Qe].key)||X;if($e[v]1&&arguments[1]!==void 0?arguments[1]:!1,s=c&&typeof c.getBoundingClientRect=="function"&&c.getBoundingClientRect().width;if(s){if(h){var e=getComputedStyle(c),a=e.marginLeft,t=e.marginRight;s+=+a.replace("px","")+ +t.replace("px","")}s=+s.toFixed(6)}return s||0},De=function(c,h,s){c&&Object(_.a)(c.style)==="object"&&(c.style[h]=s)},Oe=function(){return Ie.any},qe=n("bdgK"),st=n("i8i4"),lt=n.n(st),Fe=n("wgJM"),Xe=n("l4aY"),Rt=n("m+aA"),O=n("c+Xe"),G=n("zT1h"),K=n("QC+M");function pe(r,c,h){return h?r[0]===c[0]:r[0]===c[0]&&r[1]===c[1]}function xe(r,c,h){var s=r[c]||{};return Object(S.a)(Object(S.a)({},s),h)}function he(r,c,h,s){for(var e=h.points,a=Object.keys(r),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;c();var a=Object(Fe.a)(function(){e<=1?s({isCanceled:function(){return a!==r.current}}):h(s,e-1)});r.current=a}return o.useEffect(function(){return function(){c()}},[]),[h,c]},An=[Nt,Mt,bt,Ye],_n=!1,Bn=!0;function rn(r){return r===bt||r===Ye}var hn=function(r,c){var h=o.useState(Vt),s=Object(N.a)(h,2),e=s[0],a=s[1],t=St(),i=Object(N.a)(t,2),u=i[0],v=i[1];function f(){a(Nt)}return Xt(function(){if(e!==Vt&&e!==Ye){var C=An.indexOf(e),P=An[C+1],Q=c(e);Q===_n?a(P):u(function(J){function de(){if(J.isCanceled())return;a(P)}Q===!0?de():Promise.resolve(Q).then(de)})}},[r,e]),o.useEffect(function(){return function(){v()}},[]),[f,e]},On=function(r){var c=Object(o.useRef)(),h=Object(o.useRef)(r);h.current=r;var s=o.useCallback(function(t){h.current(t)},[]);function e(t){t&&(t.removeEventListener(kt,s),t.removeEventListener(We,s))}function a(t){c.current&&c.current!==t&&e(c.current),t&&t!==c.current&&(t.addEventListener(kt,s),t.addEventListener(We,s),c.current=t)}return o.useEffect(function(){return function(){e(c.current)}},[]),[a,e]};function xn(r,c,h,s){var e=s.motionEnter,a=e===void 0?!0:e,t=s.motionAppear,i=t===void 0?!0:t,u=s.motionLeave,v=u===void 0?!0:u,f=s.motionDeadline,C=s.motionLeaveImmediately,P=s.onAppearPrepare,Q=s.onEnterPrepare,J=s.onLeavePrepare,de=s.onAppearStart,ke=s.onEnterStart,Je=s.onLeaveStart,Ve=s.onAppearActive,et=s.onEnterActive,Qe=s.onLeaveActive,$e=s.onAppearEnd,Ge=s.onEnterEnd,mt=s.onLeaveEnd,at=s.onVisibleChanged,Ut=wt(),yt=Object(N.a)(Ut,2),Le=yt[0],_e=yt[1],ot=wt(vt),it=Object(N.a)(ot,2),Re=it[0],pt=it[1],Dt=wt(null),ht=Object(N.a)(Dt,2),Ot=ht[0],At=ht[1],$t=Object(o.useRef)(!1),an=Object(o.useRef)(null),It=Object(o.useRef)(!1),on=Object(o.useRef)(null);function gn(){var Pt=h();return Pt||on.current}var ln=Object(o.useRef)(!1);function un(Pt){var Et=gn();if(Pt&&!Pt.deadline&&Pt.target!==Et)return;var Yt;Re===jt&&ln.current?Yt=$e==null?void 0:$e(Et,Pt):Re===Ft&&ln.current?Yt=Ge==null?void 0:Ge(Et,Pt):Re===nt&&ln.current&&(Yt=mt==null?void 0:mt(Et,Pt)),Yt!==!1&&!It.current&&(pt(vt),At(null))}var Kt=On(un),qt=Object(N.a)(Kt,1),Gt=qt[0],Wt=o.useMemo(function(){var Pt,Et,Yt;switch(Re){case"appear":return Pt={},Object(x.a)(Pt,Nt,P),Object(x.a)(Pt,Mt,de),Object(x.a)(Pt,bt,Ve),Pt;case"enter":return Et={},Object(x.a)(Et,Nt,Q),Object(x.a)(Et,Mt,ke),Object(x.a)(Et,bt,et),Et;case"leave":return Yt={},Object(x.a)(Yt,Nt,J),Object(x.a)(Yt,Mt,Je),Object(x.a)(Yt,bt,Qe),Yt;default:return{}}},[Re]),Dn=hn(Re,function(Pt){if(Pt===Nt){var Et=Wt[Nt];return Et?Et(gn()):_n}if(Tt in Wt){var Yt;At(((Yt=Wt[Tt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Tt===bt&&(Gt(gn()),f>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},f))),Bn}),Pn=Object(N.a)(Dn,2),zn=Pn[0],Tt=Pn[1],Cn=rn(Tt);ln.current=Cn,Xt(function(){_e(c);var Pt=$t.current;if($t.current=!0,!r)return;var Et;!Pt&&c&&i&&(Et=jt),Pt&&c&&a&&(Et=Ft),(Pt&&!c&&v||!Pt&&C&&!c&&v)&&(Et=nt),Et&&(pt(Et),zn())},[c]),Object(o.useEffect)(function(){(Re===jt&&!i||Re===Ft&&!a||Re===nt&&!v)&&pt(vt)},[i,a,v]),Object(o.useEffect)(function(){return function(){clearTimeout(an.current),It.current=!0}},[]),Object(o.useEffect)(function(){Le!==void 0&&Re===vt&&(at==null||at(Le))},[Le,Re]);var Wn=Ot;return Wt[Nt]&&Tt===Mt&&(Wn=Object(S.a)({transition:"none"},Wn)),[Re,Tt,Wn,Le!=null?Le:c]}var Vn=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){return Object(U.a)(this,h),c.apply(this,arguments)}return Object(W.a)(h,[{key:"render",value:function(){return this.props.children}}]),h}(o.Component),en=Vn;function Ln(r){var c=r;Object(_.a)(r)==="object"&&(c=r.transitionSupport);function h(e){return!!(e.motionName&&c)}var s=o.forwardRef(function(e,a){var t=e.visible,i=t===void 0?!0:t,u=e.removeOnLeave,v=u===void 0?!0:u,f=e.forceRender,C=e.children,P=e.motionName,Q=e.leavedClassName,J=e.eventProps,de=h(e),ke=Object(o.useRef)(),Je=Object(o.useRef)();function Ve(){try{return Object(Rt.a)(ke.current||Je.current)}catch(pt){return null}}var et=xn(de,i,Ve,e),Qe=Object(N.a)(et,4),$e=Qe[0],Ge=Qe[1],mt=Qe[2],at=Qe[3],Ut=o.useRef(at);at&&(Ut.current=!0);var yt=Object(o.useRef)(a);yt.current=a;var Le=o.useCallback(function(pt){ke.current=pt,Object(O.b)(yt.current,pt)},[]),_e,ot=Object(S.a)(Object(S.a)({},J),{},{visible:i});if(!C)_e=null;else if($e===vt||!h(e))at?_e=C(Object(S.a)({},ot),Le):!v&&Ut.current?_e=C(Object(S.a)(Object(S.a)({},ot),{},{className:Q}),Le):f?_e=C(Object(S.a)(Object(S.a)({},ot),{},{style:{display:"none"}}),Le):_e=null;else{var it,Re;Ge===Nt?Re="prepare":rn(Ge)?Re="active":Ge===Mt&&(Re="start"),_e=C(Object(S.a)(Object(S.a)({},ot),{},{className:Y()(gt(P,$e),(it={},Object(x.a)(it,gt(P,"".concat($e,"-").concat(Re)),Re),Object(x.a)(it,P,typeof P=="string"),it)),style:mt}),Le)}return o.createElement(en,{ref:Je},_e)});return s.displayName="CSSMotion",s}var En=Ln(tt),Un="add",Mn="keep",vn="remove",jn="removed";function Hn(r){var c;return r&&Object(_.a)(r)==="object"&&"key"in r?c=r:c={key:r},Object(S.a)(Object(S.a)({},c),{},{key:String(c.key)})}function Nn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(Hn)}function zt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=[],s=0,e=c.length,a=Nn(r),t=Nn(c);a.forEach(function(v){for(var f=!1,C=s;C1});return u.forEach(function(v){h=h.filter(function(f){var C=f.key,P=f.status;return C!==v||P!==vn}),h.forEach(function(f){f.key===v&&(f.status=Mn)})}),h}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,h=function(s){Object(b.a)(a,s);var e=Object(l.a)(a);function a(){var t;return Object(U.a)(this,a),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(u){var v=u.keyEntities;return{keyEntities:v.map(function(f){return f.key!==i?f:Object(S.a)(Object(S.a)({},f),{},{status:jn})})}})},t}return Object(W.a)(a,[{key:"render",value:function(){var i=this,u=this.state.keyEntities,v=this.props,f=v.component,C=v.children,P=v.onVisibleChanged,Q=Object(be.a)(v,["component","children","onVisibleChanged"]),J=f||o.Fragment,de={};return Zt.forEach(function(ke){de[ke]=Q[ke],delete Q[ke]}),delete Q.keys,o.createElement(J,Q,u.map(function(ke){var Je=ke.status,Ve=Object(be.a)(ke,["status"]),et=Je===Un||Je===Mn;return o.createElement(c,Object(w.a)({},de,{key:Ve.key,visible:et,eventProps:Ve,onVisibleChanged:function($e){P==null||P($e,{key:Ve.key}),$e||i.removeKey(Ve.key)}}),C)}))}}],[{key:"getDerivedStateFromProps",value:function(i,u){var v=i.keys,f=u.keyEntities,C=Nn(v),P=zt(f,C);return{keyEntities:P.filter(function(Q){var J=f.find(function(de){var ke=de.key;return Q.key===ke});return!(J&&J.status===jn&&Q.status===vn)})}}}]),a}(o.Component);return h.defaultProps={component:"div"},h}var Jt=sn(tt),tn=En;function dn(r){var c=r.prefixCls,h=r.motion,s=r.animation,e=r.transitionName;return h||(s?{motionName:"".concat(c,"-").concat(s)}:e?{motionName:e}:null)}function Xn(r){var c=r.prefixCls,h=r.visible,s=r.zIndex,e=r.mask,a=r.maskMotion,t=r.maskAnimation,i=r.maskTransitionName;if(!e)return null;var u={};return(a||i||t)&&(u=Object(S.a)({motionAppear:!0},dn({motion:a,prefixCls:c,transitionName:i,animation:t}))),o.createElement(tn,Object(w.a)({},u,{visible:h,removeOnLeave:!0}),function(v){var f=v.className;return o.createElement("div",{style:{zIndex:s},className:Y()("".concat(c,"-mask"),f)})})}var kn=n("9mu1"),$n=n("o0o1"),Na=n.n($n),Ta=n("HaE+"),Gn=["measure","align",null,"motion"],_t=function(r,c){var h=Object(o.useState)(null),s=Object(N.a)(h,2),e=s[0],a=s[1],t=Object(o.useRef)(),i=Object(o.useRef)(!1);function u(C){i.current||a(C)}function v(){Fe.a.cancel(t.current)}function f(C){v(),t.current=Object(Fe.a)(function(){u(function(P){switch(e){case"align":return"motion";case"motion":return"stable";default:}return P}),C==null||C()})}return Object(o.useEffect)(function(){u("measure")},[r]),Object(o.useEffect)(function(){switch(e){case"measure":c();break;default:}e&&(t.current=Object(Fe.a)(Object(Ta.a)(Na.a.mark(function C(){var P,Q;return Na.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:P=Gn.indexOf(e),Q=Gn[P+1],Q&&P!==-1&&u(Q);case 3:case"end":return de.stop()}},C)}))))},[e]),Object(o.useEffect)(function(){return function(){i.current=!0,v()}},[]),[e,f]},Yn=function(r){var c=o.useState({width:0,height:0}),h=Object(N.a)(c,2),s=h[0],e=h[1];function a(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=o.useMemo(function(){var i={};if(r){var u=s.width,v=s.height;r.indexOf("height")!==-1&&v?i.height=v:r.indexOf("minHeight")!==-1&&v&&(i.minHeight=v),r.indexOf("width")!==-1&&u?i.width=u:r.indexOf("minWidth")!==-1&&u&&(i.minWidth=u)}return i},[r,s]);return[t,a]},Jn=o.forwardRef(function(r,c){var h=r.visible,s=r.prefixCls,e=r.className,a=r.style,t=r.children,i=r.zIndex,u=r.stretch,v=r.destroyPopupOnHide,f=r.forceRender,C=r.align,P=r.point,Q=r.getRootDomNode,J=r.getClassNameFromAlign,de=r.onAlign,ke=r.onMouseEnter,Je=r.onMouseLeave,Ve=r.onMouseDown,et=r.onTouchStart,Qe=Object(o.useRef)(),$e=Object(o.useRef)(),Ge=Object(o.useState)(),mt=Object(N.a)(Ge,2),at=mt[0],Ut=mt[1],yt=Yn(u),Le=Object(N.a)(yt,2),_e=Le[0],ot=Le[1];function it(){u&&ot(Q())}var Re=_t(h,it),pt=Object(N.a)(Re,2),Dt=pt[0],ht=pt[1],Ot=Object(o.useRef)();function At(){return P||Q}function $t(){var Kt;(Kt=Qe.current)===null||Kt===void 0||Kt.forceAlign()}function an(Kt,qt){var Gt=J(qt);at!==Gt&&Ut(Gt),Dt==="align"&&(at!==Gt?Promise.resolve().then(function(){$t()}):ht(function(){var Wt;(Wt=Ot.current)===null||Wt===void 0||Wt.call(Ot)}),de==null||de(Kt,qt))}var It=Object(S.a)({},dn(r));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Kt){var qt=It[Kt];It[Kt]=function(Gt,Wt){return ht(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(Kt){Ot.current=Kt})}o.useEffect(function(){!It.motionName&&Dt==="motion"&&ht()},[It.motionName,Dt]),o.useImperativeHandle(c,function(){return{forceAlign:$t,getElement:function(){return $e.current}}});var gn=Object(S.a)(Object(S.a)({},_e),{},{zIndex:i,opacity:Dt==="motion"||Dt==="stable"||!h?void 0:0,pointerEvents:Dt==="stable"?void 0:"none"},a),ln=!0;(C==null?void 0:C.points)&&(Dt==="align"||Dt==="stable")&&(ln=!1);var un=t;return o.Children.count(t)>1&&(un=o.createElement("div",{className:"".concat(s,"-content")},t)),o.createElement(tn,Object(w.a)({visible:h,ref:$e,leavedClassName:"".concat(s,"-hidden")},It,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:v,forceRender:f}),function(Kt,qt){var Gt=Kt.className,Wt=Kt.style,Dn=Y()(s,e,at,Gt);return o.createElement(kn.a,{target:At(),key:"popup",ref:Qe,monitorWindowResize:!0,disabled:ln,align:C,onAlign:an},o.createElement("div",{ref:qt,className:Dn,onMouseEnter:ke,onMouseLeave:Je,onMouseDownCapture:Ve,onTouchStartCapture:et,style:Object(S.a)(Object(S.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ra=Jn,fn=o.forwardRef(function(r,c){var h=r.prefixCls,s=r.visible,e=r.zIndex,a=r.children,t=r.mobile;t=t===void 0?{}:t;var i=t.popupClassName,u=t.popupStyle,v=t.popupMotion,f=v===void 0?{}:v,C=t.popupRender,P=o.useRef();o.useImperativeHandle(c,function(){return{forceAlign:function(){},getElement:function(){return P.current}}});var Q=Object(S.a)({zIndex:e},u),J=a;return o.Children.count(a)>1&&(J=o.createElement("div",{className:"".concat(h,"-content")},a)),C&&(J=C(J)),o.createElement(tn,Object(w.a)({visible:s,ref:P,removeOnLeave:!0},f),function(de,ke){var Je=de.className,Ve=de.style,et=Y()(h,i,Je);return o.createElement("div",{ref:ke,className:et,style:Object(S.a)(Object(S.a)({},Ve),Q)},J)})});fn.displayName="MobilePopupInner";var Va=fn,Sa=["visible","mobile"],oa=o.forwardRef(function(r,c){var h=r.visible,s=r.mobile,e=Object(be.a)(r,Sa),a=Object(o.useState)(h),t=Object(N.a)(a,2),i=t[0],u=t[1],v=Object(o.useState)(!1),f=Object(N.a)(v,2),C=f[0],P=f[1],Q=Object(S.a)(Object(S.a)({},e),{},{visible:i});Object(o.useEffect)(function(){u(h),h&&s&&P(q())},[h,s]);var J=C?o.createElement(Va,Object(w.a)({},Q,{mobile:s,ref:c})):o.createElement(Ra,Object(w.a)({},Q,{ref:c}));return o.createElement("div",null,o.createElement(Xn,Q),J)});oa.displayName="Popup";var Ha=oa,Xa=o.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(r){return r?r.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(r){var c=function(h){Object(b.a)(e,h);var s=Object(l.a)(e);function e(a){var t;Object(U.a)(this,e),t=s.call(this,a),t.popupRef=o.createRef(),t.triggerRef=o.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(u){var v=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",u),t.delaySetPopupVisible(!0,v,v?null:u)},t.onMouseMove=function(u){t.fireEvents("onMouseMove",u),t.setPoint(u)},t.onMouseLeave=function(u){t.fireEvents("onMouseLeave",u),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(u){var v;if(u.relatedTarget&&!u.relatedTarget.setTimeout&&Object(Xe.a)((v=t.popupRef.current)===null||v===void 0?void 0:v.getElement(),u.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(u){t.fireEvents("onFocus",u),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(u){t.fireEvents("onMouseDown",u),t.preClickTime=Date.now()},t.onTouchStart=function(u){t.fireEvents("onTouchStart",u),t.preTouchTime=Date.now()},t.onBlur=function(u){t.fireEvents("onBlur",u),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(u){u.preventDefault(),t.fireEvents("onContextMenu",u),t.setPopupVisible(!0,u)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(u){if(t.fireEvents("onClick",u),t.focusTime){var v;if(t.preClickTime&&t.preTouchTime?v=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?v=t.preClickTime:t.preTouchTime&&(v=t.preTouchTime),Math.abs(v-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var f=!t.state.popupVisible;(t.isClickToHide()&&!f||f&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,u)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var u;(u=t.context).onPopupMouseDown.apply(u,arguments)}},t.onDocumentClick=function(u){if(t.props.mask&&!t.props.maskClosable)return;var v=u.target,f=t.getRootDomNode(),C=t.getPopupDomNode();(!Object(Xe.a)(f,v)||t.isContextMenuOnly())&&!Object(Xe.a)(C,v)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var u=t.props.getTriggerDOMNode;if(u)return u(t.triggerRef.current);try{var v=Object(Rt.a)(t.triggerRef.current);if(v)return v}catch(f){}return lt.a.findDOMNode(Object(p.a)(t))},t.getPopupClassNameFromAlign=function(u){var v=[],f=t.props,C=f.popupPlacement,P=f.builtinPlacements,Q=f.prefixCls,J=f.alignPoint,de=f.getPopupClassNameFromAlign;return C&&P&&v.push(he(P,Q,u,J)),de&&v.push(de(u)),v.join(" ")},t.getComponent=function(){var u=t.props,v=u.prefixCls,f=u.destroyPopupOnHide,C=u.popupClassName,P=u.onPopupAlign,Q=u.popupMotion,J=u.popupAnimation,de=u.popupTransitionName,ke=u.popupStyle,Je=u.mask,Ve=u.maskAnimation,et=u.maskTransitionName,Qe=u.maskMotion,$e=u.zIndex,Ge=u.popup,mt=u.stretch,at=u.alignPoint,Ut=u.mobile,yt=u.forceRender,Le=t.state,_e=Le.popupVisible,ot=Le.point,it=t.getPopupAlign(),Re={};return t.isMouseEnterToShow()&&(Re.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Re.onMouseLeave=t.onPopupMouseLeave),Re.onMouseDown=t.onPopupMouseDown,Re.onTouchStart=t.onPopupMouseDown,o.createElement(Ha,Object(w.a)({prefixCls:v,destroyPopupOnHide:f,visible:_e,point:at&&ot,className:C,align:it,onAlign:P,animation:J,getClassNameFromAlign:t.getPopupClassNameFromAlign},Re,{stretch:mt,getRootDomNode:t.getRootDomNode,style:ke,mask:Je,zIndex:$e,transitionName:de,maskAnimation:Ve,maskTransitionName:et,maskMotion:Qe,ref:t.popupRef,motion:Q,mobile:Ut,forceRender:yt}),typeof Ge=="function"?Ge():Ge)},t.attachParent=function(u){Fe.a.cancel(t.attachId);var v=t.props,f=v.getPopupContainer,C=v.getDocument,P=t.getRootDomNode(),Q;f?(P||f.length===0)&&(Q=f(P)):Q=C(t.getRootDomNode()).body,Q?Q.appendChild(u):t.attachId=Object(Fe.a)(function(){t.attachParent(u)})},t.getContainer=function(){var u=t.props.getDocument,v=u(t.getRootDomNode()).createElement("div");return v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",t.attachParent(v),v},t.setPoint=function(u){var v=t.props.alignPoint;if(!v||!u)return;t.setState({point:{pageX:u.pageX,pageY:u.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in a?i=!!a.popupVisible:i=!!a.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Da.forEach(function(u){t["fire".concat(u)]=function(v){t.fireEvents(u,v)}}),t}return Object(W.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(G.a)(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(G.a)(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(G.a)(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(G.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Fe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,u=t.popupAlign,v=t.builtinPlacements;return i&&v?xe(v,i,u):u}},{key:"setPopupVisible",value:function(t,i){var u=this.props.alignPoint,v=this.state.popupVisible;this.clearDelayTimer(),v!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:v}),this.props.onPopupVisibleChange(t)),u&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,u){var v=this,f=i*1e3;if(this.clearDelayTimer(),f){var C=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){v.setPopupVisible(t,C),v.clearDelayTimer()},f)}else this.setPopupVisible(t,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var i=this.props.children.props,u=this.props;return i[t]&&u[t]?this["fire".concat(t)]:i[t]||u[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,u=t.hideAction;return i.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,u=t.hideAction;return i.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,u=t.hideAction;return i.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var u=this.props.children.props[t];u&&u(i);var v=this.props[t];v&&v(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,u=i.children,v=i.forceRender,f=i.alignPoint,C=i.className,P=i.autoDestroy,Q=o.Children.only(u),J={key:"trigger"};this.isContextMenuToShow()?J.onContextMenu=this.onContextMenu:J.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(J.onClick=this.onClick,J.onMouseDown=this.onMouseDown,J.onTouchStart=this.onTouchStart):(J.onClick=this.createTwoChains("onClick"),J.onMouseDown=this.createTwoChains("onMouseDown"),J.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(J.onMouseEnter=this.onMouseEnter,f&&(J.onMouseMove=this.onMouseMove)):J.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?J.onMouseLeave=this.onMouseLeave:J.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(J.onFocus=this.onFocus,J.onBlur=this.onBlur):(J.onFocus=this.createTwoChains("onFocus"),J.onBlur=this.createTwoChains("onBlur"));var de=Y()(Q&&Q.props&&Q.props.className,C);de&&(J.className=de);var ke=Object(S.a)({},J);Object(O.c)(Q)&&(ke.ref=Object(O.a)(this.triggerRef,Q.ref));var Je=o.cloneElement(Q,ke),Ve;return(t||this.popupRef.current||v)&&(Ve=o.createElement(r,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&P&&(Ve=null),o.createElement(ra.Provider,{value:this.triggerContextValue},Je,Ve)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var u=t.popupVisible,v={};return u!==void 0&&i.popupVisible!==u&&(v.popupVisible=u,v.prevPopupVisible=i.popupVisible),v}}]),e}(o.Component);return c.contextType=ra,c.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},c}var Ja=Ya(K.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(c,h,s){var e=Ze(h),a=c.getState();c.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},a.defaultActiveFirst),{},Object(x.a)({},e,s))})},la=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(s){var e;Object(U.a)(this,h),e=c.call(this,s),e.onDestroy=function(f){e.props.onDestroy(f)},e.onKeyDown=function(f){var C=f.keyCode,P=e.menuInstance,Q=e.props.store,J=e.getVisible();if(C===E.a.ENTER)return e.onTitleClick(f),pn(Q,e.props.eventKey,!0),!0;if(C===E.a.RIGHT)return J?P.onKeyDown(f):(e.triggerOpenChange(!0),pn(Q,e.props.eventKey,!0)),!0;if(C===E.a.LEFT){var de;if(J)de=P.onKeyDown(f);else return;return de||(e.triggerOpenChange(!1),de=!0),de}return J&&(C===E.a.UP||C===E.a.DOWN)?P.onKeyDown(f):void 0},e.onOpenChange=function(f){e.props.onOpenChange(f)},e.onPopupVisibleChange=function(f){e.triggerOpenChange(f,f?"mouseenter":"mouseleave")},e.onMouseEnter=function(f){var C=e.props,P=C.eventKey,Q=C.onMouseEnter,J=C.store;pn(J,e.props.eventKey,!1),Q({key:P,domEvent:f})},e.onMouseLeave=function(f){var C=e.props,P=C.parentMenu,Q=C.eventKey,J=C.onMouseLeave;P.subMenuInstance=Object(p.a)(e),J({key:Q,domEvent:f})},e.onTitleMouseEnter=function(f){var C=e.props,P=C.eventKey,Q=C.onItemHover,J=C.onTitleMouseEnter;Q({key:P,hover:!0}),J({key:P,domEvent:f})},e.onTitleMouseLeave=function(f){var C=e.props,P=C.parentMenu,Q=C.eventKey,J=C.onItemHover,de=C.onTitleMouseLeave;P.subMenuInstance=Object(p.a)(e),J({key:Q,hover:!1}),de({key:Q,domEvent:f})},e.onTitleClick=function(f){var C=Object(p.a)(e),P=C.props;if(P.onTitleClick({key:P.eventKey,domEvent:f}),P.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(P.store,e.props.eventKey,!1)},e.onSubMenuClick=function(f){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(f))},e.onSelect=function(f){e.props.onSelect(f)},e.onDeselect=function(f){e.props.onDeselect(f)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(f){e.menuInstance=f},e.addKeyPath=function(f){return Object(S.a)(Object(S.a)({},f),{},{keyPath:(f.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(f,C){var P=e.props.eventKey,Q=function(){e.onOpenChange({key:P,item:Object(p.a)(e),trigger:C,open:f})};C==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){Q()},0):Q()},e.isChildrenSelected=function(){var f={find:!1};return dt(e.props.children,e.props.selectedKeys,f),f.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var f=st.findDOMNode(e.menuInstance);if(f.offsetWidth>=e.subMenuTitle.offsetWidth)return;f.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(f){e.subMenuTitle=f},e.getBaseProps=function(){var f=Object(p.a)(e),C=f.props,P=e.getMode();return{mode:P==="horizontal"?"vertical":P,visible:e.getVisible(),level:C.level+1,inlineIndent:C.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:C.selectedKeys,eventKey:"".concat(C.eventKey,"-menu-"),openKeys:C.openKeys,motion:C.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:C.subMenuOpenDelay,parentMenu:Object(p.a)(e),subMenuCloseDelay:C.subMenuCloseDelay,forceSubMenuRender:C.forceSubMenuRender,triggerSubMenuAction:C.triggerSubMenuAction,builtinPlacements:C.builtinPlacements,defaultActiveFirst:C.store.getState().defaultActiveFirst[Ze(C.eventKey)],multiple:C.multiple,prefixCls:C.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:C.itemIcon,expandIcon:C.expandIcon,direction:C.direction}},e.getMotion=function(f,C){var P=Object(p.a)(e),Q=P.haveRendered,J=e.props,de=J.motion,ke=J.rootPrefixCls,Je=Object(S.a)(Object(S.a)({},de),{},{leavedClassName:"".concat(ke,"-hidden"),removeOnLeave:!1,motionAppear:Q||!C||f!=="inline"});return Je};var a=s.store,t=s.eventKey,i=a.getState(),u=i.defaultActiveFirst;e.isRootMenu=!1;var v=!1;return u&&(v=u[t]),pn(a,t,v),e.state={mode:s.mode,isOpen:s.isOpen},e}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,a=this.props,t=a.mode,i=a.parentMenu,u=a.manualRef,v=a.isOpen,f=function(){e.setState({mode:t,isOpen:v})},C=v!==this.state.isOpen,P=t!==this.state.mode;if((P||C)&&(Fe.a.cancel(this.updateStateRaf),P?this.updateStateRaf=Object(Fe.a)(f):f()),u&&u(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!v)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,a=e.onDestroy,t=e.eventKey;a&&a(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Fe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,a){var t=this.getBaseProps();return o.createElement(ea,Object(w.a)({},t,{id:this.internalMenuId,className:e,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,a=this.getBaseProps(),t=a.mode,i=a.visible,u=a.forceSubMenuRender,v=a.direction,f=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||u,!this.haveOpened)return o.createElement("div",null);var C=Y()("".concat(a.prefixCls,"-sub"),Object(x.a)({},"".concat(a.prefixCls,"-rtl"),v==="rtl"));return this.isInlineMode()?o.createElement(tn,Object(w.a)({visible:a.visible,forceRender:u},f),function(P){var Q=P.className,J=P.style,de=Y()(C,Q);return e.renderPopupMenu(de,J)}):this.renderPopupMenu(C)}},{key:"render",value:function(){var e,a,t,i=Object(S.a)({},this.props),u=this.getVisible(),v=this.getPrefixCls(),f=this.isInlineMode(),C=this.getMode(),P=Y()(v,"".concat(v,"-").concat(C),(e={},Object(x.a)(e,i.className,!!i.className),Object(x.a)(e,this.getOpenClassName(),u),Object(x.a)(e,this.getActiveClassName(),i.active||u&&!f),Object(x.a)(e,this.getDisabledClassName(),i.disabled),Object(x.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var Q={},J={},de={};i.disabled||(Q={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},J={onClick:this.onTitleClick},de={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ke={},Je=i.direction,Ve=Je==="rtl";f&&(Ve?ke.paddingRight=i.inlineIndent*i.level:ke.paddingLeft=i.inlineIndent*i.level);var et={};this.getVisible()&&(et={"aria-owns":this.internalMenuId});var Qe=null;C!=="horizontal"&&(Qe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Qe=o.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var $e=o.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:ke,className:"".concat(v,"-title"),role:"button"},de,J,{"aria-expanded":u},et,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,Qe||o.createElement("i",{className:"".concat(v,"-arrow")})),Ge=this.renderChildren(),mt=((a=i.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?i.parentMenu.props.getPopupContainer:function(At){return At.parentNode},at=mn[C],Ut=i.popupOffset?{offset:i.popupOffset}:{},yt=Y()((t={},Object(x.a)(t,i.popupClassName,i.popupClassName&&!f),Object(x.a)(t,"".concat(v,"-rtl"),Ve),t)),Le=i.disabled,_e=i.triggerSubMenuAction,ot=i.subMenuOpenDelay,it=i.forceSubMenuRender,Re=i.subMenuCloseDelay,pt=i.builtinPlacements;xt.forEach(function(At){return delete i[At]}),delete i.onClick;var Dt=Ve?Object(S.a)(Object(S.a)({},Pa),pt):Object(S.a)(Object(S.a)({},ia),pt);delete i.direction;var ht=this.getBaseProps(),Ot=f?null:this.getMotion(ht.mode,ht.visible);return o.createElement("li",Object(w.a)({},i,Q,{className:P,role:"menuitem"}),o.createElement(Ja,{prefixCls:v,popupClassName:Y()("".concat(v,"-popup"),yt),getPopupContainer:mt,builtinPlacements:Dt,popupPlacement:at,popupVisible:f?!1:u,popupAlign:Ut,popup:f?null:Ge,action:Le||f?[]:[_e],mouseEnterDelay:ot,mouseLeaveDelay:Re,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:it,popupMotion:Ot},$e),f?Ge:null)}}]),h}(o.Component);la.defaultProps={onMouseEnter:me,onMouseLeave:me,onTitleMouseEnter:me,onTitleMouseLeave:me,onTitleClick:me,manualRef:me,mode:"vertical",title:""};var In=Object(T.b)(function(r,c){var h=r.openKeys,s=r.activeKey,e=r.selectedKeys,a=c.eventKey,t=c.subMenuKey;return{isOpen:h.indexOf(a)>-1,active:s[t]===a,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,wa="menuitem-overflowed",Qa=.5,Aa=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){var s;return Object(U.a)(this,h),s=c.apply(this,arguments),s.resizeObserver=null,s.mutationObserver=null,s.originalTotalWidth=0,s.overflowedItems=[],s.menuItemSizes=[],s.cancelFrameId=null,s.state={lastVisibleIndex:void 0},s.childRef=o.createRef(),s.getMenuItemNodes=function(){var e=s.props.prefixCls,a=s.childRef.current;return a?[].slice.call(a.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},s.getOverflowedSubMenuItem=function(e,a,t){var i=s.props,u=i.overflowedIndicator,v=i.level,f=i.mode,C=i.prefixCls,P=i.theme;if(v!==1||f!=="horizontal")return null;var Q=s.props.children[0],J=Q.props,de=J.children,ke=J.title,Je=J.style,Ve=Object(be.a)(J,["children","title","style"]),et=Object(S.a)({},Je),Qe="".concat(e,"-overflowed-indicator"),$e="".concat(e,"-overflowed-indicator");a.length===0&&t!==!0?et=Object(S.a)(Object(S.a)({},et),{},{display:"none"}):t&&(et=Object(S.a)(Object(S.a)({},et),{},{visibility:"hidden",position:"absolute"}),Qe="".concat(Qe,"-placeholder"),$e="".concat($e,"-placeholder"));var Ge=P?"".concat(C,"-").concat(P):"",mt={};return xt.forEach(function(at){Ve[at]!==void 0&&(mt[at]=Ve[at])}),o.createElement(Kn,Object(w.a)({title:u,className:"".concat(C,"-overflowed-submenu"),popupClassName:Ge},mt,{key:Qe,eventKey:$e,disabled:!1,style:et}),a)},s.setChildrenWidthAndResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var a=e.children;if(!a||a.length===0)return;var t=e.children[a.length-1];De(t,"display","inline-block");var i=s.getMenuItemNodes(),u=i.filter(function(v){return v.className.split(" ").indexOf(wa)>=0});u.forEach(function(v){De(v,"display","inline-block")}),s.menuItemSizes=i.map(function(v){return ft(v,!0)}),u.forEach(function(v){De(v,"display","none")}),s.overflowedIndicatorWidth=ft(e.children[e.children.length-1],!0),s.originalTotalWidth=s.menuItemSizes.reduce(function(v,f){return v+f},0),s.handleResize(),De(t,"display","none")},s.handleResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var a=ft(e);s.overflowedItems=[];var t=0,i;s.originalTotalWidth>a+Qa&&(i=-1,s.menuItemSizes.forEach(function(u){t+=u,t+s.overflowedIndicatorWidth<=a&&(i+=1)})),s.setState({lastVisibleIndex:i})},s}return Object(W.a)(h,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new qe.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var a=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,u,v){var f=u;if(a.props.mode==="horizontal"){var C=a.getOverflowedSubMenuItem(u.props.eventKey,[]);t!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(v>t&&(f=o.cloneElement(u,{style:{display:"none"},eventKey:"".concat(u.props.eventKey,"-hidden"),className:"".concat(wa)})),v===t+1&&(a.overflowedItems=e.slice(t+1).map(function(Q){return o.cloneElement(Q,{key:Q.props.eventKey,mode:"vertical-left"})}),C=a.getOverflowedSubMenuItem(u.props.eventKey,a.overflowedItems)));var P=[].concat(Object(se.a)(i),[C,f]);return v===e.length-1&&P.push(a.getOverflowedSubMenuItem(u.props.eventKey,[],!0)),P}return[].concat(Object(se.a)(i),[f])},[])}},{key:"render",value:function(){var e=this.props,a=e.visible,t=e.prefixCls,i=e.overflowedIndicator,u=e.mode,v=e.level,f=e.tag,C=e.children,P=e.theme,Q=Object(be.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),J=f;return o.createElement(J,Object(w.a)({ref:this.childRef},Q),this.renderChildren(C))}}]),h}(o.Component);Aa.defaultProps={tag:"div",className:""};var ua=Aa;function Zn(r){return r.length?r.every(function(c){return!!c.props.disabled}):!0}function Tn(r,c,h){var s=r.getState();r.setState({activeKey:Object(S.a)(Object(S.a)({},s.activeKey),{},Object(x.a)({},c,h))})}function yn(r){return r.eventKey||"0-menu-"}function qn(r,c){var h=c,s=r.children,e=r.eventKey;if(h){var a;if(Be(s,function(t,i){t&&t.props&&!t.props.disabled&&h===Ae(t,e,i)&&(a=!0)}),a)return h}return h=null,r.defaultActiveFirst&&Be(s,function(t,i){!h&&t&&!t.props.disabled&&(h=Ae(t,e,i))}),h}function _a(r){if(!r)return;var c=this.instanceArray.indexOf(r);c!==-1?this.instanceArray[c]=r:this.instanceArray.push(r)}var La=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(s){var e;return Object(U.a)(this,h),e=c.call(this,s),e.onKeyDown=function(a,t){var i=a.keyCode,u;if(e.getFlatInstanceArray().forEach(function(f){f&&f.props.active&&f.onKeyDown&&(u=f.onKeyDown(a))}),u)return 1;var v=null;return(i===E.a.UP||i===E.a.DOWN)&&(v=e.step(i===E.a.UP?-1:1)),v?(a.preventDefault(),Tn(e.props.store,yn(e.props),v.props.eventKey),typeof t=="function"&&t(v),1):void 0},e.onItemHover=function(a){var t=a.key,i=a.hover;Tn(e.props.store,yn(e.props),i?t:null)},e.onDeselect=function(a){e.props.onDeselect(a)},e.onSelect=function(a){e.props.onSelect(a)},e.onClick=function(a){e.props.onClick(a)},e.onOpenChange=function(a){e.props.onOpenChange(a)},e.onDestroy=function(a){e.props.onDestroy(a)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(a){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[yn(e.props)],u=t.length;if(!u)return null;a<0&&(t=t.concat().reverse());var v=-1;if(t.every(function(Q,J){return Q&&Q.props.eventKey===i?(v=J,!1):!0}),!e.props.defaultActiveFirst&&v!==-1&&Zn(t.slice(v,u-1)))return;var f=(v+1)%u,C=f;do{var P=t[C];if(!P||P.props.disabled)C=(C+1)%u;else return P}while(C!==f);return null},e.renderCommonMenuItem=function(a,t,i){var u=e.props.store.getState(),v=Object(p.a)(e),f=v.props,C=Ae(a,f.eventKey,t),P=a.props;if(!P||typeof a.type=="string")return a;var Q=C===u.activeKey,J=Object(S.a)(Object(S.a)({mode:P.mode||f.mode,level:f.level,inlineIndent:f.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:f.prefixCls,index:t,parentMenu:f.parentMenu,manualRef:P.disabled?void 0:Object(R.a)(a.ref,_a.bind(Object(p.a)(e))),eventKey:C,active:!P.disabled&&Q,multiple:f.multiple,onClick:function(ke){(P.onClick||me)(ke),e.onClick(ke)},onItemHover:e.onItemHover,motion:f.motion,subMenuOpenDelay:f.subMenuOpenDelay,subMenuCloseDelay:f.subMenuCloseDelay,forceSubMenuRender:f.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:f.builtinPlacements,itemIcon:P.itemIcon||e.props.itemIcon,expandIcon:P.expandIcon||e.props.expandIcon},i),{},{direction:f.direction});return(f.mode==="inline"||Oe())&&(J.triggerSubMenuAction="click"),o.cloneElement(a,Object(S.a)(Object(S.a)({},J),{},{key:C||t}))},e.renderMenuItem=function(a,t,i){if(!a)return null;var u=e.props.store.getState(),v={openKeys:u.openKeys,selectedKeys:u.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(a,t,v)},s.store.setState({activeKey:Object(S.a)(Object(S.a)({},s.store.getState().activeKey),{},Object(x.a)({},s.eventKey,qn(s,s.activeKey)))}),e.instanceArray=[],e}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!g()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var a=this.props,t="activeKey"in a?a.activeKey:a.store.getState().activeKey[yn(a)],i=qn(a,t);if(i!==t)Tn(a.store,yn(a),i);else if("activeKey"in e){var u=qn(e,e.activeKey);i!==u&&Tn(a.store,yn(a),i)}}},{key:"render",value:function(){var e=this,a=Object(w.a)({},this.props);this.instanceArray=[];var t=Y()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),i={className:t,role:a.role||"menu"};a.id&&(i.id=a.id),a.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var u=a.prefixCls,v=a.eventKey,f=a.visible,C=a.level,P=a.mode,Q=a.overflowedIndicator,J=a.theme;return xt.forEach(function(de){return delete a[de]}),delete a.onClick,o.createElement(ua,Object(w.a)({},a,{prefixCls:u,mode:P,tag:"ul",level:C,theme:J,visible:f,overflowedIndicator:Q},i),Object(M.a)(a.children).map(function(de,ke){return e.renderMenuItem(de,ke,v||"0-menu-")}))}}]),h}(o.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:me};var Ua=Object(T.b)()(La),ea=Ua,Rn=n("Kwbf");function ca(r,c,h){var s=r.prefixCls,e=r.motion,a=r.defaultMotions,t=a===void 0?{}:a,i=r.openAnimation,u=r.openTransitionName,v=c.switchingModeFromInline;if(e)return e;if(Object(_.a)(i)==="object"&&i)Object(Rn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(s,"-open-").concat(i)};if(u)return{motionName:u};var f=t[h];return f||(v?null:t.other)}var ka=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(s){var e;Object(U.a)(this,h),e=c.call(this,s),e.onSelect=function(i){var u=Object(p.a)(e),v=u.props;if(v.selectable){var f=e.store.getState(),C=f.selectedKeys,P=i.key;v.multiple?C=C.concat([P]):C=[P],"selectedKeys"in v||e.store.setState({selectedKeys:C}),v.onSelect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:C}))}},e.onClick=function(i){var u=e.getRealMenuMode(),v=Object(p.a)(e),f=v.store,C=v.props.onOpenChange;u!=="inline"&&!("openKeys"in e.props)&&(f.setState({openKeys:[]}),C([])),e.props.onClick(i)},e.onKeyDown=function(i,u){e.innerMenu.getWrappedInstance().onKeyDown(i,u)},e.onOpenChange=function(i){var u=Object(p.a)(e),v=u.props,f=e.store.getState().openKeys.concat(),C=!1,P=function(J){var de=!1;if(J.open)de=f.indexOf(J.key)===-1,de&&f.push(J.key);else{var ke=f.indexOf(J.key);de=ke!==-1,de&&f.splice(ke,1)}C=C||de};Array.isArray(i)?i.forEach(P):P(i),C&&("openKeys"in e.props||e.store.setState({openKeys:f}),v.onOpenChange(f))},e.onDeselect=function(i){var u=Object(p.a)(e),v=u.props;if(v.selectable){var f=e.store.getState().selectedKeys.concat(),C=i.key,P=f.indexOf(C);P!==-1&&f.splice(P,1),"selectedKeys"in v||e.store.setState({selectedKeys:f}),v.onDeselect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:f}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var u=e.props.onMouseEnter;u&&u(i)},e.onTransitionEnd=function(i){var u=i.propertyName==="width"&&i.target===i.currentTarget,v=i.target.className,f=Object.prototype.toString.call(v)==="[object SVGAnimatedString]"?v.animVal:v,C=i.propertyName==="font-size"&&f.indexOf("anticon")>=0;(u||C)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var a=s.defaultSelectedKeys,t=s.defaultOpenKeys;return"selectedKeys"in s&&(a=s.selectedKeys||[]),"openKeys"in s&&(t=s.openKeys||[]),e.store=Object(T.c)({selectedKeys:a,openKeys:t,activeKey:{"0-menu-":qn(s,s.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:s,inlineOpenKeys:[],store:e.store},e}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var a=this.props,t=a.siderCollapsed,i=a.inlineCollapsed,u=a.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&u([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,a=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,a=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return a&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,a=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:a}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(S.a)({},Object(D.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(S.a)(Object(S.a)({},e),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,a)}),delete e.openAnimation,delete e.openTransitionName,o.createElement(T.a,{store:this.store},o.createElement(ea,Object(w.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var t=a.prevProps,i=a.store,u=i.getState(),v={},f={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(f.switchingModeFromInline=!0),"openKeys"in e?v.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(f.switchingModeFromInline=!0,f.inlineOpenKeys=u.openKeys,v.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(v.openKeys=a.inlineOpenKeys,f.inlineOpenKeys=[])),Object.keys(v).length&&i.setState(v),f}}]),h}(o.Component);ka.defaultProps={selectable:!0,onClick:me,onSelect:me,onOpenChange:me,onDeselect:me,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Sn=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){var s;return Object(U.a)(this,h),s=c.apply(this,arguments),s.onKeyDown=function(e){var a=e.keyCode;return a===E.a.ENTER?(s.onClick(e),!0):void 0},s.onMouseLeave=function(e){var a=s.props,t=a.eventKey,i=a.onItemHover,u=a.onMouseLeave;i({key:t,hover:!1}),u({key:t,domEvent:e})},s.onMouseEnter=function(e){var a=s.props,t=a.eventKey,i=a.onItemHover,u=a.onMouseEnter;i({key:t,hover:!0}),u({key:t,domEvent:e})},s.onClick=function(e){var a=s.props,t=a.eventKey,i=a.multiple,u=a.onClick,v=a.onSelect,f=a.onDeselect,C=a.isSelected,P={key:t,keyPath:[t],item:Object(p.a)(s),domEvent:e};u(P),i?C?f(P):v(P):C||v(P)},s.saveNode=function(e){s.node=e},s}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,a=Object(S.a)({},this.props),t=Y()(this.getPrefixCls(),a.className,(e={},Object(x.a)(e,this.getActiveClassName(),!a.disabled&&a.active),Object(x.a)(e,this.getSelectedClassName(),a.isSelected),Object(x.a)(e,this.getDisabledClassName(),a.disabled),e)),i=Object(S.a)(Object(S.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:t,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?i=Object(S.a)(Object(S.a)({},i),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(i.role="none");var u={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},v=Object(S.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?v.paddingRight=a.inlineIndent*a.level:v.paddingLeft=a.inlineIndent*a.level),xt.forEach(function(C){return delete a[C]}),delete a.direction;var f=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(f=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(w.a)({},Object(D.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,u,{style:v,ref:this.saveNode}),a.children,f)}}]),h}(o.Component);Sn.isMenuItem=!0,Sn.defaultProps={onSelect:me,onMouseEnter:me,onMouseLeave:me,manualRef:me};var da=Object(T.b)(function(r,c){var h=r.activeKey,s=r.selectedKeys,e=c.eventKey,a=c.subMenuKey;return{active:h[a]===e,isSelected:Array.isArray(s)?s.indexOf(e)!==-1:s===e}})(Sn),fa=da,ma=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){var s;return Object(U.a)(this,h),s=c.apply(this,arguments),s.renderInnerMenuItem=function(e){var a=s.props,t=a.renderMenuItem,i=a.index;return t(e,i,s.props.subMenuKey)},s}return Object(W.a)(h,[{key:"render",value:function(){var e=Object(w.a)({},this.props),a=e.className,t=a===void 0?"":a,i=e.rootPrefixCls,u="".concat(i,"-item-group-title"),v="".concat(i,"-item-group-list"),f=e.title,C=e.children;return xt.forEach(function(P){return delete e[P]}),delete e.direction,o.createElement("li",Object(w.a)({},e,{onClick:function(Q){return Q.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),o.createElement("div",{className:u,title:typeof f=="string"?f:void 0},f),o.createElement("ul",{className:v},o.Children.map(C,this.renderInnerMenuItem)))}}]),h}(o.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(c){var h=c.className,s=c.rootPrefixCls,e=c.style;return o.createElement("li",{className:"".concat(h," ").concat(s,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,ha=n("eDIo");function eo(r,c){var h=r.prefixCls,s=r.editable,e=r.locale,a=r.style;return!s||s.showAdd===!1?null:o.createElement("button",{ref:c,type:"button",className:"".concat(h,"-nav-add"),style:a,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){s.onEdit("add",{event:i})}},s.addIcon||"+")}var ta=o.forwardRef(eo);function to(r,c){var h=r.prefixCls,s=r.id,e=r.tabs,a=r.locale,t=r.mobile,i=r.moreIcon,u=i===void 0?"More":i,v=r.moreTransitionName,f=r.style,C=r.className,P=r.editable,Q=r.tabBarGutter,J=r.rtl,de=r.onTabClick,ke=Object(o.useState)(!1),Je=Object(N.a)(ke,2),Ve=Je[0],et=Je[1],Qe=Object(o.useState)(null),$e=Object(N.a)(Qe,2),Ge=$e[0],mt=$e[1],at="".concat(s,"-more-popup"),Ut="".concat(h,"-dropdown"),yt=Ge!==null?"".concat(at,"-").concat(Ge):null,Le=a==null?void 0:a.dropdownAriaLabel,_e=o.createElement(Ka,{onClick:function(Ot){var At=Ot.key,$t=Ot.domEvent;de(At,$t),et(!1)},id:at,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[Ge],"aria-label":Le!==void 0?Le:"expanded dropdown"},e.map(function(ht){return o.createElement(fa,{key:ht.key,id:"".concat(at,"-").concat(ht.key),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(ht.key),disabled:ht.disabled},ht.tab)}));function ot(ht){for(var Ot=e.filter(function(on){return!on.disabled}),At=Ot.findIndex(function(on){return on.key===Ge})||0,$t=Ot.length,an=0;an<$t;an+=1){At=(At+ht+$t)%$t;var It=Ot[At];if(!It.disabled){mt(It.key);return}}}function it(ht){var Ot=ht.which;if(!Ve){[E.a.DOWN,E.a.SPACE,E.a.ENTER].includes(Ot)&&(et(!0),ht.preventDefault());return}switch(Ot){case E.a.UP:ot(-1),ht.preventDefault();break;case E.a.DOWN:ot(1),ht.preventDefault();break;case E.a.ESC:et(!1);break;case E.a.SPACE:case E.a.ENTER:Ge!==null&&de(Ge,ht);break}}Object(o.useEffect)(function(){var ht=document.getElementById(yt);ht&&ht.scrollIntoView&&ht.scrollIntoView(!1)},[Ge]),Object(o.useEffect)(function(){Ve||mt(null)},[Ve]);var Re=Object(x.a)({},J?"marginLeft":"marginRight",Q);e.length||(Re.visibility="hidden",Re.order=1);var pt=Y()(Object(x.a)({},"".concat(Ut,"-rtl"),J)),Dt=t?null:o.createElement(ha.a,{prefixCls:Ut,overlay:_e,trigger:["hover"],visible:Ve,transitionName:v,onVisibleChange:et,overlayClassName:pt,mouseEnterDelay:.1,mouseLeaveDelay:.1},o.createElement("button",{type:"button",className:"".concat(h,"-nav-more"),style:Re,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":at,id:"".concat(s,"-more"),"aria-expanded":Ve,onKeyDown:it},u));return o.createElement("div",{className:Y()("".concat(h,"-nav-operations"),C),style:f,ref:c},Dt,o.createElement(ta,{prefixCls:h,locale:a,editable:P}))}var no=o.forwardRef(to),va=Object(o.createContext)(null),ut=.1,ct=.01,Lt=20,Qt=Math.pow(.995,Lt);function Fn(){var r=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(r.substr(0,4)))}function Fa(r,c){var h=Object(o.useState)(),s=Object(N.a)(h,2),e=s[0],a=s[1],t=Object(o.useState)(0),i=Object(N.a)(t,2),u=i[0],v=i[1],f=Object(o.useState)(0),C=Object(N.a)(f,2),P=C[0],Q=C[1],J=Object(o.useState)(),de=Object(N.a)(J,2),ke=de[0],Je=de[1],Ve=Object(o.useRef)();function et(Le){var _e=Le.touches[0],ot=_e.screenX,it=_e.screenY;a({x:ot,y:it}),window.clearInterval(Ve.current)}function Qe(Le){if(!e)return;Le.preventDefault();var _e=Le.touches[0],ot=_e.screenX,it=_e.screenY;a({x:ot,y:it});var Re=ot-e.x,pt=it-e.y;c(Re,pt);var Dt=Date.now();v(Dt),Q(Dt-u),Je({x:Re,y:pt})}function $e(){if(!e)return;if(a(null),Je(null),ke){var Le=ke.x/P,_e=ke.y/P,ot=Math.abs(Le),it=Math.abs(_e);if(Math.max(ot,it)pt?(it=_e,at.current="x"):(it=ot,at.current="y");var Dt=Date.now();Dt-Ge.current>100&&(mt.current=!1),(c(-it,-it)||mt.current)&&(Le.preventDefault(),mt.current=!0),Ge.current=Dt}var yt=Object(o.useRef)(null);yt.current={onTouchStart:et,onTouchMove:Qe,onTouchEnd:$e,onWheel:Ut},o.useEffect(function(){function Le(Re){yt.current.onTouchStart(Re)}function _e(Re){yt.current.onTouchMove(Re)}function ot(Re){yt.current.onTouchEnd(Re)}function it(Re){yt.current.onWheel(Re)}return document.addEventListener("touchmove",_e,{passive:!1}),document.addEventListener("touchend",ot,{passive:!1}),r.current.addEventListener("touchstart",Le,{passive:!1}),r.current.addEventListener("wheel",it),function(){document.removeEventListener("touchmove",_e),document.removeEventListener("touchend",ot)}},[])}function ba(){var r=Object(o.useRef)(new Map);function c(s){return r.current.has(s)||r.current.set(s,o.createRef()),r.current.get(s)}function h(s){r.current.delete(s)}return[c,h]}function za(r,c){var h=o.useRef(r),s=o.useState({}),e=Object(N.a)(s,2),a=e[1];function t(i){var u=typeof i=="function"?i(h.current):i;u!==h.current&&c(u,h.current),h.current=u,a({})}return[h.current,t]}var Wa=function(c){var h=c.position,s=c.prefixCls,e=c.extra;if(!e)return null;var a,t=e;return h==="right"&&(a=t.right||!t.left&&t||null),h==="left"&&(a=t.left||null),a?o.createElement("div",{className:"".concat(s,"-extra-content")},a):null};function zo(r,c){var h,s=o.useContext(va),e=s.prefixCls,a=s.tabs,t=r.className,i=r.style,u=r.id,v=r.animated,f=r.activeKey,C=r.rtl,P=r.extra,Q=r.editable,J=r.locale,de=r.tabPosition,ke=r.tabBarGutter,Je=r.children,Ve=r.onTabClick,et=r.onTabScroll,Qe=Object(o.useRef)(),$e=Object(o.useRef)(),Ge=Object(o.useRef)(),mt=Object(o.useRef)(),at=ba(),Ut=Object(N.a)(at,2),yt=Ut[0],Le=Ut[1],_e=de==="top"||de==="bottom",ot=za(0,function(Ct,rt){_e&&et&&et({direction:Ct>rt?"left":"right"})}),it=Object(N.a)(ot,2),Re=it[0],pt=it[1],Dt=za(0,function(Ct,rt){!_e&&et&&et({direction:Ct>rt?"top":"bottom"})}),ht=Object(N.a)(Dt,2),Ot=ht[0],At=ht[1],$t=Object(o.useState)(0),an=Object(N.a)($t,2),It=an[0],on=an[1],gn=Object(o.useState)(0),ln=Object(N.a)(gn,2),un=ln[0],Kt=ln[1],qt=Object(o.useState)(0),Gt=Object(N.a)(qt,2),Wt=Gt[0],Dn=Gt[1],Pn=Object(o.useState)(0),zn=Object(N.a)(Pn,2),Tt=zn[0],Cn=zn[1],Wn=Object(o.useState)(null),Pt=Object(N.a)(Wn,2),Et=Pt[0],Yt=Pt[1],Xo=Object(o.useState)(null),bo=Object(N.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(o.useState)(0),go=Object(N.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(o.useState)(0),Eo=Object(N.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=j(new Map),yo=Object(N.a)(er,2),tr=yo[0],nr=yo[1],Ba=ne(a,tr,It),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;_e?C?(ga=0,Ea=Math.max(0,It-Et)):(ga=Math.min(0,Et-It),Ea=0):(ga=Math.min(0,na-un),Ea=0);function ao(Ct){return CtEa?[Ea,!1]:[Ct,!0]}var Oo=Object(o.useRef)(),ar=Object(o.useState)(),xo=Object(N.a)(ar,2),oo=xo[0],Mo=xo[1];function ro(){Mo(Date.now())}function io(){window.clearTimeout(Oo.current)}Fa(Qe,function(Ct,rt){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var Ma=ao(xa+Oa),aa=Object(N.a)(Ma,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(_e){if(Et>=It)return Bt;cn(pt,Ct)}else{if(na>=un)return Bt;cn(At,rt)}return io(),ro(),Bt}),Object(o.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){Mo(0)},100)),io},[oo]);function jo(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,rt=Ba.get(Ct);if(!rt)return;if(_e){var Bt=Re;C?rt.rightRe+Et&&(Bt=rt.right+rt.width-Et):rt.left<-Re?Bt=-rt.left:rt.left+rt.width>-Re+Et&&(Bt=-(rt.left+rt.width-Et)),At(0),pt(ao(Bt)[0])}else{var cn=Ot;rt.top<-Ot?cn=-rt.top:rt.top+rt.height>-Ot+na&&(cn=-(rt.top+rt.height-na)),pt(0),At(ao(cn)[0])}}var or=fe(Ba,{width:Et,height:na,left:Re,top:Ot},{width:Wt,height:Tt},{width:Yo,height:Zo},Object(S.a)(Object(S.a)({},r),{},{tabs:a})),No=Object(N.a)(or,2),rr=No[0],ir=No[1],sr=a.map(function(Ct){var rt=Ct.key;return o.createElement(I,{id:u,prefixCls:e,key:rt,rtl:C,tab:Ct,closable:Ct.closable,editable:Q,active:rt===f,tabPosition:de,tabBarGutter:ke,renderWrapper:Je,removeAriaLabel:J==null?void 0:J.removeAriaLabel,ref:yt(rt),onClick:function(cn){Ve(rt,cn)},onRemove:function(){Le(rt)},onFocus:function(){jo(rt),ro(),C||(Qe.current.scrollLeft=0),Qe.current.scrollTop=0}})}),so=B(function(){var Ct,rt,Bt,cn,Ca,Oa,xa,Ma,aa,co=((Ct=Qe.current)===null||Ct===void 0?void 0:Ct.offsetWidth)||0,fo=((rt=Qe.current)===null||rt===void 0?void 0:rt.offsetHeight)||0,_o=((Bt=mt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=mt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,mr=((Ca=Ge.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=Ge.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(_o),qo(Lo);var Uo=(((xa=$e.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-_o,ko=(((Ma=$e.current)===null||Ma===void 0?void 0:Ma.offsetHeight)||0)-Lo;on(Uo),Kt(ko);var Io=(aa=Ge.current)===null||aa===void 0?void 0:aa.className.includes(Co);Dn(Uo-(Io?0:mr)),Cn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Fo=hr.key,ja=yt(Fo).current;ja&&Ko.set(Fo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),To=[].concat(Object(se.a)(lr),Object(se.a)(ur)),cr=Object(o.useState)(),Ro=Object(N.a)(cr,2),dr=Ro[0],fr=Ro[1],wn=Ba.get(f),So=Object(o.useRef)();function Do(){V.a.cancel(So.current)}Object(o.useEffect)(function(){var Ct={};return wn&&(_e?(C?Ct.right=wn.right:Ct.left=wn.left,Ct.width=wn.width):(Ct.top=wn.top,Ct.height=wn.height)),Do(),So.current=V()(function(){fr(Ct)}),Do},[wn,_e,C]),Object(o.useEffect)(function(){jo()},[f,wn,Ba,_e]),Object(o.useEffect)(function(){so()},[C,ke,f,a.map(function(Ct){return Ct.key}).join("_")]);var Po=!!To.length,ya="".concat(e,"-nav-wrap"),lo,uo,wo,Ao;return _e?C?(uo=Re>0,lo=Re+Et1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(ne.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var X=ne[0];if(m.isValidElement(X)&&Object(L.c)(X)){var fe=X.ref;ne[0]=m.cloneElement(X,{ref:Object(L.a)(fe,this.setChildNode)})}return ne.length===1?ne[0]:ne.map(function(w,U){return!m.isValidElement(w)||"key"in w&&w.key!==null?w:m.cloneElement(w,{key:"".concat(ee,"-").concat(U)})})}}]),F}(m.Component);B.displayName="ResizeObserver",ie.a=B},wCXF:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return lt});var x=n("rePB"),N=n("VTBJ"),be=n("KQm4"),S=n("U8pU"),o=n("ODXe"),m=n("q1tI"),Y=n("TSYQ"),M=n.n(Y),A=n("Gytx"),se=n.n(A),L=n("Kwbf"),V=n("t23M"),ee=n("qx4F"),B=n("6eGT"),j=n("IBYe"),E=n("Ff2n"),F=n("c+Xe"),I=n("fyJ8"),te=n("biw7");function ne(O,G,K,pe,xe){var he=K[O]||{},q=K[G]||{},Z,oe;he.fixed==="left"?Z=pe.left[O]:q.fixed==="right"&&(oe=pe.right[G]);var Ce=!1,re=!1,ge=!1,je=!1,Te=K[G+1],Ue=K[O-1];if(xe==="rtl"){if(Z!==void 0){var Ke=Ue&&Ue.fixed==="left";je=!Ke}else if(oe!==void 0){var He=Te&&Te.fixed==="right";ge=!He}}else if(Z!==void 0){var tt=Te&&Te.fixed==="left";Ce=!tt}else if(oe!==void 0){var We=Ue&&Ue.fixed==="right";re=!We}return{fixLeft:Z,fixRight:oe,lastFixLeft:Ce,firstFixRight:re,lastFixRight:ge,firstFixLeft:je,isSticky:pe.isSticky}}var X=n("sR1s");function fe(O){var G=O.cells,K=O.stickyOffsets,pe=O.flattenColumns,xe=O.rowComponent,he=O.cellComponent,q=O.onHeaderRow,Z=O.index,oe=m.useContext(te.a),Ce=oe.prefixCls,re=oe.direction,ge;q&&(ge=q(G.map(function(Te){return Te.column}),Z));var je=Object(X.a)(G.map(function(Te){return Te.column}));return m.createElement(xe,Object.assign({},ge),G.map(function(Te,Ue){var Ke=Te.column,He=ne(Te.colStart,Te.colEnd,pe,K,re),tt;return Ke&&Ke.onHeaderCell&&(tt=Te.column.onHeaderCell(Ke)),m.createElement(I.a,Object.assign({},Te,{ellipsis:Ke.ellipsis,align:Ke.align,component:he,prefixCls:Ce,key:je[Ue]},He,{additionalProps:tt,rowType:"header"}))}))}fe.displayName="HeaderRow";var w=fe;function U(O){var G=[];function K(q,Z){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;G[oe]=G[oe]||[];var Ce=Z,re=q.filter(Boolean).map(function(ge){var je={key:ge.key,className:ge.className||"",children:ge.title,column:ge,colStart:Ce},Te=1,Ue=ge.children;return Ue&&Ue.length>0&&(Te=K(Ue,Ce,oe+1).reduce(function(Ke,He){return Ke+He},0),je.hasSubColumns=!0),"colSpan"in ge&&(Te=ge.colSpan),"rowSpan"in ge&&(je.rowSpan=ge.rowSpan),je.colSpan=Te,je.colEnd=je.colStart+Te-1,G[oe].push(je),Ce+=Te,Te});return re}K(O,0);for(var pe=G.length,xe=function(Z){G[Z].forEach(function(oe){!("rowSpan"in oe)&&!oe.hasSubColumns&&(oe.rowSpan=pe-Z)})},he=0;he=0;Z-=1){var oe=G[Z],Ce=K&&K[Z],re=Ce&&Ce[b.a];(oe||re||q)&&(xe.unshift(m.createElement("col",Object.assign({key:Z,style:{width:oe,minWidth:oe}},re))),q=!0)}return m.createElement("colgroup",null,xe)}var T=l;function D(O,G){return Object(m.useMemo)(function(){for(var K=[],pe=0;pe1?Jt-1:0),dn=1;dn=ge&&(St=ge-je),q({scrollLeft:St/ge*(re+2)}),We.current.x=Ye.pageX},Nt=function(){var Ye=Object(xt.b)(he.current).top,wt=Ye+he.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;wt-Object(ee.a)()<=Ht||Ye>=Ht-Z?tt(function(Xt){return Object(N.a)(Object(N.a)({},Xt),{},{isHiddenScrollBar:!0})}):tt(function(Xt){return Object(N.a)(Object(N.a)({},Xt),{},{isHiddenScrollBar:!1})})},Mt=function(Ye){tt(function(wt){return Object(N.a)(Object(N.a)({},wt),{},{scrollLeft:Ye/re*ge||0})})};return m.useImperativeHandle(K,function(){return{setScrollLeft:Mt}}),m.useEffect(function(){var bt=Object(dt.a)(document.body,"mouseup",Ft,!1),Ye=Object(dt.a)(document.body,"mousemove",Vt,!1);return Nt(),function(){bt.remove(),Ye.remove()}},[je,vt]),m.useEffect(function(){var bt=Object(dt.a)(window,"scroll",Nt,!1),Ye=Object(dt.a)(window,"resize",Nt,!1);return function(){bt.remove(),Ye.remove()}},[]),m.useEffect(function(){He.isHiddenScrollBar||tt(function(bt){var Ye,wt;return Object(N.a)(Object(N.a)({},bt),{},{scrollLeft:he.current.scrollLeft/((Ye=he.current)===null||Ye===void 0?void 0:Ye.scrollWidth)*((wt=he.current)===null||wt===void 0?void 0:wt.clientWidth)})})},[He.isHiddenScrollBar]),re<=ge||!je||He.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(ee.a)(),width:ge,bottom:Z},className:"".concat(Ce,"-sticky-scroll")},m.createElement("div",{onMouseDown:nt,ref:Te,className:M()("".concat(Ce,"-sticky-scroll-bar"),Object(x.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(je,"px"),transform:"translate3d(".concat(He.scrollLeft,"px, 0, 0)")}}))},De=m.forwardRef(ft);function Oe(O,G){return m.useMemo(function(){var K=!!O;return{isSticky:K,stickyClassName:K?"".concat(G,"-sticky-header"):"",offsetHeader:Object(S.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(S.a)(O)==="object"&&O.offsetScroll||0}},[O,G])}var qe=[],st={},lt="rc-table-internal-hook",Fe=m.memo(function(O){var G=O.children;return G},function(O,G){return se()(O.props,G.props)?O.pingLeft!==G.pingLeft||O.pingRight!==G.pingRight:!1});function Xe(O){var G,K=O.prefixCls,pe=O.className,xe=O.rowClassName,he=O.style,q=O.data,Z=O.rowKey,oe=O.scroll,Ce=O.tableLayout,re=O.direction,ge=O.title,je=O.footer,Te=O.summary,Ue=O.id,Ke=O.showHeader,He=O.components,tt=O.emptyText,We=O.onRow,kt=O.onHeaderRow,gt=O.internalHooks,vt=O.transformColumns,jt=O.internalRefs,Ft=O.sticky,nt=q||qe,Vt=!!nt.length,Nt=m.useState(0),Mt=Object(o.a)(Nt,2),bt=Mt[0],Ye=Mt[1];m.useEffect(function(){Ye(Object(ee.a)())});var wt=m.useMemo(function(){return Object(X.c)(He,{})},[He]),Ht=m.useCallback(function(ut,ct){return Object(X.b)(wt,ut)||ct},[wt]),Xt=m.useMemo(function(){return typeof Z=="function"?Z:function(ut){var ct=ut&&ut[Z];return ct}},[Z]),St=Object(b.c)(O),An=St.expandIcon,_n=St.expandedRowKeys,Bn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Vn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,En=St.expandedRowClassName,Un=St.childrenColumnName,Mn=St.indentSize,vn=An||Ze,jn=Un||"children",Hn=m.useMemo(function(){return hn?"row":O.expandable&>===lt&&O.expandable.__PARENT_RENDER_ICON__||nt.some(function(ut){return ut&&Object(S.a)(ut)==="object"&&ut[jn]})?"nest":!1},[!!hn,nt]),Nn=m.useState(function(){return Bn||(rn?Be(nt,Xt,jn):[])}),zt=Object(o.a)(Nn,2),Zt=zt[0],sn=zt[1],Jt=m.useMemo(function(){return new Set(_n||Zt||[])},[_n,Zt]),tn=m.useCallback(function(ut){var ct=Xt(ut,nt.indexOf(ut)),Lt,Qt=Jt.has(ct);Qt?(Jt.delete(ct),Lt=Object(be.a)(Jt)):Lt=[].concat(Object(be.a)(Jt),[ct]),sn(Lt),On&&On(!Qt,ut),xn&&xn(Lt)},[Xt,Jt,nt,On,xn]),dn=m.useState(0),Xn=Object(o.a)(dn,2),kn=Xn[0],$n=Xn[1],Na=Object(ce.b)(Object(N.a)(Object(N.a)(Object(N.a)({},O),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:re}),gt===lt?vt:null),Ta=Object(o.a)(Na,2),Gn=Ta[0],_t=Ta[1],Yn=m.useMemo(function(){return{columns:Gn,flattenColumns:_t}},[Gn,_t]),Jn=m.useRef(),Ra=m.useRef(),fn=m.useRef(),Va=m.useState(!1),Sa=Object(o.a)(Va,2),oa=Sa[0],Ha=Sa[1],Xa=m.useState(!1),ra=Object(o.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=z(new Map),Da=Object(o.a)(Ga,2),Ya=Da[0],Ja=Da[1],bn=Object(X.a)(_t),ia=bn.map(function(ut){return Ya.get(ut)}),Pa=m.useMemo(function(){return ia},[ia.join("_")]),sa=Pe(Pa,_t.length,re),nn=oe&&Object(X.d)(oe.y),mn=oe&&Object(X.d)(oe.x),pn=mn&&_t.some(function(ut){var ct=ut.fixed;return ct}),la=m.useRef(),In=Oe(Ft,K),Kn=In.isSticky,wa=In.offsetHeader,Qa=In.offsetScroll,Aa=In.stickyClassName,ua,Zn,Tn;nn&&(Zn={overflowY:"scroll",maxHeight:oe.y}),mn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Tn={width:oe.x===!0?"auto":oe.x,minWidth:"100%"});var yn=m.useCallback(function(ut,ct){Ja(function(Lt){var Qt=new Map(Lt);return Qt.set(ut,ct),Qt})},[]),qn=H(null),_a=Object(o.a)(qn,2),La=_a[0],Ua=_a[1];function ea(ut,ct){if(!ct)return;typeof ct=="function"?ct(ut):ct.scrollLeft!==ut&&(ct.scrollLeft=ut)}var Rn=function(ct){var Lt=ct.currentTarget,Qt=ct.scrollLeft,Fn=typeof Qt=="number"?Qt:Lt.scrollLeft,Fa=Lt||st;if(!Ua()||Ua()===Fa){var ba;La(Fa),ea(Fn,Ra.current),ea(Fn,fn.current),ea(Fn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Lt){var za=Lt.scrollWidth,Wa=Lt.clientWidth;Ha(Fn>0),$a(Fn0?[].concat(Object(N.a)(E),Object(N.a)(L(ne).map(function(X){return Object(be.a)({fixed:te},X)}))):[].concat(Object(N.a)(E),[Object(be.a)(Object(be.a)({},F),{},{fixed:te})])},[])}function V(j){for(var E=!0,F=0;F=0;ne-=1){var X=j[ne];if(te&&X.fixed!=="right")te=!1;else if(!te&&X.fixed==="right"){Object(Y.a)(!1,"Index ".concat(ne+1," of `columns` missing `fixed='right'` prop."));break}}}function ee(j){return j.map(function(E){var F=E.fixed,I=Object(S.a)(E,["fixed"]),te=F;return F==="left"?te="right":F==="right"&&(te="left"),Object(be.a)({fixed:te},I)})}function B(j,E){var F=j.prefixCls,I=j.columns,te=j.children,ne=j.expandable,X=j.expandedKeys,fe=j.getRowKey,w=j.onTriggerExpand,U=j.expandIcon,W=j.rowExpandable,p=j.expandIconColumnIndex,b=j.direction,l=j.expandRowByClick,T=o.useMemo(function(){return I||se(te)},[I,te]),D=o.useMemo(function(){if(ne){var g,_=p||0,y=T[_],$=(g={},Object(x.a)(g,A.a,{className:"".concat(F,"-expand-icon-col")}),Object(x.a)(g,"title",""),Object(x.a)(g,"fixed",y?y.fixed:null),Object(x.a)(g,"className","".concat(F,"-row-expand-icon-cell")),Object(x.a)(g,"render",function(k,ye,Ne){var Se=fe(ye,Ne),we=X.has(Se),ue=W?W(ye):!0,ce=U({prefixCls:F,expanded:we,expandable:ue,record:ye,onExpand:w});return l?o.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},ce):ce}),g),le=T.slice();return _>=0&&le.splice(_,0,$),le}return T},[ne,T,fe,X,U,b]),R=o.useMemo(function(){var g=D;return E&&(g=E(g)),g.length||(g=[{render:function(){return null}}]),g},[E,D,b]),d=o.useMemo(function(){return b==="rtl"?ee(L(R)):L(R)},[R,b]);return[R,d]}ie.b=B},"y0+3":function(ze,ie,n){"use strict";n.d(ie,"a",function(){return L}),n.d(ie,"b",function(){return ee});var x=/margin|padding|width|height|max|min|offset/,N={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function S(B){return B.nodeType===1?B.ownerDocument.defaultView.getComputedStyle(B,null):{}}function o(B,j,E){if(j=j.toLowerCase(),E==="auto"){if(j==="height")return B.offsetHeight;if(j==="width")return B.offsetWidth}return j in N||(N[j]=x.test(j)),N[j]?parseFloat(E)||0:E}function m(B,j){var E=arguments.length,F=S(B);return j=be[j]?"cssFloat"in B.style?"cssFloat":"styleFloat":j,E===1?F:o(B,j,F[j]||B.style[j])}function Y(B,j,E){var F=arguments.length;if(j=be[j]?"cssFloat"in B.style?"cssFloat":"styleFloat":j,F===3)return typeof E=="number"&&x.test(j)&&(E="".concat(E,"px")),B.style[j]=E,E;for(var I in j)j.hasOwnProperty(I)&&Y(B,I,j[I]);return S(B)}function M(B){return B===document.body?document.documentElement.clientWidth:B.offsetWidth}function A(B){return B===document.body?window.innerHeight||document.documentElement.clientHeight:B.offsetHeight}function se(){var B=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),j=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:B,height:j}}function L(){var B=document.documentElement.clientWidth,j=window.innerHeight||document.documentElement.clientHeight;return{width:B,height:j}}function V(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ee(B){var j=B.getBoundingClientRect(),E=document.documentElement;return{left:j.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:j.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}},zMNv:function(ze,ie,n){ze.exports={normThresholdsModalWrap:"normThresholdsModalWrap___4A9MA",normThresholdsContent:"normThresholdsContent___2DEuv",tips:"tips___25ahZ",tableCotainer:"tableCotainer___3kZzb",name:"name___1J_5P",tag:"tag___st2kI"}}}]); +`,d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],g={},_;function y(ue){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=ue.getAttribute("id")||ue.getAttribute("data-reactid")||ue.getAttribute("name");if(ce&&g[Me])return g[Me];var ve=window.getComputedStyle(ue),z=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),H=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),Ee=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),Pe=d.map(function(me){return"".concat(me,":").concat(ve.getPropertyValue(me))}).join(";"),Ie={sizingStyle:Pe,paddingSize:H,borderSize:Ee,boxSizing:z};return ce&&Me&&(g[Me]=Ie),Ie}function $(ue){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),ue.getAttribute("wrap")?_.setAttribute("wrap",ue.getAttribute("wrap")):_.removeAttribute("wrap");var z=y(ue,ce),H=z.paddingSize,Ee=z.borderSize,Pe=z.boxSizing,Ie=z.sizingStyle;_.setAttribute("style","".concat(Ie,";").concat(R)),_.value=ue.value||ue.placeholder||"";var me=Number.MIN_SAFE_INTEGER,Ae=Number.MAX_SAFE_INTEGER,Ze=_.scrollHeight,Be;if(Pe==="border-box"?Ze+=Ee:Pe==="content-box"&&(Ze-=H),Me!==null||ve!==null){_.value=" ";var dt=_.scrollHeight-H;Me!==null&&(me=dt*Me,Pe==="border-box"&&(me=me+H+Ee),Ze=Math.max(me,Ze)),ve!==null&&(Ae=dt*ve,Pe==="border-box"&&(Ae=Ae+H+Ee),Be=Ze>Ae?"":"hidden",Ze=Math.min(Ae,Ze))}return{height:Ze,minHeight:me,maxHeight:Ae,overflowY:Be,resize:"none"}}var le=n("Gytx"),ae=n.n(le),k;(function(ue){ue[ue.NONE=0]="NONE",ue[ue.RESIZING=1]="RESIZING",ue[ue.RESIZED=2]="RESIZED"})(k||(k={}));var ye=function(ue){Object(S.a)(Me,ue);var ce=Object(o.a)(Me);function Me(ve){var z;return Object(T.a)(this,Me),z=ce.call(this,ve),z.nextFrameActionId=void 0,z.resizeFrameId=void 0,z.textArea=void 0,z.saveTextArea=function(H){z.textArea=H},z.handleResize=function(H){var Ee=z.state.resizeStatus,Pe=z.props,Ie=Pe.autoSize,me=Pe.onResize;if(Ee!==k.NONE)return;typeof me=="function"&&me(H),Ie&&z.resizeOnNextFrame()},z.resizeOnNextFrame=function(){cancelAnimationFrame(z.nextFrameActionId),z.nextFrameActionId=requestAnimationFrame(z.resizeTextarea)},z.resizeTextarea=function(){var H=z.props.autoSize;if(!H||!z.textArea)return;var Ee=H.minRows,Pe=H.maxRows,Ie=$(z.textArea,!1,Ee,Pe);z.setState({textareaStyles:Ie,resizeStatus:k.RESIZING},function(){cancelAnimationFrame(z.resizeFrameId),z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:k.RESIZED},function(){z.resizeFrameId=requestAnimationFrame(function(){z.setState({resizeStatus:k.NONE}),z.fixFirefoxAutoScroll()})})})})},z.renderTextArea=function(){var H=z.props,Ee=H.prefixCls,Pe=Ee===void 0?"rc-textarea":Ee,Ie=H.autoSize,me=H.onResize,Ae=H.className,Ze=H.disabled,Be=z.state,dt=Be.textareaStyles,xt=Be.resizeStatus,ft=Object(l.a)(z.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),De=D()(Pe,Ae,Object(M.a)({},"".concat(Pe,"-disabled"),Ze));"value"in ft&&(ft.value=ft.value||"");var Oe=Object(Y.a)(Object(Y.a)(Object(Y.a)({},z.props.style),dt),xt===k.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(b,{onResize:z.handleResize,disabled:!(Ie||me)},m.createElement("textarea",Object(x.a)({},ft,{className:De,style:Oe,ref:z.saveTextArea})))},z.state={textareaStyles:{},resizeStatus:k.NONE},z}return Object(be.a)(Me,[{key:"componentDidUpdate",value:function(z){(z.value!==this.props.value||!ae()(z.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var z=this.textArea.selectionStart,H=this.textArea.selectionEnd;this.textArea.setSelectionRange(z,H)}}catch(Ee){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Me}(m.Component),Te=ye,Se=function(ue){Object(S.a)(Me,ue);var ce=Object(o.a)(Me);function Me(ve){var z;Object(T.a)(this,Me),z=ce.call(this,ve),z.resizableTextArea=void 0,z.focus=function(){z.resizableTextArea.textArea.focus()},z.saveTextArea=function(Ee){z.resizableTextArea=Ee},z.handleChange=function(Ee){var Pe=z.props.onChange;z.setValue(Ee.target.value,function(){z.resizableTextArea.resizeTextarea()}),Pe&&Pe(Ee)},z.handleKeyDown=function(Ee){var Pe=z.props,Ie=Pe.onPressEnter,me=Pe.onKeyDown;Ee.keyCode===13&&Ie&&Ie(Ee),me&&me(Ee)};var H=typeof ve.value=="undefined"||ve.value===null?ve.defaultValue:ve.value;return z.state={value:H},z}return Object(be.a)(Me,[{key:"setValue",value:function(z,H){"value"in this.props||this.setState({value:z},H)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(Te,Object(x.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(z){return"value"in z?{value:z.value}:null}}]),Me}(m.Component),we=ie.default=Se},ZW5e:function(ze,ie,n){ze.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(ze,ie,n){"use strict";function x(L){return typeof L=="object"&&L!=null&&L.nodeType===1}function T(L,V){return(!V||L!=="hidden")&&L!=="visible"&&L!=="clip"}function be(L,V){if(L.clientHeightV||E>L&&F=V&&I>=ee?E-L-B:F>V&&Iee?F-V+j:0}var o=function(L,V){var ee=window,B=V.scrollMode,j=V.block,E=V.inline,F=V.boundary,I=V.skipOverflowHiddenElements,te=typeof F=="function"?F:function(dt){return dt!==F};if(!x(L))throw new TypeError("Invalid target");for(var ne=document.scrollingElement||document.documentElement,X=[],fe=L;x(fe)&&te(fe);){if((fe=fe.parentElement)===ne){X.push(fe);break}fe!=null&&fe===document.body&&be(fe)&&!be(document.documentElement)||fe!=null&&be(fe,I)&&X.push(fe)}for(var w=ee.visualViewport?ee.visualViewport.width:innerWidth,U=ee.visualViewport?ee.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,b=L.getBoundingClientRect(),l=b.height,N=b.width,D=b.top,R=b.right,d=b.bottom,g=b.left,_=j==="start"||j==="nearest"?D:j==="end"?d:D+l/2,y=E==="center"?g+N/2:E==="end"?R:g,$=[],le=0;le=0&&g>=0&&d<=U&&R<=w&&D>=Se&&d<=ue&&g>=ce&&R<=we)return $;var Me=getComputedStyle(ae),ve=parseInt(Me.borderLeftWidth,10),z=parseInt(Me.borderTopWidth,10),H=parseInt(Me.borderRightWidth,10),Ee=parseInt(Me.borderBottomWidth,10),Pe=0,Ie=0,me="offsetWidth"in ae?ae.offsetWidth-ae.clientWidth-ve-H:0,Ae="offsetHeight"in ae?ae.offsetHeight-ae.clientHeight-z-Ee:0;if(ne===ae)Pe=j==="start"?_:j==="end"?_-U:j==="nearest"?S(p,p+U,U,z,Ee,p+_,p+_+l,l):_-U/2,Ie=E==="start"?y:E==="center"?y-w/2:E==="end"?y-w:S(W,W+w,w,ve,H,W+y,W+y+N,N),Pe=Math.max(0,Pe+p),Ie=Math.max(0,Ie+W);else{Pe=j==="start"?_-Se-z:j==="end"?_-ue+Ee+Ae:j==="nearest"?S(Se,ue,ye,z,Ee+Ae,_,_+l,l):_-(Se+ye/2)+Ae/2,Ie=E==="start"?y-ce-ve:E==="center"?y-(ce+Te/2)+me/2:E==="end"?y-we+H+me:S(ce,we,Te,ve,H+me,y,y+N,N);var Ze=ae.scrollLeft,Be=ae.scrollTop;_+=Be-(Pe=Math.max(0,Math.min(Be+Pe,ae.scrollHeight-ye+Ae))),y+=Ze-(Ie=Math.max(0,Math.min(Ze+Ie,ae.scrollWidth-Te+me)))}$.push({el:ae,top:Pe,left:Ie})}return $};function m(L){return L===Object(L)&&Object.keys(L).length!==0}function Y(L,V){V===void 0&&(V="auto");var ee="scrollBehavior"in document.body.style;L.forEach(function(B){var j=B.el,E=B.top,F=B.left;j.scroll&&ee?j.scroll({top:E,left:F,behavior:V}):(j.scrollTop=E,j.scrollLeft=F)})}function M(L){return L===!1?{block:"end",inline:"nearest"}:m(L)?L:{block:"start",inline:"nearest"}}function A(L,V){var ee=!L.ownerDocument.documentElement.contains(L);if(m(V)&&typeof V.behavior=="function")return V.behavior(ee?[]:o(L,V));if(ee)return;var B=M(V);return Y(o(L,B),B.behavior)}var se=ie.a=A},bT9E:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return T});var x=n("VTBJ");function T(be,S){var o=Object(x.a)({},be);return Array.isArray(S)&&S.forEach(function(m){delete o[m]}),o}},biw7:function(ze,ie,n){"use strict";var x=n("q1tI"),T=n.n(x),be=x.createContext(null);ie.a=be},dmUQ:function(ze,ie,n){"use strict";var x=n("Ff2n"),T=n("rePB"),be=n("1OyB"),S=n("vuIU"),o=n("Ji7U"),m=n("md7G"),Y=n("foSv"),M=n("q1tI"),A=n.n(M),se=n("TSYQ"),L=n.n(se),V=n("4IlW");function ee(l,N){var D=Object.keys(l);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(l);N&&(R=R.filter(function(d){return Object.getOwnPropertyDescriptor(l,d).enumerable})),D.push.apply(D,R)}return D}function B(l){for(var N=1;N1?Te-1:0),we=1;we1?le-1:0),k=1;k=0)return parseInt($.slice($.indexOf("e-")+2),10);var le=0;return $.indexOf(".")>=0&&(le=$.length-$.indexOf(".")-1),le},d.getInputDisplayValue=function(y){var $=y||d.state,le=$.focused,ae=$.inputValue,k=$.value,ye;le?ye=ae:ye=d.toPrecisionAsStep(k),ye==null&&(ye="");var Te=d.formatWrapper(ye);return w(d.props.decimalSeparator)&&(Te=Te.toString().replace(".",d.props.decimalSeparator)),Te},d.recordCursorPosition=function(){try{d.cursorStart=d.input.selectionStart,d.cursorEnd=d.input.selectionEnd,d.currentValue=d.input.value,d.cursorBefore=d.input.value.substring(0,d.cursorStart),d.cursorAfter=d.input.value.substring(d.cursorEnd)}catch(y){}},d.restoreByAfter=function(y){if(y===void 0)return!1;var $=d.input.value,le=$.lastIndexOf(y);if(le===-1)return!1;var ae=d.cursorBefore.length;return d.lastKeyCode===V.a.DELETE&&d.cursorBefore.charAt(ae-1)===y[0]?(d.fixCaret(ae,ae),!0):le+y.length===$.length?(d.fixCaret(le,le),!0):!1},d.partRestoreByAfter=function(y){return y===void 0?!1:Array.prototype.some.call(y,function($,le){var ae=y.substring(le);return d.restoreByAfter(ae)})},d.isNotCompleteNumber=function(y){return isNaN(y)||y===""||y===null||y&&y.toString().indexOf(".")===y.toString().length-1},d.stop=function(){d.autoStepTimer&&clearTimeout(d.autoStepTimer)},d.down=function(y,$,le){d.pressingUpOrDown=!0,d.step("down",y,$,le)},d.up=function(y,$,le){d.pressingUpOrDown=!0,d.step("up",y,$,le)},d.saveInput=function(y){d.input=y};var g=R.value;g===void 0&&(g=R.defaultValue),d.state={focused:R.autoFocus};var _=d.getValidValue(d.toNumber(g));return d.state=B(B({},d.state),{},{inputValue:d.toPrecisionAsStep(_),value:_}),d}return Object(S.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(d){var g=this.props,_=g.value,y=g.onChange,$=g.max,le=g.min,ae=this.state.focused;if(d){if(!U(d.value,_)||!U(d.max,$)||!U(d.min,le)){var k=ae?_:this.getValidValue(_),ye;this.pressingUpOrDown?ye=k:this.inputting?ye=this.rawInput:ye=this.toPrecisionAsStep(k),this.setState({value:k,inputValue:ye})}var Te="value"in this.props?_:this.state.value;"max"in this.props&&d.max!==$&&typeof Te=="number"&&Te>$&&y&&y($),"min"in this.props&&d.min!==le&&typeof Te=="number"&&Te1&&arguments[1]!==void 0?arguments[1]:this.props.min,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,y=parseFloat(d);return isNaN(y)?d:(y_&&(y=_),y)}},{key:"setValue",value:function(d,g){var _=this.props.precision,y=this.isNotCompleteNumber(parseFloat(d))?null:parseFloat(d),$=this.state.value,le=$===void 0?null:$,ae=this.state.inputValue,k=ae===void 0?null:ae,ye=typeof y=="number"?y.toFixed(_):"".concat(y),Te=y!==le||ye!=="".concat(k);return"value"in this.props?(k=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:k},g)):this.setState({value:y,inputValue:this.toPrecisionAsStep(d)},g),Te&&this.props.onChange(y),y}},{key:"getMaxPrecision",value:function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=this.props,y=_.precision,$=_.step;if(w(y))return y;var le=this.getPrecision(g),ae=this.getPrecision($),k=this.getPrecision(d);return d?Math.max(k,le+ae):le+ae}},{key:"getPrecisionFactor",value:function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=this.getMaxPrecision(d,g);return Math.pow(10,_)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(d){return this.props.formatter?this.props.formatter(d):d}},{key:"toPrecisionAsStep",value:function(d){if(this.isNotCompleteNumber(d)||d==="")return d;var g=Math.abs(this.getMaxPrecision(d));return isNaN(g)?d.toString():Number(d).toFixed(g)}},{key:"toNumber",value:function(d){var g=this.props.precision,_=this.state.focused,y=d&&d.length>16&&_;return this.isNotCompleteNumber(d)||y?d:w(g)?Math.round(d*Math.pow(10,g))/Math.pow(10,g):Number(d)}},{key:"upStep",value:function(d,g){var _=this.props.step,y=this.getPrecisionFactor(d,g),$=Math.abs(this.getMaxPrecision(d,g)),le=((y*d+y*_*g)/y).toFixed($);return this.toNumber(le)}},{key:"downStep",value:function(d,g){var _=this.props.step,y=this.getPrecisionFactor(d,g),$=Math.abs(this.getMaxPrecision(d,g)),le=((y*d-y*_*g)/y).toFixed($);return this.toNumber(le)}},{key:"step",value:function(d,g){var _=this,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$=arguments.length>3?arguments[3]:void 0;this.stop(),g&&(g.persist(),g.preventDefault());var le=this.props;if(le.disabled)return;var ae=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ae))return;var k=this["".concat(d,"Step")](ae,y),ye=k>le.max||kle.max?k=le.max:k=Se),he=(Xe||Xe===0)&&(isNaN(Xe)||Number(Xe)<=we),q=xe||y||$,Z=he||y||$,oe=L()("".concat(_,"-handler"),"".concat(_,"-handler-up"),Object(T.a)({},"".concat(_,"-handler-up-disabled"),q)),Ce=L()("".concat(_,"-handler"),"".concat(_,"-handler-down"),Object(T.a)({},"".concat(_,"-handler-down-disabled"),Z)),re=le?{onTouchStart:q?F:this.up,onTouchEnd:this.stop}:{onMouseDown:q?F:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ge=le?{onTouchStart:Z?F:this.down,onTouchEnd:this.stop}:{onMouseDown:Z?F:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return A.a.createElement("div",{className:O,style:ue,title:ce,onMouseEnter:Me,onMouseLeave:ve,onMouseOver:z,onMouseOut:H,onFocus:function(){return null},onBlur:function(){return null}},A.a.createElement("div",{className:"".concat(_,"-handler-wrap")},A.a.createElement("span",Object.assign({unselectable:"on"},re,{role:"button","aria-label":"Increase Value","aria-disabled":q,className:oe}),k||A.a.createElement("span",{unselectable:"on",className:"".concat(_,"-handler-up-inner"),onClick:I})),A.a.createElement("span",Object.assign({unselectable:"on"},ge,{role:"button","aria-label":"Decrease Value","aria-disabled":Z,className:Ce}),ye||A.a.createElement("span",{unselectable:"on",className:"".concat(_,"-handler-down-inner"),onClick:I}))),A.a.createElement("div",{className:"".concat(_,"-input-wrap")},A.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":we,"aria-valuemax":Se,"aria-valuenow":Xe,required:Ee,type:me,placeholder:Ae,onPaste:qe,onClick:Pe,onMouseUp:this.onMouseUp,className:"".concat(_,"-input"),tabIndex:Ie,autoComplete:ae,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:K?this.onKeyDown:F,onKeyUp:K?this.onKeyUp:F,autoFocus:De,maxLength:ft,readOnly:$,disabled:y,max:Se,min:we,step:xt,name:Oe,title:ce,id:Ze,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(pe),pattern:dt,inputMode:Be,onInput:st},G))))}}]),D}(A.a.Component);W.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:fe,min:-fe,step:1,style:{},onChange:F,onKeyDown:F,onPressEnter:F,onFocus:F,onBlur:F,parser:te,required:!1,autoComplete:"off"};var p=W,b=ie.a=p},fj85:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return m}),n.d(ie,"b",function(){return se});var x=n("q1tI"),T=n.n(x),be=n("ZW5e"),S=n.n(be),o=function(V){var ee=V.title,B=V.style,j=B===void 0?{}:B;return T.a.createElement("div",{className:S.a.panelTitleContainer,style:j},T.a.createElement("div",null,ee))},m=o,Y=n("PsNh"),M=n.n(Y),A=function(V){var ee=V.title,B=V.children;return T.a.createElement("div",{className:M.a.selectWrapContainer},T.a.createElement("span",null,ee),B)},se=A},fyJ8:function(ze,ie,n){"use strict";var x=n("rePB"),T=n("VTBJ"),be=n("Ff2n"),S=n("U8pU"),o=n("q1tI"),m=n.n(o),Y=n("TSYQ"),M=n.n(Y),A=n("c+Xe"),se=n("sR1s");function L(E){return E&&Object(S.a)(E)==="object"&&!Array.isArray(E)&&!o.isValidElement(E)}function V(E){return typeof E=="string"?!0:Object(A.c)(E)}function ee(E,F){var I,te=E.prefixCls,ne=E.className,X=E.record,fe=E.index,w=E.dataIndex,U=E.render,W=E.children,p=E.component,b=p===void 0?"td":p,l=E.colSpan,N=E.rowSpan,D=E.fixLeft,R=E.fixRight,d=E.firstFixLeft,g=E.lastFixLeft,_=E.firstFixRight,y=E.lastFixRight,$=E.appendNode,le=E.additionalProps,ae=le===void 0?{}:le,k=E.ellipsis,ye=E.align,Te=E.rowType,Se=E.isSticky,we="".concat(te,"-cell"),ue,ce;if(W)ce=W;else{var Me=Object(se.b)(X,w);if(ce=Me,U){var ve=U(Me,X,fe);L(ve)?(ce=ve.children,ue=ve.props):ce=ve}}Object(S.a)(ce)==="object"&&!Array.isArray(ce)&&!o.isValidElement(ce)&&(ce=null),k&&(g||_)&&(ce=o.createElement("span",{className:"".concat(we,"-content")},ce));var z=ue||{},H=z.colSpan,Ee=z.rowSpan,Pe=z.style,Ie=z.className,me=Object(be.a)(z,["colSpan","rowSpan","style","className"]),Ae=H!==void 0?H:l,Ze=Ee!==void 0?Ee:N;if(Ae===0||Ze===0)return null;var Be={},dt=typeof D=="number",xt=typeof R=="number";dt&&(Be.position="sticky",Be.left=D),xt&&(Be.position="sticky",Be.right=R);var ft={};ye&&(ft.textAlign=ye);var De,Oe=k===!0?{showTitle:!0}:k;Oe&&(Oe.showTitle||Te==="header")&&(typeof ce=="string"||typeof ce=="number"?De=ce.toString():o.isValidElement(ce)&&typeof ce.props.children=="string"&&(De=ce.props.children));var qe=Object(T.a)(Object(T.a)(Object(T.a)({title:De},me),ae),{},{colSpan:Ae&&Ae!==1?Ae:null,rowSpan:Ze&&Ze!==1?Ze:null,className:M()(we,ne,(I={},Object(x.a)(I,"".concat(we,"-fix-left"),dt),Object(x.a)(I,"".concat(we,"-fix-left-first"),d),Object(x.a)(I,"".concat(we,"-fix-left-last"),g),Object(x.a)(I,"".concat(we,"-fix-right"),xt),Object(x.a)(I,"".concat(we,"-fix-right-first"),_),Object(x.a)(I,"".concat(we,"-fix-right-last"),y),Object(x.a)(I,"".concat(we,"-ellipsis"),k),Object(x.a)(I,"".concat(we,"-with-append"),$),Object(x.a)(I,"".concat(we,"-fix-sticky"),(dt||xt)&&Se),I),ae.className,Ie),style:Object(T.a)(Object(T.a)(Object(T.a)(Object(T.a)({},ae.style),ft),Be),Pe),ref:V(b)?F:null});return o.createElement(b,Object.assign({},qe),$,ce)}var B=o.forwardRef(ee);B.displayName="Cell";var j=o.memo(B,function(E,F){return F.shouldCellUpdate?!F.shouldCellUpdate(F.record,E.record):!1});ie.a=j},hW8S:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return S}),n.d(ie,"c",function(){return o}),n.d(ie,"b",function(){return m});var x=n("VTBJ"),T=n("Ff2n"),be=n("Kwbf"),S="RC_TABLE_INTERNAL_COL_DEFINE";function o(Y){var M=Y.expandable,A=Object(T.a)(Y,["expandable"]);return"expandable"in Y?Object(x.a)(Object(x.a)({},A),M):A}function m(Y){return Object.keys(Y).reduce(function(M,A){return(A.substr(0,5)==="data-"||A.substr(0,5)==="aria-")&&(M[A]=Y[A]),M},{})}},k3GJ:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return po});var x=n("rePB"),T=n("ODXe"),be=n("Ff2n"),S=n("VTBJ"),o=n("q1tI"),m=n("TSYQ"),Y=n.n(m),M=n("Zm9Q"),A=n("6cGi"),se=n("KQm4"),L=n("xEkU"),V=n.n(L),ee=n("t23M");function B(r){var c=Object(o.useRef)(),h=Object(o.useRef)(!1);function s(){for(var e=arguments.length,a=new Array(e),t=0;tC&&(J=C-Q),Object(o.useMemo)(function(){if(!a.length)return[0,0];for(var de=a.length,ke=de,Je=0;Jef+J){ke=Je-1;break}}for(var et=0,Qe=de-1;Qe>=0;Qe-=1){var $e=r.get(a[Qe].key)||X;if($e[v]1&&arguments[1]!==void 0?arguments[1]:!1,s=c&&typeof c.getBoundingClientRect=="function"&&c.getBoundingClientRect().width;if(s){if(h){var e=getComputedStyle(c),a=e.marginLeft,t=e.marginRight;s+=+a.replace("px","")+ +t.replace("px","")}s=+s.toFixed(6)}return s||0},De=function(c,h,s){c&&Object(_.a)(c.style)==="object"&&(c.style[h]=s)},Oe=function(){return Ie.any},qe=n("bdgK"),st=n("i8i4"),lt=n.n(st),Fe=n("wgJM"),Xe=n("l4aY"),Rt=n("m+aA"),O=n("c+Xe"),G=n("zT1h"),K=n("QC+M");function pe(r,c,h){return h?r[0]===c[0]:r[0]===c[0]&&r[1]===c[1]}function xe(r,c,h){var s=r[c]||{};return Object(S.a)(Object(S.a)({},s),h)}function he(r,c,h,s){for(var e=h.points,a=Object.keys(r),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;c();var a=Object(Fe.a)(function(){e<=1?s({isCanceled:function(){return a!==r.current}}):h(s,e-1)});r.current=a}return o.useEffect(function(){return function(){c()}},[]),[h,c]},An=[Tt,Mt,bt,Ye],_n=!1,Bn=!0;function rn(r){return r===bt||r===Ye}var hn=function(r,c){var h=o.useState(Vt),s=Object(T.a)(h,2),e=s[0],a=s[1],t=St(),i=Object(T.a)(t,2),u=i[0],v=i[1];function f(){a(Tt)}return Xt(function(){if(e!==Vt&&e!==Ye){var C=An.indexOf(e),P=An[C+1],Q=c(e);Q===_n?a(P):u(function(J){function de(){if(J.isCanceled())return;a(P)}Q===!0?de():Promise.resolve(Q).then(de)})}},[r,e]),o.useEffect(function(){return function(){v()}},[]),[f,e]},On=function(r){var c=Object(o.useRef)(),h=Object(o.useRef)(r);h.current=r;var s=o.useCallback(function(t){h.current(t)},[]);function e(t){t&&(t.removeEventListener(kt,s),t.removeEventListener(We,s))}function a(t){c.current&&c.current!==t&&e(c.current),t&&t!==c.current&&(t.addEventListener(kt,s),t.addEventListener(We,s),c.current=t)}return o.useEffect(function(){return function(){e(c.current)}},[]),[a,e]};function xn(r,c,h,s){var e=s.motionEnter,a=e===void 0?!0:e,t=s.motionAppear,i=t===void 0?!0:t,u=s.motionLeave,v=u===void 0?!0:u,f=s.motionDeadline,C=s.motionLeaveImmediately,P=s.onAppearPrepare,Q=s.onEnterPrepare,J=s.onLeavePrepare,de=s.onAppearStart,ke=s.onEnterStart,Je=s.onLeaveStart,Ve=s.onAppearActive,et=s.onEnterActive,Qe=s.onLeaveActive,$e=s.onAppearEnd,Ge=s.onEnterEnd,mt=s.onLeaveEnd,at=s.onVisibleChanged,Ut=wt(),yt=Object(T.a)(Ut,2),Le=yt[0],_e=yt[1],ot=wt(vt),it=Object(T.a)(ot,2),Re=it[0],pt=it[1],Dt=wt(null),ht=Object(T.a)(Dt,2),Ot=ht[0],At=ht[1],$t=Object(o.useRef)(!1),an=Object(o.useRef)(null),It=Object(o.useRef)(!1),on=Object(o.useRef)(null);function gn(){var Pt=h();return Pt||on.current}var ln=Object(o.useRef)(!1);function un(Pt){var Et=gn();if(Pt&&!Pt.deadline&&Pt.target!==Et)return;var Yt;Re===jt&&ln.current?Yt=$e==null?void 0:$e(Et,Pt):Re===Ft&&ln.current?Yt=Ge==null?void 0:Ge(Et,Pt):Re===nt&&ln.current&&(Yt=mt==null?void 0:mt(Et,Pt)),Yt!==!1&&!It.current&&(pt(vt),At(null))}var Kt=On(un),qt=Object(T.a)(Kt,1),Gt=qt[0],Wt=o.useMemo(function(){var Pt,Et,Yt;switch(Re){case"appear":return Pt={},Object(x.a)(Pt,Tt,P),Object(x.a)(Pt,Mt,de),Object(x.a)(Pt,bt,Ve),Pt;case"enter":return Et={},Object(x.a)(Et,Tt,Q),Object(x.a)(Et,Mt,ke),Object(x.a)(Et,bt,et),Et;case"leave":return Yt={},Object(x.a)(Yt,Tt,J),Object(x.a)(Yt,Mt,Je),Object(x.a)(Yt,bt,Qe),Yt;default:return{}}},[Re]),Dn=hn(Re,function(Pt){if(Pt===Tt){var Et=Wt[Tt];return Et?Et(gn()):_n}if(Nt in Wt){var Yt;At(((Yt=Wt[Nt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Nt===bt&&(Gt(gn()),f>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},f))),Bn}),Pn=Object(T.a)(Dn,2),zn=Pn[0],Nt=Pn[1],Cn=rn(Nt);ln.current=Cn,Xt(function(){_e(c);var Pt=$t.current;if($t.current=!0,!r)return;var Et;!Pt&&c&&i&&(Et=jt),Pt&&c&&a&&(Et=Ft),(Pt&&!c&&v||!Pt&&C&&!c&&v)&&(Et=nt),Et&&(pt(Et),zn())},[c]),Object(o.useEffect)(function(){(Re===jt&&!i||Re===Ft&&!a||Re===nt&&!v)&&pt(vt)},[i,a,v]),Object(o.useEffect)(function(){return function(){clearTimeout(an.current),It.current=!0}},[]),Object(o.useEffect)(function(){Le!==void 0&&Re===vt&&(at==null||at(Le))},[Le,Re]);var Wn=Ot;return Wt[Tt]&&Nt===Mt&&(Wn=Object(S.a)({transition:"none"},Wn)),[Re,Nt,Wn,Le!=null?Le:c]}var Vn=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){return Object(U.a)(this,h),c.apply(this,arguments)}return Object(W.a)(h,[{key:"render",value:function(){return this.props.children}}]),h}(o.Component),en=Vn;function Ln(r){var c=r;Object(_.a)(r)==="object"&&(c=r.transitionSupport);function h(e){return!!(e.motionName&&c)}var s=o.forwardRef(function(e,a){var t=e.visible,i=t===void 0?!0:t,u=e.removeOnLeave,v=u===void 0?!0:u,f=e.forceRender,C=e.children,P=e.motionName,Q=e.leavedClassName,J=e.eventProps,de=h(e),ke=Object(o.useRef)(),Je=Object(o.useRef)();function Ve(){try{return Object(Rt.a)(ke.current||Je.current)}catch(pt){return null}}var et=xn(de,i,Ve,e),Qe=Object(T.a)(et,4),$e=Qe[0],Ge=Qe[1],mt=Qe[2],at=Qe[3],Ut=o.useRef(at);at&&(Ut.current=!0);var yt=Object(o.useRef)(a);yt.current=a;var Le=o.useCallback(function(pt){ke.current=pt,Object(O.b)(yt.current,pt)},[]),_e,ot=Object(S.a)(Object(S.a)({},J),{},{visible:i});if(!C)_e=null;else if($e===vt||!h(e))at?_e=C(Object(S.a)({},ot),Le):!v&&Ut.current?_e=C(Object(S.a)(Object(S.a)({},ot),{},{className:Q}),Le):f?_e=C(Object(S.a)(Object(S.a)({},ot),{},{style:{display:"none"}}),Le):_e=null;else{var it,Re;Ge===Tt?Re="prepare":rn(Ge)?Re="active":Ge===Mt&&(Re="start"),_e=C(Object(S.a)(Object(S.a)({},ot),{},{className:Y()(gt(P,$e),(it={},Object(x.a)(it,gt(P,"".concat($e,"-").concat(Re)),Re),Object(x.a)(it,P,typeof P=="string"),it)),style:mt}),Le)}return o.createElement(en,{ref:Je},_e)});return s.displayName="CSSMotion",s}var En=Ln(tt),Un="add",Mn="keep",vn="remove",jn="removed";function Hn(r){var c;return r&&Object(_.a)(r)==="object"&&"key"in r?c=r:c={key:r},Object(S.a)(Object(S.a)({},c),{},{key:String(c.key)})}function Tn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(Hn)}function zt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=[],s=0,e=c.length,a=Tn(r),t=Tn(c);a.forEach(function(v){for(var f=!1,C=s;C1});return u.forEach(function(v){h=h.filter(function(f){var C=f.key,P=f.status;return C!==v||P!==vn}),h.forEach(function(f){f.key===v&&(f.status=Mn)})}),h}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,h=function(s){Object(b.a)(a,s);var e=Object(l.a)(a);function a(){var t;return Object(U.a)(this,a),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(u){var v=u.keyEntities;return{keyEntities:v.map(function(f){return f.key!==i?f:Object(S.a)(Object(S.a)({},f),{},{status:jn})})}})},t}return Object(W.a)(a,[{key:"render",value:function(){var i=this,u=this.state.keyEntities,v=this.props,f=v.component,C=v.children,P=v.onVisibleChanged,Q=Object(be.a)(v,["component","children","onVisibleChanged"]),J=f||o.Fragment,de={};return Zt.forEach(function(ke){de[ke]=Q[ke],delete Q[ke]}),delete Q.keys,o.createElement(J,Q,u.map(function(ke){var Je=ke.status,Ve=Object(be.a)(ke,["status"]),et=Je===Un||Je===Mn;return o.createElement(c,Object(w.a)({},de,{key:Ve.key,visible:et,eventProps:Ve,onVisibleChanged:function($e){P==null||P($e,{key:Ve.key}),$e||i.removeKey(Ve.key)}}),C)}))}}],[{key:"getDerivedStateFromProps",value:function(i,u){var v=i.keys,f=u.keyEntities,C=Tn(v),P=zt(f,C);return{keyEntities:P.filter(function(Q){var J=f.find(function(de){var ke=de.key;return Q.key===ke});return!(J&&J.status===jn&&Q.status===vn)})}}}]),a}(o.Component);return h.defaultProps={component:"div"},h}var Jt=sn(tt),tn=En;function dn(r){var c=r.prefixCls,h=r.motion,s=r.animation,e=r.transitionName;return h||(s?{motionName:"".concat(c,"-").concat(s)}:e?{motionName:e}:null)}function Xn(r){var c=r.prefixCls,h=r.visible,s=r.zIndex,e=r.mask,a=r.maskMotion,t=r.maskAnimation,i=r.maskTransitionName;if(!e)return null;var u={};return(a||i||t)&&(u=Object(S.a)({motionAppear:!0},dn({motion:a,prefixCls:c,transitionName:i,animation:t}))),o.createElement(tn,Object(w.a)({},u,{visible:h,removeOnLeave:!0}),function(v){var f=v.className;return o.createElement("div",{style:{zIndex:s},className:Y()("".concat(c,"-mask"),f)})})}var kn=n("9mu1"),$n=n("o0o1"),Ta=n.n($n),Na=n("HaE+"),Gn=["measure","align",null,"motion"],_t=function(r,c){var h=Object(o.useState)(null),s=Object(T.a)(h,2),e=s[0],a=s[1],t=Object(o.useRef)(),i=Object(o.useRef)(!1);function u(C){i.current||a(C)}function v(){Fe.a.cancel(t.current)}function f(C){v(),t.current=Object(Fe.a)(function(){u(function(P){switch(e){case"align":return"motion";case"motion":return"stable";default:}return P}),C==null||C()})}return Object(o.useEffect)(function(){u("measure")},[r]),Object(o.useEffect)(function(){switch(e){case"measure":c();break;default:}e&&(t.current=Object(Fe.a)(Object(Na.a)(Ta.a.mark(function C(){var P,Q;return Ta.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:P=Gn.indexOf(e),Q=Gn[P+1],Q&&P!==-1&&u(Q);case 3:case"end":return de.stop()}},C)}))))},[e]),Object(o.useEffect)(function(){return function(){i.current=!0,v()}},[]),[e,f]},Yn=function(r){var c=o.useState({width:0,height:0}),h=Object(T.a)(c,2),s=h[0],e=h[1];function a(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=o.useMemo(function(){var i={};if(r){var u=s.width,v=s.height;r.indexOf("height")!==-1&&v?i.height=v:r.indexOf("minHeight")!==-1&&v&&(i.minHeight=v),r.indexOf("width")!==-1&&u?i.width=u:r.indexOf("minWidth")!==-1&&u&&(i.minWidth=u)}return i},[r,s]);return[t,a]},Jn=o.forwardRef(function(r,c){var h=r.visible,s=r.prefixCls,e=r.className,a=r.style,t=r.children,i=r.zIndex,u=r.stretch,v=r.destroyPopupOnHide,f=r.forceRender,C=r.align,P=r.point,Q=r.getRootDomNode,J=r.getClassNameFromAlign,de=r.onAlign,ke=r.onMouseEnter,Je=r.onMouseLeave,Ve=r.onMouseDown,et=r.onTouchStart,Qe=Object(o.useRef)(),$e=Object(o.useRef)(),Ge=Object(o.useState)(),mt=Object(T.a)(Ge,2),at=mt[0],Ut=mt[1],yt=Yn(u),Le=Object(T.a)(yt,2),_e=Le[0],ot=Le[1];function it(){u&&ot(Q())}var Re=_t(h,it),pt=Object(T.a)(Re,2),Dt=pt[0],ht=pt[1],Ot=Object(o.useRef)();function At(){return P||Q}function $t(){var Kt;(Kt=Qe.current)===null||Kt===void 0||Kt.forceAlign()}function an(Kt,qt){var Gt=J(qt);at!==Gt&&Ut(Gt),Dt==="align"&&(at!==Gt?Promise.resolve().then(function(){$t()}):ht(function(){var Wt;(Wt=Ot.current)===null||Wt===void 0||Wt.call(Ot)}),de==null||de(Kt,qt))}var It=Object(S.a)({},dn(r));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Kt){var qt=It[Kt];It[Kt]=function(Gt,Wt){return ht(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(Kt){Ot.current=Kt})}o.useEffect(function(){!It.motionName&&Dt==="motion"&&ht()},[It.motionName,Dt]),o.useImperativeHandle(c,function(){return{forceAlign:$t,getElement:function(){return $e.current}}});var gn=Object(S.a)(Object(S.a)({},_e),{},{zIndex:i,opacity:Dt==="motion"||Dt==="stable"||!h?void 0:0,pointerEvents:Dt==="stable"?void 0:"none"},a),ln=!0;(C==null?void 0:C.points)&&(Dt==="align"||Dt==="stable")&&(ln=!1);var un=t;return o.Children.count(t)>1&&(un=o.createElement("div",{className:"".concat(s,"-content")},t)),o.createElement(tn,Object(w.a)({visible:h,ref:$e,leavedClassName:"".concat(s,"-hidden")},It,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:v,forceRender:f}),function(Kt,qt){var Gt=Kt.className,Wt=Kt.style,Dn=Y()(s,e,at,Gt);return o.createElement(kn.a,{target:At(),key:"popup",ref:Qe,monitorWindowResize:!0,disabled:ln,align:C,onAlign:an},o.createElement("div",{ref:qt,className:Dn,onMouseEnter:ke,onMouseLeave:Je,onMouseDownCapture:Ve,onTouchStartCapture:et,style:Object(S.a)(Object(S.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ra=Jn,fn=o.forwardRef(function(r,c){var h=r.prefixCls,s=r.visible,e=r.zIndex,a=r.children,t=r.mobile;t=t===void 0?{}:t;var i=t.popupClassName,u=t.popupStyle,v=t.popupMotion,f=v===void 0?{}:v,C=t.popupRender,P=o.useRef();o.useImperativeHandle(c,function(){return{forceAlign:function(){},getElement:function(){return P.current}}});var Q=Object(S.a)({zIndex:e},u),J=a;return o.Children.count(a)>1&&(J=o.createElement("div",{className:"".concat(h,"-content")},a)),C&&(J=C(J)),o.createElement(tn,Object(w.a)({visible:s,ref:P,removeOnLeave:!0},f),function(de,ke){var Je=de.className,Ve=de.style,et=Y()(h,i,Je);return o.createElement("div",{ref:ke,className:et,style:Object(S.a)(Object(S.a)({},Ve),Q)},J)})});fn.displayName="MobilePopupInner";var Va=fn,Sa=["visible","mobile"],oa=o.forwardRef(function(r,c){var h=r.visible,s=r.mobile,e=Object(be.a)(r,Sa),a=Object(o.useState)(h),t=Object(T.a)(a,2),i=t[0],u=t[1],v=Object(o.useState)(!1),f=Object(T.a)(v,2),C=f[0],P=f[1],Q=Object(S.a)(Object(S.a)({},e),{},{visible:i});Object(o.useEffect)(function(){u(h),h&&s&&P(q())},[h,s]);var J=C?o.createElement(Va,Object(w.a)({},Q,{mobile:s,ref:c})):o.createElement(Ra,Object(w.a)({},Q,{ref:c}));return o.createElement("div",null,o.createElement(Xn,Q),J)});oa.displayName="Popup";var Ha=oa,Xa=o.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(r){return r?r.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(r){var c=function(h){Object(b.a)(e,h);var s=Object(l.a)(e);function e(a){var t;Object(U.a)(this,e),t=s.call(this,a),t.popupRef=o.createRef(),t.triggerRef=o.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(u){var v=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",u),t.delaySetPopupVisible(!0,v,v?null:u)},t.onMouseMove=function(u){t.fireEvents("onMouseMove",u),t.setPoint(u)},t.onMouseLeave=function(u){t.fireEvents("onMouseLeave",u),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(u){var v;if(u.relatedTarget&&!u.relatedTarget.setTimeout&&Object(Xe.a)((v=t.popupRef.current)===null||v===void 0?void 0:v.getElement(),u.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(u){t.fireEvents("onFocus",u),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(u){t.fireEvents("onMouseDown",u),t.preClickTime=Date.now()},t.onTouchStart=function(u){t.fireEvents("onTouchStart",u),t.preTouchTime=Date.now()},t.onBlur=function(u){t.fireEvents("onBlur",u),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(u){u.preventDefault(),t.fireEvents("onContextMenu",u),t.setPopupVisible(!0,u)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(u){if(t.fireEvents("onClick",u),t.focusTime){var v;if(t.preClickTime&&t.preTouchTime?v=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?v=t.preClickTime:t.preTouchTime&&(v=t.preTouchTime),Math.abs(v-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var f=!t.state.popupVisible;(t.isClickToHide()&&!f||f&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,u)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var u;(u=t.context).onPopupMouseDown.apply(u,arguments)}},t.onDocumentClick=function(u){if(t.props.mask&&!t.props.maskClosable)return;var v=u.target,f=t.getRootDomNode(),C=t.getPopupDomNode();(!Object(Xe.a)(f,v)||t.isContextMenuOnly())&&!Object(Xe.a)(C,v)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var u=t.props.getTriggerDOMNode;if(u)return u(t.triggerRef.current);try{var v=Object(Rt.a)(t.triggerRef.current);if(v)return v}catch(f){}return lt.a.findDOMNode(Object(p.a)(t))},t.getPopupClassNameFromAlign=function(u){var v=[],f=t.props,C=f.popupPlacement,P=f.builtinPlacements,Q=f.prefixCls,J=f.alignPoint,de=f.getPopupClassNameFromAlign;return C&&P&&v.push(he(P,Q,u,J)),de&&v.push(de(u)),v.join(" ")},t.getComponent=function(){var u=t.props,v=u.prefixCls,f=u.destroyPopupOnHide,C=u.popupClassName,P=u.onPopupAlign,Q=u.popupMotion,J=u.popupAnimation,de=u.popupTransitionName,ke=u.popupStyle,Je=u.mask,Ve=u.maskAnimation,et=u.maskTransitionName,Qe=u.maskMotion,$e=u.zIndex,Ge=u.popup,mt=u.stretch,at=u.alignPoint,Ut=u.mobile,yt=u.forceRender,Le=t.state,_e=Le.popupVisible,ot=Le.point,it=t.getPopupAlign(),Re={};return t.isMouseEnterToShow()&&(Re.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Re.onMouseLeave=t.onPopupMouseLeave),Re.onMouseDown=t.onPopupMouseDown,Re.onTouchStart=t.onPopupMouseDown,o.createElement(Ha,Object(w.a)({prefixCls:v,destroyPopupOnHide:f,visible:_e,point:at&&ot,className:C,align:it,onAlign:P,animation:J,getClassNameFromAlign:t.getPopupClassNameFromAlign},Re,{stretch:mt,getRootDomNode:t.getRootDomNode,style:ke,mask:Je,zIndex:$e,transitionName:de,maskAnimation:Ve,maskTransitionName:et,maskMotion:Qe,ref:t.popupRef,motion:Q,mobile:Ut,forceRender:yt}),typeof Ge=="function"?Ge():Ge)},t.attachParent=function(u){Fe.a.cancel(t.attachId);var v=t.props,f=v.getPopupContainer,C=v.getDocument,P=t.getRootDomNode(),Q;f?(P||f.length===0)&&(Q=f(P)):Q=C(t.getRootDomNode()).body,Q?Q.appendChild(u):t.attachId=Object(Fe.a)(function(){t.attachParent(u)})},t.getContainer=function(){var u=t.props.getDocument,v=u(t.getRootDomNode()).createElement("div");return v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",t.attachParent(v),v},t.setPoint=function(u){var v=t.props.alignPoint;if(!v||!u)return;t.setState({point:{pageX:u.pageX,pageY:u.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in a?i=!!a.popupVisible:i=!!a.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Da.forEach(function(u){t["fire".concat(u)]=function(v){t.fireEvents(u,v)}}),t}return Object(W.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(G.a)(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(G.a)(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(G.a)(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(G.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Fe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,u=t.popupAlign,v=t.builtinPlacements;return i&&v?xe(v,i,u):u}},{key:"setPopupVisible",value:function(t,i){var u=this.props.alignPoint,v=this.state.popupVisible;this.clearDelayTimer(),v!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:v}),this.props.onPopupVisibleChange(t)),u&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,u){var v=this,f=i*1e3;if(this.clearDelayTimer(),f){var C=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){v.setPopupVisible(t,C),v.clearDelayTimer()},f)}else this.setPopupVisible(t,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var i=this.props.children.props,u=this.props;return i[t]&&u[t]?this["fire".concat(t)]:i[t]||u[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,u=t.hideAction;return i.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,u=t.hideAction;return i.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,u=t.showAction;return i.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,u=t.hideAction;return i.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var u=this.props.children.props[t];u&&u(i);var v=this.props[t];v&&v(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,u=i.children,v=i.forceRender,f=i.alignPoint,C=i.className,P=i.autoDestroy,Q=o.Children.only(u),J={key:"trigger"};this.isContextMenuToShow()?J.onContextMenu=this.onContextMenu:J.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(J.onClick=this.onClick,J.onMouseDown=this.onMouseDown,J.onTouchStart=this.onTouchStart):(J.onClick=this.createTwoChains("onClick"),J.onMouseDown=this.createTwoChains("onMouseDown"),J.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(J.onMouseEnter=this.onMouseEnter,f&&(J.onMouseMove=this.onMouseMove)):J.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?J.onMouseLeave=this.onMouseLeave:J.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(J.onFocus=this.onFocus,J.onBlur=this.onBlur):(J.onFocus=this.createTwoChains("onFocus"),J.onBlur=this.createTwoChains("onBlur"));var de=Y()(Q&&Q.props&&Q.props.className,C);de&&(J.className=de);var ke=Object(S.a)({},J);Object(O.c)(Q)&&(ke.ref=Object(O.a)(this.triggerRef,Q.ref));var Je=o.cloneElement(Q,ke),Ve;return(t||this.popupRef.current||v)&&(Ve=o.createElement(r,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&P&&(Ve=null),o.createElement(ra.Provider,{value:this.triggerContextValue},Je,Ve)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var u=t.popupVisible,v={};return u!==void 0&&i.popupVisible!==u&&(v.popupVisible=u,v.prevPopupVisible=i.popupVisible),v}}]),e}(o.Component);return c.contextType=ra,c.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},c}var Ja=Ya(K.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(c,h,s){var e=Ze(h),a=c.getState();c.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},a.defaultActiveFirst),{},Object(x.a)({},e,s))})},la=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(s){var e;Object(U.a)(this,h),e=c.call(this,s),e.onDestroy=function(f){e.props.onDestroy(f)},e.onKeyDown=function(f){var C=f.keyCode,P=e.menuInstance,Q=e.props.store,J=e.getVisible();if(C===E.a.ENTER)return e.onTitleClick(f),pn(Q,e.props.eventKey,!0),!0;if(C===E.a.RIGHT)return J?P.onKeyDown(f):(e.triggerOpenChange(!0),pn(Q,e.props.eventKey,!0)),!0;if(C===E.a.LEFT){var de;if(J)de=P.onKeyDown(f);else return;return de||(e.triggerOpenChange(!1),de=!0),de}return J&&(C===E.a.UP||C===E.a.DOWN)?P.onKeyDown(f):void 0},e.onOpenChange=function(f){e.props.onOpenChange(f)},e.onPopupVisibleChange=function(f){e.triggerOpenChange(f,f?"mouseenter":"mouseleave")},e.onMouseEnter=function(f){var C=e.props,P=C.eventKey,Q=C.onMouseEnter,J=C.store;pn(J,e.props.eventKey,!1),Q({key:P,domEvent:f})},e.onMouseLeave=function(f){var C=e.props,P=C.parentMenu,Q=C.eventKey,J=C.onMouseLeave;P.subMenuInstance=Object(p.a)(e),J({key:Q,domEvent:f})},e.onTitleMouseEnter=function(f){var C=e.props,P=C.eventKey,Q=C.onItemHover,J=C.onTitleMouseEnter;Q({key:P,hover:!0}),J({key:P,domEvent:f})},e.onTitleMouseLeave=function(f){var C=e.props,P=C.parentMenu,Q=C.eventKey,J=C.onItemHover,de=C.onTitleMouseLeave;P.subMenuInstance=Object(p.a)(e),J({key:Q,hover:!1}),de({key:Q,domEvent:f})},e.onTitleClick=function(f){var C=Object(p.a)(e),P=C.props;if(P.onTitleClick({key:P.eventKey,domEvent:f}),P.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(P.store,e.props.eventKey,!1)},e.onSubMenuClick=function(f){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(f))},e.onSelect=function(f){e.props.onSelect(f)},e.onDeselect=function(f){e.props.onDeselect(f)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(f){e.menuInstance=f},e.addKeyPath=function(f){return Object(S.a)(Object(S.a)({},f),{},{keyPath:(f.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(f,C){var P=e.props.eventKey,Q=function(){e.onOpenChange({key:P,item:Object(p.a)(e),trigger:C,open:f})};C==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){Q()},0):Q()},e.isChildrenSelected=function(){var f={find:!1};return dt(e.props.children,e.props.selectedKeys,f),f.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var f=st.findDOMNode(e.menuInstance);if(f.offsetWidth>=e.subMenuTitle.offsetWidth)return;f.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(f){e.subMenuTitle=f},e.getBaseProps=function(){var f=Object(p.a)(e),C=f.props,P=e.getMode();return{mode:P==="horizontal"?"vertical":P,visible:e.getVisible(),level:C.level+1,inlineIndent:C.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:C.selectedKeys,eventKey:"".concat(C.eventKey,"-menu-"),openKeys:C.openKeys,motion:C.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:C.subMenuOpenDelay,parentMenu:Object(p.a)(e),subMenuCloseDelay:C.subMenuCloseDelay,forceSubMenuRender:C.forceSubMenuRender,triggerSubMenuAction:C.triggerSubMenuAction,builtinPlacements:C.builtinPlacements,defaultActiveFirst:C.store.getState().defaultActiveFirst[Ze(C.eventKey)],multiple:C.multiple,prefixCls:C.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:C.itemIcon,expandIcon:C.expandIcon,direction:C.direction}},e.getMotion=function(f,C){var P=Object(p.a)(e),Q=P.haveRendered,J=e.props,de=J.motion,ke=J.rootPrefixCls,Je=Object(S.a)(Object(S.a)({},de),{},{leavedClassName:"".concat(ke,"-hidden"),removeOnLeave:!1,motionAppear:Q||!C||f!=="inline"});return Je};var a=s.store,t=s.eventKey,i=a.getState(),u=i.defaultActiveFirst;e.isRootMenu=!1;var v=!1;return u&&(v=u[t]),pn(a,t,v),e.state={mode:s.mode,isOpen:s.isOpen},e}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,a=this.props,t=a.mode,i=a.parentMenu,u=a.manualRef,v=a.isOpen,f=function(){e.setState({mode:t,isOpen:v})},C=v!==this.state.isOpen,P=t!==this.state.mode;if((P||C)&&(Fe.a.cancel(this.updateStateRaf),P?this.updateStateRaf=Object(Fe.a)(f):f()),u&&u(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!v)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,a=e.onDestroy,t=e.eventKey;a&&a(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Fe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,a){var t=this.getBaseProps();return o.createElement(ea,Object(w.a)({},t,{id:this.internalMenuId,className:e,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,a=this.getBaseProps(),t=a.mode,i=a.visible,u=a.forceSubMenuRender,v=a.direction,f=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||u,!this.haveOpened)return o.createElement("div",null);var C=Y()("".concat(a.prefixCls,"-sub"),Object(x.a)({},"".concat(a.prefixCls,"-rtl"),v==="rtl"));return this.isInlineMode()?o.createElement(tn,Object(w.a)({visible:a.visible,forceRender:u},f),function(P){var Q=P.className,J=P.style,de=Y()(C,Q);return e.renderPopupMenu(de,J)}):this.renderPopupMenu(C)}},{key:"render",value:function(){var e,a,t,i=Object(S.a)({},this.props),u=this.getVisible(),v=this.getPrefixCls(),f=this.isInlineMode(),C=this.getMode(),P=Y()(v,"".concat(v,"-").concat(C),(e={},Object(x.a)(e,i.className,!!i.className),Object(x.a)(e,this.getOpenClassName(),u),Object(x.a)(e,this.getActiveClassName(),i.active||u&&!f),Object(x.a)(e,this.getDisabledClassName(),i.disabled),Object(x.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var Q={},J={},de={};i.disabled||(Q={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},J={onClick:this.onTitleClick},de={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ke={},Je=i.direction,Ve=Je==="rtl";f&&(Ve?ke.paddingRight=i.inlineIndent*i.level:ke.paddingLeft=i.inlineIndent*i.level);var et={};this.getVisible()&&(et={"aria-owns":this.internalMenuId});var Qe=null;C!=="horizontal"&&(Qe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Qe=o.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var $e=o.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:ke,className:"".concat(v,"-title"),role:"button"},de,J,{"aria-expanded":u},et,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,Qe||o.createElement("i",{className:"".concat(v,"-arrow")})),Ge=this.renderChildren(),mt=((a=i.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?i.parentMenu.props.getPopupContainer:function(At){return At.parentNode},at=mn[C],Ut=i.popupOffset?{offset:i.popupOffset}:{},yt=Y()((t={},Object(x.a)(t,i.popupClassName,i.popupClassName&&!f),Object(x.a)(t,"".concat(v,"-rtl"),Ve),t)),Le=i.disabled,_e=i.triggerSubMenuAction,ot=i.subMenuOpenDelay,it=i.forceSubMenuRender,Re=i.subMenuCloseDelay,pt=i.builtinPlacements;xt.forEach(function(At){return delete i[At]}),delete i.onClick;var Dt=Ve?Object(S.a)(Object(S.a)({},Pa),pt):Object(S.a)(Object(S.a)({},ia),pt);delete i.direction;var ht=this.getBaseProps(),Ot=f?null:this.getMotion(ht.mode,ht.visible);return o.createElement("li",Object(w.a)({},i,Q,{className:P,role:"menuitem"}),o.createElement(Ja,{prefixCls:v,popupClassName:Y()("".concat(v,"-popup"),yt),getPopupContainer:mt,builtinPlacements:Dt,popupPlacement:at,popupVisible:f?!1:u,popupAlign:Ut,popup:f?null:Ge,action:Le||f?[]:[_e],mouseEnterDelay:ot,mouseLeaveDelay:Re,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:it,popupMotion:Ot},$e),f?Ge:null)}}]),h}(o.Component);la.defaultProps={onMouseEnter:me,onMouseLeave:me,onTitleMouseEnter:me,onTitleMouseLeave:me,onTitleClick:me,manualRef:me,mode:"vertical",title:""};var In=Object(N.b)(function(r,c){var h=r.openKeys,s=r.activeKey,e=r.selectedKeys,a=c.eventKey,t=c.subMenuKey;return{isOpen:h.indexOf(a)>-1,active:s[t]===a,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,wa="menuitem-overflowed",Qa=.5,Aa=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){var s;return Object(U.a)(this,h),s=c.apply(this,arguments),s.resizeObserver=null,s.mutationObserver=null,s.originalTotalWidth=0,s.overflowedItems=[],s.menuItemSizes=[],s.cancelFrameId=null,s.state={lastVisibleIndex:void 0},s.childRef=o.createRef(),s.getMenuItemNodes=function(){var e=s.props.prefixCls,a=s.childRef.current;return a?[].slice.call(a.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},s.getOverflowedSubMenuItem=function(e,a,t){var i=s.props,u=i.overflowedIndicator,v=i.level,f=i.mode,C=i.prefixCls,P=i.theme;if(v!==1||f!=="horizontal")return null;var Q=s.props.children[0],J=Q.props,de=J.children,ke=J.title,Je=J.style,Ve=Object(be.a)(J,["children","title","style"]),et=Object(S.a)({},Je),Qe="".concat(e,"-overflowed-indicator"),$e="".concat(e,"-overflowed-indicator");a.length===0&&t!==!0?et=Object(S.a)(Object(S.a)({},et),{},{display:"none"}):t&&(et=Object(S.a)(Object(S.a)({},et),{},{visibility:"hidden",position:"absolute"}),Qe="".concat(Qe,"-placeholder"),$e="".concat($e,"-placeholder"));var Ge=P?"".concat(C,"-").concat(P):"",mt={};return xt.forEach(function(at){Ve[at]!==void 0&&(mt[at]=Ve[at])}),o.createElement(Kn,Object(w.a)({title:u,className:"".concat(C,"-overflowed-submenu"),popupClassName:Ge},mt,{key:Qe,eventKey:$e,disabled:!1,style:et}),a)},s.setChildrenWidthAndResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var a=e.children;if(!a||a.length===0)return;var t=e.children[a.length-1];De(t,"display","inline-block");var i=s.getMenuItemNodes(),u=i.filter(function(v){return v.className.split(" ").indexOf(wa)>=0});u.forEach(function(v){De(v,"display","inline-block")}),s.menuItemSizes=i.map(function(v){return ft(v,!0)}),u.forEach(function(v){De(v,"display","none")}),s.overflowedIndicatorWidth=ft(e.children[e.children.length-1],!0),s.originalTotalWidth=s.menuItemSizes.reduce(function(v,f){return v+f},0),s.handleResize(),De(t,"display","none")},s.handleResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var a=ft(e);s.overflowedItems=[];var t=0,i;s.originalTotalWidth>a+Qa&&(i=-1,s.menuItemSizes.forEach(function(u){t+=u,t+s.overflowedIndicatorWidth<=a&&(i+=1)})),s.setState({lastVisibleIndex:i})},s}return Object(W.a)(h,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new qe.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var a=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,u,v){var f=u;if(a.props.mode==="horizontal"){var C=a.getOverflowedSubMenuItem(u.props.eventKey,[]);t!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(v>t&&(f=o.cloneElement(u,{style:{display:"none"},eventKey:"".concat(u.props.eventKey,"-hidden"),className:"".concat(wa)})),v===t+1&&(a.overflowedItems=e.slice(t+1).map(function(Q){return o.cloneElement(Q,{key:Q.props.eventKey,mode:"vertical-left"})}),C=a.getOverflowedSubMenuItem(u.props.eventKey,a.overflowedItems)));var P=[].concat(Object(se.a)(i),[C,f]);return v===e.length-1&&P.push(a.getOverflowedSubMenuItem(u.props.eventKey,[],!0)),P}return[].concat(Object(se.a)(i),[f])},[])}},{key:"render",value:function(){var e=this.props,a=e.visible,t=e.prefixCls,i=e.overflowedIndicator,u=e.mode,v=e.level,f=e.tag,C=e.children,P=e.theme,Q=Object(be.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),J=f;return o.createElement(J,Object(w.a)({ref:this.childRef},Q),this.renderChildren(C))}}]),h}(o.Component);Aa.defaultProps={tag:"div",className:""};var ua=Aa;function Zn(r){return r.length?r.every(function(c){return!!c.props.disabled}):!0}function Nn(r,c,h){var s=r.getState();r.setState({activeKey:Object(S.a)(Object(S.a)({},s.activeKey),{},Object(x.a)({},c,h))})}function yn(r){return r.eventKey||"0-menu-"}function qn(r,c){var h=c,s=r.children,e=r.eventKey;if(h){var a;if(Be(s,function(t,i){t&&t.props&&!t.props.disabled&&h===Ae(t,e,i)&&(a=!0)}),a)return h}return h=null,r.defaultActiveFirst&&Be(s,function(t,i){!h&&t&&!t.props.disabled&&(h=Ae(t,e,i))}),h}function _a(r){if(!r)return;var c=this.instanceArray.indexOf(r);c!==-1?this.instanceArray[c]=r:this.instanceArray.push(r)}var La=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(s){var e;return Object(U.a)(this,h),e=c.call(this,s),e.onKeyDown=function(a,t){var i=a.keyCode,u;if(e.getFlatInstanceArray().forEach(function(f){f&&f.props.active&&f.onKeyDown&&(u=f.onKeyDown(a))}),u)return 1;var v=null;return(i===E.a.UP||i===E.a.DOWN)&&(v=e.step(i===E.a.UP?-1:1)),v?(a.preventDefault(),Nn(e.props.store,yn(e.props),v.props.eventKey),typeof t=="function"&&t(v),1):void 0},e.onItemHover=function(a){var t=a.key,i=a.hover;Nn(e.props.store,yn(e.props),i?t:null)},e.onDeselect=function(a){e.props.onDeselect(a)},e.onSelect=function(a){e.props.onSelect(a)},e.onClick=function(a){e.props.onClick(a)},e.onOpenChange=function(a){e.props.onOpenChange(a)},e.onDestroy=function(a){e.props.onDestroy(a)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(a){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[yn(e.props)],u=t.length;if(!u)return null;a<0&&(t=t.concat().reverse());var v=-1;if(t.every(function(Q,J){return Q&&Q.props.eventKey===i?(v=J,!1):!0}),!e.props.defaultActiveFirst&&v!==-1&&Zn(t.slice(v,u-1)))return;var f=(v+1)%u,C=f;do{var P=t[C];if(!P||P.props.disabled)C=(C+1)%u;else return P}while(C!==f);return null},e.renderCommonMenuItem=function(a,t,i){var u=e.props.store.getState(),v=Object(p.a)(e),f=v.props,C=Ae(a,f.eventKey,t),P=a.props;if(!P||typeof a.type=="string")return a;var Q=C===u.activeKey,J=Object(S.a)(Object(S.a)({mode:P.mode||f.mode,level:f.level,inlineIndent:f.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:f.prefixCls,index:t,parentMenu:f.parentMenu,manualRef:P.disabled?void 0:Object(R.a)(a.ref,_a.bind(Object(p.a)(e))),eventKey:C,active:!P.disabled&&Q,multiple:f.multiple,onClick:function(ke){(P.onClick||me)(ke),e.onClick(ke)},onItemHover:e.onItemHover,motion:f.motion,subMenuOpenDelay:f.subMenuOpenDelay,subMenuCloseDelay:f.subMenuCloseDelay,forceSubMenuRender:f.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:f.builtinPlacements,itemIcon:P.itemIcon||e.props.itemIcon,expandIcon:P.expandIcon||e.props.expandIcon},i),{},{direction:f.direction});return(f.mode==="inline"||Oe())&&(J.triggerSubMenuAction="click"),o.cloneElement(a,Object(S.a)(Object(S.a)({},J),{},{key:C||t}))},e.renderMenuItem=function(a,t,i){if(!a)return null;var u=e.props.store.getState(),v={openKeys:u.openKeys,selectedKeys:u.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(a,t,v)},s.store.setState({activeKey:Object(S.a)(Object(S.a)({},s.store.getState().activeKey),{},Object(x.a)({},s.eventKey,qn(s,s.activeKey)))}),e.instanceArray=[],e}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!g()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var a=this.props,t="activeKey"in a?a.activeKey:a.store.getState().activeKey[yn(a)],i=qn(a,t);if(i!==t)Nn(a.store,yn(a),i);else if("activeKey"in e){var u=qn(e,e.activeKey);i!==u&&Nn(a.store,yn(a),i)}}},{key:"render",value:function(){var e=this,a=Object(w.a)({},this.props);this.instanceArray=[];var t=Y()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),i={className:t,role:a.role||"menu"};a.id&&(i.id=a.id),a.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var u=a.prefixCls,v=a.eventKey,f=a.visible,C=a.level,P=a.mode,Q=a.overflowedIndicator,J=a.theme;return xt.forEach(function(de){return delete a[de]}),delete a.onClick,o.createElement(ua,Object(w.a)({},a,{prefixCls:u,mode:P,tag:"ul",level:C,theme:J,visible:f,overflowedIndicator:Q},i),Object(M.a)(a.children).map(function(de,ke){return e.renderMenuItem(de,ke,v||"0-menu-")}))}}]),h}(o.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:me};var Ua=Object(N.b)()(La),ea=Ua,Rn=n("Kwbf");function ca(r,c,h){var s=r.prefixCls,e=r.motion,a=r.defaultMotions,t=a===void 0?{}:a,i=r.openAnimation,u=r.openTransitionName,v=c.switchingModeFromInline;if(e)return e;if(Object(_.a)(i)==="object"&&i)Object(Rn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(s,"-open-").concat(i)};if(u)return{motionName:u};var f=t[h];return f||(v?null:t.other)}var ka=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(s){var e;Object(U.a)(this,h),e=c.call(this,s),e.onSelect=function(i){var u=Object(p.a)(e),v=u.props;if(v.selectable){var f=e.store.getState(),C=f.selectedKeys,P=i.key;v.multiple?C=C.concat([P]):C=[P],"selectedKeys"in v||e.store.setState({selectedKeys:C}),v.onSelect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:C}))}},e.onClick=function(i){var u=e.getRealMenuMode(),v=Object(p.a)(e),f=v.store,C=v.props.onOpenChange;u!=="inline"&&!("openKeys"in e.props)&&(f.setState({openKeys:[]}),C([])),e.props.onClick(i)},e.onKeyDown=function(i,u){e.innerMenu.getWrappedInstance().onKeyDown(i,u)},e.onOpenChange=function(i){var u=Object(p.a)(e),v=u.props,f=e.store.getState().openKeys.concat(),C=!1,P=function(J){var de=!1;if(J.open)de=f.indexOf(J.key)===-1,de&&f.push(J.key);else{var ke=f.indexOf(J.key);de=ke!==-1,de&&f.splice(ke,1)}C=C||de};Array.isArray(i)?i.forEach(P):P(i),C&&("openKeys"in e.props||e.store.setState({openKeys:f}),v.onOpenChange(f))},e.onDeselect=function(i){var u=Object(p.a)(e),v=u.props;if(v.selectable){var f=e.store.getState().selectedKeys.concat(),C=i.key,P=f.indexOf(C);P!==-1&&f.splice(P,1),"selectedKeys"in v||e.store.setState({selectedKeys:f}),v.onDeselect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:f}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var u=e.props.onMouseEnter;u&&u(i)},e.onTransitionEnd=function(i){var u=i.propertyName==="width"&&i.target===i.currentTarget,v=i.target.className,f=Object.prototype.toString.call(v)==="[object SVGAnimatedString]"?v.animVal:v,C=i.propertyName==="font-size"&&f.indexOf("anticon")>=0;(u||C)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var a=s.defaultSelectedKeys,t=s.defaultOpenKeys;return"selectedKeys"in s&&(a=s.selectedKeys||[]),"openKeys"in s&&(t=s.openKeys||[]),e.store=Object(N.c)({selectedKeys:a,openKeys:t,activeKey:{"0-menu-":qn(s,s.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:s,inlineOpenKeys:[],store:e.store},e}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var a=this.props,t=a.siderCollapsed,i=a.inlineCollapsed,u=a.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&u([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,a=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,a=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return a&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,a=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:a}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(S.a)({},Object(D.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(S.a)(Object(S.a)({},e),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,a)}),delete e.openAnimation,delete e.openTransitionName,o.createElement(N.a,{store:this.store},o.createElement(ea,Object(w.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var t=a.prevProps,i=a.store,u=i.getState(),v={},f={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(f.switchingModeFromInline=!0),"openKeys"in e?v.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(f.switchingModeFromInline=!0,f.inlineOpenKeys=u.openKeys,v.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(v.openKeys=a.inlineOpenKeys,f.inlineOpenKeys=[])),Object.keys(v).length&&i.setState(v),f}}]),h}(o.Component);ka.defaultProps={selectable:!0,onClick:me,onSelect:me,onOpenChange:me,onDeselect:me,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Sn=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){var s;return Object(U.a)(this,h),s=c.apply(this,arguments),s.onKeyDown=function(e){var a=e.keyCode;return a===E.a.ENTER?(s.onClick(e),!0):void 0},s.onMouseLeave=function(e){var a=s.props,t=a.eventKey,i=a.onItemHover,u=a.onMouseLeave;i({key:t,hover:!1}),u({key:t,domEvent:e})},s.onMouseEnter=function(e){var a=s.props,t=a.eventKey,i=a.onItemHover,u=a.onMouseEnter;i({key:t,hover:!0}),u({key:t,domEvent:e})},s.onClick=function(e){var a=s.props,t=a.eventKey,i=a.multiple,u=a.onClick,v=a.onSelect,f=a.onDeselect,C=a.isSelected,P={key:t,keyPath:[t],item:Object(p.a)(s),domEvent:e};u(P),i?C?f(P):v(P):C||v(P)},s.saveNode=function(e){s.node=e},s}return Object(W.a)(h,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,a=Object(S.a)({},this.props),t=Y()(this.getPrefixCls(),a.className,(e={},Object(x.a)(e,this.getActiveClassName(),!a.disabled&&a.active),Object(x.a)(e,this.getSelectedClassName(),a.isSelected),Object(x.a)(e,this.getDisabledClassName(),a.disabled),e)),i=Object(S.a)(Object(S.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:t,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?i=Object(S.a)(Object(S.a)({},i),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(i.role="none");var u={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},v=Object(S.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?v.paddingRight=a.inlineIndent*a.level:v.paddingLeft=a.inlineIndent*a.level),xt.forEach(function(C){return delete a[C]}),delete a.direction;var f=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(f=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(w.a)({},Object(D.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,u,{style:v,ref:this.saveNode}),a.children,f)}}]),h}(o.Component);Sn.isMenuItem=!0,Sn.defaultProps={onSelect:me,onMouseEnter:me,onMouseLeave:me,manualRef:me};var da=Object(N.b)(function(r,c){var h=r.activeKey,s=r.selectedKeys,e=c.eventKey,a=c.subMenuKey;return{active:h[a]===e,isSelected:Array.isArray(s)?s.indexOf(e)!==-1:s===e}})(Sn),fa=da,ma=function(r){Object(b.a)(h,r);var c=Object(l.a)(h);function h(){var s;return Object(U.a)(this,h),s=c.apply(this,arguments),s.renderInnerMenuItem=function(e){var a=s.props,t=a.renderMenuItem,i=a.index;return t(e,i,s.props.subMenuKey)},s}return Object(W.a)(h,[{key:"render",value:function(){var e=Object(w.a)({},this.props),a=e.className,t=a===void 0?"":a,i=e.rootPrefixCls,u="".concat(i,"-item-group-title"),v="".concat(i,"-item-group-list"),f=e.title,C=e.children;return xt.forEach(function(P){return delete e[P]}),delete e.direction,o.createElement("li",Object(w.a)({},e,{onClick:function(Q){return Q.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),o.createElement("div",{className:u,title:typeof f=="string"?f:void 0},f),o.createElement("ul",{className:v},o.Children.map(C,this.renderInnerMenuItem)))}}]),h}(o.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(c){var h=c.className,s=c.rootPrefixCls,e=c.style;return o.createElement("li",{className:"".concat(h," ").concat(s,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,ha=n("eDIo");function eo(r,c){var h=r.prefixCls,s=r.editable,e=r.locale,a=r.style;return!s||s.showAdd===!1?null:o.createElement("button",{ref:c,type:"button",className:"".concat(h,"-nav-add"),style:a,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){s.onEdit("add",{event:i})}},s.addIcon||"+")}var ta=o.forwardRef(eo);function to(r,c){var h=r.prefixCls,s=r.id,e=r.tabs,a=r.locale,t=r.mobile,i=r.moreIcon,u=i===void 0?"More":i,v=r.moreTransitionName,f=r.style,C=r.className,P=r.editable,Q=r.tabBarGutter,J=r.rtl,de=r.onTabClick,ke=Object(o.useState)(!1),Je=Object(T.a)(ke,2),Ve=Je[0],et=Je[1],Qe=Object(o.useState)(null),$e=Object(T.a)(Qe,2),Ge=$e[0],mt=$e[1],at="".concat(s,"-more-popup"),Ut="".concat(h,"-dropdown"),yt=Ge!==null?"".concat(at,"-").concat(Ge):null,Le=a==null?void 0:a.dropdownAriaLabel,_e=o.createElement(Ka,{onClick:function(Ot){var At=Ot.key,$t=Ot.domEvent;de(At,$t),et(!1)},id:at,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[Ge],"aria-label":Le!==void 0?Le:"expanded dropdown"},e.map(function(ht){return o.createElement(fa,{key:ht.key,id:"".concat(at,"-").concat(ht.key),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(ht.key),disabled:ht.disabled},ht.tab)}));function ot(ht){for(var Ot=e.filter(function(on){return!on.disabled}),At=Ot.findIndex(function(on){return on.key===Ge})||0,$t=Ot.length,an=0;an<$t;an+=1){At=(At+ht+$t)%$t;var It=Ot[At];if(!It.disabled){mt(It.key);return}}}function it(ht){var Ot=ht.which;if(!Ve){[E.a.DOWN,E.a.SPACE,E.a.ENTER].includes(Ot)&&(et(!0),ht.preventDefault());return}switch(Ot){case E.a.UP:ot(-1),ht.preventDefault();break;case E.a.DOWN:ot(1),ht.preventDefault();break;case E.a.ESC:et(!1);break;case E.a.SPACE:case E.a.ENTER:Ge!==null&&de(Ge,ht);break}}Object(o.useEffect)(function(){var ht=document.getElementById(yt);ht&&ht.scrollIntoView&&ht.scrollIntoView(!1)},[Ge]),Object(o.useEffect)(function(){Ve||mt(null)},[Ve]);var Re=Object(x.a)({},J?"marginLeft":"marginRight",Q);e.length||(Re.visibility="hidden",Re.order=1);var pt=Y()(Object(x.a)({},"".concat(Ut,"-rtl"),J)),Dt=t?null:o.createElement(ha.a,{prefixCls:Ut,overlay:_e,trigger:["hover"],visible:Ve,transitionName:v,onVisibleChange:et,overlayClassName:pt,mouseEnterDelay:.1,mouseLeaveDelay:.1},o.createElement("button",{type:"button",className:"".concat(h,"-nav-more"),style:Re,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":at,id:"".concat(s,"-more"),"aria-expanded":Ve,onKeyDown:it},u));return o.createElement("div",{className:Y()("".concat(h,"-nav-operations"),C),style:f,ref:c},Dt,o.createElement(ta,{prefixCls:h,locale:a,editable:P}))}var no=o.forwardRef(to),va=Object(o.createContext)(null),ut=.1,ct=.01,Lt=20,Qt=Math.pow(.995,Lt);function Fn(){var r=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(r.substr(0,4)))}function Fa(r,c){var h=Object(o.useState)(),s=Object(T.a)(h,2),e=s[0],a=s[1],t=Object(o.useState)(0),i=Object(T.a)(t,2),u=i[0],v=i[1],f=Object(o.useState)(0),C=Object(T.a)(f,2),P=C[0],Q=C[1],J=Object(o.useState)(),de=Object(T.a)(J,2),ke=de[0],Je=de[1],Ve=Object(o.useRef)();function et(Le){var _e=Le.touches[0],ot=_e.screenX,it=_e.screenY;a({x:ot,y:it}),window.clearInterval(Ve.current)}function Qe(Le){if(!e)return;Le.preventDefault();var _e=Le.touches[0],ot=_e.screenX,it=_e.screenY;a({x:ot,y:it});var Re=ot-e.x,pt=it-e.y;c(Re,pt);var Dt=Date.now();v(Dt),Q(Dt-u),Je({x:Re,y:pt})}function $e(){if(!e)return;if(a(null),Je(null),ke){var Le=ke.x/P,_e=ke.y/P,ot=Math.abs(Le),it=Math.abs(_e);if(Math.max(ot,it)pt?(it=_e,at.current="x"):(it=ot,at.current="y");var Dt=Date.now();Dt-Ge.current>100&&(mt.current=!1),(c(-it,-it)||mt.current)&&(Le.preventDefault(),mt.current=!0),Ge.current=Dt}var yt=Object(o.useRef)(null);yt.current={onTouchStart:et,onTouchMove:Qe,onTouchEnd:$e,onWheel:Ut},o.useEffect(function(){function Le(Re){yt.current.onTouchStart(Re)}function _e(Re){yt.current.onTouchMove(Re)}function ot(Re){yt.current.onTouchEnd(Re)}function it(Re){yt.current.onWheel(Re)}return document.addEventListener("touchmove",_e,{passive:!1}),document.addEventListener("touchend",ot,{passive:!1}),r.current.addEventListener("touchstart",Le,{passive:!1}),r.current.addEventListener("wheel",it),function(){document.removeEventListener("touchmove",_e),document.removeEventListener("touchend",ot)}},[])}function ba(){var r=Object(o.useRef)(new Map);function c(s){return r.current.has(s)||r.current.set(s,o.createRef()),r.current.get(s)}function h(s){r.current.delete(s)}return[c,h]}function za(r,c){var h=o.useRef(r),s=o.useState({}),e=Object(T.a)(s,2),a=e[1];function t(i){var u=typeof i=="function"?i(h.current):i;u!==h.current&&c(u,h.current),h.current=u,a({})}return[h.current,t]}var Wa=function(c){var h=c.position,s=c.prefixCls,e=c.extra;if(!e)return null;var a,t=e;return h==="right"&&(a=t.right||!t.left&&t||null),h==="left"&&(a=t.left||null),a?o.createElement("div",{className:"".concat(s,"-extra-content")},a):null};function zo(r,c){var h,s=o.useContext(va),e=s.prefixCls,a=s.tabs,t=r.className,i=r.style,u=r.id,v=r.animated,f=r.activeKey,C=r.rtl,P=r.extra,Q=r.editable,J=r.locale,de=r.tabPosition,ke=r.tabBarGutter,Je=r.children,Ve=r.onTabClick,et=r.onTabScroll,Qe=Object(o.useRef)(),$e=Object(o.useRef)(),Ge=Object(o.useRef)(),mt=Object(o.useRef)(),at=ba(),Ut=Object(T.a)(at,2),yt=Ut[0],Le=Ut[1],_e=de==="top"||de==="bottom",ot=za(0,function(Ct,rt){_e&&et&&et({direction:Ct>rt?"left":"right"})}),it=Object(T.a)(ot,2),Re=it[0],pt=it[1],Dt=za(0,function(Ct,rt){!_e&&et&&et({direction:Ct>rt?"top":"bottom"})}),ht=Object(T.a)(Dt,2),Ot=ht[0],At=ht[1],$t=Object(o.useState)(0),an=Object(T.a)($t,2),It=an[0],on=an[1],gn=Object(o.useState)(0),ln=Object(T.a)(gn,2),un=ln[0],Kt=ln[1],qt=Object(o.useState)(0),Gt=Object(T.a)(qt,2),Wt=Gt[0],Dn=Gt[1],Pn=Object(o.useState)(0),zn=Object(T.a)(Pn,2),Nt=zn[0],Cn=zn[1],Wn=Object(o.useState)(null),Pt=Object(T.a)(Wn,2),Et=Pt[0],Yt=Pt[1],Xo=Object(o.useState)(null),bo=Object(T.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(o.useState)(0),go=Object(T.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(o.useState)(0),Eo=Object(T.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=j(new Map),yo=Object(T.a)(er,2),tr=yo[0],nr=yo[1],Ba=ne(a,tr,It),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;_e?C?(ga=0,Ea=Math.max(0,It-Et)):(ga=Math.min(0,Et-It),Ea=0):(ga=Math.min(0,na-un),Ea=0);function ao(Ct){return CtEa?[Ea,!1]:[Ct,!0]}var Oo=Object(o.useRef)(),ar=Object(o.useState)(),xo=Object(T.a)(ar,2),oo=xo[0],Mo=xo[1];function ro(){Mo(Date.now())}function io(){window.clearTimeout(Oo.current)}Fa(Qe,function(Ct,rt){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var Ma=ao(xa+Oa),aa=Object(T.a)(Ma,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(_e){if(Et>=It)return Bt;cn(pt,Ct)}else{if(na>=un)return Bt;cn(At,rt)}return io(),ro(),Bt}),Object(o.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){Mo(0)},100)),io},[oo]);function jo(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,rt=Ba.get(Ct);if(!rt)return;if(_e){var Bt=Re;C?rt.rightRe+Et&&(Bt=rt.right+rt.width-Et):rt.left<-Re?Bt=-rt.left:rt.left+rt.width>-Re+Et&&(Bt=-(rt.left+rt.width-Et)),At(0),pt(ao(Bt)[0])}else{var cn=Ot;rt.top<-Ot?cn=-rt.top:rt.top+rt.height>-Ot+na&&(cn=-(rt.top+rt.height-na)),pt(0),At(ao(cn)[0])}}var or=fe(Ba,{width:Et,height:na,left:Re,top:Ot},{width:Wt,height:Nt},{width:Yo,height:Zo},Object(S.a)(Object(S.a)({},r),{},{tabs:a})),To=Object(T.a)(or,2),rr=To[0],ir=To[1],sr=a.map(function(Ct){var rt=Ct.key;return o.createElement(I,{id:u,prefixCls:e,key:rt,rtl:C,tab:Ct,closable:Ct.closable,editable:Q,active:rt===f,tabPosition:de,tabBarGutter:ke,renderWrapper:Je,removeAriaLabel:J==null?void 0:J.removeAriaLabel,ref:yt(rt),onClick:function(cn){Ve(rt,cn)},onRemove:function(){Le(rt)},onFocus:function(){jo(rt),ro(),C||(Qe.current.scrollLeft=0),Qe.current.scrollTop=0}})}),so=B(function(){var Ct,rt,Bt,cn,Ca,Oa,xa,Ma,aa,co=((Ct=Qe.current)===null||Ct===void 0?void 0:Ct.offsetWidth)||0,fo=((rt=Qe.current)===null||rt===void 0?void 0:rt.offsetHeight)||0,_o=((Bt=mt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=mt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,mr=((Ca=Ge.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=Ge.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(_o),qo(Lo);var Uo=(((xa=$e.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-_o,ko=(((Ma=$e.current)===null||Ma===void 0?void 0:Ma.offsetHeight)||0)-Lo;on(Uo),Kt(ko);var Io=(aa=Ge.current)===null||aa===void 0?void 0:aa.className.includes(Co);Dn(Uo-(Io?0:mr)),Cn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Fo=hr.key,ja=yt(Fo).current;ja&&Ko.set(Fo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),No=[].concat(Object(se.a)(lr),Object(se.a)(ur)),cr=Object(o.useState)(),Ro=Object(T.a)(cr,2),dr=Ro[0],fr=Ro[1],wn=Ba.get(f),So=Object(o.useRef)();function Do(){V.a.cancel(So.current)}Object(o.useEffect)(function(){var Ct={};return wn&&(_e?(C?Ct.right=wn.right:Ct.left=wn.left,Ct.width=wn.width):(Ct.top=wn.top,Ct.height=wn.height)),Do(),So.current=V()(function(){fr(Ct)}),Do},[wn,_e,C]),Object(o.useEffect)(function(){jo()},[f,wn,Ba,_e]),Object(o.useEffect)(function(){so()},[C,ke,f,a.map(function(Ct){return Ct.key}).join("_")]);var Po=!!No.length,ya="".concat(e,"-nav-wrap"),lo,uo,wo,Ao;return _e?C?(uo=Re>0,lo=Re+Et1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(ne.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var X=ne[0];if(m.isValidElement(X)&&Object(L.c)(X)){var fe=X.ref;ne[0]=m.cloneElement(X,{ref:Object(L.a)(fe,this.setChildNode)})}return ne.length===1?ne[0]:ne.map(function(w,U){return!m.isValidElement(w)||"key"in w&&w.key!==null?w:m.cloneElement(w,{key:"".concat(ee,"-").concat(U)})})}}]),F}(m.Component);B.displayName="ResizeObserver",ie.a=B},wCXF:function(ze,ie,n){"use strict";n.d(ie,"a",function(){return lt});var x=n("rePB"),T=n("VTBJ"),be=n("KQm4"),S=n("U8pU"),o=n("ODXe"),m=n("q1tI"),Y=n("TSYQ"),M=n.n(Y),A=n("Gytx"),se=n.n(A),L=n("Kwbf"),V=n("t23M"),ee=n("qx4F"),B=n("6eGT"),j=n("IBYe"),E=n("Ff2n"),F=n("c+Xe"),I=n("fyJ8"),te=n("biw7");function ne(O,G,K,pe,xe){var he=K[O]||{},q=K[G]||{},Z,oe;he.fixed==="left"?Z=pe.left[O]:q.fixed==="right"&&(oe=pe.right[G]);var Ce=!1,re=!1,ge=!1,je=!1,Ne=K[G+1],Ue=K[O-1];if(xe==="rtl"){if(Z!==void 0){var Ke=Ue&&Ue.fixed==="left";je=!Ke}else if(oe!==void 0){var He=Ne&&Ne.fixed==="right";ge=!He}}else if(Z!==void 0){var tt=Ne&&Ne.fixed==="left";Ce=!tt}else if(oe!==void 0){var We=Ue&&Ue.fixed==="right";re=!We}return{fixLeft:Z,fixRight:oe,lastFixLeft:Ce,firstFixRight:re,lastFixRight:ge,firstFixLeft:je,isSticky:pe.isSticky}}var X=n("sR1s");function fe(O){var G=O.cells,K=O.stickyOffsets,pe=O.flattenColumns,xe=O.rowComponent,he=O.cellComponent,q=O.onHeaderRow,Z=O.index,oe=m.useContext(te.a),Ce=oe.prefixCls,re=oe.direction,ge;q&&(ge=q(G.map(function(Ne){return Ne.column}),Z));var je=Object(X.a)(G.map(function(Ne){return Ne.column}));return m.createElement(xe,Object.assign({},ge),G.map(function(Ne,Ue){var Ke=Ne.column,He=ne(Ne.colStart,Ne.colEnd,pe,K,re),tt;return Ke&&Ke.onHeaderCell&&(tt=Ne.column.onHeaderCell(Ke)),m.createElement(I.a,Object.assign({},Ne,{ellipsis:Ke.ellipsis,align:Ke.align,component:he,prefixCls:Ce,key:je[Ue]},He,{additionalProps:tt,rowType:"header"}))}))}fe.displayName="HeaderRow";var w=fe;function U(O){var G=[];function K(q,Z){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;G[oe]=G[oe]||[];var Ce=Z,re=q.filter(Boolean).map(function(ge){var je={key:ge.key,className:ge.className||"",children:ge.title,column:ge,colStart:Ce},Ne=1,Ue=ge.children;return Ue&&Ue.length>0&&(Ne=K(Ue,Ce,oe+1).reduce(function(Ke,He){return Ke+He},0),je.hasSubColumns=!0),"colSpan"in ge&&(Ne=ge.colSpan),"rowSpan"in ge&&(je.rowSpan=ge.rowSpan),je.colSpan=Ne,je.colEnd=je.colStart+Ne-1,G[oe].push(je),Ce+=Ne,Ne});return re}K(O,0);for(var pe=G.length,xe=function(Z){G[Z].forEach(function(oe){!("rowSpan"in oe)&&!oe.hasSubColumns&&(oe.rowSpan=pe-Z)})},he=0;he=0;Z-=1){var oe=G[Z],Ce=K&&K[Z],re=Ce&&Ce[b.a];(oe||re||q)&&(xe.unshift(m.createElement("col",Object.assign({key:Z,style:{width:oe,minWidth:oe}},re))),q=!0)}return m.createElement("colgroup",null,xe)}var N=l;function D(O,G){return Object(m.useMemo)(function(){for(var K=[],pe=0;pe1?Jt-1:0),dn=1;dn=ge&&(St=ge-je),q({scrollLeft:St/ge*(re+2)}),We.current.x=Ye.pageX},Tt=function(){var Ye=Object(xt.b)(he.current).top,wt=Ye+he.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;wt-Object(ee.a)()<=Ht||Ye>=Ht-Z?tt(function(Xt){return Object(T.a)(Object(T.a)({},Xt),{},{isHiddenScrollBar:!0})}):tt(function(Xt){return Object(T.a)(Object(T.a)({},Xt),{},{isHiddenScrollBar:!1})})},Mt=function(Ye){tt(function(wt){return Object(T.a)(Object(T.a)({},wt),{},{scrollLeft:Ye/re*ge||0})})};return m.useImperativeHandle(K,function(){return{setScrollLeft:Mt}}),m.useEffect(function(){var bt=Object(dt.a)(document.body,"mouseup",Ft,!1),Ye=Object(dt.a)(document.body,"mousemove",Vt,!1);return Tt(),function(){bt.remove(),Ye.remove()}},[je,vt]),m.useEffect(function(){var bt=Object(dt.a)(window,"scroll",Tt,!1),Ye=Object(dt.a)(window,"resize",Tt,!1);return function(){bt.remove(),Ye.remove()}},[]),m.useEffect(function(){He.isHiddenScrollBar||tt(function(bt){var Ye,wt;return Object(T.a)(Object(T.a)({},bt),{},{scrollLeft:he.current.scrollLeft/((Ye=he.current)===null||Ye===void 0?void 0:Ye.scrollWidth)*((wt=he.current)===null||wt===void 0?void 0:wt.clientWidth)})})},[He.isHiddenScrollBar]),re<=ge||!je||He.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(ee.a)(),width:ge,bottom:Z},className:"".concat(Ce,"-sticky-scroll")},m.createElement("div",{onMouseDown:nt,ref:Ne,className:M()("".concat(Ce,"-sticky-scroll-bar"),Object(x.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(je,"px"),transform:"translate3d(".concat(He.scrollLeft,"px, 0, 0)")}}))},De=m.forwardRef(ft);function Oe(O,G){return m.useMemo(function(){var K=!!O;return{isSticky:K,stickyClassName:K?"".concat(G,"-sticky-header"):"",offsetHeader:Object(S.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(S.a)(O)==="object"&&O.offsetScroll||0}},[O,G])}var qe=[],st={},lt="rc-table-internal-hook",Fe=m.memo(function(O){var G=O.children;return G},function(O,G){return se()(O.props,G.props)?O.pingLeft!==G.pingLeft||O.pingRight!==G.pingRight:!1});function Xe(O){var G,K=O.prefixCls,pe=O.className,xe=O.rowClassName,he=O.style,q=O.data,Z=O.rowKey,oe=O.scroll,Ce=O.tableLayout,re=O.direction,ge=O.title,je=O.footer,Ne=O.summary,Ue=O.id,Ke=O.showHeader,He=O.components,tt=O.emptyText,We=O.onRow,kt=O.onHeaderRow,gt=O.internalHooks,vt=O.transformColumns,jt=O.internalRefs,Ft=O.sticky,nt=q||qe,Vt=!!nt.length,Tt=m.useState(0),Mt=Object(o.a)(Tt,2),bt=Mt[0],Ye=Mt[1];m.useEffect(function(){Ye(Object(ee.a)())});var wt=m.useMemo(function(){return Object(X.c)(He,{})},[He]),Ht=m.useCallback(function(ut,ct){return Object(X.b)(wt,ut)||ct},[wt]),Xt=m.useMemo(function(){return typeof Z=="function"?Z:function(ut){var ct=ut&&ut[Z];return ct}},[Z]),St=Object(b.c)(O),An=St.expandIcon,_n=St.expandedRowKeys,Bn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Vn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,En=St.expandedRowClassName,Un=St.childrenColumnName,Mn=St.indentSize,vn=An||Ze,jn=Un||"children",Hn=m.useMemo(function(){return hn?"row":O.expandable&>===lt&&O.expandable.__PARENT_RENDER_ICON__||nt.some(function(ut){return ut&&Object(S.a)(ut)==="object"&&ut[jn]})?"nest":!1},[!!hn,nt]),Tn=m.useState(function(){return Bn||(rn?Be(nt,Xt,jn):[])}),zt=Object(o.a)(Tn,2),Zt=zt[0],sn=zt[1],Jt=m.useMemo(function(){return new Set(_n||Zt||[])},[_n,Zt]),tn=m.useCallback(function(ut){var ct=Xt(ut,nt.indexOf(ut)),Lt,Qt=Jt.has(ct);Qt?(Jt.delete(ct),Lt=Object(be.a)(Jt)):Lt=[].concat(Object(be.a)(Jt),[ct]),sn(Lt),On&&On(!Qt,ut),xn&&xn(Lt)},[Xt,Jt,nt,On,xn]),dn=m.useState(0),Xn=Object(o.a)(dn,2),kn=Xn[0],$n=Xn[1],Ta=Object(ce.b)(Object(T.a)(Object(T.a)(Object(T.a)({},O),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:re}),gt===lt?vt:null),Na=Object(o.a)(Ta,2),Gn=Na[0],_t=Na[1],Yn=m.useMemo(function(){return{columns:Gn,flattenColumns:_t}},[Gn,_t]),Jn=m.useRef(),Ra=m.useRef(),fn=m.useRef(),Va=m.useState(!1),Sa=Object(o.a)(Va,2),oa=Sa[0],Ha=Sa[1],Xa=m.useState(!1),ra=Object(o.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=z(new Map),Da=Object(o.a)(Ga,2),Ya=Da[0],Ja=Da[1],bn=Object(X.a)(_t),ia=bn.map(function(ut){return Ya.get(ut)}),Pa=m.useMemo(function(){return ia},[ia.join("_")]),sa=Pe(Pa,_t.length,re),nn=oe&&Object(X.d)(oe.y),mn=oe&&Object(X.d)(oe.x),pn=mn&&_t.some(function(ut){var ct=ut.fixed;return ct}),la=m.useRef(),In=Oe(Ft,K),Kn=In.isSticky,wa=In.offsetHeader,Qa=In.offsetScroll,Aa=In.stickyClassName,ua,Zn,Nn;nn&&(Zn={overflowY:"scroll",maxHeight:oe.y}),mn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Nn={width:oe.x===!0?"auto":oe.x,minWidth:"100%"});var yn=m.useCallback(function(ut,ct){Ja(function(Lt){var Qt=new Map(Lt);return Qt.set(ut,ct),Qt})},[]),qn=H(null),_a=Object(o.a)(qn,2),La=_a[0],Ua=_a[1];function ea(ut,ct){if(!ct)return;typeof ct=="function"?ct(ut):ct.scrollLeft!==ut&&(ct.scrollLeft=ut)}var Rn=function(ct){var Lt=ct.currentTarget,Qt=ct.scrollLeft,Fn=typeof Qt=="number"?Qt:Lt.scrollLeft,Fa=Lt||st;if(!Ua()||Ua()===Fa){var ba;La(Fa),ea(Fn,Ra.current),ea(Fn,fn.current),ea(Fn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Lt){var za=Lt.scrollWidth,Wa=Lt.clientWidth;Ha(Fn>0),$a(Fn0?[].concat(Object(T.a)(E),Object(T.a)(L(ne).map(function(X){return Object(be.a)({fixed:te},X)}))):[].concat(Object(T.a)(E),[Object(be.a)(Object(be.a)({},F),{},{fixed:te})])},[])}function V(j){for(var E=!0,F=0;F=0;ne-=1){var X=j[ne];if(te&&X.fixed!=="right")te=!1;else if(!te&&X.fixed==="right"){Object(Y.a)(!1,"Index ".concat(ne+1," of `columns` missing `fixed='right'` prop."));break}}}function ee(j){return j.map(function(E){var F=E.fixed,I=Object(S.a)(E,["fixed"]),te=F;return F==="left"?te="right":F==="right"&&(te="left"),Object(be.a)({fixed:te},I)})}function B(j,E){var F=j.prefixCls,I=j.columns,te=j.children,ne=j.expandable,X=j.expandedKeys,fe=j.getRowKey,w=j.onTriggerExpand,U=j.expandIcon,W=j.rowExpandable,p=j.expandIconColumnIndex,b=j.direction,l=j.expandRowByClick,N=o.useMemo(function(){return I||se(te)},[I,te]),D=o.useMemo(function(){if(ne){var g,_=p||0,y=N[_],$=(g={},Object(x.a)(g,A.a,{className:"".concat(F,"-expand-icon-col")}),Object(x.a)(g,"title",""),Object(x.a)(g,"fixed",y?y.fixed:null),Object(x.a)(g,"className","".concat(F,"-row-expand-icon-cell")),Object(x.a)(g,"render",function(k,ye,Te){var Se=fe(ye,Te),we=X.has(Se),ue=W?W(ye):!0,ce=U({prefixCls:F,expanded:we,expandable:ue,record:ye,onExpand:w});return l?o.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},ce):ce}),g),le=N.slice();return _>=0&&le.splice(_,0,$),le}return N},[ne,N,fe,X,U,b]),R=o.useMemo(function(){var g=D;return E&&(g=E(g)),g.length||(g=[{render:function(){return null}}]),g},[E,D,b]),d=o.useMemo(function(){return b==="rtl"?ee(L(R)):L(R)},[R,b]);return[R,d]}ie.b=B},"y0+3":function(ze,ie,n){"use strict";n.d(ie,"a",function(){return L}),n.d(ie,"b",function(){return ee});var x=/margin|padding|width|height|max|min|offset/,T={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function S(B){return B.nodeType===1?B.ownerDocument.defaultView.getComputedStyle(B,null):{}}function o(B,j,E){if(j=j.toLowerCase(),E==="auto"){if(j==="height")return B.offsetHeight;if(j==="width")return B.offsetWidth}return j in T||(T[j]=x.test(j)),T[j]?parseFloat(E)||0:E}function m(B,j){var E=arguments.length,F=S(B);return j=be[j]?"cssFloat"in B.style?"cssFloat":"styleFloat":j,E===1?F:o(B,j,F[j]||B.style[j])}function Y(B,j,E){var F=arguments.length;if(j=be[j]?"cssFloat"in B.style?"cssFloat":"styleFloat":j,F===3)return typeof E=="number"&&x.test(j)&&(E="".concat(E,"px")),B.style[j]=E,E;for(var I in j)j.hasOwnProperty(I)&&Y(B,I,j[I]);return S(B)}function M(B){return B===document.body?document.documentElement.clientWidth:B.offsetWidth}function A(B){return B===document.body?window.innerHeight||document.documentElement.clientHeight:B.offsetHeight}function se(){var B=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),j=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:B,height:j}}function L(){var B=document.documentElement.clientWidth,j=window.innerHeight||document.documentElement.clientHeight;return{width:B,height:j}}function V(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ee(B){var j=B.getBoundingClientRect(),E=document.documentElement;return{left:j.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:j.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}},zMNv:function(ze,ie,n){ze.exports={normThresholdsModalWrap:"normThresholdsModalWrap___4A9MA",normThresholdsContent:"normThresholdsContent___2DEuv",tips:"tips___25ahZ",tableCotainer:"tableCotainer___3kZzb",name:"name___1J_5P",tag:"tag___st2kI"}}}]); diff --git a/p__Innovation__MyDataSet.a80b0be6.async.js b/p__Innovation__MyDataSet.a80b0be6.async.js index 2e69e277cd..ebde023fd9 100644 --- a/p__Innovation__MyDataSet.a80b0be6.async.js +++ b/p__Innovation__MyDataSet.a80b0be6.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[158,6,8,10],{"+QRC":function(Ge,xe,a){"use strict";var k=a("E9nw"),R={"text/plain":"Text","text/html":"Url",default:"Text"},Pe="Copy to clipboard: #{key}, Enter";function z(p){var se=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,se)}function i(p,se){var be,Y,X,le,Te,je,fe=!1;se||(se={}),be=se.debug||!1;try{X=k(),le=document.createRange(),Te=document.getSelection(),je=document.createElement("span"),je.textContent=p,je.style.all="unset",je.style.position="fixed",je.style.top=0,je.style.clip="rect(0, 0, 0, 0)",je.style.whiteSpace="pre",je.style.webkitUserSelect="text",je.style.MozUserSelect="text",je.style.msUserSelect="text",je.style.userSelect="text",je.addEventListener("copy",function(w){if(w.stopPropagation(),se.format)if(w.preventDefault(),typeof w.clipboardData=="undefined"){be&&console.warn("unable to use e.clipboardData"),be&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var G=R[se.format]||R.default;window.clipboardData.setData(G,p)}else w.clipboardData.clearData(),w.clipboardData.setData(se.format,p);se.onCopy&&(w.preventDefault(),se.onCopy(w.clipboardData))}),document.body.appendChild(je),le.selectNodeContents(je),Te.addRange(le);var K=document.execCommand("copy");if(!K)throw new Error("copy command was unsuccessful");fe=!0}catch(w){be&&console.error("unable to copy using execCommand: ",w),be&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(se.format||"text",p),se.onCopy&&se.onCopy(window.clipboardData),fe=!0}catch(G){be&&console.error("unable to copy using clipboardData: ",G),be&&console.error("falling back to prompt"),Y=z("message"in se?se.message:Pe),window.prompt(Y,p)}}finally{Te&&(typeof Te.removeRange=="function"?Te.removeRange(le):Te.removeAllRanges()),je&&document.body.removeChild(je),X()}return fe}Ge.exports=i},"/jad":function(Ge,xe,a){Ge.exports={colorBlue:"colorBlue___FpSkV",repeatedName:"repeatedName___2XphI"}},"6+eU":function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return s});var k=a("wx14"),R=a("rePB"),Pe=a("VTBJ"),z=a("1OyB"),i=a("vuIU"),p=a("Ji7U"),se=a("LK+K"),be=a("q1tI"),Y=a.n(be),X=a("TSYQ"),le=a.n(X),Te=function(H){var v,j="".concat(H.rootPrefixCls,"-item"),h=le()(j,"".concat(j,"-").concat(H.page),(v={},Object(R.a)(v,"".concat(j,"-active"),H.active),Object(R.a)(v,H.className,!!H.className),Object(R.a)(v,"".concat(j,"-disabled"),!H.page),v)),B=function(){H.onClick(H.page)},V=function(Re){H.onKeyPress(Re,H.onClick,H.page)};return Y.a.createElement("li",{title:H.showTitle?H.page:null,className:h,onClick:B,onKeyPress:V,tabIndex:"0"},H.itemRender(H.page,"page",Y.a.createElement("a",{rel:"nofollow"},H.page)))},je=Te,fe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},K=function(I){Object(p.a)(v,I);var H=Object(se.a)(v);function v(){var j;Object(z.a)(this,v);for(var h=arguments.length,B=new Array(h),V=0;V=0||q.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;j.setState({goInputText:""}),L(j.getValidValue())},j.go=function(q){var Re=j.state.goInputText;if(Re==="")return;(q.keyCode===fe.ENTER||q.type==="click")&&(j.setState({goInputText:""}),j.props.quickGo(j.getValidValue()))},j}return Object(i.a)(v,[{key:"getValidValue",value:function(){var h=this.state,B=h.goInputText,V=h.current;return!B||isNaN(B)?V:Number(B)}},{key:"getPageSizeOptions",value:function(){var h=this.props,B=h.pageSize,V=h.pageSizeOptions;return V.some(function(q){return q.toString()===B.toString()})?V:V.concat([B.toString()]).sort(function(q,Re){var oe=isNaN(Number(q))?0:Number(q),L=isNaN(Number(Re))?0:Number(Re);return oe-L})}},{key:"render",value:function(){var h=this,B=this.props,V=B.pageSize,q=B.locale,Re=B.rootPrefixCls,oe=B.changeSize,L=B.quickGo,W=B.goButton,_=B.selectComponentClass,y=B.buildOptionText,U=B.selectPrefixCls,M=B.disabled,A=this.state.goInputText,Q="".concat(Re,"-options"),ie=_,ue=null,J=null,te=null;if(!oe&&!L)return null;var ce=this.getPageSizeOptions();if(oe&&ie){var ne=ce.map(function($,ee){return Y.a.createElement(ie.Option,{key:ee,value:$.toString()},(y||h.buildOptionText)($))});ue=Y.a.createElement(ie,{disabled:M,prefixCls:U,showSearch:!1,className:"".concat(Q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(V||ce[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},ne)}return L&&(W&&(te=typeof W=="boolean"?Y.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:M,className:"".concat(Q,"-quick-jumper-button")},q.jump_to_confirm):Y.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),J=Y.a.createElement("div",{className:"".concat(Q,"-quick-jumper")},q.jump_to,Y.a.createElement("input",{disabled:M,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),q.page,te)),Y.a.createElement("li",{className:"".concat(Q)},ue,J)}}]),v}(Y.a.Component);K.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=K,G=a("N2Kk");function O(){}function E(I){return typeof I=="number"&&isFinite(I)&&Math.floor(I)===I}function l(I,H,v){return v}function n(I,H,v){var j=typeof I=="undefined"?H.pageSize:I;return Math.floor((v.total-1)/j)+1}var g=function(I){Object(p.a)(v,I);var H=Object(se.a)(v);function v(j){var h;Object(z.a)(this,v),h=H.call(this,j),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(n(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(oe,L){var W=h.props.prefixCls,_=oe||Y.a.createElement("button",{type:"button","aria-label":L,className:"".concat(W,"-item-link")});return typeof oe=="function"&&(_=Y.a.createElement(oe,Object(Pe.a)({},h.props))),_},h.savePaginationNode=function(oe){h.paginationNode=oe},h.isValid=function(oe){return E(oe)&&oe!==h.state.current},h.shouldDisplayQuickJumper=function(){var oe=h.props,L=oe.showQuickJumper,W=oe.pageSize,_=oe.total;return _<=W?!1:L},h.handleKeyDown=function(oe){(oe.keyCode===fe.ARROW_UP||oe.keyCode===fe.ARROW_DOWN)&&oe.preventDefault()},h.handleKeyUp=function(oe){var L=h.getValidValue(oe),W=h.state.currentInputValue;L!==W&&h.setState({currentInputValue:L}),oe.keyCode===fe.ENTER?h.handleChange(L):oe.keyCode===fe.ARROW_UP?h.handleChange(L-1):oe.keyCode===fe.ARROW_DOWN&&h.handleChange(L+1)},h.changePageSize=function(oe){var L=h.state.current,W=n(oe,h.state,h.props);L=L>W?W:L,W===0&&(L=h.state.current),typeof oe=="number"&&("pageSize"in h.props||h.setState({pageSize:oe}),"current"in h.props||h.setState({current:L,currentInputValue:L})),h.props.onShowSizeChange(L,oe),"onChange"in h.props&&h.props.onChange&&h.props.onChange(L,oe)},h.handleChange=function(oe){var L=h.props.disabled,W=oe;if(h.isValid(W)&&!L){var _=n(void 0,h.state,h.props);W>_?W=_:W<1&&(W=1),"current"in h.props||h.setState({current:W,currentInputValue:W});var y=h.state.pageSize;return h.props.onChange(W,y),W}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current2?W-2:0),y=2;y=V?Re=V:Re=Number(B),Re}},{key:"getShowSizeChanger",value:function(){var h=this.props,B=h.showSizeChanger,V=h.total,q=h.totalBoundaryShowSizeChanger;return typeof B!="undefined"?B:V>q}},{key:"renderPrev",value:function(h){var B=this.props,V=B.prevIcon,q=B.itemRender,Re=q(h,"prev",this.getItemIcon(V,"prev page")),oe=!this.hasPrev();return Object(be.isValidElement)(Re)?Object(be.cloneElement)(Re,{disabled:oe}):Re}},{key:"renderNext",value:function(h){var B=this.props,V=B.nextIcon,q=B.itemRender,Re=q(h,"next",this.getItemIcon(V,"next page")),oe=!this.hasNext();return Object(be.isValidElement)(Re)?Object(be.cloneElement)(Re,{disabled:oe}):Re}},{key:"render",value:function(){var h=this,B=this.props,V=B.prefixCls,q=B.className,Re=B.style,oe=B.disabled,L=B.hideOnSinglePage,W=B.total,_=B.locale,y=B.showQuickJumper,U=B.showLessItems,M=B.showTitle,A=B.showTotal,Q=B.simple,ie=B.itemRender,ue=B.showPrevNextJumpers,J=B.jumpPrevIcon,te=B.jumpNextIcon,ce=B.selectComponentClass,ne=B.selectPrefixCls,$=B.pageSizeOptions,ee=this.state,o=ee.current,b=ee.pageSize,c=ee.currentInputValue;if(L===!0&&W<=b)return null;var D=n(void 0,this.state,this.props),Z=[],re=null,Se=null,me=null,_e=null,Me=null,ge=y&&y.goButton,Oe=U?1:2,He=o-1>0?o-1:0,Ke=o+1=Oe*2&&o!==1+2&&(Z[0]=Object(be.cloneElement)(Z[0],{className:"".concat(V,"-item-after-jump-prev")}),Z.unshift(re)),D-o>=Oe*2&&o!==D-2&&(Z[Z.length-1]=Object(be.cloneElement)(Z[Z.length-1],{className:"".concat(V,"-item-before-jump-next")}),Z.push(Se)),Ee!==1&&Z.unshift(me),Ne!==D&&Z.push(_e)}var ae=null;A&&(ae=Y.a.createElement("li",{className:"".concat(V,"-total-text")},A(W,[W===0?0:(o-1)*b+1,o*b>W?W:o*b])));var de=!this.hasPrev()||!D,ye=!this.hasNext()||!D;return Y.a.createElement("ul",Object(k.a)({className:le()(V,q,Object(R.a)({},"".concat(V,"-disabled"),oe)),style:Re,unselectable:"unselectable",ref:this.savePaginationNode},Fe),ae,Y.a.createElement("li",{title:M?_.prev_page:null,onClick:this.prev,tabIndex:de?null:0,onKeyPress:this.runIfEnterPrev,className:le()("".concat(V,"-prev"),Object(R.a)({},"".concat(V,"-disabled"),de)),"aria-disabled":de},this.renderPrev(He)),Z,Y.a.createElement("li",{title:M?_.next_page:null,onClick:this.next,tabIndex:ye?null:0,onKeyPress:this.runIfEnterNext,className:le()("".concat(V,"-next"),Object(R.a)({},"".concat(V,"-disabled"),ye)),"aria-disabled":ye},this.renderNext(Ke)),Y.a.createElement(w,{disabled:oe,locale:_,rootPrefixCls:V,selectComponentClass:ce,selectPrefixCls:ne,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:b,pageSizeOptions:$,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(h,B){var V={};if("current"in h&&(V.current=h.current,h.current!==B.current&&(V.currentInputValue=V.current)),"pageSize"in h&&h.pageSize!==B.pageSize){var q=B.current,Re=n(h.pageSize,B,h);q=q>Re?Re:q,"current"in h||(V.current=q,V.currentInputValue=q),V.pageSize=h.pageSize}return V}}]),v}(Y.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:O,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:O,locale:G.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=g},"6RRn":function(Ge,xe,a){"use strict";var k=a("wCXF"),R=a("n6Qo");a.d(xe,"b",function(){return R.a});var Pe=a("IBYe"),z=a("6eGT"),i=a("hW8S");a.d(xe,"a",function(){return i.a}),xe.c=k.b},"6eGT":function(Ge,xe,a){"use strict";function k(R){return null}xe.a=k},"7H+G":function(Ge,xe,a){Ge.exports={wrap:"wrap___3b7nO",colorBlue:"colorBlue___3bmeF",repeatedName:"repeatedName___15Upf",header:"header___3tC3B",title:"title___1KbHV"}},"815F":function(Ge,xe,a){"use strict";a.d(xe,"e",function(){return se}),a.d(xe,"c",function(){return Y}),a.d(xe,"d",function(){return X}),a.d(xe,"a",function(){return Te}),a.d(xe,"f",function(){return je}),a.d(xe,"b",function(){return fe});var k=a("KQm4"),R=a("VTBJ"),Pe=a("Ff2n"),z=a("Zm9Q"),i=a("Kwbf"),p=a("OZM5");function se(K,w){return K!=null?K:w}function be(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new Map;function G(O){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var n=l.key,g=l.children;Object(i.a)(n!=null,"Tree node must have a certain key: [".concat(E).concat(n,"]"));var s=String(n);Object(i.a)(!w.has(s)||n===null||n===void 0,"Same 'key' exist in the Tree: ".concat(s)),w.set(s,!0),G(g,"".concat(E).concat(s," > "))})}G(K)}function Y(K){function w(G){var O=Object(z.a)(G);return O.map(function(E){if(!Object(p.i)(E))return Object(i.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var l=E.key,n=E.props,g=n.children,s=Object(Pe.a)(n,["children"]),I=Object(R.a)({key:l},s),H=w(g);return H.length&&(I.children=H),I}).filter(function(E){return E})}return w(K)}function X(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],G=new Set(w===!0?[]:w),O=[];function E(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(g,s){var I=Object(p.h)(n?n.pos:"0",s),H=se(g.key,I),v=Object(R.a)(Object(R.a)({},g),{},{parent:n,pos:I,children:null,data:g,isStart:[].concat(Object(k.a)(n?n.isStart:[]),[s===0]),isEnd:[].concat(Object(k.a)(n?n.isEnd:[]),[s===l.length-1])});return O.push(v),w===!0||G.has(H)?v.children=E(g.children||[],v):v.children=[],v})}return E(K),O}function le(K,w,G){var O;G?typeof G=="string"?O=function(n){return n[G]}:typeof G=="function"&&(O=function(n){return G(n)}):O=function(n,g){return se(n.key,g)};function E(l,n,g){var s=l?l.children:K,I=l?Object(p.h)(g.pos,n):"0";if(l){var H=O(l,I),v={node:l,index:n,pos:I,key:H,parentPos:g.node?g.pos:null,level:g.level+1};w(v)}s&&s.forEach(function(j,h){E(j,h,{node:l,pos:I,level:g?g.level+1:-1})})}E(null)}function Te(K){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=w.initWrapper,O=w.processEntity,E=w.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,n={},g={},s={posEntities:n,keyEntities:g};return G&&(s=G(s)||s),le(K,function(I){var H=I.node,v=I.index,j=I.pos,h=I.key,B=I.parentPos,V=I.level,q={node:H,index:v,key:h,pos:j,level:V},Re=se(h,j);n[j]=q,g[Re]=q,q.parent=n[B],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),O&&O(q,s)},l),E&&E(s),s}function je(K,w){var G=w.expandedKeys,O=w.selectedKeys,E=w.loadedKeys,l=w.loadingKeys,n=w.checkedKeys,g=w.halfCheckedKeys,s=w.dragOverNodeKey,I=w.dropPosition,H=w.keyEntities,v=H[K],j={eventKey:K,expanded:G.indexOf(K)!==-1,selected:O.indexOf(K)!==-1,loaded:E.indexOf(K)!==-1,loading:l.indexOf(K)!==-1,checked:n.indexOf(K)!==-1,halfChecked:g.indexOf(K)!==-1,pos:String(v?v.pos:""),dragOver:s===K&&I===0,dragOverGapTop:s===K&&I===-1,dragOverGapBottom:s===K&&I===1};return j}function fe(K){var w=K.data,G=K.expanded,O=K.selected,E=K.checked,l=K.loaded,n=K.loading,g=K.halfChecked,s=K.dragOver,I=K.dragOverGapTop,H=K.dragOverGapBottom,v=K.pos,j=K.active,h=Object(R.a)(Object(R.a)({},w),{},{expanded:G,selected:O,checked:E,loaded:l,loading:n,halfChecked:g,dragOver:s,dragOverGapTop:I,dragOverGapBottom:H,pos:v,active:j});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),K}}),h}},E9nw:function(Ge,xe){Ge.exports=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var k=document.activeElement,R=[],Pe=0;Pe0&&(Q.percent=Q.loaded/Q.total*100),_.onProgress(Q)});var U=new FormData;_.data&&Object.keys(_.data).forEach(function(A){var Q=_.data[A];if(Array.isArray(Q)){Q.forEach(function(ie){U.append(A+"[]",ie)});return}U.append(A,_.data[A])}),_.file instanceof Blob?U.append(_.filename,_.file,_.file.name):U.append(_.filename,_.file),y.onerror=function(Q){_.onError(Q)},y.onload=function(){return y.status<200||y.status>=300?_.onError(i(_,y),p(y)):_.onSuccess(p(y),y)},y.open(_.method,_.action,!0),_.withCredentials&&"withCredentials"in y&&(y.withCredentials=!0);var M=_.headers||{};return M["X-Requested-With"]!==null&&y.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(M).forEach(function(A){M[A]!==null&&y.setRequestHeader(A,M[A])}),y.send(U),{abort:function(){y.abort()}}}var be=+new Date,Y=0;function X(){return"rc-upload-"+be+"-"+ ++Y}function le(_,y){return _.indexOf(y,_.length-y.length)!==-1}var Te=function(_,y){if(_&&y){var U=Array.isArray(y)?y:y.split(","),M=_.name||"",A=_.type||"",Q=A.replace(/\/.*$/,"");return U.some(function(ie){var ue=ie.trim();return ue.charAt(0)==="."?le(M.toLowerCase(),ue.toLowerCase()):/\/\*$/.test(ue)?Q===ue.replace(/\/.*$/,""):A===ue})}return!0};function je(_,y){var U=_.createReader(),M=[];function A(){U.readEntries(function(Q){var ie=Array.prototype.slice.apply(Q);M=M.concat(ie);var ue=!ie.length;ue?y(M):A()})}A()}var fe=function(y,U,M){var A=function Q(ie,ue){ue=ue||"",ie.isFile?ie.file(function(J){M(J)&&(ie.fullPath&&!J.webkitRelativePath&&(Object.defineProperties(J,{webkitRelativePath:{writable:!0}}),J.webkitRelativePath=ie.fullPath.replace(/^\//,""),Object.defineProperties(J,{webkitRelativePath:{writable:!1}})),U([J]))}):ie.isDirectory&&je(ie,function(J){J.forEach(function(te){Q(te,""+ue+ie.name+"/")})})};y.forEach(function(Q){A(Q.webkitGetAsEntry())})},K=fe,w=Object.assign||function(_){for(var y=1;y=0)continue;if(!Object.prototype.hasOwnProperty.call(_,M))continue;U[M]=_[M]}return U}function n(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function g(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function s(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var I=function(y){return Object.keys(y).reduce(function(U,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-"||M==="role")&&(U[M]=y[M]),U},{})},H=function(_){s(y,_);function y(){var U,M,A,Q;n(this,y);for(var ie=arguments.length,ue=Array(ie),J=0;J1&&arguments[1]!==void 0?arguments[1]:1,ye=Oe.length,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(I.a)(U).map(function(A,Q){if(!i.isValidElement(A)||!A.type)return null;var ie=A.type.isSelectOptGroup,ue=A.key,J=A.props,te=J.children,ce=Object(se.a)(J,["children"]);return M||!ie?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ue===null?Q:ue,"__"),label:ue},ce),{},{options:v(te)})}).filter(function(A){return A})}var j=a("2Qr1"),h=a("qNPg"),B=a("U8pU"),V=a("Kwbf"),q=a("WKfj");function Re(U){var M=U.mode,A=U.options,Q=U.children,ie=U.backfill,ue=U.allowClear,J=U.placeholder,te=U.getInputElement,ce=U.showSearch,ne=U.onSearch,$=U.defaultOpen,ee=U.autoFocus,o=U.labelInValue,b=U.value,c=U.inputValue,D=U.optionLabelProp,Z=M==="multiple"||M==="tags",re=ce!==void 0?ce:Z||M==="combobox",Se=A||v(Q);if(Object(V.a)(M!=="tags"||Se.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),M==="tags"||M==="combobox"){var me=Se.some(function(ge){return ge.options?ge.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(V.a)(!me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(V.a)(M!=="combobox"||!D,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(V.a)(M==="combobox"||!ie,"`backfill` only works with `combobox` mode."),Object(V.a)(M==="combobox"||!te,"`getInputElement` only work with `combobox` mode."),Object(V.b)(M!=="combobox"||!te||!ue||!J,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ne&&!re&&M!=="combobox"&&M!=="tags"&&Object(V.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(V.b)(!$||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),b!=null){var _e=Object(q.d)(b);Object(V.a)(!o||_e.every(function(ge){return Object(B.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(V.a)(!Z||Array.isArray(b),"`value` should be array when `mode` is `multiple` or `tags`")}if(Q){var Me=null;Object(I.a)(Q).some(function(ge){if(!i.isValidElement(ge)||!ge.type)return!1;var Oe=ge.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var He=Object(I.a)(ge.props.children).every(function(Ke){return!i.isValidElement(Ke)||!ge.type||Ke.type.isSelectOption?!0:(Me=Ke.type,!1)});return!He}return Me=Oe,!0}),Me&&Object(V.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Me.displayName||Me.name||Me,"`.")),Object(V.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var oe=Re,L=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:v,flattenOptions:j.d,getLabeledValue:j.e,filterOptions:j.b,isValueDisabled:j.g,findValueOption:j.c,warningProps:oe,fillOptionsWithMissingValue:j.a}),W=function(U){Object(Pe.a)(A,U);var M=Object(z.a)(A);function A(){var Q;return Object(k.a)(this,A),Q=M.apply(this,arguments),Q.selectRef=i.createRef(),Q.focus=function(){Q.selectRef.current.focus()},Q.blur=function(){Q.selectRef.current.blur()},Q}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);W.Option=l,W.OptGroup=g;var _=W,y=xe.c=_},NvD2:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return p});var k=a("Kwbf");function R(se,be){var Y=new Set;return se.forEach(function(X){be.has(X)||Y.add(X)}),Y}function Pe(se){var be=se||{},Y=be.disabled,X=be.disableCheckbox,le=be.checkable;return!!(Y||X)||le===!1}function z(se,be,Y,X){for(var le=new Set(se),Te=new Set,je=0;je<=Y;je+=1){var fe=be.get(je)||new Set;fe.forEach(function(O){var E=O.key,l=O.node,n=O.children,g=n===void 0?[]:n;le.has(E)&&!X(l)&&g.filter(function(s){return!X(s.node)}).forEach(function(s){le.add(s.key)})})}for(var K=new Set,w=Y;w>=0;w-=1){var G=be.get(w)||new Set;G.forEach(function(O){var E=O.parent,l=O.node;if(X(l)||!O.parent||K.has(O.parent.key))return;if(X(O.parent.node)){K.add(E.key);return}var n=!0,g=!1;(E.children||[]).filter(function(s){return!X(s.node)}).forEach(function(s){var I=s.key,H=le.has(I);n&&!H&&(n=!1),!g&&(H||Te.has(I))&&(g=!0)}),n&&le.add(E.key),g&&Te.add(E.key),K.add(E.key)})}return{checkedKeys:Array.from(le),halfCheckedKeys:Array.from(R(Te,le))}}function i(se,be,Y,X,le){for(var Te=new Set(se),je=new Set(be),fe=0;fe<=X;fe+=1){var K=Y.get(fe)||new Set;K.forEach(function(E){var l=E.key,n=E.node,g=E.children,s=g===void 0?[]:g;!Te.has(l)&&!je.has(l)&&!le(n)&&s.filter(function(I){return!le(I.node)}).forEach(function(I){Te.delete(I.key)})})}je=new Set;for(var w=new Set,G=X;G>=0;G-=1){var O=Y.get(G)||new Set;O.forEach(function(E){var l=E.parent,n=E.node;if(le(n)||!E.parent||w.has(E.parent.key))return;if(le(E.parent.node)){w.add(l.key);return}var g=!0,s=!1;(l.children||[]).filter(function(I){return!le(I.node)}).forEach(function(I){var H=I.key,v=Te.has(H);g&&!v&&(g=!1),!s&&(v||je.has(H))&&(s=!0)}),g||Te.delete(l.key),s&&je.add(l.key),w.add(l.key)})}return{checkedKeys:Array.from(Te),halfCheckedKeys:Array.from(R(je,Te))}}function p(se,be,Y,X){var le=[],Te;X?Te=X:Te=Pe;var je=new Set(se.filter(function(G){var O=!!Y[G];return O||le.push(G),O})),fe=new Map,K=0;Object.keys(Y).forEach(function(G){var O=Y[G],E=O.level,l=fe.get(E);l||(l=new Set,fe.set(E,l)),l.add(O),K=Math.max(K,E)}),Object(k.a)(!le.length,"Tree missing follow keys: ".concat(le.slice(0,100).map(function(G){return"'".concat(G,"'")}).join(", ")));var w;return be===!0?w=z(je,fe,K,Te):w=i(je,be.halfCheckedKeys,fe,K,Te),w}},OZM5:function(Ge,xe,a){"use strict";a.d(xe,"b",function(){return X}),a.d(xe,"a",function(){return le}),a.d(xe,"k",function(){return Te}),a.d(xe,"h",function(){return je}),a.d(xe,"i",function(){return fe}),a.d(xe,"g",function(){return K}),a.d(xe,"c",function(){return w}),a.d(xe,"d",function(){return G}),a.d(xe,"j",function(){return l}),a.d(xe,"e",function(){return n}),a.d(xe,"f",function(){return g});var k=a("KQm4"),R=a("U8pU"),Pe=a("Ff2n"),z=a("q1tI"),i=a.n(z),p=a("Kwbf"),se=a("WaYH"),be=.25,Y=2;function X(s,I){var H=s.slice(),v=H.indexOf(I);return v>=0&&H.splice(v,1),H}function le(s,I){var H=s.slice();return H.indexOf(I)===-1&&H.push(I),H}function Te(s){return s.split("-")}function je(s,I){return"".concat(s,"-").concat(I)}function fe(s){return s&&s.type&&s.type.isTreeNode}function K(s,I){var H=[s],v=I[s];function j(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(B){var V=B.key,q=B.children;H.push(V),j(q)})}return j(v.children),H}function w(s,I){var H=s.clientY,v=I.selectHandle.getBoundingClientRect(),j=v.top,h=v.bottom,B=v.height,V=Math.max(B*be,Y);return H<=j+V?-1:H>=h-V?1:0}function G(s,I){if(!s)return;var H=I.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(I){return I};function E(s,I){if(!s)return[];var H=I||{},v=H.processProps,j=v===void 0?O:v,h=Array.isArray(s)?s:[s];return h.map(function(B){var V=B.children,q=Object(Pe.a)(B,["children"]),Re=E(V,I);return i.a.createElement(se.a,Object.assign({},j(q)),Re)})}function l(s){if(!s)return null;var I;if(Array.isArray(s))I={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")I={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return I}function n(s,I){var H=new Set;function v(j){if(H.has(j))return;var h=I[j];if(!h)return;H.add(j);var B=h.parent,V=h.node;if(V.disabled)return;B&&v(B.key)}return(s||[]).forEach(function(j){v(j)}),Object(k.a)(H)}function g(s){var I={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(I[H]=s[H])}),I}},"SA+Z":function(Ge,xe,a){var k=a("wTVA"),R=a("EbDI"),Pe=a("ZhPi"),z=a("wkBT");function i(p){return k(p)||R(p)||Pe(p)||z()}Ge.exports=i,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},WaYH:function(Ge,xe,a){"use strict";var k=a("rePB"),R=a("Ff2n"),Pe=a("VTBJ"),z=a("1OyB"),i=a("vuIU"),p=a("JX7q"),se=a("Ji7U"),be=a("LK+K"),Y=a("q1tI"),X=a("TSYQ"),le=a.n(X),Te=a("sboe"),je=a("OZM5"),fe=function(I){var H=I.prefixCls,v=I.level,j=I.isStart,h=I.isEnd;if(!v)return null;for(var B="".concat(H,"-indent-unit"),V=[],q=0;q=0||q.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;j.setState({goInputText:""}),L(j.getValidValue())},j.go=function(q){var Re=j.state.goInputText;if(Re==="")return;(q.keyCode===fe.ENTER||q.type==="click")&&(j.setState({goInputText:""}),j.props.quickGo(j.getValidValue()))},j}return Object(i.a)(v,[{key:"getValidValue",value:function(){var h=this.state,B=h.goInputText,V=h.current;return!B||isNaN(B)?V:Number(B)}},{key:"getPageSizeOptions",value:function(){var h=this.props,B=h.pageSize,V=h.pageSizeOptions;return V.some(function(q){return q.toString()===B.toString()})?V:V.concat([B.toString()]).sort(function(q,Re){var oe=isNaN(Number(q))?0:Number(q),L=isNaN(Number(Re))?0:Number(Re);return oe-L})}},{key:"render",value:function(){var h=this,B=this.props,V=B.pageSize,q=B.locale,Re=B.rootPrefixCls,oe=B.changeSize,L=B.quickGo,W=B.goButton,_=B.selectComponentClass,y=B.buildOptionText,U=B.selectPrefixCls,M=B.disabled,A=this.state.goInputText,Q="".concat(Re,"-options"),ie=_,ue=null,J=null,te=null;if(!oe&&!L)return null;var ce=this.getPageSizeOptions();if(oe&&ie){var ne=ce.map(function($,ee){return Y.a.createElement(ie.Option,{key:ee,value:$.toString()},(y||h.buildOptionText)($))});ue=Y.a.createElement(ie,{disabled:M,prefixCls:U,showSearch:!1,className:"".concat(Q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(V||ce[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},ne)}return L&&(W&&(te=typeof W=="boolean"?Y.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:M,className:"".concat(Q,"-quick-jumper-button")},q.jump_to_confirm):Y.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),J=Y.a.createElement("div",{className:"".concat(Q,"-quick-jumper")},q.jump_to,Y.a.createElement("input",{disabled:M,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),q.page,te)),Y.a.createElement("li",{className:"".concat(Q)},ue,J)}}]),v}(Y.a.Component);K.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=K,G=a("N2Kk");function O(){}function E(I){return typeof I=="number"&&isFinite(I)&&Math.floor(I)===I}function l(I,H,v){return v}function n(I,H,v){var j=typeof I=="undefined"?H.pageSize:I;return Math.floor((v.total-1)/j)+1}var g=function(I){Object(p.a)(v,I);var H=Object(se.a)(v);function v(j){var h;Object(z.a)(this,v),h=H.call(this,j),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(n(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(oe,L){var W=h.props.prefixCls,_=oe||Y.a.createElement("button",{type:"button","aria-label":L,className:"".concat(W,"-item-link")});return typeof oe=="function"&&(_=Y.a.createElement(oe,Object(Pe.a)({},h.props))),_},h.savePaginationNode=function(oe){h.paginationNode=oe},h.isValid=function(oe){return E(oe)&&oe!==h.state.current},h.shouldDisplayQuickJumper=function(){var oe=h.props,L=oe.showQuickJumper,W=oe.pageSize,_=oe.total;return _<=W?!1:L},h.handleKeyDown=function(oe){(oe.keyCode===fe.ARROW_UP||oe.keyCode===fe.ARROW_DOWN)&&oe.preventDefault()},h.handleKeyUp=function(oe){var L=h.getValidValue(oe),W=h.state.currentInputValue;L!==W&&h.setState({currentInputValue:L}),oe.keyCode===fe.ENTER?h.handleChange(L):oe.keyCode===fe.ARROW_UP?h.handleChange(L-1):oe.keyCode===fe.ARROW_DOWN&&h.handleChange(L+1)},h.changePageSize=function(oe){var L=h.state.current,W=n(oe,h.state,h.props);L=L>W?W:L,W===0&&(L=h.state.current),typeof oe=="number"&&("pageSize"in h.props||h.setState({pageSize:oe}),"current"in h.props||h.setState({current:L,currentInputValue:L})),h.props.onShowSizeChange(L,oe),"onChange"in h.props&&h.props.onChange&&h.props.onChange(L,oe)},h.handleChange=function(oe){var L=h.props.disabled,W=oe;if(h.isValid(W)&&!L){var _=n(void 0,h.state,h.props);W>_?W=_:W<1&&(W=1),"current"in h.props||h.setState({current:W,currentInputValue:W});var y=h.state.pageSize;return h.props.onChange(W,y),W}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current2?W-2:0),y=2;y=V?Re=V:Re=Number(B),Re}},{key:"getShowSizeChanger",value:function(){var h=this.props,B=h.showSizeChanger,V=h.total,q=h.totalBoundaryShowSizeChanger;return typeof B!="undefined"?B:V>q}},{key:"renderPrev",value:function(h){var B=this.props,V=B.prevIcon,q=B.itemRender,Re=q(h,"prev",this.getItemIcon(V,"prev page")),oe=!this.hasPrev();return Object(be.isValidElement)(Re)?Object(be.cloneElement)(Re,{disabled:oe}):Re}},{key:"renderNext",value:function(h){var B=this.props,V=B.nextIcon,q=B.itemRender,Re=q(h,"next",this.getItemIcon(V,"next page")),oe=!this.hasNext();return Object(be.isValidElement)(Re)?Object(be.cloneElement)(Re,{disabled:oe}):Re}},{key:"render",value:function(){var h=this,B=this.props,V=B.prefixCls,q=B.className,Re=B.style,oe=B.disabled,L=B.hideOnSinglePage,W=B.total,_=B.locale,y=B.showQuickJumper,U=B.showLessItems,M=B.showTitle,A=B.showTotal,Q=B.simple,ie=B.itemRender,ue=B.showPrevNextJumpers,J=B.jumpPrevIcon,te=B.jumpNextIcon,ce=B.selectComponentClass,ne=B.selectPrefixCls,$=B.pageSizeOptions,ee=this.state,o=ee.current,b=ee.pageSize,c=ee.currentInputValue;if(L===!0&&W<=b)return null;var D=n(void 0,this.state,this.props),Z=[],re=null,Te=null,me=null,_e=null,Me=null,ge=y&&y.goButton,Oe=U?1:2,He=o-1>0?o-1:0,Ke=o+1=Oe*2&&o!==1+2&&(Z[0]=Object(be.cloneElement)(Z[0],{className:"".concat(V,"-item-after-jump-prev")}),Z.unshift(re)),D-o>=Oe*2&&o!==D-2&&(Z[Z.length-1]=Object(be.cloneElement)(Z[Z.length-1],{className:"".concat(V,"-item-before-jump-next")}),Z.push(Te)),Ee!==1&&Z.unshift(me),Ne!==D&&Z.push(_e)}var ae=null;A&&(ae=Y.a.createElement("li",{className:"".concat(V,"-total-text")},A(W,[W===0?0:(o-1)*b+1,o*b>W?W:o*b])));var de=!this.hasPrev()||!D,ye=!this.hasNext()||!D;return Y.a.createElement("ul",Object(k.a)({className:le()(V,q,Object(R.a)({},"".concat(V,"-disabled"),oe)),style:Re,unselectable:"unselectable",ref:this.savePaginationNode},Fe),ae,Y.a.createElement("li",{title:M?_.prev_page:null,onClick:this.prev,tabIndex:de?null:0,onKeyPress:this.runIfEnterPrev,className:le()("".concat(V,"-prev"),Object(R.a)({},"".concat(V,"-disabled"),de)),"aria-disabled":de},this.renderPrev(He)),Z,Y.a.createElement("li",{title:M?_.next_page:null,onClick:this.next,tabIndex:ye?null:0,onKeyPress:this.runIfEnterNext,className:le()("".concat(V,"-next"),Object(R.a)({},"".concat(V,"-disabled"),ye)),"aria-disabled":ye},this.renderNext(Ke)),Y.a.createElement(w,{disabled:oe,locale:_,rootPrefixCls:V,selectComponentClass:ce,selectPrefixCls:ne,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:b,pageSizeOptions:$,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(h,B){var V={};if("current"in h&&(V.current=h.current,h.current!==B.current&&(V.currentInputValue=V.current)),"pageSize"in h&&h.pageSize!==B.pageSize){var q=B.current,Re=n(h.pageSize,B,h);q=q>Re?Re:q,"current"in h||(V.current=q,V.currentInputValue=q),V.pageSize=h.pageSize}return V}}]),v}(Y.a.Component);g.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:O,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:O,locale:G.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=g},"6RRn":function(Ge,xe,a){"use strict";var k=a("wCXF"),R=a("n6Qo");a.d(xe,"b",function(){return R.a});var Pe=a("IBYe"),z=a("6eGT"),i=a("hW8S");a.d(xe,"a",function(){return i.a}),xe.c=k.b},"6eGT":function(Ge,xe,a){"use strict";function k(R){return null}xe.a=k},"7H+G":function(Ge,xe,a){Ge.exports={wrap:"wrap___3b7nO",colorBlue:"colorBlue___3bmeF",repeatedName:"repeatedName___15Upf",header:"header___3tC3B",title:"title___1KbHV"}},"815F":function(Ge,xe,a){"use strict";a.d(xe,"e",function(){return se}),a.d(xe,"c",function(){return Y}),a.d(xe,"d",function(){return X}),a.d(xe,"a",function(){return Se}),a.d(xe,"f",function(){return je}),a.d(xe,"b",function(){return fe});var k=a("KQm4"),R=a("VTBJ"),Pe=a("Ff2n"),z=a("Zm9Q"),i=a("Kwbf"),p=a("OZM5");function se(K,w){return K!=null?K:w}function be(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new Map;function G(O){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var n=l.key,g=l.children;Object(i.a)(n!=null,"Tree node must have a certain key: [".concat(E).concat(n,"]"));var s=String(n);Object(i.a)(!w.has(s)||n===null||n===void 0,"Same 'key' exist in the Tree: ".concat(s)),w.set(s,!0),G(g,"".concat(E).concat(s," > "))})}G(K)}function Y(K){function w(G){var O=Object(z.a)(G);return O.map(function(E){if(!Object(p.i)(E))return Object(i.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var l=E.key,n=E.props,g=n.children,s=Object(Pe.a)(n,["children"]),I=Object(R.a)({key:l},s),H=w(g);return H.length&&(I.children=H),I}).filter(function(E){return E})}return w(K)}function X(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],G=new Set(w===!0?[]:w),O=[];function E(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(g,s){var I=Object(p.h)(n?n.pos:"0",s),H=se(g.key,I),v=Object(R.a)(Object(R.a)({},g),{},{parent:n,pos:I,children:null,data:g,isStart:[].concat(Object(k.a)(n?n.isStart:[]),[s===0]),isEnd:[].concat(Object(k.a)(n?n.isEnd:[]),[s===l.length-1])});return O.push(v),w===!0||G.has(H)?v.children=E(g.children||[],v):v.children=[],v})}return E(K),O}function le(K,w,G){var O;G?typeof G=="string"?O=function(n){return n[G]}:typeof G=="function"&&(O=function(n){return G(n)}):O=function(n,g){return se(n.key,g)};function E(l,n,g){var s=l?l.children:K,I=l?Object(p.h)(g.pos,n):"0";if(l){var H=O(l,I),v={node:l,index:n,pos:I,key:H,parentPos:g.node?g.pos:null,level:g.level+1};w(v)}s&&s.forEach(function(j,h){E(j,h,{node:l,pos:I,level:g?g.level+1:-1})})}E(null)}function Se(K){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=w.initWrapper,O=w.processEntity,E=w.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,n={},g={},s={posEntities:n,keyEntities:g};return G&&(s=G(s)||s),le(K,function(I){var H=I.node,v=I.index,j=I.pos,h=I.key,B=I.parentPos,V=I.level,q={node:H,index:v,key:h,pos:j,level:V},Re=se(h,j);n[j]=q,g[Re]=q,q.parent=n[B],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),O&&O(q,s)},l),E&&E(s),s}function je(K,w){var G=w.expandedKeys,O=w.selectedKeys,E=w.loadedKeys,l=w.loadingKeys,n=w.checkedKeys,g=w.halfCheckedKeys,s=w.dragOverNodeKey,I=w.dropPosition,H=w.keyEntities,v=H[K],j={eventKey:K,expanded:G.indexOf(K)!==-1,selected:O.indexOf(K)!==-1,loaded:E.indexOf(K)!==-1,loading:l.indexOf(K)!==-1,checked:n.indexOf(K)!==-1,halfChecked:g.indexOf(K)!==-1,pos:String(v?v.pos:""),dragOver:s===K&&I===0,dragOverGapTop:s===K&&I===-1,dragOverGapBottom:s===K&&I===1};return j}function fe(K){var w=K.data,G=K.expanded,O=K.selected,E=K.checked,l=K.loaded,n=K.loading,g=K.halfChecked,s=K.dragOver,I=K.dragOverGapTop,H=K.dragOverGapBottom,v=K.pos,j=K.active,h=Object(R.a)(Object(R.a)({},w),{},{expanded:G,selected:O,checked:E,loaded:l,loading:n,halfChecked:g,dragOver:s,dragOverGapTop:I,dragOverGapBottom:H,pos:v,active:j});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),K}}),h}},E9nw:function(Ge,xe){Ge.exports=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var k=document.activeElement,R=[],Pe=0;Pe0&&(Q.percent=Q.loaded/Q.total*100),_.onProgress(Q)});var U=new FormData;_.data&&Object.keys(_.data).forEach(function(A){var Q=_.data[A];if(Array.isArray(Q)){Q.forEach(function(ie){U.append(A+"[]",ie)});return}U.append(A,_.data[A])}),_.file instanceof Blob?U.append(_.filename,_.file,_.file.name):U.append(_.filename,_.file),y.onerror=function(Q){_.onError(Q)},y.onload=function(){return y.status<200||y.status>=300?_.onError(i(_,y),p(y)):_.onSuccess(p(y),y)},y.open(_.method,_.action,!0),_.withCredentials&&"withCredentials"in y&&(y.withCredentials=!0);var M=_.headers||{};return M["X-Requested-With"]!==null&&y.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(M).forEach(function(A){M[A]!==null&&y.setRequestHeader(A,M[A])}),y.send(U),{abort:function(){y.abort()}}}var be=+new Date,Y=0;function X(){return"rc-upload-"+be+"-"+ ++Y}function le(_,y){return _.indexOf(y,_.length-y.length)!==-1}var Se=function(_,y){if(_&&y){var U=Array.isArray(y)?y:y.split(","),M=_.name||"",A=_.type||"",Q=A.replace(/\/.*$/,"");return U.some(function(ie){var ue=ie.trim();return ue.charAt(0)==="."?le(M.toLowerCase(),ue.toLowerCase()):/\/\*$/.test(ue)?Q===ue.replace(/\/.*$/,""):A===ue})}return!0};function je(_,y){var U=_.createReader(),M=[];function A(){U.readEntries(function(Q){var ie=Array.prototype.slice.apply(Q);M=M.concat(ie);var ue=!ie.length;ue?y(M):A()})}A()}var fe=function(y,U,M){var A=function Q(ie,ue){ue=ue||"",ie.isFile?ie.file(function(J){M(J)&&(ie.fullPath&&!J.webkitRelativePath&&(Object.defineProperties(J,{webkitRelativePath:{writable:!0}}),J.webkitRelativePath=ie.fullPath.replace(/^\//,""),Object.defineProperties(J,{webkitRelativePath:{writable:!1}})),U([J]))}):ie.isDirectory&&je(ie,function(J){J.forEach(function(te){Q(te,""+ue+ie.name+"/")})})};y.forEach(function(Q){A(Q.webkitGetAsEntry())})},K=fe,w=Object.assign||function(_){for(var y=1;y=0)continue;if(!Object.prototype.hasOwnProperty.call(_,M))continue;U[M]=_[M]}return U}function n(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function g(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function s(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var I=function(y){return Object.keys(y).reduce(function(U,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-"||M==="role")&&(U[M]=y[M]),U},{})},H=function(_){s(y,_);function y(){var U,M,A,Q;n(this,y);for(var ie=arguments.length,ue=Array(ie),J=0;J1&&arguments[1]!==void 0?arguments[1]:1,ye=Oe.length,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(I.a)(U).map(function(A,Q){if(!i.isValidElement(A)||!A.type)return null;var ie=A.type.isSelectOptGroup,ue=A.key,J=A.props,te=J.children,ce=Object(se.a)(J,["children"]);return M||!ie?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ue===null?Q:ue,"__"),label:ue},ce),{},{options:v(te)})}).filter(function(A){return A})}var j=a("2Qr1"),h=a("qNPg"),B=a("U8pU"),V=a("Kwbf"),q=a("WKfj");function Re(U){var M=U.mode,A=U.options,Q=U.children,ie=U.backfill,ue=U.allowClear,J=U.placeholder,te=U.getInputElement,ce=U.showSearch,ne=U.onSearch,$=U.defaultOpen,ee=U.autoFocus,o=U.labelInValue,b=U.value,c=U.inputValue,D=U.optionLabelProp,Z=M==="multiple"||M==="tags",re=ce!==void 0?ce:Z||M==="combobox",Te=A||v(Q);if(Object(V.a)(M!=="tags"||Te.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),M==="tags"||M==="combobox"){var me=Te.some(function(ge){return ge.options?ge.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(V.a)(!me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(V.a)(M!=="combobox"||!D,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(V.a)(M==="combobox"||!ie,"`backfill` only works with `combobox` mode."),Object(V.a)(M==="combobox"||!te,"`getInputElement` only work with `combobox` mode."),Object(V.b)(M!=="combobox"||!te||!ue||!J,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ne&&!re&&M!=="combobox"&&M!=="tags"&&Object(V.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(V.b)(!$||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),b!=null){var _e=Object(q.d)(b);Object(V.a)(!o||_e.every(function(ge){return Object(B.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(V.a)(!Z||Array.isArray(b),"`value` should be array when `mode` is `multiple` or `tags`")}if(Q){var Me=null;Object(I.a)(Q).some(function(ge){if(!i.isValidElement(ge)||!ge.type)return!1;var Oe=ge.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var He=Object(I.a)(ge.props.children).every(function(Ke){return!i.isValidElement(Ke)||!ge.type||Ke.type.isSelectOption?!0:(Me=Ke.type,!1)});return!He}return Me=Oe,!0}),Me&&Object(V.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Me.displayName||Me.name||Me,"`.")),Object(V.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var oe=Re,L=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:v,flattenOptions:j.d,getLabeledValue:j.e,filterOptions:j.b,isValueDisabled:j.g,findValueOption:j.c,warningProps:oe,fillOptionsWithMissingValue:j.a}),W=function(U){Object(Pe.a)(A,U);var M=Object(z.a)(A);function A(){var Q;return Object(k.a)(this,A),Q=M.apply(this,arguments),Q.selectRef=i.createRef(),Q.focus=function(){Q.selectRef.current.focus()},Q.blur=function(){Q.selectRef.current.blur()},Q}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);W.Option=l,W.OptGroup=g;var _=W,y=xe.c=_},NvD2:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return p});var k=a("Kwbf");function R(se,be){var Y=new Set;return se.forEach(function(X){be.has(X)||Y.add(X)}),Y}function Pe(se){var be=se||{},Y=be.disabled,X=be.disableCheckbox,le=be.checkable;return!!(Y||X)||le===!1}function z(se,be,Y,X){for(var le=new Set(se),Se=new Set,je=0;je<=Y;je+=1){var fe=be.get(je)||new Set;fe.forEach(function(O){var E=O.key,l=O.node,n=O.children,g=n===void 0?[]:n;le.has(E)&&!X(l)&&g.filter(function(s){return!X(s.node)}).forEach(function(s){le.add(s.key)})})}for(var K=new Set,w=Y;w>=0;w-=1){var G=be.get(w)||new Set;G.forEach(function(O){var E=O.parent,l=O.node;if(X(l)||!O.parent||K.has(O.parent.key))return;if(X(O.parent.node)){K.add(E.key);return}var n=!0,g=!1;(E.children||[]).filter(function(s){return!X(s.node)}).forEach(function(s){var I=s.key,H=le.has(I);n&&!H&&(n=!1),!g&&(H||Se.has(I))&&(g=!0)}),n&&le.add(E.key),g&&Se.add(E.key),K.add(E.key)})}return{checkedKeys:Array.from(le),halfCheckedKeys:Array.from(R(Se,le))}}function i(se,be,Y,X,le){for(var Se=new Set(se),je=new Set(be),fe=0;fe<=X;fe+=1){var K=Y.get(fe)||new Set;K.forEach(function(E){var l=E.key,n=E.node,g=E.children,s=g===void 0?[]:g;!Se.has(l)&&!je.has(l)&&!le(n)&&s.filter(function(I){return!le(I.node)}).forEach(function(I){Se.delete(I.key)})})}je=new Set;for(var w=new Set,G=X;G>=0;G-=1){var O=Y.get(G)||new Set;O.forEach(function(E){var l=E.parent,n=E.node;if(le(n)||!E.parent||w.has(E.parent.key))return;if(le(E.parent.node)){w.add(l.key);return}var g=!0,s=!1;(l.children||[]).filter(function(I){return!le(I.node)}).forEach(function(I){var H=I.key,v=Se.has(H);g&&!v&&(g=!1),!s&&(v||je.has(H))&&(s=!0)}),g||Se.delete(l.key),s&&je.add(l.key),w.add(l.key)})}return{checkedKeys:Array.from(Se),halfCheckedKeys:Array.from(R(je,Se))}}function p(se,be,Y,X){var le=[],Se;X?Se=X:Se=Pe;var je=new Set(se.filter(function(G){var O=!!Y[G];return O||le.push(G),O})),fe=new Map,K=0;Object.keys(Y).forEach(function(G){var O=Y[G],E=O.level,l=fe.get(E);l||(l=new Set,fe.set(E,l)),l.add(O),K=Math.max(K,E)}),Object(k.a)(!le.length,"Tree missing follow keys: ".concat(le.slice(0,100).map(function(G){return"'".concat(G,"'")}).join(", ")));var w;return be===!0?w=z(je,fe,K,Se):w=i(je,be.halfCheckedKeys,fe,K,Se),w}},OZM5:function(Ge,xe,a){"use strict";a.d(xe,"b",function(){return X}),a.d(xe,"a",function(){return le}),a.d(xe,"k",function(){return Se}),a.d(xe,"h",function(){return je}),a.d(xe,"i",function(){return fe}),a.d(xe,"g",function(){return K}),a.d(xe,"c",function(){return w}),a.d(xe,"d",function(){return G}),a.d(xe,"j",function(){return l}),a.d(xe,"e",function(){return n}),a.d(xe,"f",function(){return g});var k=a("KQm4"),R=a("U8pU"),Pe=a("Ff2n"),z=a("q1tI"),i=a.n(z),p=a("Kwbf"),se=a("WaYH"),be=.25,Y=2;function X(s,I){var H=s.slice(),v=H.indexOf(I);return v>=0&&H.splice(v,1),H}function le(s,I){var H=s.slice();return H.indexOf(I)===-1&&H.push(I),H}function Se(s){return s.split("-")}function je(s,I){return"".concat(s,"-").concat(I)}function fe(s){return s&&s.type&&s.type.isTreeNode}function K(s,I){var H=[s],v=I[s];function j(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(B){var V=B.key,q=B.children;H.push(V),j(q)})}return j(v.children),H}function w(s,I){var H=s.clientY,v=I.selectHandle.getBoundingClientRect(),j=v.top,h=v.bottom,B=v.height,V=Math.max(B*be,Y);return H<=j+V?-1:H>=h-V?1:0}function G(s,I){if(!s)return;var H=I.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(I){return I};function E(s,I){if(!s)return[];var H=I||{},v=H.processProps,j=v===void 0?O:v,h=Array.isArray(s)?s:[s];return h.map(function(B){var V=B.children,q=Object(Pe.a)(B,["children"]),Re=E(V,I);return i.a.createElement(se.a,Object.assign({},j(q)),Re)})}function l(s){if(!s)return null;var I;if(Array.isArray(s))I={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")I={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return I}function n(s,I){var H=new Set;function v(j){if(H.has(j))return;var h=I[j];if(!h)return;H.add(j);var B=h.parent,V=h.node;if(V.disabled)return;B&&v(B.key)}return(s||[]).forEach(function(j){v(j)}),Object(k.a)(H)}function g(s){var I={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(I[H]=s[H])}),I}},"SA+Z":function(Ge,xe,a){var k=a("wTVA"),R=a("EbDI"),Pe=a("ZhPi"),z=a("wkBT");function i(p){return k(p)||R(p)||Pe(p)||z()}Ge.exports=i,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},WaYH:function(Ge,xe,a){"use strict";var k=a("rePB"),R=a("Ff2n"),Pe=a("VTBJ"),z=a("1OyB"),i=a("vuIU"),p=a("JX7q"),se=a("Ji7U"),be=a("LK+K"),Y=a("q1tI"),X=a("TSYQ"),le=a.n(X),Se=a("sboe"),je=a("OZM5"),fe=function(I){var H=I.prefixCls,v=I.level,j=I.isStart,h=I.isEnd;if(!v)return null;for(var B="".concat(H,"-indent-unit"),V=[],q=0;q1&&arguments[1]!==void 0?arguments[1]:!1,ce=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if(te&&oe[ce])return oe[ce];var ne=window.getComputedStyle(J),$=ne.getPropertyValue("box-sizing")||ne.getPropertyValue("-moz-box-sizing")||ne.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(ne.getPropertyValue("padding-bottom"))+parseFloat(ne.getPropertyValue("padding-top")),o=parseFloat(ne.getPropertyValue("border-bottom-width"))+parseFloat(ne.getPropertyValue("border-top-width")),b=Re.map(function(D){return"".concat(D,":").concat(ne.getPropertyValue(D))}).join(";"),c={sizingStyle:b,paddingSize:ee,borderSize:o,boxSizing:$};return te&&ce&&(oe[ce]=c),c}function _(J){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),J.getAttribute("wrap")?L.setAttribute("wrap",J.getAttribute("wrap")):L.removeAttribute("wrap");var $=W(J,te),ee=$.paddingSize,o=$.borderSize,b=$.boxSizing,c=$.sizingStyle;L.setAttribute("style","".concat(c,";").concat(q)),L.value=J.value||J.placeholder||"";var D=Number.MIN_SAFE_INTEGER,Z=Number.MAX_SAFE_INTEGER,re=L.scrollHeight,Se;if(b==="border-box"?re+=o:b==="content-box"&&(re-=ee),ce!==null||ne!==null){L.value=" ";var me=L.scrollHeight-ee;ce!==null&&(D=me*ce,b==="border-box"&&(D=D+ee+o),re=Math.max(D,re)),ne!==null&&(Z=me*ne,b==="border-box"&&(Z=Z+ee+o),Se=re>Z?"":"hidden",re=Math.min(Z,re))}return{height:re,minHeight:D,maxHeight:Z,overflowY:Se,resize:"none"}}var y=a("Gytx"),U=a.n(y),M;(function(J){J[J.NONE=0]="NONE",J[J.RESIZING=1]="RESIZING",J[J.RESIZED=2]="RESIZED"})(M||(M={}));var A=function(J){Object(z.a)(ce,J);var te=Object(i.a)(ce);function ce(ne){var $;return Object(R.a)(this,ce),$=te.call(this,ne),$.nextFrameActionId=void 0,$.resizeFrameId=void 0,$.textArea=void 0,$.saveTextArea=function(ee){$.textArea=ee},$.handleResize=function(ee){var o=$.state.resizeStatus,b=$.props,c=b.autoSize,D=b.onResize;if(o!==M.NONE)return;typeof D=="function"&&D(ee),c&&$.resizeOnNextFrame()},$.resizeOnNextFrame=function(){cancelAnimationFrame($.nextFrameActionId),$.nextFrameActionId=requestAnimationFrame($.resizeTextarea)},$.resizeTextarea=function(){var ee=$.props.autoSize;if(!ee||!$.textArea)return;var o=ee.minRows,b=ee.maxRows,c=_($.textArea,!1,o,b);$.setState({textareaStyles:c,resizeStatus:M.RESIZING},function(){cancelAnimationFrame($.resizeFrameId),$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:M.RESIZED},function(){$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:M.NONE}),$.fixFirefoxAutoScroll()})})})})},$.renderTextArea=function(){var ee=$.props,o=ee.prefixCls,b=o===void 0?"rc-textarea":o,c=ee.autoSize,D=ee.onResize,Z=ee.className,re=ee.disabled,Se=$.state,me=Se.textareaStyles,_e=Se.resizeStatus,Me=Object(h.a)($.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ge=V()(b,Z,Object(be.a)({},"".concat(b,"-disabled"),re));"value"in Me&&(Me.value=Me.value||"");var Oe=Object(se.a)(Object(se.a)(Object(se.a)({},$.props.style),me),_e===M.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(j,{onResize:$.handleResize,disabled:!(c||D)},p.createElement("textarea",Object(k.a)({},Me,{className:ge,style:Oe,ref:$.saveTextArea})))},$.state={textareaStyles:{},resizeStatus:M.NONE},$}return Object(Pe.a)(ce,[{key:"componentDidUpdate",value:function($){($.value!==this.props.value||!U()($.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var $=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange($,ee)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ce}(p.Component),Q=A,ie=function(J){Object(z.a)(ce,J);var te=Object(i.a)(ce);function ce(ne){var $;Object(R.a)(this,ce),$=te.call(this,ne),$.resizableTextArea=void 0,$.focus=function(){$.resizableTextArea.textArea.focus()},$.saveTextArea=function(o){$.resizableTextArea=o},$.handleChange=function(o){var b=$.props.onChange;$.setValue(o.target.value,function(){$.resizableTextArea.resizeTextarea()}),b&&b(o)},$.handleKeyDown=function(o){var b=$.props,c=b.onPressEnter,D=b.onKeyDown;o.keyCode===13&&c&&c(o),D&&D(o)};var ee=typeof ne.value=="undefined"||ne.value===null?ne.defaultValue:ne.value;return $.state={value:ee},$}return Object(Pe.a)(ce,[{key:"setValue",value:function($,ee){"value"in this.props||this.setState({value:$},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(Q,Object(k.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function($){return"value"in $?{value:$.value}:null}}]),ce}(p.Component),ue=xe.default=ie},Zss7:function(Ge,xe,a){var k;(function(R){var Pe=/^\s+/,z=/\s+$/,i=0,p=R.round,se=R.min,be=R.max,Y=R.random;function X(o,b){if(o=o||"",b=b||{},o instanceof X)return o;if(!(this instanceof X))return new X(o,b);var c=le(o);this._originalInput=o,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=p(100*this._a)/100,this._format=b.format||c.format,this._gradientType=b.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=c.ok,this._tc_id=i++}X.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 o=this.toRgb();return(o.r*299+o.g*587+o.b*114)/1e3},getLuminance:function(){var o=this.toRgb(),b,c,D,Z,re,Se;return b=o.r/255,c=o.g/255,D=o.b/255,b<=.03928?Z=b/12.92:Z=R.pow((b+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),D<=.03928?Se=D/12.92:Se=R.pow((D+.055)/1.055,2.4),.2126*Z+.7152*re+.0722*Se},setAlpha:function(o){return this._a=_(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=K(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=K(this._r,this._g,this._b),b=p(o.h*360),c=p(o.s*100),D=p(o.v*100);return this._a==1?"hsv("+b+", "+c+"%, "+D+"%)":"hsva("+b+", "+c+"%, "+D+"%, "+this._roundA+")"},toHsl:function(){var o=je(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=je(this._r,this._g,this._b),b=p(o.h*360),c=p(o.s*100),D=p(o.l*100);return this._a==1?"hsl("+b+", "+c+"%, "+D+"%)":"hsla("+b+", "+c+"%, "+D+"%, "+this._roundA+")"},toHex:function(o){return G(this._r,this._g,this._b,o)},toHexString:function(o){return"#"+this.toHex(o)},toHex8:function(o){return O(this._r,this._g,this._b,this._a,o)},toHex8String:function(o){return"#"+this.toHex8(o)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(y(this._r,255)*100)+"%",g:p(y(this._g,255)*100)+"%",b:p(y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(y(this._r,255)*100)+"%, "+p(y(this._g,255)*100)+"%, "+p(y(this._b,255)*100)+"%)":"rgba("+p(y(this._r,255)*100)+"%, "+p(y(this._g,255)*100)+"%, "+p(y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:L[G(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var b="#"+E(this._r,this._g,this._b,this._a),c=b,D=this._gradientType?"GradientType = 1, ":"";if(o){var Z=X(o);c="#"+E(Z._r,Z._g,Z._b,Z._a)}return"progid:DXImageTransform.Microsoft.gradient("+D+"startColorstr="+b+",endColorstr="+c+")"},toString:function(o){var b=!!o;o=o||this._format;var c=!1,D=this._a<1&&this._a>=0,Z=!b&&D&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Z?o==="name"&&this._a===0?this.toName():this.toRgbString():(o==="rgb"&&(c=this.toRgbString()),o==="prgb"&&(c=this.toPercentageRgbString()),(o==="hex"||o==="hex6")&&(c=this.toHexString()),o==="hex3"&&(c=this.toHexString(!0)),o==="hex4"&&(c=this.toHex8String(!0)),o==="hex8"&&(c=this.toHex8String()),o==="name"&&(c=this.toName()),o==="hsl"&&(c=this.toHslString()),o==="hsv"&&(c=this.toHsvString()),c||this.toHexString())},clone:function(){return X(this.toString())},_applyModification:function(o,b){var c=o.apply(null,[this].concat([].slice.call(b)));return this._r=c._r,this._g=c._g,this._b=c._b,this.setAlpha(c._a),this},lighten:function(){return this._applyModification(s,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(n,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(o,b){return o.apply(null,[this].concat([].slice.call(b)))},analogous:function(){return this._applyCombination(q,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(Re,arguments)},splitcomplement:function(){return this._applyCombination(V,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(B,arguments)}},X.fromRatio=function(o,b){if(typeof o=="object"){var c={};for(var D in o)o.hasOwnProperty(D)&&(D==="a"?c[D]=o[D]:c[D]=ue(o[D]));o=c}return X(o,b)};function le(o){var b={r:0,g:0,b:0},c=1,D=null,Z=null,re=null,Se=!1,me=!1;return typeof o=="string"&&(o=$(o)),typeof o=="object"&&(ne(o.r)&&ne(o.g)&&ne(o.b)?(b=Te(o.r,o.g,o.b),Se=!0,me=String(o.r).substr(-1)==="%"?"prgb":"rgb"):ne(o.h)&&ne(o.s)&&ne(o.v)?(D=ue(o.s),Z=ue(o.v),b=w(o.h,D,Z),Se=!0,me="hsv"):ne(o.h)&&ne(o.s)&&ne(o.l)&&(D=ue(o.s),re=ue(o.l),b=fe(o.h,D,re),Se=!0,me="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=_(c),{ok:Se,format:o.format||me,r:se(255,be(b.r,0)),g:se(255,be(b.g,0)),b:se(255,be(b.b,0)),a:c}}function Te(o,b,c){return{r:y(o,255)*255,g:y(b,255)*255,b:y(c,255)*255}}function je(o,b,c){o=y(o,255),b=y(b,255),c=y(c,255);var D=be(o,b,c),Z=se(o,b,c),re,Se,me=(D+Z)/2;if(D==Z)re=Se=0;else{var _e=D-Z;Se=me>.5?_e/(2-D-Z):_e/(D+Z);switch(D){case o:re=(b-c)/_e+(b1&&(Oe-=1),Oe<1/6?Me+(ge-Me)*6*Oe:Oe<1/2?ge:Oe<2/3?Me+(ge-Me)*(2/3-Oe)*6:Me}if(b===0)D=Z=re=c;else{var me=c<.5?c*(1+b):c+b-c*b,_e=2*c-me;D=Se(_e,me,o+1/3),Z=Se(_e,me,o),re=Se(_e,me,o-1/3)}return{r:D*255,g:Z*255,b:re*255}}function K(o,b,c){o=y(o,255),b=y(b,255),c=y(c,255);var D=be(o,b,c),Z=se(o,b,c),re,Se,me=D,_e=D-Z;if(Se=D===0?0:_e/D,D==Z)re=0;else{switch(D){case o:re=(b-c)/_e+(b>1)+720)%360;--b;)D.h=(D.h+Z)%360,re.push(X(D));return re}function Re(o,b){b=b||6;for(var c=X(o).toHsv(),D=c.h,Z=c.s,re=c.v,Se=[],me=1/b;b--;)Se.push(X({h:D,s:Z,v:re})),re=(re+me)%1;return Se}X.mix=function(o,b,c){c=c===0?0:c||50;var D=X(o).toRgb(),Z=X(b).toRgb(),re=c/100,Se={r:(Z.r-D.r)*re+D.r,g:(Z.g-D.g)*re+D.g,b:(Z.b-D.b)*re+D.b,a:(Z.a-D.a)*re+D.a};return X(Se)},X.readability=function(o,b){var c=X(o),D=X(b);return(R.max(c.getLuminance(),D.getLuminance())+.05)/(R.min(c.getLuminance(),D.getLuminance())+.05)},X.isReadable=function(o,b,c){var D=X.readability(o,b),Z,re;re=!1,Z=ee(c);switch(Z.level+Z.size){case"AAsmall":case"AAAlarge":re=D>=4.5;break;case"AAlarge":re=D>=3;break;case"AAAsmall":re=D>=7;break}return re},X.mostReadable=function(o,b,c){var D=null,Z=0,re,Se,me,_e;c=c||{},Se=c.includeFallbackColors,me=c.level,_e=c.size;for(var Me=0;MeZ&&(Z=re,D=X(b[Me]));return X.isReadable(o,D,{level:me,size:_e})||!Se?D:(c.includeFallbackColors=!1,X.mostReadable(o,["#fff","#000"],c))};var oe=X.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"},L=X.hexNames=W(oe);function W(o){var b={};for(var c in o)o.hasOwnProperty(c)&&(b[o[c]]=c);return b}function _(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function y(o,b){A(o)&&(o="100%");var c=Q(o);return o=se(b,be(0,parseFloat(o))),c&&(o=parseInt(o*b,10)/100),R.abs(o-b)<1e-6?1:o%b/parseFloat(b)}function U(o){return se(1,be(0,o))}function M(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function Q(o){return typeof o=="string"&&o.indexOf("%")!=-1}function ie(o){return o.length==1?"0"+o:""+o}function ue(o){return o<=1&&(o=o*100+"%"),o}function J(o){return R.round(parseFloat(o)*255).toString(16)}function te(o){return M(o)/255}var ce=function(){var o="[-\\+]?\\d+%?",b="[-\\+]?\\d*\\.\\d+%?",c="(?:"+b+")|(?:"+o+")",D="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Z="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+Z),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+Z),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+Z),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 ne(o){return!!ce.CSS_UNIT.exec(o)}function $(o){o=o.replace(Pe,"").replace(z,"").toLowerCase();var b=!1;if(oe[o])o=oe[o],b=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ce.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ce.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ce.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ce.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ce.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ce.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ce.hex8.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),a:te(c[4]),format:b?"name":"hex8"}:(c=ce.hex6.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),format:b?"name":"hex"}:(c=ce.hex4.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),a:te(c[4]+""+c[4]),format:b?"name":"hex8"}:(c=ce.hex3.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),format:b?"name":"hex"}:!1}function ee(o){var b,c;return o=o||{level:"AA",size:"small"},b=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),b!=="AA"&&b!=="AAA"&&(b="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:b,size:c}}Ge.exports?Ge.exports=X:!(k=function(){return X}.call(xe,a,xe,Ge),k!==void 0&&(Ge.exports=k))})(Math)},aaBP:function(Ge,xe,a){(function(k){if(!0)Ge.exports=k();else var R})(function(k){"use strict";var R=function(O,E){return O+E&4294967295},Pe=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function z(O,E,l,n,g,s){return E=R(R(E,O),R(n,s)),R(E<>>32-g,l)}function i(O,E){var l=O[0],n=O[1],g=O[2],s=O[3];l+=(n&g|~n&s)+E[0]-680876936|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[1]-389564586|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[2]+606105819|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[3]-1044525330|0,n=(n<<22|n>>>10)+g|0,l+=(n&g|~n&s)+E[4]-176418897|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[6]-1473231341|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[7]-45705983|0,n=(n<<22|n>>>10)+g|0,l+=(n&g|~n&s)+E[8]+1770035416|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[10]-42063|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[11]-1990404162|0,n=(n<<22|n>>>10)+g|0,l+=(n&g|~n&s)+E[12]+1804603682|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[13]-40341101|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[14]-1502002290|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[15]+1236535329|0,n=(n<<22|n>>>10)+g|0,l+=(n&s|g&~s)+E[1]-165796510|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[11]+643717713|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[0]-373897302|0,n=(n<<20|n>>>12)+g|0,l+=(n&s|g&~s)+E[5]-701558691|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[10]+38016083|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[15]-660478335|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[4]-405537848|0,n=(n<<20|n>>>12)+g|0,l+=(n&s|g&~s)+E[9]+568446438|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[3]-187363961|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[8]+1163531501|0,n=(n<<20|n>>>12)+g|0,l+=(n&s|g&~s)+E[13]-1444681467|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[2]-51403784|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[7]+1735328473|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[12]-1926607734|0,n=(n<<20|n>>>12)+g|0,l+=(n^g^s)+E[5]-378558|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[11]+1839030562|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[14]-35309556|0,n=(n<<23|n>>>9)+g|0,l+=(n^g^s)+E[1]-1530992060|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[7]-155497632|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[10]-1094730640|0,n=(n<<23|n>>>9)+g|0,l+=(n^g^s)+E[13]+681279174|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[0]-358537222|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[3]-722521979|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[6]+76029189|0,n=(n<<23|n>>>9)+g|0,l+=(n^g^s)+E[9]-640364487|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[12]-421815835|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[15]+530742520|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[2]-995338651|0,n=(n<<23|n>>>9)+g|0,l+=(g^(n|~s))+E[0]-198630844|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[14]-1416354905|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[5]-57434055|0,n=(n<<21|n>>>11)+g|0,l+=(g^(n|~s))+E[12]+1700485571|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[10]-1051523|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[1]-2054922799|0,n=(n<<21|n>>>11)+g|0,l+=(g^(n|~s))+E[8]+1873313359|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[15]-30611744|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[6]-1560198380|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[13]+1309151649|0,n=(n<<21|n>>>11)+g|0,l+=(g^(n|~s))+E[4]-145523070|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[2]+718787259|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[9]-343485551|0,n=(n<<21|n>>>11)+g|0,O[0]=l+O[0]|0,O[1]=n+O[1]|0,O[2]=g+O[2]|0,O[3]=s+O[3]|0}function p(O){var E=[],l;for(l=0;l<64;l+=4)E[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return E}function se(O){var E=[],l;for(l=0;l<64;l+=4)E[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return E}function be(O){var E=O.length,l=[1732584193,-271733879,-1732584194,271733878],n,g,s,I,H,v;for(n=64;n<=E;n+=64)i(l,p(O.substring(n-64,n)));for(O=O.substring(n-64),g=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n>2]|=O.charCodeAt(n)<<(n%4<<3);if(s[n>>2]|=128<<(n%4<<3),n>55)for(i(l,s),n=0;n<16;n+=1)s[n]=0;return I=E*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(I[2],16),v=parseInt(I[1],16)||0,s[14]=H,s[15]=v,i(l,s),l}function Y(O){var E=O.length,l=[1732584193,-271733879,-1732584194,271733878],n,g,s,I,H,v;for(n=64;n<=E;n+=64)i(l,se(O.subarray(n-64,n)));for(O=n-64>2]|=O[n]<<(n%4<<3);if(s[n>>2]|=128<<(n%4<<3),n>55)for(i(l,s),n=0;n<16;n+=1)s[n]=0;return I=E*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(I[2],16),v=parseInt(I[1],16)||0,s[14]=H,s[15]=v,i(l,s),l}function X(O){var E="",l;for(l=0;l<4;l+=1)E+=Pe[O>>l*8+4&15]+Pe[O>>l*8&15];return E}function le(O){var E;for(E=0;E>16)+(E>>16)+(l>>16);return n<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(E,l){return E=E|0||0,E<0?Math.max(E+l,0):Math.min(E,l)}ArrayBuffer.prototype.slice=function(E,l){var n=this.byteLength,g=O(E,n),s=n,I,H,v,j;return l!==k&&(s=O(l,n)),g>s?new ArrayBuffer(0):(I=s-g,H=new ArrayBuffer(I),v=new Uint8Array(H),j=new Uint8Array(this,g,I),v.set(j),H)}}();function Te(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function je(O,E){var l=O.length,n=new ArrayBuffer(l),g=new Uint8Array(n),s;for(s=0;s>2]|=E.charCodeAt(n)<<(n%4<<3);return this._finish(g,l),s=le(this._hash),O&&(s=w(s)),this.reset(),s},G.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},G.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},G.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},G.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},G.prototype._finish=function(O,E){var l=E,n,g,s;if(O[l>>2]|=128<<(l%4<<3),l>55)for(i(this._hash,O),l=0;l<16;l+=1)O[l]=0;n=this._length*8,n=n.toString(16).match(/(.*?)(.{0,8})$/),g=parseInt(n[2],16),s=parseInt(n[1],16)||0,O[14]=g,O[15]=s,i(this._hash,O)},G.hash=function(O,E){return G.hashBinary(Te(O),E)},G.hashBinary=function(O,E){var l=be(O),n=le(l);return E?w(n):n},G.ArrayBuffer=function(){this.reset()},G.ArrayBuffer.prototype.append=function(O){var E=K(this._buff.buffer,O,!0),l=E.length,n;for(this._length+=O.byteLength,n=64;n<=l;n+=64)i(this._hash,se(E.subarray(n-64,n)));return this._buff=n-64>2]|=E[g]<<(g%4<<3);return this._finish(n,l),s=le(this._hash),O&&(s=w(s)),this.reset(),s},G.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},G.ArrayBuffer.prototype.getState=function(){var O=G.prototype.getState.call(this);return O.buff=fe(O.buff),O},G.ArrayBuffer.prototype.setState=function(O){return O.buff=je(O.buff,!0),G.prototype.setState.call(this,O)},G.ArrayBuffer.prototype.destroy=G.prototype.destroy,G.ArrayBuffer.prototype._finish=G.prototype._finish,G.ArrayBuffer.hash=function(O,E){var l=Y(new Uint8Array(O)),n=le(l);return E?w(n):n},G})},bT9E:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return R});var k=a("VTBJ");function R(Pe,z){var i=Object(k.a)({},Pe);return Array.isArray(z)&&z.forEach(function(p){delete i[p]}),i}},biw7:function(Ge,xe,a){"use strict";var k=a("q1tI"),R=a.n(k),Pe=k.createContext(null);xe.a=Pe},ffu0:function(Ge,xe,a){"use strict";var k=a("0Owb"),R=a("tJVT"),Pe=a("miYZ"),z=a("tsqr"),i=a("oBTY"),p=a("9og8"),se=a("PpiC"),be=a("DZo9"),Y=a("8z0m"),X=a("WmNS"),le=a.n(X),Te=a("q1tI"),je=a.n(Te),fe=a("ErOA"),K=a("9kvl"),w=a("/jad"),G=a.n(w),O=a("aaBP"),E=a.n(O),l=Y.a.Dragger,n=15*1024*1024,g=function(I){var H=I.dispatch,v=I.user,j=I.globalSetting,h=I.setloading,B=I.uploading,V=I.setmd5List,q=I.content,Re=I.shixunHomeworks,oe=Object(se.a)(I,["dispatch","user","globalSetting","setloading","uploading","setmd5List","content","shixunHomeworks"]);Object(Te.useEffect)(function(){Re.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),me());function me(){return _e.apply(this,arguments)}function _e(){return _e=Object(p.a)(le.a.mark(function Me(){var ge,Oe;return le.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,Object(fe.a)((j==null||((ge=j.setting)===null||ge===void 0)?void 0:ge.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:Re.actionTabs.params},!0,!0);case 2:Oe=Ke.sent,Oe.errorCode==="000000"&&(_[0].file.percent=100,_[0].file.status="success",y(Object(i.a)(_)),h(100),z.b.info("\u4E0A\u4F20\u6210\u529F"),V(Oe==null?void 0:Oe.data));case 4:case"end":return Ke.stop()}},Me)})),_e.apply(this,arguments)}},[Re.actionTabs.key]);var L=Object(Te.useState)([]),W=Object(R.a)(L,2),_=W[0],y=W[1],U=Object(Te.useState)(0),M=Object(R.a)(U,2),A=M[0],Q=M[1],ie=Object(Te.useState)(!1),ue=Object(R.a)(ie,2),J=ue[0],te=ue[1],ce={onRemove:function(_e){y(Object(i.a)(_.filter(function(Me){return Me.name!==_e.name})))},multiple:!0,fileList:_==null?void 0:_.map(function(me){return me.file}),customRequest:function(){},beforeUpload:function(){var me=Object(p.a)(le.a.mark(function Me(ge){var Oe;return le.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Oe=100*1024*1024*1024,!_.filter(function(Fe){return Fe.name===ge.name}).length){Ke.next=4;break}return z.b.info("".concat(ge.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ke.abrupt("return");case 4:if(!((ge==null?void 0:ge.size)>Oe)){Ke.next=7;break}return z.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Oe/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ke.abrupt("return",!1);case 7:return y([{name:ge.name,file:ge}]),Ke.abrupt("return",!1);case 9:case"end":return Ke.stop()}},Me)}));function _e(Me){return me.apply(this,arguments)}return _e}()};Object(Te.useEffect)(function(){if(B===0){var me;if(Q(0),te(!1),(_==null?void 0:_.length)<=0){z.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),h(101);return}ne(_==null||((me=_[0])===null||me===void 0)?void 0:me.file,v.userInfo.login)}},[B]);function ne(me,_e){return $.apply(this,arguments)}function $(){return $=Object(p.a)(le.a.mark(function me(_e,Me){var ge,Oe,He,Ke,Fe,et,$e;return le.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return et=b(_e),N.next=3,Object(fe.a)((j==null||((ge=j.setting)===null||ge===void 0)?void 0:ge.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:et,size:_e.size,dirName:Me}},!1,!0);case 3:if($e=N.sent,!(($e==null||((Oe=$e.data)===null||Oe===void 0)?void 0:Oe.length)>0&&($e==null||((He=$e.data)===null||He===void 0||((Ke=He[0])===null||Ke===void 0))?void 0:Ke.type)===1)){N.next=11;break}return h(100),_[0].file.percent=100,_[0].file.status="success",y(Object(i.a)(_)),z.b.info("\u4E0A\u4F20\u6210\u529F"),V($e==null?void 0:$e.data),N.abrupt("return");case 11:if(!($e.data.length>0&&$e.data[0].type===0)){N.next=14;break}return c($e.data[0].id,_e,Me),N.abrupt("return");case 14:($e==null||((Fe=$e.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ee(et,_e,Me);case 15:case"end":return N.stop()}},me)})),$.apply(this,arguments)}function ee(me,_e,Me){return o.apply(this,arguments)}function o(){return o=Object(p.a)(le.a.mark(function me(_e,Me,ge){var Oe,He,Ke,Fe,et;return le.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(fe.a)((j==null||((Oe=j.setting)===null||Oe===void 0)?void 0:Oe.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:Me.name,md5:_e,size:1,oldName:Me.name,dirName:ge}},!1,!0);case 2:Ke=Mt.sent,(Ke==null||((He=Ke.data)===null||He===void 0)?void 0:He.length)>0&&c(Ke==null||((Fe=Ke.data)===null||Fe===void 0||((et=Fe[0])===null||et===void 0))?void 0:et.id,Me,ge);case 4:case"end":return Mt.stop()}},me)})),o.apply(this,arguments)}function b(me){var _e=new E.a;if(!me.size)return _e.appendBinary(me),_e.end();if(me.size<2048)for(var Me=Math.ceil(me.size/2),ge=0;ge2048)for(var Me=Math.ceil(me.size/2e3),ge=0;geL.length)&&(W=L.length);for(var _=0,y=new Array(W);_=0)continue;if(!Object.prototype.propertyIsEnumerable.call(L,y))continue;_[y]=L[y]}}return _}function K(L,W){if(L==null)return{};var _={},y=Object.keys(L),U,M;for(M=0;M=0)continue;_[U]=L[U]}return _}var w=function(W){var _=W.className,y=W.percent,U=W.prefixCls,M=W.strokeColor,A=W.strokeLinecap,Q=W.strokeWidth,ie=W.style,ue=W.trailColor,J=W.trailWidth,te=W.transition,ce=fe(W,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ce.gapPosition;var ne=Array.isArray(y)?y:[y],$=Array.isArray(M)?M:[M],ee=p(ne),o=be(ee,1),b=o[0],c=Q/2,D=100-Q/2,Z="M ".concat(A==="round"?c:0,",").concat(c,` - L `).concat(A==="round"?D:100,",").concat(c),re="0 0 100 ".concat(Q),Se=0;return R.a.createElement("svg",se({className:z()("".concat(U,"-line"),_),viewBox:re,preserveAspectRatio:"none",style:ie},ce),R.a.createElement("path",{className:"".concat(U,"-line-trail"),d:Z,strokeLinecap:A,stroke:ue,strokeWidth:J||Q,fillOpacity:"0"}),ne.map(function(me,_e){var Me={strokeDasharray:"".concat(me,"px, 100px"),strokeDashoffset:"-".concat(Se,"px"),transition:te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ge=$[_e]||$[$.length-1];return Se+=me,R.a.createElement("path",{key:_e,className:"".concat(U,"-line-path"),d:Z,strokeLinecap:A,stroke:ge,strokeWidth:Q,fillOpacity:"0",ref:b[_e],style:Me})}))};w.defaultProps=i;var G=w;function O(){return O=Object.assign||function(L){for(var W=1;W1&&arguments[1]!==void 0?arguments[1]:!1,ce=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if(te&&oe[ce])return oe[ce];var ne=window.getComputedStyle(J),$=ne.getPropertyValue("box-sizing")||ne.getPropertyValue("-moz-box-sizing")||ne.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(ne.getPropertyValue("padding-bottom"))+parseFloat(ne.getPropertyValue("padding-top")),o=parseFloat(ne.getPropertyValue("border-bottom-width"))+parseFloat(ne.getPropertyValue("border-top-width")),b=Re.map(function(D){return"".concat(D,":").concat(ne.getPropertyValue(D))}).join(";"),c={sizingStyle:b,paddingSize:ee,borderSize:o,boxSizing:$};return te&&ce&&(oe[ce]=c),c}function _(J){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),J.getAttribute("wrap")?L.setAttribute("wrap",J.getAttribute("wrap")):L.removeAttribute("wrap");var $=W(J,te),ee=$.paddingSize,o=$.borderSize,b=$.boxSizing,c=$.sizingStyle;L.setAttribute("style","".concat(c,";").concat(q)),L.value=J.value||J.placeholder||"";var D=Number.MIN_SAFE_INTEGER,Z=Number.MAX_SAFE_INTEGER,re=L.scrollHeight,Te;if(b==="border-box"?re+=o:b==="content-box"&&(re-=ee),ce!==null||ne!==null){L.value=" ";var me=L.scrollHeight-ee;ce!==null&&(D=me*ce,b==="border-box"&&(D=D+ee+o),re=Math.max(D,re)),ne!==null&&(Z=me*ne,b==="border-box"&&(Z=Z+ee+o),Te=re>Z?"":"hidden",re=Math.min(Z,re))}return{height:re,minHeight:D,maxHeight:Z,overflowY:Te,resize:"none"}}var y=a("Gytx"),U=a.n(y),M;(function(J){J[J.NONE=0]="NONE",J[J.RESIZING=1]="RESIZING",J[J.RESIZED=2]="RESIZED"})(M||(M={}));var A=function(J){Object(z.a)(ce,J);var te=Object(i.a)(ce);function ce(ne){var $;return Object(R.a)(this,ce),$=te.call(this,ne),$.nextFrameActionId=void 0,$.resizeFrameId=void 0,$.textArea=void 0,$.saveTextArea=function(ee){$.textArea=ee},$.handleResize=function(ee){var o=$.state.resizeStatus,b=$.props,c=b.autoSize,D=b.onResize;if(o!==M.NONE)return;typeof D=="function"&&D(ee),c&&$.resizeOnNextFrame()},$.resizeOnNextFrame=function(){cancelAnimationFrame($.nextFrameActionId),$.nextFrameActionId=requestAnimationFrame($.resizeTextarea)},$.resizeTextarea=function(){var ee=$.props.autoSize;if(!ee||!$.textArea)return;var o=ee.minRows,b=ee.maxRows,c=_($.textArea,!1,o,b);$.setState({textareaStyles:c,resizeStatus:M.RESIZING},function(){cancelAnimationFrame($.resizeFrameId),$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:M.RESIZED},function(){$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:M.NONE}),$.fixFirefoxAutoScroll()})})})})},$.renderTextArea=function(){var ee=$.props,o=ee.prefixCls,b=o===void 0?"rc-textarea":o,c=ee.autoSize,D=ee.onResize,Z=ee.className,re=ee.disabled,Te=$.state,me=Te.textareaStyles,_e=Te.resizeStatus,Me=Object(h.a)($.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ge=V()(b,Z,Object(be.a)({},"".concat(b,"-disabled"),re));"value"in Me&&(Me.value=Me.value||"");var Oe=Object(se.a)(Object(se.a)(Object(se.a)({},$.props.style),me),_e===M.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(j,{onResize:$.handleResize,disabled:!(c||D)},p.createElement("textarea",Object(k.a)({},Me,{className:ge,style:Oe,ref:$.saveTextArea})))},$.state={textareaStyles:{},resizeStatus:M.NONE},$}return Object(Pe.a)(ce,[{key:"componentDidUpdate",value:function($){($.value!==this.props.value||!U()($.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var $=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange($,ee)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ce}(p.Component),Q=A,ie=function(J){Object(z.a)(ce,J);var te=Object(i.a)(ce);function ce(ne){var $;Object(R.a)(this,ce),$=te.call(this,ne),$.resizableTextArea=void 0,$.focus=function(){$.resizableTextArea.textArea.focus()},$.saveTextArea=function(o){$.resizableTextArea=o},$.handleChange=function(o){var b=$.props.onChange;$.setValue(o.target.value,function(){$.resizableTextArea.resizeTextarea()}),b&&b(o)},$.handleKeyDown=function(o){var b=$.props,c=b.onPressEnter,D=b.onKeyDown;o.keyCode===13&&c&&c(o),D&&D(o)};var ee=typeof ne.value=="undefined"||ne.value===null?ne.defaultValue:ne.value;return $.state={value:ee},$}return Object(Pe.a)(ce,[{key:"setValue",value:function($,ee){"value"in this.props||this.setState({value:$},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(Q,Object(k.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function($){return"value"in $?{value:$.value}:null}}]),ce}(p.Component),ue=xe.default=ie},Zss7:function(Ge,xe,a){var k;(function(R){var Pe=/^\s+/,z=/\s+$/,i=0,p=R.round,se=R.min,be=R.max,Y=R.random;function X(o,b){if(o=o||"",b=b||{},o instanceof X)return o;if(!(this instanceof X))return new X(o,b);var c=le(o);this._originalInput=o,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=p(100*this._a)/100,this._format=b.format||c.format,this._gradientType=b.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=c.ok,this._tc_id=i++}X.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 o=this.toRgb();return(o.r*299+o.g*587+o.b*114)/1e3},getLuminance:function(){var o=this.toRgb(),b,c,D,Z,re,Te;return b=o.r/255,c=o.g/255,D=o.b/255,b<=.03928?Z=b/12.92:Z=R.pow((b+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),D<=.03928?Te=D/12.92:Te=R.pow((D+.055)/1.055,2.4),.2126*Z+.7152*re+.0722*Te},setAlpha:function(o){return this._a=_(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=K(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=K(this._r,this._g,this._b),b=p(o.h*360),c=p(o.s*100),D=p(o.v*100);return this._a==1?"hsv("+b+", "+c+"%, "+D+"%)":"hsva("+b+", "+c+"%, "+D+"%, "+this._roundA+")"},toHsl:function(){var o=je(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=je(this._r,this._g,this._b),b=p(o.h*360),c=p(o.s*100),D=p(o.l*100);return this._a==1?"hsl("+b+", "+c+"%, "+D+"%)":"hsla("+b+", "+c+"%, "+D+"%, "+this._roundA+")"},toHex:function(o){return G(this._r,this._g,this._b,o)},toHexString:function(o){return"#"+this.toHex(o)},toHex8:function(o){return O(this._r,this._g,this._b,this._a,o)},toHex8String:function(o){return"#"+this.toHex8(o)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(y(this._r,255)*100)+"%",g:p(y(this._g,255)*100)+"%",b:p(y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(y(this._r,255)*100)+"%, "+p(y(this._g,255)*100)+"%, "+p(y(this._b,255)*100)+"%)":"rgba("+p(y(this._r,255)*100)+"%, "+p(y(this._g,255)*100)+"%, "+p(y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:L[G(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var b="#"+E(this._r,this._g,this._b,this._a),c=b,D=this._gradientType?"GradientType = 1, ":"";if(o){var Z=X(o);c="#"+E(Z._r,Z._g,Z._b,Z._a)}return"progid:DXImageTransform.Microsoft.gradient("+D+"startColorstr="+b+",endColorstr="+c+")"},toString:function(o){var b=!!o;o=o||this._format;var c=!1,D=this._a<1&&this._a>=0,Z=!b&&D&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Z?o==="name"&&this._a===0?this.toName():this.toRgbString():(o==="rgb"&&(c=this.toRgbString()),o==="prgb"&&(c=this.toPercentageRgbString()),(o==="hex"||o==="hex6")&&(c=this.toHexString()),o==="hex3"&&(c=this.toHexString(!0)),o==="hex4"&&(c=this.toHex8String(!0)),o==="hex8"&&(c=this.toHex8String()),o==="name"&&(c=this.toName()),o==="hsl"&&(c=this.toHslString()),o==="hsv"&&(c=this.toHsvString()),c||this.toHexString())},clone:function(){return X(this.toString())},_applyModification:function(o,b){var c=o.apply(null,[this].concat([].slice.call(b)));return this._r=c._r,this._g=c._g,this._b=c._b,this.setAlpha(c._a),this},lighten:function(){return this._applyModification(s,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(n,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(o,b){return o.apply(null,[this].concat([].slice.call(b)))},analogous:function(){return this._applyCombination(q,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(Re,arguments)},splitcomplement:function(){return this._applyCombination(V,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(B,arguments)}},X.fromRatio=function(o,b){if(typeof o=="object"){var c={};for(var D in o)o.hasOwnProperty(D)&&(D==="a"?c[D]=o[D]:c[D]=ue(o[D]));o=c}return X(o,b)};function le(o){var b={r:0,g:0,b:0},c=1,D=null,Z=null,re=null,Te=!1,me=!1;return typeof o=="string"&&(o=$(o)),typeof o=="object"&&(ne(o.r)&&ne(o.g)&&ne(o.b)?(b=Se(o.r,o.g,o.b),Te=!0,me=String(o.r).substr(-1)==="%"?"prgb":"rgb"):ne(o.h)&&ne(o.s)&&ne(o.v)?(D=ue(o.s),Z=ue(o.v),b=w(o.h,D,Z),Te=!0,me="hsv"):ne(o.h)&&ne(o.s)&&ne(o.l)&&(D=ue(o.s),re=ue(o.l),b=fe(o.h,D,re),Te=!0,me="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=_(c),{ok:Te,format:o.format||me,r:se(255,be(b.r,0)),g:se(255,be(b.g,0)),b:se(255,be(b.b,0)),a:c}}function Se(o,b,c){return{r:y(o,255)*255,g:y(b,255)*255,b:y(c,255)*255}}function je(o,b,c){o=y(o,255),b=y(b,255),c=y(c,255);var D=be(o,b,c),Z=se(o,b,c),re,Te,me=(D+Z)/2;if(D==Z)re=Te=0;else{var _e=D-Z;Te=me>.5?_e/(2-D-Z):_e/(D+Z);switch(D){case o:re=(b-c)/_e+(b1&&(Oe-=1),Oe<1/6?Me+(ge-Me)*6*Oe:Oe<1/2?ge:Oe<2/3?Me+(ge-Me)*(2/3-Oe)*6:Me}if(b===0)D=Z=re=c;else{var me=c<.5?c*(1+b):c+b-c*b,_e=2*c-me;D=Te(_e,me,o+1/3),Z=Te(_e,me,o),re=Te(_e,me,o-1/3)}return{r:D*255,g:Z*255,b:re*255}}function K(o,b,c){o=y(o,255),b=y(b,255),c=y(c,255);var D=be(o,b,c),Z=se(o,b,c),re,Te,me=D,_e=D-Z;if(Te=D===0?0:_e/D,D==Z)re=0;else{switch(D){case o:re=(b-c)/_e+(b>1)+720)%360;--b;)D.h=(D.h+Z)%360,re.push(X(D));return re}function Re(o,b){b=b||6;for(var c=X(o).toHsv(),D=c.h,Z=c.s,re=c.v,Te=[],me=1/b;b--;)Te.push(X({h:D,s:Z,v:re})),re=(re+me)%1;return Te}X.mix=function(o,b,c){c=c===0?0:c||50;var D=X(o).toRgb(),Z=X(b).toRgb(),re=c/100,Te={r:(Z.r-D.r)*re+D.r,g:(Z.g-D.g)*re+D.g,b:(Z.b-D.b)*re+D.b,a:(Z.a-D.a)*re+D.a};return X(Te)},X.readability=function(o,b){var c=X(o),D=X(b);return(R.max(c.getLuminance(),D.getLuminance())+.05)/(R.min(c.getLuminance(),D.getLuminance())+.05)},X.isReadable=function(o,b,c){var D=X.readability(o,b),Z,re;re=!1,Z=ee(c);switch(Z.level+Z.size){case"AAsmall":case"AAAlarge":re=D>=4.5;break;case"AAlarge":re=D>=3;break;case"AAAsmall":re=D>=7;break}return re},X.mostReadable=function(o,b,c){var D=null,Z=0,re,Te,me,_e;c=c||{},Te=c.includeFallbackColors,me=c.level,_e=c.size;for(var Me=0;MeZ&&(Z=re,D=X(b[Me]));return X.isReadable(o,D,{level:me,size:_e})||!Te?D:(c.includeFallbackColors=!1,X.mostReadable(o,["#fff","#000"],c))};var oe=X.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"},L=X.hexNames=W(oe);function W(o){var b={};for(var c in o)o.hasOwnProperty(c)&&(b[o[c]]=c);return b}function _(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function y(o,b){A(o)&&(o="100%");var c=Q(o);return o=se(b,be(0,parseFloat(o))),c&&(o=parseInt(o*b,10)/100),R.abs(o-b)<1e-6?1:o%b/parseFloat(b)}function U(o){return se(1,be(0,o))}function M(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function Q(o){return typeof o=="string"&&o.indexOf("%")!=-1}function ie(o){return o.length==1?"0"+o:""+o}function ue(o){return o<=1&&(o=o*100+"%"),o}function J(o){return R.round(parseFloat(o)*255).toString(16)}function te(o){return M(o)/255}var ce=function(){var o="[-\\+]?\\d+%?",b="[-\\+]?\\d*\\.\\d+%?",c="(?:"+b+")|(?:"+o+")",D="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Z="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+Z),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+Z),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+Z),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 ne(o){return!!ce.CSS_UNIT.exec(o)}function $(o){o=o.replace(Pe,"").replace(z,"").toLowerCase();var b=!1;if(oe[o])o=oe[o],b=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ce.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ce.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ce.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ce.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ce.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ce.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ce.hex8.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),a:te(c[4]),format:b?"name":"hex8"}:(c=ce.hex6.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),format:b?"name":"hex"}:(c=ce.hex4.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),a:te(c[4]+""+c[4]),format:b?"name":"hex8"}:(c=ce.hex3.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),format:b?"name":"hex"}:!1}function ee(o){var b,c;return o=o||{level:"AA",size:"small"},b=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),b!=="AA"&&b!=="AAA"&&(b="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:b,size:c}}Ge.exports?Ge.exports=X:!(k=function(){return X}.call(xe,a,xe,Ge),k!==void 0&&(Ge.exports=k))})(Math)},aaBP:function(Ge,xe,a){(function(k){if(!0)Ge.exports=k();else var R})(function(k){"use strict";var R=function(O,E){return O+E&4294967295},Pe=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function z(O,E,l,n,g,s){return E=R(R(E,O),R(n,s)),R(E<>>32-g,l)}function i(O,E){var l=O[0],n=O[1],g=O[2],s=O[3];l+=(n&g|~n&s)+E[0]-680876936|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[1]-389564586|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[2]+606105819|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[3]-1044525330|0,n=(n<<22|n>>>10)+g|0,l+=(n&g|~n&s)+E[4]-176418897|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[6]-1473231341|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[7]-45705983|0,n=(n<<22|n>>>10)+g|0,l+=(n&g|~n&s)+E[8]+1770035416|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[10]-42063|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[11]-1990404162|0,n=(n<<22|n>>>10)+g|0,l+=(n&g|~n&s)+E[12]+1804603682|0,l=(l<<7|l>>>25)+n|0,s+=(l&n|~l&g)+E[13]-40341101|0,s=(s<<12|s>>>20)+l|0,g+=(s&l|~s&n)+E[14]-1502002290|0,g=(g<<17|g>>>15)+s|0,n+=(g&s|~g&l)+E[15]+1236535329|0,n=(n<<22|n>>>10)+g|0,l+=(n&s|g&~s)+E[1]-165796510|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[11]+643717713|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[0]-373897302|0,n=(n<<20|n>>>12)+g|0,l+=(n&s|g&~s)+E[5]-701558691|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[10]+38016083|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[15]-660478335|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[4]-405537848|0,n=(n<<20|n>>>12)+g|0,l+=(n&s|g&~s)+E[9]+568446438|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[3]-187363961|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[8]+1163531501|0,n=(n<<20|n>>>12)+g|0,l+=(n&s|g&~s)+E[13]-1444681467|0,l=(l<<5|l>>>27)+n|0,s+=(l&g|n&~g)+E[2]-51403784|0,s=(s<<9|s>>>23)+l|0,g+=(s&n|l&~n)+E[7]+1735328473|0,g=(g<<14|g>>>18)+s|0,n+=(g&l|s&~l)+E[12]-1926607734|0,n=(n<<20|n>>>12)+g|0,l+=(n^g^s)+E[5]-378558|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[11]+1839030562|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[14]-35309556|0,n=(n<<23|n>>>9)+g|0,l+=(n^g^s)+E[1]-1530992060|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[7]-155497632|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[10]-1094730640|0,n=(n<<23|n>>>9)+g|0,l+=(n^g^s)+E[13]+681279174|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[0]-358537222|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[3]-722521979|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[6]+76029189|0,n=(n<<23|n>>>9)+g|0,l+=(n^g^s)+E[9]-640364487|0,l=(l<<4|l>>>28)+n|0,s+=(l^n^g)+E[12]-421815835|0,s=(s<<11|s>>>21)+l|0,g+=(s^l^n)+E[15]+530742520|0,g=(g<<16|g>>>16)+s|0,n+=(g^s^l)+E[2]-995338651|0,n=(n<<23|n>>>9)+g|0,l+=(g^(n|~s))+E[0]-198630844|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[14]-1416354905|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[5]-57434055|0,n=(n<<21|n>>>11)+g|0,l+=(g^(n|~s))+E[12]+1700485571|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[10]-1051523|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[1]-2054922799|0,n=(n<<21|n>>>11)+g|0,l+=(g^(n|~s))+E[8]+1873313359|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[15]-30611744|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[6]-1560198380|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[13]+1309151649|0,n=(n<<21|n>>>11)+g|0,l+=(g^(n|~s))+E[4]-145523070|0,l=(l<<6|l>>>26)+n|0,s+=(n^(l|~g))+E[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,g+=(l^(s|~n))+E[2]+718787259|0,g=(g<<15|g>>>17)+s|0,n+=(s^(g|~l))+E[9]-343485551|0,n=(n<<21|n>>>11)+g|0,O[0]=l+O[0]|0,O[1]=n+O[1]|0,O[2]=g+O[2]|0,O[3]=s+O[3]|0}function p(O){var E=[],l;for(l=0;l<64;l+=4)E[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return E}function se(O){var E=[],l;for(l=0;l<64;l+=4)E[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return E}function be(O){var E=O.length,l=[1732584193,-271733879,-1732584194,271733878],n,g,s,I,H,v;for(n=64;n<=E;n+=64)i(l,p(O.substring(n-64,n)));for(O=O.substring(n-64),g=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n>2]|=O.charCodeAt(n)<<(n%4<<3);if(s[n>>2]|=128<<(n%4<<3),n>55)for(i(l,s),n=0;n<16;n+=1)s[n]=0;return I=E*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(I[2],16),v=parseInt(I[1],16)||0,s[14]=H,s[15]=v,i(l,s),l}function Y(O){var E=O.length,l=[1732584193,-271733879,-1732584194,271733878],n,g,s,I,H,v;for(n=64;n<=E;n+=64)i(l,se(O.subarray(n-64,n)));for(O=n-64>2]|=O[n]<<(n%4<<3);if(s[n>>2]|=128<<(n%4<<3),n>55)for(i(l,s),n=0;n<16;n+=1)s[n]=0;return I=E*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(I[2],16),v=parseInt(I[1],16)||0,s[14]=H,s[15]=v,i(l,s),l}function X(O){var E="",l;for(l=0;l<4;l+=1)E+=Pe[O>>l*8+4&15]+Pe[O>>l*8&15];return E}function le(O){var E;for(E=0;E>16)+(E>>16)+(l>>16);return n<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(E,l){return E=E|0||0,E<0?Math.max(E+l,0):Math.min(E,l)}ArrayBuffer.prototype.slice=function(E,l){var n=this.byteLength,g=O(E,n),s=n,I,H,v,j;return l!==k&&(s=O(l,n)),g>s?new ArrayBuffer(0):(I=s-g,H=new ArrayBuffer(I),v=new Uint8Array(H),j=new Uint8Array(this,g,I),v.set(j),H)}}();function Se(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function je(O,E){var l=O.length,n=new ArrayBuffer(l),g=new Uint8Array(n),s;for(s=0;s>2]|=E.charCodeAt(n)<<(n%4<<3);return this._finish(g,l),s=le(this._hash),O&&(s=w(s)),this.reset(),s},G.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},G.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},G.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},G.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},G.prototype._finish=function(O,E){var l=E,n,g,s;if(O[l>>2]|=128<<(l%4<<3),l>55)for(i(this._hash,O),l=0;l<16;l+=1)O[l]=0;n=this._length*8,n=n.toString(16).match(/(.*?)(.{0,8})$/),g=parseInt(n[2],16),s=parseInt(n[1],16)||0,O[14]=g,O[15]=s,i(this._hash,O)},G.hash=function(O,E){return G.hashBinary(Se(O),E)},G.hashBinary=function(O,E){var l=be(O),n=le(l);return E?w(n):n},G.ArrayBuffer=function(){this.reset()},G.ArrayBuffer.prototype.append=function(O){var E=K(this._buff.buffer,O,!0),l=E.length,n;for(this._length+=O.byteLength,n=64;n<=l;n+=64)i(this._hash,se(E.subarray(n-64,n)));return this._buff=n-64>2]|=E[g]<<(g%4<<3);return this._finish(n,l),s=le(this._hash),O&&(s=w(s)),this.reset(),s},G.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},G.ArrayBuffer.prototype.getState=function(){var O=G.prototype.getState.call(this);return O.buff=fe(O.buff),O},G.ArrayBuffer.prototype.setState=function(O){return O.buff=je(O.buff,!0),G.prototype.setState.call(this,O)},G.ArrayBuffer.prototype.destroy=G.prototype.destroy,G.ArrayBuffer.prototype._finish=G.prototype._finish,G.ArrayBuffer.hash=function(O,E){var l=Y(new Uint8Array(O)),n=le(l);return E?w(n):n},G})},bT9E:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return R});var k=a("VTBJ");function R(Pe,z){var i=Object(k.a)({},Pe);return Array.isArray(z)&&z.forEach(function(p){delete i[p]}),i}},biw7:function(Ge,xe,a){"use strict";var k=a("q1tI"),R=a.n(k),Pe=k.createContext(null);xe.a=Pe},ffu0:function(Ge,xe,a){"use strict";var k=a("0Owb"),R=a("tJVT"),Pe=a("miYZ"),z=a("tsqr"),i=a("oBTY"),p=a("9og8"),se=a("PpiC"),be=a("DZo9"),Y=a("8z0m"),X=a("WmNS"),le=a.n(X),Se=a("q1tI"),je=a.n(Se),fe=a("ErOA"),K=a("9kvl"),w=a("/jad"),G=a.n(w),O=a("aaBP"),E=a.n(O),l=Y.a.Dragger,n=15*1024*1024,g=function(I){var H=I.dispatch,v=I.user,j=I.globalSetting,h=I.setloading,B=I.uploading,V=I.setmd5List,q=I.content,Re=I.shixunHomeworks,oe=Object(se.a)(I,["dispatch","user","globalSetting","setloading","uploading","setmd5List","content","shixunHomeworks"]);Object(Se.useEffect)(function(){Re.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),me());function me(){return _e.apply(this,arguments)}function _e(){return _e=Object(p.a)(le.a.mark(function Me(){var ge,Oe;return le.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,Object(fe.a)((j==null||((ge=j.setting)===null||ge===void 0)?void 0:ge.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:Re.actionTabs.params},!0,!0);case 2:Oe=Ke.sent,Oe.errorCode==="000000"&&(_[0].file.percent=100,_[0].file.status="success",y(Object(i.a)(_)),h(100),z.b.info("\u4E0A\u4F20\u6210\u529F"),V(Oe==null?void 0:Oe.data));case 4:case"end":return Ke.stop()}},Me)})),_e.apply(this,arguments)}},[Re.actionTabs.key]);var L=Object(Se.useState)([]),W=Object(R.a)(L,2),_=W[0],y=W[1],U=Object(Se.useState)(0),M=Object(R.a)(U,2),A=M[0],Q=M[1],ie=Object(Se.useState)(!1),ue=Object(R.a)(ie,2),J=ue[0],te=ue[1],ce={onRemove:function(_e){y(Object(i.a)(_.filter(function(Me){return Me.name!==_e.name})))},multiple:!0,fileList:_==null?void 0:_.map(function(me){return me.file}),customRequest:function(){},beforeUpload:function(){var me=Object(p.a)(le.a.mark(function Me(ge){var Oe;return le.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Oe=100*1024*1024*1024,!_.filter(function(Fe){return Fe.name===ge.name}).length){Ke.next=4;break}return z.b.info("".concat(ge.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ke.abrupt("return");case 4:if(!((ge==null?void 0:ge.size)>Oe)){Ke.next=7;break}return z.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Oe/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ke.abrupt("return",!1);case 7:return y([{name:ge.name,file:ge}]),Ke.abrupt("return",!1);case 9:case"end":return Ke.stop()}},Me)}));function _e(Me){return me.apply(this,arguments)}return _e}()};Object(Se.useEffect)(function(){if(B===0){var me;if(Q(0),te(!1),(_==null?void 0:_.length)<=0){z.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),h(101);return}ne(_==null||((me=_[0])===null||me===void 0)?void 0:me.file,v.userInfo.login)}},[B]);function ne(me,_e){return $.apply(this,arguments)}function $(){return $=Object(p.a)(le.a.mark(function me(_e,Me){var ge,Oe,He,Ke,Fe,et,$e;return le.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return et=b(_e),N.next=3,Object(fe.a)((j==null||((ge=j.setting)===null||ge===void 0)?void 0:ge.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:et,size:_e.size,dirName:Me}},!1,!0);case 3:if($e=N.sent,!(($e==null||((Oe=$e.data)===null||Oe===void 0)?void 0:Oe.length)>0&&($e==null||((He=$e.data)===null||He===void 0||((Ke=He[0])===null||Ke===void 0))?void 0:Ke.type)===1)){N.next=11;break}return h(100),_[0].file.percent=100,_[0].file.status="success",y(Object(i.a)(_)),z.b.info("\u4E0A\u4F20\u6210\u529F"),V($e==null?void 0:$e.data),N.abrupt("return");case 11:if(!($e.data.length>0&&$e.data[0].type===0)){N.next=14;break}return c($e.data[0].id,_e,Me),N.abrupt("return");case 14:($e==null||((Fe=$e.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ee(et,_e,Me);case 15:case"end":return N.stop()}},me)})),$.apply(this,arguments)}function ee(me,_e,Me){return o.apply(this,arguments)}function o(){return o=Object(p.a)(le.a.mark(function me(_e,Me,ge){var Oe,He,Ke,Fe,et;return le.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(fe.a)((j==null||((Oe=j.setting)===null||Oe===void 0)?void 0:Oe.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:Me.name,md5:_e,size:1,oldName:Me.name,dirName:ge}},!1,!0);case 2:Ke=Mt.sent,(Ke==null||((He=Ke.data)===null||He===void 0)?void 0:He.length)>0&&c(Ke==null||((Fe=Ke.data)===null||Fe===void 0||((et=Fe[0])===null||et===void 0))?void 0:et.id,Me,ge);case 4:case"end":return Mt.stop()}},me)})),o.apply(this,arguments)}function b(me){var _e=new E.a;if(!me.size)return _e.appendBinary(me),_e.end();if(me.size<2048)for(var Me=Math.ceil(me.size/2),ge=0;ge2048)for(var Me=Math.ceil(me.size/2e3),ge=0;geL.length)&&(W=L.length);for(var _=0,y=new Array(W);_=0)continue;if(!Object.prototype.propertyIsEnumerable.call(L,y))continue;_[y]=L[y]}}return _}function K(L,W){if(L==null)return{};var _={},y=Object.keys(L),U,M;for(M=0;M=0)continue;_[U]=L[U]}return _}var w=function(W){var _=W.className,y=W.percent,U=W.prefixCls,M=W.strokeColor,A=W.strokeLinecap,Q=W.strokeWidth,ie=W.style,ue=W.trailColor,J=W.trailWidth,te=W.transition,ce=fe(W,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ce.gapPosition;var ne=Array.isArray(y)?y:[y],$=Array.isArray(M)?M:[M],ee=p(ne),o=be(ee,1),b=o[0],c=Q/2,D=100-Q/2,Z="M ".concat(A==="round"?c:0,",").concat(c,` + L `).concat(A==="round"?D:100,",").concat(c),re="0 0 100 ".concat(Q),Te=0;return R.a.createElement("svg",se({className:z()("".concat(U,"-line"),_),viewBox:re,preserveAspectRatio:"none",style:ie},ce),R.a.createElement("path",{className:"".concat(U,"-line-trail"),d:Z,strokeLinecap:A,stroke:ue,strokeWidth:J||Q,fillOpacity:"0"}),ne.map(function(me,_e){var Me={strokeDasharray:"".concat(me,"px, 100px"),strokeDashoffset:"-".concat(Te,"px"),transition:te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ge=$[_e]||$[$.length-1];return Te+=me,R.a.createElement("path",{key:_e,className:"".concat(U,"-line-path"),d:Z,strokeLinecap:A,stroke:ge,strokeWidth:Q,fillOpacity:"0",ref:b[_e],style:Me})}))};w.defaultProps=i;var G=w;function O(){return O=Object.assign||function(L){for(var W=1;WL.length)&&(W=L.length);for(var _=0,y=new Array(W);_=0)continue;if(!Object.prototype.propertyIsEnumerable.call(L,y))continue;_[y]=L[y]}}return _}function v(L,W){if(L==null)return{};var _={},y=Object.keys(L),U,M;for(M=0;M=0)continue;_[U]=L[U]}return _}var j=0;function h(L){return+L.replace("%","")}function B(L){return Array.isArray(L)?L:[L]}function V(L,W,_,y){var U=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,M=arguments.length>5?arguments[5]:void 0,A=50-y/2,Q=0,ie=-A,ue=0,J=-2*A;switch(M){case"left":Q=-A,ie=0,ue=2*A,J=0;break;case"right":Q=A,ie=0,ue=-2*A,J=0;break;case"bottom":ie=A,J=2*A;break;default:}var te="M 50,50 m ".concat(Q,",").concat(ie,` a `).concat(A,",").concat(A," 0 1 1 ").concat(ue,",").concat(-J,` - a `).concat(A,",").concat(A," 0 1 1 ").concat(-ue,",").concat(J),ce=Math.PI*2*A,ne={stroke:_,strokeDasharray:"".concat(W/100*(ce-U),"px ").concat(ce,"px"),strokeDashoffset:"-".concat(U/2+L/100*(ce-U),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:te,pathStyle:ne}}var q=function(W){var _=W.prefixCls,y=W.strokeWidth,U=W.trailWidth,M=W.gapDegree,A=W.gapPosition,Q=W.trailColor,ie=W.strokeLinecap,ue=W.style,J=W.className,te=W.strokeColor,ce=W.percent,ne=H(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),$=Object(k.useMemo)(function(){return j+=1,j},[]),ee=V(0,100,Q,y,M,A),o=ee.pathString,b=ee.pathStyle,c=B(ce),D=B(te),Z=D.find(function(Me){return Object.prototype.toString.call(Me)==="[object Object]"}),re=p(c),Se=E(re,1),me=Se[0],_e=function(){var ge=0;return c.map(function(Oe,He){var Ke=D[He]||D[D.length-1],Fe=Object.prototype.toString.call(Ke)==="[object Object]"?"url(#".concat(_,"-gradient-").concat($,")"):"",et=V(ge,Oe,Ke,y,M,A);return ge+=Oe,R.a.createElement("path",{key:He,className:"".concat(_,"-circle-path"),d:et.pathString,stroke:Fe,strokeLinecap:ie,strokeWidth:y,opacity:Oe===0?0:1,fillOpacity:"0",style:et.pathStyle,ref:me[He]})})};return R.a.createElement("svg",O({className:z()("".concat(_,"-circle"),J),viewBox:"0 0 100 100",style:ue},ne),Z&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(_,"-gradient-").concat($),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Z).sort(function(Me,ge){return h(Me)-h(ge)}).map(function(Me,ge){return R.a.createElement("stop",{key:ge,offset:Me,stopColor:Z[Me]})}))),R.a.createElement("path",{className:"".concat(_,"-circle-trail"),d:o,stroke:Q,strokeLinecap:ie,strokeWidth:U||y,fillOpacity:"0",style:b}),_e().reverse())};q.defaultProps=i;var Re=q,oe={Line:G,Circle:Re}},hW8S:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return z}),a.d(xe,"c",function(){return i}),a.d(xe,"b",function(){return p});var k=a("VTBJ"),R=a("Ff2n"),Pe=a("Kwbf"),z="RC_TABLE_INTERNAL_COL_DEFINE";function i(se){var be=se.expandable,Y=Object(R.a)(se,["expandable"]);return"expandable"in se?Object(k.a)(Object(k.a)({},Y),be):Y}function p(se){return Object.keys(se).reduce(function(be,Y){return(Y.substr(0,5)==="data-"||Y.substr(0,5)==="aria-")&&(be[Y]=se[Y]),be},{})}},k3GJ:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return mo});var k=a("rePB"),R=a("ODXe"),Pe=a("Ff2n"),z=a("VTBJ"),i=a("q1tI"),p=a("TSYQ"),se=a.n(p),be=a("Zm9Q"),Y=a("6cGi"),X=a("KQm4"),le=a("xEkU"),Te=a.n(le),je=a("t23M");function fe(u){var C=Object(i.useRef)(),S=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tP&&(pe=P-ve),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var we=r.length,Ve=we,nt=0;ntx+pe){Ve=nt-1;break}}for(var ot=0,at=we-1;at>=0;at-=1){var Ze=u.get(r[at].key)||n;if(Ze[T]1&&arguments[1]!==void 0?arguments[1]:!1,f=C&&typeof C.getBoundingClientRect=="function"&&C.getBoundingClientRect().width;if(f){if(S){var e=getComputedStyle(C),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},ge=function(C,S,f){C&&Object(L.a)(C.style)==="object"&&(C.style[S]=f)},Oe=function(){return c.any},He=a("bdgK"),Ke=a("i8i4"),Fe=a.n(Ke),et=a("wgJM"),$e=a("l4aY"),Mt=a("m+aA"),N=a("c+Xe"),he=a("zT1h"),Ee=a("QC+M");function Ne(u,C,S){return S?u[0]===C[0]:u[0]===C[0]&&u[1]===C[1]}function De(u,C,S){var f=u[C]||{};return Object(z.a)(Object(z.a)({},f),S)}function Ce(u,C,S,f){for(var e=S.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;C();var r=Object(et.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):S(f,e-1)});u.current=r}return i.useEffect(function(){return function(){C()}},[]),[S,C]},Dn=[xt,_t,bt,tt],Nn=!1,Fn=!0;function rn(u){return u===bt||u===tt}var hn=function(u,C){var S=i.useState(Ht),f=Object(R.a)(S,2),e=f[0],r=f[1],t=St(),d=Object(R.a)(t,2),m=d[0],T=d[1];function x(){r(xt)}return $t(function(){if(e!==Ht&&e!==tt){var P=Dn.indexOf(e),F=Dn[P+1],ve=C(e);ve===Nn?r(F):m(function(pe){function we(){if(pe.isCanceled())return;r(F)}ve===!0?we():Promise.resolve(ve).then(we)})}},[u,e]),i.useEffect(function(){return function(){T()}},[]),[x,e]},On=function(u){var C=Object(i.useRef)(),S=Object(i.useRef)(u);S.current=u;var f=i.useCallback(function(t){S.current(t)},[]);function e(t){t&&(t.removeEventListener(Dt,f),t.removeEventListener(Qe,f))}function r(t){C.current&&C.current!==t&&e(C.current),t&&t!==C.current&&(t.addEventListener(Dt,f),t.addEventListener(Qe,f),C.current=t)}return i.useEffect(function(){return function(){e(C.current)}},[]),[r,e]};function _n(u,C,S,f){var e=f.motionEnter,r=e===void 0?!0:e,t=f.motionAppear,d=t===void 0?!0:t,m=f.motionLeave,T=m===void 0?!0:m,x=f.motionDeadline,P=f.motionLeaveImmediately,F=f.onAppearPrepare,ve=f.onEnterPrepare,pe=f.onLeavePrepare,we=f.onAppearStart,Ve=f.onEnterStart,nt=f.onLeaveStart,Ye=f.onAppearActive,ot=f.onEnterActive,at=f.onLeaveActive,Ze=f.onAppearEnd,qe=f.onEnterEnd,pt=f.onLeaveEnd,rt=f.onVisibleChanged,kt=wt(),yt=Object(R.a)(kt,2),Be=yt[0],We=yt[1],st=wt(Ot),ct=Object(R.a)(st,2),Ie=ct[0],mt=ct[1],Tt=wt(null),ht=Object(R.a)(Tt,2),Ct=ht[0],Pt=ht[1],Xt=Object(i.useRef)(!1),an=Object(i.useRef)(null),It=Object(i.useRef)(!1),on=Object(i.useRef)(null);function gn(){var Rt=S();return Rt||on.current}var ln=Object(i.useRef)(!1);function un(Rt){var gt=gn();if(Rt&&!Rt.deadline&&Rt.target!==gt)return;var Yt;Ie===Ut&&ln.current?Yt=Ze==null?void 0:Ze(gt,Rt):Ie===zt&&ln.current?Yt=qe==null?void 0:qe(gt,Rt):Ie===vt&&ln.current&&(Yt=pt==null?void 0:pt(gt,Rt)),Yt!==!1&&!It.current&&(mt(Ot),Pt(null))}var Kt=On(un),qt=Object(R.a)(Kt,1),Gt=qt[0],Bt=i.useMemo(function(){var Rt,gt,Yt;switch(Ie){case"appear":return Rt={},Object(k.a)(Rt,xt,F),Object(k.a)(Rt,_t,we),Object(k.a)(Rt,bt,Ye),Rt;case"enter":return gt={},Object(k.a)(gt,xt,ve),Object(k.a)(gt,_t,Ve),Object(k.a)(gt,bt,ot),gt;case"leave":return Yt={},Object(k.a)(Yt,xt,pe),Object(k.a)(Yt,_t,nt),Object(k.a)(Yt,bt,at),Yt;default:return{}}},[Ie]),An=hn(Ie,function(Rt){if(Rt===xt){var gt=Bt[xt];return gt?gt(gn()):Nn}if(jt in Bt){var Yt;Pt(((Yt=Bt[jt])===null||Yt===void 0?void 0:Yt.call(Bt,gn(),null))||null)}return jt===bt&&(Gt(gn()),x>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},x))),Fn}),wn=Object(R.a)(An,2),Wn=wn[0],jt=wn[1],Cn=rn(jt);ln.current=Cn,$t(function(){We(C);var Rt=Xt.current;if(Xt.current=!0,!u)return;var gt;!Rt&&C&&d&&(gt=Ut),Rt&&C&&r&&(gt=zt),(Rt&&!C&&T||!Rt&&P&&!C&&T)&&(gt=vt),gt&&(mt(gt),Wn())},[C]),Object(i.useEffect)(function(){(Ie===Ut&&!d||Ie===zt&&!r||Ie===vt&&!T)&&mt(Ot)},[d,r,T]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),It.current=!0}},[]),Object(i.useEffect)(function(){Be!==void 0&&Ie===Ot&&(rt==null||rt(Be))},[Be,Ie]);var Bn=Ct;return Bt[xt]&&jt===_t&&(Bn=Object(z.a)({transition:"none"},Bn)),[Ie,jt,Bn,Be!=null?Be:C]}var Hn=function(u){Object(j.a)(S,u);var C=Object(h.a)(S);function S(){return Object(I.a)(this,S),C.apply(this,arguments)}return Object(H.a)(S,[{key:"render",value:function(){return this.props.children}}]),S}(i.Component),en=Hn;function Ln(u){var C=u;Object(L.a)(u)==="object"&&(C=u.transitionSupport);function S(e){return!!(e.motionName&&C)}var f=i.forwardRef(function(e,r){var t=e.visible,d=t===void 0?!0:t,m=e.removeOnLeave,T=m===void 0?!0:m,x=e.forceRender,P=e.children,F=e.motionName,ve=e.leavedClassName,pe=e.eventProps,we=S(e),Ve=Object(i.useRef)(),nt=Object(i.useRef)();function Ye(){try{return Object(Mt.a)(Ve.current||nt.current)}catch(mt){return null}}var ot=_n(we,d,Ye,e),at=Object(R.a)(ot,4),Ze=at[0],qe=at[1],pt=at[2],rt=at[3],kt=i.useRef(rt);rt&&(kt.current=!0);var yt=Object(i.useRef)(r);yt.current=r;var Be=i.useCallback(function(mt){Ve.current=mt,Object(N.b)(yt.current,mt)},[]),We,st=Object(z.a)(Object(z.a)({},pe),{},{visible:d});if(!P)We=null;else if(Ze===Ot||!S(e))rt?We=P(Object(z.a)({},st),Be):!T&&kt.current?We=P(Object(z.a)(Object(z.a)({},st),{},{className:ve}),Be):x?We=P(Object(z.a)(Object(z.a)({},st),{},{style:{display:"none"}}),Be):We=null;else{var ct,Ie;qe===xt?Ie="prepare":rn(qe)?Ie="active":qe===_t&&(Ie="start"),We=P(Object(z.a)(Object(z.a)({},st),{},{className:se()(At(F,Ze),(ct={},Object(k.a)(ct,At(F,"".concat(Ze,"-").concat(Ie)),Ie),Object(k.a)(ct,F,typeof F=="string"),ct)),style:pt}),Be)}return i.createElement(en,{ref:nt},We)});return f.displayName="CSSMotion",f}var yn=Ln(ut),kn="add",xn="keep",vn="remove",jn="removed";function Vn(u){var C;return u&&Object(L.a)(u)==="object"&&"key"in u?C=u:C={key:u},Object(z.a)(Object(z.a)({},C),{},{key:String(C.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function Wt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],S=[],f=0,e=C.length,r=Mn(u),t=Mn(C);r.forEach(function(T){for(var x=!1,P=f;P1});return m.forEach(function(T){S=S.filter(function(x){var P=x.key,F=x.status;return P!==T||F!==vn}),S.forEach(function(x){x.key===T&&(x.status=xn)})}),S}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,S=function(f){Object(j.a)(r,f);var e=Object(h.a)(r);function r(){var t;return Object(I.a)(this,r),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(m){var T=m.keyEntities;return{keyEntities:T.map(function(x){return x.key!==d?x:Object(z.a)(Object(z.a)({},x),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,T=this.props,x=T.component,P=T.children,F=T.onVisibleChanged,ve=Object(Pe.a)(T,["component","children","onVisibleChanged"]),pe=x||i.Fragment,we={};return Zt.forEach(function(Ve){we[Ve]=ve[Ve],delete ve[Ve]}),delete ve.keys,i.createElement(pe,ve,m.map(function(Ve){var nt=Ve.status,Ye=Object(Pe.a)(Ve,["status"]),ot=nt===kn||nt===xn;return i.createElement(C,Object(s.a)({},we,{key:Ye.key,visible:ot,eventProps:Ye,onVisibleChanged:function(Ze){F==null||F(Ze,{key:Ye.key}),Ze||d.removeKey(Ye.key)}}),P)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var T=d.keys,x=m.keyEntities,P=Mn(T),F=Wt(x,P);return{keyEntities:F.filter(function(ve){var pe=x.find(function(we){var Ve=we.key;return ve.key===Ve});return!(pe&&pe.status===jn&&ve.status===vn)})}}}]),r}(i.Component);return S.defaultProps={component:"div"},S}var Jt=sn(ut),tn=yn;function dn(u){var C=u.prefixCls,S=u.motion,f=u.animation,e=u.transitionName;return S||(f?{motionName:"".concat(C,"-").concat(f)}:e?{motionName:e}:null)}function $n(u){var C=u.prefixCls,S=u.visible,f=u.zIndex,e=u.mask,r=u.maskMotion,t=u.maskAnimation,d=u.maskTransitionName;if(!e)return null;var m={};return(r||d||t)&&(m=Object(z.a)({motionAppear:!0},dn({motion:r,prefixCls:C,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:S,removeOnLeave:!0}),function(T){var x=T.className;return i.createElement("div",{style:{zIndex:f},className:se()("".concat(C,"-mask"),x)})})}var Un=a("9mu1"),Xn=a("o0o1"),Ma=a.n(Xn),Sa=a("HaE+"),Gn=["measure","align",null,"motion"],Nt=function(u,C){var S=Object(i.useState)(null),f=Object(R.a)(S,2),e=f[0],r=f[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function m(P){d.current||r(P)}function T(){et.a.cancel(t.current)}function x(P){T(),t.current=Object(et.a)(function(){m(function(F){switch(e){case"align":return"motion";case"motion":return"stable";default:}return F}),P==null||P()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":C();break;default:}e&&(t.current=Object(et.a)(Object(Sa.a)(Ma.a.mark(function P(){var F,ve;return Ma.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:F=Gn.indexOf(e),ve=Gn[F+1],ve&&F!==-1&&m(ve);case 3:case"end":return we.stop()}},P)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,T()}},[]),[e,x]},Yn=function(u){var C=i.useState({width:0,height:0}),S=Object(R.a)(C,2),f=S[0],e=S[1];function r(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(u){var m=f.width,T=f.height;u.indexOf("height")!==-1&&T?d.height=T:u.indexOf("minHeight")!==-1&&T&&(d.minHeight=T),u.indexOf("width")!==-1&&m?d.width=m:u.indexOf("minWidth")!==-1&&m&&(d.minWidth=m)}return d},[u,f]);return[t,r]},Jn=i.forwardRef(function(u,C){var S=u.visible,f=u.prefixCls,e=u.className,r=u.style,t=u.children,d=u.zIndex,m=u.stretch,T=u.destroyPopupOnHide,x=u.forceRender,P=u.align,F=u.point,ve=u.getRootDomNode,pe=u.getClassNameFromAlign,we=u.onAlign,Ve=u.onMouseEnter,nt=u.onMouseLeave,Ye=u.onMouseDown,ot=u.onTouchStart,at=Object(i.useRef)(),Ze=Object(i.useRef)(),qe=Object(i.useState)(),pt=Object(R.a)(qe,2),rt=pt[0],kt=pt[1],yt=Yn(m),Be=Object(R.a)(yt,2),We=Be[0],st=Be[1];function ct(){m&&st(ve())}var Ie=Nt(S,ct),mt=Object(R.a)(Ie,2),Tt=mt[0],ht=mt[1],Ct=Object(i.useRef)();function Pt(){return F||ve}function Xt(){var Kt;(Kt=at.current)===null||Kt===void 0||Kt.forceAlign()}function an(Kt,qt){var Gt=pe(qt);rt!==Gt&&kt(Gt),Tt==="align"&&(rt!==Gt?Promise.resolve().then(function(){Xt()}):ht(function(){var Bt;(Bt=Ct.current)===null||Bt===void 0||Bt.call(Ct)}),we==null||we(Kt,qt))}var It=Object(z.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Kt){var qt=It[Kt];It[Kt]=function(Gt,Bt){return ht(),qt==null?void 0:qt(Gt,Bt)}});function on(){return new Promise(function(Kt){Ct.current=Kt})}i.useEffect(function(){!It.motionName&&Tt==="motion"&&ht()},[It.motionName,Tt]),i.useImperativeHandle(C,function(){return{forceAlign:Xt,getElement:function(){return Ze.current}}});var gn=Object(z.a)(Object(z.a)({},We),{},{zIndex:d,opacity:Tt==="motion"||Tt==="stable"||!S?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},r),ln=!0;(P==null?void 0:P.points)&&(Tt==="align"||Tt==="stable")&&(ln=!1);var un=t;return i.Children.count(t)>1&&(un=i.createElement("div",{className:"".concat(f,"-content")},t)),i.createElement(tn,Object(s.a)({visible:S,ref:Ze,leavedClassName:"".concat(f,"-hidden")},It,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:T,forceRender:x}),function(Kt,qt){var Gt=Kt.className,Bt=Kt.style,An=se()(f,e,rt,Gt);return i.createElement(Un.a,{target:Pt(),key:"popup",ref:at,monitorWindowResize:!0,disabled:ln,align:P,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:nt,onMouseDownCapture:Ye,onTouchStartCapture:ot,style:Object(z.a)(Object(z.a)({},Bt),gn)},un))})});Jn.displayName="PopupInner";var Ta=Jn,fn=i.forwardRef(function(u,C){var S=u.prefixCls,f=u.visible,e=u.zIndex,r=u.children,t=u.mobile;t=t===void 0?{}:t;var d=t.popupClassName,m=t.popupStyle,T=t.popupMotion,x=T===void 0?{}:T,P=t.popupRender,F=i.useRef();i.useImperativeHandle(C,function(){return{forceAlign:function(){},getElement:function(){return F.current}}});var ve=Object(z.a)({zIndex:e},m),pe=r;return i.Children.count(r)>1&&(pe=i.createElement("div",{className:"".concat(S,"-content")},r)),P&&(pe=P(pe)),i.createElement(tn,Object(s.a)({visible:f,ref:F,removeOnLeave:!0},x),function(we,Ve){var nt=we.className,Ye=we.style,ot=se()(S,d,nt);return i.createElement("div",{ref:Ve,className:ot,style:Object(z.a)(Object(z.a)({},Ye),ve)},pe)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,C){var S=u.visible,f=u.mobile,e=Object(Pe.a)(u,Ra),r=Object(i.useState)(S),t=Object(R.a)(r,2),d=t[0],m=t[1],T=Object(i.useState)(!1),x=Object(R.a)(T,2),P=x[0],F=x[1],ve=Object(z.a)(Object(z.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(S),S&&f&&F(ae())},[S,f]);var pe=P?i.createElement(Ha,Object(s.a)({},ve,{mobile:f,ref:C})):i.createElement(Ta,Object(s.a)({},ve,{ref:C}));return i.createElement("div",null,i.createElement($n,ve),pe)});oa.displayName="Popup";var Va=oa,$a=i.createContext(null),ra=$a;function Qn(){}function Xa(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var C=function(S){Object(j.a)(e,S);var f=Object(h.a)(e);function e(r){var t;Object(I.a)(this,e),t=f.call(this,r),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(m){var T=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",m),t.delaySetPopupVisible(!0,T,T?null:m)},t.onMouseMove=function(m){t.fireEvents("onMouseMove",m),t.setPoint(m)},t.onMouseLeave=function(m){t.fireEvents("onMouseLeave",m),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(m){var T;if(m.relatedTarget&&!m.relatedTarget.setTimeout&&Object($e.a)((T=t.popupRef.current)===null||T===void 0?void 0:T.getElement(),m.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(m){t.fireEvents("onFocus",m),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(m){t.fireEvents("onMouseDown",m),t.preClickTime=Date.now()},t.onTouchStart=function(m){t.fireEvents("onTouchStart",m),t.preTouchTime=Date.now()},t.onBlur=function(m){t.fireEvents("onBlur",m),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(m){m.preventDefault(),t.fireEvents("onContextMenu",m),t.setPopupVisible(!0,m)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(m){if(t.fireEvents("onClick",m),t.focusTime){var T;if(t.preClickTime&&t.preTouchTime?T=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?T=t.preClickTime:t.preTouchTime&&(T=t.preTouchTime),Math.abs(T-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&m&&m.preventDefault&&m.preventDefault();var x=!t.state.popupVisible;(t.isClickToHide()&&!x||x&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,m)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var m;(m=t.context).onPopupMouseDown.apply(m,arguments)}},t.onDocumentClick=function(m){if(t.props.mask&&!t.props.maskClosable)return;var T=m.target,x=t.getRootDomNode(),P=t.getPopupDomNode();(!Object($e.a)(x,T)||t.isContextMenuOnly())&&!Object($e.a)(P,T)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var T=Object(Mt.a)(t.triggerRef.current);if(T)return T}catch(x){}return Fe.a.findDOMNode(Object(v.a)(t))},t.getPopupClassNameFromAlign=function(m){var T=[],x=t.props,P=x.popupPlacement,F=x.builtinPlacements,ve=x.prefixCls,pe=x.alignPoint,we=x.getPopupClassNameFromAlign;return P&&F&&T.push(Ce(F,ve,m,pe)),we&&T.push(we(m)),T.join(" ")},t.getComponent=function(){var m=t.props,T=m.prefixCls,x=m.destroyPopupOnHide,P=m.popupClassName,F=m.onPopupAlign,ve=m.popupMotion,pe=m.popupAnimation,we=m.popupTransitionName,Ve=m.popupStyle,nt=m.mask,Ye=m.maskAnimation,ot=m.maskTransitionName,at=m.maskMotion,Ze=m.zIndex,qe=m.popup,pt=m.stretch,rt=m.alignPoint,kt=m.mobile,yt=m.forceRender,Be=t.state,We=Be.popupVisible,st=Be.point,ct=t.getPopupAlign(),Ie={};return t.isMouseEnterToShow()&&(Ie.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Ie.onMouseLeave=t.onPopupMouseLeave),Ie.onMouseDown=t.onPopupMouseDown,Ie.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:T,destroyPopupOnHide:x,visible:We,point:rt&&st,className:P,align:ct,onAlign:F,animation:pe,getClassNameFromAlign:t.getPopupClassNameFromAlign},Ie,{stretch:pt,getRootDomNode:t.getRootDomNode,style:Ve,mask:nt,zIndex:Ze,transitionName:we,maskAnimation:Ye,maskTransitionName:ot,maskMotion:at,ref:t.popupRef,motion:ve,mobile:kt,forceRender:yt}),typeof qe=="function"?qe():qe)},t.attachParent=function(m){et.a.cancel(t.attachId);var T=t.props,x=T.getPopupContainer,P=T.getDocument,F=t.getRootDomNode(),ve;x?(F||x.length===0)&&(ve=x(F)):ve=P(t.getRootDomNode()).body,ve?ve.appendChild(m):t.attachId=Object(et.a)(function(){t.attachParent(m)})},t.getContainer=function(){var m=t.props.getDocument,T=m(t.getRootDomNode()).createElement("div");return T.style.position="absolute",T.style.top="0",T.style.left="0",T.style.width="100%",t.attachParent(T),T},t.setPoint=function(m){var T=t.props.alignPoint;if(!T||!m)return;t.setState({point:{pageX:m.pageX,pageY:m.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in r?d=!!r.popupVisible:d=!!r.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Aa.forEach(function(m){t["fire".concat(m)]=function(T){t.fireEvents(m,T)}}),t}return Object(H.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var m;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(m=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(he.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(he.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(he.a)(m,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(he.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),et.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,m=t.popupAlign,T=t.builtinPlacements;return d&&T?De(T,d,m):m}},{key:"setPopupVisible",value:function(t,d){var m=this.props.alignPoint,T=this.state.popupVisible;this.clearDelayTimer(),T!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:T}),this.props.onPopupVisibleChange(t)),m&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,m){var T=this,x=d*1e3;if(this.clearDelayTimer(),x){var P=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){T.setPopupVisible(t,P),T.clearDelayTimer()},x)}else this.setPopupVisible(t,m)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var d=this.props.children.props,m=this.props;return d[t]&&m[t]?this["fire".concat(t)]:d[t]||m[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("contextMenu")!==-1||m.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("hover")!==-1||m.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("hover")!==-1||m.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("focus")!==-1||m.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("focus")!==-1||m.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var m=this.props.children.props[t];m&&m(d);var T=this.props[t];T&&T(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,m=d.children,T=d.forceRender,x=d.alignPoint,P=d.className,F=d.autoDestroy,ve=i.Children.only(m),pe={key:"trigger"};this.isContextMenuToShow()?pe.onContextMenu=this.onContextMenu:pe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(pe.onClick=this.onClick,pe.onMouseDown=this.onMouseDown,pe.onTouchStart=this.onTouchStart):(pe.onClick=this.createTwoChains("onClick"),pe.onMouseDown=this.createTwoChains("onMouseDown"),pe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(pe.onMouseEnter=this.onMouseEnter,x&&(pe.onMouseMove=this.onMouseMove)):pe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?pe.onMouseLeave=this.onMouseLeave:pe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(pe.onFocus=this.onFocus,pe.onBlur=this.onBlur):(pe.onFocus=this.createTwoChains("onFocus"),pe.onBlur=this.createTwoChains("onBlur"));var we=se()(ve&&ve.props&&ve.props.className,P);we&&(pe.className=we);var Ve=Object(z.a)({},pe);Object(N.c)(ve)&&(Ve.ref=Object(N.a)(this.triggerRef,ve.ref));var nt=i.cloneElement(ve,Ve),Ye;return(t||this.popupRef.current||T)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&F&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},nt,Ye)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var m=t.popupVisible,T={};return m!==void 0&&d.popupVisible!==m&&(T.popupVisible=m,T.prevPopupVisible=d.popupVisible),T}}]),e}(i.Component);return C.contextType=ra,C.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xa,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},C}var Ja=Ya(Ee.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},wa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mn=function(C,S,f){var e=re(S),r=C.getState();C.setState({defaultActiveFirst:Object(z.a)(Object(z.a)({},r.defaultActiveFirst),{},Object(k.a)({},e,f))})},la=function(u){Object(j.a)(S,u);var C=Object(h.a)(S);function S(f){var e;Object(I.a)(this,S),e=C.call(this,f),e.onDestroy=function(x){e.props.onDestroy(x)},e.onKeyDown=function(x){var P=x.keyCode,F=e.menuInstance,ve=e.props.store,pe=e.getVisible();if(P===w.a.ENTER)return e.onTitleClick(x),mn(ve,e.props.eventKey,!0),!0;if(P===w.a.RIGHT)return pe?F.onKeyDown(x):(e.triggerOpenChange(!0),mn(ve,e.props.eventKey,!0)),!0;if(P===w.a.LEFT){var we;if(pe)we=F.onKeyDown(x);else return;return we||(e.triggerOpenChange(!1),we=!0),we}return pe&&(P===w.a.UP||P===w.a.DOWN)?F.onKeyDown(x):void 0},e.onOpenChange=function(x){e.props.onOpenChange(x)},e.onPopupVisibleChange=function(x){e.triggerOpenChange(x,x?"mouseenter":"mouseleave")},e.onMouseEnter=function(x){var P=e.props,F=P.eventKey,ve=P.onMouseEnter,pe=P.store;mn(pe,e.props.eventKey,!1),ve({key:F,domEvent:x})},e.onMouseLeave=function(x){var P=e.props,F=P.parentMenu,ve=P.eventKey,pe=P.onMouseLeave;F.subMenuInstance=Object(v.a)(e),pe({key:ve,domEvent:x})},e.onTitleMouseEnter=function(x){var P=e.props,F=P.eventKey,ve=P.onItemHover,pe=P.onTitleMouseEnter;ve({key:F,hover:!0}),pe({key:F,domEvent:x})},e.onTitleMouseLeave=function(x){var P=e.props,F=P.parentMenu,ve=P.eventKey,pe=P.onItemHover,we=P.onTitleMouseLeave;F.subMenuInstance=Object(v.a)(e),pe({key:ve,hover:!1}),we({key:ve,domEvent:x})},e.onTitleClick=function(x){var P=Object(v.a)(e),F=P.props;if(F.onTitleClick({key:F.eventKey,domEvent:x}),F.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(F.store,e.props.eventKey,!1)},e.onSubMenuClick=function(x){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(x))},e.onSelect=function(x){e.props.onSelect(x)},e.onDeselect=function(x){e.props.onDeselect(x)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(x){e.menuInstance=x},e.addKeyPath=function(x){return Object(z.a)(Object(z.a)({},x),{},{keyPath:(x.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(x,P){var F=e.props.eventKey,ve=function(){e.onOpenChange({key:F,item:Object(v.a)(e),trigger:P,open:x})};P==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){ve()},0):ve()},e.isChildrenSelected=function(){var x={find:!1};return me(e.props.children,e.props.selectedKeys,x),x.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var x=Ke.findDOMNode(e.menuInstance);if(x.offsetWidth>=e.subMenuTitle.offsetWidth)return;x.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(x){e.subMenuTitle=x},e.getBaseProps=function(){var x=Object(v.a)(e),P=x.props,F=e.getMode();return{mode:F==="horizontal"?"vertical":F,visible:e.getVisible(),level:P.level+1,inlineIndent:P.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:P.selectedKeys,eventKey:"".concat(P.eventKey,"-menu-"),openKeys:P.openKeys,motion:P.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:P.subMenuOpenDelay,parentMenu:Object(v.a)(e),subMenuCloseDelay:P.subMenuCloseDelay,forceSubMenuRender:P.forceSubMenuRender,triggerSubMenuAction:P.triggerSubMenuAction,builtinPlacements:P.builtinPlacements,defaultActiveFirst:P.store.getState().defaultActiveFirst[re(P.eventKey)],multiple:P.multiple,prefixCls:P.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:P.itemIcon,expandIcon:P.expandIcon,direction:P.direction}},e.getMotion=function(x,P){var F=Object(v.a)(e),ve=F.haveRendered,pe=e.props,we=pe.motion,Ve=pe.rootPrefixCls,nt=Object(z.a)(Object(z.a)({},we),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:ve||!P||x!=="inline"});return nt};var r=f.store,t=f.eventKey,d=r.getState(),m=d.defaultActiveFirst;e.isRootMenu=!1;var T=!1;return m&&(T=m[t]),mn(r,t,T),e.state={mode:f.mode,isOpen:f.isOpen},e}return Object(H.a)(S,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,r=this.props,t=r.mode,d=r.parentMenu,m=r.manualRef,T=r.isOpen,x=function(){e.setState({mode:t,isOpen:T})},P=T!==this.state.isOpen,F=t!==this.state.mode;if((F||P)&&(et.a.cancel(this.updateStateRaf),F?this.updateStateRaf=Object(et.a)(x):x()),m&&m(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!T)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,r=e.onDestroy,t=e.eventKey;r&&r(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),et.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,r){var t=this.getBaseProps();return i.createElement(ea,Object(s.a)({},t,{id:this.internalMenuId,className:e,style:r}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,r=this.getBaseProps(),t=r.mode,d=r.visible,m=r.forceSubMenuRender,T=r.direction,x=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var P=se()("".concat(r.prefixCls,"-sub"),Object(k.a)({},"".concat(r.prefixCls,"-rtl"),T==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},x),function(F){var ve=F.className,pe=F.style,we=se()(P,ve);return e.renderPopupMenu(we,pe)}):this.renderPopupMenu(P)}},{key:"render",value:function(){var e,r,t,d=Object(z.a)({},this.props),m=this.getVisible(),T=this.getPrefixCls(),x=this.isInlineMode(),P=this.getMode(),F=se()(T,"".concat(T,"-").concat(P),(e={},Object(k.a)(e,d.className,!!d.className),Object(k.a)(e,this.getOpenClassName(),m),Object(k.a)(e,this.getActiveClassName(),d.active||m&&!x),Object(k.a)(e,this.getDisabledClassName(),d.disabled),Object(k.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var ve={},pe={},we={};d.disabled||(ve={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},pe={onClick:this.onTitleClick},we={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},nt=d.direction,Ye=nt==="rtl";x&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var ot={};this.getVisible()&&(ot={"aria-owns":this.internalMenuId});var at=null;P!=="horizontal"&&(at=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(at=i.createElement(this.props.expandIcon,Object(z.a)({},this.props))));var Ze=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(T,"-title"),role:"button"},we,pe,{"aria-expanded":m},ot,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,at||i.createElement("i",{className:"".concat(T,"-arrow")})),qe=this.renderChildren(),pt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(Pt){return Pt.parentNode},rt=pn[P],kt=d.popupOffset?{offset:d.popupOffset}:{},yt=se()((t={},Object(k.a)(t,d.popupClassName,d.popupClassName&&!x),Object(k.a)(t,"".concat(T,"-rtl"),Ye),t)),Be=d.disabled,We=d.triggerSubMenuAction,st=d.subMenuOpenDelay,ct=d.forceSubMenuRender,Ie=d.subMenuCloseDelay,mt=d.builtinPlacements;_e.forEach(function(Pt){return delete d[Pt]}),delete d.onClick;var Tt=Ye?Object(z.a)(Object(z.a)({},wa),mt):Object(z.a)(Object(z.a)({},ia),mt);delete d.direction;var ht=this.getBaseProps(),Ct=x?null:this.getMotion(ht.mode,ht.visible);return i.createElement("li",Object(s.a)({},d,ve,{className:F,role:"menuitem"}),i.createElement(Ja,{prefixCls:T,popupClassName:se()("".concat(T,"-popup"),yt),getPopupContainer:pt,builtinPlacements:Tt,popupPlacement:rt,popupVisible:x?!1:m,popupAlign:kt,popup:x?null:qe,action:Be||x?[]:[We],mouseEnterDelay:st,mouseLeaveDelay:Ie,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ct,popupMotion:Ct},Ze),x?qe:null)}}]),S}(i.Component);la.defaultProps={onMouseEnter:D,onMouseLeave:D,onTitleMouseEnter:D,onTitleMouseLeave:D,onTitleClick:D,manualRef:D,mode:"vertical",title:""};var In=Object(B.b)(function(u,C){var S=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=C.eventKey,t=C.subMenuKey;return{isOpen:S.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,Pa="menuitem-overflowed",Qa=.5,Da=function(u){Object(j.a)(S,u);var C=Object(h.a)(S);function S(){var f;return Object(I.a)(this,S),f=C.apply(this,arguments),f.resizeObserver=null,f.mutationObserver=null,f.originalTotalWidth=0,f.overflowedItems=[],f.menuItemSizes=[],f.cancelFrameId=null,f.state={lastVisibleIndex:void 0},f.childRef=i.createRef(),f.getMenuItemNodes=function(){var e=f.props.prefixCls,r=f.childRef.current;return r?[].slice.call(r.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},f.getOverflowedSubMenuItem=function(e,r,t){var d=f.props,m=d.overflowedIndicator,T=d.level,x=d.mode,P=d.prefixCls,F=d.theme;if(T!==1||x!=="horizontal")return null;var ve=f.props.children[0],pe=ve.props,we=pe.children,Ve=pe.title,nt=pe.style,Ye=Object(Pe.a)(pe,["children","title","style"]),ot=Object(z.a)({},nt),at="".concat(e,"-overflowed-indicator"),Ze="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?ot=Object(z.a)(Object(z.a)({},ot),{},{display:"none"}):t&&(ot=Object(z.a)(Object(z.a)({},ot),{},{visibility:"hidden",position:"absolute"}),at="".concat(at,"-placeholder"),Ze="".concat(Ze,"-placeholder"));var qe=F?"".concat(P,"-").concat(F):"",pt={};return _e.forEach(function(rt){Ye[rt]!==void 0&&(pt[rt]=Ye[rt])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(P,"-overflowed-submenu"),popupClassName:qe},pt,{key:at,eventKey:Ze,disabled:!1,style:ot}),r)},f.setChildrenWidthAndResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=e.children;if(!r||r.length===0)return;var t=e.children[r.length-1];ge(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(T){return T.className.split(" ").indexOf(Pa)>=0});m.forEach(function(T){ge(T,"display","inline-block")}),f.menuItemSizes=d.map(function(T){return Me(T,!0)}),m.forEach(function(T){ge(T,"display","none")}),f.overflowedIndicatorWidth=Me(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(T,x){return T+x},0),f.handleResize(),ge(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=Me(e);f.overflowedItems=[];var t=0,d;f.originalTotalWidth>r+Qa&&(d=-1,f.menuItemSizes.forEach(function(m){t+=m,t+f.overflowedIndicatorWidth<=r&&(d+=1)})),f.setState({lastVisibleIndex:d})},f}return Object(H.a)(S,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var r=this.childRef.current;if(!r)return;this.resizeObserver=new He.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(r,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var r=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,m,T){var x=m;if(r.props.mode==="horizontal"){var P=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(T>t&&(x=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(Pa)})),T===t+1&&(r.overflowedItems=e.slice(t+1).map(function(ve){return i.cloneElement(ve,{key:ve.props.eventKey,mode:"vertical-left"})}),P=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var F=[].concat(Object(X.a)(d),[P,x]);return T===e.length-1&&F.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),F}return[].concat(Object(X.a)(d),[x])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,T=e.level,x=e.tag,P=e.children,F=e.theme,ve=Object(Pe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),pe=x;return i.createElement(pe,Object(s.a)({ref:this.childRef},ve),this.renderChildren(P))}}]),S}(i.Component);Da.defaultProps={tag:"div",className:""};var ua=Da;function Zn(u){return u.length?u.every(function(C){return!!C.props.disabled}):!0}function Sn(u,C,S){var f=u.getState();u.setState({activeKey:Object(z.a)(Object(z.a)({},f.activeKey),{},Object(k.a)({},C,S))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,C){var S=C,f=u.children,e=u.eventKey;if(S){var r;if(Se(f,function(t,d){t&&t.props&&!t.props.disabled&&S===Z(t,e,d)&&(r=!0)}),r)return S}return S=null,u.defaultActiveFirst&&Se(f,function(t,d){!S&&t&&!t.props.disabled&&(S=Z(t,e,d))}),S}function Na(u){if(!u)return;var C=this.instanceArray.indexOf(u);C!==-1?this.instanceArray[C]=u:this.instanceArray.push(u)}var La=function(u){Object(j.a)(S,u);var C=Object(h.a)(S);function S(f){var e;return Object(I.a)(this,S),e=C.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(x){x&&x.props.active&&x.onKeyDown&&(m=x.onKeyDown(r))}),m)return 1;var T=null;return(d===w.a.UP||d===w.a.DOWN)&&(T=e.step(d===w.a.UP?-1:1)),T?(r.preventDefault(),Sn(e.props.store,En(e.props),T.props.eventKey),typeof t=="function"&&t(T),1):void 0},e.onItemHover=function(r){var t=r.key,d=r.hover;Sn(e.props.store,En(e.props),d?t:null)},e.onDeselect=function(r){e.props.onDeselect(r)},e.onSelect=function(r){e.props.onSelect(r)},e.onClick=function(r){e.props.onClick(r)},e.onOpenChange=function(r){e.props.onOpenChange(r)},e.onDestroy=function(r){e.props.onDestroy(r)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(r){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[En(e.props)],m=t.length;if(!m)return null;r<0&&(t=t.concat().reverse());var T=-1;if(t.every(function(ve,pe){return ve&&ve.props.eventKey===d?(T=pe,!1):!0}),!e.props.defaultActiveFirst&&T!==-1&&Zn(t.slice(T,m-1)))return;var x=(T+1)%m,P=x;do{var F=t[P];if(!F||F.props.disabled)P=(P+1)%m;else return F}while(P!==x);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),T=Object(v.a)(e),x=T.props,P=Z(r,x.eventKey,t),F=r.props;if(!F||typeof r.type=="string")return r;var ve=P===m.activeKey,pe=Object(z.a)(Object(z.a)({mode:F.mode||x.mode,level:x.level,inlineIndent:x.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:x.prefixCls,index:t,parentMenu:x.parentMenu,manualRef:F.disabled?void 0:Object(q.a)(r.ref,Na.bind(Object(v.a)(e))),eventKey:P,active:!F.disabled&&ve,multiple:x.multiple,onClick:function(Ve){(F.onClick||D)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:x.motion,subMenuOpenDelay:x.subMenuOpenDelay,subMenuCloseDelay:x.subMenuCloseDelay,forceSubMenuRender:x.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:x.builtinPlacements,itemIcon:F.itemIcon||e.props.itemIcon,expandIcon:F.expandIcon||e.props.expandIcon},d),{},{direction:x.direction});return(x.mode==="inline"||Oe())&&(pe.triggerSubMenuAction="click"),i.cloneElement(r,Object(z.a)(Object(z.a)({},pe),{},{key:P||t}))},e.renderMenuItem=function(r,t,d){if(!r)return null;var m=e.props.store.getState(),T={openKeys:m.openKeys,selectedKeys:m.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(r,t,T)},f.store.setState({activeKey:Object(z.a)(Object(z.a)({},f.store.getState().activeKey),{},Object(k.a)({},f.eventKey,qn(f,f.activeKey)))}),e.instanceArray=[],e}return Object(H.a)(S,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!oe()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var r=this.props,t="activeKey"in r?r.activeKey:r.store.getState().activeKey[En(r)],d=qn(r,t);if(d!==t)Sn(r.store,En(r),d);else if("activeKey"in e){var m=qn(e,e.activeKey);d!==m&&Sn(r.store,En(r),d)}}},{key:"render",value:function(){var e=this,r=Object(s.a)({},this.props);this.instanceArray=[];var t=se()(r.prefixCls,r.className,"".concat(r.prefixCls,"-").concat(r.mode)),d={className:t,role:r.role||"menu"};r.id&&(d.id=r.id),r.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var m=r.prefixCls,T=r.eventKey,x=r.visible,P=r.level,F=r.mode,ve=r.overflowedIndicator,pe=r.theme;return _e.forEach(function(we){return delete r[we]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:F,tag:"ul",level:P,theme:pe,visible:x,overflowedIndicator:ve},d),Object(be.a)(r.children).map(function(we,Ve){return e.renderMenuItem(we,Ve,T||"0-menu-")}))}}]),S}(i.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:D};var ka=Object(B.b)()(La),ea=ka,Tn=a("Kwbf");function ca(u,C,S){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,T=C.switchingModeFromInline;if(e)return e;if(Object(L.a)(d)==="object"&&d)Object(Tn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(f,"-open-").concat(d)};if(m)return{motionName:m};var x=t[S];return x||(T?null:t.other)}var Ua=function(u){Object(j.a)(S,u);var C=Object(h.a)(S);function S(f){var e;Object(I.a)(this,S),e=C.call(this,f),e.onSelect=function(d){var m=Object(v.a)(e),T=m.props;if(T.selectable){var x=e.store.getState(),P=x.selectedKeys,F=d.key;T.multiple?P=P.concat([F]):P=[F],"selectedKeys"in T||e.store.setState({selectedKeys:P}),T.onSelect(Object(z.a)(Object(z.a)({},d),{},{selectedKeys:P}))}},e.onClick=function(d){var m=e.getRealMenuMode(),T=Object(v.a)(e),x=T.store,P=T.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(x.setState({openKeys:[]}),P([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(v.a)(e),T=m.props,x=e.store.getState().openKeys.concat(),P=!1,F=function(pe){var we=!1;if(pe.open)we=x.indexOf(pe.key)===-1,we&&x.push(pe.key);else{var Ve=x.indexOf(pe.key);we=Ve!==-1,we&&x.splice(Ve,1)}P=P||we};Array.isArray(d)?d.forEach(F):F(d),P&&("openKeys"in e.props||e.store.setState({openKeys:x}),T.onOpenChange(x))},e.onDeselect=function(d){var m=Object(v.a)(e),T=m.props;if(T.selectable){var x=e.store.getState().selectedKeys.concat(),P=d.key,F=x.indexOf(P);F!==-1&&x.splice(F,1),"selectedKeys"in T||e.store.setState({selectedKeys:x}),T.onDeselect(Object(z.a)(Object(z.a)({},d),{},{selectedKeys:x}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var m=e.props.onMouseEnter;m&&m(d)},e.onTransitionEnd=function(d){var m=d.propertyName==="width"&&d.target===d.currentTarget,T=d.target.className,x=Object.prototype.toString.call(T)==="[object SVGAnimatedString]"?T.animVal:T,P=d.propertyName==="font-size"&&x.indexOf("anticon")>=0;(m||P)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var r=f.defaultSelectedKeys,t=f.defaultOpenKeys;return"selectedKeys"in f&&(r=f.selectedKeys||[]),"openKeys"in f&&(t=f.openKeys||[]),e.store=Object(B.c)({selectedKeys:r,openKeys:t,activeKey:{"0-menu-":qn(f,f.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:f,inlineOpenKeys:[],store:e.store},e}return Object(H.a)(S,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var r=this.props,t=r.siderCollapsed,d=r.inlineCollapsed,m=r.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&m([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,r=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=r.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,r=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return r&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,r=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:r}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(z.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),r=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(z.a)(Object(z.a)({},e),{},{mode:r,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,r)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(B.a,{store:this.store},i.createElement(ea,Object(s.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var t=r.prevProps,d=r.store,m=d.getState(),T={},x={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(x.switchingModeFromInline=!0),"openKeys"in e?T.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(x.switchingModeFromInline=!0,x.inlineOpenKeys=m.openKeys,T.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(T.openKeys=r.inlineOpenKeys,x.inlineOpenKeys=[])),Object.keys(T).length&&d.setState(T),x}}]),S}(i.Component);Ua.defaultProps={selectable:!0,onClick:D,onSelect:D,onOpenChange:D,onDeselect:D,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Ia=Ua,Rn=function(u){Object(j.a)(S,u);var C=Object(h.a)(S);function S(){var f;return Object(I.a)(this,S),f=C.apply(this,arguments),f.onKeyDown=function(e){var r=e.keyCode;return r===w.a.ENTER?(f.onClick(e),!0):void 0},f.onMouseLeave=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseLeave;d({key:t,hover:!1}),m({key:t,domEvent:e})},f.onMouseEnter=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseEnter;d({key:t,hover:!0}),m({key:t,domEvent:e})},f.onClick=function(e){var r=f.props,t=r.eventKey,d=r.multiple,m=r.onClick,T=r.onSelect,x=r.onDeselect,P=r.isSelected,F={key:t,keyPath:[t],item:Object(v.a)(f),domEvent:e};m(F),d?P?x(F):T(F):P||T(F)},f.saveNode=function(e){f.node=e},f}return Object(H.a)(S,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,r=Object(z.a)({},this.props),t=se()(this.getPrefixCls(),r.className,(e={},Object(k.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(k.a)(e,this.getSelectedClassName(),r.isSelected),Object(k.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(z.a)(Object(z.a)({},r.attribute),{},{title:typeof r.title=="string"?r.title:void 0,className:t,role:r.role||"menuitem","aria-disabled":r.disabled});r.role==="option"?d=Object(z.a)(Object(z.a)({},d),{},{role:"option","aria-selected":r.isSelected}):(r.role===null||r.role==="none")&&(d.role="none");var m={onClick:r.disabled?null:this.onClick,onMouseLeave:r.disabled?null:this.onMouseLeave,onMouseEnter:r.disabled?null:this.onMouseEnter},T=Object(z.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?T.paddingRight=r.inlineIndent*r.level:T.paddingLeft=r.inlineIndent*r.level),_e.forEach(function(P){return delete r[P]}),delete r.direction;var x=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(x=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object(V.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:T,ref:this.saveNode}),r.children,x)}}]),S}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:D,onMouseEnter:D,onMouseLeave:D,manualRef:D};var da=Object(B.b)(function(u,C){var S=u.activeKey,f=u.selectedKeys,e=C.eventKey,r=C.subMenuKey;return{active:S[r]===e,isSelected:Array.isArray(f)?f.indexOf(e)!==-1:f===e}})(Rn),fa=da,pa=function(u){Object(j.a)(S,u);var C=Object(h.a)(S);function S(){var f;return Object(I.a)(this,S),f=C.apply(this,arguments),f.renderInnerMenuItem=function(e){var r=f.props,t=r.renderMenuItem,d=r.index;return t(e,d,f.props.subMenuKey)},f}return Object(H.a)(S,[{key:"render",value:function(){var e=Object(s.a)({},this.props),r=e.className,t=r===void 0?"":r,d=e.rootPrefixCls,m="".concat(d,"-item-group-title"),T="".concat(d,"-item-group-list"),x=e.title,P=e.children;return _e.forEach(function(F){return delete e[F]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(ve){return ve.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof x=="string"?x:void 0},x),i.createElement("ul",{className:T},i.Children.map(P,this.renderInnerMenuItem)))}}]),S}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(C){var S=C.className,f=C.rootPrefixCls,e=C.style;return i.createElement("li",{className:"".concat(S," ").concat(f,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=Ia,ha=a("eDIo");function eo(u,C){var S=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:C,type:"button",className:"".concat(S,"-nav-add"),style:r,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){f.onEdit("add",{event:d})}},f.addIcon||"+")}var ta=i.forwardRef(eo);function to(u,C){var S=u.prefixCls,f=u.id,e=u.tabs,r=u.locale,t=u.mobile,d=u.moreIcon,m=d===void 0?"More":d,T=u.moreTransitionName,x=u.style,P=u.className,F=u.editable,ve=u.tabBarGutter,pe=u.rtl,we=u.onTabClick,Ve=Object(i.useState)(!1),nt=Object(R.a)(Ve,2),Ye=nt[0],ot=nt[1],at=Object(i.useState)(null),Ze=Object(R.a)(at,2),qe=Ze[0],pt=Ze[1],rt="".concat(f,"-more-popup"),kt="".concat(S,"-dropdown"),yt=qe!==null?"".concat(rt,"-").concat(qe):null,Be=r==null?void 0:r.dropdownAriaLabel,We=i.createElement(Ka,{onClick:function(Ct){var Pt=Ct.key,Xt=Ct.domEvent;we(Pt,Xt),ot(!1)},id:rt,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[qe],"aria-label":Be!==void 0?Be:"expanded dropdown"},e.map(function(ht){return i.createElement(fa,{key:ht.key,id:"".concat(rt,"-").concat(ht.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(ht.key),disabled:ht.disabled},ht.tab)}));function st(ht){for(var Ct=e.filter(function(on){return!on.disabled}),Pt=Ct.findIndex(function(on){return on.key===qe})||0,Xt=Ct.length,an=0;anmt?(ct=We,rt.current="x"):(ct=st,rt.current="y");var Tt=Date.now();Tt-qe.current>100&&(pt.current=!1),(C(-ct,-ct)||pt.current)&&(Be.preventDefault(),pt.current=!0),qe.current=Tt}var yt=Object(i.useRef)(null);yt.current={onTouchStart:ot,onTouchMove:at,onTouchEnd:Ze,onWheel:kt},i.useEffect(function(){function Be(Ie){yt.current.onTouchStart(Ie)}function We(Ie){yt.current.onTouchMove(Ie)}function st(Ie){yt.current.onTouchEnd(Ie)}function ct(Ie){yt.current.onWheel(Ie)}return document.addEventListener("touchmove",We,{passive:!1}),document.addEventListener("touchend",st,{passive:!1}),u.current.addEventListener("touchstart",Be,{passive:!1}),u.current.addEventListener("wheel",ct),function(){document.removeEventListener("touchmove",We),document.removeEventListener("touchend",st)}},[])}function ba(){var u=Object(i.useRef)(new Map);function C(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function S(f){u.current.delete(f)}return[C,S]}function Wa(u,C){var S=i.useRef(u),f=i.useState({}),e=Object(R.a)(f,2),r=e[1];function t(d){var m=typeof d=="function"?d(S.current):d;m!==S.current&&C(m,S.current),S.current=m,r({})}return[S.current,t]}var Ba=function(C){var S=C.position,f=C.prefixCls,e=C.extra;if(!e)return null;var r,t=e;return S==="right"&&(r=t.right||!t.left&&t||null),S==="left"&&(r=t.left||null),r?i.createElement("div",{className:"".concat(f,"-extra-content")},r):null};function Wo(u,C){var S,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,T=u.animated,x=u.activeKey,P=u.rtl,F=u.extra,ve=u.editable,pe=u.locale,we=u.tabPosition,Ve=u.tabBarGutter,nt=u.children,Ye=u.onTabClick,ot=u.onTabScroll,at=Object(i.useRef)(),Ze=Object(i.useRef)(),qe=Object(i.useRef)(),pt=Object(i.useRef)(),rt=ba(),kt=Object(R.a)(rt,2),yt=kt[0],Be=kt[1],We=we==="top"||we==="bottom",st=Wa(0,function(Et,lt){We&&ot&&ot({direction:Et>lt?"left":"right"})}),ct=Object(R.a)(st,2),Ie=ct[0],mt=ct[1],Tt=Wa(0,function(Et,lt){!We&&ot&&ot({direction:Et>lt?"top":"bottom"})}),ht=Object(R.a)(Tt,2),Ct=ht[0],Pt=ht[1],Xt=Object(i.useState)(0),an=Object(R.a)(Xt,2),It=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],Kt=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Bt=Gt[0],An=Gt[1],wn=Object(i.useState)(0),Wn=Object(R.a)(wn,2),jt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),gt=Rt[0],Yt=Rt[1],$o=Object(i.useState)(null),bo=Object(R.a)($o,2),na=bo[0],Xo=bo[1],Go=Object(i.useState)(0),go=Object(R.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(i.useState)(0),yo=Object(R.a)(Qo,2),Zo=yo[0],qo=yo[1],er=K(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,It),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;We?P?(ga=0,ya=Math.max(0,It-gt)):(ga=Math.min(0,gt-It),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(Et){return Etya?[ya,!1]:[Et,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),_o=Object(R.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}za(at,function(Et,lt){var Ft=!1;function cn(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(R.a)(xa,2),co=aa[0],fo=aa[1];return Ft=fo,co})}if(We){if(gt>=It)return Ft;cn(mt,Et)}else{if(na>=un)return Ft;cn(Pt,lt)}return io(),ro(),Ft}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x,lt=Fa.get(Et);if(!lt)return;if(We){var Ft=Ie;P?lt.rightIe+gt&&(Ft=lt.right+lt.width-gt):lt.left<-Ie?Ft=-lt.left:lt.left+lt.width>-Ie+gt&&(Ft=-(lt.left+lt.width-gt)),Pt(0),mt(ao(Ft)[0])}else{var cn=Ct;lt.top<-Ct?cn=-lt.top:lt.top+lt.height>-Ct+na&&(cn=-(lt.top+lt.height-na)),mt(0),Pt(ao(cn)[0])}}var or=g(Fa,{width:gt,height:na,left:Ie,top:Ct},{width:Bt,height:jt},{width:Yo,height:Zo},Object(z.a)(Object(z.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(Et){var lt=Et.key;return i.createElement(O,{id:m,prefixCls:e,key:lt,rtl:P,tab:Et,closable:Et.closable,editable:ve,active:lt===x,tabPosition:we,tabBarGutter:Ve,renderWrapper:nt,removeAriaLabel:pe==null?void 0:pe.removeAriaLabel,ref:yt(lt),onClick:function(cn){Ye(lt,cn)},onRemove:function(){Be(lt)},onFocus:function(){jo(lt),ro(),P||(at.current.scrollLeft=0),at.current.scrollTop=0}})}),so=fe(function(){var Et,lt,Ft,cn,Ca,Oa,_a,xa,aa,co=((Et=at.current)===null||Et===void 0?void 0:Et.offsetWidth)||0,fo=((lt=at.current)===null||lt===void 0?void 0:lt.offsetHeight)||0,No=((Ft=pt.current)===null||Ft===void 0?void 0:Ft.offsetWidth)||0,Lo=((cn=pt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=qe.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=qe.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),Xo(fo),Jo(No),qo(Lo);var ko=(((_a=Ze.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-No,Uo=(((xa=Ze.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;on(ko),Kt(Uo);var Io=(aa=qe.current)===null||aa===void 0?void 0:aa.className.includes(Co);An(ko-(Io?0:pr)),Cn(Uo-(Io?0:mr)),nr(function(){var Ko=new Map;return r.forEach(function(hr){var zo=hr.key,ja=yt(zo).current;ja&&Ko.set(zo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=r.slice(0,rr),ur=r.slice(ir+1),So=[].concat(Object(X.a)(lr),Object(X.a)(ur)),cr=Object(i.useState)(),To=Object(R.a)(cr,2),dr=To[0],fr=To[1],Pn=Fa.get(x),Ro=Object(i.useRef)();function Ao(){Te.a.cancel(Ro.current)}Object(i.useEffect)(function(){var Et={};return Pn&&(We?(P?Et.right=Pn.right:Et.left=Pn.left,Et.width=Pn.width):(Et.top=Pn.top,Et.height=Pn.height)),Ao(),Ro.current=Te()(function(){fr(Et)}),Ao},[Pn,We,P]),Object(i.useEffect)(function(){jo()},[x,Pn,Fa,We]),Object(i.useEffect)(function(){so()},[P,Ve,x,r.map(function(Et){return Et.key}).join("_")]);var wo=!!So.length,Ea="".concat(e,"-nav-wrap"),lo,uo,Po,Do;return We?P?(uo=Ie>0,lo=Ie+gt1)Object(X.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(X.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=l[0];if(p.isValidElement(n)&&Object(le.c)(n)){var g=n.ref;l[0]=p.cloneElement(n,{ref:Object(le.a)(g,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,I){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(je,"-").concat(I)})})}}]),G}(p.Component);fe.displayName="ResizeObserver",xe.a=fe},wCXF:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return Fe});var k=a("rePB"),R=a("VTBJ"),Pe=a("KQm4"),z=a("U8pU"),i=a("ODXe"),p=a("q1tI"),se=a("TSYQ"),be=a.n(se),Y=a("Gytx"),X=a.n(Y),le=a("Kwbf"),Te=a("t23M"),je=a("qx4F"),fe=a("6eGT"),K=a("IBYe"),w=a("Ff2n"),G=a("c+Xe"),O=a("fyJ8"),E=a("biw7");function l(N,he,Ee,Ne,De){var Ce=Ee[N]||{},ae=Ee[he]||{},de,ye;Ce.fixed==="left"?de=Ne.left[N]:ae.fixed==="right"&&(ye=Ne.right[he]);var Ue=!1,Ae=!1,Le=!1,ze=!1,ke=Ee[he+1],Xe=Ee[N-1];if(De==="rtl"){if(de!==void 0){var it=Xe&&Xe.fixed==="left";ze=!it}else if(ye!==void 0){var Je=ke&&ke.fixed==="right";Le=!Je}}else if(de!==void 0){var ut=ke&&ke.fixed==="left";Ue=!ut}else if(ye!==void 0){var Qe=Xe&&Xe.fixed==="right";Ae=!Qe}return{fixLeft:de,fixRight:ye,lastFixLeft:Ue,firstFixRight:Ae,lastFixRight:Le,firstFixLeft:ze,isSticky:Ne.isSticky}}var n=a("sR1s");function g(N){var he=N.cells,Ee=N.stickyOffsets,Ne=N.flattenColumns,De=N.rowComponent,Ce=N.cellComponent,ae=N.onHeaderRow,de=N.index,ye=p.useContext(E.a),Ue=ye.prefixCls,Ae=ye.direction,Le;ae&&(Le=ae(he.map(function(ke){return ke.column}),de));var ze=Object(n.a)(he.map(function(ke){return ke.column}));return p.createElement(De,Object.assign({},Le),he.map(function(ke,Xe){var it=ke.column,Je=l(ke.colStart,ke.colEnd,Ne,Ee,Ae),ut;return it&&it.onHeaderCell&&(ut=ke.column.onHeaderCell(it)),p.createElement(O.a,Object.assign({},ke,{ellipsis:it.ellipsis,align:it.align,component:Ce,prefixCls:Ue,key:ze[Xe]},Je,{additionalProps:ut,rowType:"header"}))}))}g.displayName="HeaderRow";var s=g;function I(N){var he=[];function Ee(ae,de){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[ye]=he[ye]||[];var Ue=de,Ae=ae.filter(Boolean).map(function(Le){var ze={key:Le.key,className:Le.className||"",children:Le.title,column:Le,colStart:Ue},ke=1,Xe=Le.children;return Xe&&Xe.length>0&&(ke=Ee(Xe,Ue,ye+1).reduce(function(it,Je){return it+Je},0),ze.hasSubColumns=!0),"colSpan"in Le&&(ke=Le.colSpan),"rowSpan"in Le&&(ze.rowSpan=Le.rowSpan),ze.colSpan=ke,ze.colEnd=ze.colStart+ke-1,he[ye].push(ze),Ue+=ke,ke});return Ae}Ee(N,0);for(var Ne=he.length,De=function(de){he[de].forEach(function(ye){!("rowSpan"in ye)&&!ye.hasSubColumns&&(ye.rowSpan=Ne-de)})},Ce=0;Ce=0;de-=1){var ye=he[de],Ue=Ee&&Ee[de],Ae=Ue&&Ue[j.a];(ye||Ae||ae)&&(De.unshift(p.createElement("col",Object.assign({key:de,style:{width:ye,minWidth:ye}},Ae))),ae=!0)}return p.createElement("colgroup",null,De)}var B=h;function V(N,he){return Object(p.useMemo)(function(){for(var Ee=[],Ne=0;Ne1?Jt-1:0),dn=1;dn=Le&&(St=Le-ze),ae({scrollLeft:St/Le*(Ae+2)}),Qe.current.x=tt.pageX},xt=function(){var tt=Object(_e.b)(Ce.current).top,wt=tt+Ce.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;wt-Object(je.a)()<=Vt||tt>=Vt-de?ut(function($t){return Object(R.a)(Object(R.a)({},$t),{},{isHiddenScrollBar:!0})}):ut(function($t){return Object(R.a)(Object(R.a)({},$t),{},{isHiddenScrollBar:!1})})},_t=function(tt){ut(function(wt){return Object(R.a)(Object(R.a)({},wt),{},{scrollLeft:tt/Ae*Le||0})})};return p.useImperativeHandle(Ee,function(){return{setScrollLeft:_t}}),p.useEffect(function(){var bt=Object(me.a)(document.body,"mouseup",zt,!1),tt=Object(me.a)(document.body,"mousemove",Ht,!1);return xt(),function(){bt.remove(),tt.remove()}},[ze,Ot]),p.useEffect(function(){var bt=Object(me.a)(window,"scroll",xt,!1),tt=Object(me.a)(window,"resize",xt,!1);return function(){bt.remove(),tt.remove()}},[]),p.useEffect(function(){Je.isHiddenScrollBar||ut(function(bt){var tt,wt;return Object(R.a)(Object(R.a)({},bt),{},{scrollLeft:Ce.current.scrollLeft/((tt=Ce.current)===null||tt===void 0?void 0:tt.scrollWidth)*((wt=Ce.current)===null||wt===void 0?void 0:wt.clientWidth)})})},[Je.isHiddenScrollBar]),Ae<=Le||!ze||Je.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(je.a)(),width:Le,bottom:de},className:"".concat(Ue,"-sticky-scroll")},p.createElement("div",{onMouseDown:vt,ref:ke,className:be()("".concat(Ue,"-sticky-scroll-bar"),Object(k.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(ze,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},ge=p.forwardRef(Me);function Oe(N,he){return p.useMemo(function(){var Ee=!!N;return{isSticky:Ee,stickyClassName:Ee?"".concat(he,"-sticky-header"):"",offsetHeader:Object(z.a)(N)==="object"&&N.offsetHeader||0,offsetScroll:Object(z.a)(N)==="object"&&N.offsetScroll||0}},[N,he])}var He=[],Ke={},Fe="rc-table-internal-hook",et=p.memo(function(N){var he=N.children;return he},function(N,he){return X()(N.props,he.props)?N.pingLeft!==he.pingLeft||N.pingRight!==he.pingRight:!1});function $e(N){var he,Ee=N.prefixCls,Ne=N.className,De=N.rowClassName,Ce=N.style,ae=N.data,de=N.rowKey,ye=N.scroll,Ue=N.tableLayout,Ae=N.direction,Le=N.title,ze=N.footer,ke=N.summary,Xe=N.id,it=N.showHeader,Je=N.components,ut=N.emptyText,Qe=N.onRow,Dt=N.onHeaderRow,At=N.internalHooks,Ot=N.transformColumns,Ut=N.internalRefs,zt=N.sticky,vt=ae||He,Ht=!!vt.length,xt=p.useState(0),_t=Object(i.a)(xt,2),bt=_t[0],tt=_t[1];p.useEffect(function(){tt(Object(je.a)())});var wt=p.useMemo(function(){return Object(n.c)(Je,{})},[Je]),Vt=p.useCallback(function(dt,ft){return Object(n.b)(wt,dt)||ft},[wt]),$t=p.useMemo(function(){return typeof de=="function"?de:function(dt){var ft=dt&&dt[de];return ft}},[de]),St=Object(j.c)(N),Dn=St.expandIcon,Nn=St.expandedRowKeys,Fn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,_n=St.onExpandedRowsChange,Hn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,yn=St.expandedRowClassName,kn=St.childrenColumnName,xn=St.indentSize,vn=Dn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":N.expandable&&At===Fe&&N.expandable.__PARENT_RENDER_ICON__||vt.some(function(dt){return dt&&Object(z.a)(dt)==="object"&&dt[jn]})?"nest":!1},[!!hn,vt]),Mn=p.useState(function(){return Fn||(rn?Se(vt,$t,jn):[])}),Wt=Object(i.a)(Mn,2),Zt=Wt[0],sn=Wt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(dt){var ft=$t(dt,vt.indexOf(dt)),Lt,Qt=Jt.has(ft);Qt?(Jt.delete(ft),Lt=Object(Pe.a)(Jt)):Lt=[].concat(Object(Pe.a)(Jt),[ft]),sn(Lt),On&&On(!Qt,dt),_n&&_n(Lt)},[$t,Jt,vt,On,_n]),dn=p.useState(0),$n=Object(i.a)(dn,2),Un=$n[0],Xn=$n[1],Ma=Object(te.b)(Object(R.a)(Object(R.a)(Object(R.a)({},N),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:$t,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Ae}),At===Fe?Ot:null),Sa=Object(i.a)(Ma,2),Gn=Sa[0],Nt=Sa[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Nt}},[Gn,Nt]),Jn=p.useRef(),Ta=p.useRef(),fn=p.useRef(),Ha=p.useState(!1),Ra=Object(i.a)(Ha,2),oa=Ra[0],Va=Ra[1],$a=p.useState(!1),ra=Object(i.a)($a,2),Qn=ra[0],Xa=ra[1],Ga=$(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(n.a)(Nt),ia=bn.map(function(dt){return Ya.get(dt)}),wa=p.useMemo(function(){return ia},[ia.join("_")]),sa=b(wa,Nt.length,Ae),nn=ye&&Object(n.d)(ye.y),pn=ye&&Object(n.d)(ye.x),mn=pn&&Nt.some(function(dt){var ft=dt.fixed;return ft}),la=p.useRef(),In=Oe(zt,Ee),Kn=In.isSticky,Pa=In.offsetHeader,Qa=In.offsetScroll,Da=In.stickyClassName,ua,Zn,Sn;nn&&(Zn={overflowY:"scroll",maxHeight:ye.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Sn={width:ye.x===!0?"auto":ye.x,minWidth:"100%"});var En=p.useCallback(function(dt,ft){Ja(function(Lt){var Qt=new Map(Lt);return Qt.set(dt,ft),Qt})},[]),qn=ee(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(dt,ft){if(!ft)return;typeof ft=="function"?ft(dt):ft.scrollLeft!==dt&&(ft.scrollLeft=dt)}var Tn=function(ft){var Lt=ft.currentTarget,Qt=ft.scrollLeft,zn=typeof Qt=="number"?Qt:Lt.scrollLeft,za=Lt||Ke;if(!ka()||ka()===za){var ba;La(za),ea(zn,Ta.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Lt){var Wa=Lt.scrollWidth,Ba=Lt.clientWidth;Va(zn>0),Xa(zn0?[].concat(Object(R.a)(w),Object(R.a)(le(l).map(function(n){return Object(Pe.a)({fixed:E},n)}))):[].concat(Object(R.a)(w),[Object(Pe.a)(Object(Pe.a)({},G),{},{fixed:E})])},[])}function Te(K){for(var w=!0,G=0;G=0;l-=1){var n=K[l];if(E&&n.fixed!=="right")E=!1;else if(!E&&n.fixed==="right"){Object(se.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function je(K){return K.map(function(w){var G=w.fixed,O=Object(z.a)(w,["fixed"]),E=G;return G==="left"?E="right":G==="right"&&(E="left"),Object(Pe.a)({fixed:E},O)})}function fe(K,w){var G=K.prefixCls,O=K.columns,E=K.children,l=K.expandable,n=K.expandedKeys,g=K.getRowKey,s=K.onTriggerExpand,I=K.expandIcon,H=K.rowExpandable,v=K.expandIconColumnIndex,j=K.direction,h=K.expandRowByClick,B=i.useMemo(function(){return O||X(E)},[O,E]),V=i.useMemo(function(){if(l){var oe,L=v||0,W=B[L],_=(oe={},Object(k.a)(oe,Y.a,{className:"".concat(G,"-expand-icon-col")}),Object(k.a)(oe,"title",""),Object(k.a)(oe,"fixed",W?W.fixed:null),Object(k.a)(oe,"className","".concat(G,"-row-expand-icon-cell")),Object(k.a)(oe,"render",function(M,A,Q){var ie=g(A,Q),ue=n.has(ie),J=H?H(A):!0,te=I({prefixCls:G,expanded:ue,expandable:J,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},te):te}),oe),y=B.slice();return L>=0&&y.splice(L,0,_),y}return B},[l,B,g,n,I,j]),q=i.useMemo(function(){var oe=V;return w&&(oe=w(oe)),oe.length||(oe=[{render:function(){return null}}]),oe},[w,V,j]),Re=i.useMemo(function(){return j==="rtl"?je(le(q)):le(q)},[q,j]);return[q,Re]}xe.b=fe},"y0+3":function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return le}),a.d(xe,"b",function(){return je});var k=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Pe={cssFloat:1,styleFloat:1,float:1};function z(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function i(fe,K,w){if(K=K.toLowerCase(),w==="auto"){if(K==="height")return fe.offsetHeight;if(K==="width")return fe.offsetWidth}return K in R||(R[K]=k.test(K)),R[K]?parseFloat(w)||0:w}function p(fe,K){var w=arguments.length,G=z(fe);return K=Pe[K]?"cssFloat"in fe.style?"cssFloat":"styleFloat":K,w===1?G:i(fe,K,G[K]||fe.style[K])}function se(fe,K,w){var G=arguments.length;if(K=Pe[K]?"cssFloat"in fe.style?"cssFloat":"styleFloat":K,G===3)return typeof w=="number"&&k.test(K)&&(w="".concat(w,"px")),fe.style[K]=w,w;for(var O in K)K.hasOwnProperty(O)&&se(fe,O,K[O]);return z(fe)}function be(fe){return fe===document.body?document.documentElement.clientWidth:fe.offsetWidth}function Y(fe){return fe===document.body?window.innerHeight||document.documentElement.clientHeight:fe.offsetHeight}function X(){var fe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),K=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:fe,height:K}}function le(){var fe=document.documentElement.clientWidth,K=window.innerHeight||document.documentElement.clientHeight;return{width:fe,height:K}}function Te(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function je(fe){var K=fe.getBoundingClientRect(),w=document.documentElement;return{left:K.left+(window.pageXOffset||w.scrollLeft)-(w.clientLeft||document.body.clientLeft||0),top:K.top+(window.pageYOffset||w.scrollTop)-(w.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(A,",").concat(A," 0 1 1 ").concat(-ue,",").concat(J),ce=Math.PI*2*A,ne={stroke:_,strokeDasharray:"".concat(W/100*(ce-U),"px ").concat(ce,"px"),strokeDashoffset:"-".concat(U/2+L/100*(ce-U),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:te,pathStyle:ne}}var q=function(W){var _=W.prefixCls,y=W.strokeWidth,U=W.trailWidth,M=W.gapDegree,A=W.gapPosition,Q=W.trailColor,ie=W.strokeLinecap,ue=W.style,J=W.className,te=W.strokeColor,ce=W.percent,ne=H(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),$=Object(k.useMemo)(function(){return j+=1,j},[]),ee=V(0,100,Q,y,M,A),o=ee.pathString,b=ee.pathStyle,c=B(ce),D=B(te),Z=D.find(function(Me){return Object.prototype.toString.call(Me)==="[object Object]"}),re=p(c),Te=E(re,1),me=Te[0],_e=function(){var ge=0;return c.map(function(Oe,He){var Ke=D[He]||D[D.length-1],Fe=Object.prototype.toString.call(Ke)==="[object Object]"?"url(#".concat(_,"-gradient-").concat($,")"):"",et=V(ge,Oe,Ke,y,M,A);return ge+=Oe,R.a.createElement("path",{key:He,className:"".concat(_,"-circle-path"),d:et.pathString,stroke:Fe,strokeLinecap:ie,strokeWidth:y,opacity:Oe===0?0:1,fillOpacity:"0",style:et.pathStyle,ref:me[He]})})};return R.a.createElement("svg",O({className:z()("".concat(_,"-circle"),J),viewBox:"0 0 100 100",style:ue},ne),Z&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(_,"-gradient-").concat($),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Z).sort(function(Me,ge){return h(Me)-h(ge)}).map(function(Me,ge){return R.a.createElement("stop",{key:ge,offset:Me,stopColor:Z[Me]})}))),R.a.createElement("path",{className:"".concat(_,"-circle-trail"),d:o,stroke:Q,strokeLinecap:ie,strokeWidth:U||y,fillOpacity:"0",style:b}),_e().reverse())};q.defaultProps=i;var Re=q,oe={Line:G,Circle:Re}},hW8S:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return z}),a.d(xe,"c",function(){return i}),a.d(xe,"b",function(){return p});var k=a("VTBJ"),R=a("Ff2n"),Pe=a("Kwbf"),z="RC_TABLE_INTERNAL_COL_DEFINE";function i(se){var be=se.expandable,Y=Object(R.a)(se,["expandable"]);return"expandable"in se?Object(k.a)(Object(k.a)({},Y),be):Y}function p(se){return Object.keys(se).reduce(function(be,Y){return(Y.substr(0,5)==="data-"||Y.substr(0,5)==="aria-")&&(be[Y]=se[Y]),be},{})}},k3GJ:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return mo});var k=a("rePB"),R=a("ODXe"),Pe=a("Ff2n"),z=a("VTBJ"),i=a("q1tI"),p=a("TSYQ"),se=a.n(p),be=a("Zm9Q"),Y=a("6cGi"),X=a("KQm4"),le=a("xEkU"),Se=a.n(le),je=a("t23M");function fe(u){var C=Object(i.useRef)(),T=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tP&&(pe=P-ve),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var we=r.length,Ve=we,nt=0;ntx+pe){Ve=nt-1;break}}for(var ot=0,at=we-1;at>=0;at-=1){var Ze=u.get(r[at].key)||n;if(Ze[S]1&&arguments[1]!==void 0?arguments[1]:!1,f=C&&typeof C.getBoundingClientRect=="function"&&C.getBoundingClientRect().width;if(f){if(T){var e=getComputedStyle(C),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},ge=function(C,T,f){C&&Object(L.a)(C.style)==="object"&&(C.style[T]=f)},Oe=function(){return c.any},He=a("bdgK"),Ke=a("i8i4"),Fe=a.n(Ke),et=a("wgJM"),$e=a("l4aY"),Mt=a("m+aA"),N=a("c+Xe"),he=a("zT1h"),Ee=a("QC+M");function Ne(u,C,T){return T?u[0]===C[0]:u[0]===C[0]&&u[1]===C[1]}function De(u,C,T){var f=u[C]||{};return Object(z.a)(Object(z.a)({},f),T)}function Ce(u,C,T,f){for(var e=T.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;C();var r=Object(et.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):T(f,e-1)});u.current=r}return i.useEffect(function(){return function(){C()}},[]),[T,C]},Dn=[xt,_t,bt,tt],Nn=!1,Fn=!0;function rn(u){return u===bt||u===tt}var hn=function(u,C){var T=i.useState(Ht),f=Object(R.a)(T,2),e=f[0],r=f[1],t=Tt(),d=Object(R.a)(t,2),m=d[0],S=d[1];function x(){r(xt)}return $t(function(){if(e!==Ht&&e!==tt){var P=Dn.indexOf(e),F=Dn[P+1],ve=C(e);ve===Nn?r(F):m(function(pe){function we(){if(pe.isCanceled())return;r(F)}ve===!0?we():Promise.resolve(ve).then(we)})}},[u,e]),i.useEffect(function(){return function(){S()}},[]),[x,e]},On=function(u){var C=Object(i.useRef)(),T=Object(i.useRef)(u);T.current=u;var f=i.useCallback(function(t){T.current(t)},[]);function e(t){t&&(t.removeEventListener(Dt,f),t.removeEventListener(Qe,f))}function r(t){C.current&&C.current!==t&&e(C.current),t&&t!==C.current&&(t.addEventListener(Dt,f),t.addEventListener(Qe,f),C.current=t)}return i.useEffect(function(){return function(){e(C.current)}},[]),[r,e]};function _n(u,C,T,f){var e=f.motionEnter,r=e===void 0?!0:e,t=f.motionAppear,d=t===void 0?!0:t,m=f.motionLeave,S=m===void 0?!0:m,x=f.motionDeadline,P=f.motionLeaveImmediately,F=f.onAppearPrepare,ve=f.onEnterPrepare,pe=f.onLeavePrepare,we=f.onAppearStart,Ve=f.onEnterStart,nt=f.onLeaveStart,Ye=f.onAppearActive,ot=f.onEnterActive,at=f.onLeaveActive,Ze=f.onAppearEnd,qe=f.onEnterEnd,pt=f.onLeaveEnd,rt=f.onVisibleChanged,kt=wt(),yt=Object(R.a)(kt,2),Be=yt[0],We=yt[1],st=wt(Ot),ct=Object(R.a)(st,2),Ie=ct[0],mt=ct[1],St=wt(null),ht=Object(R.a)(St,2),Ct=ht[0],Pt=ht[1],Xt=Object(i.useRef)(!1),an=Object(i.useRef)(null),It=Object(i.useRef)(!1),on=Object(i.useRef)(null);function gn(){var Rt=T();return Rt||on.current}var ln=Object(i.useRef)(!1);function un(Rt){var gt=gn();if(Rt&&!Rt.deadline&&Rt.target!==gt)return;var Yt;Ie===Ut&&ln.current?Yt=Ze==null?void 0:Ze(gt,Rt):Ie===zt&&ln.current?Yt=qe==null?void 0:qe(gt,Rt):Ie===vt&&ln.current&&(Yt=pt==null?void 0:pt(gt,Rt)),Yt!==!1&&!It.current&&(mt(Ot),Pt(null))}var Kt=On(un),qt=Object(R.a)(Kt,1),Gt=qt[0],Bt=i.useMemo(function(){var Rt,gt,Yt;switch(Ie){case"appear":return Rt={},Object(k.a)(Rt,xt,F),Object(k.a)(Rt,_t,we),Object(k.a)(Rt,bt,Ye),Rt;case"enter":return gt={},Object(k.a)(gt,xt,ve),Object(k.a)(gt,_t,Ve),Object(k.a)(gt,bt,ot),gt;case"leave":return Yt={},Object(k.a)(Yt,xt,pe),Object(k.a)(Yt,_t,nt),Object(k.a)(Yt,bt,at),Yt;default:return{}}},[Ie]),An=hn(Ie,function(Rt){if(Rt===xt){var gt=Bt[xt];return gt?gt(gn()):Nn}if(jt in Bt){var Yt;Pt(((Yt=Bt[jt])===null||Yt===void 0?void 0:Yt.call(Bt,gn(),null))||null)}return jt===bt&&(Gt(gn()),x>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},x))),Fn}),wn=Object(R.a)(An,2),Wn=wn[0],jt=wn[1],Cn=rn(jt);ln.current=Cn,$t(function(){We(C);var Rt=Xt.current;if(Xt.current=!0,!u)return;var gt;!Rt&&C&&d&&(gt=Ut),Rt&&C&&r&&(gt=zt),(Rt&&!C&&S||!Rt&&P&&!C&&S)&&(gt=vt),gt&&(mt(gt),Wn())},[C]),Object(i.useEffect)(function(){(Ie===Ut&&!d||Ie===zt&&!r||Ie===vt&&!S)&&mt(Ot)},[d,r,S]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),It.current=!0}},[]),Object(i.useEffect)(function(){Be!==void 0&&Ie===Ot&&(rt==null||rt(Be))},[Be,Ie]);var Bn=Ct;return Bt[xt]&&jt===_t&&(Bn=Object(z.a)({transition:"none"},Bn)),[Ie,jt,Bn,Be!=null?Be:C]}var Hn=function(u){Object(j.a)(T,u);var C=Object(h.a)(T);function T(){return Object(I.a)(this,T),C.apply(this,arguments)}return Object(H.a)(T,[{key:"render",value:function(){return this.props.children}}]),T}(i.Component),en=Hn;function Ln(u){var C=u;Object(L.a)(u)==="object"&&(C=u.transitionSupport);function T(e){return!!(e.motionName&&C)}var f=i.forwardRef(function(e,r){var t=e.visible,d=t===void 0?!0:t,m=e.removeOnLeave,S=m===void 0?!0:m,x=e.forceRender,P=e.children,F=e.motionName,ve=e.leavedClassName,pe=e.eventProps,we=T(e),Ve=Object(i.useRef)(),nt=Object(i.useRef)();function Ye(){try{return Object(Mt.a)(Ve.current||nt.current)}catch(mt){return null}}var ot=_n(we,d,Ye,e),at=Object(R.a)(ot,4),Ze=at[0],qe=at[1],pt=at[2],rt=at[3],kt=i.useRef(rt);rt&&(kt.current=!0);var yt=Object(i.useRef)(r);yt.current=r;var Be=i.useCallback(function(mt){Ve.current=mt,Object(N.b)(yt.current,mt)},[]),We,st=Object(z.a)(Object(z.a)({},pe),{},{visible:d});if(!P)We=null;else if(Ze===Ot||!T(e))rt?We=P(Object(z.a)({},st),Be):!S&&kt.current?We=P(Object(z.a)(Object(z.a)({},st),{},{className:ve}),Be):x?We=P(Object(z.a)(Object(z.a)({},st),{},{style:{display:"none"}}),Be):We=null;else{var ct,Ie;qe===xt?Ie="prepare":rn(qe)?Ie="active":qe===_t&&(Ie="start"),We=P(Object(z.a)(Object(z.a)({},st),{},{className:se()(At(F,Ze),(ct={},Object(k.a)(ct,At(F,"".concat(Ze,"-").concat(Ie)),Ie),Object(k.a)(ct,F,typeof F=="string"),ct)),style:pt}),Be)}return i.createElement(en,{ref:nt},We)});return f.displayName="CSSMotion",f}var yn=Ln(ut),kn="add",xn="keep",vn="remove",jn="removed";function Vn(u){var C;return u&&Object(L.a)(u)==="object"&&"key"in u?C=u:C={key:u},Object(z.a)(Object(z.a)({},C),{},{key:String(C.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function Wt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],T=[],f=0,e=C.length,r=Mn(u),t=Mn(C);r.forEach(function(S){for(var x=!1,P=f;P1});return m.forEach(function(S){T=T.filter(function(x){var P=x.key,F=x.status;return P!==S||F!==vn}),T.forEach(function(x){x.key===S&&(x.status=xn)})}),T}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,T=function(f){Object(j.a)(r,f);var e=Object(h.a)(r);function r(){var t;return Object(I.a)(this,r),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(m){var S=m.keyEntities;return{keyEntities:S.map(function(x){return x.key!==d?x:Object(z.a)(Object(z.a)({},x),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,S=this.props,x=S.component,P=S.children,F=S.onVisibleChanged,ve=Object(Pe.a)(S,["component","children","onVisibleChanged"]),pe=x||i.Fragment,we={};return Zt.forEach(function(Ve){we[Ve]=ve[Ve],delete ve[Ve]}),delete ve.keys,i.createElement(pe,ve,m.map(function(Ve){var nt=Ve.status,Ye=Object(Pe.a)(Ve,["status"]),ot=nt===kn||nt===xn;return i.createElement(C,Object(s.a)({},we,{key:Ye.key,visible:ot,eventProps:Ye,onVisibleChanged:function(Ze){F==null||F(Ze,{key:Ye.key}),Ze||d.removeKey(Ye.key)}}),P)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var S=d.keys,x=m.keyEntities,P=Mn(S),F=Wt(x,P);return{keyEntities:F.filter(function(ve){var pe=x.find(function(we){var Ve=we.key;return ve.key===Ve});return!(pe&&pe.status===jn&&ve.status===vn)})}}}]),r}(i.Component);return T.defaultProps={component:"div"},T}var Jt=sn(ut),tn=yn;function dn(u){var C=u.prefixCls,T=u.motion,f=u.animation,e=u.transitionName;return T||(f?{motionName:"".concat(C,"-").concat(f)}:e?{motionName:e}:null)}function $n(u){var C=u.prefixCls,T=u.visible,f=u.zIndex,e=u.mask,r=u.maskMotion,t=u.maskAnimation,d=u.maskTransitionName;if(!e)return null;var m={};return(r||d||t)&&(m=Object(z.a)({motionAppear:!0},dn({motion:r,prefixCls:C,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:T,removeOnLeave:!0}),function(S){var x=S.className;return i.createElement("div",{style:{zIndex:f},className:se()("".concat(C,"-mask"),x)})})}var Un=a("9mu1"),Xn=a("o0o1"),Ma=a.n(Xn),Ta=a("HaE+"),Gn=["measure","align",null,"motion"],Nt=function(u,C){var T=Object(i.useState)(null),f=Object(R.a)(T,2),e=f[0],r=f[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function m(P){d.current||r(P)}function S(){et.a.cancel(t.current)}function x(P){S(),t.current=Object(et.a)(function(){m(function(F){switch(e){case"align":return"motion";case"motion":return"stable";default:}return F}),P==null||P()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":C();break;default:}e&&(t.current=Object(et.a)(Object(Ta.a)(Ma.a.mark(function P(){var F,ve;return Ma.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:F=Gn.indexOf(e),ve=Gn[F+1],ve&&F!==-1&&m(ve);case 3:case"end":return we.stop()}},P)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,S()}},[]),[e,x]},Yn=function(u){var C=i.useState({width:0,height:0}),T=Object(R.a)(C,2),f=T[0],e=T[1];function r(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(u){var m=f.width,S=f.height;u.indexOf("height")!==-1&&S?d.height=S:u.indexOf("minHeight")!==-1&&S&&(d.minHeight=S),u.indexOf("width")!==-1&&m?d.width=m:u.indexOf("minWidth")!==-1&&m&&(d.minWidth=m)}return d},[u,f]);return[t,r]},Jn=i.forwardRef(function(u,C){var T=u.visible,f=u.prefixCls,e=u.className,r=u.style,t=u.children,d=u.zIndex,m=u.stretch,S=u.destroyPopupOnHide,x=u.forceRender,P=u.align,F=u.point,ve=u.getRootDomNode,pe=u.getClassNameFromAlign,we=u.onAlign,Ve=u.onMouseEnter,nt=u.onMouseLeave,Ye=u.onMouseDown,ot=u.onTouchStart,at=Object(i.useRef)(),Ze=Object(i.useRef)(),qe=Object(i.useState)(),pt=Object(R.a)(qe,2),rt=pt[0],kt=pt[1],yt=Yn(m),Be=Object(R.a)(yt,2),We=Be[0],st=Be[1];function ct(){m&&st(ve())}var Ie=Nt(T,ct),mt=Object(R.a)(Ie,2),St=mt[0],ht=mt[1],Ct=Object(i.useRef)();function Pt(){return F||ve}function Xt(){var Kt;(Kt=at.current)===null||Kt===void 0||Kt.forceAlign()}function an(Kt,qt){var Gt=pe(qt);rt!==Gt&&kt(Gt),St==="align"&&(rt!==Gt?Promise.resolve().then(function(){Xt()}):ht(function(){var Bt;(Bt=Ct.current)===null||Bt===void 0||Bt.call(Ct)}),we==null||we(Kt,qt))}var It=Object(z.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Kt){var qt=It[Kt];It[Kt]=function(Gt,Bt){return ht(),qt==null?void 0:qt(Gt,Bt)}});function on(){return new Promise(function(Kt){Ct.current=Kt})}i.useEffect(function(){!It.motionName&&St==="motion"&&ht()},[It.motionName,St]),i.useImperativeHandle(C,function(){return{forceAlign:Xt,getElement:function(){return Ze.current}}});var gn=Object(z.a)(Object(z.a)({},We),{},{zIndex:d,opacity:St==="motion"||St==="stable"||!T?void 0:0,pointerEvents:St==="stable"?void 0:"none"},r),ln=!0;(P==null?void 0:P.points)&&(St==="align"||St==="stable")&&(ln=!1);var un=t;return i.Children.count(t)>1&&(un=i.createElement("div",{className:"".concat(f,"-content")},t)),i.createElement(tn,Object(s.a)({visible:T,ref:Ze,leavedClassName:"".concat(f,"-hidden")},It,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:S,forceRender:x}),function(Kt,qt){var Gt=Kt.className,Bt=Kt.style,An=se()(f,e,rt,Gt);return i.createElement(Un.a,{target:Pt(),key:"popup",ref:at,monitorWindowResize:!0,disabled:ln,align:P,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:nt,onMouseDownCapture:Ye,onTouchStartCapture:ot,style:Object(z.a)(Object(z.a)({},Bt),gn)},un))})});Jn.displayName="PopupInner";var Sa=Jn,fn=i.forwardRef(function(u,C){var T=u.prefixCls,f=u.visible,e=u.zIndex,r=u.children,t=u.mobile;t=t===void 0?{}:t;var d=t.popupClassName,m=t.popupStyle,S=t.popupMotion,x=S===void 0?{}:S,P=t.popupRender,F=i.useRef();i.useImperativeHandle(C,function(){return{forceAlign:function(){},getElement:function(){return F.current}}});var ve=Object(z.a)({zIndex:e},m),pe=r;return i.Children.count(r)>1&&(pe=i.createElement("div",{className:"".concat(T,"-content")},r)),P&&(pe=P(pe)),i.createElement(tn,Object(s.a)({visible:f,ref:F,removeOnLeave:!0},x),function(we,Ve){var nt=we.className,Ye=we.style,ot=se()(T,d,nt);return i.createElement("div",{ref:Ve,className:ot,style:Object(z.a)(Object(z.a)({},Ye),ve)},pe)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,C){var T=u.visible,f=u.mobile,e=Object(Pe.a)(u,Ra),r=Object(i.useState)(T),t=Object(R.a)(r,2),d=t[0],m=t[1],S=Object(i.useState)(!1),x=Object(R.a)(S,2),P=x[0],F=x[1],ve=Object(z.a)(Object(z.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(T),T&&f&&F(ae())},[T,f]);var pe=P?i.createElement(Ha,Object(s.a)({},ve,{mobile:f,ref:C})):i.createElement(Sa,Object(s.a)({},ve,{ref:C}));return i.createElement("div",null,i.createElement($n,ve),pe)});oa.displayName="Popup";var Va=oa,$a=i.createContext(null),ra=$a;function Qn(){}function Xa(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var C=function(T){Object(j.a)(e,T);var f=Object(h.a)(e);function e(r){var t;Object(I.a)(this,e),t=f.call(this,r),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(m){var S=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",m),t.delaySetPopupVisible(!0,S,S?null:m)},t.onMouseMove=function(m){t.fireEvents("onMouseMove",m),t.setPoint(m)},t.onMouseLeave=function(m){t.fireEvents("onMouseLeave",m),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(m){var S;if(m.relatedTarget&&!m.relatedTarget.setTimeout&&Object($e.a)((S=t.popupRef.current)===null||S===void 0?void 0:S.getElement(),m.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(m){t.fireEvents("onFocus",m),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(m){t.fireEvents("onMouseDown",m),t.preClickTime=Date.now()},t.onTouchStart=function(m){t.fireEvents("onTouchStart",m),t.preTouchTime=Date.now()},t.onBlur=function(m){t.fireEvents("onBlur",m),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(m){m.preventDefault(),t.fireEvents("onContextMenu",m),t.setPopupVisible(!0,m)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(m){if(t.fireEvents("onClick",m),t.focusTime){var S;if(t.preClickTime&&t.preTouchTime?S=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?S=t.preClickTime:t.preTouchTime&&(S=t.preTouchTime),Math.abs(S-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&m&&m.preventDefault&&m.preventDefault();var x=!t.state.popupVisible;(t.isClickToHide()&&!x||x&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,m)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var m;(m=t.context).onPopupMouseDown.apply(m,arguments)}},t.onDocumentClick=function(m){if(t.props.mask&&!t.props.maskClosable)return;var S=m.target,x=t.getRootDomNode(),P=t.getPopupDomNode();(!Object($e.a)(x,S)||t.isContextMenuOnly())&&!Object($e.a)(P,S)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var S=Object(Mt.a)(t.triggerRef.current);if(S)return S}catch(x){}return Fe.a.findDOMNode(Object(v.a)(t))},t.getPopupClassNameFromAlign=function(m){var S=[],x=t.props,P=x.popupPlacement,F=x.builtinPlacements,ve=x.prefixCls,pe=x.alignPoint,we=x.getPopupClassNameFromAlign;return P&&F&&S.push(Ce(F,ve,m,pe)),we&&S.push(we(m)),S.join(" ")},t.getComponent=function(){var m=t.props,S=m.prefixCls,x=m.destroyPopupOnHide,P=m.popupClassName,F=m.onPopupAlign,ve=m.popupMotion,pe=m.popupAnimation,we=m.popupTransitionName,Ve=m.popupStyle,nt=m.mask,Ye=m.maskAnimation,ot=m.maskTransitionName,at=m.maskMotion,Ze=m.zIndex,qe=m.popup,pt=m.stretch,rt=m.alignPoint,kt=m.mobile,yt=m.forceRender,Be=t.state,We=Be.popupVisible,st=Be.point,ct=t.getPopupAlign(),Ie={};return t.isMouseEnterToShow()&&(Ie.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Ie.onMouseLeave=t.onPopupMouseLeave),Ie.onMouseDown=t.onPopupMouseDown,Ie.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:S,destroyPopupOnHide:x,visible:We,point:rt&&st,className:P,align:ct,onAlign:F,animation:pe,getClassNameFromAlign:t.getPopupClassNameFromAlign},Ie,{stretch:pt,getRootDomNode:t.getRootDomNode,style:Ve,mask:nt,zIndex:Ze,transitionName:we,maskAnimation:Ye,maskTransitionName:ot,maskMotion:at,ref:t.popupRef,motion:ve,mobile:kt,forceRender:yt}),typeof qe=="function"?qe():qe)},t.attachParent=function(m){et.a.cancel(t.attachId);var S=t.props,x=S.getPopupContainer,P=S.getDocument,F=t.getRootDomNode(),ve;x?(F||x.length===0)&&(ve=x(F)):ve=P(t.getRootDomNode()).body,ve?ve.appendChild(m):t.attachId=Object(et.a)(function(){t.attachParent(m)})},t.getContainer=function(){var m=t.props.getDocument,S=m(t.getRootDomNode()).createElement("div");return S.style.position="absolute",S.style.top="0",S.style.left="0",S.style.width="100%",t.attachParent(S),S},t.setPoint=function(m){var S=t.props.alignPoint;if(!S||!m)return;t.setState({point:{pageX:m.pageX,pageY:m.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in r?d=!!r.popupVisible:d=!!r.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Aa.forEach(function(m){t["fire".concat(m)]=function(S){t.fireEvents(m,S)}}),t}return Object(H.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var m;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(m=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(he.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(he.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(he.a)(m,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(he.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),et.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,m=t.popupAlign,S=t.builtinPlacements;return d&&S?De(S,d,m):m}},{key:"setPopupVisible",value:function(t,d){var m=this.props.alignPoint,S=this.state.popupVisible;this.clearDelayTimer(),S!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:S}),this.props.onPopupVisibleChange(t)),m&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,m){var S=this,x=d*1e3;if(this.clearDelayTimer(),x){var P=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){S.setPopupVisible(t,P),S.clearDelayTimer()},x)}else this.setPopupVisible(t,m)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var d=this.props.children.props,m=this.props;return d[t]&&m[t]?this["fire".concat(t)]:d[t]||m[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("contextMenu")!==-1||m.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("hover")!==-1||m.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("hover")!==-1||m.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("focus")!==-1||m.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("focus")!==-1||m.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var m=this.props.children.props[t];m&&m(d);var S=this.props[t];S&&S(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,m=d.children,S=d.forceRender,x=d.alignPoint,P=d.className,F=d.autoDestroy,ve=i.Children.only(m),pe={key:"trigger"};this.isContextMenuToShow()?pe.onContextMenu=this.onContextMenu:pe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(pe.onClick=this.onClick,pe.onMouseDown=this.onMouseDown,pe.onTouchStart=this.onTouchStart):(pe.onClick=this.createTwoChains("onClick"),pe.onMouseDown=this.createTwoChains("onMouseDown"),pe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(pe.onMouseEnter=this.onMouseEnter,x&&(pe.onMouseMove=this.onMouseMove)):pe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?pe.onMouseLeave=this.onMouseLeave:pe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(pe.onFocus=this.onFocus,pe.onBlur=this.onBlur):(pe.onFocus=this.createTwoChains("onFocus"),pe.onBlur=this.createTwoChains("onBlur"));var we=se()(ve&&ve.props&&ve.props.className,P);we&&(pe.className=we);var Ve=Object(z.a)({},pe);Object(N.c)(ve)&&(Ve.ref=Object(N.a)(this.triggerRef,ve.ref));var nt=i.cloneElement(ve,Ve),Ye;return(t||this.popupRef.current||S)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&F&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},nt,Ye)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var m=t.popupVisible,S={};return m!==void 0&&d.popupVisible!==m&&(S.popupVisible=m,S.prevPopupVisible=d.popupVisible),S}}]),e}(i.Component);return C.contextType=ra,C.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xa,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},C}var Ja=Ya(Ee.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},wa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mn=function(C,T,f){var e=re(T),r=C.getState();C.setState({defaultActiveFirst:Object(z.a)(Object(z.a)({},r.defaultActiveFirst),{},Object(k.a)({},e,f))})},la=function(u){Object(j.a)(T,u);var C=Object(h.a)(T);function T(f){var e;Object(I.a)(this,T),e=C.call(this,f),e.onDestroy=function(x){e.props.onDestroy(x)},e.onKeyDown=function(x){var P=x.keyCode,F=e.menuInstance,ve=e.props.store,pe=e.getVisible();if(P===w.a.ENTER)return e.onTitleClick(x),mn(ve,e.props.eventKey,!0),!0;if(P===w.a.RIGHT)return pe?F.onKeyDown(x):(e.triggerOpenChange(!0),mn(ve,e.props.eventKey,!0)),!0;if(P===w.a.LEFT){var we;if(pe)we=F.onKeyDown(x);else return;return we||(e.triggerOpenChange(!1),we=!0),we}return pe&&(P===w.a.UP||P===w.a.DOWN)?F.onKeyDown(x):void 0},e.onOpenChange=function(x){e.props.onOpenChange(x)},e.onPopupVisibleChange=function(x){e.triggerOpenChange(x,x?"mouseenter":"mouseleave")},e.onMouseEnter=function(x){var P=e.props,F=P.eventKey,ve=P.onMouseEnter,pe=P.store;mn(pe,e.props.eventKey,!1),ve({key:F,domEvent:x})},e.onMouseLeave=function(x){var P=e.props,F=P.parentMenu,ve=P.eventKey,pe=P.onMouseLeave;F.subMenuInstance=Object(v.a)(e),pe({key:ve,domEvent:x})},e.onTitleMouseEnter=function(x){var P=e.props,F=P.eventKey,ve=P.onItemHover,pe=P.onTitleMouseEnter;ve({key:F,hover:!0}),pe({key:F,domEvent:x})},e.onTitleMouseLeave=function(x){var P=e.props,F=P.parentMenu,ve=P.eventKey,pe=P.onItemHover,we=P.onTitleMouseLeave;F.subMenuInstance=Object(v.a)(e),pe({key:ve,hover:!1}),we({key:ve,domEvent:x})},e.onTitleClick=function(x){var P=Object(v.a)(e),F=P.props;if(F.onTitleClick({key:F.eventKey,domEvent:x}),F.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(F.store,e.props.eventKey,!1)},e.onSubMenuClick=function(x){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(x))},e.onSelect=function(x){e.props.onSelect(x)},e.onDeselect=function(x){e.props.onDeselect(x)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(x){e.menuInstance=x},e.addKeyPath=function(x){return Object(z.a)(Object(z.a)({},x),{},{keyPath:(x.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(x,P){var F=e.props.eventKey,ve=function(){e.onOpenChange({key:F,item:Object(v.a)(e),trigger:P,open:x})};P==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){ve()},0):ve()},e.isChildrenSelected=function(){var x={find:!1};return me(e.props.children,e.props.selectedKeys,x),x.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var x=Ke.findDOMNode(e.menuInstance);if(x.offsetWidth>=e.subMenuTitle.offsetWidth)return;x.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(x){e.subMenuTitle=x},e.getBaseProps=function(){var x=Object(v.a)(e),P=x.props,F=e.getMode();return{mode:F==="horizontal"?"vertical":F,visible:e.getVisible(),level:P.level+1,inlineIndent:P.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:P.selectedKeys,eventKey:"".concat(P.eventKey,"-menu-"),openKeys:P.openKeys,motion:P.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:P.subMenuOpenDelay,parentMenu:Object(v.a)(e),subMenuCloseDelay:P.subMenuCloseDelay,forceSubMenuRender:P.forceSubMenuRender,triggerSubMenuAction:P.triggerSubMenuAction,builtinPlacements:P.builtinPlacements,defaultActiveFirst:P.store.getState().defaultActiveFirst[re(P.eventKey)],multiple:P.multiple,prefixCls:P.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:P.itemIcon,expandIcon:P.expandIcon,direction:P.direction}},e.getMotion=function(x,P){var F=Object(v.a)(e),ve=F.haveRendered,pe=e.props,we=pe.motion,Ve=pe.rootPrefixCls,nt=Object(z.a)(Object(z.a)({},we),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:ve||!P||x!=="inline"});return nt};var r=f.store,t=f.eventKey,d=r.getState(),m=d.defaultActiveFirst;e.isRootMenu=!1;var S=!1;return m&&(S=m[t]),mn(r,t,S),e.state={mode:f.mode,isOpen:f.isOpen},e}return Object(H.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,r=this.props,t=r.mode,d=r.parentMenu,m=r.manualRef,S=r.isOpen,x=function(){e.setState({mode:t,isOpen:S})},P=S!==this.state.isOpen,F=t!==this.state.mode;if((F||P)&&(et.a.cancel(this.updateStateRaf),F?this.updateStateRaf=Object(et.a)(x):x()),m&&m(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!S)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,r=e.onDestroy,t=e.eventKey;r&&r(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),et.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,r){var t=this.getBaseProps();return i.createElement(ea,Object(s.a)({},t,{id:this.internalMenuId,className:e,style:r}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,r=this.getBaseProps(),t=r.mode,d=r.visible,m=r.forceSubMenuRender,S=r.direction,x=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var P=se()("".concat(r.prefixCls,"-sub"),Object(k.a)({},"".concat(r.prefixCls,"-rtl"),S==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},x),function(F){var ve=F.className,pe=F.style,we=se()(P,ve);return e.renderPopupMenu(we,pe)}):this.renderPopupMenu(P)}},{key:"render",value:function(){var e,r,t,d=Object(z.a)({},this.props),m=this.getVisible(),S=this.getPrefixCls(),x=this.isInlineMode(),P=this.getMode(),F=se()(S,"".concat(S,"-").concat(P),(e={},Object(k.a)(e,d.className,!!d.className),Object(k.a)(e,this.getOpenClassName(),m),Object(k.a)(e,this.getActiveClassName(),d.active||m&&!x),Object(k.a)(e,this.getDisabledClassName(),d.disabled),Object(k.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var ve={},pe={},we={};d.disabled||(ve={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},pe={onClick:this.onTitleClick},we={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},nt=d.direction,Ye=nt==="rtl";x&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var ot={};this.getVisible()&&(ot={"aria-owns":this.internalMenuId});var at=null;P!=="horizontal"&&(at=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(at=i.createElement(this.props.expandIcon,Object(z.a)({},this.props))));var Ze=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(S,"-title"),role:"button"},we,pe,{"aria-expanded":m},ot,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,at||i.createElement("i",{className:"".concat(S,"-arrow")})),qe=this.renderChildren(),pt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(Pt){return Pt.parentNode},rt=pn[P],kt=d.popupOffset?{offset:d.popupOffset}:{},yt=se()((t={},Object(k.a)(t,d.popupClassName,d.popupClassName&&!x),Object(k.a)(t,"".concat(S,"-rtl"),Ye),t)),Be=d.disabled,We=d.triggerSubMenuAction,st=d.subMenuOpenDelay,ct=d.forceSubMenuRender,Ie=d.subMenuCloseDelay,mt=d.builtinPlacements;_e.forEach(function(Pt){return delete d[Pt]}),delete d.onClick;var St=Ye?Object(z.a)(Object(z.a)({},wa),mt):Object(z.a)(Object(z.a)({},ia),mt);delete d.direction;var ht=this.getBaseProps(),Ct=x?null:this.getMotion(ht.mode,ht.visible);return i.createElement("li",Object(s.a)({},d,ve,{className:F,role:"menuitem"}),i.createElement(Ja,{prefixCls:S,popupClassName:se()("".concat(S,"-popup"),yt),getPopupContainer:pt,builtinPlacements:St,popupPlacement:rt,popupVisible:x?!1:m,popupAlign:kt,popup:x?null:qe,action:Be||x?[]:[We],mouseEnterDelay:st,mouseLeaveDelay:Ie,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ct,popupMotion:Ct},Ze),x?qe:null)}}]),T}(i.Component);la.defaultProps={onMouseEnter:D,onMouseLeave:D,onTitleMouseEnter:D,onTitleMouseLeave:D,onTitleClick:D,manualRef:D,mode:"vertical",title:""};var In=Object(B.b)(function(u,C){var T=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=C.eventKey,t=C.subMenuKey;return{isOpen:T.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,Pa="menuitem-overflowed",Qa=.5,Da=function(u){Object(j.a)(T,u);var C=Object(h.a)(T);function T(){var f;return Object(I.a)(this,T),f=C.apply(this,arguments),f.resizeObserver=null,f.mutationObserver=null,f.originalTotalWidth=0,f.overflowedItems=[],f.menuItemSizes=[],f.cancelFrameId=null,f.state={lastVisibleIndex:void 0},f.childRef=i.createRef(),f.getMenuItemNodes=function(){var e=f.props.prefixCls,r=f.childRef.current;return r?[].slice.call(r.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},f.getOverflowedSubMenuItem=function(e,r,t){var d=f.props,m=d.overflowedIndicator,S=d.level,x=d.mode,P=d.prefixCls,F=d.theme;if(S!==1||x!=="horizontal")return null;var ve=f.props.children[0],pe=ve.props,we=pe.children,Ve=pe.title,nt=pe.style,Ye=Object(Pe.a)(pe,["children","title","style"]),ot=Object(z.a)({},nt),at="".concat(e,"-overflowed-indicator"),Ze="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?ot=Object(z.a)(Object(z.a)({},ot),{},{display:"none"}):t&&(ot=Object(z.a)(Object(z.a)({},ot),{},{visibility:"hidden",position:"absolute"}),at="".concat(at,"-placeholder"),Ze="".concat(Ze,"-placeholder"));var qe=F?"".concat(P,"-").concat(F):"",pt={};return _e.forEach(function(rt){Ye[rt]!==void 0&&(pt[rt]=Ye[rt])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(P,"-overflowed-submenu"),popupClassName:qe},pt,{key:at,eventKey:Ze,disabled:!1,style:ot}),r)},f.setChildrenWidthAndResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=e.children;if(!r||r.length===0)return;var t=e.children[r.length-1];ge(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(S){return S.className.split(" ").indexOf(Pa)>=0});m.forEach(function(S){ge(S,"display","inline-block")}),f.menuItemSizes=d.map(function(S){return Me(S,!0)}),m.forEach(function(S){ge(S,"display","none")}),f.overflowedIndicatorWidth=Me(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(S,x){return S+x},0),f.handleResize(),ge(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=Me(e);f.overflowedItems=[];var t=0,d;f.originalTotalWidth>r+Qa&&(d=-1,f.menuItemSizes.forEach(function(m){t+=m,t+f.overflowedIndicatorWidth<=r&&(d+=1)})),f.setState({lastVisibleIndex:d})},f}return Object(H.a)(T,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var r=this.childRef.current;if(!r)return;this.resizeObserver=new He.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(r,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var r=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,m,S){var x=m;if(r.props.mode==="horizontal"){var P=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(S>t&&(x=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(Pa)})),S===t+1&&(r.overflowedItems=e.slice(t+1).map(function(ve){return i.cloneElement(ve,{key:ve.props.eventKey,mode:"vertical-left"})}),P=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var F=[].concat(Object(X.a)(d),[P,x]);return S===e.length-1&&F.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),F}return[].concat(Object(X.a)(d),[x])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,S=e.level,x=e.tag,P=e.children,F=e.theme,ve=Object(Pe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),pe=x;return i.createElement(pe,Object(s.a)({ref:this.childRef},ve),this.renderChildren(P))}}]),T}(i.Component);Da.defaultProps={tag:"div",className:""};var ua=Da;function Zn(u){return u.length?u.every(function(C){return!!C.props.disabled}):!0}function Tn(u,C,T){var f=u.getState();u.setState({activeKey:Object(z.a)(Object(z.a)({},f.activeKey),{},Object(k.a)({},C,T))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,C){var T=C,f=u.children,e=u.eventKey;if(T){var r;if(Te(f,function(t,d){t&&t.props&&!t.props.disabled&&T===Z(t,e,d)&&(r=!0)}),r)return T}return T=null,u.defaultActiveFirst&&Te(f,function(t,d){!T&&t&&!t.props.disabled&&(T=Z(t,e,d))}),T}function Na(u){if(!u)return;var C=this.instanceArray.indexOf(u);C!==-1?this.instanceArray[C]=u:this.instanceArray.push(u)}var La=function(u){Object(j.a)(T,u);var C=Object(h.a)(T);function T(f){var e;return Object(I.a)(this,T),e=C.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(x){x&&x.props.active&&x.onKeyDown&&(m=x.onKeyDown(r))}),m)return 1;var S=null;return(d===w.a.UP||d===w.a.DOWN)&&(S=e.step(d===w.a.UP?-1:1)),S?(r.preventDefault(),Tn(e.props.store,En(e.props),S.props.eventKey),typeof t=="function"&&t(S),1):void 0},e.onItemHover=function(r){var t=r.key,d=r.hover;Tn(e.props.store,En(e.props),d?t:null)},e.onDeselect=function(r){e.props.onDeselect(r)},e.onSelect=function(r){e.props.onSelect(r)},e.onClick=function(r){e.props.onClick(r)},e.onOpenChange=function(r){e.props.onOpenChange(r)},e.onDestroy=function(r){e.props.onDestroy(r)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(r){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[En(e.props)],m=t.length;if(!m)return null;r<0&&(t=t.concat().reverse());var S=-1;if(t.every(function(ve,pe){return ve&&ve.props.eventKey===d?(S=pe,!1):!0}),!e.props.defaultActiveFirst&&S!==-1&&Zn(t.slice(S,m-1)))return;var x=(S+1)%m,P=x;do{var F=t[P];if(!F||F.props.disabled)P=(P+1)%m;else return F}while(P!==x);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),S=Object(v.a)(e),x=S.props,P=Z(r,x.eventKey,t),F=r.props;if(!F||typeof r.type=="string")return r;var ve=P===m.activeKey,pe=Object(z.a)(Object(z.a)({mode:F.mode||x.mode,level:x.level,inlineIndent:x.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:x.prefixCls,index:t,parentMenu:x.parentMenu,manualRef:F.disabled?void 0:Object(q.a)(r.ref,Na.bind(Object(v.a)(e))),eventKey:P,active:!F.disabled&&ve,multiple:x.multiple,onClick:function(Ve){(F.onClick||D)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:x.motion,subMenuOpenDelay:x.subMenuOpenDelay,subMenuCloseDelay:x.subMenuCloseDelay,forceSubMenuRender:x.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:x.builtinPlacements,itemIcon:F.itemIcon||e.props.itemIcon,expandIcon:F.expandIcon||e.props.expandIcon},d),{},{direction:x.direction});return(x.mode==="inline"||Oe())&&(pe.triggerSubMenuAction="click"),i.cloneElement(r,Object(z.a)(Object(z.a)({},pe),{},{key:P||t}))},e.renderMenuItem=function(r,t,d){if(!r)return null;var m=e.props.store.getState(),S={openKeys:m.openKeys,selectedKeys:m.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(r,t,S)},f.store.setState({activeKey:Object(z.a)(Object(z.a)({},f.store.getState().activeKey),{},Object(k.a)({},f.eventKey,qn(f,f.activeKey)))}),e.instanceArray=[],e}return Object(H.a)(T,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!oe()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var r=this.props,t="activeKey"in r?r.activeKey:r.store.getState().activeKey[En(r)],d=qn(r,t);if(d!==t)Tn(r.store,En(r),d);else if("activeKey"in e){var m=qn(e,e.activeKey);d!==m&&Tn(r.store,En(r),d)}}},{key:"render",value:function(){var e=this,r=Object(s.a)({},this.props);this.instanceArray=[];var t=se()(r.prefixCls,r.className,"".concat(r.prefixCls,"-").concat(r.mode)),d={className:t,role:r.role||"menu"};r.id&&(d.id=r.id),r.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var m=r.prefixCls,S=r.eventKey,x=r.visible,P=r.level,F=r.mode,ve=r.overflowedIndicator,pe=r.theme;return _e.forEach(function(we){return delete r[we]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:F,tag:"ul",level:P,theme:pe,visible:x,overflowedIndicator:ve},d),Object(be.a)(r.children).map(function(we,Ve){return e.renderMenuItem(we,Ve,S||"0-menu-")}))}}]),T}(i.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:D};var ka=Object(B.b)()(La),ea=ka,Sn=a("Kwbf");function ca(u,C,T){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,S=C.switchingModeFromInline;if(e)return e;if(Object(L.a)(d)==="object"&&d)Object(Sn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(f,"-open-").concat(d)};if(m)return{motionName:m};var x=t[T];return x||(S?null:t.other)}var Ua=function(u){Object(j.a)(T,u);var C=Object(h.a)(T);function T(f){var e;Object(I.a)(this,T),e=C.call(this,f),e.onSelect=function(d){var m=Object(v.a)(e),S=m.props;if(S.selectable){var x=e.store.getState(),P=x.selectedKeys,F=d.key;S.multiple?P=P.concat([F]):P=[F],"selectedKeys"in S||e.store.setState({selectedKeys:P}),S.onSelect(Object(z.a)(Object(z.a)({},d),{},{selectedKeys:P}))}},e.onClick=function(d){var m=e.getRealMenuMode(),S=Object(v.a)(e),x=S.store,P=S.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(x.setState({openKeys:[]}),P([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(v.a)(e),S=m.props,x=e.store.getState().openKeys.concat(),P=!1,F=function(pe){var we=!1;if(pe.open)we=x.indexOf(pe.key)===-1,we&&x.push(pe.key);else{var Ve=x.indexOf(pe.key);we=Ve!==-1,we&&x.splice(Ve,1)}P=P||we};Array.isArray(d)?d.forEach(F):F(d),P&&("openKeys"in e.props||e.store.setState({openKeys:x}),S.onOpenChange(x))},e.onDeselect=function(d){var m=Object(v.a)(e),S=m.props;if(S.selectable){var x=e.store.getState().selectedKeys.concat(),P=d.key,F=x.indexOf(P);F!==-1&&x.splice(F,1),"selectedKeys"in S||e.store.setState({selectedKeys:x}),S.onDeselect(Object(z.a)(Object(z.a)({},d),{},{selectedKeys:x}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var m=e.props.onMouseEnter;m&&m(d)},e.onTransitionEnd=function(d){var m=d.propertyName==="width"&&d.target===d.currentTarget,S=d.target.className,x=Object.prototype.toString.call(S)==="[object SVGAnimatedString]"?S.animVal:S,P=d.propertyName==="font-size"&&x.indexOf("anticon")>=0;(m||P)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var r=f.defaultSelectedKeys,t=f.defaultOpenKeys;return"selectedKeys"in f&&(r=f.selectedKeys||[]),"openKeys"in f&&(t=f.openKeys||[]),e.store=Object(B.c)({selectedKeys:r,openKeys:t,activeKey:{"0-menu-":qn(f,f.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:f,inlineOpenKeys:[],store:e.store},e}return Object(H.a)(T,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var r=this.props,t=r.siderCollapsed,d=r.inlineCollapsed,m=r.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&m([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,r=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=r.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,r=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return r&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,r=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:r}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(z.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),r=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(z.a)(Object(z.a)({},e),{},{mode:r,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,r)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(B.a,{store:this.store},i.createElement(ea,Object(s.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var t=r.prevProps,d=r.store,m=d.getState(),S={},x={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(x.switchingModeFromInline=!0),"openKeys"in e?S.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(x.switchingModeFromInline=!0,x.inlineOpenKeys=m.openKeys,S.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(S.openKeys=r.inlineOpenKeys,x.inlineOpenKeys=[])),Object.keys(S).length&&d.setState(S),x}}]),T}(i.Component);Ua.defaultProps={selectable:!0,onClick:D,onSelect:D,onOpenChange:D,onDeselect:D,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Ia=Ua,Rn=function(u){Object(j.a)(T,u);var C=Object(h.a)(T);function T(){var f;return Object(I.a)(this,T),f=C.apply(this,arguments),f.onKeyDown=function(e){var r=e.keyCode;return r===w.a.ENTER?(f.onClick(e),!0):void 0},f.onMouseLeave=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseLeave;d({key:t,hover:!1}),m({key:t,domEvent:e})},f.onMouseEnter=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseEnter;d({key:t,hover:!0}),m({key:t,domEvent:e})},f.onClick=function(e){var r=f.props,t=r.eventKey,d=r.multiple,m=r.onClick,S=r.onSelect,x=r.onDeselect,P=r.isSelected,F={key:t,keyPath:[t],item:Object(v.a)(f),domEvent:e};m(F),d?P?x(F):S(F):P||S(F)},f.saveNode=function(e){f.node=e},f}return Object(H.a)(T,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,r=Object(z.a)({},this.props),t=se()(this.getPrefixCls(),r.className,(e={},Object(k.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(k.a)(e,this.getSelectedClassName(),r.isSelected),Object(k.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(z.a)(Object(z.a)({},r.attribute),{},{title:typeof r.title=="string"?r.title:void 0,className:t,role:r.role||"menuitem","aria-disabled":r.disabled});r.role==="option"?d=Object(z.a)(Object(z.a)({},d),{},{role:"option","aria-selected":r.isSelected}):(r.role===null||r.role==="none")&&(d.role="none");var m={onClick:r.disabled?null:this.onClick,onMouseLeave:r.disabled?null:this.onMouseLeave,onMouseEnter:r.disabled?null:this.onMouseEnter},S=Object(z.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?S.paddingRight=r.inlineIndent*r.level:S.paddingLeft=r.inlineIndent*r.level),_e.forEach(function(P){return delete r[P]}),delete r.direction;var x=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(x=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object(V.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:S,ref:this.saveNode}),r.children,x)}}]),T}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:D,onMouseEnter:D,onMouseLeave:D,manualRef:D};var da=Object(B.b)(function(u,C){var T=u.activeKey,f=u.selectedKeys,e=C.eventKey,r=C.subMenuKey;return{active:T[r]===e,isSelected:Array.isArray(f)?f.indexOf(e)!==-1:f===e}})(Rn),fa=da,pa=function(u){Object(j.a)(T,u);var C=Object(h.a)(T);function T(){var f;return Object(I.a)(this,T),f=C.apply(this,arguments),f.renderInnerMenuItem=function(e){var r=f.props,t=r.renderMenuItem,d=r.index;return t(e,d,f.props.subMenuKey)},f}return Object(H.a)(T,[{key:"render",value:function(){var e=Object(s.a)({},this.props),r=e.className,t=r===void 0?"":r,d=e.rootPrefixCls,m="".concat(d,"-item-group-title"),S="".concat(d,"-item-group-list"),x=e.title,P=e.children;return _e.forEach(function(F){return delete e[F]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(ve){return ve.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof x=="string"?x:void 0},x),i.createElement("ul",{className:S},i.Children.map(P,this.renderInnerMenuItem)))}}]),T}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(C){var T=C.className,f=C.rootPrefixCls,e=C.style;return i.createElement("li",{className:"".concat(T," ").concat(f,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=Ia,ha=a("eDIo");function eo(u,C){var T=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:C,type:"button",className:"".concat(T,"-nav-add"),style:r,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){f.onEdit("add",{event:d})}},f.addIcon||"+")}var ta=i.forwardRef(eo);function to(u,C){var T=u.prefixCls,f=u.id,e=u.tabs,r=u.locale,t=u.mobile,d=u.moreIcon,m=d===void 0?"More":d,S=u.moreTransitionName,x=u.style,P=u.className,F=u.editable,ve=u.tabBarGutter,pe=u.rtl,we=u.onTabClick,Ve=Object(i.useState)(!1),nt=Object(R.a)(Ve,2),Ye=nt[0],ot=nt[1],at=Object(i.useState)(null),Ze=Object(R.a)(at,2),qe=Ze[0],pt=Ze[1],rt="".concat(f,"-more-popup"),kt="".concat(T,"-dropdown"),yt=qe!==null?"".concat(rt,"-").concat(qe):null,Be=r==null?void 0:r.dropdownAriaLabel,We=i.createElement(Ka,{onClick:function(Ct){var Pt=Ct.key,Xt=Ct.domEvent;we(Pt,Xt),ot(!1)},id:rt,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[qe],"aria-label":Be!==void 0?Be:"expanded dropdown"},e.map(function(ht){return i.createElement(fa,{key:ht.key,id:"".concat(rt,"-").concat(ht.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(ht.key),disabled:ht.disabled},ht.tab)}));function st(ht){for(var Ct=e.filter(function(on){return!on.disabled}),Pt=Ct.findIndex(function(on){return on.key===qe})||0,Xt=Ct.length,an=0;anmt?(ct=We,rt.current="x"):(ct=st,rt.current="y");var St=Date.now();St-qe.current>100&&(pt.current=!1),(C(-ct,-ct)||pt.current)&&(Be.preventDefault(),pt.current=!0),qe.current=St}var yt=Object(i.useRef)(null);yt.current={onTouchStart:ot,onTouchMove:at,onTouchEnd:Ze,onWheel:kt},i.useEffect(function(){function Be(Ie){yt.current.onTouchStart(Ie)}function We(Ie){yt.current.onTouchMove(Ie)}function st(Ie){yt.current.onTouchEnd(Ie)}function ct(Ie){yt.current.onWheel(Ie)}return document.addEventListener("touchmove",We,{passive:!1}),document.addEventListener("touchend",st,{passive:!1}),u.current.addEventListener("touchstart",Be,{passive:!1}),u.current.addEventListener("wheel",ct),function(){document.removeEventListener("touchmove",We),document.removeEventListener("touchend",st)}},[])}function ba(){var u=Object(i.useRef)(new Map);function C(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function T(f){u.current.delete(f)}return[C,T]}function Wa(u,C){var T=i.useRef(u),f=i.useState({}),e=Object(R.a)(f,2),r=e[1];function t(d){var m=typeof d=="function"?d(T.current):d;m!==T.current&&C(m,T.current),T.current=m,r({})}return[T.current,t]}var Ba=function(C){var T=C.position,f=C.prefixCls,e=C.extra;if(!e)return null;var r,t=e;return T==="right"&&(r=t.right||!t.left&&t||null),T==="left"&&(r=t.left||null),r?i.createElement("div",{className:"".concat(f,"-extra-content")},r):null};function Wo(u,C){var T,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,S=u.animated,x=u.activeKey,P=u.rtl,F=u.extra,ve=u.editable,pe=u.locale,we=u.tabPosition,Ve=u.tabBarGutter,nt=u.children,Ye=u.onTabClick,ot=u.onTabScroll,at=Object(i.useRef)(),Ze=Object(i.useRef)(),qe=Object(i.useRef)(),pt=Object(i.useRef)(),rt=ba(),kt=Object(R.a)(rt,2),yt=kt[0],Be=kt[1],We=we==="top"||we==="bottom",st=Wa(0,function(Et,lt){We&&ot&&ot({direction:Et>lt?"left":"right"})}),ct=Object(R.a)(st,2),Ie=ct[0],mt=ct[1],St=Wa(0,function(Et,lt){!We&&ot&&ot({direction:Et>lt?"top":"bottom"})}),ht=Object(R.a)(St,2),Ct=ht[0],Pt=ht[1],Xt=Object(i.useState)(0),an=Object(R.a)(Xt,2),It=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],Kt=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Bt=Gt[0],An=Gt[1],wn=Object(i.useState)(0),Wn=Object(R.a)(wn,2),jt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),gt=Rt[0],Yt=Rt[1],$o=Object(i.useState)(null),bo=Object(R.a)($o,2),na=bo[0],Xo=bo[1],Go=Object(i.useState)(0),go=Object(R.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(i.useState)(0),yo=Object(R.a)(Qo,2),Zo=yo[0],qo=yo[1],er=K(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,It),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;We?P?(ga=0,ya=Math.max(0,It-gt)):(ga=Math.min(0,gt-It),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(Et){return Etya?[ya,!1]:[Et,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),_o=Object(R.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}za(at,function(Et,lt){var Ft=!1;function cn(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(R.a)(xa,2),co=aa[0],fo=aa[1];return Ft=fo,co})}if(We){if(gt>=It)return Ft;cn(mt,Et)}else{if(na>=un)return Ft;cn(Pt,lt)}return io(),ro(),Ft}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x,lt=Fa.get(Et);if(!lt)return;if(We){var Ft=Ie;P?lt.rightIe+gt&&(Ft=lt.right+lt.width-gt):lt.left<-Ie?Ft=-lt.left:lt.left+lt.width>-Ie+gt&&(Ft=-(lt.left+lt.width-gt)),Pt(0),mt(ao(Ft)[0])}else{var cn=Ct;lt.top<-Ct?cn=-lt.top:lt.top+lt.height>-Ct+na&&(cn=-(lt.top+lt.height-na)),mt(0),Pt(ao(cn)[0])}}var or=g(Fa,{width:gt,height:na,left:Ie,top:Ct},{width:Bt,height:jt},{width:Yo,height:Zo},Object(z.a)(Object(z.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(Et){var lt=Et.key;return i.createElement(O,{id:m,prefixCls:e,key:lt,rtl:P,tab:Et,closable:Et.closable,editable:ve,active:lt===x,tabPosition:we,tabBarGutter:Ve,renderWrapper:nt,removeAriaLabel:pe==null?void 0:pe.removeAriaLabel,ref:yt(lt),onClick:function(cn){Ye(lt,cn)},onRemove:function(){Be(lt)},onFocus:function(){jo(lt),ro(),P||(at.current.scrollLeft=0),at.current.scrollTop=0}})}),so=fe(function(){var Et,lt,Ft,cn,Ca,Oa,_a,xa,aa,co=((Et=at.current)===null||Et===void 0?void 0:Et.offsetWidth)||0,fo=((lt=at.current)===null||lt===void 0?void 0:lt.offsetHeight)||0,No=((Ft=pt.current)===null||Ft===void 0?void 0:Ft.offsetWidth)||0,Lo=((cn=pt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=qe.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=qe.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),Xo(fo),Jo(No),qo(Lo);var ko=(((_a=Ze.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-No,Uo=(((xa=Ze.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;on(ko),Kt(Uo);var Io=(aa=qe.current)===null||aa===void 0?void 0:aa.className.includes(Co);An(ko-(Io?0:pr)),Cn(Uo-(Io?0:mr)),nr(function(){var Ko=new Map;return r.forEach(function(hr){var zo=hr.key,ja=yt(zo).current;ja&&Ko.set(zo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=r.slice(0,rr),ur=r.slice(ir+1),To=[].concat(Object(X.a)(lr),Object(X.a)(ur)),cr=Object(i.useState)(),So=Object(R.a)(cr,2),dr=So[0],fr=So[1],Pn=Fa.get(x),Ro=Object(i.useRef)();function Ao(){Se.a.cancel(Ro.current)}Object(i.useEffect)(function(){var Et={};return Pn&&(We?(P?Et.right=Pn.right:Et.left=Pn.left,Et.width=Pn.width):(Et.top=Pn.top,Et.height=Pn.height)),Ao(),Ro.current=Se()(function(){fr(Et)}),Ao},[Pn,We,P]),Object(i.useEffect)(function(){jo()},[x,Pn,Fa,We]),Object(i.useEffect)(function(){so()},[P,Ve,x,r.map(function(Et){return Et.key}).join("_")]);var wo=!!To.length,Ea="".concat(e,"-nav-wrap"),lo,uo,Po,Do;return We?P?(uo=Ie>0,lo=Ie+gt1)Object(X.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(X.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=l[0];if(p.isValidElement(n)&&Object(le.c)(n)){var g=n.ref;l[0]=p.cloneElement(n,{ref:Object(le.a)(g,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,I){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(je,"-").concat(I)})})}}]),G}(p.Component);fe.displayName="ResizeObserver",xe.a=fe},wCXF:function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return Fe});var k=a("rePB"),R=a("VTBJ"),Pe=a("KQm4"),z=a("U8pU"),i=a("ODXe"),p=a("q1tI"),se=a("TSYQ"),be=a.n(se),Y=a("Gytx"),X=a.n(Y),le=a("Kwbf"),Se=a("t23M"),je=a("qx4F"),fe=a("6eGT"),K=a("IBYe"),w=a("Ff2n"),G=a("c+Xe"),O=a("fyJ8"),E=a("biw7");function l(N,he,Ee,Ne,De){var Ce=Ee[N]||{},ae=Ee[he]||{},de,ye;Ce.fixed==="left"?de=Ne.left[N]:ae.fixed==="right"&&(ye=Ne.right[he]);var Ue=!1,Ae=!1,Le=!1,ze=!1,ke=Ee[he+1],Xe=Ee[N-1];if(De==="rtl"){if(de!==void 0){var it=Xe&&Xe.fixed==="left";ze=!it}else if(ye!==void 0){var Je=ke&&ke.fixed==="right";Le=!Je}}else if(de!==void 0){var ut=ke&&ke.fixed==="left";Ue=!ut}else if(ye!==void 0){var Qe=Xe&&Xe.fixed==="right";Ae=!Qe}return{fixLeft:de,fixRight:ye,lastFixLeft:Ue,firstFixRight:Ae,lastFixRight:Le,firstFixLeft:ze,isSticky:Ne.isSticky}}var n=a("sR1s");function g(N){var he=N.cells,Ee=N.stickyOffsets,Ne=N.flattenColumns,De=N.rowComponent,Ce=N.cellComponent,ae=N.onHeaderRow,de=N.index,ye=p.useContext(E.a),Ue=ye.prefixCls,Ae=ye.direction,Le;ae&&(Le=ae(he.map(function(ke){return ke.column}),de));var ze=Object(n.a)(he.map(function(ke){return ke.column}));return p.createElement(De,Object.assign({},Le),he.map(function(ke,Xe){var it=ke.column,Je=l(ke.colStart,ke.colEnd,Ne,Ee,Ae),ut;return it&&it.onHeaderCell&&(ut=ke.column.onHeaderCell(it)),p.createElement(O.a,Object.assign({},ke,{ellipsis:it.ellipsis,align:it.align,component:Ce,prefixCls:Ue,key:ze[Xe]},Je,{additionalProps:ut,rowType:"header"}))}))}g.displayName="HeaderRow";var s=g;function I(N){var he=[];function Ee(ae,de){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[ye]=he[ye]||[];var Ue=de,Ae=ae.filter(Boolean).map(function(Le){var ze={key:Le.key,className:Le.className||"",children:Le.title,column:Le,colStart:Ue},ke=1,Xe=Le.children;return Xe&&Xe.length>0&&(ke=Ee(Xe,Ue,ye+1).reduce(function(it,Je){return it+Je},0),ze.hasSubColumns=!0),"colSpan"in Le&&(ke=Le.colSpan),"rowSpan"in Le&&(ze.rowSpan=Le.rowSpan),ze.colSpan=ke,ze.colEnd=ze.colStart+ke-1,he[ye].push(ze),Ue+=ke,ke});return Ae}Ee(N,0);for(var Ne=he.length,De=function(de){he[de].forEach(function(ye){!("rowSpan"in ye)&&!ye.hasSubColumns&&(ye.rowSpan=Ne-de)})},Ce=0;Ce=0;de-=1){var ye=he[de],Ue=Ee&&Ee[de],Ae=Ue&&Ue[j.a];(ye||Ae||ae)&&(De.unshift(p.createElement("col",Object.assign({key:de,style:{width:ye,minWidth:ye}},Ae))),ae=!0)}return p.createElement("colgroup",null,De)}var B=h;function V(N,he){return Object(p.useMemo)(function(){for(var Ee=[],Ne=0;Ne1?Jt-1:0),dn=1;dn=Le&&(Tt=Le-ze),ae({scrollLeft:Tt/Le*(Ae+2)}),Qe.current.x=tt.pageX},xt=function(){var tt=Object(_e.b)(Ce.current).top,wt=tt+Ce.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;wt-Object(je.a)()<=Vt||tt>=Vt-de?ut(function($t){return Object(R.a)(Object(R.a)({},$t),{},{isHiddenScrollBar:!0})}):ut(function($t){return Object(R.a)(Object(R.a)({},$t),{},{isHiddenScrollBar:!1})})},_t=function(tt){ut(function(wt){return Object(R.a)(Object(R.a)({},wt),{},{scrollLeft:tt/Ae*Le||0})})};return p.useImperativeHandle(Ee,function(){return{setScrollLeft:_t}}),p.useEffect(function(){var bt=Object(me.a)(document.body,"mouseup",zt,!1),tt=Object(me.a)(document.body,"mousemove",Ht,!1);return xt(),function(){bt.remove(),tt.remove()}},[ze,Ot]),p.useEffect(function(){var bt=Object(me.a)(window,"scroll",xt,!1),tt=Object(me.a)(window,"resize",xt,!1);return function(){bt.remove(),tt.remove()}},[]),p.useEffect(function(){Je.isHiddenScrollBar||ut(function(bt){var tt,wt;return Object(R.a)(Object(R.a)({},bt),{},{scrollLeft:Ce.current.scrollLeft/((tt=Ce.current)===null||tt===void 0?void 0:tt.scrollWidth)*((wt=Ce.current)===null||wt===void 0?void 0:wt.clientWidth)})})},[Je.isHiddenScrollBar]),Ae<=Le||!ze||Je.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(je.a)(),width:Le,bottom:de},className:"".concat(Ue,"-sticky-scroll")},p.createElement("div",{onMouseDown:vt,ref:ke,className:be()("".concat(Ue,"-sticky-scroll-bar"),Object(k.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(ze,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},ge=p.forwardRef(Me);function Oe(N,he){return p.useMemo(function(){var Ee=!!N;return{isSticky:Ee,stickyClassName:Ee?"".concat(he,"-sticky-header"):"",offsetHeader:Object(z.a)(N)==="object"&&N.offsetHeader||0,offsetScroll:Object(z.a)(N)==="object"&&N.offsetScroll||0}},[N,he])}var He=[],Ke={},Fe="rc-table-internal-hook",et=p.memo(function(N){var he=N.children;return he},function(N,he){return X()(N.props,he.props)?N.pingLeft!==he.pingLeft||N.pingRight!==he.pingRight:!1});function $e(N){var he,Ee=N.prefixCls,Ne=N.className,De=N.rowClassName,Ce=N.style,ae=N.data,de=N.rowKey,ye=N.scroll,Ue=N.tableLayout,Ae=N.direction,Le=N.title,ze=N.footer,ke=N.summary,Xe=N.id,it=N.showHeader,Je=N.components,ut=N.emptyText,Qe=N.onRow,Dt=N.onHeaderRow,At=N.internalHooks,Ot=N.transformColumns,Ut=N.internalRefs,zt=N.sticky,vt=ae||He,Ht=!!vt.length,xt=p.useState(0),_t=Object(i.a)(xt,2),bt=_t[0],tt=_t[1];p.useEffect(function(){tt(Object(je.a)())});var wt=p.useMemo(function(){return Object(n.c)(Je,{})},[Je]),Vt=p.useCallback(function(dt,ft){return Object(n.b)(wt,dt)||ft},[wt]),$t=p.useMemo(function(){return typeof de=="function"?de:function(dt){var ft=dt&&dt[de];return ft}},[de]),Tt=Object(j.c)(N),Dn=Tt.expandIcon,Nn=Tt.expandedRowKeys,Fn=Tt.defaultExpandedRowKeys,rn=Tt.defaultExpandAllRows,hn=Tt.expandedRowRender,On=Tt.onExpand,_n=Tt.onExpandedRowsChange,Hn=Tt.expandRowByClick,en=Tt.rowExpandable,Ln=Tt.expandIconColumnIndex,yn=Tt.expandedRowClassName,kn=Tt.childrenColumnName,xn=Tt.indentSize,vn=Dn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":N.expandable&&At===Fe&&N.expandable.__PARENT_RENDER_ICON__||vt.some(function(dt){return dt&&Object(z.a)(dt)==="object"&&dt[jn]})?"nest":!1},[!!hn,vt]),Mn=p.useState(function(){return Fn||(rn?Te(vt,$t,jn):[])}),Wt=Object(i.a)(Mn,2),Zt=Wt[0],sn=Wt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(dt){var ft=$t(dt,vt.indexOf(dt)),Lt,Qt=Jt.has(ft);Qt?(Jt.delete(ft),Lt=Object(Pe.a)(Jt)):Lt=[].concat(Object(Pe.a)(Jt),[ft]),sn(Lt),On&&On(!Qt,dt),_n&&_n(Lt)},[$t,Jt,vt,On,_n]),dn=p.useState(0),$n=Object(i.a)(dn,2),Un=$n[0],Xn=$n[1],Ma=Object(te.b)(Object(R.a)(Object(R.a)(Object(R.a)({},N),Tt),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:$t,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Ae}),At===Fe?Ot:null),Ta=Object(i.a)(Ma,2),Gn=Ta[0],Nt=Ta[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Nt}},[Gn,Nt]),Jn=p.useRef(),Sa=p.useRef(),fn=p.useRef(),Ha=p.useState(!1),Ra=Object(i.a)(Ha,2),oa=Ra[0],Va=Ra[1],$a=p.useState(!1),ra=Object(i.a)($a,2),Qn=ra[0],Xa=ra[1],Ga=$(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(n.a)(Nt),ia=bn.map(function(dt){return Ya.get(dt)}),wa=p.useMemo(function(){return ia},[ia.join("_")]),sa=b(wa,Nt.length,Ae),nn=ye&&Object(n.d)(ye.y),pn=ye&&Object(n.d)(ye.x),mn=pn&&Nt.some(function(dt){var ft=dt.fixed;return ft}),la=p.useRef(),In=Oe(zt,Ee),Kn=In.isSticky,Pa=In.offsetHeader,Qa=In.offsetScroll,Da=In.stickyClassName,ua,Zn,Tn;nn&&(Zn={overflowY:"scroll",maxHeight:ye.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Tn={width:ye.x===!0?"auto":ye.x,minWidth:"100%"});var En=p.useCallback(function(dt,ft){Ja(function(Lt){var Qt=new Map(Lt);return Qt.set(dt,ft),Qt})},[]),qn=ee(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(dt,ft){if(!ft)return;typeof ft=="function"?ft(dt):ft.scrollLeft!==dt&&(ft.scrollLeft=dt)}var Sn=function(ft){var Lt=ft.currentTarget,Qt=ft.scrollLeft,zn=typeof Qt=="number"?Qt:Lt.scrollLeft,za=Lt||Ke;if(!ka()||ka()===za){var ba;La(za),ea(zn,Sa.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Lt){var Wa=Lt.scrollWidth,Ba=Lt.clientWidth;Va(zn>0),Xa(zn0?[].concat(Object(R.a)(w),Object(R.a)(le(l).map(function(n){return Object(Pe.a)({fixed:E},n)}))):[].concat(Object(R.a)(w),[Object(Pe.a)(Object(Pe.a)({},G),{},{fixed:E})])},[])}function Se(K){for(var w=!0,G=0;G=0;l-=1){var n=K[l];if(E&&n.fixed!=="right")E=!1;else if(!E&&n.fixed==="right"){Object(se.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function je(K){return K.map(function(w){var G=w.fixed,O=Object(z.a)(w,["fixed"]),E=G;return G==="left"?E="right":G==="right"&&(E="left"),Object(Pe.a)({fixed:E},O)})}function fe(K,w){var G=K.prefixCls,O=K.columns,E=K.children,l=K.expandable,n=K.expandedKeys,g=K.getRowKey,s=K.onTriggerExpand,I=K.expandIcon,H=K.rowExpandable,v=K.expandIconColumnIndex,j=K.direction,h=K.expandRowByClick,B=i.useMemo(function(){return O||X(E)},[O,E]),V=i.useMemo(function(){if(l){var oe,L=v||0,W=B[L],_=(oe={},Object(k.a)(oe,Y.a,{className:"".concat(G,"-expand-icon-col")}),Object(k.a)(oe,"title",""),Object(k.a)(oe,"fixed",W?W.fixed:null),Object(k.a)(oe,"className","".concat(G,"-row-expand-icon-cell")),Object(k.a)(oe,"render",function(M,A,Q){var ie=g(A,Q),ue=n.has(ie),J=H?H(A):!0,te=I({prefixCls:G,expanded:ue,expandable:J,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},te):te}),oe),y=B.slice();return L>=0&&y.splice(L,0,_),y}return B},[l,B,g,n,I,j]),q=i.useMemo(function(){var oe=V;return w&&(oe=w(oe)),oe.length||(oe=[{render:function(){return null}}]),oe},[w,V,j]),Re=i.useMemo(function(){return j==="rtl"?je(le(q)):le(q)},[q,j]);return[q,Re]}xe.b=fe},"y0+3":function(Ge,xe,a){"use strict";a.d(xe,"a",function(){return le}),a.d(xe,"b",function(){return je});var k=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Pe={cssFloat:1,styleFloat:1,float:1};function z(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function i(fe,K,w){if(K=K.toLowerCase(),w==="auto"){if(K==="height")return fe.offsetHeight;if(K==="width")return fe.offsetWidth}return K in R||(R[K]=k.test(K)),R[K]?parseFloat(w)||0:w}function p(fe,K){var w=arguments.length,G=z(fe);return K=Pe[K]?"cssFloat"in fe.style?"cssFloat":"styleFloat":K,w===1?G:i(fe,K,G[K]||fe.style[K])}function se(fe,K,w){var G=arguments.length;if(K=Pe[K]?"cssFloat"in fe.style?"cssFloat":"styleFloat":K,G===3)return typeof w=="number"&&k.test(K)&&(w="".concat(w,"px")),fe.style[K]=w,w;for(var O in K)K.hasOwnProperty(O)&&se(fe,O,K[O]);return z(fe)}function be(fe){return fe===document.body?document.documentElement.clientWidth:fe.offsetWidth}function Y(fe){return fe===document.body?window.innerHeight||document.documentElement.clientHeight:fe.offsetHeight}function X(){var fe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),K=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:fe,height:K}}function le(){var fe=document.documentElement.clientWidth,K=window.innerHeight||document.documentElement.clientHeight;return{width:fe,height:K}}function Se(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function je(fe){var K=fe.getBoundingClientRect(),w=document.documentElement;return{left:K.left+(window.pageXOffset||w.scrollLeft)-(w.clientLeft||document.body.clientLeft||0),top:K.top+(window.pageYOffset||w.scrollTop)-(w.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Innovation__PublicMirror.71215435.async.js b/p__Innovation__PublicMirror.71215435.async.js index e0261259c8..19e5a16b82 100644 --- a/p__Innovation__PublicMirror.71215435.async.js +++ b/p__Innovation__PublicMirror.71215435.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[162,8,10],{"+QRC":function(et,ee,o){"use strict";var C=o("E9nw"),y={"text/plain":"Text","text/html":"Url",default:"Text"},ce="Copy to clipboard: #{key}, Enter";function j(h){var F=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return h.replace(/#{\s*key\s*}/g,F)}function r(h,F){var q,R,ge,Q,pe,oe,H=!1;F||(F={}),q=F.debug||!1;try{ge=C(),Q=document.createRange(),pe=document.getSelection(),oe=document.createElement("span"),oe.textContent=h,oe.style.all="unset",oe.style.position="fixed",oe.style.top=0,oe.style.clip="rect(0, 0, 0, 0)",oe.style.whiteSpace="pre",oe.style.webkitUserSelect="text",oe.style.MozUserSelect="text",oe.style.msUserSelect="text",oe.style.userSelect="text",oe.addEventListener("copy",function(g){if(g.stopPropagation(),F.format)if(g.preventDefault(),typeof g.clipboardData=="undefined"){q&&console.warn("unable to use e.clipboardData"),q&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var z=y[F.format]||y.default;window.clipboardData.setData(z,h)}else g.clipboardData.clearData(),g.clipboardData.setData(F.format,h);F.onCopy&&(g.preventDefault(),F.onCopy(g.clipboardData))}),document.body.appendChild(oe),Q.selectNodeContents(oe),pe.addRange(Q);var O=document.execCommand("copy");if(!O)throw new Error("copy command was unsuccessful");H=!0}catch(g){q&&console.error("unable to copy using execCommand: ",g),q&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(F.format||"text",h),F.onCopy&&F.onCopy(window.clipboardData),H=!0}catch(z){q&&console.error("unable to copy using clipboardData: ",z),q&&console.error("falling back to prompt"),R=j("message"in F?F.message:ce),window.prompt(R,h)}}finally{pe&&(typeof pe.removeRange=="function"?pe.removeRange(Q):pe.removeAllRanges()),oe&&document.body.removeChild(oe),ge()}return H}et.exports=r},"6+eU":function(et,ee,o){"use strict";o.d(ee,"a",function(){return S});var C=o("wx14"),y=o("rePB"),ce=o("VTBJ"),j=o("1OyB"),r=o("vuIU"),h=o("Ji7U"),F=o("LK+K"),q=o("q1tI"),R=o.n(q),ge=o("TSYQ"),Q=o.n(ge),pe=function(w){var p,v="".concat(w.rootPrefixCls,"-item"),u=Q()(v,"".concat(v,"-").concat(w.page),(p={},Object(y.a)(p,"".concat(v,"-active"),w.active),Object(y.a)(p,w.className,!!w.className),Object(y.a)(p,"".concat(v,"-disabled"),!w.page),p)),M=function(){w.onClick(w.page)},T=function(ie){w.onKeyPress(ie,w.onClick,w.page)};return R.a.createElement("li",{title:w.showTitle?w.page:null,className:u,onClick:M,onKeyPress:T,tabIndex:"0"},w.itemRender(w.page,"page",R.a.createElement("a",{rel:"nofollow"},w.page)))},oe=pe,H={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},O=function(P){Object(h.a)(p,P);var w=Object(F.a)(p);function p(){var v;Object(j.a)(this,p);for(var u=arguments.length,M=new Array(u),T=0;T=0||N.relatedTarget.className.indexOf("".concat(me,"-next"))>=0))return;v.setState({goInputText:""}),ne(v.getValidValue())},v.go=function(N){var ie=v.state.goInputText;if(ie==="")return;(N.keyCode===H.ENTER||N.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return Object(r.a)(p,[{key:"getValidValue",value:function(){var u=this.state,M=u.goInputText,T=u.current;return!M||isNaN(M)?T:Number(M)}},{key:"getPageSizeOptions",value:function(){var u=this.props,M=u.pageSize,T=u.pageSizeOptions;return T.some(function(N){return N.toString()===M.toString()})?T:T.concat([M.toString()]).sort(function(N,ie){var A=isNaN(Number(N))?0:Number(N),ne=isNaN(Number(ie))?0:Number(ie);return A-ne})}},{key:"render",value:function(){var u=this,M=this.props,T=M.pageSize,N=M.locale,ie=M.rootPrefixCls,A=M.changeSize,ne=M.quickGo,me=M.goButton,Te=M.selectComponentClass,Ye=M.buildOptionText,xe=M.selectPrefixCls,V=M.disabled,Me=this.state.goInputText,Re="".concat(ie,"-options"),Ne=Te,we=null,J=null,$=null;if(!A&&!ne)return null;var se=this.getPageSizeOptions();if(A&&Ne){var Z=se.map(function(_,K){return R.a.createElement(Ne.Option,{key:K,value:_.toString()},(Ye||u.buildOptionText)(_))});we=R.a.createElement(Ne,{disabled:V,prefixCls:xe,showSearch:!1,className:"".concat(Re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(K){return K.parentNode}},Z)}return ne&&(me&&($=typeof me=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat(Re,"-quick-jumper-button")},N.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},me)),J=R.a.createElement("div",{className:"".concat(Re,"-quick-jumper")},N.jump_to,R.a.createElement("input",{disabled:V,type:"text",value:Me,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,$)),R.a.createElement("li",{className:"".concat(Re)},we,J)}}]),p}(R.a.Component);O.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=O,z=o("N2Kk");function D(){}function k(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function W(P,w,p){return p}function I(P,w,p){var v=typeof P=="undefined"?w.pageSize:P;return Math.floor((p.total-1)/v)+1}var he=function(P){Object(h.a)(p,P);var w=Object(F.a)(p);function p(v){var u;Object(j.a)(this,p),u=w.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(I(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(A,ne){var me=u.props.prefixCls,Te=A||R.a.createElement("button",{type:"button","aria-label":ne,className:"".concat(me,"-item-link")});return typeof A=="function"&&(Te=R.a.createElement(A,Object(ce.a)({},u.props))),Te},u.savePaginationNode=function(A){u.paginationNode=A},u.isValid=function(A){return k(A)&&A!==u.state.current},u.shouldDisplayQuickJumper=function(){var A=u.props,ne=A.showQuickJumper,me=A.pageSize,Te=A.total;return Te<=me?!1:ne},u.handleKeyDown=function(A){(A.keyCode===H.ARROW_UP||A.keyCode===H.ARROW_DOWN)&&A.preventDefault()},u.handleKeyUp=function(A){var ne=u.getValidValue(A),me=u.state.currentInputValue;ne!==me&&u.setState({currentInputValue:ne}),A.keyCode===H.ENTER?u.handleChange(ne):A.keyCode===H.ARROW_UP?u.handleChange(ne-1):A.keyCode===H.ARROW_DOWN&&u.handleChange(ne+1)},u.changePageSize=function(A){var ne=u.state.current,me=I(A,u.state,u.props);ne=ne>me?me:ne,me===0&&(ne=u.state.current),typeof A=="number"&&("pageSize"in u.props||u.setState({pageSize:A}),"current"in u.props||u.setState({current:ne,currentInputValue:ne})),u.props.onShowSizeChange(ne,A),"onChange"in u.props&&u.props.onChange&&u.props.onChange(ne,A)},u.handleChange=function(A){var ne=u.props.disabled,me=A;if(u.isValid(me)&&!ne){var Te=I(void 0,u.state,u.props);me>Te?me=Te:me<1&&(me=1),"current"in u.props||u.setState({current:me,currentInputValue:me});var Ye=u.state.pageSize;return u.props.onChange(me,Ye),me}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?me-2:0),Ye=2;Ye=T?ie=T:ie=Number(M),ie}},{key:"getShowSizeChanger",value:function(){var u=this.props,M=u.showSizeChanger,T=u.total,N=u.totalBoundaryShowSizeChanger;return typeof M!="undefined"?M:T>N}},{key:"renderPrev",value:function(u){var M=this.props,T=M.prevIcon,N=M.itemRender,ie=N(u,"prev",this.getItemIcon(T,"prev page")),A=!this.hasPrev();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"renderNext",value:function(u){var M=this.props,T=M.nextIcon,N=M.itemRender,ie=N(u,"next",this.getItemIcon(T,"next page")),A=!this.hasNext();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"render",value:function(){var u=this,M=this.props,T=M.prefixCls,N=M.className,ie=M.style,A=M.disabled,ne=M.hideOnSinglePage,me=M.total,Te=M.locale,Ye=M.showQuickJumper,xe=M.showLessItems,V=M.showTitle,Me=M.showTotal,Re=M.simple,Ne=M.itemRender,we=M.showPrevNextJumpers,J=M.jumpPrevIcon,$=M.jumpNextIcon,se=M.selectComponentClass,Z=M.selectPrefixCls,_=M.pageSizeOptions,K=this.state,de=K.current,De=K.pageSize,He=K.currentInputValue;if(ne===!0&&me<=De)return null;var le=I(void 0,this.state,this.props),Pe=[],rt=null,$e=null,ht=null,xt=null,lt=null,_e=Ye&&Ye.goButton,Ke=xe?1:2,It=de-1>0?de-1:0,Lt=de+1=Ke*2&&de!==1+2&&(Pe[0]=Object(q.cloneElement)(Pe[0],{className:"".concat(T,"-item-after-jump-prev")}),Pe.unshift(rt)),le-de>=Ke*2&&de!==le-2&&(Pe[Pe.length-1]=Object(q.cloneElement)(Pe[Pe.length-1],{className:"".concat(T,"-item-before-jump-next")}),Pe.push($e)),X!==1&&Pe.unshift(ht),ue!==le&&Pe.push(xt)}var ae=null;Me&&(ae=R.a.createElement("li",{className:"".concat(T,"-total-text")},Me(me,[me===0?0:(de-1)*De+1,de*De>me?me:de*De])));var G=!this.hasPrev()||!le,te=!this.hasNext()||!le;return R.a.createElement("ul",Object(C.a)({className:Q()(T,N,Object(y.a)({},"".concat(T,"-disabled"),A)),style:ie,unselectable:"unselectable",ref:this.savePaginationNode},kt),ae,R.a.createElement("li",{title:V?Te.prev_page:null,onClick:this.prev,tabIndex:G?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(T,"-prev"),Object(y.a)({},"".concat(T,"-disabled"),G)),"aria-disabled":G},this.renderPrev(It)),Pe,R.a.createElement("li",{title:V?Te.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(T,"-next"),Object(y.a)({},"".concat(T,"-disabled"),te)),"aria-disabled":te},this.renderNext(Lt)),R.a.createElement(g,{disabled:A,locale:Te,rootPrefixCls:T,selectComponentClass:se,selectPrefixCls:Z,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:de,pageSize:De,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(u,M){var T={};if("current"in u&&(T.current=u.current,u.current!==M.current&&(T.currentInputValue=T.current)),"pageSize"in u&&u.pageSize!==M.pageSize){var N=M.current,ie=I(u.pageSize,M,u);N=N>ie?ie:N,"current"in u||(T.current=N,T.currentInputValue=N),T.pageSize=u.pageSize}return T}}]),p}(R.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:D,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:D,locale:z.a,style:{},itemRender:W,totalBoundaryShowSizeChanger:50};var S=he},"6RRn":function(et,ee,o){"use strict";var C=o("wCXF"),y=o("n6Qo");o.d(ee,"b",function(){return y.a});var ce=o("IBYe"),j=o("6eGT"),r=o("hW8S");o.d(ee,"a",function(){return r.a}),ee.c=C.b},"6eGT":function(et,ee,o){"use strict";function C(y){return null}ee.a=C},"815F":function(et,ee,o){"use strict";o.d(ee,"e",function(){return F}),o.d(ee,"c",function(){return R}),o.d(ee,"d",function(){return ge}),o.d(ee,"a",function(){return pe}),o.d(ee,"f",function(){return oe}),o.d(ee,"b",function(){return H});var C=o("KQm4"),y=o("VTBJ"),ce=o("Ff2n"),j=o("Zm9Q"),r=o("Kwbf"),h=o("OZM5");function F(O,g){return O!=null?O:g}function q(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function z(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(D||[]).forEach(function(W){var I=W.key,he=W.children;Object(r.a)(I!=null,"Tree node must have a certain key: [".concat(k).concat(I,"]"));var S=String(I);Object(r.a)(!g.has(S)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(S)),g.set(S,!0),z(he,"".concat(k).concat(S," > "))})}z(O)}function R(O){function g(z){var D=Object(j.a)(z);return D.map(function(k){if(!Object(h.i)(k))return Object(r.a)(!k,"Tree/TreeNode can only accept TreeNode as children."),null;var W=k.key,I=k.props,he=I.children,S=Object(ce.a)(I,["children"]),P=Object(y.a)({key:W},S),w=g(he);return w.length&&(P.children=w),P}).filter(function(k){return k})}return g(O)}function ge(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(g===!0?[]:g),D=[];function k(W){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return W.map(function(he,S){var P=Object(h.h)(I?I.pos:"0",S),w=F(he.key,P),p=Object(y.a)(Object(y.a)({},he),{},{parent:I,pos:P,children:null,data:he,isStart:[].concat(Object(C.a)(I?I.isStart:[]),[S===0]),isEnd:[].concat(Object(C.a)(I?I.isEnd:[]),[S===W.length-1])});return D.push(p),g===!0||z.has(w)?p.children=k(he.children||[],p):p.children=[],p})}return k(O),D}function Q(O,g,z){var D;z?typeof z=="string"?D=function(I){return I[z]}:typeof z=="function"&&(D=function(I){return z(I)}):D=function(I,he){return F(I.key,he)};function k(W,I,he){var S=W?W.children:O,P=W?Object(h.h)(he.pos,I):"0";if(W){var w=D(W,P),p={node:W,index:I,pos:P,key:w,parentPos:he.node?he.pos:null,level:he.level+1};g(p)}S&&S.forEach(function(v,u){k(v,u,{node:W,pos:P,level:he?he.level+1:-1})})}k(null)}function pe(O){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=g.initWrapper,D=g.processEntity,k=g.onProcessFinished,W=arguments.length>2?arguments[2]:void 0,I={},he={},S={posEntities:I,keyEntities:he};return z&&(S=z(S)||S),Q(O,function(P){var w=P.node,p=P.index,v=P.pos,u=P.key,M=P.parentPos,T=P.level,N={node:w,index:p,key:u,pos:v,level:T},ie=F(u,v);I[v]=N,he[ie]=N,N.parent=I[M],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),D&&D(N,S)},W),k&&k(S),S}function oe(O,g){var z=g.expandedKeys,D=g.selectedKeys,k=g.loadedKeys,W=g.loadingKeys,I=g.checkedKeys,he=g.halfCheckedKeys,S=g.dragOverNodeKey,P=g.dropPosition,w=g.keyEntities,p=w[O],v={eventKey:O,expanded:z.indexOf(O)!==-1,selected:D.indexOf(O)!==-1,loaded:k.indexOf(O)!==-1,loading:W.indexOf(O)!==-1,checked:I.indexOf(O)!==-1,halfChecked:he.indexOf(O)!==-1,pos:String(p?p.pos:""),dragOver:S===O&&P===0,dragOverGapTop:S===O&&P===-1,dragOverGapBottom:S===O&&P===1};return v}function H(O){var g=O.data,z=O.expanded,D=O.selected,k=O.checked,W=O.loaded,I=O.loading,he=O.halfChecked,S=O.dragOver,P=O.dragOverGapTop,w=O.dragOverGapBottom,p=O.pos,v=O.active,u=Object(y.a)(Object(y.a)({},g),{},{expanded:z,selected:D,checked:k,loaded:W,loading:I,halfChecked:he,dragOver:S,dragOverGapTop:P,dragOverGapBottom:w,pos:p,active:v});return"props"in u||Object.defineProperty(u,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),O}}),u}},E9nw:function(et,ee){et.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var C=document.activeElement,y=[],ce=0;ce1&&arguments[1]!==void 0?arguments[1]:1,te=Ke.length,ye=0;ye1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(xe).map(function(Me,Re){if(!r.isValidElement(Me)||!Me.type)return null;var Ne=Me.type.isSelectOptGroup,we=Me.key,J=Me.props,$=J.children,se=Object(F.a)(J,["children"]);return V||!Ne?w(Me):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(we===null?Re:we,"__"),label:we},se),{},{options:p($)})}).filter(function(Me){return Me})}var v=o("2Qr1"),u=o("qNPg"),M=o("U8pU"),T=o("Kwbf"),N=o("WKfj");function ie(xe){var V=xe.mode,Me=xe.options,Re=xe.children,Ne=xe.backfill,we=xe.allowClear,J=xe.placeholder,$=xe.getInputElement,se=xe.showSearch,Z=xe.onSearch,_=xe.defaultOpen,K=xe.autoFocus,de=xe.labelInValue,De=xe.value,He=xe.inputValue,le=xe.optionLabelProp,Pe=V==="multiple"||V==="tags",rt=se!==void 0?se:Pe||V==="combobox",$e=Me||p(Re);if(Object(T.a)(V!=="tags"||$e.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var ht=$e.some(function(_e){return _e.options?_e.options.some(function(Ke){return typeof("value"in Ke?Ke.value:Ke.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(T.a)(!ht,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(V!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(V==="combobox"||!Ne,"`backfill` only works with `combobox` mode."),Object(T.a)(V==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(T.b)(V!=="combobox"||!$||!we||!J,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Z&&!rt&&V!=="combobox"&&V!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!_||K,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var xt=Object(N.d)(De);Object(T.a)(!de||xt.every(function(_e){return Object(M.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!Pe||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var lt=null;Object(P.a)(Re).some(function(_e){if(!r.isValidElement(_e)||!_e.type)return!1;var Ke=_e.type;if(Ke.isSelectOption)return!1;if(Ke.isSelectOptGroup){var It=Object(P.a)(_e.props.children).every(function(Lt){return!r.isValidElement(Lt)||!_e.type||Lt.type.isSelectOption?!0:(lt=Lt.type,!1)});return!It}return lt=Ke,!0}),lt&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(lt.displayName||lt.name||lt,"`.")),Object(T.a)(He===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var A=ie,ne=Object(u.a)({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:p,flattenOptions:v.d,getLabeledValue:v.e,filterOptions:v.b,isValueDisabled:v.g,findValueOption:v.c,warningProps:A,fillOptionsWithMissingValue:v.a}),me=function(xe){Object(ce.a)(Me,xe);var V=Object(j.a)(Me);function Me(){var Re;return Object(C.a)(this,Me),Re=V.apply(this,arguments),Re.selectRef=r.createRef(),Re.focus=function(){Re.selectRef.current.focus()},Re.blur=function(){Re.selectRef.current.blur()},Re}return Object(y.a)(Me,[{key:"render",value:function(){return r.createElement(ne,Object.assign({ref:this.selectRef},this.props))}}]),Me}(r.Component);me.Option=W,me.OptGroup=he;var Te=me,Ye=ee.c=Te},NvD2:function(et,ee,o){"use strict";o.d(ee,"a",function(){return h});var C=o("Kwbf");function y(F,q){var R=new Set;return F.forEach(function(ge){q.has(ge)||R.add(ge)}),R}function ce(F){var q=F||{},R=q.disabled,ge=q.disableCheckbox,Q=q.checkable;return!!(R||ge)||Q===!1}function j(F,q,R,ge){for(var Q=new Set(F),pe=new Set,oe=0;oe<=R;oe+=1){var H=q.get(oe)||new Set;H.forEach(function(D){var k=D.key,W=D.node,I=D.children,he=I===void 0?[]:I;Q.has(k)&&!ge(W)&&he.filter(function(S){return!ge(S.node)}).forEach(function(S){Q.add(S.key)})})}for(var O=new Set,g=R;g>=0;g-=1){var z=q.get(g)||new Set;z.forEach(function(D){var k=D.parent,W=D.node;if(ge(W)||!D.parent||O.has(D.parent.key))return;if(ge(D.parent.node)){O.add(k.key);return}var I=!0,he=!1;(k.children||[]).filter(function(S){return!ge(S.node)}).forEach(function(S){var P=S.key,w=Q.has(P);I&&!w&&(I=!1),!he&&(w||pe.has(P))&&(he=!0)}),I&&Q.add(k.key),he&&pe.add(k.key),O.add(k.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(y(pe,Q))}}function r(F,q,R,ge,Q){for(var pe=new Set(F),oe=new Set(q),H=0;H<=ge;H+=1){var O=R.get(H)||new Set;O.forEach(function(k){var W=k.key,I=k.node,he=k.children,S=he===void 0?[]:he;!pe.has(W)&&!oe.has(W)&&!Q(I)&&S.filter(function(P){return!Q(P.node)}).forEach(function(P){pe.delete(P.key)})})}oe=new Set;for(var g=new Set,z=ge;z>=0;z-=1){var D=R.get(z)||new Set;D.forEach(function(k){var W=k.parent,I=k.node;if(Q(I)||!k.parent||g.has(k.parent.key))return;if(Q(k.parent.node)){g.add(W.key);return}var he=!0,S=!1;(W.children||[]).filter(function(P){return!Q(P.node)}).forEach(function(P){var w=P.key,p=pe.has(w);he&&!p&&(he=!1),!S&&(p||oe.has(w))&&(S=!0)}),he||pe.delete(W.key),S&&oe.add(W.key),g.add(W.key)})}return{checkedKeys:Array.from(pe),halfCheckedKeys:Array.from(y(oe,pe))}}function h(F,q,R,ge){var Q=[],pe;ge?pe=ge:pe=ce;var oe=new Set(F.filter(function(z){var D=!!R[z];return D||Q.push(z),D})),H=new Map,O=0;Object.keys(R).forEach(function(z){var D=R[z],k=D.level,W=H.get(k);W||(W=new Set,H.set(k,W)),W.add(D),O=Math.max(O,k)}),Object(C.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var g;return q===!0?g=j(oe,H,O,pe):g=r(oe,q.halfCheckedKeys,H,O,pe),g}},OZM5:function(et,ee,o){"use strict";o.d(ee,"b",function(){return ge}),o.d(ee,"a",function(){return Q}),o.d(ee,"k",function(){return pe}),o.d(ee,"h",function(){return oe}),o.d(ee,"i",function(){return H}),o.d(ee,"g",function(){return O}),o.d(ee,"c",function(){return g}),o.d(ee,"d",function(){return z}),o.d(ee,"j",function(){return W}),o.d(ee,"e",function(){return I}),o.d(ee,"f",function(){return he});var C=o("KQm4"),y=o("U8pU"),ce=o("Ff2n"),j=o("q1tI"),r=o.n(j),h=o("Kwbf"),F=o("WaYH"),q=.25,R=2;function ge(S,P){var w=S.slice(),p=w.indexOf(P);return p>=0&&w.splice(p,1),w}function Q(S,P){var w=S.slice();return w.indexOf(P)===-1&&w.push(P),w}function pe(S){return S.split("-")}function oe(S,P){return"".concat(S,"-").concat(P)}function H(S){return S&&S.type&&S.type.isTreeNode}function O(S,P){var w=[S],p=P[S];function v(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(M){var T=M.key,N=M.children;w.push(T),v(N)})}return v(p.children),w}function g(S,P){var w=S.clientY,p=P.selectHandle.getBoundingClientRect(),v=p.top,u=p.bottom,M=p.height,T=Math.max(M*q,R);return w<=v+T?-1:w>=u-T?1:0}function z(S,P){if(!S)return;var w=P.multiple;return w?S.slice():S.length?[S[0]]:S}var D=function(P){return P};function k(S,P){if(!S)return[];var w=P||{},p=w.processProps,v=p===void 0?D:p,u=Array.isArray(S)?S:[S];return u.map(function(M){var T=M.children,N=Object(ce.a)(M,["children"]),ie=k(T,P);return r.a.createElement(F.a,Object.assign({},v(N)),ie)})}function W(S){if(!S)return null;var P;if(Array.isArray(S))P={checkedKeys:S,halfCheckedKeys:void 0};else if(Object(y.a)(S)==="object")P={checkedKeys:S.checked||void 0,halfCheckedKeys:S.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function I(S,P){var w=new Set;function p(v){if(w.has(v))return;var u=P[v];if(!u)return;w.add(v);var M=u.parent,T=u.node;if(T.disabled)return;M&&p(M.key)}return(S||[]).forEach(function(v){p(v)}),Object(C.a)(w)}function he(S){var P={};return Object.keys(S).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(P[w]=S[w])}),P}},"SA+Z":function(et,ee,o){var C=o("wTVA"),y=o("EbDI"),ce=o("ZhPi"),j=o("wkBT");function r(h){return C(h)||y(h)||ce(h)||j()}et.exports=r,et.exports.__esModule=!0,et.exports.default=et.exports},WaYH:function(et,ee,o){"use strict";var C=o("rePB"),y=o("Ff2n"),ce=o("VTBJ"),j=o("1OyB"),r=o("vuIU"),h=o("JX7q"),F=o("Ji7U"),q=o("LK+K"),R=o("q1tI"),ge=o("TSYQ"),Q=o.n(ge),pe=o("sboe"),oe=o("OZM5"),H=function(P){var w=P.prefixCls,p=P.level,v=P.isStart,u=P.isEnd;if(!p)return null;for(var M="".concat(w,"-indent-unit"),T=[],N=0;N=0||N.relatedTarget.className.indexOf("".concat(me,"-next"))>=0))return;v.setState({goInputText:""}),ne(v.getValidValue())},v.go=function(N){var ie=v.state.goInputText;if(ie==="")return;(N.keyCode===H.ENTER||N.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return Object(r.a)(p,[{key:"getValidValue",value:function(){var u=this.state,M=u.goInputText,S=u.current;return!M||isNaN(M)?S:Number(M)}},{key:"getPageSizeOptions",value:function(){var u=this.props,M=u.pageSize,S=u.pageSizeOptions;return S.some(function(N){return N.toString()===M.toString()})?S:S.concat([M.toString()]).sort(function(N,ie){var A=isNaN(Number(N))?0:Number(N),ne=isNaN(Number(ie))?0:Number(ie);return A-ne})}},{key:"render",value:function(){var u=this,M=this.props,S=M.pageSize,N=M.locale,ie=M.rootPrefixCls,A=M.changeSize,ne=M.quickGo,me=M.goButton,Se=M.selectComponentClass,Ye=M.buildOptionText,xe=M.selectPrefixCls,V=M.disabled,Me=this.state.goInputText,Re="".concat(ie,"-options"),Ne=Se,we=null,J=null,$=null;if(!A&&!ne)return null;var se=this.getPageSizeOptions();if(A&&Ne){var Z=se.map(function(_,K){return R.a.createElement(Ne.Option,{key:K,value:_.toString()},(Ye||u.buildOptionText)(_))});we=R.a.createElement(Ne,{disabled:V,prefixCls:xe,showSearch:!1,className:"".concat(Re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(S||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(K){return K.parentNode}},Z)}return ne&&(me&&($=typeof me=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat(Re,"-quick-jumper-button")},N.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},me)),J=R.a.createElement("div",{className:"".concat(Re,"-quick-jumper")},N.jump_to,R.a.createElement("input",{disabled:V,type:"text",value:Me,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,$)),R.a.createElement("li",{className:"".concat(Re)},we,J)}}]),p}(R.a.Component);O.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=O,z=o("N2Kk");function D(){}function k(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function W(P,w,p){return p}function I(P,w,p){var v=typeof P=="undefined"?w.pageSize:P;return Math.floor((p.total-1)/v)+1}var he=function(P){Object(h.a)(p,P);var w=Object(F.a)(p);function p(v){var u;Object(j.a)(this,p),u=w.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(I(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(A,ne){var me=u.props.prefixCls,Se=A||R.a.createElement("button",{type:"button","aria-label":ne,className:"".concat(me,"-item-link")});return typeof A=="function"&&(Se=R.a.createElement(A,Object(ce.a)({},u.props))),Se},u.savePaginationNode=function(A){u.paginationNode=A},u.isValid=function(A){return k(A)&&A!==u.state.current},u.shouldDisplayQuickJumper=function(){var A=u.props,ne=A.showQuickJumper,me=A.pageSize,Se=A.total;return Se<=me?!1:ne},u.handleKeyDown=function(A){(A.keyCode===H.ARROW_UP||A.keyCode===H.ARROW_DOWN)&&A.preventDefault()},u.handleKeyUp=function(A){var ne=u.getValidValue(A),me=u.state.currentInputValue;ne!==me&&u.setState({currentInputValue:ne}),A.keyCode===H.ENTER?u.handleChange(ne):A.keyCode===H.ARROW_UP?u.handleChange(ne-1):A.keyCode===H.ARROW_DOWN&&u.handleChange(ne+1)},u.changePageSize=function(A){var ne=u.state.current,me=I(A,u.state,u.props);ne=ne>me?me:ne,me===0&&(ne=u.state.current),typeof A=="number"&&("pageSize"in u.props||u.setState({pageSize:A}),"current"in u.props||u.setState({current:ne,currentInputValue:ne})),u.props.onShowSizeChange(ne,A),"onChange"in u.props&&u.props.onChange&&u.props.onChange(ne,A)},u.handleChange=function(A){var ne=u.props.disabled,me=A;if(u.isValid(me)&&!ne){var Se=I(void 0,u.state,u.props);me>Se?me=Se:me<1&&(me=1),"current"in u.props||u.setState({current:me,currentInputValue:me});var Ye=u.state.pageSize;return u.props.onChange(me,Ye),me}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?me-2:0),Ye=2;Ye=S?ie=S:ie=Number(M),ie}},{key:"getShowSizeChanger",value:function(){var u=this.props,M=u.showSizeChanger,S=u.total,N=u.totalBoundaryShowSizeChanger;return typeof M!="undefined"?M:S>N}},{key:"renderPrev",value:function(u){var M=this.props,S=M.prevIcon,N=M.itemRender,ie=N(u,"prev",this.getItemIcon(S,"prev page")),A=!this.hasPrev();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"renderNext",value:function(u){var M=this.props,S=M.nextIcon,N=M.itemRender,ie=N(u,"next",this.getItemIcon(S,"next page")),A=!this.hasNext();return Object(q.isValidElement)(ie)?Object(q.cloneElement)(ie,{disabled:A}):ie}},{key:"render",value:function(){var u=this,M=this.props,S=M.prefixCls,N=M.className,ie=M.style,A=M.disabled,ne=M.hideOnSinglePage,me=M.total,Se=M.locale,Ye=M.showQuickJumper,xe=M.showLessItems,V=M.showTitle,Me=M.showTotal,Re=M.simple,Ne=M.itemRender,we=M.showPrevNextJumpers,J=M.jumpPrevIcon,$=M.jumpNextIcon,se=M.selectComponentClass,Z=M.selectPrefixCls,_=M.pageSizeOptions,K=this.state,de=K.current,De=K.pageSize,He=K.currentInputValue;if(ne===!0&&me<=De)return null;var le=I(void 0,this.state,this.props),Pe=[],rt=null,$e=null,ht=null,xt=null,lt=null,_e=Ye&&Ye.goButton,Ke=xe?1:2,It=de-1>0?de-1:0,Lt=de+1=Ke*2&&de!==1+2&&(Pe[0]=Object(q.cloneElement)(Pe[0],{className:"".concat(S,"-item-after-jump-prev")}),Pe.unshift(rt)),le-de>=Ke*2&&de!==le-2&&(Pe[Pe.length-1]=Object(q.cloneElement)(Pe[Pe.length-1],{className:"".concat(S,"-item-before-jump-next")}),Pe.push($e)),X!==1&&Pe.unshift(ht),ue!==le&&Pe.push(xt)}var ae=null;Me&&(ae=R.a.createElement("li",{className:"".concat(S,"-total-text")},Me(me,[me===0?0:(de-1)*De+1,de*De>me?me:de*De])));var G=!this.hasPrev()||!le,te=!this.hasNext()||!le;return R.a.createElement("ul",Object(C.a)({className:Q()(S,N,Object(y.a)({},"".concat(S,"-disabled"),A)),style:ie,unselectable:"unselectable",ref:this.savePaginationNode},kt),ae,R.a.createElement("li",{title:V?Se.prev_page:null,onClick:this.prev,tabIndex:G?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(S,"-prev"),Object(y.a)({},"".concat(S,"-disabled"),G)),"aria-disabled":G},this.renderPrev(It)),Pe,R.a.createElement("li",{title:V?Se.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(S,"-next"),Object(y.a)({},"".concat(S,"-disabled"),te)),"aria-disabled":te},this.renderNext(Lt)),R.a.createElement(g,{disabled:A,locale:Se,rootPrefixCls:S,selectComponentClass:se,selectPrefixCls:Z,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:de,pageSize:De,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(u,M){var S={};if("current"in u&&(S.current=u.current,u.current!==M.current&&(S.currentInputValue=S.current)),"pageSize"in u&&u.pageSize!==M.pageSize){var N=M.current,ie=I(u.pageSize,M,u);N=N>ie?ie:N,"current"in u||(S.current=N,S.currentInputValue=N),S.pageSize=u.pageSize}return S}}]),p}(R.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:D,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:D,locale:z.a,style:{},itemRender:W,totalBoundaryShowSizeChanger:50};var T=he},"6RRn":function(et,ee,o){"use strict";var C=o("wCXF"),y=o("n6Qo");o.d(ee,"b",function(){return y.a});var ce=o("IBYe"),j=o("6eGT"),r=o("hW8S");o.d(ee,"a",function(){return r.a}),ee.c=C.b},"6eGT":function(et,ee,o){"use strict";function C(y){return null}ee.a=C},"815F":function(et,ee,o){"use strict";o.d(ee,"e",function(){return F}),o.d(ee,"c",function(){return R}),o.d(ee,"d",function(){return ge}),o.d(ee,"a",function(){return pe}),o.d(ee,"f",function(){return oe}),o.d(ee,"b",function(){return H});var C=o("KQm4"),y=o("VTBJ"),ce=o("Ff2n"),j=o("Zm9Q"),r=o("Kwbf"),h=o("OZM5");function F(O,g){return O!=null?O:g}function q(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function z(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(D||[]).forEach(function(W){var I=W.key,he=W.children;Object(r.a)(I!=null,"Tree node must have a certain key: [".concat(k).concat(I,"]"));var T=String(I);Object(r.a)(!g.has(T)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(T)),g.set(T,!0),z(he,"".concat(k).concat(T," > "))})}z(O)}function R(O){function g(z){var D=Object(j.a)(z);return D.map(function(k){if(!Object(h.i)(k))return Object(r.a)(!k,"Tree/TreeNode can only accept TreeNode as children."),null;var W=k.key,I=k.props,he=I.children,T=Object(ce.a)(I,["children"]),P=Object(y.a)({key:W},T),w=g(he);return w.length&&(P.children=w),P}).filter(function(k){return k})}return g(O)}function ge(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(g===!0?[]:g),D=[];function k(W){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return W.map(function(he,T){var P=Object(h.h)(I?I.pos:"0",T),w=F(he.key,P),p=Object(y.a)(Object(y.a)({},he),{},{parent:I,pos:P,children:null,data:he,isStart:[].concat(Object(C.a)(I?I.isStart:[]),[T===0]),isEnd:[].concat(Object(C.a)(I?I.isEnd:[]),[T===W.length-1])});return D.push(p),g===!0||z.has(w)?p.children=k(he.children||[],p):p.children=[],p})}return k(O),D}function Q(O,g,z){var D;z?typeof z=="string"?D=function(I){return I[z]}:typeof z=="function"&&(D=function(I){return z(I)}):D=function(I,he){return F(I.key,he)};function k(W,I,he){var T=W?W.children:O,P=W?Object(h.h)(he.pos,I):"0";if(W){var w=D(W,P),p={node:W,index:I,pos:P,key:w,parentPos:he.node?he.pos:null,level:he.level+1};g(p)}T&&T.forEach(function(v,u){k(v,u,{node:W,pos:P,level:he?he.level+1:-1})})}k(null)}function pe(O){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=g.initWrapper,D=g.processEntity,k=g.onProcessFinished,W=arguments.length>2?arguments[2]:void 0,I={},he={},T={posEntities:I,keyEntities:he};return z&&(T=z(T)||T),Q(O,function(P){var w=P.node,p=P.index,v=P.pos,u=P.key,M=P.parentPos,S=P.level,N={node:w,index:p,key:u,pos:v,level:S},ie=F(u,v);I[v]=N,he[ie]=N,N.parent=I[M],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),D&&D(N,T)},W),k&&k(T),T}function oe(O,g){var z=g.expandedKeys,D=g.selectedKeys,k=g.loadedKeys,W=g.loadingKeys,I=g.checkedKeys,he=g.halfCheckedKeys,T=g.dragOverNodeKey,P=g.dropPosition,w=g.keyEntities,p=w[O],v={eventKey:O,expanded:z.indexOf(O)!==-1,selected:D.indexOf(O)!==-1,loaded:k.indexOf(O)!==-1,loading:W.indexOf(O)!==-1,checked:I.indexOf(O)!==-1,halfChecked:he.indexOf(O)!==-1,pos:String(p?p.pos:""),dragOver:T===O&&P===0,dragOverGapTop:T===O&&P===-1,dragOverGapBottom:T===O&&P===1};return v}function H(O){var g=O.data,z=O.expanded,D=O.selected,k=O.checked,W=O.loaded,I=O.loading,he=O.halfChecked,T=O.dragOver,P=O.dragOverGapTop,w=O.dragOverGapBottom,p=O.pos,v=O.active,u=Object(y.a)(Object(y.a)({},g),{},{expanded:z,selected:D,checked:k,loaded:W,loading:I,halfChecked:he,dragOver:T,dragOverGapTop:P,dragOverGapBottom:w,pos:p,active:v});return"props"in u||Object.defineProperty(u,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),O}}),u}},E9nw:function(et,ee){et.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var C=document.activeElement,y=[],ce=0;ce1&&arguments[1]!==void 0?arguments[1]:1,te=Ke.length,ye=0;ye1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(xe).map(function(Me,Re){if(!r.isValidElement(Me)||!Me.type)return null;var Ne=Me.type.isSelectOptGroup,we=Me.key,J=Me.props,$=J.children,se=Object(F.a)(J,["children"]);return V||!Ne?w(Me):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(we===null?Re:we,"__"),label:we},se),{},{options:p($)})}).filter(function(Me){return Me})}var v=o("2Qr1"),u=o("qNPg"),M=o("U8pU"),S=o("Kwbf"),N=o("WKfj");function ie(xe){var V=xe.mode,Me=xe.options,Re=xe.children,Ne=xe.backfill,we=xe.allowClear,J=xe.placeholder,$=xe.getInputElement,se=xe.showSearch,Z=xe.onSearch,_=xe.defaultOpen,K=xe.autoFocus,de=xe.labelInValue,De=xe.value,He=xe.inputValue,le=xe.optionLabelProp,Pe=V==="multiple"||V==="tags",rt=se!==void 0?se:Pe||V==="combobox",$e=Me||p(Re);if(Object(S.a)(V!=="tags"||$e.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var ht=$e.some(function(_e){return _e.options?_e.options.some(function(Ke){return typeof("value"in Ke?Ke.value:Ke.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(S.a)(!ht,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(S.a)(V!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(S.a)(V==="combobox"||!Ne,"`backfill` only works with `combobox` mode."),Object(S.a)(V==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(S.b)(V!=="combobox"||!$||!we||!J,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Z&&!rt&&V!=="combobox"&&V!=="tags"&&Object(S.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(S.b)(!_||K,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var xt=Object(N.d)(De);Object(S.a)(!de||xt.every(function(_e){return Object(M.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(S.a)(!Pe||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var lt=null;Object(P.a)(Re).some(function(_e){if(!r.isValidElement(_e)||!_e.type)return!1;var Ke=_e.type;if(Ke.isSelectOption)return!1;if(Ke.isSelectOptGroup){var It=Object(P.a)(_e.props.children).every(function(Lt){return!r.isValidElement(Lt)||!_e.type||Lt.type.isSelectOption?!0:(lt=Lt.type,!1)});return!It}return lt=Ke,!0}),lt&&Object(S.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(lt.displayName||lt.name||lt,"`.")),Object(S.a)(He===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var A=ie,ne=Object(u.a)({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:p,flattenOptions:v.d,getLabeledValue:v.e,filterOptions:v.b,isValueDisabled:v.g,findValueOption:v.c,warningProps:A,fillOptionsWithMissingValue:v.a}),me=function(xe){Object(ce.a)(Me,xe);var V=Object(j.a)(Me);function Me(){var Re;return Object(C.a)(this,Me),Re=V.apply(this,arguments),Re.selectRef=r.createRef(),Re.focus=function(){Re.selectRef.current.focus()},Re.blur=function(){Re.selectRef.current.blur()},Re}return Object(y.a)(Me,[{key:"render",value:function(){return r.createElement(ne,Object.assign({ref:this.selectRef},this.props))}}]),Me}(r.Component);me.Option=W,me.OptGroup=he;var Se=me,Ye=ee.c=Se},NvD2:function(et,ee,o){"use strict";o.d(ee,"a",function(){return h});var C=o("Kwbf");function y(F,q){var R=new Set;return F.forEach(function(ge){q.has(ge)||R.add(ge)}),R}function ce(F){var q=F||{},R=q.disabled,ge=q.disableCheckbox,Q=q.checkable;return!!(R||ge)||Q===!1}function j(F,q,R,ge){for(var Q=new Set(F),pe=new Set,oe=0;oe<=R;oe+=1){var H=q.get(oe)||new Set;H.forEach(function(D){var k=D.key,W=D.node,I=D.children,he=I===void 0?[]:I;Q.has(k)&&!ge(W)&&he.filter(function(T){return!ge(T.node)}).forEach(function(T){Q.add(T.key)})})}for(var O=new Set,g=R;g>=0;g-=1){var z=q.get(g)||new Set;z.forEach(function(D){var k=D.parent,W=D.node;if(ge(W)||!D.parent||O.has(D.parent.key))return;if(ge(D.parent.node)){O.add(k.key);return}var I=!0,he=!1;(k.children||[]).filter(function(T){return!ge(T.node)}).forEach(function(T){var P=T.key,w=Q.has(P);I&&!w&&(I=!1),!he&&(w||pe.has(P))&&(he=!0)}),I&&Q.add(k.key),he&&pe.add(k.key),O.add(k.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(y(pe,Q))}}function r(F,q,R,ge,Q){for(var pe=new Set(F),oe=new Set(q),H=0;H<=ge;H+=1){var O=R.get(H)||new Set;O.forEach(function(k){var W=k.key,I=k.node,he=k.children,T=he===void 0?[]:he;!pe.has(W)&&!oe.has(W)&&!Q(I)&&T.filter(function(P){return!Q(P.node)}).forEach(function(P){pe.delete(P.key)})})}oe=new Set;for(var g=new Set,z=ge;z>=0;z-=1){var D=R.get(z)||new Set;D.forEach(function(k){var W=k.parent,I=k.node;if(Q(I)||!k.parent||g.has(k.parent.key))return;if(Q(k.parent.node)){g.add(W.key);return}var he=!0,T=!1;(W.children||[]).filter(function(P){return!Q(P.node)}).forEach(function(P){var w=P.key,p=pe.has(w);he&&!p&&(he=!1),!T&&(p||oe.has(w))&&(T=!0)}),he||pe.delete(W.key),T&&oe.add(W.key),g.add(W.key)})}return{checkedKeys:Array.from(pe),halfCheckedKeys:Array.from(y(oe,pe))}}function h(F,q,R,ge){var Q=[],pe;ge?pe=ge:pe=ce;var oe=new Set(F.filter(function(z){var D=!!R[z];return D||Q.push(z),D})),H=new Map,O=0;Object.keys(R).forEach(function(z){var D=R[z],k=D.level,W=H.get(k);W||(W=new Set,H.set(k,W)),W.add(D),O=Math.max(O,k)}),Object(C.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var g;return q===!0?g=j(oe,H,O,pe):g=r(oe,q.halfCheckedKeys,H,O,pe),g}},OZM5:function(et,ee,o){"use strict";o.d(ee,"b",function(){return ge}),o.d(ee,"a",function(){return Q}),o.d(ee,"k",function(){return pe}),o.d(ee,"h",function(){return oe}),o.d(ee,"i",function(){return H}),o.d(ee,"g",function(){return O}),o.d(ee,"c",function(){return g}),o.d(ee,"d",function(){return z}),o.d(ee,"j",function(){return W}),o.d(ee,"e",function(){return I}),o.d(ee,"f",function(){return he});var C=o("KQm4"),y=o("U8pU"),ce=o("Ff2n"),j=o("q1tI"),r=o.n(j),h=o("Kwbf"),F=o("WaYH"),q=.25,R=2;function ge(T,P){var w=T.slice(),p=w.indexOf(P);return p>=0&&w.splice(p,1),w}function Q(T,P){var w=T.slice();return w.indexOf(P)===-1&&w.push(P),w}function pe(T){return T.split("-")}function oe(T,P){return"".concat(T,"-").concat(P)}function H(T){return T&&T.type&&T.type.isTreeNode}function O(T,P){var w=[T],p=P[T];function v(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(M){var S=M.key,N=M.children;w.push(S),v(N)})}return v(p.children),w}function g(T,P){var w=T.clientY,p=P.selectHandle.getBoundingClientRect(),v=p.top,u=p.bottom,M=p.height,S=Math.max(M*q,R);return w<=v+S?-1:w>=u-S?1:0}function z(T,P){if(!T)return;var w=P.multiple;return w?T.slice():T.length?[T[0]]:T}var D=function(P){return P};function k(T,P){if(!T)return[];var w=P||{},p=w.processProps,v=p===void 0?D:p,u=Array.isArray(T)?T:[T];return u.map(function(M){var S=M.children,N=Object(ce.a)(M,["children"]),ie=k(S,P);return r.a.createElement(F.a,Object.assign({},v(N)),ie)})}function W(T){if(!T)return null;var P;if(Array.isArray(T))P={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(y.a)(T)==="object")P={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function I(T,P){var w=new Set;function p(v){if(w.has(v))return;var u=P[v];if(!u)return;w.add(v);var M=u.parent,S=u.node;if(S.disabled)return;M&&p(M.key)}return(T||[]).forEach(function(v){p(v)}),Object(C.a)(w)}function he(T){var P={};return Object.keys(T).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(P[w]=T[w])}),P}},"SA+Z":function(et,ee,o){var C=o("wTVA"),y=o("EbDI"),ce=o("ZhPi"),j=o("wkBT");function r(h){return C(h)||y(h)||ce(h)||j()}et.exports=r,et.exports.__esModule=!0,et.exports.default=et.exports},WaYH:function(et,ee,o){"use strict";var C=o("rePB"),y=o("Ff2n"),ce=o("VTBJ"),j=o("1OyB"),r=o("vuIU"),h=o("JX7q"),F=o("Ji7U"),q=o("LK+K"),R=o("q1tI"),ge=o("TSYQ"),Q=o.n(ge),pe=o("sboe"),oe=o("OZM5"),H=function(P){var w=P.prefixCls,p=P.level,v=P.isStart,u=P.isEnd;if(!p)return null;for(var M="".concat(w,"-indent-unit"),S=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1,se=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if($&&A[se])return A[se];var Z=window.getComputedStyle(J),_=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),K=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),de=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),De=ie.map(function(le){return"".concat(le,":").concat(Z.getPropertyValue(le))}).join(";"),He={sizingStyle:De,paddingSize:K,borderSize:de,boxSizing:_};return $&&se&&(A[se]=He),He}function Te(J){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),J.getAttribute("wrap")?ne.setAttribute("wrap",J.getAttribute("wrap")):ne.removeAttribute("wrap");var _=me(J,$),K=_.paddingSize,de=_.borderSize,De=_.boxSizing,He=_.sizingStyle;ne.setAttribute("style","".concat(He,";").concat(N)),ne.value=J.value||J.placeholder||"";var le=Number.MIN_SAFE_INTEGER,Pe=Number.MAX_SAFE_INTEGER,rt=ne.scrollHeight,$e;if(De==="border-box"?rt+=de:De==="content-box"&&(rt-=K),se!==null||Z!==null){ne.value=" ";var ht=ne.scrollHeight-K;se!==null&&(le=ht*se,De==="border-box"&&(le=le+K+de),rt=Math.max(le,rt)),Z!==null&&(Pe=ht*Z,De==="border-box"&&(Pe=Pe+K+de),$e=rt>Pe?"":"hidden",rt=Math.min(Pe,rt))}return{height:rt,minHeight:le,maxHeight:Pe,overflowY:$e,resize:"none"}}var Ye=o("Gytx"),xe=o.n(Ye),V;(function(J){J[J.NONE=0]="NONE",J[J.RESIZING=1]="RESIZING",J[J.RESIZED=2]="RESIZED"})(V||(V={}));var Me=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;return Object(y.a)(this,se),_=$.call(this,Z),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(K){_.textArea=K},_.handleResize=function(K){var de=_.state.resizeStatus,De=_.props,He=De.autoSize,le=De.onResize;if(de!==V.NONE)return;typeof le=="function"&&le(K),He&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var K=_.props.autoSize;if(!K||!_.textArea)return;var de=K.minRows,De=K.maxRows,He=Te(_.textArea,!1,de,De);_.setState({textareaStyles:He,resizeStatus:V.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var K=_.props,de=K.prefixCls,De=de===void 0?"rc-textarea":de,He=K.autoSize,le=K.onResize,Pe=K.className,rt=K.disabled,$e=_.state,ht=$e.textareaStyles,xt=$e.resizeStatus,lt=Object(u.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=T()(De,Pe,Object(q.a)({},"".concat(De,"-disabled"),rt));"value"in lt&&(lt.value=lt.value||"");var Ke=Object(F.a)(Object(F.a)(Object(F.a)({},_.props.style),ht),xt===V.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return h.createElement(v,{onResize:_.handleResize,disabled:!(He||le)},h.createElement("textarea",Object(C.a)({},lt,{className:_e,style:Ke,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:V.NONE},_}return Object(ce.a)(se,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!xe()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,K=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,K)}}catch(de){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(h.Component),Re=Me,Ne=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;Object(y.a)(this,se),_=$.call(this,Z),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(de){_.resizableTextArea=de},_.handleChange=function(de){var De=_.props.onChange;_.setValue(de.target.value,function(){_.resizableTextArea.resizeTextarea()}),De&&De(de)},_.handleKeyDown=function(de){var De=_.props,He=De.onPressEnter,le=De.onKeyDown;de.keyCode===13&&He&&He(de),le&&le(de)};var K=typeof Z.value=="undefined"||Z.value===null?Z.defaultValue:Z.value;return _.state={value:K},_}return Object(ce.a)(se,[{key:"setValue",value:function(_,K){"value"in this.props||this.setState({value:_},K)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return h.createElement(Re,Object(C.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),se}(h.Component),we=ee.default=Ne},bT9E:function(et,ee,o){"use strict";o.d(ee,"a",function(){return y});var C=o("VTBJ");function y(ce,j){var r=Object(C.a)({},ce);return Array.isArray(j)&&j.forEach(function(h){delete r[h]}),r}},biw7:function(et,ee,o){"use strict";var C=o("q1tI"),y=o.n(C),ce=C.createContext(null);ee.a=ce},cVrb:function(et,ee,o){"use strict";o.r(ee);var C=o("DjyN"),y=o("NUBc"),ce=o("k1fw"),j=o("g9YV"),r=o("wCAj"),h=o("/zsF"),F=o("PArb"),q=o("+L6B"),R=o("2/Rp"),ge=o("9og8"),Q=o("tJVT"),pe=o("Znn+"),oe=o("ZTPi"),H=o("tU7J"),O=o("wFql"),g=o("WmNS"),z=o.n(g),D=o("q1tI"),k=o.n(D),W=o("9kvl"),I=o("ErOA"),he=o("wd/R"),S=o.n(he),P=o("xKgJ"),w=o("H84S"),p=o.n(w),v=O.a.Paragraph,u=oe.a.TabPane,M=function(N){var ie=N.dispatch,A=Object(D.useState)({limit:10,page:1,tab:"public"}),ne=Object(Q.a)(A,2),me=ne[0],Te=ne[1],Ye=Object(D.useState)([]),xe=Object(Q.a)(Ye,2),V=xe[0],Me=xe[1];Object(D.useEffect)(function(){Re()},[]);function Re(){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(ge.a)(z.a.mark(function J(){var $;return z.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(I.a)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:me});case 2:$=Z.sent,Me($);case 4:case"end":return Z.stop()}},J)})),Ne.apply(this,arguments)}var we=function($,se){if((V==null?void 0:V.my_sci_projects_num)>=10&&!Object(P.v)()){ie({type:"innovation/openSimpleModal",payload:{title:"\u9879\u76EE\u6570\u91CF\u8FBE\u5230\u4E0A\u9650",children:"\u6BCF\u4F4D\u7528\u6237\u6700\u591A\u53EA\u80FD\u521B\u5EFA10\u4E2A\u9879\u76EE\uFF0C\u4F60\u7684\u9879\u76EE\u6570\u91CF\u5DF2\u7ECF\u8FBE\u5230\u4E0A\u9650\u3002",footer:k.a.createElement(R.a,{onClick:function(){return ie({type:"innovation/closeSimpleModal"})},type:"primary"},"\u6211\u77E5\u9053\u4E86")}});return}W.d.push("/innovation/project/create?mirror_type=".concat($,"&mirror_repository_id=").concat(se,"&tab=public"))};return k.a.createElement("div",null,k.a.createElement("div",{className:p.a.header},k.a.createElement("span",{className:p.a.title},"\u516C\u5F00\u955C\u50CF\u5217\u8868")),k.a.createElement(F.a,null),k.a.createElement(r.a,{dataSource:V==null?void 0:V.sci_mirrors,columns:[{title:"\u5E8F\u53F7",dataIndex:"filename",key:"filename",render:function($,se,Z){return me.limit*(me.page-1)+Z+1}},{title:"\u955C\u50CF\u540D\u79F0",dataIndex:"name",width:"20%",ellipsis:!0,key:"name"},{title:"\u955C\u50CF\u7C7B\u578B",dataIndex:"mirror_type_cn",key:"mirror_type_cn",width:"10%",ellipsis:!0},{title:"\u955C\u50CF\u63CF\u8FF0",dataIndex:"description",key:"description",width:"20%",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:"10%",ellipsis:!0,render:function($){return S()($).format("YYYY-MM-DD HH:mm")}},{title:"\u521B\u5EFA\u8005",dataIndex:"user_name",key:"user_name",width:"10%",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",width:"20%",ellipsis:!0,render:function($,se){var Z=se.mirror_type,_=se.mirror_repository_id;return k.a.createElement("div",{className:p.a.link,onClick:function(){return we(Z,_)}},"\u521B\u5EFA\u9879\u76EE")}}],pagination:!1}),k.a.createElement(y.a,{style:{textAlign:"center",marginTop:20},current:me.page,total:V==null?void 0:V.count,showSizeChanger:!1,pageSize:10,hideOnSinglePage:!0,onChange:function($){me.page=$,Te(Object(ce.a)({},me)),Re()}}))};ee.default=Object(W.a)(function(T){var N=T.innovation;return{innovation:N}})(M)},fyJ8:function(et,ee,o){"use strict";var C=o("rePB"),y=o("VTBJ"),ce=o("Ff2n"),j=o("U8pU"),r=o("q1tI"),h=o.n(r),F=o("TSYQ"),q=o.n(F),R=o("c+Xe"),ge=o("sR1s");function Q(g){return g&&Object(j.a)(g)==="object"&&!Array.isArray(g)&&!r.isValidElement(g)}function pe(g){return typeof g=="string"?!0:Object(R.c)(g)}function oe(g,z){var D,k=g.prefixCls,W=g.className,I=g.record,he=g.index,S=g.dataIndex,P=g.render,w=g.children,p=g.component,v=p===void 0?"td":p,u=g.colSpan,M=g.rowSpan,T=g.fixLeft,N=g.fixRight,ie=g.firstFixLeft,A=g.lastFixLeft,ne=g.firstFixRight,me=g.lastFixRight,Te=g.appendNode,Ye=g.additionalProps,xe=Ye===void 0?{}:Ye,V=g.ellipsis,Me=g.align,Re=g.rowType,Ne=g.isSticky,we="".concat(k,"-cell"),J,$;if(w)$=w;else{var se=Object(ge.b)(I,S);if($=se,P){var Z=P(se,I,he);Q(Z)?($=Z.children,J=Z.props):$=Z}}Object(j.a)($)==="object"&&!Array.isArray($)&&!r.isValidElement($)&&($=null),V&&(A||ne)&&($=r.createElement("span",{className:"".concat(we,"-content")},$));var _=J||{},K=_.colSpan,de=_.rowSpan,De=_.style,He=_.className,le=Object(ce.a)(_,["colSpan","rowSpan","style","className"]),Pe=K!==void 0?K:u,rt=de!==void 0?de:M;if(Pe===0||rt===0)return null;var $e={},ht=typeof T=="number",xt=typeof N=="number";ht&&($e.position="sticky",$e.left=T),xt&&($e.position="sticky",$e.right=N);var lt={};Me&&(lt.textAlign=Me);var _e,Ke=V===!0?{showTitle:!0}:V;Ke&&(Ke.showTitle||Re==="header")&&(typeof $=="string"||typeof $=="number"?_e=$.toString():r.isValidElement($)&&typeof $.props.children=="string"&&(_e=$.props.children));var It=Object(y.a)(Object(y.a)(Object(y.a)({title:_e},le),xe),{},{colSpan:Pe&&Pe!==1?Pe:null,rowSpan:rt&&rt!==1?rt:null,className:q()(we,W,(D={},Object(C.a)(D,"".concat(we,"-fix-left"),ht),Object(C.a)(D,"".concat(we,"-fix-left-first"),ie),Object(C.a)(D,"".concat(we,"-fix-left-last"),A),Object(C.a)(D,"".concat(we,"-fix-right"),xt),Object(C.a)(D,"".concat(we,"-fix-right-first"),ne),Object(C.a)(D,"".concat(we,"-fix-right-last"),me),Object(C.a)(D,"".concat(we,"-ellipsis"),V),Object(C.a)(D,"".concat(we,"-with-append"),Te),Object(C.a)(D,"".concat(we,"-fix-sticky"),(ht||xt)&&Ne),D),xe.className,He),style:Object(y.a)(Object(y.a)(Object(y.a)(Object(y.a)({},xe.style),lt),$e),De),ref:pe(v)?z:null});return r.createElement(v,Object.assign({},It),Te,$)}var H=r.forwardRef(oe);H.displayName="Cell";var O=r.memo(H,function(g,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,g.record):!1});ee.a=O},hW8S:function(et,ee,o){"use strict";o.d(ee,"a",function(){return j}),o.d(ee,"c",function(){return r}),o.d(ee,"b",function(){return h});var C=o("VTBJ"),y=o("Ff2n"),ce=o("Kwbf"),j="RC_TABLE_INTERNAL_COL_DEFINE";function r(F){var q=F.expandable,R=Object(y.a)(F,["expandable"]);return"expandable"in F?Object(C.a)(Object(C.a)({},R),q):R}function h(F){return Object.keys(F).reduce(function(q,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(q[R]=F[R]),q},{})}},k3GJ:function(et,ee,o){"use strict";o.d(ee,"a",function(){return po});var C=o("rePB"),y=o("ODXe"),ce=o("Ff2n"),j=o("VTBJ"),r=o("q1tI"),h=o("TSYQ"),F=o.n(h),q=o("Zm9Q"),R=o("6cGi"),ge=o("KQm4"),Q=o("xEkU"),pe=o.n(Q),oe=o("t23M");function H(a){var c=Object(r.useRef)(),f=Object(r.useRef)(!1);function s(){for(var e=arguments.length,n=new Array(e),t=0;tb&&(L=b-U),Object(r.useMemo)(function(){if(!n.length)return[0,0];for(var Y=n.length,Se=Y,Be=0;Bed+L){Se=Be-1;break}}for(var Ve=0,Fe=Y-1;Fe>=0;Fe-=1){var ke=a.get(n[Fe].key)||I;if(ke[m]1&&arguments[1]!==void 0?arguments[1]:!1,s=c&&typeof c.getBoundingClientRect=="function"&&c.getBoundingClientRect().width;if(s){if(f){var e=getComputedStyle(c),n=e.marginLeft,t=e.marginRight;s+=+n.replace("px","")+ +t.replace("px","")}s=+s.toFixed(6)}return s||0},_e=function(c,f,s){c&&Object(ne.a)(c.style)==="object"&&(c.style[f]=s)},Ke=function(){return He.any},It=o("bdgK"),Lt=o("i8i4"),kt=o.n(Lt),jt=o("wgJM"),wt=o("l4aY"),cn=o("m+aA"),E=o("c+Xe"),B=o("zT1h"),X=o("QC+M");function ue(a,c,f){return f?a[0]===c[0]:a[0]===c[0]&&a[1]===c[1]}function be(a,c,f){var s=a[c]||{};return Object(j.a)(Object(j.a)({},s),f)}function re(a,c,f,s){for(var e=f.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;c();var n=Object(jt.a)(function(){e<=1?s({isCanceled:function(){return n!==a.current}}):f(s,e-1)});a.current=n}return r.useEffect(function(){return function(){c()}},[]),[f,c]},wn=[gt,bt,st,We],An=!1,Fn=!0;function on(a){return a===st||a===We}var hn=function(a,c){var f=r.useState(Ft),s=Object(y.a)(f,2),e=s[0],n=s[1],t=yt(),i=Object(y.a)(t,2),l=i[0],m=i[1];function d(){n(gt)}return Vt(function(){if(e!==Ft&&e!==We){var b=wn.indexOf(e),x=wn[b+1],U=c(e);U===An?n(x):l(function(L){function Y(){if(L.isCanceled())return;n(x)}U===!0?Y():Promise.resolve(U).then(Y)})}},[a,e]),r.useEffect(function(){return function(){m()}},[]),[d,e]},On=function(a){var c=Object(r.useRef)(),f=Object(r.useRef)(a);f.current=a;var s=r.useCallback(function(t){f.current(t)},[]);function e(t){t&&(t.removeEventListener(Bt,s),t.removeEventListener(Ie,s))}function n(t){c.current&&c.current!==t&&e(c.current),t&&t!==c.current&&(t.addEventListener(Bt,s),t.addEventListener(Ie,s),c.current=t)}return r.useEffect(function(){return function(){e(c.current)}},[]),[n,e]};function xn(a,c,f,s){var e=s.motionEnter,n=e===void 0?!0:e,t=s.motionAppear,i=t===void 0?!0:t,l=s.motionLeave,m=l===void 0?!0:l,d=s.motionDeadline,b=s.motionLeaveImmediately,x=s.onAppearPrepare,U=s.onEnterPrepare,L=s.onLeavePrepare,Y=s.onAppearStart,Se=s.onEnterStart,Be=s.onLeaveStart,Le=s.onAppearActive,Ve=s.onEnterActive,Fe=s.onLeaveActive,ke=s.onAppearEnd,Ue=s.onEnterEnd,nt=s.onLeaveEnd,Xe=s.onVisibleChanged,Dt=St(),dt=Object(y.a)(Dt,2),Oe=dt[0],Ce=dt[1],Ge=St(vt),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=St(null),ot=Object(y.a)(Ct,2),pt=ot[0],Tt=ot[1],Xt=Object(r.useRef)(!1),nn=Object(r.useRef)(null),_t=Object(r.useRef)(!1),an=Object(r.useRef)(null);function gn(){var Ot=f();return Ot||an.current}var sn=Object(r.useRef)(!1);function ln(Ot){var ct=gn();if(Ot&&!Ot.deadline&&Ot.target!==ct)return;var Gt;ve===Pt&&sn.current?Gt=ke==null?void 0:ke(ct,Ot):ve===Ut&&sn.current?Gt=Ue==null?void 0:Ue(ct,Ot):ve===it&&sn.current&&(Gt=nt==null?void 0:nt(ct,Ot)),Gt!==!1&&!_t.current&&(at(vt),Tt(null))}var At=On(ln),Zt=Object(y.a)(At,1),$t=Zt[0],zt=r.useMemo(function(){var Ot,ct,Gt;switch(ve){case"appear":return Ot={},Object(C.a)(Ot,gt,x),Object(C.a)(Ot,bt,Y),Object(C.a)(Ot,st,Le),Ot;case"enter":return ct={},Object(C.a)(ct,gt,U),Object(C.a)(ct,bt,Se),Object(C.a)(ct,st,Ve),ct;case"leave":return Gt={},Object(C.a)(Gt,gt,L),Object(C.a)(Gt,bt,Be),Object(C.a)(Gt,st,Fe),Gt;default:return{}}},[ve]),Dn=hn(ve,function(Ot){if(Ot===gt){var ct=zt[gt];return ct?ct(gn()):An}if(Et in zt){var Gt;Tt(((Gt=zt[Et])===null||Gt===void 0?void 0:Gt.call(zt,gn(),null))||null)}return Et===st&&($t(gn()),d>0&&(clearTimeout(nn.current),nn.current=setTimeout(function(){ln({deadline:!0})},d))),Fn}),Pn=Object(y.a)(Dn,2),Wn=Pn[0],Et=Pn[1],Cn=on(Et);sn.current=Cn,Vt(function(){Ce(c);var Ot=Xt.current;if(Xt.current=!0,!a)return;var ct;!Ot&&c&&i&&(ct=Pt),Ot&&c&&n&&(ct=Ut),(Ot&&!c&&m||!Ot&&b&&!c&&m)&&(ct=it),ct&&(at(ct),Wn())},[c]),Object(r.useEffect)(function(){(ve===Pt&&!i||ve===Ut&&!n||ve===it&&!m)&&at(vt)},[i,n,m]),Object(r.useEffect)(function(){return function(){clearTimeout(nn.current),_t.current=!0}},[]),Object(r.useEffect)(function(){Oe!==void 0&&ve===vt&&(Xe==null||Xe(Oe))},[Oe,ve]);var Bn=pt;return zt[gt]&&Et===bt&&(Bn=Object(j.a)({transition:"none"},Bn)),[ve,Et,Bn,Oe!=null?Oe:c]}var Hn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){return Object(P.a)(this,f),c.apply(this,arguments)}return Object(w.a)(f,[{key:"render",value:function(){return this.props.children}}]),f}(r.Component),qt=Hn;function Ln(a){var c=a;Object(ne.a)(a)==="object"&&(c=a.transitionSupport);function f(e){return!!(e.motionName&&c)}var s=r.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,l=e.removeOnLeave,m=l===void 0?!0:l,d=e.forceRender,b=e.children,x=e.motionName,U=e.leavedClassName,L=e.eventProps,Y=f(e),Se=Object(r.useRef)(),Be=Object(r.useRef)();function Le(){try{return Object(cn.a)(Se.current||Be.current)}catch(at){return null}}var Ve=xn(Y,i,Le,e),Fe=Object(y.a)(Ve,4),ke=Fe[0],Ue=Fe[1],nt=Fe[2],Xe=Fe[3],Dt=r.useRef(Xe);Xe&&(Dt.current=!0);var dt=Object(r.useRef)(n);dt.current=n;var Oe=r.useCallback(function(at){Se.current=at,Object(E.b)(dt.current,at)},[]),Ce,Ge=Object(j.a)(Object(j.a)({},L),{},{visible:i});if(!b)Ce=null;else if(ke===vt||!f(e))Xe?Ce=b(Object(j.a)({},Ge),Oe):!m&&Dt.current?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:U}),Oe):d?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{style:{display:"none"}}),Oe):Ce=null;else{var Qe,ve;Ue===gt?ve="prepare":on(Ue)?ve="active":Ue===bt&&(ve="start"),Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:F()(Mt(x,ke),(Qe={},Object(C.a)(Qe,Mt(x,"".concat(ke,"-").concat(ve)),ve),Object(C.a)(Qe,x,typeof x=="string"),Qe)),style:nt}),Oe)}return r.createElement(qt,{ref:Be},Ce)});return s.displayName="CSSMotion",s}var En=Ln(ut),In="add",jn="keep",vn="remove",Mn="removed";function Vn(a){var c;return a&&Object(ne.a)(a)==="object"&&"key"in a?c=a:c={key:a},Object(j.a)(Object(j.a)({},c),{},{key:String(c.key)})}function Sn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Kt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=[],s=0,e=c.length,n=Sn(a),t=Sn(c);n.forEach(function(m){for(var d=!1,b=s;b1});return l.forEach(function(m){f=f.filter(function(d){var b=d.key,x=d.status;return b!==m||x!==vn}),f.forEach(function(d){d.key===m&&(d.status=jn)})}),f}var Qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rn(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,f=function(s){Object(v.a)(n,s);var e=Object(u.a)(n);function n(){var t;return Object(P.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(l){var m=l.keyEntities;return{keyEntities:m.map(function(d){return d.key!==i?d:Object(j.a)(Object(j.a)({},d),{},{status:Mn})})}})},t}return Object(w.a)(n,[{key:"render",value:function(){var i=this,l=this.state.keyEntities,m=this.props,d=m.component,b=m.children,x=m.onVisibleChanged,U=Object(ce.a)(m,["component","children","onVisibleChanged"]),L=d||r.Fragment,Y={};return Qt.forEach(function(Se){Y[Se]=U[Se],delete U[Se]}),delete U.keys,r.createElement(L,U,l.map(function(Se){var Be=Se.status,Le=Object(ce.a)(Se,["status"]),Ve=Be===In||Be===jn;return r.createElement(c,Object(S.a)({},Y,{key:Le.key,visible:Ve,eventProps:Le,onVisibleChanged:function(ke){x==null||x(ke,{key:Le.key}),ke||i.removeKey(Le.key)}}),b)}))}}],[{key:"getDerivedStateFromProps",value:function(i,l){var m=i.keys,d=l.keyEntities,b=Sn(m),x=Kt(d,b);return{keyEntities:x.filter(function(U){var L=d.find(function(Y){var Se=Y.key;return U.key===Se});return!(L&&L.status===Mn&&U.status===vn)})}}}]),n}(r.Component);return f.defaultProps={component:"div"},f}var Jt=rn(ut),en=En;function dn(a){var c=a.prefixCls,f=a.motion,s=a.animation,e=a.transitionName;return f||(s?{motionName:"".concat(c,"-").concat(s)}:e?{motionName:e}:null)}function Xn(a){var c=a.prefixCls,f=a.visible,s=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var l={};return(n||i||t)&&(l=Object(j.a)({motionAppear:!0},dn({motion:n,prefixCls:c,transitionName:i,animation:t}))),r.createElement(en,Object(S.a)({},l,{visible:f,removeOnLeave:!0}),function(m){var d=m.className;return r.createElement("div",{style:{zIndex:s},className:F()("".concat(c,"-mask"),d)})})}var kn=o("9mu1"),$n=o("o0o1"),Sa=o.n($n),Ta=o("HaE+"),Gn=["measure","align",null,"motion"],Rt=function(a,c){var f=Object(r.useState)(null),s=Object(y.a)(f,2),e=s[0],n=s[1],t=Object(r.useRef)(),i=Object(r.useRef)(!1);function l(b){i.current||n(b)}function m(){jt.a.cancel(t.current)}function d(b){m(),t.current=Object(jt.a)(function(){l(function(x){switch(e){case"align":return"motion";case"motion":return"stable";default:}return x}),b==null||b()})}return Object(r.useEffect)(function(){l("measure")},[a]),Object(r.useEffect)(function(){switch(e){case"measure":c();break;default:}e&&(t.current=Object(jt.a)(Object(Ta.a)(Sa.a.mark(function b(){var x,U;return Sa.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:x=Gn.indexOf(e),U=Gn[x+1],U&&x!==-1&&l(U);case 3:case"end":return Y.stop()}},b)}))))},[e]),Object(r.useEffect)(function(){return function(){i.current=!0,m()}},[]),[e,d]},Jn=function(a){var c=r.useState({width:0,height:0}),f=Object(y.a)(c,2),s=f[0],e=f[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=r.useMemo(function(){var i={};if(a){var l=s.width,m=s.height;a.indexOf("height")!==-1&&m?i.height=m:a.indexOf("minHeight")!==-1&&m&&(i.minHeight=m),a.indexOf("width")!==-1&&l?i.width=l:a.indexOf("minWidth")!==-1&&l&&(i.minWidth=l)}return i},[a,s]);return[t,n]},Yn=r.forwardRef(function(a,c){var f=a.visible,s=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,l=a.stretch,m=a.destroyPopupOnHide,d=a.forceRender,b=a.align,x=a.point,U=a.getRootDomNode,L=a.getClassNameFromAlign,Y=a.onAlign,Se=a.onMouseEnter,Be=a.onMouseLeave,Le=a.onMouseDown,Ve=a.onTouchStart,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useState)(),nt=Object(y.a)(Ue,2),Xe=nt[0],Dt=nt[1],dt=Jn(l),Oe=Object(y.a)(dt,2),Ce=Oe[0],Ge=Oe[1];function Qe(){l&&Ge(U())}var ve=Rt(f,Qe),at=Object(y.a)(ve,2),Ct=at[0],ot=at[1],pt=Object(r.useRef)();function Tt(){return x||U}function Xt(){var At;(At=Fe.current)===null||At===void 0||At.forceAlign()}function nn(At,Zt){var $t=L(Zt);Xe!==$t&&Dt($t),Ct==="align"&&(Xe!==$t?Promise.resolve().then(function(){Xt()}):ot(function(){var zt;(zt=pt.current)===null||zt===void 0||zt.call(pt)}),Y==null||Y(At,Zt))}var _t=Object(j.a)({},dn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(At){var Zt=_t[At];_t[At]=function($t,zt){return ot(),Zt==null?void 0:Zt($t,zt)}});function an(){return new Promise(function(At){pt.current=At})}r.useEffect(function(){!_t.motionName&&Ct==="motion"&&ot()},[_t.motionName,Ct]),r.useImperativeHandle(c,function(){return{forceAlign:Xt,getElement:function(){return ke.current}}});var gn=Object(j.a)(Object(j.a)({},Ce),{},{zIndex:i,opacity:Ct==="motion"||Ct==="stable"||!f?void 0:0,pointerEvents:Ct==="stable"?void 0:"none"},n),sn=!0;(b==null?void 0:b.points)&&(Ct==="align"||Ct==="stable")&&(sn=!1);var ln=t;return r.Children.count(t)>1&&(ln=r.createElement("div",{className:"".concat(s,"-content")},t)),r.createElement(en,Object(S.a)({visible:f,ref:ke,leavedClassName:"".concat(s,"-hidden")},_t,{onAppearPrepare:an,onEnterPrepare:an,removeOnLeave:m,forceRender:d}),function(At,Zt){var $t=At.className,zt=At.style,Dn=F()(s,e,Xe,$t);return r.createElement(kn.a,{target:Tt(),key:"popup",ref:Fe,monitorWindowResize:!0,disabled:sn,align:b,onAlign:nn},r.createElement("div",{ref:Zt,className:Dn,onMouseEnter:Se,onMouseLeave:Be,onMouseDownCapture:Le,onTouchStartCapture:Ve,style:Object(j.a)(Object(j.a)({},zt),gn)},ln))})});Yn.displayName="PopupInner";var Ra=Yn,fn=r.forwardRef(function(a,c){var f=a.prefixCls,s=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,l=t.popupStyle,m=t.popupMotion,d=m===void 0?{}:m,b=t.popupRender,x=r.useRef();r.useImperativeHandle(c,function(){return{forceAlign:function(){},getElement:function(){return x.current}}});var U=Object(j.a)({zIndex:e},l),L=n;return r.Children.count(n)>1&&(L=r.createElement("div",{className:"".concat(f,"-content")},n)),b&&(L=b(L)),r.createElement(en,Object(S.a)({visible:s,ref:x,removeOnLeave:!0},d),function(Y,Se){var Be=Y.className,Le=Y.style,Ve=F()(f,i,Be);return r.createElement("div",{ref:Se,className:Ve,style:Object(j.a)(Object(j.a)({},Le),U)},L)})});fn.displayName="MobilePopupInner";var Ha=fn,Na=["visible","mobile"],oa=r.forwardRef(function(a,c){var f=a.visible,s=a.mobile,e=Object(ce.a)(a,Na),n=Object(r.useState)(f),t=Object(y.a)(n,2),i=t[0],l=t[1],m=Object(r.useState)(!1),d=Object(y.a)(m,2),b=d[0],x=d[1],U=Object(j.a)(Object(j.a)({},e),{},{visible:i});Object(r.useEffect)(function(){l(f),f&&s&&x(ae())},[f,s]);var L=b?r.createElement(Ha,Object(S.a)({},U,{mobile:s,ref:c})):r.createElement(Ra,Object(S.a)({},U,{ref:c}));return r.createElement("div",null,r.createElement(Xn,U),L)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var c=function(f){Object(v.a)(e,f);var s=Object(u.a)(e);function e(n){var t;Object(P.a)(this,e),t=s.call(this,n),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(l){var m=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",l),t.delaySetPopupVisible(!0,m,m?null:l)},t.onMouseMove=function(l){t.fireEvents("onMouseMove",l),t.setPoint(l)},t.onMouseLeave=function(l){t.fireEvents("onMouseLeave",l),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(l){var m;if(l.relatedTarget&&!l.relatedTarget.setTimeout&&Object(wt.a)((m=t.popupRef.current)===null||m===void 0?void 0:m.getElement(),l.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(l){t.fireEvents("onFocus",l),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(l){t.fireEvents("onMouseDown",l),t.preClickTime=Date.now()},t.onTouchStart=function(l){t.fireEvents("onTouchStart",l),t.preTouchTime=Date.now()},t.onBlur=function(l){t.fireEvents("onBlur",l),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(l){l.preventDefault(),t.fireEvents("onContextMenu",l),t.setPopupVisible(!0,l)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(l){if(t.fireEvents("onClick",l),t.focusTime){var m;if(t.preClickTime&&t.preTouchTime?m=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?m=t.preClickTime:t.preTouchTime&&(m=t.preTouchTime),Math.abs(m-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var d=!t.state.popupVisible;(t.isClickToHide()&&!d||d&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,l)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var l;(l=t.context).onPopupMouseDown.apply(l,arguments)}},t.onDocumentClick=function(l){if(t.props.mask&&!t.props.maskClosable)return;var m=l.target,d=t.getRootDomNode(),b=t.getPopupDomNode();(!Object(wt.a)(d,m)||t.isContextMenuOnly())&&!Object(wt.a)(b,m)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var l=t.props.getTriggerDOMNode;if(l)return l(t.triggerRef.current);try{var m=Object(cn.a)(t.triggerRef.current);if(m)return m}catch(d){}return kt.a.findDOMNode(Object(p.a)(t))},t.getPopupClassNameFromAlign=function(l){var m=[],d=t.props,b=d.popupPlacement,x=d.builtinPlacements,U=d.prefixCls,L=d.alignPoint,Y=d.getPopupClassNameFromAlign;return b&&x&&m.push(re(x,U,l,L)),Y&&m.push(Y(l)),m.join(" ")},t.getComponent=function(){var l=t.props,m=l.prefixCls,d=l.destroyPopupOnHide,b=l.popupClassName,x=l.onPopupAlign,U=l.popupMotion,L=l.popupAnimation,Y=l.popupTransitionName,Se=l.popupStyle,Be=l.mask,Le=l.maskAnimation,Ve=l.maskTransitionName,Fe=l.maskMotion,ke=l.zIndex,Ue=l.popup,nt=l.stretch,Xe=l.alignPoint,Dt=l.mobile,dt=l.forceRender,Oe=t.state,Ce=Oe.popupVisible,Ge=Oe.point,Qe=t.getPopupAlign(),ve={};return t.isMouseEnterToShow()&&(ve.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ve.onMouseLeave=t.onPopupMouseLeave),ve.onMouseDown=t.onPopupMouseDown,ve.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(S.a)({prefixCls:m,destroyPopupOnHide:d,visible:Ce,point:Xe&&Ge,className:b,align:Qe,onAlign:x,animation:L,getClassNameFromAlign:t.getPopupClassNameFromAlign},ve,{stretch:nt,getRootDomNode:t.getRootDomNode,style:Se,mask:Be,zIndex:ke,transitionName:Y,maskAnimation:Le,maskTransitionName:Ve,maskMotion:Fe,ref:t.popupRef,motion:U,mobile:Dt,forceRender:dt}),typeof Ue=="function"?Ue():Ue)},t.attachParent=function(l){jt.a.cancel(t.attachId);var m=t.props,d=m.getPopupContainer,b=m.getDocument,x=t.getRootDomNode(),U;d?(x||d.length===0)&&(U=d(x)):U=b(t.getRootDomNode()).body,U?U.appendChild(l):t.attachId=Object(jt.a)(function(){t.attachParent(l)})},t.getContainer=function(){var l=t.props.getDocument,m=l(t.getRootDomNode()).createElement("div");return m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.width="100%",t.attachParent(m),m},t.setPoint=function(l){var m=t.props.alignPoint;if(!m||!l)return;t.setState({point:{pageX:l.pageX,pageY:l.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Da.forEach(function(l){t["fire".concat(l)]=function(m){t.fireEvents(l,m)}}),t}return Object(w.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(B.a)(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(B.a)(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(B.a)(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(B.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,l=t.popupAlign,m=t.builtinPlacements;return i&&m?be(m,i,l):l}},{key:"setPopupVisible",value:function(t,i){var l=this.props.alignPoint,m=this.state.popupVisible;this.clearDelayTimer(),m!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:m}),this.props.onPopupVisibleChange(t)),l&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,l){var m=this,d=i*1e3;if(this.clearDelayTimer(),d){var b=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){m.setPopupVisible(t,b),m.clearDelayTimer()},d)}else this.setPopupVisible(t,l)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var i=this.props.children.props,l=this.props;return i[t]&&l[t]?this["fire".concat(t)]:i[t]||l[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var l=this.props.children.props[t];l&&l(i);var m=this.props[t];m&&m(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,l=i.children,m=i.forceRender,d=i.alignPoint,b=i.className,x=i.autoDestroy,U=r.Children.only(l),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,d&&(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 Y=F()(U&&U.props&&U.props.className,b);Y&&(L.className=Y);var Se=Object(j.a)({},L);Object(E.c)(U)&&(Se.ref=Object(E.a)(this.triggerRef,U.ref));var Be=r.cloneElement(U,Se),Le;return(t||this.popupRef.current||m)&&(Le=r.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&x&&(Le=null),r.createElement(ra.Provider,{value:this.triggerContextValue},Be,Le)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l=t.popupVisible,m={};return l!==void 0&&i.popupVisible!==l&&(m.popupVisible=l,m.prevPopupVisible=i.popupVisible),m}}]),e}(r.Component);return c.contextType=ra,c.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},c}var Ya=Ja(X.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,tn=0,mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(c,f,s){var e=rt(f),n=c.getState();c.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},n.defaultActiveFirst),{},Object(C.a)({},e,s))})},la=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onDestroy=function(d){e.props.onDestroy(d)},e.onKeyDown=function(d){var b=d.keyCode,x=e.menuInstance,U=e.props.store,L=e.getVisible();if(b===g.a.ENTER)return e.onTitleClick(d),pn(U,e.props.eventKey,!0),!0;if(b===g.a.RIGHT)return L?x.onKeyDown(d):(e.triggerOpenChange(!0),pn(U,e.props.eventKey,!0)),!0;if(b===g.a.LEFT){var Y;if(L)Y=x.onKeyDown(d);else return;return Y||(e.triggerOpenChange(!1),Y=!0),Y}return L&&(b===g.a.UP||b===g.a.DOWN)?x.onKeyDown(d):void 0},e.onOpenChange=function(d){e.props.onOpenChange(d)},e.onPopupVisibleChange=function(d){e.triggerOpenChange(d,d?"mouseenter":"mouseleave")},e.onMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onMouseEnter,L=b.store;pn(L,e.props.eventKey,!1),U({key:x,domEvent:d})},e.onMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,domEvent:d})},e.onTitleMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onItemHover,L=b.onTitleMouseEnter;U({key:x,hover:!0}),L({key:x,domEvent:d})},e.onTitleMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onItemHover,Y=b.onTitleMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,hover:!1}),Y({key:U,domEvent:d})},e.onTitleClick=function(d){var b=Object(p.a)(e),x=b.props;if(x.onTitleClick({key:x.eventKey,domEvent:d}),x.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(x.store,e.props.eventKey,!1)},e.onSubMenuClick=function(d){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(d))},e.onSelect=function(d){e.props.onSelect(d)},e.onDeselect=function(d){e.props.onDeselect(d)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(d){e.menuInstance=d},e.addKeyPath=function(d){return Object(j.a)(Object(j.a)({},d),{},{keyPath:(d.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(d,b){var x=e.props.eventKey,U=function(){e.onOpenChange({key:x,item:Object(p.a)(e),trigger:b,open:d})};b==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){U()},0):U()},e.isChildrenSelected=function(){var d={find:!1};return ht(e.props.children,e.props.selectedKeys,d),d.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var d=Lt.findDOMNode(e.menuInstance);if(d.offsetWidth>=e.subMenuTitle.offsetWidth)return;d.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(d){e.subMenuTitle=d},e.getBaseProps=function(){var d=Object(p.a)(e),b=d.props,x=e.getMode();return{mode:x==="horizontal"?"vertical":x,visible:e.getVisible(),level:b.level+1,inlineIndent:b.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:b.selectedKeys,eventKey:"".concat(b.eventKey,"-menu-"),openKeys:b.openKeys,motion:b.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:b.subMenuOpenDelay,parentMenu:Object(p.a)(e),subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,triggerSubMenuAction:b.triggerSubMenuAction,builtinPlacements:b.builtinPlacements,defaultActiveFirst:b.store.getState().defaultActiveFirst[rt(b.eventKey)],multiple:b.multiple,prefixCls:b.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:b.itemIcon,expandIcon:b.expandIcon,direction:b.direction}},e.getMotion=function(d,b){var x=Object(p.a)(e),U=x.haveRendered,L=e.props,Y=L.motion,Se=L.rootPrefixCls,Be=Object(j.a)(Object(j.a)({},Y),{},{leavedClassName:"".concat(Se,"-hidden"),removeOnLeave:!1,motionAppear:U||!b||d!=="inline"});return Be};var n=s.store,t=s.eventKey,i=n.getState(),l=i.defaultActiveFirst;e.isRootMenu=!1;var m=!1;return l&&(m=l[t]),pn(n,t,m),e.state={mode:s.mode,isOpen:s.isOpen},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,l=n.manualRef,m=n.isOpen,d=function(){e.setState({mode:t,isOpen:m})},b=m!==this.state.isOpen,x=t!==this.state.mode;if((x||b)&&(jt.a.cancel(this.updateStateRaf),x?this.updateStateRaf=Object(jt.a)(d):d()),l&&l(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!m)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return r.createElement(ea,Object(S.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,l=n.forceSubMenuRender,m=n.direction,d=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||l,!this.haveOpened)return r.createElement("div",null);var b=F()("".concat(n.prefixCls,"-sub"),Object(C.a)({},"".concat(n.prefixCls,"-rtl"),m==="rtl"));return this.isInlineMode()?r.createElement(en,Object(S.a)({visible:n.visible,forceRender:l},d),function(x){var U=x.className,L=x.style,Y=F()(b,U);return e.renderPopupMenu(Y,L)}):this.renderPopupMenu(b)}},{key:"render",value:function(){var e,n,t,i=Object(j.a)({},this.props),l=this.getVisible(),m=this.getPrefixCls(),d=this.isInlineMode(),b=this.getMode(),x=F()(m,"".concat(m,"-").concat(b),(e={},Object(C.a)(e,i.className,!!i.className),Object(C.a)(e,this.getOpenClassName(),l),Object(C.a)(e,this.getActiveClassName(),i.active||l&&!d),Object(C.a)(e,this.getDisabledClassName(),i.disabled),Object(C.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(tn+=1,this.internalMenuId="$__$".concat(tn,"$Menu")));var U={},L={},Y={};i.disabled||(U={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},L={onClick:this.onTitleClick},Y={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Se={},Be=i.direction,Le=Be==="rtl";d&&(Le?Se.paddingRight=i.inlineIndent*i.level:Se.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var Fe=null;b!=="horizontal"&&(Fe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Fe=r.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var ke=r.createElement("div",Object(S.a)({ref:this.saveSubMenuTitle,style:Se,className:"".concat(m,"-title"),role:"button"},Y,L,{"aria-expanded":l},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,Fe||r.createElement("i",{className:"".concat(m,"-arrow")})),Ue=this.renderChildren(),nt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(Tt){return Tt.parentNode},Xe=mn[b],Dt=i.popupOffset?{offset:i.popupOffset}:{},dt=F()((t={},Object(C.a)(t,i.popupClassName,i.popupClassName&&!d),Object(C.a)(t,"".concat(m,"-rtl"),Le),t)),Oe=i.disabled,Ce=i.triggerSubMenuAction,Ge=i.subMenuOpenDelay,Qe=i.forceSubMenuRender,ve=i.subMenuCloseDelay,at=i.builtinPlacements;xt.forEach(function(Tt){return delete i[Tt]}),delete i.onClick;var Ct=Le?Object(j.a)(Object(j.a)({},Pa),at):Object(j.a)(Object(j.a)({},ia),at);delete i.direction;var ot=this.getBaseProps(),pt=d?null:this.getMotion(ot.mode,ot.visible);return r.createElement("li",Object(S.a)({},i,U,{className:x,role:"menuitem"}),r.createElement(Ya,{prefixCls:m,popupClassName:F()("".concat(m,"-popup"),dt),getPopupContainer:nt,builtinPlacements:Ct,popupPlacement:Xe,popupVisible:d?!1:l,popupAlign:Dt,popup:d?null:Ue,action:Oe||d?[]:[Ce],mouseEnterDelay:Ge,mouseLeaveDelay:ve,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Qe,popupMotion:pt},ke),d?Ue:null)}}]),f}(r.Component);la.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Un=Object(M.b)(function(a,c){var f=a.openKeys,s=a.activeKey,e=a.selectedKeys,n=c.eventKey,t=c.subMenuKey;return{isOpen:f.indexOf(n)>-1,active:s[t]===n,selectedKeys:e}})(la);Un.isSubMenu=!0;var Kn=Un,_a="menuitem-overflowed",Qa=.5,wa=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.resizeObserver=null,s.mutationObserver=null,s.originalTotalWidth=0,s.overflowedItems=[],s.menuItemSizes=[],s.cancelFrameId=null,s.state={lastVisibleIndex:void 0},s.childRef=r.createRef(),s.getMenuItemNodes=function(){var e=s.props.prefixCls,n=s.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},s.getOverflowedSubMenuItem=function(e,n,t){var i=s.props,l=i.overflowedIndicator,m=i.level,d=i.mode,b=i.prefixCls,x=i.theme;if(m!==1||d!=="horizontal")return null;var U=s.props.children[0],L=U.props,Y=L.children,Se=L.title,Be=L.style,Le=Object(ce.a)(L,["children","title","style"]),Ve=Object(j.a)({},Be),Fe="".concat(e,"-overflowed-indicator"),ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(j.a)(Object(j.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(j.a)(Object(j.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),Fe="".concat(Fe,"-placeholder"),ke="".concat(ke,"-placeholder"));var Ue=x?"".concat(b,"-").concat(x):"",nt={};return xt.forEach(function(Xe){Le[Xe]!==void 0&&(nt[Xe]=Le[Xe])}),r.createElement(Kn,Object(S.a)({title:l,className:"".concat(b,"-overflowed-submenu"),popupClassName:Ue},nt,{key:Fe,eventKey:ke,disabled:!1,style:Ve}),n)},s.setChildrenWidthAndResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];_e(t,"display","inline-block");var i=s.getMenuItemNodes(),l=i.filter(function(m){return m.className.split(" ").indexOf(_a)>=0});l.forEach(function(m){_e(m,"display","inline-block")}),s.menuItemSizes=i.map(function(m){return lt(m,!0)}),l.forEach(function(m){_e(m,"display","none")}),s.overflowedIndicatorWidth=lt(e.children[e.children.length-1],!0),s.originalTotalWidth=s.menuItemSizes.reduce(function(m,d){return m+d},0),s.handleResize(),_e(t,"display","none")},s.handleResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=lt(e);s.overflowedItems=[];var t=0,i;s.originalTotalWidth>n+Qa&&(i=-1,s.menuItemSizes.forEach(function(l){t+=l,t+s.overflowedIndicatorWidth<=n&&(i+=1)})),s.setState({lastVisibleIndex:i})},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new It.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,l,m){var d=l;if(n.props.mode==="horizontal"){var b=n.getOverflowedSubMenuItem(l.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(m>t&&(d=r.cloneElement(l,{style:{display:"none"},eventKey:"".concat(l.props.eventKey,"-hidden"),className:"".concat(_a)})),m===t+1&&(n.overflowedItems=e.slice(t+1).map(function(U){return r.cloneElement(U,{key:U.props.eventKey,mode:"vertical-left"})}),b=n.getOverflowedSubMenuItem(l.props.eventKey,n.overflowedItems)));var x=[].concat(Object(ge.a)(i),[b,d]);return m===e.length-1&&x.push(n.getOverflowedSubMenuItem(l.props.eventKey,[],!0)),x}return[].concat(Object(ge.a)(i),[d])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,l=e.mode,m=e.level,d=e.tag,b=e.children,x=e.theme,U=Object(ce.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),L=d;return r.createElement(L,Object(S.a)({ref:this.childRef},U),this.renderChildren(b))}}]),f}(r.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(c){return!!c.props.disabled}):!0}function Tn(a,c,f){var s=a.getState();a.setState({activeKey:Object(j.a)(Object(j.a)({},s.activeKey),{},Object(C.a)({},c,f))})}function yn(a){return a.eventKey||"0-menu-"}function qn(a,c){var f=c,s=a.children,e=a.eventKey;if(f){var n;if($e(s,function(t,i){t&&t.props&&!t.props.disabled&&f===Pe(t,e,i)&&(n=!0)}),n)return f}return f=null,a.defaultActiveFirst&&$e(s,function(t,i){!f&&t&&!t.props.disabled&&(f=Pe(t,e,i))}),f}function Aa(a){if(!a)return;var c=this.instanceArray.indexOf(a);c!==-1?this.instanceArray[c]=a:this.instanceArray.push(a)}var La=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;return Object(P.a)(this,f),e=c.call(this,s),e.onKeyDown=function(n,t){var i=n.keyCode,l;if(e.getFlatInstanceArray().forEach(function(d){d&&d.props.active&&d.onKeyDown&&(l=d.onKeyDown(n))}),l)return 1;var m=null;return(i===g.a.UP||i===g.a.DOWN)&&(m=e.step(i===g.a.UP?-1:1)),m?(n.preventDefault(),Tn(e.props.store,yn(e.props),m.props.eventKey),typeof t=="function"&&t(m),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Tn(e.props.store,yn(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[yn(e.props)],l=t.length;if(!l)return null;n<0&&(t=t.concat().reverse());var m=-1;if(t.every(function(U,L){return U&&U.props.eventKey===i?(m=L,!1):!0}),!e.props.defaultActiveFirst&&m!==-1&&Zn(t.slice(m,l-1)))return;var d=(m+1)%l,b=d;do{var x=t[b];if(!x||x.props.disabled)b=(b+1)%l;else return x}while(b!==d);return null},e.renderCommonMenuItem=function(n,t,i){var l=e.props.store.getState(),m=Object(p.a)(e),d=m.props,b=Pe(n,d.eventKey,t),x=n.props;if(!x||typeof n.type=="string")return n;var U=b===l.activeKey,L=Object(j.a)(Object(j.a)({mode:x.mode||d.mode,level:d.level,inlineIndent:d.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:d.prefixCls,index:t,parentMenu:d.parentMenu,manualRef:x.disabled?void 0:Object(N.a)(n.ref,Aa.bind(Object(p.a)(e))),eventKey:b,active:!x.disabled&&U,multiple:d.multiple,onClick:function(Se){(x.onClick||le)(Se),e.onClick(Se)},onItemHover:e.onItemHover,motion:d.motion,subMenuOpenDelay:d.subMenuOpenDelay,subMenuCloseDelay:d.subMenuCloseDelay,forceSubMenuRender:d.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:d.builtinPlacements,itemIcon:x.itemIcon||e.props.itemIcon,expandIcon:x.expandIcon||e.props.expandIcon},i),{},{direction:d.direction});return(d.mode==="inline"||Ke())&&(L.triggerSubMenuAction="click"),r.cloneElement(n,Object(j.a)(Object(j.a)({},L),{},{key:b||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var l=e.props.store.getState(),m={openKeys:l.openKeys,selectedKeys:l.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,m)},s.store.setState({activeKey:Object(j.a)(Object(j.a)({},s.store.getState().activeKey),{},Object(C.a)({},s.eventKey,qn(s,s.activeKey)))}),e.instanceArray=[],e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!A()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[yn(n)],i=qn(n,t);if(i!==t)Tn(n.store,yn(n),i);else if("activeKey"in e){var l=qn(e,e.activeKey);i!==l&&Tn(n.store,yn(n),i)}}},{key:"render",value:function(){var e=this,n=Object(S.a)({},this.props);this.instanceArray=[];var t=F()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var l=n.prefixCls,m=n.eventKey,d=n.visible,b=n.level,x=n.mode,U=n.overflowedIndicator,L=n.theme;return xt.forEach(function(Y){return delete n[Y]}),delete n.onClick,r.createElement(ua,Object(S.a)({},n,{prefixCls:l,mode:x,tag:"ul",level:b,theme:L,visible:d,overflowedIndicator:U},i),Object(q.a)(n.children).map(function(Y,Se){return e.renderMenuItem(Y,Se,m||"0-menu-")}))}}]),f}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var Ia=Object(M.b)()(La),ea=Ia,Rn=o("Kwbf");function ca(a,c,f){var s=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,l=a.openTransitionName,m=c.switchingModeFromInline;if(e)return e;if(Object(ne.a)(i)==="object"&&i)Object(Rn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(s,"-open-").concat(i)};if(l)return{motionName:l};var d=t[f];return d||(m?null:t.other)}var ka=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onSelect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState(),b=d.selectedKeys,x=i.key;m.multiple?b=b.concat([x]):b=[x],"selectedKeys"in m||e.store.setState({selectedKeys:b}),m.onSelect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:b}))}},e.onClick=function(i){var l=e.getRealMenuMode(),m=Object(p.a)(e),d=m.store,b=m.props.onOpenChange;l!=="inline"&&!("openKeys"in e.props)&&(d.setState({openKeys:[]}),b([])),e.props.onClick(i)},e.onKeyDown=function(i,l){e.innerMenu.getWrappedInstance().onKeyDown(i,l)},e.onOpenChange=function(i){var l=Object(p.a)(e),m=l.props,d=e.store.getState().openKeys.concat(),b=!1,x=function(L){var Y=!1;if(L.open)Y=d.indexOf(L.key)===-1,Y&&d.push(L.key);else{var Se=d.indexOf(L.key);Y=Se!==-1,Y&&d.splice(Se,1)}b=b||Y};Array.isArray(i)?i.forEach(x):x(i),b&&("openKeys"in e.props||e.store.setState({openKeys:d}),m.onOpenChange(d))},e.onDeselect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState().selectedKeys.concat(),b=i.key,x=d.indexOf(b);x!==-1&&d.splice(x,1),"selectedKeys"in m||e.store.setState({selectedKeys:d}),m.onDeselect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:d}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var l=e.props.onMouseEnter;l&&l(i)},e.onTransitionEnd=function(i){var l=i.propertyName==="width"&&i.target===i.currentTarget,m=i.target.className,d=Object.prototype.toString.call(m)==="[object SVGAnimatedString]"?m.animVal:m,b=i.propertyName==="font-size"&&d.indexOf("anticon")>=0;(l||b)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=s.defaultSelectedKeys,t=s.defaultOpenKeys;return"selectedKeys"in s&&(n=s.selectedKeys||[]),"openKeys"in s&&(t=s.openKeys||[]),e.store=Object(M.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(s,s.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:s,inlineOpenKeys:[],store:e.store},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,l=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&l([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(j.a)({},Object(T.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(j.a)(Object(j.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(M.a,{store:this.store},r.createElement(ea,Object(S.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,l=i.getState(),m={},d={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(d.switchingModeFromInline=!0),"openKeys"in e?m.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(d.switchingModeFromInline=!0,d.inlineOpenKeys=l.openKeys,m.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(m.openKeys=n.inlineOpenKeys,d.inlineOpenKeys=[])),Object.keys(m).length&&i.setState(m),d}}]),f}(r.Component);ka.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ua=ka,Nn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(s.onClick(e),!0):void 0},s.onMouseLeave=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseLeave;i({key:t,hover:!1}),l({key:t,domEvent:e})},s.onMouseEnter=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseEnter;i({key:t,hover:!0}),l({key:t,domEvent:e})},s.onClick=function(e){var n=s.props,t=n.eventKey,i=n.multiple,l=n.onClick,m=n.onSelect,d=n.onDeselect,b=n.isSelected,x={key:t,keyPath:[t],item:Object(p.a)(s),domEvent:e};l(x),i?b?d(x):m(x):b||m(x)},s.saveNode=function(e){s.node=e},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,n=Object(j.a)({},this.props),t=F()(this.getPrefixCls(),n.className,(e={},Object(C.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(C.a)(e,this.getSelectedClassName(),n.isSelected),Object(C.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(j.a)(Object(j.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(j.a)(Object(j.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var l={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},m=Object(j.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?m.paddingRight=n.inlineIndent*n.level:m.paddingLeft=n.inlineIndent*n.level),xt.forEach(function(b){return delete n[b]}),delete n.direction;var d=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(d=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(S.a)({},Object(T.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,l,{style:m,ref:this.saveNode}),n.children,d)}}]),f}(r.Component);Nn.isMenuItem=!0,Nn.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var da=Object(M.b)(function(a,c){var f=a.activeKey,s=a.selectedKeys,e=c.eventKey,n=c.subMenuKey;return{active:f[n]===e,isSelected:Array.isArray(s)?s.indexOf(e)!==-1:s===e}})(Nn),fa=da,ma=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.renderInnerMenuItem=function(e){var n=s.props,t=n.renderMenuItem,i=n.index;return t(e,i,s.props.subMenuKey)},s}return Object(w.a)(f,[{key:"render",value:function(){var e=Object(S.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,l="".concat(i,"-item-group-title"),m="".concat(i,"-item-group-list"),d=e.title,b=e.children;return xt.forEach(function(x){return delete e[x]}),delete e.direction,r.createElement("li",Object(S.a)({},e,{onClick:function(U){return U.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),r.createElement("div",{className:l,title:typeof d=="string"?d:void 0},d),r.createElement("ul",{className:m},r.Children.map(b,this.renderInnerMenuItem)))}}]),f}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(c){var f=c.className,s=c.rootPrefixCls,e=c.style;return r.createElement("li",{className:"".concat(f," ").concat(s,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ua,ha=o("eDIo");function eo(a,c){var f=a.prefixCls,s=a.editable,e=a.locale,n=a.style;return!s||s.showAdd===!1?null:r.createElement("button",{ref:c,type:"button",className:"".concat(f,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){s.onEdit("add",{event:i})}},s.addIcon||"+")}var ta=r.forwardRef(eo);function to(a,c){var f=a.prefixCls,s=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,l=i===void 0?"More":i,m=a.moreTransitionName,d=a.style,b=a.className,x=a.editable,U=a.tabBarGutter,L=a.rtl,Y=a.onTabClick,Se=Object(r.useState)(!1),Be=Object(y.a)(Se,2),Le=Be[0],Ve=Be[1],Fe=Object(r.useState)(null),ke=Object(y.a)(Fe,2),Ue=ke[0],nt=ke[1],Xe="".concat(s,"-more-popup"),Dt="".concat(f,"-dropdown"),dt=Ue!==null?"".concat(Xe,"-").concat(Ue):null,Oe=n==null?void 0:n.dropdownAriaLabel,Ce=r.createElement(Ka,{onClick:function(pt){var Tt=pt.key,Xt=pt.domEvent;Y(Tt,Xt),Ve(!1)},id:Xe,tabIndex:-1,role:"listbox","aria-activedescendant":dt,selectedKeys:[Ue],"aria-label":Oe!==void 0?Oe:"expanded dropdown"},e.map(function(ot){return r.createElement(fa,{key:ot.key,id:"".concat(Xe,"-").concat(ot.key),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(ot.key),disabled:ot.disabled},ot.tab)}));function Ge(ot){for(var pt=e.filter(function(an){return!an.disabled}),Tt=pt.findIndex(function(an){return an.key===Ue})||0,Xt=pt.length,nn=0;nnat?(Qe=Ce,Xe.current="x"):(Qe=Ge,Xe.current="y");var Ct=Date.now();Ct-Ue.current>100&&(nt.current=!1),(c(-Qe,-Qe)||nt.current)&&(Oe.preventDefault(),nt.current=!0),Ue.current=Ct}var dt=Object(r.useRef)(null);dt.current={onTouchStart:Ve,onTouchMove:Fe,onTouchEnd:ke,onWheel:Dt},r.useEffect(function(){function Oe(ve){dt.current.onTouchStart(ve)}function Ce(ve){dt.current.onTouchMove(ve)}function Ge(ve){dt.current.onTouchEnd(ve)}function Qe(ve){dt.current.onWheel(ve)}return document.addEventListener("touchmove",Ce,{passive:!1}),document.addEventListener("touchend",Ge,{passive:!1}),a.current.addEventListener("touchstart",Oe,{passive:!1}),a.current.addEventListener("wheel",Qe),function(){document.removeEventListener("touchmove",Ce),document.removeEventListener("touchend",Ge)}},[])}function ba(){var a=Object(r.useRef)(new Map);function c(s){return a.current.has(s)||a.current.set(s,r.createRef()),a.current.get(s)}function f(s){a.current.delete(s)}return[c,f]}function Wa(a,c){var f=r.useRef(a),s=r.useState({}),e=Object(y.a)(s,2),n=e[1];function t(i){var l=typeof i=="function"?i(f.current):i;l!==f.current&&c(l,f.current),f.current=l,n({})}return[f.current,t]}var Ba=function(c){var f=c.position,s=c.prefixCls,e=c.extra;if(!e)return null;var n,t=e;return f==="right"&&(n=t.right||!t.left&&t||null),f==="left"&&(n=t.left||null),n?r.createElement("div",{className:"".concat(s,"-extra-content")},n):null};function Wo(a,c){var f,s=r.useContext(va),e=s.prefixCls,n=s.tabs,t=a.className,i=a.style,l=a.id,m=a.animated,d=a.activeKey,b=a.rtl,x=a.extra,U=a.editable,L=a.locale,Y=a.tabPosition,Se=a.tabBarGutter,Be=a.children,Le=a.onTabClick,Ve=a.onTabScroll,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useRef)(),nt=Object(r.useRef)(),Xe=ba(),Dt=Object(y.a)(Xe,2),dt=Dt[0],Oe=Dt[1],Ce=Y==="top"||Y==="bottom",Ge=Wa(0,function(ft,Je){Ce&&Ve&&Ve({direction:ft>Je?"left":"right"})}),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=Wa(0,function(ft,Je){!Ce&&Ve&&Ve({direction:ft>Je?"top":"bottom"})}),ot=Object(y.a)(Ct,2),pt=ot[0],Tt=ot[1],Xt=Object(r.useState)(0),nn=Object(y.a)(Xt,2),_t=nn[0],an=nn[1],gn=Object(r.useState)(0),sn=Object(y.a)(gn,2),ln=sn[0],At=sn[1],Zt=Object(r.useState)(0),$t=Object(y.a)(Zt,2),zt=$t[0],Dn=$t[1],Pn=Object(r.useState)(0),Wn=Object(y.a)(Pn,2),Et=Wn[0],Cn=Wn[1],Bn=Object(r.useState)(null),Ot=Object(y.a)(Bn,2),ct=Ot[0],Gt=Ot[1],Xo=Object(r.useState)(null),bo=Object(y.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(y.a)(Go,2),Jo=go[0],Yo=go[1],Qo=Object(r.useState)(0),Eo=Object(y.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=O(new Map),yo=Object(y.a)(er,2),tr=yo[0],nr=yo[1],Fa=W(n,tr,_t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;Ce?b?(ga=0,Ea=Math.max(0,_t-ct)):(ga=Math.min(0,ct-_t),Ea=0):(ga=Math.min(0,na-ln),Ea=0);function ao(ft){return ftEa?[Ea,!1]:[ft,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),xo=Object(y.a)(ar,2),oo=xo[0],jo=xo[1];function ro(){jo(Date.now())}function io(){window.clearTimeout(Oo.current)}za(Fe,function(ft,Je){var Wt=!1;function un(Ca,Oa){Ca(function(xa){var ja=ao(xa+Oa),aa=Object(y.a)(ja,2),co=aa[0],fo=aa[1];return Wt=fo,co})}if(Ce){if(ct>=_t)return Wt;un(at,ft)}else{if(na>=ln)return Wt;un(Tt,Je)}return io(),ro(),Wt}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){jo(0)},100)),io},[oo]);function Mo(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Je=Fa.get(ft);if(!Je)return;if(Ce){var Wt=ve;b?Je.rightve+ct&&(Wt=Je.right+Je.width-ct):Je.left<-ve?Wt=-Je.left:Je.left+Je.width>-ve+ct&&(Wt=-(Je.left+Je.width-ct)),Tt(0),at(ao(Wt)[0])}else{var un=pt;Je.top<-pt?un=-Je.top:Je.top+Je.height>-pt+na&&(un=-(Je.top+Je.height-na)),at(0),Tt(ao(un)[0])}}var or=he(Fa,{width:ct,height:na,left:ve,top:pt},{width:zt,height:Et},{width:Jo,height:Zo},Object(j.a)(Object(j.a)({},a),{},{tabs:n})),So=Object(y.a)(or,2),rr=So[0],ir=So[1],sr=n.map(function(ft){var Je=ft.key;return r.createElement(D,{id:l,prefixCls:e,key:Je,rtl:b,tab:ft,closable:ft.closable,editable:U,active:Je===d,tabPosition:Y,tabBarGutter:Se,renderWrapper:Be,removeAriaLabel:L==null?void 0:L.removeAriaLabel,ref:dt(Je),onClick:function(un){Le(Je,un)},onRemove:function(){Oe(Je)},onFocus:function(){Mo(Je),ro(),b||(Fe.current.scrollLeft=0),Fe.current.scrollTop=0}})}),so=H(function(){var ft,Je,Wt,un,Ca,Oa,xa,ja,aa,co=((ft=Fe.current)===null||ft===void 0?void 0:ft.offsetWidth)||0,fo=((Je=Fe.current)===null||Je===void 0?void 0:Je.offsetHeight)||0,Ao=((Wt=nt.current)===null||Wt===void 0?void 0:Wt.offsetWidth)||0,Lo=((un=nt.current)===null||un===void 0?void 0:un.offsetHeight)||0,mr=((Ca=Ue.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=Ue.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Gt(co),$o(fo),Yo(Ao),qo(Lo);var Io=(((xa=ke.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-Ao,ko=(((ja=ke.current)===null||ja===void 0?void 0:ja.offsetHeight)||0)-Lo;an(Io),At(ko);var Uo=(aa=Ue.current)===null||aa===void 0?void 0:aa.className.includes(Co);Dn(Io-(Uo?0:mr)),Cn(ko-(Uo?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(hr){var zo=hr.key,Ma=dt(zo).current;Ma&&Ko.set(zo,{width:Ma.offsetWidth,height:Ma.offsetHeight,left:Ma.offsetLeft,top:Ma.offsetTop})}),Ko})}),lr=n.slice(0,rr),ur=n.slice(ir+1),To=[].concat(Object(ge.a)(lr),Object(ge.a)(ur)),cr=Object(r.useState)(),Ro=Object(y.a)(cr,2),dr=Ro[0],fr=Ro[1],_n=Fa.get(d),No=Object(r.useRef)();function Do(){pe.a.cancel(No.current)}Object(r.useEffect)(function(){var ft={};return _n&&(Ce?(b?ft.right=_n.right:ft.left=_n.left,ft.width=_n.width):(ft.top=_n.top,ft.height=_n.height)),Do(),No.current=pe()(function(){fr(ft)}),Do},[_n,Ce,b]),Object(r.useEffect)(function(){Mo()},[d,_n,Fa,Ce]),Object(r.useEffect)(function(){so()},[b,Se,d,n.map(function(ft){return ft.key}).join("_")]);var Po=!!To.length,ya="".concat(e,"-nav-wrap"),lo,uo,_o,wo;return Ce?b?(uo=ve>0,lo=ve+ct<_t):(lo=ve<0,uo=-ve+ct<_t):(_o=pt<0,wo=-pt+na1)Object(ge.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(W.length===0)return Object(ge.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=W[0];if(h.isValidElement(I)&&Object(Q.c)(I)){var he=I.ref;W[0]=h.cloneElement(I,{ref:Object(Q.a)(he,this.setChildNode)})}return W.length===1?W[0]:W.map(function(S,P){return!h.isValidElement(S)||"key"in S&&S.key!==null?S:h.cloneElement(S,{key:"".concat(oe,"-").concat(P)})})}}]),z}(h.Component);H.displayName="ResizeObserver",ee.a=H},wCXF:function(et,ee,o){"use strict";o.d(ee,"a",function(){return kt});var C=o("rePB"),y=o("VTBJ"),ce=o("KQm4"),j=o("U8pU"),r=o("ODXe"),h=o("q1tI"),F=o("TSYQ"),q=o.n(F),R=o("Gytx"),ge=o.n(R),Q=o("Kwbf"),pe=o("t23M"),oe=o("qx4F"),H=o("6eGT"),O=o("IBYe"),g=o("Ff2n"),z=o("c+Xe"),D=o("fyJ8"),k=o("biw7");function W(E,B,X,ue,be){var re=X[E]||{},ae=X[B]||{},G,te;re.fixed==="left"?G=ue.left[E]:ae.fixed==="right"&&(te=ue.right[B]);var ye=!1,fe=!1,Ee=!1,Ae=!1,je=X[B+1],ze=X[E-1];if(be==="rtl"){if(G!==void 0){var mt=ze&&ze.fixed==="left";Ae=!mt}else if(te!==void 0){var tt=je&&je.fixed==="right";Ee=!tt}}else if(G!==void 0){var ut=je&&je.fixed==="left";ye=!ut}else if(te!==void 0){var Ie=ze&&ze.fixed==="right";fe=!Ie}return{fixLeft:G,fixRight:te,lastFixLeft:ye,firstFixRight:fe,lastFixRight:Ee,firstFixLeft:Ae,isSticky:ue.isSticky}}var I=o("sR1s");function he(E){var B=E.cells,X=E.stickyOffsets,ue=E.flattenColumns,be=E.rowComponent,re=E.cellComponent,ae=E.onHeaderRow,G=E.index,te=h.useContext(k.a),ye=te.prefixCls,fe=te.direction,Ee;ae&&(Ee=ae(B.map(function(je){return je.column}),G));var Ae=Object(I.a)(B.map(function(je){return je.column}));return h.createElement(be,Object.assign({},Ee),B.map(function(je,ze){var mt=je.column,tt=W(je.colStart,je.colEnd,ue,X,fe),ut;return mt&&mt.onHeaderCell&&(ut=je.column.onHeaderCell(mt)),h.createElement(D.a,Object.assign({},je,{ellipsis:mt.ellipsis,align:mt.align,component:re,prefixCls:ye,key:Ae[ze]},tt,{additionalProps:ut,rowType:"header"}))}))}he.displayName="HeaderRow";var S=he;function P(E){var B=[];function X(ae,G){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;B[te]=B[te]||[];var ye=G,fe=ae.filter(Boolean).map(function(Ee){var Ae={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:ye},je=1,ze=Ee.children;return ze&&ze.length>0&&(je=X(ze,ye,te+1).reduce(function(mt,tt){return mt+tt},0),Ae.hasSubColumns=!0),"colSpan"in Ee&&(je=Ee.colSpan),"rowSpan"in Ee&&(Ae.rowSpan=Ee.rowSpan),Ae.colSpan=je,Ae.colEnd=Ae.colStart+je-1,B[te].push(Ae),ye+=je,je});return fe}X(E,0);for(var ue=B.length,be=function(G){B[G].forEach(function(te){!("rowSpan"in te)&&!te.hasSubColumns&&(te.rowSpan=ue-G)})},re=0;re=0;G-=1){var te=B[G],ye=X&&X[G],fe=ye&&ye[v.a];(te||fe||ae)&&(be.unshift(h.createElement("col",Object.assign({key:G,style:{width:te,minWidth:te}},fe))),ae=!0)}return h.createElement("colgroup",null,be)}var M=u;function T(E,B){return Object(h.useMemo)(function(){for(var X=[],ue=0;ue1?Jt-1:0),dn=1;dn=Ee&&(yt=Ee-Ae),ae({scrollLeft:yt/Ee*(fe+2)}),Ie.current.x=We.pageX},gt=function(){var We=Object(xt.b)(re.current).top,St=We+re.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;St-Object(oe.a)()<=Ht||We>=Ht-G?ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!0})}):ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!1})})},bt=function(We){ut(function(St){return Object(y.a)(Object(y.a)({},St),{},{scrollLeft:We/fe*Ee||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:bt}}),h.useEffect(function(){var st=Object(ht.a)(document.body,"mouseup",Ut,!1),We=Object(ht.a)(document.body,"mousemove",Ft,!1);return gt(),function(){st.remove(),We.remove()}},[Ae,vt]),h.useEffect(function(){var st=Object(ht.a)(window,"scroll",gt,!1),We=Object(ht.a)(window,"resize",gt,!1);return function(){st.remove(),We.remove()}},[]),h.useEffect(function(){tt.isHiddenScrollBar||ut(function(st){var We,St;return Object(y.a)(Object(y.a)({},st),{},{scrollLeft:re.current.scrollLeft/((We=re.current)===null||We===void 0?void 0:We.scrollWidth)*((St=re.current)===null||St===void 0?void 0:St.clientWidth)})})},[tt.isHiddenScrollBar]),fe<=Ee||!Ae||tt.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(oe.a)(),width:Ee,bottom:G},className:"".concat(ye,"-sticky-scroll")},h.createElement("div",{onMouseDown:it,ref:je,className:q()("".concat(ye,"-sticky-scroll-bar"),Object(C.a)({},"".concat(ye,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(Ae,"px"),transform:"translate3d(".concat(tt.scrollLeft,"px, 0, 0)")}}))},_e=h.forwardRef(lt);function Ke(E,B){return h.useMemo(function(){var X=!!E;return{isSticky:X,stickyClassName:X?"".concat(B,"-sticky-header"):"",offsetHeader:Object(j.a)(E)==="object"&&E.offsetHeader||0,offsetScroll:Object(j.a)(E)==="object"&&E.offsetScroll||0}},[E,B])}var It=[],Lt={},kt="rc-table-internal-hook",jt=h.memo(function(E){var B=E.children;return B},function(E,B){return ge()(E.props,B.props)?E.pingLeft!==B.pingLeft||E.pingRight!==B.pingRight:!1});function wt(E){var B,X=E.prefixCls,ue=E.className,be=E.rowClassName,re=E.style,ae=E.data,G=E.rowKey,te=E.scroll,ye=E.tableLayout,fe=E.direction,Ee=E.title,Ae=E.footer,je=E.summary,ze=E.id,mt=E.showHeader,tt=E.components,ut=E.emptyText,Ie=E.onRow,Bt=E.onHeaderRow,Mt=E.internalHooks,vt=E.transformColumns,Pt=E.internalRefs,Ut=E.sticky,it=ae||It,Ft=!!it.length,gt=h.useState(0),bt=Object(r.a)(gt,2),st=bt[0],We=bt[1];h.useEffect(function(){We(Object(oe.a)())});var St=h.useMemo(function(){return Object(I.c)(tt,{})},[tt]),Ht=h.useCallback(function(Ze,qe){return Object(I.b)(St,Ze)||qe},[St]),Vt=h.useMemo(function(){return typeof G=="function"?G:function(Ze){var qe=Ze&&Ze[G];return qe}},[G]),yt=Object(v.c)(E),wn=yt.expandIcon,An=yt.expandedRowKeys,Fn=yt.defaultExpandedRowKeys,on=yt.defaultExpandAllRows,hn=yt.expandedRowRender,On=yt.onExpand,xn=yt.onExpandedRowsChange,Hn=yt.expandRowByClick,qt=yt.rowExpandable,Ln=yt.expandIconColumnIndex,En=yt.expandedRowClassName,In=yt.childrenColumnName,jn=yt.indentSize,vn=wn||rt,Mn=In||"children",Vn=h.useMemo(function(){return hn?"row":E.expandable&&Mt===kt&&E.expandable.__PARENT_RENDER_ICON__||it.some(function(Ze){return Ze&&Object(j.a)(Ze)==="object"&&Ze[Mn]})?"nest":!1},[!!hn,it]),Sn=h.useState(function(){return Fn||(on?$e(it,Vt,Mn):[])}),Kt=Object(r.a)(Sn,2),Qt=Kt[0],rn=Kt[1],Jt=h.useMemo(function(){return new Set(An||Qt||[])},[An,Qt]),en=h.useCallback(function(Ze){var qe=Vt(Ze,it.indexOf(Ze)),Nt,Yt=Jt.has(qe);Yt?(Jt.delete(qe),Nt=Object(ce.a)(Jt)):Nt=[].concat(Object(ce.a)(Jt),[qe]),rn(Nt),On&&On(!Yt,Ze),xn&&xn(Nt)},[Vt,Jt,it,On,xn]),dn=h.useState(0),Xn=Object(r.a)(dn,2),kn=Xn[0],$n=Xn[1],Sa=Object($.b)(Object(y.a)(Object(y.a)(Object(y.a)({},E),yt),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Vt,onTriggerExpand:en,expandIcon:vn,expandIconColumnIndex:Ln,direction:fe}),Mt===kt?vt:null),Ta=Object(r.a)(Sa,2),Gn=Ta[0],Rt=Ta[1],Jn=h.useMemo(function(){return{columns:Gn,flattenColumns:Rt}},[Gn,Rt]),Yn=h.useRef(),Ra=h.useRef(),fn=h.useRef(),Ha=h.useState(!1),Na=Object(r.a)(Ha,2),oa=Na[0],Va=Na[1],Xa=h.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=_(new Map),Da=Object(r.a)(Ga,2),Ja=Da[0],Ya=Da[1],bn=Object(I.a)(Rt),ia=bn.map(function(Ze){return Ja.get(Ze)}),Pa=h.useMemo(function(){return ia},[ia.join("_")]),sa=De(Pa,Rt.length,fe),tn=te&&Object(I.d)(te.y),mn=te&&Object(I.d)(te.x),pn=mn&&Rt.some(function(Ze){var qe=Ze.fixed;return qe}),la=h.useRef(),Un=Ke(Ut,X),Kn=Un.isSticky,_a=Un.offsetHeader,Qa=Un.offsetScroll,wa=Un.stickyClassName,ua,Zn,Tn;tn&&(Zn={overflowY:"scroll",maxHeight:te.y}),mn&&(ua={overflowX:"auto"},tn||(Zn={overflowY:"hidden"}),Tn={width:te.x===!0?"auto":te.x,minWidth:"100%"});var yn=h.useCallback(function(Ze,qe){Ya(function(Nt){var Yt=new Map(Nt);return Yt.set(Ze,qe),Yt})},[]),qn=K(null),Aa=Object(r.a)(qn,2),La=Aa[0],Ia=Aa[1];function ea(Ze,qe){if(!qe)return;typeof qe=="function"?qe(Ze):qe.scrollLeft!==Ze&&(qe.scrollLeft=Ze)}var Rn=function(qe){var Nt=qe.currentTarget,Yt=qe.scrollLeft,zn=typeof Yt=="number"?Yt:Nt.scrollLeft,za=Nt||Lt;if(!Ia()||Ia()===za){var ba;La(za),ea(zn,Ra.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(y.a)(g),Object(y.a)(Q(W).map(function(I){return Object(ce.a)({fixed:k},I)}))):[].concat(Object(y.a)(g),[Object(ce.a)(Object(ce.a)({},z),{},{fixed:k})])},[])}function pe(O){for(var g=!0,z=0;z=0;W-=1){var I=O[W];if(k&&I.fixed!=="right")k=!1;else if(!k&&I.fixed==="right"){Object(F.a)(!1,"Index ".concat(W+1," of `columns` missing `fixed='right'` prop."));break}}}function oe(O){return O.map(function(g){var z=g.fixed,D=Object(j.a)(g,["fixed"]),k=z;return z==="left"?k="right":z==="right"&&(k="left"),Object(ce.a)({fixed:k},D)})}function H(O,g){var z=O.prefixCls,D=O.columns,k=O.children,W=O.expandable,I=O.expandedKeys,he=O.getRowKey,S=O.onTriggerExpand,P=O.expandIcon,w=O.rowExpandable,p=O.expandIconColumnIndex,v=O.direction,u=O.expandRowByClick,M=r.useMemo(function(){return D||ge(k)},[D,k]),T=r.useMemo(function(){if(W){var A,ne=p||0,me=M[ne],Te=(A={},Object(C.a)(A,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(C.a)(A,"title",""),Object(C.a)(A,"fixed",me?me.fixed:null),Object(C.a)(A,"className","".concat(z,"-row-expand-icon-cell")),Object(C.a)(A,"render",function(V,Me,Re){var Ne=he(Me,Re),we=I.has(Ne),J=w?w(Me):!0,$=P({prefixCls:z,expanded:we,expandable:J,record:Me,onExpand:S});return u?r.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},$):$}),A),Ye=M.slice();return ne>=0&&Ye.splice(ne,0,Te),Ye}return M},[W,M,he,I,P,v]),N=r.useMemo(function(){var A=T;return g&&(A=g(A)),A.length||(A=[{render:function(){return null}}]),A},[g,T,v]),ie=r.useMemo(function(){return v==="rtl"?oe(Q(N)):Q(N)},[N,v]);return[N,ie]}ee.b=H},"y0+3":function(et,ee,o){"use strict";o.d(ee,"a",function(){return Q}),o.d(ee,"b",function(){return oe});var C=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function j(H){return H.nodeType===1?H.ownerDocument.defaultView.getComputedStyle(H,null):{}}function r(H,O,g){if(O=O.toLowerCase(),g==="auto"){if(O==="height")return H.offsetHeight;if(O==="width")return H.offsetWidth}return O in y||(y[O]=C.test(O)),y[O]?parseFloat(g)||0:g}function h(H,O){var g=arguments.length,z=j(H);return O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,g===1?z:r(H,O,z[O]||H.style[O])}function F(H,O,g){var z=arguments.length;if(O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,z===3)return typeof g=="number"&&C.test(O)&&(g="".concat(g,"px")),H.style[O]=g,g;for(var D in O)O.hasOwnProperty(D)&&F(H,D,O[D]);return j(H)}function q(H){return H===document.body?document.documentElement.clientWidth:H.offsetWidth}function R(H){return H===document.body?window.innerHeight||document.documentElement.clientHeight:H.offsetHeight}function ge(){var H=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),O=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:H,height:O}}function Q(){var H=document.documentElement.clientWidth,O=window.innerHeight||document.documentElement.clientHeight;return{width:H,height:O}}function pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(H){var O=H.getBoundingClientRect(),g=document.documentElement;return{left:O.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:O.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); +`,ie=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],A={},ne;function me(J){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if($&&A[se])return A[se];var Z=window.getComputedStyle(J),_=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),K=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),de=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),De=ie.map(function(le){return"".concat(le,":").concat(Z.getPropertyValue(le))}).join(";"),He={sizingStyle:De,paddingSize:K,borderSize:de,boxSizing:_};return $&&se&&(A[se]=He),He}function Se(J){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),J.getAttribute("wrap")?ne.setAttribute("wrap",J.getAttribute("wrap")):ne.removeAttribute("wrap");var _=me(J,$),K=_.paddingSize,de=_.borderSize,De=_.boxSizing,He=_.sizingStyle;ne.setAttribute("style","".concat(He,";").concat(N)),ne.value=J.value||J.placeholder||"";var le=Number.MIN_SAFE_INTEGER,Pe=Number.MAX_SAFE_INTEGER,rt=ne.scrollHeight,$e;if(De==="border-box"?rt+=de:De==="content-box"&&(rt-=K),se!==null||Z!==null){ne.value=" ";var ht=ne.scrollHeight-K;se!==null&&(le=ht*se,De==="border-box"&&(le=le+K+de),rt=Math.max(le,rt)),Z!==null&&(Pe=ht*Z,De==="border-box"&&(Pe=Pe+K+de),$e=rt>Pe?"":"hidden",rt=Math.min(Pe,rt))}return{height:rt,minHeight:le,maxHeight:Pe,overflowY:$e,resize:"none"}}var Ye=o("Gytx"),xe=o.n(Ye),V;(function(J){J[J.NONE=0]="NONE",J[J.RESIZING=1]="RESIZING",J[J.RESIZED=2]="RESIZED"})(V||(V={}));var Me=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;return Object(y.a)(this,se),_=$.call(this,Z),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(K){_.textArea=K},_.handleResize=function(K){var de=_.state.resizeStatus,De=_.props,He=De.autoSize,le=De.onResize;if(de!==V.NONE)return;typeof le=="function"&&le(K),He&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var K=_.props.autoSize;if(!K||!_.textArea)return;var de=K.minRows,De=K.maxRows,He=Se(_.textArea,!1,de,De);_.setState({textareaStyles:He,resizeStatus:V.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:V.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var K=_.props,de=K.prefixCls,De=de===void 0?"rc-textarea":de,He=K.autoSize,le=K.onResize,Pe=K.className,rt=K.disabled,$e=_.state,ht=$e.textareaStyles,xt=$e.resizeStatus,lt=Object(u.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=S()(De,Pe,Object(q.a)({},"".concat(De,"-disabled"),rt));"value"in lt&&(lt.value=lt.value||"");var Ke=Object(F.a)(Object(F.a)(Object(F.a)({},_.props.style),ht),xt===V.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return h.createElement(v,{onResize:_.handleResize,disabled:!(He||le)},h.createElement("textarea",Object(C.a)({},lt,{className:_e,style:Ke,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:V.NONE},_}return Object(ce.a)(se,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!xe()(_.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,K=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,K)}}catch(de){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(h.Component),Re=Me,Ne=function(J){Object(j.a)(se,J);var $=Object(r.a)(se);function se(Z){var _;Object(y.a)(this,se),_=$.call(this,Z),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(de){_.resizableTextArea=de},_.handleChange=function(de){var De=_.props.onChange;_.setValue(de.target.value,function(){_.resizableTextArea.resizeTextarea()}),De&&De(de)},_.handleKeyDown=function(de){var De=_.props,He=De.onPressEnter,le=De.onKeyDown;de.keyCode===13&&He&&He(de),le&&le(de)};var K=typeof Z.value=="undefined"||Z.value===null?Z.defaultValue:Z.value;return _.state={value:K},_}return Object(ce.a)(se,[{key:"setValue",value:function(_,K){"value"in this.props||this.setState({value:_},K)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return h.createElement(Re,Object(C.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),se}(h.Component),we=ee.default=Ne},bT9E:function(et,ee,o){"use strict";o.d(ee,"a",function(){return y});var C=o("VTBJ");function y(ce,j){var r=Object(C.a)({},ce);return Array.isArray(j)&&j.forEach(function(h){delete r[h]}),r}},biw7:function(et,ee,o){"use strict";var C=o("q1tI"),y=o.n(C),ce=C.createContext(null);ee.a=ce},cVrb:function(et,ee,o){"use strict";o.r(ee);var C=o("DjyN"),y=o("NUBc"),ce=o("k1fw"),j=o("g9YV"),r=o("wCAj"),h=o("/zsF"),F=o("PArb"),q=o("+L6B"),R=o("2/Rp"),ge=o("9og8"),Q=o("tJVT"),pe=o("Znn+"),oe=o("ZTPi"),H=o("tU7J"),O=o("wFql"),g=o("WmNS"),z=o.n(g),D=o("q1tI"),k=o.n(D),W=o("9kvl"),I=o("ErOA"),he=o("wd/R"),T=o.n(he),P=o("xKgJ"),w=o("H84S"),p=o.n(w),v=O.a.Paragraph,u=oe.a.TabPane,M=function(N){var ie=N.dispatch,A=Object(D.useState)({limit:10,page:1,tab:"public"}),ne=Object(Q.a)(A,2),me=ne[0],Se=ne[1],Ye=Object(D.useState)([]),xe=Object(Q.a)(Ye,2),V=xe[0],Me=xe[1];Object(D.useEffect)(function(){Re()},[]);function Re(){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(ge.a)(z.a.mark(function J(){var $;return z.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(I.a)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:me});case 2:$=Z.sent,Me($);case 4:case"end":return Z.stop()}},J)})),Ne.apply(this,arguments)}var we=function($,se){if((V==null?void 0:V.my_sci_projects_num)>=10&&!Object(P.v)()){ie({type:"innovation/openSimpleModal",payload:{title:"\u9879\u76EE\u6570\u91CF\u8FBE\u5230\u4E0A\u9650",children:"\u6BCF\u4F4D\u7528\u6237\u6700\u591A\u53EA\u80FD\u521B\u5EFA10\u4E2A\u9879\u76EE\uFF0C\u4F60\u7684\u9879\u76EE\u6570\u91CF\u5DF2\u7ECF\u8FBE\u5230\u4E0A\u9650\u3002",footer:k.a.createElement(R.a,{onClick:function(){return ie({type:"innovation/closeSimpleModal"})},type:"primary"},"\u6211\u77E5\u9053\u4E86")}});return}W.d.push("/innovation/project/create?mirror_type=".concat($,"&mirror_repository_id=").concat(se,"&tab=public"))};return k.a.createElement("div",null,k.a.createElement("div",{className:p.a.header},k.a.createElement("span",{className:p.a.title},"\u516C\u5F00\u955C\u50CF\u5217\u8868")),k.a.createElement(F.a,null),k.a.createElement(r.a,{dataSource:V==null?void 0:V.sci_mirrors,columns:[{title:"\u5E8F\u53F7",dataIndex:"filename",key:"filename",render:function($,se,Z){return me.limit*(me.page-1)+Z+1}},{title:"\u955C\u50CF\u540D\u79F0",dataIndex:"name",width:"20%",ellipsis:!0,key:"name"},{title:"\u955C\u50CF\u7C7B\u578B",dataIndex:"mirror_type_cn",key:"mirror_type_cn",width:"10%",ellipsis:!0},{title:"\u955C\u50CF\u63CF\u8FF0",dataIndex:"description",key:"description",width:"20%",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:"10%",ellipsis:!0,render:function($){return T()($).format("YYYY-MM-DD HH:mm")}},{title:"\u521B\u5EFA\u8005",dataIndex:"user_name",key:"user_name",width:"10%",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",width:"20%",ellipsis:!0,render:function($,se){var Z=se.mirror_type,_=se.mirror_repository_id;return k.a.createElement("div",{className:p.a.link,onClick:function(){return we(Z,_)}},"\u521B\u5EFA\u9879\u76EE")}}],pagination:!1}),k.a.createElement(y.a,{style:{textAlign:"center",marginTop:20},current:me.page,total:V==null?void 0:V.count,showSizeChanger:!1,pageSize:10,hideOnSinglePage:!0,onChange:function($){me.page=$,Se(Object(ce.a)({},me)),Re()}}))};ee.default=Object(W.a)(function(S){var N=S.innovation;return{innovation:N}})(M)},fyJ8:function(et,ee,o){"use strict";var C=o("rePB"),y=o("VTBJ"),ce=o("Ff2n"),j=o("U8pU"),r=o("q1tI"),h=o.n(r),F=o("TSYQ"),q=o.n(F),R=o("c+Xe"),ge=o("sR1s");function Q(g){return g&&Object(j.a)(g)==="object"&&!Array.isArray(g)&&!r.isValidElement(g)}function pe(g){return typeof g=="string"?!0:Object(R.c)(g)}function oe(g,z){var D,k=g.prefixCls,W=g.className,I=g.record,he=g.index,T=g.dataIndex,P=g.render,w=g.children,p=g.component,v=p===void 0?"td":p,u=g.colSpan,M=g.rowSpan,S=g.fixLeft,N=g.fixRight,ie=g.firstFixLeft,A=g.lastFixLeft,ne=g.firstFixRight,me=g.lastFixRight,Se=g.appendNode,Ye=g.additionalProps,xe=Ye===void 0?{}:Ye,V=g.ellipsis,Me=g.align,Re=g.rowType,Ne=g.isSticky,we="".concat(k,"-cell"),J,$;if(w)$=w;else{var se=Object(ge.b)(I,T);if($=se,P){var Z=P(se,I,he);Q(Z)?($=Z.children,J=Z.props):$=Z}}Object(j.a)($)==="object"&&!Array.isArray($)&&!r.isValidElement($)&&($=null),V&&(A||ne)&&($=r.createElement("span",{className:"".concat(we,"-content")},$));var _=J||{},K=_.colSpan,de=_.rowSpan,De=_.style,He=_.className,le=Object(ce.a)(_,["colSpan","rowSpan","style","className"]),Pe=K!==void 0?K:u,rt=de!==void 0?de:M;if(Pe===0||rt===0)return null;var $e={},ht=typeof S=="number",xt=typeof N=="number";ht&&($e.position="sticky",$e.left=S),xt&&($e.position="sticky",$e.right=N);var lt={};Me&&(lt.textAlign=Me);var _e,Ke=V===!0?{showTitle:!0}:V;Ke&&(Ke.showTitle||Re==="header")&&(typeof $=="string"||typeof $=="number"?_e=$.toString():r.isValidElement($)&&typeof $.props.children=="string"&&(_e=$.props.children));var It=Object(y.a)(Object(y.a)(Object(y.a)({title:_e},le),xe),{},{colSpan:Pe&&Pe!==1?Pe:null,rowSpan:rt&&rt!==1?rt:null,className:q()(we,W,(D={},Object(C.a)(D,"".concat(we,"-fix-left"),ht),Object(C.a)(D,"".concat(we,"-fix-left-first"),ie),Object(C.a)(D,"".concat(we,"-fix-left-last"),A),Object(C.a)(D,"".concat(we,"-fix-right"),xt),Object(C.a)(D,"".concat(we,"-fix-right-first"),ne),Object(C.a)(D,"".concat(we,"-fix-right-last"),me),Object(C.a)(D,"".concat(we,"-ellipsis"),V),Object(C.a)(D,"".concat(we,"-with-append"),Se),Object(C.a)(D,"".concat(we,"-fix-sticky"),(ht||xt)&&Ne),D),xe.className,He),style:Object(y.a)(Object(y.a)(Object(y.a)(Object(y.a)({},xe.style),lt),$e),De),ref:pe(v)?z:null});return r.createElement(v,Object.assign({},It),Se,$)}var H=r.forwardRef(oe);H.displayName="Cell";var O=r.memo(H,function(g,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,g.record):!1});ee.a=O},hW8S:function(et,ee,o){"use strict";o.d(ee,"a",function(){return j}),o.d(ee,"c",function(){return r}),o.d(ee,"b",function(){return h});var C=o("VTBJ"),y=o("Ff2n"),ce=o("Kwbf"),j="RC_TABLE_INTERNAL_COL_DEFINE";function r(F){var q=F.expandable,R=Object(y.a)(F,["expandable"]);return"expandable"in F?Object(C.a)(Object(C.a)({},R),q):R}function h(F){return Object.keys(F).reduce(function(q,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(q[R]=F[R]),q},{})}},k3GJ:function(et,ee,o){"use strict";o.d(ee,"a",function(){return po});var C=o("rePB"),y=o("ODXe"),ce=o("Ff2n"),j=o("VTBJ"),r=o("q1tI"),h=o("TSYQ"),F=o.n(h),q=o("Zm9Q"),R=o("6cGi"),ge=o("KQm4"),Q=o("xEkU"),pe=o.n(Q),oe=o("t23M");function H(a){var c=Object(r.useRef)(),f=Object(r.useRef)(!1);function s(){for(var e=arguments.length,n=new Array(e),t=0;tb&&(L=b-U),Object(r.useMemo)(function(){if(!n.length)return[0,0];for(var Y=n.length,Te=Y,Be=0;Bed+L){Te=Be-1;break}}for(var Ve=0,Fe=Y-1;Fe>=0;Fe-=1){var ke=a.get(n[Fe].key)||I;if(ke[m]1&&arguments[1]!==void 0?arguments[1]:!1,s=c&&typeof c.getBoundingClientRect=="function"&&c.getBoundingClientRect().width;if(s){if(f){var e=getComputedStyle(c),n=e.marginLeft,t=e.marginRight;s+=+n.replace("px","")+ +t.replace("px","")}s=+s.toFixed(6)}return s||0},_e=function(c,f,s){c&&Object(ne.a)(c.style)==="object"&&(c.style[f]=s)},Ke=function(){return He.any},It=o("bdgK"),Lt=o("i8i4"),kt=o.n(Lt),jt=o("wgJM"),wt=o("l4aY"),cn=o("m+aA"),E=o("c+Xe"),B=o("zT1h"),X=o("QC+M");function ue(a,c,f){return f?a[0]===c[0]:a[0]===c[0]&&a[1]===c[1]}function be(a,c,f){var s=a[c]||{};return Object(j.a)(Object(j.a)({},s),f)}function re(a,c,f,s){for(var e=f.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;c();var n=Object(jt.a)(function(){e<=1?s({isCanceled:function(){return n!==a.current}}):f(s,e-1)});a.current=n}return r.useEffect(function(){return function(){c()}},[]),[f,c]},wn=[gt,bt,st,We],An=!1,Fn=!0;function on(a){return a===st||a===We}var hn=function(a,c){var f=r.useState(Ft),s=Object(y.a)(f,2),e=s[0],n=s[1],t=yt(),i=Object(y.a)(t,2),l=i[0],m=i[1];function d(){n(gt)}return Vt(function(){if(e!==Ft&&e!==We){var b=wn.indexOf(e),x=wn[b+1],U=c(e);U===An?n(x):l(function(L){function Y(){if(L.isCanceled())return;n(x)}U===!0?Y():Promise.resolve(U).then(Y)})}},[a,e]),r.useEffect(function(){return function(){m()}},[]),[d,e]},On=function(a){var c=Object(r.useRef)(),f=Object(r.useRef)(a);f.current=a;var s=r.useCallback(function(t){f.current(t)},[]);function e(t){t&&(t.removeEventListener(Bt,s),t.removeEventListener(Ie,s))}function n(t){c.current&&c.current!==t&&e(c.current),t&&t!==c.current&&(t.addEventListener(Bt,s),t.addEventListener(Ie,s),c.current=t)}return r.useEffect(function(){return function(){e(c.current)}},[]),[n,e]};function xn(a,c,f,s){var e=s.motionEnter,n=e===void 0?!0:e,t=s.motionAppear,i=t===void 0?!0:t,l=s.motionLeave,m=l===void 0?!0:l,d=s.motionDeadline,b=s.motionLeaveImmediately,x=s.onAppearPrepare,U=s.onEnterPrepare,L=s.onLeavePrepare,Y=s.onAppearStart,Te=s.onEnterStart,Be=s.onLeaveStart,Le=s.onAppearActive,Ve=s.onEnterActive,Fe=s.onLeaveActive,ke=s.onAppearEnd,Ue=s.onEnterEnd,nt=s.onLeaveEnd,Xe=s.onVisibleChanged,Dt=Tt(),dt=Object(y.a)(Dt,2),Oe=dt[0],Ce=dt[1],Ge=Tt(vt),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=Tt(null),ot=Object(y.a)(Ct,2),pt=ot[0],St=ot[1],Xt=Object(r.useRef)(!1),nn=Object(r.useRef)(null),_t=Object(r.useRef)(!1),an=Object(r.useRef)(null);function gn(){var Ot=f();return Ot||an.current}var sn=Object(r.useRef)(!1);function ln(Ot){var ct=gn();if(Ot&&!Ot.deadline&&Ot.target!==ct)return;var Gt;ve===Pt&&sn.current?Gt=ke==null?void 0:ke(ct,Ot):ve===Ut&&sn.current?Gt=Ue==null?void 0:Ue(ct,Ot):ve===it&&sn.current&&(Gt=nt==null?void 0:nt(ct,Ot)),Gt!==!1&&!_t.current&&(at(vt),St(null))}var At=On(ln),Zt=Object(y.a)(At,1),$t=Zt[0],zt=r.useMemo(function(){var Ot,ct,Gt;switch(ve){case"appear":return Ot={},Object(C.a)(Ot,gt,x),Object(C.a)(Ot,bt,Y),Object(C.a)(Ot,st,Le),Ot;case"enter":return ct={},Object(C.a)(ct,gt,U),Object(C.a)(ct,bt,Te),Object(C.a)(ct,st,Ve),ct;case"leave":return Gt={},Object(C.a)(Gt,gt,L),Object(C.a)(Gt,bt,Be),Object(C.a)(Gt,st,Fe),Gt;default:return{}}},[ve]),Dn=hn(ve,function(Ot){if(Ot===gt){var ct=zt[gt];return ct?ct(gn()):An}if(Et in zt){var Gt;St(((Gt=zt[Et])===null||Gt===void 0?void 0:Gt.call(zt,gn(),null))||null)}return Et===st&&($t(gn()),d>0&&(clearTimeout(nn.current),nn.current=setTimeout(function(){ln({deadline:!0})},d))),Fn}),Pn=Object(y.a)(Dn,2),Wn=Pn[0],Et=Pn[1],Cn=on(Et);sn.current=Cn,Vt(function(){Ce(c);var Ot=Xt.current;if(Xt.current=!0,!a)return;var ct;!Ot&&c&&i&&(ct=Pt),Ot&&c&&n&&(ct=Ut),(Ot&&!c&&m||!Ot&&b&&!c&&m)&&(ct=it),ct&&(at(ct),Wn())},[c]),Object(r.useEffect)(function(){(ve===Pt&&!i||ve===Ut&&!n||ve===it&&!m)&&at(vt)},[i,n,m]),Object(r.useEffect)(function(){return function(){clearTimeout(nn.current),_t.current=!0}},[]),Object(r.useEffect)(function(){Oe!==void 0&&ve===vt&&(Xe==null||Xe(Oe))},[Oe,ve]);var Bn=pt;return zt[gt]&&Et===bt&&(Bn=Object(j.a)({transition:"none"},Bn)),[ve,Et,Bn,Oe!=null?Oe:c]}var Hn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){return Object(P.a)(this,f),c.apply(this,arguments)}return Object(w.a)(f,[{key:"render",value:function(){return this.props.children}}]),f}(r.Component),qt=Hn;function Ln(a){var c=a;Object(ne.a)(a)==="object"&&(c=a.transitionSupport);function f(e){return!!(e.motionName&&c)}var s=r.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,l=e.removeOnLeave,m=l===void 0?!0:l,d=e.forceRender,b=e.children,x=e.motionName,U=e.leavedClassName,L=e.eventProps,Y=f(e),Te=Object(r.useRef)(),Be=Object(r.useRef)();function Le(){try{return Object(cn.a)(Te.current||Be.current)}catch(at){return null}}var Ve=xn(Y,i,Le,e),Fe=Object(y.a)(Ve,4),ke=Fe[0],Ue=Fe[1],nt=Fe[2],Xe=Fe[3],Dt=r.useRef(Xe);Xe&&(Dt.current=!0);var dt=Object(r.useRef)(n);dt.current=n;var Oe=r.useCallback(function(at){Te.current=at,Object(E.b)(dt.current,at)},[]),Ce,Ge=Object(j.a)(Object(j.a)({},L),{},{visible:i});if(!b)Ce=null;else if(ke===vt||!f(e))Xe?Ce=b(Object(j.a)({},Ge),Oe):!m&&Dt.current?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:U}),Oe):d?Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{style:{display:"none"}}),Oe):Ce=null;else{var Qe,ve;Ue===gt?ve="prepare":on(Ue)?ve="active":Ue===bt&&(ve="start"),Ce=b(Object(j.a)(Object(j.a)({},Ge),{},{className:F()(Mt(x,ke),(Qe={},Object(C.a)(Qe,Mt(x,"".concat(ke,"-").concat(ve)),ve),Object(C.a)(Qe,x,typeof x=="string"),Qe)),style:nt}),Oe)}return r.createElement(qt,{ref:Be},Ce)});return s.displayName="CSSMotion",s}var En=Ln(ut),In="add",jn="keep",vn="remove",Mn="removed";function Vn(a){var c;return a&&Object(ne.a)(a)==="object"&&"key"in a?c=a:c={key:a},Object(j.a)(Object(j.a)({},c),{},{key:String(c.key)})}function Tn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Kt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=[],s=0,e=c.length,n=Tn(a),t=Tn(c);n.forEach(function(m){for(var d=!1,b=s;b1});return l.forEach(function(m){f=f.filter(function(d){var b=d.key,x=d.status;return b!==m||x!==vn}),f.forEach(function(d){d.key===m&&(d.status=jn)})}),f}var Qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rn(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,f=function(s){Object(v.a)(n,s);var e=Object(u.a)(n);function n(){var t;return Object(P.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(l){var m=l.keyEntities;return{keyEntities:m.map(function(d){return d.key!==i?d:Object(j.a)(Object(j.a)({},d),{},{status:Mn})})}})},t}return Object(w.a)(n,[{key:"render",value:function(){var i=this,l=this.state.keyEntities,m=this.props,d=m.component,b=m.children,x=m.onVisibleChanged,U=Object(ce.a)(m,["component","children","onVisibleChanged"]),L=d||r.Fragment,Y={};return Qt.forEach(function(Te){Y[Te]=U[Te],delete U[Te]}),delete U.keys,r.createElement(L,U,l.map(function(Te){var Be=Te.status,Le=Object(ce.a)(Te,["status"]),Ve=Be===In||Be===jn;return r.createElement(c,Object(T.a)({},Y,{key:Le.key,visible:Ve,eventProps:Le,onVisibleChanged:function(ke){x==null||x(ke,{key:Le.key}),ke||i.removeKey(Le.key)}}),b)}))}}],[{key:"getDerivedStateFromProps",value:function(i,l){var m=i.keys,d=l.keyEntities,b=Tn(m),x=Kt(d,b);return{keyEntities:x.filter(function(U){var L=d.find(function(Y){var Te=Y.key;return U.key===Te});return!(L&&L.status===Mn&&U.status===vn)})}}}]),n}(r.Component);return f.defaultProps={component:"div"},f}var Jt=rn(ut),en=En;function dn(a){var c=a.prefixCls,f=a.motion,s=a.animation,e=a.transitionName;return f||(s?{motionName:"".concat(c,"-").concat(s)}:e?{motionName:e}:null)}function Xn(a){var c=a.prefixCls,f=a.visible,s=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var l={};return(n||i||t)&&(l=Object(j.a)({motionAppear:!0},dn({motion:n,prefixCls:c,transitionName:i,animation:t}))),r.createElement(en,Object(T.a)({},l,{visible:f,removeOnLeave:!0}),function(m){var d=m.className;return r.createElement("div",{style:{zIndex:s},className:F()("".concat(c,"-mask"),d)})})}var kn=o("9mu1"),$n=o("o0o1"),Ta=o.n($n),Sa=o("HaE+"),Gn=["measure","align",null,"motion"],Rt=function(a,c){var f=Object(r.useState)(null),s=Object(y.a)(f,2),e=s[0],n=s[1],t=Object(r.useRef)(),i=Object(r.useRef)(!1);function l(b){i.current||n(b)}function m(){jt.a.cancel(t.current)}function d(b){m(),t.current=Object(jt.a)(function(){l(function(x){switch(e){case"align":return"motion";case"motion":return"stable";default:}return x}),b==null||b()})}return Object(r.useEffect)(function(){l("measure")},[a]),Object(r.useEffect)(function(){switch(e){case"measure":c();break;default:}e&&(t.current=Object(jt.a)(Object(Sa.a)(Ta.a.mark(function b(){var x,U;return Ta.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:x=Gn.indexOf(e),U=Gn[x+1],U&&x!==-1&&l(U);case 3:case"end":return Y.stop()}},b)}))))},[e]),Object(r.useEffect)(function(){return function(){i.current=!0,m()}},[]),[e,d]},Jn=function(a){var c=r.useState({width:0,height:0}),f=Object(y.a)(c,2),s=f[0],e=f[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=r.useMemo(function(){var i={};if(a){var l=s.width,m=s.height;a.indexOf("height")!==-1&&m?i.height=m:a.indexOf("minHeight")!==-1&&m&&(i.minHeight=m),a.indexOf("width")!==-1&&l?i.width=l:a.indexOf("minWidth")!==-1&&l&&(i.minWidth=l)}return i},[a,s]);return[t,n]},Yn=r.forwardRef(function(a,c){var f=a.visible,s=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,l=a.stretch,m=a.destroyPopupOnHide,d=a.forceRender,b=a.align,x=a.point,U=a.getRootDomNode,L=a.getClassNameFromAlign,Y=a.onAlign,Te=a.onMouseEnter,Be=a.onMouseLeave,Le=a.onMouseDown,Ve=a.onTouchStart,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useState)(),nt=Object(y.a)(Ue,2),Xe=nt[0],Dt=nt[1],dt=Jn(l),Oe=Object(y.a)(dt,2),Ce=Oe[0],Ge=Oe[1];function Qe(){l&&Ge(U())}var ve=Rt(f,Qe),at=Object(y.a)(ve,2),Ct=at[0],ot=at[1],pt=Object(r.useRef)();function St(){return x||U}function Xt(){var At;(At=Fe.current)===null||At===void 0||At.forceAlign()}function nn(At,Zt){var $t=L(Zt);Xe!==$t&&Dt($t),Ct==="align"&&(Xe!==$t?Promise.resolve().then(function(){Xt()}):ot(function(){var zt;(zt=pt.current)===null||zt===void 0||zt.call(pt)}),Y==null||Y(At,Zt))}var _t=Object(j.a)({},dn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(At){var Zt=_t[At];_t[At]=function($t,zt){return ot(),Zt==null?void 0:Zt($t,zt)}});function an(){return new Promise(function(At){pt.current=At})}r.useEffect(function(){!_t.motionName&&Ct==="motion"&&ot()},[_t.motionName,Ct]),r.useImperativeHandle(c,function(){return{forceAlign:Xt,getElement:function(){return ke.current}}});var gn=Object(j.a)(Object(j.a)({},Ce),{},{zIndex:i,opacity:Ct==="motion"||Ct==="stable"||!f?void 0:0,pointerEvents:Ct==="stable"?void 0:"none"},n),sn=!0;(b==null?void 0:b.points)&&(Ct==="align"||Ct==="stable")&&(sn=!1);var ln=t;return r.Children.count(t)>1&&(ln=r.createElement("div",{className:"".concat(s,"-content")},t)),r.createElement(en,Object(T.a)({visible:f,ref:ke,leavedClassName:"".concat(s,"-hidden")},_t,{onAppearPrepare:an,onEnterPrepare:an,removeOnLeave:m,forceRender:d}),function(At,Zt){var $t=At.className,zt=At.style,Dn=F()(s,e,Xe,$t);return r.createElement(kn.a,{target:St(),key:"popup",ref:Fe,monitorWindowResize:!0,disabled:sn,align:b,onAlign:nn},r.createElement("div",{ref:Zt,className:Dn,onMouseEnter:Te,onMouseLeave:Be,onMouseDownCapture:Le,onTouchStartCapture:Ve,style:Object(j.a)(Object(j.a)({},zt),gn)},ln))})});Yn.displayName="PopupInner";var Ra=Yn,fn=r.forwardRef(function(a,c){var f=a.prefixCls,s=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,l=t.popupStyle,m=t.popupMotion,d=m===void 0?{}:m,b=t.popupRender,x=r.useRef();r.useImperativeHandle(c,function(){return{forceAlign:function(){},getElement:function(){return x.current}}});var U=Object(j.a)({zIndex:e},l),L=n;return r.Children.count(n)>1&&(L=r.createElement("div",{className:"".concat(f,"-content")},n)),b&&(L=b(L)),r.createElement(en,Object(T.a)({visible:s,ref:x,removeOnLeave:!0},d),function(Y,Te){var Be=Y.className,Le=Y.style,Ve=F()(f,i,Be);return r.createElement("div",{ref:Te,className:Ve,style:Object(j.a)(Object(j.a)({},Le),U)},L)})});fn.displayName="MobilePopupInner";var Ha=fn,Na=["visible","mobile"],oa=r.forwardRef(function(a,c){var f=a.visible,s=a.mobile,e=Object(ce.a)(a,Na),n=Object(r.useState)(f),t=Object(y.a)(n,2),i=t[0],l=t[1],m=Object(r.useState)(!1),d=Object(y.a)(m,2),b=d[0],x=d[1],U=Object(j.a)(Object(j.a)({},e),{},{visible:i});Object(r.useEffect)(function(){l(f),f&&s&&x(ae())},[f,s]);var L=b?r.createElement(Ha,Object(T.a)({},U,{mobile:s,ref:c})):r.createElement(Ra,Object(T.a)({},U,{ref:c}));return r.createElement("div",null,r.createElement(Xn,U),L)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var c=function(f){Object(v.a)(e,f);var s=Object(u.a)(e);function e(n){var t;Object(P.a)(this,e),t=s.call(this,n),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(l){var m=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",l),t.delaySetPopupVisible(!0,m,m?null:l)},t.onMouseMove=function(l){t.fireEvents("onMouseMove",l),t.setPoint(l)},t.onMouseLeave=function(l){t.fireEvents("onMouseLeave",l),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(l){var m;if(l.relatedTarget&&!l.relatedTarget.setTimeout&&Object(wt.a)((m=t.popupRef.current)===null||m===void 0?void 0:m.getElement(),l.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(l){t.fireEvents("onFocus",l),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(l){t.fireEvents("onMouseDown",l),t.preClickTime=Date.now()},t.onTouchStart=function(l){t.fireEvents("onTouchStart",l),t.preTouchTime=Date.now()},t.onBlur=function(l){t.fireEvents("onBlur",l),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(l){l.preventDefault(),t.fireEvents("onContextMenu",l),t.setPopupVisible(!0,l)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(l){if(t.fireEvents("onClick",l),t.focusTime){var m;if(t.preClickTime&&t.preTouchTime?m=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?m=t.preClickTime:t.preTouchTime&&(m=t.preTouchTime),Math.abs(m-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var d=!t.state.popupVisible;(t.isClickToHide()&&!d||d&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,l)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var l;(l=t.context).onPopupMouseDown.apply(l,arguments)}},t.onDocumentClick=function(l){if(t.props.mask&&!t.props.maskClosable)return;var m=l.target,d=t.getRootDomNode(),b=t.getPopupDomNode();(!Object(wt.a)(d,m)||t.isContextMenuOnly())&&!Object(wt.a)(b,m)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var l=t.props.getTriggerDOMNode;if(l)return l(t.triggerRef.current);try{var m=Object(cn.a)(t.triggerRef.current);if(m)return m}catch(d){}return kt.a.findDOMNode(Object(p.a)(t))},t.getPopupClassNameFromAlign=function(l){var m=[],d=t.props,b=d.popupPlacement,x=d.builtinPlacements,U=d.prefixCls,L=d.alignPoint,Y=d.getPopupClassNameFromAlign;return b&&x&&m.push(re(x,U,l,L)),Y&&m.push(Y(l)),m.join(" ")},t.getComponent=function(){var l=t.props,m=l.prefixCls,d=l.destroyPopupOnHide,b=l.popupClassName,x=l.onPopupAlign,U=l.popupMotion,L=l.popupAnimation,Y=l.popupTransitionName,Te=l.popupStyle,Be=l.mask,Le=l.maskAnimation,Ve=l.maskTransitionName,Fe=l.maskMotion,ke=l.zIndex,Ue=l.popup,nt=l.stretch,Xe=l.alignPoint,Dt=l.mobile,dt=l.forceRender,Oe=t.state,Ce=Oe.popupVisible,Ge=Oe.point,Qe=t.getPopupAlign(),ve={};return t.isMouseEnterToShow()&&(ve.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ve.onMouseLeave=t.onPopupMouseLeave),ve.onMouseDown=t.onPopupMouseDown,ve.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(T.a)({prefixCls:m,destroyPopupOnHide:d,visible:Ce,point:Xe&&Ge,className:b,align:Qe,onAlign:x,animation:L,getClassNameFromAlign:t.getPopupClassNameFromAlign},ve,{stretch:nt,getRootDomNode:t.getRootDomNode,style:Te,mask:Be,zIndex:ke,transitionName:Y,maskAnimation:Le,maskTransitionName:Ve,maskMotion:Fe,ref:t.popupRef,motion:U,mobile:Dt,forceRender:dt}),typeof Ue=="function"?Ue():Ue)},t.attachParent=function(l){jt.a.cancel(t.attachId);var m=t.props,d=m.getPopupContainer,b=m.getDocument,x=t.getRootDomNode(),U;d?(x||d.length===0)&&(U=d(x)):U=b(t.getRootDomNode()).body,U?U.appendChild(l):t.attachId=Object(jt.a)(function(){t.attachParent(l)})},t.getContainer=function(){var l=t.props.getDocument,m=l(t.getRootDomNode()).createElement("div");return m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.width="100%",t.attachParent(m),m},t.setPoint=function(l){var m=t.props.alignPoint;if(!m||!l)return;t.setState({point:{pageX:l.pageX,pageY:l.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Da.forEach(function(l){t["fire".concat(l)]=function(m){t.fireEvents(l,m)}}),t}return Object(w.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(B.a)(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(B.a)(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(B.a)(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(B.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,l=t.popupAlign,m=t.builtinPlacements;return i&&m?be(m,i,l):l}},{key:"setPopupVisible",value:function(t,i){var l=this.props.alignPoint,m=this.state.popupVisible;this.clearDelayTimer(),m!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:m}),this.props.onPopupVisibleChange(t)),l&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,l){var m=this,d=i*1e3;if(this.clearDelayTimer(),d){var b=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){m.setPopupVisible(t,b),m.clearDelayTimer()},d)}else this.setPopupVisible(t,l)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var i=this.props.children.props,l=this.props;return i[t]&&l[t]?this["fire".concat(t)]:i[t]||l[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,l=t.showAction;return i.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,l=t.hideAction;return i.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var l=this.props.children.props[t];l&&l(i);var m=this.props[t];m&&m(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,l=i.children,m=i.forceRender,d=i.alignPoint,b=i.className,x=i.autoDestroy,U=r.Children.only(l),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,d&&(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 Y=F()(U&&U.props&&U.props.className,b);Y&&(L.className=Y);var Te=Object(j.a)({},L);Object(E.c)(U)&&(Te.ref=Object(E.a)(this.triggerRef,U.ref));var Be=r.cloneElement(U,Te),Le;return(t||this.popupRef.current||m)&&(Le=r.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&x&&(Le=null),r.createElement(ra.Provider,{value:this.triggerContextValue},Be,Le)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l=t.popupVisible,m={};return l!==void 0&&i.popupVisible!==l&&(m.popupVisible=l,m.prevPopupVisible=i.popupVisible),m}}]),e}(r.Component);return c.contextType=ra,c.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},c}var Ya=Ja(X.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,tn=0,mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(c,f,s){var e=rt(f),n=c.getState();c.setState({defaultActiveFirst:Object(j.a)(Object(j.a)({},n.defaultActiveFirst),{},Object(C.a)({},e,s))})},la=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onDestroy=function(d){e.props.onDestroy(d)},e.onKeyDown=function(d){var b=d.keyCode,x=e.menuInstance,U=e.props.store,L=e.getVisible();if(b===g.a.ENTER)return e.onTitleClick(d),pn(U,e.props.eventKey,!0),!0;if(b===g.a.RIGHT)return L?x.onKeyDown(d):(e.triggerOpenChange(!0),pn(U,e.props.eventKey,!0)),!0;if(b===g.a.LEFT){var Y;if(L)Y=x.onKeyDown(d);else return;return Y||(e.triggerOpenChange(!1),Y=!0),Y}return L&&(b===g.a.UP||b===g.a.DOWN)?x.onKeyDown(d):void 0},e.onOpenChange=function(d){e.props.onOpenChange(d)},e.onPopupVisibleChange=function(d){e.triggerOpenChange(d,d?"mouseenter":"mouseleave")},e.onMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onMouseEnter,L=b.store;pn(L,e.props.eventKey,!1),U({key:x,domEvent:d})},e.onMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,domEvent:d})},e.onTitleMouseEnter=function(d){var b=e.props,x=b.eventKey,U=b.onItemHover,L=b.onTitleMouseEnter;U({key:x,hover:!0}),L({key:x,domEvent:d})},e.onTitleMouseLeave=function(d){var b=e.props,x=b.parentMenu,U=b.eventKey,L=b.onItemHover,Y=b.onTitleMouseLeave;x.subMenuInstance=Object(p.a)(e),L({key:U,hover:!1}),Y({key:U,domEvent:d})},e.onTitleClick=function(d){var b=Object(p.a)(e),x=b.props;if(x.onTitleClick({key:x.eventKey,domEvent:d}),x.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(x.store,e.props.eventKey,!1)},e.onSubMenuClick=function(d){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(d))},e.onSelect=function(d){e.props.onSelect(d)},e.onDeselect=function(d){e.props.onDeselect(d)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(d){e.menuInstance=d},e.addKeyPath=function(d){return Object(j.a)(Object(j.a)({},d),{},{keyPath:(d.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(d,b){var x=e.props.eventKey,U=function(){e.onOpenChange({key:x,item:Object(p.a)(e),trigger:b,open:d})};b==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){U()},0):U()},e.isChildrenSelected=function(){var d={find:!1};return ht(e.props.children,e.props.selectedKeys,d),d.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var d=Lt.findDOMNode(e.menuInstance);if(d.offsetWidth>=e.subMenuTitle.offsetWidth)return;d.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(d){e.subMenuTitle=d},e.getBaseProps=function(){var d=Object(p.a)(e),b=d.props,x=e.getMode();return{mode:x==="horizontal"?"vertical":x,visible:e.getVisible(),level:b.level+1,inlineIndent:b.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:b.selectedKeys,eventKey:"".concat(b.eventKey,"-menu-"),openKeys:b.openKeys,motion:b.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:b.subMenuOpenDelay,parentMenu:Object(p.a)(e),subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,triggerSubMenuAction:b.triggerSubMenuAction,builtinPlacements:b.builtinPlacements,defaultActiveFirst:b.store.getState().defaultActiveFirst[rt(b.eventKey)],multiple:b.multiple,prefixCls:b.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:b.itemIcon,expandIcon:b.expandIcon,direction:b.direction}},e.getMotion=function(d,b){var x=Object(p.a)(e),U=x.haveRendered,L=e.props,Y=L.motion,Te=L.rootPrefixCls,Be=Object(j.a)(Object(j.a)({},Y),{},{leavedClassName:"".concat(Te,"-hidden"),removeOnLeave:!1,motionAppear:U||!b||d!=="inline"});return Be};var n=s.store,t=s.eventKey,i=n.getState(),l=i.defaultActiveFirst;e.isRootMenu=!1;var m=!1;return l&&(m=l[t]),pn(n,t,m),e.state={mode:s.mode,isOpen:s.isOpen},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,l=n.manualRef,m=n.isOpen,d=function(){e.setState({mode:t,isOpen:m})},b=m!==this.state.isOpen,x=t!==this.state.mode;if((x||b)&&(jt.a.cancel(this.updateStateRaf),x?this.updateStateRaf=Object(jt.a)(d):d()),l&&l(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!m)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return r.createElement(ea,Object(T.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,l=n.forceSubMenuRender,m=n.direction,d=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||l,!this.haveOpened)return r.createElement("div",null);var b=F()("".concat(n.prefixCls,"-sub"),Object(C.a)({},"".concat(n.prefixCls,"-rtl"),m==="rtl"));return this.isInlineMode()?r.createElement(en,Object(T.a)({visible:n.visible,forceRender:l},d),function(x){var U=x.className,L=x.style,Y=F()(b,U);return e.renderPopupMenu(Y,L)}):this.renderPopupMenu(b)}},{key:"render",value:function(){var e,n,t,i=Object(j.a)({},this.props),l=this.getVisible(),m=this.getPrefixCls(),d=this.isInlineMode(),b=this.getMode(),x=F()(m,"".concat(m,"-").concat(b),(e={},Object(C.a)(e,i.className,!!i.className),Object(C.a)(e,this.getOpenClassName(),l),Object(C.a)(e,this.getActiveClassName(),i.active||l&&!d),Object(C.a)(e,this.getDisabledClassName(),i.disabled),Object(C.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(tn+=1,this.internalMenuId="$__$".concat(tn,"$Menu")));var U={},L={},Y={};i.disabled||(U={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},L={onClick:this.onTitleClick},Y={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Te={},Be=i.direction,Le=Be==="rtl";d&&(Le?Te.paddingRight=i.inlineIndent*i.level:Te.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var Fe=null;b!=="horizontal"&&(Fe=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Fe=r.createElement(this.props.expandIcon,Object(j.a)({},this.props))));var ke=r.createElement("div",Object(T.a)({ref:this.saveSubMenuTitle,style:Te,className:"".concat(m,"-title"),role:"button"},Y,L,{"aria-expanded":l},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,Fe||r.createElement("i",{className:"".concat(m,"-arrow")})),Ue=this.renderChildren(),nt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(St){return St.parentNode},Xe=mn[b],Dt=i.popupOffset?{offset:i.popupOffset}:{},dt=F()((t={},Object(C.a)(t,i.popupClassName,i.popupClassName&&!d),Object(C.a)(t,"".concat(m,"-rtl"),Le),t)),Oe=i.disabled,Ce=i.triggerSubMenuAction,Ge=i.subMenuOpenDelay,Qe=i.forceSubMenuRender,ve=i.subMenuCloseDelay,at=i.builtinPlacements;xt.forEach(function(St){return delete i[St]}),delete i.onClick;var Ct=Le?Object(j.a)(Object(j.a)({},Pa),at):Object(j.a)(Object(j.a)({},ia),at);delete i.direction;var ot=this.getBaseProps(),pt=d?null:this.getMotion(ot.mode,ot.visible);return r.createElement("li",Object(T.a)({},i,U,{className:x,role:"menuitem"}),r.createElement(Ya,{prefixCls:m,popupClassName:F()("".concat(m,"-popup"),dt),getPopupContainer:nt,builtinPlacements:Ct,popupPlacement:Xe,popupVisible:d?!1:l,popupAlign:Dt,popup:d?null:Ue,action:Oe||d?[]:[Ce],mouseEnterDelay:Ge,mouseLeaveDelay:ve,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Qe,popupMotion:pt},ke),d?Ue:null)}}]),f}(r.Component);la.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Un=Object(M.b)(function(a,c){var f=a.openKeys,s=a.activeKey,e=a.selectedKeys,n=c.eventKey,t=c.subMenuKey;return{isOpen:f.indexOf(n)>-1,active:s[t]===n,selectedKeys:e}})(la);Un.isSubMenu=!0;var Kn=Un,_a="menuitem-overflowed",Qa=.5,wa=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.resizeObserver=null,s.mutationObserver=null,s.originalTotalWidth=0,s.overflowedItems=[],s.menuItemSizes=[],s.cancelFrameId=null,s.state={lastVisibleIndex:void 0},s.childRef=r.createRef(),s.getMenuItemNodes=function(){var e=s.props.prefixCls,n=s.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},s.getOverflowedSubMenuItem=function(e,n,t){var i=s.props,l=i.overflowedIndicator,m=i.level,d=i.mode,b=i.prefixCls,x=i.theme;if(m!==1||d!=="horizontal")return null;var U=s.props.children[0],L=U.props,Y=L.children,Te=L.title,Be=L.style,Le=Object(ce.a)(L,["children","title","style"]),Ve=Object(j.a)({},Be),Fe="".concat(e,"-overflowed-indicator"),ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(j.a)(Object(j.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(j.a)(Object(j.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),Fe="".concat(Fe,"-placeholder"),ke="".concat(ke,"-placeholder"));var Ue=x?"".concat(b,"-").concat(x):"",nt={};return xt.forEach(function(Xe){Le[Xe]!==void 0&&(nt[Xe]=Le[Xe])}),r.createElement(Kn,Object(T.a)({title:l,className:"".concat(b,"-overflowed-submenu"),popupClassName:Ue},nt,{key:Fe,eventKey:ke,disabled:!1,style:Ve}),n)},s.setChildrenWidthAndResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];_e(t,"display","inline-block");var i=s.getMenuItemNodes(),l=i.filter(function(m){return m.className.split(" ").indexOf(_a)>=0});l.forEach(function(m){_e(m,"display","inline-block")}),s.menuItemSizes=i.map(function(m){return lt(m,!0)}),l.forEach(function(m){_e(m,"display","none")}),s.overflowedIndicatorWidth=lt(e.children[e.children.length-1],!0),s.originalTotalWidth=s.menuItemSizes.reduce(function(m,d){return m+d},0),s.handleResize(),_e(t,"display","none")},s.handleResize=function(){if(s.props.mode!=="horizontal")return;var e=s.childRef.current;if(!e)return;var n=lt(e);s.overflowedItems=[];var t=0,i;s.originalTotalWidth>n+Qa&&(i=-1,s.menuItemSizes.forEach(function(l){t+=l,t+s.overflowedIndicatorWidth<=n&&(i+=1)})),s.setState({lastVisibleIndex:i})},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new It.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,l,m){var d=l;if(n.props.mode==="horizontal"){var b=n.getOverflowedSubMenuItem(l.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(m>t&&(d=r.cloneElement(l,{style:{display:"none"},eventKey:"".concat(l.props.eventKey,"-hidden"),className:"".concat(_a)})),m===t+1&&(n.overflowedItems=e.slice(t+1).map(function(U){return r.cloneElement(U,{key:U.props.eventKey,mode:"vertical-left"})}),b=n.getOverflowedSubMenuItem(l.props.eventKey,n.overflowedItems)));var x=[].concat(Object(ge.a)(i),[b,d]);return m===e.length-1&&x.push(n.getOverflowedSubMenuItem(l.props.eventKey,[],!0)),x}return[].concat(Object(ge.a)(i),[d])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,l=e.mode,m=e.level,d=e.tag,b=e.children,x=e.theme,U=Object(ce.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),L=d;return r.createElement(L,Object(T.a)({ref:this.childRef},U),this.renderChildren(b))}}]),f}(r.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(c){return!!c.props.disabled}):!0}function Sn(a,c,f){var s=a.getState();a.setState({activeKey:Object(j.a)(Object(j.a)({},s.activeKey),{},Object(C.a)({},c,f))})}function yn(a){return a.eventKey||"0-menu-"}function qn(a,c){var f=c,s=a.children,e=a.eventKey;if(f){var n;if($e(s,function(t,i){t&&t.props&&!t.props.disabled&&f===Pe(t,e,i)&&(n=!0)}),n)return f}return f=null,a.defaultActiveFirst&&$e(s,function(t,i){!f&&t&&!t.props.disabled&&(f=Pe(t,e,i))}),f}function Aa(a){if(!a)return;var c=this.instanceArray.indexOf(a);c!==-1?this.instanceArray[c]=a:this.instanceArray.push(a)}var La=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;return Object(P.a)(this,f),e=c.call(this,s),e.onKeyDown=function(n,t){var i=n.keyCode,l;if(e.getFlatInstanceArray().forEach(function(d){d&&d.props.active&&d.onKeyDown&&(l=d.onKeyDown(n))}),l)return 1;var m=null;return(i===g.a.UP||i===g.a.DOWN)&&(m=e.step(i===g.a.UP?-1:1)),m?(n.preventDefault(),Sn(e.props.store,yn(e.props),m.props.eventKey),typeof t=="function"&&t(m),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Sn(e.props.store,yn(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[yn(e.props)],l=t.length;if(!l)return null;n<0&&(t=t.concat().reverse());var m=-1;if(t.every(function(U,L){return U&&U.props.eventKey===i?(m=L,!1):!0}),!e.props.defaultActiveFirst&&m!==-1&&Zn(t.slice(m,l-1)))return;var d=(m+1)%l,b=d;do{var x=t[b];if(!x||x.props.disabled)b=(b+1)%l;else return x}while(b!==d);return null},e.renderCommonMenuItem=function(n,t,i){var l=e.props.store.getState(),m=Object(p.a)(e),d=m.props,b=Pe(n,d.eventKey,t),x=n.props;if(!x||typeof n.type=="string")return n;var U=b===l.activeKey,L=Object(j.a)(Object(j.a)({mode:x.mode||d.mode,level:d.level,inlineIndent:d.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:d.prefixCls,index:t,parentMenu:d.parentMenu,manualRef:x.disabled?void 0:Object(N.a)(n.ref,Aa.bind(Object(p.a)(e))),eventKey:b,active:!x.disabled&&U,multiple:d.multiple,onClick:function(Te){(x.onClick||le)(Te),e.onClick(Te)},onItemHover:e.onItemHover,motion:d.motion,subMenuOpenDelay:d.subMenuOpenDelay,subMenuCloseDelay:d.subMenuCloseDelay,forceSubMenuRender:d.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:d.builtinPlacements,itemIcon:x.itemIcon||e.props.itemIcon,expandIcon:x.expandIcon||e.props.expandIcon},i),{},{direction:d.direction});return(d.mode==="inline"||Ke())&&(L.triggerSubMenuAction="click"),r.cloneElement(n,Object(j.a)(Object(j.a)({},L),{},{key:b||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var l=e.props.store.getState(),m={openKeys:l.openKeys,selectedKeys:l.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,m)},s.store.setState({activeKey:Object(j.a)(Object(j.a)({},s.store.getState().activeKey),{},Object(C.a)({},s.eventKey,qn(s,s.activeKey)))}),e.instanceArray=[],e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!A()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[yn(n)],i=qn(n,t);if(i!==t)Sn(n.store,yn(n),i);else if("activeKey"in e){var l=qn(e,e.activeKey);i!==l&&Sn(n.store,yn(n),i)}}},{key:"render",value:function(){var e=this,n=Object(T.a)({},this.props);this.instanceArray=[];var t=F()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var l=n.prefixCls,m=n.eventKey,d=n.visible,b=n.level,x=n.mode,U=n.overflowedIndicator,L=n.theme;return xt.forEach(function(Y){return delete n[Y]}),delete n.onClick,r.createElement(ua,Object(T.a)({},n,{prefixCls:l,mode:x,tag:"ul",level:b,theme:L,visible:d,overflowedIndicator:U},i),Object(q.a)(n.children).map(function(Y,Te){return e.renderMenuItem(Y,Te,m||"0-menu-")}))}}]),f}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var Ia=Object(M.b)()(La),ea=Ia,Rn=o("Kwbf");function ca(a,c,f){var s=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,l=a.openTransitionName,m=c.switchingModeFromInline;if(e)return e;if(Object(ne.a)(i)==="object"&&i)Object(Rn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(s,"-open-").concat(i)};if(l)return{motionName:l};var d=t[f];return d||(m?null:t.other)}var ka=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(s){var e;Object(P.a)(this,f),e=c.call(this,s),e.onSelect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState(),b=d.selectedKeys,x=i.key;m.multiple?b=b.concat([x]):b=[x],"selectedKeys"in m||e.store.setState({selectedKeys:b}),m.onSelect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:b}))}},e.onClick=function(i){var l=e.getRealMenuMode(),m=Object(p.a)(e),d=m.store,b=m.props.onOpenChange;l!=="inline"&&!("openKeys"in e.props)&&(d.setState({openKeys:[]}),b([])),e.props.onClick(i)},e.onKeyDown=function(i,l){e.innerMenu.getWrappedInstance().onKeyDown(i,l)},e.onOpenChange=function(i){var l=Object(p.a)(e),m=l.props,d=e.store.getState().openKeys.concat(),b=!1,x=function(L){var Y=!1;if(L.open)Y=d.indexOf(L.key)===-1,Y&&d.push(L.key);else{var Te=d.indexOf(L.key);Y=Te!==-1,Y&&d.splice(Te,1)}b=b||Y};Array.isArray(i)?i.forEach(x):x(i),b&&("openKeys"in e.props||e.store.setState({openKeys:d}),m.onOpenChange(d))},e.onDeselect=function(i){var l=Object(p.a)(e),m=l.props;if(m.selectable){var d=e.store.getState().selectedKeys.concat(),b=i.key,x=d.indexOf(b);x!==-1&&d.splice(x,1),"selectedKeys"in m||e.store.setState({selectedKeys:d}),m.onDeselect(Object(j.a)(Object(j.a)({},i),{},{selectedKeys:d}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var l=e.props.onMouseEnter;l&&l(i)},e.onTransitionEnd=function(i){var l=i.propertyName==="width"&&i.target===i.currentTarget,m=i.target.className,d=Object.prototype.toString.call(m)==="[object SVGAnimatedString]"?m.animVal:m,b=i.propertyName==="font-size"&&d.indexOf("anticon")>=0;(l||b)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=s.defaultSelectedKeys,t=s.defaultOpenKeys;return"selectedKeys"in s&&(n=s.selectedKeys||[]),"openKeys"in s&&(t=s.openKeys||[]),e.store=Object(M.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(s,s.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:s,inlineOpenKeys:[],store:e.store},e}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,l=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&l([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(j.a)({},Object(S.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(j.a)(Object(j.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(M.a,{store:this.store},r.createElement(ea,Object(T.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,l=i.getState(),m={},d={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(d.switchingModeFromInline=!0),"openKeys"in e?m.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(d.switchingModeFromInline=!0,d.inlineOpenKeys=l.openKeys,m.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(m.openKeys=n.inlineOpenKeys,d.inlineOpenKeys=[])),Object.keys(m).length&&i.setState(m),d}}]),f}(r.Component);ka.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ua=ka,Nn=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(s.onClick(e),!0):void 0},s.onMouseLeave=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseLeave;i({key:t,hover:!1}),l({key:t,domEvent:e})},s.onMouseEnter=function(e){var n=s.props,t=n.eventKey,i=n.onItemHover,l=n.onMouseEnter;i({key:t,hover:!0}),l({key:t,domEvent:e})},s.onClick=function(e){var n=s.props,t=n.eventKey,i=n.multiple,l=n.onClick,m=n.onSelect,d=n.onDeselect,b=n.isSelected,x={key:t,keyPath:[t],item:Object(p.a)(s),domEvent:e};l(x),i?b?d(x):m(x):b||m(x)},s.saveNode=function(e){s.node=e},s}return Object(w.a)(f,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,n=Object(j.a)({},this.props),t=F()(this.getPrefixCls(),n.className,(e={},Object(C.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(C.a)(e,this.getSelectedClassName(),n.isSelected),Object(C.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(j.a)(Object(j.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(j.a)(Object(j.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var l={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},m=Object(j.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?m.paddingRight=n.inlineIndent*n.level:m.paddingLeft=n.inlineIndent*n.level),xt.forEach(function(b){return delete n[b]}),delete n.direction;var d=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(d=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(T.a)({},Object(S.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,l,{style:m,ref:this.saveNode}),n.children,d)}}]),f}(r.Component);Nn.isMenuItem=!0,Nn.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var da=Object(M.b)(function(a,c){var f=a.activeKey,s=a.selectedKeys,e=c.eventKey,n=c.subMenuKey;return{active:f[n]===e,isSelected:Array.isArray(s)?s.indexOf(e)!==-1:s===e}})(Nn),fa=da,ma=function(a){Object(v.a)(f,a);var c=Object(u.a)(f);function f(){var s;return Object(P.a)(this,f),s=c.apply(this,arguments),s.renderInnerMenuItem=function(e){var n=s.props,t=n.renderMenuItem,i=n.index;return t(e,i,s.props.subMenuKey)},s}return Object(w.a)(f,[{key:"render",value:function(){var e=Object(T.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,l="".concat(i,"-item-group-title"),m="".concat(i,"-item-group-list"),d=e.title,b=e.children;return xt.forEach(function(x){return delete e[x]}),delete e.direction,r.createElement("li",Object(T.a)({},e,{onClick:function(U){return U.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),r.createElement("div",{className:l,title:typeof d=="string"?d:void 0},d),r.createElement("ul",{className:m},r.Children.map(b,this.renderInnerMenuItem)))}}]),f}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(c){var f=c.className,s=c.rootPrefixCls,e=c.style;return r.createElement("li",{className:"".concat(f," ").concat(s,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ua,ha=o("eDIo");function eo(a,c){var f=a.prefixCls,s=a.editable,e=a.locale,n=a.style;return!s||s.showAdd===!1?null:r.createElement("button",{ref:c,type:"button",className:"".concat(f,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){s.onEdit("add",{event:i})}},s.addIcon||"+")}var ta=r.forwardRef(eo);function to(a,c){var f=a.prefixCls,s=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,l=i===void 0?"More":i,m=a.moreTransitionName,d=a.style,b=a.className,x=a.editable,U=a.tabBarGutter,L=a.rtl,Y=a.onTabClick,Te=Object(r.useState)(!1),Be=Object(y.a)(Te,2),Le=Be[0],Ve=Be[1],Fe=Object(r.useState)(null),ke=Object(y.a)(Fe,2),Ue=ke[0],nt=ke[1],Xe="".concat(s,"-more-popup"),Dt="".concat(f,"-dropdown"),dt=Ue!==null?"".concat(Xe,"-").concat(Ue):null,Oe=n==null?void 0:n.dropdownAriaLabel,Ce=r.createElement(Ka,{onClick:function(pt){var St=pt.key,Xt=pt.domEvent;Y(St,Xt),Ve(!1)},id:Xe,tabIndex:-1,role:"listbox","aria-activedescendant":dt,selectedKeys:[Ue],"aria-label":Oe!==void 0?Oe:"expanded dropdown"},e.map(function(ot){return r.createElement(fa,{key:ot.key,id:"".concat(Xe,"-").concat(ot.key),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(ot.key),disabled:ot.disabled},ot.tab)}));function Ge(ot){for(var pt=e.filter(function(an){return!an.disabled}),St=pt.findIndex(function(an){return an.key===Ue})||0,Xt=pt.length,nn=0;nnat?(Qe=Ce,Xe.current="x"):(Qe=Ge,Xe.current="y");var Ct=Date.now();Ct-Ue.current>100&&(nt.current=!1),(c(-Qe,-Qe)||nt.current)&&(Oe.preventDefault(),nt.current=!0),Ue.current=Ct}var dt=Object(r.useRef)(null);dt.current={onTouchStart:Ve,onTouchMove:Fe,onTouchEnd:ke,onWheel:Dt},r.useEffect(function(){function Oe(ve){dt.current.onTouchStart(ve)}function Ce(ve){dt.current.onTouchMove(ve)}function Ge(ve){dt.current.onTouchEnd(ve)}function Qe(ve){dt.current.onWheel(ve)}return document.addEventListener("touchmove",Ce,{passive:!1}),document.addEventListener("touchend",Ge,{passive:!1}),a.current.addEventListener("touchstart",Oe,{passive:!1}),a.current.addEventListener("wheel",Qe),function(){document.removeEventListener("touchmove",Ce),document.removeEventListener("touchend",Ge)}},[])}function ba(){var a=Object(r.useRef)(new Map);function c(s){return a.current.has(s)||a.current.set(s,r.createRef()),a.current.get(s)}function f(s){a.current.delete(s)}return[c,f]}function Wa(a,c){var f=r.useRef(a),s=r.useState({}),e=Object(y.a)(s,2),n=e[1];function t(i){var l=typeof i=="function"?i(f.current):i;l!==f.current&&c(l,f.current),f.current=l,n({})}return[f.current,t]}var Ba=function(c){var f=c.position,s=c.prefixCls,e=c.extra;if(!e)return null;var n,t=e;return f==="right"&&(n=t.right||!t.left&&t||null),f==="left"&&(n=t.left||null),n?r.createElement("div",{className:"".concat(s,"-extra-content")},n):null};function Wo(a,c){var f,s=r.useContext(va),e=s.prefixCls,n=s.tabs,t=a.className,i=a.style,l=a.id,m=a.animated,d=a.activeKey,b=a.rtl,x=a.extra,U=a.editable,L=a.locale,Y=a.tabPosition,Te=a.tabBarGutter,Be=a.children,Le=a.onTabClick,Ve=a.onTabScroll,Fe=Object(r.useRef)(),ke=Object(r.useRef)(),Ue=Object(r.useRef)(),nt=Object(r.useRef)(),Xe=ba(),Dt=Object(y.a)(Xe,2),dt=Dt[0],Oe=Dt[1],Ce=Y==="top"||Y==="bottom",Ge=Wa(0,function(ft,Je){Ce&&Ve&&Ve({direction:ft>Je?"left":"right"})}),Qe=Object(y.a)(Ge,2),ve=Qe[0],at=Qe[1],Ct=Wa(0,function(ft,Je){!Ce&&Ve&&Ve({direction:ft>Je?"top":"bottom"})}),ot=Object(y.a)(Ct,2),pt=ot[0],St=ot[1],Xt=Object(r.useState)(0),nn=Object(y.a)(Xt,2),_t=nn[0],an=nn[1],gn=Object(r.useState)(0),sn=Object(y.a)(gn,2),ln=sn[0],At=sn[1],Zt=Object(r.useState)(0),$t=Object(y.a)(Zt,2),zt=$t[0],Dn=$t[1],Pn=Object(r.useState)(0),Wn=Object(y.a)(Pn,2),Et=Wn[0],Cn=Wn[1],Bn=Object(r.useState)(null),Ot=Object(y.a)(Bn,2),ct=Ot[0],Gt=Ot[1],Xo=Object(r.useState)(null),bo=Object(y.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(y.a)(Go,2),Jo=go[0],Yo=go[1],Qo=Object(r.useState)(0),Eo=Object(y.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=O(new Map),yo=Object(y.a)(er,2),tr=yo[0],nr=yo[1],Fa=W(n,tr,_t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;Ce?b?(ga=0,Ea=Math.max(0,_t-ct)):(ga=Math.min(0,ct-_t),Ea=0):(ga=Math.min(0,na-ln),Ea=0);function ao(ft){return ftEa?[Ea,!1]:[ft,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),xo=Object(y.a)(ar,2),oo=xo[0],jo=xo[1];function ro(){jo(Date.now())}function io(){window.clearTimeout(Oo.current)}za(Fe,function(ft,Je){var Wt=!1;function un(Ca,Oa){Ca(function(xa){var ja=ao(xa+Oa),aa=Object(y.a)(ja,2),co=aa[0],fo=aa[1];return Wt=fo,co})}if(Ce){if(ct>=_t)return Wt;un(at,ft)}else{if(na>=ln)return Wt;un(St,Je)}return io(),ro(),Wt}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){jo(0)},100)),io},[oo]);function Mo(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Je=Fa.get(ft);if(!Je)return;if(Ce){var Wt=ve;b?Je.rightve+ct&&(Wt=Je.right+Je.width-ct):Je.left<-ve?Wt=-Je.left:Je.left+Je.width>-ve+ct&&(Wt=-(Je.left+Je.width-ct)),St(0),at(ao(Wt)[0])}else{var un=pt;Je.top<-pt?un=-Je.top:Je.top+Je.height>-pt+na&&(un=-(Je.top+Je.height-na)),at(0),St(ao(un)[0])}}var or=he(Fa,{width:ct,height:na,left:ve,top:pt},{width:zt,height:Et},{width:Jo,height:Zo},Object(j.a)(Object(j.a)({},a),{},{tabs:n})),To=Object(y.a)(or,2),rr=To[0],ir=To[1],sr=n.map(function(ft){var Je=ft.key;return r.createElement(D,{id:l,prefixCls:e,key:Je,rtl:b,tab:ft,closable:ft.closable,editable:U,active:Je===d,tabPosition:Y,tabBarGutter:Te,renderWrapper:Be,removeAriaLabel:L==null?void 0:L.removeAriaLabel,ref:dt(Je),onClick:function(un){Le(Je,un)},onRemove:function(){Oe(Je)},onFocus:function(){Mo(Je),ro(),b||(Fe.current.scrollLeft=0),Fe.current.scrollTop=0}})}),so=H(function(){var ft,Je,Wt,un,Ca,Oa,xa,ja,aa,co=((ft=Fe.current)===null||ft===void 0?void 0:ft.offsetWidth)||0,fo=((Je=Fe.current)===null||Je===void 0?void 0:Je.offsetHeight)||0,Ao=((Wt=nt.current)===null||Wt===void 0?void 0:Wt.offsetWidth)||0,Lo=((un=nt.current)===null||un===void 0?void 0:un.offsetHeight)||0,mr=((Ca=Ue.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=Ue.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Gt(co),$o(fo),Yo(Ao),qo(Lo);var Io=(((xa=ke.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-Ao,ko=(((ja=ke.current)===null||ja===void 0?void 0:ja.offsetHeight)||0)-Lo;an(Io),At(ko);var Uo=(aa=Ue.current)===null||aa===void 0?void 0:aa.className.includes(Co);Dn(Io-(Uo?0:mr)),Cn(ko-(Uo?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(hr){var zo=hr.key,Ma=dt(zo).current;Ma&&Ko.set(zo,{width:Ma.offsetWidth,height:Ma.offsetHeight,left:Ma.offsetLeft,top:Ma.offsetTop})}),Ko})}),lr=n.slice(0,rr),ur=n.slice(ir+1),So=[].concat(Object(ge.a)(lr),Object(ge.a)(ur)),cr=Object(r.useState)(),Ro=Object(y.a)(cr,2),dr=Ro[0],fr=Ro[1],_n=Fa.get(d),No=Object(r.useRef)();function Do(){pe.a.cancel(No.current)}Object(r.useEffect)(function(){var ft={};return _n&&(Ce?(b?ft.right=_n.right:ft.left=_n.left,ft.width=_n.width):(ft.top=_n.top,ft.height=_n.height)),Do(),No.current=pe()(function(){fr(ft)}),Do},[_n,Ce,b]),Object(r.useEffect)(function(){Mo()},[d,_n,Fa,Ce]),Object(r.useEffect)(function(){so()},[b,Te,d,n.map(function(ft){return ft.key}).join("_")]);var Po=!!So.length,ya="".concat(e,"-nav-wrap"),lo,uo,_o,wo;return Ce?b?(uo=ve>0,lo=ve+ct<_t):(lo=ve<0,uo=-ve+ct<_t):(_o=pt<0,wo=-pt+na1)Object(ge.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(W.length===0)return Object(ge.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=W[0];if(h.isValidElement(I)&&Object(Q.c)(I)){var he=I.ref;W[0]=h.cloneElement(I,{ref:Object(Q.a)(he,this.setChildNode)})}return W.length===1?W[0]:W.map(function(T,P){return!h.isValidElement(T)||"key"in T&&T.key!==null?T:h.cloneElement(T,{key:"".concat(oe,"-").concat(P)})})}}]),z}(h.Component);H.displayName="ResizeObserver",ee.a=H},wCXF:function(et,ee,o){"use strict";o.d(ee,"a",function(){return kt});var C=o("rePB"),y=o("VTBJ"),ce=o("KQm4"),j=o("U8pU"),r=o("ODXe"),h=o("q1tI"),F=o("TSYQ"),q=o.n(F),R=o("Gytx"),ge=o.n(R),Q=o("Kwbf"),pe=o("t23M"),oe=o("qx4F"),H=o("6eGT"),O=o("IBYe"),g=o("Ff2n"),z=o("c+Xe"),D=o("fyJ8"),k=o("biw7");function W(E,B,X,ue,be){var re=X[E]||{},ae=X[B]||{},G,te;re.fixed==="left"?G=ue.left[E]:ae.fixed==="right"&&(te=ue.right[B]);var ye=!1,fe=!1,Ee=!1,Ae=!1,je=X[B+1],ze=X[E-1];if(be==="rtl"){if(G!==void 0){var mt=ze&&ze.fixed==="left";Ae=!mt}else if(te!==void 0){var tt=je&&je.fixed==="right";Ee=!tt}}else if(G!==void 0){var ut=je&&je.fixed==="left";ye=!ut}else if(te!==void 0){var Ie=ze&&ze.fixed==="right";fe=!Ie}return{fixLeft:G,fixRight:te,lastFixLeft:ye,firstFixRight:fe,lastFixRight:Ee,firstFixLeft:Ae,isSticky:ue.isSticky}}var I=o("sR1s");function he(E){var B=E.cells,X=E.stickyOffsets,ue=E.flattenColumns,be=E.rowComponent,re=E.cellComponent,ae=E.onHeaderRow,G=E.index,te=h.useContext(k.a),ye=te.prefixCls,fe=te.direction,Ee;ae&&(Ee=ae(B.map(function(je){return je.column}),G));var Ae=Object(I.a)(B.map(function(je){return je.column}));return h.createElement(be,Object.assign({},Ee),B.map(function(je,ze){var mt=je.column,tt=W(je.colStart,je.colEnd,ue,X,fe),ut;return mt&&mt.onHeaderCell&&(ut=je.column.onHeaderCell(mt)),h.createElement(D.a,Object.assign({},je,{ellipsis:mt.ellipsis,align:mt.align,component:re,prefixCls:ye,key:Ae[ze]},tt,{additionalProps:ut,rowType:"header"}))}))}he.displayName="HeaderRow";var T=he;function P(E){var B=[];function X(ae,G){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;B[te]=B[te]||[];var ye=G,fe=ae.filter(Boolean).map(function(Ee){var Ae={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:ye},je=1,ze=Ee.children;return ze&&ze.length>0&&(je=X(ze,ye,te+1).reduce(function(mt,tt){return mt+tt},0),Ae.hasSubColumns=!0),"colSpan"in Ee&&(je=Ee.colSpan),"rowSpan"in Ee&&(Ae.rowSpan=Ee.rowSpan),Ae.colSpan=je,Ae.colEnd=Ae.colStart+je-1,B[te].push(Ae),ye+=je,je});return fe}X(E,0);for(var ue=B.length,be=function(G){B[G].forEach(function(te){!("rowSpan"in te)&&!te.hasSubColumns&&(te.rowSpan=ue-G)})},re=0;re=0;G-=1){var te=B[G],ye=X&&X[G],fe=ye&&ye[v.a];(te||fe||ae)&&(be.unshift(h.createElement("col",Object.assign({key:G,style:{width:te,minWidth:te}},fe))),ae=!0)}return h.createElement("colgroup",null,be)}var M=u;function S(E,B){return Object(h.useMemo)(function(){for(var X=[],ue=0;ue1?Jt-1:0),dn=1;dn=Ee&&(yt=Ee-Ae),ae({scrollLeft:yt/Ee*(fe+2)}),Ie.current.x=We.pageX},gt=function(){var We=Object(xt.b)(re.current).top,Tt=We+re.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;Tt-Object(oe.a)()<=Ht||We>=Ht-G?ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!0})}):ut(function(Vt){return Object(y.a)(Object(y.a)({},Vt),{},{isHiddenScrollBar:!1})})},bt=function(We){ut(function(Tt){return Object(y.a)(Object(y.a)({},Tt),{},{scrollLeft:We/fe*Ee||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:bt}}),h.useEffect(function(){var st=Object(ht.a)(document.body,"mouseup",Ut,!1),We=Object(ht.a)(document.body,"mousemove",Ft,!1);return gt(),function(){st.remove(),We.remove()}},[Ae,vt]),h.useEffect(function(){var st=Object(ht.a)(window,"scroll",gt,!1),We=Object(ht.a)(window,"resize",gt,!1);return function(){st.remove(),We.remove()}},[]),h.useEffect(function(){tt.isHiddenScrollBar||ut(function(st){var We,Tt;return Object(y.a)(Object(y.a)({},st),{},{scrollLeft:re.current.scrollLeft/((We=re.current)===null||We===void 0?void 0:We.scrollWidth)*((Tt=re.current)===null||Tt===void 0?void 0:Tt.clientWidth)})})},[tt.isHiddenScrollBar]),fe<=Ee||!Ae||tt.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(oe.a)(),width:Ee,bottom:G},className:"".concat(ye,"-sticky-scroll")},h.createElement("div",{onMouseDown:it,ref:je,className:q()("".concat(ye,"-sticky-scroll-bar"),Object(C.a)({},"".concat(ye,"-sticky-scroll-bar-active"),vt)),style:{width:"".concat(Ae,"px"),transform:"translate3d(".concat(tt.scrollLeft,"px, 0, 0)")}}))},_e=h.forwardRef(lt);function Ke(E,B){return h.useMemo(function(){var X=!!E;return{isSticky:X,stickyClassName:X?"".concat(B,"-sticky-header"):"",offsetHeader:Object(j.a)(E)==="object"&&E.offsetHeader||0,offsetScroll:Object(j.a)(E)==="object"&&E.offsetScroll||0}},[E,B])}var It=[],Lt={},kt="rc-table-internal-hook",jt=h.memo(function(E){var B=E.children;return B},function(E,B){return ge()(E.props,B.props)?E.pingLeft!==B.pingLeft||E.pingRight!==B.pingRight:!1});function wt(E){var B,X=E.prefixCls,ue=E.className,be=E.rowClassName,re=E.style,ae=E.data,G=E.rowKey,te=E.scroll,ye=E.tableLayout,fe=E.direction,Ee=E.title,Ae=E.footer,je=E.summary,ze=E.id,mt=E.showHeader,tt=E.components,ut=E.emptyText,Ie=E.onRow,Bt=E.onHeaderRow,Mt=E.internalHooks,vt=E.transformColumns,Pt=E.internalRefs,Ut=E.sticky,it=ae||It,Ft=!!it.length,gt=h.useState(0),bt=Object(r.a)(gt,2),st=bt[0],We=bt[1];h.useEffect(function(){We(Object(oe.a)())});var Tt=h.useMemo(function(){return Object(I.c)(tt,{})},[tt]),Ht=h.useCallback(function(Ze,qe){return Object(I.b)(Tt,Ze)||qe},[Tt]),Vt=h.useMemo(function(){return typeof G=="function"?G:function(Ze){var qe=Ze&&Ze[G];return qe}},[G]),yt=Object(v.c)(E),wn=yt.expandIcon,An=yt.expandedRowKeys,Fn=yt.defaultExpandedRowKeys,on=yt.defaultExpandAllRows,hn=yt.expandedRowRender,On=yt.onExpand,xn=yt.onExpandedRowsChange,Hn=yt.expandRowByClick,qt=yt.rowExpandable,Ln=yt.expandIconColumnIndex,En=yt.expandedRowClassName,In=yt.childrenColumnName,jn=yt.indentSize,vn=wn||rt,Mn=In||"children",Vn=h.useMemo(function(){return hn?"row":E.expandable&&Mt===kt&&E.expandable.__PARENT_RENDER_ICON__||it.some(function(Ze){return Ze&&Object(j.a)(Ze)==="object"&&Ze[Mn]})?"nest":!1},[!!hn,it]),Tn=h.useState(function(){return Fn||(on?$e(it,Vt,Mn):[])}),Kt=Object(r.a)(Tn,2),Qt=Kt[0],rn=Kt[1],Jt=h.useMemo(function(){return new Set(An||Qt||[])},[An,Qt]),en=h.useCallback(function(Ze){var qe=Vt(Ze,it.indexOf(Ze)),Nt,Yt=Jt.has(qe);Yt?(Jt.delete(qe),Nt=Object(ce.a)(Jt)):Nt=[].concat(Object(ce.a)(Jt),[qe]),rn(Nt),On&&On(!Yt,Ze),xn&&xn(Nt)},[Vt,Jt,it,On,xn]),dn=h.useState(0),Xn=Object(r.a)(dn,2),kn=Xn[0],$n=Xn[1],Ta=Object($.b)(Object(y.a)(Object(y.a)(Object(y.a)({},E),yt),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Vt,onTriggerExpand:en,expandIcon:vn,expandIconColumnIndex:Ln,direction:fe}),Mt===kt?vt:null),Sa=Object(r.a)(Ta,2),Gn=Sa[0],Rt=Sa[1],Jn=h.useMemo(function(){return{columns:Gn,flattenColumns:Rt}},[Gn,Rt]),Yn=h.useRef(),Ra=h.useRef(),fn=h.useRef(),Ha=h.useState(!1),Na=Object(r.a)(Ha,2),oa=Na[0],Va=Na[1],Xa=h.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=_(new Map),Da=Object(r.a)(Ga,2),Ja=Da[0],Ya=Da[1],bn=Object(I.a)(Rt),ia=bn.map(function(Ze){return Ja.get(Ze)}),Pa=h.useMemo(function(){return ia},[ia.join("_")]),sa=De(Pa,Rt.length,fe),tn=te&&Object(I.d)(te.y),mn=te&&Object(I.d)(te.x),pn=mn&&Rt.some(function(Ze){var qe=Ze.fixed;return qe}),la=h.useRef(),Un=Ke(Ut,X),Kn=Un.isSticky,_a=Un.offsetHeader,Qa=Un.offsetScroll,wa=Un.stickyClassName,ua,Zn,Sn;tn&&(Zn={overflowY:"scroll",maxHeight:te.y}),mn&&(ua={overflowX:"auto"},tn||(Zn={overflowY:"hidden"}),Sn={width:te.x===!0?"auto":te.x,minWidth:"100%"});var yn=h.useCallback(function(Ze,qe){Ya(function(Nt){var Yt=new Map(Nt);return Yt.set(Ze,qe),Yt})},[]),qn=K(null),Aa=Object(r.a)(qn,2),La=Aa[0],Ia=Aa[1];function ea(Ze,qe){if(!qe)return;typeof qe=="function"?qe(Ze):qe.scrollLeft!==Ze&&(qe.scrollLeft=Ze)}var Rn=function(qe){var Nt=qe.currentTarget,Yt=qe.scrollLeft,zn=typeof Yt=="number"?Yt:Nt.scrollLeft,za=Nt||Lt;if(!Ia()||Ia()===za){var ba;La(za),ea(zn,Ra.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(y.a)(g),Object(y.a)(Q(W).map(function(I){return Object(ce.a)({fixed:k},I)}))):[].concat(Object(y.a)(g),[Object(ce.a)(Object(ce.a)({},z),{},{fixed:k})])},[])}function pe(O){for(var g=!0,z=0;z=0;W-=1){var I=O[W];if(k&&I.fixed!=="right")k=!1;else if(!k&&I.fixed==="right"){Object(F.a)(!1,"Index ".concat(W+1," of `columns` missing `fixed='right'` prop."));break}}}function oe(O){return O.map(function(g){var z=g.fixed,D=Object(j.a)(g,["fixed"]),k=z;return z==="left"?k="right":z==="right"&&(k="left"),Object(ce.a)({fixed:k},D)})}function H(O,g){var z=O.prefixCls,D=O.columns,k=O.children,W=O.expandable,I=O.expandedKeys,he=O.getRowKey,T=O.onTriggerExpand,P=O.expandIcon,w=O.rowExpandable,p=O.expandIconColumnIndex,v=O.direction,u=O.expandRowByClick,M=r.useMemo(function(){return D||ge(k)},[D,k]),S=r.useMemo(function(){if(W){var A,ne=p||0,me=M[ne],Se=(A={},Object(C.a)(A,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(C.a)(A,"title",""),Object(C.a)(A,"fixed",me?me.fixed:null),Object(C.a)(A,"className","".concat(z,"-row-expand-icon-cell")),Object(C.a)(A,"render",function(V,Me,Re){var Ne=he(Me,Re),we=I.has(Ne),J=w?w(Me):!0,$=P({prefixCls:z,expanded:we,expandable:J,record:Me,onExpand:T});return u?r.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},$):$}),A),Ye=M.slice();return ne>=0&&Ye.splice(ne,0,Se),Ye}return M},[W,M,he,I,P,v]),N=r.useMemo(function(){var A=S;return g&&(A=g(A)),A.length||(A=[{render:function(){return null}}]),A},[g,S,v]),ie=r.useMemo(function(){return v==="rtl"?oe(Q(N)):Q(N)},[N,v]);return[N,ie]}ee.b=H},"y0+3":function(et,ee,o){"use strict";o.d(ee,"a",function(){return Q}),o.d(ee,"b",function(){return oe});var C=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function j(H){return H.nodeType===1?H.ownerDocument.defaultView.getComputedStyle(H,null):{}}function r(H,O,g){if(O=O.toLowerCase(),g==="auto"){if(O==="height")return H.offsetHeight;if(O==="width")return H.offsetWidth}return O in y||(y[O]=C.test(O)),y[O]?parseFloat(g)||0:g}function h(H,O){var g=arguments.length,z=j(H);return O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,g===1?z:r(H,O,z[O]||H.style[O])}function F(H,O,g){var z=arguments.length;if(O=ce[O]?"cssFloat"in H.style?"cssFloat":"styleFloat":O,z===3)return typeof g=="number"&&C.test(O)&&(g="".concat(g,"px")),H.style[O]=g,g;for(var D in O)O.hasOwnProperty(D)&&F(H,D,O[D]);return j(H)}function q(H){return H===document.body?document.documentElement.clientWidth:H.offsetWidth}function R(H){return H===document.body?window.innerHeight||document.documentElement.clientHeight:H.offsetHeight}function ge(){var H=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),O=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:H,height:O}}function Q(){var H=document.documentElement.clientWidth,O=window.innerHeight||document.documentElement.clientHeight;return{width:H,height:O}}function pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(H){var O=H.getBoundingClientRect(),g=document.documentElement;return{left:O.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:O.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Innovation__Tasks.a679adf5.async.js b/p__Innovation__Tasks.a679adf5.async.js index f80305b15b..024ded6303 100644 --- a/p__Innovation__Tasks.a679adf5.async.js +++ b/p__Innovation__Tasks.a679adf5.async.js @@ -1,15 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[164,3,6,8,9,10,13],{"+QRC":function(Re,I,h){"use strict";var S=h("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},k="Copy to clipboard: #{key}, Enter";function m(r){var p=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,p)}function _(r,p){var d,c,o,i,s,a,n=!1;p||(p={}),d=p.debug||!1;try{o=S(),i=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=r,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(e){if(e.stopPropagation(),p.format)if(e.preventDefault(),typeof e.clipboardData=="undefined"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var u=f[p.format]||f.default;window.clipboardData.setData(u,r)}else e.clipboardData.clearData(),e.clipboardData.setData(p.format,r);p.onCopy&&(e.preventDefault(),p.onCopy(e.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");n=!0}catch(e){d&&console.error("unable to copy using execCommand: ",e),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(p.format||"text",r),p.onCopy&&p.onCopy(window.clipboardData),n=!0}catch(u){d&&console.error("unable to copy using clipboardData: ",u),d&&console.error("falling back to prompt"),c=m("message"in p?p.message:k),window.prompt(c,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return n}Re.exports=_},"/GNS":function(Re,I,h){Re.exports=h.p+"static/search1.c4136dd4.png"},"/POA":function(Re,I,h){!function(S,f){if(!0)Re.exports=f();else var k,m}(window,function(){return function(S){var f={};function k(m){if(f[m])return f[m].exports;var _=f[m]={i:m,l:!1,exports:{}};return S[m].call(_.exports,_,_.exports,k),_.l=!0,_.exports}return k.m=S,k.c=f,k.d=function(m,_,r){k.o(m,_)||Object.defineProperty(m,_,{enumerable:!0,get:r})},k.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},k.t=function(m,_){if(1&_&&(m=k(m)),8&_)return m;if(4&_&&typeof m=="object"&&m&&m.__esModule)return m;var r=Object.create(null);if(k.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:m}),2&_&&typeof m!="string")for(var p in m)k.d(r,p,function(d){return m[d]}.bind(null,p));return r},k.n=function(m){var _=m&&m.__esModule?function(){return m.default}:function(){return m};return k.d(_,"a",_),_},k.o=function(m,_){return Object.prototype.hasOwnProperty.call(m,_)},k.p="",k(k.s=34)}([function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.forwardEvent=f.EventEmitter=void 0;var m=function(){function _(){this._listeners=[],this._disposed=!1}return Object.defineProperty(_.prototype,"event",{get:function(){var r=this;return this._event||(this._event=function(p){return r._listeners.push(p),{dispose:function(){if(!r._disposed){for(var d=0;d>22},i.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?r.stringFromCodePoint(2097151&this.content):""},i.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},i.prototype.setFromCharData=function(s){this.fg=s[p.CHAR_DATA_ATTR_INDEX],this.bg=0;var a=!1;if(s[p.CHAR_DATA_CHAR_INDEX].length>2)a=!0;else if(s[p.CHAR_DATA_CHAR_INDEX].length===2){var n=s[p.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var t=s[p.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(n-55296)+t-56320+65536|s[p.CHAR_DATA_WIDTH_INDEX]<<22:a=!0}else a=!0}else this.content=s[p.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[p.CHAR_DATA_WIDTH_INDEX]<<22;a&&(this.combinedData=s[p.CHAR_DATA_CHAR_INDEX],this.content=2097152|s[p.CHAR_DATA_WIDTH_INDEX]<<22)},i.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},i}(d.AttributeData);f.CellData=c},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ISoundService=f.ISelectionService=f.IRenderService=f.IMouseService=f.ICoreBrowserService=f.ICharSizeService=void 0;var m=k(14);f.ICharSizeService=m.createDecorator("CharSizeService"),f.ICoreBrowserService=m.createDecorator("CoreBrowserService"),f.IMouseService=m.createDecorator("MouseService"),f.IRenderService=m.createDecorator("RenderService"),f.ISelectionService=m.createDecorator("SelectionService"),f.ISoundService=m.createDecorator("SoundService")},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ExtendedAttrs=f.AttributeData=void 0;var m=function(){function r(){this.fg=0,this.bg=0,this.extended=new _}return r.toColorRGB=function(p){return[p>>>16&255,p>>>8&255,255&p]},r.fromColorRGB=function(p){return(255&p[0])<<16|(255&p[1])<<8|255&p[2]},r.prototype.clone=function(){var p=new r;return p.fg=this.fg,p.bg=this.bg,p.extended=this.extended.clone(),p},r.prototype.isInverse=function(){return 67108864&this.fg},r.prototype.isBold=function(){return 134217728&this.fg},r.prototype.isUnderline=function(){return 268435456&this.fg},r.prototype.isBlink=function(){return 536870912&this.fg},r.prototype.isInvisible=function(){return 1073741824&this.fg},r.prototype.isItalic=function(){return 67108864&this.bg},r.prototype.isDim=function(){return 134217728&this.bg},r.prototype.getFgColorMode=function(){return 50331648&this.fg},r.prototype.getBgColorMode=function(){return 50331648&this.bg},r.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},r.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},r.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},r.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},r.prototype.isFgDefault=function(){return(50331648&this.fg)==0},r.prototype.isBgDefault=function(){return(50331648&this.bg)==0},r.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},r.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},r.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},r.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},r.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},r.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},r.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},r.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},r.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},r.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},r.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},r}();f.AttributeData=m;var _=function(){function r(p,d){p===void 0&&(p=0),d===void 0&&(d=-1),this.underlineStyle=p,this.underlineColor=d}return r.prototype.clone=function(){return new r(this.underlineStyle,this.underlineColor)},r.prototype.isEmpty=function(){return this.underlineStyle===0},r}();f.ExtendedAttrs=_},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.addDisposableDomListener=void 0,f.addDisposableDomListener=function(m,_,r,p){m.addEventListener(_,r,p);var d=!1;return{dispose:function(){d||(d=!0,m.removeEventListener(_,r,p))}}}},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Utf8ToUtf32=f.StringToUtf32=f.utf32ToString=f.stringFromCodePoint=void 0,f.stringFromCodePoint=function(r){return r>65535?(r-=65536,String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):String.fromCharCode(r)},f.utf32ToString=function(r,p,d){p===void 0&&(p=0),d===void 0&&(d=r.length);for(var c="",o=p;o65535?(i-=65536,c+=String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):c+=String.fromCharCode(i)}return c};var m=function(){function r(){this._interim=0}return r.prototype.clear=function(){this._interim=0},r.prototype.decode=function(p,d){var c=p.length;if(!c)return 0;var o=0,i=0;this._interim&&(56320<=(n=p.charCodeAt(i++))&&n<=57343?d[o++]=1024*(this._interim-55296)+n-56320+65536:(d[o++]=this._interim,d[o++]=n),this._interim=0);for(var s=i;s=c)return this._interim=a,o;var n;56320<=(n=p.charCodeAt(s))&&n<=57343?d[o++]=1024*(a-55296)+n-56320+65536:(d[o++]=a,d[o++]=n)}else d[o++]=a}return o},r}();f.StringToUtf32=m;var _=function(){function r(){this.interim=new Uint8Array(3)}return r.prototype.clear=function(){this.interim.fill(0)},r.prototype.decode=function(p,d){var c=p.length;if(!c)return 0;var o,i,s,a,n=0,t=0,e=0;if(this.interim[0]){var u=!1,l=this.interim[0];l&=(224&l)==192?31:(240&l)==224?15:7;for(var g=0,C=void 0;(C=63&this.interim[++g])&&g<4;)l<<=6,l|=C;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,y=x-g;e=c)return 0;if((192&(C=p[e++]))!=128){e--,u=!0;break}this.interim[g++]=C,l<<=6,l|=63&C}u||(x===2?l<128?e--:d[n++]=l:x===3?l<2048||l>=55296&&l<=57343||(d[n++]=l):l<65536||l>1114111||(d[n++]=l)),this.interim.fill(0)}for(var T=c-4,A=e;A=c)return this.interim[0]=o,n;if((192&(i=p[A++]))!=128){A--;continue}if((t=(31&o)<<6|63&i)<128){A--;continue}d[n++]=t}else if((240&o)==224){if(A>=c)return this.interim[0]=o,n;if((192&(i=p[A++]))!=128){A--;continue}if(A>=c)return this.interim[0]=o,this.interim[1]=i,n;if((192&(s=p[A++]))!=128){A--;continue}if((t=(15&o)<<12|(63&i)<<6|63&s)<2048||t>=55296&&t<=57343)continue;d[n++]=t}else if((248&o)==240){if(A>=c)return this.interim[0]=o,n;if((192&(i=p[A++]))!=128){A--;continue}if(A>=c)return this.interim[0]=o,this.interim[1]=i,n;if((192&(s=p[A++]))!=128){A--;continue}if(A>=c)return this.interim[0]=o,this.interim[1]=i,this.interim[2]=s,n;if((192&(a=p[A++]))!=128){A--;continue}if((t=(7&o)<<18|(63&i)<<12|(63&s)<<6|63&a)<65536||t>1114111)continue;d[n++]=t}}return n},r}();f.Utf8ToUtf32=_},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CHAR_ATLAS_CELL_SPACING=f.DIM_OPACITY=f.INVERTED_DEFAULT_COLOR=void 0,f.INVERTED_DEFAULT_COLOR=257,f.DIM_OPACITY=.5,f.CHAR_ATLAS_CELL_SPACING=1},function(S,f,k){"use strict";var m,_,r,p;function d(o){var i=o.toString(16);return i.length<2?"0"+i:i}function c(o,i){return o>>0}}(m=f.channels||(f.channels={})),(_=f.color||(f.color={})).blend=function(o,i){var s=(255&i.rgba)/255;if(s===1)return{css:i.css,rgba:i.rgba};var a=i.rgba>>24&255,n=i.rgba>>16&255,t=i.rgba>>8&255,e=o.rgba>>24&255,u=o.rgba>>16&255,l=o.rgba>>8&255,g=e+Math.round((a-e)*s),C=u+Math.round((n-u)*s),x=l+Math.round((t-l)*s);return{css:m.toCss(g,C,x),rgba:m.toRgba(g,C,x)}},_.isOpaque=function(o){return(255&o.rgba)==255},_.ensureContrastRatio=function(o,i,s){var a=p.ensureContrastRatio(o.rgba,i.rgba,s);if(a)return p.toColor(a>>24&255,a>>16&255,a>>8&255)},_.opaque=function(o){var i=(255|o.rgba)>>>0,s=p.toChannels(i),a=s[0],n=s[1],t=s[2];return{css:m.toCss(a,n,t),rgba:i}},_.opacity=function(o,i){var s=Math.round(255*i),a=p.toChannels(o.rgba),n=a[0],t=a[1],e=a[2];return{css:m.toCss(n,t,e,s),rgba:m.toRgba(n,t,e,s)}},(f.css||(f.css={})).toColor=function(o){switch(o.length){case 7:return{css:o,rgba:(parseInt(o.slice(1),16)<<8|255)>>>0};case 9:return{css:o,rgba:parseInt(o.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(o){function i(s,a,n){var t=s/255,e=a/255,u=n/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4))}o.relativeLuminance=function(s){return i(s>>16&255,s>>8&255,255&s)},o.relativeLuminance2=i}(r=f.rgb||(f.rgb={})),function(o){function i(a,n,t){for(var e=a>>24&255,u=a>>16&255,l=a>>8&255,g=n>>24&255,C=n>>16&255,x=n>>8&255,y=c(r.relativeLuminance2(g,x,C),r.relativeLuminance2(e,u,l));y0||C>0||x>0);)g-=Math.max(0,Math.ceil(.1*g)),C-=Math.max(0,Math.ceil(.1*C)),x-=Math.max(0,Math.ceil(.1*x)),y=c(r.relativeLuminance2(g,x,C),r.relativeLuminance2(e,u,l));return(g<<24|C<<16|x<<8|255)>>>0}function s(a,n,t){for(var e=a>>24&255,u=a>>16&255,l=a>>8&255,g=n>>24&255,C=n>>16&255,x=n>>8&255,y=c(r.relativeLuminance2(g,x,C),r.relativeLuminance2(e,u,l));y>>0}o.ensureContrastRatio=function(a,n,t){var e=r.relativeLuminance(a>>8),u=r.relativeLuminance(n>>8);if(c(e,u)>24&255,a>>16&255,a>>8&255,255&a]},o.toColor=function(a,n,t){return{css:m.toCss(a,n,t),rgba:m.toRgba(a,n,t)}}}(p=f.rgba||(f.rgba={})),f.toPaddedHex=d,f.contrastRatio=c},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isLinux=f.isWindows=f.isIphone=f.isIpad=f.isMac=f.isSafari=f.isFirefox=void 0;var m=typeof navigator=="undefined",_=m?"node":navigator.userAgent,r=m?"node":navigator.platform;function p(d,c){return d.indexOf(c)>=0}f.isFirefox=!!~_.indexOf("Firefox"),f.isSafari=/^((?!chrome|android).)*safari/i.test(_),f.isMac=p(["Macintosh","MacIntel","MacPPC","Mac68K"],r),f.isIpad=r==="iPad",f.isIphone=r==="iPhone",f.isWindows=p(["Windows","Win16","Win32","WinCE"],r),f.isLinux=r.indexOf("Linux")>=0},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.C1=f.C0=void 0,function(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=` -`,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL="\x7F"}(f.C0||(f.C0={})),function(m){m.PAD="\x80",m.HOP="\x81",m.BPH="\x82",m.NBH="\x83",m.IND="\x84",m.NEL="\x85",m.SSA="\x86",m.ESA="\x87",m.HTS="\x88",m.HTJ="\x89",m.VTS="\x8A",m.PLD="\x8B",m.PLU="\x8C",m.RI="\x8D",m.SS2="\x8E",m.SS3="\x8F",m.DCS="\x90",m.PU1="\x91",m.PU2="\x92",m.STS="\x93",m.CCH="\x94",m.MW="\x95",m.SPA="\x96",m.EPA="\x97",m.SOS="\x98",m.SGCI="\x99",m.SCI="\x9A",m.CSI="\x9B",m.ST="\x9C",m.OSC="\x9D",m.PM="\x9E",m.APC="\x9F"}(f.C1||(f.C1={}))},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseRenderLayer=void 0;var m=k(3),_=k(9),r=k(25),p=k(6),d=k(28),c=k(10),o=k(17),i=function(){function s(a,n,t,e,u,l,g,C){this._container=a,this._alpha=e,this._colors=u,this._rendererId=l,this._bufferService=g,this._optionsService=C,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+n+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return s.prototype.dispose=function(){var a;o.removeElementFromParent(this._canvas),(a=this._charAtlas)===null||a===void 0||a.dispose()},s.prototype._initCanvas=function(){this._ctx=d.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},s.prototype.onOptionsChanged=function(){},s.prototype.onBlur=function(){},s.prototype.onFocus=function(){},s.prototype.onCursorMove=function(){},s.prototype.onGridChanged=function(a,n){},s.prototype.onSelectionChanged=function(a,n,t){t===void 0&&(t=!1)},s.prototype.setColors=function(a){this._refreshCharAtlas(a)},s.prototype._setTransparency=function(a){if(a!==this._alpha){var n=this._canvas;this._alpha=a,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,n),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},s.prototype._refreshCharAtlas=function(a){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=r.acquireCharAtlas(this._optionsService.options,this._rendererId,a,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},s.prototype.resize=function(a){this._scaledCellWidth=a.scaledCellWidth,this._scaledCellHeight=a.scaledCellHeight,this._scaledCharWidth=a.scaledCharWidth,this._scaledCharHeight=a.scaledCharHeight,this._scaledCharLeft=a.scaledCharLeft,this._scaledCharTop=a.scaledCharTop,this._canvas.width=a.scaledCanvasWidth,this._canvas.height=a.scaledCanvasHeight,this._canvas.style.width=a.canvasWidth+"px",this._canvas.style.height=a.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},s.prototype._fillCells=function(a,n,t,e){this._ctx.fillRect(a*this._scaledCellWidth,n*this._scaledCellHeight,t*this._scaledCellWidth,e*this._scaledCellHeight)},s.prototype._fillBottomLineAtCells=function(a,n,t){t===void 0&&(t=1),this._ctx.fillRect(a*this._scaledCellWidth,(n+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},s.prototype._fillLeftLineAtCell=function(a,n,t){this._ctx.fillRect(a*this._scaledCellWidth,n*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},s.prototype._strokeRectAtCell=function(a,n,t,e){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(a*this._scaledCellWidth+window.devicePixelRatio/2,n*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,e*this._scaledCellHeight-window.devicePixelRatio)},s.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},s.prototype._clearCells=function(a,n,t,e){this._alpha?this._ctx.clearRect(a*this._scaledCellWidth,n*this._scaledCellHeight,t*this._scaledCellWidth,e*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(a*this._scaledCellWidth,n*this._scaledCellHeight,t*this._scaledCellWidth,e*this._scaledCellHeight))},s.prototype._fillCharTrueColor=function(a,n,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(a.getChars(),n*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},s.prototype._drawChars=function(a,n,t){var e,u,l=this._getContrastColor(a);l||a.isFgRGB()||a.isBgRGB()?this._drawUncachedChars(a,n,t,l):(a.isInverse()?(e=a.isBgDefault()?_.INVERTED_DEFAULT_COLOR:a.getBgColor(),u=a.isFgDefault()?_.INVERTED_DEFAULT_COLOR:a.getFgColor()):(u=a.isBgDefault()?m.DEFAULT_COLOR:a.getBgColor(),e=a.isFgDefault()?m.DEFAULT_COLOR:a.getFgColor()),e+=this._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&e<8?8:0,this._currentGlyphIdentifier.chars=a.getChars()||m.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=a.getCode()||m.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=u,this._currentGlyphIdentifier.fg=e,this._currentGlyphIdentifier.bold=!!a.isBold(),this._currentGlyphIdentifier.dim=!!a.isDim(),this._currentGlyphIdentifier.italic=!!a.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,n*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(a,n,t))},s.prototype._drawUncachedChars=function(a,n,t,e){if(this._ctx.save(),this._ctx.font=this._getFont(!!a.isBold(),!!a.isItalic()),this._ctx.textBaseline="middle",a.isInverse())if(e)this._ctx.fillStyle=e.css;else if(a.isBgDefault())this._ctx.fillStyle=c.color.opaque(this._colors.background).css;else if(a.isBgRGB())this._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(a.getBgColor()).join(",")+")";else{var u=a.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}else if(e)this._ctx.fillStyle=e.css;else if(a.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(a.isFgRGB())this._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(a.getFgColor()).join(",")+")";else{var l=a.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}this._clipRow(t),a.isDim()&&(this._ctx.globalAlpha=_.DIM_OPACITY),this._ctx.fillText(a.getChars(),n*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},s.prototype._clipRow=function(a){this._ctx.beginPath(),this._ctx.rect(0,a*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},s.prototype._getFont=function(a,n){return(n?"italic":"")+" "+(a?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},s.prototype._getContrastColor=function(a){if(this._optionsService.options.minimumContrastRatio!==1){var n=this._colors.contrastCache.getColor(a.bg,a.fg);if(n!==void 0)return n||void 0;var t=a.getFgColor(),e=a.getFgColorMode(),u=a.getBgColor(),l=a.getBgColorMode(),g=!!a.isInverse(),C=!!a.isInverse();if(g){var x=t;t=u,u=x;var y=e;e=l,l=y}var T=this._resolveBackgroundRgba(l,u,g),A=this._resolveForegroundRgba(e,t,g,C),E=c.rgba.ensureContrastRatio(T,A,this._optionsService.options.minimumContrastRatio);if(E){var b={css:c.channels.toCss(E>>24&255,E>>16&255,E>>8&255),rgba:E};return this._colors.contrastCache.setColor(a.bg,a.fg,b),b}this._colors.contrastCache.setColor(a.bg,a.fg,null)}},s.prototype._resolveBackgroundRgba=function(a,n,t){switch(a){case 16777216:case 33554432:return this._colors.ansi[n].rgba;case 50331648:return n<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},s.prototype._resolveForegroundRgba=function(a,n,t,e){switch(a){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&e&&n<8&&(n+=8),this._colors.ansi[n].rgba;case 50331648:return n<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},s}();f.BaseRenderLayer=i},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createDecorator=f.getServiceDependencies=f.serviceRegistry=void 0;function m(_,r,p){r.di$target===r?r.di$dependencies.push({id:_,index:p}):(r.di$dependencies=[{id:_,index:p}],r.di$target=r)}f.serviceRegistry=new Map,f.getServiceDependencies=function(_){return _.di$dependencies||[]},f.createDecorator=function(_){if(f.serviceRegistry.has(_))return f.serviceRegistry.get(_);var r=function(p,d,c){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");m(r,p,c)};return r.toString=function(){return _},f.serviceRegistry.set(_,r),r}},function(S,f,k){"use strict";function m(_,r,p,d){if(p===void 0&&(p=0),d===void 0&&(d=_.length),p>=_.length)return _;p=(_.length+p)%_.length,d=d>=_.length?_.length:(_.length+d)%_.length;for(var c=p;c>22,2097152&i?this._combined[o].charCodeAt(this._combined[o].length-1):s]},c.prototype.set=function(o,i){this._data[3*o+1]=i[_.CHAR_DATA_ATTR_INDEX],i[_.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[o]=i[1],this._data[3*o+0]=2097152|o|i[_.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*o+0]=i[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[_.CHAR_DATA_WIDTH_INDEX]<<22},c.prototype.getWidth=function(o){return this._data[3*o+0]>>22},c.prototype.hasWidth=function(o){return 12582912&this._data[3*o+0]},c.prototype.getFg=function(o){return this._data[3*o+1]},c.prototype.getBg=function(o){return this._data[3*o+2]},c.prototype.hasContent=function(o){return 4194303&this._data[3*o+0]},c.prototype.getCodePoint=function(o){var i=this._data[3*o+0];return 2097152&i?this._combined[o].charCodeAt(this._combined[o].length-1):2097151&i},c.prototype.isCombined=function(o){return 2097152&this._data[3*o+0]},c.prototype.getString=function(o){var i=this._data[3*o+0];return 2097152&i?this._combined[o]:2097151&i?m.stringFromCodePoint(2097151&i):""},c.prototype.loadCell=function(o,i){var s=3*o;return i.content=this._data[s+0],i.fg=this._data[s+1],i.bg=this._data[s+2],2097152&i.content&&(i.combinedData=this._combined[o]),268435456&i.bg&&(i.extended=this._extendedAttrs[o]),i},c.prototype.setCell=function(o,i){2097152&i.content&&(this._combined[o]=i.combinedData),268435456&i.bg&&(this._extendedAttrs[o]=i.extended),this._data[3*o+0]=i.content,this._data[3*o+1]=i.fg,this._data[3*o+2]=i.bg},c.prototype.setCellFromCodePoint=function(o,i,s,a,n,t){268435456&n&&(this._extendedAttrs[o]=t),this._data[3*o+0]=i|s<<22,this._data[3*o+1]=a,this._data[3*o+2]=n},c.prototype.addCodepointToCell=function(o,i){var s=this._data[3*o+0];2097152&s?this._combined[o]+=m.stringFromCodePoint(i):(2097151&s?(this._combined[o]=m.stringFromCodePoint(2097151&s)+m.stringFromCodePoint(i),s&=-2097152,s|=2097152):s=i|1<<22,this._data[3*o+0]=s)},c.prototype.insertCells=function(o,i,s,a){if((o%=this.length)&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(a==null?void 0:a.fg)||0,(a==null?void 0:a.bg)||0,(a==null?void 0:a.extended)||new p.ExtendedAttrs),i=0;--t)this.setCell(o+i+t,this.loadCell(o+t,n));for(t=0;tthis.length){var s=new Uint32Array(3*o);this.length&&(3*o=o&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=o}},c.prototype.fill=function(o){this._combined={},this._extendedAttrs={};for(var i=0;i=0;--o)if(4194303&this._data[3*o+0])return o+(this._data[3*o+0]>>22);return 0},c.prototype.copyCellsFrom=function(o,i,s,a,n){var t=o._data;if(n)for(var e=a-1;e>=0;e--)for(var u=0;u<3;u++)this._data[3*(s+e)+u]=t[3*(i+e)+u];else for(e=0;e=i&&(this._combined[g-i+s]=o._combined[g])}},c.prototype.translateToString=function(o,i,s){o===void 0&&(o=!1),i===void 0&&(i=0),s===void 0&&(s=this.length),o&&(s=Math.min(s,this.getTrimmedLength()));for(var a="";i>22||1}return a},c}();f.BufferLine=d},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeElementFromParent=void 0,f.removeElementFromParent=function(){for(var m,_=[],r=0;r24)return E.setWinLines||!1;switch(A){case 1:return!!E.restoreWin;case 2:return!!E.minimizeWin;case 3:return!!E.setWinPosition;case 4:return!!E.setWinSizePixels;case 5:return!!E.raiseWin;case 6:return!!E.lowerWin;case 7:return!!E.refreshWin;case 8:return!!E.setWinSizeChars;case 9:return!!E.maximizeWin;case 10:return!!E.fullscreenWin;case 11:return!!E.getWinState;case 13:return!!E.getWinPosition;case 14:return!!E.getWinSizePixels;case 15:return!!E.getScreenSizePixels;case 16:return!!E.getCellSizePixels;case 18:return!!E.getWinSizeChars;case 19:return!!E.getScreenSizeChars;case 20:return!!E.getIconTitle;case 21:return!!E.getWinTitle;case 22:return!!E.pushTitle;case 23:return!!E.popTitle;case 24:return!!E.setWinLines}return!1}!function(A){A[A.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",A[A.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(r=f.WindowsOptionsReportType||(f.WindowsOptionsReportType={}));var y=function(){function A(E,b,v,O){this._bufferService=E,this._coreService=b,this._logService=v,this._optionsService=O,this._data=new Uint32Array(0)}return A.prototype.hook=function(E){this._data=new Uint32Array(0)},A.prototype.put=function(E,b,v){this._data=i.concat(this._data,E.subarray(b,v))},A.prototype.unhook=function(E){if(E){var b=s.utf32ToString(this._data);switch(this._data=new Uint32Array(0),b){case'"q':return this._coreService.triggerDataEvent(p.C0.ESC+'P1$r0"q'+p.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(p.C0.ESC+'P1$r61;1"p'+p.C0.ESC+"\\");case"r":var v=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(p.C0.ESC+"P1$r"+v+p.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(p.C0.ESC+"P1$r0m"+p.C0.ESC+"\\");case" q":var O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(p.C0.ESC+"P1$r"+O+" q"+p.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",b),this._coreService.triggerDataEvent(p.C0.ESC+"P0$r"+p.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},A}(),T=function(A){function E(b,v,O,D,W,Q,j,Z,Y){Y===void 0&&(Y=new c.EscapeSequenceParser);var w=A.call(this)||this;w._bufferService=b,w._charsetService=v,w._coreService=O,w._dirtyRowService=D,w._logService=W,w._optionsService=Q,w._coreMouseService=j,w._unicodeService=Z,w._parser=Y,w._parseBuffer=new Uint32Array(4096),w._stringDecoder=new s.StringToUtf32,w._utf8Decoder=new s.Utf8ToUtf32,w._workCell=new e.CellData,w._windowTitle="",w._iconName="",w._windowTitleStack=[],w._iconNameStack=[],w._curAttrData=a.DEFAULT_ATTR_DATA.clone(),w._eraseAttrDataInternal=a.DEFAULT_ATTR_DATA.clone(),w._onRequestBell=new n.EventEmitter,w._onRequestRefreshRows=new n.EventEmitter,w._onRequestReset=new n.EventEmitter,w._onRequestScroll=new n.EventEmitter,w._onRequestSyncScrollBar=new n.EventEmitter,w._onRequestWindowsOptionsReport=new n.EventEmitter,w._onA11yChar=new n.EventEmitter,w._onA11yTab=new n.EventEmitter,w._onCursorMove=new n.EventEmitter,w._onLineFeed=new n.EventEmitter,w._onScroll=new n.EventEmitter,w._onTitleChange=new n.EventEmitter,w.register(w._parser),w._parser.setCsiHandlerFallback(function(M,H){w._logService.debug("Unknown CSI code: ",{identifier:w._parser.identToString(M),params:H.toArray()})}),w._parser.setEscHandlerFallback(function(M){w._logService.debug("Unknown ESC code: ",{identifier:w._parser.identToString(M)})}),w._parser.setExecuteHandlerFallback(function(M){w._logService.debug("Unknown EXECUTE code: ",{code:M})}),w._parser.setOscHandlerFallback(function(M,H,ae){w._logService.debug("Unknown OSC code: ",{identifier:M,action:H,data:ae})}),w._parser.setDcsHandlerFallback(function(M,H,ae){H==="HOOK"&&(ae=ae.toArray()),w._logService.debug("Unknown DCS code: ",{identifier:w._parser.identToString(M),action:H,payload:ae})}),w._parser.setPrintHandler(function(M,H,ae){return w.print(M,H,ae)}),w._parser.setCsiHandler({final:"@"},function(M){return w.insertChars(M)}),w._parser.setCsiHandler({intermediates:" ",final:"@"},function(M){return w.scrollLeft(M)}),w._parser.setCsiHandler({final:"A"},function(M){return w.cursorUp(M)}),w._parser.setCsiHandler({intermediates:" ",final:"A"},function(M){return w.scrollRight(M)}),w._parser.setCsiHandler({final:"B"},function(M){return w.cursorDown(M)}),w._parser.setCsiHandler({final:"C"},function(M){return w.cursorForward(M)}),w._parser.setCsiHandler({final:"D"},function(M){return w.cursorBackward(M)}),w._parser.setCsiHandler({final:"E"},function(M){return w.cursorNextLine(M)}),w._parser.setCsiHandler({final:"F"},function(M){return w.cursorPrecedingLine(M)}),w._parser.setCsiHandler({final:"G"},function(M){return w.cursorCharAbsolute(M)}),w._parser.setCsiHandler({final:"H"},function(M){return w.cursorPosition(M)}),w._parser.setCsiHandler({final:"I"},function(M){return w.cursorForwardTab(M)}),w._parser.setCsiHandler({final:"J"},function(M){return w.eraseInDisplay(M)}),w._parser.setCsiHandler({prefix:"?",final:"J"},function(M){return w.eraseInDisplay(M)}),w._parser.setCsiHandler({final:"K"},function(M){return w.eraseInLine(M)}),w._parser.setCsiHandler({prefix:"?",final:"K"},function(M){return w.eraseInLine(M)}),w._parser.setCsiHandler({final:"L"},function(M){return w.insertLines(M)}),w._parser.setCsiHandler({final:"M"},function(M){return w.deleteLines(M)}),w._parser.setCsiHandler({final:"P"},function(M){return w.deleteChars(M)}),w._parser.setCsiHandler({final:"S"},function(M){return w.scrollUp(M)}),w._parser.setCsiHandler({final:"T"},function(M){return w.scrollDown(M)}),w._parser.setCsiHandler({final:"X"},function(M){return w.eraseChars(M)}),w._parser.setCsiHandler({final:"Z"},function(M){return w.cursorBackwardTab(M)}),w._parser.setCsiHandler({final:"`"},function(M){return w.charPosAbsolute(M)}),w._parser.setCsiHandler({final:"a"},function(M){return w.hPositionRelative(M)}),w._parser.setCsiHandler({final:"b"},function(M){return w.repeatPrecedingCharacter(M)}),w._parser.setCsiHandler({final:"c"},function(M){return w.sendDeviceAttributesPrimary(M)}),w._parser.setCsiHandler({prefix:">",final:"c"},function(M){return w.sendDeviceAttributesSecondary(M)}),w._parser.setCsiHandler({final:"d"},function(M){return w.linePosAbsolute(M)}),w._parser.setCsiHandler({final:"e"},function(M){return w.vPositionRelative(M)}),w._parser.setCsiHandler({final:"f"},function(M){return w.hVPosition(M)}),w._parser.setCsiHandler({final:"g"},function(M){return w.tabClear(M)}),w._parser.setCsiHandler({final:"h"},function(M){return w.setMode(M)}),w._parser.setCsiHandler({prefix:"?",final:"h"},function(M){return w.setModePrivate(M)}),w._parser.setCsiHandler({final:"l"},function(M){return w.resetMode(M)}),w._parser.setCsiHandler({prefix:"?",final:"l"},function(M){return w.resetModePrivate(M)}),w._parser.setCsiHandler({final:"m"},function(M){return w.charAttributes(M)}),w._parser.setCsiHandler({final:"n"},function(M){return w.deviceStatus(M)}),w._parser.setCsiHandler({prefix:"?",final:"n"},function(M){return w.deviceStatusPrivate(M)}),w._parser.setCsiHandler({intermediates:"!",final:"p"},function(M){return w.softReset(M)}),w._parser.setCsiHandler({intermediates:" ",final:"q"},function(M){return w.setCursorStyle(M)}),w._parser.setCsiHandler({final:"r"},function(M){return w.setScrollRegion(M)}),w._parser.setCsiHandler({final:"s"},function(M){return w.saveCursor(M)}),w._parser.setCsiHandler({final:"t"},function(M){return w.windowOptions(M)}),w._parser.setCsiHandler({final:"u"},function(M){return w.restoreCursor(M)}),w._parser.setCsiHandler({intermediates:"'",final:"}"},function(M){return w.insertColumns(M)}),w._parser.setCsiHandler({intermediates:"'",final:"~"},function(M){return w.deleteColumns(M)}),w._parser.setExecuteHandler(p.C0.BEL,function(){return w.bell()}),w._parser.setExecuteHandler(p.C0.LF,function(){return w.lineFeed()}),w._parser.setExecuteHandler(p.C0.VT,function(){return w.lineFeed()}),w._parser.setExecuteHandler(p.C0.FF,function(){return w.lineFeed()}),w._parser.setExecuteHandler(p.C0.CR,function(){return w.carriageReturn()}),w._parser.setExecuteHandler(p.C0.BS,function(){return w.backspace()}),w._parser.setExecuteHandler(p.C0.HT,function(){return w.tab()}),w._parser.setExecuteHandler(p.C0.SO,function(){return w.shiftOut()}),w._parser.setExecuteHandler(p.C0.SI,function(){return w.shiftIn()}),w._parser.setExecuteHandler(p.C1.IND,function(){return w.index()}),w._parser.setExecuteHandler(p.C1.NEL,function(){return w.nextLine()}),w._parser.setExecuteHandler(p.C1.HTS,function(){return w.tabSet()}),w._parser.setOscHandler(0,new l.OscHandler(function(M){w.setTitle(M),w.setIconName(M)})),w._parser.setOscHandler(1,new l.OscHandler(function(M){return w.setIconName(M)})),w._parser.setOscHandler(2,new l.OscHandler(function(M){return w.setTitle(M)})),w._parser.setEscHandler({final:"7"},function(){return w.saveCursor()}),w._parser.setEscHandler({final:"8"},function(){return w.restoreCursor()}),w._parser.setEscHandler({final:"D"},function(){return w.index()}),w._parser.setEscHandler({final:"E"},function(){return w.nextLine()}),w._parser.setEscHandler({final:"H"},function(){return w.tabSet()}),w._parser.setEscHandler({final:"M"},function(){return w.reverseIndex()}),w._parser.setEscHandler({final:"="},function(){return w.keypadApplicationMode()}),w._parser.setEscHandler({final:">"},function(){return w.keypadNumericMode()}),w._parser.setEscHandler({final:"c"},function(){return w.fullReset()}),w._parser.setEscHandler({final:"n"},function(){return w.setgLevel(2)}),w._parser.setEscHandler({final:"o"},function(){return w.setgLevel(3)}),w._parser.setEscHandler({final:"|"},function(){return w.setgLevel(3)}),w._parser.setEscHandler({final:"}"},function(){return w.setgLevel(2)}),w._parser.setEscHandler({final:"~"},function(){return w.setgLevel(1)}),w._parser.setEscHandler({intermediates:"%",final:"@"},function(){return w.selectDefaultCharset()}),w._parser.setEscHandler({intermediates:"%",final:"G"},function(){return w.selectDefaultCharset()});var P=function(M){L._parser.setEscHandler({intermediates:"(",final:M},function(){return w.selectCharset("("+M)}),L._parser.setEscHandler({intermediates:")",final:M},function(){return w.selectCharset(")"+M)}),L._parser.setEscHandler({intermediates:"*",final:M},function(){return w.selectCharset("*"+M)}),L._parser.setEscHandler({intermediates:"+",final:M},function(){return w.selectCharset("+"+M)}),L._parser.setEscHandler({intermediates:"-",final:M},function(){return w.selectCharset("-"+M)}),L._parser.setEscHandler({intermediates:".",final:M},function(){return w.selectCharset("."+M)}),L._parser.setEscHandler({intermediates:"/",final:M},function(){return w.selectCharset("/"+M)})},L=this;for(var K in d.CHARSETS)P(K);return w._parser.setEscHandler({intermediates:"#",final:"8"},function(){return w.screenAlignmentPattern()}),w._parser.setErrorHandler(function(M){return w._logService.error("Parsing error: ",M),M}),w._parser.setDcsHandler({intermediates:"$",final:"q"},new y(w._bufferService,w._coreService,w._logService,w._optionsService)),w}return _(E,A),Object.defineProperty(E.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){A.prototype.dispose.call(this)},E.prototype.parse=function(b){var v=this._bufferService.buffer,O=v.x,D=v.y;if(this._logService.debug("parsing data",b),this._parseBuffer.length131072)for(var W=0;W0&&K.getWidth(Q.x-1)===2&&K.setCellFromCodePoint(Q.x-1,0,1,L.fg,L.bg,L.extended);for(var M=v;M=Y){if(w){for(;Q.x=this._bufferService.rows&&(Q.y=this._bufferService.rows-1),Q.lines.get(Q.ybase+Q.y).isWrapped=!0),K=Q.lines.get(Q.ybase+Q.y)}else if(Q.x=Y-1,W===2)continue}if(P&&(K.insertCells(Q.x,W,Q.getNullCell(L),L),K.getWidth(Y-1)===2&&K.setCellFromCodePoint(Y-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,L.fg,L.bg,L.extended)),K.setCellFromCodePoint(Q.x++,D,W,L.fg,L.bg,L.extended),W>0)for(;--W;)K.setCellFromCodePoint(Q.x++,0,0,L.fg,L.bg,L.extended)}else K.getWidth(Q.x-1)?K.addCodepointToCell(Q.x-1,D):K.addCodepointToCell(Q.x-2,D)}O-v>0&&(K.loadCell(Q.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Q.x0&&K.getWidth(Q.x)===0&&!K.hasContent(Q.x)&&K.setCellFromCodePoint(Q.x,0,1,L.fg,L.bg,L.extended),this._dirtyRowService.markDirty(Q.y)},E.prototype.addCsiHandler=function(b,v){var O=this;return b.final!=="t"||b.prefix||b.intermediates?this._parser.addCsiHandler(b,v):this._parser.addCsiHandler(b,function(D){return!x(D.params[0],O._optionsService.options.windowOptions)||v(D)})},E.prototype.addDcsHandler=function(b,v){return this._parser.addDcsHandler(b,new g.DcsHandler(v))},E.prototype.addEscHandler=function(b,v){return this._parser.addEscHandler(b,v)},E.prototype.addOscHandler=function(b,v){return this._parser.addOscHandler(b,new l.OscHandler(v))},E.prototype.bell=function(){this._onRequestBell.fire()},E.prototype.lineFeed=function(){var b=this._bufferService.buffer;this._dirtyRowService.markDirty(b.y),this._optionsService.options.convertEol&&(b.x=0),b.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),b.x>=this._bufferService.cols&&b.x--,this._dirtyRowService.markDirty(b.y),this._onLineFeed.fire()},E.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},E.prototype.backspace=function(){var b,v=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(v.x>0&&v.x--);if(this._restrictCursor(this._bufferService.cols),v.x>0)v.x--;else if(v.x===0&&v.y>v.scrollTop&&v.y<=v.scrollBottom&&((b=v.lines.get(v.ybase+v.y))===null||b===void 0?void 0:b.isWrapped)){v.lines.get(v.ybase+v.y).isWrapped=!1,v.y--,v.x=this._bufferService.cols-1;var O=v.lines.get(v.ybase+v.y);O.hasWidth(v.x)&&!O.hasContent(v.x)&&v.x--}this._restrictCursor()},E.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var b=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-b)}},E.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},E.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},E.prototype._restrictCursor=function(b){b===void 0&&(b=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(b,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},E.prototype._setCursor=function(b,v){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=b,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+v):(this._bufferService.buffer.x=b,this._bufferService.buffer.y=v),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},E.prototype._moveCursor=function(b,v){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+b,this._bufferService.buffer.y+v)},E.prototype.cursorUp=function(b){var v=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;v>=0?this._moveCursor(0,-Math.min(v,b.params[0]||1)):this._moveCursor(0,-(b.params[0]||1))},E.prototype.cursorDown=function(b){var v=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;v>=0?this._moveCursor(0,Math.min(v,b.params[0]||1)):this._moveCursor(0,b.params[0]||1)},E.prototype.cursorForward=function(b){this._moveCursor(b.params[0]||1,0)},E.prototype.cursorBackward=function(b){this._moveCursor(-(b.params[0]||1),0)},E.prototype.cursorNextLine=function(b){this.cursorDown(b),this._bufferService.buffer.x=0},E.prototype.cursorPrecedingLine=function(b){this.cursorUp(b),this._bufferService.buffer.x=0},E.prototype.cursorCharAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},E.prototype.cursorPosition=function(b){this._setCursor(b.length>=2?(b.params[1]||1)-1:0,(b.params[0]||1)-1)},E.prototype.charPosAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},E.prototype.hPositionRelative=function(b){this._moveCursor(b.params[0]||1,0)},E.prototype.linePosAbsolute=function(b){this._setCursor(this._bufferService.buffer.x,(b.params[0]||1)-1)},E.prototype.vPositionRelative=function(b){this._moveCursor(0,b.params[0]||1)},E.prototype.hVPosition=function(b){this.cursorPosition(b)},E.prototype.tabClear=function(b){var v=b.params[0];v===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:v===3&&(this._bufferService.buffer.tabs={})},E.prototype.cursorForwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var v=b.params[0]||1;v--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},E.prototype.cursorBackwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var v=b.params[0]||1,O=this._bufferService.buffer;v--;)O.x=O.prevStop()},E.prototype._eraseInBufferLine=function(b,v,O,D){D===void 0&&(D=!1);var W=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);W.replaceCells(v,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),D&&(W.isWrapped=!1)},E.prototype._resetBufferLine=function(b){var v=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);v.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),v.isWrapped=!1},E.prototype.eraseInDisplay=function(b){var v;switch(this._restrictCursor(),b.params[0]){case 0:for(v=this._bufferService.buffer.y,this._dirtyRowService.markDirty(v),this._eraseInBufferLine(v++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);v=this._bufferService.cols&&(this._bufferService.buffer.lines.get(v+1).isWrapped=!1);v--;)this._resetBufferLine(v);this._dirtyRowService.markDirty(0);break;case 2:for(v=this._bufferService.rows,this._dirtyRowService.markDirty(v-1);v--;)this._resetBufferLine(v);this._dirtyRowService.markDirty(0);break;case 3:var O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},E.prototype.eraseInLine=function(b){switch(this._restrictCursor(),b.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},E.prototype.insertLines=function(b){this._restrictCursor();var v=b.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.yO.scrollBottom||O.yv.scrollBottom||v.yv.scrollBottom||v.yv.scrollBottom||v.yv.scrollBottom||v.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(p.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(p.C0.ESC+"[?6c"))},E.prototype.sendDeviceAttributesSecondary=function(b){b.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(p.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(p.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(b.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(p.C0.ESC+"[>83;40003;0c"))},E.prototype._is=function(b){return(this._optionsService.options.termName+"").indexOf(b)===0},E.prototype.setMode=function(b){for(var v=0;v=2||D[1]===2&&Q+W>=5)break;D[1]&&(W=1)}while(++Q+v5)&&(b=1),v.extended.underlineStyle=b,v.fg|=268435456,b===0&&(v.fg&=-268435457),v.updateExtended()},E.prototype.charAttributes=function(b){if(b.length===1&&b.params[0]===0)return this._curAttrData.fg=a.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=a.DEFAULT_ATTR_DATA.bg);for(var v,O=b.length,D=this._curAttrData,W=0;W=30&&v<=37?(D.fg&=-50331904,D.fg|=16777216|v-30):v>=40&&v<=47?(D.bg&=-50331904,D.bg|=16777216|v-40):v>=90&&v<=97?(D.fg&=-50331904,D.fg|=16777224|v-90):v>=100&&v<=107?(D.bg&=-50331904,D.bg|=16777224|v-100):v===0?(D.fg=a.DEFAULT_ATTR_DATA.fg,D.bg=a.DEFAULT_ATTR_DATA.bg):v===1?D.fg|=134217728:v===3?D.bg|=67108864:v===4?(D.fg|=268435456,this._processUnderline(b.hasSubParams(W)?b.getSubParams(W)[0]:1,D)):v===5?D.fg|=536870912:v===7?D.fg|=67108864:v===8?D.fg|=1073741824:v===2?D.bg|=134217728:v===21?this._processUnderline(2,D):v===22?(D.fg&=-134217729,D.bg&=-134217729):v===23?D.bg&=-67108865:v===24?D.fg&=-268435457:v===25?D.fg&=-536870913:v===27?D.fg&=-67108865:v===28?D.fg&=-1073741825:v===39?(D.fg&=-67108864,D.fg|=16777215&a.DEFAULT_ATTR_DATA.fg):v===49?(D.bg&=-67108864,D.bg|=16777215&a.DEFAULT_ATTR_DATA.bg):v===38||v===48||v===58?W+=this._extractColor(b,W,D):v===59?(D.extended=D.extended.clone(),D.extended.underlineColor=-1,D.updateExtended()):v===100?(D.fg&=-67108864,D.fg|=16777215&a.DEFAULT_ATTR_DATA.fg,D.bg&=-67108864,D.bg|=16777215&a.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",v)},E.prototype.deviceStatus=function(b){switch(b.params[0]){case 5:this._coreService.triggerDataEvent(p.C0.ESC+"[0n");break;case 6:var v=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(p.C0.ESC+"["+v+";"+O+"R")}},E.prototype.deviceStatusPrivate=function(b){switch(b.params[0]){case 6:var v=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(p.C0.ESC+"[?"+v+";"+O+"R")}},E.prototype.softReset=function(b){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=a.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},E.prototype.setCursorStyle=function(b){var v=b.params[0]||1;switch(v){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var O=v%2==1;this._optionsService.options.cursorBlink=O},E.prototype.setScrollRegion=function(b){var v,O=b.params[0]||1;(b.length<2||(v=b.params[1])>this._bufferService.rows||v===0)&&(v=this._bufferService.rows),v>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=v-1,this._setCursor(0,0))},E.prototype.windowOptions=function(b){if(x(b.params[0],this._optionsService.options.windowOptions)){var v=b.length>1?b.params[1]:0;switch(b.params[0]){case 14:v!==2&&this._onRequestWindowsOptionsReport.fire(r.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(r.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(p.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:v!==0&&v!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),v!==0&&v!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:v!==0&&v!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),v!==0&&v!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},E.prototype.saveCursor=function(b){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},E.prototype.restoreCursor=function(b){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},E.prototype.setTitle=function(b){this._windowTitle=b,this._onTitleChange.fire(b)},E.prototype.setIconName=function(b){this._iconName=b},E.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},E.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},E.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},E.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,d.DEFAULT_CHARSET)},E.prototype.selectCharset=function(b){b.length===2?b[0]!=="/"&&this._charsetService.setgCharset(C[b[0]],d.CHARSETS[b[1]]||d.DEFAULT_CHARSET):this.selectDefaultCharset()},E.prototype.index=function(){this._restrictCursor();var b=this._bufferService.buffer;this._bufferService.buffer.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),this._restrictCursor()},E.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},E.prototype.reverseIndex=function(){this._restrictCursor();var b=this._bufferService.buffer;if(b.y===b.scrollTop){var v=b.scrollBottom-b.scrollTop;b.lines.shiftElements(b.ybase+b.y,v,1),b.lines.set(b.ybase+b.y,b.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}else b.y--,this._restrictCursor()},E.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},E.prototype.reset=function(){this._curAttrData=a.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=a.DEFAULT_ATTR_DATA.clone()},E.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},E.prototype.setgLevel=function(b){this._charsetService.setgLevel(b)},E.prototype.screenAlignmentPattern=function(){var b=new e.CellData;b.content=1<<22|"E".charCodeAt(0),b.fg=this._curAttrData.fg,b.bg=this._curAttrData.bg;var v=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(r),this.length=0,this._subParams=new Int32Array(p),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(r),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return _.fromArray=function(r){var p=new _;if(!r.length)return p;for(var d=r[0]instanceof Array?1:0;d>8,c=255&this._subParamsIdx[p];c-d>0&&r.push(Array.prototype.slice.call(this._subParams,d,c))}return r},_.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},_.prototype.addParam=function(r){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(r<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=r>2147483647?2147483647:r}},_.prototype.addSubParam=function(r){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(r<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=r>2147483647?2147483647:r,this._subParamsIdx[this.length-1]++}},_.prototype.hasSubParams=function(r){return(255&this._subParamsIdx[r])-(this._subParamsIdx[r]>>8)>0},_.prototype.getSubParams=function(r){var p=this._subParamsIdx[r]>>8,d=255&this._subParamsIdx[r];return d-p>0?this._subParams.subarray(p,d):null},_.prototype.getSubParamsAll=function(){for(var r={},p=0;p>8,c=255&this._subParamsIdx[p];c-d>0&&(r[p]=this._subParams.slice(d,c))}return r},_.prototype.addDigit=function(r){var p;if(!(this._rejectDigits||!(p=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var d=this._digitIsSub?this._subParams:this.params,c=d[p-1];d[p-1]=~c?Math.min(10*c+r,2147483647):r}},_}();f.Params=m},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OscHandler=f.OscParser=void 0;var m=k(23),_=k(8),r=function(){function d(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return d.prototype.addHandler=function(c,o){this._handlers[c]===void 0&&(this._handlers[c]=[]);var i=this._handlers[c];return i.push(o),{dispose:function(){var s=i.indexOf(o);s!==-1&&i.splice(s,1)}}},d.prototype.setHandler=function(c,o){this._handlers[c]=[o]},d.prototype.clearHandler=function(c){this._handlers[c]&&delete this._handlers[c]},d.prototype.setHandlerFallback=function(c){this._handlerFb=c},d.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},d.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},d.prototype._start=function(){var c=this._handlers[this._id];if(c)for(var o=c.length-1;o>=0;o--)c[o].start();else this._handlerFb(this._id,"START")},d.prototype._put=function(c,o,i){var s=this._handlers[this._id];if(s)for(var a=s.length-1;a>=0;a--)s[a].put(c,o,i);else this._handlerFb(this._id,"PUT",_.utf32ToString(c,o,i))},d.prototype._end=function(c){var o=this._handlers[this._id];if(o){for(var i=o.length-1;i>=0&&o[i].end(c)===!1;i--);for(i--;i>=0;i--)o[i].end(!1)}else this._handlerFb(this._id,"END",c)},d.prototype.start=function(){this.reset(),this._id=-1,this._state=1},d.prototype.put=function(c,o,i){if(this._state!==3){if(this._state===1)for(;o0&&this._put(c,o,i)}},d.prototype.end=function(c){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(c)),this._id=-1,this._state=0)},d}();f.OscParser=r;var p=function(){function d(c){this._handler=c,this._data="",this._hitLimit=!1}return d.prototype.start=function(){this._data="",this._hitLimit=!1},d.prototype.put=function(c,o,i){this._hitLimit||(this._data+=_.utf32ToString(c,o,i),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},d.prototype.end=function(c){var o;return this._hitLimit?o=!1:c&&(o=this._handler(this._data)),this._data="",this._hitLimit=!1,o},d}();f.OscHandler=p},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.PAYLOAD_LIMIT=void 0,f.PAYLOAD_LIMIT=1e7},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DcsHandler=f.DcsParser=void 0;var m=k(8),_=k(21),r=k(23),p=[],d=function(){function o(){this._handlers=Object.create(null),this._active=p,this._ident=0,this._handlerFb=function(){}}return o.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},o.prototype.addHandler=function(i,s){this._handlers[i]===void 0&&(this._handlers[i]=[]);var a=this._handlers[i];return a.push(s),{dispose:function(){var n=a.indexOf(s);n!==-1&&a.splice(n,1)}}},o.prototype.setHandler=function(i,s){this._handlers[i]=[s]},o.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},o.prototype.setHandlerFallback=function(i){this._handlerFb=i},o.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=p,this._ident=0},o.prototype.hook=function(i,s){if(this.reset(),this._ident=i,this._active=this._handlers[i]||p,this._active.length)for(var a=this._active.length-1;a>=0;a--)this._active[a].hook(s);else this._handlerFb(this._ident,"HOOK",s)},o.prototype.put=function(i,s,a){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(i,s,a);else this._handlerFb(this._ident,"PUT",m.utf32ToString(i,s,a))},o.prototype.unhook=function(i){if(this._active.length){for(var s=this._active.length-1;s>=0&&this._active[s].unhook(i)===!1;s--);for(s--;s>=0;s--)this._active[s].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",i);this._active=p,this._ident=0},o}();f.DcsParser=d;var c=function(){function o(i){this._handler=i,this._data="",this._hitLimit=!1}return o.prototype.hook=function(i){this._params=i.clone(),this._data="",this._hitLimit=!1},o.prototype.put=function(i,s,a){this._hitLimit||(this._data+=m.utf32ToString(i,s,a),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},o.prototype.unhook=function(i){var s;return this._hitLimit?s=!1:i&&(s=this._handler(this._data,this._params||new _.Params)),this._params=void 0,this._data="",this._hitLimit=!1,s},o}();f.DcsHandler=c},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeTerminalFromCache=f.acquireCharAtlas=void 0;var m=k(26),_=k(43),r=[];f.acquireCharAtlas=function(p,d,c,o,i){for(var s=m.generateConfig(o,i,p,c),a=0;a=0){if(m.configEquals(t.config,s))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),r.splice(a,1)):t.ownedBy.splice(n,1);break}}for(a=0;a1)for(var y=this._getJoinedRanges(t,l,u,a,e),T=0;T1)for(y=this._getJoinedRanges(t,l,u,a,e),T=0;T=this._line.length))return u?(this._line.loadCell(e,u),u):this._line.loadCell(e,new m.CellData)},t.prototype.translateToString=function(e,u,l){return this._line.translateToString(e,u,l)},t}(),a=function(){function t(e){this._core=e}return t.prototype.registerCsiHandler=function(e,u){return this._core.addCsiHandler(e,function(l){return u(l.toArray())})},t.prototype.addCsiHandler=function(e,u){return this.registerCsiHandler(e,u)},t.prototype.registerDcsHandler=function(e,u){return this._core.addDcsHandler(e,function(l,g){return u(l,g.toArray())})},t.prototype.addDcsHandler=function(e,u){return this.registerDcsHandler(e,u)},t.prototype.registerEscHandler=function(e,u){return this._core.addEscHandler(e,u)},t.prototype.addEscHandler=function(e,u){return this.registerEscHandler(e,u)},t.prototype.registerOscHandler=function(e,u){return this._core.addOscHandler(e,u)},t.prototype.addOscHandler=function(e,u){return this.registerOscHandler(e,u)},t}(),n=function(){function t(e){this._core=e}return t.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),t}()},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(Y,w){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,L){P.__proto__=L}||function(P,L){for(var K in L)L.hasOwnProperty(K)&&(P[K]=L[K])})(Y,w)},function(Y,w){function P(){this.constructor=Y}m(Y,w),Y.prototype=w===null?Object.create(w):(P.prototype=w.prototype,new P)});Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var r=k(36),p=k(37),d=k(38),c=k(12),o=k(19),i=k(40),s=k(50),a=k(51),n=k(11),t=k(7),e=k(18),u=k(54),l=k(55),g=k(56),C=k(57),x=k(59),y=k(0),T=k(16),A=k(27),E=k(60),b=k(5),v=k(61),O=k(62),D=k(63),W=k(64),Q=k(65),j=typeof window!="undefined"?window.document:null,Z=function(Y){function w(P){P===void 0&&(P={});var L=Y.call(this,P)||this;return L.browser=n,L._keyDownHandled=!1,L._onCursorMove=new y.EventEmitter,L._onKey=new y.EventEmitter,L._onRender=new y.EventEmitter,L._onSelectionChange=new y.EventEmitter,L._onTitleChange=new y.EventEmitter,L._onFocus=new y.EventEmitter,L._onBlur=new y.EventEmitter,L._onA11yCharEmitter=new y.EventEmitter,L._onA11yTabEmitter=new y.EventEmitter,L._setup(),L.linkifier=L._instantiationService.createInstance(s.Linkifier),L.linkifier2=L.register(L._instantiationService.createInstance(D.Linkifier2)),L.register(L._inputHandler.onRequestBell(function(){return L.bell()})),L.register(L._inputHandler.onRequestRefreshRows(function(K,M){return L.refresh(K,M)})),L.register(L._inputHandler.onRequestReset(function(){return L.reset()})),L.register(L._inputHandler.onRequestScroll(function(K,M){return L.scroll(K,M||void 0)})),L.register(L._inputHandler.onRequestWindowsOptionsReport(function(K){return L._reportWindowsOptions(K)})),L.register(y.forwardEvent(L._inputHandler.onCursorMove,L._onCursorMove)),L.register(y.forwardEvent(L._inputHandler.onTitleChange,L._onTitleChange)),L.register(y.forwardEvent(L._inputHandler.onA11yChar,L._onA11yCharEmitter)),L.register(y.forwardEvent(L._inputHandler.onA11yTab,L._onA11yTabEmitter)),L.register(L._bufferService.onResize(function(K){return L._afterResize(K.cols,K.rows)})),L}return _(w,Y),Object.defineProperty(w.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),w.prototype.dispose=function(){var P,L,K;this._isDisposed||(Y.prototype.dispose.call(this),(P=this._renderService)===null||P===void 0||P.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(K=(L=this.element)===null||L===void 0?void 0:L.parentNode)===null||K===void 0||K.removeChild(this.element))},w.prototype._setup=function(){Y.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(w.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),w.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},w.prototype._updateOptions=function(P){var L,K,M,H;switch(Y.prototype._updateOptions.call(this,P),P){case"fontFamily":case"fontSize":(L=this._renderService)===null||L===void 0||L.clear(),(K=this._charSizeService)===null||K===void 0||K.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(M=this.viewport)===null||M===void 0||M.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)):((H=this._accessibilityManager)===null||H===void 0||H.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},w.prototype._onTextAreaFocus=function(P){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[I"),this.updateCursorStyle(P),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},w.prototype.blur=function(){var P;return(P=this.textarea)===null||P===void 0?void 0:P.blur()},w.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},w.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var P=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),L=this._bufferService.buffer.y*P,K=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=K+"px",this.textarea.style.top=L+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=P+"px",this.textarea.style.lineHeight=P+"px",this.textarea.style.zIndex="-5"}},w.prototype._initGlobal=function(){var P=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(K){P.hasSelection()&&d.copyHandler(K,P._selectionService)}));var L=function(K){return d.handlePasteEvent(K,P.textarea,P._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",L)),this.register(t.addDisposableDomListener(this.element,"paste",L)),n.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(K){K.button===2&&d.rightClickHandler(K,P.textarea,P.screenElement,P._selectionService,P.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(K){d.rightClickHandler(K,P.textarea,P.screenElement,P._selectionService,P.options.rightClickSelectsWord)})),n.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(K){K.button===1&&d.moveTextAreaUnderMouseCursor(K,P.textarea,P.screenElement)}))},w.prototype._bindKeys=function(){var P=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(L){return P._keyUp(L)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(L){return P._keyDown(L)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(L){return P._keyPress(L)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return P._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(L){return P._compositionHelper.compositionupdate(L)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return P._compositionHelper.compositionend()})),this.register(this.onRender(function(){return P._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(L){return P._queueLinkification(L.start,L.end)}))},w.prototype.open=function(P){var L=this;if(!P)throw new Error("Terminal requires a parent element.");j.body.contains(P)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=P.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),P.appendChild(this.element);var K=j.createDocumentFragment();this._viewportElement=j.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),K.appendChild(this._viewportElement),this._viewportScrollArea=j.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=j.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=j.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),K.appendChild(this.screenElement),this.textarea=j.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",e.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(t.addDisposableDomListener(this.textarea,"focus",function(ae){return L._onTextAreaFocus(ae)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return L._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var M=this._instantiationService.createInstance(W.CoreBrowserService,this.textarea);this._instantiationService.setService(b.ICoreBrowserService,M),this._charSizeService=this._instantiationService.createInstance(v.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(b.ICharSizeService,this._charSizeService),this._compositionView=j.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(r.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(K),this._theme=this.options.theme||this._theme,this._colorManager=new A.ColorManager(j,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(ae){return L._colorManager.onOptionsChange(ae)})),this._colorManager.setTheme(this._theme);var H=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(E.RenderService,H,this.rows,this.screenElement)),this._instantiationService.setService(b.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(ae){return L._onRender.fire(ae)})),this.onResize(function(ae){return L._renderService.resize(ae.cols,ae.rows)}),this._soundService=this._instantiationService.createInstance(u.SoundService),this._instantiationService.setService(b.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(b.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(p.Viewport,function(ae,ve){return L.scrollLines(ae,ve)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return L.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){L._renderService.onCursorMove(),L._syncTextArea()})),this.register(this.onResize(function(){return L._renderService.onResize(L.cols,L.rows)})),this.register(this.onBlur(function(){return L._renderService.onBlur()})),this.register(this.onFocus(function(){return L._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return L.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(a.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(b.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(ae){return L.scrollLines(ae.amount,ae.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return L._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(ae){return L._renderService.onSelectionChanged(ae.start,ae.end,ae.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(ae){L.textarea.value=ae,L.textarea.focus(),L.textarea.select()})),this.register(this.onScroll(function(){L.viewport.syncScrollArea(),L._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return L._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(l.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return L._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(ae){return L._selectionService.onMouseDown(ae)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},w.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(i.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(C.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},w.prototype._setTheme=function(P){var L,K,M;this._theme=P,(L=this._colorManager)===null||L===void 0||L.setTheme(P),(K=this._renderService)===null||K===void 0||K.setColors(this._colorManager.colors),(M=this.viewport)===null||M===void 0||M.onThemeChange(this._colorManager.colors)},w.prototype.bindMouse=function(){var P=this,L=this,K=this.element;function M(z){var ne,fe,ie=L._mouseService.getRawByteCoords(z,L.screenElement,L.cols,L.rows);if(!ie)return!1;switch(z.overrideType||z.type){case"mousemove":fe=32,z.buttons===void 0?(ne=3,z.button!==void 0&&(ne=z.button<3?z.button:3)):ne=1&z.buttons?0:4&z.buttons?1:2&z.buttons?2:3;break;case"mouseup":fe=0,ne=z.button<3?z.button:3;break;case"mousedown":fe=1,ne=z.button<3?z.button:3;break;case"wheel":z.deltaY!==0&&(fe=z.deltaY<0?0:1),ne=4;break;default:return!1}return!(fe===void 0||ne===void 0||ne>4)&&L._coreMouseService.triggerMouseEvent({col:ie.x-33,row:ie.y-33,button:ne,action:fe,ctrl:z.ctrlKey,alt:z.altKey,shift:z.shiftKey})}var H={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ae=function(z){return M(z),z.buttons||(P._document.removeEventListener("mouseup",H.mouseup),H.mousedrag&&P._document.removeEventListener("mousemove",H.mousedrag)),P.cancel(z)},ve=function(z){return M(z),z.preventDefault(),P.cancel(z)},de=function(z){z.buttons&&M(z)},be=function(z){z.buttons||M(z)};this.register(this._coreMouseService.onProtocolChange(function(z){z?(P.optionsService.options.logLevel==="debug"&&P._logService.debug("Binding to mouse events:",P._coreMouseService.explainEvents(z)),P.element.classList.add("enable-mouse-events"),P._selectionService.disable()):(P._logService.debug("Unbinding from mouse events."),P.element.classList.remove("enable-mouse-events"),P._selectionService.enable()),8&z?H.mousemove||(K.addEventListener("mousemove",be),H.mousemove=be):(K.removeEventListener("mousemove",H.mousemove),H.mousemove=null),16&z?H.wheel||(K.addEventListener("wheel",ve,{passive:!1}),H.wheel=ve):(K.removeEventListener("wheel",H.wheel),H.wheel=null),2&z?H.mouseup||(H.mouseup=ae):(P._document.removeEventListener("mouseup",H.mouseup),H.mouseup=null),4&z?H.mousedrag||(H.mousedrag=de):(P._document.removeEventListener("mousemove",H.mousedrag),H.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(K,"mousedown",function(z){if(z.preventDefault(),P.focus(),P._coreMouseService.areMouseEventsActive&&!P._selectionService.shouldForceSelection(z))return M(z),H.mouseup&&P._document.addEventListener("mouseup",H.mouseup),H.mousedrag&&P._document.addEventListener("mousemove",H.mousedrag),P.cancel(z)})),this.register(t.addDisposableDomListener(K,"wheel",function(z){if(!H.wheel){if(!P.buffer.hasScrollback){var ne=P.viewport.getLinesScrolled(z);if(ne===0)return;for(var fe=c.C0.ESC+(P._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(z.deltaY<0?"A":"B"),ie="",oe=0;oe47)},w.prototype._keyUp=function(P){this._customKeyEventHandler&&this._customKeyEventHandler(P)===!1||(function(L){return L.keyCode===16||L.keyCode===17||L.keyCode===18}(P)||this.focus(),this.updateCursorStyle(P))},w.prototype._keyPress=function(P){var L;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(P)===!1)return!1;if(this.cancel(P),P.charCode)L=P.charCode;else if(P.which===null||P.which===void 0)L=P.keyCode;else{if(P.which===0||P.charCode===0)return!1;L=P.which}return!(!L||(P.altKey||P.ctrlKey||P.metaKey)&&!this._isThirdLevelShift(this.browser,P))&&(L=String.fromCharCode(L),this._onKey.fire({key:L,domEvent:P}),this._showCursor(),this._coreService.triggerDataEvent(L,!0),!0)},w.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},w.prototype.resize=function(P,L){P!==this.cols||L!==this.rows?Y.prototype.resize.call(this,P,L):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},w.prototype._afterResize=function(P,L){var K,M;(K=this._charSizeService)===null||K===void 0||K.measure(),(M=this.viewport)===null||M===void 0||M.syncScrollArea(!0)},w.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var P=1;P=0;e--)(a=c[e])&&(t=(n<3?a(t):n>3?a(o,i,t):a(o,i))||t);return n>3&&t&&Object.defineProperty(o,i,t),t},_=this&&this.__param||function(c,o){return function(i,s){o(i,s,c)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CompositionHelper=void 0;var r=k(5),p=k(1),d=function(){function c(o,i,s,a,n,t){this._textarea=o,this._compositionView=i,this._bufferService=s,this._optionsService=a,this._charSizeService=n,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(c.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),c.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},c.prototype.compositionupdate=function(o){var i=this;this._compositionView.textContent=o.data,this.updateCompositionElements(),setTimeout(function(){i._compositionPosition.end=i._textarea.value.length},0)},c.prototype.compositionend=function(){this._finalizeComposition(!0)},c.prototype.keydown=function(o){if(this._isComposing||this._isSendingComposition){if(o.keyCode===229)return!1;if(o.keyCode===16||o.keyCode===17||o.keyCode===18)return!1;this._finalizeComposition(!1)}return o.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},c.prototype._finalizeComposition=function(o){var i=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,o){var s={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(i._isSendingComposition){i._isSendingComposition=!1;var n=void 0;n=i._isComposing?i._textarea.value.substring(s.start,s.end):i._textarea.value.substring(s.start),i._coreService.triggerDataEvent(n,!0)}},0)}else{this._isSendingComposition=!1;var a=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(a,!0)}},c.prototype._handleAnyTextareaChanges=function(){var o=this,i=this._textarea.value;setTimeout(function(){if(!o._isComposing){var s=o._textarea.value.replace(i,"");s.length>0&&o._coreService.triggerDataEvent(s,!0)}},0)},c.prototype.updateCompositionElements=function(o){var i=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var s=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),a=this._bufferService.buffer.y*s,n=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=n+"px",this._compositionView.style.top=a+"px",this._compositionView.style.height=s+"px",this._compositionView.style.lineHeight=s+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=n+"px",this._textarea.style.top=a+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}o||setTimeout(function(){return i.updateCompositionElements(!0)},0)}},c=m([_(2,p.IBufferService),_(3,p.IOptionsService),_(4,r.ICharSizeService),_(5,p.ICoreService)],c)}();f.CompositionHelper=d},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(a,n){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])})(a,n)},function(a,n){function t(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}),r=this&&this.__decorate||function(a,n,t,e){var u,l=arguments.length,g=l<3?n:e===null?e=Object.getOwnPropertyDescriptor(n,t):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,n,t,e);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Viewport=void 0;var d=k(2),c=k(7),o=k(5),i=k(1),s=function(a){function n(t,e,u,l,g,C,x){var y=a.call(this)||this;return y._scrollLines=t,y._viewportElement=e,y._scrollArea=u,y._bufferService=l,y._optionsService=g,y._charSizeService=C,y._renderService=x,y.scrollBarWidth=0,y._currentRowHeight=0,y._lastRecordedBufferLength=0,y._lastRecordedViewportHeight=0,y._lastRecordedBufferHeight=0,y._lastTouchY=0,y._lastScrollTop=0,y._wheelPartialScroll=0,y._refreshAnimationFrame=null,y._ignoreNextScrollEvent=!1,y.scrollBarWidth=y._viewportElement.offsetWidth-y._scrollArea.offsetWidth||15,y.register(c.addDisposableDomListener(y._viewportElement,"scroll",y._onScroll.bind(y))),setTimeout(function(){return y.syncScrollArea()},0),y}return _(n,a),n.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},n.prototype._refresh=function(t){var e=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return e._innerRefresh()}))},n.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null},n.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===e&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},n.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var e=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(e,!0)}},n.prototype._bubbleScroll=function(t,e){var u=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(e<0&&this._viewportElement.scrollTop!==0||e>0&&u0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._bufferService.rows),e},n.prototype._applyScrollModifier=function(t,e){var u=this._optionsService.options.fastScrollModifier;return u==="alt"&&e.altKey||u==="ctrl"&&e.ctrlKey||u==="shift"&&e.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},n.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},n.prototype.onTouchMove=function(t){var e=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,e!==0&&(this._viewportElement.scrollTop+=e,this._bubbleScroll(t,e))},n=r([p(3,i.IBufferService),p(4,i.IOptionsService),p(5,o.ICharSizeService),p(6,o.IRenderService)],n)}(d.Disposable);f.Viewport=s},function(S,f,k){"use strict";function m(d){return d.replace(/\r?\n/g,"\r")}function _(d,c){return c?"[200~"+d+"[201~":d}function r(d,c,o){d=_(d=m(d),o.decPrivateModes.bracketedPasteMode),o.triggerDataEvent(d,!0),c.value=""}function p(d,c,o){var i=o.getBoundingClientRect(),s=d.clientX-i.left-10,a=d.clientY-i.top-10;c.style.width="20px",c.style.height="20px",c.style.left=s+"px",c.style.top=a+"px",c.style.zIndex="1000",c.focus()}Object.defineProperty(f,"__esModule",{value:!0}),f.rightClickHandler=f.moveTextAreaUnderMouseCursor=f.paste=f.handlePasteEvent=f.copyHandler=f.bracketTextForPaste=f.prepareTextForTerminal=void 0,f.prepareTextForTerminal=m,f.bracketTextForPaste=_,f.copyHandler=function(d,c){d.clipboardData&&d.clipboardData.setData("text/plain",c.selectionText),d.preventDefault()},f.handlePasteEvent=function(d,c,o){d.stopPropagation(),d.clipboardData&&r(d.clipboardData.getData("text/plain"),c,o)},f.paste=r,f.moveTextAreaUnderMouseCursor=p,f.rightClickHandler=function(d,c,o,i,s){p(d,c,o),s&&!i.isClickInSelection(d)&&i.selectWordAtCursor(d),c.value=i.selectionText,c.select()}},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(a,n){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])})(a,n)},function(a,n){function t(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(f,"__esModule",{value:!0}),f.EscapeSequenceParser=f.VT500_TRANSITION_TABLE=f.TransitionTable=void 0;var r=k(2),p=k(15),d=k(21),c=k(22),o=k(24),i=function(){function a(n){this.table=new Uint8Array(n)}return a.prototype.setDefault=function(n,t){p.fill(this.table,n<<4|t)},a.prototype.add=function(n,t,e,u){this.table[t<<8|n]=e<<4|u},a.prototype.addMany=function(n,t,e,u){for(var l=0;l1)throw new Error("only one byte as prefix supported");if((u=t.prefix.charCodeAt(0))&&60>u||u>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var l=0;lg||g>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");u<<=8,u|=g}}if(t.final.length!==1)throw new Error("final must be a single byte");var C=t.final.charCodeAt(0);if(e[0]>C||C>e[1])throw new Error("final must be in range "+e[0]+" .. "+e[1]);return u<<=8,u|=C},n.prototype.identToString=function(t){for(var e=[];t;)e.push(String.fromCharCode(255&t)),t>>=8;return e.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(t){this._printHandler=t},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.addEscHandler=function(t,e){var u=this._identifier(t,[48,126]);this._escHandlers[u]===void 0&&(this._escHandlers[u]=[]);var l=this._escHandlers[u];return l.push(e),{dispose:function(){var g=l.indexOf(e);g!==-1&&l.splice(g,1)}}},n.prototype.setEscHandler=function(t,e){this._escHandlers[this._identifier(t,[48,126])]=[e]},n.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},n.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},n.prototype.setExecuteHandler=function(t,e){this._executeHandlers[t.charCodeAt(0)]=e},n.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},n.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},n.prototype.addCsiHandler=function(t,e){var u=this._identifier(t);this._csiHandlers[u]===void 0&&(this._csiHandlers[u]=[]);var l=this._csiHandlers[u];return l.push(e),{dispose:function(){var g=l.indexOf(e);g!==-1&&l.splice(g,1)}}},n.prototype.setCsiHandler=function(t,e){this._csiHandlers[this._identifier(t)]=[e]},n.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},n.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},n.prototype.addDcsHandler=function(t,e){return this._dcsParser.addHandler(this._identifier(t),e)},n.prototype.setDcsHandler=function(t,e){this._dcsParser.setHandler(this._identifier(t),e)},n.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},n.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},n.prototype.addOscHandler=function(t,e){return this._oscParser.addHandler(t,e)},n.prototype.setOscHandler=function(t,e){this._oscParser.setHandler(t,e)},n.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},n.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},n.prototype.setErrorHandler=function(t){this._errorHandler=t},n.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},n.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},n.prototype.parse=function(t,e){for(var u=0,l=0,g=this.currentState,C=this._oscParser,x=this._dcsParser,y=this._collect,T=this._params,A=this._transitions.table,E=0;E>4){case 2:for(var b=E+1;;++b){if(b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}if(++b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}if(++b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}if(++b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}}break;case 3:this._executeHandlers[u]?this._executeHandlers[u]():this._executeHandlerFb(u),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:E,code:u,currentState:g,collect:y,params:T,abort:!1}).abort)return;break;case 7:for(var v=this._csiHandlers[y<<8|u],O=v?v.length-1:-1;O>=0&&v[O](T)===!1;O--);O<0&&this._csiHandlerFb(y<<8|u,T),this.precedingCodepoint=0;break;case 8:do switch(u){case 59:T.addParam(0);break;case 58:T.addSubParam(-1);break;default:T.addDigit(u-48)}while(++E47&&u<60);E--;break;case 9:y<<=8,y|=u;break;case 10:for(var D=this._escHandlers[y<<8|u],W=D?D.length-1:-1;W>=0&&D[W]()===!1;W--);W<0&&this._escHandlerFb(y<<8|u),this.precedingCodepoint=0;break;case 11:T.reset(),T.addParam(0),y=0;break;case 12:x.hook(y<<8|u,T);break;case 13:for(var Q=E+1;;++Q)if(Q>=e||(u=t[Q])===24||u===26||u===27||u>127&&u<160){x.put(t,E,Q),E=Q-1;break}break;case 14:x.unhook(u!==24&&u!==26),u===27&&(l|=1),T.reset(),T.addParam(0),y=0,this.precedingCodepoint=0;break;case 4:C.start();break;case 5:for(var j=E+1;;j++)if(j>=e||(u=t[j])<32||u>127&&u<=159){C.put(t,E,j),E=j-1;break}break;case 6:C.end(u!==24&&u!==26),u===27&&(l|=1),T.reset(),T.addParam(0),y=0,this.precedingCodepoint=0}g=15&l}this._collect=y,this.currentState=g},n}(r.Disposable);f.EscapeSequenceParser=s},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(C,x){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,T){y.__proto__=T}||function(y,T){for(var A in T)T.hasOwnProperty(A)&&(y[A]=T[A])})(C,x)},function(C,x){function y(){this.constructor=C}m(C,x),C.prototype=x===null?Object.create(x):(y.prototype=x.prototype,new y)}),r=this&&this.__decorate||function(C,x,y,T){var A,E=arguments.length,b=E<3?x:T===null?T=Object.getOwnPropertyDescriptor(x,y):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(C,x,y,T);else for(var v=C.length-1;v>=0;v--)(A=C[v])&&(b=(E<3?A(b):E>3?A(x,y,b):A(x,y))||b);return E>3&&b&&Object.defineProperty(x,y,b),b},p=this&&this.__param||function(C,x){return function(y,T){x(y,T,C)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Renderer=void 0;var d=k(41),c=k(47),o=k(48),i=k(49),s=k(29),a=k(2),n=k(5),t=k(1),e=k(25),u=k(0),l=1,g=function(C){function x(y,T,A,E,b,v,O,D,W){var Q=C.call(this)||this;Q._colors=y,Q._screenElement=T,Q._bufferService=b,Q._charSizeService=v,Q._optionsService=O,Q._id=l++,Q._onRequestRedraw=new u.EventEmitter;var j=Q._optionsService.options.allowTransparency;return Q._characterJoinerRegistry=new s.CharacterJoinerRegistry(Q._bufferService),Q._renderLayers=[new d.TextRenderLayer(Q._screenElement,0,Q._colors,Q._characterJoinerRegistry,j,Q._id,Q._bufferService,O),new c.SelectionRenderLayer(Q._screenElement,1,Q._colors,Q._id,Q._bufferService,O),new i.LinkRenderLayer(Q._screenElement,2,Q._colors,Q._id,A,E,Q._bufferService,O),new o.CursorRenderLayer(Q._screenElement,3,Q._colors,Q._id,Q._onRequestRedraw,Q._bufferService,O,D,W)],Q.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Q._devicePixelRatio=window.devicePixelRatio,Q._updateDimensions(),Q.onOptionsChanged(),Q}return _(x,C),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){for(var y=0,T=this._renderLayers;y0&&T===y[0][0]){E=!0;var v=y.shift();A=new o.JoinedCellData(this._workCell,x.translateToString(!0,v[0],v[1]),v[1]-v[0]),b=v[1]-1}!E&&this._isOverlapping(A)&&bthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[e]=u,u},n}(p.BaseRenderLayer);f.TextRenderLayer=s},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GridCache=void 0;var m=function(){function _(){this.cache=[]}return _.prototype.resize=function(r,p){for(var d=0;d>>24,Z=W.rgba>>>16&255,Y=W.rgba>>>8&255,w=0;w=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=r,d.value=p,this._map[r]=d;else{var c=this._nodePool;c.length>0?((d=c.pop()).key=r,d.value=p):d={prev:null,next:null,key:r,value:p},this._map[r]=d,this.size++}this._appendNode(d)},_}();f.LRUMap=m},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(p,d){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var i in o)o.hasOwnProperty(i)&&(c[i]=o[i])})(p,d)},function(p,d){function c(){this.constructor=p}m(p,d),p.prototype=d===null?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionRenderLayer=void 0;var r=function(p){function d(c,o,i,s,a,n){var t=p.call(this,c,"selection",o,!0,i,s,a,n)||this;return t._clearState(),t}return _(d,p),d.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},d.prototype.resize=function(c){p.prototype.resize.call(this,c),this._clearState()},d.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},d.prototype.onSelectionChanged=function(c,o,i){if(this._didStateChange(c,o,i,this._bufferService.buffer.ydisp))if(this._clearAll(),c&&o){var s=c[1]-this._bufferService.buffer.ydisp,a=o[1]-this._bufferService.buffer.ydisp,n=Math.max(s,0),t=Math.min(a,this._bufferService.rows-1);if(!(n>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,i){var e=c[0],u=o[0]-e,l=t-n+1;this._fillCells(e,n,u,l)}else{e=s===n?c[0]:0;var g=n===t?o[0]:this._bufferService.cols;this._fillCells(e,n,g-e,1);var C=Math.max(t-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,C),n!==t){var x=a===t?o[0]:this._bufferService.cols;this._fillCells(0,t,x,1)}}this._state.start=[c[0],c[1]],this._state.end=[o[0],o[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},d.prototype._didStateChange=function(c,o,i,s){return!this._areCoordinatesEqual(c,this._state.start)||!this._areCoordinatesEqual(o,this._state.end)||i!==this._state.columnSelectMode||s!==this._state.ydisp},d.prototype._areCoordinatesEqual=function(c,o){return!(!c||!o)&&c[0]===o[0]&&c[1]===o[1]},d}(k(13).BaseRenderLayer);f.SelectionRenderLayer=r},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(o,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var n in a)a.hasOwnProperty(n)&&(s[n]=a[n])})(o,i)},function(o,i){function s(){this.constructor=o}m(o,i),o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.CursorRenderLayer=void 0;var r=k(13),p=k(4),d=function(o){function i(s,a,n,t,e,u,l,g,C){var x=o.call(this,s,"cursor",a,!0,n,t,u,l)||this;return x._onRequestRedraw=e,x._coreService=g,x._coreBrowserService=C,x._cell=new p.CellData,x._state={x:0,y:0,isFocused:!1,style:"",width:0},x._cursorRenderers={bar:x._renderBarCursor.bind(x),block:x._renderBlockCursor.bind(x),underline:x._renderUnderlineCursor.bind(x)},x}return _(i,o),i.prototype.resize=function(s){o.prototype.resize.call(this,s),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},i.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},i.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onOptionsChanged=function(){var s,a=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new c(this._coreBrowserService.isFocused,function(){a._render(!0)})):((s=this._cursorBlinkStateManager)===null||s===void 0||s.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype.onGridChanged=function(s,a){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype._render=function(s){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var a=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=a-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(a).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var e=this._optionsService.options.cursorStyle;return e&&e!=="block"?this._cursorRenderers[e](t,n,this._cell):this._renderBlurCursor(t,n,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=n,this._state.isFocused=!1,this._state.style=e,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,n,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},i.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},i.prototype._renderBarCursor=function(s,a,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(s,a,this._optionsService.options.cursorWidth),this._ctx.restore()},i.prototype._renderBlockCursor=function(s,a,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(s,a,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,s,a),this._ctx.restore()},i.prototype._renderUnderlineCursor=function(s,a,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(s,a),this._ctx.restore()},i.prototype._renderBlurCursor=function(s,a,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(s,a,n.getWidth(),1),this._ctx.restore()},i}(r.BaseRenderLayer);f.CursorRenderLayer=d;var c=function(){function o(i,s){this._renderCallback=s,this.isCursorVisible=!0,i&&this._restartInterval()}return Object.defineProperty(o.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.restartBlinkAnimation=function(){var i=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})))},o.prototype._restartInterval=function(i){var s=this;i===void 0&&(i=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(s._animationTimeRestarted){var a=600-(Date.now()-s._animationTimeRestarted);if(s._animationTimeRestarted=void 0,a>0)return void s._restartInterval(a)}s.isCursorVisible=!1,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0}),s._blinkInterval=window.setInterval(function(){if(s._animationTimeRestarted){var n=600-(Date.now()-s._animationTimeRestarted);return s._animationTimeRestarted=void 0,void s._restartInterval(n)}s.isCursorVisible=!s.isCursorVisible,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0})},600)},i)},o.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},o}()},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(o,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var n in a)a.hasOwnProperty(n)&&(s[n]=a[n])})(o,i)},function(o,i){function s(){this.constructor=o}m(o,i),o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.LinkRenderLayer=void 0;var r=k(13),p=k(9),d=k(26),c=function(o){function i(s,a,n,t,e,u,l,g){var C=o.call(this,s,"link",a,!0,n,t,l,g)||this;return e.onShowLinkUnderline(function(x){return C._onShowLinkUnderline(x)}),e.onHideLinkUnderline(function(x){return C._onHideLinkUnderline(x)}),u.onShowLinkUnderline(function(x){return C._onShowLinkUnderline(x)}),u.onHideLinkUnderline(function(x){return C._onHideLinkUnderline(x)}),C}return _(i,o),i.prototype.resize=function(s){o.prototype.resize.call(this,s),this._state=void 0},i.prototype.reset=function(){this._clearCurrentLink()},i.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var s=this._state.y2-this._state.y1-1;s>0&&this._clearCells(0,this._state.y1+1,this._state.cols,s),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},i.prototype._onShowLinkUnderline=function(s){if(s.fg===p.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:s.fg&&d.is256Color(s.fg)?this._ctx.fillStyle=this._colors.ansi[s.fg].css:this._ctx.fillStyle=this._colors.foreground.css,s.y1===s.y2)this._fillBottomLineAtCells(s.x1,s.y1,s.x2-s.x1);else{this._fillBottomLineAtCells(s.x1,s.y1,s.cols-s.x1);for(var a=s.y1+1;a=0;u--)(n=o[u])&&(e=(t<3?n(e):t>3?n(i,s,e):n(i,s))||e);return t>3&&e&&Object.defineProperty(i,s,e),e},_=this&&this.__param||function(o,i){return function(s,a){i(s,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZone=f.Linkifier=void 0;var r=k(0),p=k(1),d=function(){function o(i,s,a){this._bufferService=i,this._logService=s,this._unicodeService=a,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new r.EventEmitter,this._onHideLinkUnderline=new r.EventEmitter,this._onLinkTooltip=new r.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(o.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),o.prototype.attachToDom=function(i,s){this._element=i,this._mouseZoneManager=s},o.prototype.linkifyRows=function(i,s){var a=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=i,this._rowsToLinkify.end=s):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,i),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,s)),this._mouseZoneManager.clearAll(i,s),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return a._linkifyRows()},o._timeBeforeLatency))},o.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var i=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var s=i.ydisp+this._rowsToLinkify.start;if(!(s>=i.lines.length)){for(var a=i.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,n=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,s,a,n,n);t.hasNext();)for(var e=t.next(),u=0;u=0;s--)if(i.priority<=this._linkMatchers[s].priority)return void this._linkMatchers.splice(s+1,0,i);this._linkMatchers.splice(0,0,i)}else this._linkMatchers.push(i)},o.prototype.deregisterLinkMatcher=function(i){for(var s=0;s>9&511:void 0;a.validationCallback?a.validationCallback(C,function(E){t._rowsTimeoutId||E&&t._addLink(x[1],x[0]-t._bufferService.buffer.ydisp,C,a,A)}):g._addLink(x[1],x[0]-g._bufferService.buffer.ydisp,C,a,A)},g=this;(n=e.exec(s))!==null&&!(l()==="break"););},o.prototype._addLink=function(i,s,a,n,t){var e=this;if(this._mouseZoneManager&&this._element){var u=this._unicodeService.getStringCellWidth(a),l=i%this._bufferService.cols,g=s+Math.floor(i/this._bufferService.cols),C=(l+u)%this._bufferService.cols,x=g+Math.floor((l+u)/this._bufferService.cols);C===0&&(C=this._bufferService.cols,x--),this._mouseZoneManager.add(new c(l+1,g+1,C+1,x+1,function(y){if(n.handler)return n.handler(y,a);var T=window.open();T?(T.opener=null,T.location.href=a):console.warn("Opening link blocked as opener could not be cleared")},function(){e._onShowLinkUnderline.fire(e._createLinkHoverEvent(l,g,C,x,t)),e._element.classList.add("xterm-cursor-pointer")},function(y){e._onLinkTooltip.fire(e._createLinkHoverEvent(l,g,C,x,t)),n.hoverTooltipCallback&&n.hoverTooltipCallback(y,a,{start:{x:l,y:g},end:{x:C,y:x}})},function(){e._onHideLinkUnderline.fire(e._createLinkHoverEvent(l,g,C,x,t)),e._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(y){return!n.willLinkActivate||n.willLinkActivate(y,a)}))}},o.prototype._createLinkHoverEvent=function(i,s,a,n,t){return{x1:i,y1:s,x2:a,y2:n,cols:this._bufferService.cols,fg:t}},o._timeBeforeLatency=200,o=m([_(0,p.IBufferService),_(1,p.ILogService),_(2,p.IUnicodeService)],o)}();f.Linkifier=d;var c=function(o,i,s,a,n,t,e,u,l){this.x1=o,this.y1=i,this.x2=s,this.y2=a,this.clickCallback=n,this.hoverCallback=t,this.tooltipCallback=e,this.leaveCallback=u,this.willLinkActivate=l};f.MouseZone=c},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(C,x){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,T){y.__proto__=T}||function(y,T){for(var A in T)T.hasOwnProperty(A)&&(y[A]=T[A])})(C,x)},function(C,x){function y(){this.constructor=C}m(C,x),C.prototype=x===null?Object.create(x):(y.prototype=x.prototype,new y)}),r=this&&this.__decorate||function(C,x,y,T){var A,E=arguments.length,b=E<3?x:T===null?T=Object.getOwnPropertyDescriptor(x,y):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(C,x,y,T);else for(var v=C.length-1;v>=0;v--)(A=C[v])&&(b=(E<3?A(b):E>3?A(x,y,b):A(x,y))||b);return E>3&&b&&Object.defineProperty(x,y,b),b},p=this&&this.__param||function(C,x){return function(y,T){x(y,T,C)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionService=void 0;var d=k(11),c=k(52),o=k(4),i=k(0),s=k(5),a=k(1),n=k(30),t=k(53),e=k(2),u=String.fromCharCode(160),l=new RegExp(u,"g"),g=function(C){function x(y,T,A,E,b,v,O){var D=C.call(this)||this;return D._element=y,D._screenElement=T,D._bufferService=A,D._coreService=E,D._mouseService=b,D._optionsService=v,D._renderService=O,D._dragScrollAmount=0,D._enabled=!0,D._workCell=new o.CellData,D._mouseDownTimeStamp=0,D._onLinuxMouseSelection=D.register(new i.EventEmitter),D._onRedrawRequest=D.register(new i.EventEmitter),D._onSelectionChange=D.register(new i.EventEmitter),D._onRequestScrollLines=D.register(new i.EventEmitter),D._mouseMoveListener=function(W){return D._onMouseMove(W)},D._mouseUpListener=function(W){return D._onMouseUp(W)},D._coreService.onUserInput(function(){D.hasSelection&&D.clearSelection()}),D._trimListener=D._bufferService.buffer.lines.onTrim(function(W){return D._onTrim(W)}),D.register(D._bufferService.buffers.onBufferActivate(function(W){return D._onBufferActivate(W)})),D.enable(),D._model=new c.SelectionModel(D._bufferService),D._activeSelectionMode=0,D}return _(x,C),Object.defineProperty(x.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._removeMouseDownListeners()},x.prototype.reset=function(){this.clearSelection()},x.prototype.disable=function(){this.clearSelection(),this._enabled=!1},x.prototype.enable=function(){this._enabled=!0},Object.defineProperty(x.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!y||!T)&&(y[0]!==T[0]||y[1]!==T[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!y||!T)return"";var A=this._bufferService.buffer,E=[];if(this._activeSelectionMode===3){if(y[0]===T[0])return"";for(var b=y[1];b<=T[1];b++){var v=A.translateBufferLineToString(b,!0,y[0],T[0]);E.push(v)}}else{var O=y[1]===T[1]?T[0]:void 0;for(E.push(A.translateBufferLineToString(y[1],!0,y[0],O)),b=y[1]+1;b<=T[1]-1;b++){var D=A.lines.get(b);v=A.translateBufferLineToString(b,!0),D&&D.isWrapped?E[E.length-1]+=v:E.push(v)}y[1]!==T[1]&&(D=A.lines.get(T[1]),v=A.translateBufferLineToString(T[1],!0,0,T[0]),D&&D.isWrapped?E[E.length-1]+=v:E.push(v))}return E.map(function(W){return W.replace(l," ")}).join(d.isWindows?`\r +(window.webpackJsonp=window.webpackJsonp||[]).push([[164,3,6,8,9,10,13],{"+QRC":function(Re,I,h){"use strict";var S=h("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},L="Copy to clipboard: #{key}, Enter";function m(r){var p=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,p)}function _(r,p){var d,c,o,i,s,a,n=!1;p||(p={}),d=p.debug||!1;try{o=S(),i=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=r,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(e){if(e.stopPropagation(),p.format)if(e.preventDefault(),typeof e.clipboardData=="undefined"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var u=f[p.format]||f.default;window.clipboardData.setData(u,r)}else e.clipboardData.clearData(),e.clipboardData.setData(p.format,r);p.onCopy&&(e.preventDefault(),p.onCopy(e.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");n=!0}catch(e){d&&console.error("unable to copy using execCommand: ",e),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(p.format||"text",r),p.onCopy&&p.onCopy(window.clipboardData),n=!0}catch(u){d&&console.error("unable to copy using clipboardData: ",u),d&&console.error("falling back to prompt"),c=m("message"in p?p.message:L),window.prompt(c,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return n}Re.exports=_},"/GNS":function(Re,I,h){Re.exports=h.p+"static/search1.c4136dd4.png"},"/POA":function(Re,I,h){!function(S,f){if(!0)Re.exports=f();else var L,m}(window,function(){return function(S){var f={};function L(m){if(f[m])return f[m].exports;var _=f[m]={i:m,l:!1,exports:{}};return S[m].call(_.exports,_,_.exports,L),_.l=!0,_.exports}return L.m=S,L.c=f,L.d=function(m,_,r){L.o(m,_)||Object.defineProperty(m,_,{enumerable:!0,get:r})},L.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},L.t=function(m,_){if(1&_&&(m=L(m)),8&_)return m;if(4&_&&typeof m=="object"&&m&&m.__esModule)return m;var r=Object.create(null);if(L.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:m}),2&_&&typeof m!="string")for(var p in m)L.d(r,p,function(d){return m[d]}.bind(null,p));return r},L.n=function(m){var _=m&&m.__esModule?function(){return m.default}:function(){return m};return L.d(_,"a",_),_},L.o=function(m,_){return Object.prototype.hasOwnProperty.call(m,_)},L.p="",L(L.s=34)}([function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.forwardEvent=f.EventEmitter=void 0;var m=function(){function _(){this._listeners=[],this._disposed=!1}return Object.defineProperty(_.prototype,"event",{get:function(){var r=this;return this._event||(this._event=function(p){return r._listeners.push(p),{dispose:function(){if(!r._disposed){for(var d=0;d>22},i.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?r.stringFromCodePoint(2097151&this.content):""},i.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},i.prototype.setFromCharData=function(s){this.fg=s[p.CHAR_DATA_ATTR_INDEX],this.bg=0;var a=!1;if(s[p.CHAR_DATA_CHAR_INDEX].length>2)a=!0;else if(s[p.CHAR_DATA_CHAR_INDEX].length===2){var n=s[p.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var t=s[p.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(n-55296)+t-56320+65536|s[p.CHAR_DATA_WIDTH_INDEX]<<22:a=!0}else a=!0}else this.content=s[p.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[p.CHAR_DATA_WIDTH_INDEX]<<22;a&&(this.combinedData=s[p.CHAR_DATA_CHAR_INDEX],this.content=2097152|s[p.CHAR_DATA_WIDTH_INDEX]<<22)},i.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},i}(d.AttributeData);f.CellData=c},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ISoundService=f.ISelectionService=f.IRenderService=f.IMouseService=f.ICoreBrowserService=f.ICharSizeService=void 0;var m=L(14);f.ICharSizeService=m.createDecorator("CharSizeService"),f.ICoreBrowserService=m.createDecorator("CoreBrowserService"),f.IMouseService=m.createDecorator("MouseService"),f.IRenderService=m.createDecorator("RenderService"),f.ISelectionService=m.createDecorator("SelectionService"),f.ISoundService=m.createDecorator("SoundService")},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ExtendedAttrs=f.AttributeData=void 0;var m=function(){function r(){this.fg=0,this.bg=0,this.extended=new _}return r.toColorRGB=function(p){return[p>>>16&255,p>>>8&255,255&p]},r.fromColorRGB=function(p){return(255&p[0])<<16|(255&p[1])<<8|255&p[2]},r.prototype.clone=function(){var p=new r;return p.fg=this.fg,p.bg=this.bg,p.extended=this.extended.clone(),p},r.prototype.isInverse=function(){return 67108864&this.fg},r.prototype.isBold=function(){return 134217728&this.fg},r.prototype.isUnderline=function(){return 268435456&this.fg},r.prototype.isBlink=function(){return 536870912&this.fg},r.prototype.isInvisible=function(){return 1073741824&this.fg},r.prototype.isItalic=function(){return 67108864&this.bg},r.prototype.isDim=function(){return 134217728&this.bg},r.prototype.getFgColorMode=function(){return 50331648&this.fg},r.prototype.getBgColorMode=function(){return 50331648&this.bg},r.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},r.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},r.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},r.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},r.prototype.isFgDefault=function(){return(50331648&this.fg)==0},r.prototype.isBgDefault=function(){return(50331648&this.bg)==0},r.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},r.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},r.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},r.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},r.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},r.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},r.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},r.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},r.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},r.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},r.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},r}();f.AttributeData=m;var _=function(){function r(p,d){p===void 0&&(p=0),d===void 0&&(d=-1),this.underlineStyle=p,this.underlineColor=d}return r.prototype.clone=function(){return new r(this.underlineStyle,this.underlineColor)},r.prototype.isEmpty=function(){return this.underlineStyle===0},r}();f.ExtendedAttrs=_},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.addDisposableDomListener=void 0,f.addDisposableDomListener=function(m,_,r,p){m.addEventListener(_,r,p);var d=!1;return{dispose:function(){d||(d=!0,m.removeEventListener(_,r,p))}}}},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Utf8ToUtf32=f.StringToUtf32=f.utf32ToString=f.stringFromCodePoint=void 0,f.stringFromCodePoint=function(r){return r>65535?(r-=65536,String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):String.fromCharCode(r)},f.utf32ToString=function(r,p,d){p===void 0&&(p=0),d===void 0&&(d=r.length);for(var c="",o=p;o65535?(i-=65536,c+=String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):c+=String.fromCharCode(i)}return c};var m=function(){function r(){this._interim=0}return r.prototype.clear=function(){this._interim=0},r.prototype.decode=function(p,d){var c=p.length;if(!c)return 0;var o=0,i=0;this._interim&&(56320<=(n=p.charCodeAt(i++))&&n<=57343?d[o++]=1024*(this._interim-55296)+n-56320+65536:(d[o++]=this._interim,d[o++]=n),this._interim=0);for(var s=i;s=c)return this._interim=a,o;var n;56320<=(n=p.charCodeAt(s))&&n<=57343?d[o++]=1024*(a-55296)+n-56320+65536:(d[o++]=a,d[o++]=n)}else d[o++]=a}return o},r}();f.StringToUtf32=m;var _=function(){function r(){this.interim=new Uint8Array(3)}return r.prototype.clear=function(){this.interim.fill(0)},r.prototype.decode=function(p,d){var c=p.length;if(!c)return 0;var o,i,s,a,n=0,t=0,e=0;if(this.interim[0]){var u=!1,l=this.interim[0];l&=(224&l)==192?31:(240&l)==224?15:7;for(var g=0,C=void 0;(C=63&this.interim[++g])&&g<4;)l<<=6,l|=C;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,y=x-g;e=c)return 0;if((192&(C=p[e++]))!=128){e--,u=!0;break}this.interim[g++]=C,l<<=6,l|=63&C}u||(x===2?l<128?e--:d[n++]=l:x===3?l<2048||l>=55296&&l<=57343||(d[n++]=l):l<65536||l>1114111||(d[n++]=l)),this.interim.fill(0)}for(var T=c-4,A=e;A=c)return this.interim[0]=o,n;if((192&(i=p[A++]))!=128){A--;continue}if((t=(31&o)<<6|63&i)<128){A--;continue}d[n++]=t}else if((240&o)==224){if(A>=c)return this.interim[0]=o,n;if((192&(i=p[A++]))!=128){A--;continue}if(A>=c)return this.interim[0]=o,this.interim[1]=i,n;if((192&(s=p[A++]))!=128){A--;continue}if((t=(15&o)<<12|(63&i)<<6|63&s)<2048||t>=55296&&t<=57343)continue;d[n++]=t}else if((248&o)==240){if(A>=c)return this.interim[0]=o,n;if((192&(i=p[A++]))!=128){A--;continue}if(A>=c)return this.interim[0]=o,this.interim[1]=i,n;if((192&(s=p[A++]))!=128){A--;continue}if(A>=c)return this.interim[0]=o,this.interim[1]=i,this.interim[2]=s,n;if((192&(a=p[A++]))!=128){A--;continue}if((t=(7&o)<<18|(63&i)<<12|(63&s)<<6|63&a)<65536||t>1114111)continue;d[n++]=t}}return n},r}();f.Utf8ToUtf32=_},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CHAR_ATLAS_CELL_SPACING=f.DIM_OPACITY=f.INVERTED_DEFAULT_COLOR=void 0,f.INVERTED_DEFAULT_COLOR=257,f.DIM_OPACITY=.5,f.CHAR_ATLAS_CELL_SPACING=1},function(S,f,L){"use strict";var m,_,r,p;function d(o){var i=o.toString(16);return i.length<2?"0"+i:i}function c(o,i){return o>>0}}(m=f.channels||(f.channels={})),(_=f.color||(f.color={})).blend=function(o,i){var s=(255&i.rgba)/255;if(s===1)return{css:i.css,rgba:i.rgba};var a=i.rgba>>24&255,n=i.rgba>>16&255,t=i.rgba>>8&255,e=o.rgba>>24&255,u=o.rgba>>16&255,l=o.rgba>>8&255,g=e+Math.round((a-e)*s),C=u+Math.round((n-u)*s),x=l+Math.round((t-l)*s);return{css:m.toCss(g,C,x),rgba:m.toRgba(g,C,x)}},_.isOpaque=function(o){return(255&o.rgba)==255},_.ensureContrastRatio=function(o,i,s){var a=p.ensureContrastRatio(o.rgba,i.rgba,s);if(a)return p.toColor(a>>24&255,a>>16&255,a>>8&255)},_.opaque=function(o){var i=(255|o.rgba)>>>0,s=p.toChannels(i),a=s[0],n=s[1],t=s[2];return{css:m.toCss(a,n,t),rgba:i}},_.opacity=function(o,i){var s=Math.round(255*i),a=p.toChannels(o.rgba),n=a[0],t=a[1],e=a[2];return{css:m.toCss(n,t,e,s),rgba:m.toRgba(n,t,e,s)}},(f.css||(f.css={})).toColor=function(o){switch(o.length){case 7:return{css:o,rgba:(parseInt(o.slice(1),16)<<8|255)>>>0};case 9:return{css:o,rgba:parseInt(o.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(o){function i(s,a,n){var t=s/255,e=a/255,u=n/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4))}o.relativeLuminance=function(s){return i(s>>16&255,s>>8&255,255&s)},o.relativeLuminance2=i}(r=f.rgb||(f.rgb={})),function(o){function i(a,n,t){for(var e=a>>24&255,u=a>>16&255,l=a>>8&255,g=n>>24&255,C=n>>16&255,x=n>>8&255,y=c(r.relativeLuminance2(g,x,C),r.relativeLuminance2(e,u,l));y0||C>0||x>0);)g-=Math.max(0,Math.ceil(.1*g)),C-=Math.max(0,Math.ceil(.1*C)),x-=Math.max(0,Math.ceil(.1*x)),y=c(r.relativeLuminance2(g,x,C),r.relativeLuminance2(e,u,l));return(g<<24|C<<16|x<<8|255)>>>0}function s(a,n,t){for(var e=a>>24&255,u=a>>16&255,l=a>>8&255,g=n>>24&255,C=n>>16&255,x=n>>8&255,y=c(r.relativeLuminance2(g,x,C),r.relativeLuminance2(e,u,l));y>>0}o.ensureContrastRatio=function(a,n,t){var e=r.relativeLuminance(a>>8),u=r.relativeLuminance(n>>8);if(c(e,u)>24&255,a>>16&255,a>>8&255,255&a]},o.toColor=function(a,n,t){return{css:m.toCss(a,n,t),rgba:m.toRgba(a,n,t)}}}(p=f.rgba||(f.rgba={})),f.toPaddedHex=d,f.contrastRatio=c},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isLinux=f.isWindows=f.isIphone=f.isIpad=f.isMac=f.isSafari=f.isFirefox=void 0;var m=typeof navigator=="undefined",_=m?"node":navigator.userAgent,r=m?"node":navigator.platform;function p(d,c){return d.indexOf(c)>=0}f.isFirefox=!!~_.indexOf("Firefox"),f.isSafari=/^((?!chrome|android).)*safari/i.test(_),f.isMac=p(["Macintosh","MacIntel","MacPPC","Mac68K"],r),f.isIpad=r==="iPad",f.isIphone=r==="iPhone",f.isWindows=p(["Windows","Win16","Win32","WinCE"],r),f.isLinux=r.indexOf("Linux")>=0},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.C1=f.C0=void 0,function(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=` +`,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL="\x7F"}(f.C0||(f.C0={})),function(m){m.PAD="\x80",m.HOP="\x81",m.BPH="\x82",m.NBH="\x83",m.IND="\x84",m.NEL="\x85",m.SSA="\x86",m.ESA="\x87",m.HTS="\x88",m.HTJ="\x89",m.VTS="\x8A",m.PLD="\x8B",m.PLU="\x8C",m.RI="\x8D",m.SS2="\x8E",m.SS3="\x8F",m.DCS="\x90",m.PU1="\x91",m.PU2="\x92",m.STS="\x93",m.CCH="\x94",m.MW="\x95",m.SPA="\x96",m.EPA="\x97",m.SOS="\x98",m.SGCI="\x99",m.SCI="\x9A",m.CSI="\x9B",m.ST="\x9C",m.OSC="\x9D",m.PM="\x9E",m.APC="\x9F"}(f.C1||(f.C1={}))},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseRenderLayer=void 0;var m=L(3),_=L(9),r=L(25),p=L(6),d=L(28),c=L(10),o=L(17),i=function(){function s(a,n,t,e,u,l,g,C){this._container=a,this._alpha=e,this._colors=u,this._rendererId=l,this._bufferService=g,this._optionsService=C,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+n+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return s.prototype.dispose=function(){var a;o.removeElementFromParent(this._canvas),(a=this._charAtlas)===null||a===void 0||a.dispose()},s.prototype._initCanvas=function(){this._ctx=d.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},s.prototype.onOptionsChanged=function(){},s.prototype.onBlur=function(){},s.prototype.onFocus=function(){},s.prototype.onCursorMove=function(){},s.prototype.onGridChanged=function(a,n){},s.prototype.onSelectionChanged=function(a,n,t){t===void 0&&(t=!1)},s.prototype.setColors=function(a){this._refreshCharAtlas(a)},s.prototype._setTransparency=function(a){if(a!==this._alpha){var n=this._canvas;this._alpha=a,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,n),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},s.prototype._refreshCharAtlas=function(a){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=r.acquireCharAtlas(this._optionsService.options,this._rendererId,a,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},s.prototype.resize=function(a){this._scaledCellWidth=a.scaledCellWidth,this._scaledCellHeight=a.scaledCellHeight,this._scaledCharWidth=a.scaledCharWidth,this._scaledCharHeight=a.scaledCharHeight,this._scaledCharLeft=a.scaledCharLeft,this._scaledCharTop=a.scaledCharTop,this._canvas.width=a.scaledCanvasWidth,this._canvas.height=a.scaledCanvasHeight,this._canvas.style.width=a.canvasWidth+"px",this._canvas.style.height=a.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},s.prototype._fillCells=function(a,n,t,e){this._ctx.fillRect(a*this._scaledCellWidth,n*this._scaledCellHeight,t*this._scaledCellWidth,e*this._scaledCellHeight)},s.prototype._fillBottomLineAtCells=function(a,n,t){t===void 0&&(t=1),this._ctx.fillRect(a*this._scaledCellWidth,(n+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},s.prototype._fillLeftLineAtCell=function(a,n,t){this._ctx.fillRect(a*this._scaledCellWidth,n*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},s.prototype._strokeRectAtCell=function(a,n,t,e){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(a*this._scaledCellWidth+window.devicePixelRatio/2,n*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,e*this._scaledCellHeight-window.devicePixelRatio)},s.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},s.prototype._clearCells=function(a,n,t,e){this._alpha?this._ctx.clearRect(a*this._scaledCellWidth,n*this._scaledCellHeight,t*this._scaledCellWidth,e*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(a*this._scaledCellWidth,n*this._scaledCellHeight,t*this._scaledCellWidth,e*this._scaledCellHeight))},s.prototype._fillCharTrueColor=function(a,n,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(a.getChars(),n*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},s.prototype._drawChars=function(a,n,t){var e,u,l=this._getContrastColor(a);l||a.isFgRGB()||a.isBgRGB()?this._drawUncachedChars(a,n,t,l):(a.isInverse()?(e=a.isBgDefault()?_.INVERTED_DEFAULT_COLOR:a.getBgColor(),u=a.isFgDefault()?_.INVERTED_DEFAULT_COLOR:a.getFgColor()):(u=a.isBgDefault()?m.DEFAULT_COLOR:a.getBgColor(),e=a.isFgDefault()?m.DEFAULT_COLOR:a.getFgColor()),e+=this._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&e<8?8:0,this._currentGlyphIdentifier.chars=a.getChars()||m.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=a.getCode()||m.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=u,this._currentGlyphIdentifier.fg=e,this._currentGlyphIdentifier.bold=!!a.isBold(),this._currentGlyphIdentifier.dim=!!a.isDim(),this._currentGlyphIdentifier.italic=!!a.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,n*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(a,n,t))},s.prototype._drawUncachedChars=function(a,n,t,e){if(this._ctx.save(),this._ctx.font=this._getFont(!!a.isBold(),!!a.isItalic()),this._ctx.textBaseline="middle",a.isInverse())if(e)this._ctx.fillStyle=e.css;else if(a.isBgDefault())this._ctx.fillStyle=c.color.opaque(this._colors.background).css;else if(a.isBgRGB())this._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(a.getBgColor()).join(",")+")";else{var u=a.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}else if(e)this._ctx.fillStyle=e.css;else if(a.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(a.isFgRGB())this._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(a.getFgColor()).join(",")+")";else{var l=a.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}this._clipRow(t),a.isDim()&&(this._ctx.globalAlpha=_.DIM_OPACITY),this._ctx.fillText(a.getChars(),n*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},s.prototype._clipRow=function(a){this._ctx.beginPath(),this._ctx.rect(0,a*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},s.prototype._getFont=function(a,n){return(n?"italic":"")+" "+(a?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},s.prototype._getContrastColor=function(a){if(this._optionsService.options.minimumContrastRatio!==1){var n=this._colors.contrastCache.getColor(a.bg,a.fg);if(n!==void 0)return n||void 0;var t=a.getFgColor(),e=a.getFgColorMode(),u=a.getBgColor(),l=a.getBgColorMode(),g=!!a.isInverse(),C=!!a.isInverse();if(g){var x=t;t=u,u=x;var y=e;e=l,l=y}var T=this._resolveBackgroundRgba(l,u,g),A=this._resolveForegroundRgba(e,t,g,C),E=c.rgba.ensureContrastRatio(T,A,this._optionsService.options.minimumContrastRatio);if(E){var b={css:c.channels.toCss(E>>24&255,E>>16&255,E>>8&255),rgba:E};return this._colors.contrastCache.setColor(a.bg,a.fg,b),b}this._colors.contrastCache.setColor(a.bg,a.fg,null)}},s.prototype._resolveBackgroundRgba=function(a,n,t){switch(a){case 16777216:case 33554432:return this._colors.ansi[n].rgba;case 50331648:return n<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},s.prototype._resolveForegroundRgba=function(a,n,t,e){switch(a){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&e&&n<8&&(n+=8),this._colors.ansi[n].rgba;case 50331648:return n<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},s}();f.BaseRenderLayer=i},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createDecorator=f.getServiceDependencies=f.serviceRegistry=void 0;function m(_,r,p){r.di$target===r?r.di$dependencies.push({id:_,index:p}):(r.di$dependencies=[{id:_,index:p}],r.di$target=r)}f.serviceRegistry=new Map,f.getServiceDependencies=function(_){return _.di$dependencies||[]},f.createDecorator=function(_){if(f.serviceRegistry.has(_))return f.serviceRegistry.get(_);var r=function(p,d,c){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");m(r,p,c)};return r.toString=function(){return _},f.serviceRegistry.set(_,r),r}},function(S,f,L){"use strict";function m(_,r,p,d){if(p===void 0&&(p=0),d===void 0&&(d=_.length),p>=_.length)return _;p=(_.length+p)%_.length,d=d>=_.length?_.length:(_.length+d)%_.length;for(var c=p;c>22,2097152&i?this._combined[o].charCodeAt(this._combined[o].length-1):s]},c.prototype.set=function(o,i){this._data[3*o+1]=i[_.CHAR_DATA_ATTR_INDEX],i[_.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[o]=i[1],this._data[3*o+0]=2097152|o|i[_.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*o+0]=i[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[_.CHAR_DATA_WIDTH_INDEX]<<22},c.prototype.getWidth=function(o){return this._data[3*o+0]>>22},c.prototype.hasWidth=function(o){return 12582912&this._data[3*o+0]},c.prototype.getFg=function(o){return this._data[3*o+1]},c.prototype.getBg=function(o){return this._data[3*o+2]},c.prototype.hasContent=function(o){return 4194303&this._data[3*o+0]},c.prototype.getCodePoint=function(o){var i=this._data[3*o+0];return 2097152&i?this._combined[o].charCodeAt(this._combined[o].length-1):2097151&i},c.prototype.isCombined=function(o){return 2097152&this._data[3*o+0]},c.prototype.getString=function(o){var i=this._data[3*o+0];return 2097152&i?this._combined[o]:2097151&i?m.stringFromCodePoint(2097151&i):""},c.prototype.loadCell=function(o,i){var s=3*o;return i.content=this._data[s+0],i.fg=this._data[s+1],i.bg=this._data[s+2],2097152&i.content&&(i.combinedData=this._combined[o]),268435456&i.bg&&(i.extended=this._extendedAttrs[o]),i},c.prototype.setCell=function(o,i){2097152&i.content&&(this._combined[o]=i.combinedData),268435456&i.bg&&(this._extendedAttrs[o]=i.extended),this._data[3*o+0]=i.content,this._data[3*o+1]=i.fg,this._data[3*o+2]=i.bg},c.prototype.setCellFromCodePoint=function(o,i,s,a,n,t){268435456&n&&(this._extendedAttrs[o]=t),this._data[3*o+0]=i|s<<22,this._data[3*o+1]=a,this._data[3*o+2]=n},c.prototype.addCodepointToCell=function(o,i){var s=this._data[3*o+0];2097152&s?this._combined[o]+=m.stringFromCodePoint(i):(2097151&s?(this._combined[o]=m.stringFromCodePoint(2097151&s)+m.stringFromCodePoint(i),s&=-2097152,s|=2097152):s=i|1<<22,this._data[3*o+0]=s)},c.prototype.insertCells=function(o,i,s,a){if((o%=this.length)&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(a==null?void 0:a.fg)||0,(a==null?void 0:a.bg)||0,(a==null?void 0:a.extended)||new p.ExtendedAttrs),i=0;--t)this.setCell(o+i+t,this.loadCell(o+t,n));for(t=0;tthis.length){var s=new Uint32Array(3*o);this.length&&(3*o=o&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=o}},c.prototype.fill=function(o){this._combined={},this._extendedAttrs={};for(var i=0;i=0;--o)if(4194303&this._data[3*o+0])return o+(this._data[3*o+0]>>22);return 0},c.prototype.copyCellsFrom=function(o,i,s,a,n){var t=o._data;if(n)for(var e=a-1;e>=0;e--)for(var u=0;u<3;u++)this._data[3*(s+e)+u]=t[3*(i+e)+u];else for(e=0;e=i&&(this._combined[g-i+s]=o._combined[g])}},c.prototype.translateToString=function(o,i,s){o===void 0&&(o=!1),i===void 0&&(i=0),s===void 0&&(s=this.length),o&&(s=Math.min(s,this.getTrimmedLength()));for(var a="";i>22||1}return a},c}();f.BufferLine=d},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeElementFromParent=void 0,f.removeElementFromParent=function(){for(var m,_=[],r=0;r24)return E.setWinLines||!1;switch(A){case 1:return!!E.restoreWin;case 2:return!!E.minimizeWin;case 3:return!!E.setWinPosition;case 4:return!!E.setWinSizePixels;case 5:return!!E.raiseWin;case 6:return!!E.lowerWin;case 7:return!!E.refreshWin;case 8:return!!E.setWinSizeChars;case 9:return!!E.maximizeWin;case 10:return!!E.fullscreenWin;case 11:return!!E.getWinState;case 13:return!!E.getWinPosition;case 14:return!!E.getWinSizePixels;case 15:return!!E.getScreenSizePixels;case 16:return!!E.getCellSizePixels;case 18:return!!E.getWinSizeChars;case 19:return!!E.getScreenSizeChars;case 20:return!!E.getIconTitle;case 21:return!!E.getWinTitle;case 22:return!!E.pushTitle;case 23:return!!E.popTitle;case 24:return!!E.setWinLines}return!1}!function(A){A[A.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",A[A.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(r=f.WindowsOptionsReportType||(f.WindowsOptionsReportType={}));var y=function(){function A(E,b,v,O){this._bufferService=E,this._coreService=b,this._logService=v,this._optionsService=O,this._data=new Uint32Array(0)}return A.prototype.hook=function(E){this._data=new Uint32Array(0)},A.prototype.put=function(E,b,v){this._data=i.concat(this._data,E.subarray(b,v))},A.prototype.unhook=function(E){if(E){var b=s.utf32ToString(this._data);switch(this._data=new Uint32Array(0),b){case'"q':return this._coreService.triggerDataEvent(p.C0.ESC+'P1$r0"q'+p.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(p.C0.ESC+'P1$r61;1"p'+p.C0.ESC+"\\");case"r":var v=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(p.C0.ESC+"P1$r"+v+p.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(p.C0.ESC+"P1$r0m"+p.C0.ESC+"\\");case" q":var O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(p.C0.ESC+"P1$r"+O+" q"+p.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",b),this._coreService.triggerDataEvent(p.C0.ESC+"P0$r"+p.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},A}(),T=function(A){function E(b,v,O,D,W,Q,j,Z,Y){Y===void 0&&(Y=new c.EscapeSequenceParser);var w=A.call(this)||this;w._bufferService=b,w._charsetService=v,w._coreService=O,w._dirtyRowService=D,w._logService=W,w._optionsService=Q,w._coreMouseService=j,w._unicodeService=Z,w._parser=Y,w._parseBuffer=new Uint32Array(4096),w._stringDecoder=new s.StringToUtf32,w._utf8Decoder=new s.Utf8ToUtf32,w._workCell=new e.CellData,w._windowTitle="",w._iconName="",w._windowTitleStack=[],w._iconNameStack=[],w._curAttrData=a.DEFAULT_ATTR_DATA.clone(),w._eraseAttrDataInternal=a.DEFAULT_ATTR_DATA.clone(),w._onRequestBell=new n.EventEmitter,w._onRequestRefreshRows=new n.EventEmitter,w._onRequestReset=new n.EventEmitter,w._onRequestScroll=new n.EventEmitter,w._onRequestSyncScrollBar=new n.EventEmitter,w._onRequestWindowsOptionsReport=new n.EventEmitter,w._onA11yChar=new n.EventEmitter,w._onA11yTab=new n.EventEmitter,w._onCursorMove=new n.EventEmitter,w._onLineFeed=new n.EventEmitter,w._onScroll=new n.EventEmitter,w._onTitleChange=new n.EventEmitter,w.register(w._parser),w._parser.setCsiHandlerFallback(function(M,H){w._logService.debug("Unknown CSI code: ",{identifier:w._parser.identToString(M),params:H.toArray()})}),w._parser.setEscHandlerFallback(function(M){w._logService.debug("Unknown ESC code: ",{identifier:w._parser.identToString(M)})}),w._parser.setExecuteHandlerFallback(function(M){w._logService.debug("Unknown EXECUTE code: ",{code:M})}),w._parser.setOscHandlerFallback(function(M,H,ae){w._logService.debug("Unknown OSC code: ",{identifier:M,action:H,data:ae})}),w._parser.setDcsHandlerFallback(function(M,H,ae){H==="HOOK"&&(ae=ae.toArray()),w._logService.debug("Unknown DCS code: ",{identifier:w._parser.identToString(M),action:H,payload:ae})}),w._parser.setPrintHandler(function(M,H,ae){return w.print(M,H,ae)}),w._parser.setCsiHandler({final:"@"},function(M){return w.insertChars(M)}),w._parser.setCsiHandler({intermediates:" ",final:"@"},function(M){return w.scrollLeft(M)}),w._parser.setCsiHandler({final:"A"},function(M){return w.cursorUp(M)}),w._parser.setCsiHandler({intermediates:" ",final:"A"},function(M){return w.scrollRight(M)}),w._parser.setCsiHandler({final:"B"},function(M){return w.cursorDown(M)}),w._parser.setCsiHandler({final:"C"},function(M){return w.cursorForward(M)}),w._parser.setCsiHandler({final:"D"},function(M){return w.cursorBackward(M)}),w._parser.setCsiHandler({final:"E"},function(M){return w.cursorNextLine(M)}),w._parser.setCsiHandler({final:"F"},function(M){return w.cursorPrecedingLine(M)}),w._parser.setCsiHandler({final:"G"},function(M){return w.cursorCharAbsolute(M)}),w._parser.setCsiHandler({final:"H"},function(M){return w.cursorPosition(M)}),w._parser.setCsiHandler({final:"I"},function(M){return w.cursorForwardTab(M)}),w._parser.setCsiHandler({final:"J"},function(M){return w.eraseInDisplay(M)}),w._parser.setCsiHandler({prefix:"?",final:"J"},function(M){return w.eraseInDisplay(M)}),w._parser.setCsiHandler({final:"K"},function(M){return w.eraseInLine(M)}),w._parser.setCsiHandler({prefix:"?",final:"K"},function(M){return w.eraseInLine(M)}),w._parser.setCsiHandler({final:"L"},function(M){return w.insertLines(M)}),w._parser.setCsiHandler({final:"M"},function(M){return w.deleteLines(M)}),w._parser.setCsiHandler({final:"P"},function(M){return w.deleteChars(M)}),w._parser.setCsiHandler({final:"S"},function(M){return w.scrollUp(M)}),w._parser.setCsiHandler({final:"T"},function(M){return w.scrollDown(M)}),w._parser.setCsiHandler({final:"X"},function(M){return w.eraseChars(M)}),w._parser.setCsiHandler({final:"Z"},function(M){return w.cursorBackwardTab(M)}),w._parser.setCsiHandler({final:"`"},function(M){return w.charPosAbsolute(M)}),w._parser.setCsiHandler({final:"a"},function(M){return w.hPositionRelative(M)}),w._parser.setCsiHandler({final:"b"},function(M){return w.repeatPrecedingCharacter(M)}),w._parser.setCsiHandler({final:"c"},function(M){return w.sendDeviceAttributesPrimary(M)}),w._parser.setCsiHandler({prefix:">",final:"c"},function(M){return w.sendDeviceAttributesSecondary(M)}),w._parser.setCsiHandler({final:"d"},function(M){return w.linePosAbsolute(M)}),w._parser.setCsiHandler({final:"e"},function(M){return w.vPositionRelative(M)}),w._parser.setCsiHandler({final:"f"},function(M){return w.hVPosition(M)}),w._parser.setCsiHandler({final:"g"},function(M){return w.tabClear(M)}),w._parser.setCsiHandler({final:"h"},function(M){return w.setMode(M)}),w._parser.setCsiHandler({prefix:"?",final:"h"},function(M){return w.setModePrivate(M)}),w._parser.setCsiHandler({final:"l"},function(M){return w.resetMode(M)}),w._parser.setCsiHandler({prefix:"?",final:"l"},function(M){return w.resetModePrivate(M)}),w._parser.setCsiHandler({final:"m"},function(M){return w.charAttributes(M)}),w._parser.setCsiHandler({final:"n"},function(M){return w.deviceStatus(M)}),w._parser.setCsiHandler({prefix:"?",final:"n"},function(M){return w.deviceStatusPrivate(M)}),w._parser.setCsiHandler({intermediates:"!",final:"p"},function(M){return w.softReset(M)}),w._parser.setCsiHandler({intermediates:" ",final:"q"},function(M){return w.setCursorStyle(M)}),w._parser.setCsiHandler({final:"r"},function(M){return w.setScrollRegion(M)}),w._parser.setCsiHandler({final:"s"},function(M){return w.saveCursor(M)}),w._parser.setCsiHandler({final:"t"},function(M){return w.windowOptions(M)}),w._parser.setCsiHandler({final:"u"},function(M){return w.restoreCursor(M)}),w._parser.setCsiHandler({intermediates:"'",final:"}"},function(M){return w.insertColumns(M)}),w._parser.setCsiHandler({intermediates:"'",final:"~"},function(M){return w.deleteColumns(M)}),w._parser.setExecuteHandler(p.C0.BEL,function(){return w.bell()}),w._parser.setExecuteHandler(p.C0.LF,function(){return w.lineFeed()}),w._parser.setExecuteHandler(p.C0.VT,function(){return w.lineFeed()}),w._parser.setExecuteHandler(p.C0.FF,function(){return w.lineFeed()}),w._parser.setExecuteHandler(p.C0.CR,function(){return w.carriageReturn()}),w._parser.setExecuteHandler(p.C0.BS,function(){return w.backspace()}),w._parser.setExecuteHandler(p.C0.HT,function(){return w.tab()}),w._parser.setExecuteHandler(p.C0.SO,function(){return w.shiftOut()}),w._parser.setExecuteHandler(p.C0.SI,function(){return w.shiftIn()}),w._parser.setExecuteHandler(p.C1.IND,function(){return w.index()}),w._parser.setExecuteHandler(p.C1.NEL,function(){return w.nextLine()}),w._parser.setExecuteHandler(p.C1.HTS,function(){return w.tabSet()}),w._parser.setOscHandler(0,new l.OscHandler(function(M){w.setTitle(M),w.setIconName(M)})),w._parser.setOscHandler(1,new l.OscHandler(function(M){return w.setIconName(M)})),w._parser.setOscHandler(2,new l.OscHandler(function(M){return w.setTitle(M)})),w._parser.setEscHandler({final:"7"},function(){return w.saveCursor()}),w._parser.setEscHandler({final:"8"},function(){return w.restoreCursor()}),w._parser.setEscHandler({final:"D"},function(){return w.index()}),w._parser.setEscHandler({final:"E"},function(){return w.nextLine()}),w._parser.setEscHandler({final:"H"},function(){return w.tabSet()}),w._parser.setEscHandler({final:"M"},function(){return w.reverseIndex()}),w._parser.setEscHandler({final:"="},function(){return w.keypadApplicationMode()}),w._parser.setEscHandler({final:">"},function(){return w.keypadNumericMode()}),w._parser.setEscHandler({final:"c"},function(){return w.fullReset()}),w._parser.setEscHandler({final:"n"},function(){return w.setgLevel(2)}),w._parser.setEscHandler({final:"o"},function(){return w.setgLevel(3)}),w._parser.setEscHandler({final:"|"},function(){return w.setgLevel(3)}),w._parser.setEscHandler({final:"}"},function(){return w.setgLevel(2)}),w._parser.setEscHandler({final:"~"},function(){return w.setgLevel(1)}),w._parser.setEscHandler({intermediates:"%",final:"@"},function(){return w.selectDefaultCharset()}),w._parser.setEscHandler({intermediates:"%",final:"G"},function(){return w.selectDefaultCharset()});var P=function(M){k._parser.setEscHandler({intermediates:"(",final:M},function(){return w.selectCharset("("+M)}),k._parser.setEscHandler({intermediates:")",final:M},function(){return w.selectCharset(")"+M)}),k._parser.setEscHandler({intermediates:"*",final:M},function(){return w.selectCharset("*"+M)}),k._parser.setEscHandler({intermediates:"+",final:M},function(){return w.selectCharset("+"+M)}),k._parser.setEscHandler({intermediates:"-",final:M},function(){return w.selectCharset("-"+M)}),k._parser.setEscHandler({intermediates:".",final:M},function(){return w.selectCharset("."+M)}),k._parser.setEscHandler({intermediates:"/",final:M},function(){return w.selectCharset("/"+M)})},k=this;for(var K in d.CHARSETS)P(K);return w._parser.setEscHandler({intermediates:"#",final:"8"},function(){return w.screenAlignmentPattern()}),w._parser.setErrorHandler(function(M){return w._logService.error("Parsing error: ",M),M}),w._parser.setDcsHandler({intermediates:"$",final:"q"},new y(w._bufferService,w._coreService,w._logService,w._optionsService)),w}return _(E,A),Object.defineProperty(E.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){A.prototype.dispose.call(this)},E.prototype.parse=function(b){var v=this._bufferService.buffer,O=v.x,D=v.y;if(this._logService.debug("parsing data",b),this._parseBuffer.length131072)for(var W=0;W0&&K.getWidth(Q.x-1)===2&&K.setCellFromCodePoint(Q.x-1,0,1,k.fg,k.bg,k.extended);for(var M=v;M=Y){if(w){for(;Q.x=this._bufferService.rows&&(Q.y=this._bufferService.rows-1),Q.lines.get(Q.ybase+Q.y).isWrapped=!0),K=Q.lines.get(Q.ybase+Q.y)}else if(Q.x=Y-1,W===2)continue}if(P&&(K.insertCells(Q.x,W,Q.getNullCell(k),k),K.getWidth(Y-1)===2&&K.setCellFromCodePoint(Y-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,k.fg,k.bg,k.extended)),K.setCellFromCodePoint(Q.x++,D,W,k.fg,k.bg,k.extended),W>0)for(;--W;)K.setCellFromCodePoint(Q.x++,0,0,k.fg,k.bg,k.extended)}else K.getWidth(Q.x-1)?K.addCodepointToCell(Q.x-1,D):K.addCodepointToCell(Q.x-2,D)}O-v>0&&(K.loadCell(Q.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Q.x0&&K.getWidth(Q.x)===0&&!K.hasContent(Q.x)&&K.setCellFromCodePoint(Q.x,0,1,k.fg,k.bg,k.extended),this._dirtyRowService.markDirty(Q.y)},E.prototype.addCsiHandler=function(b,v){var O=this;return b.final!=="t"||b.prefix||b.intermediates?this._parser.addCsiHandler(b,v):this._parser.addCsiHandler(b,function(D){return!x(D.params[0],O._optionsService.options.windowOptions)||v(D)})},E.prototype.addDcsHandler=function(b,v){return this._parser.addDcsHandler(b,new g.DcsHandler(v))},E.prototype.addEscHandler=function(b,v){return this._parser.addEscHandler(b,v)},E.prototype.addOscHandler=function(b,v){return this._parser.addOscHandler(b,new l.OscHandler(v))},E.prototype.bell=function(){this._onRequestBell.fire()},E.prototype.lineFeed=function(){var b=this._bufferService.buffer;this._dirtyRowService.markDirty(b.y),this._optionsService.options.convertEol&&(b.x=0),b.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),b.x>=this._bufferService.cols&&b.x--,this._dirtyRowService.markDirty(b.y),this._onLineFeed.fire()},E.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},E.prototype.backspace=function(){var b,v=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(v.x>0&&v.x--);if(this._restrictCursor(this._bufferService.cols),v.x>0)v.x--;else if(v.x===0&&v.y>v.scrollTop&&v.y<=v.scrollBottom&&((b=v.lines.get(v.ybase+v.y))===null||b===void 0?void 0:b.isWrapped)){v.lines.get(v.ybase+v.y).isWrapped=!1,v.y--,v.x=this._bufferService.cols-1;var O=v.lines.get(v.ybase+v.y);O.hasWidth(v.x)&&!O.hasContent(v.x)&&v.x--}this._restrictCursor()},E.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var b=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-b)}},E.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},E.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},E.prototype._restrictCursor=function(b){b===void 0&&(b=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(b,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},E.prototype._setCursor=function(b,v){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=b,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+v):(this._bufferService.buffer.x=b,this._bufferService.buffer.y=v),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},E.prototype._moveCursor=function(b,v){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+b,this._bufferService.buffer.y+v)},E.prototype.cursorUp=function(b){var v=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;v>=0?this._moveCursor(0,-Math.min(v,b.params[0]||1)):this._moveCursor(0,-(b.params[0]||1))},E.prototype.cursorDown=function(b){var v=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;v>=0?this._moveCursor(0,Math.min(v,b.params[0]||1)):this._moveCursor(0,b.params[0]||1)},E.prototype.cursorForward=function(b){this._moveCursor(b.params[0]||1,0)},E.prototype.cursorBackward=function(b){this._moveCursor(-(b.params[0]||1),0)},E.prototype.cursorNextLine=function(b){this.cursorDown(b),this._bufferService.buffer.x=0},E.prototype.cursorPrecedingLine=function(b){this.cursorUp(b),this._bufferService.buffer.x=0},E.prototype.cursorCharAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},E.prototype.cursorPosition=function(b){this._setCursor(b.length>=2?(b.params[1]||1)-1:0,(b.params[0]||1)-1)},E.prototype.charPosAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},E.prototype.hPositionRelative=function(b){this._moveCursor(b.params[0]||1,0)},E.prototype.linePosAbsolute=function(b){this._setCursor(this._bufferService.buffer.x,(b.params[0]||1)-1)},E.prototype.vPositionRelative=function(b){this._moveCursor(0,b.params[0]||1)},E.prototype.hVPosition=function(b){this.cursorPosition(b)},E.prototype.tabClear=function(b){var v=b.params[0];v===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:v===3&&(this._bufferService.buffer.tabs={})},E.prototype.cursorForwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var v=b.params[0]||1;v--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},E.prototype.cursorBackwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var v=b.params[0]||1,O=this._bufferService.buffer;v--;)O.x=O.prevStop()},E.prototype._eraseInBufferLine=function(b,v,O,D){D===void 0&&(D=!1);var W=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);W.replaceCells(v,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),D&&(W.isWrapped=!1)},E.prototype._resetBufferLine=function(b){var v=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);v.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),v.isWrapped=!1},E.prototype.eraseInDisplay=function(b){var v;switch(this._restrictCursor(),b.params[0]){case 0:for(v=this._bufferService.buffer.y,this._dirtyRowService.markDirty(v),this._eraseInBufferLine(v++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);v=this._bufferService.cols&&(this._bufferService.buffer.lines.get(v+1).isWrapped=!1);v--;)this._resetBufferLine(v);this._dirtyRowService.markDirty(0);break;case 2:for(v=this._bufferService.rows,this._dirtyRowService.markDirty(v-1);v--;)this._resetBufferLine(v);this._dirtyRowService.markDirty(0);break;case 3:var O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},E.prototype.eraseInLine=function(b){switch(this._restrictCursor(),b.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},E.prototype.insertLines=function(b){this._restrictCursor();var v=b.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.yO.scrollBottom||O.yv.scrollBottom||v.yv.scrollBottom||v.yv.scrollBottom||v.yv.scrollBottom||v.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(p.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(p.C0.ESC+"[?6c"))},E.prototype.sendDeviceAttributesSecondary=function(b){b.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(p.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(p.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(b.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(p.C0.ESC+"[>83;40003;0c"))},E.prototype._is=function(b){return(this._optionsService.options.termName+"").indexOf(b)===0},E.prototype.setMode=function(b){for(var v=0;v=2||D[1]===2&&Q+W>=5)break;D[1]&&(W=1)}while(++Q+v5)&&(b=1),v.extended.underlineStyle=b,v.fg|=268435456,b===0&&(v.fg&=-268435457),v.updateExtended()},E.prototype.charAttributes=function(b){if(b.length===1&&b.params[0]===0)return this._curAttrData.fg=a.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=a.DEFAULT_ATTR_DATA.bg);for(var v,O=b.length,D=this._curAttrData,W=0;W=30&&v<=37?(D.fg&=-50331904,D.fg|=16777216|v-30):v>=40&&v<=47?(D.bg&=-50331904,D.bg|=16777216|v-40):v>=90&&v<=97?(D.fg&=-50331904,D.fg|=16777224|v-90):v>=100&&v<=107?(D.bg&=-50331904,D.bg|=16777224|v-100):v===0?(D.fg=a.DEFAULT_ATTR_DATA.fg,D.bg=a.DEFAULT_ATTR_DATA.bg):v===1?D.fg|=134217728:v===3?D.bg|=67108864:v===4?(D.fg|=268435456,this._processUnderline(b.hasSubParams(W)?b.getSubParams(W)[0]:1,D)):v===5?D.fg|=536870912:v===7?D.fg|=67108864:v===8?D.fg|=1073741824:v===2?D.bg|=134217728:v===21?this._processUnderline(2,D):v===22?(D.fg&=-134217729,D.bg&=-134217729):v===23?D.bg&=-67108865:v===24?D.fg&=-268435457:v===25?D.fg&=-536870913:v===27?D.fg&=-67108865:v===28?D.fg&=-1073741825:v===39?(D.fg&=-67108864,D.fg|=16777215&a.DEFAULT_ATTR_DATA.fg):v===49?(D.bg&=-67108864,D.bg|=16777215&a.DEFAULT_ATTR_DATA.bg):v===38||v===48||v===58?W+=this._extractColor(b,W,D):v===59?(D.extended=D.extended.clone(),D.extended.underlineColor=-1,D.updateExtended()):v===100?(D.fg&=-67108864,D.fg|=16777215&a.DEFAULT_ATTR_DATA.fg,D.bg&=-67108864,D.bg|=16777215&a.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",v)},E.prototype.deviceStatus=function(b){switch(b.params[0]){case 5:this._coreService.triggerDataEvent(p.C0.ESC+"[0n");break;case 6:var v=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(p.C0.ESC+"["+v+";"+O+"R")}},E.prototype.deviceStatusPrivate=function(b){switch(b.params[0]){case 6:var v=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(p.C0.ESC+"[?"+v+";"+O+"R")}},E.prototype.softReset=function(b){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=a.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},E.prototype.setCursorStyle=function(b){var v=b.params[0]||1;switch(v){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var O=v%2==1;this._optionsService.options.cursorBlink=O},E.prototype.setScrollRegion=function(b){var v,O=b.params[0]||1;(b.length<2||(v=b.params[1])>this._bufferService.rows||v===0)&&(v=this._bufferService.rows),v>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=v-1,this._setCursor(0,0))},E.prototype.windowOptions=function(b){if(x(b.params[0],this._optionsService.options.windowOptions)){var v=b.length>1?b.params[1]:0;switch(b.params[0]){case 14:v!==2&&this._onRequestWindowsOptionsReport.fire(r.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(r.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(p.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:v!==0&&v!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),v!==0&&v!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:v!==0&&v!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),v!==0&&v!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},E.prototype.saveCursor=function(b){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},E.prototype.restoreCursor=function(b){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},E.prototype.setTitle=function(b){this._windowTitle=b,this._onTitleChange.fire(b)},E.prototype.setIconName=function(b){this._iconName=b},E.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},E.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},E.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},E.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,d.DEFAULT_CHARSET)},E.prototype.selectCharset=function(b){b.length===2?b[0]!=="/"&&this._charsetService.setgCharset(C[b[0]],d.CHARSETS[b[1]]||d.DEFAULT_CHARSET):this.selectDefaultCharset()},E.prototype.index=function(){this._restrictCursor();var b=this._bufferService.buffer;this._bufferService.buffer.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),this._restrictCursor()},E.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},E.prototype.reverseIndex=function(){this._restrictCursor();var b=this._bufferService.buffer;if(b.y===b.scrollTop){var v=b.scrollBottom-b.scrollTop;b.lines.shiftElements(b.ybase+b.y,v,1),b.lines.set(b.ybase+b.y,b.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}else b.y--,this._restrictCursor()},E.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},E.prototype.reset=function(){this._curAttrData=a.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=a.DEFAULT_ATTR_DATA.clone()},E.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},E.prototype.setgLevel=function(b){this._charsetService.setgLevel(b)},E.prototype.screenAlignmentPattern=function(){var b=new e.CellData;b.content=1<<22|"E".charCodeAt(0),b.fg=this._curAttrData.fg,b.bg=this._curAttrData.bg;var v=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(r),this.length=0,this._subParams=new Int32Array(p),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(r),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return _.fromArray=function(r){var p=new _;if(!r.length)return p;for(var d=r[0]instanceof Array?1:0;d>8,c=255&this._subParamsIdx[p];c-d>0&&r.push(Array.prototype.slice.call(this._subParams,d,c))}return r},_.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},_.prototype.addParam=function(r){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(r<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=r>2147483647?2147483647:r}},_.prototype.addSubParam=function(r){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(r<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=r>2147483647?2147483647:r,this._subParamsIdx[this.length-1]++}},_.prototype.hasSubParams=function(r){return(255&this._subParamsIdx[r])-(this._subParamsIdx[r]>>8)>0},_.prototype.getSubParams=function(r){var p=this._subParamsIdx[r]>>8,d=255&this._subParamsIdx[r];return d-p>0?this._subParams.subarray(p,d):null},_.prototype.getSubParamsAll=function(){for(var r={},p=0;p>8,c=255&this._subParamsIdx[p];c-d>0&&(r[p]=this._subParams.slice(d,c))}return r},_.prototype.addDigit=function(r){var p;if(!(this._rejectDigits||!(p=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var d=this._digitIsSub?this._subParams:this.params,c=d[p-1];d[p-1]=~c?Math.min(10*c+r,2147483647):r}},_}();f.Params=m},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OscHandler=f.OscParser=void 0;var m=L(23),_=L(8),r=function(){function d(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return d.prototype.addHandler=function(c,o){this._handlers[c]===void 0&&(this._handlers[c]=[]);var i=this._handlers[c];return i.push(o),{dispose:function(){var s=i.indexOf(o);s!==-1&&i.splice(s,1)}}},d.prototype.setHandler=function(c,o){this._handlers[c]=[o]},d.prototype.clearHandler=function(c){this._handlers[c]&&delete this._handlers[c]},d.prototype.setHandlerFallback=function(c){this._handlerFb=c},d.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},d.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},d.prototype._start=function(){var c=this._handlers[this._id];if(c)for(var o=c.length-1;o>=0;o--)c[o].start();else this._handlerFb(this._id,"START")},d.prototype._put=function(c,o,i){var s=this._handlers[this._id];if(s)for(var a=s.length-1;a>=0;a--)s[a].put(c,o,i);else this._handlerFb(this._id,"PUT",_.utf32ToString(c,o,i))},d.prototype._end=function(c){var o=this._handlers[this._id];if(o){for(var i=o.length-1;i>=0&&o[i].end(c)===!1;i--);for(i--;i>=0;i--)o[i].end(!1)}else this._handlerFb(this._id,"END",c)},d.prototype.start=function(){this.reset(),this._id=-1,this._state=1},d.prototype.put=function(c,o,i){if(this._state!==3){if(this._state===1)for(;o0&&this._put(c,o,i)}},d.prototype.end=function(c){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(c)),this._id=-1,this._state=0)},d}();f.OscParser=r;var p=function(){function d(c){this._handler=c,this._data="",this._hitLimit=!1}return d.prototype.start=function(){this._data="",this._hitLimit=!1},d.prototype.put=function(c,o,i){this._hitLimit||(this._data+=_.utf32ToString(c,o,i),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},d.prototype.end=function(c){var o;return this._hitLimit?o=!1:c&&(o=this._handler(this._data)),this._data="",this._hitLimit=!1,o},d}();f.OscHandler=p},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.PAYLOAD_LIMIT=void 0,f.PAYLOAD_LIMIT=1e7},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DcsHandler=f.DcsParser=void 0;var m=L(8),_=L(21),r=L(23),p=[],d=function(){function o(){this._handlers=Object.create(null),this._active=p,this._ident=0,this._handlerFb=function(){}}return o.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},o.prototype.addHandler=function(i,s){this._handlers[i]===void 0&&(this._handlers[i]=[]);var a=this._handlers[i];return a.push(s),{dispose:function(){var n=a.indexOf(s);n!==-1&&a.splice(n,1)}}},o.prototype.setHandler=function(i,s){this._handlers[i]=[s]},o.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},o.prototype.setHandlerFallback=function(i){this._handlerFb=i},o.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=p,this._ident=0},o.prototype.hook=function(i,s){if(this.reset(),this._ident=i,this._active=this._handlers[i]||p,this._active.length)for(var a=this._active.length-1;a>=0;a--)this._active[a].hook(s);else this._handlerFb(this._ident,"HOOK",s)},o.prototype.put=function(i,s,a){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(i,s,a);else this._handlerFb(this._ident,"PUT",m.utf32ToString(i,s,a))},o.prototype.unhook=function(i){if(this._active.length){for(var s=this._active.length-1;s>=0&&this._active[s].unhook(i)===!1;s--);for(s--;s>=0;s--)this._active[s].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",i);this._active=p,this._ident=0},o}();f.DcsParser=d;var c=function(){function o(i){this._handler=i,this._data="",this._hitLimit=!1}return o.prototype.hook=function(i){this._params=i.clone(),this._data="",this._hitLimit=!1},o.prototype.put=function(i,s,a){this._hitLimit||(this._data+=m.utf32ToString(i,s,a),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},o.prototype.unhook=function(i){var s;return this._hitLimit?s=!1:i&&(s=this._handler(this._data,this._params||new _.Params)),this._params=void 0,this._data="",this._hitLimit=!1,s},o}();f.DcsHandler=c},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeTerminalFromCache=f.acquireCharAtlas=void 0;var m=L(26),_=L(43),r=[];f.acquireCharAtlas=function(p,d,c,o,i){for(var s=m.generateConfig(o,i,p,c),a=0;a=0){if(m.configEquals(t.config,s))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),r.splice(a,1)):t.ownedBy.splice(n,1);break}}for(a=0;a1)for(var y=this._getJoinedRanges(t,l,u,a,e),T=0;T1)for(y=this._getJoinedRanges(t,l,u,a,e),T=0;T=this._line.length))return u?(this._line.loadCell(e,u),u):this._line.loadCell(e,new m.CellData)},t.prototype.translateToString=function(e,u,l){return this._line.translateToString(e,u,l)},t}(),a=function(){function t(e){this._core=e}return t.prototype.registerCsiHandler=function(e,u){return this._core.addCsiHandler(e,function(l){return u(l.toArray())})},t.prototype.addCsiHandler=function(e,u){return this.registerCsiHandler(e,u)},t.prototype.registerDcsHandler=function(e,u){return this._core.addDcsHandler(e,function(l,g){return u(l,g.toArray())})},t.prototype.addDcsHandler=function(e,u){return this.registerDcsHandler(e,u)},t.prototype.registerEscHandler=function(e,u){return this._core.addEscHandler(e,u)},t.prototype.addEscHandler=function(e,u){return this.registerEscHandler(e,u)},t.prototype.registerOscHandler=function(e,u){return this._core.addOscHandler(e,u)},t.prototype.addOscHandler=function(e,u){return this.registerOscHandler(e,u)},t}(),n=function(){function t(e){this._core=e}return t.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),t}()},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(Y,w){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,k){P.__proto__=k}||function(P,k){for(var K in k)k.hasOwnProperty(K)&&(P[K]=k[K])})(Y,w)},function(Y,w){function P(){this.constructor=Y}m(Y,w),Y.prototype=w===null?Object.create(w):(P.prototype=w.prototype,new P)});Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var r=L(36),p=L(37),d=L(38),c=L(12),o=L(19),i=L(40),s=L(50),a=L(51),n=L(11),t=L(7),e=L(18),u=L(54),l=L(55),g=L(56),C=L(57),x=L(59),y=L(0),T=L(16),A=L(27),E=L(60),b=L(5),v=L(61),O=L(62),D=L(63),W=L(64),Q=L(65),j=typeof window!="undefined"?window.document:null,Z=function(Y){function w(P){P===void 0&&(P={});var k=Y.call(this,P)||this;return k.browser=n,k._keyDownHandled=!1,k._onCursorMove=new y.EventEmitter,k._onKey=new y.EventEmitter,k._onRender=new y.EventEmitter,k._onSelectionChange=new y.EventEmitter,k._onTitleChange=new y.EventEmitter,k._onFocus=new y.EventEmitter,k._onBlur=new y.EventEmitter,k._onA11yCharEmitter=new y.EventEmitter,k._onA11yTabEmitter=new y.EventEmitter,k._setup(),k.linkifier=k._instantiationService.createInstance(s.Linkifier),k.linkifier2=k.register(k._instantiationService.createInstance(D.Linkifier2)),k.register(k._inputHandler.onRequestBell(function(){return k.bell()})),k.register(k._inputHandler.onRequestRefreshRows(function(K,M){return k.refresh(K,M)})),k.register(k._inputHandler.onRequestReset(function(){return k.reset()})),k.register(k._inputHandler.onRequestScroll(function(K,M){return k.scroll(K,M||void 0)})),k.register(k._inputHandler.onRequestWindowsOptionsReport(function(K){return k._reportWindowsOptions(K)})),k.register(y.forwardEvent(k._inputHandler.onCursorMove,k._onCursorMove)),k.register(y.forwardEvent(k._inputHandler.onTitleChange,k._onTitleChange)),k.register(y.forwardEvent(k._inputHandler.onA11yChar,k._onA11yCharEmitter)),k.register(y.forwardEvent(k._inputHandler.onA11yTab,k._onA11yTabEmitter)),k.register(k._bufferService.onResize(function(K){return k._afterResize(K.cols,K.rows)})),k}return _(w,Y),Object.defineProperty(w.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),w.prototype.dispose=function(){var P,k,K;this._isDisposed||(Y.prototype.dispose.call(this),(P=this._renderService)===null||P===void 0||P.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(K=(k=this.element)===null||k===void 0?void 0:k.parentNode)===null||K===void 0||K.removeChild(this.element))},w.prototype._setup=function(){Y.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(w.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),w.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},w.prototype._updateOptions=function(P){var k,K,M,H;switch(Y.prototype._updateOptions.call(this,P),P){case"fontFamily":case"fontSize":(k=this._renderService)===null||k===void 0||k.clear(),(K=this._charSizeService)===null||K===void 0||K.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(M=this.viewport)===null||M===void 0||M.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)):((H=this._accessibilityManager)===null||H===void 0||H.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},w.prototype._onTextAreaFocus=function(P){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[I"),this.updateCursorStyle(P),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},w.prototype.blur=function(){var P;return(P=this.textarea)===null||P===void 0?void 0:P.blur()},w.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(c.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},w.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var P=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),k=this._bufferService.buffer.y*P,K=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=K+"px",this.textarea.style.top=k+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=P+"px",this.textarea.style.lineHeight=P+"px",this.textarea.style.zIndex="-5"}},w.prototype._initGlobal=function(){var P=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(K){P.hasSelection()&&d.copyHandler(K,P._selectionService)}));var k=function(K){return d.handlePasteEvent(K,P.textarea,P._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",k)),this.register(t.addDisposableDomListener(this.element,"paste",k)),n.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(K){K.button===2&&d.rightClickHandler(K,P.textarea,P.screenElement,P._selectionService,P.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(K){d.rightClickHandler(K,P.textarea,P.screenElement,P._selectionService,P.options.rightClickSelectsWord)})),n.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(K){K.button===1&&d.moveTextAreaUnderMouseCursor(K,P.textarea,P.screenElement)}))},w.prototype._bindKeys=function(){var P=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(k){return P._keyUp(k)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(k){return P._keyDown(k)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(k){return P._keyPress(k)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return P._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(k){return P._compositionHelper.compositionupdate(k)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return P._compositionHelper.compositionend()})),this.register(this.onRender(function(){return P._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(k){return P._queueLinkification(k.start,k.end)}))},w.prototype.open=function(P){var k=this;if(!P)throw new Error("Terminal requires a parent element.");j.body.contains(P)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=P.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),P.appendChild(this.element);var K=j.createDocumentFragment();this._viewportElement=j.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),K.appendChild(this._viewportElement),this._viewportScrollArea=j.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=j.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=j.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),K.appendChild(this.screenElement),this.textarea=j.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",e.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(t.addDisposableDomListener(this.textarea,"focus",function(ae){return k._onTextAreaFocus(ae)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return k._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var M=this._instantiationService.createInstance(W.CoreBrowserService,this.textarea);this._instantiationService.setService(b.ICoreBrowserService,M),this._charSizeService=this._instantiationService.createInstance(v.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(b.ICharSizeService,this._charSizeService),this._compositionView=j.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(r.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(K),this._theme=this.options.theme||this._theme,this._colorManager=new A.ColorManager(j,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(ae){return k._colorManager.onOptionsChange(ae)})),this._colorManager.setTheme(this._theme);var H=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(E.RenderService,H,this.rows,this.screenElement)),this._instantiationService.setService(b.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(ae){return k._onRender.fire(ae)})),this.onResize(function(ae){return k._renderService.resize(ae.cols,ae.rows)}),this._soundService=this._instantiationService.createInstance(u.SoundService),this._instantiationService.setService(b.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(b.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(p.Viewport,function(ae,ve){return k.scrollLines(ae,ve)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return k.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){k._renderService.onCursorMove(),k._syncTextArea()})),this.register(this.onResize(function(){return k._renderService.onResize(k.cols,k.rows)})),this.register(this.onBlur(function(){return k._renderService.onBlur()})),this.register(this.onFocus(function(){return k._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return k.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(a.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(b.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(ae){return k.scrollLines(ae.amount,ae.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return k._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(ae){return k._renderService.onSelectionChanged(ae.start,ae.end,ae.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(ae){k.textarea.value=ae,k.textarea.focus(),k.textarea.select()})),this.register(this.onScroll(function(){k.viewport.syncScrollArea(),k._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return k._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(l.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return k._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(ae){return k._selectionService.onMouseDown(ae)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},w.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(i.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(C.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},w.prototype._setTheme=function(P){var k,K,M;this._theme=P,(k=this._colorManager)===null||k===void 0||k.setTheme(P),(K=this._renderService)===null||K===void 0||K.setColors(this._colorManager.colors),(M=this.viewport)===null||M===void 0||M.onThemeChange(this._colorManager.colors)},w.prototype.bindMouse=function(){var P=this,k=this,K=this.element;function M(z){var ne,fe,ie=k._mouseService.getRawByteCoords(z,k.screenElement,k.cols,k.rows);if(!ie)return!1;switch(z.overrideType||z.type){case"mousemove":fe=32,z.buttons===void 0?(ne=3,z.button!==void 0&&(ne=z.button<3?z.button:3)):ne=1&z.buttons?0:4&z.buttons?1:2&z.buttons?2:3;break;case"mouseup":fe=0,ne=z.button<3?z.button:3;break;case"mousedown":fe=1,ne=z.button<3?z.button:3;break;case"wheel":z.deltaY!==0&&(fe=z.deltaY<0?0:1),ne=4;break;default:return!1}return!(fe===void 0||ne===void 0||ne>4)&&k._coreMouseService.triggerMouseEvent({col:ie.x-33,row:ie.y-33,button:ne,action:fe,ctrl:z.ctrlKey,alt:z.altKey,shift:z.shiftKey})}var H={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ae=function(z){return M(z),z.buttons||(P._document.removeEventListener("mouseup",H.mouseup),H.mousedrag&&P._document.removeEventListener("mousemove",H.mousedrag)),P.cancel(z)},ve=function(z){return M(z),z.preventDefault(),P.cancel(z)},de=function(z){z.buttons&&M(z)},be=function(z){z.buttons||M(z)};this.register(this._coreMouseService.onProtocolChange(function(z){z?(P.optionsService.options.logLevel==="debug"&&P._logService.debug("Binding to mouse events:",P._coreMouseService.explainEvents(z)),P.element.classList.add("enable-mouse-events"),P._selectionService.disable()):(P._logService.debug("Unbinding from mouse events."),P.element.classList.remove("enable-mouse-events"),P._selectionService.enable()),8&z?H.mousemove||(K.addEventListener("mousemove",be),H.mousemove=be):(K.removeEventListener("mousemove",H.mousemove),H.mousemove=null),16&z?H.wheel||(K.addEventListener("wheel",ve,{passive:!1}),H.wheel=ve):(K.removeEventListener("wheel",H.wheel),H.wheel=null),2&z?H.mouseup||(H.mouseup=ae):(P._document.removeEventListener("mouseup",H.mouseup),H.mouseup=null),4&z?H.mousedrag||(H.mousedrag=de):(P._document.removeEventListener("mousemove",H.mousedrag),H.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(K,"mousedown",function(z){if(z.preventDefault(),P.focus(),P._coreMouseService.areMouseEventsActive&&!P._selectionService.shouldForceSelection(z))return M(z),H.mouseup&&P._document.addEventListener("mouseup",H.mouseup),H.mousedrag&&P._document.addEventListener("mousemove",H.mousedrag),P.cancel(z)})),this.register(t.addDisposableDomListener(K,"wheel",function(z){if(!H.wheel){if(!P.buffer.hasScrollback){var ne=P.viewport.getLinesScrolled(z);if(ne===0)return;for(var fe=c.C0.ESC+(P._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(z.deltaY<0?"A":"B"),ie="",oe=0;oe47)},w.prototype._keyUp=function(P){this._customKeyEventHandler&&this._customKeyEventHandler(P)===!1||(function(k){return k.keyCode===16||k.keyCode===17||k.keyCode===18}(P)||this.focus(),this.updateCursorStyle(P))},w.prototype._keyPress=function(P){var k;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(P)===!1)return!1;if(this.cancel(P),P.charCode)k=P.charCode;else if(P.which===null||P.which===void 0)k=P.keyCode;else{if(P.which===0||P.charCode===0)return!1;k=P.which}return!(!k||(P.altKey||P.ctrlKey||P.metaKey)&&!this._isThirdLevelShift(this.browser,P))&&(k=String.fromCharCode(k),this._onKey.fire({key:k,domEvent:P}),this._showCursor(),this._coreService.triggerDataEvent(k,!0),!0)},w.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},w.prototype.resize=function(P,k){P!==this.cols||k!==this.rows?Y.prototype.resize.call(this,P,k):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},w.prototype._afterResize=function(P,k){var K,M;(K=this._charSizeService)===null||K===void 0||K.measure(),(M=this.viewport)===null||M===void 0||M.syncScrollArea(!0)},w.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var P=1;P=0;e--)(a=c[e])&&(t=(n<3?a(t):n>3?a(o,i,t):a(o,i))||t);return n>3&&t&&Object.defineProperty(o,i,t),t},_=this&&this.__param||function(c,o){return function(i,s){o(i,s,c)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CompositionHelper=void 0;var r=L(5),p=L(1),d=function(){function c(o,i,s,a,n,t){this._textarea=o,this._compositionView=i,this._bufferService=s,this._optionsService=a,this._charSizeService=n,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(c.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),c.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},c.prototype.compositionupdate=function(o){var i=this;this._compositionView.textContent=o.data,this.updateCompositionElements(),setTimeout(function(){i._compositionPosition.end=i._textarea.value.length},0)},c.prototype.compositionend=function(){this._finalizeComposition(!0)},c.prototype.keydown=function(o){if(this._isComposing||this._isSendingComposition){if(o.keyCode===229)return!1;if(o.keyCode===16||o.keyCode===17||o.keyCode===18)return!1;this._finalizeComposition(!1)}return o.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},c.prototype._finalizeComposition=function(o){var i=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,o){var s={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(i._isSendingComposition){i._isSendingComposition=!1;var n=void 0;n=i._isComposing?i._textarea.value.substring(s.start,s.end):i._textarea.value.substring(s.start),i._coreService.triggerDataEvent(n,!0)}},0)}else{this._isSendingComposition=!1;var a=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(a,!0)}},c.prototype._handleAnyTextareaChanges=function(){var o=this,i=this._textarea.value;setTimeout(function(){if(!o._isComposing){var s=o._textarea.value.replace(i,"");s.length>0&&o._coreService.triggerDataEvent(s,!0)}},0)},c.prototype.updateCompositionElements=function(o){var i=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var s=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),a=this._bufferService.buffer.y*s,n=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=n+"px",this._compositionView.style.top=a+"px",this._compositionView.style.height=s+"px",this._compositionView.style.lineHeight=s+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=n+"px",this._textarea.style.top=a+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}o||setTimeout(function(){return i.updateCompositionElements(!0)},0)}},c=m([_(2,p.IBufferService),_(3,p.IOptionsService),_(4,r.ICharSizeService),_(5,p.ICoreService)],c)}();f.CompositionHelper=d},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(a,n){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])})(a,n)},function(a,n){function t(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}),r=this&&this.__decorate||function(a,n,t,e){var u,l=arguments.length,g=l<3?n:e===null?e=Object.getOwnPropertyDescriptor(n,t):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,n,t,e);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Viewport=void 0;var d=L(2),c=L(7),o=L(5),i=L(1),s=function(a){function n(t,e,u,l,g,C,x){var y=a.call(this)||this;return y._scrollLines=t,y._viewportElement=e,y._scrollArea=u,y._bufferService=l,y._optionsService=g,y._charSizeService=C,y._renderService=x,y.scrollBarWidth=0,y._currentRowHeight=0,y._lastRecordedBufferLength=0,y._lastRecordedViewportHeight=0,y._lastRecordedBufferHeight=0,y._lastTouchY=0,y._lastScrollTop=0,y._wheelPartialScroll=0,y._refreshAnimationFrame=null,y._ignoreNextScrollEvent=!1,y.scrollBarWidth=y._viewportElement.offsetWidth-y._scrollArea.offsetWidth||15,y.register(c.addDisposableDomListener(y._viewportElement,"scroll",y._onScroll.bind(y))),setTimeout(function(){return y.syncScrollArea()},0),y}return _(n,a),n.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},n.prototype._refresh=function(t){var e=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return e._innerRefresh()}))},n.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null},n.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===e&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},n.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var e=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(e,!0)}},n.prototype._bubbleScroll=function(t,e){var u=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(e<0&&this._viewportElement.scrollTop!==0||e>0&&u0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._bufferService.rows),e},n.prototype._applyScrollModifier=function(t,e){var u=this._optionsService.options.fastScrollModifier;return u==="alt"&&e.altKey||u==="ctrl"&&e.ctrlKey||u==="shift"&&e.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},n.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},n.prototype.onTouchMove=function(t){var e=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,e!==0&&(this._viewportElement.scrollTop+=e,this._bubbleScroll(t,e))},n=r([p(3,i.IBufferService),p(4,i.IOptionsService),p(5,o.ICharSizeService),p(6,o.IRenderService)],n)}(d.Disposable);f.Viewport=s},function(S,f,L){"use strict";function m(d){return d.replace(/\r?\n/g,"\r")}function _(d,c){return c?"[200~"+d+"[201~":d}function r(d,c,o){d=_(d=m(d),o.decPrivateModes.bracketedPasteMode),o.triggerDataEvent(d,!0),c.value=""}function p(d,c,o){var i=o.getBoundingClientRect(),s=d.clientX-i.left-10,a=d.clientY-i.top-10;c.style.width="20px",c.style.height="20px",c.style.left=s+"px",c.style.top=a+"px",c.style.zIndex="1000",c.focus()}Object.defineProperty(f,"__esModule",{value:!0}),f.rightClickHandler=f.moveTextAreaUnderMouseCursor=f.paste=f.handlePasteEvent=f.copyHandler=f.bracketTextForPaste=f.prepareTextForTerminal=void 0,f.prepareTextForTerminal=m,f.bracketTextForPaste=_,f.copyHandler=function(d,c){d.clipboardData&&d.clipboardData.setData("text/plain",c.selectionText),d.preventDefault()},f.handlePasteEvent=function(d,c,o){d.stopPropagation(),d.clipboardData&&r(d.clipboardData.getData("text/plain"),c,o)},f.paste=r,f.moveTextAreaUnderMouseCursor=p,f.rightClickHandler=function(d,c,o,i,s){p(d,c,o),s&&!i.isClickInSelection(d)&&i.selectWordAtCursor(d),c.value=i.selectionText,c.select()}},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(a,n){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])})(a,n)},function(a,n){function t(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(f,"__esModule",{value:!0}),f.EscapeSequenceParser=f.VT500_TRANSITION_TABLE=f.TransitionTable=void 0;var r=L(2),p=L(15),d=L(21),c=L(22),o=L(24),i=function(){function a(n){this.table=new Uint8Array(n)}return a.prototype.setDefault=function(n,t){p.fill(this.table,n<<4|t)},a.prototype.add=function(n,t,e,u){this.table[t<<8|n]=e<<4|u},a.prototype.addMany=function(n,t,e,u){for(var l=0;l1)throw new Error("only one byte as prefix supported");if((u=t.prefix.charCodeAt(0))&&60>u||u>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var l=0;lg||g>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");u<<=8,u|=g}}if(t.final.length!==1)throw new Error("final must be a single byte");var C=t.final.charCodeAt(0);if(e[0]>C||C>e[1])throw new Error("final must be in range "+e[0]+" .. "+e[1]);return u<<=8,u|=C},n.prototype.identToString=function(t){for(var e=[];t;)e.push(String.fromCharCode(255&t)),t>>=8;return e.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(t){this._printHandler=t},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.addEscHandler=function(t,e){var u=this._identifier(t,[48,126]);this._escHandlers[u]===void 0&&(this._escHandlers[u]=[]);var l=this._escHandlers[u];return l.push(e),{dispose:function(){var g=l.indexOf(e);g!==-1&&l.splice(g,1)}}},n.prototype.setEscHandler=function(t,e){this._escHandlers[this._identifier(t,[48,126])]=[e]},n.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},n.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},n.prototype.setExecuteHandler=function(t,e){this._executeHandlers[t.charCodeAt(0)]=e},n.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},n.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},n.prototype.addCsiHandler=function(t,e){var u=this._identifier(t);this._csiHandlers[u]===void 0&&(this._csiHandlers[u]=[]);var l=this._csiHandlers[u];return l.push(e),{dispose:function(){var g=l.indexOf(e);g!==-1&&l.splice(g,1)}}},n.prototype.setCsiHandler=function(t,e){this._csiHandlers[this._identifier(t)]=[e]},n.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},n.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},n.prototype.addDcsHandler=function(t,e){return this._dcsParser.addHandler(this._identifier(t),e)},n.prototype.setDcsHandler=function(t,e){this._dcsParser.setHandler(this._identifier(t),e)},n.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},n.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},n.prototype.addOscHandler=function(t,e){return this._oscParser.addHandler(t,e)},n.prototype.setOscHandler=function(t,e){this._oscParser.setHandler(t,e)},n.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},n.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},n.prototype.setErrorHandler=function(t){this._errorHandler=t},n.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},n.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},n.prototype.parse=function(t,e){for(var u=0,l=0,g=this.currentState,C=this._oscParser,x=this._dcsParser,y=this._collect,T=this._params,A=this._transitions.table,E=0;E>4){case 2:for(var b=E+1;;++b){if(b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}if(++b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}if(++b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}if(++b>=e||(u=t[b])<32||u>126&&u<160){this._printHandler(t,E,b),E=b-1;break}}break;case 3:this._executeHandlers[u]?this._executeHandlers[u]():this._executeHandlerFb(u),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:E,code:u,currentState:g,collect:y,params:T,abort:!1}).abort)return;break;case 7:for(var v=this._csiHandlers[y<<8|u],O=v?v.length-1:-1;O>=0&&v[O](T)===!1;O--);O<0&&this._csiHandlerFb(y<<8|u,T),this.precedingCodepoint=0;break;case 8:do switch(u){case 59:T.addParam(0);break;case 58:T.addSubParam(-1);break;default:T.addDigit(u-48)}while(++E47&&u<60);E--;break;case 9:y<<=8,y|=u;break;case 10:for(var D=this._escHandlers[y<<8|u],W=D?D.length-1:-1;W>=0&&D[W]()===!1;W--);W<0&&this._escHandlerFb(y<<8|u),this.precedingCodepoint=0;break;case 11:T.reset(),T.addParam(0),y=0;break;case 12:x.hook(y<<8|u,T);break;case 13:for(var Q=E+1;;++Q)if(Q>=e||(u=t[Q])===24||u===26||u===27||u>127&&u<160){x.put(t,E,Q),E=Q-1;break}break;case 14:x.unhook(u!==24&&u!==26),u===27&&(l|=1),T.reset(),T.addParam(0),y=0,this.precedingCodepoint=0;break;case 4:C.start();break;case 5:for(var j=E+1;;j++)if(j>=e||(u=t[j])<32||u>127&&u<=159){C.put(t,E,j),E=j-1;break}break;case 6:C.end(u!==24&&u!==26),u===27&&(l|=1),T.reset(),T.addParam(0),y=0,this.precedingCodepoint=0}g=15&l}this._collect=y,this.currentState=g},n}(r.Disposable);f.EscapeSequenceParser=s},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(C,x){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,T){y.__proto__=T}||function(y,T){for(var A in T)T.hasOwnProperty(A)&&(y[A]=T[A])})(C,x)},function(C,x){function y(){this.constructor=C}m(C,x),C.prototype=x===null?Object.create(x):(y.prototype=x.prototype,new y)}),r=this&&this.__decorate||function(C,x,y,T){var A,E=arguments.length,b=E<3?x:T===null?T=Object.getOwnPropertyDescriptor(x,y):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(C,x,y,T);else for(var v=C.length-1;v>=0;v--)(A=C[v])&&(b=(E<3?A(b):E>3?A(x,y,b):A(x,y))||b);return E>3&&b&&Object.defineProperty(x,y,b),b},p=this&&this.__param||function(C,x){return function(y,T){x(y,T,C)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Renderer=void 0;var d=L(41),c=L(47),o=L(48),i=L(49),s=L(29),a=L(2),n=L(5),t=L(1),e=L(25),u=L(0),l=1,g=function(C){function x(y,T,A,E,b,v,O,D,W){var Q=C.call(this)||this;Q._colors=y,Q._screenElement=T,Q._bufferService=b,Q._charSizeService=v,Q._optionsService=O,Q._id=l++,Q._onRequestRedraw=new u.EventEmitter;var j=Q._optionsService.options.allowTransparency;return Q._characterJoinerRegistry=new s.CharacterJoinerRegistry(Q._bufferService),Q._renderLayers=[new d.TextRenderLayer(Q._screenElement,0,Q._colors,Q._characterJoinerRegistry,j,Q._id,Q._bufferService,O),new c.SelectionRenderLayer(Q._screenElement,1,Q._colors,Q._id,Q._bufferService,O),new i.LinkRenderLayer(Q._screenElement,2,Q._colors,Q._id,A,E,Q._bufferService,O),new o.CursorRenderLayer(Q._screenElement,3,Q._colors,Q._id,Q._onRequestRedraw,Q._bufferService,O,D,W)],Q.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Q._devicePixelRatio=window.devicePixelRatio,Q._updateDimensions(),Q.onOptionsChanged(),Q}return _(x,C),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){for(var y=0,T=this._renderLayers;y0&&T===y[0][0]){E=!0;var v=y.shift();A=new o.JoinedCellData(this._workCell,x.translateToString(!0,v[0],v[1]),v[1]-v[0]),b=v[1]-1}!E&&this._isOverlapping(A)&&bthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[e]=u,u},n}(p.BaseRenderLayer);f.TextRenderLayer=s},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GridCache=void 0;var m=function(){function _(){this.cache=[]}return _.prototype.resize=function(r,p){for(var d=0;d>>24,Z=W.rgba>>>16&255,Y=W.rgba>>>8&255,w=0;w=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=r,d.value=p,this._map[r]=d;else{var c=this._nodePool;c.length>0?((d=c.pop()).key=r,d.value=p):d={prev:null,next:null,key:r,value:p},this._map[r]=d,this.size++}this._appendNode(d)},_}();f.LRUMap=m},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(p,d){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var i in o)o.hasOwnProperty(i)&&(c[i]=o[i])})(p,d)},function(p,d){function c(){this.constructor=p}m(p,d),p.prototype=d===null?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionRenderLayer=void 0;var r=function(p){function d(c,o,i,s,a,n){var t=p.call(this,c,"selection",o,!0,i,s,a,n)||this;return t._clearState(),t}return _(d,p),d.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},d.prototype.resize=function(c){p.prototype.resize.call(this,c),this._clearState()},d.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},d.prototype.onSelectionChanged=function(c,o,i){if(this._didStateChange(c,o,i,this._bufferService.buffer.ydisp))if(this._clearAll(),c&&o){var s=c[1]-this._bufferService.buffer.ydisp,a=o[1]-this._bufferService.buffer.ydisp,n=Math.max(s,0),t=Math.min(a,this._bufferService.rows-1);if(!(n>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,i){var e=c[0],u=o[0]-e,l=t-n+1;this._fillCells(e,n,u,l)}else{e=s===n?c[0]:0;var g=n===t?o[0]:this._bufferService.cols;this._fillCells(e,n,g-e,1);var C=Math.max(t-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,C),n!==t){var x=a===t?o[0]:this._bufferService.cols;this._fillCells(0,t,x,1)}}this._state.start=[c[0],c[1]],this._state.end=[o[0],o[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},d.prototype._didStateChange=function(c,o,i,s){return!this._areCoordinatesEqual(c,this._state.start)||!this._areCoordinatesEqual(o,this._state.end)||i!==this._state.columnSelectMode||s!==this._state.ydisp},d.prototype._areCoordinatesEqual=function(c,o){return!(!c||!o)&&c[0]===o[0]&&c[1]===o[1]},d}(L(13).BaseRenderLayer);f.SelectionRenderLayer=r},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(o,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var n in a)a.hasOwnProperty(n)&&(s[n]=a[n])})(o,i)},function(o,i){function s(){this.constructor=o}m(o,i),o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.CursorRenderLayer=void 0;var r=L(13),p=L(4),d=function(o){function i(s,a,n,t,e,u,l,g,C){var x=o.call(this,s,"cursor",a,!0,n,t,u,l)||this;return x._onRequestRedraw=e,x._coreService=g,x._coreBrowserService=C,x._cell=new p.CellData,x._state={x:0,y:0,isFocused:!1,style:"",width:0},x._cursorRenderers={bar:x._renderBarCursor.bind(x),block:x._renderBlockCursor.bind(x),underline:x._renderUnderlineCursor.bind(x)},x}return _(i,o),i.prototype.resize=function(s){o.prototype.resize.call(this,s),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},i.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},i.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onOptionsChanged=function(){var s,a=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new c(this._coreBrowserService.isFocused,function(){a._render(!0)})):((s=this._cursorBlinkStateManager)===null||s===void 0||s.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype.onGridChanged=function(s,a){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype._render=function(s){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var a=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=a-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(a).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var e=this._optionsService.options.cursorStyle;return e&&e!=="block"?this._cursorRenderers[e](t,n,this._cell):this._renderBlurCursor(t,n,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=n,this._state.isFocused=!1,this._state.style=e,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,n,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},i.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},i.prototype._renderBarCursor=function(s,a,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(s,a,this._optionsService.options.cursorWidth),this._ctx.restore()},i.prototype._renderBlockCursor=function(s,a,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(s,a,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,s,a),this._ctx.restore()},i.prototype._renderUnderlineCursor=function(s,a,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(s,a),this._ctx.restore()},i.prototype._renderBlurCursor=function(s,a,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(s,a,n.getWidth(),1),this._ctx.restore()},i}(r.BaseRenderLayer);f.CursorRenderLayer=d;var c=function(){function o(i,s){this._renderCallback=s,this.isCursorVisible=!0,i&&this._restartInterval()}return Object.defineProperty(o.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.restartBlinkAnimation=function(){var i=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})))},o.prototype._restartInterval=function(i){var s=this;i===void 0&&(i=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(s._animationTimeRestarted){var a=600-(Date.now()-s._animationTimeRestarted);if(s._animationTimeRestarted=void 0,a>0)return void s._restartInterval(a)}s.isCursorVisible=!1,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0}),s._blinkInterval=window.setInterval(function(){if(s._animationTimeRestarted){var n=600-(Date.now()-s._animationTimeRestarted);return s._animationTimeRestarted=void 0,void s._restartInterval(n)}s.isCursorVisible=!s.isCursorVisible,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0})},600)},i)},o.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},o}()},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(o,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var n in a)a.hasOwnProperty(n)&&(s[n]=a[n])})(o,i)},function(o,i){function s(){this.constructor=o}m(o,i),o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.LinkRenderLayer=void 0;var r=L(13),p=L(9),d=L(26),c=function(o){function i(s,a,n,t,e,u,l,g){var C=o.call(this,s,"link",a,!0,n,t,l,g)||this;return e.onShowLinkUnderline(function(x){return C._onShowLinkUnderline(x)}),e.onHideLinkUnderline(function(x){return C._onHideLinkUnderline(x)}),u.onShowLinkUnderline(function(x){return C._onShowLinkUnderline(x)}),u.onHideLinkUnderline(function(x){return C._onHideLinkUnderline(x)}),C}return _(i,o),i.prototype.resize=function(s){o.prototype.resize.call(this,s),this._state=void 0},i.prototype.reset=function(){this._clearCurrentLink()},i.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var s=this._state.y2-this._state.y1-1;s>0&&this._clearCells(0,this._state.y1+1,this._state.cols,s),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},i.prototype._onShowLinkUnderline=function(s){if(s.fg===p.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:s.fg&&d.is256Color(s.fg)?this._ctx.fillStyle=this._colors.ansi[s.fg].css:this._ctx.fillStyle=this._colors.foreground.css,s.y1===s.y2)this._fillBottomLineAtCells(s.x1,s.y1,s.x2-s.x1);else{this._fillBottomLineAtCells(s.x1,s.y1,s.cols-s.x1);for(var a=s.y1+1;a=0;u--)(n=o[u])&&(e=(t<3?n(e):t>3?n(i,s,e):n(i,s))||e);return t>3&&e&&Object.defineProperty(i,s,e),e},_=this&&this.__param||function(o,i){return function(s,a){i(s,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZone=f.Linkifier=void 0;var r=L(0),p=L(1),d=function(){function o(i,s,a){this._bufferService=i,this._logService=s,this._unicodeService=a,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new r.EventEmitter,this._onHideLinkUnderline=new r.EventEmitter,this._onLinkTooltip=new r.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(o.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),o.prototype.attachToDom=function(i,s){this._element=i,this._mouseZoneManager=s},o.prototype.linkifyRows=function(i,s){var a=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=i,this._rowsToLinkify.end=s):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,i),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,s)),this._mouseZoneManager.clearAll(i,s),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return a._linkifyRows()},o._timeBeforeLatency))},o.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var i=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var s=i.ydisp+this._rowsToLinkify.start;if(!(s>=i.lines.length)){for(var a=i.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,n=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,s,a,n,n);t.hasNext();)for(var e=t.next(),u=0;u=0;s--)if(i.priority<=this._linkMatchers[s].priority)return void this._linkMatchers.splice(s+1,0,i);this._linkMatchers.splice(0,0,i)}else this._linkMatchers.push(i)},o.prototype.deregisterLinkMatcher=function(i){for(var s=0;s>9&511:void 0;a.validationCallback?a.validationCallback(C,function(E){t._rowsTimeoutId||E&&t._addLink(x[1],x[0]-t._bufferService.buffer.ydisp,C,a,A)}):g._addLink(x[1],x[0]-g._bufferService.buffer.ydisp,C,a,A)},g=this;(n=e.exec(s))!==null&&!(l()==="break"););},o.prototype._addLink=function(i,s,a,n,t){var e=this;if(this._mouseZoneManager&&this._element){var u=this._unicodeService.getStringCellWidth(a),l=i%this._bufferService.cols,g=s+Math.floor(i/this._bufferService.cols),C=(l+u)%this._bufferService.cols,x=g+Math.floor((l+u)/this._bufferService.cols);C===0&&(C=this._bufferService.cols,x--),this._mouseZoneManager.add(new c(l+1,g+1,C+1,x+1,function(y){if(n.handler)return n.handler(y,a);var T=window.open();T?(T.opener=null,T.location.href=a):console.warn("Opening link blocked as opener could not be cleared")},function(){e._onShowLinkUnderline.fire(e._createLinkHoverEvent(l,g,C,x,t)),e._element.classList.add("xterm-cursor-pointer")},function(y){e._onLinkTooltip.fire(e._createLinkHoverEvent(l,g,C,x,t)),n.hoverTooltipCallback&&n.hoverTooltipCallback(y,a,{start:{x:l,y:g},end:{x:C,y:x}})},function(){e._onHideLinkUnderline.fire(e._createLinkHoverEvent(l,g,C,x,t)),e._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(y){return!n.willLinkActivate||n.willLinkActivate(y,a)}))}},o.prototype._createLinkHoverEvent=function(i,s,a,n,t){return{x1:i,y1:s,x2:a,y2:n,cols:this._bufferService.cols,fg:t}},o._timeBeforeLatency=200,o=m([_(0,p.IBufferService),_(1,p.ILogService),_(2,p.IUnicodeService)],o)}();f.Linkifier=d;var c=function(o,i,s,a,n,t,e,u,l){this.x1=o,this.y1=i,this.x2=s,this.y2=a,this.clickCallback=n,this.hoverCallback=t,this.tooltipCallback=e,this.leaveCallback=u,this.willLinkActivate=l};f.MouseZone=c},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(C,x){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,T){y.__proto__=T}||function(y,T){for(var A in T)T.hasOwnProperty(A)&&(y[A]=T[A])})(C,x)},function(C,x){function y(){this.constructor=C}m(C,x),C.prototype=x===null?Object.create(x):(y.prototype=x.prototype,new y)}),r=this&&this.__decorate||function(C,x,y,T){var A,E=arguments.length,b=E<3?x:T===null?T=Object.getOwnPropertyDescriptor(x,y):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(C,x,y,T);else for(var v=C.length-1;v>=0;v--)(A=C[v])&&(b=(E<3?A(b):E>3?A(x,y,b):A(x,y))||b);return E>3&&b&&Object.defineProperty(x,y,b),b},p=this&&this.__param||function(C,x){return function(y,T){x(y,T,C)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionService=void 0;var d=L(11),c=L(52),o=L(4),i=L(0),s=L(5),a=L(1),n=L(30),t=L(53),e=L(2),u=String.fromCharCode(160),l=new RegExp(u,"g"),g=function(C){function x(y,T,A,E,b,v,O){var D=C.call(this)||this;return D._element=y,D._screenElement=T,D._bufferService=A,D._coreService=E,D._mouseService=b,D._optionsService=v,D._renderService=O,D._dragScrollAmount=0,D._enabled=!0,D._workCell=new o.CellData,D._mouseDownTimeStamp=0,D._onLinuxMouseSelection=D.register(new i.EventEmitter),D._onRedrawRequest=D.register(new i.EventEmitter),D._onSelectionChange=D.register(new i.EventEmitter),D._onRequestScrollLines=D.register(new i.EventEmitter),D._mouseMoveListener=function(W){return D._onMouseMove(W)},D._mouseUpListener=function(W){return D._onMouseUp(W)},D._coreService.onUserInput(function(){D.hasSelection&&D.clearSelection()}),D._trimListener=D._bufferService.buffer.lines.onTrim(function(W){return D._onTrim(W)}),D.register(D._bufferService.buffers.onBufferActivate(function(W){return D._onBufferActivate(W)})),D.enable(),D._model=new c.SelectionModel(D._bufferService),D._activeSelectionMode=0,D}return _(x,C),Object.defineProperty(x.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._removeMouseDownListeners()},x.prototype.reset=function(){this.clearSelection()},x.prototype.disable=function(){this.clearSelection(),this._enabled=!1},x.prototype.enable=function(){this._enabled=!0},Object.defineProperty(x.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!y||!T)&&(y[0]!==T[0]||y[1]!==T[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!y||!T)return"";var A=this._bufferService.buffer,E=[];if(this._activeSelectionMode===3){if(y[0]===T[0])return"";for(var b=y[1];b<=T[1];b++){var v=A.translateBufferLineToString(b,!0,y[0],T[0]);E.push(v)}}else{var O=y[1]===T[1]?T[0]:void 0;for(E.push(A.translateBufferLineToString(y[1],!0,y[0],O)),b=y[1]+1;b<=T[1]-1;b++){var D=A.lines.get(b);v=A.translateBufferLineToString(b,!0),D&&D.isWrapped?E[E.length-1]+=v:E.push(v)}y[1]!==T[1]&&(D=A.lines.get(T[1]),v=A.translateBufferLineToString(T[1],!0,0,T[0]),D&&D.isWrapped?E[E.length-1]+=v:E.push(v))}return E.map(function(W){return W.replace(l," ")}).join(d.isWindows?`\r `:` -`)},enumerable:!1,configurable:!0}),x.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},x.prototype.refresh=function(y){var T=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return T._refresh()})),d.isLinux&&y)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},x.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},x.prototype.isClickInSelection=function(y){var T=this._getMouseBufferCoords(y),A=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;return!!(A&&E&&T)&&this._areCoordsInSelection(T,A,E)},x.prototype._areCoordsInSelection=function(y,T,A){return y[1]>T[1]&&y[1]=T[0]&&y[0]=T[0]},x.prototype.selectWordAtCursor=function(y){var T=this._getMouseBufferCoords(y);T&&(this._selectWordAt(T,!1),this._model.selectionEnd=void 0,this.refresh(!0))},x.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},x.prototype.selectLines=function(y,T){this._model.clearSelection(),y=Math.max(y,0),T=Math.min(T,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,y],this._model.selectionEnd=[this._bufferService.cols,T],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(y){this._model.onTrim(y)&&this.refresh()},x.prototype._getMouseBufferCoords=function(y){var T=this._mouseService.getCoords(y,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(T)return T[0]--,T[1]--,T[1]+=this._bufferService.buffer.ydisp,T},x.prototype._getMouseEventScrollAmount=function(y){var T=n.getCoordsRelativeToElement(y,this._screenElement)[1],A=this._renderService.dimensions.canvasHeight;return T>=0&&T<=A?0:(T>A&&(T-=A),T=Math.min(Math.max(T,-50),50),(T/=50)/Math.abs(T)+Math.round(14*T))},x.prototype.shouldForceSelection=function(y){return d.isMac?y.altKey&&this._optionsService.options.macOptionClickForcesSelection:y.shiftKey},x.prototype.onMouseDown=function(y){if(this._mouseDownTimeStamp=y.timeStamp,(y.button!==2||!this.hasSelection)&&y.button===0){if(!this._enabled){if(!this.shouldForceSelection(y))return;y.stopPropagation()}y.preventDefault(),this._dragScrollAmount=0,this._enabled&&y.shiftKey?this._onIncrementalClick(y):y.detail===1?this._onSingleClick(y):y.detail===2?this._onDoubleClick(y):y.detail===3&&this._onTripleClick(y),this._addMouseDownListeners(),this.refresh(!0)}},x.prototype._addMouseDownListeners=function(){var y=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return y._dragScroll()},50)},x.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},x.prototype._onIncrementalClick=function(y){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(y))},x.prototype._onSingleClick=function(y){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(y)?3:0,this._model.selectionStart=this._getMouseBufferCoords(y),this._model.selectionStart){this._model.selectionEnd=void 0;var T=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);T&&T.length!==this._model.selectionStart[0]&&T.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(y){var T=this._getMouseBufferCoords(y);T&&(this._activeSelectionMode=1,this._selectWordAt(T,!0))},x.prototype._onTripleClick=function(y){var T=this._getMouseBufferCoords(y);T&&(this._activeSelectionMode=2,this._selectLineAt(T[1]))},x.prototype.shouldColumnSelect=function(y){return y.altKey&&!(d.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(y){if(y.stopImmediatePropagation(),this._model.selectionStart){var T=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(y),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var A=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(y.ydisp+this._bufferService.rows,y.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=y.ydisp),this.refresh()}},x.prototype._onMouseUp=function(y){var T=y.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&T<500&&y.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var A=this._mouseService.getCoords(y,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(A&&A[0]!==void 0&&A[1]!==void 0){var E=t.moveToCellSequence(A[0]-1,A[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(E,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(y){var T=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=y.activeBuffer.lines.onTrim(function(A){return T._onTrim(A)})},x.prototype._convertViewportColToCharacterIndex=function(y,T){for(var A=T[0],E=0;T[0]>=E;E++){var b=y.loadCell(E,this._workCell).getChars().length;this._workCell.getWidth()===0?A--:b>1&&T[0]!==E&&(A+=b-1)}return A},x.prototype.setSelection=function(y,T,A){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[y,T],this._model.selectionStartLength=A,this.refresh()},x.prototype._getWordAt=function(y,T,A,E){if(A===void 0&&(A=!0),E===void 0&&(E=!0),!(y[0]>=this._bufferService.cols)){var b=this._bufferService.buffer,v=b.lines.get(y[1]);if(v){var O=b.translateBufferLineToString(y[1],!1),D=this._convertViewportColToCharacterIndex(v,y),W=D,Q=y[0]-D,j=0,Z=0,Y=0,w=0;if(O.charAt(D)===" "){for(;D>0&&O.charAt(D-1)===" ";)D--;for(;W1&&(w+=K-1,W+=K-1);P>0&&D>0&&!this._isCharWordSeparator(v.loadCell(P-1,this._workCell));){v.loadCell(P-1,this._workCell);var M=this._workCell.getChars().length;this._workCell.getWidth()===0?(j++,P--):M>1&&(Y+=M-1,D-=M-1),D--,P--}for(;L1&&(w+=H-1,W+=H-1),W++,L++}}W++;var ae=D+Q-j+Y,ve=Math.min(this._bufferService.cols,W-D+j+Z-Y-w);if(T||O.slice(D,W).trim()!==""){if(A&&ae===0&&v.getCodePoint(0)!==32){var de=b.lines.get(y[1]-1);if(de&&v.isWrapped&&de.getCodePoint(this._bufferService.cols-1)!==32){var be=this._getWordAt([this._bufferService.cols-1,y[1]-1],!1,!0,!1);if(be){var z=this._bufferService.cols-be.start;ae-=z,ve+=z}}}if(E&&ae+ve===this._bufferService.cols&&v.getCodePoint(this._bufferService.cols-1)!==32){var ne=b.lines.get(y[1]+1);if(ne&&ne.isWrapped&&ne.getCodePoint(0)!==32){var fe=this._getWordAt([0,y[1]+1],!1,!1,!0);fe&&(ve+=fe.length)}}return{start:ae,length:ve}}}}},x.prototype._selectWordAt=function(y,T){var A=this._getWordAt(y,T);if(A){for(;A.start<0;)A.start+=this._bufferService.cols,y[1]--;this._model.selectionStart=[A.start,y[1]],this._model.selectionStartLength=A.length}},x.prototype._selectToWordAt=function(y){var T=this._getWordAt(y,!0);if(T){for(var A=y[1];T.start<0;)T.start+=this._bufferService.cols,A--;if(!this._model.areSelectionValuesReversed())for(;T.start+T.length>this._bufferService.cols;)T.length-=this._bufferService.cols,A++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?T.start:T.start+T.length,A]}},x.prototype._isCharWordSeparator=function(y){return y.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(y.getChars())>=0},x.prototype._selectLineAt=function(y){var T=this._bufferService.buffer.getWrappedRangeForLine(y);this._model.selectionStart=[0,T.first],this._model.selectionEnd=[this._bufferService.cols,T.last],this._model.selectionStartLength=0},x=r([p(2,a.IBufferService),p(3,a.ICoreService),p(4,s.IMouseService),p(5,a.IOptionsService),p(6,s.IRenderService)],x)}(e.Disposable);f.SelectionService=g},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionModel=void 0;var m=function(){function _(r){this._bufferService=r,this.isSelectAllActive=!1,this.selectionStartLength=0}return _.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(_.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var r=this.selectionStart[0]+this.selectionStartLength;return r>this._bufferService.cols?[r%this._bufferService.cols,this.selectionStart[1]+Math.floor(r/this._bufferService.cols)]:[r,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),_.prototype.areSelectionValuesReversed=function(){var r=this.selectionStart,p=this.selectionEnd;return!(!r||!p)&&(r[1]>p[1]||r[1]===p[1]&&r[0]>p[0])},_.prototype.onTrim=function(r){return this.selectionStart&&(this.selectionStart[1]-=r),this.selectionEnd&&(this.selectionEnd[1]-=r),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},_}();f.SelectionModel=m},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.moveToCellSequence=void 0;var m=k(12);function _(i,s,a,n){var t=i-r(a,i),e=s-r(a,s);return o(Math.abs(t-e)-function(u,l,g){for(var C=0,x=u-r(g,u),y=l-r(g,l),T=0;T=0&&ss?"A":"B"}function d(i,s,a,n,t,e){for(var u=i,l=s,g="";u!==a||l!==n;)u+=t?1:-1,t&&u>e.cols-1?(g+=e.buffer.translateBufferLineToString(l,!1,i,u),u=0,i=0,l++):!t&&u<0&&(g+=e.buffer.translateBufferLineToString(l,!1,0,i+1),i=u=e.cols-1,l--);return g+e.buffer.translateBufferLineToString(l,!1,i,u)}function c(i,s){var a=s?"O":"[";return m.C0.ESC+a+i}function o(i,s){i=Math.floor(i);for(var a="",n=0;n0?y-r(T,y):C;var b=y,v=function(O,D,W,Q,j,Z){var Y;return Y=_(W,Q,j,Z).length>0?Q-r(j,Q):D,O=W&&Yi?"D":"C",o(Math.abs(e-i),c(t,n));t=u>s?"D":"C";var l=Math.abs(u-s);return o(function(g,C){return C.cols-g}(u>s?i:e,a)+(l-1)*a.cols+1+((u>s?e:i)-1),c(t,n))}},function(S,f,k){"use strict";var m=this&&this.__decorate||function(d,c,o,i){var s,a=arguments.length,n=a<3?c:i===null?i=Object.getOwnPropertyDescriptor(c,o):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(d,c,o,i);else for(var t=d.length-1;t>=0;t--)(s=d[t])&&(n=(a<3?s(n):a>3?s(c,o,n):s(c,o))||n);return a>3&&n&&Object.defineProperty(c,o,n),n},_=this&&this.__param||function(d,c){return function(o,i){c(o,i,d)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SoundService=void 0;var r=k(1),p=function(){function d(c){this._optionsService=c}return Object.defineProperty(d,"audioContext",{get:function(){if(!d._audioContext){var c=window.AudioContext||window.webkitAudioContext;if(!c)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;d._audioContext=new c}return d._audioContext},enumerable:!1,configurable:!0}),d.prototype.playBellSound=function(){var c=d.audioContext;if(c){var o=c.createBufferSource();c.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(i){o.buffer=i,o.connect(c.destination),o.start(0)})}},d.prototype._base64ToArrayBuffer=function(c){for(var o=window.atob(c),i=o.length,s=new Uint8Array(i),a=0;a=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZoneManager=void 0;var d=k(2),c=k(7),o=k(5),i=k(1),s=function(a){function n(t,e,u,l,g,C){var x=a.call(this)||this;return x._element=t,x._screenElement=e,x._bufferService=u,x._mouseService=l,x._selectionService=g,x._optionsService=C,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(c.addDisposableDomListener(x._element,"mousedown",function(y){return x._onMouseDown(y)})),x._mouseMoveListener=function(y){return x._onMouseMove(y)},x._mouseLeaveListener=function(y){return x._onMouseLeave(y)},x._clickListener=function(y){return x._onClick(y)},x}return _(n,a),n.prototype.dispose=function(){a.prototype.dispose.call(this),this._deactivate()},n.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},n.prototype.clearAll=function(t,e){if(this._zones.length!==0){t&&e||(t=0,e=this._bufferService.rows-1);for(var u=0;ut&&l.y1<=e+1||l.y2>t&&l.y2<=e+1||l.y1e+1)&&(this._currentZone&&this._currentZone===l&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(u--,1))}this._zones.length===0&&this._deactivate()}},n.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},n.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},n.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},n.prototype._onHover=function(t){var e=this,u=this._findZoneEventAt(t);u!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),u&&(this._currentZone=u,u.hoverCallback&&u.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return e._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},n.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var e=this._findZoneEventAt(t);e&&e.tooltipCallback&&e.tooltipCallback(t)},n.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var e=this._findZoneEventAt(t);(e==null?void 0:e.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},n.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},n.prototype._onClick=function(t){var e=this._findZoneEventAt(t),u=this._getSelectionLength();e&&u===this._initialSelectionLength&&(e.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},n.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},n.prototype._findZoneEventAt=function(t){var e=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(e)for(var u=e[0],l=e[1],g=0;g=C.x1&&u=C.x1||l===C.y2&&uC.y1&&lT[1]&&y[1]=T[0]&&y[0]=T[0]},x.prototype.selectWordAtCursor=function(y){var T=this._getMouseBufferCoords(y);T&&(this._selectWordAt(T,!1),this._model.selectionEnd=void 0,this.refresh(!0))},x.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},x.prototype.selectLines=function(y,T){this._model.clearSelection(),y=Math.max(y,0),T=Math.min(T,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,y],this._model.selectionEnd=[this._bufferService.cols,T],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(y){this._model.onTrim(y)&&this.refresh()},x.prototype._getMouseBufferCoords=function(y){var T=this._mouseService.getCoords(y,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(T)return T[0]--,T[1]--,T[1]+=this._bufferService.buffer.ydisp,T},x.prototype._getMouseEventScrollAmount=function(y){var T=n.getCoordsRelativeToElement(y,this._screenElement)[1],A=this._renderService.dimensions.canvasHeight;return T>=0&&T<=A?0:(T>A&&(T-=A),T=Math.min(Math.max(T,-50),50),(T/=50)/Math.abs(T)+Math.round(14*T))},x.prototype.shouldForceSelection=function(y){return d.isMac?y.altKey&&this._optionsService.options.macOptionClickForcesSelection:y.shiftKey},x.prototype.onMouseDown=function(y){if(this._mouseDownTimeStamp=y.timeStamp,(y.button!==2||!this.hasSelection)&&y.button===0){if(!this._enabled){if(!this.shouldForceSelection(y))return;y.stopPropagation()}y.preventDefault(),this._dragScrollAmount=0,this._enabled&&y.shiftKey?this._onIncrementalClick(y):y.detail===1?this._onSingleClick(y):y.detail===2?this._onDoubleClick(y):y.detail===3&&this._onTripleClick(y),this._addMouseDownListeners(),this.refresh(!0)}},x.prototype._addMouseDownListeners=function(){var y=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return y._dragScroll()},50)},x.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},x.prototype._onIncrementalClick=function(y){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(y))},x.prototype._onSingleClick=function(y){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(y)?3:0,this._model.selectionStart=this._getMouseBufferCoords(y),this._model.selectionStart){this._model.selectionEnd=void 0;var T=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);T&&T.length!==this._model.selectionStart[0]&&T.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(y){var T=this._getMouseBufferCoords(y);T&&(this._activeSelectionMode=1,this._selectWordAt(T,!0))},x.prototype._onTripleClick=function(y){var T=this._getMouseBufferCoords(y);T&&(this._activeSelectionMode=2,this._selectLineAt(T[1]))},x.prototype.shouldColumnSelect=function(y){return y.altKey&&!(d.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(y){if(y.stopImmediatePropagation(),this._model.selectionStart){var T=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(y),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var A=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(y.ydisp+this._bufferService.rows,y.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=y.ydisp),this.refresh()}},x.prototype._onMouseUp=function(y){var T=y.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&T<500&&y.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var A=this._mouseService.getCoords(y,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(A&&A[0]!==void 0&&A[1]!==void 0){var E=t.moveToCellSequence(A[0]-1,A[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(E,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(y){var T=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=y.activeBuffer.lines.onTrim(function(A){return T._onTrim(A)})},x.prototype._convertViewportColToCharacterIndex=function(y,T){for(var A=T[0],E=0;T[0]>=E;E++){var b=y.loadCell(E,this._workCell).getChars().length;this._workCell.getWidth()===0?A--:b>1&&T[0]!==E&&(A+=b-1)}return A},x.prototype.setSelection=function(y,T,A){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[y,T],this._model.selectionStartLength=A,this.refresh()},x.prototype._getWordAt=function(y,T,A,E){if(A===void 0&&(A=!0),E===void 0&&(E=!0),!(y[0]>=this._bufferService.cols)){var b=this._bufferService.buffer,v=b.lines.get(y[1]);if(v){var O=b.translateBufferLineToString(y[1],!1),D=this._convertViewportColToCharacterIndex(v,y),W=D,Q=y[0]-D,j=0,Z=0,Y=0,w=0;if(O.charAt(D)===" "){for(;D>0&&O.charAt(D-1)===" ";)D--;for(;W1&&(w+=K-1,W+=K-1);P>0&&D>0&&!this._isCharWordSeparator(v.loadCell(P-1,this._workCell));){v.loadCell(P-1,this._workCell);var M=this._workCell.getChars().length;this._workCell.getWidth()===0?(j++,P--):M>1&&(Y+=M-1,D-=M-1),D--,P--}for(;k1&&(w+=H-1,W+=H-1),W++,k++}}W++;var ae=D+Q-j+Y,ve=Math.min(this._bufferService.cols,W-D+j+Z-Y-w);if(T||O.slice(D,W).trim()!==""){if(A&&ae===0&&v.getCodePoint(0)!==32){var de=b.lines.get(y[1]-1);if(de&&v.isWrapped&&de.getCodePoint(this._bufferService.cols-1)!==32){var be=this._getWordAt([this._bufferService.cols-1,y[1]-1],!1,!0,!1);if(be){var z=this._bufferService.cols-be.start;ae-=z,ve+=z}}}if(E&&ae+ve===this._bufferService.cols&&v.getCodePoint(this._bufferService.cols-1)!==32){var ne=b.lines.get(y[1]+1);if(ne&&ne.isWrapped&&ne.getCodePoint(0)!==32){var fe=this._getWordAt([0,y[1]+1],!1,!1,!0);fe&&(ve+=fe.length)}}return{start:ae,length:ve}}}}},x.prototype._selectWordAt=function(y,T){var A=this._getWordAt(y,T);if(A){for(;A.start<0;)A.start+=this._bufferService.cols,y[1]--;this._model.selectionStart=[A.start,y[1]],this._model.selectionStartLength=A.length}},x.prototype._selectToWordAt=function(y){var T=this._getWordAt(y,!0);if(T){for(var A=y[1];T.start<0;)T.start+=this._bufferService.cols,A--;if(!this._model.areSelectionValuesReversed())for(;T.start+T.length>this._bufferService.cols;)T.length-=this._bufferService.cols,A++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?T.start:T.start+T.length,A]}},x.prototype._isCharWordSeparator=function(y){return y.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(y.getChars())>=0},x.prototype._selectLineAt=function(y){var T=this._bufferService.buffer.getWrappedRangeForLine(y);this._model.selectionStart=[0,T.first],this._model.selectionEnd=[this._bufferService.cols,T.last],this._model.selectionStartLength=0},x=r([p(2,a.IBufferService),p(3,a.ICoreService),p(4,s.IMouseService),p(5,a.IOptionsService),p(6,s.IRenderService)],x)}(e.Disposable);f.SelectionService=g},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionModel=void 0;var m=function(){function _(r){this._bufferService=r,this.isSelectAllActive=!1,this.selectionStartLength=0}return _.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(_.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var r=this.selectionStart[0]+this.selectionStartLength;return r>this._bufferService.cols?[r%this._bufferService.cols,this.selectionStart[1]+Math.floor(r/this._bufferService.cols)]:[r,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),_.prototype.areSelectionValuesReversed=function(){var r=this.selectionStart,p=this.selectionEnd;return!(!r||!p)&&(r[1]>p[1]||r[1]===p[1]&&r[0]>p[0])},_.prototype.onTrim=function(r){return this.selectionStart&&(this.selectionStart[1]-=r),this.selectionEnd&&(this.selectionEnd[1]-=r),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},_}();f.SelectionModel=m},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.moveToCellSequence=void 0;var m=L(12);function _(i,s,a,n){var t=i-r(a,i),e=s-r(a,s);return o(Math.abs(t-e)-function(u,l,g){for(var C=0,x=u-r(g,u),y=l-r(g,l),T=0;T=0&&ss?"A":"B"}function d(i,s,a,n,t,e){for(var u=i,l=s,g="";u!==a||l!==n;)u+=t?1:-1,t&&u>e.cols-1?(g+=e.buffer.translateBufferLineToString(l,!1,i,u),u=0,i=0,l++):!t&&u<0&&(g+=e.buffer.translateBufferLineToString(l,!1,0,i+1),i=u=e.cols-1,l--);return g+e.buffer.translateBufferLineToString(l,!1,i,u)}function c(i,s){var a=s?"O":"[";return m.C0.ESC+a+i}function o(i,s){i=Math.floor(i);for(var a="",n=0;n0?y-r(T,y):C;var b=y,v=function(O,D,W,Q,j,Z){var Y;return Y=_(W,Q,j,Z).length>0?Q-r(j,Q):D,O=W&&Yi?"D":"C",o(Math.abs(e-i),c(t,n));t=u>s?"D":"C";var l=Math.abs(u-s);return o(function(g,C){return C.cols-g}(u>s?i:e,a)+(l-1)*a.cols+1+((u>s?e:i)-1),c(t,n))}},function(S,f,L){"use strict";var m=this&&this.__decorate||function(d,c,o,i){var s,a=arguments.length,n=a<3?c:i===null?i=Object.getOwnPropertyDescriptor(c,o):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(d,c,o,i);else for(var t=d.length-1;t>=0;t--)(s=d[t])&&(n=(a<3?s(n):a>3?s(c,o,n):s(c,o))||n);return a>3&&n&&Object.defineProperty(c,o,n),n},_=this&&this.__param||function(d,c){return function(o,i){c(o,i,d)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SoundService=void 0;var r=L(1),p=function(){function d(c){this._optionsService=c}return Object.defineProperty(d,"audioContext",{get:function(){if(!d._audioContext){var c=window.AudioContext||window.webkitAudioContext;if(!c)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;d._audioContext=new c}return d._audioContext},enumerable:!1,configurable:!0}),d.prototype.playBellSound=function(){var c=d.audioContext;if(c){var o=c.createBufferSource();c.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(i){o.buffer=i,o.connect(c.destination),o.start(0)})}},d.prototype._base64ToArrayBuffer=function(c){for(var o=window.atob(c),i=o.length,s=new Uint8Array(i),a=0;a=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZoneManager=void 0;var d=L(2),c=L(7),o=L(5),i=L(1),s=function(a){function n(t,e,u,l,g,C){var x=a.call(this)||this;return x._element=t,x._screenElement=e,x._bufferService=u,x._mouseService=l,x._selectionService=g,x._optionsService=C,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(c.addDisposableDomListener(x._element,"mousedown",function(y){return x._onMouseDown(y)})),x._mouseMoveListener=function(y){return x._onMouseMove(y)},x._mouseLeaveListener=function(y){return x._onMouseLeave(y)},x._clickListener=function(y){return x._onClick(y)},x}return _(n,a),n.prototype.dispose=function(){a.prototype.dispose.call(this),this._deactivate()},n.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},n.prototype.clearAll=function(t,e){if(this._zones.length!==0){t&&e||(t=0,e=this._bufferService.rows-1);for(var u=0;ut&&l.y1<=e+1||l.y2>t&&l.y2<=e+1||l.y1e+1)&&(this._currentZone&&this._currentZone===l&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(u--,1))}this._zones.length===0&&this._deactivate()}},n.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},n.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},n.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},n.prototype._onHover=function(t){var e=this,u=this._findZoneEventAt(t);u!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),u&&(this._currentZone=u,u.hoverCallback&&u.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return e._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},n.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var e=this._findZoneEventAt(t);e&&e.tooltipCallback&&e.tooltipCallback(t)},n.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var e=this._findZoneEventAt(t);(e==null?void 0:e.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},n.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},n.prototype._onClick=function(t){var e=this._findZoneEventAt(t),u=this._getSelectionLength();e&&u===this._initialSelectionLength&&(e.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},n.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},n.prototype._findZoneEventAt=function(t){var e=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(e)for(var u=e[0],l=e[1],g=0;g=C.x1&&u=C.x1||l===C.y2&&uC.y1&&le;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var u=0;u0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===` -`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=r.tooMuchOutput)),p.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){u._accessibilityTreeRoot.appendChild(u._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,p.isMac&&s.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,u){this._renderRowsDebouncer.refresh(e,u,this._terminal.rows)},t.prototype._renderRows=function(e,u){for(var l=this._terminal.buffer,g=l.lines.length.toString(),C=e;C<=u;C++){var x=l.translateBufferLineToString(l.ydisp+C,!0),y=(l.ydisp+C+1).toString(),T=this._rowElements[C];T&&(x.length===0?T.innerHTML=" ":T.textContent=x,T.setAttribute("aria-posinset",y),T.setAttribute("aria-setsize",g))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e=0;E--)(y=l[E])&&(A=(T<3?y(A):T>3?y(g,C,A):y(g,C))||A);return T>3&&A&&Object.defineProperty(g,C,A),A},p=this&&this.__param||function(l,g){return function(C,x){g(C,x,l)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DomRenderer=void 0;var d=k(58),c=k(9),o=k(2),i=k(5),s=k(1),a=k(0),n=k(10),t=k(17),e=1,u=function(l){function g(C,x,y,T,A,E,b,v,O){var D=l.call(this)||this;return D._colors=C,D._element=x,D._screenElement=y,D._viewportElement=T,D._linkifier=A,D._linkifier2=E,D._charSizeService=b,D._optionsService=v,D._bufferService=O,D._terminalClass=e++,D._rowElements=[],D._rowContainer=document.createElement("div"),D._rowContainer.classList.add("xterm-rows"),D._rowContainer.style.lineHeight="normal",D._rowContainer.setAttribute("aria-hidden","true"),D._refreshRowElements(D._bufferService.cols,D._bufferService.rows),D._selectionContainer=document.createElement("div"),D._selectionContainer.classList.add("xterm-selection"),D._selectionContainer.setAttribute("aria-hidden","true"),D.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},D._updateDimensions(),D._injectCss(),D._rowFactory=new d.DomRendererRowFactory(document,D._optionsService,D._colors),D._element.classList.add("xterm-dom-renderer-owner-"+D._terminalClass),D._screenElement.appendChild(D._rowContainer),D._screenElement.appendChild(D._selectionContainer),D._linkifier.onShowLinkUnderline(function(W){return D._onLinkHover(W)}),D._linkifier.onHideLinkUnderline(function(W){return D._onLinkLeave(W)}),D._linkifier2.onShowLinkUnderline(function(W){return D._onLinkHover(W)}),D._linkifier2.onHideLinkUnderline(function(W){return D._onLinkLeave(W)}),D}return _(g,l),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return new a.EventEmitter().event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),t.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),l.prototype.dispose.call(this)},g.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var C=0,x=this._rowElements;Cx;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(C,x){this._refreshRowElements(C,x),this._updateDimensions()},g.prototype.onCharSizeChanged=function(){this._updateDimensions()},g.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},g.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},g.prototype.onSelectionChanged=function(C,x,y){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(C&&x){var T=C[1]-this._bufferService.buffer.ydisp,A=x[1]-this._bufferService.buffer.ydisp,E=Math.max(T,0),b=Math.min(A,this._bufferService.rows-1);if(!(E>=this._bufferService.rows||b<0)){var v=document.createDocumentFragment();if(y)v.appendChild(this._createSelectionElement(E,C[0],x[0],b-E+1));else{var O=T===E?C[0]:0,D=E===b?x[0]:this._bufferService.cols;v.appendChild(this._createSelectionElement(E,O,D));var W=b-E-1;if(v.appendChild(this._createSelectionElement(E+1,0,this._bufferService.cols,W)),E!==b){var Q=A===b?x[0]:this._bufferService.cols;v.appendChild(this._createSelectionElement(b,0,Q))}}this._selectionContainer.appendChild(v)}}},g.prototype._createSelectionElement=function(C,x,y,T){T===void 0&&(T=1);var A=document.createElement("div");return A.style.height=T*this.dimensions.actualCellHeight+"px",A.style.top=C*this.dimensions.actualCellHeight+"px",A.style.left=x*this.dimensions.actualCellWidth+"px",A.style.width=this.dimensions.actualCellWidth*(y-x)+"px",A},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var C=0,x=this._rowElements;C=A&&(C=0,y++)}},g=r([p(6,i.ICharSizeService),p(7,s.IOptionsService),p(8,s.IBufferService)],g)}(o.Disposable);f.DomRenderer=u},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DomRendererRowFactory=f.CURSOR_STYLE_UNDERLINE_CLASS=f.CURSOR_STYLE_BAR_CLASS=f.CURSOR_STYLE_BLOCK_CLASS=f.CURSOR_BLINK_CLASS=f.CURSOR_CLASS=f.UNDERLINE_CLASS=f.ITALIC_CLASS=f.DIM_CLASS=f.BOLD_CLASS=void 0;var m=k(9),_=k(3),r=k(4),p=k(10);f.BOLD_CLASS="xterm-bold",f.DIM_CLASS="xterm-dim",f.ITALIC_CLASS="xterm-italic",f.UNDERLINE_CLASS="xterm-underline",f.CURSOR_CLASS="xterm-cursor",f.CURSOR_BLINK_CLASS="xterm-cursor-blink",f.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",f.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",f.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var d=function(){function o(i,s,a){this._document=i,this._optionsService=s,this._colors=a,this._workCell=new r.CellData}return o.prototype.setColors=function(i){this._colors=i},o.prototype.createRow=function(i,s,a,n,t,e,u){for(var l=this._document.createDocumentFragment(),g=0,C=Math.min(i.length,u)-1;C>=0;C--)if(i.loadCell(C,this._workCell).getCode()!==_.NULL_CELL_CODE||s&&C===n){g=C+1;break}for(C=0;C1&&(y.style.width=e*x+"px"),s&&C===n)switch(y.classList.add(f.CURSOR_CLASS),t&&y.classList.add(f.CURSOR_BLINK_CLASS),a){case"bar":y.classList.add(f.CURSOR_STYLE_BAR_CLASS);break;case"underline":y.classList.add(f.CURSOR_STYLE_UNDERLINE_CLASS);break;default:y.classList.add(f.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&y.classList.add(f.BOLD_CLASS),this._workCell.isItalic()&&y.classList.add(f.ITALIC_CLASS),this._workCell.isDim()&&y.classList.add(f.DIM_CLASS),this._workCell.isUnderline()&&y.classList.add(f.UNDERLINE_CLASS),this._workCell.isInvisible()?y.textContent=_.WHITESPACE_CELL_CHAR:y.textContent=this._workCell.getChars()||_.WHITESPACE_CELL_CHAR;var T=this._workCell.getFgColor(),A=this._workCell.getFgColorMode(),E=this._workCell.getBgColor(),b=this._workCell.getBgColorMode(),v=!!this._workCell.isInverse();if(v){var O=T;T=E,E=O;var D=A;A=b,b=D}switch(A){case 16777216:case 33554432:this._workCell.isBold()&&T<8&&this._optionsService.options.drawBoldTextInBrightColors&&(T+=8),this._applyMinimumContrast(y,this._colors.background,this._colors.ansi[T])||y.classList.add("xterm-fg-"+T);break;case 50331648:var W=p.rgba.toColor(T>>16&255,T>>8&255,255&T);this._applyMinimumContrast(y,this._colors.background,W)||this._addStyle(y,"color:#"+c(T.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(y,this._colors.background,this._colors.foreground)||v&&y.classList.add("xterm-fg-"+m.INVERTED_DEFAULT_COLOR)}switch(b){case 16777216:case 33554432:y.classList.add("xterm-bg-"+E);break;case 50331648:this._addStyle(y,"background-color:#"+c(E.toString(16),"0",6));break;case 0:default:v&&y.classList.add("xterm-bg-"+m.INVERTED_DEFAULT_COLOR)}l.appendChild(y)}}return l},o.prototype._applyMinimumContrast=function(i,s,a){if(this._optionsService.options.minimumContrastRatio===1)return!1;var n=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return n===void 0&&(n=p.color.ensureContrastRatio(s,a,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,n!=null?n:null)),!!n&&(this._addStyle(i,"color:"+n.css),!0)},o.prototype._addStyle=function(i,s){i.setAttribute("style",""+(i.getAttribute("style")||"")+s+";")},o}();function c(o,i,s){for(;o.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};f.evaluateKeyboardEvent=function(r,p,d,c){var o={type:0,cancel:!1,key:void 0},i=(r.shiftKey?1:0)|(r.altKey?2:0)|(r.ctrlKey?4:0)|(r.metaKey?8:0);switch(r.keyCode){case 0:r.key==="UIKeyInputUpArrow"?o.key=p?m.C0.ESC+"OA":m.C0.ESC+"[A":r.key==="UIKeyInputLeftArrow"?o.key=p?m.C0.ESC+"OD":m.C0.ESC+"[D":r.key==="UIKeyInputRightArrow"?o.key=p?m.C0.ESC+"OC":m.C0.ESC+"[C":r.key==="UIKeyInputDownArrow"&&(o.key=p?m.C0.ESC+"OB":m.C0.ESC+"[B");break;case 8:if(r.shiftKey){o.key=m.C0.BS;break}if(r.altKey){o.key=m.C0.ESC+m.C0.DEL;break}o.key=m.C0.DEL;break;case 9:if(r.shiftKey){o.key=m.C0.ESC+"[Z";break}o.key=m.C0.HT,o.cancel=!0;break;case 13:o.key=r.altKey?m.C0.ESC+m.C0.CR:m.C0.CR,o.cancel=!0;break;case 27:o.key=m.C0.ESC,r.altKey&&(o.key=m.C0.ESC+m.C0.ESC),o.cancel=!0;break;case 37:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"D",o.key===m.C0.ESC+"[1;3D"&&(o.key=m.C0.ESC+(d?"b":"[1;5D"))):o.key=p?m.C0.ESC+"OD":m.C0.ESC+"[D";break;case 39:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"C",o.key===m.C0.ESC+"[1;3C"&&(o.key=m.C0.ESC+(d?"f":"[1;5C"))):o.key=p?m.C0.ESC+"OC":m.C0.ESC+"[C";break;case 38:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"A",d||o.key!==m.C0.ESC+"[1;3A"||(o.key=m.C0.ESC+"[1;5A")):o.key=p?m.C0.ESC+"OA":m.C0.ESC+"[A";break;case 40:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"B",d||o.key!==m.C0.ESC+"[1;3B"||(o.key=m.C0.ESC+"[1;5B")):o.key=p?m.C0.ESC+"OB":m.C0.ESC+"[B";break;case 45:r.shiftKey||r.ctrlKey||(o.key=m.C0.ESC+"[2~");break;case 46:o.key=i?m.C0.ESC+"[3;"+(i+1)+"~":m.C0.ESC+"[3~";break;case 36:o.key=i?m.C0.ESC+"[1;"+(i+1)+"H":p?m.C0.ESC+"OH":m.C0.ESC+"[H";break;case 35:o.key=i?m.C0.ESC+"[1;"+(i+1)+"F":p?m.C0.ESC+"OF":m.C0.ESC+"[F";break;case 33:r.shiftKey?o.type=2:o.key=m.C0.ESC+"[5~";break;case 34:r.shiftKey?o.type=3:o.key=m.C0.ESC+"[6~";break;case 112:o.key=i?m.C0.ESC+"[1;"+(i+1)+"P":m.C0.ESC+"OP";break;case 113:o.key=i?m.C0.ESC+"[1;"+(i+1)+"Q":m.C0.ESC+"OQ";break;case 114:o.key=i?m.C0.ESC+"[1;"+(i+1)+"R":m.C0.ESC+"OR";break;case 115:o.key=i?m.C0.ESC+"[1;"+(i+1)+"S":m.C0.ESC+"OS";break;case 116:o.key=i?m.C0.ESC+"[15;"+(i+1)+"~":m.C0.ESC+"[15~";break;case 117:o.key=i?m.C0.ESC+"[17;"+(i+1)+"~":m.C0.ESC+"[17~";break;case 118:o.key=i?m.C0.ESC+"[18;"+(i+1)+"~":m.C0.ESC+"[18~";break;case 119:o.key=i?m.C0.ESC+"[19;"+(i+1)+"~":m.C0.ESC+"[19~";break;case 120:o.key=i?m.C0.ESC+"[20;"+(i+1)+"~":m.C0.ESC+"[20~";break;case 121:o.key=i?m.C0.ESC+"[21;"+(i+1)+"~":m.C0.ESC+"[21~";break;case 122:o.key=i?m.C0.ESC+"[23;"+(i+1)+"~":m.C0.ESC+"[23~";break;case 123:o.key=i?m.C0.ESC+"[24;"+(i+1)+"~":m.C0.ESC+"[24~";break;default:if(!r.ctrlKey||r.shiftKey||r.altKey||r.metaKey)if(d&&!c||!r.altKey||r.metaKey)d&&!r.altKey&&!r.ctrlKey&&r.metaKey?r.keyCode===65&&(o.type=1):r.key&&!r.ctrlKey&&!r.altKey&&!r.metaKey&&r.keyCode>=48&&r.key.length===1?o.key=r.key:r.key&&r.ctrlKey&&r.key==="_"&&(o.key=m.C0.US);else{var s=_[r.keyCode],a=s&&s[r.shiftKey?1:0];if(a)o.key=m.C0.ESC+a;else if(r.keyCode>=65&&r.keyCode<=90){var n=r.ctrlKey?r.keyCode-64:r.keyCode+32;o.key=m.C0.ESC+String.fromCharCode(n)}}else r.keyCode>=65&&r.keyCode<=90?o.key=String.fromCharCode(r.keyCode-64):r.keyCode===32?o.key=m.C0.NUL:r.keyCode>=51&&r.keyCode<=55?o.key=String.fromCharCode(r.keyCode-51+27):r.keyCode===56?o.key=m.C0.DEL:r.keyCode===219?o.key=m.C0.ESC:r.keyCode===220?o.key=m.C0.FS:r.keyCode===221&&(o.key=m.C0.GS)}return o}},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(e,u){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,g){l.__proto__=g}||function(l,g){for(var C in g)g.hasOwnProperty(C)&&(l[C]=g[C])})(e,u)},function(e,u){function l(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}),r=this&&this.__decorate||function(e,u,l,g){var C,x=arguments.length,y=x<3?u:g===null?g=Object.getOwnPropertyDescriptor(u,l):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,u,l,g);else for(var T=e.length-1;T>=0;T--)(C=e[T])&&(y=(x<3?C(y):x>3?C(u,l,y):C(u,l))||y);return x>3&&y&&Object.defineProperty(u,l,y),y},p=this&&this.__param||function(e,u){return function(l,g){u(l,g,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.RenderService=void 0;var d=k(31),c=k(0),o=k(2),i=k(32),s=k(7),a=k(1),n=k(5),t=function(e){function u(l,g,C,x,y,T){var A=e.call(this)||this;if(A._renderer=l,A._rowCount=g,A._isPaused=!1,A._needsFullRefresh=!1,A._isNextRenderRedrawOnly=!0,A._needsSelectionRefresh=!1,A._canvasWidth=0,A._canvasHeight=0,A._selectionState={start:void 0,end:void 0,columnSelectMode:!1},A._onDimensionsChange=new c.EventEmitter,A._onRender=new c.EventEmitter,A._onRefreshRequest=new c.EventEmitter,A.register({dispose:function(){return A._renderer.dispose()}}),A._renderDebouncer=new d.RenderDebouncer(function(b,v){return A._renderRows(b,v)}),A.register(A._renderDebouncer),A._screenDprMonitor=new i.ScreenDprMonitor,A._screenDprMonitor.setListener(function(){return A.onDevicePixelRatioChange()}),A.register(A._screenDprMonitor),A.register(T.onResize(function(b){return A._fullRefresh()})),A.register(x.onOptionChange(function(){return A._renderer.onOptionsChanged()})),A.register(y.onCharSizeChange(function(){return A.onCharSizeChanged()})),A._renderer.onRequestRedraw(function(b){return A.refreshRows(b.start,b.end,!0)}),A.register(s.addDisposableDomListener(window,"resize",function(){return A.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var E=new IntersectionObserver(function(b){return A._onIntersectionChange(b[b.length-1])},{threshold:0});E.observe(C),A.register({dispose:function(){return E.disconnect()}})}return A}return _(u,e),Object.defineProperty(u.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),u.prototype._onIntersectionChange=function(l){this._isPaused=l.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},u.prototype.refreshRows=function(l,g,C){C===void 0&&(C=!1),this._isPaused?this._needsFullRefresh=!0:(C||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(l,g,this._rowCount))},u.prototype._renderRows=function(l,g){this._renderer.renderRows(l,g),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:l,end:g}),this._isNextRenderRedrawOnly=!0},u.prototype.resize=function(l,g){this._rowCount=g,this._fireOnCanvasResize()},u.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},u.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},u.prototype.dispose=function(){e.prototype.dispose.call(this)},u.prototype.setRenderer=function(l){var g=this;this._renderer.dispose(),this._renderer=l,this._renderer.onRequestRedraw(function(C){return g.refreshRows(C.start,C.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},u.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},u.prototype.setColors=function(l){this._renderer.setColors(l),this._fullRefresh()},u.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},u.prototype.onResize=function(l,g){this._renderer.onResize(l,g),this._fullRefresh()},u.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},u.prototype.onBlur=function(){this._renderer.onBlur()},u.prototype.onFocus=function(){this._renderer.onFocus()},u.prototype.onSelectionChanged=function(l,g,C){this._selectionState.start=l,this._selectionState.end=g,this._selectionState.columnSelectMode=C,this._renderer.onSelectionChanged(l,g,C)},u.prototype.onCursorMove=function(){this._renderer.onCursorMove()},u.prototype.clear=function(){this._renderer.clear()},u.prototype.registerCharacterJoiner=function(l){return this._renderer.registerCharacterJoiner(l)},u.prototype.deregisterCharacterJoiner=function(l){return this._renderer.deregisterCharacterJoiner(l)},u=r([p(3,a.IOptionsService),p(4,n.ICharSizeService),p(5,a.IBufferService)],u)}(o.Disposable);f.RenderService=t},function(S,f,k){"use strict";var m=this&&this.__decorate||function(o,i,s,a){var n,t=arguments.length,e=t<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,s):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(o,i,s,a);else for(var u=o.length-1;u>=0;u--)(n=o[u])&&(e=(t<3?n(e):t>3?n(i,s,e):n(i,s))||e);return t>3&&e&&Object.defineProperty(i,s,e),e},_=this&&this.__param||function(o,i){return function(s,a){i(s,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CharSizeService=void 0;var r=k(1),p=k(0),d=function(){function o(i,s,a){this._optionsService=a,this.width=0,this.height=0,this._onCharSizeChange=new p.EventEmitter,this._measureStrategy=new c(i,s,this._optionsService)}return Object.defineProperty(o.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),o.prototype.measure=function(){var i=this._measureStrategy.measure();i.width===this.width&&i.height===this.height||(this.width=i.width,this.height=i.height,this._onCharSizeChange.fire())},o=m([_(2,r.IOptionsService)],o)}();f.CharSizeService=d;var c=function(){function o(i,s,a){this._document=i,this._parentElement=s,this._optionsService=a,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return o.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var i=this._measureElement.getBoundingClientRect();return i.width!==0&&i.height!==0&&(this._result.width=i.width,this._result.height=Math.ceil(i.height)),this._result},o}()},function(S,f,k){"use strict";var m=this&&this.__decorate||function(c,o,i,s){var a,n=arguments.length,t=n<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,i):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(c,o,i,s);else for(var e=c.length-1;e>=0;e--)(a=c[e])&&(t=(n<3?a(t):n>3?a(o,i,t):a(o,i))||t);return n>3&&t&&Object.defineProperty(o,i,t),t},_=this&&this.__param||function(c,o){return function(i,s){o(i,s,c)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseService=void 0;var r=k(5),p=k(30),d=function(){function c(o,i){this._renderService=o,this._charSizeService=i}return c.prototype.getCoords=function(o,i,s,a,n){return p.getCoords(o,i,s,a,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,n)},c.prototype.getRawByteCoords=function(o,i,s,a){var n=this.getCoords(o,i,s,a);return p.getRawByteCoords(n)},c=m([_(0,r.IRenderService),_(1,r.ICharSizeService)],c)}();f.MouseService=d},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(a,n){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])})(a,n)},function(a,n){function t(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}),r=this&&this.__decorate||function(a,n,t,e){var u,l=arguments.length,g=l<3?n:e===null?e=Object.getOwnPropertyDescriptor(n,t):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,n,t,e);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Linkifier2=void 0;var d=k(1),c=k(0),o=k(2),i=k(7),s=function(a){function n(t){var e=a.call(this)||this;return e._bufferService=t,e._linkProviders=[],e._linkCacheDisposables=[],e._isMouseOut=!0,e._activeLine=-1,e._onShowLinkUnderline=e.register(new c.EventEmitter),e._onHideLinkUnderline=e.register(new c.EventEmitter),e.register(o.getDisposeArrayDisposable(e._linkCacheDisposables)),e}return _(n,a),Object.defineProperty(n.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),n.prototype.registerLinkProvider=function(t){var e=this;return this._linkProviders.push(t),{dispose:function(){var u=e._linkProviders.indexOf(t);u!==-1&&e._linkProviders.splice(u,1)}}},n.prototype.attachToDom=function(t,e,u){var l=this;this._element=t,this._mouseService=e,this._renderService=u,this.register(i.addDisposableDomListener(this._element,"mouseleave",function(){l._isMouseOut=!0,l._clearCurrentLink()})),this.register(i.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(i.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},n.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var e=this._positionFromMouseEvent(t,this._element,this._mouseService);if(e){this._isMouseOut=!1;for(var u=t.composedPath(),l=0;lt?this._bufferService.cols:x.link.range.end.x,A=y;A<=T;A++){if(u.has(A)){g.splice(C--,1);break}u.add(A)}}},n.prototype._checkLinkProviderResult=function(t,e,u){var l,g=this;if(!this._activeProviderReplies)return u;for(var C=this._activeProviderReplies.get(t),x=!1,y=0;y=t&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,o.disposeArray(this._linkCacheDisposables))},n.prototype._handleNewLink=function(t){var e=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var u=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);u&&this._linkAtPosition(t.link,u)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var l,g;return(g=(l=e._currentLink)===null||l===void 0?void 0:l.state)===null||g===void 0?void 0:g.decorations.pointerCursor},set:function(l){var g,C;((g=e._currentLink)===null||g===void 0?void 0:g.state)&&e._currentLink.state.decorations.pointerCursor!==l&&(e._currentLink.state.decorations.pointerCursor=l,e._currentLink.state.isHovered&&((C=e._element)===null||C===void 0||C.classList.toggle("xterm-cursor-pointer",l)))}},underline:{get:function(){var l,g;return(g=(l=e._currentLink)===null||l===void 0?void 0:l.state)===null||g===void 0?void 0:g.decorations.underline},set:function(l){var g,C,x;((g=e._currentLink)===null||g===void 0?void 0:g.state)&&((x=(C=e._currentLink)===null||C===void 0?void 0:C.state)===null||x===void 0?void 0:x.decorations.underline)!==l&&(e._currentLink.state.decorations.underline=l,e._currentLink.state.isHovered&&e._fireUnderlineEvent(t.link,l))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(l){var g=l.start===0?0:l.start+1+e._bufferService.buffer.ydisp;e._clearCurrentLink(g,l.end+1+e._bufferService.buffer.ydisp)})))}},n.prototype._linkHover=function(t,e,u){var l;((l=this._currentLink)===null||l===void 0?void 0:l.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(u,e.text)},n.prototype._fireUnderlineEvent=function(t,e){var u=t.range,l=this._bufferService.buffer.ydisp,g=this._createLinkUnderlineEvent(u.start.x-1,u.start.y-l-1,u.end.x,u.end.y-l-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},n.prototype._linkLeave=function(t,e,u){var l;((l=this._currentLink)===null||l===void 0?void 0:l.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(u,e.text)},n.prototype._linkAtPosition=function(t,e){var u=t.range.start.y===t.range.end.y,l=t.range.start.ye.y;return(u&&t.range.start.x<=e.x&&t.range.end.x>=e.x||l&&t.range.end.x>=e.x||g&&t.range.start.x<=e.x||l&&g)&&t.range.start.y<=e.y&&t.range.end.y>=e.y},n.prototype._positionFromMouseEvent=function(t,e,u){var l=u.getCoords(t,e,this._bufferService.cols,this._bufferService.rows);if(l)return{x:l[0],y:l[1]+this._bufferService.buffer.ydisp}},n.prototype._createLinkUnderlineEvent=function(t,e,u,l,g){return{x1:t,y1:e,x2:u,y2:l,cols:this._bufferService.cols,fg:g}},n=r([p(0,d.IBufferService)],n)}(o.Disposable);f.Linkifier2=s},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CoreBrowserService=void 0;var m=function(){function _(r){this._textarea=r}return Object.defineProperty(_.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),_}();f.CoreBrowserService=m},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(y,T){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,E){A.__proto__=E}||function(A,E){for(var b in E)E.hasOwnProperty(b)&&(A[b]=E[b])})(y,T)},function(y,T){function A(){this.constructor=y}m(y,T),y.prototype=T===null?Object.create(T):(A.prototype=T.prototype,new A)});Object.defineProperty(f,"__esModule",{value:!0}),f.CoreTerminal=void 0;var r=k(2),p=k(1),d=k(66),c=k(67),o=k(68),i=k(74),s=k(75),a=k(0),n=k(76),t=k(77),e=k(78),u=k(80),l=k(81),g=k(19),C=k(82),x=function(y){function T(A){var E=y.call(this)||this;return E._onBinary=new a.EventEmitter,E._onData=new a.EventEmitter,E._onLineFeed=new a.EventEmitter,E._onResize=new a.EventEmitter,E._onScroll=new a.EventEmitter,E._instantiationService=new d.InstantiationService,E.optionsService=new i.OptionsService(A),E._instantiationService.setService(p.IOptionsService,E.optionsService),E._bufferService=E.register(E._instantiationService.createInstance(o.BufferService)),E._instantiationService.setService(p.IBufferService,E._bufferService),E._logService=E._instantiationService.createInstance(c.LogService),E._instantiationService.setService(p.ILogService,E._logService),E._coreService=E.register(E._instantiationService.createInstance(s.CoreService,function(){return E.scrollToBottom()})),E._instantiationService.setService(p.ICoreService,E._coreService),E._coreMouseService=E._instantiationService.createInstance(n.CoreMouseService),E._instantiationService.setService(p.ICoreMouseService,E._coreMouseService),E._dirtyRowService=E._instantiationService.createInstance(t.DirtyRowService),E._instantiationService.setService(p.IDirtyRowService,E._dirtyRowService),E.unicodeService=E._instantiationService.createInstance(e.UnicodeService),E._instantiationService.setService(p.IUnicodeService,E.unicodeService),E._charsetService=E._instantiationService.createInstance(u.CharsetService),E._instantiationService.setService(p.ICharsetService,E._charsetService),E._inputHandler=new g.InputHandler(E._bufferService,E._charsetService,E._coreService,E._dirtyRowService,E._logService,E.optionsService,E._coreMouseService,E.unicodeService),E.register(a.forwardEvent(E._inputHandler.onLineFeed,E._onLineFeed)),E.register(E._inputHandler),E.register(a.forwardEvent(E._bufferService.onResize,E._onResize)),E.register(a.forwardEvent(E._coreService.onData,E._onData)),E.register(a.forwardEvent(E._coreService.onBinary,E._onBinary)),E.register(E.optionsService.onOptionChange(function(b){return E._updateOptions(b)})),E._writeBuffer=new C.WriteBuffer(function(b){return E._inputHandler.parse(b)}),E}return _(T,y),Object.defineProperty(T.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){var A;this._isDisposed||(y.prototype.dispose.call(this),(A=this._windowsMode)===null||A===void 0||A.dispose(),this._windowsMode=void 0)},T.prototype.write=function(A,E){this._writeBuffer.write(A,E)},T.prototype.writeSync=function(A){this._writeBuffer.writeSync(A)},T.prototype.resize=function(A,E){isNaN(A)||isNaN(E)||(A=Math.max(A,o.MINIMUM_COLS),E=Math.max(E,o.MINIMUM_ROWS),this._bufferService.resize(A,E))},T.prototype.scroll=function(A,E){E===void 0&&(E=!1);var b,v=this._bufferService.buffer;(b=this._cachedBlankLine)&&b.length===this.cols&&b.getFg(0)===A.fg&&b.getBg(0)===A.bg||(b=v.getBlankLine(A,E),this._cachedBlankLine=b),b.isWrapped=E;var O=v.ybase+v.scrollTop,D=v.ybase+v.scrollBottom;if(v.scrollTop===0){var W=v.lines.isFull;D===v.lines.length-1?W?v.lines.recycle().copyFrom(b):v.lines.push(b.clone()):v.lines.splice(D+1,0,b.clone()),W?this._bufferService.isUserScrolling&&(v.ydisp=Math.max(v.ydisp-1,0)):(v.ybase++,this._bufferService.isUserScrolling||v.ydisp++)}else{var Q=D-O+1;v.lines.shiftElements(O+1,Q-1,-1),v.lines.set(D,b.clone())}this._bufferService.isUserScrolling||(v.ydisp=v.ybase),this._dirtyRowService.markRangeDirty(v.scrollTop,v.scrollBottom),this._onScroll.fire(v.ydisp)},T.prototype.scrollLines=function(A,E){var b=this._bufferService.buffer;if(A<0){if(b.ydisp===0)return;this._bufferService.isUserScrolling=!0}else A+b.ydisp>=b.ybase&&(this._bufferService.isUserScrolling=!1);var v=b.ydisp;b.ydisp=Math.max(Math.min(b.ydisp+A,b.ybase),0),v!==b.ydisp&&(E||this._onScroll.fire(b.ydisp))},T.prototype.scrollPages=function(A){this.scrollLines(A*(this.rows-1))},T.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},T.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},T.prototype.scrollToLine=function(A){var E=A-this._bufferService.buffer.ydisp;E!==0&&this.scrollLines(E)},T.prototype.addEscHandler=function(A,E){return this._inputHandler.addEscHandler(A,E)},T.prototype.addDcsHandler=function(A,E){return this._inputHandler.addDcsHandler(A,E)},T.prototype.addCsiHandler=function(A,E){return this._inputHandler.addCsiHandler(A,E)},T.prototype.addOscHandler=function(A,E){return this._inputHandler.addOscHandler(A,E)},T.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},T.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},T.prototype._updateOptions=function(A){var E;switch(A){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((E=this._windowsMode)===null||E===void 0||E.dispose(),this._windowsMode=void 0)}},T.prototype._enableWindowsMode=function(){var A=this;if(!this._windowsMode){var E=[];E.push(this.onLineFeed(l.updateWindowsModeWrappedState.bind(null,this._bufferService))),E.push(this.addCsiHandler({final:"H"},function(){return l.updateWindowsModeWrappedState(A._bufferService),!1})),this._windowsMode={dispose:function(){for(var b=0,v=E;b0?a[0].index:i.length;if(i.length!==g)throw new Error("[createInstance] First service dependency of "+o.name+" at position "+(g+1)+" conflicts with "+i.length+" static arguments");return new(o.bind.apply(o,m([void 0],m(i,n))))},c}();f.InstantiationService=d},function(S,f,k){"use strict";var m=this&&this.__decorate||function(i,s,a,n){var t,e=arguments.length,u=e<3?s:n===null?n=Object.getOwnPropertyDescriptor(s,a):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(i,s,a,n);else for(var l=i.length-1;l>=0;l--)(t=i[l])&&(u=(e<3?t(u):e>3?t(s,a,u):t(s,a))||u);return e>3&&u&&Object.defineProperty(s,a,u),u},_=this&&this.__param||function(i,s){return function(a,n){s(a,n,i)}},r=this&&this.__spreadArrays||function(){for(var i=0,s=0,a=arguments.length;s=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.BufferService=f.MINIMUM_ROWS=f.MINIMUM_COLS=void 0;var d=k(1),c=k(69),o=k(0),i=k(2);f.MINIMUM_COLS=2,f.MINIMUM_ROWS=1;var s=function(a){function n(t){var e=a.call(this)||this;return e._optionsService=t,e.isUserScrolling=!1,e._onResize=new o.EventEmitter,e.cols=Math.max(t.options.cols,f.MINIMUM_COLS),e.rows=Math.max(t.options.rows,f.MINIMUM_ROWS),e.buffers=new c.BufferSet(t,e),e}return _(n,a),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){a.prototype.dispose.call(this),this.buffers.dispose()},n.prototype.resize=function(t,e){this.cols=t,this.rows=e,this.buffers.resize(t,e),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:e})},n.prototype.reset=function(){this.buffers.dispose(),this.buffers=new c.BufferSet(this._optionsService,this),this.isUserScrolling=!1},n=r([p(0,d.IOptionsService)],n)}(i.Disposable);f.BufferService=s},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(c,o){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var a in s)s.hasOwnProperty(a)&&(i[a]=s[a])})(c,o)},function(c,o){function i(){this.constructor=c}m(c,o),c.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)});Object.defineProperty(f,"__esModule",{value:!0}),f.BufferSet=void 0;var r=k(70),p=k(0),d=function(c){function o(i,s){var a=c.call(this)||this;return a._onBufferActivate=a.register(new p.EventEmitter),a._normal=new r.Buffer(!0,i,s),a._normal.fillViewportRows(),a._alt=new r.Buffer(!1,i,s),a._activeBuffer=a._normal,a.setupTabStops(),a}return _(o,c),Object.defineProperty(o.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),o.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},o.prototype.activateAltBuffer=function(i){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(i),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},o.prototype.resize=function(i,s){this._normal.resize(i,s),this._alt.resize(i,s)},o.prototype.setupTabStops=function(i){this._normal.setupTabStops(i),this._alt.setupTabStops(i)},o}(k(2).Disposable);f.BufferSet=d},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferStringIterator=f.Buffer=f.MAX_BUFFER_SIZE=void 0;var m=k(71),_=k(16),r=k(4),p=k(3),d=k(72),c=k(73),o=k(20),i=k(6);f.MAX_BUFFER_SIZE=4294967295;var s=function(){function n(t,e,u){this._hasScrollback=t,this._optionsService=e,this._bufferService=u,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=_.DEFAULT_ATTR_DATA.clone(),this.savedCharset=o.DEFAULT_CHARSET,this.markers=[],this._nullCell=r.CellData.fromCharData([0,p.NULL_CELL_CHAR,p.NULL_CELL_WIDTH,p.NULL_CELL_CODE]),this._whitespaceCell=r.CellData.fromCharData([0,p.WHITESPACE_CELL_CHAR,p.WHITESPACE_CELL_WIDTH,p.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return n.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new i.ExtendedAttrs),this._nullCell},n.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new i.ExtendedAttrs),this._whitespaceCell},n.prototype.getBlankLine=function(t,e){return new _.BufferLine(this._bufferService.cols,this.getNullCell(t),e)},Object.defineProperty(n.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCursorInViewport",{get:function(){var t=this.ybase+this.y-this.ydisp;return t>=0&&tf.MAX_BUFFER_SIZE?f.MAX_BUFFER_SIZE:e},n.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=_.DEFAULT_ATTR_DATA);for(var e=this._rows;e--;)this.lines.push(this.getBlankLine(t))}},n.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},n.prototype.resize=function(t,e){var u=this.getNullCell(_.DEFAULT_ATTR_DATA),l=this._getCorrectBufferLength(e);if(l>this.lines.maxLength&&(this.lines.maxLength=l),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+C+1?(this.ybase--,C++,this.ydisp>0&&this.ydisp--):this.lines.push(new _.BufferLine(t,u)));else for(x=this._rows;x>e;x--)this.lines.length>e+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(l0&&(this.lines.trimStart(y),this.ybase=Math.max(this.ybase-y,0),this.ydisp=Math.max(this.ydisp-y,0),this.savedY=Math.max(this.savedY-y,0)),this.lines.maxLength=l}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,e-1),C&&(this.y+=C),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=e-1,this._isReflowEnabled&&(this._reflow(t,e),this._cols>t))for(g=0;gthis._cols?this._reflowLarger(t,e):this._reflowSmaller(t,e))},n.prototype._reflowLarger=function(t,e){var u=d.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(_.DEFAULT_ATTR_DATA));if(u.length>0){var l=d.reflowLargerCreateNewLayout(this.lines,u);d.reflowLargerApplyNewLayout(this.lines,l.layout),this._reflowLargerAdjustViewport(t,e,l.countRemoved)}},n.prototype._reflowLargerAdjustViewport=function(t,e,u){for(var l=this.getNullCell(_.DEFAULT_ATTR_DATA),g=u;g-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;C--){var x=this.lines.get(C);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=t)){for(var y=[x];x.isWrapped&&C>0;)x=this.lines.get(--C),y.unshift(x);var T=this.ybase+this.y;if(!(T>=C&&T0&&(l.push({start:C+y.length+g,newLines:O}),g+=O.length),y.push.apply(y,O);var Q=E.length-1,j=E[Q];j===0&&(j=E[--Q]);for(var Z=y.length-b-1,Y=A;Z>=0;){var w=Math.min(Y,j);if(y[Q].copyCellsFrom(y[Z],Y-w,j-w,w,!0),(j-=w)===0&&(j=E[--Q]),(Y-=w)===0){Z--;var P=Math.max(Z,0);Y=d.getWrappedLineTrimmedLength(y,P,this._cols)}}for(D=0;D0;)this.ybase===0?this.y0){var K=[],M=[];for(D=0;D=0;D--)if(de&&de.start>ae+be){for(var z=de.newLines.length-1;z>=0;z--)this.lines.set(D--,de.newLines[z]);D++,K.push({index:ae+1,amount:de.newLines.length}),be+=de.newLines.length,de=l[++ve]}else this.lines.set(D,M[ae--]);var ne=0;for(D=K.length-1;D>=0;D--)K[D].index+=ne,this.lines.onInsertEmitter.fire(K[D]),ne+=K[D].amount;var fe=Math.max(0,H+g-this.lines.maxLength);fe>0&&this.lines.onTrimEmitter.fire(fe)}},n.prototype.stringIndexToBufferIndex=function(t,e,u){for(u===void 0&&(u=!1);e;){var l=this.lines.get(t);if(!l)return[-1,-1];for(var g=u?l.getTrimmedLength():l.length,C=0;C0&&this.lines.get(e).isWrapped;)e--;for(;u+10;);return t>=this._cols?this._cols-1:t<0?0:t},n.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t},n.prototype.addMarker=function(t){var e=this,u=new c.Marker(t);return this.markers.push(u),u.register(this.lines.onTrim(function(l){u.line-=l,u.line<0&&u.dispose()})),u.register(this.lines.onInsert(function(l){u.line>=l.index&&(u.line+=l.amount)})),u.register(this.lines.onDelete(function(l){u.line>=l.index&&u.linel.index&&(u.line-=l.amount)})),u.register(u.onDispose(function(){return e._removeMarker(u)})),u},n.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},n.prototype.iterator=function(t,e,u,l,g){return new a(this,t,e,u,l,g)},n}();f.Buffer=s;var a=function(){function n(t,e,u,l,g,C){u===void 0&&(u=0),l===void 0&&(l=t.lines.length),g===void 0&&(g=0),C===void 0&&(C=0),this._buffer=t,this._trimRight=e,this._startIndex=u,this._endIndex=l,this._startOverscan=g,this._endOverscan=C,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return n.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var e="",u=t.first;u<=t.last;++u)e+=this._buffer.translateBufferLineToString(u,this._trimRight);return this._current=t.last+1,{range:t,content:e}},n}();f.BufferStringIterator=a},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CircularList=void 0;var m=k(0),_=function(){function r(p){this._maxLength=p,this.onDeleteEmitter=new m.EventEmitter,this.onInsertEmitter=new m.EventEmitter,this.onTrimEmitter=new m.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(r.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxLength",{get:function(){return this._maxLength},set:function(p){if(this._maxLength!==p){for(var d=new Array(p),c=0;cthis._length)for(var d=this._length;d=p;i--)this._array[this._getCyclicIndex(i+c.length)]=this._array[this._getCyclicIndex(i)];for(i=0;ithis._maxLength){var s=this._length+c.length-this._maxLength;this._startIndex+=s,this._length=this._maxLength,this.onTrimEmitter.fire(s)}else this._length+=c.length},r.prototype.trimStart=function(p){p>this._length&&(p=this._length),this._startIndex+=p,this._length-=p,this.onTrimEmitter.fire(p)},r.prototype.shiftElements=function(p,d,c){if(!(d<=0)){if(p<0||p>=this._length)throw new Error("start argument out of range");if(p+c<0)throw new Error("Cannot shift elements in list beyond index 0");if(c>0){for(var o=d-1;o>=0;o--)this.set(p+o+c,this.get(p+o));var i=p+d+c-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(o=0;o=i&&d0&&(A>t||n[A].getTrimmedLength()===0);A--)T++;T>0&&(o.push(i+n.length-T),o.push(T)),i+=n.length-1}}}return o},f.reflowLargerCreateNewLayout=function(_,r){for(var p=[],d=0,c=r[d],o=0,i=0;i<_.length;i++)if(c===i){var s=r[++d];_.onDeleteEmitter.fire({index:i-o,amount:s}),i+=s-1,o+=s,c=r[++d]}else p.push(i);return{layout:p,countRemoved:o}},f.reflowLargerApplyNewLayout=function(_,r){for(var p=[],d=0;da&&(o-=a,i++);var n=_[i].getWidth(o-1)===2;n&&o--;var t=n?p-1:p;d.push(t),s+=t}return d},f.getWrappedLineTrimmedLength=m},function(S,f,k){"use strict";var m,_=this&&this.__extends||(m=function(d,c){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var s in i)i.hasOwnProperty(s)&&(o[s]=i[s])})(d,c)},function(d,c){function o(){this.constructor=d}m(d,c),d.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(f,"__esModule",{value:!0}),f.Marker=void 0;var r=k(0),p=function(d){function c(o){var i=d.call(this)||this;return i.line=o,i._id=c._nextId++,i.isDisposed=!1,i._onDispose=new r.EventEmitter,i}return _(c,d),Object.defineProperty(c.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),c.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},c._nextId=1,c}(k(2).Disposable);f.Marker=p},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OptionsService=f.DEFAULT_OPTIONS=f.DEFAULT_BELL_SOUND=void 0;var m=k(0),_=k(11),r=k(33);f.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",f.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:f.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:_.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var p=["cols","rows"],d=function(){function c(o){this._onOptionChange=new m.EventEmitter,this.options=r.clone(f.DEFAULT_OPTIONS);for(var i=0,s=Object.keys(o);i=0;y--)(g=t[y])&&(x=(C<3?g(x):C>3?g(e,u,x):g(e,u))||x);return C>3&&x&&Object.defineProperty(e,u,x),x},p=this&&this.__param||function(t,e){return function(u,l){e(u,l,t)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreService=void 0;var d=k(1),c=k(0),o=k(33),i=k(2),s=Object.freeze({insertMode:!1}),a=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),n=function(t){function e(u,l,g,C){var x=t.call(this)||this;return x._bufferService=l,x._logService=g,x._optionsService=C,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new c.EventEmitter),x._onUserInput=x.register(new c.EventEmitter),x._onBinary=x.register(new c.EventEmitter),x._scrollToBottom=u,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=o.clone(s),x.decPrivateModes=o.clone(a),x}return _(e,t),Object.defineProperty(e.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.modes=o.clone(s),this.decPrivateModes=o.clone(a)},e.prototype.triggerDataEvent=function(u,l){if(l===void 0&&(l=!1),!this._optionsService.options.disableStdin){var g=this._bufferService.buffer;g.ybase!==g.ydisp&&this._scrollToBottom(),l&&this._onUserInput.fire(),this._logService.debug('sending data "'+u+'"',function(){return u.split("").map(function(C){return C.charCodeAt(0)})}),this._onData.fire(u)}},e.prototype.triggerBinaryEvent=function(u){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+u+'"',function(){return u.split("").map(function(l){return l.charCodeAt(0)})}),this._onBinary.fire(u))},e=r([p(1,d.IBufferService),p(2,d.ILogService),p(3,d.IOptionsService)],e)}(i.Disposable);f.CoreService=n},function(S,f,k){"use strict";var m=this&&this.__decorate||function(a,n,t,e){var u,l=arguments.length,g=l<3?n:e===null?e=Object.getOwnPropertyDescriptor(n,t):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,n,t,e);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},_=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreMouseService=void 0;var r=k(1),p=k(0),d={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(a){return a.button!==4&&a.action===1&&(a.ctrl=!1,a.alt=!1,a.shift=!1,!0)}},VT200:{events:19,restrict:function(a){return a.action!==32}},DRAG:{events:23,restrict:function(a){return a.action!==32||a.button!==3}},ANY:{events:31,restrict:function(a){return!0}}};function c(a,n){var t=(a.ctrl?16:0)|(a.shift?4:0)|(a.alt?8:0);return a.button===4?(t|=64,t|=a.action):(t|=3&a.button,4&a.button&&(t|=64),8&a.button&&(t|=128),a.action===32?t|=32:a.action!==0||n||(t|=3)),t}var o=String.fromCharCode,i={DEFAULT:function(a){var n=[c(a,!1)+32,a.col+32,a.row+32];return n[0]>255||n[1]>255||n[2]>255?"":""+o(n[0])+o(n[1])+o(n[2])},SGR:function(a){var n=a.action===0&&a.button!==4?"m":"M";return"[<"+c(a,!0)+";"+a.col+";"+a.row+n}},s=function(){function a(n,t){this._bufferService=n,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new p.EventEmitter,this._lastEvent=null;for(var e=0,u=Object.keys(d);e=this._bufferService.cols||n.row<0||n.row>=this._bufferService.rows)return!1;if(n.button===4&&n.action===32)return!1;if(n.button===3&&n.action!==32)return!1;if(n.button!==4&&(n.action===2||n.action===3))return!1;if(n.col++,n.row++,n.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,n))return!1;if(!this._protocols[this._activeProtocol].restrict(n))return!1;var t=this._encodings[this._activeEncoding](n);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=n,!0},a.prototype.explainEvents=function(n){return{down:!!(1&n),up:!!(2&n),drag:!!(4&n),move:!!(8&n),wheel:!!(16&n)}},a.prototype._compareEvents=function(n,t){return n.col===t.col&&(n.row===t.row&&(n.button===t.button&&(n.action===t.action&&(n.ctrl===t.ctrl&&n.alt===t.alt))))&&n.shift===t.shift},a=m([_(0,r.IBufferService),_(1,r.ICoreService)],a)}();f.CoreMouseService=s},function(S,f,k){"use strict";var m=this&&this.__decorate||function(d,c,o,i){var s,a=arguments.length,n=a<3?c:i===null?i=Object.getOwnPropertyDescriptor(c,o):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(d,c,o,i);else for(var t=d.length-1;t>=0;t--)(s=d[t])&&(n=(a<3?s(n):a>3?s(c,o,n):s(c,o))||n);return a>3&&n&&Object.defineProperty(c,o,n),n},_=this&&this.__param||function(d,c){return function(o,i){c(o,i,d)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DirtyRowService=void 0;var r=k(1),p=function(){function d(c){this._bufferService=c,this.clearRange()}return Object.defineProperty(d.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),d.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},d.prototype.markDirty=function(c){cthis._end&&(this._end=c)},d.prototype.markRangeDirty=function(c,o){if(c>o){var i=c;c=o,o=i}cthis._end&&(this._end=o)},d.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},d=m([_(0,r.IBufferService)],d)}();f.DirtyRowService=p},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeService=void 0;var m=k(0),_=k(79),r=function(){function p(){this._providers=Object.create(null),this._active="",this._onChange=new m.EventEmitter;var d=new _.UnicodeV6;this.register(d),this._active=d.version,this._activeProvider=d}return Object.defineProperty(p.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"activeVersion",{get:function(){return this._active},set:function(d){if(!this._providers[d])throw new Error('unknown Unicode version "'+d+'"');this._active=d,this._activeProvider=this._providers[d],this._onChange.fire(d)},enumerable:!1,configurable:!0}),p.prototype.register=function(d){this._providers[d.version]=d},p.prototype.wcwidth=function(d){return this._activeProvider.wcwidth(d)},p.prototype.getStringCellWidth=function(d){for(var c=0,o=d.length,i=0;i=o)return c+this.wcwidth(s);var a=d.charCodeAt(i);56320<=a&&a<=57343?s=1024*(s-55296)+a-56320+65536:c+=this.wcwidth(a)}c+=this.wcwidth(s)}return c},p}();f.UnicodeService=r},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeV6=void 0;var m,_=k(15),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],p=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],d=function(){function c(){if(this.version="6",!m){m=new Uint8Array(65536),_.fill(m,1),m[0]=0,_.fill(m,0,1,32),_.fill(m,0,127,160),_.fill(m,2,4352,4448),m[9001]=2,m[9002]=2,_.fill(m,2,11904,42192),m[12351]=1,_.fill(m,2,44032,55204),_.fill(m,2,63744,64256),_.fill(m,2,65040,65050),_.fill(m,2,65072,65136),_.fill(m,2,65280,65377),_.fill(m,2,65504,65511);for(var o=0;os[t][1])return!1;for(;t>=n;)if(i>s[a=n+t>>1][1])n=a+1;else{if(!(i=131072&&o<=196605||o>=196608&&o<=262141?2:1},c}();f.UnicodeV6=d},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CharsetService=void 0;var m=function(){function _(){this.glevel=0,this._charsets=[]}return _.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},_.prototype.setgLevel=function(r){this.glevel=r,this.charset=this._charsets[r]},_.prototype.setgCharset=function(r,p){this._charsets[r]=p,this.glevel===r&&(this.charset=p)},_}();f.CharsetService=m},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.updateWindowsModeWrappedState=void 0;var m=k(3);f.updateWindowsModeWrappedState=function(_){var r=_.buffer.lines.get(_.buffer.ybase+_.buffer.y-1),p=r==null?void 0:r.get(_.cols-1),d=_.buffer.lines.get(_.buffer.ybase+_.buffer.y);d&&p&&(d.isWrapped=p[m.CHAR_DATA_CODE_INDEX]!==m.NULL_CELL_CODE&&p[m.CHAR_DATA_CODE_INDEX]!==m.WHITESPACE_CELL_CODE)}},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WriteBuffer=void 0;var m=function(){function _(r){this._action=r,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return _.prototype.writeSync=function(r){if(this._writeBuffer.length){for(var p=this._bufferOffset;p5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return d._innerWrite()})),this._pendingData+=r.length,this._writeBuffer.push(r),this._callbacks.push(p)},_.prototype._innerWrite=function(){for(var r=this,p=Date.now();this._writeBuffer.length>this._bufferOffset;){var d=this._writeBuffer[this._bufferOffset],c=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(d),this._pendingData-=d.length,c&&c(),Date.now()-p>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return r._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},_}();f.WriteBuffer=m},function(S,f,k){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AddonManager=void 0;var m=function(){function _(){this._addons=[]}return _.prototype.dispose=function(){for(var r=this._addons.length-1;r>=0;r--)this._addons[r].instance.dispose()},_.prototype.loadAddon=function(r,p){var d=this,c={instance:p,dispose:p.dispose,isDisposed:!1};this._addons.push(c),p.dispose=function(){return d._wrappedAddonDispose(c)},p.activate(r)},_.prototype._wrappedAddonDispose=function(r){if(!r.isDisposed){for(var p=-1,d=0;d> RFB.constructor"),F._screen=document.createElement("div"),F._screen.style.display="flex",F._screen.style.width="100%",F._screen.style.height="100%",F._screen.style.overflow="auto",F._screen.style.background=H,F._canvas=document.createElement("canvas"),F._canvas.style.margin="auto",F._canvas.style.outline="none",F._canvas.style.flexShrink="0",F._canvas.width=0,F._canvas.height=0,F._canvas.tabIndex=-1,F._screen.appendChild(F._canvas),F._cursor=new a.default,F._cursorImage=Ce.cursors.none,F._decoders[l.encodings.encodingRaw]=new g.default,F._decoders[l.encodings.encodingCopyRect]=new C.default,F._decoders[l.encodings.encodingRRE]=new x.default,F._decoders[l.encodings.encodingHextile]=new y.default,F._decoders[l.encodings.encodingTight]=new T.default,F._decoders[l.encodings.encodingTightPNG]=new A.default;try{F._display=new d.default(F._canvas)}catch(Ae){throw f.Error("Display exception: "+Ae),Ae}return F._display.onflush=F._onFlush.bind(P(F)),F._keyboard=new i.default(F._canvas),F._keyboard.onkeyevent=F._handleKeyEvent.bind(P(F)),F._gestures=new s.default,F._sock=new n.default,F._sock.on("message",function(){F._handleMessage()}),F._sock.on("open",function(){F._rfbConnectionState==="connecting"&&F._rfbInitState===""?(F._rfbInitState="ProtocolVersion",f.Debug("Starting VNC handshake")):F._fail("Unexpected server connection while "+F._rfbConnectionState)}),F._sock.on("close",function(Ae){f.Debug("WebSocket on-close event");var tt="";Ae.code&&(tt="(code: "+Ae.code,Ae.reason&&(tt+=", reason: "+Ae.reason),tt+=")");switch(F._rfbConnectionState){case"connecting":F._fail("Connection closed "+tt);break;case"connected":F._updateConnectionState("disconnecting"),F._updateConnectionState("disconnected");break;case"disconnecting":F._updateConnectionState("disconnected");break;case"disconnected":F._fail("Unexpected server disconnect when already disconnected "+tt);break;default:F._fail("Unexpected server disconnect before connecting "+tt);break}F._sock.off("close")}),F._sock.on("error",function(Ae){return f.Warn("WebSocket on-error event")}),setTimeout(F._updateConnectionState.bind(P(F),"connecting")),f.Debug("<< RFB.constructor"),F.dragViewport=!1,F.focusOnClick=!0,F._viewOnly=!1,F._clipViewport=!1,F._scaleViewport=!1,F._resizeSession=!1,F._showDotCursor=!1,te.showDotCursor!==void 0&&(f.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),F._showDotCursor=te.showDotCursor),F._qualityLevel=6,F._compressionLevel=2,F}return Q(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(N){this._rfbCredentials=N,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;f.Info("Sending Ctrl-Alt-Del"),this.sendKey(e.default.XK_Control_L,"ControlLeft",!0),this.sendKey(e.default.XK_Alt_L,"AltLeft",!0),this.sendKey(e.default.XK_Delete,"Delete",!0),this.sendKey(e.default.XK_Delete,"Delete",!1),this.sendKey(e.default.XK_Alt_L,"AltLeft",!1),this.sendKey(e.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(N,te,F){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(F===void 0){this.sendKey(N,te,!0),this.sendKey(N,te,!1);return}var Ae=u.default[te];if(this._qemuExtKeyEventSupported&&Ae)N=N||0,f.Info("Sending key ("+(F?"down":"up")+"): keysym "+N+", scancode "+Ae),Ce.messages.QEMUExtendedKeyEvent(this._sock,N,F,Ae);else{if(!N)return;f.Info("Sending keysym ("+(F?"down":"up")+"): "+N),Ce.messages.keyEvent(this._sock,N,F?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(N){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[ie]&&this._clipboardServerCapabilitiesActions[$e])this._clipboardText=N,Ce.messages.extendedClipboardNotify(this._sock,[ie]);else{for(var te=new Uint8Array(N.length),F=0;F> RFB.connect"),f.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(N){N.name==="SyntaxError"?this._fail("Invalid host or port ("+N+")"):this._fail("Error when opening socket ("+N+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),f.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){f.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(N){if(!(N.name==="NotFoundError"))throw N}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),f.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(N){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(N){this._fbName=N,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(N){var te=this;window.requestAnimationFrame(function(){te._updateClip(),te._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var N=this._display.clipViewport,te=this._clipViewport;if(this._scaleViewport&&(te=!1),N!==te&&(this._display.clipViewport=te),te){var F=this._screenSize();this._display.viewportChangeSize(F.w,F.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var N=this._screenSize();this._display.autoscale(N.w,N.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var N=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(N.w),Math.floor(N.h),this._screenID,this._screenFlags),f.Debug("Requested new desktop size: "+N.w+"x"+N.h)}},{key:"_screenSize",value:function(){var N=this._screen.getBoundingClientRect();return{w:N.width,h:N.height}}},{key:"_fixScrollbars",value:function(){var N=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=N}},{key:"_updateConnectionState",value:function(N){var te=this,F=this._rfbConnectionState;if(N===F){f.Debug("Already in state '"+N+"', ignoring");return}if(F==="disconnected"){f.Error("Tried changing state of a disconnected RFB object");return}switch(N){case"connected":if(F!=="connecting"){f.Error("Bad transition to connected state, previous connection state: "+F);return}break;case"disconnected":if(F!=="disconnecting"){f.Error("Bad transition to disconnected state, previous connection state: "+F);return}break;case"connecting":if(F!==""){f.Error("Bad transition to connecting state, previous connection state: "+F);return}break;case"disconnecting":if(F!=="connected"&&F!=="connecting"){f.Error("Bad transition to disconnecting state, previous connection state: "+F);return}break;default:f.Error("Unknown connection state: "+N);return}this._rfbConnectionState=N,f.Debug("New state '"+N+"', was '"+F+"'."),this._disconnTimer&&N!=="disconnecting"&&(f.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(N){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){f.Error("Disconnection timed out."),te._updateConnectionState("disconnected")},M*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(N){switch(this._rfbConnectionState){case"disconnecting":f.Error("Failed when disconnecting: "+N);break;case"connected":f.Error("Failed while connected: "+N);break;case"connecting":f.Error("Failed when connecting: "+N);break;default:f.Error("RFB failure: "+N);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(N,te){this._capabilities[N]=te,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){f.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":f.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(N,te,F){this.sendKey(N,te,F)}},{key:"_handleMouse",value:function(N){if(N.type==="click"&&N.target!==this._canvas)return;if(N.stopPropagation(),N.preventDefault(),N.type==="click"||N.type==="contextmenu")return;var te=(0,_.clientToElement)(N.clientX,N.clientY,this._canvas);switch(N.type){case"mousedown":(0,r.setCapture)(this._canvas),this._handleMouseButton(te.x,te.y,!0,1<m.dragThreshold||Math.abs(tt)>m.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:N,y:te},this._display.viewportChangePos(Ae,tt));return}if(this._mousePos={x:N,y:te},this._mouseMoveTimer==null){var he=Date.now()-this._mouseLastMoveTime;he>ae?(this._sendMouse(N,te,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){F._handleDelayedMouseMove()},ae-he)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(N,te,F){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(N),this._display.absY(te),F)}},{key:"_handleWheel",value:function(N){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;N.stopPropagation(),N.preventDefault();var te=(0,_.clientToElement)(N.clientX,N.clientY,this._canvas),F=N.deltaX,Ae=N.deltaY;N.deltaMode!==0&&(F*=de,Ae*=de),this._accumulatedWheelDeltaX+=F,this._accumulatedWheelDeltaY+=Ae,Math.abs(this._accumulatedWheelDeltaX)>=ve&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(te.x,te.y,!0,1<<5),this._handleMouseButton(te.x,te.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(te.x,te.y,!0,1<<6),this._handleMouseButton(te.x,te.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=ve&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(te.x,te.y,!0,1<<3),this._handleMouseButton(te.x,te.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(te.x,te.y,!0,1<<4),this._handleMouseButton(te.x,te.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(N,te,F){this._handleMouseMove(te,F),this._cursor.move(N.detail.clientX,N.detail.clientY)}},{key:"_handleTapEvent",value:function(N,te){var F=(0,_.clientToElement)(N.detail.clientX,N.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTimez;)this._handleMouseButton(F.x,F.y,!0,8),this._handleMouseButton(F.x,F.y,!1,8),this._gestureLastMagnitudeY+=z;for(;N.detail.magnitudeY-this._gestureLastMagnitudeY<-z;)this._handleMouseButton(F.x,F.y,!0,16),this._handleMouseButton(F.x,F.y,!1,16),this._gestureLastMagnitudeY-=z;for(;N.detail.magnitudeX-this._gestureLastMagnitudeX>z;)this._handleMouseButton(F.x,F.y,!0,32),this._handleMouseButton(F.x,F.y,!1,32),this._gestureLastMagnitudeX+=z;for(;N.detail.magnitudeX-this._gestureLastMagnitudeX<-z;)this._handleMouseButton(F.x,F.y,!0,64),this._handleMouseButton(F.x,F.y,!1,64),this._gestureLastMagnitudeX-=z;break;case"pinch":if(this._fakeMouseMove(N,F.x,F.y),te=Math.hypot(N.detail.magnitudeX,N.detail.magnitudeY),Math.abs(te-this._gestureLastMagnitudeX)>be){for(this._handleKeyEvent(e.default.XK_Control_L,"ControlLeft",!0);te-this._gestureLastMagnitudeX>be;)this._handleMouseButton(F.x,F.y,!0,8),this._handleMouseButton(F.x,F.y,!1,8),this._gestureLastMagnitudeX+=be;for(;te-this._gestureLastMagnitudeX<-be;)this._handleMouseButton(F.x,F.y,!0,16),this._handleMouseButton(F.x,F.y,!1,16),this._gestureLastMagnitudeX-=be}this._handleKeyEvent(e.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(N.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(N,F.x,F.y),this._handleMouseButton(F.x,F.y,!1,1);break;case"longpress":this._fakeMouseMove(N,F.x,F.y),this._handleMouseButton(F.x,F.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var N=this._sock.rQshiftStr(12).substr(4,7);f.Info("Server ProtocolVersion: "+N);var te=0;switch(N){case"000.000":te=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+N)}if(te){for(var F="ID:"+this._repeaterID;F.length<250;)F+="\0";return this._sock.sendString(F),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ae="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ae+` -`),f.Debug("Sent ProtocolVersion: "+Ae),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function N(Ae,tt){for(var he=0;he=3.7){var te=this._sock.rQshift8();if(this._sock.rQwait("security type",te,1))return!1;if(te===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var F=this._sock.rQshiftBytes(te);if(f.Debug("Server security types: "+F),N(1,F))this._rfbAuthScheme=1;else if(N(22,F))this._rfbAuthScheme=22;else if(N(16,F))this._rfbAuthScheme=16;else if(N(2,F))this._rfbAuthScheme=2;else if(N(19,F))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+F+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",f.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var N=this._sock.rQshift32(),te="";if(N>0){if(this._sock.rQwait("reason",N,4))return!1;te=this._sock.rQshiftStr(N)}return te!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:te}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+te+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var N=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(N),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var N=this._sock.rQshift8(),te=this._sock.rQshift8();if(!(N==0&&te==2))return this._fail("Unsupported VeNCrypt version "+N+"."+te);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var F=this._sock.rQshift8();if(F!=0)return this._fail("VeNCrypt failure "+F);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ae=this._sock.rQshift8();if(Ae<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ae,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var tt=[],he=0;he0&&this._sock.rQwait("tunnel capabilities",16*N,4))return!1;if(this._rfbTightVNC=!0,N>0)return this._negotiateTightTunnels(N),!1}if(this._sock.rQwait("sub auth count",4))return!1;var te=this._sock.rQshift32();if(te===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*te,4))return!1;for(var F={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ae=[],tt=0;tt=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var N=this._sock.rQshift32();return N===0?(this._rfbInitState="ClientInitialisation",f.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=N,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:N}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var N=this._sock.rQshift16(),te=this._sock.rQshift16(),F=this._sock.rQshift8(),Ae=this._sock.rQshift8(),tt=this._sock.rQshift8(),he=this._sock.rQshift8(),We=this._sock.rQshift16(),rt=this._sock.rQshift16(),V=this._sock.rQshift16(),Be=this._sock.rQshift8(),xe=this._sock.rQshift8(),Le=this._sock.rQshift8();this._sock.rQskipBytes(3);var De=this._sock.rQshift32();if(this._sock.rQwait("server init name",De,24))return!1;var Ne=this._sock.rQshiftStr(De);if(Ne=(0,k.decodeUTF8)(Ne,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+De))return!1;var se=this._sock.rQshift16(),we=this._sock.rQshift16(),B=this._sock.rQshift16();this._sock.rQskipBytes(2);var He=(se+we+B)*16;if(this._sock.rQwait("TightVNC extended server init header",He,32+De))return!1;this._sock.rQskipBytes(16*se),this._sock.rQskipBytes(16*we),this._sock.rQskipBytes(16*B)}return f.Info("Screen: "+N+"x"+te+", bpp: "+F+", depth: "+Ae+", bigEndian: "+tt+", trueColor: "+he+", redMax: "+We+", greenMax: "+rt+", blueMax: "+V+", redShift: "+Be+", greenShift: "+xe+", blueShift: "+Le),this._setDesktopName(Ne),this._resize(N,te),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(f.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var N=[];N.push(l.encodings.encodingCopyRect),this._fbDepth==24&&(N.push(l.encodings.encodingTight),N.push(l.encodings.encodingTightPNG),N.push(l.encodings.encodingHextile),N.push(l.encodings.encodingRRE)),N.push(l.encodings.encodingRaw),N.push(l.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),N.push(l.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),N.push(l.encodings.pseudoEncodingDesktopSize),N.push(l.encodings.pseudoEncodingLastRect),N.push(l.encodings.pseudoEncodingQEMUExtendedKeyEvent),N.push(l.encodings.pseudoEncodingExtendedDesktopSize),N.push(l.encodings.pseudoEncodingXvp),N.push(l.encodings.pseudoEncodingFence),N.push(l.encodings.pseudoEncodingContinuousUpdates),N.push(l.encodings.pseudoEncodingDesktopName),N.push(l.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(N.push(l.encodings.pseudoEncodingVMwareCursor),N.push(l.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,N)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return f.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(f.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var N=this._sock.rQshift32();if(N=(0,S.toSigned32bit)(N),this._sock.rQwait("ServerCutText content",Math.abs(N),8))return!1;if(N>=0){var te=this._sock.rQshiftStr(N);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:te}}))}else{N=Math.abs(N);var F=this._sock.rQshift32(),Ae=F&65535,tt=F&4278190080,he=!!(tt&le);if(he){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var We=0;We<=15;We++){var rt=1<0&&Ne.charAt(Ne.length-1)==="\0"&&(Ne=Ne.slice(0,-1)),Ne=Ne.replace(`\r +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=r.tooMuchOutput)),p.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){u._accessibilityTreeRoot.appendChild(u._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,p.isMac&&s.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,u){this._renderRowsDebouncer.refresh(e,u,this._terminal.rows)},t.prototype._renderRows=function(e,u){for(var l=this._terminal.buffer,g=l.lines.length.toString(),C=e;C<=u;C++){var x=l.translateBufferLineToString(l.ydisp+C,!0),y=(l.ydisp+C+1).toString(),T=this._rowElements[C];T&&(x.length===0?T.innerHTML=" ":T.textContent=x,T.setAttribute("aria-posinset",y),T.setAttribute("aria-setsize",g))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e=0;E--)(y=l[E])&&(A=(T<3?y(A):T>3?y(g,C,A):y(g,C))||A);return T>3&&A&&Object.defineProperty(g,C,A),A},p=this&&this.__param||function(l,g){return function(C,x){g(C,x,l)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DomRenderer=void 0;var d=L(58),c=L(9),o=L(2),i=L(5),s=L(1),a=L(0),n=L(10),t=L(17),e=1,u=function(l){function g(C,x,y,T,A,E,b,v,O){var D=l.call(this)||this;return D._colors=C,D._element=x,D._screenElement=y,D._viewportElement=T,D._linkifier=A,D._linkifier2=E,D._charSizeService=b,D._optionsService=v,D._bufferService=O,D._terminalClass=e++,D._rowElements=[],D._rowContainer=document.createElement("div"),D._rowContainer.classList.add("xterm-rows"),D._rowContainer.style.lineHeight="normal",D._rowContainer.setAttribute("aria-hidden","true"),D._refreshRowElements(D._bufferService.cols,D._bufferService.rows),D._selectionContainer=document.createElement("div"),D._selectionContainer.classList.add("xterm-selection"),D._selectionContainer.setAttribute("aria-hidden","true"),D.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},D._updateDimensions(),D._injectCss(),D._rowFactory=new d.DomRendererRowFactory(document,D._optionsService,D._colors),D._element.classList.add("xterm-dom-renderer-owner-"+D._terminalClass),D._screenElement.appendChild(D._rowContainer),D._screenElement.appendChild(D._selectionContainer),D._linkifier.onShowLinkUnderline(function(W){return D._onLinkHover(W)}),D._linkifier.onHideLinkUnderline(function(W){return D._onLinkLeave(W)}),D._linkifier2.onShowLinkUnderline(function(W){return D._onLinkHover(W)}),D._linkifier2.onHideLinkUnderline(function(W){return D._onLinkLeave(W)}),D}return _(g,l),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return new a.EventEmitter().event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),t.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),l.prototype.dispose.call(this)},g.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var C=0,x=this._rowElements;Cx;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(C,x){this._refreshRowElements(C,x),this._updateDimensions()},g.prototype.onCharSizeChanged=function(){this._updateDimensions()},g.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},g.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},g.prototype.onSelectionChanged=function(C,x,y){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(C&&x){var T=C[1]-this._bufferService.buffer.ydisp,A=x[1]-this._bufferService.buffer.ydisp,E=Math.max(T,0),b=Math.min(A,this._bufferService.rows-1);if(!(E>=this._bufferService.rows||b<0)){var v=document.createDocumentFragment();if(y)v.appendChild(this._createSelectionElement(E,C[0],x[0],b-E+1));else{var O=T===E?C[0]:0,D=E===b?x[0]:this._bufferService.cols;v.appendChild(this._createSelectionElement(E,O,D));var W=b-E-1;if(v.appendChild(this._createSelectionElement(E+1,0,this._bufferService.cols,W)),E!==b){var Q=A===b?x[0]:this._bufferService.cols;v.appendChild(this._createSelectionElement(b,0,Q))}}this._selectionContainer.appendChild(v)}}},g.prototype._createSelectionElement=function(C,x,y,T){T===void 0&&(T=1);var A=document.createElement("div");return A.style.height=T*this.dimensions.actualCellHeight+"px",A.style.top=C*this.dimensions.actualCellHeight+"px",A.style.left=x*this.dimensions.actualCellWidth+"px",A.style.width=this.dimensions.actualCellWidth*(y-x)+"px",A},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var C=0,x=this._rowElements;C=A&&(C=0,y++)}},g=r([p(6,i.ICharSizeService),p(7,s.IOptionsService),p(8,s.IBufferService)],g)}(o.Disposable);f.DomRenderer=u},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DomRendererRowFactory=f.CURSOR_STYLE_UNDERLINE_CLASS=f.CURSOR_STYLE_BAR_CLASS=f.CURSOR_STYLE_BLOCK_CLASS=f.CURSOR_BLINK_CLASS=f.CURSOR_CLASS=f.UNDERLINE_CLASS=f.ITALIC_CLASS=f.DIM_CLASS=f.BOLD_CLASS=void 0;var m=L(9),_=L(3),r=L(4),p=L(10);f.BOLD_CLASS="xterm-bold",f.DIM_CLASS="xterm-dim",f.ITALIC_CLASS="xterm-italic",f.UNDERLINE_CLASS="xterm-underline",f.CURSOR_CLASS="xterm-cursor",f.CURSOR_BLINK_CLASS="xterm-cursor-blink",f.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",f.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",f.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var d=function(){function o(i,s,a){this._document=i,this._optionsService=s,this._colors=a,this._workCell=new r.CellData}return o.prototype.setColors=function(i){this._colors=i},o.prototype.createRow=function(i,s,a,n,t,e,u){for(var l=this._document.createDocumentFragment(),g=0,C=Math.min(i.length,u)-1;C>=0;C--)if(i.loadCell(C,this._workCell).getCode()!==_.NULL_CELL_CODE||s&&C===n){g=C+1;break}for(C=0;C1&&(y.style.width=e*x+"px"),s&&C===n)switch(y.classList.add(f.CURSOR_CLASS),t&&y.classList.add(f.CURSOR_BLINK_CLASS),a){case"bar":y.classList.add(f.CURSOR_STYLE_BAR_CLASS);break;case"underline":y.classList.add(f.CURSOR_STYLE_UNDERLINE_CLASS);break;default:y.classList.add(f.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&y.classList.add(f.BOLD_CLASS),this._workCell.isItalic()&&y.classList.add(f.ITALIC_CLASS),this._workCell.isDim()&&y.classList.add(f.DIM_CLASS),this._workCell.isUnderline()&&y.classList.add(f.UNDERLINE_CLASS),this._workCell.isInvisible()?y.textContent=_.WHITESPACE_CELL_CHAR:y.textContent=this._workCell.getChars()||_.WHITESPACE_CELL_CHAR;var T=this._workCell.getFgColor(),A=this._workCell.getFgColorMode(),E=this._workCell.getBgColor(),b=this._workCell.getBgColorMode(),v=!!this._workCell.isInverse();if(v){var O=T;T=E,E=O;var D=A;A=b,b=D}switch(A){case 16777216:case 33554432:this._workCell.isBold()&&T<8&&this._optionsService.options.drawBoldTextInBrightColors&&(T+=8),this._applyMinimumContrast(y,this._colors.background,this._colors.ansi[T])||y.classList.add("xterm-fg-"+T);break;case 50331648:var W=p.rgba.toColor(T>>16&255,T>>8&255,255&T);this._applyMinimumContrast(y,this._colors.background,W)||this._addStyle(y,"color:#"+c(T.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(y,this._colors.background,this._colors.foreground)||v&&y.classList.add("xterm-fg-"+m.INVERTED_DEFAULT_COLOR)}switch(b){case 16777216:case 33554432:y.classList.add("xterm-bg-"+E);break;case 50331648:this._addStyle(y,"background-color:#"+c(E.toString(16),"0",6));break;case 0:default:v&&y.classList.add("xterm-bg-"+m.INVERTED_DEFAULT_COLOR)}l.appendChild(y)}}return l},o.prototype._applyMinimumContrast=function(i,s,a){if(this._optionsService.options.minimumContrastRatio===1)return!1;var n=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return n===void 0&&(n=p.color.ensureContrastRatio(s,a,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,n!=null?n:null)),!!n&&(this._addStyle(i,"color:"+n.css),!0)},o.prototype._addStyle=function(i,s){i.setAttribute("style",""+(i.getAttribute("style")||"")+s+";")},o}();function c(o,i,s){for(;o.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};f.evaluateKeyboardEvent=function(r,p,d,c){var o={type:0,cancel:!1,key:void 0},i=(r.shiftKey?1:0)|(r.altKey?2:0)|(r.ctrlKey?4:0)|(r.metaKey?8:0);switch(r.keyCode){case 0:r.key==="UIKeyInputUpArrow"?o.key=p?m.C0.ESC+"OA":m.C0.ESC+"[A":r.key==="UIKeyInputLeftArrow"?o.key=p?m.C0.ESC+"OD":m.C0.ESC+"[D":r.key==="UIKeyInputRightArrow"?o.key=p?m.C0.ESC+"OC":m.C0.ESC+"[C":r.key==="UIKeyInputDownArrow"&&(o.key=p?m.C0.ESC+"OB":m.C0.ESC+"[B");break;case 8:if(r.shiftKey){o.key=m.C0.BS;break}if(r.altKey){o.key=m.C0.ESC+m.C0.DEL;break}o.key=m.C0.DEL;break;case 9:if(r.shiftKey){o.key=m.C0.ESC+"[Z";break}o.key=m.C0.HT,o.cancel=!0;break;case 13:o.key=r.altKey?m.C0.ESC+m.C0.CR:m.C0.CR,o.cancel=!0;break;case 27:o.key=m.C0.ESC,r.altKey&&(o.key=m.C0.ESC+m.C0.ESC),o.cancel=!0;break;case 37:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"D",o.key===m.C0.ESC+"[1;3D"&&(o.key=m.C0.ESC+(d?"b":"[1;5D"))):o.key=p?m.C0.ESC+"OD":m.C0.ESC+"[D";break;case 39:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"C",o.key===m.C0.ESC+"[1;3C"&&(o.key=m.C0.ESC+(d?"f":"[1;5C"))):o.key=p?m.C0.ESC+"OC":m.C0.ESC+"[C";break;case 38:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"A",d||o.key!==m.C0.ESC+"[1;3A"||(o.key=m.C0.ESC+"[1;5A")):o.key=p?m.C0.ESC+"OA":m.C0.ESC+"[A";break;case 40:if(r.metaKey)break;i?(o.key=m.C0.ESC+"[1;"+(i+1)+"B",d||o.key!==m.C0.ESC+"[1;3B"||(o.key=m.C0.ESC+"[1;5B")):o.key=p?m.C0.ESC+"OB":m.C0.ESC+"[B";break;case 45:r.shiftKey||r.ctrlKey||(o.key=m.C0.ESC+"[2~");break;case 46:o.key=i?m.C0.ESC+"[3;"+(i+1)+"~":m.C0.ESC+"[3~";break;case 36:o.key=i?m.C0.ESC+"[1;"+(i+1)+"H":p?m.C0.ESC+"OH":m.C0.ESC+"[H";break;case 35:o.key=i?m.C0.ESC+"[1;"+(i+1)+"F":p?m.C0.ESC+"OF":m.C0.ESC+"[F";break;case 33:r.shiftKey?o.type=2:o.key=m.C0.ESC+"[5~";break;case 34:r.shiftKey?o.type=3:o.key=m.C0.ESC+"[6~";break;case 112:o.key=i?m.C0.ESC+"[1;"+(i+1)+"P":m.C0.ESC+"OP";break;case 113:o.key=i?m.C0.ESC+"[1;"+(i+1)+"Q":m.C0.ESC+"OQ";break;case 114:o.key=i?m.C0.ESC+"[1;"+(i+1)+"R":m.C0.ESC+"OR";break;case 115:o.key=i?m.C0.ESC+"[1;"+(i+1)+"S":m.C0.ESC+"OS";break;case 116:o.key=i?m.C0.ESC+"[15;"+(i+1)+"~":m.C0.ESC+"[15~";break;case 117:o.key=i?m.C0.ESC+"[17;"+(i+1)+"~":m.C0.ESC+"[17~";break;case 118:o.key=i?m.C0.ESC+"[18;"+(i+1)+"~":m.C0.ESC+"[18~";break;case 119:o.key=i?m.C0.ESC+"[19;"+(i+1)+"~":m.C0.ESC+"[19~";break;case 120:o.key=i?m.C0.ESC+"[20;"+(i+1)+"~":m.C0.ESC+"[20~";break;case 121:o.key=i?m.C0.ESC+"[21;"+(i+1)+"~":m.C0.ESC+"[21~";break;case 122:o.key=i?m.C0.ESC+"[23;"+(i+1)+"~":m.C0.ESC+"[23~";break;case 123:o.key=i?m.C0.ESC+"[24;"+(i+1)+"~":m.C0.ESC+"[24~";break;default:if(!r.ctrlKey||r.shiftKey||r.altKey||r.metaKey)if(d&&!c||!r.altKey||r.metaKey)d&&!r.altKey&&!r.ctrlKey&&r.metaKey?r.keyCode===65&&(o.type=1):r.key&&!r.ctrlKey&&!r.altKey&&!r.metaKey&&r.keyCode>=48&&r.key.length===1?o.key=r.key:r.key&&r.ctrlKey&&r.key==="_"&&(o.key=m.C0.US);else{var s=_[r.keyCode],a=s&&s[r.shiftKey?1:0];if(a)o.key=m.C0.ESC+a;else if(r.keyCode>=65&&r.keyCode<=90){var n=r.ctrlKey?r.keyCode-64:r.keyCode+32;o.key=m.C0.ESC+String.fromCharCode(n)}}else r.keyCode>=65&&r.keyCode<=90?o.key=String.fromCharCode(r.keyCode-64):r.keyCode===32?o.key=m.C0.NUL:r.keyCode>=51&&r.keyCode<=55?o.key=String.fromCharCode(r.keyCode-51+27):r.keyCode===56?o.key=m.C0.DEL:r.keyCode===219?o.key=m.C0.ESC:r.keyCode===220?o.key=m.C0.FS:r.keyCode===221&&(o.key=m.C0.GS)}return o}},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(e,u){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,g){l.__proto__=g}||function(l,g){for(var C in g)g.hasOwnProperty(C)&&(l[C]=g[C])})(e,u)},function(e,u){function l(){this.constructor=e}m(e,u),e.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}),r=this&&this.__decorate||function(e,u,l,g){var C,x=arguments.length,y=x<3?u:g===null?g=Object.getOwnPropertyDescriptor(u,l):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,u,l,g);else for(var T=e.length-1;T>=0;T--)(C=e[T])&&(y=(x<3?C(y):x>3?C(u,l,y):C(u,l))||y);return x>3&&y&&Object.defineProperty(u,l,y),y},p=this&&this.__param||function(e,u){return function(l,g){u(l,g,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.RenderService=void 0;var d=L(31),c=L(0),o=L(2),i=L(32),s=L(7),a=L(1),n=L(5),t=function(e){function u(l,g,C,x,y,T){var A=e.call(this)||this;if(A._renderer=l,A._rowCount=g,A._isPaused=!1,A._needsFullRefresh=!1,A._isNextRenderRedrawOnly=!0,A._needsSelectionRefresh=!1,A._canvasWidth=0,A._canvasHeight=0,A._selectionState={start:void 0,end:void 0,columnSelectMode:!1},A._onDimensionsChange=new c.EventEmitter,A._onRender=new c.EventEmitter,A._onRefreshRequest=new c.EventEmitter,A.register({dispose:function(){return A._renderer.dispose()}}),A._renderDebouncer=new d.RenderDebouncer(function(b,v){return A._renderRows(b,v)}),A.register(A._renderDebouncer),A._screenDprMonitor=new i.ScreenDprMonitor,A._screenDprMonitor.setListener(function(){return A.onDevicePixelRatioChange()}),A.register(A._screenDprMonitor),A.register(T.onResize(function(b){return A._fullRefresh()})),A.register(x.onOptionChange(function(){return A._renderer.onOptionsChanged()})),A.register(y.onCharSizeChange(function(){return A.onCharSizeChanged()})),A._renderer.onRequestRedraw(function(b){return A.refreshRows(b.start,b.end,!0)}),A.register(s.addDisposableDomListener(window,"resize",function(){return A.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var E=new IntersectionObserver(function(b){return A._onIntersectionChange(b[b.length-1])},{threshold:0});E.observe(C),A.register({dispose:function(){return E.disconnect()}})}return A}return _(u,e),Object.defineProperty(u.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),u.prototype._onIntersectionChange=function(l){this._isPaused=l.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},u.prototype.refreshRows=function(l,g,C){C===void 0&&(C=!1),this._isPaused?this._needsFullRefresh=!0:(C||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(l,g,this._rowCount))},u.prototype._renderRows=function(l,g){this._renderer.renderRows(l,g),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:l,end:g}),this._isNextRenderRedrawOnly=!0},u.prototype.resize=function(l,g){this._rowCount=g,this._fireOnCanvasResize()},u.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},u.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},u.prototype.dispose=function(){e.prototype.dispose.call(this)},u.prototype.setRenderer=function(l){var g=this;this._renderer.dispose(),this._renderer=l,this._renderer.onRequestRedraw(function(C){return g.refreshRows(C.start,C.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},u.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},u.prototype.setColors=function(l){this._renderer.setColors(l),this._fullRefresh()},u.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},u.prototype.onResize=function(l,g){this._renderer.onResize(l,g),this._fullRefresh()},u.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},u.prototype.onBlur=function(){this._renderer.onBlur()},u.prototype.onFocus=function(){this._renderer.onFocus()},u.prototype.onSelectionChanged=function(l,g,C){this._selectionState.start=l,this._selectionState.end=g,this._selectionState.columnSelectMode=C,this._renderer.onSelectionChanged(l,g,C)},u.prototype.onCursorMove=function(){this._renderer.onCursorMove()},u.prototype.clear=function(){this._renderer.clear()},u.prototype.registerCharacterJoiner=function(l){return this._renderer.registerCharacterJoiner(l)},u.prototype.deregisterCharacterJoiner=function(l){return this._renderer.deregisterCharacterJoiner(l)},u=r([p(3,a.IOptionsService),p(4,n.ICharSizeService),p(5,a.IBufferService)],u)}(o.Disposable);f.RenderService=t},function(S,f,L){"use strict";var m=this&&this.__decorate||function(o,i,s,a){var n,t=arguments.length,e=t<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,s):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(o,i,s,a);else for(var u=o.length-1;u>=0;u--)(n=o[u])&&(e=(t<3?n(e):t>3?n(i,s,e):n(i,s))||e);return t>3&&e&&Object.defineProperty(i,s,e),e},_=this&&this.__param||function(o,i){return function(s,a){i(s,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CharSizeService=void 0;var r=L(1),p=L(0),d=function(){function o(i,s,a){this._optionsService=a,this.width=0,this.height=0,this._onCharSizeChange=new p.EventEmitter,this._measureStrategy=new c(i,s,this._optionsService)}return Object.defineProperty(o.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),o.prototype.measure=function(){var i=this._measureStrategy.measure();i.width===this.width&&i.height===this.height||(this.width=i.width,this.height=i.height,this._onCharSizeChange.fire())},o=m([_(2,r.IOptionsService)],o)}();f.CharSizeService=d;var c=function(){function o(i,s,a){this._document=i,this._parentElement=s,this._optionsService=a,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return o.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var i=this._measureElement.getBoundingClientRect();return i.width!==0&&i.height!==0&&(this._result.width=i.width,this._result.height=Math.ceil(i.height)),this._result},o}()},function(S,f,L){"use strict";var m=this&&this.__decorate||function(c,o,i,s){var a,n=arguments.length,t=n<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,i):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(c,o,i,s);else for(var e=c.length-1;e>=0;e--)(a=c[e])&&(t=(n<3?a(t):n>3?a(o,i,t):a(o,i))||t);return n>3&&t&&Object.defineProperty(o,i,t),t},_=this&&this.__param||function(c,o){return function(i,s){o(i,s,c)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseService=void 0;var r=L(5),p=L(30),d=function(){function c(o,i){this._renderService=o,this._charSizeService=i}return c.prototype.getCoords=function(o,i,s,a,n){return p.getCoords(o,i,s,a,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,n)},c.prototype.getRawByteCoords=function(o,i,s,a){var n=this.getCoords(o,i,s,a);return p.getRawByteCoords(n)},c=m([_(0,r.IRenderService),_(1,r.ICharSizeService)],c)}();f.MouseService=d},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(a,n){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])})(a,n)},function(a,n){function t(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}),r=this&&this.__decorate||function(a,n,t,e){var u,l=arguments.length,g=l<3?n:e===null?e=Object.getOwnPropertyDescriptor(n,t):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,n,t,e);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Linkifier2=void 0;var d=L(1),c=L(0),o=L(2),i=L(7),s=function(a){function n(t){var e=a.call(this)||this;return e._bufferService=t,e._linkProviders=[],e._linkCacheDisposables=[],e._isMouseOut=!0,e._activeLine=-1,e._onShowLinkUnderline=e.register(new c.EventEmitter),e._onHideLinkUnderline=e.register(new c.EventEmitter),e.register(o.getDisposeArrayDisposable(e._linkCacheDisposables)),e}return _(n,a),Object.defineProperty(n.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),n.prototype.registerLinkProvider=function(t){var e=this;return this._linkProviders.push(t),{dispose:function(){var u=e._linkProviders.indexOf(t);u!==-1&&e._linkProviders.splice(u,1)}}},n.prototype.attachToDom=function(t,e,u){var l=this;this._element=t,this._mouseService=e,this._renderService=u,this.register(i.addDisposableDomListener(this._element,"mouseleave",function(){l._isMouseOut=!0,l._clearCurrentLink()})),this.register(i.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(i.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},n.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var e=this._positionFromMouseEvent(t,this._element,this._mouseService);if(e){this._isMouseOut=!1;for(var u=t.composedPath(),l=0;lt?this._bufferService.cols:x.link.range.end.x,A=y;A<=T;A++){if(u.has(A)){g.splice(C--,1);break}u.add(A)}}},n.prototype._checkLinkProviderResult=function(t,e,u){var l,g=this;if(!this._activeProviderReplies)return u;for(var C=this._activeProviderReplies.get(t),x=!1,y=0;y=t&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,o.disposeArray(this._linkCacheDisposables))},n.prototype._handleNewLink=function(t){var e=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var u=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);u&&this._linkAtPosition(t.link,u)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var l,g;return(g=(l=e._currentLink)===null||l===void 0?void 0:l.state)===null||g===void 0?void 0:g.decorations.pointerCursor},set:function(l){var g,C;((g=e._currentLink)===null||g===void 0?void 0:g.state)&&e._currentLink.state.decorations.pointerCursor!==l&&(e._currentLink.state.decorations.pointerCursor=l,e._currentLink.state.isHovered&&((C=e._element)===null||C===void 0||C.classList.toggle("xterm-cursor-pointer",l)))}},underline:{get:function(){var l,g;return(g=(l=e._currentLink)===null||l===void 0?void 0:l.state)===null||g===void 0?void 0:g.decorations.underline},set:function(l){var g,C,x;((g=e._currentLink)===null||g===void 0?void 0:g.state)&&((x=(C=e._currentLink)===null||C===void 0?void 0:C.state)===null||x===void 0?void 0:x.decorations.underline)!==l&&(e._currentLink.state.decorations.underline=l,e._currentLink.state.isHovered&&e._fireUnderlineEvent(t.link,l))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(l){var g=l.start===0?0:l.start+1+e._bufferService.buffer.ydisp;e._clearCurrentLink(g,l.end+1+e._bufferService.buffer.ydisp)})))}},n.prototype._linkHover=function(t,e,u){var l;((l=this._currentLink)===null||l===void 0?void 0:l.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(u,e.text)},n.prototype._fireUnderlineEvent=function(t,e){var u=t.range,l=this._bufferService.buffer.ydisp,g=this._createLinkUnderlineEvent(u.start.x-1,u.start.y-l-1,u.end.x,u.end.y-l-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},n.prototype._linkLeave=function(t,e,u){var l;((l=this._currentLink)===null||l===void 0?void 0:l.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(u,e.text)},n.prototype._linkAtPosition=function(t,e){var u=t.range.start.y===t.range.end.y,l=t.range.start.ye.y;return(u&&t.range.start.x<=e.x&&t.range.end.x>=e.x||l&&t.range.end.x>=e.x||g&&t.range.start.x<=e.x||l&&g)&&t.range.start.y<=e.y&&t.range.end.y>=e.y},n.prototype._positionFromMouseEvent=function(t,e,u){var l=u.getCoords(t,e,this._bufferService.cols,this._bufferService.rows);if(l)return{x:l[0],y:l[1]+this._bufferService.buffer.ydisp}},n.prototype._createLinkUnderlineEvent=function(t,e,u,l,g){return{x1:t,y1:e,x2:u,y2:l,cols:this._bufferService.cols,fg:g}},n=r([p(0,d.IBufferService)],n)}(o.Disposable);f.Linkifier2=s},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CoreBrowserService=void 0;var m=function(){function _(r){this._textarea=r}return Object.defineProperty(_.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),_}();f.CoreBrowserService=m},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(y,T){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,E){A.__proto__=E}||function(A,E){for(var b in E)E.hasOwnProperty(b)&&(A[b]=E[b])})(y,T)},function(y,T){function A(){this.constructor=y}m(y,T),y.prototype=T===null?Object.create(T):(A.prototype=T.prototype,new A)});Object.defineProperty(f,"__esModule",{value:!0}),f.CoreTerminal=void 0;var r=L(2),p=L(1),d=L(66),c=L(67),o=L(68),i=L(74),s=L(75),a=L(0),n=L(76),t=L(77),e=L(78),u=L(80),l=L(81),g=L(19),C=L(82),x=function(y){function T(A){var E=y.call(this)||this;return E._onBinary=new a.EventEmitter,E._onData=new a.EventEmitter,E._onLineFeed=new a.EventEmitter,E._onResize=new a.EventEmitter,E._onScroll=new a.EventEmitter,E._instantiationService=new d.InstantiationService,E.optionsService=new i.OptionsService(A),E._instantiationService.setService(p.IOptionsService,E.optionsService),E._bufferService=E.register(E._instantiationService.createInstance(o.BufferService)),E._instantiationService.setService(p.IBufferService,E._bufferService),E._logService=E._instantiationService.createInstance(c.LogService),E._instantiationService.setService(p.ILogService,E._logService),E._coreService=E.register(E._instantiationService.createInstance(s.CoreService,function(){return E.scrollToBottom()})),E._instantiationService.setService(p.ICoreService,E._coreService),E._coreMouseService=E._instantiationService.createInstance(n.CoreMouseService),E._instantiationService.setService(p.ICoreMouseService,E._coreMouseService),E._dirtyRowService=E._instantiationService.createInstance(t.DirtyRowService),E._instantiationService.setService(p.IDirtyRowService,E._dirtyRowService),E.unicodeService=E._instantiationService.createInstance(e.UnicodeService),E._instantiationService.setService(p.IUnicodeService,E.unicodeService),E._charsetService=E._instantiationService.createInstance(u.CharsetService),E._instantiationService.setService(p.ICharsetService,E._charsetService),E._inputHandler=new g.InputHandler(E._bufferService,E._charsetService,E._coreService,E._dirtyRowService,E._logService,E.optionsService,E._coreMouseService,E.unicodeService),E.register(a.forwardEvent(E._inputHandler.onLineFeed,E._onLineFeed)),E.register(E._inputHandler),E.register(a.forwardEvent(E._bufferService.onResize,E._onResize)),E.register(a.forwardEvent(E._coreService.onData,E._onData)),E.register(a.forwardEvent(E._coreService.onBinary,E._onBinary)),E.register(E.optionsService.onOptionChange(function(b){return E._updateOptions(b)})),E._writeBuffer=new C.WriteBuffer(function(b){return E._inputHandler.parse(b)}),E}return _(T,y),Object.defineProperty(T.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){var A;this._isDisposed||(y.prototype.dispose.call(this),(A=this._windowsMode)===null||A===void 0||A.dispose(),this._windowsMode=void 0)},T.prototype.write=function(A,E){this._writeBuffer.write(A,E)},T.prototype.writeSync=function(A){this._writeBuffer.writeSync(A)},T.prototype.resize=function(A,E){isNaN(A)||isNaN(E)||(A=Math.max(A,o.MINIMUM_COLS),E=Math.max(E,o.MINIMUM_ROWS),this._bufferService.resize(A,E))},T.prototype.scroll=function(A,E){E===void 0&&(E=!1);var b,v=this._bufferService.buffer;(b=this._cachedBlankLine)&&b.length===this.cols&&b.getFg(0)===A.fg&&b.getBg(0)===A.bg||(b=v.getBlankLine(A,E),this._cachedBlankLine=b),b.isWrapped=E;var O=v.ybase+v.scrollTop,D=v.ybase+v.scrollBottom;if(v.scrollTop===0){var W=v.lines.isFull;D===v.lines.length-1?W?v.lines.recycle().copyFrom(b):v.lines.push(b.clone()):v.lines.splice(D+1,0,b.clone()),W?this._bufferService.isUserScrolling&&(v.ydisp=Math.max(v.ydisp-1,0)):(v.ybase++,this._bufferService.isUserScrolling||v.ydisp++)}else{var Q=D-O+1;v.lines.shiftElements(O+1,Q-1,-1),v.lines.set(D,b.clone())}this._bufferService.isUserScrolling||(v.ydisp=v.ybase),this._dirtyRowService.markRangeDirty(v.scrollTop,v.scrollBottom),this._onScroll.fire(v.ydisp)},T.prototype.scrollLines=function(A,E){var b=this._bufferService.buffer;if(A<0){if(b.ydisp===0)return;this._bufferService.isUserScrolling=!0}else A+b.ydisp>=b.ybase&&(this._bufferService.isUserScrolling=!1);var v=b.ydisp;b.ydisp=Math.max(Math.min(b.ydisp+A,b.ybase),0),v!==b.ydisp&&(E||this._onScroll.fire(b.ydisp))},T.prototype.scrollPages=function(A){this.scrollLines(A*(this.rows-1))},T.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},T.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},T.prototype.scrollToLine=function(A){var E=A-this._bufferService.buffer.ydisp;E!==0&&this.scrollLines(E)},T.prototype.addEscHandler=function(A,E){return this._inputHandler.addEscHandler(A,E)},T.prototype.addDcsHandler=function(A,E){return this._inputHandler.addDcsHandler(A,E)},T.prototype.addCsiHandler=function(A,E){return this._inputHandler.addCsiHandler(A,E)},T.prototype.addOscHandler=function(A,E){return this._inputHandler.addOscHandler(A,E)},T.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},T.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},T.prototype._updateOptions=function(A){var E;switch(A){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((E=this._windowsMode)===null||E===void 0||E.dispose(),this._windowsMode=void 0)}},T.prototype._enableWindowsMode=function(){var A=this;if(!this._windowsMode){var E=[];E.push(this.onLineFeed(l.updateWindowsModeWrappedState.bind(null,this._bufferService))),E.push(this.addCsiHandler({final:"H"},function(){return l.updateWindowsModeWrappedState(A._bufferService),!1})),this._windowsMode={dispose:function(){for(var b=0,v=E;b0?a[0].index:i.length;if(i.length!==g)throw new Error("[createInstance] First service dependency of "+o.name+" at position "+(g+1)+" conflicts with "+i.length+" static arguments");return new(o.bind.apply(o,m([void 0],m(i,n))))},c}();f.InstantiationService=d},function(S,f,L){"use strict";var m=this&&this.__decorate||function(i,s,a,n){var t,e=arguments.length,u=e<3?s:n===null?n=Object.getOwnPropertyDescriptor(s,a):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(i,s,a,n);else for(var l=i.length-1;l>=0;l--)(t=i[l])&&(u=(e<3?t(u):e>3?t(s,a,u):t(s,a))||u);return e>3&&u&&Object.defineProperty(s,a,u),u},_=this&&this.__param||function(i,s){return function(a,n){s(a,n,i)}},r=this&&this.__spreadArrays||function(){for(var i=0,s=0,a=arguments.length;s=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},p=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.BufferService=f.MINIMUM_ROWS=f.MINIMUM_COLS=void 0;var d=L(1),c=L(69),o=L(0),i=L(2);f.MINIMUM_COLS=2,f.MINIMUM_ROWS=1;var s=function(a){function n(t){var e=a.call(this)||this;return e._optionsService=t,e.isUserScrolling=!1,e._onResize=new o.EventEmitter,e.cols=Math.max(t.options.cols,f.MINIMUM_COLS),e.rows=Math.max(t.options.rows,f.MINIMUM_ROWS),e.buffers=new c.BufferSet(t,e),e}return _(n,a),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){a.prototype.dispose.call(this),this.buffers.dispose()},n.prototype.resize=function(t,e){this.cols=t,this.rows=e,this.buffers.resize(t,e),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:e})},n.prototype.reset=function(){this.buffers.dispose(),this.buffers=new c.BufferSet(this._optionsService,this),this.isUserScrolling=!1},n=r([p(0,d.IOptionsService)],n)}(i.Disposable);f.BufferService=s},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(c,o){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var a in s)s.hasOwnProperty(a)&&(i[a]=s[a])})(c,o)},function(c,o){function i(){this.constructor=c}m(c,o),c.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)});Object.defineProperty(f,"__esModule",{value:!0}),f.BufferSet=void 0;var r=L(70),p=L(0),d=function(c){function o(i,s){var a=c.call(this)||this;return a._onBufferActivate=a.register(new p.EventEmitter),a._normal=new r.Buffer(!0,i,s),a._normal.fillViewportRows(),a._alt=new r.Buffer(!1,i,s),a._activeBuffer=a._normal,a.setupTabStops(),a}return _(o,c),Object.defineProperty(o.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),o.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},o.prototype.activateAltBuffer=function(i){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(i),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},o.prototype.resize=function(i,s){this._normal.resize(i,s),this._alt.resize(i,s)},o.prototype.setupTabStops=function(i){this._normal.setupTabStops(i),this._alt.setupTabStops(i)},o}(L(2).Disposable);f.BufferSet=d},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferStringIterator=f.Buffer=f.MAX_BUFFER_SIZE=void 0;var m=L(71),_=L(16),r=L(4),p=L(3),d=L(72),c=L(73),o=L(20),i=L(6);f.MAX_BUFFER_SIZE=4294967295;var s=function(){function n(t,e,u){this._hasScrollback=t,this._optionsService=e,this._bufferService=u,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=_.DEFAULT_ATTR_DATA.clone(),this.savedCharset=o.DEFAULT_CHARSET,this.markers=[],this._nullCell=r.CellData.fromCharData([0,p.NULL_CELL_CHAR,p.NULL_CELL_WIDTH,p.NULL_CELL_CODE]),this._whitespaceCell=r.CellData.fromCharData([0,p.WHITESPACE_CELL_CHAR,p.WHITESPACE_CELL_WIDTH,p.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return n.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new i.ExtendedAttrs),this._nullCell},n.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new i.ExtendedAttrs),this._whitespaceCell},n.prototype.getBlankLine=function(t,e){return new _.BufferLine(this._bufferService.cols,this.getNullCell(t),e)},Object.defineProperty(n.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCursorInViewport",{get:function(){var t=this.ybase+this.y-this.ydisp;return t>=0&&tf.MAX_BUFFER_SIZE?f.MAX_BUFFER_SIZE:e},n.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=_.DEFAULT_ATTR_DATA);for(var e=this._rows;e--;)this.lines.push(this.getBlankLine(t))}},n.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},n.prototype.resize=function(t,e){var u=this.getNullCell(_.DEFAULT_ATTR_DATA),l=this._getCorrectBufferLength(e);if(l>this.lines.maxLength&&(this.lines.maxLength=l),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+C+1?(this.ybase--,C++,this.ydisp>0&&this.ydisp--):this.lines.push(new _.BufferLine(t,u)));else for(x=this._rows;x>e;x--)this.lines.length>e+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(l0&&(this.lines.trimStart(y),this.ybase=Math.max(this.ybase-y,0),this.ydisp=Math.max(this.ydisp-y,0),this.savedY=Math.max(this.savedY-y,0)),this.lines.maxLength=l}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,e-1),C&&(this.y+=C),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=e-1,this._isReflowEnabled&&(this._reflow(t,e),this._cols>t))for(g=0;gthis._cols?this._reflowLarger(t,e):this._reflowSmaller(t,e))},n.prototype._reflowLarger=function(t,e){var u=d.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(_.DEFAULT_ATTR_DATA));if(u.length>0){var l=d.reflowLargerCreateNewLayout(this.lines,u);d.reflowLargerApplyNewLayout(this.lines,l.layout),this._reflowLargerAdjustViewport(t,e,l.countRemoved)}},n.prototype._reflowLargerAdjustViewport=function(t,e,u){for(var l=this.getNullCell(_.DEFAULT_ATTR_DATA),g=u;g-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;C--){var x=this.lines.get(C);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=t)){for(var y=[x];x.isWrapped&&C>0;)x=this.lines.get(--C),y.unshift(x);var T=this.ybase+this.y;if(!(T>=C&&T0&&(l.push({start:C+y.length+g,newLines:O}),g+=O.length),y.push.apply(y,O);var Q=E.length-1,j=E[Q];j===0&&(j=E[--Q]);for(var Z=y.length-b-1,Y=A;Z>=0;){var w=Math.min(Y,j);if(y[Q].copyCellsFrom(y[Z],Y-w,j-w,w,!0),(j-=w)===0&&(j=E[--Q]),(Y-=w)===0){Z--;var P=Math.max(Z,0);Y=d.getWrappedLineTrimmedLength(y,P,this._cols)}}for(D=0;D0;)this.ybase===0?this.y0){var K=[],M=[];for(D=0;D=0;D--)if(de&&de.start>ae+be){for(var z=de.newLines.length-1;z>=0;z--)this.lines.set(D--,de.newLines[z]);D++,K.push({index:ae+1,amount:de.newLines.length}),be+=de.newLines.length,de=l[++ve]}else this.lines.set(D,M[ae--]);var ne=0;for(D=K.length-1;D>=0;D--)K[D].index+=ne,this.lines.onInsertEmitter.fire(K[D]),ne+=K[D].amount;var fe=Math.max(0,H+g-this.lines.maxLength);fe>0&&this.lines.onTrimEmitter.fire(fe)}},n.prototype.stringIndexToBufferIndex=function(t,e,u){for(u===void 0&&(u=!1);e;){var l=this.lines.get(t);if(!l)return[-1,-1];for(var g=u?l.getTrimmedLength():l.length,C=0;C0&&this.lines.get(e).isWrapped;)e--;for(;u+10;);return t>=this._cols?this._cols-1:t<0?0:t},n.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t},n.prototype.addMarker=function(t){var e=this,u=new c.Marker(t);return this.markers.push(u),u.register(this.lines.onTrim(function(l){u.line-=l,u.line<0&&u.dispose()})),u.register(this.lines.onInsert(function(l){u.line>=l.index&&(u.line+=l.amount)})),u.register(this.lines.onDelete(function(l){u.line>=l.index&&u.linel.index&&(u.line-=l.amount)})),u.register(u.onDispose(function(){return e._removeMarker(u)})),u},n.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},n.prototype.iterator=function(t,e,u,l,g){return new a(this,t,e,u,l,g)},n}();f.Buffer=s;var a=function(){function n(t,e,u,l,g,C){u===void 0&&(u=0),l===void 0&&(l=t.lines.length),g===void 0&&(g=0),C===void 0&&(C=0),this._buffer=t,this._trimRight=e,this._startIndex=u,this._endIndex=l,this._startOverscan=g,this._endOverscan=C,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return n.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var e="",u=t.first;u<=t.last;++u)e+=this._buffer.translateBufferLineToString(u,this._trimRight);return this._current=t.last+1,{range:t,content:e}},n}();f.BufferStringIterator=a},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CircularList=void 0;var m=L(0),_=function(){function r(p){this._maxLength=p,this.onDeleteEmitter=new m.EventEmitter,this.onInsertEmitter=new m.EventEmitter,this.onTrimEmitter=new m.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(r.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxLength",{get:function(){return this._maxLength},set:function(p){if(this._maxLength!==p){for(var d=new Array(p),c=0;cthis._length)for(var d=this._length;d=p;i--)this._array[this._getCyclicIndex(i+c.length)]=this._array[this._getCyclicIndex(i)];for(i=0;ithis._maxLength){var s=this._length+c.length-this._maxLength;this._startIndex+=s,this._length=this._maxLength,this.onTrimEmitter.fire(s)}else this._length+=c.length},r.prototype.trimStart=function(p){p>this._length&&(p=this._length),this._startIndex+=p,this._length-=p,this.onTrimEmitter.fire(p)},r.prototype.shiftElements=function(p,d,c){if(!(d<=0)){if(p<0||p>=this._length)throw new Error("start argument out of range");if(p+c<0)throw new Error("Cannot shift elements in list beyond index 0");if(c>0){for(var o=d-1;o>=0;o--)this.set(p+o+c,this.get(p+o));var i=p+d+c-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(o=0;o=i&&d0&&(A>t||n[A].getTrimmedLength()===0);A--)T++;T>0&&(o.push(i+n.length-T),o.push(T)),i+=n.length-1}}}return o},f.reflowLargerCreateNewLayout=function(_,r){for(var p=[],d=0,c=r[d],o=0,i=0;i<_.length;i++)if(c===i){var s=r[++d];_.onDeleteEmitter.fire({index:i-o,amount:s}),i+=s-1,o+=s,c=r[++d]}else p.push(i);return{layout:p,countRemoved:o}},f.reflowLargerApplyNewLayout=function(_,r){for(var p=[],d=0;da&&(o-=a,i++);var n=_[i].getWidth(o-1)===2;n&&o--;var t=n?p-1:p;d.push(t),s+=t}return d},f.getWrappedLineTrimmedLength=m},function(S,f,L){"use strict";var m,_=this&&this.__extends||(m=function(d,c){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var s in i)i.hasOwnProperty(s)&&(o[s]=i[s])})(d,c)},function(d,c){function o(){this.constructor=d}m(d,c),d.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(f,"__esModule",{value:!0}),f.Marker=void 0;var r=L(0),p=function(d){function c(o){var i=d.call(this)||this;return i.line=o,i._id=c._nextId++,i.isDisposed=!1,i._onDispose=new r.EventEmitter,i}return _(c,d),Object.defineProperty(c.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),c.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},c._nextId=1,c}(L(2).Disposable);f.Marker=p},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OptionsService=f.DEFAULT_OPTIONS=f.DEFAULT_BELL_SOUND=void 0;var m=L(0),_=L(11),r=L(33);f.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",f.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:f.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:_.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var p=["cols","rows"],d=function(){function c(o){this._onOptionChange=new m.EventEmitter,this.options=r.clone(f.DEFAULT_OPTIONS);for(var i=0,s=Object.keys(o);i=0;y--)(g=t[y])&&(x=(C<3?g(x):C>3?g(e,u,x):g(e,u))||x);return C>3&&x&&Object.defineProperty(e,u,x),x},p=this&&this.__param||function(t,e){return function(u,l){e(u,l,t)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreService=void 0;var d=L(1),c=L(0),o=L(33),i=L(2),s=Object.freeze({insertMode:!1}),a=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),n=function(t){function e(u,l,g,C){var x=t.call(this)||this;return x._bufferService=l,x._logService=g,x._optionsService=C,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new c.EventEmitter),x._onUserInput=x.register(new c.EventEmitter),x._onBinary=x.register(new c.EventEmitter),x._scrollToBottom=u,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=o.clone(s),x.decPrivateModes=o.clone(a),x}return _(e,t),Object.defineProperty(e.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.modes=o.clone(s),this.decPrivateModes=o.clone(a)},e.prototype.triggerDataEvent=function(u,l){if(l===void 0&&(l=!1),!this._optionsService.options.disableStdin){var g=this._bufferService.buffer;g.ybase!==g.ydisp&&this._scrollToBottom(),l&&this._onUserInput.fire(),this._logService.debug('sending data "'+u+'"',function(){return u.split("").map(function(C){return C.charCodeAt(0)})}),this._onData.fire(u)}},e.prototype.triggerBinaryEvent=function(u){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+u+'"',function(){return u.split("").map(function(l){return l.charCodeAt(0)})}),this._onBinary.fire(u))},e=r([p(1,d.IBufferService),p(2,d.ILogService),p(3,d.IOptionsService)],e)}(i.Disposable);f.CoreService=n},function(S,f,L){"use strict";var m=this&&this.__decorate||function(a,n,t,e){var u,l=arguments.length,g=l<3?n:e===null?e=Object.getOwnPropertyDescriptor(n,t):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(a,n,t,e);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(g=(l<3?u(g):l>3?u(n,t,g):u(n,t))||g);return l>3&&g&&Object.defineProperty(n,t,g),g},_=this&&this.__param||function(a,n){return function(t,e){n(t,e,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreMouseService=void 0;var r=L(1),p=L(0),d={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(a){return a.button!==4&&a.action===1&&(a.ctrl=!1,a.alt=!1,a.shift=!1,!0)}},VT200:{events:19,restrict:function(a){return a.action!==32}},DRAG:{events:23,restrict:function(a){return a.action!==32||a.button!==3}},ANY:{events:31,restrict:function(a){return!0}}};function c(a,n){var t=(a.ctrl?16:0)|(a.shift?4:0)|(a.alt?8:0);return a.button===4?(t|=64,t|=a.action):(t|=3&a.button,4&a.button&&(t|=64),8&a.button&&(t|=128),a.action===32?t|=32:a.action!==0||n||(t|=3)),t}var o=String.fromCharCode,i={DEFAULT:function(a){var n=[c(a,!1)+32,a.col+32,a.row+32];return n[0]>255||n[1]>255||n[2]>255?"":""+o(n[0])+o(n[1])+o(n[2])},SGR:function(a){var n=a.action===0&&a.button!==4?"m":"M";return"[<"+c(a,!0)+";"+a.col+";"+a.row+n}},s=function(){function a(n,t){this._bufferService=n,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new p.EventEmitter,this._lastEvent=null;for(var e=0,u=Object.keys(d);e=this._bufferService.cols||n.row<0||n.row>=this._bufferService.rows)return!1;if(n.button===4&&n.action===32)return!1;if(n.button===3&&n.action!==32)return!1;if(n.button!==4&&(n.action===2||n.action===3))return!1;if(n.col++,n.row++,n.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,n))return!1;if(!this._protocols[this._activeProtocol].restrict(n))return!1;var t=this._encodings[this._activeEncoding](n);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=n,!0},a.prototype.explainEvents=function(n){return{down:!!(1&n),up:!!(2&n),drag:!!(4&n),move:!!(8&n),wheel:!!(16&n)}},a.prototype._compareEvents=function(n,t){return n.col===t.col&&(n.row===t.row&&(n.button===t.button&&(n.action===t.action&&(n.ctrl===t.ctrl&&n.alt===t.alt))))&&n.shift===t.shift},a=m([_(0,r.IBufferService),_(1,r.ICoreService)],a)}();f.CoreMouseService=s},function(S,f,L){"use strict";var m=this&&this.__decorate||function(d,c,o,i){var s,a=arguments.length,n=a<3?c:i===null?i=Object.getOwnPropertyDescriptor(c,o):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(d,c,o,i);else for(var t=d.length-1;t>=0;t--)(s=d[t])&&(n=(a<3?s(n):a>3?s(c,o,n):s(c,o))||n);return a>3&&n&&Object.defineProperty(c,o,n),n},_=this&&this.__param||function(d,c){return function(o,i){c(o,i,d)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DirtyRowService=void 0;var r=L(1),p=function(){function d(c){this._bufferService=c,this.clearRange()}return Object.defineProperty(d.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),d.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},d.prototype.markDirty=function(c){cthis._end&&(this._end=c)},d.prototype.markRangeDirty=function(c,o){if(c>o){var i=c;c=o,o=i}cthis._end&&(this._end=o)},d.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},d=m([_(0,r.IBufferService)],d)}();f.DirtyRowService=p},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeService=void 0;var m=L(0),_=L(79),r=function(){function p(){this._providers=Object.create(null),this._active="",this._onChange=new m.EventEmitter;var d=new _.UnicodeV6;this.register(d),this._active=d.version,this._activeProvider=d}return Object.defineProperty(p.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"activeVersion",{get:function(){return this._active},set:function(d){if(!this._providers[d])throw new Error('unknown Unicode version "'+d+'"');this._active=d,this._activeProvider=this._providers[d],this._onChange.fire(d)},enumerable:!1,configurable:!0}),p.prototype.register=function(d){this._providers[d.version]=d},p.prototype.wcwidth=function(d){return this._activeProvider.wcwidth(d)},p.prototype.getStringCellWidth=function(d){for(var c=0,o=d.length,i=0;i=o)return c+this.wcwidth(s);var a=d.charCodeAt(i);56320<=a&&a<=57343?s=1024*(s-55296)+a-56320+65536:c+=this.wcwidth(a)}c+=this.wcwidth(s)}return c},p}();f.UnicodeService=r},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeV6=void 0;var m,_=L(15),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],p=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],d=function(){function c(){if(this.version="6",!m){m=new Uint8Array(65536),_.fill(m,1),m[0]=0,_.fill(m,0,1,32),_.fill(m,0,127,160),_.fill(m,2,4352,4448),m[9001]=2,m[9002]=2,_.fill(m,2,11904,42192),m[12351]=1,_.fill(m,2,44032,55204),_.fill(m,2,63744,64256),_.fill(m,2,65040,65050),_.fill(m,2,65072,65136),_.fill(m,2,65280,65377),_.fill(m,2,65504,65511);for(var o=0;os[t][1])return!1;for(;t>=n;)if(i>s[a=n+t>>1][1])n=a+1;else{if(!(i=131072&&o<=196605||o>=196608&&o<=262141?2:1},c}();f.UnicodeV6=d},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CharsetService=void 0;var m=function(){function _(){this.glevel=0,this._charsets=[]}return _.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},_.prototype.setgLevel=function(r){this.glevel=r,this.charset=this._charsets[r]},_.prototype.setgCharset=function(r,p){this._charsets[r]=p,this.glevel===r&&(this.charset=p)},_}();f.CharsetService=m},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.updateWindowsModeWrappedState=void 0;var m=L(3);f.updateWindowsModeWrappedState=function(_){var r=_.buffer.lines.get(_.buffer.ybase+_.buffer.y-1),p=r==null?void 0:r.get(_.cols-1),d=_.buffer.lines.get(_.buffer.ybase+_.buffer.y);d&&p&&(d.isWrapped=p[m.CHAR_DATA_CODE_INDEX]!==m.NULL_CELL_CODE&&p[m.CHAR_DATA_CODE_INDEX]!==m.WHITESPACE_CELL_CODE)}},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WriteBuffer=void 0;var m=function(){function _(r){this._action=r,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return _.prototype.writeSync=function(r){if(this._writeBuffer.length){for(var p=this._bufferOffset;p5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return d._innerWrite()})),this._pendingData+=r.length,this._writeBuffer.push(r),this._callbacks.push(p)},_.prototype._innerWrite=function(){for(var r=this,p=Date.now();this._writeBuffer.length>this._bufferOffset;){var d=this._writeBuffer[this._bufferOffset],c=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(d),this._pendingData-=d.length,c&&c(),Date.now()-p>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return r._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},_}();f.WriteBuffer=m},function(S,f,L){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AddonManager=void 0;var m=function(){function _(){this._addons=[]}return _.prototype.dispose=function(){for(var r=this._addons.length-1;r>=0;r--)this._addons[r].instance.dispose()},_.prototype.loadAddon=function(r,p){var d=this,c={instance:p,dispose:p.dispose,isDisposed:!1};this._addons.push(c),p.dispose=function(){return d._wrappedAddonDispose(c)},p.activate(r)},_.prototype._wrappedAddonDispose=function(r){if(!r.isDisposed){for(var p=-1,d=0;d> RFB.constructor"),F._screen=document.createElement("div"),F._screen.style.display="flex",F._screen.style.width="100%",F._screen.style.height="100%",F._screen.style.overflow="auto",F._screen.style.background=H,F._canvas=document.createElement("canvas"),F._canvas.style.margin="auto",F._canvas.style.outline="none",F._canvas.style.flexShrink="0",F._canvas.width=0,F._canvas.height=0,F._canvas.tabIndex=-1,F._screen.appendChild(F._canvas),F._cursor=new a.default,F._cursorImage=Ce.cursors.none,F._decoders[l.encodings.encodingRaw]=new g.default,F._decoders[l.encodings.encodingCopyRect]=new C.default,F._decoders[l.encodings.encodingRRE]=new x.default,F._decoders[l.encodings.encodingHextile]=new y.default,F._decoders[l.encodings.encodingTight]=new T.default,F._decoders[l.encodings.encodingTightPNG]=new A.default;try{F._display=new d.default(F._canvas)}catch(Ae){throw f.Error("Display exception: "+Ae),Ae}return F._display.onflush=F._onFlush.bind(P(F)),F._keyboard=new i.default(F._canvas),F._keyboard.onkeyevent=F._handleKeyEvent.bind(P(F)),F._gestures=new s.default,F._sock=new n.default,F._sock.on("message",function(){F._handleMessage()}),F._sock.on("open",function(){F._rfbConnectionState==="connecting"&&F._rfbInitState===""?(F._rfbInitState="ProtocolVersion",f.Debug("Starting VNC handshake")):F._fail("Unexpected server connection while "+F._rfbConnectionState)}),F._sock.on("close",function(Ae){f.Debug("WebSocket on-close event");var tt="";Ae.code&&(tt="(code: "+Ae.code,Ae.reason&&(tt+=", reason: "+Ae.reason),tt+=")");switch(F._rfbConnectionState){case"connecting":F._fail("Connection closed "+tt);break;case"connected":F._updateConnectionState("disconnecting"),F._updateConnectionState("disconnected");break;case"disconnecting":F._updateConnectionState("disconnected");break;case"disconnected":F._fail("Unexpected server disconnect when already disconnected "+tt);break;default:F._fail("Unexpected server disconnect before connecting "+tt);break}F._sock.off("close")}),F._sock.on("error",function(Ae){return f.Warn("WebSocket on-error event")}),setTimeout(F._updateConnectionState.bind(P(F),"connecting")),f.Debug("<< RFB.constructor"),F.dragViewport=!1,F.focusOnClick=!0,F._viewOnly=!1,F._clipViewport=!1,F._scaleViewport=!1,F._resizeSession=!1,F._showDotCursor=!1,te.showDotCursor!==void 0&&(f.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),F._showDotCursor=te.showDotCursor),F._qualityLevel=6,F._compressionLevel=2,F}return Q(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(N){this._rfbCredentials=N,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;f.Info("Sending Ctrl-Alt-Del"),this.sendKey(e.default.XK_Control_L,"ControlLeft",!0),this.sendKey(e.default.XK_Alt_L,"AltLeft",!0),this.sendKey(e.default.XK_Delete,"Delete",!0),this.sendKey(e.default.XK_Delete,"Delete",!1),this.sendKey(e.default.XK_Alt_L,"AltLeft",!1),this.sendKey(e.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(N,te,F){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(F===void 0){this.sendKey(N,te,!0),this.sendKey(N,te,!1);return}var Ae=u.default[te];if(this._qemuExtKeyEventSupported&&Ae)N=N||0,f.Info("Sending key ("+(F?"down":"up")+"): keysym "+N+", scancode "+Ae),Ce.messages.QEMUExtendedKeyEvent(this._sock,N,F,Ae);else{if(!N)return;f.Info("Sending keysym ("+(F?"down":"up")+"): "+N),Ce.messages.keyEvent(this._sock,N,F?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(N){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[ie]&&this._clipboardServerCapabilitiesActions[$e])this._clipboardText=N,Ce.messages.extendedClipboardNotify(this._sock,[ie]);else{for(var te=new Uint8Array(N.length),F=0;F> RFB.connect"),f.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(N){N.name==="SyntaxError"?this._fail("Invalid host or port ("+N+")"):this._fail("Error when opening socket ("+N+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),f.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){f.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(N){if(!(N.name==="NotFoundError"))throw N}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),f.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(N){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(N){this._fbName=N,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(N){var te=this;window.requestAnimationFrame(function(){te._updateClip(),te._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var N=this._display.clipViewport,te=this._clipViewport;if(this._scaleViewport&&(te=!1),N!==te&&(this._display.clipViewport=te),te){var F=this._screenSize();this._display.viewportChangeSize(F.w,F.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var N=this._screenSize();this._display.autoscale(N.w,N.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var N=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(N.w),Math.floor(N.h),this._screenID,this._screenFlags),f.Debug("Requested new desktop size: "+N.w+"x"+N.h)}},{key:"_screenSize",value:function(){var N=this._screen.getBoundingClientRect();return{w:N.width,h:N.height}}},{key:"_fixScrollbars",value:function(){var N=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=N}},{key:"_updateConnectionState",value:function(N){var te=this,F=this._rfbConnectionState;if(N===F){f.Debug("Already in state '"+N+"', ignoring");return}if(F==="disconnected"){f.Error("Tried changing state of a disconnected RFB object");return}switch(N){case"connected":if(F!=="connecting"){f.Error("Bad transition to connected state, previous connection state: "+F);return}break;case"disconnected":if(F!=="disconnecting"){f.Error("Bad transition to disconnected state, previous connection state: "+F);return}break;case"connecting":if(F!==""){f.Error("Bad transition to connecting state, previous connection state: "+F);return}break;case"disconnecting":if(F!=="connected"&&F!=="connecting"){f.Error("Bad transition to disconnecting state, previous connection state: "+F);return}break;default:f.Error("Unknown connection state: "+N);return}this._rfbConnectionState=N,f.Debug("New state '"+N+"', was '"+F+"'."),this._disconnTimer&&N!=="disconnecting"&&(f.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(N){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){f.Error("Disconnection timed out."),te._updateConnectionState("disconnected")},M*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(N){switch(this._rfbConnectionState){case"disconnecting":f.Error("Failed when disconnecting: "+N);break;case"connected":f.Error("Failed while connected: "+N);break;case"connecting":f.Error("Failed when connecting: "+N);break;default:f.Error("RFB failure: "+N);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(N,te){this._capabilities[N]=te,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){f.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":f.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(N,te,F){this.sendKey(N,te,F)}},{key:"_handleMouse",value:function(N){if(N.type==="click"&&N.target!==this._canvas)return;if(N.stopPropagation(),N.preventDefault(),N.type==="click"||N.type==="contextmenu")return;var te=(0,_.clientToElement)(N.clientX,N.clientY,this._canvas);switch(N.type){case"mousedown":(0,r.setCapture)(this._canvas),this._handleMouseButton(te.x,te.y,!0,1<m.dragThreshold||Math.abs(tt)>m.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:N,y:te},this._display.viewportChangePos(Ae,tt));return}if(this._mousePos={x:N,y:te},this._mouseMoveTimer==null){var he=Date.now()-this._mouseLastMoveTime;he>ae?(this._sendMouse(N,te,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){F._handleDelayedMouseMove()},ae-he)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(N,te,F){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(N),this._display.absY(te),F)}},{key:"_handleWheel",value:function(N){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;N.stopPropagation(),N.preventDefault();var te=(0,_.clientToElement)(N.clientX,N.clientY,this._canvas),F=N.deltaX,Ae=N.deltaY;N.deltaMode!==0&&(F*=de,Ae*=de),this._accumulatedWheelDeltaX+=F,this._accumulatedWheelDeltaY+=Ae,Math.abs(this._accumulatedWheelDeltaX)>=ve&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(te.x,te.y,!0,1<<5),this._handleMouseButton(te.x,te.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(te.x,te.y,!0,1<<6),this._handleMouseButton(te.x,te.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=ve&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(te.x,te.y,!0,1<<3),this._handleMouseButton(te.x,te.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(te.x,te.y,!0,1<<4),this._handleMouseButton(te.x,te.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(N,te,F){this._handleMouseMove(te,F),this._cursor.move(N.detail.clientX,N.detail.clientY)}},{key:"_handleTapEvent",value:function(N,te){var F=(0,_.clientToElement)(N.detail.clientX,N.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTimez;)this._handleMouseButton(F.x,F.y,!0,8),this._handleMouseButton(F.x,F.y,!1,8),this._gestureLastMagnitudeY+=z;for(;N.detail.magnitudeY-this._gestureLastMagnitudeY<-z;)this._handleMouseButton(F.x,F.y,!0,16),this._handleMouseButton(F.x,F.y,!1,16),this._gestureLastMagnitudeY-=z;for(;N.detail.magnitudeX-this._gestureLastMagnitudeX>z;)this._handleMouseButton(F.x,F.y,!0,32),this._handleMouseButton(F.x,F.y,!1,32),this._gestureLastMagnitudeX+=z;for(;N.detail.magnitudeX-this._gestureLastMagnitudeX<-z;)this._handleMouseButton(F.x,F.y,!0,64),this._handleMouseButton(F.x,F.y,!1,64),this._gestureLastMagnitudeX-=z;break;case"pinch":if(this._fakeMouseMove(N,F.x,F.y),te=Math.hypot(N.detail.magnitudeX,N.detail.magnitudeY),Math.abs(te-this._gestureLastMagnitudeX)>be){for(this._handleKeyEvent(e.default.XK_Control_L,"ControlLeft",!0);te-this._gestureLastMagnitudeX>be;)this._handleMouseButton(F.x,F.y,!0,8),this._handleMouseButton(F.x,F.y,!1,8),this._gestureLastMagnitudeX+=be;for(;te-this._gestureLastMagnitudeX<-be;)this._handleMouseButton(F.x,F.y,!0,16),this._handleMouseButton(F.x,F.y,!1,16),this._gestureLastMagnitudeX-=be}this._handleKeyEvent(e.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(N.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(N,F.x,F.y),this._handleMouseButton(F.x,F.y,!1,1);break;case"longpress":this._fakeMouseMove(N,F.x,F.y),this._handleMouseButton(F.x,F.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var N=this._sock.rQshiftStr(12).substr(4,7);f.Info("Server ProtocolVersion: "+N);var te=0;switch(N){case"000.000":te=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+N)}if(te){for(var F="ID:"+this._repeaterID;F.length<250;)F+="\0";return this._sock.sendString(F),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ae="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ae+` +`),f.Debug("Sent ProtocolVersion: "+Ae),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function N(Ae,tt){for(var he=0;he=3.7){var te=this._sock.rQshift8();if(this._sock.rQwait("security type",te,1))return!1;if(te===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var F=this._sock.rQshiftBytes(te);if(f.Debug("Server security types: "+F),N(1,F))this._rfbAuthScheme=1;else if(N(22,F))this._rfbAuthScheme=22;else if(N(16,F))this._rfbAuthScheme=16;else if(N(2,F))this._rfbAuthScheme=2;else if(N(19,F))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+F+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",f.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var N=this._sock.rQshift32(),te="";if(N>0){if(this._sock.rQwait("reason",N,4))return!1;te=this._sock.rQshiftStr(N)}return te!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:te}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+te+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var N=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(N),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var N=this._sock.rQshift8(),te=this._sock.rQshift8();if(!(N==0&&te==2))return this._fail("Unsupported VeNCrypt version "+N+"."+te);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var F=this._sock.rQshift8();if(F!=0)return this._fail("VeNCrypt failure "+F);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ae=this._sock.rQshift8();if(Ae<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ae,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var tt=[],he=0;he0&&this._sock.rQwait("tunnel capabilities",16*N,4))return!1;if(this._rfbTightVNC=!0,N>0)return this._negotiateTightTunnels(N),!1}if(this._sock.rQwait("sub auth count",4))return!1;var te=this._sock.rQshift32();if(te===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*te,4))return!1;for(var F={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ae=[],tt=0;tt=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var N=this._sock.rQshift32();return N===0?(this._rfbInitState="ClientInitialisation",f.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=N,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:N}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var N=this._sock.rQshift16(),te=this._sock.rQshift16(),F=this._sock.rQshift8(),Ae=this._sock.rQshift8(),tt=this._sock.rQshift8(),he=this._sock.rQshift8(),We=this._sock.rQshift16(),rt=this._sock.rQshift16(),V=this._sock.rQshift16(),Be=this._sock.rQshift8(),xe=this._sock.rQshift8(),ke=this._sock.rQshift8();this._sock.rQskipBytes(3);var De=this._sock.rQshift32();if(this._sock.rQwait("server init name",De,24))return!1;var Ne=this._sock.rQshiftStr(De);if(Ne=(0,L.decodeUTF8)(Ne,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+De))return!1;var se=this._sock.rQshift16(),we=this._sock.rQshift16(),B=this._sock.rQshift16();this._sock.rQskipBytes(2);var He=(se+we+B)*16;if(this._sock.rQwait("TightVNC extended server init header",He,32+De))return!1;this._sock.rQskipBytes(16*se),this._sock.rQskipBytes(16*we),this._sock.rQskipBytes(16*B)}return f.Info("Screen: "+N+"x"+te+", bpp: "+F+", depth: "+Ae+", bigEndian: "+tt+", trueColor: "+he+", redMax: "+We+", greenMax: "+rt+", blueMax: "+V+", redShift: "+Be+", greenShift: "+xe+", blueShift: "+ke),this._setDesktopName(Ne),this._resize(N,te),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(f.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var N=[];N.push(l.encodings.encodingCopyRect),this._fbDepth==24&&(N.push(l.encodings.encodingTight),N.push(l.encodings.encodingTightPNG),N.push(l.encodings.encodingHextile),N.push(l.encodings.encodingRRE)),N.push(l.encodings.encodingRaw),N.push(l.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),N.push(l.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),N.push(l.encodings.pseudoEncodingDesktopSize),N.push(l.encodings.pseudoEncodingLastRect),N.push(l.encodings.pseudoEncodingQEMUExtendedKeyEvent),N.push(l.encodings.pseudoEncodingExtendedDesktopSize),N.push(l.encodings.pseudoEncodingXvp),N.push(l.encodings.pseudoEncodingFence),N.push(l.encodings.pseudoEncodingContinuousUpdates),N.push(l.encodings.pseudoEncodingDesktopName),N.push(l.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(N.push(l.encodings.pseudoEncodingVMwareCursor),N.push(l.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,N)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return f.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(f.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var N=this._sock.rQshift32();if(N=(0,S.toSigned32bit)(N),this._sock.rQwait("ServerCutText content",Math.abs(N),8))return!1;if(N>=0){var te=this._sock.rQshiftStr(N);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:te}}))}else{N=Math.abs(N);var F=this._sock.rQshift32(),Ae=F&65535,tt=F&4278190080,he=!!(tt&le);if(he){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var We=0;We<=15;We++){var rt=1<0&&Ne.charAt(Ne.length-1)==="\0"&&(Ne=Ne.slice(0,-1)),Ne=Ne.replace(`\r `,` -`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Ne}}))}}else return this._fail("Unexpected action in extended clipboard message: "+tt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var N=this._sock.rQshift32(),te=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",te,9))return!1;te>64&&(f.Warn("Bad payload length ("+te+") in fence response"),te=64);var F=this._sock.rQshiftStr(te);return this._supportsFence=!0,N&1<<31?(N&=1<<0|1<<1,Ce.messages.clientFence(this._sock,N,F),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var N=this._sock.rQshift8(),te=this._sock.rQshift8();switch(te){case 0:f.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=N,f.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+te+")");break}return!0}},{key:"_normalMsg",value:function(){var N;this._FBU.rects>0?N=0:N=this._sock.rQshift8();var te,F;switch(N){case 0:return F=this._framebufferUpdate(),F&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),F;case 1:return this._handleSetColourMapMsg();case 2:return f.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return te=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,te&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),f.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+N+")"),f.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var N=this._sock.rQshiftBytes(12);this._FBU.x=(N[0]<<8)+N[1],this._FBU.y=(N[2]<<8)+N[3],this._FBU.width=(N[4]<<8)+N[5],this._FBU.height=(N[6]<<8)+N[7],this._FBU.encoding=parseInt((N[8]<<24)+(N[9]<<16)+(N[10]<<8)+N[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case l.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case l.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case l.encodings.pseudoEncodingCursor:return this._handleCursor();case l.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var N=document.createEvent("keyboardEvent");N.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(te){}return!0;case l.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case l.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case l.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var N=this._FBU.x,te=this._FBU.y,F=this._FBU.width,Ae=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var tt=this._sock.rQshift8();this._sock.rQshift8();var he,We=4;if(tt==0){var rt=4294967040|0;if(he=new Array(F*Ae*We),this._sock.rQwait("VMware cursor classic encoding",F*Ae*We*2,2))return!1;for(var V=new Array(F*Ae),Be=0;Be>8&255,we=Ne>>16&255,B=Ne>>24&255;he[De*We]=se,he[De*We+1]=we,he[De*We+2]=B,he[De*We+3]=255}else(V[De]&rt)==rt?xe[De]==0?(he[De*We]=0,he[De*We+1]=0,he[De*We+2]=0,he[De*We+3]=0):((xe[De]&rt)==rt,he[De*We]=0,he[De*We+1]=0,he[De*We+2]=0,he[De*We+3]=255):(he[De*We]=0,he[De*We+1]=0,he[De*We+2]=0,he[De*We+3]=255)}else if(tt==1){if(this._sock.rQwait("VMware cursor alpha encoding",F*Ae*4,2))return!1;he=new Array(F*Ae*We);for(var He=0;He>24&255,he[He*4+1]=at>>16&255,he[He*4+2]=at>>8&255,he[He*4+3]=at&255}}else return f.Warn("The given cursor type is not supported: "+tt+" given."),!1;return this._updateCursor(he,N,te,F,Ae),!0}},{key:"_handleCursor",value:function(){var N=this._FBU.x,te=this._FBU.y,F=this._FBU.width,Ae=this._FBU.height,tt=F*Ae*4,he=Math.ceil(F/8)*Ae,We=tt+he;if(this._sock.rQwait("cursor encoding",We))return!1;for(var rt=this._sock.rQshiftBytes(tt),V=this._sock.rQshiftBytes(he),Be=new Uint8Array(F*Ae*4),xe=0,Le=0;Le9){f.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===N)return;this._qualityLevel=N,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(N){if(!Number.isInteger(N)||N<0||N>9){f.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===N)return;this._compressionLevel=N,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(N,te){var F=N.split("").map(function(Ae){return Ae.charCodeAt(0)});return new t.default(F).encrypt(te)}}]),Ce}(p.default);I.default=Ve,Ve.messages={keyEvent:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen;N[te]=4,N[te+1]=ue,N[te+2]=0,N[te+3]=0,N[te+4]=Ce>>24,N[te+5]=Ce>>16,N[te+6]=Ce>>8,N[te+7]=Ce,Oe._sQlen+=8,Oe.flush()},QEMUExtendedKeyEvent:function(Oe,Ce,ue,N){function te(he){var We=N>>8,rt=N&255;return We===224&&rt<127?rt|128:he}var F=Oe._sQ,Ae=Oe._sQlen;F[Ae]=255,F[Ae+1]=0,F[Ae+2]=ue>>8,F[Ae+3]=ue,F[Ae+4]=Ce>>24,F[Ae+5]=Ce>>16,F[Ae+6]=Ce>>8,F[Ae+7]=Ce;var tt=te(N);F[Ae+8]=tt>>24,F[Ae+9]=tt>>16,F[Ae+10]=tt>>8,F[Ae+11]=tt,Oe._sQlen+=12,Oe.flush()},pointerEvent:function(Oe,Ce,ue,N){var te=Oe._sQ,F=Oe._sQlen;te[F]=5,te[F+1]=N,te[F+2]=Ce>>8,te[F+3]=Ce,te[F+4]=ue>>8,te[F+5]=ue,Oe._sQlen+=6,Oe.flush()},_buildExtendedClipboardFlags:function(Oe,Ce){for(var ue=new Uint8Array(4),N=0,te=0,F=0;F>24,ue[1]=0,ue[2]=0,ue[3]=N,ue},extendedClipboardProvide:function(Oe,Ce,ue){for(var N=new o.default,te=[],F=0;F>24&255,Ae.length>>16&255,Ae.length>>8&255,Ae.length&255);for(var tt=0;tt>24,te[F+1]=ue[N[Ae]]>>16,te[F+2]=ue[N[Ae]]>>8,te[F+3]=ue[N[Ae]]>>0,F+=4,te[3]|=1<2&&arguments[2]!==void 0?arguments[2]:!1,N=Oe._sQ,te=Oe._sQlen;N[te]=6,N[te+1]=0,N[te+2]=0,N[te+3]=0;var F;ue?F=(0,S.toUnsigned32bit)(-Ce.length):F=Ce.length,N[te+4]=F>>24,N[te+5]=F>>16,N[te+6]=F>>8,N[te+7]=F,Oe._sQlen+=8;for(var Ae=0,tt=Ce.length;tt>0;){for(var he=Math.min(tt,Oe._sQbufferSize-Oe._sQlen),We=0;We>8,F[Ae+3]=Ce,F[Ae+4]=ue>>8,F[Ae+5]=ue,F[Ae+6]=1,F[Ae+7]=0,F[Ae+8]=N>>24,F[Ae+9]=N>>16,F[Ae+10]=N>>8,F[Ae+11]=N,F[Ae+12]=0,F[Ae+13]=0,F[Ae+14]=0,F[Ae+15]=0,F[Ae+16]=Ce>>8,F[Ae+17]=Ce,F[Ae+18]=ue>>8,F[Ae+19]=ue,F[Ae+20]=te>>24,F[Ae+21]=te>>16,F[Ae+22]=te>>8,F[Ae+23]=te,Oe._sQlen+=24,Oe.flush()},clientFence:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen;N[te]=248,N[te+1]=0,N[te+2]=0,N[te+3]=0,N[te+4]=Ce>>24,N[te+5]=Ce>>16,N[te+6]=Ce>>8,N[te+7]=Ce;var F=ue.length;N[te+8]=F;for(var Ae=0;Ae>8,Ae[tt+3]=ue,Ae[tt+4]=N>>8,Ae[tt+5]=N,Ae[tt+6]=te>>8,Ae[tt+7]=te,Ae[tt+8]=F>>8,Ae[tt+9]=F,Oe._sQlen+=10,Oe.flush()},pixelFormat:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen,F;Ce>16?F=32:Ce>8?F=16:F=8;var Ae=Math.floor(Ce/3);N[te]=0,N[te+1]=0,N[te+2]=0,N[te+3]=0,N[te+4]=F,N[te+5]=Ce,N[te+6]=0,N[te+7]=ue?1:0,N[te+8]=0,N[te+9]=(1<>8,ue[N+3]=Ce.length;for(var te=N+4,F=0;F>24,ue[te+1]=Ae>>16,ue[te+2]=Ae>>8,ue[te+3]=Ae,te+=4}Oe._sQlen+=te-N,Oe.flush()},fbUpdateRequest:function(Oe,Ce,ue,N,te,F){var Ae=Oe._sQ,tt=Oe._sQlen;typeof ue=="undefined"&&(ue=0),typeof N=="undefined"&&(N=0),Ae[tt]=3,Ae[tt+1]=Ce?1:0,Ae[tt+2]=ue>>8&255,Ae[tt+3]=ue&255,Ae[tt+4]=N>>8&255,Ae[tt+5]=N&255,Ae[tt+6]=te>>8&255,Ae[tt+7]=te&255,Ae[tt+8]=F>>8&255,Ae[tt+9]=F&255,Oe._sQlen+=10,Oe.flush()},xvpOp:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen;N[te]=250,N[te+1]=0,N[te+2]=Ce,N[te+3]=ue,Oe._sQlen+=4,Oe.flush()}},Ve.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1j5w":function(Re,I,h){"use strict";h.d(I,"d",function(){return ue}),h.d(I,"b",function(){return at}),h.d(I,"c",function(){return Me}),h.d(I,"a",function(){return q});var S=h("VTBJ"),f=h("1OyB"),k=h("vuIU"),m=h("JX7q"),_=h("Ji7U"),r=h("LK+K"),p=h("q1tI"),d=h("I8Z2"),c=h("BGR+"),o=h("wx14"),i=h("rePB"),s=h("4IlW"),a=h("2GS6"),n=h("Gytx"),t=h.n(n),e=h("TSYQ"),u=h.n(e),l=h("U8pU"),g=h("ODXe"),C=/iPhone/i,x=/iPod/i,y=/iPad/i,T=/\bAndroid(?:.+)Mobile\b/i,A=/Android/i,E=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,v=/Windows Phone/i,O=/\bWindows(?:.+)ARM\b/i,D=/BlackBerry/i,W=/BB10/i,Q=/Opera Mini/i,j=/\b(CriOS|Chrome)(?:.+)Mobile/i,Z=/Mobile(?:.+)Firefox\b/i;function Y(Se,Ge){return Se.test(Ge)}function w(Se){var Ge=Se||(typeof navigator!="undefined"?navigator.userAgent:""),Ye=Ge.split("[FBAN");if(typeof Ye[1]!="undefined"){var Te=Ye,$=Object(g.a)(Te,1);Ge=$[0]}if(Ye=Ge.split("Twitter"),typeof Ye[1]!="undefined"){var pe=Ye,qe=Object(g.a)(pe,1);Ge=qe[0]}var Xe={apple:{phone:Y(C,Ge)&&!Y(v,Ge),ipod:Y(x,Ge),tablet:!Y(C,Ge)&&Y(y,Ge)&&!Y(v,Ge),device:(Y(C,Ge)||Y(x,Ge)||Y(y,Ge))&&!Y(v,Ge)},amazon:{phone:Y(E,Ge),tablet:!Y(E,Ge)&&Y(b,Ge),device:Y(E,Ge)||Y(b,Ge)},android:{phone:!Y(v,Ge)&&Y(E,Ge)||!Y(v,Ge)&&Y(T,Ge),tablet:!Y(v,Ge)&&!Y(E,Ge)&&!Y(T,Ge)&&(Y(b,Ge)||Y(A,Ge)),device:!Y(v,Ge)&&(Y(E,Ge)||Y(b,Ge)||Y(T,Ge)||Y(A,Ge))||Y(/\bokhttp\b/i,Ge)},windows:{phone:Y(v,Ge),tablet:Y(O,Ge),device:Y(v,Ge)||Y(O,Ge)},other:{blackberry:Y(D,Ge),blackberry10:Y(W,Ge),opera:Y(Q,Ge),firefox:Y(Z,Ge),chrome:Y(j,Ge),device:Y(D,Ge)||Y(W,Ge)||Y(Q,Ge)||Y(Z,Ge)||Y(j,Ge)},any:null,phone:null,tablet:null};return Xe.any=Xe.apple.device||Xe.android.device||Xe.windows.device||Xe.other.device,Xe.phone=Xe.apple.phone||Xe.android.phone||Xe.windows.phone,Xe.tablet=Xe.apple.tablet||Xe.android.tablet||Xe.windows.tablet,Xe}var P=Object(S.a)(Object(S.a)({},w()),{},{isMobile:w}),L=P;function K(){}function M(Se,Ge,Ye){var Te=Ge||"";return Se.key||"".concat(Te,"item_").concat(Ye)}function H(Se){return"".concat(Se,"-menu-")}function ae(Se,Ge){var Ye=-1;p.Children.forEach(Se,function(Te){Ye+=1,Te&&Te.type&&Te.type.isMenuItemGroup?p.Children.forEach(Te.props.children,function($){Ye+=1,Ge($,Ye)}):Ge(Te,Ye)})}function ve(Se,Ge,Ye){if(!Se||Ye.find)return;p.Children.forEach(Se,function(Te){if(Te){var $=Te.type;if(!$||!($.isSubMenu||$.isMenuItem||$.isMenuItemGroup))return;Ge.indexOf(Te.key)!==-1?Ye.find=!0:Te.props.children&&ve(Te.props.children,Ge,Ye)}})}var de=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],be=function(Ge){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te=Ge&&typeof Ge.getBoundingClientRect=="function"&&Ge.getBoundingClientRect().width;if(Te){if(Ye){var $=getComputedStyle(Ge),pe=$.marginLeft,qe=$.marginRight;Te+=+pe.replace("px","")+ +qe.replace("px","")}Te=+Te.toFixed(6)}return Te||0},z=function(Ge,Ye,Te){Ge&&Object(l.a)(Ge.style)==="object"&&(Ge.style[Ye]=Te)},ne=function(){return L.any},fe=h("KQm4"),ie=h("Ff2n"),oe=h("i8i4"),U=h("bdgK"),ee=h("uciX"),J=h("8XRh"),le={adjustX:1,adjustY:1},Pe={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},Qe={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},$e=Pe,et=0,Ve={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ke=function(Ge,Ye,Te){var $=H(Ye),pe=Ge.getState();Ge.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},pe.defaultActiveFirst),{},Object(i.a)({},$,Te))})},Oe=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(Te){var $;Object(f.a)(this,Ye),$=Ge.call(this,Te),$.onDestroy=function(ze){$.props.onDestroy(ze)},$.onKeyDown=function(ze){var it=ze.keyCode,ct=$.menuInstance,vt=$.props,pt=vt.isOpen,Rt=vt.store;if(it===s.a.ENTER)return $.onTitleClick(ze),ke(Rt,$.props.eventKey,!0),!0;if(it===s.a.RIGHT)return pt?ct.onKeyDown(ze):($.triggerOpenChange(!0),ke(Rt,$.props.eventKey,!0)),!0;if(it===s.a.LEFT){var Bt;if(pt)Bt=ct.onKeyDown(ze);else return;return Bt||($.triggerOpenChange(!1),Bt=!0),Bt}return pt&&(it===s.a.UP||it===s.a.DOWN)?ct.onKeyDown(ze):void 0},$.onOpenChange=function(ze){$.props.onOpenChange(ze)},$.onPopupVisibleChange=function(ze){$.triggerOpenChange(ze,ze?"mouseenter":"mouseleave")},$.onMouseEnter=function(ze){var it=$.props,ct=it.eventKey,vt=it.onMouseEnter,pt=it.store;ke(pt,$.props.eventKey,!1),vt({key:ct,domEvent:ze})},$.onMouseLeave=function(ze){var it=$.props,ct=it.parentMenu,vt=it.eventKey,pt=it.onMouseLeave;ct.subMenuInstance=Object(m.a)($),pt({key:vt,domEvent:ze})},$.onTitleMouseEnter=function(ze){var it=$.props,ct=it.eventKey,vt=it.onItemHover,pt=it.onTitleMouseEnter;vt({key:ct,hover:!0}),pt({key:ct,domEvent:ze})},$.onTitleMouseLeave=function(ze){var it=$.props,ct=it.parentMenu,vt=it.eventKey,pt=it.onItemHover,Rt=it.onTitleMouseLeave;ct.subMenuInstance=Object(m.a)($),pt({key:vt,hover:!1}),Rt({key:vt,domEvent:ze})},$.onTitleClick=function(ze){var it=Object(m.a)($),ct=it.props;if(ct.onTitleClick({key:ct.eventKey,domEvent:ze}),ct.triggerSubMenuAction==="hover")return;$.triggerOpenChange(!ct.isOpen,"click"),ke(ct.store,$.props.eventKey,!1)},$.onSubMenuClick=function(ze){typeof $.props.onClick=="function"&&$.props.onClick($.addKeyPath(ze))},$.onSelect=function(ze){$.props.onSelect(ze)},$.onDeselect=function(ze){$.props.onDeselect(ze)},$.getPrefixCls=function(){return"".concat($.props.rootPrefixCls,"-submenu")},$.getActiveClassName=function(){return"".concat($.getPrefixCls(),"-active")},$.getDisabledClassName=function(){return"".concat($.getPrefixCls(),"-disabled")},$.getSelectedClassName=function(){return"".concat($.getPrefixCls(),"-selected")},$.getOpenClassName=function(){return"".concat($.props.rootPrefixCls,"-submenu-open")},$.saveMenuInstance=function(ze){$.menuInstance=ze},$.addKeyPath=function(ze){return Object(S.a)(Object(S.a)({},ze),{},{keyPath:(ze.keyPath||[]).concat($.props.eventKey)})},$.triggerOpenChange=function(ze,it){var ct=$.props.eventKey,vt=function(){$.onOpenChange({key:ct,item:Object(m.a)($),trigger:it,open:ze})};it==="mouseenter"?$.mouseenterTimeout=setTimeout(function(){vt()},0):vt()},$.isChildrenSelected=function(){var ze={find:!1};return ve($.props.children,$.props.selectedKeys,ze),ze.find},$.isOpen=function(){return $.props.openKeys.indexOf($.props.eventKey)!==-1},$.adjustWidth=function(){if(!$.subMenuTitle||!$.menuInstance)return;var ze=oe.findDOMNode($.menuInstance);if(ze.offsetWidth>=$.subMenuTitle.offsetWidth)return;ze.style.minWidth="".concat($.subMenuTitle.offsetWidth,"px")},$.saveSubMenuTitle=function(ze){$.subMenuTitle=ze},$.getBaseProps=function(){var ze=Object(m.a)($),it=ze.props;return{mode:it.mode==="horizontal"?"vertical":it.mode,visible:$.props.isOpen,level:it.level+1,inlineIndent:it.inlineIndent,focusable:!1,onClick:$.onSubMenuClick,onSelect:$.onSelect,onDeselect:$.onDeselect,onDestroy:$.onDestroy,selectedKeys:it.selectedKeys,eventKey:"".concat(it.eventKey,"-menu-"),openKeys:it.openKeys,motion:it.motion,onOpenChange:$.onOpenChange,subMenuOpenDelay:it.subMenuOpenDelay,parentMenu:Object(m.a)($),subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,triggerSubMenuAction:it.triggerSubMenuAction,builtinPlacements:it.builtinPlacements,defaultActiveFirst:it.store.getState().defaultActiveFirst[H(it.eventKey)],multiple:it.multiple,prefixCls:it.rootPrefixCls,id:$.internalMenuId,manualRef:$.saveMenuInstance,itemIcon:it.itemIcon,expandIcon:it.expandIcon,direction:it.direction}},$.getMotion=function(ze,it){var ct=Object(m.a)($),vt=ct.haveRendered,pt=$.props,Rt=pt.motion,Bt=pt.rootPrefixCls,Xt=Object(S.a)(Object(S.a)({},Rt),{},{leavedClassName:"".concat(Bt,"-hidden"),removeOnLeave:!1,motionAppear:vt||!it||ze!=="inline"});return Xt};var pe=Te.store,qe=Te.eventKey,Xe=pe.getState(),ot=Xe.defaultActiveFirst;$.isRootMenu=!1;var st=!1;return ot&&(st=ot[qe]),ke(pe,qe,st),$}return Object(k.a)(Ye,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var $=this,pe=this.props,qe=pe.mode,Xe=pe.parentMenu,ot=pe.manualRef;if(ot&&ot(this),qe!=="horizontal"||!Xe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return $.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var $=this.props,pe=$.onDestroy,qe=$.eventKey;pe&&pe(qe),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function($){var pe=this,qe=this.getBaseProps(),Xe=this.getMotion(qe.mode,qe.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||qe.visible||qe.forceSubMenuRender,!this.haveOpened)return p.createElement("div",null);var ot=qe.direction;return p.createElement(J.default,Object.assign({visible:qe.visible},Xe),function(st){var ze=st.className,it=st.style,ct=u()("".concat(qe.prefixCls,"-sub"),ze,Object(i.a)({},"".concat(qe.prefixCls,"-rtl"),ot==="rtl"));return p.createElement(Le,Object.assign({},qe,{id:pe.internalMenuId,className:ct,style:it}),$)})}},{key:"render",value:function(){var $,pe=Object(S.a)({},this.props),qe=pe.isOpen,Xe=this.getPrefixCls(),ot=pe.mode==="inline",st=u()(Xe,"".concat(Xe,"-").concat(pe.mode),($={},Object(i.a)($,pe.className,!!pe.className),Object(i.a)($,this.getOpenClassName(),qe),Object(i.a)($,this.getActiveClassName(),pe.active||qe&&!ot),Object(i.a)($,this.getDisabledClassName(),pe.disabled),Object(i.a)($,this.getSelectedClassName(),this.isChildrenSelected()),$));this.internalMenuId||(pe.eventKey?this.internalMenuId="".concat(pe.eventKey,"$Menu"):(et+=1,this.internalMenuId="$__$".concat(et,"$Menu")));var ze={},it={},ct={};pe.disabled||(ze={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},it={onClick:this.onTitleClick},ct={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var vt={},pt=pe.direction;ot&&(pt==="rtl"?vt.paddingRight=pe.inlineIndent*pe.level:vt.paddingLeft=pe.inlineIndent*pe.level);var Rt={};this.props.isOpen&&(Rt={"aria-owns":this.internalMenuId});var Bt=null;pe.mode!=="horizontal"&&(Bt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Bt=p.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var Xt=p.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:vt,className:"".concat(Xe,"-title"),role:"button"},ct,it,{"aria-expanded":qe},Rt,{"aria-haspopup":"true",title:typeof pe.title=="string"?pe.title:void 0}),pe.title,Bt||p.createElement("i",{className:"".concat(Xe,"-arrow")})),Ft=this.renderChildren(pe.children),Qt=pe.parentMenu.isRootMenu?pe.parentMenu.props.getPopupContainer:function(qn){return qn.parentNode},pn=Ve[pe.mode],Pn=pe.popupOffset?{offset:pe.popupOffset}:{},na=pe.mode==="inline"?"":pe.popupClassName;na+=pt==="rtl"?" ".concat(Xe,"-rtl"):"";var Ot=pe.disabled,dn=pe.triggerSubMenuAction,Rn=pe.subMenuOpenDelay,Yn=pe.forceSubMenuRender,On=pe.subMenuCloseDelay,Wn=pe.builtinPlacements;de.forEach(function(qn){return delete pe[qn]}),delete pe.onClick;var jt=pt==="rtl"?Object.assign({},Qe,Wn):Object.assign({},Pe,Wn);return delete pe.direction,p.createElement("li",Object.assign({},pe,ze,{className:st,role:"menuitem"}),ot&&Xt,ot&&Ft,!ot&&p.createElement(ee.a,{prefixCls:Xe,popupClassName:u()("".concat(Xe,"-popup"),na),getPopupContainer:Qt,builtinPlacements:jt,popupPlacement:pn,popupVisible:qe,popupAlign:Pn,popup:Ft,action:Ot?[]:[dn],mouseEnterDelay:Rn,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Yn},Xt))}}]),Ye}(p.Component);Oe.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var Ce=Object(d.b)(function(Se,Ge){var Ye=Se.openKeys,Te=Se.activeKey,$=Se.selectedKeys,pe=Ge.eventKey,qe=Ge.subMenuKey;return{isOpen:Ye.indexOf(pe)>-1,active:Te[qe]===pe,selectedKeys:$}})(Oe);Ce.isSubMenu=!0;var ue=Ce,N="menuitem-overflowed",te=.5,F=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(){var Te;return Object(f.a)(this,Ye),Te=Ge.apply(this,arguments),Te.resizeObserver=null,Te.mutationObserver=null,Te.originalTotalWidth=0,Te.overflowedItems=[],Te.menuItemSizes=[],Te.cancelFrameId=null,Te.state={lastVisibleIndex:void 0},Te.getMenuItemNodes=function(){var $=Te.props.prefixCls,pe=oe.findDOMNode(Object(m.a)(Te));return pe?[].slice.call(pe.children).filter(function(qe){return qe.className.split(" ").indexOf("".concat($,"-overflowed-submenu"))<0}):[]},Te.getOverflowedSubMenuItem=function($,pe,qe){var Xe=Te.props,ot=Xe.overflowedIndicator,st=Xe.level,ze=Xe.mode,it=Xe.prefixCls,ct=Xe.theme;if(st!==1||ze!=="horizontal")return null;var vt=Te.props.children[0],pt=vt.props,Rt=pt.children,Bt=pt.title,Xt=pt.style,Ft=Object(ie.a)(pt,["children","title","style"]),Qt=Object(S.a)({},Xt),pn="".concat($,"-overflowed-indicator"),Pn="".concat($,"-overflowed-indicator");pe.length===0&&qe!==!0?Qt=Object(S.a)(Object(S.a)({},Qt),{},{display:"none"}):qe&&(Qt=Object(S.a)(Object(S.a)({},Qt),{},{visibility:"hidden",position:"absolute"}),pn="".concat(pn,"-placeholder"),Pn="".concat(Pn,"-placeholder"));var na=ct?"".concat(it,"-").concat(ct):"",Ot={};return de.forEach(function(dn){Ft[dn]!==void 0&&(Ot[dn]=Ft[dn])}),p.createElement(ue,Object.assign({title:ot,className:"".concat(it,"-overflowed-submenu"),popupClassName:na},Ot,{key:pn,eventKey:Pn,disabled:!1,style:Qt}),pe)},Te.setChildrenWidthAndResize=function(){if(Te.props.mode!=="horizontal")return;var $=oe.findDOMNode(Object(m.a)(Te));if(!$)return;var pe=$.children;if(!pe||pe.length===0)return;var qe=$.children[pe.length-1];z(qe,"display","inline-block");var Xe=Te.getMenuItemNodes(),ot=Xe.filter(function(st){return st.className.split(" ").indexOf(N)>=0});ot.forEach(function(st){z(st,"display","inline-block")}),Te.menuItemSizes=Xe.map(function(st){return be(st,!0)}),ot.forEach(function(st){z(st,"display","none")}),Te.overflowedIndicatorWidth=be($.children[$.children.length-1],!0),Te.originalTotalWidth=Te.menuItemSizes.reduce(function(st,ze){return st+ze},0),Te.handleResize(),z(qe,"display","none")},Te.handleResize=function(){if(Te.props.mode!=="horizontal")return;var $=oe.findDOMNode(Object(m.a)(Te));if(!$)return;var pe=be($);Te.overflowedItems=[];var qe=0,Xe;Te.originalTotalWidth>pe+te&&(Xe=-1,Te.menuItemSizes.forEach(function(ot){qe+=ot,qe+Te.overflowedIndicatorWidth<=pe&&(Xe+=1)})),Te.setState({lastVisibleIndex:Xe})},Te}return Object(k.a)(Ye,[{key:"componentDidMount",value:function(){var $=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var pe=oe.findDOMNode(this);if(!pe)return;this.resizeObserver=new U.default(function(qe){qe.forEach(function(){var Xe=$.cancelFrameId;cancelAnimationFrame(Xe),$.cancelFrameId=requestAnimationFrame($.setChildrenWidthAndResize)})}),[].slice.call(pe.children).concat(pe).forEach(function(qe){$.resizeObserver.observe(qe)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){$.resizeObserver.disconnect(),[].slice.call(pe.children).concat(pe).forEach(function(qe){$.resizeObserver.observe(qe)}),$.setChildrenWidthAndResize()}),this.mutationObserver.observe(pe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function($){var pe=this,qe=this.state.lastVisibleIndex;return($||[]).reduce(function(Xe,ot,st){var ze=ot;if(pe.props.mode==="horizontal"){var it=pe.getOverflowedSubMenuItem(ot.props.eventKey,[]);qe!==void 0&&pe.props.className.indexOf("".concat(pe.props.prefixCls,"-root"))!==-1&&(st>qe&&(ze=p.cloneElement(ot,{style:{display:"none"},eventKey:"".concat(ot.props.eventKey,"-hidden"),className:"".concat(N)})),st===qe+1&&(pe.overflowedItems=$.slice(qe+1).map(function(vt){return p.cloneElement(vt,{key:vt.props.eventKey,mode:"vertical-left"})}),it=pe.getOverflowedSubMenuItem(ot.props.eventKey,pe.overflowedItems)));var ct=[].concat(Object(fe.a)(Xe),[it,ze]);return st===$.length-1&&ct.push(pe.getOverflowedSubMenuItem(ot.props.eventKey,[],!0)),ct}return[].concat(Object(fe.a)(Xe),[ze])},[])}},{key:"render",value:function(){var $=this.props,pe=$.visible,qe=$.prefixCls,Xe=$.overflowedIndicator,ot=$.mode,st=$.level,ze=$.tag,it=$.children,ct=$.theme,vt=Object(ie.a)($,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),pt=ze;return p.createElement(pt,Object.assign({},vt),this.renderChildren(it))}}]),Ye}(p.Component);F.defaultProps={tag:"div",className:""};var Ae=F;function tt(Se){return Se.length?Se.every(function(Ge){return!!Ge.props.disabled}):!0}function he(Se,Ge,Ye){var Te=Se.getState();Se.setState({activeKey:Object(S.a)(Object(S.a)({},Te.activeKey),{},Object(i.a)({},Ge,Ye))})}function We(Se){return Se.eventKey||"0-menu-"}function rt(Se,Ge){var Ye=Ge,Te=Se.children,$=Se.eventKey;if(Ye){var pe;if(ae(Te,function(qe,Xe){qe&&qe.props&&!qe.props.disabled&&Ye===M(qe,$,Xe)&&(pe=!0)}),pe)return Ye}return Ye=null,Se.defaultActiveFirst&&ae(Te,function(qe,Xe){!Ye&&qe&&!qe.props.disabled&&(Ye=M(qe,$,Xe))}),Ye}function V(Se){if(Se){var Ge=this.instanceArray.indexOf(Se);Ge!==-1?this.instanceArray[Ge]=Se:this.instanceArray.push(Se)}}var Be=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(Te){var $;return Object(f.a)(this,Ye),$=Ge.call(this,Te),$.onKeyDown=function(pe,qe){var Xe=pe.keyCode,ot;if($.getFlatInstanceArray().forEach(function(ze){ze&&ze.props.active&&ze.onKeyDown&&(ot=ze.onKeyDown(pe))}),ot)return 1;var st=null;return(Xe===s.a.UP||Xe===s.a.DOWN)&&(st=$.step(Xe===s.a.UP?-1:1)),st?(pe.preventDefault(),he($.props.store,We($.props),st.props.eventKey),typeof qe=="function"&&qe(st),1):void 0},$.onItemHover=function(pe){var qe=pe.key,Xe=pe.hover;he($.props.store,We($.props),Xe?qe:null)},$.onDeselect=function(pe){$.props.onDeselect(pe)},$.onSelect=function(pe){$.props.onSelect(pe)},$.onClick=function(pe){$.props.onClick(pe)},$.onOpenChange=function(pe){$.props.onOpenChange(pe)},$.onDestroy=function(pe){$.props.onDestroy(pe)},$.getFlatInstanceArray=function(){return $.instanceArray},$.step=function(pe){var qe=$.getFlatInstanceArray(),Xe=$.props.store.getState().activeKey[We($.props)],ot=qe.length;if(!ot)return null;pe<0&&(qe=qe.concat().reverse());var st=-1;if(qe.every(function(vt,pt){return vt&&vt.props.eventKey===Xe?(st=pt,!1):!0}),!$.props.defaultActiveFirst&&st!==-1&&tt(qe.slice(st,ot-1)))return;var ze=(st+1)%ot,it=ze;do{var ct=qe[it];if(!ct||ct.props.disabled)it=(it+1)%ot;else return ct}while(it!==ze);return null},$.renderCommonMenuItem=function(pe,qe,Xe){var ot=$.props.store.getState(),st=Object(m.a)($),ze=st.props,it=M(pe,ze.eventKey,qe),ct=pe.props;if(!ct||typeof pe.type=="string")return pe;var vt=it===ot.activeKey,pt=Object(S.a)(Object(S.a)({mode:ct.mode||ze.mode,level:ze.level,inlineIndent:ze.inlineIndent,renderMenuItem:$.renderMenuItem,rootPrefixCls:ze.prefixCls,index:qe,parentMenu:ze.parentMenu,manualRef:ct.disabled?void 0:Object(a.a)(pe.ref,V.bind(Object(m.a)($))),eventKey:it,active:!ct.disabled&&vt,multiple:ze.multiple,onClick:function(Bt){(ct.onClick||K)(Bt),$.onClick(Bt)},onItemHover:$.onItemHover,motion:ze.motion,subMenuOpenDelay:ze.subMenuOpenDelay,subMenuCloseDelay:ze.subMenuCloseDelay,forceSubMenuRender:ze.forceSubMenuRender,onOpenChange:$.onOpenChange,onDeselect:$.onDeselect,onSelect:$.onSelect,builtinPlacements:ze.builtinPlacements,itemIcon:ct.itemIcon||$.props.itemIcon,expandIcon:ct.expandIcon||$.props.expandIcon},Xe),{},{direction:ze.direction});return(ze.mode==="inline"||ne())&&(pt.triggerSubMenuAction="click"),p.cloneElement(pe,pt)},$.renderMenuItem=function(pe,qe,Xe){if(!pe)return null;var ot=$.props.store.getState(),st={openKeys:ot.openKeys,selectedKeys:ot.selectedKeys,triggerSubMenuAction:$.props.triggerSubMenuAction,subMenuKey:Xe};return $.renderCommonMenuItem(pe,qe,st)},Te.store.setState({activeKey:Object(S.a)(Object(S.a)({},Te.store.getState().activeKey),{},Object(i.a)({},Te.eventKey,rt(Te,Te.activeKey)))}),$.instanceArray=[],$}return Object(k.a)(Ye,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function($){return this.props.visible||$.visible||this.props.className!==$.className||!t()(this.props.style,$.style)}},{key:"componentDidUpdate",value:function($){var pe=this.props,qe="activeKey"in pe?pe.activeKey:pe.store.getState().activeKey[We(pe)],Xe=rt(pe,qe);if(Xe!==qe)he(pe.store,We(pe),Xe);else if("activeKey"in $){var ot=rt($,$.activeKey);Xe!==ot&&he(pe.store,We(pe),Xe)}}},{key:"render",value:function(){var $=this,pe=Object(o.a)({},this.props);this.instanceArray=[];var qe=u()(pe.prefixCls,pe.className,"".concat(pe.prefixCls,"-").concat(pe.mode)),Xe={className:qe,role:pe.role||"menu"};pe.id&&(Xe.id=pe.id),pe.focusable&&(Xe.tabIndex=0,Xe.onKeyDown=this.onKeyDown);var ot=pe.prefixCls,st=pe.eventKey,ze=pe.visible,it=pe.level,ct=pe.mode,vt=pe.overflowedIndicator,pt=pe.theme;return de.forEach(function(Rt){return delete pe[Rt]}),delete pe.onClick,p.createElement(Ae,Object.assign({},pe,{prefixCls:ot,mode:ct,tag:"ul",level:it,theme:pt,visible:ze,overflowedIndicator:vt},Xe),p.Children.map(pe.children,function(Rt,Bt){return $.renderMenuItem(Rt,Bt,st||"0-menu-")}))}}]),Ye}(p.Component);Be.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var xe=Object(d.b)()(Be),Le=xe,De=h("Kwbf");function Ne(Se,Ge,Ye){var Te=Se.prefixCls,$=Se.motion,pe=Se.defaultMotions,qe=pe===void 0?{}:pe,Xe=Se.openAnimation,ot=Se.openTransitionName,st=Ge.switchingModeFromInline;if($)return $;if(Object(l.a)(Xe)==="object"&&Xe)Object(De.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Xe=="string")return{motionName:"".concat(Te,"-open-").concat(Xe)};if(ot)return{motionName:ot};var ze=qe[Ye];return ze||(st?null:qe.other)}var se=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(Te){var $;Object(f.a)(this,Ye),$=Ge.call(this,Te),$.inlineOpenKeys=[],$.onSelect=function(Xe){var ot=Object(m.a)($),st=ot.props;if(st.selectable){var ze=$.store.getState(),it=ze.selectedKeys,ct=Xe.key;st.multiple?it=it.concat([ct]):it=[ct],"selectedKeys"in st||$.store.setState({selectedKeys:it}),st.onSelect(Object(S.a)(Object(S.a)({},Xe),{},{selectedKeys:it}))}},$.onClick=function(Xe){var ot=$.getRealMenuMode(),st=Object(m.a)($),ze=st.store,it=st.props.onOpenChange;ot!=="inline"&&!("openKeys"in $.props)&&(ze.setState({openKeys:[]}),it([])),$.props.onClick(Xe)},$.onKeyDown=function(Xe,ot){$.innerMenu.getWrappedInstance().onKeyDown(Xe,ot)},$.onOpenChange=function(Xe){var ot=Object(m.a)($),st=ot.props,ze=$.store.getState().openKeys.concat(),it=!1,ct=function(pt){var Rt=!1;if(pt.open)Rt=ze.indexOf(pt.key)===-1,Rt&&ze.push(pt.key);else{var Bt=ze.indexOf(pt.key);Rt=Bt!==-1,Rt&&ze.splice(Bt,1)}it=it||Rt};Array.isArray(Xe)?Xe.forEach(ct):ct(Xe),it&&("openKeys"in $.props||$.store.setState({openKeys:ze}),st.onOpenChange(ze))},$.onDeselect=function(Xe){var ot=Object(m.a)($),st=ot.props;if(st.selectable){var ze=$.store.getState().selectedKeys.concat(),it=Xe.key,ct=ze.indexOf(it);ct!==-1&&ze.splice(ct,1),"selectedKeys"in st||$.store.setState({selectedKeys:ze}),st.onDeselect(Object(S.a)(Object(S.a)({},Xe),{},{selectedKeys:ze}))}},$.onMouseEnter=function(Xe){$.restoreModeVerticalFromInline();var ot=$.props.onMouseEnter;ot&&ot(Xe)},$.onTransitionEnd=function(Xe){var ot=Xe.propertyName==="width"&&Xe.target===Xe.currentTarget,st=Xe.target.className,ze=Object.prototype.toString.call(st)==="[object SVGAnimatedString]"?st.animVal:st,it=Xe.propertyName==="font-size"&&ze.indexOf("anticon")>=0;(ot||it)&&$.restoreModeVerticalFromInline()},$.setInnerMenu=function(Xe){$.innerMenu=Xe},$.isRootMenu=!0;var pe=Te.defaultSelectedKeys,qe=Te.defaultOpenKeys;return"selectedKeys"in Te&&(pe=Te.selectedKeys||[]),"openKeys"in Te&&(qe=Te.openKeys||[]),$.store=Object(d.c)({selectedKeys:pe,openKeys:qe,activeKey:{"0-menu-":rt(Te,Te.activeKey)}}),$.state={switchingModeFromInline:!1},$}return Object(k.a)(Ye,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function($){this.updateOpentKeysWhenSwitchMode($),this.updateMiniStore();var pe=this.props,qe=pe.siderCollapsed,Xe=pe.inlineCollapsed,ot=pe.onOpenChange;(!$.inlineCollapsed&&Xe||!$.siderCollapsed&&qe)&&ot([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function($){var pe=this.props,qe=this.store,Xe=this.inlineOpenKeys,ot=qe.getState(),st={};$.mode==="inline"&&pe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in pe||((pe.inlineCollapsed&&!$.inlineCollapsed||pe.siderCollapsed&&!$.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=ot.openKeys.concat(),st.openKeys=[]),(!pe.inlineCollapsed&&$.inlineCollapsed||!pe.siderCollapsed&&$.siderCollapsed)&&(st.openKeys=Xe,this.inlineOpenKeys=[])),Object.keys(st).length&&qe.setState(st)}},{key:"updateMenuDisplay",value:function(){var $=this.props.collapsedWidth,pe=this.store,qe=this.prevOpenKeys,Xe=this.getInlineCollapsed()&&($===0||$==="0"||$==="0px");Xe?(this.prevOpenKeys=pe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):qe&&(this.store.setState({openKeys:qe}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var $=this.props.mode,pe=this.state.switchingModeFromInline,qe=this.getInlineCollapsed();return pe&&qe?"inline":qe?"vertical":$}},{key:"getInlineCollapsed",value:function(){var $=this.props,pe=$.inlineCollapsed,qe=$.siderCollapsed;return qe!==void 0?qe:pe}},{key:"restoreModeVerticalFromInline",value:function(){var $=this.state.switchingModeFromInline;$&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var $=Object(S.a)({},Object(c.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),pe=this.getRealMenuMode();return $.className+=" ".concat($.prefixCls,"-root"),$.direction==="rtl"&&($.className+=" ".concat($.prefixCls,"-rtl")),$=Object(S.a)(Object(S.a)({},$),{},{mode:pe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ne(this.props,this.state,pe)}),delete $.openAnimation,delete $.openTransitionName,p.createElement(d.a,{store:this.store},p.createElement(Le,Object.assign({},$,{ref:this.setInnerMenu}),this.props.children))}}]),Ye}(p.Component);se.defaultProps={selectable:!0,onClick:K,onSelect:K,onOpenChange:K,onDeselect:K,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:p.createElement("span",null,"\xB7\xB7\xB7")};var we=se,B=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(){var Te;return Object(f.a)(this,Ye),Te=Ge.apply(this,arguments),Te.onKeyDown=function($){var pe=$.keyCode;return pe===s.a.ENTER?(Te.onClick($),!0):void 0},Te.onMouseLeave=function($){var pe=Te.props,qe=pe.eventKey,Xe=pe.onItemHover,ot=pe.onMouseLeave;Xe({key:qe,hover:!1}),ot({key:qe,domEvent:$})},Te.onMouseEnter=function($){var pe=Te.props,qe=pe.eventKey,Xe=pe.onItemHover,ot=pe.onMouseEnter;Xe({key:qe,hover:!0}),ot({key:qe,domEvent:$})},Te.onClick=function($){var pe=Te.props,qe=pe.eventKey,Xe=pe.multiple,ot=pe.onClick,st=pe.onSelect,ze=pe.onDeselect,it=pe.isSelected,ct={key:qe,keyPath:[qe],item:Object(m.a)(Te),domEvent:$};ot(ct),Xe?it?ze(ct):st(ct):it||st(ct)},Te.saveNode=function($){Te.node=$},Te}return Object(k.a)(Ye,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var $=this.props;$.onDestroy&&$.onDestroy($.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var $,pe=Object(S.a)({},this.props),qe=u()(this.getPrefixCls(),pe.className,($={},Object(i.a)($,this.getActiveClassName(),!pe.disabled&&pe.active),Object(i.a)($,this.getSelectedClassName(),pe.isSelected),Object(i.a)($,this.getDisabledClassName(),pe.disabled),$)),Xe=Object(S.a)(Object(S.a)({},pe.attribute),{},{title:typeof pe.title=="string"?pe.title:void 0,className:qe,role:pe.role||"menuitem","aria-disabled":pe.disabled});pe.role==="option"?Xe=Object(S.a)(Object(S.a)({},Xe),{},{role:"option","aria-selected":pe.isSelected}):(pe.role===null||pe.role==="none")&&(Xe.role="none");var ot={onClick:pe.disabled?null:this.onClick,onMouseLeave:pe.disabled?null:this.onMouseLeave,onMouseEnter:pe.disabled?null:this.onMouseEnter},st=Object(S.a)({},pe.style);pe.mode==="inline"&&(pe.direction==="rtl"?st.paddingRight=pe.inlineIndent*pe.level:st.paddingLeft=pe.inlineIndent*pe.level),de.forEach(function(it){return delete pe[it]}),delete pe.direction;var ze=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ze=p.createElement(this.props.itemIcon,this.props)),p.createElement("li",Object.assign({},Object(c.default)(pe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Xe,ot,{style:st,ref:this.saveNode}),pe.children,ze)}}]),Ye}(p.Component);B.isMenuItem=!0,B.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var He=Object(d.b)(function(Se,Ge){var Ye=Se.activeKey,Te=Se.selectedKeys,$=Ge.eventKey,pe=Ge.subMenuKey;return{active:Ye[pe]===$,isSelected:Te.indexOf($)!==-1}})(B),at=He,R=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(){var Te;return Object(f.a)(this,Ye),Te=Ge.apply(this,arguments),Te.renderInnerMenuItem=function($){var pe=Te.props,qe=pe.renderMenuItem,Xe=pe.index;return qe($,Xe,Te.props.subMenuKey)},Te}return Object(k.a)(Ye,[{key:"render",value:function(){var $=Object(o.a)({},this.props),pe=$.className,qe=pe===void 0?"":pe,Xe=$.rootPrefixCls,ot="".concat(Xe,"-item-group-title"),st="".concat(Xe,"-item-group-list"),ze=$.title,it=$.children;return de.forEach(function(ct){return delete $[ct]}),delete $.onClick,delete $.direction,p.createElement("li",Object.assign({},$,{className:"".concat(qe," ").concat(Xe,"-item-group")}),p.createElement("div",{className:ot,title:typeof ze=="string"?ze:void 0},ze),p.createElement("ul",{className:st},p.Children.map(it,this.renderInnerMenuItem)))}}]),Ye}(p.Component);R.isMenuItemGroup=!0,R.defaultProps={disabled:!0};var Me=R,Ue=function(Ge){var Ye=Ge.className,Te=Ge.rootPrefixCls,$=Ge.style;return p.createElement("li",{className:"".concat(Ye," ").concat(Te,"-item-divider"),style:$})};Ue.defaultProps={disabled:!0,className:"",style:{}};var q=Ue,ye=I.e=we},"1q3G":function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=S;function S(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"34/K":function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;p>0&3)*255/3,x[y*4+1]=(l[g+y]>>2&3)*255/3,x[y*4+2]=(l[g+y]>>4&3)*255/3,x[y*4+4]=0;l=x,g=0}return s.blitImage(p,e,c,u,l,g),i.rQskipBytes(u*t),this._lines-=u,!(this._lines>0)}}]),_}();I.default=m},"3690":function(Re,I,h){"use strict";function S(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(i){return typeof i}:S=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},S(c)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=m(h("Lo0S"));function k(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return k=function(){return c},c}function m(c){if(c&&c.__esModule)return c;if(c===null||S(c)!=="object"&&typeof c!="function")return{default:c};var o=k();if(o&&o.has(c))return o.get(c);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in c)if(Object.prototype.hasOwnProperty.call(c,a)){var n=s?Object.getOwnPropertyDescriptor(c,a):null;n&&(n.get||n.set)?Object.defineProperty(i,a,n):i[a]=c[a]}return i.default=c,o&&o.set(c,i),i}function _(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function r(c,o){for(var i=0;i0;){var l=1;if(t.rQwait("HEXTILE",l))return!1;var g=t.rQ,C=t.rQi,x=g[C];if(x>30)throw new Error("Illegal hextile subencoding (subencoding: "+x+")");var y=this._totalTiles-this._tiles,T=y%this._tilesX,A=Math.floor(y/this._tilesX),E=i+T*16,b=s+A*16,v=Math.min(16,i+a-E),O=Math.min(16,s+n-b);if(x&1)l+=v*O*4;else if(x&2&&(l+=4),x&4&&(l+=4),x&8){if(l++,t.rQwait("HEXTILE",l))return!1;var D=g[C+l-1];x&16?l+=D*(4+2):l+=D*2}if(t.rQwait("HEXTILE",l))return!1;if(C++,x===0)this._lastsubencoding&1?f.Debug(" Ignoring blank after RAW"):e.fillRect(E,b,v,O,this._background);else if(x&1)e.blitImage(E,b,v,O,g,C),C+=l-1;else{if(x&2&&(this._background=[g[C],g[C+1],g[C+2],g[C+3]],C+=4),x&4&&(this._foreground=[g[C],g[C+1],g[C+2],g[C+3]],C+=4),e.startTile(E,b,v,O,this._background),x&8){var W=g[C];C++;for(var Q=0;Q>4,w=Z&15,P=g[C];C++;var L=(P>>4)+1,K=(P&15)+1;e.subTile(Y,w,L,K,j)}}e.finishTile()}t.rQi=C,this._lastsubencoding=x,this._tiles--}return!0}}]),c}();I.default=d},"3MsV":function(Re,I,h){},"3wET":function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"498V":function(Re,I,h){Re.exports=h.p+"static/logo.22b9a281.svg"},"4pCv":function(Re,I,h){"use strict";h.r(I);var S=h("oBTY"),f=h("bbsP"),k=h("/wGt"),m=h("jrin"),_=h("2qtc"),r=h("kLXV"),p=h("miYZ"),d=h("tsqr"),c=h("9og8"),o=h("tJVT"),i=h("PpiC"),s=h("k1fw"),a=h("ozfa"),n=h("MJZm"),t=h("WmNS"),e=h.n(t),u=h("q1tI"),l=h.n(u),g=h("Ty5D"),C=h("9kvl"),x=h("BUUv"),y=h("IxHN"),T=h("M8RZ"),A=h("giR+"),E=h("fyUT"),b=h("5NDa"),v=h("5rEg"),O=h("0Owb"),D=h("+L6B"),W=h("2/Rp"),Q=h("y8nQ"),j=h("Vl3Y"),Z=h("aHsQ"),Y=h("sGsY"),w=h("55Ip"),P=h("6/vW"),L=h("SFBS"),K=h("14J3"),M=h("BMrR"),H=h("jCWc"),ae=h("kPKH"),ve=h("lOMy"),de=h("GIiI"),be=h("P5Jw"),z=h("vS10"),ne=h("RCxd"),fe=h("500L"),ie=h("m3rI"),oe=h("ErOA"),U=h("1vsH"),ee=Object(u.forwardRef)(function(me,Ze){var mt=me.time;console.log("ScreenRecord:",Ze);var ht=Object(u.useRef)(),Ct=Object(u.useState)(),xt=Object(o.a)(Ct,2),Vt=xt[0],St=xt[1],hn=Object(u.useRef)(),gt=2e3,ft=[];Object(u.useImperativeHandle)(Ze,function(){return{startScreenRecord:Ut,downloadFile:wt}});function Ht(An,Dn){return kt.apply(this,arguments)}function kt(){return kt=Object(c.a)(e.a.mark(function An(Dn,Wt){var ma,sn;return e.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return ma=[],wn.next=3,new MediaRecorder(Dn);case 3:sn=wn.sent,sn.ondataavailable=function(bn){ma.push(bn.data)},sn.start(),hn.current=sn,window.recorderRefs=sn,sn.addEventListener("stop",function(bn){var ea=URL.createObjectURL(ma[0],{type:"video/mp4"});Object(U.v)("xxx.webm",ea)});case 9:case"end":return wn.stop()}},An)})),kt.apply(this,arguments)}function wt(){if(!window.recorderRefs){d.b.warn("\u60A8\u8FD8\u6CA1\u6709\u5F00\u542F\u89C6\u9891\u5F55\u5236\uFF0C\u8BF7\u5148\u53BB\u5F55\u5236\u89C6\u9891\u5427\uFF01");return}var An=ht.current.srcObject.getTracks();An.forEach(function(Dn){Dn.stop()}),window.recorderRefs.addEventListener("dataavailable",function(Dn){var Wt=URL.createObjectURL(Dn.data,{type:"video/mp4"});Object(U.v)("\u5C4F\u5E55\u5F55\u5236\u89C6\u9891.webm",Wt)})}function Ut(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then(function(An){return ht.current.srcObject=An,ft.push(An),ht.current.captureStream=ht.current.captureStream||ht.current.mozCaptureStream,new Promise(function(Dn){return ht.current.onplaying=Dn})}).then(function(){return Ht(ht.current.captureStream(),gt)}).then(function(An){}).catch(function(An){An.name==="NotFoundError"?d.b.warn("\u627E\u4E0D\u5230\u6444\u50CF\u5934\u6216\u9EA6\u514B\u98CE\u3002\u65E0\u6CD5\u5F55\u5236."):d.b.warn(An.name)})}return l.a.createElement("div",{style:{position:"absolute",top:"0",zIndex:-1}},l.a.createElement("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:ht}))}),J=ee,le={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Pe=function(me){var Ze=me.className,mt=me.mirror_description,ht=me.git_url,Ct=me.difficulty,xt=me.task_pass,Vt=me.test_set_permission,St=me.onVncAction,hn=me.shixun,gt=me.window_vnc_url,ft=me.linux_vnc,Ht=me.vnc_url,kt=me.unity_3d_routes,wt=me.taskData;console.log(wt);var Ut=Object(g.i)(),An=Object(u.useState)("8082"),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useState)(!1),gn=Object(o.a)(sn,2),wn=gn[0],bn=gn[1],ea=Object(u.useRef)(),Ta=gt?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",Aa=gt?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",Ia=function(){r.a.confirm({title:"\u91CD\u542F\u4E91\u4E3B\u673A",icon:l.a.createElement(ne.a,null),content:"\u60A8\u786E\u5B9A\u8981\u91CD\u542F\u4E91\u4E3B\u673A\u5417\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Zt=Object(c.a)(e.a.mark(function sa(){var Ln;return e.a.wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:return fa.next=2,Object(z.f)({identifier:Ut.taskId});case 2:return Ln=fa.sent,(Ln==null?void 0:Ln.status)===0&&d.b.info("\u91CD\u542F\u6210\u529F"),fa.abrupt("return","");case 5:case"end":return fa.stop()}},sa)}));function kn(){return Zt.apply(this,arguments)}return kn}()})},nr=function(){r.a.info({title:"\u6587\u4EF6\u4E0A\u4F20",icon:null,okText:"\u5173\u95ED",width:600,centered:!0,content:l.a.createElement("div",{className:"pt10"},l.a.createElement(fe.b,{isDragger:!0,maxSize:1024,additionalText:'\u9ED8\u8BA4\u5B58\u653E\u76EE\u5F55\u8DEF\u5F84\u4E3A"'.concat(Ta,'"'),action:"".concat(ie.a.API_SERVER,"/api/sci/projects/").concat(Ut.taskId,"/upload_file.json?debug=admin"),onChange:function(kn){kn.some(function(sa){var Ln;return((Ln=sa.response)===null||Ln===void 0?void 0:Ln.status)===0})&&(r.a.destroyAll(),d.b.info("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}}))})},lt=function(){r.a.confirm({title:"\u4E0B\u8F7D\u4EE3\u7801",centered:!0,width:600,content:"\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(Aa,"\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),onOk:function(){var Zt=Object(c.a)(e.a.mark(function sa(){return e.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:return ra.next=2,Object(oe.a)("/api/sci/projects/".concat(Ut.taskId,"/download_file.json?debug=admin"),{method:"post",body:{autoDownload:!0},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return ra.abrupt("return",!0);case 3:case"end":return ra.stop()}},sa)}));function kn(){return Zt.apply(this,arguments)}return kn}()})},da=function(){var Zt,kn;(Zt=ea.current)===null||Zt===void 0||((kn=Zt.startScreenRecord)===null||kn===void 0)||kn.call(Zt)},Ra=function(){var Zt=wt.webssh;r.a.info({title:"SSH\u76F4\u8FDE",width:600,centered:!0,content:l.a.createElement(l.a.Fragment,null,l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u8D26\u53F7"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.username)),l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u5730\u5740"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.address)),l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u7AEF\u53E3"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.servicePort)),l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u5BC6\u7801"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.password)))})};return l.a.createElement("div",{className:"tpi-code-setting ".concat(Ze),style:{height:"calc(100vh - 54px )"}},l.a.createElement("h3",null,"\u529F\u80FD"),l.a.createElement("section",null,l.a.createElement("a",{id:"full-screen",title:"\u5168\u5C4F",className:"file-item action",onClick:function(){St("full-screen")}}," ",l.a.createElement("i",{className:"iconfont icon-quanping"}),"\u5F00\u542F / \u9000\u51FA\u5168\u5C4F "),!kt&&l.a.createElement(l.a.Fragment,null,l.a.createElement("a",{id:"reset-task",onClick:function(){return St("reset-task")},className:"file-item action",title:"\u91CD\u7F6E\u73AF\u5883"}," ",l.a.createElement("i",{className:"iconfont icon-zhongzhishixun"}),"\u91CD\u7F6E\u73AF\u5883 "),l.a.createElement("a",{onClick:function(){return nr()},className:"file-item action",title:"\u4E0A\u4F20\u6587\u4EF6"}," ",l.a.createElement("i",{className:"iconfont icon-shangchuanshipin1"}),"\u4E0A\u4F20\u6587\u4EF6"),l.a.createElement("a",{onClick:function(){return lt()},className:"file-item action",title:"\u4E0B\u8F7D\u6587\u4EF6"}," ",l.a.createElement("i",{className:"iconfont icon-xiazai3"}),"\u4E0B\u8F7D\u6587\u4EF6"),l.a.createElement("a",{onClick:function(){return da()},className:"file-item action",title:"\u5C4F\u5E55\u5F55\u5236"}," ",l.a.createElement("i",{className:"iconfont icon-jiaruketang1"}),"\u5C4F\u5E55\u5F55\u5236"),l.a.createElement("a",{className:"file-item action w100",title:"ssh\u76F4\u8FDE"}," ",l.a.createElement("i",{className:"iconfont icon-suanfasheji"}),l.a.createElement(M.a,{align:"middle",className:"w100"},l.a.createElement(ae.a,{flex:"1",onClick:Ra},l.a.createElement(W.a,{type:"text",loading:wn},l.a.createElement("span",{style:{color:"#ddd",marginLeft:-11}},"ssh\u76F4\u8FDE"))))),gt&&l.a.createElement("a",{id:"reset-task",onClick:Ia,className:"file-item action",title:"\u91CD\u542F\u4E91\u4E3B\u673A"}," ",l.a.createElement(de.a,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"\u91CD\u542F\u4E91\u4E3B\u673A "),ht?l.a.createElement(be.CopyToClipboard,{text:ht,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("a",{id:"copy-git",title:"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740",className:"file-item action"}," ",l.a.createElement("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740 ")):null)),l.a.createElement(J,{ref:ea}))},Qe=h("9VGf"),$e=h("DjyN"),et=h("NUBc"),Ve=h("5Dmo"),ke=h("3S7+"),Oe=h("JJs0"),Ce=h.n(Oe),ue,N,te=(ue=Object(U.F)())!==null&&ue!==void 0&&ue.homework_common_id?{homework_common_id:(N=Object(U.F)())===null||N===void 0?void 0:N.homework_common_id}:{};function F(me){return Object(oe.c)("tasks/".concat(me,".json"),te)}function Ae(me){return Object(oe.c)("sci/projects/".concat(me,"/get_data_sets.json"))}function tt(me){return Object(oe.c)("myshixuns/".concat(me,"/challenges.json"))}function he(me,Ze){return Object(oe.c)("myshixuns/".concat(me,"/subject_challenges.json"),Ze)}function We(me,Ze,mt){return Object(oe.c)("tasks/".concat(me,"/star.json?shixun_id=").concat(Ze,"&star=").concat(mt))}function rt(me,Ze){return Object(oe.c)("tasks/".concat(me,"/rep_content.json"),Object(s.a)(Object(s.a)({},Ze),te))}function V(me,Ze){return Object(oe.f)("myshixuns/".concat(me,"/update_file.json"),Ze)}function Be(me,Ze){return Object(oe.c)("tasks/".concat(me,"/reset_original_code.json"),Object(s.a)(Object(s.a)({},Ze),te))}function xe(me,Ze){return Object(oe.f)("myshixuns/".concat(me,"/reset_repository.json"),Ze)}function Le(me,Ze){return Object(oe.c)("tasks/".concat(me,"/reset_passed_code.json"),Object(s.a)(Object(s.a)({},Ze),te))}function De(me,Ze){return Object(oe.f)("tasks/".concat(me,"/game_build.json"),Object(s.a)(Object(s.a)({},Ze),te))}function Ne(me,Ze){return Object(oe.c)("tasks/".concat(me,"/game_status.json"),Object(s.a)(Object(s.a)({},Ze),te))}function se(me,Ze){return Object(oe.f)("tasks/".concat(me,"/choose_build.json"),Object(s.a)(Object(s.a)({},Ze),te))}function we(me){return Object(oe.c)("tasks/".concat(me,"/picture_display.json"),te)}function B(me,Ze){return Object(oe.c)("tasks/".concat(me,"/cost_time.json"),Object(s.a)(Object(s.a)({},Ze),te))}function He(me,Ze){return Object(oe.c)("courses/".concat(me,"/inform_detail.json"),Ze)}function at(me){return Object(oe.f)("tasks/".concat(me,"/plus_or_cancel_praise.json"))}function R(me){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object(oe.f)("myshixuns/".concat(me,"/repository.json"),Ze)}function Me(me,Ze){return Object(oe.c)("myshixuns/".concat(me,"/open_webssh.json"),Ze||{})}function Ue(me,Ze){return Object(oe.c)("myshixuns/".concat(me,"/open_vm_webssh.json"),Ze)}function q(me){return Object(oe.c)("tasks/".concat(me,"/close_webssh.json"))}function ye(me){return Se.apply(this,arguments)}function Se(){return Se=Object(c.a)(e.a.mark(function me(Ze){var mt;return e.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(oe.f)("/sci/projects/".concat(Ze,"/delete_pod.json"));case 2:if(mt=Ct.sent,!((mt==null?void 0:mt.status)>=0)){Ct.next=5;break}return Ct.abrupt("return",Object(oe.f)("/sci/projects/".concat(Ze,"/start_environment.json"),te));case 5:case"end":return Ct.stop()}},me)})),Se.apply(this,arguments)}function Ge(me){return Object(oe.f)("tasks/".concat(me,"/reset_environment"))}function Ye(me,Ze){return Object(oe.f)("tasks/".concat(me,"/reset_linux_vnc_link.json"),Ze||{})}function Te(me){return Object(oe.c)("tasks/".concat(me,"/check_test_sets.json"))}function $(me){return Object(oe.c)("tasks/".concat(me,"/get_answer_info.json"))}function pe(me){return Object(oe.c)("tasks/".concat(me,"/get_choose_answer.json"))}function qe(me){return Object(oe.c)("tasks/".concat(me,"/unlock_choose_answer.json"))}function Xe(me,Ze){return Object(oe.c)("tasks/".concat(me,"/unlock_answer.json?answer_id=").concat(Ze))}function ot(me,Ze,mt){return Object(oe.f)("tasks/".concat(me,"/set_games_status.json"),{result:Ze,data:mt})}function st(me){return Object(oe.f)("/sci/projects/".concat(me,"/extend_release.json"))}function ze(me,Ze){return Object(oe.f)("/sci/projects/".concat(me,"/save_mirror.json"),Object(s.a)({},Ze))}function it(me){return Object(oe.a)("/api/tasks/".concat(me,"/active.json"),{method:"post",body:{template_id:window.sessionStorage.imageId}})}function ct(me){return Object(oe.f)("tasks/".concat(me,"/extend_linux_vnc.json"),te)}function vt(me,Ze){return Object(oe.c)("tasks/".concat(me,"/rank_list.json"),Ze)}function pt(me,Ze){return Object(oe.f)("tasks/".concat(me,"/close_windows_vnc.json"),{tpi_id:Ze})}function Rt(me){return Object(oe.c)("tasks/".concat(me,"/pull_files.json"))}function Bt(me,Ze){return Object(oe.f)("tasks/".concat(me,"/log_output"),Ze)}function Xt(me){return Object(oe.c)("tasks/".concat(me,"/stop_log_output.json"))}function Ft(me){return Qt.apply(this,arguments)}function Qt(){return Qt=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/myshixuns/".concat(Ze.id,"/add_file.json"),{method:"post",body:Ze}));case 1:case"end":return ht.stop()}},me)})),Qt.apply(this,arguments)}function pn(me){return Pn.apply(this,arguments)}function Pn(){return Pn=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/myshixuns/".concat(Ze.id,"/delete_git_file.json"),{method:"Delete",body:Ze}));case 1:case"end":return ht.stop()}},me)})),Pn.apply(this,arguments)}function na(me){return Ot.apply(this,arguments)}function Ot(){return Ot=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/myshixuns/".concat(Ze.id,"/mv_file.json"),{method:"post",body:Ze}));case 1:case"end":return ht.stop()}},me)})),Ot.apply(this,arguments)}function dn(me){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/tasks/".concat(Ze.id,"/rep_content.json"),{method:"get",params:Ze}));case 1:case"end":return ht.stop()}},me)})),Rn.apply(this,arguments)}var Yn;(function(me){me.Classrooms="classrooms",me.Shixuns="shixuns",me.Paths="paths",me.Projects="projects",me.Videos="videos",me.Topics="topics",me.Teach="teach-group"})(Yn||(Yn={}));var On=function(Ze){var mt=Ze.userDetail,ht=Ze.user,Ct=Ze.globalSetting,xt=Ze.loading,Vt=Ze.dispatch,St=Ze.onClose,hn=Ze.shixun,gt=Object(i.a)(Ze,["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"]),ft=Object(g.i)(),Ht=Object(u.useState)([]),kt=Object(o.a)(Ht,2),wt=kt[0],Ut=kt[1],An=Object(u.useState)(""),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useState)(0),gn=Object(o.a)(sn,2),wn=gn[0],bn=gn[1],ea=Object(u.useState)(Object(s.a)({page:1,limit:20},ft)),Ta=Object(o.a)(ea,2),Aa=Ta[0],Ia=Ta[1],nr=Object(u.useCallback)(function(){return gt.visible},[gt.visible]);Object(u.useEffect)(function(){Aa.page=1,lt()},[gt.visible]);var lt=function(){var da=Object(c.a)(e.a.mark(function Ra(){var yn;return e.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return kn.next=2,Ae(ft.taskId);case 2:yn=kn.sent,yn&&(Ut(Object(S.a)(yn.data_sets)),bn(yn.data_sets_count),ma(yn.folder_name));case 4:case"end":return kn.stop()}},Ra)}));return function(){return da.apply(this,arguments)}}();return l.a.createElement("div",{style:{height:"calc(100vh - 51px)",padding:"20px 15px"}},l.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6570\u636E\u96C6"),l.a.createElement("dl",{className:Ce.a.list},l.a.createElement(ke.a,{title:Wt},l.a.createElement("dt",{className:"c-white"},Wt)),l.a.createElement("dd",null,l.a.createElement(be.CopyToClipboard,{text:Wt,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat(Ce.a.copy," current")},"\u70B9\u51FB\u590D\u5236")))),l.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6587\u4EF6\u8DEF\u5F84"),wt==null?void 0:wt.map(function(da,Ra){return l.a.createElement("dl",{className:Ce.a.list},l.a.createElement(ke.a,{title:da.filename},l.a.createElement("dt",{className:"c-white"},da.filename)),l.a.createElement("dd",null,l.a.createElement(be.CopyToClipboard,{text:da.file_path,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat(Ce.a.copy," current")},"\u70B9\u51FB\u590D\u5236"))))}),l.a.createElement("div",{className:"tc"},l.a.createElement(et.a,{onChange:function(Ra){Aa.page=Ra,lt()},className:Ce.a.page,size:"small",total:wn,pageSize:Aa.limit,hideOnSinglePage:!0})))},Wn=Object(C.a)(function(me){var Ze=me.user,mt=me.userDetail,ht=me.loading,Ct=me.shixunsDetail,xt=me.globalSetting;return{user:Ze,userDetail:mt,shixunsDetail:Ct,globalSetting:xt,loading:ht.models.index}})(On),jt=h("dhSg"),qn=h("q1cb"),wa=h("iOsX"),zn=h.n(wa),Jn=h("XG6U"),ua=h.n(Jn),Tn=h("bntm"),ga=h("bPs0"),La=Y.a.Countdown;function cr(){return l.a.createElement("p",null,"\u684C\u9762\u7CFB\u7EDF\u5C06\u6062\u590D\u5230\u521D\u59CB\u72B6\u6001\uFF0C\u60A8\u5728\u7CFB\u7EDF\u4E2D\u521B\u5EFA\u7684\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931\u3002\u8BF7\u786E\u4FDD\u60A8\u7684\u6570\u636E\u5DF2\u4FDD\u5B58\uFF08\u5982\uFF1A\u7248\u672C\u5E93\u4EE3\u7801\u5DF2\u63A8\u9001\u5230\u670D\u52A1\u5668\uFF09\u3002\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\uFF1F")}var qa=function(me){var Ze=me.mirror_description,mt=me.difficulty,ht=me.git_url,Ct=me.vnc_url,xt=me.window_vnc_url,Vt=me.linux_vnc,St=me.isNotice,hn=me.user,gt=me.game,ft=me.shixun,Ht=ft===void 0?{}:ft,kt=me.taskData,wt=kt===void 0?{}:kt,Ut=me.resetVncLoading,An=me.onUpdateCostTime,Dn=me.lastedGetTaskInfoTime,Wt=me.onShowNotice,ma=me.onResetGitCode,sn=me.onResetVnc,gn=me.onBack,wn=me.history,bn=me.onAddVncTime,ea=me.onUpdateCode,Ta=me.unity_3d_routes,Aa=me.remaining_time,Ia=me.st,nr=Ht.name,lt=Ht.identifier,da=Ht.task_pass,Ra=Ht.test_set_permission,yn=Object(u.useState)(!1),Zt=Object(o.a)(yn,2),kn=Zt[0],sa=Zt[1],Ln=Object(u.useState)(!1),ra=Object(o.a)(Ln,2),fa=ra[0],ar=ra[1],pr=Object(u.useState)({}),ir=Object(o.a)(pr,2),Pa=ir[0],sr=ir[1],mr=Object(u.useState)(!1),_r=Object(o.a)(mr,2),vr=_r[0],Ma=_r[1],an=Object(u.useState)(null),ya=Object(o.a)(an,2),gr=ya[0],At=ya[1],cn=Object(u.useState)(1800),Un=Object(o.a)(cn,2),Zn=Un[0],_a=Un[1],rn=Object(u.useState)(!1),Da=Object(o.a)(rn,2),Ea=Da[0],ha=Da[1],Kn=Object(u.useState)(!1),Bn=Object(o.a)(Kn,2),ta=Bn[0],pa=Bn[1],ja=Object(g.h)().query,ka=Object(g.i)(),Ca=Object(u.useState)(!1),Gt=Object(o.a)(Ca,2),qt=Gt[0],Xn=Gt[1],oa=j.a.useForm(),xa=Object(o.a)(oa,1),Ua=xa[0],Ka=Object(u.useMemo)(function(){return Date.now()+Aa},[Aa]);Object(u.useEffect)(function(){vr||setTimeout(function(){Ma(!0)},1e3*60)},[vr]),Object(u.useEffect)(function(){jt.a.subscribe("update-windows-time",function(Hn){_a(parseInt(Aa/1e3))}),_a(Aa/1e3)},[]),Object(u.useEffect)(function(){var Hn;return ja.type==="exercises"&&Pa!==null&&Pa!==void 0&&(Hn=Pa.exercise)!==null&&Hn!==void 0&&Hn.screen_open&&(ga.b.forEach(function(In,Ba){document.addEventListener(In,Fa,!1),document.addEventListener("blur",Fa,!1)}),window.focus(),window.onblur=function(){Object(Tn.a)()&&(Fa(),Object(Tn.b)())}),function(){ga.b.forEach(function(In,Ba){document.removeEventListener(In,Fa,!1)})}},[Pa]);var Ya=function(){ha(!Ea)},Fa=function(In){window.parent.postMessage("backExercise","*"),In!=="back"&&Object(Tn.b)()};function Tr(){sa(!kn)}function br(){sa(!1),ar(!1)}function Wr(){Object(C.c)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),wn.replace("/innovation/project/detail/".concat(ka.taskId))}function Rr(){if(Ut)return;sn()}function yr(){r.a.confirm({title:"\u9000\u51FA",icon:l.a.createElement(ne.a,null),content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5236\u4F5C\u955C\u50CF\u5417\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Wr})}function ao(Hn){if(br(),Hn==="reset-task"&&(Ut||r.a.confirm({title:"\u91CD\u7F6E\u73AF\u5883",icon:l.a.createElement(ne.a,null),content:"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Rr(),Ma(!1)}})),Hn==="reset-code"&&(Ut||r.a.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:l.a.createElement(ne.a,null),content:"\u60A8\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:ma})),Hn==="full-screen")if(Object(Tn.a)())Object(Tn.b)();else{var In,Ba;Object(Tn.d)((In=document)===null||In===void 0||((Ba=In.getElementById)===null||Ba===void 0)?void 0:Ba.call(In,"task-right-panel"))}Hn==="show-clipboard-box"&&jt.a.publish("show-clipboard-box")}var Er={task_pass:da,test_set_permission:Ra,mirror_description:Ze,difficulty:mt,resetVncLoading:Ut,git_url:ht,onVncAction:ao,window_vnc_url:xt,linux_vnc:Vt,vnc_url:Ct,shixun:Ht,unity_3d_routes:Ta},zr=Object(u.useCallback)(function(){return Zn?(console.log("VncTimer:",Zn),l.a.createElement(dr,{defaultTime:Zn,onAddVncTime:bn,onReset:Rr,toShixun:Wr,title:""})):null},[Zn]);return Object(u.useEffect)(function(){ta&&Ua.setFieldsValue({name:"",version:"",description:""})},[ta]),l.a.createElement("div",{className:"task-header-container"},ja.type!=="exercises"&&l.a.createElement(l.a.Fragment,null,wt.name),l.a.createElement("h2",{className:"shixun-info"},nr),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"flex-container"},l.a.createElement(l.a.Fragment,null,xt&&l.a.createElement(w.a,{onClick:function(In){In.preventDefault(),jt.a.publish("send-ctrl-alt-delete")},className:"c-grey-c mr20"},"\u53D1\u9001CTRL+ALT+DELETE"),zr()),l.a.createElement("i",{className:"iconfont icon-shijian1"}),l.a.createElement(La,{valueStyle:{color:"white",fontSize:"12px"},style:{marginRight:20,marginLeft:5},value:Ka}),l.a.createElement("a",{className:"btn-vnc",title:"\u5DE5\u5177\u680F",onClick:Tr},l.a.createElement("img",{alt:"tool",src:zn.a,width:16}),"\u5DE5\u5177\u680F"),l.a.createElement("a",{className:"btn-vnc",title:"\u6570\u636E\u96C6",onClick:function(){return ar(!0)}},l.a.createElement("img",{alt:"tool",src:ua.a,width:18}),"\u6570\u636E\u96C6"))),l.a.createElement(W.a,{type:"primary",disabled:!vr,onClick:Object(c.a)(e.a.mark(function Hn(){return e.a.wrap(function(Ba){for(;;)switch(Ba.prev=Ba.next){case 0:pa(!0);case 1:case"end":return Ba.stop()}},Hn)}))},"\u4FDD\u5B58\u955C\u50CF"),l.a.createElement("a",{className:"btn-out",onClick:yr,title:"\u9000\u51FA\u5B9E\u8BAD"},l.a.createElement("i",{className:"iconfont icon-kaiguan"})),l.a.createElement(T.a,null,l.a.createElement(k.a,{className:"setting-drawer",title:null,placement:"right",closable:!1,visible:kn,onClose:br},l.a.createElement(Pe,Object(O.a)({},Er,{taskData:wt})))),l.a.createElement(T.a,null,l.a.createElement(k.a,{className:"setting-drawer",title:null,placement:"right",closable:!1,visible:fa,onClose:br,style:{height:"100%"}},l.a.createElement(Wn,null))),l.a.createElement(r.a,{title:"\u4FDD\u5B58\u955C\u50CF",visible:ta,okButtonProps:{loading:qt},onCancel:function(){pa(!1)},onOk:function(){Ua.submit()}},l.a.createElement("div",null,l.a.createElement("p",{style:{color:"#6B758B"}},"\u628A\u5F53\u524D\u7684\u73AF\u5883\u5B58\u4E3A\u4E00\u4E2A\u65B0\u7684\u955C\u50CF\u3002\u786E\u5B9A\u4FDD\u5B58\u540E\uFF0C\u5728\u6211\u7684\u955C\u50CF\u53EF\u4EE5\u770B\u5230\u8BE5\u955C\u50CF\u7684\u4FDD\u5B58\u72B6\u6001\u3002"),l.a.createElement(j.a,{labelCol:{span:4},wrapperCol:{span:20},form:Ua,onFinish:function(){var Hn=Object(c.a)(e.a.mark(function In(Ba){var za;return e.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:return Xn(!0),Vr.next=3,ze(ka.taskId,Ba);case 3:za=Vr.sent,(za==null?void 0:za.status)==0&&(d.b.info("\u4FDD\u5B58\u6210\u529F"),pa(!1)),(za==null?void 0:za.status)===-5&&r.a.confirm({title:"\u8986\u76D6\u955C\u50CF\u63D0\u793A",content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u4F60\u7684\u3010\u955C\u50CF\u5217\u8868\u3011\u5B58\u5728\u540C\u540D\u4E14\u540C\u7248\u672C\u53F7\u7684\u955C\u50CF\uFF0C \u60A8\u786E\u5B9A\u8981\u8986\u76D6\u539F\u6765\u7684\u955C\u50CF\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Ro=Object(c.a)(e.a.mark(function Qn(){var $t;return e.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.next=2,ze(ka.taskId,Object(s.a)({is_cover:!0},Ba));case 2:$t=ia.sent,($t==null?void 0:$t.status)==0&&(d.b.info("\u8986\u76D6\u6210\u529F"),pa(!1));case 4:case"end":return ia.stop()}},Qn)}));function Io(){return Ro.apply(this,arguments)}return Io}()}),Xn(!1);case 7:case"end":return Vr.stop()}},In)}));return function(In){return Hn.apply(this,arguments)}}()},l.a.createElement(j.a.Item,{label:"\u955C\u50CF\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0"},{pattern:/^[a-z0-9_]+$/,message:"\u53EA\u5141\u8BB8\u8F93\u5165\u6570\u5B57\u6216\u5C0F\u5199\u5B57\u6BCD"}]},l.a.createElement(v.a,{type:"text",maxLength:60})),l.a.createElement(j.a.Item,{label:" \u7248\u672C\u53F7",name:"version",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7248\u672C\u53F7"}]},l.a.createElement(E.a,{style:{width:"100%"}})),l.a.createElement(j.a.Item,{label:"\u955C\u50CF\u63CF\u8FF0",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u955C\u50CF\u63CF\u8FF0"}]},l.a.createElement(v.a.TextArea,null))))))},Va=300;function dr(me){var Ze=me.onAddVncTime,mt=me.onReset,ht=me.toShixun,Ct=me.title,xt=Ct===void 0?"":Ct,Vt=me.defaultTime,St=Object(u.useState)(Vt),hn=Object(o.a)(St,2),gt=hn[0],ft=hn[1],Ht=Object(u.useState)(!1),kt=Object(o.a)(Ht,2),wt=kt[0],Ut=kt[1];Object(Qe.a)(function(){ft(gt-1)},gt>0?1e3:null),Object(u.useEffect)(function(){gt===Va&&Ut(!0)},[gt]),Object(u.useEffect)(function(){Vt0)){bn.next=8;break}return bn.next=4,Ze();case 4:gn=bn.sent,ft((gn==null?void 0:gn.remaining_time)/1e3),bn.next=10;break;case 8:ft(Vt),mt();case 10:case"end":return bn.stop()}},sn)})),Wt.apply(this,arguments)}function ma(){gt0){for(var mt=0;mt1&&arguments[1]!==void 0?arguments[1]:"",mt=[],ht=0;ht0||Vt.target.offsetWidth>0){var St=Ur(Vt.target.offsetWidth,Vt.target.offsetHeight,me),hn=Object(o.a)(St,2),gt=hn[0],ft=hn[1];console.log("cols, rows",gt,ft),jt.a.publish("ssh-xterm-resize",{columns:gt,rows:ft,width:Vt.target.offsetWidth,height:Vt.target.offsetHeight}),me.resize(gt,ft);var Ht=Nr.Base64.decode("IA=="),kt=Nr.Base64.decode("CBtbSw==");me.write(Ht),me.write(kt)}}}catch(wt){Ct.e(wt)}finally{Ct.f()}});return mt.observe(Ze),mt}var xo=3e4,so=function(me){var Ze=me.sshConfigData,mt=me.sid,ht=Object(u.useState)(null),Ct=Object(o.a)(ht,2),xt=Ct[0],Vt=Ct[1],St=Ze.ws_url,hn=Ze.password,gt=Ze.port,ft=Object(u.useRef)(),Ht=Object(u.useRef)(),kt=Object(u.useRef)(!1);return Object(u.useEffect)(function(){if(ft.current&&St){var wt=new ro.Terminal({fontSize:16,rendererType:"dom"});console.log("el.current:",ft.current),wt.open(ft.current),wt.onData(function(An){console.log("data:",An),Ht.current&&(Ht.current.readyState===1&&(Ht.current.send(JSON.stringify({tp:"client",data:An})),jt.a.publish("on-operating-ssh")))}),wt.write("Connecting..."),Vt(wt);var Ut=Co(wt,ft.current);return function(){wt.dispose(),Ut.unobserve(ft.current)}}},[St,ft.current]),Object(u.useEffect)(function(){if(xt&&St){function wt(){var sn=new WebSocket(St);console.log("socketInstance:",St),Ht.current=sn,sn.onopen=function(){var gn=xt.element.parentElement;if(gn){var wn=gn.offsetWidth,bn=gn.offsetHeight;console.log("init",{tp:"init",data:Object(s.a)(Object(s.a)({},Ze),{},{secret:hn,width:wn,height:bn,rows:xt.rows,columns:xt.cols})}),sn.send(JSON.stringify({tp:"init",data:Object(s.a)(Object(s.a)({},Ze),{},{secret:hn,width:wn,height:bn,rows:xt.rows,columns:xt.cols})}))}xt.focus()},sn.onerror=function(gn){console.log("------in socket error----",gn,sn,St)},sn.onmessage=function(gn){kt.current||(xt.write("\r"),setTimeout(function(){},1e3)),kt.current=!0,console.log("event:",gn);var wn=Nr.Base64.decode(gn.data.toString()),bn=xt._core._renderService.dimensions.actualCellWidth||9.5;console.log("data:",wn,bn,xt),xt.write(wn)},sn.onclose=function(gn){Ut&&clearInterval(Ut),xt.write(`\r -connection closed`)}}var Ut=setInterval(function(){Ht.current&&Ht.current.send(JSON.stringify({tp:"h"}))},xo),An=jt.a.subscribe("create-socket",function(sn){mt==sn&&(Ht.current&&Ht.current.readyState===1?xt.focus():wt(),xt.focus())}),Dn=jt.a.subscribe("close-socket",function(sn){mt===sn&&(Ht.current&&(Ht.current.close(),kt.current=!1,xt.clear()),Ht.current=null)}),Wt=jt.a.subscribe("ssh-xterm-resize",function(sn){Ht.current&&Ht.current.readyState===1&&Ht.current.send(JSON.stringify({tp:"resize",data:Object(s.a)({},sn)}))}),ma=jt.a.subscribe("ssh-add-connect-time",function(){Ht.current&&Ht.current.readyState===1&&Ht.current.send(JSON.stringify({tp:"overtime"}))});return function(){Dn(),An(),Wt(),ma(),Ht.current&&(Ht.current.close(),kt.current=!1)}}},[xt,St,gt]),l.a.createElement("div",{className:io.a["xterm-panel-wrp"]},l.a.createElement("div",{ref:ft,className:io.a["xterm-panel"]},St?null:l.a.createElement("p",{style:{color:"#fff"}},"\u6B63\u5728\u8FDE\u63A5\u547D\u4EE4\u884C\u670D\u52A1...")))},Do=h("BWJ9"),ko=h("MXD1"),rr=h("CFYs"),Yr=h("1dTM"),lo=h.n(Yr),uo=h("3MsV"),Xa=v.a.TextArea,$a=function(me){var Ze=me.onCancel,mt=me.onSave,ht=me.content,Ct=Object(u.useState)(ht),xt=Object(o.a)(Ct,2),Vt=xt[0],St=xt[1];function hn(ft){St(ft.target.value)}function gt(){mt(Vt)}return Object(u.useEffect)(function(){St(ht)},[ht]),l.a.createElement("div",{className:"clipboard-box"},l.a.createElement("h3",null,"\u5B9E\u9A8C\u73AF\u5883\u526A\u5207\u677F\uFF1A"),l.a.createElement(Xa,{value:Vt,onChange:hn,className:"clipboard"}),l.a.createElement("p",null," ",l.a.createElement("b",null," 1.\u4ECE\u5916\u90E8\u590D\u5236\u5185\u5BB9\u5230\u5B9E\u9A8C\u73AF\u5883\u5185\uFF1A ")," \u7C98\u8D34\u5185\u5BB9\u5230\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u70B9\u51FB\u4FDD\u5B58\uFF0C\u7136\u540E\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u8FDB\u884C\u7C98\u8D34\u3002 "),l.a.createElement("p",null," ",l.a.createElement("b",null," 2.\u83B7\u53D6\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7684\u5185\u5BB9\uFF1A ")," \u8BF7\u5148\u5728\u73AF\u5883\u4E2D\u590D\u5236\u5185\u5BB9\uFF0C\u590D\u5236\u52A8\u4F5C\u5B8C\u6210\u540E\u5185\u5BB9\u4F1A\u663E\u793A\u5728\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u7136\u540E\u5728\u4E0A\u9762\u6587\u672C\u6846\u4E2D\u518D\u6B21\u590D\u5236\u3002 "),l.a.createElement("div",{className:"btn-action-container"},l.a.createElement(W.a,{type:"ghost",onClick:Ze,style:{marginRight:10}},"\u53D6\u6D88"),l.a.createElement(W.a,{type:"primary",onClick:gt},"\u4FDD\u5B58")))},er=h("ye1Q"),Jr=h("osed"),Ar=h.n(Jr),Dr=h("wd/R"),Zr=h.n(Dr),Lo=l.a.createElement(er.a,{style:{fontSize:24},spin:!0});function co(me){return me.replace(/\\u([\dA-Za-z]{4})/g,function(Ze,mt){return String.fromCharCode(parseInt("0x"+mt))})}function kr(me){me||(me=window.location.search);var Ze=me.substr(1),mt={};return Ze.split("&").forEach(function(ht){var Ct=ht.split("=");mt[Ct[0]]=decodeURIComponent(Ct[1])}),mt}var Kr={loading:!0,isLarge:!1,showClipBoardBox:!1,transferContent:"",mes:"\u5B9E\u9A8C\u73AF\u5883\u51C6\u5907\u4E2D"},Vn;(function(me){me[me.SET_LOADING=0]="SET_LOADING",me[me.SET_IS_LARGE=1]="SET_IS_LARGE",me[me.SET_MES=2]="SET_MES",me[me.SET_STATE=3]="SET_STATE",me[me.SHOW_CLIPBOARD_BOX=4]="SHOW_CLIPBOARD_BOX",me[me.SET_TRANSFER_CONTENT=5]="SET_TRANSFER_CONTENT",me[me.UPDATE_ALL=6]="UPDATE_ALL"})(Vn||(Vn={}));function fr(me,Ze){switch(Ze.type){case Vn.SET_LOADING:return Object(s.a)(Object(s.a)({},me),{},{loading:Ze.payload});case Vn.SET_IS_LARGE:return Object(s.a)({},Object(s.a)(Object(s.a)({},me),{},{isLarge:Ze.payload}));case Vn.SET_MES:return Object(s.a)(Object(s.a)({},me),{},{mes:Ze.payload});case Vn.SET_STATE:return Object(s.a)(Object(s.a)({},me),Ze.payload);case Vn.SET_TRANSFER_CONTENT:return Object(s.a)(Object(s.a)({},me),{},{transferContent:Ze.payload});case Vn.SHOW_CLIPBOARD_BOX:return Object(s.a)(Object(s.a)({},me),{},{showClipBoardBox:Ze.payload});case Vn.UPDATE_ALL:return Object(s.a)({loading:me.loading},Ze.payload);default:throw new Error}}var Fr=function(me){var Ze,mt=me.vnc_url,ht=me.window_vnc_url,Ct=me.linux_vnc,xt=me.virtual_machine,Vt=me.taskId,St=me.taskData,hn=Object(u.useRef)(),gt=Object(u.useRef)(),ft=Object(u.useRef)(),Ht=Object(u.useRef)(),kt=Object(u.useState)(),wt=Object(o.a)(kt,2),Ut=wt[0],An=wt[1],Dn=Object(u.useState)(!1),Wt=Object(o.a)(Dn,2),ma=Wt[0],sn=Wt[1],gn=Object(u.useReducer)(fr,Kr),wn=Object(o.a)(gn,2),bn=wn[0],ea=wn[1],Ta=Object(u.useState)(0),Aa=Object(o.a)(Ta,2),Ia=Aa[0],nr=Aa[1],lt=bn.mes,da=bn.loading,Ra=bn.showClipBoardBox,yn=bn.isLarge,Zt=bn.transferContent,kn=Object(u.useState)(0),sa=Object(o.a)(kn,2),Ln=sa[0],ra=sa[1],fa=Object(u.useRef)(),ar=Object(g.i)(),pr=ar;Object(u.useEffect)(function(){return window.addEventListener("visibilitychange",Pa),function(){var At,cn;(At=gt.current)===null||At===void 0||((cn=At.disconnect)===null||cn===void 0)||cn.call(At),window.removeEventListener("visibilitychange",Pa)}},[]),Object(u.useEffect)(function(){return window.sessionStorage.imageId=Ut,function(){window.sessionStorage.removeItem("imageId")}},[Ut]);var ir=function(){var cn;(St==null||((cn=St.shixun)===null||cn===void 0)?void 0:cn.windows_connection_mode)==="rdp"?setTimeout(function(){an()},1500):Object(Tn.a)()?ft.current.resizeSession=!0:setTimeout(function(){ft.current.resizeSession=!1},900)};Object(u.useEffect)(function(){return window.addEventListener("visibilitychange",Pa),document.addEventListener(Object(Tn.c)(),ir),function(){document.removeEventListener(Object(Tn.c)(),ir),window.removeEventListener("visibilitychange",Pa)}},[]);var Pa=function(cn){if(document.visibilityState==="visible"){var Un=sessionStorage.vncPageLeaveTime;Zr()(new Date).diff(Zr()(Un),"minutes")>2&&nr(new Date().getTime()),sessionStorage.removeItem("vncPageLeaveTime")}else sessionStorage.vncPageLeaveTime=new Date};function sr(){ea({type:Vn.SHOW_CLIPBOARD_BOX,payload:!1})}function mr(){ea({type:Vn.SET_IS_LARGE,payload:!yn})}function _r(At){var cn;return hn.current&&(cn=new jr.default(function(Un){var Zn=Object(Qa.a)(Un),_a;try{for(Zn.s();!(_a=Zn.n()).done;){var rn,Da=_a.value;if((St==null||((rn=St.shixun)===null||rn===void 0)?void 0:rn.windows_connection_mode)==="rdp"&&an(),Da.target.offsetHeight>0||Da.target.offsetWidth>0){var Ea;At==null||((Ea=At._eventHandlers)===null||Ea===void 0)||Ea.windowResize()}}}catch(ha){Zn.e(ha)}finally{Zn.f()}}),cn.observe(hn.current)),cn}var vr=function(){var At=Object(c.a)(e.a.mark(function cn(){var Un,Zn,_a,rn,Da;return e.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return _a=(Un=kr())!==null&&Un!==void 0&&Un.homework_common_id?{homework_common_id:(Zn=kr())===null||Zn===void 0?void 0:Zn.homework_common_id}:{},ha.next=3,Object(oe.a)("/api/tasks/".concat(ar.taskId||Vt,"/get_vnc_link.json"),{method:"post",body:Object(s.a)(Object(s.a)(Object(s.a)({},ar),_a),{},{template_id:Ut})});case 3:if(rn=ha.sent,!((rn==null?void 0:rn.status)===-3)){ha.next=6;break}return ha.abrupt("return",new Promise(function(){var Kn=Object(c.a)(e.a.mark(function Bn(ta,pa){return e.a.wrap(function(ka){for(;;)switch(ka.prev=ka.next){case 0:r.a.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var Ca=Object(c.a)(e.a.mark(function qt(){return e.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return clearTimeout(fa.current),ra(0),oa.next=4,pt(ar.taskId,rn==null?void 0:rn.message);case 4:return nr(Ia+1),oa.abrupt("return");case 6:case"end":return oa.stop()}},qt)}));function Gt(){return Ca.apply(this,arguments)}return Gt}()});case 1:case"end":return ka.stop()}},Bn)}));return function(Bn,ta){return Kn.apply(this,arguments)}}()));case 6:if(!((rn==null?void 0:rn.status)===-1)){ha.next=8;break}throw new String(rn==null?void 0:rn.message);case 8:return xt&&(Object(U.S)("PVEAuthCookie",rn==null||((Da=rn.data)===null||Da===void 0)?void 0:Da.cookies_value,1),Object(U.S)("PVELangCookie","zh_CN",1)),jt.a.publish("update-windows-time",rn==null?void 0:rn.data),ha.abrupt("return",rn);case 11:case"end":return ha.stop()}},cn)}));return function(){return At.apply(this,arguments)}}();Object(u.useEffect)(function(){var At,cn;function Un(Kn){ht&&(d.b.warn("\u7531\u4E8E\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u8FDE\u63A5\u5931\u6548\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5Windows VNC\u670D\u52A1"),ea({type:Vn.SET_LOADING,payload:!0}),nr(Ia+1))}jt.a.subscribe("reset-linux-windows-loading",function(){ea({type:Vn.SET_LOADING,payload:!0})}),jt.a.subscribe("reset-linux-windos-vnc",function(){nr(Ia+1)});function Zn(){ra(100),clearTimeout(fa.current),setTimeout(function(){var Kn,Bn;(Kn=At)===null||Kn===void 0||((Bn=Kn._eventHandlers)===null||Bn===void 0)||Bn.windowResize(),ea({type:Vn.SET_LOADING,payload:!1})},1300),jt.a.subscribe("send-ctrl-alt-delete",function(){var Kn;(Kn=At)===null||Kn===void 0||Kn.sendCtrlAltDel()})}function _a(Kn){var Bn=co(Kn.detail.text);ea({type:Vn.SET_TRANSFER_CONTENT,payload:Bn})}if((ht||mt||Ct||xt&&Ut)&&hn.current){var rn;clearTimeout(fa.current),(St==null||((rn=St.shixun)===null||rn===void 0)?void 0:rn.windows_connection_mode)==="rdp"&&an(),new Promise(Object(c.a)(e.a.mark(function Kn(){var Bn,ta,pa,ja,ka,Ca,Gt;return e.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:Bn=kr(),ta="",ja=new URL(decodeURIComponent(St==null?void 0:St.vnc_url)),ka=ja.protocol,Ca=ja.searchParams,Gt=ja.host,pa=Ca.get("password"),ta="".concat(ka==="https:"?"wss":"ws","://").concat(Gt,"/").concat(Bn.path||"websockify"),At=new lo.a(hn.current,ta,{credentials:{password:pa},wsProtocols:["binary"],resize:"scale",show_dot:!0}),cn=_r(At),At.viewOnly=Bn.view_only||!1,ht?At.scaleViewport=!0:At.scaleViewport=Bn.scale||!1,At.scaleViewport=!0,At.showDotCursor=!0,At.resizeSession=!0,ft.current=At,At.addEventListener("disconnect",Un),At.addEventListener("connect",Zn),At.addEventListener("clipboard",_a);case 17:case"end":return Xn.stop()}},Kn)})));var Da=jt.a.subscribe("vnc-reseting",function(){ra(0),ea({type:Vn.SET_STATE,payload:{loading:!0,mes:"\u5B9E\u9A8C\u73AF\u5883\u91CD\u7F6E\u4E2D"}})}),Ea=jt.a.subscribe("vnc-enlarge",function(Kn){}),ha=jt.a.subscribe("show-clipboard-box",function(){ea({type:Vn.SHOW_CLIPBOARD_BOX,payload:!0})});return ra(0),function(){var Kn,Bn,ta,pa;(Kn=At)===null||Kn===void 0||Kn.removeEventListener("disconnect",Un),(Bn=At)===null||Bn===void 0||Bn.removeEventListener("connect",Zn),(ta=At)===null||ta===void 0||ta.removeEventListener("clipboard",_a),Da(),Ea(),ha(),(pa=cn)===null||pa===void 0||pa.unobserve(hn.current)}}},[mt,ht,Ct,Ia,Ut]),Object(u.useEffect)(function(){var At,cn;if(xt&&(St==null||((At=St.shixun_virtual_templates)===null||At===void 0)?void 0:At.length)===1){var Un,Zn;An(St==null||((Un=St.shixun_virtual_templates)===null||Un===void 0||((Zn=Un[0])===null||Zn===void 0))?void 0:Zn.template_id)}else xt&&(St==null||((cn=St.shixun_virtual_templates)===null||cn===void 0)?void 0:cn.length)>1&&sn(!0)},[xt]);function Ma(At){var cn;(cn=ft.current)===null||cn===void 0||cn.clipboardPasteFrom(At),ea({type:Vn.SET_TRANSFER_CONTENT,payload:At}),d.b.success("\u4FDD\u5B58\u6210\u529F\uFF01\u4F60\u53EF\u4EE5\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7C98\u8D34\u8BE5\u5185\u5BB9"),sr()}function an(){var At,cn;At=Math.min(document.getElementById("task-right-panel").clientWidth/1920,document.getElementById("task-right-panel").clientHeight/1260),Ht.current.parentElement.className="wh1080p",Ht.current.parentElement.style.cssText="transform:scale(".concat(At,");transform-origin:center center"),hn.current.style.cssText="translate(-50%, -50%) scale("+At+")"}Object(u.useEffect)(function(){Ln==0&&(clearTimeout(fa.current),ya())},[Ln]);var ya=function At(){Ln>99?Ln=99:(Ln=Ln+1,fa.current=setTimeout(function(){At()},1500)),Ln<100&&ra(Ln)},gr=Object(u.useMemo)(function(){var At;return da?"none":Ct||xt||ht&&(St==null||((At=St.shixun)===null||At===void 0)?void 0:At.windows_connection_mode)==="rdp"?"block":"none"},[Ct,da,xt,ht]);return l.a.createElement(u.Fragment,null,ma&&l.a.createElement("div",{className:Ar.a.selectImage},l.a.createElement("section",{className:Ar.a.container},l.a.createElement("h1",null,"\u9009\u62E9\u89D2\u8272"),l.a.createElement("aside",null,St==null||((Ze=St.shixun_virtual_templates)===null||Ze===void 0)?void 0:Ze.map(function(At,cn){return l.a.createElement(M.a,{align:"middle",key:cn},l.a.createElement(ae.a,{flex:"1"},At.template_name),l.a.createElement(ae.a,null,l.a.createElement(W.a,{type:"primary",onClick:function(){An(At.template_id),sn(!1)}},"\u5F00\u59CB\u5B9E\u9A8C")))})))),yn&&l.a.createElement("a",{className:"btn-vnc-resize",onClick:mr},l.a.createElement("i",{className:"iconfont icon-tuichuquanping"})),l.a.createElement("div",{style:{width:"100%",height:"calc(100% - 50px)",overflow:"hidden",position:"absolute",display:gr==="block"?"flex":"none",alignItems:"center",justifyContent:"center",zIndex:6}},l.a.createElement("div",null,l.a.createElement("iframe",{style:{position:yn?"fixed":"absolute",left:0,top:yn?54:40,width:"100%",height:"calc(100% - ".concat(yn?"100px":"45px",")")},frameBorder:"0",ref:Ht,allowFullScreen:!0}))),l.a.createElement("div",{style:{position:yn?"fixed":"absolute",left:0,top:0,zIndex:5,width:"100%",height:"calc(100% - ".concat(yn?"100px":"0",")")},className:"".concat(ht?"vnc-panel-wrapper-windows":"vnc-panel-wrapper"," ").concat(yn?"full-screen":"")},da?l.a.createElement(y.a,{message:lt,style:{color:"#0152d9"}},l.a.createElement("div",{className:"tc",style:{width:500,margin:"0 auto",color:"#FFF"}},l.a.createElement(rr.a,{percent:Ln,format:function(cn){return l.a.createElement("span",{className:"c-white"},cn,"%")}}))):null,l.a.createElement("div",{ref:hn,className:"vnc-panel ".concat(da?"hidden zIndexf1":"animated fadeIn")})),l.a.createElement(T.a,null,l.a.createElement(r.a,{title:"\u590D\u5236\u7C98\u8D34",centered:!0,maskClosable:!1,visible:Ra,onCancel:sr,footer:null},l.a.createElement($a,{onCancel:sr,onSave:Ma,content:Zt}))))},fo=function(me){var Ze=me.taskData,mt=me.evaluateLoading,ht=me.evaluateMessage,Ct=me.language,xt=me.onEval,Vt=Ze.vnc_url,St=Ze.shixun,hn=Ze.test_sets,gt=Ze.test_sets_count,ft=Ze.sets_error_count,Ht=Ze.last_compile_output,kt=Ze.game,wt=Ze.allowed_unlock,Ut=Ze.user,An=Object(u.useState)(!1),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useState)(!1),gn=Object(o.a)(sn,2),wn=gn[0],bn=gn[1];function ea(){bn(!wn)}return console.log("vnc_url:",Vt),l.a.createElement(u.Fragment,null,l.a.createElement(Fr,{vnc_url:Vt,window_vnc_url:Ze.windows_vnc,virtual_machine:Ze==null?void 0:Ze.virtual_machine,linux_vnc:Ze.linux_vnc,taskData:Ze}),wn?l.a.createElement("div",{className:"vnc-mask"}):null,l.a.createElement("div",{className:"vnc-test-list ".concat(Wt?"large":wn?"pop":"")},l.a.createElement("div",{className:"vnc-test-list-body"},Wt?null:l.a.createElement("span",{className:"arrow-container",onClick:ea},l.a.createElement("i",{className:"iconfont ".concat(wn?"icon-xiajiantou":"icon-shangjiantou"," ")})))))},ho=h("LQ8X"),or=h.n(ho),Br=function(Ze,mt){switch(mt.type){case"MOVE_X":return Object(s.a)(Object(s.a)({},Ze),{},{moveX:mt.payload});case"SET_DRAGMODULE":return Object(s.a)(Object(s.a)({},Ze),{},{showDragModule:mt.payload});case"TRIGGER_RIGHT_PANEL_MASK":return Object(s.a)(Object(s.a)({},Ze),{},{showDragMask:mt.payload})}},wr=Y.a.Countdown,tr;(function(me){me[me.LoadFail=1]="LoadFail",me[me.ReLoad=2]="ReLoad",me[me.Success=3]="Success"})(tr||(tr={}));var po={moveX:"40%",showDragModule:!1,showDragMask:!1},mo=function(Ze){var mt=Ze.globalSetting,ht=Ze.loading,Ct=Ze.taskData,xt=Ze.dispatch,Vt=Object(i.a)(Ze,["globalSetting","loading","taskData","dispatch"]),St=Object(g.i)(),hn=Object(u.useRef)(),gt=Object(u.useState)(!0),ft=Object(o.a)(gt,2),Ht=ft[0],kt=ft[1],wt=Object(u.useState)(!1),Ut=Object(o.a)(wt,2),An=Ut[0],Dn=Ut[1],Wt=Object(u.useState)(0),ma=Object(o.a)(Wt,2),sn=ma[0],gn=ma[1],wn=Object(u.useState)(0),bn=Object(o.a)(wn,2),ea=bn[0],Ta=bn[1],Aa=Object(u.useState)(!0),Ia=Object(o.a)(Aa,2),nr=Ia[0],lt=Ia[1],da=Object(u.useState)(!1),Ra=Object(o.a)(da,2),yn=Ra[0],Zt=Ra[1],kn=Object(u.useRef)(!0),sa=Object(u.useState)({}),Ln=Object(o.a)(sa,2),ra=Ln[0],fa=Ln[1],ar=Object(u.useState)({}),pr=Object(o.a)(ar,2),ir=pr[0],Pa=pr[1],sr=Object(u.useState)(),mr=Object(o.a)(sr,2),_r=mr[0],vr=mr[1],Ma=Object(u.useRef)(),an=Object(u.useState)(tr.Success),ya=Object(o.a)(an,2),gr=ya[0],At=ya[1],cn=Object(u.useState)(),Un=Object(o.a)(cn,2),Zn=Un[0],_a=Un[1],rn=Object(u.useState)(),Da=Object(o.a)(rn,2),Ea=Da[0],ha=Da[1],Kn=Object(u.useState)(!1),Bn=Object(o.a)(Kn,2),ta=Bn[0],pa=Bn[1],ja=Object(u.useState)(""),ka=Object(o.a)(ja,2),Ca=ka[0],Gt=ka[1],qt=Object(u.useRef)(null),Xn=Object(u.useRef)({}),oa=Object(u.useRef)(!1),xa=Object(u.useReducer)(Br,po),Ua=Object(o.a)(xa,2),Ka=Ua[0],Ya=Ua[1];Object(u.useEffect)(function(){return window.addEventListener("message",Fa),function(){window.removeEventListener("message",Fa)}},[]);var Fa=function($t){($t==null?void 0:$t.data)==="jupytermessage"&&kn.current&&(kn.current=!1,Tr(),oa.current||setTimeout(function(){return kn.current=!0},500))},Tr=function(){var Qn=Object(c.a)(e.a.mark(function $t(){return e.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:case"end":return ia.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),br=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt;return e.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(z.d)({identifier:St.identifier});case 2:Kt=En.sent,Kt&&(fa(Kt),Xn.current=Object(s.a)({},Kt),Pa(Object(s.a)(Object(s.a)({},ir),{},{test_sets:(Kt==null?void 0:Kt.test_sets)||[]})),Ya({type:"SET_DRAGMODULE",payload:Kt.jupyter_show_description}));case 4:case"end":return En.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),Wr=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt,ia,En,Cr,Ja;return e.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.next=2,Object(z.c)({identifier:St.identifier});case 2:if(Kt=xr.sent,kt(!1),!(Kt!=null&&Kt.url)){xr.next=14;break}if(vr(Kt.url),hn.current=(ia=Object(U.P)(Kt==null||((En=Kt.url)===null||En===void 0||((Cr=En[0])===null||Cr===void 0))?void 0:Cr.url))===null||ia===void 0?void 0:ia.token,Ma.current=Kt.port,!(((Ja=Kt.url)===null||Ja===void 0?void 0:Ja.length)>1)){xr.next=10;break}return xr.abrupt("return");case 10:return lt(!1),yr(),At(tr.Success),xr.abrupt("return");case 14:Kt.status===-1?(At(tr.LoadFail),lt(!1)):At(tr.ReLoad);case 15:case"end":return xr.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),Rr=function($t){lt(!1),Ta($t),yr(),At(tr.Success)},yr=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt;return e.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(z.e)({identifier:St.identifier});case 2:if(Kt=En.sent,!((Kt==null?void 0:Kt.status)!==0)){En.next=5;break}return En.abrupt("return");case 5:if(Kt!=null&&Kt.useSeconds){En.next=8;break}return ao(),En.abrupt("return");case 8:Kt!=null&&Kt.remainingSeconds&&(_a(Date.now()+Kt.remainingSeconds*1e3),ha(Kt.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(Kt.remainingSeconds-300)*1e3));case 9:case"end":return En.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),ao=function(){In(!0),kt(!0),r.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",content:" \u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Er()},onCancel:function(){In(!1),kt(!1)}})},Er=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt;return e.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(z.g)({identifier:St.identifier});case 2:if(Kt=En.sent,!((Kt==null?void 0:Kt.status)!==0)){En.next=5;break}return En.abrupt("return");case 5:d.b.success("\u91CD\u7F6E\u6210\u529F!"),kt(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return En.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),zr=function(){r.a.destroyAll(),r.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:l.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",l.a.createElement("span",null,l.a.createElement(wr,{value:Zn,format:"HH:mm:ss",onFinish:Hn})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var $t=Object(c.a)(e.a.mark(function ia(){var En;return e.a.wrap(function(Ja){for(;;)switch(Ja.prev=Ja.next){case 0:return Ja.next=2,Object(z.a)({identifier:St.identifier});case 2:if(En=Ja.sent,!(En.status===0)){Ja.next=7;break}return Ja.next=6,yr();case 6:d.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Ja.stop()}},ia)}));function Kt(){return $t.apply(this,arguments)}return Kt}()})},Hn=function(){r.a.destroyAll(),r.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:l.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Er()}})},In=function($t){var Kt=document.getElementById("taskJupyterIframe");if(!Kt)return;$t?Kt.contentWindow.postMessage("stopParent","*"):Kt.contentWindow.postMessage("clonsParent","*")},Ba=function(){kt(!0),In(!0),Mr({title:"\u91CD\u7F6E\u5B9E\u8BAD",content:l.a.createElement("div",{className:"tc font14"},"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931,",l.a.createElement("br",null),"\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F")})},za=function(){var $t=document.getElementById("taskJupyterIframe");if(!$t)return;$t.contentWindow.postMessage("saveCode","*"),oa.current=!0,Dn(!0),Zt(!0)},Mr=function($t){r.a.confirm({centered:!0,title:$t.title,content:$t.content,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Kt=Object(c.a)(e.a.mark(function En(){var Cr;return e.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Object(z.i)({identifier:St.identifier});case 2:if(Cr=lr.sent,!(Cr.status!==0)){lr.next=5;break}return lr.abrupt("return");case 5:d.b.success("\u64CD\u4F5C\u6210\u529F"),kt(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return lr.stop()}},En)}));function ia(){return Kt.apply(this,arguments)}return ia}(),onCancel:function(){In(!1),kt(!1)}})};Object(u.useEffect)(function(){function Qn(Kt){Ya({type:"MOVE_X",payload:Kt.pageX})}function $t(){Ya({type:"TRIGGER_RIGHT_PANEL_MASK",payload:!1}),document.onselectstart=null}return Ka.showDragMask&&(document.addEventListener("mousemove",Qn),document.addEventListener("mouseup",$t)),function(){document.removeEventListener("mousemove",Qn),document.removeEventListener("mouseup",$t)}},[Ka.showDragMask]);var Vr=typeof Ka.moveX=="number"&&Ka.moveX!==.01?"".concat(Ka.moveX,"px"):"40%",Ro="calc(100% - 4px - ".concat(Vr,")"),Io=function($t){Ya({type:"TRIGGER_RIGHT_PANEL_MASK",payload:$t})};return l.a.createElement("section",{className:or.a.bg,style:{userSelect:Ka.showDragMask?"none":"unset"}},l.a.createElement("section",{className:or.a.content,style:{height:ra!=null&&ra.open_evaluate?"calc(100vh - 130px)":"calc(100vh - 60px)"}},l.a.createElement("section",{className:or.a.rightCotainer,style:{width:Ro}},l.a.createElement("main",{className:or.a.main,style:{height:"100%"}},l.a.createElement(u.Fragment,null,l.a.createElement("div",{className:"".concat(or.a.dataSetButton," ").concat(ta?or.a.dataSetOpen:""),onClick:function(){return pa(!ta)}},l.a.createElement("span",{className:or.a.dataSetText},"\u6570\u636E\u96C6")),l.a.createElement("iframe",{frameBorder:0,id:"taskJupyterIframe",width:"100%",height:"100%",allow:"geolocation; microphone; camera; midi; encrypted-media;",src:Ct==null?void 0:Ct.url}))))))},Or=Object(C.a)(function(me){var Ze=me.loading,mt=me.globalSetting;return{globalSetting:mt,loading:Ze}})(mo),qr=h("E1Sb"),$r=h.n(qr),eo=h("nAPy"),So=h.n(eo),to=h("WkQV"),Ao=h("Cy2x"),_o=h("fr4D"),no="FETCH_TASK_START",vo="FETCH_TASK_FAILURE",Lr="FETCH_TASK_SUCCESS",Na="UPDATE_TASK_DATA",go="HIDE_EVALUATE_RESULT",Xr="SHOW_EVALUATE_RESULT",_n="UPDATE_TIMESTRAP",fn="MOVE_X",Fn="MOVE_Y",ba="TRIGGER_RIGHT_PANEL_MASK ",Hr="SET_ACTIVE_INDEX",wo="GET_TASK_LIST",bo="SHOW_TASK_LIST",Oo="HIDE_TASK_LIST",To="SET_TASK_STAR",si="TRIGGER_ENLARGE_UNITY3D ",jo="TRIGGER_TAB_FIXED ",li="GET_DISCUSSES",Uo="SHOW_DISCUSSES_LOADING",Ko="TOP_OR_DOWN_DISCUSS",ui="PLUS_DISCUSS",ci="SET_ACTION_TYPE",Fo="SHOW_REWARD_DIALOG",di="CANCEL_REWARD_DIALOG",gi="SET_REWARD",ce="ACTIVE_DISCUSS_INDEX",Ie="CREATE_DISCUSS",Ke="DISABLE_DISCUSS",ge="SHOW_ANSWER_LOADING",X="FETCH_ANSWER_INFO",re="HIGH_TIP_MODAL",G="SHOW_TIP_MODAL",_e="SELECT_UNLOCK_ANSWER",Ee="SET_CHOOSE_ANSWERS",Fe="EVAL_CHOOSE_START",je="EVAL_CHOOSE_END",Je="SHOW_REP_loading",nt="FETCH_REP_CONTENT",ut="EDIT_REP_CONTENT",dt="SET_REP_PATH",_t="SHOW_EVALUATE_LOADING",Nt="HIDE_EVALUATE_LOADING",tn="SET_EVALUATE_MESSAGE",zt="SET_SHOW_DIR",ln="SET_EDITOR_SETTING",on="SET_EDITOR_THEME",nn="SET_EDITOR_FONTSIZE",Jt="SET_REPOS",Cn="SHOW_PATH_LIST",un="HIDE_PATH_LIST",$n="HIDE_PICTURE_VIEW",Mn="SHOW_PICTURE_VIEW",It="SHOW_NOTICE",Lt="HIDE_NOTICE",mn="SET_TAB_INDEX",vn="SET_SSH_TABS",Tt="SET_SSH_CONFIGDATA",xn="SET_SSH_CONFIGDATAARR",Gn="SET_VNC_LOADING ",Sn="ON_TAB_TO_SPACE ",jn=n.a.DirectoryTree,aa=["jpg","png","gif","jpeg","jar","doc","pdf","xsl","ppt","mp3","mp4"],Oa={moveX:"40%",moveY:0,loading:!0,isError:!1,taskData:{game:{}},evalData:null,lastedGetTaskInfoTime:0,codeRepData:{content:"",language:"c",currentPath:"",paths:[],lastedUpdateTime:0,loading:!1},showEvalResult:!1,showPictureView:!1,isPictureView:!1,showDragMask:!1,webDisplayUrl:"",evaluateLoading:!1,resetVncLoading:!1,evaluateMessage:"",showNotice:!1,timestamp:"",showDocuments:!1,repos:null};function Ha(me,Ze){switch(Ze.type){case fn:return Object(s.a)(Object(s.a)({},me),{},{moveX:Ze.payload});case Fn:return Object(s.a)(Object(s.a)({},me),{},{moveY:Ze.payload});case Je:return Object(s.a)(Object(s.a)({},me),{},{codeRepData:Ze.payload});case nt:return Object(s.a)(Object(s.a)({},me),{},{codeRepData:Ze.payload});case ut:return Object(s.a)(Object(s.a)({},me),{},{codeRepData:Object(s.a)(Object(s.a)({},me.codeRepData),Ze.payload)});case Xr:return Object(s.a)(Object(s.a)({},me),{},{evaluateLoading:!1,showEvalResult:!0});case _n:return Object(s.a)(Object(s.a)({},me),{},{timestamp:Ze.payload});case go:return Object(s.a)(Object(s.a)({},me),{},{showEvalResult:!1});case no:return Object(s.a)(Object(s.a)({},me),{},{loading:!0});case Na:return Object(s.a)(Object(s.a)({},me),Ze.payload);case ba:return Object(s.a)(Object(s.a)({},me),{},{showDragMask:Ze.payload});case vo:return Object(s.a)(Object(s.a)({},me),{},{loading:!1,isError:!0});case Lr:return Object(s.a)(Object(s.a)({},me),Ze.payload);case _t:return Object(s.a)(Object(s.a)({},me),{},{evaluateLoading:!0});case Nt:return Object(s.a)(Object(s.a)({},me),{},{evaluateLoading:!1});case tn:return Object(s.a)(Object(s.a)({},me),{},{evaluateMessage:Ze.payload});case zt:return Object(s.a)(Object(s.a)({},me),{},{showDocuments:Ze.payload});case Jt:return Object(s.a)(Object(s.a)({},me),Ze.payload);case It:return Object(s.a)(Object(s.a)({},me),{},{showNotice:!0});case Lt:return Object(s.a)(Object(s.a)({},me),{},{showNotice:!1});case $n:return Object(s.a)(Object(s.a)({},me),{},{showPictureView:!1});case Mn:return Object(s.a)(Object(s.a)({},me),{},{showPictureView:!0});case Gn:return Object(s.a)(Object(s.a)({},me),{},{resetVncLoading:Ze.payload});default:throw new Error}}var ca=I.default=function(me){var Ze,mt=me.match,ht=me.history,Ct=Object(i.a)(me,["match","history"]);console.log("props:",Ct);var xt=Object(g.i)(),Vt=Object(g.h)().query,St=Object(u.useReducer)(Ha,Oa),hn=Object(o.a)(St,2),gt=hn[0],ft=hn[1],Ht=Object(u.useState)(1),kt=Object(o.a)(Ht,2),wt=kt[0],Ut=kt[1],An=Object(u.useState)(xt.taskId),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useRef)(),gn=Object(u.useRef)(),wn=Object(u.useRef)(),bn=Object(u.useState)(),ea=Object(o.a)(bn,2),Ta=ea[0],Aa=ea[1],Ia=ht.location;Object(u.useEffect)(function(){console.log("_params:",xt),ma(xt.taskId),Object(C.c)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1})},[xt]);var nr=gt.moveX,lt=gt.taskData,da=gt.moveY,Ra=gt.evalData,yn=gt.showEvalResult,Zt=gt.codeRepData,kn=gt.loading,sa=gt.evaluateLoading,Ln=gt.evaluateMessage,ra=gt.showDocuments,fa=gt.repos,ar=gt.showPictureView,pr=gt.showNotice,ir=gt.webDisplayUrl,Pa=gt.isPictureView,sr=gt.resetVncLoading,mr=gt.timestamp,_r=gt.lastedGetTaskInfoTime,vr=gt.showDragMask,Ma=lt.st,an=lt.challenge,ya=lt.shixun,gr=lt.is_teacher,At=lt.game,cn=lt.has_answer,Un=lt.vnc_url,Zn=lt.git_url,_a=lt.user,rn=lt.myshixun,Da=lt.discusses_count,Ea=lt.user_praise,ha=lt.praise_count,Kn=lt.tpm_cases_modified,Bn=lt.tpm_modified,ta=lt.tpm_script_modified,pa=lt.mirror_name,ja=lt.mirror_description,ka=lt.tomcat_url,Ca=lt.unity_3d_routes,Gt=lt.with_code_file,qt=lt.unity_3d_result,Xn=lt.next_game,oa=lt.prev_game,xa=Zt.currentPath,Ua=Zt.paths,Ka=Zt.content,Ya=Zt.language,Fa=Zt.lastedUpdateTime,Tr=(Bn||ta)&&Ma===0,br=(Kn||Tr)&&rn.system_tip===!0,Wr=(pa||[]).indexOf("Html")!==-1,Rr=Object(u.useMemo)(function(){return xa&&Ua?Ua.indexOf(xa)>=0:!1},[xa,Ua]),yr=Object(u.useMemo)(function(){return Ca&&!Gt||(an==null?void 0:an.thiry_party)||Un},[Un,Gt,Ca]);Object(u.useEffect)(function(){if(Ca&&Gt){ft({type:_t});var Et=jt.a.subscribe("unity3d-load-end",function(){ft({type:Nt})});return Et}},[Wt,Ca,an==null?void 0:an.thiry_party,Gt,ft]),Object(u.useEffect)(function(){ao()},[]);function ao(){return Er.apply(this,arguments)}function Er(){return Er=Object(c.a)(e.a.mark(function Et(){var bt;return e.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(oe.a)("/api/sci/projects/".concat(Wt,".json"),{method:"get"});case 2:bt=Mt.sent,Aa(bt);case 4:case"end":return Mt.stop()}},Et)})),Er.apply(this,arguments)}function zr(Et){return Hn.apply(this,arguments)}function Hn(){return Hn=Object(c.a)(e.a.mark(function Et(bt){var Dt,Mt,yt;return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.prev=0,Pt.next=3,Object(_o.i)(Wt);case 3:if(Dt=Pt.sent,Mt=Dt.status,!(Mt===401)){Pt.next=10;break}return ht.replace("/user/login",{from:Ia.pathname}),Pt.abrupt("return");case 10:if(!(Mt===-3)){Pt.next=14;break}Object(U.o)({onCancel:function(){window.location.href="/"}}),Pt.next=25;break;case 14:if(!(Mt===403)){Pt.next=18;break}ht.replace("/403"),Pt.next=25;break;case 18:if(!(Mt===404)){Pt.next=23;break}return ht.replace("/404"),Pt.abrupt("return");case 23:yt={loading:!1,isError:!1,taskData:Dt},bt||ft({type:Lr,payload:yt});case 25:Dt.mirror_type==="webssh"&&setTimeout(function(){jt.a.publish("create-socket",1)},1e3),Pt.next=32;break;case 28:Pt.prev=28,Pt.t0=Pt.catch(0),console.log(Pt.t0),bt||ft({type:vo});case 32:case"end":return Pt.stop()}},Et,null,[[0,28]])})),Hn.apply(this,arguments)}Object(u.useEffect)(function(){var Et=!1;return zr(Et),function(){Et=!0}},[ft,Wt]),Object(u.useEffect)(function(){var Et=!1;function bt(){return Dt.apply(this,arguments)}function Dt(){return Dt=Object(c.a)(e.a.mark(function Mt(){var yt,Yt,Pt,en,ur,Sa;return e.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:if(ft({type:Je,payload:Object(s.a)(Object(s.a)({},Zt),{},{loading:!0})}),!(Ca&&!Gt||an!=null&&an.thiry_party)){Za.next=3;break}return Za.abrupt("return");case 3:return Za.next=5,rt(Wt,{path:xa});case 5:if(yt=Za.sent,!Et)if(yt.status===0)d.b.info(yt.message),ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{loading:!1})});else{try{(yt==null?void 0:yt.file_type)==="txt"?Yt=((Pt=Yt)===null||Pt===void 0?void 0:Pt.length)===0?Yt:window.decodeURIComponent(escape(window.atob(yt==null||((en=yt.content)===null||en===void 0)?void 0:en.content))):Yt=yt==null||((ur=yt.content)===null||ur===void 0)?void 0:ur.content}catch(Pr){Yt=window.atob(yt==null||((Sa=yt.content)===null||Sa===void 0)?void 0:Sa.content),d.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8"),console.log("err:",Pr)}ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{content:Yt,language:yt.language,file_type:yt.file_type,filename:yt.filename,lastedUpdateTime:0,loading:!1})})}case 7:case"end":return Za.stop()}},Mt)})),Dt.apply(this,arguments)}if(Ma===0&&xa&&ya.hide_code!==1)return bt(),function(){Et=!0}},[Ma,xa,_r,mr]);var In=function(){var Et=Object(c.a)(e.a.mark(function bt(){var Dt,Mt,yt=arguments;return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(Dt=yt.length>0&&yt[0]!==void 0?yt[0]:0,console.log("lastedUpdateTime:",Rr,Dt),!(Ma===0&&Fa>0&&Rr||Dt)){Pt.next=8;break}return Pt.next=5,V(rn.identifier,{path:xa,evaluate:Dt,content:Ka,game_id:At.id});case 5:return Mt=Pt.sent,ft({type:ut,payload:{lastedUpdateTime:0}}),Pt.abrupt("return",Mt);case 8:return Pt.abrupt("return",!0);case 9:case"end":return Pt.stop()}},bt)}));return function(){return Et.apply(this,arguments)}}(),Ba=Object(u.useCallback)(function(){},[In]);Object(u.useEffect)(function(){var Et=jt.a.subscribe("unlock-test-case",function(){var bt;r.a.confirm((bt={centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:l.a.createElement(Wa,{score:an.score,is_teacher:gr})},Object(m.a)(bt,"centered",!0),Object(m.a)(bt,"onOk",za),bt))});return Et},[za,an,gr]);var za=Object(u.useCallback)(Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt,yt,Yt;return e.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return en.next=2,Te(At.identifier);case 2:if(bt=en.sent,Dt=bt.test_sets,Mt=bt.message,yt=bt.status,!(yt===-1)){en.next=7;break}return d.b.info(Mt),en.abrupt("return");case 7:Yt=lt.user.grade,lt.user.grade=Yt-an.score*2,lt.test_sets=Dt,lt.game.test_sets_view=!0,ft({type:Na,payload:{taskData:lt}});case 12:case"end":return en.stop()}},Et)})),[At,an,ft]);Object(u.useEffect)(function(){if(!yr||Un){function Et(Dt){sn.current&&ft({type:fn,payload:Dt.pageX}),gn.current&&ft({type:Fn,payload:Dt.pageY})}function bt(){sn.current=!1,gn.current=!1,ft({type:ba,payload:!1}),document.onselectstart=null}return document.addEventListener("mousemove",Et),document.addEventListener("mouseup",bt),function(){document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",bt)}}},[gn.current,sn.current,yr,ft]);function Mr(Et){var bt=lt.user.grade;lt.user.grade=bt-Et,ft({type:Na,payload:{taskData:lt}})}wn.current=function(){gt.moveX=gt.moveX!==.01?.01:"40%",ft({type:fn,payload:gt.moveX})};function Vr(){yr?wn.current():(document.onselectstart=function(){return!1},sn.current=!0,ft({type:ba,payload:!0}))}function Ro(){document.onselectstart=function(){return!1},gn.current=!0,(lt!=null&<.vnc_url||lt!=null&<.windows_vnc||lt!=null&<.linux_vnc||lt!=null&<.virtual_machine||(ya==null?void 0:ya.hide_code)===2)&&ft({type:ba,payload:!0})}function Io(Et){Et===.01?ft({type:Fn,payload:0}):ft({type:Fn,payload:.01})}function Qn(Et){Et===0?ft({type:Fn,payload:"100%"}):ft({type:Fn,payload:0})}Object(u.useEffect)(function(){var Et=jt.a.subscribe("vnc-enlarge",function(){wn.current()});return Et},[]);function $t(){In()}function Kt(){return ia.apply(this,arguments)}function ia(){return ia=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt;return e.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Be(Wt,{path:xa});case 2:bt=Yt.sent,Dt=bt.content,Mt=bt.language,ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{content:Dt,language:Mt,lastedUpdateTime:0,loading:!1})});case 5:case"end":return Yt.stop()}},Et)})),ia.apply(this,arguments)}function En(){return Cr.apply(this,arguments)}function Cr(){return Cr=Object(c.a)(e.a.mark(function Et(){var bt,Dt;return e.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.next=2,xe(lt==null||((bt=lt.myshixun)===null||bt===void 0)?void 0:bt.identifier,{});case 2:return Dt=yt.sent,zr(),yt.abrupt("return",Dt);case 5:case"end":return yt.stop()}},Et)})),Cr.apply(this,arguments)}function Ja(){return lr.apply(this,arguments)}function lr(){return lr=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt;return e.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Le(Wt,{path:xa});case 2:bt=Yt.sent,Dt=bt.content,Mt=bt.language,ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{content:Dt,language:Mt,lastedUpdateTime:0,loading:!1})});case 5:case"end":return Yt.stop()}},Et)})),lr.apply(this,arguments)}Object(u.useEffect)(function(){if(Ma===0&&an&&an.path){var Et=an.path.split("\uFF1B").filter(function(bt){return!!bt});ft({type:ut,payload:{currentPath:Et[0],paths:Et}})}},[an,Ma]),Object(u.useEffect)(function(){ya&&Object(U.T)(ya.name||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199")},[ya]);function xr(){return Bo.apply(this,arguments)}function Bo(){return Bo=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt;return e.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,at(Wt);case 2:bt=Yt.sent,Dt=bt.praise_count,Mt=bt.praise,lt.praise_count=Dt,lt.user_praise=Mt,ft({type:Na,payload:{taskData:lt}});case 7:case"end":return Yt.stop()}},Et)})),Bo.apply(this,arguments)}var bi=Object(u.useCallback)(function(Et){function bt(Mt){return Dt.apply(this,arguments)}function Dt(){return Dt=Object(c.a)(e.a.mark(function Mt(yt){return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:try{window.navigator.sendBeacon("".concat(ie.a.API_SERVER,"/api/tasks/").concat(Wt,"/cost_time.json?time=").concat(yt),{})}catch(en){}case 1:case"end":return Pt.stop()}},Mt)})),Dt.apply(this,arguments)}bt(Et)},[Wt]);function yi(Et){return Xo.apply(this,arguments)}function Xo(){return Xo=Object(c.a)(e.a.mark(function Et(bt){return e.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,We(Wt,ya.id,bt);case 2:lt.game.star=bt,ft({type:Na,payload:{taskData:lt}});case 4:case"end":return Mt.stop()}},Et)})),Xo.apply(this,arguments)}function Ei(){return Ho.apply(this,arguments)}function Ho(){return Ho=Object(c.a)(e.a.mark(function Et(){var bt,Dt;return e.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(fa){yt.next=8;break}return yt.next=3,R(rn.identifier);case 3:bt=yt.sent,Dt=bt.trees,ft({type:Jt,payload:{showDocuments:!0,repos:Sr(Dt)}}),yt.next=9;break;case 8:ft({type:zt,payload:!0});case 9:case"end":return yt.stop()}},Et)})),Ho.apply(this,arguments)}function Ci(Et){return Wo.apply(this,arguments)}function Wo(){return Wo=Object(c.a)(e.a.mark(function Et(bt){var Dt,Mt,yt;return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Dt=bt.props,Mt=Dt.children,yt=Dt.eventKey,Pt.abrupt("return",new Promise(function(){var en=Object(c.a)(e.a.mark(function ur(Sa){var Ir,Za,Pr;return e.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return Mt&&Mt.length>0&&Sa(),la.next=3,R(rn.identifier,{path:yt});case 3:Ir=la.sent,Za=Ir.trees,Pr=Nn(fa,yt,Sr(Za,yt)),ft({type:Jt,payload:{repos:Object(S.a)(Pr)}}),Sa();case 8:case"end":return la.stop()}},ur)}));return function(ur){return en.apply(this,arguments)}}()));case 2:case"end":return Pt.stop()}},Et)})),Wo.apply(this,arguments)}function xi(){ft({type:zt,payload:!1})}function Fi(Et){var bt=Et.gold,Dt=Et.experience,Mt=Et.next_game,yt=Et.next_shixun,Yt=Et.subject_done,Pt=Object(i.a)(Et,["gold","experience","next_game","next_shixun","subject_done"]),en=Pt.challenge_chooses_count===Pt.choose_correct_num,ur={had_submmit:!0,test_sets:Pt.test_sets,challenge_chooses_count:Pt.challenge_chooses_count,choose_correct_num:Pt.choose_correct_num};lt.choose_test_cases=ur,en&&(lt.game.status=2,lt.next_game=Mt,lt.user.grade+=bt),en&&At.status!==2&&jt.a.publish("update-cost-time"),ft({type:Na,payload:{taskData:lt,evalData:{gold:bt,experience:Dt,next_game:Mt,next_shixun:yt,subject_done:Yt},showEvalResult:en}}),jt.a.publish("eval-code-finish")}function Bi(){return zo.apply(this,arguments)}function zo(){return zo=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt,yt,Yt,Pt,en,ur,Sa,Ir,Za,Pr;return e.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.prev=0,ft({type:_t}),la.next=4,In(1);case 4:if(bt=la.sent,Dt=bt.resubmit,Mt=bt.sec_key,yt=bt.content_modified,!(bt.status&&bt.status<0)){la.next=10;break}return jt.a.publish("eval-code-finish"),ft({type:Na,payload:{evaluateLoading:!1}}),la.abrupt("return");case 10:return Yt={sec_key:Mt,resubmit:Dt,first:1,content_modified:yt},Vt.type==="exercises"&&(Yt.extras={exercise_id:Vt.exercisesId,question_id:Vt.questionId,challenge_id:(Pt=lt.challenge)===null||Pt===void 0?void 0:Pt.id,subject_id:Vt.subject_id||""}),la.next=14,De(Wt,Yt);case 14:if(en=la.sent,!(en.status===-1&&Vt.type==="exercises")){la.next=18;break}return window.parent.location.href="/classrooms/".concat(Ia.query.coursesId,"/exercise/").concat(Ia.query.exercisesId,"/detail"),la.abrupt("return");case 18:return en.status===1&&(Pr=function(){return Pr=Object(c.a)(e.a.mark(function hi(Po,Zo,pi){var qo,$o,mi,va,No,_i,ei,ti,ni,vi,ai,ri,oi,ii;return e.a.wrap(function(Mo){for(;;)switch(Mo.prev=Mo.next){case 0:return $o=pi++*Po,$o/1e3>Zo&&(Ir=!0),Mo.next=4,Ne(Wt,{resubmit:Dt,time_out:Ir,port:en.port,sec_key:Mt,challenge_id:lt==null||((qo=lt.challenge)===null||qo===void 0)?void 0:qo.id,subject_id:Vt.subject_id||""});case 4:mi=Mo.sent,va=mi,No=va.status,_i=va.running_code_message,ei=va.port,ti=va.web_route,ft({type:tn,payload:_i}),+No>-1||$o/1e3>Zo?(At.status!==2&&No===2&&(lt.game.status=2,lt.user.grade+=va.gold,jt.a.publish("update-cost-time")),lt.test_sets=va.test_sets||[],lt.last_compile_output=va.last_compile_output,lt.test_sets_count=va.test_sets_count,lt.sets_error_count=va.sets_error_count,lt.record_consume_time=va.record_consume_time,lt.next_game=va.next_game,lt.prev_game=va.prev_game,ni="",vi=pa.indexOf("Web")!==-1||pa.indexOf("JFinal")!==-1,vi&&ei!=-1&&ti&&(ni="".concat(ka,":").concat(ei,"/").concat(ti)),ai=Ga(va.test_sets),ri=va.picture>0&&ai,oi=No===2&&!Ir,Ir?d.b.info("\u672C\u6B21\u8BC4\u6D4B\u8D85\u65F6"):oi||d.b.info("\u8BC4\u6D4B\u672A\u901A\u8FC7\uFF0C\u8BE6\u60C5\u53C2\u89C1\u201C\u6D4B\u8BD5\u7ED3\u679C\u201D"),ii={taskData:lt,evalData:{gold:va.gold,experience:va.experience,next_game:va.next_game,next_shixun:va.next_shixun},evaluateLoading:!1,evaluateMessage:"",webDisplayUrl:ni,showPictureView:Ca||an!=null&&an.thiry_party?!1:ri,isPictureView:ri},Ca&&Gt||an!=null&&an.thiry_party?(jt.a.publish("evaluate-unity3d-result",{state:"user",data:{user:_a}}),jt.a.publish("evaluate-unity3d-finish"),(qt||ai)&&jt.a.publish("evaluate-unity3d-result",va.unity_3d_result)):ii.showEvalResult=oi,ft({type:Na,payload:ii}),jt.a.publish("eval-code-finish")):setTimeout(function(){Za(Po,an.exec_time+11,pi++)},Po);case 9:case"end":return Mo.stop()}},hi)})),Pr.apply(this,arguments)},Za=function(hi,Po,Zo){return Pr.apply(this,arguments)},ur=1,Sa=1e3,Ir=!1,Za(Sa,an.exec_time+11,ur++)),la.abrupt("return",res);case 22:la.prev=22,la.t0=la.catch(0),console.log("-------eval code",la.t0);case 25:case"end":return la.stop()}},Et,null,[[0,22]])})),zo.apply(this,arguments)}function Si(Et){ft({type:ut,payload:{content:Et,lastedUpdateTime:new Date().getTime()}})}function Ai(){ft({type:go})}function Xi(){ft({type:$n})}function wi(){ft({type:Mn})}function fi(){ft({type:It})}function Oi(Et,bt){return Vo.apply(this,arguments)}function Vo(){return Vo=Object(c.a)(e.a.mark(function Et(bt,Dt){var Mt,yt,Yt;return e.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(Mt=Dt.node,!Mt.isLeaf){en.next=7;break}return yt=bt[0],Yt=yt.split(".").pop().toLowerCase(),en.next=6,In();case 6:ft({type:ut,payload:{currentPath:yt}});case 7:case"end":return en.stop()}},Et)})),Vo.apply(this,arguments)}function Ti(Et){return Go.apply(this,arguments)}function Go(){return Go=Object(c.a)(e.a.mark(function Et(bt){return e.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,In();case 2:ft({type:ut,payload:{currentPath:bt}});case 3:case"end":return Mt.stop()}},Et)})),Go.apply(this,arguments)}function Ri(){lt.myshixun.system_tip=!0,ft({type:Na,payload:{taskData:lt,showNotice:!1}})}function Mi(Et,bt){lt.challenge.path=Et,lt.myshixun.system_tip=!1,ft({type:Na,payload:{taskData:Object(s.a)(Object(s.a)({},lt),{},{tpm_cases_modified:!1,tpm_modified:!1,tpm_script_modified:!1}),showNotice:!1,timestamp:bt}})}function Di(){ft({type:Lt})}function ki(){return Qo.apply(this,arguments)}function Qo(){return Qo=Object(c.a)(e.a.mark(function Et(){var bt,Dt;return e.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.prev=0,ft({type:Gn,payload:!0}),jt.a.publish("vnc-reseting"),yt.next=5,ye(xt.taskId);case 5:bt=yt.sent,Dt=bt.vnc_url,lt.vnc_url=Dt+"×tamp="+new Date().getTime(),jt.a.publish("vnc-reseting-done",bt),ft({type:Na,payload:{taskData:lt,resetVncLoading:!1}}),yt.next=15;break;case 12:yt.prev=12,yt.t0=yt.catch(0),console.log(yt.t0);case 15:case"end":return yt.stop()}},Et,null,[[0,12]])})),Qo.apply(this,arguments)}function Li(Et){return Yo.apply(this,arguments)}function Yo(){return Yo=Object(c.a)(e.a.mark(function Et(bt){var Dt,Mt,yt,Yt,Pt,en;return e.a.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:if(Dt=bt.GameState,Mt=bt.Data,yt=bt.challenge,console.log("match:",mt),!(yt==="info")){Sa.next=6;break}jt.a.publish("evaluate-unity3d-result",{state:"3d_callback",data:{challenge_info:Object(s.a)({},lt.challenge)}}),Sa.next=16;break;case 6:if(!(Dt==="Success")){Sa.next=16;break}if(!(qt||!Gt)){Sa.next=15;break}return Sa.next=10,ot(Wt,Nr.Base64.encode(Wt+new Date().getTime()),Mt);case 10:Yt=Sa.sent,Pt=Yt.status,en=Yt.data,Pt==0&&(At.status!==2&&(lt.game.status=2,lt.user.grade+=en.gold,jt.a.publish("update-cost-time")),jt.a.publish("evaluate-unity3d-result",{state:"userAndtime",data:{user:_a,open_time:en.open_time,end_time:en.end_time}}),ft({type:Na,payload:{taskData:lt,evalData:{gold:en.gold,experience:en.experience,next_game:en.next_game},evaluateLoading:!1,showEvalResult:!0}})),Sa.next=16;break;case 15:ft({type:Xr});case 16:case"end":return Sa.stop()}},Et)})),Yo.apply(this,arguments)}function Ii(){}function Pi(){return Jo.apply(this,arguments)}function Jo(){return Jo=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt,yt,Yt;return e.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return en.next=2,st(Wt);case 2:return yt=en.sent,(bt=yt)!==null&&bt!==void 0&&(Dt=bt.data)!==null&&Dt!==void 0&&Dt.remaining_time&&jt.a.publish("update-windows-time",(Yt=yt)===null||Yt===void 0?void 0:Yt.data),en.abrupt("return",(Mt=yt)===null||Mt===void 0?void 0:Mt.data);case 5:case"end":return en.stop()}},Et)})),Jo.apply(this,arguments)}var Ni="80px",ji="calc(100vw - 4px - ".concat(Ni,")"),Hi=(Ze={game:At,taskId:Wt,user_praise:Ea,praise_count:ha,st:Ma,challenge:an,rank_name:lt.rank_name,shixun:ya,is_teacher:gr,has_answer:cn,unity_3d_routes:Ca,with_code_file:Gt,onEvaluateCallback:Ii,onGetUnity3dMessage:Li},Object(m.a)(Ze,"taskId",Wt),Object(m.a)(Ze,"myshixun",rn),Object(m.a)(Ze,"user",_a),Object(m.a)(Ze,"discusses_count",Da),Object(m.a)(Ze,"onPlusOrCancelPraise",xr),Object(m.a)(Ze,"minuxUserGrade",Mr),Object(m.a)(Ze,"taskData",lt),Ze),Wi={showNotice:pr||(Kn||Tr)&&rn.system_tip===!1,tpm_cases_modified:Kn,tpm_modified:Bn,tpm_script_modified:ta,st:Ma,taskId:Wt,myshixunId:(rn||{}).id,onNextCallback:Ri,onUpdateCallback:Mi,onUpdateFailure:Di},zi=Object(s.a)(Object(s.a)({},Ra),{},{isPictureView:Pa,history:ht,webDisplayUrl:ir,onShowPictureView:wi,star:At&&At.star,onStarChange:yi,onCloseResult:Ai}),Vi={lastedGetTaskInfoTime:_r,isEditPath:Rr,taskData:lt,codeRepData:Zt,moveY:da,evaluateMessage:Ln,evaluateLoading:sa,isNotice:br,isHtml:Wr,onChangePath:Ti,onResizeSetContainer:Io,onEditRepCode:Si,onUpdateCode:In,onResizeYStart:Ro,onShowDir:Ei,onResetCode:Kt,onResetGitCode:En,onResizeCodeArea:Qn,onResetPassedCode:Ja,onFinishDisplayHtml:$t,onShowNotice:fi};return l.a.createElement(u.Fragment,null,kn?l.a.createElement(y.a,{message:"\u52AA\u529B\u8BF7\u6C42\u6570\u636E\u4E2D..",className:"tpi-spin"}):l.a.createElement(u.Fragment,null,l.a.createElement("div",{className:"task-wrapper"},vr&&l.a.createElement("div",{className:"draging-mask"}),l.a.createElement(qa,{difficulty:an==null?void 0:an.difficulty,mirror_description:ja,history:ht,git_url:Zn,shixun:ya,taskData:lt,lastedGetTaskInfoTime:_r,onAddVncTime:Pi,taskId:Wt,isNotice:br,resetVncLoading:sr,onResetVnc:ki,onResetGitCode:En,vnc_url:Un,linux_vnc:lt==null?void 0:lt.linux_vnc,window_vnc_url:(lt==null?void 0:lt.windows_vnc)||(lt==null?void 0:lt.virtual_machine),remaining_time:lt==null?void 0:lt.remaining_time,onShowNotice:fi,game:At,user:_a,st:Ma,onUpdateCode:In,onUpdateCostTime:bi,unity_3d_routes:Ca&&!Gt||(an==null?void 0:an.thiry_party)}),l.a.createElement("div",{className:"tasks-body2"},l.a.createElement("section",{className:"left-panel"},l.a.createElement("ul",null,l.a.createElement("li",{onClick:function(){return Ut(1)},className:wt==1?"on":""},l.a.createElement("span",{className:"iconfont icon-huanjing"}),l.a.createElement("span",null,"\u73AF\u5883")),l.a.createElement("li",{onClick:function(){return Ut(2)},className:wt==2?"on":""},l.a.createElement("span",{className:"iconfont icon-shujuwajue"}),l.a.createElement("span",null,"\u6570\u636E\u96C6")),l.a.createElement("li",{onClick:function(){return Ut(3)},className:wt==3?"on":""},l.a.createElement("span",{className:"iconfont icon-a-chengyuan1"}),l.a.createElement("span",null,"\u5408\u4F5C\u8005")))),l.a.createElement("section",{id:"task-right-panel",className:"right-panel ".concat(Un||lt!=null&<.windows_vnc||lt!=null&<.linux_vnc||lt!=null&<.virtual_machine?"vnc":""),style:{width:ji,minWidth:"500px"}},l.a.createElement("div",{style:{height:"100%"},className:wt===1?"":"hide"},lt.mirror_type==="webssh"&&l.a.createElement(so,{sshConfigData:lt||{},sid:1}),lt.mirror_type==="graph"&&l.a.createElement(fo,{taskData:lt,evaluateMessage:Ln,language:Ya,evaluateLoading:sa,onEval:Ct.onEvalCode}),(lt.mirror_type==="jupyterlab"||lt.mirror_type==="jupyternotebook")&&l.a.createElement(Or,{taskData:lt,evaluateMessage:Ln,language:Ya,evaluateLoading:sa,onEval:Ct.onEvalCode})),l.a.createElement("div",{className:wt===2?"data_env_lists":"hide"},l.a.createElement("div",{className:"data_header"},"\u6570\u636E\u96C6 \uFF08",Ta==null?void 0:Ta.data_count,"\uFF09"),l.a.createElement("div",{style:{padding:20}},l.a.createElement(to.a,{detail:Ta}))),l.a.createElement("div",{className:wt===3?"data_env_lists":"hide"},l.a.createElement("div",null,l.a.createElement(Ao.a,null)))))),l.a.createElement(T.a,null,l.a.createElement(k.a,{className:"setting-drawer",title:null,placement:"right",width:400,closable:!1,visible:ra,onClose:xi},l.a.createElement(jn,{className:"dir-tree",selectedKeys:["".concat(xa)],treeData:fa,onSelect:Oi,loadData:Ci})))))};function Wa(me){var Ze=me.is_teacher,mt=me.score;return l.a.createElement(u.Fragment,null,Ze?l.a.createElement(u.Fragment,null,l.a.createElement("div",null,"\u5DF2\u7ECF\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u514D\u91D1\u5E01\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u3002"),l.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(mt*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")),l.a.createElement("a",{href:"/account/certification",class:"to-certification-link",target:"_blank"},"\u7ACB\u5373\u8BA4\u8BC1")):l.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(mt*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")))}function hr(me){var Ze=me.noDragging,mt=me.moveX,ht=me.vnc_url;return l.a.createElement(u.Fragment,null,Ze?l.a.createElement("a",{className:"trapezoid ".concat(mt===.01?"enlarge":"")},l.a.createElement("img",{src:mt===.01?$r.a:So.a,alt:"resize-icon",width:20})):l.a.createElement("a",{className:"btn-resize",draggable:!1},l.a.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13",draggable:!1},l.a.createElement("path",{draggable:!1,d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"}))))}},"4qgm":function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"500L":function(Re,I,h){"use strict";h.d(I,"a",function(){return y});var S=h("+L6B"),f=h("2/Rp"),k=h("2qtc"),m=h("kLXV"),_=h("9og8"),r=h("k1fw"),p=h("miYZ"),d=h("tsqr"),c=h("oBTY"),o=h("tJVT"),i=h("DZo9"),s=h("8z0m"),a=h("WmNS"),n=h.n(a),t=h("q1tI"),e=h.n(t),u=h("m3rI"),l=h("wzkS"),g=h("y5JW"),C=h("LtfV"),x=s.a.Dragger;function y(T){var A=[];return T&&T.length>0&&(A=T.map(function(E){return{uid:E.id,id:E.id,name:E.title+g.c+E.filesize,url:E.url,filesize:E.filesize,status:"done",response:{id:E.id}}})),A}I.b=function(T){var A=T.value,E=T.onChange,b=T.action,v=T.className,O=T.maxSize,D=O===void 0?150:O,W=T.title,Q=W===void 0?"\u4E0A\u4F20\u9644\u4EF6":W,j=T.showRemoveModal,Z=j===void 0?!1:j,Y=T.accept,w=Y===void 0?"":Y,P=T.additionalText,L=T.isDragger,K=T.number,M=K===void 0?1e3:K,H=T.aloneClear,ae=H===void 0?!1:H,ve=T.restrict,de=ve===void 0?!0:ve,be=Object(t.useState)(!1),z=Object(o.a)(be,2),ne=z[0],fe=z[1],ie=Object(t.useState)(A||[]),oe=Object(o.a)(ie,2),U=oe[0],ee=oe[1];Object(t.useEffect)(function(){A&&(ee(Object(c.a)(A)),M===(A==null?void 0:A.length)&&fe(!0))},[A]);var J=function(){setTimeout(function(){U.pop(),ee(Object(c.a)(U))},500)},le={multiple:!0,disabled:ne,accept:w,withCredentials:!0,fileList:U,beforeUpload:function($e,et){var Ve=$e.size/1024/1024;return U.concat(et).length>M?(U.pop(),ee(Object(c.a)(U)),d.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(M,"\u4E2A\u6587\u4EF6")),ae?Promise.reject():(J(),!1)):Ve=M?fe(!0):fe(!1),ee(Object(c.a)(et)),et=et.map(function(Ve){var ke;if(Ve!=null&&(ke=Ve.response)!==null&&ke!==void 0&&ke.id){var Oe;Ve.url="/api/attachments/".concat(Ve==null||((Oe=Ve.response)===null||Oe===void 0)?void 0:Oe.id)}return Ve.name.indexOf(g.c)===-1&&(Ve.name="".concat(Ve.name).concat(g.c).concat(Object(g.a)(Ve.size))),Object(r.a)({},Ve)}),console.log("info:",$e),E(et)},onRemove:function(){var Qe=Object(_.a)(n.a.mark(function et(Ve){var ke;return n.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(ke=function(){var ue=Object(_.a)(n.a.mark(function N(){var te,F;return n.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(te=Ve.response?Ve.response.id:Ve.id,!te){tt.next=8;break}return tt.next=4,Object(l.d)(Ve.response?Ve.response.id:Ve.uid);case 4:return F=tt.sent,tt.abrupt("return",F);case 8:return tt.abrupt("return",!0);case 9:case"end":return tt.stop()}},N)}));return function(){return ue.apply(this,arguments)}}(),!Z){Ce.next=5;break}return Ce.abrupt("return",new Promise(function(ue,N){m.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var te=Object(_.a)(n.a.mark(function Ae(){var tt;return n.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,ke();case 2:tt=We.sent,d.b.success("\u5220\u9664\u6210\u529F"),ue(!0);case 5:case"end":return We.stop()}},Ae)}));function F(){return te.apply(this,arguments)}return F}(),onCancel:function(){return ue(!1)}})}));case 5:return Ce.next=7,ke();case 7:return Ce.abrupt("return",Ce.sent);case 8:case"end":return Ce.stop()}},et)}));function $e(et){return Qe.apply(this,arguments)}return $e}()};function Pe(Qe){Qe.preventDefault(),Qe.stopPropagation()}return e.a.createElement("div",{className:"multi-upload ".concat(v||"")},L&&e.a.createElement(x,le,e.a.createElement("p",{className:"ant-upload-drag-icon"},e.a.createElement(C.a,null)),e.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",e.a.createElement("br",null),e.a.createElement("span",{style:{display:de?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",D,"MB) ")),P),!L&&e.a.createElement(s.a,le,e.a.createElement(f.a,{disabled:ne},Q),e.a.createElement("span",{onClick:Pe,style:{marginLeft:10,color:"#FA6400",display:de?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",D,"MB) ")))}},"55Ip":function(Re,I,h){"use strict";h.d(I,"a",function(){return g}),h.d(I,"b",function(){return E});var S=h("Ty5D"),f=h("dI71"),k=h("q1tI"),m=h.n(k),_=h("YS25"),r=h("17x9"),p=h.n(r),d=h("wx14"),c=h("zLVn"),o=h("9R94"),i=function(v){Object(f.a)(O,v);function O(){for(var W,Q=arguments.length,j=new Array(Q),Z=0;Z=0||Q.relatedTarget.className.indexOf("".concat(w,"-next"))>=0))return;v.setState({goInputText:""}),Y(v.getValidValue())},v.go=function(Q){var j=v.state.goInputText;if(j==="")return;(Q.keyCode===n.ENTER||Q.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return Object(_.a)(b,[{key:"getValidValue",value:function(){var O=this.state,D=O.goInputText,W=O.current;return!D||isNaN(D)?W:Number(D)}},{key:"getPageSizeOptions",value:function(){var O=this.props,D=O.pageSize,W=O.pageSizeOptions;return W.some(function(Q){return Q.toString()===D.toString()})?W:W.concat([D.toString()]).sort(function(Q,j){var Z=isNaN(Number(Q))?0:Number(Q),Y=isNaN(Number(j))?0:Number(j);return Z-Y})}},{key:"render",value:function(){var O=this,D=this.props,W=D.pageSize,Q=D.locale,j=D.rootPrefixCls,Z=D.changeSize,Y=D.quickGo,w=D.goButton,P=D.selectComponentClass,L=D.buildOptionText,K=D.selectPrefixCls,M=D.disabled,H=this.state.goInputText,ae="".concat(j,"-options"),ve=P,de=null,be=null,z=null;if(!Z&&!Y)return null;var ne=this.getPageSizeOptions();if(Z&&ve){var fe=ne.map(function(ie,oe){return c.a.createElement(ve.Option,{key:oe,value:ie.toString()},(L||O.buildOptionText)(ie))});de=c.a.createElement(ve,{disabled:M,prefixCls:K,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(W||ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(oe){return oe.parentNode}},fe)}return Y&&(w&&(z=typeof w=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:M,className:"".concat(ae,"-quick-jumper-button")},Q.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},w)),be=c.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},Q.jump_to,c.a.createElement("input",{disabled:M,type:"text",value:H,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Q.page,z)),c.a.createElement("li",{className:"".concat(ae)},de,be)}}]),b}(c.a.Component);t.defaultProps={pageSizeOptions:["10","20","50","100"]};var e=t,u=h("N2Kk");function l(){}function g(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A}function C(A,E,b){return b}function x(A,E,b){var v=typeof A=="undefined"?E.pageSize:A;return Math.floor((b.total-1)/v)+1}var y=function(A){Object(r.a)(b,A);var E=Object(p.a)(b);function b(v){var O;Object(m.a)(this,b),O=E.call(this,v),O.getJumpPrevPage=function(){return Math.max(1,O.state.current-(O.props.showLessItems?3:5))},O.getJumpNextPage=function(){return Math.min(x(void 0,O.state,O.props),O.state.current+(O.props.showLessItems?3:5))},O.getItemIcon=function(Z,Y){var w=O.props.prefixCls,P=Z||c.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(w,"-item-link")});return typeof Z=="function"&&(P=c.a.createElement(Z,Object(k.a)({},O.props))),P},O.savePaginationNode=function(Z){O.paginationNode=Z},O.isValid=function(Z){return g(Z)&&Z!==O.state.current},O.shouldDisplayQuickJumper=function(){var Z=O.props,Y=Z.showQuickJumper,w=Z.pageSize,P=Z.total;return P<=w?!1:Y},O.handleKeyDown=function(Z){(Z.keyCode===n.ARROW_UP||Z.keyCode===n.ARROW_DOWN)&&Z.preventDefault()},O.handleKeyUp=function(Z){var Y=O.getValidValue(Z),w=O.state.currentInputValue;Y!==w&&O.setState({currentInputValue:Y}),Z.keyCode===n.ENTER?O.handleChange(Y):Z.keyCode===n.ARROW_UP?O.handleChange(Y-1):Z.keyCode===n.ARROW_DOWN&&O.handleChange(Y+1)},O.changePageSize=function(Z){var Y=O.state.current,w=x(Z,O.state,O.props);Y=Y>w?w:Y,w===0&&(Y=O.state.current),typeof Z=="number"&&("pageSize"in O.props||O.setState({pageSize:Z}),"current"in O.props||O.setState({current:Y,currentInputValue:Y})),O.props.onShowSizeChange(Y,Z),"onChange"in O.props&&O.props.onChange&&O.props.onChange(Y,Z)},O.handleChange=function(Z){var Y=O.props.disabled,w=Z;if(O.isValid(w)&&!Y){var P=x(void 0,O.state,O.props);w>P?w=P:w<1&&(w=1),"current"in O.props||O.setState({current:w,currentInputValue:w});var L=O.state.pageSize;return O.props.onChange(w,L),w}return O.state.current},O.prev=function(){O.hasPrev()&&O.handleChange(O.state.current-1)},O.next=function(){O.hasNext()&&O.handleChange(O.state.current+1)},O.jumpPrev=function(){O.handleChange(O.getJumpPrevPage())},O.jumpNext=function(){O.handleChange(O.getJumpNextPage())},O.hasPrev=function(){return O.state.current>1},O.hasNext=function(){return O.state.current2?w-2:0),L=2;L=W?j=W:j=Number(D),j}},{key:"getShowSizeChanger",value:function(){var O=this.props,D=O.showSizeChanger,W=O.total,Q=O.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:W>Q}},{key:"renderPrev",value:function(O){var D=this.props,W=D.prevIcon,Q=D.itemRender,j=Q(O,"prev",this.getItemIcon(W,"prev page")),Z=!this.hasPrev();return Object(d.isValidElement)(j)?Object(d.cloneElement)(j,{disabled:Z}):j}},{key:"renderNext",value:function(O){var D=this.props,W=D.nextIcon,Q=D.itemRender,j=Q(O,"next",this.getItemIcon(W,"next page")),Z=!this.hasNext();return Object(d.isValidElement)(j)?Object(d.cloneElement)(j,{disabled:Z}):j}},{key:"render",value:function(){var O=this,D=this.props,W=D.prefixCls,Q=D.className,j=D.style,Z=D.disabled,Y=D.hideOnSinglePage,w=D.total,P=D.locale,L=D.showQuickJumper,K=D.showLessItems,M=D.showTitle,H=D.showTotal,ae=D.simple,ve=D.itemRender,de=D.showPrevNextJumpers,be=D.jumpPrevIcon,z=D.jumpNextIcon,ne=D.selectComponentClass,fe=D.selectPrefixCls,ie=D.pageSizeOptions,oe=this.state,U=oe.current,ee=oe.pageSize,J=oe.currentInputValue;if(Y===!0&&w<=ee)return null;var le=x(void 0,this.state,this.props),Pe=[],Qe=null,$e=null,et=null,Ve=null,ke=null,Oe=L&&L.goButton,Ce=K?1:2,ue=U-1>0?U-1:0,N=U+1=Ce*2&&U!==1+2&&(Pe[0]=Object(d.cloneElement)(Pe[0],{className:"".concat(W,"-item-after-jump-prev")}),Pe.unshift(Qe)),le-U>=Ce*2&&U!==le-2&&(Pe[Pe.length-1]=Object(d.cloneElement)(Pe[Pe.length-1],{className:"".concat(W,"-item-before-jump-next")}),Pe.push($e)),rt!==1&&Pe.unshift(et),V!==le&&Pe.push(Ve)}var Le=null;H&&(Le=c.a.createElement("li",{className:"".concat(W,"-total-text")},H(w,[w===0?0:(U-1)*ee+1,U*ee>w?w:U*ee])));var De=!this.hasPrev()||!le,Ne=!this.hasNext()||!le;return c.a.createElement("ul",Object(S.a)({className:i()(W,Q,Object(f.a)({},"".concat(W,"-disabled"),Z)),style:j,unselectable:"unselectable",ref:this.savePaginationNode},te),Le,c.a.createElement("li",{title:M?P.prev_page:null,onClick:this.prev,tabIndex:De?null:0,onKeyPress:this.runIfEnterPrev,className:i()("".concat(W,"-prev"),Object(f.a)({},"".concat(W,"-disabled"),De)),"aria-disabled":De},this.renderPrev(ue)),Pe,c.a.createElement("li",{title:M?P.next_page:null,onClick:this.next,tabIndex:Ne?null:0,onKeyPress:this.runIfEnterNext,className:i()("".concat(W,"-next"),Object(f.a)({},"".concat(W,"-disabled"),Ne)),"aria-disabled":Ne},this.renderNext(N)),c.a.createElement(e,{disabled:Z,locale:P,rootPrefixCls:W,selectComponentClass:ne,selectPrefixCls:fe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:U,pageSize:ee,pageSizeOptions:ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Oe}))}}],[{key:"getDerivedStateFromProps",value:function(O,D){var W={};if("current"in O&&(W.current=O.current,O.current!==D.current&&(W.currentInputValue=W.current)),"pageSize"in O&&O.pageSize!==D.pageSize){var Q=D.current,j=x(O.pageSize,D,O);Q=Q>j?j:Q,"current"in O||(W.current=Q,W.currentInputValue=Q),W.pageSize=O.pageSize}return W}}]),b}(c.a.Component);y.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:l,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:l,locale:u.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var T=y},"6/vW":function(Re,I,h){"use strict";h.d(I,"b",function(){return p});var S=h("tJVT"),f=h("q1tI"),k=h.n(f),m=h("9VGf"),_=h("dhSg");function r(d){return d.toString().padStart(2,"0")}function p(d){var c=Math.floor(d/60),o=d%60,i=Math.floor(c/60);return"".concat(r(i),":").concat(r(c-i*60),":").concat(r(o))}I.a=function(d){var c=d.defaultTime,o=d.status,i=d.onUpdateCostTime,s=d.lastedGetTaskInfoTime,a=d.title,n=a===void 0?"":a,t=Object(f.useState)(c||0),e=Object(S.a)(t,2),u=e[0],l=e[1],g=Object(f.useRef)();return Object(f.useEffect)(function(){s&&(l(c),g.current=c)},[c,s]),Object(f.useEffect)(function(){if(s){var C=_.a.subscribe("update-cost-time",function(){o!==2&&i(g.current)});return C}},[s]),Object(m.a)(function(){l(u+1),g.current=g.current+1},o===2?null:1e3),k.a.createElement("span",null,n?"".concat(n,"\uFF1A"):null,p(u))}},"6BzB":function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.shrinkBuf=S,I.arraySet=f,I.flattenChunks=k,I.Buf32=I.Buf16=I.Buf8=void 0;function S(p,d){return p.length===d?p:p.subarray?p.subarray(0,d):(p.length=d,p)}function f(p,d,c,o,i){if(d.subarray&&p.subarray){p.set(d.subarray(c,c+o),i);return}for(var s=0;s=32&&m<=255)return m;var _=S[m];return _!==void 0?_:16777216|m}};I.default=f},"8/bI":function(Re,I,h){Re.exports=h.p+"static/empty.8918e228.png"},"815F":function(Re,I,h){"use strict";h.d(I,"e",function(){return p}),h.d(I,"c",function(){return c}),h.d(I,"d",function(){return o}),h.d(I,"a",function(){return s}),h.d(I,"f",function(){return a}),h.d(I,"b",function(){return n});var S=h("KQm4"),f=h("VTBJ"),k=h("Ff2n"),m=h("Zm9Q"),_=h("Kwbf"),r=h("OZM5");function p(t,e){return t!=null?t:e}function d(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=new Map;function u(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(C){var x=C.key,y=C.children;Object(_.a)(x!=null,"Tree node must have a certain key: [".concat(g).concat(x,"]"));var T=String(x);Object(_.a)(!e.has(T)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(T)),e.set(T,!0),u(y,"".concat(g).concat(T," > "))})}u(t)}function c(t){function e(u){var l=Object(m.a)(u);return l.map(function(g){if(!Object(r.i)(g))return Object(_.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var C=g.key,x=g.props,y=x.children,T=Object(k.a)(x,["children"]),A=Object(f.a)({key:C},T),E=e(y);return E.length&&(A.children=E),A}).filter(function(g){return g})}return e(t)}function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=new Set(e===!0?[]:e),l=[];function g(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(y,T){var A=Object(r.h)(x?x.pos:"0",T),E=p(y.key,A),b=Object(f.a)(Object(f.a)({},y),{},{parent:x,pos:A,children:null,data:y,isStart:[].concat(Object(S.a)(x?x.isStart:[]),[T===0]),isEnd:[].concat(Object(S.a)(x?x.isEnd:[]),[T===C.length-1])});return l.push(b),e===!0||u.has(E)?b.children=g(y.children||[],b):b.children=[],b})}return g(t),l}function i(t,e,u){var l;u?typeof u=="string"?l=function(x){return x[u]}:typeof u=="function"&&(l=function(x){return u(x)}):l=function(x,y){return p(x.key,y)};function g(C,x,y){var T=C?C.children:t,A=C?Object(r.h)(y.pos,x):"0";if(C){var E=l(C,A),b={node:C,index:x,pos:A,key:E,parentPos:y.node?y.pos:null,level:y.level+1};e(b)}T&&T.forEach(function(v,O){g(v,O,{node:C,pos:A,level:y?y.level+1:-1})})}g(null)}function s(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=e.initWrapper,l=e.processEntity,g=e.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,x={},y={},T={posEntities:x,keyEntities:y};return u&&(T=u(T)||T),i(t,function(A){var E=A.node,b=A.index,v=A.pos,O=A.key,D=A.parentPos,W=A.level,Q={node:E,index:b,key:O,pos:v,level:W},j=p(O,v);x[v]=Q,y[j]=Q,Q.parent=x[D],Q.parent&&(Q.parent.children=Q.parent.children||[],Q.parent.children.push(Q)),l&&l(Q,T)},C),g&&g(T),T}function a(t,e){var u=e.expandedKeys,l=e.selectedKeys,g=e.loadedKeys,C=e.loadingKeys,x=e.checkedKeys,y=e.halfCheckedKeys,T=e.dragOverNodeKey,A=e.dropPosition,E=e.keyEntities,b=E[t],v={eventKey:t,expanded:u.indexOf(t)!==-1,selected:l.indexOf(t)!==-1,loaded:g.indexOf(t)!==-1,loading:C.indexOf(t)!==-1,checked:x.indexOf(t)!==-1,halfChecked:y.indexOf(t)!==-1,pos:String(b?b.pos:""),dragOver:T===t&&A===0,dragOverGapTop:T===t&&A===-1,dragOverGapBottom:T===t&&A===1};return v}function n(t){var e=t.data,u=t.expanded,l=t.selected,g=t.checked,C=t.loaded,x=t.loading,y=t.halfChecked,T=t.dragOver,A=t.dragOverGapTop,E=t.dragOverGapBottom,b=t.pos,v=t.active,O=Object(f.a)(Object(f.a)({},e),{},{expanded:u,selected:l,checked:g,loaded:C,loading:x,halfChecked:y,dragOver:T,dragOverGapTop:A,dragOverGapBottom:E,pos:b,active:v});return"props"in O||Object.defineProperty(O,"props",{get:function(){return Object(_.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),O}},"8CQX":function(Re,I,h){"use strict";function S(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(e){return typeof e}:S=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(n)}Object.defineProperty(I,"__esModule",{value:!0}),I.getKeycode=i,I.getKey=s,I.getKeysym=a;var f=o(h("mHUz")),k=o(h("8+yF")),m=o(h("6Qwc")),_=o(h("gIYZ")),r=o(h("mTgk")),p=c(h("GdRQ"));function d(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return d=function(){return n},n}function c(n){if(n&&n.__esModule)return n;if(n===null||S(n)!=="object"&&typeof n!="function")return{default:n};var t=d();if(t&&t.has(n))return t.get(n);var e={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)){var g=u?Object.getOwnPropertyDescriptor(n,l):null;g&&(g.get||g.set)?Object.defineProperty(e,l,g):e[l]=n[l]}return e.default=n,t&&t.set(n,e),e}function o(n){return n&&n.__esModule?n:{default:n}}function i(n){if(n.code){switch(n.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return n.code}if(n.type!=="keypress"&&n.keyCode in m.default){var t=m.default[n.keyCode];if(p.isMac()&&t==="ContextMenu"&&(t="MetaRight"),n.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(n.location===3)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function s(n){if(n.key!==void 0){switch(n.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return n.char}switch(n.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(n.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(n.key==="\0"&&n.code==="NumpadDecimal")return"Delete";if(!p.isIE()&&!p.isEdge())return n.key;if(n.key.length!==1&&n.key!=="Unidentified")return n.key}var t=i(n);return t in _.default?_.default[t]:n.charCode?String.fromCharCode(n.charCode):"Unidentified"}function a(n){var t=s(n);if(t==="Unidentified")return null;if(t in r.default){var e=n.location;if(t==="Meta"&&e===0&&(e=2),t==="Clear"&&e===3){var u=i(n);u==="NumLock"&&(e=0)}if((e===void 0||e>3)&&(e=0),t==="Meta"){var l=i(n);if(l==="AltLeft")return f.default.XK_Meta_L;if(l==="AltRight")return f.default.XK_Meta_R}if(t==="Clear"){var g=i(n);if(g==="NumLock")return f.default.XK_Num_Lock}return r.default[t][e]}if(t.length!==1)return null;var C=t.charCodeAt();return C?k.default.lookup(C):null}},"8K/p":function(Re,I,h){"use strict";function S(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(a){return typeof a}:S=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},S(i)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=r(h("Lo0S")),k=m(h("ItS6"));function m(i){return i&&i.__esModule?i:{default:i}}function _(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return _=function(){return i},i}function r(i){if(i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var s=_();if(s&&s.has(i))return s.get(i);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var e=n?Object.getOwnPropertyDescriptor(i,t):null;e&&(e.get||e.set)?Object.defineProperty(a,t,e):a[t]=i[t]}return a.default=i,s&&s.set(i,a),a}function p(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function d(i,s){for(var a=0;a>C&1&&(this._zlibs[C].reset(),f.Info("Reset zlib stream "+C));this._ctl=this._ctl>>4}var x;if(this._ctl===8)x=this._fillRect(a,n,t,e,u,l,g);else if(this._ctl===9)x=this._jpegRect(a,n,t,e,u,l,g);else if(this._ctl===10)x=this._pngRect(a,n,t,e,u,l,g);else if((this._ctl&128)==0)x=this._basicRect(this._ctl,a,n,t,e,u,l,g);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return x&&(this._ctl=null),x}},{key:"_fillRect",value:function(a,n,t,e,u,l,g){if(u.rQwait("TIGHT",3))return!1;var C=u.rQi,x=u.rQ;return l.fillRect(a,n,t,e,[x[C+2],x[C+1],x[C]],!1),u.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(a,n,t,e,u,l,g){var C=this._readData(u);return C===null?!1:(l.imageRect(a,n,t,e,"image/jpeg",C),!0)}},{key:"_pngRect",value:function(a,n,t,e,u,l,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(a,n,t,e,u,l,g,C){if(this._filter===null)if(a&4){if(l.rQwait("TIGHT",1))return!1;this._filter=l.rQshift8()}else this._filter=0;var x=a&3,y;switch(this._filter){case 0:y=this._copyFilter(x,n,t,e,u,l,g,C);break;case 1:y=this._paletteFilter(x,n,t,e,u,l,g,C);break;case 2:y=this._gradientFilter(x,n,t,e,u,l,g,C);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return y&&(this._filter=null),y}},{key:"_copyFilter",value:function(a,n,t,e,u,l,g,C){var x=e*u*3,y;if(x<12){if(l.rQwait("TIGHT",x))return!1;y=l.rQshiftBytes(x)}else{if(y=this._readData(l),y===null)return!1;this._zlibs[a].setInput(y),y=this._zlibs[a].inflate(x),this._zlibs[a].setInput(null)}return g.blitRgbImage(n,t,e,u,y,0,!1),!0}},{key:"_paletteFilter",value:function(a,n,t,e,u,l,g,C){if(this._numColors===0){if(l.rQwait("TIGHT palette",1))return!1;var x=l.rQpeek8()+1,y=x*3;if(l.rQwait("TIGHT palette",1+y))return!1;this._numColors=x,l.rQskipBytes(1),l.rQshiftTo(this._palette,y)}var T=this._numColors<=2?1:8,A=Math.floor((e*T+7)/8),E=A*u,b;if(E<12){if(l.rQwait("TIGHT",E))return!1;b=l.rQshiftBytes(E)}else{if(b=this._readData(l),b===null)return!1;this._zlibs[a].setInput(b),b=this._zlibs[a].inflate(E),this._zlibs[a].setInput(null)}return this._numColors==2?this._monoRect(n,t,e,u,b,this._palette,g):this._paletteRect(n,t,e,u,b,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(a,n,t,e,u,l,g){for(var C=this._getScratchBuffer(t*e*4),x=Math.floor((t+7)/8),y=Math.floor(t/8),T=0;T=0;v--)A=(T*t+b*8+7-v)*4,E=(u[T*x+b]>>v&1)*3,C[A]=l[E],C[A+1]=l[E+1],C[A+2]=l[E+2],C[A+3]=255;for(var O=7;O>=8-t%8;O--)A=(T*t+b*8+7-O)*4,E=(u[T*x+b]>>O&1)*3,C[A]=l[E],C[A+1]=l[E+1],C[A+2]=l[E+2],C[A+3]=255}g.blitRgbxImage(a,n,t,e,C,0,!1)}},{key:"_paletteRect",value:function(a,n,t,e,u,l,g){for(var C=this._getScratchBuffer(t*e*4),x=t*e*4,y=0,T=0;y1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(S.a)())return null;var o=document.createElement("style");if((d=c.csp)===null||d===void 0?void 0:d.nonce){var i;o.nonce=(i=c.csp)===null||i===void 0?void 0:i.nonce}o.innerHTML=p;var s=k(c),a=s.firstChild;return c.prepend&&s.prepend?s.prepend(o):c.prepend&&a?s.insertBefore(o,a):s.appendChild(o),o}var _=new Map;function r(p,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=k(c);if(!_.has(o)){var i=m("",c),s=i.parentNode;_.set(o,s),s.removeChild(i)}var a=Array.from(_.get(o).children).find(function(l){return l.tagName==="STYLE"&&l[f]===d});if(a){var n,t;if(((n=c.csp)===null||n===void 0?void 0:n.nonce)&&a.nonce!==((t=c.csp)===null||t===void 0?void 0:t.nonce)){var e;a.nonce=(e=c.csp)===null||e===void 0?void 0:e.nonce}return a.innerHTML!==p&&(a.innerHTML=p),a}var u=m(p,c);return u[f]=d,u}},BUUv:function(Re,I,h){},BWJ9:function(Re,I,h){},"Cs+z":function(Re,I,h){Re.exports=h.p+"static/jqr.b801d45b.png"},"Ct/S":function(Re,I,h){Re.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},Cy2x:function(Re,I,h){"use strict";var S=h("DjyN"),f=h("NUBc"),k=h("cWXX"),m=h("/ezw"),_=h("+L6B"),r=h("2/Rp"),p=h("miYZ"),d=h("tsqr"),c=h("2qtc"),o=h("kLXV"),i=h("9og8"),s=h("tJVT"),a=h("WmNS"),n=h.n(a),t=h("q1tI"),e=h.n(t),u=h("Ty5D"),l=h("9kvl"),g=h("m3rI"),C=h("7Kak"),x=h("9yH6"),y=h("PpiC"),T=h("cU5J"),A=h.n(T),E=function(H){var ae=H.shixunsDetail,ve=H.globalSetting,de=H.loading,be=H.dispatch,z=H.onReloadData,ne=Object(y.a)(H,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),fe=Object(t.useState)(),ie=Object(s.a)(fe,2),oe=ie[0],U=ie[1],ee=Object(t.useState)([]),J=Object(s.a)(ee,2),le=J[0],Pe=J[1];Object(t.useEffect)(function(){ae.actionTabs.key==="Collaborators-ChangeManager"&&Qe()},[ae.actionTabs.key]);var Qe=function(){var ke=Object(i.a)(n.a.mark(function Oe(){var Ce,ue;return n.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,be({type:"shixunsDetail/getChangeManager",payload:{id:(Ce=ae.actionTabs.params)===null||Ce===void 0?void 0:Ce.id}});case 2:ue=te.sent,Pe(ue||[]);case 4:case"end":return te.stop()}},Oe)}));return function(){return ke.apply(this,arguments)}}(),$e=function(){var Oe;be({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Oe=ae.actionTabs.params)===null||Oe===void 0?void 0:Oe.id}}})},et=function(){var ke=Object(i.a)(n.a.mark(function Oe(){var Ce,ue;return n.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(oe){te.next=3;break}return d.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),te.abrupt("return");case 3:return te.next=5,be({type:"shixunsDetail/changeManager",payload:{id:(Ce=ae.actionTabs.params)===null||Ce===void 0?void 0:Ce.id,user_id:oe}});case 5:ue=te.sent,Ve(),ue&&(z(),d.b.info(ue.message));case 8:case"end":return te.stop()}},Oe)}));return function(){return ke.apply(this,arguments)}}(),Ve=function(){be({type:"shixunsDetail/setActionTabs",payload:{}}),U(null)};return e.a.createElement(o.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:ae.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:de.effects["shixunsDetail/changeManager"],onOk:et,onCancel:Ve},e.a.createElement("div",null,e.a.createElement("div",{className:A.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",e.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),e.a.createElement("div",{className:A.a.content},le.length?e.a.createElement(x.a.Group,{value:oe,onChange:function(Oe){return U(Oe.target.value)}},le.map(function(ke,Oe){return e.a.createElement(x.a,{className:A.a.radio,key:Oe,value:ke.user_id},ke.name)})):e.a.createElement("div",{className:A.a.add},e.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",e.a.createElement("a",{className:A.a.colorBlue,onClick:$e},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},b=Object(l.a)(function(M){var H=M.shixunsDetail,ae=M.loading,ve=M.globalSetting;return{shixunsDetail:H,globalSetting:ve,loading:ae}})(E),v=h("Znn+"),O=h("ZTPi"),D=h("ju9d"),W=O.a.TabPane,Q=function(M){var H=M.visible,ae=M.onCancel,ve=M.onSelectGroup,de=M.shixunId,be=M.onSelectCollaborator;return e.a.createElement(o.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:H,width:1100,centered:!0,keyboard:!1,onCancel:ae,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},e.a.createElement(O.a,{defaultActiveKey:"1"},e.a.createElement(W,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},e.a.createElement(D.a,{type:1,onCancel:ae,container_type:2,container_id:de,onSelect:be}))))},j=h("bL63"),Z=h.n(j),Y=h("xvlK"),w=h("ruvs"),P=h("ErOA"),L=function(H){var ae,ve,de,be,z,ne=H.shixunsDetail,fe=H.globalSetting,ie=H.loading,oe=H.user,U=H.dispatch,ee=H.position,J=Object(t.useRef)(),le=Object(t.useState)(0),Pe=Object(s.a)(le,2),Qe=Pe[0],$e=Pe[1],et=Object(t.useState)([]),Ve=Object(s.a)(et,2),ke=Ve[0],Oe=Ve[1],Ce=Object(t.useState)({id:null,page:1}),ue=Object(s.a)(Ce,2),N=ue[0],te=ue[1],F=Object(u.i)(),Ae=Object(t.useState)({}),tt=Object(s.a)(Ae,2),he=tt[0],We=tt[1],rt=(ae=oe.userInfo)===null||ae===void 0||((ve=ae.shixun)===null||ve===void 0)?void 0:ve.editable,V=((de=oe.userInfo)===null||de===void 0?void 0:de.role)<=2||((be=oe.userInfo)===null||be===void 0||((z=be.shixun)===null||z===void 0)?void 0:z.is_creator);Object(t.useEffect)(function(){J.current=F==null?void 0:F.taskId,N.id=F==null?void 0:F.taskId,te(N),Be(N)},[]);var Be=function(){var B=Object(i.a)(n.a.mark(function He(at){var R;return n.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(P.a)("/api/sci/projects/".concat(F==null?void 0:F.taskId,"/get_project_partners.json"),{method:"get"});case 2:R=Ue.sent,R&&(Oe(R.users||[]),$e(R.users_count),We(R));case 4:case"end":return Ue.stop()}},He)}));return function(at){return B.apply(this,arguments)}}(),xe=function(){var B=Object(i.a)(n.a.mark(function He(){var at;return n.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return N.page=1,te(N),at=Object(w.b)(),Me.next=5,U({type:"user/getUserInfo",payload:at});case 5:return Me.next=7,Be(N);case 7:case"end":return Me.stop()}},He)}));return function(){return B.apply(this,arguments)}}(),Le=function(He){N.page=He,te(N),Be(N)},De=function(He){o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:e.a.createElement("div",{className:Z.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var at=Object(i.a)(n.a.mark(function Me(){var Ue;return n.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.next=2,Object(P.a)("/api/sci/projects/".concat(F==null?void 0:F.taskId,"/del_project_partner.json"),{method:"DELETE",body:{user_id:He}});case 2:Ue=ye.sent,d.b.info("\u5220\u9664\u6210\u529F"),N.page=1,te(N),Be(N);case 7:case"end":return ye.stop()}},Me)}));function R(){return at.apply(this,arguments)}return R}()})},Ne=function(){U({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:J.current}}})};function se(){U({type:"shixunsDetail/setActionTabs",payload:{}})}var we={visible:ne.actionTabs.key==="Collaborators-AddCollaborator",onCancel:se,shixunId:J.current,onSelectCollaborator:function(){var B=Object(i.a)(n.a.mark(function at(R){var Me;return n.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return se(),q.next=3,Object(P.a)("/api/sci/projects/".concat(J.current,"/bacht_add_project_partners.json"),{method:"POST",body:{user_ids:R}});case 3:Me=q.sent,Me&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),xe());case 5:case"end":return q.stop()}},at)}));function He(at){return B.apply(this,arguments)}return He}(),onSelectGroup:function(){var B=Object(i.a)(n.a.mark(function at(R){var Me;return n.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return se(),q.next=3,U({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:J.current,group_id:R.group_id}});case 3:Me=q.sent,Me&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),xe());case 5:case"end":return q.stop()}},at)}));function He(at){return B.apply(this,arguments)}return He}()};return e.a.createElement("section",null,e.a.createElement("div",{className:Z.a.wrap},e.a.createElement("div",{className:Z.a.content},e.a.createElement("div",{className:Z.a.head},e.a.createElement("span",{className:Z.a.headCount},"\u5408\u4F5C\u8005\uFF08",Qe,"\u4EBA\uFF09"),e.a.createElement("div",null,e.a.createElement(r.a,{className:Z.a.button,style:{marginRight:ee==="detail"?0:"20px"},onClick:Ne,icon:e.a.createElement(Y.a,null)},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),e.a.createElement("div",{className:Z.a.list},e.a.createElement(m.a,{loading:!1,active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},ke.map(function(B,He){return e.a.createElement("div",{style:{display:"inline-block",width:"50%"},key:He},e.a.createElement("div",{className:Z.a.itemWrap},e.a.createElement("a",{target:"_blank",className:Z.a.imgWrap},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Z.a.img,src:"".concat(g.a.IMG_SERVER,"/images/").concat(B==null?void 0:B.image_url)}),(B==null?void 0:B.is_creator)&&e.a.createElement("span",{className:Z.a.manager},"\u521B\u5EFA\u8005")),e.a.createElement("div",{className:Z.a.itemContent},e.a.createElement("div",{className:Z.a.nameWrap},e.a.createElement("a",{target:"_blank",className:Z.a.name},B==null?void 0:B.user_name),e.a.createElement("div",{className:Z.a.actionGroup},!(B!=null&&B.is_creator)&&(V||he!=null&&he.current_user_is_creator)?e.a.createElement("a",{className:Z.a.deletetitle,onClick:function(){return De(B.id)}},"\u5220\u9664"):null)),e.a.createElement("p",{className:Z.a.schoolWrap},e.a.createElement("span",{className:Z.a.school},B==null?void 0:B.school_name)))))})))),Qe>10&&e.a.createElement("div",{className:Z.a.countWrap},e.a.createElement(f.a,{showQuickJumper:!1,showSizeChanger:!1,total:Qe,onChange:function(He){return Le(He)},pageSize:10,current:N.page}))),e.a.createElement(b,{onReloadData:xe}),e.a.createElement(Q,we))},K=I.a=Object(l.a)(function(M){var H=M.shixunsDetail,ae=M.loading,ve=M.globalSetting,de=M.user;return{shixunsDetail:H,globalSetting:ve,user:de,loading:ae}})(L)},E1Sb:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjczMUZFNjhCMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjczMUZFNjhDMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzMxRkU2ODkwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzMxRkU2OEEwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7zBaLcAAACAElEQVR42uzdzyvDcRzH8ffsZiVc/IjbkOTuShN/gXIgYi5y2AlpFBL/AAdLiXBgBwfUxplmyU2tRK4sTey0+H6+RbKD7Gtfb/V817t963t59Nnn9f58+7aap6LO/yq6KmN13OoJq1MehcD3erS6rUT0VrnVC5qBpgLagWXagQIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAABUCD6Lbkr5L2W2uv9bS3LR4vd6iAb/9BaaBfa7K+oa8+0exEwmOheT5+UXnV9zd2SEHeztSU12ldw+2tjRLbH/X/lQbktqaansluwLtelPs85XKZmRFggN9eseMSbVJ9+Js2HHCizoHRwb7ZWN12V5VtYPaacJdOUmcJNy1o67QhLt6FheScNcfFkyqmxr9eoGHsWMZD8/qBCYvLmV4NCS5XE4f8PrmVnoHRySbzeoLyf1DWnr6huxPdWPGrJhZObOC6ga12Wtmz5m9p/Kom5yZt1Or8mFhbWNLIuubOh+3fjrrXAUWMutcAxY661wBOpl1RQc6nXVFBf7GrHMEPEskP65PE+d5901anc46R68+/rp4/QYQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAP8dMKMdGNcMNH9eMaUR+GR11Oo2q6/eBBgA/5+hicfO9/sAAAAASUVORK5CYII="},E7E6:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(Re,I){Re.exports=function(){var h=document.getSelection();if(!h.rangeCount)return function(){};for(var S=document.activeElement,f=[],k=0;k=48&&e.keyCode<=57)u=e.keyCode;else if(e.keyCode>=65&&e.keyCode<=90){var g=String.fromCharCode(e.keyCode);e.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),u=g.charCodeAt()}else u=0;this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyUp",value:function(e){(0,k.stopEvent)(e);var u=this._getKeyCode(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(_.default.XK_Control_L,"ControlLeft",!0)),(r.isMac()||r.isIOS())&&u==="CapsLock"){this._sendKeyEvent(_.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(_.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[u],u,!1),r.isWindows()&&(u==="ShiftLeft"||u==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(_.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){f.Debug(">> Keyboard.allKeysUp");for(var e in this._keyDownList)this._sendKeyEvent(this._keyDownList[e],e,!1);f.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(e){if(e.skipCheckAlt)return;if(e.altKey)return;var u=this._target,l=this._keyDownList;["AltLeft","AltRight"].forEach(function(g){if(!(g in l))return;var C=new KeyboardEvent("keyup",{key:l[g],code:g});C.skipCheckAlt=!0,u.dispatchEvent(C)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),r.isWindows()&&r.isFirefox()){var e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(u){return document.addEventListener(u,e,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(r.isWindows()&&r.isFirefox()){var e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(u){return document.removeEventListener(u,e)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),n}();I.default=a},GABl:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GQ8N:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.toUnsigned32bit=S,I.toSigned32bit=f;function S(k){return k>>>0}function f(k){return k|0}},GdRQ:function(Re,I,h){"use strict";function S(A){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(b){return typeof b}:S=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},S(A)}Object.defineProperty(I,"__esModule",{value:!0}),I.isMac=u,I.isWindows=l,I.isIOS=g,I.isSafari=C,I.isIE=x,I.isEdge=y,I.isFirefox=T,I.hasScrollbarGutter=I.supportsImageMetadata=I.supportsCursorURIs=I.dragThreshold=I.isTouchDevice=void 0;var f=m(h("Lo0S"));function k(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return k=function(){return A},A}function m(A){if(A&&A.__esModule)return A;if(A===null||S(A)!=="object"&&typeof A!="function")return{default:A};var E=k();if(E&&E.has(A))return E.get(A);var b={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in A)if(Object.prototype.hasOwnProperty.call(A,O)){var D=v?Object.getOwnPropertyDescriptor(A,O):null;D&&(D.get||D.set)?Object.defineProperty(b,O,D):b[O]=A[O]}return b.default=A,E&&E.set(A,b),b}var _="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;I.isTouchDevice=_,window.addEventListener("touchstart",function A(){I.isTouchDevice=_=!0,window.removeEventListener("touchstart",A,!1)},!1);var r=10*(window.devicePixelRatio||1);I.dragThreshold=r;var p=!1;try{var d=document.createElement("canvas");d.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',d.style.cursor.indexOf("url")===0?(f.Info("Data URI scheme cursor supported"),p=!0):f.Warn("Data URI scheme cursor not supported")}catch(A){f.Error("Data URI scheme cursor test exception: "+A)}var c=p;I.supportsCursorURIs=c;var o=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),o=!0}catch(A){}var i=o;I.supportsImageMetadata=i;var s=!0;try{var a=document.createElement("div");a.style.visibility="hidden",a.style.overflow="scroll",document.body.appendChild(a);var n=document.createElement("div");a.appendChild(n);var t=a.offsetWidth-n.offsetWidth;a.parentNode.removeChild(a),s=t!=0}catch(A){f.Error("Scrollbar test exception: "+A)}var e=s;I.hasScrollbarGutter=e;function u(){return navigator&&!!/mac/i.exec(navigator.platform)}function l(){return navigator&&!!/win/i.exec(navigator.platform)}function g(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function C(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function x(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function y(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function T(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GfqC:function(Re,I,h){"use strict";var S=h("q1tI"),f=h.n(S),k=h("TSYQ"),m=h.n(k);function _(P,L){var K="cannot "+P.method+" "+P.action+" "+L.status+"'",M=new Error(K);return M.status=L.status,M.method=P.method,M.url=P.action,M}function r(P){var L=P.responseText||P.response;if(!L)return L;try{return JSON.parse(L)}catch(K){return L}}function p(P){var L=new XMLHttpRequest;P.onProgress&&L.upload&&(L.upload.onprogress=function(ae){ae.total>0&&(ae.percent=ae.loaded/ae.total*100),P.onProgress(ae)});var K=new FormData;P.data&&Object.keys(P.data).forEach(function(H){var ae=P.data[H];if(Array.isArray(ae)){ae.forEach(function(ve){K.append(H+"[]",ve)});return}K.append(H,P.data[H])}),P.file instanceof Blob?K.append(P.filename,P.file,P.file.name):K.append(P.filename,P.file),L.onerror=function(ae){P.onError(ae)},L.onload=function(){return L.status<200||L.status>=300?P.onError(_(P,L),r(L)):P.onSuccess(r(L),L)},L.open(P.method,P.action,!0),P.withCredentials&&"withCredentials"in L&&(L.withCredentials=!0);var M=P.headers||{};return M["X-Requested-With"]!==null&&L.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(M).forEach(function(H){M[H]!==null&&L.setRequestHeader(H,M[H])}),L.send(K),{abort:function(){L.abort()}}}var d=+new Date,c=0;function o(){return"rc-upload-"+d+"-"+ ++c}function i(P,L){return P.indexOf(L,P.length-L.length)!==-1}var s=function(P,L){if(P&&L){var K=Array.isArray(L)?L:L.split(","),M=P.name||"",H=P.type||"",ae=H.replace(/\/.*$/,"");return K.some(function(ve){var de=ve.trim();return de.charAt(0)==="."?i(M.toLowerCase(),de.toLowerCase()):/\/\*$/.test(de)?ae===de.replace(/\/.*$/,""):H===de})}return!0};function a(P,L){var K=P.createReader(),M=[];function H(){K.readEntries(function(ae){var ve=Array.prototype.slice.apply(ae);M=M.concat(ve);var de=!ve.length;de?L(M):H()})}H()}var n=function(L,K,M){var H=function ae(ve,de){de=de||"",ve.isFile?ve.file(function(be){M(be)&&(ve.fullPath&&!be.webkitRelativePath&&(Object.defineProperties(be,{webkitRelativePath:{writable:!0}}),be.webkitRelativePath=ve.fullPath.replace(/^\//,""),Object.defineProperties(be,{webkitRelativePath:{writable:!1}})),K([be]))}):ve.isDirectory&&a(ve,function(be){be.forEach(function(z){ae(z,""+de+ve.name+"/")})})};L.forEach(function(ae){H(ae.webkitGetAsEntry())})},t=n,e=Object.assign||function(P){for(var L=1;L=0)continue;if(!Object.prototype.hasOwnProperty.call(P,M))continue;K[M]=P[M]}return K}function x(P,L){if(!(P instanceof L))throw new TypeError("Cannot call a class as a function")}function y(P,L){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:P}function T(P,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);P.prototype=Object.create(L&&L.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(P,L):P.__proto__=L)}var A=function(L){return Object.keys(L).reduce(function(K,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-"||M==="role")&&(K[M]=L[M]),K},{})},E=function(P){T(L,P);function L(){var K,M,H,ae;x(this,L);for(var ve=arguments.length,de=Array(ve),be=0;bethis.chunkSize&&(this.chunkSize=o,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=o;var i=(0,S.inflate)(this.strm,0);if(i<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=o)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,S.inflateReset)(this.strm)}}]),d}();I.default=p},IxHN:function(Re,I,h){"use strict";var S=h("q1tI"),f=h.n(S),k=h("07cG"),m=h.n(k);I.a=function(_){var r=_.message,p=_.className,d=_.children,c=_.style,o=c===void 0?{}:c;return f.a.createElement("div",{className:"".concat(m.a.idsRingWrapper," ").concat(p)},f.a.createElement("div",{className:m.a.ldsRing},f.a.createElement("div",null),f.a.createElement("div",null),f.a.createElement("div",null),f.a.createElement("div",null)),r?f.a.createElement("p",{style:o},r):null,d)}},J66h:function(Re,I,h){(function(S){var f,k;(function(m,_){Re.exports=_(m)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof S!="undefined"?S:this,function(m){"use strict";m=m||{};var _=m.Base64,r="2.6.4",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(j){for(var Z={},Y=0,w=j.length;Y>>6)+c(128|Z&63):c(224|Z>>>12&15)+c(128|Z>>>6&63)+c(128|Z&63)}else{var Z=65536+(j.charCodeAt(0)-55296)*1024+(j.charCodeAt(1)-56320);return c(240|Z>>>18&7)+c(128|Z>>>12&63)+c(128|Z>>>6&63)+c(128|Z&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,s=function(j){return j.replace(i,o)},a=function(j){var Z=[0,2,1][j.length%3],Y=j.charCodeAt(0)<<16|(j.length>1?j.charCodeAt(1):0)<<8|(j.length>2?j.charCodeAt(2):0),w=[p.charAt(Y>>>18),p.charAt(Y>>>12&63),Z>=2?"=":p.charAt(Y>>>6&63),Z>=1?"=":p.charAt(Y&63)];return w.join("")},n=m.btoa&&typeof m.btoa=="function"?function(j){return m.btoa(j)}:function(j){if(j.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return j.replace(/[\s\S]{1,3}/g,a)},t=function(j){return n(s(String(j)))},e=function(j){return j.replace(/[+\/]/g,function(Z){return Z=="+"?"-":"_"}).replace(/=/g,"")},u=function(j,Z){return Z?e(t(j)):t(j)},l=function(j){return u(j,!0)},g;m.Uint8Array&&(g=function(j,Z){for(var Y="",w=0,P=j.length;w>>18)+p.charAt(H>>>12&63)+(typeof K!="undefined"?p.charAt(H>>>6&63):"=")+(typeof M!="undefined"?p.charAt(H&63):"=")}return Z?e(Y):Y});var C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(j){switch(j.length){case 4:var Z=(7&j.charCodeAt(0))<<18|(63&j.charCodeAt(1))<<12|(63&j.charCodeAt(2))<<6|63&j.charCodeAt(3),Y=Z-65536;return c((Y>>>10)+55296)+c((Y&1023)+56320);case 3:return c((15&j.charCodeAt(0))<<12|(63&j.charCodeAt(1))<<6|63&j.charCodeAt(2));default:return c((31&j.charCodeAt(0))<<6|63&j.charCodeAt(1))}},y=function(j){return j.replace(C,x)},T=function(j){var Z=j.length,Y=Z%4,w=(Z>0?d[j.charAt(0)]<<18:0)|(Z>1?d[j.charAt(1)]<<12:0)|(Z>2?d[j.charAt(2)]<<6:0)|(Z>3?d[j.charAt(3)]:0),P=[c(w>>>16),c(w>>>8&255),c(w&255)];return P.length-=[0,0,2,1][Y],P.join("")},A=m.atob&&typeof m.atob=="function"?function(j){return m.atob(j)}:function(j){return j.replace(/\S{1,4}/g,T)},E=function(j){return A(String(j).replace(/[^A-Za-z0-9\+\/]/g,""))},b=function(j){return y(A(j))},v=function(j){return String(j).replace(/[-_]/g,function(Z){return Z=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(j){return b(v(j))},D;m.Uint8Array&&(D=function(j){return Uint8Array.from(E(v(j)),function(Z){return Z.charCodeAt(0)})});var W=function(){var j=m.Base64;return m.Base64=_,j};if(m.Base64={VERSION:r,atob:E,btoa:n,fromBase64:O,toBase64:u,utob:s,encode:u,encodeURI:l,btou:y,decode:O,noConflict:W,fromUint8Array:g,toUint8Array:D},typeof Object.defineProperty=="function"){var Q=function(j){return{value:j,enumerable:!1,writable:!0,configurable:!0}};m.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Q(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",Q(function(j){return u(this,j)})),Object.defineProperty(String.prototype,"toBase64URI",Q(function(){return u(this,!0)}))}}return m.Meteor&&(Base64=m.Base64),Re.exports?Re.exports.Base64=m.Base64:!(f=[],k=function(){return m.Base64}.apply(I,f),k!==void 0&&(Re.exports=k)),{Base64:m.Base64}})}).call(this,h("IyRk"))},JJs0:function(Re,I,h){Re.exports={flex_box_center:"flex_box_center___XQaQv",flex_space_between:"flex_space_between___MKaIy",flex_box_vertical_center:"flex_box_vertical_center___1mxtL",flex_box_center_end:"flex_box_center_end___2F_Ix",flex_box_column:"flex_box_column___2uQCp",wrap:"wrap___3HzlV",list:"list___1j7BW",page:"page___1eDtu"}},JSwD:function(Re,I,h){"use strict";function S(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(l){return typeof l}:S=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},S(e)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=t;var f=m(h("6BzB"));function k(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return k=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(e===null||S(e)!=="object"&&typeof e!="function")return{default:e};var u=k();if(u&&u.has(e))return u.get(e);var l={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in e)if(Object.prototype.hasOwnProperty.call(e,C)){var x=g?Object.getOwnPropertyDescriptor(e,C):null;x&&(x.get||x.set)?Object.defineProperty(l,C,x):l[C]=e[C]}return l.default=e,u&&u.set(e,l),l}var _=15,r=852,p=592,d=0,c=1,o=2,i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],n=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function t(e,u,l,g,C,x,y,T){var A=T.bits,E=0,b=0,v=0,O=0,D=0,W=0,Q=0,j=0,Z=0,Y=0,w,P,L,K,M,H=null,ae=0,ve,de=new f.Buf16(_+1),be=new f.Buf16(_+1),z=null,ne=0,fe,ie,oe;for(E=0;E<=_;E++)de[E]=0;for(b=0;b=1&&!(de[O]!==0);O--);if(D>O&&(D=O),O===0)return C[x++]=1<<24|64<<16|0,C[x++]=1<<24|64<<16|0,T.bits=1,0;for(v=1;v0&&(e===d||O!==1))return-1;for(be[1]=0,E=1;E<_;E++)be[E+1]=be[E]+de[E];for(b=0;br||e===o&&Z>p)return 1;for(;;){fe=E-Q,y[b]ve?(ie=z[ne+y[b]],oe=H[ae+y[b]]):(ie=32+64,oe=0),w=1<>Q)+P]=fe<<24|ie<<16|oe|0;while(P!==0);for(w=1<>=1;if(w!==0?(Y&=w-1,Y+=w):Y=0,b++,--de[E]===0){if(E===O)break;E=u[l+y[b]]}if(E>D&&(Y&K)!==L){for(Q===0&&(Q=D),M+=v,W=E-Q,j=1<r||e===o&&Z>p)return 1;L=Y&K,C[L]=D<<24|W<<16|M-x|0}}return Y!==0&&(C[M+Y]=E-Q<<24|64<<16|0),T.bits=D,0}},JWDV:function(Re,I,h){Re.exports=h.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jky8:function(Re,I,h){"use strict";var S=h("sRBo"),f=h("kaz8"),k=h("5NDa"),m=h("5rEg"),_=h("miYZ"),r=h("tsqr"),p=h("9og8"),d=h("2qtc"),c=h("kLXV"),o=h("tJVT"),i=h("WmNS"),s=h.n(i),a=h("q1tI"),n=h.n(a),t=h("9kvl"),e=h("6CvP"),u=h("1XHU"),l=h("1vsH"),g;(function(x){x[x.Professor=1]="Professor",x[x.AssistantProfessor=2]="AssistantProfessor",x[x.Student=3]="Student"})(g||(g={}));var C=function(y){var T=y.visible,A=y.user,E=y.onCancel,b=E===void 0?function(){}:E,v=Object(a.useState)(),O=Object(o.a)(v,2),D=O[0],W=O[1],Q=Object(a.useState)([]),j=Object(o.a)(Q,2),Z=j[0],Y=j[1],w=Object(a.useState)(!1),P=Object(o.a)(w,2),L=P[0],K=P[1],M=Object(a.useState)(!1),H=Object(o.a)(M,2),ae=H[0],ve=H[1],de=Object(a.useState)(),be=Object(o.a)(de,2),z=be[0],ne=be[1];Object(a.useEffect)(function(){var U;if(A!=null&&(U=A.userInfo)!==null&&U!==void 0&&U.identity){var ee;Y([(A==null||((ee=A.userInfo)===null||ee===void 0)?void 0:ee.identity)==="student"?3:1])}},[A]);var fe=function(ee,J){if(Z.includes(g.Professor)){c.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc"},J||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){t.d.push("/classrooms/".concat(ee,"/students"))}});return}t.d.push("/classrooms/".concat(ee,"/students"))},ie=function(){var U=Object(p.a)(s.a.mark(function ee(){var J;return s.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(D){Pe.next=3;break}return r.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Pe.abrupt("return");case 3:return K(!0),Pe.next=6,Object(e.c)({invite_code:D,professor:Z.includes(g.Professor)?1:null,assistant_professor:Z.includes(g.AssistantProfessor)?1:null,student:Z.includes(g.Student)?1:null});case 6:if(J=Pe.sent,K(!1),!((J==null?void 0:J.status)===-2)){Pe.next=22;break}if(oe(),!(J.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Pe.next=14;break}return ve(!0),ne(1),Pe.abrupt("return");case 14:if(!(J.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Pe.next=18;break}return ve(!0),ne(2),Pe.abrupt("return");case 18:if(!(J.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Pe.next=22;break}return ve(!0),ne(3),Pe.abrupt("return");case 22:if(!((J==null?void 0:J.status)===0)){Pe.next=27;break}return Object(l.Y)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),oe(),(J==null?void 0:J.course_id)&&fe(J.course_id,J.message),Pe.abrupt("return");case 27:case"end":return Pe.stop()}},ee)}));return function(){return U.apply(this,arguments)}}(),oe=function(){var U=Object(p.a)(s.a.mark(function ee(){return s.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:b();case 1:case"end":return le.stop()}},ee)}));return function(){return U.apply(this,arguments)}}();return n.a.createElement(n.a.Fragment,null,n.a.createElement(c.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:T,confirmLoading:L,onOk:ie,onCancel:oe},n.a.createElement("div",{className:"tc"},n.a.createElement("div",null,n.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),n.a.createElement(m.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:D,onChange:function(ee){if(ee.target.value.length>=7){r.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}W(ee.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(f.a.Group,{value:Z,onChange:function(ee){return Y(ee)}},n.a.createElement(f.a,{value:g.Professor,disabled:Z.includes(2)},"\u6559\u5E08"),n.a.createElement(f.a,{value:g.AssistantProfessor,disabled:Z.includes(1)},"\u52A9\u6559"),n.a.createElement(f.a,{value:g.Student},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),n.a.createElement(u.a,{visible:ae,onCancel:function(){return ve(!1)},occupationValue:z}))};I.a=Object(t.a)(function(x){var y=x.user;return{user:y}})(C)},Jq4h:function(Re,I,h){Re.exports=h.p+"static/qrcode.54870d9b.png"},LCi9:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function f(C,x){for(var y=0;y0&&Date.now()-this._tracked[0].started>t){this._state=m,this._ignored.push(y);return}if(this._waitingRelease){this._state=m,this._ignored.push(y);return}this._tracked.push({id:y,started:Date.now(),active:!0,firstX:T,firstY:A,lastX:T,lastY:A,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(_|d|c),this._stopLongpressTimeout();break;case 3:this._state&=~(r|o|i);break;default:this._state=m}}},{key:"_touchMove",value:function(y,T,A){var E=this._tracked.find(function(Q){return Q.id===y});if(E===void 0)return;E.lastX=T,E.lastY=A;var b=T-E.firstX,v=A-E.firstY;if((E.firstX!==E.lastX||E.firstY!==E.lastY)&&(E.angle=Math.atan2(v,b)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(b,v)a){var W=Math.abs(E.angle-O.angle);W=Math.abs((W+180)%360-180),W>n?this._state&=~o:this._state&=~i,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(y,T,A){if(this._ignored.indexOf(y)!==-1){this._ignored.splice(this._ignored.indexOf(y),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=s,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=m),!this._hasDetectedGesture()&&(this._state&=~(d|o|i),this._state&=~c,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(r|p);break;case 2:this._state&=~(_|p);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=m),this._tracked.some(function(v){return Date.now()-v.started>e})&&(this._state=m);var E=this._tracked.find(function(v){return v.id===y});if(E.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==m)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var b=0;b=0)continue;if(!Object.prototype.hasOwnProperty.call(s,t))continue;n[t]=s[t]}return n}function d(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function c(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function o(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var i=function(s){o(a,s);function a(n){d(this,a);var t=c(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,n));return t.scrollListener=t.scrollListener.bind(t),t.eventListenerOptions=t.eventListenerOptions.bind(t),t.mousewheelListener=t.mousewheelListener.bind(t),t}return S(a,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,e={get passive(){t=!0}};try{document.addEventListener("test",null,e),document.removeEventListener("test",null,e)}catch(u){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var e=this.props.getScrollParent&&this.props.getScrollParent();return e!=null?e:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;var e=window;this.props.useWindow===!1&&(e=t),e.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),e.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,e=window,u=this.getParentElement(t),l=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,C=e.pageYOffset!==void 0?e.pageYOffset:g.scrollTop;this.props.isReverse?l=C:l=this.calculateOffset(t,C)}else this.props.isReverse?l=u.scrollTop:l=t.scrollHeight-u.scrollTop-u.clientHeight;l1&&arguments[1]!==void 0?arguments[1]:1,Ne=Ce.length,se=0;se1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(K).map(function(H,ae){if(!_.isValidElement(H)||!H.type)return null;var ve=H.type.isSelectOptGroup,de=H.key,be=H.props,z=be.children,ne=Object(p.a)(be,["children"]);return M||!ve?E(H):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(de===null?ae:de,"__"),label:de},ne),{},{options:b(z)})}).filter(function(H){return H})}var v=h("2Qr1"),O=h("qNPg"),D=h("U8pU"),W=h("Kwbf"),Q=h("WKfj");function j(K){var M=K.mode,H=K.options,ae=K.children,ve=K.backfill,de=K.allowClear,be=K.placeholder,z=K.getInputElement,ne=K.showSearch,fe=K.onSearch,ie=K.defaultOpen,oe=K.autoFocus,U=K.labelInValue,ee=K.value,J=K.inputValue,le=K.optionLabelProp,Pe=M==="multiple"||M==="tags",Qe=ne!==void 0?ne:Pe||M==="combobox",$e=H||b(ae);if(Object(W.a)(M!=="tags"||$e.every(function(Oe){return!Oe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),M==="tags"||M==="combobox"){var et=$e.some(function(Oe){return Oe.options?Oe.options.some(function(Ce){return typeof("value"in Ce?Ce.value:Ce.key)=="number"}):typeof("value"in Oe?Oe.value:Oe.key)=="number"});Object(W.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(W.a)(M!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(W.a)(M==="combobox"||!ve,"`backfill` only works with `combobox` mode."),Object(W.a)(M==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(W.b)(M!=="combobox"||!z||!de||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!Qe&&M!=="combobox"&&M!=="tags"&&Object(W.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(W.b)(!ie||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ee!=null){var Ve=Object(Q.d)(ee);Object(W.a)(!U||Ve.every(function(Oe){return Object(D.a)(Oe)==="object"&&("key"in Oe||"value"in Oe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(W.a)(!Pe||Array.isArray(ee),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var ke=null;Object(A.a)(ae).some(function(Oe){if(!_.isValidElement(Oe)||!Oe.type)return!1;var Ce=Oe.type;if(Ce.isSelectOption)return!1;if(Ce.isSelectOptGroup){var ue=Object(A.a)(Oe.props.children).every(function(N){return!_.isValidElement(N)||!Oe.type||N.type.isSelectOption?!0:(ke=N.type,!1)});return!ue}return ke=Ce,!0}),ke&&Object(W.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ke.displayName||ke.name||ke,"`.")),Object(W.a)(J===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Z=j,Y=Object(O.a)({prefixCls:"rc-select",components:{optionList:l},convertChildrenToData:b,flattenOptions:v.d,getLabeledValue:v.e,filterOptions:v.b,isValueDisabled:v.g,findValueOption:v.c,warningProps:Z,fillOptionsWithMissingValue:v.a}),w=function(K){Object(k.a)(H,K);var M=Object(m.a)(H);function H(){var ae;return Object(S.a)(this,H),ae=M.apply(this,arguments),ae.selectRef=_.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(f.a)(H,[{key:"render",value:function(){return _.createElement(Y,Object.assign({ref:this.selectRef},this.props))}}]),H}(_.Component);w.Option=C,w.OptGroup=y;var P=w,L=I.c=P},Lo0S:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.initLogging=r,I.getLogging=p,I.Error=I.Warn=I.Info=I.Debug=void 0;var S="warn",f=function(){};I.Debug=f;var k=function(){};I.Info=k;var m=function(){};I.Warn=m;var _=function(){};I.Error=_;function r(d){if(typeof d=="undefined"?d=S:S=d,I.Debug=f=I.Info=k=I.Warn=m=I.Error=_=function(){},typeof window.console!="undefined")switch(d){case"debug":I.Debug=f=console.debug.bind(window.console);case"info":I.Info=k=console.info.bind(window.console);case"warn":I.Warn=m=console.warn.bind(window.console);case"error":I.Error=_=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+d+"'")}}function p(){return S}r()},M8RZ:function(Re,I,h){"use strict";h.d(I,"a",function(){return c});var S=h("fWQN"),f=h("mtLc"),k=h("yKVA"),m=h("879j"),_=h("q1tI"),r=h.n(_),p=h("i8i4"),d=h.n(p),c=function(o){Object(k.a)(s,o);var i=Object(m.a)(s);function s(a){var n;Object(S.a)(this,s),n=i.call(this,a);var t=window.document;return n.node=t.createElement("div"),t.body.appendChild(n.node),n}return Object(f.a)(s,[{key:"render",value:function(){var n=this.props.children;return Object(p.createPortal)(n,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),s}(r.a.Component)},MZdM:function(Re,I,h){"use strict";function S(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(t){return typeof t}:S=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(a)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=d(h("Lo0S")),k=r(h("N/zr")),m=h("GdRQ"),_=h("GQ8N");function r(a){return a&&a.__esModule?a:{default:a}}function p(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return p=function(){return a},a}function d(a){if(a&&a.__esModule)return a;if(a===null||S(a)!=="object"&&typeof a!="function")return{default:a};var n=p();if(n&&n.has(a))return n.get(a);var t={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in a)if(Object.prototype.hasOwnProperty.call(a,u)){var l=e?Object.getOwnPropertyDescriptor(a,u):null;l&&(l.get||l.set)?Object.defineProperty(t,u,l):t[u]=a[u]}return t.default=a,n&&n.set(a,t),t}function c(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function o(a,n){for(var t=0;t> Display.constructor"),this._target=n,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},f.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),f.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return i(a,[{key:"viewportChangePos",value:function(t,e){var u=this._viewportLoc;t=Math.floor(t),e=Math.floor(e),this._clipViewport||(t=-u.w,e=-u.h);var l=u.x+u.w-1,g=u.y+u.h-1;if(t<0&&u.x+t<0&&(t=-u.x),l+t>=this._fbWidth&&(t-=l+t-this._fbWidth+1),u.y+e<0&&(e=-u.y),g+e>=this._fbHeight&&(e-=g+e-this._fbHeight+1),t===0&&e===0)return;f.Debug("viewportChange deltaX: "+t+", deltaY: "+e),u.x+=t,u.y+=e,this._damage(u.x,u.y,u.w,u.h),this.flip()}},{key:"viewportChangeSize",value:function(t,e){(!this._clipViewport||typeof t=="undefined"||typeof e=="undefined")&&(f.Debug("Setting viewport to full display region"),t=this._fbWidth,e=this._fbHeight),t=Math.floor(t),e=Math.floor(e),t>this._fbWidth&&(t=this._fbWidth),e>this._fbHeight&&(e=this._fbHeight);var u=this._viewportLoc;if(u.w!==t||u.h!==e){u.w=t,u.h=e;var l=this._target;l.width=t,l.height=e,this.viewportChangePos(0,0),this._damage(u.x,u.y,u.w,u.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,_.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,_.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,e){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=e;var u=this._backbuffer;if(u.width!==t||u.height!==e){var l=null;u.width>0&&u.height>0&&(l=this._drawCtx.getImageData(0,0,u.width,u.height)),u.width!==t&&(u.width=t),u.height!==e&&(u.height=e),l&&this._drawCtx.putImageData(l,0,0)}var g=this._viewportLoc;this.viewportChangeSize(g.w,g.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,e,u,l){tthis._damageBounds.right&&(this._damageBounds.right=t+u),e+l>this._damageBounds.bottom&&(this._damageBounds.bottom=e+l)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var e=this._damageBounds.left,u=this._damageBounds.top,l=this._damageBounds.right-e,g=this._damageBounds.bottom-u,C=e-this._viewportLoc.x,x=u-this._viewportLoc.y;C<0&&(l+=C,e-=C,C=0),x<0&&(g+=x,u-=x,x=0),C+l>this._viewportLoc.w&&(l=this._viewportLoc.w-C),x+g>this._viewportLoc.h&&(g=this._viewportLoc.h-x),l>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,e,u,l,g,C,x,l,g),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(t,e,u,l,g,C){this._renderQ.length!==0&&!C?this._renderQPush({type:"fill",x:t,y:e,width:u,height:l,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(t,e,u,l),this._damage(t,e,u,l))}},{key:"copyImage",value:function(t,e,u,l,g,C,x){this._renderQ.length!==0&&!x?this._renderQPush({type:"copy",oldX:t,oldY:e,x:u,y:l,width:g,height:C}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,e,g,C,u,l,g,C),this._damage(u,l,g,C))}},{key:"imageRect",value:function(t,e,u,l,g,C){if(u===0||l===0)return;var x=new Image;x.src="data: "+g+";base64,"+k.default.encode(C),this._renderQPush({type:"img",img:x,x:t,y:e,width:u,height:l})}},{key:"startTile",value:function(t,e,u,l,g){this._tileX=t,this._tileY=e,u===16&&l===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(u,l);for(var C=g[2],x=g[1],y=g[0],T=this._tile.data,A=0;A=g?u=t/l.w:u=e/l.h}this._rescale(u)}},{key:"_rescale",value:function(t){this._scale=t;var e=this._viewportLoc,u=t*e.w+"px",l=t*e.h+"px";(this._target.style.width!==u||this._target.style.height!==l)&&(this._target.style.width=u,this._target.style.height=l)}},{key:"_setFillColor",value:function(t){var e="rgb("+t[2]+","+t[1]+","+t[0]+")";e!==this._prevDrawStyle&&(this._drawCtx.fillStyle=e,this._prevDrawStyle=e)}},{key:"_rgbImageData",value:function(t,e,u,l,g,C){for(var x=this._drawCtx.createImageData(u,l),y=x.data,T=0,A=C;T0;){var e=this._renderQ[0];switch(e.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(e.oldX,e.oldY,e.x,e.y,e.width,e.height,!0);break;case"fill":this.fillRect(e.x,e.y,e.width,e.height,e.color,!0);break;case"blit":this.blitImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"blitRgb":this.blitRgbImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"img":if(e.img.complete&&e.img.width!==0&&e.img.height!==0){if(e.img.width!==e.width||e.img.height!==e.height){f.Error("Decoded image has incorrect dimensions. Got "+e.img.width+"x"+e.img.height+". Expected "+e.width+"x"+e.height+".");return}this.drawImage(e.img,e.x,e.y)}else e.img._noVNCDisplay=this,e.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(t){this._rescale(t)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(t){this._clipViewport=t;var e=this._viewportLoc;this.viewportChangeSize(e.w,e.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),a}();I.default=s},Mmt2:function(Re,I,h){"use strict";function S(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(a){return typeof a}:S=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},S(i)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=m(h("Lo0S"));function k(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return k=function(){return i},i}function m(i){if(i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var s=k();if(s&&s.has(i))return s.get(i);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var e=n?Object.getOwnPropertyDescriptor(i,t):null;e&&(e.get||e.set)?Object.defineProperty(a,t,e):a[t]=i[t]}return a.default=i,s&&s.set(i,a),a}function _(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function r(i,s){for(var a=0;a=0;t--)n+=this._rQ[this._rQi++]<1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+a,n-a)}},{key:"rQwait",value:function(a,n,t){if(this.rQlen0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(a){this._sQ.set(a,this._sQlen),this._sQlen+=a.length,this.flush()}},{key:"sendString",value:function(a){this.send(a.split("").map(function(n){return n.charCodeAt(0)}))}},{key:"off",value:function(a){this._eventHandlers[a]=function(){}}},{key:"on",value:function(a,n){this._eventHandlers[a]=n}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(a,n){var t=this;this.init(),this._websocket=new WebSocket(a,n),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){f.Debug(">> WebSock.onopen"),t._websocket.protocol&&f.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),f.Debug("<< WebSock.onopen")},this._websocket.onclose=function(e){f.Debug(">> WebSock.onclose"),t._eventHandlers.close(e),f.Debug("<< WebSock.onclose")},this._websocket.onerror=function(e){f.Debug(">> WebSock.onerror: "+e),t._eventHandlers.error(e),f.Debug("<< WebSock.onerror: "+e)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(f.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(a){var n=(this._rQlen-this._rQi+a)*8,t=this._rQbufferSizec&&(this._rQbufferSize=c,this._rQbufferSize-this.rQlenthis._rQbufferSize-this._rQlen&&this._expandCompactRQ(n.length),this._rQ.set(n,this._rQlen),this._rQlen+=n.length}},{key:"_recvMessage",value:function(a){this._DecodeMessage(a.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):f.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(a){this._rQi=a}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),i}();I.default=o},"N/zr":function(Re,I,h){"use strict";function S(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(d){return typeof d}:S=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},S(r)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=m(h("Lo0S"));function k(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return k=function(){return r},r}function m(r){if(r&&r.__esModule)return r;if(r===null||S(r)!=="object"&&typeof r!="function")return{default:r};var p=k();if(p&&p.has(r))return p.get(r);var d={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var i=c?Object.getOwnPropertyDescriptor(r,o):null;i&&(i.get||i.set)?Object.defineProperty(d,o,i):d[o]=r[o]}return d.default=r,p&&p.set(r,d),d}var _={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(p){"use strict";for(var d="",c=p.length,o=c%3,i=0;i>2],d+=this.toBase64Table[((p[i]&3)<<4)+(p[i+1]>>4)],d+=this.toBase64Table[((p[i+1]&15)<<2)+(p[i+2]>>6)],d+=this.toBase64Table[p[i+2]&63];var s=c-o;return o===2?(d+=this.toBase64Table[p[s]>>2],d+=this.toBase64Table[((p[s]&3)<<4)+(p[s+1]>>4)],d+=this.toBase64Table[(p[s+1]&15)<<2],d+=this.toBase64Table[64]):o===1&&(d+=this.toBase64Table[p[s]>>2],d+=this.toBase64Table[(p[s]&3)<<4],d+=this.toBase64Table[64],d+=this.toBase64Table[64]),d},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=p.indexOf("=")-d;c<0&&(c=p.length-d);for(var o=(c>>2)*3+Math.floor(c%4/1.5),i=new Array(o),s=0,a=0,n=0,t=d;t=8&&(s-=8,u||(i[n++]=a>>s&255),a&=(1<1&&arguments[1]!==void 0?arguments[1]:!1;return!!(y(D)&&T(W))},y=function(D){return Object(i.p)()?!0:(D({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},T=function(){var D,W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Q=Object(o.c)()._store.getState(),j=Q.user;return(D=j.userInfo)!==null&&D!==void 0&&D.profile_completed?!0:(_.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:W?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){o.d.push("/account/profile/edit")}}),!1)},A=function(){var D,W=Object(o.c)()._store.getState(),Q=W.user;return(D=Q.userInfo)!==null&&D!==void 0&&D.professional_certification?!0:(_.a.confirm({title:"\u63D0\u793A",centered:!0,content:c.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(s.O)("/account/certification")}}),!1)},E=function(){return Object(i.a)()?!0:(_.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),c.a.createElement("img",{src:Object(i.t)()?g.a:"".concat(C.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},b=function(D,W){return D?!0:(_.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("p",null,W||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:u.a,width:200}),c.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(s.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},v=function(D){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Q=Object(o.c)()._store.getState(),j=Q.shixunsDetail.detail;return(j==null?void 0:j.public)===2||(j==null?void 0:j.public)===1||(j==null?void 0:j.shixun_status)===3?(_.a.info({centered:!0,icon:c.a.createElement(a.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(j==null?void 0:j.public)===2?"\u5DF2\u516C\u5F00":(j==null?void 0:j.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",W,"\u3002"),c.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),c.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:t.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(j==null?void 0:j.shixun_status)===2?(_.a.confirm({centered:!0,icon:c.a.createElement(a.a,null),title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",W,"\u3002"),c.a.createElement("br",null),c.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){_.a.confirm({width:440,centered:!0,icon:c.a.createElement(a.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var Y=Object(k.a)(p.a.mark(function P(){var L;return p.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,D({type:"shixunsDetail/cancelRelease",payload:{id:j==null?void 0:j.identifier}});case 2:L=M.sent,L.status!==401&&(f.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),D({type:"shixunsDetail/getShixunsDetail",payload:{id:j==null?void 0:j.identifier}}),D({type:"practiceSetting/getCommonData",payload:{id:j==null?void 0:j.identifier}}));case 4:case"end":return M.stop()}},P)}));function w(){return Y.apply(this,arguments)}return w}()})}}),!0):!1}},Nmxd:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(Re,I,h){"use strict";h.d(I,"a",function(){return r});var S=h("Kwbf");function f(p,d){var c=new Set;return p.forEach(function(o){d.has(o)||c.add(o)}),c}function k(p){var d=p||{},c=d.disabled,o=d.disableCheckbox,i=d.checkable;return!!(c||o)||i===!1}function m(p,d,c,o){for(var i=new Set(p),s=new Set,a=0;a<=c;a+=1){var n=d.get(a)||new Set;n.forEach(function(l){var g=l.key,C=l.node,x=l.children,y=x===void 0?[]:x;i.has(g)&&!o(C)&&y.filter(function(T){return!o(T.node)}).forEach(function(T){i.add(T.key)})})}for(var t=new Set,e=c;e>=0;e-=1){var u=d.get(e)||new Set;u.forEach(function(l){var g=l.parent,C=l.node;if(o(C)||!l.parent||t.has(l.parent.key))return;if(o(l.parent.node)){t.add(g.key);return}var x=!0,y=!1;(g.children||[]).filter(function(T){return!o(T.node)}).forEach(function(T){var A=T.key,E=i.has(A);x&&!E&&(x=!1),!y&&(E||s.has(A))&&(y=!0)}),x&&i.add(g.key),y&&s.add(g.key),t.add(g.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(f(s,i))}}function _(p,d,c,o,i){for(var s=new Set(p),a=new Set(d),n=0;n<=o;n+=1){var t=c.get(n)||new Set;t.forEach(function(g){var C=g.key,x=g.node,y=g.children,T=y===void 0?[]:y;!s.has(C)&&!a.has(C)&&!i(x)&&T.filter(function(A){return!i(A.node)}).forEach(function(A){s.delete(A.key)})})}a=new Set;for(var e=new Set,u=o;u>=0;u-=1){var l=c.get(u)||new Set;l.forEach(function(g){var C=g.parent,x=g.node;if(i(x)||!g.parent||e.has(g.parent.key))return;if(i(g.parent.node)){e.add(C.key);return}var y=!0,T=!1;(C.children||[]).filter(function(A){return!i(A.node)}).forEach(function(A){var E=A.key,b=s.has(E);y&&!b&&(y=!1),!T&&(b||a.has(E))&&(T=!0)}),y||s.delete(C.key),T&&a.add(C.key),e.add(C.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(f(a,s))}}function r(p,d,c,o){var i=[],s;o?s=o:s=k;var a=new Set(p.filter(function(u){var l=!!c[u];return l||i.push(u),l})),n=new Map,t=0;Object.keys(c).forEach(function(u){var l=c[u],g=l.level,C=n.get(g);C||(C=new Set,n.set(g,C)),C.add(l),t=Math.max(t,g)}),Object(S.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var e;return d===!0?e=m(a,n,t,s):e=_(a,d.halfCheckedKeys,n,t,s),e}},OLES:function(Re,I,h){"use strict";var S=h("U8pU"),f=h("VTBJ"),k=h("Ff2n"),m=h("q1tI"),_=h("uciX"),r=h("7ixt"),p=function(a){var n=a.overlay,t=a.prefixCls,e=a.id,u=a.overlayInnerStyle;return m.createElement("div",{className:"".concat(t,"-inner"),id:e,role:"tooltip",style:u},typeof n=="function"?n():n)},d=p,c=function(a,n){var t=a.overlayClassName,e=a.trigger,u=e===void 0?["hover"]:e,l=a.mouseEnterDelay,g=l===void 0?0:l,C=a.mouseLeaveDelay,x=C===void 0?.1:C,y=a.overlayStyle,T=a.prefixCls,A=T===void 0?"rc-tooltip":T,E=a.children,b=a.onVisibleChange,v=a.afterVisibleChange,O=a.transitionName,D=a.animation,W=a.placement,Q=W===void 0?"right":W,j=a.align,Z=j===void 0?{}:j,Y=a.destroyTooltipOnHide,w=Y===void 0?!1:Y,P=a.defaultVisible,L=a.getTooltipContainer,K=a.overlayInnerStyle,M=Object(k.a)(a,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),H=Object(m.useRef)(null);Object(m.useImperativeHandle)(n,function(){return H.current});var ae=Object(f.a)({},M);"visible"in a&&(ae.popupVisible=a.visible);var ve=function(){var fe=a.arrowContent,ie=fe===void 0?null:fe,oe=a.overlay,U=a.id;return[m.createElement("div",{className:"".concat(A,"-arrow"),key:"arrow"},ie),m.createElement(d,{key:"content",prefixCls:A,id:U,overlay:oe,overlayInnerStyle:K})]},de=!1,be=!1;if(typeof w=="boolean")de=w;else if(w&&Object(S.a)(w)==="object"){var z=w.keepParent;de=z===!0,be=z===!1}return m.createElement(_.a,Object.assign({popupClassName:t,prefixCls:A,popup:ve,action:u,builtinPlacements:r.a,popupPlacement:Q,ref:H,popupAlign:Z,getPopupContainer:L,onPopupVisibleChange:b,afterPopupVisibleChange:v,popupTransitionName:O,popupAnimation:D,defaultPopupVisible:P,destroyPopupOnHide:de,autoDestroy:be,mouseLeaveDelay:x,popupStyle:y,mouseEnterDelay:g},ae),E)},o=Object(m.forwardRef)(c),i=I.a=o},OZM5:function(Re,I,h){"use strict";h.d(I,"b",function(){return o}),h.d(I,"a",function(){return i}),h.d(I,"k",function(){return s}),h.d(I,"h",function(){return a}),h.d(I,"i",function(){return n}),h.d(I,"g",function(){return t}),h.d(I,"c",function(){return e}),h.d(I,"d",function(){return u}),h.d(I,"j",function(){return C}),h.d(I,"e",function(){return x}),h.d(I,"f",function(){return y});var S=h("KQm4"),f=h("U8pU"),k=h("Ff2n"),m=h("q1tI"),_=h.n(m),r=h("Kwbf"),p=h("WaYH"),d=.25,c=2;function o(T,A){var E=T.slice(),b=E.indexOf(A);return b>=0&&E.splice(b,1),E}function i(T,A){var E=T.slice();return E.indexOf(A)===-1&&E.push(A),E}function s(T){return T.split("-")}function a(T,A){return"".concat(T,"-").concat(A)}function n(T){return T&&T.type&&T.type.isTreeNode}function t(T,A){var E=[T],b=A[T];function v(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(D){var W=D.key,Q=D.children;E.push(W),v(Q)})}return v(b.children),E}function e(T,A){var E=T.clientY,b=A.selectHandle.getBoundingClientRect(),v=b.top,O=b.bottom,D=b.height,W=Math.max(D*d,c);return E<=v+W?-1:E>=O-W?1:0}function u(T,A){if(!T)return;var E=A.multiple;return E?T.slice():T.length?[T[0]]:T}var l=function(A){return A};function g(T,A){if(!T)return[];var E=A||{},b=E.processProps,v=b===void 0?l:b,O=Array.isArray(T)?T:[T];return O.map(function(D){var W=D.children,Q=Object(k.a)(D,["children"]),j=g(W,A);return _.a.createElement(p.a,Object.assign({},v(Q)),j)})}function C(T){if(!T)return null;var A;if(Array.isArray(T))A={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(f.a)(T)==="object")A={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(r.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function x(T,A){var E=new Set;function b(v){if(E.has(v))return;var O=A[v];if(!O)return;E.add(v);var D=O.parent,W=O.node;if(W.disabled)return;D&&b(D.key)}return(T||[]).forEach(function(v){b(v)}),Object(S.a)(E)}function y(T){var A={};return Object.keys(T).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(A[E]=T[E])}),A}},Ohmc:function(Re,I,h){Re.exports=h.p+"static/certificate.fc32dc1b.jpg"},P2ho:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};I.default=S},P5Jw:function(Re,I,h){"use strict";var S=h("rHrb"),f=S.CopyToClipboard;f.CopyToClipboard=f,Re.exports=f},QV2g:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=S;function S(){for(var m,_=[],r=0;r<256;r++){m=r;for(var p=0;p<8;p++)m=m&1?3988292384^m>>>1:m>>>1;_[r]=m}return _}var f=S();function k(m,_,r,p){var d=f,c=p+r;m^=-1;for(var o=p;o>>8^d[(m^_[o])&255];return m^-1}},RMFE:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(Re,I,h){Re.exports=h("LSTS")},"SA+Z":function(Re,I,h){var S=h("wTVA"),f=h("EbDI"),k=h("ZhPi"),m=h("wkBT");function _(r){return S(r)||f(r)||k(r)||m()}Re.exports=_,Re.exports.__esModule=!0,Re.exports.default=Re.exports},SFBS:function(Re,I,h){},SMhR:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},SZEN:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.clientToElement=S;function S(f,k,m){var _=m.getBoundingClientRect(),r={x:0,y:0};return f<_.left?r.x=0:f>=_.right?r.x=_.width-1:r.x=f-_.left,k<_.top?r.y=0:k>=_.bottom?r.y=_.height-1:r.y=k-_.top,r}},SgaC:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;p0;){if(i.rQwait("RRE",4+8))return!1;var t=i.rQshiftBytes(4),e=i.rQshift16(),u=i.rQshift16(),l=i.rQshift16(),g=i.rQshift16();s.fillRect(p+e,d+u,l,g,t),this._subrects--}return!0}}]),_}();I.default=m},TGq3:function(Re,I,h){Re.exports=h.p+"static/lockclose.365036e8.svg"},VSMT:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.decodeUTF8=S,I.encodeUTF8=f;function S(k){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(k))}catch(_){if(_ instanceof URIError&&m)return k;throw _}}function f(k){return unescape(encodeURIComponent(k))}},W6BS:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(Re,I,h){"use strict";var S=h("rePB"),f=h("Ff2n"),k=h("VTBJ"),m=h("1OyB"),_=h("vuIU"),r=h("JX7q"),p=h("Ji7U"),d=h("LK+K"),c=h("q1tI"),o=h("TSYQ"),i=h.n(o),s=h("sboe"),a=h("OZM5"),n=function(A){var E=A.prefixCls,b=A.level,v=A.isStart,O=A.isEnd;if(!b)return null;for(var D="".concat(E,"-indent-unit"),W=[],Q=0;Q64&&(f.Warn("Bad payload length ("+te+") in fence response"),te=64);var F=this._sock.rQshiftStr(te);return this._supportsFence=!0,N&1<<31?(N&=1<<0|1<<1,Ce.messages.clientFence(this._sock,N,F),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var N=this._sock.rQshift8(),te=this._sock.rQshift8();switch(te){case 0:f.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=N,f.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+te+")");break}return!0}},{key:"_normalMsg",value:function(){var N;this._FBU.rects>0?N=0:N=this._sock.rQshift8();var te,F;switch(N){case 0:return F=this._framebufferUpdate(),F&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),F;case 1:return this._handleSetColourMapMsg();case 2:return f.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return te=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,te&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),f.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+N+")"),f.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var N=this._sock.rQshiftBytes(12);this._FBU.x=(N[0]<<8)+N[1],this._FBU.y=(N[2]<<8)+N[3],this._FBU.width=(N[4]<<8)+N[5],this._FBU.height=(N[6]<<8)+N[7],this._FBU.encoding=parseInt((N[8]<<24)+(N[9]<<16)+(N[10]<<8)+N[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case l.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case l.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case l.encodings.pseudoEncodingCursor:return this._handleCursor();case l.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var N=document.createEvent("keyboardEvent");N.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(te){}return!0;case l.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case l.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case l.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var N=this._FBU.x,te=this._FBU.y,F=this._FBU.width,Ae=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var tt=this._sock.rQshift8();this._sock.rQshift8();var he,We=4;if(tt==0){var rt=4294967040|0;if(he=new Array(F*Ae*We),this._sock.rQwait("VMware cursor classic encoding",F*Ae*We*2,2))return!1;for(var V=new Array(F*Ae),Be=0;Be>8&255,we=Ne>>16&255,B=Ne>>24&255;he[De*We]=se,he[De*We+1]=we,he[De*We+2]=B,he[De*We+3]=255}else(V[De]&rt)==rt?xe[De]==0?(he[De*We]=0,he[De*We+1]=0,he[De*We+2]=0,he[De*We+3]=0):((xe[De]&rt)==rt,he[De*We]=0,he[De*We+1]=0,he[De*We+2]=0,he[De*We+3]=255):(he[De*We]=0,he[De*We+1]=0,he[De*We+2]=0,he[De*We+3]=255)}else if(tt==1){if(this._sock.rQwait("VMware cursor alpha encoding",F*Ae*4,2))return!1;he=new Array(F*Ae*We);for(var He=0;He>24&255,he[He*4+1]=at>>16&255,he[He*4+2]=at>>8&255,he[He*4+3]=at&255}}else return f.Warn("The given cursor type is not supported: "+tt+" given."),!1;return this._updateCursor(he,N,te,F,Ae),!0}},{key:"_handleCursor",value:function(){var N=this._FBU.x,te=this._FBU.y,F=this._FBU.width,Ae=this._FBU.height,tt=F*Ae*4,he=Math.ceil(F/8)*Ae,We=tt+he;if(this._sock.rQwait("cursor encoding",We))return!1;for(var rt=this._sock.rQshiftBytes(tt),V=this._sock.rQshiftBytes(he),Be=new Uint8Array(F*Ae*4),xe=0,ke=0;ke9){f.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===N)return;this._qualityLevel=N,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(N){if(!Number.isInteger(N)||N<0||N>9){f.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===N)return;this._compressionLevel=N,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(N,te){var F=N.split("").map(function(Ae){return Ae.charCodeAt(0)});return new t.default(F).encrypt(te)}}]),Ce}(p.default);I.default=Ve,Ve.messages={keyEvent:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen;N[te]=4,N[te+1]=ue,N[te+2]=0,N[te+3]=0,N[te+4]=Ce>>24,N[te+5]=Ce>>16,N[te+6]=Ce>>8,N[te+7]=Ce,Oe._sQlen+=8,Oe.flush()},QEMUExtendedKeyEvent:function(Oe,Ce,ue,N){function te(he){var We=N>>8,rt=N&255;return We===224&&rt<127?rt|128:he}var F=Oe._sQ,Ae=Oe._sQlen;F[Ae]=255,F[Ae+1]=0,F[Ae+2]=ue>>8,F[Ae+3]=ue,F[Ae+4]=Ce>>24,F[Ae+5]=Ce>>16,F[Ae+6]=Ce>>8,F[Ae+7]=Ce;var tt=te(N);F[Ae+8]=tt>>24,F[Ae+9]=tt>>16,F[Ae+10]=tt>>8,F[Ae+11]=tt,Oe._sQlen+=12,Oe.flush()},pointerEvent:function(Oe,Ce,ue,N){var te=Oe._sQ,F=Oe._sQlen;te[F]=5,te[F+1]=N,te[F+2]=Ce>>8,te[F+3]=Ce,te[F+4]=ue>>8,te[F+5]=ue,Oe._sQlen+=6,Oe.flush()},_buildExtendedClipboardFlags:function(Oe,Ce){for(var ue=new Uint8Array(4),N=0,te=0,F=0;F>24,ue[1]=0,ue[2]=0,ue[3]=N,ue},extendedClipboardProvide:function(Oe,Ce,ue){for(var N=new o.default,te=[],F=0;F>24&255,Ae.length>>16&255,Ae.length>>8&255,Ae.length&255);for(var tt=0;tt>24,te[F+1]=ue[N[Ae]]>>16,te[F+2]=ue[N[Ae]]>>8,te[F+3]=ue[N[Ae]]>>0,F+=4,te[3]|=1<2&&arguments[2]!==void 0?arguments[2]:!1,N=Oe._sQ,te=Oe._sQlen;N[te]=6,N[te+1]=0,N[te+2]=0,N[te+3]=0;var F;ue?F=(0,S.toUnsigned32bit)(-Ce.length):F=Ce.length,N[te+4]=F>>24,N[te+5]=F>>16,N[te+6]=F>>8,N[te+7]=F,Oe._sQlen+=8;for(var Ae=0,tt=Ce.length;tt>0;){for(var he=Math.min(tt,Oe._sQbufferSize-Oe._sQlen),We=0;We>8,F[Ae+3]=Ce,F[Ae+4]=ue>>8,F[Ae+5]=ue,F[Ae+6]=1,F[Ae+7]=0,F[Ae+8]=N>>24,F[Ae+9]=N>>16,F[Ae+10]=N>>8,F[Ae+11]=N,F[Ae+12]=0,F[Ae+13]=0,F[Ae+14]=0,F[Ae+15]=0,F[Ae+16]=Ce>>8,F[Ae+17]=Ce,F[Ae+18]=ue>>8,F[Ae+19]=ue,F[Ae+20]=te>>24,F[Ae+21]=te>>16,F[Ae+22]=te>>8,F[Ae+23]=te,Oe._sQlen+=24,Oe.flush()},clientFence:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen;N[te]=248,N[te+1]=0,N[te+2]=0,N[te+3]=0,N[te+4]=Ce>>24,N[te+5]=Ce>>16,N[te+6]=Ce>>8,N[te+7]=Ce;var F=ue.length;N[te+8]=F;for(var Ae=0;Ae>8,Ae[tt+3]=ue,Ae[tt+4]=N>>8,Ae[tt+5]=N,Ae[tt+6]=te>>8,Ae[tt+7]=te,Ae[tt+8]=F>>8,Ae[tt+9]=F,Oe._sQlen+=10,Oe.flush()},pixelFormat:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen,F;Ce>16?F=32:Ce>8?F=16:F=8;var Ae=Math.floor(Ce/3);N[te]=0,N[te+1]=0,N[te+2]=0,N[te+3]=0,N[te+4]=F,N[te+5]=Ce,N[te+6]=0,N[te+7]=ue?1:0,N[te+8]=0,N[te+9]=(1<>8,ue[N+3]=Ce.length;for(var te=N+4,F=0;F>24,ue[te+1]=Ae>>16,ue[te+2]=Ae>>8,ue[te+3]=Ae,te+=4}Oe._sQlen+=te-N,Oe.flush()},fbUpdateRequest:function(Oe,Ce,ue,N,te,F){var Ae=Oe._sQ,tt=Oe._sQlen;typeof ue=="undefined"&&(ue=0),typeof N=="undefined"&&(N=0),Ae[tt]=3,Ae[tt+1]=Ce?1:0,Ae[tt+2]=ue>>8&255,Ae[tt+3]=ue&255,Ae[tt+4]=N>>8&255,Ae[tt+5]=N&255,Ae[tt+6]=te>>8&255,Ae[tt+7]=te&255,Ae[tt+8]=F>>8&255,Ae[tt+9]=F&255,Oe._sQlen+=10,Oe.flush()},xvpOp:function(Oe,Ce,ue){var N=Oe._sQ,te=Oe._sQlen;N[te]=250,N[te+1]=0,N[te+2]=Ce,N[te+3]=ue,Oe._sQlen+=4,Oe.flush()}},Ve.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1j5w":function(Re,I,h){"use strict";h.d(I,"d",function(){return ue}),h.d(I,"b",function(){return at}),h.d(I,"c",function(){return Me}),h.d(I,"a",function(){return q});var S=h("VTBJ"),f=h("1OyB"),L=h("vuIU"),m=h("JX7q"),_=h("Ji7U"),r=h("LK+K"),p=h("q1tI"),d=h("I8Z2"),c=h("BGR+"),o=h("wx14"),i=h("rePB"),s=h("4IlW"),a=h("2GS6"),n=h("Gytx"),t=h.n(n),e=h("TSYQ"),u=h.n(e),l=h("U8pU"),g=h("ODXe"),C=/iPhone/i,x=/iPod/i,y=/iPad/i,T=/\bAndroid(?:.+)Mobile\b/i,A=/Android/i,E=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,v=/Windows Phone/i,O=/\bWindows(?:.+)ARM\b/i,D=/BlackBerry/i,W=/BB10/i,Q=/Opera Mini/i,j=/\b(CriOS|Chrome)(?:.+)Mobile/i,Z=/Mobile(?:.+)Firefox\b/i;function Y(Se,Ge){return Se.test(Ge)}function w(Se){var Ge=Se||(typeof navigator!="undefined"?navigator.userAgent:""),Ye=Ge.split("[FBAN");if(typeof Ye[1]!="undefined"){var Te=Ye,$=Object(g.a)(Te,1);Ge=$[0]}if(Ye=Ge.split("Twitter"),typeof Ye[1]!="undefined"){var pe=Ye,qe=Object(g.a)(pe,1);Ge=qe[0]}var Xe={apple:{phone:Y(C,Ge)&&!Y(v,Ge),ipod:Y(x,Ge),tablet:!Y(C,Ge)&&Y(y,Ge)&&!Y(v,Ge),device:(Y(C,Ge)||Y(x,Ge)||Y(y,Ge))&&!Y(v,Ge)},amazon:{phone:Y(E,Ge),tablet:!Y(E,Ge)&&Y(b,Ge),device:Y(E,Ge)||Y(b,Ge)},android:{phone:!Y(v,Ge)&&Y(E,Ge)||!Y(v,Ge)&&Y(T,Ge),tablet:!Y(v,Ge)&&!Y(E,Ge)&&!Y(T,Ge)&&(Y(b,Ge)||Y(A,Ge)),device:!Y(v,Ge)&&(Y(E,Ge)||Y(b,Ge)||Y(T,Ge)||Y(A,Ge))||Y(/\bokhttp\b/i,Ge)},windows:{phone:Y(v,Ge),tablet:Y(O,Ge),device:Y(v,Ge)||Y(O,Ge)},other:{blackberry:Y(D,Ge),blackberry10:Y(W,Ge),opera:Y(Q,Ge),firefox:Y(Z,Ge),chrome:Y(j,Ge),device:Y(D,Ge)||Y(W,Ge)||Y(Q,Ge)||Y(Z,Ge)||Y(j,Ge)},any:null,phone:null,tablet:null};return Xe.any=Xe.apple.device||Xe.android.device||Xe.windows.device||Xe.other.device,Xe.phone=Xe.apple.phone||Xe.android.phone||Xe.windows.phone,Xe.tablet=Xe.apple.tablet||Xe.android.tablet||Xe.windows.tablet,Xe}var P=Object(S.a)(Object(S.a)({},w()),{},{isMobile:w}),k=P;function K(){}function M(Se,Ge,Ye){var Te=Ge||"";return Se.key||"".concat(Te,"item_").concat(Ye)}function H(Se){return"".concat(Se,"-menu-")}function ae(Se,Ge){var Ye=-1;p.Children.forEach(Se,function(Te){Ye+=1,Te&&Te.type&&Te.type.isMenuItemGroup?p.Children.forEach(Te.props.children,function($){Ye+=1,Ge($,Ye)}):Ge(Te,Ye)})}function ve(Se,Ge,Ye){if(!Se||Ye.find)return;p.Children.forEach(Se,function(Te){if(Te){var $=Te.type;if(!$||!($.isSubMenu||$.isMenuItem||$.isMenuItemGroup))return;Ge.indexOf(Te.key)!==-1?Ye.find=!0:Te.props.children&&ve(Te.props.children,Ge,Ye)}})}var de=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],be=function(Ge){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te=Ge&&typeof Ge.getBoundingClientRect=="function"&&Ge.getBoundingClientRect().width;if(Te){if(Ye){var $=getComputedStyle(Ge),pe=$.marginLeft,qe=$.marginRight;Te+=+pe.replace("px","")+ +qe.replace("px","")}Te=+Te.toFixed(6)}return Te||0},z=function(Ge,Ye,Te){Ge&&Object(l.a)(Ge.style)==="object"&&(Ge.style[Ye]=Te)},ne=function(){return k.any},fe=h("KQm4"),ie=h("Ff2n"),oe=h("i8i4"),U=h("bdgK"),ee=h("uciX"),J=h("8XRh"),le={adjustX:1,adjustY:1},Pe={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},Qe={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},$e=Pe,et=0,Ve={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Le=function(Ge,Ye,Te){var $=H(Ye),pe=Ge.getState();Ge.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},pe.defaultActiveFirst),{},Object(i.a)({},$,Te))})},Oe=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(Te){var $;Object(f.a)(this,Ye),$=Ge.call(this,Te),$.onDestroy=function(ze){$.props.onDestroy(ze)},$.onKeyDown=function(ze){var it=ze.keyCode,ct=$.menuInstance,vt=$.props,pt=vt.isOpen,Rt=vt.store;if(it===s.a.ENTER)return $.onTitleClick(ze),Le(Rt,$.props.eventKey,!0),!0;if(it===s.a.RIGHT)return pt?ct.onKeyDown(ze):($.triggerOpenChange(!0),Le(Rt,$.props.eventKey,!0)),!0;if(it===s.a.LEFT){var Bt;if(pt)Bt=ct.onKeyDown(ze);else return;return Bt||($.triggerOpenChange(!1),Bt=!0),Bt}return pt&&(it===s.a.UP||it===s.a.DOWN)?ct.onKeyDown(ze):void 0},$.onOpenChange=function(ze){$.props.onOpenChange(ze)},$.onPopupVisibleChange=function(ze){$.triggerOpenChange(ze,ze?"mouseenter":"mouseleave")},$.onMouseEnter=function(ze){var it=$.props,ct=it.eventKey,vt=it.onMouseEnter,pt=it.store;Le(pt,$.props.eventKey,!1),vt({key:ct,domEvent:ze})},$.onMouseLeave=function(ze){var it=$.props,ct=it.parentMenu,vt=it.eventKey,pt=it.onMouseLeave;ct.subMenuInstance=Object(m.a)($),pt({key:vt,domEvent:ze})},$.onTitleMouseEnter=function(ze){var it=$.props,ct=it.eventKey,vt=it.onItemHover,pt=it.onTitleMouseEnter;vt({key:ct,hover:!0}),pt({key:ct,domEvent:ze})},$.onTitleMouseLeave=function(ze){var it=$.props,ct=it.parentMenu,vt=it.eventKey,pt=it.onItemHover,Rt=it.onTitleMouseLeave;ct.subMenuInstance=Object(m.a)($),pt({key:vt,hover:!1}),Rt({key:vt,domEvent:ze})},$.onTitleClick=function(ze){var it=Object(m.a)($),ct=it.props;if(ct.onTitleClick({key:ct.eventKey,domEvent:ze}),ct.triggerSubMenuAction==="hover")return;$.triggerOpenChange(!ct.isOpen,"click"),Le(ct.store,$.props.eventKey,!1)},$.onSubMenuClick=function(ze){typeof $.props.onClick=="function"&&$.props.onClick($.addKeyPath(ze))},$.onSelect=function(ze){$.props.onSelect(ze)},$.onDeselect=function(ze){$.props.onDeselect(ze)},$.getPrefixCls=function(){return"".concat($.props.rootPrefixCls,"-submenu")},$.getActiveClassName=function(){return"".concat($.getPrefixCls(),"-active")},$.getDisabledClassName=function(){return"".concat($.getPrefixCls(),"-disabled")},$.getSelectedClassName=function(){return"".concat($.getPrefixCls(),"-selected")},$.getOpenClassName=function(){return"".concat($.props.rootPrefixCls,"-submenu-open")},$.saveMenuInstance=function(ze){$.menuInstance=ze},$.addKeyPath=function(ze){return Object(S.a)(Object(S.a)({},ze),{},{keyPath:(ze.keyPath||[]).concat($.props.eventKey)})},$.triggerOpenChange=function(ze,it){var ct=$.props.eventKey,vt=function(){$.onOpenChange({key:ct,item:Object(m.a)($),trigger:it,open:ze})};it==="mouseenter"?$.mouseenterTimeout=setTimeout(function(){vt()},0):vt()},$.isChildrenSelected=function(){var ze={find:!1};return ve($.props.children,$.props.selectedKeys,ze),ze.find},$.isOpen=function(){return $.props.openKeys.indexOf($.props.eventKey)!==-1},$.adjustWidth=function(){if(!$.subMenuTitle||!$.menuInstance)return;var ze=oe.findDOMNode($.menuInstance);if(ze.offsetWidth>=$.subMenuTitle.offsetWidth)return;ze.style.minWidth="".concat($.subMenuTitle.offsetWidth,"px")},$.saveSubMenuTitle=function(ze){$.subMenuTitle=ze},$.getBaseProps=function(){var ze=Object(m.a)($),it=ze.props;return{mode:it.mode==="horizontal"?"vertical":it.mode,visible:$.props.isOpen,level:it.level+1,inlineIndent:it.inlineIndent,focusable:!1,onClick:$.onSubMenuClick,onSelect:$.onSelect,onDeselect:$.onDeselect,onDestroy:$.onDestroy,selectedKeys:it.selectedKeys,eventKey:"".concat(it.eventKey,"-menu-"),openKeys:it.openKeys,motion:it.motion,onOpenChange:$.onOpenChange,subMenuOpenDelay:it.subMenuOpenDelay,parentMenu:Object(m.a)($),subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,triggerSubMenuAction:it.triggerSubMenuAction,builtinPlacements:it.builtinPlacements,defaultActiveFirst:it.store.getState().defaultActiveFirst[H(it.eventKey)],multiple:it.multiple,prefixCls:it.rootPrefixCls,id:$.internalMenuId,manualRef:$.saveMenuInstance,itemIcon:it.itemIcon,expandIcon:it.expandIcon,direction:it.direction}},$.getMotion=function(ze,it){var ct=Object(m.a)($),vt=ct.haveRendered,pt=$.props,Rt=pt.motion,Bt=pt.rootPrefixCls,Xt=Object(S.a)(Object(S.a)({},Rt),{},{leavedClassName:"".concat(Bt,"-hidden"),removeOnLeave:!1,motionAppear:vt||!it||ze!=="inline"});return Xt};var pe=Te.store,qe=Te.eventKey,Xe=pe.getState(),ot=Xe.defaultActiveFirst;$.isRootMenu=!1;var st=!1;return ot&&(st=ot[qe]),Le(pe,qe,st),$}return Object(L.a)(Ye,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var $=this,pe=this.props,qe=pe.mode,Xe=pe.parentMenu,ot=pe.manualRef;if(ot&&ot(this),qe!=="horizontal"||!Xe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return $.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var $=this.props,pe=$.onDestroy,qe=$.eventKey;pe&&pe(qe),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function($){var pe=this,qe=this.getBaseProps(),Xe=this.getMotion(qe.mode,qe.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||qe.visible||qe.forceSubMenuRender,!this.haveOpened)return p.createElement("div",null);var ot=qe.direction;return p.createElement(J.default,Object.assign({visible:qe.visible},Xe),function(st){var ze=st.className,it=st.style,ct=u()("".concat(qe.prefixCls,"-sub"),ze,Object(i.a)({},"".concat(qe.prefixCls,"-rtl"),ot==="rtl"));return p.createElement(ke,Object.assign({},qe,{id:pe.internalMenuId,className:ct,style:it}),$)})}},{key:"render",value:function(){var $,pe=Object(S.a)({},this.props),qe=pe.isOpen,Xe=this.getPrefixCls(),ot=pe.mode==="inline",st=u()(Xe,"".concat(Xe,"-").concat(pe.mode),($={},Object(i.a)($,pe.className,!!pe.className),Object(i.a)($,this.getOpenClassName(),qe),Object(i.a)($,this.getActiveClassName(),pe.active||qe&&!ot),Object(i.a)($,this.getDisabledClassName(),pe.disabled),Object(i.a)($,this.getSelectedClassName(),this.isChildrenSelected()),$));this.internalMenuId||(pe.eventKey?this.internalMenuId="".concat(pe.eventKey,"$Menu"):(et+=1,this.internalMenuId="$__$".concat(et,"$Menu")));var ze={},it={},ct={};pe.disabled||(ze={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},it={onClick:this.onTitleClick},ct={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var vt={},pt=pe.direction;ot&&(pt==="rtl"?vt.paddingRight=pe.inlineIndent*pe.level:vt.paddingLeft=pe.inlineIndent*pe.level);var Rt={};this.props.isOpen&&(Rt={"aria-owns":this.internalMenuId});var Bt=null;pe.mode!=="horizontal"&&(Bt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Bt=p.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var Xt=p.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:vt,className:"".concat(Xe,"-title"),role:"button"},ct,it,{"aria-expanded":qe},Rt,{"aria-haspopup":"true",title:typeof pe.title=="string"?pe.title:void 0}),pe.title,Bt||p.createElement("i",{className:"".concat(Xe,"-arrow")})),Ft=this.renderChildren(pe.children),Qt=pe.parentMenu.isRootMenu?pe.parentMenu.props.getPopupContainer:function(qn){return qn.parentNode},pn=Ve[pe.mode],Pn=pe.popupOffset?{offset:pe.popupOffset}:{},na=pe.mode==="inline"?"":pe.popupClassName;na+=pt==="rtl"?" ".concat(Xe,"-rtl"):"";var Ot=pe.disabled,dn=pe.triggerSubMenuAction,Rn=pe.subMenuOpenDelay,Yn=pe.forceSubMenuRender,On=pe.subMenuCloseDelay,Wn=pe.builtinPlacements;de.forEach(function(qn){return delete pe[qn]}),delete pe.onClick;var jt=pt==="rtl"?Object.assign({},Qe,Wn):Object.assign({},Pe,Wn);return delete pe.direction,p.createElement("li",Object.assign({},pe,ze,{className:st,role:"menuitem"}),ot&&Xt,ot&&Ft,!ot&&p.createElement(ee.a,{prefixCls:Xe,popupClassName:u()("".concat(Xe,"-popup"),na),getPopupContainer:Qt,builtinPlacements:jt,popupPlacement:pn,popupVisible:qe,popupAlign:Pn,popup:Ft,action:Ot?[]:[dn],mouseEnterDelay:Rn,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Yn},Xt))}}]),Ye}(p.Component);Oe.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var Ce=Object(d.b)(function(Se,Ge){var Ye=Se.openKeys,Te=Se.activeKey,$=Se.selectedKeys,pe=Ge.eventKey,qe=Ge.subMenuKey;return{isOpen:Ye.indexOf(pe)>-1,active:Te[qe]===pe,selectedKeys:$}})(Oe);Ce.isSubMenu=!0;var ue=Ce,N="menuitem-overflowed",te=.5,F=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(){var Te;return Object(f.a)(this,Ye),Te=Ge.apply(this,arguments),Te.resizeObserver=null,Te.mutationObserver=null,Te.originalTotalWidth=0,Te.overflowedItems=[],Te.menuItemSizes=[],Te.cancelFrameId=null,Te.state={lastVisibleIndex:void 0},Te.getMenuItemNodes=function(){var $=Te.props.prefixCls,pe=oe.findDOMNode(Object(m.a)(Te));return pe?[].slice.call(pe.children).filter(function(qe){return qe.className.split(" ").indexOf("".concat($,"-overflowed-submenu"))<0}):[]},Te.getOverflowedSubMenuItem=function($,pe,qe){var Xe=Te.props,ot=Xe.overflowedIndicator,st=Xe.level,ze=Xe.mode,it=Xe.prefixCls,ct=Xe.theme;if(st!==1||ze!=="horizontal")return null;var vt=Te.props.children[0],pt=vt.props,Rt=pt.children,Bt=pt.title,Xt=pt.style,Ft=Object(ie.a)(pt,["children","title","style"]),Qt=Object(S.a)({},Xt),pn="".concat($,"-overflowed-indicator"),Pn="".concat($,"-overflowed-indicator");pe.length===0&&qe!==!0?Qt=Object(S.a)(Object(S.a)({},Qt),{},{display:"none"}):qe&&(Qt=Object(S.a)(Object(S.a)({},Qt),{},{visibility:"hidden",position:"absolute"}),pn="".concat(pn,"-placeholder"),Pn="".concat(Pn,"-placeholder"));var na=ct?"".concat(it,"-").concat(ct):"",Ot={};return de.forEach(function(dn){Ft[dn]!==void 0&&(Ot[dn]=Ft[dn])}),p.createElement(ue,Object.assign({title:ot,className:"".concat(it,"-overflowed-submenu"),popupClassName:na},Ot,{key:pn,eventKey:Pn,disabled:!1,style:Qt}),pe)},Te.setChildrenWidthAndResize=function(){if(Te.props.mode!=="horizontal")return;var $=oe.findDOMNode(Object(m.a)(Te));if(!$)return;var pe=$.children;if(!pe||pe.length===0)return;var qe=$.children[pe.length-1];z(qe,"display","inline-block");var Xe=Te.getMenuItemNodes(),ot=Xe.filter(function(st){return st.className.split(" ").indexOf(N)>=0});ot.forEach(function(st){z(st,"display","inline-block")}),Te.menuItemSizes=Xe.map(function(st){return be(st,!0)}),ot.forEach(function(st){z(st,"display","none")}),Te.overflowedIndicatorWidth=be($.children[$.children.length-1],!0),Te.originalTotalWidth=Te.menuItemSizes.reduce(function(st,ze){return st+ze},0),Te.handleResize(),z(qe,"display","none")},Te.handleResize=function(){if(Te.props.mode!=="horizontal")return;var $=oe.findDOMNode(Object(m.a)(Te));if(!$)return;var pe=be($);Te.overflowedItems=[];var qe=0,Xe;Te.originalTotalWidth>pe+te&&(Xe=-1,Te.menuItemSizes.forEach(function(ot){qe+=ot,qe+Te.overflowedIndicatorWidth<=pe&&(Xe+=1)})),Te.setState({lastVisibleIndex:Xe})},Te}return Object(L.a)(Ye,[{key:"componentDidMount",value:function(){var $=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var pe=oe.findDOMNode(this);if(!pe)return;this.resizeObserver=new U.default(function(qe){qe.forEach(function(){var Xe=$.cancelFrameId;cancelAnimationFrame(Xe),$.cancelFrameId=requestAnimationFrame($.setChildrenWidthAndResize)})}),[].slice.call(pe.children).concat(pe).forEach(function(qe){$.resizeObserver.observe(qe)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){$.resizeObserver.disconnect(),[].slice.call(pe.children).concat(pe).forEach(function(qe){$.resizeObserver.observe(qe)}),$.setChildrenWidthAndResize()}),this.mutationObserver.observe(pe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function($){var pe=this,qe=this.state.lastVisibleIndex;return($||[]).reduce(function(Xe,ot,st){var ze=ot;if(pe.props.mode==="horizontal"){var it=pe.getOverflowedSubMenuItem(ot.props.eventKey,[]);qe!==void 0&&pe.props.className.indexOf("".concat(pe.props.prefixCls,"-root"))!==-1&&(st>qe&&(ze=p.cloneElement(ot,{style:{display:"none"},eventKey:"".concat(ot.props.eventKey,"-hidden"),className:"".concat(N)})),st===qe+1&&(pe.overflowedItems=$.slice(qe+1).map(function(vt){return p.cloneElement(vt,{key:vt.props.eventKey,mode:"vertical-left"})}),it=pe.getOverflowedSubMenuItem(ot.props.eventKey,pe.overflowedItems)));var ct=[].concat(Object(fe.a)(Xe),[it,ze]);return st===$.length-1&&ct.push(pe.getOverflowedSubMenuItem(ot.props.eventKey,[],!0)),ct}return[].concat(Object(fe.a)(Xe),[ze])},[])}},{key:"render",value:function(){var $=this.props,pe=$.visible,qe=$.prefixCls,Xe=$.overflowedIndicator,ot=$.mode,st=$.level,ze=$.tag,it=$.children,ct=$.theme,vt=Object(ie.a)($,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),pt=ze;return p.createElement(pt,Object.assign({},vt),this.renderChildren(it))}}]),Ye}(p.Component);F.defaultProps={tag:"div",className:""};var Ae=F;function tt(Se){return Se.length?Se.every(function(Ge){return!!Ge.props.disabled}):!0}function he(Se,Ge,Ye){var Te=Se.getState();Se.setState({activeKey:Object(S.a)(Object(S.a)({},Te.activeKey),{},Object(i.a)({},Ge,Ye))})}function We(Se){return Se.eventKey||"0-menu-"}function rt(Se,Ge){var Ye=Ge,Te=Se.children,$=Se.eventKey;if(Ye){var pe;if(ae(Te,function(qe,Xe){qe&&qe.props&&!qe.props.disabled&&Ye===M(qe,$,Xe)&&(pe=!0)}),pe)return Ye}return Ye=null,Se.defaultActiveFirst&&ae(Te,function(qe,Xe){!Ye&&qe&&!qe.props.disabled&&(Ye=M(qe,$,Xe))}),Ye}function V(Se){if(Se){var Ge=this.instanceArray.indexOf(Se);Ge!==-1?this.instanceArray[Ge]=Se:this.instanceArray.push(Se)}}var Be=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(Te){var $;return Object(f.a)(this,Ye),$=Ge.call(this,Te),$.onKeyDown=function(pe,qe){var Xe=pe.keyCode,ot;if($.getFlatInstanceArray().forEach(function(ze){ze&&ze.props.active&&ze.onKeyDown&&(ot=ze.onKeyDown(pe))}),ot)return 1;var st=null;return(Xe===s.a.UP||Xe===s.a.DOWN)&&(st=$.step(Xe===s.a.UP?-1:1)),st?(pe.preventDefault(),he($.props.store,We($.props),st.props.eventKey),typeof qe=="function"&&qe(st),1):void 0},$.onItemHover=function(pe){var qe=pe.key,Xe=pe.hover;he($.props.store,We($.props),Xe?qe:null)},$.onDeselect=function(pe){$.props.onDeselect(pe)},$.onSelect=function(pe){$.props.onSelect(pe)},$.onClick=function(pe){$.props.onClick(pe)},$.onOpenChange=function(pe){$.props.onOpenChange(pe)},$.onDestroy=function(pe){$.props.onDestroy(pe)},$.getFlatInstanceArray=function(){return $.instanceArray},$.step=function(pe){var qe=$.getFlatInstanceArray(),Xe=$.props.store.getState().activeKey[We($.props)],ot=qe.length;if(!ot)return null;pe<0&&(qe=qe.concat().reverse());var st=-1;if(qe.every(function(vt,pt){return vt&&vt.props.eventKey===Xe?(st=pt,!1):!0}),!$.props.defaultActiveFirst&&st!==-1&&tt(qe.slice(st,ot-1)))return;var ze=(st+1)%ot,it=ze;do{var ct=qe[it];if(!ct||ct.props.disabled)it=(it+1)%ot;else return ct}while(it!==ze);return null},$.renderCommonMenuItem=function(pe,qe,Xe){var ot=$.props.store.getState(),st=Object(m.a)($),ze=st.props,it=M(pe,ze.eventKey,qe),ct=pe.props;if(!ct||typeof pe.type=="string")return pe;var vt=it===ot.activeKey,pt=Object(S.a)(Object(S.a)({mode:ct.mode||ze.mode,level:ze.level,inlineIndent:ze.inlineIndent,renderMenuItem:$.renderMenuItem,rootPrefixCls:ze.prefixCls,index:qe,parentMenu:ze.parentMenu,manualRef:ct.disabled?void 0:Object(a.a)(pe.ref,V.bind(Object(m.a)($))),eventKey:it,active:!ct.disabled&&vt,multiple:ze.multiple,onClick:function(Bt){(ct.onClick||K)(Bt),$.onClick(Bt)},onItemHover:$.onItemHover,motion:ze.motion,subMenuOpenDelay:ze.subMenuOpenDelay,subMenuCloseDelay:ze.subMenuCloseDelay,forceSubMenuRender:ze.forceSubMenuRender,onOpenChange:$.onOpenChange,onDeselect:$.onDeselect,onSelect:$.onSelect,builtinPlacements:ze.builtinPlacements,itemIcon:ct.itemIcon||$.props.itemIcon,expandIcon:ct.expandIcon||$.props.expandIcon},Xe),{},{direction:ze.direction});return(ze.mode==="inline"||ne())&&(pt.triggerSubMenuAction="click"),p.cloneElement(pe,pt)},$.renderMenuItem=function(pe,qe,Xe){if(!pe)return null;var ot=$.props.store.getState(),st={openKeys:ot.openKeys,selectedKeys:ot.selectedKeys,triggerSubMenuAction:$.props.triggerSubMenuAction,subMenuKey:Xe};return $.renderCommonMenuItem(pe,qe,st)},Te.store.setState({activeKey:Object(S.a)(Object(S.a)({},Te.store.getState().activeKey),{},Object(i.a)({},Te.eventKey,rt(Te,Te.activeKey)))}),$.instanceArray=[],$}return Object(L.a)(Ye,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function($){return this.props.visible||$.visible||this.props.className!==$.className||!t()(this.props.style,$.style)}},{key:"componentDidUpdate",value:function($){var pe=this.props,qe="activeKey"in pe?pe.activeKey:pe.store.getState().activeKey[We(pe)],Xe=rt(pe,qe);if(Xe!==qe)he(pe.store,We(pe),Xe);else if("activeKey"in $){var ot=rt($,$.activeKey);Xe!==ot&&he(pe.store,We(pe),Xe)}}},{key:"render",value:function(){var $=this,pe=Object(o.a)({},this.props);this.instanceArray=[];var qe=u()(pe.prefixCls,pe.className,"".concat(pe.prefixCls,"-").concat(pe.mode)),Xe={className:qe,role:pe.role||"menu"};pe.id&&(Xe.id=pe.id),pe.focusable&&(Xe.tabIndex=0,Xe.onKeyDown=this.onKeyDown);var ot=pe.prefixCls,st=pe.eventKey,ze=pe.visible,it=pe.level,ct=pe.mode,vt=pe.overflowedIndicator,pt=pe.theme;return de.forEach(function(Rt){return delete pe[Rt]}),delete pe.onClick,p.createElement(Ae,Object.assign({},pe,{prefixCls:ot,mode:ct,tag:"ul",level:it,theme:pt,visible:ze,overflowedIndicator:vt},Xe),p.Children.map(pe.children,function(Rt,Bt){return $.renderMenuItem(Rt,Bt,st||"0-menu-")}))}}]),Ye}(p.Component);Be.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var xe=Object(d.b)()(Be),ke=xe,De=h("Kwbf");function Ne(Se,Ge,Ye){var Te=Se.prefixCls,$=Se.motion,pe=Se.defaultMotions,qe=pe===void 0?{}:pe,Xe=Se.openAnimation,ot=Se.openTransitionName,st=Ge.switchingModeFromInline;if($)return $;if(Object(l.a)(Xe)==="object"&&Xe)Object(De.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Xe=="string")return{motionName:"".concat(Te,"-open-").concat(Xe)};if(ot)return{motionName:ot};var ze=qe[Ye];return ze||(st?null:qe.other)}var se=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(Te){var $;Object(f.a)(this,Ye),$=Ge.call(this,Te),$.inlineOpenKeys=[],$.onSelect=function(Xe){var ot=Object(m.a)($),st=ot.props;if(st.selectable){var ze=$.store.getState(),it=ze.selectedKeys,ct=Xe.key;st.multiple?it=it.concat([ct]):it=[ct],"selectedKeys"in st||$.store.setState({selectedKeys:it}),st.onSelect(Object(S.a)(Object(S.a)({},Xe),{},{selectedKeys:it}))}},$.onClick=function(Xe){var ot=$.getRealMenuMode(),st=Object(m.a)($),ze=st.store,it=st.props.onOpenChange;ot!=="inline"&&!("openKeys"in $.props)&&(ze.setState({openKeys:[]}),it([])),$.props.onClick(Xe)},$.onKeyDown=function(Xe,ot){$.innerMenu.getWrappedInstance().onKeyDown(Xe,ot)},$.onOpenChange=function(Xe){var ot=Object(m.a)($),st=ot.props,ze=$.store.getState().openKeys.concat(),it=!1,ct=function(pt){var Rt=!1;if(pt.open)Rt=ze.indexOf(pt.key)===-1,Rt&&ze.push(pt.key);else{var Bt=ze.indexOf(pt.key);Rt=Bt!==-1,Rt&&ze.splice(Bt,1)}it=it||Rt};Array.isArray(Xe)?Xe.forEach(ct):ct(Xe),it&&("openKeys"in $.props||$.store.setState({openKeys:ze}),st.onOpenChange(ze))},$.onDeselect=function(Xe){var ot=Object(m.a)($),st=ot.props;if(st.selectable){var ze=$.store.getState().selectedKeys.concat(),it=Xe.key,ct=ze.indexOf(it);ct!==-1&&ze.splice(ct,1),"selectedKeys"in st||$.store.setState({selectedKeys:ze}),st.onDeselect(Object(S.a)(Object(S.a)({},Xe),{},{selectedKeys:ze}))}},$.onMouseEnter=function(Xe){$.restoreModeVerticalFromInline();var ot=$.props.onMouseEnter;ot&&ot(Xe)},$.onTransitionEnd=function(Xe){var ot=Xe.propertyName==="width"&&Xe.target===Xe.currentTarget,st=Xe.target.className,ze=Object.prototype.toString.call(st)==="[object SVGAnimatedString]"?st.animVal:st,it=Xe.propertyName==="font-size"&&ze.indexOf("anticon")>=0;(ot||it)&&$.restoreModeVerticalFromInline()},$.setInnerMenu=function(Xe){$.innerMenu=Xe},$.isRootMenu=!0;var pe=Te.defaultSelectedKeys,qe=Te.defaultOpenKeys;return"selectedKeys"in Te&&(pe=Te.selectedKeys||[]),"openKeys"in Te&&(qe=Te.openKeys||[]),$.store=Object(d.c)({selectedKeys:pe,openKeys:qe,activeKey:{"0-menu-":rt(Te,Te.activeKey)}}),$.state={switchingModeFromInline:!1},$}return Object(L.a)(Ye,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function($){this.updateOpentKeysWhenSwitchMode($),this.updateMiniStore();var pe=this.props,qe=pe.siderCollapsed,Xe=pe.inlineCollapsed,ot=pe.onOpenChange;(!$.inlineCollapsed&&Xe||!$.siderCollapsed&&qe)&&ot([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function($){var pe=this.props,qe=this.store,Xe=this.inlineOpenKeys,ot=qe.getState(),st={};$.mode==="inline"&&pe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in pe||((pe.inlineCollapsed&&!$.inlineCollapsed||pe.siderCollapsed&&!$.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=ot.openKeys.concat(),st.openKeys=[]),(!pe.inlineCollapsed&&$.inlineCollapsed||!pe.siderCollapsed&&$.siderCollapsed)&&(st.openKeys=Xe,this.inlineOpenKeys=[])),Object.keys(st).length&&qe.setState(st)}},{key:"updateMenuDisplay",value:function(){var $=this.props.collapsedWidth,pe=this.store,qe=this.prevOpenKeys,Xe=this.getInlineCollapsed()&&($===0||$==="0"||$==="0px");Xe?(this.prevOpenKeys=pe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):qe&&(this.store.setState({openKeys:qe}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var $=this.props.mode,pe=this.state.switchingModeFromInline,qe=this.getInlineCollapsed();return pe&&qe?"inline":qe?"vertical":$}},{key:"getInlineCollapsed",value:function(){var $=this.props,pe=$.inlineCollapsed,qe=$.siderCollapsed;return qe!==void 0?qe:pe}},{key:"restoreModeVerticalFromInline",value:function(){var $=this.state.switchingModeFromInline;$&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var $=Object(S.a)({},Object(c.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),pe=this.getRealMenuMode();return $.className+=" ".concat($.prefixCls,"-root"),$.direction==="rtl"&&($.className+=" ".concat($.prefixCls,"-rtl")),$=Object(S.a)(Object(S.a)({},$),{},{mode:pe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ne(this.props,this.state,pe)}),delete $.openAnimation,delete $.openTransitionName,p.createElement(d.a,{store:this.store},p.createElement(ke,Object.assign({},$,{ref:this.setInnerMenu}),this.props.children))}}]),Ye}(p.Component);se.defaultProps={selectable:!0,onClick:K,onSelect:K,onOpenChange:K,onDeselect:K,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:p.createElement("span",null,"\xB7\xB7\xB7")};var we=se,B=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(){var Te;return Object(f.a)(this,Ye),Te=Ge.apply(this,arguments),Te.onKeyDown=function($){var pe=$.keyCode;return pe===s.a.ENTER?(Te.onClick($),!0):void 0},Te.onMouseLeave=function($){var pe=Te.props,qe=pe.eventKey,Xe=pe.onItemHover,ot=pe.onMouseLeave;Xe({key:qe,hover:!1}),ot({key:qe,domEvent:$})},Te.onMouseEnter=function($){var pe=Te.props,qe=pe.eventKey,Xe=pe.onItemHover,ot=pe.onMouseEnter;Xe({key:qe,hover:!0}),ot({key:qe,domEvent:$})},Te.onClick=function($){var pe=Te.props,qe=pe.eventKey,Xe=pe.multiple,ot=pe.onClick,st=pe.onSelect,ze=pe.onDeselect,it=pe.isSelected,ct={key:qe,keyPath:[qe],item:Object(m.a)(Te),domEvent:$};ot(ct),Xe?it?ze(ct):st(ct):it||st(ct)},Te.saveNode=function($){Te.node=$},Te}return Object(L.a)(Ye,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var $=this.props;$.onDestroy&&$.onDestroy($.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var $,pe=Object(S.a)({},this.props),qe=u()(this.getPrefixCls(),pe.className,($={},Object(i.a)($,this.getActiveClassName(),!pe.disabled&&pe.active),Object(i.a)($,this.getSelectedClassName(),pe.isSelected),Object(i.a)($,this.getDisabledClassName(),pe.disabled),$)),Xe=Object(S.a)(Object(S.a)({},pe.attribute),{},{title:typeof pe.title=="string"?pe.title:void 0,className:qe,role:pe.role||"menuitem","aria-disabled":pe.disabled});pe.role==="option"?Xe=Object(S.a)(Object(S.a)({},Xe),{},{role:"option","aria-selected":pe.isSelected}):(pe.role===null||pe.role==="none")&&(Xe.role="none");var ot={onClick:pe.disabled?null:this.onClick,onMouseLeave:pe.disabled?null:this.onMouseLeave,onMouseEnter:pe.disabled?null:this.onMouseEnter},st=Object(S.a)({},pe.style);pe.mode==="inline"&&(pe.direction==="rtl"?st.paddingRight=pe.inlineIndent*pe.level:st.paddingLeft=pe.inlineIndent*pe.level),de.forEach(function(it){return delete pe[it]}),delete pe.direction;var ze=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ze=p.createElement(this.props.itemIcon,this.props)),p.createElement("li",Object.assign({},Object(c.default)(pe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Xe,ot,{style:st,ref:this.saveNode}),pe.children,ze)}}]),Ye}(p.Component);B.isMenuItem=!0,B.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var He=Object(d.b)(function(Se,Ge){var Ye=Se.activeKey,Te=Se.selectedKeys,$=Ge.eventKey,pe=Ge.subMenuKey;return{active:Ye[pe]===$,isSelected:Te.indexOf($)!==-1}})(B),at=He,R=function(Se){Object(_.a)(Ye,Se);var Ge=Object(r.a)(Ye);function Ye(){var Te;return Object(f.a)(this,Ye),Te=Ge.apply(this,arguments),Te.renderInnerMenuItem=function($){var pe=Te.props,qe=pe.renderMenuItem,Xe=pe.index;return qe($,Xe,Te.props.subMenuKey)},Te}return Object(L.a)(Ye,[{key:"render",value:function(){var $=Object(o.a)({},this.props),pe=$.className,qe=pe===void 0?"":pe,Xe=$.rootPrefixCls,ot="".concat(Xe,"-item-group-title"),st="".concat(Xe,"-item-group-list"),ze=$.title,it=$.children;return de.forEach(function(ct){return delete $[ct]}),delete $.onClick,delete $.direction,p.createElement("li",Object.assign({},$,{className:"".concat(qe," ").concat(Xe,"-item-group")}),p.createElement("div",{className:ot,title:typeof ze=="string"?ze:void 0},ze),p.createElement("ul",{className:st},p.Children.map(it,this.renderInnerMenuItem)))}}]),Ye}(p.Component);R.isMenuItemGroup=!0,R.defaultProps={disabled:!0};var Me=R,Ue=function(Ge){var Ye=Ge.className,Te=Ge.rootPrefixCls,$=Ge.style;return p.createElement("li",{className:"".concat(Ye," ").concat(Te,"-item-divider"),style:$})};Ue.defaultProps={disabled:!0,className:"",style:{}};var q=Ue,ye=I.e=we},"1q3G":function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=S;function S(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"34/K":function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;p>0&3)*255/3,x[y*4+1]=(l[g+y]>>2&3)*255/3,x[y*4+2]=(l[g+y]>>4&3)*255/3,x[y*4+4]=0;l=x,g=0}return s.blitImage(p,e,c,u,l,g),i.rQskipBytes(u*t),this._lines-=u,!(this._lines>0)}}]),_}();I.default=m},"3690":function(Re,I,h){"use strict";function S(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(i){return typeof i}:S=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},S(c)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=m(h("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return L=function(){return c},c}function m(c){if(c&&c.__esModule)return c;if(c===null||S(c)!=="object"&&typeof c!="function")return{default:c};var o=L();if(o&&o.has(c))return o.get(c);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in c)if(Object.prototype.hasOwnProperty.call(c,a)){var n=s?Object.getOwnPropertyDescriptor(c,a):null;n&&(n.get||n.set)?Object.defineProperty(i,a,n):i[a]=c[a]}return i.default=c,o&&o.set(c,i),i}function _(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function r(c,o){for(var i=0;i0;){var l=1;if(t.rQwait("HEXTILE",l))return!1;var g=t.rQ,C=t.rQi,x=g[C];if(x>30)throw new Error("Illegal hextile subencoding (subencoding: "+x+")");var y=this._totalTiles-this._tiles,T=y%this._tilesX,A=Math.floor(y/this._tilesX),E=i+T*16,b=s+A*16,v=Math.min(16,i+a-E),O=Math.min(16,s+n-b);if(x&1)l+=v*O*4;else if(x&2&&(l+=4),x&4&&(l+=4),x&8){if(l++,t.rQwait("HEXTILE",l))return!1;var D=g[C+l-1];x&16?l+=D*(4+2):l+=D*2}if(t.rQwait("HEXTILE",l))return!1;if(C++,x===0)this._lastsubencoding&1?f.Debug(" Ignoring blank after RAW"):e.fillRect(E,b,v,O,this._background);else if(x&1)e.blitImage(E,b,v,O,g,C),C+=l-1;else{if(x&2&&(this._background=[g[C],g[C+1],g[C+2],g[C+3]],C+=4),x&4&&(this._foreground=[g[C],g[C+1],g[C+2],g[C+3]],C+=4),e.startTile(E,b,v,O,this._background),x&8){var W=g[C];C++;for(var Q=0;Q>4,w=Z&15,P=g[C];C++;var k=(P>>4)+1,K=(P&15)+1;e.subTile(Y,w,k,K,j)}}e.finishTile()}t.rQi=C,this._lastsubencoding=x,this._tiles--}return!0}}]),c}();I.default=d},"3MsV":function(Re,I,h){},"3wET":function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"498V":function(Re,I,h){Re.exports=h.p+"static/logo.22b9a281.svg"},"4pCv":function(Re,I,h){"use strict";h.r(I);var S=h("oBTY"),f=h("bbsP"),L=h("/wGt"),m=h("jrin"),_=h("2qtc"),r=h("kLXV"),p=h("miYZ"),d=h("tsqr"),c=h("9og8"),o=h("tJVT"),i=h("PpiC"),s=h("k1fw"),a=h("ozfa"),n=h("MJZm"),t=h("WmNS"),e=h.n(t),u=h("q1tI"),l=h.n(u),g=h("Ty5D"),C=h("9kvl"),x=h("BUUv"),y=h("IxHN"),T=h("M8RZ"),A=h("giR+"),E=h("fyUT"),b=h("5NDa"),v=h("5rEg"),O=h("0Owb"),D=h("+L6B"),W=h("2/Rp"),Q=h("y8nQ"),j=h("Vl3Y"),Z=h("aHsQ"),Y=h("sGsY"),w=h("55Ip"),P=h("6/vW"),k=h("SFBS"),K=h("14J3"),M=h("BMrR"),H=h("jCWc"),ae=h("kPKH"),ve=h("lOMy"),de=h("GIiI"),be=h("P5Jw"),z=h("vS10"),ne=h("RCxd"),fe=h("500L"),ie=h("m3rI"),oe=h("ErOA"),U=h("1vsH"),ee=Object(u.forwardRef)(function(me,Ze){var mt=me.time;console.log("ScreenRecord:",Ze);var ht=Object(u.useRef)(),Ct=Object(u.useState)(),xt=Object(o.a)(Ct,2),Vt=xt[0],St=xt[1],hn=Object(u.useRef)(),gt=2e3,ft=[];Object(u.useImperativeHandle)(Ze,function(){return{startScreenRecord:Ut,downloadFile:wt}});function Ht(An,Dn){return Lt.apply(this,arguments)}function Lt(){return Lt=Object(c.a)(e.a.mark(function An(Dn,Wt){var ma,sn;return e.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return ma=[],wn.next=3,new MediaRecorder(Dn);case 3:sn=wn.sent,sn.ondataavailable=function(bn){ma.push(bn.data)},sn.start(),hn.current=sn,window.recorderRefs=sn,sn.addEventListener("stop",function(bn){var ea=URL.createObjectURL(ma[0],{type:"video/mp4"});Object(U.v)("xxx.webm",ea)});case 9:case"end":return wn.stop()}},An)})),Lt.apply(this,arguments)}function wt(){if(!window.recorderRefs){d.b.warn("\u60A8\u8FD8\u6CA1\u6709\u5F00\u542F\u89C6\u9891\u5F55\u5236\uFF0C\u8BF7\u5148\u53BB\u5F55\u5236\u89C6\u9891\u5427\uFF01");return}var An=ht.current.srcObject.getTracks();An.forEach(function(Dn){Dn.stop()}),window.recorderRefs.addEventListener("dataavailable",function(Dn){var Wt=URL.createObjectURL(Dn.data,{type:"video/mp4"});Object(U.v)("\u5C4F\u5E55\u5F55\u5236\u89C6\u9891.webm",Wt)})}function Ut(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then(function(An){return ht.current.srcObject=An,ft.push(An),ht.current.captureStream=ht.current.captureStream||ht.current.mozCaptureStream,new Promise(function(Dn){return ht.current.onplaying=Dn})}).then(function(){return Ht(ht.current.captureStream(),gt)}).then(function(An){}).catch(function(An){An.name==="NotFoundError"?d.b.warn("\u627E\u4E0D\u5230\u6444\u50CF\u5934\u6216\u9EA6\u514B\u98CE\u3002\u65E0\u6CD5\u5F55\u5236."):d.b.warn(An.name)})}return l.a.createElement("div",{style:{position:"absolute",top:"0",zIndex:-1}},l.a.createElement("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:ht}))}),J=ee,le={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Pe=function(me){var Ze=me.className,mt=me.mirror_description,ht=me.git_url,Ct=me.difficulty,xt=me.task_pass,Vt=me.test_set_permission,St=me.onVncAction,hn=me.shixun,gt=me.window_vnc_url,ft=me.linux_vnc,Ht=me.vnc_url,Lt=me.unity_3d_routes,wt=me.taskData;console.log(wt);var Ut=Object(g.i)(),An=Object(u.useState)("8082"),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useState)(!1),gn=Object(o.a)(sn,2),wn=gn[0],bn=gn[1],ea=Object(u.useRef)(),Ta=gt?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",Aa=gt?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",Ia=function(){r.a.confirm({title:"\u91CD\u542F\u4E91\u4E3B\u673A",icon:l.a.createElement(ne.a,null),content:"\u60A8\u786E\u5B9A\u8981\u91CD\u542F\u4E91\u4E3B\u673A\u5417\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Zt=Object(c.a)(e.a.mark(function sa(){var kn;return e.a.wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:return fa.next=2,Object(z.f)({identifier:Ut.taskId});case 2:return kn=fa.sent,(kn==null?void 0:kn.status)===0&&d.b.info("\u91CD\u542F\u6210\u529F"),fa.abrupt("return","");case 5:case"end":return fa.stop()}},sa)}));function Ln(){return Zt.apply(this,arguments)}return Ln}()})},nr=function(){r.a.info({title:"\u6587\u4EF6\u4E0A\u4F20",icon:null,okText:"\u5173\u95ED",width:600,centered:!0,content:l.a.createElement("div",{className:"pt10"},l.a.createElement(fe.b,{isDragger:!0,maxSize:1024,additionalText:'\u9ED8\u8BA4\u5B58\u653E\u76EE\u5F55\u8DEF\u5F84\u4E3A"'.concat(Ta,'"'),action:"".concat(ie.a.API_SERVER,"/api/sci/projects/").concat(Ut.taskId,"/upload_file.json?debug=admin"),onChange:function(Ln){Ln.some(function(sa){var kn;return((kn=sa.response)===null||kn===void 0?void 0:kn.status)===0})&&(r.a.destroyAll(),d.b.info("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}}))})},lt=function(){r.a.confirm({title:"\u4E0B\u8F7D\u4EE3\u7801",centered:!0,width:600,content:"\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(Aa,"\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),onOk:function(){var Zt=Object(c.a)(e.a.mark(function sa(){return e.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:return ra.next=2,Object(oe.a)("/api/sci/projects/".concat(Ut.taskId,"/download_file.json?debug=admin"),{method:"post",body:{autoDownload:!0},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return ra.abrupt("return",!0);case 3:case"end":return ra.stop()}},sa)}));function Ln(){return Zt.apply(this,arguments)}return Ln}()})},da=function(){var Zt,Ln;(Zt=ea.current)===null||Zt===void 0||((Ln=Zt.startScreenRecord)===null||Ln===void 0)||Ln.call(Zt)},Ra=function(){var Zt=wt.webssh;r.a.info({title:"SSH\u76F4\u8FDE",width:600,centered:!0,content:l.a.createElement(l.a.Fragment,null,l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u8D26\u53F7"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.username)),l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u5730\u5740"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.address)),l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u7AEF\u53E3"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.servicePort)),l.a.createElement(M.a,null,l.a.createElement(ae.a,{flex:"50px"},"\u5BC6\u7801"),l.a.createElement(ae.a,null,Zt==null?void 0:Zt.password)))})};return l.a.createElement("div",{className:"tpi-code-setting ".concat(Ze),style:{height:"calc(100vh - 54px )"}},l.a.createElement("h3",null,"\u529F\u80FD"),l.a.createElement("section",null,l.a.createElement("a",{id:"full-screen",title:"\u5168\u5C4F",className:"file-item action",onClick:function(){St("full-screen")}}," ",l.a.createElement("i",{className:"iconfont icon-quanping"}),"\u5F00\u542F / \u9000\u51FA\u5168\u5C4F "),!Lt&&l.a.createElement(l.a.Fragment,null,l.a.createElement("a",{id:"reset-task",onClick:function(){return St("reset-task")},className:"file-item action",title:"\u91CD\u7F6E\u73AF\u5883"}," ",l.a.createElement("i",{className:"iconfont icon-zhongzhishixun"}),"\u91CD\u7F6E\u73AF\u5883 "),l.a.createElement("a",{onClick:function(){return nr()},className:"file-item action",title:"\u4E0A\u4F20\u6587\u4EF6"}," ",l.a.createElement("i",{className:"iconfont icon-shangchuanshipin1"}),"\u4E0A\u4F20\u6587\u4EF6"),l.a.createElement("a",{onClick:function(){return lt()},className:"file-item action",title:"\u4E0B\u8F7D\u6587\u4EF6"}," ",l.a.createElement("i",{className:"iconfont icon-xiazai3"}),"\u4E0B\u8F7D\u6587\u4EF6"),l.a.createElement("a",{onClick:function(){return da()},className:"file-item action",title:"\u5C4F\u5E55\u5F55\u5236"}," ",l.a.createElement("i",{className:"iconfont icon-jiaruketang1"}),"\u5C4F\u5E55\u5F55\u5236"),l.a.createElement("a",{className:"file-item action w100",title:"ssh\u76F4\u8FDE"}," ",l.a.createElement("i",{className:"iconfont icon-suanfasheji"}),l.a.createElement(M.a,{align:"middle",className:"w100"},l.a.createElement(ae.a,{flex:"1",onClick:Ra},l.a.createElement(W.a,{type:"text",loading:wn},l.a.createElement("span",{style:{color:"#ddd",marginLeft:-11}},"ssh\u76F4\u8FDE"))))),gt&&l.a.createElement("a",{id:"reset-task",onClick:Ia,className:"file-item action",title:"\u91CD\u542F\u4E91\u4E3B\u673A"}," ",l.a.createElement(de.a,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"\u91CD\u542F\u4E91\u4E3B\u673A "),ht?l.a.createElement(be.CopyToClipboard,{text:ht,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("a",{id:"copy-git",title:"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740",className:"file-item action"}," ",l.a.createElement("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740 ")):null)),l.a.createElement(J,{ref:ea}))},Qe=h("9VGf"),$e=h("DjyN"),et=h("NUBc"),Ve=h("5Dmo"),Le=h("3S7+"),Oe=h("JJs0"),Ce=h.n(Oe),ue,N,te=(ue=Object(U.F)())!==null&&ue!==void 0&&ue.homework_common_id?{homework_common_id:(N=Object(U.F)())===null||N===void 0?void 0:N.homework_common_id}:{};function F(me){return Object(oe.c)("tasks/".concat(me,".json"),te)}function Ae(me){return Object(oe.c)("sci/projects/".concat(me,"/get_data_sets.json"))}function tt(me){return Object(oe.c)("myshixuns/".concat(me,"/challenges.json"))}function he(me,Ze){return Object(oe.c)("myshixuns/".concat(me,"/subject_challenges.json"),Ze)}function We(me,Ze,mt){return Object(oe.c)("tasks/".concat(me,"/star.json?shixun_id=").concat(Ze,"&star=").concat(mt))}function rt(me,Ze){return Object(oe.c)("tasks/".concat(me,"/rep_content.json"),Object(s.a)(Object(s.a)({},Ze),te))}function V(me,Ze){return Object(oe.f)("myshixuns/".concat(me,"/update_file.json"),Ze)}function Be(me,Ze){return Object(oe.c)("tasks/".concat(me,"/reset_original_code.json"),Object(s.a)(Object(s.a)({},Ze),te))}function xe(me,Ze){return Object(oe.f)("myshixuns/".concat(me,"/reset_repository.json"),Ze)}function ke(me,Ze){return Object(oe.c)("tasks/".concat(me,"/reset_passed_code.json"),Object(s.a)(Object(s.a)({},Ze),te))}function De(me,Ze){return Object(oe.f)("tasks/".concat(me,"/game_build.json"),Object(s.a)(Object(s.a)({},Ze),te))}function Ne(me,Ze){return Object(oe.c)("tasks/".concat(me,"/game_status.json"),Object(s.a)(Object(s.a)({},Ze),te))}function se(me,Ze){return Object(oe.f)("tasks/".concat(me,"/choose_build.json"),Object(s.a)(Object(s.a)({},Ze),te))}function we(me){return Object(oe.c)("tasks/".concat(me,"/picture_display.json"),te)}function B(me,Ze){return Object(oe.c)("tasks/".concat(me,"/cost_time.json"),Object(s.a)(Object(s.a)({},Ze),te))}function He(me,Ze){return Object(oe.c)("courses/".concat(me,"/inform_detail.json"),Ze)}function at(me){return Object(oe.f)("tasks/".concat(me,"/plus_or_cancel_praise.json"))}function R(me){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object(oe.f)("myshixuns/".concat(me,"/repository.json"),Ze)}function Me(me,Ze){return Object(oe.c)("myshixuns/".concat(me,"/open_webssh.json"),Ze||{})}function Ue(me,Ze){return Object(oe.c)("myshixuns/".concat(me,"/open_vm_webssh.json"),Ze)}function q(me){return Object(oe.c)("tasks/".concat(me,"/close_webssh.json"))}function ye(me){return Se.apply(this,arguments)}function Se(){return Se=Object(c.a)(e.a.mark(function me(Ze){var mt;return e.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(oe.f)("/sci/projects/".concat(Ze,"/delete_pod.json"));case 2:if(mt=Ct.sent,!((mt==null?void 0:mt.status)>=0)){Ct.next=5;break}return Ct.abrupt("return",Object(oe.f)("/sci/projects/".concat(Ze,"/start_environment.json"),te));case 5:case"end":return Ct.stop()}},me)})),Se.apply(this,arguments)}function Ge(me){return Object(oe.f)("tasks/".concat(me,"/reset_environment"))}function Ye(me,Ze){return Object(oe.f)("tasks/".concat(me,"/reset_linux_vnc_link.json"),Ze||{})}function Te(me){return Object(oe.c)("tasks/".concat(me,"/check_test_sets.json"))}function $(me){return Object(oe.c)("tasks/".concat(me,"/get_answer_info.json"))}function pe(me){return Object(oe.c)("tasks/".concat(me,"/get_choose_answer.json"))}function qe(me){return Object(oe.c)("tasks/".concat(me,"/unlock_choose_answer.json"))}function Xe(me,Ze){return Object(oe.c)("tasks/".concat(me,"/unlock_answer.json?answer_id=").concat(Ze))}function ot(me,Ze,mt){return Object(oe.f)("tasks/".concat(me,"/set_games_status.json"),{result:Ze,data:mt})}function st(me){return Object(oe.f)("/sci/projects/".concat(me,"/extend_release.json"))}function ze(me,Ze){return Object(oe.f)("/sci/projects/".concat(me,"/save_mirror.json"),Object(s.a)({},Ze))}function it(me){return Object(oe.a)("/api/tasks/".concat(me,"/active.json"),{method:"post",body:{template_id:window.sessionStorage.imageId}})}function ct(me){return Object(oe.f)("tasks/".concat(me,"/extend_linux_vnc.json"),te)}function vt(me,Ze){return Object(oe.c)("tasks/".concat(me,"/rank_list.json"),Ze)}function pt(me,Ze){return Object(oe.f)("tasks/".concat(me,"/close_windows_vnc.json"),{tpi_id:Ze})}function Rt(me){return Object(oe.c)("tasks/".concat(me,"/pull_files.json"))}function Bt(me,Ze){return Object(oe.f)("tasks/".concat(me,"/log_output"),Ze)}function Xt(me){return Object(oe.c)("tasks/".concat(me,"/stop_log_output.json"))}function Ft(me){return Qt.apply(this,arguments)}function Qt(){return Qt=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/myshixuns/".concat(Ze.id,"/add_file.json"),{method:"post",body:Ze}));case 1:case"end":return ht.stop()}},me)})),Qt.apply(this,arguments)}function pn(me){return Pn.apply(this,arguments)}function Pn(){return Pn=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/myshixuns/".concat(Ze.id,"/delete_git_file.json"),{method:"Delete",body:Ze}));case 1:case"end":return ht.stop()}},me)})),Pn.apply(this,arguments)}function na(me){return Ot.apply(this,arguments)}function Ot(){return Ot=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/myshixuns/".concat(Ze.id,"/mv_file.json"),{method:"post",body:Ze}));case 1:case"end":return ht.stop()}},me)})),Ot.apply(this,arguments)}function dn(me){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(c.a)(e.a.mark(function me(Ze){return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.abrupt("return",Object(oe.a)("/api/tasks/".concat(Ze.id,"/rep_content.json"),{method:"get",params:Ze}));case 1:case"end":return ht.stop()}},me)})),Rn.apply(this,arguments)}var Yn;(function(me){me.Classrooms="classrooms",me.Shixuns="shixuns",me.Paths="paths",me.Projects="projects",me.Videos="videos",me.Topics="topics",me.Teach="teach-group"})(Yn||(Yn={}));var On=function(Ze){var mt=Ze.userDetail,ht=Ze.user,Ct=Ze.globalSetting,xt=Ze.loading,Vt=Ze.dispatch,St=Ze.onClose,hn=Ze.shixun,gt=Object(i.a)(Ze,["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"]),ft=Object(g.i)(),Ht=Object(u.useState)([]),Lt=Object(o.a)(Ht,2),wt=Lt[0],Ut=Lt[1],An=Object(u.useState)(""),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useState)(0),gn=Object(o.a)(sn,2),wn=gn[0],bn=gn[1],ea=Object(u.useState)(Object(s.a)({page:1,limit:20},ft)),Ta=Object(o.a)(ea,2),Aa=Ta[0],Ia=Ta[1],nr=Object(u.useCallback)(function(){return gt.visible},[gt.visible]);Object(u.useEffect)(function(){Aa.page=1,lt()},[gt.visible]);var lt=function(){var da=Object(c.a)(e.a.mark(function Ra(){var yn;return e.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,Ae(ft.taskId);case 2:yn=Ln.sent,yn&&(Ut(Object(S.a)(yn.data_sets)),bn(yn.data_sets_count),ma(yn.folder_name));case 4:case"end":return Ln.stop()}},Ra)}));return function(){return da.apply(this,arguments)}}();return l.a.createElement("div",{style:{height:"calc(100vh - 51px)",padding:"20px 15px"}},l.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6570\u636E\u96C6"),l.a.createElement("dl",{className:Ce.a.list},l.a.createElement(Le.a,{title:Wt},l.a.createElement("dt",{className:"c-white"},Wt)),l.a.createElement("dd",null,l.a.createElement(be.CopyToClipboard,{text:Wt,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat(Ce.a.copy," current")},"\u70B9\u51FB\u590D\u5236")))),l.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6587\u4EF6\u8DEF\u5F84"),wt==null?void 0:wt.map(function(da,Ra){return l.a.createElement("dl",{className:Ce.a.list},l.a.createElement(Le.a,{title:da.filename},l.a.createElement("dt",{className:"c-white"},da.filename)),l.a.createElement("dd",null,l.a.createElement(be.CopyToClipboard,{text:da.file_path,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat(Ce.a.copy," current")},"\u70B9\u51FB\u590D\u5236"))))}),l.a.createElement("div",{className:"tc"},l.a.createElement(et.a,{onChange:function(Ra){Aa.page=Ra,lt()},className:Ce.a.page,size:"small",total:wn,pageSize:Aa.limit,hideOnSinglePage:!0})))},Wn=Object(C.a)(function(me){var Ze=me.user,mt=me.userDetail,ht=me.loading,Ct=me.shixunsDetail,xt=me.globalSetting;return{user:Ze,userDetail:mt,shixunsDetail:Ct,globalSetting:xt,loading:ht.models.index}})(On),jt=h("dhSg"),qn=h("q1cb"),wa=h("iOsX"),zn=h.n(wa),Jn=h("XG6U"),ua=h.n(Jn),Tn=h("bntm"),ga=h("bPs0"),ka=Y.a.Countdown;function cr(){return l.a.createElement("p",null,"\u684C\u9762\u7CFB\u7EDF\u5C06\u6062\u590D\u5230\u521D\u59CB\u72B6\u6001\uFF0C\u60A8\u5728\u7CFB\u7EDF\u4E2D\u521B\u5EFA\u7684\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931\u3002\u8BF7\u786E\u4FDD\u60A8\u7684\u6570\u636E\u5DF2\u4FDD\u5B58\uFF08\u5982\uFF1A\u7248\u672C\u5E93\u4EE3\u7801\u5DF2\u63A8\u9001\u5230\u670D\u52A1\u5668\uFF09\u3002\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\uFF1F")}var qa=function(me){var Ze=me.mirror_description,mt=me.difficulty,ht=me.git_url,Ct=me.vnc_url,xt=me.window_vnc_url,Vt=me.linux_vnc,St=me.isNotice,hn=me.user,gt=me.game,ft=me.shixun,Ht=ft===void 0?{}:ft,Lt=me.taskData,wt=Lt===void 0?{}:Lt,Ut=me.resetVncLoading,An=me.onUpdateCostTime,Dn=me.lastedGetTaskInfoTime,Wt=me.onShowNotice,ma=me.onResetGitCode,sn=me.onResetVnc,gn=me.onBack,wn=me.history,bn=me.onAddVncTime,ea=me.onUpdateCode,Ta=me.unity_3d_routes,Aa=me.remaining_time,Ia=me.st,nr=Ht.name,lt=Ht.identifier,da=Ht.task_pass,Ra=Ht.test_set_permission,yn=Object(u.useState)(!1),Zt=Object(o.a)(yn,2),Ln=Zt[0],sa=Zt[1],kn=Object(u.useState)(!1),ra=Object(o.a)(kn,2),fa=ra[0],ar=ra[1],pr=Object(u.useState)({}),ir=Object(o.a)(pr,2),Pa=ir[0],sr=ir[1],mr=Object(u.useState)(!1),_r=Object(o.a)(mr,2),vr=_r[0],Ma=_r[1],an=Object(u.useState)(null),ya=Object(o.a)(an,2),gr=ya[0],At=ya[1],cn=Object(u.useState)(1800),Un=Object(o.a)(cn,2),Zn=Un[0],_a=Un[1],rn=Object(u.useState)(!1),Da=Object(o.a)(rn,2),Ea=Da[0],ha=Da[1],Kn=Object(u.useState)(!1),Bn=Object(o.a)(Kn,2),ta=Bn[0],pa=Bn[1],ja=Object(g.h)().query,La=Object(g.i)(),Ca=Object(u.useState)(!1),Gt=Object(o.a)(Ca,2),qt=Gt[0],Xn=Gt[1],oa=j.a.useForm(),xa=Object(o.a)(oa,1),Ua=xa[0],Ka=Object(u.useMemo)(function(){return Date.now()+Aa},[Aa]);Object(u.useEffect)(function(){vr||setTimeout(function(){Ma(!0)},1e3*60)},[vr]),Object(u.useEffect)(function(){jt.a.subscribe("update-windows-time",function(Hn){_a(parseInt(Aa/1e3))}),_a(Aa/1e3)},[]),Object(u.useEffect)(function(){var Hn;return ja.type==="exercises"&&Pa!==null&&Pa!==void 0&&(Hn=Pa.exercise)!==null&&Hn!==void 0&&Hn.screen_open&&(ga.b.forEach(function(In,Ba){document.addEventListener(In,Fa,!1),document.addEventListener("blur",Fa,!1)}),window.focus(),window.onblur=function(){Object(Tn.a)()&&(Fa(),Object(Tn.b)())}),function(){ga.b.forEach(function(In,Ba){document.removeEventListener(In,Fa,!1)})}},[Pa]);var Ya=function(){ha(!Ea)},Fa=function(In){window.parent.postMessage("backExercise","*"),In!=="back"&&Object(Tn.b)()};function Tr(){sa(!Ln)}function br(){sa(!1),ar(!1)}function Wr(){Object(C.c)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),wn.replace("/innovation/project/detail/".concat(La.taskId))}function Rr(){if(Ut)return;sn()}function yr(){r.a.confirm({title:"\u9000\u51FA",icon:l.a.createElement(ne.a,null),content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5236\u4F5C\u955C\u50CF\u5417\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Wr})}function ao(Hn){if(br(),Hn==="reset-task"&&(Ut||r.a.confirm({title:"\u91CD\u7F6E\u73AF\u5883",icon:l.a.createElement(ne.a,null),content:"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Rr(),Ma(!1)}})),Hn==="reset-code"&&(Ut||r.a.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:l.a.createElement(ne.a,null),content:"\u60A8\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:ma})),Hn==="full-screen")if(Object(Tn.a)())Object(Tn.b)();else{var In,Ba;Object(Tn.d)((In=document)===null||In===void 0||((Ba=In.getElementById)===null||Ba===void 0)?void 0:Ba.call(In,"task-right-panel"))}Hn==="show-clipboard-box"&&jt.a.publish("show-clipboard-box")}var Er={task_pass:da,test_set_permission:Ra,mirror_description:Ze,difficulty:mt,resetVncLoading:Ut,git_url:ht,onVncAction:ao,window_vnc_url:xt,linux_vnc:Vt,vnc_url:Ct,shixun:Ht,unity_3d_routes:Ta},zr=Object(u.useCallback)(function(){return Zn?(console.log("VncTimer:",Zn),l.a.createElement(dr,{defaultTime:Zn,onAddVncTime:bn,onReset:Rr,toShixun:Wr,title:""})):null},[Zn]);return Object(u.useEffect)(function(){ta&&Ua.setFieldsValue({name:"",version:"",description:""})},[ta]),l.a.createElement("div",{className:"task-header-container"},ja.type!=="exercises"&&l.a.createElement(l.a.Fragment,null,wt.name),l.a.createElement("h2",{className:"shixun-info"},nr),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"flex-container"},l.a.createElement(l.a.Fragment,null,xt&&l.a.createElement(w.a,{onClick:function(In){In.preventDefault(),jt.a.publish("send-ctrl-alt-delete")},className:"c-grey-c mr20"},"\u53D1\u9001CTRL+ALT+DELETE"),zr()),l.a.createElement("i",{className:"iconfont icon-shijian1"}),l.a.createElement(ka,{valueStyle:{color:"white",fontSize:"12px"},style:{marginRight:20,marginLeft:5},value:Ka}),l.a.createElement("a",{className:"btn-vnc",title:"\u5DE5\u5177\u680F",onClick:Tr},l.a.createElement("img",{alt:"tool",src:zn.a,width:16}),"\u5DE5\u5177\u680F"),l.a.createElement("a",{className:"btn-vnc",title:"\u6570\u636E\u96C6",onClick:function(){return ar(!0)}},l.a.createElement("img",{alt:"tool",src:ua.a,width:18}),"\u6570\u636E\u96C6"))),l.a.createElement(W.a,{type:"primary",disabled:!vr,onClick:Object(c.a)(e.a.mark(function Hn(){return e.a.wrap(function(Ba){for(;;)switch(Ba.prev=Ba.next){case 0:pa(!0);case 1:case"end":return Ba.stop()}},Hn)}))},"\u4FDD\u5B58\u955C\u50CF"),l.a.createElement("a",{className:"btn-out",onClick:yr,title:"\u9000\u51FA\u5B9E\u8BAD"},l.a.createElement("i",{className:"iconfont icon-kaiguan"})),l.a.createElement(T.a,null,l.a.createElement(L.a,{className:"setting-drawer",title:null,placement:"right",closable:!1,visible:Ln,onClose:br},l.a.createElement(Pe,Object(O.a)({},Er,{taskData:wt})))),l.a.createElement(T.a,null,l.a.createElement(L.a,{className:"setting-drawer",title:null,placement:"right",closable:!1,visible:fa,onClose:br,style:{height:"100%"}},l.a.createElement(Wn,null))),l.a.createElement(r.a,{title:"\u4FDD\u5B58\u955C\u50CF",visible:ta,okButtonProps:{loading:qt},onCancel:function(){pa(!1)},onOk:function(){Ua.submit()}},l.a.createElement("div",null,l.a.createElement("p",{style:{color:"#6B758B"}},"\u628A\u5F53\u524D\u7684\u73AF\u5883\u5B58\u4E3A\u4E00\u4E2A\u65B0\u7684\u955C\u50CF\u3002\u786E\u5B9A\u4FDD\u5B58\u540E\uFF0C\u5728\u6211\u7684\u955C\u50CF\u53EF\u4EE5\u770B\u5230\u8BE5\u955C\u50CF\u7684\u4FDD\u5B58\u72B6\u6001\u3002"),l.a.createElement(j.a,{labelCol:{span:4},wrapperCol:{span:20},form:Ua,onFinish:function(){var Hn=Object(c.a)(e.a.mark(function In(Ba){var za;return e.a.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:return Xn(!0),Vr.next=3,ze(La.taskId,Ba);case 3:za=Vr.sent,(za==null?void 0:za.status)==0&&(d.b.info("\u4FDD\u5B58\u6210\u529F"),pa(!1)),(za==null?void 0:za.status)===-5&&r.a.confirm({title:"\u8986\u76D6\u955C\u50CF\u63D0\u793A",content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u4F60\u7684\u3010\u955C\u50CF\u5217\u8868\u3011\u5B58\u5728\u540C\u540D\u4E14\u540C\u7248\u672C\u53F7\u7684\u955C\u50CF\uFF0C \u60A8\u786E\u5B9A\u8981\u8986\u76D6\u539F\u6765\u7684\u955C\u50CF\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Ro=Object(c.a)(e.a.mark(function Qn(){var $t;return e.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.next=2,ze(La.taskId,Object(s.a)({is_cover:!0},Ba));case 2:$t=ia.sent,($t==null?void 0:$t.status)==0&&(d.b.info("\u8986\u76D6\u6210\u529F"),pa(!1));case 4:case"end":return ia.stop()}},Qn)}));function Io(){return Ro.apply(this,arguments)}return Io}()}),Xn(!1);case 7:case"end":return Vr.stop()}},In)}));return function(In){return Hn.apply(this,arguments)}}()},l.a.createElement(j.a.Item,{label:"\u955C\u50CF\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0"},{pattern:/^[a-z0-9_]+$/,message:"\u53EA\u5141\u8BB8\u8F93\u5165\u6570\u5B57\u6216\u5C0F\u5199\u5B57\u6BCD"}]},l.a.createElement(v.a,{type:"text",maxLength:60})),l.a.createElement(j.a.Item,{label:" \u7248\u672C\u53F7",name:"version",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7248\u672C\u53F7"}]},l.a.createElement(E.a,{style:{width:"100%"}})),l.a.createElement(j.a.Item,{label:"\u955C\u50CF\u63CF\u8FF0",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u955C\u50CF\u63CF\u8FF0"}]},l.a.createElement(v.a.TextArea,null))))))},Va=300;function dr(me){var Ze=me.onAddVncTime,mt=me.onReset,ht=me.toShixun,Ct=me.title,xt=Ct===void 0?"":Ct,Vt=me.defaultTime,St=Object(u.useState)(Vt),hn=Object(o.a)(St,2),gt=hn[0],ft=hn[1],Ht=Object(u.useState)(!1),Lt=Object(o.a)(Ht,2),wt=Lt[0],Ut=Lt[1];Object(Qe.a)(function(){ft(gt-1)},gt>0?1e3:null),Object(u.useEffect)(function(){gt===Va&&Ut(!0)},[gt]),Object(u.useEffect)(function(){Vt0)){bn.next=8;break}return bn.next=4,Ze();case 4:gn=bn.sent,ft((gn==null?void 0:gn.remaining_time)/1e3),bn.next=10;break;case 8:ft(Vt),mt();case 10:case"end":return bn.stop()}},sn)})),Wt.apply(this,arguments)}function ma(){gt0){for(var mt=0;mt1&&arguments[1]!==void 0?arguments[1]:"",mt=[],ht=0;ht0||Vt.target.offsetWidth>0){var St=Ur(Vt.target.offsetWidth,Vt.target.offsetHeight,me),hn=Object(o.a)(St,2),gt=hn[0],ft=hn[1];console.log("cols, rows",gt,ft),jt.a.publish("ssh-xterm-resize",{columns:gt,rows:ft,width:Vt.target.offsetWidth,height:Vt.target.offsetHeight}),me.resize(gt,ft);var Ht=Nr.Base64.decode("IA=="),Lt=Nr.Base64.decode("CBtbSw==");me.write(Ht),me.write(Lt)}}}catch(wt){Ct.e(wt)}finally{Ct.f()}});return mt.observe(Ze),mt}var xo=3e4,so=function(me){var Ze=me.sshConfigData,mt=me.sid,ht=Object(u.useState)(null),Ct=Object(o.a)(ht,2),xt=Ct[0],Vt=Ct[1],St=Ze.ws_url,hn=Ze.password,gt=Ze.port,ft=Object(u.useRef)(),Ht=Object(u.useRef)(),Lt=Object(u.useRef)(!1);return Object(u.useEffect)(function(){if(ft.current&&St){var wt=new ro.Terminal({fontSize:16,rendererType:"dom"});console.log("el.current:",ft.current),wt.open(ft.current),wt.onData(function(An){console.log("data:",An),Ht.current&&(Ht.current.readyState===1&&(Ht.current.send(JSON.stringify({tp:"client",data:An})),jt.a.publish("on-operating-ssh")))}),wt.write("Connecting..."),Vt(wt);var Ut=Co(wt,ft.current);return function(){wt.dispose(),Ut.unobserve(ft.current)}}},[St,ft.current]),Object(u.useEffect)(function(){if(xt&&St){function wt(){var sn=new WebSocket(St);console.log("socketInstance:",St),Ht.current=sn,sn.onopen=function(){var gn=xt.element.parentElement;if(gn){var wn=gn.offsetWidth,bn=gn.offsetHeight;console.log("init",{tp:"init",data:Object(s.a)(Object(s.a)({},Ze),{},{secret:hn,width:wn,height:bn,rows:xt.rows,columns:xt.cols})}),sn.send(JSON.stringify({tp:"init",data:Object(s.a)(Object(s.a)({},Ze),{},{secret:hn,width:wn,height:bn,rows:xt.rows,columns:xt.cols})}))}xt.focus()},sn.onerror=function(gn){console.log("------in socket error----",gn,sn,St)},sn.onmessage=function(gn){Lt.current||(xt.write("\r"),setTimeout(function(){},1e3)),Lt.current=!0,console.log("event:",gn);var wn=Nr.Base64.decode(gn.data.toString()),bn=xt._core._renderService.dimensions.actualCellWidth||9.5;console.log("data:",wn,bn,xt),xt.write(wn)},sn.onclose=function(gn){Ut&&clearInterval(Ut),xt.write(`\r +connection closed`)}}var Ut=setInterval(function(){Ht.current&&Ht.current.send(JSON.stringify({tp:"h"}))},xo),An=jt.a.subscribe("create-socket",function(sn){mt==sn&&(Ht.current&&Ht.current.readyState===1?xt.focus():wt(),xt.focus())}),Dn=jt.a.subscribe("close-socket",function(sn){mt===sn&&(Ht.current&&(Ht.current.close(),Lt.current=!1,xt.clear()),Ht.current=null)}),Wt=jt.a.subscribe("ssh-xterm-resize",function(sn){Ht.current&&Ht.current.readyState===1&&Ht.current.send(JSON.stringify({tp:"resize",data:Object(s.a)({},sn)}))}),ma=jt.a.subscribe("ssh-add-connect-time",function(){Ht.current&&Ht.current.readyState===1&&Ht.current.send(JSON.stringify({tp:"overtime"}))});return function(){Dn(),An(),Wt(),ma(),Ht.current&&(Ht.current.close(),Lt.current=!1)}}},[xt,St,gt]),l.a.createElement("div",{className:io.a["xterm-panel-wrp"]},l.a.createElement("div",{ref:ft,className:io.a["xterm-panel"]},St?null:l.a.createElement("p",{style:{color:"#fff"}},"\u6B63\u5728\u8FDE\u63A5\u547D\u4EE4\u884C\u670D\u52A1...")))},Do=h("BWJ9"),Lo=h("MXD1"),rr=h("CFYs"),Yr=h("1dTM"),lo=h.n(Yr),uo=h("3MsV"),Xa=v.a.TextArea,$a=function(me){var Ze=me.onCancel,mt=me.onSave,ht=me.content,Ct=Object(u.useState)(ht),xt=Object(o.a)(Ct,2),Vt=xt[0],St=xt[1];function hn(ft){St(ft.target.value)}function gt(){mt(Vt)}return Object(u.useEffect)(function(){St(ht)},[ht]),l.a.createElement("div",{className:"clipboard-box"},l.a.createElement("h3",null,"\u5B9E\u9A8C\u73AF\u5883\u526A\u5207\u677F\uFF1A"),l.a.createElement(Xa,{value:Vt,onChange:hn,className:"clipboard"}),l.a.createElement("p",null," ",l.a.createElement("b",null," 1.\u4ECE\u5916\u90E8\u590D\u5236\u5185\u5BB9\u5230\u5B9E\u9A8C\u73AF\u5883\u5185\uFF1A ")," \u7C98\u8D34\u5185\u5BB9\u5230\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u70B9\u51FB\u4FDD\u5B58\uFF0C\u7136\u540E\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u8FDB\u884C\u7C98\u8D34\u3002 "),l.a.createElement("p",null," ",l.a.createElement("b",null," 2.\u83B7\u53D6\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7684\u5185\u5BB9\uFF1A ")," \u8BF7\u5148\u5728\u73AF\u5883\u4E2D\u590D\u5236\u5185\u5BB9\uFF0C\u590D\u5236\u52A8\u4F5C\u5B8C\u6210\u540E\u5185\u5BB9\u4F1A\u663E\u793A\u5728\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u7136\u540E\u5728\u4E0A\u9762\u6587\u672C\u6846\u4E2D\u518D\u6B21\u590D\u5236\u3002 "),l.a.createElement("div",{className:"btn-action-container"},l.a.createElement(W.a,{type:"ghost",onClick:Ze,style:{marginRight:10}},"\u53D6\u6D88"),l.a.createElement(W.a,{type:"primary",onClick:gt},"\u4FDD\u5B58")))},er=h("ye1Q"),Jr=h("osed"),Ar=h.n(Jr),Dr=h("wd/R"),Zr=h.n(Dr),ko=l.a.createElement(er.a,{style:{fontSize:24},spin:!0});function co(me){return me.replace(/\\u([\dA-Za-z]{4})/g,function(Ze,mt){return String.fromCharCode(parseInt("0x"+mt))})}function Lr(me){me||(me=window.location.search);var Ze=me.substr(1),mt={};return Ze.split("&").forEach(function(ht){var Ct=ht.split("=");mt[Ct[0]]=decodeURIComponent(Ct[1])}),mt}var Kr={loading:!0,isLarge:!1,showClipBoardBox:!1,transferContent:"",mes:"\u5B9E\u9A8C\u73AF\u5883\u51C6\u5907\u4E2D"},Vn;(function(me){me[me.SET_LOADING=0]="SET_LOADING",me[me.SET_IS_LARGE=1]="SET_IS_LARGE",me[me.SET_MES=2]="SET_MES",me[me.SET_STATE=3]="SET_STATE",me[me.SHOW_CLIPBOARD_BOX=4]="SHOW_CLIPBOARD_BOX",me[me.SET_TRANSFER_CONTENT=5]="SET_TRANSFER_CONTENT",me[me.UPDATE_ALL=6]="UPDATE_ALL"})(Vn||(Vn={}));function fr(me,Ze){switch(Ze.type){case Vn.SET_LOADING:return Object(s.a)(Object(s.a)({},me),{},{loading:Ze.payload});case Vn.SET_IS_LARGE:return Object(s.a)({},Object(s.a)(Object(s.a)({},me),{},{isLarge:Ze.payload}));case Vn.SET_MES:return Object(s.a)(Object(s.a)({},me),{},{mes:Ze.payload});case Vn.SET_STATE:return Object(s.a)(Object(s.a)({},me),Ze.payload);case Vn.SET_TRANSFER_CONTENT:return Object(s.a)(Object(s.a)({},me),{},{transferContent:Ze.payload});case Vn.SHOW_CLIPBOARD_BOX:return Object(s.a)(Object(s.a)({},me),{},{showClipBoardBox:Ze.payload});case Vn.UPDATE_ALL:return Object(s.a)({loading:me.loading},Ze.payload);default:throw new Error}}var Fr=function(me){var Ze,mt=me.vnc_url,ht=me.window_vnc_url,Ct=me.linux_vnc,xt=me.virtual_machine,Vt=me.taskId,St=me.taskData,hn=Object(u.useRef)(),gt=Object(u.useRef)(),ft=Object(u.useRef)(),Ht=Object(u.useRef)(),Lt=Object(u.useState)(),wt=Object(o.a)(Lt,2),Ut=wt[0],An=wt[1],Dn=Object(u.useState)(!1),Wt=Object(o.a)(Dn,2),ma=Wt[0],sn=Wt[1],gn=Object(u.useReducer)(fr,Kr),wn=Object(o.a)(gn,2),bn=wn[0],ea=wn[1],Ta=Object(u.useState)(0),Aa=Object(o.a)(Ta,2),Ia=Aa[0],nr=Aa[1],lt=bn.mes,da=bn.loading,Ra=bn.showClipBoardBox,yn=bn.isLarge,Zt=bn.transferContent,Ln=Object(u.useState)(0),sa=Object(o.a)(Ln,2),kn=sa[0],ra=sa[1],fa=Object(u.useRef)(),ar=Object(g.i)(),pr=ar;Object(u.useEffect)(function(){return window.addEventListener("visibilitychange",Pa),function(){var At,cn;(At=gt.current)===null||At===void 0||((cn=At.disconnect)===null||cn===void 0)||cn.call(At),window.removeEventListener("visibilitychange",Pa)}},[]),Object(u.useEffect)(function(){return window.sessionStorage.imageId=Ut,function(){window.sessionStorage.removeItem("imageId")}},[Ut]);var ir=function(){var cn;(St==null||((cn=St.shixun)===null||cn===void 0)?void 0:cn.windows_connection_mode)==="rdp"?setTimeout(function(){an()},1500):Object(Tn.a)()?ft.current.resizeSession=!0:setTimeout(function(){ft.current.resizeSession=!1},900)};Object(u.useEffect)(function(){return window.addEventListener("visibilitychange",Pa),document.addEventListener(Object(Tn.c)(),ir),function(){document.removeEventListener(Object(Tn.c)(),ir),window.removeEventListener("visibilitychange",Pa)}},[]);var Pa=function(cn){if(document.visibilityState==="visible"){var Un=sessionStorage.vncPageLeaveTime;Zr()(new Date).diff(Zr()(Un),"minutes")>2&&nr(new Date().getTime()),sessionStorage.removeItem("vncPageLeaveTime")}else sessionStorage.vncPageLeaveTime=new Date};function sr(){ea({type:Vn.SHOW_CLIPBOARD_BOX,payload:!1})}function mr(){ea({type:Vn.SET_IS_LARGE,payload:!yn})}function _r(At){var cn;return hn.current&&(cn=new jr.default(function(Un){var Zn=Object(Qa.a)(Un),_a;try{for(Zn.s();!(_a=Zn.n()).done;){var rn,Da=_a.value;if((St==null||((rn=St.shixun)===null||rn===void 0)?void 0:rn.windows_connection_mode)==="rdp"&&an(),Da.target.offsetHeight>0||Da.target.offsetWidth>0){var Ea;At==null||((Ea=At._eventHandlers)===null||Ea===void 0)||Ea.windowResize()}}}catch(ha){Zn.e(ha)}finally{Zn.f()}}),cn.observe(hn.current)),cn}var vr=function(){var At=Object(c.a)(e.a.mark(function cn(){var Un,Zn,_a,rn,Da;return e.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return _a=(Un=Lr())!==null&&Un!==void 0&&Un.homework_common_id?{homework_common_id:(Zn=Lr())===null||Zn===void 0?void 0:Zn.homework_common_id}:{},ha.next=3,Object(oe.a)("/api/tasks/".concat(ar.taskId||Vt,"/get_vnc_link.json"),{method:"post",body:Object(s.a)(Object(s.a)(Object(s.a)({},ar),_a),{},{template_id:Ut})});case 3:if(rn=ha.sent,!((rn==null?void 0:rn.status)===-3)){ha.next=6;break}return ha.abrupt("return",new Promise(function(){var Kn=Object(c.a)(e.a.mark(function Bn(ta,pa){return e.a.wrap(function(La){for(;;)switch(La.prev=La.next){case 0:r.a.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var Ca=Object(c.a)(e.a.mark(function qt(){return e.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return clearTimeout(fa.current),ra(0),oa.next=4,pt(ar.taskId,rn==null?void 0:rn.message);case 4:return nr(Ia+1),oa.abrupt("return");case 6:case"end":return oa.stop()}},qt)}));function Gt(){return Ca.apply(this,arguments)}return Gt}()});case 1:case"end":return La.stop()}},Bn)}));return function(Bn,ta){return Kn.apply(this,arguments)}}()));case 6:if(!((rn==null?void 0:rn.status)===-1)){ha.next=8;break}throw new String(rn==null?void 0:rn.message);case 8:return xt&&(Object(U.S)("PVEAuthCookie",rn==null||((Da=rn.data)===null||Da===void 0)?void 0:Da.cookies_value,1),Object(U.S)("PVELangCookie","zh_CN",1)),jt.a.publish("update-windows-time",rn==null?void 0:rn.data),ha.abrupt("return",rn);case 11:case"end":return ha.stop()}},cn)}));return function(){return At.apply(this,arguments)}}();Object(u.useEffect)(function(){var At,cn;function Un(Kn){ht&&(d.b.warn("\u7531\u4E8E\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u8FDE\u63A5\u5931\u6548\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5Windows VNC\u670D\u52A1"),ea({type:Vn.SET_LOADING,payload:!0}),nr(Ia+1))}jt.a.subscribe("reset-linux-windows-loading",function(){ea({type:Vn.SET_LOADING,payload:!0})}),jt.a.subscribe("reset-linux-windos-vnc",function(){nr(Ia+1)});function Zn(){ra(100),clearTimeout(fa.current),setTimeout(function(){var Kn,Bn;(Kn=At)===null||Kn===void 0||((Bn=Kn._eventHandlers)===null||Bn===void 0)||Bn.windowResize(),ea({type:Vn.SET_LOADING,payload:!1})},1300),jt.a.subscribe("send-ctrl-alt-delete",function(){var Kn;(Kn=At)===null||Kn===void 0||Kn.sendCtrlAltDel()})}function _a(Kn){var Bn=co(Kn.detail.text);ea({type:Vn.SET_TRANSFER_CONTENT,payload:Bn})}if((ht||mt||Ct||xt&&Ut)&&hn.current){var rn;clearTimeout(fa.current),(St==null||((rn=St.shixun)===null||rn===void 0)?void 0:rn.windows_connection_mode)==="rdp"&&an(),new Promise(Object(c.a)(e.a.mark(function Kn(){var Bn,ta,pa,ja,La,Ca,Gt;return e.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:Bn=Lr(),ta="",ja=new URL(decodeURIComponent(St==null?void 0:St.vnc_url)),La=ja.protocol,Ca=ja.searchParams,Gt=ja.host,pa=Ca.get("password"),ta="".concat(La==="https:"?"wss":"ws","://").concat(Gt,"/").concat(Bn.path||"websockify"),At=new lo.a(hn.current,ta,{credentials:{password:pa},wsProtocols:["binary"],resize:"scale",show_dot:!0}),cn=_r(At),At.viewOnly=Bn.view_only||!1,ht?At.scaleViewport=!0:At.scaleViewport=Bn.scale||!1,At.scaleViewport=!0,At.showDotCursor=!0,At.resizeSession=!0,ft.current=At,At.addEventListener("disconnect",Un),At.addEventListener("connect",Zn),At.addEventListener("clipboard",_a);case 17:case"end":return Xn.stop()}},Kn)})));var Da=jt.a.subscribe("vnc-reseting",function(){ra(0),ea({type:Vn.SET_STATE,payload:{loading:!0,mes:"\u5B9E\u9A8C\u73AF\u5883\u91CD\u7F6E\u4E2D"}})}),Ea=jt.a.subscribe("vnc-enlarge",function(Kn){}),ha=jt.a.subscribe("show-clipboard-box",function(){ea({type:Vn.SHOW_CLIPBOARD_BOX,payload:!0})});return ra(0),function(){var Kn,Bn,ta,pa;(Kn=At)===null||Kn===void 0||Kn.removeEventListener("disconnect",Un),(Bn=At)===null||Bn===void 0||Bn.removeEventListener("connect",Zn),(ta=At)===null||ta===void 0||ta.removeEventListener("clipboard",_a),Da(),Ea(),ha(),(pa=cn)===null||pa===void 0||pa.unobserve(hn.current)}}},[mt,ht,Ct,Ia,Ut]),Object(u.useEffect)(function(){var At,cn;if(xt&&(St==null||((At=St.shixun_virtual_templates)===null||At===void 0)?void 0:At.length)===1){var Un,Zn;An(St==null||((Un=St.shixun_virtual_templates)===null||Un===void 0||((Zn=Un[0])===null||Zn===void 0))?void 0:Zn.template_id)}else xt&&(St==null||((cn=St.shixun_virtual_templates)===null||cn===void 0)?void 0:cn.length)>1&&sn(!0)},[xt]);function Ma(At){var cn;(cn=ft.current)===null||cn===void 0||cn.clipboardPasteFrom(At),ea({type:Vn.SET_TRANSFER_CONTENT,payload:At}),d.b.success("\u4FDD\u5B58\u6210\u529F\uFF01\u4F60\u53EF\u4EE5\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7C98\u8D34\u8BE5\u5185\u5BB9"),sr()}function an(){var At,cn;At=Math.min(document.getElementById("task-right-panel").clientWidth/1920,document.getElementById("task-right-panel").clientHeight/1260),Ht.current.parentElement.className="wh1080p",Ht.current.parentElement.style.cssText="transform:scale(".concat(At,");transform-origin:center center"),hn.current.style.cssText="translate(-50%, -50%) scale("+At+")"}Object(u.useEffect)(function(){kn==0&&(clearTimeout(fa.current),ya())},[kn]);var ya=function At(){kn>99?kn=99:(kn=kn+1,fa.current=setTimeout(function(){At()},1500)),kn<100&&ra(kn)},gr=Object(u.useMemo)(function(){var At;return da?"none":Ct||xt||ht&&(St==null||((At=St.shixun)===null||At===void 0)?void 0:At.windows_connection_mode)==="rdp"?"block":"none"},[Ct,da,xt,ht]);return l.a.createElement(u.Fragment,null,ma&&l.a.createElement("div",{className:Ar.a.selectImage},l.a.createElement("section",{className:Ar.a.container},l.a.createElement("h1",null,"\u9009\u62E9\u89D2\u8272"),l.a.createElement("aside",null,St==null||((Ze=St.shixun_virtual_templates)===null||Ze===void 0)?void 0:Ze.map(function(At,cn){return l.a.createElement(M.a,{align:"middle",key:cn},l.a.createElement(ae.a,{flex:"1"},At.template_name),l.a.createElement(ae.a,null,l.a.createElement(W.a,{type:"primary",onClick:function(){An(At.template_id),sn(!1)}},"\u5F00\u59CB\u5B9E\u9A8C")))})))),yn&&l.a.createElement("a",{className:"btn-vnc-resize",onClick:mr},l.a.createElement("i",{className:"iconfont icon-tuichuquanping"})),l.a.createElement("div",{style:{width:"100%",height:"calc(100% - 50px)",overflow:"hidden",position:"absolute",display:gr==="block"?"flex":"none",alignItems:"center",justifyContent:"center",zIndex:6}},l.a.createElement("div",null,l.a.createElement("iframe",{style:{position:yn?"fixed":"absolute",left:0,top:yn?54:40,width:"100%",height:"calc(100% - ".concat(yn?"100px":"45px",")")},frameBorder:"0",ref:Ht,allowFullScreen:!0}))),l.a.createElement("div",{style:{position:yn?"fixed":"absolute",left:0,top:0,zIndex:5,width:"100%",height:"calc(100% - ".concat(yn?"100px":"0",")")},className:"".concat(ht?"vnc-panel-wrapper-windows":"vnc-panel-wrapper"," ").concat(yn?"full-screen":"")},da?l.a.createElement(y.a,{message:lt,style:{color:"#0152d9"}},l.a.createElement("div",{className:"tc",style:{width:500,margin:"0 auto",color:"#FFF"}},l.a.createElement(rr.a,{percent:kn,format:function(cn){return l.a.createElement("span",{className:"c-white"},cn,"%")}}))):null,l.a.createElement("div",{ref:hn,className:"vnc-panel ".concat(da?"hidden zIndexf1":"animated fadeIn")})),l.a.createElement(T.a,null,l.a.createElement(r.a,{title:"\u590D\u5236\u7C98\u8D34",centered:!0,maskClosable:!1,visible:Ra,onCancel:sr,footer:null},l.a.createElement($a,{onCancel:sr,onSave:Ma,content:Zt}))))},fo=function(me){var Ze=me.taskData,mt=me.evaluateLoading,ht=me.evaluateMessage,Ct=me.language,xt=me.onEval,Vt=Ze.vnc_url,St=Ze.shixun,hn=Ze.test_sets,gt=Ze.test_sets_count,ft=Ze.sets_error_count,Ht=Ze.last_compile_output,Lt=Ze.game,wt=Ze.allowed_unlock,Ut=Ze.user,An=Object(u.useState)(!1),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useState)(!1),gn=Object(o.a)(sn,2),wn=gn[0],bn=gn[1];function ea(){bn(!wn)}return console.log("vnc_url:",Vt),l.a.createElement(u.Fragment,null,l.a.createElement(Fr,{vnc_url:Vt,window_vnc_url:Ze.windows_vnc,virtual_machine:Ze==null?void 0:Ze.virtual_machine,linux_vnc:Ze.linux_vnc,taskData:Ze}),wn?l.a.createElement("div",{className:"vnc-mask"}):null,l.a.createElement("div",{className:"vnc-test-list ".concat(Wt?"large":wn?"pop":"")},l.a.createElement("div",{className:"vnc-test-list-body"},Wt?null:l.a.createElement("span",{className:"arrow-container",onClick:ea},l.a.createElement("i",{className:"iconfont ".concat(wn?"icon-xiajiantou":"icon-shangjiantou"," ")})))))},ho=h("LQ8X"),or=h.n(ho),Br=function(Ze,mt){switch(mt.type){case"MOVE_X":return Object(s.a)(Object(s.a)({},Ze),{},{moveX:mt.payload});case"SET_DRAGMODULE":return Object(s.a)(Object(s.a)({},Ze),{},{showDragModule:mt.payload});case"TRIGGER_RIGHT_PANEL_MASK":return Object(s.a)(Object(s.a)({},Ze),{},{showDragMask:mt.payload})}},wr=Y.a.Countdown,tr;(function(me){me[me.LoadFail=1]="LoadFail",me[me.ReLoad=2]="ReLoad",me[me.Success=3]="Success"})(tr||(tr={}));var po={moveX:"40%",showDragModule:!1,showDragMask:!1},mo=function(Ze){var mt=Ze.globalSetting,ht=Ze.loading,Ct=Ze.taskData,xt=Ze.dispatch,Vt=Object(i.a)(Ze,["globalSetting","loading","taskData","dispatch"]),St=Object(g.i)(),hn=Object(u.useRef)(),gt=Object(u.useState)(!0),ft=Object(o.a)(gt,2),Ht=ft[0],Lt=ft[1],wt=Object(u.useState)(!1),Ut=Object(o.a)(wt,2),An=Ut[0],Dn=Ut[1],Wt=Object(u.useState)(0),ma=Object(o.a)(Wt,2),sn=ma[0],gn=ma[1],wn=Object(u.useState)(0),bn=Object(o.a)(wn,2),ea=bn[0],Ta=bn[1],Aa=Object(u.useState)(!0),Ia=Object(o.a)(Aa,2),nr=Ia[0],lt=Ia[1],da=Object(u.useState)(!1),Ra=Object(o.a)(da,2),yn=Ra[0],Zt=Ra[1],Ln=Object(u.useRef)(!0),sa=Object(u.useState)({}),kn=Object(o.a)(sa,2),ra=kn[0],fa=kn[1],ar=Object(u.useState)({}),pr=Object(o.a)(ar,2),ir=pr[0],Pa=pr[1],sr=Object(u.useState)(),mr=Object(o.a)(sr,2),_r=mr[0],vr=mr[1],Ma=Object(u.useRef)(),an=Object(u.useState)(tr.Success),ya=Object(o.a)(an,2),gr=ya[0],At=ya[1],cn=Object(u.useState)(),Un=Object(o.a)(cn,2),Zn=Un[0],_a=Un[1],rn=Object(u.useState)(),Da=Object(o.a)(rn,2),Ea=Da[0],ha=Da[1],Kn=Object(u.useState)(!1),Bn=Object(o.a)(Kn,2),ta=Bn[0],pa=Bn[1],ja=Object(u.useState)(""),La=Object(o.a)(ja,2),Ca=La[0],Gt=La[1],qt=Object(u.useRef)(null),Xn=Object(u.useRef)({}),oa=Object(u.useRef)(!1),xa=Object(u.useReducer)(Br,po),Ua=Object(o.a)(xa,2),Ka=Ua[0],Ya=Ua[1];Object(u.useEffect)(function(){return window.addEventListener("message",Fa),function(){window.removeEventListener("message",Fa)}},[]);var Fa=function($t){($t==null?void 0:$t.data)==="jupytermessage"&&Ln.current&&(Ln.current=!1,Tr(),oa.current||setTimeout(function(){return Ln.current=!0},500))},Tr=function(){var Qn=Object(c.a)(e.a.mark(function $t(){return e.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:case"end":return ia.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),br=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt;return e.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(z.d)({identifier:St.identifier});case 2:Kt=En.sent,Kt&&(fa(Kt),Xn.current=Object(s.a)({},Kt),Pa(Object(s.a)(Object(s.a)({},ir),{},{test_sets:(Kt==null?void 0:Kt.test_sets)||[]})),Ya({type:"SET_DRAGMODULE",payload:Kt.jupyter_show_description}));case 4:case"end":return En.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),Wr=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt,ia,En,Cr,Ja;return e.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.next=2,Object(z.c)({identifier:St.identifier});case 2:if(Kt=xr.sent,Lt(!1),!(Kt!=null&&Kt.url)){xr.next=14;break}if(vr(Kt.url),hn.current=(ia=Object(U.P)(Kt==null||((En=Kt.url)===null||En===void 0||((Cr=En[0])===null||Cr===void 0))?void 0:Cr.url))===null||ia===void 0?void 0:ia.token,Ma.current=Kt.port,!(((Ja=Kt.url)===null||Ja===void 0?void 0:Ja.length)>1)){xr.next=10;break}return xr.abrupt("return");case 10:return lt(!1),yr(),At(tr.Success),xr.abrupt("return");case 14:Kt.status===-1?(At(tr.LoadFail),lt(!1)):At(tr.ReLoad);case 15:case"end":return xr.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),Rr=function($t){lt(!1),Ta($t),yr(),At(tr.Success)},yr=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt;return e.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(z.e)({identifier:St.identifier});case 2:if(Kt=En.sent,!((Kt==null?void 0:Kt.status)!==0)){En.next=5;break}return En.abrupt("return");case 5:if(Kt!=null&&Kt.useSeconds){En.next=8;break}return ao(),En.abrupt("return");case 8:Kt!=null&&Kt.remainingSeconds&&(_a(Date.now()+Kt.remainingSeconds*1e3),ha(Kt.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(Kt.remainingSeconds-300)*1e3));case 9:case"end":return En.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),ao=function(){In(!0),Lt(!0),r.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",content:" \u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Er()},onCancel:function(){In(!1),Lt(!1)}})},Er=function(){var Qn=Object(c.a)(e.a.mark(function $t(){var Kt;return e.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(z.g)({identifier:St.identifier});case 2:if(Kt=En.sent,!((Kt==null?void 0:Kt.status)!==0)){En.next=5;break}return En.abrupt("return");case 5:d.b.success("\u91CD\u7F6E\u6210\u529F!"),Lt(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return En.stop()}},$t)}));return function(){return Qn.apply(this,arguments)}}(),zr=function(){r.a.destroyAll(),r.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:l.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",l.a.createElement("span",null,l.a.createElement(wr,{value:Zn,format:"HH:mm:ss",onFinish:Hn})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var $t=Object(c.a)(e.a.mark(function ia(){var En;return e.a.wrap(function(Ja){for(;;)switch(Ja.prev=Ja.next){case 0:return Ja.next=2,Object(z.a)({identifier:St.identifier});case 2:if(En=Ja.sent,!(En.status===0)){Ja.next=7;break}return Ja.next=6,yr();case 6:d.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Ja.stop()}},ia)}));function Kt(){return $t.apply(this,arguments)}return Kt}()})},Hn=function(){r.a.destroyAll(),r.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:l.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Er()}})},In=function($t){var Kt=document.getElementById("taskJupyterIframe");if(!Kt)return;$t?Kt.contentWindow.postMessage("stopParent","*"):Kt.contentWindow.postMessage("clonsParent","*")},Ba=function(){Lt(!0),In(!0),Mr({title:"\u91CD\u7F6E\u5B9E\u8BAD",content:l.a.createElement("div",{className:"tc font14"},"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931,",l.a.createElement("br",null),"\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F")})},za=function(){var $t=document.getElementById("taskJupyterIframe");if(!$t)return;$t.contentWindow.postMessage("saveCode","*"),oa.current=!0,Dn(!0),Zt(!0)},Mr=function($t){r.a.confirm({centered:!0,title:$t.title,content:$t.content,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Kt=Object(c.a)(e.a.mark(function En(){var Cr;return e.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Object(z.i)({identifier:St.identifier});case 2:if(Cr=lr.sent,!(Cr.status!==0)){lr.next=5;break}return lr.abrupt("return");case 5:d.b.success("\u64CD\u4F5C\u6210\u529F"),Lt(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return lr.stop()}},En)}));function ia(){return Kt.apply(this,arguments)}return ia}(),onCancel:function(){In(!1),Lt(!1)}})};Object(u.useEffect)(function(){function Qn(Kt){Ya({type:"MOVE_X",payload:Kt.pageX})}function $t(){Ya({type:"TRIGGER_RIGHT_PANEL_MASK",payload:!1}),document.onselectstart=null}return Ka.showDragMask&&(document.addEventListener("mousemove",Qn),document.addEventListener("mouseup",$t)),function(){document.removeEventListener("mousemove",Qn),document.removeEventListener("mouseup",$t)}},[Ka.showDragMask]);var Vr=typeof Ka.moveX=="number"&&Ka.moveX!==.01?"".concat(Ka.moveX,"px"):"40%",Ro="calc(100% - 4px - ".concat(Vr,")"),Io=function($t){Ya({type:"TRIGGER_RIGHT_PANEL_MASK",payload:$t})};return l.a.createElement("section",{className:or.a.bg,style:{userSelect:Ka.showDragMask?"none":"unset"}},l.a.createElement("section",{className:or.a.content,style:{height:ra!=null&&ra.open_evaluate?"calc(100vh - 130px)":"calc(100vh - 60px)"}},l.a.createElement("section",{className:or.a.rightCotainer,style:{width:Ro}},l.a.createElement("main",{className:or.a.main,style:{height:"100%"}},l.a.createElement(u.Fragment,null,l.a.createElement("div",{className:"".concat(or.a.dataSetButton," ").concat(ta?or.a.dataSetOpen:""),onClick:function(){return pa(!ta)}},l.a.createElement("span",{className:or.a.dataSetText},"\u6570\u636E\u96C6")),l.a.createElement("iframe",{frameBorder:0,id:"taskJupyterIframe",width:"100%",height:"100%",allow:"geolocation; microphone; camera; midi; encrypted-media;",src:Ct==null?void 0:Ct.url}))))))},Or=Object(C.a)(function(me){var Ze=me.loading,mt=me.globalSetting;return{globalSetting:mt,loading:Ze}})(mo),qr=h("E1Sb"),$r=h.n(qr),eo=h("nAPy"),So=h.n(eo),to=h("WkQV"),Ao=h("Cy2x"),_o=h("fr4D"),no="FETCH_TASK_START",vo="FETCH_TASK_FAILURE",kr="FETCH_TASK_SUCCESS",Na="UPDATE_TASK_DATA",go="HIDE_EVALUATE_RESULT",Xr="SHOW_EVALUATE_RESULT",_n="UPDATE_TIMESTRAP",fn="MOVE_X",Fn="MOVE_Y",ba="TRIGGER_RIGHT_PANEL_MASK ",Hr="SET_ACTIVE_INDEX",wo="GET_TASK_LIST",bo="SHOW_TASK_LIST",Oo="HIDE_TASK_LIST",To="SET_TASK_STAR",si="TRIGGER_ENLARGE_UNITY3D ",jo="TRIGGER_TAB_FIXED ",li="GET_DISCUSSES",Uo="SHOW_DISCUSSES_LOADING",Ko="TOP_OR_DOWN_DISCUSS",ui="PLUS_DISCUSS",ci="SET_ACTION_TYPE",Fo="SHOW_REWARD_DIALOG",di="CANCEL_REWARD_DIALOG",gi="SET_REWARD",ce="ACTIVE_DISCUSS_INDEX",Ie="CREATE_DISCUSS",Ke="DISABLE_DISCUSS",ge="SHOW_ANSWER_LOADING",X="FETCH_ANSWER_INFO",re="HIGH_TIP_MODAL",G="SHOW_TIP_MODAL",_e="SELECT_UNLOCK_ANSWER",Ee="SET_CHOOSE_ANSWERS",Fe="EVAL_CHOOSE_START",je="EVAL_CHOOSE_END",Je="SHOW_REP_loading",nt="FETCH_REP_CONTENT",ut="EDIT_REP_CONTENT",dt="SET_REP_PATH",_t="SHOW_EVALUATE_LOADING",Nt="HIDE_EVALUATE_LOADING",tn="SET_EVALUATE_MESSAGE",zt="SET_SHOW_DIR",ln="SET_EDITOR_SETTING",on="SET_EDITOR_THEME",nn="SET_EDITOR_FONTSIZE",Jt="SET_REPOS",Cn="SHOW_PATH_LIST",un="HIDE_PATH_LIST",$n="HIDE_PICTURE_VIEW",Mn="SHOW_PICTURE_VIEW",It="SHOW_NOTICE",kt="HIDE_NOTICE",mn="SET_TAB_INDEX",vn="SET_SSH_TABS",Tt="SET_SSH_CONFIGDATA",xn="SET_SSH_CONFIGDATAARR",Gn="SET_VNC_LOADING ",Sn="ON_TAB_TO_SPACE ",jn=n.a.DirectoryTree,aa=["jpg","png","gif","jpeg","jar","doc","pdf","xsl","ppt","mp3","mp4"],Oa={moveX:"40%",moveY:0,loading:!0,isError:!1,taskData:{game:{}},evalData:null,lastedGetTaskInfoTime:0,codeRepData:{content:"",language:"c",currentPath:"",paths:[],lastedUpdateTime:0,loading:!1},showEvalResult:!1,showPictureView:!1,isPictureView:!1,showDragMask:!1,webDisplayUrl:"",evaluateLoading:!1,resetVncLoading:!1,evaluateMessage:"",showNotice:!1,timestamp:"",showDocuments:!1,repos:null};function Ha(me,Ze){switch(Ze.type){case fn:return Object(s.a)(Object(s.a)({},me),{},{moveX:Ze.payload});case Fn:return Object(s.a)(Object(s.a)({},me),{},{moveY:Ze.payload});case Je:return Object(s.a)(Object(s.a)({},me),{},{codeRepData:Ze.payload});case nt:return Object(s.a)(Object(s.a)({},me),{},{codeRepData:Ze.payload});case ut:return Object(s.a)(Object(s.a)({},me),{},{codeRepData:Object(s.a)(Object(s.a)({},me.codeRepData),Ze.payload)});case Xr:return Object(s.a)(Object(s.a)({},me),{},{evaluateLoading:!1,showEvalResult:!0});case _n:return Object(s.a)(Object(s.a)({},me),{},{timestamp:Ze.payload});case go:return Object(s.a)(Object(s.a)({},me),{},{showEvalResult:!1});case no:return Object(s.a)(Object(s.a)({},me),{},{loading:!0});case Na:return Object(s.a)(Object(s.a)({},me),Ze.payload);case ba:return Object(s.a)(Object(s.a)({},me),{},{showDragMask:Ze.payload});case vo:return Object(s.a)(Object(s.a)({},me),{},{loading:!1,isError:!0});case kr:return Object(s.a)(Object(s.a)({},me),Ze.payload);case _t:return Object(s.a)(Object(s.a)({},me),{},{evaluateLoading:!0});case Nt:return Object(s.a)(Object(s.a)({},me),{},{evaluateLoading:!1});case tn:return Object(s.a)(Object(s.a)({},me),{},{evaluateMessage:Ze.payload});case zt:return Object(s.a)(Object(s.a)({},me),{},{showDocuments:Ze.payload});case Jt:return Object(s.a)(Object(s.a)({},me),Ze.payload);case It:return Object(s.a)(Object(s.a)({},me),{},{showNotice:!0});case kt:return Object(s.a)(Object(s.a)({},me),{},{showNotice:!1});case $n:return Object(s.a)(Object(s.a)({},me),{},{showPictureView:!1});case Mn:return Object(s.a)(Object(s.a)({},me),{},{showPictureView:!0});case Gn:return Object(s.a)(Object(s.a)({},me),{},{resetVncLoading:Ze.payload});default:throw new Error}}var ca=I.default=function(me){var Ze,mt=me.match,ht=me.history,Ct=Object(i.a)(me,["match","history"]);console.log("props:",Ct);var xt=Object(g.i)(),Vt=Object(g.h)().query,St=Object(u.useReducer)(Ha,Oa),hn=Object(o.a)(St,2),gt=hn[0],ft=hn[1],Ht=Object(u.useState)(1),Lt=Object(o.a)(Ht,2),wt=Lt[0],Ut=Lt[1],An=Object(u.useState)(xt.taskId),Dn=Object(o.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(u.useRef)(),gn=Object(u.useRef)(),wn=Object(u.useRef)(),bn=Object(u.useState)(),ea=Object(o.a)(bn,2),Ta=ea[0],Aa=ea[1],Ia=ht.location;Object(u.useEffect)(function(){console.log("_params:",xt),ma(xt.taskId),Object(C.c)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1})},[xt]);var nr=gt.moveX,lt=gt.taskData,da=gt.moveY,Ra=gt.evalData,yn=gt.showEvalResult,Zt=gt.codeRepData,Ln=gt.loading,sa=gt.evaluateLoading,kn=gt.evaluateMessage,ra=gt.showDocuments,fa=gt.repos,ar=gt.showPictureView,pr=gt.showNotice,ir=gt.webDisplayUrl,Pa=gt.isPictureView,sr=gt.resetVncLoading,mr=gt.timestamp,_r=gt.lastedGetTaskInfoTime,vr=gt.showDragMask,Ma=lt.st,an=lt.challenge,ya=lt.shixun,gr=lt.is_teacher,At=lt.game,cn=lt.has_answer,Un=lt.vnc_url,Zn=lt.git_url,_a=lt.user,rn=lt.myshixun,Da=lt.discusses_count,Ea=lt.user_praise,ha=lt.praise_count,Kn=lt.tpm_cases_modified,Bn=lt.tpm_modified,ta=lt.tpm_script_modified,pa=lt.mirror_name,ja=lt.mirror_description,La=lt.tomcat_url,Ca=lt.unity_3d_routes,Gt=lt.with_code_file,qt=lt.unity_3d_result,Xn=lt.next_game,oa=lt.prev_game,xa=Zt.currentPath,Ua=Zt.paths,Ka=Zt.content,Ya=Zt.language,Fa=Zt.lastedUpdateTime,Tr=(Bn||ta)&&Ma===0,br=(Kn||Tr)&&rn.system_tip===!0,Wr=(pa||[]).indexOf("Html")!==-1,Rr=Object(u.useMemo)(function(){return xa&&Ua?Ua.indexOf(xa)>=0:!1},[xa,Ua]),yr=Object(u.useMemo)(function(){return Ca&&!Gt||(an==null?void 0:an.thiry_party)||Un},[Un,Gt,Ca]);Object(u.useEffect)(function(){if(Ca&&Gt){ft({type:_t});var Et=jt.a.subscribe("unity3d-load-end",function(){ft({type:Nt})});return Et}},[Wt,Ca,an==null?void 0:an.thiry_party,Gt,ft]),Object(u.useEffect)(function(){ao()},[]);function ao(){return Er.apply(this,arguments)}function Er(){return Er=Object(c.a)(e.a.mark(function Et(){var bt;return e.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(oe.a)("/api/sci/projects/".concat(Wt,".json"),{method:"get"});case 2:bt=Mt.sent,Aa(bt);case 4:case"end":return Mt.stop()}},Et)})),Er.apply(this,arguments)}function zr(Et){return Hn.apply(this,arguments)}function Hn(){return Hn=Object(c.a)(e.a.mark(function Et(bt){var Dt,Mt,yt;return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.prev=0,Pt.next=3,Object(_o.i)(Wt);case 3:if(Dt=Pt.sent,Mt=Dt.status,!(Mt===401)){Pt.next=10;break}return ht.replace("/user/login",{from:Ia.pathname}),Pt.abrupt("return");case 10:if(!(Mt===-3)){Pt.next=14;break}Object(U.o)({onCancel:function(){window.location.href="/"}}),Pt.next=25;break;case 14:if(!(Mt===403)){Pt.next=18;break}ht.replace("/403"),Pt.next=25;break;case 18:if(!(Mt===404)){Pt.next=23;break}return ht.replace("/404"),Pt.abrupt("return");case 23:yt={loading:!1,isError:!1,taskData:Dt},bt||ft({type:kr,payload:yt});case 25:Dt.mirror_type==="webssh"&&setTimeout(function(){jt.a.publish("create-socket",1)},1e3),Pt.next=32;break;case 28:Pt.prev=28,Pt.t0=Pt.catch(0),console.log(Pt.t0),bt||ft({type:vo});case 32:case"end":return Pt.stop()}},Et,null,[[0,28]])})),Hn.apply(this,arguments)}Object(u.useEffect)(function(){var Et=!1;return zr(Et),function(){Et=!0}},[ft,Wt]),Object(u.useEffect)(function(){var Et=!1;function bt(){return Dt.apply(this,arguments)}function Dt(){return Dt=Object(c.a)(e.a.mark(function Mt(){var yt,Yt,Pt,en,ur,Sa;return e.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:if(ft({type:Je,payload:Object(s.a)(Object(s.a)({},Zt),{},{loading:!0})}),!(Ca&&!Gt||an!=null&&an.thiry_party)){Za.next=3;break}return Za.abrupt("return");case 3:return Za.next=5,rt(Wt,{path:xa});case 5:if(yt=Za.sent,!Et)if(yt.status===0)d.b.info(yt.message),ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{loading:!1})});else{try{(yt==null?void 0:yt.file_type)==="txt"?Yt=((Pt=Yt)===null||Pt===void 0?void 0:Pt.length)===0?Yt:window.decodeURIComponent(escape(window.atob(yt==null||((en=yt.content)===null||en===void 0)?void 0:en.content))):Yt=yt==null||((ur=yt.content)===null||ur===void 0)?void 0:ur.content}catch(Pr){Yt=window.atob(yt==null||((Sa=yt.content)===null||Sa===void 0)?void 0:Sa.content),d.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8"),console.log("err:",Pr)}ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{content:Yt,language:yt.language,file_type:yt.file_type,filename:yt.filename,lastedUpdateTime:0,loading:!1})})}case 7:case"end":return Za.stop()}},Mt)})),Dt.apply(this,arguments)}if(Ma===0&&xa&&ya.hide_code!==1)return bt(),function(){Et=!0}},[Ma,xa,_r,mr]);var In=function(){var Et=Object(c.a)(e.a.mark(function bt(){var Dt,Mt,yt=arguments;return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(Dt=yt.length>0&&yt[0]!==void 0?yt[0]:0,console.log("lastedUpdateTime:",Rr,Dt),!(Ma===0&&Fa>0&&Rr||Dt)){Pt.next=8;break}return Pt.next=5,V(rn.identifier,{path:xa,evaluate:Dt,content:Ka,game_id:At.id});case 5:return Mt=Pt.sent,ft({type:ut,payload:{lastedUpdateTime:0}}),Pt.abrupt("return",Mt);case 8:return Pt.abrupt("return",!0);case 9:case"end":return Pt.stop()}},bt)}));return function(){return Et.apply(this,arguments)}}(),Ba=Object(u.useCallback)(function(){},[In]);Object(u.useEffect)(function(){var Et=jt.a.subscribe("unlock-test-case",function(){var bt;r.a.confirm((bt={centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:l.a.createElement(Wa,{score:an.score,is_teacher:gr})},Object(m.a)(bt,"centered",!0),Object(m.a)(bt,"onOk",za),bt))});return Et},[za,an,gr]);var za=Object(u.useCallback)(Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt,yt,Yt;return e.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return en.next=2,Te(At.identifier);case 2:if(bt=en.sent,Dt=bt.test_sets,Mt=bt.message,yt=bt.status,!(yt===-1)){en.next=7;break}return d.b.info(Mt),en.abrupt("return");case 7:Yt=lt.user.grade,lt.user.grade=Yt-an.score*2,lt.test_sets=Dt,lt.game.test_sets_view=!0,ft({type:Na,payload:{taskData:lt}});case 12:case"end":return en.stop()}},Et)})),[At,an,ft]);Object(u.useEffect)(function(){if(!yr||Un){function Et(Dt){sn.current&&ft({type:fn,payload:Dt.pageX}),gn.current&&ft({type:Fn,payload:Dt.pageY})}function bt(){sn.current=!1,gn.current=!1,ft({type:ba,payload:!1}),document.onselectstart=null}return document.addEventListener("mousemove",Et),document.addEventListener("mouseup",bt),function(){document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",bt)}}},[gn.current,sn.current,yr,ft]);function Mr(Et){var bt=lt.user.grade;lt.user.grade=bt-Et,ft({type:Na,payload:{taskData:lt}})}wn.current=function(){gt.moveX=gt.moveX!==.01?.01:"40%",ft({type:fn,payload:gt.moveX})};function Vr(){yr?wn.current():(document.onselectstart=function(){return!1},sn.current=!0,ft({type:ba,payload:!0}))}function Ro(){document.onselectstart=function(){return!1},gn.current=!0,(lt!=null&<.vnc_url||lt!=null&<.windows_vnc||lt!=null&<.linux_vnc||lt!=null&<.virtual_machine||(ya==null?void 0:ya.hide_code)===2)&&ft({type:ba,payload:!0})}function Io(Et){Et===.01?ft({type:Fn,payload:0}):ft({type:Fn,payload:.01})}function Qn(Et){Et===0?ft({type:Fn,payload:"100%"}):ft({type:Fn,payload:0})}Object(u.useEffect)(function(){var Et=jt.a.subscribe("vnc-enlarge",function(){wn.current()});return Et},[]);function $t(){In()}function Kt(){return ia.apply(this,arguments)}function ia(){return ia=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt;return e.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Be(Wt,{path:xa});case 2:bt=Yt.sent,Dt=bt.content,Mt=bt.language,ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{content:Dt,language:Mt,lastedUpdateTime:0,loading:!1})});case 5:case"end":return Yt.stop()}},Et)})),ia.apply(this,arguments)}function En(){return Cr.apply(this,arguments)}function Cr(){return Cr=Object(c.a)(e.a.mark(function Et(){var bt,Dt;return e.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.next=2,xe(lt==null||((bt=lt.myshixun)===null||bt===void 0)?void 0:bt.identifier,{});case 2:return Dt=yt.sent,zr(),yt.abrupt("return",Dt);case 5:case"end":return yt.stop()}},Et)})),Cr.apply(this,arguments)}function Ja(){return lr.apply(this,arguments)}function lr(){return lr=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt;return e.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,ke(Wt,{path:xa});case 2:bt=Yt.sent,Dt=bt.content,Mt=bt.language,ft({type:nt,payload:Object(s.a)(Object(s.a)({},Zt),{},{content:Dt,language:Mt,lastedUpdateTime:0,loading:!1})});case 5:case"end":return Yt.stop()}},Et)})),lr.apply(this,arguments)}Object(u.useEffect)(function(){if(Ma===0&&an&&an.path){var Et=an.path.split("\uFF1B").filter(function(bt){return!!bt});ft({type:ut,payload:{currentPath:Et[0],paths:Et}})}},[an,Ma]),Object(u.useEffect)(function(){ya&&Object(U.T)(ya.name||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199")},[ya]);function xr(){return Bo.apply(this,arguments)}function Bo(){return Bo=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt;return e.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,at(Wt);case 2:bt=Yt.sent,Dt=bt.praise_count,Mt=bt.praise,lt.praise_count=Dt,lt.user_praise=Mt,ft({type:Na,payload:{taskData:lt}});case 7:case"end":return Yt.stop()}},Et)})),Bo.apply(this,arguments)}var bi=Object(u.useCallback)(function(Et){function bt(Mt){return Dt.apply(this,arguments)}function Dt(){return Dt=Object(c.a)(e.a.mark(function Mt(yt){return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:try{window.navigator.sendBeacon("".concat(ie.a.API_SERVER,"/api/tasks/").concat(Wt,"/cost_time.json?time=").concat(yt),{})}catch(en){}case 1:case"end":return Pt.stop()}},Mt)})),Dt.apply(this,arguments)}bt(Et)},[Wt]);function yi(Et){return Xo.apply(this,arguments)}function Xo(){return Xo=Object(c.a)(e.a.mark(function Et(bt){return e.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,We(Wt,ya.id,bt);case 2:lt.game.star=bt,ft({type:Na,payload:{taskData:lt}});case 4:case"end":return Mt.stop()}},Et)})),Xo.apply(this,arguments)}function Ei(){return Ho.apply(this,arguments)}function Ho(){return Ho=Object(c.a)(e.a.mark(function Et(){var bt,Dt;return e.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(fa){yt.next=8;break}return yt.next=3,R(rn.identifier);case 3:bt=yt.sent,Dt=bt.trees,ft({type:Jt,payload:{showDocuments:!0,repos:Sr(Dt)}}),yt.next=9;break;case 8:ft({type:zt,payload:!0});case 9:case"end":return yt.stop()}},Et)})),Ho.apply(this,arguments)}function Ci(Et){return Wo.apply(this,arguments)}function Wo(){return Wo=Object(c.a)(e.a.mark(function Et(bt){var Dt,Mt,yt;return e.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Dt=bt.props,Mt=Dt.children,yt=Dt.eventKey,Pt.abrupt("return",new Promise(function(){var en=Object(c.a)(e.a.mark(function ur(Sa){var Ir,Za,Pr;return e.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return Mt&&Mt.length>0&&Sa(),la.next=3,R(rn.identifier,{path:yt});case 3:Ir=la.sent,Za=Ir.trees,Pr=Nn(fa,yt,Sr(Za,yt)),ft({type:Jt,payload:{repos:Object(S.a)(Pr)}}),Sa();case 8:case"end":return la.stop()}},ur)}));return function(ur){return en.apply(this,arguments)}}()));case 2:case"end":return Pt.stop()}},Et)})),Wo.apply(this,arguments)}function xi(){ft({type:zt,payload:!1})}function Fi(Et){var bt=Et.gold,Dt=Et.experience,Mt=Et.next_game,yt=Et.next_shixun,Yt=Et.subject_done,Pt=Object(i.a)(Et,["gold","experience","next_game","next_shixun","subject_done"]),en=Pt.challenge_chooses_count===Pt.choose_correct_num,ur={had_submmit:!0,test_sets:Pt.test_sets,challenge_chooses_count:Pt.challenge_chooses_count,choose_correct_num:Pt.choose_correct_num};lt.choose_test_cases=ur,en&&(lt.game.status=2,lt.next_game=Mt,lt.user.grade+=bt),en&&At.status!==2&&jt.a.publish("update-cost-time"),ft({type:Na,payload:{taskData:lt,evalData:{gold:bt,experience:Dt,next_game:Mt,next_shixun:yt,subject_done:Yt},showEvalResult:en}}),jt.a.publish("eval-code-finish")}function Bi(){return zo.apply(this,arguments)}function zo(){return zo=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt,yt,Yt,Pt,en,ur,Sa,Ir,Za,Pr;return e.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.prev=0,ft({type:_t}),la.next=4,In(1);case 4:if(bt=la.sent,Dt=bt.resubmit,Mt=bt.sec_key,yt=bt.content_modified,!(bt.status&&bt.status<0)){la.next=10;break}return jt.a.publish("eval-code-finish"),ft({type:Na,payload:{evaluateLoading:!1}}),la.abrupt("return");case 10:return Yt={sec_key:Mt,resubmit:Dt,first:1,content_modified:yt},Vt.type==="exercises"&&(Yt.extras={exercise_id:Vt.exercisesId,question_id:Vt.questionId,challenge_id:(Pt=lt.challenge)===null||Pt===void 0?void 0:Pt.id,subject_id:Vt.subject_id||""}),la.next=14,De(Wt,Yt);case 14:if(en=la.sent,!(en.status===-1&&Vt.type==="exercises")){la.next=18;break}return window.parent.location.href="/classrooms/".concat(Ia.query.coursesId,"/exercise/").concat(Ia.query.exercisesId,"/detail"),la.abrupt("return");case 18:return en.status===1&&(Pr=function(){return Pr=Object(c.a)(e.a.mark(function hi(Po,Zo,pi){var qo,$o,mi,va,No,_i,ei,ti,ni,vi,ai,ri,oi,ii;return e.a.wrap(function(Mo){for(;;)switch(Mo.prev=Mo.next){case 0:return $o=pi++*Po,$o/1e3>Zo&&(Ir=!0),Mo.next=4,Ne(Wt,{resubmit:Dt,time_out:Ir,port:en.port,sec_key:Mt,challenge_id:lt==null||((qo=lt.challenge)===null||qo===void 0)?void 0:qo.id,subject_id:Vt.subject_id||""});case 4:mi=Mo.sent,va=mi,No=va.status,_i=va.running_code_message,ei=va.port,ti=va.web_route,ft({type:tn,payload:_i}),+No>-1||$o/1e3>Zo?(At.status!==2&&No===2&&(lt.game.status=2,lt.user.grade+=va.gold,jt.a.publish("update-cost-time")),lt.test_sets=va.test_sets||[],lt.last_compile_output=va.last_compile_output,lt.test_sets_count=va.test_sets_count,lt.sets_error_count=va.sets_error_count,lt.record_consume_time=va.record_consume_time,lt.next_game=va.next_game,lt.prev_game=va.prev_game,ni="",vi=pa.indexOf("Web")!==-1||pa.indexOf("JFinal")!==-1,vi&&ei!=-1&&ti&&(ni="".concat(La,":").concat(ei,"/").concat(ti)),ai=Ga(va.test_sets),ri=va.picture>0&&ai,oi=No===2&&!Ir,Ir?d.b.info("\u672C\u6B21\u8BC4\u6D4B\u8D85\u65F6"):oi||d.b.info("\u8BC4\u6D4B\u672A\u901A\u8FC7\uFF0C\u8BE6\u60C5\u53C2\u89C1\u201C\u6D4B\u8BD5\u7ED3\u679C\u201D"),ii={taskData:lt,evalData:{gold:va.gold,experience:va.experience,next_game:va.next_game,next_shixun:va.next_shixun},evaluateLoading:!1,evaluateMessage:"",webDisplayUrl:ni,showPictureView:Ca||an!=null&&an.thiry_party?!1:ri,isPictureView:ri},Ca&&Gt||an!=null&&an.thiry_party?(jt.a.publish("evaluate-unity3d-result",{state:"user",data:{user:_a}}),jt.a.publish("evaluate-unity3d-finish"),(qt||ai)&&jt.a.publish("evaluate-unity3d-result",va.unity_3d_result)):ii.showEvalResult=oi,ft({type:Na,payload:ii}),jt.a.publish("eval-code-finish")):setTimeout(function(){Za(Po,an.exec_time+11,pi++)},Po);case 9:case"end":return Mo.stop()}},hi)})),Pr.apply(this,arguments)},Za=function(hi,Po,Zo){return Pr.apply(this,arguments)},ur=1,Sa=1e3,Ir=!1,Za(Sa,an.exec_time+11,ur++)),la.abrupt("return",res);case 22:la.prev=22,la.t0=la.catch(0),console.log("-------eval code",la.t0);case 25:case"end":return la.stop()}},Et,null,[[0,22]])})),zo.apply(this,arguments)}function Si(Et){ft({type:ut,payload:{content:Et,lastedUpdateTime:new Date().getTime()}})}function Ai(){ft({type:go})}function Xi(){ft({type:$n})}function wi(){ft({type:Mn})}function fi(){ft({type:It})}function Oi(Et,bt){return Vo.apply(this,arguments)}function Vo(){return Vo=Object(c.a)(e.a.mark(function Et(bt,Dt){var Mt,yt,Yt;return e.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(Mt=Dt.node,!Mt.isLeaf){en.next=7;break}return yt=bt[0],Yt=yt.split(".").pop().toLowerCase(),en.next=6,In();case 6:ft({type:ut,payload:{currentPath:yt}});case 7:case"end":return en.stop()}},Et)})),Vo.apply(this,arguments)}function Ti(Et){return Go.apply(this,arguments)}function Go(){return Go=Object(c.a)(e.a.mark(function Et(bt){return e.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,In();case 2:ft({type:ut,payload:{currentPath:bt}});case 3:case"end":return Mt.stop()}},Et)})),Go.apply(this,arguments)}function Ri(){lt.myshixun.system_tip=!0,ft({type:Na,payload:{taskData:lt,showNotice:!1}})}function Mi(Et,bt){lt.challenge.path=Et,lt.myshixun.system_tip=!1,ft({type:Na,payload:{taskData:Object(s.a)(Object(s.a)({},lt),{},{tpm_cases_modified:!1,tpm_modified:!1,tpm_script_modified:!1}),showNotice:!1,timestamp:bt}})}function Di(){ft({type:kt})}function Li(){return Qo.apply(this,arguments)}function Qo(){return Qo=Object(c.a)(e.a.mark(function Et(){var bt,Dt;return e.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.prev=0,ft({type:Gn,payload:!0}),jt.a.publish("vnc-reseting"),yt.next=5,ye(xt.taskId);case 5:bt=yt.sent,Dt=bt.vnc_url,lt.vnc_url=Dt+"×tamp="+new Date().getTime(),jt.a.publish("vnc-reseting-done",bt),ft({type:Na,payload:{taskData:lt,resetVncLoading:!1}}),yt.next=15;break;case 12:yt.prev=12,yt.t0=yt.catch(0),console.log(yt.t0);case 15:case"end":return yt.stop()}},Et,null,[[0,12]])})),Qo.apply(this,arguments)}function ki(Et){return Yo.apply(this,arguments)}function Yo(){return Yo=Object(c.a)(e.a.mark(function Et(bt){var Dt,Mt,yt,Yt,Pt,en;return e.a.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:if(Dt=bt.GameState,Mt=bt.Data,yt=bt.challenge,console.log("match:",mt),!(yt==="info")){Sa.next=6;break}jt.a.publish("evaluate-unity3d-result",{state:"3d_callback",data:{challenge_info:Object(s.a)({},lt.challenge)}}),Sa.next=16;break;case 6:if(!(Dt==="Success")){Sa.next=16;break}if(!(qt||!Gt)){Sa.next=15;break}return Sa.next=10,ot(Wt,Nr.Base64.encode(Wt+new Date().getTime()),Mt);case 10:Yt=Sa.sent,Pt=Yt.status,en=Yt.data,Pt==0&&(At.status!==2&&(lt.game.status=2,lt.user.grade+=en.gold,jt.a.publish("update-cost-time")),jt.a.publish("evaluate-unity3d-result",{state:"userAndtime",data:{user:_a,open_time:en.open_time,end_time:en.end_time}}),ft({type:Na,payload:{taskData:lt,evalData:{gold:en.gold,experience:en.experience,next_game:en.next_game},evaluateLoading:!1,showEvalResult:!0}})),Sa.next=16;break;case 15:ft({type:Xr});case 16:case"end":return Sa.stop()}},Et)})),Yo.apply(this,arguments)}function Ii(){}function Pi(){return Jo.apply(this,arguments)}function Jo(){return Jo=Object(c.a)(e.a.mark(function Et(){var bt,Dt,Mt,yt,Yt;return e.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return en.next=2,st(Wt);case 2:return yt=en.sent,(bt=yt)!==null&&bt!==void 0&&(Dt=bt.data)!==null&&Dt!==void 0&&Dt.remaining_time&&jt.a.publish("update-windows-time",(Yt=yt)===null||Yt===void 0?void 0:Yt.data),en.abrupt("return",(Mt=yt)===null||Mt===void 0?void 0:Mt.data);case 5:case"end":return en.stop()}},Et)})),Jo.apply(this,arguments)}var Ni="80px",ji="calc(100vw - 4px - ".concat(Ni,")"),Hi=(Ze={game:At,taskId:Wt,user_praise:Ea,praise_count:ha,st:Ma,challenge:an,rank_name:lt.rank_name,shixun:ya,is_teacher:gr,has_answer:cn,unity_3d_routes:Ca,with_code_file:Gt,onEvaluateCallback:Ii,onGetUnity3dMessage:ki},Object(m.a)(Ze,"taskId",Wt),Object(m.a)(Ze,"myshixun",rn),Object(m.a)(Ze,"user",_a),Object(m.a)(Ze,"discusses_count",Da),Object(m.a)(Ze,"onPlusOrCancelPraise",xr),Object(m.a)(Ze,"minuxUserGrade",Mr),Object(m.a)(Ze,"taskData",lt),Ze),Wi={showNotice:pr||(Kn||Tr)&&rn.system_tip===!1,tpm_cases_modified:Kn,tpm_modified:Bn,tpm_script_modified:ta,st:Ma,taskId:Wt,myshixunId:(rn||{}).id,onNextCallback:Ri,onUpdateCallback:Mi,onUpdateFailure:Di},zi=Object(s.a)(Object(s.a)({},Ra),{},{isPictureView:Pa,history:ht,webDisplayUrl:ir,onShowPictureView:wi,star:At&&At.star,onStarChange:yi,onCloseResult:Ai}),Vi={lastedGetTaskInfoTime:_r,isEditPath:Rr,taskData:lt,codeRepData:Zt,moveY:da,evaluateMessage:kn,evaluateLoading:sa,isNotice:br,isHtml:Wr,onChangePath:Ti,onResizeSetContainer:Io,onEditRepCode:Si,onUpdateCode:In,onResizeYStart:Ro,onShowDir:Ei,onResetCode:Kt,onResetGitCode:En,onResizeCodeArea:Qn,onResetPassedCode:Ja,onFinishDisplayHtml:$t,onShowNotice:fi};return l.a.createElement(u.Fragment,null,Ln?l.a.createElement(y.a,{message:"\u52AA\u529B\u8BF7\u6C42\u6570\u636E\u4E2D..",className:"tpi-spin"}):l.a.createElement(u.Fragment,null,l.a.createElement("div",{className:"task-wrapper"},vr&&l.a.createElement("div",{className:"draging-mask"}),l.a.createElement(qa,{difficulty:an==null?void 0:an.difficulty,mirror_description:ja,history:ht,git_url:Zn,shixun:ya,taskData:lt,lastedGetTaskInfoTime:_r,onAddVncTime:Pi,taskId:Wt,isNotice:br,resetVncLoading:sr,onResetVnc:Li,onResetGitCode:En,vnc_url:Un,linux_vnc:lt==null?void 0:lt.linux_vnc,window_vnc_url:(lt==null?void 0:lt.windows_vnc)||(lt==null?void 0:lt.virtual_machine),remaining_time:lt==null?void 0:lt.remaining_time,onShowNotice:fi,game:At,user:_a,st:Ma,onUpdateCode:In,onUpdateCostTime:bi,unity_3d_routes:Ca&&!Gt||(an==null?void 0:an.thiry_party)}),l.a.createElement("div",{className:"tasks-body2"},l.a.createElement("section",{className:"left-panel"},l.a.createElement("ul",null,l.a.createElement("li",{onClick:function(){return Ut(1)},className:wt==1?"on":""},l.a.createElement("span",{className:"iconfont icon-huanjing"}),l.a.createElement("span",null,"\u73AF\u5883")),l.a.createElement("li",{onClick:function(){return Ut(2)},className:wt==2?"on":""},l.a.createElement("span",{className:"iconfont icon-shujuwajue"}),l.a.createElement("span",null,"\u6570\u636E\u96C6")),l.a.createElement("li",{onClick:function(){return Ut(3)},className:wt==3?"on":""},l.a.createElement("span",{className:"iconfont icon-a-chengyuan1"}),l.a.createElement("span",null,"\u5408\u4F5C\u8005")))),l.a.createElement("section",{id:"task-right-panel",className:"right-panel ".concat(Un||lt!=null&<.windows_vnc||lt!=null&<.linux_vnc||lt!=null&<.virtual_machine?"vnc":""),style:{width:ji,minWidth:"500px"}},l.a.createElement("div",{style:{height:"100%"},className:wt===1?"":"hide"},lt.mirror_type==="webssh"&&l.a.createElement(so,{sshConfigData:lt||{},sid:1}),lt.mirror_type==="graph"&&l.a.createElement(fo,{taskData:lt,evaluateMessage:kn,language:Ya,evaluateLoading:sa,onEval:Ct.onEvalCode}),(lt.mirror_type==="jupyterlab"||lt.mirror_type==="jupyternotebook")&&l.a.createElement(Or,{taskData:lt,evaluateMessage:kn,language:Ya,evaluateLoading:sa,onEval:Ct.onEvalCode})),l.a.createElement("div",{className:wt===2?"data_env_lists":"hide"},l.a.createElement("div",{className:"data_header"},"\u6570\u636E\u96C6 \uFF08",Ta==null?void 0:Ta.data_count,"\uFF09"),l.a.createElement("div",{style:{padding:20}},l.a.createElement(to.a,{detail:Ta}))),l.a.createElement("div",{className:wt===3?"data_env_lists":"hide"},l.a.createElement("div",null,l.a.createElement(Ao.a,null)))))),l.a.createElement(T.a,null,l.a.createElement(L.a,{className:"setting-drawer",title:null,placement:"right",width:400,closable:!1,visible:ra,onClose:xi},l.a.createElement(jn,{className:"dir-tree",selectedKeys:["".concat(xa)],treeData:fa,onSelect:Oi,loadData:Ci})))))};function Wa(me){var Ze=me.is_teacher,mt=me.score;return l.a.createElement(u.Fragment,null,Ze?l.a.createElement(u.Fragment,null,l.a.createElement("div",null,"\u5DF2\u7ECF\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u514D\u91D1\u5E01\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u3002"),l.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(mt*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")),l.a.createElement("a",{href:"/account/certification",class:"to-certification-link",target:"_blank"},"\u7ACB\u5373\u8BA4\u8BC1")):l.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(mt*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")))}function hr(me){var Ze=me.noDragging,mt=me.moveX,ht=me.vnc_url;return l.a.createElement(u.Fragment,null,Ze?l.a.createElement("a",{className:"trapezoid ".concat(mt===.01?"enlarge":"")},l.a.createElement("img",{src:mt===.01?$r.a:So.a,alt:"resize-icon",width:20})):l.a.createElement("a",{className:"btn-resize",draggable:!1},l.a.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13",draggable:!1},l.a.createElement("path",{draggable:!1,d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"}))))}},"4qgm":function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"500L":function(Re,I,h){"use strict";h.d(I,"a",function(){return y});var S=h("+L6B"),f=h("2/Rp"),L=h("2qtc"),m=h("kLXV"),_=h("9og8"),r=h("k1fw"),p=h("miYZ"),d=h("tsqr"),c=h("oBTY"),o=h("tJVT"),i=h("DZo9"),s=h("8z0m"),a=h("WmNS"),n=h.n(a),t=h("q1tI"),e=h.n(t),u=h("m3rI"),l=h("wzkS"),g=h("y5JW"),C=h("LtfV"),x=s.a.Dragger;function y(T){var A=[];return T&&T.length>0&&(A=T.map(function(E){return{uid:E.id,id:E.id,name:E.title+g.c+E.filesize,url:E.url,filesize:E.filesize,status:"done",response:{id:E.id}}})),A}I.b=function(T){var A=T.value,E=T.onChange,b=T.action,v=T.className,O=T.maxSize,D=O===void 0?150:O,W=T.title,Q=W===void 0?"\u4E0A\u4F20\u9644\u4EF6":W,j=T.showRemoveModal,Z=j===void 0?!1:j,Y=T.accept,w=Y===void 0?"":Y,P=T.additionalText,k=T.isDragger,K=T.number,M=K===void 0?1e3:K,H=T.aloneClear,ae=H===void 0?!1:H,ve=T.restrict,de=ve===void 0?!0:ve,be=Object(t.useState)(!1),z=Object(o.a)(be,2),ne=z[0],fe=z[1],ie=Object(t.useState)(A||[]),oe=Object(o.a)(ie,2),U=oe[0],ee=oe[1];Object(t.useEffect)(function(){A&&(ee(Object(c.a)(A)),M===(A==null?void 0:A.length)&&fe(!0))},[A]);var J=function(){setTimeout(function(){U.pop(),ee(Object(c.a)(U))},500)},le={multiple:!0,disabled:ne,accept:w,withCredentials:!0,fileList:U,beforeUpload:function($e,et){var Ve=$e.size/1024/1024;return U.concat(et).length>M?(U.pop(),ee(Object(c.a)(U)),d.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(M,"\u4E2A\u6587\u4EF6")),ae?Promise.reject():(J(),!1)):Ve=M?fe(!0):fe(!1),ee(Object(c.a)(et)),et=et.map(function(Ve){var Le;if(Ve!=null&&(Le=Ve.response)!==null&&Le!==void 0&&Le.id){var Oe;Ve.url="/api/attachments/".concat(Ve==null||((Oe=Ve.response)===null||Oe===void 0)?void 0:Oe.id)}return Ve.name.indexOf(g.c)===-1&&(Ve.name="".concat(Ve.name).concat(g.c).concat(Object(g.a)(Ve.size))),Object(r.a)({},Ve)}),console.log("info:",$e),E(et)},onRemove:function(){var Qe=Object(_.a)(n.a.mark(function et(Ve){var Le;return n.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Le=function(){var ue=Object(_.a)(n.a.mark(function N(){var te,F;return n.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(te=Ve.response?Ve.response.id:Ve.id,!te){tt.next=8;break}return tt.next=4,Object(l.d)(Ve.response?Ve.response.id:Ve.uid);case 4:return F=tt.sent,tt.abrupt("return",F);case 8:return tt.abrupt("return",!0);case 9:case"end":return tt.stop()}},N)}));return function(){return ue.apply(this,arguments)}}(),!Z){Ce.next=5;break}return Ce.abrupt("return",new Promise(function(ue,N){m.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var te=Object(_.a)(n.a.mark(function Ae(){var tt;return n.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Le();case 2:tt=We.sent,d.b.success("\u5220\u9664\u6210\u529F"),ue(!0);case 5:case"end":return We.stop()}},Ae)}));function F(){return te.apply(this,arguments)}return F}(),onCancel:function(){return ue(!1)}})}));case 5:return Ce.next=7,Le();case 7:return Ce.abrupt("return",Ce.sent);case 8:case"end":return Ce.stop()}},et)}));function $e(et){return Qe.apply(this,arguments)}return $e}()};function Pe(Qe){Qe.preventDefault(),Qe.stopPropagation()}return e.a.createElement("div",{className:"multi-upload ".concat(v||"")},k&&e.a.createElement(x,le,e.a.createElement("p",{className:"ant-upload-drag-icon"},e.a.createElement(C.a,null)),e.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",e.a.createElement("br",null),e.a.createElement("span",{style:{display:de?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",D,"MB) ")),P),!k&&e.a.createElement(s.a,le,e.a.createElement(f.a,{disabled:ne},Q),e.a.createElement("span",{onClick:Pe,style:{marginLeft:10,color:"#FA6400",display:de?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",D,"MB) ")))}},"55Ip":function(Re,I,h){"use strict";h.d(I,"a",function(){return g}),h.d(I,"b",function(){return E});var S=h("Ty5D"),f=h("dI71"),L=h("q1tI"),m=h.n(L),_=h("YS25"),r=h("17x9"),p=h.n(r),d=h("wx14"),c=h("zLVn"),o=h("9R94"),i=function(v){Object(f.a)(O,v);function O(){for(var W,Q=arguments.length,j=new Array(Q),Z=0;Z=0||Q.relatedTarget.className.indexOf("".concat(w,"-next"))>=0))return;v.setState({goInputText:""}),Y(v.getValidValue())},v.go=function(Q){var j=v.state.goInputText;if(j==="")return;(Q.keyCode===n.ENTER||Q.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return Object(_.a)(b,[{key:"getValidValue",value:function(){var O=this.state,D=O.goInputText,W=O.current;return!D||isNaN(D)?W:Number(D)}},{key:"getPageSizeOptions",value:function(){var O=this.props,D=O.pageSize,W=O.pageSizeOptions;return W.some(function(Q){return Q.toString()===D.toString()})?W:W.concat([D.toString()]).sort(function(Q,j){var Z=isNaN(Number(Q))?0:Number(Q),Y=isNaN(Number(j))?0:Number(j);return Z-Y})}},{key:"render",value:function(){var O=this,D=this.props,W=D.pageSize,Q=D.locale,j=D.rootPrefixCls,Z=D.changeSize,Y=D.quickGo,w=D.goButton,P=D.selectComponentClass,k=D.buildOptionText,K=D.selectPrefixCls,M=D.disabled,H=this.state.goInputText,ae="".concat(j,"-options"),ve=P,de=null,be=null,z=null;if(!Z&&!Y)return null;var ne=this.getPageSizeOptions();if(Z&&ve){var fe=ne.map(function(ie,oe){return c.a.createElement(ve.Option,{key:oe,value:ie.toString()},(k||O.buildOptionText)(ie))});de=c.a.createElement(ve,{disabled:M,prefixCls:K,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(W||ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(oe){return oe.parentNode}},fe)}return Y&&(w&&(z=typeof w=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:M,className:"".concat(ae,"-quick-jumper-button")},Q.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},w)),be=c.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},Q.jump_to,c.a.createElement("input",{disabled:M,type:"text",value:H,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Q.page,z)),c.a.createElement("li",{className:"".concat(ae)},de,be)}}]),b}(c.a.Component);t.defaultProps={pageSizeOptions:["10","20","50","100"]};var e=t,u=h("N2Kk");function l(){}function g(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A}function C(A,E,b){return b}function x(A,E,b){var v=typeof A=="undefined"?E.pageSize:A;return Math.floor((b.total-1)/v)+1}var y=function(A){Object(r.a)(b,A);var E=Object(p.a)(b);function b(v){var O;Object(m.a)(this,b),O=E.call(this,v),O.getJumpPrevPage=function(){return Math.max(1,O.state.current-(O.props.showLessItems?3:5))},O.getJumpNextPage=function(){return Math.min(x(void 0,O.state,O.props),O.state.current+(O.props.showLessItems?3:5))},O.getItemIcon=function(Z,Y){var w=O.props.prefixCls,P=Z||c.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(w,"-item-link")});return typeof Z=="function"&&(P=c.a.createElement(Z,Object(L.a)({},O.props))),P},O.savePaginationNode=function(Z){O.paginationNode=Z},O.isValid=function(Z){return g(Z)&&Z!==O.state.current},O.shouldDisplayQuickJumper=function(){var Z=O.props,Y=Z.showQuickJumper,w=Z.pageSize,P=Z.total;return P<=w?!1:Y},O.handleKeyDown=function(Z){(Z.keyCode===n.ARROW_UP||Z.keyCode===n.ARROW_DOWN)&&Z.preventDefault()},O.handleKeyUp=function(Z){var Y=O.getValidValue(Z),w=O.state.currentInputValue;Y!==w&&O.setState({currentInputValue:Y}),Z.keyCode===n.ENTER?O.handleChange(Y):Z.keyCode===n.ARROW_UP?O.handleChange(Y-1):Z.keyCode===n.ARROW_DOWN&&O.handleChange(Y+1)},O.changePageSize=function(Z){var Y=O.state.current,w=x(Z,O.state,O.props);Y=Y>w?w:Y,w===0&&(Y=O.state.current),typeof Z=="number"&&("pageSize"in O.props||O.setState({pageSize:Z}),"current"in O.props||O.setState({current:Y,currentInputValue:Y})),O.props.onShowSizeChange(Y,Z),"onChange"in O.props&&O.props.onChange&&O.props.onChange(Y,Z)},O.handleChange=function(Z){var Y=O.props.disabled,w=Z;if(O.isValid(w)&&!Y){var P=x(void 0,O.state,O.props);w>P?w=P:w<1&&(w=1),"current"in O.props||O.setState({current:w,currentInputValue:w});var k=O.state.pageSize;return O.props.onChange(w,k),w}return O.state.current},O.prev=function(){O.hasPrev()&&O.handleChange(O.state.current-1)},O.next=function(){O.hasNext()&&O.handleChange(O.state.current+1)},O.jumpPrev=function(){O.handleChange(O.getJumpPrevPage())},O.jumpNext=function(){O.handleChange(O.getJumpNextPage())},O.hasPrev=function(){return O.state.current>1},O.hasNext=function(){return O.state.current2?w-2:0),k=2;k=W?j=W:j=Number(D),j}},{key:"getShowSizeChanger",value:function(){var O=this.props,D=O.showSizeChanger,W=O.total,Q=O.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:W>Q}},{key:"renderPrev",value:function(O){var D=this.props,W=D.prevIcon,Q=D.itemRender,j=Q(O,"prev",this.getItemIcon(W,"prev page")),Z=!this.hasPrev();return Object(d.isValidElement)(j)?Object(d.cloneElement)(j,{disabled:Z}):j}},{key:"renderNext",value:function(O){var D=this.props,W=D.nextIcon,Q=D.itemRender,j=Q(O,"next",this.getItemIcon(W,"next page")),Z=!this.hasNext();return Object(d.isValidElement)(j)?Object(d.cloneElement)(j,{disabled:Z}):j}},{key:"render",value:function(){var O=this,D=this.props,W=D.prefixCls,Q=D.className,j=D.style,Z=D.disabled,Y=D.hideOnSinglePage,w=D.total,P=D.locale,k=D.showQuickJumper,K=D.showLessItems,M=D.showTitle,H=D.showTotal,ae=D.simple,ve=D.itemRender,de=D.showPrevNextJumpers,be=D.jumpPrevIcon,z=D.jumpNextIcon,ne=D.selectComponentClass,fe=D.selectPrefixCls,ie=D.pageSizeOptions,oe=this.state,U=oe.current,ee=oe.pageSize,J=oe.currentInputValue;if(Y===!0&&w<=ee)return null;var le=x(void 0,this.state,this.props),Pe=[],Qe=null,$e=null,et=null,Ve=null,Le=null,Oe=k&&k.goButton,Ce=K?1:2,ue=U-1>0?U-1:0,N=U+1=Ce*2&&U!==1+2&&(Pe[0]=Object(d.cloneElement)(Pe[0],{className:"".concat(W,"-item-after-jump-prev")}),Pe.unshift(Qe)),le-U>=Ce*2&&U!==le-2&&(Pe[Pe.length-1]=Object(d.cloneElement)(Pe[Pe.length-1],{className:"".concat(W,"-item-before-jump-next")}),Pe.push($e)),rt!==1&&Pe.unshift(et),V!==le&&Pe.push(Ve)}var ke=null;H&&(ke=c.a.createElement("li",{className:"".concat(W,"-total-text")},H(w,[w===0?0:(U-1)*ee+1,U*ee>w?w:U*ee])));var De=!this.hasPrev()||!le,Ne=!this.hasNext()||!le;return c.a.createElement("ul",Object(S.a)({className:i()(W,Q,Object(f.a)({},"".concat(W,"-disabled"),Z)),style:j,unselectable:"unselectable",ref:this.savePaginationNode},te),ke,c.a.createElement("li",{title:M?P.prev_page:null,onClick:this.prev,tabIndex:De?null:0,onKeyPress:this.runIfEnterPrev,className:i()("".concat(W,"-prev"),Object(f.a)({},"".concat(W,"-disabled"),De)),"aria-disabled":De},this.renderPrev(ue)),Pe,c.a.createElement("li",{title:M?P.next_page:null,onClick:this.next,tabIndex:Ne?null:0,onKeyPress:this.runIfEnterNext,className:i()("".concat(W,"-next"),Object(f.a)({},"".concat(W,"-disabled"),Ne)),"aria-disabled":Ne},this.renderNext(N)),c.a.createElement(e,{disabled:Z,locale:P,rootPrefixCls:W,selectComponentClass:ne,selectPrefixCls:fe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:U,pageSize:ee,pageSizeOptions:ie,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Oe}))}}],[{key:"getDerivedStateFromProps",value:function(O,D){var W={};if("current"in O&&(W.current=O.current,O.current!==D.current&&(W.currentInputValue=W.current)),"pageSize"in O&&O.pageSize!==D.pageSize){var Q=D.current,j=x(O.pageSize,D,O);Q=Q>j?j:Q,"current"in O||(W.current=Q,W.currentInputValue=Q),W.pageSize=O.pageSize}return W}}]),b}(c.a.Component);y.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:l,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:l,locale:u.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var T=y},"6/vW":function(Re,I,h){"use strict";h.d(I,"b",function(){return p});var S=h("tJVT"),f=h("q1tI"),L=h.n(f),m=h("9VGf"),_=h("dhSg");function r(d){return d.toString().padStart(2,"0")}function p(d){var c=Math.floor(d/60),o=d%60,i=Math.floor(c/60);return"".concat(r(i),":").concat(r(c-i*60),":").concat(r(o))}I.a=function(d){var c=d.defaultTime,o=d.status,i=d.onUpdateCostTime,s=d.lastedGetTaskInfoTime,a=d.title,n=a===void 0?"":a,t=Object(f.useState)(c||0),e=Object(S.a)(t,2),u=e[0],l=e[1],g=Object(f.useRef)();return Object(f.useEffect)(function(){s&&(l(c),g.current=c)},[c,s]),Object(f.useEffect)(function(){if(s){var C=_.a.subscribe("update-cost-time",function(){o!==2&&i(g.current)});return C}},[s]),Object(m.a)(function(){l(u+1),g.current=g.current+1},o===2?null:1e3),L.a.createElement("span",null,n?"".concat(n,"\uFF1A"):null,p(u))}},"6BzB":function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.shrinkBuf=S,I.arraySet=f,I.flattenChunks=L,I.Buf32=I.Buf16=I.Buf8=void 0;function S(p,d){return p.length===d?p:p.subarray?p.subarray(0,d):(p.length=d,p)}function f(p,d,c,o,i){if(d.subarray&&p.subarray){p.set(d.subarray(c,c+o),i);return}for(var s=0;s=32&&m<=255)return m;var _=S[m];return _!==void 0?_:16777216|m}};I.default=f},"8/bI":function(Re,I,h){Re.exports=h.p+"static/empty.8918e228.png"},"815F":function(Re,I,h){"use strict";h.d(I,"e",function(){return p}),h.d(I,"c",function(){return c}),h.d(I,"d",function(){return o}),h.d(I,"a",function(){return s}),h.d(I,"f",function(){return a}),h.d(I,"b",function(){return n});var S=h("KQm4"),f=h("VTBJ"),L=h("Ff2n"),m=h("Zm9Q"),_=h("Kwbf"),r=h("OZM5");function p(t,e){return t!=null?t:e}function d(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=new Map;function u(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(C){var x=C.key,y=C.children;Object(_.a)(x!=null,"Tree node must have a certain key: [".concat(g).concat(x,"]"));var T=String(x);Object(_.a)(!e.has(T)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(T)),e.set(T,!0),u(y,"".concat(g).concat(T," > "))})}u(t)}function c(t){function e(u){var l=Object(m.a)(u);return l.map(function(g){if(!Object(r.i)(g))return Object(_.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var C=g.key,x=g.props,y=x.children,T=Object(L.a)(x,["children"]),A=Object(f.a)({key:C},T),E=e(y);return E.length&&(A.children=E),A}).filter(function(g){return g})}return e(t)}function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=new Set(e===!0?[]:e),l=[];function g(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(y,T){var A=Object(r.h)(x?x.pos:"0",T),E=p(y.key,A),b=Object(f.a)(Object(f.a)({},y),{},{parent:x,pos:A,children:null,data:y,isStart:[].concat(Object(S.a)(x?x.isStart:[]),[T===0]),isEnd:[].concat(Object(S.a)(x?x.isEnd:[]),[T===C.length-1])});return l.push(b),e===!0||u.has(E)?b.children=g(y.children||[],b):b.children=[],b})}return g(t),l}function i(t,e,u){var l;u?typeof u=="string"?l=function(x){return x[u]}:typeof u=="function"&&(l=function(x){return u(x)}):l=function(x,y){return p(x.key,y)};function g(C,x,y){var T=C?C.children:t,A=C?Object(r.h)(y.pos,x):"0";if(C){var E=l(C,A),b={node:C,index:x,pos:A,key:E,parentPos:y.node?y.pos:null,level:y.level+1};e(b)}T&&T.forEach(function(v,O){g(v,O,{node:C,pos:A,level:y?y.level+1:-1})})}g(null)}function s(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=e.initWrapper,l=e.processEntity,g=e.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,x={},y={},T={posEntities:x,keyEntities:y};return u&&(T=u(T)||T),i(t,function(A){var E=A.node,b=A.index,v=A.pos,O=A.key,D=A.parentPos,W=A.level,Q={node:E,index:b,key:O,pos:v,level:W},j=p(O,v);x[v]=Q,y[j]=Q,Q.parent=x[D],Q.parent&&(Q.parent.children=Q.parent.children||[],Q.parent.children.push(Q)),l&&l(Q,T)},C),g&&g(T),T}function a(t,e){var u=e.expandedKeys,l=e.selectedKeys,g=e.loadedKeys,C=e.loadingKeys,x=e.checkedKeys,y=e.halfCheckedKeys,T=e.dragOverNodeKey,A=e.dropPosition,E=e.keyEntities,b=E[t],v={eventKey:t,expanded:u.indexOf(t)!==-1,selected:l.indexOf(t)!==-1,loaded:g.indexOf(t)!==-1,loading:C.indexOf(t)!==-1,checked:x.indexOf(t)!==-1,halfChecked:y.indexOf(t)!==-1,pos:String(b?b.pos:""),dragOver:T===t&&A===0,dragOverGapTop:T===t&&A===-1,dragOverGapBottom:T===t&&A===1};return v}function n(t){var e=t.data,u=t.expanded,l=t.selected,g=t.checked,C=t.loaded,x=t.loading,y=t.halfChecked,T=t.dragOver,A=t.dragOverGapTop,E=t.dragOverGapBottom,b=t.pos,v=t.active,O=Object(f.a)(Object(f.a)({},e),{},{expanded:u,selected:l,checked:g,loaded:C,loading:x,halfChecked:y,dragOver:T,dragOverGapTop:A,dragOverGapBottom:E,pos:b,active:v});return"props"in O||Object.defineProperty(O,"props",{get:function(){return Object(_.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),O}},"8CQX":function(Re,I,h){"use strict";function S(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(e){return typeof e}:S=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(n)}Object.defineProperty(I,"__esModule",{value:!0}),I.getKeycode=i,I.getKey=s,I.getKeysym=a;var f=o(h("mHUz")),L=o(h("8+yF")),m=o(h("6Qwc")),_=o(h("gIYZ")),r=o(h("mTgk")),p=c(h("GdRQ"));function d(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return d=function(){return n},n}function c(n){if(n&&n.__esModule)return n;if(n===null||S(n)!=="object"&&typeof n!="function")return{default:n};var t=d();if(t&&t.has(n))return t.get(n);var e={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)){var g=u?Object.getOwnPropertyDescriptor(n,l):null;g&&(g.get||g.set)?Object.defineProperty(e,l,g):e[l]=n[l]}return e.default=n,t&&t.set(n,e),e}function o(n){return n&&n.__esModule?n:{default:n}}function i(n){if(n.code){switch(n.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return n.code}if(n.type!=="keypress"&&n.keyCode in m.default){var t=m.default[n.keyCode];if(p.isMac()&&t==="ContextMenu"&&(t="MetaRight"),n.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(n.location===3)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function s(n){if(n.key!==void 0){switch(n.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return n.char}switch(n.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(n.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(n.key==="\0"&&n.code==="NumpadDecimal")return"Delete";if(!p.isIE()&&!p.isEdge())return n.key;if(n.key.length!==1&&n.key!=="Unidentified")return n.key}var t=i(n);return t in _.default?_.default[t]:n.charCode?String.fromCharCode(n.charCode):"Unidentified"}function a(n){var t=s(n);if(t==="Unidentified")return null;if(t in r.default){var e=n.location;if(t==="Meta"&&e===0&&(e=2),t==="Clear"&&e===3){var u=i(n);u==="NumLock"&&(e=0)}if((e===void 0||e>3)&&(e=0),t==="Meta"){var l=i(n);if(l==="AltLeft")return f.default.XK_Meta_L;if(l==="AltRight")return f.default.XK_Meta_R}if(t==="Clear"){var g=i(n);if(g==="NumLock")return f.default.XK_Num_Lock}return r.default[t][e]}if(t.length!==1)return null;var C=t.charCodeAt();return C?L.default.lookup(C):null}},"8K/p":function(Re,I,h){"use strict";function S(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(a){return typeof a}:S=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},S(i)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=r(h("Lo0S")),L=m(h("ItS6"));function m(i){return i&&i.__esModule?i:{default:i}}function _(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return _=function(){return i},i}function r(i){if(i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var s=_();if(s&&s.has(i))return s.get(i);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var e=n?Object.getOwnPropertyDescriptor(i,t):null;e&&(e.get||e.set)?Object.defineProperty(a,t,e):a[t]=i[t]}return a.default=i,s&&s.set(i,a),a}function p(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function d(i,s){for(var a=0;a>C&1&&(this._zlibs[C].reset(),f.Info("Reset zlib stream "+C));this._ctl=this._ctl>>4}var x;if(this._ctl===8)x=this._fillRect(a,n,t,e,u,l,g);else if(this._ctl===9)x=this._jpegRect(a,n,t,e,u,l,g);else if(this._ctl===10)x=this._pngRect(a,n,t,e,u,l,g);else if((this._ctl&128)==0)x=this._basicRect(this._ctl,a,n,t,e,u,l,g);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return x&&(this._ctl=null),x}},{key:"_fillRect",value:function(a,n,t,e,u,l,g){if(u.rQwait("TIGHT",3))return!1;var C=u.rQi,x=u.rQ;return l.fillRect(a,n,t,e,[x[C+2],x[C+1],x[C]],!1),u.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(a,n,t,e,u,l,g){var C=this._readData(u);return C===null?!1:(l.imageRect(a,n,t,e,"image/jpeg",C),!0)}},{key:"_pngRect",value:function(a,n,t,e,u,l,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(a,n,t,e,u,l,g,C){if(this._filter===null)if(a&4){if(l.rQwait("TIGHT",1))return!1;this._filter=l.rQshift8()}else this._filter=0;var x=a&3,y;switch(this._filter){case 0:y=this._copyFilter(x,n,t,e,u,l,g,C);break;case 1:y=this._paletteFilter(x,n,t,e,u,l,g,C);break;case 2:y=this._gradientFilter(x,n,t,e,u,l,g,C);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return y&&(this._filter=null),y}},{key:"_copyFilter",value:function(a,n,t,e,u,l,g,C){var x=e*u*3,y;if(x<12){if(l.rQwait("TIGHT",x))return!1;y=l.rQshiftBytes(x)}else{if(y=this._readData(l),y===null)return!1;this._zlibs[a].setInput(y),y=this._zlibs[a].inflate(x),this._zlibs[a].setInput(null)}return g.blitRgbImage(n,t,e,u,y,0,!1),!0}},{key:"_paletteFilter",value:function(a,n,t,e,u,l,g,C){if(this._numColors===0){if(l.rQwait("TIGHT palette",1))return!1;var x=l.rQpeek8()+1,y=x*3;if(l.rQwait("TIGHT palette",1+y))return!1;this._numColors=x,l.rQskipBytes(1),l.rQshiftTo(this._palette,y)}var T=this._numColors<=2?1:8,A=Math.floor((e*T+7)/8),E=A*u,b;if(E<12){if(l.rQwait("TIGHT",E))return!1;b=l.rQshiftBytes(E)}else{if(b=this._readData(l),b===null)return!1;this._zlibs[a].setInput(b),b=this._zlibs[a].inflate(E),this._zlibs[a].setInput(null)}return this._numColors==2?this._monoRect(n,t,e,u,b,this._palette,g):this._paletteRect(n,t,e,u,b,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(a,n,t,e,u,l,g){for(var C=this._getScratchBuffer(t*e*4),x=Math.floor((t+7)/8),y=Math.floor(t/8),T=0;T=0;v--)A=(T*t+b*8+7-v)*4,E=(u[T*x+b]>>v&1)*3,C[A]=l[E],C[A+1]=l[E+1],C[A+2]=l[E+2],C[A+3]=255;for(var O=7;O>=8-t%8;O--)A=(T*t+b*8+7-O)*4,E=(u[T*x+b]>>O&1)*3,C[A]=l[E],C[A+1]=l[E+1],C[A+2]=l[E+2],C[A+3]=255}g.blitRgbxImage(a,n,t,e,C,0,!1)}},{key:"_paletteRect",value:function(a,n,t,e,u,l,g){for(var C=this._getScratchBuffer(t*e*4),x=t*e*4,y=0,T=0;y1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(S.a)())return null;var o=document.createElement("style");if((d=c.csp)===null||d===void 0?void 0:d.nonce){var i;o.nonce=(i=c.csp)===null||i===void 0?void 0:i.nonce}o.innerHTML=p;var s=L(c),a=s.firstChild;return c.prepend&&s.prepend?s.prepend(o):c.prepend&&a?s.insertBefore(o,a):s.appendChild(o),o}var _=new Map;function r(p,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=L(c);if(!_.has(o)){var i=m("",c),s=i.parentNode;_.set(o,s),s.removeChild(i)}var a=Array.from(_.get(o).children).find(function(l){return l.tagName==="STYLE"&&l[f]===d});if(a){var n,t;if(((n=c.csp)===null||n===void 0?void 0:n.nonce)&&a.nonce!==((t=c.csp)===null||t===void 0?void 0:t.nonce)){var e;a.nonce=(e=c.csp)===null||e===void 0?void 0:e.nonce}return a.innerHTML!==p&&(a.innerHTML=p),a}var u=m(p,c);return u[f]=d,u}},BUUv:function(Re,I,h){},BWJ9:function(Re,I,h){},"Cs+z":function(Re,I,h){Re.exports=h.p+"static/jqr.b801d45b.png"},"Ct/S":function(Re,I,h){Re.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},Cy2x:function(Re,I,h){"use strict";var S=h("DjyN"),f=h("NUBc"),L=h("cWXX"),m=h("/ezw"),_=h("+L6B"),r=h("2/Rp"),p=h("miYZ"),d=h("tsqr"),c=h("2qtc"),o=h("kLXV"),i=h("9og8"),s=h("tJVT"),a=h("WmNS"),n=h.n(a),t=h("q1tI"),e=h.n(t),u=h("Ty5D"),l=h("9kvl"),g=h("m3rI"),C=h("7Kak"),x=h("9yH6"),y=h("PpiC"),T=h("cU5J"),A=h.n(T),E=function(H){var ae=H.shixunsDetail,ve=H.globalSetting,de=H.loading,be=H.dispatch,z=H.onReloadData,ne=Object(y.a)(H,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),fe=Object(t.useState)(),ie=Object(s.a)(fe,2),oe=ie[0],U=ie[1],ee=Object(t.useState)([]),J=Object(s.a)(ee,2),le=J[0],Pe=J[1];Object(t.useEffect)(function(){ae.actionTabs.key==="Collaborators-ChangeManager"&&Qe()},[ae.actionTabs.key]);var Qe=function(){var Le=Object(i.a)(n.a.mark(function Oe(){var Ce,ue;return n.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,be({type:"shixunsDetail/getChangeManager",payload:{id:(Ce=ae.actionTabs.params)===null||Ce===void 0?void 0:Ce.id}});case 2:ue=te.sent,Pe(ue||[]);case 4:case"end":return te.stop()}},Oe)}));return function(){return Le.apply(this,arguments)}}(),$e=function(){var Oe;be({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Oe=ae.actionTabs.params)===null||Oe===void 0?void 0:Oe.id}}})},et=function(){var Le=Object(i.a)(n.a.mark(function Oe(){var Ce,ue;return n.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(oe){te.next=3;break}return d.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),te.abrupt("return");case 3:return te.next=5,be({type:"shixunsDetail/changeManager",payload:{id:(Ce=ae.actionTabs.params)===null||Ce===void 0?void 0:Ce.id,user_id:oe}});case 5:ue=te.sent,Ve(),ue&&(z(),d.b.info(ue.message));case 8:case"end":return te.stop()}},Oe)}));return function(){return Le.apply(this,arguments)}}(),Ve=function(){be({type:"shixunsDetail/setActionTabs",payload:{}}),U(null)};return e.a.createElement(o.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:ae.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:de.effects["shixunsDetail/changeManager"],onOk:et,onCancel:Ve},e.a.createElement("div",null,e.a.createElement("div",{className:A.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",e.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),e.a.createElement("div",{className:A.a.content},le.length?e.a.createElement(x.a.Group,{value:oe,onChange:function(Oe){return U(Oe.target.value)}},le.map(function(Le,Oe){return e.a.createElement(x.a,{className:A.a.radio,key:Oe,value:Le.user_id},Le.name)})):e.a.createElement("div",{className:A.a.add},e.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",e.a.createElement("a",{className:A.a.colorBlue,onClick:$e},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},b=Object(l.a)(function(M){var H=M.shixunsDetail,ae=M.loading,ve=M.globalSetting;return{shixunsDetail:H,globalSetting:ve,loading:ae}})(E),v=h("Znn+"),O=h("ZTPi"),D=h("ju9d"),W=O.a.TabPane,Q=function(M){var H=M.visible,ae=M.onCancel,ve=M.onSelectGroup,de=M.shixunId,be=M.onSelectCollaborator;return e.a.createElement(o.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:H,width:1100,centered:!0,keyboard:!1,onCancel:ae,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},e.a.createElement(O.a,{defaultActiveKey:"1"},e.a.createElement(W,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},e.a.createElement(D.a,{type:1,onCancel:ae,container_type:2,container_id:de,onSelect:be}))))},j=h("bL63"),Z=h.n(j),Y=h("xvlK"),w=h("ruvs"),P=h("ErOA"),k=function(H){var ae,ve,de,be,z,ne=H.shixunsDetail,fe=H.globalSetting,ie=H.loading,oe=H.user,U=H.dispatch,ee=H.position,J=Object(t.useRef)(),le=Object(t.useState)(0),Pe=Object(s.a)(le,2),Qe=Pe[0],$e=Pe[1],et=Object(t.useState)([]),Ve=Object(s.a)(et,2),Le=Ve[0],Oe=Ve[1],Ce=Object(t.useState)({id:null,page:1}),ue=Object(s.a)(Ce,2),N=ue[0],te=ue[1],F=Object(u.i)(),Ae=Object(t.useState)({}),tt=Object(s.a)(Ae,2),he=tt[0],We=tt[1],rt=(ae=oe.userInfo)===null||ae===void 0||((ve=ae.shixun)===null||ve===void 0)?void 0:ve.editable,V=((de=oe.userInfo)===null||de===void 0?void 0:de.role)<=2||((be=oe.userInfo)===null||be===void 0||((z=be.shixun)===null||z===void 0)?void 0:z.is_creator);Object(t.useEffect)(function(){J.current=F==null?void 0:F.taskId,N.id=F==null?void 0:F.taskId,te(N),Be(N)},[]);var Be=function(){var B=Object(i.a)(n.a.mark(function He(at){var R;return n.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(P.a)("/api/sci/projects/".concat(F==null?void 0:F.taskId,"/get_project_partners.json"),{method:"get"});case 2:R=Ue.sent,R&&(Oe(R.users||[]),$e(R.users_count),We(R));case 4:case"end":return Ue.stop()}},He)}));return function(at){return B.apply(this,arguments)}}(),xe=function(){var B=Object(i.a)(n.a.mark(function He(){var at;return n.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return N.page=1,te(N),at=Object(w.b)(),Me.next=5,U({type:"user/getUserInfo",payload:at});case 5:return Me.next=7,Be(N);case 7:case"end":return Me.stop()}},He)}));return function(){return B.apply(this,arguments)}}(),ke=function(He){N.page=He,te(N),Be(N)},De=function(He){o.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:e.a.createElement("div",{className:Z.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var at=Object(i.a)(n.a.mark(function Me(){var Ue;return n.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.next=2,Object(P.a)("/api/sci/projects/".concat(F==null?void 0:F.taskId,"/del_project_partner.json"),{method:"DELETE",body:{user_id:He}});case 2:Ue=ye.sent,d.b.info("\u5220\u9664\u6210\u529F"),N.page=1,te(N),Be(N);case 7:case"end":return ye.stop()}},Me)}));function R(){return at.apply(this,arguments)}return R}()})},Ne=function(){U({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:J.current}}})};function se(){U({type:"shixunsDetail/setActionTabs",payload:{}})}var we={visible:ne.actionTabs.key==="Collaborators-AddCollaborator",onCancel:se,shixunId:J.current,onSelectCollaborator:function(){var B=Object(i.a)(n.a.mark(function at(R){var Me;return n.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return se(),q.next=3,Object(P.a)("/api/sci/projects/".concat(J.current,"/bacht_add_project_partners.json"),{method:"POST",body:{user_ids:R}});case 3:Me=q.sent,Me&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),xe());case 5:case"end":return q.stop()}},at)}));function He(at){return B.apply(this,arguments)}return He}(),onSelectGroup:function(){var B=Object(i.a)(n.a.mark(function at(R){var Me;return n.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return se(),q.next=3,U({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:J.current,group_id:R.group_id}});case 3:Me=q.sent,Me&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),xe());case 5:case"end":return q.stop()}},at)}));function He(at){return B.apply(this,arguments)}return He}()};return e.a.createElement("section",null,e.a.createElement("div",{className:Z.a.wrap},e.a.createElement("div",{className:Z.a.content},e.a.createElement("div",{className:Z.a.head},e.a.createElement("span",{className:Z.a.headCount},"\u5408\u4F5C\u8005\uFF08",Qe,"\u4EBA\uFF09"),e.a.createElement("div",null,e.a.createElement(r.a,{className:Z.a.button,style:{marginRight:ee==="detail"?0:"20px"},onClick:Ne,icon:e.a.createElement(Y.a,null)},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),e.a.createElement("div",{className:Z.a.list},e.a.createElement(m.a,{loading:!1,active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Le.map(function(B,He){return e.a.createElement("div",{style:{display:"inline-block",width:"50%"},key:He},e.a.createElement("div",{className:Z.a.itemWrap},e.a.createElement("a",{target:"_blank",className:Z.a.imgWrap},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Z.a.img,src:"".concat(g.a.IMG_SERVER,"/images/").concat(B==null?void 0:B.image_url)}),(B==null?void 0:B.is_creator)&&e.a.createElement("span",{className:Z.a.manager},"\u521B\u5EFA\u8005")),e.a.createElement("div",{className:Z.a.itemContent},e.a.createElement("div",{className:Z.a.nameWrap},e.a.createElement("a",{target:"_blank",className:Z.a.name},B==null?void 0:B.user_name),e.a.createElement("div",{className:Z.a.actionGroup},!(B!=null&&B.is_creator)&&(V||he!=null&&he.current_user_is_creator)?e.a.createElement("a",{className:Z.a.deletetitle,onClick:function(){return De(B.id)}},"\u5220\u9664"):null)),e.a.createElement("p",{className:Z.a.schoolWrap},e.a.createElement("span",{className:Z.a.school},B==null?void 0:B.school_name)))))})))),Qe>10&&e.a.createElement("div",{className:Z.a.countWrap},e.a.createElement(f.a,{showQuickJumper:!1,showSizeChanger:!1,total:Qe,onChange:function(He){return ke(He)},pageSize:10,current:N.page}))),e.a.createElement(b,{onReloadData:xe}),e.a.createElement(Q,we))},K=I.a=Object(l.a)(function(M){var H=M.shixunsDetail,ae=M.loading,ve=M.globalSetting,de=M.user;return{shixunsDetail:H,globalSetting:ve,user:de,loading:ae}})(k)},E1Sb:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjczMUZFNjhCMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjczMUZFNjhDMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzMxRkU2ODkwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzMxRkU2OEEwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7zBaLcAAACAElEQVR42uzdzyvDcRzH8ffsZiVc/IjbkOTuShN/gXIgYi5y2AlpFBL/AAdLiXBgBwfUxplmyU2tRK4sTey0+H6+RbKD7Gtfb/V817t963t59Nnn9f58+7aap6LO/yq6KmN13OoJq1MehcD3erS6rUT0VrnVC5qBpgLagWXagQIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAABUCD6Lbkr5L2W2uv9bS3LR4vd6iAb/9BaaBfa7K+oa8+0exEwmOheT5+UXnV9zd2SEHeztSU12ldw+2tjRLbH/X/lQbktqaansluwLtelPs85XKZmRFggN9eseMSbVJ9+Js2HHCizoHRwb7ZWN12V5VtYPaacJdOUmcJNy1o67QhLt6FheScNcfFkyqmxr9eoGHsWMZD8/qBCYvLmV4NCS5XE4f8PrmVnoHRySbzeoLyf1DWnr6huxPdWPGrJhZObOC6ga12Wtmz5m9p/Kom5yZt1Or8mFhbWNLIuubOh+3fjrrXAUWMutcAxY661wBOpl1RQc6nXVFBf7GrHMEPEskP65PE+d5901anc46R68+/rp4/QYQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAP8dMKMdGNcMNH9eMaUR+GR11Oo2q6/eBBgA/5+hicfO9/sAAAAASUVORK5CYII="},E7E6:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(Re,I){Re.exports=function(){var h=document.getSelection();if(!h.rangeCount)return function(){};for(var S=document.activeElement,f=[],L=0;L=48&&e.keyCode<=57)u=e.keyCode;else if(e.keyCode>=65&&e.keyCode<=90){var g=String.fromCharCode(e.keyCode);e.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),u=g.charCodeAt()}else u=0;this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyUp",value:function(e){(0,L.stopEvent)(e);var u=this._getKeyCode(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(_.default.XK_Control_L,"ControlLeft",!0)),(r.isMac()||r.isIOS())&&u==="CapsLock"){this._sendKeyEvent(_.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(_.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[u],u,!1),r.isWindows()&&(u==="ShiftLeft"||u==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(_.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){f.Debug(">> Keyboard.allKeysUp");for(var e in this._keyDownList)this._sendKeyEvent(this._keyDownList[e],e,!1);f.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(e){if(e.skipCheckAlt)return;if(e.altKey)return;var u=this._target,l=this._keyDownList;["AltLeft","AltRight"].forEach(function(g){if(!(g in l))return;var C=new KeyboardEvent("keyup",{key:l[g],code:g});C.skipCheckAlt=!0,u.dispatchEvent(C)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),r.isWindows()&&r.isFirefox()){var e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(u){return document.addEventListener(u,e,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(r.isWindows()&&r.isFirefox()){var e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(u){return document.removeEventListener(u,e)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),n}();I.default=a},GABl:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GQ8N:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.toUnsigned32bit=S,I.toSigned32bit=f;function S(L){return L>>>0}function f(L){return L|0}},GdRQ:function(Re,I,h){"use strict";function S(A){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(b){return typeof b}:S=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},S(A)}Object.defineProperty(I,"__esModule",{value:!0}),I.isMac=u,I.isWindows=l,I.isIOS=g,I.isSafari=C,I.isIE=x,I.isEdge=y,I.isFirefox=T,I.hasScrollbarGutter=I.supportsImageMetadata=I.supportsCursorURIs=I.dragThreshold=I.isTouchDevice=void 0;var f=m(h("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return L=function(){return A},A}function m(A){if(A&&A.__esModule)return A;if(A===null||S(A)!=="object"&&typeof A!="function")return{default:A};var E=L();if(E&&E.has(A))return E.get(A);var b={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in A)if(Object.prototype.hasOwnProperty.call(A,O)){var D=v?Object.getOwnPropertyDescriptor(A,O):null;D&&(D.get||D.set)?Object.defineProperty(b,O,D):b[O]=A[O]}return b.default=A,E&&E.set(A,b),b}var _="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;I.isTouchDevice=_,window.addEventListener("touchstart",function A(){I.isTouchDevice=_=!0,window.removeEventListener("touchstart",A,!1)},!1);var r=10*(window.devicePixelRatio||1);I.dragThreshold=r;var p=!1;try{var d=document.createElement("canvas");d.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',d.style.cursor.indexOf("url")===0?(f.Info("Data URI scheme cursor supported"),p=!0):f.Warn("Data URI scheme cursor not supported")}catch(A){f.Error("Data URI scheme cursor test exception: "+A)}var c=p;I.supportsCursorURIs=c;var o=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),o=!0}catch(A){}var i=o;I.supportsImageMetadata=i;var s=!0;try{var a=document.createElement("div");a.style.visibility="hidden",a.style.overflow="scroll",document.body.appendChild(a);var n=document.createElement("div");a.appendChild(n);var t=a.offsetWidth-n.offsetWidth;a.parentNode.removeChild(a),s=t!=0}catch(A){f.Error("Scrollbar test exception: "+A)}var e=s;I.hasScrollbarGutter=e;function u(){return navigator&&!!/mac/i.exec(navigator.platform)}function l(){return navigator&&!!/win/i.exec(navigator.platform)}function g(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function C(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function x(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function y(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function T(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GfqC:function(Re,I,h){"use strict";var S=h("q1tI"),f=h.n(S),L=h("TSYQ"),m=h.n(L);function _(P,k){var K="cannot "+P.method+" "+P.action+" "+k.status+"'",M=new Error(K);return M.status=k.status,M.method=P.method,M.url=P.action,M}function r(P){var k=P.responseText||P.response;if(!k)return k;try{return JSON.parse(k)}catch(K){return k}}function p(P){var k=new XMLHttpRequest;P.onProgress&&k.upload&&(k.upload.onprogress=function(ae){ae.total>0&&(ae.percent=ae.loaded/ae.total*100),P.onProgress(ae)});var K=new FormData;P.data&&Object.keys(P.data).forEach(function(H){var ae=P.data[H];if(Array.isArray(ae)){ae.forEach(function(ve){K.append(H+"[]",ve)});return}K.append(H,P.data[H])}),P.file instanceof Blob?K.append(P.filename,P.file,P.file.name):K.append(P.filename,P.file),k.onerror=function(ae){P.onError(ae)},k.onload=function(){return k.status<200||k.status>=300?P.onError(_(P,k),r(k)):P.onSuccess(r(k),k)},k.open(P.method,P.action,!0),P.withCredentials&&"withCredentials"in k&&(k.withCredentials=!0);var M=P.headers||{};return M["X-Requested-With"]!==null&&k.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(M).forEach(function(H){M[H]!==null&&k.setRequestHeader(H,M[H])}),k.send(K),{abort:function(){k.abort()}}}var d=+new Date,c=0;function o(){return"rc-upload-"+d+"-"+ ++c}function i(P,k){return P.indexOf(k,P.length-k.length)!==-1}var s=function(P,k){if(P&&k){var K=Array.isArray(k)?k:k.split(","),M=P.name||"",H=P.type||"",ae=H.replace(/\/.*$/,"");return K.some(function(ve){var de=ve.trim();return de.charAt(0)==="."?i(M.toLowerCase(),de.toLowerCase()):/\/\*$/.test(de)?ae===de.replace(/\/.*$/,""):H===de})}return!0};function a(P,k){var K=P.createReader(),M=[];function H(){K.readEntries(function(ae){var ve=Array.prototype.slice.apply(ae);M=M.concat(ve);var de=!ve.length;de?k(M):H()})}H()}var n=function(k,K,M){var H=function ae(ve,de){de=de||"",ve.isFile?ve.file(function(be){M(be)&&(ve.fullPath&&!be.webkitRelativePath&&(Object.defineProperties(be,{webkitRelativePath:{writable:!0}}),be.webkitRelativePath=ve.fullPath.replace(/^\//,""),Object.defineProperties(be,{webkitRelativePath:{writable:!1}})),K([be]))}):ve.isDirectory&&a(ve,function(be){be.forEach(function(z){ae(z,""+de+ve.name+"/")})})};k.forEach(function(ae){H(ae.webkitGetAsEntry())})},t=n,e=Object.assign||function(P){for(var k=1;k=0)continue;if(!Object.prototype.hasOwnProperty.call(P,M))continue;K[M]=P[M]}return K}function x(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function y(P,k){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:P}function T(P,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);P.prototype=Object.create(k&&k.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(P,k):P.__proto__=k)}var A=function(k){return Object.keys(k).reduce(function(K,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-"||M==="role")&&(K[M]=k[M]),K},{})},E=function(P){T(k,P);function k(){var K,M,H,ae;x(this,k);for(var ve=arguments.length,de=Array(ve),be=0;bethis.chunkSize&&(this.chunkSize=o,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=o;var i=(0,S.inflate)(this.strm,0);if(i<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=o)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,S.inflateReset)(this.strm)}}]),d}();I.default=p},IxHN:function(Re,I,h){"use strict";var S=h("q1tI"),f=h.n(S),L=h("07cG"),m=h.n(L);I.a=function(_){var r=_.message,p=_.className,d=_.children,c=_.style,o=c===void 0?{}:c;return f.a.createElement("div",{className:"".concat(m.a.idsRingWrapper," ").concat(p)},f.a.createElement("div",{className:m.a.ldsRing},f.a.createElement("div",null),f.a.createElement("div",null),f.a.createElement("div",null),f.a.createElement("div",null)),r?f.a.createElement("p",{style:o},r):null,d)}},J66h:function(Re,I,h){(function(S){var f,L;(function(m,_){Re.exports=_(m)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof S!="undefined"?S:this,function(m){"use strict";m=m||{};var _=m.Base64,r="2.6.4",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(j){for(var Z={},Y=0,w=j.length;Y>>6)+c(128|Z&63):c(224|Z>>>12&15)+c(128|Z>>>6&63)+c(128|Z&63)}else{var Z=65536+(j.charCodeAt(0)-55296)*1024+(j.charCodeAt(1)-56320);return c(240|Z>>>18&7)+c(128|Z>>>12&63)+c(128|Z>>>6&63)+c(128|Z&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,s=function(j){return j.replace(i,o)},a=function(j){var Z=[0,2,1][j.length%3],Y=j.charCodeAt(0)<<16|(j.length>1?j.charCodeAt(1):0)<<8|(j.length>2?j.charCodeAt(2):0),w=[p.charAt(Y>>>18),p.charAt(Y>>>12&63),Z>=2?"=":p.charAt(Y>>>6&63),Z>=1?"=":p.charAt(Y&63)];return w.join("")},n=m.btoa&&typeof m.btoa=="function"?function(j){return m.btoa(j)}:function(j){if(j.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return j.replace(/[\s\S]{1,3}/g,a)},t=function(j){return n(s(String(j)))},e=function(j){return j.replace(/[+\/]/g,function(Z){return Z=="+"?"-":"_"}).replace(/=/g,"")},u=function(j,Z){return Z?e(t(j)):t(j)},l=function(j){return u(j,!0)},g;m.Uint8Array&&(g=function(j,Z){for(var Y="",w=0,P=j.length;w>>18)+p.charAt(H>>>12&63)+(typeof K!="undefined"?p.charAt(H>>>6&63):"=")+(typeof M!="undefined"?p.charAt(H&63):"=")}return Z?e(Y):Y});var C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(j){switch(j.length){case 4:var Z=(7&j.charCodeAt(0))<<18|(63&j.charCodeAt(1))<<12|(63&j.charCodeAt(2))<<6|63&j.charCodeAt(3),Y=Z-65536;return c((Y>>>10)+55296)+c((Y&1023)+56320);case 3:return c((15&j.charCodeAt(0))<<12|(63&j.charCodeAt(1))<<6|63&j.charCodeAt(2));default:return c((31&j.charCodeAt(0))<<6|63&j.charCodeAt(1))}},y=function(j){return j.replace(C,x)},T=function(j){var Z=j.length,Y=Z%4,w=(Z>0?d[j.charAt(0)]<<18:0)|(Z>1?d[j.charAt(1)]<<12:0)|(Z>2?d[j.charAt(2)]<<6:0)|(Z>3?d[j.charAt(3)]:0),P=[c(w>>>16),c(w>>>8&255),c(w&255)];return P.length-=[0,0,2,1][Y],P.join("")},A=m.atob&&typeof m.atob=="function"?function(j){return m.atob(j)}:function(j){return j.replace(/\S{1,4}/g,T)},E=function(j){return A(String(j).replace(/[^A-Za-z0-9\+\/]/g,""))},b=function(j){return y(A(j))},v=function(j){return String(j).replace(/[-_]/g,function(Z){return Z=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(j){return b(v(j))},D;m.Uint8Array&&(D=function(j){return Uint8Array.from(E(v(j)),function(Z){return Z.charCodeAt(0)})});var W=function(){var j=m.Base64;return m.Base64=_,j};if(m.Base64={VERSION:r,atob:E,btoa:n,fromBase64:O,toBase64:u,utob:s,encode:u,encodeURI:l,btou:y,decode:O,noConflict:W,fromUint8Array:g,toUint8Array:D},typeof Object.defineProperty=="function"){var Q=function(j){return{value:j,enumerable:!1,writable:!0,configurable:!0}};m.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Q(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",Q(function(j){return u(this,j)})),Object.defineProperty(String.prototype,"toBase64URI",Q(function(){return u(this,!0)}))}}return m.Meteor&&(Base64=m.Base64),Re.exports?Re.exports.Base64=m.Base64:!(f=[],L=function(){return m.Base64}.apply(I,f),L!==void 0&&(Re.exports=L)),{Base64:m.Base64}})}).call(this,h("IyRk"))},JJs0:function(Re,I,h){Re.exports={flex_box_center:"flex_box_center___XQaQv",flex_space_between:"flex_space_between___MKaIy",flex_box_vertical_center:"flex_box_vertical_center___1mxtL",flex_box_center_end:"flex_box_center_end___2F_Ix",flex_box_column:"flex_box_column___2uQCp",wrap:"wrap___3HzlV",list:"list___1j7BW",page:"page___1eDtu"}},JSwD:function(Re,I,h){"use strict";function S(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(l){return typeof l}:S=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},S(e)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=t;var f=m(h("6BzB"));function L(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return L=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(e===null||S(e)!=="object"&&typeof e!="function")return{default:e};var u=L();if(u&&u.has(e))return u.get(e);var l={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in e)if(Object.prototype.hasOwnProperty.call(e,C)){var x=g?Object.getOwnPropertyDescriptor(e,C):null;x&&(x.get||x.set)?Object.defineProperty(l,C,x):l[C]=e[C]}return l.default=e,u&&u.set(e,l),l}var _=15,r=852,p=592,d=0,c=1,o=2,i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],n=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function t(e,u,l,g,C,x,y,T){var A=T.bits,E=0,b=0,v=0,O=0,D=0,W=0,Q=0,j=0,Z=0,Y=0,w,P,k,K,M,H=null,ae=0,ve,de=new f.Buf16(_+1),be=new f.Buf16(_+1),z=null,ne=0,fe,ie,oe;for(E=0;E<=_;E++)de[E]=0;for(b=0;b=1&&!(de[O]!==0);O--);if(D>O&&(D=O),O===0)return C[x++]=1<<24|64<<16|0,C[x++]=1<<24|64<<16|0,T.bits=1,0;for(v=1;v0&&(e===d||O!==1))return-1;for(be[1]=0,E=1;E<_;E++)be[E+1]=be[E]+de[E];for(b=0;br||e===o&&Z>p)return 1;for(;;){fe=E-Q,y[b]ve?(ie=z[ne+y[b]],oe=H[ae+y[b]]):(ie=32+64,oe=0),w=1<>Q)+P]=fe<<24|ie<<16|oe|0;while(P!==0);for(w=1<>=1;if(w!==0?(Y&=w-1,Y+=w):Y=0,b++,--de[E]===0){if(E===O)break;E=u[l+y[b]]}if(E>D&&(Y&K)!==k){for(Q===0&&(Q=D),M+=v,W=E-Q,j=1<r||e===o&&Z>p)return 1;k=Y&K,C[k]=D<<24|W<<16|M-x|0}}return Y!==0&&(C[M+Y]=E-Q<<24|64<<16|0),T.bits=D,0}},JWDV:function(Re,I,h){Re.exports=h.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jky8:function(Re,I,h){"use strict";var S=h("sRBo"),f=h("kaz8"),L=h("5NDa"),m=h("5rEg"),_=h("miYZ"),r=h("tsqr"),p=h("9og8"),d=h("2qtc"),c=h("kLXV"),o=h("tJVT"),i=h("WmNS"),s=h.n(i),a=h("q1tI"),n=h.n(a),t=h("9kvl"),e=h("6CvP"),u=h("1XHU"),l=h("1vsH"),g;(function(x){x[x.Professor=1]="Professor",x[x.AssistantProfessor=2]="AssistantProfessor",x[x.Student=3]="Student"})(g||(g={}));var C=function(y){var T=y.visible,A=y.user,E=y.onCancel,b=E===void 0?function(){}:E,v=Object(a.useState)(),O=Object(o.a)(v,2),D=O[0],W=O[1],Q=Object(a.useState)([]),j=Object(o.a)(Q,2),Z=j[0],Y=j[1],w=Object(a.useState)(!1),P=Object(o.a)(w,2),k=P[0],K=P[1],M=Object(a.useState)(!1),H=Object(o.a)(M,2),ae=H[0],ve=H[1],de=Object(a.useState)(),be=Object(o.a)(de,2),z=be[0],ne=be[1];Object(a.useEffect)(function(){var U;if(A!=null&&(U=A.userInfo)!==null&&U!==void 0&&U.identity){var ee;Y([(A==null||((ee=A.userInfo)===null||ee===void 0)?void 0:ee.identity)==="student"?3:1])}},[A]);var fe=function(ee,J){if(Z.includes(g.Professor)){c.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc"},J||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){t.d.push("/classrooms/".concat(ee,"/students"))}});return}t.d.push("/classrooms/".concat(ee,"/students"))},ie=function(){var U=Object(p.a)(s.a.mark(function ee(){var J;return s.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(D){Pe.next=3;break}return r.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Pe.abrupt("return");case 3:return K(!0),Pe.next=6,Object(e.c)({invite_code:D,professor:Z.includes(g.Professor)?1:null,assistant_professor:Z.includes(g.AssistantProfessor)?1:null,student:Z.includes(g.Student)?1:null});case 6:if(J=Pe.sent,K(!1),!((J==null?void 0:J.status)===-2)){Pe.next=22;break}if(oe(),!(J.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Pe.next=14;break}return ve(!0),ne(1),Pe.abrupt("return");case 14:if(!(J.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Pe.next=18;break}return ve(!0),ne(2),Pe.abrupt("return");case 18:if(!(J.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Pe.next=22;break}return ve(!0),ne(3),Pe.abrupt("return");case 22:if(!((J==null?void 0:J.status)===0)){Pe.next=27;break}return Object(l.Y)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),oe(),(J==null?void 0:J.course_id)&&fe(J.course_id,J.message),Pe.abrupt("return");case 27:case"end":return Pe.stop()}},ee)}));return function(){return U.apply(this,arguments)}}(),oe=function(){var U=Object(p.a)(s.a.mark(function ee(){return s.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:b();case 1:case"end":return le.stop()}},ee)}));return function(){return U.apply(this,arguments)}}();return n.a.createElement(n.a.Fragment,null,n.a.createElement(c.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:T,confirmLoading:k,onOk:ie,onCancel:oe},n.a.createElement("div",{className:"tc"},n.a.createElement("div",null,n.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),n.a.createElement(m.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:D,onChange:function(ee){if(ee.target.value.length>=7){r.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}W(ee.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(f.a.Group,{value:Z,onChange:function(ee){return Y(ee)}},n.a.createElement(f.a,{value:g.Professor,disabled:Z.includes(2)},"\u6559\u5E08"),n.a.createElement(f.a,{value:g.AssistantProfessor,disabled:Z.includes(1)},"\u52A9\u6559"),n.a.createElement(f.a,{value:g.Student},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),n.a.createElement(u.a,{visible:ae,onCancel:function(){return ve(!1)},occupationValue:z}))};I.a=Object(t.a)(function(x){var y=x.user;return{user:y}})(C)},Jq4h:function(Re,I,h){Re.exports=h.p+"static/qrcode.54870d9b.png"},LCi9:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function f(C,x){for(var y=0;y0&&Date.now()-this._tracked[0].started>t){this._state=m,this._ignored.push(y);return}if(this._waitingRelease){this._state=m,this._ignored.push(y);return}this._tracked.push({id:y,started:Date.now(),active:!0,firstX:T,firstY:A,lastX:T,lastY:A,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(_|d|c),this._stopLongpressTimeout();break;case 3:this._state&=~(r|o|i);break;default:this._state=m}}},{key:"_touchMove",value:function(y,T,A){var E=this._tracked.find(function(Q){return Q.id===y});if(E===void 0)return;E.lastX=T,E.lastY=A;var b=T-E.firstX,v=A-E.firstY;if((E.firstX!==E.lastX||E.firstY!==E.lastY)&&(E.angle=Math.atan2(v,b)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(b,v)a){var W=Math.abs(E.angle-O.angle);W=Math.abs((W+180)%360-180),W>n?this._state&=~o:this._state&=~i,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(y,T,A){if(this._ignored.indexOf(y)!==-1){this._ignored.splice(this._ignored.indexOf(y),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=s,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=m),!this._hasDetectedGesture()&&(this._state&=~(d|o|i),this._state&=~c,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(r|p);break;case 2:this._state&=~(_|p);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=m),this._tracked.some(function(v){return Date.now()-v.started>e})&&(this._state=m);var E=this._tracked.find(function(v){return v.id===y});if(E.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==m)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var b=0;b=0)continue;if(!Object.prototype.hasOwnProperty.call(s,t))continue;n[t]=s[t]}return n}function d(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function c(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function o(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var i=function(s){o(a,s);function a(n){d(this,a);var t=c(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,n));return t.scrollListener=t.scrollListener.bind(t),t.eventListenerOptions=t.eventListenerOptions.bind(t),t.mousewheelListener=t.mousewheelListener.bind(t),t}return S(a,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,e={get passive(){t=!0}};try{document.addEventListener("test",null,e),document.removeEventListener("test",null,e)}catch(u){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var e=this.props.getScrollParent&&this.props.getScrollParent();return e!=null?e:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;var e=window;this.props.useWindow===!1&&(e=t),e.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),e.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,e=window,u=this.getParentElement(t),l=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,C=e.pageYOffset!==void 0?e.pageYOffset:g.scrollTop;this.props.isReverse?l=C:l=this.calculateOffset(t,C)}else this.props.isReverse?l=u.scrollTop:l=t.scrollHeight-u.scrollTop-u.clientHeight;l1&&arguments[1]!==void 0?arguments[1]:1,Ne=Ce.length,se=0;se1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(K).map(function(H,ae){if(!_.isValidElement(H)||!H.type)return null;var ve=H.type.isSelectOptGroup,de=H.key,be=H.props,z=be.children,ne=Object(p.a)(be,["children"]);return M||!ve?E(H):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(de===null?ae:de,"__"),label:de},ne),{},{options:b(z)})}).filter(function(H){return H})}var v=h("2Qr1"),O=h("qNPg"),D=h("U8pU"),W=h("Kwbf"),Q=h("WKfj");function j(K){var M=K.mode,H=K.options,ae=K.children,ve=K.backfill,de=K.allowClear,be=K.placeholder,z=K.getInputElement,ne=K.showSearch,fe=K.onSearch,ie=K.defaultOpen,oe=K.autoFocus,U=K.labelInValue,ee=K.value,J=K.inputValue,le=K.optionLabelProp,Pe=M==="multiple"||M==="tags",Qe=ne!==void 0?ne:Pe||M==="combobox",$e=H||b(ae);if(Object(W.a)(M!=="tags"||$e.every(function(Oe){return!Oe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),M==="tags"||M==="combobox"){var et=$e.some(function(Oe){return Oe.options?Oe.options.some(function(Ce){return typeof("value"in Ce?Ce.value:Ce.key)=="number"}):typeof("value"in Oe?Oe.value:Oe.key)=="number"});Object(W.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(W.a)(M!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(W.a)(M==="combobox"||!ve,"`backfill` only works with `combobox` mode."),Object(W.a)(M==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),Object(W.b)(M!=="combobox"||!z||!de||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!Qe&&M!=="combobox"&&M!=="tags"&&Object(W.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(W.b)(!ie||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ee!=null){var Ve=Object(Q.d)(ee);Object(W.a)(!U||Ve.every(function(Oe){return Object(D.a)(Oe)==="object"&&("key"in Oe||"value"in Oe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(W.a)(!Pe||Array.isArray(ee),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Le=null;Object(A.a)(ae).some(function(Oe){if(!_.isValidElement(Oe)||!Oe.type)return!1;var Ce=Oe.type;if(Ce.isSelectOption)return!1;if(Ce.isSelectOptGroup){var ue=Object(A.a)(Oe.props.children).every(function(N){return!_.isValidElement(N)||!Oe.type||N.type.isSelectOption?!0:(Le=N.type,!1)});return!ue}return Le=Ce,!0}),Le&&Object(W.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(W.a)(J===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Z=j,Y=Object(O.a)({prefixCls:"rc-select",components:{optionList:l},convertChildrenToData:b,flattenOptions:v.d,getLabeledValue:v.e,filterOptions:v.b,isValueDisabled:v.g,findValueOption:v.c,warningProps:Z,fillOptionsWithMissingValue:v.a}),w=function(K){Object(L.a)(H,K);var M=Object(m.a)(H);function H(){var ae;return Object(S.a)(this,H),ae=M.apply(this,arguments),ae.selectRef=_.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(f.a)(H,[{key:"render",value:function(){return _.createElement(Y,Object.assign({ref:this.selectRef},this.props))}}]),H}(_.Component);w.Option=C,w.OptGroup=y;var P=w,k=I.c=P},Lo0S:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.initLogging=r,I.getLogging=p,I.Error=I.Warn=I.Info=I.Debug=void 0;var S="warn",f=function(){};I.Debug=f;var L=function(){};I.Info=L;var m=function(){};I.Warn=m;var _=function(){};I.Error=_;function r(d){if(typeof d=="undefined"?d=S:S=d,I.Debug=f=I.Info=L=I.Warn=m=I.Error=_=function(){},typeof window.console!="undefined")switch(d){case"debug":I.Debug=f=console.debug.bind(window.console);case"info":I.Info=L=console.info.bind(window.console);case"warn":I.Warn=m=console.warn.bind(window.console);case"error":I.Error=_=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+d+"'")}}function p(){return S}r()},M8RZ:function(Re,I,h){"use strict";h.d(I,"a",function(){return c});var S=h("fWQN"),f=h("mtLc"),L=h("yKVA"),m=h("879j"),_=h("q1tI"),r=h.n(_),p=h("i8i4"),d=h.n(p),c=function(o){Object(L.a)(s,o);var i=Object(m.a)(s);function s(a){var n;Object(S.a)(this,s),n=i.call(this,a);var t=window.document;return n.node=t.createElement("div"),t.body.appendChild(n.node),n}return Object(f.a)(s,[{key:"render",value:function(){var n=this.props.children;return Object(p.createPortal)(n,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),s}(r.a.Component)},MZdM:function(Re,I,h){"use strict";function S(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(t){return typeof t}:S=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(a)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=d(h("Lo0S")),L=r(h("N/zr")),m=h("GdRQ"),_=h("GQ8N");function r(a){return a&&a.__esModule?a:{default:a}}function p(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return p=function(){return a},a}function d(a){if(a&&a.__esModule)return a;if(a===null||S(a)!=="object"&&typeof a!="function")return{default:a};var n=p();if(n&&n.has(a))return n.get(a);var t={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in a)if(Object.prototype.hasOwnProperty.call(a,u)){var l=e?Object.getOwnPropertyDescriptor(a,u):null;l&&(l.get||l.set)?Object.defineProperty(t,u,l):t[u]=a[u]}return t.default=a,n&&n.set(a,t),t}function c(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function o(a,n){for(var t=0;t> Display.constructor"),this._target=n,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},f.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),f.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return i(a,[{key:"viewportChangePos",value:function(t,e){var u=this._viewportLoc;t=Math.floor(t),e=Math.floor(e),this._clipViewport||(t=-u.w,e=-u.h);var l=u.x+u.w-1,g=u.y+u.h-1;if(t<0&&u.x+t<0&&(t=-u.x),l+t>=this._fbWidth&&(t-=l+t-this._fbWidth+1),u.y+e<0&&(e=-u.y),g+e>=this._fbHeight&&(e-=g+e-this._fbHeight+1),t===0&&e===0)return;f.Debug("viewportChange deltaX: "+t+", deltaY: "+e),u.x+=t,u.y+=e,this._damage(u.x,u.y,u.w,u.h),this.flip()}},{key:"viewportChangeSize",value:function(t,e){(!this._clipViewport||typeof t=="undefined"||typeof e=="undefined")&&(f.Debug("Setting viewport to full display region"),t=this._fbWidth,e=this._fbHeight),t=Math.floor(t),e=Math.floor(e),t>this._fbWidth&&(t=this._fbWidth),e>this._fbHeight&&(e=this._fbHeight);var u=this._viewportLoc;if(u.w!==t||u.h!==e){u.w=t,u.h=e;var l=this._target;l.width=t,l.height=e,this.viewportChangePos(0,0),this._damage(u.x,u.y,u.w,u.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,_.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,_.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,e){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=e;var u=this._backbuffer;if(u.width!==t||u.height!==e){var l=null;u.width>0&&u.height>0&&(l=this._drawCtx.getImageData(0,0,u.width,u.height)),u.width!==t&&(u.width=t),u.height!==e&&(u.height=e),l&&this._drawCtx.putImageData(l,0,0)}var g=this._viewportLoc;this.viewportChangeSize(g.w,g.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,e,u,l){tthis._damageBounds.right&&(this._damageBounds.right=t+u),e+l>this._damageBounds.bottom&&(this._damageBounds.bottom=e+l)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var e=this._damageBounds.left,u=this._damageBounds.top,l=this._damageBounds.right-e,g=this._damageBounds.bottom-u,C=e-this._viewportLoc.x,x=u-this._viewportLoc.y;C<0&&(l+=C,e-=C,C=0),x<0&&(g+=x,u-=x,x=0),C+l>this._viewportLoc.w&&(l=this._viewportLoc.w-C),x+g>this._viewportLoc.h&&(g=this._viewportLoc.h-x),l>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,e,u,l,g,C,x,l,g),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(t,e,u,l,g,C){this._renderQ.length!==0&&!C?this._renderQPush({type:"fill",x:t,y:e,width:u,height:l,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(t,e,u,l),this._damage(t,e,u,l))}},{key:"copyImage",value:function(t,e,u,l,g,C,x){this._renderQ.length!==0&&!x?this._renderQPush({type:"copy",oldX:t,oldY:e,x:u,y:l,width:g,height:C}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,e,g,C,u,l,g,C),this._damage(u,l,g,C))}},{key:"imageRect",value:function(t,e,u,l,g,C){if(u===0||l===0)return;var x=new Image;x.src="data: "+g+";base64,"+L.default.encode(C),this._renderQPush({type:"img",img:x,x:t,y:e,width:u,height:l})}},{key:"startTile",value:function(t,e,u,l,g){this._tileX=t,this._tileY=e,u===16&&l===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(u,l);for(var C=g[2],x=g[1],y=g[0],T=this._tile.data,A=0;A=g?u=t/l.w:u=e/l.h}this._rescale(u)}},{key:"_rescale",value:function(t){this._scale=t;var e=this._viewportLoc,u=t*e.w+"px",l=t*e.h+"px";(this._target.style.width!==u||this._target.style.height!==l)&&(this._target.style.width=u,this._target.style.height=l)}},{key:"_setFillColor",value:function(t){var e="rgb("+t[2]+","+t[1]+","+t[0]+")";e!==this._prevDrawStyle&&(this._drawCtx.fillStyle=e,this._prevDrawStyle=e)}},{key:"_rgbImageData",value:function(t,e,u,l,g,C){for(var x=this._drawCtx.createImageData(u,l),y=x.data,T=0,A=C;T0;){var e=this._renderQ[0];switch(e.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(e.oldX,e.oldY,e.x,e.y,e.width,e.height,!0);break;case"fill":this.fillRect(e.x,e.y,e.width,e.height,e.color,!0);break;case"blit":this.blitImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"blitRgb":this.blitRgbImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"img":if(e.img.complete&&e.img.width!==0&&e.img.height!==0){if(e.img.width!==e.width||e.img.height!==e.height){f.Error("Decoded image has incorrect dimensions. Got "+e.img.width+"x"+e.img.height+". Expected "+e.width+"x"+e.height+".");return}this.drawImage(e.img,e.x,e.y)}else e.img._noVNCDisplay=this,e.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(t){this._rescale(t)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(t){this._clipViewport=t;var e=this._viewportLoc;this.viewportChangeSize(e.w,e.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),a}();I.default=s},Mmt2:function(Re,I,h){"use strict";function S(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(a){return typeof a}:S=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},S(i)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=m(h("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return L=function(){return i},i}function m(i){if(i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var s=L();if(s&&s.has(i))return s.get(i);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var e=n?Object.getOwnPropertyDescriptor(i,t):null;e&&(e.get||e.set)?Object.defineProperty(a,t,e):a[t]=i[t]}return a.default=i,s&&s.set(i,a),a}function _(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function r(i,s){for(var a=0;a=0;t--)n+=this._rQ[this._rQi++]<1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+a,n-a)}},{key:"rQwait",value:function(a,n,t){if(this.rQlen0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(a){this._sQ.set(a,this._sQlen),this._sQlen+=a.length,this.flush()}},{key:"sendString",value:function(a){this.send(a.split("").map(function(n){return n.charCodeAt(0)}))}},{key:"off",value:function(a){this._eventHandlers[a]=function(){}}},{key:"on",value:function(a,n){this._eventHandlers[a]=n}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(a,n){var t=this;this.init(),this._websocket=new WebSocket(a,n),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){f.Debug(">> WebSock.onopen"),t._websocket.protocol&&f.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),f.Debug("<< WebSock.onopen")},this._websocket.onclose=function(e){f.Debug(">> WebSock.onclose"),t._eventHandlers.close(e),f.Debug("<< WebSock.onclose")},this._websocket.onerror=function(e){f.Debug(">> WebSock.onerror: "+e),t._eventHandlers.error(e),f.Debug("<< WebSock.onerror: "+e)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(f.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(a){var n=(this._rQlen-this._rQi+a)*8,t=this._rQbufferSizec&&(this._rQbufferSize=c,this._rQbufferSize-this.rQlenthis._rQbufferSize-this._rQlen&&this._expandCompactRQ(n.length),this._rQ.set(n,this._rQlen),this._rQlen+=n.length}},{key:"_recvMessage",value:function(a){this._DecodeMessage(a.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):f.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(a){this._rQi=a}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),i}();I.default=o},"N/zr":function(Re,I,h){"use strict";function S(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(d){return typeof d}:S=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},S(r)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var f=m(h("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return L=function(){return r},r}function m(r){if(r&&r.__esModule)return r;if(r===null||S(r)!=="object"&&typeof r!="function")return{default:r};var p=L();if(p&&p.has(r))return p.get(r);var d={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var i=c?Object.getOwnPropertyDescriptor(r,o):null;i&&(i.get||i.set)?Object.defineProperty(d,o,i):d[o]=r[o]}return d.default=r,p&&p.set(r,d),d}var _={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(p){"use strict";for(var d="",c=p.length,o=c%3,i=0;i>2],d+=this.toBase64Table[((p[i]&3)<<4)+(p[i+1]>>4)],d+=this.toBase64Table[((p[i+1]&15)<<2)+(p[i+2]>>6)],d+=this.toBase64Table[p[i+2]&63];var s=c-o;return o===2?(d+=this.toBase64Table[p[s]>>2],d+=this.toBase64Table[((p[s]&3)<<4)+(p[s+1]>>4)],d+=this.toBase64Table[(p[s+1]&15)<<2],d+=this.toBase64Table[64]):o===1&&(d+=this.toBase64Table[p[s]>>2],d+=this.toBase64Table[(p[s]&3)<<4],d+=this.toBase64Table[64],d+=this.toBase64Table[64]),d},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=p.indexOf("=")-d;c<0&&(c=p.length-d);for(var o=(c>>2)*3+Math.floor(c%4/1.5),i=new Array(o),s=0,a=0,n=0,t=d;t=8&&(s-=8,u||(i[n++]=a>>s&255),a&=(1<1&&arguments[1]!==void 0?arguments[1]:!1;return!!(y(D)&&T(W))},y=function(D){return Object(i.p)()?!0:(D({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},T=function(){var D,W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Q=Object(o.c)()._store.getState(),j=Q.user;return(D=j.userInfo)!==null&&D!==void 0&&D.profile_completed?!0:(_.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:W?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){o.d.push("/account/profile/edit")}}),!1)},A=function(){var D,W=Object(o.c)()._store.getState(),Q=W.user;return(D=Q.userInfo)!==null&&D!==void 0&&D.professional_certification?!0:(_.a.confirm({title:"\u63D0\u793A",centered:!0,content:c.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(s.O)("/account/certification")}}),!1)},E=function(){return Object(i.a)()?!0:(_.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),c.a.createElement("img",{src:Object(i.t)()?g.a:"".concat(C.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},b=function(D,W){return D?!0:(_.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("p",null,W||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:u.a,width:200}),c.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(s.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},v=function(D){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Q=Object(o.c)()._store.getState(),j=Q.shixunsDetail.detail;return(j==null?void 0:j.public)===2||(j==null?void 0:j.public)===1||(j==null?void 0:j.shixun_status)===3?(_.a.info({centered:!0,icon:c.a.createElement(a.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(j==null?void 0:j.public)===2?"\u5DF2\u516C\u5F00":(j==null?void 0:j.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",W,"\u3002"),c.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),c.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:t.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(j==null?void 0:j.shixun_status)===2?(_.a.confirm({centered:!0,icon:c.a.createElement(a.a,null),title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",W,"\u3002"),c.a.createElement("br",null),c.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){_.a.confirm({width:440,centered:!0,icon:c.a.createElement(a.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var Y=Object(L.a)(p.a.mark(function P(){var k;return p.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,D({type:"shixunsDetail/cancelRelease",payload:{id:j==null?void 0:j.identifier}});case 2:k=M.sent,k.status!==401&&(f.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),D({type:"shixunsDetail/getShixunsDetail",payload:{id:j==null?void 0:j.identifier}}),D({type:"practiceSetting/getCommonData",payload:{id:j==null?void 0:j.identifier}}));case 4:case"end":return M.stop()}},P)}));function w(){return Y.apply(this,arguments)}return w}()})}}),!0):!1}},Nmxd:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(Re,I,h){"use strict";h.d(I,"a",function(){return r});var S=h("Kwbf");function f(p,d){var c=new Set;return p.forEach(function(o){d.has(o)||c.add(o)}),c}function L(p){var d=p||{},c=d.disabled,o=d.disableCheckbox,i=d.checkable;return!!(c||o)||i===!1}function m(p,d,c,o){for(var i=new Set(p),s=new Set,a=0;a<=c;a+=1){var n=d.get(a)||new Set;n.forEach(function(l){var g=l.key,C=l.node,x=l.children,y=x===void 0?[]:x;i.has(g)&&!o(C)&&y.filter(function(T){return!o(T.node)}).forEach(function(T){i.add(T.key)})})}for(var t=new Set,e=c;e>=0;e-=1){var u=d.get(e)||new Set;u.forEach(function(l){var g=l.parent,C=l.node;if(o(C)||!l.parent||t.has(l.parent.key))return;if(o(l.parent.node)){t.add(g.key);return}var x=!0,y=!1;(g.children||[]).filter(function(T){return!o(T.node)}).forEach(function(T){var A=T.key,E=i.has(A);x&&!E&&(x=!1),!y&&(E||s.has(A))&&(y=!0)}),x&&i.add(g.key),y&&s.add(g.key),t.add(g.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(f(s,i))}}function _(p,d,c,o,i){for(var s=new Set(p),a=new Set(d),n=0;n<=o;n+=1){var t=c.get(n)||new Set;t.forEach(function(g){var C=g.key,x=g.node,y=g.children,T=y===void 0?[]:y;!s.has(C)&&!a.has(C)&&!i(x)&&T.filter(function(A){return!i(A.node)}).forEach(function(A){s.delete(A.key)})})}a=new Set;for(var e=new Set,u=o;u>=0;u-=1){var l=c.get(u)||new Set;l.forEach(function(g){var C=g.parent,x=g.node;if(i(x)||!g.parent||e.has(g.parent.key))return;if(i(g.parent.node)){e.add(C.key);return}var y=!0,T=!1;(C.children||[]).filter(function(A){return!i(A.node)}).forEach(function(A){var E=A.key,b=s.has(E);y&&!b&&(y=!1),!T&&(b||a.has(E))&&(T=!0)}),y||s.delete(C.key),T&&a.add(C.key),e.add(C.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(f(a,s))}}function r(p,d,c,o){var i=[],s;o?s=o:s=L;var a=new Set(p.filter(function(u){var l=!!c[u];return l||i.push(u),l})),n=new Map,t=0;Object.keys(c).forEach(function(u){var l=c[u],g=l.level,C=n.get(g);C||(C=new Set,n.set(g,C)),C.add(l),t=Math.max(t,g)}),Object(S.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var e;return d===!0?e=m(a,n,t,s):e=_(a,d.halfCheckedKeys,n,t,s),e}},OLES:function(Re,I,h){"use strict";var S=h("U8pU"),f=h("VTBJ"),L=h("Ff2n"),m=h("q1tI"),_=h("uciX"),r=h("7ixt"),p=function(a){var n=a.overlay,t=a.prefixCls,e=a.id,u=a.overlayInnerStyle;return m.createElement("div",{className:"".concat(t,"-inner"),id:e,role:"tooltip",style:u},typeof n=="function"?n():n)},d=p,c=function(a,n){var t=a.overlayClassName,e=a.trigger,u=e===void 0?["hover"]:e,l=a.mouseEnterDelay,g=l===void 0?0:l,C=a.mouseLeaveDelay,x=C===void 0?.1:C,y=a.overlayStyle,T=a.prefixCls,A=T===void 0?"rc-tooltip":T,E=a.children,b=a.onVisibleChange,v=a.afterVisibleChange,O=a.transitionName,D=a.animation,W=a.placement,Q=W===void 0?"right":W,j=a.align,Z=j===void 0?{}:j,Y=a.destroyTooltipOnHide,w=Y===void 0?!1:Y,P=a.defaultVisible,k=a.getTooltipContainer,K=a.overlayInnerStyle,M=Object(L.a)(a,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),H=Object(m.useRef)(null);Object(m.useImperativeHandle)(n,function(){return H.current});var ae=Object(f.a)({},M);"visible"in a&&(ae.popupVisible=a.visible);var ve=function(){var fe=a.arrowContent,ie=fe===void 0?null:fe,oe=a.overlay,U=a.id;return[m.createElement("div",{className:"".concat(A,"-arrow"),key:"arrow"},ie),m.createElement(d,{key:"content",prefixCls:A,id:U,overlay:oe,overlayInnerStyle:K})]},de=!1,be=!1;if(typeof w=="boolean")de=w;else if(w&&Object(S.a)(w)==="object"){var z=w.keepParent;de=z===!0,be=z===!1}return m.createElement(_.a,Object.assign({popupClassName:t,prefixCls:A,popup:ve,action:u,builtinPlacements:r.a,popupPlacement:Q,ref:H,popupAlign:Z,getPopupContainer:k,onPopupVisibleChange:b,afterPopupVisibleChange:v,popupTransitionName:O,popupAnimation:D,defaultPopupVisible:P,destroyPopupOnHide:de,autoDestroy:be,mouseLeaveDelay:x,popupStyle:y,mouseEnterDelay:g},ae),E)},o=Object(m.forwardRef)(c),i=I.a=o},OZM5:function(Re,I,h){"use strict";h.d(I,"b",function(){return o}),h.d(I,"a",function(){return i}),h.d(I,"k",function(){return s}),h.d(I,"h",function(){return a}),h.d(I,"i",function(){return n}),h.d(I,"g",function(){return t}),h.d(I,"c",function(){return e}),h.d(I,"d",function(){return u}),h.d(I,"j",function(){return C}),h.d(I,"e",function(){return x}),h.d(I,"f",function(){return y});var S=h("KQm4"),f=h("U8pU"),L=h("Ff2n"),m=h("q1tI"),_=h.n(m),r=h("Kwbf"),p=h("WaYH"),d=.25,c=2;function o(T,A){var E=T.slice(),b=E.indexOf(A);return b>=0&&E.splice(b,1),E}function i(T,A){var E=T.slice();return E.indexOf(A)===-1&&E.push(A),E}function s(T){return T.split("-")}function a(T,A){return"".concat(T,"-").concat(A)}function n(T){return T&&T.type&&T.type.isTreeNode}function t(T,A){var E=[T],b=A[T];function v(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(D){var W=D.key,Q=D.children;E.push(W),v(Q)})}return v(b.children),E}function e(T,A){var E=T.clientY,b=A.selectHandle.getBoundingClientRect(),v=b.top,O=b.bottom,D=b.height,W=Math.max(D*d,c);return E<=v+W?-1:E>=O-W?1:0}function u(T,A){if(!T)return;var E=A.multiple;return E?T.slice():T.length?[T[0]]:T}var l=function(A){return A};function g(T,A){if(!T)return[];var E=A||{},b=E.processProps,v=b===void 0?l:b,O=Array.isArray(T)?T:[T];return O.map(function(D){var W=D.children,Q=Object(L.a)(D,["children"]),j=g(W,A);return _.a.createElement(p.a,Object.assign({},v(Q)),j)})}function C(T){if(!T)return null;var A;if(Array.isArray(T))A={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(f.a)(T)==="object")A={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(r.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function x(T,A){var E=new Set;function b(v){if(E.has(v))return;var O=A[v];if(!O)return;E.add(v);var D=O.parent,W=O.node;if(W.disabled)return;D&&b(D.key)}return(T||[]).forEach(function(v){b(v)}),Object(S.a)(E)}function y(T){var A={};return Object.keys(T).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(A[E]=T[E])}),A}},Ohmc:function(Re,I,h){Re.exports=h.p+"static/certificate.fc32dc1b.jpg"},P2ho:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};I.default=S},P5Jw:function(Re,I,h){"use strict";var S=h("rHrb"),f=S.CopyToClipboard;f.CopyToClipboard=f,Re.exports=f},QV2g:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=S;function S(){for(var m,_=[],r=0;r<256;r++){m=r;for(var p=0;p<8;p++)m=m&1?3988292384^m>>>1:m>>>1;_[r]=m}return _}var f=S();function L(m,_,r,p){var d=f,c=p+r;m^=-1;for(var o=p;o>>8^d[(m^_[o])&255];return m^-1}},RMFE:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(Re,I,h){Re.exports=h("LSTS")},"SA+Z":function(Re,I,h){var S=h("wTVA"),f=h("EbDI"),L=h("ZhPi"),m=h("wkBT");function _(r){return S(r)||f(r)||L(r)||m()}Re.exports=_,Re.exports.__esModule=!0,Re.exports.default=Re.exports},SFBS:function(Re,I,h){},SMhR:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},SZEN:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.clientToElement=S;function S(f,L,m){var _=m.getBoundingClientRect(),r={x:0,y:0};return f<_.left?r.x=0:f>=_.right?r.x=_.width-1:r.x=f-_.left,L<_.top?r.y=0:L>=_.bottom?r.y=_.height-1:r.y=L-_.top,r}},SgaC:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;p0;){if(i.rQwait("RRE",4+8))return!1;var t=i.rQshiftBytes(4),e=i.rQshift16(),u=i.rQshift16(),l=i.rQshift16(),g=i.rQshift16();s.fillRect(p+e,d+u,l,g,t),this._subrects--}return!0}}]),_}();I.default=m},TGq3:function(Re,I,h){Re.exports=h.p+"static/lockclose.365036e8.svg"},VSMT:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.decodeUTF8=S,I.encodeUTF8=f;function S(L){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(L))}catch(_){if(_ instanceof URIError&&m)return L;throw _}}function f(L){return unescape(encodeURIComponent(L))}},W6BS:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(Re,I,h){"use strict";var S=h("rePB"),f=h("Ff2n"),L=h("VTBJ"),m=h("1OyB"),_=h("vuIU"),r=h("JX7q"),p=h("Ji7U"),d=h("LK+K"),c=h("q1tI"),o=h("TSYQ"),i=h.n(o),s=h("sboe"),a=h("OZM5"),n=function(A){var E=A.prefixCls,b=A.level,v=A.isStart,O=A.isEnd;if(!b)return null;for(var D="".concat(E,"-indent-unit"),W=[],Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1,ne=be.getAttribute("id")||be.getAttribute("data-reactid")||be.getAttribute("name");if(z&&Z[ne])return Z[ne];var fe=window.getComputedStyle(be),ie=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),U=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),ee=j.map(function(le){return"".concat(le,":").concat(fe.getPropertyValue(le))}).join(";"),J={sizingStyle:ee,paddingSize:oe,borderSize:U,boxSizing:ie};return z&&ne&&(Z[ne]=J),J}function P(be){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Y||(Y=document.createElement("textarea"),Y.setAttribute("tab-index","-1"),Y.setAttribute("aria-hidden","true"),document.body.appendChild(Y)),be.getAttribute("wrap")?Y.setAttribute("wrap",be.getAttribute("wrap")):Y.removeAttribute("wrap");var ie=w(be,z),oe=ie.paddingSize,U=ie.borderSize,ee=ie.boxSizing,J=ie.sizingStyle;Y.setAttribute("style","".concat(J,";").concat(Q)),Y.value=be.value||be.placeholder||"";var le=Number.MIN_SAFE_INTEGER,Pe=Number.MAX_SAFE_INTEGER,Qe=Y.scrollHeight,$e;if(ee==="border-box"?Qe+=U:ee==="content-box"&&(Qe-=oe),ne!==null||fe!==null){Y.value=" ";var et=Y.scrollHeight-oe;ne!==null&&(le=et*ne,ee==="border-box"&&(le=le+oe+U),Qe=Math.max(le,Qe)),fe!==null&&(Pe=et*fe,ee==="border-box"&&(Pe=Pe+oe+U),$e=Qe>Pe?"":"hidden",Qe=Math.min(Pe,Qe))}return{height:Qe,minHeight:le,maxHeight:Pe,overflowY:$e,resize:"none"}}var L=h("Gytx"),K=h.n(L),M;(function(be){be[be.NONE=0]="NONE",be[be.RESIZING=1]="RESIZING",be[be.RESIZED=2]="RESIZED"})(M||(M={}));var H=function(be){Object(m.a)(ne,be);var z=Object(_.a)(ne);function ne(fe){var ie;return Object(f.a)(this,ne),ie=z.call(this,fe),ie.nextFrameActionId=void 0,ie.resizeFrameId=void 0,ie.textArea=void 0,ie.saveTextArea=function(oe){ie.textArea=oe},ie.handleResize=function(oe){var U=ie.state.resizeStatus,ee=ie.props,J=ee.autoSize,le=ee.onResize;if(U!==M.NONE)return;typeof le=="function"&&le(oe),J&&ie.resizeOnNextFrame()},ie.resizeOnNextFrame=function(){cancelAnimationFrame(ie.nextFrameActionId),ie.nextFrameActionId=requestAnimationFrame(ie.resizeTextarea)},ie.resizeTextarea=function(){var oe=ie.props.autoSize;if(!oe||!ie.textArea)return;var U=oe.minRows,ee=oe.maxRows,J=P(ie.textArea,!1,U,ee);ie.setState({textareaStyles:J,resizeStatus:M.RESIZING},function(){cancelAnimationFrame(ie.resizeFrameId),ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:M.RESIZED},function(){ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:M.NONE}),ie.fixFirefoxAutoScroll()})})})})},ie.renderTextArea=function(){var oe=ie.props,U=oe.prefixCls,ee=U===void 0?"rc-textarea":U,J=oe.autoSize,le=oe.onResize,Pe=oe.className,Qe=oe.disabled,$e=ie.state,et=$e.textareaStyles,Ve=$e.resizeStatus,ke=Object(O.a)(ie.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Oe=W()(ee,Pe,Object(d.a)({},"".concat(ee,"-disabled"),Qe));"value"in ke&&(ke.value=ke.value||"");var Ce=Object(p.a)(Object(p.a)(Object(p.a)({},ie.props.style),et),Ve===M.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return r.createElement(v,{onResize:ie.handleResize,disabled:!(J||le)},r.createElement("textarea",Object(S.a)({},ke,{className:Oe,style:Ce,ref:ie.saveTextArea})))},ie.state={textareaStyles:{},resizeStatus:M.NONE},ie}return Object(k.a)(ne,[{key:"componentDidUpdate",value:function(ie){(ie.value!==this.props.value||!K()(ie.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ie=this.textArea.selectionStart,oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(ie,oe)}}catch(U){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ne}(r.Component),ae=H,ve=function(be){Object(m.a)(ne,be);var z=Object(_.a)(ne);function ne(fe){var ie;Object(f.a)(this,ne),ie=z.call(this,fe),ie.resizableTextArea=void 0,ie.focus=function(){ie.resizableTextArea.textArea.focus()},ie.saveTextArea=function(U){ie.resizableTextArea=U},ie.handleChange=function(U){var ee=ie.props.onChange;ie.setValue(U.target.value,function(){ie.resizableTextArea.resizeTextarea()}),ee&&ee(U)},ie.handleKeyDown=function(U){var ee=ie.props,J=ee.onPressEnter,le=ee.onKeyDown;U.keyCode===13&&J&&J(U),le&&le(U)};var oe=typeof fe.value=="undefined"||fe.value===null?fe.defaultValue:fe.value;return ie.state={value:oe},ie}return Object(k.a)(ne,[{key:"setValue",value:function(ie,oe){"value"in this.props||this.setState({value:ie},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return r.createElement(ae,Object(S.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ie){return"value"in ie?{value:ie.value}:null}}]),ne}(r.Component),de=I.default=ve},YJ9k:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;ps||e>i&&u=s&&l>=a?e-i-n:u>s&&la?u-s+t:0}var _=function(i,s){var a=window,n=s.scrollMode,t=s.block,e=s.inline,u=s.boundary,l=s.skipOverflowHiddenElements,g=typeof u=="function"?u:function(et){return et!==u};if(!S(i))throw new TypeError("Invalid target");for(var C=document.scrollingElement||document.documentElement,x=[],y=i;S(y)&&g(y);){if((y=y.parentElement)===C){x.push(y);break}y!=null&&y===document.body&&k(y)&&!k(document.documentElement)||y!=null&&k(y,l)&&x.push(y)}for(var T=a.visualViewport?a.visualViewport.width:innerWidth,A=a.visualViewport?a.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,v=i.getBoundingClientRect(),O=v.height,D=v.width,W=v.top,Q=v.right,j=v.bottom,Z=v.left,Y=t==="start"||t==="nearest"?W:t==="end"?j:W+O/2,w=e==="center"?Z+D/2:e==="end"?Q:Z,P=[],L=0;L=0&&Z>=0&&j<=A&&Q<=T&&W>=ve&&j<=be&&Z>=z&&Q<=de)return P;var ne=getComputedStyle(K),fe=parseInt(ne.borderLeftWidth,10),ie=parseInt(ne.borderTopWidth,10),oe=parseInt(ne.borderRightWidth,10),U=parseInt(ne.borderBottomWidth,10),ee=0,J=0,le="offsetWidth"in K?K.offsetWidth-K.clientWidth-fe-oe:0,Pe="offsetHeight"in K?K.offsetHeight-K.clientHeight-ie-U:0;if(C===K)ee=t==="start"?Y:t==="end"?Y-A:t==="nearest"?m(b,b+A,A,ie,U,b+Y,b+Y+O,O):Y-A/2,J=e==="start"?w:e==="center"?w-T/2:e==="end"?w-T:m(E,E+T,T,fe,oe,E+w,E+w+D,D),ee=Math.max(0,ee+b),J=Math.max(0,J+E);else{ee=t==="start"?Y-ve-ie:t==="end"?Y-be+U+Pe:t==="nearest"?m(ve,be,H,ie,U+Pe,Y,Y+O,O):Y-(ve+H/2)+Pe/2,J=e==="start"?w-z-fe:e==="center"?w-(z+ae/2)+le/2:e==="end"?w-de+oe+le:m(z,de,ae,fe,oe+le,w,w+D,D);var Qe=K.scrollLeft,$e=K.scrollTop;Y+=$e-(ee=Math.max(0,Math.min($e+ee,K.scrollHeight-H+Pe))),w+=Qe-(J=Math.max(0,Math.min(Qe+J,K.scrollWidth-ae+le)))}P.push({el:K,top:ee,left:J})}return P};function r(i){return i===Object(i)&&Object.keys(i).length!==0}function p(i,s){s===void 0&&(s="auto");var a="scrollBehavior"in document.body.style;i.forEach(function(n){var t=n.el,e=n.top,u=n.left;t.scroll&&a?t.scroll({top:e,left:u,behavior:s}):(t.scrollTop=e,t.scrollLeft=u)})}function d(i){return i===!1?{block:"end",inline:"nearest"}:r(i)?i:{block:"start",inline:"nearest"}}function c(i,s){var a=!i.ownerDocument.documentElement.contains(i);if(r(s)&&typeof s.behavior=="function")return s.behavior(a?[]:_(i,s));if(a)return;var n=d(s);return p(_(i,n),n.behavior)}var o=I.a=c},Zss7:function(Re,I,h){var S;(function(f){var k=/^\s+/,m=/\s+$/,_=0,r=f.round,p=f.min,d=f.max,c=f.random;function o(U,ee){if(U=U||"",ee=ee||{},U instanceof o)return U;if(!(this instanceof o))return new o(U,ee);var J=i(U);this._originalInput=U,this._r=J.r,this._g=J.g,this._b=J.b,this._a=J.a,this._roundA=r(100*this._a)/100,this._format=ee.format||J.format,this._gradientType=ee.gradientType,this._r<1&&(this._r=r(this._r)),this._g<1&&(this._g=r(this._g)),this._b<1&&(this._b=r(this._b)),this._ok=J.ok,this._tc_id=_++}o.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 U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),ee,J,le,Pe,Qe,$e;return ee=U.r/255,J=U.g/255,le=U.b/255,ee<=.03928?Pe=ee/12.92:Pe=f.pow((ee+.055)/1.055,2.4),J<=.03928?Qe=J/12.92:Qe=f.pow((J+.055)/1.055,2.4),le<=.03928?$e=le/12.92:$e=f.pow((le+.055)/1.055,2.4),.2126*Pe+.7152*Qe+.0722*$e},setAlpha:function(U){return this._a=P(U),this._roundA=r(100*this._a)/100,this},toHsv:function(){var U=t(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=t(this._r,this._g,this._b),ee=r(U.h*360),J=r(U.s*100),le=r(U.v*100);return this._a==1?"hsv("+ee+", "+J+"%, "+le+"%)":"hsva("+ee+", "+J+"%, "+le+"%, "+this._roundA+")"},toHsl:function(){var U=a(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=a(this._r,this._g,this._b),ee=r(U.h*360),J=r(U.s*100),le=r(U.l*100);return this._a==1?"hsl("+ee+", "+J+"%, "+le+"%)":"hsla("+ee+", "+J+"%, "+le+"%, "+this._roundA+")"},toHex:function(U){return u(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return l(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:r(this._r),g:r(this._g),b:r(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+r(this._r)+", "+r(this._g)+", "+r(this._b)+")":"rgba("+r(this._r)+", "+r(this._g)+", "+r(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:r(L(this._r,255)*100)+"%",g:r(L(this._g,255)*100)+"%",b:r(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+r(L(this._r,255)*100)+"%, "+r(L(this._g,255)*100)+"%, "+r(L(this._b,255)*100)+"%)":"rgba("+r(L(this._r,255)*100)+"%, "+r(L(this._g,255)*100)+"%, "+r(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Y[u(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var ee="#"+g(this._r,this._g,this._b,this._a),J=ee,le=this._gradientType?"GradientType = 1, ":"";if(U){var Pe=o(U);J="#"+g(Pe._r,Pe._g,Pe._b,Pe._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+ee+",endColorstr="+J+")"},toString:function(U){var ee=!!U;U=U||this._format;var J=!1,le=this._a<1&&this._a>=0,Pe=!ee&&le&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return Pe?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&(J=this.toRgbString()),U==="prgb"&&(J=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&(J=this.toHexString()),U==="hex3"&&(J=this.toHexString(!0)),U==="hex4"&&(J=this.toHex8String(!0)),U==="hex8"&&(J=this.toHex8String()),U==="name"&&(J=this.toName()),U==="hsl"&&(J=this.toHslString()),U==="hsv"&&(J=this.toHsvString()),J||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(U,ee){var J=U.apply(null,[this].concat([].slice.call(ee)));return this._r=J._r,this._g=J._g,this._b=J._b,this.setAlpha(J._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(U,ee){return U.apply(null,[this].concat([].slice.call(ee)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},o.fromRatio=function(U,ee){if(typeof U=="object"){var J={};for(var le in U)U.hasOwnProperty(le)&&(le==="a"?J[le]=U[le]:J[le]=de(U[le]));U=J}return o(U,ee)};function i(U){var ee={r:0,g:0,b:0},J=1,le=null,Pe=null,Qe=null,$e=!1,et=!1;return typeof U=="string"&&(U=ie(U)),typeof U=="object"&&(fe(U.r)&&fe(U.g)&&fe(U.b)?(ee=s(U.r,U.g,U.b),$e=!0,et=String(U.r).substr(-1)==="%"?"prgb":"rgb"):fe(U.h)&&fe(U.s)&&fe(U.v)?(le=de(U.s),Pe=de(U.v),ee=e(U.h,le,Pe),$e=!0,et="hsv"):fe(U.h)&&fe(U.s)&&fe(U.l)&&(le=de(U.s),Qe=de(U.l),ee=n(U.h,le,Qe),$e=!0,et="hsl"),U.hasOwnProperty("a")&&(J=U.a)),J=P(J),{ok:$e,format:U.format||et,r:p(255,d(ee.r,0)),g:p(255,d(ee.g,0)),b:p(255,d(ee.b,0)),a:J}}function s(U,ee,J){return{r:L(U,255)*255,g:L(ee,255)*255,b:L(J,255)*255}}function a(U,ee,J){U=L(U,255),ee=L(ee,255),J=L(J,255);var le=d(U,ee,J),Pe=p(U,ee,J),Qe,$e,et=(le+Pe)/2;if(le==Pe)Qe=$e=0;else{var Ve=le-Pe;$e=et>.5?Ve/(2-le-Pe):Ve/(le+Pe);switch(le){case U:Qe=(ee-J)/Ve+(ee1&&(Ce-=1),Ce<1/6?ke+(Oe-ke)*6*Ce:Ce<1/2?Oe:Ce<2/3?ke+(Oe-ke)*(2/3-Ce)*6:ke}if(ee===0)le=Pe=Qe=J;else{var et=J<.5?J*(1+ee):J+ee-J*ee,Ve=2*J-et;le=$e(Ve,et,U+1/3),Pe=$e(Ve,et,U),Qe=$e(Ve,et,U-1/3)}return{r:le*255,g:Pe*255,b:Qe*255}}function t(U,ee,J){U=L(U,255),ee=L(ee,255),J=L(J,255);var le=d(U,ee,J),Pe=p(U,ee,J),Qe,$e,et=le,Ve=le-Pe;if($e=le===0?0:Ve/le,le==Pe)Qe=0;else{switch(le){case U:Qe=(ee-J)/Ve+(ee>1)+720)%360;--ee;)le.h=(le.h+Pe)%360,Qe.push(o(le));return Qe}function j(U,ee){ee=ee||6;for(var J=o(U).toHsv(),le=J.h,Pe=J.s,Qe=J.v,$e=[],et=1/ee;ee--;)$e.push(o({h:le,s:Pe,v:Qe})),Qe=(Qe+et)%1;return $e}o.mix=function(U,ee,J){J=J===0?0:J||50;var le=o(U).toRgb(),Pe=o(ee).toRgb(),Qe=J/100,$e={r:(Pe.r-le.r)*Qe+le.r,g:(Pe.g-le.g)*Qe+le.g,b:(Pe.b-le.b)*Qe+le.b,a:(Pe.a-le.a)*Qe+le.a};return o($e)},o.readability=function(U,ee){var J=o(U),le=o(ee);return(f.max(J.getLuminance(),le.getLuminance())+.05)/(f.min(J.getLuminance(),le.getLuminance())+.05)},o.isReadable=function(U,ee,J){var le=o.readability(U,ee),Pe,Qe;Qe=!1,Pe=oe(J);switch(Pe.level+Pe.size){case"AAsmall":case"AAAlarge":Qe=le>=4.5;break;case"AAlarge":Qe=le>=3;break;case"AAAsmall":Qe=le>=7;break}return Qe},o.mostReadable=function(U,ee,J){var le=null,Pe=0,Qe,$e,et,Ve;J=J||{},$e=J.includeFallbackColors,et=J.level,Ve=J.size;for(var ke=0;kePe&&(Pe=Qe,le=o(ee[ke]));return o.isReadable(U,le,{level:et,size:Ve})||!$e?le:(J.includeFallbackColors=!1,o.mostReadable(U,["#fff","#000"],J))};var Z=o.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"},Y=o.hexNames=w(Z);function w(U){var ee={};for(var J in U)U.hasOwnProperty(J)&&(ee[U[J]]=J);return ee}function P(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function L(U,ee){H(U)&&(U="100%");var J=ae(U);return U=p(ee,d(0,parseFloat(U))),J&&(U=parseInt(U*ee,10)/100),f.abs(U-ee)<1e-6?1:U%ee/parseFloat(ee)}function K(U){return p(1,d(0,U))}function M(U){return parseInt(U,16)}function H(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function ae(U){return typeof U=="string"&&U.indexOf("%")!=-1}function ve(U){return U.length==1?"0"+U:""+U}function de(U){return U<=1&&(U=U*100+"%"),U}function be(U){return f.round(parseFloat(U)*255).toString(16)}function z(U){return M(U)/255}var ne=function(){var U="[-\\+]?\\d+%?",ee="[-\\+]?\\d*\\.\\d+%?",J="(?:"+ee+")|(?:"+U+")",le="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",Pe="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?";return{CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+Pe),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+Pe),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+Pe),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 fe(U){return!!ne.CSS_UNIT.exec(U)}function ie(U){U=U.replace(k,"").replace(m,"").toLowerCase();var ee=!1;if(Z[U])U=Z[U],ee=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var J;return(J=ne.rgb.exec(U))?{r:J[1],g:J[2],b:J[3]}:(J=ne.rgba.exec(U))?{r:J[1],g:J[2],b:J[3],a:J[4]}:(J=ne.hsl.exec(U))?{h:J[1],s:J[2],l:J[3]}:(J=ne.hsla.exec(U))?{h:J[1],s:J[2],l:J[3],a:J[4]}:(J=ne.hsv.exec(U))?{h:J[1],s:J[2],v:J[3]}:(J=ne.hsva.exec(U))?{h:J[1],s:J[2],v:J[3],a:J[4]}:(J=ne.hex8.exec(U))?{r:M(J[1]),g:M(J[2]),b:M(J[3]),a:z(J[4]),format:ee?"name":"hex8"}:(J=ne.hex6.exec(U))?{r:M(J[1]),g:M(J[2]),b:M(J[3]),format:ee?"name":"hex"}:(J=ne.hex4.exec(U))?{r:M(J[1]+""+J[1]),g:M(J[2]+""+J[2]),b:M(J[3]+""+J[3]),a:z(J[4]+""+J[4]),format:ee?"name":"hex8"}:(J=ne.hex3.exec(U))?{r:M(J[1]+""+J[1]),g:M(J[2]+""+J[2]),b:M(J[3]+""+J[3]),format:ee?"name":"hex"}:!1}function oe(U){var ee,J;return U=U||{level:"AA",size:"small"},ee=(U.level||"AA").toUpperCase(),J=(U.size||"small").toLowerCase(),ee!=="AA"&&ee!=="AAA"&&(ee="AA"),J!=="small"&&J!=="large"&&(J="small"),{level:ee,size:J}}Re.exports?Re.exports=o:!(S=function(){return o}.call(I,h,I,Re),S!==void 0&&(Re.exports=S))})(Math)},bL63:function(Re,I,h){Re.exports={bg:"bg___1pgJK",wrap:"wrap___3w7gA",modal:"modal___Z863a",content:"content_____WML",head:"head___74qy3",headCount:"headCount___DydFZ",button:"button___FkPST",itemWrap:"itemWrap___2VFfI",imgWrap:"imgWrap___3YSCX",img:"img___31A6T",manager:"manager___7OBds",itemContent:"itemContent___NJ5LZ",nameWrap:"nameWrap___1nFjv",name:"name___1KHZI",actionGroup:"actionGroup___2FPTE",deleteIcon:"deleteIcon___OtxKH",schoolWrap:"schoolWrap___3vfoh",school:"school___2QmIS",countWrap:"countWrap___22ogC",deletetitle:"deletetitle___3lzPN",yseTitle:"yseTitle___3xmOc"}},bPs0:function(Re,I,h){"use strict";h.d(I,"b",function(){return C});var S=h("k1fw"),f=h("9og8"),k=h("2qtc"),m=h("kLXV"),_=h("tJVT"),r=h("PpiC"),p=h("aHsQ"),d=h("sGsY"),c=h("WmNS"),o=h.n(c),i=h("q1tI"),s=h.n(i),a=h("bntm"),n=h("V0Rq"),t=h("wd/R"),e=h.n(t),u=h("Ty5D"),l=h("9kvl"),g=d.a.Countdown,C=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],x=function(T){var A=T.globalSetting,E=T.loading,b=T.user,v=T.exercise,O=T.dispatch,D=Object(r.a)(T,["globalSetting","loading","user","exercise","dispatch"]),W=Object(i.useState)({}),Q=Object(_.a)(W,2),j=Q[0],Z=Q[1],Y=m.a.useModal(),w=Object(_.a)(Y,2),P=w[0],L=w[1],K=Object(i.useRef)(),M=Object(i.useRef)(null),H=Object(i.useRef)(null),ae=Object(i.useState)(!0),ve=Object(_.a)(ae,2),de=ve[0],be=ve[1],z=Object(u.h)().query,ne=Object(u.i)();Object(i.useEffect)(function(){var et,Ve,ke,Oe,Ce;if(clearTimeout(M.current),document.addEventListener(Object(a.c)(),$e,!1),window.addEventListener("blur",Pe,!1),(et=v.exerciseUserInfo)!==null&&et!==void 0&&et.screen_open&&Object(a.a)()&&(O({type:"globalSetting/headerFooterToggle",payload:!1}),be(!1)),(Ve=v.exerciseUserInfo)!==null&&Ve!==void 0&&Ve.screen_at&&e()().diff(e()((ke=v.exerciseUserInfo)===null||ke===void 0?void 0:ke.screen_at),"seconds")>0)fe();else if((Oe=v.exerciseUserInfo)!==null&&Oe!==void 0&&Oe.screen_open&&!Object(a.a)()){var ue=document.domain==="kepukehuan.educoder.net"?30:v.exerciseUserInfo.screen_sec+10+1;K.current=m.a.info({icon:null,content:s.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",s.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",v.exerciseUserInfo.screen_num-v.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",s.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:s.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",s.a.createElement("span",{style:{display:"inline-block"}},s.a.createElement(g,{onFinish:function(){var te;fe(),(te=K.current)===null||te===void 0||te.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+ue*1e3})),"S\uFF09"),onOk:function(){var te;(te=K.current)===null||te===void 0||te.destroy(),be(!1),Object(a.d)(document.body),document.getElementById("root").addEventListener("click",ie,!1)}})}return(Ce=v.exerciseUserInfo)!==null&&Ce!==void 0&&Ce.screen_open&&!Object(a.a)()||document.getElementById("root").addEventListener("click",ie,!1),function(){document.getElementById("root").removeEventListener("click",ie,!1),document.removeEventListener(Object(a.c)(),$e,!1),window.removeEventListener("blur",Pe,!1),clearTimeout(M.current)}},[]),Object(i.useEffect)(function(){setTimeout(function(){v.actionTabs.removeEventListenerExitScreen&&(clearTimeout(M.current),document.getElementById("root").removeEventListener("click",ie,!1),document.removeEventListener(Object(a.c)(),$e,!1))},500),oe()},[v.actionTabs]),Object(i.useEffect)(function(){setTimeout(function(){v.exerciseUserInfo.used_screen_num>v.exerciseUserInfo.screen_num?J():!de},500)},[v.exerciseUserInfo]);var fe=function(){var et=Object(f.a)(o.a.mark(function Ve(){var ke;return o.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Qe();case 2:ke=Ce.sent,setTimeout(function(){var ue,N;(ue=K.current)===null||ue===void 0||ue.destroy(),K.current=m.a.info({okText:s.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:s.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",s.a.createElement("span",{className:"c-red"},ke.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",s.a.createElement("span",{className:"c-red"},(N=v.exerciseUserInfo)===null||N===void 0?void 0:N.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var te=Object(f.a)(o.a.mark(function Ae(){return o.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:Object(a.d)(document.body);case 1:case"end":return he.stop()}},Ae)}));function F(){return te.apply(this,arguments)}return F}()})},1e3);case 4:case"end":return Ce.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),ie=function(Ve){!Object(a.a)()&&Ve.target.nodeName!=="A"&&Ve.target.nodeName!=="BUTTON"&&Ve.target.innerHTML!=="\u786E \u5B9A"&&(Object(a.d)(document.body),console.log("documentClick.full"))},oe=function(){var et=Object(f.a)(o.a.mark(function Ve(){return o.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",new Promise(function(){var Ce=Object(f.a)(o.a.mark(function ue(N){var te;return o.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,O({type:"exercise/getExerciseUserInfo",payload:Object(S.a)({},ne)});case 2:return te=Ae.sent,N(te==null?void 0:te.data),Ae.abrupt("return",te==null?void 0:te.data);case 5:case"end":return Ae.stop()}},ue)}));return function(ue){return Ce.apply(this,arguments)}}()));case 1:case"end":return Oe.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),U=function(){var et=Object(f.a)(o.a.mark(function Ve(ke){var Oe,Ce,ue;return o.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:(Oe=K.current)===null||Oe===void 0||((Ce=Oe.destroyAll)===null||Ce===void 0)||Ce.call(Oe),K.current=m.a.info({maskClosable:!1,keyboard:!1,okText:s.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",s.a.createElement("span",{style:{display:"inline-block"}},s.a.createElement(g,{onFinish:Qe,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(v.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:s.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",s.a.createElement("span",{className:"c-red"},ke),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",s.a.createElement("span",{className:"c-red"},(ue=v.exerciseUserInfo)===null||ue===void 0?void 0:ue.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",s.a.createElement("span",{className:"c-red"},v.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",s.a.createElement("br",null),s.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var F=Object(f.a)(o.a.mark(function tt(){return o.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:clearTimeout(H.current),Object(a.d)(document.body),K.current.destroy();case 3:case"end":return We.stop()}},tt)}));function Ae(){return F.apply(this,arguments)}return Ae}()}),H.current=setTimeout(function(){var F;K.current.update({okText:s.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:s.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",s.a.createElement("span",{className:"c-red"},ke+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",s.a.createElement("span",{className:"c-red"},(F=v.exerciseUserInfo)===null||F===void 0?void 0:F.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(v.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return te.stop()}},Ve)}));return function(ke){return et.apply(this,arguments)}}(),ee=function(){location.href="/classrooms/".concat(ne.coursesId,"/exercise/").concat(ne.categoryId,"/detail")},J=function(){var et=Object(f.a)(o.a.mark(function Ve(){var ke,Oe,Ce;return o.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return(ke=K.current)===null||ke===void 0||((Oe=ke.destroyAll)===null||Oe===void 0)||Oe.call(ke),N.next=3,Object(n.Z)({categoryId:ne.categoryId,commit_method:1});case 3:Ce=N.sent,Ce&&le();case 5:case"end":return N.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),le=function(){var Ve,ke;document.removeEventListener(Object(a.c)(),$e,!1),Object(a.b)(),(Ve=K.current)===null||Ve===void 0||((ke=Ve.destroyAll)===null||ke===void 0)||ke.call(Ve),P.info({content:s.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",s.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){ee()}})},Pe=function(Ve){Object(a.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(a.b)()},Qe=function(){var et=Object(f.a)(o.a.mark(function Ve(){return o.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",new Promise(function(){var Ce=Object(f.a)(o.a.mark(function ue(N){var te,F,Ae;return o.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(!((te=v.exerciseUserInfo)!==null&&te!==void 0&&te.screen_at)){he.next=3;break}return he.next=3,Object(n.g)(Object(S.a)(Object(S.a)({},ne),{},{reset:!0}));case 3:return he.next=5,Object(n.Q)({id:ne.categoryId});case 5:if(F=he.sent,!(F!=null&&F.is_commit)){he.next=9;break}return le(),he.abrupt("return");case 9:return he.next=11,oe();case 11:Ae=he.sent,N(Ae);case 13:case"end":return he.stop()}},ue)}));return function(ue){return Ce.apply(this,arguments)}}()));case 1:case"end":return Oe.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),$e=function(){var et=Object(f.a)(o.a.mark(function Ve(){var ke,Oe,Ce,ue;return o.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(ke=!1,console.log("fullscreen change"),!Object(a.a)()){te.next=7;break}(Oe=v.exerciseUserInfo)!==null&&Oe!==void 0&&Oe.screen_at&&Object(n.g)(Object(S.a)(Object(S.a)({},ne),{},{reset:!0})),clearTimeout(M.current),te.next=17;break;case 7:return ke=!0,te.next=10,Object(n.g)(Object(S.a)({},ne));case 10:return te.next=12,oe();case 12:Ce=te.sent,U(Ce.used_screen_num),ue=setTimeout(Object(f.a)(o.a.mark(function F(){return o.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:case"end":return tt.stop()}},F)})),v.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),M.current=ue;case 17:O({type:"globalSetting/headerFooterToggle",payload:ke});case 18:case"end":return te.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}();return s.a.createElement("div",null,L)};I.a=Object(l.a)(function(y){var T=y.loading,A=y.user,E=y.exercise,b=y.globalSetting;return{globalSetting:b,user:A,exercise:E,loading:T.effects}})(x)},bT9E:function(Re,I,h){"use strict";h.d(I,"a",function(){return f});var S=h("VTBJ");function f(k,m){var _=Object(S.a)({},k);return Array.isArray(m)&&m.forEach(function(r){delete _[r]}),_}},bUJZ:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},biw7:function(Re,I,h){"use strict";var S=h("q1tI"),f=h.n(S),k=S.createContext(null);I.a=k},c5fP:function(Re,I,h){"use strict";function S(V){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(xe){return typeof xe}:S=function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe},S(V)}Object.defineProperty(I,"__esModule",{value:!0}),I._tr_init=Ae,I._tr_stored_block=tt,I._tr_flush_block=We,I._tr_tally=rt,I._tr_align=he;var f=m(h("6BzB"));function k(){if(typeof WeakMap!="function")return null;var V=new WeakMap;return k=function(){return V},V}function m(V){if(V&&V.__esModule)return V;if(V===null||S(V)!=="object"&&typeof V!="function")return{default:V};var Be=k();if(Be&&Be.has(V))return Be.get(V);var xe={},Le=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var De in V)if(Object.prototype.hasOwnProperty.call(V,De)){var Ne=Le?Object.getOwnPropertyDescriptor(V,De):null;Ne&&(Ne.get||Ne.set)?Object.defineProperty(xe,De,Ne):xe[De]=V[De]}return xe.default=V,Be&&Be.set(V,xe),xe}var _=4,r=0,p=1,d=2;function c(V){for(var Be=V.length;--Be>=0;)V[Be]=0}var o=0,i=1,s=2,a=3,n=258,t=29,e=256,u=e+1+t,l=30,g=19,C=2*u+1,x=15,y=16,T=7,A=256,E=16,b=17,v=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=512,Z=new Array((u+2)*2);c(Z);var Y=new Array(l*2);c(Y);var w=new Array(j);c(w);var P=new Array(n-a+1);c(P);var L=new Array(t);c(L);var K=new Array(l);c(K);function M(V,Be,xe,Le,De){this.static_tree=V,this.extra_bits=Be,this.extra_base=xe,this.elems=Le,this.max_length=De,this.has_stree=V&&V.length}var H,ae,ve;function de(V,Be){this.dyn_tree=V,this.max_code=0,this.stat_desc=Be}function be(V){return V<256?w[V]:w[256+(V>>>7)]}function z(V,Be){V.pending_buf[V.pending++]=Be&255,V.pending_buf[V.pending++]=Be>>>8&255}function ne(V,Be,xe){V.bi_valid>y-xe?(V.bi_buf|=Be<>y-V.bi_valid,V.bi_valid+=xe-y):(V.bi_buf|=Be<>>=1,xe<<=1;while(--Be>0);return xe>>>1}function oe(V){V.bi_valid===16?(z(V,V.bi_buf),V.bi_buf=0,V.bi_valid=0):V.bi_valid>=8&&(V.pending_buf[V.pending++]=V.bi_buf&255,V.bi_buf>>=8,V.bi_valid-=8)}function U(V,Be){var xe=Be.dyn_tree,Le=Be.max_code,De=Be.stat_desc.static_tree,Ne=Be.stat_desc.has_stree,se=Be.stat_desc.extra_bits,we=Be.stat_desc.extra_base,B=Be.stat_desc.max_length,He,at,R,Me,Ue,q,ye=0;for(Me=0;Me<=x;Me++)V.bl_count[Me]=0;for(xe[V.heap[V.heap_max]*2+1]=0,He=V.heap_max+1;HeB&&(Me=B,ye++),xe[at*2+1]=Me,at>Le)continue;V.bl_count[Me]++,Ue=0,at>=we&&(Ue=se[at-we]),q=xe[at*2],V.opt_len+=q*(Me+Ue),Ne&&(V.static_len+=q*(De[at*2+1]+Ue))}if(ye===0)return;do{for(Me=B-1;V.bl_count[Me]===0;)Me--;V.bl_count[Me]--,V.bl_count[Me+1]+=2,V.bl_count[B]--,ye-=2}while(ye>0);for(Me=B;Me!==0;Me--)for(at=V.bl_count[Me];at!==0;){if(R=V.heap[--He],R>Le)continue;xe[R*2+1]!==Me&&(V.opt_len+=(Me-xe[R*2+1])*xe[R*2],xe[R*2+1]=Me),at--}}function ee(V,Be,xe){var Le=new Array(x+1),De=0,Ne,se;for(Ne=1;Ne<=x;Ne++)Le[Ne]=De=De+xe[Ne-1]<<1;for(se=0;se<=Be;se++){var we=V[se*2+1];if(we===0)continue;V[se*2]=ie(Le[we]++,we)}}function J(){var V,Be,xe,Le,De,Ne=new Array(x+1);for(xe=0,Le=0;Le>=7;Le8?z(V,V.bi_buf):V.bi_valid>0&&(V.pending_buf[V.pending++]=V.bi_buf),V.bi_buf=0,V.bi_valid=0}function Qe(V,Be,xe,Le){Pe(V),Le&&(z(V,xe),z(V,~xe)),f.arraySet(V.pending_buf,V.window,Be,xe,V.pending),V.pending+=xe}function $e(V,Be,xe,Le){var De=Be*2,Ne=xe*2;return V[De]>1;se>=1;se--)et(V,xe,se);He=Ne;do se=V.heap[1],V.heap[1]=V.heap[V.heap_len--],et(V,xe,1),we=V.heap[1],V.heap[--V.heap_max]=se,V.heap[--V.heap_max]=we,xe[He*2]=xe[se*2]+xe[we*2],V.depth[He]=(V.depth[se]>=V.depth[we]?V.depth[se]:V.depth[we])+1,xe[se*2+1]=xe[we*2+1]=He,V.heap[1]=He++,et(V,xe,1);while(V.heap_len>=2);V.heap[--V.heap_max]=V.heap[1],U(V,Be),ee(xe,B,V.bl_count)}function Oe(V,Be,xe){var Le,De=-1,Ne,se=Be[0*2+1],we=0,B=7,He=4;for(se===0&&(B=138,He=3),Be[(xe+1)*2+1]=65535,Le=0;Le<=xe;Le++){if(Ne=se,se=Be[(Le+1)*2+1],++we=3&&!(V.bl_tree[Q[Be]*2+1]!==0);Be--);return V.opt_len+=3*(Be+1)+5+5+4,Be}function N(V,Be,xe,Le){var De;for(ne(V,Be-257,5),ne(V,xe-1,5),ne(V,Le-4,4),De=0;De>>=1)if(Be&1&&V.dyn_ltree[xe*2]!==0)return r;if(V.dyn_ltree[9*2]!==0||V.dyn_ltree[10*2]!==0||V.dyn_ltree[13*2]!==0)return p;for(xe=32;xe0?(V.strm.data_type===d&&(V.strm.data_type=te(V)),ke(V,V.l_desc),ke(V,V.d_desc),se=ue(V),De=V.opt_len+3+7>>>3,Ne=V.static_len+3+7>>>3,Ne<=De&&(De=Ne)):De=Ne=xe+5,xe+4<=De&&Be!==-1?tt(V,Be,xe,Le):V.strategy===_||Ne===De?(ne(V,(i<<1)+(Le?1:0),3),Ve(V,Z,Y)):(ne(V,(s<<1)+(Le?1:0),3),N(V,V.l_desc.max_code+1,V.d_desc.max_code+1,se+1),Ve(V,V.dyn_ltree,V.dyn_dtree)),le(V),Le&&Pe(V)}function rt(V,Be,xe){return V.pending_buf[V.d_buf+V.last_lit*2]=Be>>>8&255,V.pending_buf[V.d_buf+V.last_lit*2+1]=Be&255,V.pending_buf[V.l_buf+V.last_lit]=xe&255,V.last_lit++,Be===0?V.dyn_ltree[xe*2]++:(V.matches++,Be--,V.dyn_ltree[(P[xe]+e+1)*2]++,V.dyn_dtree[be(Be)*2]++),V.last_lit===V.lit_bufsize-1}},cRFk:function(Re,I,h){Re.exports=h.p+"static/RepositoryNoneData.828085a8.png"},cU5J:function(Re,I,h){Re.exports={title:"title___3fOal",content:"content___3uANE",add:"add___1spp2",colorBlue:"colorBlue___hain-",radio:"radio___3M5zN"}},csWT:function(Re,I,h){Re.exports=h.p+"static/choose.4ad1045f.svg"},djh8:function(Re,I,h){Re.exports=h.p+"static/qrCode.42927872.png"},dmUQ:function(Re,I,h){"use strict";var S=h("Ff2n"),f=h("rePB"),k=h("1OyB"),m=h("vuIU"),_=h("Ji7U"),r=h("md7G"),p=h("foSv"),d=h("q1tI"),c=h.n(d),o=h("TSYQ"),i=h.n(o),s=h("4IlW");function a(O,D){var W=Object.keys(O);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(O);D&&(Q=Q.filter(function(j){return Object.getOwnPropertyDescriptor(O,j).enumerable})),W.push.apply(W,Q)}return W}function n(O){for(var D=1;D1?ae-1:0),de=1;de1?L-1:0),M=1;M=0)return parseInt(P.slice(P.indexOf("e-")+2),10);var L=0;return P.indexOf(".")>=0&&(L=P.length-P.indexOf(".")-1),L},j.getInputDisplayValue=function(w){var P=w||j.state,L=P.focused,K=P.inputValue,M=P.value,H;L?H=K:H=j.toPrecisionAsStep(M),H==null&&(H="");var ae=j.formatWrapper(H);return T(j.props.decimalSeparator)&&(ae=ae.toString().replace(".",j.props.decimalSeparator)),ae},j.recordCursorPosition=function(){try{j.cursorStart=j.input.selectionStart,j.cursorEnd=j.input.selectionEnd,j.currentValue=j.input.value,j.cursorBefore=j.input.value.substring(0,j.cursorStart),j.cursorAfter=j.input.value.substring(j.cursorEnd)}catch(w){}},j.restoreByAfter=function(w){if(w===void 0)return!1;var P=j.input.value,L=P.lastIndexOf(w);if(L===-1)return!1;var K=j.cursorBefore.length;return j.lastKeyCode===s.a.DELETE&&j.cursorBefore.charAt(K-1)===w[0]?(j.fixCaret(K,K),!0):L+w.length===P.length?(j.fixCaret(L,L),!0):!1},j.partRestoreByAfter=function(w){return w===void 0?!1:Array.prototype.some.call(w,function(P,L){var K=w.substring(L);return j.restoreByAfter(K)})},j.isNotCompleteNumber=function(w){return isNaN(w)||w===""||w===null||w&&w.toString().indexOf(".")===w.toString().length-1},j.stop=function(){j.autoStepTimer&&clearTimeout(j.autoStepTimer)},j.down=function(w,P,L){j.pressingUpOrDown=!0,j.step("down",w,P,L)},j.up=function(w,P,L){j.pressingUpOrDown=!0,j.step("up",w,P,L)},j.saveInput=function(w){j.input=w};var Z=Q.value;Z===void 0&&(Z=Q.defaultValue),j.state={focused:Q.autoFocus};var Y=j.getValidValue(j.toNumber(Z));return j.state=n(n({},j.state),{},{inputValue:j.toPrecisionAsStep(Y),value:Y}),j}return Object(m.a)(W,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(j){var Z=this.props,Y=Z.value,w=Z.onChange,P=Z.max,L=Z.min,K=this.state.focused;if(j){if(!A(j.value,Y)||!A(j.max,P)||!A(j.min,L)){var M=K?Y:this.getValidValue(Y),H;this.pressingUpOrDown?H=M:this.inputting?H=this.rawInput:H=this.toPrecisionAsStep(M),this.setState({value:M,inputValue:H})}var ae="value"in this.props?Y:this.state.value;"max"in this.props&&j.max!==P&&typeof ae=="number"&&ae>P&&w&&w(P),"min"in this.props&&j.min!==L&&typeof ae=="number"&&ae1&&arguments[1]!==void 0?arguments[1]:this.props.min,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,w=parseFloat(j);return isNaN(w)?j:(wY&&(w=Y),w)}},{key:"setValue",value:function(j,Z){var Y=this.props.precision,w=this.isNotCompleteNumber(parseFloat(j))?null:parseFloat(j),P=this.state.value,L=P===void 0?null:P,K=this.state.inputValue,M=K===void 0?null:K,H=typeof w=="number"?w.toFixed(Y):"".concat(w),ae=w!==L||H!=="".concat(M);return"value"in this.props?(M=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:M},Z)):this.setState({value:w,inputValue:this.toPrecisionAsStep(j)},Z),ae&&this.props.onChange(w),w}},{key:"getMaxPrecision",value:function(j){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=this.props,w=Y.precision,P=Y.step;if(T(w))return w;var L=this.getPrecision(Z),K=this.getPrecision(P),M=this.getPrecision(j);return j?Math.max(M,L+K):L+K}},{key:"getPrecisionFactor",value:function(j){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=this.getMaxPrecision(j,Z);return Math.pow(10,Y)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(j){return this.props.formatter?this.props.formatter(j):j}},{key:"toPrecisionAsStep",value:function(j){if(this.isNotCompleteNumber(j)||j==="")return j;var Z=Math.abs(this.getMaxPrecision(j));return isNaN(Z)?j.toString():Number(j).toFixed(Z)}},{key:"toNumber",value:function(j){var Z=this.props.precision,Y=this.state.focused,w=j&&j.length>16&&Y;return this.isNotCompleteNumber(j)||w?j:T(Z)?Math.round(j*Math.pow(10,Z))/Math.pow(10,Z):Number(j)}},{key:"upStep",value:function(j,Z){var Y=this.props.step,w=this.getPrecisionFactor(j,Z),P=Math.abs(this.getMaxPrecision(j,Z)),L=((w*j+w*Y*Z)/w).toFixed(P);return this.toNumber(L)}},{key:"downStep",value:function(j,Z){var Y=this.props.step,w=this.getPrecisionFactor(j,Z),P=Math.abs(this.getMaxPrecision(j,Z)),L=((w*j-w*Y*Z)/w).toFixed(P);return this.toNumber(L)}},{key:"step",value:function(j,Z){var Y=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=arguments.length>3?arguments[3]:void 0;this.stop(),Z&&(Z.persist(),Z.preventDefault());var L=this.props;if(L.disabled)return;var K=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(K))return;var M=this["".concat(j,"Step")](K,w),H=M>L.max||ML.max?M=L.max:M=ve),xe=(Ae||Ae===0)&&(isNaN(Ae)||Number(Ae)<=de),Le=Be||w||P,De=xe||w||P,Ne=i()("".concat(Y,"-handler"),"".concat(Y,"-handler-up"),Object(f.a)({},"".concat(Y,"-handler-up-disabled"),Le)),se=i()("".concat(Y,"-handler"),"".concat(Y,"-handler-down"),Object(f.a)({},"".concat(Y,"-handler-down-disabled"),De)),we=L?{onTouchStart:Le?u:this.up,onTouchEnd:this.stop}:{onMouseDown:Le?u:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},B=L?{onTouchStart:De?u:this.down,onTouchEnd:this.stop}:{onMouseDown:De?u:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return c.a.createElement("div",{className:he,style:be,title:z,onMouseEnter:ne,onMouseLeave:fe,onMouseOver:ie,onMouseOut:oe,onFocus:function(){return null},onBlur:function(){return null}},c.a.createElement("div",{className:"".concat(Y,"-handler-wrap")},c.a.createElement("span",Object.assign({unselectable:"on"},we,{role:"button","aria-label":"Increase Value","aria-disabled":Le,className:Ne}),M||c.a.createElement("span",{unselectable:"on",className:"".concat(Y,"-handler-up-inner"),onClick:l})),c.a.createElement("span",Object.assign({unselectable:"on"},B,{role:"button","aria-label":"Decrease Value","aria-disabled":De,className:se}),H||c.a.createElement("span",{unselectable:"on",className:"".concat(Y,"-handler-down-inner"),onClick:l}))),c.a.createElement("div",{className:"".concat(Y,"-input-wrap")},c.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":de,"aria-valuemax":ve,"aria-valuenow":Ae,required:U,type:le,placeholder:Pe,onPaste:ue,onClick:ee,onMouseUp:this.onMouseUp,className:"".concat(Y,"-input"),tabIndex:J,autoComplete:K,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:rt?this.onKeyDown:u,onKeyUp:rt?this.onKeyUp:u,autoFocus:Oe,maxLength:ke,readOnly:P,disabled:w,max:ve,min:de,step:Ve,name:Ce,title:z,id:Qe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(V),pattern:et,inputMode:$e,onInput:N},We))))}}]),W}(c.a.Component);E.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:y,min:-y,step:1,style:{},onChange:u,onKeyDown:u,onPressEnter:u,onFocus:u,onBlur:u,parser:g,required:!1,autoComplete:"off"};var b=E,v=I.a=b},eP3c:function(Re,I,h){"use strict";function S(se){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(B){return typeof B}:S=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},S(se)}Object.defineProperty(I,"__esModule",{value:!0}),I.inflateReset=N,I.inflateReset2=te,I.inflateResetKeep=ue,I.inflateInit=Ae,I.inflateInit2=F,I.inflate=Be,I.inflateEnd=xe,I.inflateGetHeader=Le,I.inflateSetDictionary=De,I.inflateInfo=I.Z_DEFLATED=I.Z_BUF_ERROR=I.Z_MEM_ERROR=I.Z_DATA_ERROR=I.Z_STREAM_ERROR=I.Z_NEED_DICT=I.Z_STREAM_END=I.Z_OK=I.Z_TREES=I.Z_BLOCK=I.Z_FINISH=void 0;var f=c(h("6BzB")),k=p(h("xlC8")),m=p(h("QV2g")),_=p(h("sjKO")),r=p(h("JSwD"));function p(se){return se&&se.__esModule?se:{default:se}}function d(){if(typeof WeakMap!="function")return null;var se=new WeakMap;return d=function(){return se},se}function c(se){if(se&&se.__esModule)return se;if(se===null||S(se)!=="object"&&typeof se!="function")return{default:se};var we=d();if(we&&we.has(se))return we.get(se);var B={},He=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var at in se)if(Object.prototype.hasOwnProperty.call(se,at)){var R=He?Object.getOwnPropertyDescriptor(se,at):null;R&&(R.get||R.set)?Object.defineProperty(B,at,R):B[at]=se[at]}return B.default=se,we&&we.set(se,B),B}var o=0,i=1,s=2,a=4;I.Z_FINISH=a;var n=5;I.Z_BLOCK=n;var t=6;I.Z_TREES=t;var e=0;I.Z_OK=e;var u=1;I.Z_STREAM_END=u;var l=2;I.Z_NEED_DICT=l;var g=-2;I.Z_STREAM_ERROR=g;var C=-3;I.Z_DATA_ERROR=C;var x=-4;I.Z_MEM_ERROR=x;var y=-5;I.Z_BUF_ERROR=y;var T=8;I.Z_DEFLATED=T;var A=1,E=2,b=3,v=4,O=5,D=6,W=7,Q=8,j=9,Z=10,Y=11,w=12,P=13,L=14,K=15,M=16,H=17,ae=18,ve=19,de=20,be=21,z=22,ne=23,fe=24,ie=25,oe=26,U=27,ee=28,J=29,le=30,Pe=31,Qe=32,$e=852,et=592,Ve=15,ke=Ve;function Oe(se){return(se>>>24&255)+(se>>>8&65280)+((se&65280)<<8)+((se&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ue(se){var we;return!se||!se.state?g:(we=se.state,se.total_in=se.total_out=we.total=0,se.msg="",we.wrap&&(se.adler=we.wrap&1),we.mode=A,we.last=0,we.havedict=0,we.dmax=32768,we.head=null,we.hold=0,we.bits=0,we.lencode=we.lendyn=new f.Buf32($e),we.distcode=we.distdyn=new f.Buf32(et),we.sane=1,we.back=-1,e)}function N(se){var we;return!se||!se.state?g:(we=se.state,we.wsize=0,we.whave=0,we.wnext=0,ue(se))}function te(se,we){var B,He;return!se||!se.state?g:(He=se.state,we<0?(B=0,we=-we):(B=(we>>4)+1,we<48&&(we&=15)),we&&(we<8||we>15)?g:(He.window!==null&&He.wbits!==we&&(He.window=null),He.wrap=B,He.wbits=we,N(se)))}function F(se,we){var B,He;return se?(He=new Ce,se.state=He,He.window=null,B=te(se,we),B!==e&&(se.state=null),B):g}function Ae(se){return F(se,ke)}var tt=!0,he,We;function rt(se){if(tt){var we;for(he=new f.Buf32(512),We=new f.Buf32(32),we=0;we<144;)se.lens[we++]=8;for(;we<256;)se.lens[we++]=9;for(;we<280;)se.lens[we++]=7;for(;we<288;)se.lens[we++]=8;for((0,r.default)(i,se.lens,0,288,he,0,se.work,{bits:9}),we=0;we<32;)se.lens[we++]=5;(0,r.default)(s,se.lens,0,32,We,0,se.work,{bits:5}),tt=!1}se.lencode=he,se.lenbits=9,se.distcode=We,se.distbits=5}function V(se,we,B,He){var at,R=se.state;return R.window===null&&(R.wsize=1<=R.wsize?(f.arraySet(R.window,we,B-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(at=R.wsize-R.wnext,at>He&&(at=He),f.arraySet(R.window,we,B-He,at,R.wnext),He-=at,He?(f.arraySet(R.window,we,B-He,He,0),R.wnext=He,R.whave=R.wsize):(R.wnext+=at,R.wnext===R.wsize&&(R.wnext=0),R.whave>>8&255,B.check=(0,m.default)(B.check,Rt,2,0),ye=0,Se=0,B.mode=E;break}if(B.flags=0,B.head&&(B.head.done=!1),!(B.wrap&1)||(((ye&255)<<8)+(ye>>8))%31){se.msg="incorrect header check",B.mode=le;break}if((ye&15)!==T){se.msg="unknown compression method",B.mode=le;break}if(ye>>>=4,Se-=4,vt=(ye&15)+8,B.wbits===0)B.wbits=vt;else if(vt>B.wbits){se.msg="invalid window size",B.mode=le;break}B.dmax=1<>8&1),B.flags&512&&(Rt[0]=ye&255,Rt[1]=ye>>>8&255,B.check=(0,m.default)(B.check,Rt,2,0)),ye=0,Se=0,B.mode=b;case b:for(;Se<32;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>8&255,Rt[2]=ye>>>16&255,Rt[3]=ye>>>24&255,B.check=(0,m.default)(B.check,Rt,4,0)),ye=0,Se=0,B.mode=v;case v:for(;Se<16;){if(Ue===0)break e;Ue--,ye+=He[R++]<>8),B.flags&512&&(Rt[0]=ye&255,Rt[1]=ye>>>8&255,B.check=(0,m.default)(B.check,Rt,2,0)),ye=0,Se=0,B.mode=O;case O:if(B.flags&1024){for(;Se<16;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>8&255,B.check=(0,m.default)(B.check,Rt,2,0)),ye=0,Se=0}else B.head&&(B.head.extra=null);B.mode=D;case D:if(B.flags&1024&&(Te=B.length,Te>Ue&&(Te=Ue),Te&&(B.head&&(vt=B.head.extra_len-B.length,B.head.extra||(B.head.extra=new Array(B.head.extra_len)),f.arraySet(B.head.extra,He,R,Te,vt)),B.flags&512&&(B.check=(0,m.default)(B.check,He,Te,R)),Ue-=Te,R+=Te,B.length-=Te),B.length))break e;B.length=0,B.mode=W;case W:if(B.flags&2048){if(Ue===0)break e;Te=0;do vt=He[R+Te++],B.head&&vt&&B.length<65536&&(B.head.name+=String.fromCharCode(vt));while(vt&&Te>9&1,B.head.done=!0),se.adler=B.check=0,B.mode=w;break;case Z:for(;Se<32;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=Se&7,Se-=Se&7,B.mode=U;break}for(;Se<3;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=1,Se-=1;switch(ye&3){case 0:B.mode=L;break;case 1:if(rt(B),B.mode=de,we===t){ye>>>=2,Se-=2;break e}break;case 2:B.mode=H;break;case 3:se.msg="invalid block type",B.mode=le}ye>>>=2,Se-=2;break;case L:for(ye>>>=Se&7,Se-=Se&7;Se<32;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>16^65535)){se.msg="invalid stored block lengths",B.mode=le;break}if(B.length=ye&65535,ye=0,Se=0,B.mode=K,we===t)break e;case K:B.mode=M;case M:if(Te=B.length,Te){if(Te>Ue&&(Te=Ue),Te>q&&(Te=q),Te===0)break e;f.arraySet(at,He,R,Te,Me),Ue-=Te,R+=Te,q-=Te,Me+=Te,B.length-=Te;break}B.mode=w;break;case H:for(;Se<14;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=5,Se-=5,B.ndist=(ye&31)+1,ye>>>=5,Se-=5,B.ncode=(ye&15)+4,ye>>>=4,Se-=4,B.nlen>286||B.ndist>30){se.msg="too many length or distance symbols",B.mode=le;break}B.have=0,B.mode=ae;case ae:for(;B.have>>=3,Se-=3}for(;B.have<19;)B.lens[Ft[B.have++]]=0;if(B.lencode=B.lendyn,B.lenbits=7,Bt={bits:B.lenbits},pt=(0,r.default)(o,B.lens,0,19,B.lencode,0,B.work,Bt),B.lenbits=Bt.bits,pt){se.msg="invalid code lengths set",B.mode=le;break}B.have=0,B.mode=ve;case ve:for(;B.have>>24,ot=qe>>>16&255,st=qe&65535,Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=Xe,Se-=Xe,B.lens[B.have++]=st;else{if(st===16){for(Xt=Xe+2;Se>>=Xe,Se-=Xe,B.have===0){se.msg="invalid bit length repeat",B.mode=le;break}vt=B.lens[B.have-1],Te=3+(ye&3),ye>>>=2,Se-=2}else if(st===17){for(Xt=Xe+3;Se>>=Xe,Se-=Xe,vt=0,Te=3+(ye&7),ye>>>=3,Se-=3}else{for(Xt=Xe+7;Se>>=Xe,Se-=Xe,vt=0,Te=11+(ye&127),ye>>>=7,Se-=7}if(B.have+Te>B.nlen+B.ndist){se.msg="invalid bit length repeat",B.mode=le;break}for(;Te--;)B.lens[B.have++]=vt}}if(B.mode===le)break;if(B.lens[256]===0){se.msg="invalid code -- missing end-of-block",B.mode=le;break}if(B.lenbits=9,Bt={bits:B.lenbits},pt=(0,r.default)(i,B.lens,0,B.nlen,B.lencode,0,B.work,Bt),B.lenbits=Bt.bits,pt){se.msg="invalid literal/lengths set",B.mode=le;break}if(B.distbits=6,B.distcode=B.distdyn,Bt={bits:B.distbits},pt=(0,r.default)(s,B.lens,B.nlen,B.ndist,B.distcode,0,B.work,Bt),B.distbits=Bt.bits,pt){se.msg="invalid distances set",B.mode=le;break}if(B.mode=de,we===t)break e;case de:B.mode=be;case be:if(Ue>=6&&q>=258){se.next_out=Me,se.avail_out=q,se.next_in=R,se.avail_in=Ue,B.hold=ye,B.bits=Se,(0,_.default)(se,Ye),Me=se.next_out,at=se.output,q=se.avail_out,R=se.next_in,He=se.input,Ue=se.avail_in,ye=B.hold,Se=B.bits,B.mode===w&&(B.back=-1);break}for(B.back=0;!(qe=B.lencode[ye&(1<>>24,ot=qe>>>16&255,st=qe&65535,Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>ze)],Xe=qe>>>24,ot=qe>>>16&255,st=qe&65535,ze+Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=ze,Se-=ze,B.back+=ze}if(ye>>>=Xe,Se-=Xe,B.back+=Xe,B.length=st,ot===0){B.mode=oe;break}if(ot&32){B.back=-1,B.mode=w;break}if(ot&64){se.msg="invalid literal/length code",B.mode=le;break}B.extra=ot&15,B.mode=z;case z:if(B.extra){for(Xt=B.extra;Se>>=B.extra,Se-=B.extra,B.back+=B.extra}B.was=B.length,B.mode=ne;case ne:for(;!(qe=B.distcode[ye&(1<>>24,ot=qe>>>16&255,st=qe&65535,Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>ze)],Xe=qe>>>24,ot=qe>>>16&255,st=qe&65535,ze+Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=ze,Se-=ze,B.back+=ze}if(ye>>>=Xe,Se-=Xe,B.back+=Xe,ot&64){se.msg="invalid distance code",B.mode=le;break}B.offset=st,B.extra=ot&15,B.mode=fe;case fe:if(B.extra){for(Xt=B.extra;Se>>=B.extra,Se-=B.extra,B.back+=B.extra}if(B.offset>B.dmax){se.msg="invalid distance too far back",B.mode=le;break}B.mode=ie;case ie:if(q===0)break e;if(Te=Ye-q,B.offset>Te){if(Te=B.offset-Te,Te>B.whave&&B.sane){se.msg="invalid distance too far back",B.mode=le;break}Te>B.wnext?(Te-=B.wnext,$=B.wsize-Te):$=B.wnext-Te,Te>B.length&&(Te=B.length),pe=B.window}else pe=at,$=Me-B.offset,Te=B.length;Te>q&&(Te=q),q-=Te,B.length-=Te;do at[Me++]=pe[$++];while(--Te);B.length===0&&(B.mode=be);break;case oe:if(q===0)break e;at[Me++]=B.length,q--,B.mode=be;break;case U:if(B.wrap){for(;Se<32;){if(Ue===0)break e;Ue--,ye|=He[R++]<0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],be=ve.length,z=de.length;if(Math.abs(be-z)!==1)return{add:!1,key:null};function ne(fe,ie){var oe=new Map;fe.forEach(function(ee){oe.set(ee,!0)});var U=ie.filter(function(ee){return!oe.has(ee)});return U.length===1?U[0]:null}return be ").concat(de);return de}var w=function(de,be){var z=de.prefixCls,ne=de.data,fe=de.selectable,ie=de.checkable,oe=de.expandedKeys,U=de.selectedKeys,ee=de.checkedKeys,J=de.loadedKeys,le=de.loadingKeys,Pe=de.halfCheckedKeys,Qe=de.keyEntities,$e=de.disabled,et=de.dragging,Ve=de.dragOverNodeKey,ke=de.dropPosition,Oe=de.motion,Ce=de.height,ue=de.itemHeight,N=de.virtual,te=de.focusable,F=de.activeItem,Ae=de.focused,tt=de.tabIndex,he=de.onKeyDown,We=de.onFocus,rt=de.onBlur,V=de.onActiveChange,Be=de.onListChangeStart,xe=de.onListChangeEnd,Le=Object(u.a)(de,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),De=d.useRef(null);d.useImperativeHandle(be,function(){return{scrollTo:function(vt){De.current.scrollTo(vt)}}});var Ne=d.useState(oe),se=Object(e.a)(Ne,2),we=se[0],B=se[1],He=d.useState(ne),at=Object(e.a)(He,2),R=at[0],Me=at[1],Ue=d.useState(ne),q=Object(e.a)(Ue,2),ye=q[0],Se=q[1],Ge=d.useState([]),Ye=Object(e.a)(Ge,2),Te=Ye[0],$=Ye[1],pe=d.useState(null),qe=Object(e.a)(pe,2),Xe=qe[0],ot=qe[1];function st(){Me(ne),Se(ne),$([]),ot(null),xe()}d.useEffect(function(){B(oe);var ct=A(we,oe);if(ct.key!==null)if(ct.add){var vt=R.findIndex(function(Qt){var pn=Qt.data.key;return pn===ct.key}),pt=j(E(R,ne,ct.key),N,Ce,ue),Rt=R.slice();Rt.splice(vt+1,0,Q),Se(Rt),$(pt),ot("show")}else{var Bt=ne.findIndex(function(Qt){var pn=Qt.data.key;return pn===ct.key}),Xt=j(E(ne,R,ct.key),N,Ce,ue),Ft=ne.slice();Ft.splice(Bt+1,0,Q),Se(Ft),$(Xt),ot("hide")}else R!==ne&&(Me(ne),Se(ne))},[oe,ne]),d.useEffect(function(){et||st()},[et]);var ze=Oe?ye:ne,it={expandedKeys:oe,selectedKeys:U,loadedKeys:J,loadingKeys:le,checkedKeys:ee,halfCheckedKeys:Pe,dragOverNodeKey:Ve,dropPosition:ke,keyEntities:Qe};return d.createElement(d.Fragment,null,Ae&&F&&d.createElement("span",{style:b,"aria-live":"assertive"},Y(F)),d.createElement("div",{role:"tree"},d.createElement("input",{style:b,disabled:te===!1||$e,tabIndex:te!==!1?tt:null,onKeyDown:he,onFocus:We,onBlur:rt,value:"",onChange:v})),d.createElement(l.a,Object.assign({},Le,{data:ze,itemKey:Z,height:Ce,fullHeight:!1,virtual:N,itemHeight:ue,prefixCls:"".concat(z,"-list"),ref:De}),function(ct){var vt=ct.pos,pt=ct.data,Rt=pt.key,Bt=Object(u.a)(pt,["key"]),Xt=ct.isStart,Ft=ct.isEnd,Qt=Object(t.e)(Rt,vt);delete Bt.children;var pn=Object(t.f)(Qt,it);return d.createElement(T,Object.assign({},Bt,pn,{active:F&&Rt===F.data.key,pos:vt,data:ct.data,isStart:Xt,isEnd:Ft,motion:Oe,motionNodes:Rt===O?Te:null,motionType:Xe,onMotionStart:Be,onMotionEnd:st,treeNodeRequiredProps:it,onMouseMove:function(){V(null)}}))}))},P=d.forwardRef(w);P.displayName="NodeList";var L=P,K=h("NvD2"),M=function(ve){Object(r.a)(be,ve);var de=Object(p.a)(be);function be(){var z;return Object(m.a)(this,be),z=de.apply(this,arguments),z.destroyed=!1,z.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},z.listRef=d.createRef(),z.onNodeDragStart=function(ne,fe){var ie=z.state,oe=ie.expandedKeys,U=ie.keyEntities,ee=z.props.onDragStart,J=fe.props.eventKey;z.dragNode=fe;var le=Object(n.b)(oe,J);z.setState({dragging:!0,dragNodesKeys:Object(n.g)(J,U)}),z.setExpandedKeys(le),ee&&ee({event:ne,node:Object(t.b)(fe.props)})},z.onNodeDragEnter=function(ne,fe){var ie=z.state,oe=ie.expandedKeys,U=ie.keyEntities,ee=ie.dragNodesKeys,J=z.props.onDragEnter,le=fe.props,Pe=le.pos,Qe=le.eventKey;if(!z.dragNode||ee.indexOf(Qe)!==-1)return;var $e=Object(n.c)(ne,fe);if(z.dragNode.props.eventKey===Qe&&$e===0){z.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){z.setState({dragOverNodeKey:Qe,dropPosition:$e}),z.delayedDragEnterLogic||(z.delayedDragEnterLogic={}),Object.keys(z.delayedDragEnterLogic).forEach(function(et){clearTimeout(z.delayedDragEnterLogic[et])}),z.delayedDragEnterLogic[Pe]=window.setTimeout(function(){if(!z.state.dragging)return;var et=Object(k.a)(oe),Ve=U[Qe];Ve&&(Ve.children||[]).length&&(et=Object(n.a)(oe,Qe)),"expandedKeys"in z.props||z.setExpandedKeys(et),J&&J({event:ne,node:Object(t.b)(fe.props),expandedKeys:et})},400)},0)},z.onNodeDragOver=function(ne,fe){var ie=z.state.dragNodesKeys,oe=z.props.onDragOver,U=fe.props.eventKey;if(ie.indexOf(U)!==-1)return;if(z.dragNode&&U===z.state.dragOverNodeKey){var ee=Object(n.c)(ne,fe);if(ee===z.state.dropPosition)return;z.setState({dropPosition:ee})}oe&&oe({event:ne,node:Object(t.b)(fe.props)})},z.onNodeDragLeave=function(ne,fe){var ie=z.props.onDragLeave;z.setState({dragOverNodeKey:""}),ie&&ie({event:ne,node:Object(t.b)(fe.props)})},z.onNodeDragEnd=function(ne,fe){var ie=z.props.onDragEnd;z.setState({dragOverNodeKey:""}),z.cleanDragState(),ie&&ie({event:ne,node:Object(t.b)(fe.props)}),z.dragNode=null},z.onNodeDrop=function(ne,fe){var ie=z.state,oe=ie.dragNodesKeys,U=oe===void 0?[]:oe,ee=ie.dropPosition,J=z.props.onDrop,le=fe.props,Pe=le.eventKey,Qe=le.pos;if(z.setState({dragOverNodeKey:""}),z.cleanDragState(),U.indexOf(Pe)!==-1){Object(o.a)(!1,"Can not drop to dragNode(include it's children node)");return}var $e=Object(n.k)(Qe),et={event:ne,node:Object(t.b)(fe.props),dragNode:z.dragNode?Object(t.b)(z.dragNode.props):null,dragNodesKeys:U.slice(),dropPosition:ee+Number($e[$e.length-1]),dropToGap:!1};ee!==0&&(et.dropToGap=!0),J&&J(et),z.dragNode=null},z.cleanDragState=function(){var ne=z.state.dragging;ne&&z.setState({dragging:!1})},z.onNodeClick=function(ne,fe){var ie=z.props.onClick;ie&&ie(ne,fe)},z.onNodeDoubleClick=function(ne,fe){var ie=z.props.onDoubleClick;ie&&ie(ne,fe)},z.onNodeSelect=function(ne,fe){var ie=z.state.selectedKeys,oe=z.state.keyEntities,U=z.props,ee=U.onSelect,J=U.multiple,le=fe.selected,Pe=fe.key,Qe=!le;Qe?J?ie=Object(n.a)(ie,Pe):ie=[Pe]:ie=Object(n.b)(ie,Pe);var $e=ie.map(function(et){var Ve=oe[et];return Ve?Ve.node:null}).filter(function(et){return et});z.setUncontrolledState({selectedKeys:ie}),ee&&ee(ie,{event:"select",selected:Qe,node:fe,selectedNodes:$e,nativeEvent:ne.nativeEvent})},z.onNodeCheck=function(ne,fe,ie){var oe=z.state,U=oe.keyEntities,ee=oe.checkedKeys,J=oe.halfCheckedKeys,le=z.props,Pe=le.checkStrictly,Qe=le.onCheck,$e=fe.key,et,Ve={event:"check",node:fe,checked:ie,nativeEvent:ne.nativeEvent};if(Pe){var ke=ie?Object(n.a)(ee,$e):Object(n.b)(ee,$e),Oe=Object(n.b)(J,$e);et={checked:ke,halfChecked:Oe},Ve.checkedNodes=ke.map(function(Ae){return U[Ae]}).filter(function(Ae){return Ae}).map(function(Ae){return Ae.node}),z.setUncontrolledState({checkedKeys:ke})}else{var Ce=Object(K.a)([].concat(Object(k.a)(ee),[$e]),!0,U),ue=Ce.checkedKeys,N=Ce.halfCheckedKeys;if(!ie){var te=new Set(ue);te.delete($e);var F=Object(K.a)(Array.from(te),{checked:!1,halfCheckedKeys:N},U);ue=F.checkedKeys,N=F.halfCheckedKeys}et=ue,Ve.checkedNodes=[],Ve.checkedNodesPositions=[],Ve.halfCheckedKeys=N,ue.forEach(function(Ae){var tt=U[Ae];if(!tt)return;var he=tt.node,We=tt.pos;Ve.checkedNodes.push(he),Ve.checkedNodesPositions.push({node:he,pos:We})}),z.setUncontrolledState({checkedKeys:ue},!1,{halfCheckedKeys:N})}Qe&&Qe(et,Ve)},z.onNodeLoad=function(ne){return new Promise(function(fe){z.setState(function(ie){var oe=ie.loadedKeys,U=oe===void 0?[]:oe,ee=ie.loadingKeys,J=ee===void 0?[]:ee,le=z.props,Pe=le.loadData,Qe=le.onLoad,$e=ne.key;if(!Pe||U.indexOf($e)!==-1||J.indexOf($e)!==-1)return{};var et=Pe(ne);return et.then(function(){var Ve=z.state,ke=Ve.loadedKeys,Oe=Ve.loadingKeys,Ce=Object(n.a)(ke,$e),ue=Object(n.b)(Oe,$e);Qe&&Qe(Ce,{event:"load",node:ne}),z.setUncontrolledState({loadedKeys:Ce}),z.setState({loadingKeys:ue}),fe()}),{loadingKeys:Object(n.a)(J,$e)}})})},z.onNodeMouseEnter=function(ne,fe){var ie=z.props.onMouseEnter;ie&&ie({event:ne,node:fe})},z.onNodeMouseLeave=function(ne,fe){var ie=z.props.onMouseLeave;ie&&ie({event:ne,node:fe})},z.onNodeContextMenu=function(ne,fe){var ie=z.props.onRightClick;ie&&(ne.preventDefault(),ie({event:ne,node:fe}))},z.onFocus=function(){var ne=z.props.onFocus;z.setState({focused:!0}),ne&&ne.apply(void 0,arguments)},z.onBlur=function(){var ne=z.props.onBlur;z.setState({focused:!1}),z.onActiveChange(null),ne&&ne.apply(void 0,arguments)},z.getTreeNodeRequiredProps=function(){var ne=z.state,fe=ne.expandedKeys,ie=ne.selectedKeys,oe=ne.loadedKeys,U=ne.loadingKeys,ee=ne.checkedKeys,J=ne.halfCheckedKeys,le=ne.dragOverNodeKey,Pe=ne.dropPosition,Qe=ne.keyEntities;return{expandedKeys:fe||[],selectedKeys:ie||[],loadedKeys:oe||[],loadingKeys:U||[],checkedKeys:ee||[],halfCheckedKeys:J||[],dragOverNodeKey:le,dropPosition:Pe,keyEntities:Qe}},z.setExpandedKeys=function(ne){var fe=z.state.treeData,ie=Object(t.d)(fe,ne);z.setUncontrolledState({expandedKeys:ne,flattenNodes:ie},!0)},z.onNodeExpand=function(ne,fe){var ie=z.state.expandedKeys,oe=z.state.listChanging,U=z.props,ee=U.onExpand,J=U.loadData,le=fe.key,Pe=fe.expanded;if(oe)return;var Qe=ie.indexOf(le),$e=!Pe;if(Object(o.a)(Pe&&Qe!==-1||!Pe&&Qe===-1,"Expand state not sync with index check"),$e?ie=Object(n.a)(ie,le):ie=Object(n.b)(ie,le),z.setExpandedKeys(ie),ee&&ee(ie,{node:fe,expanded:$e,nativeEvent:ne.nativeEvent}),$e&&J){var et=z.onNodeLoad(fe);et&&et.then(function(){var Ve=Object(t.d)(z.state.treeData,ie);z.setUncontrolledState({flattenNodes:Ve})})}},z.onListChangeStart=function(){z.setUncontrolledState({listChanging:!0})},z.onListChangeEnd=function(){setTimeout(function(){z.setUncontrolledState({listChanging:!1})})},z.onActiveChange=function(ne){var fe=z.state.activeKey,ie=z.props.onActiveChange;if(fe===ne)return;z.setState({activeKey:ne}),ne!==null&&z.scrollTo({key:ne}),ie&&ie(ne)},z.getActiveItem=function(){var ne=z.state,fe=ne.activeKey,ie=ne.flattenNodes;return fe===null?null:ie.find(function(oe){var U=oe.data.key;return U===fe})||null},z.offsetActiveKey=function(ne){var fe=z.state,ie=fe.flattenNodes,oe=fe.activeKey,U=ie.findIndex(function(le){var Pe=le.data.key;return Pe===oe});U===-1&&ne<0&&(U=ie.length),U=(U+ne+ie.length)%ie.length;var ee=ie[U];if(ee){var J=ee.data.key;z.onActiveChange(J)}else z.onActiveChange(null)},z.onKeyDown=function(ne){var fe=z.state,ie=fe.activeKey,oe=fe.expandedKeys,U=fe.checkedKeys,ee=z.props,J=ee.onKeyDown,le=ee.checkable,Pe=ee.selectable;switch(ne.which){case c.a.UP:{z.offsetActiveKey(-1),ne.preventDefault();break}case c.a.DOWN:{z.offsetActiveKey(1),ne.preventDefault();break}}var Qe=z.getActiveItem();if(Qe&&Qe.data){var $e=z.getTreeNodeRequiredProps(),et=Qe.data.isLeaf===!1||!!(Qe.data.children||[]).length,Ve=Object(t.b)(Object(f.a)(Object(f.a)({},Object(t.f)(ie,$e)),{},{data:Qe.data,active:!0}));switch(ne.which){case c.a.LEFT:{et&&oe.includes(ie)?z.onNodeExpand({},Ve):Qe.parent&&z.onActiveChange(Qe.parent.data.key),ne.preventDefault();break}case c.a.RIGHT:{et&&!oe.includes(ie)?z.onNodeExpand({},Ve):Qe.children&&Qe.children.length&&z.onActiveChange(Qe.children[0].data.key),ne.preventDefault();break}case c.a.ENTER:case c.a.SPACE:{le&&!Ve.disabled&&Ve.checkable!==!1&&!Ve.disableCheckbox?z.onNodeCheck({},Ve,!U.includes(ie)):!le&&Pe&&!Ve.disabled&&Ve.selectable!==!1&&z.onNodeSelect({},Ve);break}}}J&&J(ne)},z.setUncontrolledState=function(ne){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(z.destroyed)return;var oe=!1,U=!0,ee={};Object.keys(ne).forEach(function(J){if(J in z.props){U=!1;return}oe=!0,ee[J]=ne[J]}),oe&&(!fe||U)&&z.setState(Object(f.a)(Object(f.a)({},ee),ie))},z.scrollTo=function(ne){z.listRef.current.scrollTo(ne)},z}return Object(_.a)(be,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ne,fe=this.state,ie=fe.focused,oe=fe.flattenNodes,U=fe.keyEntities,ee=fe.dragging,J=fe.activeKey,le=this.props,Pe=le.prefixCls,Qe=le.className,$e=le.style,et=le.showLine,Ve=le.focusable,ke=le.tabIndex,Oe=ke===void 0?0:ke,Ce=le.selectable,ue=le.showIcon,N=le.icon,te=le.switcherIcon,F=le.draggable,Ae=le.checkable,tt=le.checkStrictly,he=le.disabled,We=le.motion,rt=le.loadData,V=le.filterTreeNode,Be=le.height,xe=le.itemHeight,Le=le.virtual,De=le.titleRender,Ne=le.onContextMenu,se=Object(n.f)(this.props);return d.createElement(a.a.Provider,{value:{prefixCls:Pe,selectable:Ce,showIcon:ue,icon:N,switcherIcon:te,draggable:F,checkable:Ae,checkStrictly:tt,disabled:he,keyEntities:U,loadData:rt,filterTreeNode:V,titleRender:De,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{className:s()(Pe,Qe,(ne={},Object(S.a)(ne,"".concat(Pe,"-show-line"),et),Object(S.a)(ne,"".concat(Pe,"-focused"),ie),Object(S.a)(ne,"".concat(Pe,"-active-focused"),J!==null),ne))},d.createElement(L,Object.assign({ref:this.listRef,prefixCls:Pe,style:$e,data:oe,disabled:he,selectable:Ce,checkable:!!Ae,motion:We,dragging:ee,height:Be,itemHeight:xe,virtual:Le,focusable:Ve,focused:ie,tabIndex:Oe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ne},this.getTreeNodeRequiredProps(),se))))}}],[{key:"getDerivedStateFromProps",value:function(ne,fe){var ie=fe.prevProps,oe={prevProps:ne};function U(N){return!ie&&N in ne||ie&&ie[N]!==ne[N]}var ee;if(U("treeData")?ee=ne.treeData:U("children")&&(Object(o.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ee=Object(t.c)(ne.children)),ee){oe.treeData=ee;var J=Object(t.a)(ee);oe.keyEntities=Object(f.a)(Object(S.a)({},O,W),J.keyEntities)}var le=oe.keyEntities||fe.keyEntities;if(U("expandedKeys")||ie&&U("autoExpandParent"))oe.expandedKeys=ne.autoExpandParent||!ie&&ne.defaultExpandParent?Object(n.e)(ne.expandedKeys,le):ne.expandedKeys;else if(!ie&&ne.defaultExpandAll){var Pe=Object(f.a)({},le);delete Pe[O],oe.expandedKeys=Object.keys(Pe).map(function(N){return Pe[N].key})}else!ie&&ne.defaultExpandedKeys&&(oe.expandedKeys=ne.autoExpandParent||ne.defaultExpandParent?Object(n.e)(ne.defaultExpandedKeys,le):ne.defaultExpandedKeys);if(oe.expandedKeys||delete oe.expandedKeys,ee||oe.expandedKeys){var Qe=Object(t.d)(ee||fe.treeData,oe.expandedKeys||fe.expandedKeys);oe.flattenNodes=Qe}if(ne.selectable&&(U("selectedKeys")?oe.selectedKeys=Object(n.d)(ne.selectedKeys,ne):!ie&&ne.defaultSelectedKeys&&(oe.selectedKeys=Object(n.d)(ne.defaultSelectedKeys,ne))),ne.checkable){var $e;if(U("checkedKeys")?$e=Object(n.j)(ne.checkedKeys)||{}:!ie&&ne.defaultCheckedKeys?$e=Object(n.j)(ne.defaultCheckedKeys)||{}:ee&&($e=Object(n.j)(ne.checkedKeys)||{checkedKeys:fe.checkedKeys,halfCheckedKeys:fe.halfCheckedKeys}),$e){var et=$e,Ve=et.checkedKeys,ke=Ve===void 0?[]:Ve,Oe=et.halfCheckedKeys,Ce=Oe===void 0?[]:Oe;if(!ne.checkStrictly){var ue=Object(K.a)(ke,!0,le);ke=ue.checkedKeys,Ce=ue.halfCheckedKeys}oe.checkedKeys=ke,oe.halfCheckedKeys=Ce}}return U("loadedKeys")&&(oe.loadedKeys=ne.loadedKeys),oe}}]),be}(d.Component);M.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},M.TreeNode=C.a;var H=M,ae=I.b=H},fcSX:function(Re,I,h){"use strict";var S=h("Ff2n"),f=h("1OyB"),k=h("vuIU"),m=h("Ji7U"),_=h("md7G"),r=h("foSv"),p=h("1W/9"),d=h("q1tI"),c=h("rePB"),o=h("JX7q"),i=h("TSYQ"),s=h.n(i),a=h("qx4F"),n=h("4IlW");function t(w){return Array.isArray(w)?w:[w]}var e={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},u=Object.keys(e).filter(function(w){if(typeof document=="undefined")return!1;var P=document.getElementsByTagName("html")[0];return w in(P?P.style:{})})[0],l=e[u];function g(w,P,L,K){w.addEventListener?w.addEventListener(P,L,K):w.attachEvent&&w.attachEvent("on".concat(P),L)}function C(w,P,L,K){w.removeEventListener?w.removeEventListener(P,L,K):w.attachEvent&&w.detachEvent("on".concat(P),L)}function x(w,P){var L=typeof w=="function"?w(P):w;return Array.isArray(L)?L.length===2?L:[L[0],L[1]]:[L]}var y=function(P){return!isNaN(parseFloat(P))&&isFinite(P)},T=!(typeof window!="undefined"&&window.document&&window.document.createElement),A=function w(P,L,K,M){if(!L||L===document||L instanceof Document)return!1;if(L===P.parentNode)return!0;var H=Math.max(Math.abs(K),Math.abs(M))===Math.abs(M),ae=Math.max(Math.abs(K),Math.abs(M))===Math.abs(K),ve=L.scrollHeight-L.clientHeight,de=L.scrollWidth-L.clientWidth,be=document.defaultView.getComputedStyle(L),z=be.overflowY==="auto"||be.overflowY==="scroll",ne=be.overflowX==="auto"||be.overflowX==="scroll",fe=ve&&z,ie=de&≠return H&&(!fe||fe&&(L.scrollTop>=ve&&M<0||L.scrollTop<=0&&M>0))||ae&&(!ie||ie&&(L.scrollLeft>=de&&K<0||L.scrollLeft<=0&&K>0))?w(P,L.parentNode,K,M):!1};function E(w){var P=b();return function(){var K=Object(r.a)(w),M;if(P){var H=Object(r.a)(this).constructor;M=Reflect.construct(K,arguments,H)}else M=K.apply(this,arguments);return Object(_.a)(this,M)}}function b(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}var v={},O=function(w){Object(m.a)(L,w);var P=E(L);function L(K){var M;return Object(f.a)(this,L),M=P.call(this,K),M.domFocus=function(){M.dom&&M.dom.focus()},M.removeStartHandler=function(H){if(H.touches.length>1)return;M.startPos={x:H.touches[0].clientX,y:H.touches[0].clientY}},M.removeMoveHandler=function(H){if(H.changedTouches.length>1)return;var ae=H.currentTarget,ve=H.changedTouches[0].clientX-M.startPos.x,de=H.changedTouches[0].clientY-M.startPos.y;(ae===M.maskDom||ae===M.handlerDom||ae===M.contentDom&&A(ae,H.target,ve,de))&&H.cancelable&&H.preventDefault()},M.transitionEnd=function(H){var ae=H.target;C(ae,l,M.transitionEnd),ae.style.transition=""},M.onKeyDown=function(H){if(H.keyCode===n.a.ESC){var ae=M.props.onClose;H.stopPropagation(),ae&&ae(H)}},M.onWrapperTransitionEnd=function(H){var ae=M.props,ve=ae.open,de=ae.afterVisibleChange;H.target===M.contentWrapper&&H.propertyName.match(/transform$/)&&(M.dom.style.transition="",!ve&&M.getCurrentDrawerSome()&&(document.body.style.overflowX="",M.maskDom&&(M.maskDom.style.left="",M.maskDom.style.width="")),de&&de(!!ve))},M.openLevelTransition=function(){var H=M.props,ae=H.open,ve=H.width,de=H.height,be=M.getHorizontalBoolAndPlacementName(),z=be.isHorizontal,ne=be.placementName,fe=M.contentDom?M.contentDom.getBoundingClientRect()[z?"width":"height"]:0,ie=(z?ve:de)||fe;M.setLevelAndScrolling(ae,ne,ie)},M.setLevelTransform=function(H,ae,ve,de){var be=M.props,z=be.placement,ne=be.levelMove,fe=be.duration,ie=be.ease,oe=be.showMask;M.levelDom.forEach(function(U){U.style.transition="transform ".concat(fe," ").concat(ie),g(U,l,M.transitionEnd);var ee=H?ve:0;if(ne){var J=x(ne,{target:U,open:H});ee=H?J[0]:J[1]||0}var le=typeof ee=="number"?"".concat(ee,"px"):ee,Pe=z==="left"||z==="top"?le:"-".concat(le);Pe=oe&&z==="right"&&de?"calc(".concat(Pe," + ").concat(de,"px)"):Pe,U.style.transform=ee?"".concat(ae,"(").concat(Pe,")"):""})},M.setLevelAndScrolling=function(H,ae,ve){var de=M.props.onChange;if(!T){var be=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(a.a)(!0):0;M.setLevelTransform(H,ae,ve,be),M.toggleScrollingToDrawerAndBody(be)}de&&de(H)},M.toggleScrollingToDrawerAndBody=function(H){var ae=M.props,ve=ae.getOpenCount,de=ae.getContainer,be=ae.showMask,z=ae.open,ne=de&&de(),fe=ve&&ve();if(ne&&ne.parentNode===document.body&&be){var ie=["touchstart"],oe=[document.body,M.maskDom,M.handlerDom,M.contentDom];z&&document.body.style.overflow!=="hidden"?(H&&M.addScrollingEffect(H),fe===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",oe.forEach(function(U,ee){if(!U)return;g(U,ie[ee]||"touchmove",ee?M.removeMoveHandler:M.removeStartHandler,M.passive)})):M.getCurrentDrawerSome()&&(fe||(document.body.style.overflow=""),document.body.style.touchAction="",H&&M.remScrollingEffect(H),oe.forEach(function(U,ee){if(!U)return;C(U,ie[ee]||"touchmove",ee?M.removeMoveHandler:M.removeStartHandler,M.passive)}))}},M.addScrollingEffect=function(H){var ae=M.props,ve=ae.placement,de=ae.duration,be=ae.ease,z=ae.getOpenCount,ne=ae.switchScrollingEffect,fe=z&&z();fe===1&&ne();var ie="width ".concat(de," ").concat(be),oe="transform ".concat(de," ").concat(be);M.dom.style.transition="none";switch(ve){case"right":M.dom.style.transform="translateX(-".concat(H,"px)");break;case"top":case"bottom":M.dom.style.width="calc(100% - ".concat(H,"px)"),M.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(M.timeout),M.timeout=setTimeout(function(){M.dom&&(M.dom.style.transition="".concat(oe,",").concat(ie),M.dom.style.width="",M.dom.style.transform="")})},M.remScrollingEffect=function(H){var ae=M.props,ve=ae.placement,de=ae.duration,be=ae.ease,z=ae.getOpenCount,ne=ae.switchScrollingEffect,fe=z&&z();fe||ne(!0),u&&(document.body.style.overflowX="hidden"),M.dom.style.transition="none";var ie,oe="width ".concat(de," ").concat(be),U="transform ".concat(de," ").concat(be);switch(ve){case"left":{M.dom.style.width="100%",oe="width 0s ".concat(be," ").concat(de);break}case"right":{M.dom.style.transform="translateX(".concat(H,"px)"),M.dom.style.width="100%",oe="width 0s ".concat(be," ").concat(de),M.maskDom&&(M.maskDom.style.left="-".concat(H,"px"),M.maskDom.style.width="calc(100% + ".concat(H,"px)"));break}case"top":case"bottom":{M.dom.style.width="calc(100% + ".concat(H,"px)"),M.dom.style.height="100%",M.dom.style.transform="translateZ(0)",ie="height 0s ".concat(be," ").concat(de);break}default:break}clearTimeout(M.timeout),M.timeout=setTimeout(function(){M.dom&&(M.dom.style.transition="".concat(U,",").concat(ie?"".concat(ie,","):"").concat(oe),M.dom.style.transform="",M.dom.style.width="",M.dom.style.height="")})},M.getCurrentDrawerSome=function(){return!Object.keys(v).some(function(H){return v[H]})},M.getLevelDom=function(H){var ae=H.level,ve=H.getContainer;if(T)return;var de=ve&&ve(),be=de?de.parentNode:null;if(M.levelDom=[],ae==="all"){var z=be?Array.prototype.slice.call(be.children):[];z.forEach(function(ne){ne.nodeName!=="SCRIPT"&&ne.nodeName!=="STYLE"&&ne.nodeName!=="LINK"&&ne!==de&&M.levelDom.push(ne)})}else ae&&t(ae).forEach(function(ne){document.querySelectorAll(ne).forEach(function(fe){M.levelDom.push(fe)})})},M.getHorizontalBoolAndPlacementName=function(){var H=M.props.placement,ae=H==="left"||H==="right",ve="translate".concat(ae?"X":"Y");return{isHorizontal:ae,placementName:ve}},M.state={_self:Object(o.a)(M)},M}return Object(k.a)(L,[{key:"componentDidMount",value:function(){var M=this;if(!T){var H=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return H=!0,null}}))}catch(z){}this.passive=H?{passive:!1}:!1}var ae=this.props,ve=ae.open,de=ae.getContainer,be=de&&de();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),ve&&(be&&be.parentNode===document.body&&(v[this.drawerId]=ve),this.openLevelTransition(),this.forceUpdate(function(){M.domFocus()}))}},{key:"componentDidUpdate",value:function(M){var H=this.props,ae=H.open,ve=H.getContainer,de=ve&&ve();ae!==M.open&&(ae&&this.domFocus(),de&&de.parentNode===document.body&&(v[this.drawerId]=!!ae),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var M=this.props,H=M.getOpenCount,ae=M.open,ve=M.switchScrollingEffect,de=typeof H=="function"&&H();delete v[this.drawerId],ae&&(this.setLevelTransform(!1),document.body.style.touchAction=""),de||(document.body.style.overflow="",ve(!0))}},{key:"render",value:function(){var M,H=this,ae=this.props,ve=ae.className,de=ae.children,be=ae.style,z=ae.width,ne=ae.height,fe=ae.defaultOpen,ie=ae.open,oe=ae.prefixCls,U=ae.placement,ee=ae.level,J=ae.levelMove,le=ae.ease,Pe=ae.duration,Qe=ae.getContainer,$e=ae.handler,et=ae.onChange,Ve=ae.afterVisibleChange,ke=ae.showMask,Oe=ae.maskClosable,Ce=ae.maskStyle,ue=ae.onClose,N=ae.onHandleClick,te=ae.keyboard,F=ae.getOpenCount,Ae=ae.switchScrollingEffect,tt=Object(S.a)(ae,["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"]),he=this.dom?ie:!1,We=s()(oe,(M={},Object(c.a)(M,"".concat(oe,"-").concat(U),!0),Object(c.a)(M,"".concat(oe,"-open"),he),Object(c.a)(M,ve||"",!!ve),Object(c.a)(M,"no-mask",!ke),M)),rt=this.getHorizontalBoolAndPlacementName(),V=rt.placementName,Be=U==="left"||U==="top"?"-100%":"100%",xe=he?"":"".concat(V,"(").concat(Be,")"),Le=$e&&d.cloneElement($e,{onClick:function(Ne){$e.props.onClick&&$e.props.onClick(),N&&N(Ne)},ref:function(Ne){H.handlerDom=Ne}});return d.createElement("div",Object.assign({},tt,{tabIndex:-1,className:We,style:be,ref:function(Ne){H.dom=Ne},onKeyDown:he&&te?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),ke&&d.createElement("div",{className:"".concat(oe,"-mask"),onClick:Oe?ue:void 0,style:Ce,ref:function(Ne){H.maskDom=Ne}}),d.createElement("div",{className:"".concat(oe,"-content-wrapper"),style:{transform:xe,msTransform:xe,width:y(z)?"".concat(z,"px"):z,height:y(ne)?"".concat(ne,"px"):ne},ref:function(Ne){H.contentWrapper=Ne}},d.createElement("div",{className:"".concat(oe,"-content"),ref:function(Ne){H.contentDom=Ne},onTouchStart:he&&ke?this.removeStartHandler:void 0,onTouchMove:he&&ke?this.removeMoveHandler:void 0},de),Le))}}],[{key:"getDerivedStateFromProps",value:function(M,H){var ae=H.prevProps,ve=H._self,de={prevProps:M};if(ae!==void 0){var be=M.placement,z=M.level;be!==ae.placement&&(ve.contentDom=null),z!==ae.level&&ve.getLevelDom(M)}return de}}]),L}(d.Component);O.defaultProps={switchScrollingEffect:function(){}};var D=O;function W(w){var P=Q();return function(){var K=Object(r.a)(w),M;if(P){var H=Object(r.a)(this).constructor;M=Reflect.construct(K,arguments,H)}else M=K.apply(this,arguments);return Object(_.a)(this,M)}}function Q(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}var j=function(w){Object(m.a)(L,w);var P=W(L);function L(K){var M;Object(f.a)(this,L),M=P.call(this,K),M.onHandleClick=function(ae){var ve=M.props,de=ve.onHandleClick,be=ve.open;if(de&&de(ae),typeof be=="undefined"){var z=M.state.open;M.setState({open:!z})}},M.onClose=function(ae){var ve=M.props,de=ve.onClose,be=ve.open;de&&de(ae),typeof be=="undefined"&&M.setState({open:!1})};var H=typeof K.open!="undefined"?K.open:!!K.defaultOpen;return M.state={open:H},"onMaskClick"in K&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),M}return Object(k.a)(L,[{key:"render",value:function(){var M=this,H=this.props,ae=H.defaultOpen,ve=H.getContainer,de=H.wrapperClassName,be=H.forceRender,z=H.handler,ne=Object(S.a)(H,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),fe=this.state.open;if(!ve)return d.createElement("div",{className:de,ref:function(U){M.dom=U}},d.createElement(D,Object.assign({},ne,{open:fe,handler:z,getContainer:function(){return M.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var ie=!!z||be;return d.createElement(p.a,{visible:fe,forceRender:ie,getContainer:ve,wrapperClassName:de},function(oe){var U=oe.visible,ee=oe.afterClose,J=Object(S.a)(oe,["visible","afterClose"]);return d.createElement(D,Object.assign({},ne,J,{open:U!==void 0?U:fe,afterVisibleChange:ee!==void 0?ee:ne.afterVisibleChange,handler:z,onClose:M.onClose,onHandleClick:M.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(M,H){var ae=H.prevProps,ve={prevProps:M};return typeof ae!="undefined"&&M.open!==ae.open&&(ve.open=M.open),ve}}]),L}(d.Component);j.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:d.createElement("div",{className:"drawer-handle"},d.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Z=j,Y=I.a=Z},fr4D:function(Re,I,h){"use strict";h.d(I,"a",function(){return _}),h.d(I,"c",function(){return p}),h.d(I,"f",function(){return c}),h.d(I,"b",function(){return a}),h.d(I,"h",function(){return t}),h.d(I,"e",function(){return u}),h.d(I,"i",function(){return x}),h.d(I,"d",function(){return T}),h.d(I,"g",function(){return E});var S=h("9og8"),f=h("WmNS"),k=h.n(f),m=h("ErOA");function _(v){return r.apply(this,arguments)}function r(){return r=Object(S.a)(k.a.mark(function v(O){return k.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects.json",{method:"post",body:O}));case 1:case"end":return W.stop()}},v)})),r.apply(this,arguments)}function p(v,O){return d.apply(this,arguments)}function d(){return d=Object(S.a)(k.a.mark(function v(O,D){return k.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(D,".json"),{method:"put",body:O}));case 1:case"end":return Q.stop()}},v)})),d.apply(this,arguments)}function c(v){return o.apply(this,arguments)}function o(){return o=Object(S.a)(k.a.mark(function v(O){return k.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:O}));case 1:case"end":return W.stop()}},v)})),o.apply(this,arguments)}function i(v){return s.apply(this,arguments)}function s(){return s=Object(S.a)(k.a.mark(function v(O){return k.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects.json",{method:"get",params:O}));case 1:case"end":return W.stop()}},v)})),s.apply(this,arguments)}function a(v,O){return n.apply(this,arguments)}function n(){return n=Object(S.a)(k.a.mark(function v(O,D){return k.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,".json"),{method:"delete",body:D}));case 1:case"end":return Q.stop()}},v)})),n.apply(this,arguments)}function t(v){return e.apply(this,arguments)}function e(){return e=Object(S.a)(k.a.mark(function v(O){return k.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,".json"),{method:"get"}));case 1:case"end":return W.stop()}},v)})),e.apply(this,arguments)}function u(v){return l.apply(this,arguments)}function l(){return l=Object(S.a)(k.a.mark(function v(O){return k.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/data_sets.json",{method:"get",params:O}));case 1:case"end":return W.stop()}},v)})),l.apply(this,arguments)}function g(v){return C.apply(this,arguments)}function C(){return C=Object(S.a)(k.a.mark(function v(O){return k.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/remove_data_sets.json"),{method:"get"}));case 1:case"end":return W.stop()}},v)})),C.apply(this,arguments)}function x(v){return y.apply(this,arguments)}function y(){return y=Object(S.a)(k.a.mark(function v(O){return k.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/start_environment.json"),{method:"post"}));case 1:case"end":return W.stop()}},v)})),y.apply(this,arguments)}function T(v,O){return A.apply(this,arguments)}function A(){return A=Object(S.a)(k.a.mark(function v(O,D){return k.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/fork_sci_project.json"),{method:"post",body:D}));case 1:case"end":return Q.stop()}},v)})),A.apply(this,arguments)}function E(v,O){return b.apply(this,arguments)}function b(){return b=Object(S.a)(k.a.mark(function v(O,D){return k.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/get_data_sets.json"),{method:"get",params:D}));case 1:case"end":return Q.stop()}},v)})),b.apply(this,arguments)}},fyJ8:function(Re,I,h){"use strict";var S=h("rePB"),f=h("VTBJ"),k=h("Ff2n"),m=h("U8pU"),_=h("q1tI"),r=h.n(_),p=h("TSYQ"),d=h.n(p),c=h("c+Xe"),o=h("sR1s");function i(e){return e&&Object(m.a)(e)==="object"&&!Array.isArray(e)&&!_.isValidElement(e)}function s(e){return typeof e=="string"?!0:Object(c.c)(e)}function a(e,u){var l,g=e.prefixCls,C=e.className,x=e.record,y=e.index,T=e.dataIndex,A=e.render,E=e.children,b=e.component,v=b===void 0?"td":b,O=e.colSpan,D=e.rowSpan,W=e.fixLeft,Q=e.fixRight,j=e.firstFixLeft,Z=e.lastFixLeft,Y=e.firstFixRight,w=e.lastFixRight,P=e.appendNode,L=e.additionalProps,K=L===void 0?{}:L,M=e.ellipsis,H=e.align,ae=e.rowType,ve=e.isSticky,de="".concat(g,"-cell"),be,z;if(E)z=E;else{var ne=Object(o.b)(x,T);if(z=ne,A){var fe=A(ne,x,y);i(fe)?(z=fe.children,be=fe.props):z=fe}}Object(m.a)(z)==="object"&&!Array.isArray(z)&&!_.isValidElement(z)&&(z=null),M&&(Z||Y)&&(z=_.createElement("span",{className:"".concat(de,"-content")},z));var ie=be||{},oe=ie.colSpan,U=ie.rowSpan,ee=ie.style,J=ie.className,le=Object(k.a)(ie,["colSpan","rowSpan","style","className"]),Pe=oe!==void 0?oe:O,Qe=U!==void 0?U:D;if(Pe===0||Qe===0)return null;var $e={},et=typeof W=="number",Ve=typeof Q=="number";et&&($e.position="sticky",$e.left=W),Ve&&($e.position="sticky",$e.right=Q);var ke={};H&&(ke.textAlign=H);var Oe,Ce=M===!0?{showTitle:!0}:M;Ce&&(Ce.showTitle||ae==="header")&&(typeof z=="string"||typeof z=="number"?Oe=z.toString():_.isValidElement(z)&&typeof z.props.children=="string"&&(Oe=z.props.children));var ue=Object(f.a)(Object(f.a)(Object(f.a)({title:Oe},le),K),{},{colSpan:Pe&&Pe!==1?Pe:null,rowSpan:Qe&&Qe!==1?Qe:null,className:d()(de,C,(l={},Object(S.a)(l,"".concat(de,"-fix-left"),et),Object(S.a)(l,"".concat(de,"-fix-left-first"),j),Object(S.a)(l,"".concat(de,"-fix-left-last"),Z),Object(S.a)(l,"".concat(de,"-fix-right"),Ve),Object(S.a)(l,"".concat(de,"-fix-right-first"),Y),Object(S.a)(l,"".concat(de,"-fix-right-last"),w),Object(S.a)(l,"".concat(de,"-ellipsis"),M),Object(S.a)(l,"".concat(de,"-with-append"),P),Object(S.a)(l,"".concat(de,"-fix-sticky"),(et||Ve)&&ve),l),K.className,J),style:Object(f.a)(Object(f.a)(Object(f.a)(Object(f.a)({},K.style),ke),$e),ee),ref:s(v)?u:null});return _.createElement(v,Object.assign({},ue),P,z)}var n=_.forwardRef(a);n.displayName="Cell";var t=_.memo(n,function(e,u){return u.shouldCellUpdate?!u.shouldCellUpdate(u.record,e.record):!1});I.a=t},gIYZ:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};I.default=S},h78n:function(Re,I,h){"use strict";h.d(I,"a",function(){return j});var S=h("q1tI"),f=h.n(S),k=h("TSYQ"),m=h.n(k),_={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},r=function(w){var P=w.map(function(){return Object(S.useRef)()}),L=Object(S.useRef)();return Object(S.useEffect)(function(){var K=Date.now(),M=!1;Object.keys(P).forEach(function(H){var ae=P[H].current;if(!ae)return;M=!0;var ve=ae.style;ve.transitionDuration=".3s, .3s, .3s, .06s",L.current&&K-L.current<100&&(ve.transitionDuration="0s, 0s")}),M&&(L.current=Date.now())}),[P]};function p(){return p=Object.assign||function(Y){for(var w=1;wY.length)&&(w=Y.length);for(var P=0,L=new Array(w);P=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Y,L))continue;P[L]=Y[L]}}return P}function t(Y,w){if(Y==null)return{};var P={},L=Object.keys(Y),K,M;for(M=0;M=0)continue;P[K]=Y[K]}return P}var e=function(w){var P=w.className,L=w.percent,K=w.prefixCls,M=w.strokeColor,H=w.strokeLinecap,ae=w.strokeWidth,ve=w.style,de=w.trailColor,be=w.trailWidth,z=w.transition,ne=n(w,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ne.gapPosition;var fe=Array.isArray(L)?L:[L],ie=Array.isArray(M)?M:[M],oe=r(fe),U=d(oe,1),ee=U[0],J=ae/2,le=100-ae/2,Pe="M ".concat(H==="round"?J:0,",").concat(J,` - L `).concat(H==="round"?le:100,",").concat(J),Qe="0 0 100 ".concat(ae),$e=0;return f.a.createElement("svg",p({className:m()("".concat(K,"-line"),P),viewBox:Qe,preserveAspectRatio:"none",style:ve},ne),f.a.createElement("path",{className:"".concat(K,"-line-trail"),d:Pe,strokeLinecap:H,stroke:de,strokeWidth:be||ae,fillOpacity:"0"}),fe.map(function(et,Ve){var ke={strokeDasharray:"".concat(et,"px, 100px"),strokeDashoffset:"-".concat($e,"px"),transition:z||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Oe=ie[Ve]||ie[ie.length-1];return $e+=et,f.a.createElement("path",{key:Ve,className:"".concat(K,"-line-path"),d:Pe,strokeLinecap:H,stroke:Oe,strokeWidth:ae,fillOpacity:"0",ref:ee[Ve],style:ke})}))};e.defaultProps=_;var u=e;function l(){return l=Object.assign||function(Y){for(var w=1;wY.length)&&(w=Y.length);for(var P=0,L=new Array(w);P=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Y,L))continue;P[L]=Y[L]}}return P}function b(Y,w){if(Y==null)return{};var P={},L=Object.keys(Y),K,M;for(M=0;M=0)continue;P[K]=Y[K]}return P}var v=0;function O(Y){return+Y.replace("%","")}function D(Y){return Array.isArray(Y)?Y:[Y]}function W(Y,w,P,L){var K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,M=arguments.length>5?arguments[5]:void 0,H=50-L/2,ae=0,ve=-H,de=0,be=-2*H;switch(M){case"left":ae=-H,ve=0,de=2*H,be=0;break;case"right":ae=H,ve=0,de=-2*H,be=0;break;case"bottom":ve=H,be=2*H;break;default:}var z="M 50,50 m ".concat(ae,",").concat(ve,` +`,j=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Z={},Y;function w(be){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=be.getAttribute("id")||be.getAttribute("data-reactid")||be.getAttribute("name");if(z&&Z[ne])return Z[ne];var fe=window.getComputedStyle(be),ie=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),U=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),ee=j.map(function(le){return"".concat(le,":").concat(fe.getPropertyValue(le))}).join(";"),J={sizingStyle:ee,paddingSize:oe,borderSize:U,boxSizing:ie};return z&&ne&&(Z[ne]=J),J}function P(be){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Y||(Y=document.createElement("textarea"),Y.setAttribute("tab-index","-1"),Y.setAttribute("aria-hidden","true"),document.body.appendChild(Y)),be.getAttribute("wrap")?Y.setAttribute("wrap",be.getAttribute("wrap")):Y.removeAttribute("wrap");var ie=w(be,z),oe=ie.paddingSize,U=ie.borderSize,ee=ie.boxSizing,J=ie.sizingStyle;Y.setAttribute("style","".concat(J,";").concat(Q)),Y.value=be.value||be.placeholder||"";var le=Number.MIN_SAFE_INTEGER,Pe=Number.MAX_SAFE_INTEGER,Qe=Y.scrollHeight,$e;if(ee==="border-box"?Qe+=U:ee==="content-box"&&(Qe-=oe),ne!==null||fe!==null){Y.value=" ";var et=Y.scrollHeight-oe;ne!==null&&(le=et*ne,ee==="border-box"&&(le=le+oe+U),Qe=Math.max(le,Qe)),fe!==null&&(Pe=et*fe,ee==="border-box"&&(Pe=Pe+oe+U),$e=Qe>Pe?"":"hidden",Qe=Math.min(Pe,Qe))}return{height:Qe,minHeight:le,maxHeight:Pe,overflowY:$e,resize:"none"}}var k=h("Gytx"),K=h.n(k),M;(function(be){be[be.NONE=0]="NONE",be[be.RESIZING=1]="RESIZING",be[be.RESIZED=2]="RESIZED"})(M||(M={}));var H=function(be){Object(m.a)(ne,be);var z=Object(_.a)(ne);function ne(fe){var ie;return Object(f.a)(this,ne),ie=z.call(this,fe),ie.nextFrameActionId=void 0,ie.resizeFrameId=void 0,ie.textArea=void 0,ie.saveTextArea=function(oe){ie.textArea=oe},ie.handleResize=function(oe){var U=ie.state.resizeStatus,ee=ie.props,J=ee.autoSize,le=ee.onResize;if(U!==M.NONE)return;typeof le=="function"&&le(oe),J&&ie.resizeOnNextFrame()},ie.resizeOnNextFrame=function(){cancelAnimationFrame(ie.nextFrameActionId),ie.nextFrameActionId=requestAnimationFrame(ie.resizeTextarea)},ie.resizeTextarea=function(){var oe=ie.props.autoSize;if(!oe||!ie.textArea)return;var U=oe.minRows,ee=oe.maxRows,J=P(ie.textArea,!1,U,ee);ie.setState({textareaStyles:J,resizeStatus:M.RESIZING},function(){cancelAnimationFrame(ie.resizeFrameId),ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:M.RESIZED},function(){ie.resizeFrameId=requestAnimationFrame(function(){ie.setState({resizeStatus:M.NONE}),ie.fixFirefoxAutoScroll()})})})})},ie.renderTextArea=function(){var oe=ie.props,U=oe.prefixCls,ee=U===void 0?"rc-textarea":U,J=oe.autoSize,le=oe.onResize,Pe=oe.className,Qe=oe.disabled,$e=ie.state,et=$e.textareaStyles,Ve=$e.resizeStatus,Le=Object(O.a)(ie.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Oe=W()(ee,Pe,Object(d.a)({},"".concat(ee,"-disabled"),Qe));"value"in Le&&(Le.value=Le.value||"");var Ce=Object(p.a)(Object(p.a)(Object(p.a)({},ie.props.style),et),Ve===M.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return r.createElement(v,{onResize:ie.handleResize,disabled:!(J||le)},r.createElement("textarea",Object(S.a)({},Le,{className:Oe,style:Ce,ref:ie.saveTextArea})))},ie.state={textareaStyles:{},resizeStatus:M.NONE},ie}return Object(L.a)(ne,[{key:"componentDidUpdate",value:function(ie){(ie.value!==this.props.value||!K()(ie.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ie=this.textArea.selectionStart,oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(ie,oe)}}catch(U){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ne}(r.Component),ae=H,ve=function(be){Object(m.a)(ne,be);var z=Object(_.a)(ne);function ne(fe){var ie;Object(f.a)(this,ne),ie=z.call(this,fe),ie.resizableTextArea=void 0,ie.focus=function(){ie.resizableTextArea.textArea.focus()},ie.saveTextArea=function(U){ie.resizableTextArea=U},ie.handleChange=function(U){var ee=ie.props.onChange;ie.setValue(U.target.value,function(){ie.resizableTextArea.resizeTextarea()}),ee&&ee(U)},ie.handleKeyDown=function(U){var ee=ie.props,J=ee.onPressEnter,le=ee.onKeyDown;U.keyCode===13&&J&&J(U),le&&le(U)};var oe=typeof fe.value=="undefined"||fe.value===null?fe.defaultValue:fe.value;return ie.state={value:oe},ie}return Object(L.a)(ne,[{key:"setValue",value:function(ie,oe){"value"in this.props||this.setState({value:ie},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return r.createElement(ae,Object(S.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ie){return"value"in ie?{value:ie.value}:null}}]),ne}(r.Component),de=I.default=ve},YJ9k:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;ps||e>i&&u=s&&l>=a?e-i-n:u>s&&la?u-s+t:0}var _=function(i,s){var a=window,n=s.scrollMode,t=s.block,e=s.inline,u=s.boundary,l=s.skipOverflowHiddenElements,g=typeof u=="function"?u:function(et){return et!==u};if(!S(i))throw new TypeError("Invalid target");for(var C=document.scrollingElement||document.documentElement,x=[],y=i;S(y)&&g(y);){if((y=y.parentElement)===C){x.push(y);break}y!=null&&y===document.body&&L(y)&&!L(document.documentElement)||y!=null&&L(y,l)&&x.push(y)}for(var T=a.visualViewport?a.visualViewport.width:innerWidth,A=a.visualViewport?a.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,v=i.getBoundingClientRect(),O=v.height,D=v.width,W=v.top,Q=v.right,j=v.bottom,Z=v.left,Y=t==="start"||t==="nearest"?W:t==="end"?j:W+O/2,w=e==="center"?Z+D/2:e==="end"?Q:Z,P=[],k=0;k=0&&Z>=0&&j<=A&&Q<=T&&W>=ve&&j<=be&&Z>=z&&Q<=de)return P;var ne=getComputedStyle(K),fe=parseInt(ne.borderLeftWidth,10),ie=parseInt(ne.borderTopWidth,10),oe=parseInt(ne.borderRightWidth,10),U=parseInt(ne.borderBottomWidth,10),ee=0,J=0,le="offsetWidth"in K?K.offsetWidth-K.clientWidth-fe-oe:0,Pe="offsetHeight"in K?K.offsetHeight-K.clientHeight-ie-U:0;if(C===K)ee=t==="start"?Y:t==="end"?Y-A:t==="nearest"?m(b,b+A,A,ie,U,b+Y,b+Y+O,O):Y-A/2,J=e==="start"?w:e==="center"?w-T/2:e==="end"?w-T:m(E,E+T,T,fe,oe,E+w,E+w+D,D),ee=Math.max(0,ee+b),J=Math.max(0,J+E);else{ee=t==="start"?Y-ve-ie:t==="end"?Y-be+U+Pe:t==="nearest"?m(ve,be,H,ie,U+Pe,Y,Y+O,O):Y-(ve+H/2)+Pe/2,J=e==="start"?w-z-fe:e==="center"?w-(z+ae/2)+le/2:e==="end"?w-de+oe+le:m(z,de,ae,fe,oe+le,w,w+D,D);var Qe=K.scrollLeft,$e=K.scrollTop;Y+=$e-(ee=Math.max(0,Math.min($e+ee,K.scrollHeight-H+Pe))),w+=Qe-(J=Math.max(0,Math.min(Qe+J,K.scrollWidth-ae+le)))}P.push({el:K,top:ee,left:J})}return P};function r(i){return i===Object(i)&&Object.keys(i).length!==0}function p(i,s){s===void 0&&(s="auto");var a="scrollBehavior"in document.body.style;i.forEach(function(n){var t=n.el,e=n.top,u=n.left;t.scroll&&a?t.scroll({top:e,left:u,behavior:s}):(t.scrollTop=e,t.scrollLeft=u)})}function d(i){return i===!1?{block:"end",inline:"nearest"}:r(i)?i:{block:"start",inline:"nearest"}}function c(i,s){var a=!i.ownerDocument.documentElement.contains(i);if(r(s)&&typeof s.behavior=="function")return s.behavior(a?[]:_(i,s));if(a)return;var n=d(s);return p(_(i,n),n.behavior)}var o=I.a=c},Zss7:function(Re,I,h){var S;(function(f){var L=/^\s+/,m=/\s+$/,_=0,r=f.round,p=f.min,d=f.max,c=f.random;function o(U,ee){if(U=U||"",ee=ee||{},U instanceof o)return U;if(!(this instanceof o))return new o(U,ee);var J=i(U);this._originalInput=U,this._r=J.r,this._g=J.g,this._b=J.b,this._a=J.a,this._roundA=r(100*this._a)/100,this._format=ee.format||J.format,this._gradientType=ee.gradientType,this._r<1&&(this._r=r(this._r)),this._g<1&&(this._g=r(this._g)),this._b<1&&(this._b=r(this._b)),this._ok=J.ok,this._tc_id=_++}o.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 U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),ee,J,le,Pe,Qe,$e;return ee=U.r/255,J=U.g/255,le=U.b/255,ee<=.03928?Pe=ee/12.92:Pe=f.pow((ee+.055)/1.055,2.4),J<=.03928?Qe=J/12.92:Qe=f.pow((J+.055)/1.055,2.4),le<=.03928?$e=le/12.92:$e=f.pow((le+.055)/1.055,2.4),.2126*Pe+.7152*Qe+.0722*$e},setAlpha:function(U){return this._a=P(U),this._roundA=r(100*this._a)/100,this},toHsv:function(){var U=t(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=t(this._r,this._g,this._b),ee=r(U.h*360),J=r(U.s*100),le=r(U.v*100);return this._a==1?"hsv("+ee+", "+J+"%, "+le+"%)":"hsva("+ee+", "+J+"%, "+le+"%, "+this._roundA+")"},toHsl:function(){var U=a(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=a(this._r,this._g,this._b),ee=r(U.h*360),J=r(U.s*100),le=r(U.l*100);return this._a==1?"hsl("+ee+", "+J+"%, "+le+"%)":"hsla("+ee+", "+J+"%, "+le+"%, "+this._roundA+")"},toHex:function(U){return u(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return l(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:r(this._r),g:r(this._g),b:r(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+r(this._r)+", "+r(this._g)+", "+r(this._b)+")":"rgba("+r(this._r)+", "+r(this._g)+", "+r(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:r(k(this._r,255)*100)+"%",g:r(k(this._g,255)*100)+"%",b:r(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+r(k(this._r,255)*100)+"%, "+r(k(this._g,255)*100)+"%, "+r(k(this._b,255)*100)+"%)":"rgba("+r(k(this._r,255)*100)+"%, "+r(k(this._g,255)*100)+"%, "+r(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Y[u(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var ee="#"+g(this._r,this._g,this._b,this._a),J=ee,le=this._gradientType?"GradientType = 1, ":"";if(U){var Pe=o(U);J="#"+g(Pe._r,Pe._g,Pe._b,Pe._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+ee+",endColorstr="+J+")"},toString:function(U){var ee=!!U;U=U||this._format;var J=!1,le=this._a<1&&this._a>=0,Pe=!ee&&le&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return Pe?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&(J=this.toRgbString()),U==="prgb"&&(J=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&(J=this.toHexString()),U==="hex3"&&(J=this.toHexString(!0)),U==="hex4"&&(J=this.toHex8String(!0)),U==="hex8"&&(J=this.toHex8String()),U==="name"&&(J=this.toName()),U==="hsl"&&(J=this.toHslString()),U==="hsv"&&(J=this.toHsvString()),J||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(U,ee){var J=U.apply(null,[this].concat([].slice.call(ee)));return this._r=J._r,this._g=J._g,this._b=J._b,this.setAlpha(J._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(U,ee){return U.apply(null,[this].concat([].slice.call(ee)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},o.fromRatio=function(U,ee){if(typeof U=="object"){var J={};for(var le in U)U.hasOwnProperty(le)&&(le==="a"?J[le]=U[le]:J[le]=de(U[le]));U=J}return o(U,ee)};function i(U){var ee={r:0,g:0,b:0},J=1,le=null,Pe=null,Qe=null,$e=!1,et=!1;return typeof U=="string"&&(U=ie(U)),typeof U=="object"&&(fe(U.r)&&fe(U.g)&&fe(U.b)?(ee=s(U.r,U.g,U.b),$e=!0,et=String(U.r).substr(-1)==="%"?"prgb":"rgb"):fe(U.h)&&fe(U.s)&&fe(U.v)?(le=de(U.s),Pe=de(U.v),ee=e(U.h,le,Pe),$e=!0,et="hsv"):fe(U.h)&&fe(U.s)&&fe(U.l)&&(le=de(U.s),Qe=de(U.l),ee=n(U.h,le,Qe),$e=!0,et="hsl"),U.hasOwnProperty("a")&&(J=U.a)),J=P(J),{ok:$e,format:U.format||et,r:p(255,d(ee.r,0)),g:p(255,d(ee.g,0)),b:p(255,d(ee.b,0)),a:J}}function s(U,ee,J){return{r:k(U,255)*255,g:k(ee,255)*255,b:k(J,255)*255}}function a(U,ee,J){U=k(U,255),ee=k(ee,255),J=k(J,255);var le=d(U,ee,J),Pe=p(U,ee,J),Qe,$e,et=(le+Pe)/2;if(le==Pe)Qe=$e=0;else{var Ve=le-Pe;$e=et>.5?Ve/(2-le-Pe):Ve/(le+Pe);switch(le){case U:Qe=(ee-J)/Ve+(ee1&&(Ce-=1),Ce<1/6?Le+(Oe-Le)*6*Ce:Ce<1/2?Oe:Ce<2/3?Le+(Oe-Le)*(2/3-Ce)*6:Le}if(ee===0)le=Pe=Qe=J;else{var et=J<.5?J*(1+ee):J+ee-J*ee,Ve=2*J-et;le=$e(Ve,et,U+1/3),Pe=$e(Ve,et,U),Qe=$e(Ve,et,U-1/3)}return{r:le*255,g:Pe*255,b:Qe*255}}function t(U,ee,J){U=k(U,255),ee=k(ee,255),J=k(J,255);var le=d(U,ee,J),Pe=p(U,ee,J),Qe,$e,et=le,Ve=le-Pe;if($e=le===0?0:Ve/le,le==Pe)Qe=0;else{switch(le){case U:Qe=(ee-J)/Ve+(ee>1)+720)%360;--ee;)le.h=(le.h+Pe)%360,Qe.push(o(le));return Qe}function j(U,ee){ee=ee||6;for(var J=o(U).toHsv(),le=J.h,Pe=J.s,Qe=J.v,$e=[],et=1/ee;ee--;)$e.push(o({h:le,s:Pe,v:Qe})),Qe=(Qe+et)%1;return $e}o.mix=function(U,ee,J){J=J===0?0:J||50;var le=o(U).toRgb(),Pe=o(ee).toRgb(),Qe=J/100,$e={r:(Pe.r-le.r)*Qe+le.r,g:(Pe.g-le.g)*Qe+le.g,b:(Pe.b-le.b)*Qe+le.b,a:(Pe.a-le.a)*Qe+le.a};return o($e)},o.readability=function(U,ee){var J=o(U),le=o(ee);return(f.max(J.getLuminance(),le.getLuminance())+.05)/(f.min(J.getLuminance(),le.getLuminance())+.05)},o.isReadable=function(U,ee,J){var le=o.readability(U,ee),Pe,Qe;Qe=!1,Pe=oe(J);switch(Pe.level+Pe.size){case"AAsmall":case"AAAlarge":Qe=le>=4.5;break;case"AAlarge":Qe=le>=3;break;case"AAAsmall":Qe=le>=7;break}return Qe},o.mostReadable=function(U,ee,J){var le=null,Pe=0,Qe,$e,et,Ve;J=J||{},$e=J.includeFallbackColors,et=J.level,Ve=J.size;for(var Le=0;LePe&&(Pe=Qe,le=o(ee[Le]));return o.isReadable(U,le,{level:et,size:Ve})||!$e?le:(J.includeFallbackColors=!1,o.mostReadable(U,["#fff","#000"],J))};var Z=o.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"},Y=o.hexNames=w(Z);function w(U){var ee={};for(var J in U)U.hasOwnProperty(J)&&(ee[U[J]]=J);return ee}function P(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function k(U,ee){H(U)&&(U="100%");var J=ae(U);return U=p(ee,d(0,parseFloat(U))),J&&(U=parseInt(U*ee,10)/100),f.abs(U-ee)<1e-6?1:U%ee/parseFloat(ee)}function K(U){return p(1,d(0,U))}function M(U){return parseInt(U,16)}function H(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function ae(U){return typeof U=="string"&&U.indexOf("%")!=-1}function ve(U){return U.length==1?"0"+U:""+U}function de(U){return U<=1&&(U=U*100+"%"),U}function be(U){return f.round(parseFloat(U)*255).toString(16)}function z(U){return M(U)/255}var ne=function(){var U="[-\\+]?\\d+%?",ee="[-\\+]?\\d*\\.\\d+%?",J="(?:"+ee+")|(?:"+U+")",le="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",Pe="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?";return{CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+Pe),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+Pe),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+Pe),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 fe(U){return!!ne.CSS_UNIT.exec(U)}function ie(U){U=U.replace(L,"").replace(m,"").toLowerCase();var ee=!1;if(Z[U])U=Z[U],ee=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var J;return(J=ne.rgb.exec(U))?{r:J[1],g:J[2],b:J[3]}:(J=ne.rgba.exec(U))?{r:J[1],g:J[2],b:J[3],a:J[4]}:(J=ne.hsl.exec(U))?{h:J[1],s:J[2],l:J[3]}:(J=ne.hsla.exec(U))?{h:J[1],s:J[2],l:J[3],a:J[4]}:(J=ne.hsv.exec(U))?{h:J[1],s:J[2],v:J[3]}:(J=ne.hsva.exec(U))?{h:J[1],s:J[2],v:J[3],a:J[4]}:(J=ne.hex8.exec(U))?{r:M(J[1]),g:M(J[2]),b:M(J[3]),a:z(J[4]),format:ee?"name":"hex8"}:(J=ne.hex6.exec(U))?{r:M(J[1]),g:M(J[2]),b:M(J[3]),format:ee?"name":"hex"}:(J=ne.hex4.exec(U))?{r:M(J[1]+""+J[1]),g:M(J[2]+""+J[2]),b:M(J[3]+""+J[3]),a:z(J[4]+""+J[4]),format:ee?"name":"hex8"}:(J=ne.hex3.exec(U))?{r:M(J[1]+""+J[1]),g:M(J[2]+""+J[2]),b:M(J[3]+""+J[3]),format:ee?"name":"hex"}:!1}function oe(U){var ee,J;return U=U||{level:"AA",size:"small"},ee=(U.level||"AA").toUpperCase(),J=(U.size||"small").toLowerCase(),ee!=="AA"&&ee!=="AAA"&&(ee="AA"),J!=="small"&&J!=="large"&&(J="small"),{level:ee,size:J}}Re.exports?Re.exports=o:!(S=function(){return o}.call(I,h,I,Re),S!==void 0&&(Re.exports=S))})(Math)},bL63:function(Re,I,h){Re.exports={bg:"bg___1pgJK",wrap:"wrap___3w7gA",modal:"modal___Z863a",content:"content_____WML",head:"head___74qy3",headCount:"headCount___DydFZ",button:"button___FkPST",itemWrap:"itemWrap___2VFfI",imgWrap:"imgWrap___3YSCX",img:"img___31A6T",manager:"manager___7OBds",itemContent:"itemContent___NJ5LZ",nameWrap:"nameWrap___1nFjv",name:"name___1KHZI",actionGroup:"actionGroup___2FPTE",deleteIcon:"deleteIcon___OtxKH",schoolWrap:"schoolWrap___3vfoh",school:"school___2QmIS",countWrap:"countWrap___22ogC",deletetitle:"deletetitle___3lzPN",yseTitle:"yseTitle___3xmOc"}},bPs0:function(Re,I,h){"use strict";h.d(I,"b",function(){return C});var S=h("k1fw"),f=h("9og8"),L=h("2qtc"),m=h("kLXV"),_=h("tJVT"),r=h("PpiC"),p=h("aHsQ"),d=h("sGsY"),c=h("WmNS"),o=h.n(c),i=h("q1tI"),s=h.n(i),a=h("bntm"),n=h("V0Rq"),t=h("wd/R"),e=h.n(t),u=h("Ty5D"),l=h("9kvl"),g=d.a.Countdown,C=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],x=function(T){var A=T.globalSetting,E=T.loading,b=T.user,v=T.exercise,O=T.dispatch,D=Object(r.a)(T,["globalSetting","loading","user","exercise","dispatch"]),W=Object(i.useState)({}),Q=Object(_.a)(W,2),j=Q[0],Z=Q[1],Y=m.a.useModal(),w=Object(_.a)(Y,2),P=w[0],k=w[1],K=Object(i.useRef)(),M=Object(i.useRef)(null),H=Object(i.useRef)(null),ae=Object(i.useState)(!0),ve=Object(_.a)(ae,2),de=ve[0],be=ve[1],z=Object(u.h)().query,ne=Object(u.i)();Object(i.useEffect)(function(){var et,Ve,Le,Oe,Ce;if(clearTimeout(M.current),document.addEventListener(Object(a.c)(),$e,!1),window.addEventListener("blur",Pe,!1),(et=v.exerciseUserInfo)!==null&&et!==void 0&&et.screen_open&&Object(a.a)()&&(O({type:"globalSetting/headerFooterToggle",payload:!1}),be(!1)),(Ve=v.exerciseUserInfo)!==null&&Ve!==void 0&&Ve.screen_at&&e()().diff(e()((Le=v.exerciseUserInfo)===null||Le===void 0?void 0:Le.screen_at),"seconds")>0)fe();else if((Oe=v.exerciseUserInfo)!==null&&Oe!==void 0&&Oe.screen_open&&!Object(a.a)()){var ue=document.domain==="kepukehuan.educoder.net"?30:v.exerciseUserInfo.screen_sec+10+1;K.current=m.a.info({icon:null,content:s.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",s.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",v.exerciseUserInfo.screen_num-v.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",s.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:s.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",s.a.createElement("span",{style:{display:"inline-block"}},s.a.createElement(g,{onFinish:function(){var te;fe(),(te=K.current)===null||te===void 0||te.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+ue*1e3})),"S\uFF09"),onOk:function(){var te;(te=K.current)===null||te===void 0||te.destroy(),be(!1),Object(a.d)(document.body),document.getElementById("root").addEventListener("click",ie,!1)}})}return(Ce=v.exerciseUserInfo)!==null&&Ce!==void 0&&Ce.screen_open&&!Object(a.a)()||document.getElementById("root").addEventListener("click",ie,!1),function(){document.getElementById("root").removeEventListener("click",ie,!1),document.removeEventListener(Object(a.c)(),$e,!1),window.removeEventListener("blur",Pe,!1),clearTimeout(M.current)}},[]),Object(i.useEffect)(function(){setTimeout(function(){v.actionTabs.removeEventListenerExitScreen&&(clearTimeout(M.current),document.getElementById("root").removeEventListener("click",ie,!1),document.removeEventListener(Object(a.c)(),$e,!1))},500),oe()},[v.actionTabs]),Object(i.useEffect)(function(){setTimeout(function(){v.exerciseUserInfo.used_screen_num>v.exerciseUserInfo.screen_num?J():!de},500)},[v.exerciseUserInfo]);var fe=function(){var et=Object(f.a)(o.a.mark(function Ve(){var Le;return o.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Qe();case 2:Le=Ce.sent,setTimeout(function(){var ue,N;(ue=K.current)===null||ue===void 0||ue.destroy(),K.current=m.a.info({okText:s.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:s.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",s.a.createElement("span",{className:"c-red"},Le.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",s.a.createElement("span",{className:"c-red"},(N=v.exerciseUserInfo)===null||N===void 0?void 0:N.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var te=Object(f.a)(o.a.mark(function Ae(){return o.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:Object(a.d)(document.body);case 1:case"end":return he.stop()}},Ae)}));function F(){return te.apply(this,arguments)}return F}()})},1e3);case 4:case"end":return Ce.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),ie=function(Ve){!Object(a.a)()&&Ve.target.nodeName!=="A"&&Ve.target.nodeName!=="BUTTON"&&Ve.target.innerHTML!=="\u786E \u5B9A"&&(Object(a.d)(document.body),console.log("documentClick.full"))},oe=function(){var et=Object(f.a)(o.a.mark(function Ve(){return o.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",new Promise(function(){var Ce=Object(f.a)(o.a.mark(function ue(N){var te;return o.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,O({type:"exercise/getExerciseUserInfo",payload:Object(S.a)({},ne)});case 2:return te=Ae.sent,N(te==null?void 0:te.data),Ae.abrupt("return",te==null?void 0:te.data);case 5:case"end":return Ae.stop()}},ue)}));return function(ue){return Ce.apply(this,arguments)}}()));case 1:case"end":return Oe.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),U=function(){var et=Object(f.a)(o.a.mark(function Ve(Le){var Oe,Ce,ue;return o.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:(Oe=K.current)===null||Oe===void 0||((Ce=Oe.destroyAll)===null||Ce===void 0)||Ce.call(Oe),K.current=m.a.info({maskClosable:!1,keyboard:!1,okText:s.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",s.a.createElement("span",{style:{display:"inline-block"}},s.a.createElement(g,{onFinish:Qe,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(v.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:s.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",s.a.createElement("span",{className:"c-red"},Le),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",s.a.createElement("span",{className:"c-red"},(ue=v.exerciseUserInfo)===null||ue===void 0?void 0:ue.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",s.a.createElement("span",{className:"c-red"},v.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",s.a.createElement("br",null),s.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var F=Object(f.a)(o.a.mark(function tt(){return o.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:clearTimeout(H.current),Object(a.d)(document.body),K.current.destroy();case 3:case"end":return We.stop()}},tt)}));function Ae(){return F.apply(this,arguments)}return Ae}()}),H.current=setTimeout(function(){var F;K.current.update({okText:s.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:s.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",s.a.createElement("span",{className:"c-red"},Le+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",s.a.createElement("span",{className:"c-red"},(F=v.exerciseUserInfo)===null||F===void 0?void 0:F.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(v.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return te.stop()}},Ve)}));return function(Le){return et.apply(this,arguments)}}(),ee=function(){location.href="/classrooms/".concat(ne.coursesId,"/exercise/").concat(ne.categoryId,"/detail")},J=function(){var et=Object(f.a)(o.a.mark(function Ve(){var Le,Oe,Ce;return o.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return(Le=K.current)===null||Le===void 0||((Oe=Le.destroyAll)===null||Oe===void 0)||Oe.call(Le),N.next=3,Object(n.Z)({categoryId:ne.categoryId,commit_method:1});case 3:Ce=N.sent,Ce&&le();case 5:case"end":return N.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),le=function(){var Ve,Le;document.removeEventListener(Object(a.c)(),$e,!1),Object(a.b)(),(Ve=K.current)===null||Ve===void 0||((Le=Ve.destroyAll)===null||Le===void 0)||Le.call(Ve),P.info({content:s.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",s.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){ee()}})},Pe=function(Ve){Object(a.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(a.b)()},Qe=function(){var et=Object(f.a)(o.a.mark(function Ve(){return o.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",new Promise(function(){var Ce=Object(f.a)(o.a.mark(function ue(N){var te,F,Ae;return o.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(!((te=v.exerciseUserInfo)!==null&&te!==void 0&&te.screen_at)){he.next=3;break}return he.next=3,Object(n.g)(Object(S.a)(Object(S.a)({},ne),{},{reset:!0}));case 3:return he.next=5,Object(n.Q)({id:ne.categoryId});case 5:if(F=he.sent,!(F!=null&&F.is_commit)){he.next=9;break}return le(),he.abrupt("return");case 9:return he.next=11,oe();case 11:Ae=he.sent,N(Ae);case 13:case"end":return he.stop()}},ue)}));return function(ue){return Ce.apply(this,arguments)}}()));case 1:case"end":return Oe.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}(),$e=function(){var et=Object(f.a)(o.a.mark(function Ve(){var Le,Oe,Ce,ue;return o.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(Le=!1,console.log("fullscreen change"),!Object(a.a)()){te.next=7;break}(Oe=v.exerciseUserInfo)!==null&&Oe!==void 0&&Oe.screen_at&&Object(n.g)(Object(S.a)(Object(S.a)({},ne),{},{reset:!0})),clearTimeout(M.current),te.next=17;break;case 7:return Le=!0,te.next=10,Object(n.g)(Object(S.a)({},ne));case 10:return te.next=12,oe();case 12:Ce=te.sent,U(Ce.used_screen_num),ue=setTimeout(Object(f.a)(o.a.mark(function F(){return o.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:case"end":return tt.stop()}},F)})),v.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),M.current=ue;case 17:O({type:"globalSetting/headerFooterToggle",payload:Le});case 18:case"end":return te.stop()}},Ve)}));return function(){return et.apply(this,arguments)}}();return s.a.createElement("div",null,k)};I.a=Object(l.a)(function(y){var T=y.loading,A=y.user,E=y.exercise,b=y.globalSetting;return{globalSetting:b,user:A,exercise:E,loading:T.effects}})(x)},bT9E:function(Re,I,h){"use strict";h.d(I,"a",function(){return f});var S=h("VTBJ");function f(L,m){var _=Object(S.a)({},L);return Array.isArray(m)&&m.forEach(function(r){delete _[r]}),_}},bUJZ:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},biw7:function(Re,I,h){"use strict";var S=h("q1tI"),f=h.n(S),L=S.createContext(null);I.a=L},c5fP:function(Re,I,h){"use strict";function S(V){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(xe){return typeof xe}:S=function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe},S(V)}Object.defineProperty(I,"__esModule",{value:!0}),I._tr_init=Ae,I._tr_stored_block=tt,I._tr_flush_block=We,I._tr_tally=rt,I._tr_align=he;var f=m(h("6BzB"));function L(){if(typeof WeakMap!="function")return null;var V=new WeakMap;return L=function(){return V},V}function m(V){if(V&&V.__esModule)return V;if(V===null||S(V)!=="object"&&typeof V!="function")return{default:V};var Be=L();if(Be&&Be.has(V))return Be.get(V);var xe={},ke=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var De in V)if(Object.prototype.hasOwnProperty.call(V,De)){var Ne=ke?Object.getOwnPropertyDescriptor(V,De):null;Ne&&(Ne.get||Ne.set)?Object.defineProperty(xe,De,Ne):xe[De]=V[De]}return xe.default=V,Be&&Be.set(V,xe),xe}var _=4,r=0,p=1,d=2;function c(V){for(var Be=V.length;--Be>=0;)V[Be]=0}var o=0,i=1,s=2,a=3,n=258,t=29,e=256,u=e+1+t,l=30,g=19,C=2*u+1,x=15,y=16,T=7,A=256,E=16,b=17,v=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=512,Z=new Array((u+2)*2);c(Z);var Y=new Array(l*2);c(Y);var w=new Array(j);c(w);var P=new Array(n-a+1);c(P);var k=new Array(t);c(k);var K=new Array(l);c(K);function M(V,Be,xe,ke,De){this.static_tree=V,this.extra_bits=Be,this.extra_base=xe,this.elems=ke,this.max_length=De,this.has_stree=V&&V.length}var H,ae,ve;function de(V,Be){this.dyn_tree=V,this.max_code=0,this.stat_desc=Be}function be(V){return V<256?w[V]:w[256+(V>>>7)]}function z(V,Be){V.pending_buf[V.pending++]=Be&255,V.pending_buf[V.pending++]=Be>>>8&255}function ne(V,Be,xe){V.bi_valid>y-xe?(V.bi_buf|=Be<>y-V.bi_valid,V.bi_valid+=xe-y):(V.bi_buf|=Be<>>=1,xe<<=1;while(--Be>0);return xe>>>1}function oe(V){V.bi_valid===16?(z(V,V.bi_buf),V.bi_buf=0,V.bi_valid=0):V.bi_valid>=8&&(V.pending_buf[V.pending++]=V.bi_buf&255,V.bi_buf>>=8,V.bi_valid-=8)}function U(V,Be){var xe=Be.dyn_tree,ke=Be.max_code,De=Be.stat_desc.static_tree,Ne=Be.stat_desc.has_stree,se=Be.stat_desc.extra_bits,we=Be.stat_desc.extra_base,B=Be.stat_desc.max_length,He,at,R,Me,Ue,q,ye=0;for(Me=0;Me<=x;Me++)V.bl_count[Me]=0;for(xe[V.heap[V.heap_max]*2+1]=0,He=V.heap_max+1;HeB&&(Me=B,ye++),xe[at*2+1]=Me,at>ke)continue;V.bl_count[Me]++,Ue=0,at>=we&&(Ue=se[at-we]),q=xe[at*2],V.opt_len+=q*(Me+Ue),Ne&&(V.static_len+=q*(De[at*2+1]+Ue))}if(ye===0)return;do{for(Me=B-1;V.bl_count[Me]===0;)Me--;V.bl_count[Me]--,V.bl_count[Me+1]+=2,V.bl_count[B]--,ye-=2}while(ye>0);for(Me=B;Me!==0;Me--)for(at=V.bl_count[Me];at!==0;){if(R=V.heap[--He],R>ke)continue;xe[R*2+1]!==Me&&(V.opt_len+=(Me-xe[R*2+1])*xe[R*2],xe[R*2+1]=Me),at--}}function ee(V,Be,xe){var ke=new Array(x+1),De=0,Ne,se;for(Ne=1;Ne<=x;Ne++)ke[Ne]=De=De+xe[Ne-1]<<1;for(se=0;se<=Be;se++){var we=V[se*2+1];if(we===0)continue;V[se*2]=ie(ke[we]++,we)}}function J(){var V,Be,xe,ke,De,Ne=new Array(x+1);for(xe=0,ke=0;ke>=7;ke8?z(V,V.bi_buf):V.bi_valid>0&&(V.pending_buf[V.pending++]=V.bi_buf),V.bi_buf=0,V.bi_valid=0}function Qe(V,Be,xe,ke){Pe(V),ke&&(z(V,xe),z(V,~xe)),f.arraySet(V.pending_buf,V.window,Be,xe,V.pending),V.pending+=xe}function $e(V,Be,xe,ke){var De=Be*2,Ne=xe*2;return V[De]>1;se>=1;se--)et(V,xe,se);He=Ne;do se=V.heap[1],V.heap[1]=V.heap[V.heap_len--],et(V,xe,1),we=V.heap[1],V.heap[--V.heap_max]=se,V.heap[--V.heap_max]=we,xe[He*2]=xe[se*2]+xe[we*2],V.depth[He]=(V.depth[se]>=V.depth[we]?V.depth[se]:V.depth[we])+1,xe[se*2+1]=xe[we*2+1]=He,V.heap[1]=He++,et(V,xe,1);while(V.heap_len>=2);V.heap[--V.heap_max]=V.heap[1],U(V,Be),ee(xe,B,V.bl_count)}function Oe(V,Be,xe){var ke,De=-1,Ne,se=Be[0*2+1],we=0,B=7,He=4;for(se===0&&(B=138,He=3),Be[(xe+1)*2+1]=65535,ke=0;ke<=xe;ke++){if(Ne=se,se=Be[(ke+1)*2+1],++we=3&&!(V.bl_tree[Q[Be]*2+1]!==0);Be--);return V.opt_len+=3*(Be+1)+5+5+4,Be}function N(V,Be,xe,ke){var De;for(ne(V,Be-257,5),ne(V,xe-1,5),ne(V,ke-4,4),De=0;De>>=1)if(Be&1&&V.dyn_ltree[xe*2]!==0)return r;if(V.dyn_ltree[9*2]!==0||V.dyn_ltree[10*2]!==0||V.dyn_ltree[13*2]!==0)return p;for(xe=32;xe0?(V.strm.data_type===d&&(V.strm.data_type=te(V)),Le(V,V.l_desc),Le(V,V.d_desc),se=ue(V),De=V.opt_len+3+7>>>3,Ne=V.static_len+3+7>>>3,Ne<=De&&(De=Ne)):De=Ne=xe+5,xe+4<=De&&Be!==-1?tt(V,Be,xe,ke):V.strategy===_||Ne===De?(ne(V,(i<<1)+(ke?1:0),3),Ve(V,Z,Y)):(ne(V,(s<<1)+(ke?1:0),3),N(V,V.l_desc.max_code+1,V.d_desc.max_code+1,se+1),Ve(V,V.dyn_ltree,V.dyn_dtree)),le(V),ke&&Pe(V)}function rt(V,Be,xe){return V.pending_buf[V.d_buf+V.last_lit*2]=Be>>>8&255,V.pending_buf[V.d_buf+V.last_lit*2+1]=Be&255,V.pending_buf[V.l_buf+V.last_lit]=xe&255,V.last_lit++,Be===0?V.dyn_ltree[xe*2]++:(V.matches++,Be--,V.dyn_ltree[(P[xe]+e+1)*2]++,V.dyn_dtree[be(Be)*2]++),V.last_lit===V.lit_bufsize-1}},cRFk:function(Re,I,h){Re.exports=h.p+"static/RepositoryNoneData.828085a8.png"},cU5J:function(Re,I,h){Re.exports={title:"title___3fOal",content:"content___3uANE",add:"add___1spp2",colorBlue:"colorBlue___hain-",radio:"radio___3M5zN"}},csWT:function(Re,I,h){Re.exports=h.p+"static/choose.4ad1045f.svg"},djh8:function(Re,I,h){Re.exports=h.p+"static/qrCode.42927872.png"},dmUQ:function(Re,I,h){"use strict";var S=h("Ff2n"),f=h("rePB"),L=h("1OyB"),m=h("vuIU"),_=h("Ji7U"),r=h("md7G"),p=h("foSv"),d=h("q1tI"),c=h.n(d),o=h("TSYQ"),i=h.n(o),s=h("4IlW");function a(O,D){var W=Object.keys(O);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(O);D&&(Q=Q.filter(function(j){return Object.getOwnPropertyDescriptor(O,j).enumerable})),W.push.apply(W,Q)}return W}function n(O){for(var D=1;D1?ae-1:0),de=1;de1?k-1:0),M=1;M=0)return parseInt(P.slice(P.indexOf("e-")+2),10);var k=0;return P.indexOf(".")>=0&&(k=P.length-P.indexOf(".")-1),k},j.getInputDisplayValue=function(w){var P=w||j.state,k=P.focused,K=P.inputValue,M=P.value,H;k?H=K:H=j.toPrecisionAsStep(M),H==null&&(H="");var ae=j.formatWrapper(H);return T(j.props.decimalSeparator)&&(ae=ae.toString().replace(".",j.props.decimalSeparator)),ae},j.recordCursorPosition=function(){try{j.cursorStart=j.input.selectionStart,j.cursorEnd=j.input.selectionEnd,j.currentValue=j.input.value,j.cursorBefore=j.input.value.substring(0,j.cursorStart),j.cursorAfter=j.input.value.substring(j.cursorEnd)}catch(w){}},j.restoreByAfter=function(w){if(w===void 0)return!1;var P=j.input.value,k=P.lastIndexOf(w);if(k===-1)return!1;var K=j.cursorBefore.length;return j.lastKeyCode===s.a.DELETE&&j.cursorBefore.charAt(K-1)===w[0]?(j.fixCaret(K,K),!0):k+w.length===P.length?(j.fixCaret(k,k),!0):!1},j.partRestoreByAfter=function(w){return w===void 0?!1:Array.prototype.some.call(w,function(P,k){var K=w.substring(k);return j.restoreByAfter(K)})},j.isNotCompleteNumber=function(w){return isNaN(w)||w===""||w===null||w&&w.toString().indexOf(".")===w.toString().length-1},j.stop=function(){j.autoStepTimer&&clearTimeout(j.autoStepTimer)},j.down=function(w,P,k){j.pressingUpOrDown=!0,j.step("down",w,P,k)},j.up=function(w,P,k){j.pressingUpOrDown=!0,j.step("up",w,P,k)},j.saveInput=function(w){j.input=w};var Z=Q.value;Z===void 0&&(Z=Q.defaultValue),j.state={focused:Q.autoFocus};var Y=j.getValidValue(j.toNumber(Z));return j.state=n(n({},j.state),{},{inputValue:j.toPrecisionAsStep(Y),value:Y}),j}return Object(m.a)(W,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(j){var Z=this.props,Y=Z.value,w=Z.onChange,P=Z.max,k=Z.min,K=this.state.focused;if(j){if(!A(j.value,Y)||!A(j.max,P)||!A(j.min,k)){var M=K?Y:this.getValidValue(Y),H;this.pressingUpOrDown?H=M:this.inputting?H=this.rawInput:H=this.toPrecisionAsStep(M),this.setState({value:M,inputValue:H})}var ae="value"in this.props?Y:this.state.value;"max"in this.props&&j.max!==P&&typeof ae=="number"&&ae>P&&w&&w(P),"min"in this.props&&j.min!==k&&typeof ae=="number"&&ae1&&arguments[1]!==void 0?arguments[1]:this.props.min,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,w=parseFloat(j);return isNaN(w)?j:(wY&&(w=Y),w)}},{key:"setValue",value:function(j,Z){var Y=this.props.precision,w=this.isNotCompleteNumber(parseFloat(j))?null:parseFloat(j),P=this.state.value,k=P===void 0?null:P,K=this.state.inputValue,M=K===void 0?null:K,H=typeof w=="number"?w.toFixed(Y):"".concat(w),ae=w!==k||H!=="".concat(M);return"value"in this.props?(M=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:M},Z)):this.setState({value:w,inputValue:this.toPrecisionAsStep(j)},Z),ae&&this.props.onChange(w),w}},{key:"getMaxPrecision",value:function(j){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=this.props,w=Y.precision,P=Y.step;if(T(w))return w;var k=this.getPrecision(Z),K=this.getPrecision(P),M=this.getPrecision(j);return j?Math.max(M,k+K):k+K}},{key:"getPrecisionFactor",value:function(j){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=this.getMaxPrecision(j,Z);return Math.pow(10,Y)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(j){return this.props.formatter?this.props.formatter(j):j}},{key:"toPrecisionAsStep",value:function(j){if(this.isNotCompleteNumber(j)||j==="")return j;var Z=Math.abs(this.getMaxPrecision(j));return isNaN(Z)?j.toString():Number(j).toFixed(Z)}},{key:"toNumber",value:function(j){var Z=this.props.precision,Y=this.state.focused,w=j&&j.length>16&&Y;return this.isNotCompleteNumber(j)||w?j:T(Z)?Math.round(j*Math.pow(10,Z))/Math.pow(10,Z):Number(j)}},{key:"upStep",value:function(j,Z){var Y=this.props.step,w=this.getPrecisionFactor(j,Z),P=Math.abs(this.getMaxPrecision(j,Z)),k=((w*j+w*Y*Z)/w).toFixed(P);return this.toNumber(k)}},{key:"downStep",value:function(j,Z){var Y=this.props.step,w=this.getPrecisionFactor(j,Z),P=Math.abs(this.getMaxPrecision(j,Z)),k=((w*j-w*Y*Z)/w).toFixed(P);return this.toNumber(k)}},{key:"step",value:function(j,Z){var Y=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=arguments.length>3?arguments[3]:void 0;this.stop(),Z&&(Z.persist(),Z.preventDefault());var k=this.props;if(k.disabled)return;var K=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(K))return;var M=this["".concat(j,"Step")](K,w),H=M>k.max||Mk.max?M=k.max:M=ve),xe=(Ae||Ae===0)&&(isNaN(Ae)||Number(Ae)<=de),ke=Be||w||P,De=xe||w||P,Ne=i()("".concat(Y,"-handler"),"".concat(Y,"-handler-up"),Object(f.a)({},"".concat(Y,"-handler-up-disabled"),ke)),se=i()("".concat(Y,"-handler"),"".concat(Y,"-handler-down"),Object(f.a)({},"".concat(Y,"-handler-down-disabled"),De)),we=k?{onTouchStart:ke?u:this.up,onTouchEnd:this.stop}:{onMouseDown:ke?u:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},B=k?{onTouchStart:De?u:this.down,onTouchEnd:this.stop}:{onMouseDown:De?u:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return c.a.createElement("div",{className:he,style:be,title:z,onMouseEnter:ne,onMouseLeave:fe,onMouseOver:ie,onMouseOut:oe,onFocus:function(){return null},onBlur:function(){return null}},c.a.createElement("div",{className:"".concat(Y,"-handler-wrap")},c.a.createElement("span",Object.assign({unselectable:"on"},we,{role:"button","aria-label":"Increase Value","aria-disabled":ke,className:Ne}),M||c.a.createElement("span",{unselectable:"on",className:"".concat(Y,"-handler-up-inner"),onClick:l})),c.a.createElement("span",Object.assign({unselectable:"on"},B,{role:"button","aria-label":"Decrease Value","aria-disabled":De,className:se}),H||c.a.createElement("span",{unselectable:"on",className:"".concat(Y,"-handler-down-inner"),onClick:l}))),c.a.createElement("div",{className:"".concat(Y,"-input-wrap")},c.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":de,"aria-valuemax":ve,"aria-valuenow":Ae,required:U,type:le,placeholder:Pe,onPaste:ue,onClick:ee,onMouseUp:this.onMouseUp,className:"".concat(Y,"-input"),tabIndex:J,autoComplete:K,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:rt?this.onKeyDown:u,onKeyUp:rt?this.onKeyUp:u,autoFocus:Oe,maxLength:Le,readOnly:P,disabled:w,max:ve,min:de,step:Ve,name:Ce,title:z,id:Qe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(V),pattern:et,inputMode:$e,onInput:N},We))))}}]),W}(c.a.Component);E.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:y,min:-y,step:1,style:{},onChange:u,onKeyDown:u,onPressEnter:u,onFocus:u,onBlur:u,parser:g,required:!1,autoComplete:"off"};var b=E,v=I.a=b},eP3c:function(Re,I,h){"use strict";function S(se){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(B){return typeof B}:S=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},S(se)}Object.defineProperty(I,"__esModule",{value:!0}),I.inflateReset=N,I.inflateReset2=te,I.inflateResetKeep=ue,I.inflateInit=Ae,I.inflateInit2=F,I.inflate=Be,I.inflateEnd=xe,I.inflateGetHeader=ke,I.inflateSetDictionary=De,I.inflateInfo=I.Z_DEFLATED=I.Z_BUF_ERROR=I.Z_MEM_ERROR=I.Z_DATA_ERROR=I.Z_STREAM_ERROR=I.Z_NEED_DICT=I.Z_STREAM_END=I.Z_OK=I.Z_TREES=I.Z_BLOCK=I.Z_FINISH=void 0;var f=c(h("6BzB")),L=p(h("xlC8")),m=p(h("QV2g")),_=p(h("sjKO")),r=p(h("JSwD"));function p(se){return se&&se.__esModule?se:{default:se}}function d(){if(typeof WeakMap!="function")return null;var se=new WeakMap;return d=function(){return se},se}function c(se){if(se&&se.__esModule)return se;if(se===null||S(se)!=="object"&&typeof se!="function")return{default:se};var we=d();if(we&&we.has(se))return we.get(se);var B={},He=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var at in se)if(Object.prototype.hasOwnProperty.call(se,at)){var R=He?Object.getOwnPropertyDescriptor(se,at):null;R&&(R.get||R.set)?Object.defineProperty(B,at,R):B[at]=se[at]}return B.default=se,we&&we.set(se,B),B}var o=0,i=1,s=2,a=4;I.Z_FINISH=a;var n=5;I.Z_BLOCK=n;var t=6;I.Z_TREES=t;var e=0;I.Z_OK=e;var u=1;I.Z_STREAM_END=u;var l=2;I.Z_NEED_DICT=l;var g=-2;I.Z_STREAM_ERROR=g;var C=-3;I.Z_DATA_ERROR=C;var x=-4;I.Z_MEM_ERROR=x;var y=-5;I.Z_BUF_ERROR=y;var T=8;I.Z_DEFLATED=T;var A=1,E=2,b=3,v=4,O=5,D=6,W=7,Q=8,j=9,Z=10,Y=11,w=12,P=13,k=14,K=15,M=16,H=17,ae=18,ve=19,de=20,be=21,z=22,ne=23,fe=24,ie=25,oe=26,U=27,ee=28,J=29,le=30,Pe=31,Qe=32,$e=852,et=592,Ve=15,Le=Ve;function Oe(se){return(se>>>24&255)+(se>>>8&65280)+((se&65280)<<8)+((se&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ue(se){var we;return!se||!se.state?g:(we=se.state,se.total_in=se.total_out=we.total=0,se.msg="",we.wrap&&(se.adler=we.wrap&1),we.mode=A,we.last=0,we.havedict=0,we.dmax=32768,we.head=null,we.hold=0,we.bits=0,we.lencode=we.lendyn=new f.Buf32($e),we.distcode=we.distdyn=new f.Buf32(et),we.sane=1,we.back=-1,e)}function N(se){var we;return!se||!se.state?g:(we=se.state,we.wsize=0,we.whave=0,we.wnext=0,ue(se))}function te(se,we){var B,He;return!se||!se.state?g:(He=se.state,we<0?(B=0,we=-we):(B=(we>>4)+1,we<48&&(we&=15)),we&&(we<8||we>15)?g:(He.window!==null&&He.wbits!==we&&(He.window=null),He.wrap=B,He.wbits=we,N(se)))}function F(se,we){var B,He;return se?(He=new Ce,se.state=He,He.window=null,B=te(se,we),B!==e&&(se.state=null),B):g}function Ae(se){return F(se,Le)}var tt=!0,he,We;function rt(se){if(tt){var we;for(he=new f.Buf32(512),We=new f.Buf32(32),we=0;we<144;)se.lens[we++]=8;for(;we<256;)se.lens[we++]=9;for(;we<280;)se.lens[we++]=7;for(;we<288;)se.lens[we++]=8;for((0,r.default)(i,se.lens,0,288,he,0,se.work,{bits:9}),we=0;we<32;)se.lens[we++]=5;(0,r.default)(s,se.lens,0,32,We,0,se.work,{bits:5}),tt=!1}se.lencode=he,se.lenbits=9,se.distcode=We,se.distbits=5}function V(se,we,B,He){var at,R=se.state;return R.window===null&&(R.wsize=1<=R.wsize?(f.arraySet(R.window,we,B-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(at=R.wsize-R.wnext,at>He&&(at=He),f.arraySet(R.window,we,B-He,at,R.wnext),He-=at,He?(f.arraySet(R.window,we,B-He,He,0),R.wnext=He,R.whave=R.wsize):(R.wnext+=at,R.wnext===R.wsize&&(R.wnext=0),R.whave>>8&255,B.check=(0,m.default)(B.check,Rt,2,0),ye=0,Se=0,B.mode=E;break}if(B.flags=0,B.head&&(B.head.done=!1),!(B.wrap&1)||(((ye&255)<<8)+(ye>>8))%31){se.msg="incorrect header check",B.mode=le;break}if((ye&15)!==T){se.msg="unknown compression method",B.mode=le;break}if(ye>>>=4,Se-=4,vt=(ye&15)+8,B.wbits===0)B.wbits=vt;else if(vt>B.wbits){se.msg="invalid window size",B.mode=le;break}B.dmax=1<>8&1),B.flags&512&&(Rt[0]=ye&255,Rt[1]=ye>>>8&255,B.check=(0,m.default)(B.check,Rt,2,0)),ye=0,Se=0,B.mode=b;case b:for(;Se<32;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>8&255,Rt[2]=ye>>>16&255,Rt[3]=ye>>>24&255,B.check=(0,m.default)(B.check,Rt,4,0)),ye=0,Se=0,B.mode=v;case v:for(;Se<16;){if(Ue===0)break e;Ue--,ye+=He[R++]<>8),B.flags&512&&(Rt[0]=ye&255,Rt[1]=ye>>>8&255,B.check=(0,m.default)(B.check,Rt,2,0)),ye=0,Se=0,B.mode=O;case O:if(B.flags&1024){for(;Se<16;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>8&255,B.check=(0,m.default)(B.check,Rt,2,0)),ye=0,Se=0}else B.head&&(B.head.extra=null);B.mode=D;case D:if(B.flags&1024&&(Te=B.length,Te>Ue&&(Te=Ue),Te&&(B.head&&(vt=B.head.extra_len-B.length,B.head.extra||(B.head.extra=new Array(B.head.extra_len)),f.arraySet(B.head.extra,He,R,Te,vt)),B.flags&512&&(B.check=(0,m.default)(B.check,He,Te,R)),Ue-=Te,R+=Te,B.length-=Te),B.length))break e;B.length=0,B.mode=W;case W:if(B.flags&2048){if(Ue===0)break e;Te=0;do vt=He[R+Te++],B.head&&vt&&B.length<65536&&(B.head.name+=String.fromCharCode(vt));while(vt&&Te>9&1,B.head.done=!0),se.adler=B.check=0,B.mode=w;break;case Z:for(;Se<32;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=Se&7,Se-=Se&7,B.mode=U;break}for(;Se<3;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=1,Se-=1;switch(ye&3){case 0:B.mode=k;break;case 1:if(rt(B),B.mode=de,we===t){ye>>>=2,Se-=2;break e}break;case 2:B.mode=H;break;case 3:se.msg="invalid block type",B.mode=le}ye>>>=2,Se-=2;break;case k:for(ye>>>=Se&7,Se-=Se&7;Se<32;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>16^65535)){se.msg="invalid stored block lengths",B.mode=le;break}if(B.length=ye&65535,ye=0,Se=0,B.mode=K,we===t)break e;case K:B.mode=M;case M:if(Te=B.length,Te){if(Te>Ue&&(Te=Ue),Te>q&&(Te=q),Te===0)break e;f.arraySet(at,He,R,Te,Me),Ue-=Te,R+=Te,q-=Te,Me+=Te,B.length-=Te;break}B.mode=w;break;case H:for(;Se<14;){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=5,Se-=5,B.ndist=(ye&31)+1,ye>>>=5,Se-=5,B.ncode=(ye&15)+4,ye>>>=4,Se-=4,B.nlen>286||B.ndist>30){se.msg="too many length or distance symbols",B.mode=le;break}B.have=0,B.mode=ae;case ae:for(;B.have>>=3,Se-=3}for(;B.have<19;)B.lens[Ft[B.have++]]=0;if(B.lencode=B.lendyn,B.lenbits=7,Bt={bits:B.lenbits},pt=(0,r.default)(o,B.lens,0,19,B.lencode,0,B.work,Bt),B.lenbits=Bt.bits,pt){se.msg="invalid code lengths set",B.mode=le;break}B.have=0,B.mode=ve;case ve:for(;B.have>>24,ot=qe>>>16&255,st=qe&65535,Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=Xe,Se-=Xe,B.lens[B.have++]=st;else{if(st===16){for(Xt=Xe+2;Se>>=Xe,Se-=Xe,B.have===0){se.msg="invalid bit length repeat",B.mode=le;break}vt=B.lens[B.have-1],Te=3+(ye&3),ye>>>=2,Se-=2}else if(st===17){for(Xt=Xe+3;Se>>=Xe,Se-=Xe,vt=0,Te=3+(ye&7),ye>>>=3,Se-=3}else{for(Xt=Xe+7;Se>>=Xe,Se-=Xe,vt=0,Te=11+(ye&127),ye>>>=7,Se-=7}if(B.have+Te>B.nlen+B.ndist){se.msg="invalid bit length repeat",B.mode=le;break}for(;Te--;)B.lens[B.have++]=vt}}if(B.mode===le)break;if(B.lens[256]===0){se.msg="invalid code -- missing end-of-block",B.mode=le;break}if(B.lenbits=9,Bt={bits:B.lenbits},pt=(0,r.default)(i,B.lens,0,B.nlen,B.lencode,0,B.work,Bt),B.lenbits=Bt.bits,pt){se.msg="invalid literal/lengths set",B.mode=le;break}if(B.distbits=6,B.distcode=B.distdyn,Bt={bits:B.distbits},pt=(0,r.default)(s,B.lens,B.nlen,B.ndist,B.distcode,0,B.work,Bt),B.distbits=Bt.bits,pt){se.msg="invalid distances set",B.mode=le;break}if(B.mode=de,we===t)break e;case de:B.mode=be;case be:if(Ue>=6&&q>=258){se.next_out=Me,se.avail_out=q,se.next_in=R,se.avail_in=Ue,B.hold=ye,B.bits=Se,(0,_.default)(se,Ye),Me=se.next_out,at=se.output,q=se.avail_out,R=se.next_in,He=se.input,Ue=se.avail_in,ye=B.hold,Se=B.bits,B.mode===w&&(B.back=-1);break}for(B.back=0;!(qe=B.lencode[ye&(1<>>24,ot=qe>>>16&255,st=qe&65535,Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>ze)],Xe=qe>>>24,ot=qe>>>16&255,st=qe&65535,ze+Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=ze,Se-=ze,B.back+=ze}if(ye>>>=Xe,Se-=Xe,B.back+=Xe,B.length=st,ot===0){B.mode=oe;break}if(ot&32){B.back=-1,B.mode=w;break}if(ot&64){se.msg="invalid literal/length code",B.mode=le;break}B.extra=ot&15,B.mode=z;case z:if(B.extra){for(Xt=B.extra;Se>>=B.extra,Se-=B.extra,B.back+=B.extra}B.was=B.length,B.mode=ne;case ne:for(;!(qe=B.distcode[ye&(1<>>24,ot=qe>>>16&255,st=qe&65535,Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>ze)],Xe=qe>>>24,ot=qe>>>16&255,st=qe&65535,ze+Xe<=Se);){if(Ue===0)break e;Ue--,ye+=He[R++]<>>=ze,Se-=ze,B.back+=ze}if(ye>>>=Xe,Se-=Xe,B.back+=Xe,ot&64){se.msg="invalid distance code",B.mode=le;break}B.offset=st,B.extra=ot&15,B.mode=fe;case fe:if(B.extra){for(Xt=B.extra;Se>>=B.extra,Se-=B.extra,B.back+=B.extra}if(B.offset>B.dmax){se.msg="invalid distance too far back",B.mode=le;break}B.mode=ie;case ie:if(q===0)break e;if(Te=Ye-q,B.offset>Te){if(Te=B.offset-Te,Te>B.whave&&B.sane){se.msg="invalid distance too far back",B.mode=le;break}Te>B.wnext?(Te-=B.wnext,$=B.wsize-Te):$=B.wnext-Te,Te>B.length&&(Te=B.length),pe=B.window}else pe=at,$=Me-B.offset,Te=B.length;Te>q&&(Te=q),q-=Te,B.length-=Te;do at[Me++]=pe[$++];while(--Te);B.length===0&&(B.mode=be);break;case oe:if(q===0)break e;at[Me++]=B.length,q--,B.mode=be;break;case U:if(B.wrap){for(;Se<32;){if(Ue===0)break e;Ue--,ye|=He[R++]<0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],be=ve.length,z=de.length;if(Math.abs(be-z)!==1)return{add:!1,key:null};function ne(fe,ie){var oe=new Map;fe.forEach(function(ee){oe.set(ee,!0)});var U=ie.filter(function(ee){return!oe.has(ee)});return U.length===1?U[0]:null}return be ").concat(de);return de}var w=function(de,be){var z=de.prefixCls,ne=de.data,fe=de.selectable,ie=de.checkable,oe=de.expandedKeys,U=de.selectedKeys,ee=de.checkedKeys,J=de.loadedKeys,le=de.loadingKeys,Pe=de.halfCheckedKeys,Qe=de.keyEntities,$e=de.disabled,et=de.dragging,Ve=de.dragOverNodeKey,Le=de.dropPosition,Oe=de.motion,Ce=de.height,ue=de.itemHeight,N=de.virtual,te=de.focusable,F=de.activeItem,Ae=de.focused,tt=de.tabIndex,he=de.onKeyDown,We=de.onFocus,rt=de.onBlur,V=de.onActiveChange,Be=de.onListChangeStart,xe=de.onListChangeEnd,ke=Object(u.a)(de,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),De=d.useRef(null);d.useImperativeHandle(be,function(){return{scrollTo:function(vt){De.current.scrollTo(vt)}}});var Ne=d.useState(oe),se=Object(e.a)(Ne,2),we=se[0],B=se[1],He=d.useState(ne),at=Object(e.a)(He,2),R=at[0],Me=at[1],Ue=d.useState(ne),q=Object(e.a)(Ue,2),ye=q[0],Se=q[1],Ge=d.useState([]),Ye=Object(e.a)(Ge,2),Te=Ye[0],$=Ye[1],pe=d.useState(null),qe=Object(e.a)(pe,2),Xe=qe[0],ot=qe[1];function st(){Me(ne),Se(ne),$([]),ot(null),xe()}d.useEffect(function(){B(oe);var ct=A(we,oe);if(ct.key!==null)if(ct.add){var vt=R.findIndex(function(Qt){var pn=Qt.data.key;return pn===ct.key}),pt=j(E(R,ne,ct.key),N,Ce,ue),Rt=R.slice();Rt.splice(vt+1,0,Q),Se(Rt),$(pt),ot("show")}else{var Bt=ne.findIndex(function(Qt){var pn=Qt.data.key;return pn===ct.key}),Xt=j(E(ne,R,ct.key),N,Ce,ue),Ft=ne.slice();Ft.splice(Bt+1,0,Q),Se(Ft),$(Xt),ot("hide")}else R!==ne&&(Me(ne),Se(ne))},[oe,ne]),d.useEffect(function(){et||st()},[et]);var ze=Oe?ye:ne,it={expandedKeys:oe,selectedKeys:U,loadedKeys:J,loadingKeys:le,checkedKeys:ee,halfCheckedKeys:Pe,dragOverNodeKey:Ve,dropPosition:Le,keyEntities:Qe};return d.createElement(d.Fragment,null,Ae&&F&&d.createElement("span",{style:b,"aria-live":"assertive"},Y(F)),d.createElement("div",{role:"tree"},d.createElement("input",{style:b,disabled:te===!1||$e,tabIndex:te!==!1?tt:null,onKeyDown:he,onFocus:We,onBlur:rt,value:"",onChange:v})),d.createElement(l.a,Object.assign({},ke,{data:ze,itemKey:Z,height:Ce,fullHeight:!1,virtual:N,itemHeight:ue,prefixCls:"".concat(z,"-list"),ref:De}),function(ct){var vt=ct.pos,pt=ct.data,Rt=pt.key,Bt=Object(u.a)(pt,["key"]),Xt=ct.isStart,Ft=ct.isEnd,Qt=Object(t.e)(Rt,vt);delete Bt.children;var pn=Object(t.f)(Qt,it);return d.createElement(T,Object.assign({},Bt,pn,{active:F&&Rt===F.data.key,pos:vt,data:ct.data,isStart:Xt,isEnd:Ft,motion:Oe,motionNodes:Rt===O?Te:null,motionType:Xe,onMotionStart:Be,onMotionEnd:st,treeNodeRequiredProps:it,onMouseMove:function(){V(null)}}))}))},P=d.forwardRef(w);P.displayName="NodeList";var k=P,K=h("NvD2"),M=function(ve){Object(r.a)(be,ve);var de=Object(p.a)(be);function be(){var z;return Object(m.a)(this,be),z=de.apply(this,arguments),z.destroyed=!1,z.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},z.listRef=d.createRef(),z.onNodeDragStart=function(ne,fe){var ie=z.state,oe=ie.expandedKeys,U=ie.keyEntities,ee=z.props.onDragStart,J=fe.props.eventKey;z.dragNode=fe;var le=Object(n.b)(oe,J);z.setState({dragging:!0,dragNodesKeys:Object(n.g)(J,U)}),z.setExpandedKeys(le),ee&&ee({event:ne,node:Object(t.b)(fe.props)})},z.onNodeDragEnter=function(ne,fe){var ie=z.state,oe=ie.expandedKeys,U=ie.keyEntities,ee=ie.dragNodesKeys,J=z.props.onDragEnter,le=fe.props,Pe=le.pos,Qe=le.eventKey;if(!z.dragNode||ee.indexOf(Qe)!==-1)return;var $e=Object(n.c)(ne,fe);if(z.dragNode.props.eventKey===Qe&&$e===0){z.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){z.setState({dragOverNodeKey:Qe,dropPosition:$e}),z.delayedDragEnterLogic||(z.delayedDragEnterLogic={}),Object.keys(z.delayedDragEnterLogic).forEach(function(et){clearTimeout(z.delayedDragEnterLogic[et])}),z.delayedDragEnterLogic[Pe]=window.setTimeout(function(){if(!z.state.dragging)return;var et=Object(L.a)(oe),Ve=U[Qe];Ve&&(Ve.children||[]).length&&(et=Object(n.a)(oe,Qe)),"expandedKeys"in z.props||z.setExpandedKeys(et),J&&J({event:ne,node:Object(t.b)(fe.props),expandedKeys:et})},400)},0)},z.onNodeDragOver=function(ne,fe){var ie=z.state.dragNodesKeys,oe=z.props.onDragOver,U=fe.props.eventKey;if(ie.indexOf(U)!==-1)return;if(z.dragNode&&U===z.state.dragOverNodeKey){var ee=Object(n.c)(ne,fe);if(ee===z.state.dropPosition)return;z.setState({dropPosition:ee})}oe&&oe({event:ne,node:Object(t.b)(fe.props)})},z.onNodeDragLeave=function(ne,fe){var ie=z.props.onDragLeave;z.setState({dragOverNodeKey:""}),ie&&ie({event:ne,node:Object(t.b)(fe.props)})},z.onNodeDragEnd=function(ne,fe){var ie=z.props.onDragEnd;z.setState({dragOverNodeKey:""}),z.cleanDragState(),ie&&ie({event:ne,node:Object(t.b)(fe.props)}),z.dragNode=null},z.onNodeDrop=function(ne,fe){var ie=z.state,oe=ie.dragNodesKeys,U=oe===void 0?[]:oe,ee=ie.dropPosition,J=z.props.onDrop,le=fe.props,Pe=le.eventKey,Qe=le.pos;if(z.setState({dragOverNodeKey:""}),z.cleanDragState(),U.indexOf(Pe)!==-1){Object(o.a)(!1,"Can not drop to dragNode(include it's children node)");return}var $e=Object(n.k)(Qe),et={event:ne,node:Object(t.b)(fe.props),dragNode:z.dragNode?Object(t.b)(z.dragNode.props):null,dragNodesKeys:U.slice(),dropPosition:ee+Number($e[$e.length-1]),dropToGap:!1};ee!==0&&(et.dropToGap=!0),J&&J(et),z.dragNode=null},z.cleanDragState=function(){var ne=z.state.dragging;ne&&z.setState({dragging:!1})},z.onNodeClick=function(ne,fe){var ie=z.props.onClick;ie&&ie(ne,fe)},z.onNodeDoubleClick=function(ne,fe){var ie=z.props.onDoubleClick;ie&&ie(ne,fe)},z.onNodeSelect=function(ne,fe){var ie=z.state.selectedKeys,oe=z.state.keyEntities,U=z.props,ee=U.onSelect,J=U.multiple,le=fe.selected,Pe=fe.key,Qe=!le;Qe?J?ie=Object(n.a)(ie,Pe):ie=[Pe]:ie=Object(n.b)(ie,Pe);var $e=ie.map(function(et){var Ve=oe[et];return Ve?Ve.node:null}).filter(function(et){return et});z.setUncontrolledState({selectedKeys:ie}),ee&&ee(ie,{event:"select",selected:Qe,node:fe,selectedNodes:$e,nativeEvent:ne.nativeEvent})},z.onNodeCheck=function(ne,fe,ie){var oe=z.state,U=oe.keyEntities,ee=oe.checkedKeys,J=oe.halfCheckedKeys,le=z.props,Pe=le.checkStrictly,Qe=le.onCheck,$e=fe.key,et,Ve={event:"check",node:fe,checked:ie,nativeEvent:ne.nativeEvent};if(Pe){var Le=ie?Object(n.a)(ee,$e):Object(n.b)(ee,$e),Oe=Object(n.b)(J,$e);et={checked:Le,halfChecked:Oe},Ve.checkedNodes=Le.map(function(Ae){return U[Ae]}).filter(function(Ae){return Ae}).map(function(Ae){return Ae.node}),z.setUncontrolledState({checkedKeys:Le})}else{var Ce=Object(K.a)([].concat(Object(L.a)(ee),[$e]),!0,U),ue=Ce.checkedKeys,N=Ce.halfCheckedKeys;if(!ie){var te=new Set(ue);te.delete($e);var F=Object(K.a)(Array.from(te),{checked:!1,halfCheckedKeys:N},U);ue=F.checkedKeys,N=F.halfCheckedKeys}et=ue,Ve.checkedNodes=[],Ve.checkedNodesPositions=[],Ve.halfCheckedKeys=N,ue.forEach(function(Ae){var tt=U[Ae];if(!tt)return;var he=tt.node,We=tt.pos;Ve.checkedNodes.push(he),Ve.checkedNodesPositions.push({node:he,pos:We})}),z.setUncontrolledState({checkedKeys:ue},!1,{halfCheckedKeys:N})}Qe&&Qe(et,Ve)},z.onNodeLoad=function(ne){return new Promise(function(fe){z.setState(function(ie){var oe=ie.loadedKeys,U=oe===void 0?[]:oe,ee=ie.loadingKeys,J=ee===void 0?[]:ee,le=z.props,Pe=le.loadData,Qe=le.onLoad,$e=ne.key;if(!Pe||U.indexOf($e)!==-1||J.indexOf($e)!==-1)return{};var et=Pe(ne);return et.then(function(){var Ve=z.state,Le=Ve.loadedKeys,Oe=Ve.loadingKeys,Ce=Object(n.a)(Le,$e),ue=Object(n.b)(Oe,$e);Qe&&Qe(Ce,{event:"load",node:ne}),z.setUncontrolledState({loadedKeys:Ce}),z.setState({loadingKeys:ue}),fe()}),{loadingKeys:Object(n.a)(J,$e)}})})},z.onNodeMouseEnter=function(ne,fe){var ie=z.props.onMouseEnter;ie&&ie({event:ne,node:fe})},z.onNodeMouseLeave=function(ne,fe){var ie=z.props.onMouseLeave;ie&&ie({event:ne,node:fe})},z.onNodeContextMenu=function(ne,fe){var ie=z.props.onRightClick;ie&&(ne.preventDefault(),ie({event:ne,node:fe}))},z.onFocus=function(){var ne=z.props.onFocus;z.setState({focused:!0}),ne&&ne.apply(void 0,arguments)},z.onBlur=function(){var ne=z.props.onBlur;z.setState({focused:!1}),z.onActiveChange(null),ne&&ne.apply(void 0,arguments)},z.getTreeNodeRequiredProps=function(){var ne=z.state,fe=ne.expandedKeys,ie=ne.selectedKeys,oe=ne.loadedKeys,U=ne.loadingKeys,ee=ne.checkedKeys,J=ne.halfCheckedKeys,le=ne.dragOverNodeKey,Pe=ne.dropPosition,Qe=ne.keyEntities;return{expandedKeys:fe||[],selectedKeys:ie||[],loadedKeys:oe||[],loadingKeys:U||[],checkedKeys:ee||[],halfCheckedKeys:J||[],dragOverNodeKey:le,dropPosition:Pe,keyEntities:Qe}},z.setExpandedKeys=function(ne){var fe=z.state.treeData,ie=Object(t.d)(fe,ne);z.setUncontrolledState({expandedKeys:ne,flattenNodes:ie},!0)},z.onNodeExpand=function(ne,fe){var ie=z.state.expandedKeys,oe=z.state.listChanging,U=z.props,ee=U.onExpand,J=U.loadData,le=fe.key,Pe=fe.expanded;if(oe)return;var Qe=ie.indexOf(le),$e=!Pe;if(Object(o.a)(Pe&&Qe!==-1||!Pe&&Qe===-1,"Expand state not sync with index check"),$e?ie=Object(n.a)(ie,le):ie=Object(n.b)(ie,le),z.setExpandedKeys(ie),ee&&ee(ie,{node:fe,expanded:$e,nativeEvent:ne.nativeEvent}),$e&&J){var et=z.onNodeLoad(fe);et&&et.then(function(){var Ve=Object(t.d)(z.state.treeData,ie);z.setUncontrolledState({flattenNodes:Ve})})}},z.onListChangeStart=function(){z.setUncontrolledState({listChanging:!0})},z.onListChangeEnd=function(){setTimeout(function(){z.setUncontrolledState({listChanging:!1})})},z.onActiveChange=function(ne){var fe=z.state.activeKey,ie=z.props.onActiveChange;if(fe===ne)return;z.setState({activeKey:ne}),ne!==null&&z.scrollTo({key:ne}),ie&&ie(ne)},z.getActiveItem=function(){var ne=z.state,fe=ne.activeKey,ie=ne.flattenNodes;return fe===null?null:ie.find(function(oe){var U=oe.data.key;return U===fe})||null},z.offsetActiveKey=function(ne){var fe=z.state,ie=fe.flattenNodes,oe=fe.activeKey,U=ie.findIndex(function(le){var Pe=le.data.key;return Pe===oe});U===-1&&ne<0&&(U=ie.length),U=(U+ne+ie.length)%ie.length;var ee=ie[U];if(ee){var J=ee.data.key;z.onActiveChange(J)}else z.onActiveChange(null)},z.onKeyDown=function(ne){var fe=z.state,ie=fe.activeKey,oe=fe.expandedKeys,U=fe.checkedKeys,ee=z.props,J=ee.onKeyDown,le=ee.checkable,Pe=ee.selectable;switch(ne.which){case c.a.UP:{z.offsetActiveKey(-1),ne.preventDefault();break}case c.a.DOWN:{z.offsetActiveKey(1),ne.preventDefault();break}}var Qe=z.getActiveItem();if(Qe&&Qe.data){var $e=z.getTreeNodeRequiredProps(),et=Qe.data.isLeaf===!1||!!(Qe.data.children||[]).length,Ve=Object(t.b)(Object(f.a)(Object(f.a)({},Object(t.f)(ie,$e)),{},{data:Qe.data,active:!0}));switch(ne.which){case c.a.LEFT:{et&&oe.includes(ie)?z.onNodeExpand({},Ve):Qe.parent&&z.onActiveChange(Qe.parent.data.key),ne.preventDefault();break}case c.a.RIGHT:{et&&!oe.includes(ie)?z.onNodeExpand({},Ve):Qe.children&&Qe.children.length&&z.onActiveChange(Qe.children[0].data.key),ne.preventDefault();break}case c.a.ENTER:case c.a.SPACE:{le&&!Ve.disabled&&Ve.checkable!==!1&&!Ve.disableCheckbox?z.onNodeCheck({},Ve,!U.includes(ie)):!le&&Pe&&!Ve.disabled&&Ve.selectable!==!1&&z.onNodeSelect({},Ve);break}}}J&&J(ne)},z.setUncontrolledState=function(ne){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(z.destroyed)return;var oe=!1,U=!0,ee={};Object.keys(ne).forEach(function(J){if(J in z.props){U=!1;return}oe=!0,ee[J]=ne[J]}),oe&&(!fe||U)&&z.setState(Object(f.a)(Object(f.a)({},ee),ie))},z.scrollTo=function(ne){z.listRef.current.scrollTo(ne)},z}return Object(_.a)(be,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ne,fe=this.state,ie=fe.focused,oe=fe.flattenNodes,U=fe.keyEntities,ee=fe.dragging,J=fe.activeKey,le=this.props,Pe=le.prefixCls,Qe=le.className,$e=le.style,et=le.showLine,Ve=le.focusable,Le=le.tabIndex,Oe=Le===void 0?0:Le,Ce=le.selectable,ue=le.showIcon,N=le.icon,te=le.switcherIcon,F=le.draggable,Ae=le.checkable,tt=le.checkStrictly,he=le.disabled,We=le.motion,rt=le.loadData,V=le.filterTreeNode,Be=le.height,xe=le.itemHeight,ke=le.virtual,De=le.titleRender,Ne=le.onContextMenu,se=Object(n.f)(this.props);return d.createElement(a.a.Provider,{value:{prefixCls:Pe,selectable:Ce,showIcon:ue,icon:N,switcherIcon:te,draggable:F,checkable:Ae,checkStrictly:tt,disabled:he,keyEntities:U,loadData:rt,filterTreeNode:V,titleRender:De,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{className:s()(Pe,Qe,(ne={},Object(S.a)(ne,"".concat(Pe,"-show-line"),et),Object(S.a)(ne,"".concat(Pe,"-focused"),ie),Object(S.a)(ne,"".concat(Pe,"-active-focused"),J!==null),ne))},d.createElement(k,Object.assign({ref:this.listRef,prefixCls:Pe,style:$e,data:oe,disabled:he,selectable:Ce,checkable:!!Ae,motion:We,dragging:ee,height:Be,itemHeight:xe,virtual:ke,focusable:Ve,focused:ie,tabIndex:Oe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ne},this.getTreeNodeRequiredProps(),se))))}}],[{key:"getDerivedStateFromProps",value:function(ne,fe){var ie=fe.prevProps,oe={prevProps:ne};function U(N){return!ie&&N in ne||ie&&ie[N]!==ne[N]}var ee;if(U("treeData")?ee=ne.treeData:U("children")&&(Object(o.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ee=Object(t.c)(ne.children)),ee){oe.treeData=ee;var J=Object(t.a)(ee);oe.keyEntities=Object(f.a)(Object(S.a)({},O,W),J.keyEntities)}var le=oe.keyEntities||fe.keyEntities;if(U("expandedKeys")||ie&&U("autoExpandParent"))oe.expandedKeys=ne.autoExpandParent||!ie&&ne.defaultExpandParent?Object(n.e)(ne.expandedKeys,le):ne.expandedKeys;else if(!ie&&ne.defaultExpandAll){var Pe=Object(f.a)({},le);delete Pe[O],oe.expandedKeys=Object.keys(Pe).map(function(N){return Pe[N].key})}else!ie&&ne.defaultExpandedKeys&&(oe.expandedKeys=ne.autoExpandParent||ne.defaultExpandParent?Object(n.e)(ne.defaultExpandedKeys,le):ne.defaultExpandedKeys);if(oe.expandedKeys||delete oe.expandedKeys,ee||oe.expandedKeys){var Qe=Object(t.d)(ee||fe.treeData,oe.expandedKeys||fe.expandedKeys);oe.flattenNodes=Qe}if(ne.selectable&&(U("selectedKeys")?oe.selectedKeys=Object(n.d)(ne.selectedKeys,ne):!ie&&ne.defaultSelectedKeys&&(oe.selectedKeys=Object(n.d)(ne.defaultSelectedKeys,ne))),ne.checkable){var $e;if(U("checkedKeys")?$e=Object(n.j)(ne.checkedKeys)||{}:!ie&&ne.defaultCheckedKeys?$e=Object(n.j)(ne.defaultCheckedKeys)||{}:ee&&($e=Object(n.j)(ne.checkedKeys)||{checkedKeys:fe.checkedKeys,halfCheckedKeys:fe.halfCheckedKeys}),$e){var et=$e,Ve=et.checkedKeys,Le=Ve===void 0?[]:Ve,Oe=et.halfCheckedKeys,Ce=Oe===void 0?[]:Oe;if(!ne.checkStrictly){var ue=Object(K.a)(Le,!0,le);Le=ue.checkedKeys,Ce=ue.halfCheckedKeys}oe.checkedKeys=Le,oe.halfCheckedKeys=Ce}}return U("loadedKeys")&&(oe.loadedKeys=ne.loadedKeys),oe}}]),be}(d.Component);M.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},M.TreeNode=C.a;var H=M,ae=I.b=H},fcSX:function(Re,I,h){"use strict";var S=h("Ff2n"),f=h("1OyB"),L=h("vuIU"),m=h("Ji7U"),_=h("md7G"),r=h("foSv"),p=h("1W/9"),d=h("q1tI"),c=h("rePB"),o=h("JX7q"),i=h("TSYQ"),s=h.n(i),a=h("qx4F"),n=h("4IlW");function t(w){return Array.isArray(w)?w:[w]}var e={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},u=Object.keys(e).filter(function(w){if(typeof document=="undefined")return!1;var P=document.getElementsByTagName("html")[0];return w in(P?P.style:{})})[0],l=e[u];function g(w,P,k,K){w.addEventListener?w.addEventListener(P,k,K):w.attachEvent&&w.attachEvent("on".concat(P),k)}function C(w,P,k,K){w.removeEventListener?w.removeEventListener(P,k,K):w.attachEvent&&w.detachEvent("on".concat(P),k)}function x(w,P){var k=typeof w=="function"?w(P):w;return Array.isArray(k)?k.length===2?k:[k[0],k[1]]:[k]}var y=function(P){return!isNaN(parseFloat(P))&&isFinite(P)},T=!(typeof window!="undefined"&&window.document&&window.document.createElement),A=function w(P,k,K,M){if(!k||k===document||k instanceof Document)return!1;if(k===P.parentNode)return!0;var H=Math.max(Math.abs(K),Math.abs(M))===Math.abs(M),ae=Math.max(Math.abs(K),Math.abs(M))===Math.abs(K),ve=k.scrollHeight-k.clientHeight,de=k.scrollWidth-k.clientWidth,be=document.defaultView.getComputedStyle(k),z=be.overflowY==="auto"||be.overflowY==="scroll",ne=be.overflowX==="auto"||be.overflowX==="scroll",fe=ve&&z,ie=de&≠return H&&(!fe||fe&&(k.scrollTop>=ve&&M<0||k.scrollTop<=0&&M>0))||ae&&(!ie||ie&&(k.scrollLeft>=de&&K<0||k.scrollLeft<=0&&K>0))?w(P,k.parentNode,K,M):!1};function E(w){var P=b();return function(){var K=Object(r.a)(w),M;if(P){var H=Object(r.a)(this).constructor;M=Reflect.construct(K,arguments,H)}else M=K.apply(this,arguments);return Object(_.a)(this,M)}}function b(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}var v={},O=function(w){Object(m.a)(k,w);var P=E(k);function k(K){var M;return Object(f.a)(this,k),M=P.call(this,K),M.domFocus=function(){M.dom&&M.dom.focus()},M.removeStartHandler=function(H){if(H.touches.length>1)return;M.startPos={x:H.touches[0].clientX,y:H.touches[0].clientY}},M.removeMoveHandler=function(H){if(H.changedTouches.length>1)return;var ae=H.currentTarget,ve=H.changedTouches[0].clientX-M.startPos.x,de=H.changedTouches[0].clientY-M.startPos.y;(ae===M.maskDom||ae===M.handlerDom||ae===M.contentDom&&A(ae,H.target,ve,de))&&H.cancelable&&H.preventDefault()},M.transitionEnd=function(H){var ae=H.target;C(ae,l,M.transitionEnd),ae.style.transition=""},M.onKeyDown=function(H){if(H.keyCode===n.a.ESC){var ae=M.props.onClose;H.stopPropagation(),ae&&ae(H)}},M.onWrapperTransitionEnd=function(H){var ae=M.props,ve=ae.open,de=ae.afterVisibleChange;H.target===M.contentWrapper&&H.propertyName.match(/transform$/)&&(M.dom.style.transition="",!ve&&M.getCurrentDrawerSome()&&(document.body.style.overflowX="",M.maskDom&&(M.maskDom.style.left="",M.maskDom.style.width="")),de&&de(!!ve))},M.openLevelTransition=function(){var H=M.props,ae=H.open,ve=H.width,de=H.height,be=M.getHorizontalBoolAndPlacementName(),z=be.isHorizontal,ne=be.placementName,fe=M.contentDom?M.contentDom.getBoundingClientRect()[z?"width":"height"]:0,ie=(z?ve:de)||fe;M.setLevelAndScrolling(ae,ne,ie)},M.setLevelTransform=function(H,ae,ve,de){var be=M.props,z=be.placement,ne=be.levelMove,fe=be.duration,ie=be.ease,oe=be.showMask;M.levelDom.forEach(function(U){U.style.transition="transform ".concat(fe," ").concat(ie),g(U,l,M.transitionEnd);var ee=H?ve:0;if(ne){var J=x(ne,{target:U,open:H});ee=H?J[0]:J[1]||0}var le=typeof ee=="number"?"".concat(ee,"px"):ee,Pe=z==="left"||z==="top"?le:"-".concat(le);Pe=oe&&z==="right"&&de?"calc(".concat(Pe," + ").concat(de,"px)"):Pe,U.style.transform=ee?"".concat(ae,"(").concat(Pe,")"):""})},M.setLevelAndScrolling=function(H,ae,ve){var de=M.props.onChange;if(!T){var be=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(a.a)(!0):0;M.setLevelTransform(H,ae,ve,be),M.toggleScrollingToDrawerAndBody(be)}de&&de(H)},M.toggleScrollingToDrawerAndBody=function(H){var ae=M.props,ve=ae.getOpenCount,de=ae.getContainer,be=ae.showMask,z=ae.open,ne=de&&de(),fe=ve&&ve();if(ne&&ne.parentNode===document.body&&be){var ie=["touchstart"],oe=[document.body,M.maskDom,M.handlerDom,M.contentDom];z&&document.body.style.overflow!=="hidden"?(H&&M.addScrollingEffect(H),fe===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",oe.forEach(function(U,ee){if(!U)return;g(U,ie[ee]||"touchmove",ee?M.removeMoveHandler:M.removeStartHandler,M.passive)})):M.getCurrentDrawerSome()&&(fe||(document.body.style.overflow=""),document.body.style.touchAction="",H&&M.remScrollingEffect(H),oe.forEach(function(U,ee){if(!U)return;C(U,ie[ee]||"touchmove",ee?M.removeMoveHandler:M.removeStartHandler,M.passive)}))}},M.addScrollingEffect=function(H){var ae=M.props,ve=ae.placement,de=ae.duration,be=ae.ease,z=ae.getOpenCount,ne=ae.switchScrollingEffect,fe=z&&z();fe===1&&ne();var ie="width ".concat(de," ").concat(be),oe="transform ".concat(de," ").concat(be);M.dom.style.transition="none";switch(ve){case"right":M.dom.style.transform="translateX(-".concat(H,"px)");break;case"top":case"bottom":M.dom.style.width="calc(100% - ".concat(H,"px)"),M.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(M.timeout),M.timeout=setTimeout(function(){M.dom&&(M.dom.style.transition="".concat(oe,",").concat(ie),M.dom.style.width="",M.dom.style.transform="")})},M.remScrollingEffect=function(H){var ae=M.props,ve=ae.placement,de=ae.duration,be=ae.ease,z=ae.getOpenCount,ne=ae.switchScrollingEffect,fe=z&&z();fe||ne(!0),u&&(document.body.style.overflowX="hidden"),M.dom.style.transition="none";var ie,oe="width ".concat(de," ").concat(be),U="transform ".concat(de," ").concat(be);switch(ve){case"left":{M.dom.style.width="100%",oe="width 0s ".concat(be," ").concat(de);break}case"right":{M.dom.style.transform="translateX(".concat(H,"px)"),M.dom.style.width="100%",oe="width 0s ".concat(be," ").concat(de),M.maskDom&&(M.maskDom.style.left="-".concat(H,"px"),M.maskDom.style.width="calc(100% + ".concat(H,"px)"));break}case"top":case"bottom":{M.dom.style.width="calc(100% + ".concat(H,"px)"),M.dom.style.height="100%",M.dom.style.transform="translateZ(0)",ie="height 0s ".concat(be," ").concat(de);break}default:break}clearTimeout(M.timeout),M.timeout=setTimeout(function(){M.dom&&(M.dom.style.transition="".concat(U,",").concat(ie?"".concat(ie,","):"").concat(oe),M.dom.style.transform="",M.dom.style.width="",M.dom.style.height="")})},M.getCurrentDrawerSome=function(){return!Object.keys(v).some(function(H){return v[H]})},M.getLevelDom=function(H){var ae=H.level,ve=H.getContainer;if(T)return;var de=ve&&ve(),be=de?de.parentNode:null;if(M.levelDom=[],ae==="all"){var z=be?Array.prototype.slice.call(be.children):[];z.forEach(function(ne){ne.nodeName!=="SCRIPT"&&ne.nodeName!=="STYLE"&&ne.nodeName!=="LINK"&&ne!==de&&M.levelDom.push(ne)})}else ae&&t(ae).forEach(function(ne){document.querySelectorAll(ne).forEach(function(fe){M.levelDom.push(fe)})})},M.getHorizontalBoolAndPlacementName=function(){var H=M.props.placement,ae=H==="left"||H==="right",ve="translate".concat(ae?"X":"Y");return{isHorizontal:ae,placementName:ve}},M.state={_self:Object(o.a)(M)},M}return Object(L.a)(k,[{key:"componentDidMount",value:function(){var M=this;if(!T){var H=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return H=!0,null}}))}catch(z){}this.passive=H?{passive:!1}:!1}var ae=this.props,ve=ae.open,de=ae.getContainer,be=de&&de();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),ve&&(be&&be.parentNode===document.body&&(v[this.drawerId]=ve),this.openLevelTransition(),this.forceUpdate(function(){M.domFocus()}))}},{key:"componentDidUpdate",value:function(M){var H=this.props,ae=H.open,ve=H.getContainer,de=ve&&ve();ae!==M.open&&(ae&&this.domFocus(),de&&de.parentNode===document.body&&(v[this.drawerId]=!!ae),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var M=this.props,H=M.getOpenCount,ae=M.open,ve=M.switchScrollingEffect,de=typeof H=="function"&&H();delete v[this.drawerId],ae&&(this.setLevelTransform(!1),document.body.style.touchAction=""),de||(document.body.style.overflow="",ve(!0))}},{key:"render",value:function(){var M,H=this,ae=this.props,ve=ae.className,de=ae.children,be=ae.style,z=ae.width,ne=ae.height,fe=ae.defaultOpen,ie=ae.open,oe=ae.prefixCls,U=ae.placement,ee=ae.level,J=ae.levelMove,le=ae.ease,Pe=ae.duration,Qe=ae.getContainer,$e=ae.handler,et=ae.onChange,Ve=ae.afterVisibleChange,Le=ae.showMask,Oe=ae.maskClosable,Ce=ae.maskStyle,ue=ae.onClose,N=ae.onHandleClick,te=ae.keyboard,F=ae.getOpenCount,Ae=ae.switchScrollingEffect,tt=Object(S.a)(ae,["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"]),he=this.dom?ie:!1,We=s()(oe,(M={},Object(c.a)(M,"".concat(oe,"-").concat(U),!0),Object(c.a)(M,"".concat(oe,"-open"),he),Object(c.a)(M,ve||"",!!ve),Object(c.a)(M,"no-mask",!Le),M)),rt=this.getHorizontalBoolAndPlacementName(),V=rt.placementName,Be=U==="left"||U==="top"?"-100%":"100%",xe=he?"":"".concat(V,"(").concat(Be,")"),ke=$e&&d.cloneElement($e,{onClick:function(Ne){$e.props.onClick&&$e.props.onClick(),N&&N(Ne)},ref:function(Ne){H.handlerDom=Ne}});return d.createElement("div",Object.assign({},tt,{tabIndex:-1,className:We,style:be,ref:function(Ne){H.dom=Ne},onKeyDown:he&&te?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Le&&d.createElement("div",{className:"".concat(oe,"-mask"),onClick:Oe?ue:void 0,style:Ce,ref:function(Ne){H.maskDom=Ne}}),d.createElement("div",{className:"".concat(oe,"-content-wrapper"),style:{transform:xe,msTransform:xe,width:y(z)?"".concat(z,"px"):z,height:y(ne)?"".concat(ne,"px"):ne},ref:function(Ne){H.contentWrapper=Ne}},d.createElement("div",{className:"".concat(oe,"-content"),ref:function(Ne){H.contentDom=Ne},onTouchStart:he&&Le?this.removeStartHandler:void 0,onTouchMove:he&&Le?this.removeMoveHandler:void 0},de),ke))}}],[{key:"getDerivedStateFromProps",value:function(M,H){var ae=H.prevProps,ve=H._self,de={prevProps:M};if(ae!==void 0){var be=M.placement,z=M.level;be!==ae.placement&&(ve.contentDom=null),z!==ae.level&&ve.getLevelDom(M)}return de}}]),k}(d.Component);O.defaultProps={switchScrollingEffect:function(){}};var D=O;function W(w){var P=Q();return function(){var K=Object(r.a)(w),M;if(P){var H=Object(r.a)(this).constructor;M=Reflect.construct(K,arguments,H)}else M=K.apply(this,arguments);return Object(_.a)(this,M)}}function Q(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}var j=function(w){Object(m.a)(k,w);var P=W(k);function k(K){var M;Object(f.a)(this,k),M=P.call(this,K),M.onHandleClick=function(ae){var ve=M.props,de=ve.onHandleClick,be=ve.open;if(de&&de(ae),typeof be=="undefined"){var z=M.state.open;M.setState({open:!z})}},M.onClose=function(ae){var ve=M.props,de=ve.onClose,be=ve.open;de&&de(ae),typeof be=="undefined"&&M.setState({open:!1})};var H=typeof K.open!="undefined"?K.open:!!K.defaultOpen;return M.state={open:H},"onMaskClick"in K&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),M}return Object(L.a)(k,[{key:"render",value:function(){var M=this,H=this.props,ae=H.defaultOpen,ve=H.getContainer,de=H.wrapperClassName,be=H.forceRender,z=H.handler,ne=Object(S.a)(H,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),fe=this.state.open;if(!ve)return d.createElement("div",{className:de,ref:function(U){M.dom=U}},d.createElement(D,Object.assign({},ne,{open:fe,handler:z,getContainer:function(){return M.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var ie=!!z||be;return d.createElement(p.a,{visible:fe,forceRender:ie,getContainer:ve,wrapperClassName:de},function(oe){var U=oe.visible,ee=oe.afterClose,J=Object(S.a)(oe,["visible","afterClose"]);return d.createElement(D,Object.assign({},ne,J,{open:U!==void 0?U:fe,afterVisibleChange:ee!==void 0?ee:ne.afterVisibleChange,handler:z,onClose:M.onClose,onHandleClick:M.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(M,H){var ae=H.prevProps,ve={prevProps:M};return typeof ae!="undefined"&&M.open!==ae.open&&(ve.open=M.open),ve}}]),k}(d.Component);j.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:d.createElement("div",{className:"drawer-handle"},d.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Z=j,Y=I.a=Z},fr4D:function(Re,I,h){"use strict";h.d(I,"a",function(){return _}),h.d(I,"c",function(){return p}),h.d(I,"f",function(){return c}),h.d(I,"b",function(){return a}),h.d(I,"h",function(){return t}),h.d(I,"e",function(){return u}),h.d(I,"i",function(){return x}),h.d(I,"d",function(){return T}),h.d(I,"g",function(){return E});var S=h("9og8"),f=h("WmNS"),L=h.n(f),m=h("ErOA");function _(v){return r.apply(this,arguments)}function r(){return r=Object(S.a)(L.a.mark(function v(O){return L.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects.json",{method:"post",body:O}));case 1:case"end":return W.stop()}},v)})),r.apply(this,arguments)}function p(v,O){return d.apply(this,arguments)}function d(){return d=Object(S.a)(L.a.mark(function v(O,D){return L.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(D,".json"),{method:"put",body:O}));case 1:case"end":return Q.stop()}},v)})),d.apply(this,arguments)}function c(v){return o.apply(this,arguments)}function o(){return o=Object(S.a)(L.a.mark(function v(O){return L.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:O}));case 1:case"end":return W.stop()}},v)})),o.apply(this,arguments)}function i(v){return s.apply(this,arguments)}function s(){return s=Object(S.a)(L.a.mark(function v(O){return L.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects.json",{method:"get",params:O}));case 1:case"end":return W.stop()}},v)})),s.apply(this,arguments)}function a(v,O){return n.apply(this,arguments)}function n(){return n=Object(S.a)(L.a.mark(function v(O,D){return L.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,".json"),{method:"delete",body:D}));case 1:case"end":return Q.stop()}},v)})),n.apply(this,arguments)}function t(v){return e.apply(this,arguments)}function e(){return e=Object(S.a)(L.a.mark(function v(O){return L.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,".json"),{method:"get"}));case 1:case"end":return W.stop()}},v)})),e.apply(this,arguments)}function u(v){return l.apply(this,arguments)}function l(){return l=Object(S.a)(L.a.mark(function v(O){return L.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/data_sets.json",{method:"get",params:O}));case 1:case"end":return W.stop()}},v)})),l.apply(this,arguments)}function g(v){return C.apply(this,arguments)}function C(){return C=Object(S.a)(L.a.mark(function v(O){return L.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/remove_data_sets.json"),{method:"get"}));case 1:case"end":return W.stop()}},v)})),C.apply(this,arguments)}function x(v){return y.apply(this,arguments)}function y(){return y=Object(S.a)(L.a.mark(function v(O){return L.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/start_environment.json"),{method:"post"}));case 1:case"end":return W.stop()}},v)})),y.apply(this,arguments)}function T(v,O){return A.apply(this,arguments)}function A(){return A=Object(S.a)(L.a.mark(function v(O,D){return L.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/fork_sci_project.json"),{method:"post",body:D}));case 1:case"end":return Q.stop()}},v)})),A.apply(this,arguments)}function E(v,O){return b.apply(this,arguments)}function b(){return b=Object(S.a)(L.a.mark(function v(O,D){return L.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",Object(m.a)("/api/sci/projects/".concat(O,"/get_data_sets.json"),{method:"get",params:D}));case 1:case"end":return Q.stop()}},v)})),b.apply(this,arguments)}},fyJ8:function(Re,I,h){"use strict";var S=h("rePB"),f=h("VTBJ"),L=h("Ff2n"),m=h("U8pU"),_=h("q1tI"),r=h.n(_),p=h("TSYQ"),d=h.n(p),c=h("c+Xe"),o=h("sR1s");function i(e){return e&&Object(m.a)(e)==="object"&&!Array.isArray(e)&&!_.isValidElement(e)}function s(e){return typeof e=="string"?!0:Object(c.c)(e)}function a(e,u){var l,g=e.prefixCls,C=e.className,x=e.record,y=e.index,T=e.dataIndex,A=e.render,E=e.children,b=e.component,v=b===void 0?"td":b,O=e.colSpan,D=e.rowSpan,W=e.fixLeft,Q=e.fixRight,j=e.firstFixLeft,Z=e.lastFixLeft,Y=e.firstFixRight,w=e.lastFixRight,P=e.appendNode,k=e.additionalProps,K=k===void 0?{}:k,M=e.ellipsis,H=e.align,ae=e.rowType,ve=e.isSticky,de="".concat(g,"-cell"),be,z;if(E)z=E;else{var ne=Object(o.b)(x,T);if(z=ne,A){var fe=A(ne,x,y);i(fe)?(z=fe.children,be=fe.props):z=fe}}Object(m.a)(z)==="object"&&!Array.isArray(z)&&!_.isValidElement(z)&&(z=null),M&&(Z||Y)&&(z=_.createElement("span",{className:"".concat(de,"-content")},z));var ie=be||{},oe=ie.colSpan,U=ie.rowSpan,ee=ie.style,J=ie.className,le=Object(L.a)(ie,["colSpan","rowSpan","style","className"]),Pe=oe!==void 0?oe:O,Qe=U!==void 0?U:D;if(Pe===0||Qe===0)return null;var $e={},et=typeof W=="number",Ve=typeof Q=="number";et&&($e.position="sticky",$e.left=W),Ve&&($e.position="sticky",$e.right=Q);var Le={};H&&(Le.textAlign=H);var Oe,Ce=M===!0?{showTitle:!0}:M;Ce&&(Ce.showTitle||ae==="header")&&(typeof z=="string"||typeof z=="number"?Oe=z.toString():_.isValidElement(z)&&typeof z.props.children=="string"&&(Oe=z.props.children));var ue=Object(f.a)(Object(f.a)(Object(f.a)({title:Oe},le),K),{},{colSpan:Pe&&Pe!==1?Pe:null,rowSpan:Qe&&Qe!==1?Qe:null,className:d()(de,C,(l={},Object(S.a)(l,"".concat(de,"-fix-left"),et),Object(S.a)(l,"".concat(de,"-fix-left-first"),j),Object(S.a)(l,"".concat(de,"-fix-left-last"),Z),Object(S.a)(l,"".concat(de,"-fix-right"),Ve),Object(S.a)(l,"".concat(de,"-fix-right-first"),Y),Object(S.a)(l,"".concat(de,"-fix-right-last"),w),Object(S.a)(l,"".concat(de,"-ellipsis"),M),Object(S.a)(l,"".concat(de,"-with-append"),P),Object(S.a)(l,"".concat(de,"-fix-sticky"),(et||Ve)&&ve),l),K.className,J),style:Object(f.a)(Object(f.a)(Object(f.a)(Object(f.a)({},K.style),Le),$e),ee),ref:s(v)?u:null});return _.createElement(v,Object.assign({},ue),P,z)}var n=_.forwardRef(a);n.displayName="Cell";var t=_.memo(n,function(e,u){return u.shouldCellUpdate?!u.shouldCellUpdate(u.record,e.record):!1});I.a=t},gIYZ:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};I.default=S},h78n:function(Re,I,h){"use strict";h.d(I,"a",function(){return j});var S=h("q1tI"),f=h.n(S),L=h("TSYQ"),m=h.n(L),_={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},r=function(w){var P=w.map(function(){return Object(S.useRef)()}),k=Object(S.useRef)();return Object(S.useEffect)(function(){var K=Date.now(),M=!1;Object.keys(P).forEach(function(H){var ae=P[H].current;if(!ae)return;M=!0;var ve=ae.style;ve.transitionDuration=".3s, .3s, .3s, .06s",k.current&&K-k.current<100&&(ve.transitionDuration="0s, 0s")}),M&&(k.current=Date.now())}),[P]};function p(){return p=Object.assign||function(Y){for(var w=1;wY.length)&&(w=Y.length);for(var P=0,k=new Array(w);P=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Y,k))continue;P[k]=Y[k]}}return P}function t(Y,w){if(Y==null)return{};var P={},k=Object.keys(Y),K,M;for(M=0;M=0)continue;P[K]=Y[K]}return P}var e=function(w){var P=w.className,k=w.percent,K=w.prefixCls,M=w.strokeColor,H=w.strokeLinecap,ae=w.strokeWidth,ve=w.style,de=w.trailColor,be=w.trailWidth,z=w.transition,ne=n(w,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ne.gapPosition;var fe=Array.isArray(k)?k:[k],ie=Array.isArray(M)?M:[M],oe=r(fe),U=d(oe,1),ee=U[0],J=ae/2,le=100-ae/2,Pe="M ".concat(H==="round"?J:0,",").concat(J,` + L `).concat(H==="round"?le:100,",").concat(J),Qe="0 0 100 ".concat(ae),$e=0;return f.a.createElement("svg",p({className:m()("".concat(K,"-line"),P),viewBox:Qe,preserveAspectRatio:"none",style:ve},ne),f.a.createElement("path",{className:"".concat(K,"-line-trail"),d:Pe,strokeLinecap:H,stroke:de,strokeWidth:be||ae,fillOpacity:"0"}),fe.map(function(et,Ve){var Le={strokeDasharray:"".concat(et,"px, 100px"),strokeDashoffset:"-".concat($e,"px"),transition:z||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Oe=ie[Ve]||ie[ie.length-1];return $e+=et,f.a.createElement("path",{key:Ve,className:"".concat(K,"-line-path"),d:Pe,strokeLinecap:H,stroke:Oe,strokeWidth:ae,fillOpacity:"0",ref:ee[Ve],style:Le})}))};e.defaultProps=_;var u=e;function l(){return l=Object.assign||function(Y){for(var w=1;wY.length)&&(w=Y.length);for(var P=0,k=new Array(w);P=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Y,k))continue;P[k]=Y[k]}}return P}function b(Y,w){if(Y==null)return{};var P={},k=Object.keys(Y),K,M;for(M=0;M=0)continue;P[K]=Y[K]}return P}var v=0;function O(Y){return+Y.replace("%","")}function D(Y){return Array.isArray(Y)?Y:[Y]}function W(Y,w,P,k){var K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,M=arguments.length>5?arguments[5]:void 0,H=50-k/2,ae=0,ve=-H,de=0,be=-2*H;switch(M){case"left":ae=-H,ve=0,de=2*H,be=0;break;case"right":ae=H,ve=0,de=-2*H,be=0;break;case"bottom":ve=H,be=2*H;break;default:}var z="M 50,50 m ".concat(ae,",").concat(ve,` a `).concat(H,",").concat(H," 0 1 1 ").concat(de,",").concat(-be,` - a `).concat(H,",").concat(H," 0 1 1 ").concat(-de,",").concat(be),ne=Math.PI*2*H,fe={stroke:P,strokeDasharray:"".concat(w/100*(ne-K),"px ").concat(ne,"px"),strokeDashoffset:"-".concat(K/2+Y/100*(ne-K),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:z,pathStyle:fe}}var Q=function(w){var P=w.prefixCls,L=w.strokeWidth,K=w.trailWidth,M=w.gapDegree,H=w.gapPosition,ae=w.trailColor,ve=w.strokeLinecap,de=w.style,be=w.className,z=w.strokeColor,ne=w.percent,fe=E(w,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ie=Object(S.useMemo)(function(){return v+=1,v},[]),oe=W(0,100,ae,L,M,H),U=oe.pathString,ee=oe.pathStyle,J=D(ne),le=D(z),Pe=le.find(function(ke){return Object.prototype.toString.call(ke)==="[object Object]"}),Qe=r(J),$e=g(Qe,1),et=$e[0],Ve=function(){var Oe=0;return J.map(function(Ce,ue){var N=le[ue]||le[le.length-1],te=Object.prototype.toString.call(N)==="[object Object]"?"url(#".concat(P,"-gradient-").concat(ie,")"):"",F=W(Oe,Ce,N,L,M,H);return Oe+=Ce,f.a.createElement("path",{key:ue,className:"".concat(P,"-circle-path"),d:F.pathString,stroke:te,strokeLinecap:ve,strokeWidth:L,opacity:Ce===0?0:1,fillOpacity:"0",style:F.pathStyle,ref:et[ue]})})};return f.a.createElement("svg",l({className:m()("".concat(P,"-circle"),be),viewBox:"0 0 100 100",style:de},fe),Pe&&f.a.createElement("defs",null,f.a.createElement("linearGradient",{id:"".concat(P,"-gradient-").concat(ie),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Pe).sort(function(ke,Oe){return O(ke)-O(Oe)}).map(function(ke,Oe){return f.a.createElement("stop",{key:Oe,offset:ke,stopColor:Pe[ke]})}))),f.a.createElement("path",{className:"".concat(P,"-circle-trail"),d:U,stroke:ae,strokeLinecap:ve,strokeWidth:K||L,fillOpacity:"0",style:ee}),Ve().reverse())};Q.defaultProps=_;var j=Q,Z={Line:u,Circle:j}},hW8S:function(Re,I,h){"use strict";h.d(I,"a",function(){return m}),h.d(I,"c",function(){return _}),h.d(I,"b",function(){return r});var S=h("VTBJ"),f=h("Ff2n"),k=h("Kwbf"),m="RC_TABLE_INTERNAL_COL_DEFINE";function _(p){var d=p.expandable,c=Object(f.a)(p,["expandable"]);return"expandable"in p?Object(S.a)(Object(S.a)({},c),d):c}function r(p){return Object.keys(p).reduce(function(d,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(d[c]=p[c]),d},{})}},hXwI:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;p>>3]&1<>>10,this.keys[M]|=(ae&4032)>>>6,++M,this.keys[M]=(H&258048)<<12,this.keys[M]|=(H&63)<<16,this.keys[M]|=(ae&258048)>>>4,this.keys[M]|=ae&63,++M}}return k(y,[{key:"enc8",value:function(A){var E=A.slice(),b=0,v,O,D;v=E[b++]<<24|E[b++]<<16|E[b++]<<8|E[b++],O=E[b++]<<24|E[b++]<<16|E[b++]<<8|E[b++],D=(v>>>4^O)&252645135,O^=D,v^=D<<4,D=(v>>>16^O)&65535,O^=D,v^=D<<16,D=(O>>>2^v)&858993459,v^=D,O^=D<<2,D=(O>>>8^v)&16711935,v^=D,O^=D<<8,O=O<<1|O>>>31&1,D=(v^O)&2863311530,v^=D,O^=D,v=v<<1|v>>>31&1;for(var W=0,Q=0;W<8;++W){D=O<<28|O>>>4,D^=this.keys[Q++];var j=g[D&63];j|=u[D>>>8&63],j|=t[D>>>16&63],j|=a[D>>>24&63],D=O^this.keys[Q++],j|=C[D&63],j|=l[D>>>8&63],j|=e[D>>>16&63],j|=n[D>>>24&63],v^=j,D=v<<28|v>>>4,D^=this.keys[Q++],j=g[D&63],j|=u[D>>>8&63],j|=t[D>>>16&63],j|=a[D>>>24&63],D=v^this.keys[Q++],j|=C[D&63],j|=l[D>>>8&63],j|=e[D>>>16&63],j|=n[D>>>24&63],O^=j}for(O=O<<31|O>>>1,D=(v^O)&2863311530,v^=D,O^=D,v=v<<31|v>>>1,D=(v>>>8^O)&16711935,O^=D,v^=D<<8,D=(v>>>2^O)&858993459,O^=D,v^=D<<2,D=(O>>>16^v)&65535,v^=D,O^=D<<16,D=(O>>>4^v)&252645135,v^=D,O^=D<<4,D=[O,v],b=0;b<8;b++)E[b]=(D[b>>>2]>>>8*(3-b%4))%256,E[b]<0&&(E[b]+=256);return E}},{key:"encrypt",value:function(A){return this.enc8(A.slice(0,8)).concat(this.enc8(A.slice(8,16)))}}]),y}();I.default=x},ji0R:function(Re,I,h){Re.exports=h.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(Re,I,h){"use strict";var S=h("g9YV"),f=h("wCAj"),k=h("miYZ"),m=h("tsqr"),_=h("5Dmo"),r=h("3S7+"),p=h("sRBo"),d=h("kaz8"),c=h("oBTY"),o=h("9og8"),i=h("tJVT"),s=h("k1fw"),a=h("+L6B"),n=h("2/Rp"),t=h("O3gP"),e=h("lrIw"),u=h("y8nQ"),l=h("Vl3Y"),g=h("5NDa"),C=h("5rEg"),x=h("WmNS"),y=h.n(x),T=h("q1tI"),A=h.n(T),E=h("55Ip"),b=h("wd/R"),v=h.n(b),O=h("RotF"),D=h.n(O),W=h("E7E6"),Q=h.n(W),j=h("oUNq"),Z=[];function Y(K){var M=K.onSearch,H=K.schools;return A.a.createElement(l.a,{layout:"inline",onFinish:M,initialValues:{keyword:"",school_name:""},className:"search-form"},A.a.createElement(l.a.Item,{label:"\u59D3\u540D",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},A.a.createElement(C.a,{allowClear:!0,style:{width:370},size:"large"})),A.a.createElement(l.a.Item,{label:"\u5355\u4F4D",name:"school_name"},A.a.createElement(e.a,{options:H,style:{width:400},size:"large",showSearch:!0,filterOption:function(ve,de){return de.value.toUpperCase().indexOf(ve.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),A.a.createElement(l.a.Item,null,A.a.createElement(n.a,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))}var w;(function(K){K[K.INITDATA=0]="INITDATA",K[K.INITSCHOOLS=1]="INITSCHOOLS",K[K.SHOWLOADING=2]="SHOWLOADING",K[K.SELECTEDIDS=3]="SELECTEDIDS",K[K.SETQUERY=4]="SETQUERY",K[K.SETPAGE=5]="SETPAGE"})(w||(w={}));function P(K,M){switch(M.type){case w.INITDATA:return Object(s.a)(Object(s.a)({},K),M.payload);case w.SETQUERY:return Object(s.a)(Object(s.a)({},K),M.payload);case w.SETPAGE:return Object(s.a)(Object(s.a)({},K),{},{page:M.payload,reload:!1});case w.SHOWLOADING:return Object(s.a)(Object(s.a)({},K),{},{loading:M.payload});case w.INITSCHOOLS:return Object(s.a)(Object(s.a)({},K),{},{schools:M.payload});case w.SELECTEDIDS:return Object(s.a)(Object(s.a)({},K),{},{selectedIds:M.payload});default:throw new Error}}var L={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};I.a=function(K){var M=K.onSelect,H=K.onCancel,ae=K.container_id,ve=K.container_type,de=Object(T.useReducer)(P,L),be=Object(i.a)(de,2),z=be[0],ne=be[1],fe=z.data,ie=z.schools,oe=z.loading,U=z.selectedIds,ee=z.page,J=z.count,le=z.query,Pe=z.reload;Object(T.useEffect)(function(){function Ce(){return ue.apply(this,arguments)}function ue(){return ue=Object(o.a)(y.a.mark(function N(){var te,F,Ae;return y.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(j.wb)(Object(s.a)(Object(s.a)({},le),{},{page:ee,container_type:ve,container_id:ae}));case 2:te=he.sent,F=te.users,Ae=te.user_count,ne({type:w.INITDATA,payload:{data:Pe?F:[].concat(Object(c.a)(fe),Object(c.a)(F)),count:Ae}});case 6:case"end":return he.stop()}},N)})),ue.apply(this,arguments)}le&&Ce()},[ee,le,Pe,ae,ve]),Object(T.useEffect)(function(){function Ce(){return ue.apply(this,arguments)}function ue(){return ue=Object(o.a)(y.a.mark(function N(){var te,F;return y.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(j.kb)({});case 2:te=tt.sent,F=te.school_names,ne({type:w.INITSCHOOLS,payload:F.map(function(he){return{value:he}})});case 5:case"end":return tt.stop()}},N)})),ue.apply(this,arguments)}Ce()},[]);var Qe=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(ue,N){return A.a.createElement(d.a,{value:N.numid,checked:U.includes(N.numid),disabled:!!ue})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(ue,N){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement(E.a,{className:"bold c-black",to:"/users/".concat(N.login),target:"_blank"},ue||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(ue){return ue?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,v()(ue).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(ue){if(ue===1)return A.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];function $e(Ce){ne({type:w.SETQUERY,payload:{page:1,reload:!0,query:Ce}})}function et(Ce){ne({type:w.SETPAGE,payload:Ce})}function Ve(Ce){var ue=U.indexOf(Ce);ue>=0?U.splice(ue,1):U.push(Ce),ne({type:w.SELECTEDIDS,payload:Object(c.a)(U)})}function ke(){U.length===0?m.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(M(U,ae),ne({type:w.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var Oe=J>ee*10;return A.a.createElement("div",{className:"select-user-container"},A.a.createElement(Y,{onSearch:$e,schools:ie}),le?A.a.createElement(A.a.Fragment,null,A.a.createElement("div",{className:"flexd-table-header mt20"},A.a.createElement(f.a,{pagination:!1,dataSource:Z,columns:Qe})),A.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},A.a.createElement(D.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:et,hasMore:Oe,useWindow:!1},A.a.createElement(f.a,{loading:oe,showHeader:!1,pagination:!1,dataSource:fe,columns:Qe,onRow:function(ue){return{onClick:function(te){ue.added!==1&&Ve(ue.numid)}}}}))),A.a.createElement("div",{className:"flex-container flex-end"},A.a.createElement(n.a,{type:"ghost",style:{marginRight:10},onClick:H},"\u53D6\u6D88"),A.a.createElement(n.a,{type:"primary",onClick:ke},"\u786E\u5B9A"))):A.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},A.a.createElement("img",{src:Q.a,width:"100",alt:""}),A.a.createElement("br",null),A.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(Re,I,h){"use strict";h.d(I,"a",function(){return Uo});var S=h("rePB"),f=h("ODXe"),k=h("Ff2n"),m=h("VTBJ"),_=h("q1tI"),r=h("TSYQ"),p=h.n(r),d=h("Zm9Q"),c=h("6cGi"),o=h("KQm4"),i=h("xEkU"),s=h.n(i),a=h("t23M");function n(ce){var Ie=Object(_.useRef)(),Ke=Object(_.useRef)(!1);function ge(){for(var X=arguments.length,re=new Array(X),G=0;GJe&&(dt=Je-ut),Object(_.useMemo)(function(){if(!re.length)return[0,0];for(var _t=re.length,Nt=_t,tn=0;tn<_t;tn+=1){var zt=ce.get(re[tn].key)||x;if(zt[Fe]+zt[Ee]>je+dt){Nt=tn-1;break}}for(var ln=0,on=_t-1;on>=0;on-=1){var nn=ce.get(re[on].key)||x;if(nn[Fe]1&&arguments[1]!==void 0?arguments[1]:!1,ge=Ie&&typeof Ie.getBoundingClientRect=="function"&&Ie.getBoundingClientRect().width;if(ge){if(Ke){var X=getComputedStyle(Ie),re=X.marginLeft,G=X.marginRight;ge+=+re.replace("px","")+ +G.replace("px","")}ge=+ge.toFixed(6)}return ge||0},Oe=function(Ie,Ke,ge){Ie&&Object(Y.a)(Ie.style)==="object"&&(Ie.style[Ke]=ge)},Ce=function(){return J.any},ue=h("bdgK"),N=h("i8i4"),te=h.n(N),F=h("wgJM"),Ae=h("l4aY"),tt=h("m+aA"),he=h("c+Xe"),We=h("zT1h"),rt=h("QC+M");function V(ce,Ie,Ke){return Ke?ce[0]===Ie[0]:ce[0]===Ie[0]&&ce[1]===Ie[1]}function Be(ce,Ie,Ke){var ge=ce[Ie]||{};return Object(m.a)(Object(m.a)({},ge),Ke)}function xe(ce,Ie,Ke,ge){for(var X=Ke.points,re=Object.keys(ce),G=0;G1&&arguments[1]!==void 0?arguments[1]:2;Ie();var re=Object(F.a)(function(){X<=1?ge({isCanceled:function(){return re!==ce.current}}):Ke(ge,X-1)});ce.current=re}return _.useEffect(function(){return function(){Ie()}},[]),[Ke,Ie]},Rt=[Xe,ot,st,ze],Bt=!1,Xt=!0;function Ft(ce){return ce===st||ce===ze}var Qt=function(ce,Ie){var Ke=_.useState(qe),ge=Object(f.a)(Ke,2),X=ge[0],re=ge[1],G=pt(),_e=Object(f.a)(G,2),Ee=_e[0],Fe=_e[1];function je(){re(Xe)}return vt(function(){if(X!==qe&&X!==ze){var Je=Rt.indexOf(X),nt=Rt[Je+1],ut=Ie(X);ut===Bt?re(nt):Ee(function(dt){function _t(){if(dt.isCanceled())return;re(nt)}ut===!0?_t():Promise.resolve(ut).then(_t)})}},[ce,X]),_.useEffect(function(){return function(){Fe()}},[]),[je,X]},pn=function(ce){var Ie=Object(_.useRef)(),Ke=Object(_.useRef)(ce);Ke.current=ce;var ge=_.useCallback(function(G){Ke.current(G)},[]);function X(G){G&&(G.removeEventListener(Se,ge),G.removeEventListener(ye,ge))}function re(G){Ie.current&&Ie.current!==G&&X(Ie.current),G&&G!==Ie.current&&(G.addEventListener(Se,ge),G.addEventListener(ye,ge),Ie.current=G)}return _.useEffect(function(){return function(){X(Ie.current)}},[]),[re,X]};function Pn(ce,Ie,Ke,ge){var X=ge.motionEnter,re=X===void 0?!0:X,G=ge.motionAppear,_e=G===void 0?!0:G,Ee=ge.motionLeave,Fe=Ee===void 0?!0:Ee,je=ge.motionDeadline,Je=ge.motionLeaveImmediately,nt=ge.onAppearPrepare,ut=ge.onEnterPrepare,dt=ge.onLeavePrepare,_t=ge.onAppearStart,Nt=ge.onEnterStart,tn=ge.onLeaveStart,zt=ge.onAppearActive,ln=ge.onEnterActive,on=ge.onLeaveActive,nn=ge.onAppearEnd,Jt=ge.onEnterEnd,Cn=ge.onLeaveEnd,un=ge.onVisibleChanged,$n=it(),Mn=Object(f.a)($n,2),It=Mn[0],Lt=Mn[1],mn=it(Ye),vn=Object(f.a)(mn,2),Tt=vn[0],xn=vn[1],Gn=it(null),Sn=Object(f.a)(Gn,2),jn=Sn[0],aa=Sn[1],Oa=Object(_.useRef)(!1),Ha=Object(_.useRef)(null),ca=Object(_.useRef)(!1),Wa=Object(_.useRef)(null);function hr(){var kt=Ke();return kt||Wa.current}var me=Object(_.useRef)(!1);function Ze(kt){var wt=hr();if(kt&&!kt.deadline&&kt.target!==wt)return;var Ut;Tt===Te&&me.current?Ut=nn==null?void 0:nn(wt,kt):Tt===$&&me.current?Ut=Jt==null?void 0:Jt(wt,kt):Tt===pe&&me.current&&(Ut=Cn==null?void 0:Cn(wt,kt)),Ut!==!1&&!ca.current&&(xn(Ye),aa(null))}var mt=pn(Ze),ht=Object(f.a)(mt,1),Ct=ht[0],xt=_.useMemo(function(){var kt,wt,Ut;switch(Tt){case"appear":return kt={},Object(S.a)(kt,Xe,nt),Object(S.a)(kt,ot,_t),Object(S.a)(kt,st,zt),kt;case"enter":return wt={},Object(S.a)(wt,Xe,ut),Object(S.a)(wt,ot,Nt),Object(S.a)(wt,st,ln),wt;case"leave":return Ut={},Object(S.a)(Ut,Xe,dt),Object(S.a)(Ut,ot,tn),Object(S.a)(Ut,st,on),Ut;default:return{}}},[Tt]),Vt=Qt(Tt,function(kt){if(kt===Xe){var wt=xt[Xe];return wt?wt(hr()):Bt}if(gt in xt){var Ut;aa(((Ut=xt[gt])===null||Ut===void 0?void 0:Ut.call(xt,hr(),null))||null)}return gt===st&&(Ct(hr()),je>0&&(clearTimeout(Ha.current),Ha.current=setTimeout(function(){Ze({deadline:!0})},je))),Xt}),St=Object(f.a)(Vt,2),hn=St[0],gt=St[1],ft=Ft(gt);me.current=ft,vt(function(){Lt(Ie);var kt=Oa.current;if(Oa.current=!0,!ce)return;var wt;!kt&&Ie&&_e&&(wt=Te),kt&&Ie&&re&&(wt=$),(kt&&!Ie&&Fe||!kt&&Je&&!Ie&&Fe)&&(wt=pe),wt&&(xn(wt),hn())},[Ie]),Object(_.useEffect)(function(){(Tt===Te&&!_e||Tt===$&&!re||Tt===pe&&!Fe)&&xn(Ye)},[_e,re,Fe]),Object(_.useEffect)(function(){return function(){clearTimeout(Ha.current),ca.current=!0}},[]),Object(_.useEffect)(function(){It!==void 0&&Tt===Ye&&(un==null||un(It))},[It,Tt]);var Ht=jn;return xt[Xe]&>===ot&&(Ht=Object(m.a)({transition:"none"},Ht)),[Tt,gt,Ht,It!=null?It:Ie]}var na=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){return Object(A.a)(this,Ke),Ie.apply(this,arguments)}return Object(E.a)(Ke,[{key:"render",value:function(){return this.props.children}}]),Ke}(_.Component),Ot=na;function dn(ce){var Ie=ce;Object(Y.a)(ce)==="object"&&(Ie=ce.transitionSupport);function Ke(X){return!!(X.motionName&&Ie)}var ge=_.forwardRef(function(X,re){var G=X.visible,_e=G===void 0?!0:G,Ee=X.removeOnLeave,Fe=Ee===void 0?!0:Ee,je=X.forceRender,Je=X.children,nt=X.motionName,ut=X.leavedClassName,dt=X.eventProps,_t=Ke(X),Nt=Object(_.useRef)(),tn=Object(_.useRef)();function zt(){try{return Object(tt.a)(Nt.current||tn.current)}catch(xn){return null}}var ln=Pn(_t,_e,zt,X),on=Object(f.a)(ln,4),nn=on[0],Jt=on[1],Cn=on[2],un=on[3],$n=_.useRef(un);un&&($n.current=!0);var Mn=Object(_.useRef)(re);Mn.current=re;var It=_.useCallback(function(xn){Nt.current=xn,Object(he.b)(Mn.current,xn)},[]),Lt,mn=Object(m.a)(Object(m.a)({},dt),{},{visible:_e});if(!Je)Lt=null;else if(nn===Ye||!Ke(X))un?Lt=Je(Object(m.a)({},mn),It):!Fe&&$n.current?Lt=Je(Object(m.a)(Object(m.a)({},mn),{},{className:ut}),It):je?Lt=Je(Object(m.a)(Object(m.a)({},mn),{},{style:{display:"none"}}),It):Lt=null;else{var vn,Tt;Jt===Xe?Tt="prepare":Ft(Jt)?Tt="active":Jt===ot&&(Tt="start"),Lt=Je(Object(m.a)(Object(m.a)({},mn),{},{className:p()(Ge(nt,nn),(vn={},Object(S.a)(vn,Ge(nt,"".concat(nn,"-").concat(Tt)),Tt),Object(S.a)(vn,nt,typeof nt=="string"),vn)),style:Cn}),It)}return _.createElement(Ot,{ref:tn},Lt)});return ge.displayName="CSSMotion",ge}var Rn=dn(q),Yn="add",On="keep",Wn="remove",jt="removed";function qn(ce){var Ie;return ce&&Object(Y.a)(ce)==="object"&&"key"in ce?Ie=ce:Ie={key:ce},Object(m.a)(Object(m.a)({},Ie),{},{key:String(Ie.key)})}function wa(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ce.map(qn)}function zn(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ke=[],ge=0,X=Ie.length,re=wa(ce),G=wa(Ie);re.forEach(function(Fe){for(var je=!1,Je=ge;Je1});return Ee.forEach(function(Fe){Ke=Ke.filter(function(je){var Je=je.key,nt=je.status;return Je!==Fe||nt!==Wn}),Ke.forEach(function(je){je.key===Fe&&(je.status=On)})}),Ke}var Jn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ua(ce){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn,Ke=function(ge){Object(v.a)(re,ge);var X=Object(O.a)(re);function re(){var G;return Object(A.a)(this,re),G=X.apply(this,arguments),G.state={keyEntities:[]},G.removeKey=function(_e){G.setState(function(Ee){var Fe=Ee.keyEntities;return{keyEntities:Fe.map(function(je){return je.key!==_e?je:Object(m.a)(Object(m.a)({},je),{},{status:jt})})}})},G}return Object(E.a)(re,[{key:"render",value:function(){var _e=this,Ee=this.state.keyEntities,Fe=this.props,je=Fe.component,Je=Fe.children,nt=Fe.onVisibleChanged,ut=Object(k.a)(Fe,["component","children","onVisibleChanged"]),dt=je||_.Fragment,_t={};return Jn.forEach(function(Nt){_t[Nt]=ut[Nt],delete ut[Nt]}),delete ut.keys,_.createElement(dt,ut,Ee.map(function(Nt){var tn=Nt.status,zt=Object(k.a)(Nt,["status"]),ln=tn===Yn||tn===On;return _.createElement(Ie,Object(T.a)({},_t,{key:zt.key,visible:ln,eventProps:zt,onVisibleChanged:function(nn){nt==null||nt(nn,{key:zt.key}),nn||_e.removeKey(zt.key)}}),Je)}))}}],[{key:"getDerivedStateFromProps",value:function(_e,Ee){var Fe=_e.keys,je=Ee.keyEntities,Je=wa(Fe),nt=zn(je,Je);return{keyEntities:nt.filter(function(ut){var dt=je.find(function(_t){var Nt=_t.key;return ut.key===Nt});return!(dt&&dt.status===jt&&ut.status===Wn)})}}}]),re}(_.Component);return Ke.defaultProps={component:"div"},Ke}var Tn=ua(q),ga=Rn;function La(ce){var Ie=ce.prefixCls,Ke=ce.motion,ge=ce.animation,X=ce.transitionName;return Ke||(ge?{motionName:"".concat(Ie,"-").concat(ge)}:X?{motionName:X}:null)}function cr(ce){var Ie=ce.prefixCls,Ke=ce.visible,ge=ce.zIndex,X=ce.mask,re=ce.maskMotion,G=ce.maskAnimation,_e=ce.maskTransitionName;if(!X)return null;var Ee={};return(re||_e||G)&&(Ee=Object(m.a)({motionAppear:!0},La({motion:re,prefixCls:Ie,transitionName:_e,animation:G}))),_.createElement(ga,Object(T.a)({},Ee,{visible:Ke,removeOnLeave:!0}),function(Fe){var je=Fe.className;return _.createElement("div",{style:{zIndex:ge},className:p()("".concat(Ie,"-mask"),je)})})}var qa=h("9mu1"),Va=h("o0o1"),dr=h.n(Va),Ga=h("HaE+"),Sr=["measure","align",null,"motion"],Nn=function(ce,Ie){var Ke=Object(_.useState)(null),ge=Object(f.a)(Ke,2),X=ge[0],re=ge[1],G=Object(_.useRef)(),_e=Object(_.useRef)(!1);function Ee(Je){_e.current||re(Je)}function Fe(){F.a.cancel(G.current)}function je(Je){Fe(),G.current=Object(F.a)(function(){Ee(function(nt){switch(X){case"align":return"motion";case"motion":return"stable";default:}return nt}),Je==null||Je()})}return Object(_.useEffect)(function(){Ee("measure")},[ce]),Object(_.useEffect)(function(){switch(X){case"measure":Ie();break;default:}X&&(G.current=Object(F.a)(Object(Ga.a)(dr.a.mark(function Je(){var nt,ut;return dr.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:nt=Sr.indexOf(X),ut=Sr[nt+1],ut&&nt!==-1&&Ee(ut);case 3:case"end":return _t.stop()}},Je)}))))},[X]),Object(_.useEffect)(function(){return function(){_e.current=!0,Fe()}},[]),[X,je]},Gr=function(ce){var Ie=_.useState({width:0,height:0}),Ke=Object(f.a)(Ie,2),ge=Ke[0],X=Ke[1];function re(_e){X({width:_e.offsetWidth,height:_e.offsetHeight})}var G=_.useMemo(function(){var _e={};if(ce){var Ee=ge.width,Fe=ge.height;ce.indexOf("height")!==-1&&Fe?_e.height=Fe:ce.indexOf("minHeight")!==-1&&Fe&&(_e.minHeight=Fe),ce.indexOf("width")!==-1&&Ee?_e.width=Ee:ce.indexOf("minWidth")!==-1&&Ee&&(_e.minWidth=Ee)}return _e},[ce,ge]);return[G,re]},Qr=_.forwardRef(function(ce,Ie){var Ke=ce.visible,ge=ce.prefixCls,X=ce.className,re=ce.style,G=ce.children,_e=ce.zIndex,Ee=ce.stretch,Fe=ce.destroyPopupOnHide,je=ce.forceRender,Je=ce.align,nt=ce.point,ut=ce.getRootDomNode,dt=ce.getClassNameFromAlign,_t=ce.onAlign,Nt=ce.onMouseEnter,tn=ce.onMouseLeave,zt=ce.onMouseDown,ln=ce.onTouchStart,on=Object(_.useRef)(),nn=Object(_.useRef)(),Jt=Object(_.useState)(),Cn=Object(f.a)(Jt,2),un=Cn[0],$n=Cn[1],Mn=Gr(Ee),It=Object(f.a)(Mn,2),Lt=It[0],mn=It[1];function vn(){Ee&&mn(ut())}var Tt=Nn(Ke,vn),xn=Object(f.a)(Tt,2),Gn=xn[0],Sn=xn[1],jn=Object(_.useRef)();function aa(){return nt||ut}function Oa(){var mt;(mt=on.current)===null||mt===void 0||mt.forceAlign()}function Ha(mt,ht){var Ct=dt(ht);un!==Ct&&$n(Ct),Gn==="align"&&(un!==Ct?Promise.resolve().then(function(){Oa()}):Sn(function(){var xt;(xt=jn.current)===null||xt===void 0||xt.call(jn)}),_t==null||_t(mt,ht))}var ca=Object(m.a)({},La(ce));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(mt){var ht=ca[mt];ca[mt]=function(Ct,xt){return Sn(),ht==null?void 0:ht(Ct,xt)}});function Wa(){return new Promise(function(mt){jn.current=mt})}_.useEffect(function(){!ca.motionName&&Gn==="motion"&&Sn()},[ca.motionName,Gn]),_.useImperativeHandle(Ie,function(){return{forceAlign:Oa,getElement:function(){return nn.current}}});var hr=Object(m.a)(Object(m.a)({},Lt),{},{zIndex:_e,opacity:Gn==="motion"||Gn==="stable"||!Ke?void 0:0,pointerEvents:Gn==="stable"?void 0:"none"},re),me=!0;(Je==null?void 0:Je.points)&&(Gn==="align"||Gn==="stable")&&(me=!1);var Ze=G;return _.Children.count(G)>1&&(Ze=_.createElement("div",{className:"".concat(ge,"-content")},G)),_.createElement(ga,Object(T.a)({visible:Ke,ref:nn,leavedClassName:"".concat(ge,"-hidden")},ca,{onAppearPrepare:Wa,onEnterPrepare:Wa,removeOnLeave:Fe,forceRender:je}),function(mt,ht){var Ct=mt.className,xt=mt.style,Vt=p()(ge,X,un,Ct);return _.createElement(qa.a,{target:aa(),key:"popup",ref:on,monitorWindowResize:!0,disabled:me,align:Je,onAlign:Ha},_.createElement("div",{ref:ht,className:Vt,onMouseEnter:Nt,onMouseLeave:tn,onMouseDownCapture:zt,onTouchStartCapture:ln,style:Object(m.a)(Object(m.a)({},xt),hr)},Ze))})});Qr.displayName="PopupInner";var yo=Qr,Qa=_.forwardRef(function(ce,Ie){var Ke=ce.prefixCls,ge=ce.visible,X=ce.zIndex,re=ce.children,G=ce.mobile;G=G===void 0?{}:G;var _e=G.popupClassName,Ee=G.popupStyle,Fe=G.popupMotion,je=Fe===void 0?{}:Fe,Je=G.popupRender,nt=_.useRef();_.useImperativeHandle(Ie,function(){return{forceAlign:function(){},getElement:function(){return nt.current}}});var ut=Object(m.a)({zIndex:X},Ee),dt=re;return _.Children.count(re)>1&&(dt=_.createElement("div",{className:"".concat(Ke,"-content")},re)),Je&&(dt=Je(dt)),_.createElement(ga,Object(T.a)({visible:ge,ref:nt,removeOnLeave:!0},je),function(_t,Nt){var tn=_t.className,zt=_t.style,ln=p()(Ke,_e,tn);return _.createElement("div",{ref:Nt,className:ln,style:Object(m.a)(Object(m.a)({},zt),ut)},dt)})});Qa.displayName="MobilePopupInner";var Nr=Qa,ro=["visible","mobile"],oo=_.forwardRef(function(ce,Ie){var Ke=ce.visible,ge=ce.mobile,X=Object(k.a)(ce,ro),re=Object(_.useState)(Ke),G=Object(f.a)(re,2),_e=G[0],Ee=G[1],Fe=Object(_.useState)(!1),je=Object(f.a)(Fe,2),Je=je[0],nt=je[1],ut=Object(m.a)(Object(m.a)({},X),{},{visible:_e});Object(_.useEffect)(function(){Ee(Ke),Ke&&ge&&nt(Le())},[Ke,ge]);var dt=Je?_.createElement(Nr,Object(T.a)({},ut,{mobile:ge,ref:Ie})):_.createElement(yo,Object(T.a)({},ut,{ref:Ie}));return _.createElement("div",null,_.createElement(cr,ut),dt)});oo.displayName="Popup";var Eo=oo,io=_.createContext(null),jr=io;function Ur(){}function Co(){return""}function xo(ce){return ce?ce.ownerDocument:window.document}var so=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Do(ce){var Ie=function(Ke){Object(v.a)(X,Ke);var ge=Object(O.a)(X);function X(re){var G;Object(A.a)(this,X),G=ge.call(this,re),G.popupRef=_.createRef(),G.triggerRef=_.createRef(),G.attachId=void 0,G.clickOutsideHandler=void 0,G.touchOutsideHandler=void 0,G.contextMenuOutsideHandler1=void 0,G.contextMenuOutsideHandler2=void 0,G.mouseDownTimeout=void 0,G.focusTime=void 0,G.preClickTime=void 0,G.preTouchTime=void 0,G.delayTimer=void 0,G.hasPopupMouseDown=void 0,G.onMouseEnter=function(Ee){var Fe=G.props.mouseEnterDelay;G.fireEvents("onMouseEnter",Ee),G.delaySetPopupVisible(!0,Fe,Fe?null:Ee)},G.onMouseMove=function(Ee){G.fireEvents("onMouseMove",Ee),G.setPoint(Ee)},G.onMouseLeave=function(Ee){G.fireEvents("onMouseLeave",Ee),G.delaySetPopupVisible(!1,G.props.mouseLeaveDelay)},G.onPopupMouseEnter=function(){G.clearDelayTimer()},G.onPopupMouseLeave=function(Ee){var Fe;if(Ee.relatedTarget&&!Ee.relatedTarget.setTimeout&&Object(Ae.a)((Fe=G.popupRef.current)===null||Fe===void 0?void 0:Fe.getElement(),Ee.relatedTarget))return;G.delaySetPopupVisible(!1,G.props.mouseLeaveDelay)},G.onFocus=function(Ee){G.fireEvents("onFocus",Ee),G.clearDelayTimer(),G.isFocusToShow()&&(G.focusTime=Date.now(),G.delaySetPopupVisible(!0,G.props.focusDelay))},G.onMouseDown=function(Ee){G.fireEvents("onMouseDown",Ee),G.preClickTime=Date.now()},G.onTouchStart=function(Ee){G.fireEvents("onTouchStart",Ee),G.preTouchTime=Date.now()},G.onBlur=function(Ee){G.fireEvents("onBlur",Ee),G.clearDelayTimer(),G.isBlurToHide()&&G.delaySetPopupVisible(!1,G.props.blurDelay)},G.onContextMenu=function(Ee){Ee.preventDefault(),G.fireEvents("onContextMenu",Ee),G.setPopupVisible(!0,Ee)},G.onContextMenuClose=function(){G.isContextMenuToShow()&&G.close()},G.onClick=function(Ee){if(G.fireEvents("onClick",Ee),G.focusTime){var Fe;if(G.preClickTime&&G.preTouchTime?Fe=Math.min(G.preClickTime,G.preTouchTime):G.preClickTime?Fe=G.preClickTime:G.preTouchTime&&(Fe=G.preTouchTime),Math.abs(Fe-G.focusTime)<20)return;G.focusTime=0}G.preClickTime=0,G.preTouchTime=0,G.isClickToShow()&&(G.isClickToHide()||G.isBlurToHide())&&Ee&&Ee.preventDefault&&Ee.preventDefault();var je=!G.state.popupVisible;(G.isClickToHide()&&!je||je&&G.isClickToShow())&&G.setPopupVisible(!G.state.popupVisible,Ee)},G.onPopupMouseDown=function(){if(G.hasPopupMouseDown=!0,clearTimeout(G.mouseDownTimeout),G.mouseDownTimeout=window.setTimeout(function(){G.hasPopupMouseDown=!1},0),G.context){var Ee;(Ee=G.context).onPopupMouseDown.apply(Ee,arguments)}},G.onDocumentClick=function(Ee){if(G.props.mask&&!G.props.maskClosable)return;var Fe=Ee.target,je=G.getRootDomNode(),Je=G.getPopupDomNode();(!Object(Ae.a)(je,Fe)||G.isContextMenuOnly())&&!Object(Ae.a)(Je,Fe)&&!G.hasPopupMouseDown&&G.close()},G.getRootDomNode=function(){var Ee=G.props.getTriggerDOMNode;if(Ee)return Ee(G.triggerRef.current);try{var Fe=Object(tt.a)(G.triggerRef.current);if(Fe)return Fe}catch(je){}return te.a.findDOMNode(Object(b.a)(G))},G.getPopupClassNameFromAlign=function(Ee){var Fe=[],je=G.props,Je=je.popupPlacement,nt=je.builtinPlacements,ut=je.prefixCls,dt=je.alignPoint,_t=je.getPopupClassNameFromAlign;return Je&&nt&&Fe.push(xe(nt,ut,Ee,dt)),_t&&Fe.push(_t(Ee)),Fe.join(" ")},G.getComponent=function(){var Ee=G.props,Fe=Ee.prefixCls,je=Ee.destroyPopupOnHide,Je=Ee.popupClassName,nt=Ee.onPopupAlign,ut=Ee.popupMotion,dt=Ee.popupAnimation,_t=Ee.popupTransitionName,Nt=Ee.popupStyle,tn=Ee.mask,zt=Ee.maskAnimation,ln=Ee.maskTransitionName,on=Ee.maskMotion,nn=Ee.zIndex,Jt=Ee.popup,Cn=Ee.stretch,un=Ee.alignPoint,$n=Ee.mobile,Mn=Ee.forceRender,It=G.state,Lt=It.popupVisible,mn=It.point,vn=G.getPopupAlign(),Tt={};return G.isMouseEnterToShow()&&(Tt.onMouseEnter=G.onPopupMouseEnter),G.isMouseLeaveToHide()&&(Tt.onMouseLeave=G.onPopupMouseLeave),Tt.onMouseDown=G.onPopupMouseDown,Tt.onTouchStart=G.onPopupMouseDown,_.createElement(Eo,Object(T.a)({prefixCls:Fe,destroyPopupOnHide:je,visible:Lt,point:un&&mn,className:Je,align:vn,onAlign:nt,animation:dt,getClassNameFromAlign:G.getPopupClassNameFromAlign},Tt,{stretch:Cn,getRootDomNode:G.getRootDomNode,style:Nt,mask:tn,zIndex:nn,transitionName:_t,maskAnimation:zt,maskTransitionName:ln,maskMotion:on,ref:G.popupRef,motion:ut,mobile:$n,forceRender:Mn}),typeof Jt=="function"?Jt():Jt)},G.attachParent=function(Ee){F.a.cancel(G.attachId);var Fe=G.props,je=Fe.getPopupContainer,Je=Fe.getDocument,nt=G.getRootDomNode(),ut;je?(nt||je.length===0)&&(ut=je(nt)):ut=Je(G.getRootDomNode()).body,ut?ut.appendChild(Ee):G.attachId=Object(F.a)(function(){G.attachParent(Ee)})},G.getContainer=function(){var Ee=G.props.getDocument,Fe=Ee(G.getRootDomNode()).createElement("div");return Fe.style.position="absolute",Fe.style.top="0",Fe.style.left="0",Fe.style.width="100%",G.attachParent(Fe),Fe},G.setPoint=function(Ee){var Fe=G.props.alignPoint;if(!Fe||!Ee)return;G.setState({point:{pageX:Ee.pageX,pageY:Ee.pageY}})},G.handlePortalUpdate=function(){G.state.prevPopupVisible!==G.state.popupVisible&&G.props.afterPopupVisibleChange(G.state.popupVisible)},G.triggerContextValue={onPopupMouseDown:G.onPopupMouseDown};var _e;return"popupVisible"in re?_e=!!re.popupVisible:_e=!!re.defaultPopupVisible,G.state={prevPopupVisible:_e,popupVisible:_e},so.forEach(function(Ee){G["fire".concat(Ee)]=function(Fe){G.fireEvents(Ee,Fe)}}),G}return Object(E.a)(X,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var G=this.props,_e=this.state;if(_e.popupVisible){var Ee;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ee=G.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(We.a)(Ee,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ee=Ee||G.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(We.a)(Ee,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ee=Ee||G.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(We.a)(Ee,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(We.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),F.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var G;return((G=this.popupRef.current)===null||G===void 0?void 0:G.getElement())||null}},{key:"getPopupAlign",value:function(){var G=this.props,_e=G.popupPlacement,Ee=G.popupAlign,Fe=G.builtinPlacements;return _e&&Fe?Be(Fe,_e,Ee):Ee}},{key:"setPopupVisible",value:function(G,_e){var Ee=this.props.alignPoint,Fe=this.state.popupVisible;this.clearDelayTimer(),Fe!==G&&("popupVisible"in this.props||this.setState({popupVisible:G,prevPopupVisible:Fe}),this.props.onPopupVisibleChange(G)),Ee&&_e&&G&&this.setPoint(_e)}},{key:"delaySetPopupVisible",value:function(G,_e,Ee){var Fe=this,je=_e*1e3;if(this.clearDelayTimer(),je){var Je=Ee?{pageX:Ee.pageX,pageY:Ee.pageY}:null;this.delayTimer=window.setTimeout(function(){Fe.setPopupVisible(G,Je),Fe.clearDelayTimer()},je)}else this.setPopupVisible(G,Ee)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(G){var _e=this.props.children.props,Ee=this.props;return _e[G]&&Ee[G]?this["fire".concat(G)]:_e[G]||Ee[G]}},{key:"isClickToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("click")!==-1||Ee.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var G=this.props.action;return G==="contextMenu"||G.length===1&&G[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("contextMenu")!==-1||Ee.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var G=this.props,_e=G.action,Ee=G.hideAction;return _e.indexOf("click")!==-1||Ee.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("hover")!==-1||Ee.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var G=this.props,_e=G.action,Ee=G.hideAction;return _e.indexOf("hover")!==-1||Ee.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("focus")!==-1||Ee.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var G=this.props,_e=G.action,Ee=G.hideAction;return _e.indexOf("focus")!==-1||Ee.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var G;(G=this.popupRef.current)===null||G===void 0||G.forceAlign()}}},{key:"fireEvents",value:function(G,_e){var Ee=this.props.children.props[G];Ee&&Ee(_e);var Fe=this.props[G];Fe&&Fe(_e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var G=this.state.popupVisible,_e=this.props,Ee=_e.children,Fe=_e.forceRender,je=_e.alignPoint,Je=_e.className,nt=_e.autoDestroy,ut=_.Children.only(Ee),dt={key:"trigger"};this.isContextMenuToShow()?dt.onContextMenu=this.onContextMenu:dt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(dt.onClick=this.onClick,dt.onMouseDown=this.onMouseDown,dt.onTouchStart=this.onTouchStart):(dt.onClick=this.createTwoChains("onClick"),dt.onMouseDown=this.createTwoChains("onMouseDown"),dt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(dt.onMouseEnter=this.onMouseEnter,je&&(dt.onMouseMove=this.onMouseMove)):dt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?dt.onMouseLeave=this.onMouseLeave:dt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(dt.onFocus=this.onFocus,dt.onBlur=this.onBlur):(dt.onFocus=this.createTwoChains("onFocus"),dt.onBlur=this.createTwoChains("onBlur"));var _t=p()(ut&&ut.props&&ut.props.className,Je);_t&&(dt.className=_t);var Nt=Object(m.a)({},dt);Object(he.c)(ut)&&(Nt.ref=Object(he.a)(this.triggerRef,ut.ref));var tn=_.cloneElement(ut,Nt),zt;return(G||this.popupRef.current||Fe)&&(zt=_.createElement(ce,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!G&&nt&&(zt=null),_.createElement(jr.Provider,{value:this.triggerContextValue},tn,zt)}}],[{key:"getDerivedStateFromProps",value:function(G,_e){var Ee=G.popupVisible,Fe={};return Ee!==void 0&&_e.popupVisible!==Ee&&(Fe.popupVisible=Ee,Fe.prevPopupVisible=_e.popupVisible),Fe}}]),X}(_.Component);return Ie.contextType=jr,Ie.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Co,getDocument:xo,onPopupVisibleChange:Ur,afterPopupVisibleChange:Ur,onPopupAlign:Ur,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ie}var ko=Do(rt.a),rr={adjustX:1,adjustY:1},Yr={topLeft:{points:["bl","tl"],overflow:rr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:rr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:rr,offset:[4,0]}},lo={topLeft:{points:["bl","tl"],overflow:rr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:rr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:rr,offset:[4,0]}},uo=Yr,Xa=0,$a={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},er=function(Ie,Ke,ge){var X=Qe(Ke),re=Ie.getState();Ie.setState({defaultActiveFirst:Object(m.a)(Object(m.a)({},re.defaultActiveFirst),{},Object(S.a)({},X,ge))})},Jr=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(ge){var X;Object(A.a)(this,Ke),X=Ie.call(this,ge),X.onDestroy=function(je){X.props.onDestroy(je)},X.onKeyDown=function(je){var Je=je.keyCode,nt=X.menuInstance,ut=X.props.store,dt=X.getVisible();if(Je===e.a.ENTER)return X.onTitleClick(je),er(ut,X.props.eventKey,!0),!0;if(Je===e.a.RIGHT)return dt?nt.onKeyDown(je):(X.triggerOpenChange(!0),er(ut,X.props.eventKey,!0)),!0;if(Je===e.a.LEFT){var _t;if(dt)_t=nt.onKeyDown(je);else return;return _t||(X.triggerOpenChange(!1),_t=!0),_t}return dt&&(Je===e.a.UP||Je===e.a.DOWN)?nt.onKeyDown(je):void 0},X.onOpenChange=function(je){X.props.onOpenChange(je)},X.onPopupVisibleChange=function(je){X.triggerOpenChange(je,je?"mouseenter":"mouseleave")},X.onMouseEnter=function(je){var Je=X.props,nt=Je.eventKey,ut=Je.onMouseEnter,dt=Je.store;er(dt,X.props.eventKey,!1),ut({key:nt,domEvent:je})},X.onMouseLeave=function(je){var Je=X.props,nt=Je.parentMenu,ut=Je.eventKey,dt=Je.onMouseLeave;nt.subMenuInstance=Object(b.a)(X),dt({key:ut,domEvent:je})},X.onTitleMouseEnter=function(je){var Je=X.props,nt=Je.eventKey,ut=Je.onItemHover,dt=Je.onTitleMouseEnter;ut({key:nt,hover:!0}),dt({key:nt,domEvent:je})},X.onTitleMouseLeave=function(je){var Je=X.props,nt=Je.parentMenu,ut=Je.eventKey,dt=Je.onItemHover,_t=Je.onTitleMouseLeave;nt.subMenuInstance=Object(b.a)(X),dt({key:ut,hover:!1}),_t({key:ut,domEvent:je})},X.onTitleClick=function(je){var Je=Object(b.a)(X),nt=Je.props;if(nt.onTitleClick({key:nt.eventKey,domEvent:je}),nt.triggerSubMenuAction==="hover")return;X.triggerOpenChange(!X.getVisible(),"click"),er(nt.store,X.props.eventKey,!1)},X.onSubMenuClick=function(je){typeof X.props.onClick=="function"&&X.props.onClick(X.addKeyPath(je))},X.onSelect=function(je){X.props.onSelect(je)},X.onDeselect=function(je){X.props.onDeselect(je)},X.getPrefixCls=function(){return"".concat(X.props.rootPrefixCls,"-submenu")},X.getActiveClassName=function(){return"".concat(X.getPrefixCls(),"-active")},X.getDisabledClassName=function(){return"".concat(X.getPrefixCls(),"-disabled")},X.getSelectedClassName=function(){return"".concat(X.getPrefixCls(),"-selected")},X.getOpenClassName=function(){return"".concat(X.props.rootPrefixCls,"-submenu-open")},X.getVisible=function(){return X.state.isOpen},X.getMode=function(){return X.state.mode},X.saveMenuInstance=function(je){X.menuInstance=je},X.addKeyPath=function(je){return Object(m.a)(Object(m.a)({},je),{},{keyPath:(je.keyPath||[]).concat(X.props.eventKey)})},X.triggerOpenChange=function(je,Je){var nt=X.props.eventKey,ut=function(){X.onOpenChange({key:nt,item:Object(b.a)(X),trigger:Je,open:je})};Je==="mouseenter"?X.mouseenterTimeout=setTimeout(function(){ut()},0):ut()},X.isChildrenSelected=function(){var je={find:!1};return et(X.props.children,X.props.selectedKeys,je),je.find},X.isInlineMode=function(){return X.getMode()==="inline"},X.adjustWidth=function(){if(!X.subMenuTitle||!X.menuInstance)return;var je=N.findDOMNode(X.menuInstance);if(je.offsetWidth>=X.subMenuTitle.offsetWidth)return;je.style.minWidth="".concat(X.subMenuTitle.offsetWidth,"px")},X.saveSubMenuTitle=function(je){X.subMenuTitle=je},X.getBaseProps=function(){var je=Object(b.a)(X),Je=je.props,nt=X.getMode();return{mode:nt==="horizontal"?"vertical":nt,visible:X.getVisible(),level:Je.level+1,inlineIndent:Je.inlineIndent,focusable:!1,onClick:X.onSubMenuClick,onSelect:X.onSelect,onDeselect:X.onDeselect,onDestroy:X.onDestroy,selectedKeys:Je.selectedKeys,eventKey:"".concat(Je.eventKey,"-menu-"),openKeys:Je.openKeys,motion:Je.motion,onOpenChange:X.onOpenChange,subMenuOpenDelay:Je.subMenuOpenDelay,parentMenu:Object(b.a)(X),subMenuCloseDelay:Je.subMenuCloseDelay,forceSubMenuRender:Je.forceSubMenuRender,triggerSubMenuAction:Je.triggerSubMenuAction,builtinPlacements:Je.builtinPlacements,defaultActiveFirst:Je.store.getState().defaultActiveFirst[Qe(Je.eventKey)],multiple:Je.multiple,prefixCls:Je.rootPrefixCls,id:X.internalMenuId,manualRef:X.saveMenuInstance,itemIcon:Je.itemIcon,expandIcon:Je.expandIcon,direction:Je.direction}},X.getMotion=function(je,Je){var nt=Object(b.a)(X),ut=nt.haveRendered,dt=X.props,_t=dt.motion,Nt=dt.rootPrefixCls,tn=Object(m.a)(Object(m.a)({},_t),{},{leavedClassName:"".concat(Nt,"-hidden"),removeOnLeave:!1,motionAppear:ut||!Je||je!=="inline"});return tn};var re=ge.store,G=ge.eventKey,_e=re.getState(),Ee=_e.defaultActiveFirst;X.isRootMenu=!1;var Fe=!1;return Ee&&(Fe=Ee[G]),er(re,G,Fe),X.state={mode:ge.mode,isOpen:ge.isOpen},X}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var X=this,re=this.props,G=re.mode,_e=re.parentMenu,Ee=re.manualRef,Fe=re.isOpen,je=function(){X.setState({mode:G,isOpen:Fe})},Je=Fe!==this.state.isOpen,nt=G!==this.state.mode;if((nt||Je)&&(F.a.cancel(this.updateStateRaf),nt?this.updateStateRaf=Object(F.a)(je):je()),Ee&&Ee(this),G!=="horizontal"||!(_e==null?void 0:_e.isRootMenu)||!Fe)return;this.minWidthTimeout=setTimeout(function(){return X.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var X=this.props,re=X.onDestroy,G=X.eventKey;re&&re(G),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),F.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(X,re){var G=this.getBaseProps();return _.createElement(Br,Object(T.a)({},G,{id:this.internalMenuId,className:X,style:re}),this.props.children)}},{key:"renderChildren",value:function(){var X=this,re=this.getBaseProps(),G=re.mode,_e=re.visible,Ee=re.forceSubMenuRender,Fe=re.direction,je=this.getMotion(G,_e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||_e||Ee,!this.haveOpened)return _.createElement("div",null);var Je=p()("".concat(re.prefixCls,"-sub"),Object(S.a)({},"".concat(re.prefixCls,"-rtl"),Fe==="rtl"));return this.isInlineMode()?_.createElement(ga,Object(T.a)({visible:re.visible,forceRender:Ee},je),function(nt){var ut=nt.className,dt=nt.style,_t=p()(Je,ut);return X.renderPopupMenu(_t,dt)}):this.renderPopupMenu(Je)}},{key:"render",value:function(){var X,re,G,_e=Object(m.a)({},this.props),Ee=this.getVisible(),Fe=this.getPrefixCls(),je=this.isInlineMode(),Je=this.getMode(),nt=p()(Fe,"".concat(Fe,"-").concat(Je),(X={},Object(S.a)(X,_e.className,!!_e.className),Object(S.a)(X,this.getOpenClassName(),Ee),Object(S.a)(X,this.getActiveClassName(),_e.active||Ee&&!je),Object(S.a)(X,this.getDisabledClassName(),_e.disabled),Object(S.a)(X,this.getSelectedClassName(),this.isChildrenSelected()),X));this.internalMenuId||(_e.eventKey?this.internalMenuId="".concat(_e.eventKey,"$Menu"):(Xa+=1,this.internalMenuId="$__$".concat(Xa,"$Menu")));var ut={},dt={},_t={};_e.disabled||(ut={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},dt={onClick:this.onTitleClick},_t={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Nt={},tn=_e.direction,zt=tn==="rtl";je&&(zt?Nt.paddingRight=_e.inlineIndent*_e.level:Nt.paddingLeft=_e.inlineIndent*_e.level);var ln={};this.getVisible()&&(ln={"aria-owns":this.internalMenuId});var on=null;Je!=="horizontal"&&(on=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(on=_.createElement(this.props.expandIcon,Object(m.a)({},this.props))));var nn=_.createElement("div",Object(T.a)({ref:this.saveSubMenuTitle,style:Nt,className:"".concat(Fe,"-title"),role:"button"},_t,dt,{"aria-expanded":Ee},ln,{"aria-haspopup":"true",title:typeof _e.title=="string"?_e.title:void 0}),_e.title,on||_.createElement("i",{className:"".concat(Fe,"-arrow")})),Jt=this.renderChildren(),Cn=((re=_e.parentMenu)===null||re===void 0?void 0:re.isRootMenu)?_e.parentMenu.props.getPopupContainer:function(aa){return aa.parentNode},un=$a[Je],$n=_e.popupOffset?{offset:_e.popupOffset}:{},Mn=p()((G={},Object(S.a)(G,_e.popupClassName,_e.popupClassName&&!je),Object(S.a)(G,"".concat(Fe,"-rtl"),zt),G)),It=_e.disabled,Lt=_e.triggerSubMenuAction,mn=_e.subMenuOpenDelay,vn=_e.forceSubMenuRender,Tt=_e.subMenuCloseDelay,xn=_e.builtinPlacements;Ve.forEach(function(aa){return delete _e[aa]}),delete _e.onClick;var Gn=zt?Object(m.a)(Object(m.a)({},lo),xn):Object(m.a)(Object(m.a)({},Yr),xn);delete _e.direction;var Sn=this.getBaseProps(),jn=je?null:this.getMotion(Sn.mode,Sn.visible);return _.createElement("li",Object(T.a)({},_e,ut,{className:nt,role:"menuitem"}),_.createElement(ko,{prefixCls:Fe,popupClassName:p()("".concat(Fe,"-popup"),Mn),getPopupContainer:Cn,builtinPlacements:Gn,popupPlacement:un,popupVisible:je?!1:Ee,popupAlign:$n,popup:je?null:Jt,action:It||je?[]:[Lt],mouseEnterDelay:mn,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:vn,popupMotion:jn},nn),je?Jt:null)}}]),Ke}(_.Component);Jr.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Ar=Object(D.b)(function(ce,Ie){var Ke=ce.openKeys,ge=ce.activeKey,X=ce.selectedKeys,re=Ie.eventKey,G=Ie.subMenuKey;return{isOpen:Ke.indexOf(re)>-1,active:ge[G]===re,selectedKeys:X}})(Jr);Ar.isSubMenu=!0;var Dr=Ar,Zr="menuitem-overflowed",Lo=.5,co=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){var ge;return Object(A.a)(this,Ke),ge=Ie.apply(this,arguments),ge.resizeObserver=null,ge.mutationObserver=null,ge.originalTotalWidth=0,ge.overflowedItems=[],ge.menuItemSizes=[],ge.cancelFrameId=null,ge.state={lastVisibleIndex:void 0},ge.childRef=_.createRef(),ge.getMenuItemNodes=function(){var X=ge.props.prefixCls,re=ge.childRef.current;return re?[].slice.call(re.children).filter(function(G){return G.className.split(" ").indexOf("".concat(X,"-overflowed-submenu"))<0}):[]},ge.getOverflowedSubMenuItem=function(X,re,G){var _e=ge.props,Ee=_e.overflowedIndicator,Fe=_e.level,je=_e.mode,Je=_e.prefixCls,nt=_e.theme;if(Fe!==1||je!=="horizontal")return null;var ut=ge.props.children[0],dt=ut.props,_t=dt.children,Nt=dt.title,tn=dt.style,zt=Object(k.a)(dt,["children","title","style"]),ln=Object(m.a)({},tn),on="".concat(X,"-overflowed-indicator"),nn="".concat(X,"-overflowed-indicator");re.length===0&&G!==!0?ln=Object(m.a)(Object(m.a)({},ln),{},{display:"none"}):G&&(ln=Object(m.a)(Object(m.a)({},ln),{},{visibility:"hidden",position:"absolute"}),on="".concat(on,"-placeholder"),nn="".concat(nn,"-placeholder"));var Jt=nt?"".concat(Je,"-").concat(nt):"",Cn={};return Ve.forEach(function(un){zt[un]!==void 0&&(Cn[un]=zt[un])}),_.createElement(Dr,Object(T.a)({title:Ee,className:"".concat(Je,"-overflowed-submenu"),popupClassName:Jt},Cn,{key:on,eventKey:nn,disabled:!1,style:ln}),re)},ge.setChildrenWidthAndResize=function(){if(ge.props.mode!=="horizontal")return;var X=ge.childRef.current;if(!X)return;var re=X.children;if(!re||re.length===0)return;var G=X.children[re.length-1];Oe(G,"display","inline-block");var _e=ge.getMenuItemNodes(),Ee=_e.filter(function(Fe){return Fe.className.split(" ").indexOf(Zr)>=0});Ee.forEach(function(Fe){Oe(Fe,"display","inline-block")}),ge.menuItemSizes=_e.map(function(Fe){return ke(Fe,!0)}),Ee.forEach(function(Fe){Oe(Fe,"display","none")}),ge.overflowedIndicatorWidth=ke(X.children[X.children.length-1],!0),ge.originalTotalWidth=ge.menuItemSizes.reduce(function(Fe,je){return Fe+je},0),ge.handleResize(),Oe(G,"display","none")},ge.handleResize=function(){if(ge.props.mode!=="horizontal")return;var X=ge.childRef.current;if(!X)return;var re=ke(X);ge.overflowedItems=[];var G=0,_e;ge.originalTotalWidth>re+Lo&&(_e=-1,ge.menuItemSizes.forEach(function(Ee){G+=Ee,G+ge.overflowedIndicatorWidth<=re&&(_e+=1)})),ge.setState({lastVisibleIndex:_e})},ge}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){var X=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var re=this.childRef.current;if(!re)return;this.resizeObserver=new ue.default(function(G){G.forEach(function(){var _e=X.cancelFrameId;cancelAnimationFrame(_e),X.cancelFrameId=requestAnimationFrame(X.setChildrenWidthAndResize)})}),[].slice.call(re.children).concat(re).forEach(function(G){X.resizeObserver.observe(G)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){X.resizeObserver.disconnect(),[].slice.call(re.children).concat(re).forEach(function(G){X.resizeObserver.observe(G)}),X.setChildrenWidthAndResize()}),this.mutationObserver.observe(re,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(X){var re=this,G=this.state.lastVisibleIndex;return(X||[]).reduce(function(_e,Ee,Fe){var je=Ee;if(re.props.mode==="horizontal"){var Je=re.getOverflowedSubMenuItem(Ee.props.eventKey,[]);G!==void 0&&re.props.className.indexOf("".concat(re.props.prefixCls,"-root"))!==-1&&(Fe>G&&(je=_.cloneElement(Ee,{style:{display:"none"},eventKey:"".concat(Ee.props.eventKey,"-hidden"),className:"".concat(Zr)})),Fe===G+1&&(re.overflowedItems=X.slice(G+1).map(function(ut){return _.cloneElement(ut,{key:ut.props.eventKey,mode:"vertical-left"})}),Je=re.getOverflowedSubMenuItem(Ee.props.eventKey,re.overflowedItems)));var nt=[].concat(Object(o.a)(_e),[Je,je]);return Fe===X.length-1&&nt.push(re.getOverflowedSubMenuItem(Ee.props.eventKey,[],!0)),nt}return[].concat(Object(o.a)(_e),[je])},[])}},{key:"render",value:function(){var X=this.props,re=X.visible,G=X.prefixCls,_e=X.overflowedIndicator,Ee=X.mode,Fe=X.level,je=X.tag,Je=X.children,nt=X.theme,ut=Object(k.a)(X,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),dt=je;return _.createElement(dt,Object(T.a)({ref:this.childRef},ut),this.renderChildren(Je))}}]),Ke}(_.Component);co.defaultProps={tag:"div",className:""};var kr=co;function Kr(ce){return ce.length?ce.every(function(Ie){return!!Ie.props.disabled}):!0}function Vn(ce,Ie,Ke){var ge=ce.getState();ce.setState({activeKey:Object(m.a)(Object(m.a)({},ge.activeKey),{},Object(S.a)({},Ie,Ke))})}function fr(ce){return ce.eventKey||"0-menu-"}function Fr(ce,Ie){var Ke=Ie,ge=ce.children,X=ce.eventKey;if(Ke){var re;if($e(ge,function(G,_e){G&&G.props&&!G.props.disabled&&Ke===Pe(G,X,_e)&&(re=!0)}),re)return Ke}return Ke=null,ce.defaultActiveFirst&&$e(ge,function(G,_e){!Ke&&G&&!G.props.disabled&&(Ke=Pe(G,X,_e))}),Ke}function fo(ce){if(!ce)return;var Ie=this.instanceArray.indexOf(ce);Ie!==-1?this.instanceArray[Ie]=ce:this.instanceArray.push(ce)}var ho=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(ge){var X;return Object(A.a)(this,Ke),X=Ie.call(this,ge),X.onKeyDown=function(re,G){var _e=re.keyCode,Ee;if(X.getFlatInstanceArray().forEach(function(je){je&&je.props.active&&je.onKeyDown&&(Ee=je.onKeyDown(re))}),Ee)return 1;var Fe=null;return(_e===e.a.UP||_e===e.a.DOWN)&&(Fe=X.step(_e===e.a.UP?-1:1)),Fe?(re.preventDefault(),Vn(X.props.store,fr(X.props),Fe.props.eventKey),typeof G=="function"&&G(Fe),1):void 0},X.onItemHover=function(re){var G=re.key,_e=re.hover;Vn(X.props.store,fr(X.props),_e?G:null)},X.onDeselect=function(re){X.props.onDeselect(re)},X.onSelect=function(re){X.props.onSelect(re)},X.onClick=function(re){X.props.onClick(re)},X.onOpenChange=function(re){X.props.onOpenChange(re)},X.onDestroy=function(re){X.props.onDestroy(re)},X.getFlatInstanceArray=function(){return X.instanceArray},X.step=function(re){var G=X.getFlatInstanceArray(),_e=X.props.store.getState().activeKey[fr(X.props)],Ee=G.length;if(!Ee)return null;re<0&&(G=G.concat().reverse());var Fe=-1;if(G.every(function(ut,dt){return ut&&ut.props.eventKey===_e?(Fe=dt,!1):!0}),!X.props.defaultActiveFirst&&Fe!==-1&&Kr(G.slice(Fe,Ee-1)))return;var je=(Fe+1)%Ee,Je=je;do{var nt=G[Je];if(!nt||nt.props.disabled)Je=(Je+1)%Ee;else return nt}while(Je!==je);return null},X.renderCommonMenuItem=function(re,G,_e){var Ee=X.props.store.getState(),Fe=Object(b.a)(X),je=Fe.props,Je=Pe(re,je.eventKey,G),nt=re.props;if(!nt||typeof re.type=="string")return re;var ut=Je===Ee.activeKey,dt=Object(m.a)(Object(m.a)({mode:nt.mode||je.mode,level:je.level,inlineIndent:je.inlineIndent,renderMenuItem:X.renderMenuItem,rootPrefixCls:je.prefixCls,index:G,parentMenu:je.parentMenu,manualRef:nt.disabled?void 0:Object(Q.a)(re.ref,fo.bind(Object(b.a)(X))),eventKey:Je,active:!nt.disabled&&ut,multiple:je.multiple,onClick:function(Nt){(nt.onClick||le)(Nt),X.onClick(Nt)},onItemHover:X.onItemHover,motion:je.motion,subMenuOpenDelay:je.subMenuOpenDelay,subMenuCloseDelay:je.subMenuCloseDelay,forceSubMenuRender:je.forceSubMenuRender,onOpenChange:X.onOpenChange,onDeselect:X.onDeselect,onSelect:X.onSelect,builtinPlacements:je.builtinPlacements,itemIcon:nt.itemIcon||X.props.itemIcon,expandIcon:nt.expandIcon||X.props.expandIcon},_e),{},{direction:je.direction});return(je.mode==="inline"||Ce())&&(dt.triggerSubMenuAction="click"),_.cloneElement(re,Object(m.a)(Object(m.a)({},dt),{},{key:Je||G}))},X.renderMenuItem=function(re,G,_e){if(!re)return null;var Ee=X.props.store.getState(),Fe={openKeys:Ee.openKeys,selectedKeys:Ee.selectedKeys,triggerSubMenuAction:X.props.triggerSubMenuAction,subMenuKey:_e};return X.renderCommonMenuItem(re,G,Fe)},ge.store.setState({activeKey:Object(m.a)(Object(m.a)({},ge.store.getState().activeKey),{},Object(S.a)({},ge.eventKey,Fr(ge,ge.activeKey)))}),X.instanceArray=[],X}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(X){return this.props.visible||X.visible||this.props.className!==X.className||!Z()(this.props.style,X.style)}},{key:"componentDidUpdate",value:function(X){var re=this.props,G="activeKey"in re?re.activeKey:re.store.getState().activeKey[fr(re)],_e=Fr(re,G);if(_e!==G)Vn(re.store,fr(re),_e);else if("activeKey"in X){var Ee=Fr(X,X.activeKey);_e!==Ee&&Vn(re.store,fr(re),_e)}}},{key:"render",value:function(){var X=this,re=Object(T.a)({},this.props);this.instanceArray=[];var G=p()(re.prefixCls,re.className,"".concat(re.prefixCls,"-").concat(re.mode)),_e={className:G,role:re.role||"menu"};re.id&&(_e.id=re.id),re.focusable&&(_e.tabIndex=0,_e.onKeyDown=this.onKeyDown);var Ee=re.prefixCls,Fe=re.eventKey,je=re.visible,Je=re.level,nt=re.mode,ut=re.overflowedIndicator,dt=re.theme;return Ve.forEach(function(_t){return delete re[_t]}),delete re.onClick,_.createElement(kr,Object(T.a)({},re,{prefixCls:Ee,mode:nt,tag:"ul",level:Je,theme:dt,visible:je,overflowedIndicator:ut},_e),Object(d.a)(re.children).map(function(_t,Nt){return X.renderMenuItem(_t,Nt,Fe||"0-menu-")}))}}]),Ke}(_.Component);ho.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var or=Object(D.b)()(ho),Br=or,wr=h("Kwbf");function tr(ce,Ie,Ke){var ge=ce.prefixCls,X=ce.motion,re=ce.defaultMotions,G=re===void 0?{}:re,_e=ce.openAnimation,Ee=ce.openTransitionName,Fe=Ie.switchingModeFromInline;if(X)return X;if(Object(Y.a)(_e)==="object"&&_e)Object(wr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof _e=="string")return{motionName:"".concat(ge,"-open-").concat(_e)};if(Ee)return{motionName:Ee};var je=G[Ke];return je||(Fe?null:G.other)}var po=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(ge){var X;Object(A.a)(this,Ke),X=Ie.call(this,ge),X.onSelect=function(_e){var Ee=Object(b.a)(X),Fe=Ee.props;if(Fe.selectable){var je=X.store.getState(),Je=je.selectedKeys,nt=_e.key;Fe.multiple?Je=Je.concat([nt]):Je=[nt],"selectedKeys"in Fe||X.store.setState({selectedKeys:Je}),Fe.onSelect(Object(m.a)(Object(m.a)({},_e),{},{selectedKeys:Je}))}},X.onClick=function(_e){var Ee=X.getRealMenuMode(),Fe=Object(b.a)(X),je=Fe.store,Je=Fe.props.onOpenChange;Ee!=="inline"&&!("openKeys"in X.props)&&(je.setState({openKeys:[]}),Je([])),X.props.onClick(_e)},X.onKeyDown=function(_e,Ee){X.innerMenu.getWrappedInstance().onKeyDown(_e,Ee)},X.onOpenChange=function(_e){var Ee=Object(b.a)(X),Fe=Ee.props,je=X.store.getState().openKeys.concat(),Je=!1,nt=function(dt){var _t=!1;if(dt.open)_t=je.indexOf(dt.key)===-1,_t&&je.push(dt.key);else{var Nt=je.indexOf(dt.key);_t=Nt!==-1,_t&&je.splice(Nt,1)}Je=Je||_t};Array.isArray(_e)?_e.forEach(nt):nt(_e),Je&&("openKeys"in X.props||X.store.setState({openKeys:je}),Fe.onOpenChange(je))},X.onDeselect=function(_e){var Ee=Object(b.a)(X),Fe=Ee.props;if(Fe.selectable){var je=X.store.getState().selectedKeys.concat(),Je=_e.key,nt=je.indexOf(Je);nt!==-1&&je.splice(nt,1),"selectedKeys"in Fe||X.store.setState({selectedKeys:je}),Fe.onDeselect(Object(m.a)(Object(m.a)({},_e),{},{selectedKeys:je}))}},X.onMouseEnter=function(_e){X.restoreModeVerticalFromInline();var Ee=X.props.onMouseEnter;Ee&&Ee(_e)},X.onTransitionEnd=function(_e){var Ee=_e.propertyName==="width"&&_e.target===_e.currentTarget,Fe=_e.target.className,je=Object.prototype.toString.call(Fe)==="[object SVGAnimatedString]"?Fe.animVal:Fe,Je=_e.propertyName==="font-size"&&je.indexOf("anticon")>=0;(Ee||Je)&&X.restoreModeVerticalFromInline()},X.setInnerMenu=function(_e){X.innerMenu=_e},X.isRootMenu=!0;var re=ge.defaultSelectedKeys,G=ge.defaultOpenKeys;return"selectedKeys"in ge&&(re=ge.selectedKeys||[]),"openKeys"in ge&&(G=ge.openKeys||[]),X.store=Object(D.c)({selectedKeys:re,openKeys:G,activeKey:{"0-menu-":Fr(ge,ge.activeKey)}}),X.state={switchingModeFromInline:!1,prevProps:ge,inlineOpenKeys:[],store:X.store},X}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(X){var re=this.props,G=re.siderCollapsed,_e=re.inlineCollapsed,Ee=re.onOpenChange;(!X.inlineCollapsed&&_e||!X.siderCollapsed&&G)&&Ee([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var X=this.props.collapsedWidth,re=this.store,G=this.prevOpenKeys,_e=this.getInlineCollapsed()&&(X===0||X==="0"||X==="0px");_e?(this.prevOpenKeys=re.getState().openKeys.concat(),this.store.setState({openKeys:[]})):G&&(this.store.setState({openKeys:G}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var X=this.props.mode,re=this.state.switchingModeFromInline,G=this.getInlineCollapsed();return re&&G?"inline":G?"vertical":X}},{key:"getInlineCollapsed",value:function(){var X=this.props,re=X.inlineCollapsed,G=X.siderCollapsed;return G!==void 0?G:re}},{key:"restoreModeVerticalFromInline",value:function(){var X=this.state.switchingModeFromInline;X&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var X=Object(m.a)({},Object(W.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),re=this.getRealMenuMode();return X.className+=" ".concat(X.prefixCls,"-root"),X.direction==="rtl"&&(X.className+=" ".concat(X.prefixCls,"-rtl")),X=Object(m.a)(Object(m.a)({},X),{},{mode:re,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:tr(this.props,this.state,re)}),delete X.openAnimation,delete X.openTransitionName,_.createElement(D.a,{store:this.store},_.createElement(Br,Object(T.a)({},X,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(X,re){var G=re.prevProps,_e=re.store,Ee=_e.getState(),Fe={},je={prevProps:X};return G.mode==="inline"&&X.mode!=="inline"&&(je.switchingModeFromInline=!0),"openKeys"in X?Fe.openKeys=X.openKeys||[]:((X.inlineCollapsed&&!G.inlineCollapsed||X.siderCollapsed&&!G.siderCollapsed)&&(je.switchingModeFromInline=!0,je.inlineOpenKeys=Ee.openKeys,Fe.openKeys=[]),(!X.inlineCollapsed&&G.inlineCollapsed||!X.siderCollapsed&&G.siderCollapsed)&&(Fe.openKeys=re.inlineOpenKeys,je.inlineOpenKeys=[])),Object.keys(Fe).length&&_e.setState(Fe),je}}]),Ke}(_.Component);po.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:_.createElement("span",null,"\xB7\xB7\xB7")};var mo=po,Or=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){var ge;return Object(A.a)(this,Ke),ge=Ie.apply(this,arguments),ge.onKeyDown=function(X){var re=X.keyCode;return re===e.a.ENTER?(ge.onClick(X),!0):void 0},ge.onMouseLeave=function(X){var re=ge.props,G=re.eventKey,_e=re.onItemHover,Ee=re.onMouseLeave;_e({key:G,hover:!1}),Ee({key:G,domEvent:X})},ge.onMouseEnter=function(X){var re=ge.props,G=re.eventKey,_e=re.onItemHover,Ee=re.onMouseEnter;_e({key:G,hover:!0}),Ee({key:G,domEvent:X})},ge.onClick=function(X){var re=ge.props,G=re.eventKey,_e=re.multiple,Ee=re.onClick,Fe=re.onSelect,je=re.onDeselect,Je=re.isSelected,nt={key:G,keyPath:[G],item:Object(b.a)(ge),domEvent:X};Ee(nt),_e?Je?je(nt):Fe(nt):Je||Fe(nt)},ge.saveNode=function(X){ge.node=X},ge}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var X=this.props;X.onDestroy&&X.onDestroy(X.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var X,re=Object(m.a)({},this.props),G=p()(this.getPrefixCls(),re.className,(X={},Object(S.a)(X,this.getActiveClassName(),!re.disabled&&re.active),Object(S.a)(X,this.getSelectedClassName(),re.isSelected),Object(S.a)(X,this.getDisabledClassName(),re.disabled),X)),_e=Object(m.a)(Object(m.a)({},re.attribute),{},{title:typeof re.title=="string"?re.title:void 0,className:G,role:re.role||"menuitem","aria-disabled":re.disabled});re.role==="option"?_e=Object(m.a)(Object(m.a)({},_e),{},{role:"option","aria-selected":re.isSelected}):(re.role===null||re.role==="none")&&(_e.role="none");var Ee={onClick:re.disabled?null:this.onClick,onMouseLeave:re.disabled?null:this.onMouseLeave,onMouseEnter:re.disabled?null:this.onMouseEnter},Fe=Object(m.a)({},re.style);re.mode==="inline"&&(re.direction==="rtl"?Fe.paddingRight=re.inlineIndent*re.level:Fe.paddingLeft=re.inlineIndent*re.level),Ve.forEach(function(Je){return delete re[Je]}),delete re.direction;var je=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(je=_.createElement(this.props.itemIcon,this.props)),_.createElement("li",Object(T.a)({},Object(W.a)(re,["onClick","onMouseEnter","onMouseLeave","onSelect"]),_e,Ee,{style:Fe,ref:this.saveNode}),re.children,je)}}]),Ke}(_.Component);Or.isMenuItem=!0,Or.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var qr=Object(D.b)(function(ce,Ie){var Ke=ce.activeKey,ge=ce.selectedKeys,X=Ie.eventKey,re=Ie.subMenuKey;return{active:Ke[re]===X,isSelected:Array.isArray(ge)?ge.indexOf(X)!==-1:ge===X}})(Or),$r=qr,eo=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){var ge;return Object(A.a)(this,Ke),ge=Ie.apply(this,arguments),ge.renderInnerMenuItem=function(X){var re=ge.props,G=re.renderMenuItem,_e=re.index;return G(X,_e,ge.props.subMenuKey)},ge}return Object(E.a)(Ke,[{key:"render",value:function(){var X=Object(T.a)({},this.props),re=X.className,G=re===void 0?"":re,_e=X.rootPrefixCls,Ee="".concat(_e,"-item-group-title"),Fe="".concat(_e,"-item-group-list"),je=X.title,Je=X.children;return Ve.forEach(function(nt){return delete X[nt]}),delete X.direction,_.createElement("li",Object(T.a)({},X,{onClick:function(ut){return ut.stopPropagation()},className:"".concat(G," ").concat(_e,"-item-group")}),_.createElement("div",{className:Ee,title:typeof je=="string"?je:void 0},je),_.createElement("ul",{className:Fe},_.Children.map(Je,this.renderInnerMenuItem)))}}]),Ke}(_.Component);eo.isMenuItemGroup=!0,eo.defaultProps={disabled:!0};var So=eo,to=function(Ie){var Ke=Ie.className,ge=Ie.rootPrefixCls,X=Ie.style;return _.createElement("li",{className:"".concat(Ke," ").concat(ge,"-item-divider"),style:X})};to.defaultProps={disabled:!0,className:"",style:{}};var Ao=to,_o=mo,no=h("eDIo");function vo(ce,Ie){var Ke=ce.prefixCls,ge=ce.editable,X=ce.locale,re=ce.style;return!ge||ge.showAdd===!1?null:_.createElement("button",{ref:Ie,type:"button",className:"".concat(Ke,"-nav-add"),style:re,"aria-label":(X==null?void 0:X.addAriaLabel)||"Add tab",onClick:function(_e){ge.onEdit("add",{event:_e})}},ge.addIcon||"+")}var Lr=_.forwardRef(vo);function Na(ce,Ie){var Ke=ce.prefixCls,ge=ce.id,X=ce.tabs,re=ce.locale,G=ce.mobile,_e=ce.moreIcon,Ee=_e===void 0?"More":_e,Fe=ce.moreTransitionName,je=ce.style,Je=ce.className,nt=ce.editable,ut=ce.tabBarGutter,dt=ce.rtl,_t=ce.onTabClick,Nt=Object(_.useState)(!1),tn=Object(f.a)(Nt,2),zt=tn[0],ln=tn[1],on=Object(_.useState)(null),nn=Object(f.a)(on,2),Jt=nn[0],Cn=nn[1],un="".concat(ge,"-more-popup"),$n="".concat(Ke,"-dropdown"),Mn=Jt!==null?"".concat(un,"-").concat(Jt):null,It=re==null?void 0:re.dropdownAriaLabel,Lt=_.createElement(_o,{onClick:function(jn){var aa=jn.key,Oa=jn.domEvent;_t(aa,Oa),ln(!1)},id:un,tabIndex:-1,role:"listbox","aria-activedescendant":Mn,selectedKeys:[Jt],"aria-label":It!==void 0?It:"expanded dropdown"},X.map(function(Sn){return _.createElement($r,{key:Sn.key,id:"".concat(un,"-").concat(Sn.key),role:"option","aria-controls":ge&&"".concat(ge,"-panel-").concat(Sn.key),disabled:Sn.disabled},Sn.tab)}));function mn(Sn){for(var jn=X.filter(function(Wa){return!Wa.disabled}),aa=jn.findIndex(function(Wa){return Wa.key===Jt})||0,Oa=jn.length,Ha=0;Haxn?(vn=Lt,un.current="x"):(vn=mn,un.current="y");var Gn=Date.now();Gn-Jt.current>100&&(Cn.current=!1),(Ie(-vn,-vn)||Cn.current)&&(It.preventDefault(),Cn.current=!0),Jt.current=Gn}var Mn=Object(_.useRef)(null);Mn.current={onTouchStart:ln,onTouchMove:on,onTouchEnd:nn,onWheel:$n},_.useEffect(function(){function It(Tt){Mn.current.onTouchStart(Tt)}function Lt(Tt){Mn.current.onTouchMove(Tt)}function mn(Tt){Mn.current.onTouchEnd(Tt)}function vn(Tt){Mn.current.onWheel(Tt)}return document.addEventListener("touchmove",Lt,{passive:!1}),document.addEventListener("touchend",mn,{passive:!1}),ce.current.addEventListener("touchstart",It,{passive:!1}),ce.current.addEventListener("wheel",vn),function(){document.removeEventListener("touchmove",Lt),document.removeEventListener("touchend",mn)}},[])}function bo(){var ce=Object(_.useRef)(new Map);function Ie(ge){return ce.current.has(ge)||ce.current.set(ge,_.createRef()),ce.current.get(ge)}function Ke(ge){ce.current.delete(ge)}return[Ie,Ke]}function Oo(ce,Ie){var Ke=_.useRef(ce),ge=_.useState({}),X=Object(f.a)(ge,2),re=X[1];function G(_e){var Ee=typeof _e=="function"?_e(Ke.current):_e;Ee!==Ke.current&&Ie(Ee,Ke.current),Ke.current=Ee,re({})}return[Ke.current,G]}var To=function(Ie){var Ke=Ie.position,ge=Ie.prefixCls,X=Ie.extra;if(!X)return null;var re,G=X;return Ke==="right"&&(re=G.right||!G.left&&G||null),Ke==="left"&&(re=G.left||null),re?_.createElement("div",{className:"".concat(ge,"-extra-content")},re):null};function si(ce,Ie){var Ke,ge=_.useContext(Xr),X=ge.prefixCls,re=ge.tabs,G=ce.className,_e=ce.style,Ee=ce.id,Fe=ce.animated,je=ce.activeKey,Je=ce.rtl,nt=ce.extra,ut=ce.editable,dt=ce.locale,_t=ce.tabPosition,Nt=ce.tabBarGutter,tn=ce.children,zt=ce.onTabClick,ln=ce.onTabScroll,on=Object(_.useRef)(),nn=Object(_.useRef)(),Jt=Object(_.useRef)(),Cn=Object(_.useRef)(),un=bo(),$n=Object(f.a)(un,2),Mn=$n[0],It=$n[1],Lt=_t==="top"||_t==="bottom",mn=Oo(0,function(Gt,qt){Lt&&ln&&ln({direction:Gt>qt?"left":"right"})}),vn=Object(f.a)(mn,2),Tt=vn[0],xn=vn[1],Gn=Oo(0,function(Gt,qt){!Lt&&ln&&ln({direction:Gt>qt?"top":"bottom"})}),Sn=Object(f.a)(Gn,2),jn=Sn[0],aa=Sn[1],Oa=Object(_.useState)(0),Ha=Object(f.a)(Oa,2),ca=Ha[0],Wa=Ha[1],hr=Object(_.useState)(0),me=Object(f.a)(hr,2),Ze=me[0],mt=me[1],ht=Object(_.useState)(0),Ct=Object(f.a)(ht,2),xt=Ct[0],Vt=Ct[1],St=Object(_.useState)(0),hn=Object(f.a)(St,2),gt=hn[0],ft=hn[1],Ht=Object(_.useState)(null),kt=Object(f.a)(Ht,2),wt=kt[0],Ut=kt[1],An=Object(_.useState)(null),Dn=Object(f.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(_.useState)(0),gn=Object(f.a)(sn,2),wn=gn[0],bn=gn[1],ea=Object(_.useState)(0),Ta=Object(f.a)(ea,2),Aa=Ta[0],Ia=Ta[1],nr=t(new Map),lt=Object(f.a)(nr,2),da=lt[0],Ra=lt[1],yn=C(re,da,ca),Zt="".concat(X,"-nav-operations-hidden"),kn=0,sa=0;Lt?Je?(kn=0,sa=Math.max(0,ca-wt)):(kn=Math.min(0,wt-ca),sa=0):(kn=Math.min(0,Wt-Ze),sa=0);function Ln(Gt){return Gtsa?[sa,!1]:[Gt,!0]}var ra=Object(_.useRef)(),fa=Object(_.useState)(),ar=Object(f.a)(fa,2),pr=ar[0],ir=ar[1];function Pa(){ir(Date.now())}function sr(){window.clearTimeout(ra.current)}wo(on,function(Gt,qt){var Xn=!1;function oa(xa,Ua){xa(function(Ka){var Ya=Ln(Ka+Ua),Fa=Object(f.a)(Ya,2),Tr=Fa[0],br=Fa[1];return Xn=br,Tr})}if(Lt){if(wt>=ca)return Xn;oa(xn,Gt)}else{if(Wt>=Ze)return Xn;oa(aa,qt)}return sr(),Pa(),Xn}),Object(_.useEffect)(function(){return sr(),pr&&(ra.current=window.setTimeout(function(){ir(0)},100)),sr},[pr]);function mr(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:je,qt=yn.get(Gt);if(!qt)return;if(Lt){var Xn=Tt;Je?qt.rightTt+wt&&(Xn=qt.right+qt.width-wt):qt.left<-Tt?Xn=-qt.left:qt.left+qt.width>-Tt+wt&&(Xn=-(qt.left+qt.width-wt)),aa(0),xn(Ln(Xn)[0])}else{var oa=jn;qt.top<-jn?oa=-qt.top:qt.top+qt.height>-jn+Wt&&(oa=-(qt.top+qt.height-Wt)),xn(0),aa(Ln(oa)[0])}}var _r=y(yn,{width:wt,height:Wt,left:Tt,top:jn},{width:xt,height:gt},{width:wn,height:Aa},Object(m.a)(Object(m.a)({},ce),{},{tabs:re})),vr=Object(f.a)(_r,2),Ma=vr[0],an=vr[1],ya=re.map(function(Gt){var qt=Gt.key;return _.createElement(l,{id:Ee,prefixCls:X,key:qt,rtl:Je,tab:Gt,closable:Gt.closable,editable:ut,active:qt===je,tabPosition:_t,tabBarGutter:Nt,renderWrapper:tn,removeAriaLabel:dt==null?void 0:dt.removeAriaLabel,ref:Mn(qt),onClick:function(oa){zt(qt,oa)},onRemove:function(){It(qt)},onFocus:function(){mr(qt),Pa(),Je||(on.current.scrollLeft=0),on.current.scrollTop=0}})}),gr=n(function(){var Gt,qt,Xn,oa,xa,Ua,Ka,Ya,Fa,Tr=((Gt=on.current)===null||Gt===void 0?void 0:Gt.offsetWidth)||0,br=((qt=on.current)===null||qt===void 0?void 0:qt.offsetHeight)||0,Wr=((Xn=Cn.current)===null||Xn===void 0?void 0:Xn.offsetWidth)||0,Rr=((oa=Cn.current)===null||oa===void 0?void 0:oa.offsetHeight)||0,yr=((xa=Jt.current)===null||xa===void 0?void 0:xa.offsetWidth)||0,ao=((Ua=Jt.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0;Ut(Tr),ma(br),bn(Wr),Ia(Rr);var Er=(((Ka=nn.current)===null||Ka===void 0?void 0:Ka.offsetWidth)||0)-Wr,zr=(((Ya=nn.current)===null||Ya===void 0?void 0:Ya.offsetHeight)||0)-Rr;Wa(Er),mt(zr);var Hn=(Fa=Jt.current)===null||Fa===void 0?void 0:Fa.className.includes(Zt);Vt(Er-(Hn?0:yr)),ft(zr-(Hn?0:ao)),Ra(function(){var In=new Map;return re.forEach(function(Ba){var za=Ba.key,Mr=Mn(za).current;Mr&&In.set(za,{width:Mr.offsetWidth,height:Mr.offsetHeight,left:Mr.offsetLeft,top:Mr.offsetTop})}),In})}),At=re.slice(0,Ma),cn=re.slice(an+1),Un=[].concat(Object(o.a)(At),Object(o.a)(cn)),Zn=Object(_.useState)(),_a=Object(f.a)(Zn,2),rn=_a[0],Da=_a[1],Ea=yn.get(je),ha=Object(_.useRef)();function Kn(){s.a.cancel(ha.current)}Object(_.useEffect)(function(){var Gt={};return Ea&&(Lt?(Je?Gt.right=Ea.right:Gt.left=Ea.left,Gt.width=Ea.width):(Gt.top=Ea.top,Gt.height=Ea.height)),Kn(),ha.current=s()(function(){Da(Gt)}),Kn},[Ea,Lt,Je]),Object(_.useEffect)(function(){mr()},[je,Ea,yn,Lt]),Object(_.useEffect)(function(){gr()},[Je,Nt,je,re.map(function(Gt){return Gt.key}).join("_")]);var Bn=!!Un.length,ta="".concat(X,"-nav-wrap"),pa,ja,ka,Ca;return Lt?Je?(ja=Tt>0,pa=Tt+wt4?9:0)}function $e(R){for(var Me=R.length;--Me>=0;)R[Me]=0}function et(R){var Me=R.state,Ue=Me.pending;if(Ue>R.avail_out&&(Ue=R.avail_out),Ue===0)return;f.arraySet(R.output,Me.pending_buf,Me.pending_out,Ue,R.next_out),R.next_out+=Ue,Me.pending_out+=Ue,R.total_out+=Ue,R.avail_out-=Ue,Me.pending-=Ue,Me.pending===0&&(Me.pending_out=0)}function Ve(R,Me){k._tr_flush_block(R,R.block_start>=0?R.block_start:-1,R.strstart-R.block_start,Me),R.block_start=R.strstart,et(R.strm)}function ke(R,Me){R.pending_buf[R.pending++]=Me}function Oe(R,Me){R.pending_buf[R.pending++]=Me>>>8&255,R.pending_buf[R.pending++]=Me&255}function Ce(R,Me,Ue,q){var ye=R.avail_in;return ye>q&&(ye=q),ye===0?0:(R.avail_in-=ye,f.arraySet(Me,R.input,R.next_in,ye,Ue),R.state.wrap===1?R.adler=(0,m.default)(R.adler,Me,ye,Ue):R.state.wrap===2&&(R.adler=(0,_.default)(R.adler,Me,ye,Ue)),R.next_in+=ye,R.total_in+=ye,ye)}function ue(R,Me){var Ue=R.max_chain_length,q=R.strstart,ye,Se,Ge=R.prev_length,Ye=R.nice_match,Te=R.strstart>R.w_size-H?R.strstart-(R.w_size-H):0,$=R.window,pe=R.w_mask,qe=R.prev,Xe=R.strstart+M,ot=$[q+Ge-1],st=$[q+Ge];R.prev_length>=R.good_match&&(Ue>>=2),Ye>R.lookahead&&(Ye=R.lookahead);do{if(ye=Me,$[ye+Ge]!==st||$[ye+Ge-1]!==ot||$[ye]!==$[q]||$[++ye]!==$[q+1])continue;q+=2,ye++;do;while($[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&qGe){if(R.match_start=Me,Ge=Se,Se>=Ye)break;ot=$[q+Ge-1],st=$[q+Ge]}}while((Me=qe[Me&pe])>Te&&--Ue!==0);return Ge<=R.lookahead?Ge:R.lookahead}function N(R){var Me=R.w_size,Ue,q,ye,Se,Ge;do{if(Se=R.window_size-R.lookahead-R.strstart,R.strstart>=Me+(Me-H)){f.arraySet(R.window,R.window,Me,Me,0),R.match_start-=Me,R.strstart-=Me,R.block_start-=Me,q=R.hash_size,Ue=q;do ye=R.head[--Ue],R.head[Ue]=ye>=Me?ye-Me:0;while(--q);q=Me,Ue=q;do ye=R.prev[--Ue],R.prev[Ue]=ye>=Me?ye-Me:0;while(--q);Se+=Me}if(R.strm.avail_in===0)break;if(q=Ce(R.strm,R.window,R.strstart+R.lookahead,Se),R.lookahead+=q,R.lookahead+R.insert>=K)for(Ge=R.strstart-R.insert,R.ins_h=R.window[Ge],R.ins_h=(R.ins_h<R.pending_buf_size-5&&(Ue=R.pending_buf_size-5);;){if(R.lookahead<=1){if(N(R),R.lookahead===0&&Me===o)return oe;if(R.lookahead===0)break}R.strstart+=R.lookahead,R.lookahead=0;var q=R.block_start+Ue;if((R.strstart===0||R.strstart>=q)&&(R.lookahead=R.strstart-q,R.strstart=q,Ve(R,!1),R.strm.avail_out===0))return oe;if(R.strstart-R.block_start>=R.w_size-H&&(Ve(R,!1),R.strm.avail_out===0))return oe}return R.insert=0,Me===a?(Ve(R,!0),R.strm.avail_out===0?ee:J):(R.strstart>R.block_start&&(Ve(R,!1),R.strm.avail_out===0),oe)}function F(R,Me){for(var Ue,q;;){if(R.lookahead=K&&(R.ins_h=(R.ins_h<=K)if(q=k._tr_tally(R,R.strstart-R.match_start,R.match_length-K),R.lookahead-=R.match_length,R.match_length<=R.max_lazy_match&&R.lookahead>=K){R.match_length--;do R.strstart++,R.ins_h=(R.ins_h<=K&&(R.ins_h=(R.ins_h<4096)&&(R.match_length=K-1)),R.prev_length>=K&&R.match_length<=R.prev_length){ye=R.strstart+R.lookahead-K,q=k._tr_tally(R,R.strstart-1-R.prev_match,R.prev_length-K),R.lookahead-=R.prev_length-1,R.prev_length-=2;do++R.strstart<=ye&&(R.ins_h=(R.ins_h<=K&&R.strstart>0&&(ye=R.strstart-1,q=Ge[ye],q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye])){Se=R.strstart+M;do;while(q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&yeR.lookahead&&(R.match_length=R.lookahead)}if(R.match_length>=K?(Ue=k._tr_tally(R,1,R.match_length-K),R.lookahead-=R.match_length,R.strstart+=R.match_length,R.match_length=0):(Ue=k._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++),Ue&&(Ve(R,!1),R.strm.avail_out===0))return oe}return R.insert=0,Me===a?(Ve(R,!0),R.strm.avail_out===0?ee:J):R.last_lit&&(Ve(R,!1),R.strm.avail_out===0)?oe:U}function he(R,Me){for(var Ue;;){if(R.lookahead===0&&(N(R),R.lookahead===0)){if(Me===o)return oe;break}if(R.match_length=0,Ue=k._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++,Ue&&(Ve(R,!1),R.strm.avail_out===0))return oe}return R.insert=0,Me===a?(Ve(R,!0),R.strm.avail_out===0?ee:J):R.last_lit&&(Ve(R,!1),R.strm.avail_out===0)?oe:U}function We(R,Me,Ue,q,ye){this.good_length=R,this.max_lazy=Me,this.nice_length=Ue,this.max_chain=q,this.func=ye}var rt;rt=[new We(0,0,0,0,te),new We(4,4,8,4,F),new We(4,5,16,8,F),new We(4,6,32,32,F),new We(4,4,16,16,Ae),new We(8,16,32,32,Ae),new We(8,16,128,128,Ae),new We(8,32,128,256,Ae),new We(32,128,258,1024,Ae),new We(32,258,258,4096,Ae)];function V(R){R.window_size=2*R.w_size,$e(R.head),R.max_lazy_match=rt[R.level].max_lazy,R.good_match=rt[R.level].good_length,R.nice_match=rt[R.level].nice_length,R.max_chain_length=rt[R.level].max_chain,R.strstart=0,R.block_start=0,R.lookahead=0,R.insert=0,R.match_length=R.prev_length=K-1,R.match_available=0,R.ins_h=0}function Be(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new f.Buf16(P*2),this.dyn_dtree=new f.Buf16((2*Y+1)*2),this.bl_tree=new f.Buf16((2*w+1)*2),$e(this.dyn_ltree),$e(this.dyn_dtree),$e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(L+1),this.heap=new f.Buf16(2*Z+1),$e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*Z+1),$e(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(R){var Me;return!R||!R.state?Pe(R,u):(R.total_in=R.total_out=0,R.data_type=b,Me=R.state,Me.pending=0,Me.pending_out=0,Me.wrap<0&&(Me.wrap=-Me.wrap),Me.status=Me.wrap?ve:fe,R.adler=Me.wrap===2?0:1,Me.last_flush=o,k._tr_init(Me),t)}function Le(R){var Me=xe(R);return Me===t&&V(R.state),Me}function De(R,Me){return!R||!R.state||R.state.wrap!==2?u:(R.state.gzhead=Me,t)}function Ne(R,Me,Ue,q,ye,Se){if(!R)return u;var Ge=1;if(Me===C&&(Me=6),q<0?(Ge=0,q=-q):q>15&&(Ge=2,q-=16),ye<1||ye>O||Ue!==v||q<8||q>15||Me<0||Me>9||Se<0||Se>A)return Pe(R,u);q===8&&(q=9);var Ye=new Be;return R.state=Ye,Ye.strm=R,Ye.wrap=Ge,Ye.gzhead=null,Ye.w_bits=q,Ye.w_size=1<n||Me<0)return R?Pe(R,u):u;if(q=R.state,!R.output||!R.input&&R.avail_in!==0||q.status===ie&&Me!==a)return Pe(R,R.avail_out===0?g:u);if(q.strm=R,Ue=q.last_flush,q.last_flush=Me,q.status===ve)if(q.wrap===2)R.adler=0,ke(q,31),ke(q,139),ke(q,8),q.gzhead?(ke(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(q.gzhead.extra?4:0)+(q.gzhead.name?8:0)+(q.gzhead.comment?16:0)),ke(q,q.gzhead.time&255),ke(q,q.gzhead.time>>8&255),ke(q,q.gzhead.time>>16&255),ke(q,q.gzhead.time>>24&255),ke(q,q.level===9?2:q.strategy>=y||q.level<2?4:0),ke(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length&&(ke(q,q.gzhead.extra.length&255),ke(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=de):(ke(q,0),ke(q,0),ke(q,0),ke(q,0),ke(q,0),ke(q,q.level===9?2:q.strategy>=y||q.level<2?4:0),ke(q,le),q.status=fe);else{var Ge=v+(q.w_bits-8<<4)<<8,Ye=-1;q.strategy>=y||q.level<2?Ye=0:q.level<6?Ye=1:q.level===6?Ye=2:Ye=3,Ge|=Ye<<6,q.strstart!==0&&(Ge|=ae),Ge+=31-Ge%31,q.status=fe,Oe(q,Ge),q.strstart!==0&&(Oe(q,R.adler>>>16),Oe(q,R.adler&65535)),R.adler=1}if(q.status===de)if(q.gzhead.extra){for(ye=q.pending;q.gzindex<(q.gzhead.extra.length&65535)&&!(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),et(R),ye=q.pending,q.pending===q.pending_buf_size));)ke(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++;q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),q.gzindex===q.gzhead.extra.length&&(q.gzindex=0,q.status=be)}else q.status=be;if(q.status===be)if(q.gzhead.name){ye=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),et(R),ye=q.pending,q.pending===q.pending_buf_size)){Se=1;break}q.gzindexye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),Se===0&&(q.gzindex=0,q.status=z)}else q.status=z;if(q.status===z)if(q.gzhead.comment){ye=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),et(R),ye=q.pending,q.pending===q.pending_buf_size)){Se=1;break}q.gzindexye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),Se===0&&(q.status=ne)}else q.status=ne;if(q.status===ne&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&et(R),q.pending+2<=q.pending_buf_size&&(ke(q,R.adler&255),ke(q,R.adler>>8&255),R.adler=0,q.status=fe)):q.status=fe),q.pending!==0){if(et(R),R.avail_out===0)return q.last_flush=-1,t}else if(R.avail_in===0&&Qe(Me)<=Qe(Ue)&&Me!==a)return Pe(R,g);if(q.status===ie&&R.avail_in!==0)return Pe(R,g);if(R.avail_in!==0||q.lookahead!==0||Me!==o&&q.status!==ie){var Te=q.strategy===y?he(q,Me):q.strategy===T?tt(q,Me):rt[q.level].func(q,Me);if((Te===ee||Te===J)&&(q.status=ie),Te===oe||Te===ee)return R.avail_out===0&&(q.last_flush=-1),t;if(Te===U&&(Me===i?k._tr_align(q):Me!==n&&(k._tr_stored_block(q,0,0,!1),Me===s&&($e(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),et(R),R.avail_out===0))return q.last_flush=-1,t}return Me!==a?t:q.wrap<=0?e:(q.wrap===2?(ke(q,R.adler&255),ke(q,R.adler>>8&255),ke(q,R.adler>>16&255),ke(q,R.adler>>24&255),ke(q,R.total_in&255),ke(q,R.total_in>>8&255),ke(q,R.total_in>>16&255),ke(q,R.total_in>>24&255)):(Oe(q,R.adler>>>16),Oe(q,R.adler&65535)),et(R),q.wrap>0&&(q.wrap=-q.wrap),q.pending!==0?t:e)}function B(R){var Me;return!R||!R.state?u:(Me=R.state.status,Me!==ve&&Me!==de&&Me!==be&&Me!==z&&Me!==ne&&Me!==fe&&Me!==ie?Pe(R,u):(R.state=null,Me===fe?Pe(R,l):t))}function He(R,Me){var Ue=Me.length,q,ye,Se,Ge,Ye,Te,$,pe;if(!R||!R.state)return u;if(q=R.state,Ge=q.wrap,Ge===2||Ge===1&&q.status!==ve||q.lookahead)return u;for(Ge===1&&(R.adler=(0,m.default)(R.adler,Me,Ue,0)),q.wrap=0,Ue>=q.w_size&&(Ge===0&&($e(q.head),q.strstart=0,q.block_start=0,q.insert=0),pe=new f.Buf8(q.w_size),f.arraySet(pe,Me,Ue-q.w_size,q.w_size,0),Me=pe,Ue=q.w_size),Ye=R.avail_in,Te=R.next_in,$=R.input,R.avail_in=Ue,R.next_in=0,R.input=Me,N(q);q.lookahead>=K;){ye=q.strstart,Se=q.lookahead-(K-1);do q.ins_h=(q.ins_h<=k.length?{done:!0}:{done:!1,value:k[r++]}},e:function(s){throw s},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,c=!1,o;return{s:function(){_=k[Symbol.iterator]()},n:function(){var s=_.next();return d=s.done,s},e:function(s){c=!0,o=s},f:function(){try{!d&&_.return!=null&&_.return()}finally{if(c)throw o}}}}},rHrb:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.CopyToClipboard=void 0;var S=k(h("q1tI")),f=k(h("+QRC"));function k(g){return g&&g.__esModule?g:{default:g}}function m(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(x){return typeof x}:m=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},m(g)}function _(g,C){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(g);C&&(y=y.filter(function(T){return Object.getOwnPropertyDescriptor(g,T).enumerable})),x.push.apply(x,y)}return x}function r(g){for(var C=1;C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,y))continue;x[y]=g[y]}}return x}function d(g,C){if(g==null)return{};var x={},y=Object.keys(g),T,A;for(A=0;A=0)continue;x[T]=g[T]}return x}function c(g,C){if(!(g instanceof C))throw new TypeError("Cannot call a class as a function")}function o(g,C){for(var x=0;x=7){Q.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}at(qe.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(Z.a.Group,{value:Ue,onChange:function(qe){return q(qe.target.value)}},n.a.createElement(Z.a,{value:P.Manager},"\u7BA1\u7406\u4EBA\u5458"),n.a.createElement(Z.a,{value:P.Developer},"\u5F00\u53D1\u4EBA\u5458"),n.a.createElement(Z.a,{value:P.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},K=L,M=h("Jky8"),H=h("6Fuo"),ae=h.n(H),ve=h("NLgs"),de;(function(xe){xe.Projects="projects",xe.Shixuns="shixuns",xe.Classrooms="classrooms"})(de||(de={}));var be;(function(xe){xe.Classrooms="classrooms",xe.Shixuns="shixuns",xe.Paths="paths",xe.Projects="projects",xe.Videos="videos",xe.Topics="topics"})(be||(be={}));var z=function(Le){var De,Ne,se,we,B,He,at,R=Le.homePage,Me=Le.user,Ue=Le.globalSetting,q=Le.loading,ye=Le.dispatch,Se=Le.location,Ge=Object(_.a)(Le,["homePage","user","globalSetting","loading","dispatch","location"]),Ye=Object(a.useState)(),Te=Object(m.a)(Ye,2),$=Te[0],pe=Te[1],qe=Object(a.useState)(),Xe=Object(m.a)(qe,2),ot=Xe[0],st=Xe[1],ze=function(Ft){var Qt;if(!Object(ve.e)(ye))return;if(Ft===de.Projects&&!((Qt=Me.userInfo)!==null&&Qt!==void 0&&Qt.email)){Q.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Ft===de.Classrooms?pe(!0):Ft===de.Projects&&st(!0)},it=function(Ft,Qt){var pn;if(!Object(ve.e)(ye))return;if(Qt===de.Projects&&!((pn=Me.userInfo)!==null&&pn!==void 0&&pn.email)){Q.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Qt===de.Shixuns&&!Object(ve.c)())return;Ft&&(window.location.href=Ft)},ct=(De=(((Ne=Ue.setting)===null||Ne===void 0?void 0:Ne.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(be.Classrooms)}))===null||De===void 0?void 0:De.hidden,vt=(se=(((we=Ue.setting)===null||we===void 0?void 0:we.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(be.Shixuns)}))===null||se===void 0?void 0:se.hidden,pt=(B=(((He=Ue.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(be.Paths)}))===null||B===void 0?void 0:B.hidden;if(Ue!=null&&(at=Ue.setting)!==null&&at!==void 0&&at.is_local){var Rt;Me!=null&&(Rt=Me.userInfo)!==null&&Rt!==void 0&&Rt.is_shixun_marker||(vt=!0)}var Bt=function(Ft){var Qt,pn,Pn,na,Ot,dn,Rn,Yn,On,Wn,jt,qn,wa,zn;return n.a.createElement(n.a.Fragment,null,n.a.createElement(E.a,{justify:"space-around",className:"pt5 pb5"},n.a.createElement(v.a,{className:ae.a.joinCol},((Qt=Me.userInfo)===null||Qt===void 0?void 0:Qt.user_identity)!=="\u5B66\u751F"&&!ct&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return it("/classrooms/new")}},(pn=Me.userInfo)!==null&&pn!==void 0&&pn.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!vt&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return it("/shixuns/new",de.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(((Pn=Me.userInfo)===null||Pn===void 0?void 0:Pn.main_site)&&((na=Me.navigationInfo)===null||na===void 0?void 0:na.top)||!((Ot=Me.userInfo)!==null&&Ot!==void 0&&Ot.main_site)&&((dn=Me.navigationInfo)===null||dn===void 0?void 0:dn.top)&&!pt&&(((Rn=Me.userInfo)===null||Rn===void 0?void 0:Rn.admin)||((Yn=Me.userInfo)===null||Yn===void 0?void 0:Yn.is_teacher)||((On=Me.userInfo)===null||On===void 0?void 0:On.business)))&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return it("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Ue!=null&&(Wn=Ue.setting)!==null&&Wn!==void 0&&Wn.is_local)&&((jt=Me.userInfo)===null||jt===void 0?void 0:jt.main_site)&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){var ua,Tn;return it("".concat((ua=Me.navigationInfo)===null||ua===void 0||((Tn=ua.top)===null||Tn===void 0)?void 0:Tn.old_url,"/projects/deposit/new"),de.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),n.a.createElement(v.a,null,n.a.createElement("div",{className:ae.a.joinBoard})),n.a.createElement(v.a,{className:ae.a.joinCol},!ct&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return ze(de.Classrooms)}},(qn=Me.userInfo)!==null&&qn!==void 0&&qn.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((wa=Me.userInfo)===null||wa===void 0?void 0:wa.main_site)&&!(Ue!=null&&(zn=Ue.setting)!==null&&zn!==void 0&&zn.is_local)&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return ze(de.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return n.a.createElement("section",null,n.a.createElement(T.a,{overlay:n.a.createElement(D.a,{className:"".concat(ae.a.rightMenu," ").concat(ae.a.joinMenu," mt10")},n.a.createElement(Bt,null)),placement:"bottomRight"},n.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),n.a.createElement(M.a,{visible:$,onCancel:function(){return pe(!1)}}),n.a.createElement(K,{visible:ot,onCancel:function(){return st(!1)}}))},ne=Object(u.a)(function(xe){var Le=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting;return{homePage:Le,user:Ne,globalSetting:se,loading:De.models.index}})(z),fe=h("vToQ"),ie=h.n(fe),oe=h("xKgJ"),U=h("jb+D"),ee=h("m3rI"),J=function(Le){var De,Ne=RegExp("(^| )"+Le+"=([^;]+)(;|$)");return(De=document.cookie.match(Ne))?decodeURIComponent(De[2]):null},le=function(Le){var De=new Date;De.setTime(De.getTime()-1);var Ne=J(Le);Ne!=null&&(document.cookie=Le+"="+Ne+";expires="+De.toGMTString())},Pe;(function(xe){xe.Classrooms="classrooms",xe.Shixuns="shixuns",xe.Paths="paths",xe.Projects="projects",xe.Videos="videos",xe.Topics="topics"})(Pe||(Pe={}));var Qe=function(Le){var De,Ne,se,we,B,He,at,R,Me,Ue,q,ye=Le.homePage,Se=Le.user,Ge=Le.globalSetting,Ye=Le.loading,Te=Le.dispatch,$=Le.shixunHomeworks,pe=Le.location,qe=Le.payload,Xe=qe===void 0?{}:qe,ot=Object(_.a)(Le,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),st=(De=(((Ne=Ge.setting)===null||Ne===void 0?void 0:Ne.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(Pe.Classrooms)}))===null||De===void 0?void 0:De.hidden,ze=(se=(((we=Ge.setting)===null||we===void 0?void 0:we.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(Pe.Shixuns)}))===null||se===void 0?void 0:se.hidden,it=(B=(((He=Ge.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(Pe.Paths)}))===null||B===void 0?void 0:B.hidden,ct=((at=Se.userInfo)===null||at===void 0?void 0:at.admin)||((R=Se.userInfo)===null||R===void 0?void 0:R.business)||((Me=Se.userInfo)===null||Me===void 0?void 0:Me.is_shixun_marker)||((Ue=Se.userInfo)===null||Ue===void 0?void 0:Ue.is_teacher)||((q=Se.userInfo)===null||q===void 0?void 0:q.user_identity)!=="\u5B66\u751F",vt=function(){if(Object(w.p)())return n.a.createElement(D.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var Ft,Qt,pn,Pn,na,Ot,dn,Rn,Yn,On,Wn,jt,qn,wa,zn,Jn,ua,Tn,ga,La,cr,qa,Va;return n.a.createElement(D.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Ft=Se.userInfo)===null||Ft===void 0?void 0:Ft.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!st&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Qt=Se.userInfo)===null||Qt===void 0?void 0:Qt.login,"/classrooms")},(pn=Se.userInfo)!==null&&pn!==void 0&&pn.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!ze&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Pn=Se.userInfo)===null||Pn===void 0?void 0:Pn.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!it&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((na=Se.userInfo)===null||na===void 0?void 0:na.login,"/paths")},(Ot=Se.userInfo)!==null&&Ot!==void 0&&Ot.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((dn=Se.userInfo)===null||dn===void 0?void 0:dn.main_site)&&!((Rn=Ge.setting)!==null&&Rn!==void 0&&Rn.is_local)&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Yn=Se.userInfo)===null||Yn===void 0?void 0:Yn.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((On=Se.userInfo)===null||On===void 0?void 0:On.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Wn=Se.userInfo)===null||Wn===void 0?void 0:Wn.login,"/vspaces")},"\u6211\u7684\u865A\u62DF\u793E\u533A")),n.a.createElement(D.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(ve.e)(Te))return;u.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),ct&&n.a.createElement(D.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(ve.e)(Te))return;u.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((jt=Se.navigationInfo)===null||jt===void 0||((qn=jt.top)===null||qn===void 0)?void 0:qn.customer_management_url)&&n.a.createElement(D.a.Item,null,n.a.createElement("a",{href:(wa=Se.navigationInfo)===null||wa===void 0||((zn=wa.top)===null||zn===void 0)?void 0:zn.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((Jn=Se.navigationInfo)===null||Jn===void 0||((ua=Jn.top)===null||ua===void 0)?void 0:ua.college_identifier)&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/colleges/".concat((Tn=Se.navigationInfo)===null||Tn===void 0||((ga=Tn.top)===null||ga===void 0)?void 0:ga.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((La=Se.navigationInfo)===null||La===void 0||((cr=La.top)===null||cr===void 0)?void 0:cr.laboratory_admin_url)&&n.a.createElement(D.a.Item,null,n.a.createElement("a",{href:(qa=Se.navigationInfo)===null||qa===void 0||((Va=qa.top)===null||Va===void 0)?void 0:Va.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Te({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:n.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),n.a.createElement(D.a.Item,{className:ie.a.exit},n.a.createElement("a",{onClick:Object(k.a)(s.a.mark(function dr(){var Ga;return s.a.wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:return Nn.next=2,Object(U.c)({});case 2:Ga=Nn.sent,(Ga==null?void 0:Ga.status)===1&&(Te({type:"user/getUserInfo",payload:Object(r.a)({},Xe)}),Te({type:"user/getNavigationInfo",payload:Object(r.a)({},Xe)}),le("autologin_trustie"),le("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),Q.b.success(Ga==null?void 0:Ga.message),u.d.replace("/"));case 4:case"end":return Nn.stop()}},dr)}))},"\u9000\u51FA")))};if(Object(oe.p)()){var pt,Rt;return n.a.createElement(T.a,{className:"".concat(ie.a.height67," pr25"),overlay:vt,placement:"bottomRight"},n.a.createElement("section",null,n.a.createElement("aside",null,n.a.createElement("div",{className:$.actionTabs.type===1?ie.a.classromediv:""},n.a.createElement("img",{className:"".concat(ie.a.userPic," current ml15"),src:"".concat(ee.a===null||ee.a===void 0?void 0:ee.a.IMG_SERVER,"/images/").concat((pt=Se.userInfo)===null||pt===void 0?void 0:pt.image_url),alt:"",onClick:function(){var Ft;return u.d.push(Object(w.p)()?"/account/profile":"/users/".concat((Ft=Se.userInfo)===null||Ft===void 0?void 0:Ft.login,"/classrooms"))}}),Object(w.p)()&&n.a.createElement("span",{className:"ml10 font16"},(Rt=Se.userInfo)===null||Rt===void 0?void 0:Rt.username)))))}else{var Bt;return n.a.createElement("div",{className:"font15 mr15 ".concat(Ge.isIlearning?ie.a.login:"")},n.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){Te({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((Bt=Ge.setting)!==null&&Bt!==void 0&&Bt.close_register)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml5 mr5"},"|"),n.a.createElement(e.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},$e=Object(u.a)(function(xe){var Le=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting,we=xe.shixunHomeworks;return{homePage:Le,user:Ne,globalSetting:se,shixunHomeworks:we,loading:De.models.index}})(Qe),et=h("+L6B"),Ve=h("2/Rp"),ke=h("Cs+z"),Oe=h.n(ke),Ce=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],ue=function(Le){var De=Le.homePage,Ne=Le.user,se=Le.globalSetting,we=Le.loading,B=Le.dispatch,He=Le.location,at=Le.text,R=Le.shixunHomeworks,Me=Le.payload,Ue=Me===void 0?{}:Me,q=Object(_.a)(Le,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),ye=Object(a.useState)("none"),Se=Object(m.a)(ye,2),Ge=Se[0],Ye=Se[1];return Object(a.useEffect)(function(){R.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Ye("flex")},[R.actionTabs.key]),Object(a.useEffect)(function(){R.actionTabs.key==="\u9690\u85CF"&&(Ye("none"),localStorage.setItem("Noviceguide","0"))},[R.actionTabs.key]),n.a.createElement("div",{style:{display:Ge,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},n.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},n.a.createElement("img",{src:Oe.a,style:{position:"absolute",top:"-32px"}}),n.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},R.actionTabs.text),R.actionTabs.type===9?n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(Ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Ye("none"),B({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(Ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),B({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Ye("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},N=Object(u.a)(function(xe){var Le=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting,we=xe.shixunHomeworks;return{homePage:Le,user:Ne,globalSetting:se,loading:De.models.index,shixunHomeworks:we}})(ue),te=h("498V"),F=h.n(te),Ae=o.a.Header,tt=d.a.Search;function he(){var xe,Le,De=window.location.pathname,Ne=De.split("/"),se={};return Ne[1]=="classrooms"&&Ne.length>3&&!((xe=Ne[4])!==null&&xe!==void 0&&xe.includes("newgold"))&&!((Le=Ne[5])!==null&&Le!==void 0&&Le.includes("newgold"))&&Ne[2]!=="coursesId"&&(se.course_id=Ne[2]),Ne[1]==="shixuns"&&Ne.length>3&&(se.objective_type="shixun",se.objective_id=Ne[2]),Ne[1]==="paths"&&Ne.length>3&&(se.objective_type="path",se.objective_id=Ne[2]),Object(r.a)(Object(r.a)({},se),{school:1})}var We={\u9996\u9875:"/","/paths":{link:"/paths",key:1},"/shixuns":{link:"/shixuns",key:2},"/classrooms":{link:"/classrooms",key:3},"/competitions":{link:"/competitions",key:4},"/moop_cases":{link:"/moop_cases",key:5},"/forums":{link:"/forums",key:6},"/recruitment":{link:"/competitions/index",key:7},"/three":{link:"/three",key:7}},rt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],V=function(Le){var De,Ne=Le.homePage,se=Le.user,we=Le.globalSetting,B=Le.loading,He=Le.dispatch,at=Le.location,R=Le.isLogin,Me=R===void 0?!1:R,Ue=Le.shixunHomeworks,q=Object(_.a)(Le,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),ye=Object(t.g)(),Se=Object(a.useState)(!1),Ge=Object(m.a)(Se,2),Ye=Ge[0],Te=Ge[1],$=Object(a.useState)(-1),pe=Object(m.a)($,2),qe=pe[0],Xe=pe[1],ot=Object(a.useState)(!1),st=Object(m.a)(ot,2),ze=st[0],it=st[1],ct=he(),vt=at.pathname;Object(a.useEffect)(function(){He({type:"user/getNavigationInfo",payload:Object(r.a)({},ct)})},[we.name]),Object(a.useEffect)(function(){Ue.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(rt!=null&&rt.includes(at==null?void 0:at.pathname)||(at==null?void 0:at.pathname.indexOf("/classrooms"))===0||He({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[at.pathname]),Object(a.useEffect)(function(){Ue.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Ue.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Ue.actionTabs.key]),Object(a.useEffect)(function(){if(we!=null&&we.setting){var Ot,dn;if(we==null||((Ot=we.setting)===null||Ot===void 0||((dn=Ot.navbar)===null||dn===void 0))||dn.map(function(Yn,On){at.pathname.indexOf(Yn.link)>-1&&Xe(On)}),qe===-1)Object(w.T)(we.setting.name);else{var Rn;Object(w.T)(((Rn=we.setting.navbar[qe])===null||Rn===void 0?void 0:Rn.name)||we.setting.name)}}},[we==null?void 0:we.setting]);var pt=Object(a.useMemo)(function(){var Ot;if(we!=null&&(Ot=we.setting)!==null&&Ot!==void 0&&Ot.nav_logo_url){var dn;return"".concat(ee.a.IMG_SERVER,"/").concat(we==null||((dn=we.setting)===null||dn===void 0)?void 0:dn.nav_logo_url)}else return"".concat(ee.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[we==null||((De=we.setting)===null||De===void 0)?void 0:De.nav_logo_url]);function Rt(Ot){ye.push("/search?value="+Ot)}var Bt=function(){return Ye?n.a.createElement("div",{onBlur:function(){setTimeout(function(){Te(!1)},300)}},n.a.createElement(tt,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:Rt,autoFocus:!0})):n.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){ye.push("/search?value=")}})},Xt=function(){var Ot=Object(k.a)(s.a.mark(function dn(Rn){var Yn,On,Wn;return s.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return Rn.preventDefault(),qn.next=3,Object(U.n)();case 3:On=qn.sent,On!=null&&(Yn=On.data)!==null&&Yn!==void 0&&Yn.engineer_url?document.location.href=On==null||((Wn=On.data)===null||Wn===void 0)?void 0:Wn.engineer_url:(On==null?void 0:On.status)!=401&&it(!0);case 5:case"end":return qn.stop()}},dn)}));return function(Rn){return Ot.apply(this,arguments)}}();if(we.showHeader&&we.showHeaderFooter){var Ft,Qt,pn,Pn,na;return n.a.createElement(o.a,{className:"".concat(we.isIlearning?C.a["header-iearning"]:C.a.header," ").concat(we.showHeaderFixed?C.a.headerFixed:"")},n.a.createElement(Ae,{className:"header"},n.a.createElement("section",{className:C.a["edu-menu"]},(!!we.isIlearning||!!we.isPaZhou)&&n.a.createElement(e.a,{style:{display:"flex",alignItems:"center"},onClick:function(){He({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},n.a.createElement("img",{className:C.a.logo,title:(Ft=we.setting)===null||Ft===void 0?void 0:Ft.name,src:we.isPaZhou?pt:F.a||pt}),!we.isPaZhou&&n.a.createElement("span",{className:C.a.title},"\u6DF7\u5408\u589E\u5F3A\u667A\u6167\u6559\u80B2i-Learning\u5E73\u53F0")),n.a.createElement("ul",{className:"".concat(C.a.menu," ").concat(Object(w.p)()&&"ml0")},Object(w.p)()&&n.a.createElement("li",null,n.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(w.p)()&&we.setting&&we.setting.navbar.map(function(Ot,dn){if(!Ot.hidden)return n.a.createElement("li",{key:dn,className:qe===dn?C.a.actived:""},(Ot==null?void 0:Ot.name)==="\u6559\u5B66\u8BFE\u5802"&&n.a.createElement(e.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||He({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:n.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}})},className:Ue.actionTabs.type===4?C.a.classromediv:"",dangerouslySetInnerHTML:{__html:Ot.name},to:Ot.link}),(Ot==null?void 0:Ot.name)!="\u6559\u5B66\u8BFE\u5802"&&Ot.link.indexOf("http")<0&&n.a.createElement(e.a,{onClick:function(){He({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},dangerouslySetInnerHTML:{__html:Ot.name},to:Ot.link,target:Ot.link.indexOf("http")>-1?"_blank":"_self"}),(Ot==null?void 0:Ot.name)!="\u6559\u5B66\u8BFE\u5802"&&Ot.link.indexOf("http")>-1&&n.a.createElement("a",{target:Ot.link.indexOf("http")>-1?"_blank":"_self",dangerouslySetInnerHTML:{__html:Ot.name},href:Ot.link}))})),n.a.createElement("div",{className:"search-bar",style:{flex:we.isIlearning?"initial":"1 0 auto"}},!Object(w.p)()&&!(we!=null&&we.isIlearning)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Bt,null),!Me&&n.a.createElement(ne,null),!Me&&!!(se!=null&&(Qt=se.userInfo)!==null&&Qt!==void 0&&Qt.login)&&n.a.createElement(e.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(se==null||((pn=se.userInfo)===null||pn===void 0)?void 0:pn.login,"/user_tidings")},(se==null||((Pn=se.navigationInfo)===null||Pn===void 0||((na=Pn.top)===null||na===void 0))?void 0:na.new_message)&&n.a.createElement("span",{className:C.a.newslight}))),!Me&&n.a.createElement($e,{payload:ct}))),n.a.createElement(f.a,{centered:!0,destroyOnClose:!0,visible:ze,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(w.O)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return it(!1)}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:l.C,width:200,height:200}),n.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),n.a.createElement(N,null))}else return n.a.createElement(n.a.Fragment,null)},Be=I.a=Object(u.a)(function(xe){var Le=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting,we=xe.shixunHomeworks;return{homePage:Le,user:Ne,globalSetting:se,loading:De.models.index,shixunHomeworks:we}})(V)},rwxt:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S=h("GdRQ");function f(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function k(p,d){for(var c=0;c>>24,u>>>=A,l-=A,A=T>>>16&255,A===0)W[c++]=T&65535;else if(A&16){E=T&65535,A&=15,A&&(l>>=A,l-=A),l<15&&(u+=D[p++]<>>24,u>>>=A,l-=A,A=T>>>16&255,A&16){if(b=T&65535,A&=15,ls){m.msg="invalid distance too far back",r.mode=S;break e}if(u>>>=A,l-=A,A=c-o,b>A){if(A=b-A,A>n&&r.sane){m.msg="invalid distance too far back",r.mode=S;break e}if(v=0,O=e,t===0){if(v+=a-A,A2;)W[c++]=O[v++],W[c++]=O[v++],W[c++]=O[v++],E-=3;E&&(W[c++]=O[v++],E>1&&(W[c++]=O[v++]))}else{v=c-b;do W[c++]=W[v++],W[c++]=W[v++],W[c++]=W[v++],E-=3;while(E>2);E&&(W[c++]=W[v++],E>1&&(W[c++]=W[v++]))}}else if((A&64)===0){T=C[(T&65535)+(u&(1<>3,p-=E,l-=E<<3,u&=(1<1)Object(o.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(C.length===0)return Object(o.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=C[0];if(r.isValidElement(x)&&Object(i.c)(x)){var y=x.ref;C[0]=r.cloneElement(x,{ref:Object(i.a)(y,this.setChildNode)})}return C.length===1?C[0]:C.map(function(T,A){return!r.isValidElement(T)||"key"in T&&T.key!==null?T:r.cloneElement(T,{key:"".concat(a,"-").concat(A)})})}}]),u}(r.Component);n.displayName="ResizeObserver",I.a=n},tWlo:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},vS10:function(Re,I,h){"use strict";h.d(I,"h",function(){return _}),h.d(I,"d",function(){return p}),h.d(I,"c",function(){return c}),h.d(I,"e",function(){return i}),h.d(I,"g",function(){return a}),h.d(I,"a",function(){return t}),h.d(I,"i",function(){return u}),h.d(I,"b",function(){return g}),h.d(I,"f",function(){return x});var S=h("9og8"),f=h("WmNS"),k=h.n(f),m=h("ErOA");function _(E){return r.apply(this,arguments)}function r(){return r=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/save_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),r.apply(this,arguments)}function p(E){return d.apply(this,arguments)}function d(){return d=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/tasks/".concat(b.identifier,"/jupyter.json"),{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),d.apply(this,arguments)}function c(E){return o.apply(this,arguments)}function o(){return o=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/get_info_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),o.apply(this,arguments)}function i(E){return s.apply(this,arguments)}function s(){return s=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),s.apply(this,arguments)}function a(E){return n.apply(this,arguments)}function n(){return n=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/reset_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),n.apply(this,arguments)}function t(E){return e.apply(this,arguments)}function e(){return e=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/active_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),e.apply(this,arguments)}function u(E){return l.apply(this,arguments)}function l(){return l=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/myshixuns/".concat(b.identifier,"/sync_code.json"),{method:"Post",params:b}));case 1:case"end":return O.stop()}},E)})),l.apply(this,arguments)}function g(E){return C.apply(this,arguments)}function C(){return C=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/shixuns/".concat(b.identifier,"/get_data_sets.json"),{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),C.apply(this,arguments)}function x(E){return y.apply(this,arguments)}function y(){return y=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/tasks/".concat(b.identifier,"/reboot_esc.json"),{method:"post"}));case 1:case"end":return O.stop()}},E)})),y.apply(this,arguments)}function T(E){return A.apply(this,arguments)}function A(){return A=Object(S.a)(k.a.mark(function E(b){return k.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/tasks/".concat(b.taskId,"/get_latex_file_tree.json"),{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),A.apply(this,arguments)}},vToQ:function(Re,I,h){Re.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},vewr:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.getPointerEvent=S,I.stopEvent=f,I.setCapture=d,I.releaseCapture=c;function S(o){return o.changedTouches?o.changedTouches[0]:o.touches?o.touches[0]:o}function f(o){o.stopPropagation(),o.preventDefault()}var k=!1,m=null;document.captureElement=null;function _(o){if(k)return;var i=new o.constructor(o.type,o);k=!0,document.captureElement?document.captureElement.dispatchEvent(i):m.dispatchEvent(i),k=!1,o.stopPropagation(),i.defaultPrevented&&o.preventDefault(),o.type==="mouseup"&&c()}function r(){var o=document.getElementById("noVNC_mouse_capture_elem");o.style.cursor=window.getComputedStyle(document.captureElement).cursor}var p=new MutationObserver(r);function d(o){if(o.setCapture)o.setCapture(),document.captureElement=o,o.addEventListener("mouseup",c);else{c();var i=document.getElementById("noVNC_mouse_capture_elem");i===null&&(i=document.createElement("div"),i.id="noVNC_mouse_capture_elem",i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.width="100%",i.style.height="100%",i.style.zIndex=1e4,i.style.display="none",document.body.appendChild(i),i.addEventListener("contextmenu",_),i.addEventListener("mousemove",_),i.addEventListener("mouseup",_)),document.captureElement=o,p.observe(o,{attributes:!0}),r(),i.style.display="",window.addEventListener("mousemove",_),window.addEventListener("mouseup",_)}}function c(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;m=document.captureElement,document.captureElement=null,p.disconnect();var o=document.getElementById("noVNC_mouse_capture_elem");o.style.display="none",window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",_)}}},wCXF:function(Re,I,h){"use strict";h.d(I,"a",function(){return te});var S=h("rePB"),f=h("VTBJ"),k=h("KQm4"),m=h("U8pU"),_=h("ODXe"),r=h("q1tI"),p=h("TSYQ"),d=h.n(p),c=h("Gytx"),o=h.n(c),i=h("Kwbf"),s=h("t23M"),a=h("qx4F"),n=h("6eGT"),t=h("IBYe"),e=h("Ff2n"),u=h("c+Xe"),l=h("fyJ8"),g=h("biw7");function C(he,We,rt,V,Be){var xe=rt[he]||{},Le=rt[We]||{},De,Ne;xe.fixed==="left"?De=V.left[he]:Le.fixed==="right"&&(Ne=V.right[We]);var se=!1,we=!1,B=!1,He=!1,at=rt[We+1],R=rt[he-1];if(Be==="rtl"){if(De!==void 0){var Me=R&&R.fixed==="left";He=!Me}else if(Ne!==void 0){var Ue=at&&at.fixed==="right";B=!Ue}}else if(De!==void 0){var q=at&&at.fixed==="left";se=!q}else if(Ne!==void 0){var ye=R&&R.fixed==="right";we=!ye}return{fixLeft:De,fixRight:Ne,lastFixLeft:se,firstFixRight:we,lastFixRight:B,firstFixLeft:He,isSticky:V.isSticky}}var x=h("sR1s");function y(he){var We=he.cells,rt=he.stickyOffsets,V=he.flattenColumns,Be=he.rowComponent,xe=he.cellComponent,Le=he.onHeaderRow,De=he.index,Ne=r.useContext(g.a),se=Ne.prefixCls,we=Ne.direction,B;Le&&(B=Le(We.map(function(at){return at.column}),De));var He=Object(x.a)(We.map(function(at){return at.column}));return r.createElement(Be,Object.assign({},B),We.map(function(at,R){var Me=at.column,Ue=C(at.colStart,at.colEnd,V,rt,we),q;return Me&&Me.onHeaderCell&&(q=at.column.onHeaderCell(Me)),r.createElement(l.a,Object.assign({},at,{ellipsis:Me.ellipsis,align:Me.align,component:xe,prefixCls:se,key:He[R]},Ue,{additionalProps:q,rowType:"header"}))}))}y.displayName="HeaderRow";var T=y;function A(he){var We=[];function rt(Le,De){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;We[Ne]=We[Ne]||[];var se=De,we=Le.filter(Boolean).map(function(B){var He={key:B.key,className:B.className||"",children:B.title,column:B,colStart:se},at=1,R=B.children;return R&&R.length>0&&(at=rt(R,se,Ne+1).reduce(function(Me,Ue){return Me+Ue},0),He.hasSubColumns=!0),"colSpan"in B&&(at=B.colSpan),"rowSpan"in B&&(He.rowSpan=B.rowSpan),He.colSpan=at,He.colEnd=He.colStart+at-1,We[Ne].push(He),se+=at,at});return we}rt(he,0);for(var V=We.length,Be=function(De){We[De].forEach(function(Ne){!("rowSpan"in Ne)&&!Ne.hasSubColumns&&(Ne.rowSpan=V-De)})},xe=0;xe=0;De-=1){var Ne=We[De],se=rt&&rt[De],we=se&&se[v.a];(Ne||we||Le)&&(Be.unshift(r.createElement("col",Object.assign({key:De,style:{width:Ne,minWidth:Ne}},we))),Le=!0)}return r.createElement("colgroup",null,Be)}var D=O;function W(he,We){return Object(r.useMemo)(function(){for(var rt=[],V=0;V1?Tn-1:0),La=1;La=B&&(pt=B-He),Le({scrollLeft:pt/B*(we+2)}),ye.current.x=ze.pageX},Xe=function(){var ze=Object(Ve.b)(xe.current).top,it=ze+xe.current.offsetHeight,ct=document.documentElement.scrollTop+window.innerHeight;it-Object(a.a)()<=ct||ze>=ct-De?q(function(vt){return Object(f.a)(Object(f.a)({},vt),{},{isHiddenScrollBar:!0})}):q(function(vt){return Object(f.a)(Object(f.a)({},vt),{},{isHiddenScrollBar:!1})})},ot=function(ze){q(function(it){return Object(f.a)(Object(f.a)({},it),{},{scrollLeft:ze/we*B||0})})};return r.useImperativeHandle(rt,function(){return{setScrollLeft:ot}}),r.useEffect(function(){var st=Object(et.a)(document.body,"mouseup",$,!1),ze=Object(et.a)(document.body,"mousemove",qe,!1);return Xe(),function(){st.remove(),ze.remove()}},[He,Ye]),r.useEffect(function(){var st=Object(et.a)(window,"scroll",Xe,!1),ze=Object(et.a)(window,"resize",Xe,!1);return function(){st.remove(),ze.remove()}},[]),r.useEffect(function(){Ue.isHiddenScrollBar||q(function(st){var ze,it;return Object(f.a)(Object(f.a)({},st),{},{scrollLeft:xe.current.scrollLeft/((ze=xe.current)===null||ze===void 0?void 0:ze.scrollWidth)*((it=xe.current)===null||it===void 0?void 0:it.clientWidth)})})},[Ue.isHiddenScrollBar]),we<=B||!He||Ue.isHiddenScrollBar?null:r.createElement("div",{style:{height:Object(a.a)(),width:B,bottom:De},className:"".concat(se,"-sticky-scroll")},r.createElement("div",{onMouseDown:pe,ref:at,className:d()("".concat(se,"-sticky-scroll-bar"),Object(S.a)({},"".concat(se,"-sticky-scroll-bar-active"),Ye)),style:{width:"".concat(He,"px"),transform:"translate3d(".concat(Ue.scrollLeft,"px, 0, 0)")}}))},Oe=r.forwardRef(ke);function Ce(he,We){return r.useMemo(function(){var rt=!!he;return{isSticky:rt,stickyClassName:rt?"".concat(We,"-sticky-header"):"",offsetHeader:Object(m.a)(he)==="object"&&he.offsetHeader||0,offsetScroll:Object(m.a)(he)==="object"&&he.offsetScroll||0}},[he,We])}var ue=[],N={},te="rc-table-internal-hook",F=r.memo(function(he){var We=he.children;return We},function(he,We){return o()(he.props,We.props)?he.pingLeft!==We.pingLeft||he.pingRight!==We.pingRight:!1});function Ae(he){var We,rt=he.prefixCls,V=he.className,Be=he.rowClassName,xe=he.style,Le=he.data,De=he.rowKey,Ne=he.scroll,se=he.tableLayout,we=he.direction,B=he.title,He=he.footer,at=he.summary,R=he.id,Me=he.showHeader,Ue=he.components,q=he.emptyText,ye=he.onRow,Se=he.onHeaderRow,Ge=he.internalHooks,Ye=he.transformColumns,Te=he.internalRefs,$=he.sticky,pe=Le||ue,qe=!!pe.length,Xe=r.useState(0),ot=Object(_.a)(Xe,2),st=ot[0],ze=ot[1];r.useEffect(function(){ze(Object(a.a)())});var it=r.useMemo(function(){return Object(x.c)(Ue,{})},[Ue]),ct=r.useCallback(function(_n,fn){return Object(x.b)(it,_n)||fn},[it]),vt=r.useMemo(function(){return typeof De=="function"?De:function(_n){var fn=_n&&_n[De];return fn}},[De]),pt=Object(v.c)(he),Rt=pt.expandIcon,Bt=pt.expandedRowKeys,Xt=pt.defaultExpandedRowKeys,Ft=pt.defaultExpandAllRows,Qt=pt.expandedRowRender,pn=pt.onExpand,Pn=pt.onExpandedRowsChange,na=pt.expandRowByClick,Ot=pt.rowExpandable,dn=pt.expandIconColumnIndex,Rn=pt.expandedRowClassName,Yn=pt.childrenColumnName,On=pt.indentSize,Wn=Rt||Qe,jt=Yn||"children",qn=r.useMemo(function(){return Qt?"row":he.expandable&&Ge===te&&he.expandable.__PARENT_RENDER_ICON__||pe.some(function(_n){return _n&&Object(m.a)(_n)==="object"&&_n[jt]})?"nest":!1},[!!Qt,pe]),wa=r.useState(function(){return Xt||(Ft?$e(pe,vt,jt):[])}),zn=Object(_.a)(wa,2),Jn=zn[0],ua=zn[1],Tn=r.useMemo(function(){return new Set(Bt||Jn||[])},[Bt,Jn]),ga=r.useCallback(function(_n){var fn=vt(_n,pe.indexOf(_n)),Fn,ba=Tn.has(fn);ba?(Tn.delete(fn),Fn=Object(k.a)(Tn)):Fn=[].concat(Object(k.a)(Tn),[fn]),ua(Fn),pn&&pn(!ba,_n),Pn&&Pn(Fn)},[vt,Tn,pe,pn,Pn]),La=r.useState(0),cr=Object(_.a)(La,2),qa=cr[0],Va=cr[1],dr=Object(z.b)(Object(f.a)(Object(f.a)(Object(f.a)({},he),pt),{},{expandable:!!Qt,expandedKeys:Tn,getRowKey:vt,onTriggerExpand:ga,expandIcon:Wn,expandIconColumnIndex:dn,direction:we}),Ge===te?Ye:null),Ga=Object(_.a)(dr,2),Sr=Ga[0],Nn=Ga[1],Gr=r.useMemo(function(){return{columns:Sr,flattenColumns:Nn}},[Sr,Nn]),Qr=r.useRef(),yo=r.useRef(),Qa=r.useRef(),Nr=r.useState(!1),ro=Object(_.a)(Nr,2),oo=ro[0],Eo=ro[1],io=r.useState(!1),jr=Object(_.a)(io,2),Ur=jr[0],Co=jr[1],xo=ie(new Map),so=Object(_.a)(xo,2),Do=so[0],ko=so[1],rr=Object(x.a)(Nn),Yr=rr.map(function(_n){return Do.get(_n)}),lo=r.useMemo(function(){return Yr},[Yr.join("_")]),uo=ee(lo,Nn.length,we),Xa=Ne&&Object(x.d)(Ne.y),$a=Ne&&Object(x.d)(Ne.x),er=$a&&Nn.some(function(_n){var fn=_n.fixed;return fn}),Jr=r.useRef(),Ar=Ce($,rt),Dr=Ar.isSticky,Zr=Ar.offsetHeader,Lo=Ar.offsetScroll,co=Ar.stickyClassName,kr,Kr,Vn;Xa&&(Kr={overflowY:"scroll",maxHeight:Ne.y}),$a&&(kr={overflowX:"auto"},Xa||(Kr={overflowY:"hidden"}),Vn={width:Ne.x===!0?"auto":Ne.x,minWidth:"100%"});var fr=r.useCallback(function(_n,fn){ko(function(Fn){var ba=new Map(Fn);return ba.set(_n,fn),ba})},[]),Fr=oe(null),fo=Object(_.a)(Fr,2),ho=fo[0],or=fo[1];function Br(_n,fn){if(!fn)return;typeof fn=="function"?fn(_n):fn.scrollLeft!==_n&&(fn.scrollLeft=_n)}var wr=function(fn){var Fn=fn.currentTarget,ba=fn.scrollLeft,Hr=typeof ba=="number"?ba:Fn.scrollLeft,wo=Fn||N;if(!or()||or()===wo){var bo;ho(wo),Br(Hr,yo.current),Br(Hr,Qa.current),Br(Hr,(bo=Jr.current)===null||bo===void 0?void 0:bo.setScrollLeft)}if(Fn){var Oo=Fn.scrollWidth,To=Fn.clientWidth;Eo(Hr>0),Co(Hr0?[].concat(Object(f.a)(e),Object(f.a)(i(C).map(function(x){return Object(k.a)({fixed:g},x)}))):[].concat(Object(f.a)(e),[Object(k.a)(Object(k.a)({},u),{},{fixed:g})])},[])}function s(t){for(var e=!0,u=0;u=0;C-=1){var x=t[C];if(g&&x.fixed!=="right")g=!1;else if(!g&&x.fixed==="right"){Object(p.a)(!1,"Index ".concat(C+1," of `columns` missing `fixed='right'` prop."));break}}}function a(t){return t.map(function(e){var u=e.fixed,l=Object(m.a)(e,["fixed"]),g=u;return u==="left"?g="right":u==="right"&&(g="left"),Object(k.a)({fixed:g},l)})}function n(t,e){var u=t.prefixCls,l=t.columns,g=t.children,C=t.expandable,x=t.expandedKeys,y=t.getRowKey,T=t.onTriggerExpand,A=t.expandIcon,E=t.rowExpandable,b=t.expandIconColumnIndex,v=t.direction,O=t.expandRowByClick,D=_.useMemo(function(){return l||o(g)},[l,g]),W=_.useMemo(function(){if(C){var Z,Y=b||0,w=D[Y],P=(Z={},Object(S.a)(Z,c.a,{className:"".concat(u,"-expand-icon-col")}),Object(S.a)(Z,"title",""),Object(S.a)(Z,"fixed",w?w.fixed:null),Object(S.a)(Z,"className","".concat(u,"-row-expand-icon-cell")),Object(S.a)(Z,"render",function(M,H,ae){var ve=y(H,ae),de=x.has(ve),be=E?E(H):!0,z=A({prefixCls:u,expanded:de,expandable:be,record:H,onExpand:T});return O?_.createElement("span",{onClick:function(fe){return fe.stopPropagation()}},z):z}),Z),L=D.slice();return Y>=0&&L.splice(Y,0,P),L}return D},[C,D,y,x,A,v]),Q=_.useMemo(function(){var Z=W;return e&&(Z=e(Z)),Z.length||(Z=[{render:function(){return null}}]),Z},[e,W,v]),j=_.useMemo(function(){return v==="rtl"?a(i(Q)):i(Q)},[Q,v]);return[Q,j]}I.b=n},whVF:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S=h("lNSK"),f=k(h("1q3G"));function k(d){return d&&d.__esModule?d:{default:d}}function m(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function _(d,c){for(var o=0;o0){var a=[s],n=s.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,i=(0,S.deflate)(this.strm,S.Z_FULL_FLUSH),i<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);n+=t.length,a.push(t)}while(this.strm.avail_in>0);for(var e=new Uint8Array(n),u=0,l=0;l>>16&65535|0,d=0;m!==0;){d=m>2e3?2e3:m,m-=d;do r=r+k[_++]|0,p=p+r|0;while(--d);r%=65521,p%=65521}return r|p<<16|0}},xrsn:function(Re,I,h){Re.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(Re,I,h){"use strict";h.d(I,"a",function(){return i}),h.d(I,"b",function(){return a});var S=/margin|padding|width|height|max|min|offset/,f={left:!0,top:!0},k={cssFloat:1,styleFloat:1,float:1};function m(n){return n.nodeType===1?n.ownerDocument.defaultView.getComputedStyle(n,null):{}}function _(n,t,e){if(t=t.toLowerCase(),e==="auto"){if(t==="height")return n.offsetHeight;if(t==="width")return n.offsetWidth}return t in f||(f[t]=S.test(t)),f[t]?parseFloat(e)||0:e}function r(n,t){var e=arguments.length,u=m(n);return t=k[t]?"cssFloat"in n.style?"cssFloat":"styleFloat":t,e===1?u:_(n,t,u[t]||n.style[t])}function p(n,t,e){var u=arguments.length;if(t=k[t]?"cssFloat"in n.style?"cssFloat":"styleFloat":t,u===3)return typeof e=="number"&&S.test(t)&&(e="".concat(e,"px")),n.style[t]=e,e;for(var l in t)t.hasOwnProperty(l)&&p(n,l,t[l]);return m(n)}function d(n){return n===document.body?document.documentElement.clientWidth:n.offsetWidth}function c(n){return n===document.body?window.innerHeight||document.documentElement.clientHeight:n.offsetHeight}function o(){var n=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:n,height:t}}function i(){var n=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:n,height:t}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function a(n){var t=n.getBoundingClientRect(),e=document.documentElement;return{left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}},y5JW:function(Re,I,h){"use strict";h.d(I,"c",function(){return e}),h.d(I,"a",function(){return u});var S=h("DZo9"),f=h("8z0m"),k=h("+L6B"),m=h("2/Rp"),_=h("9og8"),r=h("k1fw"),p=h("oBTY"),d=h("miYZ"),c=h("tsqr"),o=h("WmNS"),i=h.n(o),s=h("q1tI"),a=h.n(s),n=h("m3rI"),t=h("wzkS"),e="\u3000\u3000";function u(l){var g=["Bytes","KB","MB","GB","TB"];if(l==0)return"0 Byte";var C=parseInt(""+Math.floor(Math.log(l)/Math.log(1024)),10);return(l/Math.pow(1024,C)).toFixed(1)+" "+g[C]}I.b=function(l){var g=l.value,C=g===void 0?[]:g,x=l.action,y=l.onChange,T=l.className,A=l.maxSize,E=A===void 0?150:A,b=l.title,v=b===void 0?"\u6587\u4EF6\u4E0A\u4F20":b,O=l.accept,D=O===void 0?null:O,W={multiple:!1,fileList:C,accept:D,withCredentials:!0,beforeUpload:function(Z){var Y=Z.size/1024/1024;return Y0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:C.length>0,ghost:!0},v),a.a.createElement("span",{onClick:Q,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",E,"M) ")))}},yslc:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); + a `).concat(H,",").concat(H," 0 1 1 ").concat(-de,",").concat(be),ne=Math.PI*2*H,fe={stroke:P,strokeDasharray:"".concat(w/100*(ne-K),"px ").concat(ne,"px"),strokeDashoffset:"-".concat(K/2+Y/100*(ne-K),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:z,pathStyle:fe}}var Q=function(w){var P=w.prefixCls,k=w.strokeWidth,K=w.trailWidth,M=w.gapDegree,H=w.gapPosition,ae=w.trailColor,ve=w.strokeLinecap,de=w.style,be=w.className,z=w.strokeColor,ne=w.percent,fe=E(w,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ie=Object(S.useMemo)(function(){return v+=1,v},[]),oe=W(0,100,ae,k,M,H),U=oe.pathString,ee=oe.pathStyle,J=D(ne),le=D(z),Pe=le.find(function(Le){return Object.prototype.toString.call(Le)==="[object Object]"}),Qe=r(J),$e=g(Qe,1),et=$e[0],Ve=function(){var Oe=0;return J.map(function(Ce,ue){var N=le[ue]||le[le.length-1],te=Object.prototype.toString.call(N)==="[object Object]"?"url(#".concat(P,"-gradient-").concat(ie,")"):"",F=W(Oe,Ce,N,k,M,H);return Oe+=Ce,f.a.createElement("path",{key:ue,className:"".concat(P,"-circle-path"),d:F.pathString,stroke:te,strokeLinecap:ve,strokeWidth:k,opacity:Ce===0?0:1,fillOpacity:"0",style:F.pathStyle,ref:et[ue]})})};return f.a.createElement("svg",l({className:m()("".concat(P,"-circle"),be),viewBox:"0 0 100 100",style:de},fe),Pe&&f.a.createElement("defs",null,f.a.createElement("linearGradient",{id:"".concat(P,"-gradient-").concat(ie),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Pe).sort(function(Le,Oe){return O(Le)-O(Oe)}).map(function(Le,Oe){return f.a.createElement("stop",{key:Oe,offset:Le,stopColor:Pe[Le]})}))),f.a.createElement("path",{className:"".concat(P,"-circle-trail"),d:U,stroke:ae,strokeLinecap:ve,strokeWidth:K||k,fillOpacity:"0",style:ee}),Ve().reverse())};Q.defaultProps=_;var j=Q,Z={Line:u,Circle:j}},hW8S:function(Re,I,h){"use strict";h.d(I,"a",function(){return m}),h.d(I,"c",function(){return _}),h.d(I,"b",function(){return r});var S=h("VTBJ"),f=h("Ff2n"),L=h("Kwbf"),m="RC_TABLE_INTERNAL_COL_DEFINE";function _(p){var d=p.expandable,c=Object(f.a)(p,["expandable"]);return"expandable"in p?Object(S.a)(Object(S.a)({},c),d):c}function r(p){return Object.keys(p).reduce(function(d,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(d[c]=p[c]),d},{})}},hXwI:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;function S(_,r){if(!(_ instanceof r))throw new TypeError("Cannot call a class as a function")}function f(_,r){for(var p=0;p>>3]&1<>>10,this.keys[M]|=(ae&4032)>>>6,++M,this.keys[M]=(H&258048)<<12,this.keys[M]|=(H&63)<<16,this.keys[M]|=(ae&258048)>>>4,this.keys[M]|=ae&63,++M}}return L(y,[{key:"enc8",value:function(A){var E=A.slice(),b=0,v,O,D;v=E[b++]<<24|E[b++]<<16|E[b++]<<8|E[b++],O=E[b++]<<24|E[b++]<<16|E[b++]<<8|E[b++],D=(v>>>4^O)&252645135,O^=D,v^=D<<4,D=(v>>>16^O)&65535,O^=D,v^=D<<16,D=(O>>>2^v)&858993459,v^=D,O^=D<<2,D=(O>>>8^v)&16711935,v^=D,O^=D<<8,O=O<<1|O>>>31&1,D=(v^O)&2863311530,v^=D,O^=D,v=v<<1|v>>>31&1;for(var W=0,Q=0;W<8;++W){D=O<<28|O>>>4,D^=this.keys[Q++];var j=g[D&63];j|=u[D>>>8&63],j|=t[D>>>16&63],j|=a[D>>>24&63],D=O^this.keys[Q++],j|=C[D&63],j|=l[D>>>8&63],j|=e[D>>>16&63],j|=n[D>>>24&63],v^=j,D=v<<28|v>>>4,D^=this.keys[Q++],j=g[D&63],j|=u[D>>>8&63],j|=t[D>>>16&63],j|=a[D>>>24&63],D=v^this.keys[Q++],j|=C[D&63],j|=l[D>>>8&63],j|=e[D>>>16&63],j|=n[D>>>24&63],O^=j}for(O=O<<31|O>>>1,D=(v^O)&2863311530,v^=D,O^=D,v=v<<31|v>>>1,D=(v>>>8^O)&16711935,O^=D,v^=D<<8,D=(v>>>2^O)&858993459,O^=D,v^=D<<2,D=(O>>>16^v)&65535,v^=D,O^=D<<16,D=(O>>>4^v)&252645135,v^=D,O^=D<<4,D=[O,v],b=0;b<8;b++)E[b]=(D[b>>>2]>>>8*(3-b%4))%256,E[b]<0&&(E[b]+=256);return E}},{key:"encrypt",value:function(A){return this.enc8(A.slice(0,8)).concat(this.enc8(A.slice(8,16)))}}]),y}();I.default=x},ji0R:function(Re,I,h){Re.exports=h.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(Re,I,h){"use strict";var S=h("g9YV"),f=h("wCAj"),L=h("miYZ"),m=h("tsqr"),_=h("5Dmo"),r=h("3S7+"),p=h("sRBo"),d=h("kaz8"),c=h("oBTY"),o=h("9og8"),i=h("tJVT"),s=h("k1fw"),a=h("+L6B"),n=h("2/Rp"),t=h("O3gP"),e=h("lrIw"),u=h("y8nQ"),l=h("Vl3Y"),g=h("5NDa"),C=h("5rEg"),x=h("WmNS"),y=h.n(x),T=h("q1tI"),A=h.n(T),E=h("55Ip"),b=h("wd/R"),v=h.n(b),O=h("RotF"),D=h.n(O),W=h("E7E6"),Q=h.n(W),j=h("oUNq"),Z=[];function Y(K){var M=K.onSearch,H=K.schools;return A.a.createElement(l.a,{layout:"inline",onFinish:M,initialValues:{keyword:"",school_name:""},className:"search-form"},A.a.createElement(l.a.Item,{label:"\u59D3\u540D",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},A.a.createElement(C.a,{allowClear:!0,style:{width:370},size:"large"})),A.a.createElement(l.a.Item,{label:"\u5355\u4F4D",name:"school_name"},A.a.createElement(e.a,{options:H,style:{width:400},size:"large",showSearch:!0,filterOption:function(ve,de){return de.value.toUpperCase().indexOf(ve.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),A.a.createElement(l.a.Item,null,A.a.createElement(n.a,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))}var w;(function(K){K[K.INITDATA=0]="INITDATA",K[K.INITSCHOOLS=1]="INITSCHOOLS",K[K.SHOWLOADING=2]="SHOWLOADING",K[K.SELECTEDIDS=3]="SELECTEDIDS",K[K.SETQUERY=4]="SETQUERY",K[K.SETPAGE=5]="SETPAGE"})(w||(w={}));function P(K,M){switch(M.type){case w.INITDATA:return Object(s.a)(Object(s.a)({},K),M.payload);case w.SETQUERY:return Object(s.a)(Object(s.a)({},K),M.payload);case w.SETPAGE:return Object(s.a)(Object(s.a)({},K),{},{page:M.payload,reload:!1});case w.SHOWLOADING:return Object(s.a)(Object(s.a)({},K),{},{loading:M.payload});case w.INITSCHOOLS:return Object(s.a)(Object(s.a)({},K),{},{schools:M.payload});case w.SELECTEDIDS:return Object(s.a)(Object(s.a)({},K),{},{selectedIds:M.payload});default:throw new Error}}var k={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};I.a=function(K){var M=K.onSelect,H=K.onCancel,ae=K.container_id,ve=K.container_type,de=Object(T.useReducer)(P,k),be=Object(i.a)(de,2),z=be[0],ne=be[1],fe=z.data,ie=z.schools,oe=z.loading,U=z.selectedIds,ee=z.page,J=z.count,le=z.query,Pe=z.reload;Object(T.useEffect)(function(){function Ce(){return ue.apply(this,arguments)}function ue(){return ue=Object(o.a)(y.a.mark(function N(){var te,F,Ae;return y.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(j.wb)(Object(s.a)(Object(s.a)({},le),{},{page:ee,container_type:ve,container_id:ae}));case 2:te=he.sent,F=te.users,Ae=te.user_count,ne({type:w.INITDATA,payload:{data:Pe?F:[].concat(Object(c.a)(fe),Object(c.a)(F)),count:Ae}});case 6:case"end":return he.stop()}},N)})),ue.apply(this,arguments)}le&&Ce()},[ee,le,Pe,ae,ve]),Object(T.useEffect)(function(){function Ce(){return ue.apply(this,arguments)}function ue(){return ue=Object(o.a)(y.a.mark(function N(){var te,F;return y.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(j.kb)({});case 2:te=tt.sent,F=te.school_names,ne({type:w.INITSCHOOLS,payload:F.map(function(he){return{value:he}})});case 5:case"end":return tt.stop()}},N)})),ue.apply(this,arguments)}Ce()},[]);var Qe=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(ue,N){return A.a.createElement(d.a,{value:N.numid,checked:U.includes(N.numid),disabled:!!ue})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(ue,N){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement(E.a,{className:"bold c-black",to:"/users/".concat(N.login),target:"_blank"},ue||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,ue||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(ue){return ue?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(ue){return A.a.createElement(r.a,{placement:"bottom",title:ue},A.a.createElement("span",null,v()(ue).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(ue){if(ue===1)return A.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];function $e(Ce){ne({type:w.SETQUERY,payload:{page:1,reload:!0,query:Ce}})}function et(Ce){ne({type:w.SETPAGE,payload:Ce})}function Ve(Ce){var ue=U.indexOf(Ce);ue>=0?U.splice(ue,1):U.push(Ce),ne({type:w.SELECTEDIDS,payload:Object(c.a)(U)})}function Le(){U.length===0?m.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(M(U,ae),ne({type:w.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var Oe=J>ee*10;return A.a.createElement("div",{className:"select-user-container"},A.a.createElement(Y,{onSearch:$e,schools:ie}),le?A.a.createElement(A.a.Fragment,null,A.a.createElement("div",{className:"flexd-table-header mt20"},A.a.createElement(f.a,{pagination:!1,dataSource:Z,columns:Qe})),A.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},A.a.createElement(D.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:et,hasMore:Oe,useWindow:!1},A.a.createElement(f.a,{loading:oe,showHeader:!1,pagination:!1,dataSource:fe,columns:Qe,onRow:function(ue){return{onClick:function(te){ue.added!==1&&Ve(ue.numid)}}}}))),A.a.createElement("div",{className:"flex-container flex-end"},A.a.createElement(n.a,{type:"ghost",style:{marginRight:10},onClick:H},"\u53D6\u6D88"),A.a.createElement(n.a,{type:"primary",onClick:Le},"\u786E\u5B9A"))):A.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},A.a.createElement("img",{src:Q.a,width:"100",alt:""}),A.a.createElement("br",null),A.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(Re,I,h){"use strict";h.d(I,"a",function(){return Uo});var S=h("rePB"),f=h("ODXe"),L=h("Ff2n"),m=h("VTBJ"),_=h("q1tI"),r=h("TSYQ"),p=h.n(r),d=h("Zm9Q"),c=h("6cGi"),o=h("KQm4"),i=h("xEkU"),s=h.n(i),a=h("t23M");function n(ce){var Ie=Object(_.useRef)(),Ke=Object(_.useRef)(!1);function ge(){for(var X=arguments.length,re=new Array(X),G=0;GJe&&(dt=Je-ut),Object(_.useMemo)(function(){if(!re.length)return[0,0];for(var _t=re.length,Nt=_t,tn=0;tn<_t;tn+=1){var zt=ce.get(re[tn].key)||x;if(zt[Fe]+zt[Ee]>je+dt){Nt=tn-1;break}}for(var ln=0,on=_t-1;on>=0;on-=1){var nn=ce.get(re[on].key)||x;if(nn[Fe]1&&arguments[1]!==void 0?arguments[1]:!1,ge=Ie&&typeof Ie.getBoundingClientRect=="function"&&Ie.getBoundingClientRect().width;if(ge){if(Ke){var X=getComputedStyle(Ie),re=X.marginLeft,G=X.marginRight;ge+=+re.replace("px","")+ +G.replace("px","")}ge=+ge.toFixed(6)}return ge||0},Oe=function(Ie,Ke,ge){Ie&&Object(Y.a)(Ie.style)==="object"&&(Ie.style[Ke]=ge)},Ce=function(){return J.any},ue=h("bdgK"),N=h("i8i4"),te=h.n(N),F=h("wgJM"),Ae=h("l4aY"),tt=h("m+aA"),he=h("c+Xe"),We=h("zT1h"),rt=h("QC+M");function V(ce,Ie,Ke){return Ke?ce[0]===Ie[0]:ce[0]===Ie[0]&&ce[1]===Ie[1]}function Be(ce,Ie,Ke){var ge=ce[Ie]||{};return Object(m.a)(Object(m.a)({},ge),Ke)}function xe(ce,Ie,Ke,ge){for(var X=Ke.points,re=Object.keys(ce),G=0;G1&&arguments[1]!==void 0?arguments[1]:2;Ie();var re=Object(F.a)(function(){X<=1?ge({isCanceled:function(){return re!==ce.current}}):Ke(ge,X-1)});ce.current=re}return _.useEffect(function(){return function(){Ie()}},[]),[Ke,Ie]},Rt=[Xe,ot,st,ze],Bt=!1,Xt=!0;function Ft(ce){return ce===st||ce===ze}var Qt=function(ce,Ie){var Ke=_.useState(qe),ge=Object(f.a)(Ke,2),X=ge[0],re=ge[1],G=pt(),_e=Object(f.a)(G,2),Ee=_e[0],Fe=_e[1];function je(){re(Xe)}return vt(function(){if(X!==qe&&X!==ze){var Je=Rt.indexOf(X),nt=Rt[Je+1],ut=Ie(X);ut===Bt?re(nt):Ee(function(dt){function _t(){if(dt.isCanceled())return;re(nt)}ut===!0?_t():Promise.resolve(ut).then(_t)})}},[ce,X]),_.useEffect(function(){return function(){Fe()}},[]),[je,X]},pn=function(ce){var Ie=Object(_.useRef)(),Ke=Object(_.useRef)(ce);Ke.current=ce;var ge=_.useCallback(function(G){Ke.current(G)},[]);function X(G){G&&(G.removeEventListener(Se,ge),G.removeEventListener(ye,ge))}function re(G){Ie.current&&Ie.current!==G&&X(Ie.current),G&&G!==Ie.current&&(G.addEventListener(Se,ge),G.addEventListener(ye,ge),Ie.current=G)}return _.useEffect(function(){return function(){X(Ie.current)}},[]),[re,X]};function Pn(ce,Ie,Ke,ge){var X=ge.motionEnter,re=X===void 0?!0:X,G=ge.motionAppear,_e=G===void 0?!0:G,Ee=ge.motionLeave,Fe=Ee===void 0?!0:Ee,je=ge.motionDeadline,Je=ge.motionLeaveImmediately,nt=ge.onAppearPrepare,ut=ge.onEnterPrepare,dt=ge.onLeavePrepare,_t=ge.onAppearStart,Nt=ge.onEnterStart,tn=ge.onLeaveStart,zt=ge.onAppearActive,ln=ge.onEnterActive,on=ge.onLeaveActive,nn=ge.onAppearEnd,Jt=ge.onEnterEnd,Cn=ge.onLeaveEnd,un=ge.onVisibleChanged,$n=it(),Mn=Object(f.a)($n,2),It=Mn[0],kt=Mn[1],mn=it(Ye),vn=Object(f.a)(mn,2),Tt=vn[0],xn=vn[1],Gn=it(null),Sn=Object(f.a)(Gn,2),jn=Sn[0],aa=Sn[1],Oa=Object(_.useRef)(!1),Ha=Object(_.useRef)(null),ca=Object(_.useRef)(!1),Wa=Object(_.useRef)(null);function hr(){var Lt=Ke();return Lt||Wa.current}var me=Object(_.useRef)(!1);function Ze(Lt){var wt=hr();if(Lt&&!Lt.deadline&&Lt.target!==wt)return;var Ut;Tt===Te&&me.current?Ut=nn==null?void 0:nn(wt,Lt):Tt===$&&me.current?Ut=Jt==null?void 0:Jt(wt,Lt):Tt===pe&&me.current&&(Ut=Cn==null?void 0:Cn(wt,Lt)),Ut!==!1&&!ca.current&&(xn(Ye),aa(null))}var mt=pn(Ze),ht=Object(f.a)(mt,1),Ct=ht[0],xt=_.useMemo(function(){var Lt,wt,Ut;switch(Tt){case"appear":return Lt={},Object(S.a)(Lt,Xe,nt),Object(S.a)(Lt,ot,_t),Object(S.a)(Lt,st,zt),Lt;case"enter":return wt={},Object(S.a)(wt,Xe,ut),Object(S.a)(wt,ot,Nt),Object(S.a)(wt,st,ln),wt;case"leave":return Ut={},Object(S.a)(Ut,Xe,dt),Object(S.a)(Ut,ot,tn),Object(S.a)(Ut,st,on),Ut;default:return{}}},[Tt]),Vt=Qt(Tt,function(Lt){if(Lt===Xe){var wt=xt[Xe];return wt?wt(hr()):Bt}if(gt in xt){var Ut;aa(((Ut=xt[gt])===null||Ut===void 0?void 0:Ut.call(xt,hr(),null))||null)}return gt===st&&(Ct(hr()),je>0&&(clearTimeout(Ha.current),Ha.current=setTimeout(function(){Ze({deadline:!0})},je))),Xt}),St=Object(f.a)(Vt,2),hn=St[0],gt=St[1],ft=Ft(gt);me.current=ft,vt(function(){kt(Ie);var Lt=Oa.current;if(Oa.current=!0,!ce)return;var wt;!Lt&&Ie&&_e&&(wt=Te),Lt&&Ie&&re&&(wt=$),(Lt&&!Ie&&Fe||!Lt&&Je&&!Ie&&Fe)&&(wt=pe),wt&&(xn(wt),hn())},[Ie]),Object(_.useEffect)(function(){(Tt===Te&&!_e||Tt===$&&!re||Tt===pe&&!Fe)&&xn(Ye)},[_e,re,Fe]),Object(_.useEffect)(function(){return function(){clearTimeout(Ha.current),ca.current=!0}},[]),Object(_.useEffect)(function(){It!==void 0&&Tt===Ye&&(un==null||un(It))},[It,Tt]);var Ht=jn;return xt[Xe]&>===ot&&(Ht=Object(m.a)({transition:"none"},Ht)),[Tt,gt,Ht,It!=null?It:Ie]}var na=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){return Object(A.a)(this,Ke),Ie.apply(this,arguments)}return Object(E.a)(Ke,[{key:"render",value:function(){return this.props.children}}]),Ke}(_.Component),Ot=na;function dn(ce){var Ie=ce;Object(Y.a)(ce)==="object"&&(Ie=ce.transitionSupport);function Ke(X){return!!(X.motionName&&Ie)}var ge=_.forwardRef(function(X,re){var G=X.visible,_e=G===void 0?!0:G,Ee=X.removeOnLeave,Fe=Ee===void 0?!0:Ee,je=X.forceRender,Je=X.children,nt=X.motionName,ut=X.leavedClassName,dt=X.eventProps,_t=Ke(X),Nt=Object(_.useRef)(),tn=Object(_.useRef)();function zt(){try{return Object(tt.a)(Nt.current||tn.current)}catch(xn){return null}}var ln=Pn(_t,_e,zt,X),on=Object(f.a)(ln,4),nn=on[0],Jt=on[1],Cn=on[2],un=on[3],$n=_.useRef(un);un&&($n.current=!0);var Mn=Object(_.useRef)(re);Mn.current=re;var It=_.useCallback(function(xn){Nt.current=xn,Object(he.b)(Mn.current,xn)},[]),kt,mn=Object(m.a)(Object(m.a)({},dt),{},{visible:_e});if(!Je)kt=null;else if(nn===Ye||!Ke(X))un?kt=Je(Object(m.a)({},mn),It):!Fe&&$n.current?kt=Je(Object(m.a)(Object(m.a)({},mn),{},{className:ut}),It):je?kt=Je(Object(m.a)(Object(m.a)({},mn),{},{style:{display:"none"}}),It):kt=null;else{var vn,Tt;Jt===Xe?Tt="prepare":Ft(Jt)?Tt="active":Jt===ot&&(Tt="start"),kt=Je(Object(m.a)(Object(m.a)({},mn),{},{className:p()(Ge(nt,nn),(vn={},Object(S.a)(vn,Ge(nt,"".concat(nn,"-").concat(Tt)),Tt),Object(S.a)(vn,nt,typeof nt=="string"),vn)),style:Cn}),It)}return _.createElement(Ot,{ref:tn},kt)});return ge.displayName="CSSMotion",ge}var Rn=dn(q),Yn="add",On="keep",Wn="remove",jt="removed";function qn(ce){var Ie;return ce&&Object(Y.a)(ce)==="object"&&"key"in ce?Ie=ce:Ie={key:ce},Object(m.a)(Object(m.a)({},Ie),{},{key:String(Ie.key)})}function wa(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ce.map(qn)}function zn(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ke=[],ge=0,X=Ie.length,re=wa(ce),G=wa(Ie);re.forEach(function(Fe){for(var je=!1,Je=ge;Je1});return Ee.forEach(function(Fe){Ke=Ke.filter(function(je){var Je=je.key,nt=je.status;return Je!==Fe||nt!==Wn}),Ke.forEach(function(je){je.key===Fe&&(je.status=On)})}),Ke}var Jn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ua(ce){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn,Ke=function(ge){Object(v.a)(re,ge);var X=Object(O.a)(re);function re(){var G;return Object(A.a)(this,re),G=X.apply(this,arguments),G.state={keyEntities:[]},G.removeKey=function(_e){G.setState(function(Ee){var Fe=Ee.keyEntities;return{keyEntities:Fe.map(function(je){return je.key!==_e?je:Object(m.a)(Object(m.a)({},je),{},{status:jt})})}})},G}return Object(E.a)(re,[{key:"render",value:function(){var _e=this,Ee=this.state.keyEntities,Fe=this.props,je=Fe.component,Je=Fe.children,nt=Fe.onVisibleChanged,ut=Object(L.a)(Fe,["component","children","onVisibleChanged"]),dt=je||_.Fragment,_t={};return Jn.forEach(function(Nt){_t[Nt]=ut[Nt],delete ut[Nt]}),delete ut.keys,_.createElement(dt,ut,Ee.map(function(Nt){var tn=Nt.status,zt=Object(L.a)(Nt,["status"]),ln=tn===Yn||tn===On;return _.createElement(Ie,Object(T.a)({},_t,{key:zt.key,visible:ln,eventProps:zt,onVisibleChanged:function(nn){nt==null||nt(nn,{key:zt.key}),nn||_e.removeKey(zt.key)}}),Je)}))}}],[{key:"getDerivedStateFromProps",value:function(_e,Ee){var Fe=_e.keys,je=Ee.keyEntities,Je=wa(Fe),nt=zn(je,Je);return{keyEntities:nt.filter(function(ut){var dt=je.find(function(_t){var Nt=_t.key;return ut.key===Nt});return!(dt&&dt.status===jt&&ut.status===Wn)})}}}]),re}(_.Component);return Ke.defaultProps={component:"div"},Ke}var Tn=ua(q),ga=Rn;function ka(ce){var Ie=ce.prefixCls,Ke=ce.motion,ge=ce.animation,X=ce.transitionName;return Ke||(ge?{motionName:"".concat(Ie,"-").concat(ge)}:X?{motionName:X}:null)}function cr(ce){var Ie=ce.prefixCls,Ke=ce.visible,ge=ce.zIndex,X=ce.mask,re=ce.maskMotion,G=ce.maskAnimation,_e=ce.maskTransitionName;if(!X)return null;var Ee={};return(re||_e||G)&&(Ee=Object(m.a)({motionAppear:!0},ka({motion:re,prefixCls:Ie,transitionName:_e,animation:G}))),_.createElement(ga,Object(T.a)({},Ee,{visible:Ke,removeOnLeave:!0}),function(Fe){var je=Fe.className;return _.createElement("div",{style:{zIndex:ge},className:p()("".concat(Ie,"-mask"),je)})})}var qa=h("9mu1"),Va=h("o0o1"),dr=h.n(Va),Ga=h("HaE+"),Sr=["measure","align",null,"motion"],Nn=function(ce,Ie){var Ke=Object(_.useState)(null),ge=Object(f.a)(Ke,2),X=ge[0],re=ge[1],G=Object(_.useRef)(),_e=Object(_.useRef)(!1);function Ee(Je){_e.current||re(Je)}function Fe(){F.a.cancel(G.current)}function je(Je){Fe(),G.current=Object(F.a)(function(){Ee(function(nt){switch(X){case"align":return"motion";case"motion":return"stable";default:}return nt}),Je==null||Je()})}return Object(_.useEffect)(function(){Ee("measure")},[ce]),Object(_.useEffect)(function(){switch(X){case"measure":Ie();break;default:}X&&(G.current=Object(F.a)(Object(Ga.a)(dr.a.mark(function Je(){var nt,ut;return dr.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:nt=Sr.indexOf(X),ut=Sr[nt+1],ut&&nt!==-1&&Ee(ut);case 3:case"end":return _t.stop()}},Je)}))))},[X]),Object(_.useEffect)(function(){return function(){_e.current=!0,Fe()}},[]),[X,je]},Gr=function(ce){var Ie=_.useState({width:0,height:0}),Ke=Object(f.a)(Ie,2),ge=Ke[0],X=Ke[1];function re(_e){X({width:_e.offsetWidth,height:_e.offsetHeight})}var G=_.useMemo(function(){var _e={};if(ce){var Ee=ge.width,Fe=ge.height;ce.indexOf("height")!==-1&&Fe?_e.height=Fe:ce.indexOf("minHeight")!==-1&&Fe&&(_e.minHeight=Fe),ce.indexOf("width")!==-1&&Ee?_e.width=Ee:ce.indexOf("minWidth")!==-1&&Ee&&(_e.minWidth=Ee)}return _e},[ce,ge]);return[G,re]},Qr=_.forwardRef(function(ce,Ie){var Ke=ce.visible,ge=ce.prefixCls,X=ce.className,re=ce.style,G=ce.children,_e=ce.zIndex,Ee=ce.stretch,Fe=ce.destroyPopupOnHide,je=ce.forceRender,Je=ce.align,nt=ce.point,ut=ce.getRootDomNode,dt=ce.getClassNameFromAlign,_t=ce.onAlign,Nt=ce.onMouseEnter,tn=ce.onMouseLeave,zt=ce.onMouseDown,ln=ce.onTouchStart,on=Object(_.useRef)(),nn=Object(_.useRef)(),Jt=Object(_.useState)(),Cn=Object(f.a)(Jt,2),un=Cn[0],$n=Cn[1],Mn=Gr(Ee),It=Object(f.a)(Mn,2),kt=It[0],mn=It[1];function vn(){Ee&&mn(ut())}var Tt=Nn(Ke,vn),xn=Object(f.a)(Tt,2),Gn=xn[0],Sn=xn[1],jn=Object(_.useRef)();function aa(){return nt||ut}function Oa(){var mt;(mt=on.current)===null||mt===void 0||mt.forceAlign()}function Ha(mt,ht){var Ct=dt(ht);un!==Ct&&$n(Ct),Gn==="align"&&(un!==Ct?Promise.resolve().then(function(){Oa()}):Sn(function(){var xt;(xt=jn.current)===null||xt===void 0||xt.call(jn)}),_t==null||_t(mt,ht))}var ca=Object(m.a)({},ka(ce));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(mt){var ht=ca[mt];ca[mt]=function(Ct,xt){return Sn(),ht==null?void 0:ht(Ct,xt)}});function Wa(){return new Promise(function(mt){jn.current=mt})}_.useEffect(function(){!ca.motionName&&Gn==="motion"&&Sn()},[ca.motionName,Gn]),_.useImperativeHandle(Ie,function(){return{forceAlign:Oa,getElement:function(){return nn.current}}});var hr=Object(m.a)(Object(m.a)({},kt),{},{zIndex:_e,opacity:Gn==="motion"||Gn==="stable"||!Ke?void 0:0,pointerEvents:Gn==="stable"?void 0:"none"},re),me=!0;(Je==null?void 0:Je.points)&&(Gn==="align"||Gn==="stable")&&(me=!1);var Ze=G;return _.Children.count(G)>1&&(Ze=_.createElement("div",{className:"".concat(ge,"-content")},G)),_.createElement(ga,Object(T.a)({visible:Ke,ref:nn,leavedClassName:"".concat(ge,"-hidden")},ca,{onAppearPrepare:Wa,onEnterPrepare:Wa,removeOnLeave:Fe,forceRender:je}),function(mt,ht){var Ct=mt.className,xt=mt.style,Vt=p()(ge,X,un,Ct);return _.createElement(qa.a,{target:aa(),key:"popup",ref:on,monitorWindowResize:!0,disabled:me,align:Je,onAlign:Ha},_.createElement("div",{ref:ht,className:Vt,onMouseEnter:Nt,onMouseLeave:tn,onMouseDownCapture:zt,onTouchStartCapture:ln,style:Object(m.a)(Object(m.a)({},xt),hr)},Ze))})});Qr.displayName="PopupInner";var yo=Qr,Qa=_.forwardRef(function(ce,Ie){var Ke=ce.prefixCls,ge=ce.visible,X=ce.zIndex,re=ce.children,G=ce.mobile;G=G===void 0?{}:G;var _e=G.popupClassName,Ee=G.popupStyle,Fe=G.popupMotion,je=Fe===void 0?{}:Fe,Je=G.popupRender,nt=_.useRef();_.useImperativeHandle(Ie,function(){return{forceAlign:function(){},getElement:function(){return nt.current}}});var ut=Object(m.a)({zIndex:X},Ee),dt=re;return _.Children.count(re)>1&&(dt=_.createElement("div",{className:"".concat(Ke,"-content")},re)),Je&&(dt=Je(dt)),_.createElement(ga,Object(T.a)({visible:ge,ref:nt,removeOnLeave:!0},je),function(_t,Nt){var tn=_t.className,zt=_t.style,ln=p()(Ke,_e,tn);return _.createElement("div",{ref:Nt,className:ln,style:Object(m.a)(Object(m.a)({},zt),ut)},dt)})});Qa.displayName="MobilePopupInner";var Nr=Qa,ro=["visible","mobile"],oo=_.forwardRef(function(ce,Ie){var Ke=ce.visible,ge=ce.mobile,X=Object(L.a)(ce,ro),re=Object(_.useState)(Ke),G=Object(f.a)(re,2),_e=G[0],Ee=G[1],Fe=Object(_.useState)(!1),je=Object(f.a)(Fe,2),Je=je[0],nt=je[1],ut=Object(m.a)(Object(m.a)({},X),{},{visible:_e});Object(_.useEffect)(function(){Ee(Ke),Ke&&ge&&nt(ke())},[Ke,ge]);var dt=Je?_.createElement(Nr,Object(T.a)({},ut,{mobile:ge,ref:Ie})):_.createElement(yo,Object(T.a)({},ut,{ref:Ie}));return _.createElement("div",null,_.createElement(cr,ut),dt)});oo.displayName="Popup";var Eo=oo,io=_.createContext(null),jr=io;function Ur(){}function Co(){return""}function xo(ce){return ce?ce.ownerDocument:window.document}var so=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Do(ce){var Ie=function(Ke){Object(v.a)(X,Ke);var ge=Object(O.a)(X);function X(re){var G;Object(A.a)(this,X),G=ge.call(this,re),G.popupRef=_.createRef(),G.triggerRef=_.createRef(),G.attachId=void 0,G.clickOutsideHandler=void 0,G.touchOutsideHandler=void 0,G.contextMenuOutsideHandler1=void 0,G.contextMenuOutsideHandler2=void 0,G.mouseDownTimeout=void 0,G.focusTime=void 0,G.preClickTime=void 0,G.preTouchTime=void 0,G.delayTimer=void 0,G.hasPopupMouseDown=void 0,G.onMouseEnter=function(Ee){var Fe=G.props.mouseEnterDelay;G.fireEvents("onMouseEnter",Ee),G.delaySetPopupVisible(!0,Fe,Fe?null:Ee)},G.onMouseMove=function(Ee){G.fireEvents("onMouseMove",Ee),G.setPoint(Ee)},G.onMouseLeave=function(Ee){G.fireEvents("onMouseLeave",Ee),G.delaySetPopupVisible(!1,G.props.mouseLeaveDelay)},G.onPopupMouseEnter=function(){G.clearDelayTimer()},G.onPopupMouseLeave=function(Ee){var Fe;if(Ee.relatedTarget&&!Ee.relatedTarget.setTimeout&&Object(Ae.a)((Fe=G.popupRef.current)===null||Fe===void 0?void 0:Fe.getElement(),Ee.relatedTarget))return;G.delaySetPopupVisible(!1,G.props.mouseLeaveDelay)},G.onFocus=function(Ee){G.fireEvents("onFocus",Ee),G.clearDelayTimer(),G.isFocusToShow()&&(G.focusTime=Date.now(),G.delaySetPopupVisible(!0,G.props.focusDelay))},G.onMouseDown=function(Ee){G.fireEvents("onMouseDown",Ee),G.preClickTime=Date.now()},G.onTouchStart=function(Ee){G.fireEvents("onTouchStart",Ee),G.preTouchTime=Date.now()},G.onBlur=function(Ee){G.fireEvents("onBlur",Ee),G.clearDelayTimer(),G.isBlurToHide()&&G.delaySetPopupVisible(!1,G.props.blurDelay)},G.onContextMenu=function(Ee){Ee.preventDefault(),G.fireEvents("onContextMenu",Ee),G.setPopupVisible(!0,Ee)},G.onContextMenuClose=function(){G.isContextMenuToShow()&&G.close()},G.onClick=function(Ee){if(G.fireEvents("onClick",Ee),G.focusTime){var Fe;if(G.preClickTime&&G.preTouchTime?Fe=Math.min(G.preClickTime,G.preTouchTime):G.preClickTime?Fe=G.preClickTime:G.preTouchTime&&(Fe=G.preTouchTime),Math.abs(Fe-G.focusTime)<20)return;G.focusTime=0}G.preClickTime=0,G.preTouchTime=0,G.isClickToShow()&&(G.isClickToHide()||G.isBlurToHide())&&Ee&&Ee.preventDefault&&Ee.preventDefault();var je=!G.state.popupVisible;(G.isClickToHide()&&!je||je&&G.isClickToShow())&&G.setPopupVisible(!G.state.popupVisible,Ee)},G.onPopupMouseDown=function(){if(G.hasPopupMouseDown=!0,clearTimeout(G.mouseDownTimeout),G.mouseDownTimeout=window.setTimeout(function(){G.hasPopupMouseDown=!1},0),G.context){var Ee;(Ee=G.context).onPopupMouseDown.apply(Ee,arguments)}},G.onDocumentClick=function(Ee){if(G.props.mask&&!G.props.maskClosable)return;var Fe=Ee.target,je=G.getRootDomNode(),Je=G.getPopupDomNode();(!Object(Ae.a)(je,Fe)||G.isContextMenuOnly())&&!Object(Ae.a)(Je,Fe)&&!G.hasPopupMouseDown&&G.close()},G.getRootDomNode=function(){var Ee=G.props.getTriggerDOMNode;if(Ee)return Ee(G.triggerRef.current);try{var Fe=Object(tt.a)(G.triggerRef.current);if(Fe)return Fe}catch(je){}return te.a.findDOMNode(Object(b.a)(G))},G.getPopupClassNameFromAlign=function(Ee){var Fe=[],je=G.props,Je=je.popupPlacement,nt=je.builtinPlacements,ut=je.prefixCls,dt=je.alignPoint,_t=je.getPopupClassNameFromAlign;return Je&&nt&&Fe.push(xe(nt,ut,Ee,dt)),_t&&Fe.push(_t(Ee)),Fe.join(" ")},G.getComponent=function(){var Ee=G.props,Fe=Ee.prefixCls,je=Ee.destroyPopupOnHide,Je=Ee.popupClassName,nt=Ee.onPopupAlign,ut=Ee.popupMotion,dt=Ee.popupAnimation,_t=Ee.popupTransitionName,Nt=Ee.popupStyle,tn=Ee.mask,zt=Ee.maskAnimation,ln=Ee.maskTransitionName,on=Ee.maskMotion,nn=Ee.zIndex,Jt=Ee.popup,Cn=Ee.stretch,un=Ee.alignPoint,$n=Ee.mobile,Mn=Ee.forceRender,It=G.state,kt=It.popupVisible,mn=It.point,vn=G.getPopupAlign(),Tt={};return G.isMouseEnterToShow()&&(Tt.onMouseEnter=G.onPopupMouseEnter),G.isMouseLeaveToHide()&&(Tt.onMouseLeave=G.onPopupMouseLeave),Tt.onMouseDown=G.onPopupMouseDown,Tt.onTouchStart=G.onPopupMouseDown,_.createElement(Eo,Object(T.a)({prefixCls:Fe,destroyPopupOnHide:je,visible:kt,point:un&&mn,className:Je,align:vn,onAlign:nt,animation:dt,getClassNameFromAlign:G.getPopupClassNameFromAlign},Tt,{stretch:Cn,getRootDomNode:G.getRootDomNode,style:Nt,mask:tn,zIndex:nn,transitionName:_t,maskAnimation:zt,maskTransitionName:ln,maskMotion:on,ref:G.popupRef,motion:ut,mobile:$n,forceRender:Mn}),typeof Jt=="function"?Jt():Jt)},G.attachParent=function(Ee){F.a.cancel(G.attachId);var Fe=G.props,je=Fe.getPopupContainer,Je=Fe.getDocument,nt=G.getRootDomNode(),ut;je?(nt||je.length===0)&&(ut=je(nt)):ut=Je(G.getRootDomNode()).body,ut?ut.appendChild(Ee):G.attachId=Object(F.a)(function(){G.attachParent(Ee)})},G.getContainer=function(){var Ee=G.props.getDocument,Fe=Ee(G.getRootDomNode()).createElement("div");return Fe.style.position="absolute",Fe.style.top="0",Fe.style.left="0",Fe.style.width="100%",G.attachParent(Fe),Fe},G.setPoint=function(Ee){var Fe=G.props.alignPoint;if(!Fe||!Ee)return;G.setState({point:{pageX:Ee.pageX,pageY:Ee.pageY}})},G.handlePortalUpdate=function(){G.state.prevPopupVisible!==G.state.popupVisible&&G.props.afterPopupVisibleChange(G.state.popupVisible)},G.triggerContextValue={onPopupMouseDown:G.onPopupMouseDown};var _e;return"popupVisible"in re?_e=!!re.popupVisible:_e=!!re.defaultPopupVisible,G.state={prevPopupVisible:_e,popupVisible:_e},so.forEach(function(Ee){G["fire".concat(Ee)]=function(Fe){G.fireEvents(Ee,Fe)}}),G}return Object(E.a)(X,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var G=this.props,_e=this.state;if(_e.popupVisible){var Ee;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ee=G.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(We.a)(Ee,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ee=Ee||G.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(We.a)(Ee,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ee=Ee||G.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(We.a)(Ee,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(We.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),F.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var G;return((G=this.popupRef.current)===null||G===void 0?void 0:G.getElement())||null}},{key:"getPopupAlign",value:function(){var G=this.props,_e=G.popupPlacement,Ee=G.popupAlign,Fe=G.builtinPlacements;return _e&&Fe?Be(Fe,_e,Ee):Ee}},{key:"setPopupVisible",value:function(G,_e){var Ee=this.props.alignPoint,Fe=this.state.popupVisible;this.clearDelayTimer(),Fe!==G&&("popupVisible"in this.props||this.setState({popupVisible:G,prevPopupVisible:Fe}),this.props.onPopupVisibleChange(G)),Ee&&_e&&G&&this.setPoint(_e)}},{key:"delaySetPopupVisible",value:function(G,_e,Ee){var Fe=this,je=_e*1e3;if(this.clearDelayTimer(),je){var Je=Ee?{pageX:Ee.pageX,pageY:Ee.pageY}:null;this.delayTimer=window.setTimeout(function(){Fe.setPopupVisible(G,Je),Fe.clearDelayTimer()},je)}else this.setPopupVisible(G,Ee)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(G){var _e=this.props.children.props,Ee=this.props;return _e[G]&&Ee[G]?this["fire".concat(G)]:_e[G]||Ee[G]}},{key:"isClickToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("click")!==-1||Ee.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var G=this.props.action;return G==="contextMenu"||G.length===1&&G[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("contextMenu")!==-1||Ee.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var G=this.props,_e=G.action,Ee=G.hideAction;return _e.indexOf("click")!==-1||Ee.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("hover")!==-1||Ee.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var G=this.props,_e=G.action,Ee=G.hideAction;return _e.indexOf("hover")!==-1||Ee.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var G=this.props,_e=G.action,Ee=G.showAction;return _e.indexOf("focus")!==-1||Ee.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var G=this.props,_e=G.action,Ee=G.hideAction;return _e.indexOf("focus")!==-1||Ee.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var G;(G=this.popupRef.current)===null||G===void 0||G.forceAlign()}}},{key:"fireEvents",value:function(G,_e){var Ee=this.props.children.props[G];Ee&&Ee(_e);var Fe=this.props[G];Fe&&Fe(_e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var G=this.state.popupVisible,_e=this.props,Ee=_e.children,Fe=_e.forceRender,je=_e.alignPoint,Je=_e.className,nt=_e.autoDestroy,ut=_.Children.only(Ee),dt={key:"trigger"};this.isContextMenuToShow()?dt.onContextMenu=this.onContextMenu:dt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(dt.onClick=this.onClick,dt.onMouseDown=this.onMouseDown,dt.onTouchStart=this.onTouchStart):(dt.onClick=this.createTwoChains("onClick"),dt.onMouseDown=this.createTwoChains("onMouseDown"),dt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(dt.onMouseEnter=this.onMouseEnter,je&&(dt.onMouseMove=this.onMouseMove)):dt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?dt.onMouseLeave=this.onMouseLeave:dt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(dt.onFocus=this.onFocus,dt.onBlur=this.onBlur):(dt.onFocus=this.createTwoChains("onFocus"),dt.onBlur=this.createTwoChains("onBlur"));var _t=p()(ut&&ut.props&&ut.props.className,Je);_t&&(dt.className=_t);var Nt=Object(m.a)({},dt);Object(he.c)(ut)&&(Nt.ref=Object(he.a)(this.triggerRef,ut.ref));var tn=_.cloneElement(ut,Nt),zt;return(G||this.popupRef.current||Fe)&&(zt=_.createElement(ce,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!G&&nt&&(zt=null),_.createElement(jr.Provider,{value:this.triggerContextValue},tn,zt)}}],[{key:"getDerivedStateFromProps",value:function(G,_e){var Ee=G.popupVisible,Fe={};return Ee!==void 0&&_e.popupVisible!==Ee&&(Fe.popupVisible=Ee,Fe.prevPopupVisible=_e.popupVisible),Fe}}]),X}(_.Component);return Ie.contextType=jr,Ie.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Co,getDocument:xo,onPopupVisibleChange:Ur,afterPopupVisibleChange:Ur,onPopupAlign:Ur,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ie}var Lo=Do(rt.a),rr={adjustX:1,adjustY:1},Yr={topLeft:{points:["bl","tl"],overflow:rr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:rr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:rr,offset:[4,0]}},lo={topLeft:{points:["bl","tl"],overflow:rr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:rr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:rr,offset:[4,0]}},uo=Yr,Xa=0,$a={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},er=function(Ie,Ke,ge){var X=Qe(Ke),re=Ie.getState();Ie.setState({defaultActiveFirst:Object(m.a)(Object(m.a)({},re.defaultActiveFirst),{},Object(S.a)({},X,ge))})},Jr=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(ge){var X;Object(A.a)(this,Ke),X=Ie.call(this,ge),X.onDestroy=function(je){X.props.onDestroy(je)},X.onKeyDown=function(je){var Je=je.keyCode,nt=X.menuInstance,ut=X.props.store,dt=X.getVisible();if(Je===e.a.ENTER)return X.onTitleClick(je),er(ut,X.props.eventKey,!0),!0;if(Je===e.a.RIGHT)return dt?nt.onKeyDown(je):(X.triggerOpenChange(!0),er(ut,X.props.eventKey,!0)),!0;if(Je===e.a.LEFT){var _t;if(dt)_t=nt.onKeyDown(je);else return;return _t||(X.triggerOpenChange(!1),_t=!0),_t}return dt&&(Je===e.a.UP||Je===e.a.DOWN)?nt.onKeyDown(je):void 0},X.onOpenChange=function(je){X.props.onOpenChange(je)},X.onPopupVisibleChange=function(je){X.triggerOpenChange(je,je?"mouseenter":"mouseleave")},X.onMouseEnter=function(je){var Je=X.props,nt=Je.eventKey,ut=Je.onMouseEnter,dt=Je.store;er(dt,X.props.eventKey,!1),ut({key:nt,domEvent:je})},X.onMouseLeave=function(je){var Je=X.props,nt=Je.parentMenu,ut=Je.eventKey,dt=Je.onMouseLeave;nt.subMenuInstance=Object(b.a)(X),dt({key:ut,domEvent:je})},X.onTitleMouseEnter=function(je){var Je=X.props,nt=Je.eventKey,ut=Je.onItemHover,dt=Je.onTitleMouseEnter;ut({key:nt,hover:!0}),dt({key:nt,domEvent:je})},X.onTitleMouseLeave=function(je){var Je=X.props,nt=Je.parentMenu,ut=Je.eventKey,dt=Je.onItemHover,_t=Je.onTitleMouseLeave;nt.subMenuInstance=Object(b.a)(X),dt({key:ut,hover:!1}),_t({key:ut,domEvent:je})},X.onTitleClick=function(je){var Je=Object(b.a)(X),nt=Je.props;if(nt.onTitleClick({key:nt.eventKey,domEvent:je}),nt.triggerSubMenuAction==="hover")return;X.triggerOpenChange(!X.getVisible(),"click"),er(nt.store,X.props.eventKey,!1)},X.onSubMenuClick=function(je){typeof X.props.onClick=="function"&&X.props.onClick(X.addKeyPath(je))},X.onSelect=function(je){X.props.onSelect(je)},X.onDeselect=function(je){X.props.onDeselect(je)},X.getPrefixCls=function(){return"".concat(X.props.rootPrefixCls,"-submenu")},X.getActiveClassName=function(){return"".concat(X.getPrefixCls(),"-active")},X.getDisabledClassName=function(){return"".concat(X.getPrefixCls(),"-disabled")},X.getSelectedClassName=function(){return"".concat(X.getPrefixCls(),"-selected")},X.getOpenClassName=function(){return"".concat(X.props.rootPrefixCls,"-submenu-open")},X.getVisible=function(){return X.state.isOpen},X.getMode=function(){return X.state.mode},X.saveMenuInstance=function(je){X.menuInstance=je},X.addKeyPath=function(je){return Object(m.a)(Object(m.a)({},je),{},{keyPath:(je.keyPath||[]).concat(X.props.eventKey)})},X.triggerOpenChange=function(je,Je){var nt=X.props.eventKey,ut=function(){X.onOpenChange({key:nt,item:Object(b.a)(X),trigger:Je,open:je})};Je==="mouseenter"?X.mouseenterTimeout=setTimeout(function(){ut()},0):ut()},X.isChildrenSelected=function(){var je={find:!1};return et(X.props.children,X.props.selectedKeys,je),je.find},X.isInlineMode=function(){return X.getMode()==="inline"},X.adjustWidth=function(){if(!X.subMenuTitle||!X.menuInstance)return;var je=N.findDOMNode(X.menuInstance);if(je.offsetWidth>=X.subMenuTitle.offsetWidth)return;je.style.minWidth="".concat(X.subMenuTitle.offsetWidth,"px")},X.saveSubMenuTitle=function(je){X.subMenuTitle=je},X.getBaseProps=function(){var je=Object(b.a)(X),Je=je.props,nt=X.getMode();return{mode:nt==="horizontal"?"vertical":nt,visible:X.getVisible(),level:Je.level+1,inlineIndent:Je.inlineIndent,focusable:!1,onClick:X.onSubMenuClick,onSelect:X.onSelect,onDeselect:X.onDeselect,onDestroy:X.onDestroy,selectedKeys:Je.selectedKeys,eventKey:"".concat(Je.eventKey,"-menu-"),openKeys:Je.openKeys,motion:Je.motion,onOpenChange:X.onOpenChange,subMenuOpenDelay:Je.subMenuOpenDelay,parentMenu:Object(b.a)(X),subMenuCloseDelay:Je.subMenuCloseDelay,forceSubMenuRender:Je.forceSubMenuRender,triggerSubMenuAction:Je.triggerSubMenuAction,builtinPlacements:Je.builtinPlacements,defaultActiveFirst:Je.store.getState().defaultActiveFirst[Qe(Je.eventKey)],multiple:Je.multiple,prefixCls:Je.rootPrefixCls,id:X.internalMenuId,manualRef:X.saveMenuInstance,itemIcon:Je.itemIcon,expandIcon:Je.expandIcon,direction:Je.direction}},X.getMotion=function(je,Je){var nt=Object(b.a)(X),ut=nt.haveRendered,dt=X.props,_t=dt.motion,Nt=dt.rootPrefixCls,tn=Object(m.a)(Object(m.a)({},_t),{},{leavedClassName:"".concat(Nt,"-hidden"),removeOnLeave:!1,motionAppear:ut||!Je||je!=="inline"});return tn};var re=ge.store,G=ge.eventKey,_e=re.getState(),Ee=_e.defaultActiveFirst;X.isRootMenu=!1;var Fe=!1;return Ee&&(Fe=Ee[G]),er(re,G,Fe),X.state={mode:ge.mode,isOpen:ge.isOpen},X}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var X=this,re=this.props,G=re.mode,_e=re.parentMenu,Ee=re.manualRef,Fe=re.isOpen,je=function(){X.setState({mode:G,isOpen:Fe})},Je=Fe!==this.state.isOpen,nt=G!==this.state.mode;if((nt||Je)&&(F.a.cancel(this.updateStateRaf),nt?this.updateStateRaf=Object(F.a)(je):je()),Ee&&Ee(this),G!=="horizontal"||!(_e==null?void 0:_e.isRootMenu)||!Fe)return;this.minWidthTimeout=setTimeout(function(){return X.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var X=this.props,re=X.onDestroy,G=X.eventKey;re&&re(G),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),F.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(X,re){var G=this.getBaseProps();return _.createElement(Br,Object(T.a)({},G,{id:this.internalMenuId,className:X,style:re}),this.props.children)}},{key:"renderChildren",value:function(){var X=this,re=this.getBaseProps(),G=re.mode,_e=re.visible,Ee=re.forceSubMenuRender,Fe=re.direction,je=this.getMotion(G,_e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||_e||Ee,!this.haveOpened)return _.createElement("div",null);var Je=p()("".concat(re.prefixCls,"-sub"),Object(S.a)({},"".concat(re.prefixCls,"-rtl"),Fe==="rtl"));return this.isInlineMode()?_.createElement(ga,Object(T.a)({visible:re.visible,forceRender:Ee},je),function(nt){var ut=nt.className,dt=nt.style,_t=p()(Je,ut);return X.renderPopupMenu(_t,dt)}):this.renderPopupMenu(Je)}},{key:"render",value:function(){var X,re,G,_e=Object(m.a)({},this.props),Ee=this.getVisible(),Fe=this.getPrefixCls(),je=this.isInlineMode(),Je=this.getMode(),nt=p()(Fe,"".concat(Fe,"-").concat(Je),(X={},Object(S.a)(X,_e.className,!!_e.className),Object(S.a)(X,this.getOpenClassName(),Ee),Object(S.a)(X,this.getActiveClassName(),_e.active||Ee&&!je),Object(S.a)(X,this.getDisabledClassName(),_e.disabled),Object(S.a)(X,this.getSelectedClassName(),this.isChildrenSelected()),X));this.internalMenuId||(_e.eventKey?this.internalMenuId="".concat(_e.eventKey,"$Menu"):(Xa+=1,this.internalMenuId="$__$".concat(Xa,"$Menu")));var ut={},dt={},_t={};_e.disabled||(ut={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},dt={onClick:this.onTitleClick},_t={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Nt={},tn=_e.direction,zt=tn==="rtl";je&&(zt?Nt.paddingRight=_e.inlineIndent*_e.level:Nt.paddingLeft=_e.inlineIndent*_e.level);var ln={};this.getVisible()&&(ln={"aria-owns":this.internalMenuId});var on=null;Je!=="horizontal"&&(on=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(on=_.createElement(this.props.expandIcon,Object(m.a)({},this.props))));var nn=_.createElement("div",Object(T.a)({ref:this.saveSubMenuTitle,style:Nt,className:"".concat(Fe,"-title"),role:"button"},_t,dt,{"aria-expanded":Ee},ln,{"aria-haspopup":"true",title:typeof _e.title=="string"?_e.title:void 0}),_e.title,on||_.createElement("i",{className:"".concat(Fe,"-arrow")})),Jt=this.renderChildren(),Cn=((re=_e.parentMenu)===null||re===void 0?void 0:re.isRootMenu)?_e.parentMenu.props.getPopupContainer:function(aa){return aa.parentNode},un=$a[Je],$n=_e.popupOffset?{offset:_e.popupOffset}:{},Mn=p()((G={},Object(S.a)(G,_e.popupClassName,_e.popupClassName&&!je),Object(S.a)(G,"".concat(Fe,"-rtl"),zt),G)),It=_e.disabled,kt=_e.triggerSubMenuAction,mn=_e.subMenuOpenDelay,vn=_e.forceSubMenuRender,Tt=_e.subMenuCloseDelay,xn=_e.builtinPlacements;Ve.forEach(function(aa){return delete _e[aa]}),delete _e.onClick;var Gn=zt?Object(m.a)(Object(m.a)({},lo),xn):Object(m.a)(Object(m.a)({},Yr),xn);delete _e.direction;var Sn=this.getBaseProps(),jn=je?null:this.getMotion(Sn.mode,Sn.visible);return _.createElement("li",Object(T.a)({},_e,ut,{className:nt,role:"menuitem"}),_.createElement(Lo,{prefixCls:Fe,popupClassName:p()("".concat(Fe,"-popup"),Mn),getPopupContainer:Cn,builtinPlacements:Gn,popupPlacement:un,popupVisible:je?!1:Ee,popupAlign:$n,popup:je?null:Jt,action:It||je?[]:[kt],mouseEnterDelay:mn,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:vn,popupMotion:jn},nn),je?Jt:null)}}]),Ke}(_.Component);Jr.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Ar=Object(D.b)(function(ce,Ie){var Ke=ce.openKeys,ge=ce.activeKey,X=ce.selectedKeys,re=Ie.eventKey,G=Ie.subMenuKey;return{isOpen:Ke.indexOf(re)>-1,active:ge[G]===re,selectedKeys:X}})(Jr);Ar.isSubMenu=!0;var Dr=Ar,Zr="menuitem-overflowed",ko=.5,co=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){var ge;return Object(A.a)(this,Ke),ge=Ie.apply(this,arguments),ge.resizeObserver=null,ge.mutationObserver=null,ge.originalTotalWidth=0,ge.overflowedItems=[],ge.menuItemSizes=[],ge.cancelFrameId=null,ge.state={lastVisibleIndex:void 0},ge.childRef=_.createRef(),ge.getMenuItemNodes=function(){var X=ge.props.prefixCls,re=ge.childRef.current;return re?[].slice.call(re.children).filter(function(G){return G.className.split(" ").indexOf("".concat(X,"-overflowed-submenu"))<0}):[]},ge.getOverflowedSubMenuItem=function(X,re,G){var _e=ge.props,Ee=_e.overflowedIndicator,Fe=_e.level,je=_e.mode,Je=_e.prefixCls,nt=_e.theme;if(Fe!==1||je!=="horizontal")return null;var ut=ge.props.children[0],dt=ut.props,_t=dt.children,Nt=dt.title,tn=dt.style,zt=Object(L.a)(dt,["children","title","style"]),ln=Object(m.a)({},tn),on="".concat(X,"-overflowed-indicator"),nn="".concat(X,"-overflowed-indicator");re.length===0&&G!==!0?ln=Object(m.a)(Object(m.a)({},ln),{},{display:"none"}):G&&(ln=Object(m.a)(Object(m.a)({},ln),{},{visibility:"hidden",position:"absolute"}),on="".concat(on,"-placeholder"),nn="".concat(nn,"-placeholder"));var Jt=nt?"".concat(Je,"-").concat(nt):"",Cn={};return Ve.forEach(function(un){zt[un]!==void 0&&(Cn[un]=zt[un])}),_.createElement(Dr,Object(T.a)({title:Ee,className:"".concat(Je,"-overflowed-submenu"),popupClassName:Jt},Cn,{key:on,eventKey:nn,disabled:!1,style:ln}),re)},ge.setChildrenWidthAndResize=function(){if(ge.props.mode!=="horizontal")return;var X=ge.childRef.current;if(!X)return;var re=X.children;if(!re||re.length===0)return;var G=X.children[re.length-1];Oe(G,"display","inline-block");var _e=ge.getMenuItemNodes(),Ee=_e.filter(function(Fe){return Fe.className.split(" ").indexOf(Zr)>=0});Ee.forEach(function(Fe){Oe(Fe,"display","inline-block")}),ge.menuItemSizes=_e.map(function(Fe){return Le(Fe,!0)}),Ee.forEach(function(Fe){Oe(Fe,"display","none")}),ge.overflowedIndicatorWidth=Le(X.children[X.children.length-1],!0),ge.originalTotalWidth=ge.menuItemSizes.reduce(function(Fe,je){return Fe+je},0),ge.handleResize(),Oe(G,"display","none")},ge.handleResize=function(){if(ge.props.mode!=="horizontal")return;var X=ge.childRef.current;if(!X)return;var re=Le(X);ge.overflowedItems=[];var G=0,_e;ge.originalTotalWidth>re+ko&&(_e=-1,ge.menuItemSizes.forEach(function(Ee){G+=Ee,G+ge.overflowedIndicatorWidth<=re&&(_e+=1)})),ge.setState({lastVisibleIndex:_e})},ge}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){var X=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var re=this.childRef.current;if(!re)return;this.resizeObserver=new ue.default(function(G){G.forEach(function(){var _e=X.cancelFrameId;cancelAnimationFrame(_e),X.cancelFrameId=requestAnimationFrame(X.setChildrenWidthAndResize)})}),[].slice.call(re.children).concat(re).forEach(function(G){X.resizeObserver.observe(G)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){X.resizeObserver.disconnect(),[].slice.call(re.children).concat(re).forEach(function(G){X.resizeObserver.observe(G)}),X.setChildrenWidthAndResize()}),this.mutationObserver.observe(re,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(X){var re=this,G=this.state.lastVisibleIndex;return(X||[]).reduce(function(_e,Ee,Fe){var je=Ee;if(re.props.mode==="horizontal"){var Je=re.getOverflowedSubMenuItem(Ee.props.eventKey,[]);G!==void 0&&re.props.className.indexOf("".concat(re.props.prefixCls,"-root"))!==-1&&(Fe>G&&(je=_.cloneElement(Ee,{style:{display:"none"},eventKey:"".concat(Ee.props.eventKey,"-hidden"),className:"".concat(Zr)})),Fe===G+1&&(re.overflowedItems=X.slice(G+1).map(function(ut){return _.cloneElement(ut,{key:ut.props.eventKey,mode:"vertical-left"})}),Je=re.getOverflowedSubMenuItem(Ee.props.eventKey,re.overflowedItems)));var nt=[].concat(Object(o.a)(_e),[Je,je]);return Fe===X.length-1&&nt.push(re.getOverflowedSubMenuItem(Ee.props.eventKey,[],!0)),nt}return[].concat(Object(o.a)(_e),[je])},[])}},{key:"render",value:function(){var X=this.props,re=X.visible,G=X.prefixCls,_e=X.overflowedIndicator,Ee=X.mode,Fe=X.level,je=X.tag,Je=X.children,nt=X.theme,ut=Object(L.a)(X,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),dt=je;return _.createElement(dt,Object(T.a)({ref:this.childRef},ut),this.renderChildren(Je))}}]),Ke}(_.Component);co.defaultProps={tag:"div",className:""};var Lr=co;function Kr(ce){return ce.length?ce.every(function(Ie){return!!Ie.props.disabled}):!0}function Vn(ce,Ie,Ke){var ge=ce.getState();ce.setState({activeKey:Object(m.a)(Object(m.a)({},ge.activeKey),{},Object(S.a)({},Ie,Ke))})}function fr(ce){return ce.eventKey||"0-menu-"}function Fr(ce,Ie){var Ke=Ie,ge=ce.children,X=ce.eventKey;if(Ke){var re;if($e(ge,function(G,_e){G&&G.props&&!G.props.disabled&&Ke===Pe(G,X,_e)&&(re=!0)}),re)return Ke}return Ke=null,ce.defaultActiveFirst&&$e(ge,function(G,_e){!Ke&&G&&!G.props.disabled&&(Ke=Pe(G,X,_e))}),Ke}function fo(ce){if(!ce)return;var Ie=this.instanceArray.indexOf(ce);Ie!==-1?this.instanceArray[Ie]=ce:this.instanceArray.push(ce)}var ho=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(ge){var X;return Object(A.a)(this,Ke),X=Ie.call(this,ge),X.onKeyDown=function(re,G){var _e=re.keyCode,Ee;if(X.getFlatInstanceArray().forEach(function(je){je&&je.props.active&&je.onKeyDown&&(Ee=je.onKeyDown(re))}),Ee)return 1;var Fe=null;return(_e===e.a.UP||_e===e.a.DOWN)&&(Fe=X.step(_e===e.a.UP?-1:1)),Fe?(re.preventDefault(),Vn(X.props.store,fr(X.props),Fe.props.eventKey),typeof G=="function"&&G(Fe),1):void 0},X.onItemHover=function(re){var G=re.key,_e=re.hover;Vn(X.props.store,fr(X.props),_e?G:null)},X.onDeselect=function(re){X.props.onDeselect(re)},X.onSelect=function(re){X.props.onSelect(re)},X.onClick=function(re){X.props.onClick(re)},X.onOpenChange=function(re){X.props.onOpenChange(re)},X.onDestroy=function(re){X.props.onDestroy(re)},X.getFlatInstanceArray=function(){return X.instanceArray},X.step=function(re){var G=X.getFlatInstanceArray(),_e=X.props.store.getState().activeKey[fr(X.props)],Ee=G.length;if(!Ee)return null;re<0&&(G=G.concat().reverse());var Fe=-1;if(G.every(function(ut,dt){return ut&&ut.props.eventKey===_e?(Fe=dt,!1):!0}),!X.props.defaultActiveFirst&&Fe!==-1&&Kr(G.slice(Fe,Ee-1)))return;var je=(Fe+1)%Ee,Je=je;do{var nt=G[Je];if(!nt||nt.props.disabled)Je=(Je+1)%Ee;else return nt}while(Je!==je);return null},X.renderCommonMenuItem=function(re,G,_e){var Ee=X.props.store.getState(),Fe=Object(b.a)(X),je=Fe.props,Je=Pe(re,je.eventKey,G),nt=re.props;if(!nt||typeof re.type=="string")return re;var ut=Je===Ee.activeKey,dt=Object(m.a)(Object(m.a)({mode:nt.mode||je.mode,level:je.level,inlineIndent:je.inlineIndent,renderMenuItem:X.renderMenuItem,rootPrefixCls:je.prefixCls,index:G,parentMenu:je.parentMenu,manualRef:nt.disabled?void 0:Object(Q.a)(re.ref,fo.bind(Object(b.a)(X))),eventKey:Je,active:!nt.disabled&&ut,multiple:je.multiple,onClick:function(Nt){(nt.onClick||le)(Nt),X.onClick(Nt)},onItemHover:X.onItemHover,motion:je.motion,subMenuOpenDelay:je.subMenuOpenDelay,subMenuCloseDelay:je.subMenuCloseDelay,forceSubMenuRender:je.forceSubMenuRender,onOpenChange:X.onOpenChange,onDeselect:X.onDeselect,onSelect:X.onSelect,builtinPlacements:je.builtinPlacements,itemIcon:nt.itemIcon||X.props.itemIcon,expandIcon:nt.expandIcon||X.props.expandIcon},_e),{},{direction:je.direction});return(je.mode==="inline"||Ce())&&(dt.triggerSubMenuAction="click"),_.cloneElement(re,Object(m.a)(Object(m.a)({},dt),{},{key:Je||G}))},X.renderMenuItem=function(re,G,_e){if(!re)return null;var Ee=X.props.store.getState(),Fe={openKeys:Ee.openKeys,selectedKeys:Ee.selectedKeys,triggerSubMenuAction:X.props.triggerSubMenuAction,subMenuKey:_e};return X.renderCommonMenuItem(re,G,Fe)},ge.store.setState({activeKey:Object(m.a)(Object(m.a)({},ge.store.getState().activeKey),{},Object(S.a)({},ge.eventKey,Fr(ge,ge.activeKey)))}),X.instanceArray=[],X}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(X){return this.props.visible||X.visible||this.props.className!==X.className||!Z()(this.props.style,X.style)}},{key:"componentDidUpdate",value:function(X){var re=this.props,G="activeKey"in re?re.activeKey:re.store.getState().activeKey[fr(re)],_e=Fr(re,G);if(_e!==G)Vn(re.store,fr(re),_e);else if("activeKey"in X){var Ee=Fr(X,X.activeKey);_e!==Ee&&Vn(re.store,fr(re),_e)}}},{key:"render",value:function(){var X=this,re=Object(T.a)({},this.props);this.instanceArray=[];var G=p()(re.prefixCls,re.className,"".concat(re.prefixCls,"-").concat(re.mode)),_e={className:G,role:re.role||"menu"};re.id&&(_e.id=re.id),re.focusable&&(_e.tabIndex=0,_e.onKeyDown=this.onKeyDown);var Ee=re.prefixCls,Fe=re.eventKey,je=re.visible,Je=re.level,nt=re.mode,ut=re.overflowedIndicator,dt=re.theme;return Ve.forEach(function(_t){return delete re[_t]}),delete re.onClick,_.createElement(Lr,Object(T.a)({},re,{prefixCls:Ee,mode:nt,tag:"ul",level:Je,theme:dt,visible:je,overflowedIndicator:ut},_e),Object(d.a)(re.children).map(function(_t,Nt){return X.renderMenuItem(_t,Nt,Fe||"0-menu-")}))}}]),Ke}(_.Component);ho.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var or=Object(D.b)()(ho),Br=or,wr=h("Kwbf");function tr(ce,Ie,Ke){var ge=ce.prefixCls,X=ce.motion,re=ce.defaultMotions,G=re===void 0?{}:re,_e=ce.openAnimation,Ee=ce.openTransitionName,Fe=Ie.switchingModeFromInline;if(X)return X;if(Object(Y.a)(_e)==="object"&&_e)Object(wr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof _e=="string")return{motionName:"".concat(ge,"-open-").concat(_e)};if(Ee)return{motionName:Ee};var je=G[Ke];return je||(Fe?null:G.other)}var po=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(ge){var X;Object(A.a)(this,Ke),X=Ie.call(this,ge),X.onSelect=function(_e){var Ee=Object(b.a)(X),Fe=Ee.props;if(Fe.selectable){var je=X.store.getState(),Je=je.selectedKeys,nt=_e.key;Fe.multiple?Je=Je.concat([nt]):Je=[nt],"selectedKeys"in Fe||X.store.setState({selectedKeys:Je}),Fe.onSelect(Object(m.a)(Object(m.a)({},_e),{},{selectedKeys:Je}))}},X.onClick=function(_e){var Ee=X.getRealMenuMode(),Fe=Object(b.a)(X),je=Fe.store,Je=Fe.props.onOpenChange;Ee!=="inline"&&!("openKeys"in X.props)&&(je.setState({openKeys:[]}),Je([])),X.props.onClick(_e)},X.onKeyDown=function(_e,Ee){X.innerMenu.getWrappedInstance().onKeyDown(_e,Ee)},X.onOpenChange=function(_e){var Ee=Object(b.a)(X),Fe=Ee.props,je=X.store.getState().openKeys.concat(),Je=!1,nt=function(dt){var _t=!1;if(dt.open)_t=je.indexOf(dt.key)===-1,_t&&je.push(dt.key);else{var Nt=je.indexOf(dt.key);_t=Nt!==-1,_t&&je.splice(Nt,1)}Je=Je||_t};Array.isArray(_e)?_e.forEach(nt):nt(_e),Je&&("openKeys"in X.props||X.store.setState({openKeys:je}),Fe.onOpenChange(je))},X.onDeselect=function(_e){var Ee=Object(b.a)(X),Fe=Ee.props;if(Fe.selectable){var je=X.store.getState().selectedKeys.concat(),Je=_e.key,nt=je.indexOf(Je);nt!==-1&&je.splice(nt,1),"selectedKeys"in Fe||X.store.setState({selectedKeys:je}),Fe.onDeselect(Object(m.a)(Object(m.a)({},_e),{},{selectedKeys:je}))}},X.onMouseEnter=function(_e){X.restoreModeVerticalFromInline();var Ee=X.props.onMouseEnter;Ee&&Ee(_e)},X.onTransitionEnd=function(_e){var Ee=_e.propertyName==="width"&&_e.target===_e.currentTarget,Fe=_e.target.className,je=Object.prototype.toString.call(Fe)==="[object SVGAnimatedString]"?Fe.animVal:Fe,Je=_e.propertyName==="font-size"&&je.indexOf("anticon")>=0;(Ee||Je)&&X.restoreModeVerticalFromInline()},X.setInnerMenu=function(_e){X.innerMenu=_e},X.isRootMenu=!0;var re=ge.defaultSelectedKeys,G=ge.defaultOpenKeys;return"selectedKeys"in ge&&(re=ge.selectedKeys||[]),"openKeys"in ge&&(G=ge.openKeys||[]),X.store=Object(D.c)({selectedKeys:re,openKeys:G,activeKey:{"0-menu-":Fr(ge,ge.activeKey)}}),X.state={switchingModeFromInline:!1,prevProps:ge,inlineOpenKeys:[],store:X.store},X}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(X){var re=this.props,G=re.siderCollapsed,_e=re.inlineCollapsed,Ee=re.onOpenChange;(!X.inlineCollapsed&&_e||!X.siderCollapsed&&G)&&Ee([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var X=this.props.collapsedWidth,re=this.store,G=this.prevOpenKeys,_e=this.getInlineCollapsed()&&(X===0||X==="0"||X==="0px");_e?(this.prevOpenKeys=re.getState().openKeys.concat(),this.store.setState({openKeys:[]})):G&&(this.store.setState({openKeys:G}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var X=this.props.mode,re=this.state.switchingModeFromInline,G=this.getInlineCollapsed();return re&&G?"inline":G?"vertical":X}},{key:"getInlineCollapsed",value:function(){var X=this.props,re=X.inlineCollapsed,G=X.siderCollapsed;return G!==void 0?G:re}},{key:"restoreModeVerticalFromInline",value:function(){var X=this.state.switchingModeFromInline;X&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var X=Object(m.a)({},Object(W.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),re=this.getRealMenuMode();return X.className+=" ".concat(X.prefixCls,"-root"),X.direction==="rtl"&&(X.className+=" ".concat(X.prefixCls,"-rtl")),X=Object(m.a)(Object(m.a)({},X),{},{mode:re,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:tr(this.props,this.state,re)}),delete X.openAnimation,delete X.openTransitionName,_.createElement(D.a,{store:this.store},_.createElement(Br,Object(T.a)({},X,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(X,re){var G=re.prevProps,_e=re.store,Ee=_e.getState(),Fe={},je={prevProps:X};return G.mode==="inline"&&X.mode!=="inline"&&(je.switchingModeFromInline=!0),"openKeys"in X?Fe.openKeys=X.openKeys||[]:((X.inlineCollapsed&&!G.inlineCollapsed||X.siderCollapsed&&!G.siderCollapsed)&&(je.switchingModeFromInline=!0,je.inlineOpenKeys=Ee.openKeys,Fe.openKeys=[]),(!X.inlineCollapsed&&G.inlineCollapsed||!X.siderCollapsed&&G.siderCollapsed)&&(Fe.openKeys=re.inlineOpenKeys,je.inlineOpenKeys=[])),Object.keys(Fe).length&&_e.setState(Fe),je}}]),Ke}(_.Component);po.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:_.createElement("span",null,"\xB7\xB7\xB7")};var mo=po,Or=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){var ge;return Object(A.a)(this,Ke),ge=Ie.apply(this,arguments),ge.onKeyDown=function(X){var re=X.keyCode;return re===e.a.ENTER?(ge.onClick(X),!0):void 0},ge.onMouseLeave=function(X){var re=ge.props,G=re.eventKey,_e=re.onItemHover,Ee=re.onMouseLeave;_e({key:G,hover:!1}),Ee({key:G,domEvent:X})},ge.onMouseEnter=function(X){var re=ge.props,G=re.eventKey,_e=re.onItemHover,Ee=re.onMouseEnter;_e({key:G,hover:!0}),Ee({key:G,domEvent:X})},ge.onClick=function(X){var re=ge.props,G=re.eventKey,_e=re.multiple,Ee=re.onClick,Fe=re.onSelect,je=re.onDeselect,Je=re.isSelected,nt={key:G,keyPath:[G],item:Object(b.a)(ge),domEvent:X};Ee(nt),_e?Je?je(nt):Fe(nt):Je||Fe(nt)},ge.saveNode=function(X){ge.node=X},ge}return Object(E.a)(Ke,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var X=this.props;X.onDestroy&&X.onDestroy(X.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var X,re=Object(m.a)({},this.props),G=p()(this.getPrefixCls(),re.className,(X={},Object(S.a)(X,this.getActiveClassName(),!re.disabled&&re.active),Object(S.a)(X,this.getSelectedClassName(),re.isSelected),Object(S.a)(X,this.getDisabledClassName(),re.disabled),X)),_e=Object(m.a)(Object(m.a)({},re.attribute),{},{title:typeof re.title=="string"?re.title:void 0,className:G,role:re.role||"menuitem","aria-disabled":re.disabled});re.role==="option"?_e=Object(m.a)(Object(m.a)({},_e),{},{role:"option","aria-selected":re.isSelected}):(re.role===null||re.role==="none")&&(_e.role="none");var Ee={onClick:re.disabled?null:this.onClick,onMouseLeave:re.disabled?null:this.onMouseLeave,onMouseEnter:re.disabled?null:this.onMouseEnter},Fe=Object(m.a)({},re.style);re.mode==="inline"&&(re.direction==="rtl"?Fe.paddingRight=re.inlineIndent*re.level:Fe.paddingLeft=re.inlineIndent*re.level),Ve.forEach(function(Je){return delete re[Je]}),delete re.direction;var je=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(je=_.createElement(this.props.itemIcon,this.props)),_.createElement("li",Object(T.a)({},Object(W.a)(re,["onClick","onMouseEnter","onMouseLeave","onSelect"]),_e,Ee,{style:Fe,ref:this.saveNode}),re.children,je)}}]),Ke}(_.Component);Or.isMenuItem=!0,Or.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var qr=Object(D.b)(function(ce,Ie){var Ke=ce.activeKey,ge=ce.selectedKeys,X=Ie.eventKey,re=Ie.subMenuKey;return{active:Ke[re]===X,isSelected:Array.isArray(ge)?ge.indexOf(X)!==-1:ge===X}})(Or),$r=qr,eo=function(ce){Object(v.a)(Ke,ce);var Ie=Object(O.a)(Ke);function Ke(){var ge;return Object(A.a)(this,Ke),ge=Ie.apply(this,arguments),ge.renderInnerMenuItem=function(X){var re=ge.props,G=re.renderMenuItem,_e=re.index;return G(X,_e,ge.props.subMenuKey)},ge}return Object(E.a)(Ke,[{key:"render",value:function(){var X=Object(T.a)({},this.props),re=X.className,G=re===void 0?"":re,_e=X.rootPrefixCls,Ee="".concat(_e,"-item-group-title"),Fe="".concat(_e,"-item-group-list"),je=X.title,Je=X.children;return Ve.forEach(function(nt){return delete X[nt]}),delete X.direction,_.createElement("li",Object(T.a)({},X,{onClick:function(ut){return ut.stopPropagation()},className:"".concat(G," ").concat(_e,"-item-group")}),_.createElement("div",{className:Ee,title:typeof je=="string"?je:void 0},je),_.createElement("ul",{className:Fe},_.Children.map(Je,this.renderInnerMenuItem)))}}]),Ke}(_.Component);eo.isMenuItemGroup=!0,eo.defaultProps={disabled:!0};var So=eo,to=function(Ie){var Ke=Ie.className,ge=Ie.rootPrefixCls,X=Ie.style;return _.createElement("li",{className:"".concat(Ke," ").concat(ge,"-item-divider"),style:X})};to.defaultProps={disabled:!0,className:"",style:{}};var Ao=to,_o=mo,no=h("eDIo");function vo(ce,Ie){var Ke=ce.prefixCls,ge=ce.editable,X=ce.locale,re=ce.style;return!ge||ge.showAdd===!1?null:_.createElement("button",{ref:Ie,type:"button",className:"".concat(Ke,"-nav-add"),style:re,"aria-label":(X==null?void 0:X.addAriaLabel)||"Add tab",onClick:function(_e){ge.onEdit("add",{event:_e})}},ge.addIcon||"+")}var kr=_.forwardRef(vo);function Na(ce,Ie){var Ke=ce.prefixCls,ge=ce.id,X=ce.tabs,re=ce.locale,G=ce.mobile,_e=ce.moreIcon,Ee=_e===void 0?"More":_e,Fe=ce.moreTransitionName,je=ce.style,Je=ce.className,nt=ce.editable,ut=ce.tabBarGutter,dt=ce.rtl,_t=ce.onTabClick,Nt=Object(_.useState)(!1),tn=Object(f.a)(Nt,2),zt=tn[0],ln=tn[1],on=Object(_.useState)(null),nn=Object(f.a)(on,2),Jt=nn[0],Cn=nn[1],un="".concat(ge,"-more-popup"),$n="".concat(Ke,"-dropdown"),Mn=Jt!==null?"".concat(un,"-").concat(Jt):null,It=re==null?void 0:re.dropdownAriaLabel,kt=_.createElement(_o,{onClick:function(jn){var aa=jn.key,Oa=jn.domEvent;_t(aa,Oa),ln(!1)},id:un,tabIndex:-1,role:"listbox","aria-activedescendant":Mn,selectedKeys:[Jt],"aria-label":It!==void 0?It:"expanded dropdown"},X.map(function(Sn){return _.createElement($r,{key:Sn.key,id:"".concat(un,"-").concat(Sn.key),role:"option","aria-controls":ge&&"".concat(ge,"-panel-").concat(Sn.key),disabled:Sn.disabled},Sn.tab)}));function mn(Sn){for(var jn=X.filter(function(Wa){return!Wa.disabled}),aa=jn.findIndex(function(Wa){return Wa.key===Jt})||0,Oa=jn.length,Ha=0;Haxn?(vn=kt,un.current="x"):(vn=mn,un.current="y");var Gn=Date.now();Gn-Jt.current>100&&(Cn.current=!1),(Ie(-vn,-vn)||Cn.current)&&(It.preventDefault(),Cn.current=!0),Jt.current=Gn}var Mn=Object(_.useRef)(null);Mn.current={onTouchStart:ln,onTouchMove:on,onTouchEnd:nn,onWheel:$n},_.useEffect(function(){function It(Tt){Mn.current.onTouchStart(Tt)}function kt(Tt){Mn.current.onTouchMove(Tt)}function mn(Tt){Mn.current.onTouchEnd(Tt)}function vn(Tt){Mn.current.onWheel(Tt)}return document.addEventListener("touchmove",kt,{passive:!1}),document.addEventListener("touchend",mn,{passive:!1}),ce.current.addEventListener("touchstart",It,{passive:!1}),ce.current.addEventListener("wheel",vn),function(){document.removeEventListener("touchmove",kt),document.removeEventListener("touchend",mn)}},[])}function bo(){var ce=Object(_.useRef)(new Map);function Ie(ge){return ce.current.has(ge)||ce.current.set(ge,_.createRef()),ce.current.get(ge)}function Ke(ge){ce.current.delete(ge)}return[Ie,Ke]}function Oo(ce,Ie){var Ke=_.useRef(ce),ge=_.useState({}),X=Object(f.a)(ge,2),re=X[1];function G(_e){var Ee=typeof _e=="function"?_e(Ke.current):_e;Ee!==Ke.current&&Ie(Ee,Ke.current),Ke.current=Ee,re({})}return[Ke.current,G]}var To=function(Ie){var Ke=Ie.position,ge=Ie.prefixCls,X=Ie.extra;if(!X)return null;var re,G=X;return Ke==="right"&&(re=G.right||!G.left&&G||null),Ke==="left"&&(re=G.left||null),re?_.createElement("div",{className:"".concat(ge,"-extra-content")},re):null};function si(ce,Ie){var Ke,ge=_.useContext(Xr),X=ge.prefixCls,re=ge.tabs,G=ce.className,_e=ce.style,Ee=ce.id,Fe=ce.animated,je=ce.activeKey,Je=ce.rtl,nt=ce.extra,ut=ce.editable,dt=ce.locale,_t=ce.tabPosition,Nt=ce.tabBarGutter,tn=ce.children,zt=ce.onTabClick,ln=ce.onTabScroll,on=Object(_.useRef)(),nn=Object(_.useRef)(),Jt=Object(_.useRef)(),Cn=Object(_.useRef)(),un=bo(),$n=Object(f.a)(un,2),Mn=$n[0],It=$n[1],kt=_t==="top"||_t==="bottom",mn=Oo(0,function(Gt,qt){kt&&ln&&ln({direction:Gt>qt?"left":"right"})}),vn=Object(f.a)(mn,2),Tt=vn[0],xn=vn[1],Gn=Oo(0,function(Gt,qt){!kt&&ln&&ln({direction:Gt>qt?"top":"bottom"})}),Sn=Object(f.a)(Gn,2),jn=Sn[0],aa=Sn[1],Oa=Object(_.useState)(0),Ha=Object(f.a)(Oa,2),ca=Ha[0],Wa=Ha[1],hr=Object(_.useState)(0),me=Object(f.a)(hr,2),Ze=me[0],mt=me[1],ht=Object(_.useState)(0),Ct=Object(f.a)(ht,2),xt=Ct[0],Vt=Ct[1],St=Object(_.useState)(0),hn=Object(f.a)(St,2),gt=hn[0],ft=hn[1],Ht=Object(_.useState)(null),Lt=Object(f.a)(Ht,2),wt=Lt[0],Ut=Lt[1],An=Object(_.useState)(null),Dn=Object(f.a)(An,2),Wt=Dn[0],ma=Dn[1],sn=Object(_.useState)(0),gn=Object(f.a)(sn,2),wn=gn[0],bn=gn[1],ea=Object(_.useState)(0),Ta=Object(f.a)(ea,2),Aa=Ta[0],Ia=Ta[1],nr=t(new Map),lt=Object(f.a)(nr,2),da=lt[0],Ra=lt[1],yn=C(re,da,ca),Zt="".concat(X,"-nav-operations-hidden"),Ln=0,sa=0;kt?Je?(Ln=0,sa=Math.max(0,ca-wt)):(Ln=Math.min(0,wt-ca),sa=0):(Ln=Math.min(0,Wt-Ze),sa=0);function kn(Gt){return Gtsa?[sa,!1]:[Gt,!0]}var ra=Object(_.useRef)(),fa=Object(_.useState)(),ar=Object(f.a)(fa,2),pr=ar[0],ir=ar[1];function Pa(){ir(Date.now())}function sr(){window.clearTimeout(ra.current)}wo(on,function(Gt,qt){var Xn=!1;function oa(xa,Ua){xa(function(Ka){var Ya=kn(Ka+Ua),Fa=Object(f.a)(Ya,2),Tr=Fa[0],br=Fa[1];return Xn=br,Tr})}if(kt){if(wt>=ca)return Xn;oa(xn,Gt)}else{if(Wt>=Ze)return Xn;oa(aa,qt)}return sr(),Pa(),Xn}),Object(_.useEffect)(function(){return sr(),pr&&(ra.current=window.setTimeout(function(){ir(0)},100)),sr},[pr]);function mr(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:je,qt=yn.get(Gt);if(!qt)return;if(kt){var Xn=Tt;Je?qt.rightTt+wt&&(Xn=qt.right+qt.width-wt):qt.left<-Tt?Xn=-qt.left:qt.left+qt.width>-Tt+wt&&(Xn=-(qt.left+qt.width-wt)),aa(0),xn(kn(Xn)[0])}else{var oa=jn;qt.top<-jn?oa=-qt.top:qt.top+qt.height>-jn+Wt&&(oa=-(qt.top+qt.height-Wt)),xn(0),aa(kn(oa)[0])}}var _r=y(yn,{width:wt,height:Wt,left:Tt,top:jn},{width:xt,height:gt},{width:wn,height:Aa},Object(m.a)(Object(m.a)({},ce),{},{tabs:re})),vr=Object(f.a)(_r,2),Ma=vr[0],an=vr[1],ya=re.map(function(Gt){var qt=Gt.key;return _.createElement(l,{id:Ee,prefixCls:X,key:qt,rtl:Je,tab:Gt,closable:Gt.closable,editable:ut,active:qt===je,tabPosition:_t,tabBarGutter:Nt,renderWrapper:tn,removeAriaLabel:dt==null?void 0:dt.removeAriaLabel,ref:Mn(qt),onClick:function(oa){zt(qt,oa)},onRemove:function(){It(qt)},onFocus:function(){mr(qt),Pa(),Je||(on.current.scrollLeft=0),on.current.scrollTop=0}})}),gr=n(function(){var Gt,qt,Xn,oa,xa,Ua,Ka,Ya,Fa,Tr=((Gt=on.current)===null||Gt===void 0?void 0:Gt.offsetWidth)||0,br=((qt=on.current)===null||qt===void 0?void 0:qt.offsetHeight)||0,Wr=((Xn=Cn.current)===null||Xn===void 0?void 0:Xn.offsetWidth)||0,Rr=((oa=Cn.current)===null||oa===void 0?void 0:oa.offsetHeight)||0,yr=((xa=Jt.current)===null||xa===void 0?void 0:xa.offsetWidth)||0,ao=((Ua=Jt.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0;Ut(Tr),ma(br),bn(Wr),Ia(Rr);var Er=(((Ka=nn.current)===null||Ka===void 0?void 0:Ka.offsetWidth)||0)-Wr,zr=(((Ya=nn.current)===null||Ya===void 0?void 0:Ya.offsetHeight)||0)-Rr;Wa(Er),mt(zr);var Hn=(Fa=Jt.current)===null||Fa===void 0?void 0:Fa.className.includes(Zt);Vt(Er-(Hn?0:yr)),ft(zr-(Hn?0:ao)),Ra(function(){var In=new Map;return re.forEach(function(Ba){var za=Ba.key,Mr=Mn(za).current;Mr&&In.set(za,{width:Mr.offsetWidth,height:Mr.offsetHeight,left:Mr.offsetLeft,top:Mr.offsetTop})}),In})}),At=re.slice(0,Ma),cn=re.slice(an+1),Un=[].concat(Object(o.a)(At),Object(o.a)(cn)),Zn=Object(_.useState)(),_a=Object(f.a)(Zn,2),rn=_a[0],Da=_a[1],Ea=yn.get(je),ha=Object(_.useRef)();function Kn(){s.a.cancel(ha.current)}Object(_.useEffect)(function(){var Gt={};return Ea&&(kt?(Je?Gt.right=Ea.right:Gt.left=Ea.left,Gt.width=Ea.width):(Gt.top=Ea.top,Gt.height=Ea.height)),Kn(),ha.current=s()(function(){Da(Gt)}),Kn},[Ea,kt,Je]),Object(_.useEffect)(function(){mr()},[je,Ea,yn,kt]),Object(_.useEffect)(function(){gr()},[Je,Nt,je,re.map(function(Gt){return Gt.key}).join("_")]);var Bn=!!Un.length,ta="".concat(X,"-nav-wrap"),pa,ja,La,Ca;return kt?Je?(ja=Tt>0,pa=Tt+wt4?9:0)}function $e(R){for(var Me=R.length;--Me>=0;)R[Me]=0}function et(R){var Me=R.state,Ue=Me.pending;if(Ue>R.avail_out&&(Ue=R.avail_out),Ue===0)return;f.arraySet(R.output,Me.pending_buf,Me.pending_out,Ue,R.next_out),R.next_out+=Ue,Me.pending_out+=Ue,R.total_out+=Ue,R.avail_out-=Ue,Me.pending-=Ue,Me.pending===0&&(Me.pending_out=0)}function Ve(R,Me){L._tr_flush_block(R,R.block_start>=0?R.block_start:-1,R.strstart-R.block_start,Me),R.block_start=R.strstart,et(R.strm)}function Le(R,Me){R.pending_buf[R.pending++]=Me}function Oe(R,Me){R.pending_buf[R.pending++]=Me>>>8&255,R.pending_buf[R.pending++]=Me&255}function Ce(R,Me,Ue,q){var ye=R.avail_in;return ye>q&&(ye=q),ye===0?0:(R.avail_in-=ye,f.arraySet(Me,R.input,R.next_in,ye,Ue),R.state.wrap===1?R.adler=(0,m.default)(R.adler,Me,ye,Ue):R.state.wrap===2&&(R.adler=(0,_.default)(R.adler,Me,ye,Ue)),R.next_in+=ye,R.total_in+=ye,ye)}function ue(R,Me){var Ue=R.max_chain_length,q=R.strstart,ye,Se,Ge=R.prev_length,Ye=R.nice_match,Te=R.strstart>R.w_size-H?R.strstart-(R.w_size-H):0,$=R.window,pe=R.w_mask,qe=R.prev,Xe=R.strstart+M,ot=$[q+Ge-1],st=$[q+Ge];R.prev_length>=R.good_match&&(Ue>>=2),Ye>R.lookahead&&(Ye=R.lookahead);do{if(ye=Me,$[ye+Ge]!==st||$[ye+Ge-1]!==ot||$[ye]!==$[q]||$[++ye]!==$[q+1])continue;q+=2,ye++;do;while($[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&$[++q]===$[++ye]&&qGe){if(R.match_start=Me,Ge=Se,Se>=Ye)break;ot=$[q+Ge-1],st=$[q+Ge]}}while((Me=qe[Me&pe])>Te&&--Ue!==0);return Ge<=R.lookahead?Ge:R.lookahead}function N(R){var Me=R.w_size,Ue,q,ye,Se,Ge;do{if(Se=R.window_size-R.lookahead-R.strstart,R.strstart>=Me+(Me-H)){f.arraySet(R.window,R.window,Me,Me,0),R.match_start-=Me,R.strstart-=Me,R.block_start-=Me,q=R.hash_size,Ue=q;do ye=R.head[--Ue],R.head[Ue]=ye>=Me?ye-Me:0;while(--q);q=Me,Ue=q;do ye=R.prev[--Ue],R.prev[Ue]=ye>=Me?ye-Me:0;while(--q);Se+=Me}if(R.strm.avail_in===0)break;if(q=Ce(R.strm,R.window,R.strstart+R.lookahead,Se),R.lookahead+=q,R.lookahead+R.insert>=K)for(Ge=R.strstart-R.insert,R.ins_h=R.window[Ge],R.ins_h=(R.ins_h<R.pending_buf_size-5&&(Ue=R.pending_buf_size-5);;){if(R.lookahead<=1){if(N(R),R.lookahead===0&&Me===o)return oe;if(R.lookahead===0)break}R.strstart+=R.lookahead,R.lookahead=0;var q=R.block_start+Ue;if((R.strstart===0||R.strstart>=q)&&(R.lookahead=R.strstart-q,R.strstart=q,Ve(R,!1),R.strm.avail_out===0))return oe;if(R.strstart-R.block_start>=R.w_size-H&&(Ve(R,!1),R.strm.avail_out===0))return oe}return R.insert=0,Me===a?(Ve(R,!0),R.strm.avail_out===0?ee:J):(R.strstart>R.block_start&&(Ve(R,!1),R.strm.avail_out===0),oe)}function F(R,Me){for(var Ue,q;;){if(R.lookahead=K&&(R.ins_h=(R.ins_h<=K)if(q=L._tr_tally(R,R.strstart-R.match_start,R.match_length-K),R.lookahead-=R.match_length,R.match_length<=R.max_lazy_match&&R.lookahead>=K){R.match_length--;do R.strstart++,R.ins_h=(R.ins_h<=K&&(R.ins_h=(R.ins_h<4096)&&(R.match_length=K-1)),R.prev_length>=K&&R.match_length<=R.prev_length){ye=R.strstart+R.lookahead-K,q=L._tr_tally(R,R.strstart-1-R.prev_match,R.prev_length-K),R.lookahead-=R.prev_length-1,R.prev_length-=2;do++R.strstart<=ye&&(R.ins_h=(R.ins_h<=K&&R.strstart>0&&(ye=R.strstart-1,q=Ge[ye],q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye])){Se=R.strstart+M;do;while(q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&q===Ge[++ye]&&yeR.lookahead&&(R.match_length=R.lookahead)}if(R.match_length>=K?(Ue=L._tr_tally(R,1,R.match_length-K),R.lookahead-=R.match_length,R.strstart+=R.match_length,R.match_length=0):(Ue=L._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++),Ue&&(Ve(R,!1),R.strm.avail_out===0))return oe}return R.insert=0,Me===a?(Ve(R,!0),R.strm.avail_out===0?ee:J):R.last_lit&&(Ve(R,!1),R.strm.avail_out===0)?oe:U}function he(R,Me){for(var Ue;;){if(R.lookahead===0&&(N(R),R.lookahead===0)){if(Me===o)return oe;break}if(R.match_length=0,Ue=L._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++,Ue&&(Ve(R,!1),R.strm.avail_out===0))return oe}return R.insert=0,Me===a?(Ve(R,!0),R.strm.avail_out===0?ee:J):R.last_lit&&(Ve(R,!1),R.strm.avail_out===0)?oe:U}function We(R,Me,Ue,q,ye){this.good_length=R,this.max_lazy=Me,this.nice_length=Ue,this.max_chain=q,this.func=ye}var rt;rt=[new We(0,0,0,0,te),new We(4,4,8,4,F),new We(4,5,16,8,F),new We(4,6,32,32,F),new We(4,4,16,16,Ae),new We(8,16,32,32,Ae),new We(8,16,128,128,Ae),new We(8,32,128,256,Ae),new We(32,128,258,1024,Ae),new We(32,258,258,4096,Ae)];function V(R){R.window_size=2*R.w_size,$e(R.head),R.max_lazy_match=rt[R.level].max_lazy,R.good_match=rt[R.level].good_length,R.nice_match=rt[R.level].nice_length,R.max_chain_length=rt[R.level].max_chain,R.strstart=0,R.block_start=0,R.lookahead=0,R.insert=0,R.match_length=R.prev_length=K-1,R.match_available=0,R.ins_h=0}function Be(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new f.Buf16(P*2),this.dyn_dtree=new f.Buf16((2*Y+1)*2),this.bl_tree=new f.Buf16((2*w+1)*2),$e(this.dyn_ltree),$e(this.dyn_dtree),$e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(k+1),this.heap=new f.Buf16(2*Z+1),$e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*Z+1),$e(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(R){var Me;return!R||!R.state?Pe(R,u):(R.total_in=R.total_out=0,R.data_type=b,Me=R.state,Me.pending=0,Me.pending_out=0,Me.wrap<0&&(Me.wrap=-Me.wrap),Me.status=Me.wrap?ve:fe,R.adler=Me.wrap===2?0:1,Me.last_flush=o,L._tr_init(Me),t)}function ke(R){var Me=xe(R);return Me===t&&V(R.state),Me}function De(R,Me){return!R||!R.state||R.state.wrap!==2?u:(R.state.gzhead=Me,t)}function Ne(R,Me,Ue,q,ye,Se){if(!R)return u;var Ge=1;if(Me===C&&(Me=6),q<0?(Ge=0,q=-q):q>15&&(Ge=2,q-=16),ye<1||ye>O||Ue!==v||q<8||q>15||Me<0||Me>9||Se<0||Se>A)return Pe(R,u);q===8&&(q=9);var Ye=new Be;return R.state=Ye,Ye.strm=R,Ye.wrap=Ge,Ye.gzhead=null,Ye.w_bits=q,Ye.w_size=1<n||Me<0)return R?Pe(R,u):u;if(q=R.state,!R.output||!R.input&&R.avail_in!==0||q.status===ie&&Me!==a)return Pe(R,R.avail_out===0?g:u);if(q.strm=R,Ue=q.last_flush,q.last_flush=Me,q.status===ve)if(q.wrap===2)R.adler=0,Le(q,31),Le(q,139),Le(q,8),q.gzhead?(Le(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(q.gzhead.extra?4:0)+(q.gzhead.name?8:0)+(q.gzhead.comment?16:0)),Le(q,q.gzhead.time&255),Le(q,q.gzhead.time>>8&255),Le(q,q.gzhead.time>>16&255),Le(q,q.gzhead.time>>24&255),Le(q,q.level===9?2:q.strategy>=y||q.level<2?4:0),Le(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length&&(Le(q,q.gzhead.extra.length&255),Le(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=de):(Le(q,0),Le(q,0),Le(q,0),Le(q,0),Le(q,0),Le(q,q.level===9?2:q.strategy>=y||q.level<2?4:0),Le(q,le),q.status=fe);else{var Ge=v+(q.w_bits-8<<4)<<8,Ye=-1;q.strategy>=y||q.level<2?Ye=0:q.level<6?Ye=1:q.level===6?Ye=2:Ye=3,Ge|=Ye<<6,q.strstart!==0&&(Ge|=ae),Ge+=31-Ge%31,q.status=fe,Oe(q,Ge),q.strstart!==0&&(Oe(q,R.adler>>>16),Oe(q,R.adler&65535)),R.adler=1}if(q.status===de)if(q.gzhead.extra){for(ye=q.pending;q.gzindex<(q.gzhead.extra.length&65535)&&!(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),et(R),ye=q.pending,q.pending===q.pending_buf_size));)Le(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++;q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),q.gzindex===q.gzhead.extra.length&&(q.gzindex=0,q.status=be)}else q.status=be;if(q.status===be)if(q.gzhead.name){ye=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),et(R),ye=q.pending,q.pending===q.pending_buf_size)){Se=1;break}q.gzindexye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),Se===0&&(q.gzindex=0,q.status=z)}else q.status=z;if(q.status===z)if(q.gzhead.comment){ye=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>ye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),et(R),ye=q.pending,q.pending===q.pending_buf_size)){Se=1;break}q.gzindexye&&(R.adler=(0,_.default)(R.adler,q.pending_buf,q.pending-ye,ye)),Se===0&&(q.status=ne)}else q.status=ne;if(q.status===ne&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&et(R),q.pending+2<=q.pending_buf_size&&(Le(q,R.adler&255),Le(q,R.adler>>8&255),R.adler=0,q.status=fe)):q.status=fe),q.pending!==0){if(et(R),R.avail_out===0)return q.last_flush=-1,t}else if(R.avail_in===0&&Qe(Me)<=Qe(Ue)&&Me!==a)return Pe(R,g);if(q.status===ie&&R.avail_in!==0)return Pe(R,g);if(R.avail_in!==0||q.lookahead!==0||Me!==o&&q.status!==ie){var Te=q.strategy===y?he(q,Me):q.strategy===T?tt(q,Me):rt[q.level].func(q,Me);if((Te===ee||Te===J)&&(q.status=ie),Te===oe||Te===ee)return R.avail_out===0&&(q.last_flush=-1),t;if(Te===U&&(Me===i?L._tr_align(q):Me!==n&&(L._tr_stored_block(q,0,0,!1),Me===s&&($e(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),et(R),R.avail_out===0))return q.last_flush=-1,t}return Me!==a?t:q.wrap<=0?e:(q.wrap===2?(Le(q,R.adler&255),Le(q,R.adler>>8&255),Le(q,R.adler>>16&255),Le(q,R.adler>>24&255),Le(q,R.total_in&255),Le(q,R.total_in>>8&255),Le(q,R.total_in>>16&255),Le(q,R.total_in>>24&255)):(Oe(q,R.adler>>>16),Oe(q,R.adler&65535)),et(R),q.wrap>0&&(q.wrap=-q.wrap),q.pending!==0?t:e)}function B(R){var Me;return!R||!R.state?u:(Me=R.state.status,Me!==ve&&Me!==de&&Me!==be&&Me!==z&&Me!==ne&&Me!==fe&&Me!==ie?Pe(R,u):(R.state=null,Me===fe?Pe(R,l):t))}function He(R,Me){var Ue=Me.length,q,ye,Se,Ge,Ye,Te,$,pe;if(!R||!R.state)return u;if(q=R.state,Ge=q.wrap,Ge===2||Ge===1&&q.status!==ve||q.lookahead)return u;for(Ge===1&&(R.adler=(0,m.default)(R.adler,Me,Ue,0)),q.wrap=0,Ue>=q.w_size&&(Ge===0&&($e(q.head),q.strstart=0,q.block_start=0,q.insert=0),pe=new f.Buf8(q.w_size),f.arraySet(pe,Me,Ue-q.w_size,q.w_size,0),Me=pe,Ue=q.w_size),Ye=R.avail_in,Te=R.next_in,$=R.input,R.avail_in=Ue,R.next_in=0,R.input=Me,N(q);q.lookahead>=K;){ye=q.strstart,Se=q.lookahead-(K-1);do q.ins_h=(q.ins_h<=L.length?{done:!0}:{done:!1,value:L[r++]}},e:function(s){throw s},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,c=!1,o;return{s:function(){_=L[Symbol.iterator]()},n:function(){var s=_.next();return d=s.done,s},e:function(s){c=!0,o=s},f:function(){try{!d&&_.return!=null&&_.return()}finally{if(c)throw o}}}}},rHrb:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.CopyToClipboard=void 0;var S=L(h("q1tI")),f=L(h("+QRC"));function L(g){return g&&g.__esModule?g:{default:g}}function m(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(x){return typeof x}:m=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},m(g)}function _(g,C){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(g);C&&(y=y.filter(function(T){return Object.getOwnPropertyDescriptor(g,T).enumerable})),x.push.apply(x,y)}return x}function r(g){for(var C=1;C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,y))continue;x[y]=g[y]}}return x}function d(g,C){if(g==null)return{};var x={},y=Object.keys(g),T,A;for(A=0;A=0)continue;x[T]=g[T]}return x}function c(g,C){if(!(g instanceof C))throw new TypeError("Cannot call a class as a function")}function o(g,C){for(var x=0;x=7){Q.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}at(qe.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(Z.a.Group,{value:Ue,onChange:function(qe){return q(qe.target.value)}},n.a.createElement(Z.a,{value:P.Manager},"\u7BA1\u7406\u4EBA\u5458"),n.a.createElement(Z.a,{value:P.Developer},"\u5F00\u53D1\u4EBA\u5458"),n.a.createElement(Z.a,{value:P.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},K=k,M=h("Jky8"),H=h("6Fuo"),ae=h.n(H),ve=h("NLgs"),de;(function(xe){xe.Projects="projects",xe.Shixuns="shixuns",xe.Classrooms="classrooms"})(de||(de={}));var be;(function(xe){xe.Classrooms="classrooms",xe.Shixuns="shixuns",xe.Paths="paths",xe.Projects="projects",xe.Videos="videos",xe.Topics="topics"})(be||(be={}));var z=function(ke){var De,Ne,se,we,B,He,at,R=ke.homePage,Me=ke.user,Ue=ke.globalSetting,q=ke.loading,ye=ke.dispatch,Se=ke.location,Ge=Object(_.a)(ke,["homePage","user","globalSetting","loading","dispatch","location"]),Ye=Object(a.useState)(),Te=Object(m.a)(Ye,2),$=Te[0],pe=Te[1],qe=Object(a.useState)(),Xe=Object(m.a)(qe,2),ot=Xe[0],st=Xe[1],ze=function(Ft){var Qt;if(!Object(ve.e)(ye))return;if(Ft===de.Projects&&!((Qt=Me.userInfo)!==null&&Qt!==void 0&&Qt.email)){Q.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Ft===de.Classrooms?pe(!0):Ft===de.Projects&&st(!0)},it=function(Ft,Qt){var pn;if(!Object(ve.e)(ye))return;if(Qt===de.Projects&&!((pn=Me.userInfo)!==null&&pn!==void 0&&pn.email)){Q.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Qt===de.Shixuns&&!Object(ve.c)())return;Ft&&(window.location.href=Ft)},ct=(De=(((Ne=Ue.setting)===null||Ne===void 0?void 0:Ne.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(be.Classrooms)}))===null||De===void 0?void 0:De.hidden,vt=(se=(((we=Ue.setting)===null||we===void 0?void 0:we.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(be.Shixuns)}))===null||se===void 0?void 0:se.hidden,pt=(B=(((He=Ue.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(be.Paths)}))===null||B===void 0?void 0:B.hidden;if(Ue!=null&&(at=Ue.setting)!==null&&at!==void 0&&at.is_local){var Rt;Me!=null&&(Rt=Me.userInfo)!==null&&Rt!==void 0&&Rt.is_shixun_marker||(vt=!0)}var Bt=function(Ft){var Qt,pn,Pn,na,Ot,dn,Rn,Yn,On,Wn,jt,qn,wa,zn;return n.a.createElement(n.a.Fragment,null,n.a.createElement(E.a,{justify:"space-around",className:"pt5 pb5"},n.a.createElement(v.a,{className:ae.a.joinCol},((Qt=Me.userInfo)===null||Qt===void 0?void 0:Qt.user_identity)!=="\u5B66\u751F"&&!ct&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return it("/classrooms/new")}},(pn=Me.userInfo)!==null&&pn!==void 0&&pn.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!vt&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return it("/shixuns/new",de.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),(((Pn=Me.userInfo)===null||Pn===void 0?void 0:Pn.main_site)&&((na=Me.navigationInfo)===null||na===void 0?void 0:na.top)||!((Ot=Me.userInfo)!==null&&Ot!==void 0&&Ot.main_site)&&((dn=Me.navigationInfo)===null||dn===void 0?void 0:dn.top)&&!pt&&(((Rn=Me.userInfo)===null||Rn===void 0?void 0:Rn.admin)||((Yn=Me.userInfo)===null||Yn===void 0?void 0:Yn.is_teacher)||((On=Me.userInfo)===null||On===void 0?void 0:On.business)))&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return it("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Ue!=null&&(Wn=Ue.setting)!==null&&Wn!==void 0&&Wn.is_local)&&((jt=Me.userInfo)===null||jt===void 0?void 0:jt.main_site)&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){var ua,Tn;return it("".concat((ua=Me.navigationInfo)===null||ua===void 0||((Tn=ua.top)===null||Tn===void 0)?void 0:Tn.old_url,"/projects/deposit/new"),de.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),n.a.createElement(v.a,null,n.a.createElement("div",{className:ae.a.joinBoard})),n.a.createElement(v.a,{className:ae.a.joinCol},!ct&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return ze(de.Classrooms)}},(qn=Me.userInfo)!==null&&qn!==void 0&&qn.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((wa=Me.userInfo)===null||wa===void 0?void 0:wa.main_site)&&!(Ue!=null&&(zn=Ue.setting)!==null&&zn!==void 0&&zn.is_local)&&n.a.createElement(D.a.Item,Ft,n.a.createElement("a",{onClick:function(){return ze(de.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return n.a.createElement("section",null,n.a.createElement(T.a,{overlay:n.a.createElement(D.a,{className:"".concat(ae.a.rightMenu," ").concat(ae.a.joinMenu," mt10")},n.a.createElement(Bt,null)),placement:"bottomRight"},n.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),n.a.createElement(M.a,{visible:$,onCancel:function(){return pe(!1)}}),n.a.createElement(K,{visible:ot,onCancel:function(){return st(!1)}}))},ne=Object(u.a)(function(xe){var ke=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting;return{homePage:ke,user:Ne,globalSetting:se,loading:De.models.index}})(z),fe=h("vToQ"),ie=h.n(fe),oe=h("xKgJ"),U=h("jb+D"),ee=h("m3rI"),J=function(ke){var De,Ne=RegExp("(^| )"+ke+"=([^;]+)(;|$)");return(De=document.cookie.match(Ne))?decodeURIComponent(De[2]):null},le=function(ke){var De=new Date;De.setTime(De.getTime()-1);var Ne=J(ke);Ne!=null&&(document.cookie=ke+"="+Ne+";expires="+De.toGMTString())},Pe;(function(xe){xe.Classrooms="classrooms",xe.Shixuns="shixuns",xe.Paths="paths",xe.Projects="projects",xe.Videos="videos",xe.Topics="topics"})(Pe||(Pe={}));var Qe=function(ke){var De,Ne,se,we,B,He,at,R,Me,Ue,q,ye=ke.homePage,Se=ke.user,Ge=ke.globalSetting,Ye=ke.loading,Te=ke.dispatch,$=ke.shixunHomeworks,pe=ke.location,qe=ke.payload,Xe=qe===void 0?{}:qe,ot=Object(_.a)(ke,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),st=(De=(((Ne=Ge.setting)===null||Ne===void 0?void 0:Ne.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(Pe.Classrooms)}))===null||De===void 0?void 0:De.hidden,ze=(se=(((we=Ge.setting)===null||we===void 0?void 0:we.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(Pe.Shixuns)}))===null||se===void 0?void 0:se.hidden,it=(B=(((He=Ge.setting)===null||He===void 0?void 0:He.navbar)||[]).find(function(Xt){return Xt.link==="/".concat(Pe.Paths)}))===null||B===void 0?void 0:B.hidden,ct=((at=Se.userInfo)===null||at===void 0?void 0:at.admin)||((R=Se.userInfo)===null||R===void 0?void 0:R.business)||((Me=Se.userInfo)===null||Me===void 0?void 0:Me.is_shixun_marker)||((Ue=Se.userInfo)===null||Ue===void 0?void 0:Ue.is_teacher)||((q=Se.userInfo)===null||q===void 0?void 0:q.user_identity)!=="\u5B66\u751F",vt=function(){if(Object(w.p)())return n.a.createElement(D.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var Ft,Qt,pn,Pn,na,Ot,dn,Rn,Yn,On,Wn,jt,qn,wa,zn,Jn,ua,Tn,ga,ka,cr,qa,Va;return n.a.createElement(D.a,{className:"".concat(ie.a.rightMenu," ").concat(ie.a.menuWrap)},n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Ft=Se.userInfo)===null||Ft===void 0?void 0:Ft.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!st&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Qt=Se.userInfo)===null||Qt===void 0?void 0:Qt.login,"/classrooms")},(pn=Se.userInfo)!==null&&pn!==void 0&&pn.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!ze&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Pn=Se.userInfo)===null||Pn===void 0?void 0:Pn.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!it&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((na=Se.userInfo)===null||na===void 0?void 0:na.login,"/paths")},(Ot=Se.userInfo)!==null&&Ot!==void 0&&Ot.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((dn=Se.userInfo)===null||dn===void 0?void 0:dn.main_site)&&!((Rn=Ge.setting)!==null&&Rn!==void 0&&Rn.is_local)&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Yn=Se.userInfo)===null||Yn===void 0?void 0:Yn.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((On=Se.userInfo)===null||On===void 0?void 0:On.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/users/".concat((Wn=Se.userInfo)===null||Wn===void 0?void 0:Wn.login,"/vspaces")},"\u6211\u7684\u865A\u62DF\u793E\u533A")),n.a.createElement(D.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(ve.e)(Te))return;u.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),ct&&n.a.createElement(D.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(ve.e)(Te))return;u.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((jt=Se.navigationInfo)===null||jt===void 0||((qn=jt.top)===null||qn===void 0)?void 0:qn.customer_management_url)&&n.a.createElement(D.a.Item,null,n.a.createElement("a",{href:(wa=Se.navigationInfo)===null||wa===void 0||((zn=wa.top)===null||zn===void 0)?void 0:zn.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((Jn=Se.navigationInfo)===null||Jn===void 0||((ua=Jn.top)===null||ua===void 0)?void 0:ua.college_identifier)&&n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{to:"/colleges/".concat((Tn=Se.navigationInfo)===null||Tn===void 0||((ga=Tn.top)===null||ga===void 0)?void 0:ga.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((ka=Se.navigationInfo)===null||ka===void 0||((cr=ka.top)===null||cr===void 0)?void 0:cr.laboratory_admin_url)&&n.a.createElement(D.a.Item,null,n.a.createElement("a",{href:(qa=Se.navigationInfo)===null||qa===void 0||((Va=qa.top)===null||Va===void 0)?void 0:Va.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),n.a.createElement(D.a.Item,null,n.a.createElement(e.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Te({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:n.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),n.a.createElement(D.a.Item,{className:ie.a.exit},n.a.createElement("a",{onClick:Object(L.a)(s.a.mark(function dr(){var Ga;return s.a.wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:return Nn.next=2,Object(U.c)({});case 2:Ga=Nn.sent,(Ga==null?void 0:Ga.status)===1&&(Te({type:"user/getUserInfo",payload:Object(r.a)({},Xe)}),Te({type:"user/getNavigationInfo",payload:Object(r.a)({},Xe)}),le("autologin_trustie"),le("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),Q.b.success(Ga==null?void 0:Ga.message),u.d.replace("/"));case 4:case"end":return Nn.stop()}},dr)}))},"\u9000\u51FA")))};if(Object(oe.p)()){var pt,Rt;return n.a.createElement(T.a,{className:"".concat(ie.a.height67," pr25"),overlay:vt,placement:"bottomRight"},n.a.createElement("section",null,n.a.createElement("aside",null,n.a.createElement("div",{className:$.actionTabs.type===1?ie.a.classromediv:""},n.a.createElement("img",{className:"".concat(ie.a.userPic," current ml15"),src:"".concat(ee.a===null||ee.a===void 0?void 0:ee.a.IMG_SERVER,"/images/").concat((pt=Se.userInfo)===null||pt===void 0?void 0:pt.image_url),alt:"",onClick:function(){var Ft;return u.d.push(Object(w.p)()?"/account/profile":"/users/".concat((Ft=Se.userInfo)===null||Ft===void 0?void 0:Ft.login,"/classrooms"))}}),Object(w.p)()&&n.a.createElement("span",{className:"ml10 font16"},(Rt=Se.userInfo)===null||Rt===void 0?void 0:Rt.username)))))}else{var Bt;return n.a.createElement("div",{className:"font15 mr15 ".concat(Ge.isIlearning?ie.a.login:"")},n.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){Te({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((Bt=Ge.setting)!==null&&Bt!==void 0&&Bt.close_register)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml5 mr5"},"|"),n.a.createElement(e.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},$e=Object(u.a)(function(xe){var ke=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting,we=xe.shixunHomeworks;return{homePage:ke,user:Ne,globalSetting:se,shixunHomeworks:we,loading:De.models.index}})(Qe),et=h("+L6B"),Ve=h("2/Rp"),Le=h("Cs+z"),Oe=h.n(Le),Ce=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],ue=function(ke){var De=ke.homePage,Ne=ke.user,se=ke.globalSetting,we=ke.loading,B=ke.dispatch,He=ke.location,at=ke.text,R=ke.shixunHomeworks,Me=ke.payload,Ue=Me===void 0?{}:Me,q=Object(_.a)(ke,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),ye=Object(a.useState)("none"),Se=Object(m.a)(ye,2),Ge=Se[0],Ye=Se[1];return Object(a.useEffect)(function(){R.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Ye("flex")},[R.actionTabs.key]),Object(a.useEffect)(function(){R.actionTabs.key==="\u9690\u85CF"&&(Ye("none"),localStorage.setItem("Noviceguide","0"))},[R.actionTabs.key]),n.a.createElement("div",{style:{display:Ge,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},n.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},n.a.createElement("img",{src:Oe.a,style:{position:"absolute",top:"-32px"}}),n.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},R.actionTabs.text),R.actionTabs.type===9?n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(Ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Ye("none"),B({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(Ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),B({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Ye("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},N=Object(u.a)(function(xe){var ke=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting,we=xe.shixunHomeworks;return{homePage:ke,user:Ne,globalSetting:se,loading:De.models.index,shixunHomeworks:we}})(ue),te=h("498V"),F=h.n(te),Ae=o.a.Header,tt=d.a.Search;function he(){var xe,ke,De=window.location.pathname,Ne=De.split("/"),se={};return Ne[1]=="classrooms"&&Ne.length>3&&!((xe=Ne[4])!==null&&xe!==void 0&&xe.includes("newgold"))&&!((ke=Ne[5])!==null&&ke!==void 0&&ke.includes("newgold"))&&Ne[2]!=="coursesId"&&(se.course_id=Ne[2]),Ne[1]==="shixuns"&&Ne.length>3&&(se.objective_type="shixun",se.objective_id=Ne[2]),Ne[1]==="paths"&&Ne.length>3&&(se.objective_type="path",se.objective_id=Ne[2]),Object(r.a)(Object(r.a)({},se),{school:1})}var We={\u9996\u9875:"/","/paths":{link:"/paths",key:1},"/shixuns":{link:"/shixuns",key:2},"/classrooms":{link:"/classrooms",key:3},"/competitions":{link:"/competitions",key:4},"/moop_cases":{link:"/moop_cases",key:5},"/forums":{link:"/forums",key:6},"/recruitment":{link:"/competitions/index",key:7},"/three":{link:"/three",key:7}},rt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],V=function(ke){var De,Ne=ke.homePage,se=ke.user,we=ke.globalSetting,B=ke.loading,He=ke.dispatch,at=ke.location,R=ke.isLogin,Me=R===void 0?!1:R,Ue=ke.shixunHomeworks,q=Object(_.a)(ke,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),ye=Object(t.g)(),Se=Object(a.useState)(!1),Ge=Object(m.a)(Se,2),Ye=Ge[0],Te=Ge[1],$=Object(a.useState)(-1),pe=Object(m.a)($,2),qe=pe[0],Xe=pe[1],ot=Object(a.useState)(!1),st=Object(m.a)(ot,2),ze=st[0],it=st[1],ct=he(),vt=at.pathname;Object(a.useEffect)(function(){He({type:"user/getNavigationInfo",payload:Object(r.a)({},ct)})},[we.name]),Object(a.useEffect)(function(){Ue.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(rt!=null&&rt.includes(at==null?void 0:at.pathname)||(at==null?void 0:at.pathname.indexOf("/classrooms"))===0||He({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[at.pathname]),Object(a.useEffect)(function(){Ue.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Ue.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Ue.actionTabs.key]),Object(a.useEffect)(function(){if(we!=null&&we.setting){var Ot,dn;if(we==null||((Ot=we.setting)===null||Ot===void 0||((dn=Ot.navbar)===null||dn===void 0))||dn.map(function(Yn,On){at.pathname.indexOf(Yn.link)>-1&&Xe(On)}),qe===-1)Object(w.T)(we.setting.name);else{var Rn;Object(w.T)(((Rn=we.setting.navbar[qe])===null||Rn===void 0?void 0:Rn.name)||we.setting.name)}}},[we==null?void 0:we.setting]);var pt=Object(a.useMemo)(function(){var Ot;if(we!=null&&(Ot=we.setting)!==null&&Ot!==void 0&&Ot.nav_logo_url){var dn;return"".concat(ee.a.IMG_SERVER,"/").concat(we==null||((dn=we.setting)===null||dn===void 0)?void 0:dn.nav_logo_url)}else return"".concat(ee.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[we==null||((De=we.setting)===null||De===void 0)?void 0:De.nav_logo_url]);function Rt(Ot){ye.push("/search?value="+Ot)}var Bt=function(){return Ye?n.a.createElement("div",{onBlur:function(){setTimeout(function(){Te(!1)},300)}},n.a.createElement(tt,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:Rt,autoFocus:!0})):n.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){ye.push("/search?value=")}})},Xt=function(){var Ot=Object(L.a)(s.a.mark(function dn(Rn){var Yn,On,Wn;return s.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return Rn.preventDefault(),qn.next=3,Object(U.n)();case 3:On=qn.sent,On!=null&&(Yn=On.data)!==null&&Yn!==void 0&&Yn.engineer_url?document.location.href=On==null||((Wn=On.data)===null||Wn===void 0)?void 0:Wn.engineer_url:(On==null?void 0:On.status)!=401&&it(!0);case 5:case"end":return qn.stop()}},dn)}));return function(Rn){return Ot.apply(this,arguments)}}();if(we.showHeader&&we.showHeaderFooter){var Ft,Qt,pn,Pn,na;return n.a.createElement(o.a,{className:"".concat(we.isIlearning?C.a["header-iearning"]:C.a.header," ").concat(we.showHeaderFixed?C.a.headerFixed:"")},n.a.createElement(Ae,{className:"header"},n.a.createElement("section",{className:C.a["edu-menu"]},(!!we.isIlearning||!!we.isPaZhou)&&n.a.createElement(e.a,{style:{display:"flex",alignItems:"center"},onClick:function(){He({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},n.a.createElement("img",{className:C.a.logo,title:(Ft=we.setting)===null||Ft===void 0?void 0:Ft.name,src:we.isPaZhou?pt:F.a||pt}),!we.isPaZhou&&n.a.createElement("span",{className:C.a.title},"\u6DF7\u5408\u589E\u5F3A\u667A\u6167\u6559\u80B2i-Learning\u5E73\u53F0")),n.a.createElement("ul",{className:"".concat(C.a.menu," ").concat(Object(w.p)()&&"ml0")},Object(w.p)()&&n.a.createElement("li",null,n.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(w.p)()&&we.setting&&we.setting.navbar.map(function(Ot,dn){if(!Ot.hidden)return n.a.createElement("li",{key:dn,className:qe===dn?C.a.actived:""},(Ot==null?void 0:Ot.name)==="\u6559\u5B66\u8BFE\u5802"&&n.a.createElement(e.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||He({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:n.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}})},className:Ue.actionTabs.type===4?C.a.classromediv:"",dangerouslySetInnerHTML:{__html:Ot.name},to:Ot.link}),(Ot==null?void 0:Ot.name)!="\u6559\u5B66\u8BFE\u5802"&&Ot.link.indexOf("http")<0&&n.a.createElement(e.a,{onClick:function(){He({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},dangerouslySetInnerHTML:{__html:Ot.name},to:Ot.link,target:Ot.link.indexOf("http")>-1?"_blank":"_self"}),(Ot==null?void 0:Ot.name)!="\u6559\u5B66\u8BFE\u5802"&&Ot.link.indexOf("http")>-1&&n.a.createElement("a",{target:Ot.link.indexOf("http")>-1?"_blank":"_self",dangerouslySetInnerHTML:{__html:Ot.name},href:Ot.link}))})),n.a.createElement("div",{className:"search-bar",style:{flex:we.isIlearning?"initial":"1 0 auto"}},!Object(w.p)()&&!(we!=null&&we.isIlearning)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Bt,null),!Me&&n.a.createElement(ne,null),!Me&&!!(se!=null&&(Qt=se.userInfo)!==null&&Qt!==void 0&&Qt.login)&&n.a.createElement(e.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(se==null||((pn=se.userInfo)===null||pn===void 0)?void 0:pn.login,"/user_tidings")},(se==null||((Pn=se.navigationInfo)===null||Pn===void 0||((na=Pn.top)===null||na===void 0))?void 0:na.new_message)&&n.a.createElement("span",{className:C.a.newslight}))),!Me&&n.a.createElement($e,{payload:ct}))),n.a.createElement(f.a,{centered:!0,destroyOnClose:!0,visible:ze,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(w.O)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return it(!1)}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:l.C,width:200,height:200}),n.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),n.a.createElement(N,null))}else return n.a.createElement(n.a.Fragment,null)},Be=I.a=Object(u.a)(function(xe){var ke=xe.homePage,De=xe.loading,Ne=xe.user,se=xe.globalSetting,we=xe.shixunHomeworks;return{homePage:ke,user:Ne,globalSetting:se,loading:De.models.index,shixunHomeworks:we}})(V)},rwxt:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S=h("GdRQ");function f(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function L(p,d){for(var c=0;c>>24,u>>>=A,l-=A,A=T>>>16&255,A===0)W[c++]=T&65535;else if(A&16){E=T&65535,A&=15,A&&(l>>=A,l-=A),l<15&&(u+=D[p++]<>>24,u>>>=A,l-=A,A=T>>>16&255,A&16){if(b=T&65535,A&=15,ls){m.msg="invalid distance too far back",r.mode=S;break e}if(u>>>=A,l-=A,A=c-o,b>A){if(A=b-A,A>n&&r.sane){m.msg="invalid distance too far back",r.mode=S;break e}if(v=0,O=e,t===0){if(v+=a-A,A2;)W[c++]=O[v++],W[c++]=O[v++],W[c++]=O[v++],E-=3;E&&(W[c++]=O[v++],E>1&&(W[c++]=O[v++]))}else{v=c-b;do W[c++]=W[v++],W[c++]=W[v++],W[c++]=W[v++],E-=3;while(E>2);E&&(W[c++]=W[v++],E>1&&(W[c++]=W[v++]))}}else if((A&64)===0){T=C[(T&65535)+(u&(1<>3,p-=E,l-=E<<3,u&=(1<1)Object(o.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(C.length===0)return Object(o.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=C[0];if(r.isValidElement(x)&&Object(i.c)(x)){var y=x.ref;C[0]=r.cloneElement(x,{ref:Object(i.a)(y,this.setChildNode)})}return C.length===1?C[0]:C.map(function(T,A){return!r.isValidElement(T)||"key"in T&&T.key!==null?T:r.cloneElement(T,{key:"".concat(a,"-").concat(A)})})}}]),u}(r.Component);n.displayName="ResizeObserver",I.a=n},tWlo:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},vS10:function(Re,I,h){"use strict";h.d(I,"h",function(){return _}),h.d(I,"d",function(){return p}),h.d(I,"c",function(){return c}),h.d(I,"e",function(){return i}),h.d(I,"g",function(){return a}),h.d(I,"a",function(){return t}),h.d(I,"i",function(){return u}),h.d(I,"b",function(){return g}),h.d(I,"f",function(){return x});var S=h("9og8"),f=h("WmNS"),L=h.n(f),m=h("ErOA");function _(E){return r.apply(this,arguments)}function r(){return r=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/save_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),r.apply(this,arguments)}function p(E){return d.apply(this,arguments)}function d(){return d=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/tasks/".concat(b.identifier,"/jupyter.json"),{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),d.apply(this,arguments)}function c(E){return o.apply(this,arguments)}function o(){return o=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/get_info_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),o.apply(this,arguments)}function i(E){return s.apply(this,arguments)}function s(){return s=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),s.apply(this,arguments)}function a(E){return n.apply(this,arguments)}function n(){return n=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/reset_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),n.apply(this,arguments)}function t(E){return e.apply(this,arguments)}function e(){return e=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/jupyters/active_with_tpi.json",{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),e.apply(this,arguments)}function u(E){return l.apply(this,arguments)}function l(){return l=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/myshixuns/".concat(b.identifier,"/sync_code.json"),{method:"Post",params:b}));case 1:case"end":return O.stop()}},E)})),l.apply(this,arguments)}function g(E){return C.apply(this,arguments)}function C(){return C=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/shixuns/".concat(b.identifier,"/get_data_sets.json"),{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),C.apply(this,arguments)}function x(E){return y.apply(this,arguments)}function y(){return y=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/tasks/".concat(b.identifier,"/reboot_esc.json"),{method:"post"}));case 1:case"end":return O.stop()}},E)})),y.apply(this,arguments)}function T(E){return A.apply(this,arguments)}function A(){return A=Object(S.a)(L.a.mark(function E(b){return L.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(m.a)("/api/tasks/".concat(b.taskId,"/get_latex_file_tree.json"),{method:"Get",params:b}));case 1:case"end":return O.stop()}},E)})),A.apply(this,arguments)}},vToQ:function(Re,I,h){Re.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},vewr:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.getPointerEvent=S,I.stopEvent=f,I.setCapture=d,I.releaseCapture=c;function S(o){return o.changedTouches?o.changedTouches[0]:o.touches?o.touches[0]:o}function f(o){o.stopPropagation(),o.preventDefault()}var L=!1,m=null;document.captureElement=null;function _(o){if(L)return;var i=new o.constructor(o.type,o);L=!0,document.captureElement?document.captureElement.dispatchEvent(i):m.dispatchEvent(i),L=!1,o.stopPropagation(),i.defaultPrevented&&o.preventDefault(),o.type==="mouseup"&&c()}function r(){var o=document.getElementById("noVNC_mouse_capture_elem");o.style.cursor=window.getComputedStyle(document.captureElement).cursor}var p=new MutationObserver(r);function d(o){if(o.setCapture)o.setCapture(),document.captureElement=o,o.addEventListener("mouseup",c);else{c();var i=document.getElementById("noVNC_mouse_capture_elem");i===null&&(i=document.createElement("div"),i.id="noVNC_mouse_capture_elem",i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.width="100%",i.style.height="100%",i.style.zIndex=1e4,i.style.display="none",document.body.appendChild(i),i.addEventListener("contextmenu",_),i.addEventListener("mousemove",_),i.addEventListener("mouseup",_)),document.captureElement=o,p.observe(o,{attributes:!0}),r(),i.style.display="",window.addEventListener("mousemove",_),window.addEventListener("mouseup",_)}}function c(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;m=document.captureElement,document.captureElement=null,p.disconnect();var o=document.getElementById("noVNC_mouse_capture_elem");o.style.display="none",window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",_)}}},wCXF:function(Re,I,h){"use strict";h.d(I,"a",function(){return te});var S=h("rePB"),f=h("VTBJ"),L=h("KQm4"),m=h("U8pU"),_=h("ODXe"),r=h("q1tI"),p=h("TSYQ"),d=h.n(p),c=h("Gytx"),o=h.n(c),i=h("Kwbf"),s=h("t23M"),a=h("qx4F"),n=h("6eGT"),t=h("IBYe"),e=h("Ff2n"),u=h("c+Xe"),l=h("fyJ8"),g=h("biw7");function C(he,We,rt,V,Be){var xe=rt[he]||{},ke=rt[We]||{},De,Ne;xe.fixed==="left"?De=V.left[he]:ke.fixed==="right"&&(Ne=V.right[We]);var se=!1,we=!1,B=!1,He=!1,at=rt[We+1],R=rt[he-1];if(Be==="rtl"){if(De!==void 0){var Me=R&&R.fixed==="left";He=!Me}else if(Ne!==void 0){var Ue=at&&at.fixed==="right";B=!Ue}}else if(De!==void 0){var q=at&&at.fixed==="left";se=!q}else if(Ne!==void 0){var ye=R&&R.fixed==="right";we=!ye}return{fixLeft:De,fixRight:Ne,lastFixLeft:se,firstFixRight:we,lastFixRight:B,firstFixLeft:He,isSticky:V.isSticky}}var x=h("sR1s");function y(he){var We=he.cells,rt=he.stickyOffsets,V=he.flattenColumns,Be=he.rowComponent,xe=he.cellComponent,ke=he.onHeaderRow,De=he.index,Ne=r.useContext(g.a),se=Ne.prefixCls,we=Ne.direction,B;ke&&(B=ke(We.map(function(at){return at.column}),De));var He=Object(x.a)(We.map(function(at){return at.column}));return r.createElement(Be,Object.assign({},B),We.map(function(at,R){var Me=at.column,Ue=C(at.colStart,at.colEnd,V,rt,we),q;return Me&&Me.onHeaderCell&&(q=at.column.onHeaderCell(Me)),r.createElement(l.a,Object.assign({},at,{ellipsis:Me.ellipsis,align:Me.align,component:xe,prefixCls:se,key:He[R]},Ue,{additionalProps:q,rowType:"header"}))}))}y.displayName="HeaderRow";var T=y;function A(he){var We=[];function rt(ke,De){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;We[Ne]=We[Ne]||[];var se=De,we=ke.filter(Boolean).map(function(B){var He={key:B.key,className:B.className||"",children:B.title,column:B,colStart:se},at=1,R=B.children;return R&&R.length>0&&(at=rt(R,se,Ne+1).reduce(function(Me,Ue){return Me+Ue},0),He.hasSubColumns=!0),"colSpan"in B&&(at=B.colSpan),"rowSpan"in B&&(He.rowSpan=B.rowSpan),He.colSpan=at,He.colEnd=He.colStart+at-1,We[Ne].push(He),se+=at,at});return we}rt(he,0);for(var V=We.length,Be=function(De){We[De].forEach(function(Ne){!("rowSpan"in Ne)&&!Ne.hasSubColumns&&(Ne.rowSpan=V-De)})},xe=0;xe=0;De-=1){var Ne=We[De],se=rt&&rt[De],we=se&&se[v.a];(Ne||we||ke)&&(Be.unshift(r.createElement("col",Object.assign({key:De,style:{width:Ne,minWidth:Ne}},we))),ke=!0)}return r.createElement("colgroup",null,Be)}var D=O;function W(he,We){return Object(r.useMemo)(function(){for(var rt=[],V=0;V1?Tn-1:0),ka=1;ka=B&&(pt=B-He),ke({scrollLeft:pt/B*(we+2)}),ye.current.x=ze.pageX},Xe=function(){var ze=Object(Ve.b)(xe.current).top,it=ze+xe.current.offsetHeight,ct=document.documentElement.scrollTop+window.innerHeight;it-Object(a.a)()<=ct||ze>=ct-De?q(function(vt){return Object(f.a)(Object(f.a)({},vt),{},{isHiddenScrollBar:!0})}):q(function(vt){return Object(f.a)(Object(f.a)({},vt),{},{isHiddenScrollBar:!1})})},ot=function(ze){q(function(it){return Object(f.a)(Object(f.a)({},it),{},{scrollLeft:ze/we*B||0})})};return r.useImperativeHandle(rt,function(){return{setScrollLeft:ot}}),r.useEffect(function(){var st=Object(et.a)(document.body,"mouseup",$,!1),ze=Object(et.a)(document.body,"mousemove",qe,!1);return Xe(),function(){st.remove(),ze.remove()}},[He,Ye]),r.useEffect(function(){var st=Object(et.a)(window,"scroll",Xe,!1),ze=Object(et.a)(window,"resize",Xe,!1);return function(){st.remove(),ze.remove()}},[]),r.useEffect(function(){Ue.isHiddenScrollBar||q(function(st){var ze,it;return Object(f.a)(Object(f.a)({},st),{},{scrollLeft:xe.current.scrollLeft/((ze=xe.current)===null||ze===void 0?void 0:ze.scrollWidth)*((it=xe.current)===null||it===void 0?void 0:it.clientWidth)})})},[Ue.isHiddenScrollBar]),we<=B||!He||Ue.isHiddenScrollBar?null:r.createElement("div",{style:{height:Object(a.a)(),width:B,bottom:De},className:"".concat(se,"-sticky-scroll")},r.createElement("div",{onMouseDown:pe,ref:at,className:d()("".concat(se,"-sticky-scroll-bar"),Object(S.a)({},"".concat(se,"-sticky-scroll-bar-active"),Ye)),style:{width:"".concat(He,"px"),transform:"translate3d(".concat(Ue.scrollLeft,"px, 0, 0)")}}))},Oe=r.forwardRef(Le);function Ce(he,We){return r.useMemo(function(){var rt=!!he;return{isSticky:rt,stickyClassName:rt?"".concat(We,"-sticky-header"):"",offsetHeader:Object(m.a)(he)==="object"&&he.offsetHeader||0,offsetScroll:Object(m.a)(he)==="object"&&he.offsetScroll||0}},[he,We])}var ue=[],N={},te="rc-table-internal-hook",F=r.memo(function(he){var We=he.children;return We},function(he,We){return o()(he.props,We.props)?he.pingLeft!==We.pingLeft||he.pingRight!==We.pingRight:!1});function Ae(he){var We,rt=he.prefixCls,V=he.className,Be=he.rowClassName,xe=he.style,ke=he.data,De=he.rowKey,Ne=he.scroll,se=he.tableLayout,we=he.direction,B=he.title,He=he.footer,at=he.summary,R=he.id,Me=he.showHeader,Ue=he.components,q=he.emptyText,ye=he.onRow,Se=he.onHeaderRow,Ge=he.internalHooks,Ye=he.transformColumns,Te=he.internalRefs,$=he.sticky,pe=ke||ue,qe=!!pe.length,Xe=r.useState(0),ot=Object(_.a)(Xe,2),st=ot[0],ze=ot[1];r.useEffect(function(){ze(Object(a.a)())});var it=r.useMemo(function(){return Object(x.c)(Ue,{})},[Ue]),ct=r.useCallback(function(_n,fn){return Object(x.b)(it,_n)||fn},[it]),vt=r.useMemo(function(){return typeof De=="function"?De:function(_n){var fn=_n&&_n[De];return fn}},[De]),pt=Object(v.c)(he),Rt=pt.expandIcon,Bt=pt.expandedRowKeys,Xt=pt.defaultExpandedRowKeys,Ft=pt.defaultExpandAllRows,Qt=pt.expandedRowRender,pn=pt.onExpand,Pn=pt.onExpandedRowsChange,na=pt.expandRowByClick,Ot=pt.rowExpandable,dn=pt.expandIconColumnIndex,Rn=pt.expandedRowClassName,Yn=pt.childrenColumnName,On=pt.indentSize,Wn=Rt||Qe,jt=Yn||"children",qn=r.useMemo(function(){return Qt?"row":he.expandable&&Ge===te&&he.expandable.__PARENT_RENDER_ICON__||pe.some(function(_n){return _n&&Object(m.a)(_n)==="object"&&_n[jt]})?"nest":!1},[!!Qt,pe]),wa=r.useState(function(){return Xt||(Ft?$e(pe,vt,jt):[])}),zn=Object(_.a)(wa,2),Jn=zn[0],ua=zn[1],Tn=r.useMemo(function(){return new Set(Bt||Jn||[])},[Bt,Jn]),ga=r.useCallback(function(_n){var fn=vt(_n,pe.indexOf(_n)),Fn,ba=Tn.has(fn);ba?(Tn.delete(fn),Fn=Object(L.a)(Tn)):Fn=[].concat(Object(L.a)(Tn),[fn]),ua(Fn),pn&&pn(!ba,_n),Pn&&Pn(Fn)},[vt,Tn,pe,pn,Pn]),ka=r.useState(0),cr=Object(_.a)(ka,2),qa=cr[0],Va=cr[1],dr=Object(z.b)(Object(f.a)(Object(f.a)(Object(f.a)({},he),pt),{},{expandable:!!Qt,expandedKeys:Tn,getRowKey:vt,onTriggerExpand:ga,expandIcon:Wn,expandIconColumnIndex:dn,direction:we}),Ge===te?Ye:null),Ga=Object(_.a)(dr,2),Sr=Ga[0],Nn=Ga[1],Gr=r.useMemo(function(){return{columns:Sr,flattenColumns:Nn}},[Sr,Nn]),Qr=r.useRef(),yo=r.useRef(),Qa=r.useRef(),Nr=r.useState(!1),ro=Object(_.a)(Nr,2),oo=ro[0],Eo=ro[1],io=r.useState(!1),jr=Object(_.a)(io,2),Ur=jr[0],Co=jr[1],xo=ie(new Map),so=Object(_.a)(xo,2),Do=so[0],Lo=so[1],rr=Object(x.a)(Nn),Yr=rr.map(function(_n){return Do.get(_n)}),lo=r.useMemo(function(){return Yr},[Yr.join("_")]),uo=ee(lo,Nn.length,we),Xa=Ne&&Object(x.d)(Ne.y),$a=Ne&&Object(x.d)(Ne.x),er=$a&&Nn.some(function(_n){var fn=_n.fixed;return fn}),Jr=r.useRef(),Ar=Ce($,rt),Dr=Ar.isSticky,Zr=Ar.offsetHeader,ko=Ar.offsetScroll,co=Ar.stickyClassName,Lr,Kr,Vn;Xa&&(Kr={overflowY:"scroll",maxHeight:Ne.y}),$a&&(Lr={overflowX:"auto"},Xa||(Kr={overflowY:"hidden"}),Vn={width:Ne.x===!0?"auto":Ne.x,minWidth:"100%"});var fr=r.useCallback(function(_n,fn){Lo(function(Fn){var ba=new Map(Fn);return ba.set(_n,fn),ba})},[]),Fr=oe(null),fo=Object(_.a)(Fr,2),ho=fo[0],or=fo[1];function Br(_n,fn){if(!fn)return;typeof fn=="function"?fn(_n):fn.scrollLeft!==_n&&(fn.scrollLeft=_n)}var wr=function(fn){var Fn=fn.currentTarget,ba=fn.scrollLeft,Hr=typeof ba=="number"?ba:Fn.scrollLeft,wo=Fn||N;if(!or()||or()===wo){var bo;ho(wo),Br(Hr,yo.current),Br(Hr,Qa.current),Br(Hr,(bo=Jr.current)===null||bo===void 0?void 0:bo.setScrollLeft)}if(Fn){var Oo=Fn.scrollWidth,To=Fn.clientWidth;Eo(Hr>0),Co(Hr0?[].concat(Object(f.a)(e),Object(f.a)(i(C).map(function(x){return Object(L.a)({fixed:g},x)}))):[].concat(Object(f.a)(e),[Object(L.a)(Object(L.a)({},u),{},{fixed:g})])},[])}function s(t){for(var e=!0,u=0;u=0;C-=1){var x=t[C];if(g&&x.fixed!=="right")g=!1;else if(!g&&x.fixed==="right"){Object(p.a)(!1,"Index ".concat(C+1," of `columns` missing `fixed='right'` prop."));break}}}function a(t){return t.map(function(e){var u=e.fixed,l=Object(m.a)(e,["fixed"]),g=u;return u==="left"?g="right":u==="right"&&(g="left"),Object(L.a)({fixed:g},l)})}function n(t,e){var u=t.prefixCls,l=t.columns,g=t.children,C=t.expandable,x=t.expandedKeys,y=t.getRowKey,T=t.onTriggerExpand,A=t.expandIcon,E=t.rowExpandable,b=t.expandIconColumnIndex,v=t.direction,O=t.expandRowByClick,D=_.useMemo(function(){return l||o(g)},[l,g]),W=_.useMemo(function(){if(C){var Z,Y=b||0,w=D[Y],P=(Z={},Object(S.a)(Z,c.a,{className:"".concat(u,"-expand-icon-col")}),Object(S.a)(Z,"title",""),Object(S.a)(Z,"fixed",w?w.fixed:null),Object(S.a)(Z,"className","".concat(u,"-row-expand-icon-cell")),Object(S.a)(Z,"render",function(M,H,ae){var ve=y(H,ae),de=x.has(ve),be=E?E(H):!0,z=A({prefixCls:u,expanded:de,expandable:be,record:H,onExpand:T});return O?_.createElement("span",{onClick:function(fe){return fe.stopPropagation()}},z):z}),Z),k=D.slice();return Y>=0&&k.splice(Y,0,P),k}return D},[C,D,y,x,A,v]),Q=_.useMemo(function(){var Z=W;return e&&(Z=e(Z)),Z.length||(Z=[{render:function(){return null}}]),Z},[e,W,v]),j=_.useMemo(function(){return v==="rtl"?a(i(Q)):i(Q)},[Q,v]);return[Q,j]}I.b=n},whVF:function(Re,I,h){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var S=h("lNSK"),f=L(h("1q3G"));function L(d){return d&&d.__esModule?d:{default:d}}function m(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function _(d,c){for(var o=0;o0){var a=[s],n=s.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,i=(0,S.deflate)(this.strm,S.Z_FULL_FLUSH),i<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);n+=t.length,a.push(t)}while(this.strm.avail_in>0);for(var e=new Uint8Array(n),u=0,l=0;l>>16&65535|0,d=0;m!==0;){d=m>2e3?2e3:m,m-=d;do r=r+L[_++]|0,p=p+r|0;while(--d);r%=65521,p%=65521}return r|p<<16|0}},xrsn:function(Re,I,h){Re.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(Re,I,h){"use strict";h.d(I,"a",function(){return i}),h.d(I,"b",function(){return a});var S=/margin|padding|width|height|max|min|offset/,f={left:!0,top:!0},L={cssFloat:1,styleFloat:1,float:1};function m(n){return n.nodeType===1?n.ownerDocument.defaultView.getComputedStyle(n,null):{}}function _(n,t,e){if(t=t.toLowerCase(),e==="auto"){if(t==="height")return n.offsetHeight;if(t==="width")return n.offsetWidth}return t in f||(f[t]=S.test(t)),f[t]?parseFloat(e)||0:e}function r(n,t){var e=arguments.length,u=m(n);return t=L[t]?"cssFloat"in n.style?"cssFloat":"styleFloat":t,e===1?u:_(n,t,u[t]||n.style[t])}function p(n,t,e){var u=arguments.length;if(t=L[t]?"cssFloat"in n.style?"cssFloat":"styleFloat":t,u===3)return typeof e=="number"&&S.test(t)&&(e="".concat(e,"px")),n.style[t]=e,e;for(var l in t)t.hasOwnProperty(l)&&p(n,l,t[l]);return m(n)}function d(n){return n===document.body?document.documentElement.clientWidth:n.offsetWidth}function c(n){return n===document.body?window.innerHeight||document.documentElement.clientHeight:n.offsetHeight}function o(){var n=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:n,height:t}}function i(){var n=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:n,height:t}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function a(n){var t=n.getBoundingClientRect(),e=document.documentElement;return{left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}},y5JW:function(Re,I,h){"use strict";h.d(I,"c",function(){return e}),h.d(I,"a",function(){return u});var S=h("DZo9"),f=h("8z0m"),L=h("+L6B"),m=h("2/Rp"),_=h("9og8"),r=h("k1fw"),p=h("oBTY"),d=h("miYZ"),c=h("tsqr"),o=h("WmNS"),i=h.n(o),s=h("q1tI"),a=h.n(s),n=h("m3rI"),t=h("wzkS"),e="\u3000\u3000";function u(l){var g=["Bytes","KB","MB","GB","TB"];if(l==0)return"0 Byte";var C=parseInt(""+Math.floor(Math.log(l)/Math.log(1024)),10);return(l/Math.pow(1024,C)).toFixed(1)+" "+g[C]}I.b=function(l){var g=l.value,C=g===void 0?[]:g,x=l.action,y=l.onChange,T=l.className,A=l.maxSize,E=A===void 0?150:A,b=l.title,v=b===void 0?"\u6587\u4EF6\u4E0A\u4F20":b,O=l.accept,D=O===void 0?null:O,W={multiple:!1,fileList:C,accept:D,withCredentials:!0,beforeUpload:function(Z){var Y=Z.size/1024/1024;return Y0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:C.length>0,ghost:!0},v),a.a.createElement("span",{onClick:Q,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",E,"M) ")))}},yslc:function(Re,I){Re.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); diff --git a/p__Paperlibrary__Random__Detail__index.21075ed8.async.js b/p__Paperlibrary__Random__Detail__index.21075ed8.async.js index d23366f39f..3b659eee95 100644 --- a/p__Paperlibrary__Random__Detail__index.21075ed8.async.js +++ b/p__Paperlibrary__Random__Detail__index.21075ed8.async.js @@ -1,5 +1,5 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[176,8,10],{"/A5M":function(Be,ee,n){Be.exports={randomIcon:"randomIcon___o7OlS"}},"3pxb":function(Be,ee,n){Be.exports=n.p+"static/refresh.c0b88523.png"},"55Ip":function(Be,ee,n){"use strict";n.d(ee,"a",function(){return H}),n.d(ee,"b",function(){return F});var R=n("Ty5D"),S=n("dI71"),Oe=n("q1tI"),N=n.n(Oe),r=n("YS25"),g=n("17x9"),fe=n.n(g),le=n("wx14"),w=n("zLVn"),ye=n("9R94"),re=function(d){Object(S.a)(i,d);function i(){for(var M,x=arguments.length,c=new Array(x),m=0;m=0||x.relatedTarget.className.indexOf("".concat(E,"-next"))>=0))return;d.setState({goInputText:""}),P(d.getValidValue())},d.go=function(x){var c=d.state.goInputText;if(c==="")return;(x.keyCode===Q.ENTER||x.type==="click")&&(d.setState({goInputText:""}),d.props.quickGo(d.getValidValue()))},d}return Object(r.a)(h,[{key:"getValidValue",value:function(){var i=this.state,O=i.goInputText,M=i.current;return!O||isNaN(O)?M:Number(O)}},{key:"getPageSizeOptions",value:function(){var i=this.props,O=i.pageSize,M=i.pageSizeOptions;return M.some(function(x){return x.toString()===O.toString()})?M:M.concat([O.toString()]).sort(function(x,c){var m=isNaN(Number(x))?0:Number(x),P=isNaN(Number(c))?0:Number(c);return m-P})}},{key:"render",value:function(){var i=this,O=this.props,M=O.pageSize,x=O.locale,c=O.rootPrefixCls,m=O.changeSize,P=O.quickGo,E=O.goButton,I=O.selectComponentClass,J=O.buildOptionText,ne=O.selectPrefixCls,k=O.disabled,ue=this.state.goInputText,ce="".concat(c,"-options"),he=I,Re=null,W=null,$=null;if(!m&&!P)return null;var pe=this.getPageSizeOptions();if(m&&he){var te=pe.map(function(K,B){return w.a.createElement(he.Option,{key:B,value:K.toString()},(J||i.buildOptionText)(K))});Re=w.a.createElement(he,{disabled:k,prefixCls:ne,showSearch:!1,className:"".concat(ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||pe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(B){return B.parentNode}},te)}return P&&(E&&($=typeof E=="boolean"?w.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:k,className:"".concat(ce,"-quick-jumper-button")},x.jump_to_confirm):w.a.createElement("span",{onClick:this.go,onKeyUp:this.go},E)),W=w.a.createElement("div",{className:"".concat(ce,"-quick-jumper")},x.jump_to,w.a.createElement("input",{disabled:k,type:"text",value:ue,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),x.page,$)),w.a.createElement("li",{className:"".concat(ce)},Re,W)}}]),h}(w.a.Component);T.defaultProps={pageSizeOptions:["10","20","50","100"]};var C=T,L=n("N2Kk");function D(){}function H(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function Y(U,F,h){return h}function z(U,F,h){var d=typeof U=="undefined"?F.pageSize:U;return Math.floor((h.total-1)/d)+1}var be=function(U){Object(g.a)(h,U);var F=Object(fe.a)(h);function h(d){var i;Object(N.a)(this,h),i=F.call(this,d),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(z(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(m,P){var E=i.props.prefixCls,I=m||w.a.createElement("button",{type:"button","aria-label":P,className:"".concat(E,"-item-link")});return typeof m=="function"&&(I=w.a.createElement(m,Object(Oe.a)({},i.props))),I},i.savePaginationNode=function(m){i.paginationNode=m},i.isValid=function(m){return H(m)&&m!==i.state.current},i.shouldDisplayQuickJumper=function(){var m=i.props,P=m.showQuickJumper,E=m.pageSize,I=m.total;return I<=E?!1:P},i.handleKeyDown=function(m){(m.keyCode===Q.ARROW_UP||m.keyCode===Q.ARROW_DOWN)&&m.preventDefault()},i.handleKeyUp=function(m){var P=i.getValidValue(m),E=i.state.currentInputValue;P!==E&&i.setState({currentInputValue:P}),m.keyCode===Q.ENTER?i.handleChange(P):m.keyCode===Q.ARROW_UP?i.handleChange(P-1):m.keyCode===Q.ARROW_DOWN&&i.handleChange(P+1)},i.changePageSize=function(m){var P=i.state.current,E=z(m,i.state,i.props);P=P>E?E:P,E===0&&(P=i.state.current),typeof m=="number"&&("pageSize"in i.props||i.setState({pageSize:m}),"current"in i.props||i.setState({current:P,currentInputValue:P})),i.props.onShowSizeChange(P,m),"onChange"in i.props&&i.props.onChange&&i.props.onChange(P,m)},i.handleChange=function(m){var P=i.props.disabled,E=m;if(i.isValid(E)&&!P){var I=z(void 0,i.state,i.props);E>I?E=I:E<1&&(E=1),"current"in i.props||i.setState({current:E,currentInputValue:E});var J=i.state.pageSize;return i.props.onChange(E,J),E}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?E-2:0),J=2;J=M?c=M:c=Number(O),c}},{key:"getShowSizeChanger",value:function(){var i=this.props,O=i.showSizeChanger,M=i.total,x=i.totalBoundaryShowSizeChanger;return typeof O!="undefined"?O:M>x}},{key:"renderPrev",value:function(i){var O=this.props,M=O.prevIcon,x=O.itemRender,c=x(i,"prev",this.getItemIcon(M,"prev page")),m=!this.hasPrev();return Object(le.isValidElement)(c)?Object(le.cloneElement)(c,{disabled:m}):c}},{key:"renderNext",value:function(i){var O=this.props,M=O.nextIcon,x=O.itemRender,c=x(i,"next",this.getItemIcon(M,"next page")),m=!this.hasNext();return Object(le.isValidElement)(c)?Object(le.cloneElement)(c,{disabled:m}):c}},{key:"render",value:function(){var i=this,O=this.props,M=O.prefixCls,x=O.className,c=O.style,m=O.disabled,P=O.hideOnSinglePage,E=O.total,I=O.locale,J=O.showQuickJumper,ne=O.showLessItems,k=O.showTitle,ue=O.showTotal,ce=O.simple,he=O.itemRender,Re=O.showPrevNextJumpers,W=O.jumpPrevIcon,$=O.jumpNextIcon,pe=O.selectComponentClass,te=O.selectPrefixCls,K=O.pageSizeOptions,B=this.state,de=B.current,De=B.pageSize,Fe=B.currentInputValue;if(P===!0&&E<=De)return null;var ie=z(void 0,this.state,this.props),Ue=[],qe=null,Ve=null,He=null,ht=null,it=null,Ie=J&&J.goButton,ze=ne?1:2,Dt=de-1>0?de-1:0,Pt=de+1=ze*2&&de!==1+2&&(Ue[0]=Object(le.cloneElement)(Ue[0],{className:"".concat(M,"-item-after-jump-prev")}),Ue.unshift(qe)),ie-de>=ze*2&&de!==ie-2&&(Ue[Ue.length-1]=Object(le.cloneElement)(Ue[Ue.length-1],{className:"".concat(M,"-item-before-jump-next")}),Ue.push(Ve)),Z!==1&&Ue.unshift(He),ve!==ie&&Ue.push(ht)}var oe=null;ue&&(oe=w.a.createElement("li",{className:"".concat(M,"-total-text")},ue(E,[E===0?0:(de-1)*De+1,de*De>E?E:de*De])));var q=!this.hasPrev()||!ie,ae=!this.hasNext()||!ie;return w.a.createElement("ul",Object(R.a)({className:re()(M,x,Object(S.a)({},"".concat(M,"-disabled"),m)),style:c,unselectable:"unselectable",ref:this.savePaginationNode},St),oe,w.a.createElement("li",{title:k?I.prev_page:null,onClick:this.prev,tabIndex:q?null:0,onKeyPress:this.runIfEnterPrev,className:re()("".concat(M,"-prev"),Object(S.a)({},"".concat(M,"-disabled"),q)),"aria-disabled":q},this.renderPrev(Dt)),Ue,w.a.createElement("li",{title:k?I.next_page:null,onClick:this.next,tabIndex:ae?null:0,onKeyPress:this.runIfEnterNext,className:re()("".concat(M,"-next"),Object(S.a)({},"".concat(M,"-disabled"),ae)),"aria-disabled":ae},this.renderNext(Pt)),w.a.createElement(C,{disabled:m,locale:I,rootPrefixCls:M,selectComponentClass:pe,selectPrefixCls:te,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:de,pageSize:De,pageSizeOptions:K,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ie}))}}],[{key:"getDerivedStateFromProps",value:function(i,O){var M={};if("current"in i&&(M.current=i.current,i.current!==O.current&&(M.currentInputValue=M.current)),"pageSize"in i&&i.pageSize!==O.pageSize){var x=O.current,c=z(i.pageSize,O,i);x=x>c?c:x,"current"in i||(M.current=x,M.currentInputValue=x),M.pageSize=i.pageSize}return M}}]),h}(w.a.Component);be.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:D,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:D,locale:L.a,style:{},itemRender:Y,totalBoundaryShowSizeChanger:50};var _=be},"6K3P":function(Be,ee,n){Be.exports=n.p+"static/jinshi.9b74f304.svg"},"6RRn":function(Be,ee,n){"use strict";var R=n("wCXF"),S=n("n6Qo");n.d(ee,"b",function(){return S.a});var Oe=n("IBYe"),N=n("6eGT"),r=n("hW8S");n.d(ee,"a",function(){return r.a}),ee.c=R.b},"6eGT":function(Be,ee,n){"use strict";function R(S){return null}ee.a=R},"815F":function(Be,ee,n){"use strict";n.d(ee,"e",function(){return fe}),n.d(ee,"c",function(){return w}),n.d(ee,"d",function(){return ye}),n.d(ee,"a",function(){return Ee}),n.d(ee,"f",function(){return xe}),n.d(ee,"b",function(){return Q});var R=n("KQm4"),S=n("VTBJ"),Oe=n("Ff2n"),N=n("Zm9Q"),r=n("Kwbf"),g=n("OZM5");function fe(T,C){return T!=null?T:C}function le(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=new Map;function L(D){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(D||[]).forEach(function(Y){var z=Y.key,be=Y.children;Object(r.a)(z!=null,"Tree node must have a certain key: [".concat(H).concat(z,"]"));var _=String(z);Object(r.a)(!C.has(_)||z===null||z===void 0,"Same 'key' exist in the Tree: ".concat(_)),C.set(_,!0),L(be,"".concat(H).concat(_," > "))})}L(T)}function w(T){function C(L){var D=Object(N.a)(L);return D.map(function(H){if(!Object(g.i)(H))return Object(r.a)(!H,"Tree/TreeNode can only accept TreeNode as children."),null;var Y=H.key,z=H.props,be=z.children,_=Object(Oe.a)(z,["children"]),U=Object(S.a)({key:Y},_),F=C(be);return F.length&&(U.children=F),U}).filter(function(H){return H})}return C(T)}function ye(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=new Set(C===!0?[]:C),D=[];function H(Y){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Y.map(function(be,_){var U=Object(g.h)(z?z.pos:"0",_),F=fe(be.key,U),h=Object(S.a)(Object(S.a)({},be),{},{parent:z,pos:U,children:null,data:be,isStart:[].concat(Object(R.a)(z?z.isStart:[]),[_===0]),isEnd:[].concat(Object(R.a)(z?z.isEnd:[]),[_===Y.length-1])});return D.push(h),C===!0||L.has(F)?h.children=H(be.children||[],h):h.children=[],h})}return H(T),D}function re(T,C,L){var D;L?typeof L=="string"?D=function(z){return z[L]}:typeof L=="function"&&(D=function(z){return L(z)}):D=function(z,be){return fe(z.key,be)};function H(Y,z,be){var _=Y?Y.children:T,U=Y?Object(g.h)(be.pos,z):"0";if(Y){var F=D(Y,U),h={node:Y,index:z,pos:U,key:F,parentPos:be.node?be.pos:null,level:be.level+1};C(h)}_&&_.forEach(function(d,i){H(d,i,{node:Y,pos:U,level:be?be.level+1:-1})})}H(null)}function Ee(T){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=C.initWrapper,D=C.processEntity,H=C.onProcessFinished,Y=arguments.length>2?arguments[2]:void 0,z={},be={},_={posEntities:z,keyEntities:be};return L&&(_=L(_)||_),re(T,function(U){var F=U.node,h=U.index,d=U.pos,i=U.key,O=U.parentPos,M=U.level,x={node:F,index:h,key:i,pos:d,level:M},c=fe(i,d);z[d]=x,be[c]=x,x.parent=z[O],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),D&&D(x,_)},Y),H&&H(_),_}function xe(T,C){var L=C.expandedKeys,D=C.selectedKeys,H=C.loadedKeys,Y=C.loadingKeys,z=C.checkedKeys,be=C.halfCheckedKeys,_=C.dragOverNodeKey,U=C.dropPosition,F=C.keyEntities,h=F[T],d={eventKey:T,expanded:L.indexOf(T)!==-1,selected:D.indexOf(T)!==-1,loaded:H.indexOf(T)!==-1,loading:Y.indexOf(T)!==-1,checked:z.indexOf(T)!==-1,halfChecked:be.indexOf(T)!==-1,pos:String(h?h.pos:""),dragOver:_===T&&U===0,dragOverGapTop:_===T&&U===-1,dragOverGapBottom:_===T&&U===1};return d}function Q(T){var C=T.data,L=T.expanded,D=T.selected,H=T.checked,Y=T.loaded,z=T.loading,be=T.halfChecked,_=T.dragOver,U=T.dragOverGapTop,F=T.dragOverGapBottom,h=T.pos,d=T.active,i=Object(S.a)(Object(S.a)({},C),{},{expanded:L,selected:D,checked:H,loaded:Y,loading:z,halfChecked:be,dragOver:_,dragOverGapTop:U,dragOverGapBottom:F,pos:h,active:d});return"props"in i||Object.defineProperty(i,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),T}}),i}},IBYe:function(Be,ee,n){"use strict";function R(S){return null}ee.a=R},LdHM:function(Be,ee,n){"use strict";n.d(ee,"b",function(){return Y}),n.d(ee,"a",function(){return be});var R=n("1OyB"),S=n("vuIU"),Oe=n("Ji7U"),N=n("LK+K"),r=n("q1tI"),g=n("rePB"),fe=n("Ff2n"),le=n("ODXe"),w=n("4IlW"),ye=n("bX4T"),re=n("YrtM"),Ee=n("TSYQ"),xe=n.n(Ee),Q=n("+nKL"),T=n("8OUc"),C=function(k,ue){var ce=k.prefixCls,he=k.id,Re=k.flattenOptions,W=k.childrenAsData,$=k.values,pe=k.searchValue,te=k.multiple,K=k.defaultActiveFirstOption,B=k.height,de=k.itemHeight,De=k.notFoundContent,Fe=k.open,ie=k.menuItemSelectedIcon,Ue=k.virtual,qe=k.onSelect,Ve=k.onToggleOpen,He=k.onActiveValue,ht=k.onScroll,it=k.onMouseEnter,Ie="".concat(ce,"-item"),ze=Object(re.a)(function(){return Re},[Fe,Re],function(me,oe){return oe[0]&&me[1]!==oe[1]}),Dt=r.useRef(null),Pt=function(oe){oe.preventDefault()},St=function(oe){Dt.current&&Dt.current.scrollTo({index:oe})},yt=function(oe){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=ze.length,Ne=0;Ne1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(ne).map(function(ue,ce){if(!r.isValidElement(ue)||!ue.type)return null;var he=ue.type.isSelectOptGroup,Re=ue.key,W=ue.props,$=W.children,pe=Object(fe.a)(W,["children"]);return k||!he?F(ue):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(Re===null?ce:Re,"__"),label:Re},pe),{},{options:h($)})}).filter(function(ue){return ue})}var d=n("2Qr1"),i=n("qNPg"),O=n("U8pU"),M=n("Kwbf"),x=n("WKfj");function c(ne){var k=ne.mode,ue=ne.options,ce=ne.children,he=ne.backfill,Re=ne.allowClear,W=ne.placeholder,$=ne.getInputElement,pe=ne.showSearch,te=ne.onSearch,K=ne.defaultOpen,B=ne.autoFocus,de=ne.labelInValue,De=ne.value,Fe=ne.inputValue,ie=ne.optionLabelProp,Ue=k==="multiple"||k==="tags",qe=pe!==void 0?pe:Ue||k==="combobox",Ve=ue||h(ce);if(Object(M.a)(k!=="tags"||Ve.every(function(Ie){return!Ie.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),k==="tags"||k==="combobox"){var He=Ve.some(function(Ie){return Ie.options?Ie.options.some(function(ze){return typeof("value"in ze?ze.value:ze.key)=="number"}):typeof("value"in Ie?Ie.value:Ie.key)=="number"});Object(M.a)(!He,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(k!=="combobox"||!ie,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(k==="combobox"||!he,"`backfill` only works with `combobox` mode."),Object(M.a)(k==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(M.b)(k!=="combobox"||!$||!Re||!W,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),te&&!qe&&k!=="combobox"&&k!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!K||B,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var ht=Object(x.d)(De);Object(M.a)(!de||ht.every(function(Ie){return Object(O.a)(Ie)==="object"&&("key"in Ie||"value"in Ie)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!Ue||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var it=null;Object(U.a)(ce).some(function(Ie){if(!r.isValidElement(Ie)||!Ie.type)return!1;var ze=Ie.type;if(ze.isSelectOption)return!1;if(ze.isSelectOptGroup){var Dt=Object(U.a)(Ie.props.children).every(function(Pt){return!r.isValidElement(Pt)||!Ie.type||Pt.type.isSelectOption?!0:(it=Pt.type,!1)});return!Dt}return it=ze,!0}),it&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(it.displayName||it.name||it,"`.")),Object(M.a)(Fe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var m=c,P=Object(i.a)({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:h,flattenOptions:d.d,getLabeledValue:d.e,filterOptions:d.b,isValueDisabled:d.g,findValueOption:d.c,warningProps:m,fillOptionsWithMissingValue:d.a}),E=function(ne){Object(Oe.a)(ue,ne);var k=Object(N.a)(ue);function ue(){var ce;return Object(R.a)(this,ue),ce=k.apply(this,arguments),ce.selectRef=r.createRef(),ce.focus=function(){ce.selectRef.current.focus()},ce.blur=function(){ce.selectRef.current.blur()},ce}return Object(S.a)(ue,[{key:"render",value:function(){return r.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),ue}(r.Component);E.Option=Y,E.OptGroup=be;var I=E,J=ee.c=I},MpT9:function(Be,ee,n){"use strict";n.r(ee),n.d(ee,"questionType",function(){return F}),n.d(ee,"difficultType",function(){return h});var R=n("CiB2"),S=n("T2oS"),Oe=n("W9HT"),N=n("IzEo"),r=n("bx4M"),g=n("/zsF"),fe=n("PArb"),le=n("sPJy"),w=n("bE4q"),ye=n("+L6B"),re=n("2/Rp"),Ee=n("oBTY"),xe=n("fWQN"),Q=n("mtLc"),T=n("yKVA"),C=n("879j"),L=n("q1tI"),D=n.n(L),H=n("ErOA"),Y=n("55Ip"),z=n("9kvl"),be=n("/A5M"),_=n.n(be),U=n("kHHm"),F={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898"},h={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},d=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],i=function(O){Object(T.a)(x,O);var M=Object(C.a)(x);function x(c){var m;return Object(xe.a)(this,x),m=M.call(this,c),m.getPaperData=function(){var P=window.location.href.split("/").pop();m.setState({loading:!0,id:P}),Object(H.a)("/api/examination_banks/".concat(P,"/edit_random_exam.json"),{method:"get"}).then(function(E){if(m.setState({loading:!1}),E){var I=E.contents,J=E.examination_bank,ne=E.score_settings;m.setState({contents:I,examination_bank:J,score_settings:ne})}})},m.handleSendToClass=function(){var P,E;(P=m.props)===null||P===void 0||P.dispatch({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:(E=m.state)===null||E===void 0?void 0:E.id,data:{is_random:!0}}}})},m.state={loading:!1,contents:[],examination_bank:{},score_settings:[],modalVisible:!1,id:null},m}return Object(Q.a)(x,[{key:"componentDidMount",value:function(){this.getPaperData()}},{key:"render",value:function(){var m=this,P=this.state,E=P.contents,I=P.examination_bank,J=P.score_settings,ne=P.loading,k=[],ue=0,ce=0;Object.keys(F).map(function(W){var $=0;E.map(function(te){te.item_type===W&&($+=te.quanlity)});var pe=J.filter(function(te){return te.item_type===W});k=[].concat(Object(Ee.a)(k),[{item_type:W,num:$,score:pe.length>0?pe[0].score:0}])});var he=k.filter(function(W){return W.num!==0});he.map(function(W){J.map(function($){W.item_type===$.item_type&&(ue+=W.num*$.score,ce+=W.num)})});var Re=D.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},D.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"50%",fontWeight:500,fontSize:"16px"}},D.a.createElement("span",null,"\u603B\u8BA1 ",he.length," \u5927\u9898\uFF0C ",ce," \u5C0F\u9898\uFF0C\u603B\u5206 ",ue," ","\u5206"),D.a.createElement("span",null,"\u8003\u8BD5\u65F6\u957F\uFF1A ",I.time," \u5206\u949F"),D.a.createElement("span",null,"\u8BD5\u5377\u96BE\u5EA6\uFF1A",h[I.difficulty])),D.a.createElement("div",null,D.a.createElement(re.a,{type:"primary",onClick:function(){return m.handleSendToClass()}},"\u53D1\u9001\u81F3\u8BFE\u5802")));return D.a.createElement("div",{style:{width:1200,margin:"0px auto"}},D.a.createElement(Oe.a,{spinning:this.state.loading},D.a.createElement(w.a,{separator:">",style:{padding:"12px 0px"}},D.a.createElement(w.a.Item,null,"\u8BD5\u5377\u5E93"),D.a.createElement(w.a.Item,null,D.a.createElement(Y.a,{to:"/paperlibrary"},"\u6211\u7684\u8BD5\u5377\u5E93")),D.a.createElement(w.a.Item,null,"\u8BD5\u5377\u67E5\u770B")),D.a.createElement("div",{style:{height:50,display:"flex",alignItems:"center"}},D.a.createElement("span",{style:{fontSize:20,fontWeight:600}},D.a.createElement("i",{className:"icon-leftarrow iconfont",style:{fontSize:14,marginRight:8,cursor:"pointer"},onClick:function(){z.d.goBack()}}),I.name),D.a.createElement("span",{className:_.a.randomIcon},"\u968F\u673A")),D.a.createElement(r.a,{title:Re,style:{marginBottom:200}},he.map(function(W,$){var pe=Array.from(new Set(E.map(function(te){return te.item_type===W.item_type?te.sub_discipline_id:null}).filter(function(te){return te})));return D.a.createElement("div",null,D.a.createElement("div",{style:{color:"#0152d9"}},d[$],"\u3001",F[W.item_type],D.a.createElement("span",{style:{color:"#666666",marginLeft:5}},"(\u5171 ",W.num," \u9898\uFF0C\u6BCF\u9898 ",W.score," \u5206)")),D.a.createElement("div",null,pe.map(function(te){var K=E.filter(function(B){return B.sub_discipline_id===te&&W.item_type===B.item_type});return D.a.createElement("div",{style:{marginTop:20,display:"flex"}},D.a.createElement("div",{style:{width:"30%",fontWeight:"600"}},D.a.createElement("span",null,"".concat(K[0].discipline_name,` / - `).concat(K[0].sub_discipline_name))),D.a.createElement("div",null,Object.keys(h).map(function(B){var de=0;return K.map(function(De){return De.difficulty==B&&(de=De.quanlity),null}),de>0?D.a.createElement("span",{style:{color:"#0152d9",marginLeft:30}},h[B],": ",de," \u9898"):null})))})),$===he.length-1?null:D.a.createElement(fe.a,null))})),D.a.createElement(U.a,null)))}}]),x}(D.a.Component);ee.default=Object(z.a)(function(O){return Object(R.a)(O),{}})(i)},NvD2:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return g});var R=n("Kwbf");function S(fe,le){var w=new Set;return fe.forEach(function(ye){le.has(ye)||w.add(ye)}),w}function Oe(fe){var le=fe||{},w=le.disabled,ye=le.disableCheckbox,re=le.checkable;return!!(w||ye)||re===!1}function N(fe,le,w,ye){for(var re=new Set(fe),Ee=new Set,xe=0;xe<=w;xe+=1){var Q=le.get(xe)||new Set;Q.forEach(function(D){var H=D.key,Y=D.node,z=D.children,be=z===void 0?[]:z;re.has(H)&&!ye(Y)&&be.filter(function(_){return!ye(_.node)}).forEach(function(_){re.add(_.key)})})}for(var T=new Set,C=w;C>=0;C-=1){var L=le.get(C)||new Set;L.forEach(function(D){var H=D.parent,Y=D.node;if(ye(Y)||!D.parent||T.has(D.parent.key))return;if(ye(D.parent.node)){T.add(H.key);return}var z=!0,be=!1;(H.children||[]).filter(function(_){return!ye(_.node)}).forEach(function(_){var U=_.key,F=re.has(U);z&&!F&&(z=!1),!be&&(F||Ee.has(U))&&(be=!0)}),z&&re.add(H.key),be&&Ee.add(H.key),T.add(H.key)})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(S(Ee,re))}}function r(fe,le,w,ye,re){for(var Ee=new Set(fe),xe=new Set(le),Q=0;Q<=ye;Q+=1){var T=w.get(Q)||new Set;T.forEach(function(H){var Y=H.key,z=H.node,be=H.children,_=be===void 0?[]:be;!Ee.has(Y)&&!xe.has(Y)&&!re(z)&&_.filter(function(U){return!re(U.node)}).forEach(function(U){Ee.delete(U.key)})})}xe=new Set;for(var C=new Set,L=ye;L>=0;L-=1){var D=w.get(L)||new Set;D.forEach(function(H){var Y=H.parent,z=H.node;if(re(z)||!H.parent||C.has(H.parent.key))return;if(re(H.parent.node)){C.add(Y.key);return}var be=!0,_=!1;(Y.children||[]).filter(function(U){return!re(U.node)}).forEach(function(U){var F=U.key,h=Ee.has(F);be&&!h&&(be=!1),!_&&(h||xe.has(F))&&(_=!0)}),be||Ee.delete(Y.key),_&&xe.add(Y.key),C.add(Y.key)})}return{checkedKeys:Array.from(Ee),halfCheckedKeys:Array.from(S(xe,Ee))}}function g(fe,le,w,ye){var re=[],Ee;ye?Ee=ye:Ee=Oe;var xe=new Set(fe.filter(function(L){var D=!!w[L];return D||re.push(L),D})),Q=new Map,T=0;Object.keys(w).forEach(function(L){var D=w[L],H=D.level,Y=Q.get(H);Y||(Y=new Set,Q.set(H,Y)),Y.add(D),T=Math.max(T,H)}),Object(R.a)(!re.length,"Tree missing follow keys: ".concat(re.slice(0,100).map(function(L){return"'".concat(L,"'")}).join(", ")));var C;return le===!0?C=N(xe,Q,T,Ee):C=r(xe,le.halfCheckedKeys,Q,T,Ee),C}},ORPY:function(Be,ee,n){Be.exports={sendToClass:"sendToClass___2FQ8x"}},OZM5:function(Be,ee,n){"use strict";n.d(ee,"b",function(){return ye}),n.d(ee,"a",function(){return re}),n.d(ee,"k",function(){return Ee}),n.d(ee,"h",function(){return xe}),n.d(ee,"i",function(){return Q}),n.d(ee,"g",function(){return T}),n.d(ee,"c",function(){return C}),n.d(ee,"d",function(){return L}),n.d(ee,"j",function(){return Y}),n.d(ee,"e",function(){return z}),n.d(ee,"f",function(){return be});var R=n("KQm4"),S=n("U8pU"),Oe=n("Ff2n"),N=n("q1tI"),r=n.n(N),g=n("Kwbf"),fe=n("WaYH"),le=.25,w=2;function ye(_,U){var F=_.slice(),h=F.indexOf(U);return h>=0&&F.splice(h,1),F}function re(_,U){var F=_.slice();return F.indexOf(U)===-1&&F.push(U),F}function Ee(_){return _.split("-")}function xe(_,U){return"".concat(_,"-").concat(U)}function Q(_){return _&&_.type&&_.type.isTreeNode}function T(_,U){var F=[_],h=U[_];function d(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(O){var M=O.key,x=O.children;F.push(M),d(x)})}return d(h.children),F}function C(_,U){var F=_.clientY,h=U.selectHandle.getBoundingClientRect(),d=h.top,i=h.bottom,O=h.height,M=Math.max(O*le,w);return F<=d+M?-1:F>=i-M?1:0}function L(_,U){if(!_)return;var F=U.multiple;return F?_.slice():_.length?[_[0]]:_}var D=function(U){return U};function H(_,U){if(!_)return[];var F=U||{},h=F.processProps,d=h===void 0?D:h,i=Array.isArray(_)?_:[_];return i.map(function(O){var M=O.children,x=Object(Oe.a)(O,["children"]),c=H(M,U);return r.a.createElement(fe.a,Object.assign({},d(x)),c)})}function Y(_){if(!_)return null;var U;if(Array.isArray(_))U={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(S.a)(_)==="object")U={checkedKeys:_.checked||void 0,halfCheckedKeys:_.halfChecked||void 0};else return Object(g.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function z(_,U){var F=new Set;function h(d){if(F.has(d))return;var i=U[d];if(!i)return;F.add(d);var O=i.parent,M=i.node;if(M.disabled)return;O&&h(O.key)}return(_||[]).forEach(function(d){h(d)}),Object(R.a)(F)}function be(_){var U={};return Object.keys(_).forEach(function(F){(F.startsWith("data-")||F.startsWith("aria-"))&&(U[F]=_[F])}),U}},PEfE:function(Be,ee,n){Be.exports={title:"title___316_5",radioWrap:"radioWrap___2b58p",row:"row___3Y_zu",radio:"radio___3wz7l",colorFF0000:"colorFF0000___3JfbP",pagination:"pagination___3UF9N",modalColumn:"modalColumn___2C76i",modalRow:"modalRow___3eIQ6",sup:"sup___1b5Qg"}},"SA+Z":function(Be,ee,n){var R=n("wTVA"),S=n("EbDI"),Oe=n("ZhPi"),N=n("wkBT");function r(g){return R(g)||S(g)||Oe(g)||N()}Be.exports=r,Be.exports.__esModule=!0,Be.exports.default=Be.exports},WaYH:function(Be,ee,n){"use strict";var R=n("rePB"),S=n("Ff2n"),Oe=n("VTBJ"),N=n("1OyB"),r=n("vuIU"),g=n("JX7q"),fe=n("Ji7U"),le=n("LK+K"),w=n("q1tI"),ye=n("TSYQ"),re=n.n(ye),Ee=n("sboe"),xe=n("OZM5"),Q=function(U){var F=U.prefixCls,h=U.level,d=U.isStart,i=U.isEnd;if(!h)return null;for(var O="".concat(F,"-indent-unit"),M=[],x=0;x=0||x.relatedTarget.className.indexOf("".concat(E,"-next"))>=0))return;d.setState({goInputText:""}),P(d.getValidValue())},d.go=function(x){var c=d.state.goInputText;if(c==="")return;(x.keyCode===Q.ENTER||x.type==="click")&&(d.setState({goInputText:""}),d.props.quickGo(d.getValidValue()))},d}return Object(r.a)(h,[{key:"getValidValue",value:function(){var i=this.state,O=i.goInputText,M=i.current;return!O||isNaN(O)?M:Number(O)}},{key:"getPageSizeOptions",value:function(){var i=this.props,O=i.pageSize,M=i.pageSizeOptions;return M.some(function(x){return x.toString()===O.toString()})?M:M.concat([O.toString()]).sort(function(x,c){var m=isNaN(Number(x))?0:Number(x),P=isNaN(Number(c))?0:Number(c);return m-P})}},{key:"render",value:function(){var i=this,O=this.props,M=O.pageSize,x=O.locale,c=O.rootPrefixCls,m=O.changeSize,P=O.quickGo,E=O.goButton,I=O.selectComponentClass,J=O.buildOptionText,ne=O.selectPrefixCls,k=O.disabled,ue=this.state.goInputText,ce="".concat(c,"-options"),he=I,Se=null,W=null,$=null;if(!m&&!P)return null;var pe=this.getPageSizeOptions();if(m&&he){var te=pe.map(function(K,B){return w.a.createElement(he.Option,{key:B,value:K.toString()},(J||i.buildOptionText)(K))});Se=w.a.createElement(he,{disabled:k,prefixCls:ne,showSearch:!1,className:"".concat(ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||pe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(B){return B.parentNode}},te)}return P&&(E&&($=typeof E=="boolean"?w.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:k,className:"".concat(ce,"-quick-jumper-button")},x.jump_to_confirm):w.a.createElement("span",{onClick:this.go,onKeyUp:this.go},E)),W=w.a.createElement("div",{className:"".concat(ce,"-quick-jumper")},x.jump_to,w.a.createElement("input",{disabled:k,type:"text",value:ue,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),x.page,$)),w.a.createElement("li",{className:"".concat(ce)},Se,W)}}]),h}(w.a.Component);T.defaultProps={pageSizeOptions:["10","20","50","100"]};var C=T,L=n("N2Kk");function D(){}function H(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function Y(U,F,h){return h}function z(U,F,h){var d=typeof U=="undefined"?F.pageSize:U;return Math.floor((h.total-1)/d)+1}var be=function(U){Object(g.a)(h,U);var F=Object(fe.a)(h);function h(d){var i;Object(N.a)(this,h),i=F.call(this,d),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(z(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(m,P){var E=i.props.prefixCls,I=m||w.a.createElement("button",{type:"button","aria-label":P,className:"".concat(E,"-item-link")});return typeof m=="function"&&(I=w.a.createElement(m,Object(Oe.a)({},i.props))),I},i.savePaginationNode=function(m){i.paginationNode=m},i.isValid=function(m){return H(m)&&m!==i.state.current},i.shouldDisplayQuickJumper=function(){var m=i.props,P=m.showQuickJumper,E=m.pageSize,I=m.total;return I<=E?!1:P},i.handleKeyDown=function(m){(m.keyCode===Q.ARROW_UP||m.keyCode===Q.ARROW_DOWN)&&m.preventDefault()},i.handleKeyUp=function(m){var P=i.getValidValue(m),E=i.state.currentInputValue;P!==E&&i.setState({currentInputValue:P}),m.keyCode===Q.ENTER?i.handleChange(P):m.keyCode===Q.ARROW_UP?i.handleChange(P-1):m.keyCode===Q.ARROW_DOWN&&i.handleChange(P+1)},i.changePageSize=function(m){var P=i.state.current,E=z(m,i.state,i.props);P=P>E?E:P,E===0&&(P=i.state.current),typeof m=="number"&&("pageSize"in i.props||i.setState({pageSize:m}),"current"in i.props||i.setState({current:P,currentInputValue:P})),i.props.onShowSizeChange(P,m),"onChange"in i.props&&i.props.onChange&&i.props.onChange(P,m)},i.handleChange=function(m){var P=i.props.disabled,E=m;if(i.isValid(E)&&!P){var I=z(void 0,i.state,i.props);E>I?E=I:E<1&&(E=1),"current"in i.props||i.setState({current:E,currentInputValue:E});var J=i.state.pageSize;return i.props.onChange(E,J),E}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?E-2:0),J=2;J=M?c=M:c=Number(O),c}},{key:"getShowSizeChanger",value:function(){var i=this.props,O=i.showSizeChanger,M=i.total,x=i.totalBoundaryShowSizeChanger;return typeof O!="undefined"?O:M>x}},{key:"renderPrev",value:function(i){var O=this.props,M=O.prevIcon,x=O.itemRender,c=x(i,"prev",this.getItemIcon(M,"prev page")),m=!this.hasPrev();return Object(le.isValidElement)(c)?Object(le.cloneElement)(c,{disabled:m}):c}},{key:"renderNext",value:function(i){var O=this.props,M=O.nextIcon,x=O.itemRender,c=x(i,"next",this.getItemIcon(M,"next page")),m=!this.hasNext();return Object(le.isValidElement)(c)?Object(le.cloneElement)(c,{disabled:m}):c}},{key:"render",value:function(){var i=this,O=this.props,M=O.prefixCls,x=O.className,c=O.style,m=O.disabled,P=O.hideOnSinglePage,E=O.total,I=O.locale,J=O.showQuickJumper,ne=O.showLessItems,k=O.showTitle,ue=O.showTotal,ce=O.simple,he=O.itemRender,Se=O.showPrevNextJumpers,W=O.jumpPrevIcon,$=O.jumpNextIcon,pe=O.selectComponentClass,te=O.selectPrefixCls,K=O.pageSizeOptions,B=this.state,de=B.current,De=B.pageSize,Fe=B.currentInputValue;if(P===!0&&E<=De)return null;var ie=z(void 0,this.state,this.props),Ue=[],qe=null,Ve=null,He=null,ht=null,it=null,Ie=J&&J.goButton,ze=ne?1:2,Dt=de-1>0?de-1:0,Pt=de+1=ze*2&&de!==1+2&&(Ue[0]=Object(le.cloneElement)(Ue[0],{className:"".concat(M,"-item-after-jump-prev")}),Ue.unshift(qe)),ie-de>=ze*2&&de!==ie-2&&(Ue[Ue.length-1]=Object(le.cloneElement)(Ue[Ue.length-1],{className:"".concat(M,"-item-before-jump-next")}),Ue.push(Ve)),Z!==1&&Ue.unshift(He),ve!==ie&&Ue.push(ht)}var oe=null;ue&&(oe=w.a.createElement("li",{className:"".concat(M,"-total-text")},ue(E,[E===0?0:(de-1)*De+1,de*De>E?E:de*De])));var q=!this.hasPrev()||!ie,ae=!this.hasNext()||!ie;return w.a.createElement("ul",Object(S.a)({className:re()(M,x,Object(R.a)({},"".concat(M,"-disabled"),m)),style:c,unselectable:"unselectable",ref:this.savePaginationNode},Rt),oe,w.a.createElement("li",{title:k?I.prev_page:null,onClick:this.prev,tabIndex:q?null:0,onKeyPress:this.runIfEnterPrev,className:re()("".concat(M,"-prev"),Object(R.a)({},"".concat(M,"-disabled"),q)),"aria-disabled":q},this.renderPrev(Dt)),Ue,w.a.createElement("li",{title:k?I.next_page:null,onClick:this.next,tabIndex:ae?null:0,onKeyPress:this.runIfEnterNext,className:re()("".concat(M,"-next"),Object(R.a)({},"".concat(M,"-disabled"),ae)),"aria-disabled":ae},this.renderNext(Pt)),w.a.createElement(C,{disabled:m,locale:I,rootPrefixCls:M,selectComponentClass:pe,selectPrefixCls:te,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:de,pageSize:De,pageSizeOptions:K,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ie}))}}],[{key:"getDerivedStateFromProps",value:function(i,O){var M={};if("current"in i&&(M.current=i.current,i.current!==O.current&&(M.currentInputValue=M.current)),"pageSize"in i&&i.pageSize!==O.pageSize){var x=O.current,c=z(i.pageSize,O,i);x=x>c?c:x,"current"in i||(M.current=x,M.currentInputValue=x),M.pageSize=i.pageSize}return M}}]),h}(w.a.Component);be.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:D,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:D,locale:L.a,style:{},itemRender:Y,totalBoundaryShowSizeChanger:50};var _=be},"6K3P":function(Be,ee,n){Be.exports=n.p+"static/jinshi.9b74f304.svg"},"6RRn":function(Be,ee,n){"use strict";var S=n("wCXF"),R=n("n6Qo");n.d(ee,"b",function(){return R.a});var Oe=n("IBYe"),N=n("6eGT"),r=n("hW8S");n.d(ee,"a",function(){return r.a}),ee.c=S.b},"6eGT":function(Be,ee,n){"use strict";function S(R){return null}ee.a=S},"815F":function(Be,ee,n){"use strict";n.d(ee,"e",function(){return fe}),n.d(ee,"c",function(){return w}),n.d(ee,"d",function(){return ye}),n.d(ee,"a",function(){return Ee}),n.d(ee,"f",function(){return xe}),n.d(ee,"b",function(){return Q});var S=n("KQm4"),R=n("VTBJ"),Oe=n("Ff2n"),N=n("Zm9Q"),r=n("Kwbf"),g=n("OZM5");function fe(T,C){return T!=null?T:C}function le(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=new Map;function L(D){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(D||[]).forEach(function(Y){var z=Y.key,be=Y.children;Object(r.a)(z!=null,"Tree node must have a certain key: [".concat(H).concat(z,"]"));var _=String(z);Object(r.a)(!C.has(_)||z===null||z===void 0,"Same 'key' exist in the Tree: ".concat(_)),C.set(_,!0),L(be,"".concat(H).concat(_," > "))})}L(T)}function w(T){function C(L){var D=Object(N.a)(L);return D.map(function(H){if(!Object(g.i)(H))return Object(r.a)(!H,"Tree/TreeNode can only accept TreeNode as children."),null;var Y=H.key,z=H.props,be=z.children,_=Object(Oe.a)(z,["children"]),U=Object(R.a)({key:Y},_),F=C(be);return F.length&&(U.children=F),U}).filter(function(H){return H})}return C(T)}function ye(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=new Set(C===!0?[]:C),D=[];function H(Y){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Y.map(function(be,_){var U=Object(g.h)(z?z.pos:"0",_),F=fe(be.key,U),h=Object(R.a)(Object(R.a)({},be),{},{parent:z,pos:U,children:null,data:be,isStart:[].concat(Object(S.a)(z?z.isStart:[]),[_===0]),isEnd:[].concat(Object(S.a)(z?z.isEnd:[]),[_===Y.length-1])});return D.push(h),C===!0||L.has(F)?h.children=H(be.children||[],h):h.children=[],h})}return H(T),D}function re(T,C,L){var D;L?typeof L=="string"?D=function(z){return z[L]}:typeof L=="function"&&(D=function(z){return L(z)}):D=function(z,be){return fe(z.key,be)};function H(Y,z,be){var _=Y?Y.children:T,U=Y?Object(g.h)(be.pos,z):"0";if(Y){var F=D(Y,U),h={node:Y,index:z,pos:U,key:F,parentPos:be.node?be.pos:null,level:be.level+1};C(h)}_&&_.forEach(function(d,i){H(d,i,{node:Y,pos:U,level:be?be.level+1:-1})})}H(null)}function Ee(T){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=C.initWrapper,D=C.processEntity,H=C.onProcessFinished,Y=arguments.length>2?arguments[2]:void 0,z={},be={},_={posEntities:z,keyEntities:be};return L&&(_=L(_)||_),re(T,function(U){var F=U.node,h=U.index,d=U.pos,i=U.key,O=U.parentPos,M=U.level,x={node:F,index:h,key:i,pos:d,level:M},c=fe(i,d);z[d]=x,be[c]=x,x.parent=z[O],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),D&&D(x,_)},Y),H&&H(_),_}function xe(T,C){var L=C.expandedKeys,D=C.selectedKeys,H=C.loadedKeys,Y=C.loadingKeys,z=C.checkedKeys,be=C.halfCheckedKeys,_=C.dragOverNodeKey,U=C.dropPosition,F=C.keyEntities,h=F[T],d={eventKey:T,expanded:L.indexOf(T)!==-1,selected:D.indexOf(T)!==-1,loaded:H.indexOf(T)!==-1,loading:Y.indexOf(T)!==-1,checked:z.indexOf(T)!==-1,halfChecked:be.indexOf(T)!==-1,pos:String(h?h.pos:""),dragOver:_===T&&U===0,dragOverGapTop:_===T&&U===-1,dragOverGapBottom:_===T&&U===1};return d}function Q(T){var C=T.data,L=T.expanded,D=T.selected,H=T.checked,Y=T.loaded,z=T.loading,be=T.halfChecked,_=T.dragOver,U=T.dragOverGapTop,F=T.dragOverGapBottom,h=T.pos,d=T.active,i=Object(R.a)(Object(R.a)({},C),{},{expanded:L,selected:D,checked:H,loaded:Y,loading:z,halfChecked:be,dragOver:_,dragOverGapTop:U,dragOverGapBottom:F,pos:h,active:d});return"props"in i||Object.defineProperty(i,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),T}}),i}},IBYe:function(Be,ee,n){"use strict";function S(R){return null}ee.a=S},LdHM:function(Be,ee,n){"use strict";n.d(ee,"b",function(){return Y}),n.d(ee,"a",function(){return be});var S=n("1OyB"),R=n("vuIU"),Oe=n("Ji7U"),N=n("LK+K"),r=n("q1tI"),g=n("rePB"),fe=n("Ff2n"),le=n("ODXe"),w=n("4IlW"),ye=n("bX4T"),re=n("YrtM"),Ee=n("TSYQ"),xe=n.n(Ee),Q=n("+nKL"),T=n("8OUc"),C=function(k,ue){var ce=k.prefixCls,he=k.id,Se=k.flattenOptions,W=k.childrenAsData,$=k.values,pe=k.searchValue,te=k.multiple,K=k.defaultActiveFirstOption,B=k.height,de=k.itemHeight,De=k.notFoundContent,Fe=k.open,ie=k.menuItemSelectedIcon,Ue=k.virtual,qe=k.onSelect,Ve=k.onToggleOpen,He=k.onActiveValue,ht=k.onScroll,it=k.onMouseEnter,Ie="".concat(ce,"-item"),ze=Object(re.a)(function(){return Se},[Fe,Se],function(me,oe){return oe[0]&&me[1]!==oe[1]}),Dt=r.useRef(null),Pt=function(oe){oe.preventDefault()},Rt=function(oe){Dt.current&&Dt.current.scrollTo({index:oe})},yt=function(oe){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=ze.length,Ne=0;Ne1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(ne).map(function(ue,ce){if(!r.isValidElement(ue)||!ue.type)return null;var he=ue.type.isSelectOptGroup,Se=ue.key,W=ue.props,$=W.children,pe=Object(fe.a)(W,["children"]);return k||!he?F(ue):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(Se===null?ce:Se,"__"),label:Se},pe),{},{options:h($)})}).filter(function(ue){return ue})}var d=n("2Qr1"),i=n("qNPg"),O=n("U8pU"),M=n("Kwbf"),x=n("WKfj");function c(ne){var k=ne.mode,ue=ne.options,ce=ne.children,he=ne.backfill,Se=ne.allowClear,W=ne.placeholder,$=ne.getInputElement,pe=ne.showSearch,te=ne.onSearch,K=ne.defaultOpen,B=ne.autoFocus,de=ne.labelInValue,De=ne.value,Fe=ne.inputValue,ie=ne.optionLabelProp,Ue=k==="multiple"||k==="tags",qe=pe!==void 0?pe:Ue||k==="combobox",Ve=ue||h(ce);if(Object(M.a)(k!=="tags"||Ve.every(function(Ie){return!Ie.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),k==="tags"||k==="combobox"){var He=Ve.some(function(Ie){return Ie.options?Ie.options.some(function(ze){return typeof("value"in ze?ze.value:ze.key)=="number"}):typeof("value"in Ie?Ie.value:Ie.key)=="number"});Object(M.a)(!He,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(k!=="combobox"||!ie,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(k==="combobox"||!he,"`backfill` only works with `combobox` mode."),Object(M.a)(k==="combobox"||!$,"`getInputElement` only work with `combobox` mode."),Object(M.b)(k!=="combobox"||!$||!Se||!W,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),te&&!qe&&k!=="combobox"&&k!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!K||B,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var ht=Object(x.d)(De);Object(M.a)(!de||ht.every(function(Ie){return Object(O.a)(Ie)==="object"&&("key"in Ie||"value"in Ie)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!Ue||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var it=null;Object(U.a)(ce).some(function(Ie){if(!r.isValidElement(Ie)||!Ie.type)return!1;var ze=Ie.type;if(ze.isSelectOption)return!1;if(ze.isSelectOptGroup){var Dt=Object(U.a)(Ie.props.children).every(function(Pt){return!r.isValidElement(Pt)||!Ie.type||Pt.type.isSelectOption?!0:(it=Pt.type,!1)});return!Dt}return it=ze,!0}),it&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(it.displayName||it.name||it,"`.")),Object(M.a)(Fe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var m=c,P=Object(i.a)({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:h,flattenOptions:d.d,getLabeledValue:d.e,filterOptions:d.b,isValueDisabled:d.g,findValueOption:d.c,warningProps:m,fillOptionsWithMissingValue:d.a}),E=function(ne){Object(Oe.a)(ue,ne);var k=Object(N.a)(ue);function ue(){var ce;return Object(S.a)(this,ue),ce=k.apply(this,arguments),ce.selectRef=r.createRef(),ce.focus=function(){ce.selectRef.current.focus()},ce.blur=function(){ce.selectRef.current.blur()},ce}return Object(R.a)(ue,[{key:"render",value:function(){return r.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),ue}(r.Component);E.Option=Y,E.OptGroup=be;var I=E,J=ee.c=I},MpT9:function(Be,ee,n){"use strict";n.r(ee),n.d(ee,"questionType",function(){return F}),n.d(ee,"difficultType",function(){return h});var S=n("CiB2"),R=n("T2oS"),Oe=n("W9HT"),N=n("IzEo"),r=n("bx4M"),g=n("/zsF"),fe=n("PArb"),le=n("sPJy"),w=n("bE4q"),ye=n("+L6B"),re=n("2/Rp"),Ee=n("oBTY"),xe=n("fWQN"),Q=n("mtLc"),T=n("yKVA"),C=n("879j"),L=n("q1tI"),D=n.n(L),H=n("ErOA"),Y=n("55Ip"),z=n("9kvl"),be=n("/A5M"),_=n.n(be),U=n("kHHm"),F={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898"},h={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},d=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],i=function(O){Object(T.a)(x,O);var M=Object(C.a)(x);function x(c){var m;return Object(xe.a)(this,x),m=M.call(this,c),m.getPaperData=function(){var P=window.location.href.split("/").pop();m.setState({loading:!0,id:P}),Object(H.a)("/api/examination_banks/".concat(P,"/edit_random_exam.json"),{method:"get"}).then(function(E){if(m.setState({loading:!1}),E){var I=E.contents,J=E.examination_bank,ne=E.score_settings;m.setState({contents:I,examination_bank:J,score_settings:ne})}})},m.handleSendToClass=function(){var P,E;(P=m.props)===null||P===void 0||P.dispatch({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:(E=m.state)===null||E===void 0?void 0:E.id,data:{is_random:!0}}}})},m.state={loading:!1,contents:[],examination_bank:{},score_settings:[],modalVisible:!1,id:null},m}return Object(Q.a)(x,[{key:"componentDidMount",value:function(){this.getPaperData()}},{key:"render",value:function(){var m=this,P=this.state,E=P.contents,I=P.examination_bank,J=P.score_settings,ne=P.loading,k=[],ue=0,ce=0;Object.keys(F).map(function(W){var $=0;E.map(function(te){te.item_type===W&&($+=te.quanlity)});var pe=J.filter(function(te){return te.item_type===W});k=[].concat(Object(Ee.a)(k),[{item_type:W,num:$,score:pe.length>0?pe[0].score:0}])});var he=k.filter(function(W){return W.num!==0});he.map(function(W){J.map(function($){W.item_type===$.item_type&&(ue+=W.num*$.score,ce+=W.num)})});var Se=D.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},D.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"50%",fontWeight:500,fontSize:"16px"}},D.a.createElement("span",null,"\u603B\u8BA1 ",he.length," \u5927\u9898\uFF0C ",ce," \u5C0F\u9898\uFF0C\u603B\u5206 ",ue," ","\u5206"),D.a.createElement("span",null,"\u8003\u8BD5\u65F6\u957F\uFF1A ",I.time," \u5206\u949F"),D.a.createElement("span",null,"\u8BD5\u5377\u96BE\u5EA6\uFF1A",h[I.difficulty])),D.a.createElement("div",null,D.a.createElement(re.a,{type:"primary",onClick:function(){return m.handleSendToClass()}},"\u53D1\u9001\u81F3\u8BFE\u5802")));return D.a.createElement("div",{style:{width:1200,margin:"0px auto"}},D.a.createElement(Oe.a,{spinning:this.state.loading},D.a.createElement(w.a,{separator:">",style:{padding:"12px 0px"}},D.a.createElement(w.a.Item,null,"\u8BD5\u5377\u5E93"),D.a.createElement(w.a.Item,null,D.a.createElement(Y.a,{to:"/paperlibrary"},"\u6211\u7684\u8BD5\u5377\u5E93")),D.a.createElement(w.a.Item,null,"\u8BD5\u5377\u67E5\u770B")),D.a.createElement("div",{style:{height:50,display:"flex",alignItems:"center"}},D.a.createElement("span",{style:{fontSize:20,fontWeight:600}},D.a.createElement("i",{className:"icon-leftarrow iconfont",style:{fontSize:14,marginRight:8,cursor:"pointer"},onClick:function(){z.d.goBack()}}),I.name),D.a.createElement("span",{className:_.a.randomIcon},"\u968F\u673A")),D.a.createElement(r.a,{title:Se,style:{marginBottom:200}},he.map(function(W,$){var pe=Array.from(new Set(E.map(function(te){return te.item_type===W.item_type?te.sub_discipline_id:null}).filter(function(te){return te})));return D.a.createElement("div",null,D.a.createElement("div",{style:{color:"#0152d9"}},d[$],"\u3001",F[W.item_type],D.a.createElement("span",{style:{color:"#666666",marginLeft:5}},"(\u5171 ",W.num," \u9898\uFF0C\u6BCF\u9898 ",W.score," \u5206)")),D.a.createElement("div",null,pe.map(function(te){var K=E.filter(function(B){return B.sub_discipline_id===te&&W.item_type===B.item_type});return D.a.createElement("div",{style:{marginTop:20,display:"flex"}},D.a.createElement("div",{style:{width:"30%",fontWeight:"600"}},D.a.createElement("span",null,"".concat(K[0].discipline_name,` / + `).concat(K[0].sub_discipline_name))),D.a.createElement("div",null,Object.keys(h).map(function(B){var de=0;return K.map(function(De){return De.difficulty==B&&(de=De.quanlity),null}),de>0?D.a.createElement("span",{style:{color:"#0152d9",marginLeft:30}},h[B],": ",de," \u9898"):null})))})),$===he.length-1?null:D.a.createElement(fe.a,null))})),D.a.createElement(U.a,null)))}}]),x}(D.a.Component);ee.default=Object(z.a)(function(O){return Object(S.a)(O),{}})(i)},NvD2:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return g});var S=n("Kwbf");function R(fe,le){var w=new Set;return fe.forEach(function(ye){le.has(ye)||w.add(ye)}),w}function Oe(fe){var le=fe||{},w=le.disabled,ye=le.disableCheckbox,re=le.checkable;return!!(w||ye)||re===!1}function N(fe,le,w,ye){for(var re=new Set(fe),Ee=new Set,xe=0;xe<=w;xe+=1){var Q=le.get(xe)||new Set;Q.forEach(function(D){var H=D.key,Y=D.node,z=D.children,be=z===void 0?[]:z;re.has(H)&&!ye(Y)&&be.filter(function(_){return!ye(_.node)}).forEach(function(_){re.add(_.key)})})}for(var T=new Set,C=w;C>=0;C-=1){var L=le.get(C)||new Set;L.forEach(function(D){var H=D.parent,Y=D.node;if(ye(Y)||!D.parent||T.has(D.parent.key))return;if(ye(D.parent.node)){T.add(H.key);return}var z=!0,be=!1;(H.children||[]).filter(function(_){return!ye(_.node)}).forEach(function(_){var U=_.key,F=re.has(U);z&&!F&&(z=!1),!be&&(F||Ee.has(U))&&(be=!0)}),z&&re.add(H.key),be&&Ee.add(H.key),T.add(H.key)})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(R(Ee,re))}}function r(fe,le,w,ye,re){for(var Ee=new Set(fe),xe=new Set(le),Q=0;Q<=ye;Q+=1){var T=w.get(Q)||new Set;T.forEach(function(H){var Y=H.key,z=H.node,be=H.children,_=be===void 0?[]:be;!Ee.has(Y)&&!xe.has(Y)&&!re(z)&&_.filter(function(U){return!re(U.node)}).forEach(function(U){Ee.delete(U.key)})})}xe=new Set;for(var C=new Set,L=ye;L>=0;L-=1){var D=w.get(L)||new Set;D.forEach(function(H){var Y=H.parent,z=H.node;if(re(z)||!H.parent||C.has(H.parent.key))return;if(re(H.parent.node)){C.add(Y.key);return}var be=!0,_=!1;(Y.children||[]).filter(function(U){return!re(U.node)}).forEach(function(U){var F=U.key,h=Ee.has(F);be&&!h&&(be=!1),!_&&(h||xe.has(F))&&(_=!0)}),be||Ee.delete(Y.key),_&&xe.add(Y.key),C.add(Y.key)})}return{checkedKeys:Array.from(Ee),halfCheckedKeys:Array.from(R(xe,Ee))}}function g(fe,le,w,ye){var re=[],Ee;ye?Ee=ye:Ee=Oe;var xe=new Set(fe.filter(function(L){var D=!!w[L];return D||re.push(L),D})),Q=new Map,T=0;Object.keys(w).forEach(function(L){var D=w[L],H=D.level,Y=Q.get(H);Y||(Y=new Set,Q.set(H,Y)),Y.add(D),T=Math.max(T,H)}),Object(S.a)(!re.length,"Tree missing follow keys: ".concat(re.slice(0,100).map(function(L){return"'".concat(L,"'")}).join(", ")));var C;return le===!0?C=N(xe,Q,T,Ee):C=r(xe,le.halfCheckedKeys,Q,T,Ee),C}},ORPY:function(Be,ee,n){Be.exports={sendToClass:"sendToClass___2FQ8x"}},OZM5:function(Be,ee,n){"use strict";n.d(ee,"b",function(){return ye}),n.d(ee,"a",function(){return re}),n.d(ee,"k",function(){return Ee}),n.d(ee,"h",function(){return xe}),n.d(ee,"i",function(){return Q}),n.d(ee,"g",function(){return T}),n.d(ee,"c",function(){return C}),n.d(ee,"d",function(){return L}),n.d(ee,"j",function(){return Y}),n.d(ee,"e",function(){return z}),n.d(ee,"f",function(){return be});var S=n("KQm4"),R=n("U8pU"),Oe=n("Ff2n"),N=n("q1tI"),r=n.n(N),g=n("Kwbf"),fe=n("WaYH"),le=.25,w=2;function ye(_,U){var F=_.slice(),h=F.indexOf(U);return h>=0&&F.splice(h,1),F}function re(_,U){var F=_.slice();return F.indexOf(U)===-1&&F.push(U),F}function Ee(_){return _.split("-")}function xe(_,U){return"".concat(_,"-").concat(U)}function Q(_){return _&&_.type&&_.type.isTreeNode}function T(_,U){var F=[_],h=U[_];function d(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(O){var M=O.key,x=O.children;F.push(M),d(x)})}return d(h.children),F}function C(_,U){var F=_.clientY,h=U.selectHandle.getBoundingClientRect(),d=h.top,i=h.bottom,O=h.height,M=Math.max(O*le,w);return F<=d+M?-1:F>=i-M?1:0}function L(_,U){if(!_)return;var F=U.multiple;return F?_.slice():_.length?[_[0]]:_}var D=function(U){return U};function H(_,U){if(!_)return[];var F=U||{},h=F.processProps,d=h===void 0?D:h,i=Array.isArray(_)?_:[_];return i.map(function(O){var M=O.children,x=Object(Oe.a)(O,["children"]),c=H(M,U);return r.a.createElement(fe.a,Object.assign({},d(x)),c)})}function Y(_){if(!_)return null;var U;if(Array.isArray(_))U={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(R.a)(_)==="object")U={checkedKeys:_.checked||void 0,halfCheckedKeys:_.halfChecked||void 0};else return Object(g.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function z(_,U){var F=new Set;function h(d){if(F.has(d))return;var i=U[d];if(!i)return;F.add(d);var O=i.parent,M=i.node;if(M.disabled)return;O&&h(O.key)}return(_||[]).forEach(function(d){h(d)}),Object(S.a)(F)}function be(_){var U={};return Object.keys(_).forEach(function(F){(F.startsWith("data-")||F.startsWith("aria-"))&&(U[F]=_[F])}),U}},PEfE:function(Be,ee,n){Be.exports={title:"title___316_5",radioWrap:"radioWrap___2b58p",row:"row___3Y_zu",radio:"radio___3wz7l",colorFF0000:"colorFF0000___3JfbP",pagination:"pagination___3UF9N",modalColumn:"modalColumn___2C76i",modalRow:"modalRow___3eIQ6",sup:"sup___1b5Qg"}},"SA+Z":function(Be,ee,n){var S=n("wTVA"),R=n("EbDI"),Oe=n("ZhPi"),N=n("wkBT");function r(g){return S(g)||R(g)||Oe(g)||N()}Be.exports=r,Be.exports.__esModule=!0,Be.exports.default=Be.exports},WaYH:function(Be,ee,n){"use strict";var S=n("rePB"),R=n("Ff2n"),Oe=n("VTBJ"),N=n("1OyB"),r=n("vuIU"),g=n("JX7q"),fe=n("Ji7U"),le=n("LK+K"),w=n("q1tI"),ye=n("TSYQ"),re=n.n(ye),Ee=n("sboe"),xe=n("OZM5"),Q=function(U){var F=U.prefixCls,h=U.level,d=U.isStart,i=U.isEnd;if(!h)return null;for(var O="".concat(F,"-indent-unit"),M=[],x=0;x1&&arguments[1]!==void 0?arguments[1]:!1,pe=W.getAttribute("id")||W.getAttribute("data-reactid")||W.getAttribute("name");if($&&m[pe])return m[pe];var te=window.getComputedStyle(W),K=te.getPropertyValue("box-sizing")||te.getPropertyValue("-moz-box-sizing")||te.getPropertyValue("-webkit-box-sizing"),B=parseFloat(te.getPropertyValue("padding-bottom"))+parseFloat(te.getPropertyValue("padding-top")),de=parseFloat(te.getPropertyValue("border-bottom-width"))+parseFloat(te.getPropertyValue("border-top-width")),De=c.map(function(ie){return"".concat(ie,":").concat(te.getPropertyValue(ie))}).join(";"),Fe={sizingStyle:De,paddingSize:B,borderSize:de,boxSizing:K};return $&&pe&&(m[pe]=Fe),Fe}function I(W){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),W.getAttribute("wrap")?P.setAttribute("wrap",W.getAttribute("wrap")):P.removeAttribute("wrap");var K=E(W,$),B=K.paddingSize,de=K.borderSize,De=K.boxSizing,Fe=K.sizingStyle;P.setAttribute("style","".concat(Fe,";").concat(x)),P.value=W.value||W.placeholder||"";var ie=Number.MIN_SAFE_INTEGER,Ue=Number.MAX_SAFE_INTEGER,qe=P.scrollHeight,Ve;if(De==="border-box"?qe+=de:De==="content-box"&&(qe-=B),pe!==null||te!==null){P.value=" ";var He=P.scrollHeight-B;pe!==null&&(ie=He*pe,De==="border-box"&&(ie=ie+B+de),qe=Math.max(ie,qe)),te!==null&&(Ue=He*te,De==="border-box"&&(Ue=Ue+B+de),Ve=qe>Ue?"":"hidden",qe=Math.min(Ue,qe))}return{height:qe,minHeight:ie,maxHeight:Ue,overflowY:Ve,resize:"none"}}var J=n("Gytx"),ne=n.n(J),k;(function(W){W[W.NONE=0]="NONE",W[W.RESIZING=1]="RESIZING",W[W.RESIZED=2]="RESIZED"})(k||(k={}));var ue=function(W){Object(N.a)(pe,W);var $=Object(r.a)(pe);function pe(te){var K;return Object(S.a)(this,pe),K=$.call(this,te),K.nextFrameActionId=void 0,K.resizeFrameId=void 0,K.textArea=void 0,K.saveTextArea=function(B){K.textArea=B},K.handleResize=function(B){var de=K.state.resizeStatus,De=K.props,Fe=De.autoSize,ie=De.onResize;if(de!==k.NONE)return;typeof ie=="function"&&ie(B),Fe&&K.resizeOnNextFrame()},K.resizeOnNextFrame=function(){cancelAnimationFrame(K.nextFrameActionId),K.nextFrameActionId=requestAnimationFrame(K.resizeTextarea)},K.resizeTextarea=function(){var B=K.props.autoSize;if(!B||!K.textArea)return;var de=B.minRows,De=B.maxRows,Fe=I(K.textArea,!1,de,De);K.setState({textareaStyles:Fe,resizeStatus:k.RESIZING},function(){cancelAnimationFrame(K.resizeFrameId),K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:k.RESIZED},function(){K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:k.NONE}),K.fixFirefoxAutoScroll()})})})})},K.renderTextArea=function(){var B=K.props,de=B.prefixCls,De=de===void 0?"rc-textarea":de,Fe=B.autoSize,ie=B.onResize,Ue=B.className,qe=B.disabled,Ve=K.state,He=Ve.textareaStyles,ht=Ve.resizeStatus,it=Object(i.a)(K.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ie=M()(De,Ue,Object(le.a)({},"".concat(De,"-disabled"),qe));"value"in it&&(it.value=it.value||"");var ze=Object(fe.a)(Object(fe.a)(Object(fe.a)({},K.props.style),He),ht===k.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return g.createElement(d,{onResize:K.handleResize,disabled:!(Fe||ie)},g.createElement("textarea",Object(R.a)({},it,{className:Ie,style:ze,ref:K.saveTextArea})))},K.state={textareaStyles:{},resizeStatus:k.NONE},K}return Object(Oe.a)(pe,[{key:"componentDidUpdate",value:function(K){(K.value!==this.props.value||!ne()(K.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var K=this.textArea.selectionStart,B=this.textArea.selectionEnd;this.textArea.setSelectionRange(K,B)}}catch(de){}}},{key:"render",value:function(){return this.renderTextArea()}}]),pe}(g.Component),ce=ue,he=function(W){Object(N.a)(pe,W);var $=Object(r.a)(pe);function pe(te){var K;Object(S.a)(this,pe),K=$.call(this,te),K.resizableTextArea=void 0,K.focus=function(){K.resizableTextArea.textArea.focus()},K.saveTextArea=function(de){K.resizableTextArea=de},K.handleChange=function(de){var De=K.props.onChange;K.setValue(de.target.value,function(){K.resizableTextArea.resizeTextarea()}),De&&De(de)},K.handleKeyDown=function(de){var De=K.props,Fe=De.onPressEnter,ie=De.onKeyDown;de.keyCode===13&&Fe&&Fe(de),ie&&ie(de)};var B=typeof te.value=="undefined"||te.value===null?te.defaultValue:te.value;return K.state={value:B},K}return Object(Oe.a)(pe,[{key:"setValue",value:function(K,B){"value"in this.props||this.setState({value:K},B)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return g.createElement(ce,Object(R.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(K){return"value"in K?{value:K.value}:null}}]),pe}(g.Component),Re=ee.default=he},bT9E:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return S});var R=n("VTBJ");function S(Oe,N){var r=Object(R.a)({},Oe);return Array.isArray(N)&&N.forEach(function(g){delete r[g]}),r}},biw7:function(Be,ee,n){"use strict";var R=n("q1tI"),S=n.n(R),Oe=R.createContext(null);ee.a=Oe},dmUQ:function(Be,ee,n){"use strict";var R=n("Ff2n"),S=n("rePB"),Oe=n("1OyB"),N=n("vuIU"),r=n("Ji7U"),g=n("md7G"),fe=n("foSv"),le=n("q1tI"),w=n.n(le),ye=n("TSYQ"),re=n.n(ye),Ee=n("4IlW");function xe(i,O){var M=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);O&&(x=x.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),M.push.apply(M,x)}return M}function Q(i){for(var O=1;O1?ce-1:0),Re=1;Re1?J-1:0),k=1;k=0)return parseInt(I.slice(I.indexOf("e-")+2),10);var J=0;return I.indexOf(".")>=0&&(J=I.length-I.indexOf(".")-1),J},c.getInputDisplayValue=function(E){var I=E||c.state,J=I.focused,ne=I.inputValue,k=I.value,ue;J?ue=ne:ue=c.toPrecisionAsStep(k),ue==null&&(ue="");var ce=c.formatWrapper(ue);return _(c.props.decimalSeparator)&&(ce=ce.toString().replace(".",c.props.decimalSeparator)),ce},c.recordCursorPosition=function(){try{c.cursorStart=c.input.selectionStart,c.cursorEnd=c.input.selectionEnd,c.currentValue=c.input.value,c.cursorBefore=c.input.value.substring(0,c.cursorStart),c.cursorAfter=c.input.value.substring(c.cursorEnd)}catch(E){}},c.restoreByAfter=function(E){if(E===void 0)return!1;var I=c.input.value,J=I.lastIndexOf(E);if(J===-1)return!1;var ne=c.cursorBefore.length;return c.lastKeyCode===Ee.a.DELETE&&c.cursorBefore.charAt(ne-1)===E[0]?(c.fixCaret(ne,ne),!0):J+E.length===I.length?(c.fixCaret(J,J),!0):!1},c.partRestoreByAfter=function(E){return E===void 0?!1:Array.prototype.some.call(E,function(I,J){var ne=E.substring(J);return c.restoreByAfter(ne)})},c.isNotCompleteNumber=function(E){return isNaN(E)||E===""||E===null||E&&E.toString().indexOf(".")===E.toString().length-1},c.stop=function(){c.autoStepTimer&&clearTimeout(c.autoStepTimer)},c.down=function(E,I,J){c.pressingUpOrDown=!0,c.step("down",E,I,J)},c.up=function(E,I,J){c.pressingUpOrDown=!0,c.step("up",E,I,J)},c.saveInput=function(E){c.input=E};var m=x.value;m===void 0&&(m=x.defaultValue),c.state={focused:x.autoFocus};var P=c.getValidValue(c.toNumber(m));return c.state=Q(Q({},c.state),{},{inputValue:c.toPrecisionAsStep(P),value:P}),c}return Object(N.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(c){var m=this.props,P=m.value,E=m.onChange,I=m.max,J=m.min,ne=this.state.focused;if(c){if(!U(c.value,P)||!U(c.max,I)||!U(c.min,J)){var k=ne?P:this.getValidValue(P),ue;this.pressingUpOrDown?ue=k:this.inputting?ue=this.rawInput:ue=this.toPrecisionAsStep(k),this.setState({value:k,inputValue:ue})}var ce="value"in this.props?P:this.state.value;"max"in this.props&&c.max!==I&&typeof ce=="number"&&ce>I&&E&&E(I),"min"in this.props&&c.min!==J&&typeof ce=="number"&&ce1&&arguments[1]!==void 0?arguments[1]:this.props.min,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,E=parseFloat(c);return isNaN(E)?c:(EP&&(E=P),E)}},{key:"setValue",value:function(c,m){var P=this.props.precision,E=this.isNotCompleteNumber(parseFloat(c))?null:parseFloat(c),I=this.state.value,J=I===void 0?null:I,ne=this.state.inputValue,k=ne===void 0?null:ne,ue=typeof E=="number"?E.toFixed(P):"".concat(E),ce=E!==J||ue!=="".concat(k);return"value"in this.props?(k=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:k},m)):this.setState({value:E,inputValue:this.toPrecisionAsStep(c)},m),ce&&this.props.onChange(E),E}},{key:"getMaxPrecision",value:function(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.props,E=P.precision,I=P.step;if(_(E))return E;var J=this.getPrecision(m),ne=this.getPrecision(I),k=this.getPrecision(c);return c?Math.max(k,J+ne):J+ne}},{key:"getPrecisionFactor",value:function(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.getMaxPrecision(c,m);return Math.pow(10,P)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(c){return this.props.formatter?this.props.formatter(c):c}},{key:"toPrecisionAsStep",value:function(c){if(this.isNotCompleteNumber(c)||c==="")return c;var m=Math.abs(this.getMaxPrecision(c));return isNaN(m)?c.toString():Number(c).toFixed(m)}},{key:"toNumber",value:function(c){var m=this.props.precision,P=this.state.focused,E=c&&c.length>16&&P;return this.isNotCompleteNumber(c)||E?c:_(m)?Math.round(c*Math.pow(10,m))/Math.pow(10,m):Number(c)}},{key:"upStep",value:function(c,m){var P=this.props.step,E=this.getPrecisionFactor(c,m),I=Math.abs(this.getMaxPrecision(c,m)),J=((E*c+E*P*m)/E).toFixed(I);return this.toNumber(J)}},{key:"downStep",value:function(c,m){var P=this.props.step,E=this.getPrecisionFactor(c,m),I=Math.abs(this.getMaxPrecision(c,m)),J=((E*c-E*P*m)/E).toFixed(I);return this.toNumber(J)}},{key:"step",value:function(c,m){var P=this,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,I=arguments.length>3?arguments[3]:void 0;this.stop(),m&&(m.persist(),m.preventDefault());var J=this.props;if(J.disabled)return;var ne=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ne))return;var k=this["".concat(c,"Step")](ne,E),ue=k>J.max||kJ.max?k=J.max:k=he),me=(ct||ct===0)&&(isNaN(ct)||Number(ct)<=Re),oe=Ce||E||I,q=me||E||I,ae=re()("".concat(P,"-handler"),"".concat(P,"-handler-up"),Object(S.a)({},"".concat(P,"-handler-up-disabled"),oe)),Ne=re()("".concat(P,"-handler"),"".concat(P,"-handler-down"),Object(S.a)({},"".concat(P,"-handler-down-disabled"),q)),ge=J?{onTouchStart:oe?L:this.up,onTouchEnd:this.stop}:{onMouseDown:oe?L:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Se=J?{onTouchStart:q?L:this.down,onTouchEnd:this.stop}:{onMouseDown:q?L:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return w.a.createElement("div",{className:j,style:W,title:$,onMouseEnter:pe,onMouseLeave:te,onMouseOver:K,onMouseOut:B,onFocus:function(){return null},onBlur:function(){return null}},w.a.createElement("div",{className:"".concat(P,"-handler-wrap")},w.a.createElement("span",Object.assign({unselectable:"on"},ge,{role:"button","aria-label":"Increase Value","aria-disabled":oe,className:ae}),k||w.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-up-inner"),onClick:D})),w.a.createElement("span",Object.assign({unselectable:"on"},Se,{role:"button","aria-label":"Decrease Value","aria-disabled":q,className:Ne}),ue||w.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-down-inner"),onClick:D}))),w.a.createElement("div",{className:"".concat(P,"-input-wrap")},w.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Re,"aria-valuemax":he,"aria-valuenow":ct,required:de,type:ie,placeholder:Ue,onPaste:Dt,onClick:De,onMouseUp:this.onMouseUp,className:"".concat(P,"-input"),tabIndex:Fe,autoComplete:ne,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Z?this.onKeyDown:L,onKeyUp:Z?this.onKeyUp:L,autoFocus:Ie,maxLength:it,readOnly:I,disabled:E,max:he,min:Re,step:ht,name:ze,title:$,id:qe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ve),pattern:He,inputMode:Ve,onInput:Pt},G))))}}]),M}(w.a.Component);F.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:be,min:-be,step:1,style:{},onChange:L,onKeyDown:L,onPressEnter:L,onFocus:L,onBlur:L,parser:H,required:!1,autoComplete:"off"};var h=F,d=ee.a=h},fyJ8:function(Be,ee,n){"use strict";var R=n("rePB"),S=n("VTBJ"),Oe=n("Ff2n"),N=n("U8pU"),r=n("q1tI"),g=n.n(r),fe=n("TSYQ"),le=n.n(fe),w=n("c+Xe"),ye=n("sR1s");function re(C){return C&&Object(N.a)(C)==="object"&&!Array.isArray(C)&&!r.isValidElement(C)}function Ee(C){return typeof C=="string"?!0:Object(w.c)(C)}function xe(C,L){var D,H=C.prefixCls,Y=C.className,z=C.record,be=C.index,_=C.dataIndex,U=C.render,F=C.children,h=C.component,d=h===void 0?"td":h,i=C.colSpan,O=C.rowSpan,M=C.fixLeft,x=C.fixRight,c=C.firstFixLeft,m=C.lastFixLeft,P=C.firstFixRight,E=C.lastFixRight,I=C.appendNode,J=C.additionalProps,ne=J===void 0?{}:J,k=C.ellipsis,ue=C.align,ce=C.rowType,he=C.isSticky,Re="".concat(H,"-cell"),W,$;if(F)$=F;else{var pe=Object(ye.b)(z,_);if($=pe,U){var te=U(pe,z,be);re(te)?($=te.children,W=te.props):$=te}}Object(N.a)($)==="object"&&!Array.isArray($)&&!r.isValidElement($)&&($=null),k&&(m||P)&&($=r.createElement("span",{className:"".concat(Re,"-content")},$));var K=W||{},B=K.colSpan,de=K.rowSpan,De=K.style,Fe=K.className,ie=Object(Oe.a)(K,["colSpan","rowSpan","style","className"]),Ue=B!==void 0?B:i,qe=de!==void 0?de:O;if(Ue===0||qe===0)return null;var Ve={},He=typeof M=="number",ht=typeof x=="number";He&&(Ve.position="sticky",Ve.left=M),ht&&(Ve.position="sticky",Ve.right=x);var it={};ue&&(it.textAlign=ue);var Ie,ze=k===!0?{showTitle:!0}:k;ze&&(ze.showTitle||ce==="header")&&(typeof $=="string"||typeof $=="number"?Ie=$.toString():r.isValidElement($)&&typeof $.props.children=="string"&&(Ie=$.props.children));var Dt=Object(S.a)(Object(S.a)(Object(S.a)({title:Ie},ie),ne),{},{colSpan:Ue&&Ue!==1?Ue:null,rowSpan:qe&&qe!==1?qe:null,className:le()(Re,Y,(D={},Object(R.a)(D,"".concat(Re,"-fix-left"),He),Object(R.a)(D,"".concat(Re,"-fix-left-first"),c),Object(R.a)(D,"".concat(Re,"-fix-left-last"),m),Object(R.a)(D,"".concat(Re,"-fix-right"),ht),Object(R.a)(D,"".concat(Re,"-fix-right-first"),P),Object(R.a)(D,"".concat(Re,"-fix-right-last"),E),Object(R.a)(D,"".concat(Re,"-ellipsis"),k),Object(R.a)(D,"".concat(Re,"-with-append"),I),Object(R.a)(D,"".concat(Re,"-fix-sticky"),(He||ht)&&he),D),ne.className,Fe),style:Object(S.a)(Object(S.a)(Object(S.a)(Object(S.a)({},ne.style),it),Ve),De),ref:Ee(d)?L:null});return r.createElement(d,Object.assign({},Dt),I,$)}var Q=r.forwardRef(xe);Q.displayName="Cell";var T=r.memo(Q,function(C,L){return L.shouldCellUpdate?!L.shouldCellUpdate(L.record,C.record):!1});ee.a=T},hW8S:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return N}),n.d(ee,"c",function(){return r}),n.d(ee,"b",function(){return g});var R=n("VTBJ"),S=n("Ff2n"),Oe=n("Kwbf"),N="RC_TABLE_INTERNAL_COL_DEFINE";function r(fe){var le=fe.expandable,w=Object(S.a)(fe,["expandable"]);return"expandable"in fe?Object(R.a)(Object(R.a)({},w),le):w}function g(fe){return Object.keys(fe).reduce(function(le,w){return(w.substr(0,5)==="data-"||w.substr(0,5)==="aria-")&&(le[w]=fe[w]),le},{})}},k3GJ:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return mo});var R=n("rePB"),S=n("ODXe"),Oe=n("Ff2n"),N=n("VTBJ"),r=n("q1tI"),g=n("TSYQ"),fe=n.n(g),le=n("Zm9Q"),w=n("6cGi"),ye=n("KQm4"),re=n("xEkU"),Ee=n.n(re),xe=n("t23M");function Q(o){var f=Object(r.useRef)(),v=Object(r.useRef)(!1);function l(){for(var e=arguments.length,a=new Array(e),t=0;ty&&(V=y-X),Object(r.useMemo)(function(){if(!a.length)return[0,0];for(var se=a.length,we=se,Ye=0;Yep+V){we=Ye-1;break}}for(var Qe=0,Je=se-1;Je>=0;Je-=1){var Xe=o.get(a[Je].key)||z;if(Xe[b]1&&arguments[1]!==void 0?arguments[1]:!1,l=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(l){if(v){var e=getComputedStyle(f),a=e.marginLeft,t=e.marginRight;l+=+a.replace("px","")+ +t.replace("px","")}l=+l.toFixed(6)}return l||0},Ie=function(f,v,l){f&&Object(P.a)(f.style)==="object"&&(f.style[v]=l)},ze=function(){return Fe.any},Dt=n("bdgK"),Pt=n("i8i4"),St=n.n(Pt),yt=n("wgJM"),ct=n("l4aY"),Jt=n("m+aA"),j=n("c+Xe"),G=n("zT1h"),Z=n("QC+M");function ve(o,f,v){return v?o[0]===f[0]:o[0]===f[0]&&o[1]===f[1]}function Ce(o,f,v){var l=o[f]||{};return Object(N.a)(Object(N.a)({},l),v)}function me(o,f,v,l){for(var e=v.points,a=Object.keys(o),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(yt.a)(function(){e<=1?l({isCanceled:function(){return a!==o.current}}):v(l,e-1)});o.current=a}return r.useEffect(function(){return function(){f()}},[]),[v,f]},mn=[ot,vt,mt,ke],En=!1,nn=!0;function an(o){return o===mt||o===ke}var Wt=function(o,f){var v=r.useState(At),l=Object(S.a)(v,2),e=l[0],a=l[1],t=Ot(),s=Object(S.a)(t,2),u=s[0],b=s[1];function p(){a(ot)}return kt(function(){if(e!==At&&e!==ke){var y=mn.indexOf(e),A=mn[y+1],X=f(e);X===En?a(A):u(function(V){function se(){if(V.isCanceled())return;a(A)}X===!0?se():Promise.resolve(X).then(se)})}},[o,e]),r.useEffect(function(){return function(){b()}},[]),[p,e]},Mn=function(o){var f=Object(r.useRef)(),v=Object(r.useRef)(o);v.current=o;var l=r.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(Ft,l),t.removeEventListener(Le,l))}function a(t){f.current&&f.current!==t&&e(f.current),t&&t!==f.current&&(t.addEventListener(Ft,l),t.addEventListener(Le,l),f.current=t)}return r.useEffect(function(){return function(){e(f.current)}},[]),[a,e]};function un(o,f,v,l){var e=l.motionEnter,a=e===void 0?!0:e,t=l.motionAppear,s=t===void 0?!0:t,u=l.motionLeave,b=u===void 0?!0:u,p=l.motionDeadline,y=l.motionLeaveImmediately,A=l.onAppearPrepare,X=l.onEnterPrepare,V=l.onLeavePrepare,se=l.onAppearStart,we=l.onEnterStart,Ye=l.onLeaveStart,We=l.onAppearActive,Qe=l.onEnterActive,Je=l.onLeaveActive,Xe=l.onAppearEnd,$e=l.onEnterEnd,dt=l.onLeaveEnd,Ze=l.onVisibleChanged,Ut=Ct(),gt=Object(S.a)(Ut,2),_e=gt[0],Pe=gt[1],et=Ct(st),rt=Object(S.a)(et,2),Te=rt[0],ft=rt[1],Rt=Ct(null),pt=Object(S.a)(Rt,2),xt=pt[0],_t=pt[1],$t=Object(r.useRef)(!1),sn=Object(r.useRef)(null),Kt=Object(r.useRef)(!1),ln=Object(r.useRef)(null);function xn(){var Nt=v();return Nt||ln.current}var dn=Object(r.useRef)(!1);function fn(Nt){var bt=xn();if(Nt&&!Nt.deadline&&Nt.target!==bt)return;var Yt;Te===jt&&dn.current?Yt=Xe==null?void 0:Xe(bt,Nt):Te===It&&dn.current?Yt=$e==null?void 0:$e(bt,Nt):Te===at&&dn.current&&(Yt=dt==null?void 0:dt(bt,Nt)),Yt!==!1&&!Kt.current&&(ft(st),_t(null))}var zt=Mn(fn),tn=Object(S.a)(zt,1),Gt=tn[0],Ht=r.useMemo(function(){var Nt,bt,Yt;switch(Te){case"appear":return Nt={},Object(R.a)(Nt,ot,A),Object(R.a)(Nt,vt,se),Object(R.a)(Nt,mt,We),Nt;case"enter":return bt={},Object(R.a)(bt,ot,X),Object(R.a)(bt,vt,we),Object(R.a)(bt,mt,Qe),bt;case"leave":return Yt={},Object(R.a)(Yt,ot,V),Object(R.a)(Yt,vt,Ye),Object(R.a)(Yt,mt,Je),Yt;default:return{}}},[Te]),wn=Wt(Te,function(Nt){if(Nt===ot){var bt=Ht[ot];return bt?bt(xn()):En}if(Tt in Ht){var Yt;_t(((Yt=Ht[Tt])===null||Yt===void 0?void 0:Yt.call(Ht,xn(),null))||null)}return Tt===mt&&(Gt(xn()),p>0&&(clearTimeout(sn.current),sn.current=setTimeout(function(){fn({deadline:!0})},p))),nn}),Ln=Object(S.a)(wn,2),Wn=Ln[0],Tt=Ln[1],Sn=an(Tt);dn.current=Sn,kt(function(){Pe(f);var Nt=$t.current;if($t.current=!0,!o)return;var bt;!Nt&&f&&s&&(bt=jt),Nt&&f&&a&&(bt=It),(Nt&&!f&&b||!Nt&&y&&!f&&b)&&(bt=at),bt&&(ft(bt),Wn())},[f]),Object(r.useEffect)(function(){(Te===jt&&!s||Te===It&&!a||Te===at&&!b)&&ft(st)},[s,a,b]),Object(r.useEffect)(function(){return function(){clearTimeout(sn.current),Kt.current=!0}},[]),Object(r.useEffect)(function(){_e!==void 0&&Te===st&&(Ze==null||Ze(_e))},[_e,Te]);var Vn=xt;return Ht[ot]&&Tt===vt&&(Vn=Object(N.a)({transition:"none"},Vn)),[Te,Tt,Vn,_e!=null?_e:f]}var yn=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){return Object(U.a)(this,v),f.apply(this,arguments)}return Object(F.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(r.Component),Qt=yn;function In(o){var f=o;Object(P.a)(o)==="object"&&(f=o.transitionSupport);function v(e){return!!(e.motionName&&f)}var l=r.forwardRef(function(e,a){var t=e.visible,s=t===void 0?!0:t,u=e.removeOnLeave,b=u===void 0?!0:u,p=e.forceRender,y=e.children,A=e.motionName,X=e.leavedClassName,V=e.eventProps,se=v(e),we=Object(r.useRef)(),Ye=Object(r.useRef)();function We(){try{return Object(Jt.a)(we.current||Ye.current)}catch(ft){return null}}var Qe=un(se,s,We,e),Je=Object(S.a)(Qe,4),Xe=Je[0],$e=Je[1],dt=Je[2],Ze=Je[3],Ut=r.useRef(Ze);Ze&&(Ut.current=!0);var gt=Object(r.useRef)(a);gt.current=a;var _e=r.useCallback(function(ft){we.current=ft,Object(j.b)(gt.current,ft)},[]),Pe,et=Object(N.a)(Object(N.a)({},V),{},{visible:s});if(!y)Pe=null;else if(Xe===st||!v(e))Ze?Pe=y(Object(N.a)({},et),_e):!b&&Ut.current?Pe=y(Object(N.a)(Object(N.a)({},et),{},{className:X}),_e):p?Pe=y(Object(N.a)(Object(N.a)({},et),{},{style:{display:"none"}}),_e):Pe=null;else{var rt,Te;$e===ot?Te="prepare":an($e)?Te="active":$e===vt&&(Te="start"),Pe=y(Object(N.a)(Object(N.a)({},et),{},{className:fe()(Mt(A,Xe),(rt={},Object(R.a)(rt,Mt(A,"".concat(Xe,"-").concat(Te)),Te),Object(R.a)(rt,A,typeof A=="string"),rt)),style:dt}),_e)}return r.createElement(Qt,{ref:Ye},Pe)});return l.displayName="CSSMotion",l}var jn=In(nt),kn="add",Rn="keep",Cn="remove",Nn="removed";function Hn(o){var f;return o&&Object(P.a)(o)==="object"&&"key"in o?f=o:f={key:o},Object(N.a)(Object(N.a)({},f),{},{key:String(f.key)})}function Dn(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return o.map(Hn)}function Vt(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],l=0,e=f.length,a=Dn(o),t=Dn(f);a.forEach(function(b){for(var p=!1,y=l;y1});return u.forEach(function(b){v=v.filter(function(p){var y=p.key,A=p.status;return y!==b||A!==Cn}),v.forEach(function(p){p.key===b&&(p.status=Rn)})}),v}var en=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cn(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jn,v=function(l){Object(d.a)(a,l);var e=Object(i.a)(a);function a(){var t;return Object(U.a)(this,a),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(s){t.setState(function(u){var b=u.keyEntities;return{keyEntities:b.map(function(p){return p.key!==s?p:Object(N.a)(Object(N.a)({},p),{},{status:Nn})})}})},t}return Object(F.a)(a,[{key:"render",value:function(){var s=this,u=this.state.keyEntities,b=this.props,p=b.component,y=b.children,A=b.onVisibleChanged,X=Object(Oe.a)(b,["component","children","onVisibleChanged"]),V=p||r.Fragment,se={};return en.forEach(function(we){se[we]=X[we],delete X[we]}),delete X.keys,r.createElement(V,X,u.map(function(we){var Ye=we.status,We=Object(Oe.a)(we,["status"]),Qe=Ye===kn||Ye===Rn;return r.createElement(f,Object(_.a)({},se,{key:We.key,visible:Qe,eventProps:We,onVisibleChanged:function(Xe){A==null||A(Xe,{key:We.key}),Xe||s.removeKey(We.key)}}),y)}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var b=s.keys,p=u.keyEntities,y=Dn(b),A=Vt(p,y);return{keyEntities:A.filter(function(X){var V=p.find(function(se){var we=se.key;return X.key===we});return!(V&&V.status===Nn&&X.status===Cn)})}}}]),a}(r.Component);return v.defaultProps={component:"div"},v}var Zt=cn(nt),on=jn;function hn(o){var f=o.prefixCls,v=o.motion,l=o.animation,e=o.transitionName;return v||(l?{motionName:"".concat(f,"-").concat(l)}:e?{motionName:e}:null)}function Xn(o){var f=o.prefixCls,v=o.visible,l=o.zIndex,e=o.mask,a=o.maskMotion,t=o.maskAnimation,s=o.maskTransitionName;if(!e)return null;var u={};return(a||s||t)&&(u=Object(N.a)({motionAppear:!0},hn({motion:a,prefixCls:f,transitionName:s,animation:t}))),r.createElement(on,Object(_.a)({},u,{visible:v,removeOnLeave:!0}),function(b){var p=b.className;return r.createElement("div",{style:{zIndex:l},className:fe()("".concat(f,"-mask"),p)})})}var Kn=n("9mu1"),$n=n("o0o1"),Ta=n.n($n),Sa=n("HaE+"),Gn=["measure","align",null,"motion"],wt=function(o,f){var v=Object(r.useState)(null),l=Object(S.a)(v,2),e=l[0],a=l[1],t=Object(r.useRef)(),s=Object(r.useRef)(!1);function u(y){s.current||a(y)}function b(){yt.a.cancel(t.current)}function p(y){b(),t.current=Object(yt.a)(function(){u(function(A){switch(e){case"align":return"motion";case"motion":return"stable";default:}return A}),y==null||y()})}return Object(r.useEffect)(function(){u("measure")},[o]),Object(r.useEffect)(function(){switch(e){case"measure":f();break;default:}e&&(t.current=Object(yt.a)(Object(Sa.a)(Ta.a.mark(function y(){var A,X;return Ta.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:A=Gn.indexOf(e),X=Gn[A+1],X&&A!==-1&&u(X);case 3:case"end":return se.stop()}},y)}))))},[e]),Object(r.useEffect)(function(){return function(){s.current=!0,b()}},[]),[e,p]},Yn=function(o){var f=r.useState({width:0,height:0}),v=Object(S.a)(f,2),l=v[0],e=v[1];function a(s){e({width:s.offsetWidth,height:s.offsetHeight})}var t=r.useMemo(function(){var s={};if(o){var u=l.width,b=l.height;o.indexOf("height")!==-1&&b?s.height=b:o.indexOf("minHeight")!==-1&&b&&(s.minHeight=b),o.indexOf("width")!==-1&&u?s.width=u:o.indexOf("minWidth")!==-1&&u&&(s.minWidth=u)}return s},[o,l]);return[t,a]},Jn=r.forwardRef(function(o,f){var v=o.visible,l=o.prefixCls,e=o.className,a=o.style,t=o.children,s=o.zIndex,u=o.stretch,b=o.destroyPopupOnHide,p=o.forceRender,y=o.align,A=o.point,X=o.getRootDomNode,V=o.getClassNameFromAlign,se=o.onAlign,we=o.onMouseEnter,Ye=o.onMouseLeave,We=o.onMouseDown,Qe=o.onTouchStart,Je=Object(r.useRef)(),Xe=Object(r.useRef)(),$e=Object(r.useState)(),dt=Object(S.a)($e,2),Ze=dt[0],Ut=dt[1],gt=Yn(u),_e=Object(S.a)(gt,2),Pe=_e[0],et=_e[1];function rt(){u&&et(X())}var Te=wt(v,rt),ft=Object(S.a)(Te,2),Rt=ft[0],pt=ft[1],xt=Object(r.useRef)();function _t(){return A||X}function $t(){var zt;(zt=Je.current)===null||zt===void 0||zt.forceAlign()}function sn(zt,tn){var Gt=V(tn);Ze!==Gt&&Ut(Gt),Rt==="align"&&(Ze!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Ht;(Ht=xt.current)===null||Ht===void 0||Ht.call(xt)}),se==null||se(zt,tn))}var Kt=Object(N.a)({},hn(o));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(zt){var tn=Kt[zt];Kt[zt]=function(Gt,Ht){return pt(),tn==null?void 0:tn(Gt,Ht)}});function ln(){return new Promise(function(zt){xt.current=zt})}r.useEffect(function(){!Kt.motionName&&Rt==="motion"&&pt()},[Kt.motionName,Rt]),r.useImperativeHandle(f,function(){return{forceAlign:$t,getElement:function(){return Xe.current}}});var xn=Object(N.a)(Object(N.a)({},Pe),{},{zIndex:s,opacity:Rt==="motion"||Rt==="stable"||!v?void 0:0,pointerEvents:Rt==="stable"?void 0:"none"},a),dn=!0;(y==null?void 0:y.points)&&(Rt==="align"||Rt==="stable")&&(dn=!1);var fn=t;return r.Children.count(t)>1&&(fn=r.createElement("div",{className:"".concat(l,"-content")},t)),r.createElement(on,Object(_.a)({visible:v,ref:Xe,leavedClassName:"".concat(l,"-hidden")},Kt,{onAppearPrepare:ln,onEnterPrepare:ln,removeOnLeave:b,forceRender:p}),function(zt,tn){var Gt=zt.className,Ht=zt.style,wn=fe()(l,e,Ze,Gt);return r.createElement(Kn.a,{target:_t(),key:"popup",ref:Je,monitorWindowResize:!0,disabled:dn,align:y,onAlign:sn},r.createElement("div",{ref:tn,className:wn,onMouseEnter:we,onMouseLeave:Ye,onMouseDownCapture:We,onTouchStartCapture:Qe,style:Object(N.a)(Object(N.a)({},Ht),xn)},fn))})});Jn.displayName="PopupInner";var Ra=Jn,vn=r.forwardRef(function(o,f){var v=o.prefixCls,l=o.visible,e=o.zIndex,a=o.children,t=o.mobile;t=t===void 0?{}:t;var s=t.popupClassName,u=t.popupStyle,b=t.popupMotion,p=b===void 0?{}:b,y=t.popupRender,A=r.useRef();r.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return A.current}}});var X=Object(N.a)({zIndex:e},u),V=a;return r.Children.count(a)>1&&(V=r.createElement("div",{className:"".concat(v,"-content")},a)),y&&(V=y(V)),r.createElement(on,Object(_.a)({visible:l,ref:A,removeOnLeave:!0},p),function(se,we){var Ye=se.className,We=se.style,Qe=fe()(v,s,Ye);return r.createElement("div",{ref:we,className:Qe,style:Object(N.a)(Object(N.a)({},We),X)},V)})});vn.displayName="MobilePopupInner";var Va=vn,Na=["visible","mobile"],oa=r.forwardRef(function(o,f){var v=o.visible,l=o.mobile,e=Object(Oe.a)(o,Na),a=Object(r.useState)(v),t=Object(S.a)(a,2),s=t[0],u=t[1],b=Object(r.useState)(!1),p=Object(S.a)(b,2),y=p[0],A=p[1],X=Object(N.a)(Object(N.a)({},e),{},{visible:s});Object(r.useEffect)(function(){u(v),v&&l&&A(oe())},[v,l]);var V=y?r.createElement(Va,Object(_.a)({},X,{mobile:l,ref:f})):r.createElement(Ra,Object(_.a)({},X,{ref:f}));return r.createElement("div",null,r.createElement(Xn,X),V)});oa.displayName="Popup";var Ha=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(o){return o?o.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(o){var f=function(v){Object(d.a)(e,v);var l=Object(i.a)(e);function e(a){var t;Object(U.a)(this,e),t=l.call(this,a),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(u){var b=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",u),t.delaySetPopupVisible(!0,b,b?null:u)},t.onMouseMove=function(u){t.fireEvents("onMouseMove",u),t.setPoint(u)},t.onMouseLeave=function(u){t.fireEvents("onMouseLeave",u),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(u){var b;if(u.relatedTarget&&!u.relatedTarget.setTimeout&&Object(ct.a)((b=t.popupRef.current)===null||b===void 0?void 0:b.getElement(),u.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(u){t.fireEvents("onFocus",u),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(u){t.fireEvents("onMouseDown",u),t.preClickTime=Date.now()},t.onTouchStart=function(u){t.fireEvents("onTouchStart",u),t.preTouchTime=Date.now()},t.onBlur=function(u){t.fireEvents("onBlur",u),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(u){u.preventDefault(),t.fireEvents("onContextMenu",u),t.setPopupVisible(!0,u)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(u){if(t.fireEvents("onClick",u),t.focusTime){var b;if(t.preClickTime&&t.preTouchTime?b=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?b=t.preClickTime:t.preTouchTime&&(b=t.preTouchTime),Math.abs(b-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var p=!t.state.popupVisible;(t.isClickToHide()&&!p||p&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,u)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var u;(u=t.context).onPopupMouseDown.apply(u,arguments)}},t.onDocumentClick=function(u){if(t.props.mask&&!t.props.maskClosable)return;var b=u.target,p=t.getRootDomNode(),y=t.getPopupDomNode();(!Object(ct.a)(p,b)||t.isContextMenuOnly())&&!Object(ct.a)(y,b)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var u=t.props.getTriggerDOMNode;if(u)return u(t.triggerRef.current);try{var b=Object(Jt.a)(t.triggerRef.current);if(b)return b}catch(p){}return St.a.findDOMNode(Object(h.a)(t))},t.getPopupClassNameFromAlign=function(u){var b=[],p=t.props,y=p.popupPlacement,A=p.builtinPlacements,X=p.prefixCls,V=p.alignPoint,se=p.getPopupClassNameFromAlign;return y&&A&&b.push(me(A,X,u,V)),se&&b.push(se(u)),b.join(" ")},t.getComponent=function(){var u=t.props,b=u.prefixCls,p=u.destroyPopupOnHide,y=u.popupClassName,A=u.onPopupAlign,X=u.popupMotion,V=u.popupAnimation,se=u.popupTransitionName,we=u.popupStyle,Ye=u.mask,We=u.maskAnimation,Qe=u.maskTransitionName,Je=u.maskMotion,Xe=u.zIndex,$e=u.popup,dt=u.stretch,Ze=u.alignPoint,Ut=u.mobile,gt=u.forceRender,_e=t.state,Pe=_e.popupVisible,et=_e.point,rt=t.getPopupAlign(),Te={};return t.isMouseEnterToShow()&&(Te.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Te.onMouseLeave=t.onPopupMouseLeave),Te.onMouseDown=t.onPopupMouseDown,Te.onTouchStart=t.onPopupMouseDown,r.createElement(Ha,Object(_.a)({prefixCls:b,destroyPopupOnHide:p,visible:Pe,point:Ze&&et,className:y,align:rt,onAlign:A,animation:V,getClassNameFromAlign:t.getPopupClassNameFromAlign},Te,{stretch:dt,getRootDomNode:t.getRootDomNode,style:we,mask:Ye,zIndex:Xe,transitionName:se,maskAnimation:We,maskTransitionName:Qe,maskMotion:Je,ref:t.popupRef,motion:X,mobile:Ut,forceRender:gt}),typeof $e=="function"?$e():$e)},t.attachParent=function(u){yt.a.cancel(t.attachId);var b=t.props,p=b.getPopupContainer,y=b.getDocument,A=t.getRootDomNode(),X;p?(A||p.length===0)&&(X=p(A)):X=y(t.getRootDomNode()).body,X?X.appendChild(u):t.attachId=Object(yt.a)(function(){t.attachParent(u)})},t.getContainer=function(){var u=t.props.getDocument,b=u(t.getRootDomNode()).createElement("div");return b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",t.attachParent(b),b},t.setPoint=function(u){var b=t.props.alignPoint;if(!b||!u)return;t.setState({point:{pageX:u.pageX,pageY:u.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var s;return"popupVisible"in a?s=!!a.popupVisible:s=!!a.defaultPopupVisible,t.state={prevPopupVisible:s,popupVisible:s},Da.forEach(function(u){t["fire".concat(u)]=function(b){t.fireEvents(u,b)}}),t}return Object(F.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,s=this.state;if(s.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(G.a)(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(G.a)(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(G.a)(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(G.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),yt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,s=t.popupPlacement,u=t.popupAlign,b=t.builtinPlacements;return s&&b?Ce(b,s,u):u}},{key:"setPopupVisible",value:function(t,s){var u=this.props.alignPoint,b=this.state.popupVisible;this.clearDelayTimer(),b!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:b}),this.props.onPopupVisibleChange(t)),u&&s&&t&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(t,s,u){var b=this,p=s*1e3;if(this.clearDelayTimer(),p){var y=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){b.setPopupVisible(t,y),b.clearDelayTimer()},p)}else this.setPopupVisible(t,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var s=this.props.children.props,u=this.props;return s[t]&&u[t]?this["fire".concat(t)]:s[t]||u[t]}},{key:"isClickToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,s=t.action,u=t.hideAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,s=t.action,u=t.hideAction;return s.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,s=t.action,u=t.hideAction;return s.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,s){var u=this.props.children.props[t];u&&u(s);var b=this.props[t];b&&b(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,s=this.props,u=s.children,b=s.forceRender,p=s.alignPoint,y=s.className,A=s.autoDestroy,X=r.Children.only(u),V={key:"trigger"};this.isContextMenuToShow()?V.onContextMenu=this.onContextMenu:V.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(V.onClick=this.onClick,V.onMouseDown=this.onMouseDown,V.onTouchStart=this.onTouchStart):(V.onClick=this.createTwoChains("onClick"),V.onMouseDown=this.createTwoChains("onMouseDown"),V.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(V.onMouseEnter=this.onMouseEnter,p&&(V.onMouseMove=this.onMouseMove)):V.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?V.onMouseLeave=this.onMouseLeave:V.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(V.onFocus=this.onFocus,V.onBlur=this.onBlur):(V.onFocus=this.createTwoChains("onFocus"),V.onBlur=this.createTwoChains("onBlur"));var se=fe()(X&&X.props&&X.props.className,y);se&&(V.className=se);var we=Object(N.a)({},V);Object(j.c)(X)&&(we.ref=Object(j.a)(this.triggerRef,X.ref));var Ye=r.cloneElement(X,we),We;return(t||this.popupRef.current||b)&&(We=r.createElement(o,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&A&&(We=null),r.createElement(ra.Provider,{value:this.triggerContextValue},Ye,We)}}],[{key:"getDerivedStateFromProps",value:function(t,s){var u=t.popupVisible,b={};return u!==void 0&&s.popupVisible!==u&&(b.popupVisible=u,b.prevPopupVisible=s.popupVisible),b}}]),e}(r.Component);return f.contextType=ra,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var Ja=Ya(Z.a),On={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:On,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:On,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:On,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:On,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:On,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:On,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:On,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:On,offset:[4,0]}},sa=ia,rn=0,bn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},gn=function(f,v,l){var e=qe(v),a=f.getState();f.setState({defaultActiveFirst:Object(N.a)(Object(N.a)({},a.defaultActiveFirst),{},Object(R.a)({},e,l))})},la=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(l){var e;Object(U.a)(this,v),e=f.call(this,l),e.onDestroy=function(p){e.props.onDestroy(p)},e.onKeyDown=function(p){var y=p.keyCode,A=e.menuInstance,X=e.props.store,V=e.getVisible();if(y===C.a.ENTER)return e.onTitleClick(p),gn(X,e.props.eventKey,!0),!0;if(y===C.a.RIGHT)return V?A.onKeyDown(p):(e.triggerOpenChange(!0),gn(X,e.props.eventKey,!0)),!0;if(y===C.a.LEFT){var se;if(V)se=A.onKeyDown(p);else return;return se||(e.triggerOpenChange(!1),se=!0),se}return V&&(y===C.a.UP||y===C.a.DOWN)?A.onKeyDown(p):void 0},e.onOpenChange=function(p){e.props.onOpenChange(p)},e.onPopupVisibleChange=function(p){e.triggerOpenChange(p,p?"mouseenter":"mouseleave")},e.onMouseEnter=function(p){var y=e.props,A=y.eventKey,X=y.onMouseEnter,V=y.store;gn(V,e.props.eventKey,!1),X({key:A,domEvent:p})},e.onMouseLeave=function(p){var y=e.props,A=y.parentMenu,X=y.eventKey,V=y.onMouseLeave;A.subMenuInstance=Object(h.a)(e),V({key:X,domEvent:p})},e.onTitleMouseEnter=function(p){var y=e.props,A=y.eventKey,X=y.onItemHover,V=y.onTitleMouseEnter;X({key:A,hover:!0}),V({key:A,domEvent:p})},e.onTitleMouseLeave=function(p){var y=e.props,A=y.parentMenu,X=y.eventKey,V=y.onItemHover,se=y.onTitleMouseLeave;A.subMenuInstance=Object(h.a)(e),V({key:X,hover:!1}),se({key:X,domEvent:p})},e.onTitleClick=function(p){var y=Object(h.a)(e),A=y.props;if(A.onTitleClick({key:A.eventKey,domEvent:p}),A.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),gn(A.store,e.props.eventKey,!1)},e.onSubMenuClick=function(p){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(p))},e.onSelect=function(p){e.props.onSelect(p)},e.onDeselect=function(p){e.props.onDeselect(p)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(p){e.menuInstance=p},e.addKeyPath=function(p){return Object(N.a)(Object(N.a)({},p),{},{keyPath:(p.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(p,y){var A=e.props.eventKey,X=function(){e.onOpenChange({key:A,item:Object(h.a)(e),trigger:y,open:p})};y==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){X()},0):X()},e.isChildrenSelected=function(){var p={find:!1};return He(e.props.children,e.props.selectedKeys,p),p.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var p=Pt.findDOMNode(e.menuInstance);if(p.offsetWidth>=e.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(p){e.subMenuTitle=p},e.getBaseProps=function(){var p=Object(h.a)(e),y=p.props,A=e.getMode();return{mode:A==="horizontal"?"vertical":A,visible:e.getVisible(),level:y.level+1,inlineIndent:y.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:y.selectedKeys,eventKey:"".concat(y.eventKey,"-menu-"),openKeys:y.openKeys,motion:y.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:y.subMenuOpenDelay,parentMenu:Object(h.a)(e),subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,triggerSubMenuAction:y.triggerSubMenuAction,builtinPlacements:y.builtinPlacements,defaultActiveFirst:y.store.getState().defaultActiveFirst[qe(y.eventKey)],multiple:y.multiple,prefixCls:y.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:y.itemIcon,expandIcon:y.expandIcon,direction:y.direction}},e.getMotion=function(p,y){var A=Object(h.a)(e),X=A.haveRendered,V=e.props,se=V.motion,we=V.rootPrefixCls,Ye=Object(N.a)(Object(N.a)({},se),{},{leavedClassName:"".concat(we,"-hidden"),removeOnLeave:!1,motionAppear:X||!y||p!=="inline"});return Ye};var a=l.store,t=l.eventKey,s=a.getState(),u=s.defaultActiveFirst;e.isRootMenu=!1;var b=!1;return u&&(b=u[t]),gn(a,t,b),e.state={mode:l.mode,isOpen:l.isOpen},e}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,a=this.props,t=a.mode,s=a.parentMenu,u=a.manualRef,b=a.isOpen,p=function(){e.setState({mode:t,isOpen:b})},y=b!==this.state.isOpen,A=t!==this.state.mode;if((A||y)&&(yt.a.cancel(this.updateStateRaf),A?this.updateStateRaf=Object(yt.a)(p):p()),u&&u(this),t!=="horizontal"||!(s==null?void 0:s.isRootMenu)||!b)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,a=e.onDestroy,t=e.eventKey;a&&a(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),yt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,a){var t=this.getBaseProps();return r.createElement(ea,Object(_.a)({},t,{id:this.internalMenuId,className:e,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,a=this.getBaseProps(),t=a.mode,s=a.visible,u=a.forceSubMenuRender,b=a.direction,p=this.getMotion(t,s);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||s||u,!this.haveOpened)return r.createElement("div",null);var y=fe()("".concat(a.prefixCls,"-sub"),Object(R.a)({},"".concat(a.prefixCls,"-rtl"),b==="rtl"));return this.isInlineMode()?r.createElement(on,Object(_.a)({visible:a.visible,forceRender:u},p),function(A){var X=A.className,V=A.style,se=fe()(y,X);return e.renderPopupMenu(se,V)}):this.renderPopupMenu(y)}},{key:"render",value:function(){var e,a,t,s=Object(N.a)({},this.props),u=this.getVisible(),b=this.getPrefixCls(),p=this.isInlineMode(),y=this.getMode(),A=fe()(b,"".concat(b,"-").concat(y),(e={},Object(R.a)(e,s.className,!!s.className),Object(R.a)(e,this.getOpenClassName(),u),Object(R.a)(e,this.getActiveClassName(),s.active||u&&!p),Object(R.a)(e,this.getDisabledClassName(),s.disabled),Object(R.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(s.eventKey?this.internalMenuId="".concat(s.eventKey,"$Menu"):(rn+=1,this.internalMenuId="$__$".concat(rn,"$Menu")));var X={},V={},se={};s.disabled||(X={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},V={onClick:this.onTitleClick},se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var we={},Ye=s.direction,We=Ye==="rtl";p&&(We?we.paddingRight=s.inlineIndent*s.level:we.paddingLeft=s.inlineIndent*s.level);var Qe={};this.getVisible()&&(Qe={"aria-owns":this.internalMenuId});var Je=null;y!=="horizontal"&&(Je=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Je=r.createElement(this.props.expandIcon,Object(N.a)({},this.props))));var Xe=r.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:we,className:"".concat(b,"-title"),role:"button"},se,V,{"aria-expanded":u},Qe,{"aria-haspopup":"true",title:typeof s.title=="string"?s.title:void 0}),s.title,Je||r.createElement("i",{className:"".concat(b,"-arrow")})),$e=this.renderChildren(),dt=((a=s.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?s.parentMenu.props.getPopupContainer:function(_t){return _t.parentNode},Ze=bn[y],Ut=s.popupOffset?{offset:s.popupOffset}:{},gt=fe()((t={},Object(R.a)(t,s.popupClassName,s.popupClassName&&!p),Object(R.a)(t,"".concat(b,"-rtl"),We),t)),_e=s.disabled,Pe=s.triggerSubMenuAction,et=s.subMenuOpenDelay,rt=s.forceSubMenuRender,Te=s.subMenuCloseDelay,ft=s.builtinPlacements;ht.forEach(function(_t){return delete s[_t]}),delete s.onClick;var Rt=We?Object(N.a)(Object(N.a)({},Pa),ft):Object(N.a)(Object(N.a)({},ia),ft);delete s.direction;var pt=this.getBaseProps(),xt=p?null:this.getMotion(pt.mode,pt.visible);return r.createElement("li",Object(_.a)({},s,X,{className:A,role:"menuitem"}),r.createElement(Ja,{prefixCls:b,popupClassName:fe()("".concat(b,"-popup"),gt),getPopupContainer:dt,builtinPlacements:Rt,popupPlacement:Ze,popupVisible:p?!1:u,popupAlign:Ut,popup:p?null:$e,action:_e||p?[]:[Pe],mouseEnterDelay:et,mouseLeaveDelay:Te,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:rt,popupMotion:xt},Xe),p?$e:null)}}]),v}(r.Component);la.defaultProps={onMouseEnter:ie,onMouseLeave:ie,onTitleMouseEnter:ie,onTitleMouseLeave:ie,onTitleClick:ie,manualRef:ie,mode:"vertical",title:""};var Fn=Object(O.b)(function(o,f){var v=o.openKeys,l=o.activeKey,e=o.selectedKeys,a=f.eventKey,t=f.subMenuKey;return{isOpen:v.indexOf(a)>-1,active:l[t]===a,selectedKeys:e}})(la);Fn.isSubMenu=!0;var Bn=Fn,_a="menuitem-overflowed",Qa=.5,Aa=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){var l;return Object(U.a)(this,v),l=f.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=r.createRef(),l.getMenuItemNodes=function(){var e=l.props.prefixCls,a=l.childRef.current;return a?[].slice.call(a.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(e,a,t){var s=l.props,u=s.overflowedIndicator,b=s.level,p=s.mode,y=s.prefixCls,A=s.theme;if(b!==1||p!=="horizontal")return null;var X=l.props.children[0],V=X.props,se=V.children,we=V.title,Ye=V.style,We=Object(Oe.a)(V,["children","title","style"]),Qe=Object(N.a)({},Ye),Je="".concat(e,"-overflowed-indicator"),Xe="".concat(e,"-overflowed-indicator");a.length===0&&t!==!0?Qe=Object(N.a)(Object(N.a)({},Qe),{},{display:"none"}):t&&(Qe=Object(N.a)(Object(N.a)({},Qe),{},{visibility:"hidden",position:"absolute"}),Je="".concat(Je,"-placeholder"),Xe="".concat(Xe,"-placeholder"));var $e=A?"".concat(y,"-").concat(A):"",dt={};return ht.forEach(function(Ze){We[Ze]!==void 0&&(dt[Ze]=We[Ze])}),r.createElement(Bn,Object(_.a)({title:u,className:"".concat(y,"-overflowed-submenu"),popupClassName:$e},dt,{key:Je,eventKey:Xe,disabled:!1,style:Qe}),a)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var a=e.children;if(!a||a.length===0)return;var t=e.children[a.length-1];Ie(t,"display","inline-block");var s=l.getMenuItemNodes(),u=s.filter(function(b){return b.className.split(" ").indexOf(_a)>=0});u.forEach(function(b){Ie(b,"display","inline-block")}),l.menuItemSizes=s.map(function(b){return it(b,!0)}),u.forEach(function(b){Ie(b,"display","none")}),l.overflowedIndicatorWidth=it(e.children[e.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(b,p){return b+p},0),l.handleResize(),Ie(t,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var a=it(e);l.overflowedItems=[];var t=0,s;l.originalTotalWidth>a+Qa&&(s=-1,l.menuItemSizes.forEach(function(u){t+=u,t+l.overflowedIndicatorWidth<=a&&(s+=1)})),l.setState({lastVisibleIndex:s})},l}return Object(F.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Dt.default(function(t){t.forEach(function(){var s=e.cancelFrameId;cancelAnimationFrame(s),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var a=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(s,u,b){var p=u;if(a.props.mode==="horizontal"){var y=a.getOverflowedSubMenuItem(u.props.eventKey,[]);t!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(b>t&&(p=r.cloneElement(u,{style:{display:"none"},eventKey:"".concat(u.props.eventKey,"-hidden"),className:"".concat(_a)})),b===t+1&&(a.overflowedItems=e.slice(t+1).map(function(X){return r.cloneElement(X,{key:X.props.eventKey,mode:"vertical-left"})}),y=a.getOverflowedSubMenuItem(u.props.eventKey,a.overflowedItems)));var A=[].concat(Object(ye.a)(s),[y,p]);return b===e.length-1&&A.push(a.getOverflowedSubMenuItem(u.props.eventKey,[],!0)),A}return[].concat(Object(ye.a)(s),[p])},[])}},{key:"render",value:function(){var e=this.props,a=e.visible,t=e.prefixCls,s=e.overflowedIndicator,u=e.mode,b=e.level,p=e.tag,y=e.children,A=e.theme,X=Object(Oe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),V=p;return r.createElement(V,Object(_.a)({ref:this.childRef},X),this.renderChildren(y))}}]),v}(r.Component);Aa.defaultProps={tag:"div",className:""};var ua=Aa;function Zn(o){return o.length?o.every(function(f){return!!f.props.disabled}):!0}function Pn(o,f,v){var l=o.getState();o.setState({activeKey:Object(N.a)(Object(N.a)({},l.activeKey),{},Object(R.a)({},f,v))})}function Tn(o){return o.eventKey||"0-menu-"}function qn(o,f){var v=f,l=o.children,e=o.eventKey;if(v){var a;if(Ve(l,function(t,s){t&&t.props&&!t.props.disabled&&v===Ue(t,e,s)&&(a=!0)}),a)return v}return v=null,o.defaultActiveFirst&&Ve(l,function(t,s){!v&&t&&!t.props.disabled&&(v=Ue(t,e,s))}),v}function wa(o){if(!o)return;var f=this.instanceArray.indexOf(o);f!==-1?this.instanceArray[f]=o:this.instanceArray.push(o)}var La=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(l){var e;return Object(U.a)(this,v),e=f.call(this,l),e.onKeyDown=function(a,t){var s=a.keyCode,u;if(e.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(u=p.onKeyDown(a))}),u)return 1;var b=null;return(s===C.a.UP||s===C.a.DOWN)&&(b=e.step(s===C.a.UP?-1:1)),b?(a.preventDefault(),Pn(e.props.store,Tn(e.props),b.props.eventKey),typeof t=="function"&&t(b),1):void 0},e.onItemHover=function(a){var t=a.key,s=a.hover;Pn(e.props.store,Tn(e.props),s?t:null)},e.onDeselect=function(a){e.props.onDeselect(a)},e.onSelect=function(a){e.props.onSelect(a)},e.onClick=function(a){e.props.onClick(a)},e.onOpenChange=function(a){e.props.onOpenChange(a)},e.onDestroy=function(a){e.props.onDestroy(a)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(a){var t=e.getFlatInstanceArray(),s=e.props.store.getState().activeKey[Tn(e.props)],u=t.length;if(!u)return null;a<0&&(t=t.concat().reverse());var b=-1;if(t.every(function(X,V){return X&&X.props.eventKey===s?(b=V,!1):!0}),!e.props.defaultActiveFirst&&b!==-1&&Zn(t.slice(b,u-1)))return;var p=(b+1)%u,y=p;do{var A=t[y];if(!A||A.props.disabled)y=(y+1)%u;else return A}while(y!==p);return null},e.renderCommonMenuItem=function(a,t,s){var u=e.props.store.getState(),b=Object(h.a)(e),p=b.props,y=Ue(a,p.eventKey,t),A=a.props;if(!A||typeof a.type=="string")return a;var X=y===u.activeKey,V=Object(N.a)(Object(N.a)({mode:A.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:p.prefixCls,index:t,parentMenu:p.parentMenu,manualRef:A.disabled?void 0:Object(x.a)(a.ref,wa.bind(Object(h.a)(e))),eventKey:y,active:!A.disabled&&X,multiple:p.multiple,onClick:function(we){(A.onClick||ie)(we),e.onClick(we)},onItemHover:e.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:A.itemIcon||e.props.itemIcon,expandIcon:A.expandIcon||e.props.expandIcon},s),{},{direction:p.direction});return(p.mode==="inline"||ze())&&(V.triggerSubMenuAction="click"),r.cloneElement(a,Object(N.a)(Object(N.a)({},V),{},{key:y||t}))},e.renderMenuItem=function(a,t,s){if(!a)return null;var u=e.props.store.getState(),b={openKeys:u.openKeys,selectedKeys:u.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:s};return e.renderCommonMenuItem(a,t,b)},l.store.setState({activeKey:Object(N.a)(Object(N.a)({},l.store.getState().activeKey),{},Object(R.a)({},l.eventKey,qn(l,l.activeKey)))}),e.instanceArray=[],e}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!m()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var a=this.props,t="activeKey"in a?a.activeKey:a.store.getState().activeKey[Tn(a)],s=qn(a,t);if(s!==t)Pn(a.store,Tn(a),s);else if("activeKey"in e){var u=qn(e,e.activeKey);s!==u&&Pn(a.store,Tn(a),s)}}},{key:"render",value:function(){var e=this,a=Object(_.a)({},this.props);this.instanceArray=[];var t=fe()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),s={className:t,role:a.role||"menu"};a.id&&(s.id=a.id),a.focusable&&(s.tabIndex=0,s.onKeyDown=this.onKeyDown);var u=a.prefixCls,b=a.eventKey,p=a.visible,y=a.level,A=a.mode,X=a.overflowedIndicator,V=a.theme;return ht.forEach(function(se){return delete a[se]}),delete a.onClick,r.createElement(ua,Object(_.a)({},a,{prefixCls:u,mode:A,tag:"ul",level:y,theme:V,visible:p,overflowedIndicator:X},s),Object(le.a)(a.children).map(function(se,we){return e.renderMenuItem(se,we,b||"0-menu-")}))}}]),v}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ie};var Ua=Object(O.b)()(La),ea=Ua,_n=n("Kwbf");function ca(o,f,v){var l=o.prefixCls,e=o.motion,a=o.defaultMotions,t=a===void 0?{}:a,s=o.openAnimation,u=o.openTransitionName,b=f.switchingModeFromInline;if(e)return e;if(Object(P.a)(s)==="object"&&s)Object(_n.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof s=="string")return{motionName:"".concat(l,"-open-").concat(s)};if(u)return{motionName:u};var p=t[v];return p||(b?null:t.other)}var Ia=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(l){var e;Object(U.a)(this,v),e=f.call(this,l),e.onSelect=function(s){var u=Object(h.a)(e),b=u.props;if(b.selectable){var p=e.store.getState(),y=p.selectedKeys,A=s.key;b.multiple?y=y.concat([A]):y=[A],"selectedKeys"in b||e.store.setState({selectedKeys:y}),b.onSelect(Object(N.a)(Object(N.a)({},s),{},{selectedKeys:y}))}},e.onClick=function(s){var u=e.getRealMenuMode(),b=Object(h.a)(e),p=b.store,y=b.props.onOpenChange;u!=="inline"&&!("openKeys"in e.props)&&(p.setState({openKeys:[]}),y([])),e.props.onClick(s)},e.onKeyDown=function(s,u){e.innerMenu.getWrappedInstance().onKeyDown(s,u)},e.onOpenChange=function(s){var u=Object(h.a)(e),b=u.props,p=e.store.getState().openKeys.concat(),y=!1,A=function(V){var se=!1;if(V.open)se=p.indexOf(V.key)===-1,se&&p.push(V.key);else{var we=p.indexOf(V.key);se=we!==-1,se&&p.splice(we,1)}y=y||se};Array.isArray(s)?s.forEach(A):A(s),y&&("openKeys"in e.props||e.store.setState({openKeys:p}),b.onOpenChange(p))},e.onDeselect=function(s){var u=Object(h.a)(e),b=u.props;if(b.selectable){var p=e.store.getState().selectedKeys.concat(),y=s.key,A=p.indexOf(y);A!==-1&&p.splice(A,1),"selectedKeys"in b||e.store.setState({selectedKeys:p}),b.onDeselect(Object(N.a)(Object(N.a)({},s),{},{selectedKeys:p}))}},e.onMouseEnter=function(s){e.restoreModeVerticalFromInline();var u=e.props.onMouseEnter;u&&u(s)},e.onTransitionEnd=function(s){var u=s.propertyName==="width"&&s.target===s.currentTarget,b=s.target.className,p=Object.prototype.toString.call(b)==="[object SVGAnimatedString]"?b.animVal:b,y=s.propertyName==="font-size"&&p.indexOf("anticon")>=0;(u||y)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(s){e.innerMenu=s},e.isRootMenu=!0;var a=l.defaultSelectedKeys,t=l.defaultOpenKeys;return"selectedKeys"in l&&(a=l.selectedKeys||[]),"openKeys"in l&&(t=l.openKeys||[]),e.store=Object(O.c)({selectedKeys:a,openKeys:t,activeKey:{"0-menu-":qn(l,l.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:e.store},e}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var a=this.props,t=a.siderCollapsed,s=a.inlineCollapsed,u=a.onOpenChange;(!e.inlineCollapsed&&s||!e.siderCollapsed&&t)&&u([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,a=this.store,t=this.prevOpenKeys,s=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");s?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,a=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return a&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,a=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:a}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(N.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(N.a)(Object(N.a)({},e),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,a)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(O.a,{store:this.store},r.createElement(ea,Object(_.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var t=a.prevProps,s=a.store,u=s.getState(),b={},p={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in e?b.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=u.openKeys,b.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(b.openKeys=a.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(b).length&&s.setState(b),p}}]),v}(r.Component);Ia.defaultProps={selectable:!0,onClick:ie,onSelect:ie,onOpenChange:ie,onDeselect:ie,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var ka=Ia,An=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){var l;return Object(U.a)(this,v),l=f.apply(this,arguments),l.onKeyDown=function(e){var a=e.keyCode;return a===C.a.ENTER?(l.onClick(e),!0):void 0},l.onMouseLeave=function(e){var a=l.props,t=a.eventKey,s=a.onItemHover,u=a.onMouseLeave;s({key:t,hover:!1}),u({key:t,domEvent:e})},l.onMouseEnter=function(e){var a=l.props,t=a.eventKey,s=a.onItemHover,u=a.onMouseEnter;s({key:t,hover:!0}),u({key:t,domEvent:e})},l.onClick=function(e){var a=l.props,t=a.eventKey,s=a.multiple,u=a.onClick,b=a.onSelect,p=a.onDeselect,y=a.isSelected,A={key:t,keyPath:[t],item:Object(h.a)(l),domEvent:e};u(A),s?y?p(A):b(A):y||b(A)},l.saveNode=function(e){l.node=e},l}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,a=Object(N.a)({},this.props),t=fe()(this.getPrefixCls(),a.className,(e={},Object(R.a)(e,this.getActiveClassName(),!a.disabled&&a.active),Object(R.a)(e,this.getSelectedClassName(),a.isSelected),Object(R.a)(e,this.getDisabledClassName(),a.disabled),e)),s=Object(N.a)(Object(N.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:t,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?s=Object(N.a)(Object(N.a)({},s),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(s.role="none");var u={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},b=Object(N.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?b.paddingRight=a.inlineIndent*a.level:b.paddingLeft=a.inlineIndent*a.level),ht.forEach(function(y){return delete a[y]}),delete a.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(_.a)({},Object(M.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),s,u,{style:b,ref:this.saveNode}),a.children,p)}}]),v}(r.Component);An.isMenuItem=!0,An.defaultProps={onSelect:ie,onMouseEnter:ie,onMouseLeave:ie,manualRef:ie};var da=Object(O.b)(function(o,f){var v=o.activeKey,l=o.selectedKeys,e=f.eventKey,a=f.subMenuKey;return{active:v[a]===e,isSelected:Array.isArray(l)?l.indexOf(e)!==-1:l===e}})(An),fa=da,pa=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){var l;return Object(U.a)(this,v),l=f.apply(this,arguments),l.renderInnerMenuItem=function(e){var a=l.props,t=a.renderMenuItem,s=a.index;return t(e,s,l.props.subMenuKey)},l}return Object(F.a)(v,[{key:"render",value:function(){var e=Object(_.a)({},this.props),a=e.className,t=a===void 0?"":a,s=e.rootPrefixCls,u="".concat(s,"-item-group-title"),b="".concat(s,"-item-group-list"),p=e.title,y=e.children;return ht.forEach(function(A){return delete e[A]}),delete e.direction,r.createElement("li",Object(_.a)({},e,{onClick:function(X){return X.stopPropagation()},className:"".concat(t," ").concat(s,"-item-group")}),r.createElement("div",{className:u,title:typeof p=="string"?p:void 0},p),r.createElement("ul",{className:b},r.Children.map(y,this.renderInnerMenuItem)))}}]),v}(r.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(f){var v=f.className,l=f.rootPrefixCls,e=f.style;return r.createElement("li",{className:"".concat(v," ").concat(l,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=ka,ha=n("eDIo");function eo(o,f){var v=o.prefixCls,l=o.editable,e=o.locale,a=o.style;return!l||l.showAdd===!1?null:r.createElement("button",{ref:f,type:"button",className:"".concat(v,"-nav-add"),style:a,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(s){l.onEdit("add",{event:s})}},l.addIcon||"+")}var ta=r.forwardRef(eo);function to(o,f){var v=o.prefixCls,l=o.id,e=o.tabs,a=o.locale,t=o.mobile,s=o.moreIcon,u=s===void 0?"More":s,b=o.moreTransitionName,p=o.style,y=o.className,A=o.editable,X=o.tabBarGutter,V=o.rtl,se=o.onTabClick,we=Object(r.useState)(!1),Ye=Object(S.a)(we,2),We=Ye[0],Qe=Ye[1],Je=Object(r.useState)(null),Xe=Object(S.a)(Je,2),$e=Xe[0],dt=Xe[1],Ze="".concat(l,"-more-popup"),Ut="".concat(v,"-dropdown"),gt=$e!==null?"".concat(Ze,"-").concat($e):null,_e=a==null?void 0:a.dropdownAriaLabel,Pe=r.createElement(Ka,{onClick:function(xt){var _t=xt.key,$t=xt.domEvent;se(_t,$t),Qe(!1)},id:Ze,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[$e],"aria-label":_e!==void 0?_e:"expanded dropdown"},e.map(function(pt){return r.createElement(fa,{key:pt.key,id:"".concat(Ze,"-").concat(pt.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function et(pt){for(var xt=e.filter(function(ln){return!ln.disabled}),_t=xt.findIndex(function(ln){return ln.key===$e})||0,$t=xt.length,sn=0;sn<$t;sn+=1){_t=(_t+pt+$t)%$t;var Kt=xt[_t];if(!Kt.disabled){dt(Kt.key);return}}}function rt(pt){var xt=pt.which;if(!We){[C.a.DOWN,C.a.SPACE,C.a.ENTER].includes(xt)&&(Qe(!0),pt.preventDefault());return}switch(xt){case C.a.UP:et(-1),pt.preventDefault();break;case C.a.DOWN:et(1),pt.preventDefault();break;case C.a.ESC:Qe(!1);break;case C.a.SPACE:case C.a.ENTER:$e!==null&&se($e,pt);break}}Object(r.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[$e]),Object(r.useEffect)(function(){We||dt(null)},[We]);var Te=Object(R.a)({},V?"marginLeft":"marginRight",X);e.length||(Te.visibility="hidden",Te.order=1);var ft=fe()(Object(R.a)({},"".concat(Ut,"-rtl"),V)),Rt=t?null:r.createElement(ha.a,{prefixCls:Ut,overlay:Pe,trigger:["hover"],visible:We,transitionName:b,onVisibleChange:Qe,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},r.createElement("button",{type:"button",className:"".concat(v,"-nav-more"),style:Te,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ze,id:"".concat(l,"-more"),"aria-expanded":We,onKeyDown:rt},u));return r.createElement("div",{className:fe()("".concat(v,"-nav-operations"),y),style:p,ref:f},Rt,r.createElement(ta,{prefixCls:v,locale:a,editable:A}))}var no=r.forwardRef(to),va=Object(r.createContext)(null),lt=.1,ut=.01,Lt=20,qt=Math.pow(.995,Lt);function zn(){var o=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(o.substr(0,4)))}function Fa(o,f){var v=Object(r.useState)(),l=Object(S.a)(v,2),e=l[0],a=l[1],t=Object(r.useState)(0),s=Object(S.a)(t,2),u=s[0],b=s[1],p=Object(r.useState)(0),y=Object(S.a)(p,2),A=y[0],X=y[1],V=Object(r.useState)(),se=Object(S.a)(V,2),we=se[0],Ye=se[1],We=Object(r.useRef)();function Qe(_e){var Pe=_e.touches[0],et=Pe.screenX,rt=Pe.screenY;a({x:et,y:rt}),window.clearInterval(We.current)}function Je(_e){if(!e)return;_e.preventDefault();var Pe=_e.touches[0],et=Pe.screenX,rt=Pe.screenY;a({x:et,y:rt});var Te=et-e.x,ft=rt-e.y;f(Te,ft);var Rt=Date.now();b(Rt),X(Rt-u),Ye({x:Te,y:ft})}function Xe(){if(!e)return;if(a(null),Ye(null),we){var _e=we.x/A,Pe=we.y/A,et=Math.abs(_e),rt=Math.abs(Pe);if(Math.max(et,rt)ft?(rt=Pe,Ze.current="x"):(rt=et,Ze.current="y");var Rt=Date.now();Rt-$e.current>100&&(dt.current=!1),(f(-rt,-rt)||dt.current)&&(_e.preventDefault(),dt.current=!0),$e.current=Rt}var gt=Object(r.useRef)(null);gt.current={onTouchStart:Qe,onTouchMove:Je,onTouchEnd:Xe,onWheel:Ut},r.useEffect(function(){function _e(Te){gt.current.onTouchStart(Te)}function Pe(Te){gt.current.onTouchMove(Te)}function et(Te){gt.current.onTouchEnd(Te)}function rt(Te){gt.current.onWheel(Te)}return document.addEventListener("touchmove",Pe,{passive:!1}),document.addEventListener("touchend",et,{passive:!1}),o.current.addEventListener("touchstart",_e,{passive:!1}),o.current.addEventListener("wheel",rt),function(){document.removeEventListener("touchmove",Pe),document.removeEventListener("touchend",et)}},[])}function ba(){var o=Object(r.useRef)(new Map);function f(l){return o.current.has(l)||o.current.set(l,r.createRef()),o.current.get(l)}function v(l){o.current.delete(l)}return[f,v]}function Ba(o,f){var v=r.useRef(o),l=r.useState({}),e=Object(S.a)(l,2),a=e[1];function t(s){var u=typeof s=="function"?s(v.current):s;u!==v.current&&f(u,v.current),v.current=u,a({})}return[v.current,t]}var za=function(f){var v=f.position,l=f.prefixCls,e=f.extra;if(!e)return null;var a,t=e;return v==="right"&&(a=t.right||!t.left&&t||null),v==="left"&&(a=t.left||null),a?r.createElement("div",{className:"".concat(l,"-extra-content")},a):null};function Bo(o,f){var v,l=r.useContext(va),e=l.prefixCls,a=l.tabs,t=o.className,s=o.style,u=o.id,b=o.animated,p=o.activeKey,y=o.rtl,A=o.extra,X=o.editable,V=o.locale,se=o.tabPosition,we=o.tabBarGutter,Ye=o.children,We=o.onTabClick,Qe=o.onTabScroll,Je=Object(r.useRef)(),Xe=Object(r.useRef)(),$e=Object(r.useRef)(),dt=Object(r.useRef)(),Ze=ba(),Ut=Object(S.a)(Ze,2),gt=Ut[0],_e=Ut[1],Pe=se==="top"||se==="bottom",et=Ba(0,function(Et,tt){Pe&&Qe&&Qe({direction:Et>tt?"left":"right"})}),rt=Object(S.a)(et,2),Te=rt[0],ft=rt[1],Rt=Ba(0,function(Et,tt){!Pe&&Qe&&Qe({direction:Et>tt?"top":"bottom"})}),pt=Object(S.a)(Rt,2),xt=pt[0],_t=pt[1],$t=Object(r.useState)(0),sn=Object(S.a)($t,2),Kt=sn[0],ln=sn[1],xn=Object(r.useState)(0),dn=Object(S.a)(xn,2),fn=dn[0],zt=dn[1],tn=Object(r.useState)(0),Gt=Object(S.a)(tn,2),Ht=Gt[0],wn=Gt[1],Ln=Object(r.useState)(0),Wn=Object(S.a)(Ln,2),Tt=Wn[0],Sn=Wn[1],Vn=Object(r.useState)(null),Nt=Object(S.a)(Vn,2),bt=Nt[0],Yt=Nt[1],Xo=Object(r.useState)(null),bo=Object(S.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(S.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(S.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=T(new Map),yo=Object(S.a)(er,2),tr=yo[0],nr=yo[1],Wa=Y(a,tr,Kt),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;Pe?y?(ga=0,Ea=Math.max(0,Kt-bt)):(ga=Math.min(0,bt-Kt),Ea=0):(ga=Math.min(0,na-fn),Ea=0);function ao(Et){return EtEa?[Ea,!1]:[Et,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),xo=Object(S.a)(ar,2),oo=xo[0],Mo=xo[1];function ro(){Mo(Date.now())}function io(){window.clearTimeout(Oo.current)}Fa(Je,function(Et,tt){var Xt=!1;function pn(Ca,Oa){Ca(function(xa){var Ma=ao(xa+Oa),aa=Object(S.a)(Ma,2),co=aa[0],fo=aa[1];return Xt=fo,co})}if(Pe){if(bt>=Kt)return Xt;pn(ft,Et)}else{if(na>=fn)return Xt;pn(_t,tt)}return io(),ro(),Xt}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){Mo(0)},100)),io},[oo]);function jo(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,tt=Wa.get(Et);if(!tt)return;if(Pe){var Xt=Te;y?tt.rightTe+bt&&(Xt=tt.right+tt.width-bt):tt.left<-Te?Xt=-tt.left:tt.left+tt.width>-Te+bt&&(Xt=-(tt.left+tt.width-bt)),_t(0),ft(ao(Xt)[0])}else{var pn=xt;tt.top<-xt?pn=-tt.top:tt.top+tt.height>-xt+na&&(pn=-(tt.top+tt.height-na)),ft(0),_t(ao(pn)[0])}}var or=be(Wa,{width:bt,height:na,left:Te,top:xt},{width:Ht,height:Tt},{width:Yo,height:Zo},Object(N.a)(Object(N.a)({},o),{},{tabs:a})),To=Object(S.a)(or,2),rr=To[0],ir=To[1],sr=a.map(function(Et){var tt=Et.key;return r.createElement(D,{id:u,prefixCls:e,key:tt,rtl:y,tab:Et,closable:Et.closable,editable:X,active:tt===p,tabPosition:se,tabBarGutter:we,renderWrapper:Ye,removeAriaLabel:V==null?void 0:V.removeAriaLabel,ref:gt(tt),onClick:function(pn){We(tt,pn)},onRemove:function(){_e(tt)},onFocus:function(){jo(tt),ro(),y||(Je.current.scrollLeft=0),Je.current.scrollTop=0}})}),so=Q(function(){var Et,tt,Xt,pn,Ca,Oa,xa,Ma,aa,co=((Et=Je.current)===null||Et===void 0?void 0:Et.offsetWidth)||0,fo=((tt=Je.current)===null||tt===void 0?void 0:tt.offsetHeight)||0,wo=((Xt=dt.current)===null||Xt===void 0?void 0:Xt.offsetWidth)||0,Lo=((pn=dt.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,pr=((Ca=$e.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=$e.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((xa=Xe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-wo,Io=(((Ma=Xe.current)===null||Ma===void 0?void 0:Ma.offsetHeight)||0)-Lo;ln(Uo),zt(Io);var ko=(aa=$e.current)===null||aa===void 0?void 0:aa.className.includes(Co);wn(Uo-(ko?0:pr)),Sn(Io-(ko?0:mr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Fo=hr.key,ja=gt(Fo).current;ja&&Ko.set(Fo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),So=[].concat(Object(ye.a)(lr),Object(ye.a)(ur)),cr=Object(r.useState)(),Ro=Object(S.a)(cr,2),dr=Ro[0],fr=Ro[1],Un=Wa.get(p),No=Object(r.useRef)();function Do(){Ee.a.cancel(No.current)}Object(r.useEffect)(function(){var Et={};return Un&&(Pe?(y?Et.right=Un.right:Et.left=Un.left,Et.width=Un.width):(Et.top=Un.top,Et.height=Un.height)),Do(),No.current=Ee()(function(){fr(Et)}),Do},[Un,Pe,y]),Object(r.useEffect)(function(){jo()},[p,Un,Wa,Pe]),Object(r.useEffect)(function(){so()},[y,we,p,a.map(function(Et){return Et.key}).join("_")]);var Po=!!So.length,ya="".concat(e,"-nav-wrap"),lo,uo,_o,Ao;return Pe?y?(uo=Te>0,lo=Te+bt50?kt.style.display="block":kt.style.display="none"}})),L.a.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:q,onOk:function(){var Ct=Object(w.a)(T.a.mark(function kt(){var Ot,mn,En,nn;return T.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(!(ot<1||ot>50)){Wt.next=4;break}return En=document.getElementById("model_error"),En.style.display="block",Wt.abrupt("return",Promise.reject());case 4:return vt.update({cancelButtonProps:{disabled:!0}}),Wt.next=7,$({type:"paperlibrary/sendToClass",payload:{course_id:He==null?void 0:He[0],id:(Ot=he.actionTabs)===null||Ot===void 0||((mn=Ot.params)===null||mn===void 0)?void 0:mn.id,num:ot}});case 7:nn=Wt.sent,vt.update({cancelButtonProps:{disabled:!1}}),nn&&nn.status===0&&(g.a.destroyAll(),g.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:L.a.createElement("div",{className:U.a.modalColumn},L.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20 mb10"},L.a.createElement("img",{style:{marginRight:5},src:be.a}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:q,onOk:function(){var un,yn,Qt=nn==null||((un=nn.first_category_url)===null||un===void 0||((yn=un.split("/"))===null||yn===void 0))?void 0:yn[2];Object(F.O)("/classrooms/".concat(Qt,"/exercise"))}}));case 10:case"end":return Wt.stop()}},kt)}));function Bt(){return Ct.apply(this,arguments)}return Bt}()});case 16:case"end":return ke.stop()}},je)}));return function(){return Me.apply(this,arguments)}}(),Se=function(){var Me=Object(w.a)(T.a.mark(function je(){return T.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return oe(!0),Ke.next=3,ae();case 3:case"end":return Ke.stop()}},je)}));return function(){return Me.apply(this,arguments)}}(),Ae=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return L.a.createElement("div",null,L.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,visible:he.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:W["paperlibrary/sendToClass"],width:600,onOk:ge,destroyOnClose:!0,onCancel:q},L.a.createElement("div",{className:U.a.wrap},L.a.createElement("div",{className:U.a.title},L.a.createElement("img",{src:Y.a}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377"),L.a.createElement("div",{className:"mb10"},L.a.createElement(J,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:B,onChange:function(je){de(je.target.value),je.target.value||ae(!0)},onSearch:function(je){de(je),ae(),ht([])}})),ie.length?L.a.createElement("div",{className:U.a.radioWrap},L.a.createElement(S.a,{rowClassName:U.a.row,bordered:!1,scroll:(ie==null?void 0:ie.length)<=7?{}:{y:350},loading:G,rowKey:"course_id",pagination:!1,dataSource:ie,columns:Ae,onRow:function(je){return{onClick:function(Ke){console.log([je==null?void 0:je.course_id]),ht([je==null?void 0:je.course_id])}}},rowSelection:{type:"radio",selectedRowKeys:He,onChange:function(je){ht(je),Dt(!1)}}})):!B&&!G&&L.a.createElement(E,{createState:yt,refreshLoading:me,onRefresh:Se,onCreate:function(){ct(!1),Object(F.O)("/classrooms/new")}}),ze&&L.a.createElement("div",{className:U.a.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"))))},k=ee.a=Object(D.a)(function(ue){var ce=ue.paperlibrary,he=ue.loading,Re=ue.globalSetting;return{paperlibrary:ce,globalSetting:Re,loading:he.effects}})(ne)},n6Qo:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return le});var R=n("q1tI"),S=n("biw7"),Oe=n("fyJ8");function N(w){var ye=w.className,re=w.index,Ee=w.children,xe=w.colSpan,Q=w.rowSpan,T=R.useContext(S.a),C=T.prefixCls,L=T.fixedInfoList,D=L[re];return R.createElement(Oe.a,Object.assign({className:ye,index:re,component:"td",prefixCls:C,record:null,dataIndex:null,render:function(){return{children:Ee,props:{colSpan:xe,rowSpan:Q}}}},D))}function r(w){return R.createElement("tr",Object.assign({},w))}function g(w){var ye=w.children,re=R.useContext(S.a),Ee=re.prefixCls;return R.createElement("tfoot",{className:"".concat(Ee,"-summary")},ye)}var fe=ee.b=g,le={Cell:N,Row:r}},"rd/4":function(Be,ee,n){Be.exports=n.p+"static/noData.dc777645.png"},sR1s:function(Be,ee,n){"use strict";n.d(ee,"b",function(){return N}),n.d(ee,"a",function(){return r}),n.d(ee,"c",function(){return g}),n.d(ee,"d",function(){return fe});var R=n("U8pU"),S="RC_TABLE_KEY";function Oe(le){return le==null?[]:Array.isArray(le)?le:[le]}function N(le,w){if(!w&&typeof w!="number")return le;for(var ye=Oe(w),re=le,Ee=0;Ee1)Object(ye.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Y.length===0)return Object(ye.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var z=Y[0];if(g.isValidElement(z)&&Object(re.c)(z)){var be=z.ref;Y[0]=g.cloneElement(z,{ref:Object(re.a)(be,this.setChildNode)})}return Y.length===1?Y[0]:Y.map(function(_,U){return!g.isValidElement(_)||"key"in _&&_.key!==null?_:g.cloneElement(_,{key:"".concat(xe,"-").concat(U)})})}}]),L}(g.Component);Q.displayName="ResizeObserver",ee.a=Q},wCXF:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return St});var R=n("rePB"),S=n("VTBJ"),Oe=n("KQm4"),N=n("U8pU"),r=n("ODXe"),g=n("q1tI"),fe=n("TSYQ"),le=n.n(fe),w=n("Gytx"),ye=n.n(w),re=n("Kwbf"),Ee=n("t23M"),xe=n("qx4F"),Q=n("6eGT"),T=n("IBYe"),C=n("Ff2n"),L=n("c+Xe"),D=n("fyJ8"),H=n("biw7");function Y(j,G,Z,ve,Ce){var me=Z[j]||{},oe=Z[G]||{},q,ae;me.fixed==="left"?q=ve.left[j]:oe.fixed==="right"&&(ae=ve.right[G]);var Ne=!1,ge=!1,Se=!1,Ae=!1,Me=Z[G+1],je=Z[j-1];if(Ce==="rtl"){if(q!==void 0){var Ge=je&&je.fixed==="left";Ae=!Ge}else if(ae!==void 0){var Ke=Me&&Me.fixed==="right";Se=!Ke}}else if(q!==void 0){var nt=Me&&Me.fixed==="left";Ne=!nt}else if(ae!==void 0){var Le=je&&je.fixed==="right";ge=!Le}return{fixLeft:q,fixRight:ae,lastFixLeft:Ne,firstFixRight:ge,lastFixRight:Se,firstFixLeft:Ae,isSticky:ve.isSticky}}var z=n("sR1s");function be(j){var G=j.cells,Z=j.stickyOffsets,ve=j.flattenColumns,Ce=j.rowComponent,me=j.cellComponent,oe=j.onHeaderRow,q=j.index,ae=g.useContext(H.a),Ne=ae.prefixCls,ge=ae.direction,Se;oe&&(Se=oe(G.map(function(Me){return Me.column}),q));var Ae=Object(z.a)(G.map(function(Me){return Me.column}));return g.createElement(Ce,Object.assign({},Se),G.map(function(Me,je){var Ge=Me.column,Ke=Y(Me.colStart,Me.colEnd,ve,Z,ge),nt;return Ge&&Ge.onHeaderCell&&(nt=Me.column.onHeaderCell(Ge)),g.createElement(D.a,Object.assign({},Me,{ellipsis:Ge.ellipsis,align:Ge.align,component:me,prefixCls:Ne,key:Ae[je]},Ke,{additionalProps:nt,rowType:"header"}))}))}be.displayName="HeaderRow";var _=be;function U(j){var G=[];function Z(oe,q){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;G[ae]=G[ae]||[];var Ne=q,ge=oe.filter(Boolean).map(function(Se){var Ae={key:Se.key,className:Se.className||"",children:Se.title,column:Se,colStart:Ne},Me=1,je=Se.children;return je&&je.length>0&&(Me=Z(je,Ne,ae+1).reduce(function(Ge,Ke){return Ge+Ke},0),Ae.hasSubColumns=!0),"colSpan"in Se&&(Me=Se.colSpan),"rowSpan"in Se&&(Ae.rowSpan=Se.rowSpan),Ae.colSpan=Me,Ae.colEnd=Ae.colStart+Me-1,G[ae].push(Ae),Ne+=Me,Me});return ge}Z(j,0);for(var ve=G.length,Ce=function(q){G[q].forEach(function(ae){!("rowSpan"in ae)&&!ae.hasSubColumns&&(ae.rowSpan=ve-q)})},me=0;me=0;q-=1){var ae=G[q],Ne=Z&&Z[q],ge=Ne&&Ne[d.a];(ae||ge||oe)&&(Ce.unshift(g.createElement("col",Object.assign({key:q,style:{width:ae,minWidth:ae}},ge))),oe=!0)}return g.createElement("colgroup",null,Ce)}var O=i;function M(j,G){return Object(g.useMemo)(function(){for(var Z=[],ve=0;ve1?Zt-1:0),hn=1;hn=Se&&(Ot=Se-Ae),oe({scrollLeft:Ot/Se*(ge+2)}),Le.current.x=ke.pageX},ot=function(){var ke=Object(ht.b)(me.current).top,Ct=ke+me.current.offsetHeight,Bt=document.documentElement.scrollTop+window.innerHeight;Ct-Object(xe.a)()<=Bt||ke>=Bt-q?nt(function(kt){return Object(S.a)(Object(S.a)({},kt),{},{isHiddenScrollBar:!0})}):nt(function(kt){return Object(S.a)(Object(S.a)({},kt),{},{isHiddenScrollBar:!1})})},vt=function(ke){nt(function(Ct){return Object(S.a)(Object(S.a)({},Ct),{},{scrollLeft:ke/ge*Se||0})})};return g.useImperativeHandle(Z,function(){return{setScrollLeft:vt}}),g.useEffect(function(){var mt=Object(He.a)(document.body,"mouseup",It,!1),ke=Object(He.a)(document.body,"mousemove",At,!1);return ot(),function(){mt.remove(),ke.remove()}},[Ae,st]),g.useEffect(function(){var mt=Object(He.a)(window,"scroll",ot,!1),ke=Object(He.a)(window,"resize",ot,!1);return function(){mt.remove(),ke.remove()}},[]),g.useEffect(function(){Ke.isHiddenScrollBar||nt(function(mt){var ke,Ct;return Object(S.a)(Object(S.a)({},mt),{},{scrollLeft:me.current.scrollLeft/((ke=me.current)===null||ke===void 0?void 0:ke.scrollWidth)*((Ct=me.current)===null||Ct===void 0?void 0:Ct.clientWidth)})})},[Ke.isHiddenScrollBar]),ge<=Se||!Ae||Ke.isHiddenScrollBar?null:g.createElement("div",{style:{height:Object(xe.a)(),width:Se,bottom:q},className:"".concat(Ne,"-sticky-scroll")},g.createElement("div",{onMouseDown:at,ref:Me,className:le()("".concat(Ne,"-sticky-scroll-bar"),Object(R.a)({},"".concat(Ne,"-sticky-scroll-bar-active"),st)),style:{width:"".concat(Ae,"px"),transform:"translate3d(".concat(Ke.scrollLeft,"px, 0, 0)")}}))},Ie=g.forwardRef(it);function ze(j,G){return g.useMemo(function(){var Z=!!j;return{isSticky:Z,stickyClassName:Z?"".concat(G,"-sticky-header"):"",offsetHeader:Object(N.a)(j)==="object"&&j.offsetHeader||0,offsetScroll:Object(N.a)(j)==="object"&&j.offsetScroll||0}},[j,G])}var Dt=[],Pt={},St="rc-table-internal-hook",yt=g.memo(function(j){var G=j.children;return G},function(j,G){return ye()(j.props,G.props)?j.pingLeft!==G.pingLeft||j.pingRight!==G.pingRight:!1});function ct(j){var G,Z=j.prefixCls,ve=j.className,Ce=j.rowClassName,me=j.style,oe=j.data,q=j.rowKey,ae=j.scroll,Ne=j.tableLayout,ge=j.direction,Se=j.title,Ae=j.footer,Me=j.summary,je=j.id,Ge=j.showHeader,Ke=j.components,nt=j.emptyText,Le=j.onRow,Ft=j.onHeaderRow,Mt=j.internalHooks,st=j.transformColumns,jt=j.internalRefs,It=j.sticky,at=oe||Dt,At=!!at.length,ot=g.useState(0),vt=Object(r.a)(ot,2),mt=vt[0],ke=vt[1];g.useEffect(function(){ke(Object(xe.a)())});var Ct=g.useMemo(function(){return Object(z.c)(Ke,{})},[Ke]),Bt=g.useCallback(function(lt,ut){return Object(z.b)(Ct,lt)||ut},[Ct]),kt=g.useMemo(function(){return typeof q=="function"?q:function(lt){var ut=lt&<[q];return ut}},[q]),Ot=Object(d.c)(j),mn=Ot.expandIcon,En=Ot.expandedRowKeys,nn=Ot.defaultExpandedRowKeys,an=Ot.defaultExpandAllRows,Wt=Ot.expandedRowRender,Mn=Ot.onExpand,un=Ot.onExpandedRowsChange,yn=Ot.expandRowByClick,Qt=Ot.rowExpandable,In=Ot.expandIconColumnIndex,jn=Ot.expandedRowClassName,kn=Ot.childrenColumnName,Rn=Ot.indentSize,Cn=mn||qe,Nn=kn||"children",Hn=g.useMemo(function(){return Wt?"row":j.expandable&&Mt===St&&j.expandable.__PARENT_RENDER_ICON__||at.some(function(lt){return lt&&Object(N.a)(lt)==="object"&<[Nn]})?"nest":!1},[!!Wt,at]),Dn=g.useState(function(){return nn||(an?Ve(at,kt,Nn):[])}),Vt=Object(r.a)(Dn,2),en=Vt[0],cn=Vt[1],Zt=g.useMemo(function(){return new Set(En||en||[])},[En,en]),on=g.useCallback(function(lt){var ut=kt(lt,at.indexOf(lt)),Lt,qt=Zt.has(ut);qt?(Zt.delete(ut),Lt=Object(Oe.a)(Zt)):Lt=[].concat(Object(Oe.a)(Zt),[ut]),cn(Lt),Mn&&Mn(!qt,lt),un&&un(Lt)},[kt,Zt,at,Mn,un]),hn=g.useState(0),Xn=Object(r.a)(hn,2),Kn=Xn[0],$n=Xn[1],Ta=Object($.b)(Object(S.a)(Object(S.a)(Object(S.a)({},j),Ot),{},{expandable:!!Wt,expandedKeys:Zt,getRowKey:kt,onTriggerExpand:on,expandIcon:Cn,expandIconColumnIndex:In,direction:ge}),Mt===St?st:null),Sa=Object(r.a)(Ta,2),Gn=Sa[0],wt=Sa[1],Yn=g.useMemo(function(){return{columns:Gn,flattenColumns:wt}},[Gn,wt]),Jn=g.useRef(),Ra=g.useRef(),vn=g.useRef(),Va=g.useState(!1),Na=Object(r.a)(Va,2),oa=Na[0],Ha=Na[1],Xa=g.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=K(new Map),Da=Object(r.a)(Ga,2),Ya=Da[0],Ja=Da[1],On=Object(z.a)(wt),ia=On.map(function(lt){return Ya.get(lt)}),Pa=g.useMemo(function(){return ia},[ia.join("_")]),sa=De(Pa,wt.length,ge),rn=ae&&Object(z.d)(ae.y),bn=ae&&Object(z.d)(ae.x),gn=bn&&wt.some(function(lt){var ut=lt.fixed;return ut}),la=g.useRef(),Fn=ze(It,Z),Bn=Fn.isSticky,_a=Fn.offsetHeader,Qa=Fn.offsetScroll,Aa=Fn.stickyClassName,ua,Zn,Pn;rn&&(Zn={overflowY:"scroll",maxHeight:ae.y}),bn&&(ua={overflowX:"auto"},rn||(Zn={overflowY:"hidden"}),Pn={width:ae.x===!0?"auto":ae.x,minWidth:"100%"});var Tn=g.useCallback(function(lt,ut){Ja(function(Lt){var qt=new Map(Lt);return qt.set(lt,ut),qt})},[]),qn=B(null),wa=Object(r.a)(qn,2),La=wa[0],Ua=wa[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var _n=function(ut){var Lt=ut.currentTarget,qt=ut.scrollLeft,zn=typeof qt=="number"?qt:Lt.scrollLeft,Fa=Lt||Pt;if(!Ua()||Ua()===Fa){var ba;La(Fa),ea(zn,Ra.current),ea(zn,vn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Lt){var Ba=Lt.scrollWidth,za=Lt.clientWidth;Ha(zn>0),$a(zn0?[].concat(Object(S.a)(C),Object(S.a)(re(Y).map(function(z){return Object(Oe.a)({fixed:H},z)}))):[].concat(Object(S.a)(C),[Object(Oe.a)(Object(Oe.a)({},L),{},{fixed:H})])},[])}function Ee(T){for(var C=!0,L=0;L=0;Y-=1){var z=T[Y];if(H&&z.fixed!=="right")H=!1;else if(!H&&z.fixed==="right"){Object(fe.a)(!1,"Index ".concat(Y+1," of `columns` missing `fixed='right'` prop."));break}}}function xe(T){return T.map(function(C){var L=C.fixed,D=Object(N.a)(C,["fixed"]),H=L;return L==="left"?H="right":L==="right"&&(H="left"),Object(Oe.a)({fixed:H},D)})}function Q(T,C){var L=T.prefixCls,D=T.columns,H=T.children,Y=T.expandable,z=T.expandedKeys,be=T.getRowKey,_=T.onTriggerExpand,U=T.expandIcon,F=T.rowExpandable,h=T.expandIconColumnIndex,d=T.direction,i=T.expandRowByClick,O=r.useMemo(function(){return D||ye(H)},[D,H]),M=r.useMemo(function(){if(Y){var m,P=h||0,E=O[P],I=(m={},Object(R.a)(m,w.a,{className:"".concat(L,"-expand-icon-col")}),Object(R.a)(m,"title",""),Object(R.a)(m,"fixed",E?E.fixed:null),Object(R.a)(m,"className","".concat(L,"-row-expand-icon-cell")),Object(R.a)(m,"render",function(k,ue,ce){var he=be(ue,ce),Re=z.has(he),W=F?F(ue):!0,$=U({prefixCls:L,expanded:Re,expandable:W,record:ue,onExpand:_});return i?r.createElement("span",{onClick:function(te){return te.stopPropagation()}},$):$}),m),J=O.slice();return P>=0&&J.splice(P,0,I),J}return O},[Y,O,be,z,U,d]),x=r.useMemo(function(){var m=M;return C&&(m=C(m)),m.length||(m=[{render:function(){return null}}]),m},[C,M,d]),c=r.useMemo(function(){return d==="rtl"?xe(re(x)):re(x)},[x,d]);return[x,c]}ee.b=Q},"y0+3":function(Be,ee,n){"use strict";n.d(ee,"a",function(){return re}),n.d(ee,"b",function(){return xe});var R=/margin|padding|width|height|max|min|offset/,S={left:!0,top:!0},Oe={cssFloat:1,styleFloat:1,float:1};function N(Q){return Q.nodeType===1?Q.ownerDocument.defaultView.getComputedStyle(Q,null):{}}function r(Q,T,C){if(T=T.toLowerCase(),C==="auto"){if(T==="height")return Q.offsetHeight;if(T==="width")return Q.offsetWidth}return T in S||(S[T]=R.test(T)),S[T]?parseFloat(C)||0:C}function g(Q,T){var C=arguments.length,L=N(Q);return T=Oe[T]?"cssFloat"in Q.style?"cssFloat":"styleFloat":T,C===1?L:r(Q,T,L[T]||Q.style[T])}function fe(Q,T,C){var L=arguments.length;if(T=Oe[T]?"cssFloat"in Q.style?"cssFloat":"styleFloat":T,L===3)return typeof C=="number"&&R.test(T)&&(C="".concat(C,"px")),Q.style[T]=C,C;for(var D in T)T.hasOwnProperty(D)&&fe(Q,D,T[D]);return N(Q)}function le(Q){return Q===document.body?document.documentElement.clientWidth:Q.offsetWidth}function w(Q){return Q===document.body?window.innerHeight||document.documentElement.clientHeight:Q.offsetHeight}function ye(){var Q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Q,height:T}}function re(){var Q=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:Q,height:T}}function Ee(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function xe(Q){var T=Q.getBoundingClientRect(),C=document.documentElement;return{left:T.left+(window.pageXOffset||C.scrollLeft)-(C.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||C.scrollTop)-(C.clientTop||document.body.clientTop||0)}}}}]); +`,c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],m={},P;function E(W){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=W.getAttribute("id")||W.getAttribute("data-reactid")||W.getAttribute("name");if($&&m[pe])return m[pe];var te=window.getComputedStyle(W),K=te.getPropertyValue("box-sizing")||te.getPropertyValue("-moz-box-sizing")||te.getPropertyValue("-webkit-box-sizing"),B=parseFloat(te.getPropertyValue("padding-bottom"))+parseFloat(te.getPropertyValue("padding-top")),de=parseFloat(te.getPropertyValue("border-bottom-width"))+parseFloat(te.getPropertyValue("border-top-width")),De=c.map(function(ie){return"".concat(ie,":").concat(te.getPropertyValue(ie))}).join(";"),Fe={sizingStyle:De,paddingSize:B,borderSize:de,boxSizing:K};return $&&pe&&(m[pe]=Fe),Fe}function I(W){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),W.getAttribute("wrap")?P.setAttribute("wrap",W.getAttribute("wrap")):P.removeAttribute("wrap");var K=E(W,$),B=K.paddingSize,de=K.borderSize,De=K.boxSizing,Fe=K.sizingStyle;P.setAttribute("style","".concat(Fe,";").concat(x)),P.value=W.value||W.placeholder||"";var ie=Number.MIN_SAFE_INTEGER,Ue=Number.MAX_SAFE_INTEGER,qe=P.scrollHeight,Ve;if(De==="border-box"?qe+=de:De==="content-box"&&(qe-=B),pe!==null||te!==null){P.value=" ";var He=P.scrollHeight-B;pe!==null&&(ie=He*pe,De==="border-box"&&(ie=ie+B+de),qe=Math.max(ie,qe)),te!==null&&(Ue=He*te,De==="border-box"&&(Ue=Ue+B+de),Ve=qe>Ue?"":"hidden",qe=Math.min(Ue,qe))}return{height:qe,minHeight:ie,maxHeight:Ue,overflowY:Ve,resize:"none"}}var J=n("Gytx"),ne=n.n(J),k;(function(W){W[W.NONE=0]="NONE",W[W.RESIZING=1]="RESIZING",W[W.RESIZED=2]="RESIZED"})(k||(k={}));var ue=function(W){Object(N.a)(pe,W);var $=Object(r.a)(pe);function pe(te){var K;return Object(R.a)(this,pe),K=$.call(this,te),K.nextFrameActionId=void 0,K.resizeFrameId=void 0,K.textArea=void 0,K.saveTextArea=function(B){K.textArea=B},K.handleResize=function(B){var de=K.state.resizeStatus,De=K.props,Fe=De.autoSize,ie=De.onResize;if(de!==k.NONE)return;typeof ie=="function"&&ie(B),Fe&&K.resizeOnNextFrame()},K.resizeOnNextFrame=function(){cancelAnimationFrame(K.nextFrameActionId),K.nextFrameActionId=requestAnimationFrame(K.resizeTextarea)},K.resizeTextarea=function(){var B=K.props.autoSize;if(!B||!K.textArea)return;var de=B.minRows,De=B.maxRows,Fe=I(K.textArea,!1,de,De);K.setState({textareaStyles:Fe,resizeStatus:k.RESIZING},function(){cancelAnimationFrame(K.resizeFrameId),K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:k.RESIZED},function(){K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:k.NONE}),K.fixFirefoxAutoScroll()})})})})},K.renderTextArea=function(){var B=K.props,de=B.prefixCls,De=de===void 0?"rc-textarea":de,Fe=B.autoSize,ie=B.onResize,Ue=B.className,qe=B.disabled,Ve=K.state,He=Ve.textareaStyles,ht=Ve.resizeStatus,it=Object(i.a)(K.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ie=M()(De,Ue,Object(le.a)({},"".concat(De,"-disabled"),qe));"value"in it&&(it.value=it.value||"");var ze=Object(fe.a)(Object(fe.a)(Object(fe.a)({},K.props.style),He),ht===k.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return g.createElement(d,{onResize:K.handleResize,disabled:!(Fe||ie)},g.createElement("textarea",Object(S.a)({},it,{className:Ie,style:ze,ref:K.saveTextArea})))},K.state={textareaStyles:{},resizeStatus:k.NONE},K}return Object(Oe.a)(pe,[{key:"componentDidUpdate",value:function(K){(K.value!==this.props.value||!ne()(K.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var K=this.textArea.selectionStart,B=this.textArea.selectionEnd;this.textArea.setSelectionRange(K,B)}}catch(de){}}},{key:"render",value:function(){return this.renderTextArea()}}]),pe}(g.Component),ce=ue,he=function(W){Object(N.a)(pe,W);var $=Object(r.a)(pe);function pe(te){var K;Object(R.a)(this,pe),K=$.call(this,te),K.resizableTextArea=void 0,K.focus=function(){K.resizableTextArea.textArea.focus()},K.saveTextArea=function(de){K.resizableTextArea=de},K.handleChange=function(de){var De=K.props.onChange;K.setValue(de.target.value,function(){K.resizableTextArea.resizeTextarea()}),De&&De(de)},K.handleKeyDown=function(de){var De=K.props,Fe=De.onPressEnter,ie=De.onKeyDown;de.keyCode===13&&Fe&&Fe(de),ie&&ie(de)};var B=typeof te.value=="undefined"||te.value===null?te.defaultValue:te.value;return K.state={value:B},K}return Object(Oe.a)(pe,[{key:"setValue",value:function(K,B){"value"in this.props||this.setState({value:K},B)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return g.createElement(ce,Object(S.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(K){return"value"in K?{value:K.value}:null}}]),pe}(g.Component),Se=ee.default=he},bT9E:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return R});var S=n("VTBJ");function R(Oe,N){var r=Object(S.a)({},Oe);return Array.isArray(N)&&N.forEach(function(g){delete r[g]}),r}},biw7:function(Be,ee,n){"use strict";var S=n("q1tI"),R=n.n(S),Oe=S.createContext(null);ee.a=Oe},dmUQ:function(Be,ee,n){"use strict";var S=n("Ff2n"),R=n("rePB"),Oe=n("1OyB"),N=n("vuIU"),r=n("Ji7U"),g=n("md7G"),fe=n("foSv"),le=n("q1tI"),w=n.n(le),ye=n("TSYQ"),re=n.n(ye),Ee=n("4IlW");function xe(i,O){var M=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);O&&(x=x.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),M.push.apply(M,x)}return M}function Q(i){for(var O=1;O1?ce-1:0),Se=1;Se1?J-1:0),k=1;k=0)return parseInt(I.slice(I.indexOf("e-")+2),10);var J=0;return I.indexOf(".")>=0&&(J=I.length-I.indexOf(".")-1),J},c.getInputDisplayValue=function(E){var I=E||c.state,J=I.focused,ne=I.inputValue,k=I.value,ue;J?ue=ne:ue=c.toPrecisionAsStep(k),ue==null&&(ue="");var ce=c.formatWrapper(ue);return _(c.props.decimalSeparator)&&(ce=ce.toString().replace(".",c.props.decimalSeparator)),ce},c.recordCursorPosition=function(){try{c.cursorStart=c.input.selectionStart,c.cursorEnd=c.input.selectionEnd,c.currentValue=c.input.value,c.cursorBefore=c.input.value.substring(0,c.cursorStart),c.cursorAfter=c.input.value.substring(c.cursorEnd)}catch(E){}},c.restoreByAfter=function(E){if(E===void 0)return!1;var I=c.input.value,J=I.lastIndexOf(E);if(J===-1)return!1;var ne=c.cursorBefore.length;return c.lastKeyCode===Ee.a.DELETE&&c.cursorBefore.charAt(ne-1)===E[0]?(c.fixCaret(ne,ne),!0):J+E.length===I.length?(c.fixCaret(J,J),!0):!1},c.partRestoreByAfter=function(E){return E===void 0?!1:Array.prototype.some.call(E,function(I,J){var ne=E.substring(J);return c.restoreByAfter(ne)})},c.isNotCompleteNumber=function(E){return isNaN(E)||E===""||E===null||E&&E.toString().indexOf(".")===E.toString().length-1},c.stop=function(){c.autoStepTimer&&clearTimeout(c.autoStepTimer)},c.down=function(E,I,J){c.pressingUpOrDown=!0,c.step("down",E,I,J)},c.up=function(E,I,J){c.pressingUpOrDown=!0,c.step("up",E,I,J)},c.saveInput=function(E){c.input=E};var m=x.value;m===void 0&&(m=x.defaultValue),c.state={focused:x.autoFocus};var P=c.getValidValue(c.toNumber(m));return c.state=Q(Q({},c.state),{},{inputValue:c.toPrecisionAsStep(P),value:P}),c}return Object(N.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(c){var m=this.props,P=m.value,E=m.onChange,I=m.max,J=m.min,ne=this.state.focused;if(c){if(!U(c.value,P)||!U(c.max,I)||!U(c.min,J)){var k=ne?P:this.getValidValue(P),ue;this.pressingUpOrDown?ue=k:this.inputting?ue=this.rawInput:ue=this.toPrecisionAsStep(k),this.setState({value:k,inputValue:ue})}var ce="value"in this.props?P:this.state.value;"max"in this.props&&c.max!==I&&typeof ce=="number"&&ce>I&&E&&E(I),"min"in this.props&&c.min!==J&&typeof ce=="number"&&ce1&&arguments[1]!==void 0?arguments[1]:this.props.min,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,E=parseFloat(c);return isNaN(E)?c:(EP&&(E=P),E)}},{key:"setValue",value:function(c,m){var P=this.props.precision,E=this.isNotCompleteNumber(parseFloat(c))?null:parseFloat(c),I=this.state.value,J=I===void 0?null:I,ne=this.state.inputValue,k=ne===void 0?null:ne,ue=typeof E=="number"?E.toFixed(P):"".concat(E),ce=E!==J||ue!=="".concat(k);return"value"in this.props?(k=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:k},m)):this.setState({value:E,inputValue:this.toPrecisionAsStep(c)},m),ce&&this.props.onChange(E),E}},{key:"getMaxPrecision",value:function(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.props,E=P.precision,I=P.step;if(_(E))return E;var J=this.getPrecision(m),ne=this.getPrecision(I),k=this.getPrecision(c);return c?Math.max(k,J+ne):J+ne}},{key:"getPrecisionFactor",value:function(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=this.getMaxPrecision(c,m);return Math.pow(10,P)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(c){return this.props.formatter?this.props.formatter(c):c}},{key:"toPrecisionAsStep",value:function(c){if(this.isNotCompleteNumber(c)||c==="")return c;var m=Math.abs(this.getMaxPrecision(c));return isNaN(m)?c.toString():Number(c).toFixed(m)}},{key:"toNumber",value:function(c){var m=this.props.precision,P=this.state.focused,E=c&&c.length>16&&P;return this.isNotCompleteNumber(c)||E?c:_(m)?Math.round(c*Math.pow(10,m))/Math.pow(10,m):Number(c)}},{key:"upStep",value:function(c,m){var P=this.props.step,E=this.getPrecisionFactor(c,m),I=Math.abs(this.getMaxPrecision(c,m)),J=((E*c+E*P*m)/E).toFixed(I);return this.toNumber(J)}},{key:"downStep",value:function(c,m){var P=this.props.step,E=this.getPrecisionFactor(c,m),I=Math.abs(this.getMaxPrecision(c,m)),J=((E*c-E*P*m)/E).toFixed(I);return this.toNumber(J)}},{key:"step",value:function(c,m){var P=this,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,I=arguments.length>3?arguments[3]:void 0;this.stop(),m&&(m.persist(),m.preventDefault());var J=this.props;if(J.disabled)return;var ne=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ne))return;var k=this["".concat(c,"Step")](ne,E),ue=k>J.max||kJ.max?k=J.max:k=he),me=(ct||ct===0)&&(isNaN(ct)||Number(ct)<=Se),oe=Ce||E||I,q=me||E||I,ae=re()("".concat(P,"-handler"),"".concat(P,"-handler-up"),Object(R.a)({},"".concat(P,"-handler-up-disabled"),oe)),Ne=re()("".concat(P,"-handler"),"".concat(P,"-handler-down"),Object(R.a)({},"".concat(P,"-handler-down-disabled"),q)),ge=J?{onTouchStart:oe?L:this.up,onTouchEnd:this.stop}:{onMouseDown:oe?L:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Re=J?{onTouchStart:q?L:this.down,onTouchEnd:this.stop}:{onMouseDown:q?L:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return w.a.createElement("div",{className:j,style:W,title:$,onMouseEnter:pe,onMouseLeave:te,onMouseOver:K,onMouseOut:B,onFocus:function(){return null},onBlur:function(){return null}},w.a.createElement("div",{className:"".concat(P,"-handler-wrap")},w.a.createElement("span",Object.assign({unselectable:"on"},ge,{role:"button","aria-label":"Increase Value","aria-disabled":oe,className:ae}),k||w.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-up-inner"),onClick:D})),w.a.createElement("span",Object.assign({unselectable:"on"},Re,{role:"button","aria-label":"Decrease Value","aria-disabled":q,className:Ne}),ue||w.a.createElement("span",{unselectable:"on",className:"".concat(P,"-handler-down-inner"),onClick:D}))),w.a.createElement("div",{className:"".concat(P,"-input-wrap")},w.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Se,"aria-valuemax":he,"aria-valuenow":ct,required:de,type:ie,placeholder:Ue,onPaste:Dt,onClick:De,onMouseUp:this.onMouseUp,className:"".concat(P,"-input"),tabIndex:Fe,autoComplete:ne,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Z?this.onKeyDown:L,onKeyUp:Z?this.onKeyUp:L,autoFocus:Ie,maxLength:it,readOnly:I,disabled:E,max:he,min:Se,step:ht,name:ze,title:$,id:qe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ve),pattern:He,inputMode:Ve,onInput:Pt},G))))}}]),M}(w.a.Component);F.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:be,min:-be,step:1,style:{},onChange:L,onKeyDown:L,onPressEnter:L,onFocus:L,onBlur:L,parser:H,required:!1,autoComplete:"off"};var h=F,d=ee.a=h},fyJ8:function(Be,ee,n){"use strict";var S=n("rePB"),R=n("VTBJ"),Oe=n("Ff2n"),N=n("U8pU"),r=n("q1tI"),g=n.n(r),fe=n("TSYQ"),le=n.n(fe),w=n("c+Xe"),ye=n("sR1s");function re(C){return C&&Object(N.a)(C)==="object"&&!Array.isArray(C)&&!r.isValidElement(C)}function Ee(C){return typeof C=="string"?!0:Object(w.c)(C)}function xe(C,L){var D,H=C.prefixCls,Y=C.className,z=C.record,be=C.index,_=C.dataIndex,U=C.render,F=C.children,h=C.component,d=h===void 0?"td":h,i=C.colSpan,O=C.rowSpan,M=C.fixLeft,x=C.fixRight,c=C.firstFixLeft,m=C.lastFixLeft,P=C.firstFixRight,E=C.lastFixRight,I=C.appendNode,J=C.additionalProps,ne=J===void 0?{}:J,k=C.ellipsis,ue=C.align,ce=C.rowType,he=C.isSticky,Se="".concat(H,"-cell"),W,$;if(F)$=F;else{var pe=Object(ye.b)(z,_);if($=pe,U){var te=U(pe,z,be);re(te)?($=te.children,W=te.props):$=te}}Object(N.a)($)==="object"&&!Array.isArray($)&&!r.isValidElement($)&&($=null),k&&(m||P)&&($=r.createElement("span",{className:"".concat(Se,"-content")},$));var K=W||{},B=K.colSpan,de=K.rowSpan,De=K.style,Fe=K.className,ie=Object(Oe.a)(K,["colSpan","rowSpan","style","className"]),Ue=B!==void 0?B:i,qe=de!==void 0?de:O;if(Ue===0||qe===0)return null;var Ve={},He=typeof M=="number",ht=typeof x=="number";He&&(Ve.position="sticky",Ve.left=M),ht&&(Ve.position="sticky",Ve.right=x);var it={};ue&&(it.textAlign=ue);var Ie,ze=k===!0?{showTitle:!0}:k;ze&&(ze.showTitle||ce==="header")&&(typeof $=="string"||typeof $=="number"?Ie=$.toString():r.isValidElement($)&&typeof $.props.children=="string"&&(Ie=$.props.children));var Dt=Object(R.a)(Object(R.a)(Object(R.a)({title:Ie},ie),ne),{},{colSpan:Ue&&Ue!==1?Ue:null,rowSpan:qe&&qe!==1?qe:null,className:le()(Se,Y,(D={},Object(S.a)(D,"".concat(Se,"-fix-left"),He),Object(S.a)(D,"".concat(Se,"-fix-left-first"),c),Object(S.a)(D,"".concat(Se,"-fix-left-last"),m),Object(S.a)(D,"".concat(Se,"-fix-right"),ht),Object(S.a)(D,"".concat(Se,"-fix-right-first"),P),Object(S.a)(D,"".concat(Se,"-fix-right-last"),E),Object(S.a)(D,"".concat(Se,"-ellipsis"),k),Object(S.a)(D,"".concat(Se,"-with-append"),I),Object(S.a)(D,"".concat(Se,"-fix-sticky"),(He||ht)&&he),D),ne.className,Fe),style:Object(R.a)(Object(R.a)(Object(R.a)(Object(R.a)({},ne.style),it),Ve),De),ref:Ee(d)?L:null});return r.createElement(d,Object.assign({},Dt),I,$)}var Q=r.forwardRef(xe);Q.displayName="Cell";var T=r.memo(Q,function(C,L){return L.shouldCellUpdate?!L.shouldCellUpdate(L.record,C.record):!1});ee.a=T},hW8S:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return N}),n.d(ee,"c",function(){return r}),n.d(ee,"b",function(){return g});var S=n("VTBJ"),R=n("Ff2n"),Oe=n("Kwbf"),N="RC_TABLE_INTERNAL_COL_DEFINE";function r(fe){var le=fe.expandable,w=Object(R.a)(fe,["expandable"]);return"expandable"in fe?Object(S.a)(Object(S.a)({},w),le):w}function g(fe){return Object.keys(fe).reduce(function(le,w){return(w.substr(0,5)==="data-"||w.substr(0,5)==="aria-")&&(le[w]=fe[w]),le},{})}},k3GJ:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return mo});var S=n("rePB"),R=n("ODXe"),Oe=n("Ff2n"),N=n("VTBJ"),r=n("q1tI"),g=n("TSYQ"),fe=n.n(g),le=n("Zm9Q"),w=n("6cGi"),ye=n("KQm4"),re=n("xEkU"),Ee=n.n(re),xe=n("t23M");function Q(o){var f=Object(r.useRef)(),v=Object(r.useRef)(!1);function l(){for(var e=arguments.length,a=new Array(e),t=0;ty&&(V=y-X),Object(r.useMemo)(function(){if(!a.length)return[0,0];for(var se=a.length,we=se,Ye=0;Yep+V){we=Ye-1;break}}for(var Qe=0,Je=se-1;Je>=0;Je-=1){var Xe=o.get(a[Je].key)||z;if(Xe[b]1&&arguments[1]!==void 0?arguments[1]:!1,l=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(l){if(v){var e=getComputedStyle(f),a=e.marginLeft,t=e.marginRight;l+=+a.replace("px","")+ +t.replace("px","")}l=+l.toFixed(6)}return l||0},Ie=function(f,v,l){f&&Object(P.a)(f.style)==="object"&&(f.style[v]=l)},ze=function(){return Fe.any},Dt=n("bdgK"),Pt=n("i8i4"),Rt=n.n(Pt),yt=n("wgJM"),ct=n("l4aY"),Jt=n("m+aA"),j=n("c+Xe"),G=n("zT1h"),Z=n("QC+M");function ve(o,f,v){return v?o[0]===f[0]:o[0]===f[0]&&o[1]===f[1]}function Ce(o,f,v){var l=o[f]||{};return Object(N.a)(Object(N.a)({},l),v)}function me(o,f,v,l){for(var e=v.points,a=Object.keys(o),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(yt.a)(function(){e<=1?l({isCanceled:function(){return a!==o.current}}):v(l,e-1)});o.current=a}return r.useEffect(function(){return function(){f()}},[]),[v,f]},mn=[ot,vt,mt,ke],En=!1,nn=!0;function an(o){return o===mt||o===ke}var Wt=function(o,f){var v=r.useState(At),l=Object(R.a)(v,2),e=l[0],a=l[1],t=Ot(),s=Object(R.a)(t,2),u=s[0],b=s[1];function p(){a(ot)}return kt(function(){if(e!==At&&e!==ke){var y=mn.indexOf(e),A=mn[y+1],X=f(e);X===En?a(A):u(function(V){function se(){if(V.isCanceled())return;a(A)}X===!0?se():Promise.resolve(X).then(se)})}},[o,e]),r.useEffect(function(){return function(){b()}},[]),[p,e]},Mn=function(o){var f=Object(r.useRef)(),v=Object(r.useRef)(o);v.current=o;var l=r.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(Ft,l),t.removeEventListener(Le,l))}function a(t){f.current&&f.current!==t&&e(f.current),t&&t!==f.current&&(t.addEventListener(Ft,l),t.addEventListener(Le,l),f.current=t)}return r.useEffect(function(){return function(){e(f.current)}},[]),[a,e]};function un(o,f,v,l){var e=l.motionEnter,a=e===void 0?!0:e,t=l.motionAppear,s=t===void 0?!0:t,u=l.motionLeave,b=u===void 0?!0:u,p=l.motionDeadline,y=l.motionLeaveImmediately,A=l.onAppearPrepare,X=l.onEnterPrepare,V=l.onLeavePrepare,se=l.onAppearStart,we=l.onEnterStart,Ye=l.onLeaveStart,We=l.onAppearActive,Qe=l.onEnterActive,Je=l.onLeaveActive,Xe=l.onAppearEnd,$e=l.onEnterEnd,dt=l.onLeaveEnd,Ze=l.onVisibleChanged,Ut=Ct(),gt=Object(R.a)(Ut,2),_e=gt[0],Pe=gt[1],et=Ct(st),rt=Object(R.a)(et,2),Te=rt[0],ft=rt[1],St=Ct(null),pt=Object(R.a)(St,2),xt=pt[0],_t=pt[1],$t=Object(r.useRef)(!1),sn=Object(r.useRef)(null),Kt=Object(r.useRef)(!1),ln=Object(r.useRef)(null);function xn(){var Nt=v();return Nt||ln.current}var dn=Object(r.useRef)(!1);function fn(Nt){var bt=xn();if(Nt&&!Nt.deadline&&Nt.target!==bt)return;var Yt;Te===jt&&dn.current?Yt=Xe==null?void 0:Xe(bt,Nt):Te===It&&dn.current?Yt=$e==null?void 0:$e(bt,Nt):Te===at&&dn.current&&(Yt=dt==null?void 0:dt(bt,Nt)),Yt!==!1&&!Kt.current&&(ft(st),_t(null))}var zt=Mn(fn),tn=Object(R.a)(zt,1),Gt=tn[0],Ht=r.useMemo(function(){var Nt,bt,Yt;switch(Te){case"appear":return Nt={},Object(S.a)(Nt,ot,A),Object(S.a)(Nt,vt,se),Object(S.a)(Nt,mt,We),Nt;case"enter":return bt={},Object(S.a)(bt,ot,X),Object(S.a)(bt,vt,we),Object(S.a)(bt,mt,Qe),bt;case"leave":return Yt={},Object(S.a)(Yt,ot,V),Object(S.a)(Yt,vt,Ye),Object(S.a)(Yt,mt,Je),Yt;default:return{}}},[Te]),wn=Wt(Te,function(Nt){if(Nt===ot){var bt=Ht[ot];return bt?bt(xn()):En}if(Tt in Ht){var Yt;_t(((Yt=Ht[Tt])===null||Yt===void 0?void 0:Yt.call(Ht,xn(),null))||null)}return Tt===mt&&(Gt(xn()),p>0&&(clearTimeout(sn.current),sn.current=setTimeout(function(){fn({deadline:!0})},p))),nn}),Ln=Object(R.a)(wn,2),Wn=Ln[0],Tt=Ln[1],Rn=an(Tt);dn.current=Rn,kt(function(){Pe(f);var Nt=$t.current;if($t.current=!0,!o)return;var bt;!Nt&&f&&s&&(bt=jt),Nt&&f&&a&&(bt=It),(Nt&&!f&&b||!Nt&&y&&!f&&b)&&(bt=at),bt&&(ft(bt),Wn())},[f]),Object(r.useEffect)(function(){(Te===jt&&!s||Te===It&&!a||Te===at&&!b)&&ft(st)},[s,a,b]),Object(r.useEffect)(function(){return function(){clearTimeout(sn.current),Kt.current=!0}},[]),Object(r.useEffect)(function(){_e!==void 0&&Te===st&&(Ze==null||Ze(_e))},[_e,Te]);var Vn=xt;return Ht[ot]&&Tt===vt&&(Vn=Object(N.a)({transition:"none"},Vn)),[Te,Tt,Vn,_e!=null?_e:f]}var yn=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){return Object(U.a)(this,v),f.apply(this,arguments)}return Object(F.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(r.Component),Qt=yn;function In(o){var f=o;Object(P.a)(o)==="object"&&(f=o.transitionSupport);function v(e){return!!(e.motionName&&f)}var l=r.forwardRef(function(e,a){var t=e.visible,s=t===void 0?!0:t,u=e.removeOnLeave,b=u===void 0?!0:u,p=e.forceRender,y=e.children,A=e.motionName,X=e.leavedClassName,V=e.eventProps,se=v(e),we=Object(r.useRef)(),Ye=Object(r.useRef)();function We(){try{return Object(Jt.a)(we.current||Ye.current)}catch(ft){return null}}var Qe=un(se,s,We,e),Je=Object(R.a)(Qe,4),Xe=Je[0],$e=Je[1],dt=Je[2],Ze=Je[3],Ut=r.useRef(Ze);Ze&&(Ut.current=!0);var gt=Object(r.useRef)(a);gt.current=a;var _e=r.useCallback(function(ft){we.current=ft,Object(j.b)(gt.current,ft)},[]),Pe,et=Object(N.a)(Object(N.a)({},V),{},{visible:s});if(!y)Pe=null;else if(Xe===st||!v(e))Ze?Pe=y(Object(N.a)({},et),_e):!b&&Ut.current?Pe=y(Object(N.a)(Object(N.a)({},et),{},{className:X}),_e):p?Pe=y(Object(N.a)(Object(N.a)({},et),{},{style:{display:"none"}}),_e):Pe=null;else{var rt,Te;$e===ot?Te="prepare":an($e)?Te="active":$e===vt&&(Te="start"),Pe=y(Object(N.a)(Object(N.a)({},et),{},{className:fe()(Mt(A,Xe),(rt={},Object(S.a)(rt,Mt(A,"".concat(Xe,"-").concat(Te)),Te),Object(S.a)(rt,A,typeof A=="string"),rt)),style:dt}),_e)}return r.createElement(Qt,{ref:Ye},Pe)});return l.displayName="CSSMotion",l}var jn=In(nt),kn="add",Sn="keep",Cn="remove",Nn="removed";function Hn(o){var f;return o&&Object(P.a)(o)==="object"&&"key"in o?f=o:f={key:o},Object(N.a)(Object(N.a)({},f),{},{key:String(f.key)})}function Dn(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return o.map(Hn)}function Vt(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],l=0,e=f.length,a=Dn(o),t=Dn(f);a.forEach(function(b){for(var p=!1,y=l;y1});return u.forEach(function(b){v=v.filter(function(p){var y=p.key,A=p.status;return y!==b||A!==Cn}),v.forEach(function(p){p.key===b&&(p.status=Sn)})}),v}var en=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cn(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jn,v=function(l){Object(d.a)(a,l);var e=Object(i.a)(a);function a(){var t;return Object(U.a)(this,a),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(s){t.setState(function(u){var b=u.keyEntities;return{keyEntities:b.map(function(p){return p.key!==s?p:Object(N.a)(Object(N.a)({},p),{},{status:Nn})})}})},t}return Object(F.a)(a,[{key:"render",value:function(){var s=this,u=this.state.keyEntities,b=this.props,p=b.component,y=b.children,A=b.onVisibleChanged,X=Object(Oe.a)(b,["component","children","onVisibleChanged"]),V=p||r.Fragment,se={};return en.forEach(function(we){se[we]=X[we],delete X[we]}),delete X.keys,r.createElement(V,X,u.map(function(we){var Ye=we.status,We=Object(Oe.a)(we,["status"]),Qe=Ye===kn||Ye===Sn;return r.createElement(f,Object(_.a)({},se,{key:We.key,visible:Qe,eventProps:We,onVisibleChanged:function(Xe){A==null||A(Xe,{key:We.key}),Xe||s.removeKey(We.key)}}),y)}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var b=s.keys,p=u.keyEntities,y=Dn(b),A=Vt(p,y);return{keyEntities:A.filter(function(X){var V=p.find(function(se){var we=se.key;return X.key===we});return!(V&&V.status===Nn&&X.status===Cn)})}}}]),a}(r.Component);return v.defaultProps={component:"div"},v}var Zt=cn(nt),on=jn;function hn(o){var f=o.prefixCls,v=o.motion,l=o.animation,e=o.transitionName;return v||(l?{motionName:"".concat(f,"-").concat(l)}:e?{motionName:e}:null)}function Xn(o){var f=o.prefixCls,v=o.visible,l=o.zIndex,e=o.mask,a=o.maskMotion,t=o.maskAnimation,s=o.maskTransitionName;if(!e)return null;var u={};return(a||s||t)&&(u=Object(N.a)({motionAppear:!0},hn({motion:a,prefixCls:f,transitionName:s,animation:t}))),r.createElement(on,Object(_.a)({},u,{visible:v,removeOnLeave:!0}),function(b){var p=b.className;return r.createElement("div",{style:{zIndex:l},className:fe()("".concat(f,"-mask"),p)})})}var Kn=n("9mu1"),$n=n("o0o1"),Ta=n.n($n),Ra=n("HaE+"),Gn=["measure","align",null,"motion"],wt=function(o,f){var v=Object(r.useState)(null),l=Object(R.a)(v,2),e=l[0],a=l[1],t=Object(r.useRef)(),s=Object(r.useRef)(!1);function u(y){s.current||a(y)}function b(){yt.a.cancel(t.current)}function p(y){b(),t.current=Object(yt.a)(function(){u(function(A){switch(e){case"align":return"motion";case"motion":return"stable";default:}return A}),y==null||y()})}return Object(r.useEffect)(function(){u("measure")},[o]),Object(r.useEffect)(function(){switch(e){case"measure":f();break;default:}e&&(t.current=Object(yt.a)(Object(Ra.a)(Ta.a.mark(function y(){var A,X;return Ta.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:A=Gn.indexOf(e),X=Gn[A+1],X&&A!==-1&&u(X);case 3:case"end":return se.stop()}},y)}))))},[e]),Object(r.useEffect)(function(){return function(){s.current=!0,b()}},[]),[e,p]},Yn=function(o){var f=r.useState({width:0,height:0}),v=Object(R.a)(f,2),l=v[0],e=v[1];function a(s){e({width:s.offsetWidth,height:s.offsetHeight})}var t=r.useMemo(function(){var s={};if(o){var u=l.width,b=l.height;o.indexOf("height")!==-1&&b?s.height=b:o.indexOf("minHeight")!==-1&&b&&(s.minHeight=b),o.indexOf("width")!==-1&&u?s.width=u:o.indexOf("minWidth")!==-1&&u&&(s.minWidth=u)}return s},[o,l]);return[t,a]},Jn=r.forwardRef(function(o,f){var v=o.visible,l=o.prefixCls,e=o.className,a=o.style,t=o.children,s=o.zIndex,u=o.stretch,b=o.destroyPopupOnHide,p=o.forceRender,y=o.align,A=o.point,X=o.getRootDomNode,V=o.getClassNameFromAlign,se=o.onAlign,we=o.onMouseEnter,Ye=o.onMouseLeave,We=o.onMouseDown,Qe=o.onTouchStart,Je=Object(r.useRef)(),Xe=Object(r.useRef)(),$e=Object(r.useState)(),dt=Object(R.a)($e,2),Ze=dt[0],Ut=dt[1],gt=Yn(u),_e=Object(R.a)(gt,2),Pe=_e[0],et=_e[1];function rt(){u&&et(X())}var Te=wt(v,rt),ft=Object(R.a)(Te,2),St=ft[0],pt=ft[1],xt=Object(r.useRef)();function _t(){return A||X}function $t(){var zt;(zt=Je.current)===null||zt===void 0||zt.forceAlign()}function sn(zt,tn){var Gt=V(tn);Ze!==Gt&&Ut(Gt),St==="align"&&(Ze!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Ht;(Ht=xt.current)===null||Ht===void 0||Ht.call(xt)}),se==null||se(zt,tn))}var Kt=Object(N.a)({},hn(o));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(zt){var tn=Kt[zt];Kt[zt]=function(Gt,Ht){return pt(),tn==null?void 0:tn(Gt,Ht)}});function ln(){return new Promise(function(zt){xt.current=zt})}r.useEffect(function(){!Kt.motionName&&St==="motion"&&pt()},[Kt.motionName,St]),r.useImperativeHandle(f,function(){return{forceAlign:$t,getElement:function(){return Xe.current}}});var xn=Object(N.a)(Object(N.a)({},Pe),{},{zIndex:s,opacity:St==="motion"||St==="stable"||!v?void 0:0,pointerEvents:St==="stable"?void 0:"none"},a),dn=!0;(y==null?void 0:y.points)&&(St==="align"||St==="stable")&&(dn=!1);var fn=t;return r.Children.count(t)>1&&(fn=r.createElement("div",{className:"".concat(l,"-content")},t)),r.createElement(on,Object(_.a)({visible:v,ref:Xe,leavedClassName:"".concat(l,"-hidden")},Kt,{onAppearPrepare:ln,onEnterPrepare:ln,removeOnLeave:b,forceRender:p}),function(zt,tn){var Gt=zt.className,Ht=zt.style,wn=fe()(l,e,Ze,Gt);return r.createElement(Kn.a,{target:_t(),key:"popup",ref:Je,monitorWindowResize:!0,disabled:dn,align:y,onAlign:sn},r.createElement("div",{ref:tn,className:wn,onMouseEnter:we,onMouseLeave:Ye,onMouseDownCapture:We,onTouchStartCapture:Qe,style:Object(N.a)(Object(N.a)({},Ht),xn)},fn))})});Jn.displayName="PopupInner";var Sa=Jn,vn=r.forwardRef(function(o,f){var v=o.prefixCls,l=o.visible,e=o.zIndex,a=o.children,t=o.mobile;t=t===void 0?{}:t;var s=t.popupClassName,u=t.popupStyle,b=t.popupMotion,p=b===void 0?{}:b,y=t.popupRender,A=r.useRef();r.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return A.current}}});var X=Object(N.a)({zIndex:e},u),V=a;return r.Children.count(a)>1&&(V=r.createElement("div",{className:"".concat(v,"-content")},a)),y&&(V=y(V)),r.createElement(on,Object(_.a)({visible:l,ref:A,removeOnLeave:!0},p),function(se,we){var Ye=se.className,We=se.style,Qe=fe()(v,s,Ye);return r.createElement("div",{ref:we,className:Qe,style:Object(N.a)(Object(N.a)({},We),X)},V)})});vn.displayName="MobilePopupInner";var Va=vn,Na=["visible","mobile"],oa=r.forwardRef(function(o,f){var v=o.visible,l=o.mobile,e=Object(Oe.a)(o,Na),a=Object(r.useState)(v),t=Object(R.a)(a,2),s=t[0],u=t[1],b=Object(r.useState)(!1),p=Object(R.a)(b,2),y=p[0],A=p[1],X=Object(N.a)(Object(N.a)({},e),{},{visible:s});Object(r.useEffect)(function(){u(v),v&&l&&A(oe())},[v,l]);var V=y?r.createElement(Va,Object(_.a)({},X,{mobile:l,ref:f})):r.createElement(Sa,Object(_.a)({},X,{ref:f}));return r.createElement("div",null,r.createElement(Xn,X),V)});oa.displayName="Popup";var Ha=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(o){return o?o.ownerDocument:window.document}var Da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(o){var f=function(v){Object(d.a)(e,v);var l=Object(i.a)(e);function e(a){var t;Object(U.a)(this,e),t=l.call(this,a),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(u){var b=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",u),t.delaySetPopupVisible(!0,b,b?null:u)},t.onMouseMove=function(u){t.fireEvents("onMouseMove",u),t.setPoint(u)},t.onMouseLeave=function(u){t.fireEvents("onMouseLeave",u),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(u){var b;if(u.relatedTarget&&!u.relatedTarget.setTimeout&&Object(ct.a)((b=t.popupRef.current)===null||b===void 0?void 0:b.getElement(),u.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(u){t.fireEvents("onFocus",u),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(u){t.fireEvents("onMouseDown",u),t.preClickTime=Date.now()},t.onTouchStart=function(u){t.fireEvents("onTouchStart",u),t.preTouchTime=Date.now()},t.onBlur=function(u){t.fireEvents("onBlur",u),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(u){u.preventDefault(),t.fireEvents("onContextMenu",u),t.setPopupVisible(!0,u)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(u){if(t.fireEvents("onClick",u),t.focusTime){var b;if(t.preClickTime&&t.preTouchTime?b=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?b=t.preClickTime:t.preTouchTime&&(b=t.preTouchTime),Math.abs(b-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var p=!t.state.popupVisible;(t.isClickToHide()&&!p||p&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,u)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var u;(u=t.context).onPopupMouseDown.apply(u,arguments)}},t.onDocumentClick=function(u){if(t.props.mask&&!t.props.maskClosable)return;var b=u.target,p=t.getRootDomNode(),y=t.getPopupDomNode();(!Object(ct.a)(p,b)||t.isContextMenuOnly())&&!Object(ct.a)(y,b)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var u=t.props.getTriggerDOMNode;if(u)return u(t.triggerRef.current);try{var b=Object(Jt.a)(t.triggerRef.current);if(b)return b}catch(p){}return Rt.a.findDOMNode(Object(h.a)(t))},t.getPopupClassNameFromAlign=function(u){var b=[],p=t.props,y=p.popupPlacement,A=p.builtinPlacements,X=p.prefixCls,V=p.alignPoint,se=p.getPopupClassNameFromAlign;return y&&A&&b.push(me(A,X,u,V)),se&&b.push(se(u)),b.join(" ")},t.getComponent=function(){var u=t.props,b=u.prefixCls,p=u.destroyPopupOnHide,y=u.popupClassName,A=u.onPopupAlign,X=u.popupMotion,V=u.popupAnimation,se=u.popupTransitionName,we=u.popupStyle,Ye=u.mask,We=u.maskAnimation,Qe=u.maskTransitionName,Je=u.maskMotion,Xe=u.zIndex,$e=u.popup,dt=u.stretch,Ze=u.alignPoint,Ut=u.mobile,gt=u.forceRender,_e=t.state,Pe=_e.popupVisible,et=_e.point,rt=t.getPopupAlign(),Te={};return t.isMouseEnterToShow()&&(Te.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Te.onMouseLeave=t.onPopupMouseLeave),Te.onMouseDown=t.onPopupMouseDown,Te.onTouchStart=t.onPopupMouseDown,r.createElement(Ha,Object(_.a)({prefixCls:b,destroyPopupOnHide:p,visible:Pe,point:Ze&&et,className:y,align:rt,onAlign:A,animation:V,getClassNameFromAlign:t.getPopupClassNameFromAlign},Te,{stretch:dt,getRootDomNode:t.getRootDomNode,style:we,mask:Ye,zIndex:Xe,transitionName:se,maskAnimation:We,maskTransitionName:Qe,maskMotion:Je,ref:t.popupRef,motion:X,mobile:Ut,forceRender:gt}),typeof $e=="function"?$e():$e)},t.attachParent=function(u){yt.a.cancel(t.attachId);var b=t.props,p=b.getPopupContainer,y=b.getDocument,A=t.getRootDomNode(),X;p?(A||p.length===0)&&(X=p(A)):X=y(t.getRootDomNode()).body,X?X.appendChild(u):t.attachId=Object(yt.a)(function(){t.attachParent(u)})},t.getContainer=function(){var u=t.props.getDocument,b=u(t.getRootDomNode()).createElement("div");return b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",t.attachParent(b),b},t.setPoint=function(u){var b=t.props.alignPoint;if(!b||!u)return;t.setState({point:{pageX:u.pageX,pageY:u.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var s;return"popupVisible"in a?s=!!a.popupVisible:s=!!a.defaultPopupVisible,t.state={prevPopupVisible:s,popupVisible:s},Da.forEach(function(u){t["fire".concat(u)]=function(b){t.fireEvents(u,b)}}),t}return Object(F.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,s=this.state;if(s.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(G.a)(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(G.a)(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(G.a)(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(G.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),yt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,s=t.popupPlacement,u=t.popupAlign,b=t.builtinPlacements;return s&&b?Ce(b,s,u):u}},{key:"setPopupVisible",value:function(t,s){var u=this.props.alignPoint,b=this.state.popupVisible;this.clearDelayTimer(),b!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:b}),this.props.onPopupVisibleChange(t)),u&&s&&t&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(t,s,u){var b=this,p=s*1e3;if(this.clearDelayTimer(),p){var y=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){b.setPopupVisible(t,y),b.clearDelayTimer()},p)}else this.setPopupVisible(t,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var s=this.props.children.props,u=this.props;return s[t]&&u[t]?this["fire".concat(t)]:s[t]||u[t]}},{key:"isClickToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,s=t.action,u=t.hideAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,s=t.action,u=t.hideAction;return s.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,s=t.action,u=t.showAction;return s.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,s=t.action,u=t.hideAction;return s.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,s){var u=this.props.children.props[t];u&&u(s);var b=this.props[t];b&&b(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,s=this.props,u=s.children,b=s.forceRender,p=s.alignPoint,y=s.className,A=s.autoDestroy,X=r.Children.only(u),V={key:"trigger"};this.isContextMenuToShow()?V.onContextMenu=this.onContextMenu:V.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(V.onClick=this.onClick,V.onMouseDown=this.onMouseDown,V.onTouchStart=this.onTouchStart):(V.onClick=this.createTwoChains("onClick"),V.onMouseDown=this.createTwoChains("onMouseDown"),V.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(V.onMouseEnter=this.onMouseEnter,p&&(V.onMouseMove=this.onMouseMove)):V.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?V.onMouseLeave=this.onMouseLeave:V.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(V.onFocus=this.onFocus,V.onBlur=this.onBlur):(V.onFocus=this.createTwoChains("onFocus"),V.onBlur=this.createTwoChains("onBlur"));var se=fe()(X&&X.props&&X.props.className,y);se&&(V.className=se);var we=Object(N.a)({},V);Object(j.c)(X)&&(we.ref=Object(j.a)(this.triggerRef,X.ref));var Ye=r.cloneElement(X,we),We;return(t||this.popupRef.current||b)&&(We=r.createElement(o,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&A&&(We=null),r.createElement(ra.Provider,{value:this.triggerContextValue},Ye,We)}}],[{key:"getDerivedStateFromProps",value:function(t,s){var u=t.popupVisible,b={};return u!==void 0&&s.popupVisible!==u&&(b.popupVisible=u,b.prevPopupVisible=s.popupVisible),b}}]),e}(r.Component);return f.contextType=ra,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var Ja=Ya(Z.a),On={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:On,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:On,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:On,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:On,offset:[4,0]}},Pa={topLeft:{points:["bl","tl"],overflow:On,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:On,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:On,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:On,offset:[4,0]}},sa=ia,rn=0,bn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},gn=function(f,v,l){var e=qe(v),a=f.getState();f.setState({defaultActiveFirst:Object(N.a)(Object(N.a)({},a.defaultActiveFirst),{},Object(S.a)({},e,l))})},la=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(l){var e;Object(U.a)(this,v),e=f.call(this,l),e.onDestroy=function(p){e.props.onDestroy(p)},e.onKeyDown=function(p){var y=p.keyCode,A=e.menuInstance,X=e.props.store,V=e.getVisible();if(y===C.a.ENTER)return e.onTitleClick(p),gn(X,e.props.eventKey,!0),!0;if(y===C.a.RIGHT)return V?A.onKeyDown(p):(e.triggerOpenChange(!0),gn(X,e.props.eventKey,!0)),!0;if(y===C.a.LEFT){var se;if(V)se=A.onKeyDown(p);else return;return se||(e.triggerOpenChange(!1),se=!0),se}return V&&(y===C.a.UP||y===C.a.DOWN)?A.onKeyDown(p):void 0},e.onOpenChange=function(p){e.props.onOpenChange(p)},e.onPopupVisibleChange=function(p){e.triggerOpenChange(p,p?"mouseenter":"mouseleave")},e.onMouseEnter=function(p){var y=e.props,A=y.eventKey,X=y.onMouseEnter,V=y.store;gn(V,e.props.eventKey,!1),X({key:A,domEvent:p})},e.onMouseLeave=function(p){var y=e.props,A=y.parentMenu,X=y.eventKey,V=y.onMouseLeave;A.subMenuInstance=Object(h.a)(e),V({key:X,domEvent:p})},e.onTitleMouseEnter=function(p){var y=e.props,A=y.eventKey,X=y.onItemHover,V=y.onTitleMouseEnter;X({key:A,hover:!0}),V({key:A,domEvent:p})},e.onTitleMouseLeave=function(p){var y=e.props,A=y.parentMenu,X=y.eventKey,V=y.onItemHover,se=y.onTitleMouseLeave;A.subMenuInstance=Object(h.a)(e),V({key:X,hover:!1}),se({key:X,domEvent:p})},e.onTitleClick=function(p){var y=Object(h.a)(e),A=y.props;if(A.onTitleClick({key:A.eventKey,domEvent:p}),A.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),gn(A.store,e.props.eventKey,!1)},e.onSubMenuClick=function(p){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(p))},e.onSelect=function(p){e.props.onSelect(p)},e.onDeselect=function(p){e.props.onDeselect(p)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(p){e.menuInstance=p},e.addKeyPath=function(p){return Object(N.a)(Object(N.a)({},p),{},{keyPath:(p.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(p,y){var A=e.props.eventKey,X=function(){e.onOpenChange({key:A,item:Object(h.a)(e),trigger:y,open:p})};y==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){X()},0):X()},e.isChildrenSelected=function(){var p={find:!1};return He(e.props.children,e.props.selectedKeys,p),p.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var p=Pt.findDOMNode(e.menuInstance);if(p.offsetWidth>=e.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(p){e.subMenuTitle=p},e.getBaseProps=function(){var p=Object(h.a)(e),y=p.props,A=e.getMode();return{mode:A==="horizontal"?"vertical":A,visible:e.getVisible(),level:y.level+1,inlineIndent:y.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:y.selectedKeys,eventKey:"".concat(y.eventKey,"-menu-"),openKeys:y.openKeys,motion:y.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:y.subMenuOpenDelay,parentMenu:Object(h.a)(e),subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,triggerSubMenuAction:y.triggerSubMenuAction,builtinPlacements:y.builtinPlacements,defaultActiveFirst:y.store.getState().defaultActiveFirst[qe(y.eventKey)],multiple:y.multiple,prefixCls:y.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:y.itemIcon,expandIcon:y.expandIcon,direction:y.direction}},e.getMotion=function(p,y){var A=Object(h.a)(e),X=A.haveRendered,V=e.props,se=V.motion,we=V.rootPrefixCls,Ye=Object(N.a)(Object(N.a)({},se),{},{leavedClassName:"".concat(we,"-hidden"),removeOnLeave:!1,motionAppear:X||!y||p!=="inline"});return Ye};var a=l.store,t=l.eventKey,s=a.getState(),u=s.defaultActiveFirst;e.isRootMenu=!1;var b=!1;return u&&(b=u[t]),gn(a,t,b),e.state={mode:l.mode,isOpen:l.isOpen},e}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,a=this.props,t=a.mode,s=a.parentMenu,u=a.manualRef,b=a.isOpen,p=function(){e.setState({mode:t,isOpen:b})},y=b!==this.state.isOpen,A=t!==this.state.mode;if((A||y)&&(yt.a.cancel(this.updateStateRaf),A?this.updateStateRaf=Object(yt.a)(p):p()),u&&u(this),t!=="horizontal"||!(s==null?void 0:s.isRootMenu)||!b)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,a=e.onDestroy,t=e.eventKey;a&&a(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),yt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,a){var t=this.getBaseProps();return r.createElement(ea,Object(_.a)({},t,{id:this.internalMenuId,className:e,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,a=this.getBaseProps(),t=a.mode,s=a.visible,u=a.forceSubMenuRender,b=a.direction,p=this.getMotion(t,s);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||s||u,!this.haveOpened)return r.createElement("div",null);var y=fe()("".concat(a.prefixCls,"-sub"),Object(S.a)({},"".concat(a.prefixCls,"-rtl"),b==="rtl"));return this.isInlineMode()?r.createElement(on,Object(_.a)({visible:a.visible,forceRender:u},p),function(A){var X=A.className,V=A.style,se=fe()(y,X);return e.renderPopupMenu(se,V)}):this.renderPopupMenu(y)}},{key:"render",value:function(){var e,a,t,s=Object(N.a)({},this.props),u=this.getVisible(),b=this.getPrefixCls(),p=this.isInlineMode(),y=this.getMode(),A=fe()(b,"".concat(b,"-").concat(y),(e={},Object(S.a)(e,s.className,!!s.className),Object(S.a)(e,this.getOpenClassName(),u),Object(S.a)(e,this.getActiveClassName(),s.active||u&&!p),Object(S.a)(e,this.getDisabledClassName(),s.disabled),Object(S.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(s.eventKey?this.internalMenuId="".concat(s.eventKey,"$Menu"):(rn+=1,this.internalMenuId="$__$".concat(rn,"$Menu")));var X={},V={},se={};s.disabled||(X={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},V={onClick:this.onTitleClick},se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var we={},Ye=s.direction,We=Ye==="rtl";p&&(We?we.paddingRight=s.inlineIndent*s.level:we.paddingLeft=s.inlineIndent*s.level);var Qe={};this.getVisible()&&(Qe={"aria-owns":this.internalMenuId});var Je=null;y!=="horizontal"&&(Je=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Je=r.createElement(this.props.expandIcon,Object(N.a)({},this.props))));var Xe=r.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:we,className:"".concat(b,"-title"),role:"button"},se,V,{"aria-expanded":u},Qe,{"aria-haspopup":"true",title:typeof s.title=="string"?s.title:void 0}),s.title,Je||r.createElement("i",{className:"".concat(b,"-arrow")})),$e=this.renderChildren(),dt=((a=s.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?s.parentMenu.props.getPopupContainer:function(_t){return _t.parentNode},Ze=bn[y],Ut=s.popupOffset?{offset:s.popupOffset}:{},gt=fe()((t={},Object(S.a)(t,s.popupClassName,s.popupClassName&&!p),Object(S.a)(t,"".concat(b,"-rtl"),We),t)),_e=s.disabled,Pe=s.triggerSubMenuAction,et=s.subMenuOpenDelay,rt=s.forceSubMenuRender,Te=s.subMenuCloseDelay,ft=s.builtinPlacements;ht.forEach(function(_t){return delete s[_t]}),delete s.onClick;var St=We?Object(N.a)(Object(N.a)({},Pa),ft):Object(N.a)(Object(N.a)({},ia),ft);delete s.direction;var pt=this.getBaseProps(),xt=p?null:this.getMotion(pt.mode,pt.visible);return r.createElement("li",Object(_.a)({},s,X,{className:A,role:"menuitem"}),r.createElement(Ja,{prefixCls:b,popupClassName:fe()("".concat(b,"-popup"),gt),getPopupContainer:dt,builtinPlacements:St,popupPlacement:Ze,popupVisible:p?!1:u,popupAlign:Ut,popup:p?null:$e,action:_e||p?[]:[Pe],mouseEnterDelay:et,mouseLeaveDelay:Te,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:rt,popupMotion:xt},Xe),p?$e:null)}}]),v}(r.Component);la.defaultProps={onMouseEnter:ie,onMouseLeave:ie,onTitleMouseEnter:ie,onTitleMouseLeave:ie,onTitleClick:ie,manualRef:ie,mode:"vertical",title:""};var Fn=Object(O.b)(function(o,f){var v=o.openKeys,l=o.activeKey,e=o.selectedKeys,a=f.eventKey,t=f.subMenuKey;return{isOpen:v.indexOf(a)>-1,active:l[t]===a,selectedKeys:e}})(la);Fn.isSubMenu=!0;var Bn=Fn,_a="menuitem-overflowed",Qa=.5,Aa=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){var l;return Object(U.a)(this,v),l=f.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=r.createRef(),l.getMenuItemNodes=function(){var e=l.props.prefixCls,a=l.childRef.current;return a?[].slice.call(a.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(e,a,t){var s=l.props,u=s.overflowedIndicator,b=s.level,p=s.mode,y=s.prefixCls,A=s.theme;if(b!==1||p!=="horizontal")return null;var X=l.props.children[0],V=X.props,se=V.children,we=V.title,Ye=V.style,We=Object(Oe.a)(V,["children","title","style"]),Qe=Object(N.a)({},Ye),Je="".concat(e,"-overflowed-indicator"),Xe="".concat(e,"-overflowed-indicator");a.length===0&&t!==!0?Qe=Object(N.a)(Object(N.a)({},Qe),{},{display:"none"}):t&&(Qe=Object(N.a)(Object(N.a)({},Qe),{},{visibility:"hidden",position:"absolute"}),Je="".concat(Je,"-placeholder"),Xe="".concat(Xe,"-placeholder"));var $e=A?"".concat(y,"-").concat(A):"",dt={};return ht.forEach(function(Ze){We[Ze]!==void 0&&(dt[Ze]=We[Ze])}),r.createElement(Bn,Object(_.a)({title:u,className:"".concat(y,"-overflowed-submenu"),popupClassName:$e},dt,{key:Je,eventKey:Xe,disabled:!1,style:Qe}),a)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var a=e.children;if(!a||a.length===0)return;var t=e.children[a.length-1];Ie(t,"display","inline-block");var s=l.getMenuItemNodes(),u=s.filter(function(b){return b.className.split(" ").indexOf(_a)>=0});u.forEach(function(b){Ie(b,"display","inline-block")}),l.menuItemSizes=s.map(function(b){return it(b,!0)}),u.forEach(function(b){Ie(b,"display","none")}),l.overflowedIndicatorWidth=it(e.children[e.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(b,p){return b+p},0),l.handleResize(),Ie(t,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var a=it(e);l.overflowedItems=[];var t=0,s;l.originalTotalWidth>a+Qa&&(s=-1,l.menuItemSizes.forEach(function(u){t+=u,t+l.overflowedIndicatorWidth<=a&&(s+=1)})),l.setState({lastVisibleIndex:s})},l}return Object(F.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Dt.default(function(t){t.forEach(function(){var s=e.cancelFrameId;cancelAnimationFrame(s),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var a=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(s,u,b){var p=u;if(a.props.mode==="horizontal"){var y=a.getOverflowedSubMenuItem(u.props.eventKey,[]);t!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(b>t&&(p=r.cloneElement(u,{style:{display:"none"},eventKey:"".concat(u.props.eventKey,"-hidden"),className:"".concat(_a)})),b===t+1&&(a.overflowedItems=e.slice(t+1).map(function(X){return r.cloneElement(X,{key:X.props.eventKey,mode:"vertical-left"})}),y=a.getOverflowedSubMenuItem(u.props.eventKey,a.overflowedItems)));var A=[].concat(Object(ye.a)(s),[y,p]);return b===e.length-1&&A.push(a.getOverflowedSubMenuItem(u.props.eventKey,[],!0)),A}return[].concat(Object(ye.a)(s),[p])},[])}},{key:"render",value:function(){var e=this.props,a=e.visible,t=e.prefixCls,s=e.overflowedIndicator,u=e.mode,b=e.level,p=e.tag,y=e.children,A=e.theme,X=Object(Oe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),V=p;return r.createElement(V,Object(_.a)({ref:this.childRef},X),this.renderChildren(y))}}]),v}(r.Component);Aa.defaultProps={tag:"div",className:""};var ua=Aa;function Zn(o){return o.length?o.every(function(f){return!!f.props.disabled}):!0}function Pn(o,f,v){var l=o.getState();o.setState({activeKey:Object(N.a)(Object(N.a)({},l.activeKey),{},Object(S.a)({},f,v))})}function Tn(o){return o.eventKey||"0-menu-"}function qn(o,f){var v=f,l=o.children,e=o.eventKey;if(v){var a;if(Ve(l,function(t,s){t&&t.props&&!t.props.disabled&&v===Ue(t,e,s)&&(a=!0)}),a)return v}return v=null,o.defaultActiveFirst&&Ve(l,function(t,s){!v&&t&&!t.props.disabled&&(v=Ue(t,e,s))}),v}function wa(o){if(!o)return;var f=this.instanceArray.indexOf(o);f!==-1?this.instanceArray[f]=o:this.instanceArray.push(o)}var La=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(l){var e;return Object(U.a)(this,v),e=f.call(this,l),e.onKeyDown=function(a,t){var s=a.keyCode,u;if(e.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(u=p.onKeyDown(a))}),u)return 1;var b=null;return(s===C.a.UP||s===C.a.DOWN)&&(b=e.step(s===C.a.UP?-1:1)),b?(a.preventDefault(),Pn(e.props.store,Tn(e.props),b.props.eventKey),typeof t=="function"&&t(b),1):void 0},e.onItemHover=function(a){var t=a.key,s=a.hover;Pn(e.props.store,Tn(e.props),s?t:null)},e.onDeselect=function(a){e.props.onDeselect(a)},e.onSelect=function(a){e.props.onSelect(a)},e.onClick=function(a){e.props.onClick(a)},e.onOpenChange=function(a){e.props.onOpenChange(a)},e.onDestroy=function(a){e.props.onDestroy(a)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(a){var t=e.getFlatInstanceArray(),s=e.props.store.getState().activeKey[Tn(e.props)],u=t.length;if(!u)return null;a<0&&(t=t.concat().reverse());var b=-1;if(t.every(function(X,V){return X&&X.props.eventKey===s?(b=V,!1):!0}),!e.props.defaultActiveFirst&&b!==-1&&Zn(t.slice(b,u-1)))return;var p=(b+1)%u,y=p;do{var A=t[y];if(!A||A.props.disabled)y=(y+1)%u;else return A}while(y!==p);return null},e.renderCommonMenuItem=function(a,t,s){var u=e.props.store.getState(),b=Object(h.a)(e),p=b.props,y=Ue(a,p.eventKey,t),A=a.props;if(!A||typeof a.type=="string")return a;var X=y===u.activeKey,V=Object(N.a)(Object(N.a)({mode:A.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:p.prefixCls,index:t,parentMenu:p.parentMenu,manualRef:A.disabled?void 0:Object(x.a)(a.ref,wa.bind(Object(h.a)(e))),eventKey:y,active:!A.disabled&&X,multiple:p.multiple,onClick:function(we){(A.onClick||ie)(we),e.onClick(we)},onItemHover:e.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:A.itemIcon||e.props.itemIcon,expandIcon:A.expandIcon||e.props.expandIcon},s),{},{direction:p.direction});return(p.mode==="inline"||ze())&&(V.triggerSubMenuAction="click"),r.cloneElement(a,Object(N.a)(Object(N.a)({},V),{},{key:y||t}))},e.renderMenuItem=function(a,t,s){if(!a)return null;var u=e.props.store.getState(),b={openKeys:u.openKeys,selectedKeys:u.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:s};return e.renderCommonMenuItem(a,t,b)},l.store.setState({activeKey:Object(N.a)(Object(N.a)({},l.store.getState().activeKey),{},Object(S.a)({},l.eventKey,qn(l,l.activeKey)))}),e.instanceArray=[],e}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!m()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var a=this.props,t="activeKey"in a?a.activeKey:a.store.getState().activeKey[Tn(a)],s=qn(a,t);if(s!==t)Pn(a.store,Tn(a),s);else if("activeKey"in e){var u=qn(e,e.activeKey);s!==u&&Pn(a.store,Tn(a),s)}}},{key:"render",value:function(){var e=this,a=Object(_.a)({},this.props);this.instanceArray=[];var t=fe()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),s={className:t,role:a.role||"menu"};a.id&&(s.id=a.id),a.focusable&&(s.tabIndex=0,s.onKeyDown=this.onKeyDown);var u=a.prefixCls,b=a.eventKey,p=a.visible,y=a.level,A=a.mode,X=a.overflowedIndicator,V=a.theme;return ht.forEach(function(se){return delete a[se]}),delete a.onClick,r.createElement(ua,Object(_.a)({},a,{prefixCls:u,mode:A,tag:"ul",level:y,theme:V,visible:p,overflowedIndicator:X},s),Object(le.a)(a.children).map(function(se,we){return e.renderMenuItem(se,we,b||"0-menu-")}))}}]),v}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ie};var Ua=Object(O.b)()(La),ea=Ua,_n=n("Kwbf");function ca(o,f,v){var l=o.prefixCls,e=o.motion,a=o.defaultMotions,t=a===void 0?{}:a,s=o.openAnimation,u=o.openTransitionName,b=f.switchingModeFromInline;if(e)return e;if(Object(P.a)(s)==="object"&&s)Object(_n.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof s=="string")return{motionName:"".concat(l,"-open-").concat(s)};if(u)return{motionName:u};var p=t[v];return p||(b?null:t.other)}var Ia=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(l){var e;Object(U.a)(this,v),e=f.call(this,l),e.onSelect=function(s){var u=Object(h.a)(e),b=u.props;if(b.selectable){var p=e.store.getState(),y=p.selectedKeys,A=s.key;b.multiple?y=y.concat([A]):y=[A],"selectedKeys"in b||e.store.setState({selectedKeys:y}),b.onSelect(Object(N.a)(Object(N.a)({},s),{},{selectedKeys:y}))}},e.onClick=function(s){var u=e.getRealMenuMode(),b=Object(h.a)(e),p=b.store,y=b.props.onOpenChange;u!=="inline"&&!("openKeys"in e.props)&&(p.setState({openKeys:[]}),y([])),e.props.onClick(s)},e.onKeyDown=function(s,u){e.innerMenu.getWrappedInstance().onKeyDown(s,u)},e.onOpenChange=function(s){var u=Object(h.a)(e),b=u.props,p=e.store.getState().openKeys.concat(),y=!1,A=function(V){var se=!1;if(V.open)se=p.indexOf(V.key)===-1,se&&p.push(V.key);else{var we=p.indexOf(V.key);se=we!==-1,se&&p.splice(we,1)}y=y||se};Array.isArray(s)?s.forEach(A):A(s),y&&("openKeys"in e.props||e.store.setState({openKeys:p}),b.onOpenChange(p))},e.onDeselect=function(s){var u=Object(h.a)(e),b=u.props;if(b.selectable){var p=e.store.getState().selectedKeys.concat(),y=s.key,A=p.indexOf(y);A!==-1&&p.splice(A,1),"selectedKeys"in b||e.store.setState({selectedKeys:p}),b.onDeselect(Object(N.a)(Object(N.a)({},s),{},{selectedKeys:p}))}},e.onMouseEnter=function(s){e.restoreModeVerticalFromInline();var u=e.props.onMouseEnter;u&&u(s)},e.onTransitionEnd=function(s){var u=s.propertyName==="width"&&s.target===s.currentTarget,b=s.target.className,p=Object.prototype.toString.call(b)==="[object SVGAnimatedString]"?b.animVal:b,y=s.propertyName==="font-size"&&p.indexOf("anticon")>=0;(u||y)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(s){e.innerMenu=s},e.isRootMenu=!0;var a=l.defaultSelectedKeys,t=l.defaultOpenKeys;return"selectedKeys"in l&&(a=l.selectedKeys||[]),"openKeys"in l&&(t=l.openKeys||[]),e.store=Object(O.c)({selectedKeys:a,openKeys:t,activeKey:{"0-menu-":qn(l,l.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:e.store},e}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var a=this.props,t=a.siderCollapsed,s=a.inlineCollapsed,u=a.onOpenChange;(!e.inlineCollapsed&&s||!e.siderCollapsed&&t)&&u([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,a=this.store,t=this.prevOpenKeys,s=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");s?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,a=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return a&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,a=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:a}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(N.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(N.a)(Object(N.a)({},e),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,a)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(O.a,{store:this.store},r.createElement(ea,Object(_.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var t=a.prevProps,s=a.store,u=s.getState(),b={},p={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in e?b.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=u.openKeys,b.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(b.openKeys=a.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(b).length&&s.setState(b),p}}]),v}(r.Component);Ia.defaultProps={selectable:!0,onClick:ie,onSelect:ie,onOpenChange:ie,onDeselect:ie,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var ka=Ia,An=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){var l;return Object(U.a)(this,v),l=f.apply(this,arguments),l.onKeyDown=function(e){var a=e.keyCode;return a===C.a.ENTER?(l.onClick(e),!0):void 0},l.onMouseLeave=function(e){var a=l.props,t=a.eventKey,s=a.onItemHover,u=a.onMouseLeave;s({key:t,hover:!1}),u({key:t,domEvent:e})},l.onMouseEnter=function(e){var a=l.props,t=a.eventKey,s=a.onItemHover,u=a.onMouseEnter;s({key:t,hover:!0}),u({key:t,domEvent:e})},l.onClick=function(e){var a=l.props,t=a.eventKey,s=a.multiple,u=a.onClick,b=a.onSelect,p=a.onDeselect,y=a.isSelected,A={key:t,keyPath:[t],item:Object(h.a)(l),domEvent:e};u(A),s?y?p(A):b(A):y||b(A)},l.saveNode=function(e){l.node=e},l}return Object(F.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,a=Object(N.a)({},this.props),t=fe()(this.getPrefixCls(),a.className,(e={},Object(S.a)(e,this.getActiveClassName(),!a.disabled&&a.active),Object(S.a)(e,this.getSelectedClassName(),a.isSelected),Object(S.a)(e,this.getDisabledClassName(),a.disabled),e)),s=Object(N.a)(Object(N.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:t,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?s=Object(N.a)(Object(N.a)({},s),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(s.role="none");var u={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},b=Object(N.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?b.paddingRight=a.inlineIndent*a.level:b.paddingLeft=a.inlineIndent*a.level),ht.forEach(function(y){return delete a[y]}),delete a.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(_.a)({},Object(M.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),s,u,{style:b,ref:this.saveNode}),a.children,p)}}]),v}(r.Component);An.isMenuItem=!0,An.defaultProps={onSelect:ie,onMouseEnter:ie,onMouseLeave:ie,manualRef:ie};var da=Object(O.b)(function(o,f){var v=o.activeKey,l=o.selectedKeys,e=f.eventKey,a=f.subMenuKey;return{active:v[a]===e,isSelected:Array.isArray(l)?l.indexOf(e)!==-1:l===e}})(An),fa=da,pa=function(o){Object(d.a)(v,o);var f=Object(i.a)(v);function v(){var l;return Object(U.a)(this,v),l=f.apply(this,arguments),l.renderInnerMenuItem=function(e){var a=l.props,t=a.renderMenuItem,s=a.index;return t(e,s,l.props.subMenuKey)},l}return Object(F.a)(v,[{key:"render",value:function(){var e=Object(_.a)({},this.props),a=e.className,t=a===void 0?"":a,s=e.rootPrefixCls,u="".concat(s,"-item-group-title"),b="".concat(s,"-item-group-list"),p=e.title,y=e.children;return ht.forEach(function(A){return delete e[A]}),delete e.direction,r.createElement("li",Object(_.a)({},e,{onClick:function(X){return X.stopPropagation()},className:"".concat(t," ").concat(s,"-item-group")}),r.createElement("div",{className:u,title:typeof p=="string"?p:void 0},p),r.createElement("ul",{className:b},r.Children.map(y,this.renderInnerMenuItem)))}}]),v}(r.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(f){var v=f.className,l=f.rootPrefixCls,e=f.style;return r.createElement("li",{className:"".concat(v," ").concat(l,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=ka,ha=n("eDIo");function eo(o,f){var v=o.prefixCls,l=o.editable,e=o.locale,a=o.style;return!l||l.showAdd===!1?null:r.createElement("button",{ref:f,type:"button",className:"".concat(v,"-nav-add"),style:a,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(s){l.onEdit("add",{event:s})}},l.addIcon||"+")}var ta=r.forwardRef(eo);function to(o,f){var v=o.prefixCls,l=o.id,e=o.tabs,a=o.locale,t=o.mobile,s=o.moreIcon,u=s===void 0?"More":s,b=o.moreTransitionName,p=o.style,y=o.className,A=o.editable,X=o.tabBarGutter,V=o.rtl,se=o.onTabClick,we=Object(r.useState)(!1),Ye=Object(R.a)(we,2),We=Ye[0],Qe=Ye[1],Je=Object(r.useState)(null),Xe=Object(R.a)(Je,2),$e=Xe[0],dt=Xe[1],Ze="".concat(l,"-more-popup"),Ut="".concat(v,"-dropdown"),gt=$e!==null?"".concat(Ze,"-").concat($e):null,_e=a==null?void 0:a.dropdownAriaLabel,Pe=r.createElement(Ka,{onClick:function(xt){var _t=xt.key,$t=xt.domEvent;se(_t,$t),Qe(!1)},id:Ze,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[$e],"aria-label":_e!==void 0?_e:"expanded dropdown"},e.map(function(pt){return r.createElement(fa,{key:pt.key,id:"".concat(Ze,"-").concat(pt.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function et(pt){for(var xt=e.filter(function(ln){return!ln.disabled}),_t=xt.findIndex(function(ln){return ln.key===$e})||0,$t=xt.length,sn=0;sn<$t;sn+=1){_t=(_t+pt+$t)%$t;var Kt=xt[_t];if(!Kt.disabled){dt(Kt.key);return}}}function rt(pt){var xt=pt.which;if(!We){[C.a.DOWN,C.a.SPACE,C.a.ENTER].includes(xt)&&(Qe(!0),pt.preventDefault());return}switch(xt){case C.a.UP:et(-1),pt.preventDefault();break;case C.a.DOWN:et(1),pt.preventDefault();break;case C.a.ESC:Qe(!1);break;case C.a.SPACE:case C.a.ENTER:$e!==null&&se($e,pt);break}}Object(r.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[$e]),Object(r.useEffect)(function(){We||dt(null)},[We]);var Te=Object(S.a)({},V?"marginLeft":"marginRight",X);e.length||(Te.visibility="hidden",Te.order=1);var ft=fe()(Object(S.a)({},"".concat(Ut,"-rtl"),V)),St=t?null:r.createElement(ha.a,{prefixCls:Ut,overlay:Pe,trigger:["hover"],visible:We,transitionName:b,onVisibleChange:Qe,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},r.createElement("button",{type:"button",className:"".concat(v,"-nav-more"),style:Te,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ze,id:"".concat(l,"-more"),"aria-expanded":We,onKeyDown:rt},u));return r.createElement("div",{className:fe()("".concat(v,"-nav-operations"),y),style:p,ref:f},St,r.createElement(ta,{prefixCls:v,locale:a,editable:A}))}var no=r.forwardRef(to),va=Object(r.createContext)(null),lt=.1,ut=.01,Lt=20,qt=Math.pow(.995,Lt);function zn(){var o=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(o.substr(0,4)))}function Fa(o,f){var v=Object(r.useState)(),l=Object(R.a)(v,2),e=l[0],a=l[1],t=Object(r.useState)(0),s=Object(R.a)(t,2),u=s[0],b=s[1],p=Object(r.useState)(0),y=Object(R.a)(p,2),A=y[0],X=y[1],V=Object(r.useState)(),se=Object(R.a)(V,2),we=se[0],Ye=se[1],We=Object(r.useRef)();function Qe(_e){var Pe=_e.touches[0],et=Pe.screenX,rt=Pe.screenY;a({x:et,y:rt}),window.clearInterval(We.current)}function Je(_e){if(!e)return;_e.preventDefault();var Pe=_e.touches[0],et=Pe.screenX,rt=Pe.screenY;a({x:et,y:rt});var Te=et-e.x,ft=rt-e.y;f(Te,ft);var St=Date.now();b(St),X(St-u),Ye({x:Te,y:ft})}function Xe(){if(!e)return;if(a(null),Ye(null),we){var _e=we.x/A,Pe=we.y/A,et=Math.abs(_e),rt=Math.abs(Pe);if(Math.max(et,rt)ft?(rt=Pe,Ze.current="x"):(rt=et,Ze.current="y");var St=Date.now();St-$e.current>100&&(dt.current=!1),(f(-rt,-rt)||dt.current)&&(_e.preventDefault(),dt.current=!0),$e.current=St}var gt=Object(r.useRef)(null);gt.current={onTouchStart:Qe,onTouchMove:Je,onTouchEnd:Xe,onWheel:Ut},r.useEffect(function(){function _e(Te){gt.current.onTouchStart(Te)}function Pe(Te){gt.current.onTouchMove(Te)}function et(Te){gt.current.onTouchEnd(Te)}function rt(Te){gt.current.onWheel(Te)}return document.addEventListener("touchmove",Pe,{passive:!1}),document.addEventListener("touchend",et,{passive:!1}),o.current.addEventListener("touchstart",_e,{passive:!1}),o.current.addEventListener("wheel",rt),function(){document.removeEventListener("touchmove",Pe),document.removeEventListener("touchend",et)}},[])}function ba(){var o=Object(r.useRef)(new Map);function f(l){return o.current.has(l)||o.current.set(l,r.createRef()),o.current.get(l)}function v(l){o.current.delete(l)}return[f,v]}function Ba(o,f){var v=r.useRef(o),l=r.useState({}),e=Object(R.a)(l,2),a=e[1];function t(s){var u=typeof s=="function"?s(v.current):s;u!==v.current&&f(u,v.current),v.current=u,a({})}return[v.current,t]}var za=function(f){var v=f.position,l=f.prefixCls,e=f.extra;if(!e)return null;var a,t=e;return v==="right"&&(a=t.right||!t.left&&t||null),v==="left"&&(a=t.left||null),a?r.createElement("div",{className:"".concat(l,"-extra-content")},a):null};function Bo(o,f){var v,l=r.useContext(va),e=l.prefixCls,a=l.tabs,t=o.className,s=o.style,u=o.id,b=o.animated,p=o.activeKey,y=o.rtl,A=o.extra,X=o.editable,V=o.locale,se=o.tabPosition,we=o.tabBarGutter,Ye=o.children,We=o.onTabClick,Qe=o.onTabScroll,Je=Object(r.useRef)(),Xe=Object(r.useRef)(),$e=Object(r.useRef)(),dt=Object(r.useRef)(),Ze=ba(),Ut=Object(R.a)(Ze,2),gt=Ut[0],_e=Ut[1],Pe=se==="top"||se==="bottom",et=Ba(0,function(Et,tt){Pe&&Qe&&Qe({direction:Et>tt?"left":"right"})}),rt=Object(R.a)(et,2),Te=rt[0],ft=rt[1],St=Ba(0,function(Et,tt){!Pe&&Qe&&Qe({direction:Et>tt?"top":"bottom"})}),pt=Object(R.a)(St,2),xt=pt[0],_t=pt[1],$t=Object(r.useState)(0),sn=Object(R.a)($t,2),Kt=sn[0],ln=sn[1],xn=Object(r.useState)(0),dn=Object(R.a)(xn,2),fn=dn[0],zt=dn[1],tn=Object(r.useState)(0),Gt=Object(R.a)(tn,2),Ht=Gt[0],wn=Gt[1],Ln=Object(r.useState)(0),Wn=Object(R.a)(Ln,2),Tt=Wn[0],Rn=Wn[1],Vn=Object(r.useState)(null),Nt=Object(R.a)(Vn,2),bt=Nt[0],Yt=Nt[1],Xo=Object(r.useState)(null),bo=Object(R.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(R.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(R.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=T(new Map),yo=Object(R.a)(er,2),tr=yo[0],nr=yo[1],Wa=Y(a,tr,Kt),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;Pe?y?(ga=0,Ea=Math.max(0,Kt-bt)):(ga=Math.min(0,bt-Kt),Ea=0):(ga=Math.min(0,na-fn),Ea=0);function ao(Et){return EtEa?[Ea,!1]:[Et,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),xo=Object(R.a)(ar,2),oo=xo[0],Mo=xo[1];function ro(){Mo(Date.now())}function io(){window.clearTimeout(Oo.current)}Fa(Je,function(Et,tt){var Xt=!1;function pn(Ca,Oa){Ca(function(xa){var Ma=ao(xa+Oa),aa=Object(R.a)(Ma,2),co=aa[0],fo=aa[1];return Xt=fo,co})}if(Pe){if(bt>=Kt)return Xt;pn(ft,Et)}else{if(na>=fn)return Xt;pn(_t,tt)}return io(),ro(),Xt}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){Mo(0)},100)),io},[oo]);function jo(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,tt=Wa.get(Et);if(!tt)return;if(Pe){var Xt=Te;y?tt.rightTe+bt&&(Xt=tt.right+tt.width-bt):tt.left<-Te?Xt=-tt.left:tt.left+tt.width>-Te+bt&&(Xt=-(tt.left+tt.width-bt)),_t(0),ft(ao(Xt)[0])}else{var pn=xt;tt.top<-xt?pn=-tt.top:tt.top+tt.height>-xt+na&&(pn=-(tt.top+tt.height-na)),ft(0),_t(ao(pn)[0])}}var or=be(Wa,{width:bt,height:na,left:Te,top:xt},{width:Ht,height:Tt},{width:Yo,height:Zo},Object(N.a)(Object(N.a)({},o),{},{tabs:a})),To=Object(R.a)(or,2),rr=To[0],ir=To[1],sr=a.map(function(Et){var tt=Et.key;return r.createElement(D,{id:u,prefixCls:e,key:tt,rtl:y,tab:Et,closable:Et.closable,editable:X,active:tt===p,tabPosition:se,tabBarGutter:we,renderWrapper:Ye,removeAriaLabel:V==null?void 0:V.removeAriaLabel,ref:gt(tt),onClick:function(pn){We(tt,pn)},onRemove:function(){_e(tt)},onFocus:function(){jo(tt),ro(),y||(Je.current.scrollLeft=0),Je.current.scrollTop=0}})}),so=Q(function(){var Et,tt,Xt,pn,Ca,Oa,xa,Ma,aa,co=((Et=Je.current)===null||Et===void 0?void 0:Et.offsetWidth)||0,fo=((tt=Je.current)===null||tt===void 0?void 0:tt.offsetHeight)||0,wo=((Xt=dt.current)===null||Xt===void 0?void 0:Xt.offsetWidth)||0,Lo=((pn=dt.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,pr=((Ca=$e.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=$e.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((xa=Xe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-wo,Io=(((Ma=Xe.current)===null||Ma===void 0?void 0:Ma.offsetHeight)||0)-Lo;ln(Uo),zt(Io);var ko=(aa=$e.current)===null||aa===void 0?void 0:aa.className.includes(Co);wn(Uo-(ko?0:pr)),Rn(Io-(ko?0:mr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Fo=hr.key,ja=gt(Fo).current;ja&&Ko.set(Fo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),Ro=[].concat(Object(ye.a)(lr),Object(ye.a)(ur)),cr=Object(r.useState)(),So=Object(R.a)(cr,2),dr=So[0],fr=So[1],Un=Wa.get(p),No=Object(r.useRef)();function Do(){Ee.a.cancel(No.current)}Object(r.useEffect)(function(){var Et={};return Un&&(Pe?(y?Et.right=Un.right:Et.left=Un.left,Et.width=Un.width):(Et.top=Un.top,Et.height=Un.height)),Do(),No.current=Ee()(function(){fr(Et)}),Do},[Un,Pe,y]),Object(r.useEffect)(function(){jo()},[p,Un,Wa,Pe]),Object(r.useEffect)(function(){so()},[y,we,p,a.map(function(Et){return Et.key}).join("_")]);var Po=!!Ro.length,ya="".concat(e,"-nav-wrap"),lo,uo,_o,Ao;return Pe?y?(uo=Te>0,lo=Te+bt50?kt.style.display="block":kt.style.display="none"}})),L.a.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:q,onOk:function(){var Ct=Object(w.a)(T.a.mark(function kt(){var Ot,mn,En,nn;return T.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(!(ot<1||ot>50)){Wt.next=4;break}return En=document.getElementById("model_error"),En.style.display="block",Wt.abrupt("return",Promise.reject());case 4:return vt.update({cancelButtonProps:{disabled:!0}}),Wt.next=7,$({type:"paperlibrary/sendToClass",payload:{course_id:He==null?void 0:He[0],id:(Ot=he.actionTabs)===null||Ot===void 0||((mn=Ot.params)===null||mn===void 0)?void 0:mn.id,num:ot}});case 7:nn=Wt.sent,vt.update({cancelButtonProps:{disabled:!1}}),nn&&nn.status===0&&(g.a.destroyAll(),g.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:L.a.createElement("div",{className:U.a.modalColumn},L.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20 mb10"},L.a.createElement("img",{style:{marginRight:5},src:be.a}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:q,onOk:function(){var un,yn,Qt=nn==null||((un=nn.first_category_url)===null||un===void 0||((yn=un.split("/"))===null||yn===void 0))?void 0:yn[2];Object(F.O)("/classrooms/".concat(Qt,"/exercise"))}}));case 10:case"end":return Wt.stop()}},kt)}));function Bt(){return Ct.apply(this,arguments)}return Bt}()});case 16:case"end":return ke.stop()}},je)}));return function(){return Me.apply(this,arguments)}}(),Re=function(){var Me=Object(w.a)(T.a.mark(function je(){return T.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return oe(!0),Ke.next=3,ae();case 3:case"end":return Ke.stop()}},je)}));return function(){return Me.apply(this,arguments)}}(),Ae=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return L.a.createElement("div",null,L.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,visible:he.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:W["paperlibrary/sendToClass"],width:600,onOk:ge,destroyOnClose:!0,onCancel:q},L.a.createElement("div",{className:U.a.wrap},L.a.createElement("div",{className:U.a.title},L.a.createElement("img",{src:Y.a}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377"),L.a.createElement("div",{className:"mb10"},L.a.createElement(J,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:B,onChange:function(je){de(je.target.value),je.target.value||ae(!0)},onSearch:function(je){de(je),ae(),ht([])}})),ie.length?L.a.createElement("div",{className:U.a.radioWrap},L.a.createElement(R.a,{rowClassName:U.a.row,bordered:!1,scroll:(ie==null?void 0:ie.length)<=7?{}:{y:350},loading:G,rowKey:"course_id",pagination:!1,dataSource:ie,columns:Ae,onRow:function(je){return{onClick:function(Ke){console.log([je==null?void 0:je.course_id]),ht([je==null?void 0:je.course_id])}}},rowSelection:{type:"radio",selectedRowKeys:He,onChange:function(je){ht(je),Dt(!1)}}})):!B&&!G&&L.a.createElement(E,{createState:yt,refreshLoading:me,onRefresh:Re,onCreate:function(){ct(!1),Object(F.O)("/classrooms/new")}}),ze&&L.a.createElement("div",{className:U.a.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"))))},k=ee.a=Object(D.a)(function(ue){var ce=ue.paperlibrary,he=ue.loading,Se=ue.globalSetting;return{paperlibrary:ce,globalSetting:Se,loading:he.effects}})(ne)},n6Qo:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return le});var S=n("q1tI"),R=n("biw7"),Oe=n("fyJ8");function N(w){var ye=w.className,re=w.index,Ee=w.children,xe=w.colSpan,Q=w.rowSpan,T=S.useContext(R.a),C=T.prefixCls,L=T.fixedInfoList,D=L[re];return S.createElement(Oe.a,Object.assign({className:ye,index:re,component:"td",prefixCls:C,record:null,dataIndex:null,render:function(){return{children:Ee,props:{colSpan:xe,rowSpan:Q}}}},D))}function r(w){return S.createElement("tr",Object.assign({},w))}function g(w){var ye=w.children,re=S.useContext(R.a),Ee=re.prefixCls;return S.createElement("tfoot",{className:"".concat(Ee,"-summary")},ye)}var fe=ee.b=g,le={Cell:N,Row:r}},"rd/4":function(Be,ee,n){Be.exports=n.p+"static/noData.dc777645.png"},sR1s:function(Be,ee,n){"use strict";n.d(ee,"b",function(){return N}),n.d(ee,"a",function(){return r}),n.d(ee,"c",function(){return g}),n.d(ee,"d",function(){return fe});var S=n("U8pU"),R="RC_TABLE_KEY";function Oe(le){return le==null?[]:Array.isArray(le)?le:[le]}function N(le,w){if(!w&&typeof w!="number")return le;for(var ye=Oe(w),re=le,Ee=0;Ee1)Object(ye.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Y.length===0)return Object(ye.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var z=Y[0];if(g.isValidElement(z)&&Object(re.c)(z)){var be=z.ref;Y[0]=g.cloneElement(z,{ref:Object(re.a)(be,this.setChildNode)})}return Y.length===1?Y[0]:Y.map(function(_,U){return!g.isValidElement(_)||"key"in _&&_.key!==null?_:g.cloneElement(_,{key:"".concat(xe,"-").concat(U)})})}}]),L}(g.Component);Q.displayName="ResizeObserver",ee.a=Q},wCXF:function(Be,ee,n){"use strict";n.d(ee,"a",function(){return Rt});var S=n("rePB"),R=n("VTBJ"),Oe=n("KQm4"),N=n("U8pU"),r=n("ODXe"),g=n("q1tI"),fe=n("TSYQ"),le=n.n(fe),w=n("Gytx"),ye=n.n(w),re=n("Kwbf"),Ee=n("t23M"),xe=n("qx4F"),Q=n("6eGT"),T=n("IBYe"),C=n("Ff2n"),L=n("c+Xe"),D=n("fyJ8"),H=n("biw7");function Y(j,G,Z,ve,Ce){var me=Z[j]||{},oe=Z[G]||{},q,ae;me.fixed==="left"?q=ve.left[j]:oe.fixed==="right"&&(ae=ve.right[G]);var Ne=!1,ge=!1,Re=!1,Ae=!1,Me=Z[G+1],je=Z[j-1];if(Ce==="rtl"){if(q!==void 0){var Ge=je&&je.fixed==="left";Ae=!Ge}else if(ae!==void 0){var Ke=Me&&Me.fixed==="right";Re=!Ke}}else if(q!==void 0){var nt=Me&&Me.fixed==="left";Ne=!nt}else if(ae!==void 0){var Le=je&&je.fixed==="right";ge=!Le}return{fixLeft:q,fixRight:ae,lastFixLeft:Ne,firstFixRight:ge,lastFixRight:Re,firstFixLeft:Ae,isSticky:ve.isSticky}}var z=n("sR1s");function be(j){var G=j.cells,Z=j.stickyOffsets,ve=j.flattenColumns,Ce=j.rowComponent,me=j.cellComponent,oe=j.onHeaderRow,q=j.index,ae=g.useContext(H.a),Ne=ae.prefixCls,ge=ae.direction,Re;oe&&(Re=oe(G.map(function(Me){return Me.column}),q));var Ae=Object(z.a)(G.map(function(Me){return Me.column}));return g.createElement(Ce,Object.assign({},Re),G.map(function(Me,je){var Ge=Me.column,Ke=Y(Me.colStart,Me.colEnd,ve,Z,ge),nt;return Ge&&Ge.onHeaderCell&&(nt=Me.column.onHeaderCell(Ge)),g.createElement(D.a,Object.assign({},Me,{ellipsis:Ge.ellipsis,align:Ge.align,component:me,prefixCls:Ne,key:Ae[je]},Ke,{additionalProps:nt,rowType:"header"}))}))}be.displayName="HeaderRow";var _=be;function U(j){var G=[];function Z(oe,q){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;G[ae]=G[ae]||[];var Ne=q,ge=oe.filter(Boolean).map(function(Re){var Ae={key:Re.key,className:Re.className||"",children:Re.title,column:Re,colStart:Ne},Me=1,je=Re.children;return je&&je.length>0&&(Me=Z(je,Ne,ae+1).reduce(function(Ge,Ke){return Ge+Ke},0),Ae.hasSubColumns=!0),"colSpan"in Re&&(Me=Re.colSpan),"rowSpan"in Re&&(Ae.rowSpan=Re.rowSpan),Ae.colSpan=Me,Ae.colEnd=Ae.colStart+Me-1,G[ae].push(Ae),Ne+=Me,Me});return ge}Z(j,0);for(var ve=G.length,Ce=function(q){G[q].forEach(function(ae){!("rowSpan"in ae)&&!ae.hasSubColumns&&(ae.rowSpan=ve-q)})},me=0;me=0;q-=1){var ae=G[q],Ne=Z&&Z[q],ge=Ne&&Ne[d.a];(ae||ge||oe)&&(Ce.unshift(g.createElement("col",Object.assign({key:q,style:{width:ae,minWidth:ae}},ge))),oe=!0)}return g.createElement("colgroup",null,Ce)}var O=i;function M(j,G){return Object(g.useMemo)(function(){for(var Z=[],ve=0;ve1?Zt-1:0),hn=1;hn=Re&&(Ot=Re-Ae),oe({scrollLeft:Ot/Re*(ge+2)}),Le.current.x=ke.pageX},ot=function(){var ke=Object(ht.b)(me.current).top,Ct=ke+me.current.offsetHeight,Bt=document.documentElement.scrollTop+window.innerHeight;Ct-Object(xe.a)()<=Bt||ke>=Bt-q?nt(function(kt){return Object(R.a)(Object(R.a)({},kt),{},{isHiddenScrollBar:!0})}):nt(function(kt){return Object(R.a)(Object(R.a)({},kt),{},{isHiddenScrollBar:!1})})},vt=function(ke){nt(function(Ct){return Object(R.a)(Object(R.a)({},Ct),{},{scrollLeft:ke/ge*Re||0})})};return g.useImperativeHandle(Z,function(){return{setScrollLeft:vt}}),g.useEffect(function(){var mt=Object(He.a)(document.body,"mouseup",It,!1),ke=Object(He.a)(document.body,"mousemove",At,!1);return ot(),function(){mt.remove(),ke.remove()}},[Ae,st]),g.useEffect(function(){var mt=Object(He.a)(window,"scroll",ot,!1),ke=Object(He.a)(window,"resize",ot,!1);return function(){mt.remove(),ke.remove()}},[]),g.useEffect(function(){Ke.isHiddenScrollBar||nt(function(mt){var ke,Ct;return Object(R.a)(Object(R.a)({},mt),{},{scrollLeft:me.current.scrollLeft/((ke=me.current)===null||ke===void 0?void 0:ke.scrollWidth)*((Ct=me.current)===null||Ct===void 0?void 0:Ct.clientWidth)})})},[Ke.isHiddenScrollBar]),ge<=Re||!Ae||Ke.isHiddenScrollBar?null:g.createElement("div",{style:{height:Object(xe.a)(),width:Re,bottom:q},className:"".concat(Ne,"-sticky-scroll")},g.createElement("div",{onMouseDown:at,ref:Me,className:le()("".concat(Ne,"-sticky-scroll-bar"),Object(S.a)({},"".concat(Ne,"-sticky-scroll-bar-active"),st)),style:{width:"".concat(Ae,"px"),transform:"translate3d(".concat(Ke.scrollLeft,"px, 0, 0)")}}))},Ie=g.forwardRef(it);function ze(j,G){return g.useMemo(function(){var Z=!!j;return{isSticky:Z,stickyClassName:Z?"".concat(G,"-sticky-header"):"",offsetHeader:Object(N.a)(j)==="object"&&j.offsetHeader||0,offsetScroll:Object(N.a)(j)==="object"&&j.offsetScroll||0}},[j,G])}var Dt=[],Pt={},Rt="rc-table-internal-hook",yt=g.memo(function(j){var G=j.children;return G},function(j,G){return ye()(j.props,G.props)?j.pingLeft!==G.pingLeft||j.pingRight!==G.pingRight:!1});function ct(j){var G,Z=j.prefixCls,ve=j.className,Ce=j.rowClassName,me=j.style,oe=j.data,q=j.rowKey,ae=j.scroll,Ne=j.tableLayout,ge=j.direction,Re=j.title,Ae=j.footer,Me=j.summary,je=j.id,Ge=j.showHeader,Ke=j.components,nt=j.emptyText,Le=j.onRow,Ft=j.onHeaderRow,Mt=j.internalHooks,st=j.transformColumns,jt=j.internalRefs,It=j.sticky,at=oe||Dt,At=!!at.length,ot=g.useState(0),vt=Object(r.a)(ot,2),mt=vt[0],ke=vt[1];g.useEffect(function(){ke(Object(xe.a)())});var Ct=g.useMemo(function(){return Object(z.c)(Ke,{})},[Ke]),Bt=g.useCallback(function(lt,ut){return Object(z.b)(Ct,lt)||ut},[Ct]),kt=g.useMemo(function(){return typeof q=="function"?q:function(lt){var ut=lt&<[q];return ut}},[q]),Ot=Object(d.c)(j),mn=Ot.expandIcon,En=Ot.expandedRowKeys,nn=Ot.defaultExpandedRowKeys,an=Ot.defaultExpandAllRows,Wt=Ot.expandedRowRender,Mn=Ot.onExpand,un=Ot.onExpandedRowsChange,yn=Ot.expandRowByClick,Qt=Ot.rowExpandable,In=Ot.expandIconColumnIndex,jn=Ot.expandedRowClassName,kn=Ot.childrenColumnName,Sn=Ot.indentSize,Cn=mn||qe,Nn=kn||"children",Hn=g.useMemo(function(){return Wt?"row":j.expandable&&Mt===Rt&&j.expandable.__PARENT_RENDER_ICON__||at.some(function(lt){return lt&&Object(N.a)(lt)==="object"&<[Nn]})?"nest":!1},[!!Wt,at]),Dn=g.useState(function(){return nn||(an?Ve(at,kt,Nn):[])}),Vt=Object(r.a)(Dn,2),en=Vt[0],cn=Vt[1],Zt=g.useMemo(function(){return new Set(En||en||[])},[En,en]),on=g.useCallback(function(lt){var ut=kt(lt,at.indexOf(lt)),Lt,qt=Zt.has(ut);qt?(Zt.delete(ut),Lt=Object(Oe.a)(Zt)):Lt=[].concat(Object(Oe.a)(Zt),[ut]),cn(Lt),Mn&&Mn(!qt,lt),un&&un(Lt)},[kt,Zt,at,Mn,un]),hn=g.useState(0),Xn=Object(r.a)(hn,2),Kn=Xn[0],$n=Xn[1],Ta=Object($.b)(Object(R.a)(Object(R.a)(Object(R.a)({},j),Ot),{},{expandable:!!Wt,expandedKeys:Zt,getRowKey:kt,onTriggerExpand:on,expandIcon:Cn,expandIconColumnIndex:In,direction:ge}),Mt===Rt?st:null),Ra=Object(r.a)(Ta,2),Gn=Ra[0],wt=Ra[1],Yn=g.useMemo(function(){return{columns:Gn,flattenColumns:wt}},[Gn,wt]),Jn=g.useRef(),Sa=g.useRef(),vn=g.useRef(),Va=g.useState(!1),Na=Object(r.a)(Va,2),oa=Na[0],Ha=Na[1],Xa=g.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=K(new Map),Da=Object(r.a)(Ga,2),Ya=Da[0],Ja=Da[1],On=Object(z.a)(wt),ia=On.map(function(lt){return Ya.get(lt)}),Pa=g.useMemo(function(){return ia},[ia.join("_")]),sa=De(Pa,wt.length,ge),rn=ae&&Object(z.d)(ae.y),bn=ae&&Object(z.d)(ae.x),gn=bn&&wt.some(function(lt){var ut=lt.fixed;return ut}),la=g.useRef(),Fn=ze(It,Z),Bn=Fn.isSticky,_a=Fn.offsetHeader,Qa=Fn.offsetScroll,Aa=Fn.stickyClassName,ua,Zn,Pn;rn&&(Zn={overflowY:"scroll",maxHeight:ae.y}),bn&&(ua={overflowX:"auto"},rn||(Zn={overflowY:"hidden"}),Pn={width:ae.x===!0?"auto":ae.x,minWidth:"100%"});var Tn=g.useCallback(function(lt,ut){Ja(function(Lt){var qt=new Map(Lt);return qt.set(lt,ut),qt})},[]),qn=B(null),wa=Object(r.a)(qn,2),La=wa[0],Ua=wa[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var _n=function(ut){var Lt=ut.currentTarget,qt=ut.scrollLeft,zn=typeof qt=="number"?qt:Lt.scrollLeft,Fa=Lt||Pt;if(!Ua()||Ua()===Fa){var ba;La(Fa),ea(zn,Sa.current),ea(zn,vn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Lt){var Ba=Lt.scrollWidth,za=Lt.clientWidth;Ha(zn>0),$a(zn0?[].concat(Object(R.a)(C),Object(R.a)(re(Y).map(function(z){return Object(Oe.a)({fixed:H},z)}))):[].concat(Object(R.a)(C),[Object(Oe.a)(Object(Oe.a)({},L),{},{fixed:H})])},[])}function Ee(T){for(var C=!0,L=0;L=0;Y-=1){var z=T[Y];if(H&&z.fixed!=="right")H=!1;else if(!H&&z.fixed==="right"){Object(fe.a)(!1,"Index ".concat(Y+1," of `columns` missing `fixed='right'` prop."));break}}}function xe(T){return T.map(function(C){var L=C.fixed,D=Object(N.a)(C,["fixed"]),H=L;return L==="left"?H="right":L==="right"&&(H="left"),Object(Oe.a)({fixed:H},D)})}function Q(T,C){var L=T.prefixCls,D=T.columns,H=T.children,Y=T.expandable,z=T.expandedKeys,be=T.getRowKey,_=T.onTriggerExpand,U=T.expandIcon,F=T.rowExpandable,h=T.expandIconColumnIndex,d=T.direction,i=T.expandRowByClick,O=r.useMemo(function(){return D||ye(H)},[D,H]),M=r.useMemo(function(){if(Y){var m,P=h||0,E=O[P],I=(m={},Object(S.a)(m,w.a,{className:"".concat(L,"-expand-icon-col")}),Object(S.a)(m,"title",""),Object(S.a)(m,"fixed",E?E.fixed:null),Object(S.a)(m,"className","".concat(L,"-row-expand-icon-cell")),Object(S.a)(m,"render",function(k,ue,ce){var he=be(ue,ce),Se=z.has(he),W=F?F(ue):!0,$=U({prefixCls:L,expanded:Se,expandable:W,record:ue,onExpand:_});return i?r.createElement("span",{onClick:function(te){return te.stopPropagation()}},$):$}),m),J=O.slice();return P>=0&&J.splice(P,0,I),J}return O},[Y,O,be,z,U,d]),x=r.useMemo(function(){var m=M;return C&&(m=C(m)),m.length||(m=[{render:function(){return null}}]),m},[C,M,d]),c=r.useMemo(function(){return d==="rtl"?xe(re(x)):re(x)},[x,d]);return[x,c]}ee.b=Q},"y0+3":function(Be,ee,n){"use strict";n.d(ee,"a",function(){return re}),n.d(ee,"b",function(){return xe});var S=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Oe={cssFloat:1,styleFloat:1,float:1};function N(Q){return Q.nodeType===1?Q.ownerDocument.defaultView.getComputedStyle(Q,null):{}}function r(Q,T,C){if(T=T.toLowerCase(),C==="auto"){if(T==="height")return Q.offsetHeight;if(T==="width")return Q.offsetWidth}return T in R||(R[T]=S.test(T)),R[T]?parseFloat(C)||0:C}function g(Q,T){var C=arguments.length,L=N(Q);return T=Oe[T]?"cssFloat"in Q.style?"cssFloat":"styleFloat":T,C===1?L:r(Q,T,L[T]||Q.style[T])}function fe(Q,T,C){var L=arguments.length;if(T=Oe[T]?"cssFloat"in Q.style?"cssFloat":"styleFloat":T,L===3)return typeof C=="number"&&S.test(T)&&(C="".concat(C,"px")),Q.style[T]=C,C;for(var D in T)T.hasOwnProperty(D)&&fe(Q,D,T[D]);return N(Q)}function le(Q){return Q===document.body?document.documentElement.clientWidth:Q.offsetWidth}function w(Q){return Q===document.body?window.innerHeight||document.documentElement.clientHeight:Q.offsetHeight}function ye(){var Q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Q,height:T}}function re(){var Q=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:Q,height:T}}function Ee(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function xe(Q){var T=Q.getBoundingClientRect(),C=document.documentElement;return{left:T.left+(window.pageXOffset||C.scrollLeft)-(C.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||C.scrollTop)-(C.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Paperlibrary__index.c884e5f3.async.js b/p__Paperlibrary__index.c884e5f3.async.js index 4e0370fcff..6ca673a0b3 100644 --- a/p__Paperlibrary__index.c884e5f3.async.js +++ b/p__Paperlibrary__index.c884e5f3.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[180,8,10],{"1XHU":function(Te,z,e){"use strict";var w=e("2qtc"),j=e("kLXV"),De=e("q1tI"),T=e.n(De),o=e("9kvl"),m=e("3wET"),D=e.n(m),ae=e("bUJZ"),h=e.n(ae),ce=e("Ct/S"),H=e.n(ce),de=function(Y){var _=Y.visible,y=Y.occupationValue,L=Y.onCancel,k=L===void 0?function(){}:L,V=function(){return T.a.createElement("div",{className:H.a.flexColumn},T.a.createElement("img",{className:H.a.img,src:h.a}),T.a.createElement("span",{className:H.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},Z=function(){return T.a.createElement("div",{className:H.a.flexColumn},T.a.createElement("img",{className:H.a.img,src:D.a}),T.a.createElement("span",{className:H.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},K=function(){return y===3?T.a.createElement(T.a.Fragment,null,Z(),V()):y===2?V():Z()};return T.a.createElement(j.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:_,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){k(),o.d.push("/account/certification")},onCancel:function(){k()}},T.a.createElement("div",{className:H.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),T.a.createElement("div",{className:H.a.flexRow},K()))};z.a=Object(o.a)(function(be){var Y=be.paperlibrary,_=be.loading,y=be.globalSetting;return{paperlibrary:Y,globalSetting:y,loading:_.effects}})(de)},"1ZF9":function(Te,z,e){Te.exports=e.p+"static/Authorize.cc9c212f.png"},"1vQj":function(Te,z,e){Te.exports=e.p+"static/a.98f6296d.svg"},"3pxb":function(Te,z,e){Te.exports=e.p+"static/refresh.c0b88523.png"},"3wET":function(Te,z){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"4IkL":function(Te,z,e){Te.exports=e.p+"static/b.786f6600.svg"},"5Hdu":function(Te,z,e){Te.exports={itemWrap:"itemWrap___3lG_d",listWrap:"listWrap___6_KEa",list:"list___32V3K",flexCenter:"flexCenter___3Ec8L",flexRow:"flexRow___2pI0p",imgWrap:"imgWrap___Tu7QA",img:"img___15DQN",contentWrap:"contentWrap___3n4mM",titleWrap:"titleWrap___322dN",title:"title___1roC-",content:"content___1kicS",bottomWrap:"bottomWrap___2cg64",updateTime:"updateTime___1ja4c",useCount:"useCount___3A5XZ",actionLink:"actionLink___3QxIj",actionIcon:"actionIcon___1cCk5",actionButton:"actionButton___13Glg",actionBar:"actionBar___1iGk9",typeIcon:"typeIcon___397Bo",private:"private___2hU03",public:"public___3eAcJ",random:"random___2-Fnl",line:"line___1cP3Z",actionLeftItem:"actionLeftItem___23qvP"}},"5jaM":function(Te,z,e){Te.exports=e.p+"static/dui.b74348bd.svg"},"6+eU":function(Te,z,e){"use strict";e.d(z,"a",function(){return A});var w=e("wx14"),j=e("rePB"),De=e("VTBJ"),T=e("1OyB"),o=e("vuIU"),m=e("Ji7U"),D=e("LK+K"),ae=e("q1tI"),h=e.n(ae),ce=e("TSYQ"),H=e.n(ce),de=function(F){var v,C="".concat(F.rootPrefixCls,"-item"),u=H()(C,"".concat(C,"-").concat(F.page),(v={},Object(j.a)(v,"".concat(C,"-active"),F.active),Object(j.a)(v,F.className,!!F.className),Object(j.a)(v,"".concat(C,"-disabled"),!F.page),v)),M=function(){F.onClick(F.page)},P=function(i){F.onKeyPress(i,F.onClick,F.page)};return h.a.createElement("li",{title:F.showTitle?F.page:null,className:u,onClick:M,onKeyPress:P,tabIndex:"0"},F.itemRender(F.page,"page",h.a.createElement("a",{rel:"nofollow"},F.page)))},be=de,Y={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},_=function(U){Object(m.a)(v,U);var F=Object(D.a)(v);function v(){var C;Object(T.a)(this,v);for(var u=arguments.length,M=new Array(u),P=0;P=0||S.relatedTarget.className.indexOf("".concat(x,"-next"))>=0))return;C.setState({goInputText:""}),s(C.getValidValue())},C.go=function(S){var i=C.state.goInputText;if(i==="")return;(S.keyCode===Y.ENTER||S.type==="click")&&(C.setState({goInputText:""}),C.props.quickGo(C.getValidValue()))},C}return Object(o.a)(v,[{key:"getValidValue",value:function(){var u=this.state,M=u.goInputText,P=u.current;return!M||isNaN(M)?P:Number(M)}},{key:"getPageSizeOptions",value:function(){var u=this.props,M=u.pageSize,P=u.pageSizeOptions;return P.some(function(S){return S.toString()===M.toString()})?P:P.concat([M.toString()]).sort(function(S,i){var b=isNaN(Number(S))?0:Number(S),s=isNaN(Number(i))?0:Number(i);return b-s})}},{key:"render",value:function(){var u=this,M=this.props,P=M.pageSize,S=M.locale,i=M.rootPrefixCls,b=M.changeSize,s=M.quickGo,x=M.goButton,X=M.selectComponentClass,ue=M.buildOptionText,he=M.selectPrefixCls,N=M.disabled,_e=this.state.goInputText,ve="".concat(i,"-options"),Ne=X,Ie=null,fe=null,le=null;if(!b&&!s)return null;var Me=this.getPageSizeOptions();if(b&&Ne){var ge=Me.map(function(B,G){return h.a.createElement(Ne.Option,{key:G,value:B.toString()},(ue||u.buildOptionText)(B))});Ie=h.a.createElement(Ne,{disabled:N,prefixCls:he,showSearch:!1,className:"".concat(ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(P||Me[0]).toString(),onChange:this.changeSize,getPopupContainer:function(G){return G.parentNode}},ge)}return s&&(x&&(le=typeof x=="boolean"?h.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:N,className:"".concat(ve,"-quick-jumper-button")},S.jump_to_confirm):h.a.createElement("span",{onClick:this.go,onKeyUp:this.go},x)),fe=h.a.createElement("div",{className:"".concat(ve,"-quick-jumper")},S.jump_to,h.a.createElement("input",{disabled:N,type:"text",value:_e,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),S.page,le)),h.a.createElement("li",{className:"".concat(ve)},Ie,fe)}}]),v}(h.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=_,L=e("N2Kk");function k(){}function V(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function Z(U,F,v){return v}function K(U,F,v){var C=typeof U=="undefined"?F.pageSize:U;return Math.floor((v.total-1)/C)+1}var Ee=function(U){Object(m.a)(v,U);var F=Object(D.a)(v);function v(C){var u;Object(T.a)(this,v),u=F.call(this,C),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(K(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(b,s){var x=u.props.prefixCls,X=b||h.a.createElement("button",{type:"button","aria-label":s,className:"".concat(x,"-item-link")});return typeof b=="function"&&(X=h.a.createElement(b,Object(De.a)({},u.props))),X},u.savePaginationNode=function(b){u.paginationNode=b},u.isValid=function(b){return V(b)&&b!==u.state.current},u.shouldDisplayQuickJumper=function(){var b=u.props,s=b.showQuickJumper,x=b.pageSize,X=b.total;return X<=x?!1:s},u.handleKeyDown=function(b){(b.keyCode===Y.ARROW_UP||b.keyCode===Y.ARROW_DOWN)&&b.preventDefault()},u.handleKeyUp=function(b){var s=u.getValidValue(b),x=u.state.currentInputValue;s!==x&&u.setState({currentInputValue:s}),b.keyCode===Y.ENTER?u.handleChange(s):b.keyCode===Y.ARROW_UP?u.handleChange(s-1):b.keyCode===Y.ARROW_DOWN&&u.handleChange(s+1)},u.changePageSize=function(b){var s=u.state.current,x=K(b,u.state,u.props);s=s>x?x:s,x===0&&(s=u.state.current),typeof b=="number"&&("pageSize"in u.props||u.setState({pageSize:b}),"current"in u.props||u.setState({current:s,currentInputValue:s})),u.props.onShowSizeChange(s,b),"onChange"in u.props&&u.props.onChange&&u.props.onChange(s,b)},u.handleChange=function(b){var s=u.props.disabled,x=b;if(u.isValid(x)&&!s){var X=K(void 0,u.state,u.props);x>X?x=X:x<1&&(x=1),"current"in u.props||u.setState({current:x,currentInputValue:x});var ue=u.state.pageSize;return u.props.onChange(x,ue),x}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?x-2:0),ue=2;ue=P?i=P:i=Number(M),i}},{key:"getShowSizeChanger",value:function(){var u=this.props,M=u.showSizeChanger,P=u.total,S=u.totalBoundaryShowSizeChanger;return typeof M!="undefined"?M:P>S}},{key:"renderPrev",value:function(u){var M=this.props,P=M.prevIcon,S=M.itemRender,i=S(u,"prev",this.getItemIcon(P,"prev page")),b=!this.hasPrev();return Object(ae.isValidElement)(i)?Object(ae.cloneElement)(i,{disabled:b}):i}},{key:"renderNext",value:function(u){var M=this.props,P=M.nextIcon,S=M.itemRender,i=S(u,"next",this.getItemIcon(P,"next page")),b=!this.hasNext();return Object(ae.isValidElement)(i)?Object(ae.cloneElement)(i,{disabled:b}):i}},{key:"render",value:function(){var u=this,M=this.props,P=M.prefixCls,S=M.className,i=M.style,b=M.disabled,s=M.hideOnSinglePage,x=M.total,X=M.locale,ue=M.showQuickJumper,he=M.showLessItems,N=M.showTitle,_e=M.showTotal,ve=M.simple,Ne=M.itemRender,Ie=M.showPrevNextJumpers,fe=M.jumpPrevIcon,le=M.jumpNextIcon,Me=M.selectComponentClass,ge=M.selectPrefixCls,B=M.pageSizeOptions,G=this.state,je=G.current,Ke=G.pageSize,re=G.currentInputValue;if(s===!0&&x<=Ke)return null;var pe=K(void 0,this.state,this.props),Fe=[],st=null,Je=null,$e=null,ct=null,Qe=null,ze=ue&&ue.goButton,$=he?1:2,Ze=je-1>0?je-1:0,yt=je+1=$*2&&je!==1+2&&(Fe[0]=Object(ae.cloneElement)(Fe[0],{className:"".concat(P,"-item-after-jump-prev")}),Fe.unshift(st)),pe-je>=$*2&&je!==pe-2&&(Fe[Fe.length-1]=Object(ae.cloneElement)(Fe[Fe.length-1],{className:"".concat(P,"-item-before-jump-next")}),Fe.push(Je)),oe!==1&&Fe.unshift($e),Pe!==pe&&Fe.push(ct)}var me=null;_e&&(me=h.a.createElement("li",{className:"".concat(P,"-total-text")},_e(x,[x===0?0:(je-1)*Ke+1,je*Ke>x?x:je*Ke])));var ie=!this.hasPrev()||!pe,J=!this.hasNext()||!pe;return h.a.createElement("ul",Object(w.a)({className:H()(P,S,Object(j.a)({},"".concat(P,"-disabled"),b)),style:i,unselectable:"unselectable",ref:this.savePaginationNode},_t),me,h.a.createElement("li",{title:N?X.prev_page:null,onClick:this.prev,tabIndex:ie?null:0,onKeyPress:this.runIfEnterPrev,className:H()("".concat(P,"-prev"),Object(j.a)({},"".concat(P,"-disabled"),ie)),"aria-disabled":ie},this.renderPrev(Ze)),Fe,h.a.createElement("li",{title:N?X.next_page:null,onClick:this.next,tabIndex:J?null:0,onKeyPress:this.runIfEnterNext,className:H()("".concat(P,"-next"),Object(j.a)({},"".concat(P,"-disabled"),J)),"aria-disabled":J},this.renderNext(yt)),h.a.createElement(y,{disabled:b,locale:X,rootPrefixCls:P,selectComponentClass:Me,selectPrefixCls:ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:je,pageSize:Ke,pageSizeOptions:B,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ze}))}}],[{key:"getDerivedStateFromProps",value:function(u,M){var P={};if("current"in u&&(P.current=u.current,u.current!==M.current&&(P.currentInputValue=P.current)),"pageSize"in u&&u.pageSize!==M.pageSize){var S=M.current,i=K(u.pageSize,M,u);S=S>i?i:S,"current"in u||(P.current=S,P.currentInputValue=S),P.pageSize=u.pageSize}return P}}]),v}(h.a.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:L.a,style:{},itemRender:Z,totalBoundaryShowSizeChanger:50};var A=Ee},"6K3P":function(Te,z,e){Te.exports=e.p+"static/jinshi.9b74f304.svg"},"6RRn":function(Te,z,e){"use strict";var w=e("wCXF"),j=e("n6Qo");e.d(z,"b",function(){return j.a});var De=e("IBYe"),T=e("6eGT"),o=e("hW8S");e.d(z,"a",function(){return o.a}),z.c=w.b},"6eGT":function(Te,z,e){"use strict";function w(j){return null}z.a=w},"815F":function(Te,z,e){"use strict";e.d(z,"e",function(){return D}),e.d(z,"c",function(){return h}),e.d(z,"d",function(){return ce}),e.d(z,"a",function(){return de}),e.d(z,"f",function(){return be}),e.d(z,"b",function(){return Y});var w=e("KQm4"),j=e("VTBJ"),De=e("Ff2n"),T=e("Zm9Q"),o=e("Kwbf"),m=e("OZM5");function D(_,y){return _!=null?_:y}function ae(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=new Map;function L(k){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(k||[]).forEach(function(Z){var K=Z.key,Ee=Z.children;Object(o.a)(K!=null,"Tree node must have a certain key: [".concat(V).concat(K,"]"));var A=String(K);Object(o.a)(!y.has(A)||K===null||K===void 0,"Same 'key' exist in the Tree: ".concat(A)),y.set(A,!0),L(Ee,"".concat(V).concat(A," > "))})}L(_)}function h(_){function y(L){var k=Object(T.a)(L);return k.map(function(V){if(!Object(m.i)(V))return Object(o.a)(!V,"Tree/TreeNode can only accept TreeNode as children."),null;var Z=V.key,K=V.props,Ee=K.children,A=Object(De.a)(K,["children"]),U=Object(j.a)({key:Z},A),F=y(Ee);return F.length&&(U.children=F),U}).filter(function(V){return V})}return y(_)}function ce(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=new Set(y===!0?[]:y),k=[];function V(Z){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Z.map(function(Ee,A){var U=Object(m.h)(K?K.pos:"0",A),F=D(Ee.key,U),v=Object(j.a)(Object(j.a)({},Ee),{},{parent:K,pos:U,children:null,data:Ee,isStart:[].concat(Object(w.a)(K?K.isStart:[]),[A===0]),isEnd:[].concat(Object(w.a)(K?K.isEnd:[]),[A===Z.length-1])});return k.push(v),y===!0||L.has(F)?v.children=V(Ee.children||[],v):v.children=[],v})}return V(_),k}function H(_,y,L){var k;L?typeof L=="string"?k=function(K){return K[L]}:typeof L=="function"&&(k=function(K){return L(K)}):k=function(K,Ee){return D(K.key,Ee)};function V(Z,K,Ee){var A=Z?Z.children:_,U=Z?Object(m.h)(Ee.pos,K):"0";if(Z){var F=k(Z,U),v={node:Z,index:K,pos:U,key:F,parentPos:Ee.node?Ee.pos:null,level:Ee.level+1};y(v)}A&&A.forEach(function(C,u){V(C,u,{node:Z,pos:U,level:Ee?Ee.level+1:-1})})}V(null)}function de(_){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=y.initWrapper,k=y.processEntity,V=y.onProcessFinished,Z=arguments.length>2?arguments[2]:void 0,K={},Ee={},A={posEntities:K,keyEntities:Ee};return L&&(A=L(A)||A),H(_,function(U){var F=U.node,v=U.index,C=U.pos,u=U.key,M=U.parentPos,P=U.level,S={node:F,index:v,key:u,pos:C,level:P},i=D(u,C);K[C]=S,Ee[i]=S,S.parent=K[M],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),k&&k(S,A)},Z),V&&V(A),A}function be(_,y){var L=y.expandedKeys,k=y.selectedKeys,V=y.loadedKeys,Z=y.loadingKeys,K=y.checkedKeys,Ee=y.halfCheckedKeys,A=y.dragOverNodeKey,U=y.dropPosition,F=y.keyEntities,v=F[_],C={eventKey:_,expanded:L.indexOf(_)!==-1,selected:k.indexOf(_)!==-1,loaded:V.indexOf(_)!==-1,loading:Z.indexOf(_)!==-1,checked:K.indexOf(_)!==-1,halfChecked:Ee.indexOf(_)!==-1,pos:String(v?v.pos:""),dragOver:A===_&&U===0,dragOverGapTop:A===_&&U===-1,dragOverGapBottom:A===_&&U===1};return C}function Y(_){var y=_.data,L=_.expanded,k=_.selected,V=_.checked,Z=_.loaded,K=_.loading,Ee=_.halfChecked,A=_.dragOver,U=_.dragOverGapTop,F=_.dragOverGapBottom,v=_.pos,C=_.active,u=Object(j.a)(Object(j.a)({},y),{},{expanded:L,selected:k,checked:V,loaded:Z,loading:K,halfChecked:Ee,dragOver:A,dragOverGapTop:U,dragOverGapBottom:F,pos:v,active:C});return"props"in u||Object.defineProperty(u,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),u}},BU3w:function(Te,z,e){"use strict";e.d(z,"a",function(){return m});var w=e("MNnm"),j="rc-util-key";function De(D){if(D.attachTo)return D.attachTo;var ae=document.querySelector("head");return ae||document.body}function T(D){var ae,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var ce=document.createElement("style");if((ae=h.csp)===null||ae===void 0?void 0:ae.nonce){var H;ce.nonce=(H=h.csp)===null||H===void 0?void 0:H.nonce}ce.innerHTML=D;var de=De(h),be=de.firstChild;return h.prepend&&de.prepend?de.prepend(ce):h.prepend&&be?de.insertBefore(ce,be):de.appendChild(ce),ce}var o=new Map;function m(D,ae){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ce=De(h);if(!o.has(ce)){var H=T("",h),de=H.parentNode;o.set(ce,de),de.removeChild(H)}var be=Array.from(o.get(ce).children).find(function(k){return k.tagName==="STYLE"&&k[j]===ae});if(be){var Y,_;if(((Y=h.csp)===null||Y===void 0?void 0:Y.nonce)&&be.nonce!==((_=h.csp)===null||_===void 0?void 0:_.nonce)){var y;be.nonce=(y=h.csp)===null||y===void 0?void 0:y.nonce}return be.innerHTML!==D&&(be.innerHTML=D),be}var L=T(D,h);return L[j]=ae,L}},BdwD:function(Te,z,e){"use strict";var w=e("+L6B"),j=e("2/Rp"),De=e("0Owb"),T=e("k1fw"),o=e("q1tI"),m=e.n(o),D=e("FOrL"),ae=e.n(D),h=function(H){var de=H.buttonProps,be=de===void 0?{}:de,Y=H.styles,_=Y===void 0?{}:Y,y=H.customText,L=H.ButtonText,k=H.ButtonClick,V=H.Buttonclass,Z=H.ButtonTwo;return m.a.createElement("section",{className:"tc animated fadeIn",style:Object(T.a)(Object(T.a)({},{color:"#999",margin:"200px auto"}),_)},m.a.createElement("img",{src:ae.a}),m.a.createElement("p",{className:"mt20 font14"},y||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),L&&m.a.createElement(j.a,Object(De.a)({className:V,onClick:k},be),L),Z&&Z)};z.a=h},"Ct/S":function(Te,z,e){Te.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},FOrL:function(Te,z,e){Te.exports=e.p+"static/nodata.a6b3f948.png"},IBYe:function(Te,z,e){"use strict";function w(j){return null}z.a=w},IoUt:function(Te,z,e){Te.exports={flex_box_center:"flex_box_center___3N1vU",flex_space_between:"flex_space_between___A7Vod",flex_box_vertical_center:"flex_box_vertical_center___34bDS",flex_box_center_end:"flex_box_center_end___3_uG-",flex_box_column:"flex_box_column___1D2by",page:"page___1lL-C",title:"title___2HhAX",wrap:"wrap___3HjzC",tabsWrap:"tabsWrap___4HtM9",filterWrap:"filterWrap___2s1M4",batchWrap:"batchWrap___qnSBI",contentWrap:"contentWrap___DSAvO",checkbox:"checkbox___dUmix",modal:"modal___1KOAK",list:"list___1YITo",btns:"btns___3v1OA",confirm:"confirm___1h0ho",cancel:"cancel___3MBsp",batch:"batch___16bAs",btn:"btn___2ON8h"}},LCv0:function(Te,z,e){Te.exports=e.p+"static/s.7c78bc98.svg"},LdHM:function(Te,z,e){"use strict";e.d(z,"b",function(){return Z}),e.d(z,"a",function(){return Ee});var w=e("1OyB"),j=e("vuIU"),De=e("Ji7U"),T=e("LK+K"),o=e("q1tI"),m=e("rePB"),D=e("Ff2n"),ae=e("ODXe"),h=e("4IlW"),ce=e("bX4T"),H=e("YrtM"),de=e("TSYQ"),be=e.n(de),Y=e("+nKL"),_=e("8OUc"),y=function(N,_e){var ve=N.prefixCls,Ne=N.id,Ie=N.flattenOptions,fe=N.childrenAsData,le=N.values,Me=N.searchValue,ge=N.multiple,B=N.defaultActiveFirstOption,G=N.height,je=N.itemHeight,Ke=N.notFoundContent,re=N.open,pe=N.menuItemSelectedIcon,Fe=N.virtual,st=N.onSelect,Je=N.onToggleOpen,$e=N.onActiveValue,ct=N.onScroll,Qe=N.onMouseEnter,ze="".concat(ve,"-item"),$=Object(H.a)(function(){return Ie},[re,Ie],function(Re,me){return me[0]&&Re[1]!==me[1]}),Ze=o.useRef(null),yt=function(me){me.preventDefault()},_t=function(me){Ze.current&&Ze.current.scrollTo({index:me})},Nt=function(me){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=$.length,Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(he).map(function(_e,ve){if(!o.isValidElement(_e)||!_e.type)return null;var Ne=_e.type.isSelectOptGroup,Ie=_e.key,fe=_e.props,le=fe.children,Me=Object(D.a)(fe,["children"]);return N||!Ne?F(_e):Object(A.a)(Object(A.a)({key:"__RC_SELECT_GRP__".concat(Ie===null?ve:Ie,"__"),label:Ie},Me),{},{options:v(le)})}).filter(function(_e){return _e})}var C=e("2Qr1"),u=e("qNPg"),M=e("U8pU"),P=e("Kwbf"),S=e("WKfj");function i(he){var N=he.mode,_e=he.options,ve=he.children,Ne=he.backfill,Ie=he.allowClear,fe=he.placeholder,le=he.getInputElement,Me=he.showSearch,ge=he.onSearch,B=he.defaultOpen,G=he.autoFocus,je=he.labelInValue,Ke=he.value,re=he.inputValue,pe=he.optionLabelProp,Fe=N==="multiple"||N==="tags",st=Me!==void 0?Me:Fe||N==="combobox",Je=_e||v(ve);if(Object(P.a)(N!=="tags"||Je.every(function(ze){return!ze.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),N==="tags"||N==="combobox"){var $e=Je.some(function(ze){return ze.options?ze.options.some(function($){return typeof("value"in $?$.value:$.key)=="number"}):typeof("value"in ze?ze.value:ze.key)=="number"});Object(P.a)(!$e,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(P.a)(N!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(P.a)(N==="combobox"||!Ne,"`backfill` only works with `combobox` mode."),Object(P.a)(N==="combobox"||!le,"`getInputElement` only work with `combobox` mode."),Object(P.b)(N!=="combobox"||!le||!Ie||!fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ge&&!st&&N!=="combobox"&&N!=="tags"&&Object(P.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(P.b)(!B||G,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ke!=null){var ct=Object(S.d)(Ke);Object(P.a)(!je||ct.every(function(ze){return Object(M.a)(ze)==="object"&&("key"in ze||"value"in ze)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(P.a)(!Fe||Array.isArray(Ke),"`value` should be array when `mode` is `multiple` or `tags`")}if(ve){var Qe=null;Object(U.a)(ve).some(function(ze){if(!o.isValidElement(ze)||!ze.type)return!1;var $=ze.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var Ze=Object(U.a)(ze.props.children).every(function(yt){return!o.isValidElement(yt)||!ze.type||yt.type.isSelectOption?!0:(Qe=yt.type,!1)});return!Ze}return Qe=$,!0}),Qe&&Object(P.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Qe.displayName||Qe.name||Qe,"`.")),Object(P.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=i,s=Object(u.a)({prefixCls:"rc-select",components:{optionList:k},convertChildrenToData:v,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:b,fillOptionsWithMissingValue:C.a}),x=function(he){Object(De.a)(_e,he);var N=Object(T.a)(_e);function _e(){var ve;return Object(w.a)(this,_e),ve=N.apply(this,arguments),ve.selectRef=o.createRef(),ve.focus=function(){ve.selectRef.current.focus()},ve.blur=function(){ve.selectRef.current.blur()},ve}return Object(j.a)(_e,[{key:"render",value:function(){return o.createElement(s,Object.assign({ref:this.selectRef},this.props))}}]),_e}(o.Component);x.Option=Z,x.OptGroup=Ee;var X=x,ue=z.c=X},NLgs:function(Te,z,e){"use strict";e.d(z,"e",function(){return K}),e.d(z,"f",function(){return Ee}),e.d(z,"d",function(){return U}),e.d(z,"c",function(){return F}),e.d(z,"a",function(){return v}),e.d(z,"b",function(){return C});var w=e("miYZ"),j=e("tsqr"),De=e("9og8"),T=e("2qtc"),o=e("kLXV"),m=e("WmNS"),D=e.n(m),ae=e("q1tI"),h=e.n(ae),ce=e("9kvl"),H=e("xKgJ"),de=e("1vsH"),be=e("RCxd"),Y=e("mOS8"),_=e.n(Y),y=e("1ZF9"),L=e.n(y),k=e("WdTA"),V=e.n(k),Z=e("m3rI"),K=function(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(Ee(M)&&A(P))},Ee=function(M){return Object(H.p)()?!0:(M({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},A=function(){var M,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S=Object(ce.c)()._store.getState(),i=S.user;return(M=i.userInfo)!==null&&M!==void 0&&M.profile_completed?!0:(o.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:P?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){ce.d.push("/account/profile/edit")}}),!1)},U=function(){var M,P=Object(ce.c)()._store.getState(),S=P.user;return(M=S.userInfo)!==null&&M!==void 0&&M.professional_certification?!0:(o.a.confirm({title:"\u63D0\u793A",centered:!0,content:h.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(de.O)("/account/certification")}}),!1)},F=function(){return Object(H.a)()?!0:(o.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:h.a.createElement("div",{className:"tc",style:{marginLeft:-38}},h.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),h.a.createElement("img",{src:Object(H.t)()?V.a:"".concat(Z.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},v=function(M,P){return M?!0:(o.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:h.a.createElement("div",null,h.a.createElement("p",null,P||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),h.a.createElement("div",{style:{marginLeft:"110px"}},h.a.createElement("img",{src:L.a,width:200}),h.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(de.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},C=function(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",S=Object(ce.c)()._store.getState(),i=S.shixunsDetail.detail;return(i==null?void 0:i.public)===2||(i==null?void 0:i.public)===1||(i==null?void 0:i.shixun_status)===3?(o.a.info({centered:!0,icon:h.a.createElement(be.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:h.a.createElement("div",{className:"tc",style:{marginLeft:-38}},h.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},h.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(i==null?void 0:i.public)===2?"\u5DF2\u516C\u5F00":(i==null?void 0:i.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",P,"\u3002"),h.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),h.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:_.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(i==null?void 0:i.shixun_status)===2?(o.a.confirm({centered:!0,icon:h.a.createElement(be.a,null),title:"\u63D0\u793A",content:h.a.createElement("div",null,h.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",P,"\u3002"),h.a.createElement("br",null),h.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){o.a.confirm({width:440,centered:!0,icon:h.a.createElement(be.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var s=Object(De.a)(D.a.mark(function X(){var ue;return D.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,M({type:"shixunsDetail/cancelRelease",payload:{id:i==null?void 0:i.identifier}});case 2:ue=N.sent,ue.status!==401&&(j.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),M({type:"shixunsDetail/getShixunsDetail",payload:{id:i==null?void 0:i.identifier}}),M({type:"practiceSetting/getCommonData",payload:{id:i==null?void 0:i.identifier}}));case 4:case"end":return N.stop()}},X)}));function x(){return s.apply(this,arguments)}return x}()})}}),!0):!1}},NvD2:function(Te,z,e){"use strict";e.d(z,"a",function(){return m});var w=e("Kwbf");function j(D,ae){var h=new Set;return D.forEach(function(ce){ae.has(ce)||h.add(ce)}),h}function De(D){var ae=D||{},h=ae.disabled,ce=ae.disableCheckbox,H=ae.checkable;return!!(h||ce)||H===!1}function T(D,ae,h,ce){for(var H=new Set(D),de=new Set,be=0;be<=h;be+=1){var Y=ae.get(be)||new Set;Y.forEach(function(k){var V=k.key,Z=k.node,K=k.children,Ee=K===void 0?[]:K;H.has(V)&&!ce(Z)&&Ee.filter(function(A){return!ce(A.node)}).forEach(function(A){H.add(A.key)})})}for(var _=new Set,y=h;y>=0;y-=1){var L=ae.get(y)||new Set;L.forEach(function(k){var V=k.parent,Z=k.node;if(ce(Z)||!k.parent||_.has(k.parent.key))return;if(ce(k.parent.node)){_.add(V.key);return}var K=!0,Ee=!1;(V.children||[]).filter(function(A){return!ce(A.node)}).forEach(function(A){var U=A.key,F=H.has(U);K&&!F&&(K=!1),!Ee&&(F||de.has(U))&&(Ee=!0)}),K&&H.add(V.key),Ee&&de.add(V.key),_.add(V.key)})}return{checkedKeys:Array.from(H),halfCheckedKeys:Array.from(j(de,H))}}function o(D,ae,h,ce,H){for(var de=new Set(D),be=new Set(ae),Y=0;Y<=ce;Y+=1){var _=h.get(Y)||new Set;_.forEach(function(V){var Z=V.key,K=V.node,Ee=V.children,A=Ee===void 0?[]:Ee;!de.has(Z)&&!be.has(Z)&&!H(K)&&A.filter(function(U){return!H(U.node)}).forEach(function(U){de.delete(U.key)})})}be=new Set;for(var y=new Set,L=ce;L>=0;L-=1){var k=h.get(L)||new Set;k.forEach(function(V){var Z=V.parent,K=V.node;if(H(K)||!V.parent||y.has(V.parent.key))return;if(H(V.parent.node)){y.add(Z.key);return}var Ee=!0,A=!1;(Z.children||[]).filter(function(U){return!H(U.node)}).forEach(function(U){var F=U.key,v=de.has(F);Ee&&!v&&(Ee=!1),!A&&(v||be.has(F))&&(A=!0)}),Ee||de.delete(Z.key),A&&be.add(Z.key),y.add(Z.key)})}return{checkedKeys:Array.from(de),halfCheckedKeys:Array.from(j(be,de))}}function m(D,ae,h,ce){var H=[],de;ce?de=ce:de=De;var be=new Set(D.filter(function(L){var k=!!h[L];return k||H.push(L),k})),Y=new Map,_=0;Object.keys(h).forEach(function(L){var k=h[L],V=k.level,Z=Y.get(V);Z||(Z=new Set,Y.set(V,Z)),Z.add(k),_=Math.max(_,V)}),Object(w.a)(!H.length,"Tree missing follow keys: ".concat(H.slice(0,100).map(function(L){return"'".concat(L,"'")}).join(", ")));var y;return ae===!0?y=T(be,Y,_,de):y=o(be,ae.halfCheckedKeys,Y,_,de),y}},ORPY:function(Te,z,e){Te.exports={sendToClass:"sendToClass___2FQ8x"}},OZM5:function(Te,z,e){"use strict";e.d(z,"b",function(){return ce}),e.d(z,"a",function(){return H}),e.d(z,"k",function(){return de}),e.d(z,"h",function(){return be}),e.d(z,"i",function(){return Y}),e.d(z,"g",function(){return _}),e.d(z,"c",function(){return y}),e.d(z,"d",function(){return L}),e.d(z,"j",function(){return Z}),e.d(z,"e",function(){return K}),e.d(z,"f",function(){return Ee});var w=e("KQm4"),j=e("U8pU"),De=e("Ff2n"),T=e("q1tI"),o=e.n(T),m=e("Kwbf"),D=e("WaYH"),ae=.25,h=2;function ce(A,U){var F=A.slice(),v=F.indexOf(U);return v>=0&&F.splice(v,1),F}function H(A,U){var F=A.slice();return F.indexOf(U)===-1&&F.push(U),F}function de(A){return A.split("-")}function be(A,U){return"".concat(A,"-").concat(U)}function Y(A){return A&&A.type&&A.type.isTreeNode}function _(A,U){var F=[A],v=U[A];function C(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(M){var P=M.key,S=M.children;F.push(P),C(S)})}return C(v.children),F}function y(A,U){var F=A.clientY,v=U.selectHandle.getBoundingClientRect(),C=v.top,u=v.bottom,M=v.height,P=Math.max(M*ae,h);return F<=C+P?-1:F>=u-P?1:0}function L(A,U){if(!A)return;var F=U.multiple;return F?A.slice():A.length?[A[0]]:A}var k=function(U){return U};function V(A,U){if(!A)return[];var F=U||{},v=F.processProps,C=v===void 0?k:v,u=Array.isArray(A)?A:[A];return u.map(function(M){var P=M.children,S=Object(De.a)(M,["children"]),i=V(P,U);return o.a.createElement(D.a,Object.assign({},C(S)),i)})}function Z(A){if(!A)return null;var U;if(Array.isArray(A))U={checkedKeys:A,halfCheckedKeys:void 0};else if(Object(j.a)(A)==="object")U={checkedKeys:A.checked||void 0,halfCheckedKeys:A.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function K(A,U){var F=new Set;function v(C){if(F.has(C))return;var u=U[C];if(!u)return;F.add(C);var M=u.parent,P=u.node;if(P.disabled)return;M&&v(M.key)}return(A||[]).forEach(function(C){v(C)}),Object(w.a)(F)}function Ee(A){var U={};return Object.keys(A).forEach(function(F){(F.startsWith("data-")||F.startsWith("aria-"))&&(U[F]=A[F])}),U}},PEfE:function(Te,z,e){Te.exports={title:"title___316_5",radioWrap:"radioWrap___2b58p",row:"row___3Y_zu",radio:"radio___3wz7l",colorFF0000:"colorFF0000___3JfbP",pagination:"pagination___3UF9N",modalColumn:"modalColumn___2C76i",modalRow:"modalRow___3eIQ6",sup:"sup___1b5Qg"}},Q0Vu:function(Te,z,e){Te.exports={flex_box_center:"flex_box_center___3fHaw",flex_space_between:"flex_space_between___1tu3K",flex_box_vertical_center:"flex_box_vertical_center___3kmTT",flex_box_center_end:"flex_box_center_end___19OcD",flex_box_column:"flex_box_column___1aMoy",main:"main___JkLSb",wrap:"wrap___1k_Ib",content:"content___1by-P",name:"name___2mlTd",directionContentWrap:"directionContentWrap___3qsxQ",directionItem:"directionItem___2aAvu",active:"active___ACZqb",subActive:"subActive___2RkoB",subItem:"subItem___3tJgX",subMenu:"subMenu___Y_7S_",action:"action___xqgFs"}},"SA+Z":function(Te,z,e){var w=e("wTVA"),j=e("EbDI"),De=e("ZhPi"),T=e("wkBT");function o(m){return w(m)||j(m)||De(m)||T()}Te.exports=o,Te.exports.__esModule=!0,Te.exports.default=Te.exports},WaYH:function(Te,z,e){"use strict";var w=e("rePB"),j=e("Ff2n"),De=e("VTBJ"),T=e("1OyB"),o=e("vuIU"),m=e("JX7q"),D=e("Ji7U"),ae=e("LK+K"),h=e("q1tI"),ce=e("TSYQ"),H=e.n(ce),de=e("sboe"),be=e("OZM5"),Y=function(U){var F=U.prefixCls,v=U.level,C=U.isStart,u=U.isEnd;if(!v)return null;for(var M="".concat(F,"-indent-unit"),P=[],S=0;S=0||T.relatedTarget.className.indexOf("".concat(x,"-next"))>=0))return;C.setState({goInputText:""}),s(C.getValidValue())},C.go=function(T){var i=C.state.goInputText;if(i==="")return;(T.keyCode===Y.ENTER||T.type==="click")&&(C.setState({goInputText:""}),C.props.quickGo(C.getValidValue()))},C}return Object(o.a)(v,[{key:"getValidValue",value:function(){var u=this.state,M=u.goInputText,P=u.current;return!M||isNaN(M)?P:Number(M)}},{key:"getPageSizeOptions",value:function(){var u=this.props,M=u.pageSize,P=u.pageSizeOptions;return P.some(function(T){return T.toString()===M.toString()})?P:P.concat([M.toString()]).sort(function(T,i){var b=isNaN(Number(T))?0:Number(T),s=isNaN(Number(i))?0:Number(i);return b-s})}},{key:"render",value:function(){var u=this,M=this.props,P=M.pageSize,T=M.locale,i=M.rootPrefixCls,b=M.changeSize,s=M.quickGo,x=M.goButton,X=M.selectComponentClass,ue=M.buildOptionText,he=M.selectPrefixCls,N=M.disabled,_e=this.state.goInputText,ve="".concat(i,"-options"),Ne=X,Ie=null,fe=null,le=null;if(!b&&!s)return null;var Me=this.getPageSizeOptions();if(b&&Ne){var ge=Me.map(function(B,G){return h.a.createElement(Ne.Option,{key:G,value:B.toString()},(ue||u.buildOptionText)(B))});Ie=h.a.createElement(Ne,{disabled:N,prefixCls:he,showSearch:!1,className:"".concat(ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(P||Me[0]).toString(),onChange:this.changeSize,getPopupContainer:function(G){return G.parentNode}},ge)}return s&&(x&&(le=typeof x=="boolean"?h.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:N,className:"".concat(ve,"-quick-jumper-button")},T.jump_to_confirm):h.a.createElement("span",{onClick:this.go,onKeyUp:this.go},x)),fe=h.a.createElement("div",{className:"".concat(ve,"-quick-jumper")},T.jump_to,h.a.createElement("input",{disabled:N,type:"text",value:_e,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,le)),h.a.createElement("li",{className:"".concat(ve)},Ie,fe)}}]),v}(h.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=_,L=e("N2Kk");function k(){}function V(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function Z(U,F,v){return v}function K(U,F,v){var C=typeof U=="undefined"?F.pageSize:U;return Math.floor((v.total-1)/C)+1}var Ee=function(U){Object(m.a)(v,U);var F=Object(D.a)(v);function v(C){var u;Object(S.a)(this,v),u=F.call(this,C),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(K(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(b,s){var x=u.props.prefixCls,X=b||h.a.createElement("button",{type:"button","aria-label":s,className:"".concat(x,"-item-link")});return typeof b=="function"&&(X=h.a.createElement(b,Object(De.a)({},u.props))),X},u.savePaginationNode=function(b){u.paginationNode=b},u.isValid=function(b){return V(b)&&b!==u.state.current},u.shouldDisplayQuickJumper=function(){var b=u.props,s=b.showQuickJumper,x=b.pageSize,X=b.total;return X<=x?!1:s},u.handleKeyDown=function(b){(b.keyCode===Y.ARROW_UP||b.keyCode===Y.ARROW_DOWN)&&b.preventDefault()},u.handleKeyUp=function(b){var s=u.getValidValue(b),x=u.state.currentInputValue;s!==x&&u.setState({currentInputValue:s}),b.keyCode===Y.ENTER?u.handleChange(s):b.keyCode===Y.ARROW_UP?u.handleChange(s-1):b.keyCode===Y.ARROW_DOWN&&u.handleChange(s+1)},u.changePageSize=function(b){var s=u.state.current,x=K(b,u.state,u.props);s=s>x?x:s,x===0&&(s=u.state.current),typeof b=="number"&&("pageSize"in u.props||u.setState({pageSize:b}),"current"in u.props||u.setState({current:s,currentInputValue:s})),u.props.onShowSizeChange(s,b),"onChange"in u.props&&u.props.onChange&&u.props.onChange(s,b)},u.handleChange=function(b){var s=u.props.disabled,x=b;if(u.isValid(x)&&!s){var X=K(void 0,u.state,u.props);x>X?x=X:x<1&&(x=1),"current"in u.props||u.setState({current:x,currentInputValue:x});var ue=u.state.pageSize;return u.props.onChange(x,ue),x}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?x-2:0),ue=2;ue=P?i=P:i=Number(M),i}},{key:"getShowSizeChanger",value:function(){var u=this.props,M=u.showSizeChanger,P=u.total,T=u.totalBoundaryShowSizeChanger;return typeof M!="undefined"?M:P>T}},{key:"renderPrev",value:function(u){var M=this.props,P=M.prevIcon,T=M.itemRender,i=T(u,"prev",this.getItemIcon(P,"prev page")),b=!this.hasPrev();return Object(ae.isValidElement)(i)?Object(ae.cloneElement)(i,{disabled:b}):i}},{key:"renderNext",value:function(u){var M=this.props,P=M.nextIcon,T=M.itemRender,i=T(u,"next",this.getItemIcon(P,"next page")),b=!this.hasNext();return Object(ae.isValidElement)(i)?Object(ae.cloneElement)(i,{disabled:b}):i}},{key:"render",value:function(){var u=this,M=this.props,P=M.prefixCls,T=M.className,i=M.style,b=M.disabled,s=M.hideOnSinglePage,x=M.total,X=M.locale,ue=M.showQuickJumper,he=M.showLessItems,N=M.showTitle,_e=M.showTotal,ve=M.simple,Ne=M.itemRender,Ie=M.showPrevNextJumpers,fe=M.jumpPrevIcon,le=M.jumpNextIcon,Me=M.selectComponentClass,ge=M.selectPrefixCls,B=M.pageSizeOptions,G=this.state,je=G.current,Ke=G.pageSize,re=G.currentInputValue;if(s===!0&&x<=Ke)return null;var pe=K(void 0,this.state,this.props),Fe=[],st=null,Je=null,$e=null,ct=null,Qe=null,ze=ue&&ue.goButton,$=he?1:2,Ze=je-1>0?je-1:0,yt=je+1=$*2&&je!==1+2&&(Fe[0]=Object(ae.cloneElement)(Fe[0],{className:"".concat(P,"-item-after-jump-prev")}),Fe.unshift(st)),pe-je>=$*2&&je!==pe-2&&(Fe[Fe.length-1]=Object(ae.cloneElement)(Fe[Fe.length-1],{className:"".concat(P,"-item-before-jump-next")}),Fe.push(Je)),oe!==1&&Fe.unshift($e),Pe!==pe&&Fe.push(ct)}var me=null;_e&&(me=h.a.createElement("li",{className:"".concat(P,"-total-text")},_e(x,[x===0?0:(je-1)*Ke+1,je*Ke>x?x:je*Ke])));var ie=!this.hasPrev()||!pe,J=!this.hasNext()||!pe;return h.a.createElement("ul",Object(w.a)({className:H()(P,T,Object(j.a)({},"".concat(P,"-disabled"),b)),style:i,unselectable:"unselectable",ref:this.savePaginationNode},_t),me,h.a.createElement("li",{title:N?X.prev_page:null,onClick:this.prev,tabIndex:ie?null:0,onKeyPress:this.runIfEnterPrev,className:H()("".concat(P,"-prev"),Object(j.a)({},"".concat(P,"-disabled"),ie)),"aria-disabled":ie},this.renderPrev(Ze)),Fe,h.a.createElement("li",{title:N?X.next_page:null,onClick:this.next,tabIndex:J?null:0,onKeyPress:this.runIfEnterNext,className:H()("".concat(P,"-next"),Object(j.a)({},"".concat(P,"-disabled"),J)),"aria-disabled":J},this.renderNext(yt)),h.a.createElement(y,{disabled:b,locale:X,rootPrefixCls:P,selectComponentClass:Me,selectPrefixCls:ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:je,pageSize:Ke,pageSizeOptions:B,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ze}))}}],[{key:"getDerivedStateFromProps",value:function(u,M){var P={};if("current"in u&&(P.current=u.current,u.current!==M.current&&(P.currentInputValue=P.current)),"pageSize"in u&&u.pageSize!==M.pageSize){var T=M.current,i=K(u.pageSize,M,u);T=T>i?i:T,"current"in u||(P.current=T,P.currentInputValue=T),P.pageSize=u.pageSize}return P}}]),v}(h.a.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:L.a,style:{},itemRender:Z,totalBoundaryShowSizeChanger:50};var A=Ee},"6K3P":function(Se,z,e){Se.exports=e.p+"static/jinshi.9b74f304.svg"},"6RRn":function(Se,z,e){"use strict";var w=e("wCXF"),j=e("n6Qo");e.d(z,"b",function(){return j.a});var De=e("IBYe"),S=e("6eGT"),o=e("hW8S");e.d(z,"a",function(){return o.a}),z.c=w.b},"6eGT":function(Se,z,e){"use strict";function w(j){return null}z.a=w},"815F":function(Se,z,e){"use strict";e.d(z,"e",function(){return D}),e.d(z,"c",function(){return h}),e.d(z,"d",function(){return ce}),e.d(z,"a",function(){return de}),e.d(z,"f",function(){return be}),e.d(z,"b",function(){return Y});var w=e("KQm4"),j=e("VTBJ"),De=e("Ff2n"),S=e("Zm9Q"),o=e("Kwbf"),m=e("OZM5");function D(_,y){return _!=null?_:y}function ae(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=new Map;function L(k){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(k||[]).forEach(function(Z){var K=Z.key,Ee=Z.children;Object(o.a)(K!=null,"Tree node must have a certain key: [".concat(V).concat(K,"]"));var A=String(K);Object(o.a)(!y.has(A)||K===null||K===void 0,"Same 'key' exist in the Tree: ".concat(A)),y.set(A,!0),L(Ee,"".concat(V).concat(A," > "))})}L(_)}function h(_){function y(L){var k=Object(S.a)(L);return k.map(function(V){if(!Object(m.i)(V))return Object(o.a)(!V,"Tree/TreeNode can only accept TreeNode as children."),null;var Z=V.key,K=V.props,Ee=K.children,A=Object(De.a)(K,["children"]),U=Object(j.a)({key:Z},A),F=y(Ee);return F.length&&(U.children=F),U}).filter(function(V){return V})}return y(_)}function ce(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=new Set(y===!0?[]:y),k=[];function V(Z){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Z.map(function(Ee,A){var U=Object(m.h)(K?K.pos:"0",A),F=D(Ee.key,U),v=Object(j.a)(Object(j.a)({},Ee),{},{parent:K,pos:U,children:null,data:Ee,isStart:[].concat(Object(w.a)(K?K.isStart:[]),[A===0]),isEnd:[].concat(Object(w.a)(K?K.isEnd:[]),[A===Z.length-1])});return k.push(v),y===!0||L.has(F)?v.children=V(Ee.children||[],v):v.children=[],v})}return V(_),k}function H(_,y,L){var k;L?typeof L=="string"?k=function(K){return K[L]}:typeof L=="function"&&(k=function(K){return L(K)}):k=function(K,Ee){return D(K.key,Ee)};function V(Z,K,Ee){var A=Z?Z.children:_,U=Z?Object(m.h)(Ee.pos,K):"0";if(Z){var F=k(Z,U),v={node:Z,index:K,pos:U,key:F,parentPos:Ee.node?Ee.pos:null,level:Ee.level+1};y(v)}A&&A.forEach(function(C,u){V(C,u,{node:Z,pos:U,level:Ee?Ee.level+1:-1})})}V(null)}function de(_){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=y.initWrapper,k=y.processEntity,V=y.onProcessFinished,Z=arguments.length>2?arguments[2]:void 0,K={},Ee={},A={posEntities:K,keyEntities:Ee};return L&&(A=L(A)||A),H(_,function(U){var F=U.node,v=U.index,C=U.pos,u=U.key,M=U.parentPos,P=U.level,T={node:F,index:v,key:u,pos:C,level:P},i=D(u,C);K[C]=T,Ee[i]=T,T.parent=K[M],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),k&&k(T,A)},Z),V&&V(A),A}function be(_,y){var L=y.expandedKeys,k=y.selectedKeys,V=y.loadedKeys,Z=y.loadingKeys,K=y.checkedKeys,Ee=y.halfCheckedKeys,A=y.dragOverNodeKey,U=y.dropPosition,F=y.keyEntities,v=F[_],C={eventKey:_,expanded:L.indexOf(_)!==-1,selected:k.indexOf(_)!==-1,loaded:V.indexOf(_)!==-1,loading:Z.indexOf(_)!==-1,checked:K.indexOf(_)!==-1,halfChecked:Ee.indexOf(_)!==-1,pos:String(v?v.pos:""),dragOver:A===_&&U===0,dragOverGapTop:A===_&&U===-1,dragOverGapBottom:A===_&&U===1};return C}function Y(_){var y=_.data,L=_.expanded,k=_.selected,V=_.checked,Z=_.loaded,K=_.loading,Ee=_.halfChecked,A=_.dragOver,U=_.dragOverGapTop,F=_.dragOverGapBottom,v=_.pos,C=_.active,u=Object(j.a)(Object(j.a)({},y),{},{expanded:L,selected:k,checked:V,loaded:Z,loading:K,halfChecked:Ee,dragOver:A,dragOverGapTop:U,dragOverGapBottom:F,pos:v,active:C});return"props"in u||Object.defineProperty(u,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),u}},BU3w:function(Se,z,e){"use strict";e.d(z,"a",function(){return m});var w=e("MNnm"),j="rc-util-key";function De(D){if(D.attachTo)return D.attachTo;var ae=document.querySelector("head");return ae||document.body}function S(D){var ae,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var ce=document.createElement("style");if((ae=h.csp)===null||ae===void 0?void 0:ae.nonce){var H;ce.nonce=(H=h.csp)===null||H===void 0?void 0:H.nonce}ce.innerHTML=D;var de=De(h),be=de.firstChild;return h.prepend&&de.prepend?de.prepend(ce):h.prepend&&be?de.insertBefore(ce,be):de.appendChild(ce),ce}var o=new Map;function m(D,ae){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ce=De(h);if(!o.has(ce)){var H=S("",h),de=H.parentNode;o.set(ce,de),de.removeChild(H)}var be=Array.from(o.get(ce).children).find(function(k){return k.tagName==="STYLE"&&k[j]===ae});if(be){var Y,_;if(((Y=h.csp)===null||Y===void 0?void 0:Y.nonce)&&be.nonce!==((_=h.csp)===null||_===void 0?void 0:_.nonce)){var y;be.nonce=(y=h.csp)===null||y===void 0?void 0:y.nonce}return be.innerHTML!==D&&(be.innerHTML=D),be}var L=S(D,h);return L[j]=ae,L}},BdwD:function(Se,z,e){"use strict";var w=e("+L6B"),j=e("2/Rp"),De=e("0Owb"),S=e("k1fw"),o=e("q1tI"),m=e.n(o),D=e("FOrL"),ae=e.n(D),h=function(H){var de=H.buttonProps,be=de===void 0?{}:de,Y=H.styles,_=Y===void 0?{}:Y,y=H.customText,L=H.ButtonText,k=H.ButtonClick,V=H.Buttonclass,Z=H.ButtonTwo;return m.a.createElement("section",{className:"tc animated fadeIn",style:Object(S.a)(Object(S.a)({},{color:"#999",margin:"200px auto"}),_)},m.a.createElement("img",{src:ae.a}),m.a.createElement("p",{className:"mt20 font14"},y||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),L&&m.a.createElement(j.a,Object(De.a)({className:V,onClick:k},be),L),Z&&Z)};z.a=h},"Ct/S":function(Se,z,e){Se.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},FOrL:function(Se,z,e){Se.exports=e.p+"static/nodata.a6b3f948.png"},IBYe:function(Se,z,e){"use strict";function w(j){return null}z.a=w},IoUt:function(Se,z,e){Se.exports={flex_box_center:"flex_box_center___3N1vU",flex_space_between:"flex_space_between___A7Vod",flex_box_vertical_center:"flex_box_vertical_center___34bDS",flex_box_center_end:"flex_box_center_end___3_uG-",flex_box_column:"flex_box_column___1D2by",page:"page___1lL-C",title:"title___2HhAX",wrap:"wrap___3HjzC",tabsWrap:"tabsWrap___4HtM9",filterWrap:"filterWrap___2s1M4",batchWrap:"batchWrap___qnSBI",contentWrap:"contentWrap___DSAvO",checkbox:"checkbox___dUmix",modal:"modal___1KOAK",list:"list___1YITo",btns:"btns___3v1OA",confirm:"confirm___1h0ho",cancel:"cancel___3MBsp",batch:"batch___16bAs",btn:"btn___2ON8h"}},LCv0:function(Se,z,e){Se.exports=e.p+"static/s.7c78bc98.svg"},LdHM:function(Se,z,e){"use strict";e.d(z,"b",function(){return Z}),e.d(z,"a",function(){return Ee});var w=e("1OyB"),j=e("vuIU"),De=e("Ji7U"),S=e("LK+K"),o=e("q1tI"),m=e("rePB"),D=e("Ff2n"),ae=e("ODXe"),h=e("4IlW"),ce=e("bX4T"),H=e("YrtM"),de=e("TSYQ"),be=e.n(de),Y=e("+nKL"),_=e("8OUc"),y=function(N,_e){var ve=N.prefixCls,Ne=N.id,Ie=N.flattenOptions,fe=N.childrenAsData,le=N.values,Me=N.searchValue,ge=N.multiple,B=N.defaultActiveFirstOption,G=N.height,je=N.itemHeight,Ke=N.notFoundContent,re=N.open,pe=N.menuItemSelectedIcon,Fe=N.virtual,st=N.onSelect,Je=N.onToggleOpen,$e=N.onActiveValue,ct=N.onScroll,Qe=N.onMouseEnter,ze="".concat(ve,"-item"),$=Object(H.a)(function(){return Ie},[re,Ie],function(Re,me){return me[0]&&Re[1]!==me[1]}),Ze=o.useRef(null),yt=function(me){me.preventDefault()},_t=function(me){Ze.current&&Ze.current.scrollTo({index:me})},Nt=function(me){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=$.length,Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(he).map(function(_e,ve){if(!o.isValidElement(_e)||!_e.type)return null;var Ne=_e.type.isSelectOptGroup,Ie=_e.key,fe=_e.props,le=fe.children,Me=Object(D.a)(fe,["children"]);return N||!Ne?F(_e):Object(A.a)(Object(A.a)({key:"__RC_SELECT_GRP__".concat(Ie===null?ve:Ie,"__"),label:Ie},Me),{},{options:v(le)})}).filter(function(_e){return _e})}var C=e("2Qr1"),u=e("qNPg"),M=e("U8pU"),P=e("Kwbf"),T=e("WKfj");function i(he){var N=he.mode,_e=he.options,ve=he.children,Ne=he.backfill,Ie=he.allowClear,fe=he.placeholder,le=he.getInputElement,Me=he.showSearch,ge=he.onSearch,B=he.defaultOpen,G=he.autoFocus,je=he.labelInValue,Ke=he.value,re=he.inputValue,pe=he.optionLabelProp,Fe=N==="multiple"||N==="tags",st=Me!==void 0?Me:Fe||N==="combobox",Je=_e||v(ve);if(Object(P.a)(N!=="tags"||Je.every(function(ze){return!ze.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),N==="tags"||N==="combobox"){var $e=Je.some(function(ze){return ze.options?ze.options.some(function($){return typeof("value"in $?$.value:$.key)=="number"}):typeof("value"in ze?ze.value:ze.key)=="number"});Object(P.a)(!$e,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(P.a)(N!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(P.a)(N==="combobox"||!Ne,"`backfill` only works with `combobox` mode."),Object(P.a)(N==="combobox"||!le,"`getInputElement` only work with `combobox` mode."),Object(P.b)(N!=="combobox"||!le||!Ie||!fe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ge&&!st&&N!=="combobox"&&N!=="tags"&&Object(P.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(P.b)(!B||G,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ke!=null){var ct=Object(T.d)(Ke);Object(P.a)(!je||ct.every(function(ze){return Object(M.a)(ze)==="object"&&("key"in ze||"value"in ze)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(P.a)(!Fe||Array.isArray(Ke),"`value` should be array when `mode` is `multiple` or `tags`")}if(ve){var Qe=null;Object(U.a)(ve).some(function(ze){if(!o.isValidElement(ze)||!ze.type)return!1;var $=ze.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var Ze=Object(U.a)(ze.props.children).every(function(yt){return!o.isValidElement(yt)||!ze.type||yt.type.isSelectOption?!0:(Qe=yt.type,!1)});return!Ze}return Qe=$,!0}),Qe&&Object(P.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Qe.displayName||Qe.name||Qe,"`.")),Object(P.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=i,s=Object(u.a)({prefixCls:"rc-select",components:{optionList:k},convertChildrenToData:v,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:b,fillOptionsWithMissingValue:C.a}),x=function(he){Object(De.a)(_e,he);var N=Object(S.a)(_e);function _e(){var ve;return Object(w.a)(this,_e),ve=N.apply(this,arguments),ve.selectRef=o.createRef(),ve.focus=function(){ve.selectRef.current.focus()},ve.blur=function(){ve.selectRef.current.blur()},ve}return Object(j.a)(_e,[{key:"render",value:function(){return o.createElement(s,Object.assign({ref:this.selectRef},this.props))}}]),_e}(o.Component);x.Option=Z,x.OptGroup=Ee;var X=x,ue=z.c=X},NLgs:function(Se,z,e){"use strict";e.d(z,"e",function(){return K}),e.d(z,"f",function(){return Ee}),e.d(z,"d",function(){return U}),e.d(z,"c",function(){return F}),e.d(z,"a",function(){return v}),e.d(z,"b",function(){return C});var w=e("miYZ"),j=e("tsqr"),De=e("9og8"),S=e("2qtc"),o=e("kLXV"),m=e("WmNS"),D=e.n(m),ae=e("q1tI"),h=e.n(ae),ce=e("9kvl"),H=e("xKgJ"),de=e("1vsH"),be=e("RCxd"),Y=e("mOS8"),_=e.n(Y),y=e("1ZF9"),L=e.n(y),k=e("WdTA"),V=e.n(k),Z=e("m3rI"),K=function(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(Ee(M)&&A(P))},Ee=function(M){return Object(H.p)()?!0:(M({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},A=function(){var M,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=Object(ce.c)()._store.getState(),i=T.user;return(M=i.userInfo)!==null&&M!==void 0&&M.profile_completed?!0:(o.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:P?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){ce.d.push("/account/profile/edit")}}),!1)},U=function(){var M,P=Object(ce.c)()._store.getState(),T=P.user;return(M=T.userInfo)!==null&&M!==void 0&&M.professional_certification?!0:(o.a.confirm({title:"\u63D0\u793A",centered:!0,content:h.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(de.O)("/account/certification")}}),!1)},F=function(){return Object(H.a)()?!0:(o.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:h.a.createElement("div",{className:"tc",style:{marginLeft:-38}},h.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),h.a.createElement("img",{src:Object(H.t)()?V.a:"".concat(Z.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},v=function(M,P){return M?!0:(o.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:h.a.createElement("div",null,h.a.createElement("p",null,P||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),h.a.createElement("div",{style:{marginLeft:"110px"}},h.a.createElement("img",{src:L.a,width:200}),h.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(de.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},C=function(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",T=Object(ce.c)()._store.getState(),i=T.shixunsDetail.detail;return(i==null?void 0:i.public)===2||(i==null?void 0:i.public)===1||(i==null?void 0:i.shixun_status)===3?(o.a.info({centered:!0,icon:h.a.createElement(be.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:h.a.createElement("div",{className:"tc",style:{marginLeft:-38}},h.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},h.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(i==null?void 0:i.public)===2?"\u5DF2\u516C\u5F00":(i==null?void 0:i.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",P,"\u3002"),h.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),h.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:_.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(i==null?void 0:i.shixun_status)===2?(o.a.confirm({centered:!0,icon:h.a.createElement(be.a,null),title:"\u63D0\u793A",content:h.a.createElement("div",null,h.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",P,"\u3002"),h.a.createElement("br",null),h.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){o.a.confirm({width:440,centered:!0,icon:h.a.createElement(be.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var s=Object(De.a)(D.a.mark(function X(){var ue;return D.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,M({type:"shixunsDetail/cancelRelease",payload:{id:i==null?void 0:i.identifier}});case 2:ue=N.sent,ue.status!==401&&(j.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),M({type:"shixunsDetail/getShixunsDetail",payload:{id:i==null?void 0:i.identifier}}),M({type:"practiceSetting/getCommonData",payload:{id:i==null?void 0:i.identifier}}));case 4:case"end":return N.stop()}},X)}));function x(){return s.apply(this,arguments)}return x}()})}}),!0):!1}},NvD2:function(Se,z,e){"use strict";e.d(z,"a",function(){return m});var w=e("Kwbf");function j(D,ae){var h=new Set;return D.forEach(function(ce){ae.has(ce)||h.add(ce)}),h}function De(D){var ae=D||{},h=ae.disabled,ce=ae.disableCheckbox,H=ae.checkable;return!!(h||ce)||H===!1}function S(D,ae,h,ce){for(var H=new Set(D),de=new Set,be=0;be<=h;be+=1){var Y=ae.get(be)||new Set;Y.forEach(function(k){var V=k.key,Z=k.node,K=k.children,Ee=K===void 0?[]:K;H.has(V)&&!ce(Z)&&Ee.filter(function(A){return!ce(A.node)}).forEach(function(A){H.add(A.key)})})}for(var _=new Set,y=h;y>=0;y-=1){var L=ae.get(y)||new Set;L.forEach(function(k){var V=k.parent,Z=k.node;if(ce(Z)||!k.parent||_.has(k.parent.key))return;if(ce(k.parent.node)){_.add(V.key);return}var K=!0,Ee=!1;(V.children||[]).filter(function(A){return!ce(A.node)}).forEach(function(A){var U=A.key,F=H.has(U);K&&!F&&(K=!1),!Ee&&(F||de.has(U))&&(Ee=!0)}),K&&H.add(V.key),Ee&&de.add(V.key),_.add(V.key)})}return{checkedKeys:Array.from(H),halfCheckedKeys:Array.from(j(de,H))}}function o(D,ae,h,ce,H){for(var de=new Set(D),be=new Set(ae),Y=0;Y<=ce;Y+=1){var _=h.get(Y)||new Set;_.forEach(function(V){var Z=V.key,K=V.node,Ee=V.children,A=Ee===void 0?[]:Ee;!de.has(Z)&&!be.has(Z)&&!H(K)&&A.filter(function(U){return!H(U.node)}).forEach(function(U){de.delete(U.key)})})}be=new Set;for(var y=new Set,L=ce;L>=0;L-=1){var k=h.get(L)||new Set;k.forEach(function(V){var Z=V.parent,K=V.node;if(H(K)||!V.parent||y.has(V.parent.key))return;if(H(V.parent.node)){y.add(Z.key);return}var Ee=!0,A=!1;(Z.children||[]).filter(function(U){return!H(U.node)}).forEach(function(U){var F=U.key,v=de.has(F);Ee&&!v&&(Ee=!1),!A&&(v||be.has(F))&&(A=!0)}),Ee||de.delete(Z.key),A&&be.add(Z.key),y.add(Z.key)})}return{checkedKeys:Array.from(de),halfCheckedKeys:Array.from(j(be,de))}}function m(D,ae,h,ce){var H=[],de;ce?de=ce:de=De;var be=new Set(D.filter(function(L){var k=!!h[L];return k||H.push(L),k})),Y=new Map,_=0;Object.keys(h).forEach(function(L){var k=h[L],V=k.level,Z=Y.get(V);Z||(Z=new Set,Y.set(V,Z)),Z.add(k),_=Math.max(_,V)}),Object(w.a)(!H.length,"Tree missing follow keys: ".concat(H.slice(0,100).map(function(L){return"'".concat(L,"'")}).join(", ")));var y;return ae===!0?y=S(be,Y,_,de):y=o(be,ae.halfCheckedKeys,Y,_,de),y}},ORPY:function(Se,z,e){Se.exports={sendToClass:"sendToClass___2FQ8x"}},OZM5:function(Se,z,e){"use strict";e.d(z,"b",function(){return ce}),e.d(z,"a",function(){return H}),e.d(z,"k",function(){return de}),e.d(z,"h",function(){return be}),e.d(z,"i",function(){return Y}),e.d(z,"g",function(){return _}),e.d(z,"c",function(){return y}),e.d(z,"d",function(){return L}),e.d(z,"j",function(){return Z}),e.d(z,"e",function(){return K}),e.d(z,"f",function(){return Ee});var w=e("KQm4"),j=e("U8pU"),De=e("Ff2n"),S=e("q1tI"),o=e.n(S),m=e("Kwbf"),D=e("WaYH"),ae=.25,h=2;function ce(A,U){var F=A.slice(),v=F.indexOf(U);return v>=0&&F.splice(v,1),F}function H(A,U){var F=A.slice();return F.indexOf(U)===-1&&F.push(U),F}function de(A){return A.split("-")}function be(A,U){return"".concat(A,"-").concat(U)}function Y(A){return A&&A.type&&A.type.isTreeNode}function _(A,U){var F=[A],v=U[A];function C(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(M){var P=M.key,T=M.children;F.push(P),C(T)})}return C(v.children),F}function y(A,U){var F=A.clientY,v=U.selectHandle.getBoundingClientRect(),C=v.top,u=v.bottom,M=v.height,P=Math.max(M*ae,h);return F<=C+P?-1:F>=u-P?1:0}function L(A,U){if(!A)return;var F=U.multiple;return F?A.slice():A.length?[A[0]]:A}var k=function(U){return U};function V(A,U){if(!A)return[];var F=U||{},v=F.processProps,C=v===void 0?k:v,u=Array.isArray(A)?A:[A];return u.map(function(M){var P=M.children,T=Object(De.a)(M,["children"]),i=V(P,U);return o.a.createElement(D.a,Object.assign({},C(T)),i)})}function Z(A){if(!A)return null;var U;if(Array.isArray(A))U={checkedKeys:A,halfCheckedKeys:void 0};else if(Object(j.a)(A)==="object")U={checkedKeys:A.checked||void 0,halfCheckedKeys:A.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function K(A,U){var F=new Set;function v(C){if(F.has(C))return;var u=U[C];if(!u)return;F.add(C);var M=u.parent,P=u.node;if(P.disabled)return;M&&v(M.key)}return(A||[]).forEach(function(C){v(C)}),Object(w.a)(F)}function Ee(A){var U={};return Object.keys(A).forEach(function(F){(F.startsWith("data-")||F.startsWith("aria-"))&&(U[F]=A[F])}),U}},PEfE:function(Se,z,e){Se.exports={title:"title___316_5",radioWrap:"radioWrap___2b58p",row:"row___3Y_zu",radio:"radio___3wz7l",colorFF0000:"colorFF0000___3JfbP",pagination:"pagination___3UF9N",modalColumn:"modalColumn___2C76i",modalRow:"modalRow___3eIQ6",sup:"sup___1b5Qg"}},Q0Vu:function(Se,z,e){Se.exports={flex_box_center:"flex_box_center___3fHaw",flex_space_between:"flex_space_between___1tu3K",flex_box_vertical_center:"flex_box_vertical_center___3kmTT",flex_box_center_end:"flex_box_center_end___19OcD",flex_box_column:"flex_box_column___1aMoy",main:"main___JkLSb",wrap:"wrap___1k_Ib",content:"content___1by-P",name:"name___2mlTd",directionContentWrap:"directionContentWrap___3qsxQ",directionItem:"directionItem___2aAvu",active:"active___ACZqb",subActive:"subActive___2RkoB",subItem:"subItem___3tJgX",subMenu:"subMenu___Y_7S_",action:"action___xqgFs"}},"SA+Z":function(Se,z,e){var w=e("wTVA"),j=e("EbDI"),De=e("ZhPi"),S=e("wkBT");function o(m){return w(m)||j(m)||De(m)||S()}Se.exports=o,Se.exports.__esModule=!0,Se.exports.default=Se.exports},WaYH:function(Se,z,e){"use strict";var w=e("rePB"),j=e("Ff2n"),De=e("VTBJ"),S=e("1OyB"),o=e("vuIU"),m=e("JX7q"),D=e("Ji7U"),ae=e("LK+K"),h=e("q1tI"),ce=e("TSYQ"),H=e.n(ce),de=e("sboe"),be=e("OZM5"),Y=function(U){var F=U.prefixCls,v=U.level,C=U.isStart,u=U.isEnd;if(!v)return null;for(var M="".concat(F,"-indent-unit"),P=[],T=0;T1&&arguments[1]!==void 0?arguments[1]:!1,Me=fe.getAttribute("id")||fe.getAttribute("data-reactid")||fe.getAttribute("name");if(le&&b[Me])return b[Me];var ge=window.getComputedStyle(fe),B=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),G=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),je=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),Ke=i.map(function(pe){return"".concat(pe,":").concat(ge.getPropertyValue(pe))}).join(";"),re={sizingStyle:Ke,paddingSize:G,borderSize:je,boxSizing:B};return le&&Me&&(b[Me]=re),re}function X(fe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s)),fe.getAttribute("wrap")?s.setAttribute("wrap",fe.getAttribute("wrap")):s.removeAttribute("wrap");var B=x(fe,le),G=B.paddingSize,je=B.borderSize,Ke=B.boxSizing,re=B.sizingStyle;s.setAttribute("style","".concat(re,";").concat(S)),s.value=fe.value||fe.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Fe=Number.MAX_SAFE_INTEGER,st=s.scrollHeight,Je;if(Ke==="border-box"?st+=je:Ke==="content-box"&&(st-=G),Me!==null||ge!==null){s.value=" ";var $e=s.scrollHeight-G;Me!==null&&(pe=$e*Me,Ke==="border-box"&&(pe=pe+G+je),st=Math.max(pe,st)),ge!==null&&(Fe=$e*ge,Ke==="border-box"&&(Fe=Fe+G+je),Je=st>Fe?"":"hidden",st=Math.min(Fe,st))}return{height:st,minHeight:pe,maxHeight:Fe,overflowY:Je,resize:"none"}}var ue=e("Gytx"),he=e.n(ue),N;(function(fe){fe[fe.NONE=0]="NONE",fe[fe.RESIZING=1]="RESIZING",fe[fe.RESIZED=2]="RESIZED"})(N||(N={}));var _e=function(fe){Object(T.a)(Me,fe);var le=Object(o.a)(Me);function Me(ge){var B;return Object(j.a)(this,Me),B=le.call(this,ge),B.nextFrameActionId=void 0,B.resizeFrameId=void 0,B.textArea=void 0,B.saveTextArea=function(G){B.textArea=G},B.handleResize=function(G){var je=B.state.resizeStatus,Ke=B.props,re=Ke.autoSize,pe=Ke.onResize;if(je!==N.NONE)return;typeof pe=="function"&&pe(G),re&&B.resizeOnNextFrame()},B.resizeOnNextFrame=function(){cancelAnimationFrame(B.nextFrameActionId),B.nextFrameActionId=requestAnimationFrame(B.resizeTextarea)},B.resizeTextarea=function(){var G=B.props.autoSize;if(!G||!B.textArea)return;var je=G.minRows,Ke=G.maxRows,re=X(B.textArea,!1,je,Ke);B.setState({textareaStyles:re,resizeStatus:N.RESIZING},function(){cancelAnimationFrame(B.resizeFrameId),B.resizeFrameId=requestAnimationFrame(function(){B.setState({resizeStatus:N.RESIZED},function(){B.resizeFrameId=requestAnimationFrame(function(){B.setState({resizeStatus:N.NONE}),B.fixFirefoxAutoScroll()})})})})},B.renderTextArea=function(){var G=B.props,je=G.prefixCls,Ke=je===void 0?"rc-textarea":je,re=G.autoSize,pe=G.onResize,Fe=G.className,st=G.disabled,Je=B.state,$e=Je.textareaStyles,ct=Je.resizeStatus,Qe=Object(u.a)(B.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ze=P()(Ke,Fe,Object(ae.a)({},"".concat(Ke,"-disabled"),st));"value"in Qe&&(Qe.value=Qe.value||"");var $=Object(D.a)(Object(D.a)(Object(D.a)({},B.props.style),$e),ct===N.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(C,{onResize:B.handleResize,disabled:!(re||pe)},m.createElement("textarea",Object(w.a)({},Qe,{className:ze,style:$,ref:B.saveTextArea})))},B.state={textareaStyles:{},resizeStatus:N.NONE},B}return Object(De.a)(Me,[{key:"componentDidUpdate",value:function(B){(B.value!==this.props.value||!he()(B.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var B=this.textArea.selectionStart,G=this.textArea.selectionEnd;this.textArea.setSelectionRange(B,G)}}catch(je){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Me}(m.Component),ve=_e,Ne=function(fe){Object(T.a)(Me,fe);var le=Object(o.a)(Me);function Me(ge){var B;Object(j.a)(this,Me),B=le.call(this,ge),B.resizableTextArea=void 0,B.focus=function(){B.resizableTextArea.textArea.focus()},B.saveTextArea=function(je){B.resizableTextArea=je},B.handleChange=function(je){var Ke=B.props.onChange;B.setValue(je.target.value,function(){B.resizableTextArea.resizeTextarea()}),Ke&&Ke(je)},B.handleKeyDown=function(je){var Ke=B.props,re=Ke.onPressEnter,pe=Ke.onKeyDown;je.keyCode===13&&re&&re(je),pe&&pe(je)};var G=typeof ge.value=="undefined"||ge.value===null?ge.defaultValue:ge.value;return B.state={value:G},B}return Object(De.a)(Me,[{key:"setValue",value:function(B,G){"value"in this.props||this.setState({value:B},G)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(ve,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(B){return"value"in B?{value:B.value}:null}}]),Me}(m.Component),Ie=z.default=Ne},Ynr3:function(Te,z,e){"use strict";e.r(z);var w=e("DjyN"),j=e("NUBc"),De=e("T2oS"),T=e("W9HT"),o=e("14J3"),m=e("BMrR"),D=e("+L6B"),ae=e("2/Rp"),h=e("jCWc"),ce=e("kPKH"),H=e("qVdP"),de=e("jsC+"),be=e("lUTK"),Y=e("BvKs"),_=e("OaEy"),y=e("2fM7"),L=e("miYZ"),k=e("tsqr"),V=e("oBTY"),Z=e("sRBo"),K=e("kaz8"),Ee=e("2qtc"),A=e("kLXV"),U=e("9og8"),F=e("tJVT"),v=e("PpiC"),C=e("5NDa"),u=e("5rEg"),M=e("Znn+"),P=e("ZTPi"),S=e("WmNS"),i=e.n(S),b=e("q1tI"),s=e.n(b),x=e("9kvl"),X=e("BdwD"),ue=e("iris"),he=e("IoUt"),N=e.n(he),_e=e("LCv0"),ve=e.n(_e),Ne=e("fVvY"),Ie=e.n(Ne),fe=e("1XHU"),le=e("z5tG"),Me=e.n(le),ge=function(Q){var se=Q.paperlibrary,Oe=Q.globalSetting,we=Q.loading,ye=Q.dispatch,Se=Object(v.a)(Q,["paperlibrary","globalSetting","loading","dispatch"]);return s.a.createElement(A.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:se.actionTabs.key==="Paperlibrary-RandomPrompt",title:"\u6E29\u99A8\u63D0\u793A",footer:null},"\u968F\u673A\u7EC4\u5377\u529F\u80FD\u5728\u7F16\u8F91\u65F6\u4EC5\u80FD\u786E\u5B9A\u968F\u673A\u89C4\u5219\uFF0C\u4E0D\u80FD\u7F16\u8F91\u786E\u5B9A\u7684\u8BD5\u9898\u3002 \u5728\u8BFE\u5802\u4E0A\u5E94\u7528\u65F6\uFF0C\u5C06\u6839\u636E\u89C4\u5219\u4E3A\u6BCF\u4F4D\u5B66\u751F\u968F\u673A\u751F\u6210\u4E00\u4EFD\u8003\u5BDF\u70B9\u548C\u9898\u578B\u76F8\u540C\uFF0C\u4F46\u8BD5\u9898\u4E92\u4E0D\u76F8\u540C\u7684\u8BD5\u5377\u3002 \u4E3A\u987A\u5229\u7EC4\u5377\uFF0C\u8BF7\u53CA\u65F6\u5220\u9664\u4E2A\u4EBA\u9898\u5E93\u4E2D\u5197\u4F59\u3001\u9519\u8BEF\u3001\u65E0\u6548\u7684\u8BD5\u9898\uFF0C\u786E\u4FDD\u60A8\u7684\u4E2A\u4EBA\u9898\u5E93\u4E2D\u5168\u90E8\u8BD5\u9898\u5747\u6B63\u786E\u4E14\u6709\u6548\u3002",s.a.createElement("div",{className:"".concat(Me.a.footerWrap," mt30")},s.a.createElement(K.a,{onChange:function(ke){var Ye=window.localStorage;Ye&&(Ye.no_alert_randompaper=ke.target.checked?"1":"0")}},"\u4E0D\u518D\u63D0\u793A"),s.a.createElement(ae.a,{type:"primary",onClick:function(){ye({type:"paperlibrary/setActionTabs",payload:{}}),x.d.push("/randompaper")}},"\u786E\u5B9A")))},B=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.loading,Oe=J.globalSetting;return{paperlibrary:Q,globalSetting:Oe,loading:se.effects}})(ge),G=e("wd/R"),je=e.n(G),Ke=e("5Hdu"),re=e.n(Ke),pe=e("1vQj"),Fe=e.n(pe),st=e("4IkL"),Je=e.n(st),$e=e("xKgJ"),ct=e("V0Rq"),Qe=e("NLgs"),ze=e("LvDl"),$={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Ze=function(Q){var se,Oe,we,ye,Se,Ve,ke=Q.showCheckbox,Ye=ke===void 0?!1:ke,te=Q.data,mt=Q.user,vt=Q.authRole,He=Q.activeTabsKey,bt=Q.selectIds,dt=bt===void 0?[]:bt,nt=Q.onSetSelectIds,Bt=nt===void 0?function(){}:nt,ot=Q.onPublicReview,xt=ot===void 0?function(){}:ot,pt=Q.onCancelPublic,W=pt===void 0?function(){}:pt,at=Q.onCancelShare,Ht=at===void 0?function(){}:at,kt=Q.onEdit,Pt=kt===void 0?function(){}:kt,mn=Q.onDelete,On=mn===void 0?function(){}:mn,an=Q.onSendToClass,Et=an===void 0?function(){}:an,Qt=function(){A.a.warning({centered:!0,width:530,okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",icon:null,content:s.a.createElement("div",{className:"tc font16"},"\u672C\u5957\u8BD5\u5377\u6240\u9009\u7528\u8BD5\u9898\u90E8\u5206\u4E22\u5931\uFF0C\u8BF7\u8C28\u614E\u4F7F\u7528\u5E76\u53CA\u65F6\u8C03\u6574\u3002")})},Pn=function(){var zt=Object(U.a)(i.a.mark(function en(){var Jt,Sn;return i.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(ct.W)({categoryId:te.id});case 2:Jt=En.sent,Jt!=null&&Jt.exercise_id&&x.d.push("/classrooms/coursesId/exercise/".concat(Jt.exercise_id,"/").concat((Sn=mt.userInfo)===null||Sn===void 0?void 0:Sn.login,"/initate_answer"));case 4:case"end":return En.stop()}},en)}));return function(){return zt.apply(this,arguments)}}();return s.a.createElement("div",{className:re.a.itemWrap},s.a.createElement("div",{className:re.a.listWrap},s.a.createElement("div",{className:"".concat(re.a.list," ").concat(re.a.flexCenter)},Ye&&s.a.createElement(K.a,{className:"mr10",checked:dt.includes(te.id),onChange:function(en){Bt(te.id)}}),s.a.createElement("div",{className:"".concat(re.a.flexCenter," ").concat(re.a.imgWrap)},s.a.createElement("img",{src:te.public?Je.a:Fe.a,alt:""})),s.a.createElement("div",{className:re.a.contentWrap},s.a.createElement("div",{className:re.a.flexRow},s.a.createElement("a",{className:re.a.titleWrap,onClick:function(){if(vt){var en=te.is_random?"/randompaper/detail/".concat(te.id):"/paperlibrary/see/".concat(te.id,"?defaultActiveKey=").concat(He);x.d.push(en)}}},s.a.createElement("p",{className:re.a.title,title:te.name},te.name)),(He==="0"||He==="2")&&s.a.createElement(s.a.Fragment,null,te.public?s.a.createElement("div",{className:"".concat(re.a.typeIcon," ").concat(re.a.public)},"\u5DF2\u516C\u5F00"):s.a.createElement("div",{className:"".concat(re.a.typeIcon," ").concat(re.a.private)},"\u81EA\u7528"),te.is_random&&s.a.createElement("div",{className:"".concat(re.a.typeIcon," ").concat(re.a.random)},"\u968F\u673A")),(He==="1"&&Object($e.o)()||He==="0")&&te.changed&&s.a.createElement("i",{className:"iconfont icon-jinggao1 c-red font16 ml10 current",onClick:Qt})),s.a.createElement("div",{className:"".concat(re.a.flexRow),style:{marginTop:4}},s.a.createElement("p",{className:re.a.content},"\u8BD5\u9898\u6570\uFF1A",s.a.createElement("span",null,te.question_count)),s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.content},"\u603B\u5206\uFF1A",s.a.createElement("span",null,te.total_score)),s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.content},"\u96BE\u5EA6\uFF1A",s.a.createElement("span",null,$[te.difficulty]))))),s.a.createElement("div",{className:re.a.actionBar},s.a.createElement("div",{className:re.a.flexRow},s.a.createElement("p",{className:re.a.actionLeftItem},"\u66F4\u65B0\uFF1A",s.a.createElement("span",null,te.update_time?je()(te.update_time).format("YYYY-MM-DD"):"")),s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.actionLeftItem},"\u4F7F\u7528\u6B21\u6570\uFF1A",s.a.createElement("span",null,te.quotes)),He==="1"&&s.a.createElement(s.a.Fragment,null,s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.actionLeftItem},"\u521B\u5EFA\u8005\uFF1A",s.a.createElement("span",null,(se=te.author)===null||se===void 0?void 0:se.name))),He==="2"&&s.a.createElement(s.a.Fragment,null,s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.actionLeftItem},"\u5206\u4EAB\u4EBA\uFF1A",s.a.createElement("span",null,(Oe=te.author)===null||Oe===void 0?void 0:Oe.name)))),s.a.createElement("div",{className:re.a.flexRow},He==="0"&&!te.public&&!te.is_random&&te.apply&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:xt},s.a.createElement("i",{className:"iconfont icon-gongkai ".concat(re.a.actionIcon)}),"\u5BA1\u6838\u4E2D"),He==="0"&&te.public&&!te.is_random&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20 current"),onClick:function(){return W(te.id)}},s.a.createElement("i",{className:"iconfont icon-gongkai ".concat(re.a.actionIcon)}),"\u64A4\u9500\u516C\u5F00"),He==="0"&&(te==null?void 0:te.is_share)&&!te.is_random&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20 current"),onClick:function(){return Ht(te.id)}},s.a.createElement("i",{className:"iconfont icon-chexiaogongxiang ".concat(re.a.actionIcon," font16")}),"\u64A4\u9500\u5171\u4EAB"),((He==="0"||He==="2")&&!te.public||He==="1"&&((we=te.author)===null||we===void 0?void 0:we.login)!==((ye=mt.userInfo)===null||ye===void 0?void 0:ye.login)&&Object($e.o)())&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:function(){return Pt(te.id,te.is_random)}},s.a.createElement("i",{className:"iconfont icon-bianji10 ".concat(re.a.actionIcon)}),"\u7F16\u8F91"),((He==="0"||He==="2")&&!te.public||He==="1"&&((Se=te.author)===null||Se===void 0?void 0:Se.login)!==((Ve=mt.userInfo)===null||Ve===void 0?void 0:Ve.login)&&Object($e.n)())&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:function(){return On(te.id)}},s.a.createElement("i",{className:"iconfont icon-shanchu11 ".concat(re.a.actionIcon)}),"\u5220\u9664"),vt&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:function(){if(te!=null&&te.need_authorize){Object(Qe.a)(!1,"\u8BE5\u8BD5\u5377\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}Et(te.id,te)}},s.a.createElement("i",{className:"iconfont icon-fasongzhiketang ".concat(re.a.actionIcon)}),"\u53D1\u9001\u81F3\u8BFE\u5802"),vt&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr15"),type:"primary",onClick:Object(ze.throttle)(Pn,3500)},s.a.createElement("i",{className:"iconfont icon-monikaoshi2 ".concat(re.a.actionIcon)}),"\u6A21\u62DF\u8003\u8BD5")))))},yt=function(Q){var se=Q.paperlibrary,Oe=Q.globalSetting,we=Q.loading,ye=Q.dispatch,Se=Object(v.a)(Q,["paperlibrary","globalSetting","loading","dispatch"]);return s.a.createElement(A.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:se.actionTabs.key==="Paperlibrary-PublicReview",title:"\u5BA1\u6838\u544A\u77E5",okText:"\u77E5\u9053\u5566",cancelText:"",width:"442px",onOk:function(){ye({type:"paperlibrary/setActionTabs",payload:{}})},onCancel:function(){ye({type:"paperlibrary/setActionTabs",payload:{}})}},s.a.createElement("div",{className:Me.a.modalContent},"\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"),s.a.createElement("div",{className:Me.a.modalContent},"\u6211\u4EEC\u5C06\u57281-2\u4E2A\u5DE5\u4F5C\u65E5\u5185\u5B8C\u6210\u5BA1\u6838"))},_t=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.loading,Oe=J.globalSetting;return{paperlibrary:Q,globalSetting:Oe,loading:se.effects}})(yt),Nt=function(Q){var se=Q.paperlibrary,Oe=Q.globalSetting,we=Q.loading,ye=Q.dispatch,Se=Q.onReloadData,Ve=Se===void 0?function(){}:Se,ke=Object(v.a)(Q,["paperlibrary","globalSetting","loading","dispatch","onReloadData"]),Ye=function(){var te=Object(U.a)(i.a.mark(function mt(){var vt;return i.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,ye({type:"paperlibrary/handleDelete",payload:se.actionTabs.params});case 2:vt=bt.sent,ye({type:"paperlibrary/setActionTabs",payload:{}}),vt.status===0&&Ve();case 5:case"end":return bt.stop()}},mt)}));return function(){return te.apply(this,arguments)}}();return s.a.createElement(A.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:se.actionTabs.key==="Paperlibrary-Delete",title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:we["paperlibrary/handleDelete"],width:"442px",onOk:Ye,onCancel:function(){ye({type:"paperlibrary/setActionTabs",payload:{}})}},s.a.createElement("div",{className:Me.a.modalContent},"\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u65E0\u6CD5\u64A4\u9500"),s.a.createElement("div",{className:Me.a.modalContent},"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},Ot=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.loading,Oe=J.globalSetting;return{paperlibrary:Q,globalSetting:Oe,loading:se.effects}})(Nt),sn=e("kHHm"),R=e("1vsH"),ne=e("vCeJ"),oe=e("WCUW"),Pe=e("ErOA"),Ae=P.a.TabPane,Re=u.a.Search,me=function(Q){var se,Oe,we,ye,Se,Ve,ke,Ye,te,mt=Q.paperlibrary,vt=Q.user,He=Q.globalSetting,bt=Q.loading,dt=Q.dispatch,nt=Q.location,Bt=Object(v.a)(Q,["paperlibrary","user","globalSetting","loading","dispatch","location"]),ot=(nt==null||((se=nt.query)===null||se===void 0)?void 0:se.defaultActiveKey)||"1",xt=Object(b.useState)({discipline_id:null,sub_discipline_id:null,tag_discipline_id:null,public:ot,difficulty:null,keyword:null,page:1,per_page:10,group_id:null,is_random:null,sort_by:"updated_at",sort_direction:"desc"}),pt=Object(F.a)(xt,2),W=pt[0],at=pt[1],Ht=Object(b.useState)(0),kt=Object(F.a)(Ht,2),Pt=kt[0],mn=kt[1],On=Object(b.useState)([]),an=Object(F.a)(On,2),Et=an[0],Qt=an[1],Pn=Object(b.useState)(),zt=Object(F.a)(Pn,2),en=zt[0],Jt=zt[1],Sn=Object(b.useState)(!1),Tn=Object(F.a)(Sn,2),En=Tn[0],Hn=Tn[1],In=Object(b.useState)(0),Xn=Object(F.a)(In,2),kn=Xn[0],Gn=Xn[1],on=Object(b.useState)(ot),ln=Object(F.a)(on,2),Zt=ln[0],un=ln[1],gn=Object(b.useState)([]),xn=Object(F.a)(gn,2),Mt=xn[0],Mn=xn[1],Dn=Object(b.useRef)(!1),pn=Object(b.useRef)(),Ra=Object(b.useState)("\u6309\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F"),ta=Object(F.a)(Ra,2),Wt=ta[0],ia=ta[1],Qn=[{name:"\u6309\u66F4\u65B0\u65F6\u95F4\u5347\u5E8F",type:"updated_at",direction:"asc"},{name:"\u6309\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F",type:"updated_at",direction:"desc"},{name:"\u6309\u4F7F\u7528\u6B21\u6570\u5347\u5E8F",type:"quotes",direction:"asc"},{name:"\u6309\u4F7F\u7528\u6B21\u6570\u964D\u5E8F",type:"quotes",direction:"desc"}];Object(b.useEffect)(function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}},[]),Object(b.useEffect)(function(){va(Zt),Cn(W),An()},[]),Object(b.useEffect)(function(){return dt({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),dt({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){dt({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),dt({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[]),Object(b.useEffect)(function(){Object(R.T)("\u8BD5\u5377\u5E93")});var va=function(xe){console.log(xe,"key"),dt({type:"paperlibrary/getCustomDisciplines",payload:{clazz:xe==="0"?"my":xe==="1"?"public":"teacher"}})},An=function(){var Le=Object(U.a)(i.a.mark(function xe(){return i.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:dt({type:"paperlibrary/getTeachGroupData"});case 1:case"end":return Ge.stop()}},xe)}));return function(){return Le.apply(this,arguments)}}(),Cn=function(){var Le=Object(U.a)(i.a.mark(function xe(et){var Ge;return i.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,dt({type:"paperlibrary/getPaperlibraryList",payload:et});case 2:Ge=At.sent,Ge&&Ge.status!==403&&Ge.status!==401&&Ge.status!==500&&(mn(Ge.exam_count||0),Qt(Ge.exams||[]),Jt(Ge.auth_role),Mn([]));case 4:case"end":return At.stop()}},xe)}));return function(et){return Le.apply(this,arguments)}}(),$n=function(){W.per_page=10,at(W),Cn(W)},ba=function(xe,et){W.discipline_id=xe||"",W.sub_discipline_id=et||"",W.page=1,W.per_page=10,at(W),Cn(W)},Fa=function(xe){W.item_type=xe||"",W.page=1,W.per_page=10,at(W),Cn(W)},Ka=function(xe){W.difficulty=xe||"",W.page=1,W.per_page=10,at(W),Cn(W)},Ea=function(xe){W.is_random=xe||"",W.page=1,W.per_page=10,at(W),Cn(W)},sa=function(xe){W.sort_by=xe.type,W.sort_direction=xe.direction,W.page=1,W.per_page=10,ia(xe.name),at(W),Cn(W)},Ba=function(xe){W.public=xe,W.group_id=null,W.page=1,W.per_page=10,W.discipline_id=null,W.sub_discipline_id=null,W.tag_discipline_id=null,W.difficulty=null,W.is_random=null,va(xe),un(xe),at(W),Cn(W)},za=function(xe){W.page=xe,W.per_page=10,at(W),Cn(W)},ja=function(xe){W.page=1,W.keyword=xe,Cn(W)},Pa=function(){if(!en){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Auth",params:{occupation:2}}});return}x.d.push("/problemset")},Za=function(){if(localStorage.no_alert_randompaper==="1"){x.d.push("/randompaper");return}dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-RandomPrompt"}})},Fn=function(xe){Dn.current=!1,window.localStorage.getItem("paperlibrary-cancel-public-hint-flag")==="1"?la(xe):A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u64A4\u9500\u516C\u5F00\u544A\u77E5",className:N.a.modal,content:s.a.createElement("div",{className:"font16"},"\u672C\u8BD5\u5377\u5DF2\u516C\u5F00\uFF0C\u64A4\u9500\u516C\u5F00\u540E\u5C06\u5BF9\u5176\u4ED6\u7528\u6237\u4E0D\u53EF\u89C1\u3002 \u786E\u8BA4\u64A4\u9500\u516C\u5F00\u56DE\u5230\u81EA\u6709\u72B6\u6001\u5417\uFF1F",s.a.createElement("div",null,s.a.createElement(K.a,{className:"mt10",defaultChecked:!1,onChange:function(Ge){return Dn.current=Ge.target.checked}},"\u4E0D\u518D\u63D0\u793A"))),onOk:function(){Dn.current&&window.localStorage.setItem("paperlibrary-cancel-public-hint-flag","1"),la(xe)}})},la=function(){var Le=Object(U.a)(i.a.mark(function xe(et){var Ge;return i.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,Object(ne.n)({id:et});case 2:Ge=At.sent,(Ge==null?void 0:Ge.status)===0&&$n();case 4:case"end":return At.stop()}},xe)}));return function(et){return Le.apply(this,arguments)}}(),Sa=function(){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-PublicReview"}})},ga=function(xe,et){if(!en){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Auth",params:{occupation:2}}});return}var Ge=et?"/randompaper/edit/".concat(xe):"/paperlibrary/edit/".concat(xe,"?defaultActiveKey=").concat(Zt);Object(R.O)(Ge)},yn=function(xe){if(!en){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Auth",params:{occupation:2}}});return}dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Delete",params:{id:xe}}})},Nn=function(xe,et){console.log(et,"data"),dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:xe,data:et}}})},wn=function(xe){Mn(Mt!=null&&Mt.includes(xe)?Mt.filter(function(et){return et!==xe}):[].concat(Object(V.a)(Mt),[xe]))},Ca=function(xe){Mn(xe?Et==null?void 0:Et.map(function(et){return et.id}):[])},na=function(){if(!(Mt!=null&&Mt.length))return k.b.info("\u8BF7\u5148\u9009\u62E9\u8BD5\u5377");A.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6279\u91CF\u5220\u9664",maskClosable:!0,icon:null,content:"\u786E\u5B9A\u5220\u9664\u9009\u4E2D\u7684\u8BD5\u5377\u5417",onOk:function(){return new Promise(function(){var et=Object(U.a)(i.a.mark(function Ge(Xt,At){var Ft;return i.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Object(Pe.a)("/api/examination_banks/batch_delete.json",{method:"delete",body:{ids:Mt}});case 2:Ft=rn.sent,(Ft==null?void 0:Ft.status)===0&&($n(),Mn([]),Xt());case 4:case"end":return rn.stop()}},Ge)}));return function(Ge,Xt){return et.apply(this,arguments)}}())}})},aa=function(){var xe,et,Ge,Xt,At;if(!(Mt!=null&&Mt.length))return k.b.info("\u8BF7\u5148\u9009\u62E9\u8BD5\u5377");if(Et!=null&&(xe=Et.filter(function(Ft){return Mt.includes(Ft.id)}))!==null&&xe!==void 0&&xe.find(function(Ft){return Ft.is_random}))return k.b.info("\u968F\u673A\u8BD5\u5377\u4E0D\u53EF\u516C\u5F00\u6216\u5171\u4EAB\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9");if(!((et=mt.teachGroupData)!==null&&et!==void 0&&(Ge=et.groups)!==null&&Ge!==void 0&&Ge.length))return k.b.info("\u60A8\u6682\u672A\u521B\u5EFA\u6216\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u524D\u5F80\u201C\u8D26\u53F7\u7BA1\u7406-\u6559\u7814\u56E2\u961F\u201D\u67E5\u770B");A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:s.a.createElement("div",{className:"font14 ".concat(N.a.overflow)},s.a.createElement(K.a.Group,{className:N.a.checkbox,defaultValue:pn.current,onChange:function(cn){return pn.current=cn}},(Xt=mt.teachGroupData)===null||Xt===void 0||((At=Xt.groups)===null||At===void 0)?void 0:At.map(function(Ft){return s.a.createElement(K.a,{key:Ft.group_id,value:Ft.group_id},Ft.name)}))),onOk:function(){return new Promise(function(){var cn=Object(U.a)(i.a.mark(function rn(ca,da){var Bn,Yn;return i.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if((Bn=pn.current)!==null&&Bn!==void 0&&Bn.length){Rn.next=3;break}return k.b.info("\u8BF7\u5148\u9009\u62E9\u6559\u7814\u56E2\u961F"),Rn.abrupt("return",da());case 3:return Rn.next=5,Object(oe.j)({ids:Mt,clazz:"ExaminationBank",group_ids:pn.current});case 5:Yn=Rn.sent,(Yn==null?void 0:Yn.status)===0&&(k.b.info("\u6240\u9009\u8BD5\u5377\u6210\u529F\u5206\u4EAB\u81F3\u6559\u7814\u56E2\u961F"),pn.current=[],$n(),Mn([]),ca());case 7:case"end":return Rn.stop()}},rn)}));return function(rn,ca){return cn.apply(this,arguments)}}())}})},Ta=function(){var xe,et;if(!(Mt!=null&&Mt.length))return k.b.info("\u8BF7\u5148\u9009\u62E9\u8BD5\u5377");if(Et!=null&&(xe=Et.filter(function(Ge){return Mt.includes(Ge.id)}))!==null&&xe!==void 0&&xe.find(function(Ge){return Ge.is_random}))return k.b.info("\u968F\u673A\u8BD5\u5377\u4E0D\u53EF\u516C\u5F00\u6216\u5171\u4EAB\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9");if(Et!=null&&(et=Et.filter(function(Ge){return Mt.includes(Ge.id)}))!==null&&et!==void 0&&et.every(function(Ge){return Ge.public}))return k.b.info("\u6240\u9009\u8BD5\u5377\u5DF2\u516C\u5F00\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9");window.localStorage.getItem("paperlibrary-set-public-hint-flag")==="1"?Da():A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u516C\u5F00\u89C4\u5219\u544A\u77E5",maskClosable:!0,icon:null,content:s.a.createElement("div",{className:"font16 c-grey-333"},"\u516C\u5F00\u5E76\u7ECF\u5E73\u53F0\u5BA1\u6838\u540E\uFF0C\u8BE5\u8BD5\u5377\u5C06\u5728\u516C\u5171\u8BD5\u5377\u5E93\u53EF\u89C1\uFF0CEducoder\u6240\u6709\u7528\u6237\u5747\u53EF\u4F7F\u7528\u8BE5\u8BD5\u5377\uFF1B\u4E14\u8BE5\u8BD5\u5377\u4E0B\u6240\u6709\u8BD5\u9898\u4E00\u5E76\u516C\u5F00\u3002",s.a.createElement("br",null),"\u516C\u5F00\u540E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u4F46\u53EF\u4EE5\u64A4\u9500\uFF1B\u64A4\u9500\u516C\u5F00\u540E\u53EF\u4EE5\u4FEE\u6539\u3002",s.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u7533\u8BF7\u516C\u5F00\uFF1F",s.a.createElement("br",null),s.a.createElement(K.a,{className:"mt10",defaultChecked:!1,onChange:function(Xt){return Dn.current=Xt.target.checked}},"\u4E0D\u518D\u63D0\u793A")),onOk:function(){Da()}})},Da=function(){var Le=Object(U.a)(i.a.mark(function xe(){var et,Ge;return i.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return et=Zt==="2"?1:2,At.next=3,Object(ne.c)({ids:Mt,source:et});case 3:Ge=At.sent,Ge.status===0&&(Dn.current&&window.localStorage.setItem("paperlibrary-set-public-hint-flag","1"),Dn.current=!1,$n());case 5:case"end":return At.stop()}},xe)}));return function(){return Le.apply(this,arguments)}}(),Aa=function(){var Le=Object(U.a)(i.a.mark(function xe(et){var Ge,Xt;return i.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,Object(oe.A)({clazz:"ExaminationBank",id:et});case 2:Ge=Ft.sent,Xt=(Ge==null?void 0:Ge.groups)||[],pn.current=[],A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A\u64A4\u9500",cancelText:"\u53D6\u6D88",title:"\u672C\u9898\u5DF2\u5171\u4EAB\u7684\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:s.a.createElement("div",{className:"font14 ".concat(N.a.overflow)},s.a.createElement("p",{className:"c-grey-999"},"\u9009\u4E2D\u5E76\u786E\u5B9A\uFF0C\u5373\u64A4\u9500\u672C\u9898\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB"),s.a.createElement(K.a.Group,{className:N.a.checkbox,defaultValue:pn.current,onChange:function(rn){return pn.current=rn}},Xt==null?void 0:Xt.map(function(cn){return s.a.createElement(K.a,{key:cn.group_id,value:cn.group_id},cn.name)}))),onOk:function(){var cn=Object(U.a)(i.a.mark(function ca(){return i.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.abrupt("return",new Promise(function(){var Yn=Object(U.a)(i.a.mark(function oa(Rn,fa){var _a,Ua,qn;return i.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(pn.current.length){tt.next=3;break}return k.b.warn("\u8BF7\u9009\u62E9\u9700\u8981\u64A4\u9500\u5171\u4EAB\u7684\u6559\u7814\u56E2\u961F"),tt.abrupt("return",fa());case 3:return Ua=Xt==null||((_a=Xt.map(function(Kt){return Kt.group_id}))===null||_a===void 0)?void 0:_a.filter(function(Kt){return!pn.current.includes(Kt)}),tt.next=6,Object(oe.j)({ids:[et],clazz:"ExaminationBank",group_ids:Ua});case 6:return qn=tt.sent,pn.current=[],(qn==null?void 0:qn.status)===0&&(k.b.info("\u64A4\u9500\u5171\u4EAB\u6210\u529F"),$n()),tt.abrupt("return",Rn());case 10:case"end":return tt.stop()}},oa)}));return function(oa,Rn){return Yn.apply(this,arguments)}}()));case 1:case"end":return Bn.stop()}},ca)}));function rn(){return cn.apply(this,arguments)}return rn}()});case 6:case"end":return Ft.stop()}},xe)}));return function(et){return Le.apply(this,arguments)}}(),ya=function(xe){W.page=1,W.group_id=xe,at(W),Cn(W)},Kn=vt.userInfo||{},Zn=Kn.admin,Jn=Kn.business,ua=Kn.is_shixun_marker,Na=Kn.is_teacher,wa=Kn.user_identity,La=Zn||Jn||ua||Na||wa!=="\u5B66\u751F";return console.log(mt,"paperlibrary"),s.a.createElement(b.Fragment,null,s.a.createElement("section",{className:N.a.page},s.a.createElement("div",{className:N.a.title},"\u8BD5\u5377\u5E93"),s.a.createElement("div",{className:N.a.wrap},s.a.createElement("div",{className:N.a.tabsWrap},s.a.createElement(P.a,{tabBarExtraContent:s.a.createElement("div",null,Zt==="2"&&s.a.createElement(y.a,{value:W.group_id,onChange:ya,size:"large",style:{width:288,marginRight:50}},s.a.createElement(y.a.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),mt==null||((Oe=mt.teachGroupData)===null||Oe===void 0||((we=Oe.groups)===null||we===void 0))?void 0:we.map(function(Le){return s.a.createElement(y.a.Option,{key:Le==null?void 0:Le.group_id,value:Le==null?void 0:Le.group_id},Le==null?void 0:Le.name)})),s.a.createElement(Re,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u641C\u7D22",size:"large",style:{width:300},onChange:function(xe){W.keyword=xe.target.value,at(W)},onSearch:ja})),defaultActiveKey:Zt,onChange:Ba},s.a.createElement(Ae,{tab:"\u516C\u5171",key:"1"}),((ye=mt.teachGroupData)===null||ye===void 0||((Se=ye.groups)===null||Se===void 0)?void 0:Se.length)&&s.a.createElement(Ae,{tab:"\u6559\u7814\u5171\u4EAB",key:"2"}),s.a.createElement(Ae,{tab:"\u6211\u7684",key:"0"}))),s.a.createElement("div",{className:N.a.filterWrap},s.a.createElement(ue.a,{randomValue:W.is_random,showRandomType:Zt==="0",onRandomChange:Ea,disciplinesData:(Ve=mt.disciplinesData)===null||Ve===void 0?void 0:Ve.disciplines,subDisciplineValue:W.sub_discipline_id,directionValue:W.discipline_id,typeValue:W.item_type,difficultyValue:W.difficulty,showItemType:!1,onDirectionChange:ba,onTypeChange:Fa,onDifficultyChange:Ka})),s.a.createElement(m.a,{align:"middle",className:N.a.batchWrap},s.a.createElement(ce.a,{className:"font14 c-light-primary"},s.a.createElement(de.a,{overlay:s.a.createElement(Y.a,{selectedKeys:[Wt]},Qn==null?void 0:Qn.map(function(Le,xe){return s.a.createElement(Y.a.Item,{key:Le.name,onClick:function(){return sa(Le)}},Le.name)}))},s.a.createElement("span",{style:{color:"#464F66"}},s.a.createElement("i",{className:"iconfont icon-paixu font14 mr5 c-light-primary"}),Wt))),La&&s.a.createElement(ce.a,{style:{marginLeft:"auto"}},s.a.createElement(ae.a,{type:"primary",className:"mr20",onClick:Pa},"\u4EBA\u5DE5\u7EC4\u5377"),s.a.createElement(ae.a,{type:"primary",onClick:function(){return x.d.push("/randompaper")}},"\u968F\u673A\u7EC4\u5377"))),s.a.createElement("div",{className:N.a.contentWrap},Et.length?s.a.createElement(T.a,{size:"large",spinning:bt["paperlibrary/getPaperlibraryList"]},Et.map(function(Le,xe){return s.a.createElement(Ze,{showCheckbox:Zt==="0",key:Le.id,data:Le,user:vt,authRole:en,activeTabsKey:Zt,selectIds:Mt,onSetSelectIds:wn,onCancelPublic:Fn,onCancelShare:Aa,onPublicReview:Sa,onEdit:ga,onDelete:yn,onSendToClass:Nn})})):s.a.createElement(T.a,{size:"large",spinning:bt["paperlibrary/getPaperlibraryList"]},s.a.createElement(X.a,null))),Pt!==0&&s.a.createElement(j.a,{showSizeChanger:!1,showQuickJumper:!0,onChange:za,pageSize:W==null?void 0:W.per_page,defaultCurrent:1,current:W.page||1,total:Pt,showTotal:function(xe){return s.a.createElement("span",{className:"mr10"},"\u5171",s.a.createElement("span",{className:"c-orange"},xe),"\u6761\u6570\u636E")}})),s.a.createElement(fe.a,{visible:((ke=mt.actionTabs)===null||ke===void 0?void 0:ke.key)==="Paperlibrary-Auth",occupationValue:(Ye=mt.actionTabs)===null||Ye===void 0||((te=Ye.params)===null||te===void 0)?void 0:te.occupation,onCancel:function(){dt({type:"paperlibrary/setActionTabs",payload:{}})}}),s.a.createElement(B,null),s.a.createElement(_t,null),s.a.createElement(Ot,{onReloadData:$n}),s.a.createElement(sn.a,null),s.a.createElement(A.a,{centered:!0,closable:!1,width:472,footer:null,visible:En},s.a.createElement("section",{className:N.a.modal},s.a.createElement("div",{className:N.a.title},s.a.createElement("span",null," \u9009\u62E9\u7EC4\u5377\u65B9\u5F0F"),s.a.createElement("i",{onClick:function(){return Hn(!1)},className:"icon-guanbi1 current"})),s.a.createElement("div",{className:N.a.list},s.a.createElement("div",{onClick:function(){return Gn(0)},style:{color:kn?"#999999":"#4AA37E"}},s.a.createElement("img",{src:kn?ve.a:Ie.a}),"\u4EBA\u5DE5\u7EC4\u5377"),s.a.createElement("aside",null,"\uFF08\u624B\u52A8\u7F16\u8F91\u521B\u5EFA\u65B0\u8BD5\u5377\uFF09")),s.a.createElement("div",{className:N.a.list},s.a.createElement("div",{onClick:function(){return Gn(1)},style:{color:kn?"#4AA37E":"#999999"}},s.a.createElement("img",{src:kn?Ie.a:ve.a}),"\u968F\u673A\u7EC4\u5377"),s.a.createElement("aside",null,"\uFF08\u7CFB\u7EDF\u4ECE\u5DF2\u6709\u9898\u5E93\u4E2D\u968F\u673A\u9009\u9898\u7EC4\u5377\uFF09")),s.a.createElement("div",{className:N.a.btns},s.a.createElement("div",{onClick:function(){return Hn(!1)},className:N.a.cancel},"\u53D6\u6D88"),s.a.createElement("div",{onClick:function(){kn===0?Pa():x.d.push("/randompaper")},className:N.a.confirm},"\u786E\u8BA4"))))),Zt==="0"&&!!(Mt!=null&&Mt.length)&&s.a.createElement("div",{className:N.a.batch},s.a.createElement("aside",null,s.a.createElement("div",{style:{flexShrink:0,marginRight:20}},s.a.createElement(K.a,{className:"font14",checked:Et!=null&&Et.length?Mt.length===(Et==null?void 0:Et.length):!1,onChange:function(xe){return Ca(xe.target.checked)}},"\u672C\u9875\u5168\u9009",s.a.createElement("span",{style:{color:"#999",fontSize:12}},"/\u5DF2\u9009(",Mt==null?void 0:Mt.length,")"))),s.a.createElement("div",{className:N.a.btns},s.a.createElement("div",{className:N.a.btn,onClick:aa}," ",s.a.createElement("i",{className:"iconfont icon-pilianggongxiang"}),"\u6279\u91CF\u5171\u4EAB"),s.a.createElement("div",{className:N.a.btn,onClick:Ta}," ",s.a.createElement("i",{className:"iconfont icon-pilianggongkai"}),"\u6279\u91CF\u516C\u5F00"),s.a.createElement("div",{className:N.a.btn,onClick:na}," ",s.a.createElement("i",{className:"iconfont icon-piliangshanchu3 c-red"}),"\u6279\u91CF\u5220\u9664"),s.a.createElement("div",{onClick:function(){return Mn([])},style:{marginLeft:"auto"},className:N.a.btn}," ",s.a.createElement("i",{className:"iconfont icon-piliangcaozuoicon2"}),"\u53D6\u6D88\u64CD\u4F5C")))))},ie=z.default=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.user,Oe=J.loading,we=J.globalSetting;return{paperlibrary:Q,user:se,globalSetting:we,loading:Oe.effects}})(me)},bT9E:function(Te,z,e){"use strict";e.d(z,"a",function(){return j});var w=e("VTBJ");function j(De,T){var o=Object(w.a)({},De);return Array.isArray(T)&&T.forEach(function(m){delete o[m]}),o}},bUJZ:function(Te,z){Te.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},biw7:function(Te,z,e){"use strict";var w=e("q1tI"),j=e.n(w),De=w.createContext(null);z.a=De},dmUQ:function(Te,z,e){"use strict";var w=e("Ff2n"),j=e("rePB"),De=e("1OyB"),T=e("vuIU"),o=e("Ji7U"),m=e("md7G"),D=e("foSv"),ae=e("q1tI"),h=e.n(ae),ce=e("TSYQ"),H=e.n(ce),de=e("4IlW");function be(u,M){var P=Object.keys(u);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(u);M&&(S=S.filter(function(i){return Object.getOwnPropertyDescriptor(u,i).enumerable})),P.push.apply(P,S)}return P}function Y(u){for(var M=1;M1?ve-1:0),Ie=1;Ie1?ue-1:0),N=1;N=0)return parseInt(X.slice(X.indexOf("e-")+2),10);var ue=0;return X.indexOf(".")>=0&&(ue=X.length-X.indexOf(".")-1),ue},i.getInputDisplayValue=function(x){var X=x||i.state,ue=X.focused,he=X.inputValue,N=X.value,_e;ue?_e=he:_e=i.toPrecisionAsStep(N),_e==null&&(_e="");var ve=i.formatWrapper(_e);return A(i.props.decimalSeparator)&&(ve=ve.toString().replace(".",i.props.decimalSeparator)),ve},i.recordCursorPosition=function(){try{i.cursorStart=i.input.selectionStart,i.cursorEnd=i.input.selectionEnd,i.currentValue=i.input.value,i.cursorBefore=i.input.value.substring(0,i.cursorStart),i.cursorAfter=i.input.value.substring(i.cursorEnd)}catch(x){}},i.restoreByAfter=function(x){if(x===void 0)return!1;var X=i.input.value,ue=X.lastIndexOf(x);if(ue===-1)return!1;var he=i.cursorBefore.length;return i.lastKeyCode===de.a.DELETE&&i.cursorBefore.charAt(he-1)===x[0]?(i.fixCaret(he,he),!0):ue+x.length===X.length?(i.fixCaret(ue,ue),!0):!1},i.partRestoreByAfter=function(x){return x===void 0?!1:Array.prototype.some.call(x,function(X,ue){var he=x.substring(ue);return i.restoreByAfter(he)})},i.isNotCompleteNumber=function(x){return isNaN(x)||x===""||x===null||x&&x.toString().indexOf(".")===x.toString().length-1},i.stop=function(){i.autoStepTimer&&clearTimeout(i.autoStepTimer)},i.down=function(x,X,ue){i.pressingUpOrDown=!0,i.step("down",x,X,ue)},i.up=function(x,X,ue){i.pressingUpOrDown=!0,i.step("up",x,X,ue)},i.saveInput=function(x){i.input=x};var b=S.value;b===void 0&&(b=S.defaultValue),i.state={focused:S.autoFocus};var s=i.getValidValue(i.toNumber(b));return i.state=Y(Y({},i.state),{},{inputValue:i.toPrecisionAsStep(s),value:s}),i}return Object(T.a)(P,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(i){var b=this.props,s=b.value,x=b.onChange,X=b.max,ue=b.min,he=this.state.focused;if(i){if(!U(i.value,s)||!U(i.max,X)||!U(i.min,ue)){var N=he?s:this.getValidValue(s),_e;this.pressingUpOrDown?_e=N:this.inputting?_e=this.rawInput:_e=this.toPrecisionAsStep(N),this.setState({value:N,inputValue:_e})}var ve="value"in this.props?s:this.state.value;"max"in this.props&&i.max!==X&&typeof ve=="number"&&ve>X&&x&&x(X),"min"in this.props&&i.min!==ue&&typeof ve=="number"&&ve1&&arguments[1]!==void 0?arguments[1]:this.props.min,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,x=parseFloat(i);return isNaN(x)?i:(xs&&(x=s),x)}},{key:"setValue",value:function(i,b){var s=this.props.precision,x=this.isNotCompleteNumber(parseFloat(i))?null:parseFloat(i),X=this.state.value,ue=X===void 0?null:X,he=this.state.inputValue,N=he===void 0?null:he,_e=typeof x=="number"?x.toFixed(s):"".concat(x),ve=x!==ue||_e!=="".concat(N);return"value"in this.props?(N=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:N},b)):this.setState({value:x,inputValue:this.toPrecisionAsStep(i)},b),ve&&this.props.onChange(x),x}},{key:"getMaxPrecision",value:function(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=this.props,x=s.precision,X=s.step;if(A(x))return x;var ue=this.getPrecision(b),he=this.getPrecision(X),N=this.getPrecision(i);return i?Math.max(N,ue+he):ue+he}},{key:"getPrecisionFactor",value:function(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=this.getMaxPrecision(i,b);return Math.pow(10,s)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(i){return this.props.formatter?this.props.formatter(i):i}},{key:"toPrecisionAsStep",value:function(i){if(this.isNotCompleteNumber(i)||i==="")return i;var b=Math.abs(this.getMaxPrecision(i));return isNaN(b)?i.toString():Number(i).toFixed(b)}},{key:"toNumber",value:function(i){var b=this.props.precision,s=this.state.focused,x=i&&i.length>16&&s;return this.isNotCompleteNumber(i)||x?i:A(b)?Math.round(i*Math.pow(10,b))/Math.pow(10,b):Number(i)}},{key:"upStep",value:function(i,b){var s=this.props.step,x=this.getPrecisionFactor(i,b),X=Math.abs(this.getMaxPrecision(i,b)),ue=((x*i+x*s*b)/x).toFixed(X);return this.toNumber(ue)}},{key:"downStep",value:function(i,b){var s=this.props.step,x=this.getPrecisionFactor(i,b),X=Math.abs(this.getMaxPrecision(i,b)),ue=((x*i-x*s*b)/x).toFixed(X);return this.toNumber(ue)}},{key:"step",value:function(i,b){var s=this,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,X=arguments.length>3?arguments[3]:void 0;this.stop(),b&&(b.persist(),b.preventDefault());var ue=this.props;if(ue.disabled)return;var he=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(he))return;var N=this["".concat(i,"Step")](he,x),_e=N>ue.max||Nue.max?N=ue.max:N=Ne),Re=(Ot||Ot===0)&&(isNaN(Ot)||Number(Ot)<=Ie),me=Ae||x||X,ie=Re||x||X,J=H()("".concat(s,"-handler"),"".concat(s,"-handler-up"),Object(j.a)({},"".concat(s,"-handler-up-disabled"),me)),Q=H()("".concat(s,"-handler"),"".concat(s,"-handler-down"),Object(j.a)({},"".concat(s,"-handler-down-disabled"),ie)),se=ue?{onTouchStart:me?L:this.up,onTouchEnd:this.stop}:{onMouseDown:me?L:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Oe=ue?{onTouchStart:ie?L:this.down,onTouchEnd:this.stop}:{onMouseDown:ie?L:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return h.a.createElement("div",{className:R,style:fe,title:le,onMouseEnter:Me,onMouseLeave:ge,onMouseOver:B,onMouseOut:G,onFocus:function(){return null},onBlur:function(){return null}},h.a.createElement("div",{className:"".concat(s,"-handler-wrap")},h.a.createElement("span",Object.assign({unselectable:"on"},se,{role:"button","aria-label":"Increase Value","aria-disabled":me,className:J}),N||h.a.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-up-inner"),onClick:k})),h.a.createElement("span",Object.assign({unselectable:"on"},Oe,{role:"button","aria-label":"Decrease Value","aria-disabled":ie,className:Q}),_e||h.a.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-down-inner"),onClick:k}))),h.a.createElement("div",{className:"".concat(s,"-input-wrap")},h.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ie,"aria-valuemax":Ne,"aria-valuenow":Ot,required:je,type:pe,placeholder:Fe,onPaste:Ze,onClick:Ke,onMouseUp:this.onMouseUp,className:"".concat(s,"-input"),tabIndex:re,autoComplete:he,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:oe?this.onKeyDown:L,onKeyUp:oe?this.onKeyUp:L,autoFocus:ze,maxLength:Qe,readOnly:X,disabled:x,max:Ne,min:Ie,step:ct,name:$,title:le,id:st,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Pe),pattern:$e,inputMode:Je,onInput:yt},ne))))}}]),P}(h.a.Component);F.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:Ee,min:-Ee,step:1,style:{},onChange:L,onKeyDown:L,onPressEnter:L,onFocus:L,onBlur:L,parser:V,required:!1,autoComplete:"off"};var v=F,C=z.a=v},fVvY:function(Te,z,e){Te.exports=e.p+"static/c.a56eeddf.svg"},fyJ8:function(Te,z,e){"use strict";var w=e("rePB"),j=e("VTBJ"),De=e("Ff2n"),T=e("U8pU"),o=e("q1tI"),m=e.n(o),D=e("TSYQ"),ae=e.n(D),h=e("c+Xe"),ce=e("sR1s");function H(y){return y&&Object(T.a)(y)==="object"&&!Array.isArray(y)&&!o.isValidElement(y)}function de(y){return typeof y=="string"?!0:Object(h.c)(y)}function be(y,L){var k,V=y.prefixCls,Z=y.className,K=y.record,Ee=y.index,A=y.dataIndex,U=y.render,F=y.children,v=y.component,C=v===void 0?"td":v,u=y.colSpan,M=y.rowSpan,P=y.fixLeft,S=y.fixRight,i=y.firstFixLeft,b=y.lastFixLeft,s=y.firstFixRight,x=y.lastFixRight,X=y.appendNode,ue=y.additionalProps,he=ue===void 0?{}:ue,N=y.ellipsis,_e=y.align,ve=y.rowType,Ne=y.isSticky,Ie="".concat(V,"-cell"),fe,le;if(F)le=F;else{var Me=Object(ce.b)(K,A);if(le=Me,U){var ge=U(Me,K,Ee);H(ge)?(le=ge.children,fe=ge.props):le=ge}}Object(T.a)(le)==="object"&&!Array.isArray(le)&&!o.isValidElement(le)&&(le=null),N&&(b||s)&&(le=o.createElement("span",{className:"".concat(Ie,"-content")},le));var B=fe||{},G=B.colSpan,je=B.rowSpan,Ke=B.style,re=B.className,pe=Object(De.a)(B,["colSpan","rowSpan","style","className"]),Fe=G!==void 0?G:u,st=je!==void 0?je:M;if(Fe===0||st===0)return null;var Je={},$e=typeof P=="number",ct=typeof S=="number";$e&&(Je.position="sticky",Je.left=P),ct&&(Je.position="sticky",Je.right=S);var Qe={};_e&&(Qe.textAlign=_e);var ze,$=N===!0?{showTitle:!0}:N;$&&($.showTitle||ve==="header")&&(typeof le=="string"||typeof le=="number"?ze=le.toString():o.isValidElement(le)&&typeof le.props.children=="string"&&(ze=le.props.children));var Ze=Object(j.a)(Object(j.a)(Object(j.a)({title:ze},pe),he),{},{colSpan:Fe&&Fe!==1?Fe:null,rowSpan:st&&st!==1?st:null,className:ae()(Ie,Z,(k={},Object(w.a)(k,"".concat(Ie,"-fix-left"),$e),Object(w.a)(k,"".concat(Ie,"-fix-left-first"),i),Object(w.a)(k,"".concat(Ie,"-fix-left-last"),b),Object(w.a)(k,"".concat(Ie,"-fix-right"),ct),Object(w.a)(k,"".concat(Ie,"-fix-right-first"),s),Object(w.a)(k,"".concat(Ie,"-fix-right-last"),x),Object(w.a)(k,"".concat(Ie,"-ellipsis"),N),Object(w.a)(k,"".concat(Ie,"-with-append"),X),Object(w.a)(k,"".concat(Ie,"-fix-sticky"),($e||ct)&&Ne),k),he.className,re),style:Object(j.a)(Object(j.a)(Object(j.a)(Object(j.a)({},he.style),Qe),Je),Ke),ref:de(C)?L:null});return o.createElement(C,Object.assign({},Ze),X,le)}var Y=o.forwardRef(be);Y.displayName="Cell";var _=o.memo(Y,function(y,L){return L.shouldCellUpdate?!L.shouldCellUpdate(L.record,y.record):!1});z.a=_},hW8S:function(Te,z,e){"use strict";e.d(z,"a",function(){return T}),e.d(z,"c",function(){return o}),e.d(z,"b",function(){return m});var w=e("VTBJ"),j=e("Ff2n"),De=e("Kwbf"),T="RC_TABLE_INTERNAL_COL_DEFINE";function o(D){var ae=D.expandable,h=Object(j.a)(D,["expandable"]);return"expandable"in D?Object(w.a)(Object(w.a)({},h),ae):h}function m(D){return Object.keys(D).reduce(function(ae,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-")&&(ae[h]=D[h]),ae},{})}},iris:function(Te,z,e){"use strict";e.d(z,"a",function(){return be});var w=e("qVdP"),j=e("jsC+"),De=e("lUTK"),T=e("BvKs"),o=e("tJVT"),m=e("q1tI"),D=e.n(m),ae=e("Q0Vu"),h=e.n(ae),ce=[{name:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{name:"\u5355\u9009\u9898",value:"SINGLE"},{name:"\u591A\u9009\u9898",value:"MULTIPLE"},{name:"\u5224\u65AD\u9898",value:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",value:"COMPLETION"},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{name:"\u7EC4\u5408\u9898",value:"COMBINATION"}],H=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],de=[{name:"\u968F\u673A\u7EC4\u5377",value:1},{name:"\u4EBA\u5DE5\u7EC4\u5377",value:2}],be=function(_){var y=_.showSelectAll,L=y===void 0?!1:y,k=_.disciplinesData,V=k===void 0?[]:k,Z=_.knowledgeData,K=Z===void 0?[]:Z,Ee=_.directionValue,A=_.subDisciplineValue,U=_.typeValue,F=_.knowledgeValue,v=_.showKnowledge,C=v===void 0?!1:v,u=_.showRandomType,M=u===void 0?!1:u,P=_.difficultyValue,S=_.randomValue,i=_.selectAll,b=_.className,s=_.showShixun,x=s===void 0?!1:s,X=_.showItemType,ue=X===void 0?!0:X,he=_.onShixunChange,N=he===void 0?function(){}:he,_e=_.onDirectionChange,ve=_e===void 0?function(){}:_e,Ne=_.onTypeChange,Ie=Ne===void 0?function(){}:Ne,fe=_.onDifficultyChange,le=fe===void 0?function(){}:fe,Me=_.onKnowledgeChange,ge=Me===void 0?function(){}:Me,B=_.onRandomChange,G=B===void 0?function(){}:B,je=Object(m.useState)(0),Ke=Object(o.a)(je,2),re=Ke[0],pe=Ke[1],Fe=Object(m.useRef)(null),st=Object(m.useState)(0),Je=Object(o.a)(st,2),$e=Je[0],ct=Je[1],Qe=Object(m.useRef)(null);Object(m.useEffect)(function(){if(V.length!==0){var $;(Fe==null||(($=Fe.current)===null||$===void 0)?void 0:$.clientHeight)>90?pe(1):pe(0)}V.length===0&&pe(0)},[V]),Object(m.useEffect)(function(){if(console.log(K.length===0,"\u6570\u91CF"),K.length!==0){var $,Ze;console.log(Qe==null||(($=Qe.current)===null||$===void 0)?void 0:$.clientHeight,"\u9AD8\u5EA6"),(Qe==null||((Ze=Qe.current)===null||Ze===void 0)?void 0:Ze.clientHeight)>90?ct(1):ct(0)}K.length===0&&ct(0)},[K]);var ze=function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],yt=arguments.length>1?arguments[1]:void 0;return D.a.createElement(T.a,{className:h.a.subMenu},Ze.map(function(_t){return D.a.createElement(T.a.Item,{key:_t.id},D.a.createElement("a",{className:"".concat(h.a.subItem," ").concat(A===_t.id?h.a.subActive:""),onClick:function(){return ve(yt,_t.id)}},_t.name))}))};return D.a.createElement("aside",{className:b?"".concat(h.a.main," ").concat(b):h.a.main},D.a.createElement("div",{className:h.a.wrap},D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u65B9\u5411:"),D.a.createElement("span",null,D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee?"":h.a.active," "),onClick:function(){return ve(null)}},"\u5168\u90E8")),D.a.createElement("div",{className:h.a.directionContentWrap,style:{overflow:"hidden",height:re===1?88:"auto"}},V.map(function($){var Ze;return D.a.createElement(D.a.Fragment,{key:$.id},((Ze=$.sub_disciplines)===null||Ze===void 0?void 0:Ze.length)>0?D.a.createElement(j.a,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(_t){return _t.parentNode},overlay:function(){return ze($.sub_disciplines,$.id)}},D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name)):D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name))})),D.a.createElement("div",{className:h.a.directionContentWrap,ref:Fe,style:{height:"auto",position:"fixed",left:0,top:0,width:1024,visibility:"hidden"}},V.map(function($){var Ze;return D.a.createElement(D.a.Fragment,{key:$.id},((Ze=$.sub_disciplines)===null||Ze===void 0?void 0:Ze.length)>0?D.a.createElement(j.a,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(_t){return _t.parentNode},overlay:function(){return ze($.sub_disciplines,$.id)}},D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name)):D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name))})),!!re&&D.a.createElement("div",{className:h.a.action},re===1&&D.a.createElement("span",{onClick:function(){return pe(2)}},"\u5C55\u5F00",D.a.createElement("i",{className:"iconfont icon-xiala"})),re===2&&D.a.createElement("span",{onClick:function(){return pe(1)}},"\u6536\u8D77",D.a.createElement("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})))),C&&D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u77E5\u8BC6\u70B9:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(F===-1?h.a.active:""," "),onClick:function(){return ge(-1)}},"\u6211\u7684"),D.a.createElement("div",{className:h.a.directionContentWrap,style:{overflow:"hidden",height:$e===1?88:"auto"}},K.map(function($){return D.a.createElement("li",{key:$.id,className:"".concat(h.a.directionItem," ").concat(F===$.id?h.a.active:""," "),onClick:function(){return ge($.id)}},$.name)})),D.a.createElement("div",{ref:Qe,className:h.a.directionContentWrap,style:{height:"auto",position:"fixed",left:0,top:0,width:1010,visibility:"hidden"}},K.map(function($){return D.a.createElement("li",{key:$.id,className:"".concat(h.a.directionItem," ").concat(F===$.id?h.a.active:""," "),onClick:function(){return ge($.id)}},$.name)})),!!$e&&D.a.createElement("div",{className:h.a.action},$e===1&&D.a.createElement("span",{onClick:function(){return ct(2)}},"\u5C55\u5F00",D.a.createElement("i",{className:"iconfont icon-xiala"})),$e===2&&D.a.createElement("span",{onClick:function(){return ct(1)}},"\u6536\u8D77",D.a.createElement("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})))),ue&&D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u9898\u578B:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(U?"":h.a.active," "),onClick:function(){return Ie(null)}},"\u5168\u90E8"),D.a.createElement("div",{className:h.a.directionContentWrap},ce.map(function($){return D.a.createElement("li",{key:$.name,className:"".concat(h.a.directionItem," ").concat(U===$.value?h.a.active:""," "),onClick:function(){return Ie($.value)}},$.name)}),x&&D.a.createElement("li",{key:"\u5B9E\u8BAD\u9898",className:h.a.directionItem,onClick:function(){return N()}},"\u5B9E\u8BAD\u9898"))),D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u96BE\u5EA6:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(P?"":h.a.active," "),onClick:function(){return le(null)}},"\u5168\u90E8"),D.a.createElement("div",{className:h.a.directionContentWrap},H.map(function($){return D.a.createElement("li",{key:$.name,className:"".concat(h.a.directionItem," ").concat(P===$.value?h.a.active:""," "),onClick:function(){return le($.value)}},$.name)}))),M&&D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u7C7B\u578B:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(S?"":h.a.active," "),onClick:function(){return G(null)}},"\u5168\u90E8"),D.a.createElement("div",{className:h.a.directionContentWrap},de.map(function($){return D.a.createElement("li",{key:$.name,className:"".concat(h.a.directionItem," ").concat(S===$.value?h.a.active:""," "),onClick:function(){return G($.value)}},$.name)})))))}},k3GJ:function(Te,z,e){"use strict";e.d(z,"a",function(){return po});var w=e("rePB"),j=e("ODXe"),De=e("Ff2n"),T=e("VTBJ"),o=e("q1tI"),m=e("TSYQ"),D=e.n(m),ae=e("Zm9Q"),h=e("6cGi"),ce=e("KQm4"),H=e("xEkU"),de=e.n(H),be=e("t23M");function Y(r){var f=Object(o.useRef)(),E=Object(o.useRef)(!1);function c(){for(var t=arguments.length,a=new Array(t),n=0;nO&&(q=O-ee),Object(o.useMemo)(function(){if(!a.length)return[0,0];for(var Ce=a.length,Xe=Ce,lt=0;ltp+q){Xe=lt-1;break}}for(var ft=0,ut=Ce-1;ut>=0;ut-=1){var rt=r.get(a[ut].key)||K;if(rt[g]1&&arguments[1]!==void 0?arguments[1]:!1,c=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(c){if(E){var t=getComputedStyle(f),a=t.marginLeft,n=t.marginRight;c+=+a.replace("px","")+ +n.replace("px","")}c=+c.toFixed(6)}return c||0},ze=function(f,E,c){f&&Object(s.a)(f.style)==="object"&&(f.style[E]=c)},$=function(){return re.any},Ze=e("bdgK"),yt=e("i8i4"),_t=e.n(yt),Nt=e("wgJM"),Ot=e("l4aY"),sn=e("m+aA"),R=e("c+Xe"),ne=e("zT1h"),oe=e("QC+M");function Pe(r,f,E){return E?r[0]===f[0]:r[0]===f[0]&&r[1]===f[1]}function Ae(r,f,E){var c=r[f]||{};return Object(T.a)(Object(T.a)({},c),E)}function Re(r,f,E,c){for(var t=E.points,a=Object.keys(r),n=0;n1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(Nt.a)(function(){t<=1?c({isCanceled:function(){return a!==r.current}}):E(c,t-1)});r.current=a}return o.useEffect(function(){return function(){f()}},[]),[E,f]},mn=[ot,xt,pt,W],On=!1,an=!0;function Et(r){return r===pt||r===W}var Qt=function(r,f){var E=o.useState(Bt),c=Object(j.a)(E,2),t=c[0],a=c[1],n=Pt(),l=Object(j.a)(n,2),d=l[0],g=l[1];function p(){a(ot)}return kt(function(){if(t!==Bt&&t!==W){var O=mn.indexOf(t),I=mn[O+1],ee=f(t);ee===On?a(I):d(function(q){function Ce(){if(q.isCanceled())return;a(I)}ee===!0?Ce():Promise.resolve(ee).then(Ce)})}},[r,t]),o.useEffect(function(){return function(){g()}},[]),[p,t]},Pn=function(r){var f=Object(o.useRef)(),E=Object(o.useRef)(r);E.current=r;var c=o.useCallback(function(n){E.current(n)},[]);function t(n){n&&(n.removeEventListener(mt,c),n.removeEventListener(te,c))}function a(n){f.current&&f.current!==n&&t(f.current),n&&n!==f.current&&(n.addEventListener(mt,c),n.addEventListener(te,c),f.current=n)}return o.useEffect(function(){return function(){t(f.current)}},[]),[a,t]};function zt(r,f,E,c){var t=c.motionEnter,a=t===void 0?!0:t,n=c.motionAppear,l=n===void 0?!0:n,d=c.motionLeave,g=d===void 0?!0:d,p=c.motionDeadline,O=c.motionLeaveImmediately,I=c.onAppearPrepare,ee=c.onEnterPrepare,q=c.onLeavePrepare,Ce=c.onAppearStart,Xe=c.onEnterStart,lt=c.onLeaveStart,qe=c.onAppearActive,ft=c.onEnterActive,ut=c.onLeaveActive,rt=c.onAppearEnd,it=c.onEnterEnd,St=c.onLeaveEnd,ht=c.onVisibleChanged,qt=at(),Lt=Object(j.a)(qt,2),We=Lt[0],Be=Lt[1],gt=at(He),jt=Object(j.a)(gt,2),Ue=jt[0],Tt=jt[1],Gt=at(null),Dt=Object(j.a)(Gt,2),It=Dt[0],Yt=Dt[1],hn=Object(o.useRef)(!1),Ln=Object(o.useRef)(null),tn=Object(o.useRef)(!1),Un=Object(o.useRef)(null);function ea(){var $t=E();return $t||Un.current}var zn=Object(o.useRef)(!1);function Wn($t){var wt=ea();if($t&&!$t.deadline&&$t.target!==wt)return;var bn;Ue===bt&&zn.current?bn=rt==null?void 0:rt(wt,$t):Ue===dt&&zn.current?bn=it==null?void 0:it(wt,$t):Ue===nt&&zn.current&&(bn=St==null?void 0:St(wt,$t)),bn!==!1&&!tn.current&&(Tt(He),Yt(null))}var nn=Pn(Wn),jn=Object(j.a)(nn,1),vn=jn[0],dn=o.useMemo(function(){var $t,wt,bn;switch(Ue){case"appear":return $t={},Object(w.a)($t,ot,I),Object(w.a)($t,xt,Ce),Object(w.a)($t,pt,qe),$t;case"enter":return wt={},Object(w.a)(wt,ot,ee),Object(w.a)(wt,xt,Xe),Object(w.a)(wt,pt,ft),wt;case"leave":return bn={},Object(w.a)(bn,ot,q),Object(w.a)(bn,xt,lt),Object(w.a)(bn,pt,ut),bn;default:return{}}},[Ue]),ma=Qt(Ue,function($t){if($t===ot){var wt=dn[ot];return wt?wt(ea()):On}if(Vt in dn){var bn;Yt(((bn=dn[Vt])===null||bn===void 0?void 0:bn.call(dn,ea(),null))||null)}return Vt===pt&&(vn(ea()),p>0&&(clearTimeout(Ln.current),Ln.current=setTimeout(function(){Wn({deadline:!0})},p))),an}),pa=Object(j.a)(ma,2),xa=pa[0],Vt=pa[1],ra=Et(Vt);zn.current=ra,kt(function(){Be(f);var $t=hn.current;if(hn.current=!0,!r)return;var wt;!$t&&f&&l&&(wt=bt),$t&&f&&a&&(wt=dt),($t&&!f&&g||!$t&&O&&!f&&g)&&(wt=nt),wt&&(Tt(wt),xa())},[f]),Object(o.useEffect)(function(){(Ue===bt&&!l||Ue===dt&&!a||Ue===nt&&!g)&&Tt(He)},[l,a,g]),Object(o.useEffect)(function(){return function(){clearTimeout(Ln.current),tn.current=!0}},[]),Object(o.useEffect)(function(){We!==void 0&&Ue===He&&(ht==null||ht(We))},[We,Ue]);var Ma=It;return dn[ot]&&Vt===xt&&(Ma=Object(T.a)({transition:"none"},Ma)),[Ue,Vt,Ma,We!=null?We:f]}var en=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){return Object(U.a)(this,E),f.apply(this,arguments)}return Object(F.a)(E,[{key:"render",value:function(){return this.props.children}}]),E}(o.Component),Jt=en;function Sn(r){var f=r;Object(s.a)(r)==="object"&&(f=r.transitionSupport);function E(t){return!!(t.motionName&&f)}var c=o.forwardRef(function(t,a){var n=t.visible,l=n===void 0?!0:n,d=t.removeOnLeave,g=d===void 0?!0:d,p=t.forceRender,O=t.children,I=t.motionName,ee=t.leavedClassName,q=t.eventProps,Ce=E(t),Xe=Object(o.useRef)(),lt=Object(o.useRef)();function qe(){try{return Object(sn.a)(Xe.current||lt.current)}catch(Tt){return null}}var ft=zt(Ce,l,qe,t),ut=Object(j.a)(ft,4),rt=ut[0],it=ut[1],St=ut[2],ht=ut[3],qt=o.useRef(ht);ht&&(qt.current=!0);var Lt=Object(o.useRef)(a);Lt.current=a;var We=o.useCallback(function(Tt){Xe.current=Tt,Object(R.b)(Lt.current,Tt)},[]),Be,gt=Object(T.a)(Object(T.a)({},q),{},{visible:l});if(!O)Be=null;else if(rt===He||!E(t))ht?Be=O(Object(T.a)({},gt),We):!g&&qt.current?Be=O(Object(T.a)(Object(T.a)({},gt),{},{className:ee}),We):p?Be=O(Object(T.a)(Object(T.a)({},gt),{},{style:{display:"none"}}),We):Be=null;else{var jt,Ue;it===ot?Ue="prepare":Et(it)?Ue="active":it===xt&&(Ue="start"),Be=O(Object(T.a)(Object(T.a)({},gt),{},{className:D()(vt(I,rt),(jt={},Object(w.a)(jt,vt(I,"".concat(rt,"-").concat(Ue)),Ue),Object(w.a)(jt,I,typeof I=="string"),jt)),style:St}),We)}return o.createElement(Jt,{ref:lt},Be)});return c.displayName="CSSMotion",c}var Tn=Sn(Ye),En="add",Hn="keep",In="remove",Xn="removed";function kn(r){var f;return r&&Object(s.a)(r)==="object"&&"key"in r?f=r:f={key:r},Object(T.a)(Object(T.a)({},f),{},{key:String(f.key)})}function Gn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(kn)}function on(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],E=[],c=0,t=f.length,a=Gn(r),n=Gn(f);a.forEach(function(g){for(var p=!1,O=c;O1});return d.forEach(function(g){E=E.filter(function(p){var O=p.key,I=p.status;return O!==g||I!==In}),E.forEach(function(p){p.key===g&&(p.status=Hn)})}),E}var ln=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Zt(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tn,E=function(c){Object(C.a)(a,c);var t=Object(u.a)(a);function a(){var n;return Object(U.a)(this,a),n=t.apply(this,arguments),n.state={keyEntities:[]},n.removeKey=function(l){n.setState(function(d){var g=d.keyEntities;return{keyEntities:g.map(function(p){return p.key!==l?p:Object(T.a)(Object(T.a)({},p),{},{status:Xn})})}})},n}return Object(F.a)(a,[{key:"render",value:function(){var l=this,d=this.state.keyEntities,g=this.props,p=g.component,O=g.children,I=g.onVisibleChanged,ee=Object(De.a)(g,["component","children","onVisibleChanged"]),q=p||o.Fragment,Ce={};return ln.forEach(function(Xe){Ce[Xe]=ee[Xe],delete ee[Xe]}),delete ee.keys,o.createElement(q,ee,d.map(function(Xe){var lt=Xe.status,qe=Object(De.a)(Xe,["status"]),ft=lt===En||lt===Hn;return o.createElement(f,Object(A.a)({},Ce,{key:qe.key,visible:ft,eventProps:qe,onVisibleChanged:function(rt){I==null||I(rt,{key:qe.key}),rt||l.removeKey(qe.key)}}),O)}))}}],[{key:"getDerivedStateFromProps",value:function(l,d){var g=l.keys,p=d.keyEntities,O=Gn(g),I=on(p,O);return{keyEntities:I.filter(function(ee){var q=p.find(function(Ce){var Xe=Ce.key;return ee.key===Xe});return!(q&&q.status===Xn&&ee.status===In)})}}}]),a}(o.Component);return E.defaultProps={component:"div"},E}var un=Zt(Ye),gn=Tn;function xn(r){var f=r.prefixCls,E=r.motion,c=r.animation,t=r.transitionName;return E||(c?{motionName:"".concat(f,"-").concat(c)}:t?{motionName:t}:null)}function Mt(r){var f=r.prefixCls,E=r.visible,c=r.zIndex,t=r.mask,a=r.maskMotion,n=r.maskAnimation,l=r.maskTransitionName;if(!t)return null;var d={};return(a||l||n)&&(d=Object(T.a)({motionAppear:!0},xn({motion:a,prefixCls:f,transitionName:l,animation:n}))),o.createElement(gn,Object(A.a)({},d,{visible:E,removeOnLeave:!0}),function(g){var p=g.className;return o.createElement("div",{style:{zIndex:c},className:D()("".concat(f,"-mask"),p)})})}var Mn=e("9mu1"),Dn=e("o0o1"),pn=e.n(Dn),Ra=e("HaE+"),ta=["measure","align",null,"motion"],Wt=function(r,f){var E=Object(o.useState)(null),c=Object(j.a)(E,2),t=c[0],a=c[1],n=Object(o.useRef)(),l=Object(o.useRef)(!1);function d(O){l.current||a(O)}function g(){Nt.a.cancel(n.current)}function p(O){g(),n.current=Object(Nt.a)(function(){d(function(I){switch(t){case"align":return"motion";case"motion":return"stable";default:}return I}),O==null||O()})}return Object(o.useEffect)(function(){d("measure")},[r]),Object(o.useEffect)(function(){switch(t){case"measure":f();break;default:}t&&(n.current=Object(Nt.a)(Object(Ra.a)(pn.a.mark(function O(){var I,ee;return pn.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:I=ta.indexOf(t),ee=ta[I+1],ee&&I!==-1&&d(ee);case 3:case"end":return Ce.stop()}},O)}))))},[t]),Object(o.useEffect)(function(){return function(){l.current=!0,g()}},[]),[t,p]},ia=function(r){var f=o.useState({width:0,height:0}),E=Object(j.a)(f,2),c=E[0],t=E[1];function a(l){t({width:l.offsetWidth,height:l.offsetHeight})}var n=o.useMemo(function(){var l={};if(r){var d=c.width,g=c.height;r.indexOf("height")!==-1&&g?l.height=g:r.indexOf("minHeight")!==-1&&g&&(l.minHeight=g),r.indexOf("width")!==-1&&d?l.width=d:r.indexOf("minWidth")!==-1&&d&&(l.minWidth=d)}return l},[r,c]);return[n,a]},Qn=o.forwardRef(function(r,f){var E=r.visible,c=r.prefixCls,t=r.className,a=r.style,n=r.children,l=r.zIndex,d=r.stretch,g=r.destroyPopupOnHide,p=r.forceRender,O=r.align,I=r.point,ee=r.getRootDomNode,q=r.getClassNameFromAlign,Ce=r.onAlign,Xe=r.onMouseEnter,lt=r.onMouseLeave,qe=r.onMouseDown,ft=r.onTouchStart,ut=Object(o.useRef)(),rt=Object(o.useRef)(),it=Object(o.useState)(),St=Object(j.a)(it,2),ht=St[0],qt=St[1],Lt=ia(d),We=Object(j.a)(Lt,2),Be=We[0],gt=We[1];function jt(){d&>(ee())}var Ue=Wt(E,jt),Tt=Object(j.a)(Ue,2),Gt=Tt[0],Dt=Tt[1],It=Object(o.useRef)();function Yt(){return I||ee}function hn(){var nn;(nn=ut.current)===null||nn===void 0||nn.forceAlign()}function Ln(nn,jn){var vn=q(jn);ht!==vn&&qt(vn),Gt==="align"&&(ht!==vn?Promise.resolve().then(function(){hn()}):Dt(function(){var dn;(dn=It.current)===null||dn===void 0||dn.call(It)}),Ce==null||Ce(nn,jn))}var tn=Object(T.a)({},xn(r));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(nn){var jn=tn[nn];tn[nn]=function(vn,dn){return Dt(),jn==null?void 0:jn(vn,dn)}});function Un(){return new Promise(function(nn){It.current=nn})}o.useEffect(function(){!tn.motionName&&Gt==="motion"&&Dt()},[tn.motionName,Gt]),o.useImperativeHandle(f,function(){return{forceAlign:hn,getElement:function(){return rt.current}}});var ea=Object(T.a)(Object(T.a)({},Be),{},{zIndex:l,opacity:Gt==="motion"||Gt==="stable"||!E?void 0:0,pointerEvents:Gt==="stable"?void 0:"none"},a),zn=!0;(O==null?void 0:O.points)&&(Gt==="align"||Gt==="stable")&&(zn=!1);var Wn=n;return o.Children.count(n)>1&&(Wn=o.createElement("div",{className:"".concat(c,"-content")},n)),o.createElement(gn,Object(A.a)({visible:E,ref:rt,leavedClassName:"".concat(c,"-hidden")},tn,{onAppearPrepare:Un,onEnterPrepare:Un,removeOnLeave:g,forceRender:p}),function(nn,jn){var vn=nn.className,dn=nn.style,ma=D()(c,t,ht,vn);return o.createElement(Mn.a,{target:Yt(),key:"popup",ref:ut,monitorWindowResize:!0,disabled:zn,align:O,onAlign:Ln},o.createElement("div",{ref:jn,className:ma,onMouseEnter:Xe,onMouseLeave:lt,onMouseDownCapture:qe,onTouchStartCapture:ft,style:Object(T.a)(Object(T.a)({},dn),ea)},Wn))})});Qn.displayName="PopupInner";var va=Qn,An=o.forwardRef(function(r,f){var E=r.prefixCls,c=r.visible,t=r.zIndex,a=r.children,n=r.mobile;n=n===void 0?{}:n;var l=n.popupClassName,d=n.popupStyle,g=n.popupMotion,p=g===void 0?{}:g,O=n.popupRender,I=o.useRef();o.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return I.current}}});var ee=Object(T.a)({zIndex:t},d),q=a;return o.Children.count(a)>1&&(q=o.createElement("div",{className:"".concat(E,"-content")},a)),O&&(q=O(q)),o.createElement(gn,Object(A.a)({visible:c,ref:I,removeOnLeave:!0},p),function(Ce,Xe){var lt=Ce.className,qe=Ce.style,ft=D()(E,l,lt);return o.createElement("div",{ref:Xe,className:ft,style:Object(T.a)(Object(T.a)({},qe),ee)},q)})});An.displayName="MobilePopupInner";var Cn=An,$n=["visible","mobile"],ba=o.forwardRef(function(r,f){var E=r.visible,c=r.mobile,t=Object(De.a)(r,$n),a=Object(o.useState)(E),n=Object(j.a)(a,2),l=n[0],d=n[1],g=Object(o.useState)(!1),p=Object(j.a)(g,2),O=p[0],I=p[1],ee=Object(T.a)(Object(T.a)({},t),{},{visible:l});Object(o.useEffect)(function(){d(E),E&&c&&I(me())},[E,c]);var q=O?o.createElement(Cn,Object(A.a)({},ee,{mobile:c,ref:f})):o.createElement(va,Object(A.a)({},ee,{ref:f}));return o.createElement("div",null,o.createElement(Mt,ee),q)});ba.displayName="Popup";var Fa=ba,Ka=o.createContext(null),Ea=Ka;function sa(){}function Ba(){return""}function za(r){return r?r.ownerDocument:window.document}var ja=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Pa(r){var f=function(E){Object(C.a)(t,E);var c=Object(u.a)(t);function t(a){var n;Object(U.a)(this,t),n=c.call(this,a),n.popupRef=o.createRef(),n.triggerRef=o.createRef(),n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(d){var g=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",d),n.delaySetPopupVisible(!0,g,g?null:d)},n.onMouseMove=function(d){n.fireEvents("onMouseMove",d),n.setPoint(d)},n.onMouseLeave=function(d){n.fireEvents("onMouseLeave",d),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(d){var g;if(d.relatedTarget&&!d.relatedTarget.setTimeout&&Object(Ot.a)((g=n.popupRef.current)===null||g===void 0?void 0:g.getElement(),d.relatedTarget))return;n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(d){n.fireEvents("onFocus",d),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(d){n.fireEvents("onMouseDown",d),n.preClickTime=Date.now()},n.onTouchStart=function(d){n.fireEvents("onTouchStart",d),n.preTouchTime=Date.now()},n.onBlur=function(d){n.fireEvents("onBlur",d),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(d){d.preventDefault(),n.fireEvents("onContextMenu",d),n.setPopupVisible(!0,d)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(d){if(n.fireEvents("onClick",d),n.focusTime){var g;if(n.preClickTime&&n.preTouchTime?g=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?g=n.preClickTime:n.preTouchTime&&(g=n.preTouchTime),Math.abs(g-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&d&&d.preventDefault&&d.preventDefault();var p=!n.state.popupVisible;(n.isClickToHide()&&!p||p&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,d)},n.onPopupMouseDown=function(){if(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout(function(){n.hasPopupMouseDown=!1},0),n.context){var d;(d=n.context).onPopupMouseDown.apply(d,arguments)}},n.onDocumentClick=function(d){if(n.props.mask&&!n.props.maskClosable)return;var g=d.target,p=n.getRootDomNode(),O=n.getPopupDomNode();(!Object(Ot.a)(p,g)||n.isContextMenuOnly())&&!Object(Ot.a)(O,g)&&!n.hasPopupMouseDown&&n.close()},n.getRootDomNode=function(){var d=n.props.getTriggerDOMNode;if(d)return d(n.triggerRef.current);try{var g=Object(sn.a)(n.triggerRef.current);if(g)return g}catch(p){}return _t.a.findDOMNode(Object(v.a)(n))},n.getPopupClassNameFromAlign=function(d){var g=[],p=n.props,O=p.popupPlacement,I=p.builtinPlacements,ee=p.prefixCls,q=p.alignPoint,Ce=p.getPopupClassNameFromAlign;return O&&I&&g.push(Re(I,ee,d,q)),Ce&&g.push(Ce(d)),g.join(" ")},n.getComponent=function(){var d=n.props,g=d.prefixCls,p=d.destroyPopupOnHide,O=d.popupClassName,I=d.onPopupAlign,ee=d.popupMotion,q=d.popupAnimation,Ce=d.popupTransitionName,Xe=d.popupStyle,lt=d.mask,qe=d.maskAnimation,ft=d.maskTransitionName,ut=d.maskMotion,rt=d.zIndex,it=d.popup,St=d.stretch,ht=d.alignPoint,qt=d.mobile,Lt=d.forceRender,We=n.state,Be=We.popupVisible,gt=We.point,jt=n.getPopupAlign(),Ue={};return n.isMouseEnterToShow()&&(Ue.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(Ue.onMouseLeave=n.onPopupMouseLeave),Ue.onMouseDown=n.onPopupMouseDown,Ue.onTouchStart=n.onPopupMouseDown,o.createElement(Fa,Object(A.a)({prefixCls:g,destroyPopupOnHide:p,visible:Be,point:ht&>,className:O,align:jt,onAlign:I,animation:q,getClassNameFromAlign:n.getPopupClassNameFromAlign},Ue,{stretch:St,getRootDomNode:n.getRootDomNode,style:Xe,mask:lt,zIndex:rt,transitionName:Ce,maskAnimation:qe,maskTransitionName:ft,maskMotion:ut,ref:n.popupRef,motion:ee,mobile:qt,forceRender:Lt}),typeof it=="function"?it():it)},n.attachParent=function(d){Nt.a.cancel(n.attachId);var g=n.props,p=g.getPopupContainer,O=g.getDocument,I=n.getRootDomNode(),ee;p?(I||p.length===0)&&(ee=p(I)):ee=O(n.getRootDomNode()).body,ee?ee.appendChild(d):n.attachId=Object(Nt.a)(function(){n.attachParent(d)})},n.getContainer=function(){var d=n.props.getDocument,g=d(n.getRootDomNode()).createElement("div");return g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.width="100%",n.attachParent(g),g},n.setPoint=function(d){var g=n.props.alignPoint;if(!g||!d)return;n.setState({point:{pageX:d.pageX,pageY:d.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown};var l;return"popupVisible"in a?l=!!a.popupVisible:l=!!a.defaultPopupVisible,n.state={prevPopupVisible:l,popupVisible:l},ja.forEach(function(d){n["fire".concat(d)]=function(g){n.fireEvents(d,g)}}),n}return Object(F.a)(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var n=this.props,l=this.state;if(l.popupVisible){var d;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(d=n.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ne.a)(d,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(d=d||n.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ne.a)(d,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(d=d||n.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ne.a)(d,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ne.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Nt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var n;return((n=this.popupRef.current)===null||n===void 0?void 0:n.getElement())||null}},{key:"getPopupAlign",value:function(){var n=this.props,l=n.popupPlacement,d=n.popupAlign,g=n.builtinPlacements;return l&&g?Ae(g,l,d):d}},{key:"setPopupVisible",value:function(n,l){var d=this.props.alignPoint,g=this.state.popupVisible;this.clearDelayTimer(),g!==n&&("popupVisible"in this.props||this.setState({popupVisible:n,prevPopupVisible:g}),this.props.onPopupVisibleChange(n)),d&&l&&n&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(n,l,d){var g=this,p=l*1e3;if(this.clearDelayTimer(),p){var O=d?{pageX:d.pageX,pageY:d.pageY}:null;this.delayTimer=window.setTimeout(function(){g.setPopupVisible(n,O),g.clearDelayTimer()},p)}else this.setPopupVisible(n,d)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(n){var l=this.props.children.props,d=this.props;return l[n]&&d[n]?this["fire".concat(n)]:l[n]||d[n]}},{key:"isClickToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("click")!==-1||d.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var n=this.props.action;return n==="contextMenu"||n.length===1&&n[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("contextMenu")!==-1||d.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var n=this.props,l=n.action,d=n.hideAction;return l.indexOf("click")!==-1||d.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("hover")!==-1||d.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var n=this.props,l=n.action,d=n.hideAction;return l.indexOf("hover")!==-1||d.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("focus")!==-1||d.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var n=this.props,l=n.action,d=n.hideAction;return l.indexOf("focus")!==-1||d.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var n;(n=this.popupRef.current)===null||n===void 0||n.forceAlign()}}},{key:"fireEvents",value:function(n,l){var d=this.props.children.props[n];d&&d(l);var g=this.props[n];g&&g(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,l=this.props,d=l.children,g=l.forceRender,p=l.alignPoint,O=l.className,I=l.autoDestroy,ee=o.Children.only(d),q={key:"trigger"};this.isContextMenuToShow()?q.onContextMenu=this.onContextMenu:q.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(q.onClick=this.onClick,q.onMouseDown=this.onMouseDown,q.onTouchStart=this.onTouchStart):(q.onClick=this.createTwoChains("onClick"),q.onMouseDown=this.createTwoChains("onMouseDown"),q.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(q.onMouseEnter=this.onMouseEnter,p&&(q.onMouseMove=this.onMouseMove)):q.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?q.onMouseLeave=this.onMouseLeave:q.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(q.onFocus=this.onFocus,q.onBlur=this.onBlur):(q.onFocus=this.createTwoChains("onFocus"),q.onBlur=this.createTwoChains("onBlur"));var Ce=D()(ee&&ee.props&&ee.props.className,O);Ce&&(q.className=Ce);var Xe=Object(T.a)({},q);Object(R.c)(ee)&&(Xe.ref=Object(R.a)(this.triggerRef,ee.ref));var lt=o.cloneElement(ee,Xe),qe;return(n||this.popupRef.current||g)&&(qe=o.createElement(r,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&I&&(qe=null),o.createElement(Ea.Provider,{value:this.triggerContextValue},lt,qe)}}],[{key:"getDerivedStateFromProps",value:function(n,l){var d=n.popupVisible,g={};return d!==void 0&&l.popupVisible!==d&&(g.popupVisible=d,g.prevPopupVisible=l.popupVisible),g}}]),t}(o.Component);return f.contextType=Ea,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ba,getDocument:za,onPopupVisibleChange:sa,afterPopupVisibleChange:sa,onPopupAlign:sa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var Za=Pa(oe.a),Fn={adjustX:1,adjustY:1},la={topLeft:{points:["bl","tl"],overflow:Fn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Fn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Fn,offset:[4,0]}},Sa={topLeft:{points:["bl","tl"],overflow:Fn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Fn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Fn,offset:[4,0]}},ga=la,yn=0,Nn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},wn=function(f,E,c){var t=st(E),a=f.getState();f.setState({defaultActiveFirst:Object(T.a)(Object(T.a)({},a.defaultActiveFirst),{},Object(w.a)({},t,c))})},Ca=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(c){var t;Object(U.a)(this,E),t=f.call(this,c),t.onDestroy=function(p){t.props.onDestroy(p)},t.onKeyDown=function(p){var O=p.keyCode,I=t.menuInstance,ee=t.props.store,q=t.getVisible();if(O===y.a.ENTER)return t.onTitleClick(p),wn(ee,t.props.eventKey,!0),!0;if(O===y.a.RIGHT)return q?I.onKeyDown(p):(t.triggerOpenChange(!0),wn(ee,t.props.eventKey,!0)),!0;if(O===y.a.LEFT){var Ce;if(q)Ce=I.onKeyDown(p);else return;return Ce||(t.triggerOpenChange(!1),Ce=!0),Ce}return q&&(O===y.a.UP||O===y.a.DOWN)?I.onKeyDown(p):void 0},t.onOpenChange=function(p){t.props.onOpenChange(p)},t.onPopupVisibleChange=function(p){t.triggerOpenChange(p,p?"mouseenter":"mouseleave")},t.onMouseEnter=function(p){var O=t.props,I=O.eventKey,ee=O.onMouseEnter,q=O.store;wn(q,t.props.eventKey,!1),ee({key:I,domEvent:p})},t.onMouseLeave=function(p){var O=t.props,I=O.parentMenu,ee=O.eventKey,q=O.onMouseLeave;I.subMenuInstance=Object(v.a)(t),q({key:ee,domEvent:p})},t.onTitleMouseEnter=function(p){var O=t.props,I=O.eventKey,ee=O.onItemHover,q=O.onTitleMouseEnter;ee({key:I,hover:!0}),q({key:I,domEvent:p})},t.onTitleMouseLeave=function(p){var O=t.props,I=O.parentMenu,ee=O.eventKey,q=O.onItemHover,Ce=O.onTitleMouseLeave;I.subMenuInstance=Object(v.a)(t),q({key:ee,hover:!1}),Ce({key:ee,domEvent:p})},t.onTitleClick=function(p){var O=Object(v.a)(t),I=O.props;if(I.onTitleClick({key:I.eventKey,domEvent:p}),I.triggerSubMenuAction==="hover")return;t.triggerOpenChange(!t.getVisible(),"click"),wn(I.store,t.props.eventKey,!1)},t.onSubMenuClick=function(p){typeof t.props.onClick=="function"&&t.props.onClick(t.addKeyPath(p))},t.onSelect=function(p){t.props.onSelect(p)},t.onDeselect=function(p){t.props.onDeselect(p)},t.getPrefixCls=function(){return"".concat(t.props.rootPrefixCls,"-submenu")},t.getActiveClassName=function(){return"".concat(t.getPrefixCls(),"-active")},t.getDisabledClassName=function(){return"".concat(t.getPrefixCls(),"-disabled")},t.getSelectedClassName=function(){return"".concat(t.getPrefixCls(),"-selected")},t.getOpenClassName=function(){return"".concat(t.props.rootPrefixCls,"-submenu-open")},t.getVisible=function(){return t.state.isOpen},t.getMode=function(){return t.state.mode},t.saveMenuInstance=function(p){t.menuInstance=p},t.addKeyPath=function(p){return Object(T.a)(Object(T.a)({},p),{},{keyPath:(p.keyPath||[]).concat(t.props.eventKey)})},t.triggerOpenChange=function(p,O){var I=t.props.eventKey,ee=function(){t.onOpenChange({key:I,item:Object(v.a)(t),trigger:O,open:p})};O==="mouseenter"?t.mouseenterTimeout=setTimeout(function(){ee()},0):ee()},t.isChildrenSelected=function(){var p={find:!1};return $e(t.props.children,t.props.selectedKeys,p),p.find},t.isInlineMode=function(){return t.getMode()==="inline"},t.adjustWidth=function(){if(!t.subMenuTitle||!t.menuInstance)return;var p=yt.findDOMNode(t.menuInstance);if(p.offsetWidth>=t.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(t.subMenuTitle.offsetWidth,"px")},t.saveSubMenuTitle=function(p){t.subMenuTitle=p},t.getBaseProps=function(){var p=Object(v.a)(t),O=p.props,I=t.getMode();return{mode:I==="horizontal"?"vertical":I,visible:t.getVisible(),level:O.level+1,inlineIndent:O.inlineIndent,focusable:!1,onClick:t.onSubMenuClick,onSelect:t.onSelect,onDeselect:t.onDeselect,onDestroy:t.onDestroy,selectedKeys:O.selectedKeys,eventKey:"".concat(O.eventKey,"-menu-"),openKeys:O.openKeys,motion:O.motion,onOpenChange:t.onOpenChange,subMenuOpenDelay:O.subMenuOpenDelay,parentMenu:Object(v.a)(t),subMenuCloseDelay:O.subMenuCloseDelay,forceSubMenuRender:O.forceSubMenuRender,triggerSubMenuAction:O.triggerSubMenuAction,builtinPlacements:O.builtinPlacements,defaultActiveFirst:O.store.getState().defaultActiveFirst[st(O.eventKey)],multiple:O.multiple,prefixCls:O.rootPrefixCls,id:t.internalMenuId,manualRef:t.saveMenuInstance,itemIcon:O.itemIcon,expandIcon:O.expandIcon,direction:O.direction}},t.getMotion=function(p,O){var I=Object(v.a)(t),ee=I.haveRendered,q=t.props,Ce=q.motion,Xe=q.rootPrefixCls,lt=Object(T.a)(Object(T.a)({},Ce),{},{leavedClassName:"".concat(Xe,"-hidden"),removeOnLeave:!1,motionAppear:ee||!O||p!=="inline"});return lt};var a=c.store,n=c.eventKey,l=a.getState(),d=l.defaultActiveFirst;t.isRootMenu=!1;var g=!1;return d&&(g=d[n]),wn(a,n,g),t.state={mode:c.mode,isOpen:c.isOpen},t}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this,a=this.props,n=a.mode,l=a.parentMenu,d=a.manualRef,g=a.isOpen,p=function(){t.setState({mode:n,isOpen:g})},O=g!==this.state.isOpen,I=n!==this.state.mode;if((I||O)&&(Nt.a.cancel(this.updateStateRaf),I?this.updateStateRaf=Object(Nt.a)(p):p()),d&&d(this),n!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!g)return;this.minWidthTimeout=setTimeout(function(){return t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var t=this.props,a=t.onDestroy,n=t.eventKey;a&&a(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Nt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(t,a){var n=this.getBaseProps();return o.createElement(Le,Object(A.a)({},n,{id:this.internalMenuId,className:t,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var t=this,a=this.getBaseProps(),n=a.mode,l=a.visible,d=a.forceSubMenuRender,g=a.direction,p=this.getMotion(n,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||d,!this.haveOpened)return o.createElement("div",null);var O=D()("".concat(a.prefixCls,"-sub"),Object(w.a)({},"".concat(a.prefixCls,"-rtl"),g==="rtl"));return this.isInlineMode()?o.createElement(gn,Object(A.a)({visible:a.visible,forceRender:d},p),function(I){var ee=I.className,q=I.style,Ce=D()(O,ee);return t.renderPopupMenu(Ce,q)}):this.renderPopupMenu(O)}},{key:"render",value:function(){var t,a,n,l=Object(T.a)({},this.props),d=this.getVisible(),g=this.getPrefixCls(),p=this.isInlineMode(),O=this.getMode(),I=D()(g,"".concat(g,"-").concat(O),(t={},Object(w.a)(t,l.className,!!l.className),Object(w.a)(t,this.getOpenClassName(),d),Object(w.a)(t,this.getActiveClassName(),l.active||d&&!p),Object(w.a)(t,this.getDisabledClassName(),l.disabled),Object(w.a)(t,this.getSelectedClassName(),this.isChildrenSelected()),t));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(yn+=1,this.internalMenuId="$__$".concat(yn,"$Menu")));var ee={},q={},Ce={};l.disabled||(ee={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},q={onClick:this.onTitleClick},Ce={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Xe={},lt=l.direction,qe=lt==="rtl";p&&(qe?Xe.paddingRight=l.inlineIndent*l.level:Xe.paddingLeft=l.inlineIndent*l.level);var ft={};this.getVisible()&&(ft={"aria-owns":this.internalMenuId});var ut=null;O!=="horizontal"&&(ut=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ut=o.createElement(this.props.expandIcon,Object(T.a)({},this.props))));var rt=o.createElement("div",Object(A.a)({ref:this.saveSubMenuTitle,style:Xe,className:"".concat(g,"-title"),role:"button"},Ce,q,{"aria-expanded":d},ft,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,ut||o.createElement("i",{className:"".concat(g,"-arrow")})),it=this.renderChildren(),St=((a=l.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Yt){return Yt.parentNode},ht=Nn[O],qt=l.popupOffset?{offset:l.popupOffset}:{},Lt=D()((n={},Object(w.a)(n,l.popupClassName,l.popupClassName&&!p),Object(w.a)(n,"".concat(g,"-rtl"),qe),n)),We=l.disabled,Be=l.triggerSubMenuAction,gt=l.subMenuOpenDelay,jt=l.forceSubMenuRender,Ue=l.subMenuCloseDelay,Tt=l.builtinPlacements;ct.forEach(function(Yt){return delete l[Yt]}),delete l.onClick;var Gt=qe?Object(T.a)(Object(T.a)({},Sa),Tt):Object(T.a)(Object(T.a)({},la),Tt);delete l.direction;var Dt=this.getBaseProps(),It=p?null:this.getMotion(Dt.mode,Dt.visible);return o.createElement("li",Object(A.a)({},l,ee,{className:I,role:"menuitem"}),o.createElement(Za,{prefixCls:g,popupClassName:D()("".concat(g,"-popup"),Lt),getPopupContainer:St,builtinPlacements:Gt,popupPlacement:ht,popupVisible:p?!1:d,popupAlign:qt,popup:p?null:it,action:We||p?[]:[Be],mouseEnterDelay:gt,mouseLeaveDelay:Ue,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:jt,popupMotion:It},rt),p?it:null)}}]),E}(o.Component);Ca.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var na=Object(M.b)(function(r,f){var E=r.openKeys,c=r.activeKey,t=r.selectedKeys,a=f.eventKey,n=f.subMenuKey;return{isOpen:E.indexOf(a)>-1,active:c[n]===a,selectedKeys:t}})(Ca);na.isSubMenu=!0;var aa=na,Ta="menuitem-overflowed",Da=.5,Aa=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){var c;return Object(U.a)(this,E),c=f.apply(this,arguments),c.resizeObserver=null,c.mutationObserver=null,c.originalTotalWidth=0,c.overflowedItems=[],c.menuItemSizes=[],c.cancelFrameId=null,c.state={lastVisibleIndex:void 0},c.childRef=o.createRef(),c.getMenuItemNodes=function(){var t=c.props.prefixCls,a=c.childRef.current;return a?[].slice.call(a.children).filter(function(n){return n.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0}):[]},c.getOverflowedSubMenuItem=function(t,a,n){var l=c.props,d=l.overflowedIndicator,g=l.level,p=l.mode,O=l.prefixCls,I=l.theme;if(g!==1||p!=="horizontal")return null;var ee=c.props.children[0],q=ee.props,Ce=q.children,Xe=q.title,lt=q.style,qe=Object(De.a)(q,["children","title","style"]),ft=Object(T.a)({},lt),ut="".concat(t,"-overflowed-indicator"),rt="".concat(t,"-overflowed-indicator");a.length===0&&n!==!0?ft=Object(T.a)(Object(T.a)({},ft),{},{display:"none"}):n&&(ft=Object(T.a)(Object(T.a)({},ft),{},{visibility:"hidden",position:"absolute"}),ut="".concat(ut,"-placeholder"),rt="".concat(rt,"-placeholder"));var it=I?"".concat(O,"-").concat(I):"",St={};return ct.forEach(function(ht){qe[ht]!==void 0&&(St[ht]=qe[ht])}),o.createElement(aa,Object(A.a)({title:d,className:"".concat(O,"-overflowed-submenu"),popupClassName:it},St,{key:ut,eventKey:rt,disabled:!1,style:ft}),a)},c.setChildrenWidthAndResize=function(){if(c.props.mode!=="horizontal")return;var t=c.childRef.current;if(!t)return;var a=t.children;if(!a||a.length===0)return;var n=t.children[a.length-1];ze(n,"display","inline-block");var l=c.getMenuItemNodes(),d=l.filter(function(g){return g.className.split(" ").indexOf(Ta)>=0});d.forEach(function(g){ze(g,"display","inline-block")}),c.menuItemSizes=l.map(function(g){return Qe(g,!0)}),d.forEach(function(g){ze(g,"display","none")}),c.overflowedIndicatorWidth=Qe(t.children[t.children.length-1],!0),c.originalTotalWidth=c.menuItemSizes.reduce(function(g,p){return g+p},0),c.handleResize(),ze(n,"display","none")},c.handleResize=function(){if(c.props.mode!=="horizontal")return;var t=c.childRef.current;if(!t)return;var a=Qe(t);c.overflowedItems=[];var n=0,l;c.originalTotalWidth>a+Da&&(l=-1,c.menuItemSizes.forEach(function(d){n+=d,n+c.overflowedIndicatorWidth<=a&&(l+=1)})),c.setState({lastVisibleIndex:l})},c}return Object(F.a)(E,[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Ze.default(function(n){n.forEach(function(){var l=t.cancelFrameId;cancelAnimationFrame(l),t.cancelFrameId=requestAnimationFrame(t.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){t.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),t.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(t){var a=this,n=this.state.lastVisibleIndex;return(t||[]).reduce(function(l,d,g){var p=d;if(a.props.mode==="horizontal"){var O=a.getOverflowedSubMenuItem(d.props.eventKey,[]);n!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(g>n&&(p=o.cloneElement(d,{style:{display:"none"},eventKey:"".concat(d.props.eventKey,"-hidden"),className:"".concat(Ta)})),g===n+1&&(a.overflowedItems=t.slice(n+1).map(function(ee){return o.cloneElement(ee,{key:ee.props.eventKey,mode:"vertical-left"})}),O=a.getOverflowedSubMenuItem(d.props.eventKey,a.overflowedItems)));var I=[].concat(Object(ce.a)(l),[O,p]);return g===t.length-1&&I.push(a.getOverflowedSubMenuItem(d.props.eventKey,[],!0)),I}return[].concat(Object(ce.a)(l),[p])},[])}},{key:"render",value:function(){var t=this.props,a=t.visible,n=t.prefixCls,l=t.overflowedIndicator,d=t.mode,g=t.level,p=t.tag,O=t.children,I=t.theme,ee=Object(De.a)(t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),q=p;return o.createElement(q,Object(A.a)({ref:this.childRef},ee),this.renderChildren(O))}}]),E}(o.Component);Aa.defaultProps={tag:"div",className:""};var ya=Aa;function Kn(r){return r.length?r.every(function(f){return!!f.props.disabled}):!0}function Zn(r,f,E){var c=r.getState();r.setState({activeKey:Object(T.a)(Object(T.a)({},c.activeKey),{},Object(w.a)({},f,E))})}function Jn(r){return r.eventKey||"0-menu-"}function ua(r,f){var E=f,c=r.children,t=r.eventKey;if(E){var a;if(Je(c,function(n,l){n&&n.props&&!n.props.disabled&&E===Fe(n,t,l)&&(a=!0)}),a)return E}return E=null,r.defaultActiveFirst&&Je(c,function(n,l){!E&&n&&!n.props.disabled&&(E=Fe(n,t,l))}),E}function Na(r){if(!r)return;var f=this.instanceArray.indexOf(r);f!==-1?this.instanceArray[f]=r:this.instanceArray.push(r)}var wa=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(c){var t;return Object(U.a)(this,E),t=f.call(this,c),t.onKeyDown=function(a,n){var l=a.keyCode,d;if(t.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(d=p.onKeyDown(a))}),d)return 1;var g=null;return(l===y.a.UP||l===y.a.DOWN)&&(g=t.step(l===y.a.UP?-1:1)),g?(a.preventDefault(),Zn(t.props.store,Jn(t.props),g.props.eventKey),typeof n=="function"&&n(g),1):void 0},t.onItemHover=function(a){var n=a.key,l=a.hover;Zn(t.props.store,Jn(t.props),l?n:null)},t.onDeselect=function(a){t.props.onDeselect(a)},t.onSelect=function(a){t.props.onSelect(a)},t.onClick=function(a){t.props.onClick(a)},t.onOpenChange=function(a){t.props.onOpenChange(a)},t.onDestroy=function(a){t.props.onDestroy(a)},t.getFlatInstanceArray=function(){return t.instanceArray},t.step=function(a){var n=t.getFlatInstanceArray(),l=t.props.store.getState().activeKey[Jn(t.props)],d=n.length;if(!d)return null;a<0&&(n=n.concat().reverse());var g=-1;if(n.every(function(ee,q){return ee&&ee.props.eventKey===l?(g=q,!1):!0}),!t.props.defaultActiveFirst&&g!==-1&&Kn(n.slice(g,d-1)))return;var p=(g+1)%d,O=p;do{var I=n[O];if(!I||I.props.disabled)O=(O+1)%d;else return I}while(O!==p);return null},t.renderCommonMenuItem=function(a,n,l){var d=t.props.store.getState(),g=Object(v.a)(t),p=g.props,O=Fe(a,p.eventKey,n),I=a.props;if(!I||typeof a.type=="string")return a;var ee=O===d.activeKey,q=Object(T.a)(Object(T.a)({mode:I.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:t.renderMenuItem,rootPrefixCls:p.prefixCls,index:n,parentMenu:p.parentMenu,manualRef:I.disabled?void 0:Object(S.a)(a.ref,Na.bind(Object(v.a)(t))),eventKey:O,active:!I.disabled&&ee,multiple:p.multiple,onClick:function(Xe){(I.onClick||pe)(Xe),t.onClick(Xe)},onItemHover:t.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:t.onOpenChange,onDeselect:t.onDeselect,onSelect:t.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:I.itemIcon||t.props.itemIcon,expandIcon:I.expandIcon||t.props.expandIcon},l),{},{direction:p.direction});return(p.mode==="inline"||$())&&(q.triggerSubMenuAction="click"),o.cloneElement(a,Object(T.a)(Object(T.a)({},q),{},{key:O||n}))},t.renderMenuItem=function(a,n,l){if(!a)return null;var d=t.props.store.getState(),g={openKeys:d.openKeys,selectedKeys:d.selectedKeys,triggerSubMenuAction:t.props.triggerSubMenuAction,subMenuKey:l};return t.renderCommonMenuItem(a,n,g)},c.store.setState({activeKey:Object(T.a)(Object(T.a)({},c.store.getState().activeKey),{},Object(w.a)({},c.eventKey,ua(c,c.activeKey)))}),t.instanceArray=[],t}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(t){return this.props.visible||t.visible||this.props.className!==t.className||!b()(this.props.style,t.style)}},{key:"componentDidUpdate",value:function(t){var a=this.props,n="activeKey"in a?a.activeKey:a.store.getState().activeKey[Jn(a)],l=ua(a,n);if(l!==n)Zn(a.store,Jn(a),l);else if("activeKey"in t){var d=ua(t,t.activeKey);l!==d&&Zn(a.store,Jn(a),l)}}},{key:"render",value:function(){var t=this,a=Object(A.a)({},this.props);this.instanceArray=[];var n=D()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),l={className:n,role:a.role||"menu"};a.id&&(l.id=a.id),a.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var d=a.prefixCls,g=a.eventKey,p=a.visible,O=a.level,I=a.mode,ee=a.overflowedIndicator,q=a.theme;return ct.forEach(function(Ce){return delete a[Ce]}),delete a.onClick,o.createElement(ya,Object(A.a)({},a,{prefixCls:d,mode:I,tag:"ul",level:O,theme:q,visible:p,overflowedIndicator:ee},l),Object(ae.a)(a.children).map(function(Ce,Xe){return t.renderMenuItem(Ce,Xe,g||"0-menu-")}))}}]),E}(o.Component);wa.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var La=Object(M.b)()(wa),Le=La,xe=e("Kwbf");function et(r,f,E){var c=r.prefixCls,t=r.motion,a=r.defaultMotions,n=a===void 0?{}:a,l=r.openAnimation,d=r.openTransitionName,g=f.switchingModeFromInline;if(t)return t;if(Object(s.a)(l)==="object"&&l)Object(xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(c,"-open-").concat(l)};if(d)return{motionName:d};var p=n[E];return p||(g?null:n.other)}var Ge=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(c){var t;Object(U.a)(this,E),t=f.call(this,c),t.onSelect=function(l){var d=Object(v.a)(t),g=d.props;if(g.selectable){var p=t.store.getState(),O=p.selectedKeys,I=l.key;g.multiple?O=O.concat([I]):O=[I],"selectedKeys"in g||t.store.setState({selectedKeys:O}),g.onSelect(Object(T.a)(Object(T.a)({},l),{},{selectedKeys:O}))}},t.onClick=function(l){var d=t.getRealMenuMode(),g=Object(v.a)(t),p=g.store,O=g.props.onOpenChange;d!=="inline"&&!("openKeys"in t.props)&&(p.setState({openKeys:[]}),O([])),t.props.onClick(l)},t.onKeyDown=function(l,d){t.innerMenu.getWrappedInstance().onKeyDown(l,d)},t.onOpenChange=function(l){var d=Object(v.a)(t),g=d.props,p=t.store.getState().openKeys.concat(),O=!1,I=function(q){var Ce=!1;if(q.open)Ce=p.indexOf(q.key)===-1,Ce&&p.push(q.key);else{var Xe=p.indexOf(q.key);Ce=Xe!==-1,Ce&&p.splice(Xe,1)}O=O||Ce};Array.isArray(l)?l.forEach(I):I(l),O&&("openKeys"in t.props||t.store.setState({openKeys:p}),g.onOpenChange(p))},t.onDeselect=function(l){var d=Object(v.a)(t),g=d.props;if(g.selectable){var p=t.store.getState().selectedKeys.concat(),O=l.key,I=p.indexOf(O);I!==-1&&p.splice(I,1),"selectedKeys"in g||t.store.setState({selectedKeys:p}),g.onDeselect(Object(T.a)(Object(T.a)({},l),{},{selectedKeys:p}))}},t.onMouseEnter=function(l){t.restoreModeVerticalFromInline();var d=t.props.onMouseEnter;d&&d(l)},t.onTransitionEnd=function(l){var d=l.propertyName==="width"&&l.target===l.currentTarget,g=l.target.className,p=Object.prototype.toString.call(g)==="[object SVGAnimatedString]"?g.animVal:g,O=l.propertyName==="font-size"&&p.indexOf("anticon")>=0;(d||O)&&t.restoreModeVerticalFromInline()},t.setInnerMenu=function(l){t.innerMenu=l},t.isRootMenu=!0;var a=c.defaultSelectedKeys,n=c.defaultOpenKeys;return"selectedKeys"in c&&(a=c.selectedKeys||[]),"openKeys"in c&&(n=c.openKeys||[]),t.store=Object(M.c)({selectedKeys:a,openKeys:n,activeKey:{"0-menu-":ua(c,c.activeKey)}}),t.state={switchingModeFromInline:!1,prevProps:c,inlineOpenKeys:[],store:t.store},t}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(t){var a=this.props,n=a.siderCollapsed,l=a.inlineCollapsed,d=a.onOpenChange;(!t.inlineCollapsed&&l||!t.siderCollapsed&&n)&&d([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var t=this.props.collapsedWidth,a=this.store,n=this.prevOpenKeys,l=this.getInlineCollapsed()&&(t===0||t==="0"||t==="0px");l?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var t=this.props.mode,a=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return a&&n?"inline":n?"vertical":t}},{key:"getInlineCollapsed",value:function(){var t=this.props,a=t.inlineCollapsed,n=t.siderCollapsed;return n!==void 0?n:a}},{key:"restoreModeVerticalFromInline",value:function(){var t=this.state.switchingModeFromInline;t&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var t=Object(T.a)({},Object(P.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return t.className+=" ".concat(t.prefixCls,"-root"),t.direction==="rtl"&&(t.className+=" ".concat(t.prefixCls,"-rtl")),t=Object(T.a)(Object(T.a)({},t),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:et(this.props,this.state,a)}),delete t.openAnimation,delete t.openTransitionName,o.createElement(M.a,{store:this.store},o.createElement(Le,Object(A.a)({},t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(t,a){var n=a.prevProps,l=a.store,d=l.getState(),g={},p={prevProps:t};return n.mode==="inline"&&t.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in t?g.openKeys=t.openKeys||[]:((t.inlineCollapsed&&!n.inlineCollapsed||t.siderCollapsed&&!n.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=d.openKeys,g.openKeys=[]),(!t.inlineCollapsed&&n.inlineCollapsed||!t.siderCollapsed&&n.siderCollapsed)&&(g.openKeys=a.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(g).length&&l.setState(g),p}}]),E}(o.Component);Ge.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Xt=Ge,At=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){var c;return Object(U.a)(this,E),c=f.apply(this,arguments),c.onKeyDown=function(t){var a=t.keyCode;return a===y.a.ENTER?(c.onClick(t),!0):void 0},c.onMouseLeave=function(t){var a=c.props,n=a.eventKey,l=a.onItemHover,d=a.onMouseLeave;l({key:n,hover:!1}),d({key:n,domEvent:t})},c.onMouseEnter=function(t){var a=c.props,n=a.eventKey,l=a.onItemHover,d=a.onMouseEnter;l({key:n,hover:!0}),d({key:n,domEvent:t})},c.onClick=function(t){var a=c.props,n=a.eventKey,l=a.multiple,d=a.onClick,g=a.onSelect,p=a.onDeselect,O=a.isSelected,I={key:n,keyPath:[n],item:Object(v.a)(c),domEvent:t};d(I),l?O?p(I):g(I):O||g(I)},c.saveNode=function(t){c.node=t},c}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var t=this.props;t.onDestroy&&t.onDestroy(t.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var t,a=Object(T.a)({},this.props),n=D()(this.getPrefixCls(),a.className,(t={},Object(w.a)(t,this.getActiveClassName(),!a.disabled&&a.active),Object(w.a)(t,this.getSelectedClassName(),a.isSelected),Object(w.a)(t,this.getDisabledClassName(),a.disabled),t)),l=Object(T.a)(Object(T.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:n,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?l=Object(T.a)(Object(T.a)({},l),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(l.role="none");var d={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},g=Object(T.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?g.paddingRight=a.inlineIndent*a.level:g.paddingLeft=a.inlineIndent*a.level),ct.forEach(function(O){return delete a[O]}),delete a.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(A.a)({},Object(P.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,d,{style:g,ref:this.saveNode}),a.children,p)}}]),E}(o.Component);At.isMenuItem=!0,At.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var Ft=Object(M.b)(function(r,f){var E=r.activeKey,c=r.selectedKeys,t=f.eventKey,a=f.subMenuKey;return{active:E[a]===t,isSelected:Array.isArray(c)?c.indexOf(t)!==-1:c===t}})(At),cn=Ft,rn=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){var c;return Object(U.a)(this,E),c=f.apply(this,arguments),c.renderInnerMenuItem=function(t){var a=c.props,n=a.renderMenuItem,l=a.index;return n(t,l,c.props.subMenuKey)},c}return Object(F.a)(E,[{key:"render",value:function(){var t=Object(A.a)({},this.props),a=t.className,n=a===void 0?"":a,l=t.rootPrefixCls,d="".concat(l,"-item-group-title"),g="".concat(l,"-item-group-list"),p=t.title,O=t.children;return ct.forEach(function(I){return delete t[I]}),delete t.direction,o.createElement("li",Object(A.a)({},t,{onClick:function(ee){return ee.stopPropagation()},className:"".concat(n," ").concat(l,"-item-group")}),o.createElement("div",{className:d,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:g},o.Children.map(O,this.renderInnerMenuItem)))}}]),E}(o.Component);rn.isMenuItemGroup=!0,rn.defaultProps={disabled:!0};var ca=rn,da=function(f){var E=f.className,c=f.rootPrefixCls,t=f.style;return o.createElement("li",{className:"".concat(E," ").concat(c,"-item-divider"),style:t})};da.defaultProps={disabled:!0,className:"",style:{}};var Bn=da,Yn=Xt,oa=e("eDIo");function Rn(r,f){var E=r.prefixCls,c=r.editable,t=r.locale,a=r.style;return!c||c.showAdd===!1?null:o.createElement("button",{ref:f,type:"button",className:"".concat(E,"-nav-add"),style:a,"aria-label":(t==null?void 0:t.addAriaLabel)||"Add tab",onClick:function(l){c.onEdit("add",{event:l})}},c.addIcon||"+")}var fa=o.forwardRef(Rn);function _a(r,f){var E=r.prefixCls,c=r.id,t=r.tabs,a=r.locale,n=r.mobile,l=r.moreIcon,d=l===void 0?"More":l,g=r.moreTransitionName,p=r.style,O=r.className,I=r.editable,ee=r.tabBarGutter,q=r.rtl,Ce=r.onTabClick,Xe=Object(o.useState)(!1),lt=Object(j.a)(Xe,2),qe=lt[0],ft=lt[1],ut=Object(o.useState)(null),rt=Object(j.a)(ut,2),it=rt[0],St=rt[1],ht="".concat(c,"-more-popup"),qt="".concat(E,"-dropdown"),Lt=it!==null?"".concat(ht,"-").concat(it):null,We=a==null?void 0:a.dropdownAriaLabel,Be=o.createElement(Yn,{onClick:function(It){var Yt=It.key,hn=It.domEvent;Ce(Yt,hn),ft(!1)},id:ht,tabIndex:-1,role:"listbox","aria-activedescendant":Lt,selectedKeys:[it],"aria-label":We!==void 0?We:"expanded dropdown"},t.map(function(Dt){return o.createElement(cn,{key:Dt.key,id:"".concat(ht,"-").concat(Dt.key),role:"option","aria-controls":c&&"".concat(c,"-panel-").concat(Dt.key),disabled:Dt.disabled},Dt.tab)}));function gt(Dt){for(var It=t.filter(function(Un){return!Un.disabled}),Yt=It.findIndex(function(Un){return Un.key===it})||0,hn=It.length,Ln=0;LnTt?(jt=Be,ht.current="x"):(jt=gt,ht.current="y");var Gt=Date.now();Gt-it.current>100&&(St.current=!1),(f(-jt,-jt)||St.current)&&(We.preventDefault(),St.current=!0),it.current=Gt}var Lt=Object(o.useRef)(null);Lt.current={onTouchStart:ft,onTouchMove:ut,onTouchEnd:rt,onWheel:qt},o.useEffect(function(){function We(Ue){Lt.current.onTouchStart(Ue)}function Be(Ue){Lt.current.onTouchMove(Ue)}function gt(Ue){Lt.current.onTouchEnd(Ue)}function jt(Ue){Lt.current.onWheel(Ue)}return document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",gt,{passive:!1}),r.current.addEventListener("touchstart",We,{passive:!1}),r.current.addEventListener("wheel",jt),function(){document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",gt)}},[])}function Wa(){var r=Object(o.useRef)(new Map);function f(c){return r.current.has(c)||r.current.set(c,o.createRef()),r.current.get(c)}function E(c){r.current.delete(c)}return[f,E]}function eo(r,f){var E=o.useRef(r),c=o.useState({}),t=Object(j.a)(c,2),a=t[1];function n(l){var d=typeof l=="function"?l(E.current):l;d!==E.current&&f(d,E.current),E.current=d,a({})}return[E.current,n]}var to=function(f){var E=f.position,c=f.prefixCls,t=f.extra;if(!t)return null;var a,n=t;return E==="right"&&(a=n.right||!n.left&&n||null),E==="left"&&(a=n.left||null),a?o.createElement("div",{className:"".concat(c,"-extra-content")},a):null};function Bo(r,f){var E,c=o.useContext(qn),t=c.prefixCls,a=c.tabs,n=r.className,l=r.style,d=r.id,g=r.animated,p=r.activeKey,O=r.rtl,I=r.extra,ee=r.editable,q=r.locale,Ce=r.tabPosition,Xe=r.tabBarGutter,lt=r.children,qe=r.onTabClick,ft=r.onTabScroll,ut=Object(o.useRef)(),rt=Object(o.useRef)(),it=Object(o.useRef)(),St=Object(o.useRef)(),ht=Wa(),qt=Object(j.a)(ht,2),Lt=qt[0],We=qt[1],Be=Ce==="top"||Ce==="bottom",gt=eo(0,function(Ut,Ct){Be&&ft&&ft({direction:Ut>Ct?"left":"right"})}),jt=Object(j.a)(gt,2),Ue=jt[0],Tt=jt[1],Gt=eo(0,function(Ut,Ct){!Be&&ft&&ft({direction:Ut>Ct?"top":"bottom"})}),Dt=Object(j.a)(Gt,2),It=Dt[0],Yt=Dt[1],hn=Object(o.useState)(0),Ln=Object(j.a)(hn,2),tn=Ln[0],Un=Ln[1],ea=Object(o.useState)(0),zn=Object(j.a)(ea,2),Wn=zn[0],nn=zn[1],jn=Object(o.useState)(0),vn=Object(j.a)(jn,2),dn=vn[0],ma=vn[1],pa=Object(o.useState)(0),xa=Object(j.a)(pa,2),Vt=xa[0],ra=xa[1],Ma=Object(o.useState)(null),$t=Object(j.a)(Ma,2),wt=$t[0],bn=$t[1],Xo=Object(o.useState)(null),bo=Object(j.a)(Xo,2),Ia=bo[0],Go=bo[1],$o=Object(o.useState)(0),Eo=Object(j.a)($o,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(o.useState)(0),go=Object(j.a)(Qo,2),Zo=go[0],qo=go[1],er=_(new Map),Co=Object(j.a)(er,2),tr=Co[0],nr=Co[1],no=Z(a,tr,tn),yo="".concat(t,"-nav-operations-hidden"),Va=0,Ha=0;Be?O?(Va=0,Ha=Math.max(0,tn-wt)):(Va=Math.min(0,wt-tn),Ha=0):(Va=Math.min(0,Ia-Wn),Ha=0);function ao(Ut){return UtHa?[Ha,!1]:[Ut,!0]}var _o=Object(o.useRef)(),ar=Object(o.useState)(),Oo=Object(j.a)(ar,2),oo=Oo[0],xo=Oo[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(_o.current)}qa(ut,function(Ut,Ct){var fn=!1;function Vn(Ga,$a){Ga(function(Ja){var Ya=ao(Ja+$a),ka=Object(j.a)(Ya,2),co=ka[0],fo=ka[1];return fn=fo,co})}if(Be){if(wt>=tn)return fn;Vn(Tt,Ut)}else{if(Ia>=Wn)return fn;Vn(Yt,Ct)}return io(),ro(),fn}),Object(o.useEffect)(function(){return io(),oo&&(_o.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function Mo(){var Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,Ct=no.get(Ut);if(!Ct)return;if(Be){var fn=Ue;O?Ct.rightUe+wt&&(fn=Ct.right+Ct.width-wt):Ct.left<-Ue?fn=-Ct.left:Ct.left+Ct.width>-Ue+wt&&(fn=-(Ct.left+Ct.width-wt)),Yt(0),Tt(ao(fn)[0])}else{var Vn=It;Ct.top<-It?Vn=-Ct.top:Ct.top+Ct.height>-It+Ia&&(Vn=-(Ct.top+Ct.height-Ia)),Tt(0),Yt(ao(Vn)[0])}}var or=Ee(no,{width:wt,height:Ia,left:Ue,top:It},{width:dn,height:Vt},{width:Jo,height:Zo},Object(T.a)(Object(T.a)({},r),{},{tabs:a})),Ro=Object(j.a)(or,2),rr=Ro[0],ir=Ro[1],sr=a.map(function(Ut){var Ct=Ut.key;return o.createElement(k,{id:d,prefixCls:t,key:Ct,rtl:O,tab:Ut,closable:Ut.closable,editable:ee,active:Ct===p,tabPosition:Ce,tabBarGutter:Xe,renderWrapper:lt,removeAriaLabel:q==null?void 0:q.removeAriaLabel,ref:Lt(Ct),onClick:function(Vn){qe(Ct,Vn)},onRemove:function(){We(Ct)},onFocus:function(){Mo(Ct),ro(),O||(ut.current.scrollLeft=0),ut.current.scrollTop=0}})}),so=Y(function(){var Ut,Ct,fn,Vn,Ga,$a,Ja,Ya,ka,co=((Ut=ut.current)===null||Ut===void 0?void 0:Ut.offsetWidth)||0,fo=((Ct=ut.current)===null||Ct===void 0?void 0:Ct.offsetHeight)||0,wo=((fn=St.current)===null||fn===void 0?void 0:fn.offsetWidth)||0,Lo=((Vn=St.current)===null||Vn===void 0?void 0:Vn.offsetHeight)||0,mr=((Ga=it.current)===null||Ga===void 0?void 0:Ga.offsetWidth)||0,pr=(($a=it.current)===null||$a===void 0?void 0:$a.offsetHeight)||0;bn(co),Go(fo),Yo(wo),qo(Lo);var Uo=(((Ja=rt.current)===null||Ja===void 0?void 0:Ja.offsetWidth)||0)-wo,Io=(((Ya=rt.current)===null||Ya===void 0?void 0:Ya.offsetHeight)||0)-Lo;Un(Uo),nn(Io);var ko=(ka=it.current)===null||ka===void 0?void 0:ka.className.includes(yo);ma(Uo-(ko?0:mr)),ra(Io-(ko?0:pr)),nr(function(){var Fo=new Map;return a.forEach(function(hr){var Ko=hr.key,Qa=Lt(Ko).current;Qa&&Fo.set(Ko,{width:Qa.offsetWidth,height:Qa.offsetHeight,left:Qa.offsetLeft,top:Qa.offsetTop})}),Fo})}),lr=a.slice(0,rr),ur=a.slice(ir+1),jo=[].concat(Object(ce.a)(lr),Object(ce.a)(ur)),cr=Object(o.useState)(),Po=Object(j.a)(cr,2),dr=Po[0],fr=Po[1],ha=no.get(p),So=Object(o.useRef)();function To(){de.a.cancel(So.current)}Object(o.useEffect)(function(){var Ut={};return ha&&(Be?(O?Ut.right=ha.right:Ut.left=ha.left,Ut.width=ha.width):(Ut.top=ha.top,Ut.height=ha.height)),To(),So.current=de()(function(){fr(Ut)}),To},[ha,Be,O]),Object(o.useEffect)(function(){Mo()},[p,ha,no,Be]),Object(o.useEffect)(function(){so()},[O,Xe,p,a.map(function(Ut){return Ut.key}).join("_")]);var Do=!!jo.length,Xa="".concat(t,"-nav-wrap"),lo,uo,Ao,No;return Be?O?(uo=Ue>0,lo=Ue+wt50?kt.style.display="block":kt.style.display="none"}})),L.a.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:ie,onOk:function(){var at=Object(h.a)(_.a.mark(function kt(){var Pt,mn,On,an;return _.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:if(!(ot<1||ot>50)){Qt.next=4;break}return On=document.getElementById("model_error"),On.style.display="block",Qt.abrupt("return",Promise.reject());case 4:return xt.update({cancelButtonProps:{disabled:!0}}),Qt.next=7,le({type:"paperlibrary/sendToClass",payload:{course_id:$e==null?void 0:$e[0],id:(Pt=Ne.actionTabs)===null||Pt===void 0||((mn=Pt.params)===null||mn===void 0)?void 0:mn.id,num:ot}});case 7:an=Qt.sent,xt.update({cancelButtonProps:{disabled:!1}}),an&&an.status===0&&(m.a.destroyAll(),m.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:L.a.createElement("div",{className:U.a.modalColumn},L.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20 mb10"},L.a.createElement("img",{style:{marginRight:5},src:Ee.a}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:ie,onOk:function(){var zt,en,Jt=an==null||((zt=an.first_category_url)===null||zt===void 0||((en=zt.split("/"))===null||en===void 0))?void 0:en[2];Object(F.O)("/classrooms/".concat(Jt,"/exercise"))}}));case 10:case"end":return Qt.stop()}},kt)}));function Ht(){return at.apply(this,arguments)}return Ht}()});case 16:case"end":return W.stop()}},Se)}));return function(){return ye.apply(this,arguments)}}(),Oe=function(){var ye=Object(h.a)(_.a.mark(function Se(){return _.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return me(!0),ke.next=3,J();case 3:case"end":return ke.stop()}},Se)}));return function(){return ye.apply(this,arguments)}}(),we=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return L.a.createElement("div",null,L.a.createElement(m.a,{centered:!0,keyboard:!1,closable:!1,visible:Ne.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:fe["paperlibrary/sendToClass"],width:600,onOk:se,destroyOnClose:!0,onCancel:ie},L.a.createElement("div",{className:U.a.wrap},L.a.createElement("div",{className:U.a.title},L.a.createElement("img",{src:Z.a}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377"),L.a.createElement("div",{className:"mb10"},L.a.createElement(ue,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:G,onChange:function(Se){je(Se.target.value),Se.target.value||J(!0)},onSearch:function(Se){je(Se),J(),ct([])}})),pe.length?L.a.createElement("div",{className:U.a.radioWrap},L.a.createElement(j.a,{rowClassName:U.a.row,bordered:!1,scroll:(pe==null?void 0:pe.length)<=7?{}:{y:350},loading:ne,rowKey:"course_id",pagination:!1,dataSource:pe,columns:we,onRow:function(Se){return{onClick:function(ke){console.log([Se==null?void 0:Se.course_id]),ct([Se==null?void 0:Se.course_id])}}},rowSelection:{type:"radio",selectedRowKeys:$e,onChange:function(Se){ct(Se),Ze(!1)}}})):!G&&!ne&&L.a.createElement(x,{createState:Nt,refreshLoading:Re,onRefresh:Oe,onCreate:function(){Ot(!1),Object(F.O)("/classrooms/new")}}),$&&L.a.createElement("div",{className:U.a.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"))))},N=z.a=Object(k.a)(function(_e){var ve=_e.paperlibrary,Ne=_e.loading,Ie=_e.globalSetting;return{paperlibrary:ve,globalSetting:Ie,loading:Ne.effects}})(he)},mOS8:function(Te,z,e){Te.exports=e.p+"static/403Qrcode.6c17b6f4.png"},n6Qo:function(Te,z,e){"use strict";e.d(z,"a",function(){return ae});var w=e("q1tI"),j=e("biw7"),De=e("fyJ8");function T(h){var ce=h.className,H=h.index,de=h.children,be=h.colSpan,Y=h.rowSpan,_=w.useContext(j.a),y=_.prefixCls,L=_.fixedInfoList,k=L[H];return w.createElement(De.a,Object.assign({className:ce,index:H,component:"td",prefixCls:y,record:null,dataIndex:null,render:function(){return{children:de,props:{colSpan:be,rowSpan:Y}}}},k))}function o(h){return w.createElement("tr",Object.assign({},h))}function m(h){var ce=h.children,H=w.useContext(j.a),de=H.prefixCls;return w.createElement("tfoot",{className:"".concat(de,"-summary")},ce)}var D=z.b=m,ae={Cell:T,Row:o}},"rd/4":function(Te,z,e){Te.exports=e.p+"static/noData.dc777645.png"},sR1s:function(Te,z,e){"use strict";e.d(z,"b",function(){return T}),e.d(z,"a",function(){return o}),e.d(z,"c",function(){return m}),e.d(z,"d",function(){return D});var w=e("U8pU"),j="RC_TABLE_KEY";function De(ae){return ae==null?[]:Array.isArray(ae)?ae:[ae]}function T(ae,h){if(!h&&typeof h!="number")return ae;for(var ce=De(h),H=ae,de=0;de1)Object(ce.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Z.length===0)return Object(ce.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var K=Z[0];if(m.isValidElement(K)&&Object(H.c)(K)){var Ee=K.ref;Z[0]=m.cloneElement(K,{ref:Object(H.a)(Ee,this.setChildNode)})}return Z.length===1?Z[0]:Z.map(function(A,U){return!m.isValidElement(A)||"key"in A&&A.key!==null?A:m.cloneElement(A,{key:"".concat(be,"-").concat(U)})})}}]),L}(m.Component);Y.displayName="ResizeObserver",z.a=Y},wCXF:function(Te,z,e){"use strict";e.d(z,"a",function(){return _t});var w=e("rePB"),j=e("VTBJ"),De=e("KQm4"),T=e("U8pU"),o=e("ODXe"),m=e("q1tI"),D=e("TSYQ"),ae=e.n(D),h=e("Gytx"),ce=e.n(h),H=e("Kwbf"),de=e("t23M"),be=e("qx4F"),Y=e("6eGT"),_=e("IBYe"),y=e("Ff2n"),L=e("c+Xe"),k=e("fyJ8"),V=e("biw7");function Z(R,ne,oe,Pe,Ae){var Re=oe[R]||{},me=oe[ne]||{},ie,J;Re.fixed==="left"?ie=Pe.left[R]:me.fixed==="right"&&(J=Pe.right[ne]);var Q=!1,se=!1,Oe=!1,we=!1,ye=oe[ne+1],Se=oe[R-1];if(Ae==="rtl"){if(ie!==void 0){var Ve=Se&&Se.fixed==="left";we=!Ve}else if(J!==void 0){var ke=ye&&ye.fixed==="right";Oe=!ke}}else if(ie!==void 0){var Ye=ye&&ye.fixed==="left";Q=!Ye}else if(J!==void 0){var te=Se&&Se.fixed==="right";se=!te}return{fixLeft:ie,fixRight:J,lastFixLeft:Q,firstFixRight:se,lastFixRight:Oe,firstFixLeft:we,isSticky:Pe.isSticky}}var K=e("sR1s");function Ee(R){var ne=R.cells,oe=R.stickyOffsets,Pe=R.flattenColumns,Ae=R.rowComponent,Re=R.cellComponent,me=R.onHeaderRow,ie=R.index,J=m.useContext(V.a),Q=J.prefixCls,se=J.direction,Oe;me&&(Oe=me(ne.map(function(ye){return ye.column}),ie));var we=Object(K.a)(ne.map(function(ye){return ye.column}));return m.createElement(Ae,Object.assign({},Oe),ne.map(function(ye,Se){var Ve=ye.column,ke=Z(ye.colStart,ye.colEnd,Pe,oe,se),Ye;return Ve&&Ve.onHeaderCell&&(Ye=ye.column.onHeaderCell(Ve)),m.createElement(k.a,Object.assign({},ye,{ellipsis:Ve.ellipsis,align:Ve.align,component:Re,prefixCls:Q,key:we[Se]},ke,{additionalProps:Ye,rowType:"header"}))}))}Ee.displayName="HeaderRow";var A=Ee;function U(R){var ne=[];function oe(me,ie){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ne[J]=ne[J]||[];var Q=ie,se=me.filter(Boolean).map(function(Oe){var we={key:Oe.key,className:Oe.className||"",children:Oe.title,column:Oe,colStart:Q},ye=1,Se=Oe.children;return Se&&Se.length>0&&(ye=oe(Se,Q,J+1).reduce(function(Ve,ke){return Ve+ke},0),we.hasSubColumns=!0),"colSpan"in Oe&&(ye=Oe.colSpan),"rowSpan"in Oe&&(we.rowSpan=Oe.rowSpan),we.colSpan=ye,we.colEnd=we.colStart+ye-1,ne[J].push(we),Q+=ye,ye});return se}oe(R,0);for(var Pe=ne.length,Ae=function(ie){ne[ie].forEach(function(J){!("rowSpan"in J)&&!J.hasSubColumns&&(J.rowSpan=Pe-ie)})},Re=0;Re=0;ie-=1){var J=ne[ie],Q=oe&&oe[ie],se=Q&&Q[C.a];(J||se||me)&&(Ae.unshift(m.createElement("col",Object.assign({key:ie,style:{width:J,minWidth:J}},se))),me=!0)}return m.createElement("colgroup",null,Ae)}var M=u;function P(R,ne){return Object(m.useMemo)(function(){for(var oe=[],Pe=0;Pe1?un-1:0),xn=1;xn=Oe&&(Pt=Oe-we),me({scrollLeft:Pt/Oe*(se+2)}),te.current.x=W.pageX},ot=function(){var W=Object(ct.b)(Re.current).top,at=W+Re.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;at-Object(be.a)()<=Ht||W>=Ht-ie?Ye(function(kt){return Object(j.a)(Object(j.a)({},kt),{},{isHiddenScrollBar:!0})}):Ye(function(kt){return Object(j.a)(Object(j.a)({},kt),{},{isHiddenScrollBar:!1})})},xt=function(W){Ye(function(at){return Object(j.a)(Object(j.a)({},at),{},{scrollLeft:W/se*Oe||0})})};return m.useImperativeHandle(oe,function(){return{setScrollLeft:xt}}),m.useEffect(function(){var pt=Object($e.a)(document.body,"mouseup",dt,!1),W=Object($e.a)(document.body,"mousemove",Bt,!1);return ot(),function(){pt.remove(),W.remove()}},[we,He]),m.useEffect(function(){var pt=Object($e.a)(window,"scroll",ot,!1),W=Object($e.a)(window,"resize",ot,!1);return function(){pt.remove(),W.remove()}},[]),m.useEffect(function(){ke.isHiddenScrollBar||Ye(function(pt){var W,at;return Object(j.a)(Object(j.a)({},pt),{},{scrollLeft:Re.current.scrollLeft/((W=Re.current)===null||W===void 0?void 0:W.scrollWidth)*((at=Re.current)===null||at===void 0?void 0:at.clientWidth)})})},[ke.isHiddenScrollBar]),se<=Oe||!we||ke.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(be.a)(),width:Oe,bottom:ie},className:"".concat(Q,"-sticky-scroll")},m.createElement("div",{onMouseDown:nt,ref:ye,className:ae()("".concat(Q,"-sticky-scroll-bar"),Object(w.a)({},"".concat(Q,"-sticky-scroll-bar-active"),He)),style:{width:"".concat(we,"px"),transform:"translate3d(".concat(ke.scrollLeft,"px, 0, 0)")}}))},ze=m.forwardRef(Qe);function $(R,ne){return m.useMemo(function(){var oe=!!R;return{isSticky:oe,stickyClassName:oe?"".concat(ne,"-sticky-header"):"",offsetHeader:Object(T.a)(R)==="object"&&R.offsetHeader||0,offsetScroll:Object(T.a)(R)==="object"&&R.offsetScroll||0}},[R,ne])}var Ze=[],yt={},_t="rc-table-internal-hook",Nt=m.memo(function(R){var ne=R.children;return ne},function(R,ne){return ce()(R.props,ne.props)?R.pingLeft!==ne.pingLeft||R.pingRight!==ne.pingRight:!1});function Ot(R){var ne,oe=R.prefixCls,Pe=R.className,Ae=R.rowClassName,Re=R.style,me=R.data,ie=R.rowKey,J=R.scroll,Q=R.tableLayout,se=R.direction,Oe=R.title,we=R.footer,ye=R.summary,Se=R.id,Ve=R.showHeader,ke=R.components,Ye=R.emptyText,te=R.onRow,mt=R.onHeaderRow,vt=R.internalHooks,He=R.transformColumns,bt=R.internalRefs,dt=R.sticky,nt=me||Ze,Bt=!!nt.length,ot=m.useState(0),xt=Object(o.a)(ot,2),pt=xt[0],W=xt[1];m.useEffect(function(){W(Object(be.a)())});var at=m.useMemo(function(){return Object(K.c)(ke,{})},[ke]),Ht=m.useCallback(function(Rt,tt){return Object(K.b)(at,Rt)||tt},[at]),kt=m.useMemo(function(){return typeof ie=="function"?ie:function(Rt){var tt=Rt&&Rt[ie];return tt}},[ie]),Pt=Object(C.c)(R),mn=Pt.expandIcon,On=Pt.expandedRowKeys,an=Pt.defaultExpandedRowKeys,Et=Pt.defaultExpandAllRows,Qt=Pt.expandedRowRender,Pn=Pt.onExpand,zt=Pt.onExpandedRowsChange,en=Pt.expandRowByClick,Jt=Pt.rowExpandable,Sn=Pt.expandIconColumnIndex,Tn=Pt.expandedRowClassName,En=Pt.childrenColumnName,Hn=Pt.indentSize,In=mn||st,Xn=En||"children",kn=m.useMemo(function(){return Qt?"row":R.expandable&&vt===_t&&R.expandable.__PARENT_RENDER_ICON__||nt.some(function(Rt){return Rt&&Object(T.a)(Rt)==="object"&&Rt[Xn]})?"nest":!1},[!!Qt,nt]),Gn=m.useState(function(){return an||(Et?Je(nt,kt,Xn):[])}),on=Object(o.a)(Gn,2),ln=on[0],Zt=on[1],un=m.useMemo(function(){return new Set(On||ln||[])},[On,ln]),gn=m.useCallback(function(Rt){var tt=kt(Rt,nt.indexOf(Rt)),Kt,_n=un.has(tt);_n?(un.delete(tt),Kt=Object(De.a)(un)):Kt=[].concat(Object(De.a)(un),[tt]),Zt(Kt),Pn&&Pn(!_n,Rt),zt&&zt(Kt)},[kt,un,nt,Pn,zt]),xn=m.useState(0),Mt=Object(o.a)(xn,2),Mn=Mt[0],Dn=Mt[1],pn=Object(le.b)(Object(j.a)(Object(j.a)(Object(j.a)({},R),Pt),{},{expandable:!!Qt,expandedKeys:un,getRowKey:kt,onTriggerExpand:gn,expandIcon:In,expandIconColumnIndex:Sn,direction:se}),vt===_t?He:null),Ra=Object(o.a)(pn,2),ta=Ra[0],Wt=Ra[1],ia=m.useMemo(function(){return{columns:ta,flattenColumns:Wt}},[ta,Wt]),Qn=m.useRef(),va=m.useRef(),An=m.useRef(),Cn=m.useState(!1),$n=Object(o.a)(Cn,2),ba=$n[0],Fa=$n[1],Ka=m.useState(!1),Ea=Object(o.a)(Ka,2),sa=Ea[0],Ba=Ea[1],za=B(new Map),ja=Object(o.a)(za,2),Pa=ja[0],Za=ja[1],Fn=Object(K.a)(Wt),la=Fn.map(function(Rt){return Pa.get(Rt)}),Sa=m.useMemo(function(){return la},[la.join("_")]),ga=Ke(Sa,Wt.length,se),yn=J&&Object(K.d)(J.y),Nn=J&&Object(K.d)(J.x),wn=Nn&&Wt.some(function(Rt){var tt=Rt.fixed;return tt}),Ca=m.useRef(),na=$(dt,oe),aa=na.isSticky,Ta=na.offsetHeader,Da=na.offsetScroll,Aa=na.stickyClassName,ya,Kn,Zn;yn&&(Kn={overflowY:"scroll",maxHeight:J.y}),Nn&&(ya={overflowX:"auto"},yn||(Kn={overflowY:"hidden"}),Zn={width:J.x===!0?"auto":J.x,minWidth:"100%"});var Jn=m.useCallback(function(Rt,tt){Za(function(Kt){var _n=new Map(Kt);return _n.set(Rt,tt),_n})},[]),ua=G(null),Na=Object(o.a)(ua,2),wa=Na[0],La=Na[1];function Le(Rt,tt){if(!tt)return;typeof tt=="function"?tt(Rt):tt.scrollLeft!==Rt&&(tt.scrollLeft=Rt)}var xe=function(tt){var Kt=tt.currentTarget,_n=tt.scrollLeft,Oa=typeof _n=="number"?_n:Kt.scrollLeft,qa=Kt||yt;if(!La()||La()===qa){var Wa;wa(qa),Le(Oa,va.current),Le(Oa,An.current),Le(Oa,(Wa=Ca.current)===null||Wa===void 0?void 0:Wa.setScrollLeft)}if(Kt){var eo=Kt.scrollWidth,to=Kt.clientWidth;Fa(Oa>0),Ba(Oa0?[].concat(Object(j.a)(y),Object(j.a)(H(Z).map(function(K){return Object(De.a)({fixed:V},K)}))):[].concat(Object(j.a)(y),[Object(De.a)(Object(De.a)({},L),{},{fixed:V})])},[])}function de(_){for(var y=!0,L=0;L<_.length;L+=1){var k=_[L];if(y&&k.fixed!=="left")y=!1;else if(!y&&k.fixed==="left"){Object(D.a)(!1,"Index ".concat(L-1," of `columns` missing `fixed='left'` prop."));break}}for(var V=!0,Z=_.length-1;Z>=0;Z-=1){var K=_[Z];if(V&&K.fixed!=="right")V=!1;else if(!V&&K.fixed==="right"){Object(D.a)(!1,"Index ".concat(Z+1," of `columns` missing `fixed='right'` prop."));break}}}function be(_){return _.map(function(y){var L=y.fixed,k=Object(T.a)(y,["fixed"]),V=L;return L==="left"?V="right":L==="right"&&(V="left"),Object(De.a)({fixed:V},k)})}function Y(_,y){var L=_.prefixCls,k=_.columns,V=_.children,Z=_.expandable,K=_.expandedKeys,Ee=_.getRowKey,A=_.onTriggerExpand,U=_.expandIcon,F=_.rowExpandable,v=_.expandIconColumnIndex,C=_.direction,u=_.expandRowByClick,M=o.useMemo(function(){return k||ce(V)},[k,V]),P=o.useMemo(function(){if(Z){var b,s=v||0,x=M[s],X=(b={},Object(w.a)(b,h.a,{className:"".concat(L,"-expand-icon-col")}),Object(w.a)(b,"title",""),Object(w.a)(b,"fixed",x?x.fixed:null),Object(w.a)(b,"className","".concat(L,"-row-expand-icon-cell")),Object(w.a)(b,"render",function(N,_e,ve){var Ne=Ee(_e,ve),Ie=K.has(Ne),fe=F?F(_e):!0,le=U({prefixCls:L,expanded:Ie,expandable:fe,record:_e,onExpand:A});return u?o.createElement("span",{onClick:function(ge){return ge.stopPropagation()}},le):le}),b),ue=M.slice();return s>=0&&ue.splice(s,0,X),ue}return M},[Z,M,Ee,K,U,C]),S=o.useMemo(function(){var b=P;return y&&(b=y(b)),b.length||(b=[{render:function(){return null}}]),b},[y,P,C]),i=o.useMemo(function(){return C==="rtl"?be(H(S)):H(S)},[S,C]);return[S,i]}z.b=Y},"y0+3":function(Te,z,e){"use strict";e.d(z,"a",function(){return H}),e.d(z,"b",function(){return be});var w=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},De={cssFloat:1,styleFloat:1,float:1};function T(Y){return Y.nodeType===1?Y.ownerDocument.defaultView.getComputedStyle(Y,null):{}}function o(Y,_,y){if(_=_.toLowerCase(),y==="auto"){if(_==="height")return Y.offsetHeight;if(_==="width")return Y.offsetWidth}return _ in j||(j[_]=w.test(_)),j[_]?parseFloat(y)||0:y}function m(Y,_){var y=arguments.length,L=T(Y);return _=De[_]?"cssFloat"in Y.style?"cssFloat":"styleFloat":_,y===1?L:o(Y,_,L[_]||Y.style[_])}function D(Y,_,y){var L=arguments.length;if(_=De[_]?"cssFloat"in Y.style?"cssFloat":"styleFloat":_,L===3)return typeof y=="number"&&w.test(_)&&(y="".concat(y,"px")),Y.style[_]=y,y;for(var k in _)_.hasOwnProperty(k)&&D(Y,k,_[k]);return T(Y)}function ae(Y){return Y===document.body?document.documentElement.clientWidth:Y.offsetWidth}function h(Y){return Y===document.body?window.innerHeight||document.documentElement.clientHeight:Y.offsetHeight}function ce(){var Y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Y,height:_}}function H(){var Y=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:Y,height:_}}function de(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(Y){var _=Y.getBoundingClientRect(),y=document.documentElement;return{left:_.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}},z5tG:function(Te,z,e){Te.exports={tilte:"tilte___qxhUq",flexRow:"flexRow___3Vjbd",flexColumn:"flexColumn___1VZsd",footerWrap:"footerWrap___1hiUt",img:"img___1jm4F",content:"content___1I6uS",modalContent:"modalContent___3mpPG",modalContentLeft:"modalContentLeft___2OV-j",modal:"modal___1fHWX"}}}]); +`,i=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],b={},s;function x(fe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=fe.getAttribute("id")||fe.getAttribute("data-reactid")||fe.getAttribute("name");if(le&&b[Me])return b[Me];var ge=window.getComputedStyle(fe),B=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),G=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),je=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),Ke=i.map(function(pe){return"".concat(pe,":").concat(ge.getPropertyValue(pe))}).join(";"),re={sizingStyle:Ke,paddingSize:G,borderSize:je,boxSizing:B};return le&&Me&&(b[Me]=re),re}function X(fe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s)),fe.getAttribute("wrap")?s.setAttribute("wrap",fe.getAttribute("wrap")):s.removeAttribute("wrap");var B=x(fe,le),G=B.paddingSize,je=B.borderSize,Ke=B.boxSizing,re=B.sizingStyle;s.setAttribute("style","".concat(re,";").concat(T)),s.value=fe.value||fe.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Fe=Number.MAX_SAFE_INTEGER,st=s.scrollHeight,Je;if(Ke==="border-box"?st+=je:Ke==="content-box"&&(st-=G),Me!==null||ge!==null){s.value=" ";var $e=s.scrollHeight-G;Me!==null&&(pe=$e*Me,Ke==="border-box"&&(pe=pe+G+je),st=Math.max(pe,st)),ge!==null&&(Fe=$e*ge,Ke==="border-box"&&(Fe=Fe+G+je),Je=st>Fe?"":"hidden",st=Math.min(Fe,st))}return{height:st,minHeight:pe,maxHeight:Fe,overflowY:Je,resize:"none"}}var ue=e("Gytx"),he=e.n(ue),N;(function(fe){fe[fe.NONE=0]="NONE",fe[fe.RESIZING=1]="RESIZING",fe[fe.RESIZED=2]="RESIZED"})(N||(N={}));var _e=function(fe){Object(S.a)(Me,fe);var le=Object(o.a)(Me);function Me(ge){var B;return Object(j.a)(this,Me),B=le.call(this,ge),B.nextFrameActionId=void 0,B.resizeFrameId=void 0,B.textArea=void 0,B.saveTextArea=function(G){B.textArea=G},B.handleResize=function(G){var je=B.state.resizeStatus,Ke=B.props,re=Ke.autoSize,pe=Ke.onResize;if(je!==N.NONE)return;typeof pe=="function"&&pe(G),re&&B.resizeOnNextFrame()},B.resizeOnNextFrame=function(){cancelAnimationFrame(B.nextFrameActionId),B.nextFrameActionId=requestAnimationFrame(B.resizeTextarea)},B.resizeTextarea=function(){var G=B.props.autoSize;if(!G||!B.textArea)return;var je=G.minRows,Ke=G.maxRows,re=X(B.textArea,!1,je,Ke);B.setState({textareaStyles:re,resizeStatus:N.RESIZING},function(){cancelAnimationFrame(B.resizeFrameId),B.resizeFrameId=requestAnimationFrame(function(){B.setState({resizeStatus:N.RESIZED},function(){B.resizeFrameId=requestAnimationFrame(function(){B.setState({resizeStatus:N.NONE}),B.fixFirefoxAutoScroll()})})})})},B.renderTextArea=function(){var G=B.props,je=G.prefixCls,Ke=je===void 0?"rc-textarea":je,re=G.autoSize,pe=G.onResize,Fe=G.className,st=G.disabled,Je=B.state,$e=Je.textareaStyles,ct=Je.resizeStatus,Qe=Object(u.a)(B.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ze=P()(Ke,Fe,Object(ae.a)({},"".concat(Ke,"-disabled"),st));"value"in Qe&&(Qe.value=Qe.value||"");var $=Object(D.a)(Object(D.a)(Object(D.a)({},B.props.style),$e),ct===N.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(C,{onResize:B.handleResize,disabled:!(re||pe)},m.createElement("textarea",Object(w.a)({},Qe,{className:ze,style:$,ref:B.saveTextArea})))},B.state={textareaStyles:{},resizeStatus:N.NONE},B}return Object(De.a)(Me,[{key:"componentDidUpdate",value:function(B){(B.value!==this.props.value||!he()(B.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var B=this.textArea.selectionStart,G=this.textArea.selectionEnd;this.textArea.setSelectionRange(B,G)}}catch(je){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Me}(m.Component),ve=_e,Ne=function(fe){Object(S.a)(Me,fe);var le=Object(o.a)(Me);function Me(ge){var B;Object(j.a)(this,Me),B=le.call(this,ge),B.resizableTextArea=void 0,B.focus=function(){B.resizableTextArea.textArea.focus()},B.saveTextArea=function(je){B.resizableTextArea=je},B.handleChange=function(je){var Ke=B.props.onChange;B.setValue(je.target.value,function(){B.resizableTextArea.resizeTextarea()}),Ke&&Ke(je)},B.handleKeyDown=function(je){var Ke=B.props,re=Ke.onPressEnter,pe=Ke.onKeyDown;je.keyCode===13&&re&&re(je),pe&&pe(je)};var G=typeof ge.value=="undefined"||ge.value===null?ge.defaultValue:ge.value;return B.state={value:G},B}return Object(De.a)(Me,[{key:"setValue",value:function(B,G){"value"in this.props||this.setState({value:B},G)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(ve,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(B){return"value"in B?{value:B.value}:null}}]),Me}(m.Component),Ie=z.default=Ne},Ynr3:function(Se,z,e){"use strict";e.r(z);var w=e("DjyN"),j=e("NUBc"),De=e("T2oS"),S=e("W9HT"),o=e("14J3"),m=e("BMrR"),D=e("+L6B"),ae=e("2/Rp"),h=e("jCWc"),ce=e("kPKH"),H=e("qVdP"),de=e("jsC+"),be=e("lUTK"),Y=e("BvKs"),_=e("OaEy"),y=e("2fM7"),L=e("miYZ"),k=e("tsqr"),V=e("oBTY"),Z=e("sRBo"),K=e("kaz8"),Ee=e("2qtc"),A=e("kLXV"),U=e("9og8"),F=e("tJVT"),v=e("PpiC"),C=e("5NDa"),u=e("5rEg"),M=e("Znn+"),P=e("ZTPi"),T=e("WmNS"),i=e.n(T),b=e("q1tI"),s=e.n(b),x=e("9kvl"),X=e("BdwD"),ue=e("iris"),he=e("IoUt"),N=e.n(he),_e=e("LCv0"),ve=e.n(_e),Ne=e("fVvY"),Ie=e.n(Ne),fe=e("1XHU"),le=e("z5tG"),Me=e.n(le),ge=function(Q){var se=Q.paperlibrary,Oe=Q.globalSetting,we=Q.loading,ye=Q.dispatch,Te=Object(v.a)(Q,["paperlibrary","globalSetting","loading","dispatch"]);return s.a.createElement(A.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:se.actionTabs.key==="Paperlibrary-RandomPrompt",title:"\u6E29\u99A8\u63D0\u793A",footer:null},"\u968F\u673A\u7EC4\u5377\u529F\u80FD\u5728\u7F16\u8F91\u65F6\u4EC5\u80FD\u786E\u5B9A\u968F\u673A\u89C4\u5219\uFF0C\u4E0D\u80FD\u7F16\u8F91\u786E\u5B9A\u7684\u8BD5\u9898\u3002 \u5728\u8BFE\u5802\u4E0A\u5E94\u7528\u65F6\uFF0C\u5C06\u6839\u636E\u89C4\u5219\u4E3A\u6BCF\u4F4D\u5B66\u751F\u968F\u673A\u751F\u6210\u4E00\u4EFD\u8003\u5BDF\u70B9\u548C\u9898\u578B\u76F8\u540C\uFF0C\u4F46\u8BD5\u9898\u4E92\u4E0D\u76F8\u540C\u7684\u8BD5\u5377\u3002 \u4E3A\u987A\u5229\u7EC4\u5377\uFF0C\u8BF7\u53CA\u65F6\u5220\u9664\u4E2A\u4EBA\u9898\u5E93\u4E2D\u5197\u4F59\u3001\u9519\u8BEF\u3001\u65E0\u6548\u7684\u8BD5\u9898\uFF0C\u786E\u4FDD\u60A8\u7684\u4E2A\u4EBA\u9898\u5E93\u4E2D\u5168\u90E8\u8BD5\u9898\u5747\u6B63\u786E\u4E14\u6709\u6548\u3002",s.a.createElement("div",{className:"".concat(Me.a.footerWrap," mt30")},s.a.createElement(K.a,{onChange:function(ke){var Ye=window.localStorage;Ye&&(Ye.no_alert_randompaper=ke.target.checked?"1":"0")}},"\u4E0D\u518D\u63D0\u793A"),s.a.createElement(ae.a,{type:"primary",onClick:function(){ye({type:"paperlibrary/setActionTabs",payload:{}}),x.d.push("/randompaper")}},"\u786E\u5B9A")))},B=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.loading,Oe=J.globalSetting;return{paperlibrary:Q,globalSetting:Oe,loading:se.effects}})(ge),G=e("wd/R"),je=e.n(G),Ke=e("5Hdu"),re=e.n(Ke),pe=e("1vQj"),Fe=e.n(pe),st=e("4IkL"),Je=e.n(st),$e=e("xKgJ"),ct=e("V0Rq"),Qe=e("NLgs"),ze=e("LvDl"),$={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Ze=function(Q){var se,Oe,we,ye,Te,Ve,ke=Q.showCheckbox,Ye=ke===void 0?!1:ke,te=Q.data,mt=Q.user,vt=Q.authRole,He=Q.activeTabsKey,bt=Q.selectIds,dt=bt===void 0?[]:bt,nt=Q.onSetSelectIds,Bt=nt===void 0?function(){}:nt,ot=Q.onPublicReview,xt=ot===void 0?function(){}:ot,pt=Q.onCancelPublic,W=pt===void 0?function(){}:pt,at=Q.onCancelShare,Ht=at===void 0?function(){}:at,kt=Q.onEdit,Pt=kt===void 0?function(){}:kt,mn=Q.onDelete,On=mn===void 0?function(){}:mn,an=Q.onSendToClass,Et=an===void 0?function(){}:an,Qt=function(){A.a.warning({centered:!0,width:530,okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",icon:null,content:s.a.createElement("div",{className:"tc font16"},"\u672C\u5957\u8BD5\u5377\u6240\u9009\u7528\u8BD5\u9898\u90E8\u5206\u4E22\u5931\uFF0C\u8BF7\u8C28\u614E\u4F7F\u7528\u5E76\u53CA\u65F6\u8C03\u6574\u3002")})},Pn=function(){var zt=Object(U.a)(i.a.mark(function en(){var Jt,Tn;return i.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(ct.W)({categoryId:te.id});case 2:Jt=En.sent,Jt!=null&&Jt.exercise_id&&x.d.push("/classrooms/coursesId/exercise/".concat(Jt.exercise_id,"/").concat((Tn=mt.userInfo)===null||Tn===void 0?void 0:Tn.login,"/initate_answer"));case 4:case"end":return En.stop()}},en)}));return function(){return zt.apply(this,arguments)}}();return s.a.createElement("div",{className:re.a.itemWrap},s.a.createElement("div",{className:re.a.listWrap},s.a.createElement("div",{className:"".concat(re.a.list," ").concat(re.a.flexCenter)},Ye&&s.a.createElement(K.a,{className:"mr10",checked:dt.includes(te.id),onChange:function(en){Bt(te.id)}}),s.a.createElement("div",{className:"".concat(re.a.flexCenter," ").concat(re.a.imgWrap)},s.a.createElement("img",{src:te.public?Je.a:Fe.a,alt:""})),s.a.createElement("div",{className:re.a.contentWrap},s.a.createElement("div",{className:re.a.flexRow},s.a.createElement("a",{className:re.a.titleWrap,onClick:function(){if(vt){var en=te.is_random?"/randompaper/detail/".concat(te.id):"/paperlibrary/see/".concat(te.id,"?defaultActiveKey=").concat(He);x.d.push(en)}}},s.a.createElement("p",{className:re.a.title,title:te.name},te.name)),(He==="0"||He==="2")&&s.a.createElement(s.a.Fragment,null,te.public?s.a.createElement("div",{className:"".concat(re.a.typeIcon," ").concat(re.a.public)},"\u5DF2\u516C\u5F00"):s.a.createElement("div",{className:"".concat(re.a.typeIcon," ").concat(re.a.private)},"\u81EA\u7528"),te.is_random&&s.a.createElement("div",{className:"".concat(re.a.typeIcon," ").concat(re.a.random)},"\u968F\u673A")),(He==="1"&&Object($e.o)()||He==="0")&&te.changed&&s.a.createElement("i",{className:"iconfont icon-jinggao1 c-red font16 ml10 current",onClick:Qt})),s.a.createElement("div",{className:"".concat(re.a.flexRow),style:{marginTop:4}},s.a.createElement("p",{className:re.a.content},"\u8BD5\u9898\u6570\uFF1A",s.a.createElement("span",null,te.question_count)),s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.content},"\u603B\u5206\uFF1A",s.a.createElement("span",null,te.total_score)),s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.content},"\u96BE\u5EA6\uFF1A",s.a.createElement("span",null,$[te.difficulty]))))),s.a.createElement("div",{className:re.a.actionBar},s.a.createElement("div",{className:re.a.flexRow},s.a.createElement("p",{className:re.a.actionLeftItem},"\u66F4\u65B0\uFF1A",s.a.createElement("span",null,te.update_time?je()(te.update_time).format("YYYY-MM-DD"):"")),s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.actionLeftItem},"\u4F7F\u7528\u6B21\u6570\uFF1A",s.a.createElement("span",null,te.quotes)),He==="1"&&s.a.createElement(s.a.Fragment,null,s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.actionLeftItem},"\u521B\u5EFA\u8005\uFF1A",s.a.createElement("span",null,(se=te.author)===null||se===void 0?void 0:se.name))),He==="2"&&s.a.createElement(s.a.Fragment,null,s.a.createElement("i",{className:re.a.line}),s.a.createElement("p",{className:re.a.actionLeftItem},"\u5206\u4EAB\u4EBA\uFF1A",s.a.createElement("span",null,(Oe=te.author)===null||Oe===void 0?void 0:Oe.name)))),s.a.createElement("div",{className:re.a.flexRow},He==="0"&&!te.public&&!te.is_random&&te.apply&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:xt},s.a.createElement("i",{className:"iconfont icon-gongkai ".concat(re.a.actionIcon)}),"\u5BA1\u6838\u4E2D"),He==="0"&&te.public&&!te.is_random&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20 current"),onClick:function(){return W(te.id)}},s.a.createElement("i",{className:"iconfont icon-gongkai ".concat(re.a.actionIcon)}),"\u64A4\u9500\u516C\u5F00"),He==="0"&&(te==null?void 0:te.is_share)&&!te.is_random&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20 current"),onClick:function(){return Ht(te.id)}},s.a.createElement("i",{className:"iconfont icon-chexiaogongxiang ".concat(re.a.actionIcon," font16")}),"\u64A4\u9500\u5171\u4EAB"),((He==="0"||He==="2")&&!te.public||He==="1"&&((we=te.author)===null||we===void 0?void 0:we.login)!==((ye=mt.userInfo)===null||ye===void 0?void 0:ye.login)&&Object($e.o)())&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:function(){return Pt(te.id,te.is_random)}},s.a.createElement("i",{className:"iconfont icon-bianji10 ".concat(re.a.actionIcon)}),"\u7F16\u8F91"),((He==="0"||He==="2")&&!te.public||He==="1"&&((Te=te.author)===null||Te===void 0?void 0:Te.login)!==((Ve=mt.userInfo)===null||Ve===void 0?void 0:Ve.login)&&Object($e.n)())&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:function(){return On(te.id)}},s.a.createElement("i",{className:"iconfont icon-shanchu11 ".concat(re.a.actionIcon)}),"\u5220\u9664"),vt&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr20"),onClick:function(){if(te!=null&&te.need_authorize){Object(Qe.a)(!1,"\u8BE5\u8BD5\u5377\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}Et(te.id,te)}},s.a.createElement("i",{className:"iconfont icon-fasongzhiketang ".concat(re.a.actionIcon)}),"\u53D1\u9001\u81F3\u8BFE\u5802"),vt&&s.a.createElement("a",{className:"".concat(re.a.actionLink," mr15"),type:"primary",onClick:Object(ze.throttle)(Pn,3500)},s.a.createElement("i",{className:"iconfont icon-monikaoshi2 ".concat(re.a.actionIcon)}),"\u6A21\u62DF\u8003\u8BD5")))))},yt=function(Q){var se=Q.paperlibrary,Oe=Q.globalSetting,we=Q.loading,ye=Q.dispatch,Te=Object(v.a)(Q,["paperlibrary","globalSetting","loading","dispatch"]);return s.a.createElement(A.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:se.actionTabs.key==="Paperlibrary-PublicReview",title:"\u5BA1\u6838\u544A\u77E5",okText:"\u77E5\u9053\u5566",cancelText:"",width:"442px",onOk:function(){ye({type:"paperlibrary/setActionTabs",payload:{}})},onCancel:function(){ye({type:"paperlibrary/setActionTabs",payload:{}})}},s.a.createElement("div",{className:Me.a.modalContent},"\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"),s.a.createElement("div",{className:Me.a.modalContent},"\u6211\u4EEC\u5C06\u57281-2\u4E2A\u5DE5\u4F5C\u65E5\u5185\u5B8C\u6210\u5BA1\u6838"))},_t=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.loading,Oe=J.globalSetting;return{paperlibrary:Q,globalSetting:Oe,loading:se.effects}})(yt),Nt=function(Q){var se=Q.paperlibrary,Oe=Q.globalSetting,we=Q.loading,ye=Q.dispatch,Te=Q.onReloadData,Ve=Te===void 0?function(){}:Te,ke=Object(v.a)(Q,["paperlibrary","globalSetting","loading","dispatch","onReloadData"]),Ye=function(){var te=Object(U.a)(i.a.mark(function mt(){var vt;return i.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,ye({type:"paperlibrary/handleDelete",payload:se.actionTabs.params});case 2:vt=bt.sent,ye({type:"paperlibrary/setActionTabs",payload:{}}),vt.status===0&&Ve();case 5:case"end":return bt.stop()}},mt)}));return function(){return te.apply(this,arguments)}}();return s.a.createElement(A.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:se.actionTabs.key==="Paperlibrary-Delete",title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:we["paperlibrary/handleDelete"],width:"442px",onOk:Ye,onCancel:function(){ye({type:"paperlibrary/setActionTabs",payload:{}})}},s.a.createElement("div",{className:Me.a.modalContent},"\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u65E0\u6CD5\u64A4\u9500"),s.a.createElement("div",{className:Me.a.modalContent},"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},Ot=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.loading,Oe=J.globalSetting;return{paperlibrary:Q,globalSetting:Oe,loading:se.effects}})(Nt),sn=e("kHHm"),R=e("1vsH"),ne=e("vCeJ"),oe=e("WCUW"),Pe=e("ErOA"),Ae=P.a.TabPane,Re=u.a.Search,me=function(Q){var se,Oe,we,ye,Te,Ve,ke,Ye,te,mt=Q.paperlibrary,vt=Q.user,He=Q.globalSetting,bt=Q.loading,dt=Q.dispatch,nt=Q.location,Bt=Object(v.a)(Q,["paperlibrary","user","globalSetting","loading","dispatch","location"]),ot=(nt==null||((se=nt.query)===null||se===void 0)?void 0:se.defaultActiveKey)||"1",xt=Object(b.useState)({discipline_id:null,sub_discipline_id:null,tag_discipline_id:null,public:ot,difficulty:null,keyword:null,page:1,per_page:10,group_id:null,is_random:null,sort_by:"updated_at",sort_direction:"desc"}),pt=Object(F.a)(xt,2),W=pt[0],at=pt[1],Ht=Object(b.useState)(0),kt=Object(F.a)(Ht,2),Pt=kt[0],mn=kt[1],On=Object(b.useState)([]),an=Object(F.a)(On,2),Et=an[0],Qt=an[1],Pn=Object(b.useState)(),zt=Object(F.a)(Pn,2),en=zt[0],Jt=zt[1],Tn=Object(b.useState)(!1),Sn=Object(F.a)(Tn,2),En=Sn[0],Hn=Sn[1],In=Object(b.useState)(0),Xn=Object(F.a)(In,2),kn=Xn[0],Gn=Xn[1],on=Object(b.useState)(ot),ln=Object(F.a)(on,2),Zt=ln[0],un=ln[1],gn=Object(b.useState)([]),xn=Object(F.a)(gn,2),Mt=xn[0],Mn=xn[1],Dn=Object(b.useRef)(!1),pn=Object(b.useRef)(),Ra=Object(b.useState)("\u6309\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F"),ta=Object(F.a)(Ra,2),Wt=ta[0],ia=ta[1],Qn=[{name:"\u6309\u66F4\u65B0\u65F6\u95F4\u5347\u5E8F",type:"updated_at",direction:"asc"},{name:"\u6309\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F",type:"updated_at",direction:"desc"},{name:"\u6309\u4F7F\u7528\u6B21\u6570\u5347\u5E8F",type:"quotes",direction:"asc"},{name:"\u6309\u4F7F\u7528\u6B21\u6570\u964D\u5E8F",type:"quotes",direction:"desc"}];Object(b.useEffect)(function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}},[]),Object(b.useEffect)(function(){va(Zt),Cn(W),An()},[]),Object(b.useEffect)(function(){return dt({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),dt({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){dt({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),dt({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[]),Object(b.useEffect)(function(){Object(R.T)("\u8BD5\u5377\u5E93")});var va=function(xe){console.log(xe,"key"),dt({type:"paperlibrary/getCustomDisciplines",payload:{clazz:xe==="0"?"my":xe==="1"?"public":"teacher"}})},An=function(){var Le=Object(U.a)(i.a.mark(function xe(){return i.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:dt({type:"paperlibrary/getTeachGroupData"});case 1:case"end":return Ge.stop()}},xe)}));return function(){return Le.apply(this,arguments)}}(),Cn=function(){var Le=Object(U.a)(i.a.mark(function xe(et){var Ge;return i.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,dt({type:"paperlibrary/getPaperlibraryList",payload:et});case 2:Ge=At.sent,Ge&&Ge.status!==403&&Ge.status!==401&&Ge.status!==500&&(mn(Ge.exam_count||0),Qt(Ge.exams||[]),Jt(Ge.auth_role),Mn([]));case 4:case"end":return At.stop()}},xe)}));return function(et){return Le.apply(this,arguments)}}(),$n=function(){W.per_page=10,at(W),Cn(W)},ba=function(xe,et){W.discipline_id=xe||"",W.sub_discipline_id=et||"",W.page=1,W.per_page=10,at(W),Cn(W)},Fa=function(xe){W.item_type=xe||"",W.page=1,W.per_page=10,at(W),Cn(W)},Ka=function(xe){W.difficulty=xe||"",W.page=1,W.per_page=10,at(W),Cn(W)},Ea=function(xe){W.is_random=xe||"",W.page=1,W.per_page=10,at(W),Cn(W)},sa=function(xe){W.sort_by=xe.type,W.sort_direction=xe.direction,W.page=1,W.per_page=10,ia(xe.name),at(W),Cn(W)},Ba=function(xe){W.public=xe,W.group_id=null,W.page=1,W.per_page=10,W.discipline_id=null,W.sub_discipline_id=null,W.tag_discipline_id=null,W.difficulty=null,W.is_random=null,va(xe),un(xe),at(W),Cn(W)},za=function(xe){W.page=xe,W.per_page=10,at(W),Cn(W)},ja=function(xe){W.page=1,W.keyword=xe,Cn(W)},Pa=function(){if(!en){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Auth",params:{occupation:2}}});return}x.d.push("/problemset")},Za=function(){if(localStorage.no_alert_randompaper==="1"){x.d.push("/randompaper");return}dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-RandomPrompt"}})},Fn=function(xe){Dn.current=!1,window.localStorage.getItem("paperlibrary-cancel-public-hint-flag")==="1"?la(xe):A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u64A4\u9500\u516C\u5F00\u544A\u77E5",className:N.a.modal,content:s.a.createElement("div",{className:"font16"},"\u672C\u8BD5\u5377\u5DF2\u516C\u5F00\uFF0C\u64A4\u9500\u516C\u5F00\u540E\u5C06\u5BF9\u5176\u4ED6\u7528\u6237\u4E0D\u53EF\u89C1\u3002 \u786E\u8BA4\u64A4\u9500\u516C\u5F00\u56DE\u5230\u81EA\u6709\u72B6\u6001\u5417\uFF1F",s.a.createElement("div",null,s.a.createElement(K.a,{className:"mt10",defaultChecked:!1,onChange:function(Ge){return Dn.current=Ge.target.checked}},"\u4E0D\u518D\u63D0\u793A"))),onOk:function(){Dn.current&&window.localStorage.setItem("paperlibrary-cancel-public-hint-flag","1"),la(xe)}})},la=function(){var Le=Object(U.a)(i.a.mark(function xe(et){var Ge;return i.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,Object(ne.n)({id:et});case 2:Ge=At.sent,(Ge==null?void 0:Ge.status)===0&&$n();case 4:case"end":return At.stop()}},xe)}));return function(et){return Le.apply(this,arguments)}}(),Ta=function(){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-PublicReview"}})},ga=function(xe,et){if(!en){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Auth",params:{occupation:2}}});return}var Ge=et?"/randompaper/edit/".concat(xe):"/paperlibrary/edit/".concat(xe,"?defaultActiveKey=").concat(Zt);Object(R.O)(Ge)},yn=function(xe){if(!en){dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Auth",params:{occupation:2}}});return}dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-Delete",params:{id:xe}}})},Nn=function(xe,et){console.log(et,"data"),dt({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:xe,data:et}}})},wn=function(xe){Mn(Mt!=null&&Mt.includes(xe)?Mt.filter(function(et){return et!==xe}):[].concat(Object(V.a)(Mt),[xe]))},Ca=function(xe){Mn(xe?Et==null?void 0:Et.map(function(et){return et.id}):[])},na=function(){if(!(Mt!=null&&Mt.length))return k.b.info("\u8BF7\u5148\u9009\u62E9\u8BD5\u5377");A.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6279\u91CF\u5220\u9664",maskClosable:!0,icon:null,content:"\u786E\u5B9A\u5220\u9664\u9009\u4E2D\u7684\u8BD5\u5377\u5417",onOk:function(){return new Promise(function(){var et=Object(U.a)(i.a.mark(function Ge(Xt,At){var Ft;return i.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Object(Pe.a)("/api/examination_banks/batch_delete.json",{method:"delete",body:{ids:Mt}});case 2:Ft=rn.sent,(Ft==null?void 0:Ft.status)===0&&($n(),Mn([]),Xt());case 4:case"end":return rn.stop()}},Ge)}));return function(Ge,Xt){return et.apply(this,arguments)}}())}})},aa=function(){var xe,et,Ge,Xt,At;if(!(Mt!=null&&Mt.length))return k.b.info("\u8BF7\u5148\u9009\u62E9\u8BD5\u5377");if(Et!=null&&(xe=Et.filter(function(Ft){return Mt.includes(Ft.id)}))!==null&&xe!==void 0&&xe.find(function(Ft){return Ft.is_random}))return k.b.info("\u968F\u673A\u8BD5\u5377\u4E0D\u53EF\u516C\u5F00\u6216\u5171\u4EAB\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9");if(!((et=mt.teachGroupData)!==null&&et!==void 0&&(Ge=et.groups)!==null&&Ge!==void 0&&Ge.length))return k.b.info("\u60A8\u6682\u672A\u521B\u5EFA\u6216\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u524D\u5F80\u201C\u8D26\u53F7\u7BA1\u7406-\u6559\u7814\u56E2\u961F\u201D\u67E5\u770B");A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:s.a.createElement("div",{className:"font14 ".concat(N.a.overflow)},s.a.createElement(K.a.Group,{className:N.a.checkbox,defaultValue:pn.current,onChange:function(cn){return pn.current=cn}},(Xt=mt.teachGroupData)===null||Xt===void 0||((At=Xt.groups)===null||At===void 0)?void 0:At.map(function(Ft){return s.a.createElement(K.a,{key:Ft.group_id,value:Ft.group_id},Ft.name)}))),onOk:function(){return new Promise(function(){var cn=Object(U.a)(i.a.mark(function rn(ca,da){var Bn,Yn;return i.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if((Bn=pn.current)!==null&&Bn!==void 0&&Bn.length){Rn.next=3;break}return k.b.info("\u8BF7\u5148\u9009\u62E9\u6559\u7814\u56E2\u961F"),Rn.abrupt("return",da());case 3:return Rn.next=5,Object(oe.j)({ids:Mt,clazz:"ExaminationBank",group_ids:pn.current});case 5:Yn=Rn.sent,(Yn==null?void 0:Yn.status)===0&&(k.b.info("\u6240\u9009\u8BD5\u5377\u6210\u529F\u5206\u4EAB\u81F3\u6559\u7814\u56E2\u961F"),pn.current=[],$n(),Mn([]),ca());case 7:case"end":return Rn.stop()}},rn)}));return function(rn,ca){return cn.apply(this,arguments)}}())}})},Sa=function(){var xe,et;if(!(Mt!=null&&Mt.length))return k.b.info("\u8BF7\u5148\u9009\u62E9\u8BD5\u5377");if(Et!=null&&(xe=Et.filter(function(Ge){return Mt.includes(Ge.id)}))!==null&&xe!==void 0&&xe.find(function(Ge){return Ge.is_random}))return k.b.info("\u968F\u673A\u8BD5\u5377\u4E0D\u53EF\u516C\u5F00\u6216\u5171\u4EAB\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9");if(Et!=null&&(et=Et.filter(function(Ge){return Mt.includes(Ge.id)}))!==null&&et!==void 0&&et.every(function(Ge){return Ge.public}))return k.b.info("\u6240\u9009\u8BD5\u5377\u5DF2\u516C\u5F00\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9");window.localStorage.getItem("paperlibrary-set-public-hint-flag")==="1"?Da():A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u516C\u5F00\u89C4\u5219\u544A\u77E5",maskClosable:!0,icon:null,content:s.a.createElement("div",{className:"font16 c-grey-333"},"\u516C\u5F00\u5E76\u7ECF\u5E73\u53F0\u5BA1\u6838\u540E\uFF0C\u8BE5\u8BD5\u5377\u5C06\u5728\u516C\u5171\u8BD5\u5377\u5E93\u53EF\u89C1\uFF0CEducoder\u6240\u6709\u7528\u6237\u5747\u53EF\u4F7F\u7528\u8BE5\u8BD5\u5377\uFF1B\u4E14\u8BE5\u8BD5\u5377\u4E0B\u6240\u6709\u8BD5\u9898\u4E00\u5E76\u516C\u5F00\u3002",s.a.createElement("br",null),"\u516C\u5F00\u540E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u4F46\u53EF\u4EE5\u64A4\u9500\uFF1B\u64A4\u9500\u516C\u5F00\u540E\u53EF\u4EE5\u4FEE\u6539\u3002",s.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u7533\u8BF7\u516C\u5F00\uFF1F",s.a.createElement("br",null),s.a.createElement(K.a,{className:"mt10",defaultChecked:!1,onChange:function(Xt){return Dn.current=Xt.target.checked}},"\u4E0D\u518D\u63D0\u793A")),onOk:function(){Da()}})},Da=function(){var Le=Object(U.a)(i.a.mark(function xe(){var et,Ge;return i.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return et=Zt==="2"?1:2,At.next=3,Object(ne.c)({ids:Mt,source:et});case 3:Ge=At.sent,Ge.status===0&&(Dn.current&&window.localStorage.setItem("paperlibrary-set-public-hint-flag","1"),Dn.current=!1,$n());case 5:case"end":return At.stop()}},xe)}));return function(){return Le.apply(this,arguments)}}(),Aa=function(){var Le=Object(U.a)(i.a.mark(function xe(et){var Ge,Xt;return i.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,Object(oe.A)({clazz:"ExaminationBank",id:et});case 2:Ge=Ft.sent,Xt=(Ge==null?void 0:Ge.groups)||[],pn.current=[],A.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A\u64A4\u9500",cancelText:"\u53D6\u6D88",title:"\u672C\u9898\u5DF2\u5171\u4EAB\u7684\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:s.a.createElement("div",{className:"font14 ".concat(N.a.overflow)},s.a.createElement("p",{className:"c-grey-999"},"\u9009\u4E2D\u5E76\u786E\u5B9A\uFF0C\u5373\u64A4\u9500\u672C\u9898\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB"),s.a.createElement(K.a.Group,{className:N.a.checkbox,defaultValue:pn.current,onChange:function(rn){return pn.current=rn}},Xt==null?void 0:Xt.map(function(cn){return s.a.createElement(K.a,{key:cn.group_id,value:cn.group_id},cn.name)}))),onOk:function(){var cn=Object(U.a)(i.a.mark(function ca(){return i.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.abrupt("return",new Promise(function(){var Yn=Object(U.a)(i.a.mark(function oa(Rn,fa){var _a,Ua,qn;return i.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(pn.current.length){tt.next=3;break}return k.b.warn("\u8BF7\u9009\u62E9\u9700\u8981\u64A4\u9500\u5171\u4EAB\u7684\u6559\u7814\u56E2\u961F"),tt.abrupt("return",fa());case 3:return Ua=Xt==null||((_a=Xt.map(function(Kt){return Kt.group_id}))===null||_a===void 0)?void 0:_a.filter(function(Kt){return!pn.current.includes(Kt)}),tt.next=6,Object(oe.j)({ids:[et],clazz:"ExaminationBank",group_ids:Ua});case 6:return qn=tt.sent,pn.current=[],(qn==null?void 0:qn.status)===0&&(k.b.info("\u64A4\u9500\u5171\u4EAB\u6210\u529F"),$n()),tt.abrupt("return",Rn());case 10:case"end":return tt.stop()}},oa)}));return function(oa,Rn){return Yn.apply(this,arguments)}}()));case 1:case"end":return Bn.stop()}},ca)}));function rn(){return cn.apply(this,arguments)}return rn}()});case 6:case"end":return Ft.stop()}},xe)}));return function(et){return Le.apply(this,arguments)}}(),ya=function(xe){W.page=1,W.group_id=xe,at(W),Cn(W)},Kn=vt.userInfo||{},Zn=Kn.admin,Jn=Kn.business,ua=Kn.is_shixun_marker,Na=Kn.is_teacher,wa=Kn.user_identity,La=Zn||Jn||ua||Na||wa!=="\u5B66\u751F";return console.log(mt,"paperlibrary"),s.a.createElement(b.Fragment,null,s.a.createElement("section",{className:N.a.page},s.a.createElement("div",{className:N.a.title},"\u8BD5\u5377\u5E93"),s.a.createElement("div",{className:N.a.wrap},s.a.createElement("div",{className:N.a.tabsWrap},s.a.createElement(P.a,{tabBarExtraContent:s.a.createElement("div",null,Zt==="2"&&s.a.createElement(y.a,{value:W.group_id,onChange:ya,size:"large",style:{width:288,marginRight:50}},s.a.createElement(y.a.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),mt==null||((Oe=mt.teachGroupData)===null||Oe===void 0||((we=Oe.groups)===null||we===void 0))?void 0:we.map(function(Le){return s.a.createElement(y.a.Option,{key:Le==null?void 0:Le.group_id,value:Le==null?void 0:Le.group_id},Le==null?void 0:Le.name)})),s.a.createElement(Re,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u641C\u7D22",size:"large",style:{width:300},onChange:function(xe){W.keyword=xe.target.value,at(W)},onSearch:ja})),defaultActiveKey:Zt,onChange:Ba},s.a.createElement(Ae,{tab:"\u516C\u5171",key:"1"}),((ye=mt.teachGroupData)===null||ye===void 0||((Te=ye.groups)===null||Te===void 0)?void 0:Te.length)&&s.a.createElement(Ae,{tab:"\u6559\u7814\u5171\u4EAB",key:"2"}),s.a.createElement(Ae,{tab:"\u6211\u7684",key:"0"}))),s.a.createElement("div",{className:N.a.filterWrap},s.a.createElement(ue.a,{randomValue:W.is_random,showRandomType:Zt==="0",onRandomChange:Ea,disciplinesData:(Ve=mt.disciplinesData)===null||Ve===void 0?void 0:Ve.disciplines,subDisciplineValue:W.sub_discipline_id,directionValue:W.discipline_id,typeValue:W.item_type,difficultyValue:W.difficulty,showItemType:!1,onDirectionChange:ba,onTypeChange:Fa,onDifficultyChange:Ka})),s.a.createElement(m.a,{align:"middle",className:N.a.batchWrap},s.a.createElement(ce.a,{className:"font14 c-light-primary"},s.a.createElement(de.a,{overlay:s.a.createElement(Y.a,{selectedKeys:[Wt]},Qn==null?void 0:Qn.map(function(Le,xe){return s.a.createElement(Y.a.Item,{key:Le.name,onClick:function(){return sa(Le)}},Le.name)}))},s.a.createElement("span",{style:{color:"#464F66"}},s.a.createElement("i",{className:"iconfont icon-paixu font14 mr5 c-light-primary"}),Wt))),La&&s.a.createElement(ce.a,{style:{marginLeft:"auto"}},s.a.createElement(ae.a,{type:"primary",className:"mr20",onClick:Pa},"\u4EBA\u5DE5\u7EC4\u5377"),s.a.createElement(ae.a,{type:"primary",onClick:function(){return x.d.push("/randompaper")}},"\u968F\u673A\u7EC4\u5377"))),s.a.createElement("div",{className:N.a.contentWrap},Et.length?s.a.createElement(S.a,{size:"large",spinning:bt["paperlibrary/getPaperlibraryList"]},Et.map(function(Le,xe){return s.a.createElement(Ze,{showCheckbox:Zt==="0",key:Le.id,data:Le,user:vt,authRole:en,activeTabsKey:Zt,selectIds:Mt,onSetSelectIds:wn,onCancelPublic:Fn,onCancelShare:Aa,onPublicReview:Ta,onEdit:ga,onDelete:yn,onSendToClass:Nn})})):s.a.createElement(S.a,{size:"large",spinning:bt["paperlibrary/getPaperlibraryList"]},s.a.createElement(X.a,null))),Pt!==0&&s.a.createElement(j.a,{showSizeChanger:!1,showQuickJumper:!0,onChange:za,pageSize:W==null?void 0:W.per_page,defaultCurrent:1,current:W.page||1,total:Pt,showTotal:function(xe){return s.a.createElement("span",{className:"mr10"},"\u5171",s.a.createElement("span",{className:"c-orange"},xe),"\u6761\u6570\u636E")}})),s.a.createElement(fe.a,{visible:((ke=mt.actionTabs)===null||ke===void 0?void 0:ke.key)==="Paperlibrary-Auth",occupationValue:(Ye=mt.actionTabs)===null||Ye===void 0||((te=Ye.params)===null||te===void 0)?void 0:te.occupation,onCancel:function(){dt({type:"paperlibrary/setActionTabs",payload:{}})}}),s.a.createElement(B,null),s.a.createElement(_t,null),s.a.createElement(Ot,{onReloadData:$n}),s.a.createElement(sn.a,null),s.a.createElement(A.a,{centered:!0,closable:!1,width:472,footer:null,visible:En},s.a.createElement("section",{className:N.a.modal},s.a.createElement("div",{className:N.a.title},s.a.createElement("span",null," \u9009\u62E9\u7EC4\u5377\u65B9\u5F0F"),s.a.createElement("i",{onClick:function(){return Hn(!1)},className:"icon-guanbi1 current"})),s.a.createElement("div",{className:N.a.list},s.a.createElement("div",{onClick:function(){return Gn(0)},style:{color:kn?"#999999":"#4AA37E"}},s.a.createElement("img",{src:kn?ve.a:Ie.a}),"\u4EBA\u5DE5\u7EC4\u5377"),s.a.createElement("aside",null,"\uFF08\u624B\u52A8\u7F16\u8F91\u521B\u5EFA\u65B0\u8BD5\u5377\uFF09")),s.a.createElement("div",{className:N.a.list},s.a.createElement("div",{onClick:function(){return Gn(1)},style:{color:kn?"#4AA37E":"#999999"}},s.a.createElement("img",{src:kn?Ie.a:ve.a}),"\u968F\u673A\u7EC4\u5377"),s.a.createElement("aside",null,"\uFF08\u7CFB\u7EDF\u4ECE\u5DF2\u6709\u9898\u5E93\u4E2D\u968F\u673A\u9009\u9898\u7EC4\u5377\uFF09")),s.a.createElement("div",{className:N.a.btns},s.a.createElement("div",{onClick:function(){return Hn(!1)},className:N.a.cancel},"\u53D6\u6D88"),s.a.createElement("div",{onClick:function(){kn===0?Pa():x.d.push("/randompaper")},className:N.a.confirm},"\u786E\u8BA4"))))),Zt==="0"&&!!(Mt!=null&&Mt.length)&&s.a.createElement("div",{className:N.a.batch},s.a.createElement("aside",null,s.a.createElement("div",{style:{flexShrink:0,marginRight:20}},s.a.createElement(K.a,{className:"font14",checked:Et!=null&&Et.length?Mt.length===(Et==null?void 0:Et.length):!1,onChange:function(xe){return Ca(xe.target.checked)}},"\u672C\u9875\u5168\u9009",s.a.createElement("span",{style:{color:"#999",fontSize:12}},"/\u5DF2\u9009(",Mt==null?void 0:Mt.length,")"))),s.a.createElement("div",{className:N.a.btns},s.a.createElement("div",{className:N.a.btn,onClick:aa}," ",s.a.createElement("i",{className:"iconfont icon-pilianggongxiang"}),"\u6279\u91CF\u5171\u4EAB"),s.a.createElement("div",{className:N.a.btn,onClick:Sa}," ",s.a.createElement("i",{className:"iconfont icon-pilianggongkai"}),"\u6279\u91CF\u516C\u5F00"),s.a.createElement("div",{className:N.a.btn,onClick:na}," ",s.a.createElement("i",{className:"iconfont icon-piliangshanchu3 c-red"}),"\u6279\u91CF\u5220\u9664"),s.a.createElement("div",{onClick:function(){return Mn([])},style:{marginLeft:"auto"},className:N.a.btn}," ",s.a.createElement("i",{className:"iconfont icon-piliangcaozuoicon2"}),"\u53D6\u6D88\u64CD\u4F5C")))))},ie=z.default=Object(x.a)(function(J){var Q=J.paperlibrary,se=J.user,Oe=J.loading,we=J.globalSetting;return{paperlibrary:Q,user:se,globalSetting:we,loading:Oe.effects}})(me)},bT9E:function(Se,z,e){"use strict";e.d(z,"a",function(){return j});var w=e("VTBJ");function j(De,S){var o=Object(w.a)({},De);return Array.isArray(S)&&S.forEach(function(m){delete o[m]}),o}},bUJZ:function(Se,z){Se.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},biw7:function(Se,z,e){"use strict";var w=e("q1tI"),j=e.n(w),De=w.createContext(null);z.a=De},dmUQ:function(Se,z,e){"use strict";var w=e("Ff2n"),j=e("rePB"),De=e("1OyB"),S=e("vuIU"),o=e("Ji7U"),m=e("md7G"),D=e("foSv"),ae=e("q1tI"),h=e.n(ae),ce=e("TSYQ"),H=e.n(ce),de=e("4IlW");function be(u,M){var P=Object.keys(u);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(u);M&&(T=T.filter(function(i){return Object.getOwnPropertyDescriptor(u,i).enumerable})),P.push.apply(P,T)}return P}function Y(u){for(var M=1;M1?ve-1:0),Ie=1;Ie1?ue-1:0),N=1;N=0)return parseInt(X.slice(X.indexOf("e-")+2),10);var ue=0;return X.indexOf(".")>=0&&(ue=X.length-X.indexOf(".")-1),ue},i.getInputDisplayValue=function(x){var X=x||i.state,ue=X.focused,he=X.inputValue,N=X.value,_e;ue?_e=he:_e=i.toPrecisionAsStep(N),_e==null&&(_e="");var ve=i.formatWrapper(_e);return A(i.props.decimalSeparator)&&(ve=ve.toString().replace(".",i.props.decimalSeparator)),ve},i.recordCursorPosition=function(){try{i.cursorStart=i.input.selectionStart,i.cursorEnd=i.input.selectionEnd,i.currentValue=i.input.value,i.cursorBefore=i.input.value.substring(0,i.cursorStart),i.cursorAfter=i.input.value.substring(i.cursorEnd)}catch(x){}},i.restoreByAfter=function(x){if(x===void 0)return!1;var X=i.input.value,ue=X.lastIndexOf(x);if(ue===-1)return!1;var he=i.cursorBefore.length;return i.lastKeyCode===de.a.DELETE&&i.cursorBefore.charAt(he-1)===x[0]?(i.fixCaret(he,he),!0):ue+x.length===X.length?(i.fixCaret(ue,ue),!0):!1},i.partRestoreByAfter=function(x){return x===void 0?!1:Array.prototype.some.call(x,function(X,ue){var he=x.substring(ue);return i.restoreByAfter(he)})},i.isNotCompleteNumber=function(x){return isNaN(x)||x===""||x===null||x&&x.toString().indexOf(".")===x.toString().length-1},i.stop=function(){i.autoStepTimer&&clearTimeout(i.autoStepTimer)},i.down=function(x,X,ue){i.pressingUpOrDown=!0,i.step("down",x,X,ue)},i.up=function(x,X,ue){i.pressingUpOrDown=!0,i.step("up",x,X,ue)},i.saveInput=function(x){i.input=x};var b=T.value;b===void 0&&(b=T.defaultValue),i.state={focused:T.autoFocus};var s=i.getValidValue(i.toNumber(b));return i.state=Y(Y({},i.state),{},{inputValue:i.toPrecisionAsStep(s),value:s}),i}return Object(S.a)(P,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(i){var b=this.props,s=b.value,x=b.onChange,X=b.max,ue=b.min,he=this.state.focused;if(i){if(!U(i.value,s)||!U(i.max,X)||!U(i.min,ue)){var N=he?s:this.getValidValue(s),_e;this.pressingUpOrDown?_e=N:this.inputting?_e=this.rawInput:_e=this.toPrecisionAsStep(N),this.setState({value:N,inputValue:_e})}var ve="value"in this.props?s:this.state.value;"max"in this.props&&i.max!==X&&typeof ve=="number"&&ve>X&&x&&x(X),"min"in this.props&&i.min!==ue&&typeof ve=="number"&&ve1&&arguments[1]!==void 0?arguments[1]:this.props.min,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,x=parseFloat(i);return isNaN(x)?i:(xs&&(x=s),x)}},{key:"setValue",value:function(i,b){var s=this.props.precision,x=this.isNotCompleteNumber(parseFloat(i))?null:parseFloat(i),X=this.state.value,ue=X===void 0?null:X,he=this.state.inputValue,N=he===void 0?null:he,_e=typeof x=="number"?x.toFixed(s):"".concat(x),ve=x!==ue||_e!=="".concat(N);return"value"in this.props?(N=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:N},b)):this.setState({value:x,inputValue:this.toPrecisionAsStep(i)},b),ve&&this.props.onChange(x),x}},{key:"getMaxPrecision",value:function(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=this.props,x=s.precision,X=s.step;if(A(x))return x;var ue=this.getPrecision(b),he=this.getPrecision(X),N=this.getPrecision(i);return i?Math.max(N,ue+he):ue+he}},{key:"getPrecisionFactor",value:function(i){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=this.getMaxPrecision(i,b);return Math.pow(10,s)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(i){return this.props.formatter?this.props.formatter(i):i}},{key:"toPrecisionAsStep",value:function(i){if(this.isNotCompleteNumber(i)||i==="")return i;var b=Math.abs(this.getMaxPrecision(i));return isNaN(b)?i.toString():Number(i).toFixed(b)}},{key:"toNumber",value:function(i){var b=this.props.precision,s=this.state.focused,x=i&&i.length>16&&s;return this.isNotCompleteNumber(i)||x?i:A(b)?Math.round(i*Math.pow(10,b))/Math.pow(10,b):Number(i)}},{key:"upStep",value:function(i,b){var s=this.props.step,x=this.getPrecisionFactor(i,b),X=Math.abs(this.getMaxPrecision(i,b)),ue=((x*i+x*s*b)/x).toFixed(X);return this.toNumber(ue)}},{key:"downStep",value:function(i,b){var s=this.props.step,x=this.getPrecisionFactor(i,b),X=Math.abs(this.getMaxPrecision(i,b)),ue=((x*i-x*s*b)/x).toFixed(X);return this.toNumber(ue)}},{key:"step",value:function(i,b){var s=this,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,X=arguments.length>3?arguments[3]:void 0;this.stop(),b&&(b.persist(),b.preventDefault());var ue=this.props;if(ue.disabled)return;var he=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(he))return;var N=this["".concat(i,"Step")](he,x),_e=N>ue.max||Nue.max?N=ue.max:N=Ne),Re=(Ot||Ot===0)&&(isNaN(Ot)||Number(Ot)<=Ie),me=Ae||x||X,ie=Re||x||X,J=H()("".concat(s,"-handler"),"".concat(s,"-handler-up"),Object(j.a)({},"".concat(s,"-handler-up-disabled"),me)),Q=H()("".concat(s,"-handler"),"".concat(s,"-handler-down"),Object(j.a)({},"".concat(s,"-handler-down-disabled"),ie)),se=ue?{onTouchStart:me?L:this.up,onTouchEnd:this.stop}:{onMouseDown:me?L:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Oe=ue?{onTouchStart:ie?L:this.down,onTouchEnd:this.stop}:{onMouseDown:ie?L:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return h.a.createElement("div",{className:R,style:fe,title:le,onMouseEnter:Me,onMouseLeave:ge,onMouseOver:B,onMouseOut:G,onFocus:function(){return null},onBlur:function(){return null}},h.a.createElement("div",{className:"".concat(s,"-handler-wrap")},h.a.createElement("span",Object.assign({unselectable:"on"},se,{role:"button","aria-label":"Increase Value","aria-disabled":me,className:J}),N||h.a.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-up-inner"),onClick:k})),h.a.createElement("span",Object.assign({unselectable:"on"},Oe,{role:"button","aria-label":"Decrease Value","aria-disabled":ie,className:Q}),_e||h.a.createElement("span",{unselectable:"on",className:"".concat(s,"-handler-down-inner"),onClick:k}))),h.a.createElement("div",{className:"".concat(s,"-input-wrap")},h.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ie,"aria-valuemax":Ne,"aria-valuenow":Ot,required:je,type:pe,placeholder:Fe,onPaste:Ze,onClick:Ke,onMouseUp:this.onMouseUp,className:"".concat(s,"-input"),tabIndex:re,autoComplete:he,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:oe?this.onKeyDown:L,onKeyUp:oe?this.onKeyUp:L,autoFocus:ze,maxLength:Qe,readOnly:X,disabled:x,max:Ne,min:Ie,step:ct,name:$,title:le,id:st,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Pe),pattern:$e,inputMode:Je,onInput:yt},ne))))}}]),P}(h.a.Component);F.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:Ee,min:-Ee,step:1,style:{},onChange:L,onKeyDown:L,onPressEnter:L,onFocus:L,onBlur:L,parser:V,required:!1,autoComplete:"off"};var v=F,C=z.a=v},fVvY:function(Se,z,e){Se.exports=e.p+"static/c.a56eeddf.svg"},fyJ8:function(Se,z,e){"use strict";var w=e("rePB"),j=e("VTBJ"),De=e("Ff2n"),S=e("U8pU"),o=e("q1tI"),m=e.n(o),D=e("TSYQ"),ae=e.n(D),h=e("c+Xe"),ce=e("sR1s");function H(y){return y&&Object(S.a)(y)==="object"&&!Array.isArray(y)&&!o.isValidElement(y)}function de(y){return typeof y=="string"?!0:Object(h.c)(y)}function be(y,L){var k,V=y.prefixCls,Z=y.className,K=y.record,Ee=y.index,A=y.dataIndex,U=y.render,F=y.children,v=y.component,C=v===void 0?"td":v,u=y.colSpan,M=y.rowSpan,P=y.fixLeft,T=y.fixRight,i=y.firstFixLeft,b=y.lastFixLeft,s=y.firstFixRight,x=y.lastFixRight,X=y.appendNode,ue=y.additionalProps,he=ue===void 0?{}:ue,N=y.ellipsis,_e=y.align,ve=y.rowType,Ne=y.isSticky,Ie="".concat(V,"-cell"),fe,le;if(F)le=F;else{var Me=Object(ce.b)(K,A);if(le=Me,U){var ge=U(Me,K,Ee);H(ge)?(le=ge.children,fe=ge.props):le=ge}}Object(S.a)(le)==="object"&&!Array.isArray(le)&&!o.isValidElement(le)&&(le=null),N&&(b||s)&&(le=o.createElement("span",{className:"".concat(Ie,"-content")},le));var B=fe||{},G=B.colSpan,je=B.rowSpan,Ke=B.style,re=B.className,pe=Object(De.a)(B,["colSpan","rowSpan","style","className"]),Fe=G!==void 0?G:u,st=je!==void 0?je:M;if(Fe===0||st===0)return null;var Je={},$e=typeof P=="number",ct=typeof T=="number";$e&&(Je.position="sticky",Je.left=P),ct&&(Je.position="sticky",Je.right=T);var Qe={};_e&&(Qe.textAlign=_e);var ze,$=N===!0?{showTitle:!0}:N;$&&($.showTitle||ve==="header")&&(typeof le=="string"||typeof le=="number"?ze=le.toString():o.isValidElement(le)&&typeof le.props.children=="string"&&(ze=le.props.children));var Ze=Object(j.a)(Object(j.a)(Object(j.a)({title:ze},pe),he),{},{colSpan:Fe&&Fe!==1?Fe:null,rowSpan:st&&st!==1?st:null,className:ae()(Ie,Z,(k={},Object(w.a)(k,"".concat(Ie,"-fix-left"),$e),Object(w.a)(k,"".concat(Ie,"-fix-left-first"),i),Object(w.a)(k,"".concat(Ie,"-fix-left-last"),b),Object(w.a)(k,"".concat(Ie,"-fix-right"),ct),Object(w.a)(k,"".concat(Ie,"-fix-right-first"),s),Object(w.a)(k,"".concat(Ie,"-fix-right-last"),x),Object(w.a)(k,"".concat(Ie,"-ellipsis"),N),Object(w.a)(k,"".concat(Ie,"-with-append"),X),Object(w.a)(k,"".concat(Ie,"-fix-sticky"),($e||ct)&&Ne),k),he.className,re),style:Object(j.a)(Object(j.a)(Object(j.a)(Object(j.a)({},he.style),Qe),Je),Ke),ref:de(C)?L:null});return o.createElement(C,Object.assign({},Ze),X,le)}var Y=o.forwardRef(be);Y.displayName="Cell";var _=o.memo(Y,function(y,L){return L.shouldCellUpdate?!L.shouldCellUpdate(L.record,y.record):!1});z.a=_},hW8S:function(Se,z,e){"use strict";e.d(z,"a",function(){return S}),e.d(z,"c",function(){return o}),e.d(z,"b",function(){return m});var w=e("VTBJ"),j=e("Ff2n"),De=e("Kwbf"),S="RC_TABLE_INTERNAL_COL_DEFINE";function o(D){var ae=D.expandable,h=Object(j.a)(D,["expandable"]);return"expandable"in D?Object(w.a)(Object(w.a)({},h),ae):h}function m(D){return Object.keys(D).reduce(function(ae,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-")&&(ae[h]=D[h]),ae},{})}},iris:function(Se,z,e){"use strict";e.d(z,"a",function(){return be});var w=e("qVdP"),j=e("jsC+"),De=e("lUTK"),S=e("BvKs"),o=e("tJVT"),m=e("q1tI"),D=e.n(m),ae=e("Q0Vu"),h=e.n(ae),ce=[{name:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{name:"\u5355\u9009\u9898",value:"SINGLE"},{name:"\u591A\u9009\u9898",value:"MULTIPLE"},{name:"\u5224\u65AD\u9898",value:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",value:"COMPLETION"},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{name:"\u7EC4\u5408\u9898",value:"COMBINATION"}],H=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],de=[{name:"\u968F\u673A\u7EC4\u5377",value:1},{name:"\u4EBA\u5DE5\u7EC4\u5377",value:2}],be=function(_){var y=_.showSelectAll,L=y===void 0?!1:y,k=_.disciplinesData,V=k===void 0?[]:k,Z=_.knowledgeData,K=Z===void 0?[]:Z,Ee=_.directionValue,A=_.subDisciplineValue,U=_.typeValue,F=_.knowledgeValue,v=_.showKnowledge,C=v===void 0?!1:v,u=_.showRandomType,M=u===void 0?!1:u,P=_.difficultyValue,T=_.randomValue,i=_.selectAll,b=_.className,s=_.showShixun,x=s===void 0?!1:s,X=_.showItemType,ue=X===void 0?!0:X,he=_.onShixunChange,N=he===void 0?function(){}:he,_e=_.onDirectionChange,ve=_e===void 0?function(){}:_e,Ne=_.onTypeChange,Ie=Ne===void 0?function(){}:Ne,fe=_.onDifficultyChange,le=fe===void 0?function(){}:fe,Me=_.onKnowledgeChange,ge=Me===void 0?function(){}:Me,B=_.onRandomChange,G=B===void 0?function(){}:B,je=Object(m.useState)(0),Ke=Object(o.a)(je,2),re=Ke[0],pe=Ke[1],Fe=Object(m.useRef)(null),st=Object(m.useState)(0),Je=Object(o.a)(st,2),$e=Je[0],ct=Je[1],Qe=Object(m.useRef)(null);Object(m.useEffect)(function(){if(V.length!==0){var $;(Fe==null||(($=Fe.current)===null||$===void 0)?void 0:$.clientHeight)>90?pe(1):pe(0)}V.length===0&&pe(0)},[V]),Object(m.useEffect)(function(){if(console.log(K.length===0,"\u6570\u91CF"),K.length!==0){var $,Ze;console.log(Qe==null||(($=Qe.current)===null||$===void 0)?void 0:$.clientHeight,"\u9AD8\u5EA6"),(Qe==null||((Ze=Qe.current)===null||Ze===void 0)?void 0:Ze.clientHeight)>90?ct(1):ct(0)}K.length===0&&ct(0)},[K]);var ze=function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],yt=arguments.length>1?arguments[1]:void 0;return D.a.createElement(S.a,{className:h.a.subMenu},Ze.map(function(_t){return D.a.createElement(S.a.Item,{key:_t.id},D.a.createElement("a",{className:"".concat(h.a.subItem," ").concat(A===_t.id?h.a.subActive:""),onClick:function(){return ve(yt,_t.id)}},_t.name))}))};return D.a.createElement("aside",{className:b?"".concat(h.a.main," ").concat(b):h.a.main},D.a.createElement("div",{className:h.a.wrap},D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u65B9\u5411:"),D.a.createElement("span",null,D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee?"":h.a.active," "),onClick:function(){return ve(null)}},"\u5168\u90E8")),D.a.createElement("div",{className:h.a.directionContentWrap,style:{overflow:"hidden",height:re===1?88:"auto"}},V.map(function($){var Ze;return D.a.createElement(D.a.Fragment,{key:$.id},((Ze=$.sub_disciplines)===null||Ze===void 0?void 0:Ze.length)>0?D.a.createElement(j.a,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(_t){return _t.parentNode},overlay:function(){return ze($.sub_disciplines,$.id)}},D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name)):D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name))})),D.a.createElement("div",{className:h.a.directionContentWrap,ref:Fe,style:{height:"auto",position:"fixed",left:0,top:0,width:1024,visibility:"hidden"}},V.map(function($){var Ze;return D.a.createElement(D.a.Fragment,{key:$.id},((Ze=$.sub_disciplines)===null||Ze===void 0?void 0:Ze.length)>0?D.a.createElement(j.a,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(_t){return _t.parentNode},overlay:function(){return ze($.sub_disciplines,$.id)}},D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name)):D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(Ee===$.id?h.a.active:""," "),onClick:function(){return ve($.id)}},$.name))})),!!re&&D.a.createElement("div",{className:h.a.action},re===1&&D.a.createElement("span",{onClick:function(){return pe(2)}},"\u5C55\u5F00",D.a.createElement("i",{className:"iconfont icon-xiala"})),re===2&&D.a.createElement("span",{onClick:function(){return pe(1)}},"\u6536\u8D77",D.a.createElement("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})))),C&&D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u77E5\u8BC6\u70B9:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(F===-1?h.a.active:""," "),onClick:function(){return ge(-1)}},"\u6211\u7684"),D.a.createElement("div",{className:h.a.directionContentWrap,style:{overflow:"hidden",height:$e===1?88:"auto"}},K.map(function($){return D.a.createElement("li",{key:$.id,className:"".concat(h.a.directionItem," ").concat(F===$.id?h.a.active:""," "),onClick:function(){return ge($.id)}},$.name)})),D.a.createElement("div",{ref:Qe,className:h.a.directionContentWrap,style:{height:"auto",position:"fixed",left:0,top:0,width:1010,visibility:"hidden"}},K.map(function($){return D.a.createElement("li",{key:$.id,className:"".concat(h.a.directionItem," ").concat(F===$.id?h.a.active:""," "),onClick:function(){return ge($.id)}},$.name)})),!!$e&&D.a.createElement("div",{className:h.a.action},$e===1&&D.a.createElement("span",{onClick:function(){return ct(2)}},"\u5C55\u5F00",D.a.createElement("i",{className:"iconfont icon-xiala"})),$e===2&&D.a.createElement("span",{onClick:function(){return ct(1)}},"\u6536\u8D77",D.a.createElement("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})))),ue&&D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u9898\u578B:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(U?"":h.a.active," "),onClick:function(){return Ie(null)}},"\u5168\u90E8"),D.a.createElement("div",{className:h.a.directionContentWrap},ce.map(function($){return D.a.createElement("li",{key:$.name,className:"".concat(h.a.directionItem," ").concat(U===$.value?h.a.active:""," "),onClick:function(){return Ie($.value)}},$.name)}),x&&D.a.createElement("li",{key:"\u5B9E\u8BAD\u9898",className:h.a.directionItem,onClick:function(){return N()}},"\u5B9E\u8BAD\u9898"))),D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u96BE\u5EA6:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(P?"":h.a.active," "),onClick:function(){return le(null)}},"\u5168\u90E8"),D.a.createElement("div",{className:h.a.directionContentWrap},H.map(function($){return D.a.createElement("li",{key:$.name,className:"".concat(h.a.directionItem," ").concat(P===$.value?h.a.active:""," "),onClick:function(){return le($.value)}},$.name)}))),M&&D.a.createElement("div",{className:h.a.content},D.a.createElement("span",{className:h.a.name},"\u7C7B\u578B:"),D.a.createElement("li",{className:"".concat(h.a.directionItem," ").concat(T?"":h.a.active," "),onClick:function(){return G(null)}},"\u5168\u90E8"),D.a.createElement("div",{className:h.a.directionContentWrap},de.map(function($){return D.a.createElement("li",{key:$.name,className:"".concat(h.a.directionItem," ").concat(T===$.value?h.a.active:""," "),onClick:function(){return G($.value)}},$.name)})))))}},k3GJ:function(Se,z,e){"use strict";e.d(z,"a",function(){return po});var w=e("rePB"),j=e("ODXe"),De=e("Ff2n"),S=e("VTBJ"),o=e("q1tI"),m=e("TSYQ"),D=e.n(m),ae=e("Zm9Q"),h=e("6cGi"),ce=e("KQm4"),H=e("xEkU"),de=e.n(H),be=e("t23M");function Y(r){var f=Object(o.useRef)(),E=Object(o.useRef)(!1);function c(){for(var t=arguments.length,a=new Array(t),n=0;nO&&(q=O-ee),Object(o.useMemo)(function(){if(!a.length)return[0,0];for(var Ce=a.length,Xe=Ce,lt=0;ltp+q){Xe=lt-1;break}}for(var ft=0,ut=Ce-1;ut>=0;ut-=1){var rt=r.get(a[ut].key)||K;if(rt[g]1&&arguments[1]!==void 0?arguments[1]:!1,c=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(c){if(E){var t=getComputedStyle(f),a=t.marginLeft,n=t.marginRight;c+=+a.replace("px","")+ +n.replace("px","")}c=+c.toFixed(6)}return c||0},ze=function(f,E,c){f&&Object(s.a)(f.style)==="object"&&(f.style[E]=c)},$=function(){return re.any},Ze=e("bdgK"),yt=e("i8i4"),_t=e.n(yt),Nt=e("wgJM"),Ot=e("l4aY"),sn=e("m+aA"),R=e("c+Xe"),ne=e("zT1h"),oe=e("QC+M");function Pe(r,f,E){return E?r[0]===f[0]:r[0]===f[0]&&r[1]===f[1]}function Ae(r,f,E){var c=r[f]||{};return Object(S.a)(Object(S.a)({},c),E)}function Re(r,f,E,c){for(var t=E.points,a=Object.keys(r),n=0;n1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(Nt.a)(function(){t<=1?c({isCanceled:function(){return a!==r.current}}):E(c,t-1)});r.current=a}return o.useEffect(function(){return function(){f()}},[]),[E,f]},mn=[ot,xt,pt,W],On=!1,an=!0;function Et(r){return r===pt||r===W}var Qt=function(r,f){var E=o.useState(Bt),c=Object(j.a)(E,2),t=c[0],a=c[1],n=Pt(),l=Object(j.a)(n,2),d=l[0],g=l[1];function p(){a(ot)}return kt(function(){if(t!==Bt&&t!==W){var O=mn.indexOf(t),I=mn[O+1],ee=f(t);ee===On?a(I):d(function(q){function Ce(){if(q.isCanceled())return;a(I)}ee===!0?Ce():Promise.resolve(ee).then(Ce)})}},[r,t]),o.useEffect(function(){return function(){g()}},[]),[p,t]},Pn=function(r){var f=Object(o.useRef)(),E=Object(o.useRef)(r);E.current=r;var c=o.useCallback(function(n){E.current(n)},[]);function t(n){n&&(n.removeEventListener(mt,c),n.removeEventListener(te,c))}function a(n){f.current&&f.current!==n&&t(f.current),n&&n!==f.current&&(n.addEventListener(mt,c),n.addEventListener(te,c),f.current=n)}return o.useEffect(function(){return function(){t(f.current)}},[]),[a,t]};function zt(r,f,E,c){var t=c.motionEnter,a=t===void 0?!0:t,n=c.motionAppear,l=n===void 0?!0:n,d=c.motionLeave,g=d===void 0?!0:d,p=c.motionDeadline,O=c.motionLeaveImmediately,I=c.onAppearPrepare,ee=c.onEnterPrepare,q=c.onLeavePrepare,Ce=c.onAppearStart,Xe=c.onEnterStart,lt=c.onLeaveStart,qe=c.onAppearActive,ft=c.onEnterActive,ut=c.onLeaveActive,rt=c.onAppearEnd,it=c.onEnterEnd,Tt=c.onLeaveEnd,ht=c.onVisibleChanged,qt=at(),Lt=Object(j.a)(qt,2),We=Lt[0],Be=Lt[1],gt=at(He),jt=Object(j.a)(gt,2),Ue=jt[0],St=jt[1],Gt=at(null),Dt=Object(j.a)(Gt,2),It=Dt[0],Yt=Dt[1],hn=Object(o.useRef)(!1),Ln=Object(o.useRef)(null),tn=Object(o.useRef)(!1),Un=Object(o.useRef)(null);function ea(){var $t=E();return $t||Un.current}var zn=Object(o.useRef)(!1);function Wn($t){var wt=ea();if($t&&!$t.deadline&&$t.target!==wt)return;var bn;Ue===bt&&zn.current?bn=rt==null?void 0:rt(wt,$t):Ue===dt&&zn.current?bn=it==null?void 0:it(wt,$t):Ue===nt&&zn.current&&(bn=Tt==null?void 0:Tt(wt,$t)),bn!==!1&&!tn.current&&(St(He),Yt(null))}var nn=Pn(Wn),jn=Object(j.a)(nn,1),vn=jn[0],dn=o.useMemo(function(){var $t,wt,bn;switch(Ue){case"appear":return $t={},Object(w.a)($t,ot,I),Object(w.a)($t,xt,Ce),Object(w.a)($t,pt,qe),$t;case"enter":return wt={},Object(w.a)(wt,ot,ee),Object(w.a)(wt,xt,Xe),Object(w.a)(wt,pt,ft),wt;case"leave":return bn={},Object(w.a)(bn,ot,q),Object(w.a)(bn,xt,lt),Object(w.a)(bn,pt,ut),bn;default:return{}}},[Ue]),ma=Qt(Ue,function($t){if($t===ot){var wt=dn[ot];return wt?wt(ea()):On}if(Vt in dn){var bn;Yt(((bn=dn[Vt])===null||bn===void 0?void 0:bn.call(dn,ea(),null))||null)}return Vt===pt&&(vn(ea()),p>0&&(clearTimeout(Ln.current),Ln.current=setTimeout(function(){Wn({deadline:!0})},p))),an}),pa=Object(j.a)(ma,2),xa=pa[0],Vt=pa[1],ra=Et(Vt);zn.current=ra,kt(function(){Be(f);var $t=hn.current;if(hn.current=!0,!r)return;var wt;!$t&&f&&l&&(wt=bt),$t&&f&&a&&(wt=dt),($t&&!f&&g||!$t&&O&&!f&&g)&&(wt=nt),wt&&(St(wt),xa())},[f]),Object(o.useEffect)(function(){(Ue===bt&&!l||Ue===dt&&!a||Ue===nt&&!g)&&St(He)},[l,a,g]),Object(o.useEffect)(function(){return function(){clearTimeout(Ln.current),tn.current=!0}},[]),Object(o.useEffect)(function(){We!==void 0&&Ue===He&&(ht==null||ht(We))},[We,Ue]);var Ma=It;return dn[ot]&&Vt===xt&&(Ma=Object(S.a)({transition:"none"},Ma)),[Ue,Vt,Ma,We!=null?We:f]}var en=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){return Object(U.a)(this,E),f.apply(this,arguments)}return Object(F.a)(E,[{key:"render",value:function(){return this.props.children}}]),E}(o.Component),Jt=en;function Tn(r){var f=r;Object(s.a)(r)==="object"&&(f=r.transitionSupport);function E(t){return!!(t.motionName&&f)}var c=o.forwardRef(function(t,a){var n=t.visible,l=n===void 0?!0:n,d=t.removeOnLeave,g=d===void 0?!0:d,p=t.forceRender,O=t.children,I=t.motionName,ee=t.leavedClassName,q=t.eventProps,Ce=E(t),Xe=Object(o.useRef)(),lt=Object(o.useRef)();function qe(){try{return Object(sn.a)(Xe.current||lt.current)}catch(St){return null}}var ft=zt(Ce,l,qe,t),ut=Object(j.a)(ft,4),rt=ut[0],it=ut[1],Tt=ut[2],ht=ut[3],qt=o.useRef(ht);ht&&(qt.current=!0);var Lt=Object(o.useRef)(a);Lt.current=a;var We=o.useCallback(function(St){Xe.current=St,Object(R.b)(Lt.current,St)},[]),Be,gt=Object(S.a)(Object(S.a)({},q),{},{visible:l});if(!O)Be=null;else if(rt===He||!E(t))ht?Be=O(Object(S.a)({},gt),We):!g&&qt.current?Be=O(Object(S.a)(Object(S.a)({},gt),{},{className:ee}),We):p?Be=O(Object(S.a)(Object(S.a)({},gt),{},{style:{display:"none"}}),We):Be=null;else{var jt,Ue;it===ot?Ue="prepare":Et(it)?Ue="active":it===xt&&(Ue="start"),Be=O(Object(S.a)(Object(S.a)({},gt),{},{className:D()(vt(I,rt),(jt={},Object(w.a)(jt,vt(I,"".concat(rt,"-").concat(Ue)),Ue),Object(w.a)(jt,I,typeof I=="string"),jt)),style:Tt}),We)}return o.createElement(Jt,{ref:lt},Be)});return c.displayName="CSSMotion",c}var Sn=Tn(Ye),En="add",Hn="keep",In="remove",Xn="removed";function kn(r){var f;return r&&Object(s.a)(r)==="object"&&"key"in r?f=r:f={key:r},Object(S.a)(Object(S.a)({},f),{},{key:String(f.key)})}function Gn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(kn)}function on(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],E=[],c=0,t=f.length,a=Gn(r),n=Gn(f);a.forEach(function(g){for(var p=!1,O=c;O1});return d.forEach(function(g){E=E.filter(function(p){var O=p.key,I=p.status;return O!==g||I!==In}),E.forEach(function(p){p.key===g&&(p.status=Hn)})}),E}var ln=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Zt(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn,E=function(c){Object(C.a)(a,c);var t=Object(u.a)(a);function a(){var n;return Object(U.a)(this,a),n=t.apply(this,arguments),n.state={keyEntities:[]},n.removeKey=function(l){n.setState(function(d){var g=d.keyEntities;return{keyEntities:g.map(function(p){return p.key!==l?p:Object(S.a)(Object(S.a)({},p),{},{status:Xn})})}})},n}return Object(F.a)(a,[{key:"render",value:function(){var l=this,d=this.state.keyEntities,g=this.props,p=g.component,O=g.children,I=g.onVisibleChanged,ee=Object(De.a)(g,["component","children","onVisibleChanged"]),q=p||o.Fragment,Ce={};return ln.forEach(function(Xe){Ce[Xe]=ee[Xe],delete ee[Xe]}),delete ee.keys,o.createElement(q,ee,d.map(function(Xe){var lt=Xe.status,qe=Object(De.a)(Xe,["status"]),ft=lt===En||lt===Hn;return o.createElement(f,Object(A.a)({},Ce,{key:qe.key,visible:ft,eventProps:qe,onVisibleChanged:function(rt){I==null||I(rt,{key:qe.key}),rt||l.removeKey(qe.key)}}),O)}))}}],[{key:"getDerivedStateFromProps",value:function(l,d){var g=l.keys,p=d.keyEntities,O=Gn(g),I=on(p,O);return{keyEntities:I.filter(function(ee){var q=p.find(function(Ce){var Xe=Ce.key;return ee.key===Xe});return!(q&&q.status===Xn&&ee.status===In)})}}}]),a}(o.Component);return E.defaultProps={component:"div"},E}var un=Zt(Ye),gn=Sn;function xn(r){var f=r.prefixCls,E=r.motion,c=r.animation,t=r.transitionName;return E||(c?{motionName:"".concat(f,"-").concat(c)}:t?{motionName:t}:null)}function Mt(r){var f=r.prefixCls,E=r.visible,c=r.zIndex,t=r.mask,a=r.maskMotion,n=r.maskAnimation,l=r.maskTransitionName;if(!t)return null;var d={};return(a||l||n)&&(d=Object(S.a)({motionAppear:!0},xn({motion:a,prefixCls:f,transitionName:l,animation:n}))),o.createElement(gn,Object(A.a)({},d,{visible:E,removeOnLeave:!0}),function(g){var p=g.className;return o.createElement("div",{style:{zIndex:c},className:D()("".concat(f,"-mask"),p)})})}var Mn=e("9mu1"),Dn=e("o0o1"),pn=e.n(Dn),Ra=e("HaE+"),ta=["measure","align",null,"motion"],Wt=function(r,f){var E=Object(o.useState)(null),c=Object(j.a)(E,2),t=c[0],a=c[1],n=Object(o.useRef)(),l=Object(o.useRef)(!1);function d(O){l.current||a(O)}function g(){Nt.a.cancel(n.current)}function p(O){g(),n.current=Object(Nt.a)(function(){d(function(I){switch(t){case"align":return"motion";case"motion":return"stable";default:}return I}),O==null||O()})}return Object(o.useEffect)(function(){d("measure")},[r]),Object(o.useEffect)(function(){switch(t){case"measure":f();break;default:}t&&(n.current=Object(Nt.a)(Object(Ra.a)(pn.a.mark(function O(){var I,ee;return pn.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:I=ta.indexOf(t),ee=ta[I+1],ee&&I!==-1&&d(ee);case 3:case"end":return Ce.stop()}},O)}))))},[t]),Object(o.useEffect)(function(){return function(){l.current=!0,g()}},[]),[t,p]},ia=function(r){var f=o.useState({width:0,height:0}),E=Object(j.a)(f,2),c=E[0],t=E[1];function a(l){t({width:l.offsetWidth,height:l.offsetHeight})}var n=o.useMemo(function(){var l={};if(r){var d=c.width,g=c.height;r.indexOf("height")!==-1&&g?l.height=g:r.indexOf("minHeight")!==-1&&g&&(l.minHeight=g),r.indexOf("width")!==-1&&d?l.width=d:r.indexOf("minWidth")!==-1&&d&&(l.minWidth=d)}return l},[r,c]);return[n,a]},Qn=o.forwardRef(function(r,f){var E=r.visible,c=r.prefixCls,t=r.className,a=r.style,n=r.children,l=r.zIndex,d=r.stretch,g=r.destroyPopupOnHide,p=r.forceRender,O=r.align,I=r.point,ee=r.getRootDomNode,q=r.getClassNameFromAlign,Ce=r.onAlign,Xe=r.onMouseEnter,lt=r.onMouseLeave,qe=r.onMouseDown,ft=r.onTouchStart,ut=Object(o.useRef)(),rt=Object(o.useRef)(),it=Object(o.useState)(),Tt=Object(j.a)(it,2),ht=Tt[0],qt=Tt[1],Lt=ia(d),We=Object(j.a)(Lt,2),Be=We[0],gt=We[1];function jt(){d&>(ee())}var Ue=Wt(E,jt),St=Object(j.a)(Ue,2),Gt=St[0],Dt=St[1],It=Object(o.useRef)();function Yt(){return I||ee}function hn(){var nn;(nn=ut.current)===null||nn===void 0||nn.forceAlign()}function Ln(nn,jn){var vn=q(jn);ht!==vn&&qt(vn),Gt==="align"&&(ht!==vn?Promise.resolve().then(function(){hn()}):Dt(function(){var dn;(dn=It.current)===null||dn===void 0||dn.call(It)}),Ce==null||Ce(nn,jn))}var tn=Object(S.a)({},xn(r));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(nn){var jn=tn[nn];tn[nn]=function(vn,dn){return Dt(),jn==null?void 0:jn(vn,dn)}});function Un(){return new Promise(function(nn){It.current=nn})}o.useEffect(function(){!tn.motionName&&Gt==="motion"&&Dt()},[tn.motionName,Gt]),o.useImperativeHandle(f,function(){return{forceAlign:hn,getElement:function(){return rt.current}}});var ea=Object(S.a)(Object(S.a)({},Be),{},{zIndex:l,opacity:Gt==="motion"||Gt==="stable"||!E?void 0:0,pointerEvents:Gt==="stable"?void 0:"none"},a),zn=!0;(O==null?void 0:O.points)&&(Gt==="align"||Gt==="stable")&&(zn=!1);var Wn=n;return o.Children.count(n)>1&&(Wn=o.createElement("div",{className:"".concat(c,"-content")},n)),o.createElement(gn,Object(A.a)({visible:E,ref:rt,leavedClassName:"".concat(c,"-hidden")},tn,{onAppearPrepare:Un,onEnterPrepare:Un,removeOnLeave:g,forceRender:p}),function(nn,jn){var vn=nn.className,dn=nn.style,ma=D()(c,t,ht,vn);return o.createElement(Mn.a,{target:Yt(),key:"popup",ref:ut,monitorWindowResize:!0,disabled:zn,align:O,onAlign:Ln},o.createElement("div",{ref:jn,className:ma,onMouseEnter:Xe,onMouseLeave:lt,onMouseDownCapture:qe,onTouchStartCapture:ft,style:Object(S.a)(Object(S.a)({},dn),ea)},Wn))})});Qn.displayName="PopupInner";var va=Qn,An=o.forwardRef(function(r,f){var E=r.prefixCls,c=r.visible,t=r.zIndex,a=r.children,n=r.mobile;n=n===void 0?{}:n;var l=n.popupClassName,d=n.popupStyle,g=n.popupMotion,p=g===void 0?{}:g,O=n.popupRender,I=o.useRef();o.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return I.current}}});var ee=Object(S.a)({zIndex:t},d),q=a;return o.Children.count(a)>1&&(q=o.createElement("div",{className:"".concat(E,"-content")},a)),O&&(q=O(q)),o.createElement(gn,Object(A.a)({visible:c,ref:I,removeOnLeave:!0},p),function(Ce,Xe){var lt=Ce.className,qe=Ce.style,ft=D()(E,l,lt);return o.createElement("div",{ref:Xe,className:ft,style:Object(S.a)(Object(S.a)({},qe),ee)},q)})});An.displayName="MobilePopupInner";var Cn=An,$n=["visible","mobile"],ba=o.forwardRef(function(r,f){var E=r.visible,c=r.mobile,t=Object(De.a)(r,$n),a=Object(o.useState)(E),n=Object(j.a)(a,2),l=n[0],d=n[1],g=Object(o.useState)(!1),p=Object(j.a)(g,2),O=p[0],I=p[1],ee=Object(S.a)(Object(S.a)({},t),{},{visible:l});Object(o.useEffect)(function(){d(E),E&&c&&I(me())},[E,c]);var q=O?o.createElement(Cn,Object(A.a)({},ee,{mobile:c,ref:f})):o.createElement(va,Object(A.a)({},ee,{ref:f}));return o.createElement("div",null,o.createElement(Mt,ee),q)});ba.displayName="Popup";var Fa=ba,Ka=o.createContext(null),Ea=Ka;function sa(){}function Ba(){return""}function za(r){return r?r.ownerDocument:window.document}var ja=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Pa(r){var f=function(E){Object(C.a)(t,E);var c=Object(u.a)(t);function t(a){var n;Object(U.a)(this,t),n=c.call(this,a),n.popupRef=o.createRef(),n.triggerRef=o.createRef(),n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(d){var g=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",d),n.delaySetPopupVisible(!0,g,g?null:d)},n.onMouseMove=function(d){n.fireEvents("onMouseMove",d),n.setPoint(d)},n.onMouseLeave=function(d){n.fireEvents("onMouseLeave",d),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(d){var g;if(d.relatedTarget&&!d.relatedTarget.setTimeout&&Object(Ot.a)((g=n.popupRef.current)===null||g===void 0?void 0:g.getElement(),d.relatedTarget))return;n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(d){n.fireEvents("onFocus",d),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(d){n.fireEvents("onMouseDown",d),n.preClickTime=Date.now()},n.onTouchStart=function(d){n.fireEvents("onTouchStart",d),n.preTouchTime=Date.now()},n.onBlur=function(d){n.fireEvents("onBlur",d),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(d){d.preventDefault(),n.fireEvents("onContextMenu",d),n.setPopupVisible(!0,d)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(d){if(n.fireEvents("onClick",d),n.focusTime){var g;if(n.preClickTime&&n.preTouchTime?g=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?g=n.preClickTime:n.preTouchTime&&(g=n.preTouchTime),Math.abs(g-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&d&&d.preventDefault&&d.preventDefault();var p=!n.state.popupVisible;(n.isClickToHide()&&!p||p&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,d)},n.onPopupMouseDown=function(){if(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout(function(){n.hasPopupMouseDown=!1},0),n.context){var d;(d=n.context).onPopupMouseDown.apply(d,arguments)}},n.onDocumentClick=function(d){if(n.props.mask&&!n.props.maskClosable)return;var g=d.target,p=n.getRootDomNode(),O=n.getPopupDomNode();(!Object(Ot.a)(p,g)||n.isContextMenuOnly())&&!Object(Ot.a)(O,g)&&!n.hasPopupMouseDown&&n.close()},n.getRootDomNode=function(){var d=n.props.getTriggerDOMNode;if(d)return d(n.triggerRef.current);try{var g=Object(sn.a)(n.triggerRef.current);if(g)return g}catch(p){}return _t.a.findDOMNode(Object(v.a)(n))},n.getPopupClassNameFromAlign=function(d){var g=[],p=n.props,O=p.popupPlacement,I=p.builtinPlacements,ee=p.prefixCls,q=p.alignPoint,Ce=p.getPopupClassNameFromAlign;return O&&I&&g.push(Re(I,ee,d,q)),Ce&&g.push(Ce(d)),g.join(" ")},n.getComponent=function(){var d=n.props,g=d.prefixCls,p=d.destroyPopupOnHide,O=d.popupClassName,I=d.onPopupAlign,ee=d.popupMotion,q=d.popupAnimation,Ce=d.popupTransitionName,Xe=d.popupStyle,lt=d.mask,qe=d.maskAnimation,ft=d.maskTransitionName,ut=d.maskMotion,rt=d.zIndex,it=d.popup,Tt=d.stretch,ht=d.alignPoint,qt=d.mobile,Lt=d.forceRender,We=n.state,Be=We.popupVisible,gt=We.point,jt=n.getPopupAlign(),Ue={};return n.isMouseEnterToShow()&&(Ue.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(Ue.onMouseLeave=n.onPopupMouseLeave),Ue.onMouseDown=n.onPopupMouseDown,Ue.onTouchStart=n.onPopupMouseDown,o.createElement(Fa,Object(A.a)({prefixCls:g,destroyPopupOnHide:p,visible:Be,point:ht&>,className:O,align:jt,onAlign:I,animation:q,getClassNameFromAlign:n.getPopupClassNameFromAlign},Ue,{stretch:Tt,getRootDomNode:n.getRootDomNode,style:Xe,mask:lt,zIndex:rt,transitionName:Ce,maskAnimation:qe,maskTransitionName:ft,maskMotion:ut,ref:n.popupRef,motion:ee,mobile:qt,forceRender:Lt}),typeof it=="function"?it():it)},n.attachParent=function(d){Nt.a.cancel(n.attachId);var g=n.props,p=g.getPopupContainer,O=g.getDocument,I=n.getRootDomNode(),ee;p?(I||p.length===0)&&(ee=p(I)):ee=O(n.getRootDomNode()).body,ee?ee.appendChild(d):n.attachId=Object(Nt.a)(function(){n.attachParent(d)})},n.getContainer=function(){var d=n.props.getDocument,g=d(n.getRootDomNode()).createElement("div");return g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.width="100%",n.attachParent(g),g},n.setPoint=function(d){var g=n.props.alignPoint;if(!g||!d)return;n.setState({point:{pageX:d.pageX,pageY:d.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown};var l;return"popupVisible"in a?l=!!a.popupVisible:l=!!a.defaultPopupVisible,n.state={prevPopupVisible:l,popupVisible:l},ja.forEach(function(d){n["fire".concat(d)]=function(g){n.fireEvents(d,g)}}),n}return Object(F.a)(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var n=this.props,l=this.state;if(l.popupVisible){var d;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(d=n.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ne.a)(d,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(d=d||n.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ne.a)(d,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(d=d||n.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ne.a)(d,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ne.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Nt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var n;return((n=this.popupRef.current)===null||n===void 0?void 0:n.getElement())||null}},{key:"getPopupAlign",value:function(){var n=this.props,l=n.popupPlacement,d=n.popupAlign,g=n.builtinPlacements;return l&&g?Ae(g,l,d):d}},{key:"setPopupVisible",value:function(n,l){var d=this.props.alignPoint,g=this.state.popupVisible;this.clearDelayTimer(),g!==n&&("popupVisible"in this.props||this.setState({popupVisible:n,prevPopupVisible:g}),this.props.onPopupVisibleChange(n)),d&&l&&n&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(n,l,d){var g=this,p=l*1e3;if(this.clearDelayTimer(),p){var O=d?{pageX:d.pageX,pageY:d.pageY}:null;this.delayTimer=window.setTimeout(function(){g.setPopupVisible(n,O),g.clearDelayTimer()},p)}else this.setPopupVisible(n,d)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(n){var l=this.props.children.props,d=this.props;return l[n]&&d[n]?this["fire".concat(n)]:l[n]||d[n]}},{key:"isClickToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("click")!==-1||d.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var n=this.props.action;return n==="contextMenu"||n.length===1&&n[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("contextMenu")!==-1||d.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var n=this.props,l=n.action,d=n.hideAction;return l.indexOf("click")!==-1||d.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("hover")!==-1||d.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var n=this.props,l=n.action,d=n.hideAction;return l.indexOf("hover")!==-1||d.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var n=this.props,l=n.action,d=n.showAction;return l.indexOf("focus")!==-1||d.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var n=this.props,l=n.action,d=n.hideAction;return l.indexOf("focus")!==-1||d.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var n;(n=this.popupRef.current)===null||n===void 0||n.forceAlign()}}},{key:"fireEvents",value:function(n,l){var d=this.props.children.props[n];d&&d(l);var g=this.props[n];g&&g(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,l=this.props,d=l.children,g=l.forceRender,p=l.alignPoint,O=l.className,I=l.autoDestroy,ee=o.Children.only(d),q={key:"trigger"};this.isContextMenuToShow()?q.onContextMenu=this.onContextMenu:q.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(q.onClick=this.onClick,q.onMouseDown=this.onMouseDown,q.onTouchStart=this.onTouchStart):(q.onClick=this.createTwoChains("onClick"),q.onMouseDown=this.createTwoChains("onMouseDown"),q.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(q.onMouseEnter=this.onMouseEnter,p&&(q.onMouseMove=this.onMouseMove)):q.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?q.onMouseLeave=this.onMouseLeave:q.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(q.onFocus=this.onFocus,q.onBlur=this.onBlur):(q.onFocus=this.createTwoChains("onFocus"),q.onBlur=this.createTwoChains("onBlur"));var Ce=D()(ee&&ee.props&&ee.props.className,O);Ce&&(q.className=Ce);var Xe=Object(S.a)({},q);Object(R.c)(ee)&&(Xe.ref=Object(R.a)(this.triggerRef,ee.ref));var lt=o.cloneElement(ee,Xe),qe;return(n||this.popupRef.current||g)&&(qe=o.createElement(r,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&I&&(qe=null),o.createElement(Ea.Provider,{value:this.triggerContextValue},lt,qe)}}],[{key:"getDerivedStateFromProps",value:function(n,l){var d=n.popupVisible,g={};return d!==void 0&&l.popupVisible!==d&&(g.popupVisible=d,g.prevPopupVisible=l.popupVisible),g}}]),t}(o.Component);return f.contextType=Ea,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ba,getDocument:za,onPopupVisibleChange:sa,afterPopupVisibleChange:sa,onPopupAlign:sa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var Za=Pa(oe.a),Fn={adjustX:1,adjustY:1},la={topLeft:{points:["bl","tl"],overflow:Fn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Fn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Fn,offset:[4,0]}},Ta={topLeft:{points:["bl","tl"],overflow:Fn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Fn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Fn,offset:[4,0]}},ga=la,yn=0,Nn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},wn=function(f,E,c){var t=st(E),a=f.getState();f.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},a.defaultActiveFirst),{},Object(w.a)({},t,c))})},Ca=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(c){var t;Object(U.a)(this,E),t=f.call(this,c),t.onDestroy=function(p){t.props.onDestroy(p)},t.onKeyDown=function(p){var O=p.keyCode,I=t.menuInstance,ee=t.props.store,q=t.getVisible();if(O===y.a.ENTER)return t.onTitleClick(p),wn(ee,t.props.eventKey,!0),!0;if(O===y.a.RIGHT)return q?I.onKeyDown(p):(t.triggerOpenChange(!0),wn(ee,t.props.eventKey,!0)),!0;if(O===y.a.LEFT){var Ce;if(q)Ce=I.onKeyDown(p);else return;return Ce||(t.triggerOpenChange(!1),Ce=!0),Ce}return q&&(O===y.a.UP||O===y.a.DOWN)?I.onKeyDown(p):void 0},t.onOpenChange=function(p){t.props.onOpenChange(p)},t.onPopupVisibleChange=function(p){t.triggerOpenChange(p,p?"mouseenter":"mouseleave")},t.onMouseEnter=function(p){var O=t.props,I=O.eventKey,ee=O.onMouseEnter,q=O.store;wn(q,t.props.eventKey,!1),ee({key:I,domEvent:p})},t.onMouseLeave=function(p){var O=t.props,I=O.parentMenu,ee=O.eventKey,q=O.onMouseLeave;I.subMenuInstance=Object(v.a)(t),q({key:ee,domEvent:p})},t.onTitleMouseEnter=function(p){var O=t.props,I=O.eventKey,ee=O.onItemHover,q=O.onTitleMouseEnter;ee({key:I,hover:!0}),q({key:I,domEvent:p})},t.onTitleMouseLeave=function(p){var O=t.props,I=O.parentMenu,ee=O.eventKey,q=O.onItemHover,Ce=O.onTitleMouseLeave;I.subMenuInstance=Object(v.a)(t),q({key:ee,hover:!1}),Ce({key:ee,domEvent:p})},t.onTitleClick=function(p){var O=Object(v.a)(t),I=O.props;if(I.onTitleClick({key:I.eventKey,domEvent:p}),I.triggerSubMenuAction==="hover")return;t.triggerOpenChange(!t.getVisible(),"click"),wn(I.store,t.props.eventKey,!1)},t.onSubMenuClick=function(p){typeof t.props.onClick=="function"&&t.props.onClick(t.addKeyPath(p))},t.onSelect=function(p){t.props.onSelect(p)},t.onDeselect=function(p){t.props.onDeselect(p)},t.getPrefixCls=function(){return"".concat(t.props.rootPrefixCls,"-submenu")},t.getActiveClassName=function(){return"".concat(t.getPrefixCls(),"-active")},t.getDisabledClassName=function(){return"".concat(t.getPrefixCls(),"-disabled")},t.getSelectedClassName=function(){return"".concat(t.getPrefixCls(),"-selected")},t.getOpenClassName=function(){return"".concat(t.props.rootPrefixCls,"-submenu-open")},t.getVisible=function(){return t.state.isOpen},t.getMode=function(){return t.state.mode},t.saveMenuInstance=function(p){t.menuInstance=p},t.addKeyPath=function(p){return Object(S.a)(Object(S.a)({},p),{},{keyPath:(p.keyPath||[]).concat(t.props.eventKey)})},t.triggerOpenChange=function(p,O){var I=t.props.eventKey,ee=function(){t.onOpenChange({key:I,item:Object(v.a)(t),trigger:O,open:p})};O==="mouseenter"?t.mouseenterTimeout=setTimeout(function(){ee()},0):ee()},t.isChildrenSelected=function(){var p={find:!1};return $e(t.props.children,t.props.selectedKeys,p),p.find},t.isInlineMode=function(){return t.getMode()==="inline"},t.adjustWidth=function(){if(!t.subMenuTitle||!t.menuInstance)return;var p=yt.findDOMNode(t.menuInstance);if(p.offsetWidth>=t.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(t.subMenuTitle.offsetWidth,"px")},t.saveSubMenuTitle=function(p){t.subMenuTitle=p},t.getBaseProps=function(){var p=Object(v.a)(t),O=p.props,I=t.getMode();return{mode:I==="horizontal"?"vertical":I,visible:t.getVisible(),level:O.level+1,inlineIndent:O.inlineIndent,focusable:!1,onClick:t.onSubMenuClick,onSelect:t.onSelect,onDeselect:t.onDeselect,onDestroy:t.onDestroy,selectedKeys:O.selectedKeys,eventKey:"".concat(O.eventKey,"-menu-"),openKeys:O.openKeys,motion:O.motion,onOpenChange:t.onOpenChange,subMenuOpenDelay:O.subMenuOpenDelay,parentMenu:Object(v.a)(t),subMenuCloseDelay:O.subMenuCloseDelay,forceSubMenuRender:O.forceSubMenuRender,triggerSubMenuAction:O.triggerSubMenuAction,builtinPlacements:O.builtinPlacements,defaultActiveFirst:O.store.getState().defaultActiveFirst[st(O.eventKey)],multiple:O.multiple,prefixCls:O.rootPrefixCls,id:t.internalMenuId,manualRef:t.saveMenuInstance,itemIcon:O.itemIcon,expandIcon:O.expandIcon,direction:O.direction}},t.getMotion=function(p,O){var I=Object(v.a)(t),ee=I.haveRendered,q=t.props,Ce=q.motion,Xe=q.rootPrefixCls,lt=Object(S.a)(Object(S.a)({},Ce),{},{leavedClassName:"".concat(Xe,"-hidden"),removeOnLeave:!1,motionAppear:ee||!O||p!=="inline"});return lt};var a=c.store,n=c.eventKey,l=a.getState(),d=l.defaultActiveFirst;t.isRootMenu=!1;var g=!1;return d&&(g=d[n]),wn(a,n,g),t.state={mode:c.mode,isOpen:c.isOpen},t}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this,a=this.props,n=a.mode,l=a.parentMenu,d=a.manualRef,g=a.isOpen,p=function(){t.setState({mode:n,isOpen:g})},O=g!==this.state.isOpen,I=n!==this.state.mode;if((I||O)&&(Nt.a.cancel(this.updateStateRaf),I?this.updateStateRaf=Object(Nt.a)(p):p()),d&&d(this),n!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!g)return;this.minWidthTimeout=setTimeout(function(){return t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var t=this.props,a=t.onDestroy,n=t.eventKey;a&&a(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Nt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(t,a){var n=this.getBaseProps();return o.createElement(Le,Object(A.a)({},n,{id:this.internalMenuId,className:t,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var t=this,a=this.getBaseProps(),n=a.mode,l=a.visible,d=a.forceSubMenuRender,g=a.direction,p=this.getMotion(n,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||d,!this.haveOpened)return o.createElement("div",null);var O=D()("".concat(a.prefixCls,"-sub"),Object(w.a)({},"".concat(a.prefixCls,"-rtl"),g==="rtl"));return this.isInlineMode()?o.createElement(gn,Object(A.a)({visible:a.visible,forceRender:d},p),function(I){var ee=I.className,q=I.style,Ce=D()(O,ee);return t.renderPopupMenu(Ce,q)}):this.renderPopupMenu(O)}},{key:"render",value:function(){var t,a,n,l=Object(S.a)({},this.props),d=this.getVisible(),g=this.getPrefixCls(),p=this.isInlineMode(),O=this.getMode(),I=D()(g,"".concat(g,"-").concat(O),(t={},Object(w.a)(t,l.className,!!l.className),Object(w.a)(t,this.getOpenClassName(),d),Object(w.a)(t,this.getActiveClassName(),l.active||d&&!p),Object(w.a)(t,this.getDisabledClassName(),l.disabled),Object(w.a)(t,this.getSelectedClassName(),this.isChildrenSelected()),t));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(yn+=1,this.internalMenuId="$__$".concat(yn,"$Menu")));var ee={},q={},Ce={};l.disabled||(ee={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},q={onClick:this.onTitleClick},Ce={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Xe={},lt=l.direction,qe=lt==="rtl";p&&(qe?Xe.paddingRight=l.inlineIndent*l.level:Xe.paddingLeft=l.inlineIndent*l.level);var ft={};this.getVisible()&&(ft={"aria-owns":this.internalMenuId});var ut=null;O!=="horizontal"&&(ut=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ut=o.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var rt=o.createElement("div",Object(A.a)({ref:this.saveSubMenuTitle,style:Xe,className:"".concat(g,"-title"),role:"button"},Ce,q,{"aria-expanded":d},ft,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,ut||o.createElement("i",{className:"".concat(g,"-arrow")})),it=this.renderChildren(),Tt=((a=l.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Yt){return Yt.parentNode},ht=Nn[O],qt=l.popupOffset?{offset:l.popupOffset}:{},Lt=D()((n={},Object(w.a)(n,l.popupClassName,l.popupClassName&&!p),Object(w.a)(n,"".concat(g,"-rtl"),qe),n)),We=l.disabled,Be=l.triggerSubMenuAction,gt=l.subMenuOpenDelay,jt=l.forceSubMenuRender,Ue=l.subMenuCloseDelay,St=l.builtinPlacements;ct.forEach(function(Yt){return delete l[Yt]}),delete l.onClick;var Gt=qe?Object(S.a)(Object(S.a)({},Ta),St):Object(S.a)(Object(S.a)({},la),St);delete l.direction;var Dt=this.getBaseProps(),It=p?null:this.getMotion(Dt.mode,Dt.visible);return o.createElement("li",Object(A.a)({},l,ee,{className:I,role:"menuitem"}),o.createElement(Za,{prefixCls:g,popupClassName:D()("".concat(g,"-popup"),Lt),getPopupContainer:Tt,builtinPlacements:Gt,popupPlacement:ht,popupVisible:p?!1:d,popupAlign:qt,popup:p?null:it,action:We||p?[]:[Be],mouseEnterDelay:gt,mouseLeaveDelay:Ue,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:jt,popupMotion:It},rt),p?it:null)}}]),E}(o.Component);Ca.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var na=Object(M.b)(function(r,f){var E=r.openKeys,c=r.activeKey,t=r.selectedKeys,a=f.eventKey,n=f.subMenuKey;return{isOpen:E.indexOf(a)>-1,active:c[n]===a,selectedKeys:t}})(Ca);na.isSubMenu=!0;var aa=na,Sa="menuitem-overflowed",Da=.5,Aa=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){var c;return Object(U.a)(this,E),c=f.apply(this,arguments),c.resizeObserver=null,c.mutationObserver=null,c.originalTotalWidth=0,c.overflowedItems=[],c.menuItemSizes=[],c.cancelFrameId=null,c.state={lastVisibleIndex:void 0},c.childRef=o.createRef(),c.getMenuItemNodes=function(){var t=c.props.prefixCls,a=c.childRef.current;return a?[].slice.call(a.children).filter(function(n){return n.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0}):[]},c.getOverflowedSubMenuItem=function(t,a,n){var l=c.props,d=l.overflowedIndicator,g=l.level,p=l.mode,O=l.prefixCls,I=l.theme;if(g!==1||p!=="horizontal")return null;var ee=c.props.children[0],q=ee.props,Ce=q.children,Xe=q.title,lt=q.style,qe=Object(De.a)(q,["children","title","style"]),ft=Object(S.a)({},lt),ut="".concat(t,"-overflowed-indicator"),rt="".concat(t,"-overflowed-indicator");a.length===0&&n!==!0?ft=Object(S.a)(Object(S.a)({},ft),{},{display:"none"}):n&&(ft=Object(S.a)(Object(S.a)({},ft),{},{visibility:"hidden",position:"absolute"}),ut="".concat(ut,"-placeholder"),rt="".concat(rt,"-placeholder"));var it=I?"".concat(O,"-").concat(I):"",Tt={};return ct.forEach(function(ht){qe[ht]!==void 0&&(Tt[ht]=qe[ht])}),o.createElement(aa,Object(A.a)({title:d,className:"".concat(O,"-overflowed-submenu"),popupClassName:it},Tt,{key:ut,eventKey:rt,disabled:!1,style:ft}),a)},c.setChildrenWidthAndResize=function(){if(c.props.mode!=="horizontal")return;var t=c.childRef.current;if(!t)return;var a=t.children;if(!a||a.length===0)return;var n=t.children[a.length-1];ze(n,"display","inline-block");var l=c.getMenuItemNodes(),d=l.filter(function(g){return g.className.split(" ").indexOf(Sa)>=0});d.forEach(function(g){ze(g,"display","inline-block")}),c.menuItemSizes=l.map(function(g){return Qe(g,!0)}),d.forEach(function(g){ze(g,"display","none")}),c.overflowedIndicatorWidth=Qe(t.children[t.children.length-1],!0),c.originalTotalWidth=c.menuItemSizes.reduce(function(g,p){return g+p},0),c.handleResize(),ze(n,"display","none")},c.handleResize=function(){if(c.props.mode!=="horizontal")return;var t=c.childRef.current;if(!t)return;var a=Qe(t);c.overflowedItems=[];var n=0,l;c.originalTotalWidth>a+Da&&(l=-1,c.menuItemSizes.forEach(function(d){n+=d,n+c.overflowedIndicatorWidth<=a&&(l+=1)})),c.setState({lastVisibleIndex:l})},c}return Object(F.a)(E,[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Ze.default(function(n){n.forEach(function(){var l=t.cancelFrameId;cancelAnimationFrame(l),t.cancelFrameId=requestAnimationFrame(t.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){t.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),t.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(t){var a=this,n=this.state.lastVisibleIndex;return(t||[]).reduce(function(l,d,g){var p=d;if(a.props.mode==="horizontal"){var O=a.getOverflowedSubMenuItem(d.props.eventKey,[]);n!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(g>n&&(p=o.cloneElement(d,{style:{display:"none"},eventKey:"".concat(d.props.eventKey,"-hidden"),className:"".concat(Sa)})),g===n+1&&(a.overflowedItems=t.slice(n+1).map(function(ee){return o.cloneElement(ee,{key:ee.props.eventKey,mode:"vertical-left"})}),O=a.getOverflowedSubMenuItem(d.props.eventKey,a.overflowedItems)));var I=[].concat(Object(ce.a)(l),[O,p]);return g===t.length-1&&I.push(a.getOverflowedSubMenuItem(d.props.eventKey,[],!0)),I}return[].concat(Object(ce.a)(l),[p])},[])}},{key:"render",value:function(){var t=this.props,a=t.visible,n=t.prefixCls,l=t.overflowedIndicator,d=t.mode,g=t.level,p=t.tag,O=t.children,I=t.theme,ee=Object(De.a)(t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),q=p;return o.createElement(q,Object(A.a)({ref:this.childRef},ee),this.renderChildren(O))}}]),E}(o.Component);Aa.defaultProps={tag:"div",className:""};var ya=Aa;function Kn(r){return r.length?r.every(function(f){return!!f.props.disabled}):!0}function Zn(r,f,E){var c=r.getState();r.setState({activeKey:Object(S.a)(Object(S.a)({},c.activeKey),{},Object(w.a)({},f,E))})}function Jn(r){return r.eventKey||"0-menu-"}function ua(r,f){var E=f,c=r.children,t=r.eventKey;if(E){var a;if(Je(c,function(n,l){n&&n.props&&!n.props.disabled&&E===Fe(n,t,l)&&(a=!0)}),a)return E}return E=null,r.defaultActiveFirst&&Je(c,function(n,l){!E&&n&&!n.props.disabled&&(E=Fe(n,t,l))}),E}function Na(r){if(!r)return;var f=this.instanceArray.indexOf(r);f!==-1?this.instanceArray[f]=r:this.instanceArray.push(r)}var wa=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(c){var t;return Object(U.a)(this,E),t=f.call(this,c),t.onKeyDown=function(a,n){var l=a.keyCode,d;if(t.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(d=p.onKeyDown(a))}),d)return 1;var g=null;return(l===y.a.UP||l===y.a.DOWN)&&(g=t.step(l===y.a.UP?-1:1)),g?(a.preventDefault(),Zn(t.props.store,Jn(t.props),g.props.eventKey),typeof n=="function"&&n(g),1):void 0},t.onItemHover=function(a){var n=a.key,l=a.hover;Zn(t.props.store,Jn(t.props),l?n:null)},t.onDeselect=function(a){t.props.onDeselect(a)},t.onSelect=function(a){t.props.onSelect(a)},t.onClick=function(a){t.props.onClick(a)},t.onOpenChange=function(a){t.props.onOpenChange(a)},t.onDestroy=function(a){t.props.onDestroy(a)},t.getFlatInstanceArray=function(){return t.instanceArray},t.step=function(a){var n=t.getFlatInstanceArray(),l=t.props.store.getState().activeKey[Jn(t.props)],d=n.length;if(!d)return null;a<0&&(n=n.concat().reverse());var g=-1;if(n.every(function(ee,q){return ee&&ee.props.eventKey===l?(g=q,!1):!0}),!t.props.defaultActiveFirst&&g!==-1&&Kn(n.slice(g,d-1)))return;var p=(g+1)%d,O=p;do{var I=n[O];if(!I||I.props.disabled)O=(O+1)%d;else return I}while(O!==p);return null},t.renderCommonMenuItem=function(a,n,l){var d=t.props.store.getState(),g=Object(v.a)(t),p=g.props,O=Fe(a,p.eventKey,n),I=a.props;if(!I||typeof a.type=="string")return a;var ee=O===d.activeKey,q=Object(S.a)(Object(S.a)({mode:I.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:t.renderMenuItem,rootPrefixCls:p.prefixCls,index:n,parentMenu:p.parentMenu,manualRef:I.disabled?void 0:Object(T.a)(a.ref,Na.bind(Object(v.a)(t))),eventKey:O,active:!I.disabled&&ee,multiple:p.multiple,onClick:function(Xe){(I.onClick||pe)(Xe),t.onClick(Xe)},onItemHover:t.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:t.onOpenChange,onDeselect:t.onDeselect,onSelect:t.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:I.itemIcon||t.props.itemIcon,expandIcon:I.expandIcon||t.props.expandIcon},l),{},{direction:p.direction});return(p.mode==="inline"||$())&&(q.triggerSubMenuAction="click"),o.cloneElement(a,Object(S.a)(Object(S.a)({},q),{},{key:O||n}))},t.renderMenuItem=function(a,n,l){if(!a)return null;var d=t.props.store.getState(),g={openKeys:d.openKeys,selectedKeys:d.selectedKeys,triggerSubMenuAction:t.props.triggerSubMenuAction,subMenuKey:l};return t.renderCommonMenuItem(a,n,g)},c.store.setState({activeKey:Object(S.a)(Object(S.a)({},c.store.getState().activeKey),{},Object(w.a)({},c.eventKey,ua(c,c.activeKey)))}),t.instanceArray=[],t}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(t){return this.props.visible||t.visible||this.props.className!==t.className||!b()(this.props.style,t.style)}},{key:"componentDidUpdate",value:function(t){var a=this.props,n="activeKey"in a?a.activeKey:a.store.getState().activeKey[Jn(a)],l=ua(a,n);if(l!==n)Zn(a.store,Jn(a),l);else if("activeKey"in t){var d=ua(t,t.activeKey);l!==d&&Zn(a.store,Jn(a),l)}}},{key:"render",value:function(){var t=this,a=Object(A.a)({},this.props);this.instanceArray=[];var n=D()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),l={className:n,role:a.role||"menu"};a.id&&(l.id=a.id),a.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var d=a.prefixCls,g=a.eventKey,p=a.visible,O=a.level,I=a.mode,ee=a.overflowedIndicator,q=a.theme;return ct.forEach(function(Ce){return delete a[Ce]}),delete a.onClick,o.createElement(ya,Object(A.a)({},a,{prefixCls:d,mode:I,tag:"ul",level:O,theme:q,visible:p,overflowedIndicator:ee},l),Object(ae.a)(a.children).map(function(Ce,Xe){return t.renderMenuItem(Ce,Xe,g||"0-menu-")}))}}]),E}(o.Component);wa.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var La=Object(M.b)()(wa),Le=La,xe=e("Kwbf");function et(r,f,E){var c=r.prefixCls,t=r.motion,a=r.defaultMotions,n=a===void 0?{}:a,l=r.openAnimation,d=r.openTransitionName,g=f.switchingModeFromInline;if(t)return t;if(Object(s.a)(l)==="object"&&l)Object(xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(c,"-open-").concat(l)};if(d)return{motionName:d};var p=n[E];return p||(g?null:n.other)}var Ge=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(c){var t;Object(U.a)(this,E),t=f.call(this,c),t.onSelect=function(l){var d=Object(v.a)(t),g=d.props;if(g.selectable){var p=t.store.getState(),O=p.selectedKeys,I=l.key;g.multiple?O=O.concat([I]):O=[I],"selectedKeys"in g||t.store.setState({selectedKeys:O}),g.onSelect(Object(S.a)(Object(S.a)({},l),{},{selectedKeys:O}))}},t.onClick=function(l){var d=t.getRealMenuMode(),g=Object(v.a)(t),p=g.store,O=g.props.onOpenChange;d!=="inline"&&!("openKeys"in t.props)&&(p.setState({openKeys:[]}),O([])),t.props.onClick(l)},t.onKeyDown=function(l,d){t.innerMenu.getWrappedInstance().onKeyDown(l,d)},t.onOpenChange=function(l){var d=Object(v.a)(t),g=d.props,p=t.store.getState().openKeys.concat(),O=!1,I=function(q){var Ce=!1;if(q.open)Ce=p.indexOf(q.key)===-1,Ce&&p.push(q.key);else{var Xe=p.indexOf(q.key);Ce=Xe!==-1,Ce&&p.splice(Xe,1)}O=O||Ce};Array.isArray(l)?l.forEach(I):I(l),O&&("openKeys"in t.props||t.store.setState({openKeys:p}),g.onOpenChange(p))},t.onDeselect=function(l){var d=Object(v.a)(t),g=d.props;if(g.selectable){var p=t.store.getState().selectedKeys.concat(),O=l.key,I=p.indexOf(O);I!==-1&&p.splice(I,1),"selectedKeys"in g||t.store.setState({selectedKeys:p}),g.onDeselect(Object(S.a)(Object(S.a)({},l),{},{selectedKeys:p}))}},t.onMouseEnter=function(l){t.restoreModeVerticalFromInline();var d=t.props.onMouseEnter;d&&d(l)},t.onTransitionEnd=function(l){var d=l.propertyName==="width"&&l.target===l.currentTarget,g=l.target.className,p=Object.prototype.toString.call(g)==="[object SVGAnimatedString]"?g.animVal:g,O=l.propertyName==="font-size"&&p.indexOf("anticon")>=0;(d||O)&&t.restoreModeVerticalFromInline()},t.setInnerMenu=function(l){t.innerMenu=l},t.isRootMenu=!0;var a=c.defaultSelectedKeys,n=c.defaultOpenKeys;return"selectedKeys"in c&&(a=c.selectedKeys||[]),"openKeys"in c&&(n=c.openKeys||[]),t.store=Object(M.c)({selectedKeys:a,openKeys:n,activeKey:{"0-menu-":ua(c,c.activeKey)}}),t.state={switchingModeFromInline:!1,prevProps:c,inlineOpenKeys:[],store:t.store},t}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(t){var a=this.props,n=a.siderCollapsed,l=a.inlineCollapsed,d=a.onOpenChange;(!t.inlineCollapsed&&l||!t.siderCollapsed&&n)&&d([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var t=this.props.collapsedWidth,a=this.store,n=this.prevOpenKeys,l=this.getInlineCollapsed()&&(t===0||t==="0"||t==="0px");l?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var t=this.props.mode,a=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return a&&n?"inline":n?"vertical":t}},{key:"getInlineCollapsed",value:function(){var t=this.props,a=t.inlineCollapsed,n=t.siderCollapsed;return n!==void 0?n:a}},{key:"restoreModeVerticalFromInline",value:function(){var t=this.state.switchingModeFromInline;t&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var t=Object(S.a)({},Object(P.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return t.className+=" ".concat(t.prefixCls,"-root"),t.direction==="rtl"&&(t.className+=" ".concat(t.prefixCls,"-rtl")),t=Object(S.a)(Object(S.a)({},t),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:et(this.props,this.state,a)}),delete t.openAnimation,delete t.openTransitionName,o.createElement(M.a,{store:this.store},o.createElement(Le,Object(A.a)({},t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(t,a){var n=a.prevProps,l=a.store,d=l.getState(),g={},p={prevProps:t};return n.mode==="inline"&&t.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in t?g.openKeys=t.openKeys||[]:((t.inlineCollapsed&&!n.inlineCollapsed||t.siderCollapsed&&!n.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=d.openKeys,g.openKeys=[]),(!t.inlineCollapsed&&n.inlineCollapsed||!t.siderCollapsed&&n.siderCollapsed)&&(g.openKeys=a.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(g).length&&l.setState(g),p}}]),E}(o.Component);Ge.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Xt=Ge,At=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){var c;return Object(U.a)(this,E),c=f.apply(this,arguments),c.onKeyDown=function(t){var a=t.keyCode;return a===y.a.ENTER?(c.onClick(t),!0):void 0},c.onMouseLeave=function(t){var a=c.props,n=a.eventKey,l=a.onItemHover,d=a.onMouseLeave;l({key:n,hover:!1}),d({key:n,domEvent:t})},c.onMouseEnter=function(t){var a=c.props,n=a.eventKey,l=a.onItemHover,d=a.onMouseEnter;l({key:n,hover:!0}),d({key:n,domEvent:t})},c.onClick=function(t){var a=c.props,n=a.eventKey,l=a.multiple,d=a.onClick,g=a.onSelect,p=a.onDeselect,O=a.isSelected,I={key:n,keyPath:[n],item:Object(v.a)(c),domEvent:t};d(I),l?O?p(I):g(I):O||g(I)},c.saveNode=function(t){c.node=t},c}return Object(F.a)(E,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var t=this.props;t.onDestroy&&t.onDestroy(t.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var t,a=Object(S.a)({},this.props),n=D()(this.getPrefixCls(),a.className,(t={},Object(w.a)(t,this.getActiveClassName(),!a.disabled&&a.active),Object(w.a)(t,this.getSelectedClassName(),a.isSelected),Object(w.a)(t,this.getDisabledClassName(),a.disabled),t)),l=Object(S.a)(Object(S.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:n,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?l=Object(S.a)(Object(S.a)({},l),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(l.role="none");var d={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},g=Object(S.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?g.paddingRight=a.inlineIndent*a.level:g.paddingLeft=a.inlineIndent*a.level),ct.forEach(function(O){return delete a[O]}),delete a.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(A.a)({},Object(P.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,d,{style:g,ref:this.saveNode}),a.children,p)}}]),E}(o.Component);At.isMenuItem=!0,At.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var Ft=Object(M.b)(function(r,f){var E=r.activeKey,c=r.selectedKeys,t=f.eventKey,a=f.subMenuKey;return{active:E[a]===t,isSelected:Array.isArray(c)?c.indexOf(t)!==-1:c===t}})(At),cn=Ft,rn=function(r){Object(C.a)(E,r);var f=Object(u.a)(E);function E(){var c;return Object(U.a)(this,E),c=f.apply(this,arguments),c.renderInnerMenuItem=function(t){var a=c.props,n=a.renderMenuItem,l=a.index;return n(t,l,c.props.subMenuKey)},c}return Object(F.a)(E,[{key:"render",value:function(){var t=Object(A.a)({},this.props),a=t.className,n=a===void 0?"":a,l=t.rootPrefixCls,d="".concat(l,"-item-group-title"),g="".concat(l,"-item-group-list"),p=t.title,O=t.children;return ct.forEach(function(I){return delete t[I]}),delete t.direction,o.createElement("li",Object(A.a)({},t,{onClick:function(ee){return ee.stopPropagation()},className:"".concat(n," ").concat(l,"-item-group")}),o.createElement("div",{className:d,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:g},o.Children.map(O,this.renderInnerMenuItem)))}}]),E}(o.Component);rn.isMenuItemGroup=!0,rn.defaultProps={disabled:!0};var ca=rn,da=function(f){var E=f.className,c=f.rootPrefixCls,t=f.style;return o.createElement("li",{className:"".concat(E," ").concat(c,"-item-divider"),style:t})};da.defaultProps={disabled:!0,className:"",style:{}};var Bn=da,Yn=Xt,oa=e("eDIo");function Rn(r,f){var E=r.prefixCls,c=r.editable,t=r.locale,a=r.style;return!c||c.showAdd===!1?null:o.createElement("button",{ref:f,type:"button",className:"".concat(E,"-nav-add"),style:a,"aria-label":(t==null?void 0:t.addAriaLabel)||"Add tab",onClick:function(l){c.onEdit("add",{event:l})}},c.addIcon||"+")}var fa=o.forwardRef(Rn);function _a(r,f){var E=r.prefixCls,c=r.id,t=r.tabs,a=r.locale,n=r.mobile,l=r.moreIcon,d=l===void 0?"More":l,g=r.moreTransitionName,p=r.style,O=r.className,I=r.editable,ee=r.tabBarGutter,q=r.rtl,Ce=r.onTabClick,Xe=Object(o.useState)(!1),lt=Object(j.a)(Xe,2),qe=lt[0],ft=lt[1],ut=Object(o.useState)(null),rt=Object(j.a)(ut,2),it=rt[0],Tt=rt[1],ht="".concat(c,"-more-popup"),qt="".concat(E,"-dropdown"),Lt=it!==null?"".concat(ht,"-").concat(it):null,We=a==null?void 0:a.dropdownAriaLabel,Be=o.createElement(Yn,{onClick:function(It){var Yt=It.key,hn=It.domEvent;Ce(Yt,hn),ft(!1)},id:ht,tabIndex:-1,role:"listbox","aria-activedescendant":Lt,selectedKeys:[it],"aria-label":We!==void 0?We:"expanded dropdown"},t.map(function(Dt){return o.createElement(cn,{key:Dt.key,id:"".concat(ht,"-").concat(Dt.key),role:"option","aria-controls":c&&"".concat(c,"-panel-").concat(Dt.key),disabled:Dt.disabled},Dt.tab)}));function gt(Dt){for(var It=t.filter(function(Un){return!Un.disabled}),Yt=It.findIndex(function(Un){return Un.key===it})||0,hn=It.length,Ln=0;LnSt?(jt=Be,ht.current="x"):(jt=gt,ht.current="y");var Gt=Date.now();Gt-it.current>100&&(Tt.current=!1),(f(-jt,-jt)||Tt.current)&&(We.preventDefault(),Tt.current=!0),it.current=Gt}var Lt=Object(o.useRef)(null);Lt.current={onTouchStart:ft,onTouchMove:ut,onTouchEnd:rt,onWheel:qt},o.useEffect(function(){function We(Ue){Lt.current.onTouchStart(Ue)}function Be(Ue){Lt.current.onTouchMove(Ue)}function gt(Ue){Lt.current.onTouchEnd(Ue)}function jt(Ue){Lt.current.onWheel(Ue)}return document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",gt,{passive:!1}),r.current.addEventListener("touchstart",We,{passive:!1}),r.current.addEventListener("wheel",jt),function(){document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",gt)}},[])}function Wa(){var r=Object(o.useRef)(new Map);function f(c){return r.current.has(c)||r.current.set(c,o.createRef()),r.current.get(c)}function E(c){r.current.delete(c)}return[f,E]}function eo(r,f){var E=o.useRef(r),c=o.useState({}),t=Object(j.a)(c,2),a=t[1];function n(l){var d=typeof l=="function"?l(E.current):l;d!==E.current&&f(d,E.current),E.current=d,a({})}return[E.current,n]}var to=function(f){var E=f.position,c=f.prefixCls,t=f.extra;if(!t)return null;var a,n=t;return E==="right"&&(a=n.right||!n.left&&n||null),E==="left"&&(a=n.left||null),a?o.createElement("div",{className:"".concat(c,"-extra-content")},a):null};function Bo(r,f){var E,c=o.useContext(qn),t=c.prefixCls,a=c.tabs,n=r.className,l=r.style,d=r.id,g=r.animated,p=r.activeKey,O=r.rtl,I=r.extra,ee=r.editable,q=r.locale,Ce=r.tabPosition,Xe=r.tabBarGutter,lt=r.children,qe=r.onTabClick,ft=r.onTabScroll,ut=Object(o.useRef)(),rt=Object(o.useRef)(),it=Object(o.useRef)(),Tt=Object(o.useRef)(),ht=Wa(),qt=Object(j.a)(ht,2),Lt=qt[0],We=qt[1],Be=Ce==="top"||Ce==="bottom",gt=eo(0,function(Ut,Ct){Be&&ft&&ft({direction:Ut>Ct?"left":"right"})}),jt=Object(j.a)(gt,2),Ue=jt[0],St=jt[1],Gt=eo(0,function(Ut,Ct){!Be&&ft&&ft({direction:Ut>Ct?"top":"bottom"})}),Dt=Object(j.a)(Gt,2),It=Dt[0],Yt=Dt[1],hn=Object(o.useState)(0),Ln=Object(j.a)(hn,2),tn=Ln[0],Un=Ln[1],ea=Object(o.useState)(0),zn=Object(j.a)(ea,2),Wn=zn[0],nn=zn[1],jn=Object(o.useState)(0),vn=Object(j.a)(jn,2),dn=vn[0],ma=vn[1],pa=Object(o.useState)(0),xa=Object(j.a)(pa,2),Vt=xa[0],ra=xa[1],Ma=Object(o.useState)(null),$t=Object(j.a)(Ma,2),wt=$t[0],bn=$t[1],Xo=Object(o.useState)(null),bo=Object(j.a)(Xo,2),Ia=bo[0],Go=bo[1],$o=Object(o.useState)(0),Eo=Object(j.a)($o,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(o.useState)(0),go=Object(j.a)(Qo,2),Zo=go[0],qo=go[1],er=_(new Map),Co=Object(j.a)(er,2),tr=Co[0],nr=Co[1],no=Z(a,tr,tn),yo="".concat(t,"-nav-operations-hidden"),Va=0,Ha=0;Be?O?(Va=0,Ha=Math.max(0,tn-wt)):(Va=Math.min(0,wt-tn),Ha=0):(Va=Math.min(0,Ia-Wn),Ha=0);function ao(Ut){return UtHa?[Ha,!1]:[Ut,!0]}var _o=Object(o.useRef)(),ar=Object(o.useState)(),Oo=Object(j.a)(ar,2),oo=Oo[0],xo=Oo[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(_o.current)}qa(ut,function(Ut,Ct){var fn=!1;function Vn(Ga,$a){Ga(function(Ja){var Ya=ao(Ja+$a),ka=Object(j.a)(Ya,2),co=ka[0],fo=ka[1];return fn=fo,co})}if(Be){if(wt>=tn)return fn;Vn(St,Ut)}else{if(Ia>=Wn)return fn;Vn(Yt,Ct)}return io(),ro(),fn}),Object(o.useEffect)(function(){return io(),oo&&(_o.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function Mo(){var Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,Ct=no.get(Ut);if(!Ct)return;if(Be){var fn=Ue;O?Ct.rightUe+wt&&(fn=Ct.right+Ct.width-wt):Ct.left<-Ue?fn=-Ct.left:Ct.left+Ct.width>-Ue+wt&&(fn=-(Ct.left+Ct.width-wt)),Yt(0),St(ao(fn)[0])}else{var Vn=It;Ct.top<-It?Vn=-Ct.top:Ct.top+Ct.height>-It+Ia&&(Vn=-(Ct.top+Ct.height-Ia)),St(0),Yt(ao(Vn)[0])}}var or=Ee(no,{width:wt,height:Ia,left:Ue,top:It},{width:dn,height:Vt},{width:Jo,height:Zo},Object(S.a)(Object(S.a)({},r),{},{tabs:a})),Ro=Object(j.a)(or,2),rr=Ro[0],ir=Ro[1],sr=a.map(function(Ut){var Ct=Ut.key;return o.createElement(k,{id:d,prefixCls:t,key:Ct,rtl:O,tab:Ut,closable:Ut.closable,editable:ee,active:Ct===p,tabPosition:Ce,tabBarGutter:Xe,renderWrapper:lt,removeAriaLabel:q==null?void 0:q.removeAriaLabel,ref:Lt(Ct),onClick:function(Vn){qe(Ct,Vn)},onRemove:function(){We(Ct)},onFocus:function(){Mo(Ct),ro(),O||(ut.current.scrollLeft=0),ut.current.scrollTop=0}})}),so=Y(function(){var Ut,Ct,fn,Vn,Ga,$a,Ja,Ya,ka,co=((Ut=ut.current)===null||Ut===void 0?void 0:Ut.offsetWidth)||0,fo=((Ct=ut.current)===null||Ct===void 0?void 0:Ct.offsetHeight)||0,wo=((fn=Tt.current)===null||fn===void 0?void 0:fn.offsetWidth)||0,Lo=((Vn=Tt.current)===null||Vn===void 0?void 0:Vn.offsetHeight)||0,mr=((Ga=it.current)===null||Ga===void 0?void 0:Ga.offsetWidth)||0,pr=(($a=it.current)===null||$a===void 0?void 0:$a.offsetHeight)||0;bn(co),Go(fo),Yo(wo),qo(Lo);var Uo=(((Ja=rt.current)===null||Ja===void 0?void 0:Ja.offsetWidth)||0)-wo,Io=(((Ya=rt.current)===null||Ya===void 0?void 0:Ya.offsetHeight)||0)-Lo;Un(Uo),nn(Io);var ko=(ka=it.current)===null||ka===void 0?void 0:ka.className.includes(yo);ma(Uo-(ko?0:mr)),ra(Io-(ko?0:pr)),nr(function(){var Fo=new Map;return a.forEach(function(hr){var Ko=hr.key,Qa=Lt(Ko).current;Qa&&Fo.set(Ko,{width:Qa.offsetWidth,height:Qa.offsetHeight,left:Qa.offsetLeft,top:Qa.offsetTop})}),Fo})}),lr=a.slice(0,rr),ur=a.slice(ir+1),jo=[].concat(Object(ce.a)(lr),Object(ce.a)(ur)),cr=Object(o.useState)(),Po=Object(j.a)(cr,2),dr=Po[0],fr=Po[1],ha=no.get(p),To=Object(o.useRef)();function So(){de.a.cancel(To.current)}Object(o.useEffect)(function(){var Ut={};return ha&&(Be?(O?Ut.right=ha.right:Ut.left=ha.left,Ut.width=ha.width):(Ut.top=ha.top,Ut.height=ha.height)),So(),To.current=de()(function(){fr(Ut)}),So},[ha,Be,O]),Object(o.useEffect)(function(){Mo()},[p,ha,no,Be]),Object(o.useEffect)(function(){so()},[O,Xe,p,a.map(function(Ut){return Ut.key}).join("_")]);var Do=!!jo.length,Xa="".concat(t,"-nav-wrap"),lo,uo,Ao,No;return Be?O?(uo=Ue>0,lo=Ue+wt50?kt.style.display="block":kt.style.display="none"}})),L.a.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:ie,onOk:function(){var at=Object(h.a)(_.a.mark(function kt(){var Pt,mn,On,an;return _.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:if(!(ot<1||ot>50)){Qt.next=4;break}return On=document.getElementById("model_error"),On.style.display="block",Qt.abrupt("return",Promise.reject());case 4:return xt.update({cancelButtonProps:{disabled:!0}}),Qt.next=7,le({type:"paperlibrary/sendToClass",payload:{course_id:$e==null?void 0:$e[0],id:(Pt=Ne.actionTabs)===null||Pt===void 0||((mn=Pt.params)===null||mn===void 0)?void 0:mn.id,num:ot}});case 7:an=Qt.sent,xt.update({cancelButtonProps:{disabled:!1}}),an&&an.status===0&&(m.a.destroyAll(),m.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:L.a.createElement("div",{className:U.a.modalColumn},L.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20 mb10"},L.a.createElement("img",{style:{marginRight:5},src:Ee.a}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:ie,onOk:function(){var zt,en,Jt=an==null||((zt=an.first_category_url)===null||zt===void 0||((en=zt.split("/"))===null||en===void 0))?void 0:en[2];Object(F.O)("/classrooms/".concat(Jt,"/exercise"))}}));case 10:case"end":return Qt.stop()}},kt)}));function Ht(){return at.apply(this,arguments)}return Ht}()});case 16:case"end":return W.stop()}},Te)}));return function(){return ye.apply(this,arguments)}}(),Oe=function(){var ye=Object(h.a)(_.a.mark(function Te(){return _.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return me(!0),ke.next=3,J();case 3:case"end":return ke.stop()}},Te)}));return function(){return ye.apply(this,arguments)}}(),we=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return L.a.createElement("div",null,L.a.createElement(m.a,{centered:!0,keyboard:!1,closable:!1,visible:Ne.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:fe["paperlibrary/sendToClass"],width:600,onOk:se,destroyOnClose:!0,onCancel:ie},L.a.createElement("div",{className:U.a.wrap},L.a.createElement("div",{className:U.a.title},L.a.createElement("img",{src:Z.a}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377"),L.a.createElement("div",{className:"mb10"},L.a.createElement(ue,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:G,onChange:function(Te){je(Te.target.value),Te.target.value||J(!0)},onSearch:function(Te){je(Te),J(),ct([])}})),pe.length?L.a.createElement("div",{className:U.a.radioWrap},L.a.createElement(j.a,{rowClassName:U.a.row,bordered:!1,scroll:(pe==null?void 0:pe.length)<=7?{}:{y:350},loading:ne,rowKey:"course_id",pagination:!1,dataSource:pe,columns:we,onRow:function(Te){return{onClick:function(ke){console.log([Te==null?void 0:Te.course_id]),ct([Te==null?void 0:Te.course_id])}}},rowSelection:{type:"radio",selectedRowKeys:$e,onChange:function(Te){ct(Te),Ze(!1)}}})):!G&&!ne&&L.a.createElement(x,{createState:Nt,refreshLoading:Re,onRefresh:Oe,onCreate:function(){Ot(!1),Object(F.O)("/classrooms/new")}}),$&&L.a.createElement("div",{className:U.a.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"))))},N=z.a=Object(k.a)(function(_e){var ve=_e.paperlibrary,Ne=_e.loading,Ie=_e.globalSetting;return{paperlibrary:ve,globalSetting:Ie,loading:Ne.effects}})(he)},mOS8:function(Se,z,e){Se.exports=e.p+"static/403Qrcode.6c17b6f4.png"},n6Qo:function(Se,z,e){"use strict";e.d(z,"a",function(){return ae});var w=e("q1tI"),j=e("biw7"),De=e("fyJ8");function S(h){var ce=h.className,H=h.index,de=h.children,be=h.colSpan,Y=h.rowSpan,_=w.useContext(j.a),y=_.prefixCls,L=_.fixedInfoList,k=L[H];return w.createElement(De.a,Object.assign({className:ce,index:H,component:"td",prefixCls:y,record:null,dataIndex:null,render:function(){return{children:de,props:{colSpan:be,rowSpan:Y}}}},k))}function o(h){return w.createElement("tr",Object.assign({},h))}function m(h){var ce=h.children,H=w.useContext(j.a),de=H.prefixCls;return w.createElement("tfoot",{className:"".concat(de,"-summary")},ce)}var D=z.b=m,ae={Cell:S,Row:o}},"rd/4":function(Se,z,e){Se.exports=e.p+"static/noData.dc777645.png"},sR1s:function(Se,z,e){"use strict";e.d(z,"b",function(){return S}),e.d(z,"a",function(){return o}),e.d(z,"c",function(){return m}),e.d(z,"d",function(){return D});var w=e("U8pU"),j="RC_TABLE_KEY";function De(ae){return ae==null?[]:Array.isArray(ae)?ae:[ae]}function S(ae,h){if(!h&&typeof h!="number")return ae;for(var ce=De(h),H=ae,de=0;de1)Object(ce.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Z.length===0)return Object(ce.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var K=Z[0];if(m.isValidElement(K)&&Object(H.c)(K)){var Ee=K.ref;Z[0]=m.cloneElement(K,{ref:Object(H.a)(Ee,this.setChildNode)})}return Z.length===1?Z[0]:Z.map(function(A,U){return!m.isValidElement(A)||"key"in A&&A.key!==null?A:m.cloneElement(A,{key:"".concat(be,"-").concat(U)})})}}]),L}(m.Component);Y.displayName="ResizeObserver",z.a=Y},wCXF:function(Se,z,e){"use strict";e.d(z,"a",function(){return _t});var w=e("rePB"),j=e("VTBJ"),De=e("KQm4"),S=e("U8pU"),o=e("ODXe"),m=e("q1tI"),D=e("TSYQ"),ae=e.n(D),h=e("Gytx"),ce=e.n(h),H=e("Kwbf"),de=e("t23M"),be=e("qx4F"),Y=e("6eGT"),_=e("IBYe"),y=e("Ff2n"),L=e("c+Xe"),k=e("fyJ8"),V=e("biw7");function Z(R,ne,oe,Pe,Ae){var Re=oe[R]||{},me=oe[ne]||{},ie,J;Re.fixed==="left"?ie=Pe.left[R]:me.fixed==="right"&&(J=Pe.right[ne]);var Q=!1,se=!1,Oe=!1,we=!1,ye=oe[ne+1],Te=oe[R-1];if(Ae==="rtl"){if(ie!==void 0){var Ve=Te&&Te.fixed==="left";we=!Ve}else if(J!==void 0){var ke=ye&&ye.fixed==="right";Oe=!ke}}else if(ie!==void 0){var Ye=ye&&ye.fixed==="left";Q=!Ye}else if(J!==void 0){var te=Te&&Te.fixed==="right";se=!te}return{fixLeft:ie,fixRight:J,lastFixLeft:Q,firstFixRight:se,lastFixRight:Oe,firstFixLeft:we,isSticky:Pe.isSticky}}var K=e("sR1s");function Ee(R){var ne=R.cells,oe=R.stickyOffsets,Pe=R.flattenColumns,Ae=R.rowComponent,Re=R.cellComponent,me=R.onHeaderRow,ie=R.index,J=m.useContext(V.a),Q=J.prefixCls,se=J.direction,Oe;me&&(Oe=me(ne.map(function(ye){return ye.column}),ie));var we=Object(K.a)(ne.map(function(ye){return ye.column}));return m.createElement(Ae,Object.assign({},Oe),ne.map(function(ye,Te){var Ve=ye.column,ke=Z(ye.colStart,ye.colEnd,Pe,oe,se),Ye;return Ve&&Ve.onHeaderCell&&(Ye=ye.column.onHeaderCell(Ve)),m.createElement(k.a,Object.assign({},ye,{ellipsis:Ve.ellipsis,align:Ve.align,component:Re,prefixCls:Q,key:we[Te]},ke,{additionalProps:Ye,rowType:"header"}))}))}Ee.displayName="HeaderRow";var A=Ee;function U(R){var ne=[];function oe(me,ie){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ne[J]=ne[J]||[];var Q=ie,se=me.filter(Boolean).map(function(Oe){var we={key:Oe.key,className:Oe.className||"",children:Oe.title,column:Oe,colStart:Q},ye=1,Te=Oe.children;return Te&&Te.length>0&&(ye=oe(Te,Q,J+1).reduce(function(Ve,ke){return Ve+ke},0),we.hasSubColumns=!0),"colSpan"in Oe&&(ye=Oe.colSpan),"rowSpan"in Oe&&(we.rowSpan=Oe.rowSpan),we.colSpan=ye,we.colEnd=we.colStart+ye-1,ne[J].push(we),Q+=ye,ye});return se}oe(R,0);for(var Pe=ne.length,Ae=function(ie){ne[ie].forEach(function(J){!("rowSpan"in J)&&!J.hasSubColumns&&(J.rowSpan=Pe-ie)})},Re=0;Re=0;ie-=1){var J=ne[ie],Q=oe&&oe[ie],se=Q&&Q[C.a];(J||se||me)&&(Ae.unshift(m.createElement("col",Object.assign({key:ie,style:{width:J,minWidth:J}},se))),me=!0)}return m.createElement("colgroup",null,Ae)}var M=u;function P(R,ne){return Object(m.useMemo)(function(){for(var oe=[],Pe=0;Pe1?un-1:0),xn=1;xn=Oe&&(Pt=Oe-we),me({scrollLeft:Pt/Oe*(se+2)}),te.current.x=W.pageX},ot=function(){var W=Object(ct.b)(Re.current).top,at=W+Re.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;at-Object(be.a)()<=Ht||W>=Ht-ie?Ye(function(kt){return Object(j.a)(Object(j.a)({},kt),{},{isHiddenScrollBar:!0})}):Ye(function(kt){return Object(j.a)(Object(j.a)({},kt),{},{isHiddenScrollBar:!1})})},xt=function(W){Ye(function(at){return Object(j.a)(Object(j.a)({},at),{},{scrollLeft:W/se*Oe||0})})};return m.useImperativeHandle(oe,function(){return{setScrollLeft:xt}}),m.useEffect(function(){var pt=Object($e.a)(document.body,"mouseup",dt,!1),W=Object($e.a)(document.body,"mousemove",Bt,!1);return ot(),function(){pt.remove(),W.remove()}},[we,He]),m.useEffect(function(){var pt=Object($e.a)(window,"scroll",ot,!1),W=Object($e.a)(window,"resize",ot,!1);return function(){pt.remove(),W.remove()}},[]),m.useEffect(function(){ke.isHiddenScrollBar||Ye(function(pt){var W,at;return Object(j.a)(Object(j.a)({},pt),{},{scrollLeft:Re.current.scrollLeft/((W=Re.current)===null||W===void 0?void 0:W.scrollWidth)*((at=Re.current)===null||at===void 0?void 0:at.clientWidth)})})},[ke.isHiddenScrollBar]),se<=Oe||!we||ke.isHiddenScrollBar?null:m.createElement("div",{style:{height:Object(be.a)(),width:Oe,bottom:ie},className:"".concat(Q,"-sticky-scroll")},m.createElement("div",{onMouseDown:nt,ref:ye,className:ae()("".concat(Q,"-sticky-scroll-bar"),Object(w.a)({},"".concat(Q,"-sticky-scroll-bar-active"),He)),style:{width:"".concat(we,"px"),transform:"translate3d(".concat(ke.scrollLeft,"px, 0, 0)")}}))},ze=m.forwardRef(Qe);function $(R,ne){return m.useMemo(function(){var oe=!!R;return{isSticky:oe,stickyClassName:oe?"".concat(ne,"-sticky-header"):"",offsetHeader:Object(S.a)(R)==="object"&&R.offsetHeader||0,offsetScroll:Object(S.a)(R)==="object"&&R.offsetScroll||0}},[R,ne])}var Ze=[],yt={},_t="rc-table-internal-hook",Nt=m.memo(function(R){var ne=R.children;return ne},function(R,ne){return ce()(R.props,ne.props)?R.pingLeft!==ne.pingLeft||R.pingRight!==ne.pingRight:!1});function Ot(R){var ne,oe=R.prefixCls,Pe=R.className,Ae=R.rowClassName,Re=R.style,me=R.data,ie=R.rowKey,J=R.scroll,Q=R.tableLayout,se=R.direction,Oe=R.title,we=R.footer,ye=R.summary,Te=R.id,Ve=R.showHeader,ke=R.components,Ye=R.emptyText,te=R.onRow,mt=R.onHeaderRow,vt=R.internalHooks,He=R.transformColumns,bt=R.internalRefs,dt=R.sticky,nt=me||Ze,Bt=!!nt.length,ot=m.useState(0),xt=Object(o.a)(ot,2),pt=xt[0],W=xt[1];m.useEffect(function(){W(Object(be.a)())});var at=m.useMemo(function(){return Object(K.c)(ke,{})},[ke]),Ht=m.useCallback(function(Rt,tt){return Object(K.b)(at,Rt)||tt},[at]),kt=m.useMemo(function(){return typeof ie=="function"?ie:function(Rt){var tt=Rt&&Rt[ie];return tt}},[ie]),Pt=Object(C.c)(R),mn=Pt.expandIcon,On=Pt.expandedRowKeys,an=Pt.defaultExpandedRowKeys,Et=Pt.defaultExpandAllRows,Qt=Pt.expandedRowRender,Pn=Pt.onExpand,zt=Pt.onExpandedRowsChange,en=Pt.expandRowByClick,Jt=Pt.rowExpandable,Tn=Pt.expandIconColumnIndex,Sn=Pt.expandedRowClassName,En=Pt.childrenColumnName,Hn=Pt.indentSize,In=mn||st,Xn=En||"children",kn=m.useMemo(function(){return Qt?"row":R.expandable&&vt===_t&&R.expandable.__PARENT_RENDER_ICON__||nt.some(function(Rt){return Rt&&Object(S.a)(Rt)==="object"&&Rt[Xn]})?"nest":!1},[!!Qt,nt]),Gn=m.useState(function(){return an||(Et?Je(nt,kt,Xn):[])}),on=Object(o.a)(Gn,2),ln=on[0],Zt=on[1],un=m.useMemo(function(){return new Set(On||ln||[])},[On,ln]),gn=m.useCallback(function(Rt){var tt=kt(Rt,nt.indexOf(Rt)),Kt,_n=un.has(tt);_n?(un.delete(tt),Kt=Object(De.a)(un)):Kt=[].concat(Object(De.a)(un),[tt]),Zt(Kt),Pn&&Pn(!_n,Rt),zt&&zt(Kt)},[kt,un,nt,Pn,zt]),xn=m.useState(0),Mt=Object(o.a)(xn,2),Mn=Mt[0],Dn=Mt[1],pn=Object(le.b)(Object(j.a)(Object(j.a)(Object(j.a)({},R),Pt),{},{expandable:!!Qt,expandedKeys:un,getRowKey:kt,onTriggerExpand:gn,expandIcon:In,expandIconColumnIndex:Tn,direction:se}),vt===_t?He:null),Ra=Object(o.a)(pn,2),ta=Ra[0],Wt=Ra[1],ia=m.useMemo(function(){return{columns:ta,flattenColumns:Wt}},[ta,Wt]),Qn=m.useRef(),va=m.useRef(),An=m.useRef(),Cn=m.useState(!1),$n=Object(o.a)(Cn,2),ba=$n[0],Fa=$n[1],Ka=m.useState(!1),Ea=Object(o.a)(Ka,2),sa=Ea[0],Ba=Ea[1],za=B(new Map),ja=Object(o.a)(za,2),Pa=ja[0],Za=ja[1],Fn=Object(K.a)(Wt),la=Fn.map(function(Rt){return Pa.get(Rt)}),Ta=m.useMemo(function(){return la},[la.join("_")]),ga=Ke(Ta,Wt.length,se),yn=J&&Object(K.d)(J.y),Nn=J&&Object(K.d)(J.x),wn=Nn&&Wt.some(function(Rt){var tt=Rt.fixed;return tt}),Ca=m.useRef(),na=$(dt,oe),aa=na.isSticky,Sa=na.offsetHeader,Da=na.offsetScroll,Aa=na.stickyClassName,ya,Kn,Zn;yn&&(Kn={overflowY:"scroll",maxHeight:J.y}),Nn&&(ya={overflowX:"auto"},yn||(Kn={overflowY:"hidden"}),Zn={width:J.x===!0?"auto":J.x,minWidth:"100%"});var Jn=m.useCallback(function(Rt,tt){Za(function(Kt){var _n=new Map(Kt);return _n.set(Rt,tt),_n})},[]),ua=G(null),Na=Object(o.a)(ua,2),wa=Na[0],La=Na[1];function Le(Rt,tt){if(!tt)return;typeof tt=="function"?tt(Rt):tt.scrollLeft!==Rt&&(tt.scrollLeft=Rt)}var xe=function(tt){var Kt=tt.currentTarget,_n=tt.scrollLeft,Oa=typeof _n=="number"?_n:Kt.scrollLeft,qa=Kt||yt;if(!La()||La()===qa){var Wa;wa(qa),Le(Oa,va.current),Le(Oa,An.current),Le(Oa,(Wa=Ca.current)===null||Wa===void 0?void 0:Wa.setScrollLeft)}if(Kt){var eo=Kt.scrollWidth,to=Kt.clientWidth;Fa(Oa>0),Ba(Oa0?[].concat(Object(j.a)(y),Object(j.a)(H(Z).map(function(K){return Object(De.a)({fixed:V},K)}))):[].concat(Object(j.a)(y),[Object(De.a)(Object(De.a)({},L),{},{fixed:V})])},[])}function de(_){for(var y=!0,L=0;L<_.length;L+=1){var k=_[L];if(y&&k.fixed!=="left")y=!1;else if(!y&&k.fixed==="left"){Object(D.a)(!1,"Index ".concat(L-1," of `columns` missing `fixed='left'` prop."));break}}for(var V=!0,Z=_.length-1;Z>=0;Z-=1){var K=_[Z];if(V&&K.fixed!=="right")V=!1;else if(!V&&K.fixed==="right"){Object(D.a)(!1,"Index ".concat(Z+1," of `columns` missing `fixed='right'` prop."));break}}}function be(_){return _.map(function(y){var L=y.fixed,k=Object(S.a)(y,["fixed"]),V=L;return L==="left"?V="right":L==="right"&&(V="left"),Object(De.a)({fixed:V},k)})}function Y(_,y){var L=_.prefixCls,k=_.columns,V=_.children,Z=_.expandable,K=_.expandedKeys,Ee=_.getRowKey,A=_.onTriggerExpand,U=_.expandIcon,F=_.rowExpandable,v=_.expandIconColumnIndex,C=_.direction,u=_.expandRowByClick,M=o.useMemo(function(){return k||ce(V)},[k,V]),P=o.useMemo(function(){if(Z){var b,s=v||0,x=M[s],X=(b={},Object(w.a)(b,h.a,{className:"".concat(L,"-expand-icon-col")}),Object(w.a)(b,"title",""),Object(w.a)(b,"fixed",x?x.fixed:null),Object(w.a)(b,"className","".concat(L,"-row-expand-icon-cell")),Object(w.a)(b,"render",function(N,_e,ve){var Ne=Ee(_e,ve),Ie=K.has(Ne),fe=F?F(_e):!0,le=U({prefixCls:L,expanded:Ie,expandable:fe,record:_e,onExpand:A});return u?o.createElement("span",{onClick:function(ge){return ge.stopPropagation()}},le):le}),b),ue=M.slice();return s>=0&&ue.splice(s,0,X),ue}return M},[Z,M,Ee,K,U,C]),T=o.useMemo(function(){var b=P;return y&&(b=y(b)),b.length||(b=[{render:function(){return null}}]),b},[y,P,C]),i=o.useMemo(function(){return C==="rtl"?be(H(T)):H(T)},[T,C]);return[T,i]}z.b=Y},"y0+3":function(Se,z,e){"use strict";e.d(z,"a",function(){return H}),e.d(z,"b",function(){return be});var w=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},De={cssFloat:1,styleFloat:1,float:1};function S(Y){return Y.nodeType===1?Y.ownerDocument.defaultView.getComputedStyle(Y,null):{}}function o(Y,_,y){if(_=_.toLowerCase(),y==="auto"){if(_==="height")return Y.offsetHeight;if(_==="width")return Y.offsetWidth}return _ in j||(j[_]=w.test(_)),j[_]?parseFloat(y)||0:y}function m(Y,_){var y=arguments.length,L=S(Y);return _=De[_]?"cssFloat"in Y.style?"cssFloat":"styleFloat":_,y===1?L:o(Y,_,L[_]||Y.style[_])}function D(Y,_,y){var L=arguments.length;if(_=De[_]?"cssFloat"in Y.style?"cssFloat":"styleFloat":_,L===3)return typeof y=="number"&&w.test(_)&&(y="".concat(y,"px")),Y.style[_]=y,y;for(var k in _)_.hasOwnProperty(k)&&D(Y,k,_[k]);return S(Y)}function ae(Y){return Y===document.body?document.documentElement.clientWidth:Y.offsetWidth}function h(Y){return Y===document.body?window.innerHeight||document.documentElement.clientHeight:Y.offsetHeight}function ce(){var Y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Y,height:_}}function H(){var Y=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:Y,height:_}}function de(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(Y){var _=Y.getBoundingClientRect(),y=document.documentElement;return{left:_.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}},z5tG:function(Se,z,e){Se.exports={tilte:"tilte___qxhUq",flexRow:"flexRow___3Vjbd",flexColumn:"flexColumn___1VZsd",footerWrap:"footerWrap___1hiUt",img:"img___1jm4F",content:"content___1I6uS",modalContent:"modalContent___3mpPG",modalContentLeft:"modalContentLeft___2OV-j",modal:"modal___1fHWX"}}}]); diff --git a/p__Shixuns__Detail__ForkList__index.71825519.async.js b/p__Shixuns__Detail__ForkList__index.71825519.async.js index 5f91c6395a..79b81917ac 100644 --- a/p__Shixuns__Detail__ForkList__index.71825519.async.js +++ b/p__Shixuns__Detail__ForkList__index.71825519.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[210,8],{"6+eU":function(Oe,_,t){"use strict";t.d(_,"a",function(){return f});var g=t("wx14"),y=t("rePB"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("Ji7U"),Q=t("LK+K"),L=t("q1tI"),d=t.n(L),B=t("TSYQ"),j=t.n(B),X=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=j()(a,"".concat(a,"-").concat(b.page),(n={},Object(y.a)(n,"".concat(a,"-active"),b.active),Object(y.a)(n,b.className,!!b.className),Object(y.a)(n,"".concat(a,"-disabled"),!b.page),n)),i=function(){b.onClick(b.page)},c=function(U){b.onKeyPress(U,b.onClick,b.page)};return d.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:i,onKeyPress:c,tabIndex:"0"},b.itemRender(b.page,"page",d.a.createElement("a",{rel:"nofollow"},b.page)))},H=X,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(){var a;Object(le.a)(this,n);for(var e=arguments.length,i=new Array(e),c=0;c=0||u.relatedTarget.className.indexOf("".concat(z,"-next"))>=0))return;a.setState({goInputText:""}),W(a.getValidValue())},a.go=function(u){var U=a.state.goInputText;if(U==="")return;(u.keyCode===D.ENTER||u.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(R.a)(n,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(u){return u.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(u,U){var h=isNaN(Number(u))?0:Number(u),W=isNaN(Number(U))?0:Number(U);return h-W})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,u=i.locale,U=i.rootPrefixCls,h=i.changeSize,W=i.quickGo,z=i.goButton,q=i.selectComponentClass,he=i.buildOptionText,Z=i.selectPrefixCls,A=i.disabled,ee=this.state.goInputText,oe="".concat(U,"-options"),ne=q,re=null,be=null,J=null;if(!h&&!W)return null;var Re=this.getPageSizeOptions();if(h&&ne){var fe=Re.map(function(Y,je){return d.a.createElement(ne.Option,{key:je,value:Y.toString()},(he||e.buildOptionText)(Y))});re=d.a.createElement(ne,{disabled:A,prefixCls:Z,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(je){return je.parentNode}},fe)}return W&&(z&&(J=typeof z=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(oe,"-quick-jumper-button")},u.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},z)),be=d.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},u.jump_to,d.a.createElement("input",{disabled:A,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,J)),d.a.createElement("li",{className:"".concat(oe)},re,be)}}]),n}(d.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function m(){}function E(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function C(v,b,n){return n}function p(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var K=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(a){var e;Object(le.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(h,W){var z=e.props.prefixCls,q=h||d.a.createElement("button",{type:"button","aria-label":W,className:"".concat(z,"-item-link")});return typeof h=="function"&&(q=d.a.createElement(h,Object($.a)({},e.props))),q},e.savePaginationNode=function(h){e.paginationNode=h},e.isValid=function(h){return E(h)&&h!==e.state.current},e.shouldDisplayQuickJumper=function(){var h=e.props,W=h.showQuickJumper,z=h.pageSize,q=h.total;return q<=z?!1:W},e.handleKeyDown=function(h){(h.keyCode===D.ARROW_UP||h.keyCode===D.ARROW_DOWN)&&h.preventDefault()},e.handleKeyUp=function(h){var W=e.getValidValue(h),z=e.state.currentInputValue;W!==z&&e.setState({currentInputValue:W}),h.keyCode===D.ENTER?e.handleChange(W):h.keyCode===D.ARROW_UP?e.handleChange(W-1):h.keyCode===D.ARROW_DOWN&&e.handleChange(W+1)},e.changePageSize=function(h){var W=e.state.current,z=p(h,e.state,e.props);W=W>z?z:W,z===0&&(W=e.state.current),typeof h=="number"&&("pageSize"in e.props||e.setState({pageSize:h}),"current"in e.props||e.setState({current:W,currentInputValue:W})),e.props.onShowSizeChange(W,h),"onChange"in e.props&&e.props.onChange&&e.props.onChange(W,h)},e.handleChange=function(h){var W=e.props.disabled,z=h;if(e.isValid(z)&&!W){var q=p(void 0,e.state,e.props);z>q?z=q:z<1&&(z=1),"current"in e.props||e.setState({current:z,currentInputValue:z});var he=e.state.pageSize;return e.props.onChange(z,he),z}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?z-2:0),he=2;he=c?U=c:U=Number(i),U}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,u=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>u}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,u=i.itemRender,U=u(e,"prev",this.getItemIcon(c,"prev page")),h=!this.hasPrev();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,u=i.itemRender,U=u(e,"next",this.getItemIcon(c,"next page")),h=!this.hasNext();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,u=i.className,U=i.style,h=i.disabled,W=i.hideOnSinglePage,z=i.total,q=i.locale,he=i.showQuickJumper,Z=i.showLessItems,A=i.showTitle,ee=i.showTotal,oe=i.simple,ne=i.itemRender,re=i.showPrevNextJumpers,be=i.jumpPrevIcon,J=i.jumpNextIcon,Re=i.selectComponentClass,fe=i.selectPrefixCls,Y=i.pageSizeOptions,je=this.state,te=je.current,_e=je.pageSize,Pe=je.currentInputValue;if(W===!0&&z<=_e)return null;var ue=p(void 0,this.state,this.props),ge=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,de=he&&he.goButton,me=Z?1:2,Qe=te-1>0?te-1:0,et=te+1=me*2&&te!==1+2&&(ge[0]=Object(L.cloneElement)(ge[0],{className:"".concat(c,"-item-after-jump-prev")}),ge.unshift(Be)),ue-te>=me*2&&te!==ue-2&&(ge[ge.length-1]=Object(L.cloneElement)(ge[ge.length-1],{className:"".concat(c,"-item-before-jump-next")}),ge.push(Ue)),N!==1&&ge.unshift(ke),w!==ue&&ge.push(Ye)}var S=null;ee&&(S=d.a.createElement("li",{className:"".concat(c,"-total-text")},ee(z,[z===0?0:(te-1)*_e+1,te*_e>z?z:te*_e])));var P=!this.hasPrev()||!ue,T=!this.hasNext()||!ue;return d.a.createElement("ul",Object(g.a)({className:j()(c,u,Object(y.a)({},"".concat(c,"-disabled"),h)),style:U,unselectable:"unselectable",ref:this.savePaginationNode},tt),S,d.a.createElement("li",{title:A?q.prev_page:null,onClick:this.prev,tabIndex:P?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(c,"-prev"),Object(y.a)({},"".concat(c,"-disabled"),P)),"aria-disabled":P},this.renderPrev(Qe)),ge,d.a.createElement("li",{title:A?q.next_page:null,onClick:this.next,tabIndex:T?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(c,"-next"),Object(y.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderNext(et)),d.a.createElement(l,{disabled:h,locale:q,rootPrefixCls:c,selectComponentClass:Re,selectPrefixCls:fe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:_e,pageSizeOptions:Y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var u=i.current,U=p(e.pageSize,i,e);u=u>U?U:u,"current"in e||(c.current=u,c.currentInputValue=u),c.pageSize=e.pageSize}return c}}]),n}(d.a.Component);K.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:O.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var f=K},"6RRn":function(Oe,_,t){"use strict";var g=t("wCXF"),y=t("n6Qo");t.d(_,"b",function(){return y.a});var $=t("IBYe"),le=t("6eGT"),R=t("hW8S");t.d(_,"a",function(){return R.a}),_.c=g.b},"6eGT":function(Oe,_,t){"use strict";function g(y){return null}_.a=g},"815F":function(Oe,_,t){"use strict";t.d(_,"e",function(){return Q}),t.d(_,"c",function(){return d}),t.d(_,"d",function(){return B}),t.d(_,"a",function(){return X}),t.d(_,"f",function(){return H}),t.d(_,"b",function(){return D});var g=t("KQm4"),y=t("VTBJ"),$=t("Ff2n"),le=t("Zm9Q"),R=t("Kwbf"),o=t("OZM5");function Q(s,l){return s!=null?s:l}function L(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(C){var p=C.key,K=C.children;Object(R.a)(p!=null,"Tree node must have a certain key: [".concat(E).concat(p,"]"));var f=String(p);Object(R.a)(!l.has(f)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),O(K,"".concat(E).concat(f," > "))})}O(s)}function d(s){function l(O){var m=Object(le.a)(O);return m.map(function(E){if(!Object(o.i)(E))return Object(R.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var C=E.key,p=E.props,K=p.children,f=Object($.a)(p,["children"]),v=Object(y.a)({key:C},f),b=l(K);return b.length&&(v.children=b),v}).filter(function(E){return E})}return l(s)}function B(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),m=[];function E(C){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(K,f){var v=Object(o.h)(p?p.pos:"0",f),b=Q(K.key,v),n=Object(y.a)(Object(y.a)({},K),{},{parent:p,pos:v,children:null,data:K,isStart:[].concat(Object(g.a)(p?p.isStart:[]),[f===0]),isEnd:[].concat(Object(g.a)(p?p.isEnd:[]),[f===C.length-1])});return m.push(n),l===!0||O.has(b)?n.children=E(K.children||[],n):n.children=[],n})}return E(s),m}function j(s,l,O){var m;O?typeof O=="string"?m=function(p){return p[O]}:typeof O=="function"&&(m=function(p){return O(p)}):m=function(p,K){return Q(p.key,K)};function E(C,p,K){var f=C?C.children:s,v=C?Object(o.h)(K.pos,p):"0";if(C){var b=m(C,v),n={node:C,index:p,pos:v,key:b,parentPos:K.node?K.pos:null,level:K.level+1};l(n)}f&&f.forEach(function(a,e){E(a,e,{node:C,pos:v,level:K?K.level+1:-1})})}E(null)}function X(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,m=l.processEntity,E=l.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,p={},K={},f={posEntities:p,keyEntities:K};return O&&(f=O(f)||f),j(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,i=v.parentPos,c=v.level,u={node:b,index:n,key:e,pos:a,level:c},U=Q(e,a);p[a]=u,K[U]=u,u.parent=p[i],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),m&&m(u,f)},C),E&&E(f),f}function H(s,l){var O=l.expandedKeys,m=l.selectedKeys,E=l.loadedKeys,C=l.loadingKeys,p=l.checkedKeys,K=l.halfCheckedKeys,f=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:m.indexOf(s)!==-1,loaded:E.indexOf(s)!==-1,loading:C.indexOf(s)!==-1,checked:p.indexOf(s)!==-1,halfChecked:K.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&v===0,dragOverGapTop:f===s&&v===-1,dragOverGapBottom:f===s&&v===1};return a}function D(s){var l=s.data,O=s.expanded,m=s.selected,E=s.checked,C=s.loaded,p=s.loading,K=s.halfChecked,f=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(y.a)(Object(y.a)({},l),{},{expanded:O,selected:m,checked:E,loaded:C,loading:p,halfChecked:K,dragOver:f,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(R.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},"9YGm":function(Oe,_,t){Oe.exports={bg:"bg___1bAP4",header:"header___1lG6Z",line:"line___2EDvV",main:"main___25tDY",row:"row___1OWn9"}},IBYe:function(Oe,_,t){"use strict";function g(y){return null}_.a=g},LdHM:function(Oe,_,t){"use strict";t.d(_,"b",function(){return C}),t.d(_,"a",function(){return K});var g=t("1OyB"),y=t("vuIU"),$=t("Ji7U"),le=t("LK+K"),R=t("q1tI"),o=t("rePB"),Q=t("Ff2n"),L=t("ODXe"),d=t("4IlW"),B=t("bX4T"),j=t("YrtM"),X=t("TSYQ"),H=t.n(X),D=t("+nKL"),s=t("8OUc"),l=function(A,ee){var oe=A.prefixCls,ne=A.id,re=A.flattenOptions,be=A.childrenAsData,J=A.values,Re=A.searchValue,fe=A.multiple,Y=A.defaultActiveFirstOption,je=A.height,te=A.itemHeight,_e=A.notFoundContent,Pe=A.open,ue=A.menuItemSelectedIcon,ge=A.virtual,Be=A.onSelect,Ue=A.onToggleOpen,ke=A.onActiveValue,Ye=A.onScroll,Ae=A.onMouseEnter,de="".concat(oe,"-item"),me=Object(j.a)(function(){return re},[Pe,re],function(M,S){return S[0]&&M[1]!==S[1]}),Qe=R.useRef(null),et=function(S){S.preventDefault()},tt=function(S){Qe.current&&Qe.current.scrollTo({index:S})},st=function(S){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,T=me.length,V=0;V1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,oe){if(!R.isValidElement(ee)||!ee.type)return null;var ne=ee.type.isSelectOptGroup,re=ee.key,be=ee.props,J=be.children,Re=Object(Q.a)(be,["children"]);return A||!ne?b(ee):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(re===null?oe:re,"__"),label:re},Re),{},{options:n(J)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),i=t("U8pU"),c=t("Kwbf"),u=t("WKfj");function U(Z){var A=Z.mode,ee=Z.options,oe=Z.children,ne=Z.backfill,re=Z.allowClear,be=Z.placeholder,J=Z.getInputElement,Re=Z.showSearch,fe=Z.onSearch,Y=Z.defaultOpen,je=Z.autoFocus,te=Z.labelInValue,_e=Z.value,Pe=Z.inputValue,ue=Z.optionLabelProp,ge=A==="multiple"||A==="tags",Be=Re!==void 0?Re:ge||A==="combobox",Ue=ee||n(oe);if(Object(c.a)(A!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var ke=Ue.some(function(de){return de.options?de.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(A!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(A==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(c.a)(A==="combobox"||!J,"`getInputElement` only work with `combobox` mode."),Object(c.b)(A!=="combobox"||!J||!re||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!Be&&A!=="combobox"&&A!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!Y||je,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var Ye=Object(u.d)(_e);Object(c.a)(!te||Ye.every(function(de){return Object(i.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ge||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var Ae=null;Object(v.a)(oe).some(function(de){if(!R.isValidElement(de)||!de.type)return!1;var me=de.type;if(me.isSelectOption)return!1;if(me.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!R.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=me,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Pe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var h=U,W=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:h,fillOptionsWithMissingValue:a.a}),z=function(Z){Object($.a)(ee,Z);var A=Object(le.a)(ee);function ee(){var oe;return Object(g.a)(this,ee),oe=A.apply(this,arguments),oe.selectRef=R.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(y.a)(ee,[{key:"render",value:function(){return R.createElement(W,Object.assign({ref:this.selectRef},this.props))}}]),ee}(R.Component);z.Option=C,z.OptGroup=K;var q=z,he=_.c=q},NvD2:function(Oe,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("Kwbf");function y(Q,L){var d=new Set;return Q.forEach(function(B){L.has(B)||d.add(B)}),d}function $(Q){var L=Q||{},d=L.disabled,B=L.disableCheckbox,j=L.checkable;return!!(d||B)||j===!1}function le(Q,L,d,B){for(var j=new Set(Q),X=new Set,H=0;H<=d;H+=1){var D=L.get(H)||new Set;D.forEach(function(m){var E=m.key,C=m.node,p=m.children,K=p===void 0?[]:p;j.has(E)&&!B(C)&&K.filter(function(f){return!B(f.node)}).forEach(function(f){j.add(f.key)})})}for(var s=new Set,l=d;l>=0;l-=1){var O=L.get(l)||new Set;O.forEach(function(m){var E=m.parent,C=m.node;if(B(C)||!m.parent||s.has(m.parent.key))return;if(B(m.parent.node)){s.add(E.key);return}var p=!0,K=!1;(E.children||[]).filter(function(f){return!B(f.node)}).forEach(function(f){var v=f.key,b=j.has(v);p&&!b&&(p=!1),!K&&(b||X.has(v))&&(K=!0)}),p&&j.add(E.key),K&&X.add(E.key),s.add(E.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(y(X,j))}}function R(Q,L,d,B,j){for(var X=new Set(Q),H=new Set(L),D=0;D<=B;D+=1){var s=d.get(D)||new Set;s.forEach(function(E){var C=E.key,p=E.node,K=E.children,f=K===void 0?[]:K;!X.has(C)&&!H.has(C)&&!j(p)&&f.filter(function(v){return!j(v.node)}).forEach(function(v){X.delete(v.key)})})}H=new Set;for(var l=new Set,O=B;O>=0;O-=1){var m=d.get(O)||new Set;m.forEach(function(E){var C=E.parent,p=E.node;if(j(p)||!E.parent||l.has(E.parent.key))return;if(j(E.parent.node)){l.add(C.key);return}var K=!0,f=!1;(C.children||[]).filter(function(v){return!j(v.node)}).forEach(function(v){var b=v.key,n=X.has(b);K&&!n&&(K=!1),!f&&(n||H.has(b))&&(f=!0)}),K||X.delete(C.key),f&&H.add(C.key),l.add(C.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(y(H,X))}}function o(Q,L,d,B){var j=[],X;B?X=B:X=$;var H=new Set(Q.filter(function(O){var m=!!d[O];return m||j.push(O),m})),D=new Map,s=0;Object.keys(d).forEach(function(O){var m=d[O],E=m.level,C=D.get(E);C||(C=new Set,D.set(E,C)),C.add(m),s=Math.max(s,E)}),Object(g.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return L===!0?l=le(H,D,s,X):l=R(H,L.halfCheckedKeys,D,s,X),l}},OZM5:function(Oe,_,t){"use strict";t.d(_,"b",function(){return B}),t.d(_,"a",function(){return j}),t.d(_,"k",function(){return X}),t.d(_,"h",function(){return H}),t.d(_,"i",function(){return D}),t.d(_,"g",function(){return s}),t.d(_,"c",function(){return l}),t.d(_,"d",function(){return O}),t.d(_,"j",function(){return C}),t.d(_,"e",function(){return p}),t.d(_,"f",function(){return K});var g=t("KQm4"),y=t("U8pU"),$=t("Ff2n"),le=t("q1tI"),R=t.n(le),o=t("Kwbf"),Q=t("WaYH"),L=.25,d=2;function B(f,v){var b=f.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function j(f,v){var b=f.slice();return b.indexOf(v)===-1&&b.push(v),b}function X(f){return f.split("-")}function H(f,v){return"".concat(f,"-").concat(v)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,v){var b=[f],n=v[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,u=i.children;b.push(c),a(u)})}return a(n.children),b}function l(f,v){var b=f.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,i=n.height,c=Math.max(i*L,d);return b<=a+c?-1:b>=e-c?1:0}function O(f,v){if(!f)return;var b=v.multiple;return b?f.slice():f.length?[f[0]]:f}var m=function(v){return v};function E(f,v){if(!f)return[];var b=v||{},n=b.processProps,a=n===void 0?m:n,e=Array.isArray(f)?f:[f];return e.map(function(i){var c=i.children,u=Object($.a)(i,["children"]),U=E(c,v);return R.a.createElement(Q.a,Object.assign({},a(u)),U)})}function C(f){if(!f)return null;var v;if(Array.isArray(f))v={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(y.a)(f)==="object")v={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function p(f,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var i=e.parent,c=e.node;if(c.disabled)return;i&&n(i.key)}return(f||[]).forEach(function(a){n(a)}),Object(g.a)(b)}function K(f){var v={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=f[b])}),v}},"SA+Z":function(Oe,_,t){var g=t("wTVA"),y=t("EbDI"),$=t("ZhPi"),le=t("wkBT");function R(o){return g(o)||y(o)||$(o)||le()}Oe.exports=R,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,_,t){"use strict";var g=t("rePB"),y=t("Ff2n"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("JX7q"),Q=t("Ji7U"),L=t("LK+K"),d=t("q1tI"),B=t("TSYQ"),j=t.n(B),X=t("sboe"),H=t("OZM5"),D=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var i="".concat(b,"-indent-unit"),c=[],u=0;u1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(C.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=C[0];if(o.isValidElement(p)&&Object(j.c)(p)){var K=p.ref;C[0]=o.cloneElement(p,{ref:Object(j.a)(K,this.setChildNode)})}return C.length===1?C[0]:C.map(function(f,v){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(H,"-").concat(v)})})}}]),O}(o.Component);D.displayName="ResizeObserver",_.a=D},wCXF:function(Oe,_,t){"use strict";t.d(_,"a",function(){return tt});var g=t("rePB"),y=t("VTBJ"),$=t("KQm4"),le=t("U8pU"),R=t("ODXe"),o=t("q1tI"),Q=t("TSYQ"),L=t.n(Q),d=t("Gytx"),B=t.n(d),j=t("Kwbf"),X=t("t23M"),H=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),m=t("fyJ8"),E=t("biw7");function C(r,x,N,w,k){var M=N[r]||{},S=N[x]||{},P,T;M.fixed==="left"?P=w.left[r]:S.fixed==="right"&&(T=w.right[x]);var V=!1,I=!1,F=!1,ae=!1,G=N[x+1],ie=N[r-1];if(k==="rtl"){if(P!==void 0){var xe=ie&&ie.fixed==="left";ae=!xe}else if(T!==void 0){var Ee=G&&G.fixed==="right";F=!Ee}}else if(P!==void 0){var ye=G&&G.fixed==="left";V=!ye}else if(T!==void 0){var se=ie&&ie.fixed==="right";I=!se}return{fixLeft:P,fixRight:T,lastFixLeft:V,firstFixRight:I,lastFixRight:F,firstFixLeft:ae,isSticky:w.isSticky}}var p=t("sR1s");function K(r){var x=r.cells,N=r.stickyOffsets,w=r.flattenColumns,k=r.rowComponent,M=r.cellComponent,S=r.onHeaderRow,P=r.index,T=o.useContext(E.a),V=T.prefixCls,I=T.direction,F;S&&(F=S(x.map(function(G){return G.column}),P));var ae=Object(p.a)(x.map(function(G){return G.column}));return o.createElement(k,Object.assign({},F),x.map(function(G,ie){var xe=G.column,Ee=C(G.colStart,G.colEnd,w,N,I),ye;return xe&&xe.onHeaderCell&&(ye=G.column.onHeaderCell(xe)),o.createElement(m.a,Object.assign({},G,{ellipsis:xe.ellipsis,align:xe.align,component:M,prefixCls:V,key:ae[ie]},Ee,{additionalProps:ye,rowType:"header"}))}))}K.displayName="HeaderRow";var f=K;function v(r){var x=[];function N(S,P){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;x[T]=x[T]||[];var V=P,I=S.filter(Boolean).map(function(F){var ae={key:F.key,className:F.className||"",children:F.title,column:F,colStart:V},G=1,ie=F.children;return ie&&ie.length>0&&(G=N(ie,V,T+1).reduce(function(xe,Ee){return xe+Ee},0),ae.hasSubColumns=!0),"colSpan"in F&&(G=F.colSpan),"rowSpan"in F&&(ae.rowSpan=F.rowSpan),ae.colSpan=G,ae.colEnd=ae.colStart+G-1,x[T].push(ae),V+=G,G});return I}N(r,0);for(var w=x.length,k=function(P){x[P].forEach(function(T){!("rowSpan"in T)&&!T.hasSubColumns&&(T.rowSpan=w-P)})},M=0;M=0;P-=1){var T=x[P],V=N&&N[P],I=V&&V[a.a];(T||I||S)&&(k.unshift(o.createElement("col",Object.assign({key:P,style:{width:T,minWidth:T}},I))),S=!0)}return o.createElement("colgroup",null,k)}var i=e;function c(r,x){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),dt=1;dt=F&&(Se=F-ae),S({scrollLeft:Se/F*(I+2)}),se.current.x=ce.pageX},We=function(){var ce=Object(Ye.b)(M.current).top,we=ce+M.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=Fe||ce>=Fe-P?ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!1})})},Me=function(ce){ye(function(we){return Object(y.a)(Object(y.a)({},we),{},{scrollLeft:ce/I*F||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Me}}),o.useEffect(function(){var Ne=Object(ke.a)(document.body,"mouseup",$e,!1),ce=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Ne.remove(),ce.remove()}},[ae,Te]),o.useEffect(function(){var Ne=Object(ke.a)(window,"scroll",We,!1),ce=Object(ke.a)(window,"resize",We,!1);return function(){Ne.remove(),ce.remove()}},[]),o.useEffect(function(){Ee.isHiddenScrollBar||ye(function(Ne){var ce,we;return Object(y.a)(Object(y.a)({},Ne),{},{scrollLeft:M.current.scrollLeft/((ce=M.current)===null||ce===void 0?void 0:ce.scrollWidth)*((we=M.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ee.isHiddenScrollBar]),I<=F||!ae||Ee.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:F,bottom:P},className:"".concat(V,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:G,className:L()("".concat(V,"-sticky-scroll-bar"),Object(g.a)({},"".concat(V,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(ae,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(Ae);function me(r,x){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(x,"-sticky-header"):"",offsetHeader:Object(le.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(le.a)(r)==="object"&&r.offsetScroll||0}},[r,x])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var x=r.children;return x},function(r,x){return B()(r.props,x.props)?r.pingLeft!==x.pingLeft||r.pingRight!==x.pingRight:!1});function Ve(r){var x,N=r.prefixCls,w=r.className,k=r.rowClassName,M=r.style,S=r.data,P=r.rowKey,T=r.scroll,V=r.tableLayout,I=r.direction,F=r.title,ae=r.footer,G=r.summary,ie=r.id,xe=r.showHeader,Ee=r.components,ye=r.emptyText,se=r.onRow,Xe=r.onHeaderRow,De=r.internalHooks,Te=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,Ce=S||Qe,Ge=!!Ce.length,We=o.useState(0),Me=Object(R.a)(We,2),Ne=Me[0],ce=Me[1];o.useEffect(function(){ce(Object(H.a)())});var we=o.useMemo(function(){return Object(p.c)(Ee,{})},[Ee]),Fe=o.useCallback(function(pe,ve){return Object(p.b)(we,pe)||ve},[we]),Je=o.useMemo(function(){return typeof P=="function"?P:function(pe){var ve=pe&&pe[P];return ve}},[P]),Se=Object(a.c)(r),jt=Se.expandIcon,Nt=Se.expandedRowKeys,Rt=Se.defaultExpandedRowKeys,rt=Se.defaultExpandAllRows,it=Se.expandedRowRender,ft=Se.onExpand,mt=Se.onExpandedRowsChange,Pt=Se.expandRowByClick,nt=Se.rowExpandable,Et=Se.expandIconColumnIndex,pt=Se.expandedRowClassName,Kt=Se.childrenColumnName,St=Se.indentSize,ht=jt||Be,gt=Kt||"children",Tt=o.useMemo(function(){return it?"row":r.expandable&&De===tt&&r.expandable.__PARENT_RENDER_ICON__||Ce.some(function(pe){return pe&&Object(le.a)(pe)==="object"&&pe[gt]})?"nest":!1},[!!it,Ce]),Dt=o.useState(function(){return Rt||(rt?Ue(Ce,Je,gt):[])}),ze=Object(R.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Nt||Ze||[])},[Nt,Ze]),ct=o.useCallback(function(pe){var ve=Je(pe,Ce.indexOf(pe)),Ke,qe=He.has(ve);qe?(He.delete(ve),Ke=Object($.a)(He)):Ke=[].concat(Object($.a)(He),[ve]),at(Ke),ft&&ft(!qe,pe),mt&&mt(Ke)},[Je,He,Ce,ft,mt]),dt=o.useState(0),Mt=Object(R.a)(dt,2),Ct=Mt[0],Lt=Mt[1],vn=Object(J.b)(Object(y.a)(Object(y.a)(Object(y.a)({},r),Se),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:I}),De===tt?Te:null),Yt=Object(R.a)(vn,2),kt=Yt[0],Le=Yt[1],_t=o.useMemo(function(){return{columns:kt,flattenColumns:Le}},[kt,Le]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(R.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(R.a)(gn,2),tn=en[0],Cn=en[1],yn=Y(new Map),nn=Object(R.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Le),an=jn.map(function(pe){return On.get(pe)}),on=o.useMemo(function(){return an},[an.join("_")]),At=_e(on,Le.length,I),ot=T&&Object(p.d)(T.y),lt=T&&Object(p.d)(T.x),yt=lt&&Le.some(function(pe){var ve=pe.fixed;return ve}),rn=o.useRef(),wt=me($e,N),Ot=wt.isSticky,Nn=wt.offsetHeader,Rn=wt.offsetScroll,Pn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:T.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:T.x===!0?"auto":T.x,minWidth:"100%"});var ln=o.useCallback(function(pe,ve){xn(function(Ke){var qe=new Map(Ke);return qe.set(pe,ve),qe})},[]),Sn=je(null),sn=Object(R.a)(Sn,2),Tn=sn[0],cn=sn[1];function Ft(pe,ve){if(!ve)return;typeof ve=="function"?ve(pe):ve.scrollLeft!==pe&&(ve.scrollLeft=pe)}var vt=function(ve){var Ke=ve.currentTarget,qe=ve.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Tn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(y.a)(l),Object(y.a)(j(C).map(function(p){return Object($.a)({fixed:E},p)}))):[].concat(Object(y.a)(l),[Object($.a)(Object($.a)({},O),{},{fixed:E})])},[])}function X(s){for(var l=!0,O=0;O=0;C-=1){var p=s[C];if(E&&p.fixed!=="right")E=!1;else if(!E&&p.fixed==="right"){Object(Q.a)(!1,"Index ".concat(C+1," of `columns` missing `fixed='right'` prop."));break}}}function H(s){return s.map(function(l){var O=l.fixed,m=Object(le.a)(l,["fixed"]),E=O;return O==="left"?E="right":O==="right"&&(E="left"),Object($.a)({fixed:E},m)})}function D(s,l){var O=s.prefixCls,m=s.columns,E=s.children,C=s.expandable,p=s.expandedKeys,K=s.getRowKey,f=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,i=R.useMemo(function(){return m||B(E)},[m,E]),c=R.useMemo(function(){if(C){var h,W=n||0,z=i[W],q=(h={},Object(g.a)(h,d.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(h,"title",""),Object(g.a)(h,"fixed",z?z.fixed:null),Object(g.a)(h,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(h,"render",function(A,ee,oe){var ne=K(ee,oe),re=p.has(ne),be=b?b(ee):!0,J=v({prefixCls:O,expanded:re,expandable:be,record:ee,onExpand:f});return e?R.createElement("span",{onClick:function(fe){return fe.stopPropagation()}},J):J}),h),he=i.slice();return W>=0&&he.splice(W,0,q),he}return i},[C,i,K,p,v,a]),u=R.useMemo(function(){var h=c;return l&&(h=l(h)),h.length||(h=[{render:function(){return null}}]),h},[l,c,a]),U=R.useMemo(function(){return a==="rtl"?H(j(u)):j(u)},[u,a]);return[u,U]}_.b=D},"y0+3":function(Oe,_,t){"use strict";t.d(_,"a",function(){return j}),t.d(_,"b",function(){return H});var g=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function le(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function R(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in y||(y[s]=g.test(s)),y[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,O=le(D);return s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:R(D,s,O[s]||D.style[s])}function Q(D,s,l){var O=arguments.length;if(s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var m in s)s.hasOwnProperty(m)&&Q(D,m,s[m]);return le(D)}function L(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function d(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function B(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function j(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function X(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[210,8],{"6+eU":function(Oe,_,t){"use strict";t.d(_,"a",function(){return f});var g=t("wx14"),y=t("rePB"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("Ji7U"),Q=t("LK+K"),L=t("q1tI"),d=t.n(L),B=t("TSYQ"),j=t.n(B),X=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=j()(a,"".concat(a,"-").concat(b.page),(n={},Object(y.a)(n,"".concat(a,"-active"),b.active),Object(y.a)(n,b.className,!!b.className),Object(y.a)(n,"".concat(a,"-disabled"),!b.page),n)),i=function(){b.onClick(b.page)},c=function(U){b.onKeyPress(U,b.onClick,b.page)};return d.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:i,onKeyPress:c,tabIndex:"0"},b.itemRender(b.page,"page",d.a.createElement("a",{rel:"nofollow"},b.page)))},H=X,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(){var a;Object(le.a)(this,n);for(var e=arguments.length,i=new Array(e),c=0;c=0||u.relatedTarget.className.indexOf("".concat(z,"-next"))>=0))return;a.setState({goInputText:""}),W(a.getValidValue())},a.go=function(u){var U=a.state.goInputText;if(U==="")return;(u.keyCode===D.ENTER||u.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(R.a)(n,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(u){return u.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(u,U){var h=isNaN(Number(u))?0:Number(u),W=isNaN(Number(U))?0:Number(U);return h-W})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,u=i.locale,U=i.rootPrefixCls,h=i.changeSize,W=i.quickGo,z=i.goButton,q=i.selectComponentClass,he=i.buildOptionText,Z=i.selectPrefixCls,A=i.disabled,ee=this.state.goInputText,oe="".concat(U,"-options"),ne=q,re=null,be=null,J=null;if(!h&&!W)return null;var Re=this.getPageSizeOptions();if(h&&ne){var fe=Re.map(function(Y,je){return d.a.createElement(ne.Option,{key:je,value:Y.toString()},(he||e.buildOptionText)(Y))});re=d.a.createElement(ne,{disabled:A,prefixCls:Z,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(je){return je.parentNode}},fe)}return W&&(z&&(J=typeof z=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(oe,"-quick-jumper-button")},u.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},z)),be=d.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},u.jump_to,d.a.createElement("input",{disabled:A,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,J)),d.a.createElement("li",{className:"".concat(oe)},re,be)}}]),n}(d.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function m(){}function E(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function C(v,b,n){return n}function p(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var K=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(a){var e;Object(le.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(h,W){var z=e.props.prefixCls,q=h||d.a.createElement("button",{type:"button","aria-label":W,className:"".concat(z,"-item-link")});return typeof h=="function"&&(q=d.a.createElement(h,Object($.a)({},e.props))),q},e.savePaginationNode=function(h){e.paginationNode=h},e.isValid=function(h){return E(h)&&h!==e.state.current},e.shouldDisplayQuickJumper=function(){var h=e.props,W=h.showQuickJumper,z=h.pageSize,q=h.total;return q<=z?!1:W},e.handleKeyDown=function(h){(h.keyCode===D.ARROW_UP||h.keyCode===D.ARROW_DOWN)&&h.preventDefault()},e.handleKeyUp=function(h){var W=e.getValidValue(h),z=e.state.currentInputValue;W!==z&&e.setState({currentInputValue:W}),h.keyCode===D.ENTER?e.handleChange(W):h.keyCode===D.ARROW_UP?e.handleChange(W-1):h.keyCode===D.ARROW_DOWN&&e.handleChange(W+1)},e.changePageSize=function(h){var W=e.state.current,z=p(h,e.state,e.props);W=W>z?z:W,z===0&&(W=e.state.current),typeof h=="number"&&("pageSize"in e.props||e.setState({pageSize:h}),"current"in e.props||e.setState({current:W,currentInputValue:W})),e.props.onShowSizeChange(W,h),"onChange"in e.props&&e.props.onChange&&e.props.onChange(W,h)},e.handleChange=function(h){var W=e.props.disabled,z=h;if(e.isValid(z)&&!W){var q=p(void 0,e.state,e.props);z>q?z=q:z<1&&(z=1),"current"in e.props||e.setState({current:z,currentInputValue:z});var he=e.state.pageSize;return e.props.onChange(z,he),z}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?z-2:0),he=2;he=c?U=c:U=Number(i),U}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,u=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>u}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,u=i.itemRender,U=u(e,"prev",this.getItemIcon(c,"prev page")),h=!this.hasPrev();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,u=i.itemRender,U=u(e,"next",this.getItemIcon(c,"next page")),h=!this.hasNext();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,u=i.className,U=i.style,h=i.disabled,W=i.hideOnSinglePage,z=i.total,q=i.locale,he=i.showQuickJumper,Z=i.showLessItems,A=i.showTitle,ee=i.showTotal,oe=i.simple,ne=i.itemRender,re=i.showPrevNextJumpers,be=i.jumpPrevIcon,J=i.jumpNextIcon,Re=i.selectComponentClass,fe=i.selectPrefixCls,Y=i.pageSizeOptions,je=this.state,te=je.current,_e=je.pageSize,Te=je.currentInputValue;if(W===!0&&z<=_e)return null;var ue=p(void 0,this.state,this.props),ge=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,de=he&&he.goButton,me=Z?1:2,Qe=te-1>0?te-1:0,et=te+1=me*2&&te!==1+2&&(ge[0]=Object(L.cloneElement)(ge[0],{className:"".concat(c,"-item-after-jump-prev")}),ge.unshift(Be)),ue-te>=me*2&&te!==ue-2&&(ge[ge.length-1]=Object(L.cloneElement)(ge[ge.length-1],{className:"".concat(c,"-item-before-jump-next")}),ge.push(Ue)),N!==1&&ge.unshift(ke),w!==ue&&ge.push(Ye)}var P=null;ee&&(P=d.a.createElement("li",{className:"".concat(c,"-total-text")},ee(z,[z===0?0:(te-1)*_e+1,te*_e>z?z:te*_e])));var T=!this.hasPrev()||!ue,S=!this.hasNext()||!ue;return d.a.createElement("ul",Object(g.a)({className:j()(c,u,Object(y.a)({},"".concat(c,"-disabled"),h)),style:U,unselectable:"unselectable",ref:this.savePaginationNode},tt),P,d.a.createElement("li",{title:A?q.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(c,"-prev"),Object(y.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),ge,d.a.createElement("li",{title:A?q.next_page:null,onClick:this.next,tabIndex:S?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(c,"-next"),Object(y.a)({},"".concat(c,"-disabled"),S)),"aria-disabled":S},this.renderNext(et)),d.a.createElement(l,{disabled:h,locale:q,rootPrefixCls:c,selectComponentClass:Re,selectPrefixCls:fe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:_e,pageSizeOptions:Y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var u=i.current,U=p(e.pageSize,i,e);u=u>U?U:u,"current"in e||(c.current=u,c.currentInputValue=u),c.pageSize=e.pageSize}return c}}]),n}(d.a.Component);K.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:O.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var f=K},"6RRn":function(Oe,_,t){"use strict";var g=t("wCXF"),y=t("n6Qo");t.d(_,"b",function(){return y.a});var $=t("IBYe"),le=t("6eGT"),R=t("hW8S");t.d(_,"a",function(){return R.a}),_.c=g.b},"6eGT":function(Oe,_,t){"use strict";function g(y){return null}_.a=g},"815F":function(Oe,_,t){"use strict";t.d(_,"e",function(){return Q}),t.d(_,"c",function(){return d}),t.d(_,"d",function(){return B}),t.d(_,"a",function(){return X}),t.d(_,"f",function(){return H}),t.d(_,"b",function(){return D});var g=t("KQm4"),y=t("VTBJ"),$=t("Ff2n"),le=t("Zm9Q"),R=t("Kwbf"),o=t("OZM5");function Q(s,l){return s!=null?s:l}function L(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(C){var p=C.key,K=C.children;Object(R.a)(p!=null,"Tree node must have a certain key: [".concat(E).concat(p,"]"));var f=String(p);Object(R.a)(!l.has(f)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),O(K,"".concat(E).concat(f," > "))})}O(s)}function d(s){function l(O){var m=Object(le.a)(O);return m.map(function(E){if(!Object(o.i)(E))return Object(R.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var C=E.key,p=E.props,K=p.children,f=Object($.a)(p,["children"]),v=Object(y.a)({key:C},f),b=l(K);return b.length&&(v.children=b),v}).filter(function(E){return E})}return l(s)}function B(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),m=[];function E(C){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(K,f){var v=Object(o.h)(p?p.pos:"0",f),b=Q(K.key,v),n=Object(y.a)(Object(y.a)({},K),{},{parent:p,pos:v,children:null,data:K,isStart:[].concat(Object(g.a)(p?p.isStart:[]),[f===0]),isEnd:[].concat(Object(g.a)(p?p.isEnd:[]),[f===C.length-1])});return m.push(n),l===!0||O.has(b)?n.children=E(K.children||[],n):n.children=[],n})}return E(s),m}function j(s,l,O){var m;O?typeof O=="string"?m=function(p){return p[O]}:typeof O=="function"&&(m=function(p){return O(p)}):m=function(p,K){return Q(p.key,K)};function E(C,p,K){var f=C?C.children:s,v=C?Object(o.h)(K.pos,p):"0";if(C){var b=m(C,v),n={node:C,index:p,pos:v,key:b,parentPos:K.node?K.pos:null,level:K.level+1};l(n)}f&&f.forEach(function(a,e){E(a,e,{node:C,pos:v,level:K?K.level+1:-1})})}E(null)}function X(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,m=l.processEntity,E=l.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,p={},K={},f={posEntities:p,keyEntities:K};return O&&(f=O(f)||f),j(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,i=v.parentPos,c=v.level,u={node:b,index:n,key:e,pos:a,level:c},U=Q(e,a);p[a]=u,K[U]=u,u.parent=p[i],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),m&&m(u,f)},C),E&&E(f),f}function H(s,l){var O=l.expandedKeys,m=l.selectedKeys,E=l.loadedKeys,C=l.loadingKeys,p=l.checkedKeys,K=l.halfCheckedKeys,f=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:m.indexOf(s)!==-1,loaded:E.indexOf(s)!==-1,loading:C.indexOf(s)!==-1,checked:p.indexOf(s)!==-1,halfChecked:K.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&v===0,dragOverGapTop:f===s&&v===-1,dragOverGapBottom:f===s&&v===1};return a}function D(s){var l=s.data,O=s.expanded,m=s.selected,E=s.checked,C=s.loaded,p=s.loading,K=s.halfChecked,f=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(y.a)(Object(y.a)({},l),{},{expanded:O,selected:m,checked:E,loaded:C,loading:p,halfChecked:K,dragOver:f,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(R.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},"9YGm":function(Oe,_,t){Oe.exports={bg:"bg___1bAP4",header:"header___1lG6Z",line:"line___2EDvV",main:"main___25tDY",row:"row___1OWn9"}},IBYe:function(Oe,_,t){"use strict";function g(y){return null}_.a=g},LdHM:function(Oe,_,t){"use strict";t.d(_,"b",function(){return C}),t.d(_,"a",function(){return K});var g=t("1OyB"),y=t("vuIU"),$=t("Ji7U"),le=t("LK+K"),R=t("q1tI"),o=t("rePB"),Q=t("Ff2n"),L=t("ODXe"),d=t("4IlW"),B=t("bX4T"),j=t("YrtM"),X=t("TSYQ"),H=t.n(X),D=t("+nKL"),s=t("8OUc"),l=function(A,ee){var oe=A.prefixCls,ne=A.id,re=A.flattenOptions,be=A.childrenAsData,J=A.values,Re=A.searchValue,fe=A.multiple,Y=A.defaultActiveFirstOption,je=A.height,te=A.itemHeight,_e=A.notFoundContent,Te=A.open,ue=A.menuItemSelectedIcon,ge=A.virtual,Be=A.onSelect,Ue=A.onToggleOpen,ke=A.onActiveValue,Ye=A.onScroll,Ae=A.onMouseEnter,de="".concat(oe,"-item"),me=Object(j.a)(function(){return re},[Te,re],function(M,P){return P[0]&&M[1]!==P[1]}),Qe=R.useRef(null),et=function(P){P.preventDefault()},tt=function(P){Qe.current&&Qe.current.scrollTo({index:P})},st=function(P){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,S=me.length,V=0;V1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,oe){if(!R.isValidElement(ee)||!ee.type)return null;var ne=ee.type.isSelectOptGroup,re=ee.key,be=ee.props,J=be.children,Re=Object(Q.a)(be,["children"]);return A||!ne?b(ee):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(re===null?oe:re,"__"),label:re},Re),{},{options:n(J)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),i=t("U8pU"),c=t("Kwbf"),u=t("WKfj");function U(Z){var A=Z.mode,ee=Z.options,oe=Z.children,ne=Z.backfill,re=Z.allowClear,be=Z.placeholder,J=Z.getInputElement,Re=Z.showSearch,fe=Z.onSearch,Y=Z.defaultOpen,je=Z.autoFocus,te=Z.labelInValue,_e=Z.value,Te=Z.inputValue,ue=Z.optionLabelProp,ge=A==="multiple"||A==="tags",Be=Re!==void 0?Re:ge||A==="combobox",Ue=ee||n(oe);if(Object(c.a)(A!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var ke=Ue.some(function(de){return de.options?de.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(A!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(A==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(c.a)(A==="combobox"||!J,"`getInputElement` only work with `combobox` mode."),Object(c.b)(A!=="combobox"||!J||!re||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!Be&&A!=="combobox"&&A!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!Y||je,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var Ye=Object(u.d)(_e);Object(c.a)(!te||Ye.every(function(de){return Object(i.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ge||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var Ae=null;Object(v.a)(oe).some(function(de){if(!R.isValidElement(de)||!de.type)return!1;var me=de.type;if(me.isSelectOption)return!1;if(me.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!R.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=me,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Te===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var h=U,W=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:h,fillOptionsWithMissingValue:a.a}),z=function(Z){Object($.a)(ee,Z);var A=Object(le.a)(ee);function ee(){var oe;return Object(g.a)(this,ee),oe=A.apply(this,arguments),oe.selectRef=R.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(y.a)(ee,[{key:"render",value:function(){return R.createElement(W,Object.assign({ref:this.selectRef},this.props))}}]),ee}(R.Component);z.Option=C,z.OptGroup=K;var q=z,he=_.c=q},NvD2:function(Oe,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("Kwbf");function y(Q,L){var d=new Set;return Q.forEach(function(B){L.has(B)||d.add(B)}),d}function $(Q){var L=Q||{},d=L.disabled,B=L.disableCheckbox,j=L.checkable;return!!(d||B)||j===!1}function le(Q,L,d,B){for(var j=new Set(Q),X=new Set,H=0;H<=d;H+=1){var D=L.get(H)||new Set;D.forEach(function(m){var E=m.key,C=m.node,p=m.children,K=p===void 0?[]:p;j.has(E)&&!B(C)&&K.filter(function(f){return!B(f.node)}).forEach(function(f){j.add(f.key)})})}for(var s=new Set,l=d;l>=0;l-=1){var O=L.get(l)||new Set;O.forEach(function(m){var E=m.parent,C=m.node;if(B(C)||!m.parent||s.has(m.parent.key))return;if(B(m.parent.node)){s.add(E.key);return}var p=!0,K=!1;(E.children||[]).filter(function(f){return!B(f.node)}).forEach(function(f){var v=f.key,b=j.has(v);p&&!b&&(p=!1),!K&&(b||X.has(v))&&(K=!0)}),p&&j.add(E.key),K&&X.add(E.key),s.add(E.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(y(X,j))}}function R(Q,L,d,B,j){for(var X=new Set(Q),H=new Set(L),D=0;D<=B;D+=1){var s=d.get(D)||new Set;s.forEach(function(E){var C=E.key,p=E.node,K=E.children,f=K===void 0?[]:K;!X.has(C)&&!H.has(C)&&!j(p)&&f.filter(function(v){return!j(v.node)}).forEach(function(v){X.delete(v.key)})})}H=new Set;for(var l=new Set,O=B;O>=0;O-=1){var m=d.get(O)||new Set;m.forEach(function(E){var C=E.parent,p=E.node;if(j(p)||!E.parent||l.has(E.parent.key))return;if(j(E.parent.node)){l.add(C.key);return}var K=!0,f=!1;(C.children||[]).filter(function(v){return!j(v.node)}).forEach(function(v){var b=v.key,n=X.has(b);K&&!n&&(K=!1),!f&&(n||H.has(b))&&(f=!0)}),K||X.delete(C.key),f&&H.add(C.key),l.add(C.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(y(H,X))}}function o(Q,L,d,B){var j=[],X;B?X=B:X=$;var H=new Set(Q.filter(function(O){var m=!!d[O];return m||j.push(O),m})),D=new Map,s=0;Object.keys(d).forEach(function(O){var m=d[O],E=m.level,C=D.get(E);C||(C=new Set,D.set(E,C)),C.add(m),s=Math.max(s,E)}),Object(g.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return L===!0?l=le(H,D,s,X):l=R(H,L.halfCheckedKeys,D,s,X),l}},OZM5:function(Oe,_,t){"use strict";t.d(_,"b",function(){return B}),t.d(_,"a",function(){return j}),t.d(_,"k",function(){return X}),t.d(_,"h",function(){return H}),t.d(_,"i",function(){return D}),t.d(_,"g",function(){return s}),t.d(_,"c",function(){return l}),t.d(_,"d",function(){return O}),t.d(_,"j",function(){return C}),t.d(_,"e",function(){return p}),t.d(_,"f",function(){return K});var g=t("KQm4"),y=t("U8pU"),$=t("Ff2n"),le=t("q1tI"),R=t.n(le),o=t("Kwbf"),Q=t("WaYH"),L=.25,d=2;function B(f,v){var b=f.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function j(f,v){var b=f.slice();return b.indexOf(v)===-1&&b.push(v),b}function X(f){return f.split("-")}function H(f,v){return"".concat(f,"-").concat(v)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,v){var b=[f],n=v[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,u=i.children;b.push(c),a(u)})}return a(n.children),b}function l(f,v){var b=f.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,i=n.height,c=Math.max(i*L,d);return b<=a+c?-1:b>=e-c?1:0}function O(f,v){if(!f)return;var b=v.multiple;return b?f.slice():f.length?[f[0]]:f}var m=function(v){return v};function E(f,v){if(!f)return[];var b=v||{},n=b.processProps,a=n===void 0?m:n,e=Array.isArray(f)?f:[f];return e.map(function(i){var c=i.children,u=Object($.a)(i,["children"]),U=E(c,v);return R.a.createElement(Q.a,Object.assign({},a(u)),U)})}function C(f){if(!f)return null;var v;if(Array.isArray(f))v={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(y.a)(f)==="object")v={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function p(f,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var i=e.parent,c=e.node;if(c.disabled)return;i&&n(i.key)}return(f||[]).forEach(function(a){n(a)}),Object(g.a)(b)}function K(f){var v={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=f[b])}),v}},"SA+Z":function(Oe,_,t){var g=t("wTVA"),y=t("EbDI"),$=t("ZhPi"),le=t("wkBT");function R(o){return g(o)||y(o)||$(o)||le()}Oe.exports=R,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,_,t){"use strict";var g=t("rePB"),y=t("Ff2n"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("JX7q"),Q=t("Ji7U"),L=t("LK+K"),d=t("q1tI"),B=t("TSYQ"),j=t.n(B),X=t("sboe"),H=t("OZM5"),D=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var i="".concat(b,"-indent-unit"),c=[],u=0;u1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(C.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=C[0];if(o.isValidElement(p)&&Object(j.c)(p)){var K=p.ref;C[0]=o.cloneElement(p,{ref:Object(j.a)(K,this.setChildNode)})}return C.length===1?C[0]:C.map(function(f,v){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(H,"-").concat(v)})})}}]),O}(o.Component);D.displayName="ResizeObserver",_.a=D},wCXF:function(Oe,_,t){"use strict";t.d(_,"a",function(){return tt});var g=t("rePB"),y=t("VTBJ"),$=t("KQm4"),le=t("U8pU"),R=t("ODXe"),o=t("q1tI"),Q=t("TSYQ"),L=t.n(Q),d=t("Gytx"),B=t.n(d),j=t("Kwbf"),X=t("t23M"),H=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),m=t("fyJ8"),E=t("biw7");function C(r,x,N,w,k){var M=N[r]||{},P=N[x]||{},T,S;M.fixed==="left"?T=w.left[r]:P.fixed==="right"&&(S=w.right[x]);var V=!1,I=!1,F=!1,ae=!1,G=N[x+1],ie=N[r-1];if(k==="rtl"){if(T!==void 0){var xe=ie&&ie.fixed==="left";ae=!xe}else if(S!==void 0){var Ee=G&&G.fixed==="right";F=!Ee}}else if(T!==void 0){var ye=G&&G.fixed==="left";V=!ye}else if(S!==void 0){var se=ie&&ie.fixed==="right";I=!se}return{fixLeft:T,fixRight:S,lastFixLeft:V,firstFixRight:I,lastFixRight:F,firstFixLeft:ae,isSticky:w.isSticky}}var p=t("sR1s");function K(r){var x=r.cells,N=r.stickyOffsets,w=r.flattenColumns,k=r.rowComponent,M=r.cellComponent,P=r.onHeaderRow,T=r.index,S=o.useContext(E.a),V=S.prefixCls,I=S.direction,F;P&&(F=P(x.map(function(G){return G.column}),T));var ae=Object(p.a)(x.map(function(G){return G.column}));return o.createElement(k,Object.assign({},F),x.map(function(G,ie){var xe=G.column,Ee=C(G.colStart,G.colEnd,w,N,I),ye;return xe&&xe.onHeaderCell&&(ye=G.column.onHeaderCell(xe)),o.createElement(m.a,Object.assign({},G,{ellipsis:xe.ellipsis,align:xe.align,component:M,prefixCls:V,key:ae[ie]},Ee,{additionalProps:ye,rowType:"header"}))}))}K.displayName="HeaderRow";var f=K;function v(r){var x=[];function N(P,T){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;x[S]=x[S]||[];var V=T,I=P.filter(Boolean).map(function(F){var ae={key:F.key,className:F.className||"",children:F.title,column:F,colStart:V},G=1,ie=F.children;return ie&&ie.length>0&&(G=N(ie,V,S+1).reduce(function(xe,Ee){return xe+Ee},0),ae.hasSubColumns=!0),"colSpan"in F&&(G=F.colSpan),"rowSpan"in F&&(ae.rowSpan=F.rowSpan),ae.colSpan=G,ae.colEnd=ae.colStart+G-1,x[S].push(ae),V+=G,G});return I}N(r,0);for(var w=x.length,k=function(T){x[T].forEach(function(S){!("rowSpan"in S)&&!S.hasSubColumns&&(S.rowSpan=w-T)})},M=0;M=0;T-=1){var S=x[T],V=N&&N[T],I=V&&V[a.a];(S||I||P)&&(k.unshift(o.createElement("col",Object.assign({key:T,style:{width:S,minWidth:S}},I))),P=!0)}return o.createElement("colgroup",null,k)}var i=e;function c(r,x){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),dt=1;dt=F&&(Pe=F-ae),P({scrollLeft:Pe/F*(I+2)}),se.current.x=ce.pageX},We=function(){var ce=Object(Ye.b)(M.current).top,we=ce+M.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=Fe||ce>=Fe-T?ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!1})})},Me=function(ce){ye(function(we){return Object(y.a)(Object(y.a)({},we),{},{scrollLeft:ce/I*F||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Me}}),o.useEffect(function(){var Ne=Object(ke.a)(document.body,"mouseup",$e,!1),ce=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Ne.remove(),ce.remove()}},[ae,Se]),o.useEffect(function(){var Ne=Object(ke.a)(window,"scroll",We,!1),ce=Object(ke.a)(window,"resize",We,!1);return function(){Ne.remove(),ce.remove()}},[]),o.useEffect(function(){Ee.isHiddenScrollBar||ye(function(Ne){var ce,we;return Object(y.a)(Object(y.a)({},Ne),{},{scrollLeft:M.current.scrollLeft/((ce=M.current)===null||ce===void 0?void 0:ce.scrollWidth)*((we=M.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ee.isHiddenScrollBar]),I<=F||!ae||Ee.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:F,bottom:T},className:"".concat(V,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:G,className:L()("".concat(V,"-sticky-scroll-bar"),Object(g.a)({},"".concat(V,"-sticky-scroll-bar-active"),Se)),style:{width:"".concat(ae,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(Ae);function me(r,x){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(x,"-sticky-header"):"",offsetHeader:Object(le.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(le.a)(r)==="object"&&r.offsetScroll||0}},[r,x])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var x=r.children;return x},function(r,x){return B()(r.props,x.props)?r.pingLeft!==x.pingLeft||r.pingRight!==x.pingRight:!1});function Ve(r){var x,N=r.prefixCls,w=r.className,k=r.rowClassName,M=r.style,P=r.data,T=r.rowKey,S=r.scroll,V=r.tableLayout,I=r.direction,F=r.title,ae=r.footer,G=r.summary,ie=r.id,xe=r.showHeader,Ee=r.components,ye=r.emptyText,se=r.onRow,Xe=r.onHeaderRow,De=r.internalHooks,Se=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,Ce=P||Qe,Ge=!!Ce.length,We=o.useState(0),Me=Object(R.a)(We,2),Ne=Me[0],ce=Me[1];o.useEffect(function(){ce(Object(H.a)())});var we=o.useMemo(function(){return Object(p.c)(Ee,{})},[Ee]),Fe=o.useCallback(function(pe,ve){return Object(p.b)(we,pe)||ve},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(pe){var ve=pe&&pe[T];return ve}},[T]),Pe=Object(a.c)(r),jt=Pe.expandIcon,Nt=Pe.expandedRowKeys,Rt=Pe.defaultExpandedRowKeys,rt=Pe.defaultExpandAllRows,it=Pe.expandedRowRender,ft=Pe.onExpand,mt=Pe.onExpandedRowsChange,Tt=Pe.expandRowByClick,nt=Pe.rowExpandable,Et=Pe.expandIconColumnIndex,pt=Pe.expandedRowClassName,Kt=Pe.childrenColumnName,Pt=Pe.indentSize,ht=jt||Be,gt=Kt||"children",St=o.useMemo(function(){return it?"row":r.expandable&&De===tt&&r.expandable.__PARENT_RENDER_ICON__||Ce.some(function(pe){return pe&&Object(le.a)(pe)==="object"&&pe[gt]})?"nest":!1},[!!it,Ce]),Dt=o.useState(function(){return Rt||(rt?Ue(Ce,Je,gt):[])}),ze=Object(R.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Nt||Ze||[])},[Nt,Ze]),ct=o.useCallback(function(pe){var ve=Je(pe,Ce.indexOf(pe)),Ke,qe=He.has(ve);qe?(He.delete(ve),Ke=Object($.a)(He)):Ke=[].concat(Object($.a)(He),[ve]),at(Ke),ft&&ft(!qe,pe),mt&&mt(Ke)},[Je,He,Ce,ft,mt]),dt=o.useState(0),Mt=Object(R.a)(dt,2),Ct=Mt[0],Lt=Mt[1],vn=Object(J.b)(Object(y.a)(Object(y.a)(Object(y.a)({},r),Pe),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:I}),De===tt?Se:null),Yt=Object(R.a)(vn,2),kt=Yt[0],Le=Yt[1],_t=o.useMemo(function(){return{columns:kt,flattenColumns:Le}},[kt,Le]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(R.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(R.a)(gn,2),tn=en[0],Cn=en[1],yn=Y(new Map),nn=Object(R.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Le),an=jn.map(function(pe){return On.get(pe)}),on=o.useMemo(function(){return an},[an.join("_")]),At=_e(on,Le.length,I),ot=S&&Object(p.d)(S.y),lt=S&&Object(p.d)(S.x),yt=lt&&Le.some(function(pe){var ve=pe.fixed;return ve}),rn=o.useRef(),wt=me($e,N),Ot=wt.isSticky,Nn=wt.offsetHeader,Rn=wt.offsetScroll,Tn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:S.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:S.x===!0?"auto":S.x,minWidth:"100%"});var ln=o.useCallback(function(pe,ve){xn(function(Ke){var qe=new Map(Ke);return qe.set(pe,ve),qe})},[]),Pn=je(null),sn=Object(R.a)(Pn,2),Sn=sn[0],cn=sn[1];function Ft(pe,ve){if(!ve)return;typeof ve=="function"?ve(pe):ve.scrollLeft!==pe&&(ve.scrollLeft=pe)}var vt=function(ve){var Ke=ve.currentTarget,qe=ve.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(y.a)(l),Object(y.a)(j(C).map(function(p){return Object($.a)({fixed:E},p)}))):[].concat(Object(y.a)(l),[Object($.a)(Object($.a)({},O),{},{fixed:E})])},[])}function X(s){for(var l=!0,O=0;O=0;C-=1){var p=s[C];if(E&&p.fixed!=="right")E=!1;else if(!E&&p.fixed==="right"){Object(Q.a)(!1,"Index ".concat(C+1," of `columns` missing `fixed='right'` prop."));break}}}function H(s){return s.map(function(l){var O=l.fixed,m=Object(le.a)(l,["fixed"]),E=O;return O==="left"?E="right":O==="right"&&(E="left"),Object($.a)({fixed:E},m)})}function D(s,l){var O=s.prefixCls,m=s.columns,E=s.children,C=s.expandable,p=s.expandedKeys,K=s.getRowKey,f=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,i=R.useMemo(function(){return m||B(E)},[m,E]),c=R.useMemo(function(){if(C){var h,W=n||0,z=i[W],q=(h={},Object(g.a)(h,d.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(h,"title",""),Object(g.a)(h,"fixed",z?z.fixed:null),Object(g.a)(h,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(h,"render",function(A,ee,oe){var ne=K(ee,oe),re=p.has(ne),be=b?b(ee):!0,J=v({prefixCls:O,expanded:re,expandable:be,record:ee,onExpand:f});return e?R.createElement("span",{onClick:function(fe){return fe.stopPropagation()}},J):J}),h),he=i.slice();return W>=0&&he.splice(W,0,q),he}return i},[C,i,K,p,v,a]),u=R.useMemo(function(){var h=c;return l&&(h=l(h)),h.length||(h=[{render:function(){return null}}]),h},[l,c,a]),U=R.useMemo(function(){return a==="rtl"?H(j(u)):j(u)},[u,a]);return[u,U]}_.b=D},"y0+3":function(Oe,_,t){"use strict";t.d(_,"a",function(){return j}),t.d(_,"b",function(){return H});var g=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function le(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function R(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in y||(y[s]=g.test(s)),y[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,O=le(D);return s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:R(D,s,O[s]||D.style[s])}function Q(D,s,l){var O=arguments.length;if(s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var m in s)s.hasOwnProperty(m)&&Q(D,m,s[m]);return le(D)}function L(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function d(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function B(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function j(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function X(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__User__Detail__OtherResources__index.62fc5694.async.js b/p__User__Detail__OtherResources__index.62fc5694.async.js index 19d9e80700..47420dfba7 100644 --- a/p__User__Detail__OtherResources__index.62fc5694.async.js +++ b/p__User__Detail__OtherResources__index.62fc5694.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[243,8],{"6+eU":function(Te,W,e){"use strict";e.d(W,"a",function(){return m});var j=e("wx14"),x=e("rePB"),te=e("VTBJ"),ie=e("1OyB"),S=e("vuIU"),n=e("Ji7U"),le=e("LK+K"),B=e("q1tI"),c=e.n(B),se=e("TSYQ"),f=e.n(se),w=function(C){var a,o="".concat(C.rootPrefixCls,"-item"),t=f()(o,"".concat(o,"-").concat(C.page),(a={},Object(x.a)(a,"".concat(o,"-active"),C.active),Object(x.a)(a,C.className,!!C.className),Object(x.a)(a,"".concat(o,"-disabled"),!C.page),a)),i=function(){C.onClick(C.page)},d=function(H){C.onKeyPress(H,C.onClick,C.page)};return c.a.createElement("li",{title:C.showTitle?C.page:null,className:t,onClick:i,onKeyPress:d,tabIndex:"0"},C.itemRender(C.page,"page",c.a.createElement("a",{rel:"nofollow"},C.page)))},F=w,O={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},r=function(b){Object(n.a)(a,b);var C=Object(le.a)(a);function a(){var o;Object(ie.a)(this,a);for(var t=arguments.length,i=new Array(t),d=0;d=0||p.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;o.setState({goInputText:""}),L(o.getValidValue())},o.go=function(p){var H=o.state.goInputText;if(H==="")return;(p.keyCode===O.ENTER||p.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(S.a)(a,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,d=t.current;return!i||isNaN(i)?d:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,d=t.pageSizeOptions;return d.some(function(p){return p.toString()===i.toString()})?d:d.concat([i.toString()]).sort(function(p,H){var E=isNaN(Number(p))?0:Number(p),L=isNaN(Number(H))?0:Number(H);return E-L})}},{key:"render",value:function(){var t=this,i=this.props,d=i.pageSize,p=i.locale,H=i.rootPrefixCls,E=i.changeSize,L=i.quickGo,$=i.goButton,q=i.selectComponentClass,Ce=i.buildOptionText,Z=i.selectPrefixCls,_=i.disabled,ae=this.state.goInputText,ce="".concat(H,"-options"),be=q,fe=null,U=null,I=null;if(!E&&!L)return null;var J=this.getPageSizeOptions();if(E&&be){var k=J.map(function(h,Q){return c.a.createElement(be.Option,{key:Q,value:h.toString()},(Ce||t.buildOptionText)(h))});fe=c.a.createElement(be,{disabled:_,prefixCls:Z,showSearch:!1,className:"".concat(ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||J[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Q){return Q.parentNode}},k)}return L&&($&&(I=typeof $=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_,className:"".concat(ce,"-quick-jumper-button")},p.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),U=c.a.createElement("div",{className:"".concat(ce,"-quick-jumper")},p.jump_to,c.a.createElement("input",{disabled:_,type:"text",value:ae,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),p.page,I)),c.a.createElement("li",{className:"".concat(ce)},fe,U)}}]),a}(c.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=r,R=e("N2Kk");function u(){}function y(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b}function v(b,C,a){return a}function g(b,C,a){var o=typeof b=="undefined"?C.pageSize:b;return Math.floor((a.total-1)/o)+1}var z=function(b){Object(n.a)(a,b);var C=Object(le.a)(a);function a(o){var t;Object(ie.a)(this,a),t=C.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(g(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(E,L){var $=t.props.prefixCls,q=E||c.a.createElement("button",{type:"button","aria-label":L,className:"".concat($,"-item-link")});return typeof E=="function"&&(q=c.a.createElement(E,Object(te.a)({},t.props))),q},t.savePaginationNode=function(E){t.paginationNode=E},t.isValid=function(E){return y(E)&&E!==t.state.current},t.shouldDisplayQuickJumper=function(){var E=t.props,L=E.showQuickJumper,$=E.pageSize,q=E.total;return q<=$?!1:L},t.handleKeyDown=function(E){(E.keyCode===O.ARROW_UP||E.keyCode===O.ARROW_DOWN)&&E.preventDefault()},t.handleKeyUp=function(E){var L=t.getValidValue(E),$=t.state.currentInputValue;L!==$&&t.setState({currentInputValue:L}),E.keyCode===O.ENTER?t.handleChange(L):E.keyCode===O.ARROW_UP?t.handleChange(L-1):E.keyCode===O.ARROW_DOWN&&t.handleChange(L+1)},t.changePageSize=function(E){var L=t.state.current,$=g(E,t.state,t.props);L=L>$?$:L,$===0&&(L=t.state.current),typeof E=="number"&&("pageSize"in t.props||t.setState({pageSize:E}),"current"in t.props||t.setState({current:L,currentInputValue:L})),t.props.onShowSizeChange(L,E),"onChange"in t.props&&t.props.onChange&&t.props.onChange(L,E)},t.handleChange=function(E){var L=t.props.disabled,$=E;if(t.isValid($)&&!L){var q=g(void 0,t.state,t.props);$>q?$=q:$<1&&($=1),"current"in t.props||t.setState({current:$,currentInputValue:$});var Ce=t.state.pageSize;return t.props.onChange($,Ce),$}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?$-2:0),Ce=2;Ce<$;Ce++)q[Ce-2]=arguments[Ce];L.apply(void 0,q)}},t.runIfEnterPrev=function(E){t.runIfEnter(E,t.prev)},t.runIfEnterNext=function(E){t.runIfEnter(E,t.next)},t.runIfEnterJumpPrev=function(E){t.runIfEnter(E,t.jumpPrev)},t.runIfEnterJumpNext=function(E){t.runIfEnter(E,t.jumpNext)},t.handleGoTO=function(E){(E.keyCode===O.ENTER||E.type==="click")&&t.handleChange(t.state.currentInputValue)};var i=o.onChange!==u,d="current"in o;d&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var p=o.defaultCurrent;"current"in o&&(p=o.current);var H=o.defaultPageSize;return"pageSize"in o&&(H=o.pageSize),p=Math.min(p,g(H,void 0,o)),t.state={current:p,currentInputValue:p,pageSize:H},t}return Object(S.a)(a,[{key:"componentDidUpdate",value:function(t,i){var d=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode){var p=this.paginationNode.querySelector(".".concat(d,"-item-").concat(i.current));p&&document.activeElement===p&&p.blur()}}},{key:"getValidValue",value:function(t){var i=t.target.value,d=g(void 0,this.state,this.props),p=this.state.currentInputValue,H;return i===""?H=i:isNaN(Number(i))?H=p:i>=d?H=d:H=Number(i),H}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,d=t.total,p=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:d>p}},{key:"renderPrev",value:function(t){var i=this.props,d=i.prevIcon,p=i.itemRender,H=p(t,"prev",this.getItemIcon(d,"prev page")),E=!this.hasPrev();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"renderNext",value:function(t){var i=this.props,d=i.nextIcon,p=i.itemRender,H=p(t,"next",this.getItemIcon(d,"next page")),E=!this.hasNext();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"render",value:function(){var t=this,i=this.props,d=i.prefixCls,p=i.className,H=i.style,E=i.disabled,L=i.hideOnSinglePage,$=i.total,q=i.locale,Ce=i.showQuickJumper,Z=i.showLessItems,_=i.showTitle,ae=i.showTotal,ce=i.simple,be=i.itemRender,fe=i.showPrevNextJumpers,U=i.jumpPrevIcon,I=i.jumpNextIcon,J=i.selectComponentClass,k=i.selectPrefixCls,h=i.pageSizeOptions,Q=this.state,X=Q.current,oe=Q.pageSize,ue=Q.currentInputValue;if(L===!0&&$<=oe)return null;var ee=g(void 0,this.state,this.props),de=[],Oe=null,he=null,De=null,ke=null,Ne=null,pe=Ce&&Ce.goButton,ve=Z?1:2,Be=X-1>0?X-1:0,Fe=X+1=ve*2&&X!==1+2&&(de[0]=Object(B.cloneElement)(de[0],{className:"".concat(d,"-item-after-jump-prev")}),de.unshift(Oe)),ee-X>=ve*2&&X!==ee-2&&(de[de.length-1]=Object(B.cloneElement)(de[de.length-1],{className:"".concat(d,"-item-before-jump-next")}),de.push(he)),M!==1&&de.unshift(De),K!==ee&&de.push(ke)}var D=null;ae&&(D=c.a.createElement("li",{className:"".concat(d,"-total-text")},ae($,[$===0?0:(X-1)*oe+1,X*oe>$?$:X*oe])));var P=!this.hasPrev()||!ee,A=!this.hasNext()||!ee;return c.a.createElement("ul",Object(j.a)({className:f()(d,p,Object(x.a)({},"".concat(d,"-disabled"),E)),style:H,unselectable:"unselectable",ref:this.savePaginationNode},Le),D,c.a.createElement("li",{title:_?q.prev_page:null,onClick:this.prev,tabIndex:P?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(d,"-prev"),Object(x.a)({},"".concat(d,"-disabled"),P)),"aria-disabled":P},this.renderPrev(Be)),de,c.a.createElement("li",{title:_?q.next_page:null,onClick:this.next,tabIndex:A?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(d,"-next"),Object(x.a)({},"".concat(d,"-disabled"),A)),"aria-disabled":A},this.renderNext(Fe)),c.a.createElement(l,{disabled:E,locale:q,rootPrefixCls:d,selectComponentClass:J,selectPrefixCls:k,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:X,pageSize:oe,pageSizeOptions:h,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:pe}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var d={};if("current"in t&&(d.current=t.current,t.current!==i.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var p=i.current,H=g(t.pageSize,i,t);p=p>H?H:p,"current"in t||(d.current=p,d.currentInputValue=p),d.pageSize=t.pageSize}return d}}]),a}(c.a.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:R.a,style:{},itemRender:v,totalBoundaryShowSizeChanger:50};var m=z},"6RRn":function(Te,W,e){"use strict";var j=e("wCXF"),x=e("n6Qo");e.d(W,"b",function(){return x.a});var te=e("IBYe"),ie=e("6eGT"),S=e("hW8S");e.d(W,"a",function(){return S.a}),W.c=j.b},"6eGT":function(Te,W,e){"use strict";function j(x){return null}W.a=j},"815F":function(Te,W,e){"use strict";e.d(W,"e",function(){return le}),e.d(W,"c",function(){return c}),e.d(W,"d",function(){return se}),e.d(W,"a",function(){return w}),e.d(W,"f",function(){return F}),e.d(W,"b",function(){return O});var j=e("KQm4"),x=e("VTBJ"),te=e("Ff2n"),ie=e("Zm9Q"),S=e("Kwbf"),n=e("OZM5");function le(r,l){return r!=null?r:l}function B(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function R(u){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(v){var g=v.key,z=v.children;Object(S.a)(g!=null,"Tree node must have a certain key: [".concat(y).concat(g,"]"));var m=String(g);Object(S.a)(!l.has(m)||g===null||g===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),R(z,"".concat(y).concat(m," > "))})}R(r)}function c(r){function l(R){var u=Object(ie.a)(R);return u.map(function(y){if(!Object(n.i)(y))return Object(S.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var v=y.key,g=y.props,z=g.children,m=Object(te.a)(g,["children"]),b=Object(x.a)({key:v},m),C=l(z);return C.length&&(b.children=C),b}).filter(function(y){return y})}return l(r)}function se(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(l===!0?[]:l),u=[];function y(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(z,m){var b=Object(n.h)(g?g.pos:"0",m),C=le(z.key,b),a=Object(x.a)(Object(x.a)({},z),{},{parent:g,pos:b,children:null,data:z,isStart:[].concat(Object(j.a)(g?g.isStart:[]),[m===0]),isEnd:[].concat(Object(j.a)(g?g.isEnd:[]),[m===v.length-1])});return u.push(a),l===!0||R.has(C)?a.children=y(z.children||[],a):a.children=[],a})}return y(r),u}function f(r,l,R){var u;R?typeof R=="string"?u=function(g){return g[R]}:typeof R=="function"&&(u=function(g){return R(g)}):u=function(g,z){return le(g.key,z)};function y(v,g,z){var m=v?v.children:r,b=v?Object(n.h)(z.pos,g):"0";if(v){var C=u(v,b),a={node:v,index:g,pos:b,key:C,parentPos:z.node?z.pos:null,level:z.level+1};l(a)}m&&m.forEach(function(o,t){y(o,t,{node:v,pos:b,level:z?z.level+1:-1})})}y(null)}function w(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=l.initWrapper,u=l.processEntity,y=l.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,g={},z={},m={posEntities:g,keyEntities:z};return R&&(m=R(m)||m),f(r,function(b){var C=b.node,a=b.index,o=b.pos,t=b.key,i=b.parentPos,d=b.level,p={node:C,index:a,key:t,pos:o,level:d},H=le(t,o);g[o]=p,z[H]=p,p.parent=g[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),u&&u(p,m)},v),y&&y(m),m}function F(r,l){var R=l.expandedKeys,u=l.selectedKeys,y=l.loadedKeys,v=l.loadingKeys,g=l.checkedKeys,z=l.halfCheckedKeys,m=l.dragOverNodeKey,b=l.dropPosition,C=l.keyEntities,a=C[r],o={eventKey:r,expanded:R.indexOf(r)!==-1,selected:u.indexOf(r)!==-1,loaded:y.indexOf(r)!==-1,loading:v.indexOf(r)!==-1,checked:g.indexOf(r)!==-1,halfChecked:z.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&b===0,dragOverGapTop:m===r&&b===-1,dragOverGapBottom:m===r&&b===1};return o}function O(r){var l=r.data,R=r.expanded,u=r.selected,y=r.checked,v=r.loaded,g=r.loading,z=r.halfChecked,m=r.dragOver,b=r.dragOverGapTop,C=r.dragOverGapBottom,a=r.pos,o=r.active,t=Object(x.a)(Object(x.a)({},l),{},{expanded:R,selected:u,checked:y,loaded:v,loading:g,halfChecked:z,dragOver:m,dragOverGapTop:b,dragOverGapBottom:C,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),t}},IBYe:function(Te,W,e){"use strict";function j(x){return null}W.a=j},LdHM:function(Te,W,e){"use strict";e.d(W,"b",function(){return v}),e.d(W,"a",function(){return z});var j=e("1OyB"),x=e("vuIU"),te=e("Ji7U"),ie=e("LK+K"),S=e("q1tI"),n=e("rePB"),le=e("Ff2n"),B=e("ODXe"),c=e("4IlW"),se=e("bX4T"),f=e("YrtM"),w=e("TSYQ"),F=e.n(w),O=e("+nKL"),r=e("8OUc"),l=function(_,ae){var ce=_.prefixCls,be=_.id,fe=_.flattenOptions,U=_.childrenAsData,I=_.values,J=_.searchValue,k=_.multiple,h=_.defaultActiveFirstOption,Q=_.height,X=_.itemHeight,oe=_.notFoundContent,ue=_.open,ee=_.menuItemSelectedIcon,de=_.virtual,Oe=_.onSelect,he=_.onToggleOpen,De=_.onActiveValue,ke=_.onScroll,Ne=_.onMouseEnter,pe="".concat(ce,"-item"),ve=Object(f.a)(function(){return fe},[ue,fe],function(N,D){return D[0]&&N[1]!==D[1]}),Be=S.useRef(null),Fe=function(D){D.preventDefault()},Le=function(D){Be.current&&Be.current.scrollTo({index:D})},Ve=function(D){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,A=ve.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(b.a)(Z).map(function(ae,ce){if(!S.isValidElement(ae)||!ae.type)return null;var be=ae.type.isSelectOptGroup,fe=ae.key,U=ae.props,I=U.children,J=Object(le.a)(U,["children"]);return _||!be?C(ae):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(fe===null?ce:fe,"__"),label:fe},J),{},{options:a(I)})}).filter(function(ae){return ae})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),d=e("Kwbf"),p=e("WKfj");function H(Z){var _=Z.mode,ae=Z.options,ce=Z.children,be=Z.backfill,fe=Z.allowClear,U=Z.placeholder,I=Z.getInputElement,J=Z.showSearch,k=Z.onSearch,h=Z.defaultOpen,Q=Z.autoFocus,X=Z.labelInValue,oe=Z.value,ue=Z.inputValue,ee=Z.optionLabelProp,de=_==="multiple"||_==="tags",Oe=J!==void 0?J:de||_==="combobox",he=ae||a(ce);if(Object(d.a)(_!=="tags"||he.every(function(pe){return!pe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_==="tags"||_==="combobox"){var De=he.some(function(pe){return pe.options?pe.options.some(function(ve){return typeof("value"in ve?ve.value:ve.key)=="number"}):typeof("value"in pe?pe.value:pe.key)=="number"});Object(d.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(_!=="combobox"||!ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(_==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(d.a)(_==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),Object(d.b)(_!=="combobox"||!I||!fe||!U,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),k&&!Oe&&_!=="combobox"&&_!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!h||Q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),oe!=null){var ke=Object(p.d)(oe);Object(d.a)(!X||ke.every(function(pe){return Object(i.a)(pe)==="object"&&("key"in pe||"value"in pe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!de||Array.isArray(oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var Ne=null;Object(b.a)(ce).some(function(pe){if(!S.isValidElement(pe)||!pe.type)return!1;var ve=pe.type;if(ve.isSelectOption)return!1;if(ve.isSelectOptGroup){var Be=Object(b.a)(pe.props.children).every(function(Fe){return!S.isValidElement(Fe)||!pe.type||Fe.type.isSelectOption?!0:(Ne=Fe.type,!1)});return!Be}return Ne=ve,!0}),Ne&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ne.displayName||Ne.name||Ne,"`.")),Object(d.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var E=H,L=Object(t.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:E,fillOptionsWithMissingValue:o.a}),$=function(Z){Object(te.a)(ae,Z);var _=Object(ie.a)(ae);function ae(){var ce;return Object(j.a)(this,ae),ce=_.apply(this,arguments),ce.selectRef=S.createRef(),ce.focus=function(){ce.selectRef.current.focus()},ce.blur=function(){ce.selectRef.current.blur()},ce}return Object(x.a)(ae,[{key:"render",value:function(){return S.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),ae}(S.Component);$.Option=v,$.OptGroup=z;var q=$,Ce=W.c=q},NvD2:function(Te,W,e){"use strict";e.d(W,"a",function(){return n});var j=e("Kwbf");function x(le,B){var c=new Set;return le.forEach(function(se){B.has(se)||c.add(se)}),c}function te(le){var B=le||{},c=B.disabled,se=B.disableCheckbox,f=B.checkable;return!!(c||se)||f===!1}function ie(le,B,c,se){for(var f=new Set(le),w=new Set,F=0;F<=c;F+=1){var O=B.get(F)||new Set;O.forEach(function(u){var y=u.key,v=u.node,g=u.children,z=g===void 0?[]:g;f.has(y)&&!se(v)&&z.filter(function(m){return!se(m.node)}).forEach(function(m){f.add(m.key)})})}for(var r=new Set,l=c;l>=0;l-=1){var R=B.get(l)||new Set;R.forEach(function(u){var y=u.parent,v=u.node;if(se(v)||!u.parent||r.has(u.parent.key))return;if(se(u.parent.node)){r.add(y.key);return}var g=!0,z=!1;(y.children||[]).filter(function(m){return!se(m.node)}).forEach(function(m){var b=m.key,C=f.has(b);g&&!C&&(g=!1),!z&&(C||w.has(b))&&(z=!0)}),g&&f.add(y.key),z&&w.add(y.key),r.add(y.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(x(w,f))}}function S(le,B,c,se,f){for(var w=new Set(le),F=new Set(B),O=0;O<=se;O+=1){var r=c.get(O)||new Set;r.forEach(function(y){var v=y.key,g=y.node,z=y.children,m=z===void 0?[]:z;!w.has(v)&&!F.has(v)&&!f(g)&&m.filter(function(b){return!f(b.node)}).forEach(function(b){w.delete(b.key)})})}F=new Set;for(var l=new Set,R=se;R>=0;R-=1){var u=c.get(R)||new Set;u.forEach(function(y){var v=y.parent,g=y.node;if(f(g)||!y.parent||l.has(y.parent.key))return;if(f(y.parent.node)){l.add(v.key);return}var z=!0,m=!1;(v.children||[]).filter(function(b){return!f(b.node)}).forEach(function(b){var C=b.key,a=w.has(C);z&&!a&&(z=!1),!m&&(a||F.has(C))&&(m=!0)}),z||w.delete(v.key),m&&F.add(v.key),l.add(v.key)})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(x(F,w))}}function n(le,B,c,se){var f=[],w;se?w=se:w=te;var F=new Set(le.filter(function(R){var u=!!c[R];return u||f.push(R),u})),O=new Map,r=0;Object.keys(c).forEach(function(R){var u=c[R],y=u.level,v=O.get(y);v||(v=new Set,O.set(y,v)),v.add(u),r=Math.max(r,y)}),Object(j.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var l;return B===!0?l=ie(F,O,r,w):l=S(F,B.halfCheckedKeys,O,r,w),l}},OZM5:function(Te,W,e){"use strict";e.d(W,"b",function(){return se}),e.d(W,"a",function(){return f}),e.d(W,"k",function(){return w}),e.d(W,"h",function(){return F}),e.d(W,"i",function(){return O}),e.d(W,"g",function(){return r}),e.d(W,"c",function(){return l}),e.d(W,"d",function(){return R}),e.d(W,"j",function(){return v}),e.d(W,"e",function(){return g}),e.d(W,"f",function(){return z});var j=e("KQm4"),x=e("U8pU"),te=e("Ff2n"),ie=e("q1tI"),S=e.n(ie),n=e("Kwbf"),le=e("WaYH"),B=.25,c=2;function se(m,b){var C=m.slice(),a=C.indexOf(b);return a>=0&&C.splice(a,1),C}function f(m,b){var C=m.slice();return C.indexOf(b)===-1&&C.push(b),C}function w(m){return m.split("-")}function F(m,b){return"".concat(m,"-").concat(b)}function O(m){return m&&m.type&&m.type.isTreeNode}function r(m,b){var C=[m],a=b[m];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var d=i.key,p=i.children;C.push(d),o(p)})}return o(a.children),C}function l(m,b){var C=m.clientY,a=b.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,i=a.height,d=Math.max(i*B,c);return C<=o+d?-1:C>=t-d?1:0}function R(m,b){if(!m)return;var C=b.multiple;return C?m.slice():m.length?[m[0]]:m}var u=function(b){return b};function y(m,b){if(!m)return[];var C=b||{},a=C.processProps,o=a===void 0?u:a,t=Array.isArray(m)?m:[m];return t.map(function(i){var d=i.children,p=Object(te.a)(i,["children"]),H=y(d,b);return S.a.createElement(le.a,Object.assign({},o(p)),H)})}function v(m){if(!m)return null;var b;if(Array.isArray(m))b={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(x.a)(m)==="object")b={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return b}function g(m,b){var C=new Set;function a(o){if(C.has(o))return;var t=b[o];if(!t)return;C.add(o);var i=t.parent,d=t.node;if(d.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(o){a(o)}),Object(j.a)(C)}function z(m){var b={};return Object.keys(m).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(b[C]=m[C])}),b}},"SA+Z":function(Te,W,e){var j=e("wTVA"),x=e("EbDI"),te=e("ZhPi"),ie=e("wkBT");function S(n){return j(n)||x(n)||te(n)||ie()}Te.exports=S,Te.exports.__esModule=!0,Te.exports.default=Te.exports},WaYH:function(Te,W,e){"use strict";var j=e("rePB"),x=e("Ff2n"),te=e("VTBJ"),ie=e("1OyB"),S=e("vuIU"),n=e("JX7q"),le=e("Ji7U"),B=e("LK+K"),c=e("q1tI"),se=e("TSYQ"),f=e.n(se),w=e("sboe"),F=e("OZM5"),O=function(b){var C=b.prefixCls,a=b.level,o=b.isStart,t=b.isEnd;if(!a)return null;for(var i="".concat(C,"-indent-unit"),d=[],p=0;p=0||p.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;o.setState({goInputText:""}),L(o.getValidValue())},o.go=function(p){var H=o.state.goInputText;if(H==="")return;(p.keyCode===O.ENTER||p.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(S.a)(a,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,d=t.current;return!i||isNaN(i)?d:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,d=t.pageSizeOptions;return d.some(function(p){return p.toString()===i.toString()})?d:d.concat([i.toString()]).sort(function(p,H){var E=isNaN(Number(p))?0:Number(p),L=isNaN(Number(H))?0:Number(H);return E-L})}},{key:"render",value:function(){var t=this,i=this.props,d=i.pageSize,p=i.locale,H=i.rootPrefixCls,E=i.changeSize,L=i.quickGo,$=i.goButton,q=i.selectComponentClass,Ce=i.buildOptionText,Z=i.selectPrefixCls,_=i.disabled,ae=this.state.goInputText,ce="".concat(H,"-options"),be=q,fe=null,U=null,I=null;if(!E&&!L)return null;var J=this.getPageSizeOptions();if(E&&be){var W=J.map(function(h,Q){return c.a.createElement(be.Option,{key:Q,value:h.toString()},(Ce||t.buildOptionText)(h))});fe=c.a.createElement(be,{disabled:_,prefixCls:Z,showSearch:!1,className:"".concat(ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||J[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Q){return Q.parentNode}},W)}return L&&($&&(I=typeof $=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_,className:"".concat(ce,"-quick-jumper-button")},p.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),U=c.a.createElement("div",{className:"".concat(ce,"-quick-jumper")},p.jump_to,c.a.createElement("input",{disabled:_,type:"text",value:ae,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),p.page,I)),c.a.createElement("li",{className:"".concat(ce)},fe,U)}}]),a}(c.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=r,R=e("N2Kk");function u(){}function y(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b}function v(b,C,a){return a}function g(b,C,a){var o=typeof b=="undefined"?C.pageSize:b;return Math.floor((a.total-1)/o)+1}var z=function(b){Object(n.a)(a,b);var C=Object(le.a)(a);function a(o){var t;Object(ie.a)(this,a),t=C.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(g(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(E,L){var $=t.props.prefixCls,q=E||c.a.createElement("button",{type:"button","aria-label":L,className:"".concat($,"-item-link")});return typeof E=="function"&&(q=c.a.createElement(E,Object(te.a)({},t.props))),q},t.savePaginationNode=function(E){t.paginationNode=E},t.isValid=function(E){return y(E)&&E!==t.state.current},t.shouldDisplayQuickJumper=function(){var E=t.props,L=E.showQuickJumper,$=E.pageSize,q=E.total;return q<=$?!1:L},t.handleKeyDown=function(E){(E.keyCode===O.ARROW_UP||E.keyCode===O.ARROW_DOWN)&&E.preventDefault()},t.handleKeyUp=function(E){var L=t.getValidValue(E),$=t.state.currentInputValue;L!==$&&t.setState({currentInputValue:L}),E.keyCode===O.ENTER?t.handleChange(L):E.keyCode===O.ARROW_UP?t.handleChange(L-1):E.keyCode===O.ARROW_DOWN&&t.handleChange(L+1)},t.changePageSize=function(E){var L=t.state.current,$=g(E,t.state,t.props);L=L>$?$:L,$===0&&(L=t.state.current),typeof E=="number"&&("pageSize"in t.props||t.setState({pageSize:E}),"current"in t.props||t.setState({current:L,currentInputValue:L})),t.props.onShowSizeChange(L,E),"onChange"in t.props&&t.props.onChange&&t.props.onChange(L,E)},t.handleChange=function(E){var L=t.props.disabled,$=E;if(t.isValid($)&&!L){var q=g(void 0,t.state,t.props);$>q?$=q:$<1&&($=1),"current"in t.props||t.setState({current:$,currentInputValue:$});var Ce=t.state.pageSize;return t.props.onChange($,Ce),$}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?$-2:0),Ce=2;Ce<$;Ce++)q[Ce-2]=arguments[Ce];L.apply(void 0,q)}},t.runIfEnterPrev=function(E){t.runIfEnter(E,t.prev)},t.runIfEnterNext=function(E){t.runIfEnter(E,t.next)},t.runIfEnterJumpPrev=function(E){t.runIfEnter(E,t.jumpPrev)},t.runIfEnterJumpNext=function(E){t.runIfEnter(E,t.jumpNext)},t.handleGoTO=function(E){(E.keyCode===O.ENTER||E.type==="click")&&t.handleChange(t.state.currentInputValue)};var i=o.onChange!==u,d="current"in o;d&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var p=o.defaultCurrent;"current"in o&&(p=o.current);var H=o.defaultPageSize;return"pageSize"in o&&(H=o.pageSize),p=Math.min(p,g(H,void 0,o)),t.state={current:p,currentInputValue:p,pageSize:H},t}return Object(S.a)(a,[{key:"componentDidUpdate",value:function(t,i){var d=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode){var p=this.paginationNode.querySelector(".".concat(d,"-item-").concat(i.current));p&&document.activeElement===p&&p.blur()}}},{key:"getValidValue",value:function(t){var i=t.target.value,d=g(void 0,this.state,this.props),p=this.state.currentInputValue,H;return i===""?H=i:isNaN(Number(i))?H=p:i>=d?H=d:H=Number(i),H}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,d=t.total,p=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:d>p}},{key:"renderPrev",value:function(t){var i=this.props,d=i.prevIcon,p=i.itemRender,H=p(t,"prev",this.getItemIcon(d,"prev page")),E=!this.hasPrev();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"renderNext",value:function(t){var i=this.props,d=i.nextIcon,p=i.itemRender,H=p(t,"next",this.getItemIcon(d,"next page")),E=!this.hasNext();return Object(B.isValidElement)(H)?Object(B.cloneElement)(H,{disabled:E}):H}},{key:"render",value:function(){var t=this,i=this.props,d=i.prefixCls,p=i.className,H=i.style,E=i.disabled,L=i.hideOnSinglePage,$=i.total,q=i.locale,Ce=i.showQuickJumper,Z=i.showLessItems,_=i.showTitle,ae=i.showTotal,ce=i.simple,be=i.itemRender,fe=i.showPrevNextJumpers,U=i.jumpPrevIcon,I=i.jumpNextIcon,J=i.selectComponentClass,W=i.selectPrefixCls,h=i.pageSizeOptions,Q=this.state,X=Q.current,oe=Q.pageSize,ue=Q.currentInputValue;if(L===!0&&$<=oe)return null;var ee=g(void 0,this.state,this.props),de=[],Oe=null,he=null,De=null,We=null,Ne=null,pe=Ce&&Ce.goButton,ve=Z?1:2,Be=X-1>0?X-1:0,Fe=X+1=ve*2&&X!==1+2&&(de[0]=Object(B.cloneElement)(de[0],{className:"".concat(d,"-item-after-jump-prev")}),de.unshift(Oe)),ee-X>=ve*2&&X!==ee-2&&(de[de.length-1]=Object(B.cloneElement)(de[de.length-1],{className:"".concat(d,"-item-before-jump-next")}),de.push(he)),M!==1&&de.unshift(De),K!==ee&&de.push(We)}var D=null;ae&&(D=c.a.createElement("li",{className:"".concat(d,"-total-text")},ae($,[$===0?0:(X-1)*oe+1,X*oe>$?$:X*oe])));var P=!this.hasPrev()||!ee,A=!this.hasNext()||!ee;return c.a.createElement("ul",Object(j.a)({className:f()(d,p,Object(x.a)({},"".concat(d,"-disabled"),E)),style:H,unselectable:"unselectable",ref:this.savePaginationNode},Le),D,c.a.createElement("li",{title:_?q.prev_page:null,onClick:this.prev,tabIndex:P?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(d,"-prev"),Object(x.a)({},"".concat(d,"-disabled"),P)),"aria-disabled":P},this.renderPrev(Be)),de,c.a.createElement("li",{title:_?q.next_page:null,onClick:this.next,tabIndex:A?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(d,"-next"),Object(x.a)({},"".concat(d,"-disabled"),A)),"aria-disabled":A},this.renderNext(Fe)),c.a.createElement(l,{disabled:E,locale:q,rootPrefixCls:d,selectComponentClass:J,selectPrefixCls:W,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:X,pageSize:oe,pageSizeOptions:h,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:pe}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var d={};if("current"in t&&(d.current=t.current,t.current!==i.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var p=i.current,H=g(t.pageSize,i,t);p=p>H?H:p,"current"in t||(d.current=p,d.currentInputValue=p),d.pageSize=t.pageSize}return d}}]),a}(c.a.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:u,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:u,locale:R.a,style:{},itemRender:v,totalBoundaryShowSizeChanger:50};var m=z},"6RRn":function(Te,k,e){"use strict";var j=e("wCXF"),x=e("n6Qo");e.d(k,"b",function(){return x.a});var te=e("IBYe"),ie=e("6eGT"),S=e("hW8S");e.d(k,"a",function(){return S.a}),k.c=j.b},"6eGT":function(Te,k,e){"use strict";function j(x){return null}k.a=j},"815F":function(Te,k,e){"use strict";e.d(k,"e",function(){return le}),e.d(k,"c",function(){return c}),e.d(k,"d",function(){return se}),e.d(k,"a",function(){return w}),e.d(k,"f",function(){return F}),e.d(k,"b",function(){return O});var j=e("KQm4"),x=e("VTBJ"),te=e("Ff2n"),ie=e("Zm9Q"),S=e("Kwbf"),n=e("OZM5");function le(r,l){return r!=null?r:l}function B(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function R(u){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(v){var g=v.key,z=v.children;Object(S.a)(g!=null,"Tree node must have a certain key: [".concat(y).concat(g,"]"));var m=String(g);Object(S.a)(!l.has(m)||g===null||g===void 0,"Same 'key' exist in the Tree: ".concat(m)),l.set(m,!0),R(z,"".concat(y).concat(m," > "))})}R(r)}function c(r){function l(R){var u=Object(ie.a)(R);return u.map(function(y){if(!Object(n.i)(y))return Object(S.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var v=y.key,g=y.props,z=g.children,m=Object(te.a)(g,["children"]),b=Object(x.a)({key:v},m),C=l(z);return C.length&&(b.children=C),b}).filter(function(y){return y})}return l(r)}function se(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=new Set(l===!0?[]:l),u=[];function y(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(z,m){var b=Object(n.h)(g?g.pos:"0",m),C=le(z.key,b),a=Object(x.a)(Object(x.a)({},z),{},{parent:g,pos:b,children:null,data:z,isStart:[].concat(Object(j.a)(g?g.isStart:[]),[m===0]),isEnd:[].concat(Object(j.a)(g?g.isEnd:[]),[m===v.length-1])});return u.push(a),l===!0||R.has(C)?a.children=y(z.children||[],a):a.children=[],a})}return y(r),u}function f(r,l,R){var u;R?typeof R=="string"?u=function(g){return g[R]}:typeof R=="function"&&(u=function(g){return R(g)}):u=function(g,z){return le(g.key,z)};function y(v,g,z){var m=v?v.children:r,b=v?Object(n.h)(z.pos,g):"0";if(v){var C=u(v,b),a={node:v,index:g,pos:b,key:C,parentPos:z.node?z.pos:null,level:z.level+1};l(a)}m&&m.forEach(function(o,t){y(o,t,{node:v,pos:b,level:z?z.level+1:-1})})}y(null)}function w(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=l.initWrapper,u=l.processEntity,y=l.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,g={},z={},m={posEntities:g,keyEntities:z};return R&&(m=R(m)||m),f(r,function(b){var C=b.node,a=b.index,o=b.pos,t=b.key,i=b.parentPos,d=b.level,p={node:C,index:a,key:t,pos:o,level:d},H=le(t,o);g[o]=p,z[H]=p,p.parent=g[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),u&&u(p,m)},v),y&&y(m),m}function F(r,l){var R=l.expandedKeys,u=l.selectedKeys,y=l.loadedKeys,v=l.loadingKeys,g=l.checkedKeys,z=l.halfCheckedKeys,m=l.dragOverNodeKey,b=l.dropPosition,C=l.keyEntities,a=C[r],o={eventKey:r,expanded:R.indexOf(r)!==-1,selected:u.indexOf(r)!==-1,loaded:y.indexOf(r)!==-1,loading:v.indexOf(r)!==-1,checked:g.indexOf(r)!==-1,halfChecked:z.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&b===0,dragOverGapTop:m===r&&b===-1,dragOverGapBottom:m===r&&b===1};return o}function O(r){var l=r.data,R=r.expanded,u=r.selected,y=r.checked,v=r.loaded,g=r.loading,z=r.halfChecked,m=r.dragOver,b=r.dragOverGapTop,C=r.dragOverGapBottom,a=r.pos,o=r.active,t=Object(x.a)(Object(x.a)({},l),{},{expanded:R,selected:u,checked:y,loaded:v,loading:g,halfChecked:z,dragOver:m,dragOverGapTop:b,dragOverGapBottom:C,pos:a,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),t}},IBYe:function(Te,k,e){"use strict";function j(x){return null}k.a=j},LdHM:function(Te,k,e){"use strict";e.d(k,"b",function(){return v}),e.d(k,"a",function(){return z});var j=e("1OyB"),x=e("vuIU"),te=e("Ji7U"),ie=e("LK+K"),S=e("q1tI"),n=e("rePB"),le=e("Ff2n"),B=e("ODXe"),c=e("4IlW"),se=e("bX4T"),f=e("YrtM"),w=e("TSYQ"),F=e.n(w),O=e("+nKL"),r=e("8OUc"),l=function(_,ae){var ce=_.prefixCls,be=_.id,fe=_.flattenOptions,U=_.childrenAsData,I=_.values,J=_.searchValue,W=_.multiple,h=_.defaultActiveFirstOption,Q=_.height,X=_.itemHeight,oe=_.notFoundContent,ue=_.open,ee=_.menuItemSelectedIcon,de=_.virtual,Oe=_.onSelect,he=_.onToggleOpen,De=_.onActiveValue,We=_.onScroll,Ne=_.onMouseEnter,pe="".concat(ce,"-item"),ve=Object(f.a)(function(){return fe},[ue,fe],function(N,D){return D[0]&&N[1]!==D[1]}),Be=S.useRef(null),Fe=function(D){D.preventDefault()},Le=function(D){Be.current&&Be.current.scrollTo({index:D})},Ve=function(D){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,A=ve.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(b.a)(Z).map(function(ae,ce){if(!S.isValidElement(ae)||!ae.type)return null;var be=ae.type.isSelectOptGroup,fe=ae.key,U=ae.props,I=U.children,J=Object(le.a)(U,["children"]);return _||!be?C(ae):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(fe===null?ce:fe,"__"),label:fe},J),{},{options:a(I)})}).filter(function(ae){return ae})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),d=e("Kwbf"),p=e("WKfj");function H(Z){var _=Z.mode,ae=Z.options,ce=Z.children,be=Z.backfill,fe=Z.allowClear,U=Z.placeholder,I=Z.getInputElement,J=Z.showSearch,W=Z.onSearch,h=Z.defaultOpen,Q=Z.autoFocus,X=Z.labelInValue,oe=Z.value,ue=Z.inputValue,ee=Z.optionLabelProp,de=_==="multiple"||_==="tags",Oe=J!==void 0?J:de||_==="combobox",he=ae||a(ce);if(Object(d.a)(_!=="tags"||he.every(function(pe){return!pe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_==="tags"||_==="combobox"){var De=he.some(function(pe){return pe.options?pe.options.some(function(ve){return typeof("value"in ve?ve.value:ve.key)=="number"}):typeof("value"in pe?pe.value:pe.key)=="number"});Object(d.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(_!=="combobox"||!ee,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(_==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(d.a)(_==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),Object(d.b)(_!=="combobox"||!I||!fe||!U,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),W&&!Oe&&_!=="combobox"&&_!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!h||Q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),oe!=null){var We=Object(p.d)(oe);Object(d.a)(!X||We.every(function(pe){return Object(i.a)(pe)==="object"&&("key"in pe||"value"in pe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!de||Array.isArray(oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var Ne=null;Object(b.a)(ce).some(function(pe){if(!S.isValidElement(pe)||!pe.type)return!1;var ve=pe.type;if(ve.isSelectOption)return!1;if(ve.isSelectOptGroup){var Be=Object(b.a)(pe.props.children).every(function(Fe){return!S.isValidElement(Fe)||!pe.type||Fe.type.isSelectOption?!0:(Ne=Fe.type,!1)});return!Be}return Ne=ve,!0}),Ne&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ne.displayName||Ne.name||Ne,"`.")),Object(d.a)(ue===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var E=H,L=Object(t.a)({prefixCls:"rc-select",components:{optionList:u},convertChildrenToData:a,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:E,fillOptionsWithMissingValue:o.a}),$=function(Z){Object(te.a)(ae,Z);var _=Object(ie.a)(ae);function ae(){var ce;return Object(j.a)(this,ae),ce=_.apply(this,arguments),ce.selectRef=S.createRef(),ce.focus=function(){ce.selectRef.current.focus()},ce.blur=function(){ce.selectRef.current.blur()},ce}return Object(x.a)(ae,[{key:"render",value:function(){return S.createElement(L,Object.assign({ref:this.selectRef},this.props))}}]),ae}(S.Component);$.Option=v,$.OptGroup=z;var q=$,Ce=k.c=q},NvD2:function(Te,k,e){"use strict";e.d(k,"a",function(){return n});var j=e("Kwbf");function x(le,B){var c=new Set;return le.forEach(function(se){B.has(se)||c.add(se)}),c}function te(le){var B=le||{},c=B.disabled,se=B.disableCheckbox,f=B.checkable;return!!(c||se)||f===!1}function ie(le,B,c,se){for(var f=new Set(le),w=new Set,F=0;F<=c;F+=1){var O=B.get(F)||new Set;O.forEach(function(u){var y=u.key,v=u.node,g=u.children,z=g===void 0?[]:g;f.has(y)&&!se(v)&&z.filter(function(m){return!se(m.node)}).forEach(function(m){f.add(m.key)})})}for(var r=new Set,l=c;l>=0;l-=1){var R=B.get(l)||new Set;R.forEach(function(u){var y=u.parent,v=u.node;if(se(v)||!u.parent||r.has(u.parent.key))return;if(se(u.parent.node)){r.add(y.key);return}var g=!0,z=!1;(y.children||[]).filter(function(m){return!se(m.node)}).forEach(function(m){var b=m.key,C=f.has(b);g&&!C&&(g=!1),!z&&(C||w.has(b))&&(z=!0)}),g&&f.add(y.key),z&&w.add(y.key),r.add(y.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(x(w,f))}}function S(le,B,c,se,f){for(var w=new Set(le),F=new Set(B),O=0;O<=se;O+=1){var r=c.get(O)||new Set;r.forEach(function(y){var v=y.key,g=y.node,z=y.children,m=z===void 0?[]:z;!w.has(v)&&!F.has(v)&&!f(g)&&m.filter(function(b){return!f(b.node)}).forEach(function(b){w.delete(b.key)})})}F=new Set;for(var l=new Set,R=se;R>=0;R-=1){var u=c.get(R)||new Set;u.forEach(function(y){var v=y.parent,g=y.node;if(f(g)||!y.parent||l.has(y.parent.key))return;if(f(y.parent.node)){l.add(v.key);return}var z=!0,m=!1;(v.children||[]).filter(function(b){return!f(b.node)}).forEach(function(b){var C=b.key,a=w.has(C);z&&!a&&(z=!1),!m&&(a||F.has(C))&&(m=!0)}),z||w.delete(v.key),m&&F.add(v.key),l.add(v.key)})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(x(F,w))}}function n(le,B,c,se){var f=[],w;se?w=se:w=te;var F=new Set(le.filter(function(R){var u=!!c[R];return u||f.push(R),u})),O=new Map,r=0;Object.keys(c).forEach(function(R){var u=c[R],y=u.level,v=O.get(y);v||(v=new Set,O.set(y,v)),v.add(u),r=Math.max(r,y)}),Object(j.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var l;return B===!0?l=ie(F,O,r,w):l=S(F,B.halfCheckedKeys,O,r,w),l}},OZM5:function(Te,k,e){"use strict";e.d(k,"b",function(){return se}),e.d(k,"a",function(){return f}),e.d(k,"k",function(){return w}),e.d(k,"h",function(){return F}),e.d(k,"i",function(){return O}),e.d(k,"g",function(){return r}),e.d(k,"c",function(){return l}),e.d(k,"d",function(){return R}),e.d(k,"j",function(){return v}),e.d(k,"e",function(){return g}),e.d(k,"f",function(){return z});var j=e("KQm4"),x=e("U8pU"),te=e("Ff2n"),ie=e("q1tI"),S=e.n(ie),n=e("Kwbf"),le=e("WaYH"),B=.25,c=2;function se(m,b){var C=m.slice(),a=C.indexOf(b);return a>=0&&C.splice(a,1),C}function f(m,b){var C=m.slice();return C.indexOf(b)===-1&&C.push(b),C}function w(m){return m.split("-")}function F(m,b){return"".concat(m,"-").concat(b)}function O(m){return m&&m.type&&m.type.isTreeNode}function r(m,b){var C=[m],a=b[m];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var d=i.key,p=i.children;C.push(d),o(p)})}return o(a.children),C}function l(m,b){var C=m.clientY,a=b.selectHandle.getBoundingClientRect(),o=a.top,t=a.bottom,i=a.height,d=Math.max(i*B,c);return C<=o+d?-1:C>=t-d?1:0}function R(m,b){if(!m)return;var C=b.multiple;return C?m.slice():m.length?[m[0]]:m}var u=function(b){return b};function y(m,b){if(!m)return[];var C=b||{},a=C.processProps,o=a===void 0?u:a,t=Array.isArray(m)?m:[m];return t.map(function(i){var d=i.children,p=Object(te.a)(i,["children"]),H=y(d,b);return S.a.createElement(le.a,Object.assign({},o(p)),H)})}function v(m){if(!m)return null;var b;if(Array.isArray(m))b={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(x.a)(m)==="object")b={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return b}function g(m,b){var C=new Set;function a(o){if(C.has(o))return;var t=b[o];if(!t)return;C.add(o);var i=t.parent,d=t.node;if(d.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(o){a(o)}),Object(j.a)(C)}function z(m){var b={};return Object.keys(m).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(b[C]=m[C])}),b}},"SA+Z":function(Te,k,e){var j=e("wTVA"),x=e("EbDI"),te=e("ZhPi"),ie=e("wkBT");function S(n){return j(n)||x(n)||te(n)||ie()}Te.exports=S,Te.exports.__esModule=!0,Te.exports.default=Te.exports},WaYH:function(Te,k,e){"use strict";var j=e("rePB"),x=e("Ff2n"),te=e("VTBJ"),ie=e("1OyB"),S=e("vuIU"),n=e("JX7q"),le=e("Ji7U"),B=e("LK+K"),c=e("q1tI"),se=e("TSYQ"),f=e.n(se),w=e("sboe"),F=e("OZM5"),O=function(b){var C=b.prefixCls,a=b.level,o=b.isStart,t=b.isEnd;if(!a)return null;for(var i="".concat(C,"-indent-unit"),d=[],p=0;p1&&arguments[1]!==void 0?arguments[1]:!1,J=U.getAttribute("id")||U.getAttribute("data-reactid")||U.getAttribute("name");if(I&&E[J])return E[J];var k=window.getComputedStyle(U),h=k.getPropertyValue("box-sizing")||k.getPropertyValue("-moz-box-sizing")||k.getPropertyValue("-webkit-box-sizing"),Q=parseFloat(k.getPropertyValue("padding-bottom"))+parseFloat(k.getPropertyValue("padding-top")),X=parseFloat(k.getPropertyValue("border-bottom-width"))+parseFloat(k.getPropertyValue("border-top-width")),oe=H.map(function(ee){return"".concat(ee,":").concat(k.getPropertyValue(ee))}).join(";"),ue={sizingStyle:oe,paddingSize:Q,borderSize:X,boxSizing:h};return I&&J&&(E[J]=ue),ue}function q(U){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),U.getAttribute("wrap")?L.setAttribute("wrap",U.getAttribute("wrap")):L.removeAttribute("wrap");var h=$(U,I),Q=h.paddingSize,X=h.borderSize,oe=h.boxSizing,ue=h.sizingStyle;L.setAttribute("style","".concat(ue,";").concat(p)),L.value=U.value||U.placeholder||"";var ee=Number.MIN_SAFE_INTEGER,de=Number.MAX_SAFE_INTEGER,Oe=L.scrollHeight,he;if(oe==="border-box"?Oe+=X:oe==="content-box"&&(Oe-=Q),J!==null||k!==null){L.value=" ";var De=L.scrollHeight-Q;J!==null&&(ee=De*J,oe==="border-box"&&(ee=ee+Q+X),Oe=Math.max(ee,Oe)),k!==null&&(de=De*k,oe==="border-box"&&(de=de+Q+X),he=Oe>de?"":"hidden",Oe=Math.min(de,Oe))}return{height:Oe,minHeight:ee,maxHeight:de,overflowY:he,resize:"none"}}var Ce=e("Gytx"),Z=e.n(Ce),_;(function(U){U[U.NONE=0]="NONE",U[U.RESIZING=1]="RESIZING",U[U.RESIZED=2]="RESIZED"})(_||(_={}));var ae=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(k){var h;return Object(x.a)(this,J),h=I.call(this,k),h.nextFrameActionId=void 0,h.resizeFrameId=void 0,h.textArea=void 0,h.saveTextArea=function(Q){h.textArea=Q},h.handleResize=function(Q){var X=h.state.resizeStatus,oe=h.props,ue=oe.autoSize,ee=oe.onResize;if(X!==_.NONE)return;typeof ee=="function"&&ee(Q),ue&&h.resizeOnNextFrame()},h.resizeOnNextFrame=function(){cancelAnimationFrame(h.nextFrameActionId),h.nextFrameActionId=requestAnimationFrame(h.resizeTextarea)},h.resizeTextarea=function(){var Q=h.props.autoSize;if(!Q||!h.textArea)return;var X=Q.minRows,oe=Q.maxRows,ue=q(h.textArea,!1,X,oe);h.setState({textareaStyles:ue,resizeStatus:_.RESIZING},function(){cancelAnimationFrame(h.resizeFrameId),h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.RESIZED},function(){h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.NONE}),h.fixFirefoxAutoScroll()})})})})},h.renderTextArea=function(){var Q=h.props,X=Q.prefixCls,oe=X===void 0?"rc-textarea":X,ue=Q.autoSize,ee=Q.onResize,de=Q.className,Oe=Q.disabled,he=h.state,De=he.textareaStyles,ke=he.resizeStatus,Ne=Object(t.a)(h.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),pe=d()(oe,de,Object(B.a)({},"".concat(oe,"-disabled"),Oe));"value"in Ne&&(Ne.value=Ne.value||"");var ve=Object(le.a)(Object(le.a)(Object(le.a)({},h.props.style),De),ke===_.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:h.handleResize,disabled:!(ue||ee)},n.createElement("textarea",Object(j.a)({},Ne,{className:pe,style:ve,ref:h.saveTextArea})))},h.state={textareaStyles:{},resizeStatus:_.NONE},h}return Object(te.a)(J,[{key:"componentDidUpdate",value:function(h){(h.value!==this.props.value||!Z()(h.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var h=this.textArea.selectionStart,Q=this.textArea.selectionEnd;this.textArea.setSelectionRange(h,Q)}}catch(X){}}},{key:"render",value:function(){return this.renderTextArea()}}]),J}(n.Component),ce=ae,be=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(k){var h;Object(x.a)(this,J),h=I.call(this,k),h.resizableTextArea=void 0,h.focus=function(){h.resizableTextArea.textArea.focus()},h.saveTextArea=function(X){h.resizableTextArea=X},h.handleChange=function(X){var oe=h.props.onChange;h.setValue(X.target.value,function(){h.resizableTextArea.resizeTextarea()}),oe&&oe(X)},h.handleKeyDown=function(X){var oe=h.props,ue=oe.onPressEnter,ee=oe.onKeyDown;X.keyCode===13&&ue&&ue(X),ee&&ee(X)};var Q=typeof k.value=="undefined"||k.value===null?k.defaultValue:k.value;return h.state={value:Q},h}return Object(te.a)(J,[{key:"setValue",value:function(h,Q){"value"in this.props||this.setState({value:h},Q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ce,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(h){return"value"in h?{value:h.value}:null}}]),J}(n.Component),fe=W.default=be},ZpRC:function(Te,W,e){"use strict";function j(f){return typeof f=="object"&&f!=null&&f.nodeType===1}function x(f,w){return(!w||f!=="hidden")&&f!=="visible"&&f!=="clip"}function te(f,w){if(f.clientHeightw||l>f&&R=w&&u>=F?l-f-O:R>w&&uF?R-w+r:0}var S=function(f,w){var F=window,O=w.scrollMode,r=w.block,l=w.inline,R=w.boundary,u=w.skipOverflowHiddenElements,y=typeof R=="function"?R:function(De){return De!==R};if(!j(f))throw new TypeError("Invalid target");for(var v=document.scrollingElement||document.documentElement,g=[],z=f;j(z)&&y(z);){if((z=z.parentElement)===v){g.push(z);break}z!=null&&z===document.body&&te(z)&&!te(document.documentElement)||z!=null&&te(z,u)&&g.push(z)}for(var m=F.visualViewport?F.visualViewport.width:innerWidth,b=F.visualViewport?F.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,a=window.scrollY||pageYOffset,o=f.getBoundingClientRect(),t=o.height,i=o.width,d=o.top,p=o.right,H=o.bottom,E=o.left,L=r==="start"||r==="nearest"?d:r==="end"?H:d+t/2,$=l==="center"?E+i/2:l==="end"?p:E,q=[],Ce=0;Ce=0&&E>=0&&H<=b&&p<=m&&d>=be&&H<=U&&E>=I&&p<=fe)return q;var J=getComputedStyle(Z),k=parseInt(J.borderLeftWidth,10),h=parseInt(J.borderTopWidth,10),Q=parseInt(J.borderRightWidth,10),X=parseInt(J.borderBottomWidth,10),oe=0,ue=0,ee="offsetWidth"in Z?Z.offsetWidth-Z.clientWidth-k-Q:0,de="offsetHeight"in Z?Z.offsetHeight-Z.clientHeight-h-X:0;if(v===Z)oe=r==="start"?L:r==="end"?L-b:r==="nearest"?ie(a,a+b,b,h,X,a+L,a+L+t,t):L-b/2,ue=l==="start"?$:l==="center"?$-m/2:l==="end"?$-m:ie(C,C+m,m,k,Q,C+$,C+$+i,i),oe=Math.max(0,oe+a),ue=Math.max(0,ue+C);else{oe=r==="start"?L-be-h:r==="end"?L-U+X+de:r==="nearest"?ie(be,U,ae,h,X+de,L,L+t,t):L-(be+ae/2)+de/2,ue=l==="start"?$-I-k:l==="center"?$-(I+ce/2)+ee/2:l==="end"?$-fe+Q+ee:ie(I,fe,ce,k,Q+ee,$,$+i,i);var Oe=Z.scrollLeft,he=Z.scrollTop;L+=he-(oe=Math.max(0,Math.min(he+oe,Z.scrollHeight-ae+de))),$+=Oe-(ue=Math.max(0,Math.min(Oe+ue,Z.scrollWidth-ce+ee)))}q.push({el:Z,top:oe,left:ue})}return q};function n(f){return f===Object(f)&&Object.keys(f).length!==0}function le(f,w){w===void 0&&(w="auto");var F="scrollBehavior"in document.body.style;f.forEach(function(O){var r=O.el,l=O.top,R=O.left;r.scroll&&F?r.scroll({top:l,left:R,behavior:w}):(r.scrollTop=l,r.scrollLeft=R)})}function B(f){return f===!1?{block:"end",inline:"nearest"}:n(f)?f:{block:"start",inline:"nearest"}}function c(f,w){var F=!f.ownerDocument.documentElement.contains(f);if(n(w)&&typeof w.behavior=="function")return w.behavior(F?[]:S(f,w));if(F)return;var O=B(w);return le(S(f,O),O.behavior)}var se=W.a=c},bT9E:function(Te,W,e){"use strict";e.d(W,"a",function(){return x});var j=e("VTBJ");function x(te,ie){var S=Object(j.a)({},te);return Array.isArray(ie)&&ie.forEach(function(n){delete S[n]}),S}},biw7:function(Te,W,e){"use strict";var j=e("q1tI"),x=e.n(j),te=j.createContext(null);W.a=te},epD4:function(Te,W,e){"use strict";e.r(W);var j=e("5NDa"),x=e("5rEg"),te=e("g9YV"),ie=e("wCAj"),S=e("14J3"),n=e("BMrR"),le=e("+L6B"),B=e("2/Rp"),c=e("k1fw"),se=e("2qtc"),f=e("kLXV"),w=e("9og8"),F=e("y8nQ"),O=e("Vl3Y"),r=e("tJVT"),l=e("PpiC"),R=e("WmNS"),u=e.n(R),y=e("q1tI"),v=e.n(y),g=e("9kvl"),z=e("ErOA"),m=e("wd/R"),b=e.n(m);b.a.locale("ZH-cn");var C=function(o){var t=o.classroomList,i=o.globalSetting,d=o.loading,p=o.user,H=o.dispatch,E=Object(l.a)(o,["classroomList","globalSetting","loading","user","dispatch"]),L=Object(y.useState)(),$=Object(r.a)(L,2),q=$[0],Ce=$[1],Z=Object(y.useState)(1),_=Object(r.a)(Z,2),ae=_[0],ce=_[1],be=Object(y.useState)(null),fe=Object(r.a)(be,2),U=fe[0],I=fe[1],J=Object(y.useState)(!0),k=Object(r.a)(J,2),h=k[0],Q=k[1],X=Object(y.useState)(20),oe=Object(r.a)(X,2),ue=oe[0],ee=oe[1],de=Object(y.useState)(117),Oe=Object(r.a)(de,2),he=Oe[0],De=Oe[1],ke=Object(y.useState)(!1),Ne=Object(r.a)(ke,2),pe=Ne[0],ve=Ne[1],Be=O.a.useForm(),Fe=Object(r.a)(Be,1),Le=Fe[0];Object(y.useEffect)(function(){Ve()},[ae]);function Ve(K){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(w.a)(u.a.mark(function K(V){var N,D;return u.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return Q(!0),N=V||ae,A.next=4,Object(z.a)("/api/school_portals/assets.json",{method:"get",params:{page:N,per_page:ue,school_id:he}});case 4:D=A.sent,D.assets&&Ce(D),Q(!1);case 7:case"end":return A.stop()}},K)})),Ue.apply(this,arguments)}var ot=function(V,N){f.a.confirm({centered:!0,width:424,okText:"\u786E\u5B9A\u5220\u9664",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u8D44\u6E90",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u8D44\u6E90\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u9700\u8981\u5220\u9664\u300A".concat(V,"\u300B\u8D44\u6E90\uFF1F"),onOk:function(){var D=Object(w.a)(u.a.mark(function A(){var Y,G,ne;return u.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,Object(z.a)("/api/school_portals/remove_assets.json",{method:"post",body:{asset_id:N,school_id:he}});case 2:Y=re.sent,Y.status===0&&(ne=(q==null||((G=q.assets)===null||G===void 0)?void 0:G.length)===1&&ae>1?ae-1:ae,Ve(ne));case 4:case"end":return re.stop()}},A)}));function P(){return D.apply(this,arguments)}return P}()})},s=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",key:"name",ellipsis:!0,width:50,render:function(V,N,D){return v.a.createElement("span",null,ue*(ae-1)+D+1)}},{title:"\u8D44\u6E90\u540D\u79F0",dataIndex:"content",align:"center",key:"content"},{title:"\u8D44\u6E90\u7C7B\u578B",dataIndex:"clazz",align:"center",key:"clazz"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",align:"center",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"remark",align:"center",key:"remark",ellipsis:!0,render:function(V,N,D){return v.a.createElement("span",null,v.a.createElement("a",{href:N.link,target:"_blank",style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u67E5\u770B"),(N==null?void 0:N.can_edit)&&v.a.createElement("span",{onClick:function(){Le.setFieldsValue({content:N.content,link:N.link,clazz:N.clazz}),ve(!0),I(N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u7F16\u8F91"),v.a.createElement("span",{onClick:function(){ot(N.content,N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}}," \u5220\u9664"))}}],T=function(){Le.resetFields(),I(null),ve(!1)},M=function(){var K=Object(w.a)(u.a.mark(function V(N){var D,P;return u.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!U){Y.next=6;break}return Y.next=3,Object(z.a)("/api/school_portals/update_assets.json",{method:"post",body:Object(c.a)({asset_id:U,school_id:he},N)});case 3:return D=Y.sent,D.status===0&&(Ve(),T()),Y.abrupt("return");case 6:return Y.next=8,Object(z.a)("/api/school_portals/add_assets.json",{method:"post",body:Object(c.a)({school_id:he},N)});case 8:P=Y.sent,P.status===0&&(ce(1),Ve(1),T());case 10:case"end":return Y.stop()}},V)}));return function(N){return K.apply(this,arguments)}}();return v.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px",marginTop:"40px",marginBottom:"20px"}},v.a.createElement(n.a,{justify:"space-between",align:"middle",className:"mb20"},v.a.createElement("span",{className:"ml15"},"\u5171",q==null?void 0:q.total_count,"\u4E2A\u5176\u4ED6\u5E73\u53F0\u8D44\u6E90"),v.a.createElement(B.a,{onClick:function(){ve(!0),I(null)},type:"primary"},"\u65B0\u5EFA\u8D44\u6E90")),v.a.createElement(ie.a,{className:"table-layout",columns:s,loading:h,dataSource:q==null?void 0:q.assets,pagination:{hideOnSinglePage:!0,pageSize:ue,showSizeChanger:!1,current:ae,position:["bottomCenter"],onChange:function(V,N){ce(V)},total:q==null?void 0:q.total_count}}),v.a.createElement(f.a,{title:U?"\u7F16\u8F91\u8D44\u6E90":"\u65B0\u5EFA\u8D44\u6E90",visible:pe,width:500,centered:!0,okText:U?"\u786E\u8BA4\u7F16\u8F91":"\u786E\u8BA4\u65B0\u5EFA",cancelText:"\u53D6\u6D88",onOk:function(){return Le.submit()},onCancel:T},v.a.createElement(O.a,{form:Le,onFinish:M},v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u540D\u79F0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0"},{max:40,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519940\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:40})),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u94FE\u63A5",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u94FE\u63A5"}]},v.a.createElement(x.a,null)),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u7C7B\u578B",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u7C7B\u578B"},{max:10,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519910\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:10})))))};W.default=Object(g.a)(function(a){var o=a.classroomList,t=a.loading,i=a.globalSetting,d=a.user;return{classroomList:o,globalSetting:i,loading:t.models.classroomList,user:d}})(C)},fyJ8:function(Te,W,e){"use strict";var j=e("rePB"),x=e("VTBJ"),te=e("Ff2n"),ie=e("U8pU"),S=e("q1tI"),n=e.n(S),le=e("TSYQ"),B=e.n(le),c=e("c+Xe"),se=e("sR1s");function f(l){return l&&Object(ie.a)(l)==="object"&&!Array.isArray(l)&&!S.isValidElement(l)}function w(l){return typeof l=="string"?!0:Object(c.c)(l)}function F(l,R){var u,y=l.prefixCls,v=l.className,g=l.record,z=l.index,m=l.dataIndex,b=l.render,C=l.children,a=l.component,o=a===void 0?"td":a,t=l.colSpan,i=l.rowSpan,d=l.fixLeft,p=l.fixRight,H=l.firstFixLeft,E=l.lastFixLeft,L=l.firstFixRight,$=l.lastFixRight,q=l.appendNode,Ce=l.additionalProps,Z=Ce===void 0?{}:Ce,_=l.ellipsis,ae=l.align,ce=l.rowType,be=l.isSticky,fe="".concat(y,"-cell"),U,I;if(C)I=C;else{var J=Object(se.b)(g,m);if(I=J,b){var k=b(J,g,z);f(k)?(I=k.children,U=k.props):I=k}}Object(ie.a)(I)==="object"&&!Array.isArray(I)&&!S.isValidElement(I)&&(I=null),_&&(E||L)&&(I=S.createElement("span",{className:"".concat(fe,"-content")},I));var h=U||{},Q=h.colSpan,X=h.rowSpan,oe=h.style,ue=h.className,ee=Object(te.a)(h,["colSpan","rowSpan","style","className"]),de=Q!==void 0?Q:t,Oe=X!==void 0?X:i;if(de===0||Oe===0)return null;var he={},De=typeof d=="number",ke=typeof p=="number";De&&(he.position="sticky",he.left=d),ke&&(he.position="sticky",he.right=p);var Ne={};ae&&(Ne.textAlign=ae);var pe,ve=_===!0?{showTitle:!0}:_;ve&&(ve.showTitle||ce==="header")&&(typeof I=="string"||typeof I=="number"?pe=I.toString():S.isValidElement(I)&&typeof I.props.children=="string"&&(pe=I.props.children));var Be=Object(x.a)(Object(x.a)(Object(x.a)({title:pe},ee),Z),{},{colSpan:de&&de!==1?de:null,rowSpan:Oe&&Oe!==1?Oe:null,className:B()(fe,v,(u={},Object(j.a)(u,"".concat(fe,"-fix-left"),De),Object(j.a)(u,"".concat(fe,"-fix-left-first"),H),Object(j.a)(u,"".concat(fe,"-fix-left-last"),E),Object(j.a)(u,"".concat(fe,"-fix-right"),ke),Object(j.a)(u,"".concat(fe,"-fix-right-first"),L),Object(j.a)(u,"".concat(fe,"-fix-right-last"),$),Object(j.a)(u,"".concat(fe,"-ellipsis"),_),Object(j.a)(u,"".concat(fe,"-with-append"),q),Object(j.a)(u,"".concat(fe,"-fix-sticky"),(De||ke)&&be),u),Z.className,ue),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},Z.style),Ne),he),oe),ref:w(o)?R:null});return S.createElement(o,Object.assign({},Be),q,I)}var O=S.forwardRef(F);O.displayName="Cell";var r=S.memo(O,function(l,R){return R.shouldCellUpdate?!R.shouldCellUpdate(R.record,l.record):!1});W.a=r},hW8S:function(Te,W,e){"use strict";e.d(W,"a",function(){return ie}),e.d(W,"c",function(){return S}),e.d(W,"b",function(){return n});var j=e("VTBJ"),x=e("Ff2n"),te=e("Kwbf"),ie="RC_TABLE_INTERNAL_COL_DEFINE";function S(le){var B=le.expandable,c=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(j.a)(Object(j.a)({},c),B):c}function n(le){return Object.keys(le).reduce(function(B,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(B[c]=le[c]),B},{})}},n6Qo:function(Te,W,e){"use strict";e.d(W,"a",function(){return B});var j=e("q1tI"),x=e("biw7"),te=e("fyJ8");function ie(c){var se=c.className,f=c.index,w=c.children,F=c.colSpan,O=c.rowSpan,r=j.useContext(x.a),l=r.prefixCls,R=r.fixedInfoList,u=R[f];return j.createElement(te.a,Object.assign({className:se,index:f,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:w,props:{colSpan:F,rowSpan:O}}}},u))}function S(c){return j.createElement("tr",Object.assign({},c))}function n(c){var se=c.children,f=j.useContext(x.a),w=f.prefixCls;return j.createElement("tfoot",{className:"".concat(w,"-summary")},se)}var le=W.b=n,B={Cell:ie,Row:S}},sR1s:function(Te,W,e){"use strict";e.d(W,"b",function(){return ie}),e.d(W,"a",function(){return S}),e.d(W,"c",function(){return n}),e.d(W,"d",function(){return le});var j=e("U8pU"),x="RC_TABLE_KEY";function te(B){return B==null?[]:Array.isArray(B)?B:[B]}function ie(B,c){if(!c&&typeof c!="number")return B;for(var se=te(c),f=B,w=0;w1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(v.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=v[0];if(n.isValidElement(g)&&Object(f.c)(g)){var z=g.ref;v[0]=n.cloneElement(g,{ref:Object(f.a)(z,this.setChildNode)})}return v.length===1?v[0]:v.map(function(m,b){return!n.isValidElement(m)||"key"in m&&m.key!==null?m:n.cloneElement(m,{key:"".concat(F,"-").concat(b)})})}}]),R}(n.Component);O.displayName="ResizeObserver",W.a=O},wCXF:function(Te,W,e){"use strict";e.d(W,"a",function(){return Le});var j=e("rePB"),x=e("VTBJ"),te=e("KQm4"),ie=e("U8pU"),S=e("ODXe"),n=e("q1tI"),le=e("TSYQ"),B=e.n(le),c=e("Gytx"),se=e.n(c),f=e("Kwbf"),w=e("t23M"),F=e("qx4F"),O=e("6eGT"),r=e("IBYe"),l=e("Ff2n"),R=e("c+Xe"),u=e("fyJ8"),y=e("biw7");function v(s,T,M,K,V){var N=M[s]||{},D=M[T]||{},P,A;N.fixed==="left"?P=K.left[s]:D.fixed==="right"&&(A=K.right[T]);var Y=!1,G=!1,ne=!1,me=!1,re=M[T+1],ge=M[s-1];if(V==="rtl"){if(P!==void 0){var Me=ge&&ge.fixed==="left";me=!Me}else if(A!==void 0){var Re=re&&re.fixed==="right";ne=!Re}}else if(P!==void 0){var Pe=re&&re.fixed==="left";Y=!Pe}else if(A!==void 0){var Ee=ge&&ge.fixed==="right";G=!Ee}return{fixLeft:P,fixRight:A,lastFixLeft:Y,firstFixRight:G,lastFixRight:ne,firstFixLeft:me,isSticky:K.isSticky}}var g=e("sR1s");function z(s){var T=s.cells,M=s.stickyOffsets,K=s.flattenColumns,V=s.rowComponent,N=s.cellComponent,D=s.onHeaderRow,P=s.index,A=n.useContext(y.a),Y=A.prefixCls,G=A.direction,ne;D&&(ne=D(T.map(function(re){return re.column}),P));var me=Object(g.a)(T.map(function(re){return re.column}));return n.createElement(V,Object.assign({},ne),T.map(function(re,ge){var Me=re.column,Re=v(re.colStart,re.colEnd,K,M,G),Pe;return Me&&Me.onHeaderCell&&(Pe=re.column.onHeaderCell(Me)),n.createElement(u.a,Object.assign({},re,{ellipsis:Me.ellipsis,align:Me.align,component:N,prefixCls:Y,key:me[ge]},Re,{additionalProps:Pe,rowType:"header"}))}))}z.displayName="HeaderRow";var m=z;function b(s){var T=[];function M(D,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;T[A]=T[A]||[];var Y=P,G=D.filter(Boolean).map(function(ne){var me={key:ne.key,className:ne.className||"",children:ne.title,column:ne,colStart:Y},re=1,ge=ne.children;return ge&&ge.length>0&&(re=M(ge,Y,A+1).reduce(function(Me,Re){return Me+Re},0),me.hasSubColumns=!0),"colSpan"in ne&&(re=ne.colSpan),"rowSpan"in ne&&(me.rowSpan=ne.rowSpan),me.colSpan=re,me.colEnd=me.colStart+re-1,T[A].push(me),Y+=re,re});return G}M(s,0);for(var K=T.length,V=function(P){T[P].forEach(function(A){!("rowSpan"in A)&&!A.hasSubColumns&&(A.rowSpan=K-P)})},N=0;N=0;P-=1){var A=T[P],Y=M&&M[P],G=Y&&Y[o.a];(A||G||D)&&(V.unshift(n.createElement("col",Object.assign({key:P,style:{width:A,minWidth:A}},G))),D=!0)}return n.createElement("colgroup",null,V)}var i=t;function d(s,T){return Object(n.useMemo)(function(){for(var M=[],K=0;K1?Ye-1:0),ct=1;ct=ne&&(Ae=ne-me),D({scrollLeft:Ae/ne*(G+2)}),Ee.current.x=ye.pageX},$e=function(){var ye=Object(ke.b)(N.current).top,We=ye+N.current.offsetHeight,Je=document.documentElement.scrollTop+window.innerHeight;We-Object(F.a)()<=Je||ye>=Je-P?Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Ke=function(ye){Pe(function(We){return Object(x.a)(Object(x.a)({},We),{},{scrollLeft:ye/G*ne||0})})};return n.useImperativeHandle(M,function(){return{setScrollLeft:Ke}}),n.useEffect(function(){var _e=Object(De.a)(document.body,"mouseup",Ze,!1),ye=Object(De.a)(document.body,"mousemove",qe,!1);return $e(),function(){_e.remove(),ye.remove()}},[me,we]),n.useEffect(function(){var _e=Object(De.a)(window,"scroll",$e,!1),ye=Object(De.a)(window,"resize",$e,!1);return function(){_e.remove(),ye.remove()}},[]),n.useEffect(function(){Re.isHiddenScrollBar||Pe(function(_e){var ye,We;return Object(x.a)(Object(x.a)({},_e),{},{scrollLeft:N.current.scrollLeft/((ye=N.current)===null||ye===void 0?void 0:ye.scrollWidth)*((We=N.current)===null||We===void 0?void 0:We.clientWidth)})})},[Re.isHiddenScrollBar]),G<=ne||!me||Re.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(F.a)(),width:ne,bottom:P},className:"".concat(Y,"-sticky-scroll")},n.createElement("div",{onMouseDown:Se,ref:re,className:B()("".concat(Y,"-sticky-scroll-bar"),Object(j.a)({},"".concat(Y,"-sticky-scroll-bar-active"),we)),style:{width:"".concat(me,"px"),transform:"translate3d(".concat(Re.scrollLeft,"px, 0, 0)")}}))},pe=n.forwardRef(Ne);function ve(s,T){return n.useMemo(function(){var M=!!s;return{isSticky:M,stickyClassName:M?"".concat(T,"-sticky-header"):"",offsetHeader:Object(ie.a)(s)==="object"&&s.offsetHeader||0,offsetScroll:Object(ie.a)(s)==="object"&&s.offsetScroll||0}},[s,T])}var Be=[],Fe={},Le="rc-table-internal-hook",Ve=n.memo(function(s){var T=s.children;return T},function(s,T){return se()(s.props,T.props)?s.pingLeft!==T.pingLeft||s.pingRight!==T.pingRight:!1});function Ue(s){var T,M=s.prefixCls,K=s.className,V=s.rowClassName,N=s.style,D=s.data,P=s.rowKey,A=s.scroll,Y=s.tableLayout,G=s.direction,ne=s.title,me=s.footer,re=s.summary,ge=s.id,Me=s.showHeader,Re=s.components,Pe=s.emptyText,Ee=s.onRow,Qe=s.onHeaderRow,Ie=s.internalHooks,we=s.transformColumns,He=s.internalRefs,Ze=s.sticky,Se=D||Be,qe=!!Se.length,$e=n.useState(0),Ke=Object(S.a)($e,2),_e=Ke[0],ye=Ke[1];n.useEffect(function(){ye(Object(F.a)())});var We=n.useMemo(function(){return Object(g.c)(Re,{})},[Re]),Je=n.useCallback(function(xe,je){return Object(g.b)(We,xe)||je},[We]),et=n.useMemo(function(){return typeof P=="function"?P:function(xe){var je=xe&&xe[P];return je}},[P]),Ae=Object(o.c)(s),jt=Ae.expandIcon,Rt=Ae.expandedRowKeys,Nt=Ae.defaultExpandedRowKeys,st=Ae.defaultExpandAllRows,dt=Ae.expandedRowRender,mt=Ae.onExpand,ht=Ae.onExpandedRowsChange,St=Ae.expandRowByClick,at=Ae.rowExpandable,Et=Ae.expandIconColumnIndex,pt=Ae.expandedRowClassName,Kt=Ae.childrenColumnName,Tt=Ae.indentSize,vt=jt||Oe,gt=Kt||"children",Dt=n.useMemo(function(){return dt?"row":s.expandable&&Ie===Le&&s.expandable.__PARENT_RENDER_ICON__||Se.some(function(xe){return xe&&Object(ie.a)(xe)==="object"&&xe[gt]})?"nest":!1},[!!dt,Se]),Pt=n.useState(function(){return Nt||(st?he(Se,et,gt):[])}),Ge=Object(S.a)(Pt,2),tt=Ge[0],rt=Ge[1],Ye=n.useMemo(function(){return new Set(Rt||tt||[])},[Rt,tt]),ut=n.useCallback(function(xe){var je=et(xe,Se.indexOf(xe)),Xe,nt=Ye.has(je);nt?(Ye.delete(je),Xe=Object(te.a)(Ye)):Xe=[].concat(Object(te.a)(Ye),[je]),rt(Xe),mt&&mt(!nt,xe),ht&&ht(Xe)},[et,Ye,Se,mt,ht]),ct=n.useState(0),Mt=Object(S.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(I.b)(Object(x.a)(Object(x.a)(Object(x.a)({},s),Ae),{},{expandable:!!dt,expandedKeys:Ye,getRowKey:et,onTriggerExpand:ut,expandIcon:vt,expandIconColumnIndex:Et,direction:G}),Ie===Le?we:null),Yt=Object(S.a)(vn,2),zt=Yt[0],ze=Yt[1],At=n.useMemo(function(){return{columns:zt,flattenColumns:ze}},[zt,ze]),kt=n.useRef(),Qt=n.useRef(),ft=n.useRef(),bn=n.useState(!1),Zt=Object(S.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(S.a)(gn,2),tn=en[0],Cn=en[1],yn=h(new Map),nn=Object(S.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(g.a)(ze),an=jn.map(function(xe){return On.get(xe)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=oe(on,ze.length,G),lt=A&&Object(g.d)(A.y),it=A&&Object(g.d)(A.x),yt=it&&ze.some(function(xe){var je=xe.fixed;return je}),rn=n.useRef(),wt=ve(Ze,M),Ot=wt.isSticky,Rn=wt.offsetHeader,Nn=wt.offsetScroll,Sn=wt.stickyClassName,Wt,Ut,Bt;lt&&(Ut={overflowY:"scroll",maxHeight:A.y}),it&&(Wt={overflowX:"auto"},lt||(Ut={overflowY:"hidden"}),Bt={width:A.x===!0?"auto":A.x,minWidth:"100%"});var ln=n.useCallback(function(xe,je){xn(function(Xe){var nt=new Map(Xe);return nt.set(xe,je),nt})},[]),Tn=Q(null),sn=Object(S.a)(Tn,2),Dn=sn[0],dn=sn[1];function Ft(xe,je){if(!je)return;typeof je=="function"?je(xe):je.scrollLeft!==xe&&(je.scrollLeft=xe)}var bt=function(je){var Xe=je.currentTarget,nt=je.scrollLeft,xt=typeof nt=="number"?nt:Xe.scrollLeft,pn=Xe||Fe;if(!dn()||dn()===pn){var Jt;Dn(pn),Ft(xt,Qt.current),Ft(xt,ft.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Xe){var Un=Xe.scrollWidth,In=Xe.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(x.a)(l),Object(x.a)(f(v).map(function(g){return Object(te.a)({fixed:y},g)}))):[].concat(Object(x.a)(l),[Object(te.a)(Object(te.a)({},R),{},{fixed:y})])},[])}function w(r){for(var l=!0,R=0;R=0;v-=1){var g=r[v];if(y&&g.fixed!=="right")y=!1;else if(!y&&g.fixed==="right"){Object(le.a)(!1,"Index ".concat(v+1," of `columns` missing `fixed='right'` prop."));break}}}function F(r){return r.map(function(l){var R=l.fixed,u=Object(ie.a)(l,["fixed"]),y=R;return R==="left"?y="right":R==="right"&&(y="left"),Object(te.a)({fixed:y},u)})}function O(r,l){var R=r.prefixCls,u=r.columns,y=r.children,v=r.expandable,g=r.expandedKeys,z=r.getRowKey,m=r.onTriggerExpand,b=r.expandIcon,C=r.rowExpandable,a=r.expandIconColumnIndex,o=r.direction,t=r.expandRowByClick,i=S.useMemo(function(){return u||se(y)},[u,y]),d=S.useMemo(function(){if(v){var E,L=a||0,$=i[L],q=(E={},Object(j.a)(E,c.a,{className:"".concat(R,"-expand-icon-col")}),Object(j.a)(E,"title",""),Object(j.a)(E,"fixed",$?$.fixed:null),Object(j.a)(E,"className","".concat(R,"-row-expand-icon-cell")),Object(j.a)(E,"render",function(_,ae,ce){var be=z(ae,ce),fe=g.has(be),U=C?C(ae):!0,I=b({prefixCls:R,expanded:fe,expandable:U,record:ae,onExpand:m});return t?S.createElement("span",{onClick:function(k){return k.stopPropagation()}},I):I}),E),Ce=i.slice();return L>=0&&Ce.splice(L,0,q),Ce}return i},[v,i,z,g,b,o]),p=S.useMemo(function(){var E=d;return l&&(E=l(E)),E.length||(E=[{render:function(){return null}}]),E},[l,d,o]),H=S.useMemo(function(){return o==="rtl"?F(f(p)):f(p)},[p,o]);return[p,H]}W.b=O},"y0+3":function(Te,W,e){"use strict";e.d(W,"a",function(){return f}),e.d(W,"b",function(){return F});var j=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},te={cssFloat:1,styleFloat:1,float:1};function ie(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function S(O,r,l){if(r=r.toLowerCase(),l==="auto"){if(r==="height")return O.offsetHeight;if(r==="width")return O.offsetWidth}return r in x||(x[r]=j.test(r)),x[r]?parseFloat(l)||0:l}function n(O,r){var l=arguments.length,R=ie(O);return r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,l===1?R:S(O,r,R[r]||O.style[r])}function le(O,r,l){var R=arguments.length;if(r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,R===3)return typeof l=="number"&&j.test(r)&&(l="".concat(l,"px")),O.style[r]=l,l;for(var u in r)r.hasOwnProperty(u)&&le(O,u,r[u]);return ie(O)}function B(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function c(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function se(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:r}}function f(){var O=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:r}}function w(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(O){var r=O.getBoundingClientRect(),l=document.documentElement;return{left:r.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +`,H=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],E={},L;function $(U){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=U.getAttribute("id")||U.getAttribute("data-reactid")||U.getAttribute("name");if(I&&E[J])return E[J];var W=window.getComputedStyle(U),h=W.getPropertyValue("box-sizing")||W.getPropertyValue("-moz-box-sizing")||W.getPropertyValue("-webkit-box-sizing"),Q=parseFloat(W.getPropertyValue("padding-bottom"))+parseFloat(W.getPropertyValue("padding-top")),X=parseFloat(W.getPropertyValue("border-bottom-width"))+parseFloat(W.getPropertyValue("border-top-width")),oe=H.map(function(ee){return"".concat(ee,":").concat(W.getPropertyValue(ee))}).join(";"),ue={sizingStyle:oe,paddingSize:Q,borderSize:X,boxSizing:h};return I&&J&&(E[J]=ue),ue}function q(U){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;L||(L=document.createElement("textarea"),L.setAttribute("tab-index","-1"),L.setAttribute("aria-hidden","true"),document.body.appendChild(L)),U.getAttribute("wrap")?L.setAttribute("wrap",U.getAttribute("wrap")):L.removeAttribute("wrap");var h=$(U,I),Q=h.paddingSize,X=h.borderSize,oe=h.boxSizing,ue=h.sizingStyle;L.setAttribute("style","".concat(ue,";").concat(p)),L.value=U.value||U.placeholder||"";var ee=Number.MIN_SAFE_INTEGER,de=Number.MAX_SAFE_INTEGER,Oe=L.scrollHeight,he;if(oe==="border-box"?Oe+=X:oe==="content-box"&&(Oe-=Q),J!==null||W!==null){L.value=" ";var De=L.scrollHeight-Q;J!==null&&(ee=De*J,oe==="border-box"&&(ee=ee+Q+X),Oe=Math.max(ee,Oe)),W!==null&&(de=De*W,oe==="border-box"&&(de=de+Q+X),he=Oe>de?"":"hidden",Oe=Math.min(de,Oe))}return{height:Oe,minHeight:ee,maxHeight:de,overflowY:he,resize:"none"}}var Ce=e("Gytx"),Z=e.n(Ce),_;(function(U){U[U.NONE=0]="NONE",U[U.RESIZING=1]="RESIZING",U[U.RESIZED=2]="RESIZED"})(_||(_={}));var ae=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(W){var h;return Object(x.a)(this,J),h=I.call(this,W),h.nextFrameActionId=void 0,h.resizeFrameId=void 0,h.textArea=void 0,h.saveTextArea=function(Q){h.textArea=Q},h.handleResize=function(Q){var X=h.state.resizeStatus,oe=h.props,ue=oe.autoSize,ee=oe.onResize;if(X!==_.NONE)return;typeof ee=="function"&&ee(Q),ue&&h.resizeOnNextFrame()},h.resizeOnNextFrame=function(){cancelAnimationFrame(h.nextFrameActionId),h.nextFrameActionId=requestAnimationFrame(h.resizeTextarea)},h.resizeTextarea=function(){var Q=h.props.autoSize;if(!Q||!h.textArea)return;var X=Q.minRows,oe=Q.maxRows,ue=q(h.textArea,!1,X,oe);h.setState({textareaStyles:ue,resizeStatus:_.RESIZING},function(){cancelAnimationFrame(h.resizeFrameId),h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.RESIZED},function(){h.resizeFrameId=requestAnimationFrame(function(){h.setState({resizeStatus:_.NONE}),h.fixFirefoxAutoScroll()})})})})},h.renderTextArea=function(){var Q=h.props,X=Q.prefixCls,oe=X===void 0?"rc-textarea":X,ue=Q.autoSize,ee=Q.onResize,de=Q.className,Oe=Q.disabled,he=h.state,De=he.textareaStyles,We=he.resizeStatus,Ne=Object(t.a)(h.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),pe=d()(oe,de,Object(B.a)({},"".concat(oe,"-disabled"),Oe));"value"in Ne&&(Ne.value=Ne.value||"");var ve=Object(le.a)(Object(le.a)(Object(le.a)({},h.props.style),De),We===_.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:h.handleResize,disabled:!(ue||ee)},n.createElement("textarea",Object(j.a)({},Ne,{className:pe,style:ve,ref:h.saveTextArea})))},h.state={textareaStyles:{},resizeStatus:_.NONE},h}return Object(te.a)(J,[{key:"componentDidUpdate",value:function(h){(h.value!==this.props.value||!Z()(h.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var h=this.textArea.selectionStart,Q=this.textArea.selectionEnd;this.textArea.setSelectionRange(h,Q)}}catch(X){}}},{key:"render",value:function(){return this.renderTextArea()}}]),J}(n.Component),ce=ae,be=function(U){Object(ie.a)(J,U);var I=Object(S.a)(J);function J(W){var h;Object(x.a)(this,J),h=I.call(this,W),h.resizableTextArea=void 0,h.focus=function(){h.resizableTextArea.textArea.focus()},h.saveTextArea=function(X){h.resizableTextArea=X},h.handleChange=function(X){var oe=h.props.onChange;h.setValue(X.target.value,function(){h.resizableTextArea.resizeTextarea()}),oe&&oe(X)},h.handleKeyDown=function(X){var oe=h.props,ue=oe.onPressEnter,ee=oe.onKeyDown;X.keyCode===13&&ue&&ue(X),ee&&ee(X)};var Q=typeof W.value=="undefined"||W.value===null?W.defaultValue:W.value;return h.state={value:Q},h}return Object(te.a)(J,[{key:"setValue",value:function(h,Q){"value"in this.props||this.setState({value:h},Q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(ce,Object(j.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(h){return"value"in h?{value:h.value}:null}}]),J}(n.Component),fe=k.default=be},ZpRC:function(Te,k,e){"use strict";function j(f){return typeof f=="object"&&f!=null&&f.nodeType===1}function x(f,w){return(!w||f!=="hidden")&&f!=="visible"&&f!=="clip"}function te(f,w){if(f.clientHeightw||l>f&&R=w&&u>=F?l-f-O:R>w&&uF?R-w+r:0}var S=function(f,w){var F=window,O=w.scrollMode,r=w.block,l=w.inline,R=w.boundary,u=w.skipOverflowHiddenElements,y=typeof R=="function"?R:function(De){return De!==R};if(!j(f))throw new TypeError("Invalid target");for(var v=document.scrollingElement||document.documentElement,g=[],z=f;j(z)&&y(z);){if((z=z.parentElement)===v){g.push(z);break}z!=null&&z===document.body&&te(z)&&!te(document.documentElement)||z!=null&&te(z,u)&&g.push(z)}for(var m=F.visualViewport?F.visualViewport.width:innerWidth,b=F.visualViewport?F.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,a=window.scrollY||pageYOffset,o=f.getBoundingClientRect(),t=o.height,i=o.width,d=o.top,p=o.right,H=o.bottom,E=o.left,L=r==="start"||r==="nearest"?d:r==="end"?H:d+t/2,$=l==="center"?E+i/2:l==="end"?p:E,q=[],Ce=0;Ce=0&&E>=0&&H<=b&&p<=m&&d>=be&&H<=U&&E>=I&&p<=fe)return q;var J=getComputedStyle(Z),W=parseInt(J.borderLeftWidth,10),h=parseInt(J.borderTopWidth,10),Q=parseInt(J.borderRightWidth,10),X=parseInt(J.borderBottomWidth,10),oe=0,ue=0,ee="offsetWidth"in Z?Z.offsetWidth-Z.clientWidth-W-Q:0,de="offsetHeight"in Z?Z.offsetHeight-Z.clientHeight-h-X:0;if(v===Z)oe=r==="start"?L:r==="end"?L-b:r==="nearest"?ie(a,a+b,b,h,X,a+L,a+L+t,t):L-b/2,ue=l==="start"?$:l==="center"?$-m/2:l==="end"?$-m:ie(C,C+m,m,W,Q,C+$,C+$+i,i),oe=Math.max(0,oe+a),ue=Math.max(0,ue+C);else{oe=r==="start"?L-be-h:r==="end"?L-U+X+de:r==="nearest"?ie(be,U,ae,h,X+de,L,L+t,t):L-(be+ae/2)+de/2,ue=l==="start"?$-I-W:l==="center"?$-(I+ce/2)+ee/2:l==="end"?$-fe+Q+ee:ie(I,fe,ce,W,Q+ee,$,$+i,i);var Oe=Z.scrollLeft,he=Z.scrollTop;L+=he-(oe=Math.max(0,Math.min(he+oe,Z.scrollHeight-ae+de))),$+=Oe-(ue=Math.max(0,Math.min(Oe+ue,Z.scrollWidth-ce+ee)))}q.push({el:Z,top:oe,left:ue})}return q};function n(f){return f===Object(f)&&Object.keys(f).length!==0}function le(f,w){w===void 0&&(w="auto");var F="scrollBehavior"in document.body.style;f.forEach(function(O){var r=O.el,l=O.top,R=O.left;r.scroll&&F?r.scroll({top:l,left:R,behavior:w}):(r.scrollTop=l,r.scrollLeft=R)})}function B(f){return f===!1?{block:"end",inline:"nearest"}:n(f)?f:{block:"start",inline:"nearest"}}function c(f,w){var F=!f.ownerDocument.documentElement.contains(f);if(n(w)&&typeof w.behavior=="function")return w.behavior(F?[]:S(f,w));if(F)return;var O=B(w);return le(S(f,O),O.behavior)}var se=k.a=c},bT9E:function(Te,k,e){"use strict";e.d(k,"a",function(){return x});var j=e("VTBJ");function x(te,ie){var S=Object(j.a)({},te);return Array.isArray(ie)&&ie.forEach(function(n){delete S[n]}),S}},biw7:function(Te,k,e){"use strict";var j=e("q1tI"),x=e.n(j),te=j.createContext(null);k.a=te},epD4:function(Te,k,e){"use strict";e.r(k);var j=e("5NDa"),x=e("5rEg"),te=e("g9YV"),ie=e("wCAj"),S=e("14J3"),n=e("BMrR"),le=e("+L6B"),B=e("2/Rp"),c=e("k1fw"),se=e("2qtc"),f=e("kLXV"),w=e("9og8"),F=e("y8nQ"),O=e("Vl3Y"),r=e("tJVT"),l=e("PpiC"),R=e("WmNS"),u=e.n(R),y=e("q1tI"),v=e.n(y),g=e("9kvl"),z=e("ErOA"),m=e("wd/R"),b=e.n(m);b.a.locale("ZH-cn");var C=function(o){var t=o.classroomList,i=o.globalSetting,d=o.loading,p=o.user,H=o.dispatch,E=Object(l.a)(o,["classroomList","globalSetting","loading","user","dispatch"]),L=Object(y.useState)(),$=Object(r.a)(L,2),q=$[0],Ce=$[1],Z=Object(y.useState)(1),_=Object(r.a)(Z,2),ae=_[0],ce=_[1],be=Object(y.useState)(null),fe=Object(r.a)(be,2),U=fe[0],I=fe[1],J=Object(y.useState)(!0),W=Object(r.a)(J,2),h=W[0],Q=W[1],X=Object(y.useState)(20),oe=Object(r.a)(X,2),ue=oe[0],ee=oe[1],de=Object(y.useState)(117),Oe=Object(r.a)(de,2),he=Oe[0],De=Oe[1],We=Object(y.useState)(!1),Ne=Object(r.a)(We,2),pe=Ne[0],ve=Ne[1],Be=O.a.useForm(),Fe=Object(r.a)(Be,1),Le=Fe[0];Object(y.useEffect)(function(){Ve()},[ae]);function Ve(K){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(w.a)(u.a.mark(function K(V){var N,D;return u.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return Q(!0),N=V||ae,A.next=4,Object(z.a)("/api/school_portals/assets.json",{method:"get",params:{page:N,per_page:ue,school_id:he}});case 4:D=A.sent,D.assets&&Ce(D),Q(!1);case 7:case"end":return A.stop()}},K)})),Ue.apply(this,arguments)}var ot=function(V,N){f.a.confirm({centered:!0,width:424,okText:"\u786E\u5B9A\u5220\u9664",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u8D44\u6E90",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u8D44\u6E90\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u9700\u8981\u5220\u9664\u300A".concat(V,"\u300B\u8D44\u6E90\uFF1F"),onOk:function(){var D=Object(w.a)(u.a.mark(function A(){var Y,G,ne;return u.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,Object(z.a)("/api/school_portals/remove_assets.json",{method:"post",body:{asset_id:N,school_id:he}});case 2:Y=re.sent,Y.status===0&&(ne=(q==null||((G=q.assets)===null||G===void 0)?void 0:G.length)===1&&ae>1?ae-1:ae,Ve(ne));case 4:case"end":return re.stop()}},A)}));function P(){return D.apply(this,arguments)}return P}()})},s=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",key:"name",ellipsis:!0,width:50,render:function(V,N,D){return v.a.createElement("span",null,ue*(ae-1)+D+1)}},{title:"\u8D44\u6E90\u540D\u79F0",dataIndex:"content",align:"center",key:"content"},{title:"\u8D44\u6E90\u7C7B\u578B",dataIndex:"clazz",align:"center",key:"clazz"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",align:"center",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"remark",align:"center",key:"remark",ellipsis:!0,render:function(V,N,D){return v.a.createElement("span",null,v.a.createElement("a",{href:N.link,target:"_blank",style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u67E5\u770B"),(N==null?void 0:N.can_edit)&&v.a.createElement("span",{onClick:function(){Le.setFieldsValue({content:N.content,link:N.link,clazz:N.clazz}),ve(!0),I(N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}},"\u7F16\u8F91"),v.a.createElement("span",{onClick:function(){ot(N.content,N.id)},style:{cursor:"pointer",color:"#0152d9",margin:"0 5px"}}," \u5220\u9664"))}}],T=function(){Le.resetFields(),I(null),ve(!1)},M=function(){var K=Object(w.a)(u.a.mark(function V(N){var D,P;return u.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!U){Y.next=6;break}return Y.next=3,Object(z.a)("/api/school_portals/update_assets.json",{method:"post",body:Object(c.a)({asset_id:U,school_id:he},N)});case 3:return D=Y.sent,D.status===0&&(Ve(),T()),Y.abrupt("return");case 6:return Y.next=8,Object(z.a)("/api/school_portals/add_assets.json",{method:"post",body:Object(c.a)({school_id:he},N)});case 8:P=Y.sent,P.status===0&&(ce(1),Ve(1),T());case 10:case"end":return Y.stop()}},V)}));return function(N){return K.apply(this,arguments)}}();return v.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px",marginTop:"40px",marginBottom:"20px"}},v.a.createElement(n.a,{justify:"space-between",align:"middle",className:"mb20"},v.a.createElement("span",{className:"ml15"},"\u5171",q==null?void 0:q.total_count,"\u4E2A\u5176\u4ED6\u5E73\u53F0\u8D44\u6E90"),v.a.createElement(B.a,{onClick:function(){ve(!0),I(null)},type:"primary"},"\u65B0\u5EFA\u8D44\u6E90")),v.a.createElement(ie.a,{className:"table-layout",columns:s,loading:h,dataSource:q==null?void 0:q.assets,pagination:{hideOnSinglePage:!0,pageSize:ue,showSizeChanger:!1,current:ae,position:["bottomCenter"],onChange:function(V,N){ce(V)},total:q==null?void 0:q.total_count}}),v.a.createElement(f.a,{title:U?"\u7F16\u8F91\u8D44\u6E90":"\u65B0\u5EFA\u8D44\u6E90",visible:pe,width:500,centered:!0,okText:U?"\u786E\u8BA4\u7F16\u8F91":"\u786E\u8BA4\u65B0\u5EFA",cancelText:"\u53D6\u6D88",onOk:function(){return Le.submit()},onCancel:T},v.a.createElement(O.a,{form:Le,onFinish:M},v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u540D\u79F0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0"},{max:40,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519940\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:40})),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u94FE\u63A5",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u94FE\u63A5"}]},v.a.createElement(x.a,null)),v.a.createElement(O.a.Item,{label:"\u8D44\u6E90\u7C7B\u578B",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u7C7B\u578B"},{max:10,message:"\u8D44\u6E90\u540D\u79F0\u6700\u591A\u586B\u519910\u4E2A\u5B57\u7B26"}]},v.a.createElement(x.a,{maxLength:10})))))};k.default=Object(g.a)(function(a){var o=a.classroomList,t=a.loading,i=a.globalSetting,d=a.user;return{classroomList:o,globalSetting:i,loading:t.models.classroomList,user:d}})(C)},fyJ8:function(Te,k,e){"use strict";var j=e("rePB"),x=e("VTBJ"),te=e("Ff2n"),ie=e("U8pU"),S=e("q1tI"),n=e.n(S),le=e("TSYQ"),B=e.n(le),c=e("c+Xe"),se=e("sR1s");function f(l){return l&&Object(ie.a)(l)==="object"&&!Array.isArray(l)&&!S.isValidElement(l)}function w(l){return typeof l=="string"?!0:Object(c.c)(l)}function F(l,R){var u,y=l.prefixCls,v=l.className,g=l.record,z=l.index,m=l.dataIndex,b=l.render,C=l.children,a=l.component,o=a===void 0?"td":a,t=l.colSpan,i=l.rowSpan,d=l.fixLeft,p=l.fixRight,H=l.firstFixLeft,E=l.lastFixLeft,L=l.firstFixRight,$=l.lastFixRight,q=l.appendNode,Ce=l.additionalProps,Z=Ce===void 0?{}:Ce,_=l.ellipsis,ae=l.align,ce=l.rowType,be=l.isSticky,fe="".concat(y,"-cell"),U,I;if(C)I=C;else{var J=Object(se.b)(g,m);if(I=J,b){var W=b(J,g,z);f(W)?(I=W.children,U=W.props):I=W}}Object(ie.a)(I)==="object"&&!Array.isArray(I)&&!S.isValidElement(I)&&(I=null),_&&(E||L)&&(I=S.createElement("span",{className:"".concat(fe,"-content")},I));var h=U||{},Q=h.colSpan,X=h.rowSpan,oe=h.style,ue=h.className,ee=Object(te.a)(h,["colSpan","rowSpan","style","className"]),de=Q!==void 0?Q:t,Oe=X!==void 0?X:i;if(de===0||Oe===0)return null;var he={},De=typeof d=="number",We=typeof p=="number";De&&(he.position="sticky",he.left=d),We&&(he.position="sticky",he.right=p);var Ne={};ae&&(Ne.textAlign=ae);var pe,ve=_===!0?{showTitle:!0}:_;ve&&(ve.showTitle||ce==="header")&&(typeof I=="string"||typeof I=="number"?pe=I.toString():S.isValidElement(I)&&typeof I.props.children=="string"&&(pe=I.props.children));var Be=Object(x.a)(Object(x.a)(Object(x.a)({title:pe},ee),Z),{},{colSpan:de&&de!==1?de:null,rowSpan:Oe&&Oe!==1?Oe:null,className:B()(fe,v,(u={},Object(j.a)(u,"".concat(fe,"-fix-left"),De),Object(j.a)(u,"".concat(fe,"-fix-left-first"),H),Object(j.a)(u,"".concat(fe,"-fix-left-last"),E),Object(j.a)(u,"".concat(fe,"-fix-right"),We),Object(j.a)(u,"".concat(fe,"-fix-right-first"),L),Object(j.a)(u,"".concat(fe,"-fix-right-last"),$),Object(j.a)(u,"".concat(fe,"-ellipsis"),_),Object(j.a)(u,"".concat(fe,"-with-append"),q),Object(j.a)(u,"".concat(fe,"-fix-sticky"),(De||We)&&be),u),Z.className,ue),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},Z.style),Ne),he),oe),ref:w(o)?R:null});return S.createElement(o,Object.assign({},Be),q,I)}var O=S.forwardRef(F);O.displayName="Cell";var r=S.memo(O,function(l,R){return R.shouldCellUpdate?!R.shouldCellUpdate(R.record,l.record):!1});k.a=r},hW8S:function(Te,k,e){"use strict";e.d(k,"a",function(){return ie}),e.d(k,"c",function(){return S}),e.d(k,"b",function(){return n});var j=e("VTBJ"),x=e("Ff2n"),te=e("Kwbf"),ie="RC_TABLE_INTERNAL_COL_DEFINE";function S(le){var B=le.expandable,c=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(j.a)(Object(j.a)({},c),B):c}function n(le){return Object.keys(le).reduce(function(B,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(B[c]=le[c]),B},{})}},n6Qo:function(Te,k,e){"use strict";e.d(k,"a",function(){return B});var j=e("q1tI"),x=e("biw7"),te=e("fyJ8");function ie(c){var se=c.className,f=c.index,w=c.children,F=c.colSpan,O=c.rowSpan,r=j.useContext(x.a),l=r.prefixCls,R=r.fixedInfoList,u=R[f];return j.createElement(te.a,Object.assign({className:se,index:f,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:w,props:{colSpan:F,rowSpan:O}}}},u))}function S(c){return j.createElement("tr",Object.assign({},c))}function n(c){var se=c.children,f=j.useContext(x.a),w=f.prefixCls;return j.createElement("tfoot",{className:"".concat(w,"-summary")},se)}var le=k.b=n,B={Cell:ie,Row:S}},sR1s:function(Te,k,e){"use strict";e.d(k,"b",function(){return ie}),e.d(k,"a",function(){return S}),e.d(k,"c",function(){return n}),e.d(k,"d",function(){return le});var j=e("U8pU"),x="RC_TABLE_KEY";function te(B){return B==null?[]:Array.isArray(B)?B:[B]}function ie(B,c){if(!c&&typeof c!="number")return B;for(var se=te(c),f=B,w=0;w1)Object(se.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(v.length===0)return Object(se.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=v[0];if(n.isValidElement(g)&&Object(f.c)(g)){var z=g.ref;v[0]=n.cloneElement(g,{ref:Object(f.a)(z,this.setChildNode)})}return v.length===1?v[0]:v.map(function(m,b){return!n.isValidElement(m)||"key"in m&&m.key!==null?m:n.cloneElement(m,{key:"".concat(F,"-").concat(b)})})}}]),R}(n.Component);O.displayName="ResizeObserver",k.a=O},wCXF:function(Te,k,e){"use strict";e.d(k,"a",function(){return Le});var j=e("rePB"),x=e("VTBJ"),te=e("KQm4"),ie=e("U8pU"),S=e("ODXe"),n=e("q1tI"),le=e("TSYQ"),B=e.n(le),c=e("Gytx"),se=e.n(c),f=e("Kwbf"),w=e("t23M"),F=e("qx4F"),O=e("6eGT"),r=e("IBYe"),l=e("Ff2n"),R=e("c+Xe"),u=e("fyJ8"),y=e("biw7");function v(s,T,M,K,V){var N=M[s]||{},D=M[T]||{},P,A;N.fixed==="left"?P=K.left[s]:D.fixed==="right"&&(A=K.right[T]);var Y=!1,G=!1,ne=!1,me=!1,re=M[T+1],ge=M[s-1];if(V==="rtl"){if(P!==void 0){var Me=ge&&ge.fixed==="left";me=!Me}else if(A!==void 0){var Re=re&&re.fixed==="right";ne=!Re}}else if(P!==void 0){var Pe=re&&re.fixed==="left";Y=!Pe}else if(A!==void 0){var Ee=ge&&ge.fixed==="right";G=!Ee}return{fixLeft:P,fixRight:A,lastFixLeft:Y,firstFixRight:G,lastFixRight:ne,firstFixLeft:me,isSticky:K.isSticky}}var g=e("sR1s");function z(s){var T=s.cells,M=s.stickyOffsets,K=s.flattenColumns,V=s.rowComponent,N=s.cellComponent,D=s.onHeaderRow,P=s.index,A=n.useContext(y.a),Y=A.prefixCls,G=A.direction,ne;D&&(ne=D(T.map(function(re){return re.column}),P));var me=Object(g.a)(T.map(function(re){return re.column}));return n.createElement(V,Object.assign({},ne),T.map(function(re,ge){var Me=re.column,Re=v(re.colStart,re.colEnd,K,M,G),Pe;return Me&&Me.onHeaderCell&&(Pe=re.column.onHeaderCell(Me)),n.createElement(u.a,Object.assign({},re,{ellipsis:Me.ellipsis,align:Me.align,component:N,prefixCls:Y,key:me[ge]},Re,{additionalProps:Pe,rowType:"header"}))}))}z.displayName="HeaderRow";var m=z;function b(s){var T=[];function M(D,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;T[A]=T[A]||[];var Y=P,G=D.filter(Boolean).map(function(ne){var me={key:ne.key,className:ne.className||"",children:ne.title,column:ne,colStart:Y},re=1,ge=ne.children;return ge&&ge.length>0&&(re=M(ge,Y,A+1).reduce(function(Me,Re){return Me+Re},0),me.hasSubColumns=!0),"colSpan"in ne&&(re=ne.colSpan),"rowSpan"in ne&&(me.rowSpan=ne.rowSpan),me.colSpan=re,me.colEnd=me.colStart+re-1,T[A].push(me),Y+=re,re});return G}M(s,0);for(var K=T.length,V=function(P){T[P].forEach(function(A){!("rowSpan"in A)&&!A.hasSubColumns&&(A.rowSpan=K-P)})},N=0;N=0;P-=1){var A=T[P],Y=M&&M[P],G=Y&&Y[o.a];(A||G||D)&&(V.unshift(n.createElement("col",Object.assign({key:P,style:{width:A,minWidth:A}},G))),D=!0)}return n.createElement("colgroup",null,V)}var i=t;function d(s,T){return Object(n.useMemo)(function(){for(var M=[],K=0;K1?Ye-1:0),ct=1;ct=ne&&(Ae=ne-me),D({scrollLeft:Ae/ne*(G+2)}),Ee.current.x=ye.pageX},$e=function(){var ye=Object(We.b)(N.current).top,ke=ye+N.current.offsetHeight,Je=document.documentElement.scrollTop+window.innerHeight;ke-Object(F.a)()<=Je||ye>=Je-P?Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):Pe(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Ke=function(ye){Pe(function(ke){return Object(x.a)(Object(x.a)({},ke),{},{scrollLeft:ye/G*ne||0})})};return n.useImperativeHandle(M,function(){return{setScrollLeft:Ke}}),n.useEffect(function(){var _e=Object(De.a)(document.body,"mouseup",Ze,!1),ye=Object(De.a)(document.body,"mousemove",qe,!1);return $e(),function(){_e.remove(),ye.remove()}},[me,we]),n.useEffect(function(){var _e=Object(De.a)(window,"scroll",$e,!1),ye=Object(De.a)(window,"resize",$e,!1);return function(){_e.remove(),ye.remove()}},[]),n.useEffect(function(){Re.isHiddenScrollBar||Pe(function(_e){var ye,ke;return Object(x.a)(Object(x.a)({},_e),{},{scrollLeft:N.current.scrollLeft/((ye=N.current)===null||ye===void 0?void 0:ye.scrollWidth)*((ke=N.current)===null||ke===void 0?void 0:ke.clientWidth)})})},[Re.isHiddenScrollBar]),G<=ne||!me||Re.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(F.a)(),width:ne,bottom:P},className:"".concat(Y,"-sticky-scroll")},n.createElement("div",{onMouseDown:Se,ref:re,className:B()("".concat(Y,"-sticky-scroll-bar"),Object(j.a)({},"".concat(Y,"-sticky-scroll-bar-active"),we)),style:{width:"".concat(me,"px"),transform:"translate3d(".concat(Re.scrollLeft,"px, 0, 0)")}}))},pe=n.forwardRef(Ne);function ve(s,T){return n.useMemo(function(){var M=!!s;return{isSticky:M,stickyClassName:M?"".concat(T,"-sticky-header"):"",offsetHeader:Object(ie.a)(s)==="object"&&s.offsetHeader||0,offsetScroll:Object(ie.a)(s)==="object"&&s.offsetScroll||0}},[s,T])}var Be=[],Fe={},Le="rc-table-internal-hook",Ve=n.memo(function(s){var T=s.children;return T},function(s,T){return se()(s.props,T.props)?s.pingLeft!==T.pingLeft||s.pingRight!==T.pingRight:!1});function Ue(s){var T,M=s.prefixCls,K=s.className,V=s.rowClassName,N=s.style,D=s.data,P=s.rowKey,A=s.scroll,Y=s.tableLayout,G=s.direction,ne=s.title,me=s.footer,re=s.summary,ge=s.id,Me=s.showHeader,Re=s.components,Pe=s.emptyText,Ee=s.onRow,Qe=s.onHeaderRow,Ie=s.internalHooks,we=s.transformColumns,He=s.internalRefs,Ze=s.sticky,Se=D||Be,qe=!!Se.length,$e=n.useState(0),Ke=Object(S.a)($e,2),_e=Ke[0],ye=Ke[1];n.useEffect(function(){ye(Object(F.a)())});var ke=n.useMemo(function(){return Object(g.c)(Re,{})},[Re]),Je=n.useCallback(function(xe,je){return Object(g.b)(ke,xe)||je},[ke]),et=n.useMemo(function(){return typeof P=="function"?P:function(xe){var je=xe&&xe[P];return je}},[P]),Ae=Object(o.c)(s),jt=Ae.expandIcon,Rt=Ae.expandedRowKeys,Nt=Ae.defaultExpandedRowKeys,st=Ae.defaultExpandAllRows,dt=Ae.expandedRowRender,mt=Ae.onExpand,ht=Ae.onExpandedRowsChange,St=Ae.expandRowByClick,at=Ae.rowExpandable,Et=Ae.expandIconColumnIndex,pt=Ae.expandedRowClassName,Kt=Ae.childrenColumnName,Tt=Ae.indentSize,vt=jt||Oe,gt=Kt||"children",Dt=n.useMemo(function(){return dt?"row":s.expandable&&Ie===Le&&s.expandable.__PARENT_RENDER_ICON__||Se.some(function(xe){return xe&&Object(ie.a)(xe)==="object"&&xe[gt]})?"nest":!1},[!!dt,Se]),Pt=n.useState(function(){return Nt||(st?he(Se,et,gt):[])}),Ge=Object(S.a)(Pt,2),tt=Ge[0],rt=Ge[1],Ye=n.useMemo(function(){return new Set(Rt||tt||[])},[Rt,tt]),ut=n.useCallback(function(xe){var je=et(xe,Se.indexOf(xe)),Xe,nt=Ye.has(je);nt?(Ye.delete(je),Xe=Object(te.a)(Ye)):Xe=[].concat(Object(te.a)(Ye),[je]),rt(Xe),mt&&mt(!nt,xe),ht&&ht(Xe)},[et,Ye,Se,mt,ht]),ct=n.useState(0),Mt=Object(S.a)(ct,2),Ct=Mt[0],_t=Mt[1],vn=Object(I.b)(Object(x.a)(Object(x.a)(Object(x.a)({},s),Ae),{},{expandable:!!dt,expandedKeys:Ye,getRowKey:et,onTriggerExpand:ut,expandIcon:vt,expandIconColumnIndex:Et,direction:G}),Ie===Le?we:null),Yt=Object(S.a)(vn,2),zt=Yt[0],ze=Yt[1],At=n.useMemo(function(){return{columns:zt,flattenColumns:ze}},[zt,ze]),Wt=n.useRef(),Qt=n.useRef(),ft=n.useRef(),bn=n.useState(!1),Zt=Object(S.a)(bn,2),qt=Zt[0],En=Zt[1],gn=n.useState(!1),en=Object(S.a)(gn,2),tn=en[0],Cn=en[1],yn=h(new Map),nn=Object(S.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(g.a)(ze),an=jn.map(function(xe){return On.get(xe)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=oe(on,ze.length,G),lt=A&&Object(g.d)(A.y),it=A&&Object(g.d)(A.x),yt=it&&ze.some(function(xe){var je=xe.fixed;return je}),rn=n.useRef(),wt=ve(Ze,M),Ot=wt.isSticky,Rn=wt.offsetHeader,Nn=wt.offsetScroll,Sn=wt.stickyClassName,kt,Ut,Bt;lt&&(Ut={overflowY:"scroll",maxHeight:A.y}),it&&(kt={overflowX:"auto"},lt||(Ut={overflowY:"hidden"}),Bt={width:A.x===!0?"auto":A.x,minWidth:"100%"});var ln=n.useCallback(function(xe,je){xn(function(Xe){var nt=new Map(Xe);return nt.set(xe,je),nt})},[]),Tn=Q(null),sn=Object(S.a)(Tn,2),Dn=sn[0],dn=sn[1];function Ft(xe,je){if(!je)return;typeof je=="function"?je(xe):je.scrollLeft!==xe&&(je.scrollLeft=xe)}var bt=function(je){var Xe=je.currentTarget,nt=je.scrollLeft,xt=typeof nt=="number"?nt:Xe.scrollLeft,pn=Xe||Fe;if(!dn()||dn()===pn){var Jt;Dn(pn),Ft(xt,Qt.current),Ft(xt,ft.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Xe){var Un=Xe.scrollWidth,In=Xe.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(x.a)(l),Object(x.a)(f(v).map(function(g){return Object(te.a)({fixed:y},g)}))):[].concat(Object(x.a)(l),[Object(te.a)(Object(te.a)({},R),{},{fixed:y})])},[])}function w(r){for(var l=!0,R=0;R=0;v-=1){var g=r[v];if(y&&g.fixed!=="right")y=!1;else if(!y&&g.fixed==="right"){Object(le.a)(!1,"Index ".concat(v+1," of `columns` missing `fixed='right'` prop."));break}}}function F(r){return r.map(function(l){var R=l.fixed,u=Object(ie.a)(l,["fixed"]),y=R;return R==="left"?y="right":R==="right"&&(y="left"),Object(te.a)({fixed:y},u)})}function O(r,l){var R=r.prefixCls,u=r.columns,y=r.children,v=r.expandable,g=r.expandedKeys,z=r.getRowKey,m=r.onTriggerExpand,b=r.expandIcon,C=r.rowExpandable,a=r.expandIconColumnIndex,o=r.direction,t=r.expandRowByClick,i=S.useMemo(function(){return u||se(y)},[u,y]),d=S.useMemo(function(){if(v){var E,L=a||0,$=i[L],q=(E={},Object(j.a)(E,c.a,{className:"".concat(R,"-expand-icon-col")}),Object(j.a)(E,"title",""),Object(j.a)(E,"fixed",$?$.fixed:null),Object(j.a)(E,"className","".concat(R,"-row-expand-icon-cell")),Object(j.a)(E,"render",function(_,ae,ce){var be=z(ae,ce),fe=g.has(be),U=C?C(ae):!0,I=b({prefixCls:R,expanded:fe,expandable:U,record:ae,onExpand:m});return t?S.createElement("span",{onClick:function(W){return W.stopPropagation()}},I):I}),E),Ce=i.slice();return L>=0&&Ce.splice(L,0,q),Ce}return i},[v,i,z,g,b,o]),p=S.useMemo(function(){var E=d;return l&&(E=l(E)),E.length||(E=[{render:function(){return null}}]),E},[l,d,o]),H=S.useMemo(function(){return o==="rtl"?F(f(p)):f(p)},[p,o]);return[p,H]}k.b=O},"y0+3":function(Te,k,e){"use strict";e.d(k,"a",function(){return f}),e.d(k,"b",function(){return F});var j=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},te={cssFloat:1,styleFloat:1,float:1};function ie(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function S(O,r,l){if(r=r.toLowerCase(),l==="auto"){if(r==="height")return O.offsetHeight;if(r==="width")return O.offsetWidth}return r in x||(x[r]=j.test(r)),x[r]?parseFloat(l)||0:l}function n(O,r){var l=arguments.length,R=ie(O);return r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,l===1?R:S(O,r,R[r]||O.style[r])}function le(O,r,l){var R=arguments.length;if(r=te[r]?"cssFloat"in O.style?"cssFloat":"styleFloat":r,R===3)return typeof l=="number"&&j.test(r)&&(l="".concat(l,"px")),O.style[r]=l,l;for(var u in r)r.hasOwnProperty(u)&&le(O,u,r[u]);return ie(O)}function B(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function c(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function se(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:r}}function f(){var O=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:r}}function w(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(O){var r=O.getBoundingClientRect(),l=document.documentElement;return{left:r.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__User__Detail__Shixuns__index.12da80be.async.js b/p__User__Detail__Shixuns__index.12da80be.async.js index 483ff01434..cac91134b1 100644 --- a/p__User__Detail__Shixuns__index.12da80be.async.js +++ b/p__User__Detail__Shixuns__index.12da80be.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[246,8,10],{"0eau":function(it,ne,n){"use strict";n.r(ne);var R=n("14J3"),O=n("BMrR"),Oe=n("jCWc"),y=n("kPKH"),r=n("sRBo"),p=n("kaz8"),re=n("5NDa"),q=n("5rEg"),N=n("cWXX"),Ee=n("/ezw"),ee=n("DjyN"),ge=n("NUBc"),Ce=n("qVdP"),G=n("jsC+"),j=n("lUTK"),E=n("BvKs"),Q=n("+L6B"),w=n("2/Rp"),z=n("7Kak"),Y=n("9yH6"),B=n("miYZ"),ue=n("tsqr"),T=n("2qtc"),D=n("kLXV"),U=n("k1fw"),h=n("oBTY"),d=n("9og8"),s=n("tJVT"),x=n("PpiC"),M=n("WmNS"),_=n.n(M),k=n("q1tI"),o=n.n(k),ae=n("Ty5D"),ye=n("55Ip"),xe=n("9kvl"),nt=n("9fAY"),me=n.n(nt),oe=n("BdwD"),Le=n("IzEo"),ze=n("bx4M"),Ve=n("5Dmo"),He=n("3S7+"),ie=n("HBuW"),ce=n("3sJ3"),se=n.n(ce),pe=n("m3rI"),L=n("1vsH"),I=function(P){var te=P.data,H=P.params,J=H===void 0?{}:H,Z=P.user,A=P.onCancelCollect,X=A===void 0?function(){}:A,be=P.onRemove,de=be===void 0?function(){}:be;return o.a.createElement(o.a.Fragment,null,te&&te.map(function($,Ue){var fe,je;return o.a.createElement("a",{className:se.a.wrap,key:$.id,onClick:Object(d.a)(_.a.mark(function st(){var Je,V;return _.a.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return ft.next=2,Object(ie.E)({id:$.identifier});case 2:V=ft.sent,V!=null&&(Je=V.exercise)!==null&&Je!==void 0&&Je.length?D.a.info({title:"\u8003\u8BD5\u573A\u666F\u544A\u77E5",content:o.a.createElement(O.a,null,o.a.createElement(y.a,null,"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u88AB\u8003\u8BD5\u8C03\u7528\uFF0C\u4E14\u60A8\u6B63\u5728\u53C2\u52A0\u672C\u6B21\u8003\u8BD5\u3002\u8003\u8BD5\u573A\u666F\u4E0B\u5FC5\u987B\u4ECE\u8BD5\u5377\u4E2D\u8FDB\u5165\u5E76\u7B54\u9898\uFF0C\u5426\u5219\u7B54\u9898\u7ED3\u679C\u4E0D\u8BA1\u5165\u6210\u7EE9\u3002\u8BF7\u70B9\u51FB\u8BD5\u5377\u540D\u79F0\u8FDB\u5165\u8003\u8BD5\u3002"),o.a.createElement(y.a,null,o.a.createElement("aside",{className:"mt10"},V==null?void 0:V.exercise.map(function(ht,Ke){return o.a.createElement("div",null,o.a.createElement("a",{href:"/classrooms/".concat(ht.course_id,"/exercise/").concat(ht.id,"/detail?random=").concat(ht.random)},ht.name))}))))}):Object(L.O)("/shixuns/".concat($.identifier,"/challenges"));case 4:case"end":return ft.stop()}},st)}))},o.a.createElement(ze.a,{className:"animated fadeIn ".concat(se.a.cardWrap)},J.category==="collect"&&o.a.createElement("div",{className:"".concat(se.a.action," user-shixun-items"),onClick:function(Je){Je.stopPropagation(),X($.id)}},o.a.createElement(He.a,{title:"\u53D6\u6D88\u6536\u85CF"},o.a.createElement("i",{className:"iconfont icon-shoucang3 font24 mr5 ".concat(se.a.colorFF8E02)}))),J.category==="study"&&J.username===((fe=Z.userInfo)===null||fe===void 0?void 0:fe.login)&&o.a.createElement("div",{className:"".concat(se.a.action," user-shixun-items"),onClick:function(Je){Je.stopPropagation(),de($.identifier)}},o.a.createElement(He.a,{title:"\u79FB\u9664"},o.a.createElement("i",{className:"iconfont icon-shanchu21 font24 mr5 c-white"}))),$.tag&&o.a.createElement("div",{className:se.a.tagWrap},o.a.createElement("span",{className:se.a.tagName},$.tag)),$.is_jupyter&&o.a.createElement("div",{className:se.a.tagJupyterWrap},o.a.createElement("p",{className:se.a.tagJupyterNameWrap},o.a.createElement("span",{className:se.a.tagJupyterName},"Jupyter"))),o.a.createElement("span",{className:se.a.imgWrap},$!=null&&$.cover_image_id?o.a.createElement("img",{alt:$.name,src:pe.a.API_SERVER+"/api/attachments/"+($==null?void 0:$.cover_image_id)}):o.a.createElement("img",{alt:$.name,src:"".concat(pe.a.IMG_SERVER,"/").concat($.image_url)})),o.a.createElement("div",{className:se.a.cardBottom},o.a.createElement("p",{className:se.a.bottomNameWrap},o.a.createElement("span",{className:se.a.bottomName},$.name||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),!!((je=$.schools)!==null&&je!==void 0&&je.length)&&o.a.createElement(He.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},o.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange"}))),!!$.challenges_count&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:se.a.bottomCountProgressWrap},o.a.createElement("p",{style:{width:"".concat(parseFloat(parseInt($.finished_challenges_count)/parseInt($.challenges_count)).toFixed(2)*100,"%")}})),o.a.createElement("p",{className:se.a.bottomCount},"\u5DF2\u5B8C\u6210 ",$.finished_challenges_count," / ",$.challenges_count)))))}))},ve=I,Xe=n("g9YV"),et=n("wCAj"),he=n("wd/R"),$e=n.n(he),gt=n("8Skl"),ct=function(P){var te=P.data,H=P.number,J=P.params,Z=P.user,A=P.isCurrent,X=P.onCancelCollect,be=X===void 0?function(){}:X,de=P.onRemove,$=de===void 0?function(){}:de,Ue=P.setGroupIds,fe=Ue===void 0?function(){}:Ue,je=P.setUnGrouplists,st=je===void 0?function(){}:je,Je=Object(k.useState)([]),V=Object(s.a)(Je,2),Se=V[0],ft=V[1];Object(k.useEffect)(function(){if(te){var Ke=[];te==null||te.map(function(ke,Ae){var Pe=ke;Pe.key=ke.id,Ke.push(Pe)}),ft([].concat(Ke))}},[te]);var ht=[{title:o.a.createElement("span",{className:"pl20"},"\u5E8F\u53F7"),dataIndex:"index",key:"index",width:72,render:function(ke,Ae,Pe){return o.a.createElement("span",{className:"pl20"},H+Pe+1)}},{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:296,key:"name",render:function(ke,Ae){var Pe;return o.a.createElement("p",{className:se.a.bottomNameWrap},o.a.createElement("span",null,ke||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"," ",!!((Pe=Ae.schools)!==null&&Pe!==void 0&&Pe.length)&&o.a.createElement(He.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},o.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange"}))))}},{title:"\u7BA1\u7406\u5458",dataIndex:"owner",key:"owner",width:96,ellipsis:!0,render:function(ke){return o.a.createElement(He.a,{title:ke||"--",placement:"bottomLeft"},o.a.createElement("span",null,ke||"--"))}},{title:"\u5408\u4F5C\u8005",dataIndex:"members",key:"members",width:132,ellipsis:!0,render:function(ke){return o.a.createElement(He.a,{title:ke.join("\u3001"),placement:"bottomLeft"},o.a.createElement("span",null,ke.join("\u3001")))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:144,render:function(ke){return $e()(ke).format("YYYY-MM-DD HH:mm")}},{title:"\u6700\u8FD1\u4FEE\u6539\u65F6\u95F4",dataIndex:"updated_at",width:144,key:"updated_at",render:function(ke){return $e()(ke).format("YYYY-MM-DD HH:mm")}},{title:"\u88AB\u5F15\u7528\u6B21\u6570",dataIndex:"used_count",width:100,key:"used_count"},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"created_at",key:"created_at",width:84,render:function(ke,Ae){return o.a.createElement("span",null,Ae.finished_challenges_count,"/",Ae.challenges_count)}},{title:"\u64CD\u4F5C",dataIndex:"name",key:"name",width:110,render:function(ke,Ae){var Pe;return o.a.createElement("div",null,o.a.createElement("span",{className:"c-blue current",onClick:function(){var Ze=Object(d.a)(_.a.mark(function Fe(Ne){var De,we;return _.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return Ne.stopPropagation(),yt.next=3,Object(ie.E)({id:Ae.identifier});case 3:we=yt.sent,we!=null&&(De=we.exercise)!==null&&De!==void 0&&De.length?D.a.info({title:"\u8003\u8BD5\u573A\u666F\u544A\u77E5",content:o.a.createElement(O.a,null,o.a.createElement(y.a,null,"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u88AB\u8003\u8BD5\u8C03\u7528\uFF0C\u4E14\u60A8\u6B63\u5728\u53C2\u52A0\u672C\u6B21\u8003\u8BD5\u3002\u8003\u8BD5\u573A\u666F\u4E0B\u5FC5\u987B\u4ECE\u8BD5\u5377\u4E2D\u8FDB\u5165\u5E76\u7B54\u9898\uFF0C\u5426\u5219\u7B54\u9898\u7ED3\u679C\u4E0D\u8BA1\u5165\u6210\u7EE9\u3002\u8BF7\u70B9\u51FB\u8BD5\u5377\u540D\u79F0\u8FDB\u5165\u8003\u8BD5\u3002"),o.a.createElement(y.a,null,o.a.createElement("aside",{className:"mt10"},we==null?void 0:we.exercise.map(function(Dt,At){return o.a.createElement("div",{key:At},o.a.createElement("a",{href:"/classrooms/".concat(Dt.course_id,"/exercise/").concat(Dt.id,"/detail?random=").concat(Dt.random)},Dt.name))}))))}):Object(L.O)("/shixuns/".concat(Ae.identifier,"/challenges"));case 5:case"end":return yt.stop()}},Fe)}));return function(Fe){return Ze.apply(this,arguments)}}()},"\u8BE6\u60C5"),J.category!="study"&&J.category!="collect"&&A&&o.a.createElement("span",{onClick:function(Fe){var Ne;if(Fe.stopPropagation(),(Ae==null||((Ne=Ae.groups)===null||Ne===void 0)?void 0:Ne.length)<=0){ue.b.info("\u8BE5\u5B9E\u8DF5\u9879\u76EE\u6682\u65E0\u5206\u7EC4");return}st(Ae.groups,Ae.id)},className:"c-blue current ml10"},"\u64A4\u9500\u5206\u7EC4"),J.category==="study"&&((Pe=Z.userInfo)===null||Pe===void 0?void 0:Pe.login)===J.username&&o.a.createElement(G.a,{overlay:o.a.createElement(E.a,null,o.a.createElement(E.a.Item,null,o.a.createElement("span",{onClick:function(Fe){Fe.stopPropagation(),D.a.confirm({content:"\u662F\u5426\u786E\u8BA4\u5220\u9664",onOk:function(){return $(Ae.identifier)}})},className:"ml10 current"},"\u5220\u9664")),o.a.createElement(E.a.Item,null,o.a.createElement("span",{onClick:function(Fe){var Ne;if(Fe.stopPropagation(),(Ae==null||((Ne=Ae.groups)===null||Ne===void 0)?void 0:Ne.length)<=0){ue.b.info("\u8BE5\u5B9E\u8DF5\u9879\u76EE\u6682\u65E0\u5206\u7EC4");return}st(Ae.groups,Ae.id)},className:" current"},"\u64A4\u9500\u5206\u7EC4")))},o.a.createElement("span",{onClick:function(Fe){Fe.stopPropagation()},className:"c-blue current ml10"},"\u66F4\u591A ",o.a.createElement(gt.a,null))),J.category==="collect"&&A&&o.a.createElement(G.a,{overlay:o.a.createElement(E.a,null,o.a.createElement(E.a.Item,null,o.a.createElement("span",{onClick:function(Fe){Fe.stopPropagation(),be(Ae.id)},className:"current"},"\u53D6\u6D88\u6536\u85CF")),o.a.createElement(E.a.Item,null,o.a.createElement("span",{onClick:function(Fe){var Ne;if(Fe.stopPropagation(),(Ae==null||((Ne=Ae.groups)===null||Ne===void 0)?void 0:Ne.length)<=0){ue.b.info("\u8BE5\u5B9E\u8DF5\u9879\u76EE\u6682\u65E0\u5206\u7EC4");return}st(Ae.groups,Ae.id)},className:" current"},"\u64A4\u9500\u5206\u7EC4")))},o.a.createElement("span",{onClick:function(Fe){Fe.stopPropagation()},className:"c-blue current ml10"},"\u66F4\u591A ",o.a.createElement(gt.a,null))))}}];return o.a.createElement(o.a.Fragment,null,A?o.a.createElement(et.a,{rowSelection:{type:"checkbox",columnWidth:25,onChange:function(ke,Ae){fe(ke)}},style:{cursor:"pointer"},onRow:function(ke){return{onClick:function(){var Ae=Object(d.a)(_.a.mark(function Ze(Fe){var Ne,De;return _.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,Object(ie.E)({id:ke.identifier});case 2:De=Qe.sent,De!=null&&(Ne=De.exercise)!==null&&Ne!==void 0&&Ne.length?D.a.info({title:"\u8003\u8BD5\u573A\u666F\u544A\u77E5",content:o.a.createElement(O.a,null,o.a.createElement(y.a,null,"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u88AB\u8003\u8BD5\u8C03\u7528\uFF0C\u4E14\u60A8\u6B63\u5728\u53C2\u52A0\u672C\u6B21\u8003\u8BD5\u3002\u8003\u8BD5\u573A\u666F\u4E0B\u5FC5\u987B\u4ECE\u8BD5\u5377\u4E2D\u8FDB\u5165\u5E76\u7B54\u9898\uFF0C\u5426\u5219\u7B54\u9898\u7ED3\u679C\u4E0D\u8BA1\u5165\u6210\u7EE9\u3002\u8BF7\u70B9\u51FB\u8BD5\u5377\u540D\u79F0\u8FDB\u5165\u8003\u8BD5\u3002"),o.a.createElement(y.a,null,o.a.createElement("aside",{className:"mt10"},De==null?void 0:De.exercise.map(function(yt,Dt){return o.a.createElement("div",{key:Dt},o.a.createElement("a",{href:"/classrooms/".concat(yt.course_id,"/exercise/").concat(yt.id,"/detail?random=").concat(yt.random)},yt.name))}))))}):Object(L.O)("/shixuns/".concat(ke.identifier,"/challenges"));case 4:case"end":return Qe.stop()}},Ze)}));function Pe(Ze){return Ae.apply(this,arguments)}return Pe}()}},className:"table-layout",pagination:!1,dataSource:Se,columns:ht}):o.a.createElement(et.a,{style:{cursor:"pointer"},onRow:function(ke){return{onClick:function(){var Ae=Object(d.a)(_.a.mark(function Ze(Fe){var Ne,De;return _.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,Object(ie.E)({id:ke.identifier});case 2:De=Qe.sent,De!=null&&(Ne=De.exercise)!==null&&Ne!==void 0&&Ne.length?D.a.info({title:"\u8003\u8BD5\u573A\u666F\u544A\u77E5",content:o.a.createElement(O.a,null,o.a.createElement(y.a,null,"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u88AB\u8003\u8BD5\u8C03\u7528\uFF0C\u4E14\u60A8\u6B63\u5728\u53C2\u52A0\u672C\u6B21\u8003\u8BD5\u3002\u8003\u8BD5\u573A\u666F\u4E0B\u5FC5\u987B\u4ECE\u8BD5\u5377\u4E2D\u8FDB\u5165\u5E76\u7B54\u9898\uFF0C\u5426\u5219\u7B54\u9898\u7ED3\u679C\u4E0D\u8BA1\u5165\u6210\u7EE9\u3002\u8BF7\u70B9\u51FB\u8BD5\u5377\u540D\u79F0\u8FDB\u5165\u8003\u8BD5\u3002"),o.a.createElement(y.a,null,o.a.createElement("aside",{className:"mt10"},De==null?void 0:De.exercise.map(function(yt,Dt){return o.a.createElement("div",{key:Dt},o.a.createElement("a",{href:"/classrooms/".concat(yt.course_id,"/exercise/").concat(yt.id,"/detail?random=").concat(yt.random)},yt.name))}))))}):Object(L.O)("/shixuns/".concat(ke.identifier,"/challenges"));case 4:case"end":return Qe.stop()}},Ze)}));function Pe(Ze){return Ae.apply(this,arguments)}return Pe}()}},className:"table-layout",pagination:!1,dataSource:Se,columns:ht}))},Nt=ct,Ut=n("LG5J"),Me=n.n(Ut),Ye=function(P){var te=P.params,H=te===void 0?{}:te,J=P.isCurrent,Z=P.handleChangeCategory,A=Z===void 0?function(){}:Z,X=P.handleChangeStatus,be=X===void 0?function(){}:X,de=P.setIsAdd,$=de===void 0?function(){}:de,Ue=P.GroupList;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Me.a.searchBar},o.a.createElement("li",{className:"".concat(Me.a.firstLi," ").concat(!H.category&&Me.a.active)},o.a.createElement("a",{onClick:function(){return A("")}},"\u5168\u90E8")),o.a.createElement("li",{className:"".concat(Me.a.otherLi," ").concat(H.category==="manage"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return A("manage")}},J?"\u6211":"TA","\u7BA1\u7406\u7684")),o.a.createElement("li",{className:"".concat(Me.a.otherLi," ").concat(H.category==="study"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return A("study")}},J?"\u6211":"TA","\u5B66\u4E60\u7684")),o.a.createElement("li",{className:"".concat(Me.a.otherLi," ").concat(H.category==="collect"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return A("collect")}},J?"\u6211":"TA","\u6536\u85CF\u7684")),J&&o.a.createElement("li",{style:{flex:"1",display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"0px 20px"}},o.a.createElement(w.a,{style:{width:"96px",height:"30px",borderRadius:"4px"},type:"primary",onClick:function(){var je;if((Ue==null||((je=Ue.groups)===null||je===void 0)?void 0:je.length)===20){ue.b.info("\u5206\u7EC4\u6570\u6700\u5927\u4E3A20");return}$(!0)}},"\u65B0\u5EFA\u5206\u7EC4"))),(H==null?void 0:H.category)==="manage"&&J&&o.a.createElement("div",{className:"".concat(Me.a.searchBar," ").concat(Me.a.searchBarBorder)},o.a.createElement("li",{className:"font14 ".concat(Me.a.firstLi," "),style:{width:"42px"}},o.a.createElement("a",null,"\u72B6\u6001\uFF1A")),o.a.createElement("li",{className:"font14 ".concat(Me.a.firstLi," ").concat(!H.status&&Me.a.active),style:{marginLeft:"10px"}},o.a.createElement("a",{onClick:function(){return be("")}},"\u5168\u90E8")),o.a.createElement("li",{className:"font14 ".concat(Me.a.otherLi," ").concat(H.status==="editing"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return be("editing")}},"\u7F16\u8F91\u4E2D")),o.a.createElement("li",{className:"font14 ".concat(Me.a.otherLi," ").concat(H.status==="applying"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return be("applying")}},"\u5F85\u5BA1\u6838")),o.a.createElement("li",{className:"font14 ".concat(Me.a.otherLi," ").concat(H.status==="published"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return be("published")}},"\u5DF2\u53D1\u5E03")),o.a.createElement("li",{className:"font14 ".concat(Me.a.otherLi," ").concat(H.status==="publiced"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return be("publiced")}},"\u5DF2\u516C\u5F00")),o.a.createElement("li",{className:"font14 ".concat(Me.a.otherLi," ").concat(H.status==="closed"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return be("closed")}},"\u5DF2\u5173\u95ED"))),((H==null?void 0:H.category)==="study"||(H==null?void 0:H.category)==="collect")&&J&&o.a.createElement("div",{className:"".concat(Me.a.searchBar," ").concat(Me.a.searchBarBorder)},o.a.createElement("li",{className:"font14 ".concat(Me.a.firstLi," "),style:{width:"42px"}},o.a.createElement("a",null,"\u72B6\u6001\uFF1A")),o.a.createElement("li",{className:"font14 ".concat(Me.a.firstLi," ").concat(!H.status&&Me.a.active),style:{marginLeft:"10px"}},o.a.createElement("a",{onClick:function(){return be("")}},"\u5168\u90E8")),o.a.createElement("li",{className:"font14 ".concat(Me.a.otherLi," ").concat(H.status==="processing"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return be("processing")}},"\u672A\u901A\u5173")),o.a.createElement("li",{className:"font14 ".concat(Me.a.otherLi," ").concat(H.status==="passed"&&Me.a.active)},o.a.createElement("a",{onClick:function(){return be("passed")}},"\u5DF2\u901A\u5173"))))},at=n("dhSg"),Xt=n("jb+D"),Lt=n("ErOA"),$t=n("SGC9"),vt=n.n($t),Wt=function(P){var te=P.dispatch,H=P.isPreviewSelect,J=H===void 0?!1:H,Z=P.groupIds,A=Z===void 0?[]:Z,X=P.item_banks_groups,be=P.getItem,de=be===void 0?function(){}:be,$=P.user,Ue=P.onChangeGroup,fe=Ue===void 0?function(){}:Ue,je=Object(k.useRef)(),st=function(Se){var ft,ht=X==null||((ft=X.find(function(Ke){return Ke.id===Se}))===null||ft===void 0)?void 0:ft.name;D.a.confirm({centered:!0,width:424,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u5206\u7EC4",content:o.a.createElement("div",{className:"font14"},"\u4F60\u6B63\u5728\u5220\u9664\u3010",ht,"\u3011\u5206\u7EC4\uFF0C\u672C\u64CD\u4F5C\u5C06\u5BFC\u81F4\u53EA\u52A0\u5165\u8BE5\u5206\u7EC4\u7684\u5B9E\u8BAD\u9879\u76EE\u91CD\u65B0\u5206\u914D\u5230\u3010\u672A\u5206\u7EC4\u3011\u5206\u7EC4\u4E2D",o.a.createElement("br",null),"\u786E\u8BA4\u5220\u9664\u5417\uFF1F"),onOk:function(){var Ke=Object(d.a)(_.a.mark(function Ae(){var Pe,Ze;return _.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,Object(Lt.a)("/api/users/".concat($==null||((Pe=$.userInfo)===null||Pe===void 0)?void 0:Pe.login,"/user_setting_groups/").concat(Se,".json"),{method:"Delete"});case 2:Ze=Ne.sent,(Ze==null?void 0:Ze.status)===0&&de();case 4:case"end":return Ne.stop()}},Ae)}));function ke(){return Ke.apply(this,arguments)}return ke}()})},Je=function(){var V=Object(d.a)(_.a.mark(function Se(ft){return _.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:je.current=ft.name,D.a.confirm({centered:!0,width:424,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u7F16\u8F91\u5206\u7EC4",icon:null,className:"custom-modal-divider",content:o.a.createElement("div",{className:"font14"},o.a.createElement(q.a,{maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",className:"mt10",defaultValue:je.current,onChange:function(Ae){return je.current=Ae.target.value}})),onOk:function(){return new Promise(function(){var Ae=Object(d.a)(_.a.mark(function Pe(Ze,Fe){var Ne,De;return _.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(je.current){Qe.next=3;break}return ue.b.info("\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0"),Qe.abrupt("return",Fe());case 3:return Qe.next=5,Object(Lt.a)("/api/users/".concat($==null||((Ne=$.userInfo)===null||Ne===void 0)?void 0:Ne.login,"/user_setting_groups/").concat(ft.id,".json"),{method:"put",body:{name:je==null?void 0:je.current}});case 5:De=Qe.sent,(De==null?void 0:De.status)===0&&de(),Ze();case 8:case"end":return Qe.stop()}},Pe)}));return function(Pe,Ze){return Ae.apply(this,arguments)}}())}});case 2:case"end":return Ke.stop()}},Se)}));return function(ft){return V.apply(this,arguments)}}();return!!(X!=null&&X.length)&&o.a.createElement("div",{className:vt.a.groupWrap},o.a.createElement("span",{className:"".concat(vt.a.minWidth43),style:{marginLeft:"25px"}},"\u5206\u7EC4\uFF1A"),o.a.createElement("span",null,o.a.createElement("li",{className:"mb10 mr5 ".concat(vt.a.minWidth48," ").concat(vt.a.directionItem," ").concat(A!=null&&A.length?"":vt.a.active),onClick:function(){return fe([])}},"\u5168\u90E8")),o.a.createElement("div",{className:vt.a.directionContentWrap},o.a.createElement("li",{className:"mb10 mr32 ".concat(vt.a.directionItem," ").concat(A!=null&&A.includes(-1)?vt.a.active:""),onClick:function(){return fe([-1])}},"\u672A\u52A0\u5165\u5206\u7EC4"),X==null?void 0:X.map(function(V){return o.a.createElement("div",{className:vt.a.directionItemWrap},o.a.createElement("li",{key:V.id,onClick:function(){return fe([V.id])},className:"".concat(vt.a.directionItem," mb10 ").concat(A!=null&&A.includes(V.id)?vt.a.active:"")},V.name),!J&&o.a.createElement("span",{className:vt.a.groupActionWrap},o.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(ft){ft.stopPropagation(),Je(V)}}),o.a.createElement("i",{className:"iconfont icon-shanchu4 mr1 c-red font15 current",onClick:function(ft){ft.stopPropagation(),st(V.id)}})))})))},bn=function(P){var te,H,J,Z,A=P.user,X=P.userDetail,be=P.globalSetting,de=P.loading,$=P.dispatch,Ue=Object(x.a)(P,["user","userDetail","globalSetting","loading","dispatch"]),fe=Object(ae.h)(),je=Object(k.useRef)(),st=Object(k.useState)({}),Je=Object(s.a)(st,2),V=Je[0],Se=Je[1],ft=Object(k.useState)(0),ht=Object(s.a)(ft,2),Ke=ht[0],ke=ht[1],Ae=Object(k.useState)([]),Pe=Object(s.a)(Ae,2),Ze=Pe[0],Fe=Pe[1],Ne=Object(k.useState)(),De=Object(s.a)(Ne,2),we=De[0],Qe=De[1],yt=Object(k.useState)(!1),Dt=Object(s.a)(yt,2),At=Dt[0],Bn=Dt[1],$n=Object(k.useState)([{label:o.a.createElement("span",{className:"icon-juxingfenbu font14"}),value:1},{label:o.a.createElement("span",{className:"icon-liebiaofenbu font14"}),value:2}]),Gn=Object(s.a)($n,2),dn=Gn[0],Pn=Gn[1],Fn=Object(k.useState)(parseInt(localStorage.getItem("ShixunShowType"))||1),Dn=Object(s.a)(Fn,2),An=Dn[0],sn=Dn[1],Jn=Object(k.useState)(!1),_n=Object(s.a)(Jn,2),Yn=_n[0],xn=_n[1],jn=Object(k.useState)(!1),wn=Object(s.a)(jn,2),ra=wn[0],Rn=wn[1],Jt=Object(k.useState)(!1),Zt=Object(s.a)(Jt,2),fn=Zt[0],Yt=Zt[1],ln=Object(k.useState)([]),mn=Object(s.a)(ln,2),qt=mn[0],Qn=mn[1],ia=Object(k.useState)([]),fa=Object(s.a)(ia,2),Ln=fa[0],Wn=fa[1],It=Object(k.useState)([]),Zn=Object(s.a)(It,2),Un=Zn[0],ma=Zn[1],En=Object(k.useState)(""),ya=Object(s.a)(En,2),pa=ya[0],sa=ya[1],Aa=Object(k.useState)([]),Oa=Object(s.a)(Aa,2),kn=Oa[0],qn=Oa[1],wa=Object(k.useState)([]),_a=Object(s.a)(wa,2),zn=_a[0],xa=_a[1],La=Object(k.useState)([]),gn=Object(s.a)(La,2),ea=gn[0],ja=gn[1],ha=Object(k.useState)([]),nn=Object(s.a)(ha,2),Cn=nn[0],pn=nn[1];Object(k.useEffect)(function(){var Te;je.current=(Te=fe.pathname.split("/"))===null||Te===void 0?void 0:Te[2];var _e={category:void 0,status:void 0,page:1,per_page:16,sort_by:"updated_at",sort_direction:"desc",username:je.current};Se(_e),hn(_e)},[fe.pathname]),Object(k.useEffect)(function(){var Te;Qe(((Te=A.userInfo)===null||Te===void 0?void 0:Te.login)===je.current)},[(te=A.userInfo)===null||te===void 0?void 0:te.login,je.current]),Object(k.useEffect)(function(){var Te;(Te=A.userInfo)!==null&&Te!==void 0&&Te.login&&ta()},[(H=A.userInfo)===null||H===void 0?void 0:H.login]);function ta(){return In.apply(this,arguments)}function In(){return In=Object(d.a)(_.a.mark(function Te(){var _e;return _.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.t0=Qn,mt.next=3,Object(Lt.a)("/api/users/".concat((_e=A.userInfo)===null||_e===void 0?void 0:_e.login,"/user_setting_groups.json"),{method:"Get",params:{type:"Shixun"}});case 3:mt.t1=mt.sent,(0,mt.t0)(mt.t1);case 5:case"end":return mt.stop()}},Te)})),In.apply(this,arguments)}var Hn=function(){var Te=Object(d.a)(_.a.mark(function _e(Ge){var mt,qe;return _.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(Wn(Object(h.a)(Ge)),V.page=1,!((Ge==null?void 0:Ge.length)>0)){xt.next=9;break}return xt.next=5,$({type:"userDetail/getShixuns",payload:Object(U.a)(Object(U.a)({},V),{},{group_id:Ge[0]})});case 5:mt=xt.sent,mt&&(ke(mt.count||0),Fe(mt.shixuns||[])),xt.next=13;break;case 9:return xt.next=11,$({type:"userDetail/getShixuns",payload:Object(U.a)({},V)});case 11:qe=xt.sent,qe&&(ke(qe.count||0),Fe(qe.shixuns||[]));case 13:case"end":return xt.stop()}},_e)}));return function(Ge){return Te.apply(this,arguments)}}(),Ra=((J=fe.pathname.split("/"))===null||J===void 0?void 0:J[3])||"classrooms";Object(k.useEffect)(function(){var Te=at.a.subscribe("user-detail-search",function(){var _e=Object(d.a)(_.a.mark(function Ge(mt){var qe;return _.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!(Ra===mt.currentTabName)){xt.next=7;break}return qe={category:void 0,status:void 0,page:1,per_page:16,sort_by:"updated_at",sort_direction:"desc",username:je.current,search:mt.value},Se(qe),Bn(!1),xt.next=6,hn(qe);case 6:Bn(!0);case 7:case"end":return xt.stop()}},Ge)}));return function(Ge){return _e.apply(this,arguments)}}());return Te},[we]);var hn=function(){var Te=Object(d.a)(_.a.mark(function _e(Ge){var mt,qe;return _.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!((Ln==null?void 0:Ln.length)>0)){xt.next=7;break}return xt.next=3,$({type:"userDetail/getShixuns",payload:Object(U.a)(Object(U.a)({},Ge),{},{group_id:Ln[0]})});case 3:mt=xt.sent,mt&&(ke(mt.count||0),Fe(mt.shixuns||[])),xt.next=11;break;case 7:return xt.next=9,$({type:"userDetail/getShixuns",payload:Ge});case 9:qe=xt.sent,qe&&(ke(qe.count||0),Fe(qe.shixuns||[]));case 11:case"end":return xt.stop()}},_e)}));return function(Ge){return Te.apply(this,arguments)}}(),Ma=function(_e){V.category=_e,V.page=1,Wn([]),Se(V),hn(V)},va=function(_e){V.status=_e,V.page=1,Se(V),hn(V),Wn([])},na=function(){V.sort_direction=V.sort_direction==="desc"?"asc":"desc",Se(V),hn(V)},Mn=function(_e){V.sort_by=_e,V.sort_direction="desc",Se(V),hn(V)},Kn=function(_e,Ge){V.page=_e,V.per_page=Ge,Se(V),hn(V)},aa=function(_e){D.a.confirm({width:416,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D6\u6D88\u6536\u85CF",icon:null,content:o.a.createElement("div",{className:"tc font14 ".concat(me.a.modalContent)},o.a.createElement("i",{className:"iconfont icon-jingshi1 font14 mr5 ".concat(me.a.colorFEB300)}),"\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u6536\u85CF\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF1F"),onOk:function(){var Ge=Object(d.a)(_.a.mark(function qe(){var Qt;return _.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(ie.j)({container_id:_e,container_type:"Shixun"});case 2:Qt=un.sent,(Qt==null?void 0:Qt.status)===0&&(ue.b.success("\u5DF2\u53D6\u6D88\u6536\u85CF"),hn(V));case 4:case"end":return un.stop()}},qe)}));function mt(){return Ge.apply(this,arguments)}return mt}()})},ba=function(_e){D.a.confirm({width:416,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u79FB\u9664\u5B9E\u8DF5\u9879\u76EE",icon:null,content:o.a.createElement("div",{className:"tc font14 ".concat(me.a.modalContent)},o.a.createElement("i",{className:"iconfont icon-jingshi1 font14 mr5 ".concat(me.a.colorFEB300)}),"\u786E\u5B9A\u5C06\u8BE5\u5B9E\u8DF5\u9879\u76EE\u4ECE\u5B66\u4E60\u5217\u8868\u4E2D\u79FB\u9664\uFF1F"),onOk:function(){var Ge=Object(d.a)(_.a.mark(function qe(){var Qt;return _.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(Xt.e)({identifier:_e});case 2:Qt=un.sent,(Qt==null?void 0:Qt.status)===0&&(ue.b.success("\u5DF2\u79FB\u9664"),hn(V));case 4:case"end":return un.stop()}},qe)}));function mt(){return Ge.apply(this,arguments)}return mt}()})},Sa=function(_e){ma(Object(h.a)(_e))},Na=function(_e,Ge){ja(Object(h.a)(_e)),pn([Ge]),Yt(!0)},la=function(){var _e=V.category=="collect"?"\u5171\u6536\u85CF":"\u5171\u53C2\u4E0E",Ge="";return V.category==="collect"&&(Ge=""),V.category==="manage"&&(Ge="\u53D1\u5E03"),V.category==="study"&&(Ge="\u5B66\u4E60"),V.category||(Ge="\u5B9E\u8DF5\u9879\u76EE"),"".concat(_e).concat(Ke,"\u4E2A").concat(Ge)},Vn=function(){return V.sort_by==="updated_at"?"\u6700\u65B0\u52A8\u6001":V.sort_by==="created_at"?"\u8BED\u8A00\u7C7B\u522B":V.sort_by==="name"?"\u540D\u79F0\u6392\u5E8F":""};return o.a.createElement("div",{className:me.a.wrap},V.search?o.a.createElement(o.a.Fragment,null,At&&o.a.createElement("div",{className:"font17 mt5 mb5"},o.a.createElement("span",{className:"c-grey-999"},"\u5173\u952E\u8BCD\uFF1A"),o.a.createElement("span",{className:"c-grey-333"},V.search," "),o.a.createElement("span",{className:"c-grey-999"},"\u5171\u627E\u5230"),o.a.createElement("span",{className:"c-grey-333"}," ",Ke," "),o.a.createElement("span",{className:"c-grey-999"},"\u95E8\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"))):o.a.createElement(o.a.Fragment,null,o.a.createElement(Ye,{params:V,isCurrent:we,handleChangeCategory:Ma,GroupList:qt,handleChangeStatus:va,setIsAdd:xn}),o.a.createElement("div",{style:{paddingTop:"10px",background:"#fff"}},we&&o.a.createElement(Wt,{item_banks_groups:qt==null?void 0:qt.groups,getItem:ta,user:A,groupIds:Ln,onChangeGroup:Hn})),o.a.createElement("div",{className:me.a.midWrap},o.a.createElement("div",null,o.a.createElement("span",{className:me.a.color999},la()),o.a.createElement(Y.a.Group,{className:"ml20 mr20 radio-group-sort-order",options:dn,onChange:function(_e){sn(_e.target.value),localStorage.setItem("ShixunShowType",_e.target.value)},value:An,optionType:"button",buttonStyle:"solid"}),o.a.createElement(ye.a,{style:{margin:"0px 20px"},to:"/shixuns/new"},o.a.createElement(w.a,{type:"primary",style:{height:"30px"}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),we&&o.a.createElement(w.a,{onClick:function(){var _e;if((Un==null?void 0:Un.length)<=0){ue.b.info(An===1?"\u8BF7\u5728\u5217\u8868\u6A21\u5F0F\u4E2D\u9009\u4E2D\u5B9E\u8BAD\u9879\u76EE\u52A0\u5165\u5206\u7EC4":"\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE");return}if((qt==null||((_e=qt.groups)===null||_e===void 0)?void 0:_e.length)<=0){ue.b.info("\u60A8\u5C1A\u672A\u521B\u5EFA\u4EFB\u4F55\u5206\u7EC4");return}Rn(!0)},type:"primary",ghost:!0,style:{width:"96px",height:"30px",borderRadius:"4px"}},"\u52A0\u5165\u5206\u7EC4")),o.a.createElement("div",{className:me.a.orderWrap},o.a.createElement(G.a,{overlay:o.a.createElement(E.a,null,o.a.createElement(E.a.Item,{onClick:function(){return Mn("updated_at")}},"\u6700\u65B0\u52A8\u6001"),o.a.createElement(E.a.Item,{onClick:function(){return Mn("created_at")}},"\u8BED\u8A00\u7C7B\u522B"),o.a.createElement(E.a.Item,{onClick:function(){return Mn("name")}},"\u540D\u79F0\u6392\u5E8F"))},o.a.createElement("span",{className:me.a.orderTextWrap},Vn())),o.a.createElement("span",{className:me.a.orderIconWrap},o.a.createElement("span",{className:me.a.orderAsc},o.a.createElement("i",{className:V.sort_direction==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(me.a.color0152d9," ").concat(me.a.h10," ").concat(me.a.cursorPointer):"iconfont icon-sanjiaoxing-up font12 ".concat(me.a.h10," ").concat(me.a.cursorPointer),onClick:function(){return na()}})),o.a.createElement("span",{className:me.a.orderDesc},o.a.createElement("i",{className:V.sort_direction==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(me.a.color0152d9," ").concat(me.a.h10," ").concat(me.a.cursorPointer):"iconfont icon-sanjiaoxing-down font12 ".concat(me.a.h10," ").concat(me.a.cursorPointer),onClick:function(){return na()}})))))),o.a.createElement(Ee.a,{loading:de["userDetail/getShixuns"],active:!0,paragraph:{rows:5}},An===1&&o.a.createElement("div",{className:me.a.cardWrap},!(Ze!=null&&Ze.length)&&(V.category||V.search)&&o.a.createElement(oe.a,null),o.a.createElement(ve,{data:Ze,params:V,user:A,onRemove:ba,onCancelCollect:aa})),An!=1&&o.a.createElement("div",{className:"mt10",style:{minHeight:400}},o.a.createElement(Nt,{number:(V.page-1)*V.per_page,onRemove:ba,user:A,isCurrent:we,onCancelCollect:aa,setGroupIds:Sa,setUnGrouplists:Na,params:V,data:Ze})),Ke>0&&o.a.createElement("div",{className:me.a.countWrap},o.a.createElement(ge.a,{showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","20","50","100","200"],hideOnSinglePage:!0,total:Ke,onChange:function(_e,Ge){Kn(_e,Ge)},pageSize:V.per_page,current:V.page}))),o.a.createElement(D.a,{visible:Yn,title:"\u65B0\u5EFA\u5206\u7EC4",onCancel:function(){xn(!1)},footer:o.a.createElement("div",{style:{textAlign:"end"}},o.a.createElement(w.a,{type:"primary",onClick:Object(d.a)(_.a.mark(function Te(){var _e,Ge;return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Object(Lt.a)("/api/users/".concat(A==null||((_e=A.userInfo)===null||_e===void 0)?void 0:_e.login,"/user_setting_groups.json"),{method:"post",body:{type:"Shixun",name:pa}});case 2:Ge=qe.sent,(Ge==null?void 0:Ge.status)===0&&(ue.b.info("\u521B\u5EFA\u5206\u7EC4\u6210\u529F"),xn(!1),sa(""),ta());case 4:case"end":return qe.stop()}},Te)}))},"\u786E\u8BA4"))},o.a.createElement(q.a,{value:pa,onChange:function(_e){sa(_e.target.value)},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u4E2A\u5B57\u7684\u5206\u7EC4\u540D\u79F0",maxLength:20})),o.a.createElement(D.a,{visible:ra,title:"\u52A0\u5165\u5206\u7EC4",onCancel:function(){Rn(!1)},footer:o.a.createElement("div",{style:{textAlign:"end"}},o.a.createElement(w.a,{type:"primary",onClick:Object(d.a)(_.a.mark(function Te(){var _e,Ge;return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!((kn==null?void 0:kn.length)<=0)){qe.next=3;break}return ue.b.info("\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u7684\u5206\u7EC4"),qe.abrupt("return");case 3:return qe.next=5,Object(Lt.a)("/api/users/".concat(A==null||((_e=A.userInfo)===null||_e===void 0)?void 0:_e.login,"/user_setting_groups/join.json"),{method:"post",body:{type:"Shixun",group_ids:kn,item_ids:Un}});case 5:Ge=qe.sent,(Ge==null?void 0:Ge.status)===0&&ue.b.info("\u52A0\u5165\u6210\u529F"),Hn(Ln),qn([]),Rn(!1),ma([]);case 11:case"end":return qe.stop()}},Te)}))},"\u786E\u8BA4"))},o.a.createElement("div",null,o.a.createElement("span",null,"\u8BF7\u9009\u62E9\u9700\u8981\u52A0\u5165\u7684\u5206\u7EC4"),o.a.createElement("br",null),o.a.createElement(p.a.Group,{value:kn,onChange:function(_e){qn(Object(h.a)(_e))},style:{marginTop:"20px"}},o.a.createElement(O.a,{style:{width:"400px"}},qt==null||((Z=qt.groups)===null||Z===void 0)?void 0:Z.map(function(Te,_e){return o.a.createElement(y.a,{span:6,style:{marginTop:"10px"}},o.a.createElement(p.a,{value:Te.id,style:{fontSize:"14px"}},Te.name))}))))),o.a.createElement(D.a,{visible:fn,title:"\u64A4\u9500\u5206\u7EC4",onCancel:function(){Yt(!1)},footer:o.a.createElement("div",{style:{textAlign:"end"}},o.a.createElement(w.a,{type:"primary",onClick:Object(d.a)(_.a.mark(function Te(){var _e,Ge;return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!((zn==null?void 0:zn.length)<=0)){qe.next=3;break}return ue.b.info("\u8BF7\u9009\u62E9\u8981\u64A4\u9500\u7684\u5206\u7EC4"),qe.abrupt("return");case 3:return qe.next=5,Object(Lt.a)("/api/users/".concat(A==null||((_e=A.userInfo)===null||_e===void 0)?void 0:_e.login,"/user_setting_groups/cancel.json"),{method:"post",body:{type:"Shixun",group_ids:zn,item_ids:Cn}});case 5:Ge=qe.sent,(Ge==null?void 0:Ge.status)===0&&ue.b.info("\u64A4\u9500\u6210\u529F"),hn(V),xa([]),Yt(!1),pn([]);case 11:case"end":return qe.stop()}},Te)}))},"\u786E\u8BA4"))},o.a.createElement("div",null,o.a.createElement("span",null,"\u8BF7\u9009\u62E9\u9700\u8981\u64A4\u9500\u7684\u5206\u7EC4"),o.a.createElement("br",null),o.a.createElement(p.a.Group,{value:zn,onChange:function(_e){xa(Object(h.a)(_e))},style:{marginTop:"20px"}},o.a.createElement(O.a,{style:{width:"400px"}},ea==null?void 0:ea.map(function(Te,_e){return o.a.createElement(y.a,{span:6,style:{marginTop:"10px"}},o.a.createElement(p.a,{value:Te.id,style:{fontSize:"14px"}},Te.name))}))))))},C=ne.default=Object(xe.a)(function(W){var P=W.user,te=W.userDetail,H=W.loading,J=W.globalSetting;return{user:P,userDetail:te,globalSetting:J,loading:H.effects}})(bn)},"3sJ3":function(it,ne,n){it.exports={flex_box_center:"flex_box_center___3gkxV",flex_space_between:"flex_space_between___1IN16",flex_box_vertical_center:"flex_box_vertical_center___3gLMP",flex_box_center_end:"flex_box_center_end___d6Wgo",flex_box_column:"flex_box_column___IITJ9",wrap:"wrap___3DzL5",createIconWrap:"createIconWrap___3OA3J",createIcon:"createIcon___ogt6a",leftIcon:"leftIcon___1TF-X",rightIcon:"rightIcon___2YEHD",createTextWrap:"createTextWrap___2-HO1",createText:"createText___bHXlY",tagWrap:"tagWrap___3kzbC",tagName:"tagName___2LIDr",tagJupyterWrap:"tagJupyterWrap___1bgZt",tagJupyterNameWrap:"tagJupyterNameWrap___2T3n6",tagJupyterName:"tagJupyterName___2we8m",imgWrap:"imgWrap___2BB0e",cardBottom:"cardBottom___6AmMS",bottomNameWrap:"bottomNameWrap___L1SgZ",bottomName:"bottomName___4eZcA",bottomCountProgressWrap:"bottomCountProgressWrap___3TbUI",bottomCount:"bottomCount___3KA22",action:"action___3ckRO",colorFF8E02:"colorFF8E02___3BQYK"}},"55Ip":function(it,ne,n){"use strict";n.d(ne,"a",function(){return z}),n.d(ne,"b",function(){return U});var R=n("Ty5D"),O=n("dI71"),Oe=n("q1tI"),y=n.n(Oe),r=n("YS25"),p=n("17x9"),re=n.n(p),q=n("wx14"),N=n("zLVn"),Ee=n("9R94"),ee=function(d){Object(O.a)(s,d);function s(){for(var M,_=arguments.length,k=new Array(_),o=0;o<_;o++)k[o]=arguments[o];return M=d.call.apply(d,[this].concat(k))||this,M.history=Object(r.a)(M.props),M}var x=s.prototype;return x.render=function(){return y.a.createElement(R.c,{history:this.history,children:this.props.children})},s}(y.a.Component),ge=function(d){Object(O.a)(s,d);function s(){for(var M,_=arguments.length,k=new Array(_),o=0;o<_;o++)k[o]=arguments[o];return M=d.call.apply(d,[this].concat(k))||this,M.history=Object(r.b)(M.props),M}var x=s.prototype;return x.render=function(){return y.a.createElement(R.c,{history:this.history,children:this.props.children})},s}(y.a.Component),Ce=function(s,x){return typeof s=="function"?s(x):s},G=function(s,x){return typeof s=="string"?Object(r.c)(s,null,null,x):s},j=function(s){return s},E=y.a.forwardRef;typeof E=="undefined"&&(E=j);function Q(d){return!!(d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)}var w=E(function(d,s){var x=d.innerRef,M=d.navigate,_=d.onClick,k=Object(N.a)(d,["innerRef","navigate","onClick"]),o=k.target,ae=Object(q.a)({},k,{onClick:function(xe){try{_&&_(xe)}catch(nt){throw xe.preventDefault(),nt}!xe.defaultPrevented&&xe.button===0&&(!o||o==="_self")&&!Q(xe)&&(xe.preventDefault(),M())}});return j!==E?ae.ref=s||x:ae.ref=x,y.a.createElement("a",ae)}),z=E(function(d,s){var x=d.component,M=x===void 0?w:x,_=d.replace,k=d.to,o=d.innerRef,ae=Object(N.a)(d,["component","replace","to","innerRef"]);return y.a.createElement(R.e.Consumer,null,function(ye){ye||Object(Ee.a)(!1);var xe=ye.history,nt=G(Ce(k,ye.location),ye.location),me=nt?xe.createHref(nt):"",oe=Object(q.a)({},ae,{href:me,navigate:function(){var ze=Ce(k,ye.location),Ve=_?xe.replace:xe.push;Ve(ze)}});return j!==E?oe.ref=s||o:oe.innerRef=o,y.a.createElement(M,oe)})});if(!1)var Y,B;var ue=function(s){return s},T=y.a.forwardRef;typeof T=="undefined"&&(T=ue);function D(){for(var d=arguments.length,s=new Array(d),x=0;x=0||_.relatedTarget.className.indexOf("".concat(ye,"-next"))>=0))return;d.setState({goInputText:""}),ae(d.getValidValue())},d.go=function(_){var k=d.state.goInputText;if(k==="")return;(_.keyCode===G.ENTER||_.type==="click")&&(d.setState({goInputText:""}),d.props.quickGo(d.getValidValue()))},d}return Object(r.a)(h,[{key:"getValidValue",value:function(){var s=this.state,x=s.goInputText,M=s.current;return!x||isNaN(x)?M:Number(x)}},{key:"getPageSizeOptions",value:function(){var s=this.props,x=s.pageSize,M=s.pageSizeOptions;return M.some(function(_){return _.toString()===x.toString()})?M:M.concat([x.toString()]).sort(function(_,k){var o=isNaN(Number(_))?0:Number(_),ae=isNaN(Number(k))?0:Number(k);return o-ae})}},{key:"render",value:function(){var s=this,x=this.props,M=x.pageSize,_=x.locale,k=x.rootPrefixCls,o=x.changeSize,ae=x.quickGo,ye=x.goButton,xe=x.selectComponentClass,nt=x.buildOptionText,me=x.selectPrefixCls,oe=x.disabled,Le=this.state.goInputText,ze="".concat(k,"-options"),Ve=xe,He=null,ie=null,ce=null;if(!o&&!ae)return null;var se=this.getPageSizeOptions();if(o&&Ve){var pe=se.map(function(L,I){return N.a.createElement(Ve.Option,{key:I,value:L.toString()},(nt||s.buildOptionText)(L))});He=N.a.createElement(Ve,{disabled:oe,prefixCls:me,showSearch:!1,className:"".concat(ze,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode}},pe)}return ae&&(ye&&(ce=typeof ye=="boolean"?N.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:oe,className:"".concat(ze,"-quick-jumper-button")},_.jump_to_confirm):N.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ye)),ie=N.a.createElement("div",{className:"".concat(ze,"-quick-jumper")},_.jump_to,N.a.createElement("input",{disabled:oe,type:"text",value:Le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),_.page,ce)),N.a.createElement("li",{className:"".concat(ze)},He,ie)}}]),h}(N.a.Component);j.defaultProps={pageSizeOptions:["10","20","50","100"]};var E=j,Q=n("N2Kk");function w(){}function z(D){return typeof D=="number"&&isFinite(D)&&Math.floor(D)===D}function Y(D,U,h){return h}function B(D,U,h){var d=typeof D=="undefined"?U.pageSize:D;return Math.floor((h.total-1)/d)+1}var ue=function(D){Object(p.a)(h,D);var U=Object(re.a)(h);function h(d){var s;Object(y.a)(this,h),s=U.call(this,d),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(B(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(o,ae){var ye=s.props.prefixCls,xe=o||N.a.createElement("button",{type:"button","aria-label":ae,className:"".concat(ye,"-item-link")});return typeof o=="function"&&(xe=N.a.createElement(o,Object(Oe.a)({},s.props))),xe},s.savePaginationNode=function(o){s.paginationNode=o},s.isValid=function(o){return z(o)&&o!==s.state.current},s.shouldDisplayQuickJumper=function(){var o=s.props,ae=o.showQuickJumper,ye=o.pageSize,xe=o.total;return xe<=ye?!1:ae},s.handleKeyDown=function(o){(o.keyCode===G.ARROW_UP||o.keyCode===G.ARROW_DOWN)&&o.preventDefault()},s.handleKeyUp=function(o){var ae=s.getValidValue(o),ye=s.state.currentInputValue;ae!==ye&&s.setState({currentInputValue:ae}),o.keyCode===G.ENTER?s.handleChange(ae):o.keyCode===G.ARROW_UP?s.handleChange(ae-1):o.keyCode===G.ARROW_DOWN&&s.handleChange(ae+1)},s.changePageSize=function(o){var ae=s.state.current,ye=B(o,s.state,s.props);ae=ae>ye?ye:ae,ye===0&&(ae=s.state.current),typeof o=="number"&&("pageSize"in s.props||s.setState({pageSize:o}),"current"in s.props||s.setState({current:ae,currentInputValue:ae})),s.props.onShowSizeChange(ae,o),"onChange"in s.props&&s.props.onChange&&s.props.onChange(ae,o)},s.handleChange=function(o){var ae=s.props.disabled,ye=o;if(s.isValid(ye)&&!ae){var xe=B(void 0,s.state,s.props);ye>xe?ye=xe:ye<1&&(ye=1),"current"in s.props||s.setState({current:ye,currentInputValue:ye});var nt=s.state.pageSize;return s.props.onChange(ye,nt),ye}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?ye-2:0),nt=2;nt=M?k=M:k=Number(x),k}},{key:"getShowSizeChanger",value:function(){var s=this.props,x=s.showSizeChanger,M=s.total,_=s.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:M>_}},{key:"renderPrev",value:function(s){var x=this.props,M=x.prevIcon,_=x.itemRender,k=_(s,"prev",this.getItemIcon(M,"prev page")),o=!this.hasPrev();return Object(q.isValidElement)(k)?Object(q.cloneElement)(k,{disabled:o}):k}},{key:"renderNext",value:function(s){var x=this.props,M=x.nextIcon,_=x.itemRender,k=_(s,"next",this.getItemIcon(M,"next page")),o=!this.hasNext();return Object(q.isValidElement)(k)?Object(q.cloneElement)(k,{disabled:o}):k}},{key:"render",value:function(){var s=this,x=this.props,M=x.prefixCls,_=x.className,k=x.style,o=x.disabled,ae=x.hideOnSinglePage,ye=x.total,xe=x.locale,nt=x.showQuickJumper,me=x.showLessItems,oe=x.showTitle,Le=x.showTotal,ze=x.simple,Ve=x.itemRender,He=x.showPrevNextJumpers,ie=x.jumpPrevIcon,ce=x.jumpNextIcon,se=x.selectComponentClass,pe=x.selectPrefixCls,L=x.pageSizeOptions,I=this.state,ve=I.current,Xe=I.pageSize,et=I.currentInputValue;if(ae===!0&&ye<=Xe)return null;var he=B(void 0,this.state,this.props),$e=[],gt=null,ct=null,Nt=null,Ut=null,Me=null,Ye=nt&&nt.goButton,at=me?1:2,Xt=ve-1>0?ve-1:0,Lt=ve+1=at*2&&ve!==1+2&&($e[0]=Object(q.cloneElement)($e[0],{className:"".concat(M,"-item-after-jump-prev")}),$e.unshift(gt)),he-ve>=at*2&&ve!==he-2&&($e[$e.length-1]=Object(q.cloneElement)($e[$e.length-1],{className:"".concat(M,"-item-before-jump-next")}),$e.push(ct)),P!==1&&$e.unshift(Nt),te!==he&&$e.push(Ut)}var Z=null;Le&&(Z=N.a.createElement("li",{className:"".concat(M,"-total-text")},Le(ye,[ye===0?0:(ve-1)*Xe+1,ve*Xe>ye?ye:ve*Xe])));var A=!this.hasPrev()||!he,X=!this.hasNext()||!he;return N.a.createElement("ul",Object(R.a)({className:ee()(M,_,Object(O.a)({},"".concat(M,"-disabled"),o)),style:k,unselectable:"unselectable",ref:this.savePaginationNode},$t),Z,N.a.createElement("li",{title:oe?xe.prev_page:null,onClick:this.prev,tabIndex:A?null:0,onKeyPress:this.runIfEnterPrev,className:ee()("".concat(M,"-prev"),Object(O.a)({},"".concat(M,"-disabled"),A)),"aria-disabled":A},this.renderPrev(Xt)),$e,N.a.createElement("li",{title:oe?xe.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:ee()("".concat(M,"-next"),Object(O.a)({},"".concat(M,"-disabled"),X)),"aria-disabled":X},this.renderNext(Lt)),N.a.createElement(E,{disabled:o,locale:xe,rootPrefixCls:M,selectComponentClass:se,selectPrefixCls:pe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ve,pageSize:Xe,pageSizeOptions:L,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ye}))}}],[{key:"getDerivedStateFromProps",value:function(s,x){var M={};if("current"in s&&(M.current=s.current,s.current!==x.current&&(M.currentInputValue=M.current)),"pageSize"in s&&s.pageSize!==x.pageSize){var _=x.current,k=B(s.pageSize,x,s);_=_>k?k:_,"current"in s||(M.current=_,M.currentInputValue=_),M.pageSize=s.pageSize}return M}}]),h}(N.a.Component);ue.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:w,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:w,locale:Q.a,style:{},itemRender:Y,totalBoundaryShowSizeChanger:50};var T=ue},"6RRn":function(it,ne,n){"use strict";var R=n("wCXF"),O=n("n6Qo");n.d(ne,"b",function(){return O.a});var Oe=n("IBYe"),y=n("6eGT"),r=n("hW8S");n.d(ne,"a",function(){return r.a}),ne.c=R.b},"6eGT":function(it,ne,n){"use strict";function R(O){return null}ne.a=R},"815F":function(it,ne,n){"use strict";n.d(ne,"e",function(){return re}),n.d(ne,"c",function(){return N}),n.d(ne,"d",function(){return Ee}),n.d(ne,"a",function(){return ge}),n.d(ne,"f",function(){return Ce}),n.d(ne,"b",function(){return G});var R=n("KQm4"),O=n("VTBJ"),Oe=n("Ff2n"),y=n("Zm9Q"),r=n("Kwbf"),p=n("OZM5");function re(j,E){return j!=null?j:E}function q(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=new Map;function Q(w){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(w||[]).forEach(function(Y){var B=Y.key,ue=Y.children;Object(r.a)(B!=null,"Tree node must have a certain key: [".concat(z).concat(B,"]"));var T=String(B);Object(r.a)(!E.has(T)||B===null||B===void 0,"Same 'key' exist in the Tree: ".concat(T)),E.set(T,!0),Q(ue,"".concat(z).concat(T," > "))})}Q(j)}function N(j){function E(Q){var w=Object(y.a)(Q);return w.map(function(z){if(!Object(p.i)(z))return Object(r.a)(!z,"Tree/TreeNode can only accept TreeNode as children."),null;var Y=z.key,B=z.props,ue=B.children,T=Object(Oe.a)(B,["children"]),D=Object(O.a)({key:Y},T),U=E(ue);return U.length&&(D.children=U),D}).filter(function(z){return z})}return E(j)}function Ee(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Q=new Set(E===!0?[]:E),w=[];function z(Y){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Y.map(function(ue,T){var D=Object(p.h)(B?B.pos:"0",T),U=re(ue.key,D),h=Object(O.a)(Object(O.a)({},ue),{},{parent:B,pos:D,children:null,data:ue,isStart:[].concat(Object(R.a)(B?B.isStart:[]),[T===0]),isEnd:[].concat(Object(R.a)(B?B.isEnd:[]),[T===Y.length-1])});return w.push(h),E===!0||Q.has(U)?h.children=z(ue.children||[],h):h.children=[],h})}return z(j),w}function ee(j,E,Q){var w;Q?typeof Q=="string"?w=function(B){return B[Q]}:typeof Q=="function"&&(w=function(B){return Q(B)}):w=function(B,ue){return re(B.key,ue)};function z(Y,B,ue){var T=Y?Y.children:j,D=Y?Object(p.h)(ue.pos,B):"0";if(Y){var U=w(Y,D),h={node:Y,index:B,pos:D,key:U,parentPos:ue.node?ue.pos:null,level:ue.level+1};E(h)}T&&T.forEach(function(d,s){z(d,s,{node:Y,pos:D,level:ue?ue.level+1:-1})})}z(null)}function ge(j){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=E.initWrapper,w=E.processEntity,z=E.onProcessFinished,Y=arguments.length>2?arguments[2]:void 0,B={},ue={},T={posEntities:B,keyEntities:ue};return Q&&(T=Q(T)||T),ee(j,function(D){var U=D.node,h=D.index,d=D.pos,s=D.key,x=D.parentPos,M=D.level,_={node:U,index:h,key:s,pos:d,level:M},k=re(s,d);B[d]=_,ue[k]=_,_.parent=B[x],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),w&&w(_,T)},Y),z&&z(T),T}function Ce(j,E){var Q=E.expandedKeys,w=E.selectedKeys,z=E.loadedKeys,Y=E.loadingKeys,B=E.checkedKeys,ue=E.halfCheckedKeys,T=E.dragOverNodeKey,D=E.dropPosition,U=E.keyEntities,h=U[j],d={eventKey:j,expanded:Q.indexOf(j)!==-1,selected:w.indexOf(j)!==-1,loaded:z.indexOf(j)!==-1,loading:Y.indexOf(j)!==-1,checked:B.indexOf(j)!==-1,halfChecked:ue.indexOf(j)!==-1,pos:String(h?h.pos:""),dragOver:T===j&&D===0,dragOverGapTop:T===j&&D===-1,dragOverGapBottom:T===j&&D===1};return d}function G(j){var E=j.data,Q=j.expanded,w=j.selected,z=j.checked,Y=j.loaded,B=j.loading,ue=j.halfChecked,T=j.dragOver,D=j.dragOverGapTop,U=j.dragOverGapBottom,h=j.pos,d=j.active,s=Object(O.a)(Object(O.a)({},E),{},{expanded:Q,selected:w,checked:z,loaded:Y,loading:B,halfChecked:ue,dragOver:T,dragOverGapTop:D,dragOverGapBottom:U,pos:h,active:d});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),j}}),s}},"9fAY":function(it,ne,n){it.exports={flex_box_center:"flex_box_center___p9iz2",flex_space_between:"flex_space_between___3mzmJ",flex_box_vertical_center:"flex_box_vertical_center___36VFg",flex_box_center_end:"flex_box_center_end___2WYXc",flex_box_column:"flex_box_column___2CyQz",wrap:"wrap___2QHms",midWrap:"midWrap___2Sk7q",color999:"color999___7iDjY",orderWrap:"orderWrap___128Yt",orderIconWrap:"orderIconWrap___lJ5Mg",orderAsc:"orderAsc___1lCCX",orderDesc:"orderDesc___3tYZ1",color0152d9:"color0152d9___2Bd_I",h10:"h10___3dqqs",cursorPointer:"cursorPointer___hDVBN",orderTextWrap:"orderTextWrap___1H7oi",cardWrap:"cardWrap___143Dz",countWrap:"countWrap___3wdvz",colorFEB300:"colorFEB300___1k3Vw",modalContent:"modalContent___30WaT"}},BU3w:function(it,ne,n){"use strict";n.d(ne,"a",function(){return p});var R=n("MNnm"),O="rc-util-key";function Oe(re){if(re.attachTo)return re.attachTo;var q=document.querySelector("head");return q||document.body}function y(re){var q,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var Ee=document.createElement("style");if((q=N.csp)===null||q===void 0?void 0:q.nonce){var ee;Ee.nonce=(ee=N.csp)===null||ee===void 0?void 0:ee.nonce}Ee.innerHTML=re;var ge=Oe(N),Ce=ge.firstChild;return N.prepend&&ge.prepend?ge.prepend(Ee):N.prepend&&Ce?ge.insertBefore(Ee,Ce):ge.appendChild(Ee),Ee}var r=new Map;function p(re,q){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ee=Oe(N);if(!r.has(Ee)){var ee=y("",N),ge=ee.parentNode;r.set(Ee,ge),ge.removeChild(ee)}var Ce=Array.from(r.get(Ee).children).find(function(w){return w.tagName==="STYLE"&&w[O]===q});if(Ce){var G,j;if(((G=N.csp)===null||G===void 0?void 0:G.nonce)&&Ce.nonce!==((j=N.csp)===null||j===void 0?void 0:j.nonce)){var E;Ce.nonce=(E=N.csp)===null||E===void 0?void 0:E.nonce}return Ce.innerHTML!==re&&(Ce.innerHTML=re),Ce}var Q=y(re,N);return Q[O]=q,Q}},BdwD:function(it,ne,n){"use strict";var R=n("+L6B"),O=n("2/Rp"),Oe=n("0Owb"),y=n("k1fw"),r=n("q1tI"),p=n.n(r),re=n("FOrL"),q=n.n(re),N=function(ee){var ge=ee.buttonProps,Ce=ge===void 0?{}:ge,G=ee.styles,j=G===void 0?{}:G,E=ee.customText,Q=ee.ButtonText,w=ee.ButtonClick,z=ee.Buttonclass,Y=ee.ButtonTwo;return p.a.createElement("section",{className:"tc animated fadeIn",style:Object(y.a)(Object(y.a)({},{color:"#999",margin:"200px auto"}),j)},p.a.createElement("img",{src:q.a}),p.a.createElement("p",{className:"mt20 font14"},E||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Q&&p.a.createElement(O.a,Object(Oe.a)({className:z,onClick:w},Ce),Q),Y&&Y)};ne.a=N},FOrL:function(it,ne,n){it.exports=n.p+"static/nodata.a6b3f948.png"},IBYe:function(it,ne,n){"use strict";function R(O){return null}ne.a=R},LG5J:function(it,ne,n){it.exports={flex_box_center:"flex_box_center___2pVBD",flex_space_between:"flex_space_between___kEQXU",flex_box_vertical_center:"flex_box_vertical_center___3rPAa",flex_box_center_end:"flex_box_center_end___1u9G4",flex_box_column:"flex_box_column___cCYmU",searchBar:"searchBar___2SiWd",active:"active___wyF4j",searchBarBorder:"searchBarBorder___oMJaw",firstLi:"firstLi___2ZvNi",otherLi:"otherLi___30VUP"}},LdHM:function(it,ne,n){"use strict";n.d(ne,"b",function(){return Y}),n.d(ne,"a",function(){return ue});var R=n("1OyB"),O=n("vuIU"),Oe=n("Ji7U"),y=n("LK+K"),r=n("q1tI"),p=n("rePB"),re=n("Ff2n"),q=n("ODXe"),N=n("4IlW"),Ee=n("bX4T"),ee=n("YrtM"),ge=n("TSYQ"),Ce=n.n(ge),G=n("+nKL"),j=n("8OUc"),E=function(oe,Le){var ze=oe.prefixCls,Ve=oe.id,He=oe.flattenOptions,ie=oe.childrenAsData,ce=oe.values,se=oe.searchValue,pe=oe.multiple,L=oe.defaultActiveFirstOption,I=oe.height,ve=oe.itemHeight,Xe=oe.notFoundContent,et=oe.open,he=oe.menuItemSelectedIcon,$e=oe.virtual,gt=oe.onSelect,ct=oe.onToggleOpen,Nt=oe.onActiveValue,Ut=oe.onScroll,Me=oe.onMouseEnter,Ye="".concat(ze,"-item"),at=Object(ee.a)(function(){return He},[et,He],function(J,Z){return Z[0]&&J[1]!==Z[1]}),Xt=r.useRef(null),Lt=function(Z){Z.preventDefault()},$t=function(Z){Xt.current&&Xt.current.scrollTo({index:Z})},vt=function(Z){for(var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=at.length,be=0;be1&&arguments[1]!==void 0?arguments[1]:!1;return Object(D.a)(me).map(function(Le,ze){if(!r.isValidElement(Le)||!Le.type)return null;var Ve=Le.type.isSelectOptGroup,He=Le.key,ie=Le.props,ce=ie.children,se=Object(re.a)(ie,["children"]);return oe||!Ve?U(Le):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(He===null?ze:He,"__"),label:He},se),{},{options:h(ce)})}).filter(function(Le){return Le})}var d=n("2Qr1"),s=n("qNPg"),x=n("U8pU"),M=n("Kwbf"),_=n("WKfj");function k(me){var oe=me.mode,Le=me.options,ze=me.children,Ve=me.backfill,He=me.allowClear,ie=me.placeholder,ce=me.getInputElement,se=me.showSearch,pe=me.onSearch,L=me.defaultOpen,I=me.autoFocus,ve=me.labelInValue,Xe=me.value,et=me.inputValue,he=me.optionLabelProp,$e=oe==="multiple"||oe==="tags",gt=se!==void 0?se:$e||oe==="combobox",ct=Le||h(ze);if(Object(M.a)(oe!=="tags"||ct.every(function(Ye){return!Ye.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),oe==="tags"||oe==="combobox"){var Nt=ct.some(function(Ye){return Ye.options?Ye.options.some(function(at){return typeof("value"in at?at.value:at.key)=="number"}):typeof("value"in Ye?Ye.value:Ye.key)=="number"});Object(M.a)(!Nt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(oe!=="combobox"||!he,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(oe==="combobox"||!Ve,"`backfill` only works with `combobox` mode."),Object(M.a)(oe==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(M.b)(oe!=="combobox"||!ce||!He||!ie,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pe&&!gt&&oe!=="combobox"&&oe!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!L||I,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Xe!=null){var Ut=Object(_.d)(Xe);Object(M.a)(!ve||Ut.every(function(Ye){return Object(x.a)(Ye)==="object"&&("key"in Ye||"value"in Ye)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!$e||Array.isArray(Xe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ze){var Me=null;Object(D.a)(ze).some(function(Ye){if(!r.isValidElement(Ye)||!Ye.type)return!1;var at=Ye.type;if(at.isSelectOption)return!1;if(at.isSelectOptGroup){var Xt=Object(D.a)(Ye.props.children).every(function(Lt){return!r.isValidElement(Lt)||!Ye.type||Lt.type.isSelectOption?!0:(Me=Lt.type,!1)});return!Xt}return Me=at,!0}),Me&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Me.displayName||Me.name||Me,"`.")),Object(M.a)(et===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var o=k,ae=Object(s.a)({prefixCls:"rc-select",components:{optionList:w},convertChildrenToData:h,flattenOptions:d.d,getLabeledValue:d.e,filterOptions:d.b,isValueDisabled:d.g,findValueOption:d.c,warningProps:o,fillOptionsWithMissingValue:d.a}),ye=function(me){Object(Oe.a)(Le,me);var oe=Object(y.a)(Le);function Le(){var ze;return Object(R.a)(this,Le),ze=oe.apply(this,arguments),ze.selectRef=r.createRef(),ze.focus=function(){ze.selectRef.current.focus()},ze.blur=function(){ze.selectRef.current.blur()},ze}return Object(O.a)(Le,[{key:"render",value:function(){return r.createElement(ae,Object.assign({ref:this.selectRef},this.props))}}]),Le}(r.Component);ye.Option=Y,ye.OptGroup=ue;var xe=ye,nt=ne.c=xe},NvD2:function(it,ne,n){"use strict";n.d(ne,"a",function(){return p});var R=n("Kwbf");function O(re,q){var N=new Set;return re.forEach(function(Ee){q.has(Ee)||N.add(Ee)}),N}function Oe(re){var q=re||{},N=q.disabled,Ee=q.disableCheckbox,ee=q.checkable;return!!(N||Ee)||ee===!1}function y(re,q,N,Ee){for(var ee=new Set(re),ge=new Set,Ce=0;Ce<=N;Ce+=1){var G=q.get(Ce)||new Set;G.forEach(function(w){var z=w.key,Y=w.node,B=w.children,ue=B===void 0?[]:B;ee.has(z)&&!Ee(Y)&&ue.filter(function(T){return!Ee(T.node)}).forEach(function(T){ee.add(T.key)})})}for(var j=new Set,E=N;E>=0;E-=1){var Q=q.get(E)||new Set;Q.forEach(function(w){var z=w.parent,Y=w.node;if(Ee(Y)||!w.parent||j.has(w.parent.key))return;if(Ee(w.parent.node)){j.add(z.key);return}var B=!0,ue=!1;(z.children||[]).filter(function(T){return!Ee(T.node)}).forEach(function(T){var D=T.key,U=ee.has(D);B&&!U&&(B=!1),!ue&&(U||ge.has(D))&&(ue=!0)}),B&&ee.add(z.key),ue&&ge.add(z.key),j.add(z.key)})}return{checkedKeys:Array.from(ee),halfCheckedKeys:Array.from(O(ge,ee))}}function r(re,q,N,Ee,ee){for(var ge=new Set(re),Ce=new Set(q),G=0;G<=Ee;G+=1){var j=N.get(G)||new Set;j.forEach(function(z){var Y=z.key,B=z.node,ue=z.children,T=ue===void 0?[]:ue;!ge.has(Y)&&!Ce.has(Y)&&!ee(B)&&T.filter(function(D){return!ee(D.node)}).forEach(function(D){ge.delete(D.key)})})}Ce=new Set;for(var E=new Set,Q=Ee;Q>=0;Q-=1){var w=N.get(Q)||new Set;w.forEach(function(z){var Y=z.parent,B=z.node;if(ee(B)||!z.parent||E.has(z.parent.key))return;if(ee(z.parent.node)){E.add(Y.key);return}var ue=!0,T=!1;(Y.children||[]).filter(function(D){return!ee(D.node)}).forEach(function(D){var U=D.key,h=ge.has(U);ue&&!h&&(ue=!1),!T&&(h||Ce.has(U))&&(T=!0)}),ue||ge.delete(Y.key),T&&Ce.add(Y.key),E.add(Y.key)})}return{checkedKeys:Array.from(ge),halfCheckedKeys:Array.from(O(Ce,ge))}}function p(re,q,N,Ee){var ee=[],ge;Ee?ge=Ee:ge=Oe;var Ce=new Set(re.filter(function(Q){var w=!!N[Q];return w||ee.push(Q),w})),G=new Map,j=0;Object.keys(N).forEach(function(Q){var w=N[Q],z=w.level,Y=G.get(z);Y||(Y=new Set,G.set(z,Y)),Y.add(w),j=Math.max(j,z)}),Object(R.a)(!ee.length,"Tree missing follow keys: ".concat(ee.slice(0,100).map(function(Q){return"'".concat(Q,"'")}).join(", ")));var E;return q===!0?E=y(Ce,G,j,ge):E=r(Ce,q.halfCheckedKeys,G,j,ge),E}},OZM5:function(it,ne,n){"use strict";n.d(ne,"b",function(){return Ee}),n.d(ne,"a",function(){return ee}),n.d(ne,"k",function(){return ge}),n.d(ne,"h",function(){return Ce}),n.d(ne,"i",function(){return G}),n.d(ne,"g",function(){return j}),n.d(ne,"c",function(){return E}),n.d(ne,"d",function(){return Q}),n.d(ne,"j",function(){return Y}),n.d(ne,"e",function(){return B}),n.d(ne,"f",function(){return ue});var R=n("KQm4"),O=n("U8pU"),Oe=n("Ff2n"),y=n("q1tI"),r=n.n(y),p=n("Kwbf"),re=n("WaYH"),q=.25,N=2;function Ee(T,D){var U=T.slice(),h=U.indexOf(D);return h>=0&&U.splice(h,1),U}function ee(T,D){var U=T.slice();return U.indexOf(D)===-1&&U.push(D),U}function ge(T){return T.split("-")}function Ce(T,D){return"".concat(T,"-").concat(D)}function G(T){return T&&T.type&&T.type.isTreeNode}function j(T,D){var U=[T],h=D[T];function d(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(x){var M=x.key,_=x.children;U.push(M),d(_)})}return d(h.children),U}function E(T,D){var U=T.clientY,h=D.selectHandle.getBoundingClientRect(),d=h.top,s=h.bottom,x=h.height,M=Math.max(x*q,N);return U<=d+M?-1:U>=s-M?1:0}function Q(T,D){if(!T)return;var U=D.multiple;return U?T.slice():T.length?[T[0]]:T}var w=function(D){return D};function z(T,D){if(!T)return[];var U=D||{},h=U.processProps,d=h===void 0?w:h,s=Array.isArray(T)?T:[T];return s.map(function(x){var M=x.children,_=Object(Oe.a)(x,["children"]),k=z(M,D);return r.a.createElement(re.a,Object.assign({},d(_)),k)})}function Y(T){if(!T)return null;var D;if(Array.isArray(T))D={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(O.a)(T)==="object")D={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return D}function B(T,D){var U=new Set;function h(d){if(U.has(d))return;var s=D[d];if(!s)return;U.add(d);var x=s.parent,M=s.node;if(M.disabled)return;x&&h(x.key)}return(T||[]).forEach(function(d){h(d)}),Object(R.a)(U)}function ue(T){var D={};return Object.keys(T).forEach(function(U){(U.startsWith("data-")||U.startsWith("aria-"))&&(D[U]=T[U])}),D}},"SA+Z":function(it,ne,n){var R=n("wTVA"),O=n("EbDI"),Oe=n("ZhPi"),y=n("wkBT");function r(p){return R(p)||O(p)||Oe(p)||y()}it.exports=r,it.exports.__esModule=!0,it.exports.default=it.exports},SGC9:function(it,ne,n){it.exports={groupWrap:"groupWrap___7csZK",directionItemWrap:"directionItemWrap___2tkw8",directionItem:"directionItem___3LPk5",groupActionWrap:"groupActionWrap___1eYIz",active:"active___EsUcZ",directionContentWrap:"directionContentWrap___2qy-T",minWidth43:"minWidth43___1F2_e",minWidth48:"minWidth48___1iPbG",delete:"delete___1V7up"}},WaYH:function(it,ne,n){"use strict";var R=n("rePB"),O=n("Ff2n"),Oe=n("VTBJ"),y=n("1OyB"),r=n("vuIU"),p=n("JX7q"),re=n("Ji7U"),q=n("LK+K"),N=n("q1tI"),Ee=n("TSYQ"),ee=n.n(Ee),ge=n("sboe"),Ce=n("OZM5"),G=function(D){var U=D.prefixCls,h=D.level,d=D.isStart,s=D.isEnd;if(!h)return null;for(var x="".concat(U,"-indent-unit"),M=[],_=0;_0)){xt.next=9;break}return xt.next=5,$({type:"userDetail/getShixuns",payload:Object(U.a)(Object(U.a)({},V),{},{group_id:Ge[0]})});case 5:mt=xt.sent,mt&&(Ie(mt.count||0),Fe(mt.shixuns||[])),xt.next=13;break;case 9:return xt.next=11,$({type:"userDetail/getShixuns",payload:Object(U.a)({},V)});case 11:qe=xt.sent,qe&&(Ie(qe.count||0),Fe(qe.shixuns||[]));case 13:case"end":return xt.stop()}},_e)}));return function(Ge){return Ne.apply(this,arguments)}}(),Ra=((J=fe.pathname.split("/"))===null||J===void 0?void 0:J[3])||"classrooms";Object(I.useEffect)(function(){var Ne=at.a.subscribe("user-detail-search",function(){var _e=Object(d.a)(_.a.mark(function Ge(mt){var qe;return _.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!(Ra===mt.currentTabName)){xt.next=7;break}return qe={category:void 0,status:void 0,page:1,per_page:16,sort_by:"updated_at",sort_direction:"desc",username:je.current,search:mt.value},Se(qe),Bn(!1),xt.next=6,hn(qe);case 6:Bn(!0);case 7:case"end":return xt.stop()}},Ge)}));return function(Ge){return _e.apply(this,arguments)}}());return Ne},[we]);var hn=function(){var Ne=Object(d.a)(_.a.mark(function _e(Ge){var mt,qe;return _.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!((Ln==null?void 0:Ln.length)>0)){xt.next=7;break}return xt.next=3,$({type:"userDetail/getShixuns",payload:Object(U.a)(Object(U.a)({},Ge),{},{group_id:Ln[0]})});case 3:mt=xt.sent,mt&&(Ie(mt.count||0),Fe(mt.shixuns||[])),xt.next=11;break;case 7:return xt.next=9,$({type:"userDetail/getShixuns",payload:Ge});case 9:qe=xt.sent,qe&&(Ie(qe.count||0),Fe(qe.shixuns||[]));case 11:case"end":return xt.stop()}},_e)}));return function(Ge){return Ne.apply(this,arguments)}}(),Ma=function(_e){V.category=_e,V.page=1,Wn([]),Se(V),hn(V)},va=function(_e){V.status=_e,V.page=1,Se(V),hn(V),Wn([])},na=function(){V.sort_direction=V.sort_direction==="desc"?"asc":"desc",Se(V),hn(V)},Mn=function(_e){V.sort_by=_e,V.sort_direction="desc",Se(V),hn(V)},Kn=function(_e,Ge){V.page=_e,V.per_page=Ge,Se(V),hn(V)},aa=function(_e){D.a.confirm({width:416,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D6\u6D88\u6536\u85CF",icon:null,content:o.a.createElement("div",{className:"tc font14 ".concat(me.a.modalContent)},o.a.createElement("i",{className:"iconfont icon-jingshi1 font14 mr5 ".concat(me.a.colorFEB300)}),"\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u6536\u85CF\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF1F"),onOk:function(){var Ge=Object(d.a)(_.a.mark(function qe(){var Qt;return _.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(ie.j)({container_id:_e,container_type:"Shixun"});case 2:Qt=un.sent,(Qt==null?void 0:Qt.status)===0&&(ue.b.success("\u5DF2\u53D6\u6D88\u6536\u85CF"),hn(V));case 4:case"end":return un.stop()}},qe)}));function mt(){return Ge.apply(this,arguments)}return mt}()})},ba=function(_e){D.a.confirm({width:416,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u79FB\u9664\u5B9E\u8DF5\u9879\u76EE",icon:null,content:o.a.createElement("div",{className:"tc font14 ".concat(me.a.modalContent)},o.a.createElement("i",{className:"iconfont icon-jingshi1 font14 mr5 ".concat(me.a.colorFEB300)}),"\u786E\u5B9A\u5C06\u8BE5\u5B9E\u8DF5\u9879\u76EE\u4ECE\u5B66\u4E60\u5217\u8868\u4E2D\u79FB\u9664\uFF1F"),onOk:function(){var Ge=Object(d.a)(_.a.mark(function qe(){var Qt;return _.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object(Xt.e)({identifier:_e});case 2:Qt=un.sent,(Qt==null?void 0:Qt.status)===0&&(ue.b.success("\u5DF2\u79FB\u9664"),hn(V));case 4:case"end":return un.stop()}},qe)}));function mt(){return Ge.apply(this,arguments)}return mt}()})},Sa=function(_e){ma(Object(h.a)(_e))},Ta=function(_e,Ge){ja(Object(h.a)(_e)),pn([Ge]),Yt(!0)},la=function(){var _e=V.category=="collect"?"\u5171\u6536\u85CF":"\u5171\u53C2\u4E0E",Ge="";return V.category==="collect"&&(Ge=""),V.category==="manage"&&(Ge="\u53D1\u5E03"),V.category==="study"&&(Ge="\u5B66\u4E60"),V.category||(Ge="\u5B9E\u8DF5\u9879\u76EE"),"".concat(_e).concat(Ke,"\u4E2A").concat(Ge)},Vn=function(){return V.sort_by==="updated_at"?"\u6700\u65B0\u52A8\u6001":V.sort_by==="created_at"?"\u8BED\u8A00\u7C7B\u522B":V.sort_by==="name"?"\u540D\u79F0\u6392\u5E8F":""};return o.a.createElement("div",{className:me.a.wrap},V.search?o.a.createElement(o.a.Fragment,null,At&&o.a.createElement("div",{className:"font17 mt5 mb5"},o.a.createElement("span",{className:"c-grey-999"},"\u5173\u952E\u8BCD\uFF1A"),o.a.createElement("span",{className:"c-grey-333"},V.search," "),o.a.createElement("span",{className:"c-grey-999"},"\u5171\u627E\u5230"),o.a.createElement("span",{className:"c-grey-333"}," ",Ke," "),o.a.createElement("span",{className:"c-grey-999"},"\u95E8\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"))):o.a.createElement(o.a.Fragment,null,o.a.createElement(Ye,{params:V,isCurrent:we,handleChangeCategory:Ma,GroupList:qt,handleChangeStatus:va,setIsAdd:xn}),o.a.createElement("div",{style:{paddingTop:"10px",background:"#fff"}},we&&o.a.createElement(Wt,{item_banks_groups:qt==null?void 0:qt.groups,getItem:ta,user:A,groupIds:Ln,onChangeGroup:Hn})),o.a.createElement("div",{className:me.a.midWrap},o.a.createElement("div",null,o.a.createElement("span",{className:me.a.color999},la()),o.a.createElement(Y.a.Group,{className:"ml20 mr20 radio-group-sort-order",options:dn,onChange:function(_e){sn(_e.target.value),localStorage.setItem("ShixunShowType",_e.target.value)},value:An,optionType:"button",buttonStyle:"solid"}),o.a.createElement(ye.a,{style:{margin:"0px 20px"},to:"/shixuns/new"},o.a.createElement(w.a,{type:"primary",style:{height:"30px"}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),we&&o.a.createElement(w.a,{onClick:function(){var _e;if((Un==null?void 0:Un.length)<=0){ue.b.info(An===1?"\u8BF7\u5728\u5217\u8868\u6A21\u5F0F\u4E2D\u9009\u4E2D\u5B9E\u8BAD\u9879\u76EE\u52A0\u5165\u5206\u7EC4":"\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE");return}if((qt==null||((_e=qt.groups)===null||_e===void 0)?void 0:_e.length)<=0){ue.b.info("\u60A8\u5C1A\u672A\u521B\u5EFA\u4EFB\u4F55\u5206\u7EC4");return}Rn(!0)},type:"primary",ghost:!0,style:{width:"96px",height:"30px",borderRadius:"4px"}},"\u52A0\u5165\u5206\u7EC4")),o.a.createElement("div",{className:me.a.orderWrap},o.a.createElement(G.a,{overlay:o.a.createElement(E.a,null,o.a.createElement(E.a.Item,{onClick:function(){return Mn("updated_at")}},"\u6700\u65B0\u52A8\u6001"),o.a.createElement(E.a.Item,{onClick:function(){return Mn("created_at")}},"\u8BED\u8A00\u7C7B\u522B"),o.a.createElement(E.a.Item,{onClick:function(){return Mn("name")}},"\u540D\u79F0\u6392\u5E8F"))},o.a.createElement("span",{className:me.a.orderTextWrap},Vn())),o.a.createElement("span",{className:me.a.orderIconWrap},o.a.createElement("span",{className:me.a.orderAsc},o.a.createElement("i",{className:V.sort_direction==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(me.a.color0152d9," ").concat(me.a.h10," ").concat(me.a.cursorPointer):"iconfont icon-sanjiaoxing-up font12 ".concat(me.a.h10," ").concat(me.a.cursorPointer),onClick:function(){return na()}})),o.a.createElement("span",{className:me.a.orderDesc},o.a.createElement("i",{className:V.sort_direction==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(me.a.color0152d9," ").concat(me.a.h10," ").concat(me.a.cursorPointer):"iconfont icon-sanjiaoxing-down font12 ".concat(me.a.h10," ").concat(me.a.cursorPointer),onClick:function(){return na()}})))))),o.a.createElement(Ee.a,{loading:de["userDetail/getShixuns"],active:!0,paragraph:{rows:5}},An===1&&o.a.createElement("div",{className:me.a.cardWrap},!(Ze!=null&&Ze.length)&&(V.category||V.search)&&o.a.createElement(oe.a,null),o.a.createElement(ve,{data:Ze,params:V,user:A,onRemove:ba,onCancelCollect:aa})),An!=1&&o.a.createElement("div",{className:"mt10",style:{minHeight:400}},o.a.createElement(Tt,{number:(V.page-1)*V.per_page,onRemove:ba,user:A,isCurrent:we,onCancelCollect:aa,setGroupIds:Sa,setUnGrouplists:Ta,params:V,data:Ze})),Ke>0&&o.a.createElement("div",{className:me.a.countWrap},o.a.createElement(ge.a,{showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","20","50","100","200"],hideOnSinglePage:!0,total:Ke,onChange:function(_e,Ge){Kn(_e,Ge)},pageSize:V.per_page,current:V.page}))),o.a.createElement(D.a,{visible:Yn,title:"\u65B0\u5EFA\u5206\u7EC4",onCancel:function(){xn(!1)},footer:o.a.createElement("div",{style:{textAlign:"end"}},o.a.createElement(w.a,{type:"primary",onClick:Object(d.a)(_.a.mark(function Ne(){var _e,Ge;return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Object(Lt.a)("/api/users/".concat(A==null||((_e=A.userInfo)===null||_e===void 0)?void 0:_e.login,"/user_setting_groups.json"),{method:"post",body:{type:"Shixun",name:pa}});case 2:Ge=qe.sent,(Ge==null?void 0:Ge.status)===0&&(ue.b.info("\u521B\u5EFA\u5206\u7EC4\u6210\u529F"),xn(!1),sa(""),ta());case 4:case"end":return qe.stop()}},Ne)}))},"\u786E\u8BA4"))},o.a.createElement(q.a,{value:pa,onChange:function(_e){sa(_e.target.value)},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u4E2A\u5B57\u7684\u5206\u7EC4\u540D\u79F0",maxLength:20})),o.a.createElement(D.a,{visible:ra,title:"\u52A0\u5165\u5206\u7EC4",onCancel:function(){Rn(!1)},footer:o.a.createElement("div",{style:{textAlign:"end"}},o.a.createElement(w.a,{type:"primary",onClick:Object(d.a)(_.a.mark(function Ne(){var _e,Ge;return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!((In==null?void 0:In.length)<=0)){qe.next=3;break}return ue.b.info("\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u7684\u5206\u7EC4"),qe.abrupt("return");case 3:return qe.next=5,Object(Lt.a)("/api/users/".concat(A==null||((_e=A.userInfo)===null||_e===void 0)?void 0:_e.login,"/user_setting_groups/join.json"),{method:"post",body:{type:"Shixun",group_ids:In,item_ids:Un}});case 5:Ge=qe.sent,(Ge==null?void 0:Ge.status)===0&&ue.b.info("\u52A0\u5165\u6210\u529F"),Hn(Ln),qn([]),Rn(!1),ma([]);case 11:case"end":return qe.stop()}},Ne)}))},"\u786E\u8BA4"))},o.a.createElement("div",null,o.a.createElement("span",null,"\u8BF7\u9009\u62E9\u9700\u8981\u52A0\u5165\u7684\u5206\u7EC4"),o.a.createElement("br",null),o.a.createElement(p.a.Group,{value:In,onChange:function(_e){qn(Object(h.a)(_e))},style:{marginTop:"20px"}},o.a.createElement(O.a,{style:{width:"400px"}},qt==null||((Z=qt.groups)===null||Z===void 0)?void 0:Z.map(function(Ne,_e){return o.a.createElement(y.a,{span:6,style:{marginTop:"10px"}},o.a.createElement(p.a,{value:Ne.id,style:{fontSize:"14px"}},Ne.name))}))))),o.a.createElement(D.a,{visible:fn,title:"\u64A4\u9500\u5206\u7EC4",onCancel:function(){Yt(!1)},footer:o.a.createElement("div",{style:{textAlign:"end"}},o.a.createElement(w.a,{type:"primary",onClick:Object(d.a)(_.a.mark(function Ne(){var _e,Ge;return _.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!((zn==null?void 0:zn.length)<=0)){qe.next=3;break}return ue.b.info("\u8BF7\u9009\u62E9\u8981\u64A4\u9500\u7684\u5206\u7EC4"),qe.abrupt("return");case 3:return qe.next=5,Object(Lt.a)("/api/users/".concat(A==null||((_e=A.userInfo)===null||_e===void 0)?void 0:_e.login,"/user_setting_groups/cancel.json"),{method:"post",body:{type:"Shixun",group_ids:zn,item_ids:Cn}});case 5:Ge=qe.sent,(Ge==null?void 0:Ge.status)===0&&ue.b.info("\u64A4\u9500\u6210\u529F"),hn(V),xa([]),Yt(!1),pn([]);case 11:case"end":return qe.stop()}},Ne)}))},"\u786E\u8BA4"))},o.a.createElement("div",null,o.a.createElement("span",null,"\u8BF7\u9009\u62E9\u9700\u8981\u64A4\u9500\u7684\u5206\u7EC4"),o.a.createElement("br",null),o.a.createElement(p.a.Group,{value:zn,onChange:function(_e){xa(Object(h.a)(_e))},style:{marginTop:"20px"}},o.a.createElement(O.a,{style:{width:"400px"}},ea==null?void 0:ea.map(function(Ne,_e){return o.a.createElement(y.a,{span:6,style:{marginTop:"10px"}},o.a.createElement(p.a,{value:Ne.id,style:{fontSize:"14px"}},Ne.name))}))))))},C=ne.default=Object(xe.a)(function(W){var P=W.user,te=W.userDetail,H=W.loading,J=W.globalSetting;return{user:P,userDetail:te,globalSetting:J,loading:H.effects}})(bn)},"3sJ3":function(it,ne,n){it.exports={flex_box_center:"flex_box_center___3gkxV",flex_space_between:"flex_space_between___1IN16",flex_box_vertical_center:"flex_box_vertical_center___3gLMP",flex_box_center_end:"flex_box_center_end___d6Wgo",flex_box_column:"flex_box_column___IITJ9",wrap:"wrap___3DzL5",createIconWrap:"createIconWrap___3OA3J",createIcon:"createIcon___ogt6a",leftIcon:"leftIcon___1TF-X",rightIcon:"rightIcon___2YEHD",createTextWrap:"createTextWrap___2-HO1",createText:"createText___bHXlY",tagWrap:"tagWrap___3kzbC",tagName:"tagName___2LIDr",tagJupyterWrap:"tagJupyterWrap___1bgZt",tagJupyterNameWrap:"tagJupyterNameWrap___2T3n6",tagJupyterName:"tagJupyterName___2we8m",imgWrap:"imgWrap___2BB0e",cardBottom:"cardBottom___6AmMS",bottomNameWrap:"bottomNameWrap___L1SgZ",bottomName:"bottomName___4eZcA",bottomCountProgressWrap:"bottomCountProgressWrap___3TbUI",bottomCount:"bottomCount___3KA22",action:"action___3ckRO",colorFF8E02:"colorFF8E02___3BQYK"}},"55Ip":function(it,ne,n){"use strict";n.d(ne,"a",function(){return z}),n.d(ne,"b",function(){return U});var R=n("Ty5D"),O=n("dI71"),Oe=n("q1tI"),y=n.n(Oe),r=n("YS25"),p=n("17x9"),re=n.n(p),q=n("wx14"),T=n("zLVn"),Ee=n("9R94"),ee=function(d){Object(O.a)(s,d);function s(){for(var M,_=arguments.length,I=new Array(_),o=0;o<_;o++)I[o]=arguments[o];return M=d.call.apply(d,[this].concat(I))||this,M.history=Object(r.a)(M.props),M}var x=s.prototype;return x.render=function(){return y.a.createElement(R.c,{history:this.history,children:this.props.children})},s}(y.a.Component),ge=function(d){Object(O.a)(s,d);function s(){for(var M,_=arguments.length,I=new Array(_),o=0;o<_;o++)I[o]=arguments[o];return M=d.call.apply(d,[this].concat(I))||this,M.history=Object(r.b)(M.props),M}var x=s.prototype;return x.render=function(){return y.a.createElement(R.c,{history:this.history,children:this.props.children})},s}(y.a.Component),Ce=function(s,x){return typeof s=="function"?s(x):s},G=function(s,x){return typeof s=="string"?Object(r.c)(s,null,null,x):s},j=function(s){return s},E=y.a.forwardRef;typeof E=="undefined"&&(E=j);function Q(d){return!!(d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)}var w=E(function(d,s){var x=d.innerRef,M=d.navigate,_=d.onClick,I=Object(T.a)(d,["innerRef","navigate","onClick"]),o=I.target,ae=Object(q.a)({},I,{onClick:function(xe){try{_&&_(xe)}catch(nt){throw xe.preventDefault(),nt}!xe.defaultPrevented&&xe.button===0&&(!o||o==="_self")&&!Q(xe)&&(xe.preventDefault(),M())}});return j!==E?ae.ref=s||x:ae.ref=x,y.a.createElement("a",ae)}),z=E(function(d,s){var x=d.component,M=x===void 0?w:x,_=d.replace,I=d.to,o=d.innerRef,ae=Object(T.a)(d,["component","replace","to","innerRef"]);return y.a.createElement(R.e.Consumer,null,function(ye){ye||Object(Ee.a)(!1);var xe=ye.history,nt=G(Ce(I,ye.location),ye.location),me=nt?xe.createHref(nt):"",oe=Object(q.a)({},ae,{href:me,navigate:function(){var ze=Ce(I,ye.location),Ve=_?xe.replace:xe.push;Ve(ze)}});return j!==E?oe.ref=s||o:oe.innerRef=o,y.a.createElement(M,oe)})});if(!1)var Y,B;var ue=function(s){return s},N=y.a.forwardRef;typeof N=="undefined"&&(N=ue);function D(){for(var d=arguments.length,s=new Array(d),x=0;x=0||_.relatedTarget.className.indexOf("".concat(ye,"-next"))>=0))return;d.setState({goInputText:""}),ae(d.getValidValue())},d.go=function(_){var I=d.state.goInputText;if(I==="")return;(_.keyCode===G.ENTER||_.type==="click")&&(d.setState({goInputText:""}),d.props.quickGo(d.getValidValue()))},d}return Object(r.a)(h,[{key:"getValidValue",value:function(){var s=this.state,x=s.goInputText,M=s.current;return!x||isNaN(x)?M:Number(x)}},{key:"getPageSizeOptions",value:function(){var s=this.props,x=s.pageSize,M=s.pageSizeOptions;return M.some(function(_){return _.toString()===x.toString()})?M:M.concat([x.toString()]).sort(function(_,I){var o=isNaN(Number(_))?0:Number(_),ae=isNaN(Number(I))?0:Number(I);return o-ae})}},{key:"render",value:function(){var s=this,x=this.props,M=x.pageSize,_=x.locale,I=x.rootPrefixCls,o=x.changeSize,ae=x.quickGo,ye=x.goButton,xe=x.selectComponentClass,nt=x.buildOptionText,me=x.selectPrefixCls,oe=x.disabled,Le=this.state.goInputText,ze="".concat(I,"-options"),Ve=xe,He=null,ie=null,ce=null;if(!o&&!ae)return null;var se=this.getPageSizeOptions();if(o&&Ve){var pe=se.map(function(L,k){return T.a.createElement(Ve.Option,{key:k,value:L.toString()},(nt||s.buildOptionText)(L))});He=T.a.createElement(Ve,{disabled:oe,prefixCls:me,showSearch:!1,className:"".concat(ze,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(M||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(k){return k.parentNode}},pe)}return ae&&(ye&&(ce=typeof ye=="boolean"?T.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:oe,className:"".concat(ze,"-quick-jumper-button")},_.jump_to_confirm):T.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ye)),ie=T.a.createElement("div",{className:"".concat(ze,"-quick-jumper")},_.jump_to,T.a.createElement("input",{disabled:oe,type:"text",value:Le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),_.page,ce)),T.a.createElement("li",{className:"".concat(ze)},He,ie)}}]),h}(T.a.Component);j.defaultProps={pageSizeOptions:["10","20","50","100"]};var E=j,Q=n("N2Kk");function w(){}function z(D){return typeof D=="number"&&isFinite(D)&&Math.floor(D)===D}function Y(D,U,h){return h}function B(D,U,h){var d=typeof D=="undefined"?U.pageSize:D;return Math.floor((h.total-1)/d)+1}var ue=function(D){Object(p.a)(h,D);var U=Object(re.a)(h);function h(d){var s;Object(y.a)(this,h),s=U.call(this,d),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(B(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(o,ae){var ye=s.props.prefixCls,xe=o||T.a.createElement("button",{type:"button","aria-label":ae,className:"".concat(ye,"-item-link")});return typeof o=="function"&&(xe=T.a.createElement(o,Object(Oe.a)({},s.props))),xe},s.savePaginationNode=function(o){s.paginationNode=o},s.isValid=function(o){return z(o)&&o!==s.state.current},s.shouldDisplayQuickJumper=function(){var o=s.props,ae=o.showQuickJumper,ye=o.pageSize,xe=o.total;return xe<=ye?!1:ae},s.handleKeyDown=function(o){(o.keyCode===G.ARROW_UP||o.keyCode===G.ARROW_DOWN)&&o.preventDefault()},s.handleKeyUp=function(o){var ae=s.getValidValue(o),ye=s.state.currentInputValue;ae!==ye&&s.setState({currentInputValue:ae}),o.keyCode===G.ENTER?s.handleChange(ae):o.keyCode===G.ARROW_UP?s.handleChange(ae-1):o.keyCode===G.ARROW_DOWN&&s.handleChange(ae+1)},s.changePageSize=function(o){var ae=s.state.current,ye=B(o,s.state,s.props);ae=ae>ye?ye:ae,ye===0&&(ae=s.state.current),typeof o=="number"&&("pageSize"in s.props||s.setState({pageSize:o}),"current"in s.props||s.setState({current:ae,currentInputValue:ae})),s.props.onShowSizeChange(ae,o),"onChange"in s.props&&s.props.onChange&&s.props.onChange(ae,o)},s.handleChange=function(o){var ae=s.props.disabled,ye=o;if(s.isValid(ye)&&!ae){var xe=B(void 0,s.state,s.props);ye>xe?ye=xe:ye<1&&(ye=1),"current"in s.props||s.setState({current:ye,currentInputValue:ye});var nt=s.state.pageSize;return s.props.onChange(ye,nt),ye}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?ye-2:0),nt=2;nt=M?I=M:I=Number(x),I}},{key:"getShowSizeChanger",value:function(){var s=this.props,x=s.showSizeChanger,M=s.total,_=s.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:M>_}},{key:"renderPrev",value:function(s){var x=this.props,M=x.prevIcon,_=x.itemRender,I=_(s,"prev",this.getItemIcon(M,"prev page")),o=!this.hasPrev();return Object(q.isValidElement)(I)?Object(q.cloneElement)(I,{disabled:o}):I}},{key:"renderNext",value:function(s){var x=this.props,M=x.nextIcon,_=x.itemRender,I=_(s,"next",this.getItemIcon(M,"next page")),o=!this.hasNext();return Object(q.isValidElement)(I)?Object(q.cloneElement)(I,{disabled:o}):I}},{key:"render",value:function(){var s=this,x=this.props,M=x.prefixCls,_=x.className,I=x.style,o=x.disabled,ae=x.hideOnSinglePage,ye=x.total,xe=x.locale,nt=x.showQuickJumper,me=x.showLessItems,oe=x.showTitle,Le=x.showTotal,ze=x.simple,Ve=x.itemRender,He=x.showPrevNextJumpers,ie=x.jumpPrevIcon,ce=x.jumpNextIcon,se=x.selectComponentClass,pe=x.selectPrefixCls,L=x.pageSizeOptions,k=this.state,ve=k.current,Xe=k.pageSize,et=k.currentInputValue;if(ae===!0&&ye<=Xe)return null;var he=B(void 0,this.state,this.props),$e=[],gt=null,ct=null,Tt=null,Ut=null,Me=null,Ye=nt&&nt.goButton,at=me?1:2,Xt=ve-1>0?ve-1:0,Lt=ve+1=at*2&&ve!==1+2&&($e[0]=Object(q.cloneElement)($e[0],{className:"".concat(M,"-item-after-jump-prev")}),$e.unshift(gt)),he-ve>=at*2&&ve!==he-2&&($e[$e.length-1]=Object(q.cloneElement)($e[$e.length-1],{className:"".concat(M,"-item-before-jump-next")}),$e.push(ct)),P!==1&&$e.unshift(Tt),te!==he&&$e.push(Ut)}var Z=null;Le&&(Z=T.a.createElement("li",{className:"".concat(M,"-total-text")},Le(ye,[ye===0?0:(ve-1)*Xe+1,ve*Xe>ye?ye:ve*Xe])));var A=!this.hasPrev()||!he,X=!this.hasNext()||!he;return T.a.createElement("ul",Object(R.a)({className:ee()(M,_,Object(O.a)({},"".concat(M,"-disabled"),o)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},$t),Z,T.a.createElement("li",{title:oe?xe.prev_page:null,onClick:this.prev,tabIndex:A?null:0,onKeyPress:this.runIfEnterPrev,className:ee()("".concat(M,"-prev"),Object(O.a)({},"".concat(M,"-disabled"),A)),"aria-disabled":A},this.renderPrev(Xt)),$e,T.a.createElement("li",{title:oe?xe.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:ee()("".concat(M,"-next"),Object(O.a)({},"".concat(M,"-disabled"),X)),"aria-disabled":X},this.renderNext(Lt)),T.a.createElement(E,{disabled:o,locale:xe,rootPrefixCls:M,selectComponentClass:se,selectPrefixCls:pe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ve,pageSize:Xe,pageSizeOptions:L,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ye}))}}],[{key:"getDerivedStateFromProps",value:function(s,x){var M={};if("current"in s&&(M.current=s.current,s.current!==x.current&&(M.currentInputValue=M.current)),"pageSize"in s&&s.pageSize!==x.pageSize){var _=x.current,I=B(s.pageSize,x,s);_=_>I?I:_,"current"in s||(M.current=_,M.currentInputValue=_),M.pageSize=s.pageSize}return M}}]),h}(T.a.Component);ue.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:w,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:w,locale:Q.a,style:{},itemRender:Y,totalBoundaryShowSizeChanger:50};var N=ue},"6RRn":function(it,ne,n){"use strict";var R=n("wCXF"),O=n("n6Qo");n.d(ne,"b",function(){return O.a});var Oe=n("IBYe"),y=n("6eGT"),r=n("hW8S");n.d(ne,"a",function(){return r.a}),ne.c=R.b},"6eGT":function(it,ne,n){"use strict";function R(O){return null}ne.a=R},"815F":function(it,ne,n){"use strict";n.d(ne,"e",function(){return re}),n.d(ne,"c",function(){return T}),n.d(ne,"d",function(){return Ee}),n.d(ne,"a",function(){return ge}),n.d(ne,"f",function(){return Ce}),n.d(ne,"b",function(){return G});var R=n("KQm4"),O=n("VTBJ"),Oe=n("Ff2n"),y=n("Zm9Q"),r=n("Kwbf"),p=n("OZM5");function re(j,E){return j!=null?j:E}function q(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=new Map;function Q(w){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(w||[]).forEach(function(Y){var B=Y.key,ue=Y.children;Object(r.a)(B!=null,"Tree node must have a certain key: [".concat(z).concat(B,"]"));var N=String(B);Object(r.a)(!E.has(N)||B===null||B===void 0,"Same 'key' exist in the Tree: ".concat(N)),E.set(N,!0),Q(ue,"".concat(z).concat(N," > "))})}Q(j)}function T(j){function E(Q){var w=Object(y.a)(Q);return w.map(function(z){if(!Object(p.i)(z))return Object(r.a)(!z,"Tree/TreeNode can only accept TreeNode as children."),null;var Y=z.key,B=z.props,ue=B.children,N=Object(Oe.a)(B,["children"]),D=Object(O.a)({key:Y},N),U=E(ue);return U.length&&(D.children=U),D}).filter(function(z){return z})}return E(j)}function Ee(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Q=new Set(E===!0?[]:E),w=[];function z(Y){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Y.map(function(ue,N){var D=Object(p.h)(B?B.pos:"0",N),U=re(ue.key,D),h=Object(O.a)(Object(O.a)({},ue),{},{parent:B,pos:D,children:null,data:ue,isStart:[].concat(Object(R.a)(B?B.isStart:[]),[N===0]),isEnd:[].concat(Object(R.a)(B?B.isEnd:[]),[N===Y.length-1])});return w.push(h),E===!0||Q.has(U)?h.children=z(ue.children||[],h):h.children=[],h})}return z(j),w}function ee(j,E,Q){var w;Q?typeof Q=="string"?w=function(B){return B[Q]}:typeof Q=="function"&&(w=function(B){return Q(B)}):w=function(B,ue){return re(B.key,ue)};function z(Y,B,ue){var N=Y?Y.children:j,D=Y?Object(p.h)(ue.pos,B):"0";if(Y){var U=w(Y,D),h={node:Y,index:B,pos:D,key:U,parentPos:ue.node?ue.pos:null,level:ue.level+1};E(h)}N&&N.forEach(function(d,s){z(d,s,{node:Y,pos:D,level:ue?ue.level+1:-1})})}z(null)}function ge(j){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=E.initWrapper,w=E.processEntity,z=E.onProcessFinished,Y=arguments.length>2?arguments[2]:void 0,B={},ue={},N={posEntities:B,keyEntities:ue};return Q&&(N=Q(N)||N),ee(j,function(D){var U=D.node,h=D.index,d=D.pos,s=D.key,x=D.parentPos,M=D.level,_={node:U,index:h,key:s,pos:d,level:M},I=re(s,d);B[d]=_,ue[I]=_,_.parent=B[x],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),w&&w(_,N)},Y),z&&z(N),N}function Ce(j,E){var Q=E.expandedKeys,w=E.selectedKeys,z=E.loadedKeys,Y=E.loadingKeys,B=E.checkedKeys,ue=E.halfCheckedKeys,N=E.dragOverNodeKey,D=E.dropPosition,U=E.keyEntities,h=U[j],d={eventKey:j,expanded:Q.indexOf(j)!==-1,selected:w.indexOf(j)!==-1,loaded:z.indexOf(j)!==-1,loading:Y.indexOf(j)!==-1,checked:B.indexOf(j)!==-1,halfChecked:ue.indexOf(j)!==-1,pos:String(h?h.pos:""),dragOver:N===j&&D===0,dragOverGapTop:N===j&&D===-1,dragOverGapBottom:N===j&&D===1};return d}function G(j){var E=j.data,Q=j.expanded,w=j.selected,z=j.checked,Y=j.loaded,B=j.loading,ue=j.halfChecked,N=j.dragOver,D=j.dragOverGapTop,U=j.dragOverGapBottom,h=j.pos,d=j.active,s=Object(O.a)(Object(O.a)({},E),{},{expanded:Q,selected:w,checked:z,loaded:Y,loading:B,halfChecked:ue,dragOver:N,dragOverGapTop:D,dragOverGapBottom:U,pos:h,active:d});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),j}}),s}},"9fAY":function(it,ne,n){it.exports={flex_box_center:"flex_box_center___p9iz2",flex_space_between:"flex_space_between___3mzmJ",flex_box_vertical_center:"flex_box_vertical_center___36VFg",flex_box_center_end:"flex_box_center_end___2WYXc",flex_box_column:"flex_box_column___2CyQz",wrap:"wrap___2QHms",midWrap:"midWrap___2Sk7q",color999:"color999___7iDjY",orderWrap:"orderWrap___128Yt",orderIconWrap:"orderIconWrap___lJ5Mg",orderAsc:"orderAsc___1lCCX",orderDesc:"orderDesc___3tYZ1",color0152d9:"color0152d9___2Bd_I",h10:"h10___3dqqs",cursorPointer:"cursorPointer___hDVBN",orderTextWrap:"orderTextWrap___1H7oi",cardWrap:"cardWrap___143Dz",countWrap:"countWrap___3wdvz",colorFEB300:"colorFEB300___1k3Vw",modalContent:"modalContent___30WaT"}},BU3w:function(it,ne,n){"use strict";n.d(ne,"a",function(){return p});var R=n("MNnm"),O="rc-util-key";function Oe(re){if(re.attachTo)return re.attachTo;var q=document.querySelector("head");return q||document.body}function y(re){var q,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var Ee=document.createElement("style");if((q=T.csp)===null||q===void 0?void 0:q.nonce){var ee;Ee.nonce=(ee=T.csp)===null||ee===void 0?void 0:ee.nonce}Ee.innerHTML=re;var ge=Oe(T),Ce=ge.firstChild;return T.prepend&&ge.prepend?ge.prepend(Ee):T.prepend&&Ce?ge.insertBefore(Ee,Ce):ge.appendChild(Ee),Ee}var r=new Map;function p(re,q){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ee=Oe(T);if(!r.has(Ee)){var ee=y("",T),ge=ee.parentNode;r.set(Ee,ge),ge.removeChild(ee)}var Ce=Array.from(r.get(Ee).children).find(function(w){return w.tagName==="STYLE"&&w[O]===q});if(Ce){var G,j;if(((G=T.csp)===null||G===void 0?void 0:G.nonce)&&Ce.nonce!==((j=T.csp)===null||j===void 0?void 0:j.nonce)){var E;Ce.nonce=(E=T.csp)===null||E===void 0?void 0:E.nonce}return Ce.innerHTML!==re&&(Ce.innerHTML=re),Ce}var Q=y(re,T);return Q[O]=q,Q}},BdwD:function(it,ne,n){"use strict";var R=n("+L6B"),O=n("2/Rp"),Oe=n("0Owb"),y=n("k1fw"),r=n("q1tI"),p=n.n(r),re=n("FOrL"),q=n.n(re),T=function(ee){var ge=ee.buttonProps,Ce=ge===void 0?{}:ge,G=ee.styles,j=G===void 0?{}:G,E=ee.customText,Q=ee.ButtonText,w=ee.ButtonClick,z=ee.Buttonclass,Y=ee.ButtonTwo;return p.a.createElement("section",{className:"tc animated fadeIn",style:Object(y.a)(Object(y.a)({},{color:"#999",margin:"200px auto"}),j)},p.a.createElement("img",{src:q.a}),p.a.createElement("p",{className:"mt20 font14"},E||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Q&&p.a.createElement(O.a,Object(Oe.a)({className:z,onClick:w},Ce),Q),Y&&Y)};ne.a=T},FOrL:function(it,ne,n){it.exports=n.p+"static/nodata.a6b3f948.png"},IBYe:function(it,ne,n){"use strict";function R(O){return null}ne.a=R},LG5J:function(it,ne,n){it.exports={flex_box_center:"flex_box_center___2pVBD",flex_space_between:"flex_space_between___kEQXU",flex_box_vertical_center:"flex_box_vertical_center___3rPAa",flex_box_center_end:"flex_box_center_end___1u9G4",flex_box_column:"flex_box_column___cCYmU",searchBar:"searchBar___2SiWd",active:"active___wyF4j",searchBarBorder:"searchBarBorder___oMJaw",firstLi:"firstLi___2ZvNi",otherLi:"otherLi___30VUP"}},LdHM:function(it,ne,n){"use strict";n.d(ne,"b",function(){return Y}),n.d(ne,"a",function(){return ue});var R=n("1OyB"),O=n("vuIU"),Oe=n("Ji7U"),y=n("LK+K"),r=n("q1tI"),p=n("rePB"),re=n("Ff2n"),q=n("ODXe"),T=n("4IlW"),Ee=n("bX4T"),ee=n("YrtM"),ge=n("TSYQ"),Ce=n.n(ge),G=n("+nKL"),j=n("8OUc"),E=function(oe,Le){var ze=oe.prefixCls,Ve=oe.id,He=oe.flattenOptions,ie=oe.childrenAsData,ce=oe.values,se=oe.searchValue,pe=oe.multiple,L=oe.defaultActiveFirstOption,k=oe.height,ve=oe.itemHeight,Xe=oe.notFoundContent,et=oe.open,he=oe.menuItemSelectedIcon,$e=oe.virtual,gt=oe.onSelect,ct=oe.onToggleOpen,Tt=oe.onActiveValue,Ut=oe.onScroll,Me=oe.onMouseEnter,Ye="".concat(ze,"-item"),at=Object(ee.a)(function(){return He},[et,He],function(J,Z){return Z[0]&&J[1]!==Z[1]}),Xt=r.useRef(null),Lt=function(Z){Z.preventDefault()},$t=function(Z){Xt.current&&Xt.current.scrollTo({index:Z})},vt=function(Z){for(var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=at.length,be=0;be1&&arguments[1]!==void 0?arguments[1]:!1;return Object(D.a)(me).map(function(Le,ze){if(!r.isValidElement(Le)||!Le.type)return null;var Ve=Le.type.isSelectOptGroup,He=Le.key,ie=Le.props,ce=ie.children,se=Object(re.a)(ie,["children"]);return oe||!Ve?U(Le):Object(N.a)(Object(N.a)({key:"__RC_SELECT_GRP__".concat(He===null?ze:He,"__"),label:He},se),{},{options:h(ce)})}).filter(function(Le){return Le})}var d=n("2Qr1"),s=n("qNPg"),x=n("U8pU"),M=n("Kwbf"),_=n("WKfj");function I(me){var oe=me.mode,Le=me.options,ze=me.children,Ve=me.backfill,He=me.allowClear,ie=me.placeholder,ce=me.getInputElement,se=me.showSearch,pe=me.onSearch,L=me.defaultOpen,k=me.autoFocus,ve=me.labelInValue,Xe=me.value,et=me.inputValue,he=me.optionLabelProp,$e=oe==="multiple"||oe==="tags",gt=se!==void 0?se:$e||oe==="combobox",ct=Le||h(ze);if(Object(M.a)(oe!=="tags"||ct.every(function(Ye){return!Ye.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),oe==="tags"||oe==="combobox"){var Tt=ct.some(function(Ye){return Ye.options?Ye.options.some(function(at){return typeof("value"in at?at.value:at.key)=="number"}):typeof("value"in Ye?Ye.value:Ye.key)=="number"});Object(M.a)(!Tt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)(oe!=="combobox"||!he,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)(oe==="combobox"||!Ve,"`backfill` only works with `combobox` mode."),Object(M.a)(oe==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(M.b)(oe!=="combobox"||!ce||!He||!ie,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pe&&!gt&&oe!=="combobox"&&oe!=="tags"&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!L||k,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Xe!=null){var Ut=Object(_.d)(Xe);Object(M.a)(!ve||Ut.every(function(Ye){return Object(x.a)(Ye)==="object"&&("key"in Ye||"value"in Ye)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!$e||Array.isArray(Xe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ze){var Me=null;Object(D.a)(ze).some(function(Ye){if(!r.isValidElement(Ye)||!Ye.type)return!1;var at=Ye.type;if(at.isSelectOption)return!1;if(at.isSelectOptGroup){var Xt=Object(D.a)(Ye.props.children).every(function(Lt){return!r.isValidElement(Lt)||!Ye.type||Lt.type.isSelectOption?!0:(Me=Lt.type,!1)});return!Xt}return Me=at,!0}),Me&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Me.displayName||Me.name||Me,"`.")),Object(M.a)(et===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var o=I,ae=Object(s.a)({prefixCls:"rc-select",components:{optionList:w},convertChildrenToData:h,flattenOptions:d.d,getLabeledValue:d.e,filterOptions:d.b,isValueDisabled:d.g,findValueOption:d.c,warningProps:o,fillOptionsWithMissingValue:d.a}),ye=function(me){Object(Oe.a)(Le,me);var oe=Object(y.a)(Le);function Le(){var ze;return Object(R.a)(this,Le),ze=oe.apply(this,arguments),ze.selectRef=r.createRef(),ze.focus=function(){ze.selectRef.current.focus()},ze.blur=function(){ze.selectRef.current.blur()},ze}return Object(O.a)(Le,[{key:"render",value:function(){return r.createElement(ae,Object.assign({ref:this.selectRef},this.props))}}]),Le}(r.Component);ye.Option=Y,ye.OptGroup=ue;var xe=ye,nt=ne.c=xe},NvD2:function(it,ne,n){"use strict";n.d(ne,"a",function(){return p});var R=n("Kwbf");function O(re,q){var T=new Set;return re.forEach(function(Ee){q.has(Ee)||T.add(Ee)}),T}function Oe(re){var q=re||{},T=q.disabled,Ee=q.disableCheckbox,ee=q.checkable;return!!(T||Ee)||ee===!1}function y(re,q,T,Ee){for(var ee=new Set(re),ge=new Set,Ce=0;Ce<=T;Ce+=1){var G=q.get(Ce)||new Set;G.forEach(function(w){var z=w.key,Y=w.node,B=w.children,ue=B===void 0?[]:B;ee.has(z)&&!Ee(Y)&&ue.filter(function(N){return!Ee(N.node)}).forEach(function(N){ee.add(N.key)})})}for(var j=new Set,E=T;E>=0;E-=1){var Q=q.get(E)||new Set;Q.forEach(function(w){var z=w.parent,Y=w.node;if(Ee(Y)||!w.parent||j.has(w.parent.key))return;if(Ee(w.parent.node)){j.add(z.key);return}var B=!0,ue=!1;(z.children||[]).filter(function(N){return!Ee(N.node)}).forEach(function(N){var D=N.key,U=ee.has(D);B&&!U&&(B=!1),!ue&&(U||ge.has(D))&&(ue=!0)}),B&&ee.add(z.key),ue&&ge.add(z.key),j.add(z.key)})}return{checkedKeys:Array.from(ee),halfCheckedKeys:Array.from(O(ge,ee))}}function r(re,q,T,Ee,ee){for(var ge=new Set(re),Ce=new Set(q),G=0;G<=Ee;G+=1){var j=T.get(G)||new Set;j.forEach(function(z){var Y=z.key,B=z.node,ue=z.children,N=ue===void 0?[]:ue;!ge.has(Y)&&!Ce.has(Y)&&!ee(B)&&N.filter(function(D){return!ee(D.node)}).forEach(function(D){ge.delete(D.key)})})}Ce=new Set;for(var E=new Set,Q=Ee;Q>=0;Q-=1){var w=T.get(Q)||new Set;w.forEach(function(z){var Y=z.parent,B=z.node;if(ee(B)||!z.parent||E.has(z.parent.key))return;if(ee(z.parent.node)){E.add(Y.key);return}var ue=!0,N=!1;(Y.children||[]).filter(function(D){return!ee(D.node)}).forEach(function(D){var U=D.key,h=ge.has(U);ue&&!h&&(ue=!1),!N&&(h||Ce.has(U))&&(N=!0)}),ue||ge.delete(Y.key),N&&Ce.add(Y.key),E.add(Y.key)})}return{checkedKeys:Array.from(ge),halfCheckedKeys:Array.from(O(Ce,ge))}}function p(re,q,T,Ee){var ee=[],ge;Ee?ge=Ee:ge=Oe;var Ce=new Set(re.filter(function(Q){var w=!!T[Q];return w||ee.push(Q),w})),G=new Map,j=0;Object.keys(T).forEach(function(Q){var w=T[Q],z=w.level,Y=G.get(z);Y||(Y=new Set,G.set(z,Y)),Y.add(w),j=Math.max(j,z)}),Object(R.a)(!ee.length,"Tree missing follow keys: ".concat(ee.slice(0,100).map(function(Q){return"'".concat(Q,"'")}).join(", ")));var E;return q===!0?E=y(Ce,G,j,ge):E=r(Ce,q.halfCheckedKeys,G,j,ge),E}},OZM5:function(it,ne,n){"use strict";n.d(ne,"b",function(){return Ee}),n.d(ne,"a",function(){return ee}),n.d(ne,"k",function(){return ge}),n.d(ne,"h",function(){return Ce}),n.d(ne,"i",function(){return G}),n.d(ne,"g",function(){return j}),n.d(ne,"c",function(){return E}),n.d(ne,"d",function(){return Q}),n.d(ne,"j",function(){return Y}),n.d(ne,"e",function(){return B}),n.d(ne,"f",function(){return ue});var R=n("KQm4"),O=n("U8pU"),Oe=n("Ff2n"),y=n("q1tI"),r=n.n(y),p=n("Kwbf"),re=n("WaYH"),q=.25,T=2;function Ee(N,D){var U=N.slice(),h=U.indexOf(D);return h>=0&&U.splice(h,1),U}function ee(N,D){var U=N.slice();return U.indexOf(D)===-1&&U.push(D),U}function ge(N){return N.split("-")}function Ce(N,D){return"".concat(N,"-").concat(D)}function G(N){return N&&N.type&&N.type.isTreeNode}function j(N,D){var U=[N],h=D[N];function d(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(x){var M=x.key,_=x.children;U.push(M),d(_)})}return d(h.children),U}function E(N,D){var U=N.clientY,h=D.selectHandle.getBoundingClientRect(),d=h.top,s=h.bottom,x=h.height,M=Math.max(x*q,T);return U<=d+M?-1:U>=s-M?1:0}function Q(N,D){if(!N)return;var U=D.multiple;return U?N.slice():N.length?[N[0]]:N}var w=function(D){return D};function z(N,D){if(!N)return[];var U=D||{},h=U.processProps,d=h===void 0?w:h,s=Array.isArray(N)?N:[N];return s.map(function(x){var M=x.children,_=Object(Oe.a)(x,["children"]),I=z(M,D);return r.a.createElement(re.a,Object.assign({},d(_)),I)})}function Y(N){if(!N)return null;var D;if(Array.isArray(N))D={checkedKeys:N,halfCheckedKeys:void 0};else if(Object(O.a)(N)==="object")D={checkedKeys:N.checked||void 0,halfCheckedKeys:N.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return D}function B(N,D){var U=new Set;function h(d){if(U.has(d))return;var s=D[d];if(!s)return;U.add(d);var x=s.parent,M=s.node;if(M.disabled)return;x&&h(x.key)}return(N||[]).forEach(function(d){h(d)}),Object(R.a)(U)}function ue(N){var D={};return Object.keys(N).forEach(function(U){(U.startsWith("data-")||U.startsWith("aria-"))&&(D[U]=N[U])}),D}},"SA+Z":function(it,ne,n){var R=n("wTVA"),O=n("EbDI"),Oe=n("ZhPi"),y=n("wkBT");function r(p){return R(p)||O(p)||Oe(p)||y()}it.exports=r,it.exports.__esModule=!0,it.exports.default=it.exports},SGC9:function(it,ne,n){it.exports={groupWrap:"groupWrap___7csZK",directionItemWrap:"directionItemWrap___2tkw8",directionItem:"directionItem___3LPk5",groupActionWrap:"groupActionWrap___1eYIz",active:"active___EsUcZ",directionContentWrap:"directionContentWrap___2qy-T",minWidth43:"minWidth43___1F2_e",minWidth48:"minWidth48___1iPbG",delete:"delete___1V7up"}},WaYH:function(it,ne,n){"use strict";var R=n("rePB"),O=n("Ff2n"),Oe=n("VTBJ"),y=n("1OyB"),r=n("vuIU"),p=n("JX7q"),re=n("Ji7U"),q=n("LK+K"),T=n("q1tI"),Ee=n("TSYQ"),ee=n.n(Ee),ge=n("sboe"),Ce=n("OZM5"),G=function(D){var U=D.prefixCls,h=D.level,d=D.isStart,s=D.isEnd;if(!h)return null;for(var x="".concat(U,"-indent-unit"),M=[],_=0;_1&&arguments[1]!==void 0?arguments[1]:!1,se=ie.getAttribute("id")||ie.getAttribute("data-reactid")||ie.getAttribute("name");if(ce&&o[se])return o[se];var pe=window.getComputedStyle(ie),L=pe.getPropertyValue("box-sizing")||pe.getPropertyValue("-moz-box-sizing")||pe.getPropertyValue("-webkit-box-sizing"),I=parseFloat(pe.getPropertyValue("padding-bottom"))+parseFloat(pe.getPropertyValue("padding-top")),ve=parseFloat(pe.getPropertyValue("border-bottom-width"))+parseFloat(pe.getPropertyValue("border-top-width")),Xe=k.map(function(he){return"".concat(he,":").concat(pe.getPropertyValue(he))}).join(";"),et={sizingStyle:Xe,paddingSize:I,borderSize:ve,boxSizing:L};return ce&&se&&(o[se]=et),et}function xe(ie){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ae||(ae=document.createElement("textarea"),ae.setAttribute("tab-index","-1"),ae.setAttribute("aria-hidden","true"),document.body.appendChild(ae)),ie.getAttribute("wrap")?ae.setAttribute("wrap",ie.getAttribute("wrap")):ae.removeAttribute("wrap");var L=ye(ie,ce),I=L.paddingSize,ve=L.borderSize,Xe=L.boxSizing,et=L.sizingStyle;ae.setAttribute("style","".concat(et,";").concat(_)),ae.value=ie.value||ie.placeholder||"";var he=Number.MIN_SAFE_INTEGER,$e=Number.MAX_SAFE_INTEGER,gt=ae.scrollHeight,ct;if(Xe==="border-box"?gt+=ve:Xe==="content-box"&&(gt-=I),se!==null||pe!==null){ae.value=" ";var Nt=ae.scrollHeight-I;se!==null&&(he=Nt*se,Xe==="border-box"&&(he=he+I+ve),gt=Math.max(he,gt)),pe!==null&&($e=Nt*pe,Xe==="border-box"&&($e=$e+I+ve),ct=gt>$e?"":"hidden",gt=Math.min($e,gt))}return{height:gt,minHeight:he,maxHeight:$e,overflowY:ct,resize:"none"}}var nt=n("Gytx"),me=n.n(nt),oe;(function(ie){ie[ie.NONE=0]="NONE",ie[ie.RESIZING=1]="RESIZING",ie[ie.RESIZED=2]="RESIZED"})(oe||(oe={}));var Le=function(ie){Object(y.a)(se,ie);var ce=Object(r.a)(se);function se(pe){var L;return Object(O.a)(this,se),L=ce.call(this,pe),L.nextFrameActionId=void 0,L.resizeFrameId=void 0,L.textArea=void 0,L.saveTextArea=function(I){L.textArea=I},L.handleResize=function(I){var ve=L.state.resizeStatus,Xe=L.props,et=Xe.autoSize,he=Xe.onResize;if(ve!==oe.NONE)return;typeof he=="function"&&he(I),et&&L.resizeOnNextFrame()},L.resizeOnNextFrame=function(){cancelAnimationFrame(L.nextFrameActionId),L.nextFrameActionId=requestAnimationFrame(L.resizeTextarea)},L.resizeTextarea=function(){var I=L.props.autoSize;if(!I||!L.textArea)return;var ve=I.minRows,Xe=I.maxRows,et=xe(L.textArea,!1,ve,Xe);L.setState({textareaStyles:et,resizeStatus:oe.RESIZING},function(){cancelAnimationFrame(L.resizeFrameId),L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:oe.RESIZED},function(){L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:oe.NONE}),L.fixFirefoxAutoScroll()})})})})},L.renderTextArea=function(){var I=L.props,ve=I.prefixCls,Xe=ve===void 0?"rc-textarea":ve,et=I.autoSize,he=I.onResize,$e=I.className,gt=I.disabled,ct=L.state,Nt=ct.textareaStyles,Ut=ct.resizeStatus,Me=Object(s.a)(L.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ye=M()(Xe,$e,Object(q.a)({},"".concat(Xe,"-disabled"),gt));"value"in Me&&(Me.value=Me.value||"");var at=Object(re.a)(Object(re.a)(Object(re.a)({},L.props.style),Nt),Ut===oe.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(d,{onResize:L.handleResize,disabled:!(et||he)},p.createElement("textarea",Object(R.a)({},Me,{className:Ye,style:at,ref:L.saveTextArea})))},L.state={textareaStyles:{},resizeStatus:oe.NONE},L}return Object(Oe.a)(se,[{key:"componentDidUpdate",value:function(L){(L.value!==this.props.value||!me()(L.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var L=this.textArea.selectionStart,I=this.textArea.selectionEnd;this.textArea.setSelectionRange(L,I)}}catch(ve){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(p.Component),ze=Le,Ve=function(ie){Object(y.a)(se,ie);var ce=Object(r.a)(se);function se(pe){var L;Object(O.a)(this,se),L=ce.call(this,pe),L.resizableTextArea=void 0,L.focus=function(){L.resizableTextArea.textArea.focus()},L.saveTextArea=function(ve){L.resizableTextArea=ve},L.handleChange=function(ve){var Xe=L.props.onChange;L.setValue(ve.target.value,function(){L.resizableTextArea.resizeTextarea()}),Xe&&Xe(ve)},L.handleKeyDown=function(ve){var Xe=L.props,et=Xe.onPressEnter,he=Xe.onKeyDown;ve.keyCode===13&&et&&et(ve),he&&he(ve)};var I=typeof pe.value=="undefined"||pe.value===null?pe.defaultValue:pe.value;return L.state={value:I},L}return Object(Oe.a)(se,[{key:"setValue",value:function(L,I){"value"in this.props||this.setState({value:L},I)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(ze,Object(R.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(L){return"value"in L?{value:L.value}:null}}]),se}(p.Component),He=ne.default=Ve},bT9E:function(it,ne,n){"use strict";n.d(ne,"a",function(){return O});var R=n("VTBJ");function O(Oe,y){var r=Object(R.a)({},Oe);return Array.isArray(y)&&y.forEach(function(p){delete r[p]}),r}},biw7:function(it,ne,n){"use strict";var R=n("q1tI"),O=n.n(R),Oe=R.createContext(null);ne.a=Oe},fyJ8:function(it,ne,n){"use strict";var R=n("rePB"),O=n("VTBJ"),Oe=n("Ff2n"),y=n("U8pU"),r=n("q1tI"),p=n.n(r),re=n("TSYQ"),q=n.n(re),N=n("c+Xe"),Ee=n("sR1s");function ee(E){return E&&Object(y.a)(E)==="object"&&!Array.isArray(E)&&!r.isValidElement(E)}function ge(E){return typeof E=="string"?!0:Object(N.c)(E)}function Ce(E,Q){var w,z=E.prefixCls,Y=E.className,B=E.record,ue=E.index,T=E.dataIndex,D=E.render,U=E.children,h=E.component,d=h===void 0?"td":h,s=E.colSpan,x=E.rowSpan,M=E.fixLeft,_=E.fixRight,k=E.firstFixLeft,o=E.lastFixLeft,ae=E.firstFixRight,ye=E.lastFixRight,xe=E.appendNode,nt=E.additionalProps,me=nt===void 0?{}:nt,oe=E.ellipsis,Le=E.align,ze=E.rowType,Ve=E.isSticky,He="".concat(z,"-cell"),ie,ce;if(U)ce=U;else{var se=Object(Ee.b)(B,T);if(ce=se,D){var pe=D(se,B,ue);ee(pe)?(ce=pe.children,ie=pe.props):ce=pe}}Object(y.a)(ce)==="object"&&!Array.isArray(ce)&&!r.isValidElement(ce)&&(ce=null),oe&&(o||ae)&&(ce=r.createElement("span",{className:"".concat(He,"-content")},ce));var L=ie||{},I=L.colSpan,ve=L.rowSpan,Xe=L.style,et=L.className,he=Object(Oe.a)(L,["colSpan","rowSpan","style","className"]),$e=I!==void 0?I:s,gt=ve!==void 0?ve:x;if($e===0||gt===0)return null;var ct={},Nt=typeof M=="number",Ut=typeof _=="number";Nt&&(ct.position="sticky",ct.left=M),Ut&&(ct.position="sticky",ct.right=_);var Me={};Le&&(Me.textAlign=Le);var Ye,at=oe===!0?{showTitle:!0}:oe;at&&(at.showTitle||ze==="header")&&(typeof ce=="string"||typeof ce=="number"?Ye=ce.toString():r.isValidElement(ce)&&typeof ce.props.children=="string"&&(Ye=ce.props.children));var Xt=Object(O.a)(Object(O.a)(Object(O.a)({title:Ye},he),me),{},{colSpan:$e&&$e!==1?$e:null,rowSpan:gt&>!==1?gt:null,className:q()(He,Y,(w={},Object(R.a)(w,"".concat(He,"-fix-left"),Nt),Object(R.a)(w,"".concat(He,"-fix-left-first"),k),Object(R.a)(w,"".concat(He,"-fix-left-last"),o),Object(R.a)(w,"".concat(He,"-fix-right"),Ut),Object(R.a)(w,"".concat(He,"-fix-right-first"),ae),Object(R.a)(w,"".concat(He,"-fix-right-last"),ye),Object(R.a)(w,"".concat(He,"-ellipsis"),oe),Object(R.a)(w,"".concat(He,"-with-append"),xe),Object(R.a)(w,"".concat(He,"-fix-sticky"),(Nt||Ut)&&Ve),w),me.className,et),style:Object(O.a)(Object(O.a)(Object(O.a)(Object(O.a)({},me.style),Me),ct),Xe),ref:ge(d)?Q:null});return r.createElement(d,Object.assign({},Xt),xe,ce)}var G=r.forwardRef(Ce);G.displayName="Cell";var j=r.memo(G,function(E,Q){return Q.shouldCellUpdate?!Q.shouldCellUpdate(Q.record,E.record):!1});ne.a=j},hW8S:function(it,ne,n){"use strict";n.d(ne,"a",function(){return y}),n.d(ne,"c",function(){return r}),n.d(ne,"b",function(){return p});var R=n("VTBJ"),O=n("Ff2n"),Oe=n("Kwbf"),y="RC_TABLE_INTERNAL_COL_DEFINE";function r(re){var q=re.expandable,N=Object(O.a)(re,["expandable"]);return"expandable"in re?Object(R.a)(Object(R.a)({},N),q):N}function p(re){return Object.keys(re).reduce(function(q,N){return(N.substr(0,5)==="data-"||N.substr(0,5)==="aria-")&&(q[N]=re[N]),q},{})}},k3GJ:function(it,ne,n){"use strict";n.d(ne,"a",function(){return po});var R=n("rePB"),O=n("ODXe"),Oe=n("Ff2n"),y=n("VTBJ"),r=n("q1tI"),p=n("TSYQ"),re=n.n(p),q=n("Zm9Q"),N=n("6cGi"),Ee=n("KQm4"),ee=n("xEkU"),ge=n.n(ee),Ce=n("t23M");function G(i){var f=Object(r.useRef)(),v=Object(r.useRef)(!1);function u(){for(var e=arguments.length,a=new Array(e),t=0;tg&&(K=g-F),Object(r.useMemo)(function(){if(!a.length)return[0,0];for(var le=a.length,We=le,lt=0;ltm+K){We=lt-1;break}}for(var dt=0,ut=le-1;ut>=0;ut-=1){var ot=i.get(a[ut].key)||B;if(ot[b]1&&arguments[1]!==void 0?arguments[1]:!1,u=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(u){if(v){var e=getComputedStyle(f),a=e.marginLeft,t=e.marginRight;u+=+a.replace("px","")+ +t.replace("px","")}u=+u.toFixed(6)}return u||0},Ye=function(f,v,u){f&&Object(ae.a)(f.style)==="object"&&(f.style[v]=u)},at=function(){return et.any},Xt=n("bdgK"),Lt=n("i8i4"),$t=n.n(Lt),vt=n("wgJM"),Wt=n("l4aY"),bn=n("m+aA"),C=n("c+Xe"),W=n("zT1h"),P=n("QC+M");function te(i,f,v){return v?i[0]===f[0]:i[0]===f[0]&&i[1]===f[1]}function H(i,f,v){var u=i[f]||{};return Object(y.a)(Object(y.a)({},u),v)}function J(i,f,v,u){for(var e=v.points,a=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(vt.a)(function(){e<=1?u({isCanceled:function(){return a!==i.current}}):v(u,e-1)});i.current=a}return r.useEffect(function(){return function(){f()}},[]),[v,f]},Bn=[Fe,Ne,De,we],$n=!1,Gn=!0;function dn(i){return i===De||i===we}var Pn=function(i,f){var v=r.useState(Ze),u=Object(O.a)(v,2),e=u[0],a=u[1],t=At(),l=Object(O.a)(t,2),c=l[0],b=l[1];function m(){a(Fe)}return Dt(function(){if(e!==Ze&&e!==we){var g=Bn.indexOf(e),S=Bn[g+1],F=f(e);F===$n?a(S):c(function(K){function le(){if(K.isCanceled())return;a(S)}F===!0?le():Promise.resolve(F).then(le)})}},[i,e]),r.useEffect(function(){return function(){b()}},[]),[m,e]},Fn=function(i){var f=Object(r.useRef)(),v=Object(r.useRef)(i);v.current=i;var u=r.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(ft,u),t.removeEventListener(Se,u))}function a(t){f.current&&f.current!==t&&e(f.current),t&&t!==f.current&&(t.addEventListener(ft,u),t.addEventListener(Se,u),f.current=t)}return r.useEffect(function(){return function(){e(f.current)}},[]),[a,e]};function Dn(i,f,v,u){var e=u.motionEnter,a=e===void 0?!0:e,t=u.motionAppear,l=t===void 0?!0:t,c=u.motionLeave,b=c===void 0?!0:c,m=u.motionDeadline,g=u.motionLeaveImmediately,S=u.onAppearPrepare,F=u.onEnterPrepare,K=u.onLeavePrepare,le=u.onAppearStart,We=u.onEnterStart,lt=u.onLeaveStart,tt=u.onAppearActive,dt=u.onEnterActive,ut=u.onLeaveActive,ot=u.onAppearEnd,rt=u.onEnterEnd,jt=u.onLeaveEnd,pt=u.onVisibleChanged,Ht=Qe(),Tt=Object(O.a)(Ht,2),Be=Tt[0],Ie=Tt[1],bt=Qe(Ke),Ct=Object(O.a)(bt,2),Re=Ct[0],Rt=Ct[1],Kt=Qe(null),Mt=Object(O.a)(Kt,2),wt=Mt[0],Ft=Mt[1],an=Object(r.useRef)(!1),yn=Object(r.useRef)(null),Vt=Object(r.useRef)(!1),On=Object(r.useRef)(null);function Xn(){var Bt=v();return Bt||On.current}var Sn=Object(r.useRef)(!1);function Nn(Bt){var St=Xn();if(Bt&&!Bt.deadline&&Bt.target!==St)return;var rn;Re===ke&&Sn.current?rn=ot==null?void 0:ot(St,Bt):Re===Ae&&Sn.current?rn=rt==null?void 0:rt(St,Bt):Re===Pe&&Sn.current&&(rn=jt==null?void 0:jt(St,Bt)),rn!==!1&&!Vt.current&&(Rt(Ke),Ft(null))}var Gt=Fn(Nn),vn=Object(O.a)(Gt,1),on=vn[0],en=r.useMemo(function(){var Bt,St,rn;switch(Re){case"appear":return Bt={},Object(R.a)(Bt,Fe,S),Object(R.a)(Bt,Ne,le),Object(R.a)(Bt,De,tt),Bt;case"enter":return St={},Object(R.a)(St,Fe,F),Object(R.a)(St,Ne,We),Object(R.a)(St,De,dt),St;case"leave":return rn={},Object(R.a)(rn,Fe,K),Object(R.a)(rn,Ne,lt),Object(R.a)(rn,De,ut),rn;default:return{}}},[Re]),ua=Pn(Re,function(Bt){if(Bt===Fe){var St=en[Fe];return St?St(Xn()):$n}if(kt in en){var rn;Ft(((rn=en[kt])===null||rn===void 0?void 0:rn.call(en,Xn(),null))||null)}return kt===De&&(on(Xn()),m>0&&(clearTimeout(yn.current),yn.current=setTimeout(function(){Nn({deadline:!0})},m))),Gn}),ca=Object(O.a)(ua,2),ga=ca[0],kt=ca[1],oa=dn(kt);Sn.current=oa,Dt(function(){Ie(f);var Bt=an.current;if(an.current=!0,!i)return;var St;!Bt&&f&&l&&(St=ke),Bt&&f&&a&&(St=Ae),(Bt&&!f&&b||!Bt&&g&&!f&&b)&&(St=Pe),St&&(Rt(St),ga())},[f]),Object(r.useEffect)(function(){(Re===ke&&!l||Re===Ae&&!a||Re===Pe&&!b)&&Rt(Ke)},[l,a,b]),Object(r.useEffect)(function(){return function(){clearTimeout(yn.current),Vt.current=!0}},[]),Object(r.useEffect)(function(){Be!==void 0&&Re===Ke&&(pt==null||pt(Be))},[Be,Re]);var Ca=wt;return en[Fe]&&kt===Ne&&(Ca=Object(y.a)({transition:"none"},Ca)),[Re,kt,Ca,Be!=null?Be:f]}var An=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){return Object(D.a)(this,v),f.apply(this,arguments)}return Object(U.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(r.Component),sn=An;function Jn(i){var f=i;Object(ae.a)(i)==="object"&&(f=i.transitionSupport);function v(e){return!!(e.motionName&&f)}var u=r.forwardRef(function(e,a){var t=e.visible,l=t===void 0?!0:t,c=e.removeOnLeave,b=c===void 0?!0:c,m=e.forceRender,g=e.children,S=e.motionName,F=e.leavedClassName,K=e.eventProps,le=v(e),We=Object(r.useRef)(),lt=Object(r.useRef)();function tt(){try{return Object(bn.a)(We.current||lt.current)}catch(Rt){return null}}var dt=Dn(le,l,tt,e),ut=Object(O.a)(dt,4),ot=ut[0],rt=ut[1],jt=ut[2],pt=ut[3],Ht=r.useRef(pt);pt&&(Ht.current=!0);var Tt=Object(r.useRef)(a);Tt.current=a;var Be=r.useCallback(function(Rt){We.current=Rt,Object(C.b)(Tt.current,Rt)},[]),Ie,bt=Object(y.a)(Object(y.a)({},K),{},{visible:l});if(!g)Ie=null;else if(ot===Ke||!v(e))pt?Ie=g(Object(y.a)({},bt),Be):!b&&Ht.current?Ie=g(Object(y.a)(Object(y.a)({},bt),{},{className:F}),Be):m?Ie=g(Object(y.a)(Object(y.a)({},bt),{},{style:{display:"none"}}),Be):Ie=null;else{var Ct,Re;rt===Fe?Re="prepare":dn(rt)?Re="active":rt===Ne&&(Re="start"),Ie=g(Object(y.a)(Object(y.a)({},bt),{},{className:re()(ht(S,ot),(Ct={},Object(R.a)(Ct,ht(S,"".concat(ot,"-").concat(Re)),Re),Object(R.a)(Ct,S,typeof S=="string"),Ct)),style:jt}),Be)}return r.createElement(sn,{ref:lt},Ie)});return u.displayName="CSSMotion",u}var _n=Jn(V),Yn="add",xn="keep",jn="remove",wn="removed";function ra(i){var f;return i&&Object(ae.a)(i)==="object"&&"key"in i?f=i:f={key:i},Object(y.a)(Object(y.a)({},f),{},{key:String(f.key)})}function Rn(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(ra)}function Jt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],u=0,e=f.length,a=Rn(i),t=Rn(f);a.forEach(function(b){for(var m=!1,g=u;g1});return c.forEach(function(b){v=v.filter(function(m){var g=m.key,S=m.status;return g!==b||S!==jn}),v.forEach(function(m){m.key===b&&(m.status=xn)})}),v}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fn(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n,v=function(u){Object(d.a)(a,u);var e=Object(s.a)(a);function a(){var t;return Object(D.a)(this,a),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(l){t.setState(function(c){var b=c.keyEntities;return{keyEntities:b.map(function(m){return m.key!==l?m:Object(y.a)(Object(y.a)({},m),{},{status:wn})})}})},t}return Object(U.a)(a,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,b=this.props,m=b.component,g=b.children,S=b.onVisibleChanged,F=Object(Oe.a)(b,["component","children","onVisibleChanged"]),K=m||r.Fragment,le={};return Zt.forEach(function(We){le[We]=F[We],delete F[We]}),delete F.keys,r.createElement(K,F,c.map(function(We){var lt=We.status,tt=Object(Oe.a)(We,["status"]),dt=lt===Yn||lt===xn;return r.createElement(f,Object(T.a)({},le,{key:tt.key,visible:dt,eventProps:tt,onVisibleChanged:function(ot){S==null||S(ot,{key:tt.key}),ot||l.removeKey(tt.key)}}),g)}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var b=l.keys,m=c.keyEntities,g=Rn(b),S=Jt(m,g);return{keyEntities:S.filter(function(F){var K=m.find(function(le){var We=le.key;return F.key===We});return!(K&&K.status===wn&&F.status===jn)})}}}]),a}(r.Component);return v.defaultProps={component:"div"},v}var Yt=fn(V),ln=_n;function mn(i){var f=i.prefixCls,v=i.motion,u=i.animation,e=i.transitionName;return v||(u?{motionName:"".concat(f,"-").concat(u)}:e?{motionName:e}:null)}function qt(i){var f=i.prefixCls,v=i.visible,u=i.zIndex,e=i.mask,a=i.maskMotion,t=i.maskAnimation,l=i.maskTransitionName;if(!e)return null;var c={};return(a||l||t)&&(c=Object(y.a)({motionAppear:!0},mn({motion:a,prefixCls:f,transitionName:l,animation:t}))),r.createElement(ln,Object(T.a)({},c,{visible:v,removeOnLeave:!0}),function(b){var m=b.className;return r.createElement("div",{style:{zIndex:u},className:re()("".concat(f,"-mask"),m)})})}var Qn=n("9mu1"),ia=n("o0o1"),fa=n.n(ia),Ln=n("HaE+"),Wn=["measure","align",null,"motion"],It=function(i,f){var v=Object(r.useState)(null),u=Object(O.a)(v,2),e=u[0],a=u[1],t=Object(r.useRef)(),l=Object(r.useRef)(!1);function c(g){l.current||a(g)}function b(){vt.a.cancel(t.current)}function m(g){b(),t.current=Object(vt.a)(function(){c(function(S){switch(e){case"align":return"motion";case"motion":return"stable";default:}return S}),g==null||g()})}return Object(r.useEffect)(function(){c("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":f();break;default:}e&&(t.current=Object(vt.a)(Object(Ln.a)(fa.a.mark(function g(){var S,F;return fa.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:S=Wn.indexOf(e),F=Wn[S+1],F&&S!==-1&&c(F);case 3:case"end":return le.stop()}},g)}))))},[e]),Object(r.useEffect)(function(){return function(){l.current=!0,b()}},[]),[e,m]},Zn=function(i){var f=r.useState({width:0,height:0}),v=Object(O.a)(f,2),u=v[0],e=v[1];function a(l){e({width:l.offsetWidth,height:l.offsetHeight})}var t=r.useMemo(function(){var l={};if(i){var c=u.width,b=u.height;i.indexOf("height")!==-1&&b?l.height=b:i.indexOf("minHeight")!==-1&&b&&(l.minHeight=b),i.indexOf("width")!==-1&&c?l.width=c:i.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[i,u]);return[t,a]},Un=r.forwardRef(function(i,f){var v=i.visible,u=i.prefixCls,e=i.className,a=i.style,t=i.children,l=i.zIndex,c=i.stretch,b=i.destroyPopupOnHide,m=i.forceRender,g=i.align,S=i.point,F=i.getRootDomNode,K=i.getClassNameFromAlign,le=i.onAlign,We=i.onMouseEnter,lt=i.onMouseLeave,tt=i.onMouseDown,dt=i.onTouchStart,ut=Object(r.useRef)(),ot=Object(r.useRef)(),rt=Object(r.useState)(),jt=Object(O.a)(rt,2),pt=jt[0],Ht=jt[1],Tt=Zn(c),Be=Object(O.a)(Tt,2),Ie=Be[0],bt=Be[1];function Ct(){c&&bt(F())}var Re=It(v,Ct),Rt=Object(O.a)(Re,2),Kt=Rt[0],Mt=Rt[1],wt=Object(r.useRef)();function Ft(){return S||F}function an(){var Gt;(Gt=ut.current)===null||Gt===void 0||Gt.forceAlign()}function yn(Gt,vn){var on=K(vn);pt!==on&&Ht(on),Kt==="align"&&(pt!==on?Promise.resolve().then(function(){an()}):Mt(function(){var en;(en=wt.current)===null||en===void 0||en.call(wt)}),le==null||le(Gt,vn))}var Vt=Object(y.a)({},mn(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Gt){var vn=Vt[Gt];Vt[Gt]=function(on,en){return Mt(),vn==null?void 0:vn(on,en)}});function On(){return new Promise(function(Gt){wt.current=Gt})}r.useEffect(function(){!Vt.motionName&&Kt==="motion"&&Mt()},[Vt.motionName,Kt]),r.useImperativeHandle(f,function(){return{forceAlign:an,getElement:function(){return ot.current}}});var Xn=Object(y.a)(Object(y.a)({},Ie),{},{zIndex:l,opacity:Kt==="motion"||Kt==="stable"||!v?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},a),Sn=!0;(g==null?void 0:g.points)&&(Kt==="align"||Kt==="stable")&&(Sn=!1);var Nn=t;return r.Children.count(t)>1&&(Nn=r.createElement("div",{className:"".concat(u,"-content")},t)),r.createElement(ln,Object(T.a)({visible:v,ref:ot,leavedClassName:"".concat(u,"-hidden")},Vt,{onAppearPrepare:On,onEnterPrepare:On,removeOnLeave:b,forceRender:m}),function(Gt,vn){var on=Gt.className,en=Gt.style,ua=re()(u,e,pt,on);return r.createElement(Qn.a,{target:Ft(),key:"popup",ref:ut,monitorWindowResize:!0,disabled:Sn,align:g,onAlign:yn},r.createElement("div",{ref:vn,className:ua,onMouseEnter:We,onMouseLeave:lt,onMouseDownCapture:tt,onTouchStartCapture:dt,style:Object(y.a)(Object(y.a)({},en),Xn)},Nn))})});Un.displayName="PopupInner";var ma=Un,En=r.forwardRef(function(i,f){var v=i.prefixCls,u=i.visible,e=i.zIndex,a=i.children,t=i.mobile;t=t===void 0?{}:t;var l=t.popupClassName,c=t.popupStyle,b=t.popupMotion,m=b===void 0?{}:b,g=t.popupRender,S=r.useRef();r.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return S.current}}});var F=Object(y.a)({zIndex:e},c),K=a;return r.Children.count(a)>1&&(K=r.createElement("div",{className:"".concat(v,"-content")},a)),g&&(K=g(K)),r.createElement(ln,Object(T.a)({visible:u,ref:S,removeOnLeave:!0},m),function(le,We){var lt=le.className,tt=le.style,dt=re()(v,l,lt);return r.createElement("div",{ref:We,className:dt,style:Object(y.a)(Object(y.a)({},tt),F)},K)})});En.displayName="MobilePopupInner";var ya=En,pa=["visible","mobile"],sa=r.forwardRef(function(i,f){var v=i.visible,u=i.mobile,e=Object(Oe.a)(i,pa),a=Object(r.useState)(v),t=Object(O.a)(a,2),l=t[0],c=t[1],b=Object(r.useState)(!1),m=Object(O.a)(b,2),g=m[0],S=m[1],F=Object(y.a)(Object(y.a)({},e),{},{visible:l});Object(r.useEffect)(function(){c(v),v&&u&&S(Z())},[v,u]);var K=g?r.createElement(ya,Object(T.a)({},F,{mobile:u,ref:f})):r.createElement(ma,Object(T.a)({},F,{ref:f}));return r.createElement("div",null,r.createElement(qt,F),K)});sa.displayName="Popup";var Aa=sa,Oa=r.createContext(null),kn=Oa;function qn(){}function wa(){return""}function _a(i){return i?i.ownerDocument:window.document}var zn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function xa(i){var f=function(v){Object(d.a)(e,v);var u=Object(s.a)(e);function e(a){var t;Object(D.a)(this,e),t=u.call(this,a),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var b=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,b,b?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var b;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Wt.a)((b=t.popupRef.current)===null||b===void 0?void 0:b.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var b;if(t.preClickTime&&t.preTouchTime?b=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?b=t.preClickTime:t.preTouchTime&&(b=t.preTouchTime),Math.abs(b-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var m=!t.state.popupVisible;(t.isClickToHide()&&!m||m&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var b=c.target,m=t.getRootDomNode(),g=t.getPopupDomNode();(!Object(Wt.a)(m,b)||t.isContextMenuOnly())&&!Object(Wt.a)(g,b)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var b=Object(bn.a)(t.triggerRef.current);if(b)return b}catch(m){}return $t.a.findDOMNode(Object(h.a)(t))},t.getPopupClassNameFromAlign=function(c){var b=[],m=t.props,g=m.popupPlacement,S=m.builtinPlacements,F=m.prefixCls,K=m.alignPoint,le=m.getPopupClassNameFromAlign;return g&&S&&b.push(J(S,F,c,K)),le&&b.push(le(c)),b.join(" ")},t.getComponent=function(){var c=t.props,b=c.prefixCls,m=c.destroyPopupOnHide,g=c.popupClassName,S=c.onPopupAlign,F=c.popupMotion,K=c.popupAnimation,le=c.popupTransitionName,We=c.popupStyle,lt=c.mask,tt=c.maskAnimation,dt=c.maskTransitionName,ut=c.maskMotion,ot=c.zIndex,rt=c.popup,jt=c.stretch,pt=c.alignPoint,Ht=c.mobile,Tt=c.forceRender,Be=t.state,Ie=Be.popupVisible,bt=Be.point,Ct=t.getPopupAlign(),Re={};return t.isMouseEnterToShow()&&(Re.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Re.onMouseLeave=t.onPopupMouseLeave),Re.onMouseDown=t.onPopupMouseDown,Re.onTouchStart=t.onPopupMouseDown,r.createElement(Aa,Object(T.a)({prefixCls:b,destroyPopupOnHide:m,visible:Ie,point:pt&&bt,className:g,align:Ct,onAlign:S,animation:K,getClassNameFromAlign:t.getPopupClassNameFromAlign},Re,{stretch:jt,getRootDomNode:t.getRootDomNode,style:We,mask:lt,zIndex:ot,transitionName:le,maskAnimation:tt,maskTransitionName:dt,maskMotion:ut,ref:t.popupRef,motion:F,mobile:Ht,forceRender:Tt}),typeof rt=="function"?rt():rt)},t.attachParent=function(c){vt.a.cancel(t.attachId);var b=t.props,m=b.getPopupContainer,g=b.getDocument,S=t.getRootDomNode(),F;m?(S||m.length===0)&&(F=m(S)):F=g(t.getRootDomNode()).body,F?F.appendChild(c):t.attachId=Object(vt.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,b=c(t.getRootDomNode()).createElement("div");return b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",t.attachParent(b),b},t.setPoint=function(c){var b=t.props.alignPoint;if(!b||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var l;return"popupVisible"in a?l=!!a.popupVisible:l=!!a.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},zn.forEach(function(c){t["fire".concat(c)]=function(b){t.fireEvents(c,b)}}),t}return Object(U.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(W.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(W.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(W.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(W.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),vt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,l=t.popupPlacement,c=t.popupAlign,b=t.builtinPlacements;return l&&b?H(b,l,c):c}},{key:"setPopupVisible",value:function(t,l){var c=this.props.alignPoint,b=this.state.popupVisible;this.clearDelayTimer(),b!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:b}),this.props.onPopupVisibleChange(t)),c&&l&&t&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(t,l,c){var b=this,m=l*1e3;if(this.clearDelayTimer(),m){var g=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){b.setPopupVisible(t,g),b.clearDelayTimer()},m)}else this.setPopupVisible(t,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var l=this.props.children.props,c=this.props;return l[t]&&c[t]?this["fire".concat(t)]:l[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,l){var c=this.props.children.props[t];c&&c(l);var b=this.props[t];b&&b(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,l=this.props,c=l.children,b=l.forceRender,m=l.alignPoint,g=l.className,S=l.autoDestroy,F=r.Children.only(c),K={key:"trigger"};this.isContextMenuToShow()?K.onContextMenu=this.onContextMenu:K.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(K.onClick=this.onClick,K.onMouseDown=this.onMouseDown,K.onTouchStart=this.onTouchStart):(K.onClick=this.createTwoChains("onClick"),K.onMouseDown=this.createTwoChains("onMouseDown"),K.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(K.onMouseEnter=this.onMouseEnter,m&&(K.onMouseMove=this.onMouseMove)):K.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?K.onMouseLeave=this.onMouseLeave:K.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(K.onFocus=this.onFocus,K.onBlur=this.onBlur):(K.onFocus=this.createTwoChains("onFocus"),K.onBlur=this.createTwoChains("onBlur"));var le=re()(F&&F.props&&F.props.className,g);le&&(K.className=le);var We=Object(y.a)({},K);Object(C.c)(F)&&(We.ref=Object(C.a)(this.triggerRef,F.ref));var lt=r.cloneElement(F,We),tt;return(t||this.popupRef.current||b)&&(tt=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&S&&(tt=null),r.createElement(kn.Provider,{value:this.triggerContextValue},lt,tt)}}],[{key:"getDerivedStateFromProps",value:function(t,l){var c=t.popupVisible,b={};return c!==void 0&&l.popupVisible!==c&&(b.popupVisible=c,b.prevPopupVisible=l.popupVisible),b}}]),e}(r.Component);return f.contextType=kn,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:wa,getDocument:_a,onPopupVisibleChange:qn,afterPopupVisibleChange:qn,onPopupAlign:qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var La=xa(P.a),gn={adjustX:1,adjustY:1},ea={topLeft:{points:["bl","tl"],overflow:gn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:gn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:gn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:gn,offset:[4,0]}},ja={topLeft:{points:["bl","tl"],overflow:gn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:gn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:gn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:gn,offset:[4,0]}},ha=ea,nn=0,Cn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(f,v,u){var e=gt(v),a=f.getState();f.setState({defaultActiveFirst:Object(y.a)(Object(y.a)({},a.defaultActiveFirst),{},Object(R.a)({},e,u))})},ta=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(u){var e;Object(D.a)(this,v),e=f.call(this,u),e.onDestroy=function(m){e.props.onDestroy(m)},e.onKeyDown=function(m){var g=m.keyCode,S=e.menuInstance,F=e.props.store,K=e.getVisible();if(g===E.a.ENTER)return e.onTitleClick(m),pn(F,e.props.eventKey,!0),!0;if(g===E.a.RIGHT)return K?S.onKeyDown(m):(e.triggerOpenChange(!0),pn(F,e.props.eventKey,!0)),!0;if(g===E.a.LEFT){var le;if(K)le=S.onKeyDown(m);else return;return le||(e.triggerOpenChange(!1),le=!0),le}return K&&(g===E.a.UP||g===E.a.DOWN)?S.onKeyDown(m):void 0},e.onOpenChange=function(m){e.props.onOpenChange(m)},e.onPopupVisibleChange=function(m){e.triggerOpenChange(m,m?"mouseenter":"mouseleave")},e.onMouseEnter=function(m){var g=e.props,S=g.eventKey,F=g.onMouseEnter,K=g.store;pn(K,e.props.eventKey,!1),F({key:S,domEvent:m})},e.onMouseLeave=function(m){var g=e.props,S=g.parentMenu,F=g.eventKey,K=g.onMouseLeave;S.subMenuInstance=Object(h.a)(e),K({key:F,domEvent:m})},e.onTitleMouseEnter=function(m){var g=e.props,S=g.eventKey,F=g.onItemHover,K=g.onTitleMouseEnter;F({key:S,hover:!0}),K({key:S,domEvent:m})},e.onTitleMouseLeave=function(m){var g=e.props,S=g.parentMenu,F=g.eventKey,K=g.onItemHover,le=g.onTitleMouseLeave;S.subMenuInstance=Object(h.a)(e),K({key:F,hover:!1}),le({key:F,domEvent:m})},e.onTitleClick=function(m){var g=Object(h.a)(e),S=g.props;if(S.onTitleClick({key:S.eventKey,domEvent:m}),S.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(S.store,e.props.eventKey,!1)},e.onSubMenuClick=function(m){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(m))},e.onSelect=function(m){e.props.onSelect(m)},e.onDeselect=function(m){e.props.onDeselect(m)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(m){e.menuInstance=m},e.addKeyPath=function(m){return Object(y.a)(Object(y.a)({},m),{},{keyPath:(m.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(m,g){var S=e.props.eventKey,F=function(){e.onOpenChange({key:S,item:Object(h.a)(e),trigger:g,open:m})};g==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){F()},0):F()},e.isChildrenSelected=function(){var m={find:!1};return Nt(e.props.children,e.props.selectedKeys,m),m.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var m=Lt.findDOMNode(e.menuInstance);if(m.offsetWidth>=e.subMenuTitle.offsetWidth)return;m.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(m){e.subMenuTitle=m},e.getBaseProps=function(){var m=Object(h.a)(e),g=m.props,S=e.getMode();return{mode:S==="horizontal"?"vertical":S,visible:e.getVisible(),level:g.level+1,inlineIndent:g.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:g.selectedKeys,eventKey:"".concat(g.eventKey,"-menu-"),openKeys:g.openKeys,motion:g.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:g.subMenuOpenDelay,parentMenu:Object(h.a)(e),subMenuCloseDelay:g.subMenuCloseDelay,forceSubMenuRender:g.forceSubMenuRender,triggerSubMenuAction:g.triggerSubMenuAction,builtinPlacements:g.builtinPlacements,defaultActiveFirst:g.store.getState().defaultActiveFirst[gt(g.eventKey)],multiple:g.multiple,prefixCls:g.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:g.itemIcon,expandIcon:g.expandIcon,direction:g.direction}},e.getMotion=function(m,g){var S=Object(h.a)(e),F=S.haveRendered,K=e.props,le=K.motion,We=K.rootPrefixCls,lt=Object(y.a)(Object(y.a)({},le),{},{leavedClassName:"".concat(We,"-hidden"),removeOnLeave:!1,motionAppear:F||!g||m!=="inline"});return lt};var a=u.store,t=u.eventKey,l=a.getState(),c=l.defaultActiveFirst;e.isRootMenu=!1;var b=!1;return c&&(b=c[t]),pn(a,t,b),e.state={mode:u.mode,isOpen:u.isOpen},e}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,a=this.props,t=a.mode,l=a.parentMenu,c=a.manualRef,b=a.isOpen,m=function(){e.setState({mode:t,isOpen:b})},g=b!==this.state.isOpen,S=t!==this.state.mode;if((S||g)&&(vt.a.cancel(this.updateStateRaf),S?this.updateStateRaf=Object(vt.a)(m):m()),c&&c(this),t!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!b)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,a=e.onDestroy,t=e.eventKey;a&&a(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),vt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,a){var t=this.getBaseProps();return r.createElement(la,Object(T.a)({},t,{id:this.internalMenuId,className:e,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,a=this.getBaseProps(),t=a.mode,l=a.visible,c=a.forceSubMenuRender,b=a.direction,m=this.getMotion(t,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||c,!this.haveOpened)return r.createElement("div",null);var g=re()("".concat(a.prefixCls,"-sub"),Object(R.a)({},"".concat(a.prefixCls,"-rtl"),b==="rtl"));return this.isInlineMode()?r.createElement(ln,Object(T.a)({visible:a.visible,forceRender:c},m),function(S){var F=S.className,K=S.style,le=re()(g,F);return e.renderPopupMenu(le,K)}):this.renderPopupMenu(g)}},{key:"render",value:function(){var e,a,t,l=Object(y.a)({},this.props),c=this.getVisible(),b=this.getPrefixCls(),m=this.isInlineMode(),g=this.getMode(),S=re()(b,"".concat(b,"-").concat(g),(e={},Object(R.a)(e,l.className,!!l.className),Object(R.a)(e,this.getOpenClassName(),c),Object(R.a)(e,this.getActiveClassName(),l.active||c&&!m),Object(R.a)(e,this.getDisabledClassName(),l.disabled),Object(R.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var F={},K={},le={};l.disabled||(F={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},K={onClick:this.onTitleClick},le={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var We={},lt=l.direction,tt=lt==="rtl";m&&(tt?We.paddingRight=l.inlineIndent*l.level:We.paddingLeft=l.inlineIndent*l.level);var dt={};this.getVisible()&&(dt={"aria-owns":this.internalMenuId});var ut=null;g!=="horizontal"&&(ut=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ut=r.createElement(this.props.expandIcon,Object(y.a)({},this.props))));var ot=r.createElement("div",Object(T.a)({ref:this.saveSubMenuTitle,style:We,className:"".concat(b,"-title"),role:"button"},le,K,{"aria-expanded":c},dt,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,ut||r.createElement("i",{className:"".concat(b,"-arrow")})),rt=this.renderChildren(),jt=((a=l.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},pt=Cn[g],Ht=l.popupOffset?{offset:l.popupOffset}:{},Tt=re()((t={},Object(R.a)(t,l.popupClassName,l.popupClassName&&!m),Object(R.a)(t,"".concat(b,"-rtl"),tt),t)),Be=l.disabled,Ie=l.triggerSubMenuAction,bt=l.subMenuOpenDelay,Ct=l.forceSubMenuRender,Re=l.subMenuCloseDelay,Rt=l.builtinPlacements;Ut.forEach(function(Ft){return delete l[Ft]}),delete l.onClick;var Kt=tt?Object(y.a)(Object(y.a)({},ja),Rt):Object(y.a)(Object(y.a)({},ea),Rt);delete l.direction;var Mt=this.getBaseProps(),wt=m?null:this.getMotion(Mt.mode,Mt.visible);return r.createElement("li",Object(T.a)({},l,F,{className:S,role:"menuitem"}),r.createElement(La,{prefixCls:b,popupClassName:re()("".concat(b,"-popup"),Tt),getPopupContainer:jt,builtinPlacements:Kt,popupPlacement:pt,popupVisible:m?!1:c,popupAlign:Ht,popup:m?null:rt,action:Be||m?[]:[Ie],mouseEnterDelay:bt,mouseLeaveDelay:Re,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ct,popupMotion:wt},ot),m?rt:null)}}]),v}(r.Component);ta.defaultProps={onMouseEnter:he,onMouseLeave:he,onTitleMouseEnter:he,onTitleMouseLeave:he,onTitleClick:he,manualRef:he,mode:"vertical",title:""};var In=Object(x.b)(function(i,f){var v=i.openKeys,u=i.activeKey,e=i.selectedKeys,a=f.eventKey,t=f.subMenuKey;return{isOpen:v.indexOf(a)>-1,active:u[t]===a,selectedKeys:e}})(ta);In.isSubMenu=!0;var Hn=In,Ra="menuitem-overflowed",hn=.5,Ma=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){var u;return Object(D.a)(this,v),u=f.apply(this,arguments),u.resizeObserver=null,u.mutationObserver=null,u.originalTotalWidth=0,u.overflowedItems=[],u.menuItemSizes=[],u.cancelFrameId=null,u.state={lastVisibleIndex:void 0},u.childRef=r.createRef(),u.getMenuItemNodes=function(){var e=u.props.prefixCls,a=u.childRef.current;return a?[].slice.call(a.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},u.getOverflowedSubMenuItem=function(e,a,t){var l=u.props,c=l.overflowedIndicator,b=l.level,m=l.mode,g=l.prefixCls,S=l.theme;if(b!==1||m!=="horizontal")return null;var F=u.props.children[0],K=F.props,le=K.children,We=K.title,lt=K.style,tt=Object(Oe.a)(K,["children","title","style"]),dt=Object(y.a)({},lt),ut="".concat(e,"-overflowed-indicator"),ot="".concat(e,"-overflowed-indicator");a.length===0&&t!==!0?dt=Object(y.a)(Object(y.a)({},dt),{},{display:"none"}):t&&(dt=Object(y.a)(Object(y.a)({},dt),{},{visibility:"hidden",position:"absolute"}),ut="".concat(ut,"-placeholder"),ot="".concat(ot,"-placeholder"));var rt=S?"".concat(g,"-").concat(S):"",jt={};return Ut.forEach(function(pt){tt[pt]!==void 0&&(jt[pt]=tt[pt])}),r.createElement(Hn,Object(T.a)({title:c,className:"".concat(g,"-overflowed-submenu"),popupClassName:rt},jt,{key:ut,eventKey:ot,disabled:!1,style:dt}),a)},u.setChildrenWidthAndResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var a=e.children;if(!a||a.length===0)return;var t=e.children[a.length-1];Ye(t,"display","inline-block");var l=u.getMenuItemNodes(),c=l.filter(function(b){return b.className.split(" ").indexOf(Ra)>=0});c.forEach(function(b){Ye(b,"display","inline-block")}),u.menuItemSizes=l.map(function(b){return Me(b,!0)}),c.forEach(function(b){Ye(b,"display","none")}),u.overflowedIndicatorWidth=Me(e.children[e.children.length-1],!0),u.originalTotalWidth=u.menuItemSizes.reduce(function(b,m){return b+m},0),u.handleResize(),Ye(t,"display","none")},u.handleResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var a=Me(e);u.overflowedItems=[];var t=0,l;u.originalTotalWidth>a+hn&&(l=-1,u.menuItemSizes.forEach(function(c){t+=c,t+u.overflowedIndicatorWidth<=a&&(l+=1)})),u.setState({lastVisibleIndex:l})},u}return Object(U.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Xt.default(function(t){t.forEach(function(){var l=e.cancelFrameId;cancelAnimationFrame(l),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var a=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(l,c,b){var m=c;if(a.props.mode==="horizontal"){var g=a.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(b>t&&(m=r.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Ra)})),b===t+1&&(a.overflowedItems=e.slice(t+1).map(function(F){return r.cloneElement(F,{key:F.props.eventKey,mode:"vertical-left"})}),g=a.getOverflowedSubMenuItem(c.props.eventKey,a.overflowedItems)));var S=[].concat(Object(Ee.a)(l),[g,m]);return b===e.length-1&&S.push(a.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),S}return[].concat(Object(Ee.a)(l),[m])},[])}},{key:"render",value:function(){var e=this.props,a=e.visible,t=e.prefixCls,l=e.overflowedIndicator,c=e.mode,b=e.level,m=e.tag,g=e.children,S=e.theme,F=Object(Oe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),K=m;return r.createElement(K,Object(T.a)({ref:this.childRef},F),this.renderChildren(g))}}]),v}(r.Component);Ma.defaultProps={tag:"div",className:""};var va=Ma;function na(i){return i.length?i.every(function(f){return!!f.props.disabled}):!0}function Mn(i,f,v){var u=i.getState();i.setState({activeKey:Object(y.a)(Object(y.a)({},u.activeKey),{},Object(R.a)({},f,v))})}function Kn(i){return i.eventKey||"0-menu-"}function aa(i,f){var v=f,u=i.children,e=i.eventKey;if(v){var a;if(ct(u,function(t,l){t&&t.props&&!t.props.disabled&&v===$e(t,e,l)&&(a=!0)}),a)return v}return v=null,i.defaultActiveFirst&&ct(u,function(t,l){!v&&t&&!t.props.disabled&&(v=$e(t,e,l))}),v}function ba(i){if(!i)return;var f=this.instanceArray.indexOf(i);f!==-1?this.instanceArray[f]=i:this.instanceArray.push(i)}var Sa=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(u){var e;return Object(D.a)(this,v),e=f.call(this,u),e.onKeyDown=function(a,t){var l=a.keyCode,c;if(e.getFlatInstanceArray().forEach(function(m){m&&m.props.active&&m.onKeyDown&&(c=m.onKeyDown(a))}),c)return 1;var b=null;return(l===E.a.UP||l===E.a.DOWN)&&(b=e.step(l===E.a.UP?-1:1)),b?(a.preventDefault(),Mn(e.props.store,Kn(e.props),b.props.eventKey),typeof t=="function"&&t(b),1):void 0},e.onItemHover=function(a){var t=a.key,l=a.hover;Mn(e.props.store,Kn(e.props),l?t:null)},e.onDeselect=function(a){e.props.onDeselect(a)},e.onSelect=function(a){e.props.onSelect(a)},e.onClick=function(a){e.props.onClick(a)},e.onOpenChange=function(a){e.props.onOpenChange(a)},e.onDestroy=function(a){e.props.onDestroy(a)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(a){var t=e.getFlatInstanceArray(),l=e.props.store.getState().activeKey[Kn(e.props)],c=t.length;if(!c)return null;a<0&&(t=t.concat().reverse());var b=-1;if(t.every(function(F,K){return F&&F.props.eventKey===l?(b=K,!1):!0}),!e.props.defaultActiveFirst&&b!==-1&&na(t.slice(b,c-1)))return;var m=(b+1)%c,g=m;do{var S=t[g];if(!S||S.props.disabled)g=(g+1)%c;else return S}while(g!==m);return null},e.renderCommonMenuItem=function(a,t,l){var c=e.props.store.getState(),b=Object(h.a)(e),m=b.props,g=$e(a,m.eventKey,t),S=a.props;if(!S||typeof a.type=="string")return a;var F=g===c.activeKey,K=Object(y.a)(Object(y.a)({mode:S.mode||m.mode,level:m.level,inlineIndent:m.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:m.prefixCls,index:t,parentMenu:m.parentMenu,manualRef:S.disabled?void 0:Object(_.a)(a.ref,ba.bind(Object(h.a)(e))),eventKey:g,active:!S.disabled&&F,multiple:m.multiple,onClick:function(We){(S.onClick||he)(We),e.onClick(We)},onItemHover:e.onItemHover,motion:m.motion,subMenuOpenDelay:m.subMenuOpenDelay,subMenuCloseDelay:m.subMenuCloseDelay,forceSubMenuRender:m.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:m.builtinPlacements,itemIcon:S.itemIcon||e.props.itemIcon,expandIcon:S.expandIcon||e.props.expandIcon},l),{},{direction:m.direction});return(m.mode==="inline"||at())&&(K.triggerSubMenuAction="click"),r.cloneElement(a,Object(y.a)(Object(y.a)({},K),{},{key:g||t}))},e.renderMenuItem=function(a,t,l){if(!a)return null;var c=e.props.store.getState(),b={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:l};return e.renderCommonMenuItem(a,t,b)},u.store.setState({activeKey:Object(y.a)(Object(y.a)({},u.store.getState().activeKey),{},Object(R.a)({},u.eventKey,aa(u,u.activeKey)))}),e.instanceArray=[],e}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!o()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var a=this.props,t="activeKey"in a?a.activeKey:a.store.getState().activeKey[Kn(a)],l=aa(a,t);if(l!==t)Mn(a.store,Kn(a),l);else if("activeKey"in e){var c=aa(e,e.activeKey);l!==c&&Mn(a.store,Kn(a),l)}}},{key:"render",value:function(){var e=this,a=Object(T.a)({},this.props);this.instanceArray=[];var t=re()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),l={className:t,role:a.role||"menu"};a.id&&(l.id=a.id),a.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var c=a.prefixCls,b=a.eventKey,m=a.visible,g=a.level,S=a.mode,F=a.overflowedIndicator,K=a.theme;return Ut.forEach(function(le){return delete a[le]}),delete a.onClick,r.createElement(va,Object(T.a)({},a,{prefixCls:c,mode:S,tag:"ul",level:g,theme:K,visible:m,overflowedIndicator:F},l),Object(q.a)(a.children).map(function(le,We){return e.renderMenuItem(le,We,b||"0-menu-")}))}}]),v}(r.Component);Sa.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:he};var Na=Object(x.b)()(Sa),la=Na,Vn=n("Kwbf");function Te(i,f,v){var u=i.prefixCls,e=i.motion,a=i.defaultMotions,t=a===void 0?{}:a,l=i.openAnimation,c=i.openTransitionName,b=f.switchingModeFromInline;if(e)return e;if(Object(ae.a)(l)==="object"&&l)Object(Vn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(u,"-open-").concat(l)};if(c)return{motionName:c};var m=t[v];return m||(b?null:t.other)}var _e=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(u){var e;Object(D.a)(this,v),e=f.call(this,u),e.onSelect=function(l){var c=Object(h.a)(e),b=c.props;if(b.selectable){var m=e.store.getState(),g=m.selectedKeys,S=l.key;b.multiple?g=g.concat([S]):g=[S],"selectedKeys"in b||e.store.setState({selectedKeys:g}),b.onSelect(Object(y.a)(Object(y.a)({},l),{},{selectedKeys:g}))}},e.onClick=function(l){var c=e.getRealMenuMode(),b=Object(h.a)(e),m=b.store,g=b.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(m.setState({openKeys:[]}),g([])),e.props.onClick(l)},e.onKeyDown=function(l,c){e.innerMenu.getWrappedInstance().onKeyDown(l,c)},e.onOpenChange=function(l){var c=Object(h.a)(e),b=c.props,m=e.store.getState().openKeys.concat(),g=!1,S=function(K){var le=!1;if(K.open)le=m.indexOf(K.key)===-1,le&&m.push(K.key);else{var We=m.indexOf(K.key);le=We!==-1,le&&m.splice(We,1)}g=g||le};Array.isArray(l)?l.forEach(S):S(l),g&&("openKeys"in e.props||e.store.setState({openKeys:m}),b.onOpenChange(m))},e.onDeselect=function(l){var c=Object(h.a)(e),b=c.props;if(b.selectable){var m=e.store.getState().selectedKeys.concat(),g=l.key,S=m.indexOf(g);S!==-1&&m.splice(S,1),"selectedKeys"in b||e.store.setState({selectedKeys:m}),b.onDeselect(Object(y.a)(Object(y.a)({},l),{},{selectedKeys:m}))}},e.onMouseEnter=function(l){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(l)},e.onTransitionEnd=function(l){var c=l.propertyName==="width"&&l.target===l.currentTarget,b=l.target.className,m=Object.prototype.toString.call(b)==="[object SVGAnimatedString]"?b.animVal:b,g=l.propertyName==="font-size"&&m.indexOf("anticon")>=0;(c||g)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(l){e.innerMenu=l},e.isRootMenu=!0;var a=u.defaultSelectedKeys,t=u.defaultOpenKeys;return"selectedKeys"in u&&(a=u.selectedKeys||[]),"openKeys"in u&&(t=u.openKeys||[]),e.store=Object(x.c)({selectedKeys:a,openKeys:t,activeKey:{"0-menu-":aa(u,u.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:u,inlineOpenKeys:[],store:e.store},e}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var a=this.props,t=a.siderCollapsed,l=a.inlineCollapsed,c=a.onOpenChange;(!e.inlineCollapsed&&l||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,a=this.store,t=this.prevOpenKeys,l=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");l?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,a=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return a&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,a=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:a}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(y.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(y.a)(Object(y.a)({},e),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Te(this.props,this.state,a)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(x.a,{store:this.store},r.createElement(la,Object(T.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var t=a.prevProps,l=a.store,c=l.getState(),b={},m={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(m.switchingModeFromInline=!0),"openKeys"in e?b.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(m.switchingModeFromInline=!0,m.inlineOpenKeys=c.openKeys,b.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(b.openKeys=a.inlineOpenKeys,m.inlineOpenKeys=[])),Object.keys(b).length&&l.setState(b),m}}]),v}(r.Component);_e.defaultProps={selectable:!0,onClick:he,onSelect:he,onOpenChange:he,onDeselect:he,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ge=_e,mt=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){var u;return Object(D.a)(this,v),u=f.apply(this,arguments),u.onKeyDown=function(e){var a=e.keyCode;return a===E.a.ENTER?(u.onClick(e),!0):void 0},u.onMouseLeave=function(e){var a=u.props,t=a.eventKey,l=a.onItemHover,c=a.onMouseLeave;l({key:t,hover:!1}),c({key:t,domEvent:e})},u.onMouseEnter=function(e){var a=u.props,t=a.eventKey,l=a.onItemHover,c=a.onMouseEnter;l({key:t,hover:!0}),c({key:t,domEvent:e})},u.onClick=function(e){var a=u.props,t=a.eventKey,l=a.multiple,c=a.onClick,b=a.onSelect,m=a.onDeselect,g=a.isSelected,S={key:t,keyPath:[t],item:Object(h.a)(u),domEvent:e};c(S),l?g?m(S):b(S):g||b(S)},u.saveNode=function(e){u.node=e},u}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,a=Object(y.a)({},this.props),t=re()(this.getPrefixCls(),a.className,(e={},Object(R.a)(e,this.getActiveClassName(),!a.disabled&&a.active),Object(R.a)(e,this.getSelectedClassName(),a.isSelected),Object(R.a)(e,this.getDisabledClassName(),a.disabled),e)),l=Object(y.a)(Object(y.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:t,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?l=Object(y.a)(Object(y.a)({},l),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(l.role="none");var c={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},b=Object(y.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?b.paddingRight=a.inlineIndent*a.level:b.paddingLeft=a.inlineIndent*a.level),Ut.forEach(function(g){return delete a[g]}),delete a.direction;var m=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(m=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(T.a)({},Object(M.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,c,{style:b,ref:this.saveNode}),a.children,m)}}]),v}(r.Component);mt.isMenuItem=!0,mt.defaultProps={onSelect:he,onMouseEnter:he,onMouseLeave:he,manualRef:he};var qe=Object(x.b)(function(i,f){var v=i.activeKey,u=i.selectedKeys,e=f.eventKey,a=f.subMenuKey;return{active:v[a]===e,isSelected:Array.isArray(u)?u.indexOf(e)!==-1:u===e}})(mt),Qt=qe,xt=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){var u;return Object(D.a)(this,v),u=f.apply(this,arguments),u.renderInnerMenuItem=function(e){var a=u.props,t=a.renderMenuItem,l=a.index;return t(e,l,u.props.subMenuKey)},u}return Object(U.a)(v,[{key:"render",value:function(){var e=Object(T.a)({},this.props),a=e.className,t=a===void 0?"":a,l=e.rootPrefixCls,c="".concat(l,"-item-group-title"),b="".concat(l,"-item-group-list"),m=e.title,g=e.children;return Ut.forEach(function(S){return delete e[S]}),delete e.direction,r.createElement("li",Object(T.a)({},e,{onClick:function(F){return F.stopPropagation()},className:"".concat(t," ").concat(l,"-item-group")}),r.createElement("div",{className:c,title:typeof m=="string"?m:void 0},m),r.createElement("ul",{className:b},r.Children.map(g,this.renderInnerMenuItem)))}}]),v}(r.Component);xt.isMenuItemGroup=!0,xt.defaultProps={disabled:!0};var un=xt,Ua=function(f){var v=f.className,u=f.rootPrefixCls,e=f.style;return r.createElement("li",{className:"".concat(v," ").concat(u,"-item-divider"),style:e})};Ua.defaultProps={disabled:!0,className:"",style:{}};var qa=Ua,Ga=Ge,ka=n("eDIo");function eo(i,f){var v=i.prefixCls,u=i.editable,e=i.locale,a=i.style;return!u||u.showAdd===!1?null:r.createElement("button",{ref:f,type:"button",className:"".concat(v,"-nav-add"),style:a,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(l){u.onEdit("add",{event:l})}},u.addIcon||"+")}var Ta=r.forwardRef(eo);function to(i,f){var v=i.prefixCls,u=i.id,e=i.tabs,a=i.locale,t=i.mobile,l=i.moreIcon,c=l===void 0?"More":l,b=i.moreTransitionName,m=i.style,g=i.className,S=i.editable,F=i.tabBarGutter,K=i.rtl,le=i.onTabClick,We=Object(r.useState)(!1),lt=Object(O.a)(We,2),tt=lt[0],dt=lt[1],ut=Object(r.useState)(null),ot=Object(O.a)(ut,2),rt=ot[0],jt=ot[1],pt="".concat(u,"-more-popup"),Ht="".concat(v,"-dropdown"),Tt=rt!==null?"".concat(pt,"-").concat(rt):null,Be=a==null?void 0:a.dropdownAriaLabel,Ie=r.createElement(Ga,{onClick:function(wt){var Ft=wt.key,an=wt.domEvent;le(Ft,an),dt(!1)},id:pt,tabIndex:-1,role:"listbox","aria-activedescendant":Tt,selectedKeys:[rt],"aria-label":Be!==void 0?Be:"expanded dropdown"},e.map(function(Mt){return r.createElement(Qt,{key:Mt.key,id:"".concat(pt,"-").concat(Mt.key),role:"option","aria-controls":u&&"".concat(u,"-panel-").concat(Mt.key),disabled:Mt.disabled},Mt.tab)}));function bt(Mt){for(var wt=e.filter(function(On){return!On.disabled}),Ft=wt.findIndex(function(On){return On.key===rt})||0,an=wt.length,yn=0;ynRt?(Ct=Ie,pt.current="x"):(Ct=bt,pt.current="y");var Kt=Date.now();Kt-rt.current>100&&(jt.current=!1),(f(-Ct,-Ct)||jt.current)&&(Be.preventDefault(),jt.current=!0),rt.current=Kt}var Tt=Object(r.useRef)(null);Tt.current={onTouchStart:dt,onTouchMove:ut,onTouchEnd:ot,onWheel:Ht},r.useEffect(function(){function Be(Re){Tt.current.onTouchStart(Re)}function Ie(Re){Tt.current.onTouchMove(Re)}function bt(Re){Tt.current.onTouchEnd(Re)}function Ct(Re){Tt.current.onWheel(Re)}return document.addEventListener("touchmove",Ie,{passive:!1}),document.addEventListener("touchend",bt,{passive:!1}),i.current.addEventListener("touchstart",Be,{passive:!1}),i.current.addEventListener("wheel",Ct),function(){document.removeEventListener("touchmove",Ie),document.removeEventListener("touchend",bt)}},[])}function Ka(){var i=Object(r.useRef)(new Map);function f(u){return i.current.has(u)||i.current.set(u,r.createRef()),i.current.get(u)}function v(u){i.current.delete(u)}return[f,v]}function Ya(i,f){var v=r.useRef(i),u=r.useState({}),e=Object(O.a)(u,2),a=e[1];function t(l){var c=typeof l=="function"?l(v.current):l;c!==v.current&&f(c,v.current),v.current=c,a({})}return[v.current,t]}var Qa=function(f){var v=f.position,u=f.prefixCls,e=f.extra;if(!e)return null;var a,t=e;return v==="right"&&(a=t.right||!t.left&&t||null),v==="left"&&(a=t.left||null),a?r.createElement("div",{className:"".concat(u,"-extra-content")},a):null};function Fo(i,f){var v,u=r.useContext(Ia),e=u.prefixCls,a=u.tabs,t=i.className,l=i.style,c=i.id,b=i.animated,m=i.activeKey,g=i.rtl,S=i.extra,F=i.editable,K=i.locale,le=i.tabPosition,We=i.tabBarGutter,lt=i.children,tt=i.onTabClick,dt=i.onTabScroll,ut=Object(r.useRef)(),ot=Object(r.useRef)(),rt=Object(r.useRef)(),jt=Object(r.useRef)(),pt=Ka(),Ht=Object(O.a)(pt,2),Tt=Ht[0],Be=Ht[1],Ie=le==="top"||le==="bottom",bt=Ya(0,function(Pt,Et){Ie&&dt&&dt({direction:Pt>Et?"left":"right"})}),Ct=Object(O.a)(bt,2),Re=Ct[0],Rt=Ct[1],Kt=Ya(0,function(Pt,Et){!Ie&&dt&&dt({direction:Pt>Et?"top":"bottom"})}),Mt=Object(O.a)(Kt,2),wt=Mt[0],Ft=Mt[1],an=Object(r.useState)(0),yn=Object(O.a)(an,2),Vt=yn[0],On=yn[1],Xn=Object(r.useState)(0),Sn=Object(O.a)(Xn,2),Nn=Sn[0],Gt=Sn[1],vn=Object(r.useState)(0),on=Object(O.a)(vn,2),en=on[0],ua=on[1],ca=Object(r.useState)(0),ga=Object(O.a)(ca,2),kt=ga[0],oa=ga[1],Ca=Object(r.useState)(null),Bt=Object(O.a)(Ca,2),St=Bt[0],rn=Bt[1],Xo=Object(r.useState)(null),bo=Object(O.a)(Xo,2),Pa=bo[0],$o=bo[1],Go=Object(r.useState)(0),Eo=Object(O.a)(Go,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(r.useState)(0),go=Object(O.a)(Qo,2),Zo=go[0],qo=go[1],er=j(new Map),Co=Object(O.a)(er,2),tr=Co[0],nr=Co[1],Za=Y(a,tr,Vt),yo="".concat(e,"-nav-operations-hidden"),Ba=0,Fa=0;Ie?g?(Ba=0,Fa=Math.max(0,Vt-St)):(Ba=Math.min(0,St-Vt),Fa=0):(Ba=Math.min(0,Pa-Nn),Fa=0);function ao(Pt){return PtFa?[Fa,!1]:[Pt,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(O.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Ja(ut,function(Pt,Et){var tn=!1;function Tn(za,Ha){za(function(Va){var Xa=ao(Va+Ha),Da=Object(O.a)(Xa,2),co=Da[0],fo=Da[1];return tn=fo,co})}if(Ie){if(St>=Vt)return tn;Tn(Rt,Pt)}else{if(Pa>=Nn)return tn;Tn(Ft,Et)}return io(),ro(),tn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,Et=Za.get(Pt);if(!Et)return;if(Ie){var tn=Re;g?Et.rightRe+St&&(tn=Et.right+Et.width-St):Et.left<-Re?tn=-Et.left:Et.left+Et.width>-Re+St&&(tn=-(Et.left+Et.width-St)),Ft(0),Rt(ao(tn)[0])}else{var Tn=wt;Et.top<-wt?Tn=-Et.top:Et.top+Et.height>-wt+Pa&&(Tn=-(Et.top+Et.height-Pa)),Rt(0),Ft(ao(Tn)[0])}}var or=ue(Za,{width:St,height:Pa,left:Re,top:wt},{width:en,height:kt},{width:Jo,height:Zo},Object(y.a)(Object(y.a)({},i),{},{tabs:a})),Ro=Object(O.a)(or,2),rr=Ro[0],ir=Ro[1],sr=a.map(function(Pt){var Et=Pt.key;return r.createElement(w,{id:c,prefixCls:e,key:Et,rtl:g,tab:Pt,closable:Pt.closable,editable:F,active:Et===m,tabPosition:le,tabBarGutter:We,renderWrapper:lt,removeAriaLabel:K==null?void 0:K.removeAriaLabel,ref:Tt(Et),onClick:function(Tn){tt(Et,Tn)},onRemove:function(){Be(Et)},onFocus:function(){jo(Et),ro(),g||(ut.current.scrollLeft=0),ut.current.scrollTop=0}})}),so=G(function(){var Pt,Et,tn,Tn,za,Ha,Va,Xa,Da,co=((Pt=ut.current)===null||Pt===void 0?void 0:Pt.offsetWidth)||0,fo=((Et=ut.current)===null||Et===void 0?void 0:Et.offsetHeight)||0,wo=((tn=jt.current)===null||tn===void 0?void 0:tn.offsetWidth)||0,Lo=((Tn=jt.current)===null||Tn===void 0?void 0:Tn.offsetHeight)||0,mr=((za=rt.current)===null||za===void 0?void 0:za.offsetWidth)||0,pr=((Ha=rt.current)===null||Ha===void 0?void 0:Ha.offsetHeight)||0;rn(co),$o(fo),Yo(wo),qo(Lo);var Uo=(((Va=ot.current)===null||Va===void 0?void 0:Va.offsetWidth)||0)-wo,ko=(((Xa=ot.current)===null||Xa===void 0?void 0:Xa.offsetHeight)||0)-Lo;On(Uo),Gt(ko);var Io=(Da=rt.current)===null||Da===void 0?void 0:Da.className.includes(yo);ua(Uo-(Io?0:mr)),oa(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Bo=hr.key,$a=Tt(Bo).current;$a&&Ko.set(Bo,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),Mo=[].concat(Object(Ee.a)(lr),Object(Ee.a)(ur)),cr=Object(r.useState)(),So=Object(O.a)(cr,2),dr=So[0],fr=So[1],da=Za.get(m),No=Object(r.useRef)();function To(){ge.a.cancel(No.current)}Object(r.useEffect)(function(){var Pt={};return da&&(Ie?(g?Pt.right=da.right:Pt.left=da.left,Pt.width=da.width):(Pt.top=da.top,Pt.height=da.height)),To(),No.current=ge()(function(){fr(Pt)}),To},[da,Ie,g]),Object(r.useEffect)(function(){jo()},[m,da,Za,Ie]),Object(r.useEffect)(function(){so()},[g,We,m,a.map(function(Pt){return Pt.key}).join("_")]);var Po=!!Mo.length,Wa="".concat(e,"-nav-wrap"),lo,uo,Do,Ao;return Ie?g?(uo=Re>0,lo=Re+St1)Object(Ee.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Y.length===0)return Object(Ee.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var B=Y[0];if(p.isValidElement(B)&&Object(ee.c)(B)){var ue=B.ref;Y[0]=p.cloneElement(B,{ref:Object(ee.a)(ue,this.setChildNode)})}return Y.length===1?Y[0]:Y.map(function(T,D){return!p.isValidElement(T)||"key"in T&&T.key!==null?T:p.cloneElement(T,{key:"".concat(Ce,"-").concat(D)})})}}]),Q}(p.Component);G.displayName="ResizeObserver",ne.a=G},wCXF:function(it,ne,n){"use strict";n.d(ne,"a",function(){return $t});var R=n("rePB"),O=n("VTBJ"),Oe=n("KQm4"),y=n("U8pU"),r=n("ODXe"),p=n("q1tI"),re=n("TSYQ"),q=n.n(re),N=n("Gytx"),Ee=n.n(N),ee=n("Kwbf"),ge=n("t23M"),Ce=n("qx4F"),G=n("6eGT"),j=n("IBYe"),E=n("Ff2n"),Q=n("c+Xe"),w=n("fyJ8"),z=n("biw7");function Y(C,W,P,te,H){var J=P[C]||{},Z=P[W]||{},A,X;J.fixed==="left"?A=te.left[C]:Z.fixed==="right"&&(X=te.right[W]);var be=!1,de=!1,$=!1,Ue=!1,fe=P[W+1],je=P[C-1];if(H==="rtl"){if(A!==void 0){var st=je&&je.fixed==="left";Ue=!st}else if(X!==void 0){var Je=fe&&fe.fixed==="right";$=!Je}}else if(A!==void 0){var V=fe&&fe.fixed==="left";be=!V}else if(X!==void 0){var Se=je&&je.fixed==="right";de=!Se}return{fixLeft:A,fixRight:X,lastFixLeft:be,firstFixRight:de,lastFixRight:$,firstFixLeft:Ue,isSticky:te.isSticky}}var B=n("sR1s");function ue(C){var W=C.cells,P=C.stickyOffsets,te=C.flattenColumns,H=C.rowComponent,J=C.cellComponent,Z=C.onHeaderRow,A=C.index,X=p.useContext(z.a),be=X.prefixCls,de=X.direction,$;Z&&($=Z(W.map(function(fe){return fe.column}),A));var Ue=Object(B.a)(W.map(function(fe){return fe.column}));return p.createElement(H,Object.assign({},$),W.map(function(fe,je){var st=fe.column,Je=Y(fe.colStart,fe.colEnd,te,P,de),V;return st&&st.onHeaderCell&&(V=fe.column.onHeaderCell(st)),p.createElement(w.a,Object.assign({},fe,{ellipsis:st.ellipsis,align:st.align,component:J,prefixCls:be,key:Ue[je]},Je,{additionalProps:V,rowType:"header"}))}))}ue.displayName="HeaderRow";var T=ue;function D(C){var W=[];function P(Z,A){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;W[X]=W[X]||[];var be=A,de=Z.filter(Boolean).map(function($){var Ue={key:$.key,className:$.className||"",children:$.title,column:$,colStart:be},fe=1,je=$.children;return je&&je.length>0&&(fe=P(je,be,X+1).reduce(function(st,Je){return st+Je},0),Ue.hasSubColumns=!0),"colSpan"in $&&(fe=$.colSpan),"rowSpan"in $&&(Ue.rowSpan=$.rowSpan),Ue.colSpan=fe,Ue.colEnd=Ue.colStart+fe-1,W[X].push(Ue),be+=fe,fe});return de}P(C,0);for(var te=W.length,H=function(A){W[A].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=te-A)})},J=0;J=0;A-=1){var X=W[A],be=P&&P[A],de=be&&be[d.a];(X||de||Z)&&(H.unshift(p.createElement("col",Object.assign({key:A,style:{width:X,minWidth:X}},de))),Z=!0)}return p.createElement("colgroup",null,H)}var x=s;function M(C,W){return Object(p.useMemo)(function(){for(var P=[],te=0;te1?Yt-1:0),mn=1;mn=$&&(At=$-Ue),Z({scrollLeft:At/$*(de+2)}),Se.current.x=we.pageX},Fe=function(){var we=Object(Ut.b)(J.current).top,Qe=we+J.current.offsetHeight,yt=document.documentElement.scrollTop+window.innerHeight;Qe-Object(Ce.a)()<=yt||we>=yt-A?V(function(Dt){return Object(O.a)(Object(O.a)({},Dt),{},{isHiddenScrollBar:!0})}):V(function(Dt){return Object(O.a)(Object(O.a)({},Dt),{},{isHiddenScrollBar:!1})})},Ne=function(we){V(function(Qe){return Object(O.a)(Object(O.a)({},Qe),{},{scrollLeft:we/de*$||0})})};return p.useImperativeHandle(P,function(){return{setScrollLeft:Ne}}),p.useEffect(function(){var De=Object(Nt.a)(document.body,"mouseup",Ae,!1),we=Object(Nt.a)(document.body,"mousemove",Ze,!1);return Fe(),function(){De.remove(),we.remove()}},[Ue,Ke]),p.useEffect(function(){var De=Object(Nt.a)(window,"scroll",Fe,!1),we=Object(Nt.a)(window,"resize",Fe,!1);return function(){De.remove(),we.remove()}},[]),p.useEffect(function(){Je.isHiddenScrollBar||V(function(De){var we,Qe;return Object(O.a)(Object(O.a)({},De),{},{scrollLeft:J.current.scrollLeft/((we=J.current)===null||we===void 0?void 0:we.scrollWidth)*((Qe=J.current)===null||Qe===void 0?void 0:Qe.clientWidth)})})},[Je.isHiddenScrollBar]),de<=$||!Ue||Je.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(Ce.a)(),width:$,bottom:A},className:"".concat(be,"-sticky-scroll")},p.createElement("div",{onMouseDown:Pe,ref:fe,className:q()("".concat(be,"-sticky-scroll-bar"),Object(R.a)({},"".concat(be,"-sticky-scroll-bar-active"),Ke)),style:{width:"".concat(Ue,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},Ye=p.forwardRef(Me);function at(C,W){return p.useMemo(function(){var P=!!C;return{isSticky:P,stickyClassName:P?"".concat(W,"-sticky-header"):"",offsetHeader:Object(y.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(y.a)(C)==="object"&&C.offsetScroll||0}},[C,W])}var Xt=[],Lt={},$t="rc-table-internal-hook",vt=p.memo(function(C){var W=C.children;return W},function(C,W){return Ee()(C.props,W.props)?C.pingLeft!==W.pingLeft||C.pingRight!==W.pingRight:!1});function Wt(C){var W,P=C.prefixCls,te=C.className,H=C.rowClassName,J=C.style,Z=C.data,A=C.rowKey,X=C.scroll,be=C.tableLayout,de=C.direction,$=C.title,Ue=C.footer,fe=C.summary,je=C.id,st=C.showHeader,Je=C.components,V=C.emptyText,Se=C.onRow,ft=C.onHeaderRow,ht=C.internalHooks,Ke=C.transformColumns,ke=C.internalRefs,Ae=C.sticky,Pe=Z||Xt,Ze=!!Pe.length,Fe=p.useState(0),Ne=Object(r.a)(Fe,2),De=Ne[0],we=Ne[1];p.useEffect(function(){we(Object(Ce.a)())});var Qe=p.useMemo(function(){return Object(B.c)(Je,{})},[Je]),yt=p.useCallback(function(Ot,_t){return Object(B.b)(Qe,Ot)||_t},[Qe]),Dt=p.useMemo(function(){return typeof A=="function"?A:function(Ot){var _t=Ot&&Ot[A];return _t}},[A]),At=Object(d.c)(C),Bn=At.expandIcon,$n=At.expandedRowKeys,Gn=At.defaultExpandedRowKeys,dn=At.defaultExpandAllRows,Pn=At.expandedRowRender,Fn=At.onExpand,Dn=At.onExpandedRowsChange,An=At.expandRowByClick,sn=At.rowExpandable,Jn=At.expandIconColumnIndex,_n=At.expandedRowClassName,Yn=At.childrenColumnName,xn=At.indentSize,jn=Bn||gt,wn=Yn||"children",ra=p.useMemo(function(){return Pn?"row":C.expandable&&ht===$t&&C.expandable.__PARENT_RENDER_ICON__||Pe.some(function(Ot){return Ot&&Object(y.a)(Ot)==="object"&&Ot[wn]})?"nest":!1},[!!Pn,Pe]),Rn=p.useState(function(){return Gn||(dn?ct(Pe,Dt,wn):[])}),Jt=Object(r.a)(Rn,2),Zt=Jt[0],fn=Jt[1],Yt=p.useMemo(function(){return new Set($n||Zt||[])},[$n,Zt]),ln=p.useCallback(function(Ot){var _t=Dt(Ot,Pe.indexOf(Ot)),zt,cn=Yt.has(_t);cn?(Yt.delete(_t),zt=Object(Oe.a)(Yt)):zt=[].concat(Object(Oe.a)(Yt),[_t]),fn(zt),Fn&&Fn(!cn,Ot),Dn&&Dn(zt)},[Dt,Yt,Pe,Fn,Dn]),mn=p.useState(0),qt=Object(r.a)(mn,2),Qn=qt[0],ia=qt[1],fa=Object(ce.b)(Object(O.a)(Object(O.a)(Object(O.a)({},C),At),{},{expandable:!!Pn,expandedKeys:Yt,getRowKey:Dt,onTriggerExpand:ln,expandIcon:jn,expandIconColumnIndex:Jn,direction:de}),ht===$t?Ke:null),Ln=Object(r.a)(fa,2),Wn=Ln[0],It=Ln[1],Zn=p.useMemo(function(){return{columns:Wn,flattenColumns:It}},[Wn,It]),Un=p.useRef(),ma=p.useRef(),En=p.useRef(),ya=p.useState(!1),pa=Object(r.a)(ya,2),sa=pa[0],Aa=pa[1],Oa=p.useState(!1),kn=Object(r.a)(Oa,2),qn=kn[0],wa=kn[1],_a=L(new Map),zn=Object(r.a)(_a,2),xa=zn[0],La=zn[1],gn=Object(B.a)(It),ea=gn.map(function(Ot){return xa.get(Ot)}),ja=p.useMemo(function(){return ea},[ea.join("_")]),ha=Xe(ja,It.length,de),nn=X&&Object(B.d)(X.y),Cn=X&&Object(B.d)(X.x),pn=Cn&&It.some(function(Ot){var _t=Ot.fixed;return _t}),ta=p.useRef(),In=at(Ae,P),Hn=In.isSticky,Ra=In.offsetHeader,hn=In.offsetScroll,Ma=In.stickyClassName,va,na,Mn;nn&&(na={overflowY:"scroll",maxHeight:X.y}),Cn&&(va={overflowX:"auto"},nn||(na={overflowY:"hidden"}),Mn={width:X.x===!0?"auto":X.x,minWidth:"100%"});var Kn=p.useCallback(function(Ot,_t){La(function(zt){var cn=new Map(zt);return cn.set(Ot,_t),cn})},[]),aa=I(null),ba=Object(r.a)(aa,2),Sa=ba[0],Na=ba[1];function la(Ot,_t){if(!_t)return;typeof _t=="function"?_t(Ot):_t.scrollLeft!==Ot&&(_t.scrollLeft=Ot)}var Vn=function(_t){var zt=_t.currentTarget,cn=_t.scrollLeft,Ea=typeof cn=="number"?cn:zt.scrollLeft,Ja=zt||Lt;if(!Na()||Na()===Ja){var Ka;Sa(Ja),la(Ea,ma.current),la(Ea,En.current),la(Ea,(Ka=ta.current)===null||Ka===void 0?void 0:Ka.setScrollLeft)}if(zt){var Ya=zt.scrollWidth,Qa=zt.clientWidth;Aa(Ea>0),wa(Ea0?[].concat(Object(O.a)(E),Object(O.a)(ee(Y).map(function(B){return Object(Oe.a)({fixed:z},B)}))):[].concat(Object(O.a)(E),[Object(Oe.a)(Object(Oe.a)({},Q),{},{fixed:z})])},[])}function ge(j){for(var E=!0,Q=0;Q=0;Y-=1){var B=j[Y];if(z&&B.fixed!=="right")z=!1;else if(!z&&B.fixed==="right"){Object(re.a)(!1,"Index ".concat(Y+1," of `columns` missing `fixed='right'` prop."));break}}}function Ce(j){return j.map(function(E){var Q=E.fixed,w=Object(y.a)(E,["fixed"]),z=Q;return Q==="left"?z="right":Q==="right"&&(z="left"),Object(Oe.a)({fixed:z},w)})}function G(j,E){var Q=j.prefixCls,w=j.columns,z=j.children,Y=j.expandable,B=j.expandedKeys,ue=j.getRowKey,T=j.onTriggerExpand,D=j.expandIcon,U=j.rowExpandable,h=j.expandIconColumnIndex,d=j.direction,s=j.expandRowByClick,x=r.useMemo(function(){return w||Ee(z)},[w,z]),M=r.useMemo(function(){if(Y){var o,ae=h||0,ye=x[ae],xe=(o={},Object(R.a)(o,N.a,{className:"".concat(Q,"-expand-icon-col")}),Object(R.a)(o,"title",""),Object(R.a)(o,"fixed",ye?ye.fixed:null),Object(R.a)(o,"className","".concat(Q,"-row-expand-icon-cell")),Object(R.a)(o,"render",function(oe,Le,ze){var Ve=ue(Le,ze),He=B.has(Ve),ie=U?U(Le):!0,ce=D({prefixCls:Q,expanded:He,expandable:ie,record:Le,onExpand:T});return s?r.createElement("span",{onClick:function(pe){return pe.stopPropagation()}},ce):ce}),o),nt=x.slice();return ae>=0&&nt.splice(ae,0,xe),nt}return x},[Y,x,ue,B,D,d]),_=r.useMemo(function(){var o=M;return E&&(o=E(o)),o.length||(o=[{render:function(){return null}}]),o},[E,M,d]),k=r.useMemo(function(){return d==="rtl"?Ce(ee(_)):ee(_)},[_,d]);return[_,k]}ne.b=G},"y0+3":function(it,ne,n){"use strict";n.d(ne,"a",function(){return ee}),n.d(ne,"b",function(){return Ce});var R=/margin|padding|width|height|max|min|offset/,O={left:!0,top:!0},Oe={cssFloat:1,styleFloat:1,float:1};function y(G){return G.nodeType===1?G.ownerDocument.defaultView.getComputedStyle(G,null):{}}function r(G,j,E){if(j=j.toLowerCase(),E==="auto"){if(j==="height")return G.offsetHeight;if(j==="width")return G.offsetWidth}return j in O||(O[j]=R.test(j)),O[j]?parseFloat(E)||0:E}function p(G,j){var E=arguments.length,Q=y(G);return j=Oe[j]?"cssFloat"in G.style?"cssFloat":"styleFloat":j,E===1?Q:r(G,j,Q[j]||G.style[j])}function re(G,j,E){var Q=arguments.length;if(j=Oe[j]?"cssFloat"in G.style?"cssFloat":"styleFloat":j,Q===3)return typeof E=="number"&&R.test(j)&&(E="".concat(E,"px")),G.style[j]=E,E;for(var w in j)j.hasOwnProperty(w)&&re(G,w,j[w]);return y(G)}function q(G){return G===document.body?document.documentElement.clientWidth:G.offsetWidth}function N(G){return G===document.body?window.innerHeight||document.documentElement.clientHeight:G.offsetHeight}function Ee(){var G=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),j=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:G,height:j}}function ee(){var G=document.documentElement.clientWidth,j=window.innerHeight||document.documentElement.clientHeight;return{width:G,height:j}}function ge(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(G){var j=G.getBoundingClientRect(),E=document.documentElement;return{left:j.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:j.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}}}]); +`,I=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],o={},ae;function ye(ie){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=ie.getAttribute("id")||ie.getAttribute("data-reactid")||ie.getAttribute("name");if(ce&&o[se])return o[se];var pe=window.getComputedStyle(ie),L=pe.getPropertyValue("box-sizing")||pe.getPropertyValue("-moz-box-sizing")||pe.getPropertyValue("-webkit-box-sizing"),k=parseFloat(pe.getPropertyValue("padding-bottom"))+parseFloat(pe.getPropertyValue("padding-top")),ve=parseFloat(pe.getPropertyValue("border-bottom-width"))+parseFloat(pe.getPropertyValue("border-top-width")),Xe=I.map(function(he){return"".concat(he,":").concat(pe.getPropertyValue(he))}).join(";"),et={sizingStyle:Xe,paddingSize:k,borderSize:ve,boxSizing:L};return ce&&se&&(o[se]=et),et}function xe(ie){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ae||(ae=document.createElement("textarea"),ae.setAttribute("tab-index","-1"),ae.setAttribute("aria-hidden","true"),document.body.appendChild(ae)),ie.getAttribute("wrap")?ae.setAttribute("wrap",ie.getAttribute("wrap")):ae.removeAttribute("wrap");var L=ye(ie,ce),k=L.paddingSize,ve=L.borderSize,Xe=L.boxSizing,et=L.sizingStyle;ae.setAttribute("style","".concat(et,";").concat(_)),ae.value=ie.value||ie.placeholder||"";var he=Number.MIN_SAFE_INTEGER,$e=Number.MAX_SAFE_INTEGER,gt=ae.scrollHeight,ct;if(Xe==="border-box"?gt+=ve:Xe==="content-box"&&(gt-=k),se!==null||pe!==null){ae.value=" ";var Tt=ae.scrollHeight-k;se!==null&&(he=Tt*se,Xe==="border-box"&&(he=he+k+ve),gt=Math.max(he,gt)),pe!==null&&($e=Tt*pe,Xe==="border-box"&&($e=$e+k+ve),ct=gt>$e?"":"hidden",gt=Math.min($e,gt))}return{height:gt,minHeight:he,maxHeight:$e,overflowY:ct,resize:"none"}}var nt=n("Gytx"),me=n.n(nt),oe;(function(ie){ie[ie.NONE=0]="NONE",ie[ie.RESIZING=1]="RESIZING",ie[ie.RESIZED=2]="RESIZED"})(oe||(oe={}));var Le=function(ie){Object(y.a)(se,ie);var ce=Object(r.a)(se);function se(pe){var L;return Object(O.a)(this,se),L=ce.call(this,pe),L.nextFrameActionId=void 0,L.resizeFrameId=void 0,L.textArea=void 0,L.saveTextArea=function(k){L.textArea=k},L.handleResize=function(k){var ve=L.state.resizeStatus,Xe=L.props,et=Xe.autoSize,he=Xe.onResize;if(ve!==oe.NONE)return;typeof he=="function"&&he(k),et&&L.resizeOnNextFrame()},L.resizeOnNextFrame=function(){cancelAnimationFrame(L.nextFrameActionId),L.nextFrameActionId=requestAnimationFrame(L.resizeTextarea)},L.resizeTextarea=function(){var k=L.props.autoSize;if(!k||!L.textArea)return;var ve=k.minRows,Xe=k.maxRows,et=xe(L.textArea,!1,ve,Xe);L.setState({textareaStyles:et,resizeStatus:oe.RESIZING},function(){cancelAnimationFrame(L.resizeFrameId),L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:oe.RESIZED},function(){L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:oe.NONE}),L.fixFirefoxAutoScroll()})})})})},L.renderTextArea=function(){var k=L.props,ve=k.prefixCls,Xe=ve===void 0?"rc-textarea":ve,et=k.autoSize,he=k.onResize,$e=k.className,gt=k.disabled,ct=L.state,Tt=ct.textareaStyles,Ut=ct.resizeStatus,Me=Object(s.a)(L.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ye=M()(Xe,$e,Object(q.a)({},"".concat(Xe,"-disabled"),gt));"value"in Me&&(Me.value=Me.value||"");var at=Object(re.a)(Object(re.a)(Object(re.a)({},L.props.style),Tt),Ut===oe.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(d,{onResize:L.handleResize,disabled:!(et||he)},p.createElement("textarea",Object(R.a)({},Me,{className:Ye,style:at,ref:L.saveTextArea})))},L.state={textareaStyles:{},resizeStatus:oe.NONE},L}return Object(Oe.a)(se,[{key:"componentDidUpdate",value:function(L){(L.value!==this.props.value||!me()(L.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var L=this.textArea.selectionStart,k=this.textArea.selectionEnd;this.textArea.setSelectionRange(L,k)}}catch(ve){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(p.Component),ze=Le,Ve=function(ie){Object(y.a)(se,ie);var ce=Object(r.a)(se);function se(pe){var L;Object(O.a)(this,se),L=ce.call(this,pe),L.resizableTextArea=void 0,L.focus=function(){L.resizableTextArea.textArea.focus()},L.saveTextArea=function(ve){L.resizableTextArea=ve},L.handleChange=function(ve){var Xe=L.props.onChange;L.setValue(ve.target.value,function(){L.resizableTextArea.resizeTextarea()}),Xe&&Xe(ve)},L.handleKeyDown=function(ve){var Xe=L.props,et=Xe.onPressEnter,he=Xe.onKeyDown;ve.keyCode===13&&et&&et(ve),he&&he(ve)};var k=typeof pe.value=="undefined"||pe.value===null?pe.defaultValue:pe.value;return L.state={value:k},L}return Object(Oe.a)(se,[{key:"setValue",value:function(L,k){"value"in this.props||this.setState({value:L},k)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(ze,Object(R.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(L){return"value"in L?{value:L.value}:null}}]),se}(p.Component),He=ne.default=Ve},bT9E:function(it,ne,n){"use strict";n.d(ne,"a",function(){return O});var R=n("VTBJ");function O(Oe,y){var r=Object(R.a)({},Oe);return Array.isArray(y)&&y.forEach(function(p){delete r[p]}),r}},biw7:function(it,ne,n){"use strict";var R=n("q1tI"),O=n.n(R),Oe=R.createContext(null);ne.a=Oe},fyJ8:function(it,ne,n){"use strict";var R=n("rePB"),O=n("VTBJ"),Oe=n("Ff2n"),y=n("U8pU"),r=n("q1tI"),p=n.n(r),re=n("TSYQ"),q=n.n(re),T=n("c+Xe"),Ee=n("sR1s");function ee(E){return E&&Object(y.a)(E)==="object"&&!Array.isArray(E)&&!r.isValidElement(E)}function ge(E){return typeof E=="string"?!0:Object(T.c)(E)}function Ce(E,Q){var w,z=E.prefixCls,Y=E.className,B=E.record,ue=E.index,N=E.dataIndex,D=E.render,U=E.children,h=E.component,d=h===void 0?"td":h,s=E.colSpan,x=E.rowSpan,M=E.fixLeft,_=E.fixRight,I=E.firstFixLeft,o=E.lastFixLeft,ae=E.firstFixRight,ye=E.lastFixRight,xe=E.appendNode,nt=E.additionalProps,me=nt===void 0?{}:nt,oe=E.ellipsis,Le=E.align,ze=E.rowType,Ve=E.isSticky,He="".concat(z,"-cell"),ie,ce;if(U)ce=U;else{var se=Object(Ee.b)(B,N);if(ce=se,D){var pe=D(se,B,ue);ee(pe)?(ce=pe.children,ie=pe.props):ce=pe}}Object(y.a)(ce)==="object"&&!Array.isArray(ce)&&!r.isValidElement(ce)&&(ce=null),oe&&(o||ae)&&(ce=r.createElement("span",{className:"".concat(He,"-content")},ce));var L=ie||{},k=L.colSpan,ve=L.rowSpan,Xe=L.style,et=L.className,he=Object(Oe.a)(L,["colSpan","rowSpan","style","className"]),$e=k!==void 0?k:s,gt=ve!==void 0?ve:x;if($e===0||gt===0)return null;var ct={},Tt=typeof M=="number",Ut=typeof _=="number";Tt&&(ct.position="sticky",ct.left=M),Ut&&(ct.position="sticky",ct.right=_);var Me={};Le&&(Me.textAlign=Le);var Ye,at=oe===!0?{showTitle:!0}:oe;at&&(at.showTitle||ze==="header")&&(typeof ce=="string"||typeof ce=="number"?Ye=ce.toString():r.isValidElement(ce)&&typeof ce.props.children=="string"&&(Ye=ce.props.children));var Xt=Object(O.a)(Object(O.a)(Object(O.a)({title:Ye},he),me),{},{colSpan:$e&&$e!==1?$e:null,rowSpan:gt&>!==1?gt:null,className:q()(He,Y,(w={},Object(R.a)(w,"".concat(He,"-fix-left"),Tt),Object(R.a)(w,"".concat(He,"-fix-left-first"),I),Object(R.a)(w,"".concat(He,"-fix-left-last"),o),Object(R.a)(w,"".concat(He,"-fix-right"),Ut),Object(R.a)(w,"".concat(He,"-fix-right-first"),ae),Object(R.a)(w,"".concat(He,"-fix-right-last"),ye),Object(R.a)(w,"".concat(He,"-ellipsis"),oe),Object(R.a)(w,"".concat(He,"-with-append"),xe),Object(R.a)(w,"".concat(He,"-fix-sticky"),(Tt||Ut)&&Ve),w),me.className,et),style:Object(O.a)(Object(O.a)(Object(O.a)(Object(O.a)({},me.style),Me),ct),Xe),ref:ge(d)?Q:null});return r.createElement(d,Object.assign({},Xt),xe,ce)}var G=r.forwardRef(Ce);G.displayName="Cell";var j=r.memo(G,function(E,Q){return Q.shouldCellUpdate?!Q.shouldCellUpdate(Q.record,E.record):!1});ne.a=j},hW8S:function(it,ne,n){"use strict";n.d(ne,"a",function(){return y}),n.d(ne,"c",function(){return r}),n.d(ne,"b",function(){return p});var R=n("VTBJ"),O=n("Ff2n"),Oe=n("Kwbf"),y="RC_TABLE_INTERNAL_COL_DEFINE";function r(re){var q=re.expandable,T=Object(O.a)(re,["expandable"]);return"expandable"in re?Object(R.a)(Object(R.a)({},T),q):T}function p(re){return Object.keys(re).reduce(function(q,T){return(T.substr(0,5)==="data-"||T.substr(0,5)==="aria-")&&(q[T]=re[T]),q},{})}},k3GJ:function(it,ne,n){"use strict";n.d(ne,"a",function(){return po});var R=n("rePB"),O=n("ODXe"),Oe=n("Ff2n"),y=n("VTBJ"),r=n("q1tI"),p=n("TSYQ"),re=n.n(p),q=n("Zm9Q"),T=n("6cGi"),Ee=n("KQm4"),ee=n("xEkU"),ge=n.n(ee),Ce=n("t23M");function G(i){var f=Object(r.useRef)(),v=Object(r.useRef)(!1);function u(){for(var e=arguments.length,a=new Array(e),t=0;tg&&(K=g-F),Object(r.useMemo)(function(){if(!a.length)return[0,0];for(var le=a.length,We=le,lt=0;ltm+K){We=lt-1;break}}for(var dt=0,ut=le-1;ut>=0;ut-=1){var ot=i.get(a[ut].key)||B;if(ot[b]1&&arguments[1]!==void 0?arguments[1]:!1,u=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(u){if(v){var e=getComputedStyle(f),a=e.marginLeft,t=e.marginRight;u+=+a.replace("px","")+ +t.replace("px","")}u=+u.toFixed(6)}return u||0},Ye=function(f,v,u){f&&Object(ae.a)(f.style)==="object"&&(f.style[v]=u)},at=function(){return et.any},Xt=n("bdgK"),Lt=n("i8i4"),$t=n.n(Lt),vt=n("wgJM"),Wt=n("l4aY"),bn=n("m+aA"),C=n("c+Xe"),W=n("zT1h"),P=n("QC+M");function te(i,f,v){return v?i[0]===f[0]:i[0]===f[0]&&i[1]===f[1]}function H(i,f,v){var u=i[f]||{};return Object(y.a)(Object(y.a)({},u),v)}function J(i,f,v,u){for(var e=v.points,a=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(vt.a)(function(){e<=1?u({isCanceled:function(){return a!==i.current}}):v(u,e-1)});i.current=a}return r.useEffect(function(){return function(){f()}},[]),[v,f]},Bn=[Fe,Te,De,we],$n=!1,Gn=!0;function dn(i){return i===De||i===we}var Pn=function(i,f){var v=r.useState(Ze),u=Object(O.a)(v,2),e=u[0],a=u[1],t=At(),l=Object(O.a)(t,2),c=l[0],b=l[1];function m(){a(Fe)}return Dt(function(){if(e!==Ze&&e!==we){var g=Bn.indexOf(e),S=Bn[g+1],F=f(e);F===$n?a(S):c(function(K){function le(){if(K.isCanceled())return;a(S)}F===!0?le():Promise.resolve(F).then(le)})}},[i,e]),r.useEffect(function(){return function(){b()}},[]),[m,e]},Fn=function(i){var f=Object(r.useRef)(),v=Object(r.useRef)(i);v.current=i;var u=r.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(ft,u),t.removeEventListener(Se,u))}function a(t){f.current&&f.current!==t&&e(f.current),t&&t!==f.current&&(t.addEventListener(ft,u),t.addEventListener(Se,u),f.current=t)}return r.useEffect(function(){return function(){e(f.current)}},[]),[a,e]};function Dn(i,f,v,u){var e=u.motionEnter,a=e===void 0?!0:e,t=u.motionAppear,l=t===void 0?!0:t,c=u.motionLeave,b=c===void 0?!0:c,m=u.motionDeadline,g=u.motionLeaveImmediately,S=u.onAppearPrepare,F=u.onEnterPrepare,K=u.onLeavePrepare,le=u.onAppearStart,We=u.onEnterStart,lt=u.onLeaveStart,tt=u.onAppearActive,dt=u.onEnterActive,ut=u.onLeaveActive,ot=u.onAppearEnd,rt=u.onEnterEnd,jt=u.onLeaveEnd,pt=u.onVisibleChanged,Ht=Qe(),Nt=Object(O.a)(Ht,2),Be=Nt[0],ke=Nt[1],bt=Qe(Ke),Ct=Object(O.a)(bt,2),Re=Ct[0],Rt=Ct[1],Kt=Qe(null),Mt=Object(O.a)(Kt,2),wt=Mt[0],Ft=Mt[1],an=Object(r.useRef)(!1),yn=Object(r.useRef)(null),Vt=Object(r.useRef)(!1),On=Object(r.useRef)(null);function Xn(){var Bt=v();return Bt||On.current}var Sn=Object(r.useRef)(!1);function Tn(Bt){var St=Xn();if(Bt&&!Bt.deadline&&Bt.target!==St)return;var rn;Re===Ie&&Sn.current?rn=ot==null?void 0:ot(St,Bt):Re===Ae&&Sn.current?rn=rt==null?void 0:rt(St,Bt):Re===Pe&&Sn.current&&(rn=jt==null?void 0:jt(St,Bt)),rn!==!1&&!Vt.current&&(Rt(Ke),Ft(null))}var Gt=Fn(Tn),vn=Object(O.a)(Gt,1),on=vn[0],en=r.useMemo(function(){var Bt,St,rn;switch(Re){case"appear":return Bt={},Object(R.a)(Bt,Fe,S),Object(R.a)(Bt,Te,le),Object(R.a)(Bt,De,tt),Bt;case"enter":return St={},Object(R.a)(St,Fe,F),Object(R.a)(St,Te,We),Object(R.a)(St,De,dt),St;case"leave":return rn={},Object(R.a)(rn,Fe,K),Object(R.a)(rn,Te,lt),Object(R.a)(rn,De,ut),rn;default:return{}}},[Re]),ua=Pn(Re,function(Bt){if(Bt===Fe){var St=en[Fe];return St?St(Xn()):$n}if(It in en){var rn;Ft(((rn=en[It])===null||rn===void 0?void 0:rn.call(en,Xn(),null))||null)}return It===De&&(on(Xn()),m>0&&(clearTimeout(yn.current),yn.current=setTimeout(function(){Tn({deadline:!0})},m))),Gn}),ca=Object(O.a)(ua,2),ga=ca[0],It=ca[1],oa=dn(It);Sn.current=oa,Dt(function(){ke(f);var Bt=an.current;if(an.current=!0,!i)return;var St;!Bt&&f&&l&&(St=Ie),Bt&&f&&a&&(St=Ae),(Bt&&!f&&b||!Bt&&g&&!f&&b)&&(St=Pe),St&&(Rt(St),ga())},[f]),Object(r.useEffect)(function(){(Re===Ie&&!l||Re===Ae&&!a||Re===Pe&&!b)&&Rt(Ke)},[l,a,b]),Object(r.useEffect)(function(){return function(){clearTimeout(yn.current),Vt.current=!0}},[]),Object(r.useEffect)(function(){Be!==void 0&&Re===Ke&&(pt==null||pt(Be))},[Be,Re]);var Ca=wt;return en[Fe]&&It===Te&&(Ca=Object(y.a)({transition:"none"},Ca)),[Re,It,Ca,Be!=null?Be:f]}var An=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){return Object(D.a)(this,v),f.apply(this,arguments)}return Object(U.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(r.Component),sn=An;function Jn(i){var f=i;Object(ae.a)(i)==="object"&&(f=i.transitionSupport);function v(e){return!!(e.motionName&&f)}var u=r.forwardRef(function(e,a){var t=e.visible,l=t===void 0?!0:t,c=e.removeOnLeave,b=c===void 0?!0:c,m=e.forceRender,g=e.children,S=e.motionName,F=e.leavedClassName,K=e.eventProps,le=v(e),We=Object(r.useRef)(),lt=Object(r.useRef)();function tt(){try{return Object(bn.a)(We.current||lt.current)}catch(Rt){return null}}var dt=Dn(le,l,tt,e),ut=Object(O.a)(dt,4),ot=ut[0],rt=ut[1],jt=ut[2],pt=ut[3],Ht=r.useRef(pt);pt&&(Ht.current=!0);var Nt=Object(r.useRef)(a);Nt.current=a;var Be=r.useCallback(function(Rt){We.current=Rt,Object(C.b)(Nt.current,Rt)},[]),ke,bt=Object(y.a)(Object(y.a)({},K),{},{visible:l});if(!g)ke=null;else if(ot===Ke||!v(e))pt?ke=g(Object(y.a)({},bt),Be):!b&&Ht.current?ke=g(Object(y.a)(Object(y.a)({},bt),{},{className:F}),Be):m?ke=g(Object(y.a)(Object(y.a)({},bt),{},{style:{display:"none"}}),Be):ke=null;else{var Ct,Re;rt===Fe?Re="prepare":dn(rt)?Re="active":rt===Te&&(Re="start"),ke=g(Object(y.a)(Object(y.a)({},bt),{},{className:re()(ht(S,ot),(Ct={},Object(R.a)(Ct,ht(S,"".concat(ot,"-").concat(Re)),Re),Object(R.a)(Ct,S,typeof S=="string"),Ct)),style:jt}),Be)}return r.createElement(sn,{ref:lt},ke)});return u.displayName="CSSMotion",u}var _n=Jn(V),Yn="add",xn="keep",jn="remove",wn="removed";function ra(i){var f;return i&&Object(ae.a)(i)==="object"&&"key"in i?f=i:f={key:i},Object(y.a)(Object(y.a)({},f),{},{key:String(f.key)})}function Rn(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(ra)}function Jt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],u=0,e=f.length,a=Rn(i),t=Rn(f);a.forEach(function(b){for(var m=!1,g=u;g1});return c.forEach(function(b){v=v.filter(function(m){var g=m.key,S=m.status;return g!==b||S!==jn}),v.forEach(function(m){m.key===b&&(m.status=xn)})}),v}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fn(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_n,v=function(u){Object(d.a)(a,u);var e=Object(s.a)(a);function a(){var t;return Object(D.a)(this,a),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(l){t.setState(function(c){var b=c.keyEntities;return{keyEntities:b.map(function(m){return m.key!==l?m:Object(y.a)(Object(y.a)({},m),{},{status:wn})})}})},t}return Object(U.a)(a,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,b=this.props,m=b.component,g=b.children,S=b.onVisibleChanged,F=Object(Oe.a)(b,["component","children","onVisibleChanged"]),K=m||r.Fragment,le={};return Zt.forEach(function(We){le[We]=F[We],delete F[We]}),delete F.keys,r.createElement(K,F,c.map(function(We){var lt=We.status,tt=Object(Oe.a)(We,["status"]),dt=lt===Yn||lt===xn;return r.createElement(f,Object(N.a)({},le,{key:tt.key,visible:dt,eventProps:tt,onVisibleChanged:function(ot){S==null||S(ot,{key:tt.key}),ot||l.removeKey(tt.key)}}),g)}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var b=l.keys,m=c.keyEntities,g=Rn(b),S=Jt(m,g);return{keyEntities:S.filter(function(F){var K=m.find(function(le){var We=le.key;return F.key===We});return!(K&&K.status===wn&&F.status===jn)})}}}]),a}(r.Component);return v.defaultProps={component:"div"},v}var Yt=fn(V),ln=_n;function mn(i){var f=i.prefixCls,v=i.motion,u=i.animation,e=i.transitionName;return v||(u?{motionName:"".concat(f,"-").concat(u)}:e?{motionName:e}:null)}function qt(i){var f=i.prefixCls,v=i.visible,u=i.zIndex,e=i.mask,a=i.maskMotion,t=i.maskAnimation,l=i.maskTransitionName;if(!e)return null;var c={};return(a||l||t)&&(c=Object(y.a)({motionAppear:!0},mn({motion:a,prefixCls:f,transitionName:l,animation:t}))),r.createElement(ln,Object(N.a)({},c,{visible:v,removeOnLeave:!0}),function(b){var m=b.className;return r.createElement("div",{style:{zIndex:u},className:re()("".concat(f,"-mask"),m)})})}var Qn=n("9mu1"),ia=n("o0o1"),fa=n.n(ia),Ln=n("HaE+"),Wn=["measure","align",null,"motion"],kt=function(i,f){var v=Object(r.useState)(null),u=Object(O.a)(v,2),e=u[0],a=u[1],t=Object(r.useRef)(),l=Object(r.useRef)(!1);function c(g){l.current||a(g)}function b(){vt.a.cancel(t.current)}function m(g){b(),t.current=Object(vt.a)(function(){c(function(S){switch(e){case"align":return"motion";case"motion":return"stable";default:}return S}),g==null||g()})}return Object(r.useEffect)(function(){c("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":f();break;default:}e&&(t.current=Object(vt.a)(Object(Ln.a)(fa.a.mark(function g(){var S,F;return fa.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:S=Wn.indexOf(e),F=Wn[S+1],F&&S!==-1&&c(F);case 3:case"end":return le.stop()}},g)}))))},[e]),Object(r.useEffect)(function(){return function(){l.current=!0,b()}},[]),[e,m]},Zn=function(i){var f=r.useState({width:0,height:0}),v=Object(O.a)(f,2),u=v[0],e=v[1];function a(l){e({width:l.offsetWidth,height:l.offsetHeight})}var t=r.useMemo(function(){var l={};if(i){var c=u.width,b=u.height;i.indexOf("height")!==-1&&b?l.height=b:i.indexOf("minHeight")!==-1&&b&&(l.minHeight=b),i.indexOf("width")!==-1&&c?l.width=c:i.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[i,u]);return[t,a]},Un=r.forwardRef(function(i,f){var v=i.visible,u=i.prefixCls,e=i.className,a=i.style,t=i.children,l=i.zIndex,c=i.stretch,b=i.destroyPopupOnHide,m=i.forceRender,g=i.align,S=i.point,F=i.getRootDomNode,K=i.getClassNameFromAlign,le=i.onAlign,We=i.onMouseEnter,lt=i.onMouseLeave,tt=i.onMouseDown,dt=i.onTouchStart,ut=Object(r.useRef)(),ot=Object(r.useRef)(),rt=Object(r.useState)(),jt=Object(O.a)(rt,2),pt=jt[0],Ht=jt[1],Nt=Zn(c),Be=Object(O.a)(Nt,2),ke=Be[0],bt=Be[1];function Ct(){c&&bt(F())}var Re=kt(v,Ct),Rt=Object(O.a)(Re,2),Kt=Rt[0],Mt=Rt[1],wt=Object(r.useRef)();function Ft(){return S||F}function an(){var Gt;(Gt=ut.current)===null||Gt===void 0||Gt.forceAlign()}function yn(Gt,vn){var on=K(vn);pt!==on&&Ht(on),Kt==="align"&&(pt!==on?Promise.resolve().then(function(){an()}):Mt(function(){var en;(en=wt.current)===null||en===void 0||en.call(wt)}),le==null||le(Gt,vn))}var Vt=Object(y.a)({},mn(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Gt){var vn=Vt[Gt];Vt[Gt]=function(on,en){return Mt(),vn==null?void 0:vn(on,en)}});function On(){return new Promise(function(Gt){wt.current=Gt})}r.useEffect(function(){!Vt.motionName&&Kt==="motion"&&Mt()},[Vt.motionName,Kt]),r.useImperativeHandle(f,function(){return{forceAlign:an,getElement:function(){return ot.current}}});var Xn=Object(y.a)(Object(y.a)({},ke),{},{zIndex:l,opacity:Kt==="motion"||Kt==="stable"||!v?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},a),Sn=!0;(g==null?void 0:g.points)&&(Kt==="align"||Kt==="stable")&&(Sn=!1);var Tn=t;return r.Children.count(t)>1&&(Tn=r.createElement("div",{className:"".concat(u,"-content")},t)),r.createElement(ln,Object(N.a)({visible:v,ref:ot,leavedClassName:"".concat(u,"-hidden")},Vt,{onAppearPrepare:On,onEnterPrepare:On,removeOnLeave:b,forceRender:m}),function(Gt,vn){var on=Gt.className,en=Gt.style,ua=re()(u,e,pt,on);return r.createElement(Qn.a,{target:Ft(),key:"popup",ref:ut,monitorWindowResize:!0,disabled:Sn,align:g,onAlign:yn},r.createElement("div",{ref:vn,className:ua,onMouseEnter:We,onMouseLeave:lt,onMouseDownCapture:tt,onTouchStartCapture:dt,style:Object(y.a)(Object(y.a)({},en),Xn)},Tn))})});Un.displayName="PopupInner";var ma=Un,En=r.forwardRef(function(i,f){var v=i.prefixCls,u=i.visible,e=i.zIndex,a=i.children,t=i.mobile;t=t===void 0?{}:t;var l=t.popupClassName,c=t.popupStyle,b=t.popupMotion,m=b===void 0?{}:b,g=t.popupRender,S=r.useRef();r.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return S.current}}});var F=Object(y.a)({zIndex:e},c),K=a;return r.Children.count(a)>1&&(K=r.createElement("div",{className:"".concat(v,"-content")},a)),g&&(K=g(K)),r.createElement(ln,Object(N.a)({visible:u,ref:S,removeOnLeave:!0},m),function(le,We){var lt=le.className,tt=le.style,dt=re()(v,l,lt);return r.createElement("div",{ref:We,className:dt,style:Object(y.a)(Object(y.a)({},tt),F)},K)})});En.displayName="MobilePopupInner";var ya=En,pa=["visible","mobile"],sa=r.forwardRef(function(i,f){var v=i.visible,u=i.mobile,e=Object(Oe.a)(i,pa),a=Object(r.useState)(v),t=Object(O.a)(a,2),l=t[0],c=t[1],b=Object(r.useState)(!1),m=Object(O.a)(b,2),g=m[0],S=m[1],F=Object(y.a)(Object(y.a)({},e),{},{visible:l});Object(r.useEffect)(function(){c(v),v&&u&&S(Z())},[v,u]);var K=g?r.createElement(ya,Object(N.a)({},F,{mobile:u,ref:f})):r.createElement(ma,Object(N.a)({},F,{ref:f}));return r.createElement("div",null,r.createElement(qt,F),K)});sa.displayName="Popup";var Aa=sa,Oa=r.createContext(null),In=Oa;function qn(){}function wa(){return""}function _a(i){return i?i.ownerDocument:window.document}var zn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function xa(i){var f=function(v){Object(d.a)(e,v);var u=Object(s.a)(e);function e(a){var t;Object(D.a)(this,e),t=u.call(this,a),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var b=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,b,b?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var b;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Wt.a)((b=t.popupRef.current)===null||b===void 0?void 0:b.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var b;if(t.preClickTime&&t.preTouchTime?b=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?b=t.preClickTime:t.preTouchTime&&(b=t.preTouchTime),Math.abs(b-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var m=!t.state.popupVisible;(t.isClickToHide()&&!m||m&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var b=c.target,m=t.getRootDomNode(),g=t.getPopupDomNode();(!Object(Wt.a)(m,b)||t.isContextMenuOnly())&&!Object(Wt.a)(g,b)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var b=Object(bn.a)(t.triggerRef.current);if(b)return b}catch(m){}return $t.a.findDOMNode(Object(h.a)(t))},t.getPopupClassNameFromAlign=function(c){var b=[],m=t.props,g=m.popupPlacement,S=m.builtinPlacements,F=m.prefixCls,K=m.alignPoint,le=m.getPopupClassNameFromAlign;return g&&S&&b.push(J(S,F,c,K)),le&&b.push(le(c)),b.join(" ")},t.getComponent=function(){var c=t.props,b=c.prefixCls,m=c.destroyPopupOnHide,g=c.popupClassName,S=c.onPopupAlign,F=c.popupMotion,K=c.popupAnimation,le=c.popupTransitionName,We=c.popupStyle,lt=c.mask,tt=c.maskAnimation,dt=c.maskTransitionName,ut=c.maskMotion,ot=c.zIndex,rt=c.popup,jt=c.stretch,pt=c.alignPoint,Ht=c.mobile,Nt=c.forceRender,Be=t.state,ke=Be.popupVisible,bt=Be.point,Ct=t.getPopupAlign(),Re={};return t.isMouseEnterToShow()&&(Re.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(Re.onMouseLeave=t.onPopupMouseLeave),Re.onMouseDown=t.onPopupMouseDown,Re.onTouchStart=t.onPopupMouseDown,r.createElement(Aa,Object(N.a)({prefixCls:b,destroyPopupOnHide:m,visible:ke,point:pt&&bt,className:g,align:Ct,onAlign:S,animation:K,getClassNameFromAlign:t.getPopupClassNameFromAlign},Re,{stretch:jt,getRootDomNode:t.getRootDomNode,style:We,mask:lt,zIndex:ot,transitionName:le,maskAnimation:tt,maskTransitionName:dt,maskMotion:ut,ref:t.popupRef,motion:F,mobile:Ht,forceRender:Nt}),typeof rt=="function"?rt():rt)},t.attachParent=function(c){vt.a.cancel(t.attachId);var b=t.props,m=b.getPopupContainer,g=b.getDocument,S=t.getRootDomNode(),F;m?(S||m.length===0)&&(F=m(S)):F=g(t.getRootDomNode()).body,F?F.appendChild(c):t.attachId=Object(vt.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,b=c(t.getRootDomNode()).createElement("div");return b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",t.attachParent(b),b},t.setPoint=function(c){var b=t.props.alignPoint;if(!b||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var l;return"popupVisible"in a?l=!!a.popupVisible:l=!!a.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},zn.forEach(function(c){t["fire".concat(c)]=function(b){t.fireEvents(c,b)}}),t}return Object(U.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(W.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(W.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(W.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(W.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),vt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,l=t.popupPlacement,c=t.popupAlign,b=t.builtinPlacements;return l&&b?H(b,l,c):c}},{key:"setPopupVisible",value:function(t,l){var c=this.props.alignPoint,b=this.state.popupVisible;this.clearDelayTimer(),b!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:b}),this.props.onPopupVisibleChange(t)),c&&l&&t&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(t,l,c){var b=this,m=l*1e3;if(this.clearDelayTimer(),m){var g=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){b.setPopupVisible(t,g),b.clearDelayTimer()},m)}else this.setPopupVisible(t,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var l=this.props.children.props,c=this.props;return l[t]&&c[t]?this["fire".concat(t)]:l[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,l){var c=this.props.children.props[t];c&&c(l);var b=this.props[t];b&&b(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,l=this.props,c=l.children,b=l.forceRender,m=l.alignPoint,g=l.className,S=l.autoDestroy,F=r.Children.only(c),K={key:"trigger"};this.isContextMenuToShow()?K.onContextMenu=this.onContextMenu:K.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(K.onClick=this.onClick,K.onMouseDown=this.onMouseDown,K.onTouchStart=this.onTouchStart):(K.onClick=this.createTwoChains("onClick"),K.onMouseDown=this.createTwoChains("onMouseDown"),K.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(K.onMouseEnter=this.onMouseEnter,m&&(K.onMouseMove=this.onMouseMove)):K.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?K.onMouseLeave=this.onMouseLeave:K.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(K.onFocus=this.onFocus,K.onBlur=this.onBlur):(K.onFocus=this.createTwoChains("onFocus"),K.onBlur=this.createTwoChains("onBlur"));var le=re()(F&&F.props&&F.props.className,g);le&&(K.className=le);var We=Object(y.a)({},K);Object(C.c)(F)&&(We.ref=Object(C.a)(this.triggerRef,F.ref));var lt=r.cloneElement(F,We),tt;return(t||this.popupRef.current||b)&&(tt=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&S&&(tt=null),r.createElement(In.Provider,{value:this.triggerContextValue},lt,tt)}}],[{key:"getDerivedStateFromProps",value:function(t,l){var c=t.popupVisible,b={};return c!==void 0&&l.popupVisible!==c&&(b.popupVisible=c,b.prevPopupVisible=l.popupVisible),b}}]),e}(r.Component);return f.contextType=In,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:wa,getDocument:_a,onPopupVisibleChange:qn,afterPopupVisibleChange:qn,onPopupAlign:qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var La=xa(P.a),gn={adjustX:1,adjustY:1},ea={topLeft:{points:["bl","tl"],overflow:gn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:gn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:gn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:gn,offset:[4,0]}},ja={topLeft:{points:["bl","tl"],overflow:gn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:gn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:gn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:gn,offset:[4,0]}},ha=ea,nn=0,Cn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pn=function(f,v,u){var e=gt(v),a=f.getState();f.setState({defaultActiveFirst:Object(y.a)(Object(y.a)({},a.defaultActiveFirst),{},Object(R.a)({},e,u))})},ta=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(u){var e;Object(D.a)(this,v),e=f.call(this,u),e.onDestroy=function(m){e.props.onDestroy(m)},e.onKeyDown=function(m){var g=m.keyCode,S=e.menuInstance,F=e.props.store,K=e.getVisible();if(g===E.a.ENTER)return e.onTitleClick(m),pn(F,e.props.eventKey,!0),!0;if(g===E.a.RIGHT)return K?S.onKeyDown(m):(e.triggerOpenChange(!0),pn(F,e.props.eventKey,!0)),!0;if(g===E.a.LEFT){var le;if(K)le=S.onKeyDown(m);else return;return le||(e.triggerOpenChange(!1),le=!0),le}return K&&(g===E.a.UP||g===E.a.DOWN)?S.onKeyDown(m):void 0},e.onOpenChange=function(m){e.props.onOpenChange(m)},e.onPopupVisibleChange=function(m){e.triggerOpenChange(m,m?"mouseenter":"mouseleave")},e.onMouseEnter=function(m){var g=e.props,S=g.eventKey,F=g.onMouseEnter,K=g.store;pn(K,e.props.eventKey,!1),F({key:S,domEvent:m})},e.onMouseLeave=function(m){var g=e.props,S=g.parentMenu,F=g.eventKey,K=g.onMouseLeave;S.subMenuInstance=Object(h.a)(e),K({key:F,domEvent:m})},e.onTitleMouseEnter=function(m){var g=e.props,S=g.eventKey,F=g.onItemHover,K=g.onTitleMouseEnter;F({key:S,hover:!0}),K({key:S,domEvent:m})},e.onTitleMouseLeave=function(m){var g=e.props,S=g.parentMenu,F=g.eventKey,K=g.onItemHover,le=g.onTitleMouseLeave;S.subMenuInstance=Object(h.a)(e),K({key:F,hover:!1}),le({key:F,domEvent:m})},e.onTitleClick=function(m){var g=Object(h.a)(e),S=g.props;if(S.onTitleClick({key:S.eventKey,domEvent:m}),S.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),pn(S.store,e.props.eventKey,!1)},e.onSubMenuClick=function(m){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(m))},e.onSelect=function(m){e.props.onSelect(m)},e.onDeselect=function(m){e.props.onDeselect(m)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(m){e.menuInstance=m},e.addKeyPath=function(m){return Object(y.a)(Object(y.a)({},m),{},{keyPath:(m.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(m,g){var S=e.props.eventKey,F=function(){e.onOpenChange({key:S,item:Object(h.a)(e),trigger:g,open:m})};g==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){F()},0):F()},e.isChildrenSelected=function(){var m={find:!1};return Tt(e.props.children,e.props.selectedKeys,m),m.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var m=Lt.findDOMNode(e.menuInstance);if(m.offsetWidth>=e.subMenuTitle.offsetWidth)return;m.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(m){e.subMenuTitle=m},e.getBaseProps=function(){var m=Object(h.a)(e),g=m.props,S=e.getMode();return{mode:S==="horizontal"?"vertical":S,visible:e.getVisible(),level:g.level+1,inlineIndent:g.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:g.selectedKeys,eventKey:"".concat(g.eventKey,"-menu-"),openKeys:g.openKeys,motion:g.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:g.subMenuOpenDelay,parentMenu:Object(h.a)(e),subMenuCloseDelay:g.subMenuCloseDelay,forceSubMenuRender:g.forceSubMenuRender,triggerSubMenuAction:g.triggerSubMenuAction,builtinPlacements:g.builtinPlacements,defaultActiveFirst:g.store.getState().defaultActiveFirst[gt(g.eventKey)],multiple:g.multiple,prefixCls:g.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:g.itemIcon,expandIcon:g.expandIcon,direction:g.direction}},e.getMotion=function(m,g){var S=Object(h.a)(e),F=S.haveRendered,K=e.props,le=K.motion,We=K.rootPrefixCls,lt=Object(y.a)(Object(y.a)({},le),{},{leavedClassName:"".concat(We,"-hidden"),removeOnLeave:!1,motionAppear:F||!g||m!=="inline"});return lt};var a=u.store,t=u.eventKey,l=a.getState(),c=l.defaultActiveFirst;e.isRootMenu=!1;var b=!1;return c&&(b=c[t]),pn(a,t,b),e.state={mode:u.mode,isOpen:u.isOpen},e}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,a=this.props,t=a.mode,l=a.parentMenu,c=a.manualRef,b=a.isOpen,m=function(){e.setState({mode:t,isOpen:b})},g=b!==this.state.isOpen,S=t!==this.state.mode;if((S||g)&&(vt.a.cancel(this.updateStateRaf),S?this.updateStateRaf=Object(vt.a)(m):m()),c&&c(this),t!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!b)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,a=e.onDestroy,t=e.eventKey;a&&a(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),vt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,a){var t=this.getBaseProps();return r.createElement(la,Object(N.a)({},t,{id:this.internalMenuId,className:e,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,a=this.getBaseProps(),t=a.mode,l=a.visible,c=a.forceSubMenuRender,b=a.direction,m=this.getMotion(t,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||c,!this.haveOpened)return r.createElement("div",null);var g=re()("".concat(a.prefixCls,"-sub"),Object(R.a)({},"".concat(a.prefixCls,"-rtl"),b==="rtl"));return this.isInlineMode()?r.createElement(ln,Object(N.a)({visible:a.visible,forceRender:c},m),function(S){var F=S.className,K=S.style,le=re()(g,F);return e.renderPopupMenu(le,K)}):this.renderPopupMenu(g)}},{key:"render",value:function(){var e,a,t,l=Object(y.a)({},this.props),c=this.getVisible(),b=this.getPrefixCls(),m=this.isInlineMode(),g=this.getMode(),S=re()(b,"".concat(b,"-").concat(g),(e={},Object(R.a)(e,l.className,!!l.className),Object(R.a)(e,this.getOpenClassName(),c),Object(R.a)(e,this.getActiveClassName(),l.active||c&&!m),Object(R.a)(e,this.getDisabledClassName(),l.disabled),Object(R.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var F={},K={},le={};l.disabled||(F={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},K={onClick:this.onTitleClick},le={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var We={},lt=l.direction,tt=lt==="rtl";m&&(tt?We.paddingRight=l.inlineIndent*l.level:We.paddingLeft=l.inlineIndent*l.level);var dt={};this.getVisible()&&(dt={"aria-owns":this.internalMenuId});var ut=null;g!=="horizontal"&&(ut=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ut=r.createElement(this.props.expandIcon,Object(y.a)({},this.props))));var ot=r.createElement("div",Object(N.a)({ref:this.saveSubMenuTitle,style:We,className:"".concat(b,"-title"),role:"button"},le,K,{"aria-expanded":c},dt,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,ut||r.createElement("i",{className:"".concat(b,"-arrow")})),rt=this.renderChildren(),jt=((a=l.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},pt=Cn[g],Ht=l.popupOffset?{offset:l.popupOffset}:{},Nt=re()((t={},Object(R.a)(t,l.popupClassName,l.popupClassName&&!m),Object(R.a)(t,"".concat(b,"-rtl"),tt),t)),Be=l.disabled,ke=l.triggerSubMenuAction,bt=l.subMenuOpenDelay,Ct=l.forceSubMenuRender,Re=l.subMenuCloseDelay,Rt=l.builtinPlacements;Ut.forEach(function(Ft){return delete l[Ft]}),delete l.onClick;var Kt=tt?Object(y.a)(Object(y.a)({},ja),Rt):Object(y.a)(Object(y.a)({},ea),Rt);delete l.direction;var Mt=this.getBaseProps(),wt=m?null:this.getMotion(Mt.mode,Mt.visible);return r.createElement("li",Object(N.a)({},l,F,{className:S,role:"menuitem"}),r.createElement(La,{prefixCls:b,popupClassName:re()("".concat(b,"-popup"),Nt),getPopupContainer:jt,builtinPlacements:Kt,popupPlacement:pt,popupVisible:m?!1:c,popupAlign:Ht,popup:m?null:rt,action:Be||m?[]:[ke],mouseEnterDelay:bt,mouseLeaveDelay:Re,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ct,popupMotion:wt},ot),m?rt:null)}}]),v}(r.Component);ta.defaultProps={onMouseEnter:he,onMouseLeave:he,onTitleMouseEnter:he,onTitleMouseLeave:he,onTitleClick:he,manualRef:he,mode:"vertical",title:""};var kn=Object(x.b)(function(i,f){var v=i.openKeys,u=i.activeKey,e=i.selectedKeys,a=f.eventKey,t=f.subMenuKey;return{isOpen:v.indexOf(a)>-1,active:u[t]===a,selectedKeys:e}})(ta);kn.isSubMenu=!0;var Hn=kn,Ra="menuitem-overflowed",hn=.5,Ma=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){var u;return Object(D.a)(this,v),u=f.apply(this,arguments),u.resizeObserver=null,u.mutationObserver=null,u.originalTotalWidth=0,u.overflowedItems=[],u.menuItemSizes=[],u.cancelFrameId=null,u.state={lastVisibleIndex:void 0},u.childRef=r.createRef(),u.getMenuItemNodes=function(){var e=u.props.prefixCls,a=u.childRef.current;return a?[].slice.call(a.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},u.getOverflowedSubMenuItem=function(e,a,t){var l=u.props,c=l.overflowedIndicator,b=l.level,m=l.mode,g=l.prefixCls,S=l.theme;if(b!==1||m!=="horizontal")return null;var F=u.props.children[0],K=F.props,le=K.children,We=K.title,lt=K.style,tt=Object(Oe.a)(K,["children","title","style"]),dt=Object(y.a)({},lt),ut="".concat(e,"-overflowed-indicator"),ot="".concat(e,"-overflowed-indicator");a.length===0&&t!==!0?dt=Object(y.a)(Object(y.a)({},dt),{},{display:"none"}):t&&(dt=Object(y.a)(Object(y.a)({},dt),{},{visibility:"hidden",position:"absolute"}),ut="".concat(ut,"-placeholder"),ot="".concat(ot,"-placeholder"));var rt=S?"".concat(g,"-").concat(S):"",jt={};return Ut.forEach(function(pt){tt[pt]!==void 0&&(jt[pt]=tt[pt])}),r.createElement(Hn,Object(N.a)({title:c,className:"".concat(g,"-overflowed-submenu"),popupClassName:rt},jt,{key:ut,eventKey:ot,disabled:!1,style:dt}),a)},u.setChildrenWidthAndResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var a=e.children;if(!a||a.length===0)return;var t=e.children[a.length-1];Ye(t,"display","inline-block");var l=u.getMenuItemNodes(),c=l.filter(function(b){return b.className.split(" ").indexOf(Ra)>=0});c.forEach(function(b){Ye(b,"display","inline-block")}),u.menuItemSizes=l.map(function(b){return Me(b,!0)}),c.forEach(function(b){Ye(b,"display","none")}),u.overflowedIndicatorWidth=Me(e.children[e.children.length-1],!0),u.originalTotalWidth=u.menuItemSizes.reduce(function(b,m){return b+m},0),u.handleResize(),Ye(t,"display","none")},u.handleResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var a=Me(e);u.overflowedItems=[];var t=0,l;u.originalTotalWidth>a+hn&&(l=-1,u.menuItemSizes.forEach(function(c){t+=c,t+u.overflowedIndicatorWidth<=a&&(l+=1)})),u.setState({lastVisibleIndex:l})},u}return Object(U.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Xt.default(function(t){t.forEach(function(){var l=e.cancelFrameId;cancelAnimationFrame(l),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var a=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(l,c,b){var m=c;if(a.props.mode==="horizontal"){var g=a.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(b>t&&(m=r.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Ra)})),b===t+1&&(a.overflowedItems=e.slice(t+1).map(function(F){return r.cloneElement(F,{key:F.props.eventKey,mode:"vertical-left"})}),g=a.getOverflowedSubMenuItem(c.props.eventKey,a.overflowedItems)));var S=[].concat(Object(Ee.a)(l),[g,m]);return b===e.length-1&&S.push(a.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),S}return[].concat(Object(Ee.a)(l),[m])},[])}},{key:"render",value:function(){var e=this.props,a=e.visible,t=e.prefixCls,l=e.overflowedIndicator,c=e.mode,b=e.level,m=e.tag,g=e.children,S=e.theme,F=Object(Oe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),K=m;return r.createElement(K,Object(N.a)({ref:this.childRef},F),this.renderChildren(g))}}]),v}(r.Component);Ma.defaultProps={tag:"div",className:""};var va=Ma;function na(i){return i.length?i.every(function(f){return!!f.props.disabled}):!0}function Mn(i,f,v){var u=i.getState();i.setState({activeKey:Object(y.a)(Object(y.a)({},u.activeKey),{},Object(R.a)({},f,v))})}function Kn(i){return i.eventKey||"0-menu-"}function aa(i,f){var v=f,u=i.children,e=i.eventKey;if(v){var a;if(ct(u,function(t,l){t&&t.props&&!t.props.disabled&&v===$e(t,e,l)&&(a=!0)}),a)return v}return v=null,i.defaultActiveFirst&&ct(u,function(t,l){!v&&t&&!t.props.disabled&&(v=$e(t,e,l))}),v}function ba(i){if(!i)return;var f=this.instanceArray.indexOf(i);f!==-1?this.instanceArray[f]=i:this.instanceArray.push(i)}var Sa=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(u){var e;return Object(D.a)(this,v),e=f.call(this,u),e.onKeyDown=function(a,t){var l=a.keyCode,c;if(e.getFlatInstanceArray().forEach(function(m){m&&m.props.active&&m.onKeyDown&&(c=m.onKeyDown(a))}),c)return 1;var b=null;return(l===E.a.UP||l===E.a.DOWN)&&(b=e.step(l===E.a.UP?-1:1)),b?(a.preventDefault(),Mn(e.props.store,Kn(e.props),b.props.eventKey),typeof t=="function"&&t(b),1):void 0},e.onItemHover=function(a){var t=a.key,l=a.hover;Mn(e.props.store,Kn(e.props),l?t:null)},e.onDeselect=function(a){e.props.onDeselect(a)},e.onSelect=function(a){e.props.onSelect(a)},e.onClick=function(a){e.props.onClick(a)},e.onOpenChange=function(a){e.props.onOpenChange(a)},e.onDestroy=function(a){e.props.onDestroy(a)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(a){var t=e.getFlatInstanceArray(),l=e.props.store.getState().activeKey[Kn(e.props)],c=t.length;if(!c)return null;a<0&&(t=t.concat().reverse());var b=-1;if(t.every(function(F,K){return F&&F.props.eventKey===l?(b=K,!1):!0}),!e.props.defaultActiveFirst&&b!==-1&&na(t.slice(b,c-1)))return;var m=(b+1)%c,g=m;do{var S=t[g];if(!S||S.props.disabled)g=(g+1)%c;else return S}while(g!==m);return null},e.renderCommonMenuItem=function(a,t,l){var c=e.props.store.getState(),b=Object(h.a)(e),m=b.props,g=$e(a,m.eventKey,t),S=a.props;if(!S||typeof a.type=="string")return a;var F=g===c.activeKey,K=Object(y.a)(Object(y.a)({mode:S.mode||m.mode,level:m.level,inlineIndent:m.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:m.prefixCls,index:t,parentMenu:m.parentMenu,manualRef:S.disabled?void 0:Object(_.a)(a.ref,ba.bind(Object(h.a)(e))),eventKey:g,active:!S.disabled&&F,multiple:m.multiple,onClick:function(We){(S.onClick||he)(We),e.onClick(We)},onItemHover:e.onItemHover,motion:m.motion,subMenuOpenDelay:m.subMenuOpenDelay,subMenuCloseDelay:m.subMenuCloseDelay,forceSubMenuRender:m.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:m.builtinPlacements,itemIcon:S.itemIcon||e.props.itemIcon,expandIcon:S.expandIcon||e.props.expandIcon},l),{},{direction:m.direction});return(m.mode==="inline"||at())&&(K.triggerSubMenuAction="click"),r.cloneElement(a,Object(y.a)(Object(y.a)({},K),{},{key:g||t}))},e.renderMenuItem=function(a,t,l){if(!a)return null;var c=e.props.store.getState(),b={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:l};return e.renderCommonMenuItem(a,t,b)},u.store.setState({activeKey:Object(y.a)(Object(y.a)({},u.store.getState().activeKey),{},Object(R.a)({},u.eventKey,aa(u,u.activeKey)))}),e.instanceArray=[],e}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!o()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var a=this.props,t="activeKey"in a?a.activeKey:a.store.getState().activeKey[Kn(a)],l=aa(a,t);if(l!==t)Mn(a.store,Kn(a),l);else if("activeKey"in e){var c=aa(e,e.activeKey);l!==c&&Mn(a.store,Kn(a),l)}}},{key:"render",value:function(){var e=this,a=Object(N.a)({},this.props);this.instanceArray=[];var t=re()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),l={className:t,role:a.role||"menu"};a.id&&(l.id=a.id),a.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var c=a.prefixCls,b=a.eventKey,m=a.visible,g=a.level,S=a.mode,F=a.overflowedIndicator,K=a.theme;return Ut.forEach(function(le){return delete a[le]}),delete a.onClick,r.createElement(va,Object(N.a)({},a,{prefixCls:c,mode:S,tag:"ul",level:g,theme:K,visible:m,overflowedIndicator:F},l),Object(q.a)(a.children).map(function(le,We){return e.renderMenuItem(le,We,b||"0-menu-")}))}}]),v}(r.Component);Sa.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:he};var Ta=Object(x.b)()(Sa),la=Ta,Vn=n("Kwbf");function Ne(i,f,v){var u=i.prefixCls,e=i.motion,a=i.defaultMotions,t=a===void 0?{}:a,l=i.openAnimation,c=i.openTransitionName,b=f.switchingModeFromInline;if(e)return e;if(Object(ae.a)(l)==="object"&&l)Object(Vn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(u,"-open-").concat(l)};if(c)return{motionName:c};var m=t[v];return m||(b?null:t.other)}var _e=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(u){var e;Object(D.a)(this,v),e=f.call(this,u),e.onSelect=function(l){var c=Object(h.a)(e),b=c.props;if(b.selectable){var m=e.store.getState(),g=m.selectedKeys,S=l.key;b.multiple?g=g.concat([S]):g=[S],"selectedKeys"in b||e.store.setState({selectedKeys:g}),b.onSelect(Object(y.a)(Object(y.a)({},l),{},{selectedKeys:g}))}},e.onClick=function(l){var c=e.getRealMenuMode(),b=Object(h.a)(e),m=b.store,g=b.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(m.setState({openKeys:[]}),g([])),e.props.onClick(l)},e.onKeyDown=function(l,c){e.innerMenu.getWrappedInstance().onKeyDown(l,c)},e.onOpenChange=function(l){var c=Object(h.a)(e),b=c.props,m=e.store.getState().openKeys.concat(),g=!1,S=function(K){var le=!1;if(K.open)le=m.indexOf(K.key)===-1,le&&m.push(K.key);else{var We=m.indexOf(K.key);le=We!==-1,le&&m.splice(We,1)}g=g||le};Array.isArray(l)?l.forEach(S):S(l),g&&("openKeys"in e.props||e.store.setState({openKeys:m}),b.onOpenChange(m))},e.onDeselect=function(l){var c=Object(h.a)(e),b=c.props;if(b.selectable){var m=e.store.getState().selectedKeys.concat(),g=l.key,S=m.indexOf(g);S!==-1&&m.splice(S,1),"selectedKeys"in b||e.store.setState({selectedKeys:m}),b.onDeselect(Object(y.a)(Object(y.a)({},l),{},{selectedKeys:m}))}},e.onMouseEnter=function(l){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(l)},e.onTransitionEnd=function(l){var c=l.propertyName==="width"&&l.target===l.currentTarget,b=l.target.className,m=Object.prototype.toString.call(b)==="[object SVGAnimatedString]"?b.animVal:b,g=l.propertyName==="font-size"&&m.indexOf("anticon")>=0;(c||g)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(l){e.innerMenu=l},e.isRootMenu=!0;var a=u.defaultSelectedKeys,t=u.defaultOpenKeys;return"selectedKeys"in u&&(a=u.selectedKeys||[]),"openKeys"in u&&(t=u.openKeys||[]),e.store=Object(x.c)({selectedKeys:a,openKeys:t,activeKey:{"0-menu-":aa(u,u.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:u,inlineOpenKeys:[],store:e.store},e}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var a=this.props,t=a.siderCollapsed,l=a.inlineCollapsed,c=a.onOpenChange;(!e.inlineCollapsed&&l||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,a=this.store,t=this.prevOpenKeys,l=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");l?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,a=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return a&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,a=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:a}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(y.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(y.a)(Object(y.a)({},e),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ne(this.props,this.state,a)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(x.a,{store:this.store},r.createElement(la,Object(N.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var t=a.prevProps,l=a.store,c=l.getState(),b={},m={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(m.switchingModeFromInline=!0),"openKeys"in e?b.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(m.switchingModeFromInline=!0,m.inlineOpenKeys=c.openKeys,b.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(b.openKeys=a.inlineOpenKeys,m.inlineOpenKeys=[])),Object.keys(b).length&&l.setState(b),m}}]),v}(r.Component);_e.defaultProps={selectable:!0,onClick:he,onSelect:he,onOpenChange:he,onDeselect:he,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ge=_e,mt=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){var u;return Object(D.a)(this,v),u=f.apply(this,arguments),u.onKeyDown=function(e){var a=e.keyCode;return a===E.a.ENTER?(u.onClick(e),!0):void 0},u.onMouseLeave=function(e){var a=u.props,t=a.eventKey,l=a.onItemHover,c=a.onMouseLeave;l({key:t,hover:!1}),c({key:t,domEvent:e})},u.onMouseEnter=function(e){var a=u.props,t=a.eventKey,l=a.onItemHover,c=a.onMouseEnter;l({key:t,hover:!0}),c({key:t,domEvent:e})},u.onClick=function(e){var a=u.props,t=a.eventKey,l=a.multiple,c=a.onClick,b=a.onSelect,m=a.onDeselect,g=a.isSelected,S={key:t,keyPath:[t],item:Object(h.a)(u),domEvent:e};c(S),l?g?m(S):b(S):g||b(S)},u.saveNode=function(e){u.node=e},u}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,a=Object(y.a)({},this.props),t=re()(this.getPrefixCls(),a.className,(e={},Object(R.a)(e,this.getActiveClassName(),!a.disabled&&a.active),Object(R.a)(e,this.getSelectedClassName(),a.isSelected),Object(R.a)(e,this.getDisabledClassName(),a.disabled),e)),l=Object(y.a)(Object(y.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:t,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?l=Object(y.a)(Object(y.a)({},l),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(l.role="none");var c={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},b=Object(y.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?b.paddingRight=a.inlineIndent*a.level:b.paddingLeft=a.inlineIndent*a.level),Ut.forEach(function(g){return delete a[g]}),delete a.direction;var m=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(m=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(N.a)({},Object(M.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,c,{style:b,ref:this.saveNode}),a.children,m)}}]),v}(r.Component);mt.isMenuItem=!0,mt.defaultProps={onSelect:he,onMouseEnter:he,onMouseLeave:he,manualRef:he};var qe=Object(x.b)(function(i,f){var v=i.activeKey,u=i.selectedKeys,e=f.eventKey,a=f.subMenuKey;return{active:v[a]===e,isSelected:Array.isArray(u)?u.indexOf(e)!==-1:u===e}})(mt),Qt=qe,xt=function(i){Object(d.a)(v,i);var f=Object(s.a)(v);function v(){var u;return Object(D.a)(this,v),u=f.apply(this,arguments),u.renderInnerMenuItem=function(e){var a=u.props,t=a.renderMenuItem,l=a.index;return t(e,l,u.props.subMenuKey)},u}return Object(U.a)(v,[{key:"render",value:function(){var e=Object(N.a)({},this.props),a=e.className,t=a===void 0?"":a,l=e.rootPrefixCls,c="".concat(l,"-item-group-title"),b="".concat(l,"-item-group-list"),m=e.title,g=e.children;return Ut.forEach(function(S){return delete e[S]}),delete e.direction,r.createElement("li",Object(N.a)({},e,{onClick:function(F){return F.stopPropagation()},className:"".concat(t," ").concat(l,"-item-group")}),r.createElement("div",{className:c,title:typeof m=="string"?m:void 0},m),r.createElement("ul",{className:b},r.Children.map(g,this.renderInnerMenuItem)))}}]),v}(r.Component);xt.isMenuItemGroup=!0,xt.defaultProps={disabled:!0};var un=xt,Ua=function(f){var v=f.className,u=f.rootPrefixCls,e=f.style;return r.createElement("li",{className:"".concat(v," ").concat(u,"-item-divider"),style:e})};Ua.defaultProps={disabled:!0,className:"",style:{}};var qa=Ua,Ga=Ge,Ia=n("eDIo");function eo(i,f){var v=i.prefixCls,u=i.editable,e=i.locale,a=i.style;return!u||u.showAdd===!1?null:r.createElement("button",{ref:f,type:"button",className:"".concat(v,"-nav-add"),style:a,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(l){u.onEdit("add",{event:l})}},u.addIcon||"+")}var Na=r.forwardRef(eo);function to(i,f){var v=i.prefixCls,u=i.id,e=i.tabs,a=i.locale,t=i.mobile,l=i.moreIcon,c=l===void 0?"More":l,b=i.moreTransitionName,m=i.style,g=i.className,S=i.editable,F=i.tabBarGutter,K=i.rtl,le=i.onTabClick,We=Object(r.useState)(!1),lt=Object(O.a)(We,2),tt=lt[0],dt=lt[1],ut=Object(r.useState)(null),ot=Object(O.a)(ut,2),rt=ot[0],jt=ot[1],pt="".concat(u,"-more-popup"),Ht="".concat(v,"-dropdown"),Nt=rt!==null?"".concat(pt,"-").concat(rt):null,Be=a==null?void 0:a.dropdownAriaLabel,ke=r.createElement(Ga,{onClick:function(wt){var Ft=wt.key,an=wt.domEvent;le(Ft,an),dt(!1)},id:pt,tabIndex:-1,role:"listbox","aria-activedescendant":Nt,selectedKeys:[rt],"aria-label":Be!==void 0?Be:"expanded dropdown"},e.map(function(Mt){return r.createElement(Qt,{key:Mt.key,id:"".concat(pt,"-").concat(Mt.key),role:"option","aria-controls":u&&"".concat(u,"-panel-").concat(Mt.key),disabled:Mt.disabled},Mt.tab)}));function bt(Mt){for(var wt=e.filter(function(On){return!On.disabled}),Ft=wt.findIndex(function(On){return On.key===rt})||0,an=wt.length,yn=0;ynRt?(Ct=ke,pt.current="x"):(Ct=bt,pt.current="y");var Kt=Date.now();Kt-rt.current>100&&(jt.current=!1),(f(-Ct,-Ct)||jt.current)&&(Be.preventDefault(),jt.current=!0),rt.current=Kt}var Nt=Object(r.useRef)(null);Nt.current={onTouchStart:dt,onTouchMove:ut,onTouchEnd:ot,onWheel:Ht},r.useEffect(function(){function Be(Re){Nt.current.onTouchStart(Re)}function ke(Re){Nt.current.onTouchMove(Re)}function bt(Re){Nt.current.onTouchEnd(Re)}function Ct(Re){Nt.current.onWheel(Re)}return document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("touchend",bt,{passive:!1}),i.current.addEventListener("touchstart",Be,{passive:!1}),i.current.addEventListener("wheel",Ct),function(){document.removeEventListener("touchmove",ke),document.removeEventListener("touchend",bt)}},[])}function Ka(){var i=Object(r.useRef)(new Map);function f(u){return i.current.has(u)||i.current.set(u,r.createRef()),i.current.get(u)}function v(u){i.current.delete(u)}return[f,v]}function Ya(i,f){var v=r.useRef(i),u=r.useState({}),e=Object(O.a)(u,2),a=e[1];function t(l){var c=typeof l=="function"?l(v.current):l;c!==v.current&&f(c,v.current),v.current=c,a({})}return[v.current,t]}var Qa=function(f){var v=f.position,u=f.prefixCls,e=f.extra;if(!e)return null;var a,t=e;return v==="right"&&(a=t.right||!t.left&&t||null),v==="left"&&(a=t.left||null),a?r.createElement("div",{className:"".concat(u,"-extra-content")},a):null};function Fo(i,f){var v,u=r.useContext(ka),e=u.prefixCls,a=u.tabs,t=i.className,l=i.style,c=i.id,b=i.animated,m=i.activeKey,g=i.rtl,S=i.extra,F=i.editable,K=i.locale,le=i.tabPosition,We=i.tabBarGutter,lt=i.children,tt=i.onTabClick,dt=i.onTabScroll,ut=Object(r.useRef)(),ot=Object(r.useRef)(),rt=Object(r.useRef)(),jt=Object(r.useRef)(),pt=Ka(),Ht=Object(O.a)(pt,2),Nt=Ht[0],Be=Ht[1],ke=le==="top"||le==="bottom",bt=Ya(0,function(Pt,Et){ke&&dt&&dt({direction:Pt>Et?"left":"right"})}),Ct=Object(O.a)(bt,2),Re=Ct[0],Rt=Ct[1],Kt=Ya(0,function(Pt,Et){!ke&&dt&&dt({direction:Pt>Et?"top":"bottom"})}),Mt=Object(O.a)(Kt,2),wt=Mt[0],Ft=Mt[1],an=Object(r.useState)(0),yn=Object(O.a)(an,2),Vt=yn[0],On=yn[1],Xn=Object(r.useState)(0),Sn=Object(O.a)(Xn,2),Tn=Sn[0],Gt=Sn[1],vn=Object(r.useState)(0),on=Object(O.a)(vn,2),en=on[0],ua=on[1],ca=Object(r.useState)(0),ga=Object(O.a)(ca,2),It=ga[0],oa=ga[1],Ca=Object(r.useState)(null),Bt=Object(O.a)(Ca,2),St=Bt[0],rn=Bt[1],Xo=Object(r.useState)(null),bo=Object(O.a)(Xo,2),Pa=bo[0],$o=bo[1],Go=Object(r.useState)(0),Eo=Object(O.a)(Go,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(r.useState)(0),go=Object(O.a)(Qo,2),Zo=go[0],qo=go[1],er=j(new Map),Co=Object(O.a)(er,2),tr=Co[0],nr=Co[1],Za=Y(a,tr,Vt),yo="".concat(e,"-nav-operations-hidden"),Ba=0,Fa=0;ke?g?(Ba=0,Fa=Math.max(0,Vt-St)):(Ba=Math.min(0,St-Vt),Fa=0):(Ba=Math.min(0,Pa-Tn),Fa=0);function ao(Pt){return PtFa?[Fa,!1]:[Pt,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(O.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Ja(ut,function(Pt,Et){var tn=!1;function Nn(za,Ha){za(function(Va){var Xa=ao(Va+Ha),Da=Object(O.a)(Xa,2),co=Da[0],fo=Da[1];return tn=fo,co})}if(ke){if(St>=Vt)return tn;Nn(Rt,Pt)}else{if(Pa>=Tn)return tn;Nn(Ft,Et)}return io(),ro(),tn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,Et=Za.get(Pt);if(!Et)return;if(ke){var tn=Re;g?Et.rightRe+St&&(tn=Et.right+Et.width-St):Et.left<-Re?tn=-Et.left:Et.left+Et.width>-Re+St&&(tn=-(Et.left+Et.width-St)),Ft(0),Rt(ao(tn)[0])}else{var Nn=wt;Et.top<-wt?Nn=-Et.top:Et.top+Et.height>-wt+Pa&&(Nn=-(Et.top+Et.height-Pa)),Rt(0),Ft(ao(Nn)[0])}}var or=ue(Za,{width:St,height:Pa,left:Re,top:wt},{width:en,height:It},{width:Jo,height:Zo},Object(y.a)(Object(y.a)({},i),{},{tabs:a})),Ro=Object(O.a)(or,2),rr=Ro[0],ir=Ro[1],sr=a.map(function(Pt){var Et=Pt.key;return r.createElement(w,{id:c,prefixCls:e,key:Et,rtl:g,tab:Pt,closable:Pt.closable,editable:F,active:Et===m,tabPosition:le,tabBarGutter:We,renderWrapper:lt,removeAriaLabel:K==null?void 0:K.removeAriaLabel,ref:Nt(Et),onClick:function(Nn){tt(Et,Nn)},onRemove:function(){Be(Et)},onFocus:function(){jo(Et),ro(),g||(ut.current.scrollLeft=0),ut.current.scrollTop=0}})}),so=G(function(){var Pt,Et,tn,Nn,za,Ha,Va,Xa,Da,co=((Pt=ut.current)===null||Pt===void 0?void 0:Pt.offsetWidth)||0,fo=((Et=ut.current)===null||Et===void 0?void 0:Et.offsetHeight)||0,wo=((tn=jt.current)===null||tn===void 0?void 0:tn.offsetWidth)||0,Lo=((Nn=jt.current)===null||Nn===void 0?void 0:Nn.offsetHeight)||0,mr=((za=rt.current)===null||za===void 0?void 0:za.offsetWidth)||0,pr=((Ha=rt.current)===null||Ha===void 0?void 0:Ha.offsetHeight)||0;rn(co),$o(fo),Yo(wo),qo(Lo);var Uo=(((Va=ot.current)===null||Va===void 0?void 0:Va.offsetWidth)||0)-wo,Io=(((Xa=ot.current)===null||Xa===void 0?void 0:Xa.offsetHeight)||0)-Lo;On(Uo),Gt(Io);var ko=(Da=rt.current)===null||Da===void 0?void 0:Da.className.includes(yo);ua(Uo-(ko?0:mr)),oa(Io-(ko?0:pr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Bo=hr.key,$a=Nt(Bo).current;$a&&Ko.set(Bo,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),Mo=[].concat(Object(Ee.a)(lr),Object(Ee.a)(ur)),cr=Object(r.useState)(),So=Object(O.a)(cr,2),dr=So[0],fr=So[1],da=Za.get(m),To=Object(r.useRef)();function No(){ge.a.cancel(To.current)}Object(r.useEffect)(function(){var Pt={};return da&&(ke?(g?Pt.right=da.right:Pt.left=da.left,Pt.width=da.width):(Pt.top=da.top,Pt.height=da.height)),No(),To.current=ge()(function(){fr(Pt)}),No},[da,ke,g]),Object(r.useEffect)(function(){jo()},[m,da,Za,ke]),Object(r.useEffect)(function(){so()},[g,We,m,a.map(function(Pt){return Pt.key}).join("_")]);var Po=!!Mo.length,Wa="".concat(e,"-nav-wrap"),lo,uo,Do,Ao;return ke?g?(uo=Re>0,lo=Re+St1)Object(Ee.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Y.length===0)return Object(Ee.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var B=Y[0];if(p.isValidElement(B)&&Object(ee.c)(B)){var ue=B.ref;Y[0]=p.cloneElement(B,{ref:Object(ee.a)(ue,this.setChildNode)})}return Y.length===1?Y[0]:Y.map(function(N,D){return!p.isValidElement(N)||"key"in N&&N.key!==null?N:p.cloneElement(N,{key:"".concat(Ce,"-").concat(D)})})}}]),Q}(p.Component);G.displayName="ResizeObserver",ne.a=G},wCXF:function(it,ne,n){"use strict";n.d(ne,"a",function(){return $t});var R=n("rePB"),O=n("VTBJ"),Oe=n("KQm4"),y=n("U8pU"),r=n("ODXe"),p=n("q1tI"),re=n("TSYQ"),q=n.n(re),T=n("Gytx"),Ee=n.n(T),ee=n("Kwbf"),ge=n("t23M"),Ce=n("qx4F"),G=n("6eGT"),j=n("IBYe"),E=n("Ff2n"),Q=n("c+Xe"),w=n("fyJ8"),z=n("biw7");function Y(C,W,P,te,H){var J=P[C]||{},Z=P[W]||{},A,X;J.fixed==="left"?A=te.left[C]:Z.fixed==="right"&&(X=te.right[W]);var be=!1,de=!1,$=!1,Ue=!1,fe=P[W+1],je=P[C-1];if(H==="rtl"){if(A!==void 0){var st=je&&je.fixed==="left";Ue=!st}else if(X!==void 0){var Je=fe&&fe.fixed==="right";$=!Je}}else if(A!==void 0){var V=fe&&fe.fixed==="left";be=!V}else if(X!==void 0){var Se=je&&je.fixed==="right";de=!Se}return{fixLeft:A,fixRight:X,lastFixLeft:be,firstFixRight:de,lastFixRight:$,firstFixLeft:Ue,isSticky:te.isSticky}}var B=n("sR1s");function ue(C){var W=C.cells,P=C.stickyOffsets,te=C.flattenColumns,H=C.rowComponent,J=C.cellComponent,Z=C.onHeaderRow,A=C.index,X=p.useContext(z.a),be=X.prefixCls,de=X.direction,$;Z&&($=Z(W.map(function(fe){return fe.column}),A));var Ue=Object(B.a)(W.map(function(fe){return fe.column}));return p.createElement(H,Object.assign({},$),W.map(function(fe,je){var st=fe.column,Je=Y(fe.colStart,fe.colEnd,te,P,de),V;return st&&st.onHeaderCell&&(V=fe.column.onHeaderCell(st)),p.createElement(w.a,Object.assign({},fe,{ellipsis:st.ellipsis,align:st.align,component:J,prefixCls:be,key:Ue[je]},Je,{additionalProps:V,rowType:"header"}))}))}ue.displayName="HeaderRow";var N=ue;function D(C){var W=[];function P(Z,A){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;W[X]=W[X]||[];var be=A,de=Z.filter(Boolean).map(function($){var Ue={key:$.key,className:$.className||"",children:$.title,column:$,colStart:be},fe=1,je=$.children;return je&&je.length>0&&(fe=P(je,be,X+1).reduce(function(st,Je){return st+Je},0),Ue.hasSubColumns=!0),"colSpan"in $&&(fe=$.colSpan),"rowSpan"in $&&(Ue.rowSpan=$.rowSpan),Ue.colSpan=fe,Ue.colEnd=Ue.colStart+fe-1,W[X].push(Ue),be+=fe,fe});return de}P(C,0);for(var te=W.length,H=function(A){W[A].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=te-A)})},J=0;J=0;A-=1){var X=W[A],be=P&&P[A],de=be&&be[d.a];(X||de||Z)&&(H.unshift(p.createElement("col",Object.assign({key:A,style:{width:X,minWidth:X}},de))),Z=!0)}return p.createElement("colgroup",null,H)}var x=s;function M(C,W){return Object(p.useMemo)(function(){for(var P=[],te=0;te1?Yt-1:0),mn=1;mn=$&&(At=$-Ue),Z({scrollLeft:At/$*(de+2)}),Se.current.x=we.pageX},Fe=function(){var we=Object(Ut.b)(J.current).top,Qe=we+J.current.offsetHeight,yt=document.documentElement.scrollTop+window.innerHeight;Qe-Object(Ce.a)()<=yt||we>=yt-A?V(function(Dt){return Object(O.a)(Object(O.a)({},Dt),{},{isHiddenScrollBar:!0})}):V(function(Dt){return Object(O.a)(Object(O.a)({},Dt),{},{isHiddenScrollBar:!1})})},Te=function(we){V(function(Qe){return Object(O.a)(Object(O.a)({},Qe),{},{scrollLeft:we/de*$||0})})};return p.useImperativeHandle(P,function(){return{setScrollLeft:Te}}),p.useEffect(function(){var De=Object(Tt.a)(document.body,"mouseup",Ae,!1),we=Object(Tt.a)(document.body,"mousemove",Ze,!1);return Fe(),function(){De.remove(),we.remove()}},[Ue,Ke]),p.useEffect(function(){var De=Object(Tt.a)(window,"scroll",Fe,!1),we=Object(Tt.a)(window,"resize",Fe,!1);return function(){De.remove(),we.remove()}},[]),p.useEffect(function(){Je.isHiddenScrollBar||V(function(De){var we,Qe;return Object(O.a)(Object(O.a)({},De),{},{scrollLeft:J.current.scrollLeft/((we=J.current)===null||we===void 0?void 0:we.scrollWidth)*((Qe=J.current)===null||Qe===void 0?void 0:Qe.clientWidth)})})},[Je.isHiddenScrollBar]),de<=$||!Ue||Je.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(Ce.a)(),width:$,bottom:A},className:"".concat(be,"-sticky-scroll")},p.createElement("div",{onMouseDown:Pe,ref:fe,className:q()("".concat(be,"-sticky-scroll-bar"),Object(R.a)({},"".concat(be,"-sticky-scroll-bar-active"),Ke)),style:{width:"".concat(Ue,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},Ye=p.forwardRef(Me);function at(C,W){return p.useMemo(function(){var P=!!C;return{isSticky:P,stickyClassName:P?"".concat(W,"-sticky-header"):"",offsetHeader:Object(y.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(y.a)(C)==="object"&&C.offsetScroll||0}},[C,W])}var Xt=[],Lt={},$t="rc-table-internal-hook",vt=p.memo(function(C){var W=C.children;return W},function(C,W){return Ee()(C.props,W.props)?C.pingLeft!==W.pingLeft||C.pingRight!==W.pingRight:!1});function Wt(C){var W,P=C.prefixCls,te=C.className,H=C.rowClassName,J=C.style,Z=C.data,A=C.rowKey,X=C.scroll,be=C.tableLayout,de=C.direction,$=C.title,Ue=C.footer,fe=C.summary,je=C.id,st=C.showHeader,Je=C.components,V=C.emptyText,Se=C.onRow,ft=C.onHeaderRow,ht=C.internalHooks,Ke=C.transformColumns,Ie=C.internalRefs,Ae=C.sticky,Pe=Z||Xt,Ze=!!Pe.length,Fe=p.useState(0),Te=Object(r.a)(Fe,2),De=Te[0],we=Te[1];p.useEffect(function(){we(Object(Ce.a)())});var Qe=p.useMemo(function(){return Object(B.c)(Je,{})},[Je]),yt=p.useCallback(function(Ot,_t){return Object(B.b)(Qe,Ot)||_t},[Qe]),Dt=p.useMemo(function(){return typeof A=="function"?A:function(Ot){var _t=Ot&&Ot[A];return _t}},[A]),At=Object(d.c)(C),Bn=At.expandIcon,$n=At.expandedRowKeys,Gn=At.defaultExpandedRowKeys,dn=At.defaultExpandAllRows,Pn=At.expandedRowRender,Fn=At.onExpand,Dn=At.onExpandedRowsChange,An=At.expandRowByClick,sn=At.rowExpandable,Jn=At.expandIconColumnIndex,_n=At.expandedRowClassName,Yn=At.childrenColumnName,xn=At.indentSize,jn=Bn||gt,wn=Yn||"children",ra=p.useMemo(function(){return Pn?"row":C.expandable&&ht===$t&&C.expandable.__PARENT_RENDER_ICON__||Pe.some(function(Ot){return Ot&&Object(y.a)(Ot)==="object"&&Ot[wn]})?"nest":!1},[!!Pn,Pe]),Rn=p.useState(function(){return Gn||(dn?ct(Pe,Dt,wn):[])}),Jt=Object(r.a)(Rn,2),Zt=Jt[0],fn=Jt[1],Yt=p.useMemo(function(){return new Set($n||Zt||[])},[$n,Zt]),ln=p.useCallback(function(Ot){var _t=Dt(Ot,Pe.indexOf(Ot)),zt,cn=Yt.has(_t);cn?(Yt.delete(_t),zt=Object(Oe.a)(Yt)):zt=[].concat(Object(Oe.a)(Yt),[_t]),fn(zt),Fn&&Fn(!cn,Ot),Dn&&Dn(zt)},[Dt,Yt,Pe,Fn,Dn]),mn=p.useState(0),qt=Object(r.a)(mn,2),Qn=qt[0],ia=qt[1],fa=Object(ce.b)(Object(O.a)(Object(O.a)(Object(O.a)({},C),At),{},{expandable:!!Pn,expandedKeys:Yt,getRowKey:Dt,onTriggerExpand:ln,expandIcon:jn,expandIconColumnIndex:Jn,direction:de}),ht===$t?Ke:null),Ln=Object(r.a)(fa,2),Wn=Ln[0],kt=Ln[1],Zn=p.useMemo(function(){return{columns:Wn,flattenColumns:kt}},[Wn,kt]),Un=p.useRef(),ma=p.useRef(),En=p.useRef(),ya=p.useState(!1),pa=Object(r.a)(ya,2),sa=pa[0],Aa=pa[1],Oa=p.useState(!1),In=Object(r.a)(Oa,2),qn=In[0],wa=In[1],_a=L(new Map),zn=Object(r.a)(_a,2),xa=zn[0],La=zn[1],gn=Object(B.a)(kt),ea=gn.map(function(Ot){return xa.get(Ot)}),ja=p.useMemo(function(){return ea},[ea.join("_")]),ha=Xe(ja,kt.length,de),nn=X&&Object(B.d)(X.y),Cn=X&&Object(B.d)(X.x),pn=Cn&&kt.some(function(Ot){var _t=Ot.fixed;return _t}),ta=p.useRef(),kn=at(Ae,P),Hn=kn.isSticky,Ra=kn.offsetHeader,hn=kn.offsetScroll,Ma=kn.stickyClassName,va,na,Mn;nn&&(na={overflowY:"scroll",maxHeight:X.y}),Cn&&(va={overflowX:"auto"},nn||(na={overflowY:"hidden"}),Mn={width:X.x===!0?"auto":X.x,minWidth:"100%"});var Kn=p.useCallback(function(Ot,_t){La(function(zt){var cn=new Map(zt);return cn.set(Ot,_t),cn})},[]),aa=k(null),ba=Object(r.a)(aa,2),Sa=ba[0],Ta=ba[1];function la(Ot,_t){if(!_t)return;typeof _t=="function"?_t(Ot):_t.scrollLeft!==Ot&&(_t.scrollLeft=Ot)}var Vn=function(_t){var zt=_t.currentTarget,cn=_t.scrollLeft,Ea=typeof cn=="number"?cn:zt.scrollLeft,Ja=zt||Lt;if(!Ta()||Ta()===Ja){var Ka;Sa(Ja),la(Ea,ma.current),la(Ea,En.current),la(Ea,(Ka=ta.current)===null||Ka===void 0?void 0:Ka.setScrollLeft)}if(zt){var Ya=zt.scrollWidth,Qa=zt.clientWidth;Aa(Ea>0),wa(Ea0?[].concat(Object(O.a)(E),Object(O.a)(ee(Y).map(function(B){return Object(Oe.a)({fixed:z},B)}))):[].concat(Object(O.a)(E),[Object(Oe.a)(Object(Oe.a)({},Q),{},{fixed:z})])},[])}function ge(j){for(var E=!0,Q=0;Q=0;Y-=1){var B=j[Y];if(z&&B.fixed!=="right")z=!1;else if(!z&&B.fixed==="right"){Object(re.a)(!1,"Index ".concat(Y+1," of `columns` missing `fixed='right'` prop."));break}}}function Ce(j){return j.map(function(E){var Q=E.fixed,w=Object(y.a)(E,["fixed"]),z=Q;return Q==="left"?z="right":Q==="right"&&(z="left"),Object(Oe.a)({fixed:z},w)})}function G(j,E){var Q=j.prefixCls,w=j.columns,z=j.children,Y=j.expandable,B=j.expandedKeys,ue=j.getRowKey,N=j.onTriggerExpand,D=j.expandIcon,U=j.rowExpandable,h=j.expandIconColumnIndex,d=j.direction,s=j.expandRowByClick,x=r.useMemo(function(){return w||Ee(z)},[w,z]),M=r.useMemo(function(){if(Y){var o,ae=h||0,ye=x[ae],xe=(o={},Object(R.a)(o,T.a,{className:"".concat(Q,"-expand-icon-col")}),Object(R.a)(o,"title",""),Object(R.a)(o,"fixed",ye?ye.fixed:null),Object(R.a)(o,"className","".concat(Q,"-row-expand-icon-cell")),Object(R.a)(o,"render",function(oe,Le,ze){var Ve=ue(Le,ze),He=B.has(Ve),ie=U?U(Le):!0,ce=D({prefixCls:Q,expanded:He,expandable:ie,record:Le,onExpand:N});return s?r.createElement("span",{onClick:function(pe){return pe.stopPropagation()}},ce):ce}),o),nt=x.slice();return ae>=0&&nt.splice(ae,0,xe),nt}return x},[Y,x,ue,B,D,d]),_=r.useMemo(function(){var o=M;return E&&(o=E(o)),o.length||(o=[{render:function(){return null}}]),o},[E,M,d]),I=r.useMemo(function(){return d==="rtl"?Ce(ee(_)):ee(_)},[_,d]);return[_,I]}ne.b=G},"y0+3":function(it,ne,n){"use strict";n.d(ne,"a",function(){return ee}),n.d(ne,"b",function(){return Ce});var R=/margin|padding|width|height|max|min|offset/,O={left:!0,top:!0},Oe={cssFloat:1,styleFloat:1,float:1};function y(G){return G.nodeType===1?G.ownerDocument.defaultView.getComputedStyle(G,null):{}}function r(G,j,E){if(j=j.toLowerCase(),E==="auto"){if(j==="height")return G.offsetHeight;if(j==="width")return G.offsetWidth}return j in O||(O[j]=R.test(j)),O[j]?parseFloat(E)||0:E}function p(G,j){var E=arguments.length,Q=y(G);return j=Oe[j]?"cssFloat"in G.style?"cssFloat":"styleFloat":j,E===1?Q:r(G,j,Q[j]||G.style[j])}function re(G,j,E){var Q=arguments.length;if(j=Oe[j]?"cssFloat"in G.style?"cssFloat":"styleFloat":j,Q===3)return typeof E=="number"&&R.test(j)&&(E="".concat(E,"px")),G.style[j]=E,E;for(var w in j)j.hasOwnProperty(w)&&re(G,w,j[w]);return y(G)}function q(G){return G===document.body?document.documentElement.clientWidth:G.offsetWidth}function T(G){return G===document.body?window.innerHeight||document.documentElement.clientHeight:G.offsetHeight}function Ee(){var G=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),j=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:G,height:j}}function ee(){var G=document.documentElement.clientWidth,j=window.innerHeight||document.documentElement.clientHeight;return{width:G,height:j}}function ge(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(G){var j=G.getBoundingClientRect(),E=document.documentElement;return{left:j.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:j.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__User__Detail__TeachGroup__index.18763d81.async.js b/p__User__Detail__TeachGroup__index.18763d81.async.js index cfa012a9cb..4f05ff66f7 100644 --- a/p__User__Detail__TeachGroup__index.18763d81.async.js +++ b/p__User__Detail__TeachGroup__index.18763d81.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[247,8],{"55Ip":function(De,N,e){"use strict";e.d(N,"a",function(){return D}),e.d(N,"b",function(){return R});var A=e("Ty5D"),C=e("dI71"),Z=e("q1tI"),q=e.n(Z),E=e("YS25"),r=e("17x9"),Y=e.n(r),S=e("wx14"),m=e("zLVn"),B=e("9R94"),f=function(n){Object(C.a)(t,n);function t(){for(var d,p=arguments.length,I=new Array(p),b=0;b=0||p.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;n.setState({goInputText:""}),_(n.getValidValue())},n.go=function(p){var I=n.state.goInputText;if(I==="")return;(p.keyCode===h.ENTER||p.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return Object(E.a)(l,[{key:"getValidValue",value:function(){var t=this.state,u=t.goInputText,d=t.current;return!u||isNaN(u)?d:Number(u)}},{key:"getPageSizeOptions",value:function(){var t=this.props,u=t.pageSize,d=t.pageSizeOptions;return d.some(function(p){return p.toString()===u.toString()})?d:d.concat([u.toString()]).sort(function(p,I){var b=isNaN(Number(p))?0:Number(p),_=isNaN(Number(I))?0:Number(I);return b-_})}},{key:"render",value:function(){var t=this,u=this.props,d=u.pageSize,p=u.locale,I=u.rootPrefixCls,b=u.changeSize,_=u.quickGo,L=u.goButton,re=u.selectComponentClass,Ae=u.buildOptionText,U=u.selectPrefixCls,P=u.disabled,he=this.state.goInputText,de="".concat(I,"-options"),Ce=re,Ee=null,F=null,w=null;if(!b&&!_)return null;var J=this.getPageSizeOptions();if(b&&Ce){var G=J.map(function(O,ne){return m.a.createElement(Ce.Option,{key:ne,value:O.toString()},(Ae||t.buildOptionText)(O))});Ee=m.a.createElement(Ce,{disabled:P,prefixCls:U,showSearch:!1,className:"".concat(de,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||J[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},G)}return _&&(L&&(w=typeof L=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:P,className:"".concat(de,"-quick-jumper-button")},p.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),F=m.a.createElement("div",{className:"".concat(de,"-quick-jumper")},p.jump_to,m.a.createElement("input",{disabled:P,type:"text",value:he,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),p.page,w)),m.a.createElement("li",{className:"".concat(de)},Ee,F)}}]),l}(m.a.Component);a.defaultProps={pageSizeOptions:["10","20","50","100"]};var o=a,x=e("N2Kk");function v(){}function D(c){return typeof c=="number"&&isFinite(c)&&Math.floor(c)===c}function M(c,R,l){return l}function j(c,R,l){var n=typeof c=="undefined"?R.pageSize:c;return Math.floor((l.total-1)/n)+1}var k=function(c){Object(r.a)(l,c);var R=Object(Y.a)(l);function l(n){var t;Object(q.a)(this,l),t=R.call(this,n),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(j(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(b,_){var L=t.props.prefixCls,re=b||m.a.createElement("button",{type:"button","aria-label":_,className:"".concat(L,"-item-link")});return typeof b=="function"&&(re=m.a.createElement(b,Object(Z.a)({},t.props))),re},t.savePaginationNode=function(b){t.paginationNode=b},t.isValid=function(b){return D(b)&&b!==t.state.current},t.shouldDisplayQuickJumper=function(){var b=t.props,_=b.showQuickJumper,L=b.pageSize,re=b.total;return re<=L?!1:_},t.handleKeyDown=function(b){(b.keyCode===h.ARROW_UP||b.keyCode===h.ARROW_DOWN)&&b.preventDefault()},t.handleKeyUp=function(b){var _=t.getValidValue(b),L=t.state.currentInputValue;_!==L&&t.setState({currentInputValue:_}),b.keyCode===h.ENTER?t.handleChange(_):b.keyCode===h.ARROW_UP?t.handleChange(_-1):b.keyCode===h.ARROW_DOWN&&t.handleChange(_+1)},t.changePageSize=function(b){var _=t.state.current,L=j(b,t.state,t.props);_=_>L?L:_,L===0&&(_=t.state.current),typeof b=="number"&&("pageSize"in t.props||t.setState({pageSize:b}),"current"in t.props||t.setState({current:_,currentInputValue:_})),t.props.onShowSizeChange(_,b),"onChange"in t.props&&t.props.onChange&&t.props.onChange(_,b)},t.handleChange=function(b){var _=t.props.disabled,L=b;if(t.isValid(L)&&!_){var re=j(void 0,t.state,t.props);L>re?L=re:L<1&&(L=1),"current"in t.props||t.setState({current:L,currentInputValue:L});var Ae=t.state.pageSize;return t.props.onChange(L,Ae),L}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?L-2:0),Ae=2;Ae=d?I=d:I=Number(u),I}},{key:"getShowSizeChanger",value:function(){var t=this.props,u=t.showSizeChanger,d=t.total,p=t.totalBoundaryShowSizeChanger;return typeof u!="undefined"?u:d>p}},{key:"renderPrev",value:function(t){var u=this.props,d=u.prevIcon,p=u.itemRender,I=p(t,"prev",this.getItemIcon(d,"prev page")),b=!this.hasPrev();return Object(S.isValidElement)(I)?Object(S.cloneElement)(I,{disabled:b}):I}},{key:"renderNext",value:function(t){var u=this.props,d=u.nextIcon,p=u.itemRender,I=p(t,"next",this.getItemIcon(d,"next page")),b=!this.hasNext();return Object(S.isValidElement)(I)?Object(S.cloneElement)(I,{disabled:b}):I}},{key:"render",value:function(){var t=this,u=this.props,d=u.prefixCls,p=u.className,I=u.style,b=u.disabled,_=u.hideOnSinglePage,L=u.total,re=u.locale,Ae=u.showQuickJumper,U=u.showLessItems,P=u.showTitle,he=u.showTotal,de=u.simple,Ce=u.itemRender,Ee=u.showPrevNextJumpers,F=u.jumpPrevIcon,w=u.jumpNextIcon,J=u.selectComponentClass,G=u.selectPrefixCls,O=u.pageSizeOptions,ne=this.state,z=ne.current,ce=ne.pageSize,ge=ne.currentInputValue;if(_===!0&&L<=ce)return null;var te=j(void 0,this.state,this.props),ae=[],_e=null,Me=null,We=null,Q=null,ve=null,ye=Ae&&Ae.goButton,le=U?1:2,se=z-1>0?z-1:0,Ne=z+1=le*2&&z!==1+2&&(ae[0]=Object(S.cloneElement)(ae[0],{className:"".concat(d,"-item-after-jump-prev")}),ae.unshift(_e)),te-z>=le*2&&z!==te-2&&(ae[ae.length-1]=Object(S.cloneElement)(ae[ae.length-1],{className:"".concat(d,"-item-before-jump-next")}),ae.push(Me)),K!==1&&ae.unshift(We),$!==te&&ae.push(Q)}var W=null;he&&(W=m.a.createElement("li",{className:"".concat(d,"-total-text")},he(L,[L===0?0:(z-1)*ce+1,z*ce>L?L:z*ce])));var H=!this.hasPrev()||!te,X=!this.hasNext()||!te;return m.a.createElement("ul",Object(A.a)({className:f()(d,p,Object(C.a)({},"".concat(d,"-disabled"),b)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},Le),W,m.a.createElement("li",{title:P?re.prev_page:null,onClick:this.prev,tabIndex:H?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(d,"-prev"),Object(C.a)({},"".concat(d,"-disabled"),H)),"aria-disabled":H},this.renderPrev(se)),ae,m.a.createElement("li",{title:P?re.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(d,"-next"),Object(C.a)({},"".concat(d,"-disabled"),X)),"aria-disabled":X},this.renderNext(Ne)),m.a.createElement(o,{disabled:b,locale:re,rootPrefixCls:d,selectComponentClass:J,selectPrefixCls:G,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:z,pageSize:ce,pageSizeOptions:O,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ye}))}}],[{key:"getDerivedStateFromProps",value:function(t,u){var d={};if("current"in t&&(d.current=t.current,t.current!==u.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==u.pageSize){var p=u.current,I=j(t.pageSize,u,t);p=p>I?I:p,"current"in t||(d.current=p,d.currentInputValue=p),d.pageSize=t.pageSize}return d}}]),l}(m.a.Component);k.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:v,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:v,locale:x.a,style:{},itemRender:M,totalBoundaryShowSizeChanger:50};var g=k},"6RRn":function(De,N,e){"use strict";var A=e("wCXF"),C=e("n6Qo");e.d(N,"b",function(){return C.a});var Z=e("IBYe"),q=e("6eGT"),E=e("hW8S");e.d(N,"a",function(){return E.a}),N.c=A.b},"6eGT":function(De,N,e){"use strict";function A(C){return null}N.a=A},"815F":function(De,N,e){"use strict";e.d(N,"e",function(){return Y}),e.d(N,"c",function(){return m}),e.d(N,"d",function(){return B}),e.d(N,"a",function(){return s}),e.d(N,"f",function(){return y}),e.d(N,"b",function(){return h});var A=e("KQm4"),C=e("VTBJ"),Z=e("Ff2n"),q=e("Zm9Q"),E=e("Kwbf"),r=e("OZM5");function Y(a,o){return a!=null?a:o}function S(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function x(v){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(v||[]).forEach(function(M){var j=M.key,k=M.children;Object(E.a)(j!=null,"Tree node must have a certain key: [".concat(D).concat(j,"]"));var g=String(j);Object(E.a)(!o.has(g)||j===null||j===void 0,"Same 'key' exist in the Tree: ".concat(g)),o.set(g,!0),x(k,"".concat(D).concat(g," > "))})}x(a)}function m(a){function o(x){var v=Object(q.a)(x);return v.map(function(D){if(!Object(r.i)(D))return Object(E.a)(!D,"Tree/TreeNode can only accept TreeNode as children."),null;var M=D.key,j=D.props,k=j.children,g=Object(Z.a)(j,["children"]),c=Object(C.a)({key:M},g),R=o(k);return R.length&&(c.children=R),c}).filter(function(D){return D})}return o(a)}function B(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(o===!0?[]:o),v=[];function D(M){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return M.map(function(k,g){var c=Object(r.h)(j?j.pos:"0",g),R=Y(k.key,c),l=Object(C.a)(Object(C.a)({},k),{},{parent:j,pos:c,children:null,data:k,isStart:[].concat(Object(A.a)(j?j.isStart:[]),[g===0]),isEnd:[].concat(Object(A.a)(j?j.isEnd:[]),[g===M.length-1])});return v.push(l),o===!0||x.has(R)?l.children=D(k.children||[],l):l.children=[],l})}return D(a),v}function f(a,o,x){var v;x?typeof x=="string"?v=function(j){return j[x]}:typeof x=="function"&&(v=function(j){return x(j)}):v=function(j,k){return Y(j.key,k)};function D(M,j,k){var g=M?M.children:a,c=M?Object(r.h)(k.pos,j):"0";if(M){var R=v(M,c),l={node:M,index:j,pos:c,key:R,parentPos:k.node?k.pos:null,level:k.level+1};o(l)}g&&g.forEach(function(n,t){D(n,t,{node:M,pos:c,level:k?k.level+1:-1})})}D(null)}function s(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=o.initWrapper,v=o.processEntity,D=o.onProcessFinished,M=arguments.length>2?arguments[2]:void 0,j={},k={},g={posEntities:j,keyEntities:k};return x&&(g=x(g)||g),f(a,function(c){var R=c.node,l=c.index,n=c.pos,t=c.key,u=c.parentPos,d=c.level,p={node:R,index:l,key:t,pos:n,level:d},I=Y(t,n);j[n]=p,k[I]=p,p.parent=j[u],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),v&&v(p,g)},M),D&&D(g),g}function y(a,o){var x=o.expandedKeys,v=o.selectedKeys,D=o.loadedKeys,M=o.loadingKeys,j=o.checkedKeys,k=o.halfCheckedKeys,g=o.dragOverNodeKey,c=o.dropPosition,R=o.keyEntities,l=R[a],n={eventKey:a,expanded:x.indexOf(a)!==-1,selected:v.indexOf(a)!==-1,loaded:D.indexOf(a)!==-1,loading:M.indexOf(a)!==-1,checked:j.indexOf(a)!==-1,halfChecked:k.indexOf(a)!==-1,pos:String(l?l.pos:""),dragOver:g===a&&c===0,dragOverGapTop:g===a&&c===-1,dragOverGapBottom:g===a&&c===1};return n}function h(a){var o=a.data,x=a.expanded,v=a.selected,D=a.checked,M=a.loaded,j=a.loading,k=a.halfChecked,g=a.dragOver,c=a.dragOverGapTop,R=a.dragOverGapBottom,l=a.pos,n=a.active,t=Object(C.a)(Object(C.a)({},o),{},{expanded:x,selected:v,checked:D,loaded:M,loading:j,halfChecked:k,dragOver:g,dragOverGapTop:c,dragOverGapBottom:R,pos:l,active:n});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(E.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),a}}),t}},"8cjW":function(De,N,e){},Aqpx:function(De,N){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAcCAYAAAD2izi6AAAAAXNSR0IArs4c6QAAEcdJREFUaEOtWglwHNWZ/t/RPac0I2kkS5ZsGSxjI8CADdgQDITdze5yhNtOwBSbhA273IQlHBWTi2Bgs2xlDQFsHAcWkoodSJniJmTZTTDYBrIFtsGSbIKtW6NrLs10v2Prf909GstyHGBVpeqZnu7Xr7/3/d9/PQIA0Hy1bnFK8CMAOF0D1AMBRTQIPGoNEgCkBpDUP+I5QkASABX8hucoBakVSLwPzwPxvhMKEvxxiAalCQjzu38/wXHxd+L94zUKQDIAqbznSBWMA2ZOgmpQQL154G84PxwTrwUNCs/jdxzHzFWCBOaPje9GQeG1+JvEo/TuNf8clHBBEhskxSMBKYJxFChXgCA2qEgYCgTBK5XgXQBI4IVmIto7mslUvKj/OXhx4V+jDDjehM2k8AXNdx8sBARfNhgXX74SxIpneQuCACNgBJTSIBgCHSwOzoeCMgsVzNEH2Sy8MqALBJ7hQigQhAHOEUEVygPSAw9B4yCl8EH2z0u8x1+IALiQAiUYCJeADCtQDgF5ZBj6SMOV+mkFsLwCnEnGTTIQGeOBUwEoAmUe5DPOMHPyu2GwucdjpbnOsKdiXJ/ZKmCQYTICR0AYAHwWI7vNglSwB8E1z0M2IXDTMNCwNwDYG09wAIWsQ3BxTAtB9BmI560pDETQ0PqQCJSBIAqUZcN493oyQupX6l5NoN6wzzezwCx9EzXgTWHkJNsmWWqobu49BGCVMhCYb5lFweIEVuAzEBAkapjkLQ6ChSD6rA6eFbA1sJoyAwPTAw8kjmNVLIIBjnvgEGSeBiXpgQwMTTFhEQXnr0ehZ9MmIknqSo3g4Eoq3+w8s0VW4YOmmHDAwkCzzH2+XppFQPB8tlRKAeqgr50eiyqZTLyJG/B9LTVs8+XE19BJ9mkQyDZjlj7DUC8DyZhOAwMTNgB5uik43j/FhKX0Fse2QArhMw8ZjKyUHvuqojC0dy0ZR/+BAJY1zWeFB+gkgIGj8ECu0MVA7/zVN06kbGZopuCbq8fIA2QAx0KAprDSzKXCzD2xrzRP1D9fBspsD875ZoZmiuMjSAwZh4D5TgRBm8pAi4EKdA/1Ej+jTuLR5qBcdxJIS0Cp92nYRwjRAYAGlOlMmHovaV48AM5/cc+sAz3zQS1rYOB1fc2rdCIIts9AHLMMaiAbZS8csBJ1FccLpKHChA1QFJRxONT31IfywmjCANIASD2Wofka/fOBRxM2GqhBBc4Dj2jCyDx0IkxDz8B/kjyCZwCsQwZOun0PrODFPeDKGnh0M5CNt0HjUBbE8gfU/uEsuKCJC0CM+RsAKcitD8Dx+SKIs1fp95BhFy8lyYYEMMNq0Pq9vTD67l49FmEUNAH3yZthyRnt0Lb4VvXUaF6XQBNZdGnRFZ7nLoODQHraaCRm8An40SeD0HXSrWKttwDcQU9r3scHqRzG+IuMTDT3+2FM4DyCcAbBI5bRSzNOACAewwqyPU+T7gC8A0x4mhDGxFIBWxIxUL/9PsyojQNzhNb9Y1qc+8NCd27CKlFqO3evIPWzU2B94yG9Z9dDsBgBXPyt3Pt4/5b74wuPnkUSwYPXvux2vP+JHn3oGntJ5WQqP2/aot677hG5RQJxKOHiyjNh5nknw1GEgAatgVCizjoWTh3P68zWDrcTz4csVnrkZf1fEZuqf/86/eYv/6B+852n9TZjYZohW12jnRhRoMOgHgvLTsSLFwVqJPIa40ATDxKQGMbEa2FP1xpSmhbAsrb58ZwfohgGog786jaoPWUehFf8a6l/YDRHn1+VrO/qE+4F92R6HFWVf/V74db5LRCdc/XEH3c+HD4+V1DyxJt6PtZAZOuMRCFuW2LdDdZx81tY/Mzbe3cNZfXEaQuqCWHcufFce97iNl7/tQd7O+JRwtf8U9ORT7ye67jp8dz/EghnuRXL/PCr1vzLz4TTtdae+ABAMkaqhNRyrKAc/M4IkZu3TmxbsSy2RGmQV6/Jrn3hndIgp3ae0nBGg108pBeWnimjHho2TmGgYpAe+jnpn7rglU4kCJoP8MIRG9QvboXk6UdD6Ma1YviJ3406yh23F89j9ss/aK3a1uGULr0/1/383TWN7bNYuPmqgY6Ox1LzxvNKnXjDnn5KqGBWbfrbl8Zr77o0PG/1xvTQ+pcHSjsebZ9p2AQAFiOUUiBFByUXIGxTIqTWqzcN7r//1/kdtlXXTVlsDGNjV45XSydXo7UTzj274Lx3OvPjp//LBwNo6qsub2W3X9bYNpZXE8tX9z63tSOfpQCa0mgft1PdjERzhoV+GFOOAwMngkcfODRj4nthScA5+3zo2LScIDYH/JXDGD+4PSB9Qy/7zB2QOKMdQi++Kyd+sjlbECLHtVZAKRcXLo2Frj8/EfvHNYMjV3+pJtI+m4ear9y7v2NdawsCuOjGjiEA7p52zIzsi99NHrN3QBZOvmXPfq6LVeeekuS2FckRSuTVX4o1L10Qjf/Dg52Z6jBj/3HtkbEXto3m79ywb2xPP+v51Z1tyWNaQ3GcuZCSO0JaSml63JxwIjch5e7uCRELM7JgVsTGa3qG3cJI1nXx89JbOl9nPLHbCtftZVCVURrcciYSpHKYifggVnpk1EBqg7QEdPc8SYankxsDYEUqNhnSeGGM/Moy4Fd9UUdPaiOhqQOMF7S86J6+ka0fZfSr97QmFh4R5o0rPxroWtc2I1PQctGNu4eAcOeN+9pqT55nJbIT2h0vSP37HdnSr9/MDq+5prkRTbKmilrREKX7h0oYCpHmuhB98Dd92bt+9qc8Y6H0ulvm2+2zwyGtFZFScak1w/tS1Szc1mRX47xKrlbvdubHNWC8prhSmlEK6u9X7fk95YldtpXay+34qJLMMQD6GmjMNUjlEFAGCuO/IA7UHArpDbA7CFsOYiB64SC+C0KZAxJz0OrCJW5o3XV2zX0bB51n3xwRlIXdx26YGW1t4Kzlqq5BkIK/cu8RVce1hqymlR8Odj1+VL0B8PrdQ0C5e9eK2WROo01c4dhfPSPa8MK2seL3fznafdmyWksrRS84NVq/cE44eveT+/IlVwGh1N3ekSu9uSvrUhoe4lbdHsrC49ItxLUq1JxzUrjhm+fUNX/xuHgKX2jj/wwV7tu0P9uTVmOEEkdpaeUmhA2aThBmDTAW7eKhuo8YT/VbwFAovPgSdY+AMKxDZ+KbsPHSGLYQkPUaurqeJplDObvpAulyAcEDVMsLl8jQuut4zU2P9RbXvtSvKFjitdVzI+2zw6x55c5xDGNeW90WQwAbr/hooOvxCgYCd//upMaJWfU2vLJ9WH+4dnb7vz3Tn5MK3L85scZCHZzVwCJ1VZxv78i5UmqglKhtHYWJ29bvH2As1l9Tlepevixas6ydzF0y32ppquWxQ71QcL72sne2TJQAARwnNNJj2zVdJFw7aEnmBHEgSlQ5FgyqMUEMiGy0QSadwwG4UnuBtJ9q+XmvSbWCvPKiJSq09jpae8vj6fwr29MggYvnVrVGZ9Qw1nzFznFCmHz9vrZo+2wr1LSyo79z3ZGNZQYy7rz0g7bkorlW/Hu/GO358ddr5lz/0/3DEyWlF82rAsaI+KuFscS8Zjvy8HN9haKrCGPM7ex18hteG+ulND6w85E5p7Q20FTJ1S4lQB2h1bfW9e5yhRt1XREXUkQxpmWMFu76yux4++xIvHbF+y8WHTZGWaSfsugAY1VDFovlUQO5zzgMxI05owlj7Cc8L2wyEQxjkECHM2GjgV5sNJlxTKkHXrIUrEevhbpb149mT1vAwpd8odrClf7vHaXiOXfvwahc/m71vDg6kaYrOvs6Hz+iqayBwN3Lzpjp/PzmxFHDGeUkYsQ66469++9cnqojQBRnVB47JxSdWWvZL20fKzlCIhCCUSq+vX7g40/SVveKs2aoxgRj6387mt7249RFqWoa/dmr6SEhlaW1oqiHqFGMUveCU2urZtXbkeRl77zluCzNrbodVij1MdXRLOFezl2Zyv0l9UCLHsaJBMWEQ9UDL1kKtgfgWPaVd9NwwpFV2pWWs60jL/72BBp/fnuhcN35TaQlxdk/P7Sv0LnOBxA1kHHH4rXp1+9NtS2ey2pe/WM2d+2aT8Yf+EZzkjEmGCHqhLnhWEvKsjdvGS65Ej08EwjinRsGPtmX5r2cJ/soo47rZmp3PjzznJYUj+7tL7kIHGNU4hgY/6AczEhaobBNePXFb+8Skg1TK/V2KNq0m0I4/1nrgewwYUy5MlxZEzRJvl+3u2Spth69ltTdsWEst+b5PkkJl4Ra7pKjuPXaPS21924cHX/gWTGAqZwW2UjX+taW0Zz0wxjmnjS/MbPpjuRRDQkSHstL+cjzA8Xnto5nP/gTpDUh8jvLaxvPXBirPvfuHdliUVKgVo4SKw+UFSkLj1Ca7GPczmsxEf3gp6mLYiESarr8nY9Bywhl1qgGniGECq21evWetuOXHRuvr77k7U5X0GHLSm2x7MYPmRXNYljyWeuB/JCBNGogpjB/ph542gLNN99F6tMZqd7/uCgJoZoxqhY0c6shydiKB9ID85psuqjNtikBuHBpOPHGB8Xcud/tGouEuOhcN39mMkasBzfnuo9ocOu+vCQZ4YwQ1LLRnBQjWSVciemrZpwRsDjRFqP6mS2Z/lVPje/idmKA0SiWj+TOh0Jfa0zSmkxBYppJkHVeiOHlJ9EQZYwSWn3pW7tdh40wO/VWyAfw89YDa5Kwd7pU7i+oB2p1x8WyatFcGSZaUKM3jEkhQX+433Vv3zCYWXl2LHrzl+tiBEB3j0j3vo3DY3/4YJgBs0rXntesAKzSoy8OlKQ7Wh8LydCZC5PQ3hpXs+tDJB6hxObAtFZMaU0sxlzUwKfeyPS8tN3tJVY8bdP4qGZWYdcaek11RCd+snmgzxUywhkt2hafoIQgCfSFpyVmtdZbVYmL397lCDoeAEh5NIcm/HnqgcyBzCGLCRVOZNp6oFKOEmLMls5oyDhowgUBJkwdVGOPByRn0QmM+7R0qFTFEJYDGY3mGa9JA2ZnznhC6nxMY4QP1C/xm+RWayKJloobGlFaIkBdIERQwguMxwcZqxkgPJQFrajjDDYIZ7BdqVIdJTQHYGWD2iNoTbUWUaVFNSF8xLJT26xI00egwjlsKn3eeuBB5azACx++HiiVkBNEuRlbqSISTZsyFtoO0YoQyyEkUjRlQl2ytHQYYVQQEssyFs+aoqubDyvEBFgJCBMIvNIO10owAuhNzXBoi9qvLSpNrYLF42luVaW1juSBCpDOeNJ1061KFqsIpUUKvAAUhMbKoLlZhJUWYQZsnFmpD3m4fh+jVuH/ox54UEH109QDTR9GlIgGVxN8RXQy2FIkRFHKXAALm1VagUtB4mkugNpFzq2SllpiKQ+FnlLqIAOVVhpzd9AuNY0FrCEzLFeZVTA1OyqZQ7hdoNTOE8od0Epr6XCp8nGlXA5AS5h94JUatAR0yFpTogQKdYmR+DC1IhlKGFZsTGX6s9YD0fxdFwRrgKGRNV52gk2lHk2g4XD1wEkPjQVYRM/vY/jVYgCjQUJhAGraul6PRWvqEiBBn6Tct/XbmgqIwrzUa1t6FAx6xIqCllJTYTphmiLDvHEwylVKMQLatC0J9VIz7JUYTZGYimFYIzRBgJHtflvzc9QDsSKNc+UhcE/PQLdpKh3U1pymHniIrpzJof0esCk8mNAn6ItgYB5Utv3ChPn94J6w8FsHXvPdb4WalqXfl5nalatsrAcF3yB/N0AxkKaf7Dfo/U0Af74rd5h64AGNdQ4iziBj2ppmV4ID72kNWNWYrAke3FQq70wIOmqm6Bp04IK+it/w9nvFBoTKNieyJGjIK78bWNFv9nYmBB02f3dDsDPBxKXezgWzOAZkZBzuOPCf63fyTBo2dXdDuYv3KeuBlX1hnIvLQUQVqCZsrKMdN1+hW1wG92oNX8AecdAfDprkFdXpgCXBroDA5Mp1xIrtHV6vxcuxy2nidDseyp05n4FB29Mw0G8rGPCCxfE7eiZfZ+U+iZei+aZqANSgzPYQFF+8ztfAT1sPrOzKVe5MwK0d/wdwYTpPDqCpwgAAAABJRU5ErkJggg=="},BU3w:function(De,N,e){"use strict";e.d(N,"a",function(){return r});var A=e("MNnm"),C="rc-util-key";function Z(Y){if(Y.attachTo)return Y.attachTo;var S=document.querySelector("head");return S||document.body}function q(Y){var S,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(A.a)())return null;var B=document.createElement("style");if((S=m.csp)===null||S===void 0?void 0:S.nonce){var f;B.nonce=(f=m.csp)===null||f===void 0?void 0:f.nonce}B.innerHTML=Y;var s=Z(m),y=s.firstChild;return m.prepend&&s.prepend?s.prepend(B):m.prepend&&y?s.insertBefore(B,y):s.appendChild(B),B}var E=new Map;function r(Y,S){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Z(m);if(!E.has(B)){var f=q("",m),s=f.parentNode;E.set(B,s),s.removeChild(f)}var y=Array.from(E.get(B).children).find(function(v){return v.tagName==="STYLE"&&v[C]===S});if(y){var h,a;if(((h=m.csp)===null||h===void 0?void 0:h.nonce)&&y.nonce!==((a=m.csp)===null||a===void 0?void 0:a.nonce)){var o;y.nonce=(o=m.csp)===null||o===void 0?void 0:o.nonce}return y.innerHTML!==Y&&(y.innerHTML=Y),y}var x=q(Y,m);return x[C]=S,x}},E7E6:function(De,N){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},IBYe:function(De,N,e){"use strict";function A(C){return null}N.a=A},ImLi:function(De,N,e){De.exports=e.p+"static/no-data.c803c40c.png"},LSTS:function(De,N,e){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var A=function(){function s(y,h){for(var a=0;a=0)continue;if(!Object.prototype.hasOwnProperty.call(s,a))continue;h[a]=s[a]}return h}function S(s,y){if(!(s instanceof y))throw new TypeError("Cannot call a class as a function")}function m(s,y){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:s}function B(s,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);s.prototype=Object.create(y&&y.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(s,y):s.__proto__=y)}var f=function(s){B(y,s);function y(h){S(this,y);var a=m(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,h));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return A(y,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var a=this.getParentElement(this.scrollComponent);a.scrollTop=a.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var a=!1,o={get passive(){a=!0}};try{document.addEventListener("test",null,o),document.removeEventListener("test",null,o)}catch(x){}return a}},{key:"eventListenerOptions",value:function(){var a=this.props.useCapture;return this.isPassiveSupported()&&(a={useCapture:this.props.useCapture,passive:!0}),a}},{key:"setDefaultLoader",value:function(a){this.defaultLoader=a}},{key:"detachMousewheelListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.scrollComponent.parentNode),a.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.getParentElement(this.scrollComponent)),a.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(a){var o=this.props.getScrollParent&&this.props.getScrollParent();return o!=null?o:a&&a.parentNode}},{key:"filterProps",value:function(a){return a}},{key:"attachScrollListener",value:function(){var a=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!a)return;var o=window;this.props.useWindow===!1&&(o=a),o.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),o.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(a){a.deltaY===1&&!this.isPassiveSupported()&&a.preventDefault()}},{key:"scrollListener",value:function(){var a=this.scrollComponent,o=window,x=this.getParentElement(a),v=void 0;if(this.props.useWindow){var D=document.documentElement||document.body.parentNode||document.body,M=o.pageYOffset!==void 0?o.pageYOffset:D.scrollTop;this.props.isReverse?v=M:v=this.calculateOffset(a,M)}else this.props.isReverse?v=x.scrollTop:v=a.scrollHeight-x.scrollTop-x.clientHeight;v1&&arguments[1]!==void 0?arguments[1]:1,X=le.length,fe=0;fe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(c.a)(U).map(function(he,de){if(!E.isValidElement(he)||!he.type)return null;var Ce=he.type.isSelectOptGroup,Ee=he.key,F=he.props,w=F.children,J=Object(Y.a)(F,["children"]);return P||!Ce?R(he):Object(g.a)(Object(g.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?de:Ee,"__"),label:Ee},J),{},{options:l(w)})}).filter(function(he){return he})}var n=e("2Qr1"),t=e("qNPg"),u=e("U8pU"),d=e("Kwbf"),p=e("WKfj");function I(U){var P=U.mode,he=U.options,de=U.children,Ce=U.backfill,Ee=U.allowClear,F=U.placeholder,w=U.getInputElement,J=U.showSearch,G=U.onSearch,O=U.defaultOpen,ne=U.autoFocus,z=U.labelInValue,ce=U.value,ge=U.inputValue,te=U.optionLabelProp,ae=P==="multiple"||P==="tags",_e=J!==void 0?J:ae||P==="combobox",Me=he||l(de);if(Object(d.a)(P!=="tags"||Me.every(function(ye){return!ye.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),P==="tags"||P==="combobox"){var We=Me.some(function(ye){return ye.options?ye.options.some(function(le){return typeof("value"in le?le.value:le.key)=="number"}):typeof("value"in ye?ye.value:ye.key)=="number"});Object(d.a)(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(P!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(P==="combobox"||!Ce,"`backfill` only works with `combobox` mode."),Object(d.a)(P==="combobox"||!w,"`getInputElement` only work with `combobox` mode."),Object(d.b)(P!=="combobox"||!w||!Ee||!F,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),G&&!_e&&P!=="combobox"&&P!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!O||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ce!=null){var Q=Object(p.d)(ce);Object(d.a)(!z||Q.every(function(ye){return Object(u.a)(ye)==="object"&&("key"in ye||"value"in ye)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!ae||Array.isArray(ce),"`value` should be array when `mode` is `multiple` or `tags`")}if(de){var ve=null;Object(c.a)(de).some(function(ye){if(!E.isValidElement(ye)||!ye.type)return!1;var le=ye.type;if(le.isSelectOption)return!1;if(le.isSelectOptGroup){var se=Object(c.a)(ye.props.children).every(function(Ne){return!E.isValidElement(Ne)||!ye.type||Ne.type.isSelectOption?!0:(ve=Ne.type,!1)});return!se}return ve=le,!0}),ve&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(d.a)(ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=I,_=Object(t.a)({prefixCls:"rc-select",components:{optionList:v},convertChildrenToData:l,flattenOptions:n.d,getLabeledValue:n.e,filterOptions:n.b,isValueDisabled:n.g,findValueOption:n.c,warningProps:b,fillOptionsWithMissingValue:n.a}),L=function(U){Object(Z.a)(he,U);var P=Object(q.a)(he);function he(){var de;return Object(A.a)(this,he),de=P.apply(this,arguments),de.selectRef=E.createRef(),de.focus=function(){de.selectRef.current.focus()},de.blur=function(){de.selectRef.current.blur()},de}return Object(C.a)(he,[{key:"render",value:function(){return E.createElement(_,Object.assign({ref:this.selectRef},this.props))}}]),he}(E.Component);L.Option=M,L.OptGroup=k;var re=L,Ae=N.c=re},NvD2:function(De,N,e){"use strict";e.d(N,"a",function(){return r});var A=e("Kwbf");function C(Y,S){var m=new Set;return Y.forEach(function(B){S.has(B)||m.add(B)}),m}function Z(Y){var S=Y||{},m=S.disabled,B=S.disableCheckbox,f=S.checkable;return!!(m||B)||f===!1}function q(Y,S,m,B){for(var f=new Set(Y),s=new Set,y=0;y<=m;y+=1){var h=S.get(y)||new Set;h.forEach(function(v){var D=v.key,M=v.node,j=v.children,k=j===void 0?[]:j;f.has(D)&&!B(M)&&k.filter(function(g){return!B(g.node)}).forEach(function(g){f.add(g.key)})})}for(var a=new Set,o=m;o>=0;o-=1){var x=S.get(o)||new Set;x.forEach(function(v){var D=v.parent,M=v.node;if(B(M)||!v.parent||a.has(v.parent.key))return;if(B(v.parent.node)){a.add(D.key);return}var j=!0,k=!1;(D.children||[]).filter(function(g){return!B(g.node)}).forEach(function(g){var c=g.key,R=f.has(c);j&&!R&&(j=!1),!k&&(R||s.has(c))&&(k=!0)}),j&&f.add(D.key),k&&s.add(D.key),a.add(D.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(C(s,f))}}function E(Y,S,m,B,f){for(var s=new Set(Y),y=new Set(S),h=0;h<=B;h+=1){var a=m.get(h)||new Set;a.forEach(function(D){var M=D.key,j=D.node,k=D.children,g=k===void 0?[]:k;!s.has(M)&&!y.has(M)&&!f(j)&&g.filter(function(c){return!f(c.node)}).forEach(function(c){s.delete(c.key)})})}y=new Set;for(var o=new Set,x=B;x>=0;x-=1){var v=m.get(x)||new Set;v.forEach(function(D){var M=D.parent,j=D.node;if(f(j)||!D.parent||o.has(D.parent.key))return;if(f(D.parent.node)){o.add(M.key);return}var k=!0,g=!1;(M.children||[]).filter(function(c){return!f(c.node)}).forEach(function(c){var R=c.key,l=s.has(R);k&&!l&&(k=!1),!g&&(l||y.has(R))&&(g=!0)}),k||s.delete(M.key),g&&y.add(M.key),o.add(M.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(C(y,s))}}function r(Y,S,m,B){var f=[],s;B?s=B:s=Z;var y=new Set(Y.filter(function(x){var v=!!m[x];return v||f.push(x),v})),h=new Map,a=0;Object.keys(m).forEach(function(x){var v=m[x],D=v.level,M=h.get(D);M||(M=new Set,h.set(D,M)),M.add(v),a=Math.max(a,D)}),Object(A.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var o;return S===!0?o=q(y,h,a,s):o=E(y,S.halfCheckedKeys,h,a,s),o}},OZM5:function(De,N,e){"use strict";e.d(N,"b",function(){return B}),e.d(N,"a",function(){return f}),e.d(N,"k",function(){return s}),e.d(N,"h",function(){return y}),e.d(N,"i",function(){return h}),e.d(N,"g",function(){return a}),e.d(N,"c",function(){return o}),e.d(N,"d",function(){return x}),e.d(N,"j",function(){return M}),e.d(N,"e",function(){return j}),e.d(N,"f",function(){return k});var A=e("KQm4"),C=e("U8pU"),Z=e("Ff2n"),q=e("q1tI"),E=e.n(q),r=e("Kwbf"),Y=e("WaYH"),S=.25,m=2;function B(g,c){var R=g.slice(),l=R.indexOf(c);return l>=0&&R.splice(l,1),R}function f(g,c){var R=g.slice();return R.indexOf(c)===-1&&R.push(c),R}function s(g){return g.split("-")}function y(g,c){return"".concat(g,"-").concat(c)}function h(g){return g&&g.type&&g.type.isTreeNode}function a(g,c){var R=[g],l=c[g];function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(u){var d=u.key,p=u.children;R.push(d),n(p)})}return n(l.children),R}function o(g,c){var R=g.clientY,l=c.selectHandle.getBoundingClientRect(),n=l.top,t=l.bottom,u=l.height,d=Math.max(u*S,m);return R<=n+d?-1:R>=t-d?1:0}function x(g,c){if(!g)return;var R=c.multiple;return R?g.slice():g.length?[g[0]]:g}var v=function(c){return c};function D(g,c){if(!g)return[];var R=c||{},l=R.processProps,n=l===void 0?v:l,t=Array.isArray(g)?g:[g];return t.map(function(u){var d=u.children,p=Object(Z.a)(u,["children"]),I=D(d,c);return E.a.createElement(Y.a,Object.assign({},n(p)),I)})}function M(g){if(!g)return null;var c;if(Array.isArray(g))c={checkedKeys:g,halfCheckedKeys:void 0};else if(Object(C.a)(g)==="object")c={checkedKeys:g.checked||void 0,halfCheckedKeys:g.halfChecked||void 0};else return Object(r.a)(!1,"`checkedKeys` is not an array or an object"),null;return c}function j(g,c){var R=new Set;function l(n){if(R.has(n))return;var t=c[n];if(!t)return;R.add(n);var u=t.parent,d=t.node;if(d.disabled)return;u&&l(u.key)}return(g||[]).forEach(function(n){l(n)}),Object(A.a)(R)}function k(g){var c={};return Object.keys(g).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(c[R]=g[R])}),c}},RotF:function(De,N,e){De.exports=e("LSTS")},"SA+Z":function(De,N,e){var A=e("wTVA"),C=e("EbDI"),Z=e("ZhPi"),q=e("wkBT");function E(r){return A(r)||C(r)||Z(r)||q()}De.exports=E,De.exports.__esModule=!0,De.exports.default=De.exports},"UK/q":function(De,N,e){"use strict";e.r(N),e.d(N,"NoData",function(){return ge});var A=e("2qtc"),C=e("kLXV"),Z=e("+L6B"),q=e("2/Rp"),E=e("9og8"),r=e("rAM+"),Y=e("tJVT"),S=e("k1fw"),m=e("WmNS"),B=e.n(m),f=e("q1tI"),s=e.n(f),y=e("Wq7V"),h=e("ImLi"),a=e.n(h),o=e("ErOA");function x(){return Object(o.c)("teach_groups.json")}function v(Q){return Object(o.f)("teach_groups.json",Q)}function D(Q,ve){return Object(o.g)("teach_groups/".concat(Q,".json"),ve)}function M(Q){return Object(o.f)("teach_group_members.json",Q)}function j(Q){return Object(o.b)("teach_group_members/".concat(Q,".json"))}function k(Q,ve){return Object(o.g)("teach_groups/".concat(Q,"/change_admin.json?member_id=").concat(ve))}function g(Q,ve){return Object(o.b)("teach_groups/".concat(Q,"/del_member.json?member_id=").concat(ve))}function c(Q){return Object(o.b)("teach_groups/".concat(Q,".json"))}function R(Q){return Object(o.c)("teach_groups/".concat(Q,"/show_permission.json"))}function l(Q){return Object(o.g)("teach_groups/".concat(Q==null?void 0:Q.id,"/update_permission.json"),Q)}var n=e("5NDa"),t=e("5rEg"),u=e("y8nQ"),d=e("Vl3Y"),p=function(Q){var ve=Q.callback,ye=Q.visible,le=Q.onCancel,se=Q.id,Ne=Q.name;function Le(i){ve(i)}var He=d.a.useForm(),ze=Object(Y.a)(He,1),Je=ze[0];return Object(f.useEffect)(function(){Je.setFieldsValue({name:Ne})},[Ne]),s.a.createElement(C.a,{centered:!0,title:se?"\u6539\u540D":"\u65B0\u5EFA",visible:ye,onCancel:le,footer:null},s.a.createElement(d.a,{layout:"vertical",form:Je,initialValues:{name:Ne},onFinish:Le},s.a.createElement(d.a.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},s.a.createElement(t.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),s.a.createElement(d.a.Item,null,s.a.createElement("div",{className:"flex-container flex-end"},s.a.createElement(q.a,{type:"ghost",onClick:le,style:{marginRight:20}}," \u53D6\u6D88 ")," ",s.a.createElement(q.a,{type:"primary",htmlType:"submit"}," \u786E\u5B9A ")))))},I=e("7Kak"),b=e("9yH6"),_=e("miYZ"),L=e("tsqr"),re=e("g9YV"),Ae=e("wCAj"),U=e("qVdP"),P=e("jsC+"),he=e("lUTK"),de=e("BvKs"),Ce=e("sRBo"),Ee=e("kaz8"),F=e("8cjW"),w=e("3ouR"),J=e("Aqpx"),G=e.n(J),O=50,ne=function(Q){var ve,ye,le=Q.data,se=Q.isAdminOrTeacher,Ne=Q.onDelGroup,Le=Q.onChangeGroupName,He=Q.onPlusMember,ze=Q.onDelMember,Je=Q.onExitGroup,i=Q.Transferteams,T=Object(f.useState)(0),K=Object(Y.a)(T,2),$=K[0],oe=K[1],V=Object(f.useState)(0),W=Object(Y.a)(V,2),H=W[0],X=W[1],fe=Object(f.useState)(),ee=Object(Y.a)(fe,2),ie=ee[0],xe=ee[1],be=Object(f.useState)(),Pe=Object(Y.a)(be,2),Ie=Pe[0],we=Pe[1],Be=Object(f.useState)(!1),je=Object(Y.a)(Be,2),qe=je[0],Ge=je[1],Xe=Object(f.useState)(),Ye=Object(Y.a)(Xe,2),Ze=Ye[0],Ue=Ye[1],Re=Object(f.useState)(),Se=Object(Y.a)(Re,2),Te=Se[0],me=Se[1],pe=Object(f.useState)(!1),Ve=Object(Y.a)(pe,2),nt=Ve[0],et=Ve[1];function Qe(ue){var Ke=parseInt(ue.key,10);C.a.confirm({title:"\u89E3\u6563\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:function(){Ne(Ke)}})}function yt(ue){var Ke=parseInt(ue.key,10);C.a.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){Je(Ke)}})}function Ot(ue){var Ke=parseInt(ue,10);C.a.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){Je(Ke)}})}function xt(ue,Ke){C.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){ze(ue,Ke)}})}var dt={display:"block",height:"30px",lineHeight:"30px"};function ct(ue){me(ue),Ue(ue==null?void 0:ue.id),et(!0)}var pt=[{title:"\u6210\u5458\u540D\u79F0",dataIndex:"name",width:150},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u9898",dataIndex:"item_bank",align:"center",width:150,render:function(Ke,Oe,lt){return s.a.createElement(Ee.a,{disabled:Oe==null?void 0:Oe.is_creator,defaultChecked:Ke,onChange:function(ot){l({id:Ze,member_id:Oe.id,clazz:"item_bank",enable:ot.target.checked})}})}},{title:"\u7F16\u8F91\u5171\u4EAB\u8BD5\u9898",dataIndex:"edit_item_bank",align:"center",width:150,render:function(Ke,Oe,lt){return s.a.createElement(Ee.a,{disabled:Oe==null?void 0:Oe.is_creator,defaultChecked:Ke,onChange:function(ot){l({id:Ze,member_id:Oe.id,clazz:"edit_item_bank",enable:ot.target.checked})}})}},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u5377",dataIndex:"exercise",align:"center",render:function(Ke,Oe,lt){return s.a.createElement(Ee.a,{disabled:Oe==null?void 0:Oe.is_creator,defaultChecked:Ke,onChange:function(ot){l({id:Ze,member_id:Oe.id,clazz:"exercise",enable:ot.target.checked})}})}}];function vt(ue){return Et.apply(this,arguments)}function Et(){return Et=Object(E.a)(B.a.mark(function ue(Ke){var Oe;return B.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,R(Ke==null?void 0:Ke.id);case 2:Oe=at.sent,Ue(Ke==null?void 0:Ke.id),we(Oe),Ge(!0);case 6:case"end":return at.stop()}},ue)})),Et.apply(this,arguments)}return s.a.createElement("ul",{className:"teaching-lists"},le.map(function(ue,Ke){return s.a.createElement("li",{key:ue.id,onClick:function(){return oe(Ke)}},s.a.createElement("div",{className:"item-group"},s.a.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:500}},ue.name,"\u7684\u6559\u7814\u56E2\u961F"),s.a.createElement("div",{className:"action-group"},ue.is_creat||se?s.a.createElement(P.a,{overlay:s.a.createElement(de.a,null,s.a.createElement(de.a.Item,{onClick:function(){Le(ue)}},"\u4FEE\u6539\u540D\u79F0"),s.a.createElement(de.a.Item,{disabled:ue.memers.length>=50,onClick:function(){He(ue)}},"\u6DFB\u52A0\u6210\u5458"),ue.is_creat&&s.a.createElement(de.a.Item,{onClick:function(){return vt(ue)}},"\u6743\u9650\u914D\u7F6E"),ue.is_creat&&s.a.createElement(de.a.Item,{onClick:function(){return ct(ue)}},"\u8F6C\u8BA9\u56E2\u961F"),s.a.createElement(de.a.Item,{key:ue.id+"",onClick:ue.is_creat?Qe:yt},ue.is_creat?"\u89E3\u6563":"\u9000\u51FA"))},s.a.createElement("a",{id:ue.id+""},s.a.createElement("i",{onClick:function(lt){lt.stopPropagation(),lt.preventDefault(),Ge(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:14,cursor:"pointer",marginRight:5},className:"iconfont icon-shezhi7"}),"\u8BBE\u7F6E")):s.a.createElement("span",{key:ue.id+"",className:"c-grey-c",onClick:function(){return Ot(ue.id)}},"\u9000\u51FA"))),s.a.createElement("ul",{className:"info"},"\u56E2\u961F\u6210\u5458\uFF1A ",ue.memers.map(function(Oe){var lt;return s.a.createElement("li",{key:Oe.id||Oe.name,onClick:function(){X(Oe.id)},className:"directionItemWrap"},s.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontWeight:Oe.is_creater?500:400}},((lt=Oe.name)===null||lt===void 0?void 0:lt.length)>6?Oe.name.substr(0,6)+"....":Oe.name," ",s.a.createElement("img",{src:G.a,style:{marginLeft:5,display:!(Oe!=null&&Oe.is_creater)&&"none",height:14,width:40}})),ue.is_creat?s.a.createElement("div",{className:"groupActionWrap",style:{display:!(Oe!=null&&Oe.id)&&"none"}},s.a.createElement("a",{className:"btn-del",onClick:function(ot){ot.preventDefault(),ot.stopPropagation(),xt(ue.id,Oe.id)}},s.a.createElement(w.a,null))):null)})))}),s.a.createElement(C.a,{title:"\u6743\u9650\u914D\u7F6E",destroyOnClose:!0,footer:null,visible:qe,onCancel:function(){return Ge(!1)},width:650},s.a.createElement(Ae.a,{dataSource:Ie==null?void 0:Ie.members,columns:pt,pagination:!1,scroll:{y:240}}),s.a.createElement("p",{style:{color:"#e13c2a"}},"*\u9009\u4E2D\u4EE3\u8868\u8BE5\u6210\u5458\u53EF\u4EE5\u4F7F\u7528\u56E2\u961F\u5185\u6240\u6709\u6210\u5458\u5171\u4EAB\u961F\u8D44\u6E90\uFF0C\u5426\u5219\u4E0D\u53EF\u4EE5")),s.a.createElement(C.a,{title:"\u8F6C\u8BA9\u56E2\u961F",onOk:function(){if(!ie){L.b.info("\u521B\u5EFA\u4EBA\u4E0D\u80FD\u4E3A\u7A7A");return}i(Ze,ie),et(!1),ie=""},visible:nt,onCancel:function(){et(!1),ie=""}},s.a.createElement("p",{style:{textAlign:"center"}},"\u9009\u4E2D\u7684\u6210\u5458\u5C06\u4F1A\u4EE5\u4FE1\u7684\u521B\u5EFA\u4EBA\u8EAB\u4EFD\u63A5\u7BA1\u56E2\u4F53 ",s.a.createElement("br",null)," \u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u521B\u5EFA\u4EBA\u7684\u8EAB\u4EFD\u548C\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u56E2\u961F\u4E2D\u7684\u4E00\u5458"),s.a.createElement("div",null,s.a.createElement(b.a.Group,{defaultValue:[],onChange:function(Ke){ie=Ke.target.value,xe(Ke.target.value)}},Te==null||((ve=Te.memers)===null||ve===void 0||((ye=ve.filter(function(ue){return ue.is_teacher}))===null||ye===void 0))?void 0:ye.map(function(ue,Ke){return s.a.createElement(b.a,{style:dt,value:ue==null?void 0:ue.id},ue==null?void 0:ue.name)})))))},z=e("9kvl"),ce=e("ju9d");function ge(Q){var ve=Q.children;return s.a.createElement("div",{className:"no-data"},s.a.createElement("img",{src:a.a,alt:"no-data",width:300}),ve)}var te={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},ae;(function(Q){Q[Q.INITDATA=0]="INITDATA",Q[Q.SHOWLOADING=1]="SHOWLOADING",Q[Q.SHOWFORMPANEL=2]="SHOWFORMPANEL",Q[Q.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",Q[Q.SELECTGROUP=4]="SELECTGROUP",Q[Q.SETINDEX=5]="SETINDEX"})(ae||(ae={}));function _e(Q,ve){switch(ve.type){case ae.INITDATA:return Object(S.a)(Object(S.a)({},Q),ve.payload);case ae.SHOWLOADING:return Object(S.a)(Object(S.a)({},Q),{},{loading:ve.payload});case ae.SETINDEX:return Object(S.a)(Object(S.a)({},Q),{},{index:ve.payload});case ae.SHOWFORMPANEL:return Object(S.a)(Object(S.a)({},Q),ve.payload);case ae.SHOWMEMBERPANEL:return Object(S.a)(Object(S.a)({},Q),ve.payload);case ae.SELECTGROUP:return Object(S.a)(Object(S.a)({},Q),{},{selectedGroup:ve.payload,showFormPanel:!0});default:throw new Error}}function Me(Q){var ve,ye=Q.user,le=Object(f.useReducer)(_e,te),se=Object(Y.a)(le,2),Ne=se[0],Le=se[1],He=Ne.data,ze=Ne.index,Je=Ne.loading,i=Ne.showFormPanel,T=Ne.selectedGroup,K=Ne.showMemberPanel,$=(ve=ye.userInfo)===null||ve===void 0?void 0:ve.role,oe=Object(f.useMemo)(function(){var Re=[],Se=[];if(!He)return;var Te=Object(r.a)(He),me;try{for(Te.s();!(me=Te.n()).done;){var pe=me.value;pe.is_creat?Re.push(pe):Se.push(pe)}}catch(Ve){Te.e(Ve)}finally{Te.f()}return[Re,Se]},[He]);Object(f.useEffect)(function(){$===15&&Le({type:ae.SETINDEX,payload:1})},[$]);function V(){return W.apply(this,arguments)}function W(){return W=Object(E.a)(B.a.mark(function Re(){var Se;return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,x();case 2:if(Se=me.sent,!((Se==null?void 0:Se.status)===401)){me.next=5;break}return me.abrupt("return");case 5:Le({type:ae.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Se.groups}});case 6:case"end":return me.stop()}},Re)})),W.apply(this,arguments)}Object(f.useEffect)(function(){V()},[]);function H(Re){return X.apply(this,arguments)}function X(){return X=Object(E.a)(B.a.mark(function Re(Se){return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(!T.id){me.next=5;break}return me.next=3,D(T.id,Se);case 3:me.next=7;break;case 5:return me.next=7,v(Se);case 7:V();case 8:case"end":return me.stop()}},Re)})),X.apply(this,arguments)}function fe(){Le({type:ae.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ee(Re){Le({type:ae.SELECTGROUP,payload:Re})}function ie(){Le({type:ae.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function xe(){Le({type:ae.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function be(Re){Le({type:ae.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Re}})}function Pe(Re,Se){return Ie.apply(this,arguments)}function Ie(){return Ie=Object(E.a)(B.a.mark(function Re(Se,Te){return B.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,g(Se,Te);case 2:V();case 3:case"end":return pe.stop()}},Re)})),Ie.apply(this,arguments)}function we(Re){return Be.apply(this,arguments)}function Be(){return Be=Object(E.a)(B.a.mark(function Re(Se){return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,c(Se);case 2:V();case 3:case"end":return me.stop()}},Re)})),Be.apply(this,arguments)}function je(Re){return qe.apply(this,arguments)}function qe(){return qe=Object(E.a)(B.a.mark(function Re(Se){return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,j(Se);case 2:V();case 3:case"end":return me.stop()}},Re)})),qe.apply(this,arguments)}function Ge(Re,Se){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(E.a)(B.a.mark(function Re(Se,Te){return B.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,k(Se,Te);case 2:V();case 3:case"end":return pe.stop()}},Re)})),Xe.apply(this,arguments)}function Ye(Re){Le({type:ae.SETINDEX,payload:parseInt(Re.target.id,10)})}function Ze(Re,Se){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(E.a)(B.a.mark(function Re(Se,Te){return B.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return xe(),pe.next=3,M({user_ids:Se,group_id:Te});case 3:V();case 4:case"end":return pe.stop()}},Re)})),Ue.apply(this,arguments)}return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"teaching-circling-container"},s.a.createElement("div",{className:"teaching-circling-body",style:{width:"1200px"}},$===15?null:s.a.createElement("ul",{className:"navs"},s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("li",{className:ze===0?"active":""},s.a.createElement("a",{id:"0",onClick:Ye},"\u6211\u521B\u5EFA\u7684")),s.a.createElement("li",{className:ze===1?"active":""},s.a.createElement("a",{id:"1",onClick:Ye},"\u6211\u52A0\u5165\u7684"))),s.a.createElement(q.a,{type:"primary",disabled:He.length>=50,title:He.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:fe},"\u65B0\u5EFA")),s.a.createElement("div",{className:oe[ze].length===0?"nodata-content":"main-content"},oe[ze].length===0?s.a.createElement(ge,null,$<=12?s.a.createElement(s.a.Fragment,null," ",s.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",s.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):s.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):s.a.createElement(ne,{onExitGroup:je,Transferteams:Ge,onPlusMember:be,onDelMember:Pe,onDelGroup:we,isAdminOrTeacher:$<=12,onChangeGroupName:ee,data:oe[ze]}))),s.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," * \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732 ")),s.a.createElement(p,{callback:H,visible:i,onCancel:ie,id:T.id,name:T.name}),s.a.createElement(C.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:K,onCancel:xe,footer:null,width:1100,bodyStyle:{minHeight:200}},s.a.createElement(ce.a,{container_id:T.id,container_type:4,onSelect:Ze,onCancel:xe})))}var We=N.default=Object(z.a)(function(Q){var ve=Q.user;return{user:ve}})(Me)},WaYH:function(De,N,e){"use strict";var A=e("rePB"),C=e("Ff2n"),Z=e("VTBJ"),q=e("1OyB"),E=e("vuIU"),r=e("JX7q"),Y=e("Ji7U"),S=e("LK+K"),m=e("q1tI"),B=e("TSYQ"),f=e.n(B),s=e("sboe"),y=e("OZM5"),h=function(c){var R=c.prefixCls,l=c.level,n=c.isStart,t=c.isEnd;if(!l)return null;for(var u="".concat(R,"-indent-unit"),d=[],p=0;p=0||h.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;n.setState({goInputText:""}),_(n.getValidValue())},n.go=function(h){var I=n.state.goInputText;if(I==="")return;(h.keyCode===p.ENTER||h.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return Object(E.a)(l,[{key:"getValidValue",value:function(){var t=this.state,u=t.goInputText,d=t.current;return!u||isNaN(u)?d:Number(u)}},{key:"getPageSizeOptions",value:function(){var t=this.props,u=t.pageSize,d=t.pageSizeOptions;return d.some(function(h){return h.toString()===u.toString()})?d:d.concat([u.toString()]).sort(function(h,I){var b=isNaN(Number(h))?0:Number(h),_=isNaN(Number(I))?0:Number(I);return b-_})}},{key:"render",value:function(){var t=this,u=this.props,d=u.pageSize,h=u.locale,I=u.rootPrefixCls,b=u.changeSize,_=u.quickGo,L=u.goButton,re=u.selectComponentClass,Ae=u.buildOptionText,U=u.selectPrefixCls,P=u.disabled,pe=this.state.goInputText,de="".concat(I,"-options"),Ce=re,Ee=null,k=null,w=null;if(!b&&!_)return null;var J=this.getPageSizeOptions();if(b&&Ce){var G=J.map(function(O,ne){return m.a.createElement(Ce.Option,{key:ne,value:O.toString()},(Ae||t.buildOptionText)(O))});Ee=m.a.createElement(Ce,{disabled:P,prefixCls:U,showSearch:!1,className:"".concat(de,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(d||J[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},G)}return _&&(L&&(w=typeof L=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:P,className:"".concat(de,"-quick-jumper-button")},h.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),k=m.a.createElement("div",{className:"".concat(de,"-quick-jumper")},h.jump_to,m.a.createElement("input",{disabled:P,type:"text",value:pe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),h.page,w)),m.a.createElement("li",{className:"".concat(de)},Ee,k)}}]),l}(m.a.Component);a.defaultProps={pageSizeOptions:["10","20","50","100"]};var o=a,x=e("N2Kk");function v(){}function S(c){return typeof c=="number"&&isFinite(c)&&Math.floor(c)===c}function T(c,R,l){return l}function j(c,R,l){var n=typeof c=="undefined"?R.pageSize:c;return Math.floor((l.total-1)/n)+1}var F=function(c){Object(r.a)(l,c);var R=Object(Y.a)(l);function l(n){var t;Object(q.a)(this,l),t=R.call(this,n),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(j(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(b,_){var L=t.props.prefixCls,re=b||m.a.createElement("button",{type:"button","aria-label":_,className:"".concat(L,"-item-link")});return typeof b=="function"&&(re=m.a.createElement(b,Object(Z.a)({},t.props))),re},t.savePaginationNode=function(b){t.paginationNode=b},t.isValid=function(b){return S(b)&&b!==t.state.current},t.shouldDisplayQuickJumper=function(){var b=t.props,_=b.showQuickJumper,L=b.pageSize,re=b.total;return re<=L?!1:_},t.handleKeyDown=function(b){(b.keyCode===p.ARROW_UP||b.keyCode===p.ARROW_DOWN)&&b.preventDefault()},t.handleKeyUp=function(b){var _=t.getValidValue(b),L=t.state.currentInputValue;_!==L&&t.setState({currentInputValue:_}),b.keyCode===p.ENTER?t.handleChange(_):b.keyCode===p.ARROW_UP?t.handleChange(_-1):b.keyCode===p.ARROW_DOWN&&t.handleChange(_+1)},t.changePageSize=function(b){var _=t.state.current,L=j(b,t.state,t.props);_=_>L?L:_,L===0&&(_=t.state.current),typeof b=="number"&&("pageSize"in t.props||t.setState({pageSize:b}),"current"in t.props||t.setState({current:_,currentInputValue:_})),t.props.onShowSizeChange(_,b),"onChange"in t.props&&t.props.onChange&&t.props.onChange(_,b)},t.handleChange=function(b){var _=t.props.disabled,L=b;if(t.isValid(L)&&!_){var re=j(void 0,t.state,t.props);L>re?L=re:L<1&&(L=1),"current"in t.props||t.setState({current:L,currentInputValue:L});var Ae=t.state.pageSize;return t.props.onChange(L,Ae),L}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?L-2:0),Ae=2;Ae=d?I=d:I=Number(u),I}},{key:"getShowSizeChanger",value:function(){var t=this.props,u=t.showSizeChanger,d=t.total,h=t.totalBoundaryShowSizeChanger;return typeof u!="undefined"?u:d>h}},{key:"renderPrev",value:function(t){var u=this.props,d=u.prevIcon,h=u.itemRender,I=h(t,"prev",this.getItemIcon(d,"prev page")),b=!this.hasPrev();return Object(D.isValidElement)(I)?Object(D.cloneElement)(I,{disabled:b}):I}},{key:"renderNext",value:function(t){var u=this.props,d=u.nextIcon,h=u.itemRender,I=h(t,"next",this.getItemIcon(d,"next page")),b=!this.hasNext();return Object(D.isValidElement)(I)?Object(D.cloneElement)(I,{disabled:b}):I}},{key:"render",value:function(){var t=this,u=this.props,d=u.prefixCls,h=u.className,I=u.style,b=u.disabled,_=u.hideOnSinglePage,L=u.total,re=u.locale,Ae=u.showQuickJumper,U=u.showLessItems,P=u.showTitle,pe=u.showTotal,de=u.simple,Ce=u.itemRender,Ee=u.showPrevNextJumpers,k=u.jumpPrevIcon,w=u.jumpNextIcon,J=u.selectComponentClass,G=u.selectPrefixCls,O=u.pageSizeOptions,ne=this.state,z=ne.current,ce=ne.pageSize,ge=ne.currentInputValue;if(_===!0&&L<=ce)return null;var te=j(void 0,this.state,this.props),ae=[],_e=null,Te=null,We=null,Q=null,ve=null,ye=Ae&&Ae.goButton,le=U?1:2,se=z-1>0?z-1:0,Me=z+1=le*2&&z!==1+2&&(ae[0]=Object(D.cloneElement)(ae[0],{className:"".concat(d,"-item-after-jump-prev")}),ae.unshift(_e)),te-z>=le*2&&z!==te-2&&(ae[ae.length-1]=Object(D.cloneElement)(ae[ae.length-1],{className:"".concat(d,"-item-before-jump-next")}),ae.push(Te)),K!==1&&ae.unshift(We),$!==te&&ae.push(Q)}var W=null;pe&&(W=m.a.createElement("li",{className:"".concat(d,"-total-text")},pe(L,[L===0?0:(z-1)*ce+1,z*ce>L?L:z*ce])));var H=!this.hasPrev()||!te,X=!this.hasNext()||!te;return m.a.createElement("ul",Object(A.a)({className:f()(d,h,Object(C.a)({},"".concat(d,"-disabled"),b)),style:I,unselectable:"unselectable",ref:this.savePaginationNode},Le),W,m.a.createElement("li",{title:P?re.prev_page:null,onClick:this.prev,tabIndex:H?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(d,"-prev"),Object(C.a)({},"".concat(d,"-disabled"),H)),"aria-disabled":H},this.renderPrev(se)),ae,m.a.createElement("li",{title:P?re.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(d,"-next"),Object(C.a)({},"".concat(d,"-disabled"),X)),"aria-disabled":X},this.renderNext(Me)),m.a.createElement(o,{disabled:b,locale:re,rootPrefixCls:d,selectComponentClass:J,selectPrefixCls:G,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:z,pageSize:ce,pageSizeOptions:O,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ye}))}}],[{key:"getDerivedStateFromProps",value:function(t,u){var d={};if("current"in t&&(d.current=t.current,t.current!==u.current&&(d.currentInputValue=d.current)),"pageSize"in t&&t.pageSize!==u.pageSize){var h=u.current,I=j(t.pageSize,u,t);h=h>I?I:h,"current"in t||(d.current=h,d.currentInputValue=h),d.pageSize=t.pageSize}return d}}]),l}(m.a.Component);F.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:v,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:v,locale:x.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var g=F},"6RRn":function(Se,M,e){"use strict";var A=e("wCXF"),C=e("n6Qo");e.d(M,"b",function(){return C.a});var Z=e("IBYe"),q=e("6eGT"),E=e("hW8S");e.d(M,"a",function(){return E.a}),M.c=A.b},"6eGT":function(Se,M,e){"use strict";function A(C){return null}M.a=A},"815F":function(Se,M,e){"use strict";e.d(M,"e",function(){return Y}),e.d(M,"c",function(){return m}),e.d(M,"d",function(){return B}),e.d(M,"a",function(){return s}),e.d(M,"f",function(){return y}),e.d(M,"b",function(){return p});var A=e("KQm4"),C=e("VTBJ"),Z=e("Ff2n"),q=e("Zm9Q"),E=e("Kwbf"),r=e("OZM5");function Y(a,o){return a!=null?a:o}function D(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function x(v){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(v||[]).forEach(function(T){var j=T.key,F=T.children;Object(E.a)(j!=null,"Tree node must have a certain key: [".concat(S).concat(j,"]"));var g=String(j);Object(E.a)(!o.has(g)||j===null||j===void 0,"Same 'key' exist in the Tree: ".concat(g)),o.set(g,!0),x(F,"".concat(S).concat(g," > "))})}x(a)}function m(a){function o(x){var v=Object(q.a)(x);return v.map(function(S){if(!Object(r.i)(S))return Object(E.a)(!S,"Tree/TreeNode can only accept TreeNode as children."),null;var T=S.key,j=S.props,F=j.children,g=Object(Z.a)(j,["children"]),c=Object(C.a)({key:T},g),R=o(F);return R.length&&(c.children=R),c}).filter(function(S){return S})}return o(a)}function B(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(o===!0?[]:o),v=[];function S(T){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(F,g){var c=Object(r.h)(j?j.pos:"0",g),R=Y(F.key,c),l=Object(C.a)(Object(C.a)({},F),{},{parent:j,pos:c,children:null,data:F,isStart:[].concat(Object(A.a)(j?j.isStart:[]),[g===0]),isEnd:[].concat(Object(A.a)(j?j.isEnd:[]),[g===T.length-1])});return v.push(l),o===!0||x.has(R)?l.children=S(F.children||[],l):l.children=[],l})}return S(a),v}function f(a,o,x){var v;x?typeof x=="string"?v=function(j){return j[x]}:typeof x=="function"&&(v=function(j){return x(j)}):v=function(j,F){return Y(j.key,F)};function S(T,j,F){var g=T?T.children:a,c=T?Object(r.h)(F.pos,j):"0";if(T){var R=v(T,c),l={node:T,index:j,pos:c,key:R,parentPos:F.node?F.pos:null,level:F.level+1};o(l)}g&&g.forEach(function(n,t){S(n,t,{node:T,pos:c,level:F?F.level+1:-1})})}S(null)}function s(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=o.initWrapper,v=o.processEntity,S=o.onProcessFinished,T=arguments.length>2?arguments[2]:void 0,j={},F={},g={posEntities:j,keyEntities:F};return x&&(g=x(g)||g),f(a,function(c){var R=c.node,l=c.index,n=c.pos,t=c.key,u=c.parentPos,d=c.level,h={node:R,index:l,key:t,pos:n,level:d},I=Y(t,n);j[n]=h,F[I]=h,h.parent=j[u],h.parent&&(h.parent.children=h.parent.children||[],h.parent.children.push(h)),v&&v(h,g)},T),S&&S(g),g}function y(a,o){var x=o.expandedKeys,v=o.selectedKeys,S=o.loadedKeys,T=o.loadingKeys,j=o.checkedKeys,F=o.halfCheckedKeys,g=o.dragOverNodeKey,c=o.dropPosition,R=o.keyEntities,l=R[a],n={eventKey:a,expanded:x.indexOf(a)!==-1,selected:v.indexOf(a)!==-1,loaded:S.indexOf(a)!==-1,loading:T.indexOf(a)!==-1,checked:j.indexOf(a)!==-1,halfChecked:F.indexOf(a)!==-1,pos:String(l?l.pos:""),dragOver:g===a&&c===0,dragOverGapTop:g===a&&c===-1,dragOverGapBottom:g===a&&c===1};return n}function p(a){var o=a.data,x=a.expanded,v=a.selected,S=a.checked,T=a.loaded,j=a.loading,F=a.halfChecked,g=a.dragOver,c=a.dragOverGapTop,R=a.dragOverGapBottom,l=a.pos,n=a.active,t=Object(C.a)(Object(C.a)({},o),{},{expanded:x,selected:v,checked:S,loaded:T,loading:j,halfChecked:F,dragOver:g,dragOverGapTop:c,dragOverGapBottom:R,pos:l,active:n});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(E.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),a}}),t}},"8cjW":function(Se,M,e){},Aqpx:function(Se,M){Se.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAcCAYAAAD2izi6AAAAAXNSR0IArs4c6QAAEcdJREFUaEOtWglwHNWZ/t/RPac0I2kkS5ZsGSxjI8CADdgQDITdze5yhNtOwBSbhA273IQlHBWTi2Bgs2xlDQFsHAcWkoodSJniJmTZTTDYBrIFtsGSbIKtW6NrLs10v2Prf909GstyHGBVpeqZnu7Xr7/3/d9/PQIA0Hy1bnFK8CMAOF0D1AMBRTQIPGoNEgCkBpDUP+I5QkASABX8hucoBakVSLwPzwPxvhMKEvxxiAalCQjzu38/wXHxd+L94zUKQDIAqbznSBWMA2ZOgmpQQL154G84PxwTrwUNCs/jdxzHzFWCBOaPje9GQeG1+JvEo/TuNf8clHBBEhskxSMBKYJxFChXgCA2qEgYCgTBK5XgXQBI4IVmIto7mslUvKj/OXhx4V+jDDjehM2k8AXNdx8sBARfNhgXX74SxIpneQuCACNgBJTSIBgCHSwOzoeCMgsVzNEH2Sy8MqALBJ7hQigQhAHOEUEVygPSAw9B4yCl8EH2z0u8x1+IALiQAiUYCJeADCtQDgF5ZBj6SMOV+mkFsLwCnEnGTTIQGeOBUwEoAmUe5DPOMHPyu2GwucdjpbnOsKdiXJ/ZKmCQYTICR0AYAHwWI7vNglSwB8E1z0M2IXDTMNCwNwDYG09wAIWsQ3BxTAtB9BmI560pDETQ0PqQCJSBIAqUZcN493oyQupX6l5NoN6wzzezwCx9EzXgTWHkJNsmWWqobu49BGCVMhCYb5lFweIEVuAzEBAkapjkLQ6ChSD6rA6eFbA1sJoyAwPTAw8kjmNVLIIBjnvgEGSeBiXpgQwMTTFhEQXnr0ehZ9MmIknqSo3g4Eoq3+w8s0VW4YOmmHDAwkCzzH2+XppFQPB8tlRKAeqgr50eiyqZTLyJG/B9LTVs8+XE19BJ9mkQyDZjlj7DUC8DyZhOAwMTNgB5uik43j/FhKX0Fse2QArhMw8ZjKyUHvuqojC0dy0ZR/+BAJY1zWeFB+gkgIGj8ECu0MVA7/zVN06kbGZopuCbq8fIA2QAx0KAprDSzKXCzD2xrzRP1D9fBspsD875ZoZmiuMjSAwZh4D5TgRBm8pAi4EKdA/1Ej+jTuLR5qBcdxJIS0Cp92nYRwjRAYAGlOlMmHovaV48AM5/cc+sAz3zQS1rYOB1fc2rdCIIts9AHLMMaiAbZS8csBJ1FccLpKHChA1QFJRxONT31IfywmjCANIASD2Wofka/fOBRxM2GqhBBc4Dj2jCyDx0IkxDz8B/kjyCZwCsQwZOun0PrODFPeDKGnh0M5CNt0HjUBbE8gfU/uEsuKCJC0CM+RsAKcitD8Dx+SKIs1fp95BhFy8lyYYEMMNq0Pq9vTD67l49FmEUNAH3yZthyRnt0Lb4VvXUaF6XQBNZdGnRFZ7nLoODQHraaCRm8An40SeD0HXSrWKttwDcQU9r3scHqRzG+IuMTDT3+2FM4DyCcAbBI5bRSzNOACAewwqyPU+T7gC8A0x4mhDGxFIBWxIxUL/9PsyojQNzhNb9Y1qc+8NCd27CKlFqO3evIPWzU2B94yG9Z9dDsBgBXPyt3Pt4/5b74wuPnkUSwYPXvux2vP+JHn3oGntJ5WQqP2/aot677hG5RQJxKOHiyjNh5nknw1GEgAatgVCizjoWTh3P68zWDrcTz4csVnrkZf1fEZuqf/86/eYv/6B+852n9TZjYZohW12jnRhRoMOgHgvLTsSLFwVqJPIa40ATDxKQGMbEa2FP1xpSmhbAsrb58ZwfohgGog786jaoPWUehFf8a6l/YDRHn1+VrO/qE+4F92R6HFWVf/V74db5LRCdc/XEH3c+HD4+V1DyxJt6PtZAZOuMRCFuW2LdDdZx81tY/Mzbe3cNZfXEaQuqCWHcufFce97iNl7/tQd7O+JRwtf8U9ORT7ye67jp8dz/EghnuRXL/PCr1vzLz4TTtdae+ABAMkaqhNRyrKAc/M4IkZu3TmxbsSy2RGmQV6/Jrn3hndIgp3ae0nBGg108pBeWnimjHho2TmGgYpAe+jnpn7rglU4kCJoP8MIRG9QvboXk6UdD6Ma1YviJ3406yh23F89j9ss/aK3a1uGULr0/1/383TWN7bNYuPmqgY6Ox1LzxvNKnXjDnn5KqGBWbfrbl8Zr77o0PG/1xvTQ+pcHSjsebZ9p2AQAFiOUUiBFByUXIGxTIqTWqzcN7r//1/kdtlXXTVlsDGNjV45XSydXo7UTzj274Lx3OvPjp//LBwNo6qsub2W3X9bYNpZXE8tX9z63tSOfpQCa0mgft1PdjERzhoV+GFOOAwMngkcfODRj4nthScA5+3zo2LScIDYH/JXDGD+4PSB9Qy/7zB2QOKMdQi++Kyd+sjlbECLHtVZAKRcXLo2Frj8/EfvHNYMjV3+pJtI+m4ear9y7v2NdawsCuOjGjiEA7p52zIzsi99NHrN3QBZOvmXPfq6LVeeekuS2FckRSuTVX4o1L10Qjf/Dg52Z6jBj/3HtkbEXto3m79ywb2xPP+v51Z1tyWNaQ3GcuZCSO0JaSml63JxwIjch5e7uCRELM7JgVsTGa3qG3cJI1nXx89JbOl9nPLHbCtftZVCVURrcciYSpHKYifggVnpk1EBqg7QEdPc8SYankxsDYEUqNhnSeGGM/Moy4Fd9UUdPaiOhqQOMF7S86J6+ka0fZfSr97QmFh4R5o0rPxroWtc2I1PQctGNu4eAcOeN+9pqT55nJbIT2h0vSP37HdnSr9/MDq+5prkRTbKmilrREKX7h0oYCpHmuhB98Dd92bt+9qc8Y6H0ulvm2+2zwyGtFZFScak1w/tS1Szc1mRX47xKrlbvdubHNWC8prhSmlEK6u9X7fk95YldtpXay+34qJLMMQD6GmjMNUjlEFAGCuO/IA7UHArpDbA7CFsOYiB64SC+C0KZAxJz0OrCJW5o3XV2zX0bB51n3xwRlIXdx26YGW1t4Kzlqq5BkIK/cu8RVce1hqymlR8Odj1+VL0B8PrdQ0C5e9eK2WROo01c4dhfPSPa8MK2seL3fznafdmyWksrRS84NVq/cE44eveT+/IlVwGh1N3ekSu9uSvrUhoe4lbdHsrC49ItxLUq1JxzUrjhm+fUNX/xuHgKX2jj/wwV7tu0P9uTVmOEEkdpaeUmhA2aThBmDTAW7eKhuo8YT/VbwFAovPgSdY+AMKxDZ+KbsPHSGLYQkPUaurqeJplDObvpAulyAcEDVMsLl8jQuut4zU2P9RbXvtSvKFjitdVzI+2zw6x55c5xDGNeW90WQwAbr/hooOvxCgYCd//upMaJWfU2vLJ9WH+4dnb7vz3Tn5MK3L85scZCHZzVwCJ1VZxv78i5UmqglKhtHYWJ29bvH2As1l9Tlepevixas6ydzF0y32ppquWxQ71QcL72sne2TJQAARwnNNJj2zVdJFw7aEnmBHEgSlQ5FgyqMUEMiGy0QSadwwG4UnuBtJ9q+XmvSbWCvPKiJSq09jpae8vj6fwr29MggYvnVrVGZ9Qw1nzFznFCmHz9vrZo+2wr1LSyo79z3ZGNZQYy7rz0g7bkorlW/Hu/GO358ddr5lz/0/3DEyWlF82rAsaI+KuFscS8Zjvy8HN9haKrCGPM7ex18hteG+ulND6w85E5p7Q20FTJ1S4lQB2h1bfW9e5yhRt1XREXUkQxpmWMFu76yux4++xIvHbF+y8WHTZGWaSfsugAY1VDFovlUQO5zzgMxI05owlj7Cc8L2wyEQxjkECHM2GjgV5sNJlxTKkHXrIUrEevhbpb149mT1vAwpd8odrClf7vHaXiOXfvwahc/m71vDg6kaYrOvs6Hz+iqayBwN3Lzpjp/PzmxFHDGeUkYsQ66469++9cnqojQBRnVB47JxSdWWvZL20fKzlCIhCCUSq+vX7g40/SVveKs2aoxgRj6387mt7249RFqWoa/dmr6SEhlaW1oqiHqFGMUveCU2urZtXbkeRl77zluCzNrbodVij1MdXRLOFezl2Zyv0l9UCLHsaJBMWEQ9UDL1kKtgfgWPaVd9NwwpFV2pWWs60jL/72BBp/fnuhcN35TaQlxdk/P7Sv0LnOBxA1kHHH4rXp1+9NtS2ey2pe/WM2d+2aT8Yf+EZzkjEmGCHqhLnhWEvKsjdvGS65Ej08EwjinRsGPtmX5r2cJ/soo47rZmp3PjzznJYUj+7tL7kIHGNU4hgY/6AczEhaobBNePXFb+8Skg1TK/V2KNq0m0I4/1nrgewwYUy5MlxZEzRJvl+3u2Spth69ltTdsWEst+b5PkkJl4Ra7pKjuPXaPS21924cHX/gWTGAqZwW2UjX+taW0Zz0wxjmnjS/MbPpjuRRDQkSHstL+cjzA8Xnto5nP/gTpDUh8jvLaxvPXBirPvfuHdliUVKgVo4SKw+UFSkLj1Ca7GPczmsxEf3gp6mLYiESarr8nY9Bywhl1qgGniGECq21evWetuOXHRuvr77k7U5X0GHLSm2x7MYPmRXNYljyWeuB/JCBNGogpjB/ph542gLNN99F6tMZqd7/uCgJoZoxqhY0c6shydiKB9ID85psuqjNtikBuHBpOPHGB8Xcud/tGouEuOhcN39mMkasBzfnuo9ocOu+vCQZ4YwQ1LLRnBQjWSVciemrZpwRsDjRFqP6mS2Z/lVPje/idmKA0SiWj+TOh0Jfa0zSmkxBYppJkHVeiOHlJ9EQZYwSWn3pW7tdh40wO/VWyAfw89YDa5Kwd7pU7i+oB2p1x8WyatFcGSZaUKM3jEkhQX+433Vv3zCYWXl2LHrzl+tiBEB3j0j3vo3DY3/4YJgBs0rXntesAKzSoy8OlKQ7Wh8LydCZC5PQ3hpXs+tDJB6hxObAtFZMaU0sxlzUwKfeyPS8tN3tJVY8bdP4qGZWYdcaek11RCd+snmgzxUywhkt2hafoIQgCfSFpyVmtdZbVYmL397lCDoeAEh5NIcm/HnqgcyBzCGLCRVOZNp6oFKOEmLMls5oyDhowgUBJkwdVGOPByRn0QmM+7R0qFTFEJYDGY3mGa9JA2ZnznhC6nxMY4QP1C/xm+RWayKJloobGlFaIkBdIERQwguMxwcZqxkgPJQFrajjDDYIZ7BdqVIdJTQHYGWD2iNoTbUWUaVFNSF8xLJT26xI00egwjlsKn3eeuBB5azACx++HiiVkBNEuRlbqSISTZsyFtoO0YoQyyEkUjRlQl2ytHQYYVQQEssyFs+aoqubDyvEBFgJCBMIvNIO10owAuhNzXBoi9qvLSpNrYLF42luVaW1juSBCpDOeNJ1061KFqsIpUUKvAAUhMbKoLlZhJUWYQZsnFmpD3m4fh+jVuH/ox54UEH109QDTR9GlIgGVxN8RXQy2FIkRFHKXAALm1VagUtB4mkugNpFzq2SllpiKQ+FnlLqIAOVVhpzd9AuNY0FrCEzLFeZVTA1OyqZQ7hdoNTOE8od0Epr6XCp8nGlXA5AS5h94JUatAR0yFpTogQKdYmR+DC1IhlKGFZsTGX6s9YD0fxdFwRrgKGRNV52gk2lHk2g4XD1wEkPjQVYRM/vY/jVYgCjQUJhAGraul6PRWvqEiBBn6Tct/XbmgqIwrzUa1t6FAx6xIqCllJTYTphmiLDvHEwylVKMQLatC0J9VIz7JUYTZGYimFYIzRBgJHtflvzc9QDsSKNc+UhcE/PQLdpKh3U1pymHniIrpzJof0esCk8mNAn6ItgYB5Utv3ChPn94J6w8FsHXvPdb4WalqXfl5nalatsrAcF3yB/N0AxkKaf7Dfo/U0Af74rd5h64AGNdQ4iziBj2ppmV4ID72kNWNWYrAke3FQq70wIOmqm6Bp04IK+it/w9nvFBoTKNieyJGjIK78bWNFv9nYmBB02f3dDsDPBxKXezgWzOAZkZBzuOPCf63fyTBo2dXdDuYv3KeuBlX1hnIvLQUQVqCZsrKMdN1+hW1wG92oNX8AecdAfDprkFdXpgCXBroDA5Mp1xIrtHV6vxcuxy2nidDseyp05n4FB29Mw0G8rGPCCxfE7eiZfZ+U+iZei+aZqANSgzPYQFF+8ztfAT1sPrOzKVe5MwK0d/wdwYTpPDqCpwgAAAABJRU5ErkJggg=="},BU3w:function(Se,M,e){"use strict";e.d(M,"a",function(){return r});var A=e("MNnm"),C="rc-util-key";function Z(Y){if(Y.attachTo)return Y.attachTo;var D=document.querySelector("head");return D||document.body}function q(Y){var D,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(A.a)())return null;var B=document.createElement("style");if((D=m.csp)===null||D===void 0?void 0:D.nonce){var f;B.nonce=(f=m.csp)===null||f===void 0?void 0:f.nonce}B.innerHTML=Y;var s=Z(m),y=s.firstChild;return m.prepend&&s.prepend?s.prepend(B):m.prepend&&y?s.insertBefore(B,y):s.appendChild(B),B}var E=new Map;function r(Y,D){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Z(m);if(!E.has(B)){var f=q("",m),s=f.parentNode;E.set(B,s),s.removeChild(f)}var y=Array.from(E.get(B).children).find(function(v){return v.tagName==="STYLE"&&v[C]===D});if(y){var p,a;if(((p=m.csp)===null||p===void 0?void 0:p.nonce)&&y.nonce!==((a=m.csp)===null||a===void 0?void 0:a.nonce)){var o;y.nonce=(o=m.csp)===null||o===void 0?void 0:o.nonce}return y.innerHTML!==Y&&(y.innerHTML=Y),y}var x=q(Y,m);return x[C]=D,x}},E7E6:function(Se,M){Se.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},IBYe:function(Se,M,e){"use strict";function A(C){return null}M.a=A},ImLi:function(Se,M,e){Se.exports=e.p+"static/no-data.c803c40c.png"},LSTS:function(Se,M,e){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var A=function(){function s(y,p){for(var a=0;a=0)continue;if(!Object.prototype.hasOwnProperty.call(s,a))continue;p[a]=s[a]}return p}function D(s,y){if(!(s instanceof y))throw new TypeError("Cannot call a class as a function")}function m(s,y){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:s}function B(s,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);s.prototype=Object.create(y&&y.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(s,y):s.__proto__=y)}var f=function(s){B(y,s);function y(p){D(this,y);var a=m(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,p));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return A(y,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var a=this.getParentElement(this.scrollComponent);a.scrollTop=a.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var a=!1,o={get passive(){a=!0}};try{document.addEventListener("test",null,o),document.removeEventListener("test",null,o)}catch(x){}return a}},{key:"eventListenerOptions",value:function(){var a=this.props.useCapture;return this.isPassiveSupported()&&(a={useCapture:this.props.useCapture,passive:!0}),a}},{key:"setDefaultLoader",value:function(a){this.defaultLoader=a}},{key:"detachMousewheelListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.scrollComponent.parentNode),a.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.getParentElement(this.scrollComponent)),a.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(a){var o=this.props.getScrollParent&&this.props.getScrollParent();return o!=null?o:a&&a.parentNode}},{key:"filterProps",value:function(a){return a}},{key:"attachScrollListener",value:function(){var a=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!a)return;var o=window;this.props.useWindow===!1&&(o=a),o.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),o.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(a){a.deltaY===1&&!this.isPassiveSupported()&&a.preventDefault()}},{key:"scrollListener",value:function(){var a=this.scrollComponent,o=window,x=this.getParentElement(a),v=void 0;if(this.props.useWindow){var S=document.documentElement||document.body.parentNode||document.body,T=o.pageYOffset!==void 0?o.pageYOffset:S.scrollTop;this.props.isReverse?v=T:v=this.calculateOffset(a,T)}else this.props.isReverse?v=x.scrollTop:v=a.scrollHeight-x.scrollTop-x.clientHeight;v1&&arguments[1]!==void 0?arguments[1]:1,X=le.length,fe=0;fe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(c.a)(U).map(function(pe,de){if(!E.isValidElement(pe)||!pe.type)return null;var Ce=pe.type.isSelectOptGroup,Ee=pe.key,k=pe.props,w=k.children,J=Object(Y.a)(k,["children"]);return P||!Ce?R(pe):Object(g.a)(Object(g.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?de:Ee,"__"),label:Ee},J),{},{options:l(w)})}).filter(function(pe){return pe})}var n=e("2Qr1"),t=e("qNPg"),u=e("U8pU"),d=e("Kwbf"),h=e("WKfj");function I(U){var P=U.mode,pe=U.options,de=U.children,Ce=U.backfill,Ee=U.allowClear,k=U.placeholder,w=U.getInputElement,J=U.showSearch,G=U.onSearch,O=U.defaultOpen,ne=U.autoFocus,z=U.labelInValue,ce=U.value,ge=U.inputValue,te=U.optionLabelProp,ae=P==="multiple"||P==="tags",_e=J!==void 0?J:ae||P==="combobox",Te=pe||l(de);if(Object(d.a)(P!=="tags"||Te.every(function(ye){return!ye.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),P==="tags"||P==="combobox"){var We=Te.some(function(ye){return ye.options?ye.options.some(function(le){return typeof("value"in le?le.value:le.key)=="number"}):typeof("value"in ye?ye.value:ye.key)=="number"});Object(d.a)(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(d.a)(P!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(d.a)(P==="combobox"||!Ce,"`backfill` only works with `combobox` mode."),Object(d.a)(P==="combobox"||!w,"`getInputElement` only work with `combobox` mode."),Object(d.b)(P!=="combobox"||!w||!Ee||!k,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),G&&!_e&&P!=="combobox"&&P!=="tags"&&Object(d.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(d.b)(!O||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ce!=null){var Q=Object(h.d)(ce);Object(d.a)(!z||Q.every(function(ye){return Object(u.a)(ye)==="object"&&("key"in ye||"value"in ye)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(d.a)(!ae||Array.isArray(ce),"`value` should be array when `mode` is `multiple` or `tags`")}if(de){var ve=null;Object(c.a)(de).some(function(ye){if(!E.isValidElement(ye)||!ye.type)return!1;var le=ye.type;if(le.isSelectOption)return!1;if(le.isSelectOptGroup){var se=Object(c.a)(ye.props.children).every(function(Me){return!E.isValidElement(Me)||!ye.type||Me.type.isSelectOption?!0:(ve=Me.type,!1)});return!se}return ve=le,!0}),ve&&Object(d.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(d.a)(ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var b=I,_=Object(t.a)({prefixCls:"rc-select",components:{optionList:v},convertChildrenToData:l,flattenOptions:n.d,getLabeledValue:n.e,filterOptions:n.b,isValueDisabled:n.g,findValueOption:n.c,warningProps:b,fillOptionsWithMissingValue:n.a}),L=function(U){Object(Z.a)(pe,U);var P=Object(q.a)(pe);function pe(){var de;return Object(A.a)(this,pe),de=P.apply(this,arguments),de.selectRef=E.createRef(),de.focus=function(){de.selectRef.current.focus()},de.blur=function(){de.selectRef.current.blur()},de}return Object(C.a)(pe,[{key:"render",value:function(){return E.createElement(_,Object.assign({ref:this.selectRef},this.props))}}]),pe}(E.Component);L.Option=T,L.OptGroup=F;var re=L,Ae=M.c=re},NvD2:function(Se,M,e){"use strict";e.d(M,"a",function(){return r});var A=e("Kwbf");function C(Y,D){var m=new Set;return Y.forEach(function(B){D.has(B)||m.add(B)}),m}function Z(Y){var D=Y||{},m=D.disabled,B=D.disableCheckbox,f=D.checkable;return!!(m||B)||f===!1}function q(Y,D,m,B){for(var f=new Set(Y),s=new Set,y=0;y<=m;y+=1){var p=D.get(y)||new Set;p.forEach(function(v){var S=v.key,T=v.node,j=v.children,F=j===void 0?[]:j;f.has(S)&&!B(T)&&F.filter(function(g){return!B(g.node)}).forEach(function(g){f.add(g.key)})})}for(var a=new Set,o=m;o>=0;o-=1){var x=D.get(o)||new Set;x.forEach(function(v){var S=v.parent,T=v.node;if(B(T)||!v.parent||a.has(v.parent.key))return;if(B(v.parent.node)){a.add(S.key);return}var j=!0,F=!1;(S.children||[]).filter(function(g){return!B(g.node)}).forEach(function(g){var c=g.key,R=f.has(c);j&&!R&&(j=!1),!F&&(R||s.has(c))&&(F=!0)}),j&&f.add(S.key),F&&s.add(S.key),a.add(S.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(C(s,f))}}function E(Y,D,m,B,f){for(var s=new Set(Y),y=new Set(D),p=0;p<=B;p+=1){var a=m.get(p)||new Set;a.forEach(function(S){var T=S.key,j=S.node,F=S.children,g=F===void 0?[]:F;!s.has(T)&&!y.has(T)&&!f(j)&&g.filter(function(c){return!f(c.node)}).forEach(function(c){s.delete(c.key)})})}y=new Set;for(var o=new Set,x=B;x>=0;x-=1){var v=m.get(x)||new Set;v.forEach(function(S){var T=S.parent,j=S.node;if(f(j)||!S.parent||o.has(S.parent.key))return;if(f(S.parent.node)){o.add(T.key);return}var F=!0,g=!1;(T.children||[]).filter(function(c){return!f(c.node)}).forEach(function(c){var R=c.key,l=s.has(R);F&&!l&&(F=!1),!g&&(l||y.has(R))&&(g=!0)}),F||s.delete(T.key),g&&y.add(T.key),o.add(T.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(C(y,s))}}function r(Y,D,m,B){var f=[],s;B?s=B:s=Z;var y=new Set(Y.filter(function(x){var v=!!m[x];return v||f.push(x),v})),p=new Map,a=0;Object.keys(m).forEach(function(x){var v=m[x],S=v.level,T=p.get(S);T||(T=new Set,p.set(S,T)),T.add(v),a=Math.max(a,S)}),Object(A.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var o;return D===!0?o=q(y,p,a,s):o=E(y,D.halfCheckedKeys,p,a,s),o}},OZM5:function(Se,M,e){"use strict";e.d(M,"b",function(){return B}),e.d(M,"a",function(){return f}),e.d(M,"k",function(){return s}),e.d(M,"h",function(){return y}),e.d(M,"i",function(){return p}),e.d(M,"g",function(){return a}),e.d(M,"c",function(){return o}),e.d(M,"d",function(){return x}),e.d(M,"j",function(){return T}),e.d(M,"e",function(){return j}),e.d(M,"f",function(){return F});var A=e("KQm4"),C=e("U8pU"),Z=e("Ff2n"),q=e("q1tI"),E=e.n(q),r=e("Kwbf"),Y=e("WaYH"),D=.25,m=2;function B(g,c){var R=g.slice(),l=R.indexOf(c);return l>=0&&R.splice(l,1),R}function f(g,c){var R=g.slice();return R.indexOf(c)===-1&&R.push(c),R}function s(g){return g.split("-")}function y(g,c){return"".concat(g,"-").concat(c)}function p(g){return g&&g.type&&g.type.isTreeNode}function a(g,c){var R=[g],l=c[g];function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(u){var d=u.key,h=u.children;R.push(d),n(h)})}return n(l.children),R}function o(g,c){var R=g.clientY,l=c.selectHandle.getBoundingClientRect(),n=l.top,t=l.bottom,u=l.height,d=Math.max(u*D,m);return R<=n+d?-1:R>=t-d?1:0}function x(g,c){if(!g)return;var R=c.multiple;return R?g.slice():g.length?[g[0]]:g}var v=function(c){return c};function S(g,c){if(!g)return[];var R=c||{},l=R.processProps,n=l===void 0?v:l,t=Array.isArray(g)?g:[g];return t.map(function(u){var d=u.children,h=Object(Z.a)(u,["children"]),I=S(d,c);return E.a.createElement(Y.a,Object.assign({},n(h)),I)})}function T(g){if(!g)return null;var c;if(Array.isArray(g))c={checkedKeys:g,halfCheckedKeys:void 0};else if(Object(C.a)(g)==="object")c={checkedKeys:g.checked||void 0,halfCheckedKeys:g.halfChecked||void 0};else return Object(r.a)(!1,"`checkedKeys` is not an array or an object"),null;return c}function j(g,c){var R=new Set;function l(n){if(R.has(n))return;var t=c[n];if(!t)return;R.add(n);var u=t.parent,d=t.node;if(d.disabled)return;u&&l(u.key)}return(g||[]).forEach(function(n){l(n)}),Object(A.a)(R)}function F(g){var c={};return Object.keys(g).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(c[R]=g[R])}),c}},RotF:function(Se,M,e){Se.exports=e("LSTS")},"SA+Z":function(Se,M,e){var A=e("wTVA"),C=e("EbDI"),Z=e("ZhPi"),q=e("wkBT");function E(r){return A(r)||C(r)||Z(r)||q()}Se.exports=E,Se.exports.__esModule=!0,Se.exports.default=Se.exports},"UK/q":function(Se,M,e){"use strict";e.r(M),e.d(M,"NoData",function(){return ge});var A=e("2qtc"),C=e("kLXV"),Z=e("+L6B"),q=e("2/Rp"),E=e("9og8"),r=e("rAM+"),Y=e("tJVT"),D=e("k1fw"),m=e("WmNS"),B=e.n(m),f=e("q1tI"),s=e.n(f),y=e("Wq7V"),p=e("ImLi"),a=e.n(p),o=e("ErOA");function x(){return Object(o.c)("teach_groups.json")}function v(Q){return Object(o.f)("teach_groups.json",Q)}function S(Q,ve){return Object(o.g)("teach_groups/".concat(Q,".json"),ve)}function T(Q){return Object(o.f)("teach_group_members.json",Q)}function j(Q){return Object(o.b)("teach_group_members/".concat(Q,".json"))}function F(Q,ve){return Object(o.g)("teach_groups/".concat(Q,"/change_admin.json?member_id=").concat(ve))}function g(Q,ve){return Object(o.b)("teach_groups/".concat(Q,"/del_member.json?member_id=").concat(ve))}function c(Q){return Object(o.b)("teach_groups/".concat(Q,".json"))}function R(Q){return Object(o.c)("teach_groups/".concat(Q,"/show_permission.json"))}function l(Q){return Object(o.g)("teach_groups/".concat(Q==null?void 0:Q.id,"/update_permission.json"),Q)}var n=e("5NDa"),t=e("5rEg"),u=e("y8nQ"),d=e("Vl3Y"),h=function(Q){var ve=Q.callback,ye=Q.visible,le=Q.onCancel,se=Q.id,Me=Q.name;function Le(i){ve(i)}var He=d.a.useForm(),ze=Object(Y.a)(He,1),Je=ze[0];return Object(f.useEffect)(function(){Je.setFieldsValue({name:Me})},[Me]),s.a.createElement(C.a,{centered:!0,title:se?"\u6539\u540D":"\u65B0\u5EFA",visible:ye,onCancel:le,footer:null},s.a.createElement(d.a,{layout:"vertical",form:Je,initialValues:{name:Me},onFinish:Le},s.a.createElement(d.a.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},s.a.createElement(t.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),s.a.createElement(d.a.Item,null,s.a.createElement("div",{className:"flex-container flex-end"},s.a.createElement(q.a,{type:"ghost",onClick:le,style:{marginRight:20}}," \u53D6\u6D88 ")," ",s.a.createElement(q.a,{type:"primary",htmlType:"submit"}," \u786E\u5B9A ")))))},I=e("7Kak"),b=e("9yH6"),_=e("miYZ"),L=e("tsqr"),re=e("g9YV"),Ae=e("wCAj"),U=e("qVdP"),P=e("jsC+"),pe=e("lUTK"),de=e("BvKs"),Ce=e("sRBo"),Ee=e("kaz8"),k=e("8cjW"),w=e("3ouR"),J=e("Aqpx"),G=e.n(J),O=50,ne=function(Q){var ve,ye,le=Q.data,se=Q.isAdminOrTeacher,Me=Q.onDelGroup,Le=Q.onChangeGroupName,He=Q.onPlusMember,ze=Q.onDelMember,Je=Q.onExitGroup,i=Q.Transferteams,N=Object(f.useState)(0),K=Object(Y.a)(N,2),$=K[0],oe=K[1],V=Object(f.useState)(0),W=Object(Y.a)(V,2),H=W[0],X=W[1],fe=Object(f.useState)(),ee=Object(Y.a)(fe,2),ie=ee[0],xe=ee[1],be=Object(f.useState)(),Pe=Object(Y.a)(be,2),Ie=Pe[0],we=Pe[1],Be=Object(f.useState)(!1),je=Object(Y.a)(Be,2),qe=je[0],Ge=je[1],Xe=Object(f.useState)(),Ye=Object(Y.a)(Xe,2),Ze=Ye[0],Ue=Ye[1],Re=Object(f.useState)(),De=Object(Y.a)(Re,2),Ne=De[0],me=De[1],he=Object(f.useState)(!1),Ve=Object(Y.a)(he,2),nt=Ve[0],et=Ve[1];function Qe(ue){var Ke=parseInt(ue.key,10);C.a.confirm({title:"\u89E3\u6563\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:function(){Me(Ke)}})}function yt(ue){var Ke=parseInt(ue.key,10);C.a.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){Je(Ke)}})}function Ot(ue){var Ke=parseInt(ue,10);C.a.confirm({title:"\u9000\u51FA\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){Je(Ke)}})}function xt(ue,Ke){C.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){ze(ue,Ke)}})}var dt={display:"block",height:"30px",lineHeight:"30px"};function ct(ue){me(ue),Ue(ue==null?void 0:ue.id),et(!0)}var ht=[{title:"\u6210\u5458\u540D\u79F0",dataIndex:"name",width:150},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u9898",dataIndex:"item_bank",align:"center",width:150,render:function(Ke,Oe,lt){return s.a.createElement(Ee.a,{disabled:Oe==null?void 0:Oe.is_creator,defaultChecked:Ke,onChange:function(ot){l({id:Ze,member_id:Oe.id,clazz:"item_bank",enable:ot.target.checked})}})}},{title:"\u7F16\u8F91\u5171\u4EAB\u8BD5\u9898",dataIndex:"edit_item_bank",align:"center",width:150,render:function(Ke,Oe,lt){return s.a.createElement(Ee.a,{disabled:Oe==null?void 0:Oe.is_creator,defaultChecked:Ke,onChange:function(ot){l({id:Ze,member_id:Oe.id,clazz:"edit_item_bank",enable:ot.target.checked})}})}},{title:"\u4F7F\u7528\u5171\u4EAB\u8BD5\u5377",dataIndex:"exercise",align:"center",render:function(Ke,Oe,lt){return s.a.createElement(Ee.a,{disabled:Oe==null?void 0:Oe.is_creator,defaultChecked:Ke,onChange:function(ot){l({id:Ze,member_id:Oe.id,clazz:"exercise",enable:ot.target.checked})}})}}];function vt(ue){return Et.apply(this,arguments)}function Et(){return Et=Object(E.a)(B.a.mark(function ue(Ke){var Oe;return B.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,R(Ke==null?void 0:Ke.id);case 2:Oe=at.sent,Ue(Ke==null?void 0:Ke.id),we(Oe),Ge(!0);case 6:case"end":return at.stop()}},ue)})),Et.apply(this,arguments)}return s.a.createElement("ul",{className:"teaching-lists"},le.map(function(ue,Ke){return s.a.createElement("li",{key:ue.id,onClick:function(){return oe(Ke)}},s.a.createElement("div",{className:"item-group"},s.a.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:500}},ue.name,"\u7684\u6559\u7814\u56E2\u961F"),s.a.createElement("div",{className:"action-group"},ue.is_creat||se?s.a.createElement(P.a,{overlay:s.a.createElement(de.a,null,s.a.createElement(de.a.Item,{onClick:function(){Le(ue)}},"\u4FEE\u6539\u540D\u79F0"),s.a.createElement(de.a.Item,{disabled:ue.memers.length>=50,onClick:function(){He(ue)}},"\u6DFB\u52A0\u6210\u5458"),ue.is_creat&&s.a.createElement(de.a.Item,{onClick:function(){return vt(ue)}},"\u6743\u9650\u914D\u7F6E"),ue.is_creat&&s.a.createElement(de.a.Item,{onClick:function(){return ct(ue)}},"\u8F6C\u8BA9\u56E2\u961F"),s.a.createElement(de.a.Item,{key:ue.id+"",onClick:ue.is_creat?Qe:yt},ue.is_creat?"\u89E3\u6563":"\u9000\u51FA"))},s.a.createElement("a",{id:ue.id+""},s.a.createElement("i",{onClick:function(lt){lt.stopPropagation(),lt.preventDefault(),Ge(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:14,cursor:"pointer",marginRight:5},className:"iconfont icon-shezhi7"}),"\u8BBE\u7F6E")):s.a.createElement("span",{key:ue.id+"",className:"c-grey-c",onClick:function(){return Ot(ue.id)}},"\u9000\u51FA"))),s.a.createElement("ul",{className:"info"},"\u56E2\u961F\u6210\u5458\uFF1A ",ue.memers.map(function(Oe){var lt;return s.a.createElement("li",{key:Oe.id||Oe.name,onClick:function(){X(Oe.id)},className:"directionItemWrap"},s.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontWeight:Oe.is_creater?500:400}},((lt=Oe.name)===null||lt===void 0?void 0:lt.length)>6?Oe.name.substr(0,6)+"....":Oe.name," ",s.a.createElement("img",{src:G.a,style:{marginLeft:5,display:!(Oe!=null&&Oe.is_creater)&&"none",height:14,width:40}})),ue.is_creat?s.a.createElement("div",{className:"groupActionWrap",style:{display:!(Oe!=null&&Oe.id)&&"none"}},s.a.createElement("a",{className:"btn-del",onClick:function(ot){ot.preventDefault(),ot.stopPropagation(),xt(ue.id,Oe.id)}},s.a.createElement(w.a,null))):null)})))}),s.a.createElement(C.a,{title:"\u6743\u9650\u914D\u7F6E",destroyOnClose:!0,footer:null,visible:qe,onCancel:function(){return Ge(!1)},width:650},s.a.createElement(Ae.a,{dataSource:Ie==null?void 0:Ie.members,columns:ht,pagination:!1,scroll:{y:240}}),s.a.createElement("p",{style:{color:"#e13c2a"}},"*\u9009\u4E2D\u4EE3\u8868\u8BE5\u6210\u5458\u53EF\u4EE5\u4F7F\u7528\u56E2\u961F\u5185\u6240\u6709\u6210\u5458\u5171\u4EAB\u961F\u8D44\u6E90\uFF0C\u5426\u5219\u4E0D\u53EF\u4EE5")),s.a.createElement(C.a,{title:"\u8F6C\u8BA9\u56E2\u961F",onOk:function(){if(!ie){L.b.info("\u521B\u5EFA\u4EBA\u4E0D\u80FD\u4E3A\u7A7A");return}i(Ze,ie),et(!1),ie=""},visible:nt,onCancel:function(){et(!1),ie=""}},s.a.createElement("p",{style:{textAlign:"center"}},"\u9009\u4E2D\u7684\u6210\u5458\u5C06\u4F1A\u4EE5\u4FE1\u7684\u521B\u5EFA\u4EBA\u8EAB\u4EFD\u63A5\u7BA1\u56E2\u4F53 ",s.a.createElement("br",null)," \u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u521B\u5EFA\u4EBA\u7684\u8EAB\u4EFD\u548C\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u56E2\u961F\u4E2D\u7684\u4E00\u5458"),s.a.createElement("div",null,s.a.createElement(b.a.Group,{defaultValue:[],onChange:function(Ke){ie=Ke.target.value,xe(Ke.target.value)}},Ne==null||((ve=Ne.memers)===null||ve===void 0||((ye=ve.filter(function(ue){return ue.is_teacher}))===null||ye===void 0))?void 0:ye.map(function(ue,Ke){return s.a.createElement(b.a,{style:dt,value:ue==null?void 0:ue.id},ue==null?void 0:ue.name)})))))},z=e("9kvl"),ce=e("ju9d");function ge(Q){var ve=Q.children;return s.a.createElement("div",{className:"no-data"},s.a.createElement("img",{src:a.a,alt:"no-data",width:300}),ve)}var te={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},ae;(function(Q){Q[Q.INITDATA=0]="INITDATA",Q[Q.SHOWLOADING=1]="SHOWLOADING",Q[Q.SHOWFORMPANEL=2]="SHOWFORMPANEL",Q[Q.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",Q[Q.SELECTGROUP=4]="SELECTGROUP",Q[Q.SETINDEX=5]="SETINDEX"})(ae||(ae={}));function _e(Q,ve){switch(ve.type){case ae.INITDATA:return Object(D.a)(Object(D.a)({},Q),ve.payload);case ae.SHOWLOADING:return Object(D.a)(Object(D.a)({},Q),{},{loading:ve.payload});case ae.SETINDEX:return Object(D.a)(Object(D.a)({},Q),{},{index:ve.payload});case ae.SHOWFORMPANEL:return Object(D.a)(Object(D.a)({},Q),ve.payload);case ae.SHOWMEMBERPANEL:return Object(D.a)(Object(D.a)({},Q),ve.payload);case ae.SELECTGROUP:return Object(D.a)(Object(D.a)({},Q),{},{selectedGroup:ve.payload,showFormPanel:!0});default:throw new Error}}function Te(Q){var ve,ye=Q.user,le=Object(f.useReducer)(_e,te),se=Object(Y.a)(le,2),Me=se[0],Le=se[1],He=Me.data,ze=Me.index,Je=Me.loading,i=Me.showFormPanel,N=Me.selectedGroup,K=Me.showMemberPanel,$=(ve=ye.userInfo)===null||ve===void 0?void 0:ve.role,oe=Object(f.useMemo)(function(){var Re=[],De=[];if(!He)return;var Ne=Object(r.a)(He),me;try{for(Ne.s();!(me=Ne.n()).done;){var he=me.value;he.is_creat?Re.push(he):De.push(he)}}catch(Ve){Ne.e(Ve)}finally{Ne.f()}return[Re,De]},[He]);Object(f.useEffect)(function(){$===15&&Le({type:ae.SETINDEX,payload:1})},[$]);function V(){return W.apply(this,arguments)}function W(){return W=Object(E.a)(B.a.mark(function Re(){var De;return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,x();case 2:if(De=me.sent,!((De==null?void 0:De.status)===401)){me.next=5;break}return me.abrupt("return");case 5:Le({type:ae.INITDATA,payload:{loading:!1,showFormPanel:!1,data:De.groups}});case 6:case"end":return me.stop()}},Re)})),W.apply(this,arguments)}Object(f.useEffect)(function(){V()},[]);function H(Re){return X.apply(this,arguments)}function X(){return X=Object(E.a)(B.a.mark(function Re(De){return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(!N.id){me.next=5;break}return me.next=3,S(N.id,De);case 3:me.next=7;break;case 5:return me.next=7,v(De);case 7:V();case 8:case"end":return me.stop()}},Re)})),X.apply(this,arguments)}function fe(){Le({type:ae.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ee(Re){Le({type:ae.SELECTGROUP,payload:Re})}function ie(){Le({type:ae.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function xe(){Le({type:ae.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function be(Re){Le({type:ae.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Re}})}function Pe(Re,De){return Ie.apply(this,arguments)}function Ie(){return Ie=Object(E.a)(B.a.mark(function Re(De,Ne){return B.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,g(De,Ne);case 2:V();case 3:case"end":return he.stop()}},Re)})),Ie.apply(this,arguments)}function we(Re){return Be.apply(this,arguments)}function Be(){return Be=Object(E.a)(B.a.mark(function Re(De){return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,c(De);case 2:V();case 3:case"end":return me.stop()}},Re)})),Be.apply(this,arguments)}function je(Re){return qe.apply(this,arguments)}function qe(){return qe=Object(E.a)(B.a.mark(function Re(De){return B.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,j(De);case 2:V();case 3:case"end":return me.stop()}},Re)})),qe.apply(this,arguments)}function Ge(Re,De){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(E.a)(B.a.mark(function Re(De,Ne){return B.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,F(De,Ne);case 2:V();case 3:case"end":return he.stop()}},Re)})),Xe.apply(this,arguments)}function Ye(Re){Le({type:ae.SETINDEX,payload:parseInt(Re.target.id,10)})}function Ze(Re,De){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(E.a)(B.a.mark(function Re(De,Ne){return B.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return xe(),he.next=3,T({user_ids:De,group_id:Ne});case 3:V();case 4:case"end":return he.stop()}},Re)})),Ue.apply(this,arguments)}return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"teaching-circling-container"},s.a.createElement("div",{className:"teaching-circling-body",style:{width:"1200px"}},$===15?null:s.a.createElement("ul",{className:"navs"},s.a.createElement("div",{style:{display:"flex"}},s.a.createElement("li",{className:ze===0?"active":""},s.a.createElement("a",{id:"0",onClick:Ye},"\u6211\u521B\u5EFA\u7684")),s.a.createElement("li",{className:ze===1?"active":""},s.a.createElement("a",{id:"1",onClick:Ye},"\u6211\u52A0\u5165\u7684"))),s.a.createElement(q.a,{type:"primary",disabled:He.length>=50,title:He.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:fe},"\u65B0\u5EFA")),s.a.createElement("div",{className:oe[ze].length===0?"nodata-content":"main-content"},oe[ze].length===0?s.a.createElement(ge,null,$<=12?s.a.createElement(s.a.Fragment,null," ",s.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",s.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):s.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):s.a.createElement(ne,{onExitGroup:je,Transferteams:Ge,onPlusMember:be,onDelMember:Pe,onDelGroup:we,isAdminOrTeacher:$<=12,onChangeGroupName:ee,data:oe[ze]}))),s.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," * \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732 ")),s.a.createElement(h,{callback:H,visible:i,onCancel:ie,id:N.id,name:N.name}),s.a.createElement(C.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:K,onCancel:xe,footer:null,width:1100,bodyStyle:{minHeight:200}},s.a.createElement(ce.a,{container_id:N.id,container_type:4,onSelect:Ze,onCancel:xe})))}var We=M.default=Object(z.a)(function(Q){var ve=Q.user;return{user:ve}})(Te)},WaYH:function(Se,M,e){"use strict";var A=e("rePB"),C=e("Ff2n"),Z=e("VTBJ"),q=e("1OyB"),E=e("vuIU"),r=e("JX7q"),Y=e("Ji7U"),D=e("LK+K"),m=e("q1tI"),B=e("TSYQ"),f=e.n(B),s=e("sboe"),y=e("OZM5"),p=function(c){var R=c.prefixCls,l=c.level,n=c.isStart,t=c.isEnd;if(!l)return null;for(var u="".concat(R,"-indent-unit"),d=[],h=0;h1&&arguments[1]!==void 0?arguments[1]:!1,J=F.getAttribute("id")||F.getAttribute("data-reactid")||F.getAttribute("name");if(w&&b[J])return b[J];var G=window.getComputedStyle(F),O=G.getPropertyValue("box-sizing")||G.getPropertyValue("-moz-box-sizing")||G.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(G.getPropertyValue("padding-bottom"))+parseFloat(G.getPropertyValue("padding-top")),z=parseFloat(G.getPropertyValue("border-bottom-width"))+parseFloat(G.getPropertyValue("border-top-width")),ce=I.map(function(te){return"".concat(te,":").concat(G.getPropertyValue(te))}).join(";"),ge={sizingStyle:ce,paddingSize:ne,borderSize:z,boxSizing:O};return w&&J&&(b[J]=ge),ge}function re(F){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),F.getAttribute("wrap")?_.setAttribute("wrap",F.getAttribute("wrap")):_.removeAttribute("wrap");var O=L(F,w),ne=O.paddingSize,z=O.borderSize,ce=O.boxSizing,ge=O.sizingStyle;_.setAttribute("style","".concat(ge,";").concat(p)),_.value=F.value||F.placeholder||"";var te=Number.MIN_SAFE_INTEGER,ae=Number.MAX_SAFE_INTEGER,_e=_.scrollHeight,Me;if(ce==="border-box"?_e+=z:ce==="content-box"&&(_e-=ne),J!==null||G!==null){_.value=" ";var We=_.scrollHeight-ne;J!==null&&(te=We*J,ce==="border-box"&&(te=te+ne+z),_e=Math.max(te,_e)),G!==null&&(ae=We*G,ce==="border-box"&&(ae=ae+ne+z),Me=_e>ae?"":"hidden",_e=Math.min(ae,_e))}return{height:_e,minHeight:te,maxHeight:ae,overflowY:Me,resize:"none"}}var Ae=e("Gytx"),U=e.n(Ae),P;(function(F){F[F.NONE=0]="NONE",F[F.RESIZING=1]="RESIZING",F[F.RESIZED=2]="RESIZED"})(P||(P={}));var he=function(F){Object(q.a)(J,F);var w=Object(E.a)(J);function J(G){var O;return Object(C.a)(this,J),O=w.call(this,G),O.nextFrameActionId=void 0,O.resizeFrameId=void 0,O.textArea=void 0,O.saveTextArea=function(ne){O.textArea=ne},O.handleResize=function(ne){var z=O.state.resizeStatus,ce=O.props,ge=ce.autoSize,te=ce.onResize;if(z!==P.NONE)return;typeof te=="function"&&te(ne),ge&&O.resizeOnNextFrame()},O.resizeOnNextFrame=function(){cancelAnimationFrame(O.nextFrameActionId),O.nextFrameActionId=requestAnimationFrame(O.resizeTextarea)},O.resizeTextarea=function(){var ne=O.props.autoSize;if(!ne||!O.textArea)return;var z=ne.minRows,ce=ne.maxRows,ge=re(O.textArea,!1,z,ce);O.setState({textareaStyles:ge,resizeStatus:P.RESIZING},function(){cancelAnimationFrame(O.resizeFrameId),O.resizeFrameId=requestAnimationFrame(function(){O.setState({resizeStatus:P.RESIZED},function(){O.resizeFrameId=requestAnimationFrame(function(){O.setState({resizeStatus:P.NONE}),O.fixFirefoxAutoScroll()})})})})},O.renderTextArea=function(){var ne=O.props,z=ne.prefixCls,ce=z===void 0?"rc-textarea":z,ge=ne.autoSize,te=ne.onResize,ae=ne.className,_e=ne.disabled,Me=O.state,We=Me.textareaStyles,Q=Me.resizeStatus,ve=Object(t.a)(O.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ye=d()(ce,ae,Object(S.a)({},"".concat(ce,"-disabled"),_e));"value"in ve&&(ve.value=ve.value||"");var le=Object(Y.a)(Object(Y.a)(Object(Y.a)({},O.props.style),We),Q===P.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return r.createElement(n,{onResize:O.handleResize,disabled:!(ge||te)},r.createElement("textarea",Object(A.a)({},ve,{className:ye,style:le,ref:O.saveTextArea})))},O.state={textareaStyles:{},resizeStatus:P.NONE},O}return Object(Z.a)(J,[{key:"componentDidUpdate",value:function(O){(O.value!==this.props.value||!U()(O.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var O=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange(O,ne)}}catch(z){}}},{key:"render",value:function(){return this.renderTextArea()}}]),J}(r.Component),de=he,Ce=function(F){Object(q.a)(J,F);var w=Object(E.a)(J);function J(G){var O;Object(C.a)(this,J),O=w.call(this,G),O.resizableTextArea=void 0,O.focus=function(){O.resizableTextArea.textArea.focus()},O.saveTextArea=function(z){O.resizableTextArea=z},O.handleChange=function(z){var ce=O.props.onChange;O.setValue(z.target.value,function(){O.resizableTextArea.resizeTextarea()}),ce&&ce(z)},O.handleKeyDown=function(z){var ce=O.props,ge=ce.onPressEnter,te=ce.onKeyDown;z.keyCode===13&&ge&&ge(z),te&&te(z)};var ne=typeof G.value=="undefined"||G.value===null?G.defaultValue:G.value;return O.state={value:ne},O}return Object(Z.a)(J,[{key:"setValue",value:function(O,ne){"value"in this.props||this.setState({value:O},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return r.createElement(de,Object(A.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(O){return"value"in O?{value:O.value}:null}}]),J}(r.Component),Ee=N.default=Ce},ZpRC:function(De,N,e){"use strict";function A(f){return typeof f=="object"&&f!=null&&f.nodeType===1}function C(f,s){return(!s||f!=="hidden")&&f!=="visible"&&f!=="clip"}function Z(f,s){if(f.clientHeights||o>f&&x=s&&v>=y?o-f-h:x>s&&vy?x-s+a:0}var E=function(f,s){var y=window,h=s.scrollMode,a=s.block,o=s.inline,x=s.boundary,v=s.skipOverflowHiddenElements,D=typeof x=="function"?x:function(We){return We!==x};if(!A(f))throw new TypeError("Invalid target");for(var M=document.scrollingElement||document.documentElement,j=[],k=f;A(k)&&D(k);){if((k=k.parentElement)===M){j.push(k);break}k!=null&&k===document.body&&Z(k)&&!Z(document.documentElement)||k!=null&&Z(k,v)&&j.push(k)}for(var g=y.visualViewport?y.visualViewport.width:innerWidth,c=y.visualViewport?y.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,l=window.scrollY||pageYOffset,n=f.getBoundingClientRect(),t=n.height,u=n.width,d=n.top,p=n.right,I=n.bottom,b=n.left,_=a==="start"||a==="nearest"?d:a==="end"?I:d+t/2,L=o==="center"?b+u/2:o==="end"?p:b,re=[],Ae=0;Ae=0&&b>=0&&I<=c&&p<=g&&d>=Ce&&I<=F&&b>=w&&p<=Ee)return re;var J=getComputedStyle(U),G=parseInt(J.borderLeftWidth,10),O=parseInt(J.borderTopWidth,10),ne=parseInt(J.borderRightWidth,10),z=parseInt(J.borderBottomWidth,10),ce=0,ge=0,te="offsetWidth"in U?U.offsetWidth-U.clientWidth-G-ne:0,ae="offsetHeight"in U?U.offsetHeight-U.clientHeight-O-z:0;if(M===U)ce=a==="start"?_:a==="end"?_-c:a==="nearest"?q(l,l+c,c,O,z,l+_,l+_+t,t):_-c/2,ge=o==="start"?L:o==="center"?L-g/2:o==="end"?L-g:q(R,R+g,g,G,ne,R+L,R+L+u,u),ce=Math.max(0,ce+l),ge=Math.max(0,ge+R);else{ce=a==="start"?_-Ce-O:a==="end"?_-F+z+ae:a==="nearest"?q(Ce,F,he,O,z+ae,_,_+t,t):_-(Ce+he/2)+ae/2,ge=o==="start"?L-w-G:o==="center"?L-(w+de/2)+te/2:o==="end"?L-Ee+ne+te:q(w,Ee,de,G,ne+te,L,L+u,u);var _e=U.scrollLeft,Me=U.scrollTop;_+=Me-(ce=Math.max(0,Math.min(Me+ce,U.scrollHeight-he+ae))),L+=_e-(ge=Math.max(0,Math.min(_e+ge,U.scrollWidth-de+te)))}re.push({el:U,top:ce,left:ge})}return re};function r(f){return f===Object(f)&&Object.keys(f).length!==0}function Y(f,s){s===void 0&&(s="auto");var y="scrollBehavior"in document.body.style;f.forEach(function(h){var a=h.el,o=h.top,x=h.left;a.scroll&&y?a.scroll({top:o,left:x,behavior:s}):(a.scrollTop=o,a.scrollLeft=x)})}function S(f){return f===!1?{block:"end",inline:"nearest"}:r(f)?f:{block:"start",inline:"nearest"}}function m(f,s){var y=!f.ownerDocument.documentElement.contains(f);if(r(s)&&typeof s.behavior=="function")return s.behavior(y?[]:E(f,s));if(y)return;var h=S(s);return Y(E(f,h),h.behavior)}var B=N.a=m},bT9E:function(De,N,e){"use strict";e.d(N,"a",function(){return C});var A=e("VTBJ");function C(Z,q){var E=Object(A.a)({},Z);return Array.isArray(q)&&q.forEach(function(r){delete E[r]}),E}},biw7:function(De,N,e){"use strict";var A=e("q1tI"),C=e.n(A),Z=A.createContext(null);N.a=Z},fyJ8:function(De,N,e){"use strict";var A=e("rePB"),C=e("VTBJ"),Z=e("Ff2n"),q=e("U8pU"),E=e("q1tI"),r=e.n(E),Y=e("TSYQ"),S=e.n(Y),m=e("c+Xe"),B=e("sR1s");function f(o){return o&&Object(q.a)(o)==="object"&&!Array.isArray(o)&&!E.isValidElement(o)}function s(o){return typeof o=="string"?!0:Object(m.c)(o)}function y(o,x){var v,D=o.prefixCls,M=o.className,j=o.record,k=o.index,g=o.dataIndex,c=o.render,R=o.children,l=o.component,n=l===void 0?"td":l,t=o.colSpan,u=o.rowSpan,d=o.fixLeft,p=o.fixRight,I=o.firstFixLeft,b=o.lastFixLeft,_=o.firstFixRight,L=o.lastFixRight,re=o.appendNode,Ae=o.additionalProps,U=Ae===void 0?{}:Ae,P=o.ellipsis,he=o.align,de=o.rowType,Ce=o.isSticky,Ee="".concat(D,"-cell"),F,w;if(R)w=R;else{var J=Object(B.b)(j,g);if(w=J,c){var G=c(J,j,k);f(G)?(w=G.children,F=G.props):w=G}}Object(q.a)(w)==="object"&&!Array.isArray(w)&&!E.isValidElement(w)&&(w=null),P&&(b||_)&&(w=E.createElement("span",{className:"".concat(Ee,"-content")},w));var O=F||{},ne=O.colSpan,z=O.rowSpan,ce=O.style,ge=O.className,te=Object(Z.a)(O,["colSpan","rowSpan","style","className"]),ae=ne!==void 0?ne:t,_e=z!==void 0?z:u;if(ae===0||_e===0)return null;var Me={},We=typeof d=="number",Q=typeof p=="number";We&&(Me.position="sticky",Me.left=d),Q&&(Me.position="sticky",Me.right=p);var ve={};he&&(ve.textAlign=he);var ye,le=P===!0?{showTitle:!0}:P;le&&(le.showTitle||de==="header")&&(typeof w=="string"||typeof w=="number"?ye=w.toString():E.isValidElement(w)&&typeof w.props.children=="string"&&(ye=w.props.children));var se=Object(C.a)(Object(C.a)(Object(C.a)({title:ye},te),U),{},{colSpan:ae&&ae!==1?ae:null,rowSpan:_e&&_e!==1?_e:null,className:S()(Ee,M,(v={},Object(A.a)(v,"".concat(Ee,"-fix-left"),We),Object(A.a)(v,"".concat(Ee,"-fix-left-first"),I),Object(A.a)(v,"".concat(Ee,"-fix-left-last"),b),Object(A.a)(v,"".concat(Ee,"-fix-right"),Q),Object(A.a)(v,"".concat(Ee,"-fix-right-first"),_),Object(A.a)(v,"".concat(Ee,"-fix-right-last"),L),Object(A.a)(v,"".concat(Ee,"-ellipsis"),P),Object(A.a)(v,"".concat(Ee,"-with-append"),re),Object(A.a)(v,"".concat(Ee,"-fix-sticky"),(We||Q)&&Ce),v),U.className,ge),style:Object(C.a)(Object(C.a)(Object(C.a)(Object(C.a)({},U.style),ve),Me),ce),ref:s(n)?x:null});return E.createElement(n,Object.assign({},se),re,w)}var h=E.forwardRef(y);h.displayName="Cell";var a=E.memo(h,function(o,x){return x.shouldCellUpdate?!x.shouldCellUpdate(x.record,o.record):!1});N.a=a},hW8S:function(De,N,e){"use strict";e.d(N,"a",function(){return q}),e.d(N,"c",function(){return E}),e.d(N,"b",function(){return r});var A=e("VTBJ"),C=e("Ff2n"),Z=e("Kwbf"),q="RC_TABLE_INTERNAL_COL_DEFINE";function E(Y){var S=Y.expandable,m=Object(C.a)(Y,["expandable"]);return"expandable"in Y?Object(A.a)(Object(A.a)({},m),S):m}function r(Y){return Object.keys(Y).reduce(function(S,m){return(m.substr(0,5)==="data-"||m.substr(0,5)==="aria-")&&(S[m]=Y[m]),S},{})}},ju9d:function(De,N,e){"use strict";var A=e("g9YV"),C=e("wCAj"),Z=e("miYZ"),q=e("tsqr"),E=e("5Dmo"),r=e("3S7+"),Y=e("sRBo"),S=e("kaz8"),m=e("oBTY"),B=e("9og8"),f=e("tJVT"),s=e("k1fw"),y=e("+L6B"),h=e("2/Rp"),a=e("O3gP"),o=e("lrIw"),x=e("y8nQ"),v=e("Vl3Y"),D=e("5NDa"),M=e("5rEg"),j=e("WmNS"),k=e.n(j),g=e("q1tI"),c=e.n(g),R=e("55Ip"),l=e("wd/R"),n=e.n(l),t=e("RotF"),u=e.n(t),d=e("E7E6"),p=e.n(d),I=e("oUNq"),b=[];function _(U){var P=U.onSearch,he=U.schools;return c.a.createElement(v.a,{layout:"inline",onFinish:P,initialValues:{keyword:"",school_name:""},className:"search-form"},c.a.createElement(v.a.Item,{label:"\u59D3\u540D",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},c.a.createElement(M.a,{allowClear:!0,style:{width:370},size:"large"})),c.a.createElement(v.a.Item,{label:"\u5355\u4F4D",name:"school_name"},c.a.createElement(o.a,{options:he,style:{width:400},size:"large",showSearch:!0,filterOption:function(Ce,Ee){return Ee.value.toUpperCase().indexOf(Ce.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),c.a.createElement(v.a.Item,null,c.a.createElement(h.a,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))}var L;(function(U){U[U.INITDATA=0]="INITDATA",U[U.INITSCHOOLS=1]="INITSCHOOLS",U[U.SHOWLOADING=2]="SHOWLOADING",U[U.SELECTEDIDS=3]="SELECTEDIDS",U[U.SETQUERY=4]="SETQUERY",U[U.SETPAGE=5]="SETPAGE"})(L||(L={}));function re(U,P){switch(P.type){case L.INITDATA:return Object(s.a)(Object(s.a)({},U),P.payload);case L.SETQUERY:return Object(s.a)(Object(s.a)({},U),P.payload);case L.SETPAGE:return Object(s.a)(Object(s.a)({},U),{},{page:P.payload,reload:!1});case L.SHOWLOADING:return Object(s.a)(Object(s.a)({},U),{},{loading:P.payload});case L.INITSCHOOLS:return Object(s.a)(Object(s.a)({},U),{},{schools:P.payload});case L.SELECTEDIDS:return Object(s.a)(Object(s.a)({},U),{},{selectedIds:P.payload});default:throw new Error}}var Ae={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};N.a=function(U){var P=U.onSelect,he=U.onCancel,de=U.container_id,Ce=U.container_type,Ee=Object(g.useReducer)(re,Ae),F=Object(f.a)(Ee,2),w=F[0],J=F[1],G=w.data,O=w.schools,ne=w.loading,z=w.selectedIds,ce=w.page,ge=w.count,te=w.query,ae=w.reload;Object(g.useEffect)(function(){function le(){return se.apply(this,arguments)}function se(){return se=Object(B.a)(k.a.mark(function Ne(){var Le,He,ze;return k.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(I.wb)(Object(s.a)(Object(s.a)({},te),{},{page:ce,container_type:Ce,container_id:de}));case 2:Le=i.sent,He=Le.users,ze=Le.user_count,J({type:L.INITDATA,payload:{data:ae?He:[].concat(Object(m.a)(G),Object(m.a)(He)),count:ze}});case 6:case"end":return i.stop()}},Ne)})),se.apply(this,arguments)}te&&le()},[ce,te,ae,de,Ce]),Object(g.useEffect)(function(){function le(){return se.apply(this,arguments)}function se(){return se=Object(B.a)(k.a.mark(function Ne(){var Le,He;return k.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(I.kb)({});case 2:Le=Je.sent,He=Le.school_names,J({type:L.INITSCHOOLS,payload:He.map(function(i){return{value:i}})});case 5:case"end":return Je.stop()}},Ne)})),se.apply(this,arguments)}le()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(se,Ne){return c.a.createElement(S.a,{value:Ne.numid,checked:z.includes(Ne.numid),disabled:!!se})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(se,Ne){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement(R.a,{className:"bold c-black",to:"/users/".concat(Ne.login),target:"_blank"},se||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(se){return se?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,n()(se).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(se){if(se===1)return c.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];function Me(le){J({type:L.SETQUERY,payload:{page:1,reload:!0,query:le}})}function We(le){J({type:L.SETPAGE,payload:le})}function Q(le){var se=z.indexOf(le);se>=0?z.splice(se,1):z.push(le),J({type:L.SELECTEDIDS,payload:Object(m.a)(z)})}function ve(){z.length===0?q.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(P(z,de),J({type:L.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var ye=ge>ce*10;return c.a.createElement("div",{className:"select-user-container"},c.a.createElement(_,{onSearch:Me,schools:O}),te?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"flexd-table-header mt20"},c.a.createElement(C.a,{pagination:!1,dataSource:b,columns:_e})),c.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},c.a.createElement(u.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:We,hasMore:ye,useWindow:!1},c.a.createElement(C.a,{loading:ne,showHeader:!1,pagination:!1,dataSource:G,columns:_e,onRow:function(se){return{onClick:function(Le){se.added!==1&&Q(se.numid)}}}}))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(h.a,{type:"ghost",style:{marginRight:10},onClick:he},"\u53D6\u6D88"),c.a.createElement(h.a,{type:"primary",onClick:ve},"\u786E\u5B9A"))):c.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},c.a.createElement("img",{src:p.a,width:"100",alt:""}),c.a.createElement("br",null),c.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},n6Qo:function(De,N,e){"use strict";e.d(N,"a",function(){return S});var A=e("q1tI"),C=e("biw7"),Z=e("fyJ8");function q(m){var B=m.className,f=m.index,s=m.children,y=m.colSpan,h=m.rowSpan,a=A.useContext(C.a),o=a.prefixCls,x=a.fixedInfoList,v=x[f];return A.createElement(Z.a,Object.assign({className:B,index:f,component:"td",prefixCls:o,record:null,dataIndex:null,render:function(){return{children:s,props:{colSpan:y,rowSpan:h}}}},v))}function E(m){return A.createElement("tr",Object.assign({},m))}function r(m){var B=m.children,f=A.useContext(C.a),s=f.prefixCls;return A.createElement("tfoot",{className:"".concat(s,"-summary")},B)}var Y=N.b=r,S={Cell:q,Row:E}},"rAM+":function(De,N,e){"use strict";e.d(N,"a",function(){return C});var A=e("Qw5x");function C(Z,q){var E;if(typeof Symbol=="undefined"||Z[Symbol.iterator]==null){if(Array.isArray(Z)||(E=Object(A.a)(Z))||q&&Z&&typeof Z.length=="number"){E&&(Z=E);var r=0,Y=function(){};return{s:Y,n:function(){return r>=Z.length?{done:!0}:{done:!1,value:Z[r++]}},e:function(s){throw s},f:Y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,m=!1,B;return{s:function(){E=Z[Symbol.iterator]()},n:function(){var s=E.next();return S=s.done,s},e:function(s){m=!0,B=s},f:function(){try{!S&&E.return!=null&&E.return()}finally{if(m)throw B}}}}},sR1s:function(De,N,e){"use strict";e.d(N,"b",function(){return q}),e.d(N,"a",function(){return E}),e.d(N,"c",function(){return r}),e.d(N,"d",function(){return Y});var A=e("U8pU"),C="RC_TABLE_KEY";function Z(S){return S==null?[]:Array.isArray(S)?S:[S]}function q(S,m){if(!m&&typeof m!="number")return S;for(var B=Z(m),f=S,s=0;s1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(M.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var j=M[0];if(r.isValidElement(j)&&Object(f.c)(j)){var k=j.ref;M[0]=r.cloneElement(j,{ref:Object(f.a)(k,this.setChildNode)})}return M.length===1?M[0]:M.map(function(g,c){return!r.isValidElement(g)||"key"in g&&g.key!==null?g:r.cloneElement(g,{key:"".concat(y,"-").concat(c)})})}}]),x}(r.Component);h.displayName="ResizeObserver",N.a=h},wCXF:function(De,N,e){"use strict";e.d(N,"a",function(){return Le});var A=e("rePB"),C=e("VTBJ"),Z=e("KQm4"),q=e("U8pU"),E=e("ODXe"),r=e("q1tI"),Y=e("TSYQ"),S=e.n(Y),m=e("Gytx"),B=e.n(m),f=e("Kwbf"),s=e("t23M"),y=e("qx4F"),h=e("6eGT"),a=e("IBYe"),o=e("Ff2n"),x=e("c+Xe"),v=e("fyJ8"),D=e("biw7");function M(i,T,K,$,oe){var V=K[i]||{},W=K[T]||{},H,X;V.fixed==="left"?H=$.left[i]:W.fixed==="right"&&(X=$.right[T]);var fe=!1,ee=!1,ie=!1,xe=!1,be=K[T+1],Pe=K[i-1];if(oe==="rtl"){if(H!==void 0){var Ie=Pe&&Pe.fixed==="left";xe=!Ie}else if(X!==void 0){var we=be&&be.fixed==="right";ie=!we}}else if(H!==void 0){var Be=be&&be.fixed==="left";fe=!Be}else if(X!==void 0){var je=Pe&&Pe.fixed==="right";ee=!je}return{fixLeft:H,fixRight:X,lastFixLeft:fe,firstFixRight:ee,lastFixRight:ie,firstFixLeft:xe,isSticky:$.isSticky}}var j=e("sR1s");function k(i){var T=i.cells,K=i.stickyOffsets,$=i.flattenColumns,oe=i.rowComponent,V=i.cellComponent,W=i.onHeaderRow,H=i.index,X=r.useContext(D.a),fe=X.prefixCls,ee=X.direction,ie;W&&(ie=W(T.map(function(be){return be.column}),H));var xe=Object(j.a)(T.map(function(be){return be.column}));return r.createElement(oe,Object.assign({},ie),T.map(function(be,Pe){var Ie=be.column,we=M(be.colStart,be.colEnd,$,K,ee),Be;return Ie&&Ie.onHeaderCell&&(Be=be.column.onHeaderCell(Ie)),r.createElement(v.a,Object.assign({},be,{ellipsis:Ie.ellipsis,align:Ie.align,component:V,prefixCls:fe,key:xe[Pe]},we,{additionalProps:Be,rowType:"header"}))}))}k.displayName="HeaderRow";var g=k;function c(i){var T=[];function K(W,H){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;T[X]=T[X]||[];var fe=H,ee=W.filter(Boolean).map(function(ie){var xe={key:ie.key,className:ie.className||"",children:ie.title,column:ie,colStart:fe},be=1,Pe=ie.children;return Pe&&Pe.length>0&&(be=K(Pe,fe,X+1).reduce(function(Ie,we){return Ie+we},0),xe.hasSubColumns=!0),"colSpan"in ie&&(be=ie.colSpan),"rowSpan"in ie&&(xe.rowSpan=ie.rowSpan),xe.colSpan=be,xe.colEnd=xe.colStart+be-1,T[X].push(xe),fe+=be,be});return ee}K(i,0);for(var $=T.length,oe=function(H){T[H].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=$-H)})},V=0;V<$;V+=1)oe(V);return T}function R(i){var T=i.stickyOffsets,K=i.columns,$=i.flattenColumns,oe=i.onHeaderRow,V=r.useContext(D.a),W=V.prefixCls,H=V.getComponent,X=r.useMemo(function(){return c(K)},[K]),fe=H(["header","wrapper"],"thead"),ee=H(["header","row"],"tr"),ie=H(["header","cell"],"th");return r.createElement(fe,{className:"".concat(W,"-thead")},X.map(function(xe,be){var Pe=r.createElement(g,{key:be,flattenColumns:$,cells:xe,stickyOffsets:T,rowComponent:ee,cellComponent:ie,onHeaderRow:oe,index:be});return Pe}))}var l=R,n=e("hW8S");function t(i){for(var T=i.colWidths,K=i.columns,$=i.columCount,oe=[],V=$||K.length,W=!1,H=V-1;H>=0;H-=1){var X=T[H],fe=K&&K[H],ee=fe&&fe[n.a];(X||ee||W)&&(oe.unshift(r.createElement("col",Object.assign({key:H,style:{width:X,minWidth:X}},ee))),W=!0)}return r.createElement("colgroup",null,oe)}var u=t;function d(i,T){return Object(r.useMemo)(function(){for(var K=[],$=0;$1?st-1:0),gt=1;gt=ie&&(Qe=ie-xe),W({scrollLeft:Qe/ie*(ee+2)}),je.current.x=pe.pageX},Se=function(){var pe=Object(Q.b)(V.current).top,Ve=pe+V.current.offsetHeight,nt=document.documentElement.scrollTop+window.innerHeight;Ve-Object(y.a)()<=nt||pe>=nt-H?Be(function(et){return Object(C.a)(Object(C.a)({},et),{},{isHiddenScrollBar:!0})}):Be(function(et){return Object(C.a)(Object(C.a)({},et),{},{isHiddenScrollBar:!1})})},Te=function(pe){Be(function(Ve){return Object(C.a)(Object(C.a)({},Ve),{},{scrollLeft:pe/ee*ie||0})})};return r.useImperativeHandle(K,function(){return{setScrollLeft:Te}}),r.useEffect(function(){var me=Object(We.a)(document.body,"mouseup",Ze,!1),pe=Object(We.a)(document.body,"mousemove",Re,!1);return Se(),function(){me.remove(),pe.remove()}},[xe,Xe]),r.useEffect(function(){var me=Object(We.a)(window,"scroll",Se,!1),pe=Object(We.a)(window,"resize",Se,!1);return function(){me.remove(),pe.remove()}},[]),r.useEffect(function(){we.isHiddenScrollBar||Be(function(me){var pe,Ve;return Object(C.a)(Object(C.a)({},me),{},{scrollLeft:V.current.scrollLeft/((pe=V.current)===null||pe===void 0?void 0:pe.scrollWidth)*((Ve=V.current)===null||Ve===void 0?void 0:Ve.clientWidth)})})},[we.isHiddenScrollBar]),ee<=ie||!xe||we.isHiddenScrollBar?null:r.createElement("div",{style:{height:Object(y.a)(),width:ie,bottom:H},className:"".concat(fe,"-sticky-scroll")},r.createElement("div",{onMouseDown:Ue,ref:be,className:S()("".concat(fe,"-sticky-scroll-bar"),Object(A.a)({},"".concat(fe,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(xe,"px"),transform:"translate3d(".concat(we.scrollLeft,"px, 0, 0)")}}))},ye=r.forwardRef(ve);function le(i,T){return r.useMemo(function(){var K=!!i;return{isSticky:K,stickyClassName:K?"".concat(T,"-sticky-header"):"",offsetHeader:Object(q.a)(i)==="object"&&i.offsetHeader||0,offsetScroll:Object(q.a)(i)==="object"&&i.offsetScroll||0}},[i,T])}var se=[],Ne={},Le="rc-table-internal-hook",He=r.memo(function(i){var T=i.children;return T},function(i,T){return B()(i.props,T.props)?i.pingLeft!==T.pingLeft||i.pingRight!==T.pingRight:!1});function ze(i){var T,K=i.prefixCls,$=i.className,oe=i.rowClassName,V=i.style,W=i.data,H=i.rowKey,X=i.scroll,fe=i.tableLayout,ee=i.direction,ie=i.title,xe=i.footer,be=i.summary,Pe=i.id,Ie=i.showHeader,we=i.components,Be=i.emptyText,je=i.onRow,qe=i.onHeaderRow,Ge=i.internalHooks,Xe=i.transformColumns,Ye=i.internalRefs,Ze=i.sticky,Ue=W||se,Re=!!Ue.length,Se=r.useState(0),Te=Object(E.a)(Se,2),me=Te[0],pe=Te[1];r.useEffect(function(){pe(Object(y.a)())});var Ve=r.useMemo(function(){return Object(j.c)(we,{})},[we]),nt=r.useCallback(function(ke,Fe){return Object(j.b)(Ve,ke)||Fe},[Ve]),et=r.useMemo(function(){return typeof H=="function"?H:function(ke){var Fe=ke&&ke[H];return Fe}},[H]),Qe=Object(n.c)(i),yt=Qe.expandIcon,Ot=Qe.expandedRowKeys,xt=Qe.defaultExpandedRowKeys,dt=Qe.defaultExpandAllRows,ct=Qe.expandedRowRender,pt=Qe.onExpand,vt=Qe.onExpandedRowsChange,Et=Qe.expandRowByClick,ue=Qe.rowExpandable,Ke=Qe.expandIconColumnIndex,Oe=Qe.expandedRowClassName,lt=Qe.childrenColumnName,at=Qe.indentSize,ot=yt||_e,jt=lt||"children",Mt=r.useMemo(function(){return ct?"row":i.expandable&&Ge===Le&&i.expandable.__PARENT_RENDER_ICON__||Ue.some(function(ke){return ke&&Object(q.a)(ke)==="object"&&ke[jt]})?"nest":!1},[!!ct,Ue]),Nt=r.useState(function(){return xt||(dt?Me(Ue,et,jt):[])}),rt=Object(E.a)(Nt,2),it=rt[0],ft=rt[1],st=r.useMemo(function(){return new Set(Ot||it||[])},[Ot,it]),bt=r.useCallback(function(ke){var Fe=et(ke,Ue.indexOf(ke)),tt,ut=st.has(Fe);ut?(st.delete(Fe),tt=Object(Z.a)(st)):tt=[].concat(Object(Z.a)(st),[Fe]),ft(tt),pt&&pt(!ut,ke),vt&&vt(tt)},[et,st,Ue,pt,vt]),gt=r.useState(0),Tt=Object(E.a)(gt,2),Rt=Tt[0],_t=Tt[1],vn=Object(w.b)(Object(C.a)(Object(C.a)(Object(C.a)({},i),Qe),{},{expandable:!!ct,expandedKeys:st,getRowKey:et,onTriggerExpand:bt,expandIcon:ot,expandIconColumnIndex:Ke,direction:ee}),Ge===Le?Xe:null),Jt=Object(E.a)(vn,2),Kt=Jt[0],$e=Jt[1],Lt=r.useMemo(function(){return{columns:Kt,flattenColumns:$e}},[Kt,$e]),kt=r.useRef(),Zt=r.useRef(),Ct=r.useRef(),En=r.useState(!1),$t=Object(E.a)(En,2),qt=$t[0],bn=$t[1],gn=r.useState(!1),en=Object(E.a)(gn,2),tn=en[0],Cn=en[1],yn=O(new Map),nn=Object(E.a)(yn,2),On=nn[0],xn=nn[1],An=Object(j.a)($e),an=An.map(function(ke){return On.get(ke)}),on=r.useMemo(function(){return an},[an.join("_")]),Ut=ce(on,$e.length,ee),mt=X&&Object(j.d)(X.y),ht=X&&Object(j.d)(X.x),St=ht&&$e.some(function(ke){var Fe=ke.fixed;return Fe}),rn=r.useRef(),wt=le(Ze,K),Dt=wt.isSticky,jn=wt.offsetHeader,Rn=wt.offsetScroll,Sn=wt.stickyClassName,Ft,It,zt;mt&&(It={overflowY:"scroll",maxHeight:X.y}),ht&&(Ft={overflowX:"auto"},mt||(It={overflowY:"hidden"}),zt={width:X.x===!0?"auto":X.x,minWidth:"100%"});var ln=r.useCallback(function(ke,Fe){xn(function(tt){var ut=new Map(tt);return ut.set(ke,Fe),ut})},[]),Dn=ne(null),sn=Object(E.a)(Dn,2),Pn=sn[0],un=sn[1];function Wt(ke,Fe){if(!Fe)return;typeof Fe=="function"?Fe(ke):Fe.scrollLeft!==ke&&(Fe.scrollLeft=ke)}var At=function(Fe){var tt=Fe.currentTarget,ut=Fe.scrollLeft,Pt=typeof ut=="number"?ut:tt.scrollLeft,pn=tt||Ne;if(!un()||un()===pn){var Yt;Pn(pn),Wt(Pt,Zt.current),Wt(Pt,Ct.current),Wt(Pt,(Yt=rn.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(tt){var wn=tt.scrollWidth,In=tt.clientWidth;bn(Pt>0),Cn(Pt0?[].concat(Object(C.a)(o),Object(C.a)(f(M).map(function(j){return Object(Z.a)({fixed:D},j)}))):[].concat(Object(C.a)(o),[Object(Z.a)(Object(Z.a)({},x),{},{fixed:D})])},[])}function s(a){for(var o=!0,x=0;x=0;M-=1){var j=a[M];if(D&&j.fixed!=="right")D=!1;else if(!D&&j.fixed==="right"){Object(Y.a)(!1,"Index ".concat(M+1," of `columns` missing `fixed='right'` prop."));break}}}function y(a){return a.map(function(o){var x=o.fixed,v=Object(q.a)(o,["fixed"]),D=x;return x==="left"?D="right":x==="right"&&(D="left"),Object(Z.a)({fixed:D},v)})}function h(a,o){var x=a.prefixCls,v=a.columns,D=a.children,M=a.expandable,j=a.expandedKeys,k=a.getRowKey,g=a.onTriggerExpand,c=a.expandIcon,R=a.rowExpandable,l=a.expandIconColumnIndex,n=a.direction,t=a.expandRowByClick,u=E.useMemo(function(){return v||B(D)},[v,D]),d=E.useMemo(function(){if(M){var b,_=l||0,L=u[_],re=(b={},Object(A.a)(b,m.a,{className:"".concat(x,"-expand-icon-col")}),Object(A.a)(b,"title",""),Object(A.a)(b,"fixed",L?L.fixed:null),Object(A.a)(b,"className","".concat(x,"-row-expand-icon-cell")),Object(A.a)(b,"render",function(P,he,de){var Ce=k(he,de),Ee=j.has(Ce),F=R?R(he):!0,w=c({prefixCls:x,expanded:Ee,expandable:F,record:he,onExpand:g});return t?E.createElement("span",{onClick:function(G){return G.stopPropagation()}},w):w}),b),Ae=u.slice();return _>=0&&Ae.splice(_,0,re),Ae}return u},[M,u,k,j,c,n]),p=E.useMemo(function(){var b=d;return o&&(b=o(b)),b.length||(b=[{render:function(){return null}}]),b},[o,d,n]),I=E.useMemo(function(){return n==="rtl"?y(f(p)):f(p)},[p,n]);return[p,I]}N.b=h},"y0+3":function(De,N,e){"use strict";e.d(N,"a",function(){return f}),e.d(N,"b",function(){return y});var A=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},Z={cssFloat:1,styleFloat:1,float:1};function q(h){return h.nodeType===1?h.ownerDocument.defaultView.getComputedStyle(h,null):{}}function E(h,a,o){if(a=a.toLowerCase(),o==="auto"){if(a==="height")return h.offsetHeight;if(a==="width")return h.offsetWidth}return a in C||(C[a]=A.test(a)),C[a]?parseFloat(o)||0:o}function r(h,a){var o=arguments.length,x=q(h);return a=Z[a]?"cssFloat"in h.style?"cssFloat":"styleFloat":a,o===1?x:E(h,a,x[a]||h.style[a])}function Y(h,a,o){var x=arguments.length;if(a=Z[a]?"cssFloat"in h.style?"cssFloat":"styleFloat":a,x===3)return typeof o=="number"&&A.test(a)&&(o="".concat(o,"px")),h.style[a]=o,o;for(var v in a)a.hasOwnProperty(v)&&Y(h,v,a[v]);return q(h)}function S(h){return h===document.body?document.documentElement.clientWidth:h.offsetWidth}function m(h){return h===document.body?window.innerHeight||document.documentElement.clientHeight:h.offsetHeight}function B(){var h=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:h,height:a}}function f(){var h=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:h,height:a}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function y(h){var a=h.getBoundingClientRect(),o=document.documentElement;return{left:a.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||document.body.clientTop||0)}}}}]); +`,I=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],b={},_;function L(k){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=k.getAttribute("id")||k.getAttribute("data-reactid")||k.getAttribute("name");if(w&&b[J])return b[J];var G=window.getComputedStyle(k),O=G.getPropertyValue("box-sizing")||G.getPropertyValue("-moz-box-sizing")||G.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(G.getPropertyValue("padding-bottom"))+parseFloat(G.getPropertyValue("padding-top")),z=parseFloat(G.getPropertyValue("border-bottom-width"))+parseFloat(G.getPropertyValue("border-top-width")),ce=I.map(function(te){return"".concat(te,":").concat(G.getPropertyValue(te))}).join(";"),ge={sizingStyle:ce,paddingSize:ne,borderSize:z,boxSizing:O};return w&&J&&(b[J]=ge),ge}function re(k){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),k.getAttribute("wrap")?_.setAttribute("wrap",k.getAttribute("wrap")):_.removeAttribute("wrap");var O=L(k,w),ne=O.paddingSize,z=O.borderSize,ce=O.boxSizing,ge=O.sizingStyle;_.setAttribute("style","".concat(ge,";").concat(h)),_.value=k.value||k.placeholder||"";var te=Number.MIN_SAFE_INTEGER,ae=Number.MAX_SAFE_INTEGER,_e=_.scrollHeight,Te;if(ce==="border-box"?_e+=z:ce==="content-box"&&(_e-=ne),J!==null||G!==null){_.value=" ";var We=_.scrollHeight-ne;J!==null&&(te=We*J,ce==="border-box"&&(te=te+ne+z),_e=Math.max(te,_e)),G!==null&&(ae=We*G,ce==="border-box"&&(ae=ae+ne+z),Te=_e>ae?"":"hidden",_e=Math.min(ae,_e))}return{height:_e,minHeight:te,maxHeight:ae,overflowY:Te,resize:"none"}}var Ae=e("Gytx"),U=e.n(Ae),P;(function(k){k[k.NONE=0]="NONE",k[k.RESIZING=1]="RESIZING",k[k.RESIZED=2]="RESIZED"})(P||(P={}));var pe=function(k){Object(q.a)(J,k);var w=Object(E.a)(J);function J(G){var O;return Object(C.a)(this,J),O=w.call(this,G),O.nextFrameActionId=void 0,O.resizeFrameId=void 0,O.textArea=void 0,O.saveTextArea=function(ne){O.textArea=ne},O.handleResize=function(ne){var z=O.state.resizeStatus,ce=O.props,ge=ce.autoSize,te=ce.onResize;if(z!==P.NONE)return;typeof te=="function"&&te(ne),ge&&O.resizeOnNextFrame()},O.resizeOnNextFrame=function(){cancelAnimationFrame(O.nextFrameActionId),O.nextFrameActionId=requestAnimationFrame(O.resizeTextarea)},O.resizeTextarea=function(){var ne=O.props.autoSize;if(!ne||!O.textArea)return;var z=ne.minRows,ce=ne.maxRows,ge=re(O.textArea,!1,z,ce);O.setState({textareaStyles:ge,resizeStatus:P.RESIZING},function(){cancelAnimationFrame(O.resizeFrameId),O.resizeFrameId=requestAnimationFrame(function(){O.setState({resizeStatus:P.RESIZED},function(){O.resizeFrameId=requestAnimationFrame(function(){O.setState({resizeStatus:P.NONE}),O.fixFirefoxAutoScroll()})})})})},O.renderTextArea=function(){var ne=O.props,z=ne.prefixCls,ce=z===void 0?"rc-textarea":z,ge=ne.autoSize,te=ne.onResize,ae=ne.className,_e=ne.disabled,Te=O.state,We=Te.textareaStyles,Q=Te.resizeStatus,ve=Object(t.a)(O.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ye=d()(ce,ae,Object(D.a)({},"".concat(ce,"-disabled"),_e));"value"in ve&&(ve.value=ve.value||"");var le=Object(Y.a)(Object(Y.a)(Object(Y.a)({},O.props.style),We),Q===P.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return r.createElement(n,{onResize:O.handleResize,disabled:!(ge||te)},r.createElement("textarea",Object(A.a)({},ve,{className:ye,style:le,ref:O.saveTextArea})))},O.state={textareaStyles:{},resizeStatus:P.NONE},O}return Object(Z.a)(J,[{key:"componentDidUpdate",value:function(O){(O.value!==this.props.value||!U()(O.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var O=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange(O,ne)}}catch(z){}}},{key:"render",value:function(){return this.renderTextArea()}}]),J}(r.Component),de=pe,Ce=function(k){Object(q.a)(J,k);var w=Object(E.a)(J);function J(G){var O;Object(C.a)(this,J),O=w.call(this,G),O.resizableTextArea=void 0,O.focus=function(){O.resizableTextArea.textArea.focus()},O.saveTextArea=function(z){O.resizableTextArea=z},O.handleChange=function(z){var ce=O.props.onChange;O.setValue(z.target.value,function(){O.resizableTextArea.resizeTextarea()}),ce&&ce(z)},O.handleKeyDown=function(z){var ce=O.props,ge=ce.onPressEnter,te=ce.onKeyDown;z.keyCode===13&&ge&&ge(z),te&&te(z)};var ne=typeof G.value=="undefined"||G.value===null?G.defaultValue:G.value;return O.state={value:ne},O}return Object(Z.a)(J,[{key:"setValue",value:function(O,ne){"value"in this.props||this.setState({value:O},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return r.createElement(de,Object(A.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(O){return"value"in O?{value:O.value}:null}}]),J}(r.Component),Ee=M.default=Ce},ZpRC:function(Se,M,e){"use strict";function A(f){return typeof f=="object"&&f!=null&&f.nodeType===1}function C(f,s){return(!s||f!=="hidden")&&f!=="visible"&&f!=="clip"}function Z(f,s){if(f.clientHeights||o>f&&x=s&&v>=y?o-f-p:x>s&&vy?x-s+a:0}var E=function(f,s){var y=window,p=s.scrollMode,a=s.block,o=s.inline,x=s.boundary,v=s.skipOverflowHiddenElements,S=typeof x=="function"?x:function(We){return We!==x};if(!A(f))throw new TypeError("Invalid target");for(var T=document.scrollingElement||document.documentElement,j=[],F=f;A(F)&&S(F);){if((F=F.parentElement)===T){j.push(F);break}F!=null&&F===document.body&&Z(F)&&!Z(document.documentElement)||F!=null&&Z(F,v)&&j.push(F)}for(var g=y.visualViewport?y.visualViewport.width:innerWidth,c=y.visualViewport?y.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,l=window.scrollY||pageYOffset,n=f.getBoundingClientRect(),t=n.height,u=n.width,d=n.top,h=n.right,I=n.bottom,b=n.left,_=a==="start"||a==="nearest"?d:a==="end"?I:d+t/2,L=o==="center"?b+u/2:o==="end"?h:b,re=[],Ae=0;Ae=0&&b>=0&&I<=c&&h<=g&&d>=Ce&&I<=k&&b>=w&&h<=Ee)return re;var J=getComputedStyle(U),G=parseInt(J.borderLeftWidth,10),O=parseInt(J.borderTopWidth,10),ne=parseInt(J.borderRightWidth,10),z=parseInt(J.borderBottomWidth,10),ce=0,ge=0,te="offsetWidth"in U?U.offsetWidth-U.clientWidth-G-ne:0,ae="offsetHeight"in U?U.offsetHeight-U.clientHeight-O-z:0;if(T===U)ce=a==="start"?_:a==="end"?_-c:a==="nearest"?q(l,l+c,c,O,z,l+_,l+_+t,t):_-c/2,ge=o==="start"?L:o==="center"?L-g/2:o==="end"?L-g:q(R,R+g,g,G,ne,R+L,R+L+u,u),ce=Math.max(0,ce+l),ge=Math.max(0,ge+R);else{ce=a==="start"?_-Ce-O:a==="end"?_-k+z+ae:a==="nearest"?q(Ce,k,pe,O,z+ae,_,_+t,t):_-(Ce+pe/2)+ae/2,ge=o==="start"?L-w-G:o==="center"?L-(w+de/2)+te/2:o==="end"?L-Ee+ne+te:q(w,Ee,de,G,ne+te,L,L+u,u);var _e=U.scrollLeft,Te=U.scrollTop;_+=Te-(ce=Math.max(0,Math.min(Te+ce,U.scrollHeight-pe+ae))),L+=_e-(ge=Math.max(0,Math.min(_e+ge,U.scrollWidth-de+te)))}re.push({el:U,top:ce,left:ge})}return re};function r(f){return f===Object(f)&&Object.keys(f).length!==0}function Y(f,s){s===void 0&&(s="auto");var y="scrollBehavior"in document.body.style;f.forEach(function(p){var a=p.el,o=p.top,x=p.left;a.scroll&&y?a.scroll({top:o,left:x,behavior:s}):(a.scrollTop=o,a.scrollLeft=x)})}function D(f){return f===!1?{block:"end",inline:"nearest"}:r(f)?f:{block:"start",inline:"nearest"}}function m(f,s){var y=!f.ownerDocument.documentElement.contains(f);if(r(s)&&typeof s.behavior=="function")return s.behavior(y?[]:E(f,s));if(y)return;var p=D(s);return Y(E(f,p),p.behavior)}var B=M.a=m},bT9E:function(Se,M,e){"use strict";e.d(M,"a",function(){return C});var A=e("VTBJ");function C(Z,q){var E=Object(A.a)({},Z);return Array.isArray(q)&&q.forEach(function(r){delete E[r]}),E}},biw7:function(Se,M,e){"use strict";var A=e("q1tI"),C=e.n(A),Z=A.createContext(null);M.a=Z},fyJ8:function(Se,M,e){"use strict";var A=e("rePB"),C=e("VTBJ"),Z=e("Ff2n"),q=e("U8pU"),E=e("q1tI"),r=e.n(E),Y=e("TSYQ"),D=e.n(Y),m=e("c+Xe"),B=e("sR1s");function f(o){return o&&Object(q.a)(o)==="object"&&!Array.isArray(o)&&!E.isValidElement(o)}function s(o){return typeof o=="string"?!0:Object(m.c)(o)}function y(o,x){var v,S=o.prefixCls,T=o.className,j=o.record,F=o.index,g=o.dataIndex,c=o.render,R=o.children,l=o.component,n=l===void 0?"td":l,t=o.colSpan,u=o.rowSpan,d=o.fixLeft,h=o.fixRight,I=o.firstFixLeft,b=o.lastFixLeft,_=o.firstFixRight,L=o.lastFixRight,re=o.appendNode,Ae=o.additionalProps,U=Ae===void 0?{}:Ae,P=o.ellipsis,pe=o.align,de=o.rowType,Ce=o.isSticky,Ee="".concat(S,"-cell"),k,w;if(R)w=R;else{var J=Object(B.b)(j,g);if(w=J,c){var G=c(J,j,F);f(G)?(w=G.children,k=G.props):w=G}}Object(q.a)(w)==="object"&&!Array.isArray(w)&&!E.isValidElement(w)&&(w=null),P&&(b||_)&&(w=E.createElement("span",{className:"".concat(Ee,"-content")},w));var O=k||{},ne=O.colSpan,z=O.rowSpan,ce=O.style,ge=O.className,te=Object(Z.a)(O,["colSpan","rowSpan","style","className"]),ae=ne!==void 0?ne:t,_e=z!==void 0?z:u;if(ae===0||_e===0)return null;var Te={},We=typeof d=="number",Q=typeof h=="number";We&&(Te.position="sticky",Te.left=d),Q&&(Te.position="sticky",Te.right=h);var ve={};pe&&(ve.textAlign=pe);var ye,le=P===!0?{showTitle:!0}:P;le&&(le.showTitle||de==="header")&&(typeof w=="string"||typeof w=="number"?ye=w.toString():E.isValidElement(w)&&typeof w.props.children=="string"&&(ye=w.props.children));var se=Object(C.a)(Object(C.a)(Object(C.a)({title:ye},te),U),{},{colSpan:ae&&ae!==1?ae:null,rowSpan:_e&&_e!==1?_e:null,className:D()(Ee,T,(v={},Object(A.a)(v,"".concat(Ee,"-fix-left"),We),Object(A.a)(v,"".concat(Ee,"-fix-left-first"),I),Object(A.a)(v,"".concat(Ee,"-fix-left-last"),b),Object(A.a)(v,"".concat(Ee,"-fix-right"),Q),Object(A.a)(v,"".concat(Ee,"-fix-right-first"),_),Object(A.a)(v,"".concat(Ee,"-fix-right-last"),L),Object(A.a)(v,"".concat(Ee,"-ellipsis"),P),Object(A.a)(v,"".concat(Ee,"-with-append"),re),Object(A.a)(v,"".concat(Ee,"-fix-sticky"),(We||Q)&&Ce),v),U.className,ge),style:Object(C.a)(Object(C.a)(Object(C.a)(Object(C.a)({},U.style),ve),Te),ce),ref:s(n)?x:null});return E.createElement(n,Object.assign({},se),re,w)}var p=E.forwardRef(y);p.displayName="Cell";var a=E.memo(p,function(o,x){return x.shouldCellUpdate?!x.shouldCellUpdate(x.record,o.record):!1});M.a=a},hW8S:function(Se,M,e){"use strict";e.d(M,"a",function(){return q}),e.d(M,"c",function(){return E}),e.d(M,"b",function(){return r});var A=e("VTBJ"),C=e("Ff2n"),Z=e("Kwbf"),q="RC_TABLE_INTERNAL_COL_DEFINE";function E(Y){var D=Y.expandable,m=Object(C.a)(Y,["expandable"]);return"expandable"in Y?Object(A.a)(Object(A.a)({},m),D):m}function r(Y){return Object.keys(Y).reduce(function(D,m){return(m.substr(0,5)==="data-"||m.substr(0,5)==="aria-")&&(D[m]=Y[m]),D},{})}},ju9d:function(Se,M,e){"use strict";var A=e("g9YV"),C=e("wCAj"),Z=e("miYZ"),q=e("tsqr"),E=e("5Dmo"),r=e("3S7+"),Y=e("sRBo"),D=e("kaz8"),m=e("oBTY"),B=e("9og8"),f=e("tJVT"),s=e("k1fw"),y=e("+L6B"),p=e("2/Rp"),a=e("O3gP"),o=e("lrIw"),x=e("y8nQ"),v=e("Vl3Y"),S=e("5NDa"),T=e("5rEg"),j=e("WmNS"),F=e.n(j),g=e("q1tI"),c=e.n(g),R=e("55Ip"),l=e("wd/R"),n=e.n(l),t=e("RotF"),u=e.n(t),d=e("E7E6"),h=e.n(d),I=e("oUNq"),b=[];function _(U){var P=U.onSearch,pe=U.schools;return c.a.createElement(v.a,{layout:"inline",onFinish:P,initialValues:{keyword:"",school_name:""},className:"search-form"},c.a.createElement(v.a.Item,{label:"\u59D3\u540D",name:"keyword",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},c.a.createElement(T.a,{allowClear:!0,style:{width:370},size:"large"})),c.a.createElement(v.a.Item,{label:"\u5355\u4F4D",name:"school_name"},c.a.createElement(o.a,{options:pe,style:{width:400},size:"large",showSearch:!0,filterOption:function(Ce,Ee){return Ee.value.toUpperCase().indexOf(Ce.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),c.a.createElement(v.a.Item,null,c.a.createElement(p.a,{type:"primary",htmlType:"submit"},"\u641C\u7D22")))}var L;(function(U){U[U.INITDATA=0]="INITDATA",U[U.INITSCHOOLS=1]="INITSCHOOLS",U[U.SHOWLOADING=2]="SHOWLOADING",U[U.SELECTEDIDS=3]="SELECTEDIDS",U[U.SETQUERY=4]="SETQUERY",U[U.SETPAGE=5]="SETPAGE"})(L||(L={}));function re(U,P){switch(P.type){case L.INITDATA:return Object(s.a)(Object(s.a)({},U),P.payload);case L.SETQUERY:return Object(s.a)(Object(s.a)({},U),P.payload);case L.SETPAGE:return Object(s.a)(Object(s.a)({},U),{},{page:P.payload,reload:!1});case L.SHOWLOADING:return Object(s.a)(Object(s.a)({},U),{},{loading:P.payload});case L.INITSCHOOLS:return Object(s.a)(Object(s.a)({},U),{},{schools:P.payload});case L.SELECTEDIDS:return Object(s.a)(Object(s.a)({},U),{},{selectedIds:P.payload});default:throw new Error}}var Ae={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};M.a=function(U){var P=U.onSelect,pe=U.onCancel,de=U.container_id,Ce=U.container_type,Ee=Object(g.useReducer)(re,Ae),k=Object(f.a)(Ee,2),w=k[0],J=k[1],G=w.data,O=w.schools,ne=w.loading,z=w.selectedIds,ce=w.page,ge=w.count,te=w.query,ae=w.reload;Object(g.useEffect)(function(){function le(){return se.apply(this,arguments)}function se(){return se=Object(B.a)(F.a.mark(function Me(){var Le,He,ze;return F.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(I.wb)(Object(s.a)(Object(s.a)({},te),{},{page:ce,container_type:Ce,container_id:de}));case 2:Le=i.sent,He=Le.users,ze=Le.user_count,J({type:L.INITDATA,payload:{data:ae?He:[].concat(Object(m.a)(G),Object(m.a)(He)),count:ze}});case 6:case"end":return i.stop()}},Me)})),se.apply(this,arguments)}te&&le()},[ce,te,ae,de,Ce]),Object(g.useEffect)(function(){function le(){return se.apply(this,arguments)}function se(){return se=Object(B.a)(F.a.mark(function Me(){var Le,He;return F.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(I.kb)({});case 2:Le=Je.sent,He=Le.school_names,J({type:L.INITSCHOOLS,payload:He.map(function(i){return{value:i}})});case 5:case"end":return Je.stop()}},Me)})),se.apply(this,arguments)}le()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(se,Me){return c.a.createElement(D.a,{value:Me.numid,checked:z.includes(Me.numid),disabled:!!se})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(se,Me){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement(R.a,{className:"bold c-black",to:"/users/".concat(Me.login),target:"_blank"},se||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,se||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(se){return se?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(se){return c.a.createElement(r.a,{placement:"bottom",title:se},c.a.createElement("span",null,n()(se).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(se){if(se===1)return c.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];function Te(le){J({type:L.SETQUERY,payload:{page:1,reload:!0,query:le}})}function We(le){J({type:L.SETPAGE,payload:le})}function Q(le){var se=z.indexOf(le);se>=0?z.splice(se,1):z.push(le),J({type:L.SELECTEDIDS,payload:Object(m.a)(z)})}function ve(){z.length===0?q.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(P(z,de),J({type:L.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var ye=ge>ce*10;return c.a.createElement("div",{className:"select-user-container"},c.a.createElement(_,{onSearch:Te,schools:O}),te?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"flexd-table-header mt20"},c.a.createElement(C.a,{pagination:!1,dataSource:b,columns:_e})),c.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},c.a.createElement(u.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:We,hasMore:ye,useWindow:!1},c.a.createElement(C.a,{loading:ne,showHeader:!1,pagination:!1,dataSource:G,columns:_e,onRow:function(se){return{onClick:function(Le){se.added!==1&&Q(se.numid)}}}}))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(p.a,{type:"ghost",style:{marginRight:10},onClick:pe},"\u53D6\u6D88"),c.a.createElement(p.a,{type:"primary",onClick:ve},"\u786E\u5B9A"))):c.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},c.a.createElement("img",{src:h.a,width:"100",alt:""}),c.a.createElement("br",null),c.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},n6Qo:function(Se,M,e){"use strict";e.d(M,"a",function(){return D});var A=e("q1tI"),C=e("biw7"),Z=e("fyJ8");function q(m){var B=m.className,f=m.index,s=m.children,y=m.colSpan,p=m.rowSpan,a=A.useContext(C.a),o=a.prefixCls,x=a.fixedInfoList,v=x[f];return A.createElement(Z.a,Object.assign({className:B,index:f,component:"td",prefixCls:o,record:null,dataIndex:null,render:function(){return{children:s,props:{colSpan:y,rowSpan:p}}}},v))}function E(m){return A.createElement("tr",Object.assign({},m))}function r(m){var B=m.children,f=A.useContext(C.a),s=f.prefixCls;return A.createElement("tfoot",{className:"".concat(s,"-summary")},B)}var Y=M.b=r,D={Cell:q,Row:E}},"rAM+":function(Se,M,e){"use strict";e.d(M,"a",function(){return C});var A=e("Qw5x");function C(Z,q){var E;if(typeof Symbol=="undefined"||Z[Symbol.iterator]==null){if(Array.isArray(Z)||(E=Object(A.a)(Z))||q&&Z&&typeof Z.length=="number"){E&&(Z=E);var r=0,Y=function(){};return{s:Y,n:function(){return r>=Z.length?{done:!0}:{done:!1,value:Z[r++]}},e:function(s){throw s},f:Y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=!0,m=!1,B;return{s:function(){E=Z[Symbol.iterator]()},n:function(){var s=E.next();return D=s.done,s},e:function(s){m=!0,B=s},f:function(){try{!D&&E.return!=null&&E.return()}finally{if(m)throw B}}}}},sR1s:function(Se,M,e){"use strict";e.d(M,"b",function(){return q}),e.d(M,"a",function(){return E}),e.d(M,"c",function(){return r}),e.d(M,"d",function(){return Y});var A=e("U8pU"),C="RC_TABLE_KEY";function Z(D){return D==null?[]:Array.isArray(D)?D:[D]}function q(D,m){if(!m&&typeof m!="number")return D;for(var B=Z(m),f=D,s=0;s1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(T.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var j=T[0];if(r.isValidElement(j)&&Object(f.c)(j)){var F=j.ref;T[0]=r.cloneElement(j,{ref:Object(f.a)(F,this.setChildNode)})}return T.length===1?T[0]:T.map(function(g,c){return!r.isValidElement(g)||"key"in g&&g.key!==null?g:r.cloneElement(g,{key:"".concat(y,"-").concat(c)})})}}]),x}(r.Component);p.displayName="ResizeObserver",M.a=p},wCXF:function(Se,M,e){"use strict";e.d(M,"a",function(){return Le});var A=e("rePB"),C=e("VTBJ"),Z=e("KQm4"),q=e("U8pU"),E=e("ODXe"),r=e("q1tI"),Y=e("TSYQ"),D=e.n(Y),m=e("Gytx"),B=e.n(m),f=e("Kwbf"),s=e("t23M"),y=e("qx4F"),p=e("6eGT"),a=e("IBYe"),o=e("Ff2n"),x=e("c+Xe"),v=e("fyJ8"),S=e("biw7");function T(i,N,K,$,oe){var V=K[i]||{},W=K[N]||{},H,X;V.fixed==="left"?H=$.left[i]:W.fixed==="right"&&(X=$.right[N]);var fe=!1,ee=!1,ie=!1,xe=!1,be=K[N+1],Pe=K[i-1];if(oe==="rtl"){if(H!==void 0){var Ie=Pe&&Pe.fixed==="left";xe=!Ie}else if(X!==void 0){var we=be&&be.fixed==="right";ie=!we}}else if(H!==void 0){var Be=be&&be.fixed==="left";fe=!Be}else if(X!==void 0){var je=Pe&&Pe.fixed==="right";ee=!je}return{fixLeft:H,fixRight:X,lastFixLeft:fe,firstFixRight:ee,lastFixRight:ie,firstFixLeft:xe,isSticky:$.isSticky}}var j=e("sR1s");function F(i){var N=i.cells,K=i.stickyOffsets,$=i.flattenColumns,oe=i.rowComponent,V=i.cellComponent,W=i.onHeaderRow,H=i.index,X=r.useContext(S.a),fe=X.prefixCls,ee=X.direction,ie;W&&(ie=W(N.map(function(be){return be.column}),H));var xe=Object(j.a)(N.map(function(be){return be.column}));return r.createElement(oe,Object.assign({},ie),N.map(function(be,Pe){var Ie=be.column,we=T(be.colStart,be.colEnd,$,K,ee),Be;return Ie&&Ie.onHeaderCell&&(Be=be.column.onHeaderCell(Ie)),r.createElement(v.a,Object.assign({},be,{ellipsis:Ie.ellipsis,align:Ie.align,component:V,prefixCls:fe,key:xe[Pe]},we,{additionalProps:Be,rowType:"header"}))}))}F.displayName="HeaderRow";var g=F;function c(i){var N=[];function K(W,H){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;N[X]=N[X]||[];var fe=H,ee=W.filter(Boolean).map(function(ie){var xe={key:ie.key,className:ie.className||"",children:ie.title,column:ie,colStart:fe},be=1,Pe=ie.children;return Pe&&Pe.length>0&&(be=K(Pe,fe,X+1).reduce(function(Ie,we){return Ie+we},0),xe.hasSubColumns=!0),"colSpan"in ie&&(be=ie.colSpan),"rowSpan"in ie&&(xe.rowSpan=ie.rowSpan),xe.colSpan=be,xe.colEnd=xe.colStart+be-1,N[X].push(xe),fe+=be,be});return ee}K(i,0);for(var $=N.length,oe=function(H){N[H].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=$-H)})},V=0;V<$;V+=1)oe(V);return N}function R(i){var N=i.stickyOffsets,K=i.columns,$=i.flattenColumns,oe=i.onHeaderRow,V=r.useContext(S.a),W=V.prefixCls,H=V.getComponent,X=r.useMemo(function(){return c(K)},[K]),fe=H(["header","wrapper"],"thead"),ee=H(["header","row"],"tr"),ie=H(["header","cell"],"th");return r.createElement(fe,{className:"".concat(W,"-thead")},X.map(function(xe,be){var Pe=r.createElement(g,{key:be,flattenColumns:$,cells:xe,stickyOffsets:N,rowComponent:ee,cellComponent:ie,onHeaderRow:oe,index:be});return Pe}))}var l=R,n=e("hW8S");function t(i){for(var N=i.colWidths,K=i.columns,$=i.columCount,oe=[],V=$||K.length,W=!1,H=V-1;H>=0;H-=1){var X=N[H],fe=K&&K[H],ee=fe&&fe[n.a];(X||ee||W)&&(oe.unshift(r.createElement("col",Object.assign({key:H,style:{width:X,minWidth:X}},ee))),W=!0)}return r.createElement("colgroup",null,oe)}var u=t;function d(i,N){return Object(r.useMemo)(function(){for(var K=[],$=0;$1?st-1:0),gt=1;gt=ie&&(Qe=ie-xe),W({scrollLeft:Qe/ie*(ee+2)}),je.current.x=he.pageX},De=function(){var he=Object(Q.b)(V.current).top,Ve=he+V.current.offsetHeight,nt=document.documentElement.scrollTop+window.innerHeight;Ve-Object(y.a)()<=nt||he>=nt-H?Be(function(et){return Object(C.a)(Object(C.a)({},et),{},{isHiddenScrollBar:!0})}):Be(function(et){return Object(C.a)(Object(C.a)({},et),{},{isHiddenScrollBar:!1})})},Ne=function(he){Be(function(Ve){return Object(C.a)(Object(C.a)({},Ve),{},{scrollLeft:he/ee*ie||0})})};return r.useImperativeHandle(K,function(){return{setScrollLeft:Ne}}),r.useEffect(function(){var me=Object(We.a)(document.body,"mouseup",Ze,!1),he=Object(We.a)(document.body,"mousemove",Re,!1);return De(),function(){me.remove(),he.remove()}},[xe,Xe]),r.useEffect(function(){var me=Object(We.a)(window,"scroll",De,!1),he=Object(We.a)(window,"resize",De,!1);return function(){me.remove(),he.remove()}},[]),r.useEffect(function(){we.isHiddenScrollBar||Be(function(me){var he,Ve;return Object(C.a)(Object(C.a)({},me),{},{scrollLeft:V.current.scrollLeft/((he=V.current)===null||he===void 0?void 0:he.scrollWidth)*((Ve=V.current)===null||Ve===void 0?void 0:Ve.clientWidth)})})},[we.isHiddenScrollBar]),ee<=ie||!xe||we.isHiddenScrollBar?null:r.createElement("div",{style:{height:Object(y.a)(),width:ie,bottom:H},className:"".concat(fe,"-sticky-scroll")},r.createElement("div",{onMouseDown:Ue,ref:be,className:D()("".concat(fe,"-sticky-scroll-bar"),Object(A.a)({},"".concat(fe,"-sticky-scroll-bar-active"),Xe)),style:{width:"".concat(xe,"px"),transform:"translate3d(".concat(we.scrollLeft,"px, 0, 0)")}}))},ye=r.forwardRef(ve);function le(i,N){return r.useMemo(function(){var K=!!i;return{isSticky:K,stickyClassName:K?"".concat(N,"-sticky-header"):"",offsetHeader:Object(q.a)(i)==="object"&&i.offsetHeader||0,offsetScroll:Object(q.a)(i)==="object"&&i.offsetScroll||0}},[i,N])}var se=[],Me={},Le="rc-table-internal-hook",He=r.memo(function(i){var N=i.children;return N},function(i,N){return B()(i.props,N.props)?i.pingLeft!==N.pingLeft||i.pingRight!==N.pingRight:!1});function ze(i){var N,K=i.prefixCls,$=i.className,oe=i.rowClassName,V=i.style,W=i.data,H=i.rowKey,X=i.scroll,fe=i.tableLayout,ee=i.direction,ie=i.title,xe=i.footer,be=i.summary,Pe=i.id,Ie=i.showHeader,we=i.components,Be=i.emptyText,je=i.onRow,qe=i.onHeaderRow,Ge=i.internalHooks,Xe=i.transformColumns,Ye=i.internalRefs,Ze=i.sticky,Ue=W||se,Re=!!Ue.length,De=r.useState(0),Ne=Object(E.a)(De,2),me=Ne[0],he=Ne[1];r.useEffect(function(){he(Object(y.a)())});var Ve=r.useMemo(function(){return Object(j.c)(we,{})},[we]),nt=r.useCallback(function(Fe,ke){return Object(j.b)(Ve,Fe)||ke},[Ve]),et=r.useMemo(function(){return typeof H=="function"?H:function(Fe){var ke=Fe&&Fe[H];return ke}},[H]),Qe=Object(n.c)(i),yt=Qe.expandIcon,Ot=Qe.expandedRowKeys,xt=Qe.defaultExpandedRowKeys,dt=Qe.defaultExpandAllRows,ct=Qe.expandedRowRender,ht=Qe.onExpand,vt=Qe.onExpandedRowsChange,Et=Qe.expandRowByClick,ue=Qe.rowExpandable,Ke=Qe.expandIconColumnIndex,Oe=Qe.expandedRowClassName,lt=Qe.childrenColumnName,at=Qe.indentSize,ot=yt||_e,jt=lt||"children",Tt=r.useMemo(function(){return ct?"row":i.expandable&&Ge===Le&&i.expandable.__PARENT_RENDER_ICON__||Ue.some(function(Fe){return Fe&&Object(q.a)(Fe)==="object"&&Fe[jt]})?"nest":!1},[!!ct,Ue]),Mt=r.useState(function(){return xt||(dt?Te(Ue,et,jt):[])}),rt=Object(E.a)(Mt,2),it=rt[0],ft=rt[1],st=r.useMemo(function(){return new Set(Ot||it||[])},[Ot,it]),bt=r.useCallback(function(Fe){var ke=et(Fe,Ue.indexOf(Fe)),tt,ut=st.has(ke);ut?(st.delete(ke),tt=Object(Z.a)(st)):tt=[].concat(Object(Z.a)(st),[ke]),ft(tt),ht&&ht(!ut,Fe),vt&&vt(tt)},[et,st,Ue,ht,vt]),gt=r.useState(0),Nt=Object(E.a)(gt,2),Rt=Nt[0],_t=Nt[1],vn=Object(w.b)(Object(C.a)(Object(C.a)(Object(C.a)({},i),Qe),{},{expandable:!!ct,expandedKeys:st,getRowKey:et,onTriggerExpand:bt,expandIcon:ot,expandIconColumnIndex:Ke,direction:ee}),Ge===Le?Xe:null),Jt=Object(E.a)(vn,2),Kt=Jt[0],$e=Jt[1],Lt=r.useMemo(function(){return{columns:Kt,flattenColumns:$e}},[Kt,$e]),Ft=r.useRef(),Zt=r.useRef(),Ct=r.useRef(),En=r.useState(!1),$t=Object(E.a)(En,2),qt=$t[0],bn=$t[1],gn=r.useState(!1),en=Object(E.a)(gn,2),tn=en[0],Cn=en[1],yn=O(new Map),nn=Object(E.a)(yn,2),On=nn[0],xn=nn[1],An=Object(j.a)($e),an=An.map(function(Fe){return On.get(Fe)}),on=r.useMemo(function(){return an},[an.join("_")]),Ut=ce(on,$e.length,ee),mt=X&&Object(j.d)(X.y),pt=X&&Object(j.d)(X.x),Dt=pt&&$e.some(function(Fe){var ke=Fe.fixed;return ke}),rn=r.useRef(),wt=le(Ze,K),St=wt.isSticky,jn=wt.offsetHeader,Rn=wt.offsetScroll,Dn=wt.stickyClassName,kt,It,zt;mt&&(It={overflowY:"scroll",maxHeight:X.y}),pt&&(kt={overflowX:"auto"},mt||(It={overflowY:"hidden"}),zt={width:X.x===!0?"auto":X.x,minWidth:"100%"});var ln=r.useCallback(function(Fe,ke){xn(function(tt){var ut=new Map(tt);return ut.set(Fe,ke),ut})},[]),Sn=ne(null),sn=Object(E.a)(Sn,2),Pn=sn[0],un=sn[1];function Wt(Fe,ke){if(!ke)return;typeof ke=="function"?ke(Fe):ke.scrollLeft!==Fe&&(ke.scrollLeft=Fe)}var At=function(ke){var tt=ke.currentTarget,ut=ke.scrollLeft,Pt=typeof ut=="number"?ut:tt.scrollLeft,hn=tt||Me;if(!un()||un()===hn){var Yt;Pn(hn),Wt(Pt,Zt.current),Wt(Pt,Ct.current),Wt(Pt,(Yt=rn.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(tt){var wn=tt.scrollWidth,In=tt.clientWidth;bn(Pt>0),Cn(Pt0?[].concat(Object(C.a)(o),Object(C.a)(f(T).map(function(j){return Object(Z.a)({fixed:S},j)}))):[].concat(Object(C.a)(o),[Object(Z.a)(Object(Z.a)({},x),{},{fixed:S})])},[])}function s(a){for(var o=!0,x=0;x=0;T-=1){var j=a[T];if(S&&j.fixed!=="right")S=!1;else if(!S&&j.fixed==="right"){Object(Y.a)(!1,"Index ".concat(T+1," of `columns` missing `fixed='right'` prop."));break}}}function y(a){return a.map(function(o){var x=o.fixed,v=Object(q.a)(o,["fixed"]),S=x;return x==="left"?S="right":x==="right"&&(S="left"),Object(Z.a)({fixed:S},v)})}function p(a,o){var x=a.prefixCls,v=a.columns,S=a.children,T=a.expandable,j=a.expandedKeys,F=a.getRowKey,g=a.onTriggerExpand,c=a.expandIcon,R=a.rowExpandable,l=a.expandIconColumnIndex,n=a.direction,t=a.expandRowByClick,u=E.useMemo(function(){return v||B(S)},[v,S]),d=E.useMemo(function(){if(T){var b,_=l||0,L=u[_],re=(b={},Object(A.a)(b,m.a,{className:"".concat(x,"-expand-icon-col")}),Object(A.a)(b,"title",""),Object(A.a)(b,"fixed",L?L.fixed:null),Object(A.a)(b,"className","".concat(x,"-row-expand-icon-cell")),Object(A.a)(b,"render",function(P,pe,de){var Ce=F(pe,de),Ee=j.has(Ce),k=R?R(pe):!0,w=c({prefixCls:x,expanded:Ee,expandable:k,record:pe,onExpand:g});return t?E.createElement("span",{onClick:function(G){return G.stopPropagation()}},w):w}),b),Ae=u.slice();return _>=0&&Ae.splice(_,0,re),Ae}return u},[T,u,F,j,c,n]),h=E.useMemo(function(){var b=d;return o&&(b=o(b)),b.length||(b=[{render:function(){return null}}]),b},[o,d,n]),I=E.useMemo(function(){return n==="rtl"?y(f(h)):f(h)},[h,n]);return[h,I]}M.b=p},"y0+3":function(Se,M,e){"use strict";e.d(M,"a",function(){return f}),e.d(M,"b",function(){return y});var A=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},Z={cssFloat:1,styleFloat:1,float:1};function q(p){return p.nodeType===1?p.ownerDocument.defaultView.getComputedStyle(p,null):{}}function E(p,a,o){if(a=a.toLowerCase(),o==="auto"){if(a==="height")return p.offsetHeight;if(a==="width")return p.offsetWidth}return a in C||(C[a]=A.test(a)),C[a]?parseFloat(o)||0:o}function r(p,a){var o=arguments.length,x=q(p);return a=Z[a]?"cssFloat"in p.style?"cssFloat":"styleFloat":a,o===1?x:E(p,a,x[a]||p.style[a])}function Y(p,a,o){var x=arguments.length;if(a=Z[a]?"cssFloat"in p.style?"cssFloat":"styleFloat":a,x===3)return typeof o=="number"&&A.test(a)&&(o="".concat(o,"px")),p.style[a]=o,o;for(var v in a)a.hasOwnProperty(v)&&Y(p,v,a[v]);return q(p)}function D(p){return p===document.body?document.documentElement.clientWidth:p.offsetWidth}function m(p){return p===document.body?window.innerHeight||document.documentElement.clientHeight:p.offsetHeight}function B(){var p=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:p,height:a}}function f(){var p=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:p,height:a}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function y(p){var a=p.getBoundingClientRect(),o=document.documentElement;return{left:a.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__virtualSpaces__Lists__Member__index.300c43a9.async.js b/p__virtualSpaces__Lists__Member__index.300c43a9.async.js index e1ac9a0888..e4a5723933 100644 --- a/p__virtualSpaces__Lists__Member__index.300c43a9.async.js +++ b/p__virtualSpaces__Lists__Member__index.300c43a9.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[277,8,9,10],{"/GNS":function(F,O,e){F.exports=e.p+"static/search1.c4136dd4.png"},"1QoP":function(F,O,e){"use strict";e.r(O);var x=e("DjyN"),S=e("NUBc"),ge=e("2qtc"),M=e("kLXV"),o=e("Znn+"),h=e("ZTPi"),de=e("+L6B"),oe=e("2/Rp"),w=e("5NDa"),Ce=e("5rEg"),j=e("9og8"),I=e("tJVT"),W=e("PpiC"),P=e("WmNS"),c=e.n(P),d=e("q1tI"),v=e.n(d),U=e("Ty5D"),z=e("9kvl"),V=e("BdwD"),Q=e("cTOM"),ee=e.n(Q),D=e("ErOA"),B=e("g9YV"),k=e("wCAj"),E=e("O3gP"),m=e("lrIw"),i=e("5Dmo"),y=e("3S7+"),R=e("sRBo"),T=e("kaz8"),te=e("k1fw"),L=e("oBTY"),Y=e("miYZ"),re=e("tsqr"),ye=e("y8nQ"),Ue=e("Vl3Y"),be=e("RotF"),q=e.n(be),Re=e("wd/R"),Ie=e.n(Re),Pe=e("m47v"),Qe=e("oUNq"),ae=e("lzim"),ie=e("55Ip"),he=function(ze){var nt,qe,Ne=ze.classroomList,Ze=ze.loading,Mt=ze.dispatch,jt=Object(U.i)(),Ot=Ne.actionTabs,St=Object(d.useState)([]),Rt=Object(I.a)(St,2),Gt=Rt[0],C=Rt[1],G=Object(d.useState)(!0),X=Object(I.a)(G,2),me=X[0],Ae=X[1],pe=Object(d.useState)(!1),se=Object(I.a)(pe,2),$=se[0],ne=se[1],Oe=Ue.a.useForm(),ve=Object(I.a)(Oe,1),Ee=ve[0],Ve=Object(d.useState)([]),xe=Object(I.a)(Ve,2),Te=xe[0],pt=xe[1],$e=Object(d.useState)(0),it=Object(I.a)($e,2),We=it[0],kt=it[1],Me=Object(d.useState)([]),Ye=Object(I.a)(Me,2),at=Ye[0],He=Ye[1],et=Object(d.useState)(!0),xt=Object(I.a)(et,2),dt=xt[0],Xe=xt[1],mt=Object(d.useRef)();Object(d.useEffect)(function(){Ne.actionTabs.key==="\u6DFB\u52A0\u8001\u5E08"&&(Xe(!0),Ge())},[Ne.actionTabs.key]);var Ge=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De;return c.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Mt({type:"classroomList/getSchoolList",payload:{}});case 2:De=Je.sent,C(De.map(function(_t){return{value:_t}}));case 4:case"end":return Je.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),Ut=function(){var Z;if(((Z=Ee.getFieldValue())===null||Z===void 0?void 0:Z.keyword)===""){pt([]),re.b.error("\u8BF7\u8F93\u5165\u59D3\u540D");return}Xe(!1),Ae(!0),ne(!1),He([]),setTimeout(function(){Wt(!0)},200)},Zt=function(Z){Z=String(Z);var De=at.indexOf(Z);De<0?at.push(Z):at.splice(De,1),He(Object(L.a)(at))},Wt=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De,Pt,Je,_t,sn=arguments;return c.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(De=sn.length>0&&sn[0]!==void 0?sn[0]:!1,!((De||me)&&!$)){Vt.next=11;break}return Je=Ee.getFieldValue(),ne(!0),kt(De?1:We+1),Vt.next=7,Object(Qe.wb)({page:De?1:We+1,container_id:jt.virtual_spacesId,container_type:5,school_name:Je==null?void 0:Je.school_name,keyword:Je==null?void 0:Je.keyword});case 7:_t=Vt.sent,pt(De?Object(L.a)(_t.users):[].concat(Object(L.a)(Te),Object(L.a)(_t.users))),ne(!1),((Pt=_t.users)===null||Pt===void 0?void 0:Pt.length)<10&&Ae(!1);case 11:case"end":return Vt.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),It=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De;return c.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(!(at=="")){Je.next=4;break}re.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),Je.next=8;break;case 4:return Je.next=6,Object(Pe.a)(Object(te.a)(Object(te.a)({},jt),{},{user_ids:at}));case 6:De=Je.sent,De.status===0&&(re.b.success("\u6DFB\u52A0\u6210\u529F"),Mt({type:"classroomList/setActionTabs",payload:{key:"\u5237\u65B0\u6570\u636E"}}));case 8:case"end":return Je.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),cn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Z,De){return v.a.createElement(T.a,{value:De.numid,checked:at.includes(String(De.numid)),disabled:!!Z})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(Z,De){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement(ie.a,{className:"bold c-black",to:"/users/".concat(De.login),target:"_blank"},Z||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(Z){return Z?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Ie()(Z).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(Z){return Z===1?v.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0"):v.a.createElement("span",null,"\u672A\u6DFB\u52A0")}}];return v.a.createElement(M.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Ne.actionTabs.key==="\u6DFB\u52A0\u6210\u5458",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(j.a)(c.a.mark(function Le(){return c.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:It();case 1:case"end":return De.stop()}},Le)})),onCancel:function(){He([]),Mt({type:"classroomList/setActionTabs",payload:{}})}},v.a.createElement(Ue.a,{layout:"inline",form:Ee,initialValues:{school_name:"",keyword:""},className:"mt10"},v.a.createElement(Ue.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},v.a.createElement(Ce.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((nt=Ot.selectArrs)===null||nt===void 0?void 0:nt.category_name)||((qe=Ot.selectArrs)===null||qe===void 0?void 0:qe.name)})),v.a.createElement(Ue.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},v.a.createElement("div",{ref:mt},v.a.createElement(m.a,{options:Gt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return mt.current},filterOption:function(Z,De){return De.value.toUpperCase().indexOf(Z.toUpperCase())!==-1}}))),v.a.createElement(Ue.a.Item,null,v.a.createElement(oe.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return Ut()}},"\u641C\u7D22"))),dt&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.A,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!dt&&Te==""&&!$&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.t,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!dt&&Te!=""||$)&&v.a.createElement("section",null,v.a.createElement("div",{className:"flexd-table-header mt20"},v.a.createElement(k.a,{pagination:!1,dataSource:[],columns:cn})),v.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},v.a.createElement(q.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Z){Wt()},hasMore:me,useWindow:!1},v.a.createElement(k.a,{loading:$,showHeader:!1,pagination:!1,dataSource:Te,columns:cn,onRow:function(Z){return{onClick:function(Pt){Pt.currentTarget.querySelector("input").disabled||Zt(Pt.currentTarget.querySelector("input").value)}}}})))))},ue=Object(z.a)(function(we){var ze=we.classroomList,nt=we.loading;return{classroomList:ze,loading:nt}})(he),K=e("7Kak"),_=e("9yH6"),fe=function(ze){var nt,qe,Ne=ze.classroomList,Ze=ze.loading,Mt=ze.dispatch,jt=Object(U.i)(),Ot=Ne.actionTabs,St=Object(d.useState)([]),Rt=Object(I.a)(St,2),Gt=Rt[0],C=Rt[1],G=Object(d.useState)(!0),X=Object(I.a)(G,2),me=X[0],Ae=X[1],pe=Object(d.useState)(!1),se=Object(I.a)(pe,2),$=se[0],ne=se[1],Oe=Ue.a.useForm(),ve=Object(I.a)(Oe,1),Ee=ve[0],Ve=Object(d.useState)([]),xe=Object(I.a)(Ve,2),Te=xe[0],pt=xe[1],$e=Object(d.useState)(0),it=Object(I.a)($e,2),We=it[0],kt=it[1],Me=Object(d.useState)(),Ye=Object(I.a)(Me,2),at=Ye[0],He=Ye[1],et=Object(d.useState)(!0),xt=Object(I.a)(et,2),dt=xt[0],Xe=xt[1],mt=Object(d.useRef)();Object(d.useEffect)(function(){Ne.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458"&&(Xe(!0),Ge())},[Ne.actionTabs.key]);var Ge=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De;return c.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Mt({type:"classroomList/getSchoolList",payload:{}});case 2:De=Je.sent,C(De.map(function(_t){return{value:_t}})),Xe(!1),Ae(!0),ne(!1),He(""),setTimeout(function(){Wt(!0)},200);case 9:case"end":return Je.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),Ut=function(){var Z;if(((Z=Ee.getFieldValue())===null||Z===void 0?void 0:Z.keyword)===""){pt([]),re.b.error("\u8BF7\u8F93\u5165\u59D3\u540D");return}Xe(!1),Ae(!0),ne(!1),He(""),setTimeout(function(){Wt(!0)},200)},Zt=function(Z){Z=String(Z),He(Z)},Wt=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De,Pt,Je,_t,sn=arguments;return c.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(De=sn.length>0&&sn[0]!==void 0?sn[0]:!1,!((De||me)&&!$)){Vt.next=11;break}return Je=Ee.getFieldValue(),ne(!0),kt(De?1:We+1),Vt.next=7,Object(Qe.wb)({page:De?1:We+1,container_id:jt.virtual_spacesId,container_type:5,source:"virtual_classroom",school_name:Je==null?void 0:Je.school_name,keyword:Je==null?void 0:Je.keyword});case 7:_t=Vt.sent,pt(De?Object(L.a)(_t.users):[].concat(Object(L.a)(Te),Object(L.a)(_t.users))),ne(!1),((Pt=_t.users)===null||Pt===void 0?void 0:Pt.length)<10&&Ae(!1);case 11:case"end":return Vt.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),It=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De;return c.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(!(at=="")){Je.next=4;break}re.b.error("\u8BF7\u9009\u62E9\u6210\u5458"),Je.next=8;break;case 4:return Je.next=6,Object(Pe.b)(Object(te.a)(Object(te.a)({},jt),{},{id:at,virtual_classroom_id:jt.virtual_spacesId}));case 6:De=Je.sent,De.status===0&&(re.b.success("\u66F4\u6362\u6210\u529F"),Mt({type:"classroomList/setActionTabs",payload:{key:"\u5237\u65B0\u6570\u636E"}}));case 8:case"end":return Je.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),cn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Z,De){return v.a.createElement(_.a,{value:De.numid,checked:at===String(De.numid)})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(Z,De){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement(ie.a,{className:"bold c-black",to:"/users/".concat(De.login),target:"_blank"},Z||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(Z){return Z?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Ie()(Z).format("YYYY-MM-DD HH:mm")))}}];return v.a.createElement(M.a,{centered:!0,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:Ne.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(j.a)(c.a.mark(function Le(){return c.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:It();case 1:case"end":return De.stop()}},Le)})),onCancel:function(){He(""),Mt({type:"classroomList/setActionTabs",payload:{}})}},v.a.createElement(Ue.a,{layout:"inline",form:Ee,initialValues:{school_name:"",keyword:""},className:"mt10"},v.a.createElement(Ue.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},v.a.createElement(Ce.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((nt=Ot.selectArrs)===null||nt===void 0?void 0:nt.category_name)||((qe=Ot.selectArrs)===null||qe===void 0?void 0:qe.name)})),v.a.createElement(Ue.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},v.a.createElement("div",{ref:mt},v.a.createElement(m.a,{options:Gt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return mt.current},filterOption:function(Z,De){return De.value.toUpperCase().indexOf(Z.toUpperCase())!==-1}}))),v.a.createElement(Ue.a.Item,null,v.a.createElement(oe.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return Ut()}},"\u641C\u7D22"))),dt&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.A,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!dt&&Te==""&&!$&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.t,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!dt&&Te!=""||$)&&v.a.createElement("section",null,v.a.createElement("div",{className:"flexd-table-header mt20"},v.a.createElement(k.a,{pagination:!1,dataSource:[],columns:cn})),v.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},v.a.createElement(q.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Z){Wt()},hasMore:me,useWindow:!1},v.a.createElement(k.a,{loading:$,showHeader:!1,pagination:!1,dataSource:Te,columns:cn,onRow:function(Z){return{onClick:function(Pt){Pt.currentTarget.querySelector("input").disabled||Zt(Pt.currentTarget.querySelector("input").value)}}}})))))},je=Object(z.a)(function(we){var ze=we.classroomList,nt=we.loading;return{classroomList:ze,loading:nt}})(fe),_e=e("m3rI"),le=e("xKgJ"),ke=function(ze){var nt,qe=ze.classroomList,Ne=ze.globalSetting,Ze=ze.virtualSpaces,Mt=ze.user,jt=ze.loading,Ot=ze.dispatch,St=Object(W.a)(ze,["classroomList","globalSetting","virtualSpaces","user","loading","dispatch"]),Rt=Object(d.useState)([]),Gt=Object(I.a)(Rt,2),C=Gt[0],G=Gt[1],X=Object(d.useState)(!1),me=Object(I.a)(X,2),Ae=me[0],pe=me[1],se=Ze.virtualSpacesDetails,$=Object(d.useState)("1"),ne=Object(I.a)($,2),Oe=ne[0],ve=ne[1],Ee=Object(U.i)(),Ve=Object(d.useState)({page:1,limit:6,search:"",virtual_classroom_id:Ee.virtual_spacesId,module_id:Ze.actionTabs.module_id}),xe=Object(I.a)(Ve,2),Te=xe[0],pt=xe[1];function $e(){return it.apply(this,arguments)}function it(){return it=Object(j.a)(c.a.mark(function Me(){var Ye;return c.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/members.json"),{method:"get",params:Te});case 2:Ye=He.sent,G(Ye);case 4:case"end":return He.stop()}},Me)})),it.apply(this,arguments)}function We(){return kt.apply(this,arguments)}function kt(){return kt=Object(j.a)(c.a.mark(function Me(){var Ye;return c.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/appling_member_list.json"),{method:"get",params:Te});case 2:Ye=He.sent,G(Ye);case 4:case"end":return He.stop()}},Me)})),kt.apply(this,arguments)}return Object(d.useEffect)(function(){$e()},[]),Object(d.useEffect)(function(){qe.actionTabs.key==="\u5237\u65B0\u6570\u636E"&&($e(),ve("1"),Ot({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:Ee.virtual_spacesId}}))},[qe.actionTabs.key]),v.a.createElement("div",{className:ee.a.warp},v.a.createElement("div",{className:ee.a.title},v.a.createElement(Ce.a.Search,{onSearch:function(Ye){Te.search=Ye,Oe==="1"?$e():We()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u641C\u7D22",className:ee.a.Inputstyle}),(se.is_member||Object(le.v)())&&v.a.createElement(oe.a,{type:"primary",ghost:!0,onClick:function(){Ot({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u6210\u5458",params:Te}})}},v.a.createElement("i",{style:{fontSize:"14px",marginRight:"8px"},className:"iconfont icon-tianjia1 mr3 "})," \u6DFB\u52A0\u6210\u5458")),v.a.createElement("div",{className:ee.a.Content},v.a.createElement(h.a,{activeKey:Oe,onChange:function(Ye){Te.page=1,ve(Ye),Ye==="1"?$e():We()}},v.a.createElement(h.a.TabPane,{key:"1",tab:"\u793E\u533A\u6210\u5458\uFF08".concat(Oe==="1"?C.total_count:C.member_total_count,"\uFF09")}),v.a.createElement(h.a.TabPane,{key:"2",tab:"\u7533\u8BF7\u5BA1\u6279\uFF08".concat(Oe==="2"?C.total_count:C.apply_total_count,"\uFF09")})),(C==null?void 0:C.total_count)<=0&&v.a.createElement(V.a,{Buttonclass:ee.a.buttonstyle,customText:"\u6B64\u9879\u76EE\u8FD8\u6CA1\u6709\u6210\u5458\uFF0C\u7ACB\u5373\u6DFB\u52A0\u5B83\u4EEC\u5427\uFF5E"}),C==null||((nt=C.members)===null||nt===void 0)?void 0:nt.map(function(Me,Ye){return v.a.createElement("div",{style:{marginTop:Ye===0?"10px":"15px"},className:ee.a.items,onClick:function(){window.open("/users/".concat(Me.login))}},v.a.createElement("div",{style:{display:"flex"}},v.a.createElement("img",{src:_e.a.IMG_SERVER+"/images/"+(Me==null?void 0:Me.image_url)}),v.a.createElement("div",null,v.a.createElement("div",{style:{fontSize:"16px",display:"flex",fontWeight:600}},Me==null?void 0:Me.name,(Me==null?void 0:Me.is_creator)&&v.a.createElement("div",{className:ee.a.adminsstyle},"\u7BA1\u7406\u5458")),v.a.createElement("div",{style:{fontSize:"12px",color:"#7D8592",marginTop:"11px"}},Me.school,Me.school&&Me.department_name&&"-",Me.department_name))),v.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},((Me==null?void 0:Me.is_creator)&&Mt.userInfo.user_id===Me.user_id||Object(le.v)())&&Ye===0&&Oe==="1"&&(Me==null?void 0:Me.is_creator)&&v.a.createElement("span",{onClick:function(He){He.stopPropagation(),He.preventDefault(),Ot({type:"classroomList/setActionTabs",payload:{key:"\u66F4\u6362\u7BA1\u7406\u5458",params:Te}})},className:ee.a.upadmin},"\u66F4\u6362\u7BA1\u7406\u5458"),(Me==null?void 0:Me.can_remove)&&Oe==="1"&&v.a.createElement("i",{onClick:function(He){He.stopPropagation(),He.preventDefault(),M.a.confirm({title:"\u79FB\u9664\u6210\u5458",content:"\u786E\u8BA4\u5C06\u6210\u5458\u300A".concat(Me.name,"\u300B\u79FB\u51FA\u865A\u62DF\u793E\u533A\u5417\uFF1F"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var et=Object(j.a)(c.a.mark(function dt(){var Xe;return c.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/members/").concat(Me.user_id,".json"),{method:"Delete"});case 2:Xe=Ge.sent,Xe.status===0&&($e(),Ot({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:Ee.virtual_spacesId}}));case 4:case"end":return Ge.stop()}},dt)}));function xt(){return et.apply(this,arguments)}return xt}()})},style:{color:"#196efd",cursor:"pointer",fontSize:"10px"},className:"iconfont icon-piliangshanchubeifen mr3 font16"}),!(Me!=null&&Me.is_creator)&&Oe==="2"&&v.a.createElement("div",{style:{cursor:"pointer"}},v.a.createElement("span",{onClick:function(){var at=Object(j.a)(c.a.mark(function He(et){var xt;return c.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return et.stopPropagation(),et.preventDefault(),Xe.next=4,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/agree.json"),{method:"post",body:{apply_id:Me.source_id}});case 4:xt=Xe.sent,xt.status===0&&We();case 6:case"end":return Xe.stop()}},He)}));return function(He){return at.apply(this,arguments)}}(),className:ee.a.yes},"\u540C\u610F"),v.a.createElement("span",{onClick:function(){var at=Object(j.a)(c.a.mark(function He(et){var xt;return c.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return et.stopPropagation(),et.preventDefault(),Xe.next=4,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/refuse.json"),{method:"post",body:{apply_id:Me.source_id}});case 4:xt=Xe.sent,xt.status===0&&We();case 6:case"end":return Xe.stop()}},He)}));return function(He){return at.apply(this,arguments)}}(),className:ee.a.no},"\u62D2\u7EDD"))))})),v.a.createElement(ue,null),v.a.createElement(je,null),v.a.createElement(S.a,{current:Te.page,total:C==null?void 0:C.total_count,style:{textAlign:"end",marginTop:"20px"},pageSize:Te.limit,hideOnSinglePage:!0,onChange:function(Ye){Te.page=Ye,Oe==="1"?$e():We()}}))},ct=O.default=Object(z.a)(function(we){var ze=we.classroomList,nt=we.loading,qe=we.globalSetting,Ne=we.virtualSpaces,Ze=we.user;return{classroomList:ze,globalSetting:qe,loading:nt.effects,virtualSpaces:Ne,user:Ze}})(ke)},"4qgm":function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(F,O,e){"use strict";e.d(O,"a",function(){return z}),e.d(O,"b",function(){return k});var x=e("Ty5D"),S=e("dI71"),ge=e("q1tI"),M=e.n(ge),o=e("YS25"),h=e("17x9"),de=e.n(h),oe=e("wx14"),w=e("zLVn"),Ce=e("9R94"),j=function(m){Object(S.a)(i,m);function i(){for(var R,T=arguments.length,te=new Array(T),L=0;L=0||T.relatedTarget.className.indexOf("".concat(re,"-next"))>=0))return;m.setState({goInputText:""}),Y(m.getValidValue())},m.go=function(T){var te=m.state.goInputText;if(te==="")return;(T.keyCode===P.ENTER||T.type==="click")&&(m.setState({goInputText:""}),m.props.quickGo(m.getValidValue()))},m}return Object(o.a)(E,[{key:"getValidValue",value:function(){var i=this.state,y=i.goInputText,R=i.current;return!y||isNaN(y)?R:Number(y)}},{key:"getPageSizeOptions",value:function(){var i=this.props,y=i.pageSize,R=i.pageSizeOptions;return R.some(function(T){return T.toString()===y.toString()})?R:R.concat([y.toString()]).sort(function(T,te){var L=isNaN(Number(T))?0:Number(T),Y=isNaN(Number(te))?0:Number(te);return L-Y})}},{key:"render",value:function(){var i=this,y=this.props,R=y.pageSize,T=y.locale,te=y.rootPrefixCls,L=y.changeSize,Y=y.quickGo,re=y.goButton,ye=y.selectComponentClass,Ue=y.buildOptionText,be=y.selectPrefixCls,q=y.disabled,Re=this.state.goInputText,Ie="".concat(te,"-options"),Pe=ye,Qe=null,ae=null,ie=null;if(!L&&!Y)return null;var he=this.getPageSizeOptions();if(L&&Pe){var ue=he.map(function(K,_){return w.a.createElement(Pe.Option,{key:_,value:K.toString()},(Ue||i.buildOptionText)(K))});Qe=w.a.createElement(Pe,{disabled:q,prefixCls:be,showSearch:!1,className:"".concat(Ie,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(R||he[0]).toString(),onChange:this.changeSize,getPopupContainer:function(_){return _.parentNode}},ue)}return Y&&(re&&(ie=typeof re=="boolean"?w.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(Ie,"-quick-jumper-button")},T.jump_to_confirm):w.a.createElement("span",{onClick:this.go,onKeyUp:this.go},re)),ae=w.a.createElement("div",{className:"".concat(Ie,"-quick-jumper")},T.jump_to,w.a.createElement("input",{disabled:q,type:"text",value:Re,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,ie)),w.a.createElement("li",{className:"".concat(Ie)},Qe,ae)}}]),E}(w.a.Component);c.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=c,v=e("N2Kk");function U(){}function z(B){return typeof B=="number"&&isFinite(B)&&Math.floor(B)===B}function V(B,k,E){return E}function Q(B,k,E){var m=typeof B=="undefined"?k.pageSize:B;return Math.floor((E.total-1)/m)+1}var ee=function(B){Object(h.a)(E,B);var k=Object(de.a)(E);function E(m){var i;Object(M.a)(this,E),i=k.call(this,m),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(Q(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(L,Y){var re=i.props.prefixCls,ye=L||w.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(re,"-item-link")});return typeof L=="function"&&(ye=w.a.createElement(L,Object(ge.a)({},i.props))),ye},i.savePaginationNode=function(L){i.paginationNode=L},i.isValid=function(L){return z(L)&&L!==i.state.current},i.shouldDisplayQuickJumper=function(){var L=i.props,Y=L.showQuickJumper,re=L.pageSize,ye=L.total;return ye<=re?!1:Y},i.handleKeyDown=function(L){(L.keyCode===P.ARROW_UP||L.keyCode===P.ARROW_DOWN)&&L.preventDefault()},i.handleKeyUp=function(L){var Y=i.getValidValue(L),re=i.state.currentInputValue;Y!==re&&i.setState({currentInputValue:Y}),L.keyCode===P.ENTER?i.handleChange(Y):L.keyCode===P.ARROW_UP?i.handleChange(Y-1):L.keyCode===P.ARROW_DOWN&&i.handleChange(Y+1)},i.changePageSize=function(L){var Y=i.state.current,re=Q(L,i.state,i.props);Y=Y>re?re:Y,re===0&&(Y=i.state.current),typeof L=="number"&&("pageSize"in i.props||i.setState({pageSize:L}),"current"in i.props||i.setState({current:Y,currentInputValue:Y})),i.props.onShowSizeChange(Y,L),"onChange"in i.props&&i.props.onChange&&i.props.onChange(Y,L)},i.handleChange=function(L){var Y=i.props.disabled,re=L;if(i.isValid(re)&&!Y){var ye=Q(void 0,i.state,i.props);re>ye?re=ye:re<1&&(re=1),"current"in i.props||i.setState({current:re,currentInputValue:re});var Ue=i.state.pageSize;return i.props.onChange(re,Ue),re}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?re-2:0),Ue=2;Ue=R?te=R:te=Number(y),te}},{key:"getShowSizeChanger",value:function(){var i=this.props,y=i.showSizeChanger,R=i.total,T=i.totalBoundaryShowSizeChanger;return typeof y!="undefined"?y:R>T}},{key:"renderPrev",value:function(i){var y=this.props,R=y.prevIcon,T=y.itemRender,te=T(i,"prev",this.getItemIcon(R,"prev page")),L=!this.hasPrev();return Object(oe.isValidElement)(te)?Object(oe.cloneElement)(te,{disabled:L}):te}},{key:"renderNext",value:function(i){var y=this.props,R=y.nextIcon,T=y.itemRender,te=T(i,"next",this.getItemIcon(R,"next page")),L=!this.hasNext();return Object(oe.isValidElement)(te)?Object(oe.cloneElement)(te,{disabled:L}):te}},{key:"render",value:function(){var i=this,y=this.props,R=y.prefixCls,T=y.className,te=y.style,L=y.disabled,Y=y.hideOnSinglePage,re=y.total,ye=y.locale,Ue=y.showQuickJumper,be=y.showLessItems,q=y.showTitle,Re=y.showTotal,Ie=y.simple,Pe=y.itemRender,Qe=y.showPrevNextJumpers,ae=y.jumpPrevIcon,ie=y.jumpNextIcon,he=y.selectComponentClass,ue=y.selectPrefixCls,K=y.pageSizeOptions,_=this.state,fe=_.current,je=_.pageSize,_e=_.currentInputValue;if(Y===!0&&re<=je)return null;var le=Q(void 0,this.state,this.props),ke=[],ct=null,we=null,ze=null,nt=null,qe=null,Ne=Ue&&Ue.goButton,Ze=be?1:2,Mt=fe-1>0?fe-1:0,jt=fe+1=Ze*2&&fe!==1+2&&(ke[0]=Object(oe.cloneElement)(ke[0],{className:"".concat(R,"-item-after-jump-prev")}),ke.unshift(ct)),le-fe>=Ze*2&&fe!==le-2&&(ke[ke.length-1]=Object(oe.cloneElement)(ke[ke.length-1],{className:"".concat(R,"-item-before-jump-next")}),ke.push(we)),X!==1&&ke.unshift(ze),me!==le&&ke.push(nt)}var se=null;Re&&(se=w.a.createElement("li",{className:"".concat(R,"-total-text")},Re(re,[re===0?0:(fe-1)*je+1,fe*je>re?re:fe*je])));var $=!this.hasPrev()||!le,ne=!this.hasNext()||!le;return w.a.createElement("ul",Object(x.a)({className:j()(R,T,Object(S.a)({},"".concat(R,"-disabled"),L)),style:te,unselectable:"unselectable",ref:this.savePaginationNode},Ot),se,w.a.createElement("li",{title:q?ye.prev_page:null,onClick:this.prev,tabIndex:$?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(R,"-prev"),Object(S.a)({},"".concat(R,"-disabled"),$)),"aria-disabled":$},this.renderPrev(Mt)),ke,w.a.createElement("li",{title:q?ye.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(R,"-next"),Object(S.a)({},"".concat(R,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(jt)),w.a.createElement(d,{disabled:L,locale:ye,rootPrefixCls:R,selectComponentClass:he,selectPrefixCls:ue,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fe,pageSize:je,pageSizeOptions:K,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ne}))}}],[{key:"getDerivedStateFromProps",value:function(i,y){var R={};if("current"in i&&(R.current=i.current,i.current!==y.current&&(R.currentInputValue=R.current)),"pageSize"in i&&i.pageSize!==y.pageSize){var T=y.current,te=Q(i.pageSize,y,i);T=T>te?te:T,"current"in i||(R.current=T,R.currentInputValue=T),R.pageSize=i.pageSize}return R}}]),E}(w.a.Component);ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:U,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:U,locale:v.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var D=ee},"6RRn":function(F,O,e){"use strict";var x=e("wCXF"),S=e("n6Qo");e.d(O,"b",function(){return S.a});var ge=e("IBYe"),M=e("6eGT"),o=e("hW8S");e.d(O,"a",function(){return o.a}),O.c=x.b},"6eGT":function(F,O,e){"use strict";function x(S){return null}O.a=x},"7ZXX":function(F,O,e){F.exports=e.p+"static/err.6e7c5817.png"},"7v3h":function(F,O,e){F.exports=e.p+"static/empty2.dd73f390.png"},"8/bI":function(F,O,e){F.exports=e.p+"static/empty.8918e228.png"},"815F":function(F,O,e){"use strict";e.d(O,"e",function(){return de}),e.d(O,"c",function(){return w}),e.d(O,"d",function(){return Ce}),e.d(O,"a",function(){return I}),e.d(O,"f",function(){return W}),e.d(O,"b",function(){return P});var x=e("KQm4"),S=e("VTBJ"),ge=e("Ff2n"),M=e("Zm9Q"),o=e("Kwbf"),h=e("OZM5");function de(c,d){return c!=null?c:d}function oe(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function v(U){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(U||[]).forEach(function(V){var Q=V.key,ee=V.children;Object(o.a)(Q!=null,"Tree node must have a certain key: [".concat(z).concat(Q,"]"));var D=String(Q);Object(o.a)(!d.has(D)||Q===null||Q===void 0,"Same 'key' exist in the Tree: ".concat(D)),d.set(D,!0),v(ee,"".concat(z).concat(D," > "))})}v(c)}function w(c){function d(v){var U=Object(M.a)(v);return U.map(function(z){if(!Object(h.i)(z))return Object(o.a)(!z,"Tree/TreeNode can only accept TreeNode as children."),null;var V=z.key,Q=z.props,ee=Q.children,D=Object(ge.a)(Q,["children"]),B=Object(S.a)({key:V},D),k=d(ee);return k.length&&(B.children=k),B}).filter(function(z){return z})}return d(c)}function Ce(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=new Set(d===!0?[]:d),U=[];function z(V){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(ee,D){var B=Object(h.h)(Q?Q.pos:"0",D),k=de(ee.key,B),E=Object(S.a)(Object(S.a)({},ee),{},{parent:Q,pos:B,children:null,data:ee,isStart:[].concat(Object(x.a)(Q?Q.isStart:[]),[D===0]),isEnd:[].concat(Object(x.a)(Q?Q.isEnd:[]),[D===V.length-1])});return U.push(E),d===!0||v.has(k)?E.children=z(ee.children||[],E):E.children=[],E})}return z(c),U}function j(c,d,v){var U;v?typeof v=="string"?U=function(Q){return Q[v]}:typeof v=="function"&&(U=function(Q){return v(Q)}):U=function(Q,ee){return de(Q.key,ee)};function z(V,Q,ee){var D=V?V.children:c,B=V?Object(h.h)(ee.pos,Q):"0";if(V){var k=U(V,B),E={node:V,index:Q,pos:B,key:k,parentPos:ee.node?ee.pos:null,level:ee.level+1};d(E)}D&&D.forEach(function(m,i){z(m,i,{node:V,pos:B,level:ee?ee.level+1:-1})})}z(null)}function I(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=d.initWrapper,U=d.processEntity,z=d.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,Q={},ee={},D={posEntities:Q,keyEntities:ee};return v&&(D=v(D)||D),j(c,function(B){var k=B.node,E=B.index,m=B.pos,i=B.key,y=B.parentPos,R=B.level,T={node:k,index:E,key:i,pos:m,level:R},te=de(i,m);Q[m]=T,ee[te]=T,T.parent=Q[y],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),U&&U(T,D)},V),z&&z(D),D}function W(c,d){var v=d.expandedKeys,U=d.selectedKeys,z=d.loadedKeys,V=d.loadingKeys,Q=d.checkedKeys,ee=d.halfCheckedKeys,D=d.dragOverNodeKey,B=d.dropPosition,k=d.keyEntities,E=k[c],m={eventKey:c,expanded:v.indexOf(c)!==-1,selected:U.indexOf(c)!==-1,loaded:z.indexOf(c)!==-1,loading:V.indexOf(c)!==-1,checked:Q.indexOf(c)!==-1,halfChecked:ee.indexOf(c)!==-1,pos:String(E?E.pos:""),dragOver:D===c&&B===0,dragOverGapTop:D===c&&B===-1,dragOverGapBottom:D===c&&B===1};return m}function P(c){var d=c.data,v=c.expanded,U=c.selected,z=c.checked,V=c.loaded,Q=c.loading,ee=c.halfChecked,D=c.dragOver,B=c.dragOverGapTop,k=c.dragOverGapBottom,E=c.pos,m=c.active,i=Object(S.a)(Object(S.a)({},d),{},{expanded:v,selected:U,checked:z,loaded:V,loading:Q,halfChecked:ee,dragOver:D,dragOverGapTop:B,dragOverGapBottom:k,pos:E,active:m});return"props"in i||Object.defineProperty(i,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),c}}),i}},"A/g1":function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BdwD:function(F,O,e){"use strict";var x=e("+L6B"),S=e("2/Rp"),ge=e("0Owb"),M=e("k1fw"),o=e("q1tI"),h=e.n(o),de=e("FOrL"),oe=e.n(de),w=function(j){var I=j.buttonProps,W=I===void 0?{}:I,P=j.styles,c=P===void 0?{}:P,d=j.customText,v=j.ButtonText,U=j.ButtonClick,z=j.Buttonclass,V=j.ButtonTwo;return h.a.createElement("section",{className:"tc animated fadeIn",style:Object(M.a)(Object(M.a)({},{color:"#999",margin:"200px auto"}),c)},h.a.createElement("img",{src:oe.a}),h.a.createElement("p",{className:"mt20 font14"},d||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),v&&h.a.createElement(S.a,Object(ge.a)({className:z,onClick:U},W),v),V&&V)};O.a=w},E7E6:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},FOrL:function(F,O,e){F.exports=e.p+"static/nodata.a6b3f948.png"},FPkq:function(F,O,e){F.exports=e.p+"static/qrCode.dd0fe9b2.png"},GABl:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},HpTS:function(F,O,e){F.exports=e.p+"static/small_program.f74069ec.png"},IBYe:function(F,O,e){"use strict";function x(S){return null}O.a=x},JWDV:function(F,O,e){F.exports=e.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(F,O,e){F.exports=e.p+"static/qrcode.54870d9b.png"},LSTS:function(F,O,e){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var x=function(){function I(W,P){for(var c=0;c=0)continue;if(!Object.prototype.hasOwnProperty.call(I,c))continue;P[c]=I[c]}return P}function oe(I,W){if(!(I instanceof W))throw new TypeError("Cannot call a class as a function")}function w(I,W){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:I}function Ce(I,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);I.prototype=Object.create(W&&W.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(I,W):I.__proto__=W)}var j=function(I){Ce(W,I);function W(P){oe(this,W);var c=w(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,P));return c.scrollListener=c.scrollListener.bind(c),c.eventListenerOptions=c.eventListenerOptions.bind(c),c.mousewheelListener=c.mousewheelListener.bind(c),c}return x(W,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var c=this.getParentElement(this.scrollComponent);c.scrollTop=c.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var c=!1,d={get passive(){c=!0}};try{document.addEventListener("test",null,d),document.removeEventListener("test",null,d)}catch(v){}return c}},{key:"eventListenerOptions",value:function(){var c=this.props.useCapture;return this.isPassiveSupported()&&(c={useCapture:this.props.useCapture,passive:!0}),c}},{key:"setDefaultLoader",value:function(c){this.defaultLoader=c}},{key:"detachMousewheelListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.scrollComponent.parentNode),c.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.getParentElement(this.scrollComponent)),c.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(c){var d=this.props.getScrollParent&&this.props.getScrollParent();return d!=null?d:c&&c.parentNode}},{key:"filterProps",value:function(c){return c}},{key:"attachScrollListener",value:function(){var c=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!c)return;var d=window;this.props.useWindow===!1&&(d=c),d.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),d.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),d.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(c){c.deltaY===1&&!this.isPassiveSupported()&&c.preventDefault()}},{key:"scrollListener",value:function(){var c=this.scrollComponent,d=window,v=this.getParentElement(c),U=void 0;if(this.props.useWindow){var z=document.documentElement||document.body.parentNode||document.body,V=d.pageYOffset!==void 0?d.pageYOffset:z.scrollTop;this.props.isReverse?U=V:U=this.calculateOffset(c,V)}else this.props.isReverse?U=v.scrollTop:U=c.scrollHeight-v.scrollTop-v.clientHeight;U1&&arguments[1]!==void 0?arguments[1]:1,ne=Ze.length,Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(be).map(function(Re,Ie){if(!o.isValidElement(Re)||!Re.type)return null;var Pe=Re.type.isSelectOptGroup,Qe=Re.key,ae=Re.props,ie=ae.children,he=Object(de.a)(ae,["children"]);return q||!Pe?k(Re):Object(D.a)(Object(D.a)({key:"__RC_SELECT_GRP__".concat(Qe===null?Ie:Qe,"__"),label:Qe},he),{},{options:E(ie)})}).filter(function(Re){return Re})}var m=e("2Qr1"),i=e("qNPg"),y=e("U8pU"),R=e("Kwbf"),T=e("WKfj");function te(be){var q=be.mode,Re=be.options,Ie=be.children,Pe=be.backfill,Qe=be.allowClear,ae=be.placeholder,ie=be.getInputElement,he=be.showSearch,ue=be.onSearch,K=be.defaultOpen,_=be.autoFocus,fe=be.labelInValue,je=be.value,_e=be.inputValue,le=be.optionLabelProp,ke=q==="multiple"||q==="tags",ct=he!==void 0?he:ke||q==="combobox",we=Re||E(Ie);if(Object(R.a)(q!=="tags"||we.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var ze=we.some(function(Ne){return Ne.options?Ne.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});Object(R.a)(!ze,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)(q!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)(q==="combobox"||!Pe,"`backfill` only works with `combobox` mode."),Object(R.a)(q==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(R.b)(q!=="combobox"||!ie||!Qe||!ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ue&&!ct&&q!=="combobox"&&q!=="tags"&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!K||_,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),je!=null){var nt=Object(T.d)(je);Object(R.a)(!fe||nt.every(function(Ne){return Object(y.a)(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!ke||Array.isArray(je),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ie){var qe=null;Object(B.a)(Ie).some(function(Ne){if(!o.isValidElement(Ne)||!Ne.type)return!1;var Ze=Ne.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var Mt=Object(B.a)(Ne.props.children).every(function(jt){return!o.isValidElement(jt)||!Ne.type||jt.type.isSelectOption?!0:(qe=jt.type,!1)});return!Mt}return qe=Ze,!0}),qe&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(qe.displayName||qe.name||qe,"`.")),Object(R.a)(_e===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=te,Y=Object(i.a)({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:E,flattenOptions:m.d,getLabeledValue:m.e,filterOptions:m.b,isValueDisabled:m.g,findValueOption:m.c,warningProps:L,fillOptionsWithMissingValue:m.a}),re=function(be){Object(ge.a)(Re,be);var q=Object(M.a)(Re);function Re(){var Ie;return Object(x.a)(this,Re),Ie=q.apply(this,arguments),Ie.selectRef=o.createRef(),Ie.focus=function(){Ie.selectRef.current.focus()},Ie.blur=function(){Ie.selectRef.current.blur()},Ie}return Object(S.a)(Re,[{key:"render",value:function(){return o.createElement(Y,Object.assign({ref:this.selectRef},this.props))}}]),Re}(o.Component);re.Option=V,re.OptGroup=ee;var ye=re,Ue=O.c=ye},Nmxd:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(F,O,e){"use strict";e.d(O,"a",function(){return h});var x=e("Kwbf");function S(de,oe){var w=new Set;return de.forEach(function(Ce){oe.has(Ce)||w.add(Ce)}),w}function ge(de){var oe=de||{},w=oe.disabled,Ce=oe.disableCheckbox,j=oe.checkable;return!!(w||Ce)||j===!1}function M(de,oe,w,Ce){for(var j=new Set(de),I=new Set,W=0;W<=w;W+=1){var P=oe.get(W)||new Set;P.forEach(function(U){var z=U.key,V=U.node,Q=U.children,ee=Q===void 0?[]:Q;j.has(z)&&!Ce(V)&&ee.filter(function(D){return!Ce(D.node)}).forEach(function(D){j.add(D.key)})})}for(var c=new Set,d=w;d>=0;d-=1){var v=oe.get(d)||new Set;v.forEach(function(U){var z=U.parent,V=U.node;if(Ce(V)||!U.parent||c.has(U.parent.key))return;if(Ce(U.parent.node)){c.add(z.key);return}var Q=!0,ee=!1;(z.children||[]).filter(function(D){return!Ce(D.node)}).forEach(function(D){var B=D.key,k=j.has(B);Q&&!k&&(Q=!1),!ee&&(k||I.has(B))&&(ee=!0)}),Q&&j.add(z.key),ee&&I.add(z.key),c.add(z.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(S(I,j))}}function o(de,oe,w,Ce,j){for(var I=new Set(de),W=new Set(oe),P=0;P<=Ce;P+=1){var c=w.get(P)||new Set;c.forEach(function(z){var V=z.key,Q=z.node,ee=z.children,D=ee===void 0?[]:ee;!I.has(V)&&!W.has(V)&&!j(Q)&&D.filter(function(B){return!j(B.node)}).forEach(function(B){I.delete(B.key)})})}W=new Set;for(var d=new Set,v=Ce;v>=0;v-=1){var U=w.get(v)||new Set;U.forEach(function(z){var V=z.parent,Q=z.node;if(j(Q)||!z.parent||d.has(z.parent.key))return;if(j(z.parent.node)){d.add(V.key);return}var ee=!0,D=!1;(V.children||[]).filter(function(B){return!j(B.node)}).forEach(function(B){var k=B.key,E=I.has(k);ee&&!E&&(ee=!1),!D&&(E||W.has(k))&&(D=!0)}),ee||I.delete(V.key),D&&W.add(V.key),d.add(V.key)})}return{checkedKeys:Array.from(I),halfCheckedKeys:Array.from(S(W,I))}}function h(de,oe,w,Ce){var j=[],I;Ce?I=Ce:I=ge;var W=new Set(de.filter(function(v){var U=!!w[v];return U||j.push(v),U})),P=new Map,c=0;Object.keys(w).forEach(function(v){var U=w[v],z=U.level,V=P.get(z);V||(V=new Set,P.set(z,V)),V.add(U),c=Math.max(c,z)}),Object(x.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var d;return oe===!0?d=M(W,P,c,I):d=o(W,oe.halfCheckedKeys,P,c,I),d}},OZM5:function(F,O,e){"use strict";e.d(O,"b",function(){return Ce}),e.d(O,"a",function(){return j}),e.d(O,"k",function(){return I}),e.d(O,"h",function(){return W}),e.d(O,"i",function(){return P}),e.d(O,"g",function(){return c}),e.d(O,"c",function(){return d}),e.d(O,"d",function(){return v}),e.d(O,"j",function(){return V}),e.d(O,"e",function(){return Q}),e.d(O,"f",function(){return ee});var x=e("KQm4"),S=e("U8pU"),ge=e("Ff2n"),M=e("q1tI"),o=e.n(M),h=e("Kwbf"),de=e("WaYH"),oe=.25,w=2;function Ce(D,B){var k=D.slice(),E=k.indexOf(B);return E>=0&&k.splice(E,1),k}function j(D,B){var k=D.slice();return k.indexOf(B)===-1&&k.push(B),k}function I(D){return D.split("-")}function W(D,B){return"".concat(D,"-").concat(B)}function P(D){return D&&D.type&&D.type.isTreeNode}function c(D,B){var k=[D],E=B[D];function m(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(y){var R=y.key,T=y.children;k.push(R),m(T)})}return m(E.children),k}function d(D,B){var k=D.clientY,E=B.selectHandle.getBoundingClientRect(),m=E.top,i=E.bottom,y=E.height,R=Math.max(y*oe,w);return k<=m+R?-1:k>=i-R?1:0}function v(D,B){if(!D)return;var k=B.multiple;return k?D.slice():D.length?[D[0]]:D}var U=function(B){return B};function z(D,B){if(!D)return[];var k=B||{},E=k.processProps,m=E===void 0?U:E,i=Array.isArray(D)?D:[D];return i.map(function(y){var R=y.children,T=Object(ge.a)(y,["children"]),te=z(R,B);return o.a.createElement(de.a,Object.assign({},m(T)),te)})}function V(D){if(!D)return null;var B;if(Array.isArray(D))B={checkedKeys:D,halfCheckedKeys:void 0};else if(Object(S.a)(D)==="object")B={checkedKeys:D.checked||void 0,halfCheckedKeys:D.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function Q(D,B){var k=new Set;function E(m){if(k.has(m))return;var i=B[m];if(!i)return;k.add(m);var y=i.parent,R=i.node;if(R.disabled)return;y&&E(y.key)}return(D||[]).forEach(function(m){E(m)}),Object(x.a)(k)}function ee(D){var B={};return Object.keys(D).forEach(function(k){(k.startsWith("data-")||k.startsWith("aria-"))&&(B[k]=D[k])}),B}},Ohmc:function(F,O,e){F.exports=e.p+"static/certificate.fc32dc1b.jpg"},RMFE:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(F,O,e){F.exports=e("LSTS")},"SA+Z":function(F,O,e){var x=e("wTVA"),S=e("EbDI"),ge=e("ZhPi"),M=e("wkBT");function o(h){return x(h)||S(h)||ge(h)||M()}F.exports=o,F.exports.__esModule=!0,F.exports.default=F.exports},SMhR:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},TGq3:function(F,O,e){F.exports=e.p+"static/lockclose.365036e8.svg"},W6BS:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(F,O,e){"use strict";var x=e("rePB"),S=e("Ff2n"),ge=e("VTBJ"),M=e("1OyB"),o=e("vuIU"),h=e("JX7q"),de=e("Ji7U"),oe=e("LK+K"),w=e("q1tI"),Ce=e("TSYQ"),j=e.n(Ce),I=e("sboe"),W=e("OZM5"),P=function(B){var k=B.prefixCls,E=B.level,m=B.isStart,i=B.isEnd;if(!E)return null;for(var y="".concat(k,"-indent-unit"),R=[],T=0;T0&&sn[0]!==void 0?sn[0]:!1,!((De||me)&&!$)){Vt.next=11;break}return Je=Ee.getFieldValue(),ne(!0),kt(De?1:We+1),Vt.next=7,Object(Qe.wb)({page:De?1:We+1,container_id:jt.virtual_spacesId,container_type:5,school_name:Je==null?void 0:Je.school_name,keyword:Je==null?void 0:Je.keyword});case 7:_t=Vt.sent,pt(De?Object(L.a)(_t.users):[].concat(Object(L.a)(Ne),Object(L.a)(_t.users))),ne(!1),((Pt=_t.users)===null||Pt===void 0?void 0:Pt.length)<10&&Ae(!1);case 11:case"end":return Vt.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),It=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De;return c.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(!(at=="")){Je.next=4;break}re.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),Je.next=8;break;case 4:return Je.next=6,Object(Pe.a)(Object(te.a)(Object(te.a)({},jt),{},{user_ids:at}));case 6:De=Je.sent,De.status===0&&(re.b.success("\u6DFB\u52A0\u6210\u529F"),Mt({type:"classroomList/setActionTabs",payload:{key:"\u5237\u65B0\u6570\u636E"}}));case 8:case"end":return Je.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),cn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Z,De){return v.a.createElement(N.a,{value:De.numid,checked:at.includes(String(De.numid)),disabled:!!Z})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(Z,De){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement(ie.a,{className:"bold c-black",to:"/users/".concat(De.login),target:"_blank"},Z||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(Z){return Z?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Ie()(Z).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(Z){return Z===1?v.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0"):v.a.createElement("span",null,"\u672A\u6DFB\u52A0")}}];return v.a.createElement(M.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Te.actionTabs.key==="\u6DFB\u52A0\u6210\u5458",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(j.a)(c.a.mark(function Le(){return c.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:It();case 1:case"end":return De.stop()}},Le)})),onCancel:function(){He([]),Mt({type:"classroomList/setActionTabs",payload:{}})}},v.a.createElement(Ue.a,{layout:"inline",form:Ee,initialValues:{school_name:"",keyword:""},className:"mt10"},v.a.createElement(Ue.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},v.a.createElement(Ce.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((nt=Ot.selectArrs)===null||nt===void 0?void 0:nt.category_name)||((qe=Ot.selectArrs)===null||qe===void 0?void 0:qe.name)})),v.a.createElement(Ue.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},v.a.createElement("div",{ref:mt},v.a.createElement(m.a,{options:Gt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return mt.current},filterOption:function(Z,De){return De.value.toUpperCase().indexOf(Z.toUpperCase())!==-1}}))),v.a.createElement(Ue.a.Item,null,v.a.createElement(oe.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return Ut()}},"\u641C\u7D22"))),dt&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.A,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!dt&&Ne==""&&!$&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.t,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!dt&&Ne!=""||$)&&v.a.createElement("section",null,v.a.createElement("div",{className:"flexd-table-header mt20"},v.a.createElement(k.a,{pagination:!1,dataSource:[],columns:cn})),v.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},v.a.createElement(q.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Z){Wt()},hasMore:me,useWindow:!1},v.a.createElement(k.a,{loading:$,showHeader:!1,pagination:!1,dataSource:Ne,columns:cn,onRow:function(Z){return{onClick:function(Pt){Pt.currentTarget.querySelector("input").disabled||Zt(Pt.currentTarget.querySelector("input").value)}}}})))))},ue=Object(z.a)(function(we){var ze=we.classroomList,nt=we.loading;return{classroomList:ze,loading:nt}})(he),K=e("7Kak"),_=e("9yH6"),fe=function(ze){var nt,qe,Te=ze.classroomList,Ze=ze.loading,Mt=ze.dispatch,jt=Object(U.i)(),Ot=Te.actionTabs,St=Object(d.useState)([]),Rt=Object(I.a)(St,2),Gt=Rt[0],C=Rt[1],G=Object(d.useState)(!0),X=Object(I.a)(G,2),me=X[0],Ae=X[1],pe=Object(d.useState)(!1),se=Object(I.a)(pe,2),$=se[0],ne=se[1],Oe=Ue.a.useForm(),ve=Object(I.a)(Oe,1),Ee=ve[0],Ve=Object(d.useState)([]),xe=Object(I.a)(Ve,2),Ne=xe[0],pt=xe[1],$e=Object(d.useState)(0),it=Object(I.a)($e,2),We=it[0],kt=it[1],Me=Object(d.useState)(),Ye=Object(I.a)(Me,2),at=Ye[0],He=Ye[1],et=Object(d.useState)(!0),xt=Object(I.a)(et,2),dt=xt[0],Xe=xt[1],mt=Object(d.useRef)();Object(d.useEffect)(function(){Te.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458"&&(Xe(!0),Ge())},[Te.actionTabs.key]);var Ge=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De;return c.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Mt({type:"classroomList/getSchoolList",payload:{}});case 2:De=Je.sent,C(De.map(function(_t){return{value:_t}})),Xe(!1),Ae(!0),ne(!1),He(""),setTimeout(function(){Wt(!0)},200);case 9:case"end":return Je.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),Ut=function(){var Z;if(((Z=Ee.getFieldValue())===null||Z===void 0?void 0:Z.keyword)===""){pt([]),re.b.error("\u8BF7\u8F93\u5165\u59D3\u540D");return}Xe(!1),Ae(!0),ne(!1),He(""),setTimeout(function(){Wt(!0)},200)},Zt=function(Z){Z=String(Z),He(Z)},Wt=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De,Pt,Je,_t,sn=arguments;return c.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(De=sn.length>0&&sn[0]!==void 0?sn[0]:!1,!((De||me)&&!$)){Vt.next=11;break}return Je=Ee.getFieldValue(),ne(!0),kt(De?1:We+1),Vt.next=7,Object(Qe.wb)({page:De?1:We+1,container_id:jt.virtual_spacesId,container_type:5,source:"virtual_classroom",school_name:Je==null?void 0:Je.school_name,keyword:Je==null?void 0:Je.keyword});case 7:_t=Vt.sent,pt(De?Object(L.a)(_t.users):[].concat(Object(L.a)(Ne),Object(L.a)(_t.users))),ne(!1),((Pt=_t.users)===null||Pt===void 0?void 0:Pt.length)<10&&Ae(!1);case 11:case"end":return Vt.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),It=function(){var Le=Object(j.a)(c.a.mark(function Z(){var De;return c.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(!(at=="")){Je.next=4;break}re.b.error("\u8BF7\u9009\u62E9\u6210\u5458"),Je.next=8;break;case 4:return Je.next=6,Object(Pe.b)(Object(te.a)(Object(te.a)({},jt),{},{id:at,virtual_classroom_id:jt.virtual_spacesId}));case 6:De=Je.sent,De.status===0&&(re.b.success("\u66F4\u6362\u6210\u529F"),Mt({type:"classroomList/setActionTabs",payload:{key:"\u5237\u65B0\u6570\u636E"}}));case 8:case"end":return Je.stop()}},Z)}));return function(){return Le.apply(this,arguments)}}(),cn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Z,De){return v.a.createElement(_.a,{value:De.numid,checked:at===String(De.numid)})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(Z,De){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement(ie.a,{className:"bold c-black",to:"/users/".concat(De.login),target:"_blank"},Z||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Z||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(Z){return Z?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(Z){return v.a.createElement(y.a,{placement:"bottom",title:Z},v.a.createElement("span",null,Ie()(Z).format("YYYY-MM-DD HH:mm")))}}];return v.a.createElement(M.a,{centered:!0,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:Te.actionTabs.key==="\u66F4\u6362\u7BA1\u7406\u5458",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(j.a)(c.a.mark(function Le(){return c.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:It();case 1:case"end":return De.stop()}},Le)})),onCancel:function(){He(""),Mt({type:"classroomList/setActionTabs",payload:{}})}},v.a.createElement(Ue.a,{layout:"inline",form:Ee,initialValues:{school_name:"",keyword:""},className:"mt10"},v.a.createElement(Ue.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},v.a.createElement(Ce.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((nt=Ot.selectArrs)===null||nt===void 0?void 0:nt.category_name)||((qe=Ot.selectArrs)===null||qe===void 0?void 0:qe.name)})),v.a.createElement(Ue.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},v.a.createElement("div",{ref:mt},v.a.createElement(m.a,{options:Gt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return mt.current},filterOption:function(Z,De){return De.value.toUpperCase().indexOf(Z.toUpperCase())!==-1}}))),v.a.createElement(Ue.a.Item,null,v.a.createElement(oe.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return Ut()}},"\u641C\u7D22"))),dt&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.A,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!dt&&Ne==""&&!$&&v.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},v.a.createElement("img",{src:ae.t,width:"100",alt:""}),v.a.createElement("br",null),v.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!dt&&Ne!=""||$)&&v.a.createElement("section",null,v.a.createElement("div",{className:"flexd-table-header mt20"},v.a.createElement(k.a,{pagination:!1,dataSource:[],columns:cn})),v.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},v.a.createElement(q.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Z){Wt()},hasMore:me,useWindow:!1},v.a.createElement(k.a,{loading:$,showHeader:!1,pagination:!1,dataSource:Ne,columns:cn,onRow:function(Z){return{onClick:function(Pt){Pt.currentTarget.querySelector("input").disabled||Zt(Pt.currentTarget.querySelector("input").value)}}}})))))},je=Object(z.a)(function(we){var ze=we.classroomList,nt=we.loading;return{classroomList:ze,loading:nt}})(fe),_e=e("m3rI"),le=e("xKgJ"),ke=function(ze){var nt,qe=ze.classroomList,Te=ze.globalSetting,Ze=ze.virtualSpaces,Mt=ze.user,jt=ze.loading,Ot=ze.dispatch,St=Object(W.a)(ze,["classroomList","globalSetting","virtualSpaces","user","loading","dispatch"]),Rt=Object(d.useState)([]),Gt=Object(I.a)(Rt,2),C=Gt[0],G=Gt[1],X=Object(d.useState)(!1),me=Object(I.a)(X,2),Ae=me[0],pe=me[1],se=Ze.virtualSpacesDetails,$=Object(d.useState)("1"),ne=Object(I.a)($,2),Oe=ne[0],ve=ne[1],Ee=Object(U.i)(),Ve=Object(d.useState)({page:1,limit:6,search:"",virtual_classroom_id:Ee.virtual_spacesId,module_id:Ze.actionTabs.module_id}),xe=Object(I.a)(Ve,2),Ne=xe[0],pt=xe[1];function $e(){return it.apply(this,arguments)}function it(){return it=Object(j.a)(c.a.mark(function Me(){var Ye;return c.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/members.json"),{method:"get",params:Ne});case 2:Ye=He.sent,G(Ye);case 4:case"end":return He.stop()}},Me)})),it.apply(this,arguments)}function We(){return kt.apply(this,arguments)}function kt(){return kt=Object(j.a)(c.a.mark(function Me(){var Ye;return c.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/appling_member_list.json"),{method:"get",params:Ne});case 2:Ye=He.sent,G(Ye);case 4:case"end":return He.stop()}},Me)})),kt.apply(this,arguments)}return Object(d.useEffect)(function(){$e()},[]),Object(d.useEffect)(function(){qe.actionTabs.key==="\u5237\u65B0\u6570\u636E"&&($e(),ve("1"),Ot({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:Ee.virtual_spacesId}}))},[qe.actionTabs.key]),v.a.createElement("div",{className:ee.a.warp},v.a.createElement("div",{className:ee.a.title},v.a.createElement(Ce.a.Search,{onSearch:function(Ye){Ne.search=Ye,Oe==="1"?$e():We()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u641C\u7D22",className:ee.a.Inputstyle}),(se.is_member||Object(le.v)())&&v.a.createElement(oe.a,{type:"primary",ghost:!0,onClick:function(){Ot({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u6210\u5458",params:Ne}})}},v.a.createElement("i",{style:{fontSize:"14px",marginRight:"8px"},className:"iconfont icon-tianjia1 mr3 "})," \u6DFB\u52A0\u6210\u5458")),v.a.createElement("div",{className:ee.a.Content},v.a.createElement(h.a,{activeKey:Oe,onChange:function(Ye){Ne.page=1,ve(Ye),Ye==="1"?$e():We()}},v.a.createElement(h.a.TabPane,{key:"1",tab:"\u793E\u533A\u6210\u5458\uFF08".concat(Oe==="1"?C.total_count:C.member_total_count,"\uFF09")}),v.a.createElement(h.a.TabPane,{key:"2",tab:"\u7533\u8BF7\u5BA1\u6279\uFF08".concat(Oe==="2"?C.total_count:C.apply_total_count,"\uFF09")})),(C==null?void 0:C.total_count)<=0&&v.a.createElement(V.a,{Buttonclass:ee.a.buttonstyle,customText:"\u6B64\u9879\u76EE\u8FD8\u6CA1\u6709\u6210\u5458\uFF0C\u7ACB\u5373\u6DFB\u52A0\u5B83\u4EEC\u5427\uFF5E"}),C==null||((nt=C.members)===null||nt===void 0)?void 0:nt.map(function(Me,Ye){return v.a.createElement("div",{style:{marginTop:Ye===0?"10px":"15px"},className:ee.a.items,onClick:function(){window.open("/users/".concat(Me.login))}},v.a.createElement("div",{style:{display:"flex"}},v.a.createElement("img",{src:_e.a.IMG_SERVER+"/images/"+(Me==null?void 0:Me.image_url)}),v.a.createElement("div",null,v.a.createElement("div",{style:{fontSize:"16px",display:"flex",fontWeight:600}},Me==null?void 0:Me.name,(Me==null?void 0:Me.is_creator)&&v.a.createElement("div",{className:ee.a.adminsstyle},"\u7BA1\u7406\u5458")),v.a.createElement("div",{style:{fontSize:"12px",color:"#7D8592",marginTop:"11px"}},Me.school,Me.school&&Me.department_name&&"-",Me.department_name))),v.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},((Me==null?void 0:Me.is_creator)&&Mt.userInfo.user_id===Me.user_id||Object(le.v)())&&Ye===0&&Oe==="1"&&(Me==null?void 0:Me.is_creator)&&v.a.createElement("span",{onClick:function(He){He.stopPropagation(),He.preventDefault(),Ot({type:"classroomList/setActionTabs",payload:{key:"\u66F4\u6362\u7BA1\u7406\u5458",params:Ne}})},className:ee.a.upadmin},"\u66F4\u6362\u7BA1\u7406\u5458"),(Me==null?void 0:Me.can_remove)&&Oe==="1"&&v.a.createElement("i",{onClick:function(He){He.stopPropagation(),He.preventDefault(),M.a.confirm({title:"\u79FB\u9664\u6210\u5458",content:"\u786E\u8BA4\u5C06\u6210\u5458\u300A".concat(Me.name,"\u300B\u79FB\u51FA\u865A\u62DF\u793E\u533A\u5417\uFF1F"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var et=Object(j.a)(c.a.mark(function dt(){var Xe;return c.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/members/").concat(Me.user_id,".json"),{method:"Delete"});case 2:Xe=Ge.sent,Xe.status===0&&($e(),Ot({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:Ee.virtual_spacesId}}));case 4:case"end":return Ge.stop()}},dt)}));function xt(){return et.apply(this,arguments)}return xt}()})},style:{color:"#196efd",cursor:"pointer",fontSize:"10px"},className:"iconfont icon-piliangshanchubeifen mr3 font16"}),!(Me!=null&&Me.is_creator)&&Oe==="2"&&v.a.createElement("div",{style:{cursor:"pointer"}},v.a.createElement("span",{onClick:function(){var at=Object(j.a)(c.a.mark(function He(et){var xt;return c.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return et.stopPropagation(),et.preventDefault(),Xe.next=4,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/agree.json"),{method:"post",body:{apply_id:Me.source_id}});case 4:xt=Xe.sent,xt.status===0&&We();case 6:case"end":return Xe.stop()}},He)}));return function(He){return at.apply(this,arguments)}}(),className:ee.a.yes},"\u540C\u610F"),v.a.createElement("span",{onClick:function(){var at=Object(j.a)(c.a.mark(function He(et){var xt;return c.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return et.stopPropagation(),et.preventDefault(),Xe.next=4,Object(D.a)("/api/virtual_classrooms/".concat(Ee.virtual_spacesId,"/refuse.json"),{method:"post",body:{apply_id:Me.source_id}});case 4:xt=Xe.sent,xt.status===0&&We();case 6:case"end":return Xe.stop()}},He)}));return function(He){return at.apply(this,arguments)}}(),className:ee.a.no},"\u62D2\u7EDD"))))})),v.a.createElement(ue,null),v.a.createElement(je,null),v.a.createElement(S.a,{current:Ne.page,total:C==null?void 0:C.total_count,style:{textAlign:"end",marginTop:"20px"},pageSize:Ne.limit,hideOnSinglePage:!0,onChange:function(Ye){Ne.page=Ye,Oe==="1"?$e():We()}}))},ct=O.default=Object(z.a)(function(we){var ze=we.classroomList,nt=we.loading,qe=we.globalSetting,Te=we.virtualSpaces,Ze=we.user;return{classroomList:ze,globalSetting:qe,loading:nt.effects,virtualSpaces:Te,user:Ze}})(ke)},"4qgm":function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(F,O,e){"use strict";e.d(O,"a",function(){return z}),e.d(O,"b",function(){return k});var x=e("Ty5D"),S=e("dI71"),ge=e("q1tI"),M=e.n(ge),o=e("YS25"),h=e("17x9"),de=e.n(h),oe=e("wx14"),w=e("zLVn"),Ce=e("9R94"),j=function(m){Object(S.a)(i,m);function i(){for(var R,N=arguments.length,te=new Array(N),L=0;L=0||N.relatedTarget.className.indexOf("".concat(re,"-next"))>=0))return;m.setState({goInputText:""}),Y(m.getValidValue())},m.go=function(N){var te=m.state.goInputText;if(te==="")return;(N.keyCode===P.ENTER||N.type==="click")&&(m.setState({goInputText:""}),m.props.quickGo(m.getValidValue()))},m}return Object(o.a)(E,[{key:"getValidValue",value:function(){var i=this.state,y=i.goInputText,R=i.current;return!y||isNaN(y)?R:Number(y)}},{key:"getPageSizeOptions",value:function(){var i=this.props,y=i.pageSize,R=i.pageSizeOptions;return R.some(function(N){return N.toString()===y.toString()})?R:R.concat([y.toString()]).sort(function(N,te){var L=isNaN(Number(N))?0:Number(N),Y=isNaN(Number(te))?0:Number(te);return L-Y})}},{key:"render",value:function(){var i=this,y=this.props,R=y.pageSize,N=y.locale,te=y.rootPrefixCls,L=y.changeSize,Y=y.quickGo,re=y.goButton,ye=y.selectComponentClass,Ue=y.buildOptionText,be=y.selectPrefixCls,q=y.disabled,Re=this.state.goInputText,Ie="".concat(te,"-options"),Pe=ye,Qe=null,ae=null,ie=null;if(!L&&!Y)return null;var he=this.getPageSizeOptions();if(L&&Pe){var ue=he.map(function(K,_){return w.a.createElement(Pe.Option,{key:_,value:K.toString()},(Ue||i.buildOptionText)(K))});Qe=w.a.createElement(Pe,{disabled:q,prefixCls:be,showSearch:!1,className:"".concat(Ie,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(R||he[0]).toString(),onChange:this.changeSize,getPopupContainer:function(_){return _.parentNode}},ue)}return Y&&(re&&(ie=typeof re=="boolean"?w.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:q,className:"".concat(Ie,"-quick-jumper-button")},N.jump_to_confirm):w.a.createElement("span",{onClick:this.go,onKeyUp:this.go},re)),ae=w.a.createElement("div",{className:"".concat(Ie,"-quick-jumper")},N.jump_to,w.a.createElement("input",{disabled:q,type:"text",value:Re,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,ie)),w.a.createElement("li",{className:"".concat(Ie)},Qe,ae)}}]),E}(w.a.Component);c.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=c,v=e("N2Kk");function U(){}function z(B){return typeof B=="number"&&isFinite(B)&&Math.floor(B)===B}function V(B,k,E){return E}function Q(B,k,E){var m=typeof B=="undefined"?k.pageSize:B;return Math.floor((E.total-1)/m)+1}var ee=function(B){Object(h.a)(E,B);var k=Object(de.a)(E);function E(m){var i;Object(M.a)(this,E),i=k.call(this,m),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(Q(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(L,Y){var re=i.props.prefixCls,ye=L||w.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(re,"-item-link")});return typeof L=="function"&&(ye=w.a.createElement(L,Object(ge.a)({},i.props))),ye},i.savePaginationNode=function(L){i.paginationNode=L},i.isValid=function(L){return z(L)&&L!==i.state.current},i.shouldDisplayQuickJumper=function(){var L=i.props,Y=L.showQuickJumper,re=L.pageSize,ye=L.total;return ye<=re?!1:Y},i.handleKeyDown=function(L){(L.keyCode===P.ARROW_UP||L.keyCode===P.ARROW_DOWN)&&L.preventDefault()},i.handleKeyUp=function(L){var Y=i.getValidValue(L),re=i.state.currentInputValue;Y!==re&&i.setState({currentInputValue:Y}),L.keyCode===P.ENTER?i.handleChange(Y):L.keyCode===P.ARROW_UP?i.handleChange(Y-1):L.keyCode===P.ARROW_DOWN&&i.handleChange(Y+1)},i.changePageSize=function(L){var Y=i.state.current,re=Q(L,i.state,i.props);Y=Y>re?re:Y,re===0&&(Y=i.state.current),typeof L=="number"&&("pageSize"in i.props||i.setState({pageSize:L}),"current"in i.props||i.setState({current:Y,currentInputValue:Y})),i.props.onShowSizeChange(Y,L),"onChange"in i.props&&i.props.onChange&&i.props.onChange(Y,L)},i.handleChange=function(L){var Y=i.props.disabled,re=L;if(i.isValid(re)&&!Y){var ye=Q(void 0,i.state,i.props);re>ye?re=ye:re<1&&(re=1),"current"in i.props||i.setState({current:re,currentInputValue:re});var Ue=i.state.pageSize;return i.props.onChange(re,Ue),re}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?re-2:0),Ue=2;Ue=R?te=R:te=Number(y),te}},{key:"getShowSizeChanger",value:function(){var i=this.props,y=i.showSizeChanger,R=i.total,N=i.totalBoundaryShowSizeChanger;return typeof y!="undefined"?y:R>N}},{key:"renderPrev",value:function(i){var y=this.props,R=y.prevIcon,N=y.itemRender,te=N(i,"prev",this.getItemIcon(R,"prev page")),L=!this.hasPrev();return Object(oe.isValidElement)(te)?Object(oe.cloneElement)(te,{disabled:L}):te}},{key:"renderNext",value:function(i){var y=this.props,R=y.nextIcon,N=y.itemRender,te=N(i,"next",this.getItemIcon(R,"next page")),L=!this.hasNext();return Object(oe.isValidElement)(te)?Object(oe.cloneElement)(te,{disabled:L}):te}},{key:"render",value:function(){var i=this,y=this.props,R=y.prefixCls,N=y.className,te=y.style,L=y.disabled,Y=y.hideOnSinglePage,re=y.total,ye=y.locale,Ue=y.showQuickJumper,be=y.showLessItems,q=y.showTitle,Re=y.showTotal,Ie=y.simple,Pe=y.itemRender,Qe=y.showPrevNextJumpers,ae=y.jumpPrevIcon,ie=y.jumpNextIcon,he=y.selectComponentClass,ue=y.selectPrefixCls,K=y.pageSizeOptions,_=this.state,fe=_.current,je=_.pageSize,_e=_.currentInputValue;if(Y===!0&&re<=je)return null;var le=Q(void 0,this.state,this.props),ke=[],ct=null,we=null,ze=null,nt=null,qe=null,Te=Ue&&Ue.goButton,Ze=be?1:2,Mt=fe-1>0?fe-1:0,jt=fe+1=Ze*2&&fe!==1+2&&(ke[0]=Object(oe.cloneElement)(ke[0],{className:"".concat(R,"-item-after-jump-prev")}),ke.unshift(ct)),le-fe>=Ze*2&&fe!==le-2&&(ke[ke.length-1]=Object(oe.cloneElement)(ke[ke.length-1],{className:"".concat(R,"-item-before-jump-next")}),ke.push(we)),X!==1&&ke.unshift(ze),me!==le&&ke.push(nt)}var se=null;Re&&(se=w.a.createElement("li",{className:"".concat(R,"-total-text")},Re(re,[re===0?0:(fe-1)*je+1,fe*je>re?re:fe*je])));var $=!this.hasPrev()||!le,ne=!this.hasNext()||!le;return w.a.createElement("ul",Object(x.a)({className:j()(R,N,Object(S.a)({},"".concat(R,"-disabled"),L)),style:te,unselectable:"unselectable",ref:this.savePaginationNode},Ot),se,w.a.createElement("li",{title:q?ye.prev_page:null,onClick:this.prev,tabIndex:$?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(R,"-prev"),Object(S.a)({},"".concat(R,"-disabled"),$)),"aria-disabled":$},this.renderPrev(Mt)),ke,w.a.createElement("li",{title:q?ye.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(R,"-next"),Object(S.a)({},"".concat(R,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(jt)),w.a.createElement(d,{disabled:L,locale:ye,rootPrefixCls:R,selectComponentClass:he,selectPrefixCls:ue,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fe,pageSize:je,pageSizeOptions:K,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Te}))}}],[{key:"getDerivedStateFromProps",value:function(i,y){var R={};if("current"in i&&(R.current=i.current,i.current!==y.current&&(R.currentInputValue=R.current)),"pageSize"in i&&i.pageSize!==y.pageSize){var N=y.current,te=Q(i.pageSize,y,i);N=N>te?te:N,"current"in i||(R.current=N,R.currentInputValue=N),R.pageSize=i.pageSize}return R}}]),E}(w.a.Component);ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:U,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:U,locale:v.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var D=ee},"6RRn":function(F,O,e){"use strict";var x=e("wCXF"),S=e("n6Qo");e.d(O,"b",function(){return S.a});var ge=e("IBYe"),M=e("6eGT"),o=e("hW8S");e.d(O,"a",function(){return o.a}),O.c=x.b},"6eGT":function(F,O,e){"use strict";function x(S){return null}O.a=x},"7ZXX":function(F,O,e){F.exports=e.p+"static/err.6e7c5817.png"},"7v3h":function(F,O,e){F.exports=e.p+"static/empty2.dd73f390.png"},"8/bI":function(F,O,e){F.exports=e.p+"static/empty.8918e228.png"},"815F":function(F,O,e){"use strict";e.d(O,"e",function(){return de}),e.d(O,"c",function(){return w}),e.d(O,"d",function(){return Ce}),e.d(O,"a",function(){return I}),e.d(O,"f",function(){return W}),e.d(O,"b",function(){return P});var x=e("KQm4"),S=e("VTBJ"),ge=e("Ff2n"),M=e("Zm9Q"),o=e("Kwbf"),h=e("OZM5");function de(c,d){return c!=null?c:d}function oe(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function v(U){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(U||[]).forEach(function(V){var Q=V.key,ee=V.children;Object(o.a)(Q!=null,"Tree node must have a certain key: [".concat(z).concat(Q,"]"));var D=String(Q);Object(o.a)(!d.has(D)||Q===null||Q===void 0,"Same 'key' exist in the Tree: ".concat(D)),d.set(D,!0),v(ee,"".concat(z).concat(D," > "))})}v(c)}function w(c){function d(v){var U=Object(M.a)(v);return U.map(function(z){if(!Object(h.i)(z))return Object(o.a)(!z,"Tree/TreeNode can only accept TreeNode as children."),null;var V=z.key,Q=z.props,ee=Q.children,D=Object(ge.a)(Q,["children"]),B=Object(S.a)({key:V},D),k=d(ee);return k.length&&(B.children=k),B}).filter(function(z){return z})}return d(c)}function Ce(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=new Set(d===!0?[]:d),U=[];function z(V){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(ee,D){var B=Object(h.h)(Q?Q.pos:"0",D),k=de(ee.key,B),E=Object(S.a)(Object(S.a)({},ee),{},{parent:Q,pos:B,children:null,data:ee,isStart:[].concat(Object(x.a)(Q?Q.isStart:[]),[D===0]),isEnd:[].concat(Object(x.a)(Q?Q.isEnd:[]),[D===V.length-1])});return U.push(E),d===!0||v.has(k)?E.children=z(ee.children||[],E):E.children=[],E})}return z(c),U}function j(c,d,v){var U;v?typeof v=="string"?U=function(Q){return Q[v]}:typeof v=="function"&&(U=function(Q){return v(Q)}):U=function(Q,ee){return de(Q.key,ee)};function z(V,Q,ee){var D=V?V.children:c,B=V?Object(h.h)(ee.pos,Q):"0";if(V){var k=U(V,B),E={node:V,index:Q,pos:B,key:k,parentPos:ee.node?ee.pos:null,level:ee.level+1};d(E)}D&&D.forEach(function(m,i){z(m,i,{node:V,pos:B,level:ee?ee.level+1:-1})})}z(null)}function I(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=d.initWrapper,U=d.processEntity,z=d.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,Q={},ee={},D={posEntities:Q,keyEntities:ee};return v&&(D=v(D)||D),j(c,function(B){var k=B.node,E=B.index,m=B.pos,i=B.key,y=B.parentPos,R=B.level,N={node:k,index:E,key:i,pos:m,level:R},te=de(i,m);Q[m]=N,ee[te]=N,N.parent=Q[y],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),U&&U(N,D)},V),z&&z(D),D}function W(c,d){var v=d.expandedKeys,U=d.selectedKeys,z=d.loadedKeys,V=d.loadingKeys,Q=d.checkedKeys,ee=d.halfCheckedKeys,D=d.dragOverNodeKey,B=d.dropPosition,k=d.keyEntities,E=k[c],m={eventKey:c,expanded:v.indexOf(c)!==-1,selected:U.indexOf(c)!==-1,loaded:z.indexOf(c)!==-1,loading:V.indexOf(c)!==-1,checked:Q.indexOf(c)!==-1,halfChecked:ee.indexOf(c)!==-1,pos:String(E?E.pos:""),dragOver:D===c&&B===0,dragOverGapTop:D===c&&B===-1,dragOverGapBottom:D===c&&B===1};return m}function P(c){var d=c.data,v=c.expanded,U=c.selected,z=c.checked,V=c.loaded,Q=c.loading,ee=c.halfChecked,D=c.dragOver,B=c.dragOverGapTop,k=c.dragOverGapBottom,E=c.pos,m=c.active,i=Object(S.a)(Object(S.a)({},d),{},{expanded:v,selected:U,checked:z,loaded:V,loading:Q,halfChecked:ee,dragOver:D,dragOverGapTop:B,dragOverGapBottom:k,pos:E,active:m});return"props"in i||Object.defineProperty(i,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),c}}),i}},"A/g1":function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BdwD:function(F,O,e){"use strict";var x=e("+L6B"),S=e("2/Rp"),ge=e("0Owb"),M=e("k1fw"),o=e("q1tI"),h=e.n(o),de=e("FOrL"),oe=e.n(de),w=function(j){var I=j.buttonProps,W=I===void 0?{}:I,P=j.styles,c=P===void 0?{}:P,d=j.customText,v=j.ButtonText,U=j.ButtonClick,z=j.Buttonclass,V=j.ButtonTwo;return h.a.createElement("section",{className:"tc animated fadeIn",style:Object(M.a)(Object(M.a)({},{color:"#999",margin:"200px auto"}),c)},h.a.createElement("img",{src:oe.a}),h.a.createElement("p",{className:"mt20 font14"},d||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),v&&h.a.createElement(S.a,Object(ge.a)({className:z,onClick:U},W),v),V&&V)};O.a=w},E7E6:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},FOrL:function(F,O,e){F.exports=e.p+"static/nodata.a6b3f948.png"},FPkq:function(F,O,e){F.exports=e.p+"static/qrCode.dd0fe9b2.png"},GABl:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},HpTS:function(F,O,e){F.exports=e.p+"static/small_program.f74069ec.png"},IBYe:function(F,O,e){"use strict";function x(S){return null}O.a=x},JWDV:function(F,O,e){F.exports=e.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(F,O,e){F.exports=e.p+"static/qrcode.54870d9b.png"},LSTS:function(F,O,e){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var x=function(){function I(W,P){for(var c=0;c=0)continue;if(!Object.prototype.hasOwnProperty.call(I,c))continue;P[c]=I[c]}return P}function oe(I,W){if(!(I instanceof W))throw new TypeError("Cannot call a class as a function")}function w(I,W){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:I}function Ce(I,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);I.prototype=Object.create(W&&W.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(I,W):I.__proto__=W)}var j=function(I){Ce(W,I);function W(P){oe(this,W);var c=w(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,P));return c.scrollListener=c.scrollListener.bind(c),c.eventListenerOptions=c.eventListenerOptions.bind(c),c.mousewheelListener=c.mousewheelListener.bind(c),c}return x(W,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var c=this.getParentElement(this.scrollComponent);c.scrollTop=c.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var c=!1,d={get passive(){c=!0}};try{document.addEventListener("test",null,d),document.removeEventListener("test",null,d)}catch(v){}return c}},{key:"eventListenerOptions",value:function(){var c=this.props.useCapture;return this.isPassiveSupported()&&(c={useCapture:this.props.useCapture,passive:!0}),c}},{key:"setDefaultLoader",value:function(c){this.defaultLoader=c}},{key:"detachMousewheelListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.scrollComponent.parentNode),c.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.getParentElement(this.scrollComponent)),c.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(c){var d=this.props.getScrollParent&&this.props.getScrollParent();return d!=null?d:c&&c.parentNode}},{key:"filterProps",value:function(c){return c}},{key:"attachScrollListener",value:function(){var c=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!c)return;var d=window;this.props.useWindow===!1&&(d=c),d.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),d.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),d.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(c){c.deltaY===1&&!this.isPassiveSupported()&&c.preventDefault()}},{key:"scrollListener",value:function(){var c=this.scrollComponent,d=window,v=this.getParentElement(c),U=void 0;if(this.props.useWindow){var z=document.documentElement||document.body.parentNode||document.body,V=d.pageYOffset!==void 0?d.pageYOffset:z.scrollTop;this.props.isReverse?U=V:U=this.calculateOffset(c,V)}else this.props.isReverse?U=v.scrollTop:U=c.scrollHeight-v.scrollTop-v.clientHeight;U1&&arguments[1]!==void 0?arguments[1]:1,ne=Ze.length,Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(be).map(function(Re,Ie){if(!o.isValidElement(Re)||!Re.type)return null;var Pe=Re.type.isSelectOptGroup,Qe=Re.key,ae=Re.props,ie=ae.children,he=Object(de.a)(ae,["children"]);return q||!Pe?k(Re):Object(D.a)(Object(D.a)({key:"__RC_SELECT_GRP__".concat(Qe===null?Ie:Qe,"__"),label:Qe},he),{},{options:E(ie)})}).filter(function(Re){return Re})}var m=e("2Qr1"),i=e("qNPg"),y=e("U8pU"),R=e("Kwbf"),N=e("WKfj");function te(be){var q=be.mode,Re=be.options,Ie=be.children,Pe=be.backfill,Qe=be.allowClear,ae=be.placeholder,ie=be.getInputElement,he=be.showSearch,ue=be.onSearch,K=be.defaultOpen,_=be.autoFocus,fe=be.labelInValue,je=be.value,_e=be.inputValue,le=be.optionLabelProp,ke=q==="multiple"||q==="tags",ct=he!==void 0?he:ke||q==="combobox",we=Re||E(Ie);if(Object(R.a)(q!=="tags"||we.every(function(Te){return!Te.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var ze=we.some(function(Te){return Te.options?Te.options.some(function(Ze){return typeof("value"in Ze?Ze.value:Ze.key)=="number"}):typeof("value"in Te?Te.value:Te.key)=="number"});Object(R.a)(!ze,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)(q!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)(q==="combobox"||!Pe,"`backfill` only works with `combobox` mode."),Object(R.a)(q==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(R.b)(q!=="combobox"||!ie||!Qe||!ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ue&&!ct&&q!=="combobox"&&q!=="tags"&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!K||_,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),je!=null){var nt=Object(N.d)(je);Object(R.a)(!fe||nt.every(function(Te){return Object(y.a)(Te)==="object"&&("key"in Te||"value"in Te)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!ke||Array.isArray(je),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ie){var qe=null;Object(B.a)(Ie).some(function(Te){if(!o.isValidElement(Te)||!Te.type)return!1;var Ze=Te.type;if(Ze.isSelectOption)return!1;if(Ze.isSelectOptGroup){var Mt=Object(B.a)(Te.props.children).every(function(jt){return!o.isValidElement(jt)||!Te.type||jt.type.isSelectOption?!0:(qe=jt.type,!1)});return!Mt}return qe=Ze,!0}),qe&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(qe.displayName||qe.name||qe,"`.")),Object(R.a)(_e===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=te,Y=Object(i.a)({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:E,flattenOptions:m.d,getLabeledValue:m.e,filterOptions:m.b,isValueDisabled:m.g,findValueOption:m.c,warningProps:L,fillOptionsWithMissingValue:m.a}),re=function(be){Object(ge.a)(Re,be);var q=Object(M.a)(Re);function Re(){var Ie;return Object(x.a)(this,Re),Ie=q.apply(this,arguments),Ie.selectRef=o.createRef(),Ie.focus=function(){Ie.selectRef.current.focus()},Ie.blur=function(){Ie.selectRef.current.blur()},Ie}return Object(S.a)(Re,[{key:"render",value:function(){return o.createElement(Y,Object.assign({ref:this.selectRef},this.props))}}]),Re}(o.Component);re.Option=V,re.OptGroup=ee;var ye=re,Ue=O.c=ye},Nmxd:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(F,O,e){"use strict";e.d(O,"a",function(){return h});var x=e("Kwbf");function S(de,oe){var w=new Set;return de.forEach(function(Ce){oe.has(Ce)||w.add(Ce)}),w}function ge(de){var oe=de||{},w=oe.disabled,Ce=oe.disableCheckbox,j=oe.checkable;return!!(w||Ce)||j===!1}function M(de,oe,w,Ce){for(var j=new Set(de),I=new Set,W=0;W<=w;W+=1){var P=oe.get(W)||new Set;P.forEach(function(U){var z=U.key,V=U.node,Q=U.children,ee=Q===void 0?[]:Q;j.has(z)&&!Ce(V)&&ee.filter(function(D){return!Ce(D.node)}).forEach(function(D){j.add(D.key)})})}for(var c=new Set,d=w;d>=0;d-=1){var v=oe.get(d)||new Set;v.forEach(function(U){var z=U.parent,V=U.node;if(Ce(V)||!U.parent||c.has(U.parent.key))return;if(Ce(U.parent.node)){c.add(z.key);return}var Q=!0,ee=!1;(z.children||[]).filter(function(D){return!Ce(D.node)}).forEach(function(D){var B=D.key,k=j.has(B);Q&&!k&&(Q=!1),!ee&&(k||I.has(B))&&(ee=!0)}),Q&&j.add(z.key),ee&&I.add(z.key),c.add(z.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(S(I,j))}}function o(de,oe,w,Ce,j){for(var I=new Set(de),W=new Set(oe),P=0;P<=Ce;P+=1){var c=w.get(P)||new Set;c.forEach(function(z){var V=z.key,Q=z.node,ee=z.children,D=ee===void 0?[]:ee;!I.has(V)&&!W.has(V)&&!j(Q)&&D.filter(function(B){return!j(B.node)}).forEach(function(B){I.delete(B.key)})})}W=new Set;for(var d=new Set,v=Ce;v>=0;v-=1){var U=w.get(v)||new Set;U.forEach(function(z){var V=z.parent,Q=z.node;if(j(Q)||!z.parent||d.has(z.parent.key))return;if(j(z.parent.node)){d.add(V.key);return}var ee=!0,D=!1;(V.children||[]).filter(function(B){return!j(B.node)}).forEach(function(B){var k=B.key,E=I.has(k);ee&&!E&&(ee=!1),!D&&(E||W.has(k))&&(D=!0)}),ee||I.delete(V.key),D&&W.add(V.key),d.add(V.key)})}return{checkedKeys:Array.from(I),halfCheckedKeys:Array.from(S(W,I))}}function h(de,oe,w,Ce){var j=[],I;Ce?I=Ce:I=ge;var W=new Set(de.filter(function(v){var U=!!w[v];return U||j.push(v),U})),P=new Map,c=0;Object.keys(w).forEach(function(v){var U=w[v],z=U.level,V=P.get(z);V||(V=new Set,P.set(z,V)),V.add(U),c=Math.max(c,z)}),Object(x.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var d;return oe===!0?d=M(W,P,c,I):d=o(W,oe.halfCheckedKeys,P,c,I),d}},OZM5:function(F,O,e){"use strict";e.d(O,"b",function(){return Ce}),e.d(O,"a",function(){return j}),e.d(O,"k",function(){return I}),e.d(O,"h",function(){return W}),e.d(O,"i",function(){return P}),e.d(O,"g",function(){return c}),e.d(O,"c",function(){return d}),e.d(O,"d",function(){return v}),e.d(O,"j",function(){return V}),e.d(O,"e",function(){return Q}),e.d(O,"f",function(){return ee});var x=e("KQm4"),S=e("U8pU"),ge=e("Ff2n"),M=e("q1tI"),o=e.n(M),h=e("Kwbf"),de=e("WaYH"),oe=.25,w=2;function Ce(D,B){var k=D.slice(),E=k.indexOf(B);return E>=0&&k.splice(E,1),k}function j(D,B){var k=D.slice();return k.indexOf(B)===-1&&k.push(B),k}function I(D){return D.split("-")}function W(D,B){return"".concat(D,"-").concat(B)}function P(D){return D&&D.type&&D.type.isTreeNode}function c(D,B){var k=[D],E=B[D];function m(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(y){var R=y.key,N=y.children;k.push(R),m(N)})}return m(E.children),k}function d(D,B){var k=D.clientY,E=B.selectHandle.getBoundingClientRect(),m=E.top,i=E.bottom,y=E.height,R=Math.max(y*oe,w);return k<=m+R?-1:k>=i-R?1:0}function v(D,B){if(!D)return;var k=B.multiple;return k?D.slice():D.length?[D[0]]:D}var U=function(B){return B};function z(D,B){if(!D)return[];var k=B||{},E=k.processProps,m=E===void 0?U:E,i=Array.isArray(D)?D:[D];return i.map(function(y){var R=y.children,N=Object(ge.a)(y,["children"]),te=z(R,B);return o.a.createElement(de.a,Object.assign({},m(N)),te)})}function V(D){if(!D)return null;var B;if(Array.isArray(D))B={checkedKeys:D,halfCheckedKeys:void 0};else if(Object(S.a)(D)==="object")B={checkedKeys:D.checked||void 0,halfCheckedKeys:D.halfChecked||void 0};else return Object(h.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function Q(D,B){var k=new Set;function E(m){if(k.has(m))return;var i=B[m];if(!i)return;k.add(m);var y=i.parent,R=i.node;if(R.disabled)return;y&&E(y.key)}return(D||[]).forEach(function(m){E(m)}),Object(x.a)(k)}function ee(D){var B={};return Object.keys(D).forEach(function(k){(k.startsWith("data-")||k.startsWith("aria-"))&&(B[k]=D[k])}),B}},Ohmc:function(F,O,e){F.exports=e.p+"static/certificate.fc32dc1b.jpg"},RMFE:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(F,O,e){F.exports=e("LSTS")},"SA+Z":function(F,O,e){var x=e("wTVA"),S=e("EbDI"),ge=e("ZhPi"),M=e("wkBT");function o(h){return x(h)||S(h)||ge(h)||M()}F.exports=o,F.exports.__esModule=!0,F.exports.default=F.exports},SMhR:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},TGq3:function(F,O,e){F.exports=e.p+"static/lockclose.365036e8.svg"},W6BS:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(F,O,e){"use strict";var x=e("rePB"),S=e("Ff2n"),ge=e("VTBJ"),M=e("1OyB"),o=e("vuIU"),h=e("JX7q"),de=e("Ji7U"),oe=e("LK+K"),w=e("q1tI"),Ce=e("TSYQ"),j=e.n(Ce),I=e("sboe"),W=e("OZM5"),P=function(B){var k=B.prefixCls,E=B.level,m=B.isStart,i=B.isEnd;if(!E)return null;for(var y="".concat(k,"-indent-unit"),R=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1,he=ae.getAttribute("id")||ae.getAttribute("data-reactid")||ae.getAttribute("name");if(ie&&L[he])return L[he];var ue=window.getComputedStyle(ae),K=ue.getPropertyValue("box-sizing")||ue.getPropertyValue("-moz-box-sizing")||ue.getPropertyValue("-webkit-box-sizing"),_=parseFloat(ue.getPropertyValue("padding-bottom"))+parseFloat(ue.getPropertyValue("padding-top")),fe=parseFloat(ue.getPropertyValue("border-bottom-width"))+parseFloat(ue.getPropertyValue("border-top-width")),je=te.map(function(le){return"".concat(le,":").concat(ue.getPropertyValue(le))}).join(";"),_e={sizingStyle:je,paddingSize:_,borderSize:fe,boxSizing:K};return ie&&he&&(L[he]=_e),_e}function ye(ae){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Y||(Y=document.createElement("textarea"),Y.setAttribute("tab-index","-1"),Y.setAttribute("aria-hidden","true"),document.body.appendChild(Y)),ae.getAttribute("wrap")?Y.setAttribute("wrap",ae.getAttribute("wrap")):Y.removeAttribute("wrap");var K=re(ae,ie),_=K.paddingSize,fe=K.borderSize,je=K.boxSizing,_e=K.sizingStyle;Y.setAttribute("style","".concat(_e,";").concat(T)),Y.value=ae.value||ae.placeholder||"";var le=Number.MIN_SAFE_INTEGER,ke=Number.MAX_SAFE_INTEGER,ct=Y.scrollHeight,we;if(je==="border-box"?ct+=fe:je==="content-box"&&(ct-=_),he!==null||ue!==null){Y.value=" ";var ze=Y.scrollHeight-_;he!==null&&(le=ze*he,je==="border-box"&&(le=le+_+fe),ct=Math.max(le,ct)),ue!==null&&(ke=ze*ue,je==="border-box"&&(ke=ke+_+fe),we=ct>ke?"":"hidden",ct=Math.min(ke,ct))}return{height:ct,minHeight:le,maxHeight:ke,overflowY:we,resize:"none"}}var Ue=e("Gytx"),be=e.n(Ue),q;(function(ae){ae[ae.NONE=0]="NONE",ae[ae.RESIZING=1]="RESIZING",ae[ae.RESIZED=2]="RESIZED"})(q||(q={}));var Re=function(ae){Object(M.a)(he,ae);var ie=Object(o.a)(he);function he(ue){var K;return Object(S.a)(this,he),K=ie.call(this,ue),K.nextFrameActionId=void 0,K.resizeFrameId=void 0,K.textArea=void 0,K.saveTextArea=function(_){K.textArea=_},K.handleResize=function(_){var fe=K.state.resizeStatus,je=K.props,_e=je.autoSize,le=je.onResize;if(fe!==q.NONE)return;typeof le=="function"&&le(_),_e&&K.resizeOnNextFrame()},K.resizeOnNextFrame=function(){cancelAnimationFrame(K.nextFrameActionId),K.nextFrameActionId=requestAnimationFrame(K.resizeTextarea)},K.resizeTextarea=function(){var _=K.props.autoSize;if(!_||!K.textArea)return;var fe=_.minRows,je=_.maxRows,_e=ye(K.textArea,!1,fe,je);K.setState({textareaStyles:_e,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(K.resizeFrameId),K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:q.RESIZED},function(){K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:q.NONE}),K.fixFirefoxAutoScroll()})})})})},K.renderTextArea=function(){var _=K.props,fe=_.prefixCls,je=fe===void 0?"rc-textarea":fe,_e=_.autoSize,le=_.onResize,ke=_.className,ct=_.disabled,we=K.state,ze=we.textareaStyles,nt=we.resizeStatus,qe=Object(i.a)(K.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ne=R()(je,ke,Object(oe.a)({},"".concat(je,"-disabled"),ct));"value"in qe&&(qe.value=qe.value||"");var Ze=Object(de.a)(Object(de.a)(Object(de.a)({},K.props.style),ze),nt===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return h.createElement(m,{onResize:K.handleResize,disabled:!(_e||le)},h.createElement("textarea",Object(x.a)({},qe,{className:Ne,style:Ze,ref:K.saveTextArea})))},K.state={textareaStyles:{},resizeStatus:q.NONE},K}return Object(ge.a)(he,[{key:"componentDidUpdate",value:function(K){(K.value!==this.props.value||!be()(K.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var K=this.textArea.selectionStart,_=this.textArea.selectionEnd;this.textArea.setSelectionRange(K,_)}}catch(fe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),he}(h.Component),Ie=Re,Pe=function(ae){Object(M.a)(he,ae);var ie=Object(o.a)(he);function he(ue){var K;Object(S.a)(this,he),K=ie.call(this,ue),K.resizableTextArea=void 0,K.focus=function(){K.resizableTextArea.textArea.focus()},K.saveTextArea=function(fe){K.resizableTextArea=fe},K.handleChange=function(fe){var je=K.props.onChange;K.setValue(fe.target.value,function(){K.resizableTextArea.resizeTextarea()}),je&&je(fe)},K.handleKeyDown=function(fe){var je=K.props,_e=je.onPressEnter,le=je.onKeyDown;fe.keyCode===13&&_e&&_e(fe),le&&le(fe)};var _=typeof ue.value=="undefined"||ue.value===null?ue.defaultValue:ue.value;return K.state={value:_},K}return Object(ge.a)(he,[{key:"setValue",value:function(K,_){"value"in this.props||this.setState({value:K},_)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return h.createElement(Ie,Object(x.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(K){return"value"in K?{value:K.value}:null}}]),he}(h.Component),Qe=O.default=Pe},ZpRC:function(F,O,e){"use strict";function x(j){return typeof j=="object"&&j!=null&&j.nodeType===1}function S(j,I){return(!I||j!=="hidden")&&j!=="visible"&&j!=="clip"}function ge(j,I){if(j.clientHeightI||d>j&&v=I&&U>=W?d-j-P:v>I&&UW?v-I+c:0}var o=function(j,I){var W=window,P=I.scrollMode,c=I.block,d=I.inline,v=I.boundary,U=I.skipOverflowHiddenElements,z=typeof v=="function"?v:function(ze){return ze!==v};if(!x(j))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,Q=[],ee=j;x(ee)&&z(ee);){if((ee=ee.parentElement)===V){Q.push(ee);break}ee!=null&&ee===document.body&&ge(ee)&&!ge(document.documentElement)||ee!=null&&ge(ee,U)&&Q.push(ee)}for(var D=W.visualViewport?W.visualViewport.width:innerWidth,B=W.visualViewport?W.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,m=j.getBoundingClientRect(),i=m.height,y=m.width,R=m.top,T=m.right,te=m.bottom,L=m.left,Y=c==="start"||c==="nearest"?R:c==="end"?te:R+i/2,re=d==="center"?L+y/2:d==="end"?T:L,ye=[],Ue=0;Ue=0&&L>=0&&te<=B&&T<=D&&R>=Pe&&te<=ae&&L>=ie&&T<=Qe)return ye;var he=getComputedStyle(be),ue=parseInt(he.borderLeftWidth,10),K=parseInt(he.borderTopWidth,10),_=parseInt(he.borderRightWidth,10),fe=parseInt(he.borderBottomWidth,10),je=0,_e=0,le="offsetWidth"in be?be.offsetWidth-be.clientWidth-ue-_:0,ke="offsetHeight"in be?be.offsetHeight-be.clientHeight-K-fe:0;if(V===be)je=c==="start"?Y:c==="end"?Y-B:c==="nearest"?M(E,E+B,B,K,fe,E+Y,E+Y+i,i):Y-B/2,_e=d==="start"?re:d==="center"?re-D/2:d==="end"?re-D:M(k,k+D,D,ue,_,k+re,k+re+y,y),je=Math.max(0,je+E),_e=Math.max(0,_e+k);else{je=c==="start"?Y-Pe-K:c==="end"?Y-ae+fe+ke:c==="nearest"?M(Pe,ae,Re,K,fe+ke,Y,Y+i,i):Y-(Pe+Re/2)+ke/2,_e=d==="start"?re-ie-ue:d==="center"?re-(ie+Ie/2)+le/2:d==="end"?re-Qe+_+le:M(ie,Qe,Ie,ue,_+le,re,re+y,y);var ct=be.scrollLeft,we=be.scrollTop;Y+=we-(je=Math.max(0,Math.min(we+je,be.scrollHeight-Re+ke))),re+=ct-(_e=Math.max(0,Math.min(ct+_e,be.scrollWidth-Ie+le)))}ye.push({el:be,top:je,left:_e})}return ye};function h(j){return j===Object(j)&&Object.keys(j).length!==0}function de(j,I){I===void 0&&(I="auto");var W="scrollBehavior"in document.body.style;j.forEach(function(P){var c=P.el,d=P.top,v=P.left;c.scroll&&W?c.scroll({top:d,left:v,behavior:I}):(c.scrollTop=d,c.scrollLeft=v)})}function oe(j){return j===!1?{block:"end",inline:"nearest"}:h(j)?j:{block:"start",inline:"nearest"}}function w(j,I){var W=!j.ownerDocument.documentElement.contains(j);if(h(I)&&typeof I.behavior=="function")return I.behavior(W?[]:o(j,I));if(W)return;var P=oe(I);return de(o(j,P),P.behavior)}var Ce=O.a=w},bT9E:function(F,O,e){"use strict";e.d(O,"a",function(){return S});var x=e("VTBJ");function S(ge,M){var o=Object(x.a)({},ge);return Array.isArray(M)&&M.forEach(function(h){delete o[h]}),o}},biw7:function(F,O,e){"use strict";var x=e("q1tI"),S=e.n(x),ge=x.createContext(null);O.a=ge},cRFk:function(F,O,e){F.exports=e.p+"static/RepositoryNoneData.828085a8.png"},cTOM:function(F,O,e){F.exports={flex_box_center:"flex_box_center___-NfPq",flex_space_between:"flex_space_between___3y3z4",flex_box_vertical_center:"flex_box_vertical_center___3v_Zy",flex_box_center_end:"flex_box_center_end___1ObkQ",flex_box_column:"flex_box_column___QR1Y4",warp:"warp___3A-ud",title:"title___2tkyk",Inputstyle:"Inputstyle___jFzzW",buttonstyle:"buttonstyle___BT2gc",Content:"Content___2YDs2",imgstyle:"imgstyle___2Kklj",cardstyle:"cardstyle___2BBrt",paddingcard:"paddingcard___2m5U8",titlefont:"titlefont___RHrDo",flexEnd:"flexEnd___aGZ6f",modalinput:"modalinput___1Hxhb",items:"items___3xlQF",adminsstyle:"adminsstyle___34KOT",upadmin:"upadmin___2LihX",yes:"yes___1mOZl",no:"no___3XaRt"}},csWT:function(F,O,e){F.exports=e.p+"static/choose.4ad1045f.svg"},djh8:function(F,O,e){F.exports=e.p+"static/qrCode.42927872.png"},fyJ8:function(F,O,e){"use strict";var x=e("rePB"),S=e("VTBJ"),ge=e("Ff2n"),M=e("U8pU"),o=e("q1tI"),h=e.n(o),de=e("TSYQ"),oe=e.n(de),w=e("c+Xe"),Ce=e("sR1s");function j(d){return d&&Object(M.a)(d)==="object"&&!Array.isArray(d)&&!o.isValidElement(d)}function I(d){return typeof d=="string"?!0:Object(w.c)(d)}function W(d,v){var U,z=d.prefixCls,V=d.className,Q=d.record,ee=d.index,D=d.dataIndex,B=d.render,k=d.children,E=d.component,m=E===void 0?"td":E,i=d.colSpan,y=d.rowSpan,R=d.fixLeft,T=d.fixRight,te=d.firstFixLeft,L=d.lastFixLeft,Y=d.firstFixRight,re=d.lastFixRight,ye=d.appendNode,Ue=d.additionalProps,be=Ue===void 0?{}:Ue,q=d.ellipsis,Re=d.align,Ie=d.rowType,Pe=d.isSticky,Qe="".concat(z,"-cell"),ae,ie;if(k)ie=k;else{var he=Object(Ce.b)(Q,D);if(ie=he,B){var ue=B(he,Q,ee);j(ue)?(ie=ue.children,ae=ue.props):ie=ue}}Object(M.a)(ie)==="object"&&!Array.isArray(ie)&&!o.isValidElement(ie)&&(ie=null),q&&(L||Y)&&(ie=o.createElement("span",{className:"".concat(Qe,"-content")},ie));var K=ae||{},_=K.colSpan,fe=K.rowSpan,je=K.style,_e=K.className,le=Object(ge.a)(K,["colSpan","rowSpan","style","className"]),ke=_!==void 0?_:i,ct=fe!==void 0?fe:y;if(ke===0||ct===0)return null;var we={},ze=typeof R=="number",nt=typeof T=="number";ze&&(we.position="sticky",we.left=R),nt&&(we.position="sticky",we.right=T);var qe={};Re&&(qe.textAlign=Re);var Ne,Ze=q===!0?{showTitle:!0}:q;Ze&&(Ze.showTitle||Ie==="header")&&(typeof ie=="string"||typeof ie=="number"?Ne=ie.toString():o.isValidElement(ie)&&typeof ie.props.children=="string"&&(Ne=ie.props.children));var Mt=Object(S.a)(Object(S.a)(Object(S.a)({title:Ne},le),be),{},{colSpan:ke&&ke!==1?ke:null,rowSpan:ct&&ct!==1?ct:null,className:oe()(Qe,V,(U={},Object(x.a)(U,"".concat(Qe,"-fix-left"),ze),Object(x.a)(U,"".concat(Qe,"-fix-left-first"),te),Object(x.a)(U,"".concat(Qe,"-fix-left-last"),L),Object(x.a)(U,"".concat(Qe,"-fix-right"),nt),Object(x.a)(U,"".concat(Qe,"-fix-right-first"),Y),Object(x.a)(U,"".concat(Qe,"-fix-right-last"),re),Object(x.a)(U,"".concat(Qe,"-ellipsis"),q),Object(x.a)(U,"".concat(Qe,"-with-append"),ye),Object(x.a)(U,"".concat(Qe,"-fix-sticky"),(ze||nt)&&Pe),U),be.className,_e),style:Object(S.a)(Object(S.a)(Object(S.a)(Object(S.a)({},be.style),qe),we),je),ref:I(m)?v:null});return o.createElement(m,Object.assign({},Mt),ye,ie)}var P=o.forwardRef(W);P.displayName="Cell";var c=o.memo(P,function(d,v){return v.shouldCellUpdate?!v.shouldCellUpdate(v.record,d.record):!1});O.a=c},hW8S:function(F,O,e){"use strict";e.d(O,"a",function(){return M}),e.d(O,"c",function(){return o}),e.d(O,"b",function(){return h});var x=e("VTBJ"),S=e("Ff2n"),ge=e("Kwbf"),M="RC_TABLE_INTERNAL_COL_DEFINE";function o(de){var oe=de.expandable,w=Object(S.a)(de,["expandable"]);return"expandable"in de?Object(x.a)(Object(x.a)({},w),oe):w}function h(de){return Object.keys(de).reduce(function(oe,w){return(w.substr(0,5)==="data-"||w.substr(0,5)==="aria-")&&(oe[w]=de[w]),oe},{})}},ji0R:function(F,O,e){F.exports=e.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(F,O,e){"use strict";e.d(O,"a",function(){return po});var x=e("rePB"),S=e("ODXe"),ge=e("Ff2n"),M=e("VTBJ"),o=e("q1tI"),h=e("TSYQ"),de=e.n(h),oe=e("Zm9Q"),w=e("6cGi"),Ce=e("KQm4"),j=e("xEkU"),I=e.n(j),W=e("t23M");function P(r){var f=Object(o.useRef)(),g=Object(o.useRef)(!1);function l(){for(var t=arguments.length,a=new Array(t),n=0;nA&&(J=A-H),Object(o.useMemo)(function(){if(!a.length)return[0,0];for(var ce=a.length,Fe=ce,st=0;stp+J){Fe=st-1;break}}for(var ut=0,lt=ce-1;lt>=0;lt-=1){var ot=r.get(a[lt].key)||Q;if(ot[b]1&&arguments[1]!==void 0?arguments[1]:!1,l=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(l){if(g){var t=getComputedStyle(f),a=t.marginLeft,n=t.marginRight;l+=+a.replace("px","")+ +n.replace("px","")}l=+l.toFixed(6)}return l||0},Ne=function(f,g,l){f&&Object(Y.a)(f.style)==="object"&&(f.style[g]=l)},Ze=function(){return _e.any},Mt=e("bdgK"),jt=e("i8i4"),Ot=e.n(jt),St=e("wgJM"),Rt=e("l4aY"),Gt=e("m+aA"),C=e("c+Xe"),G=e("zT1h"),X=e("QC+M");function me(r,f,g){return g?r[0]===f[0]:r[0]===f[0]&&r[1]===f[1]}function Ae(r,f,g){var l=r[f]||{};return Object(M.a)(Object(M.a)({},l),g)}function pe(r,f,g,l){for(var t=g.points,a=Object.keys(r),n=0;n1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(St.a)(function(){t<=1?l({isCanceled:function(){return a!==r.current}}):g(l,t-1)});r.current=a}return o.useEffect(function(){return function(){f()}},[]),[g,f]},cn=[dt,Xe,mt,Ge],Le=!1,Z=!0;function De(r){return r===mt||r===Ge}var Pt=function(r,f){var g=o.useState(xt),l=Object(S.a)(g,2),t=l[0],a=l[1],n=It(),s=Object(S.a)(n,2),u=s[0],b=s[1];function p(){a(dt)}return Wt(function(){if(t!==xt&&t!==Ge){var A=cn.indexOf(t),N=cn[A+1],H=f(t);H===Le?a(N):u(function(J){function ce(){if(J.isCanceled())return;a(N)}H===!0?ce():Promise.resolve(H).then(ce)})}},[r,t]),o.useEffect(function(){return function(){b()}},[]),[p,t]},Je=function(r){var f=Object(o.useRef)(),g=Object(o.useRef)(r);g.current=r;var l=o.useCallback(function(n){g.current(n)},[]);function t(n){n&&(n.removeEventListener(kt,l),n.removeEventListener(We,l))}function a(n){f.current&&f.current!==n&&t(f.current),n&&n!==f.current&&(n.addEventListener(kt,l),n.addEventListener(We,l),f.current=n)}return o.useEffect(function(){return function(){t(f.current)}},[]),[a,t]};function _t(r,f,g,l){var t=l.motionEnter,a=t===void 0?!0:t,n=l.motionAppear,s=n===void 0?!0:n,u=l.motionLeave,b=u===void 0?!0:u,p=l.motionDeadline,A=l.motionLeaveImmediately,N=l.onAppearPrepare,H=l.onEnterPrepare,J=l.onLeavePrepare,ce=l.onAppearStart,Fe=l.onEnterStart,st=l.onLeaveStart,tt=l.onAppearActive,ut=l.onEnterActive,lt=l.onLeaveActive,ot=l.onAppearEnd,rt=l.onEnterEnd,At=l.onLeaveEnd,ft=l.onVisibleChanged,Jt=Ut(),Nt=Object(S.a)(Jt,2),Ke=Nt[0],Be=Nt[1],ht=Ut(Ye),Et=Object(S.a)(ht,2),Se=Et[0],Ct=Et[1],Bt=Ut(null),yt=Object(S.a)(Bt,2),Lt=yt[0],Qt=yt[1],en=Object(o.useRef)(!1),fn=Object(o.useRef)(null),Ht=Object(o.useRef)(!1),pn=Object(o.useRef)(null);function Sn(){var Kt=g();return Kt||pn.current}var vn=Object(o.useRef)(!1);function En(Kt){var Dt=Sn();if(Kt&&!Kt.deadline&&Kt.target!==Dt)return;var nn;Se===at&&vn.current?nn=ot==null?void 0:ot(Dt,Kt):Se===He&&vn.current?nn=rt==null?void 0:rt(Dt,Kt):Se===et&&vn.current&&(nn=At==null?void 0:At(Dt,Kt)),nn!==!1&&!Ht.current&&(Ct(Ye),Qt(null))}var Yt=Je(En),un=Object(S.a)(Yt,1),tn=un[0],qt=o.useMemo(function(){var Kt,Dt,nn;switch(Se){case"appear":return Kt={},Object(x.a)(Kt,dt,N),Object(x.a)(Kt,Xe,ce),Object(x.a)(Kt,mt,tt),Kt;case"enter":return Dt={},Object(x.a)(Dt,dt,H),Object(x.a)(Dt,Xe,Fe),Object(x.a)(Dt,mt,ut),Dt;case"leave":return nn={},Object(x.a)(nn,dt,J),Object(x.a)(nn,Xe,st),Object(x.a)(nn,mt,lt),nn;default:return{}}},[Se]),Un=Pt(Se,function(Kt){if(Kt===dt){var Dt=qt[dt];return Dt?Dt(Sn()):Le}if(wt in qt){var nn;Qt(((nn=qt[wt])===null||nn===void 0?void 0:nn.call(qt,Sn(),null))||null)}return wt===mt&&(tn(Sn()),p>0&&(clearTimeout(fn.current),fn.current=setTimeout(function(){En({deadline:!0})},p))),Z}),wn=Object(S.a)(Un,2),zn=wn[0],wt=wn[1],Dn=De(wt);vn.current=Dn,Wt(function(){Be(f);var Kt=en.current;if(en.current=!0,!r)return;var Dt;!Kt&&f&&s&&(Dt=at),Kt&&f&&a&&(Dt=He),(Kt&&!f&&b||!Kt&&A&&!f&&b)&&(Dt=et),Dt&&(Ct(Dt),zn())},[f]),Object(o.useEffect)(function(){(Se===at&&!s||Se===He&&!a||Se===et&&!b)&&Ct(Ye)},[s,a,b]),Object(o.useEffect)(function(){return function(){clearTimeout(fn.current),Ht.current=!0}},[]),Object(o.useEffect)(function(){Ke!==void 0&&Se===Ye&&(ft==null||ft(Ke))},[Ke,Se]);var Fn=Lt;return qt[dt]&&wt===Xe&&(Fn=Object(M.a)({transition:"none"},Fn)),[Se,wt,Fn,Ke!=null?Ke:f]}var sn=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){return Object(B.a)(this,g),f.apply(this,arguments)}return Object(k.a)(g,[{key:"render",value:function(){return this.props.children}}]),g}(o.Component),an=sn;function Vt(r){var f=r;Object(Y.a)(r)==="object"&&(f=r.transitionSupport);function g(t){return!!(t.motionName&&f)}var l=o.forwardRef(function(t,a){var n=t.visible,s=n===void 0?!0:n,u=t.removeOnLeave,b=u===void 0?!0:u,p=t.forceRender,A=t.children,N=t.motionName,H=t.leavedClassName,J=t.eventProps,ce=g(t),Fe=Object(o.useRef)(),st=Object(o.useRef)();function tt(){try{return Object(Gt.a)(Fe.current||st.current)}catch(Ct){return null}}var ut=_t(ce,s,tt,t),lt=Object(S.a)(ut,4),ot=lt[0],rt=lt[1],At=lt[2],ft=lt[3],Jt=o.useRef(ft);ft&&(Jt.current=!0);var Nt=Object(o.useRef)(a);Nt.current=a;var Ke=o.useCallback(function(Ct){Fe.current=Ct,Object(C.b)(Nt.current,Ct)},[]),Be,ht=Object(M.a)(Object(M.a)({},J),{},{visible:s});if(!A)Be=null;else if(ot===Ye||!g(t))ft?Be=A(Object(M.a)({},ht),Ke):!b&&Jt.current?Be=A(Object(M.a)(Object(M.a)({},ht),{},{className:H}),Ke):p?Be=A(Object(M.a)(Object(M.a)({},ht),{},{style:{display:"none"}}),Ke):Be=null;else{var Et,Se;rt===dt?Se="prepare":De(rt)?Se="active":rt===Xe&&(Se="start"),Be=A(Object(M.a)(Object(M.a)({},ht),{},{className:de()(Me(N,ot),(Et={},Object(x.a)(Et,Me(N,"".concat(ot,"-").concat(Se)),Se),Object(x.a)(Et,N,typeof N=="string"),Et)),style:At}),Ke)}return o.createElement(an,{ref:st},Be)});return l.displayName="CSSMotion",l}var Rn=Vt(it),Bn="add",jn="keep",On="remove",Nn="removed";function Jn(r){var f;return r&&Object(Y.a)(r)==="object"&&"key"in r?f=r:f={key:r},Object(M.a)(Object(M.a)({},f),{},{key:String(f.key)})}function Tn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(Jn)}function Xt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=[],l=0,t=f.length,a=Tn(r),n=Tn(f);a.forEach(function(b){for(var p=!1,A=l;A1});return u.forEach(function(b){g=g.filter(function(p){var A=p.key,N=p.status;return A!==b||N!==On}),g.forEach(function(p){p.key===b&&(p.status=jn)})}),g}var ln=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hn(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn,g=function(l){Object(m.a)(a,l);var t=Object(i.a)(a);function a(){var n;return Object(B.a)(this,a),n=t.apply(this,arguments),n.state={keyEntities:[]},n.removeKey=function(s){n.setState(function(u){var b=u.keyEntities;return{keyEntities:b.map(function(p){return p.key!==s?p:Object(M.a)(Object(M.a)({},p),{},{status:Nn})})}})},n}return Object(k.a)(a,[{key:"render",value:function(){var s=this,u=this.state.keyEntities,b=this.props,p=b.component,A=b.children,N=b.onVisibleChanged,H=Object(ge.a)(b,["component","children","onVisibleChanged"]),J=p||o.Fragment,ce={};return ln.forEach(function(Fe){ce[Fe]=H[Fe],delete H[Fe]}),delete H.keys,o.createElement(J,H,u.map(function(Fe){var st=Fe.status,tt=Object(ge.a)(Fe,["status"]),ut=st===Bn||st===jn;return o.createElement(f,Object(D.a)({},ce,{key:tt.key,visible:ut,eventProps:tt,onVisibleChanged:function(ot){N==null||N(ot,{key:tt.key}),ot||s.removeKey(tt.key)}}),A)}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var b=s.keys,p=u.keyEntities,A=Tn(b),N=Xt(p,A);return{keyEntities:N.filter(function(H){var J=p.find(function(ce){var Fe=ce.key;return H.key===Fe});return!(J&&J.status===Nn&&H.status===On)})}}}]),a}(o.Component);return g.defaultProps={component:"div"},g}var on=hn(it),dn=Rn;function bn(r){var f=r.prefixCls,g=r.motion,l=r.animation,t=r.transitionName;return g||(l?{motionName:"".concat(f,"-").concat(l)}:t?{motionName:t}:null)}function Vn(r){var f=r.prefixCls,g=r.visible,l=r.zIndex,t=r.mask,a=r.maskMotion,n=r.maskAnimation,s=r.maskTransitionName;if(!t)return null;var u={};return(a||s||n)&&(u=Object(M.a)({motionAppear:!0},bn({motion:a,prefixCls:f,transitionName:s,animation:n}))),o.createElement(dn,Object(D.a)({},u,{visible:g,removeOnLeave:!0}),function(b){var p=b.className;return o.createElement("div",{style:{zIndex:l},className:de()("".concat(f,"-mask"),p)})})}var Kn=e("9mu1"),Hn=e("o0o1"),Ra=e.n(Hn),xa=e("HaE+"),Gn=["measure","align",null,"motion"],zt=function(r,f){var g=Object(o.useState)(null),l=Object(S.a)(g,2),t=l[0],a=l[1],n=Object(o.useRef)(),s=Object(o.useRef)(!1);function u(A){s.current||a(A)}function b(){St.a.cancel(n.current)}function p(A){b(),n.current=Object(St.a)(function(){u(function(N){switch(t){case"align":return"motion";case"motion":return"stable";default:}return N}),A==null||A()})}return Object(o.useEffect)(function(){u("measure")},[r]),Object(o.useEffect)(function(){switch(t){case"measure":f();break;default:}t&&(n.current=Object(St.a)(Object(xa.a)(Ra.a.mark(function A(){var N,H;return Ra.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:N=Gn.indexOf(t),H=Gn[N+1],H&&N!==-1&&u(H);case 3:case"end":return ce.stop()}},A)}))))},[t]),Object(o.useEffect)(function(){return function(){s.current=!0,b()}},[]),[t,p]},Zn=function(r){var f=o.useState({width:0,height:0}),g=Object(S.a)(f,2),l=g[0],t=g[1];function a(s){t({width:s.offsetWidth,height:s.offsetHeight})}var n=o.useMemo(function(){var s={};if(r){var u=l.width,b=l.height;r.indexOf("height")!==-1&&b?s.height=b:r.indexOf("minHeight")!==-1&&b&&(s.minHeight=b),r.indexOf("width")!==-1&&u?s.width=u:r.indexOf("minWidth")!==-1&&u&&(s.minWidth=u)}return s},[r,l]);return[n,a]},Yn=o.forwardRef(function(r,f){var g=r.visible,l=r.prefixCls,t=r.className,a=r.style,n=r.children,s=r.zIndex,u=r.stretch,b=r.destroyPopupOnHide,p=r.forceRender,A=r.align,N=r.point,H=r.getRootDomNode,J=r.getClassNameFromAlign,ce=r.onAlign,Fe=r.onMouseEnter,st=r.onMouseLeave,tt=r.onMouseDown,ut=r.onTouchStart,lt=Object(o.useRef)(),ot=Object(o.useRef)(),rt=Object(o.useState)(),At=Object(S.a)(rt,2),ft=At[0],Jt=At[1],Nt=Zn(u),Ke=Object(S.a)(Nt,2),Be=Ke[0],ht=Ke[1];function Et(){u&&ht(H())}var Se=zt(g,Et),Ct=Object(S.a)(Se,2),Bt=Ct[0],yt=Ct[1],Lt=Object(o.useRef)();function Qt(){return N||H}function en(){var Yt;(Yt=lt.current)===null||Yt===void 0||Yt.forceAlign()}function fn(Yt,un){var tn=J(un);ft!==tn&&Jt(tn),Bt==="align"&&(ft!==tn?Promise.resolve().then(function(){en()}):yt(function(){var qt;(qt=Lt.current)===null||qt===void 0||qt.call(Lt)}),ce==null||ce(Yt,un))}var Ht=Object(M.a)({},bn(r));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Yt){var un=Ht[Yt];Ht[Yt]=function(tn,qt){return yt(),un==null?void 0:un(tn,qt)}});function pn(){return new Promise(function(Yt){Lt.current=Yt})}o.useEffect(function(){!Ht.motionName&&Bt==="motion"&&yt()},[Ht.motionName,Bt]),o.useImperativeHandle(f,function(){return{forceAlign:en,getElement:function(){return ot.current}}});var Sn=Object(M.a)(Object(M.a)({},Be),{},{zIndex:s,opacity:Bt==="motion"||Bt==="stable"||!g?void 0:0,pointerEvents:Bt==="stable"?void 0:"none"},a),vn=!0;(A==null?void 0:A.points)&&(Bt==="align"||Bt==="stable")&&(vn=!1);var En=n;return o.Children.count(n)>1&&(En=o.createElement("div",{className:"".concat(l,"-content")},n)),o.createElement(dn,Object(D.a)({visible:g,ref:ot,leavedClassName:"".concat(l,"-hidden")},Ht,{onAppearPrepare:pn,onEnterPrepare:pn,removeOnLeave:b,forceRender:p}),function(Yt,un){var tn=Yt.className,qt=Yt.style,Un=de()(l,t,ft,tn);return o.createElement(Kn.a,{target:Qt(),key:"popup",ref:lt,monitorWindowResize:!0,disabled:vn,align:A,onAlign:fn},o.createElement("div",{ref:un,className:Un,onMouseEnter:Fe,onMouseLeave:st,onMouseDownCapture:tt,onTouchStartCapture:ut,style:Object(M.a)(Object(M.a)({},qt),Sn)},En))})});Yn.displayName="PopupInner";var Da=Yn,An=o.forwardRef(function(r,f){var g=r.prefixCls,l=r.visible,t=r.zIndex,a=r.children,n=r.mobile;n=n===void 0?{}:n;var s=n.popupClassName,u=n.popupStyle,b=n.popupMotion,p=b===void 0?{}:b,A=n.popupRender,N=o.useRef();o.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return N.current}}});var H=Object(M.a)({zIndex:t},u),J=a;return o.Children.count(a)>1&&(J=o.createElement("div",{className:"".concat(g,"-content")},a)),A&&(J=A(J)),o.createElement(dn,Object(D.a)({visible:l,ref:N,removeOnLeave:!0},p),function(ce,Fe){var st=ce.className,tt=ce.style,ut=de()(g,s,st);return o.createElement("div",{ref:Fe,className:ut,style:Object(M.a)(Object(M.a)({},tt),H)},J)})});An.displayName="MobilePopupInner";var Fa=An,ja=["visible","mobile"],oa=o.forwardRef(function(r,f){var g=r.visible,l=r.mobile,t=Object(ge.a)(r,ja),a=Object(o.useState)(g),n=Object(S.a)(a,2),s=n[0],u=n[1],b=Object(o.useState)(!1),p=Object(S.a)(b,2),A=p[0],N=p[1],H=Object(M.a)(Object(M.a)({},t),{},{visible:s});Object(o.useEffect)(function(){u(g),g&&l&&N(se())},[g,l]);var J=A?o.createElement(Fa,Object(D.a)({},H,{mobile:l,ref:f})):o.createElement(Da,Object(D.a)({},H,{ref:f}));return o.createElement("div",null,o.createElement(Vn,H),J)});oa.displayName="Popup";var Ja=oa,Va=o.createContext(null),ra=Va;function Xn(){}function Ha(){return""}function Ga(r){return r?r.ownerDocument:window.document}var Na=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Za(r){var f=function(g){Object(m.a)(t,g);var l=Object(i.a)(t);function t(a){var n;Object(B.a)(this,t),n=l.call(this,a),n.popupRef=o.createRef(),n.triggerRef=o.createRef(),n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(u){var b=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",u),n.delaySetPopupVisible(!0,b,b?null:u)},n.onMouseMove=function(u){n.fireEvents("onMouseMove",u),n.setPoint(u)},n.onMouseLeave=function(u){n.fireEvents("onMouseLeave",u),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(u){var b;if(u.relatedTarget&&!u.relatedTarget.setTimeout&&Object(Rt.a)((b=n.popupRef.current)===null||b===void 0?void 0:b.getElement(),u.relatedTarget))return;n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(u){n.fireEvents("onFocus",u),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(u){n.fireEvents("onMouseDown",u),n.preClickTime=Date.now()},n.onTouchStart=function(u){n.fireEvents("onTouchStart",u),n.preTouchTime=Date.now()},n.onBlur=function(u){n.fireEvents("onBlur",u),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(u){u.preventDefault(),n.fireEvents("onContextMenu",u),n.setPopupVisible(!0,u)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(u){if(n.fireEvents("onClick",u),n.focusTime){var b;if(n.preClickTime&&n.preTouchTime?b=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?b=n.preClickTime:n.preTouchTime&&(b=n.preTouchTime),Math.abs(b-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var p=!n.state.popupVisible;(n.isClickToHide()&&!p||p&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,u)},n.onPopupMouseDown=function(){if(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout(function(){n.hasPopupMouseDown=!1},0),n.context){var u;(u=n.context).onPopupMouseDown.apply(u,arguments)}},n.onDocumentClick=function(u){if(n.props.mask&&!n.props.maskClosable)return;var b=u.target,p=n.getRootDomNode(),A=n.getPopupDomNode();(!Object(Rt.a)(p,b)||n.isContextMenuOnly())&&!Object(Rt.a)(A,b)&&!n.hasPopupMouseDown&&n.close()},n.getRootDomNode=function(){var u=n.props.getTriggerDOMNode;if(u)return u(n.triggerRef.current);try{var b=Object(Gt.a)(n.triggerRef.current);if(b)return b}catch(p){}return Ot.a.findDOMNode(Object(E.a)(n))},n.getPopupClassNameFromAlign=function(u){var b=[],p=n.props,A=p.popupPlacement,N=p.builtinPlacements,H=p.prefixCls,J=p.alignPoint,ce=p.getPopupClassNameFromAlign;return A&&N&&b.push(pe(N,H,u,J)),ce&&b.push(ce(u)),b.join(" ")},n.getComponent=function(){var u=n.props,b=u.prefixCls,p=u.destroyPopupOnHide,A=u.popupClassName,N=u.onPopupAlign,H=u.popupMotion,J=u.popupAnimation,ce=u.popupTransitionName,Fe=u.popupStyle,st=u.mask,tt=u.maskAnimation,ut=u.maskTransitionName,lt=u.maskMotion,ot=u.zIndex,rt=u.popup,At=u.stretch,ft=u.alignPoint,Jt=u.mobile,Nt=u.forceRender,Ke=n.state,Be=Ke.popupVisible,ht=Ke.point,Et=n.getPopupAlign(),Se={};return n.isMouseEnterToShow()&&(Se.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(Se.onMouseLeave=n.onPopupMouseLeave),Se.onMouseDown=n.onPopupMouseDown,Se.onTouchStart=n.onPopupMouseDown,o.createElement(Ja,Object(D.a)({prefixCls:b,destroyPopupOnHide:p,visible:Be,point:ft&&ht,className:A,align:Et,onAlign:N,animation:J,getClassNameFromAlign:n.getPopupClassNameFromAlign},Se,{stretch:At,getRootDomNode:n.getRootDomNode,style:Fe,mask:st,zIndex:ot,transitionName:ce,maskAnimation:tt,maskTransitionName:ut,maskMotion:lt,ref:n.popupRef,motion:H,mobile:Jt,forceRender:Nt}),typeof rt=="function"?rt():rt)},n.attachParent=function(u){St.a.cancel(n.attachId);var b=n.props,p=b.getPopupContainer,A=b.getDocument,N=n.getRootDomNode(),H;p?(N||p.length===0)&&(H=p(N)):H=A(n.getRootDomNode()).body,H?H.appendChild(u):n.attachId=Object(St.a)(function(){n.attachParent(u)})},n.getContainer=function(){var u=n.props.getDocument,b=u(n.getRootDomNode()).createElement("div");return b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",n.attachParent(b),b},n.setPoint=function(u){var b=n.props.alignPoint;if(!b||!u)return;n.setState({point:{pageX:u.pageX,pageY:u.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown};var s;return"popupVisible"in a?s=!!a.popupVisible:s=!!a.defaultPopupVisible,n.state={prevPopupVisible:s,popupVisible:s},Na.forEach(function(u){n["fire".concat(u)]=function(b){n.fireEvents(u,b)}}),n}return Object(k.a)(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var n=this.props,s=this.state;if(s.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=n.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(G.a)(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||n.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(G.a)(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||n.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(G.a)(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(G.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),St.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var n;return((n=this.popupRef.current)===null||n===void 0?void 0:n.getElement())||null}},{key:"getPopupAlign",value:function(){var n=this.props,s=n.popupPlacement,u=n.popupAlign,b=n.builtinPlacements;return s&&b?Ae(b,s,u):u}},{key:"setPopupVisible",value:function(n,s){var u=this.props.alignPoint,b=this.state.popupVisible;this.clearDelayTimer(),b!==n&&("popupVisible"in this.props||this.setState({popupVisible:n,prevPopupVisible:b}),this.props.onPopupVisibleChange(n)),u&&s&&n&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(n,s,u){var b=this,p=s*1e3;if(this.clearDelayTimer(),p){var A=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){b.setPopupVisible(n,A),b.clearDelayTimer()},p)}else this.setPopupVisible(n,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(n){var s=this.props.children.props,u=this.props;return s[n]&&u[n]?this["fire".concat(n)]:s[n]||u[n]}},{key:"isClickToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var n=this.props.action;return n==="contextMenu"||n.length===1&&n[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var n=this.props,s=n.action,u=n.hideAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var n=this.props,s=n.action,u=n.hideAction;return s.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var n=this.props,s=n.action,u=n.hideAction;return s.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var n;(n=this.popupRef.current)===null||n===void 0||n.forceAlign()}}},{key:"fireEvents",value:function(n,s){var u=this.props.children.props[n];u&&u(s);var b=this.props[n];b&&b(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,s=this.props,u=s.children,b=s.forceRender,p=s.alignPoint,A=s.className,N=s.autoDestroy,H=o.Children.only(u),J={key:"trigger"};this.isContextMenuToShow()?J.onContextMenu=this.onContextMenu:J.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(J.onClick=this.onClick,J.onMouseDown=this.onMouseDown,J.onTouchStart=this.onTouchStart):(J.onClick=this.createTwoChains("onClick"),J.onMouseDown=this.createTwoChains("onMouseDown"),J.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(J.onMouseEnter=this.onMouseEnter,p&&(J.onMouseMove=this.onMouseMove)):J.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?J.onMouseLeave=this.onMouseLeave:J.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(J.onFocus=this.onFocus,J.onBlur=this.onBlur):(J.onFocus=this.createTwoChains("onFocus"),J.onBlur=this.createTwoChains("onBlur"));var ce=de()(H&&H.props&&H.props.className,A);ce&&(J.className=ce);var Fe=Object(M.a)({},J);Object(C.c)(H)&&(Fe.ref=Object(C.a)(this.triggerRef,H.ref));var st=o.cloneElement(H,Fe),tt;return(n||this.popupRef.current||b)&&(tt=o.createElement(r,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&N&&(tt=null),o.createElement(ra.Provider,{value:this.triggerContextValue},st,tt)}}],[{key:"getDerivedStateFromProps",value:function(n,s){var u=n.popupVisible,b={};return u!==void 0&&s.popupVisible!==u&&(b.popupVisible=u,b.prevPopupVisible=s.popupVisible),b}}]),t}(o.Component);return f.contextType=ra,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ha,getDocument:Ga,onPopupVisibleChange:Xn,afterPopupVisibleChange:Xn,onPopupAlign:Xn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var Ya=Za(X.a),Mn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:Mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Mn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Mn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Mn,offset:[4,0]}},Ta={topLeft:{points:["bl","tl"],overflow:Mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Mn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Mn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Mn,offset:[4,0]}},sa=ia,mn=0,Cn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},yn=function(f,g,l){var t=ct(g),a=f.getState();f.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},a.defaultActiveFirst),{},Object(x.a)({},t,l))})},la=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(l){var t;Object(B.a)(this,g),t=f.call(this,l),t.onDestroy=function(p){t.props.onDestroy(p)},t.onKeyDown=function(p){var A=p.keyCode,N=t.menuInstance,H=t.props.store,J=t.getVisible();if(A===d.a.ENTER)return t.onTitleClick(p),yn(H,t.props.eventKey,!0),!0;if(A===d.a.RIGHT)return J?N.onKeyDown(p):(t.triggerOpenChange(!0),yn(H,t.props.eventKey,!0)),!0;if(A===d.a.LEFT){var ce;if(J)ce=N.onKeyDown(p);else return;return ce||(t.triggerOpenChange(!1),ce=!0),ce}return J&&(A===d.a.UP||A===d.a.DOWN)?N.onKeyDown(p):void 0},t.onOpenChange=function(p){t.props.onOpenChange(p)},t.onPopupVisibleChange=function(p){t.triggerOpenChange(p,p?"mouseenter":"mouseleave")},t.onMouseEnter=function(p){var A=t.props,N=A.eventKey,H=A.onMouseEnter,J=A.store;yn(J,t.props.eventKey,!1),H({key:N,domEvent:p})},t.onMouseLeave=function(p){var A=t.props,N=A.parentMenu,H=A.eventKey,J=A.onMouseLeave;N.subMenuInstance=Object(E.a)(t),J({key:H,domEvent:p})},t.onTitleMouseEnter=function(p){var A=t.props,N=A.eventKey,H=A.onItemHover,J=A.onTitleMouseEnter;H({key:N,hover:!0}),J({key:N,domEvent:p})},t.onTitleMouseLeave=function(p){var A=t.props,N=A.parentMenu,H=A.eventKey,J=A.onItemHover,ce=A.onTitleMouseLeave;N.subMenuInstance=Object(E.a)(t),J({key:H,hover:!1}),ce({key:H,domEvent:p})},t.onTitleClick=function(p){var A=Object(E.a)(t),N=A.props;if(N.onTitleClick({key:N.eventKey,domEvent:p}),N.triggerSubMenuAction==="hover")return;t.triggerOpenChange(!t.getVisible(),"click"),yn(N.store,t.props.eventKey,!1)},t.onSubMenuClick=function(p){typeof t.props.onClick=="function"&&t.props.onClick(t.addKeyPath(p))},t.onSelect=function(p){t.props.onSelect(p)},t.onDeselect=function(p){t.props.onDeselect(p)},t.getPrefixCls=function(){return"".concat(t.props.rootPrefixCls,"-submenu")},t.getActiveClassName=function(){return"".concat(t.getPrefixCls(),"-active")},t.getDisabledClassName=function(){return"".concat(t.getPrefixCls(),"-disabled")},t.getSelectedClassName=function(){return"".concat(t.getPrefixCls(),"-selected")},t.getOpenClassName=function(){return"".concat(t.props.rootPrefixCls,"-submenu-open")},t.getVisible=function(){return t.state.isOpen},t.getMode=function(){return t.state.mode},t.saveMenuInstance=function(p){t.menuInstance=p},t.addKeyPath=function(p){return Object(M.a)(Object(M.a)({},p),{},{keyPath:(p.keyPath||[]).concat(t.props.eventKey)})},t.triggerOpenChange=function(p,A){var N=t.props.eventKey,H=function(){t.onOpenChange({key:N,item:Object(E.a)(t),trigger:A,open:p})};A==="mouseenter"?t.mouseenterTimeout=setTimeout(function(){H()},0):H()},t.isChildrenSelected=function(){var p={find:!1};return ze(t.props.children,t.props.selectedKeys,p),p.find},t.isInlineMode=function(){return t.getMode()==="inline"},t.adjustWidth=function(){if(!t.subMenuTitle||!t.menuInstance)return;var p=jt.findDOMNode(t.menuInstance);if(p.offsetWidth>=t.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(t.subMenuTitle.offsetWidth,"px")},t.saveSubMenuTitle=function(p){t.subMenuTitle=p},t.getBaseProps=function(){var p=Object(E.a)(t),A=p.props,N=t.getMode();return{mode:N==="horizontal"?"vertical":N,visible:t.getVisible(),level:A.level+1,inlineIndent:A.inlineIndent,focusable:!1,onClick:t.onSubMenuClick,onSelect:t.onSelect,onDeselect:t.onDeselect,onDestroy:t.onDestroy,selectedKeys:A.selectedKeys,eventKey:"".concat(A.eventKey,"-menu-"),openKeys:A.openKeys,motion:A.motion,onOpenChange:t.onOpenChange,subMenuOpenDelay:A.subMenuOpenDelay,parentMenu:Object(E.a)(t),subMenuCloseDelay:A.subMenuCloseDelay,forceSubMenuRender:A.forceSubMenuRender,triggerSubMenuAction:A.triggerSubMenuAction,builtinPlacements:A.builtinPlacements,defaultActiveFirst:A.store.getState().defaultActiveFirst[ct(A.eventKey)],multiple:A.multiple,prefixCls:A.rootPrefixCls,id:t.internalMenuId,manualRef:t.saveMenuInstance,itemIcon:A.itemIcon,expandIcon:A.expandIcon,direction:A.direction}},t.getMotion=function(p,A){var N=Object(E.a)(t),H=N.haveRendered,J=t.props,ce=J.motion,Fe=J.rootPrefixCls,st=Object(M.a)(Object(M.a)({},ce),{},{leavedClassName:"".concat(Fe,"-hidden"),removeOnLeave:!1,motionAppear:H||!A||p!=="inline"});return st};var a=l.store,n=l.eventKey,s=a.getState(),u=s.defaultActiveFirst;t.isRootMenu=!1;var b=!1;return u&&(b=u[n]),yn(a,n,b),t.state={mode:l.mode,isOpen:l.isOpen},t}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this,a=this.props,n=a.mode,s=a.parentMenu,u=a.manualRef,b=a.isOpen,p=function(){t.setState({mode:n,isOpen:b})},A=b!==this.state.isOpen,N=n!==this.state.mode;if((N||A)&&(St.a.cancel(this.updateStateRaf),N?this.updateStateRaf=Object(St.a)(p):p()),u&&u(this),n!=="horizontal"||!(s==null?void 0:s.isRootMenu)||!b)return;this.minWidthTimeout=setTimeout(function(){return t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var t=this.props,a=t.onDestroy,n=t.eventKey;a&&a(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),St.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(t,a){var n=this.getBaseProps();return o.createElement(ea,Object(D.a)({},n,{id:this.internalMenuId,className:t,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var t=this,a=this.getBaseProps(),n=a.mode,s=a.visible,u=a.forceSubMenuRender,b=a.direction,p=this.getMotion(n,s);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||s||u,!this.haveOpened)return o.createElement("div",null);var A=de()("".concat(a.prefixCls,"-sub"),Object(x.a)({},"".concat(a.prefixCls,"-rtl"),b==="rtl"));return this.isInlineMode()?o.createElement(dn,Object(D.a)({visible:a.visible,forceRender:u},p),function(N){var H=N.className,J=N.style,ce=de()(A,H);return t.renderPopupMenu(ce,J)}):this.renderPopupMenu(A)}},{key:"render",value:function(){var t,a,n,s=Object(M.a)({},this.props),u=this.getVisible(),b=this.getPrefixCls(),p=this.isInlineMode(),A=this.getMode(),N=de()(b,"".concat(b,"-").concat(A),(t={},Object(x.a)(t,s.className,!!s.className),Object(x.a)(t,this.getOpenClassName(),u),Object(x.a)(t,this.getActiveClassName(),s.active||u&&!p),Object(x.a)(t,this.getDisabledClassName(),s.disabled),Object(x.a)(t,this.getSelectedClassName(),this.isChildrenSelected()),t));this.internalMenuId||(s.eventKey?this.internalMenuId="".concat(s.eventKey,"$Menu"):(mn+=1,this.internalMenuId="$__$".concat(mn,"$Menu")));var H={},J={},ce={};s.disabled||(H={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},J={onClick:this.onTitleClick},ce={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Fe={},st=s.direction,tt=st==="rtl";p&&(tt?Fe.paddingRight=s.inlineIndent*s.level:Fe.paddingLeft=s.inlineIndent*s.level);var ut={};this.getVisible()&&(ut={"aria-owns":this.internalMenuId});var lt=null;A!=="horizontal"&&(lt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(lt=o.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var ot=o.createElement("div",Object(D.a)({ref:this.saveSubMenuTitle,style:Fe,className:"".concat(b,"-title"),role:"button"},ce,J,{"aria-expanded":u},ut,{"aria-haspopup":"true",title:typeof s.title=="string"?s.title:void 0}),s.title,lt||o.createElement("i",{className:"".concat(b,"-arrow")})),rt=this.renderChildren(),At=((a=s.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?s.parentMenu.props.getPopupContainer:function(Qt){return Qt.parentNode},ft=Cn[A],Jt=s.popupOffset?{offset:s.popupOffset}:{},Nt=de()((n={},Object(x.a)(n,s.popupClassName,s.popupClassName&&!p),Object(x.a)(n,"".concat(b,"-rtl"),tt),n)),Ke=s.disabled,Be=s.triggerSubMenuAction,ht=s.subMenuOpenDelay,Et=s.forceSubMenuRender,Se=s.subMenuCloseDelay,Ct=s.builtinPlacements;nt.forEach(function(Qt){return delete s[Qt]}),delete s.onClick;var Bt=tt?Object(M.a)(Object(M.a)({},Ta),Ct):Object(M.a)(Object(M.a)({},ia),Ct);delete s.direction;var yt=this.getBaseProps(),Lt=p?null:this.getMotion(yt.mode,yt.visible);return o.createElement("li",Object(D.a)({},s,H,{className:N,role:"menuitem"}),o.createElement(Ya,{prefixCls:b,popupClassName:de()("".concat(b,"-popup"),Nt),getPopupContainer:At,builtinPlacements:Bt,popupPlacement:ft,popupVisible:p?!1:u,popupAlign:Jt,popup:p?null:rt,action:Ke||p?[]:[Be],mouseEnterDelay:ht,mouseLeaveDelay:Se,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Et,popupMotion:Lt},ot),p?rt:null)}}]),g}(o.Component);la.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Wn=Object(y.b)(function(r,f){var g=r.openKeys,l=r.activeKey,t=r.selectedKeys,a=f.eventKey,n=f.subMenuKey;return{isOpen:g.indexOf(a)>-1,active:l[n]===a,selectedKeys:t}})(la);Wn.isSubMenu=!0;var Qn=Wn,Ia="menuitem-overflowed",Xa=.5,Pa=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){var l;return Object(B.a)(this,g),l=f.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=o.createRef(),l.getMenuItemNodes=function(){var t=l.props.prefixCls,a=l.childRef.current;return a?[].slice.call(a.children).filter(function(n){return n.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(t,a,n){var s=l.props,u=s.overflowedIndicator,b=s.level,p=s.mode,A=s.prefixCls,N=s.theme;if(b!==1||p!=="horizontal")return null;var H=l.props.children[0],J=H.props,ce=J.children,Fe=J.title,st=J.style,tt=Object(ge.a)(J,["children","title","style"]),ut=Object(M.a)({},st),lt="".concat(t,"-overflowed-indicator"),ot="".concat(t,"-overflowed-indicator");a.length===0&&n!==!0?ut=Object(M.a)(Object(M.a)({},ut),{},{display:"none"}):n&&(ut=Object(M.a)(Object(M.a)({},ut),{},{visibility:"hidden",position:"absolute"}),lt="".concat(lt,"-placeholder"),ot="".concat(ot,"-placeholder"));var rt=N?"".concat(A,"-").concat(N):"",At={};return nt.forEach(function(ft){tt[ft]!==void 0&&(At[ft]=tt[ft])}),o.createElement(Qn,Object(D.a)({title:u,className:"".concat(A,"-overflowed-submenu"),popupClassName:rt},At,{key:lt,eventKey:ot,disabled:!1,style:ut}),a)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var t=l.childRef.current;if(!t)return;var a=t.children;if(!a||a.length===0)return;var n=t.children[a.length-1];Ne(n,"display","inline-block");var s=l.getMenuItemNodes(),u=s.filter(function(b){return b.className.split(" ").indexOf(Ia)>=0});u.forEach(function(b){Ne(b,"display","inline-block")}),l.menuItemSizes=s.map(function(b){return qe(b,!0)}),u.forEach(function(b){Ne(b,"display","none")}),l.overflowedIndicatorWidth=qe(t.children[t.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(b,p){return b+p},0),l.handleResize(),Ne(n,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var t=l.childRef.current;if(!t)return;var a=qe(t);l.overflowedItems=[];var n=0,s;l.originalTotalWidth>a+Xa&&(s=-1,l.menuItemSizes.forEach(function(u){n+=u,n+l.overflowedIndicatorWidth<=a&&(s+=1)})),l.setState({lastVisibleIndex:s})},l}return Object(k.a)(g,[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Mt.default(function(n){n.forEach(function(){var s=t.cancelFrameId;cancelAnimationFrame(s),t.cancelFrameId=requestAnimationFrame(t.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){t.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),t.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(t){var a=this,n=this.state.lastVisibleIndex;return(t||[]).reduce(function(s,u,b){var p=u;if(a.props.mode==="horizontal"){var A=a.getOverflowedSubMenuItem(u.props.eventKey,[]);n!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(b>n&&(p=o.cloneElement(u,{style:{display:"none"},eventKey:"".concat(u.props.eventKey,"-hidden"),className:"".concat(Ia)})),b===n+1&&(a.overflowedItems=t.slice(n+1).map(function(H){return o.cloneElement(H,{key:H.props.eventKey,mode:"vertical-left"})}),A=a.getOverflowedSubMenuItem(u.props.eventKey,a.overflowedItems)));var N=[].concat(Object(Ce.a)(s),[A,p]);return b===t.length-1&&N.push(a.getOverflowedSubMenuItem(u.props.eventKey,[],!0)),N}return[].concat(Object(Ce.a)(s),[p])},[])}},{key:"render",value:function(){var t=this.props,a=t.visible,n=t.prefixCls,s=t.overflowedIndicator,u=t.mode,b=t.level,p=t.tag,A=t.children,N=t.theme,H=Object(ge.a)(t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),J=p;return o.createElement(J,Object(D.a)({ref:this.childRef},H),this.renderChildren(A))}}]),g}(o.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function qn(r){return r.length?r.every(function(f){return!!f.props.disabled}):!0}function In(r,f,g){var l=r.getState();r.setState({activeKey:Object(M.a)(Object(M.a)({},l.activeKey),{},Object(x.a)({},f,g))})}function xn(r){return r.eventKey||"0-menu-"}function $n(r,f){var g=f,l=r.children,t=r.eventKey;if(g){var a;if(we(l,function(n,s){n&&n.props&&!n.props.disabled&&g===ke(n,t,s)&&(a=!0)}),a)return g}return g=null,r.defaultActiveFirst&&we(l,function(n,s){!g&&n&&!n.props.disabled&&(g=ke(n,t,s))}),g}function La(r){if(!r)return;var f=this.instanceArray.indexOf(r);f!==-1?this.instanceArray[f]=r:this.instanceArray.push(r)}var Ua=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(l){var t;return Object(B.a)(this,g),t=f.call(this,l),t.onKeyDown=function(a,n){var s=a.keyCode,u;if(t.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(u=p.onKeyDown(a))}),u)return 1;var b=null;return(s===d.a.UP||s===d.a.DOWN)&&(b=t.step(s===d.a.UP?-1:1)),b?(a.preventDefault(),In(t.props.store,xn(t.props),b.props.eventKey),typeof n=="function"&&n(b),1):void 0},t.onItemHover=function(a){var n=a.key,s=a.hover;In(t.props.store,xn(t.props),s?n:null)},t.onDeselect=function(a){t.props.onDeselect(a)},t.onSelect=function(a){t.props.onSelect(a)},t.onClick=function(a){t.props.onClick(a)},t.onOpenChange=function(a){t.props.onOpenChange(a)},t.onDestroy=function(a){t.props.onDestroy(a)},t.getFlatInstanceArray=function(){return t.instanceArray},t.step=function(a){var n=t.getFlatInstanceArray(),s=t.props.store.getState().activeKey[xn(t.props)],u=n.length;if(!u)return null;a<0&&(n=n.concat().reverse());var b=-1;if(n.every(function(H,J){return H&&H.props.eventKey===s?(b=J,!1):!0}),!t.props.defaultActiveFirst&&b!==-1&&qn(n.slice(b,u-1)))return;var p=(b+1)%u,A=p;do{var N=n[A];if(!N||N.props.disabled)A=(A+1)%u;else return N}while(A!==p);return null},t.renderCommonMenuItem=function(a,n,s){var u=t.props.store.getState(),b=Object(E.a)(t),p=b.props,A=ke(a,p.eventKey,n),N=a.props;if(!N||typeof a.type=="string")return a;var H=A===u.activeKey,J=Object(M.a)(Object(M.a)({mode:N.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:t.renderMenuItem,rootPrefixCls:p.prefixCls,index:n,parentMenu:p.parentMenu,manualRef:N.disabled?void 0:Object(T.a)(a.ref,La.bind(Object(E.a)(t))),eventKey:A,active:!N.disabled&&H,multiple:p.multiple,onClick:function(Fe){(N.onClick||le)(Fe),t.onClick(Fe)},onItemHover:t.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:t.onOpenChange,onDeselect:t.onDeselect,onSelect:t.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:N.itemIcon||t.props.itemIcon,expandIcon:N.expandIcon||t.props.expandIcon},s),{},{direction:p.direction});return(p.mode==="inline"||Ze())&&(J.triggerSubMenuAction="click"),o.cloneElement(a,Object(M.a)(Object(M.a)({},J),{},{key:A||n}))},t.renderMenuItem=function(a,n,s){if(!a)return null;var u=t.props.store.getState(),b={openKeys:u.openKeys,selectedKeys:u.selectedKeys,triggerSubMenuAction:t.props.triggerSubMenuAction,subMenuKey:s};return t.renderCommonMenuItem(a,n,b)},l.store.setState({activeKey:Object(M.a)(Object(M.a)({},l.store.getState().activeKey),{},Object(x.a)({},l.eventKey,$n(l,l.activeKey)))}),t.instanceArray=[],t}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(t){return this.props.visible||t.visible||this.props.className!==t.className||!L()(this.props.style,t.style)}},{key:"componentDidUpdate",value:function(t){var a=this.props,n="activeKey"in a?a.activeKey:a.store.getState().activeKey[xn(a)],s=$n(a,n);if(s!==n)In(a.store,xn(a),s);else if("activeKey"in t){var u=$n(t,t.activeKey);s!==u&&In(a.store,xn(a),s)}}},{key:"render",value:function(){var t=this,a=Object(D.a)({},this.props);this.instanceArray=[];var n=de()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),s={className:n,role:a.role||"menu"};a.id&&(s.id=a.id),a.focusable&&(s.tabIndex=0,s.onKeyDown=this.onKeyDown);var u=a.prefixCls,b=a.eventKey,p=a.visible,A=a.level,N=a.mode,H=a.overflowedIndicator,J=a.theme;return nt.forEach(function(ce){return delete a[ce]}),delete a.onClick,o.createElement(ua,Object(D.a)({},a,{prefixCls:u,mode:N,tag:"ul",level:A,theme:J,visible:p,overflowedIndicator:H},s),Object(oe.a)(a.children).map(function(ce,Fe){return t.renderMenuItem(ce,Fe,b||"0-menu-")}))}}]),g}(o.Component);Ua.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var wa=Object(y.b)()(Ua),ea=wa,Pn=e("Kwbf");function ca(r,f,g){var l=r.prefixCls,t=r.motion,a=r.defaultMotions,n=a===void 0?{}:a,s=r.openAnimation,u=r.openTransitionName,b=f.switchingModeFromInline;if(t)return t;if(Object(Y.a)(s)==="object"&&s)Object(Pn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof s=="string")return{motionName:"".concat(l,"-open-").concat(s)};if(u)return{motionName:u};var p=n[g];return p||(b?null:n.other)}var ka=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(l){var t;Object(B.a)(this,g),t=f.call(this,l),t.onSelect=function(s){var u=Object(E.a)(t),b=u.props;if(b.selectable){var p=t.store.getState(),A=p.selectedKeys,N=s.key;b.multiple?A=A.concat([N]):A=[N],"selectedKeys"in b||t.store.setState({selectedKeys:A}),b.onSelect(Object(M.a)(Object(M.a)({},s),{},{selectedKeys:A}))}},t.onClick=function(s){var u=t.getRealMenuMode(),b=Object(E.a)(t),p=b.store,A=b.props.onOpenChange;u!=="inline"&&!("openKeys"in t.props)&&(p.setState({openKeys:[]}),A([])),t.props.onClick(s)},t.onKeyDown=function(s,u){t.innerMenu.getWrappedInstance().onKeyDown(s,u)},t.onOpenChange=function(s){var u=Object(E.a)(t),b=u.props,p=t.store.getState().openKeys.concat(),A=!1,N=function(J){var ce=!1;if(J.open)ce=p.indexOf(J.key)===-1,ce&&p.push(J.key);else{var Fe=p.indexOf(J.key);ce=Fe!==-1,ce&&p.splice(Fe,1)}A=A||ce};Array.isArray(s)?s.forEach(N):N(s),A&&("openKeys"in t.props||t.store.setState({openKeys:p}),b.onOpenChange(p))},t.onDeselect=function(s){var u=Object(E.a)(t),b=u.props;if(b.selectable){var p=t.store.getState().selectedKeys.concat(),A=s.key,N=p.indexOf(A);N!==-1&&p.splice(N,1),"selectedKeys"in b||t.store.setState({selectedKeys:p}),b.onDeselect(Object(M.a)(Object(M.a)({},s),{},{selectedKeys:p}))}},t.onMouseEnter=function(s){t.restoreModeVerticalFromInline();var u=t.props.onMouseEnter;u&&u(s)},t.onTransitionEnd=function(s){var u=s.propertyName==="width"&&s.target===s.currentTarget,b=s.target.className,p=Object.prototype.toString.call(b)==="[object SVGAnimatedString]"?b.animVal:b,A=s.propertyName==="font-size"&&p.indexOf("anticon")>=0;(u||A)&&t.restoreModeVerticalFromInline()},t.setInnerMenu=function(s){t.innerMenu=s},t.isRootMenu=!0;var a=l.defaultSelectedKeys,n=l.defaultOpenKeys;return"selectedKeys"in l&&(a=l.selectedKeys||[]),"openKeys"in l&&(n=l.openKeys||[]),t.store=Object(y.c)({selectedKeys:a,openKeys:n,activeKey:{"0-menu-":$n(l,l.activeKey)}}),t.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:t.store},t}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(t){var a=this.props,n=a.siderCollapsed,s=a.inlineCollapsed,u=a.onOpenChange;(!t.inlineCollapsed&&s||!t.siderCollapsed&&n)&&u([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var t=this.props.collapsedWidth,a=this.store,n=this.prevOpenKeys,s=this.getInlineCollapsed()&&(t===0||t==="0"||t==="0px");s?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var t=this.props.mode,a=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return a&&n?"inline":n?"vertical":t}},{key:"getInlineCollapsed",value:function(){var t=this.props,a=t.inlineCollapsed,n=t.siderCollapsed;return n!==void 0?n:a}},{key:"restoreModeVerticalFromInline",value:function(){var t=this.state.switchingModeFromInline;t&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var t=Object(M.a)({},Object(R.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return t.className+=" ".concat(t.prefixCls,"-root"),t.direction==="rtl"&&(t.className+=" ".concat(t.prefixCls,"-rtl")),t=Object(M.a)(Object(M.a)({},t),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,a)}),delete t.openAnimation,delete t.openTransitionName,o.createElement(y.a,{store:this.store},o.createElement(ea,Object(D.a)({},t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(t,a){var n=a.prevProps,s=a.store,u=s.getState(),b={},p={prevProps:t};return n.mode==="inline"&&t.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in t?b.openKeys=t.openKeys||[]:((t.inlineCollapsed&&!n.inlineCollapsed||t.siderCollapsed&&!n.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=u.openKeys,b.openKeys=[]),(!t.inlineCollapsed&&n.inlineCollapsed||!t.siderCollapsed&&n.siderCollapsed)&&(b.openKeys=a.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(b).length&&s.setState(b),p}}]),g}(o.Component);ka.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Ba=ka,Ln=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){var l;return Object(B.a)(this,g),l=f.apply(this,arguments),l.onKeyDown=function(t){var a=t.keyCode;return a===d.a.ENTER?(l.onClick(t),!0):void 0},l.onMouseLeave=function(t){var a=l.props,n=a.eventKey,s=a.onItemHover,u=a.onMouseLeave;s({key:n,hover:!1}),u({key:n,domEvent:t})},l.onMouseEnter=function(t){var a=l.props,n=a.eventKey,s=a.onItemHover,u=a.onMouseEnter;s({key:n,hover:!0}),u({key:n,domEvent:t})},l.onClick=function(t){var a=l.props,n=a.eventKey,s=a.multiple,u=a.onClick,b=a.onSelect,p=a.onDeselect,A=a.isSelected,N={key:n,keyPath:[n],item:Object(E.a)(l),domEvent:t};u(N),s?A?p(N):b(N):A||b(N)},l.saveNode=function(t){l.node=t},l}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var t=this.props;t.onDestroy&&t.onDestroy(t.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var t,a=Object(M.a)({},this.props),n=de()(this.getPrefixCls(),a.className,(t={},Object(x.a)(t,this.getActiveClassName(),!a.disabled&&a.active),Object(x.a)(t,this.getSelectedClassName(),a.isSelected),Object(x.a)(t,this.getDisabledClassName(),a.disabled),t)),s=Object(M.a)(Object(M.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:n,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?s=Object(M.a)(Object(M.a)({},s),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(s.role="none");var u={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},b=Object(M.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?b.paddingRight=a.inlineIndent*a.level:b.paddingLeft=a.inlineIndent*a.level),nt.forEach(function(A){return delete a[A]}),delete a.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(D.a)({},Object(R.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),s,u,{style:b,ref:this.saveNode}),a.children,p)}}]),g}(o.Component);Ln.isMenuItem=!0,Ln.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var da=Object(y.b)(function(r,f){var g=r.activeKey,l=r.selectedKeys,t=f.eventKey,a=f.subMenuKey;return{active:g[a]===t,isSelected:Array.isArray(l)?l.indexOf(t)!==-1:l===t}})(Ln),ma=da,fa=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){var l;return Object(B.a)(this,g),l=f.apply(this,arguments),l.renderInnerMenuItem=function(t){var a=l.props,n=a.renderMenuItem,s=a.index;return n(t,s,l.props.subMenuKey)},l}return Object(k.a)(g,[{key:"render",value:function(){var t=Object(D.a)({},this.props),a=t.className,n=a===void 0?"":a,s=t.rootPrefixCls,u="".concat(s,"-item-group-title"),b="".concat(s,"-item-group-list"),p=t.title,A=t.children;return nt.forEach(function(N){return delete t[N]}),delete t.direction,o.createElement("li",Object(D.a)({},t,{onClick:function(H){return H.stopPropagation()},className:"".concat(n," ").concat(s,"-item-group")}),o.createElement("div",{className:u,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:b},o.Children.map(A,this.renderInnerMenuItem)))}}]),g}(o.Component);fa.isMenuItemGroup=!0,fa.defaultProps={disabled:!0};var qa=fa,pa=function(f){var g=f.className,l=f.rootPrefixCls,t=f.style;return o.createElement("li",{className:"".concat(g," ").concat(l,"-item-divider"),style:t})};pa.defaultProps={disabled:!0,className:"",style:{}};var $a=pa,Ka=Ba,ha=e("eDIo");function eo(r,f){var g=r.prefixCls,l=r.editable,t=r.locale,a=r.style;return!l||l.showAdd===!1?null:o.createElement("button",{ref:f,type:"button",className:"".concat(g,"-nav-add"),style:a,"aria-label":(t==null?void 0:t.addAriaLabel)||"Add tab",onClick:function(s){l.onEdit("add",{event:s})}},l.addIcon||"+")}var ta=o.forwardRef(eo);function to(r,f){var g=r.prefixCls,l=r.id,t=r.tabs,a=r.locale,n=r.mobile,s=r.moreIcon,u=s===void 0?"More":s,b=r.moreTransitionName,p=r.style,A=r.className,N=r.editable,H=r.tabBarGutter,J=r.rtl,ce=r.onTabClick,Fe=Object(o.useState)(!1),st=Object(S.a)(Fe,2),tt=st[0],ut=st[1],lt=Object(o.useState)(null),ot=Object(S.a)(lt,2),rt=ot[0],At=ot[1],ft="".concat(l,"-more-popup"),Jt="".concat(g,"-dropdown"),Nt=rt!==null?"".concat(ft,"-").concat(rt):null,Ke=a==null?void 0:a.dropdownAriaLabel,Be=o.createElement(Ka,{onClick:function(Lt){var Qt=Lt.key,en=Lt.domEvent;ce(Qt,en),ut(!1)},id:ft,tabIndex:-1,role:"listbox","aria-activedescendant":Nt,selectedKeys:[rt],"aria-label":Ke!==void 0?Ke:"expanded dropdown"},t.map(function(yt){return o.createElement(ma,{key:yt.key,id:"".concat(ft,"-").concat(yt.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(yt.key),disabled:yt.disabled},yt.tab)}));function ht(yt){for(var Lt=t.filter(function(pn){return!pn.disabled}),Qt=Lt.findIndex(function(pn){return pn.key===rt})||0,en=Lt.length,fn=0;fnCt?(Et=Be,ft.current="x"):(Et=ht,ft.current="y");var Bt=Date.now();Bt-rt.current>100&&(At.current=!1),(f(-Et,-Et)||At.current)&&(Ke.preventDefault(),At.current=!0),rt.current=Bt}var Nt=Object(o.useRef)(null);Nt.current={onTouchStart:ut,onTouchMove:lt,onTouchEnd:ot,onWheel:Jt},o.useEffect(function(){function Ke(Se){Nt.current.onTouchStart(Se)}function Be(Se){Nt.current.onTouchMove(Se)}function ht(Se){Nt.current.onTouchEnd(Se)}function Et(Se){Nt.current.onWheel(Se)}return document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",ht,{passive:!1}),r.current.addEventListener("touchstart",Ke,{passive:!1}),r.current.addEventListener("wheel",Et),function(){document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",ht)}},[])}function Ea(){var r=Object(o.useRef)(new Map);function f(l){return r.current.has(l)||r.current.set(l,o.createRef()),r.current.get(l)}function g(l){r.current.delete(l)}return[f,g]}function Qa(r,f){var g=o.useRef(r),l=o.useState({}),t=Object(S.a)(l,2),a=t[1];function n(s){var u=typeof s=="function"?s(g.current):s;u!==g.current&&f(u,g.current),g.current=u,a({})}return[g.current,n]}var _a=function(f){var g=f.position,l=f.prefixCls,t=f.extra;if(!t)return null;var a,n=t;return g==="right"&&(a=n.right||!n.left&&n||null),g==="left"&&(a=n.left||null),a?o.createElement("div",{className:"".concat(l,"-extra-content")},a):null};function Qo(r,f){var g,l=o.useContext(va),t=l.prefixCls,a=l.tabs,n=r.className,s=r.style,u=r.id,b=r.animated,p=r.activeKey,A=r.rtl,N=r.extra,H=r.editable,J=r.locale,ce=r.tabPosition,Fe=r.tabBarGutter,st=r.children,tt=r.onTabClick,ut=r.onTabScroll,lt=Object(o.useRef)(),ot=Object(o.useRef)(),rt=Object(o.useRef)(),At=Object(o.useRef)(),ft=Ea(),Jt=Object(S.a)(ft,2),Nt=Jt[0],Ke=Jt[1],Be=ce==="top"||ce==="bottom",ht=Qa(0,function(Tt,vt){Be&&ut&&ut({direction:Tt>vt?"left":"right"})}),Et=Object(S.a)(ht,2),Se=Et[0],Ct=Et[1],Bt=Qa(0,function(Tt,vt){!Be&&ut&&ut({direction:Tt>vt?"top":"bottom"})}),yt=Object(S.a)(Bt,2),Lt=yt[0],Qt=yt[1],en=Object(o.useState)(0),fn=Object(S.a)(en,2),Ht=fn[0],pn=fn[1],Sn=Object(o.useState)(0),vn=Object(S.a)(Sn,2),En=vn[0],Yt=vn[1],un=Object(o.useState)(0),tn=Object(S.a)(un,2),qt=tn[0],Un=tn[1],wn=Object(o.useState)(0),zn=Object(S.a)(wn,2),wt=zn[0],Dn=zn[1],Fn=Object(o.useState)(null),Kt=Object(S.a)(Fn,2),Dt=Kt[0],nn=Kt[1],Vo=Object(o.useState)(null),Eo=Object(S.a)(Vo,2),na=Eo[0],Ho=Eo[1],Go=Object(o.useState)(0),go=Object(S.a)(Go,2),Zo=go[0],Yo=go[1],Xo=Object(o.useState)(0),bo=Object(S.a)(Xo,2),qo=bo[0],$o=bo[1],er=c(new Map),Ao=Object(S.a)(er,2),tr=Ao[0],nr=Ao[1],za=V(a,tr,Ht),Co="".concat(t,"-nav-operations-hidden"),ga=0,ba=0;Be?A?(ga=0,ba=Math.max(0,Ht-Dt)):(ga=Math.min(0,Dt-Ht),ba=0):(ga=Math.min(0,na-En),ba=0);function ao(Tt){return Ttba?[ba,!1]:[Tt,!0]}var yo=Object(o.useRef)(),ar=Object(o.useState)(),Oo=Object(S.a)(ar,2),oo=Oo[0],Mo=Oo[1];function ro(){Mo(Date.now())}function io(){window.clearTimeout(yo.current)}Wa(lt,function(Tt,vt){var $t=!1;function gn(Ca,ya){Ca(function(Oa){var Ma=ao(Oa+ya),aa=Object(S.a)(Ma,2),co=aa[0],mo=aa[1];return $t=mo,co})}if(Be){if(Dt>=Ht)return $t;gn(Ct,Tt)}else{if(na>=En)return $t;gn(Qt,vt)}return io(),ro(),$t}),Object(o.useEffect)(function(){return io(),oo&&(yo.current=window.setTimeout(function(){Mo(0)},100)),io},[oo]);function So(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,vt=za.get(Tt);if(!vt)return;if(Be){var $t=Se;A?vt.rightSe+Dt&&($t=vt.right+vt.width-Dt):vt.left<-Se?$t=-vt.left:vt.left+vt.width>-Se+Dt&&($t=-(vt.left+vt.width-Dt)),Qt(0),Ct(ao($t)[0])}else{var gn=Lt;vt.top<-Lt?gn=-vt.top:vt.top+vt.height>-Lt+na&&(gn=-(vt.top+vt.height-na)),Ct(0),Qt(ao(gn)[0])}}var or=ee(za,{width:Dt,height:na,left:Se,top:Lt},{width:qt,height:wt},{width:Zo,height:qo},Object(M.a)(Object(M.a)({},r),{},{tabs:a})),Ro=Object(S.a)(or,2),rr=Ro[0],ir=Ro[1],sr=a.map(function(Tt){var vt=Tt.key;return o.createElement(U,{id:u,prefixCls:t,key:vt,rtl:A,tab:Tt,closable:Tt.closable,editable:H,active:vt===p,tabPosition:ce,tabBarGutter:Fe,renderWrapper:st,removeAriaLabel:J==null?void 0:J.removeAriaLabel,ref:Nt(vt),onClick:function(gn){tt(vt,gn)},onRemove:function(){Ke(vt)},onFocus:function(){So(vt),ro(),A||(lt.current.scrollLeft=0),lt.current.scrollTop=0}})}),so=P(function(){var Tt,vt,$t,gn,Ca,ya,Oa,Ma,aa,co=((Tt=lt.current)===null||Tt===void 0?void 0:Tt.offsetWidth)||0,mo=((vt=lt.current)===null||vt===void 0?void 0:vt.offsetHeight)||0,Lo=(($t=At.current)===null||$t===void 0?void 0:$t.offsetWidth)||0,Uo=((gn=At.current)===null||gn===void 0?void 0:gn.offsetHeight)||0,fr=((Ca=rt.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((ya=rt.current)===null||ya===void 0?void 0:ya.offsetHeight)||0;nn(co),Ho(mo),Yo(Lo),$o(Uo);var wo=(((Oa=ot.current)===null||Oa===void 0?void 0:Oa.offsetWidth)||0)-Lo,ko=(((Ma=ot.current)===null||Ma===void 0?void 0:Ma.offsetHeight)||0)-Uo;pn(wo),Yt(ko);var Bo=(aa=rt.current)===null||aa===void 0?void 0:aa.className.includes(Co);Un(wo-(Bo?0:fr)),Dn(ko-(Bo?0:pr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Wo=hr.key,Sa=Nt(Wo).current;Sa&&Ko.set(Wo,{width:Sa.offsetWidth,height:Sa.offsetHeight,left:Sa.offsetLeft,top:Sa.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),xo=[].concat(Object(Ce.a)(lr),Object(Ce.a)(ur)),cr=Object(o.useState)(),Do=Object(S.a)(cr,2),dr=Do[0],mr=Do[1],kn=za.get(p),jo=Object(o.useRef)();function No(){I.a.cancel(jo.current)}Object(o.useEffect)(function(){var Tt={};return kn&&(Be?(A?Tt.right=kn.right:Tt.left=kn.left,Tt.width=kn.width):(Tt.top=kn.top,Tt.height=kn.height)),No(),jo.current=I()(function(){mr(Tt)}),No},[kn,Be,A]),Object(o.useEffect)(function(){So()},[p,kn,za,Be]),Object(o.useEffect)(function(){so()},[A,Fe,p,a.map(function(Tt){return Tt.key}).join("_")]);var To=!!xo.length,Aa="".concat(t,"-nav-wrap"),lo,uo,Io,Po;return Be?A?(uo=Se>0,lo=Se+Dt1)Object(Ce.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(Ce.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Q=V[0];if(h.isValidElement(Q)&&Object(j.c)(Q)){var ee=Q.ref;V[0]=h.cloneElement(Q,{ref:Object(j.a)(ee,this.setChildNode)})}return V.length===1?V[0]:V.map(function(D,B){return!h.isValidElement(D)||"key"in D&&D.key!==null?D:h.cloneElement(D,{key:"".concat(W,"-").concat(B)})})}}]),v}(h.Component);P.displayName="ResizeObserver",O.a=P},tWlo:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},wCXF:function(F,O,e){"use strict";e.d(O,"a",function(){return Ot});var x=e("rePB"),S=e("VTBJ"),ge=e("KQm4"),M=e("U8pU"),o=e("ODXe"),h=e("q1tI"),de=e("TSYQ"),oe=e.n(de),w=e("Gytx"),Ce=e.n(w),j=e("Kwbf"),I=e("t23M"),W=e("qx4F"),P=e("6eGT"),c=e("IBYe"),d=e("Ff2n"),v=e("c+Xe"),U=e("fyJ8"),z=e("biw7");function V(C,G,X,me,Ae){var pe=X[C]||{},se=X[G]||{},$,ne;pe.fixed==="left"?$=me.left[C]:se.fixed==="right"&&(ne=me.right[G]);var Oe=!1,ve=!1,Ee=!1,Ve=!1,xe=X[G+1],Te=X[C-1];if(Ae==="rtl"){if($!==void 0){var pt=Te&&Te.fixed==="left";Ve=!pt}else if(ne!==void 0){var $e=xe&&xe.fixed==="right";Ee=!$e}}else if($!==void 0){var it=xe&&xe.fixed==="left";Oe=!it}else if(ne!==void 0){var We=Te&&Te.fixed==="right";ve=!We}return{fixLeft:$,fixRight:ne,lastFixLeft:Oe,firstFixRight:ve,lastFixRight:Ee,firstFixLeft:Ve,isSticky:me.isSticky}}var Q=e("sR1s");function ee(C){var G=C.cells,X=C.stickyOffsets,me=C.flattenColumns,Ae=C.rowComponent,pe=C.cellComponent,se=C.onHeaderRow,$=C.index,ne=h.useContext(z.a),Oe=ne.prefixCls,ve=ne.direction,Ee;se&&(Ee=se(G.map(function(xe){return xe.column}),$));var Ve=Object(Q.a)(G.map(function(xe){return xe.column}));return h.createElement(Ae,Object.assign({},Ee),G.map(function(xe,Te){var pt=xe.column,$e=V(xe.colStart,xe.colEnd,me,X,ve),it;return pt&&pt.onHeaderCell&&(it=xe.column.onHeaderCell(pt)),h.createElement(U.a,Object.assign({},xe,{ellipsis:pt.ellipsis,align:pt.align,component:pe,prefixCls:Oe,key:Ve[Te]},$e,{additionalProps:it,rowType:"header"}))}))}ee.displayName="HeaderRow";var D=ee;function B(C){var G=[];function X(se,$){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;G[ne]=G[ne]||[];var Oe=$,ve=se.filter(Boolean).map(function(Ee){var Ve={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:Oe},xe=1,Te=Ee.children;return Te&&Te.length>0&&(xe=X(Te,Oe,ne+1).reduce(function(pt,$e){return pt+$e},0),Ve.hasSubColumns=!0),"colSpan"in Ee&&(xe=Ee.colSpan),"rowSpan"in Ee&&(Ve.rowSpan=Ee.rowSpan),Ve.colSpan=xe,Ve.colEnd=Ve.colStart+xe-1,G[ne].push(Ve),Oe+=xe,xe});return ve}X(C,0);for(var me=G.length,Ae=function($){G[$].forEach(function(ne){!("rowSpan"in ne)&&!ne.hasSubColumns&&(ne.rowSpan=me-$)})},pe=0;pe=0;$-=1){var ne=G[$],Oe=X&&X[$],ve=Oe&&Oe[m.a];(ne||ve||se)&&(Ae.unshift(h.createElement("col",Object.assign({key:$,style:{width:ne,minWidth:ne}},ve))),se=!0)}return h.createElement("colgroup",null,Ae)}var y=i;function R(C,G){return Object(h.useMemo)(function(){for(var X=[],me=0;me1?on-1:0),bn=1;bn=Ee&&(It=Ee-Ve),se({scrollLeft:It/Ee*(ve+2)}),We.current.x=Ge.pageX},dt=function(){var Ge=Object(nt.b)(pe.current).top,Ut=Ge+pe.current.offsetHeight,Zt=document.documentElement.scrollTop+window.innerHeight;Ut-Object(W.a)()<=Zt||Ge>=Zt-$?it(function(Wt){return Object(S.a)(Object(S.a)({},Wt),{},{isHiddenScrollBar:!0})}):it(function(Wt){return Object(S.a)(Object(S.a)({},Wt),{},{isHiddenScrollBar:!1})})},Xe=function(Ge){it(function(Ut){return Object(S.a)(Object(S.a)({},Ut),{},{scrollLeft:Ge/ve*Ee||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:Xe}}),h.useEffect(function(){var mt=Object(ze.a)(document.body,"mouseup",He,!1),Ge=Object(ze.a)(document.body,"mousemove",xt,!1);return dt(),function(){mt.remove(),Ge.remove()}},[Ve,Ye]),h.useEffect(function(){var mt=Object(ze.a)(window,"scroll",dt,!1),Ge=Object(ze.a)(window,"resize",dt,!1);return function(){mt.remove(),Ge.remove()}},[]),h.useEffect(function(){$e.isHiddenScrollBar||it(function(mt){var Ge,Ut;return Object(S.a)(Object(S.a)({},mt),{},{scrollLeft:pe.current.scrollLeft/((Ge=pe.current)===null||Ge===void 0?void 0:Ge.scrollWidth)*((Ut=pe.current)===null||Ut===void 0?void 0:Ut.clientWidth)})})},[$e.isHiddenScrollBar]),ve<=Ee||!Ve||$e.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(W.a)(),width:Ee,bottom:$},className:"".concat(Oe,"-sticky-scroll")},h.createElement("div",{onMouseDown:et,ref:xe,className:oe()("".concat(Oe,"-sticky-scroll-bar"),Object(x.a)({},"".concat(Oe,"-sticky-scroll-bar-active"),Ye)),style:{width:"".concat(Ve,"px"),transform:"translate3d(".concat($e.scrollLeft,"px, 0, 0)")}}))},Ne=h.forwardRef(qe);function Ze(C,G){return h.useMemo(function(){var X=!!C;return{isSticky:X,stickyClassName:X?"".concat(G,"-sticky-header"):"",offsetHeader:Object(M.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(M.a)(C)==="object"&&C.offsetScroll||0}},[C,G])}var Mt=[],jt={},Ot="rc-table-internal-hook",St=h.memo(function(C){var G=C.children;return G},function(C,G){return Ce()(C.props,G.props)?C.pingLeft!==G.pingLeft||C.pingRight!==G.pingRight:!1});function Rt(C){var G,X=C.prefixCls,me=C.className,Ae=C.rowClassName,pe=C.style,se=C.data,$=C.rowKey,ne=C.scroll,Oe=C.tableLayout,ve=C.direction,Ee=C.title,Ve=C.footer,xe=C.summary,Te=C.id,pt=C.showHeader,$e=C.components,it=C.emptyText,We=C.onRow,kt=C.onHeaderRow,Me=C.internalHooks,Ye=C.transformColumns,at=C.internalRefs,He=C.sticky,et=se||Mt,xt=!!et.length,dt=h.useState(0),Xe=Object(o.a)(dt,2),mt=Xe[0],Ge=Xe[1];h.useEffect(function(){Ge(Object(W.a)())});var Ut=h.useMemo(function(){return Object(Q.c)($e,{})},[$e]),Zt=h.useCallback(function(gt,bt){return Object(Q.b)(Ut,gt)||bt},[Ut]),Wt=h.useMemo(function(){return typeof $=="function"?$:function(gt){var bt=gt&>[$];return bt}},[$]),It=Object(m.c)(C),cn=It.expandIcon,Le=It.expandedRowKeys,Z=It.defaultExpandedRowKeys,De=It.defaultExpandAllRows,Pt=It.expandedRowRender,Je=It.onExpand,_t=It.onExpandedRowsChange,sn=It.expandRowByClick,an=It.rowExpandable,Vt=It.expandIconColumnIndex,Rn=It.expandedRowClassName,Bn=It.childrenColumnName,jn=It.indentSize,On=cn||ct,Nn=Bn||"children",Jn=h.useMemo(function(){return Pt?"row":C.expandable&&Me===Ot&&C.expandable.__PARENT_RENDER_ICON__||et.some(function(gt){return gt&&Object(M.a)(gt)==="object"&>[Nn]})?"nest":!1},[!!Pt,et]),Tn=h.useState(function(){return Z||(De?we(et,Wt,Nn):[])}),Xt=Object(o.a)(Tn,2),ln=Xt[0],hn=Xt[1],on=h.useMemo(function(){return new Set(Le||ln||[])},[Le,ln]),dn=h.useCallback(function(gt){var bt=Wt(gt,et.indexOf(gt)),Ft,rn=on.has(bt);rn?(on.delete(bt),Ft=Object(ge.a)(on)):Ft=[].concat(Object(ge.a)(on),[bt]),hn(Ft),Je&&Je(!rn,gt),_t&&_t(Ft)},[Wt,on,et,Je,_t]),bn=h.useState(0),Vn=Object(o.a)(bn,2),Kn=Vn[0],Hn=Vn[1],Ra=Object(ie.b)(Object(S.a)(Object(S.a)(Object(S.a)({},C),It),{},{expandable:!!Pt,expandedKeys:on,getRowKey:Wt,onTriggerExpand:dn,expandIcon:On,expandIconColumnIndex:Vt,direction:ve}),Me===Ot?Ye:null),xa=Object(o.a)(Ra,2),Gn=xa[0],zt=xa[1],Zn=h.useMemo(function(){return{columns:Gn,flattenColumns:zt}},[Gn,zt]),Yn=h.useRef(),Da=h.useRef(),An=h.useRef(),Fa=h.useState(!1),ja=Object(o.a)(Fa,2),oa=ja[0],Ja=ja[1],Va=h.useState(!1),ra=Object(o.a)(Va,2),Xn=ra[0],Ha=ra[1],Ga=K(new Map),Na=Object(o.a)(Ga,2),Za=Na[0],Ya=Na[1],Mn=Object(Q.a)(zt),ia=Mn.map(function(gt){return Za.get(gt)}),Ta=h.useMemo(function(){return ia},[ia.join("_")]),sa=je(Ta,zt.length,ve),mn=ne&&Object(Q.d)(ne.y),Cn=ne&&Object(Q.d)(ne.x),yn=Cn&&zt.some(function(gt){var bt=gt.fixed;return bt}),la=h.useRef(),Wn=Ze(He,X),Qn=Wn.isSticky,Ia=Wn.offsetHeader,Xa=Wn.offsetScroll,Pa=Wn.stickyClassName,ua,qn,In;mn&&(qn={overflowY:"scroll",maxHeight:ne.y}),Cn&&(ua={overflowX:"auto"},mn||(qn={overflowY:"hidden"}),In={width:ne.x===!0?"auto":ne.x,minWidth:"100%"});var xn=h.useCallback(function(gt,bt){Ya(function(Ft){var rn=new Map(Ft);return rn.set(gt,bt),rn})},[]),$n=_(null),La=Object(o.a)($n,2),Ua=La[0],wa=La[1];function ea(gt,bt){if(!bt)return;typeof bt=="function"?bt(gt):bt.scrollLeft!==gt&&(bt.scrollLeft=gt)}var Pn=function(bt){var Ft=bt.currentTarget,rn=bt.scrollLeft,_n=typeof rn=="number"?rn:Ft.scrollLeft,Wa=Ft||jt;if(!wa()||wa()===Wa){var Ea;Ua(Wa),ea(_n,Da.current),ea(_n,An.current),ea(_n,(Ea=la.current)===null||Ea===void 0?void 0:Ea.setScrollLeft)}if(Ft){var Qa=Ft.scrollWidth,_a=Ft.clientWidth;Ja(_n>0),Ha(_n0?[].concat(Object(S.a)(d),Object(S.a)(j(V).map(function(Q){return Object(ge.a)({fixed:z},Q)}))):[].concat(Object(S.a)(d),[Object(ge.a)(Object(ge.a)({},v),{},{fixed:z})])},[])}function I(c){for(var d=!0,v=0;v=0;V-=1){var Q=c[V];if(z&&Q.fixed!=="right")z=!1;else if(!z&&Q.fixed==="right"){Object(de.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function W(c){return c.map(function(d){var v=d.fixed,U=Object(M.a)(d,["fixed"]),z=v;return v==="left"?z="right":v==="right"&&(z="left"),Object(ge.a)({fixed:z},U)})}function P(c,d){var v=c.prefixCls,U=c.columns,z=c.children,V=c.expandable,Q=c.expandedKeys,ee=c.getRowKey,D=c.onTriggerExpand,B=c.expandIcon,k=c.rowExpandable,E=c.expandIconColumnIndex,m=c.direction,i=c.expandRowByClick,y=o.useMemo(function(){return U||Ce(z)},[U,z]),R=o.useMemo(function(){if(V){var L,Y=E||0,re=y[Y],ye=(L={},Object(x.a)(L,w.a,{className:"".concat(v,"-expand-icon-col")}),Object(x.a)(L,"title",""),Object(x.a)(L,"fixed",re?re.fixed:null),Object(x.a)(L,"className","".concat(v,"-row-expand-icon-cell")),Object(x.a)(L,"render",function(q,Re,Ie){var Pe=ee(Re,Ie),Qe=Q.has(Pe),ae=k?k(Re):!0,ie=B({prefixCls:v,expanded:Qe,expandable:ae,record:Re,onExpand:D});return i?o.createElement("span",{onClick:function(ue){return ue.stopPropagation()}},ie):ie}),L),Ue=y.slice();return Y>=0&&Ue.splice(Y,0,ye),Ue}return y},[V,y,ee,Q,B,m]),T=o.useMemo(function(){var L=R;return d&&(L=d(L)),L.length||(L=[{render:function(){return null}}]),L},[d,R,m]),te=o.useMemo(function(){return m==="rtl"?W(j(T)):j(T)},[T,m]);return[T,te]}O.b=P},"y0+3":function(F,O,e){"use strict";e.d(O,"a",function(){return j}),e.d(O,"b",function(){return W});var x=/margin|padding|width|height|max|min|offset/,S={left:!0,top:!0},ge={cssFloat:1,styleFloat:1,float:1};function M(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function o(P,c,d){if(c=c.toLowerCase(),d==="auto"){if(c==="height")return P.offsetHeight;if(c==="width")return P.offsetWidth}return c in S||(S[c]=x.test(c)),S[c]?parseFloat(d)||0:d}function h(P,c){var d=arguments.length,v=M(P);return c=ge[c]?"cssFloat"in P.style?"cssFloat":"styleFloat":c,d===1?v:o(P,c,v[c]||P.style[c])}function de(P,c,d){var v=arguments.length;if(c=ge[c]?"cssFloat"in P.style?"cssFloat":"styleFloat":c,v===3)return typeof d=="number"&&x.test(c)&&(d="".concat(d,"px")),P.style[c]=d,d;for(var U in c)c.hasOwnProperty(U)&&de(P,U,c[U]);return M(P)}function oe(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function w(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function Ce(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:c}}function j(){var P=document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:c}}function I(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function W(P){var c=P.getBoundingClientRect(),d=document.documentElement;return{left:c.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:c.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},yslc:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); +`,te=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],L={},Y;function re(ae){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he=ae.getAttribute("id")||ae.getAttribute("data-reactid")||ae.getAttribute("name");if(ie&&L[he])return L[he];var ue=window.getComputedStyle(ae),K=ue.getPropertyValue("box-sizing")||ue.getPropertyValue("-moz-box-sizing")||ue.getPropertyValue("-webkit-box-sizing"),_=parseFloat(ue.getPropertyValue("padding-bottom"))+parseFloat(ue.getPropertyValue("padding-top")),fe=parseFloat(ue.getPropertyValue("border-bottom-width"))+parseFloat(ue.getPropertyValue("border-top-width")),je=te.map(function(le){return"".concat(le,":").concat(ue.getPropertyValue(le))}).join(";"),_e={sizingStyle:je,paddingSize:_,borderSize:fe,boxSizing:K};return ie&&he&&(L[he]=_e),_e}function ye(ae){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Y||(Y=document.createElement("textarea"),Y.setAttribute("tab-index","-1"),Y.setAttribute("aria-hidden","true"),document.body.appendChild(Y)),ae.getAttribute("wrap")?Y.setAttribute("wrap",ae.getAttribute("wrap")):Y.removeAttribute("wrap");var K=re(ae,ie),_=K.paddingSize,fe=K.borderSize,je=K.boxSizing,_e=K.sizingStyle;Y.setAttribute("style","".concat(_e,";").concat(N)),Y.value=ae.value||ae.placeholder||"";var le=Number.MIN_SAFE_INTEGER,ke=Number.MAX_SAFE_INTEGER,ct=Y.scrollHeight,we;if(je==="border-box"?ct+=fe:je==="content-box"&&(ct-=_),he!==null||ue!==null){Y.value=" ";var ze=Y.scrollHeight-_;he!==null&&(le=ze*he,je==="border-box"&&(le=le+_+fe),ct=Math.max(le,ct)),ue!==null&&(ke=ze*ue,je==="border-box"&&(ke=ke+_+fe),we=ct>ke?"":"hidden",ct=Math.min(ke,ct))}return{height:ct,minHeight:le,maxHeight:ke,overflowY:we,resize:"none"}}var Ue=e("Gytx"),be=e.n(Ue),q;(function(ae){ae[ae.NONE=0]="NONE",ae[ae.RESIZING=1]="RESIZING",ae[ae.RESIZED=2]="RESIZED"})(q||(q={}));var Re=function(ae){Object(M.a)(he,ae);var ie=Object(o.a)(he);function he(ue){var K;return Object(S.a)(this,he),K=ie.call(this,ue),K.nextFrameActionId=void 0,K.resizeFrameId=void 0,K.textArea=void 0,K.saveTextArea=function(_){K.textArea=_},K.handleResize=function(_){var fe=K.state.resizeStatus,je=K.props,_e=je.autoSize,le=je.onResize;if(fe!==q.NONE)return;typeof le=="function"&&le(_),_e&&K.resizeOnNextFrame()},K.resizeOnNextFrame=function(){cancelAnimationFrame(K.nextFrameActionId),K.nextFrameActionId=requestAnimationFrame(K.resizeTextarea)},K.resizeTextarea=function(){var _=K.props.autoSize;if(!_||!K.textArea)return;var fe=_.minRows,je=_.maxRows,_e=ye(K.textArea,!1,fe,je);K.setState({textareaStyles:_e,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(K.resizeFrameId),K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:q.RESIZED},function(){K.resizeFrameId=requestAnimationFrame(function(){K.setState({resizeStatus:q.NONE}),K.fixFirefoxAutoScroll()})})})})},K.renderTextArea=function(){var _=K.props,fe=_.prefixCls,je=fe===void 0?"rc-textarea":fe,_e=_.autoSize,le=_.onResize,ke=_.className,ct=_.disabled,we=K.state,ze=we.textareaStyles,nt=we.resizeStatus,qe=Object(i.a)(K.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Te=R()(je,ke,Object(oe.a)({},"".concat(je,"-disabled"),ct));"value"in qe&&(qe.value=qe.value||"");var Ze=Object(de.a)(Object(de.a)(Object(de.a)({},K.props.style),ze),nt===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return h.createElement(m,{onResize:K.handleResize,disabled:!(_e||le)},h.createElement("textarea",Object(x.a)({},qe,{className:Te,style:Ze,ref:K.saveTextArea})))},K.state={textareaStyles:{},resizeStatus:q.NONE},K}return Object(ge.a)(he,[{key:"componentDidUpdate",value:function(K){(K.value!==this.props.value||!be()(K.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var K=this.textArea.selectionStart,_=this.textArea.selectionEnd;this.textArea.setSelectionRange(K,_)}}catch(fe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),he}(h.Component),Ie=Re,Pe=function(ae){Object(M.a)(he,ae);var ie=Object(o.a)(he);function he(ue){var K;Object(S.a)(this,he),K=ie.call(this,ue),K.resizableTextArea=void 0,K.focus=function(){K.resizableTextArea.textArea.focus()},K.saveTextArea=function(fe){K.resizableTextArea=fe},K.handleChange=function(fe){var je=K.props.onChange;K.setValue(fe.target.value,function(){K.resizableTextArea.resizeTextarea()}),je&&je(fe)},K.handleKeyDown=function(fe){var je=K.props,_e=je.onPressEnter,le=je.onKeyDown;fe.keyCode===13&&_e&&_e(fe),le&&le(fe)};var _=typeof ue.value=="undefined"||ue.value===null?ue.defaultValue:ue.value;return K.state={value:_},K}return Object(ge.a)(he,[{key:"setValue",value:function(K,_){"value"in this.props||this.setState({value:K},_)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return h.createElement(Ie,Object(x.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(K){return"value"in K?{value:K.value}:null}}]),he}(h.Component),Qe=O.default=Pe},ZpRC:function(F,O,e){"use strict";function x(j){return typeof j=="object"&&j!=null&&j.nodeType===1}function S(j,I){return(!I||j!=="hidden")&&j!=="visible"&&j!=="clip"}function ge(j,I){if(j.clientHeightI||d>j&&v=I&&U>=W?d-j-P:v>I&&UW?v-I+c:0}var o=function(j,I){var W=window,P=I.scrollMode,c=I.block,d=I.inline,v=I.boundary,U=I.skipOverflowHiddenElements,z=typeof v=="function"?v:function(ze){return ze!==v};if(!x(j))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,Q=[],ee=j;x(ee)&&z(ee);){if((ee=ee.parentElement)===V){Q.push(ee);break}ee!=null&&ee===document.body&&ge(ee)&&!ge(document.documentElement)||ee!=null&&ge(ee,U)&&Q.push(ee)}for(var D=W.visualViewport?W.visualViewport.width:innerWidth,B=W.visualViewport?W.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,m=j.getBoundingClientRect(),i=m.height,y=m.width,R=m.top,N=m.right,te=m.bottom,L=m.left,Y=c==="start"||c==="nearest"?R:c==="end"?te:R+i/2,re=d==="center"?L+y/2:d==="end"?N:L,ye=[],Ue=0;Ue=0&&L>=0&&te<=B&&N<=D&&R>=Pe&&te<=ae&&L>=ie&&N<=Qe)return ye;var he=getComputedStyle(be),ue=parseInt(he.borderLeftWidth,10),K=parseInt(he.borderTopWidth,10),_=parseInt(he.borderRightWidth,10),fe=parseInt(he.borderBottomWidth,10),je=0,_e=0,le="offsetWidth"in be?be.offsetWidth-be.clientWidth-ue-_:0,ke="offsetHeight"in be?be.offsetHeight-be.clientHeight-K-fe:0;if(V===be)je=c==="start"?Y:c==="end"?Y-B:c==="nearest"?M(E,E+B,B,K,fe,E+Y,E+Y+i,i):Y-B/2,_e=d==="start"?re:d==="center"?re-D/2:d==="end"?re-D:M(k,k+D,D,ue,_,k+re,k+re+y,y),je=Math.max(0,je+E),_e=Math.max(0,_e+k);else{je=c==="start"?Y-Pe-K:c==="end"?Y-ae+fe+ke:c==="nearest"?M(Pe,ae,Re,K,fe+ke,Y,Y+i,i):Y-(Pe+Re/2)+ke/2,_e=d==="start"?re-ie-ue:d==="center"?re-(ie+Ie/2)+le/2:d==="end"?re-Qe+_+le:M(ie,Qe,Ie,ue,_+le,re,re+y,y);var ct=be.scrollLeft,we=be.scrollTop;Y+=we-(je=Math.max(0,Math.min(we+je,be.scrollHeight-Re+ke))),re+=ct-(_e=Math.max(0,Math.min(ct+_e,be.scrollWidth-Ie+le)))}ye.push({el:be,top:je,left:_e})}return ye};function h(j){return j===Object(j)&&Object.keys(j).length!==0}function de(j,I){I===void 0&&(I="auto");var W="scrollBehavior"in document.body.style;j.forEach(function(P){var c=P.el,d=P.top,v=P.left;c.scroll&&W?c.scroll({top:d,left:v,behavior:I}):(c.scrollTop=d,c.scrollLeft=v)})}function oe(j){return j===!1?{block:"end",inline:"nearest"}:h(j)?j:{block:"start",inline:"nearest"}}function w(j,I){var W=!j.ownerDocument.documentElement.contains(j);if(h(I)&&typeof I.behavior=="function")return I.behavior(W?[]:o(j,I));if(W)return;var P=oe(I);return de(o(j,P),P.behavior)}var Ce=O.a=w},bT9E:function(F,O,e){"use strict";e.d(O,"a",function(){return S});var x=e("VTBJ");function S(ge,M){var o=Object(x.a)({},ge);return Array.isArray(M)&&M.forEach(function(h){delete o[h]}),o}},biw7:function(F,O,e){"use strict";var x=e("q1tI"),S=e.n(x),ge=x.createContext(null);O.a=ge},cRFk:function(F,O,e){F.exports=e.p+"static/RepositoryNoneData.828085a8.png"},cTOM:function(F,O,e){F.exports={flex_box_center:"flex_box_center___-NfPq",flex_space_between:"flex_space_between___3y3z4",flex_box_vertical_center:"flex_box_vertical_center___3v_Zy",flex_box_center_end:"flex_box_center_end___1ObkQ",flex_box_column:"flex_box_column___QR1Y4",warp:"warp___3A-ud",title:"title___2tkyk",Inputstyle:"Inputstyle___jFzzW",buttonstyle:"buttonstyle___BT2gc",Content:"Content___2YDs2",imgstyle:"imgstyle___2Kklj",cardstyle:"cardstyle___2BBrt",paddingcard:"paddingcard___2m5U8",titlefont:"titlefont___RHrDo",flexEnd:"flexEnd___aGZ6f",modalinput:"modalinput___1Hxhb",items:"items___3xlQF",adminsstyle:"adminsstyle___34KOT",upadmin:"upadmin___2LihX",yes:"yes___1mOZl",no:"no___3XaRt"}},csWT:function(F,O,e){F.exports=e.p+"static/choose.4ad1045f.svg"},djh8:function(F,O,e){F.exports=e.p+"static/qrCode.42927872.png"},fyJ8:function(F,O,e){"use strict";var x=e("rePB"),S=e("VTBJ"),ge=e("Ff2n"),M=e("U8pU"),o=e("q1tI"),h=e.n(o),de=e("TSYQ"),oe=e.n(de),w=e("c+Xe"),Ce=e("sR1s");function j(d){return d&&Object(M.a)(d)==="object"&&!Array.isArray(d)&&!o.isValidElement(d)}function I(d){return typeof d=="string"?!0:Object(w.c)(d)}function W(d,v){var U,z=d.prefixCls,V=d.className,Q=d.record,ee=d.index,D=d.dataIndex,B=d.render,k=d.children,E=d.component,m=E===void 0?"td":E,i=d.colSpan,y=d.rowSpan,R=d.fixLeft,N=d.fixRight,te=d.firstFixLeft,L=d.lastFixLeft,Y=d.firstFixRight,re=d.lastFixRight,ye=d.appendNode,Ue=d.additionalProps,be=Ue===void 0?{}:Ue,q=d.ellipsis,Re=d.align,Ie=d.rowType,Pe=d.isSticky,Qe="".concat(z,"-cell"),ae,ie;if(k)ie=k;else{var he=Object(Ce.b)(Q,D);if(ie=he,B){var ue=B(he,Q,ee);j(ue)?(ie=ue.children,ae=ue.props):ie=ue}}Object(M.a)(ie)==="object"&&!Array.isArray(ie)&&!o.isValidElement(ie)&&(ie=null),q&&(L||Y)&&(ie=o.createElement("span",{className:"".concat(Qe,"-content")},ie));var K=ae||{},_=K.colSpan,fe=K.rowSpan,je=K.style,_e=K.className,le=Object(ge.a)(K,["colSpan","rowSpan","style","className"]),ke=_!==void 0?_:i,ct=fe!==void 0?fe:y;if(ke===0||ct===0)return null;var we={},ze=typeof R=="number",nt=typeof N=="number";ze&&(we.position="sticky",we.left=R),nt&&(we.position="sticky",we.right=N);var qe={};Re&&(qe.textAlign=Re);var Te,Ze=q===!0?{showTitle:!0}:q;Ze&&(Ze.showTitle||Ie==="header")&&(typeof ie=="string"||typeof ie=="number"?Te=ie.toString():o.isValidElement(ie)&&typeof ie.props.children=="string"&&(Te=ie.props.children));var Mt=Object(S.a)(Object(S.a)(Object(S.a)({title:Te},le),be),{},{colSpan:ke&&ke!==1?ke:null,rowSpan:ct&&ct!==1?ct:null,className:oe()(Qe,V,(U={},Object(x.a)(U,"".concat(Qe,"-fix-left"),ze),Object(x.a)(U,"".concat(Qe,"-fix-left-first"),te),Object(x.a)(U,"".concat(Qe,"-fix-left-last"),L),Object(x.a)(U,"".concat(Qe,"-fix-right"),nt),Object(x.a)(U,"".concat(Qe,"-fix-right-first"),Y),Object(x.a)(U,"".concat(Qe,"-fix-right-last"),re),Object(x.a)(U,"".concat(Qe,"-ellipsis"),q),Object(x.a)(U,"".concat(Qe,"-with-append"),ye),Object(x.a)(U,"".concat(Qe,"-fix-sticky"),(ze||nt)&&Pe),U),be.className,_e),style:Object(S.a)(Object(S.a)(Object(S.a)(Object(S.a)({},be.style),qe),we),je),ref:I(m)?v:null});return o.createElement(m,Object.assign({},Mt),ye,ie)}var P=o.forwardRef(W);P.displayName="Cell";var c=o.memo(P,function(d,v){return v.shouldCellUpdate?!v.shouldCellUpdate(v.record,d.record):!1});O.a=c},hW8S:function(F,O,e){"use strict";e.d(O,"a",function(){return M}),e.d(O,"c",function(){return o}),e.d(O,"b",function(){return h});var x=e("VTBJ"),S=e("Ff2n"),ge=e("Kwbf"),M="RC_TABLE_INTERNAL_COL_DEFINE";function o(de){var oe=de.expandable,w=Object(S.a)(de,["expandable"]);return"expandable"in de?Object(x.a)(Object(x.a)({},w),oe):w}function h(de){return Object.keys(de).reduce(function(oe,w){return(w.substr(0,5)==="data-"||w.substr(0,5)==="aria-")&&(oe[w]=de[w]),oe},{})}},ji0R:function(F,O,e){F.exports=e.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(F,O,e){"use strict";e.d(O,"a",function(){return po});var x=e("rePB"),S=e("ODXe"),ge=e("Ff2n"),M=e("VTBJ"),o=e("q1tI"),h=e("TSYQ"),de=e.n(h),oe=e("Zm9Q"),w=e("6cGi"),Ce=e("KQm4"),j=e("xEkU"),I=e.n(j),W=e("t23M");function P(r){var f=Object(o.useRef)(),g=Object(o.useRef)(!1);function l(){for(var t=arguments.length,a=new Array(t),n=0;nA&&(J=A-H),Object(o.useMemo)(function(){if(!a.length)return[0,0];for(var ce=a.length,Fe=ce,st=0;stp+J){Fe=st-1;break}}for(var ut=0,lt=ce-1;lt>=0;lt-=1){var ot=r.get(a[lt].key)||Q;if(ot[b]1&&arguments[1]!==void 0?arguments[1]:!1,l=f&&typeof f.getBoundingClientRect=="function"&&f.getBoundingClientRect().width;if(l){if(g){var t=getComputedStyle(f),a=t.marginLeft,n=t.marginRight;l+=+a.replace("px","")+ +n.replace("px","")}l=+l.toFixed(6)}return l||0},Te=function(f,g,l){f&&Object(Y.a)(f.style)==="object"&&(f.style[g]=l)},Ze=function(){return _e.any},Mt=e("bdgK"),jt=e("i8i4"),Ot=e.n(jt),St=e("wgJM"),Rt=e("l4aY"),Gt=e("m+aA"),C=e("c+Xe"),G=e("zT1h"),X=e("QC+M");function me(r,f,g){return g?r[0]===f[0]:r[0]===f[0]&&r[1]===f[1]}function Ae(r,f,g){var l=r[f]||{};return Object(M.a)(Object(M.a)({},l),g)}function pe(r,f,g,l){for(var t=g.points,a=Object.keys(r),n=0;n1&&arguments[1]!==void 0?arguments[1]:2;f();var a=Object(St.a)(function(){t<=1?l({isCanceled:function(){return a!==r.current}}):g(l,t-1)});r.current=a}return o.useEffect(function(){return function(){f()}},[]),[g,f]},cn=[dt,Xe,mt,Ge],Le=!1,Z=!0;function De(r){return r===mt||r===Ge}var Pt=function(r,f){var g=o.useState(xt),l=Object(S.a)(g,2),t=l[0],a=l[1],n=It(),s=Object(S.a)(n,2),u=s[0],b=s[1];function p(){a(dt)}return Wt(function(){if(t!==xt&&t!==Ge){var A=cn.indexOf(t),T=cn[A+1],H=f(t);H===Le?a(T):u(function(J){function ce(){if(J.isCanceled())return;a(T)}H===!0?ce():Promise.resolve(H).then(ce)})}},[r,t]),o.useEffect(function(){return function(){b()}},[]),[p,t]},Je=function(r){var f=Object(o.useRef)(),g=Object(o.useRef)(r);g.current=r;var l=o.useCallback(function(n){g.current(n)},[]);function t(n){n&&(n.removeEventListener(kt,l),n.removeEventListener(We,l))}function a(n){f.current&&f.current!==n&&t(f.current),n&&n!==f.current&&(n.addEventListener(kt,l),n.addEventListener(We,l),f.current=n)}return o.useEffect(function(){return function(){t(f.current)}},[]),[a,t]};function _t(r,f,g,l){var t=l.motionEnter,a=t===void 0?!0:t,n=l.motionAppear,s=n===void 0?!0:n,u=l.motionLeave,b=u===void 0?!0:u,p=l.motionDeadline,A=l.motionLeaveImmediately,T=l.onAppearPrepare,H=l.onEnterPrepare,J=l.onLeavePrepare,ce=l.onAppearStart,Fe=l.onEnterStart,st=l.onLeaveStart,tt=l.onAppearActive,ut=l.onEnterActive,lt=l.onLeaveActive,ot=l.onAppearEnd,rt=l.onEnterEnd,At=l.onLeaveEnd,ft=l.onVisibleChanged,Jt=Ut(),Tt=Object(S.a)(Jt,2),Ke=Tt[0],Be=Tt[1],ht=Ut(Ye),Et=Object(S.a)(ht,2),Se=Et[0],Ct=Et[1],Bt=Ut(null),yt=Object(S.a)(Bt,2),Lt=yt[0],Qt=yt[1],en=Object(o.useRef)(!1),fn=Object(o.useRef)(null),Ht=Object(o.useRef)(!1),pn=Object(o.useRef)(null);function Sn(){var Kt=g();return Kt||pn.current}var vn=Object(o.useRef)(!1);function En(Kt){var Dt=Sn();if(Kt&&!Kt.deadline&&Kt.target!==Dt)return;var nn;Se===at&&vn.current?nn=ot==null?void 0:ot(Dt,Kt):Se===He&&vn.current?nn=rt==null?void 0:rt(Dt,Kt):Se===et&&vn.current&&(nn=At==null?void 0:At(Dt,Kt)),nn!==!1&&!Ht.current&&(Ct(Ye),Qt(null))}var Yt=Je(En),un=Object(S.a)(Yt,1),tn=un[0],qt=o.useMemo(function(){var Kt,Dt,nn;switch(Se){case"appear":return Kt={},Object(x.a)(Kt,dt,T),Object(x.a)(Kt,Xe,ce),Object(x.a)(Kt,mt,tt),Kt;case"enter":return Dt={},Object(x.a)(Dt,dt,H),Object(x.a)(Dt,Xe,Fe),Object(x.a)(Dt,mt,ut),Dt;case"leave":return nn={},Object(x.a)(nn,dt,J),Object(x.a)(nn,Xe,st),Object(x.a)(nn,mt,lt),nn;default:return{}}},[Se]),Un=Pt(Se,function(Kt){if(Kt===dt){var Dt=qt[dt];return Dt?Dt(Sn()):Le}if(wt in qt){var nn;Qt(((nn=qt[wt])===null||nn===void 0?void 0:nn.call(qt,Sn(),null))||null)}return wt===mt&&(tn(Sn()),p>0&&(clearTimeout(fn.current),fn.current=setTimeout(function(){En({deadline:!0})},p))),Z}),wn=Object(S.a)(Un,2),zn=wn[0],wt=wn[1],Dn=De(wt);vn.current=Dn,Wt(function(){Be(f);var Kt=en.current;if(en.current=!0,!r)return;var Dt;!Kt&&f&&s&&(Dt=at),Kt&&f&&a&&(Dt=He),(Kt&&!f&&b||!Kt&&A&&!f&&b)&&(Dt=et),Dt&&(Ct(Dt),zn())},[f]),Object(o.useEffect)(function(){(Se===at&&!s||Se===He&&!a||Se===et&&!b)&&Ct(Ye)},[s,a,b]),Object(o.useEffect)(function(){return function(){clearTimeout(fn.current),Ht.current=!0}},[]),Object(o.useEffect)(function(){Ke!==void 0&&Se===Ye&&(ft==null||ft(Ke))},[Ke,Se]);var Fn=Lt;return qt[dt]&&wt===Xe&&(Fn=Object(M.a)({transition:"none"},Fn)),[Se,wt,Fn,Ke!=null?Ke:f]}var sn=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){return Object(B.a)(this,g),f.apply(this,arguments)}return Object(k.a)(g,[{key:"render",value:function(){return this.props.children}}]),g}(o.Component),an=sn;function Vt(r){var f=r;Object(Y.a)(r)==="object"&&(f=r.transitionSupport);function g(t){return!!(t.motionName&&f)}var l=o.forwardRef(function(t,a){var n=t.visible,s=n===void 0?!0:n,u=t.removeOnLeave,b=u===void 0?!0:u,p=t.forceRender,A=t.children,T=t.motionName,H=t.leavedClassName,J=t.eventProps,ce=g(t),Fe=Object(o.useRef)(),st=Object(o.useRef)();function tt(){try{return Object(Gt.a)(Fe.current||st.current)}catch(Ct){return null}}var ut=_t(ce,s,tt,t),lt=Object(S.a)(ut,4),ot=lt[0],rt=lt[1],At=lt[2],ft=lt[3],Jt=o.useRef(ft);ft&&(Jt.current=!0);var Tt=Object(o.useRef)(a);Tt.current=a;var Ke=o.useCallback(function(Ct){Fe.current=Ct,Object(C.b)(Tt.current,Ct)},[]),Be,ht=Object(M.a)(Object(M.a)({},J),{},{visible:s});if(!A)Be=null;else if(ot===Ye||!g(t))ft?Be=A(Object(M.a)({},ht),Ke):!b&&Jt.current?Be=A(Object(M.a)(Object(M.a)({},ht),{},{className:H}),Ke):p?Be=A(Object(M.a)(Object(M.a)({},ht),{},{style:{display:"none"}}),Ke):Be=null;else{var Et,Se;rt===dt?Se="prepare":De(rt)?Se="active":rt===Xe&&(Se="start"),Be=A(Object(M.a)(Object(M.a)({},ht),{},{className:de()(Me(T,ot),(Et={},Object(x.a)(Et,Me(T,"".concat(ot,"-").concat(Se)),Se),Object(x.a)(Et,T,typeof T=="string"),Et)),style:At}),Ke)}return o.createElement(an,{ref:st},Be)});return l.displayName="CSSMotion",l}var Rn=Vt(it),Bn="add",jn="keep",On="remove",Tn="removed";function Jn(r){var f;return r&&Object(Y.a)(r)==="object"&&"key"in r?f=r:f={key:r},Object(M.a)(Object(M.a)({},f),{},{key:String(f.key)})}function Nn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(Jn)}function Xt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=[],l=0,t=f.length,a=Nn(r),n=Nn(f);a.forEach(function(b){for(var p=!1,A=l;A1});return u.forEach(function(b){g=g.filter(function(p){var A=p.key,T=p.status;return A!==b||T!==On}),g.forEach(function(p){p.key===b&&(p.status=jn)})}),g}var ln=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hn(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn,g=function(l){Object(m.a)(a,l);var t=Object(i.a)(a);function a(){var n;return Object(B.a)(this,a),n=t.apply(this,arguments),n.state={keyEntities:[]},n.removeKey=function(s){n.setState(function(u){var b=u.keyEntities;return{keyEntities:b.map(function(p){return p.key!==s?p:Object(M.a)(Object(M.a)({},p),{},{status:Tn})})}})},n}return Object(k.a)(a,[{key:"render",value:function(){var s=this,u=this.state.keyEntities,b=this.props,p=b.component,A=b.children,T=b.onVisibleChanged,H=Object(ge.a)(b,["component","children","onVisibleChanged"]),J=p||o.Fragment,ce={};return ln.forEach(function(Fe){ce[Fe]=H[Fe],delete H[Fe]}),delete H.keys,o.createElement(J,H,u.map(function(Fe){var st=Fe.status,tt=Object(ge.a)(Fe,["status"]),ut=st===Bn||st===jn;return o.createElement(f,Object(D.a)({},ce,{key:tt.key,visible:ut,eventProps:tt,onVisibleChanged:function(ot){T==null||T(ot,{key:tt.key}),ot||s.removeKey(tt.key)}}),A)}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var b=s.keys,p=u.keyEntities,A=Nn(b),T=Xt(p,A);return{keyEntities:T.filter(function(H){var J=p.find(function(ce){var Fe=ce.key;return H.key===Fe});return!(J&&J.status===Tn&&H.status===On)})}}}]),a}(o.Component);return g.defaultProps={component:"div"},g}var on=hn(it),dn=Rn;function bn(r){var f=r.prefixCls,g=r.motion,l=r.animation,t=r.transitionName;return g||(l?{motionName:"".concat(f,"-").concat(l)}:t?{motionName:t}:null)}function Vn(r){var f=r.prefixCls,g=r.visible,l=r.zIndex,t=r.mask,a=r.maskMotion,n=r.maskAnimation,s=r.maskTransitionName;if(!t)return null;var u={};return(a||s||n)&&(u=Object(M.a)({motionAppear:!0},bn({motion:a,prefixCls:f,transitionName:s,animation:n}))),o.createElement(dn,Object(D.a)({},u,{visible:g,removeOnLeave:!0}),function(b){var p=b.className;return o.createElement("div",{style:{zIndex:l},className:de()("".concat(f,"-mask"),p)})})}var Kn=e("9mu1"),Hn=e("o0o1"),Ra=e.n(Hn),xa=e("HaE+"),Gn=["measure","align",null,"motion"],zt=function(r,f){var g=Object(o.useState)(null),l=Object(S.a)(g,2),t=l[0],a=l[1],n=Object(o.useRef)(),s=Object(o.useRef)(!1);function u(A){s.current||a(A)}function b(){St.a.cancel(n.current)}function p(A){b(),n.current=Object(St.a)(function(){u(function(T){switch(t){case"align":return"motion";case"motion":return"stable";default:}return T}),A==null||A()})}return Object(o.useEffect)(function(){u("measure")},[r]),Object(o.useEffect)(function(){switch(t){case"measure":f();break;default:}t&&(n.current=Object(St.a)(Object(xa.a)(Ra.a.mark(function A(){var T,H;return Ra.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:T=Gn.indexOf(t),H=Gn[T+1],H&&T!==-1&&u(H);case 3:case"end":return ce.stop()}},A)}))))},[t]),Object(o.useEffect)(function(){return function(){s.current=!0,b()}},[]),[t,p]},Zn=function(r){var f=o.useState({width:0,height:0}),g=Object(S.a)(f,2),l=g[0],t=g[1];function a(s){t({width:s.offsetWidth,height:s.offsetHeight})}var n=o.useMemo(function(){var s={};if(r){var u=l.width,b=l.height;r.indexOf("height")!==-1&&b?s.height=b:r.indexOf("minHeight")!==-1&&b&&(s.minHeight=b),r.indexOf("width")!==-1&&u?s.width=u:r.indexOf("minWidth")!==-1&&u&&(s.minWidth=u)}return s},[r,l]);return[n,a]},Yn=o.forwardRef(function(r,f){var g=r.visible,l=r.prefixCls,t=r.className,a=r.style,n=r.children,s=r.zIndex,u=r.stretch,b=r.destroyPopupOnHide,p=r.forceRender,A=r.align,T=r.point,H=r.getRootDomNode,J=r.getClassNameFromAlign,ce=r.onAlign,Fe=r.onMouseEnter,st=r.onMouseLeave,tt=r.onMouseDown,ut=r.onTouchStart,lt=Object(o.useRef)(),ot=Object(o.useRef)(),rt=Object(o.useState)(),At=Object(S.a)(rt,2),ft=At[0],Jt=At[1],Tt=Zn(u),Ke=Object(S.a)(Tt,2),Be=Ke[0],ht=Ke[1];function Et(){u&&ht(H())}var Se=zt(g,Et),Ct=Object(S.a)(Se,2),Bt=Ct[0],yt=Ct[1],Lt=Object(o.useRef)();function Qt(){return T||H}function en(){var Yt;(Yt=lt.current)===null||Yt===void 0||Yt.forceAlign()}function fn(Yt,un){var tn=J(un);ft!==tn&&Jt(tn),Bt==="align"&&(ft!==tn?Promise.resolve().then(function(){en()}):yt(function(){var qt;(qt=Lt.current)===null||qt===void 0||qt.call(Lt)}),ce==null||ce(Yt,un))}var Ht=Object(M.a)({},bn(r));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Yt){var un=Ht[Yt];Ht[Yt]=function(tn,qt){return yt(),un==null?void 0:un(tn,qt)}});function pn(){return new Promise(function(Yt){Lt.current=Yt})}o.useEffect(function(){!Ht.motionName&&Bt==="motion"&&yt()},[Ht.motionName,Bt]),o.useImperativeHandle(f,function(){return{forceAlign:en,getElement:function(){return ot.current}}});var Sn=Object(M.a)(Object(M.a)({},Be),{},{zIndex:s,opacity:Bt==="motion"||Bt==="stable"||!g?void 0:0,pointerEvents:Bt==="stable"?void 0:"none"},a),vn=!0;(A==null?void 0:A.points)&&(Bt==="align"||Bt==="stable")&&(vn=!1);var En=n;return o.Children.count(n)>1&&(En=o.createElement("div",{className:"".concat(l,"-content")},n)),o.createElement(dn,Object(D.a)({visible:g,ref:ot,leavedClassName:"".concat(l,"-hidden")},Ht,{onAppearPrepare:pn,onEnterPrepare:pn,removeOnLeave:b,forceRender:p}),function(Yt,un){var tn=Yt.className,qt=Yt.style,Un=de()(l,t,ft,tn);return o.createElement(Kn.a,{target:Qt(),key:"popup",ref:lt,monitorWindowResize:!0,disabled:vn,align:A,onAlign:fn},o.createElement("div",{ref:un,className:Un,onMouseEnter:Fe,onMouseLeave:st,onMouseDownCapture:tt,onTouchStartCapture:ut,style:Object(M.a)(Object(M.a)({},qt),Sn)},En))})});Yn.displayName="PopupInner";var Da=Yn,An=o.forwardRef(function(r,f){var g=r.prefixCls,l=r.visible,t=r.zIndex,a=r.children,n=r.mobile;n=n===void 0?{}:n;var s=n.popupClassName,u=n.popupStyle,b=n.popupMotion,p=b===void 0?{}:b,A=n.popupRender,T=o.useRef();o.useImperativeHandle(f,function(){return{forceAlign:function(){},getElement:function(){return T.current}}});var H=Object(M.a)({zIndex:t},u),J=a;return o.Children.count(a)>1&&(J=o.createElement("div",{className:"".concat(g,"-content")},a)),A&&(J=A(J)),o.createElement(dn,Object(D.a)({visible:l,ref:T,removeOnLeave:!0},p),function(ce,Fe){var st=ce.className,tt=ce.style,ut=de()(g,s,st);return o.createElement("div",{ref:Fe,className:ut,style:Object(M.a)(Object(M.a)({},tt),H)},J)})});An.displayName="MobilePopupInner";var Fa=An,ja=["visible","mobile"],oa=o.forwardRef(function(r,f){var g=r.visible,l=r.mobile,t=Object(ge.a)(r,ja),a=Object(o.useState)(g),n=Object(S.a)(a,2),s=n[0],u=n[1],b=Object(o.useState)(!1),p=Object(S.a)(b,2),A=p[0],T=p[1],H=Object(M.a)(Object(M.a)({},t),{},{visible:s});Object(o.useEffect)(function(){u(g),g&&l&&T(se())},[g,l]);var J=A?o.createElement(Fa,Object(D.a)({},H,{mobile:l,ref:f})):o.createElement(Da,Object(D.a)({},H,{ref:f}));return o.createElement("div",null,o.createElement(Vn,H),J)});oa.displayName="Popup";var Ja=oa,Va=o.createContext(null),ra=Va;function Xn(){}function Ha(){return""}function Ga(r){return r?r.ownerDocument:window.document}var Ta=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Za(r){var f=function(g){Object(m.a)(t,g);var l=Object(i.a)(t);function t(a){var n;Object(B.a)(this,t),n=l.call(this,a),n.popupRef=o.createRef(),n.triggerRef=o.createRef(),n.attachId=void 0,n.clickOutsideHandler=void 0,n.touchOutsideHandler=void 0,n.contextMenuOutsideHandler1=void 0,n.contextMenuOutsideHandler2=void 0,n.mouseDownTimeout=void 0,n.focusTime=void 0,n.preClickTime=void 0,n.preTouchTime=void 0,n.delayTimer=void 0,n.hasPopupMouseDown=void 0,n.onMouseEnter=function(u){var b=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",u),n.delaySetPopupVisible(!0,b,b?null:u)},n.onMouseMove=function(u){n.fireEvents("onMouseMove",u),n.setPoint(u)},n.onMouseLeave=function(u){n.fireEvents("onMouseLeave",u),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(u){var b;if(u.relatedTarget&&!u.relatedTarget.setTimeout&&Object(Rt.a)((b=n.popupRef.current)===null||b===void 0?void 0:b.getElement(),u.relatedTarget))return;n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(u){n.fireEvents("onFocus",u),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(u){n.fireEvents("onMouseDown",u),n.preClickTime=Date.now()},n.onTouchStart=function(u){n.fireEvents("onTouchStart",u),n.preTouchTime=Date.now()},n.onBlur=function(u){n.fireEvents("onBlur",u),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(u){u.preventDefault(),n.fireEvents("onContextMenu",u),n.setPopupVisible(!0,u)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(u){if(n.fireEvents("onClick",u),n.focusTime){var b;if(n.preClickTime&&n.preTouchTime?b=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?b=n.preClickTime:n.preTouchTime&&(b=n.preTouchTime),Math.abs(b-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var p=!n.state.popupVisible;(n.isClickToHide()&&!p||p&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,u)},n.onPopupMouseDown=function(){if(n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout(function(){n.hasPopupMouseDown=!1},0),n.context){var u;(u=n.context).onPopupMouseDown.apply(u,arguments)}},n.onDocumentClick=function(u){if(n.props.mask&&!n.props.maskClosable)return;var b=u.target,p=n.getRootDomNode(),A=n.getPopupDomNode();(!Object(Rt.a)(p,b)||n.isContextMenuOnly())&&!Object(Rt.a)(A,b)&&!n.hasPopupMouseDown&&n.close()},n.getRootDomNode=function(){var u=n.props.getTriggerDOMNode;if(u)return u(n.triggerRef.current);try{var b=Object(Gt.a)(n.triggerRef.current);if(b)return b}catch(p){}return Ot.a.findDOMNode(Object(E.a)(n))},n.getPopupClassNameFromAlign=function(u){var b=[],p=n.props,A=p.popupPlacement,T=p.builtinPlacements,H=p.prefixCls,J=p.alignPoint,ce=p.getPopupClassNameFromAlign;return A&&T&&b.push(pe(T,H,u,J)),ce&&b.push(ce(u)),b.join(" ")},n.getComponent=function(){var u=n.props,b=u.prefixCls,p=u.destroyPopupOnHide,A=u.popupClassName,T=u.onPopupAlign,H=u.popupMotion,J=u.popupAnimation,ce=u.popupTransitionName,Fe=u.popupStyle,st=u.mask,tt=u.maskAnimation,ut=u.maskTransitionName,lt=u.maskMotion,ot=u.zIndex,rt=u.popup,At=u.stretch,ft=u.alignPoint,Jt=u.mobile,Tt=u.forceRender,Ke=n.state,Be=Ke.popupVisible,ht=Ke.point,Et=n.getPopupAlign(),Se={};return n.isMouseEnterToShow()&&(Se.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(Se.onMouseLeave=n.onPopupMouseLeave),Se.onMouseDown=n.onPopupMouseDown,Se.onTouchStart=n.onPopupMouseDown,o.createElement(Ja,Object(D.a)({prefixCls:b,destroyPopupOnHide:p,visible:Be,point:ft&&ht,className:A,align:Et,onAlign:T,animation:J,getClassNameFromAlign:n.getPopupClassNameFromAlign},Se,{stretch:At,getRootDomNode:n.getRootDomNode,style:Fe,mask:st,zIndex:ot,transitionName:ce,maskAnimation:tt,maskTransitionName:ut,maskMotion:lt,ref:n.popupRef,motion:H,mobile:Jt,forceRender:Tt}),typeof rt=="function"?rt():rt)},n.attachParent=function(u){St.a.cancel(n.attachId);var b=n.props,p=b.getPopupContainer,A=b.getDocument,T=n.getRootDomNode(),H;p?(T||p.length===0)&&(H=p(T)):H=A(n.getRootDomNode()).body,H?H.appendChild(u):n.attachId=Object(St.a)(function(){n.attachParent(u)})},n.getContainer=function(){var u=n.props.getDocument,b=u(n.getRootDomNode()).createElement("div");return b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",n.attachParent(b),b},n.setPoint=function(u){var b=n.props.alignPoint;if(!b||!u)return;n.setState({point:{pageX:u.pageX,pageY:u.pageY}})},n.handlePortalUpdate=function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.triggerContextValue={onPopupMouseDown:n.onPopupMouseDown};var s;return"popupVisible"in a?s=!!a.popupVisible:s=!!a.defaultPopupVisible,n.state={prevPopupVisible:s,popupVisible:s},Ta.forEach(function(u){n["fire".concat(u)]=function(b){n.fireEvents(u,b)}}),n}return Object(k.a)(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var n=this.props,s=this.state;if(s.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=n.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(G.a)(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||n.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(G.a)(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||n.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(G.a)(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(G.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),St.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var n;return((n=this.popupRef.current)===null||n===void 0?void 0:n.getElement())||null}},{key:"getPopupAlign",value:function(){var n=this.props,s=n.popupPlacement,u=n.popupAlign,b=n.builtinPlacements;return s&&b?Ae(b,s,u):u}},{key:"setPopupVisible",value:function(n,s){var u=this.props.alignPoint,b=this.state.popupVisible;this.clearDelayTimer(),b!==n&&("popupVisible"in this.props||this.setState({popupVisible:n,prevPopupVisible:b}),this.props.onPopupVisibleChange(n)),u&&s&&n&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(n,s,u){var b=this,p=s*1e3;if(this.clearDelayTimer(),p){var A=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){b.setPopupVisible(n,A),b.clearDelayTimer()},p)}else this.setPopupVisible(n,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(n){var s=this.props.children.props,u=this.props;return s[n]&&u[n]?this["fire".concat(n)]:s[n]||u[n]}},{key:"isClickToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var n=this.props.action;return n==="contextMenu"||n.length===1&&n[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var n=this.props,s=n.action,u=n.hideAction;return s.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var n=this.props,s=n.action,u=n.hideAction;return s.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var n=this.props,s=n.action,u=n.showAction;return s.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var n=this.props,s=n.action,u=n.hideAction;return s.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var n;(n=this.popupRef.current)===null||n===void 0||n.forceAlign()}}},{key:"fireEvents",value:function(n,s){var u=this.props.children.props[n];u&&u(s);var b=this.props[n];b&&b(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var n=this.state.popupVisible,s=this.props,u=s.children,b=s.forceRender,p=s.alignPoint,A=s.className,T=s.autoDestroy,H=o.Children.only(u),J={key:"trigger"};this.isContextMenuToShow()?J.onContextMenu=this.onContextMenu:J.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(J.onClick=this.onClick,J.onMouseDown=this.onMouseDown,J.onTouchStart=this.onTouchStart):(J.onClick=this.createTwoChains("onClick"),J.onMouseDown=this.createTwoChains("onMouseDown"),J.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(J.onMouseEnter=this.onMouseEnter,p&&(J.onMouseMove=this.onMouseMove)):J.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?J.onMouseLeave=this.onMouseLeave:J.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(J.onFocus=this.onFocus,J.onBlur=this.onBlur):(J.onFocus=this.createTwoChains("onFocus"),J.onBlur=this.createTwoChains("onBlur"));var ce=de()(H&&H.props&&H.props.className,A);ce&&(J.className=ce);var Fe=Object(M.a)({},J);Object(C.c)(H)&&(Fe.ref=Object(C.a)(this.triggerRef,H.ref));var st=o.cloneElement(H,Fe),tt;return(n||this.popupRef.current||b)&&(tt=o.createElement(r,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!n&&T&&(tt=null),o.createElement(ra.Provider,{value:this.triggerContextValue},st,tt)}}],[{key:"getDerivedStateFromProps",value:function(n,s){var u=n.popupVisible,b={};return u!==void 0&&s.popupVisible!==u&&(b.popupVisible=u,b.prevPopupVisible=s.popupVisible),b}}]),t}(o.Component);return f.contextType=ra,f.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ha,getDocument:Ga,onPopupVisibleChange:Xn,afterPopupVisibleChange:Xn,onPopupAlign:Xn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},f}var Ya=Za(X.a),Mn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:Mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Mn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Mn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Mn,offset:[4,0]}},Na={topLeft:{points:["bl","tl"],overflow:Mn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Mn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Mn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Mn,offset:[4,0]}},sa=ia,mn=0,Cn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},yn=function(f,g,l){var t=ct(g),a=f.getState();f.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},a.defaultActiveFirst),{},Object(x.a)({},t,l))})},la=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(l){var t;Object(B.a)(this,g),t=f.call(this,l),t.onDestroy=function(p){t.props.onDestroy(p)},t.onKeyDown=function(p){var A=p.keyCode,T=t.menuInstance,H=t.props.store,J=t.getVisible();if(A===d.a.ENTER)return t.onTitleClick(p),yn(H,t.props.eventKey,!0),!0;if(A===d.a.RIGHT)return J?T.onKeyDown(p):(t.triggerOpenChange(!0),yn(H,t.props.eventKey,!0)),!0;if(A===d.a.LEFT){var ce;if(J)ce=T.onKeyDown(p);else return;return ce||(t.triggerOpenChange(!1),ce=!0),ce}return J&&(A===d.a.UP||A===d.a.DOWN)?T.onKeyDown(p):void 0},t.onOpenChange=function(p){t.props.onOpenChange(p)},t.onPopupVisibleChange=function(p){t.triggerOpenChange(p,p?"mouseenter":"mouseleave")},t.onMouseEnter=function(p){var A=t.props,T=A.eventKey,H=A.onMouseEnter,J=A.store;yn(J,t.props.eventKey,!1),H({key:T,domEvent:p})},t.onMouseLeave=function(p){var A=t.props,T=A.parentMenu,H=A.eventKey,J=A.onMouseLeave;T.subMenuInstance=Object(E.a)(t),J({key:H,domEvent:p})},t.onTitleMouseEnter=function(p){var A=t.props,T=A.eventKey,H=A.onItemHover,J=A.onTitleMouseEnter;H({key:T,hover:!0}),J({key:T,domEvent:p})},t.onTitleMouseLeave=function(p){var A=t.props,T=A.parentMenu,H=A.eventKey,J=A.onItemHover,ce=A.onTitleMouseLeave;T.subMenuInstance=Object(E.a)(t),J({key:H,hover:!1}),ce({key:H,domEvent:p})},t.onTitleClick=function(p){var A=Object(E.a)(t),T=A.props;if(T.onTitleClick({key:T.eventKey,domEvent:p}),T.triggerSubMenuAction==="hover")return;t.triggerOpenChange(!t.getVisible(),"click"),yn(T.store,t.props.eventKey,!1)},t.onSubMenuClick=function(p){typeof t.props.onClick=="function"&&t.props.onClick(t.addKeyPath(p))},t.onSelect=function(p){t.props.onSelect(p)},t.onDeselect=function(p){t.props.onDeselect(p)},t.getPrefixCls=function(){return"".concat(t.props.rootPrefixCls,"-submenu")},t.getActiveClassName=function(){return"".concat(t.getPrefixCls(),"-active")},t.getDisabledClassName=function(){return"".concat(t.getPrefixCls(),"-disabled")},t.getSelectedClassName=function(){return"".concat(t.getPrefixCls(),"-selected")},t.getOpenClassName=function(){return"".concat(t.props.rootPrefixCls,"-submenu-open")},t.getVisible=function(){return t.state.isOpen},t.getMode=function(){return t.state.mode},t.saveMenuInstance=function(p){t.menuInstance=p},t.addKeyPath=function(p){return Object(M.a)(Object(M.a)({},p),{},{keyPath:(p.keyPath||[]).concat(t.props.eventKey)})},t.triggerOpenChange=function(p,A){var T=t.props.eventKey,H=function(){t.onOpenChange({key:T,item:Object(E.a)(t),trigger:A,open:p})};A==="mouseenter"?t.mouseenterTimeout=setTimeout(function(){H()},0):H()},t.isChildrenSelected=function(){var p={find:!1};return ze(t.props.children,t.props.selectedKeys,p),p.find},t.isInlineMode=function(){return t.getMode()==="inline"},t.adjustWidth=function(){if(!t.subMenuTitle||!t.menuInstance)return;var p=jt.findDOMNode(t.menuInstance);if(p.offsetWidth>=t.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(t.subMenuTitle.offsetWidth,"px")},t.saveSubMenuTitle=function(p){t.subMenuTitle=p},t.getBaseProps=function(){var p=Object(E.a)(t),A=p.props,T=t.getMode();return{mode:T==="horizontal"?"vertical":T,visible:t.getVisible(),level:A.level+1,inlineIndent:A.inlineIndent,focusable:!1,onClick:t.onSubMenuClick,onSelect:t.onSelect,onDeselect:t.onDeselect,onDestroy:t.onDestroy,selectedKeys:A.selectedKeys,eventKey:"".concat(A.eventKey,"-menu-"),openKeys:A.openKeys,motion:A.motion,onOpenChange:t.onOpenChange,subMenuOpenDelay:A.subMenuOpenDelay,parentMenu:Object(E.a)(t),subMenuCloseDelay:A.subMenuCloseDelay,forceSubMenuRender:A.forceSubMenuRender,triggerSubMenuAction:A.triggerSubMenuAction,builtinPlacements:A.builtinPlacements,defaultActiveFirst:A.store.getState().defaultActiveFirst[ct(A.eventKey)],multiple:A.multiple,prefixCls:A.rootPrefixCls,id:t.internalMenuId,manualRef:t.saveMenuInstance,itemIcon:A.itemIcon,expandIcon:A.expandIcon,direction:A.direction}},t.getMotion=function(p,A){var T=Object(E.a)(t),H=T.haveRendered,J=t.props,ce=J.motion,Fe=J.rootPrefixCls,st=Object(M.a)(Object(M.a)({},ce),{},{leavedClassName:"".concat(Fe,"-hidden"),removeOnLeave:!1,motionAppear:H||!A||p!=="inline"});return st};var a=l.store,n=l.eventKey,s=a.getState(),u=s.defaultActiveFirst;t.isRootMenu=!1;var b=!1;return u&&(b=u[n]),yn(a,n,b),t.state={mode:l.mode,isOpen:l.isOpen},t}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this,a=this.props,n=a.mode,s=a.parentMenu,u=a.manualRef,b=a.isOpen,p=function(){t.setState({mode:n,isOpen:b})},A=b!==this.state.isOpen,T=n!==this.state.mode;if((T||A)&&(St.a.cancel(this.updateStateRaf),T?this.updateStateRaf=Object(St.a)(p):p()),u&&u(this),n!=="horizontal"||!(s==null?void 0:s.isRootMenu)||!b)return;this.minWidthTimeout=setTimeout(function(){return t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var t=this.props,a=t.onDestroy,n=t.eventKey;a&&a(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),St.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(t,a){var n=this.getBaseProps();return o.createElement(ea,Object(D.a)({},n,{id:this.internalMenuId,className:t,style:a}),this.props.children)}},{key:"renderChildren",value:function(){var t=this,a=this.getBaseProps(),n=a.mode,s=a.visible,u=a.forceSubMenuRender,b=a.direction,p=this.getMotion(n,s);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||s||u,!this.haveOpened)return o.createElement("div",null);var A=de()("".concat(a.prefixCls,"-sub"),Object(x.a)({},"".concat(a.prefixCls,"-rtl"),b==="rtl"));return this.isInlineMode()?o.createElement(dn,Object(D.a)({visible:a.visible,forceRender:u},p),function(T){var H=T.className,J=T.style,ce=de()(A,H);return t.renderPopupMenu(ce,J)}):this.renderPopupMenu(A)}},{key:"render",value:function(){var t,a,n,s=Object(M.a)({},this.props),u=this.getVisible(),b=this.getPrefixCls(),p=this.isInlineMode(),A=this.getMode(),T=de()(b,"".concat(b,"-").concat(A),(t={},Object(x.a)(t,s.className,!!s.className),Object(x.a)(t,this.getOpenClassName(),u),Object(x.a)(t,this.getActiveClassName(),s.active||u&&!p),Object(x.a)(t,this.getDisabledClassName(),s.disabled),Object(x.a)(t,this.getSelectedClassName(),this.isChildrenSelected()),t));this.internalMenuId||(s.eventKey?this.internalMenuId="".concat(s.eventKey,"$Menu"):(mn+=1,this.internalMenuId="$__$".concat(mn,"$Menu")));var H={},J={},ce={};s.disabled||(H={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},J={onClick:this.onTitleClick},ce={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Fe={},st=s.direction,tt=st==="rtl";p&&(tt?Fe.paddingRight=s.inlineIndent*s.level:Fe.paddingLeft=s.inlineIndent*s.level);var ut={};this.getVisible()&&(ut={"aria-owns":this.internalMenuId});var lt=null;A!=="horizontal"&&(lt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(lt=o.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var ot=o.createElement("div",Object(D.a)({ref:this.saveSubMenuTitle,style:Fe,className:"".concat(b,"-title"),role:"button"},ce,J,{"aria-expanded":u},ut,{"aria-haspopup":"true",title:typeof s.title=="string"?s.title:void 0}),s.title,lt||o.createElement("i",{className:"".concat(b,"-arrow")})),rt=this.renderChildren(),At=((a=s.parentMenu)===null||a===void 0?void 0:a.isRootMenu)?s.parentMenu.props.getPopupContainer:function(Qt){return Qt.parentNode},ft=Cn[A],Jt=s.popupOffset?{offset:s.popupOffset}:{},Tt=de()((n={},Object(x.a)(n,s.popupClassName,s.popupClassName&&!p),Object(x.a)(n,"".concat(b,"-rtl"),tt),n)),Ke=s.disabled,Be=s.triggerSubMenuAction,ht=s.subMenuOpenDelay,Et=s.forceSubMenuRender,Se=s.subMenuCloseDelay,Ct=s.builtinPlacements;nt.forEach(function(Qt){return delete s[Qt]}),delete s.onClick;var Bt=tt?Object(M.a)(Object(M.a)({},Na),Ct):Object(M.a)(Object(M.a)({},ia),Ct);delete s.direction;var yt=this.getBaseProps(),Lt=p?null:this.getMotion(yt.mode,yt.visible);return o.createElement("li",Object(D.a)({},s,H,{className:T,role:"menuitem"}),o.createElement(Ya,{prefixCls:b,popupClassName:de()("".concat(b,"-popup"),Tt),getPopupContainer:At,builtinPlacements:Bt,popupPlacement:ft,popupVisible:p?!1:u,popupAlign:Jt,popup:p?null:rt,action:Ke||p?[]:[Be],mouseEnterDelay:ht,mouseLeaveDelay:Se,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Et,popupMotion:Lt},ot),p?rt:null)}}]),g}(o.Component);la.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Wn=Object(y.b)(function(r,f){var g=r.openKeys,l=r.activeKey,t=r.selectedKeys,a=f.eventKey,n=f.subMenuKey;return{isOpen:g.indexOf(a)>-1,active:l[n]===a,selectedKeys:t}})(la);Wn.isSubMenu=!0;var Qn=Wn,Ia="menuitem-overflowed",Xa=.5,Pa=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){var l;return Object(B.a)(this,g),l=f.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=o.createRef(),l.getMenuItemNodes=function(){var t=l.props.prefixCls,a=l.childRef.current;return a?[].slice.call(a.children).filter(function(n){return n.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(t,a,n){var s=l.props,u=s.overflowedIndicator,b=s.level,p=s.mode,A=s.prefixCls,T=s.theme;if(b!==1||p!=="horizontal")return null;var H=l.props.children[0],J=H.props,ce=J.children,Fe=J.title,st=J.style,tt=Object(ge.a)(J,["children","title","style"]),ut=Object(M.a)({},st),lt="".concat(t,"-overflowed-indicator"),ot="".concat(t,"-overflowed-indicator");a.length===0&&n!==!0?ut=Object(M.a)(Object(M.a)({},ut),{},{display:"none"}):n&&(ut=Object(M.a)(Object(M.a)({},ut),{},{visibility:"hidden",position:"absolute"}),lt="".concat(lt,"-placeholder"),ot="".concat(ot,"-placeholder"));var rt=T?"".concat(A,"-").concat(T):"",At={};return nt.forEach(function(ft){tt[ft]!==void 0&&(At[ft]=tt[ft])}),o.createElement(Qn,Object(D.a)({title:u,className:"".concat(A,"-overflowed-submenu"),popupClassName:rt},At,{key:lt,eventKey:ot,disabled:!1,style:ut}),a)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var t=l.childRef.current;if(!t)return;var a=t.children;if(!a||a.length===0)return;var n=t.children[a.length-1];Te(n,"display","inline-block");var s=l.getMenuItemNodes(),u=s.filter(function(b){return b.className.split(" ").indexOf(Ia)>=0});u.forEach(function(b){Te(b,"display","inline-block")}),l.menuItemSizes=s.map(function(b){return qe(b,!0)}),u.forEach(function(b){Te(b,"display","none")}),l.overflowedIndicatorWidth=qe(t.children[t.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(b,p){return b+p},0),l.handleResize(),Te(n,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var t=l.childRef.current;if(!t)return;var a=qe(t);l.overflowedItems=[];var n=0,s;l.originalTotalWidth>a+Xa&&(s=-1,l.menuItemSizes.forEach(function(u){n+=u,n+l.overflowedIndicatorWidth<=a&&(s+=1)})),l.setState({lastVisibleIndex:s})},l}return Object(k.a)(g,[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var a=this.childRef.current;if(!a)return;this.resizeObserver=new Mt.default(function(n){n.forEach(function(){var s=t.cancelFrameId;cancelAnimationFrame(s),t.cancelFrameId=requestAnimationFrame(t.setChildrenWidthAndResize)})}),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){t.resizeObserver.disconnect(),[].slice.call(a.children).concat(a).forEach(function(n){t.resizeObserver.observe(n)}),t.setChildrenWidthAndResize()}),this.mutationObserver.observe(a,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(t){var a=this,n=this.state.lastVisibleIndex;return(t||[]).reduce(function(s,u,b){var p=u;if(a.props.mode==="horizontal"){var A=a.getOverflowedSubMenuItem(u.props.eventKey,[]);n!==void 0&&a.props.className.indexOf("".concat(a.props.prefixCls,"-root"))!==-1&&(b>n&&(p=o.cloneElement(u,{style:{display:"none"},eventKey:"".concat(u.props.eventKey,"-hidden"),className:"".concat(Ia)})),b===n+1&&(a.overflowedItems=t.slice(n+1).map(function(H){return o.cloneElement(H,{key:H.props.eventKey,mode:"vertical-left"})}),A=a.getOverflowedSubMenuItem(u.props.eventKey,a.overflowedItems)));var T=[].concat(Object(Ce.a)(s),[A,p]);return b===t.length-1&&T.push(a.getOverflowedSubMenuItem(u.props.eventKey,[],!0)),T}return[].concat(Object(Ce.a)(s),[p])},[])}},{key:"render",value:function(){var t=this.props,a=t.visible,n=t.prefixCls,s=t.overflowedIndicator,u=t.mode,b=t.level,p=t.tag,A=t.children,T=t.theme,H=Object(ge.a)(t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),J=p;return o.createElement(J,Object(D.a)({ref:this.childRef},H),this.renderChildren(A))}}]),g}(o.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function qn(r){return r.length?r.every(function(f){return!!f.props.disabled}):!0}function In(r,f,g){var l=r.getState();r.setState({activeKey:Object(M.a)(Object(M.a)({},l.activeKey),{},Object(x.a)({},f,g))})}function xn(r){return r.eventKey||"0-menu-"}function $n(r,f){var g=f,l=r.children,t=r.eventKey;if(g){var a;if(we(l,function(n,s){n&&n.props&&!n.props.disabled&&g===ke(n,t,s)&&(a=!0)}),a)return g}return g=null,r.defaultActiveFirst&&we(l,function(n,s){!g&&n&&!n.props.disabled&&(g=ke(n,t,s))}),g}function La(r){if(!r)return;var f=this.instanceArray.indexOf(r);f!==-1?this.instanceArray[f]=r:this.instanceArray.push(r)}var Ua=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(l){var t;return Object(B.a)(this,g),t=f.call(this,l),t.onKeyDown=function(a,n){var s=a.keyCode,u;if(t.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(u=p.onKeyDown(a))}),u)return 1;var b=null;return(s===d.a.UP||s===d.a.DOWN)&&(b=t.step(s===d.a.UP?-1:1)),b?(a.preventDefault(),In(t.props.store,xn(t.props),b.props.eventKey),typeof n=="function"&&n(b),1):void 0},t.onItemHover=function(a){var n=a.key,s=a.hover;In(t.props.store,xn(t.props),s?n:null)},t.onDeselect=function(a){t.props.onDeselect(a)},t.onSelect=function(a){t.props.onSelect(a)},t.onClick=function(a){t.props.onClick(a)},t.onOpenChange=function(a){t.props.onOpenChange(a)},t.onDestroy=function(a){t.props.onDestroy(a)},t.getFlatInstanceArray=function(){return t.instanceArray},t.step=function(a){var n=t.getFlatInstanceArray(),s=t.props.store.getState().activeKey[xn(t.props)],u=n.length;if(!u)return null;a<0&&(n=n.concat().reverse());var b=-1;if(n.every(function(H,J){return H&&H.props.eventKey===s?(b=J,!1):!0}),!t.props.defaultActiveFirst&&b!==-1&&qn(n.slice(b,u-1)))return;var p=(b+1)%u,A=p;do{var T=n[A];if(!T||T.props.disabled)A=(A+1)%u;else return T}while(A!==p);return null},t.renderCommonMenuItem=function(a,n,s){var u=t.props.store.getState(),b=Object(E.a)(t),p=b.props,A=ke(a,p.eventKey,n),T=a.props;if(!T||typeof a.type=="string")return a;var H=A===u.activeKey,J=Object(M.a)(Object(M.a)({mode:T.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:t.renderMenuItem,rootPrefixCls:p.prefixCls,index:n,parentMenu:p.parentMenu,manualRef:T.disabled?void 0:Object(N.a)(a.ref,La.bind(Object(E.a)(t))),eventKey:A,active:!T.disabled&&H,multiple:p.multiple,onClick:function(Fe){(T.onClick||le)(Fe),t.onClick(Fe)},onItemHover:t.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:t.onOpenChange,onDeselect:t.onDeselect,onSelect:t.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:T.itemIcon||t.props.itemIcon,expandIcon:T.expandIcon||t.props.expandIcon},s),{},{direction:p.direction});return(p.mode==="inline"||Ze())&&(J.triggerSubMenuAction="click"),o.cloneElement(a,Object(M.a)(Object(M.a)({},J),{},{key:A||n}))},t.renderMenuItem=function(a,n,s){if(!a)return null;var u=t.props.store.getState(),b={openKeys:u.openKeys,selectedKeys:u.selectedKeys,triggerSubMenuAction:t.props.triggerSubMenuAction,subMenuKey:s};return t.renderCommonMenuItem(a,n,b)},l.store.setState({activeKey:Object(M.a)(Object(M.a)({},l.store.getState().activeKey),{},Object(x.a)({},l.eventKey,$n(l,l.activeKey)))}),t.instanceArray=[],t}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(t){return this.props.visible||t.visible||this.props.className!==t.className||!L()(this.props.style,t.style)}},{key:"componentDidUpdate",value:function(t){var a=this.props,n="activeKey"in a?a.activeKey:a.store.getState().activeKey[xn(a)],s=$n(a,n);if(s!==n)In(a.store,xn(a),s);else if("activeKey"in t){var u=$n(t,t.activeKey);s!==u&&In(a.store,xn(a),s)}}},{key:"render",value:function(){var t=this,a=Object(D.a)({},this.props);this.instanceArray=[];var n=de()(a.prefixCls,a.className,"".concat(a.prefixCls,"-").concat(a.mode)),s={className:n,role:a.role||"menu"};a.id&&(s.id=a.id),a.focusable&&(s.tabIndex=0,s.onKeyDown=this.onKeyDown);var u=a.prefixCls,b=a.eventKey,p=a.visible,A=a.level,T=a.mode,H=a.overflowedIndicator,J=a.theme;return nt.forEach(function(ce){return delete a[ce]}),delete a.onClick,o.createElement(ua,Object(D.a)({},a,{prefixCls:u,mode:T,tag:"ul",level:A,theme:J,visible:p,overflowedIndicator:H},s),Object(oe.a)(a.children).map(function(ce,Fe){return t.renderMenuItem(ce,Fe,b||"0-menu-")}))}}]),g}(o.Component);Ua.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var wa=Object(y.b)()(Ua),ea=wa,Pn=e("Kwbf");function ca(r,f,g){var l=r.prefixCls,t=r.motion,a=r.defaultMotions,n=a===void 0?{}:a,s=r.openAnimation,u=r.openTransitionName,b=f.switchingModeFromInline;if(t)return t;if(Object(Y.a)(s)==="object"&&s)Object(Pn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof s=="string")return{motionName:"".concat(l,"-open-").concat(s)};if(u)return{motionName:u};var p=n[g];return p||(b?null:n.other)}var ka=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(l){var t;Object(B.a)(this,g),t=f.call(this,l),t.onSelect=function(s){var u=Object(E.a)(t),b=u.props;if(b.selectable){var p=t.store.getState(),A=p.selectedKeys,T=s.key;b.multiple?A=A.concat([T]):A=[T],"selectedKeys"in b||t.store.setState({selectedKeys:A}),b.onSelect(Object(M.a)(Object(M.a)({},s),{},{selectedKeys:A}))}},t.onClick=function(s){var u=t.getRealMenuMode(),b=Object(E.a)(t),p=b.store,A=b.props.onOpenChange;u!=="inline"&&!("openKeys"in t.props)&&(p.setState({openKeys:[]}),A([])),t.props.onClick(s)},t.onKeyDown=function(s,u){t.innerMenu.getWrappedInstance().onKeyDown(s,u)},t.onOpenChange=function(s){var u=Object(E.a)(t),b=u.props,p=t.store.getState().openKeys.concat(),A=!1,T=function(J){var ce=!1;if(J.open)ce=p.indexOf(J.key)===-1,ce&&p.push(J.key);else{var Fe=p.indexOf(J.key);ce=Fe!==-1,ce&&p.splice(Fe,1)}A=A||ce};Array.isArray(s)?s.forEach(T):T(s),A&&("openKeys"in t.props||t.store.setState({openKeys:p}),b.onOpenChange(p))},t.onDeselect=function(s){var u=Object(E.a)(t),b=u.props;if(b.selectable){var p=t.store.getState().selectedKeys.concat(),A=s.key,T=p.indexOf(A);T!==-1&&p.splice(T,1),"selectedKeys"in b||t.store.setState({selectedKeys:p}),b.onDeselect(Object(M.a)(Object(M.a)({},s),{},{selectedKeys:p}))}},t.onMouseEnter=function(s){t.restoreModeVerticalFromInline();var u=t.props.onMouseEnter;u&&u(s)},t.onTransitionEnd=function(s){var u=s.propertyName==="width"&&s.target===s.currentTarget,b=s.target.className,p=Object.prototype.toString.call(b)==="[object SVGAnimatedString]"?b.animVal:b,A=s.propertyName==="font-size"&&p.indexOf("anticon")>=0;(u||A)&&t.restoreModeVerticalFromInline()},t.setInnerMenu=function(s){t.innerMenu=s},t.isRootMenu=!0;var a=l.defaultSelectedKeys,n=l.defaultOpenKeys;return"selectedKeys"in l&&(a=l.selectedKeys||[]),"openKeys"in l&&(n=l.openKeys||[]),t.store=Object(y.c)({selectedKeys:a,openKeys:n,activeKey:{"0-menu-":$n(l,l.activeKey)}}),t.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:t.store},t}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(t){var a=this.props,n=a.siderCollapsed,s=a.inlineCollapsed,u=a.onOpenChange;(!t.inlineCollapsed&&s||!t.siderCollapsed&&n)&&u([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var t=this.props.collapsedWidth,a=this.store,n=this.prevOpenKeys,s=this.getInlineCollapsed()&&(t===0||t==="0"||t==="0px");s?(this.prevOpenKeys=a.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var t=this.props.mode,a=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return a&&n?"inline":n?"vertical":t}},{key:"getInlineCollapsed",value:function(){var t=this.props,a=t.inlineCollapsed,n=t.siderCollapsed;return n!==void 0?n:a}},{key:"restoreModeVerticalFromInline",value:function(){var t=this.state.switchingModeFromInline;t&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var t=Object(M.a)({},Object(R.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),a=this.getRealMenuMode();return t.className+=" ".concat(t.prefixCls,"-root"),t.direction==="rtl"&&(t.className+=" ".concat(t.prefixCls,"-rtl")),t=Object(M.a)(Object(M.a)({},t),{},{mode:a,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,a)}),delete t.openAnimation,delete t.openTransitionName,o.createElement(y.a,{store:this.store},o.createElement(ea,Object(D.a)({},t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(t,a){var n=a.prevProps,s=a.store,u=s.getState(),b={},p={prevProps:t};return n.mode==="inline"&&t.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in t?b.openKeys=t.openKeys||[]:((t.inlineCollapsed&&!n.inlineCollapsed||t.siderCollapsed&&!n.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=u.openKeys,b.openKeys=[]),(!t.inlineCollapsed&&n.inlineCollapsed||!t.siderCollapsed&&n.siderCollapsed)&&(b.openKeys=a.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(b).length&&s.setState(b),p}}]),g}(o.Component);ka.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Ba=ka,Ln=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){var l;return Object(B.a)(this,g),l=f.apply(this,arguments),l.onKeyDown=function(t){var a=t.keyCode;return a===d.a.ENTER?(l.onClick(t),!0):void 0},l.onMouseLeave=function(t){var a=l.props,n=a.eventKey,s=a.onItemHover,u=a.onMouseLeave;s({key:n,hover:!1}),u({key:n,domEvent:t})},l.onMouseEnter=function(t){var a=l.props,n=a.eventKey,s=a.onItemHover,u=a.onMouseEnter;s({key:n,hover:!0}),u({key:n,domEvent:t})},l.onClick=function(t){var a=l.props,n=a.eventKey,s=a.multiple,u=a.onClick,b=a.onSelect,p=a.onDeselect,A=a.isSelected,T={key:n,keyPath:[n],item:Object(E.a)(l),domEvent:t};u(T),s?A?p(T):b(T):A||b(T)},l.saveNode=function(t){l.node=t},l}return Object(k.a)(g,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var t=this.props;t.onDestroy&&t.onDestroy(t.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var t,a=Object(M.a)({},this.props),n=de()(this.getPrefixCls(),a.className,(t={},Object(x.a)(t,this.getActiveClassName(),!a.disabled&&a.active),Object(x.a)(t,this.getSelectedClassName(),a.isSelected),Object(x.a)(t,this.getDisabledClassName(),a.disabled),t)),s=Object(M.a)(Object(M.a)({},a.attribute),{},{title:typeof a.title=="string"?a.title:void 0,className:n,role:a.role||"menuitem","aria-disabled":a.disabled});a.role==="option"?s=Object(M.a)(Object(M.a)({},s),{},{role:"option","aria-selected":a.isSelected}):(a.role===null||a.role==="none")&&(s.role="none");var u={onClick:a.disabled?null:this.onClick,onMouseLeave:a.disabled?null:this.onMouseLeave,onMouseEnter:a.disabled?null:this.onMouseEnter},b=Object(M.a)({},a.style);a.mode==="inline"&&(a.direction==="rtl"?b.paddingRight=a.inlineIndent*a.level:b.paddingLeft=a.inlineIndent*a.level),nt.forEach(function(A){return delete a[A]}),delete a.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(D.a)({},Object(R.a)(a,["onClick","onMouseEnter","onMouseLeave","onSelect"]),s,u,{style:b,ref:this.saveNode}),a.children,p)}}]),g}(o.Component);Ln.isMenuItem=!0,Ln.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var da=Object(y.b)(function(r,f){var g=r.activeKey,l=r.selectedKeys,t=f.eventKey,a=f.subMenuKey;return{active:g[a]===t,isSelected:Array.isArray(l)?l.indexOf(t)!==-1:l===t}})(Ln),ma=da,fa=function(r){Object(m.a)(g,r);var f=Object(i.a)(g);function g(){var l;return Object(B.a)(this,g),l=f.apply(this,arguments),l.renderInnerMenuItem=function(t){var a=l.props,n=a.renderMenuItem,s=a.index;return n(t,s,l.props.subMenuKey)},l}return Object(k.a)(g,[{key:"render",value:function(){var t=Object(D.a)({},this.props),a=t.className,n=a===void 0?"":a,s=t.rootPrefixCls,u="".concat(s,"-item-group-title"),b="".concat(s,"-item-group-list"),p=t.title,A=t.children;return nt.forEach(function(T){return delete t[T]}),delete t.direction,o.createElement("li",Object(D.a)({},t,{onClick:function(H){return H.stopPropagation()},className:"".concat(n," ").concat(s,"-item-group")}),o.createElement("div",{className:u,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:b},o.Children.map(A,this.renderInnerMenuItem)))}}]),g}(o.Component);fa.isMenuItemGroup=!0,fa.defaultProps={disabled:!0};var qa=fa,pa=function(f){var g=f.className,l=f.rootPrefixCls,t=f.style;return o.createElement("li",{className:"".concat(g," ").concat(l,"-item-divider"),style:t})};pa.defaultProps={disabled:!0,className:"",style:{}};var $a=pa,Ka=Ba,ha=e("eDIo");function eo(r,f){var g=r.prefixCls,l=r.editable,t=r.locale,a=r.style;return!l||l.showAdd===!1?null:o.createElement("button",{ref:f,type:"button",className:"".concat(g,"-nav-add"),style:a,"aria-label":(t==null?void 0:t.addAriaLabel)||"Add tab",onClick:function(s){l.onEdit("add",{event:s})}},l.addIcon||"+")}var ta=o.forwardRef(eo);function to(r,f){var g=r.prefixCls,l=r.id,t=r.tabs,a=r.locale,n=r.mobile,s=r.moreIcon,u=s===void 0?"More":s,b=r.moreTransitionName,p=r.style,A=r.className,T=r.editable,H=r.tabBarGutter,J=r.rtl,ce=r.onTabClick,Fe=Object(o.useState)(!1),st=Object(S.a)(Fe,2),tt=st[0],ut=st[1],lt=Object(o.useState)(null),ot=Object(S.a)(lt,2),rt=ot[0],At=ot[1],ft="".concat(l,"-more-popup"),Jt="".concat(g,"-dropdown"),Tt=rt!==null?"".concat(ft,"-").concat(rt):null,Ke=a==null?void 0:a.dropdownAriaLabel,Be=o.createElement(Ka,{onClick:function(Lt){var Qt=Lt.key,en=Lt.domEvent;ce(Qt,en),ut(!1)},id:ft,tabIndex:-1,role:"listbox","aria-activedescendant":Tt,selectedKeys:[rt],"aria-label":Ke!==void 0?Ke:"expanded dropdown"},t.map(function(yt){return o.createElement(ma,{key:yt.key,id:"".concat(ft,"-").concat(yt.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(yt.key),disabled:yt.disabled},yt.tab)}));function ht(yt){for(var Lt=t.filter(function(pn){return!pn.disabled}),Qt=Lt.findIndex(function(pn){return pn.key===rt})||0,en=Lt.length,fn=0;fnCt?(Et=Be,ft.current="x"):(Et=ht,ft.current="y");var Bt=Date.now();Bt-rt.current>100&&(At.current=!1),(f(-Et,-Et)||At.current)&&(Ke.preventDefault(),At.current=!0),rt.current=Bt}var Tt=Object(o.useRef)(null);Tt.current={onTouchStart:ut,onTouchMove:lt,onTouchEnd:ot,onWheel:Jt},o.useEffect(function(){function Ke(Se){Tt.current.onTouchStart(Se)}function Be(Se){Tt.current.onTouchMove(Se)}function ht(Se){Tt.current.onTouchEnd(Se)}function Et(Se){Tt.current.onWheel(Se)}return document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",ht,{passive:!1}),r.current.addEventListener("touchstart",Ke,{passive:!1}),r.current.addEventListener("wheel",Et),function(){document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",ht)}},[])}function Ea(){var r=Object(o.useRef)(new Map);function f(l){return r.current.has(l)||r.current.set(l,o.createRef()),r.current.get(l)}function g(l){r.current.delete(l)}return[f,g]}function Qa(r,f){var g=o.useRef(r),l=o.useState({}),t=Object(S.a)(l,2),a=t[1];function n(s){var u=typeof s=="function"?s(g.current):s;u!==g.current&&f(u,g.current),g.current=u,a({})}return[g.current,n]}var _a=function(f){var g=f.position,l=f.prefixCls,t=f.extra;if(!t)return null;var a,n=t;return g==="right"&&(a=n.right||!n.left&&n||null),g==="left"&&(a=n.left||null),a?o.createElement("div",{className:"".concat(l,"-extra-content")},a):null};function Qo(r,f){var g,l=o.useContext(va),t=l.prefixCls,a=l.tabs,n=r.className,s=r.style,u=r.id,b=r.animated,p=r.activeKey,A=r.rtl,T=r.extra,H=r.editable,J=r.locale,ce=r.tabPosition,Fe=r.tabBarGutter,st=r.children,tt=r.onTabClick,ut=r.onTabScroll,lt=Object(o.useRef)(),ot=Object(o.useRef)(),rt=Object(o.useRef)(),At=Object(o.useRef)(),ft=Ea(),Jt=Object(S.a)(ft,2),Tt=Jt[0],Ke=Jt[1],Be=ce==="top"||ce==="bottom",ht=Qa(0,function(Nt,vt){Be&&ut&&ut({direction:Nt>vt?"left":"right"})}),Et=Object(S.a)(ht,2),Se=Et[0],Ct=Et[1],Bt=Qa(0,function(Nt,vt){!Be&&ut&&ut({direction:Nt>vt?"top":"bottom"})}),yt=Object(S.a)(Bt,2),Lt=yt[0],Qt=yt[1],en=Object(o.useState)(0),fn=Object(S.a)(en,2),Ht=fn[0],pn=fn[1],Sn=Object(o.useState)(0),vn=Object(S.a)(Sn,2),En=vn[0],Yt=vn[1],un=Object(o.useState)(0),tn=Object(S.a)(un,2),qt=tn[0],Un=tn[1],wn=Object(o.useState)(0),zn=Object(S.a)(wn,2),wt=zn[0],Dn=zn[1],Fn=Object(o.useState)(null),Kt=Object(S.a)(Fn,2),Dt=Kt[0],nn=Kt[1],Vo=Object(o.useState)(null),Eo=Object(S.a)(Vo,2),na=Eo[0],Ho=Eo[1],Go=Object(o.useState)(0),go=Object(S.a)(Go,2),Zo=go[0],Yo=go[1],Xo=Object(o.useState)(0),bo=Object(S.a)(Xo,2),qo=bo[0],$o=bo[1],er=c(new Map),Ao=Object(S.a)(er,2),tr=Ao[0],nr=Ao[1],za=V(a,tr,Ht),Co="".concat(t,"-nav-operations-hidden"),ga=0,ba=0;Be?A?(ga=0,ba=Math.max(0,Ht-Dt)):(ga=Math.min(0,Dt-Ht),ba=0):(ga=Math.min(0,na-En),ba=0);function ao(Nt){return Ntba?[ba,!1]:[Nt,!0]}var yo=Object(o.useRef)(),ar=Object(o.useState)(),Oo=Object(S.a)(ar,2),oo=Oo[0],Mo=Oo[1];function ro(){Mo(Date.now())}function io(){window.clearTimeout(yo.current)}Wa(lt,function(Nt,vt){var $t=!1;function gn(Ca,ya){Ca(function(Oa){var Ma=ao(Oa+ya),aa=Object(S.a)(Ma,2),co=aa[0],mo=aa[1];return $t=mo,co})}if(Be){if(Dt>=Ht)return $t;gn(Ct,Nt)}else{if(na>=En)return $t;gn(Qt,vt)}return io(),ro(),$t}),Object(o.useEffect)(function(){return io(),oo&&(yo.current=window.setTimeout(function(){Mo(0)},100)),io},[oo]);function So(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,vt=za.get(Nt);if(!vt)return;if(Be){var $t=Se;A?vt.rightSe+Dt&&($t=vt.right+vt.width-Dt):vt.left<-Se?$t=-vt.left:vt.left+vt.width>-Se+Dt&&($t=-(vt.left+vt.width-Dt)),Qt(0),Ct(ao($t)[0])}else{var gn=Lt;vt.top<-Lt?gn=-vt.top:vt.top+vt.height>-Lt+na&&(gn=-(vt.top+vt.height-na)),Ct(0),Qt(ao(gn)[0])}}var or=ee(za,{width:Dt,height:na,left:Se,top:Lt},{width:qt,height:wt},{width:Zo,height:qo},Object(M.a)(Object(M.a)({},r),{},{tabs:a})),Ro=Object(S.a)(or,2),rr=Ro[0],ir=Ro[1],sr=a.map(function(Nt){var vt=Nt.key;return o.createElement(U,{id:u,prefixCls:t,key:vt,rtl:A,tab:Nt,closable:Nt.closable,editable:H,active:vt===p,tabPosition:ce,tabBarGutter:Fe,renderWrapper:st,removeAriaLabel:J==null?void 0:J.removeAriaLabel,ref:Tt(vt),onClick:function(gn){tt(vt,gn)},onRemove:function(){Ke(vt)},onFocus:function(){So(vt),ro(),A||(lt.current.scrollLeft=0),lt.current.scrollTop=0}})}),so=P(function(){var Nt,vt,$t,gn,Ca,ya,Oa,Ma,aa,co=((Nt=lt.current)===null||Nt===void 0?void 0:Nt.offsetWidth)||0,mo=((vt=lt.current)===null||vt===void 0?void 0:vt.offsetHeight)||0,Lo=(($t=At.current)===null||$t===void 0?void 0:$t.offsetWidth)||0,Uo=((gn=At.current)===null||gn===void 0?void 0:gn.offsetHeight)||0,fr=((Ca=rt.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((ya=rt.current)===null||ya===void 0?void 0:ya.offsetHeight)||0;nn(co),Ho(mo),Yo(Lo),$o(Uo);var wo=(((Oa=ot.current)===null||Oa===void 0?void 0:Oa.offsetWidth)||0)-Lo,ko=(((Ma=ot.current)===null||Ma===void 0?void 0:Ma.offsetHeight)||0)-Uo;pn(wo),Yt(ko);var Bo=(aa=rt.current)===null||aa===void 0?void 0:aa.className.includes(Co);Un(wo-(Bo?0:fr)),Dn(ko-(Bo?0:pr)),nr(function(){var Ko=new Map;return a.forEach(function(hr){var Wo=hr.key,Sa=Tt(Wo).current;Sa&&Ko.set(Wo,{width:Sa.offsetWidth,height:Sa.offsetHeight,left:Sa.offsetLeft,top:Sa.offsetTop})}),Ko})}),lr=a.slice(0,rr),ur=a.slice(ir+1),xo=[].concat(Object(Ce.a)(lr),Object(Ce.a)(ur)),cr=Object(o.useState)(),Do=Object(S.a)(cr,2),dr=Do[0],mr=Do[1],kn=za.get(p),jo=Object(o.useRef)();function To(){I.a.cancel(jo.current)}Object(o.useEffect)(function(){var Nt={};return kn&&(Be?(A?Nt.right=kn.right:Nt.left=kn.left,Nt.width=kn.width):(Nt.top=kn.top,Nt.height=kn.height)),To(),jo.current=I()(function(){mr(Nt)}),To},[kn,Be,A]),Object(o.useEffect)(function(){So()},[p,kn,za,Be]),Object(o.useEffect)(function(){so()},[A,Fe,p,a.map(function(Nt){return Nt.key}).join("_")]);var No=!!xo.length,Aa="".concat(t,"-nav-wrap"),lo,uo,Io,Po;return Be?A?(uo=Se>0,lo=Se+Dt1)Object(Ce.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(Ce.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Q=V[0];if(h.isValidElement(Q)&&Object(j.c)(Q)){var ee=Q.ref;V[0]=h.cloneElement(Q,{ref:Object(j.a)(ee,this.setChildNode)})}return V.length===1?V[0]:V.map(function(D,B){return!h.isValidElement(D)||"key"in D&&D.key!==null?D:h.cloneElement(D,{key:"".concat(W,"-").concat(B)})})}}]),v}(h.Component);P.displayName="ResizeObserver",O.a=P},tWlo:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},wCXF:function(F,O,e){"use strict";e.d(O,"a",function(){return Ot});var x=e("rePB"),S=e("VTBJ"),ge=e("KQm4"),M=e("U8pU"),o=e("ODXe"),h=e("q1tI"),de=e("TSYQ"),oe=e.n(de),w=e("Gytx"),Ce=e.n(w),j=e("Kwbf"),I=e("t23M"),W=e("qx4F"),P=e("6eGT"),c=e("IBYe"),d=e("Ff2n"),v=e("c+Xe"),U=e("fyJ8"),z=e("biw7");function V(C,G,X,me,Ae){var pe=X[C]||{},se=X[G]||{},$,ne;pe.fixed==="left"?$=me.left[C]:se.fixed==="right"&&(ne=me.right[G]);var Oe=!1,ve=!1,Ee=!1,Ve=!1,xe=X[G+1],Ne=X[C-1];if(Ae==="rtl"){if($!==void 0){var pt=Ne&&Ne.fixed==="left";Ve=!pt}else if(ne!==void 0){var $e=xe&&xe.fixed==="right";Ee=!$e}}else if($!==void 0){var it=xe&&xe.fixed==="left";Oe=!it}else if(ne!==void 0){var We=Ne&&Ne.fixed==="right";ve=!We}return{fixLeft:$,fixRight:ne,lastFixLeft:Oe,firstFixRight:ve,lastFixRight:Ee,firstFixLeft:Ve,isSticky:me.isSticky}}var Q=e("sR1s");function ee(C){var G=C.cells,X=C.stickyOffsets,me=C.flattenColumns,Ae=C.rowComponent,pe=C.cellComponent,se=C.onHeaderRow,$=C.index,ne=h.useContext(z.a),Oe=ne.prefixCls,ve=ne.direction,Ee;se&&(Ee=se(G.map(function(xe){return xe.column}),$));var Ve=Object(Q.a)(G.map(function(xe){return xe.column}));return h.createElement(Ae,Object.assign({},Ee),G.map(function(xe,Ne){var pt=xe.column,$e=V(xe.colStart,xe.colEnd,me,X,ve),it;return pt&&pt.onHeaderCell&&(it=xe.column.onHeaderCell(pt)),h.createElement(U.a,Object.assign({},xe,{ellipsis:pt.ellipsis,align:pt.align,component:pe,prefixCls:Oe,key:Ve[Ne]},$e,{additionalProps:it,rowType:"header"}))}))}ee.displayName="HeaderRow";var D=ee;function B(C){var G=[];function X(se,$){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;G[ne]=G[ne]||[];var Oe=$,ve=se.filter(Boolean).map(function(Ee){var Ve={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:Oe},xe=1,Ne=Ee.children;return Ne&&Ne.length>0&&(xe=X(Ne,Oe,ne+1).reduce(function(pt,$e){return pt+$e},0),Ve.hasSubColumns=!0),"colSpan"in Ee&&(xe=Ee.colSpan),"rowSpan"in Ee&&(Ve.rowSpan=Ee.rowSpan),Ve.colSpan=xe,Ve.colEnd=Ve.colStart+xe-1,G[ne].push(Ve),Oe+=xe,xe});return ve}X(C,0);for(var me=G.length,Ae=function($){G[$].forEach(function(ne){!("rowSpan"in ne)&&!ne.hasSubColumns&&(ne.rowSpan=me-$)})},pe=0;pe=0;$-=1){var ne=G[$],Oe=X&&X[$],ve=Oe&&Oe[m.a];(ne||ve||se)&&(Ae.unshift(h.createElement("col",Object.assign({key:$,style:{width:ne,minWidth:ne}},ve))),se=!0)}return h.createElement("colgroup",null,Ae)}var y=i;function R(C,G){return Object(h.useMemo)(function(){for(var X=[],me=0;me1?on-1:0),bn=1;bn=Ee&&(It=Ee-Ve),se({scrollLeft:It/Ee*(ve+2)}),We.current.x=Ge.pageX},dt=function(){var Ge=Object(nt.b)(pe.current).top,Ut=Ge+pe.current.offsetHeight,Zt=document.documentElement.scrollTop+window.innerHeight;Ut-Object(W.a)()<=Zt||Ge>=Zt-$?it(function(Wt){return Object(S.a)(Object(S.a)({},Wt),{},{isHiddenScrollBar:!0})}):it(function(Wt){return Object(S.a)(Object(S.a)({},Wt),{},{isHiddenScrollBar:!1})})},Xe=function(Ge){it(function(Ut){return Object(S.a)(Object(S.a)({},Ut),{},{scrollLeft:Ge/ve*Ee||0})})};return h.useImperativeHandle(X,function(){return{setScrollLeft:Xe}}),h.useEffect(function(){var mt=Object(ze.a)(document.body,"mouseup",He,!1),Ge=Object(ze.a)(document.body,"mousemove",xt,!1);return dt(),function(){mt.remove(),Ge.remove()}},[Ve,Ye]),h.useEffect(function(){var mt=Object(ze.a)(window,"scroll",dt,!1),Ge=Object(ze.a)(window,"resize",dt,!1);return function(){mt.remove(),Ge.remove()}},[]),h.useEffect(function(){$e.isHiddenScrollBar||it(function(mt){var Ge,Ut;return Object(S.a)(Object(S.a)({},mt),{},{scrollLeft:pe.current.scrollLeft/((Ge=pe.current)===null||Ge===void 0?void 0:Ge.scrollWidth)*((Ut=pe.current)===null||Ut===void 0?void 0:Ut.clientWidth)})})},[$e.isHiddenScrollBar]),ve<=Ee||!Ve||$e.isHiddenScrollBar?null:h.createElement("div",{style:{height:Object(W.a)(),width:Ee,bottom:$},className:"".concat(Oe,"-sticky-scroll")},h.createElement("div",{onMouseDown:et,ref:xe,className:oe()("".concat(Oe,"-sticky-scroll-bar"),Object(x.a)({},"".concat(Oe,"-sticky-scroll-bar-active"),Ye)),style:{width:"".concat(Ve,"px"),transform:"translate3d(".concat($e.scrollLeft,"px, 0, 0)")}}))},Te=h.forwardRef(qe);function Ze(C,G){return h.useMemo(function(){var X=!!C;return{isSticky:X,stickyClassName:X?"".concat(G,"-sticky-header"):"",offsetHeader:Object(M.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(M.a)(C)==="object"&&C.offsetScroll||0}},[C,G])}var Mt=[],jt={},Ot="rc-table-internal-hook",St=h.memo(function(C){var G=C.children;return G},function(C,G){return Ce()(C.props,G.props)?C.pingLeft!==G.pingLeft||C.pingRight!==G.pingRight:!1});function Rt(C){var G,X=C.prefixCls,me=C.className,Ae=C.rowClassName,pe=C.style,se=C.data,$=C.rowKey,ne=C.scroll,Oe=C.tableLayout,ve=C.direction,Ee=C.title,Ve=C.footer,xe=C.summary,Ne=C.id,pt=C.showHeader,$e=C.components,it=C.emptyText,We=C.onRow,kt=C.onHeaderRow,Me=C.internalHooks,Ye=C.transformColumns,at=C.internalRefs,He=C.sticky,et=se||Mt,xt=!!et.length,dt=h.useState(0),Xe=Object(o.a)(dt,2),mt=Xe[0],Ge=Xe[1];h.useEffect(function(){Ge(Object(W.a)())});var Ut=h.useMemo(function(){return Object(Q.c)($e,{})},[$e]),Zt=h.useCallback(function(gt,bt){return Object(Q.b)(Ut,gt)||bt},[Ut]),Wt=h.useMemo(function(){return typeof $=="function"?$:function(gt){var bt=gt&>[$];return bt}},[$]),It=Object(m.c)(C),cn=It.expandIcon,Le=It.expandedRowKeys,Z=It.defaultExpandedRowKeys,De=It.defaultExpandAllRows,Pt=It.expandedRowRender,Je=It.onExpand,_t=It.onExpandedRowsChange,sn=It.expandRowByClick,an=It.rowExpandable,Vt=It.expandIconColumnIndex,Rn=It.expandedRowClassName,Bn=It.childrenColumnName,jn=It.indentSize,On=cn||ct,Tn=Bn||"children",Jn=h.useMemo(function(){return Pt?"row":C.expandable&&Me===Ot&&C.expandable.__PARENT_RENDER_ICON__||et.some(function(gt){return gt&&Object(M.a)(gt)==="object"&>[Tn]})?"nest":!1},[!!Pt,et]),Nn=h.useState(function(){return Z||(De?we(et,Wt,Tn):[])}),Xt=Object(o.a)(Nn,2),ln=Xt[0],hn=Xt[1],on=h.useMemo(function(){return new Set(Le||ln||[])},[Le,ln]),dn=h.useCallback(function(gt){var bt=Wt(gt,et.indexOf(gt)),Ft,rn=on.has(bt);rn?(on.delete(bt),Ft=Object(ge.a)(on)):Ft=[].concat(Object(ge.a)(on),[bt]),hn(Ft),Je&&Je(!rn,gt),_t&&_t(Ft)},[Wt,on,et,Je,_t]),bn=h.useState(0),Vn=Object(o.a)(bn,2),Kn=Vn[0],Hn=Vn[1],Ra=Object(ie.b)(Object(S.a)(Object(S.a)(Object(S.a)({},C),It),{},{expandable:!!Pt,expandedKeys:on,getRowKey:Wt,onTriggerExpand:dn,expandIcon:On,expandIconColumnIndex:Vt,direction:ve}),Me===Ot?Ye:null),xa=Object(o.a)(Ra,2),Gn=xa[0],zt=xa[1],Zn=h.useMemo(function(){return{columns:Gn,flattenColumns:zt}},[Gn,zt]),Yn=h.useRef(),Da=h.useRef(),An=h.useRef(),Fa=h.useState(!1),ja=Object(o.a)(Fa,2),oa=ja[0],Ja=ja[1],Va=h.useState(!1),ra=Object(o.a)(Va,2),Xn=ra[0],Ha=ra[1],Ga=K(new Map),Ta=Object(o.a)(Ga,2),Za=Ta[0],Ya=Ta[1],Mn=Object(Q.a)(zt),ia=Mn.map(function(gt){return Za.get(gt)}),Na=h.useMemo(function(){return ia},[ia.join("_")]),sa=je(Na,zt.length,ve),mn=ne&&Object(Q.d)(ne.y),Cn=ne&&Object(Q.d)(ne.x),yn=Cn&&zt.some(function(gt){var bt=gt.fixed;return bt}),la=h.useRef(),Wn=Ze(He,X),Qn=Wn.isSticky,Ia=Wn.offsetHeader,Xa=Wn.offsetScroll,Pa=Wn.stickyClassName,ua,qn,In;mn&&(qn={overflowY:"scroll",maxHeight:ne.y}),Cn&&(ua={overflowX:"auto"},mn||(qn={overflowY:"hidden"}),In={width:ne.x===!0?"auto":ne.x,minWidth:"100%"});var xn=h.useCallback(function(gt,bt){Ya(function(Ft){var rn=new Map(Ft);return rn.set(gt,bt),rn})},[]),$n=_(null),La=Object(o.a)($n,2),Ua=La[0],wa=La[1];function ea(gt,bt){if(!bt)return;typeof bt=="function"?bt(gt):bt.scrollLeft!==gt&&(bt.scrollLeft=gt)}var Pn=function(bt){var Ft=bt.currentTarget,rn=bt.scrollLeft,_n=typeof rn=="number"?rn:Ft.scrollLeft,Wa=Ft||jt;if(!wa()||wa()===Wa){var Ea;Ua(Wa),ea(_n,Da.current),ea(_n,An.current),ea(_n,(Ea=la.current)===null||Ea===void 0?void 0:Ea.setScrollLeft)}if(Ft){var Qa=Ft.scrollWidth,_a=Ft.clientWidth;Ja(_n>0),Ha(_n0?[].concat(Object(S.a)(d),Object(S.a)(j(V).map(function(Q){return Object(ge.a)({fixed:z},Q)}))):[].concat(Object(S.a)(d),[Object(ge.a)(Object(ge.a)({},v),{},{fixed:z})])},[])}function I(c){for(var d=!0,v=0;v=0;V-=1){var Q=c[V];if(z&&Q.fixed!=="right")z=!1;else if(!z&&Q.fixed==="right"){Object(de.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function W(c){return c.map(function(d){var v=d.fixed,U=Object(M.a)(d,["fixed"]),z=v;return v==="left"?z="right":v==="right"&&(z="left"),Object(ge.a)({fixed:z},U)})}function P(c,d){var v=c.prefixCls,U=c.columns,z=c.children,V=c.expandable,Q=c.expandedKeys,ee=c.getRowKey,D=c.onTriggerExpand,B=c.expandIcon,k=c.rowExpandable,E=c.expandIconColumnIndex,m=c.direction,i=c.expandRowByClick,y=o.useMemo(function(){return U||Ce(z)},[U,z]),R=o.useMemo(function(){if(V){var L,Y=E||0,re=y[Y],ye=(L={},Object(x.a)(L,w.a,{className:"".concat(v,"-expand-icon-col")}),Object(x.a)(L,"title",""),Object(x.a)(L,"fixed",re?re.fixed:null),Object(x.a)(L,"className","".concat(v,"-row-expand-icon-cell")),Object(x.a)(L,"render",function(q,Re,Ie){var Pe=ee(Re,Ie),Qe=Q.has(Pe),ae=k?k(Re):!0,ie=B({prefixCls:v,expanded:Qe,expandable:ae,record:Re,onExpand:D});return i?o.createElement("span",{onClick:function(ue){return ue.stopPropagation()}},ie):ie}),L),Ue=y.slice();return Y>=0&&Ue.splice(Y,0,ye),Ue}return y},[V,y,ee,Q,B,m]),N=o.useMemo(function(){var L=R;return d&&(L=d(L)),L.length||(L=[{render:function(){return null}}]),L},[d,R,m]),te=o.useMemo(function(){return m==="rtl"?W(j(N)):j(N)},[N,m]);return[N,te]}O.b=P},"y0+3":function(F,O,e){"use strict";e.d(O,"a",function(){return j}),e.d(O,"b",function(){return W});var x=/margin|padding|width|height|max|min|offset/,S={left:!0,top:!0},ge={cssFloat:1,styleFloat:1,float:1};function M(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function o(P,c,d){if(c=c.toLowerCase(),d==="auto"){if(c==="height")return P.offsetHeight;if(c==="width")return P.offsetWidth}return c in S||(S[c]=x.test(c)),S[c]?parseFloat(d)||0:d}function h(P,c){var d=arguments.length,v=M(P);return c=ge[c]?"cssFloat"in P.style?"cssFloat":"styleFloat":c,d===1?v:o(P,c,v[c]||P.style[c])}function de(P,c,d){var v=arguments.length;if(c=ge[c]?"cssFloat"in P.style?"cssFloat":"styleFloat":c,v===3)return typeof d=="number"&&x.test(c)&&(d="".concat(d,"px")),P.style[c]=d,d;for(var U in c)c.hasOwnProperty(U)&&de(P,U,c[U]);return M(P)}function oe(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function w(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function Ce(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:c}}function j(){var P=document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:c}}function I(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function W(P){var c=P.getBoundingClientRect(),d=document.documentElement;return{left:c.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:c.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},yslc:function(F,O){F.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="}}]); diff --git a/umi.f82e3d89.js b/umi.74e4cd79.js similarity index 99% rename from umi.f82e3d89.js rename to umi.74e4cd79.js index 6aa8dcbf89..ff147f4395 100644 --- a/umi.f82e3d89.js +++ b/umi.74e4cd79.js @@ -1,4 +1,4 @@ -(function(x){function g(u){for(var m=u[0],o=u[1],h=u[2],c,b,j=0,O=[];j